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/ras.js
//{"name":"ras","version":"1.2.115","created":"2021-03-09T09:09:19.932Z"}
import{eventer as e,serviceRequest as t,napiTracker as n,onlineChecker as i,windowApi as l}from"./napi.js";import{settingsService as o,ipmService as a,soundService as s,productModel as c,napiUtils as r}from"./napiExtensions.js";import{nls as d,moment as u}from"./i18n.js";import{objectFromEntriesPolyfill as p}from"./plugins.js";import{logger as h,trapTabNavigation as m,TabableToggler as g,ipValidator as f,stringUtils as b}from"./libs.js";import{modals as k}from"./ractiveComponents.js";import{svelteComponents as v}from"./Settings.js";function _(){}function $(e){return e()}function y(){return Object.create(null)}function w(e){e.forEach($)}function x(e){return"function"==typeof e}function E(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function S(e,t,n){e.$$.on_destroy.push(function(e,...t){if(null==e)return _;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}(t,n))}function A(e,t,n,i){if(e){const l=I(e,t,n,i);return e[0](l)}}function I(e,t,n,i){return e[1]&&i?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](i(t))):n.ctx}function j(e,t,n,i,l,o,a){const s=function(e,t,n,i){if(e[2]&&i){const l=e[2](i(n));if(void 0===t.dirty)return l;if("object"==typeof l){const e=[],n=Math.max(t.dirty.length,l.length);for(let i=0;i<n;i+=1)e[i]=t.dirty[i]|l[i];return e}return t.dirty|l}return t.dirty}(t,i,l,o);if(s){const l=I(t,n,i,a);e.p(l,s)}}function C(e){return e&&x(e.destroy)?e.destroy:_}function D(e,t){e.appendChild(t)}function T(e,t,n){e.insertBefore(t,n||null)}function P(e){e.parentNode.removeChild(e)}function M(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function L(e){return document.createElement(e)}function z(e){return document.createTextNode(e)}function N(){return z(" ")}function R(){return z("")}function O(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function H(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function F(e,t,n){t in e?e[t]=n:H(e,t,n)}function U(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function B(e,t,n,i){e.style.setProperty(t,n,i?"important":"")}function G(e,t,n){e.classList[n?"add":"remove"](t)}let W;function V(e){W=e}function K(){if(!W)throw new Error("Function called outside component initialization");return W}function X(e){K().$$.on_mount.push(e)}function q(e){K().$$.on_destroy.push(e)}function J(){const e=K();return(t,n)=>{const i=e.$$.callbacks[t];if(i){const l=function(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}(t,n);i.slice().forEach((t=>{t.call(e,l)}))}}}const Z=[],Q=[],Y=[],ee=[],te=Promise.resolve();let ne=!1;function ie(e){Y.push(e)}let le=!1;const oe=new Set;function ae(){if(!le){le=!0;do{for(let e=0;e<Z.length;e+=1){const t=Z[e];V(t),se(t.$$)}for(V(null),Z.length=0;Q.length;)Q.pop()();for(let e=0;e<Y.length;e+=1){const t=Y[e];oe.has(t)||(oe.add(t),t())}Y.length=0}while(Z.length);for(;ee.length;)ee.pop()();ne=!1,le=!1,oe.clear()}}function se(e){if(null!==e.fragment){e.update(),w(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ie)}}const ce=new Set;let re;function de(){re={r:0,c:[],p:re}}function ue(){re.r||w(re.c),re=re.p}function pe(e,t){e&&e.i&&(ce.delete(e),e.i(t))}function he(e,t,n,i){if(e&&e.o){if(ce.has(e))return;ce.add(e),re.c.push((()=>{ce.delete(e),i&&(n&&e.d(1),i())})),e.o(t)}}const me="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ge(e){e&&e.c()}function fe(e,t,n){const{fragment:i,on_mount:l,on_destroy:o,after_update:a}=e.$$;i&&i.m(t,n),ie((()=>{const t=l.map($).filter(x);o?o.push(...t):w(t),e.$$.on_mount=[]})),a.forEach(ie)}function be(e,t){const n=e.$$;null!==n.fragment&&(w(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ke(e,t){-1===e.$$.dirty[0]&&(Z.push(e),ne||(ne=!0,te.then(ae)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ve(e,t,n,i,l,o,a=[-1]){const s=W;V(e);const c=t.props||{},r=e.$$={fragment:null,ctx:null,props:o,update:_,not_equal:l,bound:y(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:[]),callbacks:y(),dirty:a,skip_bound:!1};let d=!1;if(r.ctx=n?n(e,c,((t,n,...i)=>{const o=i.length?i[0]:n;return r.ctx&&l(r.ctx[t],r.ctx[t]=o)&&(!r.skip_bound&&r.bound[t]&&r.bound[t](o),d&&ke(e,t)),n})):[],r.update(),d=!0,w(r.before_update),r.fragment=!!i&&i(r.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);r.fragment&&r.fragment.l(e),e.forEach(P)}else r.fragment&&r.fragment.c();t.intro&&pe(e.$$.fragment),fe(e,t.target,t.anchor),ae()}V(s)}class _e{$destroy(){be(this,1),this.$destroy=_}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function $e(e){let t,n,i,l,o,a,s,c;const r=e[15].default,d=A(r,e,e[14],null);return{c(){t=L("div"),n=L("div"),i=L("iframe"),a=N(),s=L("div"),d&&d.c(),i.src!==(l=e[2])&&H(i,"src",l),H(i,"data-test",o="ipm-elm-"+e[0]),H(i,"title",e[1]),H(n,"class","sve_ipm"),B(n,"display",e[4]?"block":"none"),H(s,"data-slot",""),B(s,"display",e[4]?"none":"block"),H(t,"class","svelte wrap")},m(l,o){T(l,t,o),D(t,n),D(n,i),e[16](i),D(t,a),D(t,s),d&&d.m(s,null),c=!0},p(e,t){(!c||4&t[0]&&i.src!==(l=e[2]))&&H(i,"src",l),(!c||1&t[0]&&o!==(o="ipm-elm-"+e[0]))&&H(i,"data-test",o),(!c||2&t[0])&&H(i,"title",e[1]),(!c||16&t[0])&&B(n,"display",e[4]?"block":"none"),d&&d.p&&16384&t[0]&&j(d,r,e,e[14],t,null,null),(!c||16&t[0])&&B(s,"display",e[4]?"none":"block")},i(e){c||(pe(d,e),c=!0)},o(e){he(d,e),c=!1},d(n){n&&P(t),e[16](null),d&&d.d(n)}}}p();const ye=7e3;function we(e,t){if(!e)return e;try{const n=new URL(e);return Object.entries(t).forEach((([e,t])=>n.searchParams.set(e,encodeURIComponent(t)))),n.href}catch(n){return console.log(n),e}}function xe(l,s,c){let r;S(l,i,(e=>c(13,r=e)));let{$$slots:d={},$$scope:u}=s,{id:p}=s,{opmUrl:m}=s,{title:g}=s,{params:f={}}=s,{condition:b=!0}=s,{timeout:k=ye}=s,{route:v}=s;const _=h.createLogger("component.ipm"),$=J(),y="true"===localStorage.getItem("automationDisableIpm"),w=[];let x,E,A,I,j,C,D,T,P,M=null;function L(){!A&&M&&t("opm.message_shown",{message_id:M})}function z(e){_.debug({isIframe:x,ipmUrl:E,event:e,id:p,impId:e&&e.data?e.data.elmId:null}),x&&e&&e.data&&("windowLoaded"!==e.data.action||""===e.data.elmId||e.data.elmId!=p&&e.data.placement!=p||(_.info("ipm content loaded"),R(),N(Math.round((performance.now()-C)/1e3)),p==parseInt(p)&&t("app.ipm_tracking.track",{elem_id:parseInt(p),response_time:-1}),$("success",p)))}function N(e){o.getValueCached("avdef://config/GuiCache/TrackIpmLoadTime",!0).then((t=>{var i;t&&n.timing("IPM loading",!1===e?66666:e,p,!1===(i=e)?"timeout":i>=6e4?"> 60s":i>=3e4?"30-60 s":i>=15e3?"15-30 s":i>=1e4?"10-15 s":i>=5e3?"5-10 s":i>=4e3?"4-5 s":i>=3e3?"3-4 s":i>=2e3?"2-3 s":i>=1e3?"1-2 s":"0-1 s")}))}function R(){D&&clearTimeout(D)}function O(){const e=null!=p?I[p]:null;return e?Promise.resolve(e):m?Promise.resolve(m):!p&&0!==p||"object"==typeof p?Promise.resolve("about:blank"):"string"==typeof p?function(){if(Number.isInteger(parseInt(p)))return console.error("IPM Component tried to load OPM component with an integer in a string:",p),a.getUrl(parseInt(p),f);return t("av.opm.GetUrlForPlacement",{id:p}).then((e=>e?(M=e.msg_id||null,we(e.url||e,f)):(console.warn("OPM URL empty, for ID:",p),""))).catch((e=>(console.error("Ipm component, av.opm.GetUrlForPlacement failed:",e),F("opmCallFailed"),"")))}():Number.isInteger(p)?a.getUrl(parseInt(p),f):(console.error("IPM component could not recognize id:",p,"of type:",typeof p),F("wrongParam"),Promise.resolve(""))}function H(e=null){_.info("updateFrame",{isIframe:x,ipmUrl:E}),c(11,A=null),e&&e.url&&M!=e.msg_id?(L(),M=e.msg_id):"string"!=typeof p&&c(2,E="about:blank"),x&&(R(),(e&&e.url?Promise.resolve(e.url):O()).then((e=>{e=we(e,f),C=performance.now(),_.info("loading ipm url: "+e),E!==e&&(D=setTimeout((()=>{N(!1),F("timeout")}),k),c(2,E=e))})))}function F(e,t=0){c(11,A=e),console.warn("Ipm component error:",A,"for id:",p),$("error",{message:e,code:t,id:p})}return X((()=>{H()})),q((()=>{R(),w.forEach((e=>e())),window.removeEventListener("message",z),window.removeEventListener("beforeunload",L)})),function(){let e;try{e=JSON.parse(localStorage.getItem("IPM_OVERRIDE")),I=e||{},e&&_.info("using override",e)}catch{_.error("Failed to parse localStorage.IPM_OVERRIDE"),I={}}}(),window.addEventListener("beforeunload",L,!1),window.addEventListener("message",z,!1),w.push(e.on("ASW_NOTIF_RELOAD_IPM",(()=>H())),e.on("ipm.reload."+p,(e=>H(e)))),l.$$set=e=>{"id"in e&&c(0,p=e.id),"opmUrl"in e&&c(5,m=e.opmUrl),"title"in e&&c(1,g=e.title),"params"in e&&c(6,f=e.params),"condition"in e&&c(7,b=e.condition),"timeout"in e&&c(8,k=e.timeout),"route"in e&&c(9,v=e.route),"$$scope"in e&&c(14,u=e.$$scope)},l.$$.update=()=>{12288&l.$$.dirty[0]&&null!=r&&(r?!1===T&&(_.debug("went online"),H()):(_.debug("went offline"),R(),F("offline")),c(12,T=r)),2176&l.$$.dirty[0]&&c(10,x=!A&&!y&&b),1544&l.$$.dirty[0]&&null!=v&&x&&(_.debug("change of route: "+v),j.contentWindow&&j.contentWindow.postMessage&&j.contentWindow.postMessage("route:"+v,"*")),1028&l.$$.dirty[0]&&c(4,P=x&&E)},[p,g,E,j,P,m,f,b,k,v,x,A,T,r,u,d,function(e){Q[e?"unshift":"push"]((()=>{j=e,c(3,j)}))}]}class Ee extends _e{constructor(e){super(),ve(this,e,xe,$e,E,{id:0,opmUrl:5,title:1,params:6,condition:7,timeout:8,route:9},[-1,-1])}}const{window:Se}=me;function Ae(e,t,n){const i=e.slice();return i[45]=t[n],i}function Ie(e,t,n){const i=e.slice();return i[48]=t[n],i[50]=n,i}function je(e){let t,n,i,l,o,a,s,c;return{c(){t=L("div"),n=L("kin-icon"),o=N(),a=L("kin-icon"),F(n,"class",i="sve_toaster__icon -"+e[0].icon.cssCls),F(n,"name",l=e[0].icon.name),F(n,"size","40"),F(a,"name",s=e[0].icon.bgName),F(a,"size","80"),F(a,"class",c="sve_toaster__icon__bg -"+e[0].icon.bgName+" "+(e[0].icon.color?"color-"+e[0].icon.color:"")+" -text"),H(t,"class","sve_toaster__icon__container")},m(e,i){T(e,t,i),D(t,n),D(t,o),D(t,a)},p(e,t){1&t[0]&&i!==(i="sve_toaster__icon -"+e[0].icon.cssCls)&&F(n,"class",i),1&t[0]&&l!==(l=e[0].icon.name)&&F(n,"name",l),1&t[0]&&s!==(s=e[0].icon.bgName)&&F(a,"name",s),1&t[0]&&c!==(c="sve_toaster__icon__bg -"+e[0].icon.bgName+" "+(e[0].icon.color?"color-"+e[0].icon.color:"")+" -text")&&F(a,"class",c)},d(e){e&&P(t)}}}function Ce(e){let t,n=e[0].title+"";return{c(){t=L("h2"),H(t,"class","sve_toaster__title h2")},m(e,i){T(e,t,i),t.innerHTML=n},p(e,i){1&i[0]&&n!==(n=e[0].title+"")&&(t.innerHTML=n)},d(e){e&&P(t)}}}function De(e){let t,n=e[0].text+"";return{c(){t=L("p"),H(t,"class","sve_toaster__text p")},m(e,i){T(e,t,i),t.innerHTML=n},p(e,i){1&i[0]&&n!==(n=e[0].text+"")&&(t.innerHTML=n)},d(e){e&&P(t)}}}function Te(e){let t,n,i;return n=new Ee({props:{params:e[0].ipmParams,id:e[0].ipmAction}}),n.$on("error",e[31]),{c(){t=L("div"),ge(n.$$.fragment),H(t,"class","sve_toaster__ipmaction")},m(e,l){T(e,t,l),fe(n,t,null),i=!0},p(e,t){const i={};1&t[0]&&(i.params=e[0].ipmParams),1&t[0]&&(i.id=e[0].ipmAction),n.$set(i)},i(e){i||(pe(n.$$.fragment,e),i=!0)},o(e){he(n.$$.fragment,e),i=!1},d(e){e&&P(t),be(n)}}}function Pe(e){let t,n,i,l,o=e[0].actionText&&Me(e),a=!e[4]&&e[0].actions&&e[0].actions.length&&Le(e),s=e[4]&&Ue(e),c=e[0].dontShowAgain&&Ge(e);return{c(){o&&o.c(),t=N(),a&&a.c(),n=N(),s&&s.c(),i=N(),c&&c.c(),l=R()},m(e,r){o&&o.m(e,r),T(e,t,r),a&&a.m(e,r),T(e,n,r),s&&s.m(e,r),T(e,i,r),c&&c.m(e,r),T(e,l,r)},p(e,r){e[0].actionText?o?o.p(e,r):(o=Me(e),o.c(),o.m(t.parentNode,t)):o&&(o.d(1),o=null),!e[4]&&e[0].actions&&e[0].actions.length?a?a.p(e,r):(a=Le(e),a.c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null),e[4]?s?s.p(e,r):(s=Ue(e),s.c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null),e[0].dontShowAgain?c?c.p(e,r):(c=Ge(e),c.c(),c.m(l.parentNode,l)):c&&(c.d(1),c=null)},i:_,o:_,d(e){o&&o.d(e),e&&P(t),a&&a.d(e),e&&P(n),s&&s.d(e),e&&P(i),c&&c.d(e),e&&P(l)}}}function Me(e){let t,n,i=e[0].actionText+"";return{c(){t=L("p"),n=z(i),H(t,"class","sve_toaster__text p -small -secondary")},m(e,i){T(e,t,i),D(t,n)},p(e,t){1&t[0]&&i!==(i=e[0].actionText+"")&&U(n,i)},d(e){e&&P(t)}}}function Le(e){let t,n,i,l,o,a,s,c,r,d=e[0].actions[0].label+"",u=null!=e[8]&&ze(e),p=1===e[0].actions.length&&e[12]>1&&e[13]&&Ne(e);function h(e,t){return 2!==e[0].actions.length||e[0].hideSecondAction?e[0].actions.length>2||e[0].hideSecondAction&&e[0].actions.length>1?Re:void 0:Oe}let m=h(e),g=m&&m(e);return{c(){t=L("div"),n=L("kin-button"),i=z(d),l=N(),u&&u.c(),a=N(),p&&p.c(),s=N(),g&&g.c(),F(n,"processing",e[7]),F(n,"data-test",o="dd_primary_"+e[0].actions[0].labelTest||"dd_primary_btn"),H(t,"class","sve_toaster__btns")},m(o,d){T(o,t,d),D(t,n),D(n,i),D(n,l),u&&u.m(n,null),D(t,a),p&&p.m(t,null),D(t,s),g&&g.m(t,null),c||(r=O(n,"click",e[27]),c=!0)},p(e,l){1&l[0]&&d!==(d=e[0].actions[0].label+"")&&U(i,d),null!=e[8]?u?u.p(e,l):(u=ze(e),u.c(),u.m(n,null)):u&&(u.d(1),u=null),128&l[0]&&F(n,"processing",e[7]),1&l[0]&&o!==(o="dd_primary_"+e[0].actions[0].labelTest||"dd_primary_btn")&&F(n,"data-test",o),1===e[0].actions.length&&e[12]>1&&e[13]?p?p.p(e,l):(p=Ne(e),p.c(),p.m(t,s)):p&&(p.d(1),p=null),m===(m=h(e))&&g?g.p(e,l):(g&&g.d(1),g=m&&m(e),g&&(g.c(),g.m(t,null)))},d(e){e&&P(t),u&&u.d(),p&&p.d(),g&&g.d(),c=!1,r()}}}function ze(e){let t,n,i;return{c(){t=z("("),n=z(e[8]),i=z(")")},m(e,l){T(e,t,l),T(e,n,l),T(e,i,l)},p(e,t){256&t[0]&&U(n,e[8])},d(e){e&&P(t),e&&P(n),e&&P(i)}}}function Ne(e){let t,n,i,l,o,a,s,c,r=d("detection.action.closeAll")+"";return{c(){t=L("kin-button"),n=z(r),i=z("\n\t\t\t\t\t\t\t("),l=z(e[12]),o=z(")"),F(t,"class","g-margin-left--10"),F(t,"processing",e[7]),F(t,"data-test",a="closeAll"),F(t,"type","secondary")},m(a,r){T(a,t,r),D(t,n),D(t,i),D(t,l),D(t,o),s||(c=O(t,"click",e[17]),s=!0)},p(e,n){4096&n[0]&&U(l,e[12]),128&n[0]&&F(t,"processing",e[7])},d(e){e&&P(t),s=!1,c()}}}function Re(e){let t,n,i,l,o,a,s,c,r,u=d("global.moreOptions")+"",p=e[0].actions,h=[];for(let d=0;d<p.length;d+=1)h[d]=He(Ie(e,p,d));return{c(){t=L("kin-dropdown"),n=L("div"),i=L("kin-button"),l=z(u),o=N(),a=L("kin-icon"),c=N(),r=L("div");for(let e=0;e<h.length;e+=1)h[e].c();F(a,"name","icon-s-controls-arrow-down"),F(a,"size","16"),F(i,"type","secondary"),F(i,"data-test",s="dd_dropdown_btn"),H(n,"slot","dropdown-activator")},m(e,s){T(e,t,s),D(t,n),D(n,i),D(i,l),D(i,o),D(i,a),D(t,c),D(t,r);for(let t=0;t<h.length;t+=1)h[t].m(r,null)},p(e,t){if(2097153&t[0]){let n;for(p=e[0].actions,n=0;n<p.length;n+=1){const i=Ie(e,p,n);h[n]?h[n].p(i,t):(h[n]=He(i),h[n].c(),h[n].m(r,null))}for(;n<h.length;n+=1)h[n].d(1);h.length=p.length}},d(e){e&&P(t),M(h,e)}}}function Oe(e){let t,n,i,l,o,a,s=e[0].actions[1].label+"",c=null!=e[8]&&Fe(e);return{c(){t=L("kin-button"),n=z(s),i=N(),c&&c.c(),F(t,"class","g-margin-left--10"),F(t,"processing",e[7]),F(t,"data-test",l="dd_secondary_"+e[0].actions[1].labelTest||"dd_secondary_btn"),F(t,"type","secondary")},m(l,s){T(l,t,s),D(t,n),D(t,i),c&&c.m(t,null),o||(a=O(t,"click",e[28]),o=!0)},p(e,i){1&i[0]&&s!==(s=e[0].actions[1].label+"")&&U(n,s),null!=e[8]?c?c.p(e,i):(c=Fe(e),c.c(),c.m(t,null)):c&&(c.d(1),c=null),128&i[0]&&F(t,"processing",e[7]),1&i[0]&&l!==(l="dd_secondary_"+e[0].actions[1].labelTest||"dd_secondary_btn")&&F(t,"data-test",l)},d(e){e&&P(t),c&&c.d(),o=!1,a()}}}function He(e){let t,n=0!==e[50]&&function(e){let t,n,i,l,o,a,s=e[48].label+"";function c(){return e[29](e[50])}return{c(){t=L("kin-dropdown-item"),n=z(s),i=N(),F(t,"data-test",l="dd_dropdown_"+e[48].labelTest||"dd_dropdown_"+e[50])},m(e,l){T(e,t,l),D(t,n),D(t,i),o||(a=O(t,"click",c),o=!0)},p(i,o){e=i,1&o[0]&&s!==(s=e[48].label+"")&&U(n,s),1&o[0]&&l!==(l="dd_dropdown_"+e[48].labelTest||"dd_dropdown_"+e[50])&&F(t,"data-test",l)},d(e){e&&P(t),o=!1,a()}}}(e);return{c(){n&&n.c(),t=R()},m(e,i){n&&n.m(e,i),T(e,t,i)},p(e,t){0!==e[50]&&n.p(e,t)},d(e){n&&n.d(e),e&&P(t)}}}function Fe(e){let t,n,i;return{c(){t=z("("),n=z(e[8]),i=z(")")},m(e,l){T(e,t,l),T(e,n,l),T(e,i,l)},p(e,t){256&t[0]&&U(n,e[8])},d(e){e&&P(t),e&&P(n),e&&P(i)}}}function Ue(e){let t,n,i,l=e[5]&&e[5].text&&Be(e);return{c(){t=L("div"),n=L("kin-progress"),i=N(),l&&l.c(),F(n,"percentage","unknown"),H(t,"class","sve_toaster__progress")},m(e,o){T(e,t,o),D(t,n),D(t,i),l&&l.m(t,null)},p(e,n){e[5]&&e[5].text?l?l.p(e,n):(l=Be(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},d(e){e&&P(t),l&&l.d()}}}function Be(e){let t,n,i=e[5].text+"";return{c(){t=L("p"),n=z(i),H(t,"class","g-margin-top--10 p -small -secondary")},m(e,i){T(e,t,i),D(t,n)},p(e,t){32&t[0]&&i!==(i=e[5].text+"")&&U(n,i)},d(e){e&&P(t)}}}function Ge(e){let t,n,i,l,o,a,s,c=e[0].dontShowAgain.label+"";return{c(){t=L("p"),n=L("input"),i=N(),l=L("label"),o=z(c),H(n,"type","checkbox"),H(n,"id","detection_dontShowAgain"),H(n,"class","checkbox"),H(l,"for","detection_dontShowAgain"),H(l,"class","g-margin-left--5"),H(t,"class","sve_toaster__text p  g-margin-top--10")},m(c,r){T(c,t,r),D(t,n),D(t,i),D(t,l),D(l,o),a||(s=O(n,"click",e[30]),a=!0)},p(e,t){1&t[0]&&c!==(c=e[0].dontShowAgain.label+"")&&U(o,c)},d(e){e&&P(t),a=!1,s()}}}function We(e){let t,n,i,l,o;function a(e,t){return e[2]?Ke:Ve}let s=a(e),c=s(e),r=e[2]&&Xe(e);return{c(){t=L("button"),c.c(),n=N(),r&&r.c(),i=R(),H(t,"class","span -small -secondary g-cursor--pointer"),H(t,"data-test","btn_toggleDetails")},m(a,s){T(a,t,s),c.m(t,null),T(a,n,s),r&&r.m(a,s),T(a,i,s),l||(o=O(t,"click",e[18]),l=!0)},p(e,n){s===(s=a(e))&&c?c.p(e,n):(c.d(1),c=s(e),c&&(c.c(),c.m(t,null))),e[2]?r?r.p(e,n):(r=Xe(e),r.c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},d(e){e&&P(t),c.d(),e&&P(n),r&&r.d(e),e&&P(i),l=!1,o()}}}function Ve(e){let t,n,i,l=d("global.showDetails")+"";return{c(){t=z(l),n=N(),i=L("kin-icon"),F(i,"name","icon-s-controls-arrow-down"),F(i,"size","16")},m(e,l){T(e,t,l),T(e,n,l),T(e,i,l)},p:_,d(e){e&&P(t),e&&P(n),e&&P(i)}}}function Ke(e){let t,n,i,l=d("global.hideDetails")+"";return{c(){t=z(l),n=N(),i=L("kin-icon"),F(i,"name","icon-s-controls-arrow-up"),F(i,"size","16")},m(e,l){T(e,t,l),T(e,n,l),T(e,i,l)},p:_,d(e){e&&P(t),e&&P(n),e&&P(i)}}}function Xe(e){let t,n,i,l,o=e[0].details,a=[];for(let r=0;r<o.length;r+=1)a[r]=Qe(Ae(e,o,r));let s=e[5]&&Ye(e),c=e[6]&&tt(e);return{c(){t=L("div"),n=L("dl");for(let e=0;e<a.length;e+=1)a[e].c();i=R(),s&&s.c(),l=R(),c&&c.c(),H(n,"class","desclist -short"),H(t,"class","sve_toaster__details")},m(e,o){T(e,t,o),D(t,n);for(let t=0;t<a.length;t+=1)a[t].m(n,null);D(n,i),s&&s.m(n,null),D(n,l),c&&c.m(n,null)},p(e,t){if(1&t[0]){let l;for(o=e[0].details,l=0;l<o.length;l+=1){const s=Ae(e,o,l);a[l]?a[l].p(s,t):(a[l]=Qe(s),a[l].c(),a[l].m(n,i))}for(;l<a.length;l+=1)a[l].d(1);a.length=o.length}e[5]?s?s.p(e,t):(s=Ye(e),s.c(),s.m(n,l)):s&&(s.d(1),s=null),e[6]?c?c.p(e,t):(c=tt(e),c.c(),c.m(n,null)):c&&(c.d(1),c=null)},d(e){e&&P(t),M(a,e),s&&s.d(),c&&c.d()}}}function qe(e){let t,n,i,l=e[45].title+"";function o(e,t){return"scoreMeter"===e[45].type&&4>e[45].value?Ze:Je}let a=o(e),s=a(e);return{c(){t=L("dt"),n=z(l),s.c(),i=R()},m(e,l){T(e,t,l),D(t,n),s.m(e,l),T(e,i,l)},p(e,t){1&t[0]&&l!==(l=e[45].title+"")&&U(n,l),a===(a=o(e))&&s?s.p(e,t):(s.d(1),s=a(e),s&&(s.c(),s.m(i.parentNode,i)))},d(e){e&&P(t),s.d(e),e&&P(i)}}}function Je(e){let t,n,i,l=e[45].value+"";return{c(){t=L("dd"),n=z(l),H(t,"data-test",i=e[45].testValue)},m(e,i){T(e,t,i),D(t,n)},p(e,o){1&o[0]&&l!==(l=e[45].value+"")&&U(n,l),1&o[0]&&i!==(i=e[45].testValue)&&H(t,"data-test",i)},d(e){e&&P(t)}}}function Ze(e){let t,n,i,l,o,a,s,c,r;return{c(){t=L("dd"),n=L("div"),i=L("div"),l=N(),o=L("div"),a=N(),s=L("div"),r=N(),H(n,"class",c="scoremeter -val-"+e[45].value)},m(e,c){T(e,t,c),D(t,n),D(n,i),D(n,l),D(n,o),D(n,a),D(n,s),D(t,r)},p(e,t){1&t[0]&&c!==(c="scoremeter -val-"+e[45].value)&&H(n,"class",c)},d(e){e&&P(t)}}}function Qe(e){let t,n=e[45].value&&qe(e);return{c(){n&&n.c(),t=R()},m(e,i){n&&n.m(e,i),T(e,t,i)},p(e,i){e[45].value?n?n.p(e,i):(n=qe(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&P(t)}}}function Ye(e){let t,n,i,l,o,a=e[5].text+"",s=e[5].action&&et(e);return{c(){t=L("dt"),t.textContent=`${d("global.status")}`,n=L("dd"),i=z(a),l=N(),s&&s.c(),o=N(),H(n,"data-test","status")},m(e,a){T(e,t,a),T(e,n,a),D(n,i),D(n,l),s&&s.m(n,null),D(n,o)},p(e,t){32&t[0]&&a!==(a=e[5].text+"")&&U(i,a),e[5].action?s?s.p(e,t):(s=et(e),s.c(),s.m(n,o)):s&&(s.d(1),s=null)},d(e){e&&P(t),e&&P(n),s&&s.d()}}}function et(e){let t,n,i,l,o,a,s=e[5].actionLabel+"";return{c(){t=z("| "),n=L("button"),i=z(s),H(n,"class","a"),H(n,"data-test",l="scn_"+e[5].actionLabelGa)},m(l,s){T(l,t,s),T(l,n,s),D(n,i),o||(a=O(n,"click",e[19]),o=!0)},p(e,t){32&t[0]&&s!==(s=e[5].actionLabel+"")&&U(i,s),32&t[0]&&l!==(l="scn_"+e[5].actionLabelGa)&&H(n,"data-test",l)},d(e){e&&P(t),e&&P(n),o=!1,a()}}}function tt(e){let t,n,i,l,o,a,s,c=e[6].text+"";return{c(){t=L("dt"),t.textContent=`${d("global.option")}`,n=L("dd"),i=L("button"),l=z(c),H(i,"class","a"),H(i,"data-test",o="scn_"+e[6].actionLabelGa),H(n,"data-test","option")},m(o,c){T(o,t,c),T(o,n,c),D(n,i),D(i,l),a||(s=O(i,"click",e[20]),a=!0)},p(e,t){64&t[0]&&c!==(c=e[6].text+"")&&U(l,c),64&t[0]&&o!==(o="scn_"+e[6].actionLabelGa)&&H(i,"data-test",o)},d(e){e&&P(t),e&&P(n),a=!1,s()}}}function nt(e){let t,n,i,l,o=e[10]&&it(e),a=e[12]>1&&lt(e);return{c(){t=L("div"),n=L("div"),o&&o.c(),i=N(),l=L("div"),a&&a.c(),H(t,"class","sve_toaster__footer")},m(e,s){T(e,t,s),D(t,n),o&&o.m(n,null),D(t,i),D(t,l),a&&a.m(l,null)},p(e,t){e[10]?o?o.p(e,t):(o=it(e),o.c(),o.m(n,null)):o&&(o.d(1),o=null),e[12]>1?a?a.p(e,t):(a=lt(e),a.c(),a.m(l,null)):a&&(a.d(1),a=null)},d(e){e&&P(t),o&&o.d(),a&&a.d()}}}function it(e){let t,n,i,l,o,a,s,c,r,u,p;return{c(){t=L("span"),n=z(e[10]),i=N(),l=L("kin-tooltip"),o=L("span"),o.innerHTML='<kin-icon name="icon-m-action-info" size="20"></kin-icon>',a=N(),s=L("div"),c=L("p"),c.textContent=`${d("detection.alertid.title")}`,r=N(),u=L("p"),u.textContent=`${d("detection.alertid.desc")}`,p=L("p"),H(t,"class","span -small -secondary"),H(o,"slot","tooltip-activator"),H(c,"class","p strong"),H(u,"class","p -secondary -small"),H(s,"slot","tooltip")},m(e,d){T(e,t,d),D(t,n),T(e,i,d),T(e,l,d),D(l,o),D(l,a),D(l,s),D(s,c),D(s,r),D(s,u),D(s,p)},p(e,t){1024&t[0]&&U(n,e[10])},d(e){e&&P(t),e&&P(i),e&&P(l)}}}function lt(e){let t,n,i,l,o,a,s,c,r,u,p,h,m,g=e[11]+1+"";return{c(){t=L("span"),t.textContent=`${d("detection.more.detections")}`,n=N(),i=L("kin-button"),l=L("kin-icon"),o=N(),a=z(g),s=z("\n\t\t\t\t\t/\n\t\t\t\t\t"),c=L("kin-button"),r=z(e[12]),u=N(),p=L("kin-icon"),H(t,"class","span -small -secondary"),F(l,"name","icon-s-controls-arrow-left"),F(l,"size","16"),F(l,"rtlflip","true"),F(i,"type","blank"),F(i,"size","small"),F(i,"class","sve_toaster__paginator g-margin-left--5"),F(p,"name","icon-s-controls-arrow-right"),F(p,"size","16"),F(p,"rtlflip","true"),F(c,"type","blank"),F(c,"size","small"),F(c,"class","sve_toaster__paginator")},m(d,g){T(d,t,g),T(d,n,g),T(d,i,g),D(i,l),D(i,o),D(i,a),T(d,s,g),T(d,c,g),D(c,r),D(c,u),D(c,p),h||(m=[O(i,"click",e[15]),O(c,"click",e[16])],h=!0)},p(e,t){2048&t[0]&&g!==(g=e[11]+1+"")&&U(a,g),4096&t[0]&&U(r,e[12])},d(e){e&&P(t),e&&P(n),e&&P(i),e&&P(s),e&&P(c),h=!1,w(m)}}}function ot(e){let t,n,i,l,o,a,s,c,r,u,p,h,m,g,f,b,k,v,_,$,y,x,E=e[0].icon&&je(e),S=e[0].title&&Ce(e);const I=e[26].default,M=A(I,e,e[25],null);let z=e[0].text&&De(e);const R=[Pe,Te],F=[];function U(e,t){return null==e[0].ipmAction||e[3]?0:1}g=U(e),f=F[g]=R[g](e);let W=e[0].details&&e[0].details.length&&We(e),V=(e[10]||e[12]>1)&&nt(e);return{c(){t=L("div"),n=L("div"),i=L("h1"),i.innerHTML='<span class="logo -white -width-70"></span>',l=N(),o=L("div"),a=L("button"),c=N(),r=L("div"),E&&E.c(),u=N(),S&&S.c(),p=N(),M&&M.c(),h=N(),z&&z.c(),m=N(),f.c(),b=N(),W&&W.c(),v=N(),V&&V.c(),H(i,"class","nui_logo"),H(a,"class","nui_controls__item -close nui_caption_client g-cursor--pointer"),H(a,"title",s=d("global.closeModalWindow")),H(o,"class","nui_controls"),H(n,"class","nui_titlebar -toaster nui_caption"),H(r,"class",k="sve_toaster__main "+(e[0].color?"-"+e[0].color:"")),G(r,"-auto-v-scroll",e[9]),H(t,"class","sve_toaster -detection"),B(t,"width",e[1]+"px")},m(s,d){T(s,t,d),D(t,n),D(n,i),D(n,l),D(n,o),D(o,a),D(t,c),D(t,r),E&&E.m(r,null),D(r,u),S&&S.m(r,null),D(r,p),M&&M.m(r,null),D(r,h),z&&z.m(r,null),D(r,m),F[g].m(r,null),D(r,b),W&&W.m(r,null),D(t,v),V&&V.m(t,null),$=!0,y||(x=[O(Se,"keydown",e[14]),O(a,"click",e[17]),C(_=e[22].call(null,t))],y=!0)},p(e,n){e[0].icon?E?E.p(e,n):(E=je(e),E.c(),E.m(r,u)):E&&(E.d(1),E=null),e[0].title?S?S.p(e,n):(S=Ce(e),S.c(),S.m(r,p)):S&&(S.d(1),S=null),M&&M.p&&33554432&n[0]&&j(M,I,e,e[25],n,null,null),e[0].text?z?z.p(e,n):(z=De(e),z.c(),z.m(r,m)):z&&(z.d(1),z=null);let i=g;g=U(e),g===i?F[g].p(e,n):(de(),he(F[i],1,1,(()=>{F[i]=null})),ue(),f=F[g],f?f.p(e,n):(f=F[g]=R[g](e),f.c()),pe(f,1),f.m(r,b)),e[0].details&&e[0].details.length?W?W.p(e,n):(W=We(e),W.c(),W.m(r,null)):W&&(W.d(1),W=null),(!$||1&n[0]&&k!==(k="sve_toaster__main "+(e[0].color?"-"+e[0].color:"")))&&H(r,"class",k),513&n[0]&&G(r,"-auto-v-scroll",e[9]),e[10]||e[12]>1?V?V.p(e,n):(V=nt(e),V.c(),V.m(t,null)):V&&(V.d(1),V=null),(!$||2&n[0])&&B(t,"width",e[1]+"px")},i(e){$||(pe(M,e),pe(f),$=!0)},o(e){he(M,e),he(f),$=!1},d(e){e&&P(t),E&&E.d(),S&&S.d(),M&&M.d(e),z&&z.d(),F[g].d(),W&&W.d(),V&&V.d(),y=!1,w(x)}}}function at(e,t,i){let{$$slots:o={},$$scope:a}=t;const c=J();let r,d,u,p,{windowWidth:h=600}=t,{config:m=null}=t,{windowClose:g=null}=t,f=!1,b=null,k=null,v=!1,_=!1,$=!1,y=!1,w=!1;function x(e=!1){const t=m&&m.closeResponse;g?g(t):(c("close",t),(e||P<=1)&&l.close())}function E(e){S(m.actions[e],e)}function S(e,t){const l=e.action&&e.action(),o=Date.now();if(k&&k(),null==l)A(e.nextConfig,o,e.minDuration);else{const n=1===t&&2===m.actions.length&&!m.hideSecondAction;e.status||0!==t&&!n?(i(5,d=e.status),i(6,u=e.option),i(4,_=!0)):i(7,$=!0),l.then((t=>{A(t,o,e.minDuration)})).catch((t=>{A(t,o,e.minDuration)}))}e.labelGa&&n.event("DetectionDialog","Click",e.labelGa)}function A(e,t,n){const l=Math.max(n-(Date.now()-t),0);if(b&&b(),l>0){const t=window.setTimeout((()=>{!e&&P>0?x():i(0,m=e),b&&b()}),l);b=()=>{window.clearTimeout(t),b=null}}else!e&&P>0?x():i(0,m=e)}function I(e){e?(i(4,_=m.progress),i(5,d=m.status),i(6,u=m.option),i(7,$=!1),function(){if(k&&k(),m.actions&&m.actions.length&&m.actions[0].countdown){i(8,p=m.actions[0].countdown);const e=window.setInterval((function(){p?i(8,p--,p):S(m.actions[0],0)}),1e3);k=function(){window.clearInterval(e),i(8,p=null),k=null}}}(),m.icon?(r="object"!=typeof m.icon?{name:m.icon}:Object.assign({},m.icon),r.name||(r.name="red"===m.color?"icon-s-controls-close":"icon-s-status-check"),r.bgName=r.bgName||"circle",!r.color&&m.color&&(r.color="red"===m.color?"critical":"ok")):r=null):x()}function j(e){w&&(w=!1,i(9,y=e.scrollHeight>window.screen.availHeight)),l.resize(h,Math.min(e.scrollHeight,window.screen.availHeight))}X((()=>{s.play("threat")})),q((()=>{b&&b(),k&&k()}));let C,D,T,P,M;return e.$$set=e=>{"windowWidth"in e&&i(1,h=e.windowWidth),"config"in e&&i(0,m=e.config),"windowClose"in e&&i(23,g=e.windowClose),"$$scope"in e&&i(25,a=e.$$scope)},e.$$.update=()=>{1&e.$$.dirty[0]&&I(m),1&e.$$.dirty[0]&&function(e){const t=l.getUrlParams();null!=e&&n.view(t.module+"_"+t.view+(e?"_"+e:""))}(m&&m.trackerTitle),1&e.$$.dirty[0]&&i(24,C=m&&m.detectionInfo||{}),16777216&e.$$.dirty[0]&&i(10,D=C.id||""),16777216&e.$$.dirty[0]&&i(11,T=C.index||0),16777216&e.$$.dirty[0]&&i(12,P=C.total||0),16777216&e.$$.dirty[0]&&i(13,M=C.showCloseAllBtn||!1)},[m,h,f,v,_,d,u,$,p,y,D,T,P,M,function(e){const t=m.actions;t&&t.length&&t.some(((t,n)=>{if(t.shortcut&&t.shortcut.code===e.code&&!!t.shortcut.ctrlKey===e.ctrlKey&&!!t.shortcut.shiftKey===e.shiftKey&&!!t.shortcut.altKey===e.altKey&&!!t.shortcut.metaKey===e.metaKey)return S(t,n),!0}))},function(){c("prev")},function(){c("next")},function(){!function(e=!1){n.event("DetectionDialog","Close"),c("ignore"),x(e)}(!0)},function(){i(2,f=!f),w=!0},function(){const e=d.actionLabelGa,t=d.action;e&&n.event("DetectionDialog","Click",e),"function"==typeof t?t():console.error("[SvelteComponents] {DetectionDialog} StatusAction is not function")},function(){const e=u.actionLabelGa,t=u.action;e&&n.event("DetectionDialog","Click",e),"function"==typeof t?t():console.error("[SvelteComponents] {DetectionDialog} OptionAction is not function")},E,function(e){j(e);const t=new MutationObserver(j.bind(this,e));return t.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),{destroy:t.disconnect.bind(t)}},g,C,a,o,()=>E(0),()=>E(1),e=>E(e),e=>m.dontShowAgain.action(e.target.checked),()=>i(3,v=!0)]}class st extends _e{constructor(e){super(),ve(this,e,at,ot,E,{windowWidth:1,config:0,windowClose:23},[-1,-1])}}const ct=e=>({}),rt=e=>({}),dt=e=>({}),ut=e=>({}),pt=e=>({}),ht=e=>({}),mt=e=>({}),gt=e=>({});function ft(e){let t,n,i;return{c(){t=L("div"),H(t,"class","sve_modal__overlay__close")},m(l,o){T(l,t,o),n||(i=O(t,"click",e[14]),n=!0)},p:_,d(e){e&&P(t),n=!1,i()}}}function bt(e){let t,n;return{c(){t=L("h2"),n=z(e[0]),H(t,"class","sve_modal__title")},m(e,i){T(e,t,i),D(t,n)},p(e,t){1&t&&U(n,e[0])},d(e){e&&P(t)}}}function kt(e){let t,n;return{c(){t=L("p"),n=z(e[1]),H(t,"class","sve_modal__subtitle")},m(e,i){T(e,t,i),D(t,n)},p(e,t){2&t&&U(n,e[1])},d(e){e&&P(t)}}}function vt(e){let t,n,i,l,o;return{c(){t=L("button"),n=L("kin-icon"),F(n,"name","icon-s-controls-close"),F(n,"size","12"),H(t,"class","sve_modal__close"),H(t,"data-test","close"),H(t,"title",i=d("global.closeModalWindow"))},m(i,a){T(i,t,a),D(t,n),l||(o=O(t,"click",e[15]),l=!0)},p:_,d(e){e&&P(t),l=!1,o()}}}function _t(e){let t,n,i;const l=e[13]["modal-ipm"],o=A(l,e,e[12],rt);return{c(){t=L("div"),o&&o.c(),H(t,"class","sve_modal__ipm"),H(t,"style",n=`${e[7]} margin-top: 0;`)},m(e,n){T(e,t,n),o&&o.m(t,null),i=!0},p(e,a){o&&o.p&&4096&a&&j(o,l,e,e[12],a,ct,rt),(!i||128&a&&n!==(n=`${e[7]} margin-top: 0;`))&&H(t,"style",n)},i(e){i||(pe(o,e),i=!0)},o(e){he(o,e),i=!1},d(e){e&&P(t),o&&o.d(e)}}}function $t(e){let t,n,i,l,o,a,s,c,r,d,u,p,h,g,f,b,k,v,_=e[3]&&ft(e),$=e[0]&&bt(e),y=e[1]&&kt(e);const x=e[13]["modal-header"],E=A(x,e,e[12],gt);let S=e[3]&&vt(e);const I=e[13]["modal-content"],M=A(I,e,e[12],ht),z=e[13]["modal-footer"],R=A(z,e,e[12],ut);let F=e[5]&&_t(e);return{c(){t=L("div"),_&&_.c(),n=N(),i=L("div"),l=L("div"),$&&$.c(),o=N(),y&&y.c(),a=N(),E&&E.c(),s=N(),S&&S.c(),c=N(),r=L("div"),M&&M.c(),d=N(),u=L("div"),R&&R.c(),p=N(),F&&F.c(),H(l,"class","sve_modal__header"),H(r,"class","sve_modal__content"),H(u,"class","sve_modal__footer"),H(i,"class","sve_modal"),H(i,"style",h=`${e[6]}`),H(t,"class",g="sve_modal__overlay "+e[4]),H(t,"data-test",e[2])},m(h,g){T(h,t,g),_&&_.m(t,null),D(t,n),D(t,i),D(i,l),$&&$.m(l,null),D(l,o),y&&y.m(l,null),D(l,a),E&&E.m(l,null),D(i,s),S&&S.m(i,null),D(i,c),D(i,r),M&&M.m(r,null),D(i,d),D(i,u),R&&R.m(u,null),D(i,p),F&&F.m(i,null),b=!0,k||(v=[O(window,"keydown",e[9],!0),C(f=m.call(null,t))],k=!0)},p(e,[s]){e[3]?_?_.p(e,s):(_=ft(e),_.c(),_.m(t,n)):_&&(_.d(1),_=null),e[0]?$?$.p(e,s):($=bt(e),$.c(),$.m(l,o)):$&&($.d(1),$=null),e[1]?y?y.p(e,s):(y=kt(e),y.c(),y.m(l,a)):y&&(y.d(1),y=null),E&&E.p&&4096&s&&j(E,x,e,e[12],s,mt,gt),e[3]?S?S.p(e,s):(S=vt(e),S.c(),S.m(i,c)):S&&(S.d(1),S=null),M&&M.p&&4096&s&&j(M,I,e,e[12],s,pt,ht),R&&R.p&&4096&s&&j(R,z,e,e[12],s,dt,ut),e[5]?F?(F.p(e,s),32&s&&pe(F,1)):(F=_t(e),F.c(),pe(F,1),F.m(i,null)):F&&(de(),he(F,1,1,(()=>{F=null})),ue()),(!b||64&s&&h!==(h=`${e[6]}`))&&H(i,"style",h),(!b||16&s&&g!==(g="sve_modal__overlay "+e[4]))&&H(t,"class",g),(!b||4&s)&&H(t,"data-test",e[2])},i(e){b||(pe(E,e),pe(M,e),pe(R,e),pe(F),b=!0)},o(e){he(E,e),he(M,e),he(R,e),he(F),b=!1},d(e){e&&P(t),_&&_.d(),$&&$.d(),y&&y.d(),E&&E.d(e),S&&S.d(),M&&M.d(e),R&&R.d(e),F&&F.d(),k=!1,w(v)}}}function yt(e,t,n){let{$$slots:i={},$$scope:l}=t;const o=J();let a,{title:s=null}=t,{subtitle:c=null}=t,{testId:r=""}=t,{closable:d=!0}=t,{cssCls:u=""}=t,{ipm:p=!1}=t,{width:h}=t,{ipmHeight:m}=t,g="",f="";X((()=>{a=document.activeElement})),q((()=>{document.body.contains(a)&&a.focus()}));return e.$$set=e=>{"title"in e&&n(0,s=e.title),"subtitle"in e&&n(1,c=e.subtitle),"testId"in e&&n(2,r=e.testId),"closable"in e&&n(3,d=e.closable),"cssCls"in e&&n(4,u=e.cssCls),"ipm"in e&&n(5,p=e.ipm),"width"in e&&n(10,h=e.width),"ipmHeight"in e&&n(11,m=e.ipmHeight),"$$scope"in e&&n(12,l=e.$$scope)},e.$$.update=()=>{1024&e.$$.dirty&&h&&n(6,g=`width: ${h}px;`),2080&e.$$.dirty&&p&&m&&n(7,f=`height: ${m}px;`)},[s,c,r,d,u,p,g,f,o,function(e){"Escape"===e.code&&(o("close"),e.preventDefault(),e.stopPropagation())},h,m,l,i,()=>o("close"),()=>o("close")]}class wt extends _e{constructor(e){super(),ve(this,e,yt,$t,E,{title:0,subtitle:1,testId:2,closable:3,cssCls:4,ipm:5,width:10,ipmHeight:11})}}const{document:xt}=me;const Et=e=>({}),St=e=>({}),At=e=>({}),It=e=>({}),jt=e=>({}),Ct=e=>({}),Dt=e=>({}),Tt=e=>({}),Pt=e=>({}),Mt=e=>({}),Lt=e=>({}),zt=e=>({});function Nt(e){let t,n,i,l,o;const a=[Ot,Rt],s=[];function c(e,t){return""!=e[0]?0:1}return t=c(e),n=s[t]=a[t](e),{c(){n.c(),i=N(),l=L("kin-loading"),F(l,"fullscreen","true"),F(l,"class","svelte-kh5tai")},m(e,n){s[t].m(e,n),T(e,i,n),T(e,l,n),o=!0},p(e,l){let o=t;t=c(e),t===o?s[t].p(e,l):(de(),he(s[o],1,1,(()=>{s[o]=null})),ue(),n=s[t],n?n.p(e,l):(n=s[t]=a[t](e),n.c()),pe(n,1),n.m(i.parentNode,i))},i(e){o||(pe(n),o=!0)},o(e){he(n),o=!1},d(e){s[t].d(e),e&&P(i),e&&P(l)}}}function Rt(e){let t,n;const i=e[16]["page-title"],l=A(i,e,e[15],zt);return{c(){t=L("div"),l&&l.c(),H(t,"class","kin_loading__title svelte-kh5tai"),B(t,"color","transparent")},m(e,i){T(e,t,i),l&&l.m(t,null),n=!0},p(e,t){l&&l.p&&32768&t&&j(l,i,e,e[15],t,Lt,zt)},i(e){n||(pe(l,e),n=!0)},o(e){he(l,e),n=!1},d(e){e&&P(t),l&&l.d(e)}}}function Ot(e){let t;return{c(){t=L("h1"),H(t,"class","kin_loading__title svelte-kh5tai"),B(t,"color","transparent")},m(n,i){T(n,t,i),t.innerHTML=e[0]},p(e,n){1&n&&(t.innerHTML=e[0])},i:_,o:_,d(e){e&&P(t)}}}function Ht(e){let t,n;const i=e[16]["page-title"],l=A(i,e,e[15],Tt);return{c(){t=L("div"),l&&l.c(),H(t,"class","kin_header__title svelte-kh5tai")},m(e,i){T(e,t,i),l&&l.m(t,null),n=!0},p(e,t){l&&l.p&&32768&t&&j(l,i,e,e[15],t,Dt,Tt)},i(e){n||(pe(l,e),n=!0)},o(e){he(l,e),n=!1},d(e){e&&P(t),l&&l.d(e)}}}function Ft(e){let t;return{c(){t=L("h1"),H(t,"class","kin_header__title svelte-kh5tai")},m(n,i){T(n,t,i),t.innerHTML=e[0]},p(e,n){1&n&&(t.innerHTML=e[0])},i:_,o:_,d(e){e&&P(t)}}}function Ut(e){let t,n,i;const l=e[16].controls,o=A(l,e,e[15],Ct);let a=e[4]&&e[5]&&Bt(e);return{c(){t=L("div"),o&&o.c(),n=N(),a&&a.c(),H(t,"class","kin_header__controls svelte-kh5tai")},m(e,l){T(e,t,l),o&&o.m(t,null),D(t,n),a&&a.m(t,null),i=!0},p(e,n){o&&o.p&&32768&n&&j(o,l,e,e[15],n,jt,Ct),e[4]&&e[5]?a?a.p(e,n):(a=Bt(e),a.c(),a.m(t,null)):a&&(a.d(1),a=null)},i(e){i||(pe(o,e),i=!0)},o(e){he(o,e),i=!1},d(e){e&&P(t),o&&o.d(e),a&&a.d()}}}function Bt(e){let t,n;return{c(){t=L("div"),n=z(e[5]),H(t,"class","kin_header__tooltip tooltip -onboarding -arrow-top svelte-kh5tai")},m(e,i){T(e,t,i),D(t,n)},p(e,t){32&t&&U(n,e[5])},d(e){e&&P(t)}}}function Gt(e){let t,n,i,l,o;return{c(){t=L("button"),n=L("kin-icon"),F(n,"name","icon-s-controls-arrow-left"),F(n,"size","20"),F(n,"class","svelte-kh5tai"),H(t,"class","kin_back-btn svelte-kh5tai"),H(t,"title",i=d("global.goBack"))},m(i,a){T(i,t,a),D(t,n),l||(o=O(t,"click",e[17]),l=!0)},p:_,d(e){e&&P(t),l=!1,o()}}}function Wt(e){let t,n,i,l;return{c(){t=L("a"),n=L("kin-icon"),F(n,"name","icon-s-controls-arrow-left"),F(n,"size","20"),F(n,"class","svelte-kh5tai"),H(t,"class","kin_back-btn svelte-kh5tai"),H(t,"href",i=e[9]||"#Dashboard"),H(t,"title",l=d("global.goBack"))},m(e,i){T(e,t,i),D(t,n)},p(e,n){512&n&&i!==(i=e[9]||"#Dashboard")&&H(t,"href",i)},d(e){e&&P(t)}}}function Vt(e){let t,n,i;return{c(){t=L("a"),n=L("kin-icon"),F(n,"name","icon-s-settings-button"),F(n,"size","20"),F(n,"class","svelte-kh5tai"),H(t,"class","kin_settings-btn svelte-kh5tai"),H(t,"href",e[1]),H(t,"title",i=d("settings"))},m(e,i){T(e,t,i),D(t,n)},p(e,n){2&n&&H(t,"href",e[1])},d(e){e&&P(t)}}}function Kt(e){let t,n,i,l,o;const a=e[16]["page-content"],s=A(a,e,e[15],St);return{c(){t=L("div"),s&&s.c(),H(t,"class","kin_page__content svelte-kh5tai"),G(t,"-disabled",e[4])},m(a,c){T(a,t,c),s&&s.m(t,null),i=!0,l||(o=C(n=e[13].call(null,t)),l=!0)},p(e,n){s&&s.p&&32768&n&&j(s,a,e,e[15],n,Et,St),16&n&&G(t,"-disabled",e[4])},i(e){i||(pe(s,e),i=!0)},o(e){he(s,e),i=!1},d(e){e&&P(t),s&&s.d(e),l=!1,o()}}}function Xt(e){let t,n;const i=e[16].upsell,l=A(i,e,e[15],It);return{c(){t=L("div"),l&&l.c(),H(t,"class","kin_page__content svelte-kh5tai")},m(e,i){T(e,t,i),l&&l.m(t,null),n=!0},p(e,t){l&&l.p&&32768&t&&j(l,i,e,e[15],t,At,It)},i(e){n||(pe(l,e),n=!0)},o(e){he(l,e),n=!1},d(e){e&&P(t),l&&l.d(e)}}}function qt(e){let t,n,i,l,o,a,s,c,r,d,u,p,h,m,g,f,b,k=e[10]&&Nt(e);const v=e[16].breadcrumbs,_=A(v,e,e[15],Mt),$=[Ft,Ht],y=[];function w(e,t){return e[0]?0:1}c=w(e),r=y[c]=$[c](e);let x=!e[3]&&Ut(e);function E(e,t){return e[7]&&!e[8]?Wt:e[8]?Gt:void 0}let S=E(e),I=S&&S(e),C=e[1]&&!e[3]&&Vt(e);const M=[Xt,Kt],z=[];function R(e,t){return e[3]?0:1}return m=R(e),g=z[m]=M[m](e),{c(){t=L("div"),k&&k.c(),n=N(),i=L("div"),l=L("header"),o=L("div"),_&&_.c(),a=N(),s=L("div"),r.c(),d=N(),x&&x.c(),u=N(),I&&I.c(),p=N(),C&&C.c(),h=N(),g.c(),H(o,"class","kin_header__crumbs crumbs svelte-kh5tai"),H(s,"class","kin_header__content svelte-kh5tai"),H(l,"class","kin_header svelte-kh5tai"),H(i,"class","svelte-kh5tai"),G(i,"invisible",e[10]),H(t,"class",f="kin_page "+("ltr"!=e[11]?"-"+e[11]:"")+" "+(e[6]?"-"+e[6]:"")+" "+e[2]+" svelte-kh5tai")},m(e,r){T(e,t,r),k&&k.m(t,null),D(t,n),D(t,i),D(i,l),D(l,o),_&&_.m(o,null),D(l,a),D(l,s),y[c].m(s,null),D(s,d),x&&x.m(s,null),D(l,u),I&&I.m(l,null),D(l,p),C&&C.m(l,null),D(i,h),z[m].m(i,null),b=!0},p(e,[o]){e[10]?k?(k.p(e,o),1024&o&&pe(k,1)):(k=Nt(e),k.c(),pe(k,1),k.m(t,n)):k&&(de(),he(k,1,1,(()=>{k=null})),ue()),_&&_.p&&32768&o&&j(_,v,e,e[15],o,Pt,Mt);let a=c;c=w(e),c===a?y[c].p(e,o):(de(),he(y[a],1,1,(()=>{y[a]=null})),ue(),r=y[c],r?r.p(e,o):(r=y[c]=$[c](e),r.c()),pe(r,1),r.m(s,d)),e[3]?x&&(de(),he(x,1,1,(()=>{x=null})),ue()):x?(x.p(e,o),8&o&&pe(x,1)):(x=Ut(e),x.c(),pe(x,1),x.m(s,null)),S===(S=E(e))&&I?I.p(e,o):(I&&I.d(1),I=S&&S(e),I&&(I.c(),I.m(l,p))),e[1]&&!e[3]?C?C.p(e,o):(C=Vt(e),C.c(),C.m(l,null)):C&&(C.d(1),C=null);let u=m;m=R(e),m===u?z[m].p(e,o):(de(),he(z[u],1,1,(()=>{z[u]=null})),ue(),g=z[m],g?g.p(e,o):(g=z[m]=M[m](e),g.c()),pe(g,1),g.m(i,null)),1024&o&&G(i,"invisible",e[10]),(!b||2116&o&&f!==(f="kin_page "+("ltr"!=e[11]?"-"+e[11]:"")+" "+(e[6]?"-"+e[6]:"")+" "+e[2]+" svelte-kh5tai"))&&H(t,"class",f)},i(e){b||(pe(k),pe(_,e),pe(r),pe(x),pe(g),b=!0)},o(e){he(k),he(_,e),he(r),he(x),he(g),b=!1},d(e){e&&P(t),k&&k.d(),_&&_.d(e),y[c].d(),x&&x.d(),I&&I.d(),C&&C.d(),z[m].d()}}}function Jt(e,t,n){let{$$slots:i={},$$scope:l}=t,{heading:o}=t,{settingsUrl:a}=t,{cssCls:s}=t,{upsell:c=!1}=t,{inactive:r=!1}=t,{inactiveMsg:d}=t,{layout:u}=t,{back:p=!0}=t,{backEvent:h=!1}=t,{backHash:m}=t,{loading:f=!1}=t;const b=J();let k,v="ltr";X((()=>{n(11,v=document.body.dir)}));return e.$$set=e=>{"heading"in e&&n(0,o=e.heading),"settingsUrl"in e&&n(1,a=e.settingsUrl),"cssCls"in e&&n(2,s=e.cssCls),"upsell"in e&&n(3,c=e.upsell),"inactive"in e&&n(4,r=e.inactive),"inactiveMsg"in e&&n(5,d=e.inactiveMsg),"layout"in e&&n(6,u=e.layout),"back"in e&&n(7,p=e.back),"backEvent"in e&&n(8,h=e.backEvent),"backHash"in e&&n(9,m=e.backHash),"loading"in e&&n(10,f=e.loading),"$$scope"in e&&n(15,l=e.$$scope)},e.$$.update=()=>{16400&e.$$.dirty&&k&&k.set(!r)},[o,a,s,c,r,d,u,p,h,m,f,v,b,function(e){return n(14,k=new g(e)),{destroy:k.destroy.bind(k)}},k,l,i,()=>b("backClick")]}class Zt extends _e{constructor(e){var t;super(),xt.getElementById("svelte-kh5tai-style")||((t=L("style")).id="svelte-kh5tai-style",t.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}",D(xt.head,t)),ve(this,e,Jt,qt,E,{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(e){this.$set({heading:e}),ae()}get settingsUrl(){return this.$$.ctx[1]}set settingsUrl(e){this.$set({settingsUrl:e}),ae()}get cssCls(){return this.$$.ctx[2]}set cssCls(e){this.$set({cssCls:e}),ae()}get upsell(){return this.$$.ctx[3]}set upsell(e){this.$set({upsell:e}),ae()}get inactive(){return this.$$.ctx[4]}set inactive(e){this.$set({inactive:e}),ae()}get inactiveMsg(){return this.$$.ctx[5]}set inactiveMsg(e){this.$set({inactiveMsg:e}),ae()}get layout(){return this.$$.ctx[6]}set layout(e){this.$set({layout:e}),ae()}get back(){return this.$$.ctx[7]}set back(e){this.$set({back:e}),ae()}get backEvent(){return this.$$.ctx[8]}set backEvent(e){this.$set({backEvent:e}),ae()}get backHash(){return this.$$.ctx[9]}set backHash(e){this.$set({backHash:e}),ae()}get loading(){return this.$$.ctx[10]}set loading(e){this.$set({loading:e}),ae()}}var Qt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Yt="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,en="object"==typeof self&&self&&self.Object===Object&&self;Yt||en||Function("return this")();function tn(e){let t,n,i,l,o,a,s,c,r;const d=e[6].default,u=A(d,e,e[5],null);return{c(){t=L("div"),n=L("kin-icon"),i=N(),u&&u.c(),l=N(),o=L("kin-button"),a=z(e[2]),F(n,"name",e[0]),F(n,"size",e[1]),F(n,"class","sve_upsell__icon"),F(o,"size","large"),F(o,"class","sve_upsell__cta"),F(o,"data-test",e[3]),H(t,"class","sve_upsell")},m(d,p){T(d,t,p),D(t,n),D(t,i),u&&u.m(t,null),D(t,l),D(t,o),D(o,a),s=!0,c||(r=O(o,"click",e[7]),c=!0)},p(e,[t]){(!s||1&t)&&F(n,"name",e[0]),(!s||2&t)&&F(n,"size",e[1]),u&&u.p&&32&t&&j(u,d,e,e[5],t,null,null),(!s||4&t)&&U(a,e[2]),(!s||8&t)&&F(o,"data-test",e[3])},i(e){s||(pe(u,e),s=!0)},o(e){he(u,e),s=!1},d(e){e&&P(t),u&&u.d(e),c=!1,r()}}}function nn(e,t,n){let{$$slots:i={},$$scope:l}=t;const o=J();let{icon:a="icon-l-upgrade"}=t,{iconSize:s=160}=t,{ctaText:c=d("global.upgradeNow")}=t,{testId:r="upsell_buy"}=t;return e.$$set=e=>{"icon"in e&&n(0,a=e.icon),"iconSize"in e&&n(1,s=e.iconSize),"ctaText"in e&&n(2,c=e.ctaText),"testId"in e&&n(3,r=e.testId),"$$scope"in e&&n(5,l=e.$$scope)},[a,s,c,r,o,l,i,()=>o("buy")]}class ln extends _e{constructor(e){super(),ve(this,e,nn,tn,E,{icon:0,iconSize:1,ctaText:2,testId:3})}}function on(e,t,n){const i=e.slice();return i[20]=t[n],i[22]=n,i}function an(e,t,n){const i=e.slice();return i[23]=t[n],i}function sn(e){let t,n=e[7],i=[];for(let l=0;l<n.length;l+=1)i[l]=cn(an(e,n,l));return{c(){t=L("div");for(let e=0;e<i.length;e+=1)i[e].c();H(t,"class","linkgroup ras_linkgroup")},m(e,n){T(e,t,n);for(let l=0;l<i.length;l+=1)i[l].m(t,null)},p(e,l){if(131&l){let o;for(n=e[7],o=0;o<n.length;o+=1){const a=an(e,n,o);i[o]?i[o].p(a,l):(i[o]=cn(a),i[o].c(),i[o].m(t,null))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(e){e&&P(t),M(i,e)}}}function cn(e){let t,n,i,l,o,a,s,c=d("remoteAccessShield.log.filter."+e[23],e[1][e[23]])+"";function r(){return e[10](e[23])}return{c(){t=L("button"),n=z(c),i=N(),H(t,"aria-selected",l=e[0]===e[23]),t.disabled=o=e[0]===e[23]||!e[1][e[23]],G(t,"-active",e[0]===e[23])},m(e,l){T(e,t,l),D(t,n),D(t,i),a||(s=O(t,"click",r),a=!0)},p(i,a){e=i,2&a&&c!==(c=d("remoteAccessShield.log.filter."+e[23],e[1][e[23]])+"")&&U(n,c),1&a&&l!==(l=e[0]===e[23])&&H(t,"aria-selected",l),3&a&&o!==(o=e[0]===e[23]||!e[1][e[23]])&&(t.disabled=o),129&a&&G(t,"-active",e[0]===e[23])},d(e){e&&P(t),a=!1,s()}}}function rn(e){let t,n,i,l;return{c(){t=L("div"),n=L("button"),n.textContent=`↑ ${d("remoteAccessShield.log.newItems")}`,H(n,"class","svelte-rh147j"),H(t,"class","ras_newItems svelte-rh147j")},m(o,a){T(o,t,a),D(t,n),i||(l=O(n,"click",e[11]),i=!0)},p:_,d(e){e&&P(t),i=!1,l()}}}function dn(e){let t,n;return{c(){t=L("kin-icon"),F(t,"name",n="badge-"+("blocked"===e[20].action?"critical":"ok")),F(t,"size","16"),F(t,"class","ras_table__icon__status svelte-rh147j")},m(e,n){T(e,t,n)},p(e,i){8&i&&n!==(n="badge-"+("blocked"===e[20].action?"critical":"ok"))&&F(t,"name",n)},d(e){e&&P(t)}}}function un(e){let t,n,i,l,o,a,s,c,r,p,h,m,g,f,b,k,v,_,$,y,w,x,E,S,A,I,j,C=d("remoteAccessShield.log."+e[20].action)+"",M=u(e[20].time).format("ll LTS")+"",R=e[20].ip+"",O=d("remoteAccessShield.log.info.title."+e[20].action+"."+e[20].protocol)+"",B=d("remoteAccessShield.log.info.desc."+e[20].action+(e[20].actionReason?"."+e[20].actionReason:""),e[20].ip)+"",G="failed"!==e[20].action&&dn(e);return{c(){t=L("div"),n=L("div"),i=L("kin-icon"),l=N(),G&&G.c(),o=N(),a=L("div"),s=z(C),c=N(),r=L("div"),p=z(M),h=N(),m=L("div"),g=z(R),f=N(),b=L("div"),k=L("kin-tooltip"),v=L("span"),v.innerHTML='<kin-icon name="icon-m-action-info" size="16" class="kin_table__show-on-hover"></kin-icon>',_=N(),$=L("div"),y=L("p"),w=L("strong"),x=z(O),E=N(),S=L("p"),A=z(B),I=N(),F(i,"name","icon-m-rdp"),F(i,"size","28"),H(n,"class","kin_table__icon"),H(v,"slot","tooltip-activator"),H($,"slot","tooltip"),H(b,"class","kin_table__actions"),H(t,"role","row"),H(t,"class","kin_table__row ras_table__row svelte-rh147j"),H(t,"aria-rowindex",j=e[22])},m(e,d){T(e,t,d),D(t,n),D(n,i),D(n,l),G&&G.m(n,null),D(t,o),D(t,a),D(a,s),D(t,c),D(t,r),D(r,p),D(t,h),D(t,m),D(m,g),D(t,f),D(t,b),D(b,k),D(k,v),D(k,_),D(k,$),D($,y),D(y,w),D(w,x),D($,E),D($,S),D(S,A),D(t,I)},p(e,t){"failed"!==e[20].action?G?G.p(e,t):(G=dn(e),G.c(),G.m(n,null)):G&&(G.d(1),G=null),8&t&&C!==(C=d("remoteAccessShield.log."+e[20].action)+"")&&U(s,C),8&t&&M!==(M=u(e[20].time).format("ll LTS")+"")&&U(p,M),8&t&&R!==(R=e[20].ip+"")&&U(g,R),8&t&&O!==(O=d("remoteAccessShield.log.info.title."+e[20].action+"."+e[20].protocol)+"")&&U(x,O),8&t&&B!==(B=d("remoteAccessShield.log.info.desc."+e[20].action+(e[20].actionReason?"."+e[20].actionReason:""),e[20].ip)+"")&&U(A,B)},d(e){e&&P(t),G&&G.d()}}}function pn(e){let t,n,i,l,o,a,s,c,r,u,p,h,m,g,f,b,k,v,$,y,w,x,E,S,A,I,j,C=e[3].length&&sn(e),z=e[6]&&e[5]&&rn(e),R=e[3],U=[];for(let d=0;d<R.length;d+=1)U[d]=un(on(e,R,d));return{c(){t=L("div"),n=L("h2"),n.textContent=`${d("remoteAccessShield.log.title")}`,i=N(),C&&C.c(),l=N(),z&&z.c(),o=N(),a=L("kin-table"),s=L("div"),c=N(),r=L("div"),u=L("p"),u.textContent=`${d("remoteAccessShield.log.empty")}`,p=N(),h=L("div"),m=L("div"),g=N(),f=L("div"),f.textContent=`${d("remoteAccessShield.log.action")}`,b=N(),k=L("div"),k.textContent=`${d("global.time")}`,v=N(),$=L("div"),$.textContent=`${d("global.ipAddress")}`,y=N(),w=L("div"),x=N(),E=L("div");for(let e=0;e<U.length;e+=1)U[e].c();H(n,"class","h6"),H(t,"class","ras_heading svelte-rh147j"),H(s,"slot","table-empty-icon"),H(s,"class","svg -empty-table"),H(r,"slot","table-empty"),H(f,"row","columnheader"),H(k,"row","columnheader"),H($,"row","columnheader"),H(w,"class","kin_table__actions"),H(h,"role","row"),H(h,"slot","table-header"),H(h,"class","svelte-rh147j"),H(E,"slot","table-body"),F(a,"loading",e[2]),F(a,"datalength",S=e[3].length),F(a,"scrollrootselector","kin-view"),F(a,"watchscrollpos",A=!0),F(a,"bottomloading",e[4])},m(d,_){T(d,t,_),D(t,n),D(t,i),C&&C.m(t,null),T(d,l,_),z&&z.m(d,_),T(d,o,_),T(d,a,_),D(a,s),D(a,c),D(a,r),D(r,u),D(a,p),D(a,h),D(h,m),D(h,g),D(h,f),D(h,b),D(h,k),D(h,v),D(h,$),D(h,y),D(h,w),D(a,x),D(a,E);for(let e=0;e<U.length;e+=1)U[e].m(E,null);I||(j=O(a,"scrollPos",e[9]),I=!0)},p(e,[n]){if(e[3].length?C?C.p(e,n):(C=sn(e),C.c(),C.m(t,null)):C&&(C.d(1),C=null),e[6]&&e[5]?z?z.p(e,n):(z=rn(e),z.c(),z.m(o.parentNode,o)):z&&(z.d(1),z=null),8&n){let t;for(R=e[3],t=0;t<R.length;t+=1){const i=on(e,R,t);U[t]?U[t].p(i,n):(U[t]=un(i),U[t].c(),U[t].m(E,null))}for(;t<U.length;t+=1)U[t].d(1);U.length=R.length}4&n&&F(a,"loading",e[2]),8&n&&S!==(S=e[3].length)&&F(a,"datalength",S),16&n&&F(a,"bottomloading",e[4])},i:_,o:_,d(e){e&&P(t),C&&C.d(),e&&P(l),z&&z.d(e),e&&P(o),e&&P(a),M(U,e),I=!1,j()}}}function hn(n,i,l){const o={0:"rdp",1:"samba"},a={0:{action:"allowed"},1:{action:"allowed",reason:"ipInAllowedList"},100:{action:"failed"},200:{action:"blocked",reason:"bruteForce"},201:{action:"blocked",reason:"ipInBlackList"},202:{action:"blocked",reason:"exploit"},203:{action:"blocked"}},s={all:[],allowed:[0,99],failed:[100,199],blocked:[200,299]},c=["all","blocked"],r={all:0,blocked:0};let d=!0,u=[],p=c[0],h=!1,m=!1,g=null,f=null,b=!1,k=null;function v(){return l(3,u=[]),l(2,d=!0),k=0,l(5,m=!1),l(6,b=!1),g=null,f&&f(0),Promise.all([t("app.ras.GetLogStats").then((e=>{l(1,r.all=e.connections_all,r),l(1,r.blocked=e.connections_blocked,r)})),_()]).finally((()=>l(2,d=!1)))}function _(e={}){const n=s[p]||[],i={row_limit:30,row_offset:u.length||void 0,max_id:k,min_action:n[0],max_action:n[1]};return e.concat&&l(4,h=!0),t("app.ras.GetLog",i).then((t=>{let n=[];t.data&&(n=t.data.map((e=>({time:e.time,ip:e.ip,action:a[e.action].action,actionReason:a[e.action].reason,protocol:o[e.protocol]})))),e.concat?l(3,u=u.concat(n)):l(3,u=n),l(4,h=!1),null!=t.max_id&&(k=Math.max(k,t.max_id))}))}X((()=>{e.on("ui.ras.logevent",(()=>{m?l(6,b=!0):v()}))}));return n.$$.update=()=>{1&n.$$.dirty&&p&&v()},[p,r,d,u,h,m,b,c,v,function(e){l(5,m=e.detail.current>110),f=e.detail.scrollTo,!m&&b&&v(),e.detail.current>=e.detail.max&&e.detail.max>g&&(g=e.detail.current,_({concat:!0}))},e=>l(0,p=e),()=>v()]}class mn extends _e{constructor(e){var t;super(),document.getElementById("svelte-rh147j-style")||((t=L("style")).id="svelte-rh147j-style",t.textContent="[slot='table-header'].svelte-rh147j.svelte-rh147j,.ras_table__row.svelte-rh147j.svelte-rh147j{grid-template-columns:5% 22% 26% 42% 5%}.ras_table__icon__status.svelte-rh147j.svelte-rh147j{position:absolute;top:50%;right:10%}.ras_heading.svelte-rh147j.svelte-rh147j{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-top:4rem}.ras_newItems.svelte-rh147j.svelte-rh147j{position:sticky;top:80px;text-align:center;z-index:10}.ras_newItems.svelte-rh147j>button.svelte-rh147j{background:rgba(0,0,0,0.75);padding:10px 20px;border-radius:10px;font-weight:bold}",D(document.head,t)),ve(this,e,hn,pn,E,{})}}function gn(e){let t,n,i,l;return{c(){t=L("div"),n=L("kin-crumbs"),F(n,"section","security"),F(n,"sectionlabel",i=d("security")),F(n,"modulelabel",l=d("remoteAccessShield")),H(t,"slot","breadcrumbs")},m(e,i){T(e,t,i),D(t,n)},p:_,d(e){e&&P(t)}}}function fn(e){let t,n,i,l;return{c(){t=L("div"),n=L("kin-switch"),F(n,"checked",e[0]),F(n,"processing",e[1]),H(t,"slot","controls")},m(o,a){T(o,t,a),D(t,n),i||(l=O(n,"click",e[5]),i=!0)},p(e,t){1&t&&F(n,"checked",e[0]),2&t&&F(n,"processing",e[1])},d(e){e&&P(t),i=!1,l()}}}function bn(e){let t,n,i,l,o=d("remoteAccessShield.upsell.desc")+"";return{c(){t=L("div"),n=L("h2"),n.textContent=`${d("remoteAccessShield.upsell.title")}`,i=N(),l=L("p"),H(n,"class","h2 -margins"),H(l,"class","p -secondary")},m(e,a){T(e,t,a),D(t,n),D(t,i),D(t,l),l.innerHTML=o},p:_,d(e){e&&P(t)}}}function kn(e){let t,n,i;return n=new ln({props:{icon:"icon-l-rdp-upgrade",$$slots:{default:[bn]},$$scope:{ctx:e}}}),n.$on("buy",e[4]),{c(){t=L("div"),ge(n.$$.fragment),H(t,"slot","upsell")},m(e,l){T(e,t,l),fe(n,t,null),i=!0},p(e,t){const i={};256&t&&(i.$$scope={dirty:t,ctx:e}),n.$set(i)},i(e){i||(pe(n.$$.fragment,e),i=!0)},o(e){he(n.$$.fragment,e),i=!1},d(e){e&&P(t),be(n)}}}function vn(e){let t,n;return{c(){t=L("kin-icon"),F(t,"name","icon-l-rdp"),F(t,"size","160"),F(t,"class",n="color-"+(e[0]?"ok":"critical")+" -text kin_view__icon")},m(e,n){T(e,t,n)},p(e,i){1&i&&n!==(n="color-"+(e[0]?"ok":"critical")+" -text kin_view__icon")&&F(t,"class",n)},i:_,o:_,d(e){e&&P(t)}}}function _n(e){let t,n;return t=new mn({}),{c(){ge(t.$$.fragment)},m(e,i){fe(t,e,i),n=!0},p:_,i(e){n||(pe(t.$$.fragment,e),n=!0)},o(e){he(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}function $n(e){let t,n,i,l,o,a,s,c,u,p=d("remoteAccessShield.desc")+"";const h=[_n,vn],m=[];return s=r.isVersionSupported(20.8)?0:1,c=m[s]=h[s](e),{c(){t=L("div"),n=L("kin-view"),i=L("div"),l=L("p"),o=N(),a=L("div"),c.c(),H(l,"class","kin_description__text"),H(i,"slot","description"),H(a,"slot","view-content"),H(t,"slot","page-content")},m(e,c){T(e,t,c),D(t,n),D(n,i),D(i,l),l.innerHTML=p,D(n,o),D(n,a),m[s].m(a,null),u=!0},p(e,t){c.p(e,t)},i(e){u||(pe(c),u=!0)},o(e){he(c),u=!1},d(e){e&&P(t),m[s].d()}}}function yn(e){let t,n,i;return{c(){t=N(),n=N(),i=N()},m(e,l){T(e,t,l),T(e,n,l),T(e,i,l)},p:_,i:_,o:_,d(e){e&&P(t),e&&P(n),e&&P(i)}}}function wn(e){let t,n;return t=new Zt({props:{heading:d("remoteAccessShield"),cssCls:"ras",settingsUrl:e[2]?"#Settings/ras":"",upsell:!e[2],inactive:!e[0],inactiveMsg:d("remoteAccessShield.tooltip.inactive"),backHash:"#security",$$slots:{default:[yn],"page-content":[$n],upsell:[kn],controls:[fn],breadcrumbs:[gn]},$$scope:{ctx:e}}}),{c(){ge(t.$$.fragment)},m(e,i){fe(t,e,i),n=!0},p(e,[n]){const i={};1&n&&(i.inactive=!e[0]),259&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){n||(pe(t.$$.fragment,e),n=!0)},o(e){he(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}function xn(t,n,i){const l=c.isLicensed("ais_cmp_rdp");let o,s=c.isEnabled("ais_cmp_rdp"),r=!1;function u(e){null!=e.enabled&&(i(0,s=e.enabled),i(1,r=!1))}function p(){let e;i(1,r=!0),e=s?k.stopOptions({title:d("remoteAccessShield.stopOptions.title"),desc:d("remoteAccessShield.stopOptions.desc")}).then((e=>c.toggleFeature("ais_cmp_rdp",e.time))):c.isPassiveMode()?k.passiveMode().then((()=>c.enableFeature("ais_cmp_rdp"))):c.enableFeature("ais_cmp_rdp"),e.catch((()=>{i(1,r=!1)}))}X((()=>{o=e.on("product.change.feature.ais_cmp_rdp",u)})),q((()=>{o&&o()}));return[s,r,l,p,function(){a.openWindow(343,{p_scr:"remoteaccessshield"})},()=>p()]}var En=/^\s+|\s+$/g,Sn=/^[-+]0x[0-9a-f]+$/i,An=/^0b[01]+$/i,In=/^0o[0-7]+$/i,jn=parseInt,Cn="object"==typeof Qt&&Qt&&Qt.Object===Object&&Qt,Dn="object"==typeof self&&self&&self.Object===Object&&self,Tn=Cn||Dn||Function("return this")(),Pn=Object.prototype.toString,Mn=Math.max,Ln=Math.min,zn=function(){return Tn.Date.now()};function Nn(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Rn(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Pn.call(e)}(e))return NaN;if(Nn(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Nn(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(En,"");var n=An.test(e);return n||In.test(e)?jn(e.slice(2),n?2:8):Sn.test(e)?NaN:+e}var On=function(e,t,n){var i,l,o,a,s,c,r=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=i,o=l;return i=l=void 0,r=t,a=e.apply(o,n)}function m(e){return r=e,s=setTimeout(f,t),d?h(e):a}function g(e){var n=e-c;return void 0===c||n>=t||n<0||u&&e-r>=o}function f(){var e=zn();if(g(e))return b(e);s=setTimeout(f,function(e){var n=t-(e-c);return u?Ln(n,o-(e-r)):n}(e))}function b(e){return s=void 0,p&&i?h(e):(i=l=void 0,a)}function k(){var e=zn(),n=g(e);if(i=arguments,l=this,c=e,n){if(void 0===s)return m(c);if(u)return s=setTimeout(f,t),h(c)}return void 0===s&&(s=setTimeout(f,t)),a}return t=Rn(t)||0,Nn(n)&&(d=!!n.leading,o=(u="maxWait"in n)?Mn(Rn(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),k.cancel=function(){void 0!==s&&clearTimeout(s),r=0,i=c=l=s=void 0},k.flush=function(){return void 0===s?a:b(zn())},k};function Hn(e,t,n){const i=e.slice();return i[22]=t[n].ip,i[23]=t[n].error,i[25]=n,i}function Fn(e){let t,n;return t=new e[5]({props:{property:e[0].enableRdpProtection}}),{c(){ge(t.$$.fragment)},m(e,i){fe(t,e,i),n=!0},p(e,n){const i={};1&n&&(i.property=e[0].enableRdpProtection),t.$set(i)},i(e){n||(pe(t.$$.fragment,e),n=!0)},o(e){he(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}function Un(e){let t,n;return t=new e[5]({props:{property:e[0].enableSambaProtection}}),{c(){ge(t.$$.fragment)},m(e,i){fe(t,e,i),n=!0},p(e,n){const i={};1&n&&(i.property=e[0].enableSambaProtection),t.$set(i)},i(e){n||(pe(t.$$.fragment,e),n=!0)},o(e){he(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}function Bn(e){let t,n,i;return{c(){t=L("button"),t.textContent=`${d("global.add")}`,H(t,"class","btn -secondary g-margin-top--10 g-margin-bottom--10 settings__indent"),H(t,"data-test","addIp")},m(l,o){T(l,t,o),n||(i=O(t,"click",e[13]),n=!0)},p:_,d(e){e&&P(t),n=!1,i()}}}function Gn(e){let t,n=e[1],i=[];for(let l=0;l<n.length;l+=1)i[l]=Kn(Hn(e,n,l));return{c(){t=L("table");for(let e=0;e<i.length;e+=1)i[e].c();H(t,"class","table -small settings__indent")},m(e,n){T(e,t,n);for(let l=0;l<i.length;l+=1)i[l].m(t,null)},p(e,l){if(2310&l){let o;for(n=e[1],o=0;o<n.length;o+=1){const a=Hn(e,n,o);i[o]?i[o].p(a,l):(i[o]=Kn(a),i[o].c(),i[o].m(t,null))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(e){e&&P(t),M(i,e)}}}function Wn(e){let t,n,i,l,o,a,s,c,r;function u(){return e[15](e[25])}function p(){return e[16](e[25])}return{c(){t=L("button"),n=L("kin-icon"),l=N(),o=L("button"),a=L("kin-icon"),F(n,"name","icon-m-action-pen"),F(n,"size","14"),H(t,"class","a g-margin-left--5"),H(t,"title",i=d("global.edit")),F(a,"name","icon-s-controls-bin"),F(a,"size","14"),H(o,"class","a g-margin-left--5"),H(o,"title",s=d("global.remove"))},m(e,i){T(e,t,i),D(t,n),T(e,l,i),T(e,o,i),D(o,a),c||(r=[O(t,"click",u),O(o,"click",p)],c=!0)},p(t,n){e=t},d(e){e&&P(t),e&&P(l),e&&P(o),c=!1,w(r)}}}function Vn(e){let t,n,i,l,o=e[23]+"";return{c(){t=L("tr"),n=L("td"),i=z(o),l=N(),H(n,"colspan","2")},m(e,o){T(e,t,o),D(t,n),D(n,i),D(t,l)},p(e,t){2&t&&o!==(o=e[23]+"")&&U(i,o)},d(e){e&&P(t)}}}function Kn(e){let t,n,i,l,o,a,s,c,r,d=e[22]+"";function u(){return e[14](e[25])}let p=!e[2]&&Wn(e),h=e[23]&&Vn(e);return{c(){t=L("tr"),n=L("td"),i=z(d),l=N(),o=L("td"),p&&p.c(),a=N(),h&&h.c(),s=R(),H(o,"class","table__delete"),H(t,"class","-hoverable")},m(e,d){T(e,t,d),D(t,n),D(n,i),D(t,l),D(t,o),p&&p.m(o,null),T(e,a,d),h&&h.m(e,d),T(e,s,d),c||(r=O(n,"click",u),c=!0)},p(t,n){e=t,2&n&&d!==(d=e[22]+"")&&U(i,d),e[2]?p&&(p.d(1),p=null):p?p.p(e,n):(p=Wn(e),p.c(),p.m(o,null)),e[23]?h?h.p(e,n):(h=Vn(e),h.c(),h.m(s.parentNode,s)):h&&(h.d(1),h=null)},d(e){e&&P(t),p&&p.d(),e&&P(a),h&&h.d(e),e&&P(s),c=!1,r()}}}function Xn(e){let t,n,i,l,o,a,s,c,r,d,u,p,h,m,g,f=e[0].enableRdpProtection&&Fn(e),b=e[0].enableSambaProtection&&Un(e);i=new e[5]({props:{property:e[0].notificationEnabled}}),o=new e[5]({props:{property:e[0].bruteForceEnabled}}),s=new e[5]({props:{property:e[0].blacklistEnabled}}),r=new e[5]({props:{property:e[0].exploitEnabled}}),u=new e[5]({props:{property:e[0].allowedIpEnabled}});let k=!e[2]&&Bn(e),v=e[1]&&e[1].length&&Gn(e);return{c(){f&&f.c(),t=N(),b&&b.c(),n=N(),ge(i.$$.fragment),l=N(),ge(o.$$.fragment),a=N(),ge(s.$$.fragment),c=N(),ge(r.$$.fragment),d=N(),ge(u.$$.fragment),p=N(),k&&k.c(),h=N(),v&&v.c(),m=R()},m(e,_){f&&f.m(e,_),T(e,t,_),b&&b.m(e,_),T(e,n,_),fe(i,e,_),T(e,l,_),fe(o,e,_),T(e,a,_),fe(s,e,_),T(e,c,_),fe(r,e,_),T(e,d,_),fe(u,e,_),T(e,p,_),k&&k.m(e,_),T(e,h,_),v&&v.m(e,_),T(e,m,_),g=!0},p(e,l){e[0].enableRdpProtection?f?(f.p(e,l),1&l&&pe(f,1)):(f=Fn(e),f.c(),pe(f,1),f.m(t.parentNode,t)):f&&(de(),he(f,1,1,(()=>{f=null})),ue()),e[0].enableSambaProtection?b?(b.p(e,l),1&l&&pe(b,1)):(b=Un(e),b.c(),pe(b,1),b.m(n.parentNode,n)):b&&(de(),he(b,1,1,(()=>{b=null})),ue());const a={};1&l&&(a.property=e[0].notificationEnabled),i.$set(a);const c={};1&l&&(c.property=e[0].bruteForceEnabled),o.$set(c);const d={};1&l&&(d.property=e[0].blacklistEnabled),s.$set(d);const p={};1&l&&(p.property=e[0].exploitEnabled),r.$set(p);const g={};1&l&&(g.property=e[0].allowedIpEnabled),u.$set(g),e[2]?k&&(k.d(1),k=null):k?k.p(e,l):(k=Bn(e),k.c(),k.m(h.parentNode,h)),e[1]&&e[1].length?v?v.p(e,l):(v=Gn(e),v.c(),v.m(m.parentNode,m)):v&&(v.d(1),v=null)},i(e){g||(pe(f),pe(b),pe(i.$$.fragment,e),pe(o.$$.fragment,e),pe(s.$$.fragment,e),pe(r.$$.fragment,e),pe(u.$$.fragment,e),g=!0)},o(e){he(f),he(b),he(i.$$.fragment,e),he(o.$$.fragment,e),he(s.$$.fragment,e),he(r.$$.fragment,e),he(u.$$.fragment,e),g=!1},d(e){f&&f.d(e),e&&P(t),b&&b.d(e),e&&P(n),be(i,e),e&&P(l),be(o,e),e&&P(a),be(s,e),e&&P(c),be(r,e),e&&P(d),be(u,e),e&&P(p),k&&k.d(e),e&&P(h),v&&v.d(e),e&&P(m)}}}function qn(e){let t,n;return t=new wt({props:{title:d("remoteAccessShield.settings.editAllowedIp.title"),closable:!0,$$slots:{default:[Qn],"modal-content":[Zn],"modal-header":[Jn]},$$scope:{ctx:e}}}),t.$on("close",e[17]),{c(){ge(t.$$.fragment)},m(e,i){fe(t,e,i),n=!0},p(e,n){const i={};67108872&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){n||(pe(t.$$.fragment,e),n=!0)},o(e){he(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}function Jn(e){let t,n;return{c(){t=L("div"),n=L("p"),n.textContent=`${d("remoteAccessShield.settings.editAllowedIp.desc")}`,H(n,"class","sve_modal__subtitle"),H(t,"slot","modal-header")},m(e,i){T(e,t,i),D(t,n)},p:_,d(e){e&&P(t)}}}function Zn(e){let t,n,i,l,o,a,s,c,r,u,p;return{c(){t=L("div"),n=L("form"),i=L("kin-input"),c=N(),r=L("button"),r.textContent=`${d("global.allow")}`,F(i,"value",l=e[3].ip),F(i,"size","large"),F(i,"formrow","true"),F(i,"placeholder",o=d("remoteAccessShield.settings.ipExample")),F(i,"error",a=e[3].error),H(r,"class","btn g-margin-top--10"),H(r,"data-test","saveIp"),H(t,"slot","modal-content")},m(l,o){T(l,t,o),D(t,n),D(n,i),D(n,c),D(n,r),u||(p=[O(i,"input",e[12]),C(s=ii.call(null,i)),O(r,"click",e[9]),O(n,"submit",li)],u=!0)},p(e,t){8&t&&l!==(l=e[3].ip)&&F(i,"value",l),8&t&&a!==(a=e[3].error)&&F(i,"error",a)},d(e){e&&P(t),u=!1,w(p)}}}function Qn(e){let t;return{c(){t=N()},m(e,n){T(e,t,n)},p:_,d(e){e&&P(t)}}}function Yn(e){let t,n,i,l;t=new e[4]({props:{component:"ais_cmp_rdp",ipmBuyElm:343,title:d(ei.title),desc:d(ei.desc),stopOptions:e[6],$$slots:{default:[Xn]},$$scope:{ctx:e}}});let o=e[3]&&qn(e);return{c(){ge(t.$$.fragment),n=N(),o&&o.c(),i=R()},m(e,a){fe(t,e,a),T(e,n,a),o&&o.m(e,a),T(e,i,a),l=!0},p(e,[n]){const l={};67108871&n&&(l.$$scope={dirty:n,ctx:e}),t.$set(l),e[3]?o?(o.p(e,n),8&n&&pe(o,1)):(o=qn(e),o.c(),pe(o,1),o.m(i.parentNode,i)):o&&(de(),he(o,1,1,(()=>{o=null})),ue())},i(e){l||(pe(t.$$.fragment,e),pe(o),l=!0)},o(e){he(t.$$.fragment,e),he(o),l=!1},d(e){be(t,e),e&&P(n),o&&o.d(e),e&&P(i)}}}const ei={title:"remoteAccessShield",desc:"remoteAccessShield.settings.desc",enableRdpProtection:"remoteAccessShield.settings.enableRdpProtection.label",enableSambaProtection:"remoteAccessShield.settings.enableSambaProtection.label",notificationEnabled:"remoteAccessShield.settings.notificationEnabled.label",notificationEnabledDesc:"remoteAccessShield.settings.notificationEnabled.desc",bruteForceEnabled:"remoteAccessShield.settings.bruteForceEnabled.label",bruteForceEnabledDesc:"remoteAccessShield.settings.bruteForceEnabled.desc",blacklistEnabled:"remoteAccessShield.settings.blacklistEnabled.label",blacklistEnabledDesc:"remoteAccessShield.settings.blacklistEnabled.desc",exploitEnabled:"remoteAccessShield.settings.exploitEnabled.label",exploitEnabledDesc:"remoteAccessShield.settings.exploitEnabled.desc",allowedIpEnabled:"remoteAccessShield.settings.allowedIpEnabled.label",allowedIpEnabledDesc:"remoteAccessShield.settings.allowedIpEnabled.desc"};function ti(){const e={notificationEnabled:{label:d(ei.notificationEnabled),desc:d(ei.notificationEnabledDesc),path:"avcfg://RemoteAccessShield/Detection/NotificationEnabled",track:{subject:"Notification enabled"},search:{title:ei.notificationEnabled,desc:ei.notificationEnabledDesc}},bruteForceEnabled:{label:d(ei.bruteForceEnabled),desc:d(ei.bruteForceEnabledDesc),path:"avcfg://RemoteAccessShield/Detection/BruteForceEnabled",track:{subject:"Brute force enabled"},search:{title:ei.bruteForceEnabled,desc:ei.bruteForceEnabledDesc}},blacklistEnabled:{label:d(ei.blacklistEnabled),desc:d(ei.blacklistEnabledDesc),path:"avcfg://RemoteAccessShield/Detection/BlacklistEnabled",track:{subject:"Blacklist enabled"},search:{title:ei.blacklistEnabled,desc:ei.blacklistEnabledDesc}},exploitEnabled:{label:d(ei.exploitEnabled),desc:d(ei.exploitEnabledDesc),path:"avcfg://RemoteAccessShield/Detection/ExploitEnabled",track:{subject:"Exploit enabled"},search:{title:ei.exploitEnabled,desc:ei.exploitEnabledDesc}},allowedIpEnabled:{label:d(ei.allowedIpEnabled),desc:d(ei.allowedIpEnabledDesc),path:"avcfg://RemoteAccessShield/RdpAccess/AllowedIpEnabled",change:null,track:{subject:"Allowed IP enabled"},search:{title:ei.allowedIpEnabled,desc:ei.allowedIpEnableDesc}}};return r.isVersionSupported(20.8)&&(e.enableRdpProtection={label:d(ei.enableRdpProtection),path:"avcfg://RemoteAccessShield/Detection/RdpEnabled",track:{subject:"Enable RDP protection"},search:ei.enableRdpProtection},e.enableSambaProtection={label:d(ei.enableSambaProtection),path:"avcfg://RemoteAccessShield/Detection/SmbEnabled",track:{subject:"Enable Samba protection"},search:ei.enableSambaProtection}),e}function ni(){return{title:ei.title,desc:ei.desc,items:ti()}}function ii(e){e.focus()}const li=e=>e.preventDefault();function oi(e,t,n){const{Container:i,Checkbox:l}=v,a=ti(),s={title:d("remoteAccessShield.stopOptions.title"),desc:d("remoteAccessShield.stopOptions.desc")},c=On(k,1e3);let r=[],u=!1,p=null;function h(e){if(n(3,p={ip:""}),e)return new Promise(((e,t)=>{n(3,p.resolve=e,p),n(3,p.reject=t,p)}))}function m(e){n(3,p=Object.assign({index:e},r[e]))}function g(){p.reject&&p.reject(),n(3,p=null)}function b(e){r.splice(e,1),n(1,r),_()}function k(){const e=f(p.ip,{range:!0});return n(3,p.error=e?void 0:d("remoteAccessShield.settings.invalidIp"),p),e}function _(){const e=r.map((e=>e.ip)).join(";");o.set("avcfg://RemoteAccessShield/RdpAccess/AllowedIpList",e),r.length||a.allowedIpEnabled.forceChange(0)}a.allowedIpEnabled.change=function(e){return 1!=e||r.length?o.set(a.allowedIpEnabled.path,e):h(!0).then((()=>o.set(a.allowedIpEnabled.path,e)))},X((()=>{o.get("avcfg://RemoteAccessShield/RdpAccess/AllowedIpList").then((e=>{n(2,u=e.locked),e.value&&n(1,r=e.value.split(";").map((e=>({ip:e,error:null}))))}))}));return[a,r,u,p,i,l,s,h,m,function(e){e.preventDefault(),k()&&(null==p.index?(r.push({ip:p.ip}),n(1,r)):n(1,r[p.index].ip=p.ip,r),_(),p.resolve&&p.resolve(),n(3,p=null),c.cancel())},g,b,function(e){n(3,p.ip=e.target.value,p),c()},()=>h(),e=>m(e),e=>m(e),e=>b(e),()=>g()]}class ai extends _e{constructor(e){super(),ve(this,e,oi,Yn,E,{})}}function si(e){let t,n;return t=new st({props:{config:e[0]}}),{c(){ge(t.$$.fragment)},m(e,i){fe(t,e,i),n=!0},p(e,n){const i={};1&n&&(i.config=e[0]),t.$set(i)},i(e){n||(pe(t.$$.fragment,e),n=!0)},o(e){he(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}function ci(e){let t,n,i=e[0]&&si(e);return{c(){i&&i.c(),t=R()},m(e,l){i&&i.m(e,l),T(e,t,l),n=!0},p(e,[n]){e[0]?i?(i.p(e,n),1&n&&pe(i,1)):(i=si(e),i.c(),pe(i,1),i.m(t.parentNode,t)):i&&(de(),he(i,1,1,(()=>{i=null})),ue())},i(e){n||(pe(i),n=!0)},o(e){he(i),n=!1},d(e){i&&i.d(e),e&&P(t)}}}function ri(e,n,i){let a=null;return X((()=>{(function(){const e=l.getUrlParams().id;return t("app.av.detections.GetStatus",{id:e}).then((e=>[{title:d("global.threatName"),value:b.escapeHtml(e.threat),testValue:"threat"},{title:d("global.url"),value:b.escapeHtml(e.url),testValue:"url"},{title:d("global.process"),value:b.escapeHtml(e.process),testValue:"process"},{title:d("global.detectedBy"),value:d("remoteAccessShield"),testValue:"detectedBy_ras"},{title:d("global.status"),value:d("remoteAccessShield.detection.connectionBlocked"),testValue:"status"}]))})().then((e=>{i(0,a={color:"green",icon:{name:"icon-m-rdp",bgName:"shield",color:"ok"},title:d("remoteAccessShield.detection.title"),text:d("remoteAccessShield.detection.desc"),actions:[{label:d("global.gotIt"),action:l.close,labelGa:"gotIt",labelTest:"btn_gotIt"}],dontShowAgain:{label:d("remoteAccessShield.detection.dontShowAgain"),action:e=>{o.set("avcfg://RemoteAccessShield/Detection/NotificationEnabled",e?"0":"1")}},details:e})})).then(l.init)})),[a,!0]}class di extends _e{constructor(e){super(),ve(this,e,ri,ci,E,{handlesWindowInit:1})}get handlesWindowInit(){return this.$$.ctx[1]}}export default class extends _e{constructor(e){super(),ve(this,e,xn,wn,E,{})}}export{di as detection,ai as settings,ni as settingsSearchStrings};const ui={name:"ras",version:"1.2.115",created:"2021-03-09T09:09:19.932Z"};export{ui as metadata};