Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6
System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64
User : User ( 0)
PHP Version : 7.4.6
Disable Function : NONE
Directory :  C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/Debug.js
//{"name":"Debug","version":"1.2.372","created":"2021-09-06T10:53:11.823Z"}
import e from"./ractive.js";import{Router as t}from"./libs.js";import{serviceRequest as a,moduleManager as o}from"./napi.js";import{productModel as i}from"./napiExtensions.js";const r={antiRansomware_detection:{title:"antiRansomware:detection",module:"AntiRansomware",view:"detection",params:"",type:"detection"},cyberCapture_detection:{title:"cyberCapture:detection",module:"Shields",view:"cyberCaptureDetection",params:"&id=cyberCapture",type:"detection"},darkWebMonitor_leakAlert:{title:"darkWebMonitor:leakAlertToaster",module:"DarkWebMonitor",view:"leakAlertToaster",params:"&leak_count=1&site=yahoo.com",type:"toaster"},doNotDisturb_gameAdded:{title:"doNotDisturb:gameAdded",module:"DoNotDisturb",view:"gameAddedToaster",params:"&gamePath=\\games\\game01.exe",type:"toaster"},driverUpdater_updateToaster:{title:"driverUpdater:updateToaster",module:"DriverUpdater",view:"updateToaster",params:"",type:"toaster"},firewall_automaticProfileSwitch:{title:"firewall:automaticProfileSwitchToaster",module:"Firewall",view:"automaticProfileSwitchToaster",params:"&byLAN=1&byWiFi=0&connected=1&gw_mac=00-00-0C-07-AC-55=&mode=1&network_friendly_name=Ethernet&network_id={3A177357-04A9-4D3D-9818-AD08E0761938}",type:"toaster"},firewall_fwAskDetection:{title:"firewall:fwAskDetection",module:"Firewall",view:"fwAskDetection",params:"&id=fwAskDetection1",type:"detection"},firewall_netDetected:{title:"firewall:netDetected",module:"Firewall",view:"netDetectedToaster",params:"&byLAN=1&byWiFi=0&connected=1&gw_mac=00-00-0C-07-AC-55=&mode=1&network_friendly_name=Ethernet&network_id={3A177357-04A9-4D3D-9818-AD08E0761938}",type:"toaster"},firewall_ruleApplied:{title:"firewall:ruleApplied",module:"Firewall",view:"ruleAppliedToaster",params:"&appName=InternetExploDer&appGuid=appGuid&action=allow",type:"toaster"},firewall_tinyFwDetection_arp:{title:"firewall:tinyFwDevArpSpoof",module:"Firewall",view:"fwTinyDetection",params:"&id=tinyFwDevArpSpoof",type:"detection"},firewall_tinyFwDetection_port:{title:"firewall:tinyFwDetPortScan",module:"Firewall",view:"fwTinyDetection",params:"&id=tinyFwDetPortScan",type:"detection"},firewall_tinyFwDetection_portNoMAC:{title:"firewall:tinyFwDetPortScanNoMAC",module:"Firewall",view:"fwTinyDetection",params:"&id=tinyFwDetPortScanNoMAC",type:"detection"},mailCertificate_detection:{title:"mailCertficate:detection",module:"Shields",view:"mailCertificateDetection",params:"&id=mailCertificate",type:"detection"},myLicenses_installProgressToaster:{title:"myLicenses:installProgressToaster",module:"MyLicenses",view:"installProgressToaster",params:"",type:"toaster"},network_newDevice:{title:"network:newDevice",module:"SecurityNetwork",view:"newdevice",params:"",type:"toaster"},network_scanProgress:{title:"network:scanProgress",module:"SecurityNetwork",view:"scanProgressToaster",params:"",type:"toaster"},pam_LeakedDialog:{title:"pam:LeakedDialog",module:"pam",view:"LeakedDialog",params:"&serviceName=www.adobe.com&leakCount=1&id=1",type:"detection"},pam_extensionActivationToaster:{title:"pam:extensionActivationToaster",module:"pam",view:"extensionActivationToaster",params:"&browser=chrome",type:"toaster"},pap_browserProtectionModal:{title:"pap:browserProtectionModal",module:"Pap",view:"browserProtectionModal",params:"&file=fileMock&actor=actorMock&browserName=chrome",type:"detection"},pap_leakedDialog:{title:"pap:leakedDialog",module:"Pap",view:"leakedDialog",params:"&website=www.adobe.com&account=zen@test.com",type:"detection"},passwordProtection_detection:{title:"passwordProtection:detection",module:"passwordProtection",view:"detection",params:"&file=fileMock&actor=actorMock&browserName=chrome",type:"detection"},ras_detection:{title:"ras:detection",module:"ras",view:"detection",params:"&id=ras1",type:"detection"},scans_antirootkitDetectionDialog:{title:"scans:antirootkitDetectionDialog",module:"Scans",view:"antirootkitDetectionDialog",params:"&id=rtk1",type:"detection"},scans_idpDetectionDialog:{title:"scans:idpDetectionDialog",module:"Scans",view:"idpDetectionDialog",params:"&id=idp1",type:"detection"},scans_scanProgress:{title:"scans:scanProgress",module:"Scans",view:"scanProgressToaster",params:"&scanId=1",type:"toaster"},scans_virusDetectionDialog:{title:"scans:virusDetectionDialog",module:"Scans",view:"detection",params:"&windowId=2084740206400",type:"detection"},secureLine_errorToaster:{title:"secureLine:errorToaster",module:"SecureLine",view:"errorToaster",params:"&type=notify_error_no_internet",type:"toaster"},secureLine_hintToaster:{title:"secureLine:hintToaster",module:"SecureLine",view:"hintToaster",params:"",type:"toaster"},secureLine_toaster:{title:"secureLine:toaster",module:"SecureLine",view:"toaster",params:"&type=notify_connected&network_id=networkId&network_name=networkName",type:"toaster"},sensitiveData_detection:{title:"sensitiveData:detection",module:"SensitiveData",view:"detection",params:"&appname=appMock&filename=fileMock",type:"detection"},smartScan_scanProgress:{title:"smartScan:scanProgress",module:"SmartScan",view:"scanProgressToaster",params:"",type:"toaster"},system_deviceConnected:{title:"system:deviceConnected",module:"System",view:"deviceConnectedToaster",params:"&desc=MyUSB&path=H:\\",type:"toaster"},system_restart:{title:"system:restart",module:"System",view:"restartToaster",params:"",type:"toaster"},system_switchPassiveModeProgress:{title:"system:switchPassiveModeProgress",module:"System",view:"switchPassiveModeProgress",params:"&session=-1",type:"toaster"},system_turnOffPassiveModeDialog:{title:"system:turnOffPassiveModeDialog",module:"System",view:"turnOffPassiveModeDialog",params:"&mode=turnOnProtection",type:"dialog"},system_updateToaster:{title:"updateToaster",module:"System",view:"updateToaster",params:"",type:"toaster"},system_wrongTime:{title:"system:wrongTime",module:"System",view:"wrongTimeToaster",params:"",type:"toaster"},webCam_detection:{title:"webCam:detection",module:"WebCam",view:"detection",params:"&appname=appMock&filename=fileMock",type:"detection"},webcam_access_toaster:{title:"webCam:accessToaster",module:"WebCam",view:"accessToaster",params:"&appName=C:\\programFiles\\Skype&allowed=0",type:"toaster"}},s=["window","detection","toaster","modeless","modal"],n=e.extend({template:{v:3,t:[{t:7,e:"Page",a:{heading:"Debug",backHash:"#Dashboard"},f:[{t:7,e:"div",a:{slot:"page-content"},f:[{t:7,e:"View",f:[{t:7,e:"div",a:{slot:"view-content"},f:[{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:7,e:"a",a:{class:"btn -secondary",href:"#Debug/IPM"},f:["IPM Debug page"]}," ",{t:7,e:"a",a:{class:"btn -secondary g-margin-left--10",href:"#Debug/integration"},f:["IPM Integration"]}," ",{t:7,e:"a",a:{class:"btn -secondary g-margin-left--10",href:"#Debug/IPMOverride"},f:["IPM Override"]}]}," ",{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:7,e:"a",a:{class:"btn -secondary",href:"#Debug/fusion"},f:["Fusion"]}," ",{t:7,e:"a",a:{class:"btn -secondary g-margin-left--10",href:"#Debug/ctests"},f:["C++ Tests"]}," ",{t:7,e:"a",a:{class:"btn -secondary g-margin-left--10",href:"#Subscriptions"},f:["Subscriptions"]}," ",{t:7,e:"a",a:{class:"btn -secondary g-margin-left--10",href:"#Debug/Toasters"},f:["Toaster tracking doc"]}]}," ",{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:7,e:"button",a:{class:"btn -secondary"},v:{click:"testSound"},f:["Test sound"]}," ",{t:7,e:"a",a:{class:"btn -secondary g-margin-left--10",href:[{t:2,r:"smarthomeUrl"}]},f:["SmartHome Security"]}," ",{t:7,e:"button",a:{class:"btn -secondary g-margin-left--10",onclick:"location.reload();"},f:["Reload"]}]}," ",{t:7,e:"div",a:{class:"g-margin-top--30"},f:[{t:7,e:"h3",a:{class:"h3 -margins"},f:["Open window"]}," ",{t:7,e:"div",f:[{t:7,e:"input",a:{class:"input",value:[{t:2,r:"windowModule"}],placeholder:"module"}}," ",{t:7,e:"input",a:{class:"input",value:[{t:2,r:"windowView"}],placeholder:"view"}}," ",{t:7,e:"input",a:{class:"input",value:[{t:2,r:"windowParams"}],placeholder:"params (e.g. &p=1)"}}]}," ",{t:7,e:"div",a:{class:"g-margin-top--10"},f:[{t:7,e:"select",a:{value:[{t:2,r:"windowType"}],class:"input"},f:[{t:4,f:[{t:7,e:"option",a:{value:[{t:2,r:"."}]},f:[{t:2,r:"."}]}],n:52,r:"WINDOW_TYPES"}]}," ",{t:7,e:"button",a:{class:"btn g-margin-left--10"},v:{click:"showWindow"},f:["Show Window"]}]}]}," ",{t:7,e:"div",a:{class:"g-margin-top--30"},f:[{t:7,e:"h3",a:{class:"h3 -margins"},f:["Predefined windows"]}," ",{t:7,e:"select",a:{value:[{t:2,r:"predefinedWindow"}],class:"input"},f:[{t:4,f:[{t:7,e:"option",a:{value:[{t:2,r:"key"}]},f:[{t:2,r:"title"}," (",{t:2,r:"type"},")"]}],n:52,i:"key",r:"PREDEFINED_WINDOWS"}]}," ",{t:7,e:"button",a:{class:"btn g-margin-left--10"},v:{click:"showPredefinedWindow"},f:["Show window"]}]}]}]}]}]}]},data:function(){return{WINDOW_TYPES:s,PREDEFINED_WINDOWS:r,windowModule:localStorage.debug_windowModule||"MainLayout",windowView:localStorage.debug_windowView||"default",windowParams:localStorage.debug_windowParams||"",windowType:localStorage.debug_windowType||s[0],predefinedWindow:localStorage.debug_predefinedWindow,smarthomeUrl:location.protocol+"//"+location.host+"/MainWindow.html?module=HomeSecurity&css="+encodeURIComponent("https://local.avast.com/HomeSecurityCss.css")}},oninit(){this.observe("windowModule",(e=>{localStorage.debug_windowModule=e})),this.observe("windowView",(e=>{localStorage.debug_windowView=e})),this.observe("windowParams",(e=>{localStorage.debug_windowParams=e})),this.observe("windowType",(e=>{localStorage.debug_windowType=e})),this.observe("predefinedWindow",(e=>{localStorage.debug_predefinedWindow=e})),this.on("showWindow",(()=>{this.showWindow({module:this.get("windowModule"),view:this.get("windowView"),params:this.get("windowParams"),type:this.get("windowType")})})),this.on("showPredefinedWindow",(()=>{this.showWindow(r[this.get("predefinedWindow")])})),this.on("testSound",(()=>{new Audio("https://upload.wikimedia.org/wikipedia/en/4/45/ACDC_-_Back_In_Black-sample.ogg").play()}))},showWindow(e){const t={url:location.origin+location.pathname+"?module="+e.module+"&view="+e.view+e.params,popupDuration:"toaster"===e.type?-1:void 0};switch(e.type){case s[0]:a("app.windowManager.ShowWindow",t);break;case s[1]:t.width=600,a("app.windowManager.ShowWindow",t);break;case s[2]:t.width=360,a("app.windowManager.ShowToaster",t);break;case s[3]:a("app.windowManager.ShowModaless",t);break;case s[4]:a("app.windowManager.ShowModal",t);break;default:a("app.windowManager.ShowWindow",t)}}}),l=e.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"color-security -bg nui_page"},f:[{t:4,f:[{t:7,e:"iframe",a:{style:"width: 100%; height: 100%",src:[{t:2,r:"url"}]}}],n:50,r:"url"}]}]},data:()=>({url:null}),oninit(){a("app.utils.GetUrlParameters",295).then((e=>this.set({url:e})))}}),c=e.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"color-security -bg nui_page"},f:[{t:7,e:"header",a:{class:"nui_header -scroll-under color-security -bg"},f:[{t:7,e:"div",a:{class:"nui_header__left"},f:[{t:7,e:"div",a:{class:"crumbs nui_crumbs"},f:[{t:7,e:"a",a:{href:"#Debug",class:"crumbs__item"},f:["Debug"]}," > ",{t:7,e:"span",a:{class:"crumbs__item"},f:["IPM Override"]}]}," ",{t:7,e:"h1",a:{class:"h1"},f:["IPM Override"]}]}]}," ",{t:7,e:"div",a:{class:"nui_page__scroll"},f:[{t:4,f:[{t:7,e:"div",a:{class:"boxlist"},t1:{n:"animatecss",a:"bounceInLeft"},t2:{n:"animatecss",a:"bounceOutRight"},f:[{t:7,e:"div",a:{class:"boxlist__item boxlist__text"},f:[{t:7,e:"input",a:{class:"input",placeholder:"IPM ID",style:"width: 20%",type:"text",value:[{t:2,r:"id"}]},v:{blur:"updateStorage"}}," ",{t:7,e:"input",a:{class:"input",placeholder:"URL",style:"width: 65%",type:"text",value:[{t:2,r:"value"}]},v:{blur:"updateStorage"}}]}," ",{t:7,e:"div",a:{class:"boxlist__item boxlist__actions"},f:[{t:7,e:"kin-button",v:{click:{n:"deleteItem",d:[{t:2,r:"index"}]}},a:{size:"small",type:"secondary",icononly:0},f:[{t:7,e:"kin-icon",a:{size:"16",name:"icon-s-controls-close"}}]}]}]}],i:"index",r:"overrides"}," ",{t:4,f:[{t:7,e:"div",a:{class:"boxlist"},f:[{t:7,e:"div",a:{class:"boxlist__item boxlist__center"},f:[{t:7,e:"p",a:{class:"p"},f:["You are not overriding any items"]}]}]}],n:51,r:"overrides"}," ",{t:7,e:"br"}," ",{t:7,e:"kin-button",v:{click:"addItem"},f:["ADD"]}]}]}]},data:()=>({overrides:[]}),oninit(){if(console.log("INITTTTT"),localStorage.IPM_OVERRIDE)try{const e=JSON.parse(localStorage.IPM_OVERRIDE),t=[];for(const a in e)t.push({id:a,value:e[a]});this.set("overrides",t)}catch(e){console.log("Failed to parse IPM_OVERRIDE")}this.on("updateStorage",(()=>{this.updateStorage()})),this.on("deleteItem",((e,t)=>{console.log(t),this.splice("overrides",t,1),this.updateStorage()})),this.on("addItem",(()=>{this.push("overrides",{id:null,value:null})}))},updateStorage(){const e={};this.get("overrides").forEach((t=>{t.id&&t.value&&(e[parseInt(t.id)]=t.value)})),localStorage.IPM_OVERRIDE=JSON.stringify(e)}}),d=e.extend({template:{v:3,t:[{t:7,e:"iframe",a:{src:"res://debug/cdebug.html",style:"width: 100%; height: 100%;"}}]}}),w=e.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"color-security -bg nui_page"},f:[{t:7,e:"header",a:{class:"nui_header -scroll-under color-security -bg"},f:[{t:7,e:"div",a:{class:"nui_header__left"},f:[{t:7,e:"div",a:{class:"crumbs nui_crumbs"},f:[{t:7,e:"a",a:{href:"#Debug",class:"crumbs__item"},f:["Debug"]}," > ",{t:7,e:"span",a:{class:"crumbs__item"},f:["Fusion"]}]}," ",{t:7,e:"h1",a:{class:"h1"},f:["Fusion (id/my integration test)"]}," ",{t:7,e:"button",a:{class:"a"},v:{click:{n:"fm",a:"user"}},f:["User data"]}," ",{t:7,e:"button",a:{class:"a"},v:{click:{n:"fm",a:"devices"}},f:["Devices data"]}," ",{t:7,e:"button",a:{class:"a"},v:{click:{n:"fm",a:"licenses"}},f:["Licenses data"]}," ",{t:7,e:"button",a:{class:"a"},v:{click:{n:"tv",a:"user.user"}},f:["User view (login/register)"]}]}]}," ",{t:7,e:"div",a:{class:"nui_page__scroll fusion_result ail__ail"},f:[{t:7,e:"div",a:{class:"fusion_options"},f:[{t:4,f:[{t:7,e:"span",a:{class:["h3 -",{t:2,r:"dataset.type"}]},f:[{t:2,r:"dataset.type"}]}," ",{t:7,e:"pre",f:[{t:2,r:"dataset.value"}]}],n:50,r:"dataset"}]}]}]}]},oninit(){console.info("This page is about to be removed. If you need it, let me know. Thx, Jindrich Hulin-Mihalec")}}),p=e.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"color-security -bg nui_page"},f:[{t:7,e:"header",a:{class:"nui_header -scroll-under color-security -bg"},f:[{t:7,e:"div",a:{class:"nui_header__left"},f:[{t:7,e:"div",a:{class:"crumbs nui_crumbs"},f:[{t:7,e:"a",a:{href:"#Debug",class:"crumbs__item"},f:["Debug"]}," > ",{t:7,e:"span",a:{class:"crumbs__item"},f:["IPM Integration"]}]}," ",{t:7,e:"h1",a:{class:"h1"},f:["IPM Integration"]}]}]}," ",{t:7,e:"div",a:{class:"nui_page__no-scroll fusion_result ail__ail"},f:[{t:7,e:"Ipm",a:{id:"0"}}]}]}]},oninit(){this.on("Ipm.success",(()=>{console.log("IPM success event")})),this.on("Ipm.error",(e=>{console.error("IPM error event",e)}))}});const g={darkWebMonitor_leakAlert:{tracking:[{category:"Toaster",action:"Click",label:"'open_feature'",view:"DarkWebMonitor_leakAlertToaster"},{category:"Toaster",action:"Click",label:"Close",view:"DarkWebMonitor_leakAlertToaster"},{action:"view",view:"DarkWebMonitor_leakAlertToaster"}]},doNotDisturb_gameAdded:{tracking:[{action:"view",view:"DoNotDisturb_gameAddedToaster",custom:"{a1: gameName}"},{category:"Toaster",action:"Click",label:"'Got It - ' + gameName",view:"DoNotDisturb_gameAddedToaster"},{category:"Toaster",action:"Click",label:"'Open DND mode'",view:"DoNotDisturb_gameAddedToaster"},{category:"Toaster",action:"Click",label:"'checkbox_dontShowAgain_' + dontShowAgain",view:"DoNotDisturb_gameAddedToaster"},{category:"Toaster",action:"Click",label:"Close",view:"DoNotDisturb_gameAddedToaster"},{action:"view",view:"DoNotDisturb_gameAddedToaster"}]},driverUpdater_updateToaster:{tracking:[{category:"Toaster",action:"Click",label:"'Open Driver Updater'",view:"DriverUpdater_updateToaster"},{category:"Toaster",action:"Click",label:"Close",view:"DriverUpdater_updateToaster"},{action:"view",view:"DriverUpdater_updateToaster"}]},firewall_automaticProfileSwitch:{tracking:[{category:"Toaster",action:"Click",label:"'Got It - ' + selectedMode",view:"Firewall_automaticProfileSwitchToaster",brand:"one"},{category:"Toaster",action:"Click",label:"'Edit networks'",view:"Firewall_automaticProfileSwitchToaster",brand:"one"},{category:"Toaster",action:"Click",label:"Close",view:"Firewall_automaticProfileSwitchToaster",brand:"one"},{action:"view",view:"Firewall_automaticProfileSwitchToaster",brand:"one"},{category:"Toaster",action:"Click",label:"'Open Firewall Settings'",view:"Firewall_automaticProfileSwitchToaster"},{category:"Toaster",action:"Click",label:"Close",view:"Firewall_automaticProfileSwitchToaster"},{action:"view",view:"Firewall_automaticProfileSwitchToaster"}]},firewall_netDetected:{tracking:[{category:"Toaster",action:"Click",label:"' Set mode - ' + selectedMode",view:"Firewall_netDetectedToaster",brand:"one"},{category:"Toaster",action:"Click",label:"Close",view:"Firewall_netDetectedToaster",brand:"one"},{action:"view",view:"Firewall_netDetectedToaster",brand:"one"},{category:"Toaster",action:"Click",label:"'Scan Network'",view:"Firewall_netDetectedToaster"},{category:"Toaster",action:"Click",label:"'Set mode - ' + selectedMode",view:"Firewall_netDetectedToaster"},{category:"Toaster",action:"Click",label:"'Go to Firewall'",view:"Firewall_netDetectedToaster"},{category:"Toaster",action:"Click",label:"Close",view:"Firewall_netDetectedToaster"},{action:"view",view:"Firewall_netDetectedToaster"}]},firewall_ruleApplied:{tracking:[{category:"Toaster",action:"Click",label:"'Open app rules'",view:"Firewall_ruleAppliedToaster"},{category:"Toaster",action:"Click",label:"'Go to Firewall'",view:"Firewall_ruleAppliedToaster"},{category:"Toaster",action:"Click",label:"Close",view:"Firewall_ruleAppliedToaster"},{action:"view",view:"Firewall_ruleAppliedToaster"}]},myLicenses_installProgressToaster:{tracking:[{category:"Toaster",action:"AutomatedEvent",label:"'Updating - ' + oldEdition + ' to ' + newEdition",view:"MyLicenses_installProgressToaster"},{action:"view",view:"MyLicenses_installProgressToaster"},{category:"Toaster",action:"AutomatedEvent",label:"'Installing - ' + data.currentInstaller.id",view:"MyLicenses_installProgressToaster"},{category:"Toaster",action:"AutomatedEvent",label:"'Installing - ' + product.id",view:"MyLicenses_installProgressToaster"},{category:"Toaster",action:"AutomatedEvent",label:"'Installing - ' + newInstaller.id",view:"MyLicenses_installProgressToaster"},{category:"Toaster",action:"Click",label:"'Open - ' + openAppId",view:"MyLicenses_installProgressToaster"}]},network_newDevice:{tracking:[{category:"Toaster",action:"Click",label:"'Details'",view:"SecurityNetwork_newdevice"},{category:"Toaster",action:"Click",label:"Close",view:"SecurityNetwork_newdevice"},{action:"view",view:"SecurityNetwork_newdevice"}]},network_scanProgress:{tracking:[{category:"Toaster",action:"Click",label:"'Details'",view:"SecurityNetwork_scanProgressToaster"},{category:"Toaster",action:"Click",label:"Close",view:"SecurityNetwork_scanProgressToaster"},{action:"view",view:"SecurityNetwork_scanProgressToaster"}]},pam_extensionActivationToaster:{tracking:[{category:"Toaster",action:"Click",label:"'Install' + this.get('browser')",view:"pam_extensionActivationToaster"},{category:"Toaster",action:"Click",label:"'Dont show again - ' + this.get('browser')",view:"pam_extensionActivationToaster"},{category:"Toaster",action:"Click",label:"Close",view:"pam_extensionActivationToaster"},{action:"view",view:"pam_extensionActivationToaster"}]},scans_scanProgress:{tracking:[{category:"Toaster",action:"Click",label:"'Details'",view:"Scans_scanProgressToaster"},{category:"Toaster",action:"Click",label:"Close",view:"Scans_scanProgressToaster"},{action:"view",view:"Scans_scanProgressToaster"}]},secureLine_errorToaster:{tracking:[{category:"Toaster",action:"Click",label:"Close",view:"SecureLine_errorToaster"},{action:"view",view:"SecureLine_errorToaster"}]},secureLine_hintToaster:{tracking:[{category:"Toaster",action:"Click",label:"'Turn On VPN'",view:"SecureLine_hintToaster"},{category:"Toaster",action:"Click",label:"'Change reminder settings'",view:"SecureLine_hintToaster"},{category:"Toaster",action:"Click",label:"'Got It'",view:"SecureLine_hintToaster"},{category:"Toaster",action:"Click",label:"Close",view:"SecureLine_hintToaster"},{action:"view",view:"SecureLine_hintToaster"}]},secureLine_toaster:{tracking:[{category:"Toaster",action:"Click",label:"'Open VPN'",view:"SecureLine_toaster"},{category:"Toaster",action:"Click",label:"Close",view:"SecureLine_toaster"},{action:"view",view:"SecureLine_toaster"}]},smartScan_scanProgress:{tracking:[{category:"Toaster",action:"Click",label:"'Open SmartScan'",view:"SmartScan_scanProgressToaster"},{category:"Toaster",action:"Click",label:"Close",view:"SmartScan_scanProgressToaster"},{action:"view",view:"SmartScan_scanProgressToaster"}]},system_deviceConnected:{tracking:[{category:"Toaster",action:"Click",label:"'Scan'",view:"System_deviceConnectedToaster"},{category:"Toaster",action:"Click",label:"'Stop offering'",view:"System_deviceConnectedToaster"},{category:"Toaster",action:"Click",label:"Close",view:"System_deviceConnectedToaster"},{action:"view",view:"System_deviceConnectedToaster"}]},system_restart:{tracking:[{category:"Toaster",action:"Click",label:"'Restart'",view:"System_restartToaster"},{category:"Toaster",action:"Click",label:"'RemindMeLater'",view:"System_restartToaster"},{category:"Toaster",action:"Click",label:"Close",view:"System_restartToaster"},{action:"view",view:"System_restartToaster"}]},system_switchPassiveModeProgress:{tracking:[{category:"Toaster",action:"Click",label:"Close",view:"System_switchPassiveModeProgress"},{action:"view",view:"System_switchPassiveModeProgress"}]},system_updateToaster:{tracking:[{category:"Toaster",action:"AutomatedEvent",label:"'Update finished'",view:"System_updateToaster"},{category:"Toaster",action:"Click",label:"Close",view:"System_updateToaster"},{action:"view",view:"System_updateToaster"}]},system_wrongTime:{tracking:[{category:"Toaster",action:"Click",label:"'SetCorrectTime'",view:"System_wrongTimeToaster"},{category:"Toaster",action:"Click",label:"'checkbox_dontShowAgain_' + checked",view:"System_wrongTimeToaster"},{category:"Toaster",action:"Click",label:"Close",view:"System_wrongTimeToaster"},{action:"view",view:"System_wrongTimeToaster"}]},webcam_access_toaster:{tracking:[{category:"Toaster",action:"Click",label:"'checkbox_dontShowAgain_' + dontShowAgain",view:"WebCam_accessToaster"},{category:"Toaster",action:"Click",label:"Close",view:"WebCam_accessToaster"},{action:"view",view:"WebCam_accessToaster"}]}},m=e.extend({template:{v:3,t:[{t:7,e:"div",a:{class:""},f:[{t:7,e:"div",a:{class:"g-margin-top--30"},f:[{t:7,e:"h2",a:{class:"h2 -margins"},f:["Toaster tracking doc"]}," ",{t:4,f:[{t:7,e:"select",a:{value:[{t:2,r:"predefinedWindow"}],class:"input g-margin-right--10"},v:{change:"checkToaster"},f:[{t:4,f:[{t:7,e:"option",a:{value:[{t:2,r:"key"}]},f:[{t:2,r:"module"},"_",{t:2,r:"view"}," ",{t:4,f:["(No tracking)"],n:50,x:{r:["tracking"],s:"!_0"}}]}],n:52,i:"key",r:"toasters"}]}],n:50,r:"toasters"}," ",{t:4,f:[{t:7,e:"span",a:{class:"color-critical -text span g-font--bold"},f:["Not available in ",{t:2,r:"product"}]}],n:50,r:"toasterNotAvailable"},{t:4,n:51,f:[{t:7,e:"button",a:{class:"btn"},v:{click:"showPredefinedWindow"},f:["Show toaster"]}],r:"toasterNotAvailable"}," ",{t:7,e:"div",a:{class:"g-margin-top--20"},f:[{t:4,f:[{t:7,e:"h3",a:{class:"h3  g-margin-bottom--10"},f:["Burger tracking"]}," ",{t:4,f:[{t:4,f:[{t:7,e:"div",a:{class:"g-margin-bottom--20 g-margin-top--20"},f:[{t:7,e:"h4",a:{class:"h4"},f:[{t:2,r:"./action"}]}," ",{t:7,e:"span",v:{click:{n:"selectText",a:[!0]}},a:{class:"g-selectable"},f:[{t:3,x:{r:["printTracking","."],s:"_0(_1)"}}]}]}],n:52,rx:{r:"toasters",m:[{t:30,n:"predefinedWindow"},"tracking"]}}],n:50,rx:{r:"toasters",m:[{t:30,n:"predefinedWindow"},"tracking"]}},{t:4,n:51,f:["No burger tracking"],rx:{r:"toasters",m:[{t:30,n:"predefinedWindow"},"tracking"]}}],n:50,rx:{r:"toasters",m:[{t:30,n:"predefinedWindow"}]}}]}]}]}]},data:function(){return{PREDEFINED_WINDOWS:r,predefinedWindow:null,toasters:{},toasterNotAvailable:!1,product:i.getProduct(),printTracking:e=>{if(!e)return;const t=e.brand;delete e.brand;let a=t?"["+t+" only] ":"";return a+=JSON.stringify(e),a.replace(/:/g,": ").replace(/,/g,", ").replace(/"category":/g,"category:").replace(/"action":/g,"action:").replace(/"label":/g,"label:").replace(/"view":/g,"view:").replace(/"custom":/g,"custom:")}}},oninit(){const e={};for(const t in r){const a=r[t];"toaster"===a.type&&(e[t]=a,g[t]?.tracking&&(e[t].tracking=g[t].tracking))}this.set("predefinedWindow",e[0]),this.set("toasters",e),this.on("showPredefinedWindow",(()=>{this.showToaster(r[this.get("predefinedWindow")])})),this.on("checkToaster",(()=>{const e=r[this.get("predefinedWindow")];o.importModule(e.module,e.view).then((e=>{this.set("toasterNotAvailable",!1)})).catch((e=>{this.set("toasterNotAvailable",!0)}))})),this.on("selectText",((e,t)=>{const a=window.getSelection().toString();window.getSelection().selectAllChildren(e.node);const o=window.getSelection().toString();t&&a===o&&window.getSelection().empty()}))},showToaster(e){const t={url:location.origin+location.pathname+"?module="+e.module+"&view="+e.view+e.params,popupDuration:"toaster"===e.type?-1:void 0,width:360};a("app.windowManager.ShowToaster",t)}}),u=e.extend({router:new t,template:"{{>Component(hash)}}",css:".-error {\n  background: #f00;\n  color: #fff;\n  padding: 3px 10px;\n}\n.-success {\n  background: #00ff0a;\n  color: #000;\n  padding: 3px 10px;\n}\n",components:{Main:n,IPM:l,IPMOverride:c,fusion:w,integration:p,ctests:d,Toasters:m},data:()=>({Component:function(e){return this.partials[e]||(this.partials[e]="<"+e+"/>"),e},hash:"Main"}),oninit(){this.router.on("/",(()=>{this.set("hash","Main")})),this.router.on("/:page",(e=>{this.set("hash",e.page)}))},onteardown(){this.router.removeAllListeners()}});export default u;const v={name:"Debug",version:"1.2.372",created:"2021-09-06T10:53:11.823Z"};export{v as metadata};