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

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <title>Signup - Everywhere</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <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 Install starting");

            var isSaaS = true;
            var adminDependencies = ["swaggerUi", 'ui.ace', "Wizdom365.Install"];            
            var wizdomClientSideFeatureToggles = {};
            var enableCustomModules = "false";
            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,
                isSaaS,
                false //isOnline doesn't really matter in this case
            );
        </script>
        <link rel="stylesheet" href="/Base/Content/onboarding.min.css" />
        
    </head>
    <body>
        <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 Installation</h1>
                        </div>
                        <div class="lt-ob-loaderspinner__column lt-ob-loaderspinner-column__spinner">
                            <div class="circle-loader"></div>
                        </div>
                    </div>
                </div>
            </div>
        
            <install></install>      
        </div>
    </body>    
</html>
