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/Help.js
//{"name":"Help","version":"1.2.401","created":"2021-09-06T10:41:36.775Z"}
import e from"./ractive.js";import{productModel as t,ipmService as s}from"./napiExtensions.js";import{logger as n}from"./libs.js";import{windowApi as l,eventer as i,serviceRequest as r,napiTracker as p}from"./napi.js";const o=n.createLogger("help.tiles"),a=e.extend({template:{v:3,t:[{t:7,e:"section",a:{class:"hlp_tiles"},f:[{t:7,e:"kin-tile",v:{click:"helpOpen.help"},a:{label:[{t:3,x:{r:["nls"],s:'_0("help.cube.label.help")'}}],desc:[{t:3,x:{r:["nls"],s:'_0("help.cube.desc.help")'}}],icon:"icon-m-rescue",fluid:"true",class:"hlp_tile","data-test":"tile_help"}}," ",{t:7,e:"kin-tile",v:{click:"helpOpen.forum"},a:{label:[{t:3,x:{r:["nls"],s:'_0("help.cube.label.forum")'}}],desc:[{t:3,x:{r:["nls"],s:'_0("help.cube.desc.forum")'}}],icon:"icon-l-forum",fluid:"true",class:"hlp_tile","data-test":"tile_forum"}}," ",{t:4,f:[{t:7,e:"kin-tile",v:{click:"helpOpen.techSupport"},a:{label:[{t:3,x:{r:["nls"],s:'_0("help.cube.label.techSupport")'}}],desc:[{t:3,x:{r:["nls"],s:'_0("help.cube.desc.techSupport")'}}],icon:"icon-l-premium-support",fluid:"true",class:"hlp_tile","data-test":"tile_support"}}],n:50,r:"isPts"}]}]},css:".hlp_tile {\n  width: 32vw;\n  height: 31vh;\n  margin: 1rem;\n}\n.hlp_tiles {\n  display: flex;\n  flex-wrap: wrap;\n  justify-items: center;\n  justify-content: center;\n  margin-top: 2rem;\n}\n",data:function(){return{isPts:!1}},oninit(){this.setPtsFlag(),this.on("helpOpen.help",(()=>{if(t.isAfbEdition())return l.browse("https://www.avast.com/business/support");i.emit("help")})),this.on("helpOpen.forum",(()=>"omni"===t.getProduct()?l.browse("https://forum.avast.com/index.php?board=107.0"):t.isAfbEdition()?l.browse("https://forum.avast.com/index.php?board=77.0"):r("app.utils.GetUrlParameters",92).then((e=>(o.debug("url acquired",e),l.browse(e+"&action=2")))).then((()=>{o.debug("url opened")})).catch((e=>{o.error("cannot get or open url",JSON.stringify(e))})))),this.on("helpOpen.techSupport",(()=>s.openWindow(94)))},setPtsFlag:function(){return r("app.settings.Get",{name:"avdef://config/GuiCache/ShowPaidSupport"}).then((e=>{e&&e.value&&this.set("isPts",parseInt(e.value))})).catch((e=>{o.error("cannot get or open url",JSON.stringify(e))}))}});const c=function(t,s){return e.extend({template:t,css:s,components:{Tiles:a},oninit(){p.view("Help"),this.screenReady()}})}({v:3,t:[{t:7,e:"Screen",a:{title:[{t:3,x:{r:["nls"],s:'_0("help")'}}]},f:[{t:7,e:"h2",a:{id:"help-title",class:"h2 -center g-margin-top--40"},f:[{t:3,x:{r:["nls"],s:'_0("help.title")'}}]}," ",{t:7,e:"Tiles"}]}]});export default c;const h={name:"Help",version:"1.2.401",created:"2021-09-06T10:41:36.775Z"};export{h as metadata};