//{"name":"dashboard","version":"1.3.2677","created":"2025-09-24T14:18:18.379Z"}
import*as e from"./svelteInternal.js";import{onDestroy as t,onMount as s,tick as a}from"./svelteInternal.js";import{eventer as i,napiTracker as n,moduleManager as l,serviceRequest as r}from"./napi.js";import{napiUtils as o,features as c,productModel as d,lifAccount as _,settingsService as p,ipmService as m}from"./napiExtensions.js";import{IpmExpirationModal as u,ExpirationStatus as h,TextAction as f,Illustration as g,Ipm as v,LinkGroup as b,Modal as V,Row as H}from"./svelteComponents.js";import{debounce as k,stringUtils as x}from"./libs.js";import{nls as M,format as Z}from"./i18n.js";import{timeUtils as y,externalIpm as w}from"./plugins.js";import{FeedbackButton as S}from"./feedbackForm.js";var I=e.template('<div class="dsh"><!></div>');const $=globalThis.process?.env?.NODE_ENV,C=$&&!$.toLowerCase().startsWith("prod"),j=()=>{};let D=!1;if(C){function Fs(e){if(!(e in globalThis)){let t;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(void 0!==t)return t;!function(e){if(C){const t=new Error(`rune_outside_svelte\nThe \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files\nhttps://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/rune_outside_svelte")}(e)},set:e=>{t=e}})}}Fs("$state"),Fs("$effect"),Fs("$derived"),Fs("$inspect"),Fs("$props"),Fs("$bindable")}function q(e,t,s){if(null==e)return t(void 0),s&&s(void 0),j;const a=function(e){var t=D;try{return D=!0,e()}finally{D=t}}((()=>e.subscribe(t,s)));return a.unsubscribe?()=>a.unsubscribe():a}const z=[];function P(e,t){return{subscribe:T(e,t).subscribe}}function T(e,t=j){let s=null;const a=new Set;function i(t){if(n=t,((i=e)!=i?n==n:i!==n||null!==i&&"object"==typeof i||"function"==typeof i)&&(e=t,s)){const t=!z.length;for(const s of a)s[1](),z.push(s,e);if(t){for(let e=0;e<z.length;e+=2)z[e][0](z[e+1]);z.length=0}}var i,n}function n(t){i(t(e))}return{set:i,update:n,subscribe:function(l,r=j){const o=[l,r];return a.add(o),1===a.size&&(s=t(i,n)||j),l(e),()=>{a.delete(o),0===a.size&&s&&(s(),s=null)}}}}function A(e,t,s){const a=!Array.isArray(e),i=a?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const n=t.length<2;return P(s,((e,s)=>{let l=!1;const r=[];let o=0,c=j;const d=()=>{if(o)return;c();const i=t(a?r[0]:r,e,s);n?e(i):c="function"==typeof i?i:j},_=i.map(((e,t)=>q(e,(e=>{r[t]=e,o&=~(1<<t),l&&d()}),(()=>{o|=1<<t}))));return l=!0,d(),function(){!function(e){for(var t=0;t<e.length;t++)e[t]()}(_),c(),l=!1}}))}function L(e){let t;return q(e,(e=>t=e))(),t}const E=["behavshield_off","fsshield_off","mailshield_off","webshield_off","antiexploit_off","arpot_off","antiransomwareshield_off","webcamshield_off","datascan_off","securedns_off","remote_access_shield_off","browserprotection_shield_off"],F={behavshield_off:"shields.behavior",fsshield_off:"shields.file",mailshield_off:"shields.email",webshield_off:"shields.web",arpot_off:"shields.antiRootkit",antiexploit_off:"shields.antiExploit",antiransomwareshield_off:"antiransomware",webcamshield_off:"webcamshield",datascan_off:"sensitivedata",securedns_off:"secureDns",remote_access_shield_off:"remoteAccessShield",browserprotection_shield_off:"passwordProtection"},W={id:"some_shields_off",priority:6,severity:1,ignorable:!0,ignored:!1,shields:[]},B="smartScan",R=["full","folder","quick","media","custom","chest",B,"menu"],G="attacks",N="updates",O="threats",U="scannedFiles",X="scannedSites",J="scans",K="overall",Q="30days",Y={antiexploit_off:"icon-m-tools-core-shields",antiransomwareshield_off:"icon-m-ransomware",arpot_off:"icon-m-tools-core-shields",autoupdate_off:"icon-m-action-reload",behavshield_off:"icon-m-tools-core-shields",browserprotection_shield_off:"icon-m-earth",datascan_off:"icon-m-tools-core-shields",defs_out_of_date:"icon-m-action-reload",firewall_off:"icon-m-firewall",fsshield_off:"icon-m-scan-folder",mailshield_off:"icon-m-mail",net_lock_on:"icon-m-wifi",passive_mode:"icon-m-tools-privacy",passive_mode_locked:"icon-m-tools-privacy",passive_mode_manual:"icon-m-tools-privacy",reboot_required:"icon-s-programs-windows",securedns_off:"icon-m-tools-real-site",self_defense_off:"icon-m-block",shields_off:"icon-m-tools-core-shields",silent_mode_on:"icon-l-bedtime",some_shields_off:"icon-m-tools-core-shields",subscription_paid_expired:"icon-m-subscription",subscription_trial_expired:"icon-m-subscription",service_off:"icon-s-controls-settings",version_outdated:"icon-m-action-reload",webcamshield_off:"icon-l-webcam",webshield_off:"icon-m-earth",wrong_time:"icon-m-time"},ee=e=>{if(!e)return Promise.resolve([]);const t=[],s=Object.keys(e).some((e=>o.isExtendedPassiveModeIssue(e)));return c.firewall.isFwProfilePublicIssueHidden().then((a=>{for(const i in e)if(e[i]){if(e[i].id=i,"passive_mode"===i&&s)continue;if("fw_public_profile"===i&&a)continue;t.push(e[i])}return((e=[])=>{const t=[],s=[];if(e.forEach((e=>E.includes(e.id)&&!e.ignored?s.push(e.id):t.push(e))),s.length>1){const e=Object.assign(W,{shields:s});return t.push(e),t}return e})(t)}))},te=P(d.isAfbEdition()),se=P(d.isBuyBcProblem),ae=P(d.isAfbManaged()),ie=P(d.isReseller()),ne=T(d.getStatus()),le=A(ne,(e=>{switch(e){case"green":return"ok";case"yellow":return"attention";case"red":case"service_unreachable":return"critical";default:return"white"}})),re=T(d.getNotifications()),oe=T(d.getState().issues,(e=>i.on("product.ui.state.change",(()=>{e(d.getState().issues)})))),ce=A(oe,(e=>Object.entries(e||[]).filter((([e,t])=>t.ignored)).map((([e,t])=>(t._id=e,t))).sort(((e,t)=>Math.sign(e.priority-t.priority))))),de=T(!1),_e=T(!1,(e=>e(!1))),pe=T(!1,(e=>e(!1))),me=T(!1,(e=>e(!1))),ue=A(oe,((e,t)=>{Promise.all([ee(e),c.smartscan.getLastRunTimestamp()]).then((([e,s])=>{const a=function(e){if(0===e)return[{id:"smart_scan_not_run",ignorable:!1,ignored:!1,priority:7}];return[]}(s),i=[...a,...e];t(i.filter((e=>!e.ignored&&e.priority>-1)).sort(((e,t)=>e.priority-t.priority)))}))}),[]);const he=A([ne,ue],(([e,t])=>{if(t?.find((e=>"smart_scan_not_run"===e.id)))return["s097","i-s-105"];switch(e){case"green":return["s097","i-s-097"];case"yellow":return["s039","i-s-039"];case"red":case"service_unreachable":return["s031","i-s-031"]}}));A(ue,(e=>e.some((e=>"shields_off"===e.id)))),A(ue,(e=>e.some((e=>"service_off"===e.id)))),A(ue,(e=>e.some((e=>e.id.startsWith("passive_mode")))));const fe=T([]),ge=A([ue,fe],(([e,t])=>e.concat(t).sort(((e,t)=>e.priority-t.priority)))),ve=T(0);A([ge,ve],(([e,t])=>function(e,t=0){return e.slice(t,e.length).concat(e.slice(0,t))}(e,t).slice(0,3).reverse())),A([ge,ve],(([e,t])=>`${t+1} / ${e.length}`));const be=d.getProduct(),Ve=e=>"expiring"===e||"expiring_red"===e?Ze("title"):"payment_failure"===e?ye("title"):e&&"undefined"!==e?M(`dashboard.problems.${e}`,L(le)):null,He=(e,t=null)=>"some_shields_off"===e?ke(e,t):"expiring"===e||"expiring_red"===e?Ze("desc"):"payment_failure"===e?ye("desc"):e&&"undefined"!==e?M(`dashboard.problems.${e}.desc`):null,ke=(e,t)=>{const s=[...t],a=xe(s.pop()),i=s.map((e=>xe(e))).join(", ");return M(`dashboard.problems.${e}.desc`,i,a)},xe=e=>M(`${F[e]}`),Me=e=>"expiring"===e||"expiring_red"===e?Ze("action"):"payment_failure"===e?ye("action"):e&&"undefined"!==e?M(`dashboard.problems.${e}.action`):null,Ze=e=>{let t="";const s=d.getExpiration(),a=d.isTrial(),i=M(o.getProductStringId()),n="pro_av"===be;switch(e){case"title":t=M(a?"dashboard.problems.expiring.trial":"dashboard.problems.expiring",s,L(le));break;case"desc":t=M(n?a?"dashboard.problems.expiring.trial.pro.desc":"dashboard.problems.expiring.pro.desc":a?"dashboard.problems.expiring.trial.desc":"dashboard.problems.expiring.desc",i);break;case"action":t=M(a?"dashboard.problems.expiring.trial.action":"dashboard.problems.expiring.action")}return t},ye=e=>{const t=d.isPaymentFailureExpiring(),s=d.getExpiration();let a="";switch(e){case"title":a=t?M("dashboard.problems.payment_failure.expiring",s,L(le)):M("dashboard.problems.payment_failure",L(le));break;case"desc":a=t?M("dashboard.problems.payment_failure.expiring.desc"):M("dashboard.problems.payment_failure.desc",s,L(le));break;case"action":a=M(t?"dashboard.problems.payment_failure.expiring.action":"dashboard.problems.payment_failure.action")}return a},we=e=>(function(e){"smartScan"===e.type||"SmartScan"===e.job?e.link="#smartScan?origin=Dashboard":e.link="#scans/scan/"+e.id}(e),"custom"===e.type?M("dashboard.scan.running.withIssue.desc",e.label,e.link):M("dashboard.scan.running.withIssue.desc",M(`scans.scanType.${e.type}`),e.link)),Se=e=>"custom"===e.type?M("dashboard.scan.finished.desc",e.label):M("dashboard.scan.finished.desc",M(`scans.scanType.${e.type}`)),Ie=e=>M("dashboard.progress",e);const $e=k((async function(e){const t=await qe(),{problemId:s,problemCat:a,cta:i}=e;n.view("DashboardMessage",{a1:s,a2:a||L(le),a3:i,a4:t})}),1e3);let Ce=null;const je=[];async function De(e){let t=e;if(null==e){const e=await _.getAccountInfo();t=Boolean(e?.logged_in)}Ce=t?"logged_in":"logged_out"}async function qe(e=!1){return Ce||(await De(),Ce)}function ze(e){return e?.problemId&&$e(e),""}async function Pe(e){const{problemId:t,problemCat:s,cta:a,secondaryAction:i}=e;if(e?.problemId){const e=await qe();n.click("DashboardMessage","Click",i||"CTA","Dashboard",{a1:t,a2:s||L(le),a3:i||a,a4:e})}return""}const Te={running:"smartScan_progress",report:"smartScan_report",run:"smartScan_run"},Ae={running:"scan_progress",report:"scan_report"};var Le=e.template('<span dir="ltr" class="dsh_running-scan__progress"><!></span>'),Ee=e.template('<p class="dsh_status__desc -with-issue"><!> <kin-progress></kin-progress> <!></p>',2),Fe=e.template('<span dir="ltr"><!></span>'),We=e.template('<div class="dsh_status__desc"> <span class="dsh_status__state"><kin-progress></kin-progress> <!></span></div> <div class="dsh_status__cta"><kin-button> </kin-button></div>',3),Be=e.template(" <!>",1),Re=e.template('<p class="dsh_status__desc -with-issue"> <a class="a g-margin-left--half"> </a></p>'),Ge=e.template('<div class="dsh_status__desc"> </div> <div class="dsh_status__cta"><kin-button> </kin-button></div>',3),Ne=e.template(" <!>",1);function Oe(s,a){e.push(a,!1);const[n,r]=e.setup_stores(),o=()=>e.store_get(_e,"$scanStatus",n);let c,d,_,p,m=e.prop(a,"buttonSize",8,"large"),u=e.prop(a,"showWithIssue",8,!1),h=null,f=e.mutable_source(),g=e.mutable_source(null),v=e.mutable_source(-1);function b(){c?.(),c=null,_?.destroy()}function V(e){return k(e)?"#smartScan?origin=Dashboard":`#scans/scan/${e.id}/${e.sessionId}`}function H(){if(o()){if(e.get(f))return{problemId:k(e.get(f))?Te.running:Ae.running};if(e.get(g))return{problemId:k(e.get(f))?Te.report:Ae.report}}return{}}function k(e){return e?.type===B||"SmartScan"===e?.job}!async function(){d=i.on("scanProgressToaster.smartScanStopped",(()=>{e.get(g)?.type===B&&(e.set(g,null),_e.set(!1))})),h=await l.importModule("scans","serviceProxy"),await h.runningScans.reload(),p=h.runningScans.subscribe((t=>{const s=t?.filter((e=>R.includes(e.type)));!async function(t){const s=t?.length?t[0]:null;if(e.get(f)?.id===s?.id)return;b(),e.set(f,s),e.get(f)?(_e.set(!0),e.set(g,e.get(f)),k(e.get(f))?e.set(v,-1):(_?.destroy(),_=await h.getScanSession(e.get(f).id,e.get(f).sessionId),c=_.status.subscribe((t=>e.set(v,t?.progress||e.get(v)))))):(_e.set(e.get(g)&&0===t.length),e.set(v,-1))}(s)}));"scan_report"===(await h.getSmartScanStatus()).statusPrimary&&(e.set(g,{type:B}),_e.set(!0))}(),t((()=>{b(),d?.(),d=null,p?.()})),e.init();var x=e.comment(),Z=e.first_child(x),y=t=>{var s=e.comment(),a=e.first_child(s),i=t=>{var s=Be(),a=e.first_child(s),i=e.sibling(a),n=t=>{var s=Ee(),a=e.child(s);e.html(a,(()=>we(e.get(f))));var i=e.sibling(a,2);e.template_effect((()=>e.set_custom_element_data(i,"percentage",e.get(v)))),e.set_class(i,1,"dsh_running-scan__progress-bar");var n=e.sibling(i,2),l=t=>{var s=Le(),a=e.child(s);e.html(a,(()=>Ie(e.get(v)))),e.reset(s),e.template_effect((()=>s.dir=s.dir)),e.append(t,s)};e.if(n,(t=>{e.get(v)>=0&&t(l)})),e.reset(s),e.append(t,s)},l=t=>{var s=We(),a=e.first_child(s),i=e.child(a),n=e.sibling(i),l=e.child(n);e.template_effect((()=>e.set_custom_element_data(l,"percentage",e.get(v)))),e.set_custom_element_data(l,"size","small"),e.set_class(l,1,"dsh_status__progress");var r=e.sibling(l,2),o=t=>{var s=Fe(),a=e.child(s);e.html(a,(()=>Ie(e.get(v)))),e.reset(s),e.template_effect((()=>s.dir=s.dir)),e.append(t,s)};e.if(r,(t=>{e.get(v)>=0&&t(o)})),e.reset(n),e.reset(a);var c=e.sibling(a,2),d=e.child(c);e.template_effect((()=>e.set_custom_element_data(d,"size",m()))),e.template_effect((()=>e.set_custom_element_data(d,"link",V(e.get(f)))));var _=e.child(d,!0);e.reset(d),e.reset(c),e.template_effect(((t,s)=>{e.set_text(i,`${t??""} `),e.set_text(_,s)}),[()=>{return"custom"===(t=e.get(f)).type?M("dashboard.scan.running.desc",t.label):M("dashboard.scan.running.desc",M(`scans.scanType.${t.type}`));var t},()=>M("global.showDetails")],e.derived_safe_equal),e.event("click",d,(()=>Pe(H()))),e.append(t,s)};e.if(i,(e=>{u()?e(n):e(l,!1)})),e.template_effect((t=>e.set_text(a,`${t??""} `)),[()=>ze(H())],e.derived_safe_equal),e.append(t,s)},n=(t,s)=>{var a=t=>{var s=Ne(),a=e.first_child(s),i=e.sibling(a),n=t=>{var s=Re(),a=e.child(s),i=e.sibling(a),n=e.child(i,!0);e.reset(i),e.reset(s),e.template_effect(((t,s,l)=>{e.set_text(a,`${t??""} `),e.set_attribute(i,"href",s),e.set_text(n,l)}),[()=>Se(e.get(g)),()=>V(e.get(g)),()=>M("scans.seeResults")],e.derived_safe_equal),e.event("click",i,(()=>Pe(H()))),e.append(t,s)},l=t=>{var s=Ge(),a=e.first_child(s),i=e.child(a,!0);e.reset(a);var n=e.sibling(a,2),l=e.child(n);e.template_effect((()=>e.set_custom_element_data(l,"size",m()))),e.template_effect((()=>e.set_custom_element_data(l,"link",V(e.get(g)))));var r=e.child(l,!0);e.reset(l),e.reset(n),e.template_effect(((t,s)=>{e.set_text(i,t),e.set_text(r,s)}),[()=>Se(e.get(g)),()=>M("scans.seeResults")],e.derived_safe_equal),e.event("click",l,(()=>Pe(H()))),e.append(t,s)};e.if(i,(e=>{u()?e(n):e(l,!1)})),e.template_effect((t=>e.set_text(a,`${t??""} `)),[()=>ze(H())],e.derived_safe_equal),e.append(t,s)};e.if(t,(t=>{e.get(g)&&t(a)}),s)};e.if(a,(t=>{e.get(f)?t(i):t(n,!1)})),e.append(t,s)};e.if(Z,(e=>{o()&&e(y)})),e.append(s,x),e.pop(),r()}var Ue=e.template('<div class="dsh_cta"><kin-button> </kin-button></div>',2),Xe=e.template('<p class="dsh_status__info"> </p> <div class="dsh_cta"><kin-button> </kin-button></div>',3),Je=e.template("<!> ",1),Ke=e.template('<div class="dsh_cta" id="dashboard-runSmartScan"><kin-button> </kin-button></div> ',3);function Qe(t,a){e.push(a,!1);const[i,n]=e.setup_stores(),l=()=>e.store_get(pe,"$smartScanStatus",i);let o=e.prop(a,"buttonSeverity",8),c=e.prop(a,"isSecodaryAction",8,!1),d=e.prop(a,"buttonSize",8,"large");const _={type:B};let p=e.mutable_source(!1),m=e.mutable_source(!1);function u(){return"scan_report"===l()?{problemId:Te.report}:"scanning"===l()?{problemId:Te.running}:e.store_get(_e,"$scanStatus",i)?{}:{problemId:Te.run}}function h(){return e.get(p)&&c()?"#smartScan?origin=Dashboard&startNew=1":"#smartScan?origin=Dashboard"}s((()=>{r("app.smartScan.GetStatus").then((t=>{["scan_report","scanning"].includes(t.statusPrimary)?pe.set(t.statusPrimary):pe.set(!1),e.set(p,"scan_report"===t.statusPrimary),e.set(m,"scanning"===t.statusPrimary)}))})),e.init();var f=e.comment(),g=e.first_child(f),v=t=>{var s=Je(),a=e.first_child(s),i=t=>{var s=Ue(),a=e.child(s);e.template_effect((()=>e.set_custom_element_data(a,"size",d()))),e.template_effect((()=>e.set_custom_element_data(a,"type",o()))),e.template_effect((()=>e.set_custom_element_data(a,"link",h())));var i=e.child(a,!0);e.reset(a),e.reset(s),e.template_effect((t=>e.set_text(i,t)),[()=>e.get(p)?M("dashboard.runSmartScan"):M("dashboard.seeSmartScanResults")],e.derived_safe_equal),e.event("click",a,(()=>Pe(u()))),e.append(t,s)},n=t=>{var s=Xe(),a=e.first_child(s),i=e.child(a,!0);e.reset(a);var n=e.sibling(a,2),l=e.child(n);e.template_effect((()=>e.set_custom_element_data(l,"size",d()))),e.template_effect((()=>e.set_custom_element_data(l,"type",o()))),e.template_effect((()=>e.set_custom_element_data(l,"link",h())));var r=e.child(l,!0);e.reset(l),e.reset(n),e.template_effect(((t,s)=>{e.set_text(i,t),e.set_text(r,s)}),[()=>Se(_),()=>M("scans.seeResults")],e.derived_safe_equal),e.event("click",l,(()=>Pe(u()))),e.append(t,s)};e.if(a,(e=>{c()?e(i):e(n,!1)}));var l=e.sibling(a);e.template_effect((t=>e.set_text(l,` ${t??""}`)),[()=>ze(u())],e.derived_safe_equal),e.append(t,s)},b=t=>{var s=Ke(),a=e.first_child(s),i=e.child(a);e.template_effect((()=>e.set_custom_element_data(i,"size",d()))),e.template_effect((()=>e.set_custom_element_data(i,"type",o()))),e.template_effect((()=>e.set_custom_element_data(i,"link",h())));var n=e.child(i,!0);e.reset(i),e.reset(a);var l=e.sibling(a);e.template_effect(((t,s)=>{e.set_text(n,t),e.set_text(l,` ${s??""}`)}),[()=>M("dashboard.runSmartScan"),()=>ze(u())],e.derived_safe_equal),e.event("click",i,(()=>Pe(u()))),e.append(t,s)};e.if(g,(t=>{e.get(p)||e.get(m)?t(v):t(b,!1)})),e.append(t,f),e.pop(),n()}const Ye=()=>{const e=d.getStatus(),t=d.getNotifications(),s=d.getState().issues;ne.set(e),re.set(t),oe.set(s)},et=(e,t)=>(Pe({problemId:e.id}),"all"===e.id&&console.error('Issue "all" is no longer supported, specify proper issue ID.'),"fw_public_profile"===e.id?(window.location.hash="#firewall/nets/issue",Promise.resolve()):"smart_scan_not_run"===e.id?(window.location.hash="#smartScan?origin=notRunSsIssue",Promise.resolve()):"some_shields_off"===e.id?tt("FixIssue",e):st("FixIssue",e.id)),tt=(e,t,s)=>{const{shields:a}=t;de.set("all");const i=a.map((t=>{const a=t?{issueId:t}:void 0;return"boolean"==typeof s&&(a.ignore=s),r("app.avService."+e,a)}));Promise.all(i).then((()=>r("app.settings.ApplySettings"))).then((()=>d.update())).then((()=>{Ye()})).catch((()=>{d.update().then((()=>{Ye()}))})).then((()=>{de.set(!1)}))},st=(e,t,s)=>{de.set(t);const a=t?{issueId:t}:void 0;return"boolean"==typeof s&&(a.ignore=s),r("app.avService."+e,a).then((()=>r("app.settings.ApplySettings"))).then((()=>d.update())).then((()=>{Ye()})).catch((()=>{d.update().then((()=>{Ye()}))})).then((()=>{t.startsWith("passive_mode")?r("app.passivemode.GetStatus").then((e=>{e&&e.changeInProgress||de.set(!1)})):de.set(!1)}))},at=!1;var it=e.template('<div class="dsh_status" data-test="dashboard-status_expiration"><!></div>'),nt=e.template(' <div class="dsh_status__desc"> <kin-progress></kin-progress> <span dir="ltr"> </span></div>',3),lt=e.template('<button class="a dsh_status__ignore"> </button>'),rt=e.template(" <kin-button> </kin-button>",3),ot=e.template(" <kin-button> </kin-button>",3),ct=e.template('<div class="dsh_status__fixing"><p class="g-margin-bottom--half"> </p> <kin-progress></kin-progress></div>',2),dt=e.template('<p class="dsh_status__desc -with-issue"><a class="a" href="#myLicenses/code"> </a></p>'),_t=e.template('<div class="dsh_status__desc -with-issue -notifications"><button class="a" link="#notifications"> </button></div>'),pt=e.template('<p class="dsh_status__desc"><!> <!></p> <div><!> <!> <!></div> <!> <!> <!>',1),mt=e.template(' <kin-tooltip><kin-icon></kin-icon> <span slot="tooltip"> </span></kin-tooltip>',3),ut=e.template('<!> <kin-tooltip><kin-icon></kin-icon> <span slot="tooltip"> </span></kin-tooltip>',3),ht=e.template("<kin-button> </kin-button>",2),ft=e.template("<kin-button> </kin-button>",2),gt=e.template('<p class="dsh_status__desc text -small"><!></p> <div class="dsh_status__cta g-margin-bottom--1x"><!> <!> <!> <!> <!></div>',1),vt=e.template("<!> <!>",1);e.template("<div><!></div>"),e.template('<div class="g-margin-bottom--3x p -secondary -small"><div> </div> <!></div>');var bt=e.template("<!> <!> <!> <!> <!>",1),Vt=e.template('<div class="dsh_status"><!> <h1><!></h1> <!></div>'),Ht=e.template("<!> <!>",1);function kt(a,l){e.push(l,!1);const[r,_]=e.setup_stores(),g=()=>e.store_get(ue,"$problems",r),v=()=>e.store_get(de,"$fixing",r),b=()=>e.store_get(_e,"$scanStatus",r),V=()=>e.store_get(te,"$isAfb",r),H=()=>e.store_get(pe,"$smartScanStatus",r),k=()=>e.store_get(me,"$installStatus",r),Z=e.mutable_source(),w=e.mutable_source(),S=e.mutable_source(),I=e.mutable_source(),$=e.mutable_source(),C=e.mutable_source();let j=e.prop(l,"problemId",8,0),D=e.prop(l,"buttonSeverity",8,""),q=e.prop(l,"buttonSize",8,"large"),z=e.prop(l,"hasSecondaryAction",8,!0),P=e.prop(l,"nlsProductLicense",8,"dashboard.status.green");const T=c.multiDevice,A=["pirated","subscription_free_expired","subscription_paid_expired","subscription_trial_expired","subscription_business_expired"],L=A.concat(["expiring","expiring_red","awaiting_payment","payment_failure"]),E=M(o.getProductStringId());let F=e.mutable_source(null),W=[],B=e.mutable_source(!1),R=e.mutable_source(!1),G=e.mutable_source(!1),N=e.mutable_source(0),O=e.mutable_source(0),U=e.mutable_source(0),X=e.mutable_source(at),J=null,K=e.mutable_source(null);function Q(){W.forEach((e=>{e()})),W=[]}function Y(t){m.openWindow(547,{p_scr:t}),n.click("AbMultiDevice","click","Protect device","dashboard",{a1:t}),setTimeout((()=>{e.set(R,!1),T.protectClicked()}),3e3)}function ee(){d.update().then((()=>{Ye(),c.smartscan.getLastRunTimestamp().then((t=>{t>0?e.set(K,{caption:y.getTimeCaption(t/1e3),captionClass:y.getTimeClass(t/1e3)}):e.set(K,null)}))}))}function se(){Pe({problemId:e.get(Z).id,secondaryAction:"viewAllIssues"}),window.location.hash="notifications"}s((()=>{T.getMultiDeviceData().then((t=>{if(t)return e.set(G,t.isFreshInstall),e.set(O,t.protectedDevicesCount),e.set(U,t.totalDevicesCount),e.set(N,t.devicesLeftToProtect),p.getValue("avdef://config/GuiCache/ABTest_ProtectMultiDevice",{localStorage:!0,cached:!0}).then((t=>{if(t&&0!==parseInt(t))if(e.get(N)>0){e.set(R,parseInt(t)||!1);const s=e.get(G)&&1===e.get(O)?"a":"b";n.view("Dashboard",{a1:`${e.get(R)}_${s}`})}else console.warn("[dashboard] ABMultiDeviceTest turned off, not enough devices left to protect:",e.get(N)),e.set(R,!1)}))})),Q(),je.push(i.on("app.lif.account.logged_in",(()=>De(!0)))),je.push(i.on("app.lif.account.logged_out",(()=>De(!1)))),ee(),W.push(i.on("product.ui.state.change",ee)),W.push(i.on("avService.wsc.updateState",ee)),W.push(i.on("setup.onStatusChanged.secondPhaseInstallationProgress",(t=>{e.set(F,t)})))})),t((()=>{Q(),clearInterval(J),J=null,je.forEach((e=>e()))})),e.legacy_pre_effect((()=>(g(),e.deep_read_state(j()))),(()=>{e.set(Z,g()[j()])})),e.legacy_pre_effect((()=>(g(),e.get(Z))),(()=>{e.set(w,0===g().length?"ok":e.get(Z).id)})),e.legacy_pre_effect((()=>e.get(F)),(()=>{e.set(S,null!==e.get(F)&&e.get(F)>0&&e.get(F)<100)})),e.legacy_pre_effect((()=>e.get(Z)),(()=>{!function(t){"passive_mode_locked"===t?e.set(B,!0):L.includes(t)?e.set(B,!d.showUpsells()):e.set(B,!1)}(e.get(Z)?.id)})),e.legacy_pre_effect((()=>(v(),e.get(Z))),(()=>{e.set(I,v()&&e.get(Z)&&(v()===e.get(Z).id||e.get(Z).id.startsWith("passive_mode")&&v().startsWith(e.get(Z).id)))})),e.legacy_pre_effect((()=>e.get(Z)),(()=>{e.set($,A.includes(e.get(Z)?.id))})),e.legacy_pre_effect((()=>(e.get(R),e.deep_read_state(P()))),(()=>{e.set(C,e.get(R)&&1===e.get(R)&&e.get(G)&&1===e.get(O)?M("dashboard.status.green.protectMoreDevices",e.get(N)):M(P()))})),e.legacy_pre_effect_reset(),e.init();var ae=Ht(),ie=e.first_child(ae),ne=t=>{var s=it(),a=e.child(s);h(a,{onClose:()=>e.set(X,!1)}),e.reset(s),e.append(t,s)},le=t=>{var s=Vt(),a=e.child(s);e.slot(a,l,"status-icon",{},null);var i=e.sibling(a,2);let n;var r=e.child(i),o=t=>{var s=e.comment(),a=e.first_child(s);e.html(a,(()=>e.get(C))),e.append(t,s)},c=t=>{var s=e.comment(),a=e.first_child(s);e.html(a,(()=>Ve(e.get(Z).id))),e.append(t,s)};e.if(r,(e=>{0===g().length?e(o):e(c,!1)})),e.reset(i);var d=e.sibling(i,2),_=t=>{var s=nt(),a=e.first_child(s),i=e.sibling(a),n=e.child(i),l=e.sibling(n);e.template_effect((()=>e.set_custom_element_data(l,"percentage",e.get(F)))),e.set_custom_element_data(l,"small","true"),e.set_class(l,1,"dsh_status__progress");var r=e.sibling(l,2),o=e.child(r);e.reset(r),e.reset(i),e.template_effect(((t,s)=>{e.set_text(a,`${t??""} `),e.set_text(n,`${s??""} `),e.set_text(o,`${e.get(F)??""}%`),r.dir=r.dir}),[()=>ze({problemId:"sec_install_phase"}),()=>M("dashboard.finishingInstallation")],e.derived_safe_equal),e.append(t,s)},p=(t,s)=>{var a=t=>{var s=pt(),a=e.first_child(s),i=e.child(a),n=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>ke(e.get(Z).id,e.get(Z).shields)],e.derived_safe_equal),e.append(t,s)},r=(t,s)=>{var a=t=>{var s=e.comment(),a=e.first_child(s);e.html(a,(()=>He(e.get(Z).id,e.get(Z).shields))),e.append(t,s)},i=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>He(e.get(Z).id,e.get(Z).shields)],e.derived_safe_equal),e.append(t,s)};e.if(t,(t=>{"payment_failure"===e.get(Z).id?t(a):t(i,!1)}),s)};e.if(i,(t=>{"some_shields_off"===e.get(Z).id?t(n):t(r,!1)}));var o=e.sibling(i,2),c=t=>{var s=lt(),a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>M("dashboard.ignoreMessage")],e.derived_safe_equal),e.event("click",s,(()=>{return Pe({problemId:(t=e.get(Z)).id,secondaryAction:"ignore"}),"some_shields_off"===t.id?tt("IgnoreIssue",t,!0):st("IgnoreIssue",t.id,!0);var t})),e.append(t,s)};e.if(o,(t=>{!0===e.get(Z).ignorable&&t(c)})),e.reset(a);var d=e.sibling(a,2),_=e.child(d),p=t=>{var s=e.comment(),a=e.first_child(s);e.slot(a,l,"SMB",{get problem(){return e.get(Z)}},null),e.append(t,s)},m=(t,s)=>{var a=t=>{var s=rt(),a=e.first_child(s),i=e.sibling(a);e.template_effect((()=>e.set_custom_element_data(i,"type",D()))),e.template_effect((()=>e.set_custom_element_data(i,"size",q()))),e.template_effect((()=>e.set_custom_element_data(i,"aria-label",`${x.stripHtml(Ve(e.get(Z).id))??""} - ${Me(e.get(Z).id)??""}`)));var n=e.child(i,!0);e.reset(i),e.template_effect(((t,s)=>{e.set_text(a,`${t??""} `),e.set_text(n,s)}),[()=>ze({problemId:e.get(Z).id}),()=>Me(e.get(Z).id)],e.derived_safe_equal),e.event("click",i,(()=>et(e.get(Z)))),e.append(t,s)},i=(t,s)=>{var a=t=>{var s=ot(),a=e.first_child(s),i=e.sibling(a);e.set_custom_element_data(i,"type","secondary"),e.set_custom_element_data(i,"link","#notifications"),e.template_effect((()=>e.set_custom_element_data(i,"size",q()))),e.template_effect((()=>e.set_custom_element_data(i,"aria-label",M("dashboard.viewAllIssues"))));var n=e.child(i,!0);e.reset(i),e.template_effect(((t,s)=>{e.set_text(a,`${t??""} `),e.set_text(n,s)}),[()=>ze({problemId:e.get(Z).id}),()=>M("dashboard.viewAllIssues")],e.derived_safe_equal),e.append(t,s)};e.if(t,(t=>{e.get(B)&&g().length>1&&t(a)}),s)};e.if(t,(t=>{e.get(B)?t(i,!1):t(a)}),s)};e.if(_,(e=>{V()?e(p):e(m,!1)}));var u=e.sibling(_,2),h=e=>{Qe(e,{get buttonSize(){return q()},buttonSeverity:"secondary",isSecodaryAction:!0})};e.if(u,(t=>{z()&&!e.get(B)&&"smart_scan_not_run"!==e.get(Z).id&&t(h)}));var f=e.sibling(u,2),v=t=>{var s=ct(),a=e.child(s),i=e.child(a,!0);e.reset(a);var n=e.sibling(a,2);e.set_custom_element_data(n,"percentage","-1"),e.set_custom_element_data(n,"small","true"),e.reset(s),e.template_effect((t=>e.set_text(i,t)),[()=>M("global.fixing")],e.derived_safe_equal),e.append(t,s)};e.if(f,(t=>{e.get(I)&&t(v)})),e.reset(d);var k=e.sibling(d,2),y=t=>{var s=dt(),a=e.child(s),i=e.child(a,!0);e.reset(a),e.reset(s),e.template_effect((t=>e.set_text(i,t)),[()=>M("dashboard.problems.license.enter.code")],e.derived_safe_equal),e.append(t,s)};e.if(k,(t=>{e.get($)&&!V()&&t(y)}));var w=e.sibling(k,2);Oe(w,{showWithIssue:!0});var S=e.sibling(w,2),C=t=>{var s=_t(),a=e.child(s),i=e.child(a,!0);e.reset(a),e.reset(s),e.template_effect((t=>e.set_text(i,t)),[()=>M("dashboard.viewAllIssues")],e.derived_safe_equal),e.event("click",a,se),e.append(t,s)};e.if(S,(e=>{!b()&&!H()&&g().length>1&&e(C)})),e.template_effect((()=>e.set_class(d,1,"dsh_status__cta "+(e.get(I)?"-fixing":"")))),e.append(t,s)},i=(t,s)=>{var a=t=>{var s=vt(),a=e.first_child(s);Oe(a,{get buttonSize(){return q()}});var i=e.sibling(a,2),n=t=>{var s=e.comment(),a=e.first_child(s),i=t=>{var s=e.comment(),a=e.first_child(s);e.slot(a,l,"SmartScan",{},null),e.append(t,s)},n=t=>{var s=gt(),a=e.first_child(s),i=e.child(a),n=t=>{var s=e.comment(),a=e.first_child(s),i=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>M("dashboard.multiDev.descWithFamily",e.get(U))],e.derived_safe_equal),e.append(t,s)},n=t=>{var s=mt(),a=e.first_child(s),i=e.sibling(a),n=e.child(i);e.set_custom_element_data(n,"name","icon-m-action-info"),e.set_custom_element_data(n,"size","20"),e.set_class(n,1,"color-disabled -text"),e.set_custom_element_data(n,"slot","tooltip-activator");var l=e.sibling(n,2),r=e.child(l,!0);e.reset(l),e.reset(i),e.template_effect(((t,s)=>{e.set_text(a,`${t??""} `),e.set_text(r,s)}),[()=>M("dashboard.multiDev.desc",e.get(N)),()=>M("dashboard.multiDev.tooltip",E,e.get(U))],e.derived_safe_equal),e.append(t,s)};e.if(a,(t=>{1===e.get(R)?t(i):t(n,!1)})),e.append(t,s)},r=t=>{var s=ut(),a=e.first_child(s);const i=e.derived_safe_equal((()=>M("dashboard.multiDev.descWithAction",e.get(N))));f(a,{get text(){return e.get(i)},action:()=>Y("multi_soft")});var n=e.sibling(a,2),l=e.child(n);e.set_custom_element_data(l,"name","icon-m-action-info"),e.set_custom_element_data(l,"size","20"),e.set_class(l,1,"color-disabled -text"),e.set_custom_element_data(l,"slot","tooltip-activator");var r=e.sibling(l,2),o=e.child(r,!0);e.reset(r),e.reset(n),e.template_effect((t=>e.set_text(o,t)),[()=>M("dashboard.multiDev.tooltip",E,e.get(U))],e.derived_safe_equal),e.append(t,s)};e.if(i,(t=>{e.get(G)&&1===e.get(O)?t(n):t(r,!1)})),e.reset(a);var o=e.sibling(a,2),c=e.child(o),d=t=>{var s=e.comment(),a=e.first_child(s);e.slot(a,l,"Installation",{},null),e.append(t,s)};e.if(c,(e=>{b()||e(d)}));var _=e.sibling(c,2),p=t=>{var s=ht();e.set_custom_element_data(s,"type","primary"),e.set_class(s,1,"g-margin-right--2x"),e.template_effect((()=>e.set_custom_element_data(s,"size",q()))),e.template_effect((()=>e.set_custom_element_data(s,"aria-label",M("dashboard.multiDev.cta"))));var a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>M("dashboard.multiDev.cta")],e.derived_safe_equal),e.event("click",s,(()=>Y("multi_agressive"))),e.append(t,s)};e.if(_,(t=>{1===e.get(R)&&e.get(G)&&1===e.get(O)&&t(p)}));var m=e.sibling(_,2),u=t=>{const s=e.derived_safe_equal((()=>1===e.get(R)&&e.get(G)&&1===e.get(O)?"secondary":""));Qe(t,{get buttonSize(){return q()},get buttonSeverity(){return e.get(s)}})};e.if(m,(e=>{b()||k()||"scan_report"===H()||e(u)}));var h=e.sibling(m,2),g=t=>{var s=e.comment(),a=e.first_child(s);e.slot(a,l,"Update",{},null),e.append(t,s)};e.if(h,(e=>{b()||e(g)}));var v=e.sibling(h,2),V=t=>{var s=ft();e.set_custom_element_data(s,"type","secondary"),e.set_class(s,1,"g-margin-left--2x"),e.template_effect((()=>e.set_custom_element_data(s,"size",q()))),e.template_effect((()=>e.set_custom_element_data(s,"aria-label",M("dashboard.multiDev.cta"))));var a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>M("dashboard.multiDev.cta")],e.derived_safe_equal),e.event("click",s,(()=>Y("multi_agressive30plus"))),e.append(t,s)};e.if(v,(t=>{2===e.get(R)&&e.get(G)&&1===e.get(O)&&t(V)})),e.reset(o),e.append(t,s)};e.if(a,(e=>{"scan_report"===H()?e(i):e(n,!1)})),e.append(t,s)};e.if(i,(e=>{b()||e(n)})),e.append(t,s)},i=(t,s)=>{var a=t=>{var s=bt(),a=e.first_child(s);e.if(a,(e=>{}));var i=e.sibling(a,2);Oe(i,{get buttonSize(){return q()}});var n=e.sibling(i,2),r=t=>{var s=e.comment(),a=e.first_child(s);e.slot(a,l,"Installation",{},null),e.append(t,s)};e.if(n,(e=>{b()||e(r)}));var o=e.sibling(n,2),c=t=>{var s=e.comment(),a=e.first_child(s);e.slot(a,l,"SmartScan",{},null),e.append(t,s)};e.if(o,(e=>{b()||k()||e(c)}));var d=e.sibling(o,2),_=t=>{var s=e.comment(),a=e.first_child(s);e.slot(a,l,"Update",{},null),e.append(t,s)};e.if(d,(e=>{b()||e(_)})),e.append(t,s)};e.if(t,(e=>{V()||0!==g().length||e(a)}),s)};e.if(t,(t=>{e.get(R)&&!V()&&0===g().length?t(a):t(i,!1)}),s)};e.if(t,(t=>{g().length>0&&e.get(Z)?t(a):t(i,!1)}),s)};e.if(d,(t=>{e.get(S)?t(_):t(p,!1)})),e.reset(s),e.template_effect((t=>{e.set_attribute(s,"data-test",`dashboard-status_${e.get(w)}`),n=e.set_class(i,1,"dsh_status__title",null,n,t)}),[()=>({"-everything-is-ok":0===g().length&&!e.get(S)&&!b()})],e.derived_safe_equal),e.append(t,s)};e.if(ie,(t=>{e.get(X)&&g().length&&L.includes(e.get(Z).id)?t(ne):t(le,!1)}));var re=e.sibling(ie,2);u(re,{}),e.append(a,ae),e.pop(),_()}var xt=e.template("<kin-button> </kin-button>",2);function Mt(t,s){e.push(s,!1);const[a,i]=e.setup_stores(),n=()=>e.store_get(se,"$isBuyBC",a),l=()=>e.store_get(ie,"$isReseller",a);let r=e.prop(s,"problem",8);e.init();var o=e.comment(),c=e.first_child(o),d=t=>{var s=e.comment(),a=e.first_child(s),i=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>Me("subscription_business_reseller")],e.derived_safe_equal),e.append(t,s)},n=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>Me("subscription_business")],e.derived_safe_equal),e.append(t,s)};e.if(a,(e=>{l()?e(i):e(n,!1)})),e.append(t,s)},_=(t,s)=>{var a=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>Me("subscription_business_reseller")],e.derived_safe_equal),e.append(t,s)},i=t=>{var s=xt();e.set_custom_element_data(s,"size","large");var a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>Me(r().id)],e.derived_safe_equal),e.event("click",s,(()=>et(r()))),e.append(t,s)};e.if(t,(e=>{l()&&n()(r().id)?e(a):e(i,!1)}),s)};e.if(c,(t=>{e.store_get(ae,"$isAfbManaged",a)&&n()(r().id)?t(d):t(_,!1)})),e.append(t,o),e.pop(),i()}function Zt(e,t){void 0===t&&(t={});var s=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===s&&a.firstChild?a.insertBefore(i,a.firstChild):a.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}Zt(".dsh_banner.svelte-1ry8r17 {\n  width: 100%;\n  height: 128px;\n  flex-shrink: 0;\n  position: relative;\n  z-index: 0;\n}\n");var yt=e.template('<div class="dsh_banner svelte-1ry8r17"><!></div>');Zt(".dsh_chatSupport.svelte-oz6d44 {\n  position: absolute;\n  top: 0.8rem;\n  inset-inline-end: -3rem;\n  min-height: 4.8rem;\n  max-width: 24rem;\n  display: flex;\n  gap: 0.8rem;\n  align-items: center;\n  padding-inline: 1.6rem 4.6rem;\n  padding-block: 0.6rem;\n  border-radius: 1.2rem;\n  background-color: var(--o2-colors-on-background-extra-light);\n  color: var(--o2-colors-on-background);\n  font-size: var(--button-font-size);\n  font-weight: var(--button-font-weight);\n  text-transform: var(--button-text-transform);\n  text-align: start;\n  cursor: pointer;\n  box-shadow: var(--e-f-a-b);\n  transition: inset-inline-end 0.2s, background 0.2s, box-shadow 0.2s;\n}\n.dsh_chatSupport.svelte-oz6d44:hover {\n  background-color: var(--o2-colors-on-background-light);\n  box-shadow: var(--e-f-a-b-hover);\n  inset-inline-end: -2rem;\n}\n");var wt=e.template('<button class="dsh_chatSupport svelte-oz6d44"><kin-icon></kin-icon> </button>',2);Zt(".dsh .dsh_status__state {\n  white-space: nowrap;\n}\n.dsh .dsh_status__progress {\n  display: inline-block;\n  vertical-align: middle;\n  width: 20rem;\n  margin: 0 1rem;\n}\n.dsh .dsh_status__cta {\n  position: relative;\n  display: flex;\n  justify-items: center;\n  align-items: center;\n}\n.dsh .dsh_status__cta.-fixing > *,\n.dsh .dsh_status__cta.-fixing > kin-button,\n.dsh .dsh_status__cta.-fixing > kin-dropdown {\n  visibility: hidden;\n}\n.dsh .dsh_status__title span {\n  color: var(--color-text);\n  font-weight: var(--p-h1-weight);\n}\n.dsh .dsh_status__fixing {\n  visibility: visible !important;\n  color: var(--color-text-secondary);\n  font-size: var(--font-size-small);\n  position: absolute;\n  text-align: center;\n  width: 100%;\n}\n.dsh .dsh_running-scan__progress {\n  min-width: 4rem;\n  text-align: end;\n  display: inline-block;\n}\n.dsh .dsh_running-scan__progress-bar {\n  width: 27.2rem;\n  display: inline-block;\n  margin-inline-start: var(--margin-unit);\n  vertical-align: middle;\n}\n");Zt(".dsh {\n  display: flex;\n  align-items: stretch;\n  justify-content: stretch;\n  flex-direction: column;\n  height: 100%;\n  overflow: auto;\n  max-height: 100%;\n}\n.dsh .dsh_status {\n  display: flex;\n  flex-direction: column;\n  flex-grow: 1;\n  align-items: center;\n  padding: 15vh 0 2rem;\n  text-align: center;\n}\n.dsh .dsh_status__title {\n  margin: 1.6rem 0 0.8rem;\n  z-index: 2;\n  font-size: var(--p-h2-size);\n  font-weight: var(--p-h2-weight);\n  letter-spacing: var(--p-h2-letter-spacing);\n  line-height: var(--p-h2-line-height);\n}\n.dsh .dsh_status__cta {\n  margin-top: 3.2rem;\n  justify-content: center;\n  flex-wrap: wrap;\n}\n.dsh .dsh_status__cta .dsh_cta {\n  margin-inline-start: 1.6rem;\n}\n.dsh .dsh_status__desc {\n  max-width: 65rem;\n}\n.dsh .dsh_status__desc.-with-issue {\n  margin-top: 1.6rem;\n}\n.dsh .dsh_status__view-all-issues {\n  flex-basis: 100%;\n  margin-top: 1.6rem;\n}\n.dsh .dsh_status__info {\n  margin-bottom: 0.8rem;\n}\n.dsh .dsh_status__icon {\n  font-size: 10rem;\n}\n");var St=e.template('<div slot="status-icon"><!></div>'),It=e.template('<div slot="SMB"><!></div>'),$t=e.template('<div slot="SmartScan"><!></div>'),Ct=e.template("<!> <!> <!> <!>",1);function jt(t,a){e.push(a,!1);let l=e.mutable_source(null);i.emit("nui.mainLayout.view","menu"),s((()=>{r("app.settings.Get","avdef://config/GuiCache/placement_banner_main").then((t=>{e.set(l,t||0)}))})),e.init(),function(t,s){var a=I(),i=e.child(a);e.slot(i,s,"default",{},null),e.reset(a),e.append(t,a)}(t,{children:(t,a)=>{var i=Ct(),o=e.first_child(i);kt(o,{$$slots:{"status-icon":(t,s)=>{var a=St();!function(t,s){e.push(s,!1);const[a,i]=e.setup_stores(),n=()=>e.store_get(he,"$illustrationName",a);e.init(),g(t,{get name(){return n()[0]},get nameSpaghetti(){return n()[1]},size:"144",width:"264",cssCls:"dsh_status__icon"}),e.pop(),i()}(e.child(a),{}),e.reset(a),e.append(t,a)},SMB:(t,s)=>{var a=It();const i=e.derived_safe_equal((()=>s.problem));Mt(e.child(a),{get problem(){return e.get(i)}}),e.reset(a),e.append(t,a)},SmartScan:(t,s)=>{var a=$t();Qe(e.child(a),{}),e.reset(a),e.append(t,a)}}});var c=e.sibling(o,2),d=t=>{!function(t,s){let a=e.prop(s,"id",8,0);var i=yt(),n=e.child(i);v(n,{get id(){return a()}}),e.reset(i),e.append(t,i)}(t,{get id(){return e.get(l)}})};e.if(c,(t=>{null!=e.get(l)&&t(d)}));var _=e.sibling(c,2);!function(t,a){e.push(a,!1);let i=e.mutable_source(!1);function l(){n.click("Dashboard","Click","Open ChatSupport","Dashboard"),r("app.windowManager.ShowWindow",{url:"?module=help&view=ccaiChat"})}s((()=>{p.getValue("avdef://config/GuiCache/EnableCcaiChat").then((t=>{e.set(i,1===parseInt(t))}))})),e.init();var o=e.comment(),c=e.first_child(o),d=t=>{var s=wt(),a=e.child(s);e.set_custom_element_data(a,"name","icon-m-message"),e.set_custom_element_data(a,"size","24");var i=e.sibling(a);e.reset(s),e.template_effect((t=>e.set_text(i,` ${t??""}`)),[()=>M("help.chatSupport")],e.derived_safe_equal),e.event("click",s,l),e.append(t,s)};e.if(c,(t=>{e.get(i)&&t(d)})),e.append(t,o),e.pop()}(_,{});var m=e.sibling(_,2);S(m,{origin:"Beta - Dashboard",type:"beta"}),e.append(t,i)},$$slots:{default:!0}}),e.pop()}Zt(".sta {\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  align-items: stretch;\n  text-align: start;\n  height: 100%;\n}\n.sta .sta_header {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  padding: 2vh 0 0;\n}\n.sta .sta_block {\n  display: flex;\n  flex-flow: column;\n  align-items: center;\n  justify-content: start;\n  text-align: center;\n  padding: 0;\n}\n.sta .sta_icon {\n  border-radius: 100%;\n  background-color: rgba(255,255,255,0.1);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 3rem;\n  transform: scale(0.7);\n}\n.sta .sta_icon__cont {\n  position: relative;\n  display: inline-block;\n  margin: 0 auto;\n}\n.sta .sta_count {\n  color: var(--o2-colors-success);\n  line-height: 1;\n  text-align: center;\n  font-weight: 700;\n}\n.sta .sta_tip {\n  padding-bottom: 1rem;\n  display: flex;\n  justify-content: flex-start;\n  align-items: center;\n}\n.sta .sta_tip__badge {\n  white-space: nowrap;\n  flex-shrink: 0;\n}\n.sta .sta_info {\n  position: absolute;\n  bottom: 1rem;\n  right: 1rem;\n  color: var(--color-text-secondary);\n}\n.sta .sta_tooltip {\n  width: 190px;\n}\n.sta .sta_update {\n  display: flex;\n  flex-direction: row;\n}\n.sta .sta_status-dot {\n  flex-shrink: 0;\n  width: 7px;\n  height: 7px;\n  border-radius: 7px;\n  display: inline-block;\n  vertical-align: middle;\n  position: relative;\n  margin-top: 2px;\n  background-color: var(--o2-colors-success);\n}\n");var Dt=e.template('<p class="p -small"> </p>'),qt=e.template('<p class="p -small"> </p>'),zt=e.template('<p class="p -tiny -secondary g-margin-top--2x"> </p>'),Pt=e.template('<p class="p -tiny -secondary g-margin-top--2x"> </p>'),Tt=e.template('<p class="p -small"> </p> <!>',1),At=e.template('<p class="p -small"> </p> <div class="sta_update g-margin-top--2x"><span class="sta_status-dot g-margin-right--half"></span> <div><p class="p -tiny -strong"> </p> <p class="p -tiny -secondary"> </p> <p class="p -tiny color-ok -text"> </p></div></div>',1),Lt=e.template('<p class="p -small"> </p> <p class="p -tiny -secondary g-margin-top--2x"> </p>',1),Et=e.template('<p class="p -small"> </p>'),Ft=e.template('<p class="p -small"> </p>'),Wt=e.template('<p class="p -small"> </p>'),Bt=e.template('<p class="p -small"> </p>'),Rt=e.template('<p class="p -small"> </p>'),Gt=e.template('<div class="sta_tooltip"><!></div>');var Nt=e.template('<button data-test="stats-30day"> </button> <button data-test="stats-overall"> </button>',1),Ot=e.template('<br> <button class="a -small"> </button>',1),Ut=e.template('<div class="grid__4 sta_block"><div class="sta_icon__cont"><kin-icon></kin-icon> <kin-tooltip><div slot="tooltip-activator"><kin-icon></kin-icon></div> <div slot="tooltip"><!></div></kin-tooltip></div> <div class="sta_count h1"> </div> <div class="sta_desc"> <!></div></div>',2),Xt=e.template('<div class="sta"><div class="sta_header"><h3 class="h3"> </h3> <!></div> <div class="grid"><!></div> <div class="sta_tip"><span class="sta_tip__badge badge g-margin-right--1x"> </span> <p class="span -small -secondary"> </p></div></div>');function Jt(a,i){e.push(i,!1);const n=e.mutable_source();let l=e.mutable_source(null),c=e.mutable_source(Q);const d=o.getProductStringId();let _=null;function p(){r("avService.Stats.Get").then((t=>e.set(l,t)))}s((()=>{p(),_=setInterval((()=>p()),5e3)})),t((()=>{clearInterval(_)})),e.legacy_pre_effect((()=>(e.get(l),e.get(c))),(()=>{e.set(n,function(e,t=K){if(!e)return null;const s=e[t];return[{id:G,desc:M("statistics.attacks"),icon:"icon-l-pc-ok",action:null,count:s.fileShield.infectedCount+s.webShield.infectedCount},{id:N,desc:M("statistics.updates"),icon:"icon-l-realtime-updates",action:null,count:s.updates.vps+s.updates.streaming},{id:O,desc:M("statistics.threats"),icon:"icon-l-virus-chest",actionText:M("statistics.openchest"),action(){window.location.hash="#virusChest"},count:e.chestItemCount},{id:U,desc:M("statistics.scannedFiles"),icon:"icon-l-file-scan",action:null,count:s.fileShield.scannedCount},{id:X,desc:M("statistics.scannedSites"),icon:"icon-l-website-scan",action:null,count:s.webShield.scannedCount},{id:J,desc:M("statistics.smartscans"),icon:"icon-l-smart-scan",actionText:M("statistics.runsmartscan"),action(){window.location.hash="#smartScan?origin=Statistics"},count:s.onDemandScanner.sessionCount||0}]}(e.get(l),e.get(c)))})),e.legacy_pre_effect_reset(),e.init();var m=Xt(),u=e.child(m),h=e.child(u),f=e.child(h,!0);e.reset(h);var g=e.sibling(h,2);b(g,{class:"g-margin-left--1x",children:(t,s)=>{var a=Nt(),i=e.first_child(a);let n;var l=e.child(i,!0);e.reset(i);var r=e.sibling(i,2);let o;var d=e.child(r,!0);e.reset(r),e.template_effect(((t,s,a,_)=>{i.disabled=e.get(c)===Q,n=e.set_class(i,1,"",null,n,t),e.set_text(l,s),r.disabled=e.get(c)===K,o=e.set_class(r,1,"",null,o,a),e.set_text(d,_)}),[()=>({"-active":e.get(c)===Q}),()=>M("statistics.filter.30"),()=>({"-active":e.get(c)===K}),()=>M("statistics.filter.total")],e.derived_safe_equal),e.event("click",i,(()=>e.set(c,Q))),e.event("click",r,(()=>e.set(c,K))),e.append(t,a)},$$slots:{default:!0}}),e.reset(u);var v=e.sibling(u,2),V=e.child(v),H=t=>{var s=e.comment(),a=e.first_child(s);e.each(a,1,(()=>e.get(n)),e.index,((t,s,a,i)=>{let n=()=>e.get(s).action,l=()=>e.get(s).count;var r=Ut(),o=e.child(r),d=e.child(o);e.template_effect((()=>e.set_custom_element_data(d,"name",e.get(s).icon))),e.set_custom_element_data(d,"size","80"),e.set_class(d,1,"sta_icon");var _=e.sibling(d,2);e.set_class(_,1,"sta_info");var p=e.child(_),m=e.child(p);e.set_custom_element_data(m,"name","icon-m-action-info"),e.set_custom_element_data(m,"size","18"),e.reset(p);var u=e.sibling(p,2);!function(t,s){e.push(s,!1);let a=e.prop(s,"id",8,null),i=e.prop(s,"count",8,null),n=e.prop(s,"filter",8,Q);e.init();var l=Gt(),r=e.child(l),o=t=>{var s=e.comment(),a=e.first_child(s),l=t=>{var s=e.comment(),a=e.first_child(s),i=t=>{var s=Dt(),a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>M("statistics.attacks.info")],e.derived_safe_equal),e.append(t,s)},l=t=>{var s=qt(),a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>M("statistics.attacks.info.overall")],e.derived_safe_equal),e.append(t,s)};e.if(a,(e=>{n()===Q?e(i):e(l,!1)})),e.append(t,s)},r=t=>{var s=Tt(),a=e.first_child(s),i=e.child(a,!0);e.reset(a);var l=e.sibling(a,2),r=t=>{var s=zt(),a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>M("statistics.attacks.info.ok.desc")],e.derived_safe_equal),e.append(t,s)},o=t=>{var s=Pt(),a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>M("statistics.attacks.info.ok.desc.overall")],e.derived_safe_equal),e.append(t,s)};e.if(l,(e=>{n()===Q?e(r):e(o,!1)})),e.template_effect((t=>e.set_text(i,t)),[()=>M("statistics.attacks.info.ok")],e.derived_safe_equal),e.append(t,s)};e.if(a,(e=>{i()?e(l):e(r,!1)})),e.append(t,s)},c=(t,s)=>{var i=t=>{var s=At(),a=e.first_child(s),i=e.child(a,!0);e.reset(a);var n=e.sibling(a,2),l=e.sibling(e.child(n),2),r=e.child(l),o=e.child(r,!0);e.reset(r);var c=e.sibling(r,2),d=e.child(c,!0);e.reset(c);var _=e.sibling(c,2),p=e.child(_,!0);e.reset(_),e.reset(l),e.reset(n),e.template_effect(((t,s,a,n)=>{e.set_text(i,t),e.set_text(o,s),e.set_text(d,a),e.set_text(p,n)}),[()=>M("statistics.updates.info"),()=>M("statistics.updates.info.virus"),()=>M("statistics.updates.info.virus.desc"),()=>M("statistics.updates.info.virus.date",y.getUpdateTimeString())],e.derived_safe_equal),e.append(t,s)},l=(t,s)=>{var i=t=>{var s=Lt(),a=e.first_child(s),i=e.child(a,!0);e.reset(a);var n=e.sibling(a,2),l=e.child(n,!0);e.reset(n),e.template_effect(((t,s)=>{e.set_text(i,t),e.set_text(l,s)}),[()=>M("statistics.threats.info"),()=>M("statistics.threats.info.desc")],e.derived_safe_equal),e.append(t,s)},l=(t,s)=>{var i=t=>{var s=e.comment(),a=e.first_child(s),i=t=>{var s=Et(),a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>M("statistics.scannedFiles.info")],e.derived_safe_equal),e.append(t,s)},l=t=>{var s=Ft(),a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>M("statistics.scannedFiles.info.overall")],e.derived_safe_equal),e.append(t,s)};e.if(a,(e=>{n()===Q?e(i):e(l,!1)})),e.append(t,s)},l=(t,s)=>{var i=t=>{var s=Wt(),a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>M("statistics.scannedSites.info")],e.derived_safe_equal),e.append(t,s)},l=(t,s)=>{var i=t=>{var s=e.comment(),a=e.first_child(s),i=t=>{var s=Bt(),a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>M("statistics.smartscans.info")],e.derived_safe_equal),e.append(t,s)},l=t=>{var s=Rt(),a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>M("statistics.smartscans.info.overall")],e.derived_safe_equal),e.append(t,s)};e.if(a,(e=>{n()===Q?e(i):e(l,!1)})),e.append(t,s)};e.if(t,(e=>{a()===J&&e(i)}),s)};e.if(t,(e=>{a()===X?e(i):e(l,!1)}),s)};e.if(t,(e=>{a()===U?e(i):e(l,!1)}),s)};e.if(t,(e=>{a()===O?e(i):e(l,!1)}),s)};e.if(t,(e=>{a()===N?e(i):e(l,!1)}),s)};e.if(r,(e=>{a()===G?e(o):e(c,!1)})),e.reset(l),e.append(t,l),e.pop()}(e.child(u),{get id(){return e.get(s).id},get filter(){return e.get(c)},get count(){return l()}}),e.reset(u),e.reset(_),e.reset(o);var h=e.sibling(o,2),f=e.child(h,!0);e.reset(h);var g=e.sibling(h,2),v=e.child(g),b=e.sibling(v),V=t=>{var a=Ot(),i=e.sibling(e.first_child(a),2),l=e.child(i,!0);e.reset(i),e.template_effect((()=>e.set_text(l,e.get(s).actionText))),e.event("click",i,(()=>n()())),e.append(t,a)};e.if(b,(e=>{n()&&e(V)})),e.reset(g),e.reset(r),e.template_effect((t=>{e.set_text(f,t),e.set_text(v,`${e.get(s).desc??""} `)}),[()=>Z.formatNumber(l())],e.derived_safe_equal),e.append(t,r)})),e.append(t,s)};e.if(V,(t=>{e.get(n)&&t(H)})),e.reset(v);var k=e.sibling(v,2),x=e.child(k),S=e.child(x,!0);e.reset(x);var I=e.sibling(x,2),$=e.child(I,!0);e.reset(I),e.action(I,((e,t)=>w?.(e,t)),(()=>({id:334,params:{action:2}}))),e.reset(k),e.reset(m),e.template_effect(((t,s,a)=>{e.set_text(f,t),e.set_text(S,s),e.set_text($,a)}),[()=>M("statistics.claim",M(d)),()=>M("statistics.security.badge"),()=>M("statistics.security.blog")],e.derived_safe_equal),e.append(a,m),e.pop()}function Kt(e){Jt(e,{})}const Qt=m.Id.AvOffer,Yt="dashboard.checklistStep",es="dashboard.checklistFirstTime",ts="checklist.returnAfterAntiScamOnboarding",ss=T(!1),as=P(!1,(e=>(c.multiDevice.getMultiDeviceData().then((t=>{ss.set(!0),e({isMultiDevice:t?.totalDevicesCount>1,devicesLeft:t?.devicesLeftToProtect})})),()=>{}))),is=P(!1,(e=>{function t(){if(window.location.hash.startsWith("#antiscamsection")){const t=L(ns),s=L(ls);"icon-l-antiscam"===s[t]?.icon&&cs(),e(!0)}}return e(!1),window.addEventListener("hashchange",t),()=>{window.removeEventListener("hashchange",t)}})),ns=T(null,(e=>{function t(){Promise.all([p.getValueCached("avdef://config/GuiCache/DashboardChecklist"),p.getValueCached("avdef://config/GuiCache/DashboardChecklistMaxDaysVisible"),r("app.smartScan.GetStatus")]).then((([t,s,a])=>{s=parseInt(s)||14;const i=parseInt(localStorage.getItem(es)||"0"),n=!i||i+24*s*60*60*1e3>Date.now(),l=window.location.hash.startsWith("#dashboard");let r=parseInt(localStorage.getItem(Yt)||"1");a.lastRun&&(r=Math.max(r,2)),1===parseInt(t)&&n&&(!i&&l&&a.lastRun&&(window.location.hash="#checklist"),e(r))}))}function s(){window.location.hash.startsWith("#dashboard")&&t()}t();const a=[i.on("app.data_scan_ui.onStatusChange",(t=>{if("smartscan"===t.origin&&100===t.progress){let t=L(ns);null!==t&&(t=Math.max(t,2),e(t))}})),i.on("dashboard.premiumWizard.finished",(()=>{localStorage.removeItem(es),t()})),i.on("mainLayout.antiScamOnboarding.finished",(()=>{"true"===sessionStorage.getItem(ts)&&(window.location.hash="#checklist",sessionStorage.removeItem(ts))}))];return window.addEventListener("hashchange",s),()=>{a.forEach((e=>e())),window.removeEventListener("hashchange",s)}})),ls=A([ns,as,is],(([e,t,s])=>d.isFreeProduct()?[ds("installFree",null,!1,!0),ds("smartscan","icon-l-scan",!1,!0,"s255",null,"dashboard.runSmartScan",(()=>{window.location.hash="smartScan?origin=CheckList"}),"global.maybeLater"),ds("mobile","icon-m-devices-mobile",!1,!0,"s252",'<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t<g clip-path="url(#clip0_1985_36869)">\n\t\t<path d="M0 0H96V96H0V0Z" fill="white"/>\n\t\t<path d="M0 0H23.1724V3.31034H0V0ZM26.4828 0H39.7241V3.31034H26.4828V0ZM59.5862 0H62.8966V3.31034H59.5862V0ZM66.2069 0H69.5172V3.31034H66.2069V0ZM72.8276 0H96V3.31034H72.8276V0ZM0 3.31034H3.31034V6.62069H0V3.31034ZM19.8621 3.31034H23.1724V6.62069H19.8621V3.31034ZM36.4138 3.31034H49.6552V6.62069H36.4138V3.31034ZM52.9655 3.31034H59.5862V6.62069H52.9655V3.31034ZM62.8966 3.31034H66.2069V6.62069H62.8966V3.31034ZM72.8276 3.31034H76.1379V6.62069H72.8276V3.31034ZM92.6897 3.31034H96V6.62069H92.6897V3.31034ZM0 6.62069H3.31034V9.93104H0V6.62069ZM6.62069 6.62069H16.5517V9.93104H6.62069V6.62069ZM19.8621 6.62069H23.1724V9.93104H19.8621V6.62069ZM29.7931 6.62069H33.1035V9.93104H29.7931V6.62069ZM36.4138 6.62069H39.7241V9.93104H36.4138V6.62069ZM43.0345 6.62069H49.6552V9.93104H43.0345V6.62069ZM72.8276 6.62069H76.1379V9.93104H72.8276V6.62069ZM79.4483 6.62069H89.3793V9.93104H79.4483V6.62069ZM92.6897 6.62069H96V9.93104H92.6897V6.62069ZM0 9.93104H3.31034V13.2414H0V9.93104ZM6.62069 9.93104H16.5517V13.2414H6.62069V9.93104ZM19.8621 9.93104H23.1724V13.2414H19.8621V9.93104ZM33.1035 9.93104H39.7241V13.2414H33.1035V9.93104ZM43.0345 9.93104H46.3448V13.2414H43.0345V9.93104ZM62.8966 9.93104H69.5172V13.2414H62.8966V9.93104ZM72.8276 9.93104H76.1379V13.2414H72.8276V9.93104ZM79.4483 9.93104H89.3793V13.2414H79.4483V9.93104ZM92.6897 9.93104H96V13.2414H92.6897V9.93104ZM0 13.2414H3.31034V16.5517H0V13.2414ZM6.62069 13.2414H16.5517V16.5517H6.62069V13.2414ZM19.8621 13.2414H23.1724V16.5517H19.8621V13.2414ZM33.1035 13.2414H49.6552V16.5517H33.1035V13.2414ZM56.2759 13.2414H66.2069V16.5517H56.2759V13.2414ZM72.8276 13.2414H76.1379V16.5517H72.8276V13.2414ZM79.4483 13.2414H89.3793V16.5517H79.4483V13.2414ZM92.6897 13.2414H96V16.5517H92.6897V13.2414ZM0 16.5517H3.31034V19.8621H0V16.5517ZM19.8621 16.5517H23.1724V19.8621H19.8621V16.5517ZM29.7931 16.5517H33.1035V19.8621H29.7931V16.5517ZM36.4138 16.5517H39.7241V19.8621H36.4138V16.5517ZM43.0345 16.5517H46.3448V19.8621H43.0345V16.5517ZM56.2759 16.5517H59.5862V19.8621H56.2759V16.5517ZM72.8276 16.5517H76.1379V19.8621H72.8276V16.5517ZM92.6897 16.5517H96V19.8621H92.6897V16.5517ZM0 19.8621H23.1724V23.1724H0V19.8621ZM26.4828 19.8621H29.7931V23.1724H26.4828V19.8621ZM33.1035 19.8621H36.4138V23.1724H33.1035V19.8621ZM39.7241 19.8621H43.0345V23.1724H39.7241V19.8621ZM46.3448 19.8621H49.6552V23.1724H46.3448V19.8621ZM52.9655 19.8621H56.2759V23.1724H52.9655V19.8621ZM59.5862 19.8621H62.8966V23.1724H59.5862V19.8621ZM66.2069 19.8621H69.5172V23.1724H66.2069V19.8621ZM72.8276 19.8621H96V23.1724H72.8276V19.8621ZM26.4828 23.1724H33.1035V26.4828H26.4828V23.1724ZM39.7241 23.1724H46.3448V26.4828H39.7241V23.1724ZM49.6552 23.1724H56.2759V26.4828H49.6552V23.1724ZM59.5862 23.1724H62.8966V26.4828H59.5862V23.1724ZM0 26.4828H6.62069V29.7931H0V26.4828ZM9.93104 26.4828H16.5517V29.7931H9.93104V26.4828ZM19.8621 26.4828H23.1724V29.7931H19.8621V26.4828ZM29.7931 26.4828H33.1035V29.7931H29.7931V26.4828ZM39.7241 26.4828H43.0345V29.7931H39.7241V26.4828ZM46.3448 26.4828H49.6552V29.7931H46.3448V26.4828ZM52.9655 26.4828H59.5862V29.7931H52.9655V26.4828ZM72.8276 26.4828H76.1379V29.7931H72.8276V26.4828ZM92.6897 26.4828H96V29.7931H92.6897V26.4828ZM0 29.7931H3.31034V33.1035H0V29.7931ZM9.93104 29.7931H19.8621V33.1035H9.93104V29.7931ZM33.1035 29.7931H36.4138V33.1035H33.1035V29.7931ZM43.0345 29.7931H46.3448V33.1035H43.0345V29.7931ZM49.6552 29.7931H56.2759V33.1035H49.6552V29.7931ZM62.8966 29.7931H66.2069V33.1035H62.8966V29.7931ZM69.5172 29.7931H72.8276V33.1035H69.5172V29.7931ZM76.1379 29.7931H82.7586V33.1035H76.1379V29.7931ZM86.069 29.7931H92.6897V33.1035H86.069V29.7931ZM0 33.1035H3.31034V36.4138H0V33.1035ZM9.93104 33.1035H13.2414V36.4138H9.93104V33.1035ZM16.5517 33.1035H23.1724V36.4138H16.5517V33.1035ZM29.7931 33.1035H33.1035V36.4138H29.7931V33.1035ZM39.7241 33.1035H43.0345V36.4138H39.7241V33.1035ZM46.3448 33.1035H52.9655V36.4138H46.3448V33.1035ZM56.2759 33.1035H62.8966V36.4138H56.2759V33.1035ZM86.069 33.1035H89.3793V36.4138H86.069V33.1035ZM0 36.4138H6.62069V39.7241H0V36.4138ZM9.93104 36.4138H16.5517V39.7241H9.93104V36.4138ZM23.1724 36.4138H26.4828V39.7241H23.1724V36.4138ZM46.3448 36.4138H49.6552V39.7241H46.3448V36.4138ZM52.9655 36.4138H62.8966V39.7241H52.9655V36.4138ZM72.8276 36.4138H86.069V39.7241H72.8276V36.4138ZM92.6897 36.4138H96V39.7241H92.6897V36.4138ZM0 39.7241H3.31034V43.0345H0V39.7241ZM9.93104 39.7241H13.2414V43.0345H9.93104V39.7241ZM16.5517 39.7241H36.4138V43.0345H16.5517V39.7241ZM43.0345 39.7241H49.6552V43.0345H43.0345V39.7241ZM52.9655 39.7241H56.2759V43.0345H52.9655V39.7241ZM59.5862 39.7241H62.8966V43.0345H59.5862V39.7241ZM66.2069 39.7241H76.1379V43.0345H66.2069V39.7241ZM92.6897 39.7241H96V43.0345H92.6897V39.7241ZM13.2414 43.0345H19.8621V46.3448H13.2414V43.0345ZM26.4828 43.0345H29.7931V46.3448H26.4828V43.0345ZM33.1035 43.0345H36.4138V46.3448H33.1035V43.0345ZM39.7241 43.0345H43.0345V46.3448H39.7241V43.0345ZM46.3448 43.0345H56.2759V46.3448H46.3448V43.0345ZM72.8276 43.0345H96V46.3448H72.8276V43.0345ZM3.31034 46.3448H9.93104V49.6552H3.31034V46.3448ZM13.2414 46.3448H16.5517V49.6552H13.2414V46.3448ZM19.8621 46.3448H23.1724V49.6552H19.8621V46.3448ZM29.7931 46.3448H36.4138V49.6552H29.7931V46.3448ZM46.3448 46.3448H66.2069V49.6552H46.3448V46.3448ZM76.1379 46.3448H82.7586V49.6552H76.1379V46.3448ZM86.069 46.3448H89.3793V49.6552H86.069V46.3448ZM92.6897 46.3448H96V49.6552H92.6897V46.3448ZM0 49.6552H13.2414V52.9655H0V49.6552ZM23.1724 49.6552H26.4828V52.9655H23.1724V49.6552ZM29.7931 49.6552H36.4138V52.9655H29.7931V49.6552ZM39.7241 49.6552H52.9655V52.9655H39.7241V49.6552ZM79.4483 49.6552H82.7586V52.9655H79.4483V49.6552ZM86.069 49.6552H89.3793V52.9655H86.069V49.6552ZM92.6897 49.6552H96V52.9655H92.6897V49.6552ZM9.93104 52.9655H13.2414V56.2759H9.93104V52.9655ZM19.8621 52.9655H23.1724V56.2759H19.8621V52.9655ZM26.4828 52.9655H29.7931V56.2759H26.4828V52.9655ZM33.1035 52.9655H43.0345V56.2759H33.1035V52.9655ZM49.6552 52.9655H56.2759V56.2759H49.6552V52.9655ZM62.8966 52.9655H69.5172V56.2759H62.8966V52.9655ZM76.1379 52.9655H79.4483V56.2759H76.1379V52.9655ZM82.7586 52.9655H86.069V56.2759H82.7586V52.9655ZM0 56.2759H6.62069V59.5862H0V56.2759ZM13.2414 56.2759H16.5517V59.5862H13.2414V56.2759ZM29.7931 56.2759H33.1035V59.5862H29.7931V56.2759ZM36.4138 56.2759H39.7241V59.5862H36.4138V56.2759ZM49.6552 56.2759H56.2759V59.5862H49.6552V56.2759ZM59.5862 56.2759H72.8276V59.5862H59.5862V56.2759ZM79.4483 56.2759H82.7586V59.5862H79.4483V56.2759ZM86.069 56.2759H92.6897V59.5862H86.069V56.2759ZM0 59.5862H6.62069V62.8966H0V59.5862ZM9.93104 59.5862H13.2414V62.8966H9.93104V59.5862ZM19.8621 59.5862H23.1724V62.8966H19.8621V59.5862ZM26.4828 59.5862H29.7931V62.8966H26.4828V59.5862ZM33.1035 59.5862H36.4138V62.8966H33.1035V59.5862ZM39.7241 59.5862H56.2759V62.8966H39.7241V59.5862ZM59.5862 59.5862H79.4483V62.8966H59.5862V59.5862ZM82.7586 59.5862H86.069V62.8966H82.7586V59.5862ZM92.6897 59.5862H96V62.8966H92.6897V59.5862ZM0 62.8966H6.62069V66.2069H0V62.8966ZM9.93104 62.8966H19.8621V66.2069H9.93104V62.8966ZM36.4138 62.8966H39.7241V66.2069H36.4138V62.8966ZM43.0345 62.8966H46.3448V66.2069H43.0345V62.8966ZM52.9655 62.8966H56.2759V66.2069H52.9655V62.8966ZM59.5862 62.8966H62.8966V66.2069H59.5862V62.8966ZM69.5172 62.8966H89.3793V66.2069H69.5172V62.8966ZM0 66.2069H6.62069V69.5172H0V66.2069ZM13.2414 66.2069H26.4828V69.5172H13.2414V66.2069ZM33.1035 66.2069H39.7241V69.5172H33.1035V66.2069ZM43.0345 66.2069H46.3448V69.5172H43.0345V66.2069ZM49.6552 66.2069H59.5862V69.5172H49.6552V66.2069ZM66.2069 66.2069H92.6897V69.5172H66.2069V66.2069ZM26.4828 69.5172H33.1035V72.8276H26.4828V69.5172ZM39.7241 69.5172H46.3448V72.8276H39.7241V69.5172ZM49.6552 69.5172H52.9655V72.8276H49.6552V69.5172ZM56.2759 69.5172H62.8966V72.8276H56.2759V69.5172ZM66.2069 69.5172H69.5172V72.8276H66.2069V69.5172ZM79.4483 69.5172H86.069V72.8276H79.4483V69.5172ZM0 72.8276H23.1724V76.1379H0V72.8276ZM29.7931 72.8276H33.1035V76.1379H29.7931V72.8276ZM36.4138 72.8276H39.7241V76.1379H36.4138V72.8276ZM43.0345 72.8276H46.3448V76.1379H43.0345V72.8276ZM49.6552 72.8276H52.9655V76.1379H49.6552V72.8276ZM62.8966 72.8276H69.5172V76.1379H62.8966V72.8276ZM72.8276 72.8276H76.1379V76.1379H72.8276V72.8276ZM79.4483 72.8276H86.069V76.1379H79.4483V72.8276ZM0 76.1379H3.31034V79.4483H0V76.1379ZM19.8621 76.1379H23.1724V79.4483H19.8621V76.1379ZM29.7931 76.1379H33.1035V79.4483H29.7931V76.1379ZM36.4138 76.1379H46.3448V79.4483H36.4138V76.1379ZM49.6552 76.1379H59.5862V79.4483H49.6552V76.1379ZM66.2069 76.1379H69.5172V79.4483H66.2069V76.1379ZM79.4483 76.1379H82.7586V79.4483H79.4483V76.1379ZM89.3793 76.1379H92.6897V79.4483H89.3793V76.1379ZM0 79.4483H3.31034V82.7586H0V79.4483ZM6.62069 79.4483H16.5517V82.7586H6.62069V79.4483ZM19.8621 79.4483H23.1724V82.7586H19.8621V79.4483ZM26.4828 79.4483H29.7931V82.7586H26.4828V79.4483ZM33.1035 79.4483H46.3448V82.7586H33.1035V79.4483ZM49.6552 79.4483H56.2759V82.7586H49.6552V79.4483ZM59.5862 79.4483H86.069V82.7586H59.5862V79.4483ZM92.6897 79.4483H96V82.7586H92.6897V79.4483ZM0 82.7586H3.31034V86.069H0V82.7586ZM6.62069 82.7586H16.5517V86.069H6.62069V82.7586ZM19.8621 82.7586H23.1724V86.069H19.8621V82.7586ZM26.4828 82.7586H33.1035V86.069H26.4828V82.7586ZM43.0345 82.7586H62.8966V86.069H43.0345V82.7586ZM69.5172 82.7586H72.8276V86.069H69.5172V82.7586ZM76.1379 82.7586H79.4483V86.069H76.1379V82.7586ZM92.6897 82.7586H96V86.069H92.6897V82.7586ZM0 86.069H3.31034V89.3793H0V86.069ZM6.62069 86.069H16.5517V89.3793H6.62069V86.069ZM19.8621 86.069H23.1724V89.3793H19.8621V86.069ZM33.1035 86.069H46.3448V89.3793H33.1035V86.069ZM49.6552 86.069H59.5862V89.3793H49.6552V86.069ZM69.5172 86.069H72.8276V89.3793H69.5172V86.069ZM76.1379 86.069H82.7586V89.3793H76.1379V86.069ZM86.069 86.069H96V89.3793H86.069V86.069ZM0 89.3793H3.31034V92.6897H0V89.3793ZM19.8621 89.3793H23.1724V92.6897H19.8621V89.3793ZM26.4828 89.3793H29.7931V92.6897H26.4828V89.3793ZM33.1035 89.3793H39.7241V92.6897H33.1035V89.3793ZM49.6552 89.3793H52.9655V92.6897H49.6552V89.3793ZM69.5172 89.3793H72.8276V92.6897H69.5172V89.3793ZM76.1379 89.3793H89.3793V92.6897H76.1379V89.3793ZM92.6897 89.3793H96V92.6897H92.6897V89.3793ZM0 92.6897H23.1724V96H0V92.6897ZM26.4828 92.6897H29.7931V96H26.4828V92.6897ZM33.1035 92.6897H36.4138V96H33.1035V92.6897ZM46.3448 92.6897H52.9655V96H46.3448V92.6897ZM62.8966 92.6897H82.7586V96H62.8966V92.6897Z" fill="black"/>\n\t</g>\n\t<defs>\n\t\t<clipPath id="clip0_1985_36869">\n\t\t\t<rect width="96" height="96" fill="white"/>\n\t\t</clipPath>\n\t</defs>\n</svg>',"dashboard.checklist.getDownloadLink",(()=>{m.openWindow(Qt,{p_scr:"checklist_mobile"})}),"global.maybeLater"),ds("antiScam","icon-l-antiscam",!1,!0,"s042",null,"dashboard.checklist.exploreAntiScam",(()=>{window.location.hash="antiscamsection",sessionStorage.setItem(ts,!0)}),"global.maybeLater",null,s&&e<3),ds("premium","avast-premier",4!==e,!1,"s049",null,"dashboard.checklist.getReward",(()=>{m.openWindow(Qt,{p_scr:"checklist_reward_dp"})}),"global.noThanks")]:[ds("upgradeToPremium",null,!1,!0),ds("smartscan","icon-l-scan",!1,!0,"s255",null,"dashboard.runSmartScan",(()=>{window.location.hash="smartScan?origin=CheckList"}),"global.maybeLater"),...t.isMultiDevice?[ds("devices","icon-m-devices-multiple",!1,!0,"s251",null,"dashboard.multiDev.cta",(()=>{m.openWindow(Qt,{p_scr:"checklist_multidevice"})}),"global.maybeLater",M("dashboard.checklist.step.devices.title",t.devicesLeft))]:[],ds("antiScam","icon-l-antiscam",!1,!0,"s042",null,"dashboard.checklist.exploreAntiScam",(async()=>{cs(),await a(),window.location.hash="antiscamsection",sessionStorage.setItem(ts,!0)}),"global.maybeLater",null,s&&e<3),ds("enjoy","avast-premier",!1,!1,"s097",null,"dashboard.checklist.finish",(()=>{}))])),rs=A([ns,ls],(([e,t])=>null===ns?null:e+t.filter((e=>e.forceChecked)).length)),os=A([ls,ns],(([e,t])=>null!==t&&t<e.length));function cs(e){const t=L(ns),s=L(ls);let a=t+1;s[a]?.forceChecked&&(a+=1),localStorage.setItem(Yt,a),ns.set(a),a>=s.length&&(i.emit("checklist.finished"),localStorage.setItem("dashboard.checklistFinished",!0))}function ds(e,t,s,a,i,n,l,r,o=null,c=null,d=null){const _="dashboard.menuChecklist."+e,p=M(_)===_?null:M(_);return{nlsInfix:e,label:M("dashboard.checklist.step."+e+".label"+(s?".locked":"")),icon:t,locked:s,showNumber:a,menuLabel:p,forceChecked:d,details:{illustration:i,additionalSvg:n,title:c??M("dashboard.checklist.step."+e+".title"),desc:M("dashboard.checklist.step."+e+".desc"),btnPrimary:{text:M(l),action:()=>{_s(!1,!1),cs(),r()}},btnSecondary:{text:o?M(o):null,action:()=>{_s(!1,!1,"later"),cs()}}}}}function _s(e,t,s="primary"){const a=L(ls),i=a.length-1,l=L(ns);let r,o;l<i?(r=l+1,o=a[l].nlsInfix):(r=i,o=a[i].nlsInfix);const c=t?"checklist banner step":"checklist lp step";e?n.view(`${c} ${r}/${i}`,{a1:o}):n.click("Dashboard","Click",s,`${c} ${r}/${i}`,{a1:o})}Zt(".dsh_checklist_title.svelte-d6soj6 {\n  display: flex;\n  align-items: center;\n  height: 14.4rem;\n}\n.dsh_checklist_container.svelte-d6soj6 {\n  margin: 0.4rem 2.1rem 2.5rem 1.6rem;\n  display: flex;\n  flex-direction: row;\n}\n.dsh_checklist_container.svelte-d6soj6 >:where(.svelte-d6soj6) {\n  flex-grow: 0;\n  width: 50%;\n}\n.dsh_checklist_details.svelte-d6soj6 {\n  z-index: 1;\n  padding: 4rem 2.4rem;\n  margin-inline-start: 3rem;\n  position: relative;\n  border-radius: var(--cube-radius);\n  width: 36.5rem;\n  height: 55.2rem;\n  flex-shrink: 0;\n  flex-grow: 0;\n  display: flex;\n  flex-direction: column;\n}\n.dsh_checklist_details_background.svelte-d6soj6 {\n  position: absolute;\n  left: -4.8rem;\n  right: -2rem;\n  top: -2rem;\n  bottom: -2rem;\n  z-index: -1;\n}\n.dsh_checklist_details_background.svelte-d6soj6 svg:where(.svelte-d6soj6) {\n  width: 100%;\n  height: 100%;\n}\n.dsh_checklist_details_desc.svelte-d6soj6 {\n  flex-grow: 1;\n}\n.dsh_checklist_details_ill.svelte-d6soj6 {\n  font-size: 10rem;\n  position: relative;\n}\n.dsh_checklist_details_qr.svelte-d6soj6 {\n  position: absolute;\n  left: 0;\n  right: 0;\n  top: 2.4rem;\n}\n.dsh_checklist_item.svelte-d6soj6 {\n  display: flex;\n  flex-direction: row;\n  margin-bottom: 1.6rem;\n  position: relative;\n  align-items: center;\n}\n.dsh_checklist_item_icon_disabled.svelte-d6soj6 {\n  opacity: 0.5;\n}\n.dsh_checklist_item.svelte-d6soj6:after {\n  content: '';\n  display: block;\n  width: 0.1rem;\n  height: 1.6rem;\n  position: absolute;\n  left: 2.6rem;\n  bottom: -1.6rem;\n  background-color: var(--o2-colors-on-background-light);\n}\n.dsh_checklist_item.svelte-d6soj6:last-child {\n  margin-bottom: 1.6rem;\n}\n.dsh_checklist_item.svelte-d6soj6:last-child:after {\n  display: none;\n}\n.dsh_checklist_item.-checked.svelte-d6soj6 .dsh_checklist_item_label:where(.svelte-d6soj6) {\n  text-decoration: line-through;\n}\nbody.avs[dir='rtl'] .dsh_checklist_details_background.svelte-d6soj6 {\n  transform: scaleX(-1);\n  left: -2rem;\n  right: -4.8rem;\n}\nbody.avs[dir='rtl'] .dsh_checklist_item.svelte-d6soj6:after {\n  left: initial;\n  right: 2.6rem;\n}\n");var ps=e.template("<kin-icon></kin-icon>",2),ms=e.template("<kin-icon></kin-icon>",2),us=e.template('<div><!> <div><!> <span class="dsh_checklist_item_label svelte-d6soj6"> </span></div></div>'),hs=e.template('<div class="dsh_checklist_details_qr svelte-d6soj6"><!></div>'),fs=(t,s)=>e.get(s).btnPrimary.action(),gs=(t,s)=>e.get(s).btnSecondary.action(),vs=e.template('<button class="a"> </button>'),bs=e.template('<div class="dsh_checklist_details_background svelte-d6soj6"><svg class="svelte-d6soj6"><defs><g id="dsh_checklist_details_background_shape"><rect x="4.8rem" y="2rem" width="calc(100% - 6.8rem)" height="calc(100% - 4rem)" rx="8" stroke-width="1"></rect><path d="M 20 190 l 28 -28 l 0 56 l -28 -28" stroke-width="1"></path></g><mask id="dsh_checklist_details_background_mask"><rect fill="white" x="-10%" y="-10%" width="120%" height="120%"></rect><use fill="black" xlink:href="#dsh_checklist_details_background_shape"></use></mask></defs><use xlink:href="#dsh_checklist_details_background_shape" mask="url(#dsh_checklist_details_background_mask)" style="filter: drop-shadow(0px 6px 16px rgba(0,0,0,0.20)) drop-shadow(0px 4px 4px rgba(0,0,0,0.05))"></use><use xlink:href="#dsh_checklist_details_background_shape" fill="var(--o2-colors-on-background-extra-light)"></use></svg></div> <div class="dsh_checklist_details_ill g-margin-bottom--2x svelte-d6soj6"><!> <!></div> <h2 class="h2 g-margin-bottom--1x"> </h2> <div class="p -secondary g-align--left dsh_checklist_details_desc svelte-d6soj6"> </div> <div class="g-margin-bottom--1x"><kin-button> </kin-button></div> <!>',3),Vs=e.template('<div class="dsh_checklist_container svelte-d6soj6"><div class="svelte-d6soj6"><div class="dsh_checklist_title svelte-d6soj6"><h1 class="h1"> </h1></div> <div class="dsh_checklist_items"></div></div> <div class="dsh_checklist_details g-align--center svelte-d6soj6"><!></div></div>');function Hs(a,n){e.push(n,!0);const[l,r]=e.setup_stores(),o=()=>e.store_get(rs,"$stepsDoneIncludingForced",l),c=()=>e.store_get(ls,"$steps",l),_=()=>e.store_get(ns,"$stepsDone",l),p=d.isFreeProduct();let m=e.derived((()=>p?o()<c().length-1?M("dashboard.checklist.title.stepsLeft",c().length-1-o()):M("dashboard.checklist.title.gift"):M("dashboard.checklist.title.complete"))),u=e.derived((()=>_()&&_()<c().length?c()[_()].details:null));e.user_effect((()=>{_()===c().length&&n.onClose()})),parseInt(localStorage.getItem(es)||"0")||localStorage.setItem(es,Date.now()),s((()=>{_s(!0,!1)})),t((()=>{_s(!1,!1,"close"),_()>=2&&i.emit("checklist.closed")}));var h=e.comment(),f=e.first_child(h),v=t=>{var s=Vs(),a=e.child(s),i=e.child(a),n=e.child(i),l=e.child(n,!0);e.reset(n),e.reset(i);var r=e.sibling(i,2);e.each(r,5,c,e.index,((t,s,a)=>{var i=us();let n;var l=e.child(i),r=t=>{var s=ps();e.set_custom_element_data(s,"name","circle-ok"),e.set_custom_element_data(s,"size","36"),e.set_class(s,1,"g-margin--1x"),e.append(t,s)},o=t=>{var i=ms();let n;e.template_effect((()=>e.set_custom_element_data(i,"name",e.get(s).icon))),e.template_effect((()=>e.set_custom_element_data(i,"badge",e.get(s).locked?"badge-locked":null))),e.set_custom_element_data(i,"size","36"),e.template_effect((t=>n=e.set_class(i,1,"g-margin--1x svelte-d6soj6",null,n,t)),[()=>({dsh_checklist_item_icon_disabled:_()<a})]),e.append(t,i)};e.if(l,(t=>{_()>=a+1||!e.get(s).icon||e.get(s).forceChecked?t(r):t(o,!1)}));var c=e.sibling(l,2);let d;var p=e.child(c),m=t=>{var s=e.text();s.nodeValue=`${a+1}.`,e.append(t,s)};e.if(p,(t=>{e.get(s).showNumber&&t(m)}));var u=e.sibling(p,2),h=e.child(u,!0);e.reset(u),e.reset(c),e.reset(i),e.template_effect(((t,a)=>{n=e.set_class(i,1,"dsh_checklist_item svelte-d6soj6",null,n,t),d=e.set_class(c,1,"g-margin-left--2x p",null,d,a),e.set_text(h,e.get(s).label)}),[()=>({"-checked":_()>=a+1||e.get(s).forceChecked}),()=>({"-disabled":_()!==a})]),e.append(t,i)})),e.reset(r),e.reset(a);var o=e.sibling(a,2),d=e.child(o),p=t=>{var s=bs(),a=e.first_child(s),i=e.child(a),n=e.child(i),l=e.child(n),r=e.sibling(e.child(l));e.reset(l),e.next(),e.reset(n),e.next(2),e.reset(i),e.reset(a);var o=e.sibling(a,2),c=e.child(o);g(c,{get name(){return e.get(u).illustration}});var d=e.sibling(c,2),p=t=>{var s=hs(),a=e.child(s);e.html(a,(()=>e.get(u).additionalSvg)),e.reset(s),e.append(t,s)};e.if(d,(t=>{e.get(u).additionalSvg&&t(p)})),e.reset(o);var m=e.sibling(o,2),h=e.child(m,!0);e.reset(m);var f=e.sibling(m,2),v=e.child(f,!0);e.reset(f);var b=e.sibling(f,2),V=e.child(b);V.__click=[fs,u];var H=e.child(V,!0);e.reset(V),e.reset(b);var k=e.sibling(b,2),x=t=>{var s=vs();s.__click=[gs,u];var a=e.child(s,!0);e.reset(s),e.template_effect((()=>e.set_text(a,e.get(u).btnSecondary.text))),e.append(t,s)};e.if(k,(t=>{e.get(u).btnSecondary.text&&t(x)})),e.template_effect((()=>{e.set_attribute(r,"transform","translate(0, "+68*_()+")"),e.set_text(h,e.get(u).title),e.set_text(v,e.get(u).desc),e.set_text(H,e.get(u).btnPrimary.text)})),e.append(t,s)};e.if(d,(t=>{e.get(u)&&t(p)})),e.reset(o),e.reset(s),e.template_effect((()=>e.set_text(l,e.get(m)))),e.append(t,s)};e.if(f,(e=>{_()&&_()<c().length&&e(v)})),e.append(a,h),e.pop(),r()}e.delegate(["click"]);function ks(){_s(!1,!0),window.location.hash="#checklist"}Zt(".menu_checklist.svelte-11w8pef {\n  margin: 0.4rem;\n  background-color: var(--o2-colors-surface);\n  border: 1px solid var(--o2-colors-attention);\n  border-radius: var(--cube-radius);\n  cursor: pointer;\n}\n.menu_checklist.-complete.svelte-11w8pef {\n  border-color: var(--o2-colors-success);\n}\n.menu_checklist.svelte-11w8pef:focus,\n.menu_checklist.svelte-11w8pef:hover {\n  background-color: var(--o2-colors-surface-state-a);\n}\n.menu_checklist_cta.svelte-11w8pef {\n  margin: 0 1.6rem 1.6rem;\n  display: block;\n}\n");var xs=e.template('<button><p class="p -secondary -tiny g-margin--1x"><!></p> <kin-button> </kin-button></button>',2);function Ms(t,s){e.push(s,!0);const[a,i]=e.setup_stores(),n=()=>e.store_get(ls,"$steps",a),l=()=>e.store_get(rs,"$stepsDoneIncludingForced",a);let r=e.derived((()=>n()[e.store_get(ns,"$stepsDone",a)]?.menuLabel||M("dashboard.menuChecklist.stepsLeft",n().length-1-l())));e.user_effect((()=>{e.store_get(ss,"$multiDeviceInfoLoad",a)&&_s(!0,!0)}));var o=xs();let c;o.__click=[ks];var d=e.child(o),_=e.child(d);e.html(_,(()=>e.get(r))),e.reset(d);var p=e.sibling(d,2);e.set_custom_element_data(p,"type","secondary"),e.set_custom_element_data(p,"size","small"),e.set_class(p,1,"menu_checklist_cta svelte-11w8pef");var m=e.child(p,!0);e.reset(p),e.reset(o),e.template_effect(((t,s)=>{c=e.set_class(o,1,"menu_checklist g-align--center svelte-11w8pef",null,c,t),e.set_text(m,s)}),[()=>({"-complete":l()>=n().length-1}),()=>M("dashboard.menuChecklist.letsGo")]),e.append(t,o),e.pop(),i()}e.delegate(["click"]);const Zs=e=>e;function ys(e,{delay:t=0,duration:s=400,easing:a=Zs}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:s,easing:a,css:e=>"opacity: "+e*i}}var ws=e.template("<kin-icon></kin-icon>",2),Ss=e.template('<div slot="icon"><kin-icon></kin-icon></div>',2),Is=e.template('<div slot="main-content"><div class="h4"> </div> <div class="text -small"> </div></div>'),$s=(t,s)=>et(e.get(s)),Cs=(t,s)=>{return a=e.get(s),st("IgnoreIssue",a._id,!1);var a},js=e.template('<div slot="actions"><kin-button> </kin-button> <kin-dropdown><div slot="dropdown-activator"><kin-button><kin-icon></kin-icon></kin-button></div> <kin-dropdown-item> </kin-dropdown-item></kin-dropdown></div>',2),Ds=e.template('<div slot="modal-content" data-test="dsh_msgs-ignored_list"><!></div>'),qs=(e,t)=>t.onClose(),zs=e.template('<div slot="modal-footer"><kin-button> </kin-button></div>',2);function Ps(s,a){e.push(a,!0);const[i,n]=e.setup_stores(),l=()=>e.store_get(ce,"$ignoredIssues",i);let r=null,o=e.derived((()=>l().length?M("dashboard.ignoredIssues.amountOfIssues",l().length):M("dashboard.ignoredIssues.noIssues"))),c=e.derived((()=>l().length?M("dashboard.ignoredIssues.reviewTheList"):null));e.user_effect((()=>{0===l().length&&null==r&&(r=setTimeout((()=>a.onClose()),950))})),t((()=>{clearTimeout(r)})),V(s,{get title(){return e.get(o)},get subtitle(){return e.get(c)},get onClose(){return a.onClose},$$slots:{"modal-content":(t,s)=>{var a=Ds(),n=e.child(a),r=t=>{var s=ws();e.set_custom_element_data(s,"name","circle-ok"),e.set_class(s,1,"kin_scan__icon g-margin-top--2x"),e.set_custom_element_data(s,"size","96"),e.transition(3,s,(()=>ys)),e.append(t,s)},o=t=>{var s=e.comment(),a=e.first_child(s);e.each(a,1,l,e.index,((t,s)=>{H(t,{get dataTest(){return`dsh_msgs-${e.get(s)._id??""}`},$$slots:{icon:(t,a)=>{var i=Ss(),n=e.child(i);e.template_effect((()=>{return e.set_custom_element_data(n,"name",(t=e.get(s)._id,Y[t]||"switch-x"));var t})),e.set_custom_element_data(n,"badge","badge-critical"),e.set_custom_element_data(n,"size","48"),e.reset(i),e.append(t,i)},"main-content":(t,a)=>{var i=Is(),n=e.child(i),l=e.child(n,!0);e.reset(n);var r=e.sibling(n,2),o=e.child(r,!0);e.reset(r),e.reset(i),e.template_effect(((t,s)=>{e.set_text(l,t),e.set_text(o,s)}),[()=>x.stripHtml(M("dashboard.problems."+e.get(s)._id)),()=>M("dashboard.problems."+e.get(s)._id+".desc")]),e.append(t,i)},actions:(t,a)=>{var n=js(),l=e.child(n);l.__click=[$s,s],e.set_custom_element_data(l,"size","small"),e.set_custom_element_data(l,"type","primary"),e.template_effect((()=>e.set_custom_element_data(l,"kin-disabled",e.store_get(de,"$fixing",i)===e.get(s).id))),e.template_effect((()=>e.set_custom_element_data(l,"aria-label",`${x.stripHtml(Ve(e.get(s).id))??""} - ${Me(e.get(s).id)??""}`))),e.set_custom_element_data(l,"data-test","dsh_msgs-modal_button");var r=e.child(l,!0);e.reset(l);var o=e.sibling(l,2);e.set_class(o,1,"g-margin-left--1x");var c=e.child(o),d=e.child(c);e.set_custom_element_data(d,"type","secondary"),e.set_custom_element_data(d,"icononly",!0),e.template_effect((()=>e.set_custom_element_data(d,"aria-label",M("global.showMoreActions")))),e.set_custom_element_data(d,"size","small");var _=e.child(d);e.set_custom_element_data(_,"name","icon-m-more-horiz"),e.set_custom_element_data(_,"data-test","dsh_msgs-modal_detail"),e.set_custom_element_data(_,"size","24"),e.reset(d),e.reset(c);var p=e.sibling(c,2);p.__click=[Cs,s],e.template_effect((()=>e.set_custom_element_data(p,"aria-label",`${x.stripHtml(Ve(e.get(s).id))??""} - ${M("global.unignore")??""}`))),e.set_custom_element_data(p,"data-test","dsg_msgs-unignore_button");var m=e.child(p,!0);e.reset(p),e.reset(o),e.reset(n),e.template_effect(((t,s)=>{e.set_text(r,t),e.set_text(m,s)}),[()=>Me(e.get(s)._id),()=>M("global.unignore")]),e.append(t,n)}}})})),e.append(t,s)};e.if(n,(e=>{0===l().length?e(r):e(o,!1)})),e.reset(a),e.append(t,a)},"modal-footer":(t,s)=>{var i=zs(),n=e.child(i);e.set_custom_element_data(n,"type","secondary"),n.__click=[qs,a];var l=e.child(n,!0);e.reset(n),e.reset(i),e.template_effect((t=>e.set_text(l,t)),[()=>M("global.close")]),e.append(t,i)}}}),e.pop(),n()}e.delegate(["click"]);Zt(".dsh_ignored-issues.svelte-1vafxwr {\n  border-top: 1px solid var(--o2-colors-on-background-light);\n}\n");var Ts=e.template('<div class="dsh_ignored-issues g-margin-top--1x text -small -secondary svelte-1vafxwr"><!></div>'),As=e.template("<!> <!>",1);function Ls(t,s){e.push(s,!1);const[a,i]=e.setup_stores(),n=()=>e.store_get(ce,"$ignoredIssues",a);let l=e.mutable_source(!1);e.init();var r=As(),o=e.first_child(r),c=t=>{var s=Ts(),a=e.child(s);const i=e.derived_safe_equal((()=>M("dashboard.messagesCenter.ignoredIssues.info.desc",n().length)));f(a,{get text(){return e.get(i)},action:()=>e.set(l,!0),cssCls:"-primary g-margin-top--2x"}),e.reset(s),e.append(t,s)};e.if(o,(e=>{n().length>0&&e(c)}));var d=e.sibling(o,2),_=t=>{Ps(t,{onClose:()=>e.set(l,!1)})};e.if(d,(t=>{e.get(l)&&t(_)})),e.append(t,r),e.pop(),i()}export{Ls as IgnoredIssuesControl,Hs as checklist,jt as default,os as isChecklistVisible,Ms as menuChecklist,Kt as stats};const Es={name:"dashboard",version:"1.3.2677",created:"2025-09-24T14:18:18.379Z"};export{Es as metadata};
