<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="GUI.Web.Base.Pages.Admin" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%;">

<head>
    <title>Administration - Everywhere</title>
    
    <link href="/Base/Content/bootstrap.min.css" rel="stylesheet" />

    <script src="/Base/scriptloaderSaaS.js?v=<%=GetWizdomVersion%>"></script>

    <script>
        var logEnabled = !!/(wtwiz|localhost|(.*\?.*debug))/.test(document.location.href);
        function log(text) {
            logEnabled && window.console && window.console.log(text);
        }
        function logTime(text) {
            logEnabled && window.console && window.console.time(text);
        }
        function logTimeEnd(text) {
            logEnabled && window.console && window.console.timeEnd(text);
        }

        log("Wizdom Administration starting");
        var isSaaS = true;
        var adminDependencies = ["swaggerUi", 'ui.ace'];
        <%=WizdomClientSideFeatureToggles%>
        var enableCustomModules = "true";
        var wizdomVersion = "<%=GetWizdomVersion%>";
        var wizdomAzureADClientID = "<%=WizdomAzureADClientID%>";
        var wizdomIsPageInEditMode = function () {
            return false;
        };
        var Wizdom365AppUrl = location.origin + "/";

        wizdomInject(
            wizdomVersion,
            "/",
            "/", // blobUrl
            true,
            true,
            false,
            [],
            null,
            null,
            [],
            null,
            <%= InternalModules%>,
            null,
            <%= isOnline.ToString().ToLower() %> 
        );
    </script>
</head>
<body style="margin: 0; height: 100%;">
    <div id="Wizdom365AuthElement" style="margin: 0; height: 100%;">
        <div class="lt-ob-loaderspinner" ng-if="$root.loading && !$root.showLogin">
            <div class="lt-ob-loaderspinner__container">
                    <div class="lt-ob-loaderspinner__row">
                        <div class="lt-ob-loaderspinner__column lt-ob-loaderspinner-column__message">
                            <h1>Loading Configuration</h1>
                        </div>
                        <div class="lt-ob-loaderspinner__column lt-ob-loaderspinner-column__spinner">
                            <div class="circle-loader"></div>
                        </div>
                    </div>
                </div>
        </div> 
        <login ng-cloak ng-show="$root.showLogin"></login>
        
        <suitebar></suitebar>        
    </div>
</body>

</html>
