Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6
System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64
User : User ( 0)
PHP Version : 7.4.6
Disable Function : NONE
Directory :  C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/SmartScan.js
//{"name":"SmartScan","version":"1.2.729","created":"2021-09-06T10:48:44.739Z"}
import s from"./ractive.js";import{serviceRequest as e,napiTracker as t,eventer as n,moduleManager as a,windowApi as i,burgerTracker as r}from"./napi.js";import{svelte3Adapter as c,Router as o,Focuser as l,logger as d}from"./libs.js";import{passwordService as u,productModel as p,ipmService as m,settingsService as h,features as _,napiUtils as f}from"./napiExtensions.js";import{ractiveAdapter as g}from"./ractiveComponents.js";import{nls as S,moment as v}from"./i18n.js";import{plugins as I}from"./ractiveAdapter.js";const b={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"'}}]}]};const x={scanViruses:{module:"Scans"},scanForUpdates:{module:"Software"},scanBrowsers:{module:"BrowserCleanup"},scanTuneup:{module:"Tuneup"},scanPrivacyIssues:{},scanAdvancedThreats:{},scanUltimate:{},scanJunk:{module:"Tuneup",view:"SmartScanV2Junk"},scanOneAdvanced:{module:"Tuneup",view:"SmartScanV2OneAdvanced"},scanOnePerformance:{module:"Tuneup",view:"SmartScanV2OnePerformance"},scanTracking:{module:"Tuneup",view:"SmartScanV2Tracking"},scanLeaks:{module:"DarkWebMonitor",view:"SmartScanV2"}};const k=new class{constructor(){this._getStatusPromise=null,this._brandedIcons=null,this._isOneProgress=!1}_isMappedScanner(s){return x[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 e("app.smartScan.ResetFlow").catch((s=>{console.error("app.smartScan.ResetFlow error:",s)}))}startSmartScan(s){return s&&s.scanId?e("app.scans.StartScan",s.scanId):e("app.smartScan.Start",s).catch((s=>{console.error("app.smartScan.Start error:",s)}))}stopSmartScan(s){return s&&s.scanId?e("app.scans.StopScan",s.scanId):e("app.smartScan.Stop").catch((s=>{console.error("app.smartScan.Stop error:",s)}))}getStatus(s){return this._getStatusPromise||(s&&s.scanId?this._getStatusPromise=e("app.scans.GetScanStatus",s):this._getStatusPromise=e("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 e("app.scanViruses.GetScans").then((s=>s.some((s=>"SmartScan"===s.job&&s.schedule&&Object.keys(s.schedule).length))))}isPasswordForScanCreationRequired(){return u.isPasswordRequiredForRequest("app.scanViruses.CreateScanOnly")}createScheduledSmartScan(){return e("app.scanViruses.CreateScanOnly").then((s=>{const t=new Date,n=(t.getDate()<10?"0":"")+t.getDate(),a=(t.getHours()<10?"0":"")+t.getHours(),i=(t.getMinutes()<10?"0":"")+t.getMinutes(),r=new Date("1970-01-"+n+"T"+a+":"+i+"Z"),c={Label:S("smartscan"),Job:"SmartScan",SchedulerEnabled:"1",SchedType:"Monthly",SchedTime:r/1e3},o=Object.keys(c).map((t=>e("app.settings.Set",{name:"avcfg://settings/***TaskGUID***/"+t,objectId:s,value:c[t]})));return Promise.all(o)}))}setBrandedIcons(s){this._brandedIcons=s}setOneProgress(s){this._isOneProgress=s}getBrandedIcons(){return this._brandedIcons}getIsOneProgress(){return this._isOneProgress}},w="omni"===p.getProduct(),y=p.isFreeProduct(),A=p.isTheOne(),P=["scanAdvancedThreats"];const B=new class{constructor(){this._expirationData={}}updateExpirationData(){if(w||y||A)return Promise.resolve();const s=Date.now();return m.getParams(["p_sumo","p_lst","p_lex"]).then((e=>{const t=parseInt(e.p_sumo),n=parseInt(e.p_lst),a=parseInt(e.p_lex);let i="ok";!(1===t)&&(1===n||4===n)?i="expiring":(2===n||5===n)&&(i="expired");let r="ok";"expired"===i||"expiring"===i&&a<=3?r="critical":"expiring"===i&&(r="attention"),this._expirationData={isTrial:p.isTrial(),state:i,remainingDays:a,expirationDateFormatted:v(s+864e5*a).format("LL"),color:r}}))}isExpiring(){return"expiring"===this._expirationData.state}isExpired(){return"expired"===this._expirationData.state}isExpiringOrExpired(){return this.isExpiring()||this.isExpired()}isExpirableScanner(s){return P.includes(s)}getColor(){return this._expirationData.color}getAllResolvedTitle(s){return"expired"===this._expirationData.state?S(s+".ss2.allResolved.title.expired"):"expiring"===this._expirationData.state?"attention"===this._expirationData.color?S(s+".ss2.allResolved.title.expiring.attention",this._expirationData.remainingDays):S(s+".ss2.allResolved.title.expiring",this._expirationData.remainingDays):'<span class="color-ok -text">'+S(s+".ss2.allResolved.title")+"</span>"}getExpiredSubtitle(s){return"expired"===this._expirationData.state?this._expirationData.isTrial?S(s+".ss2.results.subtitle.expired.trial"):S(s+".ss2.results.subtitle.expired"):null}getAllResolvedSubtitle(s){return"expired"===this._expirationData.state?this._expirationData.isTrial?S(s+".ss2.allResolved.subtitle.expired.trial",this._expirationData.expirationDateFormatted):S(s+".ss2.allResolved.subtitle.expired"):"expiring"===this._expirationData.state?this._expirationData.isTrial?S(s+".ss2.allResolved.subtitle.expiring.trial",this._expirationData.expirationDateFormatted):S(s+".ss2.allResolved.subtitle.expiring",this._expirationData.expirationDateFormatted):S(s+".ss2.allResolved.subtitle")}getBuyBtnLabel(){return this._expirationData.isTrial?S("global.buyNow"):S("global.renewNow")}getActionsLeftLabel(s){let e=s+".ss2.actionsLeft";return"expired"===this._expirationData.state?(e+=".expired",this._expirationData.isTrial&&(e+=".trial"),S(e)):"expiring"===this._expirationData.state?(e+=".expiring",this._expirationData.isTrial&&(e+=".trial"),"attention"===this._expirationData.color&&(e+=".attention"),S(e,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"}},D="omni"===p.getProduct(),R=p.isFreeProduct(),T=p.isTheOne(),O="avg"===p.getProductId(),C={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 F=0,E="";function L(s,e){const t=C[E];if(!t)return S(s,e);const n=t[s];if(!n||!F)return S(s,e);const a=n["AB."+F];return S(a||s,e)}let $=null;function U(s,e,n="",a=null,i=null){const r=e,c=a?Math.round((a-$)/1e3):null,o=i;t.click("Smart Scan","Click",n,`SmartScan step - ${s}`,{a1:r,a2:c,a3:o})}const z={trackClick:U,trackStopClick:function(s,e,t){U(s,e,"stop",performance.now(),t)},trackView:function(s,e){$=performance.now(),t.view(`SmartScan step - ${s}`,{a1:e})}},M=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:4,f:[{t:7,e:"div",a:{class:"smr_step__wrap"},f:[{t:8,r:"scannerTitles"}]}],n:50,r:"isOneProgress"},{t:4,n:51,f:[{t:8,r:"scannerTitles"}," ",{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"'}}]}],r:"isOneProgress"}]}," "],p:{scannerTitles:[{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:2,x:{r:["nls","scanner.id"],s:'_0("smartscan.ss2.progressBar."+_1)'}}],n:50,r:"scanner.id"}]}]}},data:function(){return{scanner:null,isSelected:null,isResolved:null,isOneProgress:null,animateScannerProgress:!1}},computed:{circleIcon:function(){if(this.get("isResolved")||0===this.get("scanner.issuesCount")){if(B.isExpirableScanner(this.get("scanner.id"))){const s=B.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 N=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","isOneProgress"],s:'_0&&!_1?"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:"h1",a:{class:"h1 kin_scan__title g-margin-top--15"},f:[{t:4,f:[{t:3,x:{r:["nls"],s:'_0("smartscan.finalScreen.done.title.firstScan")'}}],n:50,r:"isFirstScan"},{t:4,n:51,f:[{t:3,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:"kin-icon",a:{illustration:"true",size:"280",width:"416",name:"i-023",class:[{t:2,x:{r:["showSmartScanScheduleOption"],s:'_0?"":"g-margin-top--40"'}}]}}," ",{t:8,r:"oneScheduleScanOption"}," ",{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:"kin-button",a:{"kin-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:"kin-button",a:{type:"secondary",class:"g-margin-left--10","kin-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:"kin-button",a:{"kin-disabled":[{t:2,r:"pendingAction"}],"data-test":"ss_done"},v:{click:{n:"buttonClick",a:"done"}},f:[{t:2,x:{r:["nls"],s:'_0("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"},v:{click:"toggleSchedule"}}," ",{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"}],oneScheduleScanOption:[{t:4,f:[{t:7,e:"div",a:{class:"row -tile -rounded"},f:[{t:7,e:"div",a:{class:"row__icon"},f:[{t:7,e:"kin-icon",a:{name:"icon-l-calendar-lines",size:"24"}}]}," ",{t:7,e:"div",a:{class:"row__main"},f:[{t:7,e:"h4",a:{class:"h4"},f:[{t:2,x:{r:["nls"],s:'_0("smartscan.finalScreen.schedule.title")'}}]}," ",{t:7,e:"p",a:{class:"p -secondary -small"},f:[{t:2,x:{r:["nls"],s:'_0("smartscan.finalScreen.schedule.desc")'}}]}]}," ",{t:7,e:"div",a:{class:"row__actions"},f:[{t:7,e:"kin-switch",a:{"kin-checked":[{t:2,r:"scheduleSmartScan"}]},v:{click:"toggleSchedule"}}]}]}],n:50,r:"showSmartScanScheduleOption"}]}},css:".smr_one__finish {\n  padding-top: 4.5rem !important;\n}\n.smr_one__finish-icon {\n  font-size: 50rem;\n}\n.smr_one__schedule {\n  width: 63rem;\n  margin: 0 auto 3rem;\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,passwordRequired:!1,scheduleSmartScanSeen:!1,loading:!0,isOneProgress:k.getIsOneProgress(),isFirstScan:!localStorage.smartScanRanOnce,IS_FREE:p.isFreeProduct()}},oninit(){e("app.settings.Get","avcfg://settings/SmartScan/scheduleSmartScanSeen").then((s=>this.set("scheduleSmartScanSeen",s))),this.fire("screenDisplayed"),this.on("toggleSchedule",(()=>{this.toggle("scheduleSmartScan"),this.get("passwordRequired")&&u.requirePassword().then((s=>{!0===s?this.set("passwordRequired",!1):this.toggle("scheduleSmartScan")}))})),this.on("openPremiumPlans",(()=>{const s=this.get("scanners")||[];m.openWindow(441,{p_sss:s.map((s=>s.id)).join(",")})})),this.get("smartScanStopped")?t.view("SmartScan/Stopped"):this.get("smartScanFinished")&&t.view("SmartScan/CleanReport"),this.on("buttonClick",((s,t)=>{this.get("smartScanFinished")&&(this.fire("scanFinished"),this.get("scheduleSmartScan")&&k.createScheduledSmartScan(),this.get("scheduleSmartScanSeen")||this.get("passwordRequired")||e("app.settings.Set",{name:"avcfg://settings/SmartScan/scheduleSmartScanSeen",value:!0})),this._resetFlowInProgress?this.set("pendingAction",t):this.fire(t)})),this._resetFlowInProgress=!0,k.resetFlow().then((()=>{const s=this.get("pendingAction");s&&(this.fire(s),this.set("pendingAction",void 0)),this._resetFlowInProgress=!1})),_.smartscan.isSchedulingAllowed()?Promise.all([k.isAnySmartScanScheduled(),k.isPasswordForScanCreationRequired()]).then((([s,e])=>{s||this.set({showSmartScanScheduleOption:!0,passwordRequired:e,scheduleSmartScan:!e&&!this.get("scheduleSmartScanSeen")}),this.set("loading",!1)})):this.set("loading",!1)}}),j=p.getProductId(),V={avast:["av","svpn","cleanup"],avg:["av","svpn","tu"]},H=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: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","scannerIpmParams","smartScanItems"],s:"_0&&_1&&_2"}}]}]}," ",{t:4,f:[{t:16}],n:50,x:{r:["showPostScanOffer"],s:"!_0"}}]},data:function(){return{showPostScanOffer:void 0,scanners:void 0,smartScanItems:null,scannerIpmParams:null,ipmStatus:"loading",ipmId:216,isOneProgress:null}},oninit(){this.listeners=[],this.observe("showPostScanOffer ipmStatus",(()=>{this.processOfferBehavior()})),this.observe("scannerIpmParams",(s=>{s&&this.setSmartScanItems(s)})),this.addListeners(),this.setSmartScanItems()},addListeners(){this.get("isOneProgress")||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(s){let e={p_sss:(this.get("scanners")||[]).map((s=>s.id)).join(",")};m.storeIpmParams(e),s&&(e=Object.assign(e,s)),console.debug("[SmartScan v2] {IpmPostScanOffer} params: ",e),this.set("smartScanItems",e)},addInstallListeners(){this.getProducts().then((s=>{this.listeners.push(n.on("app."+j+".lis.install.event",(e=>{e&&"finish"===e.step&&this.handleInstalledProduct(s)})))})),this.listeners.push(n.on("app.setup.ProgramUpdateFinished",(()=>{this.fire("productPurchased","av")})))},getProducts:()=>e("app."+j+".lis.get.install",{ids:V[j]}).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()))}});function W(){}const q=s=>s;function G(s){return s()}function J(){return Object.create(null)}function X(s){s.forEach(G)}function Z(s){return"function"==typeof s}function K(s,e){return s!=s?e==e:s!==e||s&&"object"==typeof s||"function"==typeof s}const Q="undefined"!=typeof window;let Y=Q?()=>window.performance.now():()=>Date.now(),ss=Q?s=>requestAnimationFrame(s):W;const es=new Set;function ts(s){es.forEach((e=>{e.c(s)||(es.delete(e),e.f())})),0!==es.size&&ss(ts)}function ns(s,e){s.appendChild(e)}function as(s,e,t){s.insertBefore(e,t||null)}function is(s){s.parentNode.removeChild(s)}function rs(s){return document.createElement(s)}function cs(s){return document.createTextNode(s)}function os(){return cs(" ")}function ls(){return cs("")}function ds(s,e,t,n){return s.addEventListener(e,t,n),()=>s.removeEventListener(e,t,n)}function us(s,e,t){null==t?s.removeAttribute(e):s.getAttribute(e)!==t&&s.setAttribute(e,t)}function ps(s,e,t){e in s?s[e]=t:us(s,e,t)}function ms(s,e){const t=document.createEvent("CustomEvent");return t.initCustomEvent(s,!1,!1,e),t}const hs=new Set;let _s,fs=0;function gs(s,e){const t=(s.style.animation||"").split(", "),n=t.filter(e?s=>s.indexOf(e)<0:s=>-1===s.indexOf("__svelte")),a=t.length-n.length;a&&(s.style.animation=n.join(", "),fs-=a,fs||ss((()=>{fs||(hs.forEach((s=>{const e=s.__svelte_stylesheet;let t=e.cssRules.length;for(;t--;)e.deleteRule(t);s.__svelte_rules={}})),hs.clear())})))}function Ss(s){_s=s}function vs(){const s=function(){if(!_s)throw new Error("Function called outside component initialization");return _s}();return(e,t)=>{const n=s.$$.callbacks[e];if(n){const a=ms(e,t);n.slice().forEach((e=>{e.call(s,a)}))}}}const Is=[],bs=[],xs=[],ks=[],ws=Promise.resolve();let ys=!1;function As(s){xs.push(s)}let Ps=!1;const Bs=new Set;function Ds(){if(!Ps){Ps=!0;do{for(let s=0;s<Is.length;s+=1){const e=Is[s];Ss(e),Rs(e.$$)}for(Ss(null),Is.length=0;bs.length;)bs.pop()();for(let s=0;s<xs.length;s+=1){const e=xs[s];Bs.has(e)||(Bs.add(e),e())}xs.length=0}while(Is.length);for(;ks.length;)ks.pop()();ys=!1,Ps=!1,Bs.clear()}}function Rs(s){if(null!==s.fragment){s.update(),X(s.before_update);const e=s.dirty;s.dirty=[-1],s.fragment&&s.fragment.p(s.ctx,e),s.after_update.forEach(As)}}let Ts;function Os(s,e,t){s.dispatchEvent(ms(`${e?"intro":"outro"}${t}`))}const Cs=new Set;function Fs(s,e){s&&s.i&&(Cs.delete(s),s.i(e))}const Es={duration:0};function Ls(s,e,t){let n,a,i=e(s,t),r=!1,c=0;function o(){n&&gs(s,n)}function l(){const{delay:e=0,duration:t=300,easing:l=q,tick:d=W,css:u}=i||Es;u&&(n=function(s,e,t,n,a,i,r,c=0){const o=16.666/n;let l="{\n";for(let f=0;f<=1;f+=o){const s=e+(t-e)*i(f);l+=100*f+`%{${r(s,1-s)}}\n`}const d=l+`100% {${r(t,1-t)}}\n}`,u=`__svelte_${function(s){let e=5381,t=s.length;for(;t--;)e=(e<<5)-e^s.charCodeAt(t);return e>>>0}(d)}_${c}`,p=s.ownerDocument;hs.add(p);const m=p.__svelte_stylesheet||(p.__svelte_stylesheet=p.head.appendChild(rs("style")).sheet),h=p.__svelte_rules||(p.__svelte_rules={});h[u]||(h[u]=!0,m.insertRule(`@keyframes ${u} ${d}`,m.cssRules.length));const _=s.style.animation||"";return s.style.animation=`${_?`${_}, `:""}${u} ${n}ms linear ${a}ms 1 both`,fs+=1,u}(s,0,1,t,e,l,u,c++)),d(0,1);const p=Y()+e,m=p+t;a&&a.abort(),r=!0,As((()=>Os(s,!0,"start"))),a=function(s){let e;return 0===es.size&&ss(ts),{promise:new Promise((t=>{es.add(e={c:s,f:t})})),abort(){es.delete(e)}}}((e=>{if(r){if(e>=m)return d(1,0),Os(s,!0,"end"),o(),r=!1;if(e>=p){const s=l((e-p)/t);d(s,1-s)}}return r}))}let d=!1;return{start(){d||(gs(s),Z(i)?(i=i(),(Ts||(Ts=Promise.resolve(),Ts.then((()=>{Ts=null}))),Ts).then(l)):l())},invalidate(){d=!1},end(){r&&(o(),r=!1)}}}function $s(s,e){-1===s.$$.dirty[0]&&(Is.push(s),ys||(ys=!0,ws.then(Ds)),s.$$.dirty.fill(0)),s.$$.dirty[e/31|0]|=1<<e%31}function Us(s,e,t,n,a,i,r=[-1]){const c=_s;Ss(s);const o=s.$$={fragment:null,ctx:null,props:i,update:W,not_equal:a,bound:J(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:J(),dirty:r,skip_bound:!1};let l=!1;if(o.ctx=t?t(s,e.props||{},((e,t,...n)=>{const i=n.length?n[0]:t;return o.ctx&&a(o.ctx[e],o.ctx[e]=i)&&(!o.skip_bound&&o.bound[e]&&o.bound[e](i),l&&$s(s,e)),t})):[],o.update(),l=!0,X(o.before_update),o.fragment=!!n&&n(o.ctx),e.target){if(e.hydrate){const s=function(s){return Array.from(s.childNodes)}(e.target);o.fragment&&o.fragment.l(s),s.forEach(is)}else o.fragment&&o.fragment.c();e.intro&&Fs(s.$$.fragment),function(s,e,t,n){const{fragment:a,on_mount:i,on_destroy:r,after_update:c}=s.$$;a&&a.m(e,t),n||As((()=>{const e=i.map(G).filter(Z);r?r.push(...e):X(e),s.$$.on_mount=[]})),c.forEach(As)}(s,e.target,e.anchor,e.customElement),Ds()}Ss(c)}class zs{$destroy(){!function(s,e){const t=s.$$;null!==t.fragment&&(X(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}(this,1),this.$destroy=W}$on(s,e){const t=this.$$.callbacks[s]||(this.$$.callbacks[s]=[]);return t.push(e),()=>{const s=t.indexOf(e);-1!==s&&t.splice(s,1)}}$set(s){var e;this.$$set&&(e=s,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(s),this.$$.skip_bound=!1)}}function Ms(s,{delay:e=0,duration:t=400,easing:n=q}={}){const a=+getComputedStyle(s).opacity;return{delay:e,duration:t,easing:n,css:s=>"opacity: "+s*a}}function Ns(s){let e;function t(s,e){return s[0]?Hs:Vs}let n=t(s),a=n(s);return{c(){a.c(),e=ls()},m(s,t){a.m(s,t),as(s,e,t)},p(s,i){n===(n=t(s))&&a?a.p(s,i):(a.d(1),a=n(s),a&&(a.c(),Fs(a,1),a.m(e.parentNode,e)))},i(s){Fs(a)},o:W,d(s){a.d(s),s&&is(e)}}}function js(s){let e;function t(s,e){return s[0]?Zs:Xs}let n=t(s),a=n(s);return{c(){a.c(),e=ls()},m(s,t){a.m(s,t),as(s,e,t)},p(s,i){n===(n=t(s))&&a?a.p(s,i):(a.d(1),a=n(s),a&&(a.c(),a.m(e.parentNode,e)))},i:W,o:W,d(s){a.d(s),s&&is(e)}}}function Vs(s){let e,t,n,a,i,r,c,o,l,d=S("smartscan.preparationStep.title",s[1].progress)+"";function u(s,e){return 0===s[1].subtitleIndex?qs:Ws}let p=u(s),m=p(s);return{c(){e=rs("div"),t=rs("h1"),n=os(),a=rs("div"),m.c(),i=os(),r=rs("div"),c=rs("kin-button"),c.textContent=`${S("global.stopScan")}`,us(t,"class","h1 smr_progress__title"),us(a,"class","kin_scan__subtitle"),us(e,"class","kin_scan__result"),ps(c,"type","secondary"),us(r,"class","kin_scan__actions")},m(u,p){as(u,e,p),ns(e,t),t.innerHTML=d,ns(e,n),ns(e,a),m.m(a,null),as(u,i,p),as(u,r,p),ns(r,c),o||(l=ds(c,"click",s[2]),o=!0)},p(s,e){2&e&&d!==(d=S("smartscan.preparationStep.title",s[1].progress)+"")&&(t.innerHTML=d),p===(p=u(s))&&m?m.p(s,e):(m.d(1),m=p(s),m&&(m.c(),Fs(m,1),m.m(a,null)))},i(s){Fs(m)},o:W,d(s){s&&is(e),m.d(),s&&is(i),s&&is(r),o=!1,l()}}}function Hs(s){let e,t,n,a,i,r,c,o,l,d,u,p,m,h=S("smartscan.preparationStep.title")+"";function _(s,e){return 0===s[1].subtitleIndex?Js:Gs}let f=_(s),g=f(s);return{c(){e=rs("div"),t=rs("h1"),n=os(),a=rs("p"),g.c(),i=os(),r=rs("div"),c=rs("kin-progress"),l=os(),d=rs("div"),u=rs("kin-button"),u.textContent=`${S("global.stopScan")}`,us(t,"class","h1 kin_scan__title"),us(a,"class","kin_scan__subtitle"),ps(c,"circle","true"),ps(c,"percentage",o=s[1].progress),ps(c,"progresslabel","true"),us(r,"class","kin_scan__progress"),ps(u,"type","secondary"),us(d,"class","kin_scan__actions"),us(e,"class","kin_scan")},m(o,_){as(o,e,_),ns(e,t),t.innerHTML=h,ns(e,n),ns(e,a),g.m(a,null),ns(e,i),ns(e,r),ns(r,c),ns(e,l),ns(e,d),ns(d,u),p||(m=ds(u,"click",s[2]),p=!0)},p(s,e){f===(f=_(s))&&g?g.p(s,e):(g.d(1),g=f(s),g&&(g.c(),Fs(g,1),g.m(a,null))),2&e&&o!==(o=s[1].progress)&&ps(c,"percentage",o)},i(s){Fs(g)},o:W,d(s){s&&is(e),g.d(),p=!1,m()}}}function Ws(s){let e,t;return{c(){e=rs("span"),e.textContent=`${S("smartscan.preparationStep.vps.desc.1")}`},m(s,t){as(s,e,t)},p:W,i(s){t||As((()=>{t=Ls(e,Ms,{delay:200}),t.start()}))},o:W,d(s){s&&is(e)}}}function qs(s){let e,t;return{c(){e=rs("span"),e.textContent=`${S("smartscan.preparationStep.vps.desc.0")}`},m(s,t){as(s,e,t)},p:W,i(s){t||As((()=>{t=Ls(e,Ms,{delay:200}),t.start()}))},o:W,d(s){s&&is(e)}}}function Gs(s){let e,t;return{c(){e=rs("span"),e.textContent=`${S("smartscan.preparationStep.vps.desc.1")}`},m(s,t){as(s,e,t)},p:W,i(s){t||As((()=>{t=Ls(e,Ms,{delay:200}),t.start()}))},o:W,d(s){s&&is(e)}}}function Js(s){let e,t;return{c(){e=rs("span"),e.textContent=`${S("smartscan.preparationStep.vps.desc.0")}`},m(s,t){as(s,e,t)},p:W,i(s){t||As((()=>{t=Ls(e,Ms,{delay:200}),t.start()}))},o:W,d(s){s&&is(e)}}}function Xs(s){let e,t,n,a,i,r,c,o,l,d=S("smartscan.preparationStep.title",s[1].fakeProgress)+"";return{c(){e=rs("div"),t=rs("h1"),n=os(),a=rs("p"),a.textContent=`${S("smartscan.preparationStep.shepherd.desc")}`,i=os(),r=rs("div"),c=rs("kin-button"),c.textContent=`${S("global.stopScan")}`,us(t,"class","h1 smr_progress__title"),us(a,"class","kin_scan__subtitle"),us(e,"class","kin_scan__result"),ps(c,"type","secondary"),us(r,"class","kin_scan__actions")},m(u,p){as(u,e,p),ns(e,t),t.innerHTML=d,ns(e,n),ns(e,a),as(u,i,p),as(u,r,p),ns(r,c),o||(l=ds(c,"click",s[2]),o=!0)},p(s,e){2&e&&d!==(d=S("smartscan.preparationStep.title",s[1].fakeProgress)+"")&&(t.innerHTML=d)},d(s){s&&is(e),s&&is(i),s&&is(r),o=!1,l()}}}function Zs(s){let e,t,n,a,i,r,c,o,l,d,u,p,m,h=S("smartscan.preparationStep.title")+"";return{c(){e=rs("div"),t=rs("h1"),n=os(),a=rs("p"),a.textContent=`${S("smartscan.preparationStep.shepherd.desc")}`,i=os(),r=rs("div"),c=rs("kin-progress"),l=os(),d=rs("div"),u=rs("kin-button"),u.textContent=`${S("global.stopScan")}`,us(t,"class","h1 kin_scan__title"),us(a,"class","kin_scan__subtitle"),ps(c,"circle","true"),ps(c,"percentage",o=s[1].fakeProgress),ps(c,"progresslabel","true"),us(r,"class","kin_scan__progress"),ps(u,"type","secondary"),us(d,"class","kin_scan__actions"),us(e,"class","kin_scan")},m(o,_){as(o,e,_),ns(e,t),t.innerHTML=h,ns(e,n),ns(e,a),ns(e,i),ns(e,r),ns(r,c),ns(e,l),ns(e,d),ns(d,u),p||(m=ds(u,"click",s[2]),p=!0)},p(s,e){2&e&&o!==(o=s[1].fakeProgress)&&ps(c,"percentage",o)},d(s){s&&is(e),p=!1,m()}}}function Ks(s){let e;function t(s,e){return"shepherdUpdate"===s[1].id?js:"secInstallPhase"===s[1].id?Ns:void 0}let n=t(s),a=n&&n(s);return{c(){a&&a.c(),e=ls()},m(s,t){a&&a.m(s,t),as(s,e,t)},p(s,[i]){n===(n=t(s))&&a?a.p(s,i):(a&&a.d(1),a=n&&n(s),a&&(a.c(),Fs(a,1),a.m(e.parentNode,e)))},i(s){Fs(a)},o:W,d(s){a&&a.d(s),s&&is(e)}}}function Qs(s,e,t){let{isOneProgress:n}=e,{stepData:a}=e;const i=vs();return s.$$set=s=>{"isOneProgress"in s&&t(0,n=s.isOneProgress),"stepData"in s&&t(1,a=s.stepData)},[n,a,function(){i("stop")}]}const Ys=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:L})}),se=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:["getAbText","sectionId"],s:'_1&&_0("privacyIssues.ss2."+_1+".title")'}}]},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:L}},oninit(){t.event("Smart Scan 2.0","Detail",this.get("sectionId")),this.on("Overlay.close",(()=>{this.fire("close")}))},getIssueInfo(s){const e=this.get("items")||{};switch(s){case"knownLocation":return e.city||e.country;case"publicIp":return e.ip+" "+S("privacyIssues.ss2.publicIp.publicInBrackets");default:return""}}});const ee=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 e("app.smartScan.GetIssues","scanPrivacyIssues").then((s=>this._parseItems(s)))}},te=p.getProductId(),ne=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:"kin-button",a:{type:"secondary","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:"kin-button",v:{click:"next"},a:{"data-test":"ss_scanPrivacyIssues_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:"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:"kin-button",a:{type:"small","data-test":"ss_scanPrivacyIssues_skip"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}," ",{t:7,e:"kin-button",a:{type:"secondary",size:"small",class:"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:"kin-button",a:{type:"small","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:Ys,ItemDetails:se},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:L}},oninit(){t.view("SmartScan/Resolve/Privacy"),this.listeners=[],this.on("skip",(()=>{this.fire("skipScanner",{scannerId: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&&(t.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",(()=>{m.openWindow(215),setTimeout((()=>{this.set("ipmOpened",!0)}),2e3),this.addInstallListeners()}))},_init(){this.set("loading",!0),ee.getItems().then((s=>{this.set({items:s,issuesCount:ee.getIssuesCount(s),loading:!1})}))},addInstallListeners(){this.listeners.push(n.on("app."+te+".lis.install.event",(s=>{s&&"finish"===s.step&&e("app."+te+".lis.get.install",{ids:["svpn"]}).then((s=>{s&&s.products&&s.products.svpn.installed&&this.fire("productPurchased","svpn")}))})))},onteardown(){this.listeners.forEach((s=>s()))}});function ae(s,e,t,n="results"){const a="detail"===n?".detail.title":".title";let i;return i="resolved"===e.state||"resolvedExpiring"===e.state?S("scanAdvancedThreats."+s+".noIssues"+a,t||void 0):"weakFirewall"===s&&e.offerPremiumFeatures?S("scanAdvancedThreats.weakFirewall.title.offerPremiumFeatures"):L("scanAdvancedThreats."+s+".title",t||void 0),i}function ie(s,e,t,n="results"){const a="detail"===n?".detail.desc":".desc";let i;return i="resolved"===e.state||"resolvedExpiring"===e.state?S("scanAdvancedThreats."+s+".noIssues"+a,t||void 0):"weakFirewall"===s&&e.offerPremiumFeatures?S("scanAdvancedThreats.weakFirewall.desc.offerPremiumFeatures"):L("scanAdvancedThreats."+s+a,t||void 0),i}const re=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(){return ae(this.get("sectionId"),this.get("issue"),this.get("issuesCount"))},issueDesc:function(){return ie(this.get("sectionId"),this.get("issue"),this.get("issuesCount"))}},oninit(){this.set("expiringStateIcon",B.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)}}),ce=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"},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:"kin-tooltip",a:{ellipsis:"true"},f:[{t:7,e:"div",a:{slot:"tooltip-activator"},f:[{t:2,r:"folderName"}]}," ",{t:7,e:"div",a:{slot:"tooltip"},f:[{t:2,r:"folderName"}]}]}]}," ",{t:7,e:"div",a:{dir:"ltr"},f:[{t:7,e:"kin-tooltip",a:{ellipsis:"true"},f:[{t:7,e:"div",a:{slot:"tooltip-activator"},f:[{t:2,r:"path"}]}," ",{t:7,e:"div",a:{slot:"tooltip"},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:".sve_overlay__contents"},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",dir:"ltr"},f:[{t:7,e:"kin-tooltip",a:{ellipsis:"true"},f:[{t:7,e:"div",a:{slot:"tooltip-activator"},f:[{t:2,r:"name"}]}," ",{t:7,e:"div",a:{slot:"tooltip"},f:[{t:2,r:"name"}]}]}]}," ",{t:7,e:"div",a:{dir:"ltr"},f:[{t:7,e:"kin-tooltip",a:{ellipsis:"true"},f:[{t:7,e:"div",a:{slot:"tooltip-activator"},f:[{t:2,r:"folder"}]}," ",{t:7,e:"div",a:{slot:"tooltip"},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",B.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(){I.kinTableScrollable.initRactive(this)},setSdsFiles(s){return a.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}});function oe(s,e,t){const n=s.slice();return n[2]=e[t][0],n[3]=e[t][1],n}function le(s){let e;return{c(){e=rs("kin-icon"),ps(e,"name","schema-firewall-critical"),ps(e,"size","360"),ps(e,"width","760")},m(s,t){as(s,e,t)},p:W,d(s){s&&is(e)}}}function de(s){let e;return{c(){e=rs("kin-icon"),ps(e,"name","schema-firewall-ok"),ps(e,"size","360"),ps(e,"width","760")},m(s,t){as(s,e,t)},p:W,d(s){s&&is(e)}}}function ue(s){let e,t=Object.entries(s[1]),n=[];for(let a=0;a<t.length;a+=1)n[a]=pe(oe(s,t,a));return{c(){e=rs("div");for(let s=0;s<n.length;s+=1)n[s].c();us(e,"class","sat_frw__wrap svelte-1h4ilof")},m(s,t){as(s,e,t);for(let a=0;a<n.length;a+=1)n[a].m(e,null)},p(s,a){if(2&a){let i;for(t=Object.entries(s[1]),i=0;i<t.length;i+=1){const r=oe(s,t,i);n[i]?n[i].p(r,a):(n[i]=pe(r),n[i].c(),n[i].m(e,null))}for(;i<n.length;i+=1)n[i].d(1);n.length=t.length}},d(s){s&&is(e),function(s,e){for(let t=0;t<s.length;t+=1)s[t]&&s[t].d(e)}(n,s)}}}function pe(s){let e,t,n,a,i,r,c,o,l,d=s[3].title+"",u=s[3].desc+"";return{c(){e=rs("div"),t=rs("kin-icon"),n=os(),a=rs("h3"),i=cs(d),r=os(),c=rs("p"),o=cs(u),l=os(),ps(t,"name",s[3].icon),ps(t,"size","80"),us(a,"class","g-margin-top--10 p -margins"),us(c,"class","p -secondary -small"),us(e,"class","sat_frw__item svelte-1h4ilof")},m(s,d){as(s,e,d),ns(e,t),ns(e,n),ns(e,a),ns(a,i),ns(e,r),ns(e,c),ns(c,o),ns(e,l)},p:W,d(s){s&&is(e)}}}function me(s){let e;function t(s,e){return s[0].offerPremiumFeatures?ue:"resolved"===s[0].state||"resolvedExpiring"===s[0].state?de:le}let n=t(s),a=n(s);return{c(){a.c(),e=ls()},m(s,t){a.m(s,t),as(s,e,t)},p(s,[i]){n===(n=t(s))&&a?a.p(s,i):(a.d(1),a=n(s),a&&(a.c(),a.m(e.parentNode,e)))},i:W,o:W,d(s){a.d(s),s&&is(e)}}}function he(s,e,t){let{issue:n}=e;const a={leakProtection:{icon:"icon-xl-laptop-screen",title:S("scanAdvancedThreats.weakFirewall.detail.premium.leakProtection.title"),desc:S("scanAdvancedThreats.weakFirewall.detail.premium.leakProtection.desc")},portScanAlerts:{icon:"icon-xl-fast-port",title:S("scanAdvancedThreats.weakFirewall.detail.premium.portScanAlerts.title"),desc:S("scanAdvancedThreats.weakFirewall.detail.premium.portScanAlerts.desc")},spoofingAlerts:{icon:"icon-xl-arp-spoofing",title:S("scanAdvancedThreats.weakFirewall.detail.premium.arpSpoofingAlerts.title"),desc:S("scanAdvancedThreats.weakFirewall.detail.premium.arpSpoofingAlerts.desc")}};return s.$$set=s=>{"issue"in s&&t(0,n=s.issue)},[n,a]}const _e=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,r:"issueTitle"}]},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:"kin-icon",a:{name:"schema-webcam-ok",size:"360",width:"760"}}],n:50,x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}},{t:4,n:51,f:[{t:7,e:"kin-icon",a:{name:"schema-webcam-critical",size:"360",width:"760"}}],x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}}]},{t:4,n:50,x:{r:["sectionId"],s:'(!(_0==="webcamRunningIssue"))&&(_0==="weakFirewall")'},f:[" ",{t:7,e:"FwDetails",a:{issue:[{t:2,r:"issue"}]}}]},{t:4,n:50,x:{r:["sectionId"],s:'(!(_0==="webcamRunningIssue"))&&((!(_0==="weakFirewall"))&&(_0==="secdnsRunningIssue"))'},f:[" ",{t:4,f:[{t:7,e:"kin-icon",a:{name:"schema-dns-ok",size:"360",width:"760"}}],n:50,x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}},{t:4,n:51,f:[{t:7,e:"kin-icon",a:{name:"schema-dns-critical",size:"360",width:"760"}}],x:{r:["issue.state"],s:'_0==="resolved"||_0==="resolvedExpiring"'}}]}],x:{r:["sectionId"],s:'_0==="rswSdsCombined"'}}]}]}],n:50,r:"sectionId"}]},components:{RswSdsCombinedDetails:ce,FwDetails:g(class extends zs{constructor(s){var e;super(),document.getElementById("svelte-1h4ilof-style")||((e=rs("style")).id="svelte-1h4ilof-style",e.textContent=".sat_frw__wrap.svelte-1h4ilof{display:flex;margin-top:15vh;justify-content:space-around}.sat_frw__item.svelte-1h4ilof{width:22rem}",ns(document.head,e)),Us(this,s,he,me,K,{issue:0})}},{attrs:["loading","issue"]})},computed:{issueTitle:function(){return ae(this.get("sectionId"),this.get("issue"),this.get("itemsCount"),"detail")},issueDesc:function(){return ie(this.get("sectionId"),this.get("issue"),this.get("itemsCount"),"detail")}},data:function(){return{issue:null,sectionId:null,itemsCount:0}},oninit(){const s=this.get("sectionId");t.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)}}),fe=p.isFreeProduct();const ge=new class{constructor(){this._items=null,this._hideRsw=fe,this._newFwEnabled=null}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 h.getValue("avdef://config/GuiCache/NewFW",{localStorage:!0,cached:!0}).then((e=>(this._newFwEnabled="1"==e,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"weakFirewall":e[n.id]={id:n.id,isSecured:!fe&&n.isSecured,offerPremiumFeatures:this._newFwEnabled&&fe};break;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 e("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 a.importModule("SensitiveData","ServiceProxy").then((n=>n.getParsedResults(s,{getNotProtected:t,getAll:e,createAllFilesCategory:!0,createCategories:!1,createPriorities:!1})))}},Se=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:"kin-button",a:{type:"secondary","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:"kin-button",v:{click:"next"},a:{"data-test":"ss_scanAdvancedThreats_next"},f:[{t:3,x:{r:["nls"],s:'_0("global.next")'}}]}]}]},{t:4,n:50,x:{r:["noItems"],s:"!(_0)"},f:[" ",{t:7,e:"View",a:{csscls:"-center",loading:[{t:2,r:"loading"}],actionbar:"true"},f:[{t:7,e:"div",a:{slot:"description"},f:[{t:4,f:[{t:4,f:[{t:8,r:"allResolvedHeading"}],n:50,x:{r:["isExpired","isExpiring"],s:"_0||_1"}},{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")'}}]}],x:{r:["isExpired","isExpiring"],s:"_0||_1"}}],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:"allResolvedHeading"}]},{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:"kin-button",a:{size:"small","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:"kin-button",a:{size:"small","data-test":"ss_scanAdvancedThreats_skip"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}," ",{t:7,e:"kin-button",a:{size:"small",type:"secondary",class:"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:"kin-button",a:{size:"small","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:"kin-button",a:{size:"small"},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:"kin-button",a:{size:"small",type:"secondary",class:"g-margin-left--5"},v:{click:"buyExpiringOrExpired"},f:[{t:2,r:"buyBtnLabel"}]}],n:50,r:"ipmOpened"},{t:4,n:51,f:[{t:7,e:"kin-button",a:{size:"small"},v:{click:"buyExpiringOrExpired"},f:[{t:2,r:"buyBtnLabel"}]}," ",{t:7,e:"kin-button",a:{size:"small",type:"secondary",class:"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"}],allResolvedHeading:[{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_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:re,ItemDetails:_e},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:L}},oninit(){t.view("SmartScan/Resolve/AdvancedThreats"),this.listeners=[],this.observe("allResolved",(s=>{s&&(this.fire("allIssuesResolved",this.scannerId),this.set({allResolvedTitle:B.getAllResolvedTitle(this.scannerId),allResolvedSubtitle:B.getAllResolvedSubtitle(this.scannerId)}))}),{init:!1}),this.on("skip",(()=>{this.fire("skipScanner",{scannerId: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&&(t.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((()=>{e("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=B.isExpired();s&&ge.hideRsw(),ge.getItems().then((e=>{this.updateIssuesCount(e),this.updateItems(e),this.set({actionsLeftLabel:B.getActionsLeftLabel(this.scannerId),showExpiringActions:B.isExpiringOrExpired(),buyBtnLabel:B.getBuyBtnLabel(this.scannerId),isExpired:s,isExpiring:B.isExpiring(),expiredSubtitle:B.getExpiredSubtitle(this.scannerId),loading:!1})}))},openBuyIpm(){m.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=ge.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=B.isExpiringOrExpired()?"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(n.on("app.setup.ProgramUpdateFinished",(()=>{this.fire("productPurchased","av")})))},onteardown(){ge.destroy(),this.listeners.forEach((s=>{s()}))}});const ve=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:k.getBrandedIcons()}),computed:{issueTitle:function(){let s;const e=this.get("sectionId"),t=this.get("itemSum"),n=this.get("state");return s=S("security"===e?"resolved"===n?"smartscan.ss2.scanUltimate.results.security.noIssues.title":"smartscan.ss2.scanUltimate.results.security.title":"smartscan.ss2.scanUltimate.results."+e+".title",t),s}}}),Ie=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","sectionId"],s:"_0(_1)"}}]},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:Ys,SecurityItem:re,PerformanceIssueItem:null},data:function(){return{sectionId:null,items:null,itemSum:null,state:null,perfomanceItemLoaded:!1}},oninit(){const s=this.get("sectionId");t.event("Smart Scan 2.0","Detail",s),this.on("Overlay.close",(()=>{this.fire("close")})),"performance"===s&&a.importModule("Tuneup","IssueItem").then((s=>{this.components.PerformanceIssueItem=s,this.set("perfomanceItemLoaded",!0)}))},getIssueInfo(s){const e=this.get("items")||{};switch(s){case"knownLocation":return e.city||e.country;case"publicIp":return e.ip+" "+S("privacyIssues.ss2.publicIp.publicInBrackets");default:return""}}}),be=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:"kin-button",a:{type:"secondary","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:"kin-button",v:{click:"next"},a:{"data-test":"ss_scanUltimate_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:"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:"kin-button",a:{size:"small","data-test":"ss_scanUltimate_skip"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}," ",{t:7,e:"kin-button",a:{size:"small",type:"secondary",class:"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:"kin-button",a:{size:"small","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:ve,ItemDetails:Ie},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(){t.view("SmartScan/Resolve/Ultimate"),this.listeners=[],this.on("skip",(()=>{this.fire("skipScanner",{scannerId: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&&(t.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",(()=>{m.openWindow(405),setTimeout((()=>{this.set("ipmOpened",!0)}),2e3),this.addInstallListeners()}))},_init(){this.set("loading",!0),e("app.smartScan.GetIssues","scanUltimate").then((s=>{const e=[],t=s.issues.scanAdvancedThreats;t&&e.push(ge.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(ee.getItems(n).then((s=>{this.set("items.privacy",{issues:s,itemSum:ee.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):a.importModule("Tuneup","ServiceProxy").then((s=>(this.tuneupService=s,s)))},addInstallListeners(){this.listeners.push(n.on("app.setup.ProgramUpdateFinished",(()=>{this.fire("productPurchased","av")})))},onteardown(){this.listeners.forEach((s=>s()))}}),xe={scanAdvancedThreats:Se,scanPrivacyIssues:ne,scanUltimate:be},ke=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"}],scannerIpmParams:[{t:2,r:"scannerIpmParams"}]},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:4,n:50,x:{r:["loading"],s:"_0"},f:[{t:7,e:"kin-loading"}]},{t:4,n:50,x:{r:["loading"],s:"!(_0)"},f:[" ",{t:7,e:"Page",a:{cssCls:"-center-all smr_page -medium-header",back:"false"},f:[{t:7,e:"div",a:{slot:"page-title"},f:[{t:7,e:"ol",a:{role:"group","aria-label":"progress",class:"smr_steps"},f:[{t:4,f:[{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:"."}],isOneProgress:[{t:2,r:"isOneProgress"}]}}," ",{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"}],n:50,x:{r:["statusPrimary"],s:'_0!=="sec_install_phase"'}}]}]}," ",{t:7,e:"div",a:{slot:"page-content",class:"nui_smartscan",id:"displayedScannerElm"},f:[{t:4,f:[{t:7,e:"PreparationStep",a:{stepData:[{t:2,r:"secInstallPhase"}],isOneProgress:[{t:2,r:"isOneProgress"}]}}],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:["shepherdUpdate.fakeProgressStarted"],s:"_0"},f:[{t:7,e:"Page",a:{cssCls:"-center-all smr_page -medium-header",back:"false"},f:[{t:7,e:"div",a:{slot:"page-title"},f:[{t:7,e:"div",a:{class:"smr_steps"}}]}," ",{t:7,e:"div",a:{slot:"page-content",class:"nui_smartscan"},f:[{t:7,e:"PreparationStep",a:{stepData:[{t:2,r:"shepherdUpdate"}],isOneProgress:[{t:2,r:"isOneProgress"}]}}]}]}]},{t:4,n:50,x:{r:["shepherdUpdate.fakeProgressStarted"],s:"!(_0)"},f:[" ",{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"kin-loading"}]}]}]}],r:"scanners"},{t:4,f:[{t:4,f:[{t:7,e:"Modal",f:[{t:7,e:"p",a:{class:"modal__title"},f:[{t:2,x:{r:["modalDialog.customTexts.title","nls"],s:'_0||_1("smartscan.ss2.skipModal.title")'}}]}," ",{t:7,e:"p",a:{class:"modal__subtitle"},f:[{t:2,x:{r:["modalDialog.customTexts.desc","nls"],s:'_0||_1("smartscan.ss2.skipModal.desc")'}}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"kin-button",a:{type:"critical","data-test":"ss_skip_confirm"},v:{click:"next"},f:[{t:2,x:{r:["modalDialog.customTexts.confirm","nls"],s:'_0||_1("global.skip")'}}]}," ",{t:7,e:"kin-button",a:{type:"secondary","data-test":"ss_skip_cancel"},v:{click:"Modal.close"},f:[{t:2,x:{r:["modalDialog.customTexts.cancel","nls"],s:'_0||_1("smartscan.ss2.skipModal.dontSkip")'}}]}]}]}],n:50,x:{r:["modalDialog.type"],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:"kin-button",a:{type:"critical","data-test":"ss_stop_confirm"},v:{click:"confirmStopScan"},f:[{t:3,x:{r:["nls"],s:'_0("global.stopScan")'}}]}," ",{t:7,e:"kin-button",a:{type:"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.type"],s:'_0==="stopScan"'}}],n:50,r:"modalDialog"}]},components:{ProgressSmartScanStep:M,FinalScreen:N,IpmPostScanOffer:H,PreparationStep:g(class extends zs{constructor(s){super(),Us(this,s,Qs,Ks,K,{isOneProgress:0,stepData:1})}},{attrs:["isOneProgress","stepData"],events:["stop"]})},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:[],scannerIpmParams:null,resolvedScanners:[],unresolvedScanners:[],statusPrimary:"",secInstallPhase:{progress:0,subtitleIndex:0,started:!1,id:"secInstallPhase"},shepherdUpdate:{fakeProgress:0,fakeProgressStarted:!1,id:"shepherdUpdate"}}},oninit(){this.loadedScannerModules=[],this.scannersElm=void 0,this.wasDisplayedScannerRunning=!1,this.scannerIpmParams={},this.on("PreparationStep.stop",(()=>{this._preparationStepStopped=!0,this.set("modalDialog",{type:"stopScan"})})),this.on("confirmStopScan",(()=>{if(this.set("modalDialog",void 0),this._shepherdUpdateRunning?window.location.hash="Dashboard":this.fire("stop"),this._preparationStepStopped){const s="secInstallPhase"===this._currentPrepationStepId?this.get("secInstallPhase.progress"):this.get("shepherdUpdate.fakeProgress");z.trackStopClick(0,this._currentPrepationStepId,s)}this._smartScanStopCalled=!0})),this.on("FinalScreen.runScanAgain",(()=>{this.fire("restart")})),this.on("FinalScreen.done",(()=>{this.get("postScanOfferDisplayed")||this.get("smartScanStopped")?this.fire("done"):this.set({postScanOfferDisplayed:!0,showPostScanOffer:!0})})),this.on("FinalScreen.scanFinished",(()=>{this.fire("scanFinished")})),this.on("FinalScreen.screenDisplayed",(()=>{this._clearDisplayedScannner()})),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._preparationStepStopped=!1,this.set("modalDialog",void 0)})),this.on("next",(()=>{const s=this.get("modalDialog");e("app.scanViruses.Skip",{scanId:s.scanId}).catch((()=>{})),this.set("modalDialog",void 0),this.nextScanner()})),Promise.allSettled([B.updateExpirationData(),!R&&(D||T||O)?(F=0,Promise.resolve()):h.getValue("avcfg://settings/Common/DisablePersonalization").then((s=>{if(1!==parseInt(s))return h.getValue("avdef://config/common/SmartScanPersona").then((s=>{const e=parseInt(s);if(null==s||99==e)return m.getParams(["p_sgm"]).then((s=>{const e=parseInt(s.p_sgm);F=e||0}));F=e}));F=0}))]).then((()=>{this.initFlow()}))},_addDisplayedScannerListeners(s){const t=this.get("displayedScannerIndex")+1,n=this.get("displayedScannerId");s.$on("stopScan",(()=>{this.set("modalDialog",{type:"stopScan"})})),s.$on("nextScanner",(()=>{this.nextScanner()})),s.$on("trackSmartScanClick",(s=>{const e=this.getAdaptedParam(s).label;z.trackClick(t,n,e)})),s.$on("trackSmartScanStop",(()=>{const s=this._getScannerById(n,this.get("scanners")).progress;z.trackStopClick(t,n,s)})),s.$on("saveScannerIpmParams",(s=>{if(this.get("isOneProgress")){const e=this.getAdaptedParam(s);m.storeIpmParams(e),this.scannerIpmParams=Object.assign(this.scannerIpmParams,e),this.get("displayedScannerIndex")+1===this.get("scanners").length&&this.set("scannerIpmParams",this.scannerIpmParams)}})),s.$on("skipScanner",(s=>{const t=this.getAdaptedParam(s),n=t.scannerId;!0===t.hideSkipModal?(e("app.scanViruses.Skip",{scanId:n}).catch((()=>{})),this.nextScanner()):this.set("modalDialog",{type:"skipScanner",customTexts:t.customSkipModal,scanId:n});const a=this.get("unresolvedScanners");a.includes(n)||(a.push(n),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._currentPrepationStepId=null,this._preparationStepStopped=!1,this.set("isOneProgress",k.getIsOneProgress()),k.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._clearShepherdProgressInterval(),this.startScan()},startFakeShepherdProgress(){setTimeout((()=>{if(this._shepherdUpdateRunning&&!this._smartScanStopCalled){this.set("shepherdUpdate.fakeProgressStarted",!0);let s=0;const e=240;this._shepherdProgressInterval=setInterval((()=>{s++,this.set("shepherdUpdate.fakeProgress",s)}),e)}}),1e3)},_clearShepherdProgressInterval(){this._shepherdProgressInterval&&(clearInterval(this._shepherdProgressInterval),this._shepherdProgressInterval=null)},initShepherd(){h.getValue("avdef://config/common/SmartScanWarmingUp").then((s=>{1===parseInt(s)?(this._shepherdUpdateRunning=!0,this._currentPrepationStepId="shepherdUpdate",z.trackView(0,this._currentPrepationStepId),this.set("shepherdUpdate.running",this._shepherdUpdateRunning),this.startFakeShepherdProgress(),setTimeout((()=>{this._shepherdUpdateRunning&&!this._smartScanStopCalled&&this.setShepherdDone()}),7e3),e("app.shepherd.Update").catch((s=>{console.error("app.shepherd.Update",s)})).finally((()=>{this._smartScanStopCalled||(f.supportedSince("21.3")?this.setShepherdDone():setTimeout((()=>{this.setShepherdDone()}),2e3))}))):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},setSmartScanFinished(){this.set("smartScanFinished",!0)},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("isOneProgress")&&null==this.get("scannerIpmParams")&&this.set("scannerIpmParams",this.scannerIpmParams),this.setSmartScanFinished())},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=c(e,{isolated:!0,el:this.scannersElm,scannerId:s,prevScannersIpmParams:this.scannerIpmParams}):(this.scannersElm.innerHTML="",t=c(e,{target:this.scannersElm,props:{scannerId:s,prevScannersIpmParams:this.scannerIpmParams}})),this.loadedScannerModules[s]=t,delete this.scannerBeingDisplayedId,this.set({displayedScannerId:s,displayedScannerIndex:this._getScannerIndex(s,this.get("scanners"))}),function(s){E=s}(s),z.trackView(this.get("displayedScannerIndex")+1,s),this._addDisplayedScannerListeners(t),this.updateScannerData(s),this.fire("refreshFocus")})))},getScannerModuleConstructor(s){const e=x[s].module,t=x[s].view?x[s].view:"SmartScanV2",n=xe[s];return n?Promise.resolve(n):a.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)},updateStatus(){return k.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),"sec_install_phase"===s.statusPrimary&&!1===this.get("secInstallPhase.started")&&(this.set("secInstallPhase.started",!0),this._currentPrepationStepId="secInstallPhase",z.trackView(0,this._currentPrepationStepId)),s.statusPrimary){case"sec_install_phase":this.setSecInstallPhase(s.progressSIP);break;case"scanning":break;default:this._clearUpdateStatusInterval(),this._smartScanStopCalled?this.set("smartScanStopped",!0):this._allScannersDone||(this.track(s.scanners),this._allScannersDone=!0,this.decideNextScanner())}}))},setSecInstallPhase(s){if(null==this.secInstallPhaseFakingTime&&(this.secInstallPhaseFakingTime=0,this.set("secInstallPhase.subtitleIndex",0)),this.secInstallPhaseFakingTime+=300,this.secInstallPhaseFakingTime>5e3){const s=this.get("secInstallPhase.subtitleIndex");this.secInstallPhaseFakingTime=0,this.set("secInstallPhase.subtitleIndex",0===s?1:0)}const e=this.get("secInstallPhase.progress");let t=e;s>=90?t=s:e<90&&this.secInstallPhaseFakingTime%600==0&&t++,this.set("secInstallPhase.progress",Math.max(t,this.get("shepherdUpdate.fakeProgress"),this.get("secInstallPhase.progress")))},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"]]),n={};e.forEach((function(e,t){const a=s.find((s=>s.id===t));n[e]=a?a.issuesCount:"N/A"})),t.event("Smart Scan 2.0","Scanned","Smart Scan","SmartScan/CleanReport",n)},_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(),this._clearShepherdProgressInterval()}});const we={security:{name:"avast-premier",size:22},privacy:{name:"icon-m-tools-secureline",size:20},performance:{name:"icon-m-tools-cleanup",size:20}},ye={toasterView:!0,toasterClose:!0},Ae=d.createLogger("smartScan.toasters.scanProgress"),Pe=s.components.Toaster.extend({windowClose:i.close,asyncLoad:!0,gaTrack:t,data:function(){return{scanLabel:null,scanProgress:null,scanRunning:null,scanProblemsCount:null,buttonLabel:S("scans.toasters.scanProgress.buttonLabel"),buttonLabelGA:"Details",windowHeight:256,burgerToasterTracker:ye}},computed:{text:function(){let s=null;const e=this.get("scanProblemsCount"),t=this.get("scanRunning");return t?s="<br/>"+S("scans.toasters.scanProgress.title.running",this.get("scanLabel")):!t&&e?s=S("scans.toasters.scanProgress.title.finished",this.get("scanLabel"))+"<br/>"+S("scans.toasters.scanProgress.text.issues",e):t||e||(s=S("scans.toasters.scanProgress.title.finished",this.get("scanLabel"))+"<br/>"+S("scans.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(),e("app.scans.GetScanProps",{id:this.get("params.scanId")||"smart_scan"}).then((s=>{Ae.info("scan data received"),Ae.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){Ae.error("init getting data failed",s),i.close({reason:i.CLOSE_REASONS.error})}))})).catch((function(s){Ae.error("scan not loaded",s),i.close({reason:i.CLOSE_REASONS.error})})),this.on("doAction",this.openScanDetail.bind(this)),this.on("doAreaAction",this.openScanDetail.bind(this))},updateData:function(){return k.getStatus().then((s=>{Ae.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){Ae.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(){Ae.info("opening details"),r.toaster.click({label:"Open SmartScan"}),e("app.windowManager.ShowMainWindow",{route:"SmartScan"}).then((function(){i.close({reason:i.CLOSE_REASONS.navigateToOtherWindow})})).catch((function(s){Ae.error("opening details failed",s)}))}}),Be=(De={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  z-index: 4;\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.-ready .smr_steps__animation__droplet,\n.smr_steps__line.-running .smr_steps__animation__droplet {\n  top: -500px;\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-color: var(--table-selected);\n}\n.smr_step__title.-done {\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-color: var(--ds-on-background);\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:we},s.extend({router:new o,mainLayoutView:"smartscreen",template:b,css:De.css,components:{ProgressSmartScan:ke},decorators:{initFocus:function(s){const e=new l(s);return this.on("ProgressSmartScan.refreshFocus",(()=>{setTimeout((()=>e.setFocus({force:!0})),250)})),{teardown:function(){e.destroy()}}}},data:()=>({scanId:void 0}),oninit(){n.emit("nui.mainLayout.view","smartscreen"),k.setBrandedIcons(De.icons),k.setOneProgress(De.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",(()=>{t.event("Smart Scan","Start","Smart Scan"),t.click("Smart Scan","Click","Start","SmartScan"),k.startSmartScan({scanId:this.get("scanId")}).then((()=>{this.updateStatus()}))})),this.on("ProgressSmartScan.scanFinished",(()=>{this.setLocalStorageRecord()})),this.on("ProgressSmartScan.done",(()=>{t.event("Smart Scan","Done","Smart Scan"),location.hash="Dashboard"})),this.on("ProgressSmartScan.stop",(()=>{k.stopSmartScan({scanId:this.get("scanId")})})),this.offBackToDashboard=n.on("backToDashboard",(()=>{window.location.hash="Dashboard"}))},onteardown(){this.router.removeAllListeners(),this.offBackToDashboard()},setLocalStorageRecord(){localStorage.smartScanRanOnce||(localStorage.smartScanRanOnce=!0)},updateStatus(){k.getStatus({scanId:this.get("scanId")}).then((s=>{this.set("statusPrimary",s.statusPrimary)}))}}));var De;export default Be;export{Pe as scanProgressToaster};const Re={name:"SmartScan",version:"1.2.729",created:"2021-09-06T10:48:44.739Z"};export{Re as metadata};