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


Current File : C:/Program Files/Avast Software/Avast/gui_resources/default_av/passwordProtection.js
//{"name":"passwordProtection","version":"1.2.200","created":"2021-03-10T09:10:24.609Z"}
import{eventer as t,serviceRequest as e,napiTracker as n,onlineChecker as o,windowApi as i}from"./napi.js";import{settingsService as s,ipmService as a,soundService as l,productModel as r}from"./napiExtensions.js";import{objectFromEntriesPolyfill as c}from"./plugins.js";import{nls as d}from"./i18n.js";import{logger as u,TabableToggler as p,stringUtils as h}from"./libs.js";import{modals as m}from"./ractiveComponents.js";import{svelteComponents as g}from"./Settings.js";function k(){}function f(t){return t()}function _(){return Object.create(null)}function v(t){t.forEach(f)}function b(t){return"function"==typeof t}function w(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function $(t,e,n){t.$$.on_destroy.push(function(t,...e){if(null==t)return k;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}(e,n))}function y(t,e,n,o){if(t){const i=x(t,e,n,o);return t[0](i)}}function x(t,e,n,o){return t[1]&&o?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](o(e))):n.ctx}function P(t,e,n,o,i,s,a){const l=function(t,e,n,o){if(t[2]&&o){const i=t[2](o(n));if(void 0===e.dirty)return i;if("object"==typeof i){const t=[],n=Math.max(e.dirty.length,i.length);for(let o=0;o<n;o+=1)t[o]=e.dirty[o]|i[o];return t}return e.dirty|i}return e.dirty}(e,o,i,s);if(l){const i=x(e,n,o,a);t.p(i,l)}}function I(t){return null==t?"":t}function C(t){return t&&b(t.destroy)?t.destroy:k}function S(t,e){t.appendChild(e)}function N(t,e,n){t.insertBefore(e,n||null)}function T(t){t.parentNode.removeChild(t)}function E(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function A(t){return document.createElement(t)}function B(t){return document.createTextNode(t)}function M(){return B(" ")}function z(){return B("")}function L(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function D(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function j(t,e,n){e in t?t[e]=n:D(t,e,n)}function H(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function O(t,e,n,o){t.style.setProperty(e,n,o?"important":"")}function U(t,e,n){t.classList[n?"add":"remove"](e)}let G;function K(t){G=t}function F(){if(!G)throw new Error("Function called outside component initialization");return G}function W(t){F().$$.on_mount.push(t)}function R(t){F().$$.on_destroy.push(t)}function V(){const t=F();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const i=function(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}(e,n);o.slice().forEach((e=>{e.call(t,i)}))}}}const q=[],X=[],J=[],Z=[],Q=Promise.resolve();let Y=!1;function tt(t){J.push(t)}let et=!1;const nt=new Set;function ot(){if(!et){et=!0;do{for(let t=0;t<q.length;t+=1){const e=q[t];K(e),it(e.$$)}for(K(null),q.length=0;X.length;)X.pop()();for(let t=0;t<J.length;t+=1){const e=J[t];nt.has(e)||(nt.add(e),e())}J.length=0}while(q.length);for(;Z.length;)Z.pop()();Y=!1,et=!1,nt.clear()}}function it(t){if(null!==t.fragment){t.update(),v(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(tt)}}const st=new Set;let at;function lt(){at={r:0,c:[],p:at}}function rt(){at.r||v(at.c),at=at.p}function ct(t,e){t&&t.i&&(st.delete(t),t.i(e))}function dt(t,e,n,o){if(t&&t.o){if(st.has(t))return;st.add(t),at.c.push((()=>{st.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}}const ut="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function pt(t){t&&t.c()}function ht(t,e,n){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=t.$$;o&&o.m(e,n),tt((()=>{const e=i.map(f).filter(b);s?s.push(...e):v(e),t.$$.on_mount=[]})),a.forEach(tt)}function mt(t,e){const n=t.$$;null!==n.fragment&&(v(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function gt(t,e){-1===t.$$.dirty[0]&&(q.push(t),Y||(Y=!0,Q.then(ot)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function kt(t,e,n,o,i,s,a=[-1]){const l=G;K(t);const r=e.props||{},c=t.$$={fragment:null,ctx:null,props:s,update:k,not_equal:i,bound:_(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:[]),callbacks:_(),dirty:a,skip_bound:!1};let d=!1;if(c.ctx=n?n(t,r,((e,n,...o)=>{const s=o.length?o[0]:n;return c.ctx&&i(c.ctx[e],c.ctx[e]=s)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](s),d&&gt(t,e)),n})):[],c.update(),d=!0,v(c.before_update),c.fragment=!!o&&o(c.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);c.fragment&&c.fragment.l(t),t.forEach(T)}else c.fragment&&c.fragment.c();e.intro&&ct(t.$$.fragment),ht(t,e.target,e.anchor),ot()}K(l)}class ft{$destroy(){mt(this,1),this.$destroy=k}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function _t(t){let e,n,o,i,s,a,l,r;const c=t[15].default,d=y(c,t,t[14],null);return{c(){e=A("div"),n=A("div"),o=A("iframe"),a=M(),l=A("div"),d&&d.c(),o.src!==(i=t[2])&&D(o,"src",i),D(o,"data-test",s="ipm-elm-"+t[0]),D(o,"title",t[1]),D(n,"class","sve_ipm"),O(n,"display",t[4]?"block":"none"),D(l,"data-slot",""),O(l,"display",t[4]?"none":"block"),D(e,"class","svelte wrap")},m(i,s){N(i,e,s),S(e,n),S(n,o),t[16](o),S(e,a),S(e,l),d&&d.m(l,null),r=!0},p(t,e){(!r||4&e[0]&&o.src!==(i=t[2]))&&D(o,"src",i),(!r||1&e[0]&&s!==(s="ipm-elm-"+t[0]))&&D(o,"data-test",s),(!r||2&e[0])&&D(o,"title",t[1]),(!r||16&e[0])&&O(n,"display",t[4]?"block":"none"),d&&d.p&&16384&e[0]&&P(d,c,t,t[14],e,null,null),(!r||16&e[0])&&O(l,"display",t[4]?"none":"block")},i(t){r||(ct(d,t),r=!0)},o(t){dt(d,t),r=!1},d(n){n&&T(e),t[16](null),d&&d.d(n)}}}c();const vt=7e3;function bt(t,e){if(!t)return t;try{const n=new URL(t);return Object.entries(e).forEach((([t,e])=>n.searchParams.set(t,encodeURIComponent(e)))),n.href}catch(n){return console.log(n),t}}function wt(i,l,r){let c;$(i,o,(t=>r(13,c=t)));let{$$slots:d={},$$scope:p}=l,{id:h}=l,{opmUrl:m}=l,{title:g}=l,{params:k={}}=l,{condition:f=!0}=l,{timeout:_=vt}=l,{route:v}=l;const b=u.createLogger("component.ipm"),w=V(),y="true"===localStorage.getItem("automationDisableIpm"),x=[];let P,I,C,S,N,T,E,A,B,M=null;function z(){!C&&M&&e("opm.message_shown",{message_id:M})}function L(t){b.debug({isIframe:P,ipmUrl:I,event:t,id:h,impId:t&&t.data?t.data.elmId:null}),P&&t&&t.data&&("windowLoaded"!==t.data.action||""===t.data.elmId||t.data.elmId!=h&&t.data.placement!=h||(b.info("ipm content loaded"),j(),D(Math.round((performance.now()-T)/1e3)),h==parseInt(h)&&e("app.ipm_tracking.track",{elem_id:parseInt(h),response_time:-1}),w("success",h)))}function D(t){s.getValueCached("avdef://config/GuiCache/TrackIpmLoadTime",!0).then((e=>{var o;e&&n.timing("IPM loading",!1===t?66666:t,h,!1===(o=t)?"timeout":o>=6e4?"> 60s":o>=3e4?"30-60 s":o>=15e3?"15-30 s":o>=1e4?"10-15 s":o>=5e3?"5-10 s":o>=4e3?"4-5 s":o>=3e3?"3-4 s":o>=2e3?"2-3 s":o>=1e3?"1-2 s":"0-1 s")}))}function j(){E&&clearTimeout(E)}function H(){const t=null!=h?S[h]:null;return t?Promise.resolve(t):m?Promise.resolve(m):!h&&0!==h||"object"==typeof h?Promise.resolve("about:blank"):"string"==typeof h?function(){if(Number.isInteger(parseInt(h)))return console.error("IPM Component tried to load OPM component with an integer in a string:",h),a.getUrl(parseInt(h),k);return e("av.opm.GetUrlForPlacement",{id:h}).then((t=>t?(M=t.msg_id||null,bt(t.url||t,k)):(console.warn("OPM URL empty, for ID:",h),""))).catch((t=>(console.error("Ipm component, av.opm.GetUrlForPlacement failed:",t),U("opmCallFailed"),"")))}():Number.isInteger(h)?a.getUrl(parseInt(h),k):(console.error("IPM component could not recognize id:",h,"of type:",typeof h),U("wrongParam"),Promise.resolve(""))}function O(t=null){b.info("updateFrame",{isIframe:P,ipmUrl:I}),r(11,C=null),t&&t.url&&M!=t.msg_id&&(z(),M=t.msg_id),P&&(j(),(t&&t.url?Promise.resolve(t.url):H()).then((t=>{t=bt(t,k),T=performance.now(),b.info("loading ipm url: "+t),I!==t&&(E=setTimeout((()=>{D(!1),U("timeout")}),_),r(2,I=t))})))}function U(t,e=0){r(11,C=t),console.warn("Ipm component error:",C,"for id:",h),w("error",{message:t,code:e,id:h})}return W((()=>{O()})),R((()=>{j(),x.forEach((t=>t())),window.removeEventListener("message",L),window.removeEventListener("beforeunload",z)})),function(){let t;try{t=JSON.parse(localStorage.getItem("IPM_OVERRIDE")),S=t||{},t&&b.info("using override",t)}catch{b.error("Failed to parse localStorage.IPM_OVERRIDE"),S={}}}(),window.addEventListener("beforeunload",z,!1),window.addEventListener("message",L,!1),x.push(t.on("ASW_NOTIF_RELOAD_IPM",(()=>O())),t.on("ipm.reload."+h,(t=>O(t)))),i.$$set=t=>{"id"in t&&r(0,h=t.id),"opmUrl"in t&&r(5,m=t.opmUrl),"title"in t&&r(1,g=t.title),"params"in t&&r(6,k=t.params),"condition"in t&&r(7,f=t.condition),"timeout"in t&&r(8,_=t.timeout),"route"in t&&r(9,v=t.route),"$$scope"in t&&r(14,p=t.$$scope)},i.$$.update=()=>{12288&i.$$.dirty[0]&&null!=c&&(c?!1===A&&(b.debug("went online"),O()):(b.debug("went offline"),j(),U("offline")),r(12,A=c)),2176&i.$$.dirty[0]&&r(10,P=!C&&!y&&f),1544&i.$$.dirty[0]&&null!=v&&P&&(b.debug("change of route: "+v),N.contentWindow&&N.contentWindow.postMessage&&N.contentWindow.postMessage("route:"+v,"*")),1028&i.$$.dirty[0]&&r(4,B=P&&I)},[h,g,I,N,B,m,k,f,_,v,P,C,A,c,p,d,function(t){X[t?"unshift":"push"]((()=>{N=t,r(3,N)}))}]}class $t extends ft{constructor(t){super(),kt(this,t,wt,_t,w,{id:0,opmUrl:5,title:1,params:6,condition:7,timeout:8,route:9},[-1,-1])}}const{window:yt}=ut;function xt(t,e,n){const o=t.slice();return o[45]=e[n],o}function Pt(t,e,n){const o=t.slice();return o[48]=e[n],o[50]=n,o}function It(t){let e,n,o,i,s,a,l,r;return{c(){e=A("div"),n=A("kin-icon"),s=M(),a=A("kin-icon"),j(n,"class",o="sve_toaster__icon -"+t[0].icon.cssCls),j(n,"name",i=t[0].icon.name),j(n,"size","40"),j(a,"name",l=t[0].icon.bgName),j(a,"size","80"),j(a,"class",r="sve_toaster__icon__bg -"+t[0].icon.bgName+" "+(t[0].icon.color?"color-"+t[0].icon.color:"")+" -text"),D(e,"class","sve_toaster__icon__container")},m(t,o){N(t,e,o),S(e,n),S(e,s),S(e,a)},p(t,e){1&e[0]&&o!==(o="sve_toaster__icon -"+t[0].icon.cssCls)&&j(n,"class",o),1&e[0]&&i!==(i=t[0].icon.name)&&j(n,"name",i),1&e[0]&&l!==(l=t[0].icon.bgName)&&j(a,"name",l),1&e[0]&&r!==(r="sve_toaster__icon__bg -"+t[0].icon.bgName+" "+(t[0].icon.color?"color-"+t[0].icon.color:"")+" -text")&&j(a,"class",r)},d(t){t&&T(e)}}}function Ct(t){let e,n=t[0].title+"";return{c(){e=A("h2"),D(e,"class","sve_toaster__title h2")},m(t,o){N(t,e,o),e.innerHTML=n},p(t,o){1&o[0]&&n!==(n=t[0].title+"")&&(e.innerHTML=n)},d(t){t&&T(e)}}}function St(t){let e,n=t[0].text+"";return{c(){e=A("p"),D(e,"class","sve_toaster__text p")},m(t,o){N(t,e,o),e.innerHTML=n},p(t,o){1&o[0]&&n!==(n=t[0].text+"")&&(e.innerHTML=n)},d(t){t&&T(e)}}}function Nt(t){let e,n,o;return n=new $t({props:{params:t[0].ipmParams,id:t[0].ipmAction}}),n.$on("error",t[31]),{c(){e=A("div"),pt(n.$$.fragment),D(e,"class","sve_toaster__ipmaction")},m(t,i){N(t,e,i),ht(n,e,null),o=!0},p(t,e){const o={};1&e[0]&&(o.params=t[0].ipmParams),1&e[0]&&(o.id=t[0].ipmAction),n.$set(o)},i(t){o||(ct(n.$$.fragment,t),o=!0)},o(t){dt(n.$$.fragment,t),o=!1},d(t){t&&T(e),mt(n)}}}function Tt(t){let e,n,o,i,s=t[0].actionText&&Et(t),a=!t[4]&&t[0].actions&&t[0].actions.length&&At(t),l=t[4]&&Ht(t),r=t[0].dontShowAgain&&Ut(t);return{c(){s&&s.c(),e=M(),a&&a.c(),n=M(),l&&l.c(),o=M(),r&&r.c(),i=z()},m(t,c){s&&s.m(t,c),N(t,e,c),a&&a.m(t,c),N(t,n,c),l&&l.m(t,c),N(t,o,c),r&&r.m(t,c),N(t,i,c)},p(t,c){t[0].actionText?s?s.p(t,c):(s=Et(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),!t[4]&&t[0].actions&&t[0].actions.length?a?a.p(t,c):(a=At(t),a.c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null),t[4]?l?l.p(t,c):(l=Ht(t),l.c(),l.m(o.parentNode,o)):l&&(l.d(1),l=null),t[0].dontShowAgain?r?r.p(t,c):(r=Ut(t),r.c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},i:k,o:k,d(t){s&&s.d(t),t&&T(e),a&&a.d(t),t&&T(n),l&&l.d(t),t&&T(o),r&&r.d(t),t&&T(i)}}}function Et(t){let e,n,o=t[0].actionText+"";return{c(){e=A("p"),n=B(o),D(e,"class","sve_toaster__text p -small -secondary")},m(t,o){N(t,e,o),S(e,n)},p(t,e){1&e[0]&&o!==(o=t[0].actionText+"")&&H(n,o)},d(t){t&&T(e)}}}function At(t){let e,n,o,i,s,a,l,r,c,d=t[0].actions[0].label+"",u=null!=t[8]&&Bt(t),p=1===t[0].actions.length&&t[12]>1&&t[13]&&Mt(t);function h(t,e){return 2!==t[0].actions.length||t[0].hideSecondAction?t[0].actions.length>2||t[0].hideSecondAction&&t[0].actions.length>1?zt:void 0:Lt}let m=h(t),g=m&&m(t);return{c(){e=A("div"),n=A("kin-button"),o=B(d),i=M(),u&&u.c(),a=M(),p&&p.c(),l=M(),g&&g.c(),j(n,"processing",t[7]),j(n,"data-test",s="dd_primary_"+t[0].actions[0].labelTest||"dd_primary_btn"),D(e,"class","sve_toaster__btns")},m(s,d){N(s,e,d),S(e,n),S(n,o),S(n,i),u&&u.m(n,null),S(e,a),p&&p.m(e,null),S(e,l),g&&g.m(e,null),r||(c=L(n,"click",t[27]),r=!0)},p(t,i){1&i[0]&&d!==(d=t[0].actions[0].label+"")&&H(o,d),null!=t[8]?u?u.p(t,i):(u=Bt(t),u.c(),u.m(n,null)):u&&(u.d(1),u=null),128&i[0]&&j(n,"processing",t[7]),1&i[0]&&s!==(s="dd_primary_"+t[0].actions[0].labelTest||"dd_primary_btn")&&j(n,"data-test",s),1===t[0].actions.length&&t[12]>1&&t[13]?p?p.p(t,i):(p=Mt(t),p.c(),p.m(e,l)):p&&(p.d(1),p=null),m===(m=h(t))&&g?g.p(t,i):(g&&g.d(1),g=m&&m(t),g&&(g.c(),g.m(e,null)))},d(t){t&&T(e),u&&u.d(),p&&p.d(),g&&g.d(),r=!1,c()}}}function Bt(t){let e,n,o;return{c(){e=B("("),n=B(t[8]),o=B(")")},m(t,i){N(t,e,i),N(t,n,i),N(t,o,i)},p(t,e){256&e[0]&&H(n,t[8])},d(t){t&&T(e),t&&T(n),t&&T(o)}}}function Mt(t){let e,n,o,i,s,a,l,r,c=d("detection.action.closeAll")+"";return{c(){e=A("kin-button"),n=B(c),o=B("\n\t\t\t\t\t\t\t("),i=B(t[12]),s=B(")"),j(e,"class","g-margin-left--10"),j(e,"processing",t[7]),j(e,"data-test",a="closeAll"),j(e,"type","secondary")},m(a,c){N(a,e,c),S(e,n),S(e,o),S(e,i),S(e,s),l||(r=L(e,"click",t[17]),l=!0)},p(t,n){4096&n[0]&&H(i,t[12]),128&n[0]&&j(e,"processing",t[7])},d(t){t&&T(e),l=!1,r()}}}function zt(t){let e,n,o,i,s,a,l,r,c,u=d("global.moreOptions")+"",p=t[0].actions,h=[];for(let d=0;d<p.length;d+=1)h[d]=Dt(Pt(t,p,d));return{c(){e=A("kin-dropdown"),n=A("div"),o=A("kin-button"),i=B(u),s=M(),a=A("kin-icon"),r=M(),c=A("div");for(let t=0;t<h.length;t+=1)h[t].c();j(a,"name","icon-s-controls-arrow-down"),j(a,"size","16"),j(o,"type","secondary"),j(o,"data-test",l="dd_dropdown_btn"),D(n,"slot","dropdown-activator")},m(t,l){N(t,e,l),S(e,n),S(n,o),S(o,i),S(o,s),S(o,a),S(e,r),S(e,c);for(let e=0;e<h.length;e+=1)h[e].m(c,null)},p(t,e){if(2097153&e[0]){let n;for(p=t[0].actions,n=0;n<p.length;n+=1){const o=Pt(t,p,n);h[n]?h[n].p(o,e):(h[n]=Dt(o),h[n].c(),h[n].m(c,null))}for(;n<h.length;n+=1)h[n].d(1);h.length=p.length}},d(t){t&&T(e),E(h,t)}}}function Lt(t){let e,n,o,i,s,a,l=t[0].actions[1].label+"",r=null!=t[8]&&jt(t);return{c(){e=A("kin-button"),n=B(l),o=M(),r&&r.c(),j(e,"class","g-margin-left--10"),j(e,"processing",t[7]),j(e,"data-test",i="dd_secondary_"+t[0].actions[1].labelTest||"dd_secondary_btn"),j(e,"type","secondary")},m(i,l){N(i,e,l),S(e,n),S(e,o),r&&r.m(e,null),s||(a=L(e,"click",t[28]),s=!0)},p(t,o){1&o[0]&&l!==(l=t[0].actions[1].label+"")&&H(n,l),null!=t[8]?r?r.p(t,o):(r=jt(t),r.c(),r.m(e,null)):r&&(r.d(1),r=null),128&o[0]&&j(e,"processing",t[7]),1&o[0]&&i!==(i="dd_secondary_"+t[0].actions[1].labelTest||"dd_secondary_btn")&&j(e,"data-test",i)},d(t){t&&T(e),r&&r.d(),s=!1,a()}}}function Dt(t){let e,n=0!==t[50]&&function(t){let e,n,o,i,s,a,l=t[48].label+"";function r(){return t[29](t[50])}return{c(){e=A("kin-dropdown-item"),n=B(l),o=M(),j(e,"data-test",i="dd_dropdown_"+t[48].labelTest||"dd_dropdown_"+t[50])},m(t,i){N(t,e,i),S(e,n),S(e,o),s||(a=L(e,"click",r),s=!0)},p(o,s){t=o,1&s[0]&&l!==(l=t[48].label+"")&&H(n,l),1&s[0]&&i!==(i="dd_dropdown_"+t[48].labelTest||"dd_dropdown_"+t[50])&&j(e,"data-test",i)},d(t){t&&T(e),s=!1,a()}}}(t);return{c(){n&&n.c(),e=z()},m(t,o){n&&n.m(t,o),N(t,e,o)},p(t,e){0!==t[50]&&n.p(t,e)},d(t){n&&n.d(t),t&&T(e)}}}function jt(t){let e,n,o;return{c(){e=B("("),n=B(t[8]),o=B(")")},m(t,i){N(t,e,i),N(t,n,i),N(t,o,i)},p(t,e){256&e[0]&&H(n,t[8])},d(t){t&&T(e),t&&T(n),t&&T(o)}}}function Ht(t){let e,n,o,i=t[5]&&t[5].text&&Ot(t);return{c(){e=A("div"),n=A("kin-progress"),o=M(),i&&i.c(),j(n,"percentage","unknown"),D(e,"class","sve_toaster__progress")},m(t,s){N(t,e,s),S(e,n),S(e,o),i&&i.m(e,null)},p(t,n){t[5]&&t[5].text?i?i.p(t,n):(i=Ot(t),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(t){t&&T(e),i&&i.d()}}}function Ot(t){let e,n,o=t[5].text+"";return{c(){e=A("p"),n=B(o),D(e,"class","g-margin-top--10 p -small -secondary")},m(t,o){N(t,e,o),S(e,n)},p(t,e){32&e[0]&&o!==(o=t[5].text+"")&&H(n,o)},d(t){t&&T(e)}}}function Ut(t){let e,n,o,i,s,a,l,r=t[0].dontShowAgain.label+"";return{c(){e=A("p"),n=A("input"),o=M(),i=A("label"),s=B(r),D(n,"type","checkbox"),D(n,"id","detection_dontShowAgain"),D(n,"class","checkbox"),D(i,"for","detection_dontShowAgain"),D(i,"class","g-margin-left--5"),D(e,"class","sve_toaster__text p  g-margin-top--10")},m(r,c){N(r,e,c),S(e,n),S(e,o),S(e,i),S(i,s),a||(l=L(n,"click",t[30]),a=!0)},p(t,e){1&e[0]&&r!==(r=t[0].dontShowAgain.label+"")&&H(s,r)},d(t){t&&T(e),a=!1,l()}}}function Gt(t){let e,n,o,i,s;function a(t,e){return t[2]?Ft:Kt}let l=a(t),r=l(t),c=t[2]&&Wt(t);return{c(){e=A("button"),r.c(),n=M(),c&&c.c(),o=z(),D(e,"class","span -small -secondary g-cursor--pointer"),D(e,"data-test","btn_toggleDetails")},m(a,l){N(a,e,l),r.m(e,null),N(a,n,l),c&&c.m(a,l),N(a,o,l),i||(s=L(e,"click",t[18]),i=!0)},p(t,n){l===(l=a(t))&&r?r.p(t,n):(r.d(1),r=l(t),r&&(r.c(),r.m(e,null))),t[2]?c?c.p(t,n):(c=Wt(t),c.c(),c.m(o.parentNode,o)):c&&(c.d(1),c=null)},d(t){t&&T(e),r.d(),t&&T(n),c&&c.d(t),t&&T(o),i=!1,s()}}}function Kt(t){let e,n,o,i=d("global.showDetails")+"";return{c(){e=B(i),n=M(),o=A("kin-icon"),j(o,"name","icon-s-controls-arrow-down"),j(o,"size","16")},m(t,i){N(t,e,i),N(t,n,i),N(t,o,i)},p:k,d(t){t&&T(e),t&&T(n),t&&T(o)}}}function Ft(t){let e,n,o,i=d("global.hideDetails")+"";return{c(){e=B(i),n=M(),o=A("kin-icon"),j(o,"name","icon-s-controls-arrow-up"),j(o,"size","16")},m(t,i){N(t,e,i),N(t,n,i),N(t,o,i)},p:k,d(t){t&&T(e),t&&T(n),t&&T(o)}}}function Wt(t){let e,n,o,i,s=t[0].details,a=[];for(let c=0;c<s.length;c+=1)a[c]=Xt(xt(t,s,c));let l=t[5]&&Jt(t),r=t[6]&&Qt(t);return{c(){e=A("div"),n=A("dl");for(let t=0;t<a.length;t+=1)a[t].c();o=z(),l&&l.c(),i=z(),r&&r.c(),D(n,"class","desclist -short"),D(e,"class","sve_toaster__details")},m(t,s){N(t,e,s),S(e,n);for(let e=0;e<a.length;e+=1)a[e].m(n,null);S(n,o),l&&l.m(n,null),S(n,i),r&&r.m(n,null)},p(t,e){if(1&e[0]){let i;for(s=t[0].details,i=0;i<s.length;i+=1){const l=xt(t,s,i);a[i]?a[i].p(l,e):(a[i]=Xt(l),a[i].c(),a[i].m(n,o))}for(;i<a.length;i+=1)a[i].d(1);a.length=s.length}t[5]?l?l.p(t,e):(l=Jt(t),l.c(),l.m(n,i)):l&&(l.d(1),l=null),t[6]?r?r.p(t,e):(r=Qt(t),r.c(),r.m(n,null)):r&&(r.d(1),r=null)},d(t){t&&T(e),E(a,t),l&&l.d(),r&&r.d()}}}function Rt(t){let e,n,o,i=t[45].title+"";function s(t,e){return"scoreMeter"===t[45].type&&4>t[45].value?qt:Vt}let a=s(t),l=a(t);return{c(){e=A("dt"),n=B(i),l.c(),o=z()},m(t,i){N(t,e,i),S(e,n),l.m(t,i),N(t,o,i)},p(t,e){1&e[0]&&i!==(i=t[45].title+"")&&H(n,i),a===(a=s(t))&&l?l.p(t,e):(l.d(1),l=a(t),l&&(l.c(),l.m(o.parentNode,o)))},d(t){t&&T(e),l.d(t),t&&T(o)}}}function Vt(t){let e,n,o,i=t[45].value+"";return{c(){e=A("dd"),n=B(i),D(e,"data-test",o=t[45].testValue)},m(t,o){N(t,e,o),S(e,n)},p(t,s){1&s[0]&&i!==(i=t[45].value+"")&&H(n,i),1&s[0]&&o!==(o=t[45].testValue)&&D(e,"data-test",o)},d(t){t&&T(e)}}}function qt(t){let e,n,o,i,s,a,l,r,c;return{c(){e=A("dd"),n=A("div"),o=A("div"),i=M(),s=A("div"),a=M(),l=A("div"),c=M(),D(n,"class",r="scoremeter -val-"+t[45].value)},m(t,r){N(t,e,r),S(e,n),S(n,o),S(n,i),S(n,s),S(n,a),S(n,l),S(e,c)},p(t,e){1&e[0]&&r!==(r="scoremeter -val-"+t[45].value)&&D(n,"class",r)},d(t){t&&T(e)}}}function Xt(t){let e,n=t[45].value&&Rt(t);return{c(){n&&n.c(),e=z()},m(t,o){n&&n.m(t,o),N(t,e,o)},p(t,o){t[45].value?n?n.p(t,o):(n=Rt(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&T(e)}}}function Jt(t){let e,n,o,i,s,a=t[5].text+"",l=t[5].action&&Zt(t);return{c(){e=A("dt"),e.textContent=`${d("global.status")}`,n=A("dd"),o=B(a),i=M(),l&&l.c(),s=M(),D(n,"data-test","status")},m(t,a){N(t,e,a),N(t,n,a),S(n,o),S(n,i),l&&l.m(n,null),S(n,s)},p(t,e){32&e[0]&&a!==(a=t[5].text+"")&&H(o,a),t[5].action?l?l.p(t,e):(l=Zt(t),l.c(),l.m(n,s)):l&&(l.d(1),l=null)},d(t){t&&T(e),t&&T(n),l&&l.d()}}}function Zt(t){let e,n,o,i,s,a,l=t[5].actionLabel+"";return{c(){e=B("| "),n=A("button"),o=B(l),D(n,"class","a"),D(n,"data-test",i="scn_"+t[5].actionLabelGa)},m(i,l){N(i,e,l),N(i,n,l),S(n,o),s||(a=L(n,"click",t[19]),s=!0)},p(t,e){32&e[0]&&l!==(l=t[5].actionLabel+"")&&H(o,l),32&e[0]&&i!==(i="scn_"+t[5].actionLabelGa)&&D(n,"data-test",i)},d(t){t&&T(e),t&&T(n),s=!1,a()}}}function Qt(t){let e,n,o,i,s,a,l,r=t[6].text+"";return{c(){e=A("dt"),e.textContent=`${d("global.option")}`,n=A("dd"),o=A("button"),i=B(r),D(o,"class","a"),D(o,"data-test",s="scn_"+t[6].actionLabelGa),D(n,"data-test","option")},m(s,r){N(s,e,r),N(s,n,r),S(n,o),S(o,i),a||(l=L(o,"click",t[20]),a=!0)},p(t,e){64&e[0]&&r!==(r=t[6].text+"")&&H(i,r),64&e[0]&&s!==(s="scn_"+t[6].actionLabelGa)&&D(o,"data-test",s)},d(t){t&&T(e),t&&T(n),a=!1,l()}}}function Yt(t){let e,n,o,i,s=t[10]&&te(t),a=t[12]>1&&ee(t);return{c(){e=A("div"),n=A("div"),s&&s.c(),o=M(),i=A("div"),a&&a.c(),D(e,"class","sve_toaster__footer")},m(t,l){N(t,e,l),S(e,n),s&&s.m(n,null),S(e,o),S(e,i),a&&a.m(i,null)},p(t,e){t[10]?s?s.p(t,e):(s=te(t),s.c(),s.m(n,null)):s&&(s.d(1),s=null),t[12]>1?a?a.p(t,e):(a=ee(t),a.c(),a.m(i,null)):a&&(a.d(1),a=null)},d(t){t&&T(e),s&&s.d(),a&&a.d()}}}function te(t){let e,n,o,i,s,a,l,r,c,u,p;return{c(){e=A("span"),n=B(t[10]),o=M(),i=A("kin-tooltip"),s=A("span"),s.innerHTML='<kin-icon name="icon-m-action-info" size="20"></kin-icon>',a=M(),l=A("div"),r=A("p"),r.textContent=`${d("detection.alertid.title")}`,c=M(),u=A("p"),u.textContent=`${d("detection.alertid.desc")}`,p=A("p"),D(e,"class","span -small -secondary"),D(s,"slot","tooltip-activator"),D(r,"class","p strong"),D(u,"class","p -secondary -small"),D(l,"slot","tooltip")},m(t,d){N(t,e,d),S(e,n),N(t,o,d),N(t,i,d),S(i,s),S(i,a),S(i,l),S(l,r),S(l,c),S(l,u),S(l,p)},p(t,e){1024&e[0]&&H(n,t[10])},d(t){t&&T(e),t&&T(o),t&&T(i)}}}function ee(t){let e,n,o,i,s,a,l,r,c,u,p,h,m,g=t[11]+1+"";return{c(){e=A("span"),e.textContent=`${d("detection.more.detections")}`,n=M(),o=A("kin-button"),i=A("kin-icon"),s=M(),a=B(g),l=B("\n\t\t\t\t\t/\n\t\t\t\t\t"),r=A("kin-button"),c=B(t[12]),u=M(),p=A("kin-icon"),D(e,"class","span -small -secondary"),j(i,"name","icon-s-controls-arrow-left"),j(i,"size","16"),j(i,"rtlflip","true"),j(o,"type","blank"),j(o,"size","small"),j(o,"class","sve_toaster__paginator g-margin-left--5"),j(p,"name","icon-s-controls-arrow-right"),j(p,"size","16"),j(p,"rtlflip","true"),j(r,"type","blank"),j(r,"size","small"),j(r,"class","sve_toaster__paginator")},m(d,g){N(d,e,g),N(d,n,g),N(d,o,g),S(o,i),S(o,s),S(o,a),N(d,l,g),N(d,r,g),S(r,c),S(r,u),S(r,p),h||(m=[L(o,"click",t[15]),L(r,"click",t[16])],h=!0)},p(t,e){2048&e[0]&&g!==(g=t[11]+1+"")&&H(a,g),4096&e[0]&&H(c,t[12])},d(t){t&&T(e),t&&T(n),t&&T(o),t&&T(l),t&&T(r),h=!1,v(m)}}}function ne(t){let e,n,o,i,s,a,l,r,c,u,p,h,m,g,k,f,_,b,w,$,x,I,E=t[0].icon&&It(t),B=t[0].title&&Ct(t);const z=t[26].default,j=y(z,t,t[25],null);let H=t[0].text&&St(t);const G=[Tt,Nt],K=[];function F(t,e){return null==t[0].ipmAction||t[3]?0:1}g=F(t),k=K[g]=G[g](t);let W=t[0].details&&t[0].details.length&&Gt(t),R=(t[10]||t[12]>1)&&Yt(t);return{c(){e=A("div"),n=A("div"),o=A("h1"),o.innerHTML='<span class="logo -white -width-70"></span>',i=M(),s=A("div"),a=A("button"),r=M(),c=A("div"),E&&E.c(),u=M(),B&&B.c(),p=M(),j&&j.c(),h=M(),H&&H.c(),m=M(),k.c(),f=M(),W&&W.c(),b=M(),R&&R.c(),D(o,"class","nui_logo"),D(a,"class","nui_controls__item -close nui_caption_client g-cursor--pointer"),D(a,"title",l=d("global.closeModalWindow")),D(s,"class","nui_controls"),D(n,"class","nui_titlebar -toaster nui_caption"),D(c,"class",_="sve_toaster__main "+(t[0].color?"-"+t[0].color:"")),U(c,"-auto-v-scroll",t[9]),D(e,"class","sve_toaster -detection"),O(e,"width",t[1]+"px")},m(l,d){N(l,e,d),S(e,n),S(n,o),S(n,i),S(n,s),S(s,a),S(e,r),S(e,c),E&&E.m(c,null),S(c,u),B&&B.m(c,null),S(c,p),j&&j.m(c,null),S(c,h),H&&H.m(c,null),S(c,m),K[g].m(c,null),S(c,f),W&&W.m(c,null),S(e,b),R&&R.m(e,null),$=!0,x||(I=[L(yt,"keydown",t[14]),L(a,"click",t[17]),C(w=t[22].call(null,e))],x=!0)},p(t,n){t[0].icon?E?E.p(t,n):(E=It(t),E.c(),E.m(c,u)):E&&(E.d(1),E=null),t[0].title?B?B.p(t,n):(B=Ct(t),B.c(),B.m(c,p)):B&&(B.d(1),B=null),j&&j.p&&33554432&n[0]&&P(j,z,t,t[25],n,null,null),t[0].text?H?H.p(t,n):(H=St(t),H.c(),H.m(c,m)):H&&(H.d(1),H=null);let o=g;g=F(t),g===o?K[g].p(t,n):(lt(),dt(K[o],1,1,(()=>{K[o]=null})),rt(),k=K[g],k?k.p(t,n):(k=K[g]=G[g](t),k.c()),ct(k,1),k.m(c,f)),t[0].details&&t[0].details.length?W?W.p(t,n):(W=Gt(t),W.c(),W.m(c,null)):W&&(W.d(1),W=null),(!$||1&n[0]&&_!==(_="sve_toaster__main "+(t[0].color?"-"+t[0].color:"")))&&D(c,"class",_),513&n[0]&&U(c,"-auto-v-scroll",t[9]),t[10]||t[12]>1?R?R.p(t,n):(R=Yt(t),R.c(),R.m(e,null)):R&&(R.d(1),R=null),(!$||2&n[0])&&O(e,"width",t[1]+"px")},i(t){$||(ct(j,t),ct(k),$=!0)},o(t){dt(j,t),dt(k),$=!1},d(t){t&&T(e),E&&E.d(),B&&B.d(),j&&j.d(t),H&&H.d(),K[g].d(),W&&W.d(),R&&R.d(),x=!1,v(I)}}}function oe(t,e,o){let{$$slots:s={},$$scope:a}=e;const r=V();let c,d,u,p,{windowWidth:h=600}=e,{config:m=null}=e,{windowClose:g=null}=e,k=!1,f=null,_=null,v=!1,b=!1,w=!1,$=!1,y=!1;function x(t=!1){const e=m&&m.closeResponse;g?g(e):(r("close",e),(t||B<=1)&&i.close())}function P(t){I(m.actions[t],t)}function I(t,e){const i=t.action&&t.action(),s=Date.now();if(_&&_(),null==i)C(t.nextConfig,s,t.minDuration);else{const n=1===e&&2===m.actions.length&&!m.hideSecondAction;t.status||0!==e&&!n?(o(5,d=t.status),o(6,u=t.option),o(4,b=!0)):o(7,w=!0),i.then((e=>{C(e,s,t.minDuration)})).catch((e=>{C(e,s,t.minDuration)}))}t.labelGa&&n.event("DetectionDialog","Click",t.labelGa)}function C(t,e,n){const i=Math.max(n-(Date.now()-e),0);if(f&&f(),i>0){const e=window.setTimeout((()=>{!t&&B>0?x():o(0,m=t),f&&f()}),i);f=()=>{window.clearTimeout(e),f=null}}else!t&&B>0?x():o(0,m=t)}function S(t){t?(o(4,b=m.progress),o(5,d=m.status),o(6,u=m.option),o(7,w=!1),function(){if(_&&_(),m.actions&&m.actions.length&&m.actions[0].countdown){o(8,p=m.actions[0].countdown);const t=window.setInterval((function(){p?o(8,p--,p):I(m.actions[0],0)}),1e3);_=function(){window.clearInterval(t),o(8,p=null),_=null}}}(),m.icon?(c="object"!=typeof m.icon?{name:m.icon}:Object.assign({},m.icon),c.name||(c.name="red"===m.color?"icon-s-controls-close":"icon-s-status-check"),c.bgName=c.bgName||"circle",!c.color&&m.color&&(c.color="red"===m.color?"critical":"ok")):c=null):x()}function N(t){y&&(y=!1,o(9,$=t.scrollHeight>window.screen.availHeight)),i.resize(h,Math.min(t.scrollHeight,window.screen.availHeight))}W((()=>{l.play("threat")})),R((()=>{f&&f(),_&&_()}));let T,E,A,B,M;return t.$$set=t=>{"windowWidth"in t&&o(1,h=t.windowWidth),"config"in t&&o(0,m=t.config),"windowClose"in t&&o(23,g=t.windowClose),"$$scope"in t&&o(25,a=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty[0]&&S(m),1&t.$$.dirty[0]&&function(t){const e=i.getUrlParams();null!=t&&n.view(e.module+"_"+e.view+(t?"_"+t:""))}(m&&m.trackerTitle),1&t.$$.dirty[0]&&o(24,T=m&&m.detectionInfo||{}),16777216&t.$$.dirty[0]&&o(10,E=T.id||""),16777216&t.$$.dirty[0]&&o(11,A=T.index||0),16777216&t.$$.dirty[0]&&o(12,B=T.total||0),16777216&t.$$.dirty[0]&&o(13,M=T.showCloseAllBtn||!1)},[m,h,k,v,b,d,u,w,p,$,E,A,B,M,function(t){const e=m.actions;e&&e.length&&e.some(((e,n)=>{if(e.shortcut&&e.shortcut.code===t.code&&!!e.shortcut.ctrlKey===t.ctrlKey&&!!e.shortcut.shiftKey===t.shiftKey&&!!e.shortcut.altKey===t.altKey&&!!e.shortcut.metaKey===t.metaKey)return I(e,n),!0}))},function(){r("prev")},function(){r("next")},function(){!function(t=!1){n.event("DetectionDialog","Close"),r("ignore"),x(t)}(!0)},function(){o(2,k=!k),y=!0},function(){const t=d.actionLabelGa,e=d.action;t&&n.event("DetectionDialog","Click",t),"function"==typeof e?e():console.error("[SvelteComponents] {DetectionDialog} StatusAction is not function")},function(){const t=u.actionLabelGa,e=u.action;t&&n.event("DetectionDialog","Click",t),"function"==typeof e?e():console.error("[SvelteComponents] {DetectionDialog} OptionAction is not function")},P,function(t){N(t);const e=new MutationObserver(N.bind(this,t));return e.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),{destroy:e.disconnect.bind(e)}},g,T,a,s,()=>P(0),()=>P(1),t=>P(t),t=>m.dontShowAgain.action(t.target.checked),()=>o(3,v=!0)]}class ie extends ft{constructor(t){super(),kt(this,t,oe,ne,w,{windowWidth:1,config:0,windowClose:23},[-1,-1])}}const{document:se}=ut;const ae=t=>({}),le=t=>({}),re=t=>({}),ce=t=>({}),de=t=>({}),ue=t=>({}),pe=t=>({}),he=t=>({}),me=t=>({}),ge=t=>({}),ke=t=>({}),fe=t=>({});function _e(t){let e,n,o,i,s;const a=[be,ve],l=[];function r(t,e){return""!=t[0]?0:1}return e=r(t),n=l[e]=a[e](t),{c(){n.c(),o=M(),i=A("kin-loading"),j(i,"fullscreen","true"),j(i,"class","svelte-kh5tai")},m(t,n){l[e].m(t,n),N(t,o,n),N(t,i,n),s=!0},p(t,i){let s=e;e=r(t),e===s?l[e].p(t,i):(lt(),dt(l[s],1,1,(()=>{l[s]=null})),rt(),n=l[e],n?n.p(t,i):(n=l[e]=a[e](t),n.c()),ct(n,1),n.m(o.parentNode,o))},i(t){s||(ct(n),s=!0)},o(t){dt(n),s=!1},d(t){l[e].d(t),t&&T(o),t&&T(i)}}}function ve(t){let e,n;const o=t[16]["page-title"],i=y(o,t,t[15],fe);return{c(){e=A("div"),i&&i.c(),D(e,"class","kin_loading__title svelte-kh5tai"),O(e,"color","transparent")},m(t,o){N(t,e,o),i&&i.m(e,null),n=!0},p(t,e){i&&i.p&&32768&e&&P(i,o,t,t[15],e,ke,fe)},i(t){n||(ct(i,t),n=!0)},o(t){dt(i,t),n=!1},d(t){t&&T(e),i&&i.d(t)}}}function be(t){let e;return{c(){e=A("h1"),D(e,"class","kin_loading__title svelte-kh5tai"),O(e,"color","transparent")},m(n,o){N(n,e,o),e.innerHTML=t[0]},p(t,n){1&n&&(e.innerHTML=t[0])},i:k,o:k,d(t){t&&T(e)}}}function we(t){let e,n;const o=t[16]["page-title"],i=y(o,t,t[15],he);return{c(){e=A("div"),i&&i.c(),D(e,"class","kin_header__title svelte-kh5tai")},m(t,o){N(t,e,o),i&&i.m(e,null),n=!0},p(t,e){i&&i.p&&32768&e&&P(i,o,t,t[15],e,pe,he)},i(t){n||(ct(i,t),n=!0)},o(t){dt(i,t),n=!1},d(t){t&&T(e),i&&i.d(t)}}}function $e(t){let e;return{c(){e=A("h1"),D(e,"class","kin_header__title svelte-kh5tai")},m(n,o){N(n,e,o),e.innerHTML=t[0]},p(t,n){1&n&&(e.innerHTML=t[0])},i:k,o:k,d(t){t&&T(e)}}}function ye(t){let e,n,o;const i=t[16].controls,s=y(i,t,t[15],ue);let a=t[4]&&t[5]&&xe(t);return{c(){e=A("div"),s&&s.c(),n=M(),a&&a.c(),D(e,"class","kin_header__controls svelte-kh5tai")},m(t,i){N(t,e,i),s&&s.m(e,null),S(e,n),a&&a.m(e,null),o=!0},p(t,n){s&&s.p&&32768&n&&P(s,i,t,t[15],n,de,ue),t[4]&&t[5]?a?a.p(t,n):(a=xe(t),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i(t){o||(ct(s,t),o=!0)},o(t){dt(s,t),o=!1},d(t){t&&T(e),s&&s.d(t),a&&a.d()}}}function xe(t){let e,n;return{c(){e=A("div"),n=B(t[5]),D(e,"class","kin_header__tooltip tooltip -onboarding -arrow-top svelte-kh5tai")},m(t,o){N(t,e,o),S(e,n)},p(t,e){32&e&&H(n,t[5])},d(t){t&&T(e)}}}function Pe(t){let e,n,o,i,s;return{c(){e=A("button"),n=A("kin-icon"),j(n,"name","icon-s-controls-arrow-left"),j(n,"size","20"),j(n,"class","svelte-kh5tai"),D(e,"class","kin_back-btn svelte-kh5tai"),D(e,"title",o=d("global.goBack"))},m(o,a){N(o,e,a),S(e,n),i||(s=L(e,"click",t[17]),i=!0)},p:k,d(t){t&&T(e),i=!1,s()}}}function Ie(t){let e,n,o,i;return{c(){e=A("a"),n=A("kin-icon"),j(n,"name","icon-s-controls-arrow-left"),j(n,"size","20"),j(n,"class","svelte-kh5tai"),D(e,"class","kin_back-btn svelte-kh5tai"),D(e,"href",o=t[9]||"#Dashboard"),D(e,"title",i=d("global.goBack"))},m(t,o){N(t,e,o),S(e,n)},p(t,n){512&n&&o!==(o=t[9]||"#Dashboard")&&D(e,"href",o)},d(t){t&&T(e)}}}function Ce(t){let e,n,o;return{c(){e=A("a"),n=A("kin-icon"),j(n,"name","icon-s-settings-button"),j(n,"size","20"),j(n,"class","svelte-kh5tai"),D(e,"class","kin_settings-btn svelte-kh5tai"),D(e,"href",t[1]),D(e,"title",o=d("settings"))},m(t,o){N(t,e,o),S(e,n)},p(t,n){2&n&&D(e,"href",t[1])},d(t){t&&T(e)}}}function Se(t){let e,n,o,i,s;const a=t[16]["page-content"],l=y(a,t,t[15],le);return{c(){e=A("div"),l&&l.c(),D(e,"class","kin_page__content svelte-kh5tai"),U(e,"-disabled",t[4])},m(a,r){N(a,e,r),l&&l.m(e,null),o=!0,i||(s=C(n=t[13].call(null,e)),i=!0)},p(t,n){l&&l.p&&32768&n&&P(l,a,t,t[15],n,ae,le),16&n&&U(e,"-disabled",t[4])},i(t){o||(ct(l,t),o=!0)},o(t){dt(l,t),o=!1},d(t){t&&T(e),l&&l.d(t),i=!1,s()}}}function Ne(t){let e,n;const o=t[16].upsell,i=y(o,t,t[15],ce);return{c(){e=A("div"),i&&i.c(),D(e,"class","kin_page__content svelte-kh5tai")},m(t,o){N(t,e,o),i&&i.m(e,null),n=!0},p(t,e){i&&i.p&&32768&e&&P(i,o,t,t[15],e,re,ce)},i(t){n||(ct(i,t),n=!0)},o(t){dt(i,t),n=!1},d(t){t&&T(e),i&&i.d(t)}}}function Te(t){let e,n,o,i,s,a,l,r,c,d,u,p,h,m,g,k,f,_=t[10]&&_e(t);const v=t[16].breadcrumbs,b=y(v,t,t[15],ge),w=[$e,we],$=[];function x(t,e){return t[0]?0:1}r=x(t),c=$[r]=w[r](t);let I=!t[3]&&ye(t);function C(t,e){return t[7]&&!t[8]?Ie:t[8]?Pe:void 0}let E=C(t),B=E&&E(t),z=t[1]&&!t[3]&&Ce(t);const L=[Ne,Se],j=[];function H(t,e){return t[3]?0:1}return m=H(t),g=j[m]=L[m](t),{c(){e=A("div"),_&&_.c(),n=M(),o=A("div"),i=A("header"),s=A("div"),b&&b.c(),a=M(),l=A("div"),c.c(),d=M(),I&&I.c(),u=M(),B&&B.c(),p=M(),z&&z.c(),h=M(),g.c(),D(s,"class","kin_header__crumbs crumbs svelte-kh5tai"),D(l,"class","kin_header__content svelte-kh5tai"),D(i,"class","kin_header svelte-kh5tai"),D(o,"class","svelte-kh5tai"),U(o,"invisible",t[10]),D(e,"class",k="kin_page "+("ltr"!=t[11]?"-"+t[11]:"")+" "+(t[6]?"-"+t[6]:"")+" "+t[2]+" svelte-kh5tai")},m(t,c){N(t,e,c),_&&_.m(e,null),S(e,n),S(e,o),S(o,i),S(i,s),b&&b.m(s,null),S(i,a),S(i,l),$[r].m(l,null),S(l,d),I&&I.m(l,null),S(i,u),B&&B.m(i,null),S(i,p),z&&z.m(i,null),S(o,h),j[m].m(o,null),f=!0},p(t,[s]){t[10]?_?(_.p(t,s),1024&s&&ct(_,1)):(_=_e(t),_.c(),ct(_,1),_.m(e,n)):_&&(lt(),dt(_,1,1,(()=>{_=null})),rt()),b&&b.p&&32768&s&&P(b,v,t,t[15],s,me,ge);let a=r;r=x(t),r===a?$[r].p(t,s):(lt(),dt($[a],1,1,(()=>{$[a]=null})),rt(),c=$[r],c?c.p(t,s):(c=$[r]=w[r](t),c.c()),ct(c,1),c.m(l,d)),t[3]?I&&(lt(),dt(I,1,1,(()=>{I=null})),rt()):I?(I.p(t,s),8&s&&ct(I,1)):(I=ye(t),I.c(),ct(I,1),I.m(l,null)),E===(E=C(t))&&B?B.p(t,s):(B&&B.d(1),B=E&&E(t),B&&(B.c(),B.m(i,p))),t[1]&&!t[3]?z?z.p(t,s):(z=Ce(t),z.c(),z.m(i,null)):z&&(z.d(1),z=null);let u=m;m=H(t),m===u?j[m].p(t,s):(lt(),dt(j[u],1,1,(()=>{j[u]=null})),rt(),g=j[m],g?g.p(t,s):(g=j[m]=L[m](t),g.c()),ct(g,1),g.m(o,null)),1024&s&&U(o,"invisible",t[10]),(!f||2116&s&&k!==(k="kin_page "+("ltr"!=t[11]?"-"+t[11]:"")+" "+(t[6]?"-"+t[6]:"")+" "+t[2]+" svelte-kh5tai"))&&D(e,"class",k)},i(t){f||(ct(_),ct(b,t),ct(c),ct(I),ct(g),f=!0)},o(t){dt(_),dt(b,t),dt(c),dt(I),dt(g),f=!1},d(t){t&&T(e),_&&_.d(),b&&b.d(t),$[r].d(),I&&I.d(),B&&B.d(),z&&z.d(),j[m].d()}}}function Ee(t,e,n){let{$$slots:o={},$$scope:i}=e,{heading:s}=e,{settingsUrl:a}=e,{cssCls:l}=e,{upsell:r=!1}=e,{inactive:c=!1}=e,{inactiveMsg:d}=e,{layout:u}=e,{back:h=!0}=e,{backEvent:m=!1}=e,{backHash:g}=e,{loading:k=!1}=e;const f=V();let _,v="ltr";W((()=>{n(11,v=document.body.dir)}));return t.$$set=t=>{"heading"in t&&n(0,s=t.heading),"settingsUrl"in t&&n(1,a=t.settingsUrl),"cssCls"in t&&n(2,l=t.cssCls),"upsell"in t&&n(3,r=t.upsell),"inactive"in t&&n(4,c=t.inactive),"inactiveMsg"in t&&n(5,d=t.inactiveMsg),"layout"in t&&n(6,u=t.layout),"back"in t&&n(7,h=t.back),"backEvent"in t&&n(8,m=t.backEvent),"backHash"in t&&n(9,g=t.backHash),"loading"in t&&n(10,k=t.loading),"$$scope"in t&&n(15,i=t.$$scope)},t.$$.update=()=>{16400&t.$$.dirty&&_&&_.set(!c)},[s,a,l,r,c,d,u,h,m,g,k,v,f,function(t){return n(14,_=new p(t)),{destroy:_.destroy.bind(_)}},_,i,o,()=>f("backClick")]}class Ae extends ft{constructor(t){var e;super(),se.getElementById("svelte-kh5tai-style")||((e=A("style")).id="svelte-kh5tai-style",e.textContent=".invisible.svelte-kh5tai.svelte-kh5tai{display:none}.svelte-kh5tai.svelte-kh5tai,.svelte-kh5tai.svelte-kh5tai:before,.svelte-kh5tai.svelte-kh5tai:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.kin_page.svelte-kh5tai.svelte-kh5tai{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--page-background);overflow:hidden}.kin_loading__title.svelte-kh5tai.svelte-kh5tai{position:absolute;opacity:0.01}.kin_header.svelte-kh5tai.svelte-kh5tai{padding:1.5rem var(--page-padding) 0;height:var(--header-height);position:relative;text-align:var(--page-header-align)}.kin_header__crumbs.svelte-kh5tai.svelte-kh5tai,.kin_header__content.svelte-kh5tai.svelte-kh5tai{position:absolute;left:var(--page-padding);right:var(--page-padding)}.kin_header__crumbs.svelte-kh5tai.svelte-kh5tai{display:var(--breadcrumbs-vis)}.kin_header__content.svelte-kh5tai.svelte-kh5tai{bottom:1.1rem}.kin_header__title.svelte-kh5tai.svelte-kh5tai,.kin_header__controls.svelte-kh5tai.svelte-kh5tai{display:inline-block;vertical-align:middle;position:relative}.kin_header__title.svelte-kh5tai.svelte-kh5tai{margin-top:0;margin-bottom:0;padding:0;line-height:1.1;font-size:var(--font-size-header);font-weight:var(--font-weight-h1);max-width:100%}.kin_header__tooltip.svelte-kh5tai.svelte-kh5tai{position:absolute;width:24rem;margin-top:calc(var(--switch-height) + 1.5rem);padding-top:1.2rem;padding-bottom:1.2rem;z-index:20;transform:translateX(-50%);left:50%}.kin_back-btn.svelte-kh5tai.svelte-kh5tai,.kin_settings-btn.svelte-kh5tai.svelte-kh5tai{position:absolute;left:0;top:var(--back-button-top);border:0;background-color:rgba(213,211,230,0.1);transition:background-color 0.2s;cursor:pointer;color:inherit;text-decoration:none;width:4rem;height:var(--back-button-height);border-radius:0 var(--back-button-height) var(--back-button-height) 0;display:flex;align-items:center;justify-content:center;z-index:9}.kin_back-btn.svelte-kh5tai kin-icon.svelte-kh5tai,.kin_settings-btn.svelte-kh5tai kin-icon.svelte-kh5tai{opacity:0.8}.kin_back-btn.svelte-kh5tai.svelte-kh5tai:hover,.kin_settings-btn.svelte-kh5tai.svelte-kh5tai:hover{transform:scale(1.1)}.kin_back-btn.svelte-kh5tai.svelte-kh5tai:focus,.kin_settings-btn.svelte-kh5tai.svelte-kh5tai:focus,.kin_back-btn.svelte-kh5tai.svelte-kh5tai:hover,.kin_settings-btn.svelte-kh5tai.svelte-kh5tai:hover{background-color:rgba(213,211,230,0.3);outline:0}.kin_back-btn.svelte-kh5tai:focus kin-icon.svelte-kh5tai,.kin_settings-btn.svelte-kh5tai:focus kin-icon.svelte-kh5tai,.kin_back-btn.svelte-kh5tai:hover kin-icon.svelte-kh5tai,.kin_settings-btn.svelte-kh5tai:hover kin-icon.svelte-kh5tai{opacity:1}.kin_settings-btn.svelte-kh5tai.svelte-kh5tai{left:auto;right:0;border-radius:var(--back-button-height) 0 0 var(--back-button-height)}.kin_settings-btn__tooltip.svelte-kh5tai.svelte-kh5tai{display:none;position:absolute;right:105%}.kin_back-btn.svelte-kh5tai.svelte-kh5tai{display:var(--back-btn-vis)}.kin_back-btn.-static.svelte-kh5tai.svelte-kh5tai{position:fixed;top:6.4rem}.kin_page__content.svelte-kh5tai.svelte-kh5tai{position:absolute;top:var(--header-height);right:0;bottom:0;left:0;display:block}.kin_page__content.-disabled.svelte-kh5tai.svelte-kh5tai{opacity:0.2;pointer-events:none}.kin_upsell.svelte-kh5tai.svelte-kh5tai{top:var(--header-height);bottom:0;left:0;right:0;position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center}.kin_upsell__icon.svelte-kh5tai.svelte-kh5tai{font-size:18rem;margin-bottom:2rem}.kin_upsell__cta.svelte-kh5tai.svelte-kh5tai{margin-top:1rem}.kin_page.-no-header.svelte-kh5tai .kin_header.svelte-kh5tai{display:none}.kin_page.-no-header.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:0}.kin_page.-cover-header.svelte-kh5tai .kin_header.svelte-kh5tai{position:absolute;width:100%;z-index:1}.kin_page.-cover-header.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:0}.kin_page.-large-header.svelte-kh5tai .kin_header.svelte-kh5tai{height:var(--header-height-large)}.kin_page.-large-header.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block}.kin_page.-large-header.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:var(--header-height-large)}.kin_page.-medium-header.svelte-kh5tai .kin_header.svelte-kh5tai{height:var(--header-height-medium)}.kin_page.-medium-header.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block}.kin_page.-medium-header.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:var(--header-height-medium)}.kin_page.-tabs-page.svelte-kh5tai .kin_header.svelte-kh5tai{height:var(--header-height-tabs);text-align:center}.kin_page.-tabs-page.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block;text-align:center}.kin_page.-tabs-page.svelte-kh5tai .kin_header__controls.svelte-kh5tai{display:block;text-align:center;padding:0}.kin_page.-tabs-page.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:var(--header-height-tabs);text-align:center}.kin_page.-center-header.svelte-kh5tai .kin_header__controls.svelte-kh5tai,.kin_page.-center-header.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block;text-align:center}.kin_page.-center.svelte-kh5tai.svelte-kh5tai,.kin_page.-center-all.svelte-kh5tai.svelte-kh5tai{text-align:center}.kin_page.-center.svelte-kh5tai .kin_header__controls.svelte-kh5tai,.kin_page.-center-all.svelte-kh5tai .kin_header__controls.svelte-kh5tai{display:none}.kin_page.-center.svelte-kh5tai .kin_header__title.svelte-kh5tai,.kin_page.-center-all.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block}.kin_page.-center-all.svelte-kh5tai .kin_page__content.svelte-kh5tai{display:flex;align-items:center;justify-content:center;text-align:center}.kin_page.-flex-between.svelte-kh5tai .kin_header__controls.svelte-kh5tai{display:none}.kin_page.-flex-between.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block}.kin_page.-flex-between.svelte-kh5tai .kin_page__content.svelte-kh5tai{display:flex;align-items:center;justify-content:space-between;text-align:center}.kin_page.-profile.svelte-kh5tai .kin_header.svelte-kh5tai{position:static;height:auto;text-align:start}.kin_page.-profile.svelte-kh5tai .kin_header__content.svelte-kh5tai{position:static}.kin_page.-profile.svelte-kh5tai .kin_header__controls.svelte-kh5tai{position:static;display:block;padding:0;max-height:none}.kin_page.-profile.svelte-kh5tai .kin_header__title.svelte-kh5tai{max-height:none;max-width:100%}.kin_page.-profile.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:calc(var(--header-height) + 6rem)}.kin_page.-detail.svelte-kh5tai .kin_header.svelte-kh5tai{text-align:center;height:calc(var(--header-height-large) + 4rem)}.kin_page.-detail.svelte-kh5tai .kin_header__content.svelte-kh5tai{display:block}.kin_page.-detail.svelte-kh5tai .kin_header__title.svelte-kh5tai{max-height:none;display:block;font-weight:var(--font-weight-h1);padding:0 8%}.kin_page.-detail.svelte-kh5tai .kin_header__controls.svelte-kh5tai{padding:1rem 0 0;position:static;display:block;max-height:none}.kin_page.-detail.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:calc(var(--header-height-large) + 4rem)}.kin_page.-rtl.svelte-kh5tai .kin_header__tooltip.svelte-kh5tai{transform:translateX(50%);left:auto;right:50%}.kin_page.-rtl.svelte-kh5tai .kin_back-btn.svelte-kh5tai,.kin_page.-rtl.svelte-kh5tai .kin_settings-btn.svelte-kh5tai{transform:scale(-1)}.kin_page.-rtl.svelte-kh5tai .kin_back-btn.svelte-kh5tai:hover,.kin_page.-rtl.svelte-kh5tai .kin_settings-btn.svelte-kh5tai:hover{transform:scale(-1.1)}.kin_page.-rtl.svelte-kh5tai .kin_back-btn.svelte-kh5tai{left:auto;right:0}.kin_page.-rtl.svelte-kh5tai .kin_settings-btn.svelte-kh5tai{right:auto;left:0}",S(se.head,e)),kt(this,t,Ee,Te,w,{heading:0,settingsUrl:1,cssCls:2,upsell:3,inactive:4,inactiveMsg:5,layout:6,back:7,backEvent:8,backHash:9,loading:10})}get heading(){return this.$$.ctx[0]}set heading(t){this.$set({heading:t}),ot()}get settingsUrl(){return this.$$.ctx[1]}set settingsUrl(t){this.$set({settingsUrl:t}),ot()}get cssCls(){return this.$$.ctx[2]}set cssCls(t){this.$set({cssCls:t}),ot()}get upsell(){return this.$$.ctx[3]}set upsell(t){this.$set({upsell:t}),ot()}get inactive(){return this.$$.ctx[4]}set inactive(t){this.$set({inactive:t}),ot()}get inactiveMsg(){return this.$$.ctx[5]}set inactiveMsg(t){this.$set({inactiveMsg:t}),ot()}get layout(){return this.$$.ctx[6]}set layout(t){this.$set({layout:t}),ot()}get back(){return this.$$.ctx[7]}set back(t){this.$set({back:t}),ot()}get backEvent(){return this.$$.ctx[8]}set backEvent(t){this.$set({backEvent:t}),ot()}get backHash(){return this.$$.ctx[9]}set backHash(t){this.$set({backHash:t}),ot()}get loading(){return this.$$.ctx[10]}set loading(t){this.$set({loading:t}),ot()}}var Be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Me="object"==typeof Be&&Be&&Be.Object===Object&&Be,ze="object"==typeof self&&self&&self.Object===Object&&self;Me||ze||Function("return this")();function Le(t){let e,n,o,i,s,a,l,r,c;const d=t[6].default,u=y(d,t,t[5],null);return{c(){e=A("div"),n=A("kin-icon"),o=M(),u&&u.c(),i=M(),s=A("kin-button"),a=B(t[2]),j(n,"name",t[0]),j(n,"size",t[1]),j(n,"class","sve_upsell__icon"),j(s,"size","large"),j(s,"class","sve_upsell__cta"),j(s,"data-test",t[3]),D(e,"class","sve_upsell")},m(d,p){N(d,e,p),S(e,n),S(e,o),u&&u.m(e,null),S(e,i),S(e,s),S(s,a),l=!0,r||(c=L(s,"click",t[7]),r=!0)},p(t,[e]){(!l||1&e)&&j(n,"name",t[0]),(!l||2&e)&&j(n,"size",t[1]),u&&u.p&&32&e&&P(u,d,t,t[5],e,null,null),(!l||4&e)&&H(a,t[2]),(!l||8&e)&&j(s,"data-test",t[3])},i(t){l||(ct(u,t),l=!0)},o(t){dt(u,t),l=!1},d(t){t&&T(e),u&&u.d(t),r=!1,c()}}}function De(t,e,n){let{$$slots:o={},$$scope:i}=e;const s=V();let{icon:a="icon-l-upgrade"}=e,{iconSize:l=160}=e,{ctaText:r=d("global.upgradeNow")}=e,{testId:c="upsell_buy"}=e;return t.$$set=t=>{"icon"in t&&n(0,a=t.icon),"iconSize"in t&&n(1,l=t.iconSize),"ctaText"in t&&n(2,r=t.ctaText),"testId"in t&&n(3,c=t.testId),"$$scope"in t&&n(5,i=t.$$scope)},[a,l,r,c,s,i,o,()=>s("buy")]}class je extends ft{constructor(t){super(),kt(this,t,De,Le,w,{icon:0,iconSize:1,ctaText:2,testId:3})}}const He="ais_cmp_avpap",Oe="avcfg://exclusions/PasswordProtection/ExcludedFiles",Ue={chrome:"Google Chrome",firefox:"Firefox",ie:"Internet Explorer",edge:"Edge",opera:"Opera",chromiumedge:"Edge",avastsb:"Avast Secure Browser",avgsb:"AVG Secure Browser"},Ge=[{id:"Chrome",status:"notInstalled",iconName:"Chrome",kinIconName:"icon-s-programs-chrome"},{id:"Firefox",status:"notInstalled",iconName:"Firefox",kinIconName:"icon-s-programs-firefox"},{id:"ChromiumEdge",status:"notInstalled",iconName:"edge-chromium",kinIconName:"icon-s-programs-edge"}];const Ke=new class{getStatus(){return e("app.features.GetStatus",{featureId:"AvPasswordProtection"})}isShieldActive(t){return"inactive"!==t}pushSupportedBrowser(t){Ge.push(t)}getBrowsers(t){return e("app.utils.GetInstalledBrowsers").then((e=>{if(e)for(const n of Ge)e[n.id]?n.status=t?"ok":"error":n.status="notInstalled";return Ge}))}hasSupportedBrowser(t){return(t?Promise.resolve(t):this.getBrowsers()).then((t=>t.some((t=>"ok"===t.status||"error"===t.status))))}getBrowserName(t){return t?Ue[t.toLowerCase()]:""}};function Fe(t,e,n){const o=t.slice();return o[11]=e[n],o}function We(t){let e,n,o,i;return{c(){e=A("div"),n=A("kin-crumbs"),j(n,"section","privacy"),j(n,"sectionlabel",o=d("privacy")),j(n,"modulelabel",i=d("passwordProtection")),D(e,"slot","breadcrumbs")},m(t,o){N(t,e,o),S(e,n)},p:k,d(t){t&&T(e)}}}function Re(t){let e,n;return{c(){e=A("kin-switch"),j(e,"data-test","pap_switch"),j(e,"kin-disabled","true"),j(e,"trivial","true"),j(e,"checked","false"),j(e,"title",n=d("passwordProtection"))},m(t,n){N(t,e,n)},p:k,d(t){t&&T(e)}}}function Ve(t){let e,n,o,i,s;return{c(){e=A("kin-switch"),j(e,"data-test","pap_switch"),j(e,"checked",t[0]),j(e,"processing",n=!t[1]),j(e,"title",o=d("passwordProtection"))},m(n,o){N(n,e,o),i||(s=L(e,"click",t[6]),i=!0)},p(t,o){1&o&&j(e,"checked",t[0]),2&o&&n!==(n=!t[1])&&j(e,"processing",n)},d(t){t&&T(e),i=!1,s()}}}function qe(t){let e;function n(t,e){return t[2]?Ve:Re}let o=n(t),i=o(t);return{c(){e=A("div"),i.c(),D(e,"slot","controls")},m(t,n){N(t,e,n),i.m(e,null)},p(t,s){o===(o=n(t))&&i?i.p(t,s):(i.d(1),i=o(t),i&&(i.c(),i.m(e,null)))},d(t){t&&T(e),i.d()}}}function Xe(t){let e,n,o,i,s=d("passwordProtection.upsell.desc")+"";return{c(){e=A("div"),n=A("h2"),n.textContent=`${d("passwordProtection.upsell.title")}`,o=M(),i=A("p"),D(n,"class","h2 -margins"),D(i,"class","p -secondary")},m(t,a){N(t,e,a),S(e,n),S(e,o),S(e,i),i.innerHTML=s},p:k,d(t){t&&T(e)}}}function Je(t){let e,n,o;return n=new je({props:{icon:"icon-l-pap-upgrade",$$slots:{default:[Xe]},$$scope:{ctx:t}}}),n.$on("buy",t[5]),{c(){e=A("div"),pt(n.$$.fragment),D(e,"slot","upsell")},m(t,i){N(t,e,i),ht(n,e,null),o=!0},p(t,e){const o={};16384&e&&(o.$$scope={dirty:e,ctx:t}),n.$set(o)},i(t){o||(ct(n.$$.fragment,t),o=!0)},o(t){dt(n.$$.fragment,t),o=!1},d(t){t&&T(e),mt(n)}}}function Ze(t){let e;return{c(){e=A("kin-icon"),j(e,"name","shield-critical-fill"),j(e,"size","26")},m(t,n){N(t,e,n)},d(t){t&&T(e)}}}function Qe(t){let e;return{c(){e=A("kin-icon"),j(e,"name","shield-ok-fill"),j(e,"size","26")},m(t,n){N(t,e,n)},d(t){t&&T(e)}}}function Ye(t){let e;return{c(){e=A("div"),e.textContent=`${d("passwordProtection.browser.status.notInstalled")}`},m(t,n){N(t,e,n)},p:k,d(t){t&&T(e)}}}function tn(t){let e;return{c(){e=A("div"),e.textContent=`${d("passwordProtection.browser.status.error")}`,D(e,"class","color-critical -text"),D(e,"data-test","pap_browser-error")},m(t,n){N(t,e,n)},p:k,d(t){t&&T(e)}}}function en(t){let e;return{c(){e=A("div"),e.textContent=`${d("passwordProtection.browser.status.ok")}`,D(e,"class","color-ok -text"),D(e,"data-test","pap_browser-ok")},m(t,n){N(t,e,n)},p:k,d(t){t&&T(e)}}}function nn(t){let e,n,o,i,s,a,l,r,c,d,u=Ke.getBrowserName(t[11].id)+"";function p(t,e){return"ok"===t[11].status?Qe:"error"===t[11].status?Ze:void 0}let h=p(t),m=h&&h(t);function g(t,e){return"ok"===t[11].status?en:"error"===t[11].status?tn:Ye}let k=g(t),f=k(t);return{c(){e=A("div"),n=A("div"),o=A("div"),m&&m.c(),s=M(),a=A("div"),l=B(u),r=M(),f.c(),c=M(),D(o,"class","pap_browser__sub-icon svelte-1tiaary"),D(n,"class",i="svg pap_browser__icon -"+t[11].iconName+" svelte-1tiaary"),D(a,"class","pap_browser__title svelte-1tiaary"),D(e,"class",d="pap_browser -"+t[11].status+" svelte-1tiaary")},m(t,i){N(t,e,i),S(e,n),S(n,o),m&&m.m(o,null),S(e,s),S(e,a),S(a,l),S(e,r),f.m(e,null),S(e,c)},p(t,s){h!==(h=p(t))&&(m&&m.d(1),m=h&&h(t),m&&(m.c(),m.m(o,null))),8&s&&i!==(i="svg pap_browser__icon -"+t[11].iconName+" svelte-1tiaary")&&D(n,"class",i),8&s&&u!==(u=Ke.getBrowserName(t[11].id)+"")&&H(l,u),k===(k=g(t))&&f?f.p(t,s):(f.d(1),f=k(t),f&&(f.c(),f.m(e,c))),8&s&&d!==(d="pap_browser -"+t[11].status+" svelte-1tiaary")&&D(e,"class",d)},d(t){t&&T(e),m&&m.d(),f.d()}}}function on(t){let e,n,o,i,s,a,l,r,c,u=t[3],p=[];for(let d=0;d<u.length;d+=1)p[d]=nn(Fe(t,u,d));return{c(){e=A("div"),n=A("kin-view"),o=A("div"),i=A("p"),i.textContent=`${d("passwordProtection.desc")}`,s=M(),a=A("div"),l=A("div"),l.textContent=`${d("passwordProtection.supportedBrowsers.label")}`,r=M(),c=A("div");for(let t=0;t<p.length;t+=1)p[t].c();D(i,"class","kin_description__text"),D(o,"slot","description"),D(l,"class","h6 g-margin-top--30"),D(c,"class","pap_browser__wrap svelte-1tiaary"),D(a,"slot","view-content"),D(e,"slot","page-content")},m(t,d){N(t,e,d),S(e,n),S(n,o),S(o,i),S(n,s),S(n,a),S(a,l),S(a,r),S(a,c);for(let e=0;e<p.length;e+=1)p[e].m(c,null)},p(t,e){if(8&e){let n;for(u=t[3],n=0;n<u.length;n+=1){const o=Fe(t,u,n);p[n]?p[n].p(o,e):(p[n]=nn(o),p[n].c(),p[n].m(c,null))}for(;n<p.length;n+=1)p[n].d(1);p.length=u.length}},d(t){t&&T(e),E(p,t)}}}function sn(t){let e,n,o;return{c(){e=M(),n=M(),o=M()},m(t,i){N(t,e,i),N(t,n,i),N(t,o,i)},p:k,i:k,o:k,d(t){t&&T(e),t&&T(n),t&&T(o)}}}function an(t){let e,n;return e=new Ae({props:{heading:d("passwordProtection"),settingsUrl:t[4]?"#Settings/passwordProtection":"",upsell:!t[4],inactive:!t[0]||!t[2],inactiveMsg:t[2]?d("passwordProtection.tooltip.error"):d("passwordProtection.tooltip.browserNotSupported"),backHash:"#privacy",$$slots:{default:[sn],"page-content":[on],upsell:[Je],controls:[qe],breadcrumbs:[We]},$$scope:{ctx:t}}}),{c(){pt(e.$$.fragment)},m(t,o){ht(e,t,o),n=!0},p(t,[n]){const o={};5&n&&(o.inactive=!t[0]||!t[2]),4&n&&(o.inactiveMsg=t[2]?d("passwordProtection.tooltip.error"):d("passwordProtection.tooltip.browserNotSupported")),16399&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(ct(e.$$.fragment,t),n=!0)},o(t){dt(e.$$.fragment,t),n=!1},d(t){mt(e,t)}}}function ln(n,o,i){const s=r.isLicensed(He);let l=r.isEnabled(He),c=!0,u=!0,p=[];const h=[];function g(t=null,e=null){null!==t&&i(0,l=t),null!==e&&i(1,c=e)}return W((()=>{h.push(t.on("product.change.feature."+He,(t=>{null!=t.enabled&&g(t.enabled,!0)}))),function(){if(!s)return;let t=l;Ke.getStatus().then((e=>{t=Ke.isShieldActive(e.status)})).catch((e=>{t=!1,console.error("app.features.GetStatus",e)})).then((()=>{g(t,!0)}))}()})),R((()=>{h.forEach((t=>t()))})),n.$$.update=()=>{var t;1&n.$$.dirty&&(t=l,Ke.getBrowsers(t).then((t=>{Ke.hasSupportedBrowser(t).then((e=>{i(3,p=t),i(2,u=e)}))})))},[l,c,u,p,s,function(){a.openWindow(343)},function(){const t=l,n=n=>{const o=l?"app.features.Stop":"app.features.Start",i={featureId:"AvPasswordProtection"};null!=n&&(i.time=n),g(null,!1),e(o,i).then((()=>{g(!t,!0)})).catch((e=>{console.error("an error occured while executing `"+o+"` request",e),g(t,!0)}))};l?m.stopOptions({title:d("passwordProtection.stopOptions.title"),desc:d("passwordProtection.stopOptions.desc")}).then((t=>{n(t.time)})):n()}]}function rn(t){let e,n;return e=new ie({props:{config:t[0]}}),{c(){pt(e.$$.fragment)},m(t,o){ht(e,t,o),n=!0},p(t,n){const o={};1&n&&(o.config=t[0]),e.$set(o)},i(t){n||(ct(e.$$.fragment,t),n=!0)},o(t){dt(e.$$.fragment,t),n=!1},d(t){mt(e,t)}}}function cn(t){let e,n,o=t[0]&&rn(t);return{c(){o&&o.c(),e=z()},m(t,i){o&&o.m(t,i),N(t,e,i),n=!0},p(t,[n]){t[0]?o?(o.p(t,n),1&n&&ct(o,1)):(o=rn(t),o.c(),ct(o,1),o.m(e.parentNode,e)):o&&(lt(),dt(o,1,1,(()=>{o=null})),rt())},i(t){n||(ct(o),n=!0)},o(t){dt(o),n=!1},d(t){o&&o.d(t),t&&T(e)}}}function dn(t,n,o){const s=i.getUrlParams();let a=null;const l={file:s.file,actor:s.actor,browserName:s.browserName},r="allow",c="block";function u(){return l.actor.split(/[/|\\]/g).pop()}function p(){return Ue[l.browserName||""]}function m(t){return e("app.settings.Get",{name:Oe}).then((t=>t.value?function(t){if(!t)return[];const e=[];for(let n of t.split(">;"))n.endsWith(">")||(n+=">"),e.push(n);return e}(t.value):[])).then((n=>{const o=l.actor+"<block="+(t===r?"0>":"1>");return(n=n.filter((t=>!t.toLowerCase().includes(l.actor.toLowerCase())))).push(o),e("app.settings.Set",{name:Oe,value:n.join(";")}).then((()=>(i.broadcastEvent("settings.blockedAndAllowedApps.changed"),function(t){let e;e=t===r?{color:"green",icon:{name:"password-protection",bgName:"shield",color:"ok"},title:d("passwordProtection.detection.allowed.title"),text:d("passwordProtection.detection.allowed.desc",u(),p()),actionText:d("passwordProtection.detection.weAlwaysAllow"),actions:[{label:d("global.gotIt"),cssCls:"",shortcut:{code:"KeyG",ctrlKey:!0},minDuration:500,labelTest:"dd_primary_btn_got-it"}],status:{text:d("passwordProtection.detection.allowed.status")},labelTest:"dd_primary_btn_got-it",details:k()}:{color:"green",icon:{name:"password-protection",bgName:"shield",color:"ok"},title:d("passwordProtection.detection.blocked.title"),text:d("passwordProtection.detection.blocked.desc",u(),p()),actionText:d("passwordProtection.detection.weAlwaysBlock"),actions:[{label:d("global.gotIt"),cssCls:"",shortcut:{code:"KeyG",ctrlKey:!0},minDuration:500,labelTest:"dd_primary_btn_got-it"}],status:{text:d("passwordProtection.detection.blocked.status")},details:k()};return e}(t)))).catch((t=>(console.error("app.settings.Set",t),g())))})).catch((t=>(console.error("Error loading apps "+Oe,t),g())))}function g(){return{color:"red",icon:{name:"password-protection",bgName:"shield",color:"critical"},title:d("passwordProtection.detection.title",u(),p()),text:d("passwordProtection.detection.desc"),actionText:d("passwordProtection.detection.whatToDo"),actions:[{label:d("passwordProtection.detection.blockApp"),action:m.bind(this,c),status:{text:d("passwordProtection.detection.blocking")},cssCls:"-critical",shortcut:{code:"KeyB",ctrlKey:!0},minDuration:500,labelGa:"block",labelTest:"dd_primary_btn_block-app"},{label:d("passwordProtection.detection.allowApp"),action:m.bind(this,r),status:{text:d("passwordProtection.detection.allowing")},shortcut:{code:"KeyA",ctrlKey:!0},minDuration:500,labelGa:"allow",labelTest:"dd_secondary_btn_allow-app"}],status:{text:"-"},details:k()}}function k(){return[{title:d("global.appName"),value:h.escapeHtml(l.actor),testValue:"threatName"},{title:d("passwordProtection.detection.affectedBrowser"),value:h.escapeHtml(p()),testValue:"file"},{title:d("passwordProtection.detection.storagePath"),value:h.escapeHtml(l.file)},{title:d("global.detectedBy"),value:d("passwordProtection"),testValue:"detectedBy_PasswordProtection"}]}return W((()=>{o(0,a=g())})),[a]}class un extends ft{constructor(t){super(),kt(this,t,dn,cn,w,{})}}function pn(t,e,n){const o=t.slice();return o[10]=e[n],o}function hn(t){let e,n=d("passwordProtection.browser.status.notInstalled")+"";return{c(){e=B(n)},m(t,n){N(t,e,n)},p:k,d(t){t&&T(e)}}}function mn(t){let e;return{c(){e=A("span"),e.textContent=`${d("passwordProtection.browser.status.error")}`,D(e,"class","color-critical -text"),D(e,"data-test","browser_status-error")},m(t,n){N(t,e,n)},p:k,d(t){t&&T(e)}}}function gn(t){let e;return{c(){e=A("span"),e.textContent=`${d("passwordProtection.browser.status.ok")}`,D(e,"class","color-ok -text"),D(e,"data-test","browser_status-ok")},m(t,n){N(t,e,n)},p:k,d(t){t&&T(e)}}}function kn(t){let e,n,o,i,s,a,l,r,c,d,u,p=Ke.getBrowserName(t[10].id)+"";function h(t,e){return"ok"===t[10].status?gn:"error"===t[10].status?mn:hn}let m=h(t),g=m(t);return{c(){e=A("tr"),n=A("td"),o=A("div"),s=M(),a=A("td"),l=B(p),r=M(),c=A("td"),g.c(),d=M(),D(o,"class",i="svg g-font--20 -"+t[10].iconName),D(a,"data-test","browser_name"),D(c,"class","table__last"),D(e,"class",u=I("notInstalled"===t[10].status?"-notInstalled":"")+" svelte-1f8xvea")},m(t,i){N(t,e,i),S(e,n),S(n,o),S(e,s),S(e,a),S(a,l),S(e,r),S(e,c),g.m(c,null),S(e,d)},p(t,n){1&n&&i!==(i="svg g-font--20 -"+t[10].iconName)&&D(o,"class",i),1&n&&p!==(p=Ke.getBrowserName(t[10].id)+"")&&H(l,p),m===(m=h(t))&&g?g.p(t,n):(g.d(1),g=m(t),g&&(g.c(),g.m(c,null))),1&n&&u!==(u=I("notInstalled"===t[10].status?"-notInstalled":"")+" svelte-1f8xvea")&&D(e,"class",u)},d(t){t&&T(e),g.d()}}}function fn(t){let e,n,o,i,s,a,l,r,c,u,p,h=t[0],m=[];for(let d=0;d<h.length;d+=1)m[d]=kn(pn(t,h,d));return r=new t[4]({props:{property:t[6].mode}}),u=new t[5]({}),{c(){e=A("div"),n=A("p"),n.textContent=`${d(vn.supportedBrowsers)}`,o=M(),i=A("table"),s=A("colgroup"),s.innerHTML='<col width="7%"/> \n\t\t\t\t<col width="43%"/> \n\t\t\t\t<col width="45%"/>',a=M();for(let t=0;t<m.length;t+=1)m[t].c();l=M(),pt(r.$$.fragment),c=M(),pt(u.$$.fragment),D(n,"class","p g-margin-bottom--10"),D(i,"class","table -small -fixed pap_browser__table svelte-1f8xvea"),D(e,"id","passwordProtection_settings_supportedBrowsers"),D(e,"class","settings__row g-margin-top--15 g-margin-bottom--15")},m(t,d){N(t,e,d),S(e,n),S(e,o),S(e,i),S(i,s),S(i,a);for(let e=0;e<m.length;e+=1)m[e].m(i,null);N(t,l,d),ht(r,t,d),N(t,c,d),ht(u,t,d),p=!0},p(t,e){if(1&e){let n;for(h=t[0],n=0;n<h.length;n+=1){const o=pn(t,h,n);m[n]?m[n].p(o,e):(m[n]=kn(o),m[n].c(),m[n].m(i,null))}for(;n<m.length;n+=1)m[n].d(1);m.length=h.length}},i(t){p||(ct(r.$$.fragment,t),ct(u.$$.fragment,t),p=!0)},o(t){dt(r.$$.fragment,t),dt(u.$$.fragment,t),p=!1},d(t){t&&T(e),E(m,t),t&&T(l),mt(r,t),t&&T(c),mt(u,t)}}}function _n(t){let e,n;return e=new t[3]({props:{component:He,title:d(vn.title),desc:d(vn.desc),stopOptions:t[2],ipmBuyElm:343,notSupported:!t[1],notSupportedMsg:d("passwordProtection.tooltip.browserNotSupported"),$$slots:{default:[fn]},$$scope:{ctx:t}}}),{c(){pt(e.$$.fragment)},m(t,o){ht(e,t,o),n=!0},p(t,[n]){const o={};2&n&&(o.notSupported=!t[1]),8193&n&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){n||(ct(e.$$.fragment,t),n=!0)},o(t){dt(e.$$.fragment,t),n=!1},d(t){mt(e,t)}}}const vn={title:"passwordProtection",desc:"passwordProtection.settings.desc",mode:{label:"passwordProtection.settings.mode.label",ask:"passwordProtection.settings.mode.ask.label",block:"passwordProtection.settings.mode.block.label"},supportedBrowsers:"passwordProtection.supportedBrowsers.label"};function bn(){return{mode:{id:"passwordProtection_settings_mode",path:"avcfg://settings/Pap/BrowserProtectionAction",label:d(vn.mode.label),options:[{label:d(vn.mode.ask),value:"0"},{label:d(vn.mode.block),value:"1"}],search:{title:vn.mode.label,others:[vn.mode.ask,vn.mode.block]}}}}const wn={id:"passwordProtection_settings_supportedBrowsers",label:d(vn.supportedBrowsers),search:vn.supportedBrowsers};function $n(){return{title:vn.title,desc:vn.desc,items:Object.assign({},bn(),[wn])}}function yn(e,n,o){const i={title:d("passwordProtection.stopOptions.title"),desc:d("passwordProtection.stopOptions.desc")},{Container:s,Radio:a,WhiteAndBlackList:l}=g,c=[],u=bn();let p=[],h=!0,m=r.isEnabled(He);return W((()=>{c.push(t.on("product.change.feature."+He,(t=>{null!=t.enabled&&o(7,m=t.enabled)})))})),R((()=>{c.forEach((t=>t()))})),e.$$.update=()=>{var t;128&e.$$.dirty&&(t=m,Ke.getBrowsers(t).then((t=>{Ke.hasSupportedBrowser(t).then((e=>{o(0,p=t),o(1,h=e)}))})))},[p,h,i,s,a,l,u,m]}class xn extends ft{constructor(t){var e;super(),document.getElementById("svelte-1f8xvea-style")||((e=A("style")).id="svelte-1f8xvea-style",e.textContent=".pap_browser__table.svelte-1f8xvea tr.-notInstalled.svelte-1f8xvea{opacity:0.5}",S(document.head,e)),kt(this,t,yn,_n,w,{})}}Ke.pushSupportedBrowser({id:"AvastSB",status:"notInstalled",iconName:"safezone"});export default class extends ft{constructor(t){var e;super(),document.getElementById("svelte-1tiaary-style")||((e=A("style")).id="svelte-1tiaary-style",e.textContent=".pap_browser__wrap.svelte-1tiaary.svelte-1tiaary{display:flex;margin-top:20px;justify-content:center}.pap_browser__wrap.svelte-1tiaary .pap_browser.svelte-1tiaary{width:20rem;text-align:center;padding-top:20px;padding-bottom:30px}.pap_browser__wrap.svelte-1tiaary .pap_browser.-notInstalled.svelte-1tiaary{opacity:0.5}.pap_browser__wrap.svelte-1tiaary .pap_browser.svelte-1tiaary:not(:last-child){border-right:1px solid var(--table-border)}.pap_browser__wrap.svelte-1tiaary .pap_browser__placeholder.svelte-1tiaary{background-color:var(--cube-bg);margin:0 15px;padding:25px 15px}.pap_browser__wrap.svelte-1tiaary .pap_browser__icon.svelte-1tiaary{font-size:4rem;padding-bottom:20px;position:relative}.pap_browser__wrap.svelte-1tiaary .pap_browser__sub-icon.svelte-1tiaary{position:absolute;right:-14px;bottom:14px}.pap_browser__wrap.svelte-1tiaary .pap_browser__title.svelte-1tiaary{font-size:var(--font-size-large);margin-top:5px}",S(document.head,e)),kt(this,t,ln,an,w,{})}}export{un as detection,xn as settings,$n as settingsSearchStrings};const Pn={name:"passwordProtection",version:"1.2.200",created:"2021-03-10T09:10:24.609Z"};export{Pn as metadata};