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/Help.js
//{"name":"Help","version":"1.2.192","created":"2021-03-10T09:06:09.148Z"}
import e from"./ractive.js";import{productModel as t,ipmService as n}from"./napiExtensions.js";import{logger as s}from"./libs.js";import{windowApi as o,eventer as r,serviceRequest as l,napiTracker as p}from"./napi.js";const c=s.createLogger("help.tiles"),i=e.extend({template:{v:3,t:[{t:7,e:"section",a:{class:"hlp_section-cubes"},f:[{t:7,e:"Cube",v:{domClick:"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:"help",fontIcon:[{t:2,x:{r:[],s:"false"}}],svgIcon:[{t:2,x:{r:[],s:"true"}}],cssCls:"hlp_cube"}}," ",{t:7,e:"Cube",v:{domClick:"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:"forum",fontIcon:[{t:2,x:{r:[],s:"false"}}],svgIcon:[{t:2,x:{r:[],s:"true"}}],cssCls:"hlp_cube"}}," ",{t:4,f:[{t:7,e:"Cube",v:{domClick:"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:"tech-support",fontIcon:[{t:2,x:{r:[],s:"false"}}],svgIcon:[{t:2,x:{r:[],s:"true"}}],cssCls:"hlp_cube"}}],n:50,r:"isPts"}]}]},css:".hlp_section-cubes {\n  display: flex;\n  flex-direction: row;\n  flex-wrap: nowrap;\n  justify-content: center;\n  align-items: center;\n  align-content: center;\n  margin: 38px 0;\n  padding: 0;\n}\n.avs .cube.hlp_cube {\n  max-width: 33%;\n  min-width: auto;\n  min-height: 180px;\n  flex-basis: 33%;\n  flex-grow: 0;\n  flex-shrink: 1;\n  margin: 0 10px;\n}\n.avs .cube.hlp_cube .cube__icon {\n  top: 35px;\n}\n.avs .cube.hlp_cube .cube__label {\n  top: 95px;\n}\n",data:function(){return{isPts:!1}},oninit(){this.setPtsFlag(),this.on("helpOpen.help",(()=>{if(t.isAfbEdition())return o.browse("https://www.avast.com/business/support");r.emit("help")})),this.on("helpOpen.forum",(()=>"omni"===t.getProduct()?o.browse("https://forum.avast.com/index.php?board=107.0"):t.isAfbEdition()?o.browse("https://forum.avast.com/index.php?board=77.0"):l("app.utils.GetUrlParameters",92).then((e=>(c.debug("url acquired",e),o.browse(e+"&action=2")))).then((()=>{c.debug("url opened")})).catch((e=>{c.error("cannot get or open url",JSON.stringify(e))})))),this.on("helpOpen.techSupport",(()=>n.openWindow(94)))},setPtsFlag:function(){return l("app.settings.Get",{name:"avdef://config/GuiCache/ShowPaidSupport"}).then((e=>{e&&e.value&&this.set("isPts",parseInt(e.value))})).catch((e=>{c.error("cannot get or open url",JSON.stringify(e))}))}});const a=function(t,n){return e.extend({template:t,css:n,components:{Tiles:i},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:"h3",a:{id:"help-title",class:"h3 -center"},f:[{t:3,x:{r:["nls"],s:'_0("help.title")'}}]}," ",{t:7,e:"Tiles"}]}]},"");export default a;const u={name:"Help",version:"1.2.192",created:"2021-03-10T09:06:09.148Z"};export{u as metadata};