<!DOCTYPE html>
<html lang="en">
    <head>
        <base href="{{ .base }}">
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="./admin/assets/css/designsystem.css">
        <link rel="icon" href="favicon.ico">
        <title>Admin Console</title>
    </head>
    <body>
        <script type="module" src="./admin/assets/{{ .version }}/components/loader.js"></script>
        <div role="main" id="app">
            <component-loader delay="500"></component-loader>
        </div>

        <script type="module">
          import main from "./admin/assets/{{ .version }}/lib/skeleton/index.js";
          import routes from "./admin/assets/{{ .version }}/boot/router_backoffice.js";
          main(document.getElementById("app"), routes, {
              spinner: `<component-loader></component-loader>`,
              beforeStart: import("{{ .base }}admin/assets/{{ .version }}/boot/ctrl_boot_backoffice.js"),
          });
        </script>

        <script type="module" src="./admin/assets/{{ .version }}/components/modal.js"></script>
        <component-modal></component-modal>
        <script type="module" src="./admin/assets/{{ .version }}/components/notification.js"></script>
        <component-notification></component-notification>

        <noscript>
            <div>
                <h2>Error: Javascript is off</h2>
                <p>You need to enable Javascript to run this application</p>
            </div>
        </noscript>
    </body>
</html>
