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/ |
//{"name":"Software","version":"1.2.647","created":"2021-09-06T13:05:21.212Z"} import t from"./ractive.js";import{productModel as e,ipmService as s,napiUtils as a}from"./napiExtensions.js";import{logger as o}from"./libs.js";import{eventer as r,serviceRequest as n,napiTracker as i}from"./napi.js";import{nls as d}from"./i18n.js";import{modals as l}from"./ractiveComponents.js";const c=Date.now()-12096e5,u=a.supportedSince("21.4"),p={ready:"ready",running:"running",stopping:"stopping",stopped:"stopped",offline:"offline",starting:"starting"},h={PROGRAM_RUNNING:"4",REBOOT_REQUIRED:"5",PROGRAM_RUNNING_USR2:"7"},f={upToDate:"UPTODATE",checking:"CHECKING",readyToInstall:"READYTOINSTALL",updateAvailable:"UPDATEAVALIABLE",waitForAutoInstall:"WAITFORAUTOINSTALL",installing:"INSTALLING",downloading:"DOWNLOADING",failed:"FAILED"},g={updated:"updated",outdated:"outdated",ignored:"ignored",recentlyUpdated:"recentlyUpdated"},_={loading:0,done:1,failed:2},S=function(){const t={};for(const e in g)t[e]=[];return t},b=function(){const t={};return t[g.outdated]=0,t[g.ignored]=0,t},w=new t({data:()=>({STATUSES:p,PRODUCT_STATUSES:f,PRODUCT_TYPES:g,INIT_STATUSES:_,ERRORS:h,initStatus:_.loading,pendingUpdates:0,status:null,autoUpdate:!1,products:S(),productConfigs:{},selectedProductCounts:b(),selectedProducts:[],selectableProducts:[]}),_userCount:0,initialize(t=!0){0===this._userCount&&(this.log=o.createLogger("softwareupdater.serviceProxy"),this.log.info("init"),this.scanOnInit=t,this.iconCache={},this.updateStatusTimeoutIds=[],this.set("products",S()),this.observe("products.updated",(t=>{setTimeout((()=>{const e=t.filter((t=>null==t.updateTimestamp||1e3*t.updateTimestamp>c));this.merge("products.recentlyUpdated",e,{compare:"productId"})}))})),this.observe("products.outdated",(()=>{setTimeout((()=>{let t=this.get("products.outdated");const e=this.get("productConfigs");if(this.isSmartScanV2){const e=this.get("productConfigs");t=t.filter((t=>{const s=[p.failed,p.waitForAutoInstall,p.updateAvailable].indexOf(t.status)>-1,a=e[t.productId].justUpdated;return e[t.productId].canBeSelected&&(s||!a)}))}this.set("selectableProducts",t);const s=t.filter((t=>e[t.productId]?.selected&&!e[t.productId]?.justUpdated)).map((t=>t.productId));this.set("selectedProducts",s)}))})),this.observe("productConfigs",(()=>{this._updatedSelectedProductCounts()})),this._offStatusChanged=r.on("softwareupdater.onStatusChanged",this._onStatusChanged.bind(this)),this._startRefreshingModel(),this.updateStatus()),this._userCount++},setSmartScanV2(t){this.isSmartScanV2=!!t},destroy(){this._userCount=Math.max(this._userCount-1,0),0===this._userCount&&(this.setSmartScanV2(!1),this.teardown(),this._offStatusChanged&&this._offStatusChanged(),this._stopRefreshingModel(),this.updateStatusTimeoutIds.length&&this.updateStatusTimeoutIds.forEach((t=>{clearTimeout(t)})),this.set({initStatus:_.loading,status:null,autoUpdate:!1,products:S(),productConfigs:{},selectedProductCounts:b(),selectedProducts:[],selectableProducts:[]}),this.initialized=!1)},updateStatus(){return this.log.info("updating status data"),n("app.softwareupdater.GetStatus").then((t=>{this.log.info("status data successfully updated"),this._onStatusChanged(t)})).catch((t=>{throw this.log.error("updating status data failed",t),this.get("initStatus")!==_.done&&this.set("initStatus",_.failed),t}))},toggleProductSelection(t){const e=!this.get("productConfigs."+t+".selected");this.get("productConfigs."+t+".canBeSelected")?(this.log.info("toggle selection; productId: "+t+", newValue: "+e),this.set("productConfigs."+t+".selected",e)):(this.log.warn("rejecting to toggle selection.. setting it to false; productId: "+t),this.set("productConfigs."+t+".selected",!1))},toggleProductExpansion(t){const e=!this.get("productConfigs."+t+".expanded");this.log.info("toggle expansion; productId: "+t+", newValue: "+e),this.set("productConfigs."+t+".expanded",e)},scanProducts(){return this.log.info("scanning new products"),n("app.softwareupdater.Scan")},isAutoUpdateLicensed(){const t=e.getProduct();return["premier","business","business_soho","omni","asop","one_pro","one_free"].includes(t)},upgrade(){return this.log.info("autoUpdate is not allowed for current license.. opening NAG"),s.openWindow(343),Promise.resolve()},toggleAutoUpdate(){if(this.isAutoUpdateLicensed()){const t=this.get("autoUpdate");return this.log.info("switching autoUpdate "+(t?"off":"on")),n("app.softwareupdater."+(t?"Disable":"Enable")+"AutoUpdate").then((()=>this.set("autoUpdate",!t)))}return this._openCuSwUpdater()},_openCuSwUpdater(){return n("app.avast.lis.get.install",{ids:["cleanup"]}).then((t=>!0===((t&&t.products||{}).cleanup||{}).installed)).then((t=>t?n("public.Cleanup.UI.OpenMainWindow",{view:"software-updater"}):this.upgrade())).catch((t=>t&&t.exception&&4294967295===t.exception.code?n("app.avast.lis.open.ui",{id:"cleanup"}).then((()=>{setTimeout((()=>{n("public.Cleanup.UI.OpenMainWindow",{view:"software-updater"})}),1500)})):this.upgrade()))},start(){return this.log.info("starting software updater"),n("app.softwareupdater.StartSoftwareUpdater")},stop(){return this.log.info("stopping software updater"),n("app.softwareupdater.StopSoftwareUpdater")},updateSelectedProducts(){this.log.info("gonna updated selected products");const t=this._getSelectedProductIds(g.outdated);return t.length?(t.forEach((t=>{this._cancelProductExpansion(t)})),n("app.softwareupdater.UpdateSoftwareList",{softwareIDs:t}).then(this.updateStatus.bind(this))):(this.log.warn("no product selected.. should not have got here"),Promise.reject())},updateProduct(t){return this.log.info("gonna update product; productId: "+t),n("app.softwareupdater.UpdateSoftwareList",{softwareIDs:[t]})},ignoreSelectedProducts(){this.log.info("gonna ignore selected products");const t=this._getSelectedProductIds(g.outdated);return t.length?(t.forEach((t=>{this._cancelProductExpansion(t)})),n("app.softwareupdater.IgnoreSoftwareList",{softwareIDs:t}).then(this.updateStatus.bind(this))):(this.log.warn("no product selected.. should not have got here"),Promise.reject())},selectProduct(t,e){const s=this.get("selectedProducts");e?this.isProductSelected(t.productId)||s.push(t.productId):s.splice(s.indexOf(t.productId),1),this.set("productConfigs."+t.productId+".selected",e),this.set("selectedProducts",s)},selectAllProducts(t){const e=this.get("selectableProducts").filter((t=>t.productConfig?.canBeSelected));this.set("selectedProducts",[]);const s=e.map((t=>t.productId));t&&this.set("selectedProducts",s);for(const a of s)this.set("productConfigs."+a+".selected",t)},isProductSelected(t){return this.get("selectedProducts").includes(t)},isUpdateInProgress(t){const e=t&&["INSTALLING"].includes(t.status),s=this.get("productConfigs."+t.productId+".justUpdated");return e||s},ignoreProduct(t){return this.log.info("gonna ignore product; productId: "+t),this._cancelProductExpansion(t),n("app.softwareupdater.IgnoreSoftwareList",{softwareIDs:[t]})},unignoreProduct(t){return this.log.info("gonna unignore product; productId: "+t),n("app.softwareupdater.UnignoreSoftwareList",{softwareIDs:[t]})},_onStatusChanged(t){this.log.info("status data changed"),"string"==typeof(t=t||{})&&(t=JSON.parse(t));const e=this.get("status");if(this.get("initStatus")!==_.done&&!this.scanOnInit||t.status!==p.ready||e===p.ready||e===p.running){if(t.status===p.running&&this.get("status")!==p.running){this.stopStatusPolling&&this.stopStatusPolling();const t=setInterval(this.updateStatus.bind(this),3e3);this.stopStatusPolling=()=>{clearInterval(t),this.stopStatusPolling=null}}else t.status!==p.running&&this.stopStatusPolling&&this.stopStatusPolling();if(this.set("status",t.status),this.set("autoUpdate","true"===t.autoupdate_enabled),t.PRODUCTS&&t.PRODUCTS.length){const e=t.PRODUCTS.reduce(((t,e)=>t+=e.STATUS===f.installing||e.STATUS===f.downloading?1:0),0);this.set("pendingUpdates",e)}this._setProducts(t.PRODUCTS)}else this.scanProducts().catch((()=>{this.set("initStatus",_.failed)}))},_setProducts(t){this.log.info("setting products and updating their configs",t);const e=function(t){return"true"===t.HIDDEN?(this.log.info("not adding hidden product; productId: "+t.PRODUCTID),Promise.resolve()):this._loadIcon(t.ICON&&t.ICON.PATH).then((e=>{this.log.info("product icon loaded; productId: "+t.PRODUCTID);const r=t.FLAGS&&"true"===t.FLAGS.WINDOWSUPDATE;let c,u;l.push(t.PRODUCTID),n[t.PRODUCTID]=n[t.PRODUCTID]||{},"true"===t.IGNORE?c=g.ignored:s(t)?(c=g.outdated,this.log.info("marking product as justUpdated; productId: "+t.PRODUCTID),n[t.PRODUCTID].justUpdated=!0,d.push(t.PRODUCTID)):c=a(t.STATUS),this.log.info("caching product type; productId: "+t.PRODUCTID+"; productType: "+c),n[t.PRODUCTID].type=c,n[t.PRODUCTID].canBeSelected=o(t),n[t.PRODUCTID].showWizard=t.FLAGS&&"true"===t.FLAGS.SHOWWIZARD,r&&t.UPDATES&&t.UPDATES.length&&(u=t.UPDATES.map((function(t){return{title:t.TITLE,url:t.URL}}))),i[c].push({productId:t.PRODUCTID,status:t.STATUS,name:t.NAME,vendor:t.VENDOR,currentVersion:t.CURRENTVERSION,updateTimestamp:t.UPDATETIMESTAMP?parseInt(t.UPDATETIMESTAMP,16):null,remoteVersion:t.REMOTEVERSION,error:t.DISPLAYERROR,icon:e,windowsUpdate:r,releaseNotes:t.RELEASENOTES,updates:u}),n[t.PRODUCTID].selected&&!n[t.PRODUCTID].canBeSelected?(this.log.info("unselecting product; productId: "+t.PRODUCTID),delete n[t.PRODUCTID].selected):t.STATUS===f.failed&&(n[t.PRODUCTID].selected=!0),this.log.info("product added; productId: "+t.PRODUCTID)}))}.bind(this),s=function(t){return t.STATUS===f.upToDate&&n[t.PRODUCTID].type===g.outdated}.bind(this),a=function(t){let e;switch(t){case f.upToDate:case f.checking:e=g.updated;break;case f.readyToInstall:case f.updateAvailable:case f.downloading:case f.installing:case f.waitForAutoInstall:case f.failed:e=g.outdated}return e}.bind(this),o=function(t){if(this.isSmartScanV2)return[f.readyToInstall,f.installing,f.downloading,f.upToDate].indexOf(t.STATUS)>-1;const e=[f.installing,f.downloading,f.upToDate];return!e.includes(t.STATUS)}.bind(this),r=function(){const t=this.get("productConfigs");d.forEach((e=>{const s=this.updateStatusTimeoutIds.indexOf(u);this.updateStatusTimeoutIds.splice(s,1),t[e]&&(delete t[e].justUpdated,t[e].type=g.updated)})),this.set("productConfigs",t),this.updateStatus()}.bind(this),n=this.get("productConfigs"),i=S(),d=[],l=[],c=[];let u;t&&t.length&&t.forEach((t=>{c.push(e(t))})),Promise.all(c).then((()=>{this.log.info("all products already added/processed"),!this.isSmartScanV2&&d.length&&(u=setTimeout(r,4e3),this.updateStatusTimeoutIds.push(u));for(const t in n)-1===l.indexOf(t)&&(this.log.info("removing product config; productId: "+t),delete n[t]);this.log.info("products set and configs updated successfully");for(const t in g)i[t].sort((function(t,e){const s=t.name.toLowerCase(),a=e.name.toLowerCase();return s<a?-1:s>a?1:0})),this.merge("products."+t,i[t],{compare:"productId"});this.set("productConfigs",n),this.set("initStatus",_.done)}))},_startRefreshingModel(){u||this._modelRefreshCallInProgress||this._modelRefreshActive||(this._modelRefreshCallInProgress=!0,n("app.softwareupdater.StartAutomaticRefreshModel").then((()=>{this._modelRefreshActive=!0})).catch((t=>{console.error("app.softwareupdater.StartAutomaticRefreshModel",t)})).finally((()=>{this._modelRefreshCallInProgress=!1})))},_stopRefreshingModel(){u||!this._modelRefreshCallInProgress&&this._modelRefreshActive&&(this._modelRefreshCallInProgress=!0,n("app.softwareupdater.StopAutomaticRefreshModel").then((()=>{this._modelRefreshActive=!1})).catch((t=>{console.error("app.softwareupdater.stopAutomaticRefreshModel",t)})).finally((()=>{this._modelRefreshCallInProgress=!1})))},_cancelProductExpansion(t){this.set("productConfigs."+t+".expanded",!1)},_getSelectedProductIds(t){const e=this.get("productConfigs"),s=[];return this.get("products."+t).forEach((t=>{e[t.productId].selected&&s.push(t.productId)})),s},_getSelectedProductCount(t){const e=this.get("productConfigs");let s=0;return this.get("products."+t).forEach((t=>{e[t.productId].selected&&s++})),this.log.debug("selected product count: "+s),s},_updatedSelectedProductCounts(){this.log.info("updating selected product counts");const t=this.get("selectedProductCounts");for(const e in t)t[e]=this._getSelectedProductCount(e);this.set("selectedProductCounts",t)},_loadIcon(t){return t?this.iconCache[t]?Promise.resolve(this.iconCache[t]):n("app.utils.GetShellIcon",{path:t.replace(/\\\\/g,"\\"),size:"large"}).then((e=>(this.iconCache[t]=e.data,e.data))).catch((t=>{this.log.error("Loading icon failed",t)})):Promise.resolve()}}),m=w.get("STATUSES"),T=w.get("PRODUCT_STATUSES");const x=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"swu_status-handler"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:4,f:[{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("global.error")'}}]}," ",{t:7,e:"kin-button",v:{click:"updateStatus"},a:{size:"large",class:"g-margin-top--20"},f:[{t:3,x:{r:["nls"],s:'_0("global.refresh")'}}]}],n:50,x:{r:["initStatus","INIT_STATUSES.failed"],s:"_0===_1"}},{t:4,n:51,f:[{t:7,e:"kin-loading"}],x:{r:["initStatus","INIT_STATUSES.failed"],s:"_0===_1"}}]}]}],n:50,x:{r:["INIT_STATUSES.loading","initStatus","INIT_STATUSES.failed"],s:"_1===_0||_1===_2"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["initStatus","INIT_STATUSES.done"],s:"_0===_1"},f:[{t:4,f:[{t:7,e:"div",a:{class:"swu_status-handler"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:4,f:[{t:7,e:"kin-loading",a:{label:[{t:2,x:{r:["nls"],s:'_0("softwarehealth.scanning")'}}]}}],n:50,x:{r:["status","STATUSES.running"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["status","STATUSES.starting"],s:"_0===_1"},f:[{t:7,e:"kin-loading",a:{label:[{t:2,x:{r:["nls"],s:'_0("softwarehealth.enabling")'}}]}}]},{t:4,n:50,x:{r:["STATUSES.starting","status","STATUSES.stopping"],s:"(!(_1===_0))&&(_1===_2)"},f:[" ",{t:7,e:"kin-loading",a:{label:[{t:2,x:{r:["nls"],s:'_0("softwarehealth.disabling")'}}]}}]},{t:4,n:50,x:{r:["STATUSES.starting","status","STATUSES.stopping"],s:"(!(_1===_0))&&(!(_1===_2))"},f:[" ",{t:7,e:"kin-loading",a:{label:[{t:2,x:{r:["nls"],s:'_0("global.loading")'}}]}}]}],x:{r:["status","STATUSES.running"],s:"_0===_1"}}]}]}],n:50,x:{r:["STATUSES.stopping","STATUSES.running","STATUSES.starting","status","STATUSES.offline"],s:"_3===_0||_3===_1||_3===_2||_3===_4"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["status","STATUSES.stopped"],s:"_0===_1"},f:[{t:7,e:"div",a:{class:"swu_status-handler"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.disabled")'}}]}," ",{t:7,e:"kin-button",v:{click:"start"},a:{size:"large",class:"g-margin-top--20"},f:[{t:3,x:{r:["nls"],s:'_0("global.enable")'}}]}]}]}]},{t:4,n:50,x:{r:["STATUSES.stopped","status","STATUSES.ready"],s:"(!(_1===_0))&&(_1===_2)"},f:[" ",{t:7,e:"div",f:[{t:16}]}]}],x:{r:["STATUSES.stopping","STATUSES.running","STATUSES.starting","status","STATUSES.offline"],s:"_3===_0||_3===_1||_3===_2||_3===_4"}}]}],x:{r:["INIT_STATUSES.loading","initStatus","INIT_STATUSES.failed"],s:"_1===_0||_1===_2"}}]},data:()=>({STATUSES:w.get("STATUSES"),INIT_STATUSES:w.get("INIT_STATUSES"),initStatus:w.get("initStatus"),status:w.get("status")}),oninit(){w.observe("initStatus",(t=>{this.set("initStatus",t)})),w.observe("status",(t=>{this.set("status",t)})),this.on("start",this.start.bind(this)),this.on("updateStatus",this.updateStatus.bind(this))},start(){w.start().catch((()=>{l.inform(d("softwarehealth.start.error"))}))},updateStatus(){w.updateStatus().catch((()=>{l.inform(d("softwarehealth.updateStatus.error"))}))}});var v="[slot='table-header'],\n.kin_table__row {\n grid-template-columns: 3.5rem 5% 25% 40% auto 5%;\n}\n[slot='table-header'].-smartscanV2,\n.kin_table__row.-smartscanV2 {\n grid-template-columns: 3.5rem 5rem 25% auto 25%;\n}\n.swu_icon {\n width: 3.2rem;\n height: 3.2rem;\n background-size: 100%;\n}\n.swu_sub-icon {\n position: absolute;\n top: 55%;\n left: 2.5rem;\n}\n.swu_status-handler {\n margin-top: 150px;\n}\n.swu_settings-upgradeBtn {\n margin-left: 25px;\n}\n.swu_details {\n margin: 0 11rem;\n}\n.swu_congrats {\n text-align: center;\n padding: 10px 0 30px;\n}\n.swu_congrats__icon {\n border-radius: 100px;\n font-size: 50px;\n width: 80px;\n height: 80px;\n text-align: center;\n line-height: 78px;\n border-style: solid;\n border-width: 1px;\n margin-bottom: 15px;\n}\n.swu_banner {\n background: #e9eaee;\n padding: 10px 59px 10px 60px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-around;\n margin-top: 20px;\n border: solid 1px #eee;\n}\n.swu_banner a.a {\n color: inherit;\n}\n.swu_banner__icon {\n font-size: 40px;\n margin-right: 25px;\n}\n.swu_banner__text {\n flex-grow: 1;\n}\n.swu_banner .default-browser {\n clear: both;\n}\n.swu_banner .default-browser div:first-child {\n max-width: 420px;\n}\n.swu_banner .terms-text-right {\n float: right;\n max-width: 210px;\n font-size: 1rem;\n text-align: right;\n}\n[dir=rtl] .swu_banner {\n padding: 10px 50px 10px 59px;\n}\n[dir=rtl] .swu_banner__icon {\n font-size: 40px;\n margin-right: 0;\n margin-left: 30px;\n}\n[dir=rtl] .swu_auto-update {\n float: left;\n}\n";const P=function(e){return t.extend({template:e,data:()=>({STATUSES:T,ERRORS:w.get("ERRORS"),TYPES:w.get("PRODUCT_TYPES"),product:{},ignorable:!0,selectedByDefault:!1,selectable:!0,status:w.get("status")}),computed:{isSelected:{set:function(){},get:function(){return this.get("product.productConfig.selected")}},isServiceReady:function(){return w.get("status")===m.ready}},oninit(){w.observe("status",(t=>{this.set("status",t)})),this.unregisterConfigObserver=w.observe("productConfigs."+this.get("product.productId"),(t=>{this.set("product.productConfig",t)})).cancel,this.set("product.productConfig",w.get("productConfigs."+this.get("product.productId"))),this.on("updateProduct",this.updateProduct.bind(this)),this.on("ignoreProduct",this.ignoreProduct.bind(this)),this.on("toggleProduct",((t,e)=>{w.selectProduct(e,t.node.checked)}))},onrender(){const t=this.get("product");this.get("selectedByDefault")&&t.productConfig.canBeSelected&&w.selectProduct(t,!0)},onteardown(){this.unregisterConfigObserver&&this.unregisterConfigObserver()},getProduct(){return this.get("product")||{}},updateProduct(){const t=this.getProduct();w.updateProduct(t.productId).catch((()=>{l.inform(d("softwarehealth.updateProduct.error",t.name))}))},ignoreProduct(){const t=this.get("product");w.ignoreProduct(t.productId).catch((()=>{l.inform(d("softwarehealth.ignoreProduct.error",t.name))}))}})}({v:3,t:[{t:7,e:"div",a:{role:"row",class:["kin_table__row ",{t:2,x:{r:["isSelected"],s:'_0?"-selected":""'}}],"data-test":["table-row-",{t:2,r:"@index"}],"aria-rowindex":[{t:2,r:"@index"}]},f:[{t:4,f:[{t:7,e:"input",v:{click:{n:"toggleProduct",d:[{t:2,r:"product"}]}},a:{type:"checkbox",class:"checkbox",checked:[{t:2,r:"isSelected"}],disabled:[{t:2,x:{r:["product.productConfig.canBeSelected","STATUSES.downloading","product.status","STATUSES.installing"],s:"!_0||_2===_1||_2===_3"}}],title:[{t:2,x:{r:["nls"],s:'_0("global.selectItem")'}}],id:["swu-item-",{t:2,r:"@index"}]}}],n:50,r:"selectable"},{t:4,n:51,f:[{t:7,e:"div"}],r:"selectable"}," ",{t:7,e:"div",f:[{t:7,e:"ImgIcon",a:{src:["data:gif/png;base64,",{t:2,r:"product.icon"}],cssCls:"g-font--24"}}]}," ",{t:7,e:"div",a:{class:"kin_table__name"},f:[{t:7,e:"label",a:{for:["swu-item-",{t:2,r:"@index"}]},f:[{t:2,r:"product.name"}]}]}," ",{t:7,e:"div",f:[{t:4,f:[{t:7,e:"p",a:{class:"p color-danger -text"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.userFix")'}}]}],n:50,x:{r:["product.status","STATUSES.updateAvailable"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["product.status","STATUSES.failed"],s:"_0===_1"},f:[{t:7,e:"p",a:{class:"p color-danger -text"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.updateFailed")'}}]}]},{t:4,n:50,x:{r:["STATUSES.failed","product.status","STATUSES.waitForAutoInstall"],s:"(!(_1===_0))&&(_1===_2)"},f:[" ",{t:7,e:"div",f:[{t:7,e:"p",a:{class:"p color-danger -text"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.status.waitForAutoInstall")'}}]}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.error.programRunning")'}}],n:50,x:{r:["product.error","ERRORS.PROGRAM_RUNNING"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["product.error","ERRORS.REBOOT_REQUIRED"],s:"_0===_1"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.error.rebootRequired")'}}]},{t:4,n:50,x:{r:["ERRORS.REBOOT_REQUIRED","product.error","ERRORS.PROGRAM_RUNNING_USR2"],s:"(!(_1===_0))&&(_1===_2)"},f:[" ",{t:3,x:{r:["nls"],s:'_0("softwarehealth.error.anotherUserRunsProgram")'}}]}],x:{r:["product.error","ERRORS.PROGRAM_RUNNING"],s:"_0===_1"}}]}]}]},{t:4,n:50,x:{r:["STATUSES.failed","product.status","STATUSES.waitForAutoInstall","product.productConfig.type","TYPES.updated"],s:"(!(_1===_0))&&((!(_1===_2))&&(_3===_4))"},f:[" ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls","product.currentVersion"],s:'_0("softwarehealth.appCurrentVersion",_1)'}}]}]},{t:4,n:50,x:{r:["STATUSES.failed","product.status","STATUSES.waitForAutoInstall","product.productConfig.type","TYPES.updated"],s:"(!(_1===_0))&&((!(_1===_2))&&(!(_3===_4)))"},f:[" ",{t:7,e:"p",a:{class:"p"},f:[{t:2,r:"product.currentVersion"}," > ",{t:3,x:{r:["nls","product.remoteVersion"],s:'_0("softwarehealth.appNewVersion",_1)'}}," ",{t:4,f:[{t:7,e:"br"}," ",{t:7,e:"a",a:{class:"a",href:[{t:2,r:"product.releaseNotes"}]},v:{click:"browser"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.changeLog")'}}]}],n:50,x:{r:["product.windowsUpdate","product.releaseNotes"],s:"!_0&&_1"}}," ",{t:4,f:[{t:7,e:"br"}," ",{t:3,x:{r:["nls"],s:'_0("softwarehealth.changeLog")'}}," ",{t:4,f:[{t:7,e:"a",a:{href:[{t:2,r:"url"}],class:"a g-margin-left--5"},v:{click:"browser"},f:[{t:2,r:"title"}]}],n:52,i:"i",r:"product.updates"}],n:50,x:{r:["product.windowsUpdate","product.updates","product.updates.length"],s:"_0&&_1&&_2"}}]}]}],x:{r:["product.status","STATUSES.updateAvailable"],s:"_0===_1"}}]}," ",{t:7,e:"div",a:{class:"kin_table__end"},f:[{t:4,f:[{t:7,e:"p",a:{class:"p -small"},f:[{t:7,e:"span",a:{class:"spinner -tiny g-margin-right--5"}}," ",{t:3,x:{r:["nls"],s:'_0("softwarehealth.downloading")'}}]}],n:50,x:{r:["product.status","STATUSES.downloading"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["product.status","STATUSES.installing"],s:"_0===_1"},f:[{t:7,e:"p",a:{class:"p -small"},f:[{t:7,e:"span",a:{class:"spinner -tiny g-margin-right--5"}}," ",{t:3,x:{r:["nls"],s:'_0("softwarehealth.installing")'}}]}]},{t:4,n:50,x:{r:["product.status","STATUSES.installing","productConfig.justUpdated"],s:"(!(_0===_1))&&(_2)"},f:[" ",{t:7,e:"p",a:{class:"p -small color-ok -text"},f:[{t:7,e:"Icon",a:{name:"tick",cssCls:"g-margin-right--5"}},{t:3,x:{r:["nls"],s:'_0("global.done")'}}]}]},{t:4,n:50,x:{r:["product.status","STATUSES.installing","productConfig.justUpdated","productConfig.type","TYPES.outdated"],s:"(!(_0===_1))&&((!(_2))&&(_3===_4))"},f:[" ",{t:7,e:"kin-button",a:{type:"secondary",size:"small"},v:{click:"updateProduct"},f:[{t:3,x:{r:["nls"],s:'_0("global.updateNow")'}}]}]}],x:{r:["product.status","STATUSES.downloading"],s:"_0===_1"}}]}," ",{t:7,e:"div",a:{class:"kin_table__actions"},f:[{t:4,f:[{t:7,e:"kin-tooltip",f:[{t:7,e:"div",a:{slot:"tooltip-activator"},f:[{t:7,e:"kin-button",v:{click:"ignoreProduct"},a:{size:"tiny",type:"blank",icononly:"true",title:[{t:2,r:"product.name"}," - ",{t:3,x:{r:["nls"],s:'_0("softwarehealth.ignore")'}}]},f:[{t:7,e:"kin-icon",a:{name:"icon-s-controls-close",size:"10"}}]}]}," ",{t:7,e:"div",a:{slot:"tooltip"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.ignore")'}}]}]}],n:50,x:{r:["ignorable","TYPES.updated","product.productConfig.type","TYPES.outdated"],s:"_0&&(_2===_1||_2===_3)"}}]}]}]}),U=w.get("STATUSES"),A=w.get("PRODUCT_TYPES"),I=t.extend({template:{v:3,t:[{t:7,e:"Page",a:{heading:[{t:3,x:{r:["nls"],s:'_0("softwarehealth")'}}],cssCls:"swu",settingsUrl:"#Settings/Software",backHash:"#performance"},f:[{t:7,e:"div",a:{slot:"breadcrumbs"},f:[{t:7,e:"Crumbs",a:{customBreadcrumbs:0,section:"performance",moduleId:"software",moduleTranslationId:"softwarehealth"}}]}," ",{t:7,e:"div",a:{slot:"controls",class:"g-margin-left--20"},f:[{t:7,e:"span",a:{class:"text -small g-display--inline-block"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.autoUpdates")'}}]}," ",{t:7,e:"kin-switch",a:{"data-test":"autoupdate-switcher",type:"trivial","kin-checked":[{t:2,r:"autoUpdate"}],"kin-disabled":[{t:2,x:{r:["status","STATUSES.ready"],s:"_0!==_1"}}],title:[{t:2,x:{r:["nls"],s:'_0("softwarehealth.autoUpdates")'}}],class:"g-display--inline-block"},v:{click:"toggleAutoUpdate"}}]}," ",{t:7,e:"div",a:{slot:"page-content"},f:[{t:7,e:"View",f:[{t:7,e:"div",a:{slot:"description"},f:[{t:7,e:"p",a:{class:"kin_description__text"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.desc")'}}]}]}," ",{t:7,e:"div",a:{slot:"cta"},f:[{t:4,f:[{t:7,e:"h3",a:{class:"h3"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.allIsUptodate")'}}]}],n:50,x:{r:["products.updated.length","products.outdated.length"],s:"_0&&_1===0"}}," ",{t:7,e:"kin-button",v:{click:"scanProducts"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.checkForUpdates")'}}]}," ",{t:4,f:[{t:8,r:"chrome_offer_partial"}],n:50,r:"chromeBannerVisible"}]}," ",{t:7,e:"div",a:{slot:"view-content"},f:[{t:7,e:"StatusHandler",f:[{t:4,f:[{t:4,f:[{t:7,e:"h3",a:{class:"h3 g-margin-top--60"},f:[{t:3,x:{r:["nls","products.outdated.length"],s:'_0("softwarehealth.outdatedApplications",_1)'}}]}],n:50,r:"products.outdated.length"}," ",{t:7,e:"kin-table",a:{datalength:[{t:2,r:"selectableProducts.length"}],selecteditems:[{t:2,r:"selectedProducts.length"}]},f:[{t:7,e:"div",a:{slot:"table-header",role:"row",class:"swu_table__header"},f:[{t:7,e:"input",v:{click:"selectAllProducts"},a:{type:"checkbox",class:["checkbox ",{t:4,f:["-checked"],n:50,x:{r:["selectableProducts.length","selectedProducts.length"],s:"_0===_1&&_1>0"}}],disabled:[{t:2,x:{r:["selectableProducts.length"],s:"_0===0"}}],checked:[{t:2,x:{r:["selectedProducts.length"],s:"_0>0"}}],title:[{t:2,x:{r:["nls"],s:'_0("global.selectAllItems")'}}]},m:[{t:4,f:['aria-checked="mixed"'],n:50,x:{r:["selectableProducts.length","selectedProducts.length"],s:"_0!==_1&&_1>0"}}]}," ",{t:7,e:"div"}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:3,x:{r:["nls"],s:'_0("global.appName")'}}]}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.version")'}}]}," ",{t:7,e:"div"}," ",{t:7,e:"div"}]}," ",{t:7,e:"div",a:{slot:"table-body"},f:[{t:4,f:[{t:7,e:"Item",a:{product:[{t:2,r:"."}],selectable:"true",selectedByDefault:"false",index:[{t:2,r:"@index"}]}}],n:52,r:"products.outdated"}]}," ",{t:7,e:"div",a:{slot:"table-empty-icon",class:"svg -empty-table"}}," ",{t:7,e:"div",a:{slot:"table-empty"},f:[{t:7,e:"p",f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.empty.desc")'}}]}]}]}],n:50,x:{r:["products.outdated.length","products.updated.length"],s:"_0||_1===0"}}," ",{t:4,f:[{t:7,e:"h3",a:{class:"h3 g-margin-top--60"},f:[{t:3,x:{r:["nls","products.updated.length"],s:'_0("softwarehealth.uptodateApplications",_1)'}}]}," ",{t:7,e:"kin-table",f:[{t:7,e:"div",a:{slot:"table-header",role:"row",class:"swu_table__header"},f:[{t:7,e:"div"}," ",{t:7,e:"div"}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:3,x:{r:["nls"],s:'_0("global.appName")'}}]}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.version")'}}]}," ",{t:7,e:"div"}," ",{t:7,e:"div"}]}," ",{t:7,e:"div",a:{slot:"table-body"},f:[{t:4,f:[{t:7,e:"Item",a:{product:[{t:2,r:"."}],selectable:"false",selectedByDefault:"false",index:[{t:2,r:"@index"}]}}],n:52,r:"products.updated"}]}]}],n:50,r:"products.updated.length"}]}]}," ",{t:7,e:"div",a:{slot:"view-actions"},f:[{t:7,e:"div",a:{class:"kin_actions__left"},f:[{t:3,x:{r:["nls","selectedProducts.length"],s:'_0("softwarehealth.applicationsSelected",_1)'}}]}," ",{t:7,e:"div",f:[{t:7,e:"kin-button",a:{size:"small"},v:{click:"ignoreSelectedProducts"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.ignore")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:3,x:{r:["nls"],s:'_0("global.escToDeselect")'}}]}]}]}]}]}," "],p:{chrome_offer_partial:[{t:7,e:"div",a:{class:"swu_banner color-dark -text"},t1:{n:"animatecss",a:"flipInX"},t2:{n:"animatecss",a:"bounceOutRight"},f:[{t:7,e:"span",a:{class:"svg -chrome swu_banner__icon"}}," ",{t:4,f:[{t:7,e:"div",a:{class:"swu_banner__text"},f:[{t:7,e:"h4",a:{class:"boxlist__title"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.googleChrome")'}}]}," ",{t:7,e:"p",a:{class:"p -tiny"},f:[{t:3,r:"googleChromeDesc"}]}]}," ",{t:7,e:"kin-button",a:{class:"swu_banner__btn",type:"secondary",size:"small"},v:{click:"installChrome"},f:[{t:3,x:{r:["nls"],s:'_0("global.install")'}}]}],n:50,r:"isWin10AndHigher"},{t:4,n:51,f:[{t:7,e:"div",a:{class:"swu_banner__text"},f:[{t:7,e:"div",f:[{t:7,e:"h4",a:{class:"boxlist__title g-float--left"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.googleChrome")'}}]}," ",{t:7,e:"kin-button",a:{class:"swu_banner__btn g-float--right",type:"secondary",size:"small"},v:{click:"installChrome"},f:[{t:3,x:{r:["nls"],s:'_0("global.install")'}}]}]}," ",{t:7,e:"div",a:{class:"default-browser"},f:[{t:7,e:"div",a:{class:"text -small g-float--left"},f:[{t:7,e:"input",a:{id:"make-chrome-default",type:"checkbox",checked:[{t:2,r:"googleChromeDefaultBrowser"}],class:"checkbox"}}," ",{t:7,e:"label",a:{for:"make-chrome-default"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.googleChrome.makeDefault")'}}]}]}," ",{t:7,e:"div",a:{class:"terms-text-right"},f:[{t:3,r:"googleChromeDesc"}]}]}]}],r:"isWin10AndHigher"}]}]}},css:v,components:{Item:P,StatusHandler:x},twoway:!1,data:()=>({STATUSES:U,PRODUCT_TYPES:A,status:w.get("status"),autoUpdate:w.get("autoUpdate"),products:w.get("products"),selectedProductCounts:w.get("selectedProductCounts"),isFree:e.isFreeAv(),googleChromeDesc:"",isWin10AndHigher:!1,googleChromeDefaultBrowser:!0,chromeMissing:null,showThirdPartyOffers:!1,selectedProducts:w.get("selectedProducts"),selectableProducts:w.get("selectableProducts")}),computed:{chromeBannerVisible:function(){return this.get("chromeMissing")&&this.get("isFree")&&this.get("showThirdPartyOffers")}},oninit(){this.deselectAll=function(){w.selectAllProducts(!1)},window.addEventListener("kin-deselectAll",this.deselectAll),this.log=o.createLogger("softwareupdater.index"),this.log.info("oninit; product: "+e.getProduct()),w.initialize(!0),this._init(),w.observe("selectedProducts",(t=>{this.set("selectedProducts",t),0===t.length&&0===this.get("selectableProducts").length&&this.dispatchDeselect()})),w.observe("selectableProducts",(t=>{this.set("selectableProducts",t)})),this.on("selectAllProducts",(t=>{w.selectAllProducts(t.node.checked)})),r.on("product.change.state.product",(t=>{this.log.info("product change: "+t),this.set("isFree","free_av"===t)})),r.on("app.settings.onSettingsApplied",this.updateThirdPartyOffers.bind(this)),this.updateThirdPartyOffers(),n("GetIPMParam",["p_chr","p_osv"]).then((t=>{const e=!!parseInt(t[0]);this.set("isWin10AndHigher",parseFloat(t[1])>=10),this.log.info("chrome missing: "+e),this.set("chromeMissing",e)})),this.observe("chromeBannerVisible",(t=>{t&&!this.chromeBannerHasBeenDisplayed&&(i.event("Google","view","banner-software-updater"),this.chromeBannerHasBeenDisplayed=!0)})),this.on("installChrome",(()=>{i.event("Google","click","banner-software-updater");let t="silentInstall=1";this.get("isWin10AndHigher")||(t+=this.get("googleChromeDefaultBrowser")?",makeDefaultBrowser=1":""),n("av.command","install_chrome("+t+")"),this.set("chromeMissing",!1)})),w.set("scanOnInit",!0),w.observe("status",(t=>{this.set("status",t)})),w.observe("autoUpdate",(t=>{this.log.info("autoUpdate changed; autoUpdate: "+t),this.set("autoUpdate",t)})),w.observe("products",(t=>{this.log.info("products changed"),this.set("products",t)})),w.observe("selectedProductCounts",(t=>{this.log.info("selected product counts changed"),this.set("selectedProductCounts",t)})),this.on("updateSelectedProducts",this.updateSelectedProducts.bind(this)),this.on("ignoreSelectedProducts",this.ignoreSelectedProducts.bind(this)),this.on("scanProducts",this.scanProducts.bind(this)),this.on("toggleAutoUpdate",(()=>{w.toggleAutoUpdate().catch((()=>{l.inform(d("softwarehealth.toggleAutoUpdate.error"))}))}))},_init(){let t=this._urlToText(d("softwarehealth.googleChrome.desc"),"https://www.google.com/chrome/browser/privacy/eula_text.html");t=this._urlToText(t,"https://www.google.com/chrome/browser/privacy/"),this.set("googleChromeDesc",t)},dispatchDeselect(){const t=new CustomEvent("kin-isActionBarVisible",{detail:{isVisible:!1},bubbles:!0,cancelable:!0,composed:!0});document.body.dispatchEvent(t)},onteardown(){this.log.info("onteardown"),w.destroy(),window.removeEventListener("kin-deselectAll",this.deselectAll),this.deselectAll=void 0},updateThirdPartyOffers(){n("app.settings.Get","avcfg://settings/Common/Allow3rdPartyOfferPopups").then((t=>{this.set("showThirdPartyOffers",!!t)}))},updateSelectedProducts(){w.updateSelectedProducts().catch((()=>{l.inform(d("softwarehealth.updateSelectedProducts.error"))}))},ignoreSelectedProducts(){w.ignoreSelectedProducts().catch((()=>{l.inform("Ignoring the selected software failed.")}))},scanProducts(){n("app.softwareupdater.SendClickStreamEvent",{eventID:"14.3.5"}),w.scanProducts().catch((()=>{l.inform(d("softwarehealth.scanProducts.error"))}))},_urlToText:(t,e)=>t.replace(new RegExp("{URL_START}(.+?){URL_END}"),"<a onclick=\"AvCommand('shell_exec:open:"+e+'\')" class="a">$1</a>')}),R=w.get("STATUSES"),k=w.get("PRODUCT_STATUSES"),E=t.extend({template:{v:3,t:[{t:7,e:"div",a:{role:"row",class:["kin_table__row -smartscanV2 ",{t:2,x:{r:["isSelected"],s:'_0?"-selected":""'}}," ",{t:2,x:{r:["isDisabled"],s:'_0?"-disabled":""'}}],"data-test":["table-row-",{t:2,r:"@index"}],"aria-rowindex":[{t:2,r:"@index"}]},f:[{t:4,f:[{t:7,e:"input",v:{click:{n:"toggleProduct",d:[{t:2,r:"product"}]}},a:{type:"checkbox",class:"checkbox",checked:[{t:2,r:"isSelected"}],disabled:[{t:2,r:"isDisabled"}],title:[{t:2,x:{r:["nls"],s:'_0("global.selectItem")'}}],id:["swu-ss-item-",{t:2,r:"@index"}]}}],n:50,r:"selectable"},{t:4,n:51,f:[{t:7,e:"div"}],r:"selectable"}," ",{t:7,e:"div",a:{class:"kin_table__icon"},f:[{t:7,e:"ImgIcon",a:{src:["data:gif/png;base64,",{t:2,r:"product.icon"}],cssCls:"g-font--24 swu_icon"}}," ",{t:4,f:[{t:7,e:"kin-icon",a:{class:"swu_sub-icon",name:"badge-ok",size:"16"}}],n:50,r:"productConfig.justUpdated"},{t:4,n:51,f:[{t:7,e:"kin-icon",a:{class:"swu_sub-icon",name:"badge-critical",size:"16"}}],r:"productConfig.justUpdated"}]}," ",{t:7,e:"div",a:{class:"kin_table__name"},f:[{t:7,e:"label",a:{for:["swu-ss-item-",{t:2,r:"@index"}],class:"g-rtl-fix"},f:[{t:2,r:"product.name"}]}]}," ",{t:7,e:"div",f:[{t:4,f:[{t:7,e:"p",a:{class:"p color-danger -text"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.userFix")'}}]}],n:50,x:{r:["product.status","STATUSES.updateAvailable"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["product.status","STATUSES.failed"],s:"_0===_1"},f:[{t:7,e:"p",a:{class:"p color-danger -text"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.updateFailed")'}}]}]},{t:4,n:50,x:{r:["STATUSES.failed","product.status","STATUSES.waitForAutoInstall"],s:"(!(_1===_0))&&(_1===_2)"},f:[" ",{t:7,e:"div",f:[{t:7,e:"p",a:{class:"p color-danger -text"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.status.waitForAutoInstall")'}}]}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.error.programRunning")'}}],n:50,x:{r:["product.error","ERRORS.PROGRAM_RUNNING"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["product.error","ERRORS.REBOOT_REQUIRED"],s:"_0===_1"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.error.rebootRequired")'}}]},{t:4,n:50,x:{r:["ERRORS.REBOOT_REQUIRED","product.error","ERRORS.PROGRAM_RUNNING_USR2"],s:"(!(_1===_0))&&(_1===_2)"},f:[" ",{t:3,x:{r:["nls"],s:'_0("softwarehealth.error.anotherUserRunsProgram")'}}]}],x:{r:["product.error","ERRORS.PROGRAM_RUNNING"],s:"_0===_1"}}]}]}]},{t:4,n:50,x:{r:["STATUSES.failed","product.status","STATUSES.waitForAutoInstall","product.productConfig.type","TYPES.updated"],s:"(!(_1===_0))&&((!(_1===_2))&&(_3===_4))"},f:[" ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls","product.currentVersion"],s:'_0("softwarehealth.appCurrentVersion",_1)'}}]}]},{t:4,n:50,x:{r:["STATUSES.failed","product.status","STATUSES.waitForAutoInstall","product.productConfig.type","TYPES.updated"],s:"(!(_1===_0))&&((!(_1===_2))&&(!(_3===_4)))"},f:[" ",{t:7,e:"p",a:{class:"p"},f:[{t:2,r:"product.currentVersion"}," > ",{t:3,x:{r:["nls","product.remoteVersion"],s:'_0("softwarehealth.appNewVersion",_1)'}}," ",{t:4,f:[{t:7,e:"a",a:{class:"a",href:[{t:2,r:"product.releaseNotes"}]},v:{click:"browser"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.changeLog")'}}]}],n:50,x:{r:["product.windowsUpdate","product.releaseNotes"],s:"!_0&&_1"}}," ",{t:4,f:[{t:7,e:"br"}," ",{t:3,x:{r:["nls"],s:'_0("softwarehealth.changeLog")'}}," ",{t:4,f:[{t:7,e:"a",a:{href:[{t:2,r:"url"}],class:"a g-margin-left--5"},v:{click:"browser"},f:[{t:2,r:"title"}]}],n:52,i:"i",r:"product.updates"}],n:50,x:{r:["product.windowsUpdate","product.updates","product.updates.length"],s:"_0&&_1&&_2"}}]}]}],x:{r:["product.status","STATUSES.updateAvailable"],s:"_0===_1"}}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"kin_table__actions"},f:[{t:7,e:"kin-tooltip",f:[{t:7,e:"div",a:{slot:"tooltip-activator"},f:[{t:7,e:"kin-button",v:{click:{n:"ignoreProduct",d:[{t:2,r:"product"}]}},a:{size:"tiny",type:"blank",icononly:"true",title:[{t:2,r:"product.name"}," - ",{t:3,x:{r:["nls"],s:'_0("softwarehealth.ignore")'}}]},f:[{t:7,e:"kin-icon",a:{name:"icon-s-controls-close",size:"10"}}]}]}," ",{t:7,e:"div",a:{slot:"tooltip"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.ignore")'}}]}]}]}],n:50,x:{r:["ignorable","TYPES.updated","product.productConfig.type","TYPES.outdated"],s:"_0&&(_2===_1||_2===_3)"}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"kin_table__end"},f:[{t:4,f:[{t:7,e:"p",a:{class:"p"},f:[{t:7,e:"span",a:{class:"spinner -tiny g-margin-right--5"}}," ",{t:3,x:{r:["nls"],s:'_0("softwarehealth.downloading")'}}]}],n:50,x:{r:["product.status","STATUSES.downloading"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["product.status","STATUSES.installing"],s:"_0===_1"},f:[{t:7,e:"p",a:{class:"p"},f:[{t:7,e:"span",a:{class:"spinner -tiny g-margin-right--5"}}," ",{t:3,x:{r:["nls"],s:'_0("softwarehealth.installing")'}}]}]},{t:4,n:50,x:{r:["product.status","STATUSES.installing","productConfig.justUpdated"],s:"(!(_0===_1))&&(_2)"},f:[" ",{t:7,e:"p",a:{class:"p color-ok -text"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.ss2.updated")'}}]}]}],x:{r:["product.status","STATUSES.downloading"],s:"_0===_1"}}]}],x:{r:["ignorable","TYPES.updated","product.productConfig.type","TYPES.outdated"],s:"_0&&(_2===_1||_2===_3)"}}]}]},data:()=>({STATUSES:k,ERRORS:w.get("ERRORS"),TYPES:w.get("PRODUCT_TYPES"),product:{},selectedByDefault:!1,selectable:!0,ignorable:null,status:w.get("status")}),computed:{isSelected:{set:function(){},get:function(){return this.get("product.productConfig.selected")}},isServiceReady:function(){return w.get("status")===R.ready},isDisabled:function(){const t=this.get("product.productConfig")||{},e=this.get("product.status");return!t.canBeSelected||t.justUpdated||"FAILED"===e||"WAITFORAUTOINSTALL"===e}},oninit(){w.observe("status",(t=>{this.set("status",t)})),this.unregisterConfigObserver=w.observe("productConfigs."+this.get("product.productId"),(t=>{this.set("product.productConfig",t)})).cancel,this.set("product.productConfig",w.get("productConfigs."+this.get("product.productId"))),this.on("toggleProduct",((t,e)=>{w.selectProduct(e,t.node.checked)})),this.on("ignoreProduct",((t,e)=>{w.ignoreProduct(e.productId).catch((()=>{l.inform(d("softwarehealth.ignoreProduct.error",e.name))}))}))},onrender(){const t=this.get("product");this.get("selectedByDefault")&&t.productConfig.canBeSelected&&w.selectProduct(t,!0)},onteardown(){this.unregisterConfigObserver&&this.unregisterConfigObserver()}});const C=w.get("PRODUCT_TYPES.outdated"),O=t.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"h1",a:{class:"h1 smr_progress__title","data-test":"ss_scanForUpdates_progress"},f:[{t:3,x:{r:["nls","scannerData.progress"],s:'_0("softwarehealth.ss2.progress.title",_1)'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.ss2.progress.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"kin-button",a:{type:"secondary","data-test":"ss_scanForUpdates_stop"},v:{click:"stop"},f:[{t:3,x:{r:["nls"],s:'_0("global.stopScan")'}}]}]}],n:50,x:{r:["scannerData.status"],s:'_0!=="done"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["scannerData.issuesCount"],s:"_0===0"},f:[{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"h1",a:{class:"h1 kin_scan__title","data-test":"ss_scanForUpdates_titleEmpty"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.ss2.noIssues.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.ss2.noIssues.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"kin-button",v:{click:"next"},a:{"data-test":"ss_scanForUpdates_next"},f:[{t:3,x:{r:["nls"],s:'_0("global.next")'}}]}]}]},{t:4,n:50,x:{r:["scannerData.issuesCount","products.length"],s:"(!(_0===0))&&(_1>0)"},f:[" ",{t:7,e:"View",a:{csscls:"-center",loading:[{t:2,r:"loading"}],actionbar:"true"},f:[{t:7,e:"div",a:{slot:"description"},f:[{t:4,f:[{t:7,e:"h1",a:{class:"h1 kin_scan__title","data-test":"ss_scanForUpdates_title"},f:[{t:3,x:{r:["nls","productsToBeUpdated"],s:'_0("softwarehealth.ss2.results.title",_1)'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.ss2.results.subtitle")'}}]}],n:50,x:{r:["productsToBeUpdated"],s:"_0>0"}},{t:4,n:51,f:[{t:7,e:"h1",a:{class:"h1 kin_scan__title"},f:[{t:7,e:"span",a:{class:"color-ok -text","data-test":"ss_scanForUpdates_titleResolved"},f:[{t:3,x:{r:["nls"],s:'_0("global.allUpdated")'}}]}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.ss2.allUpdated.subtitle")'}}]}],x:{r:["productsToBeUpdated"],s:"_0>0"}}]}," ",{t:7,e:"div",a:{slot:"view-content"},f:[{t:4,f:[{t:7,e:"kin-table",a:{datalength:[{t:2,r:"selectableProducts.length"}],selecteditems:"1",inactive:[{t:2,r:"isResolving"}]},f:[{t:7,e:"div",a:{slot:"table-header",role:"row",class:"swu_table__header -smartscanV2"},f:[{t:7,e:"input",v:{click:"selectAllProducts"},a:{type:"checkbox",class:["checkbox ",{t:4,f:["-checked"],n:50,x:{r:["productsToBeUpdated","selectedProducts.length"],s:"_0===0||(_0===_1&&_1>0)"}}],disabled:[{t:2,x:{r:["productsToBeUpdated","failedProducts.length"],s:"_0===0||_0===_1"}}],checked:[{t:2,x:{r:["selectedProducts.length"],s:"_0>0"}}],title:[{t:2,x:{r:["nls"],s:'_0("global.selectAllItems")'}}]},m:[{t:4,f:['aria-checked="mixed"'],n:50,x:{r:["productsToBeUpdated","selectedProducts.length"],s:"_0!==_1&&_1>0"}}]}," ",{t:7,e:"div"}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:3,x:{r:["nls"],s:'_0("global.appName")'}}]}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.version")'}}]}," ",{t:7,e:"div"}]}," ",{t:7,e:"div",a:{slot:"table-body"},f:[{t:4,f:[{t:7,e:"SmartScanItem",a:{product:[{t:2,r:"."}],selectedByDefault:"true",ignorable:"false",index:[{t:2,r:"@index"}]}}],n:52,r:"products"}]}," ",{t:7,e:"div",a:{slot:"table-empty-icon",class:"svg -empty-table"}}," ",{t:7,e:"div",a:{slot:"table-empty"},f:[{t:7,e:"p",f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.empty.desc")'}}]}]}]}],n:50,r:"selectableProducts.length"}]}," ",{t:7,e:"div",a:{slot:"view-actions"},f:[{t:4,f:[{t:4,f:[{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("offlinePage.desc")'}}]}," ",{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:7,e:"button",a:{class:"a","data-test":"ss_scanForUpdates_skip"},v:{click:"skip"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}]}],n:50,r:"isOffline"},{t:4,n:51,f:[{t:4,f:[{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:7,e:"button",a:{class:"a","data-test":"ss_scanForUpdates_skip"},v:{click:"skip"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}]}],n:50,r:"resolvingTakesTooLong"}," ",{t:7,e:"Progress",a:{asymptotic:"true",percentage:[{t:2,r:"progress"}],cssCls:"kin_actions__progress"}}," ",{t:7,e:"h4",a:{class:"h4"},f:[{t:3,x:{r:["nls","numberOfResolvingIssues"],s:'_0("softwarehealth.ss2.resolveInProgress.desc",_1)'}}]}],r:"isOffline"}],n:50,r:"isResolving"},{t:4,n:51,f:[{t:4,n:50,x:{r:["productsToBeUpdated","failedProducts.length"],s:"_0===0||_0===_1"},f:[{t:7,e:"div",f:[{t:7,e:"kin-button",a:{size:"small","data-test":"ss_scanForUpdates_next"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.next")'}}]}]}]},{t:4,n:50,x:{r:["productsToBeUpdated","failedProducts.length","isOffline"],s:"(!(_0===0||_0===_1))&&(_2)"},f:[" ",{t:7,e:"div",f:[{t:3,x:{r:["nls"],s:'_0("offlinePage.desc")'}}]}," ",{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:7,e:"button",a:{class:"a","data-test":"ss_scanForUpdates_skip"},v:{click:"skip"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}]}]},{t:4,n:50,x:{r:["productsToBeUpdated","failedProducts.length","isOffline","selectedProducts.length","selectableProducts.length"],s:"(!(_0===0||_0===_1))&&((!(_2))&&(_3===_4))"},f:[" ",{t:7,e:"div",a:{class:"kin_actions__left"},f:[{t:3,x:{r:["nls","selectedProducts.length"],s:'_0("softwarehealth.ss2.applicationsSelected",_1)'}}]}," ",{t:7,e:"div",f:[{t:7,e:"kin-button",a:{size:"small","data-test":"ss_scanForUpdates_resolve"},v:{click:"updateSelected"},f:[{t:3,x:{r:["nls"],s:'_0("global.updateAll")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:7,e:"button",a:{class:"a","data-test":"ss_scanForUpdates_skip"},v:{click:"skip"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}]}]},{t:4,n:50,x:{r:["productsToBeUpdated","failedProducts.length","isOffline","selectableProducts.length","selectedProducts.length"],s:"(!(_0===0||_0===_1))&&((!(_2))&&((!(_4===_3))&&(_4===0)))"},f:[" ",{t:7,e:"div",f:[{t:7,e:"kin-button",a:{size:"small","data-test":"ss_scanForUpdates_selectAll"},v:{click:"selectAll"},f:[{t:3,x:{r:["nls"],s:'_0("global.selectAll")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:7,e:"button",a:{class:"a","data-test":"ss_scanForUpdates_skip"},v:{click:"skip"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}]}]},{t:4,n:50,x:{r:["productsToBeUpdated","failedProducts.length","isOffline","selectedProducts.length","selectableProducts.length"],s:"(!(_0===0||_0===_1))&&((!(_2))&&((!(_3===_4))&&((!(_3===0))&&(_3<_4))))"},f:[" ",{t:7,e:"div",a:{class:"kin_actions__left"},f:[{t:3,x:{r:["nls","selectedProducts.length"],s:'_0("softwarehealth.ss2.applicationsSelected",_1)'}}]}," ",{t:7,e:"div",f:[{t:7,e:"kin-button",a:{size:"small","data-test":"ss_scanForUpdates_resolve"},v:{click:"updateSelected"},f:[{t:3,x:{r:["nls"],s:'_0("softwarehealth.updateSelected")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:7,e:"button",a:{class:"a","data-test":"ss_scanForUpdates_skip"},v:{click:"skip"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}]}]},{t:4,n:50,x:{r:["productsToBeUpdated","failedProducts.length","isOffline","selectedProducts.length","selectableProducts.length"],s:"(!(_0===0||_0===_1))&&((!(_2))&&((!(_3===_4))&&((!(_3===0))&&(!(_3<_4)))))"},f:[" ",{t:7,e:"div",f:[{t:7,e:"kin-button",a:{size:"small","data-test":"ss_scanForUpdates_next"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.next")'}}]}]}]}],r:"isResolving"}]}]}]}],x:{r:["scannerData.status"],s:'_0!=="done"'}}]},css:v,components:{SmartScanItem:E},twoway:!1,scannerId:void 0,data:function(){return{scannerData:{progress:void 0,status:void 0,issuesCount:void 0},progress:0,products:w.get("products."+C),selectedProductCount:w.get("selectedProductCounts."+C),selectedProducts:w.get("selectedProducts"),selectableProducts:[],isResolving:!1,numberOfResolvingIssues:0,loading:!1,isOffline:!navigator.onLine,resolvingTakesTooLong:!1}},computed:{productsToBeUpdated:function(){const t=this.get("products"),e=Object.entries(w.get("productConfigs")).filter((t=>t[1].justUpdated));return t.length-e.length},failedProducts:function(){return this.get("products").filter((t=>["UPDATEAVALIABLE","WAITFORAUTOINSTALL","FAILED"].indexOf(t.status)>-1))}},oninit(){i.view("SmartScan/Resolve/Software"),this.log=o.createLogger("softwareupdater.smartscan"),this.log.info("oninit"),this._addListeners()},_addListeners(){this._addSmartScanListeners(),this.on("selectAllProducts",(t=>{w.selectAllProducts(t.node.checked)})),this.on("selectAll",(()=>{w.selectAllProducts(!0)})),this.on("updateSelected",this.updateSelected.bind(this)),this.deselectAll=()=>{w.selectAllProducts(!1)},window.addEventListener("kin-deselectAll",this.deselectAll),this.updateOnlineStatusRef=this._updateOnlineStatus.bind(this),window.addEventListener("online",this.updateOnlineStatusRef),window.addEventListener("offline",this.updateOnlineStatusRef)},_addSmartScanListeners(){this.on("skip",(()=>{this.fire("trackSmartScanClick",{label:"skip"}),this.fire("skipScanner",{scannerId:this.scannerId})})),this.on("next",(()=>{this.fire("trackSmartScanClick",{label:"continue"}),this.fire("nextScanner")})),this.on("stop",(()=>{this.fire("trackSmartScanStop"),this.fire("stopScan")})),this.on("updateScannerData",(t=>{this.set("scannerData",{progress:t.progress,status:t.status,issuesCount:t.issuesCount}),"done"===t.status&&t.issuesCount>0&&(this._serviceInitCalled=!0,this.set("loading",!0),w.setSmartScanV2(!0),w.initialize(!1),this._addObservers())}))},_addObservers(){w.observe("selectedProducts",(t=>{this.set("selectedProducts",t)})),w.observe("selectableProducts",(t=>{t&&t.length>0&&this.set("selectableProducts",t)})),w.observe("products."+C,((t,e)=>{if(this.log.info("products changed"),this.get("isResolving")){const e=w.get("selectedProducts"),s=t.filter((t=>e.indexOf(t.productId)>-1));s.length>0&&s.every((t=>["UPTODATE","FAILED","WAITFORAUTOINSTALL"].indexOf(t.status)>-1))&&(this.set("progress",100),setTimeout((()=>{0===this.get("productsToBeUpdated")&&this.fire("allIssuesResolved",this.scannerId),this.set({isResolving:!1}),this._clearResolvingTimeout()}),400))}0===t.length&&e&&e.length>0?(this.log.info("all products up-to-date"),this.set({allUpdated:!0})):this.merge("products",t,{compare:"productId"}),t.length>0&&this.set("loading",!1)})),w.observe("selectedProductCounts."+C,(t=>{this.set("selectedProductCount",t)}))},_updateOnlineStatus(){this.set("isOffline",!navigator.onLine)},updateSelected(){this.set({isResolving:!0,progress:0,numberOfResolvingIssues:this.get("selectedProducts").length}),this._startResolvingTimeout(),w.updateSelectedProducts()},_startResolvingTimeout(){this._resolvingTimeout=setTimeout((()=>{this.set("resolvingTakesTooLong",!0)}),3e5)},_clearResolvingTimeout(){clearTimeout(this._resolvingTimeout)},onteardown(){window.removeEventListener("kin-deselectAll",this.deselectAll),this.deselectAll=void 0,this._serviceInitCalled&&w.destroy(),this._clearResolvingTimeout(),window.removeEventListener("online",this.updateOnlineStatusRef),window.removeEventListener("offline",this.updateOnlineStatusRef)}}),D={title:"softwarehealth",desc:"softwarehealth.settings.desc",showPopups:"softwarehealth.settings.showPopups",showPopupsDesc:"softwarehealth.settings.showPopups.desc",autoUpdate:"softwarehealth.settings.autoUpdate",autoUpdateDesc:"softwarehealth.settings.autoUpdate.desc",upgradeNow:"global.upgradeNow",ignoredProducts:"softwarehealth.ignoredSw",remove:"global.remove"};function y(){return{autoUpdate:{path:"avcfg://settings/SoftwareHealth/AutoUpdate",label:d(D.autoUpdate),desc:d(D.autoUpdateDesc),unlicensed:!w.isAutoUpdateLicensed(),track:{subject:"Automatically update my apps"},search:{title:D.autoUpdate,desc:D.autoUpdateDesc},change:t=>{n("app.settings.Set",{name:"avcfg://settings/SoftwareHealth/AutoDownload",value:t}),n("app.settings.Set",{name:"avcfg://settings/SoftwareHealth/AutoUpdate",value:t}),n("1"==t?"app.softwareupdater.EnableAutoUpdate":"app.softwareupdater.DisableAutoUpdate")}},ignoredProducts:{id:"software_settings_ignoredProducts",label:d(D.ignoredProducts),list:[],search:D.ignoredProducts}}}function N(){return{title:D.title,desc:D.desc,items:y()}}const L=t.extend({template:{v:3,t:[{t:7,e:"SettingsContainer",a:{component:[{t:2,r:"component"}],title:[{t:3,x:{r:["nls","STRINGS.title"],s:"_0(_1)"}}],desc:[{t:3,x:{r:["nls","STRINGS.desc"],s:"_0(_1)"}}],noEnable:"true"},f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.autoUpdate"}]}}," ",{t:4,f:[{t:7,e:"kin-button",a:{class:"swu_settings-upgradeBtn"},v:{click:"upgrade"},f:[{t:3,x:{r:["nls","STRINGS.upgradeNow"],s:"_0(_1)"}}]}],n:50,r:"autoUpdate.unlicensed"}," ",{t:7,e:"p",a:{class:"p g-margin-top--20",id:[{t:2,r:"properties.ignoredProducts.id"},"__container"]},f:[{t:2,r:"properties.ignoredProducts.label"}]}," ",{t:7,e:"table",a:{class:"table -small -fixed"},f:[{t:7,e:"colgroup",f:[{t:7,e:"col",a:{width:"90%"}}," ",{t:7,e:"col",a:{width:"10%"}}]}," ",{t:4,f:[{t:4,f:[{t:7,e:"tr",f:[{t:7,e:"td",f:[{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:2,r:"name"}]}]}," ",{t:7,e:"td",a:{class:"table__delete"},f:[{t:7,e:"kin-button",a:{size:"small",type:"blank",icononly:0,title:[{t:3,x:{r:["nls","STRINGS.remove"],s:"_0(_1)"}}]},v:{click:{n:"unignoreProduct",d:[{t:2,r:"@index"}]}},f:[{t:7,e:"kin-icon",a:{name:"icon-s-controls-bin",size:"14"}}]}]}]}],n:52,r:"properties.ignoredProducts.list"}],n:50,r:"properties.ignoredProducts.list.length"},{t:4,n:51,f:[{t:7,e:"tr",f:[{t:7,e:"td",a:{colspan:"2"},f:[{t:3,x:{r:["nls"],s:'_0("global.emptyList")'}}]}]}],r:"properties.ignoredProducts.list.length"}]}]}]},css:v,data:()=>({STRINGS:D,component:"SoftwareHealth",properties:y()}),oninit(){w.initialize(),w.observe("products.ignored",(t=>{this.set("properties.ignoredProducts.list",t)})),this.on("upgrade",(()=>{r.emit("Settings.gaTrack","Upgrade"),w.upgrade()})),this.on("unignoreProduct",((t,e)=>{const s=this.get("properties.ignoredProducts.list");w.unignoreProduct(s[e].productId).then((()=>{s.splice(e,1)}))}))},onteardown(){w.destroy()}}),F=[{path:"avcfg://settings/SoftwareHealth/Enabled",label:"Enable Software Updater",type:"checkbox"},{id:"software_enabledBits",label:"Enable Microsoft download service (BITS)",type:"button",action:n.bind(null,"av.command","behavior:AvBehav_PagePatchMgmt:enableBITS"),cond:n("app.softwareupdater.GetStatus").then((t=>!t.is_BIT_service_enabled))},{path:"avcfg://settings/SoftwareHealth/SystemUpdatesForAdminOnly",label:"Allow update of system-wide products for administrators only",desc:"When checked, only users with administrative permissions will be notified about new updates and are allowed to install them.",type:"checkbox",cond:n("app.softwareupdater.GetStatus").then((t=>t.is_UAC_enabled))},{path:"avcfg://settings/SoftwareHealth/AutoUpdate",label:"Automatically download updates if possible",desc:"When checked, Avast will try to download updates silently in the background (if possible) without asking for permission first.",type:"checkbox",change:t=>Promise.all([n("app.settings.Set",{name:"avcfg://settings/SoftwareHealth/AutoDownload",value:t}),n("app.settings.Set",{name:"avcfg://settings/SoftwareHealth/AutoUpdate",value:t}),n("1"==t?"app.softwareupdater.EnableAutoUpdate":"app.softwareupdater.DisableAutoUpdate")]),cond:Promise.resolve(!e.isFreeProduct())},{id:"software_resetDb",label:"Database reset (troubleshooting)",desc:"This feature lets you reset the internal database of Avast Software Defender to the default values. You may use this function if any installation goes wrong or shows invalid data. This action cannot be undone.",type:"button",action:n.bind(null,"app.softwareupdater.ReinitializeSoftwareUpdater")}];export default I;export{O as SmartScanV2,L as settings,F as settingsGeek,N as settingsSearchStrings};const B={name:"Software",version:"1.2.647",created:"2021-09-06T13:05:21.212Z"};export{B as metadata};