Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6 System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64 User : User ( 0) PHP Version : 7.4.6 Disable Function : NONE Directory : C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/ |
//{"name":"ras","version":"1.2.319","created":"2021-09-06T10:55:16.573Z"} import{napiTracker as e,windowApi as t,eventer as n,serviceRequest as l}from"./napi.js";import{soundService as i,productModel as o,ipmService as s,settingsService as c}from"./napiExtensions.js";import{nls as a,moment as r}from"./i18n.js";import{trapTabNavigation as u,TabableToggler as d,ipValidator as p,stringUtils as h}from"./libs.js";import{modals as m}from"./ractiveComponents.js";import{svelteComponents as g}from"./Settings.js";function f(){}function v(e){return e()}function b(){return Object.create(null)}function _(e){e.forEach(v)}function k(e){return"function"==typeof e}function $(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function y(e,t,n,l){if(e){const i=w(e,t,n,l);return e[0](i)}}function w(e,t,n,l){return e[1]&&l?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](l(t))):n.ctx}function x(e,t,n,l,i,o,s){const c=function(e,t,n,l){if(e[2]&&l){const i=e[2](l(n));if(void 0===t.dirty)return i;if("object"==typeof i){const e=[],n=Math.max(t.dirty.length,i.length);for(let l=0;l<n;l+=1)e[l]=t.dirty[l]|i[l];return e}return t.dirty|i}return t.dirty}(t,l,i,o);if(c){const i=w(t,n,l,s);e.p(i,c)}}function E(e){return e&&k(e.destroy)?e.destroy:f}function S(e,t){e.appendChild(t)}function z(e,t,n){e.insertBefore(t,n||null)}function A(e){e.parentNode.removeChild(e)}function j(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function T(e){return document.createElement(e)}function C(e){return document.createTextNode(e)}function q(){return C(" ")}function I(){return C("")}function D(e,t,n,l){return e.addEventListener(t,n,l),()=>e.removeEventListener(t,n,l)}function M(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function N(e,t,n){t in e?e[t]=n:M(e,t,n)}function L(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function P(e,t,n,l){e.style.setProperty(t,n,l?"important":"")}function H(e,t,n){e.classList[n?"add":"remove"](t)}let R;function O(e){R=e}function B(){if(!R)throw new Error("Function called outside component initialization");return R}function F(e){B().$$.on_mount.push(e)}function U(e){B().$$.on_destroy.push(e)}function W(){const e=B();return(t,n)=>{const l=e.$$.callbacks[t];if(l){const i=function(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}(t,n);l.slice().forEach((t=>{t.call(e,i)}))}}}const G=[],V=[],K=[],Y=[],Z=Promise.resolve();let X=!1;function J(e){K.push(e)}let Q=!1;const ee=new Set;function te(){if(!Q){Q=!0;do{for(let e=0;e<G.length;e+=1){const t=G[e];O(t),ne(t.$$)}for(O(null),G.length=0;V.length;)V.pop()();for(let e=0;e<K.length;e+=1){const t=K[e];ee.has(t)||(ee.add(t),t())}K.length=0}while(G.length);for(;Y.length;)Y.pop()();X=!1,Q=!1,ee.clear()}}function ne(e){if(null!==e.fragment){e.update(),_(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(J)}}const le=new Set;let ie;function oe(){ie={r:0,c:[],p:ie}}function se(){ie.r||_(ie.c),ie=ie.p}function ce(e,t){e&&e.i&&(le.delete(e),e.i(t))}function ae(e,t,n,l){if(e&&e.o){if(le.has(e))return;le.add(e),ie.c.push((()=>{le.delete(e),l&&(n&&e.d(1),l())})),e.o(t)}}const re="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ue(e){e&&e.c()}function de(e,t,n,l){const{fragment:i,on_mount:o,on_destroy:s,after_update:c}=e.$$;i&&i.m(t,n),l||J((()=>{const t=o.map(v).filter(k);s?s.push(...t):_(t),e.$$.on_mount=[]})),c.forEach(J)}function pe(e,t){const n=e.$$;null!==n.fragment&&(_(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function he(e,t){-1===e.$$.dirty[0]&&(G.push(e),X||(X=!0,Z.then(te)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function me(e,t,n,l,i,o,s=[-1]){const c=R;O(e);const a=e.$$={fragment:null,ctx:null,props:o,update:f,not_equal:i,bound:b(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:b(),dirty:s,skip_bound:!1};let r=!1;if(a.ctx=n?n(e,t.props||{},((t,n,...l)=>{const o=l.length?l[0]:n;return a.ctx&&i(a.ctx[t],a.ctx[t]=o)&&(!a.skip_bound&&a.bound[t]&&a.bound[t](o),r&&he(e,t)),n})):[],a.update(),r=!0,_(a.before_update),a.fragment=!!l&&l(a.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);a.fragment&&a.fragment.l(e),e.forEach(A)}else a.fragment&&a.fragment.c();t.intro&&ce(e.$$.fragment),de(e,t.target,t.anchor,t.customElement),te()}O(c)}class ge{$destroy(){pe(this,1),this.$destroy=f}$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)}}var fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ve=/^\s+|\s+$/g,be=/^[-+]0x[0-9a-f]+$/i,_e=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,$e=parseInt,ye="object"==typeof fe&&fe&&fe.Object===Object&&fe,we="object"==typeof self&&self&&self.Object===Object&&self,xe=ye||we||Function("return this")(),Ee=Object.prototype.toString,Se=Math.max,ze=Math.min,Ae=function(){return xe.Date.now()};function je(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Te(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Ee.call(e)}(e))return NaN;if(je(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=je(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ve,"");var n=_e.test(e);return n||ke.test(e)?$e(e.slice(2),n?2:8):be.test(e)?NaN:+e}var Ce=function(e,t,n){var l,i,o,s,c,a,r=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=l,o=i;return l=i=void 0,r=t,s=e.apply(o,n)}function m(e){return r=e,c=setTimeout(f,t),u?h(e):s}function g(e){var n=e-a;return void 0===a||n>=t||n<0||d&&e-r>=o}function f(){var e=Ae();if(g(e))return v(e);c=setTimeout(f,function(e){var n=t-(e-a);return d?ze(n,o-(e-r)):n}(e))}function v(e){return c=void 0,p&&l?h(e):(l=i=void 0,s)}function b(){var e=Ae(),n=g(e);if(l=arguments,i=this,a=e,n){if(void 0===c)return m(a);if(d)return c=setTimeout(f,t),h(a)}return void 0===c&&(c=setTimeout(f,t)),s}return t=Te(t)||0,je(n)&&(u=!!n.leading,o=(d="maxWait"in n)?Se(Te(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==c&&clearTimeout(c),r=0,l=a=i=c=void 0},b.flush=function(){return void 0===c?s:v(Ae())},b};const{window:qe}=re;function Ie(e,t,n){const l=e.slice();return l[49]=t[n],l}function De(e,t,n){const l=e.slice();return l[52]=t[n],l}function Me(e,t,n){const l=e.slice();return l[55]=t[n],l[57]=n,l}const Ne=e=>({}),Le=e=>({});function Pe(e){let t,n,l,i,o,s,c,r,u,d,p,h,m,g,f,v,b,k,$,w,j,C,I,N=e[0].icon&&He(e),L=e[0].title&&Fe(e);const R=e[30].default,O=y(R,e,e[29],null);let B=e[0].text&&Ue(e),F=e[0].actionText&&We(e);const U=e[30]["custom-content"],W=y(U,e,e[29],Le);let G=!e[3]&&e[0].actions&&e[0].actions.length&&Ge(e),V=e[3]&&Qe(e),K=e[0].dontShowAgain&&tt(e),Y=e[0].details&&e[0].details.length&&nt(e),Z=e[2]&&ot(e),X=(e[11]||e[14]>1)&&_t(e);return{c(){t=T("div"),n=T("div"),l=T("h1"),l.innerHTML='<span class="logo -white -width-70"></span>',i=q(),o=T("div"),s=T("button"),c=q(),r=T("div"),N&&N.c(),u=q(),L&&L.c(),d=q(),O&&O.c(),p=q(),B&&B.c(),h=q(),F&&F.c(),m=q(),W&&W.c(),g=q(),G&&G.c(),f=q(),V&&V.c(),v=q(),K&&K.c(),b=q(),Y&&Y.c(),k=q(),Z&&Z.c(),$=q(),X&&X.c(),M(l,"class","nui_logo"),M(s,"class","nui_controls__item -close nui_caption_client g-cursor--pointer"),M(s,"title",a("global.closeModalWindow")),M(o,"class","nui_controls"),M(n,"class","nui_titlebar -toaster nui_caption"),M(r,"class","sve_toaster__main"),H(r,"-auto-v-scroll",e[10]),M(t,"class",w="sve_toaster -detection "+(e[0].color?"-"+e[0].color:"")),P(t,"width",e[1]+"px")},m(a,_){z(a,t,_),S(t,n),S(n,l),S(n,i),S(n,o),S(o,s),S(t,c),S(t,r),N&&N.m(r,null),S(r,u),L&&L.m(r,null),S(r,d),O&&O.m(r,null),S(r,p),B&&B.m(r,null),S(r,h),F&&F.m(r,null),S(r,m),W&&W.m(r,null),S(r,g),G&&G.m(r,null),S(r,f),V&&V.m(r,null),S(r,v),K&&K.m(r,null),S(r,b),Y&&Y.m(r,null),S(t,k),Z&&Z.m(t,null),S(t,$),X&&X.m(t,null),j=!0,C||(I=[D(s,"click",e[19]),E(e[24].call(null,t))],C=!0)},p(e,n){e[0].icon?N?N.p(e,n):(N=He(e),N.c(),N.m(r,u)):N&&(N.d(1),N=null),e[0].title?L?L.p(e,n):(L=Fe(e),L.c(),L.m(r,d)):L&&(L.d(1),L=null),O&&O.p&&536870912&n[0]&&x(O,R,e,e[29],n,null,null),e[0].text?B?B.p(e,n):(B=Ue(e),B.c(),B.m(r,h)):B&&(B.d(1),B=null),e[0].actionText?F?F.p(e,n):(F=We(e),F.c(),F.m(r,m)):F&&(F.d(1),F=null),W&&W.p&&536870912&n[0]&&x(W,U,e,e[29],n,Ne,Le),!e[3]&&e[0].actions&&e[0].actions.length?G?G.p(e,n):(G=Ge(e),G.c(),G.m(r,f)):G&&(G.d(1),G=null),e[3]?V?V.p(e,n):(V=Qe(e),V.c(),V.m(r,v)):V&&(V.d(1),V=null),e[0].dontShowAgain?K?K.p(e,n):(K=tt(e),K.c(),K.m(r,b)):K&&(K.d(1),K=null),e[0].details&&e[0].details.length?Y?Y.p(e,n):(Y=nt(e),Y.c(),Y.m(r,null)):Y&&(Y.d(1),Y=null),1024&n[0]&&H(r,"-auto-v-scroll",e[10]),e[2]?Z?Z.p(e,n):(Z=ot(e),Z.c(),Z.m(t,$)):Z&&(Z.d(1),Z=null),e[11]||e[14]>1?X?X.p(e,n):(X=_t(e),X.c(),X.m(t,null)):X&&(X.d(1),X=null),(!j||1&n[0]&&w!==(w="sve_toaster -detection "+(e[0].color?"-"+e[0].color:"")))&&M(t,"class",w),(!j||2&n[0])&&P(t,"width",e[1]+"px")},i(e){j||(ce(O,e),ce(W,e),j=!0)},o(e){ae(O,e),ae(W,e),j=!1},d(e){e&&A(t),N&&N.d(),L&&L.d(),O&&O.d(e),B&&B.d(),F&&F.d(),W&&W.d(e),G&&G.d(),V&&V.d(),K&&K.d(),Y&&Y.d(),Z&&Z.d(),X&&X.d(),C=!1,_(I)}}}function He(e){let t;function n(e,t){return e[0].icon.base64data?Oe:Re}let l=n(e),i=l(e);return{c(){t=T("div"),i.c(),M(t,"class","sve_toaster__icon__container")},m(e,n){z(e,t,n),i.m(t,null)},p(e,o){l===(l=n(e))&&i?i.p(e,o):(i.d(1),i=l(e),i&&(i.c(),i.m(t,null)))},d(e){e&&A(t),i.d()}}}function Re(e){let t,n,l,i,o,s,c,a=e[0].icon.color&&Be(e);return{c(){t=T("kin-icon"),l=q(),i=T("kin-icon"),s=q(),a&&a.c(),c=I(),N(t,"illustration","true"),N(t,"name",n="ok"==e[0].icon.color?"i-detection-ok":"critical"==e[0].icon.color?"i-detection-critical":""),N(t,"size","144"),N(t,"width","264"),N(t,"class","sve_toaster__icon__bg"),N(i,"class","sve_toaster__icon"),N(i,"name",o=e[0].icon.name),N(i,"size","72")},m(e,n){z(e,t,n),z(e,l,n),z(e,i,n),z(e,s,n),a&&a.m(e,n),z(e,c,n)},p(e,l){1&l[0]&&n!==(n="ok"==e[0].icon.color?"i-detection-ok":"critical"==e[0].icon.color?"i-detection-critical":"")&&N(t,"name",n),1&l[0]&&o!==(o=e[0].icon.name)&&N(i,"name",o),e[0].icon.color?a?a.p(e,l):(a=Be(e),a.c(),a.m(c.parentNode,c)):a&&(a.d(1),a=null)},d(e){e&&A(t),e&&A(l),e&&A(i),e&&A(s),a&&a.d(e),e&&A(c)}}}function Oe(e){let t,n,l;return{c(){t=T("img"),M(t,"class","kin-img"),M(t,"height","60"),t.src!==(n="data:image/png;base64,"+e[0].icon.base64data)&&M(t,"src",n),M(t,"alt",l=e[0].title)},m(e,n){z(e,t,n)},p(e,i){1&i[0]&&t.src!==(n="data:image/png;base64,"+e[0].icon.base64data)&&M(t,"src",n),1&i[0]&&l!==(l=e[0].title)&&M(t,"alt",l)},d(e){e&&A(t)}}}function Be(e){let t,n;return{c(){t=T("kin-icon"),N(t,"class","sve_toaster__icon__status"),N(t,"name",n="ok"==e[0].icon.color?"icon-s-fill-secured":"icon-s-fill-unsecured"),N(t,"size","32")},m(e,n){z(e,t,n)},p(e,l){1&l[0]&&n!==(n="ok"==e[0].icon.color?"icon-s-fill-secured":"icon-s-fill-unsecured")&&N(t,"name",n)},d(e){e&&A(t)}}}function Fe(e){let t,n=e[0].title+"";return{c(){t=T("h2"),M(t,"class","sve_toaster__title h2")},m(e,l){z(e,t,l),t.innerHTML=n},p(e,l){1&l[0]&&n!==(n=e[0].title+"")&&(t.innerHTML=n)},d(e){e&&A(t)}}}function Ue(e){let t,n=e[0].text+"";return{c(){t=T("p"),M(t,"class","sve_toaster__text p")},m(e,l){z(e,t,l),t.innerHTML=n},p(e,l){1&l[0]&&n!==(n=e[0].text+"")&&(t.innerHTML=n)},d(e){e&&A(t)}}}function We(e){let t,n,l=e[0].actionText+"";return{c(){t=T("p"),n=C(l),M(t,"class","sve_toaster__text p -small -secondary")},m(e,l){z(e,t,l),S(t,n)},p(e,t){1&t[0]&&l!==(l=e[0].actionText+"")&&L(n,l)},d(e){e&&A(t)}}}function Ge(e){let t,n,l,i,o,s,c,a,r,u,d,p,h=e[0].actions[0].label+"",m=null!=e[9]&&Ve(e),g=1===e[0].actions.length&&e[14]>1&&e[15]&&Ke(e);function f(e,t){return 2!==e[0].actions.length||e[0].hideSecondAction?e[0].actions.length>2||e[0].hideSecondAction&&e[0].actions.length>1?Ye:void 0:Ze}let v=f(e),b=v&&v(e),_=e[0].errorText&&Je(e);return{c(){t=T("div"),n=T("kin-button"),l=T("span"),i=C(h),o=q(),m&&m.c(),c=q(),g&&g.c(),a=q(),b&&b.c(),r=q(),_&&_.c(),u=I(),N(n,"processing",e[8]),N(n,"data-test",s="dd_primary_"+e[0].actions[0].labelTest||"dd_primary_btn"),M(t,"class","sve_toaster__btns")},m(s,h){z(s,t,h),S(t,n),S(n,l),S(l,i),S(l,o),m&&m.m(l,null),S(t,c),g&&g.m(t,null),S(t,a),b&&b.m(t,null),z(s,r,h),_&&_.m(s,h),z(s,u,h),d||(p=D(n,"click",e[31]),d=!0)},p(e,o){1&o[0]&&h!==(h=e[0].actions[0].label+"")&&L(i,h),null!=e[9]?m?m.p(e,o):(m=Ve(e),m.c(),m.m(l,null)):m&&(m.d(1),m=null),256&o[0]&&N(n,"processing",e[8]),1&o[0]&&s!==(s="dd_primary_"+e[0].actions[0].labelTest||"dd_primary_btn")&&N(n,"data-test",s),1===e[0].actions.length&&e[14]>1&&e[15]?g?g.p(e,o):(g=Ke(e),g.c(),g.m(t,a)):g&&(g.d(1),g=null),v===(v=f(e))&&b?b.p(e,o):(b&&b.d(1),b=v&&v(e),b&&(b.c(),b.m(t,null))),e[0].errorText?_?_.p(e,o):(_=Je(e),_.c(),_.m(u.parentNode,u)):_&&(_.d(1),_=null)},d(e){e&&A(t),m&&m.d(),g&&g.d(),b&&b.d(),e&&A(r),_&&_.d(e),e&&A(u),d=!1,p()}}}function Ve(e){let t,n,l;return{c(){t=C("("),n=C(e[9]),l=C(")")},m(e,i){z(e,t,i),z(e,n,i),z(e,l,i)},p(e,t){512&t[0]&&L(n,e[9])},d(e){e&&A(t),e&&A(n),e&&A(l)}}}function Ke(e){let t,n,l,i,o,s,c,r=a("detection.action.closeAll")+"";return{c(){t=T("kin-button"),n=C(r),l=C("\n\t\t\t\t\t\t\t("),i=C(e[14]),o=C(")"),N(t,"class","g-margin-left--10"),N(t,"kin-disabled",e[8]),N(t,"data-test","closeAll"),N(t,"type","secondary")},m(a,r){z(a,t,r),S(t,n),S(t,l),S(t,i),S(t,o),s||(c=D(t,"click",e[19]),s=!0)},p(e,n){16384&n[0]&&L(i,e[14]),256&n[0]&&N(t,"kin-disabled",e[8])},d(e){e&&A(t),s=!1,c()}}}function Ye(e){let t,n,l,i,o,s,c,r,u=a("global.moreOptions")+"",d=e[0].actions,p=[];for(let a=0;a<d.length;a+=1)p[a]=Xe(Me(e,d,a));return{c(){t=T("kin-dropdown"),n=T("div"),l=T("kin-button"),i=C(u),o=q(),s=T("kin-icon"),c=q(),r=T("div");for(let e=0;e<p.length;e+=1)p[e].c();N(s,"class","g-margin-left--5"),N(s,"name","icon-s-controls-arrow-down"),N(s,"size","16"),N(l,"type","secondary"),N(l,"data-test","dd_dropdown_btn"),M(n,"slot","dropdown-activator"),N(t,"class","g-margin-left--10")},m(e,a){z(e,t,a),S(t,n),S(n,l),S(l,i),S(l,o),S(l,s),S(t,c),S(t,r);for(let t=0;t<p.length;t+=1)p[t].m(r,null)},p(e,t){if(8388609&t[0]){let n;for(d=e[0].actions,n=0;n<d.length;n+=1){const l=Me(e,d,n);p[n]?p[n].p(l,t):(p[n]=Xe(l),p[n].c(),p[n].m(r,null))}for(;n<p.length;n+=1)p[n].d(1);p.length=d.length}},d(e){e&&A(t),j(p,e)}}}function Ze(e){let t,n,l,i,o,s=e[0].actions[1].label+"";return{c(){t=T("kin-button"),n=C(s),N(t,"class","g-margin-left--10"),N(t,"kin-disabled",e[8]),N(t,"data-test",l="dd_secondary_"+e[0].actions[1].labelTest||"dd_secondary_btn"),N(t,"type","secondary")},m(l,s){z(l,t,s),S(t,n),i||(o=D(t,"click",e[32]),i=!0)},p(e,i){1&i[0]&&s!==(s=e[0].actions[1].label+"")&&L(n,s),256&i[0]&&N(t,"kin-disabled",e[8]),1&i[0]&&l!==(l="dd_secondary_"+e[0].actions[1].labelTest||"dd_secondary_btn")&&N(t,"data-test",l)},d(e){e&&A(t),i=!1,o()}}}function Xe(e){let t,n=0!==e[57]&&function(e){let t,n,l,i,o,s,c=e[55].label+"";function a(){return e[33](e[57])}return{c(){t=T("kin-dropdown-item"),n=C(c),l=q(),N(t,"data-test",i="dd_dropdown_"+e[55].labelTest||"dd_dropdown_"+e[57])},m(e,i){z(e,t,i),S(t,n),S(t,l),o||(s=D(t,"click",a),o=!0)},p(l,o){e=l,1&o[0]&&c!==(c=e[55].label+"")&&L(n,c),1&o[0]&&i!==(i="dd_dropdown_"+e[55].labelTest||"dd_dropdown_"+e[57])&&N(t,"data-test",i)},d(e){e&&A(t),o=!1,s()}}}(e);return{c(){n&&n.c(),t=I()},m(e,l){n&&n.m(e,l),z(e,t,l)},p(e,t){0!==e[57]&&n.p(e,t)},d(e){n&&n.d(e),e&&A(t)}}}function Je(e){let t,n,l=e[0].errorText+"";return{c(){t=T("p"),n=C(l),M(t,"class","g-margin-top--5 g-margin-bottom--10 p -small -secondary -text color-danger")},m(e,l){z(e,t,l),S(t,n)},p(e,t){1&t[0]&&l!==(l=e[0].errorText+"")&&L(n,l)},d(e){e&&A(t)}}}function Qe(e){let t,n,l,i=(e[5]||e[4]&&e[4].text)&&et(e);return{c(){t=T("div"),n=T("kin-progress"),l=q(),i&&i.c(),N(n,"percentage","-1"),M(t,"class","sve_toaster__progress")},m(e,o){z(e,t,o),S(t,n),S(t,l),i&&i.m(t,null)},p(e,n){e[5]||e[4]&&e[4].text?i?i.p(e,n):(i=et(e),i.c(),i.m(t,null)):i&&(i.d(1),i=null)},d(e){e&&A(t),i&&i.d()}}}function et(e){let t,n,l=(e[5]||e[4].text)+"";return{c(){t=T("p"),n=C(l),M(t,"class","g-margin-top--10 p -small -secondary")},m(e,l){z(e,t,l),S(t,n)},p(e,t){48&t[0]&&l!==(l=(e[5]||e[4].text)+"")&&L(n,l)},d(e){e&&A(t)}}}function tt(e){let t,n,l,i,o,s,c,a=e[0].dontShowAgain.label+"";return{c(){t=T("p"),n=T("input"),l=q(),i=T("label"),o=C(a),M(n,"type","checkbox"),M(n,"id","detection_dontShowAgain"),M(n,"class","checkbox"),M(i,"for","detection_dontShowAgain"),M(i,"class","g-margin-left--5"),M(t,"class","sve_toaster__text p g-margin-top--10")},m(a,r){z(a,t,r),S(t,n),S(t,l),S(t,i),S(i,o),s||(c=D(n,"click",e[34]),s=!0)},p(e,t){1&t[0]&&a!==(a=e[0].dontShowAgain.label+"")&&L(o,a)},d(e){e&&A(t),s=!1,c()}}}function nt(e){let t,n,l;function i(e,t){return e[2]?it:lt}let o=i(e),s=o(e);return{c(){t=T("button"),s.c(),M(t,"class","span -small -secondary g-cursor--pointer g-margin-top--10"),M(t,"data-test","btn_toggleDetails")},m(i,o){z(i,t,o),s.m(t,null),n||(l=D(t,"click",e[20]),n=!0)},p(e,n){o===(o=i(e))&&s?s.p(e,n):(s.d(1),s=o(e),s&&(s.c(),s.m(t,null)))},d(e){e&&A(t),s.d(),n=!1,l()}}}function lt(e){let t,n,l,i=a("global.showDetails")+"";return{c(){t=C(i),n=q(),l=T("kin-icon"),N(l,"name","icon-s-controls-arrow-down"),N(l,"size","16")},m(e,i){z(e,t,i),z(e,n,i),z(e,l,i)},p:f,d(e){e&&A(t),e&&A(n),e&&A(l)}}}function it(e){let t,n,l,i=a("global.hideDetails")+"";return{c(){t=C(i),n=q(),l=T("kin-icon"),N(l,"name","icon-s-controls-arrow-up"),N(l,"size","16")},m(e,i){z(e,t,i),z(e,n,i),z(e,l,i)},p:f,d(e){e&&A(t),e&&A(n),e&&A(l)}}}function ot(e){let t,n,l,i,o,s=e[0].details,c=[];for(let d=0;d<s.length;d+=1)c[d]=rt(De(e,s,d));let a=e[4]&&ut(e),r=e[6]&&pt(e),u=e[7]&&ht(e);return{c(){t=T("div"),n=T("dl");for(let e=0;e<c.length;e+=1)c[e].c();l=I(),a&&a.c(),i=I(),r&&r.c(),o=I(),u&&u.c(),M(n,"class","desclist -short"),M(t,"class","sve_toaster__details")},m(e,s){z(e,t,s),S(t,n);for(let t=0;t<c.length;t+=1)c[t].m(n,null);S(n,l),a&&a.m(n,null),S(n,i),r&&r.m(n,null),S(n,o),u&&u.m(n,null)},p(e,t){if(1&t[0]){let i;for(s=e[0].details,i=0;i<s.length;i+=1){const o=De(e,s,i);c[i]?c[i].p(o,t):(c[i]=rt(o),c[i].c(),c[i].m(n,l))}for(;i<c.length;i+=1)c[i].d(1);c.length=s.length}e[4]?a?a.p(e,t):(a=ut(e),a.c(),a.m(n,i)):a&&(a.d(1),a=null),e[6]?r?r.p(e,t):(r=pt(e),r.c(),r.m(n,o)):r&&(r.d(1),r=null),e[7]?u?u.p(e,t):(u=ht(e),u.c(),u.m(n,null)):u&&(u.d(1),u=null)},d(e){e&&A(t),j(c,e),a&&a.d(),r&&r.d(),u&&u.d()}}}function st(e){let t,n,l,i=e[52].title+"";function o(e,t){return"scoreMeter"===e[52].type&&4>e[52].value?at:ct}let s=o(e),c=s(e);return{c(){t=T("dt"),n=C(i),c.c(),l=I()},m(e,i){z(e,t,i),S(t,n),c.m(e,i),z(e,l,i)},p(e,t){1&t[0]&&i!==(i=e[52].title+"")&&L(n,i),s===(s=o(e))&&c?c.p(e,t):(c.d(1),c=s(e),c&&(c.c(),c.m(l.parentNode,l)))},d(e){e&&A(t),c.d(e),e&&A(l)}}}function ct(e){let t,n,l,i=e[52].value+"";return{c(){t=T("dd"),n=C(i),M(t,"data-test",l=e[52].testValue)},m(e,l){z(e,t,l),S(t,n)},p(e,o){1&o[0]&&i!==(i=e[52].value+"")&&L(n,i),1&o[0]&&l!==(l=e[52].testValue)&&M(t,"data-test",l)},d(e){e&&A(t)}}}function at(e){let t,n,l,i,o,s,c,a,r;return{c(){t=T("dd"),n=T("div"),l=T("div"),i=q(),o=T("div"),s=q(),c=T("div"),r=q(),M(n,"class",a="scoremeter -val-"+e[52].value)},m(e,a){z(e,t,a),S(t,n),S(n,l),S(n,i),S(n,o),S(n,s),S(n,c),S(t,r)},p(e,t){1&t[0]&&a!==(a="scoremeter -val-"+e[52].value)&&M(n,"class",a)},d(e){e&&A(t)}}}function rt(e){let t,n=e[52].value&&st(e);return{c(){n&&n.c(),t=I()},m(e,l){n&&n.m(e,l),z(e,t,l)},p(e,l){e[52].value?n?n.p(e,l):(n=st(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&A(t)}}}function ut(e){let t,n,l,i,o,s=e[4].text+"",c=e[4].action&&dt(e);return{c(){t=T("dt"),t.textContent=`${a("global.status")}`,n=T("dd"),l=C(s),i=q(),c&&c.c(),o=q(),M(n,"data-test","status")},m(e,s){z(e,t,s),z(e,n,s),S(n,l),S(n,i),c&&c.m(n,null),S(n,o)},p(e,t){16&t[0]&&s!==(s=e[4].text+"")&&L(l,s),e[4].action?c?c.p(e,t):(c=dt(e),c.c(),c.m(n,o)):c&&(c.d(1),c=null)},d(e){e&&A(t),e&&A(n),c&&c.d()}}}function dt(e){let t,n,l,i,o,s,c=e[4].actionLabel+"";return{c(){t=C("| "),n=T("button"),l=C(c),M(n,"class","a"),M(n,"data-test",i="scn_"+e[4].actionLabelGa)},m(i,c){z(i,t,c),z(i,n,c),S(n,l),o||(s=D(n,"click",e[21]),o=!0)},p(e,t){16&t[0]&&c!==(c=e[4].actionLabel+"")&&L(l,c),16&t[0]&&i!==(i="scn_"+e[4].actionLabelGa)&&M(n,"data-test",i)},d(e){e&&A(t),e&&A(n),o=!1,s()}}}function pt(e){let t,n,l,i,o,s,c,r,u=e[6].text+"";return{c(){t=T("dt"),t.textContent=`${a("global.option")}`,n=T("dd"),l=T("button"),i=C(u),s=q(),M(l,"class","a"),M(l,"data-test",o="scn_"+e[6].actionLabelGa),M(n,"data-test","option")},m(o,a){z(o,t,a),z(o,n,a),S(n,l),S(l,i),S(n,s),c||(r=D(l,"click",e[22]),c=!0)},p(e,t){64&t[0]&&u!==(u=e[6].text+"")&&L(i,u),64&t[0]&&o!==(o="scn_"+e[6].actionLabelGa)&&M(l,"data-test",o)},d(e){e&&A(t),e&&A(n),c=!1,r()}}}function ht(e){let t,n=e[7],l=[];for(let i=0;i<n.length;i+=1)l[i]=bt(Ie(e,n,i));return{c(){for(let e=0;e<l.length;e+=1)l[e].c();t=I()},m(e,n){for(let t=0;t<l.length;t+=1)l[t].m(e,n);z(e,t,n)},p(e,i){if(33554560&i[0]){let o;for(n=e[7],o=0;o<n.length;o+=1){const s=Ie(e,n,o);l[o]?l[o].p(s,i):(l[o]=bt(s),l[o].c(),l[o].m(t.parentNode,t))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(e){j(l,e),e&&A(t)}}}function mt(e){let t;return{c(){t=T("dt"),t.textContent=`${a("global.options")}`},m(e,n){z(e,t,n)},p:f,d(e){e&&A(t)}}}function gt(e){let t,n,l=e[49].title+"";return{c(){t=T("dt"),n=C(l)},m(e,l){z(e,t,l),S(t,n)},p(e,t){128&t[0]&&l!==(l=e[49].title+"")&&L(n,l)},d(e){e&&A(t)}}}function ft(e){let t,n,l,i,o,s,c,a,r,u=e[49].label+"";function d(){return e[35](e[49])}return{c(){t=T("input"),i=q(),o=T("label"),s=C(u),M(t,"type","checkbox"),M(t,"class","checkbox"),t.checked=n=e[49].value,M(t,"id",l="form_checkbox_"+e[49].valueName),M(o,"for",c="form_checkbox_"+e[49].valueName),M(o,"class","g-margin-left--5")},m(e,n){z(e,t,n),z(e,i,n),z(e,o,n),S(o,s),a||(r=D(t,"click",d),a=!0)},p(i,a){e=i,128&a[0]&&n!==(n=e[49].value)&&(t.checked=n),128&a[0]&&l!==(l="form_checkbox_"+e[49].valueName)&&M(t,"id",l),128&a[0]&&u!==(u=e[49].label+"")&&L(s,u),128&a[0]&&c!==(c="form_checkbox_"+e[49].valueName)&&M(o,"for",c)},d(e){e&&A(t),e&&A(i),e&&A(o),a=!1,r()}}}function vt(e){let t,n,l,i=e[49].label+"";return{c(){t=T("label"),n=C(i),M(t,"for",l="form_checkbox_"+e[49].valueName)},m(e,l){z(e,t,l),S(t,n)},p(e,o){128&o[0]&&i!==(i=e[49].label+"")&&L(n,i),128&o[0]&&l!==(l="form_checkbox_"+e[49].valueName)&&M(t,"for",l)},d(e){e&&A(t)}}}function bt(e){let t,n,l;function i(e,t){return e[49].title?gt:mt}let o=i(e),s=o(e),c="checkbox"===e[49].type&&ft(e),a="label"===e[49].type&&vt(e);return{c(){s.c(),t=T("dd"),c&&c.c(),n=q(),a&&a.c(),l=q()},m(e,i){s.m(e,i),z(e,t,i),c&&c.m(t,null),S(t,n),a&&a.m(t,null),S(t,l)},p(e,r){o===(o=i(e))&&s?s.p(e,r):(s.d(1),s=o(e),s&&(s.c(),s.m(t.parentNode,t))),"checkbox"===e[49].type?c?c.p(e,r):(c=ft(e),c.c(),c.m(t,n)):c&&(c.d(1),c=null),"label"===e[49].type?a?a.p(e,r):(a=vt(e),a.c(),a.m(t,l)):a&&(a.d(1),a=null)},d(e){s.d(e),e&&A(t),c&&c.d(),a&&a.d()}}}function _t(e){let t,n,l,i,o=e[11]&&kt(e),s=e[14]>1&&$t(e);return{c(){t=T("div"),n=T("div"),o&&o.c(),l=q(),i=T("div"),s&&s.c(),M(t,"class","sve_toaster__footer")},m(e,c){z(e,t,c),S(t,n),o&&o.m(n,null),S(t,l),S(t,i),s&&s.m(i,null)},p(e,t){e[11]?o?o.p(e,t):(o=kt(e),o.c(),o.m(n,null)):o&&(o.d(1),o=null),e[14]>1?s?s.p(e,t):(s=$t(e),s.c(),s.m(i,null)):s&&(s.d(1),s=null)},d(e){e&&A(t),o&&o.d(),s&&s.d()}}}function kt(e){let t,n,l,i,o,s,c,r,u,d,p,h,m=e[12]?"/"+e[12]:"";return{c(){t=T("span"),n=C(e[11]),l=C(m),i=q(),o=T("kin-tooltip"),s=T("span"),s.innerHTML='<kin-icon name="icon-m-action-info" size="20"></kin-icon>',c=q(),r=T("div"),u=T("h4"),u.textContent=`${a("detection.alertid.title")}`,d=q(),p=T("p"),p.textContent=`${a("detection.alertid.desc")}`,h=T("p"),M(t,"class","span -small -secondary"),M(t,"data-test","dd_alertid_text"),M(s,"slot","tooltip-activator"),M(u,"class","h4 -margins"),M(p,"class","p -small"),M(r,"slot","tooltip"),N(o,"severity","highlight")},m(e,a){z(e,t,a),S(t,n),S(t,l),z(e,i,a),z(e,o,a),S(o,s),S(o,c),S(o,r),S(r,u),S(r,d),S(r,p),S(r,h)},p(e,t){2048&t[0]&&L(n,e[11]),4096&t[0]&&m!==(m=e[12]?"/"+e[12]:"")&&L(l,m)},d(e){e&&A(t),e&&A(i),e&&A(o)}}}function $t(e){let t,n,l,i,o,s,c,r,u,d,p,h,m,g=e[13]+1+"";return{c(){t=T("span"),t.textContent=`${a("detection.more.detections")}`,n=q(),l=T("kin-button"),i=T("kin-icon"),o=q(),s=C(g),c=C("\n\t\t\t\t\t\t/\n\t\t\t\t\t\t"),r=T("kin-button"),u=C(e[14]),d=q(),p=T("kin-icon"),M(t,"class","span -small -secondary"),N(i,"name","icon-s-controls-arrow-left"),N(i,"size","16"),N(i,"rtlflip","true"),N(l,"type","blank"),N(l,"size","small"),N(l,"class","sve_toaster__paginator g-margin-left--5"),N(l,"data-test","dd_prev_btn"),N(p,"name","icon-s-controls-arrow-right"),N(p,"size","16"),N(p,"rtlflip","true"),N(r,"type","blank"),N(r,"size","small"),N(r,"class","sve_toaster__paginator"),N(r,"data-test","dd_next_btn")},m(a,g){z(a,t,g),z(a,n,g),z(a,l,g),S(l,i),S(l,o),S(l,s),z(a,c,g),z(a,r,g),S(r,u),S(r,d),S(r,p),h||(m=[D(l,"click",e[17]),D(r,"click",e[18])],h=!0)},p(e,t){8192&t[0]&&g!==(g=e[13]+1+"")&&L(s,g),16384&t[0]&&L(u,e[14])},d(e){e&&A(t),e&&A(n),e&&A(l),e&&A(c),e&&A(r),h=!1,_(m)}}}function yt(e){let t,n,l,i,o=e[0]&&Pe(e);return{c(){o&&o.c(),t=I()},m(s,c){o&&o.m(s,c),z(s,t,c),n=!0,l||(i=D(qe,"keydown",e[16]),l=!0)},p(e,n){e[0]?o?(o.p(e,n),1&n[0]&&ce(o,1)):(o=Pe(e),o.c(),ce(o,1),o.m(t.parentNode,t)):o&&(oe(),ae(o,1,1,(()=>{o=null})),se())},i(e){n||(ce(o),n=!0)},o(e){ae(o),n=!1},d(e){o&&o.d(e),e&&A(t),l=!1,i()}}}function wt(n,l,o){let s,c,a,u,d,p,h,{$$slots:m={},$$scope:g}=l;const f=W();let v,b,_,k,$,y,{windowWidth:w=600}=l,{config:x=null}=l,{windowClose:E=null}=l,S=!1,z=null,A=null,j=!1,T=!1,C=!1,q=!1;function I(e=!1){const n=x&&x.closeResponse;E?E(n):(f("close",n),(e||p<=1)&&t.close())}function D(e){M(x.actions[e],e)}function M(t,n){const l=t.action&&t.action(),i=Date.now();if(A&&A(),null==l)null==t.nextConfig?I():N(t.nextConfig,i,t.minDuration);else{const e=1===n&&2===x.actions.length&&!x.hideSecondAction;t.status||0!==n&&!e?(o(4,v=t.status),o(5,b=void 0),o(6,_=t.option),o(3,j=!0)):o(8,T=!0),l.then((e=>{N(e,i,t.minDuration)})).catch((e=>{N(e,i,t.minDuration)}))}t.labelGa&&e.event("DetectionDialog","Click",t.labelGa)}function N(e,t,n){const l=Math.max(n-(Date.now()-t),0);if(z&&z(),l>0){const t=window.setTimeout((()=>{!e&&p>0?I():o(0,x=e),z&&z()}),l);z=()=>{window.clearTimeout(t),z=null}}else!e&&p>0?I():o(0,x=e)}function L(e){e?(o(3,j=x.progress),o(4,v=x.status),o(5,b=x.progressStatusText),o(6,_=x.option),o(7,k=x.formItems),o(8,T=!1),function(){if(A&&A(),x.actions&&x.actions.length&&x.actions[0].countdown){o(9,$=x.actions[0].countdown);const e=window.setInterval((function(){$?o(9,$--,$):M(x.actions[0],0)}),1e3);A=function(){window.clearInterval(e),o(9,$=null),A=null}}}()):I()}function P(e){const n=Math.max(400,e.scrollHeight);q&&(q=!1,o(10,C=n>window.screen.availHeight)),t.resize(w,Math.min(n,window.screen.availHeight))}function H(e){e.value=!e.value,f("formItemUpdated",e)}F((()=>{i.play("threat")})),U((()=>{z&&z(),A&&A(),y&&y.cancel()}));return n.$$set=e=>{"windowWidth"in e&&o(1,w=e.windowWidth),"config"in e&&o(0,x=e.config),"windowClose"in e&&o(26,E=e.windowClose),"$$scope"in e&&o(29,g=e.$$scope)},n.$$.update=()=>{1&n.$$.dirty[0]&&L(x),1&n.$$.dirty[0]&&o(27,s=x&&x.trackerTitle),134217728&n.$$.dirty[0]&&function(n){const l=t.getUrlParams();null!=n&&e.view(l.module+"_"+l.view+(n?"_"+n:""))}(s),1&n.$$.dirty[0]&&o(28,c=x&&x.detectionInfo||{}),268435456&n.$$.dirty[0]&&o(11,a=c.id||""),268435456&n.$$.dirty[0]&&o(12,u=c.timestamp&&r(c.timestamp).format("YYMMDD.HHmmZZ")||""),268435456&n.$$.dirty[0]&&o(13,d=c.index||0),268435456&n.$$.dirty[0]&&o(14,p=c.total||0),268435456&n.$$.dirty[0]&&o(15,h=c.showCloseAllBtn||!1)},[x,w,S,j,v,b,_,k,T,$,C,a,u,d,p,h,function(e){const t=x.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 M(t,n),!0}))},function(){f("prev")},function(){f("next")},function(){!function(t=!1){e.event("DetectionDialog","Close"),f("ignore"),I(t)}(!0)},function(){o(2,S=!S),q=!0},function(){const t=v.actionLabelGa,n=v.action;t&&e.event("DetectionDialog","Click",t),"function"==typeof n?n():console.error("[SvelteComponents] {DetectionDialog} StatusAction is not function")},function(){const t=_.actionLabelGa,n=_.action;t&&e.event("DetectionDialog","Click",t),"function"==typeof n?n():console.error("[SvelteComponents] {DetectionDialog} OptionAction is not function")},D,function(e){P(e),y=Ce(P.bind(this,e),25);const t=new MutationObserver(y);return t.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),{destroy:t.disconnect.bind(t)}},H,E,s,c,g,m,()=>D(0),()=>D(1),e=>D(e),e=>x.dontShowAgain.action(e.target.checked),e=>H(e)]}class xt extends ge{constructor(e){super(),me(this,e,wt,yt,$,{windowWidth:1,config:0,windowClose:26},[-1,-1])}}const Et=e=>({}),St=e=>({}),zt=e=>({}),At=e=>({}),jt=e=>({}),Tt=e=>({}),Ct=e=>({}),qt=e=>({});function It(e){let t,n,l;return{c(){t=T("div"),M(t,"class","sve_modal__overlay__close")},m(i,o){z(i,t,o),n||(l=D(t,"click",e[16]),n=!0)},p:f,d(e){e&&A(t),n=!1,l()}}}function Dt(e){let t,n,l,i;return{c(){t=T("button"),n=T("kin-icon"),N(n,"name","icon-s-controls-close"),N(n,"size","12"),M(t,"class","sve_modal__close"),M(t,"data-test","close"),M(t,"title",a("global.closeModalWindow"))},m(o,s){z(o,t,s),S(t,n),l||(i=D(t,"click",e[17]),l=!0)},p:f,d(e){e&&A(t),l=!1,i()}}}function Mt(e){let t,n,l,i,o=e[0]&&Nt(e),s=e[1]&&Lt(e);const c=e[15]["modal-header"],a=y(c,e,e[14],qt);return{c(){t=T("div"),o&&o.c(),n=q(),s&&s.c(),l=q(),a&&a.c(),M(t,"class","sve_modal__header")},m(e,c){z(e,t,c),o&&o.m(t,null),S(t,n),s&&s.m(t,null),S(t,l),a&&a.m(t,null),i=!0},p(e,i){e[0]?o?o.p(e,i):(o=Nt(e),o.c(),o.m(t,n)):o&&(o.d(1),o=null),e[1]?s?s.p(e,i):(s=Lt(e),s.c(),s.m(t,l)):s&&(s.d(1),s=null),a&&a.p&&16384&i&&x(a,c,e,e[14],i,Ct,qt)},i(e){i||(ce(a,e),i=!0)},o(e){ae(a,e),i=!1},d(e){e&&A(t),o&&o.d(),s&&s.d(),a&&a.d(e)}}}function Nt(e){let t,n;return{c(){t=T("h2"),n=C(e[0]),M(t,"class","sve_modal__title")},m(e,l){z(e,t,l),S(t,n)},p(e,t){1&t&&L(n,e[0])},d(e){e&&A(t)}}}function Lt(e){let t,n;return{c(){t=T("p"),n=C(e[1]),M(t,"class","sve_modal__subtitle")},m(e,l){z(e,t,l),S(t,n)},p(e,t){2&t&&L(n,e[1])},d(e){e&&A(t)}}}function Pt(e){let t,n;const l=e[15]["modal-footer"],i=y(l,e,e[14],At);return{c(){t=T("div"),i&&i.c(),M(t,"class","sve_modal__footer")},m(e,l){z(e,t,l),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&16384&t&&x(i,l,e,e[14],t,zt,At)},i(e){n||(ce(i,e),n=!0)},o(e){ae(i,e),n=!1},d(e){e&&A(t),i&&i.d(e)}}}function Ht(e){let t,n,l;const i=e[15]["modal-ipm"],o=y(i,e,e[14],St);return{c(){t=T("div"),o&&o.c(),M(t,"class","sve_modal__ipm"),M(t,"style",n=`${e[9]} margin-top: 0;`)},m(e,n){z(e,t,n),o&&o.m(t,null),l=!0},p(e,s){o&&o.p&&16384&s&&x(o,i,e,e[14],s,Et,St),(!l||512&s&&n!==(n=`${e[9]} margin-top: 0;`))&&M(t,"style",n)},i(e){l||(ce(o,e),l=!0)},o(e){ae(o,e),l=!1},d(e){e&&A(t),o&&o.d(e)}}}function Rt(e){let t,n,l,i,o,s,c,a,r,d,p,h,m,g,f,v=e[4]&&It(e),b=e[4]&&Dt(e),k=!e[7]&&Mt(e);const $=e[15]["modal-content"],w=y($,e,e[14],Tt);let j=!e[7]&&Pt(e),C=e[6]&&Ht(e);return{c(){t=T("div"),v&&v.c(),n=q(),l=T("div"),b&&b.c(),i=q(),k&&k.c(),o=q(),s=T("div"),w&&w.c(),c=q(),j&&j.c(),a=q(),C&&C.c(),M(s,"class","sve_modal__content"),M(l,"class","sve_modal"),M(l,"style",r=`${e[8]}`),M(t,"class",d="sve_modal__overlay "+e[5]),M(t,"data-test",e[3]),M(t,"role","dialog"),M(t,"aria-labelledby",p=e[0]?e[0]:e[2]),M(t,"aria-describedby",h=e[1]?e[1]:"")},m(r,d){z(r,t,d),v&&v.m(t,null),S(t,n),S(t,l),b&&b.m(l,null),S(l,i),k&&k.m(l,null),S(l,o),S(l,s),w&&w.m(s,null),S(l,c),j&&j.m(l,null),S(l,a),C&&C.m(l,null),m=!0,g||(f=[D(window,"keydown",e[11],!0),E(u.call(null,t))],g=!0)},p(e,[s]){e[4]?v?v.p(e,s):(v=It(e),v.c(),v.m(t,n)):v&&(v.d(1),v=null),e[4]?b?b.p(e,s):(b=Dt(e),b.c(),b.m(l,i)):b&&(b.d(1),b=null),e[7]?k&&(oe(),ae(k,1,1,(()=>{k=null})),se()):k?(k.p(e,s),128&s&&ce(k,1)):(k=Mt(e),k.c(),ce(k,1),k.m(l,o)),w&&w.p&&16384&s&&x(w,$,e,e[14],s,jt,Tt),e[7]?j&&(oe(),ae(j,1,1,(()=>{j=null})),se()):j?(j.p(e,s),128&s&&ce(j,1)):(j=Pt(e),j.c(),ce(j,1),j.m(l,a)),e[6]?C?(C.p(e,s),64&s&&ce(C,1)):(C=Ht(e),C.c(),ce(C,1),C.m(l,null)):C&&(oe(),ae(C,1,1,(()=>{C=null})),se()),(!m||256&s&&r!==(r=`${e[8]}`))&&M(l,"style",r),(!m||32&s&&d!==(d="sve_modal__overlay "+e[5]))&&M(t,"class",d),(!m||8&s)&&M(t,"data-test",e[3]),(!m||5&s&&p!==(p=e[0]?e[0]:e[2]))&&M(t,"aria-labelledby",p),(!m||2&s&&h!==(h=e[1]?e[1]:""))&&M(t,"aria-describedby",h)},i(e){m||(ce(k),ce(w,e),ce(j),ce(C),m=!0)},o(e){ae(k),ae(w,e),ae(j),ae(C),m=!1},d(e){e&&A(t),v&&v.d(),b&&b.d(),k&&k.d(),w&&w.d(e),j&&j.d(),C&&C.d(),g=!1,_(f)}}}function Ot(e,t,n){let{$$slots:l={},$$scope:i}=t;const o=W();let s,{title:c=null}=t,{subtitle:a=null}=t,{hiddenTitle:r=null}=t,{testId:u=""}=t,{closable:d=!0}=t,{cssCls:p=""}=t,{ipm:h=!1}=t,{customContent:m=!1}=t,{width:g}=t,{ipmHeight:f}=t,v="",b="";F((()=>{s=document.activeElement})),U((()=>{document.body.contains(s)&&s.focus()}));return e.$$set=e=>{"title"in e&&n(0,c=e.title),"subtitle"in e&&n(1,a=e.subtitle),"hiddenTitle"in e&&n(2,r=e.hiddenTitle),"testId"in e&&n(3,u=e.testId),"closable"in e&&n(4,d=e.closable),"cssCls"in e&&n(5,p=e.cssCls),"ipm"in e&&n(6,h=e.ipm),"customContent"in e&&n(7,m=e.customContent),"width"in e&&n(12,g=e.width),"ipmHeight"in e&&n(13,f=e.ipmHeight),"$$scope"in e&&n(14,i=e.$$scope)},e.$$.update=()=>{4096&e.$$.dirty&&g&&n(8,v=`width: ${g}px;`),8256&e.$$.dirty&&h&&f&&n(9,b=`height: ${f}px;`)},[c,a,r,u,d,p,h,m,v,b,o,function(e){"Escape"===e.code&&(o("close"),e.preventDefault(),e.stopPropagation())},g,f,i,l,()=>o("close"),()=>o("close")]}class Bt extends ge{constructor(e){super(),me(this,e,Ot,Rt,$,{title:0,subtitle:1,hiddenTitle:2,testId:3,closable:4,cssCls:5,ipm:6,customContent:7,width:12,ipmHeight:13})}}const{document:Ft}=re;const Ut=e=>({}),Wt=e=>({}),Gt=e=>({}),Vt=e=>({}),Kt=e=>({}),Yt=e=>({}),Zt=e=>({}),Xt=e=>({}),Jt=e=>({}),Qt=e=>({}),en=e=>({}),tn=e=>({});function nn(e){let t,n,l,i,o;const s=[on,ln],c=[];function a(e,t){return""!=e[0]?0:1}return t=a(e),n=c[t]=s[t](e),{c(){n.c(),l=q(),i=T("kin-loading"),N(i,"fullscreen","true"),N(i,"class","svelte-13u5uhu")},m(e,n){c[t].m(e,n),z(e,l,n),z(e,i,n),o=!0},p(e,i){let o=t;t=a(e),t===o?c[t].p(e,i):(oe(),ae(c[o],1,1,(()=>{c[o]=null})),se(),n=c[t],n?n.p(e,i):(n=c[t]=s[t](e),n.c()),ce(n,1),n.m(l.parentNode,l))},i(e){o||(ce(n),o=!0)},o(e){ae(n),o=!1},d(e){c[t].d(e),e&&A(l),e&&A(i)}}}function ln(e){let t,n;const l=e[16]["page-title"],i=y(l,e,e[15],tn);return{c(){t=T("div"),i&&i.c(),M(t,"class","kin_loading__title svelte-13u5uhu"),P(t,"color","transparent")},m(e,l){z(e,t,l),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&32768&t&&x(i,l,e,e[15],t,en,tn)},i(e){n||(ce(i,e),n=!0)},o(e){ae(i,e),n=!1},d(e){e&&A(t),i&&i.d(e)}}}function on(e){let t;return{c(){t=T("h1"),M(t,"class","kin_loading__title svelte-13u5uhu"),P(t,"color","transparent")},m(n,l){z(n,t,l),t.innerHTML=e[0]},p(e,n){1&n&&(t.innerHTML=e[0])},i:f,o:f,d(e){e&&A(t)}}}function sn(e){let t,n;const l=e[16]["page-title"],i=y(l,e,e[15],Xt);return{c(){t=T("div"),i&&i.c(),M(t,"class","kin_header__title svelte-13u5uhu")},m(e,l){z(e,t,l),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&32768&t&&x(i,l,e,e[15],t,Zt,Xt)},i(e){n||(ce(i,e),n=!0)},o(e){ae(i,e),n=!1},d(e){e&&A(t),i&&i.d(e)}}}function cn(e){let t;return{c(){t=T("h1"),M(t,"class","kin_header__title svelte-13u5uhu")},m(n,l){z(n,t,l),t.innerHTML=e[0]},p(e,n){1&n&&(t.innerHTML=e[0])},i:f,o:f,d(e){e&&A(t)}}}function an(e){let t,n,l;const i=e[16].controls,o=y(i,e,e[15],Yt);let s=e[4]&&e[5]&&rn(e);return{c(){t=T("div"),o&&o.c(),n=q(),s&&s.c(),M(t,"class","kin_header__controls svelte-13u5uhu")},m(e,i){z(e,t,i),o&&o.m(t,null),S(t,n),s&&s.m(t,null),l=!0},p(e,n){o&&o.p&&32768&n&&x(o,i,e,e[15],n,Kt,Yt),e[4]&&e[5]?s?s.p(e,n):(s=rn(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},i(e){l||(ce(o,e),l=!0)},o(e){ae(o,e),l=!1},d(e){e&&A(t),o&&o.d(e),s&&s.d()}}}function rn(e){let t,n;return{c(){t=T("div"),n=C(e[5]),M(t,"class","kin_header__tooltip tooltip -onboarding -arrow-top svelte-13u5uhu")},m(e,l){z(e,t,l),S(t,n)},p(e,t){32&t&&L(n,e[5])},d(e){e&&A(t)}}}function un(e){let t,n,l,i;return{c(){t=T("button"),n=T("kin-icon"),N(n,"name","icon-s-controls-arrow-left"),N(n,"size","20"),N(n,"class","svelte-13u5uhu"),M(t,"class","kin_back-btn svelte-13u5uhu"),M(t,"title",a("global.goBack"))},m(o,s){z(o,t,s),S(t,n),l||(i=D(t,"click",e[17]),l=!0)},p:f,d(e){e&&A(t),l=!1,i()}}}function dn(e){let t,n,l;return{c(){t=T("a"),n=T("kin-icon"),N(n,"name","icon-s-controls-arrow-left"),N(n,"size","20"),N(n,"class","svelte-13u5uhu"),M(t,"class","kin_back-btn svelte-13u5uhu"),M(t,"href",l=e[9]||"#Dashboard"),M(t,"title",a("global.goBack"))},m(e,l){z(e,t,l),S(t,n)},p(e,n){512&n&&l!==(l=e[9]||"#Dashboard")&&M(t,"href",l)},d(e){e&&A(t)}}}function pn(e){let t,n;return{c(){t=T("a"),n=T("kin-icon"),N(n,"name","icon-s-settings-button"),N(n,"size","20"),N(n,"class","svelte-13u5uhu"),M(t,"class","kin_settings-btn svelte-13u5uhu"),M(t,"href",e[1]),M(t,"title",a("settings"))},m(e,l){z(e,t,l),S(t,n)},p(e,n){2&n&&M(t,"href",e[1])},d(e){e&&A(t)}}}function hn(e){let t,n,l,i;const o=e[16]["page-content"],s=y(o,e,e[15],Wt);return{c(){t=T("div"),s&&s.c(),M(t,"class","kin_page__content svelte-13u5uhu"),H(t,"-disabled",e[4])},m(o,c){z(o,t,c),s&&s.m(t,null),n=!0,l||(i=E(e[13].call(null,t)),l=!0)},p(e,n){s&&s.p&&32768&n&&x(s,o,e,e[15],n,Ut,Wt),16&n&&H(t,"-disabled",e[4])},i(e){n||(ce(s,e),n=!0)},o(e){ae(s,e),n=!1},d(e){e&&A(t),s&&s.d(e),l=!1,i()}}}function mn(e){let t,n;const l=e[16].upsell,i=y(l,e,e[15],Vt);return{c(){t=T("div"),i&&i.c(),M(t,"class","kin_page__content svelte-13u5uhu")},m(e,l){z(e,t,l),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&32768&t&&x(i,l,e,e[15],t,Gt,Vt)},i(e){n||(ce(i,e),n=!0)},o(e){ae(i,e),n=!1},d(e){e&&A(t),i&&i.d(e)}}}function gn(e){let t,n,l,i,o,s,c,a,r,u,d,p,h,m,g,f,v,b=e[10]&&nn(e);const _=e[16].breadcrumbs,k=y(_,e,e[15],Qt),$=[cn,sn],w=[];function E(e,t){return e[0]?0:1}a=E(e),r=w[a]=$[a](e);let j=!e[3]&&an(e);function C(e,t){return e[7]&&!e[8]?dn:e[8]?un:void 0}let I=C(e),D=I&&I(e),N=e[1]&&!e[3]&&pn(e);const L=[mn,hn],P=[];function R(e,t){return e[3]?0:1}return m=R(e),g=P[m]=L[m](e),{c(){t=T("div"),b&&b.c(),n=q(),l=T("div"),i=T("header"),o=T("div"),k&&k.c(),s=q(),c=T("div"),r.c(),u=q(),j&&j.c(),d=q(),D&&D.c(),p=q(),N&&N.c(),h=q(),g.c(),M(o,"class","kin_header__crumbs crumbs svelte-13u5uhu"),M(c,"class","kin_header__content svelte-13u5uhu"),M(i,"class","kin_header svelte-13u5uhu"),M(l,"class","svelte-13u5uhu"),H(l,"invisible",e[10]),M(t,"class",f="kin_page "+("ltr"!=e[11]?"-"+e[11]:"")+" "+(e[6]?"-"+e[6]:"")+" "+e[2]+" svelte-13u5uhu")},m(e,r){z(e,t,r),b&&b.m(t,null),S(t,n),S(t,l),S(l,i),S(i,o),k&&k.m(o,null),S(i,s),S(i,c),w[a].m(c,null),S(c,u),j&&j.m(c,null),S(i,d),D&&D.m(i,null),S(i,p),N&&N.m(i,null),S(l,h),P[m].m(l,null),v=!0},p(e,[o]){e[10]?b?(b.p(e,o),1024&o&&ce(b,1)):(b=nn(e),b.c(),ce(b,1),b.m(t,n)):b&&(oe(),ae(b,1,1,(()=>{b=null})),se()),k&&k.p&&32768&o&&x(k,_,e,e[15],o,Jt,Qt);let s=a;a=E(e),a===s?w[a].p(e,o):(oe(),ae(w[s],1,1,(()=>{w[s]=null})),se(),r=w[a],r?r.p(e,o):(r=w[a]=$[a](e),r.c()),ce(r,1),r.m(c,u)),e[3]?j&&(oe(),ae(j,1,1,(()=>{j=null})),se()):j?(j.p(e,o),8&o&&ce(j,1)):(j=an(e),j.c(),ce(j,1),j.m(c,null)),I===(I=C(e))&&D?D.p(e,o):(D&&D.d(1),D=I&&I(e),D&&(D.c(),D.m(i,p))),e[1]&&!e[3]?N?N.p(e,o):(N=pn(e),N.c(),N.m(i,null)):N&&(N.d(1),N=null);let d=m;m=R(e),m===d?P[m].p(e,o):(oe(),ae(P[d],1,1,(()=>{P[d]=null})),se(),g=P[m],g?g.p(e,o):(g=P[m]=L[m](e),g.c()),ce(g,1),g.m(l,null)),1024&o&&H(l,"invisible",e[10]),(!v||2116&o&&f!==(f="kin_page "+("ltr"!=e[11]?"-"+e[11]:"")+" "+(e[6]?"-"+e[6]:"")+" "+e[2]+" svelte-13u5uhu"))&&M(t,"class",f)},i(e){v||(ce(b),ce(k,e),ce(r),ce(j),ce(g),v=!0)},o(e){ae(b),ae(k,e),ae(r),ae(j),ae(g),v=!1},d(e){e&&A(t),b&&b.d(),k&&k.d(e),w[a].d(),j&&j.d(),D&&D.d(),N&&N.d(),P[m].d()}}}function fn(e,t,n){let{$$slots:l={},$$scope:i}=t,{heading:o}=t,{settingsUrl:s}=t,{cssCls:c}=t,{upsell:a=!1}=t,{inactive:r=!1}=t,{inactiveMsg:u}=t,{layout:p}=t,{back:h=!0}=t,{backEvent:m=!1}=t,{backHash:g}=t,{loading:f=!1}=t;const v=W();let b,_="ltr";F((()=>{n(11,_=document.body.dir)})),U((()=>{n(11,_=null)}));return e.$$set=e=>{"heading"in e&&n(0,o=e.heading),"settingsUrl"in e&&n(1,s=e.settingsUrl),"cssCls"in e&&n(2,c=e.cssCls),"upsell"in e&&n(3,a=e.upsell),"inactive"in e&&n(4,r=e.inactive),"inactiveMsg"in e&&n(5,u=e.inactiveMsg),"layout"in e&&n(6,p=e.layout),"back"in e&&n(7,h=e.back),"backEvent"in e&&n(8,m=e.backEvent),"backHash"in e&&n(9,g=e.backHash),"loading"in e&&n(10,f=e.loading),"$$scope"in e&&n(15,i=e.$$scope)},e.$$.update=()=>{16400&e.$$.dirty&&b&&b.set(!r)},[o,s,c,a,r,u,p,h,m,g,f,_,v,function(e){return n(14,b=new d(e)),{destroy:()=>{b.destroy(),n(14,b=null)}}},b,i,l,()=>v("backClick")]}class vn extends ge{constructor(e){var t;super(),Ft.getElementById("svelte-13u5uhu-style")||((t=T("style")).id="svelte-13u5uhu-style",t.textContent=".invisible.svelte-13u5uhu.svelte-13u5uhu{display:none}.svelte-13u5uhu.svelte-13u5uhu,.svelte-13u5uhu.svelte-13u5uhu:before,.svelte-13u5uhu.svelte-13u5uhu:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.kin_page.svelte-13u5uhu.svelte-13u5uhu{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--page-background);overflow:hidden}.kin_loading__title.svelte-13u5uhu.svelte-13u5uhu{position:absolute;opacity:0.01}.kin_header.svelte-13u5uhu.svelte-13u5uhu{padding:1.5rem var(--page-padding) 0;height:var(--header-height);position:relative;text-align:var(--page-header-align)}.kin_header__crumbs.svelte-13u5uhu.svelte-13u5uhu,.kin_header__content.svelte-13u5uhu.svelte-13u5uhu{position:absolute;left:var(--page-padding);right:var(--page-padding)}.kin_header__crumbs.svelte-13u5uhu.svelte-13u5uhu{display:var(--breadcrumbs-vis)}.kin_header__content.svelte-13u5uhu.svelte-13u5uhu{bottom:1.1rem}.kin_header__title.svelte-13u5uhu.svelte-13u5uhu,.kin_header__controls.svelte-13u5uhu.svelte-13u5uhu{display:inline-block;vertical-align:middle;position:relative}.kin_header__title.svelte-13u5uhu.svelte-13u5uhu{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-13u5uhu.svelte-13u5uhu{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-13u5uhu.svelte-13u5uhu,.kin_settings-btn.svelte-13u5uhu.svelte-13u5uhu{position:absolute;left:0;top:var(--back-button-top);border:0;background-color:var(--ds-on-background-extra-light);transition:background-color 0.2s, width 0.2s;cursor:pointer;color:inherit;text-decoration:none;width:4.8rem;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-13u5uhu kin-icon.svelte-13u5uhu,.kin_settings-btn.svelte-13u5uhu kin-icon.svelte-13u5uhu{opacity:0.75}.kin_back-btn.svelte-13u5uhu.svelte-13u5uhu:focus,.kin_settings-btn.svelte-13u5uhu.svelte-13u5uhu:focus,.kin_back-btn.svelte-13u5uhu.svelte-13u5uhu:hover,.kin_settings-btn.svelte-13u5uhu.svelte-13u5uhu:hover{width:5.6rem;background-color:var(--ds-on-background-light);outline:0}.kin_back-btn.svelte-13u5uhu:focus kin-icon.svelte-13u5uhu,.kin_settings-btn.svelte-13u5uhu:focus kin-icon.svelte-13u5uhu,.kin_back-btn.svelte-13u5uhu:hover kin-icon.svelte-13u5uhu,.kin_settings-btn.svelte-13u5uhu:hover kin-icon.svelte-13u5uhu{opacity:1}.kin_settings-btn.svelte-13u5uhu.svelte-13u5uhu{left:auto;right:0;border-radius:var(--back-button-height) 0 0 var(--back-button-height)}.kin_settings-btn__tooltip.svelte-13u5uhu.svelte-13u5uhu{display:none;position:absolute;right:105%}.kin_back-btn.svelte-13u5uhu.svelte-13u5uhu{display:var(--back-btn-vis)}.kin_back-btn.-static.svelte-13u5uhu.svelte-13u5uhu{position:fixed;top:6.4rem}.kin_page__content.svelte-13u5uhu.svelte-13u5uhu{position:absolute;top:var(--header-height);right:0;bottom:0;left:0;display:block}.kin_page__content.-disabled.svelte-13u5uhu.svelte-13u5uhu{opacity:0.2;pointer-events:none}.kin_upsell.svelte-13u5uhu.svelte-13u5uhu{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-13u5uhu.svelte-13u5uhu{font-size:18rem;margin-bottom:2rem}.kin_upsell__cta.svelte-13u5uhu.svelte-13u5uhu{margin-top:1rem}.kin_page.-no-header.svelte-13u5uhu .kin_header.svelte-13u5uhu{display:none}.kin_page.-no-header.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:0}.kin_page.-cover-header.svelte-13u5uhu .kin_header.svelte-13u5uhu{position:absolute;width:100%;z-index:1}.kin_page.-cover-header.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:0}.kin_page.-large-header.svelte-13u5uhu .kin_header.svelte-13u5uhu{height:var(--header-height-large)}.kin_page.-large-header.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block}.kin_page.-large-header.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:var(--header-height-large)}.kin_page.-medium-header.svelte-13u5uhu .kin_header.svelte-13u5uhu{height:var(--header-height-medium)}.kin_page.-medium-header.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block}.kin_page.-medium-header.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:var(--header-height-medium)}.kin_page.-tabs-page.svelte-13u5uhu .kin_header.svelte-13u5uhu{height:var(--header-height-tabs);text-align:center}.kin_page.-tabs-page.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block;text-align:center}.kin_page.-tabs-page.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{display:block;text-align:center;padding:0}.kin_page.-tabs-page.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:var(--header-height-tabs);text-align:center}.kin_page.-center-header.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu,.kin_page.-center-header.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block;text-align:center}.kin_page.-center.svelte-13u5uhu.svelte-13u5uhu,.kin_page.-center-all.svelte-13u5uhu.svelte-13u5uhu{text-align:center}.kin_page.-center.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu,.kin_page.-center-all.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{display:none}.kin_page.-center.svelte-13u5uhu .kin_header__title.svelte-13u5uhu,.kin_page.-center-all.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block}.kin_page.-center-all.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{display:flex;align-items:center;justify-content:center;text-align:center}.kin_page.-flex-between.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{display:none}.kin_page.-flex-between.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block}.kin_page.-flex-between.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{display:flex;align-items:center;justify-content:space-between;text-align:center}.kin_page.-profile.svelte-13u5uhu .kin_header.svelte-13u5uhu{position:static;height:auto;text-align:start}.kin_page.-profile.svelte-13u5uhu .kin_header__content.svelte-13u5uhu{position:static}.kin_page.-profile.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{position:static;display:block;padding:0;max-height:none}.kin_page.-profile.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{max-height:none;max-width:100%}.kin_page.-profile.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:calc(var(--header-height) + 6rem)}.kin_page.-detail.svelte-13u5uhu .kin_header.svelte-13u5uhu{text-align:center;height:calc(var(--header-height-large) + 4rem)}.kin_page.-detail.svelte-13u5uhu .kin_header__content.svelte-13u5uhu{display:block}.kin_page.-detail.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{max-height:none;display:block;font-weight:var(--font-weight-h1);padding:0 8%}.kin_page.-detail.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{padding:1rem 0 0;position:static;display:block;max-height:none}.kin_page.-detail.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:calc(var(--header-height-large) + 4rem)}.kin_page.-rtl.svelte-13u5uhu .kin_header__tooltip.svelte-13u5uhu{transform:translateX(50%);left:auto;right:50%}.kin_page.-rtl.svelte-13u5uhu .kin_back-btn.svelte-13u5uhu,.kin_page.-rtl.svelte-13u5uhu .kin_settings-btn.svelte-13u5uhu{transform:scale(-1)}.kin_page.-rtl.svelte-13u5uhu .kin_back-btn.svelte-13u5uhu:hover,.kin_page.-rtl.svelte-13u5uhu .kin_settings-btn.svelte-13u5uhu:hover{transform:scale(-1.1)}.kin_page.-rtl.svelte-13u5uhu .kin_back-btn.svelte-13u5uhu{left:auto;right:0}.kin_page.-rtl.svelte-13u5uhu .kin_settings-btn.svelte-13u5uhu{right:auto;left:0}",S(Ft.head,t)),me(this,e,fn,gn,$,{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}),te()}get settingsUrl(){return this.$$.ctx[1]}set settingsUrl(e){this.$set({settingsUrl:e}),te()}get cssCls(){return this.$$.ctx[2]}set cssCls(e){this.$set({cssCls:e}),te()}get upsell(){return this.$$.ctx[3]}set upsell(e){this.$set({upsell:e}),te()}get inactive(){return this.$$.ctx[4]}set inactive(e){this.$set({inactive:e}),te()}get inactiveMsg(){return this.$$.ctx[5]}set inactiveMsg(e){this.$set({inactiveMsg:e}),te()}get layout(){return this.$$.ctx[6]}set layout(e){this.$set({layout:e}),te()}get back(){return this.$$.ctx[7]}set back(e){this.$set({back:e}),te()}get backEvent(){return this.$$.ctx[8]}set backEvent(e){this.$set({backEvent:e}),te()}get backHash(){return this.$$.ctx[9]}set backHash(e){this.$set({backHash:e}),te()}get loading(){return this.$$.ctx[10]}set loading(e){this.$set({loading:e}),te()}}const{document:bn}=re;const _n=e=>({}),kn=e=>({}),$n=e=>({}),yn=e=>({}),wn=e=>({}),xn=e=>({}),En=e=>({}),Sn=e=>({});function zn(e){let t;return{c(){t=T("kin-loading"),N(t,"fullscreen","true")},m(e,n){z(e,t,n)},d(e){e&&A(t)}}}function An(e){let t,n,l,i,o,s,c,a,r,u,d,p,h,m,g,f,v=("true"===e[1]||!0===e[1])&&zn();const b=e[15].description,k=y(b,e,e[14],Sn),$=e[15].cta,w=y($,e,e[14],xn),j=e[15]["view-content"],C=y(j,e,e[14],yn),I=e[15]["view-actions"],N=y(I,e,e[14],kn);return{c(){t=T("div"),v&&v.c(),n=q(),l=T("div"),i=T("div"),k&&k.c(),o=q(),s=T("div"),w&&w.c(),c=q(),a=T("div"),C&&C.c(),d=q(),p=T("div"),N&&N.c(),M(i,"class","kin_description svelte-1kq23zh"),P(i,"opacity",e[3]),H(i,"-no-events",e[3]<.1),M(s,"class","kin_cta svelte-1kq23zh"),P(s,"opacity",e[4]),H(s,"-no-events",e[4]<.1),M(a,"class","kin_view__content svelte-1kq23zh"),l.hidden=r="true"===e[1]||!0===e[1],M(l,"class","svelte-1kq23zh"),M(t,"class",u="kin_view "+(e[2]&&"ltr"!=e[2]?"-"+e[2]:"")+" "+e[0]+" svelte-1kq23zh"),H(t,"-actions",!0===e[5]||e[6]),M(p,"class","kin_actions svelte-1kq23zh"),p.hidden=h=e[7]||!(!0===e[5]||e[6])},m(r,u){z(r,t,u),v&&v.m(t,null),S(t,n),S(t,l),S(l,i),k&&k.m(i,null),S(l,o),S(l,s),w&&w.m(s,null),S(l,c),S(l,a),C&&C.m(a,null),z(r,d,u),z(r,p,u),N&&N.m(p,null),m=!0,g||(f=[E(e[9].call(null,a)),D(t,"scroll",e[10]),D(t,"content-scrollto",e[11]),D(t,"kin-view:fire-scrolling",e[12]),E(e[8].call(null,t))],g=!0)},p(e,[o]){"true"===e[1]||!0===e[1]?v||(v=zn(),v.c(),v.m(t,n)):v&&(v.d(1),v=null),k&&k.p&&16384&o&&x(k,b,e,e[14],o,En,Sn),(!m||8&o)&&P(i,"opacity",e[3]),8&o&&H(i,"-no-events",e[3]<.1),w&&w.p&&16384&o&&x(w,$,e,e[14],o,wn,xn),(!m||16&o)&&P(s,"opacity",e[4]),16&o&&H(s,"-no-events",e[4]<.1),C&&C.p&&16384&o&&x(C,j,e,e[14],o,$n,yn),(!m||2&o&&r!==(r="true"===e[1]||!0===e[1]))&&(l.hidden=r),(!m||5&o&&u!==(u="kin_view "+(e[2]&&"ltr"!=e[2]?"-"+e[2]:"")+" "+e[0]+" svelte-1kq23zh"))&&M(t,"class",u),101&o&&H(t,"-actions",!0===e[5]||e[6]),N&&N.p&&16384&o&&x(N,I,e,e[14],o,_n,kn),(!m||224&o&&h!==(h=e[7]||!(!0===e[5]||e[6])))&&(p.hidden=h)},i(e){m||(ce(k,e),ce(w,e),ce(C,e),ce(N,e),m=!0)},o(e){ae(k,e),ae(w,e),ae(C,e),ae(N,e),m=!1},d(e){e&&A(t),v&&v.d(),k&&k.d(e),w&&w.d(e),C&&C.d(e),e&&A(d),e&&A(p),N&&N.d(e),g=!1,_(f)}}}function jn(e,t,n){let l,i,{$$slots:o={},$$scope:s}=t,{csscls:c=""}=t,{loading:a=!1}=t,{actionbar:r=null}=t;const u=W();let d=!1,p="ltr",h=1,m=1,g=!1,f=null,v=null;function b(e){n(5,g=e.detail.isVisible),u("propUpdate",{keyPath:"isAction",value:g})}return F((()=>{n(2,p=document.body.dir),l||i||window.addEventListener("kin-isActionBarVisible",b)})),U((()=>{l||i||window.removeEventListener("kin-isActionBarVisible",b),n(2,p=null);let e=f?.querySelector("kin-table");e?.$destroy(),e=null,f=null,v=null})),e.$$set=e=>{"csscls"in e&&n(0,c=e.csscls),"loading"in e&&n(1,a=e.loading),"actionbar"in e&&n(13,r=e.actionbar),"$$scope"in e&&n(14,s=e.$$scope)},e.$$.update=()=>{8192&e.$$.dirty&&n(6,l=!0===r||"true"===r),8192&e.$$.dirty&&n(7,i=!1===r||"false"===r)},[c,a,p,h,m,g,l,i,function(e){f=e},function(e){v=e},function(){const e=v?v.offsetTop:0,t=f?f.scrollTop:0;t>e?(n(3,h=0),n(4,m=0)):(n(3,h=.01*(100-4*t)),n(4,m=.01*(100-1.5*t))),d&&f?.dispatchEvent(new CustomEvent("kinview-scroll",{detail:{scrollPos:t,slotPos:e}}))},function(e){f&&f.scrollTo({top:e.detail.scrollTo,left:0,behavior:"smooth"})},function(){d=!0},r,s,o]}class Tn extends ge{constructor(e){var t;super(),bn.getElementById("svelte-1kq23zh-style")||((t=T("style")).id="svelte-1kq23zh-style",t.textContent=".kin_description.svelte-1kq23zh.svelte-1kq23zh{display:block;position:sticky;top:0;z-index:9;text-align:var(--page-header-align)}.kin_description.-no-events.svelte-1kq23zh.svelte-1kq23zh{pointer-events:none}.kin_cta.svelte-1kq23zh.svelte-1kq23zh{display:block;text-align:var(--page-header-align)}.kin_cta.-no-events.svelte-1kq23zh.svelte-1kq23zh{pointer-events:none}.kin_cta__links.svelte-1kq23zh.svelte-1kq23zh{position:absolute;right:0;top:50%;transform:translateY(-50%)}.kin_view.svelte-1kq23zh.svelte-1kq23zh{display:block;position:absolute;top:0;right:0;bottom:0;left:0;padding:0 calc(var(--page-padding) - var(--page-scrollbar-width)) 2rem var(--page-padding);overflow-y:scroll;overflow-x:hidden}.kin_view__content.svelte-1kq23zh.svelte-1kq23zh{position:relative}.kin_view__icon.svelte-1kq23zh.svelte-1kq23zh{font-size:20rem;width:100%;margin-top:14vh;text-align:center;color:var(--color-graphics)}.kin_view.-actions.svelte-1kq23zh.svelte-1kq23zh{bottom:var(--action-bar-height);-webkit-mask-image:none}.kin_view.-center.svelte-1kq23zh.svelte-1kq23zh{text-align:center}.kin_view.-center.svelte-1kq23zh .kin_description.svelte-1kq23zh,.kin_view.-center.svelte-1kq23zh .kin_cta.svelte-1kq23zh,.kin_view.-center.svelte-1kq23zh .kin_view__content.svelte-1kq23zh{text-align:center}.kin_view.-center.svelte-1kq23zh .kin_description.svelte-1kq23zh{margin-left:auto;margin-right:auto}.kin_view.-tab-pane.svelte-1kq23zh.svelte-1kq23zh{padding-top:2rem}.kin_view.-detail.svelte-1kq23zh.svelte-1kq23zh{transform:scale(1)}.kin_view.-detail.svelte-1kq23zh .kin_cta.svelte-1kq23zh,.kin_view.-detail.svelte-1kq23zh .kin_description.svelte-1kq23zh{text-align:center}.kin_view.-detail.svelte-1kq23zh .kin_view__content.svelte-1kq23zh{padding-left:10%;padding-right:10%}.kin_actions.svelte-1kq23zh.svelte-1kq23zh{position:absolute;right:0;bottom:0;left:0;height:var(--action-bar-height);padding:1rem var(--page-padding);background-color:var(--action-bar-background);border-top:solid 1px var(--action-bar-border);box-shadow:var(--action-bar-shadow);font-size:var(--action-bar-font);z-index:9}.kin_view.-rtl.svelte-1kq23zh.svelte-1kq23zh{padding-left:calc(var(--page-padding) - var(--page-scrollbar-width));padding-right:var(--page-padding)}[hidden].svelte-1kq23zh.svelte-1kq23zh{visibility:hidden !important}",S(bn.head,t)),me(this,e,jn,An,$,{csscls:0,loading:1,actionbar:13})}}function Cn(e){let t,n,l,i,o,s,c,a,r;const u=e[6].default,d=y(u,e,e[5],null);return{c(){t=T("div"),n=T("kin-icon"),l=q(),d&&d.c(),i=q(),o=T("kin-button"),s=C(e[2]),N(n,"name",e[0]),N(n,"size",e[1]),N(n,"class","sve_upsell__icon"),N(o,"size","large"),N(o,"class","sve_upsell__cta"),N(o,"data-test",e[3]),M(t,"class","sve_upsell")},m(u,p){z(u,t,p),S(t,n),S(t,l),d&&d.m(t,null),S(t,i),S(t,o),S(o,s),c=!0,a||(r=D(o,"click",e[7]),a=!0)},p(e,[t]){(!c||1&t)&&N(n,"name",e[0]),(!c||2&t)&&N(n,"size",e[1]),d&&d.p&&32&t&&x(d,u,e,e[5],t,null,null),(!c||4&t)&&L(s,e[2]),(!c||8&t)&&N(o,"data-test",e[3])},i(e){c||(ce(d,e),c=!0)},o(e){ae(d,e),c=!1},d(e){e&&A(t),d&&d.d(e),a=!1,r()}}}function qn(e,t,n){let{$$slots:l={},$$scope:i}=t;const o=W();let{icon:s="icon-l-upgrade"}=t,{iconSize:c=160}=t,{ctaText:r=a("global.upgradeNow")}=t,{testId:u="upsell_buy"}=t;return e.$$set=e=>{"icon"in e&&n(0,s=e.icon),"iconSize"in e&&n(1,c=e.iconSize),"ctaText"in e&&n(2,r=e.ctaText),"testId"in e&&n(3,u=e.testId),"$$scope"in e&&n(5,i=e.$$scope)},[s,c,r,u,o,i,l,()=>o("buy")]}class In extends ge{constructor(e){super(),me(this,e,qn,Cn,$,{icon:0,iconSize:1,ctaText:2,testId:3})}}function Dn(e,t,n){const l=e.slice();return l[20]=t[n],l[22]=n,l}function Mn(e,t,n){const l=e.slice();return l[23]=t[n],l}function Nn(e){let t,n=e[7],l=[];for(let i=0;i<n.length;i+=1)l[i]=Ln(Mn(e,n,i));return{c(){t=T("div");for(let e=0;e<l.length;e+=1)l[e].c();M(t,"class","linkgroup ras_linkgroup")},m(e,n){z(e,t,n);for(let i=0;i<l.length;i+=1)l[i].m(t,null)},p(e,i){if(131&i){let o;for(n=e[7],o=0;o<n.length;o+=1){const s=Mn(e,n,o);l[o]?l[o].p(s,i):(l[o]=Ln(s),l[o].c(),l[o].m(t,null))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(e){e&&A(t),j(l,e)}}}function Ln(e){let t,n,l,i,o,s,c,r=a("remoteAccessShield.log.filter."+e[23],e[1][e[23]])+"";function u(){return e[10](e[23])}return{c(){t=T("button"),n=C(r),l=q(),M(t,"aria-selected",i=e[0]===e[23]),t.disabled=o=e[0]===e[23]||!e[1][e[23]],H(t,"-active",e[0]===e[23])},m(e,i){z(e,t,i),S(t,n),S(t,l),s||(c=D(t,"click",u),s=!0)},p(l,s){e=l,2&s&&r!==(r=a("remoteAccessShield.log.filter."+e[23],e[1][e[23]])+"")&&L(n,r),1&s&&i!==(i=e[0]===e[23])&&M(t,"aria-selected",i),3&s&&o!==(o=e[0]===e[23]||!e[1][e[23]])&&(t.disabled=o),129&s&&H(t,"-active",e[0]===e[23])},d(e){e&&A(t),s=!1,c()}}}function Pn(e){let t,n,l,i;return{c(){t=T("div"),n=T("button"),n.textContent=`↑ ${a("remoteAccessShield.log.newItems")}`,M(n,"class","svelte-rh147j"),M(t,"class","ras_newItems svelte-rh147j")},m(o,s){z(o,t,s),S(t,n),l||(i=D(n,"click",e[11]),l=!0)},p:f,d(e){e&&A(t),l=!1,i()}}}function Hn(e){let t,n;return{c(){t=T("kin-icon"),N(t,"name",n="badge-"+("blocked"===e[20].action?"critical":"ok")),N(t,"size","16"),N(t,"class","ras_table__icon__status svelte-rh147j")},m(e,n){z(e,t,n)},p(e,l){8&l&&n!==(n="badge-"+("blocked"===e[20].action?"critical":"ok"))&&N(t,"name",n)},d(e){e&&A(t)}}}function Rn(e){let t,n,l,i,o,s,c,u,d,p,h,m,g,f,v,b,_,k,$,y,w,x,E,j,I,D,P=a("remoteAccessShield.log."+e[20].action)+"",H=r(e[20].time).format("ll LTS")+"",R=e[20].ip+"",O=a("remoteAccessShield.log.info.title."+e[20].action+"."+e[20].protocol)+"",B=a("remoteAccessShield.log.info.desc."+e[20].action+(e[20].actionReason?"."+e[20].actionReason:""),e[20].ip)+"",F="failed"!==e[20].action&&Hn(e);return{c(){t=T("div"),n=T("div"),l=T("kin-icon"),i=q(),F&&F.c(),o=q(),s=T("div"),c=C(P),u=q(),d=T("div"),p=C(H),h=q(),m=T("div"),g=C(R),f=q(),v=T("div"),b=T("kin-tooltip"),_=T("span"),_.innerHTML='<kin-icon name="icon-m-action-info" size="16" class="kin_table__show-on-hover"></kin-icon>',k=q(),$=T("div"),y=T("p"),w=T("strong"),x=C(O),E=q(),j=T("p"),I=C(B),D=q(),N(l,"name","icon-m-rdp"),N(l,"size","28"),M(n,"class","kin_table__icon"),M(_,"slot","tooltip-activator"),M($,"slot","tooltip"),M(v,"class","kin_table__actions"),M(t,"role","row"),M(t,"class","kin_table__row ras_table__row svelte-rh147j"),M(t,"aria-rowindex",e[22])},m(e,a){z(e,t,a),S(t,n),S(n,l),S(n,i),F&&F.m(n,null),S(t,o),S(t,s),S(s,c),S(t,u),S(t,d),S(d,p),S(t,h),S(t,m),S(m,g),S(t,f),S(t,v),S(v,b),S(b,_),S(b,k),S(b,$),S($,y),S(y,w),S(w,x),S($,E),S($,j),S(j,I),S(t,D)},p(e,t){"failed"!==e[20].action?F?F.p(e,t):(F=Hn(e),F.c(),F.m(n,null)):F&&(F.d(1),F=null),8&t&&P!==(P=a("remoteAccessShield.log."+e[20].action)+"")&&L(c,P),8&t&&H!==(H=r(e[20].time).format("ll LTS")+"")&&L(p,H),8&t&&R!==(R=e[20].ip+"")&&L(g,R),8&t&&O!==(O=a("remoteAccessShield.log.info.title."+e[20].action+"."+e[20].protocol)+"")&&L(x,O),8&t&&B!==(B=a("remoteAccessShield.log.info.desc."+e[20].action+(e[20].actionReason?"."+e[20].actionReason:""),e[20].ip)+"")&&L(I,B)},d(e){e&&A(t),F&&F.d()}}}function On(e){let t,n,l,i,o,s,c,r,u,d,p,h,m,g,v,b,_,k,$,y,w,x,E,C,I,L,P=e[3].length&&Nn(e),H=e[6]&&e[5]&&Pn(e),R=e[3],O=[];for(let a=0;a<R.length;a+=1)O[a]=Rn(Dn(e,R,a));return{c(){t=T("div"),n=T("h2"),n.textContent=`${a("remoteAccessShield.log.title")}`,l=q(),P&&P.c(),i=q(),H&&H.c(),o=q(),s=T("kin-table"),c=T("div"),r=q(),u=T("div"),d=T("p"),d.textContent=`${a("remoteAccessShield.log.empty")}`,p=q(),h=T("div"),m=T("div"),g=q(),v=T("div"),v.textContent=`${a("remoteAccessShield.log.action")}`,b=q(),_=T("div"),_.textContent=`${a("global.time")}`,k=q(),$=T("div"),$.textContent=`${a("global.ipAddress")}`,y=q(),w=T("div"),x=q(),E=T("div");for(let e=0;e<O.length;e+=1)O[e].c();M(n,"class","h6"),M(t,"class","ras_heading svelte-rh147j"),M(c,"slot","table-empty-icon"),M(c,"class","svg -empty-table"),M(u,"slot","table-empty"),M(v,"row","columnheader"),M(_,"row","columnheader"),M($,"row","columnheader"),M(w,"class","kin_table__actions"),M(h,"role","row"),M(h,"slot","table-header"),M(h,"class","svelte-rh147j"),M(E,"slot","table-body"),N(s,"loading",e[2]),N(s,"datalength",C=e[3].length),N(s,"scrollrootselector",".kin_view"),N(s,"watchscrollpos",!0),N(s,"bottomloading",e[4])},m(a,f){z(a,t,f),S(t,n),S(t,l),P&&P.m(t,null),z(a,i,f),H&&H.m(a,f),z(a,o,f),z(a,s,f),S(s,c),S(s,r),S(s,u),S(u,d),S(s,p),S(s,h),S(h,m),S(h,g),S(h,v),S(h,b),S(h,_),S(h,k),S(h,$),S(h,y),S(h,w),S(s,x),S(s,E);for(let e=0;e<O.length;e+=1)O[e].m(E,null);I||(L=D(s,"scrollPos",e[9]),I=!0)},p(e,[n]){if(e[3].length?P?P.p(e,n):(P=Nn(e),P.c(),P.m(t,null)):P&&(P.d(1),P=null),e[6]&&e[5]?H?H.p(e,n):(H=Pn(e),H.c(),H.m(o.parentNode,o)):H&&(H.d(1),H=null),8&n){let t;for(R=e[3],t=0;t<R.length;t+=1){const l=Dn(e,R,t);O[t]?O[t].p(l,n):(O[t]=Rn(l),O[t].c(),O[t].m(E,null))}for(;t<O.length;t+=1)O[t].d(1);O.length=R.length}4&n&&N(s,"loading",e[2]),8&n&&C!==(C=e[3].length)&&N(s,"datalength",C),16&n&&N(s,"bottomloading",e[4])},i:f,o:f,d(e){e&&A(t),P&&P.d(),e&&A(i),H&&H.d(e),e&&A(o),e&&A(s),j(O,e),I=!1,L()}}}function Bn(e,t,i){const o={0:"rdp",1:"samba"},s={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"}},c={all:[],allowed:[0,99],failed:[100,199],blocked:[200,299]},a=["all","blocked"],r={all:0,blocked:0};let u=!0,d=[],p=a[0],h=!1,m=!1,g=null,f=null,v=!1,b=null;function _(){return i(3,d=[]),i(2,u=!0),b=0,i(5,m=!1),i(6,v=!1),g=null,f&&f(0),Promise.all([l("app.ras.GetLogStats").then((e=>{i(1,r.all=e.connections_all,r),i(1,r.blocked=e.connections_blocked,r)})),k()]).finally((()=>i(2,u=!1)))}function k(e={}){const t=c[p]||[],n={row_limit:30,row_offset:d.length||void 0,max_id:b,min_action:t[0],max_action:t[1]};return e.concat&&i(4,h=!0),l("app.ras.GetLog",n).then((t=>{let n=[];t.data&&(n=t.data.map((e=>({time:e.time,ip:e.ip,action:s[e.action].action,actionReason:s[e.action].reason,protocol:o[e.protocol]})))),e.concat?i(3,d=d.concat(n)):i(3,d=n),i(4,h=!1),null!=t.max_id&&(b=Math.max(b,t.max_id))}))}F((()=>{n.on("ui.ras.logevent",(()=>{m?i(6,v=!0):_()}))}));return e.$$.update=()=>{1&e.$$.dirty&&p&&_()},[p,r,u,d,h,m,v,a,_,function(e){i(5,m=e.detail.current>110),f=e.detail.scrollTo,!m&&v&&_(),e.detail.current>=e.detail.max&&e.detail.max>g&&(g=e.detail.current,k({concat:!0}))},e=>i(0,p=e),()=>_()]}class Fn extends ge{constructor(e){var t;super(),document.getElementById("svelte-rh147j-style")||((t=T("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}",S(document.head,t)),me(this,e,Bn,On,$,{})}}function Un(e){let t,n;return{c(){t=T("div"),n=T("kin-crumbs"),N(n,"section","security"),N(n,"sectionlabel",a("security")),N(n,"modulelabel",a("remoteAccessShield")),M(t,"slot","breadcrumbs")},m(e,l){z(e,t,l),S(t,n)},p:f,d(e){e&&A(t)}}}function Wn(e){let t,n,l,i;return{c(){t=T("div"),n=T("kin-switch"),N(n,"checked",e[0]),N(n,"processing",e[1]),M(t,"slot","controls")},m(o,s){z(o,t,s),S(t,n),l||(i=D(n,"click",e[5]),l=!0)},p(e,t){1&t&&N(n,"checked",e[0]),2&t&&N(n,"processing",e[1])},d(e){e&&A(t),l=!1,i()}}}function Gn(e){let t,n,l,i,o=a("remoteAccessShield.upsell.desc")+"";return{c(){t=T("div"),n=T("h2"),n.textContent=`${a("remoteAccessShield.upsell.title")}`,l=q(),i=T("p"),M(n,"class","h2 -margins"),M(i,"class","p -secondary")},m(e,s){z(e,t,s),S(t,n),S(t,l),S(t,i),i.innerHTML=o},p:f,d(e){e&&A(t)}}}function Vn(e){let t,n,l;return n=new In({props:{icon:"icon-l-rdp-upgrade",$$slots:{default:[Gn]},$$scope:{ctx:e}}}),n.$on("buy",e[4]),{c(){t=T("div"),ue(n.$$.fragment),M(t,"slot","upsell")},m(e,i){z(e,t,i),de(n,t,null),l=!0},p(e,t){const l={};256&t&&(l.$$scope={dirty:t,ctx:e}),n.$set(l)},i(e){l||(ce(n.$$.fragment,e),l=!0)},o(e){ae(n.$$.fragment,e),l=!1},d(e){e&&A(t),pe(n)}}}function Kn(e){let t,n,l=a("remoteAccessShield.desc")+"";return{c(){t=T("div"),n=T("p"),M(n,"class","kin_description__text"),M(t,"slot","description")},m(e,i){z(e,t,i),S(t,n),n.innerHTML=l},p:f,d(e){e&&A(t)}}}function Yn(e){let t,n,l;return n=new Fn({}),{c(){t=T("div"),ue(n.$$.fragment),M(t,"slot","view-content")},m(e,i){z(e,t,i),de(n,t,null),l=!0},i(e){l||(ce(n.$$.fragment,e),l=!0)},o(e){ae(n.$$.fragment,e),l=!1},d(e){e&&A(t),pe(n)}}}function Zn(e){let t,n,l;return n=new Tn({props:{$$slots:{"view-content":[Yn],description:[Kn]},$$scope:{ctx:e}}}),{c(){t=T("div"),ue(n.$$.fragment),M(t,"slot","page-content")},m(e,i){z(e,t,i),de(n,t,null),l=!0},p(e,t){const l={};256&t&&(l.$$scope={dirty:t,ctx:e}),n.$set(l)},i(e){l||(ce(n.$$.fragment,e),l=!0)},o(e){ae(n.$$.fragment,e),l=!1},d(e){e&&A(t),pe(n)}}}function Xn(e){let t,n;return t=new vn({props:{heading:a("remoteAccessShield"),cssCls:"ras",settingsUrl:e[2]?"#Settings/ras":"",upsell:!e[2],inactive:!e[0],inactiveMsg:a("remoteAccessShield.tooltip.inactive"),backHash:"#security",$$slots:{"page-content":[Zn],upsell:[Vn],controls:[Wn],breadcrumbs:[Un]},$$scope:{ctx:e}}}),{c(){ue(t.$$.fragment)},m(e,l){de(t,e,l),n=!0},p(e,[n]){const l={};1&n&&(l.inactive=!e[0]),259&n&&(l.$$scope={dirty:n,ctx:e}),t.$set(l)},i(e){n||(ce(t.$$.fragment,e),n=!0)},o(e){ae(t.$$.fragment,e),n=!1},d(e){pe(t,e)}}}function Jn(e,t,l){const i=o.isLicensed("ais_cmp_rdp");let c,r=o.isEnabled("ais_cmp_rdp"),u=!1;function d(e){null!=e.enabled&&(l(0,r=e.enabled),l(1,u=!1))}function p(){let e;l(1,u=!0),e=r?m.stopOptions({title:a("remoteAccessShield.stopOptions.title"),desc:a("remoteAccessShield.stopOptions.desc")}).then((e=>o.toggleFeature("ais_cmp_rdp",e.time))):o.isPassiveMode()?m.passiveMode(o.getPassiveModeInfo()).then((()=>o.enableFeature("ais_cmp_rdp"))):o.enableFeature("ais_cmp_rdp"),e.catch((()=>{l(1,u=!1)}))}F((()=>{c=n.on("product.change.feature.ais_cmp_rdp",d)})),U((()=>{c&&c()}));return[r,u,i,p,function(){s.openWindow(343,{p_scr:"remoteaccessshield"})},()=>p()]}var Qn=/^\s+|\s+$/g,el=/^[-+]0x[0-9a-f]+$/i,tl=/^0b[01]+$/i,nl=/^0o[0-7]+$/i,ll=parseInt,il="object"==typeof fe&&fe&&fe.Object===Object&&fe,ol="object"==typeof self&&self&&self.Object===Object&&self,sl=il||ol||Function("return this")(),cl=Object.prototype.toString,al=Math.max,rl=Math.min,ul=function(){return sl.Date.now()};function dl(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function pl(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==cl.call(e)}(e))return NaN;if(dl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=dl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Qn,"");var n=tl.test(e);return n||nl.test(e)?ll(e.slice(2),n?2:8):el.test(e)?NaN:+e}var hl=function(e,t,n){var l,i,o,s,c,a,r=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=l,o=i;return l=i=void 0,r=t,s=e.apply(o,n)}function m(e){return r=e,c=setTimeout(f,t),u?h(e):s}function g(e){var n=e-a;return void 0===a||n>=t||n<0||d&&e-r>=o}function f(){var e=ul();if(g(e))return v(e);c=setTimeout(f,function(e){var n=t-(e-a);return d?rl(n,o-(e-r)):n}(e))}function v(e){return c=void 0,p&&l?h(e):(l=i=void 0,s)}function b(){var e=ul(),n=g(e);if(l=arguments,i=this,a=e,n){if(void 0===c)return m(a);if(d)return c=setTimeout(f,t),h(a)}return void 0===c&&(c=setTimeout(f,t)),s}return t=pl(t)||0,dl(n)&&(u=!!n.leading,o=(d="maxWait"in n)?al(pl(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==c&&clearTimeout(c),r=0,l=a=i=c=void 0},b.flush=function(){return void 0===c?s:v(ul())},b};function ml(e,t,n){const l=e.slice();return l[22]=t[n].ip,l[23]=t[n].error,l[25]=n,l}function gl(e){let t,n;return t=new e[5]({props:{property:e[0].enableRdpProtection}}),{c(){ue(t.$$.fragment)},m(e,l){de(t,e,l),n=!0},p(e,n){const l={};1&n&&(l.property=e[0].enableRdpProtection),t.$set(l)},i(e){n||(ce(t.$$.fragment,e),n=!0)},o(e){ae(t.$$.fragment,e),n=!1},d(e){pe(t,e)}}}function fl(e){let t,n;return t=new e[5]({props:{property:e[0].enableSambaProtection}}),{c(){ue(t.$$.fragment)},m(e,l){de(t,e,l),n=!0},p(e,n){const l={};1&n&&(l.property=e[0].enableSambaProtection),t.$set(l)},i(e){n||(ce(t.$$.fragment,e),n=!0)},o(e){ae(t.$$.fragment,e),n=!1},d(e){pe(t,e)}}}function vl(e){let t,n,l;return{c(){t=T("kin-button"),t.textContent=`${a("global.add")}`,N(t,"type","secondary"),N(t,"class","g-margin-top--10 g-margin-bottom--10 settings__indent"),N(t,"data-test","addIp")},m(i,o){z(i,t,o),n||(l=D(t,"click",e[13]),n=!0)},p:f,d(e){e&&A(t),n=!1,l()}}}function bl(e){let t,n=e[1],l=[];for(let i=0;i<n.length;i+=1)l[i]=$l(ml(e,n,i));return{c(){t=T("table");for(let e=0;e<l.length;e+=1)l[e].c();M(t,"class","table -small settings__indent")},m(e,n){z(e,t,n);for(let i=0;i<l.length;i+=1)l[i].m(t,null)},p(e,i){if(2310&i){let o;for(n=e[1],o=0;o<n.length;o+=1){const s=ml(e,n,o);l[o]?l[o].p(s,i):(l[o]=$l(s),l[o].c(),l[o].m(t,null))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(e){e&&A(t),j(l,e)}}}function _l(e){let t,n,l,i,o,s,c;function r(){return e[15](e[25])}function u(){return e[16](e[25])}return{c(){t=T("kin-button"),n=T("kin-icon"),l=q(),i=T("kin-button"),o=T("kin-icon"),N(n,"name","icon-m-action-pen"),N(n,"size","14"),N(t,"size","tiny"),N(t,"type","blank"),N(t,"icononly",""),N(t,"title",a("global.edit")),N(o,"name","icon-s-controls-bin"),N(o,"size","14"),N(i,"size","tiny"),N(i,"type","blank"),N(i,"icononly",""),N(i,"class","g-margin-left--5"),N(i,"title",a("global.remove"))},m(e,a){z(e,t,a),S(t,n),z(e,l,a),z(e,i,a),S(i,o),s||(c=[D(t,"click",r),D(i,"click",u)],s=!0)},p(t,n){e=t},d(e){e&&A(t),e&&A(l),e&&A(i),s=!1,_(c)}}}function kl(e){let t,n,l,i,o=e[23]+"";return{c(){t=T("tr"),n=T("td"),l=C(o),i=q(),M(n,"colspan","2")},m(e,o){z(e,t,o),S(t,n),S(n,l),S(t,i)},p(e,t){2&t&&o!==(o=e[23]+"")&&L(l,o)},d(e){e&&A(t)}}}function $l(e){let t,n,l,i,o,s,c,a,r,u=e[22]+"";function d(){return e[14](e[25])}let p=!e[2]&&_l(e),h=e[23]&&kl(e);return{c(){t=T("tr"),n=T("td"),l=C(u),i=q(),o=T("td"),p&&p.c(),s=q(),h&&h.c(),c=I(),M(o,"class","table__delete"),M(t,"class","-hoverable")},m(e,u){z(e,t,u),S(t,n),S(n,l),S(t,i),S(t,o),p&&p.m(o,null),z(e,s,u),h&&h.m(e,u),z(e,c,u),a||(r=D(n,"click",d),a=!0)},p(t,n){e=t,2&n&&u!==(u=e[22]+"")&&L(l,u),e[2]?p&&(p.d(1),p=null):p?p.p(e,n):(p=_l(e),p.c(),p.m(o,null)),e[23]?h?h.p(e,n):(h=kl(e),h.c(),h.m(c.parentNode,c)):h&&(h.d(1),h=null)},d(e){e&&A(t),p&&p.d(),e&&A(s),h&&h.d(e),e&&A(c),a=!1,r()}}}function yl(e){let t,n,l,i,o,s,c,a,r,u,d,p,h,m,g,f=e[0].enableRdpProtection&&gl(e),v=e[0].enableSambaProtection&&fl(e);l=new e[5]({props:{property:e[0].notificationEnabled}}),o=new e[5]({props:{property:e[0].bruteForceEnabled}}),c=new e[5]({props:{property:e[0].blacklistEnabled}}),r=new e[5]({props:{property:e[0].exploitEnabled}}),d=new e[5]({props:{property:e[0].allowedIpEnabled}});let b=!e[2]&&vl(e),_=e[1]&&e[1].length&&bl(e);return{c(){f&&f.c(),t=q(),v&&v.c(),n=q(),ue(l.$$.fragment),i=q(),ue(o.$$.fragment),s=q(),ue(c.$$.fragment),a=q(),ue(r.$$.fragment),u=q(),ue(d.$$.fragment),p=q(),b&&b.c(),h=q(),_&&_.c(),m=I()},m(e,k){f&&f.m(e,k),z(e,t,k),v&&v.m(e,k),z(e,n,k),de(l,e,k),z(e,i,k),de(o,e,k),z(e,s,k),de(c,e,k),z(e,a,k),de(r,e,k),z(e,u,k),de(d,e,k),z(e,p,k),b&&b.m(e,k),z(e,h,k),_&&_.m(e,k),z(e,m,k),g=!0},p(e,i){e[0].enableRdpProtection?f?(f.p(e,i),1&i&&ce(f,1)):(f=gl(e),f.c(),ce(f,1),f.m(t.parentNode,t)):f&&(oe(),ae(f,1,1,(()=>{f=null})),se()),e[0].enableSambaProtection?v?(v.p(e,i),1&i&&ce(v,1)):(v=fl(e),v.c(),ce(v,1),v.m(n.parentNode,n)):v&&(oe(),ae(v,1,1,(()=>{v=null})),se());const s={};1&i&&(s.property=e[0].notificationEnabled),l.$set(s);const a={};1&i&&(a.property=e[0].bruteForceEnabled),o.$set(a);const u={};1&i&&(u.property=e[0].blacklistEnabled),c.$set(u);const p={};1&i&&(p.property=e[0].exploitEnabled),r.$set(p);const g={};1&i&&(g.property=e[0].allowedIpEnabled),d.$set(g),e[2]?b&&(b.d(1),b=null):b?b.p(e,i):(b=vl(e),b.c(),b.m(h.parentNode,h)),e[1]&&e[1].length?_?_.p(e,i):(_=bl(e),_.c(),_.m(m.parentNode,m)):_&&(_.d(1),_=null)},i(e){g||(ce(f),ce(v),ce(l.$$.fragment,e),ce(o.$$.fragment,e),ce(c.$$.fragment,e),ce(r.$$.fragment,e),ce(d.$$.fragment,e),g=!0)},o(e){ae(f),ae(v),ae(l.$$.fragment,e),ae(o.$$.fragment,e),ae(c.$$.fragment,e),ae(r.$$.fragment,e),ae(d.$$.fragment,e),g=!1},d(e){f&&f.d(e),e&&A(t),v&&v.d(e),e&&A(n),pe(l,e),e&&A(i),pe(o,e),e&&A(s),pe(c,e),e&&A(a),pe(r,e),e&&A(u),pe(d,e),e&&A(p),b&&b.d(e),e&&A(h),_&&_.d(e),e&&A(m)}}}function wl(e){let t,n;return t=new Bt({props:{title:a("remoteAccessShield.settings.editAllowedIp.title"),closable:!0,$$slots:{"modal-content":[El],"modal-header":[xl]},$$scope:{ctx:e}}}),t.$on("close",e[17]),{c(){ue(t.$$.fragment)},m(e,l){de(t,e,l),n=!0},p(e,n){const l={};67108872&n&&(l.$$scope={dirty:n,ctx:e}),t.$set(l)},i(e){n||(ce(t.$$.fragment,e),n=!0)},o(e){ae(t.$$.fragment,e),n=!1},d(e){pe(t,e)}}}function xl(e){let t,n;return{c(){t=T("div"),n=T("p"),n.textContent=`${a("remoteAccessShield.settings.editAllowedIp.desc")}`,M(n,"class","sve_modal__subtitle"),M(t,"slot","modal-header")},m(e,l){z(e,t,l),S(t,n)},p:f,d(e){e&&A(t)}}}function El(e){let t,n,l,i,o,s,c,r,u;return{c(){t=T("div"),n=T("form"),l=T("kin-input"),s=q(),c=T("kin-button"),c.textContent=`${a("global.allow")}`,N(l,"value",i=e[3].ip),N(l,"size","large"),N(l,"formrow","true"),N(l,"placeholder",a("remoteAccessShield.settings.ipExample")),N(l,"error",o=e[3].error),N(c,"class","g-margin-top--10"),N(c,"data-test","saveIp"),M(t,"slot","modal-content")},m(i,o){z(i,t,o),S(t,n),S(n,l),S(n,s),S(n,c),r||(u=[D(l,"input",e[12]),E(Tl.call(null,l)),D(c,"click",e[9]),D(n,"submit",Cl)],r=!0)},p(e,t){8&t&&i!==(i=e[3].ip)&&N(l,"value",i),8&t&&o!==(o=e[3].error)&&N(l,"error",o)},d(e){e&&A(t),r=!1,_(u)}}}function Sl(e){let t,n,l,i;t=new e[4]({props:{component:"ais_cmp_rdp",ipmBuyElm:343,title:a(zl.title),desc:a(zl.desc),stopOptions:e[6],$$slots:{default:[yl]},$$scope:{ctx:e}}});let o=e[3]&&wl(e);return{c(){ue(t.$$.fragment),n=q(),o&&o.c(),l=I()},m(e,s){de(t,e,s),z(e,n,s),o&&o.m(e,s),z(e,l,s),i=!0},p(e,[n]){const i={};67108871&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i),e[3]?o?(o.p(e,n),8&n&&ce(o,1)):(o=wl(e),o.c(),ce(o,1),o.m(l.parentNode,l)):o&&(oe(),ae(o,1,1,(()=>{o=null})),se())},i(e){i||(ce(t.$$.fragment,e),ce(o),i=!0)},o(e){ae(t.$$.fragment,e),ae(o),i=!1},d(e){pe(t,e),e&&A(n),o&&o.d(e),e&&A(l)}}}const zl={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 Al(){const e={notificationEnabled:{label:a(zl.notificationEnabled),desc:a(zl.notificationEnabledDesc),path:"avcfg://RemoteAccessShield/Detection/NotificationEnabled",track:{subject:"Notification enabled"},search:{title:zl.notificationEnabled,desc:zl.notificationEnabledDesc}},bruteForceEnabled:{label:a(zl.bruteForceEnabled),desc:a(zl.bruteForceEnabledDesc),path:"avcfg://RemoteAccessShield/Detection/BruteForceEnabled",track:{subject:"Brute force enabled"},search:{title:zl.bruteForceEnabled,desc:zl.bruteForceEnabledDesc}},blacklistEnabled:{label:a(zl.blacklistEnabled),desc:a(zl.blacklistEnabledDesc),path:"avcfg://RemoteAccessShield/Detection/BlacklistEnabled",track:{subject:"Blacklist enabled"},search:{title:zl.blacklistEnabled,desc:zl.blacklistEnabledDesc}},exploitEnabled:{label:a(zl.exploitEnabled),desc:a(zl.exploitEnabledDesc),path:"avcfg://RemoteAccessShield/Detection/ExploitEnabled",track:{subject:"Exploit enabled"},search:{title:zl.exploitEnabled,desc:zl.exploitEnabledDesc}},allowedIpEnabled:{label:a(zl.allowedIpEnabled),desc:a(zl.allowedIpEnabledDesc),path:"avcfg://RemoteAccessShield/RdpAccess/AllowedIpEnabled",change:null,track:{subject:"Allowed IP enabled"},search:{title:zl.allowedIpEnabled,desc:zl.allowedIpEnableDesc}}};return e.enableRdpProtection={label:a(zl.enableRdpProtection),path:"avcfg://RemoteAccessShield/Detection/RdpEnabled",track:{subject:"Enable RDP protection"},search:zl.enableRdpProtection},e.enableSambaProtection={label:a(zl.enableSambaProtection),path:"avcfg://RemoteAccessShield/Detection/SmbEnabled",track:{subject:"Enable Samba protection"},search:zl.enableSambaProtection},e}function jl(){return{title:zl.title,desc:zl.desc,items:Al()}}function Tl(e){e.focus()}const Cl=e=>e.preventDefault();function ql(e,t,n){const{Container:l,Checkbox:i}=g,o=Al(),s={title:a("remoteAccessShield.stopOptions.title"),desc:a("remoteAccessShield.stopOptions.desc")},r=hl(_,1e3);let u=[],d=!1,h=null;function m(e){if(n(3,h={ip:""}),e)return new Promise(((e,t)=>{n(3,h.resolve=e,h),n(3,h.reject=t,h)}))}function f(e){n(3,h=Object.assign({index:e},u[e]))}function v(){h.reject&&h.reject(),n(3,h=null)}function b(e){u.splice(e,1),n(1,u),k()}function _(){const e=p(h.ip,{range:!0});return n(3,h.error=e?void 0:a("remoteAccessShield.settings.invalidIp"),h),e}function k(){const e=u.map((e=>e.ip)).join(";");c.set("avcfg://RemoteAccessShield/RdpAccess/AllowedIpList",e),u.length||o.allowedIpEnabled.forceChange(0)}o.allowedIpEnabled.change=function(e){return 1!=e||u.length?c.set(o.allowedIpEnabled.path,e):m(!0).then((()=>c.set(o.allowedIpEnabled.path,e)))},F((()=>{c.get("avcfg://RemoteAccessShield/RdpAccess/AllowedIpList").then((e=>{n(2,d=e.locked),e.value&&n(1,u=e.value.split(";").map((e=>({ip:e,error:null}))))}))}));return[o,u,d,h,l,i,s,m,f,function(e){e.preventDefault(),_()&&(null==h.index?(u.push({ip:h.ip}),n(1,u)):n(1,u[h.index].ip=h.ip,u),k(),h.resolve&&h.resolve(),n(3,h=null),r.cancel())},v,b,function(e){n(3,h.ip=e.target.value,h),r()},()=>m(),e=>f(e),e=>f(e),e=>b(e),()=>v()]}class Il extends ge{constructor(e){super(),me(this,e,ql,Sl,$,{})}}function Dl(e){let t,n;return t=new xt({props:{config:e[0]}}),{c(){ue(t.$$.fragment)},m(e,l){de(t,e,l),n=!0},p(e,n){const l={};1&n&&(l.config=e[0]),t.$set(l)},i(e){n||(ce(t.$$.fragment,e),n=!0)},o(e){ae(t.$$.fragment,e),n=!1},d(e){pe(t,e)}}}function Ml(e){let t,n,l=e[0]&&Dl(e);return{c(){l&&l.c(),t=I()},m(e,i){l&&l.m(e,i),z(e,t,i),n=!0},p(e,[n]){e[0]?l?(l.p(e,n),1&n&&ce(l,1)):(l=Dl(e),l.c(),ce(l,1),l.m(t.parentNode,t)):l&&(oe(),ae(l,1,1,(()=>{l=null})),se())},i(e){n||(ce(l),n=!0)},o(e){ae(l),n=!1},d(e){l&&l.d(e),e&&A(t)}}}function Nl(e,n,i){let o=null,s="RDP",r="";return F((()=>{(function(){const e=t.getUrlParams().id;return l("app.av.detections.GetStatus",{id:e}).then((e=>{const t=/^(\w+):\/\/([\d.]{7,})?/,n=/(?![^\w:])(([0-9a-f]{1,4}:){1,7}:|:(:[0-9a-f]{1,4}){1,7}|([0-9a-f]{1,4}:){1,7}[0-9a-f]{0,4}(:[0-9a-f]{1,4}){1,7})(?![\w:])/;let l=e.url&&e.url.match(t);s=l&&(l[1]||"").toUpperCase(),r=l&&l[2],r||(l=e.url&&e.url.match(n),l&&(r=l[0]));const i=[{title:a("global.threatName"),value:h.escapeHtml(e.threat),testValue:"threat"}];return r?i.push({title:a("global.attackerIP"),value:r,testValue:"ip"}):i.push({title:a("global.attackerURL"),value:h.escapeHtml(e.url),testValue:"url"}),i.push.apply(i,[{title:a("global.process"),value:h.escapeHtml(e.process),testValue:"process"},{title:a("global.detectedBy"),value:a("remoteAccessShield"),testValue:"detectedBy_ras"},{title:a("global.status"),value:a("remoteAccessShield.detection.connectionBlocked"),testValue:"status"}]),i}))})().then((e=>{i(0,o={color:"green",icon:{name:"icon-m-rdp",color:"ok"},title:a("remoteAccessShield.detection.title"),text:a("SMB"===s?"remoteAccessShield.detection.desc.sharing":"remoteAccessShield.detection.desc"),actions:[{label:a("global.gotIt"),action:t.close,labelGa:"gotIt",labelTest:"btn_gotIt"}],dontShowAgain:{label:a("remoteAccessShield.detection.dontShowAgain"),action:e=>{c.set("avcfg://RemoteAccessShield/Detection/NotificationEnabled",e?"0":"1")}},details:e})})).then(t.init)})),[o,!0]}class Ll extends ge{constructor(e){super(),me(this,e,Nl,Ml,$,{handlesWindowInit:1})}get handlesWindowInit(){return this.$$.ctx[1]}}export default class extends ge{constructor(e){super(),me(this,e,Jn,Xn,$,{})}}export{Ll as detection,Il as settings,jl as settingsSearchStrings};const Pl={name:"ras",version:"1.2.319",created:"2021-09-06T10:55:16.573Z"};export{Pl as metadata};