!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

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
Free 20.99 GB of 99.4 GB (21.12%)
Detected drives: [ a ] [ c ] [ d ] [ e ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     oobenetworklossaversion-vm.js (6.67 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
//
// Copyright (C) Microsoft. All rights reserved.
//
define(['lib/knockout', 'legacy/bridge', 'legacy/events', 'legacy/core', 'corejs/knockouthelpers'], (ko, bridge, constants, core, KoHelpers) => {
    class NetworkLossAversionViewModel {
        constructor(resources, version) {
            this.resources = resources;
            this.version = version;

            this.title = this.resources["NetworkLossAversionTitleV" + this.version];
            this.descriptionText = this.resources["descriptionTextV" + this.version];
            this.processingFlag = ko.observable(false);

            this.constraintTags = {
                optIn: "optIn",
                optOut: "optOut"
            };
            this.checkBoxAriaLabel = this.resources.checkBoxAriaLabel;
            this.featureOnForFullSetup = "icon-oobe icon-checkmark";

            if (this.version === 3) {
                this.flexEndButtons = [
                    {
                        buttonText: this.resources["NetworkLossAversionOptOutV" + this.version],
                        buttonType: "button",
                        isPrimaryButton: false,
                        buttonClickHandler: (() => {
                            this.onNo();
                        }),
                    },
                    {
                        buttonText: this.resources["NetworkLossAversionOptInV" + this.version],
                        buttonType: "button",
                        isPrimaryButton: true,
                        autoFocus: true,
                        buttonClickHandler: (() => {
                            this.onYes();
                        }),
                    }
                ];
            }
            else {
                this.flexStartHyperLinks = [
                    {
                        hyperlinkText: this.resources["NetworkLossAversionOptOutV" + this.version],
                        handler: () => {
                            this.onNo();
                        }
                    }
                ];
                this.flexEndButtons = [
                    {
                        buttonText: this.resources["NetworkLossAversionOptInV" + this.version],
                        buttonType: "button",
                        isPrimaryButton: true,
                        autoFocus: true,
                        buttonClickHandler: (() => {
                            this.onYes();
                        }),
                    }
                ];
                this.featureContents = this.getFeatureContents();
            }
        }

        startVoiceOver() {
            try {
                let constraints = this.createSpeechRecognitionConstraints();
                CloudExperienceHostAPI.Speech.SpeechRecognition.promptForCommandsAsync(this.resources.NetworkLossAversionVoiceOver, constraints).done((result) => {
                    this.onSpeechRecognitionResult(result);
                });
            }
            catch (err) {
                bridge.invoke("CloudExperienceHost.Telemetry.logEvent", "SpeechNetworkLossAversionPageFailure: ", core.GetJsonFromError(err));
            }
        }

        createSpeechRecognitionConstraints() {
            let constraints = new Array(CloudExperienceHostAPI.Speech.SpeechRecognitionKnownCommands.yes, CloudExperienceHostAPI.Speech.SpeechRecognitionKnownCommands.no);
            if (this.version === 2) {
                let optOutConstraint = new Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint(new Array(this.resources.NetworkLossAversionOptOutV2));
                optOutConstraint.tag = this.constraintTags.optOut;

                let optInConstraint = new Windows.Media.SpeechRecognition.SpeechRecognitionListConstraint(new Array(this.resources.NetworkLossAversionOptInV2));
                optInConstraint.tag = this.constraintTags.optIn;

                constraints.push(optOutConstraint, optInConstraint);
            }
            return constraints;
        }

        onSpeechRecognitionResult(result) {
            if (result && !this.processingFlag()) {
                if ((result.constraint.tag === CloudExperienceHostAPI.Speech.SpeechRecognitionKnownCommands.no.tag) || 
                    ((this.version === 2) && (result.constraint.tag === this.constraintTags.optOut))) {
                    this.onNo();
                }
                else if ((result.constraint.tag === CloudExperienceHostAPI.Speech.SpeechRecognitionKnownCommands.yes.tag) ||
                         ((this.version === 2) && (result.constraint.tag === this.constraintTags.optIn))) {
                    this.onYes();
                }
            }
        }

        onNo() {
            if (!this.processingFlag()) {
                this.processingFlag(true);
                bridge.invoke("CloudExperienceHost.Telemetry.logUserInteractionEvent", "GoToNetworkPage", "No");
                bridge.fireEvent(constants.Events.done, constants.AppResult.success);
            }
        }

        onYes() {
            if (!this.processingFlag()) {
                this.processingFlag(true);
                bridge.invoke("CloudExperienceHost.Telemetry.logUserInteractionEvent", "GoToNetworkPage", "Yes");
                bridge.fireEvent(constants.Events.done, constants.AppResult.action1);
            }
        }

        getFeatureContents() {
            let featureContents = [];
            // the first one is for the table header
            let numOfFeatures = 3;
            let featureClasses = [
                "icon-oobe icon-shield",
                "icon-oobe icon-onedrive",
                "icon-oobe icon-windowsLogo"
            ];
            for (let i = 0; i <= numOfFeatures; i++) {
                let totalContent;
                if (i === 0) {
                    totalContent = {
                        featureHeader: this.resources.featureHeader,
                        featureTemplateName: "nla-TableHeader-Template"
                    };
                }
                else {
                    totalContent = {
                        featureTitle: this.resources["featureTitle" + i],
                        featureDesc: this.resources["featureDesc" + i],
                        featureClass: featureClasses[i-1],
                        featureTemplateName: "nla-TableItem-Template"
                    };
                }
                featureContents.push(totalContent);
            }
            return featureContents;
        }

        getFeatureTemplateName(featureContent) {
            return featureContent.featureTemplateName;
        }
    }
    return NetworkLossAversionViewModel;
});

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.761 ]--