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/default_av/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : C:/Program Files/Avast Software/Avast/gui_resources/default_av/Debug.js
//{"name":"Debug","version":"1.2.159","created":"2021-03-09T09:34:21.241Z"}
import e from"./ractive.js";import{Router as t}from"./libs.js";import{serviceRequest as a}from"./napi.js";const s={cyberCapture_detection:{title:"cyberCapture:detection",module:"Shields",view:"cyberCaptureDetection",params:"&id=cyberCapture",type:"detection"},passwordProtection_detection:{title:"passwordProtection:detection",module:"passwordProtection",view:"detection",params:"&file=fileMock&actor=actorMock&browserName=browserNameMock",type:"detection"},ras_detection:{title:"ras:detection",module:"ras",view:"detection",params:"",type:"detection"},scans_scanProgress:{title:"scans:scanProgress",module:"Scans",view:"scanProgressToaster",params:"&scanId=1",type:"toaster"},scans_appBanned:{title:"scans:appBanned",module:"Scans",view:"appBannedToaster",params:"&appName=Internet ExploDer&appGuid=appGuid",type:"toaster"},scans_oldVirusDefinitions:{title:"scans:oldVirusDefinitions",module:"Scans",view:"oldVirusDefinitionsToaster",params:"",type:"toaster"},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_profileChange:{title:"firewall:profileChange",module:"Firewall",view:"profileChangeToaster",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_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_ruleApplied:{title:"firewall:ruleApplied",module:"Firewall",view:"ruleAppliedToaster",params:"&appName=Internet ExploDer&appGuid=appGuid",type:"toaster"},secureline_unsecuredNet:{title:"secureline:unsecuredNet",module:"SecureLine",view:"unsecuredNetToaster",params:"&ssid=Network 1",type:"toaster"},secureline_connectionChange_connected:{title:"secureline:connectionChange:connected",module:"SecureLine",view:"connectionChangeToaster",params:"&connected=1",type:"toaster"},secureline_connectionChange_disconnected:{title:"secureline:connectionChange:disconnected",module:"SecureLine",view:"connectionChangeToaster",params:"&connected=0",type:"toaster"},passwords_extensionActivationToaster:{title:"passwords:extensionActivationToaster",module:"PrivacyPasswords",view:"extensionActivationToaster",params:"&browser=chrome",type:"toaster"},gaming_gameAdded:{title:"gaming:gameAdded",module:"PerformanceGaming",view:"gameAddedToaster",params:"&gamePath=\\games\\game01.exe",type:"toaster"},smartScan_scanProgress:{title:"smartScan:scanProgress",module:"SmartScan",view:"scanProgressToaster",params:"",type:"toaster"},network_scanProgress:{title:"network:scanProgress",module:"SecurityNetwork",view:"scanProgressToaster",params:"",type:"toaster"},webcam_access:{title:"webcamshield:accessToaster",module:"WebCam",view:"accessToaster",params:"&appName=Skype",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_wrongTime:{title:"system:wrongTime",module:"System",view:"wrongTimeToaster",params:"",type:"toaster"},darkWebMonitor_leakAlert:{title:"darkWebMonitor:leakAlertToaster",module:"DarkWebMonitor",view:"leakAlertToaster",params:"&leak_count=1&site=yahoo.com",type:"toaster"}},o=["window","detection","toaster","modaless","modal"],i=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:"kin-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:"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:o,PREDEFINED_WINDOWS:s,windowModule:localStorage.debug_windowModule||"MainLayout",windowView:localStorage.debug_windowView||"default",windowParams:localStorage.debug_windowParams||"",windowType:localStorage.debug_windowType||o[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(s[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 o[0]:case o[1]:a("app.windowManager.ShowWindow",t);break;case o[2]:a("app.windowManager.ShowToaster",t);break;case o[3]:a("app.windowManager.ShowModaless",t);break;case o[4]:a("app.windowManager.ShowModal",t);break;default:a("app.windowManager.ShowWindow",t)}}}),r=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})))}}),n=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:"button",v:{click:{n:"deleteItem",d:[{t:2,r:"index"}]}},a:{class:"btn -small -secondary -icon-only"},f:[{t:7,e:"i",a:{class:"icon -x"}}]}]}]}],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:"button",v:{click:"addItem"},a:{class:"btn -primary"},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)}}),l=e.extend({template:{v:3,t:[{t:7,e:"iframe",a:{src:"res://debug/cdebug.html",style:"width: 100%; height: 100%;"}}]}}),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:["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")}}),d=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.log("IPM error event",e)}))}}),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:i,IPM:r,IPMOverride:n,fusion:c,integration:d,ctests:l},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=>{console.log("Debug Params",e),this.set("hash",e.page)}))},onteardown(){this.router.removeAllListeners()}});export default u;const p={name:"Debug",version:"1.2.159",created:"2021-03-09T09:34:21.241Z"};export{p as metadata};