@using Microsoft.AspNetCore.Mvc.ViewFeatures
@inject IFileVersionProvider FileVersionProvider

<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<base href="/" />

	@* <ResourcePreloader /> *@
	@DxResourceManager.RegisterScripts()
	@DxResourceManager.RegisterTheme(Themes.Fluent)

	<link href=@AppendVersion("_content/FruitBankHybrid.Shared/bootstrap/bootstrap.min.css") rel="stylesheet" />
	<link href=@AppendVersion("_content/FruitBankHybrid.Shared/app.css") rel="stylesheet" />
	<link href=@AppendVersion("_content/AyCode.Blazor.Components/css/mg-grid-info-panel.css") rel="stylesheet" />
	<link href=@AppendVersion("FruitBankHybrid.Web.styles.css") rel="stylesheet" />

	<ImportMap />
	<link href=@AppendVersion("_content/FruitBankHybrid.Shared/favicon.png") rel="icon" type="image/png" />
	<HeadOutlet @rendermode="InteractiveWebAssembly" />
</head>

<body class="dxbl-theme-fluent">
<Routes @rendermode="InteractiveWebAssembly" />
	<script src="_content/AyCode.Blazor.Components/js/mgGridInfoPanel.js"></script>
	<script src="_content/AyCode.Blazor.Components/js/mgCardView.js"></script>
	<script src="_content/AyCode.Blazor.Components/js/lazyContentObserver.js"></script>
	<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js"></script>
	<script>
		pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js';
	</script>
	<script src="_content/FruitBankHybrid.Shared/js/pdfViewer.js"></script>
	<script src="@Assets["_framework/blazor.web.js"]"></script>
</body>

</html>

@code {
	private string AppendVersion(string path) => FileVersionProvider.AddFileVersionToPath("/", path);
}