2:23:21.151  3152  3280 S0!! HttpRequestImpl::CurlFinished(): curl request failed: Couldn't resolve host name (6), Could not resolve host: router15.teamviewer.com
2023/02/10 02:23:21.151  3152  3280 S0!! CHttpConnectionOutgoing::ResolveDNSName: resolving DNS name failed, status = Failed, HTTP response code = 0, URL = 'http://router15.teamviewer.com/cname.aspx'
2023/02/10 02:23:21.151  3152  3280 S0!! CHttpConnectionOutgoing::HandleResolveDNS: empty address, m_ConnectionState=0
2023/02/10 02:23:21.151  3152  3288 S0!  CProcessCommandHandlerKeepAlive[4495700]::HandleKeepAliveConnect(): Connect to KeepAliveServer failed
2023/02/10 02:23:21.151  3152  3288 S0!!!KeepAliveSessionOutgoing::ConnectFailureHandler(): KeepAliveConnect to router15.teamviewer.com failed
2023/02/10 02:23:21.152  3152  3288 S0   Waiting 1 seconds to connect to KeepAlive again
2023/02/10 02:23:22.152  3152  3284 S0   CKeepAliveClientClient::StartConnect(): Protocol 8 proxy -- IP router3.teamviewer.com
2023/02/10 02:23:22.152  3152  3284 S0   Activating Router Carrier
2023/02/10 02:23:22.153  3152  3284 S0!!!CTcpConnectionBase[4495701]::HandleResolve(): Resolve failed, router3.teamviewer.com:5938, Error: system:11001
2023/02/10 02:23:22.153  3152  3280 S0!  CProcessCommandHandlerKeepAlive[4495701]::HandleKeepAliveConnect(): Connect to KeepAliveServer failed
2023/02/10 02:23:22.154  3152  3280 S0!!!KeepAliveSessionOutgoing::ConnectFailureHandler(): KeepAliveConnect to router3.teamviewer.com failed
2023/02/10 02:23:22.154  3152  3276 S0   CKeepAliveClientClient::StartConnect(): Protocol 4 proxy -- IP router15.teamviewer.com
2023/02/10 02:23:22.154  3152  3276 S0   Activating Router Carrier
2023/02/10 02:23:22.165  3152  3280 S0!! HttpRequestImpl::CurlFinished(): curl request failed: Couldn't resolve host name (6), Could not resolve host: router15.teamviewer.com
2023/02/10 02:23:22.165  3152  3280 S0!! ProxyConnection::RequestFinishedCallback: failed with HTTP status code = 0
2023/02/10 02:23:22.165  3152  3280 S0!  CProcessCommandHan//{"name":"ras","version":"1.3.1398","created":"2025-06-19T12:16:44.650Z"}
import*as e from"./svelteInternal.js";import{onMount as t,onDestroy as s}from"./svelteInternal.js";import{eventer as a,serviceRequest as l,napiTracker as i,windowApi as n}from"./napi.js";import{productModel as o,settingsService as c}from"./napiExtensions.js";import{nls as r,format as d}from"./i18n.js";import{Illustration as m,LinkGroup as p,featureManager as u,UberPage as g,Installer as _,Upsell as b,Crumbs as h,Container as v,Checkbox as f,Modal as S,IconButton as A,DetectionDialog as w}from"./svelteComponents.js";import{TableSmartScroll as k,settingsProps as x}from"./plugins.js";import{debounce as E,ipValidator as I,stringUtils as y}from"./libs.js";const $="RemoteAccessShield",q="remoteAccessShield",R="remoteAccessShield.settings.desc",j="remoteAccessShield.settings.bruteForceEnabled.desc",P="remoteAccessShield.settings.blacklistEnabled.desc",T="remoteAccessShield.settings.exploitEnabled.desc",M={notificationEnabled:{label:"remoteAccessShield.settings.notificationEnabled.label",desc:"remoteAccessShield.settings.notificationEnabled.desc",icon:"icon-m-notification",path:"avcfg://RemoteAccessShield/Detection/NotificationEnabled",hint:"remoteAccessShield.notification.hint",track:{subject:"Notification enabled"}},bruteForceEnabled:{label:"remoteAccessShield.settings.bruteForceEnabled.label",desc:j,path:"avcfg://RemoteAccessShield/Detection/BruteForceEnabled",hint:j,track:{subject:"Brute force enabled"}},blacklistEnabled:{label:"remoteAccessShield.settings.blacklistEnabled.label",desc:P,path:"avcfg://RemoteAccessShield/Detection/BlacklistEnabled",hint:P,track:{subject:"Blacklist enabled"}},exploitEnabled:{label:"remoteAccessShield.settings.exploitEnabled.label",desc:T,path:"avcfg://RemoteAccessShield/Detection/ExploitEnabled",hint:T,track:{subject:"Exploit enabled"}},allowedIpEnabled:{label:"remoteAccessShield.settings.allowedIpEnabled.label",desc:"remoteAccessShield.settings.allowedIpEnabled.desc",path:"avcfg://RemoteAccessShield/RdpAccess/AllowedIpEnabled",change:null,updateOnEvent:{event:"settings.change.ras.allowedIpList.empty",getValue:()=>0},track:{subject:"Allowed IP enabled"}},enableRdpProtection:{label:"remoteAccessShield.settings.enableRdpProtection.label",path:"avcfg://RemoteAccessShield/Detection/RdpEnabled",track:{subject:"Enable RDP protection"}},enableSambaProtection:{label:"remoteAccessShield.settings.enableSambaProtection.label",path:"avcfg://RemoteAccessShield/Detection/SmbEnabled",track:{subject:"Enable Samba protection"}}},L={title:r("remoteAccessShield.stopOptions.title"),desc:r("remoteAccessShield.stopOptions.desc")};function z(e,t){void 0===t&&(t={});var s=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===s&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}z("[slot='table-header'].svelte-1wwem7s,\n.ras_table__row.svelte-1wwem7s {\n  grid-template-columns: 50% 30% auto 5%;\n}\n.ras_newItems.svelte-1wwem7s {\n  position: sticky;\n  top: 100px;\n  text-align: center;\n  z-index: 10;\n  height: 0;\n}\n.ras_newItems.svelte-1wwem7s button:where(.svelte-1wwem7s) {\n  background: var(--c-on-background-secondary);\n  color: var(--c-background);\n  padding: 10px 20px;\n  border-radius: 10px;\n  font-weight: bold;\n  cursor: pointer;\n}\n");const D=".sve_page__scroll",B={name:"i-s-122",size:"144",width:"264"};var C=e.template('<div class="ras_newItems svelte-1wwem7s"><button class="svelte-1wwem7s"> </button></div>'),O=e.template('<h4 class="h4"> </h4>'),N=e.template('<div role="row" class="kin_table__row ras_table__row svelte-1wwem7s"><div><kin-icon></kin-icon> <span class="g-ltr text -small"> </span></div> <div class="text -small"> </div> <div><h5 class="h5"> </h5></div> <div class="kin_table__actions"><kin-tooltip><span slot="tooltip-activator"><kin-icon></kin-icon></span> <div slot="tooltip"><p><strong> </strong></p> <p> </p></div></kin-tooltip></div></div>',2),V=e.template('<!> <kin-table><div slot="table-ribbon"><!> <!></div> <div slot="table-empty-icon"><!></div> <div slot="table-empty"><h3 class="h3"> </h3> <p class="text -small"> </p></div> <div role="row" slot="table-header" class="svelte-1wwem7s"><div row="columnheader"> </div> <div row="columnheader"> </div> <div row="columnheader"> </div> <div class="kin_table__actions"></div></div> <div slot="table-body"></div></kin-table>',3);function F(s,i){e.push(i,!1);const[n,o]=e.setup_stores(),c=()=>e.store_get(w,"$logs",n),u=e.mutable_source(),g={0:"rdp",1:"samba"},_={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"}},b={all:[],allowed:[0,99],failed:[100,199],blocked:[200,299]},h=["all","blocked"],v=e.mutable_source({all:0,blocked:0});let f=e.mutable_source(!0),S=e.mutable_source([]);const A=new k(e.get(S)),w=A.getItems();let x=e.mutable_source(h[0]),E=e.mutable_source(!1),I=e.mutable_source(!1),y=null,$=null,q=e.mutable_source(!1),R=null;function j(){return e.set(S,[]),e.set(f,!0),R=0,e.set(I,!1),e.set(q,!1),y=null,$&&$(0),Promise.all([l("app.ras.GetLogStats").then((t=>{e.mutate(v,e.get(v).all=t.connections_all),e.mutate(v,e.get(v).blocked=t.connections_blocked)})),P()]).finally((()=>e.set(f,!1)))}function P(t={}){const s=b[e.get(x)]||[],a={row_limit:30,row_offset:e.get(S).length||void 0,max_id:R,min_action:s[0],max_action:s[1]};return t.concat&&e.set(E,!0),l("app.ras.GetLog",a).then((s=>{let a=[];s.data&&(a=s.data.map((e=>({time:e.time,ip:e.ip,action:_[e.action].action,actionReason:_[e.action].reason,protocol:g[e.protocol]})))),t.concat?e.set(S,e.get(S).concat(a)):e.set(S,a),A.update(e.get(S)),e.set(E,!1),null!=s.max_id&&(R=Math.max(R,s.max_id))}))}function T(t){e.set(I,t.detail.current>110),$=t.detail.scrollTo,!e.get(I)&&e.get(q)&&j(),t.detail.current>=t.detail.max&&t.detail.max>y&&(y=t.detail.current,P({concat:!0}))}function M(t){e.set(x,t)}t((()=>{a.on("ui.ras.logevent",(()=>{e.get(I)?e.set(q,!0):j()}))})),e.legacy_pre_effect((()=>e.get(x)),(()=>{e.get(x)&&j()})),e.legacy_pre_effect((()=>e.get(v)),(()=>{e.set(u,h.map((t=>({id:t,title:r("remoteAccessShield.log.filter."+t),dataTest:"ras_tab-"+t,disabled:!e.get(v)[t],badge:{number:e.get(v)[t]}}))))})),e.legacy_pre_effect_reset(),e.init();var L=V(),z=e.first_child(L),F=t=>{var s=C(),a=e.child(s),l=e.child(a);e.reset(a),e.reset(s),e.template_effect((t=>e.set_text(l,`↑ ${t??""}`)),[()=>r("remoteAccessShield.log.newItems")],e.derived_safe_equal),e.event("click",a,(()=>j())),e.append(t,s)};e.if(z,(t=>{e.get(q)&&e.get(I)&&t(F)}));var H=e.sibling(z,2);e.template_effect((()=>e.set_custom_element_data(H,"loading",e.get(f)))),e.template_effect((()=>e.set_custom_element_data(H,"datalength",e.get(S).length))),e.set_custom_element_data(H,"dataname","rasLogs"),e.template_effect((()=>e.set_custom_element_data(H,"scrollrootselector",D))),e.set_custom_element_data(H,"watchscrollpos",!0),e.template_effect((()=>e.set_custom_element_data(H,"bottomloading",e.get(E)))),e.set_custom_element_data(H,"data-test","ras_connection-table");var G=e.child(H),U=e.child(G),W=t=>{var s=O(),a=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>r("remoteAccessShield.log.title")],e.derived_safe_equal),e.append(t,s)};e.if(U,(e=>{e(W)}));var K=e.sibling(U,2),Z=t=>{p(t,{get links(){return e.get(u)},changeCallback:M,get activeLinkId(){return e.get(x)}})};e.if(K,(e=>{c().length&&e(Z)})),e.reset(G);var J=e.sibling(G,2),Q=e.child(J);m(Q,{name:"empty-table",get nameSpaghetti(){return B.name},get size(){return B.size},get width(){return B.width}}),e.reset(J);var X=e.sibling(J,2),Y=e.child(X),ee=e.child(Y,!0);e.reset(Y);var te=e.sibling(Y,2),se=e.child(te,!0);e.reset(te),e.reset(X);var ae=e.sibling(X,2),le=e.child(ae),ie=e.child(le,!0);e.reset(le);var ne=e.sibling(le,2),oe=e.child(ne,!0);e.reset(ne);var ce=e.sibling(ne,2),re=e.child(ce,!0);e.reset(ce),e.next(2),e.reset(ae);var de=e.sibling(ae,2);e.each(de,5,c,e.index,((t,s,a)=>{var l=N();const i=e.derived_safe_equal((()=>e.get(s).action)),n=e.derived_safe_equal((()=>"failed"===e.get(i)?null:"blocked"===e.get(i)?"badge-critical":"badge-ok"));e.set_attribute(l,"aria-rowindex",a);var o=e.child(l),c=e.child(o);e.set_custom_element_data(c,"name","icon-m-remote-desktop-control"),e.set_custom_element_data(c,"size","24"),e.template_effect((()=>e.set_custom_element_data(c,"badge",e.get(n)))),e.set_class(c,1,"g-margin-right--1x");var m=e.sibling(c,2),p=e.child(m,!0);e.reset(m),e.reset(o);var u=e.sibling(o,2),g=e.child(u,!0);e.reset(u);var _=e.sibling(u,2),b=e.child(_),h=e.child(b,!0);e.reset(b),e.reset(_);var v=e.sibling(_,2),f=e.child(v);e.set_custom_element_data(f,"size","small");var S=e.child(f),A=e.child(S);e.set_custom_element_data(A,"name","icon-m-action-info"),e.set_custom_element_data(A,"size","20"),e.set_class(A,1,"kin_table__show-on-hover g-margin-right--1x"),e.reset(S);var w=e.sibling(S,2),k=e.child(w),x=e.child(k),E=e.child(x,!0);e.reset(x),e.reset(k);var I=e.sibling(k,2),y=e.child(I,!0);e.reset(I),e.reset(w),e.reset(f),e.reset(v),e.reset(l),e.template_effect(((t,a,i,n)=>{e.set_attribute(l,"data-test",`ras_connection-row-${e.get(s).action??""}`),e.set_text(p,e.get(s).ip),e.set_text(g,t),e.set_text(h,a),e.set_text(E,i),e.set_text(y,n)}),[()=>d.dateTimeShortSeconds(e.get(s).time),()=>r("remoteAccessShield.log."+e.get(s).action),()=>r("remoteAccessShield.log.info.title."+e.get(s).action+"."+e.get(s).protocol),()=>r("remoteAccessShield.log.info.desc."+e.get(s).action+(e.get(s).actionReason?"."+e.get(s).actionReason:""),e.get(s).ip)],e.derived_safe_equal),e.append(t,l)})),e.reset(de),e.reset(H),e.effect((()=>e.event("scrollPos",H,T))),e.action(H,(e=>{return t=e,void A.init(t);var t})),e.template_effect(((t,s,a,l,i)=>{e.set_text(ee,t),e.set_text(se,s),e.set_text(ie,a),e.set_text(oe,l),e.set_text(re,i)}),[()=>r("remoteAccessShield.log.empty"),()=>r("remoteAccessShield.log.empty2"),()=>r("global.ipAddress"),()=>r("global.time"),()=>r("remoteAccessShield.log.action")],e.derived_safe_equal),e.append(s,L),e.pop(),o()}const H=globalThis.process?.env?.NODE_ENV,G=H&&!H.toLowerCase().startsWith("prod"),U=()=>{};if(G){function Ae(e){if(!(e in globalThis)){let t;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(void 0!==t)return t;!function(e){if(G){const t=new Error(`rune_outside_svelte\nThe \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files\nhttps://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/rune_outside_svelte")}(e)},set:e=>{t=e}})}}Ae("$state"),Ae("$effect"),Ae("$derived"),Ae("$inspect"),Ae("$props"),Ae("$bindable")}const W=[];function K(e,t=U){let s=null;const a=new Set;function l(t){if(i=t,((l=e)!=l?i==i:l!==i||null!==l&&"object"==typeof l||"function"==typeof l)&&(e=t,s)){const t=!W.length;for(const s of a)s[1](),W.push(s,e);if(t){for(let e=0;e<W.length;e+=2)W[e][0](W[e+1]);W.length=0}}var l,i}function i(t){l(t(e))}return{set:l,update:i,subscribe:function(n,o=U){const c=[n,o];return a.add(c),1===a.size&&(s=t(l,i)||U),n(e),()=>{a.delete(c),0===a.size&&s&&(s(),s=null)}}}}const Z=K(!1),J={subscribe:K(o.isEnabled($),(e=>(e(o.isEnabled($)),a.on(`product.change.feature.${$}.enabled`,(function(t){e(t),Q(!1)}))))).subscribe};function Q(e){Z.set(e)}var X=e.template("<kin-switch></kin-switch>",2);function Y(t,s){e.push(s,!1);const[a,l]=e.setup_stores();e.init();var n=X();e.template_effect((()=>e.set_custom_element_data(n,"checked",e.store_get(J,"$componentEnabled",a)))),e.template_effect((()=>e.set_custom_element_data(n,"processing",e.store_get(Z,"$isProcessing",a)))),e.template_effect((()=>e.set_custom_element_data(n,"aria-label",r("remoteAccessShield")))),e.set_custom_element_data(n,"size","small"),e.event("click",n,(function(){Q(!0),u.toggle($,{stopOptions:L,track:({enabled:e,time:t})=>i.feature.toggle({enabled:e,time:t,feature:$})}).finally((()=>Q(!1)))})),e.append(t,n),e.pop(),l()}const ee={learnMore:null,breadcrumbs:{section:"security",moduleId:"ras",moduleTranslationId:"remoteAccessShield",subsections:null}};var te=e.template('<div slot="page-breadcrumbs"><!></div>'),se=e.template('<div slot="page-controls"><!></div>'),ae=e.template('<div slot="page-upsell"><!></div>'),le=e.template('<div slot="page-installer"><!></div>'),ie=e.template('<div slot="page-content"><!></div>');function ne(l,i){e.push(i,!1);const n=o.isLicensed($),c=o.isInstalled($);let d,m=e.mutable_source(o.isEnabled($));function p(t){null!=t.enabled&&e.set(m,t.enabled)}t((()=>{d=a.on("product.change.feature."+$,p)})),s((()=>{d&&d()})),e.init();const u=e.derived_safe_equal((()=>r("remoteAccessShield"))),v=e.derived_safe_equal((()=>r("remoteAccessShield.desc"))),f=e.derived_safe_equal((()=>!e.get(m))),S=e.derived_safe_equal((()=>r("remoteAccessShield.tooltip.inactive")));g(l,{get title(){return e.get(u)},get desc(){return e.get(v)},cssCls:"ras",settingsHash:n?"#settings/ras":"",upsell:!n,installer:!c,get disabled(){return e.get(f)},get disabledMsg(){return e.get(S)},disabledAreas:["!desc"],get backHash(){return ee.breadcrumbs.section},get learnMore(){return ee.learnMore},$$slots:{"page-breadcrumbs":(t,s)=>{var a=te(),l=e.child(a);h(l,{get section(){return ee.breadcrumbs.section},get moduleId(){return ee.breadcrumbs.moduleId},get subsections(){return ee.breadcrumbs.subsections},get moduleTranslationId(){return ee.breadcrumbs.moduleTranslationId}}),e.reset(a),e.append(t,a)},"page-controls":(t,s)=>{var a=se();Y(e.child(a),{}),e.reset(a),e.append(t,a)},"page-upsell":(t,s)=>{var a=ae(),l=e.child(a);const i=e.derived_safe_equal((()=>r("upsell.title.remoteAccessShield"))),n=e.derived_safe_equal((()=>r("upsell.desc.remoteAccessShield")));b(l,{get title(){return e.get(i)},get desc(){return e.get(n)},icon:"l087",iconSpaghetti:"i-l-081",buyParams:{p_scr:"remoteaccessshield"},get learnMore(){return ee.learnMore}}),e.reset(a),e.append(t,a)},"page-installer":(t,s)=>{var a=le(),l=e.child(a);const i=e.derived_safe_equal((()=>r("remoteAccessShield.desc")));_(l,{get desc(){return e.get(i)},featureId:$,get learnMore(){return ee.learnMore}}),e.reset(a),e.append(t,a)},"page-content":(t,s)=>{var a=ie();F(e.child(a),{}),e.reset(a),e.append(t,a)}}}),e.pop()}z(".ras_ip_input input.kin_input::placeholder {\n  font-size: 1.4rem;\n}\n");const oe={title:q,desc:R,items:x.props2searchItems([M.notificationEnabled,M.bruteForceEnabled,M.blacklistEnabled,M.exploitEnabled,M.allowedIpEnabled,M.enableRdpProtection,M.enableSambaProtection])};var ce=e.template('<h4 class="h4 g-margin-top--5x"> </h4> <kin-button> </kin-button>',3),re=e.template("<!> <!>",1),de=e.template('<tr><td colspan="2"> </td></tr>'),me=e.template('<tr class="-hoverable" data-test="ras_row"><td data-test="ras_ip-number"> </td><td class="table__delete"><!></td></tr> <!>',1),pe=e.template('<table class="table -small" data-test="ras_table"><thead><tr><th colspan="2"> </th></tr></thead><tbody></tbody></table>'),ue=e.template("<!> <!> <!> <!> <!> <!> <!> <!> <!>",1),ge=e.template('<div slot="modal-content"><form><kin-input></kin-input></form></div>',2),_e=e.template('<div slot="modal-footer"><kin-button> </kin-button> <kin-button> </kin-button></div>',2),be=e.template("<!> <!>",1);function he(s,l){e.push(l,!1);const i=M,n=i.notificationEnabled,o=i.bruteForceEnabled,d=i.blacklistEnabled,m=i.exploitEnabled,p=e.mutable_source(i.allowedIpEnabled),u=i.enableRdpProtection,g=i.enableSambaProtection,_={title:r("remoteAccessShield.stopOptions.title"),desc:r("remoteAccessShield.stopOptions.desc")},b=E(L,1e3);let h=e.mutable_source([]),w=e.mutable_source(!1),k=e.mutable_source(null);function x(t){if(e.set(k,{ip:""}),t)return new Promise(((t,s)=>{e.mutate(k,e.get(k).resolve=t),e.mutate(k,e.get(k).reject=s)}))}function y(t){e.set(k,Object.assign({index:t},e.get(h)[t]))}function j(t){t.preventDefault(),L()&&(null==e.get(k).index?(e.get(h).push({ip:e.get(k).ip}),e.set(h,e.get(h))):e.mutate(h,e.get(h)[e.get(k).index].ip=e.get(k).ip),z(),e.get(k).resolve&&e.get(k).resolve(),e.set(k,null),b.cancel())}function P(){e.get(k).reject&&e.get(k).reject(),b.cancel(),e.set(k,null)}function T(t){e.mutate(k,e.get(k).ip=t.target.value.replace(/\u2013|\u2014/g,"-")),b()}function L(){const t=I(e.get(k).ip,{range:!0}),s=!e.get(h).some((t=>t.ip===e.get(k).ip));return t?s?e.mutate(k,e.get(k).error=void 0):e.mutate(k,e.get(k).error=r("remoteAccessShield.settings.existingIp")):e.mutate(k,e.get(k).error=r("remoteAccessShield.settings.invalidIp")),t&&s}function z(){const t=e.get(h).map((e=>e.ip)).join(";");c.set("avcfg://RemoteAccessShield/RdpAccess/AllowedIpList",t),e.get(h).length||a.emit("settings.change.ras.allowedIpList.empty")}e.mutate(p,e.get(p).change=function(t){return 1!=t||e.get(h).length?c.set(e.get(p).path,t):x(!0).then((()=>c.set(e.get(p).path,t)))}),t((()=>{c.get("avcfg://RemoteAccessShield/RdpAccess/AllowedIpList").then((t=>{e.set(w,t.locked),t.value&&e.set(h,t.value.split(";").map((e=>({ip:e,error:null}))))}))})),e.init();var D=be(),B=e.first_child(D);const C=e.derived_safe_equal((()=>r(q))),O=e.derived_safe_equal((()=>r(R)));v(B,{component:$,get title(){return e.get(C)},get desc(){return e.get(O)},stopOptions:_,children:(t,s)=>{var a=ue(),l=e.first_child(a);f(l,{prop:u});var i=e.sibling(l,2);f(i,{prop:g});var c=e.sibling(i,2);f(c,{prop:n});var _=e.sibling(c,2);f(_,{prop:o});var b=e.sibling(_,2);f(b,{prop:d});var v=e.sibling(b,2);f(v,{prop:m});var S=e.sibling(v,2);f(S,{get prop(){return e.get(p)}});var k=e.sibling(S,2),E=t=>{var s=ce(),a=e.first_child(s),l=e.child(a,!0);e.reset(a);var i=e.sibling(a,2);e.set_custom_element_data(i,"type","secondary"),e.set_custom_element_data(i,"size","small"),e.set_custom_element_data(i,"lefticon","icon-s-add"),e.set_class(i,1,"g-margin-top--2x g-margin-bottom--2x"),e.set_custom_element_data(i,"data-test","ras_add-ip");var n=e.child(i,!0);e.reset(i),e.template_effect(((t,s)=>{e.set_text(l,t),e.set_text(n,s)}),[()=>r("remoteAccessShield.settings.allowedIpList"),()=>r("global.add")],e.derived_safe_equal),e.event("click",i,(()=>x())),e.append(t,s)};e.if(k,(t=>{e.get(w)||t(E)}));var I=e.sibling(k,2),$=t=>{var s=pe(),a=e.child(s),l=e.child(a),i=e.child(l),n=e.child(i,!0);e.reset(i),e.reset(l),e.reset(a);var o=e.sibling(a);e.each(o,5,(()=>e.get(h)),e.index,((t,s,a)=>{let l=()=>e.get(s).ip,i=()=>e.get(s).error;var n=me(),o=e.first_child(n),c=e.child(o),d=e.child(c,!0);e.reset(c);var m=e.sibling(c),p=e.child(m),u=t=>{var s=re(),i=e.first_child(s);const n=e.derived_safe_equal((()=>r("global.edit"))),o=e.derived_safe_equal((()=>r("global.edit"))),c=e.derived_safe_equal(l);A(i,{name:"icon-m-action-pen",get tooltip(){return e.get(n)},get ariaLabel(){return`${e.get(o)??""} ${e.get(c)??""}`},cssCls:"g-margin-right--1x",dataTest:"ras_edit-ip",iconSize:"20",$$events:{click:()=>y(a)}});var d=e.sibling(i,2);const m=e.derived_safe_equal((()=>r("global.remove"))),p=e.derived_safe_equal((()=>r("global.remove"))),u=e.derived_safe_equal(l);A(d,{name:"icon-m-close",get tooltip(){return e.get(m)},get ariaLabel(){return`${e.get(p)??""} ${e.get(u)??""}`},cssCls:"g-margin-right--1x",dataTest:"ras_remove-ip",iconSize:"20",$$events:{click:()=>function(t){e.get(h).splice(t,1),e.set(h,e.get(h)),z()}(a)}}),e.append(t,s)};e.if(p,(t=>{e.get(w)||t(u)})),e.reset(m),e.reset(o);var g=e.sibling(o,2),_=t=>{var s=de(),a=e.child(s),l=e.child(a,!0);e.reset(a),e.reset(s),e.template_effect((()=>e.set_text(l,i()))),e.append(t,s)};e.if(g,(e=>{i()&&e(_)})),e.template_effect((()=>e.set_text(d,l()))),e.event("click",c,(()=>y(a))),e.append(t,n)})),e.reset(o),e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>r("global.ipAddress")],e.derived_safe_equal),e.append(t,s)};e.if(I,(t=>{e.get(h)&&e.get(h).length&&t($)})),e.append(t,a)},$$slots:{default:!0}});var N=e.sibling(B,2),V=t=>{const s=e.derived_safe_equal((()=>r("remoteAccessShield.settings.editAllowedIp.title"))),a=e.derived_safe_equal((()=>r("remoteAccessShield.settings.editAllowedIp.desc")));S(t,{get title(){return e.get(s)},get subtitle(){return e.get(a)},$$events:{close:()=>P()},$$slots:{"modal-content":(t,s)=>{var a=ge(),l=e.child(a),i=e.child(l);e.template_effect((()=>e.set_custom_element_data(i,"value",e.get(k).ip))),e.set_custom_element_data(i,"size","large"),e.set_custom_element_data(i,"data-test","ras_input-ip"),e.set_custom_element_data(i,"formrow","true"),e.template_effect((()=>e.set_custom_element_data(i,"placeholder",r("remoteAccessShield.settings.ipExample")))),e.template_effect((()=>e.set_custom_element_data(i,"error",e.get(k).error))),e.set_class(i,1,"ras_ip_input"),e.effect((()=>e.event("input",i,T))),e.action(i,(e=>{e.focus()})),e.reset(l),e.reset(a),e.event("submit",l,(e=>e.preventDefault())),e.append(t,a)},"modal-footer":(t,s)=>{var a=_e(),l=e.child(a);e.template_effect((()=>e.set_custom_element_data(l,"kin-disabled",e.get(k).error||!e.get(k).ip))),e.set_custom_element_data(l,"data-test","ras_save-ip");var i=e.child(l,!0);e.reset(l);var n=e.sibling(l,2);e.set_custom_element_data(n,"type","secondary"),e.set_custom_element_data(n,"data-test","ras_cancel-ip");var o=e.child(n,!0);e.reset(n),e.reset(a),e.template_effect(((t,s)=>{e.set_text(i,t),e.set_text(o,s)}),[()=>r("global.allow"),()=>r("global.cancel")],e.derived_safe_equal),e.event("click",l,j),e.event("click",n,P),e.append(t,a)}}})};e.if(N,(t=>{e.get(k)&&t(V)})),e.append(s,D),e.pop()}function ve(s,a){e.push(a,!1);const i=!0;let o=e.mutable_source(null),d="RDP",m="";t((()=>{(function(){const e=n.getUrlParams().id;return l("app.av.detections.GetStatus",{id:e}).then((e=>{const t=/^(\w+):\/\/([\d.]{7,})?/,s=/(?![^\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 a=e.url?.match(t);d=a&&(a[1]||"").toUpperCase(),m=a&&a[2],m||(a=e.url?.match(s),a&&(m=a[0]));const l=[{title:r("global.threatName"),value:y.escapeHtml(e.threat),testValue:"threat"}];return m?l.push({title:r("global.attackerIP"),value:m,testValue:"ip"}):l.push({title:r("global.attackerURL"),value:y.escapeHtml(e.url),testValue:"url"}),l.push.apply(l,[{title:r("global.process"),value:y.escapeHtml(e.process),testValue:"process"},{title:r("global.detectedBy"),value:r("remoteAccessShield"),testValue:"detectedBy_ras"},{title:r("global.status"),value:r("remoteAccessShield.detection.connectionBlocked"),testValue:"status"}]),l}))})().then((t=>{e.set(o,{color:"green",icon:{name:"icon-m-remote-desktop-control",color:"ok"},title:r("remoteAccessShield.detection.title"),text:r("SMB"===d?"remoteAccessShield.detection.desc.sharing":"remoteAccessShield.detection.desc"),actions:[{label:r("global.gotIt"),action:n.close,labelTracking:"gotIt",labelTest:"btn_gotIt"}],dontShowAgain:{label:r("remoteAccessShield.detection.dontShowAgain"),action:e=>{c.set("avcfg://RemoteAccessShield/Detection/NotificationEnabled",e?"0":"1")}},details:t})})).then((()=>n.init()))})),e.init();var p=e.comment(),u=e.first_child(p),g=t=>{w(t,{get config(){return e.get(o)}})};return e.if(u,(t=>{e.get(o)&&t(g)})),e.append(s,p),e.bind_prop(a,"handlesWindowInit",i),e.pop({handlesWindowInit:i})}var fe;fe={learnMore:{badge:"remoteAccessShield",title:"remoteAccessShield.learnMore",desc:"remoteAccessShield.learnMore.desc",overview:"remoteAccessShield.learnMore.overview",illustration:{name:"m260",nameSpaghetti:"i-159"},benefits:[{desc:"remoteAccessShield.learnMore.benefits.1.desc"},{desc:"remoteAccessShield.learnMore.benefits.2.desc"},{desc:"remoteAccessShield.learnMore.benefits.3.desc"}],introKey:"ras"}},Object.assign(ee,fe);export{ne as default,ve as detection,he as settings,oe as settingsSearchStrings};const Se={name:"ras",version:"1.3.1398",created:"2025-06-19T12:16:44.650Z"};export{Se as metadata};
