Software: Microsoft-IIS/10.0. PHP/7.4.33 uname -a: Windows NT LAKE 10.0 build 20348 (Windows Server 2016) AMD64 IWPD_801(traduongco) Safe-mode: OFF (not secure) C:\Windows\SystemApps\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\webapps\inclusiveOobe\js\ drwxrwxrwx | |
| Viewing file: Select action/file-type: //
// Copyright (C) Microsoft. All rights reserved.
//
"use strict";
(() => {
WinJS.UI.Pages.define("/webapps/inclusiveOobe/view/oobeoemregistration-main.html", {
init: function oemPageInit(element, options) {
require.config(new RequirePathConfig('/webapps/inclusiveOobe'));
return requireAsync(['legacy/uiHelpers', 'legacy/bridge']).then((result) => {
let bridge = result.legacy_bridge;
var promises = [];
promises.push(result.legacy_uiHelpers.LoadCssPromise(document.head, "", bridge));
promises.push(bridge.invoke("CloudExperienceHost.StringResources.makeResourceObject", "oobeOemRegistration").then((result) => {
this.resourceStrings = JSON.parse(result);
}));
promises.push(result.legacy_uiHelpers.LangAndDirPromise(document.documentElement, bridge));
promises.push(bridge.invoke("CloudExperienceHost.OEMRegistrationInfo.retrieveOEMRegisrationInfo").then((registrationInfo) => {
this.oemRegistrationInfo = JSON.parse(registrationInfo);
}));
promises.push(bridge.invoke("CloudExperienceHost.MSA.getUserInfo").then((userInfo) => {
this.userInfo = userInfo;
}));
promises.push(bridge.invoke("CloudExperienceHost.Globalization.GeographicRegion.getAll").then((regions) => {
this.regions = regions;
}));
return WinJS.Promise.join(promises);
});
},
error: function oemPageError(e) {
// Look for an error object from our set of init promises and unpack that if we find one.
if (e.initResult && e.initResult.length > 0) {
e.initResult.forEach((result) => {
if (result && result.number) {
e = result;
}
});
}
require(['legacy/bridge', 'legacy/events', 'legacy/core'], (bridge, constants, core) => {
bridge.invoke("CloudExperienceHost.Telemetry.logEvent", "OEMRegistrationPageLoadFailure", core.GetJsonFromError(e));
bridge.fireEvent(constants.Events.done, constants.AppResult.error);
});
},
ready: function oemPageReady(element, options) {
return requireAsync(['lib/knockout', 'corejs/knockouthelpers', 'legacy/bridge', 'legacy/events', 'oobeoemregistration-vm']).then((modules) => {
// Setup knockout customizations
window.KoHelpers = modules.corejs_knockouthelpers;
let ko = modules.lib_knockout;
let koHelpers = new KoHelpers();
koHelpers.registerComponents(CloudExperienceHost.RegisterComponentsScenarioMode.InclusiveOobe);
// Apply bindings and show the page
let vm = new modules.oobeoemregistration_vm(this.resourceStrings, this.regions, this.oemRegistrationInfo, this.userInfo);
ko.applyBindings(vm);
KoHelpers.waitForInitialComponentLoadAsync().then(() => {
WinJS.Utilities.addClass(document.body, "pageLoaded");
modules.legacy_bridge.fireEvent(modules.legacy_events.Events.visible, true);
KoHelpers.setFocusOnAutofocusElement();
vm.startVoiceOver();
});
});
}
});
})();
|
:: Command execute :: | |
--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5574 ]-- |