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/ |
//{"name":"SmartScan","version":"1.2.482","created":"2021-03-10T09:11:14.392Z"} import s from"./ractive.js";import{nls as e,moment as t}from"./i18n.js";import{serviceRequest as n,windowApi as a,napiTracker as i,eventer as r,moduleManager as c}from"./napi.js";import{logger as o,svelte3Adapter as l,Router as d,Focuser as u}from"./libs.js";import{productModel as p,ipmService as _,settingsService as m,features as h}from"./napiExtensions.js";import{plugins as g}from"./ractiveAdapter.js";const f={scanViruses:{module:"Scans"},scanForUpdates:{module:"Software"},scanBrowsers:{module:"BrowserCleanup"},scanTuneup:{module:"Tuneup"},scanPrivacyIssues:{},scanAdvancedThreats:{},scanUltimate:{},scanSmarthome:{module:"SecurityNetwork"},scanJunk:{module:"Tuneup",view:"SmartScanV2Junk"},scanTracking:{module:"Tuneup",view:"SmartScanV2Tracking"},scanLeaks:{module:"DarkWebMonitor",view:"SmartScanV2"}};const v=new class{constructor(){this._getStatusPromise=null,this._brandedIcons=null,this._isOneProgress=!1}_isMappedScanner(s){return f[s]}_getFilteredScanners(s){const e=[];for(const t of s)this._isMappedScanner(t.id)&&e.length<5&&e.push(t);return e}_printDataErrors(s,e){let t=0;s.scanners.length>5&&console.error(e,"Too many scanners to handle",JSON.stringify(s));for(const n of s.scanners)"running"===n.status&&t++,s.statusPrimary&&"ready"===s.statusPrimary&&"ready"!==n.status&&console.error(e,"Inconsistent data",JSON.stringify(s)),"ready"===n.status&&n.progress>0&&console.error(e,"Invalid scanner progress",JSON.stringify(s)),t>1&&console.error(e,"Multiple running scanners found",JSON.stringify(s))}resetFlow(){return n("app.smartScan.ResetFlow").catch((s=>{console.error("app.smartScan.ResetFlow error:",s)}))}startSmartScan(s){return s&&s.scanId?n("app.scans.StartScan",s.scanId):n("app.smartScan.Start",s).catch((s=>{console.error("app.smartScan.Start error:",s)}))}stopSmartScan(s){return s&&s.scanId?n("app.scans.StopScan",s.scanId):n("app.smartScan.Stop").catch((s=>{console.error("app.smartScan.Stop error:",s)}))}getStatus(s){return this._getStatusPromise||(s&&s.scanId?this._getStatusPromise=n("app.scans.GetScanStatus",s):this._getStatusPromise=n("app.smartScan.GetStatus").then((s=>(this._printDataErrors(s,"app.smartScan.GetStatus"),s.scanners=this._getFilteredScanners(s.scanners),s))),this._getStatusPromise.then((()=>{this._getStatusPromise=null})).catch((()=>{this._getStatusPromise=null}))),this._getStatusPromise}isAnySmartScanScheduled(){return n("app.scanViruses.GetScans").then((s=>s.some((s=>"SmartScan"===s.job&&Object.keys(s.schedule).length))))}createScheduledSmartScan(){return n("app.scanViruses.CreateScanOnly").then((s=>{const t=new Date,a=(t.getDate()<10?"0":"")+t.getDate(),i=(t.getHours()<10?"0":"")+t.getHours(),r=(t.getMinutes()<10?"0":"")+t.getMinutes(),c=new Date("1970-01-"+a+"T"+i+":"+r+"Z"),o={Label:e("smartscan"),Job:"SmartScan",SchedulerEnabled:"1",SchedType:"Monthly",SchedTime:c/1e3},l=Object.keys(o).map((e=>n("app.settings.Set",{name:"avcfg://settings/***TaskGUID***/"+e,objectId:s,value:o[e]})));return Promise.all(l)}))}setBrandedIcons(s){this._brandedIcons=s}setOneProgress(s){this._isOneProgress=s}getBrandedIcons(){return this._brandedIcons}getIsOneProgress(){return this._isOneProgress}},S=o.createLogger("smartScan.toasters.scanProgress"),b=s.components.Toaster.extend({windowClose:a.close,asyncLoad:!0,gaTrack:i,data:function(){return{scanLabel:null,scanProgress:null,scanRunning:null,scanProblemsCount:null,buttonLabel:e("antivirus.toasters.scanProgress.buttonLabel"),buttonLabelGA:"Details",windowHeight:256}},computed:{text:function(){let s=null;const t=this.get("scanProblemsCount"),n=this.get("scanRunning");return n?s="<br/>"+e("antivirus.toasters.scanProgress.title.running",this.get("scanLabel")):!n&&t?s=e("antivirus.toasters.scanProgress.title.finished",this.get("scanLabel"))+"<br/>"+e("antivirus.toasters.scanProgress.text.issues",t):n||t||(s=e("antivirus.toasters.scanProgress.title.finished",this.get("scanLabel"))+"<br/>"+e("antivirus.toasters.scanProgress.text.noIssues")),s},severity:function(){let s=null;return this.get("scanProblemsCount")?s="danger":this.get("scanRunning")||(s="ok"),s},icon:function(){let s=null;return this.get("scanRunning")?s=null:this.get("scanProblemsCount")?s="circle-critical":this.get("scanProblemsCount")||(s="circle-ok"),s},progress:function(){return this.get("scanRunning")?this.get("scanProgress"):null}},oninit:function(){this._super(),S.info("oninit"),n("app.scans.GetScanProps",{id:this.get("params.scanId")||"smart_scan"}).then((s=>{S.info("scan data received"),S.debug("scan data: "+JSON.stringify(s)),this.set("scanLabel",s.label),this.updateData().then((()=>{this.startDataPolling(),this.set("loading",!1),this.ready()})).catch((function(s){S.error("init getting data failed",s),a.close({reason:a.CLOSE_REASONS.error})}))})).catch((function(s){S.error("scan not loaded",s),a.close({reason:a.CLOSE_REASONS.error})})),this.on("doAction",this.openScanDetail.bind(this)),this.on("doAreaAction",this.openScanDetail.bind(this))},updateData:function(){return v.getStatus().then((s=>{S.debug("data: "+JSON.stringify(s));const e="scanning"===s.statusPrimary;let t=0,n=null;if(e){if(s.scanners){let e=0;s.scanners.forEach((function(s){e+=s.progress})),t=Math.round(e/s.scanners.length)}}else"scan_report"===s.statusPrimary&&(this.stopDataPolling(),s.scanners&&(n=0,s.scanners.forEach((function(s){s.issuesCount&&n++}))));this.set({scanProgress:t,scanRunning:e,scanProblemsCount:n})})).catch((function(s){S.error("getting data failed",s)}))},startDataPolling:function(){this.stopDataPolling(),this.dataPollingId=window.setInterval(this.updateData.bind(this),1e3)},stopDataPolling:function(){null!=this.dataPollingId&&(window.clearInterval(this.dataPollingId),this.dataPollingId=null)},openScanDetail:function(){S.info("opening details"),n("app.windowManager.ShowMainWindow",{route:"SmartScan"}).then((function(){a.close({reason:a.CLOSE_REASONS.navigateToOtherWindow})})).catch((function(s){S.error("opening details failed",s)}))}}),I={v:3,t:[{t:7,e:"Screen",a:{loaded:"true"},f:[{t:4,f:[{t:7,e:"div",o:"initFocus",f:[{t:7,e:"ProgressSmartScan",a:{scanId:[{t:2,r:"scanId"}]}}]}],n:50,x:{r:["statusPrimary"],s:'_0!=="restart"'}}]}]},x="omni"===p.getProduct(),w=p.isFreeProduct(),A=p.isTheOne(),y=["scanAdvancedThreats"];const k=new class{constructor(){this._expirationData={}}updateExpirationData(){if(x||w||A)return Promise.resolve();const s=Date.now();return _.getParams(["p_sumo","p_lst","p_lex"]).then((e=>{const n=parseInt(e.p_sumo),a=parseInt(e.p_lst),i=parseInt(e.p_lex);let r="ok";!(1===n)&&(1===a||4===a)?r="expiring":(2===a||5===a)&&(r="expired");let c="ok";"expired"===r||"expiring"===r&&i<=3?c="critical":"expiring"===r&&(c="attention"),this._expirationData={isTrial:p.isTrial(),state:r,remainingDays:i,expirationDateFormatted:t(s+864e5*i).format("LL"),color:c}}))}isExpiring(){return"expiring"===this._expirationData.state}isExpired(){return"expired"===this._expirationData.state}isExpiringOrExpired(){return this.isExpiring()||this.isExpired()}isExpirableScanner(s){return y.includes(s)}getColor(){return this._expirationData.color}getAllResolvedTitle(s){return"expiring"===this._expirationData.state?"attention"===this._expirationData.color?e(s+".ss2.allResolved.title.expiring.attention",this._expirationData.remainingDays):e(s+".ss2.allResolved.title.expiring",this._expirationData.remainingDays):'<span class="color-ok -text">'+e(s+".ss2.allResolved.title")+"</span>"}getExpiredSubtitle(s){return"expired"===this._expirationData.state?this._expirationData.isTrial?e(s+".ss2.results.subtitle.expired.trial"):e(s+".ss2.results.subtitle.expired"):null}getAllResolvedSubtitle(s){return"expiring"===this._expirationData.state?this._expirationData.isTrial?e(s+".ss2.allResolved.subtitle.expiring.trial",this._expirationData.expirationDateFormatted):e(s+".ss2.allResolved.subtitle.expiring",this._expirationData.expirationDateFormatted):e(s+".ss2.allResolved.subtitle")}getBuyBtnLabel(){return this._expirationData.isTrial?e("global.buyNow"):e("global.renewNow")}getActionsLeftLabel(s){let t=s+".ss2.actionsLeft";return"expired"===this._expirationData.state?(t+=".expired",this._expirationData.isTrial&&(t+=".trial"),e(t)):"expiring"===this._expirationData.state?(t+=".expiring",this._expirationData.isTrial&&(t+=".trial"),"attention"===this._expirationData.color&&(t+=".attention"),e(t,this._expirationData.remainingDays)):null}getIssueExpiringStateIcon(){return"expiring"===this._expirationData.state?"attention"===this._expirationData.color?"badge-attention":"badge-critical-neutral":"expired"===this._expirationData.state?"badge-critical":"badge-ok"}},P="omni"===p.getProduct(),B=p.isFreeProduct(),D=p.isTheOne(),R="avg"===p.getProductId(),O={scanAdvancedThreats:{"scanAdvancedThreats.ss2.results.subtitle":{"AB.1":"scanAdvancedThreats.ss2.results.subtitle.AB.1","AB.2":"scanAdvancedThreats.ss2.results.subtitle.AB.2","AB.3":"scanAdvancedThreats.ss2.results.subtitle.AB.3","AB.4":"scanAdvancedThreats.ss2.results.subtitle.AB.4","AB.5":"scanAdvancedThreats.ss2.results.subtitle.AB.5"},"scanAdvancedThreats.rswSdsCombined.desc":{"AB.1":"scanAdvancedThreats.rswSdsCombined.desc.AB.1","AB.2":"scanAdvancedThreats.rswSdsCombined.desc.AB.2","AB.3":"scanAdvancedThreats.rswSdsCombined.desc.AB.3","AB.4":"scanAdvancedThreats.rswSdsCombined.desc.AB.4","AB.5":"scanAdvancedThreats.rswSdsCombined.desc.AB.5"},"scanAdvancedThreats.secdnsRunningIssue.title":{"AB.3":"scanAdvancedThreats.secdnsRunningIssue.title.AB.3"},"scanAdvancedThreats.secdnsRunningIssue.desc":{"AB.1":"scanAdvancedThreats.secdnsRunningIssue.desc.AB.1","AB.2":"scanAdvancedThreats.secdnsRunningIssue.desc.AB.2","AB.3":"scanAdvancedThreats.secdnsRunningIssue.desc.AB.3","AB.4":"scanAdvancedThreats.secdnsRunningIssue.desc.AB.4","AB.5":"scanAdvancedThreats.secdnsRunningIssue.desc.AB.5"},"scanAdvancedThreats.webcamRunningIssue.desc":{"AB.3":"scanAdvancedThreats.webcamRunningIssue.desc.AB.3"},"scanAdvancedThreats.rswSdsCombined.detail.desc":{"AB.1":"scanAdvancedThreats.rswSdsCombined.detail.desc.AB.1","AB.2":"scanAdvancedThreats.rswSdsCombined.detail.desc.AB.2","AB.3":"scanAdvancedThreats.rswSdsCombined.detail.desc.AB.3","AB.4":"scanAdvancedThreats.rswSdsCombined.detail.desc.AB.4","AB.5":"scanAdvancedThreats.rswSdsCombined.detail.desc.AB.5"},"scanAdvancedThreats.webcamRunningIssue.detail.desc":{"AB.1":"scanAdvancedThreats.webcamRunningIssue.detail.desc.AB.1","AB.2":"scanAdvancedThreats.webcamRunningIssue.detail.desc.AB.2","AB.3":"scanAdvancedThreats.webcamRunningIssue.detail.desc.AB.3","AB.4":"scanAdvancedThreats.webcamRunningIssue.detail.desc.AB.4","AB.5":"scanAdvancedThreats.webcamRunningIssue.detail.desc.AB.5"},"scanAdvancedThreats.weakFirewall.detail.desc":{"AB.1":"scanAdvancedThreats.weakFirewall.detail.desc.AB.1","AB.2":"scanAdvancedThreats.weakFirewall.detail.desc.AB.2","AB.3":"scanAdvancedThreats.weakFirewall.detail.desc.AB.3","AB.4":"scanAdvancedThreats.weakFirewall.detail.desc.AB.4","AB.5":"scanAdvancedThreats.weakFirewall.detail.desc.AB.5"},"scanAdvancedThreats.secdnsRunningIssue.detail.desc":{"AB.1":"scanAdvancedThreats.secdnsRunningIssue.detail.desc.AB.1","AB.2":"scanAdvancedThreats.secdnsRunningIssue.detail.desc.AB.2","AB.3":"scanAdvancedThreats.secdnsRunningIssue.detail.desc.AB.3","AB.4":"scanAdvancedThreats.secdnsRunningIssue.detail.desc.AB.4","AB.5":"scanAdvancedThreats.secdnsRunningIssue.detail.desc.AB.5"}},scanPrivacyIssues:{"privacyIssues.ss2.results.subtitle":{"AB.1":"privacyIssues.ss2.results.subtitle.AB.1","AB.2":"privacyIssues.ss2.results.subtitle.AB.2","AB.3":"privacyIssues.ss2.results.subtitle.AB.3","AB.4":"privacyIssues.ss2.results.subtitle.AB.4","AB.5":"privacyIssues.ss2.results.subtitle.AB.5"},"privacyIssues.ss2.visibleOnline.title":{"AB.3":"privacyIssues.ss2.visibleOnline.title.AB.3"},"privacyIssues.ss2.visibleOnline.desc":{"AB.1":"privacyIssues.ss2.visibleOnline.desc.AB.1","AB.2":"privacyIssues.ss2.visibleOnline.desc.AB.2","AB.3":"privacyIssues.ss2.visibleOnline.desc.AB.3"},"privacyIssues.ss2.isp.title":{"AB.3":"privacyIssues.ss2.isp.title.AB.3"},"privacyIssues.ss2.knownLocation.title":{"AB.3":"privacyIssues.ss2.knownLocation.title.AB.3"},"privacyIssues.ss2.knownLocation.desc":{"AB.1":"privacyIssues.ss2.knownLocation.desc.AB.1","AB.2":"privacyIssues.ss2.knownLocation.desc.AB.2","AB.3":"privacyIssues.ss2.knownLocation.desc.AB.3","AB.4":"privacyIssues.ss2.knownLocation.desc.AB.4","AB.5":"privacyIssues.ss2.knownLocation.desc.AB.5"},"privacyIssues.ss2.publicIp.desc":{"AB.1":"privacyIssues.ss2.publicIp.desc.AB.1","AB.2":"privacyIssues.ss2.publicIp.desc.AB.2","AB.3":"privacyIssues.ss2.publicIp.desc.AB.3","AB.4":"privacyIssues.ss2.publicIp.desc.AB.4","AB.5":"privacyIssues.ss2.publicIp.desc.AB.5"},"privacyIssues.ss2.visibleOnline.desc1":{"AB.1":"privacyIssues.ss2.visibleOnline.desc1.AB.1","AB.2":"privacyIssues.ss2.visibleOnline.desc1.AB.2","AB.3":"privacyIssues.ss2.visibleOnline.desc1.AB.3","AB.4":"privacyIssues.ss2.visibleOnline.desc1.AB.4","AB.5":"privacyIssues.ss2.visibleOnline.desc1.AB.5"},"privacyIssues.ss2.visibleOnline.desc2":{"AB.1":"privacyIssues.ss2.visibleOnline.desc2.AB.1","AB.2":"privacyIssues.ss2.visibleOnline.desc2.AB.2","AB.3":"privacyIssues.ss2.visibleOnline.desc2.AB.3","AB.4":"privacyIssues.ss2.visibleOnline.desc2.AB.4","AB.5":"privacyIssues.ss2.visibleOnline.desc2.AB.5"},"privacyIssues.ss2.isp.desc1":{"AB.1":"privacyIssues.ss2.isp.desc1.AB.1","AB.2":"privacyIssues.ss2.isp.desc1.AB.2","AB.3":"privacyIssues.ss2.isp.desc1.AB.3","AB.4":"privacyIssues.ss2.isp.desc1.AB.4","AB.5":"privacyIssues.ss2.isp.desc1.AB.5"},"privacyIssues.ss2.isp.desc2":{"AB.1":"privacyIssues.ss2.isp.desc2.AB.1","AB.2":"privacyIssues.ss2.isp.desc2.AB.2","AB.3":"privacyIssues.ss2.isp.desc2.AB.3","AB.4":"privacyIssues.ss2.isp.desc2.AB.4","AB.5":"privacyIssues.ss2.isp.desc2.AB.5"},"privacyIssues.ss2.publicIp.desc1":{"AB.1":"privacyIssues.ss2.publicIp.desc1.AB.1","AB.2":"privacyIssues.ss2.publicIp.desc1.AB.2","AB.3":"privacyIssues.ss2.publicIp.desc1.AB.3","AB.4":"privacyIssues.ss2.publicIp.desc1.AB.4","AB.5":"privacyIssues.ss2.publicIp.desc1.AB.5"},"privacyIssues.ss2.publicIp.desc2":{"AB.1":"privacyIssues.ss2.publicIp.desc2.AB.1","AB.2":"privacyIssues.ss2.publicIp.desc2.AB.2","AB.3":"privacyIssues.ss2.publicIp.desc2.AB.3","AB.4":"privacyIssues.ss2.publicIp.desc2.AB.4","AB.5":"privacyIssues.ss2.publicIp.desc2.AB.5"},"privacyIssues.ss2.knownLocation.desc1":{"AB.1":"privacyIssues.ss2.knownLocation.desc1.AB.1","AB.2":"privacyIssues.ss2.knownLocation.desc1.AB.2","AB.3":"privacyIssues.ss2.knownLocation.desc1.AB.3","AB.4":"privacyIssues.ss2.knownLocation.desc1.AB.4","AB.5":"privacyIssues.ss2.knownLocation.desc1.AB.5"},"privacyIssues.ss2.knownLocation.desc2":{"AB.1":"privacyIssues.ss2.knownLocation.desc2.AB.1","AB.2":"privacyIssues.ss2.knownLocation.desc2.AB.2","AB.3":"privacyIssues.ss2.knownLocation.desc2.AB.3","AB.4":"privacyIssues.ss2.knownLocation.desc2.AB.4","AB.5":"privacyIssues.ss2.knownLocation.desc2.AB.5"}}};let T=0,C="";function E(s,t){const n=O[C];if(!n)return e(s,t);const a=n[s];if(!a||!T)return e(s,t);const i=a["AB."+T];return e(i||s,t)}const F=s.extend({template:{v:3,t:[{t:7,e:"li",a:{class:"smr_step","data-test":["ss_",{t:2,r:"scanner.id"},"_loader"]},m:[{t:4,f:['aria-current="step"'],n:50,r:"isSelected"}],f:[{t:7,e:"p",a:{class:["smr_step__title ",{t:2,x:{r:["isSelected","scanner.status"],s:'_0?"-selected":"-"+_1'}}]},f:[{t:4,f:[{t:3,x:{r:["nls","scanner.id"],s:'_0("smartscan.ss2.progressBar."+_1)'}}],n:50,r:"scanner.id"}]}," ",{t:7,e:"div",a:{class:"smr_step__wrap"},f:[{t:4,f:[{t:7,e:"kin-icon",a:{name:[{t:2,r:"circleIcon"}],size:"24"}}],n:50,x:{r:["scanner.status"],s:'_0==="done"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["animateScannerProgress"],s:"_0"},f:[{t:7,e:"div",a:{class:"smr_step__circle"},f:[{t:7,e:"ProgressCircle",a:{duration:"0",value:"100"}}]}," ",{t:7,e:"div",a:{class:"smr_step__circle"},f:[{t:7,e:"ProgressCircle",a:{color:"ok",stroke:"3",value:[{t:2,r:"scanner.progress"}]}}]}]},{t:4,n:50,x:{r:["animateScannerProgress"],s:"!(_0)"},f:[" ",{t:7,e:"div",a:{class:"smr_step__dot"}}]}],x:{r:["scanner.status"],s:'_0==="done"'}}]}]}]},data:function(){return{scanner:null,isSelected:null,isResolved:null,animateScannerProgress:!1}},computed:{circleIcon:function(){if(this.get("isResolved")||0===this.get("scanner.issuesCount")){if(k.isExpirableScanner(this.get("scanner.id"))){const s=k.getColor();return s?"circle-"+s:"circle-ok"}return"circle-ok"}return this.get("scanner.issuesCount")>0?"circle-critical":"circle-ok"}},onrender(){this.observe("scanner",(s=>{s&&("running"===s.status||s.progress>0)&&(this.get("getScannerProgress")||setTimeout((()=>{this.set("animateScannerProgress",!0)}),1e3))}))}});const L=s.extend({template:{v:3,t:[{t:7,e:"Page",a:{cssCls:"-no-header -center-all",loading:[{t:2,r:"loading"}],back:"{false}"},f:[{t:7,e:"div",a:{slot:"page-content",class:["kin_page-content ",{t:2,x:{r:["showSmartScanScheduleOption"],s:'_0?"g-margin-top--40":"-scan"'}}," ",{t:2,x:{r:["isOneProgress","smartScanStopped"],s:'_0&&!_1?"smr_one__finish":""'}}]},f:[{t:4,f:[{t:8,r:"okIconPartial"}," ",{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"h1",a:{class:"h1 kin_scan__title"},f:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.purchasedProduct.postScanOffer.title")'}}],n:50,r:"postScanOfferDisplayed"},{t:4,n:51,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.purchasedProduct.title")'}}],r:"postScanOfferDisplayed"}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:8,r:"subtitleTextPartial"}]}," ",{t:8,r:"scheduleScanOption"}]}," ",{t:8,r:"doneActionPartial"}],n:50,r:"purchasedProduct"},{t:4,n:51,f:[{t:4,n:50,x:{r:["smartScanFinished"],s:"_0"},f:[{t:4,f:[{t:7,e:"div",a:{class:"text -small g-font--uppercase"},f:[{t:2,x:{r:["nls"],s:'_0("global.finish")'}}]}," ",{t:7,e:"h1",a:{class:"h1 kin_scan__title g-margin-top--15"},f:[{t:4,f:[{t:2,x:{r:["nls"],s:'_0("smartscan.finalScreen.done.title.firstScan")'}}],n:50,r:"isFirstScan"},{t:4,n:51,f:[{t:2,x:{r:["nls"],s:'_0("smartscan.finalScreen.done.title")'}}],r:"isFirstScan"}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:4,f:[{t:7,e:"span",v:{click:"openPremiumPlans"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.finalScreen.done.subtitle.offer")'}}]}],n:50,r:"IS_FREE"},{t:4,n:51,f:[{t:2,x:{r:["nls"],s:'_0("smartscan.finalScreen.done.subtitle")'}}],r:"IS_FREE"}]}," ",{t:7,e:"div",a:{class:"svg -smartscan-finished smr_one__finish-icon"}}," ",{t:8,r:"doneActionPartial"}],n:50,r:"isOneProgress"},{t:4,n:51,f:[{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:8,r:"okIconPartial"}," ",{t:7,e:"h1",a:{class:"h1 kin_scan__title"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.scanFinished.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.scanFinished.subtitle")'}}],n:50,x:{r:["unresolvedScanners.length"],s:"_0===0"}},{t:4,n:51,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.scanFinished.anySkipped")'}}],x:{r:["unresolvedScanners.length"],s:"_0===0"}}]}," ",{t:8,r:"scheduleScanOption"}]}," ",{t:8,r:"doneActionPartial"}],r:"isOneProgress"}]},{t:4,n:50,x:{r:["smartScanFinished","smartScanStopped"],s:"(!(_0))&&(_1)"},f:[" ",{t:7,e:"kin-icon",a:{name:"circle-critical",class:"kin_scan__icon",size:"96"}}," ",{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"h1",a:{class:"h1 kin_scan__title"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.scanStopped.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.scanStopped.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"button",a:{class:"btn -medium -submit",disabled:[{t:2,r:"pendingAction"}],"data-test":"ss_scanAgain"},v:{click:{n:"buttonClick",a:"runScanAgain"}},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.scanStopped.scanAgain")'}}]}," ",{t:7,e:"button",a:{class:"btn -medium -submit -secondary g-margin-left--10",disabled:[{t:2,r:"pendingAction"}],"data-test":"ss_done"},v:{click:{n:"buttonClick",a:"done"}},f:[{t:3,x:{r:["nls"],s:'_0("global.ok")'}}]}]}]}],r:"purchasedProduct"}]}]}," "],p:{okIconPartial:[{t:7,e:"kin-icon",a:{name:"circle-ok",class:"kin_scan__icon",size:"96"}}],doneActionPartial:[{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"button",a:{class:"btn -medium -submit",disabled:[{t:2,r:"pendingAction"}],"data-test":"ss_done"},v:{click:{n:"buttonClick",a:"done"}},f:[{t:2,x:{r:["isOneProgress","nls"],s:'_0?_1("global.finish"):_1("global.done")'}}]}]}],subtitleTextPartial:[{t:4,f:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.purchasedPremium.postScanOffer.subtitle")'}}],n:50,r:"postScanOfferDisplayed"},{t:4,n:51,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.purchasedPremium.subtitle")'}}],r:"postScanOfferDisplayed"}],n:50,x:{r:["purchasedProduct"],s:'_0==="av"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["purchasedProduct"],s:'_0==="omni"'},f:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.purchasedOmni.postScanOffer.subtitle")'}}],n:50,r:"postScanOfferDisplayed"},{t:4,n:51,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.purchasedOmni.subtitle")'}}],r:"postScanOfferDisplayed"}]},{t:4,n:50,x:{r:["purchasedProduct"],s:'(!(_0==="omni"))&&(_0==="svpn")'},f:[" ",{t:4,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.purchasedSecureLine.postScanOffer.subtitle")'}}],n:50,r:"postScanOfferDisplayed"},{t:4,n:51,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.purchasedSecureLine.postScanOffer.subtitle")'}}],r:"postScanOfferDisplayed"}]},{t:4,n:50,x:{r:["purchasedProduct"],s:'(!(_0==="omni"))&&((!(_0==="svpn"))&&(_0==="cleanup"||_0==="tu"))'},f:[" ",{t:4,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.purchasedCleanUp.postScanOffer.subtitle")'}}],n:50,r:"postScanOfferDisplayed"},{t:4,n:51,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.purchasedCleanUp.postScanOffer.subtitle")'}}],r:"postScanOfferDisplayed"}]}],x:{r:["purchasedProduct"],s:'_0==="av"'}}],scheduleScanOption:[{t:4,f:[{t:7,e:"div",a:{class:"checkbox__row smr_schedule"},f:[{t:7,e:"input",a:{type:"checkbox",checked:[{t:2,r:"scheduleSmartScan"}],id:"ss_scheduleSmartScan","data-test":"ss_scheduleSmartScan",class:"checkbox"}}," ",{t:7,e:"label",a:{class:"checkbox__label",for:"ss_scheduleSmartScan"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.schedule.monthly")'}}," ",{t:7,e:"p",a:{class:"checkbox__desc"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.schedule.desc")'}}]}]}," ",{t:7,e:"kin-icon",a:{name:"schedule",size:"48",class:"smr_schedule__icon"}}]}],n:50,r:"showSmartScanScheduleOption"}]}},css:".smr_one__finish {\n padding-top: 4.5rem !important;\n}\n.smr_one__finish-icon {\n font-size: 40rem;\n margin-top: 8rem;\n}\n.smr_schedule {\n border-top: solid 1px var(--table-border);\n text-align: start;\n padding: 2rem 7rem 0 2rem;\n margin-top: 4rem;\n width: 60rem;\n position: relative;\n}\n.smr_schedule__icon {\n position: absolute;\n top: 2rem;\n right: 1rem;\n}\n[dir='rtl'] .smr_schedule {\n padding: 2rem 2rem 0 7rem;\n}\n[dir='rtl'] .smr_schedule__icon {\n right: auto;\n left: 1rem;\n}\n",data:function(){return{pendingAction:void 0,smartScanStopped:void 0,smartScanFinished:void 0,unresolvedScanners:void 0,postScanOfferDisplayed:void 0,purchasedProduct:void 0,showSmartScanScheduleOption:!1,scheduleSmartScan:!1,loading:!0,isOneProgress:v.getIsOneProgress(),isFirstScan:!localStorage.smartScanRanOnce,IS_FREE:p.isFreeProduct()}},oninit(){this.fire("screenDisplayed"),this.on("openPremiumPlans",(()=>{const s=this.get("scanners")||[];_.openWindow(441,{p_sss:s.map((s=>s.id)).join(",")})})),this.get("smartScanStopped")?i.view("SmartScan/Stopped"):this.get("smartScanFinished")&&i.view("SmartScan/CleanReport"),this.on("buttonClick",((s,e)=>{this.get("smartScanFinished")&&this.get("scheduleSmartScan")&&v.createScheduledSmartScan(),this._resetFlowInProgress?this.set("pendingAction",e):this.fire(e)})),this._resetFlowInProgress=!0,v.resetFlow().then((()=>{const s=this.get("pendingAction");s&&(this.fire(s),this.set("pendingAction",void 0)),this._resetFlowInProgress=!1})),h.smartscan.isSchedulingAllowed()&&!this.get("isOneProgress")?v.isAnySmartScanScheduled().then((s=>{s||this.set({showSmartScanScheduleOption:!0,scheduleSmartScan:!0}),this.set("loading",!1)})):this.set("loading",!1)}}),U=p.getProductId(),z={avast:["av","svpn","cleanup"],avg:["av","svpn","tu"]},M=s.extend({template:{v:3,t:[{t:7,e:"Page",a:{cssCls:["-no-header -center-all ",{t:2,x:{r:["showPostScanOffer"],s:'_0?"":"g-display--none"'}}]},f:[{t:7,e:"div",a:{slot:"page-content"},f:[{t:4,f:[{t:7,e:"div",a:{class:"smr_postOffer_ipm"},f:[{t:7,e:"Ipm",a:{id:[{t:2,r:"ipmId"}],params:[{t:2,r:"smartScanItems"}]}}]}],n:50,x:{r:["isOneProgress","smartScanItems"],s:"!_0&&_1"}}]}]}," ",{t:4,f:[{t:16}],n:50,x:{r:["showPostScanOffer"],s:"!_0"}}]},data:function(){return{showPostScanOffer:void 0,scanners:void 0,smartScanItems:null,ipmStatus:"loading",ipmId:216,isOneProgress:null}},oninit(){this.listeners=[],this.observe("showPostScanOffer ipmStatus",(()=>{this.processOfferBehavior()})),this.addListeners(),this.setSmartScanItems()},addListeners(){this.addInstallListeners(),this.on("Ipm.success",(s=>{216===s&&(console.debug("[SmartScan v2] {IpmPostScanOffer} Ipm.success"),this.set("ipmStatus","loaded"))})),this.on("Ipm.error",(()=>{console.debug("[SmartScan v2] {IpmPostScanOffer} Ipm.error"),this.set("ipmStatus","failed")}))},processOfferBehavior(){const s=this.get("showPostScanOffer"),e="failed"===this.get("ipmStatus");s&&e&&(console.debug("[SmartScan v2] {IpmPostScanOffer} IPM 216 failed to load, go to Dashboard"),location.hash="Dashboard")},setSmartScanItems(){const s=(this.get("scanners")||[]).map((s=>s.id)).join(",");this.set("smartScanItems",{p_sss:s})},addInstallListeners(){this.getProducts().then((s=>{this.listeners.push(r.on("app."+U+".lis.install.event",(e=>{e&&"finish"===e.step&&this.handleInstalledProduct(s)})))})),this.listeners.push(r.on("app.setup.ProgramUpdateFinished",(()=>{this.fire("productPurchased","av"),this.get("scanners").includes("scanSmarthome")?this.fire("productPurchased","omni"):this.fire("productPurchased","av")})))},getProducts:()=>n("app."+U+".lis.get.install",{ids:z[U]}).then((s=>s&&s.products?s.products:{})),handleInstalledProduct(s){this.getProducts().then((e=>{this.fire("productPurchased",this.getInstalledProductId(s,e))}))},getInstalledProductId(s,e){for(const t in s)if(!1===s[t].installed&&!0===e[t].installed)return t;return"av"},onteardown(){this.listeners.forEach((s=>s()))}});const N=s.extend({template:{v:3,t:[{t:7,e:"div",a:{class:["row ",{t:2,x:{r:["clickable"],s:'_0?"-hoverable":""'}}]},v:{click:{n:"showItemDetails",d:[{t:2,r:"sectionId"}]}},f:[{t:7,e:"div",a:{class:"row__icon"},f:[{t:7,e:"div",a:{slot:"icon"},f:[{t:7,e:"div",a:{class:"spi_issue__icon"},f:[{t:4,f:[{t:7,e:"kin-icon",a:{name:"icon-m-eye",size:"24"}}],n:50,x:{r:["sectionId"],s:'_0==="visibleOnline"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["sectionId"],s:'_0==="isp"'},f:[{t:7,e:"kin-icon",a:{name:"icon-m-earth",size:"24"}}]},{t:4,n:50,x:{r:["sectionId"],s:'(!(_0==="isp"))&&(_0==="knownLocation")'},f:[" ",{t:7,e:"kin-icon",a:{name:"icon-m-location-alert",size:"28"}}]},{t:4,n:50,x:{r:["sectionId"],s:'(!(_0==="isp"))&&((!(_0==="knownLocation"))&&(_0==="publicIp"))'},f:[" ",{t:7,e:"kin-icon",a:{name:"icon-m-locate",size:"28"}}]}],x:{r:["sectionId"],s:'_0==="visibleOnline"'}}," ",{t:7,e:"kin-icon",a:{name:"badge-critical",size:"16",class:"spi_issue__sub-icon"}}]}]}]}," ",{t:7,e:"div",a:{class:"row__main"},f:[{t:7,e:"div",a:{slot:"main-content"},f:[{t:7,e:"h4",f:[{t:3,x:{r:["getAbText","sectionId"],s:'_0("privacyIssues.ss2."+_1+".title")'}}," ",{t:7,e:"span",a:{class:"color-critical -text g-rtl-fix"},f:[{t:2,r:"items"}]}]}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:3,x:{r:["getAbText","sectionId"],s:'_0("privacyIssues.ss2."+_1+".desc")'}}]}]}]}," ",{t:4,f:[{t:7,e:"kin-button",v:{click:{n:"showItemDetails",d:[{t:2,r:"sectionId"}]}},a:{size:"small",type:"blank",icononly:"true",class:"row__more",title:[{t:2,x:{r:["nls","sectionId"],s:'_0("privacyIssues.ss2."+_1+".title")'}}," ",{t:2,r:"items"}," - ",{t:2,x:{r:["nls"],s:'_0("global.details")'}}]},f:[{t:7,e:"kin-icon",a:{name:"icon-s-controls-arrow-right",size:"16",rtlflip:"true"}}]}],n:50,r:"clickable"}]}]},data:()=>({sectionId:null,items:null,clickable:!0,issueInfo:null,itemSum:null,getAbText:E})}),j=s.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"Overlay",a:{txt:["{close:'",{t:2,x:{r:["nls"],s:'_0("global.close")'}},"'}"],title:[{t:2,x:{r:["nls"],s:'_0("global.close")'}}]},f:[{t:7,e:"h2",a:{class:"h2"},f:[{t:3,x:{r:["getAbText","sectionId"],s:'_1&&_0("privacyIssues.ss2."+_1+".title")'}}," ",{t:7,e:"span",a:{class:"color-critical -text"},f:[{t:2,x:{r:["getIssueInfo","sectionId"],s:"_0(_1)"}}]}]}," ",{t:7,e:"p",a:{class:"p g-margin-top--10"},f:[{t:3,x:{r:["getAbText","sectionId"],s:'_1&&_0("privacyIssues.ss2."+_1+".desc1")'}}]}," ",{t:7,e:"br"}," ",{t:7,e:"p",a:{class:"p g-margin-bottom--30"},f:[{t:3,x:{r:["getAbText","sectionId"],s:'_1&&_0("privacyIssues.ss2."+_1+".desc2")'}}]}," "]}],n:50,r:"sectionId"}]},data:function(){return{sectionId:void 0,items:void 0,getIssueInfo:this.getIssueInfo,getAbText:E}},oninit(){i.event("Smart Scan 2.0","Detail",this.get("sectionId")),this.on("Overlay.close",(()=>{this.fire("close")}))},getIssueInfo(s){const t=this.get("items")||{};switch(s){case"knownLocation":return t.city||t.country;case"publicIp":return t.ip+" "+e("privacyIssues.ss2.publicIp.publicInBrackets");default:return""}}});const W=new class{getIssuesCount(s){let e=2;return e+=s.publicIp?1:0,e+=s.knownLocation?1:0,e}getItems(s){return s?this._parseItems({issues:s.data}):this._loadItems()}_parseItems(s){const e=[];for(const t of s.issues)e[t.id]=t.desc;return e.scanFailed&&console.error("PrivacyIssues scan failed",e.scanFailed.code),Promise.resolve(e)}_loadItems(){return n("app.smartScan.GetIssues","scanPrivacyIssues").then((s=>this._parseItems(s)))}},V=p.getProductId(),G=s.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_scanPrivacyIssues_progress"},f:[{t:3,x:{r:["nls","scannerData.progress"],s:'_0("privacyIssues.ss2.progress.title",_1)'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("privacyIssues.ss2.progress.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"button",a:{class:"btn -secondary -medium -submit","data-test":"ss_scanPrivacyIssues_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_scanPrivacyIssues_titleEmpty"},f:[{t:3,x:{r:["nls"],s:'_0("privacyIssues.ss2.noIssues.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("privacyIssues.ss2.noIssues.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"button",a:{class:"btn -medium -submit","data-test":"ss_scanPrivacyIssues_next"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.next")'}}]}]}]},{t:4,n:50,x:{r:["scannerData.issuesCount"],s:"!(_0===0)"},f:[" ",{t:7,e:"kin-view",a:{csscls:"-center",loading:[{t:2,r:"loading"}],actionbar:"true"},f:[{t:7,e:"div",a:{slot:"description"},f:[{t:7,e:"h1",a:{class:"h1 kin_scan__title","data-test":"ss_scanPrivacyIssues_title"},f:[{t:3,x:{r:["nls","issuesCount"],s:'_0("privacyIssues.ss2.results.title",_1)'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["getAbText"],s:'_0("privacyIssues.ss2.results.subtitle")'}}]}]}," ",{t:7,e:"div",a:{slot:"view-content",class:"kin_scan__list"},f:[{t:7,e:"Item",a:{sectionId:"visibleOnline"}}," ",{t:7,e:"Item",a:{sectionId:"isp"}}," ",{t:4,f:[{t:7,e:"Item",a:{sectionId:"knownLocation",items:[{t:2,x:{r:["items.knownLocation.city","items.knownLocation.country"],s:"_0||_1"}}]}}],n:50,r:"items.knownLocation"}," ",{t:4,f:[{t:7,e:"Item",a:{sectionId:"publicIp",items:[{t:2,r:"items.publicIp.ip"}," ",{t:2,x:{r:["nls"],s:'_0("privacyIssues.ss2.publicIp.publicInBrackets")'}}]}}],n:50,r:"items.publicIp"}," ",{t:4,f:[{t:7,e:"ItemDetails",a:{sectionId:[{t:2,r:"openedSectionId"}],items:[{t:2,rx:{r:"items",m:[{t:30,n:"openedSectionId"}]}}]}}],n:50,r:"openedSectionId"}]}," ",{t:7,e:"div",a:{slot:"view-actions"},f:[{t:4,f:[{t:7,e:"div",f:[{t:7,e:"button",a:{class:"btn -small -submit","data-test":"ss_scanPrivacyIssues_skip"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}," ",{t:7,e:"button",a:{class:"btn -small -submit -secondary g-margin-left--5","data-test":"ss_scanPrivacyIssues_resolve"},v:{click:"openIpmBuy"},f:[{t:3,x:{r:["nls"],s:'_0("global.resolveAll")'}}]}]}],n:50,r:"ipmOpened"},{t:4,n:51,f:[{t:7,e:"div",f:[{t:7,e:"button",a:{class:"btn -small -submit","data-test":"ss_scanPrivacyIssues_resolve"},v:{click:"openIpmBuy"},f:[{t:3,x:{r:["nls"],s:'_0("global.resolveAll")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:7,e:"button",a:{class:"a","data-test":"ss_scanPrivacyIssues_skip"},v:{click:"skip"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}]}],r:"ipmOpened"}]}]}]}],x:{r:["scannerData.status"],s:'_0!=="done"'}}]},css:".spi_issue__icon {\n position: relative;\n width: 4rem;\n height: 4rem;\n border-radius: 4rem;\n font-size: 2.4rem;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(255,255,255,0.16);\n}\n.spi_issue__sub-icon {\n position: absolute;\n bottom: -1px;\n right: -1px;\n}\n",components:{Item:N,ItemDetails:j},scannerId:void 0,data:function(){return{scannerData:{progress:void 0,status:void 0,issuesCount:void 0},loading:!1,items:null,issuesCount:0,ipmOpened:!1,getAbText:E}},oninit(){i.view("SmartScan/Resolve/Privacy"),this.listeners=[],this.on("skip",(()=>{this.fire("skipScanner",this.scannerId)})),this.on("next",(()=>{this.fire("nextScanner")})),this.on("stop",(()=>{this.fire("stopScan")})),this.on("updateScannerData",(s=>{this.set("scannerData",{progress:s.progress,status:s.status,issuesCount:s.issuesCount}),"done"===s.status&&(i.ipm(373),s.issuesCount>0&&this._init())})),this.on("Item.showItemDetails",((s,e)=>{this.set("openedSectionId",e)})),this.on("ItemDetails.close",(()=>{this.set("openedSectionId",void 0)})),this.on("openIpmBuy",(()=>{_.openWindow(215),setTimeout((()=>{this.set("ipmOpened",!0)}),2e3),this.addInstallListeners()}))},_init(){this.set("loading",!0),W.getItems().then((s=>{this.set({items:s,issuesCount:W.getIssuesCount(s),loading:!1})}))},addInstallListeners(){this.listeners.push(r.on("app."+V+".lis.install.event",(s=>{s&&"finish"===s.step&&n("app."+V+".lis.get.install",{ids:["svpn"]}).then((s=>{s&&s.products&&s.products.svpn.installed&&this.fire("productPurchased","svpn")}))})))},onteardown(){this.listeners.forEach((s=>s()))}});const H=s.extend({template:{v:3,t:[{t:7,e:"div",a:{class:["row ",{t:2,x:{r:["clickable"],s:'_0?"-hoverable":""'}}]},v:{click:"showDetails"},f:[{t:7,e:"div",a:{class:"row__icon"},f:[{t:7,e:"div",a:{slot:"icon"},f:[{t:7,e:"div",a:{class:"sat_issue__icon"},f:[{t:4,f:[{t:7,e:"kin-icon",a:{name:"icon-m-scan-file",size:"28"}}],n:50,x:{r:["sectionId"],s:'_0==="rswSdsCombined"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["sectionId"],s:'_0==="webcamRunningIssue"'},f:[{t:7,e:"kin-icon",a:{name:"icon-l-webcam",size:"30"}}]},{t:4,n:50,x:{r:["sectionId"],s:'(!(_0==="webcamRunningIssue"))&&(_0==="weakFirewall")'},f:[" ",{t:7,e:"kin-icon",a:{name:"icon-m-tools-firewall",size:"28"}}]},{t:4,n:50,x:{r:["sectionId"],s:'(!(_0==="webcamRunningIssue"))&&((!(_0==="weakFirewall"))&&(_0==="secdnsRunningIssue"))'},f:[" ",{t:7,e:"kin-icon",a:{name:"icon-m-tools-real-site",size:"28"}}]}],x:{r:["sectionId"],s:'_0==="rswSdsCombined"'}}," ",{t:4,f:[{t:7,e:"kin-icon",a:{name:"badge-ok",size:"16",class:"sat_issue__sub-icon"}}],n:50,x:{r:["issue.state"],s:'_0==="resolved"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["issue.state"],s:'_0==="resolvedExpiring"'},f:[{t:7,e:"kin-icon",a:{name:[{t:2,r:"expiringStateIcon"}],size:"16",class:"sat_issue__sub-icon"}}]},{t:4,n:50,x:{r:["issue.state"],s:'!(_0==="resolvedExpiring")'},f:[" ",{t:7,e:"kin-icon",a:{name:"badge-critical",size:"16",class:"sat_issue__sub-icon"}}]}],x:{r:["issue.state"],s:'_0==="resolved"'}}]}]}]}," ",{t:7,e:"div",a:{class:"row__main"},f:[{t:7,e:"div",a:{slot:"main-content"},f:[{t:7,e:"h4",f:[{t:2,r:"issueTitle"}]}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:2,r:"issueDesc"}]}]}]}," ",{t:7,e:"div",a:{class:"row__more sat_item__actions"},f:[{t:4,f:[{t:7,e:"kin-button",v:{click:"showDetails"},a:{size:"small",icononly:"true",type:"blank",title:[{t:2,r:"issueTitle"}," - ",{t:2,x:{r:["nls"],s:'_0("global.details")'}}]},f:[{t:7,e:"kin-icon",a:{name:"icon-s-controls-arrow-right",size:"16",rtlflip:"true"}}]}],n:50,r:"clickable"},{t:4,n:51,f:[{t:4,n:50,x:{r:["issue.state"],s:'_0==="resolving"'},f:[{t:7,e:"p",a:{class:"span -secondary -small"},f:[{t:3,x:{r:["nls"],s:'_0("global.resolvingEllipsis")'}}]}," ",{t:7,e:"kin-loading",a:{size:"small",class:"g-margin-left--5"}}]}],r:"clickable"}]}]}]},data:()=>({sectionId:null,issue:null,clickable:!0,issuesCount:null,expiringStateIcon:null}),computed:{issueTitle:function(){let s;const t=this.get("sectionId"),n=this.get("issuesCount"),a=this.get("issue");return s="resolved"===a.state||"resolvedExpiring"===a.state?e("scanAdvancedThreats."+t+".noIssues.title",n||void 0):E("scanAdvancedThreats."+t+".title",n||void 0),s},issueDesc:function(){let s;const t=this.get("sectionId"),n=this.get("issuesCount"),a=this.get("issue");return s="resolved"===a.state||"resolvedExpiring"===a.state?e("scanAdvancedThreats."+t+".noIssues.desc",n||void 0):E("scanAdvancedThreats."+t+".desc",n||void 0),s}},oninit(){this.set("expiringStateIcon",k.getIssueExpiringStateIcon());const s=this.get("sectionId");this.on("showDetails",(()=>{"resolving"!==this.get("issue.state")&&this.fire("showItemDetails",s)}));const e=this.get("issue");"rswSdsCombined"===s&&this.set("issuesCount",e.combinedIssuesCount)}}),J=s.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"kin-loading",a:{label:[{t:3,x:{r:["nls"],s:'_0("global.loading")'}}]}}]}]}],n:50,r:"loading"},{t:4,n:51,f:[{t:4,f:[{t:7,e:"kin-table",a:{datalength:[{t:2,r:"foldersRsw.length"}],dataname:"foldersRsw",scrollrootselector:"kin-view"},f:[{t:7,e:"div",a:{slot:"table-header",role:"row",class:"sat_sds_table__header"},f:[{t:7,e:"div"}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("scanAdvancedThreats.rswSdsCombined.protectedItems")'}}],n:50,x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}},{t:4,n:51,f:[{t:3,x:{r:["nls"],s:'_0("scanAdvancedThreats.rswSdsCombined.unprotectedItems")'}}],x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}}]}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:3,x:{r:["nls"],s:'_0("global.location")'}}]}]}," ",{t:7,e:"div",a:{slot:"table-body-heading"},f:[{t:7,e:"p",a:{class:"p g-margin-top--20 g-margin-bottom--10"},f:[{t:7,e:"span",a:{class:"span -small g-font--uppercase"},f:[{t:3,x:{r:["nls","foldersRsw.length"],s:'_0("scanAdvancedThreats.rswSdsCombined.sensitiveFolders",_1)'}}]}]}]}," ",{t:7,e:"div",a:{slot:"table-body"},f:[{t:4,f:[{t:7,e:"div",a:{role:"row",class:"kin_table__row sat_arw_table__row","data-test":["rsw-table-row-",{t:2,r:"@index"}]},f:[{t:7,e:"div",a:{class:"kin_table__icon"},f:[{t:7,e:"kin-icon",a:{name:"icon-m-scan-folder",size:"24"}}," ",{t:8,r:"stateIcon"}]}," ",{t:7,e:"div",a:{class:"kin_table__name"},f:[{t:7,e:"p",a:{id:["rsw-folderName-tooltip-opener-",{t:2,r:"@index"}],class:"g-ellipsis"},f:[{t:2,r:"folderName"}]}," ",{t:7,e:"Tooltip",a:{openerSelector:["rsw-folderName-tooltip-opener-",{t:2,r:"@index"}],showOnEllipsis:"true",cssCls:"-link",position:"bottom",alignment:"left"},f:[{t:2,r:"folderName"}]}]}," ",{t:7,e:"div",a:{dir:"ltr"},f:[{t:7,e:"p",a:{id:["rsw-path-tooltip-opener-",{t:2,r:"@index"}],class:"g-ellipsis"},f:[{t:2,r:"path"}]}," ",{t:7,e:"Tooltip",a:{openerSelector:["#rsw-path-tooltip-opener-",{t:2,r:"@index"}],showOnEllipsis:"true",cssCls:"-link",position:"bottom",alignment:"left"},f:[{t:2,r:"path"}]}]}]}],n:52,r:"rows_foldersRsw"}]}]}],n:50,r:"foldersRsw.length"}," ",{t:4,f:[{t:7,e:"kin-table",a:{datalength:[{t:2,r:"filesSds.length"}],dataname:"filesSds",scrollrootselector:"kin-view"},f:[{t:4,f:[{t:7,e:"div",a:{slot:"table-header",role:"row",class:"sat_sds_table__header"},f:[{t:7,e:"div"}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("scanAdvancedThreats.rswSdsCombined.protectedItems")'}}],n:50,x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}},{t:4,n:51,f:[{t:3,x:{r:["nls"],s:'_0("scanAdvancedThreats.rswSdsCombined.unprotectedItems")'}}],x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}}]}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:3,x:{r:["nls"],s:'_0("global.location")'}}]}]}],n:50,x:{r:["foldersRsw.length"],s:"_0===0"}}," ",{t:7,e:"div",a:{slot:"table-body-heading"},f:[{t:7,e:"p",a:{class:"p g-margin-top--20 g-margin-bottom--10"},f:[{t:7,e:"span",a:{class:"span -small g-font--uppercase"},f:[{t:3,x:{r:["nls","filesSds.length"],s:'_0("scanAdvancedThreats.rswSdsCombined.sensitiveDocuments",_1)'}}]}]}]}," ",{t:7,e:"div",a:{slot:"table-body"},f:[{t:4,f:[{t:7,e:"div",a:{role:"row",class:"kin_table__row sat_sds_table__row","data-test":["table-row-",{t:2,r:"@index"}]},f:[{t:7,e:"div",a:{class:"kin_table__icon"},f:[{t:7,e:"ImgIcon",a:{src:["data:image/png;base64,",{t:2,r:"icon"}]}}," ",{t:8,r:"stateIcon"}]}," ",{t:7,e:"div",a:{class:"kin_table__name"},f:[{t:7,e:"p",a:{id:["sds-name-tooltip-opener-",{t:2,r:"@index"}],class:"g-ellipsis g-ltr"},f:[{t:2,r:"name"}]}," ",{t:7,e:"Tooltip",a:{openerSelector:["#sds-name-tooltip-opener-",{t:2,r:"@index"}],showOnEllipsis:"true",cssCls:"-link",position:"bottom",alignment:"left"},f:[{t:2,r:"name"}]}]}," ",{t:7,e:"div",f:[{t:7,e:"p",a:{id:["sds-path-tooltip-opener-",{t:2,r:"@index"}],class:"p g-ellipsis g-ltr"},f:[{t:2,r:"folder"}]}," ",{t:7,e:"Tooltip",a:{openerSelector:["#sds-path-tooltip-opener-",{t:2,r:"@index"}],showOnEllipsis:"true",cssCls:"-link",position:"bottom",alignment:"left"},f:[{t:2,r:"folder"}]}]}]}],n:52,r:"rows_filesSds"}]}]}],n:50,r:"filesSds.length"}],r:"loading"}],p:{stateIcon:[{t:4,f:[{t:7,e:"kin-icon",a:{name:"badge-ok",size:"16",class:"sat_file__sub-icon"}}],n:50,x:{r:["issue.state"],s:'_0==="resolved"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["issue.state"],s:'_0==="resolvedExpiring"'},f:[{t:7,e:"kin-icon",a:{name:[{t:2,r:"expiringStateIcon"}],size:"16",class:"sat_file__sub-icon"}}]},{t:4,n:50,x:{r:["issue.state"],s:'!(_0==="resolvedExpiring")'},f:[" ",{t:7,e:"kin-icon",a:{name:"badge-critical",size:"16",class:"sat_file__sub-icon"}}]}],x:{r:["issue.state"],s:'_0==="resolved"'}}]}},data:function(){return{issue:null,loading:!0,filesSds:[],foldersRsw:[],expiringStateIcon:null}},oninit(){this.set("expiringStateIcon",k.getIssueExpiringStateIcon());const s=this.get("issue"),e=[];s.isSecuredSds===s.isSecuredRsw?(e.push(this.setSdsFiles(s)),e.push(this.setRswFolders(s))):s.isPresentRsw?s.isPresentSds?s.isSecuredSds?e.push(this.setRswFolders(s)):s.isSecuredRsw&&e.push(this.setSdsFiles(s)):e.push(this.setRswFolders(s)):e.push(this.setSdsFiles(s)),Promise.all(e).then((()=>{this.set("loading",!1)}))},onrender(){g.kinTableScrollable.initRactive(this)},setSdsFiles(s){return c.importModule("SensitiveData","ServiceProxy").then((e=>{const t=[];for(const n of s.filesSds)e.injectFileDetails(n),t.push(e.getFileIcon(n).then((s=>{n.icon=s})));return Promise.allSettled(t).then((()=>{this.set("filesSds",s.filesSds)}))}))},setRswFolders(s){const e=[];for(const t of s.foldersRsw)e.push({path:t,folderName:this.getFolderName(t)});this.set("foldersRsw",e)},getFolderName(s){const e=s.split(/[\/|\\]/);let t="";do{t=e.pop()}while(0===t.length&&e.length>0);return t}}),$=s.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"Overlay",a:{txt:["{close:'",{t:2,x:{r:["nls"],s:'_0("global.close")'}},"'}"],title:[{t:2,x:{r:["nls"],s:'_0("global.close")'}}],cssCls:"-scroll-table"},f:[{t:7,e:"div",a:{class:"g-align--center"},f:[{t:7,e:"h2",a:{class:"h2 g-margin-top--20"},f:[{t:2,r:"issueTitle"}]}," ",{t:7,e:"p",a:{class:"p g-margin-top--10"},f:[{t:3,r:"issueDesc"}]}," ",{t:4,f:[{t:7,e:"RswSdsCombinedDetails",a:{issue:[{t:2,r:"issue"}]}}],n:50,x:{r:["sectionId"],s:'_0==="rswSdsCombined"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["sectionId"],s:'_0==="webcamRunningIssue"'},f:[{t:4,f:[{t:7,e:"div",a:{class:"svg sat_illustration -webcam-schema-good"}}],n:50,x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"svg sat_illustration -webcam-schema-bad"}}],x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}}]},{t:4,n:50,x:{r:["sectionId"],s:'(!(_0==="webcamRunningIssue"))&&(_0==="weakFirewall")'},f:[" ",{t:4,f:[{t:7,e:"div",a:{class:"svg sat_illustration -firewall-schema-good"}}],n:50,x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"svg sat_illustration -firewall-schema-bad"}}],x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}}]},{t:4,n:50,x:{r:["sectionId"],s:'(!(_0==="webcamRunningIssue"))&&((!(_0==="weakFirewall"))&&(_0==="secdnsRunningIssue"))'},f:[" ",{t:4,f:[{t:7,e:"div",a:{class:"svg sat_illustration -dns-schema-good"}}],n:50,x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"svg sat_illustration -dns-schema-bad"}}],x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}}]}],x:{r:["sectionId"],s:'_0==="rswSdsCombined"'}}]}]}],n:50,r:"sectionId"}]},components:{RswSdsCombinedDetails:J},computed:{issueTitle:function(){let s;const t=this.get("sectionId"),n=this.get("issue"),a=this.get("itemsCount");return s="resolved"===n.state||"resolvedExpiring"===n.state?e("scanAdvancedThreats."+t+".noIssues.title"):E("scanAdvancedThreats."+t+".title",a||void 0),s},issueDesc:function(){let s;const t=this.get("sectionId"),n=this.get("issue");return s="resolved"===n.state||"resolvedExpiring"===n.state?e("scanAdvancedThreats."+t+".noIssues.detail.desc"):E("scanAdvancedThreats."+t+".detail.desc"),s}},data:function(){return{issue:null,sectionId:null,itemsCount:0}},oninit(){const s=this.get("sectionId");i.event("Smart Scan 2.0","Detail",s),this.on("Overlay.close",(()=>{this.fire("close")}));const e=this.get("issue");"rswSdsCombined"===s&&this.set("itemsCount",e.combinedIssuesCount)}});const X=new class{constructor(){this._items=null,this._hideRsw=p.isFreeProduct()}destroy(){this._items=null}getIssuesCount(s){let e=0;return e+=s.rswSdsCombined.isPresent&&!s.rswSdsCombined.isSecured?1:0,e+=s.weakFirewall&&!s.weakFirewall.isSecured?1:0,e+=s.secdnsRunningIssue&&!s.secdnsRunningIssue.isSecured?1:0,e+=s.webcamRunningIssue&&!s.webcamRunningIssue.isSecured?1:0,e}getItems(s){return s?this._parseItems({issues:s.data}):this._items?Promise.resolve(this._items):this._loadItems()}_parseItems(s){const e={};if(!s.issues)return e;const t=[];e.rswSdsCombined={id:"rswSdsCombined",combinedIssuesCount:0,isSecuredRsw:void 0,isSecuredSds:void 0,isPresentSds:void 0,isPresentRsw:void 0,isSecured:void 0,isPresent:!1,foldersRsw:[],filesSds:[]};for(const n of s.issues)switch(n.id){case"rswUnprotectedFiles":this._hideRsw||(e.rswSdsCombined.isPresentRsw=!0,e.rswSdsCombined.isSecuredRsw=n.isSecured,e.rswSdsCombined.foldersRsw=n.desc.files);break;case"datascanUnprotectedFiles":t.push(this._getSensitiveDataParsedResults(n.desc,!n.desc.isSecured,!n.isSecured).then((s=>{e.rswSdsCombined.isPresentSds=!0,e.rswSdsCombined.isSecuredSds=n.isSecured,s.categories[0]&&s.categories[0].files&&(e.rswSdsCombined.filesSds=s.categories[0].files)})));break;default:e[n.id]={id:n.id,isSecured:n.isSecured}}return Promise.all(t).then((()=>(e.rswSdsCombined=this.getRswSdsCombined(e.rswSdsCombined),this._items=e,e)))}_loadItems(){return n("app.smartScan.GetIssues","scanAdvancedThreats").then((s=>this._parseItems(s)))}hideRsw(){this._hideRsw=!0}getRswSdsCombined(s){return s.combinedIssuesCount=this.getRswSdsIssuesCount(s),s.isPresent=s.isPresentRsw||s.isPresentSds,s.isSecured=(s.isSecuredRsw||!s.isPresentRsw)&&(s.isSecuredSds||!s.isPresentSds),s}getRswSdsIssuesCount(s){let e=0;return s.isSecuredRsw===s.isSecuredSds?e=s.filesSds.length+s.foldersRsw.length:s.isPresentRsw?s.isPresentSds?s.isSecuredRsw?e=s.filesSds.length:s.isSecuredSds&&(e=s.foldersRsw.length):e=s.foldersRsw.length:e=s.filesSds.length,e}_getSensitiveDataParsedResults(s,e,t){return c.importModule("SensitiveData","ServiceProxy").then((n=>n.getParsedResults(s,{getNotProtected:t,getAll:e,createAllFilesCategory:!0,createCategories:!1,createPriorities:!1})))}},Z=s.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"},f:[{t:3,x:{r:["nls","scannerData.progress"],s:'_0("scanAdvancedThreats.ss2.progress.title",_1)'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("scanAdvancedThreats.ss2.progress.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"button",a:{class:"btn -secondary -medium -submit","data-test":"ss_scanAdvancedThreats_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:["noItems"],s:"_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_scanAdvancedThreats_titleEmpty"},f:[{t:3,x:{r:["nls"],s:'_0("scanAdvancedThreats.ss2.noIssues.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("scanAdvancedThreats.ss2.noIssues.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"button",a:{class:"btn -medium -submit","data-test":"ss_scanAdvancedThreats_next"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.next")'}}]}]}]},{t:4,n:50,x:{r:["noItems"],s:"!(_0)"},f:[" ",{t:7,e:"kin-view",a:{csscls:"-center",loading:[{t:2,r:"loading"}],actionbar:"true"},f:[{t:7,e:"div",a:{slot:"description"},f:[{t:4,f:[{t:4,f:[{t:8,r:"expiringHeading"}],n:50,r:"isExpiring"},{t:4,n:51,f:[{t:7,e:"h1",a:{class:"h1 kin_scan__title","data-test":"ss_scanAdvancedThreats_titleEmpty"},f:[{t:3,x:{r:["nls"],s:'_0("scanAdvancedThreats.ss2.noIssues.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("scanAdvancedThreats.ss2.noIssues.subtitle")'}}]}],r:"isExpiring"}],n:50,x:{r:["issuesCount"],s:"_0===0"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["allResolved"],s:"_0"},f:[{t:8,r:"expiringHeading"}]},{t:4,n:50,x:{r:["allResolved"],s:"!(_0)"},f:[" ",{t:7,e:"h1",a:{class:"h1 kin_scan__title","data-test":"ss_scanAdvancedThreats_title"},f:[{t:3,x:{r:["nls","issuesCount"],s:'_0("scanAdvancedThreats.ss2.results.title",_1)'}}]}," ",{t:4,f:[{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:2,r:"expiredSubtitle"}]}],n:50,r:"isExpired"},{t:4,n:51,f:[{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:2,x:{r:["getAbText"],s:'_0("scanAdvancedThreats.ss2.results.subtitle")'}}]}],r:"isExpired"}]}],x:{r:["issuesCount"],s:"_0===0"}}]}," ",{t:7,e:"div",a:{slot:"view-content",class:"kin_scan__list"},f:[{t:4,f:[{t:7,e:"Item",a:{sectionId:"rswSdsCombined",issue:[{t:2,r:"items.rswSdsCombined"}]}}],n:50,r:"items.rswSdsCombined.isPresent"}," ",{t:4,f:[{t:7,e:"Item",a:{sectionId:"webcamRunningIssue",issue:[{t:2,r:"items.webcamRunningIssue"}]}}],n:50,r:"items.webcamRunningIssue"}," ",{t:4,f:[{t:7,e:"Item",a:{sectionId:"weakFirewall",issue:[{t:2,r:"items.weakFirewall"}]}}],n:50,r:"items.weakFirewall"}," ",{t:4,f:[{t:7,e:"Item",a:{sectionId:"secdnsRunningIssue",issue:[{t:2,r:"items.secdnsRunningIssue"}]}}],n:50,r:"items.secdnsRunningIssue"}," ",{t:4,f:[{t:7,e:"ItemDetails",a:{sectionId:[{t:2,r:"openedSectionId"}],issue:[{t:2,rx:{r:"items",m:[{t:30,n:"openedSectionId"}]}}]}}],n:50,r:"openedSectionId"}]}," ",{t:7,e:"div",a:{slot:"view-actions"},f:[{t:4,f:[{t:7,e:"div",f:[{t:4,f:[{t:8,r:"actionsLeft"}],n:50,r:"isExpired"}," ",{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"],s:'_0("global.resolvingEllipsis")'}}]}]}],n:50,r:"resolving"},{t:4,n:51,f:[{t:4,n:50,x:{r:["allResolved"],s:"_0"},f:[{t:7,e:"div",f:[{t:8,r:"actionsLeft"}," ",{t:4,f:[{t:8,r:"expiringActions"}],n:50,r:"showExpiringActions"},{t:4,n:51,f:[{t:7,e:"button",a:{class:"btn -small -submit","data-test":"ss_scanAdvancedThreats_next"},v:{click:"next"},f:[{t:2,x:{r:["nls"],s:'_0("global.next")'}}]}],r:"showExpiringActions"}]}]},{t:4,n:50,x:{r:["allResolved","ipmOpened"],s:"(!(_0))&&(_1)"},f:[" ",{t:7,e:"div",f:[{t:8,r:"actionsLeft"}," ",{t:4,f:[{t:8,r:"expiringActions"}],n:50,r:"showExpiringActions"},{t:4,n:51,f:[{t:7,e:"button",a:{class:"btn -small -submit","data-test":"ss_scanAdvancedThreats_skip"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}," ",{t:7,e:"button",a:{class:"btn -small -submit -secondary g-margin-left--5","data-test":"ss_scanAdvancedThreats_resolve"},v:{click:"resolveAll"},f:[{t:3,x:{r:["nls"],s:'_0("global.resolveAll")'}}]}],r:"showExpiringActions"}]}]},{t:4,n:50,x:{r:["allResolved","ipmOpened"],s:"(!(_0))&&(!(_1))"},f:[" ",{t:4,f:[{t:8,r:"actionsLeft"}," ",{t:8,r:"expiringActions"}],n:50,r:"isExpired"},{t:4,n:51,f:[{t:7,e:"div",f:[{t:7,e:"button",a:{class:"btn -small -submit","data-test":"ss_scanAdvancedThreats_resolve"},v:{click:"resolveAll"},f:[{t:3,x:{r:["nls"],s:'_0("global.resolveAll")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:7,e:"button",a:{class:"a","data-test":"ss_scanAdvancedThreats_skip"},v:{click:"skip"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}]}],r:"isExpired"}]}],r:"resolving"}]}]}]}],x:{r:["scannerData.status"],s:'_0!=="done"'}}," "],p:{actionsLeft:[{t:4,f:[{t:7,e:"div",a:{class:"kin_actions__left"},f:[{t:3,r:"actionsLeftLabel"}]}],n:50,r:"actionsLeftLabel"}],expiringActions:[{t:4,f:[{t:7,e:"button",a:{class:"btn -small -submit"},v:{click:{n:[{t:2,x:{r:["isExpired"],s:'_0?"skip":"next"'}}],d:[]}},f:[{t:2,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}," ",{t:7,e:"button",a:{class:"btn -small -submit -secondary g-margin-left--5"},v:{click:"buyExpiringOrExpired"},f:[{t:2,r:"buyBtnLabel"}]}],n:50,r:"ipmOpened"},{t:4,n:51,f:[{t:7,e:"button",a:{class:"btn -small -submit"},v:{click:"buyExpiringOrExpired"},f:[{t:2,r:"buyBtnLabel"}]}," ",{t:7,e:"button",a:{class:"btn -small -submit -secondary g-margin-left--5"},v:{click:{n:[{t:2,x:{r:["isExpired"],s:'_0?"skip":"next"'}}],d:[]}},f:[{t:2,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}],r:"ipmOpened"}],expiringHeading:[{t:7,e:"h1",a:{class:"h1 kin_scan__title","data-test":"ss_scanAdvancedThreats_titleResolved"},f:[{t:3,r:"allResolvedTitle"}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,r:"allResolvedSubtitle"}]}]}},css:".sat_issue__icon {\n position: relative;\n width: 4rem;\n height: 4rem;\n border-radius: 4rem;\n font-size: 2.4rem;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(255,255,255,0.16);\n}\n.sat_issue__sub-icon {\n position: absolute;\n bottom: -1px;\n right: -1px;\n}\n.sat_file__sub-icon {\n position: absolute;\n top: 2.2rem;\n left: 2.2rem;\n}\n.sat_item__actions {\n width: 15%;\n text-align: end;\n line-height: 1.2;\n}\n.sat_illustration.-webcam-schema-good,\n.sat_illustration.-webcam-schema-bad {\n font-size: 550px;\n}\n.sat_illustration.-firewall-schema-good,\n.sat_illustration.-firewall-schema-bad {\n font-size: 630px;\n}\n.sat_illustration.-dns-schema-good,\n.sat_illustration.-dns-schema-bad {\n margin-top: 32px;\n font-size: 550px;\n}\n.sat_sds_table__header,\n.sat_sds_table__row,\n.sat_arw_table__row {\n grid-template-columns: 5% 40% 55%;\n}\n[dir='rtl'] .sat_file__sub-icon {\n right: 1.8rem;\n left: auto;\n}\n",components:{Item:H,ItemDetails:$},scannerId:void 0,data:function(){return{scannerData:{progress:void 0,status:void 0,issuesCount:void 0},loading:!1,items:{},noItems:!1,ipmOpened:!1,allResolved:!1,resolving:!1,progress:0,issuesCount:0,allResolvedTitle:null,allResolvedSubtitle:null,actionsLeftLabel:null,buyBtnLabel:null,showExpiringActions:null,isExpired:null,isExpiring:null,expiredSubtitle:null,getAbText:E}},oninit(){i.view("SmartScan/Resolve/AdvancedThreats"),this.listeners=[],this.observe("allResolved",(s=>{s&&(this.fire("allIssuesResolved",this.scannerId),this.set({allResolvedTitle:k.getAllResolvedTitle(this.scannerId),allResolvedSubtitle:k.getAllResolvedSubtitle(this.scannerId)}))}),{init:!1}),this.on("skip",(()=>{this.fire("skipScanner",this.scannerId)})),this.on("next",(()=>{this.fire("nextScanner")})),this.on("stop",(()=>{this.fire("stopScan")})),this.on("updateScannerData",(s=>{this.set("scannerData",{progress:s.progress,status:s.status,issuesCount:s.issuesCount}),"done"===s.status&&(i.ipm(371),this._init())})),this.on("Item.showItemDetails",(s=>{this.set("openedSectionId",s)})),this.on("ItemDetails.close",(()=>{this.set("openedSectionId",void 0)})),this.on("buyExpiringOrExpired",(()=>{this.openBuyIpm()})),this.on("resolveAll",(()=>{p.isFreeProduct()?this.openBuyIpm():(this.set("resolving",!0),this.updateItems(this.get("items")),setTimeout((()=>{n("app.smartScan.ResolveScanResults","scanAdvancedThreats").then((()=>{this.set("progress",100),setTimeout((()=>{this.set({resolving:!1,allResolved:!0,progress:0}),this.updateItems(this.get("items"))}),400)})).catch((s=>console.error("app.smartScan.ResolveScanResults error ",s)))}),1e3))}))},_init(){this.set("loading",!0);const s=k.isExpired();s&&X.hideRsw(),X.getItems().then((e=>{this.updateIssuesCount(e),this.updateItems(e),this.set({actionsLeftLabel:k.getActionsLeftLabel(this.scannerId),showExpiringActions:k.isExpiringOrExpired(),buyBtnLabel:k.getBuyBtnLabel(this.scannerId),isExpired:s,isExpiring:k.isExpiring(),expiredSubtitle:k.getExpiredSubtitle(this.scannerId),loading:!1})}))},openBuyIpm(){_.openWindow(203),setTimeout((()=>{this.set("ipmOpened",!0)}),2e3),this.addInstallListeners()},updateIssuesCount(s){if(0===Object.keys(s).length)return void this.set("noItems",!0);const e=X.getIssuesCount(s);0===e&&this.set("allResolved",!0),this.set("issuesCount",e)},updateItems(s){for(const e in s){const t=s[e];this.get("allResolved")?t.state=k.isExpiring()?"resolvedExpiring":"resolved":this.get("resolving")?t.isSecured?t.state="resolved":t.state="resolving":t.isSecured?t.state="resolved":t.state="error"}this.set("items",s)},finish(){this.fire("nextScanner"),this.fire("allIssuesResolved",this.scannerId)},addInstallListeners(){this.listeners.push(r.on("app.setup.ProgramUpdateFinished",(()=>{this.fire("productPurchased","av")})))},onteardown(){X.destroy(),this.listeners.forEach((s=>{s()}))}});const q=s.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"row -hoverable"},v:{click:{n:"showItemDetails",d:[{t:2,r:"sectionId"}]}},f:[{t:7,e:"div",a:{class:"row__icon"},f:[{t:7,e:"div",a:{slot:"icon"},f:[{t:7,e:"div",a:{class:"sul_issue__icon"},f:[{t:7,e:"kin-icon",a:{name:[{t:2,rx:{r:"icons",m:[{t:30,n:"sectionId"},"name"]}}],size:[{t:2,rx:{r:"icons",m:[{t:30,n:"sectionId"},"size"]}}]}}," ",{t:4,f:[{t:7,e:"kin-icon",a:{name:"badge-ok",size:"16",class:"sul_issue__sub-icon"}}],n:50,x:{r:["state"],s:'_0==="resolved"'}},{t:4,n:51,f:[{t:7,e:"kin-icon",a:{name:"badge-critical",size:"16",class:"sul_issue__sub-icon"}}],x:{r:["state"],s:'_0==="resolved"'}}]}]}]}," ",{t:7,e:"div",a:{class:"row__main"},f:[{t:7,e:"div",a:{slot:"main-content"},f:[{t:7,e:"h4",f:[{t:2,r:"issueTitle"}]}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:4,f:[{t:4,f:[{t:2,x:{r:["nls","itemSum"],s:'_0("smartscan.ss2.scanUltimate.results.security.noIssues.subtitle",_1)'}}],n:50,x:{r:["state"],s:'_0==="resolved"'}},{t:4,n:51,f:[{t:2,x:{r:["nls","itemSum"],s:'_0("smartscan.ss2.scanUltimate.results.security.subtitle",_1)'}}],x:{r:["state"],s:'_0==="resolved"'}}],n:50,x:{r:["sectionId"],s:'_0==="security"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["sectionId"],s:'_0==="privacy"'},f:[{t:2,x:{r:["nls","itemSum"],s:'_0("smartscan.ss2.scanUltimate.results.privacy.subtitle",_1)'}}]},{t:4,n:50,x:{r:["sectionId"],s:'(!(_0==="privacy"))&&(_0==="performance")'},f:[" ",{t:2,x:{r:["nls","itemSum"],s:'_0("smartscan.ss2.scanUltimate.results.performance.subtitle",_1)'}}]}],x:{r:["sectionId"],s:'_0==="security"'}}]}]}]}," ",{t:7,e:"kin-button",v:{click:{n:"showItemDetails",d:[{t:2,r:"sectionId"}]}},a:{size:"small",type:"blank",icononly:"true",class:"row__more",title:[{t:2,r:"issueTitle"}," - ",{t:2,x:{r:["nls"],s:'_0("global.details")'}}]},f:[{t:7,e:"kin-icon",a:{name:"icon-s-controls-arrow-right",size:"16",rtlflip:"true"}}]}]}]},data:()=>({sectionId:null,itemSum:null,state:null,icons:v.getBrandedIcons()}),computed:{issueTitle:function(){let s;const t=this.get("sectionId"),n=this.get("itemSum"),a=this.get("state");return s=e("security"===t?"resolved"===a?"smartscan.ss2.scanUltimate.results.security.noIssues.title":"smartscan.ss2.scanUltimate.results.security.title":"smartscan.ss2.scanUltimate.results."+t+".title",n),s}}}),K=s.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"Overlay",a:{txt:["{close:'",{t:2,x:{r:["nls"],s:'_0("global.close")'}},"'}"],title:[{t:2,x:{r:["nls"],s:'_0("global.close")'}}],cssCls:"-scroll-table"},f:[{t:7,e:"div",a:{class:"g-align--center"},f:[{t:7,e:"h2",a:{class:"h2 g-margin-top--20"},f:[{t:4,f:[{t:4,f:[{t:2,x:{r:["nls","itemSum"],s:'_0("smartscan.ss2.scanUltimate.results.security.noIssues.title",_1)'}}],n:50,x:{r:["state"],s:'_0==="resolved"'}},{t:4,n:51,f:[{t:2,x:{r:["nls","itemSum"],s:'_0("smartscan.ss2.scanUltimate.results.security.title",_1)'}}],x:{r:["state"],s:'_0==="resolved"'}}],n:50,x:{r:["sectionId"],s:'_0==="security"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["sectionId"],s:'_0==="privacy"'},f:[{t:2,x:{r:["nls","itemSum"],s:'_0("smartscan.ss2.scanUltimate.results.privacy.title",_1)'}}]},{t:4,n:50,x:{r:["sectionId"],s:'(!(_0==="privacy"))&&(_0==="performance")'},f:[" ",{t:2,x:{r:["nls","itemSum"],s:'_0("smartscan.ss2.scanUltimate.results.performance.title",_1)'}}]}],x:{r:["sectionId"],s:'_0==="security"'}}]}," ",{t:7,e:"p",a:{class:"p g-margin-top--10"},f:[{t:4,f:[{t:4,f:[{t:2,x:{r:["nls","itemSum"],s:'_0("smartscan.ss2.scanUltimate.results.security.noIssues.subtitle",_1)'}}],n:50,x:{r:["state"],s:'_0==="resolved"'}},{t:4,n:51,f:[{t:2,x:{r:["nls","itemSum"],s:'_0("smartscan.ss2.scanUltimate.results.security.subtitle",_1)'}}],x:{r:["state"],s:'_0==="resolved"'}}],n:50,x:{r:["sectionId"],s:'_0==="security"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["sectionId"],s:'_0==="privacy"'},f:[{t:2,x:{r:["nls","itemSum"],s:'_0("smartscan.ss2.scanUltimate.results.privacy.subtitle",_1)'}}]},{t:4,n:50,x:{r:["sectionId"],s:'(!(_0==="privacy"))&&(_0==="performance")'},f:[" ",{t:2,x:{r:["nls","itemSum"],s:'_0("smartscan.ss2.scanUltimate.results.performance.subtitle",_1)'}}]}],x:{r:["sectionId"],s:'_0==="security"'}}]}," ",{t:7,e:"div",a:{slot:"table-header",role:"row",class:"sul_table__header"},f:[{t:7,e:"div"}," ",{t:7,e:"div",a:{role:"columnheader"},f:[{t:2,x:{r:["nls"],s:'_0("global.description")'}}]}]}," ",{t:4,f:[{t:7,e:"PrivacyItem",a:{sectionId:"visibleOnline",clickable:"false"}}," ",{t:7,e:"PrivacyItem",a:{sectionId:"isp",clickable:"false"}}," ",{t:4,f:[{t:7,e:"PrivacyItem",a:{sectionId:"knownLocation",items:[{t:2,x:{r:["items.knownLocation.city","items.knownLocation.country"],s:"_0||_1"}}],clickable:"false"}}],n:50,r:"items.knownLocation"}," ",{t:4,f:[{t:7,e:"PrivacyItem",a:{sectionId:"publicIp",items:[{t:2,r:"items.publicIp.ip"}," ",{t:2,x:{r:["nls"],s:'_0("privacyIssues.ss2.publicIp.publicInBrackets")'}}],clickable:"false"}}],n:50,r:"items.publicIp"}],n:50,x:{r:["sectionId"],s:'_0==="privacy"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["sectionId"],s:'_0==="security"'},f:[{t:4,f:[{t:7,e:"SecurityItem",a:{sectionId:"rswSdsCombined",issue:[{t:2,r:"items.rswSdsCombined"}],clickable:"false"}}],n:50,r:"items.rswSdsCombined.isPresent"}," ",{t:4,f:[{t:7,e:"SecurityItem",a:{sectionId:"webcamRunningIssue",issue:[{t:2,r:"items.webcamRunningIssue"}],clickable:"false"}}],n:50,r:"items.webcamRunningIssue"}," ",{t:4,f:[{t:7,e:"SecurityItem",a:{sectionId:"weakFirewall",issue:[{t:2,r:"items.weakFirewall"}],clickable:"false"}}],n:50,r:"items.weakFirewall"}," ",{t:4,f:[{t:7,e:"SecurityItem",a:{sectionId:"secdnsRunningIssue",issue:[{t:2,r:"items.secdnsRunningIssue"}],clickable:"false"}}],n:50,r:"items.secdnsRunningIssue"}]},{t:4,n:50,x:{r:["sectionId","perfomanceItemLoaded"],s:'(!(_0==="security"))&&(_0==="performance"&&_1)'},f:[" ",{t:7,e:"PerformanceIssueItem",a:{sectionId:"diskCleanup",items:[{t:2,r:"items.diskCleanup"}],clickable:"false"}}," ",{t:7,e:"PerformanceIssueItem",a:{sectionId:"regCleanup",items:[{t:2,r:"items.regCleanup"}],clickable:"false"}}," ",{t:7,e:"PerformanceIssueItem",a:{sectionId:"programDeactivator",items:[{t:2,r:"items.programDeactivator"}],clickable:"false"}}," ",{t:7,e:"PerformanceIssueItem",a:{sectionId:"fixProblems",items:[{t:2,r:"items.fixProblems"}],clickable:"false"}}]}],x:{r:["sectionId"],s:'_0==="privacy"'}}]}]}],n:50,r:"sectionId"}]},components:{PrivacyItem:N,SecurityItem:H,PerformanceIssueItem:null},data:function(){return{sectionId:null,items:null,itemSum:null,state:null,perfomanceItemLoaded:!1}},oninit(){const s=this.get("sectionId");i.event("Smart Scan 2.0","Detail",s),this.on("Overlay.close",(()=>{this.fire("close")})),"performance"===s&&c.importModule("Tuneup","IssueItem").then((s=>{this.components.PerformanceIssueItem=s,this.set("perfomanceItemLoaded",!0)}))},getIssueInfo(s){const t=this.get("items")||{};switch(s){case"knownLocation":return t.city||t.country;case"publicIp":return t.ip+" "+e("privacyIssues.ss2.publicIp.publicInBrackets");default:return""}}}),Q=s.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_scanUltimate_progress"},f:[{t:3,x:{r:["nls","scannerData.progress"],s:'_0("smartscan.ss2.scanUltimate.progress.title",_1)'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:4,f:[{t:2,x:{r:["nls"],s:'_0("smartscan.ss2.scanUltimate.progress.security.subtitle")'}}],n:50,x:{r:["scannerData.progress"],s:"_0<60"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["scannerData.progress"],s:"_0<90"},f:[{t:2,x:{r:["nls"],s:'_0("smartscan.ss2.scanUltimate.progress.privacy.subtitle")'}}]},{t:4,n:50,x:{r:["scannerData.progress"],s:"!(_0<90)"},f:[" ",{t:2,x:{r:["nls"],s:'_0("smartscan.ss2.scanUltimate.progress.performance.subtitle")'}}]}],x:{r:["scannerData.progress"],s:"_0<60"}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"button",a:{class:"btn -secondary -medium -submit","data-test":"ss_scanUltimate_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","allResolved"],s:"_0===0||_1"},f:[{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"h1",a:{class:"h1 kin_scan__title","data-test":"ss_scanUltimate_titleEmpty"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.scanUltimate.results.noIssues.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.scanUltimate.results.noIssues.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"button",a:{class:"btn -medium -submit","data-test":"ss_scanUltimate_next"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.next")'}}]}]}]},{t:4,n:50,x:{r:["scannerData.issuesCount","allResolved"],s:"!(_0===0||_1)"},f:[" ",{t:7,e:"kin-view",a:{csscls:"-center",loading:[{t:2,r:"loading"}],actionbar:"true"},f:[{t:7,e:"div",a:{slot:"description"},f:[{t:7,e:"h1",a:{class:"h1 kin_scan__title","data-test":"ss_scanUltimate_title"},f:[{t:3,x:{r:["nls","issuesCount"],s:'_0("smartscan.ss2.scanUltimate.results.title",_1)'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:2,x:{r:["nls"],s:'_0("smartscan.ss2.scanUltimate.results.subtitle")'}}]}]}," ",{t:7,e:"div",a:{slot:"view-content",class:"kin_scan__list"},f:[{t:4,f:[{t:7,e:"Item",a:{sectionId:"security",state:[{t:2,r:"items.security.state"}],itemSum:[{t:2,r:"items.security.itemSum"}]}}],n:50,r:"items.security"}," ",{t:4,f:[{t:7,e:"Item",a:{sectionId:"privacy",itemSum:[{t:2,r:"items.privacy.itemSum"}]}}],n:50,r:"items.privacy"}," ",{t:4,f:[{t:7,e:"Item",a:{sectionId:"performance",itemSum:[{t:2,r:"items.performance.itemSum"}]}}],n:50,r:"items.performance"}," ",{t:4,f:[{t:7,e:"ItemDetails",a:{sectionId:[{t:2,r:"openedSectionId"}],items:[{t:2,rx:{r:"items",m:[{t:30,n:"openedSectionId"},"issues"]}}],itemSum:[{t:2,rx:{r:"items",m:[{t:30,n:"openedSectionId"},"itemSum"]}}],state:[{t:2,rx:{r:"items",m:[{t:30,n:"openedSectionId"},"state"]}}]}}],n:50,r:"openedSectionId"}]}," ",{t:7,e:"div",a:{slot:"view-actions"},f:[{t:4,f:[{t:7,e:"div",f:[{t:7,e:"button",a:{class:"btn -small -submit","data-test":"ss_scanUltimate_skip"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}," ",{t:7,e:"button",a:{class:"btn -small -submit -secondary g-margin-left--5","data-test":"ss_scanUltimate_resolve"},v:{click:"openIpmBuy"},f:[{t:3,x:{r:["nls"],s:'_0("global.resolveAll")'}}]}]}],n:50,r:"ipmOpened"},{t:4,n:51,f:[{t:7,e:"div",f:[{t:7,e:"button",a:{class:"btn -small -submit","data-test":"ss_scanUltimate_resolve"},v:{click:"openIpmBuy"},f:[{t:3,x:{r:["nls"],s:'_0("global.resolveAll")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:7,e:"button",a:{class:"a","data-test":"ss_scanUltimate_skip"},v:{click:"skip"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}]}],r:"ipmOpened"}]}]}]}],x:{r:["scannerData.status"],s:'_0!=="done"'}}]},css:".sul_issue__icon,\n.spi_issue__icon,\n.sat_issue__icon,\n.cpp_issue__icon {\n position: relative;\n width: 4rem;\n height: 4rem;\n border-radius: 4rem;\n font-size: 2.4rem;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: rgba(255,255,255,0.16);\n}\n.spi_issue__icon,\n.sat_issue__icon,\n.cpp_issue__icon {\n background-color: inherit;\n}\n.sul_issue__sub-icon,\n.spi_issue__sub-icon,\n.sat_issue__sub-icon,\n.cpp_issue__sub-icon {\n position: absolute;\n bottom: -1px;\n right: -1px;\n}\n.sul_table__header {\n grid-template-columns: 8% 92%;\n text-align: left;\n}\n",components:{Item:q,ItemDetails:K},scannerId:void 0,data:function(){return{scannerData:{progress:void 0,status:void 0,issuesCount:void 0},loading:!1,items:null,issuesCount:0,allResolved:!1,ipmOpened:!1}},oninit(){i.view("SmartScan/Resolve/Ultimate"),this.listeners=[],this.on("skip",(()=>{this.fire("skipScanner",this.scannerId)})),this.on("next",(()=>{this.fire("nextScanner")})),this.on("stop",(()=>{this.fire("stopScan")})),this.on("updateScannerData",(s=>{this.set("scannerData",{progress:s.progress,status:s.status,issuesCount:s.issuesCount}),"done"===s.status&&(i.ipm(406),s.issuesCount>0&&this._init())})),this.on("Item.showItemDetails",((s,e)=>{this.set("openedSectionId",e)})),this.on("ItemDetails.close",(()=>{this.set("openedSectionId",void 0)})),this.on("openIpmBuy",(()=>{_.openWindow(405),setTimeout((()=>{this.set("ipmOpened",!0)}),2e3),this.addInstallListeners()}))},_init(){this.set("loading",!0),n("app.smartScan.GetIssues","scanUltimate").then((s=>{const e=[],t=s.issues.scanAdvancedThreats;t&&e.push(X.getItems(t).then((s=>{let e=0,t=0;for(const i in s){const n=s[i];n.isSecured?(n.state="resolved",t++):(n.state="error",e++)}const n=e>0?"error":"resolved",a=e>0?e:t;this.set("items.security",{issues:s,state:n,itemSum:a})})));const n=s.issues.scanPrivacyIssues;n&&e.push(W.getItems(n).then((s=>{this.set("items.privacy",{issues:s,itemSum:W.getIssuesCount(s)})})));const a=s.issues.scanTuneup;a&&e.push(this.getTuneupService().then((s=>s.getSmartScanItems(a).then((e=>{this.set("items.performance",{issues:e,itemSum:s.getIssuesCount(e)})}))))),Promise.allSettled(e).then((()=>{const s=this.get("items");let e=0,t=0;for(const i in s)"resolved"===s[i].state?e++:t++;const n=t>0?t:e,a=0===t;this.set({issuesCount:n,allResolved:a,loading:!1})}))}))},getTuneupService(){return this.tuneupService?Promise.resolve(this.tuneupService):c.importModule("Tuneup","ServiceProxy").then((s=>(this.tuneupService=s,s)))},addInstallListeners(){this.listeners.push(r.on("app.setup.ProgramUpdateFinished",(()=>{this.fire("productPurchased","av")})))},onteardown(){this.listeners.forEach((s=>s()))}}),Y={scanAdvancedThreats:Z,scanPrivacyIssues:G,scanUltimate:Q},ss=s.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"IpmPostScanOffer",a:{showPostScanOffer:[{t:2,r:"showPostScanOffer"}],scanners:[{t:2,r:"scanners"}],isOneProgress:[{t:2,r:"isOneProgress"}]},f:[{t:4,f:[{t:7,e:"FinalScreen",a:{postScanOfferDisplayed:[{t:2,r:"postScanOfferDisplayed"}],purchasedProduct:[{t:2,r:"purchasedProduct"}],smartScanStopped:[{t:2,r:"smartScanStopped"}],smartScanFinished:[{t:2,r:"smartScanFinished"}],unresolvedScanners:[{t:2,r:"unresolvedScanners"}],scanners:[{t:2,r:"scanners"}]}}],n:50,x:{r:["smartScanFinished","smartScanStopped"],s:"_0||_1"}},{t:4,n:51,f:[{t:7,e:"Page",a:{cssCls:["-center-all smr_page ",{t:2,x:{r:["isOneProgress"],s:'_0?"smr_one_header":"-medium-header"'}}],loading:[{t:2,r:"loading"}],back:"false"},f:[{t:7,e:"div",a:{slot:"page-title"},f:[{t:4,f:[{t:7,e:"div",a:{class:"smr_one_steps text -small"},f:[{t:4,f:[{t:7,e:"span",a:{class:"g-font--uppercase"},f:[{t:3,x:{r:["nls","displayedScannerIndex","scanners.length"],s:'_0("smartscan.steps",_1+1,_2)'}}]}],n:50,x:{r:["statusPrimary","scanners.length"],s:'_0!=="sec_install_phase"&&_1>1'}}]}],n:50,r:"isOneProgress"},{t:4,n:51,f:[{t:7,e:"ol",a:{role:"group","aria-label":"progress",class:"smr_steps"},f:[{t:4,f:[{t:7,e:"div",a:{class:"smr_steps__line -long -infinite",style:["width:",{t:2,r:"secInstallPhase.progressWidth"},"px"]},f:[{t:7,e:"div",a:{class:"smr_steps__animation__droplet"}}]}],n:50,x:{r:["statusPrimary","scanners.length"],s:'_0==="sec_install_phase"&&_1>1'}}," ",{t:4,f:[{t:7,e:"ProgressSmartScanStep",a:{isSelected:[{t:2,x:{r:["displayedScannerId","./id"],s:"_0===_1"}}],isResolved:[{t:2,x:{r:["resolvedScanners","./id"],s:"_0.includes(_1)"}}],scanner:[{t:2,r:"."}]}}," ",{t:4,f:[{t:7,e:"div",a:{class:["smr_steps__line -",{t:2,r:"./status"}," ",{t:2,x:{r:["skipScannerAnimations"],s:'_0?"-skip-animation":""'}}]},f:[{t:7,e:"div",a:{class:"smr_steps__dots"}}," ",{t:7,e:"div",a:{class:"smr_steps__animation"},f:[{t:7,e:"div",a:{class:"smr_steps__animation__droplet"}}," ",{t:7,e:"div",a:{class:"smr_steps__animation__gradient"}}," ",{t:7,e:"div",a:{class:"smr_steps__animation__plain"}}]}]}],n:50,x:{r:["@index","scanners.length"],s:"_0<_1-1"}}],n:52,r:"scanners"}]}],r:"isOneProgress"}]}," ",{t:7,e:"div",a:{slot:"page-content",class:"nui_smartscan",id:"displayedScannerElm"},f:[{t:4,f:[{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"h1",a:{class:"h1 smr_progress__title"},f:[{t:3,x:{r:["nls","secInstallPhase.progress"],s:'_0("smartscan.ss2.downloadingVirusDefs.title",_1)'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:2,x:{r:["nls"],s:'_0("smartscan.ss2.downloadingVirusDefs.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"button",a:{class:"btn -secondary -medium -submit"},v:{click:"stopOnsecInstallPhase"},f:[{t:3,x:{r:["nls"],s:'_0("global.stopScan")'}}]}]}],n:50,x:{r:["statusPrimary"],s:'_0==="sec_install_phase"'}}]}]}],x:{r:["smartScanFinished","smartScanStopped"],s:"_0||_1"}}]}],n:50,r:"scanners"},{t:4,n:51,f:[{t:4,n:50,x:{r:["shepherdUpdateRunning"],s:"_0"},f:[{t:7,e:"Page",a:{cssCls:["-center-all smr_page ",{t:2,x:{r:["isOneProgress"],s:'_0?"smr_one_header":"-medium-header"'}}],back:"false"},f:[{t:7,e:"div",a:{slot:"page-title"},f:[{t:4,f:[{t:7,e:"ol",a:{role:"group","aria-label":"progress",class:"smr_steps"},f:[{t:7,e:"div",a:{class:"smr_steps__line -long -infinite",style:"width:200px"},f:[{t:7,e:"div",a:{class:"smr_steps__animation__droplet"}}]}," ",{t:7,e:"ProgressSmartScanStep"}," ",{t:7,e:"div",a:{class:"smr_steps__line -infinite"},f:[{t:7,e:"div",a:{class:"smr_steps__dots"}}," ",{t:7,e:"div",a:{class:"smr_steps__animation"},f:[{t:7,e:"div",a:{class:"smr_steps__animation__gradient"}}," ",{t:7,e:"div",a:{class:"smr_steps__animation__plain"}}]}]}," ",{t:7,e:"ProgressSmartScanStep"}]}],n:50,x:{r:["isOneProgress"],s:"!_0"}}]}," ",{t:7,e:"div",a:{slot:"page-content",class:"nui_smartscan"},f:[{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"h1",a:{class:"h1 smr_progress__title"},f:[{t:2,x:{r:["nls"],s:'_0("smartscan.shepherdDownload.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:2,x:{r:["nls"],s:'_0("smartscan.shepherdDownload.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"button",a:{class:"btn -secondary -medium -submit"},v:{click:"stopOnShepherdUpdate"},f:[{t:3,x:{r:["nls"],s:'_0("global.stopScan")'}}]}]}]}]}]}],r:"scanners"},{t:4,f:[{t:7,e:"Modal",f:[{t:7,e:"p",a:{class:"modal__title"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.skipModal.title")'}}]}," ",{t:7,e:"p",a:{class:"modal__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.skipModal.desc")'}}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"button",a:{class:"btn -critical","data-test":"ss_skip_confirm"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.skip")'}}]}," ",{t:7,e:"button",a:{class:"btn -secondary","data-test":"ss_skip_cancel"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.skipModal.dontSkip")'}}]}]}]}],n:50,x:{r:["modalDialog"],s:'_0==="skipScanner"'}},{t:4,f:[{t:7,e:"Modal",f:[{t:7,e:"p",a:{class:"modal__title"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.stopModal.title")'}}]}," ",{t:7,e:"p",a:{class:"modal__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.stopModal.desc")'}}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"button",a:{class:"btn -critical","data-test":"ss_stop_confirm"},v:{click:"confirmStopScan"},f:[{t:3,x:{r:["nls"],s:'_0("global.stopScan")'}}]}," ",{t:7,e:"button",a:{class:"btn -secondary","data-test":"ss_stop_cancel"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("smartscan.ss2.stopModal.closeModal")'}}]}]}]}],n:50,x:{r:["modalDialog"],s:'_0==="stopScan"'}}]},components:{ProgressSmartScanStep:F,FinalScreen:L,IpmPostScanOffer:M},data:function(){return{isOneProgress:null,scanId:void 0,postScanOfferDisplayed:!1,showPostScanOffer:!1,loading:!0,modalDialog:void 0,smartScanFinished:!1,smartScanStopped:!1,purchasedProduct:void 0,skipScannerAnimations:!1,runningScannerId:void 0,displayedScannerId:void 0,displayedScannerIndex:0,scanners:[],resolvedScanners:[],unresolvedScanners:[],statusPrimary:"",secInstallPhase:{progress:0,progressWidth:0},shepherdUpdateRunning:void 0}},oninit(){this.loadedScannerModules=[],this.scannersElm=void 0,this.wasDisplayedScannerRunning=!1,this.on("stopOnsecInstallPhase stopOnShepherdUpdate",(()=>{this.set("modalDialog","stopScan")})),this.on("confirmStopScan",(()=>{this.set("modalDialog",void 0),this._shepherdUpdateRunning?window.location.hash="Dashboard":this.fire("stop"),this._smartScanStopCalled=!0})),this.on("FinalScreen.runScanAgain",(()=>{this.fire("restart")})),this.on("FinalScreen.done",(()=>{this.get("postScanOfferDisplayed")||this.get("smartScanStopped")||this.get("isOneProgress")?this.fire("done"):this.set({postScanOfferDisplayed:!0,showPostScanOffer:!0})})),this.on("FinalScreen.screenDisplayed",(()=>{this._clearDisplayedScannner()})),this.on("PostScanOffer.start",(()=>{this.set({showPostScanOffer:!1,smartScanFinished:!1})})),this.on("PostScanOffer.productPurchased",(s=>{this.productPurchased(s)})),this.observe("scanners",(s=>{s&&this.updateScannerData(this.get("runningScannerId"))}),{init:!1}),this.observe("runningScannerId",(s=>{s&&this.decideNextScanner()}),{init:!1}),this.on("Modal.close",(()=>{this.set("modalDialog",void 0)})),this.on("next",(()=>{this.set("modalDialog",void 0),this.nextScanner()})),Promise.allSettled([k.updateExpirationData(),!B&&(P||D||R)?Promise.resolve():m.getValue("avdef://config/common/SmartScanPersona").then((s=>{const e=parseInt(s);if(null==s||99==e)return _.getParams(["p_sgm"]).then((s=>{const e=parseInt(s.p_sgm);T=e||0}));T=e}))]).then((()=>{this.initFlow()}))},_addDisplayedScannerListeners(s){s.$on("stopScan",(()=>{this.set("modalDialog","stopScan")})),s.$on("nextScanner",(()=>{this.nextScanner()})),s.$on("skipScanner",(s=>{const e=this.getAdaptedParam(s);this.set("modalDialog","skipScanner");const t=this.get("unresolvedScanners");t.includes(e)||(t.push(e),this.update("unresolvedScanners"))})),s.$on("productPurchased",(s=>{this.productPurchased(this.getAdaptedParam(s))})),s.$on("allIssuesResolved",(s=>{const e=this.getAdaptedParam(s),t=this.get("unresolvedScanners");t.includes(e)&&(t.splice(t.indexOf(e),1),this.update("unresolvedScanners")),this.fire("refreshFocus"),this.get("resolvedScanners").push(e)}))},getAdaptedParam:s=>s.detail?s.detail:s,initScanners(s,e){const t=s.scanners;if(e)for(const a of t)a.progress=0,a.status="ready",a.issuesCount=0;let n=null;"sec_install_phase"===s.statusPrimary||this._returnedOnResults||(n=t[0].id),t&&t.length>0&&(this.set({scanners:t,runningScannerId:n,loading:!1}),this.scannersElm=this.find("#displayedScannerElm"))},initFlow(){this._returnedOnProgress=!1,this._returnedOnResults=!1,this._allScannersDone=!1,this._autoStepChangedDisabled=!1,this._smartScanStopCalled=!1,this._multipleRunningScannersDetected=!1,this._shepherdUpdateRunning=null,this.set("isOneProgress",v.getIsOneProgress()),v.getStatus({scanId:this.get("scanId")}).then((s=>{switch(s.statusPrimary){case"scan_report":this._returnedOnResults=!0,this.initScanners(s),this.updateStatus(),this.set("skipScannerAnimations",!0);break;case"scanning":this._returnedOnProgress=!0,this.initScanners(s),this._startPollingStatus(),this.set("skipScannerAnimations",!0),setTimeout((()=>{this.set("skipScannerAnimations",!1)}),1e3);break;default:this.initShepherd()}}))},startScan(){this.fire("start"),this._startPollingStatus()},setShepherdDone(){this._shepherdUpdateRunning=!1,this.set("shepherdUpdateRunning",this._shepherdUpdateRunning),this.startScan()},initShepherd(){m.getValue("avdef://config/common/SmartScanWarmingUp").then((s=>{1===parseInt(s)?(this._shepherdUpdateRunning=!0,this.set("shepherdUpdateRunning",this._shepherdUpdateRunning),setTimeout((()=>{this._shepherdUpdateRunning&&!this._smartScanStopCalled&&this.setShepherdDone()}),7e3),n("app.shepherd.Update").catch((s=>{console.error("app.shepherd.Update",s)})).finally((()=>{this._smartScanStopCalled||this.setShepherdDone()}))):this.startScan()}))},updateScannerData(s){const e=this.loadedScannerModules[s],t=this._getScannerById(s,this.get("scanners"));if(e&&t)if(e.fire)e.fire("updateScannerData",t);else{const s={progress:t.progress,status:t.status,issuesCount:t.issuesCount};e.$set({scannerData:s})}},_startPollingStatus(){this._updateStatusInterval||(this._updateStatusInterval=setInterval((()=>{this.updateStatus()}),300))},_getScannerById:(s,e)=>e.find((e=>e.id===s)),_getScannerIndex(s,e){for(let t=0;t<e.length;t++)if(e[t].id===s)return t;return-1},getScannersWithIssues(s){const e=[];for(const t of s)"done"===t.status&&t.issuesCount>0&&e.push(t);return e},nextScanner(){const s=this.get("scanners"),e=this.get("displayedScannerId"),t=this._getScannerIndex(e,s);t+1<s.length?this.showScanner(s[t+1].id):this.get("showPostScanOffer")?this.fire("done"):this.set("smartScanFinished",!0)},decideNextScanner(){const s=this.get("scanners");this.getScannersWithIssues(s);if(this._multipleRunningScannersDetected)return void this.tempHandleMultipleScanners(s);if(this._allScannersDone&&this._returnedOnResults,this._autoStepChangedDisabled)return;const e=this.get("displayedScannerId"),t=(this._getScannerIndex(e,s),this.get("runningScannerId"));this._getScannerIndex(t,s);e?(this._returnedOnProgress||this._returnedOnResults,this.showScanner(s[0].id),this._autoStepChangedDisabled=!0):this.showScanner(s[0].id)},showScanner(s){const e=this.get("displayedScannerId");e!==s&&this.scannerBeingDisplayedId!==s&&(this.scannerBeingDisplayedId=s,this._clearDisplayedScannner(e),this.getScannerModuleConstructor(s).then((e=>{let t;e.prototype.teardown?t=l(e,{isolated:!0,el:this.scannersElm,scannerId:s}):(this.scannersElm.innerHTML="",t=l(e,{target:this.scannersElm,props:{scannerId:s}})),this.loadedScannerModules[s]=t,delete this.scannerBeingDisplayedId,this.set({displayedScannerId:s,displayedScannerIndex:this._getScannerIndex(s,this.get("scanners"))}),function(s){C=s}(s),this._addDisplayedScannerListeners(t),this.updateScannerData(s),this.fire("refreshFocus")})))},getScannerModuleConstructor(s){const e=f[s].module,t=f[s].view?f[s].view:"SmartScanV2",n=Y[s];return n?Promise.resolve(n):c.importModule(e,t)},isMultipleScannersRunning(s){let e=0;for(const t of s)"running"===t.status&&e++;return e>1},tempHandleMultipleScanners(s){const e=s[0].id;this.showScanner(e),this.updateScannerData(e)},setSecInstallPhaseProgressWidth(s){if(!this.lineElm&&(this.lineElm=this.find(".smr_steps__dots"),this.lineElm)){const e=this.lineElm.clientWidth,t=40;this.set("secInstallPhase.progressWidth",(s.length-1)*e+(s.length-2)*t+20)}},updateStatus(){return v.getStatus({scanId:this.get("scanId")}).then((s=>{switch(0===this.get("scanners").length&&this.initScanners(s,!0),this.set("scanners",s.scanners),this.set("runningScannerId",s.currentScanner),this.set("statusPrimary",s.statusPrimary),this._refreshFocuseWhenScanDone(s.scanners),this._multipleRunningScannersDetected||this.isMultipleScannersRunning(s.scanners)&&(this._multipleRunningScannersDetected=!0),s.statusPrimary){case"sec_install_phase":this.set("secInstallPhase.progress",s.progressSIP),this.setSecInstallPhaseProgressWidth(s.scanners);break;case"scanning":break;default:this._clearUpdateStatusInterval(),this._smartScanStopCalled?this.set("smartScanStopped",!0):this._allScannersDone||(this.track(s.scanners),this._allScannersDone=!0,this.decideNextScanner())}}))},productPurchased(s){this.set({showPostScanOffer:!1,smartScanFinished:!0,purchasedProduct:s})},track(s){const e=new Map([["scanForUpdates","cd25"],["scanViruses","cd28"],["scanBrowsers","cd29"],["scanTuneup","cd31"],["scanPrivacyIssues","cd32"],["scanAdvancedThreats","cd33"],["scanSmarthome","cd34"]]),t={};e.forEach((function(e,n){const a=s.find((s=>s.id===n));t[e]=a?a.issuesCount:"N/A"})),i.event("Smart Scan 2.0","Scanned","Smart Scan","SmartScan/CleanReport",t)},_clearUpdateStatusInterval(){this._updateStatusInterval&&(clearInterval(this._updateStatusInterval),this._updateStatusInterval=void 0)},_clearDisplayedScannner(){const s=this.loadedScannerModules[this.get("displayedScannerId")];s&&s.$destroy()},_refreshFocuseWhenScanDone(s){const e=this.get("displayedScannerId")||"",t=s.find((s=>s.id===e))||{},n="done"===t.status;this.wasDisplayedScannerRunning&&n&&this.fire("refreshFocus"),this.wasDisplayedScannerRunning="running"===t.status},onteardown(){this._clearDisplayedScannner(),this._clearUpdateStatusInterval()}});const es=(ts={css:".smr_progress__title span {\n min-width: 6.5rem;\n text-align: initial;\n display: inline-block;\n}\n.smr_steps {\n position: relative;\n display: flex;\n justify-content: center;\n width: 100%;\n font-weight: 400;\n height: calc(var(--header-height-medium) - 3.6rem);\n padding: 0 8%;\n}\n.smr_steps__dots {\n background-attachment: fixed;\n position: absolute;\n right: 0;\n width: 100%;\n border-top: dotted var(--color-neutral) 2px;\n}\n.smr_steps__animation {\n position: relative;\n width: 0;\n height: 2px;\n}\n.smr_steps__animation__droplet {\n background-color: var(--color-ok);\n width: 10px;\n height: 10px;\n position: absolute;\n right: -5px;\n top: -5px;\n border-radius: 0 75px 75px;\n transform: rotate(-45deg);\n}\n.smr_steps__animation__gradient {\n background-image: linear-gradient(to right, var(--color-neutral), var(--color-ok));\n height: 100%;\n width: 100%;\n opacity: 1;\n position: absolute;\n}\n.smr_steps__animation__plain {\n background: var(--color-neutral);\n height: 100%;\n position: absolute;\n width: 100%;\n opacity: 0;\n}\n.smr_steps__line {\n margin: 1.1rem 0.8rem 0;\n height: 2px;\n position: relative;\n width: 18rem;\n}\n.smr_steps__line.-long {\n margin-left: -5px;\n position: absolute;\n}\n.smr_steps__line.-ready .smr_steps__animation__droplet,\n.smr_steps__line.-running .smr_steps__animation__droplet {\n top: -500px;\n}\n.smr_steps__line.-infinite .smr_steps__animation__droplet {\n border-radius: 100%;\n -webkit-animation: slideLeftRight 3s infinite;\n}\n.smr_steps__line.-done .smr_steps__dots {\n width: 0;\n}\n.smr_steps__line.-done .smr_steps__animation {\n width: 100%;\n}\n.smr_steps__line.-done .smr_steps__animation__droplet {\n opacity: 0;\n}\n.smr_steps__line.-done .smr_steps__animation__gradient {\n opacity: 0;\n}\n.smr_steps__line.-done .smr_steps__animation__plain {\n opacity: 1;\n}\n.smr_steps__line.-done:not(.-skip-animation) .smr_steps__dots {\n transition: width 0.9s;\n}\n.smr_steps__line.-done:not(.-skip-animation) .smr_steps__animation {\n transition: width 1s;\n}\n.smr_steps__line.-done:not(.-skip-animation) .smr_steps__animation__gradient {\n transition: opacity 0.1s linear 1s;\n}\n.smr_steps__line.-done:not(.-skip-animation) .smr_steps__animation__plain {\n transition: opacity 0.1s linear 1s;\n}\n.smr_steps__line.-done:not(.-skip-animation) .smr_steps__animation__droplet {\n right: -15px;\n height: 15px;\n width: 15px;\n margin-top: -2px;\n transition: opacity 0.1s linear 0.95s, right 0.2s linear 0.8s, height 0.15s linear 0.8s, width 0.15s linear 0.8s, margin 0.15s linear 0.8s;\n}\n.smr_postOffer_ipm {\n position: absolute;\n height: 502px;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n[dir='rtl'] .smr_steps__dots {\n right: auto;\n left: 0;\n}\n[dir='rtl'] .smr_steps__animation {\n transform: scaleX(-1);\n}\n.smr_step {\n text-align: center;\n width: 2.4rem;\n height: 2.4rem;\n min-width: 2.4rem;\n}\n.smr_step__title {\n opacity: 0.4;\n padding: 0.5rem 1.5rem;\n border-radius: 8px;\n display: inline-block;\n margin: 3.4rem 0 0;\n font-size: var(--font-size-small);\n position: fixed;\n max-width: 18rem;\n overflow-wrap: break-word;\n transform: translateX(-50%);\n}\n.smr_step__title.-selected {\n opacity: 1;\n background: rgba(255,255,255,0.15);\n}\n.smr_step__title.-done,\n.smr_step__title.-infinite {\n opacity: 0.7;\n}\n.smr_step__dot {\n width: 100%;\n height: 100%;\n opacity: 0.3;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.smr_step__dot:after {\n content: '';\n width: 0.8rem;\n height: 0.8rem;\n border-radius: 20px;\n background: #fff;\n}\n.smr_step__wrap {\n position: relative;\n width: 2.4rem;\n height: 2.4rem;\n}\n.smr_step__circle {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n[dir='rtl'] .smr_step__title {\n transform: translateX(50%);\n}\n",icons:{security:{name:"avast-premier",size:22},privacy:{name:"icon-m-tools-secureline",size:20},performance:{name:"icon-m-tools-cleanup",size:20}}},s.extend({router:new d,mainLayoutView:"smartscreen",template:I,css:ts.css,components:{ProgressSmartScan:ss},decorators:{initFocus:function(s){const e=new u(s);return this.on("ProgressSmartScan.refreshFocus",(()=>{setTimeout((()=>e.setFocus({force:!0})),250)})),{teardown:function(){e.destroy()}}}},data:()=>({scanId:void 0}),oninit(){r.emit("nui.mainLayout.view","smartscreen"),v.setBrandedIcons(ts.icons),v.setOneProgress(ts.isOneProgress),this.router.on("/",(()=>{})),this.router.on("scan/:scanId",(s=>{this.set("scanId",s.scanId)})),this.on("ProgressSmartScan.restart",(()=>{this.set("statusPrimary","restart"),this.updateStatus()})),this.on("ProgressSmartScan.start",(()=>{i.event("Smart Scan","Start","Smart Scan"),v.startSmartScan({scanId:this.get("scanId")}).then((()=>{this.updateStatus()}))})),this.on("PostScanOffer.start",(s=>{v.startSmartScan({scanners:[s]}).then((()=>{this.updateStatus()}))})),this.on("ProgressSmartScan.done",(()=>{i.event("Smart Scan","Done","Smart Scan"),this.setLocalStorageRecord(),location.hash="Dashboard"})),this.on("ProgressSmartScan.stop",(()=>{v.stopSmartScan({scanId:this.get("scanId")})})),this.offBackToDashboard=r.on("backToDashboard",(()=>{window.location.hash="Dashboard"}))},onteardown(){this.router.removeAllListeners(),this.offBackToDashboard()},setLocalStorageRecord(){localStorage.smartScanRanOnce||(localStorage.smartScanRanOnce=!0)},updateStatus(){v.getStatus({scanId:this.get("scanId")}).then((s=>{this.set("statusPrimary",s.statusPrimary)}))}}));var ts;export default es;export{b as scanProgressToaster};const ns={name:"SmartScan",version:"1.2.482",created:"2021-03-10T09:11:14.392Z"};export{ns as metadata};