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/napiAdapter.js
//{"name":"napiAdapter","version":"1.2.362","created":"2021-09-06T10:46:19.381Z"}
import{debugMode as t,eventer as i,windowApi as e,moduleManager as n,napiTracker as s,EventEmitter as o,serviceRequest as E,onlineChecker as r}from"./napi.js";import{ipmService as h,productModel as a,fusionRequest as d,licensesRequest as l}from"./napiExtensions.js";import{logger as m}from"./libs.js";window.NAPI=window.NAPI||new class{constructor(){this._DEBUG=t.isEnabled(),this._FUSION_REQUEST_REGEX=/^fusion\.?/,this._LICENSES_REQUEST_REGEX=/^licenses\.?/,t.on("enabledChanged",(t=>this._DEBUG=t)),this.on=i.on,this.emit=e.broadcastEvent,this.emitInternal=i.emit,this.module=n.importModule,this.moduleDefinition=n.getModuleDefs,this.openIpmWindow=h.openWindow.bind(h),this.openIpmBrowser=h.openBrowser.bind(h),this.windowApi=e,this.Window=e,this.MainWindow=e,this.browse=e.browse,this.loggerManager=m,this.ProductModel=a,this.track=s,this.EventEmitter=o,this.request=(t,i,e=!0)=>this._FUSION_REQUEST_REGEX.test(t)?d(t.replace(this._FUSION_REQUEST_REGEX,""),i):this._LICENSES_REQUEST_REGEX.test(t)?l(t.replace(this._LICENSES_REQUEST_REGEX,"")):E(t,i,e),this.onLine=r.isOnlineSync(),r.on("online",(()=>{this.onLine=!0,this.emit("online")})),r.on("offline",(()=>{this.onLine=!1,this.emit("offline")}))}set DEBUG(i){t.setEnabled(i)}get DEBUG(){return this._DEBUG}};const _=window.NAPI,p=_.EventEmitter;export default _;export{p as EventEmitter};const w={name:"napiAdapter",version:"1.2.362",created:"2021-09-06T10:46:19.381Z"};export{w as metadata};