403Webshell
Server IP : 123.56.80.60  /  Your IP : 216.73.216.33
Web Server : Apache/2.4.54 (Win32) OpenSSL/1.1.1s PHP/7.4.33 mod_fcgid/2.3.10-dev
System : Windows NT iZhx3sob14hnz7Z 10.0 build 14393 (Windows Server 2016) i586
User : SYSTEM ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Windows/SystemApps/Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Windows/SystemApps/Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy/js/stateManager.js


"use strict";
var CloudExperienceHost;
(function (CloudExperienceHost) {
    (function (WebAppExecutionState) {
        WebAppExecutionState[WebAppExecutionState["Running"] = 0] = "Running";
        WebAppExecutionState[WebAppExecutionState["Closed"] = 1] = "Closed";
    })(CloudExperienceHost.WebAppExecutionState || (CloudExperienceHost.WebAppExecutionState = {}));
    var WebAppExecutionState = CloudExperienceHost.WebAppExecutionState;

    var WebAppState = (function () {
        function WebAppState(cxid, state, result) {
            this.cxid = cxid;
            this.state = state;
            this.result = result;
        }
        return WebAppState;
    })();
    CloudExperienceHost.WebAppState = WebAppState;

    var AppExecutionState = (function () {
        function AppExecutionState() {
            this.source = null;
            this.current = null;
        }
        return AppExecutionState;
    })();

    var StateManager = (function () {
        function StateManager() {
            this._appState = null;
            this._webAppState = null;
            if (!StateManager._allowInstantiation) {
                throw new Error("Error: Instantiation failed: Use getInstance() instead of new.");
            }

            if (WinJS.Application.sessionState.appState) {
                this._appState = WinJS.Application.sessionState.appState;
            } else {
                this._appState = new AppExecutionState();
                WinJS.Application.sessionState.appState = this._appState;
            }

            if (WinJS.Application.sessionState.webAppState) {
                this._webAppState = WinJS.Application.sessionState.webAppState;
            } else {
                this._webAppState = new Object();
                WinJS.Application.sessionState.webAppState = this._webAppState;
            }
        }
        StateManager.getInstance = function () {
            if (StateManager._instance === null) {
                StateManager._allowInstantiation = true;
                StateManager._instance = new StateManager();
                StateManager._allowInstantiation = false;
            }
            return StateManager._instance;
        };

        StateManager.prototype.isValid = function (source) {
            return (this._appState.source && (this._appState.source.toLocaleLowerCase() === source.toLocaleLowerCase()));
        };

        StateManager.prototype.setSource = function (source) {
            this._appState.source = source;
        };

        StateManager.prototype.onNavigate = function (node) {
            this._appState.current = new WebAppState(node.cxid, 0 , null);
        };

        StateManager.prototype.onDone = function (node, appResult) {
            this._appState.current.result = appResult;
            this._appState.current.state = 1 ;
        };

        StateManager.prototype.getNextCXID = function () {
            var cxid = null;
            if (this._appState.current && this._appState.current.state === 0 ) {
                cxid = this._appState.current.cxid;
            }
            return cxid;
        };

        StateManager.prototype.clean = function () {
            WinJS.Application.sessionState = null;
        };

        StateManager.prototype.setWebAppState = function (cxid, value) {
            this._webAppState[cxid] = value;
        };

        StateManager.prototype.getWebAppState = function (cxid) {
            return this._webAppState[cxid];
        };
        StateManager._instance = null;
        return StateManager;
    })();
    CloudExperienceHost.StateManager = StateManager;

    WinJS.Namespace.define("CloudExperienceHost.SessionState", {
        setState: function (value) {
            StateManager.getInstance().setWebAppState(CloudExperienceHost.getCurrentNode().cxid, value);
        },
        getState: function () {
            return StateManager.getInstance().getWebAppState(CloudExperienceHost.getCurrentNode().cxid);
        }
    });
})(CloudExperienceHost || (CloudExperienceHost = {}));

Youez - 2016 - github.com/yon3zu
LinuXploit