KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64
User : ServerPC ( 0)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  C:/Windows/SystemApps/MicrosoftWindows.Client.CBS_cw5n1h2txyewy/webapps/scoobe/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : C:/Windows/SystemApps/MicrosoftWindows.Client.CBS_cw5n1h2txyewy/webapps/scoobe/js/scoobeoutro-vm.js
//
// Copyright (C) Microsoft. All rights reserved.
//
define(['lib/knockout', 'legacy/bridge', 'legacy/events', 'legacy/core'], (ko, bridge, constants, core) => {
    class ScoobeOutroViewModel {
        constructor(resourceStrings, targetPersonality) {
            this.resourceStrings = resourceStrings;

             this.isLiteWhitePersonality = ko.pureComputed(() => {
                return targetPersonality === CloudExperienceHost.TargetPersonality.LiteWhite;
            });
            
            if (this.isLiteWhitePersonality()) {
                this.title = resourceStrings.LightOutroTitle;
                this.subHeaderText = resourceStrings.LightOutroSubtitle;
            } else {
                this.title = resourceStrings.OutroTitle;
                this.subHeaderText = resourceStrings.OutroSubtitle;
                this.imageName = resourceStrings.OutroTitle;
            }

            this.processingFlag = ko.observable(false); 
            this.flexEndButtons = [
                {
                    buttonText: resourceStrings.CloseButtonText,
                    buttonType: "button",
                    isPrimaryButton: true,
                    isVisible: true,
                    disableControl: ko.pureComputed(() => {
                        return this.processingFlag();
                    }),
                    buttonClickHandler: () => {
                        this.onCloseClick();
                    }
                }
            ];
        }

        onCloseClick() {
            bridge.fireEvent(constants.Events.done, constants.AppResult.exitCxhSuccess);
        }
    }
    return { ScoobeOutroViewModel };
});

Anon7 - 2021