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":"Settings","version":"1.2.1245","created":"2021-09-06T13:05:18.679Z"} import{eventer as e,serviceRequest as t,windowApi as s,EventEmitter as n,moduleManager as a,napiTracker as i}from"./napi.js";import{logger as o,Router as r,trapTabNavigation as l,urlPlaceholders as c,svelte3Adapter as p,stringUtils as d}from"./libs.js";import{nls as u,nlsRaw as g,nlsWoHtml as h,nlsx as f}from"./i18n.js";import{napiUtils as m,settingsService as b,productModel as _,setupService as v,passwordService as y,systemService as S}from"./napiExtensions.js";import x from"./ractive.js";import{EventEmitter as k}from"./napiAdapter.js";import{svelteComponents as w}from"./Settings.js";import T,{modals as A}from"./ractiveComponents.js";function I(){}function P(e){return e()}function E(){return Object.create(null)}function C(e){e.forEach(P)}function $(e){return"function"==typeof e}function L(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function N(e,t,s,n){if(e){const a=R(e,t,s,n);return e[0](a)}}function R(e,t,s,n){return e[1]&&n?function(e,t){for(const s in t)e[s]=t[s];return e}(s.ctx.slice(),e[1](n(t))):s.ctx}function U(e,t,s,n,a,i,o){const r=function(e,t,s,n){if(e[2]&&n){const a=e[2](n(s));if(void 0===t.dirty)return a;if("object"==typeof a){const e=[],s=Math.max(t.dirty.length,a.length);for(let n=0;n<s;n+=1)e[n]=t.dirty[n]|a[n];return e}return t.dirty|a}return t.dirty}(t,n,a,i);if(r){const a=R(t,s,n,o);e.p(a,r)}}function D(e){return e&&$(e.destroy)?e.destroy:I}function M(e,t){e.appendChild(t)}function O(e,t,s){e.insertBefore(t,s||null)}function G(e){e.parentNode.removeChild(e)}function j(e,t){for(let s=0;s<e.length;s+=1)e[s]&&e[s].d(t)}function B(e){return document.createElement(e)}function V(e){return document.createTextNode(e)}function F(){return V(" ")}function z(){return V("")}function q(e,t,s,n){return e.addEventListener(t,s,n),()=>e.removeEventListener(t,s,n)}function W(e){return function(t){return t.preventDefault(),e.call(this,t)}}function H(e,t,s){null==s?e.removeAttribute(t):e.getAttribute(t)!==s&&e.setAttribute(t,s)}function Y(e,t,s){t in e?e[t]=s:H(e,t,s)}function K(e,t,s){const n=new Set;for(let a=0;a<e.length;a+=1)e[a].checked&&n.add(e[a].__value);return s||n.delete(t),Array.from(n)}function J(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function X(e,t){e.value=null==t?"":t}function Z(e,t){for(let s=0;s<e.options.length;s+=1){const n=e.options[s];if(n.__value===t)return void(n.selected=!0)}}function Q(e,t,s){e.classList[s?"add":"remove"](t)}let ee;function te(e){ee=e}function se(){if(!ee)throw new Error("Function called outside component initialization");return ee}function ne(e){se().$$.on_mount.push(e)}function ae(e){se().$$.on_destroy.push(e)}function ie(){const e=se();return(t,s)=>{const n=e.$$.callbacks[t];if(n){const a=function(e,t){const s=document.createEvent("CustomEvent");return s.initCustomEvent(e,!1,!1,t),s}(t,s);n.slice().forEach((t=>{t.call(e,a)}))}}}function oe(e,t){const s=e.$$.callbacks[t.type];s&&s.slice().forEach((e=>e(t)))}const re=[],le=[],ce=[],pe=[],de=Promise.resolve();let ue=!1;function ge(e){ce.push(e)}function he(e){pe.push(e)}let fe=!1;const me=new Set;function be(){if(!fe){fe=!0;do{for(let e=0;e<re.length;e+=1){const t=re[e];te(t),_e(t.$$)}for(te(null),re.length=0;le.length;)le.pop()();for(let e=0;e<ce.length;e+=1){const t=ce[e];me.has(t)||(me.add(t),t())}ce.length=0}while(re.length);for(;pe.length;)pe.pop()();ue=!1,fe=!1,me.clear()}}function _e(e){if(null!==e.fragment){e.update(),C(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ge)}}const ve=new Set;let ye;function Se(){ye={r:0,c:[],p:ye}}function xe(){ye.r||C(ye.c),ye=ye.p}function ke(e,t){e&&e.i&&(ve.delete(e),e.i(t))}function we(e,t,s,n){if(e&&e.o){if(ve.has(e))return;ve.add(e),ye&&ye.c&&ye.c.push((()=>{ve.delete(e),n&&(s&&e.d(1),n())})),e.o(t)}}const Te="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Ae(e,t){we(e,1,1,(()=>{t.delete(e.key)}))}function Ie(e,t,s,n,a,i,o,r,l,c,p,d){let u=e.length,g=i.length,h=u;const f={};for(;h--;)f[e[h].key]=h;const m=[],b=new Map,_=new Map;for(h=g;h--;){const e=d(a,i,h),r=s(e);let l=o.get(r);l?n&&l.p(e,t):(l=c(r,e),l.c()),b.set(r,m[h]=l),r in f&&_.set(r,Math.abs(h-f[r]))}const v=new Set,y=new Set;function S(e){ke(e,1),e.m(r,p),o.set(e.key,e),p=e.first,g--}for(;u&&g;){const t=m[g-1],s=e[u-1],n=t.key,a=s.key;t===s?(p=t.first,u--,g--):b.has(a)?!o.has(n)||v.has(n)?S(t):y.has(a)?u--:_.get(n)>_.get(a)?(y.add(n),S(t)):(v.add(a),u--):(l(s,o),u--)}for(;u--;){const t=e[u];b.has(t.key)||l(t,o)}for(;g;)S(m[g-1]);return m}function Pe(e,t,s){const n=e.$$.props[t];void 0!==n&&(e.$$.bound[n]=s,s(e.$$.ctx[n]))}function Ee(e){e&&e.c()}function Ce(e,t,s,n){const{fragment:a,on_mount:i,on_destroy:o,after_update:r}=e.$$;a&&a.m(t,s),n||ge((()=>{const t=i.map(P).filter($);o?o.push(...t):C(t),e.$$.on_mount=[]})),r.forEach(ge)}function $e(e,t){const s=e.$$;null!==s.fragment&&(C(s.on_destroy),s.fragment&&s.fragment.d(t),s.on_destroy=s.fragment=null,s.ctx=[])}function Le(e,t){-1===e.$$.dirty[0]&&(re.push(e),ue||(ue=!0,de.then(be)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ne(e,t,s,n,a,i,o=[-1]){const r=ee;te(e);const l=e.$$={fragment:null,ctx:null,props:i,update:I,not_equal:a,bound:E(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(r?r.$$.context:[]),callbacks:E(),dirty:o,skip_bound:!1};let c=!1;if(l.ctx=s?s(e,t.props||{},((t,s,...n)=>{const i=n.length?n[0]:s;return l.ctx&&a(l.ctx[t],l.ctx[t]=i)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](i),c&&Le(e,t)),s})):[],l.update(),c=!0,C(l.before_update),l.fragment=!!n&&n(l.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);l.fragment&&l.fragment.l(e),e.forEach(G)}else l.fragment&&l.fragment.c();t.intro&&ke(e.$$.fragment),Ce(e,t.target,t.anchor,t.customElement),be()}te(r)}class Re{$destroy(){$e(this,1),this.$destroy=I}$on(e,t){const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(t),()=>{const e=s.indexOf(t);-1!==e&&s.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)}}const Ue={1025:"Arabic - Saudi Arabia",1026:"Bulgarian",1027:"Catalan",1028:"Chinese - Traditional",1029:"Czech",1030:"Danish",1031:"German",1032:"Greek",1033:"English - United States",1035:"Finnish",1036:"French",1037:"Hebrew",1038:"Hungarian",1040:"Italian",1041:"Japanese",1042:"Korean",1043:"Dutch",1044:"Norwegian",1045:"Polish",1046:"Portuguese",1048:"Romanian",1049:"Russian",1050:"Croatian",1051:"Slovak",1053:"Swedish",1054:"Thai",1055:"Turkish",1056:"Urdu",1057:"Indonesian",1058:"Ukrainian",1059:"Belarusian",1060:"Slovenian",1061:"Estonian",1062:"Latvian",1063:"Lithuanian",1065:"Farsi - Persian",1066:"Vietnamese",1081:"Hindi",1086:"Malay",1093:"Bengali - India",2052:"Chinese - Simplified",2057:"English - United Kingdom",2070:"Portuguese",2074:"Serbian",3082:"Spanish"},De={title:"settings.languages",chooseLanguage:"settings.languages.chooseLangauage",addNewLanguage:"settings.languages.addNewLanguage"};function Me(){return{language:{id:"stg-languages-chooseLanguage",label:u(De.chooseLanguage),path:"avcfg://settings/Languages/Engine",options:null,search:De.chooseLanguage},addNewLanguage:{id:"stg-languages-addNewLanguage",label:u(De.addNewLanguage),search:De.addNewLanguage}}}function Oe(){return t("app.languages.GetLanguages").then((e=>m.supportedSince("21.8")?e:b.getValue("avdef://config/Instup/SupportedLanguages",{cached:!0}).then((t=>{const s=null==t?[]:t.split(",").map((e=>parseInt(e)));return s.length&&(e=e.filter((e=>s.includes(e.languageId)))),e}))))}const Ge=x.extend({template:{v:3,t:[{t:7,e:"SettingsContainer",a:{title:[{t:2,x:{r:["nls","STRINGS.title"],s:"_0(_1)"}}]},f:[{t:7,e:"SettingsSelect",a:{property:[{t:2,r:"properties.language"}],labelSmall:0}}," ",{t:7,e:"div",a:{class:"settings__row"},f:[{t:7,e:"kin-button",a:{type:"secondary",id:[{t:2,r:"properties.addNewLanguage.id"}]},v:{click:"showLanguageList"},f:[{t:2,r:"properties.addNewLanguage.label"}]}]}]}," ",{t:4,f:[{t:7,e:"Modal",a:{title:[{t:2,x:{r:["nls","STRINGS.addNewLanguage"],s:"_0(_1)"}}],subtitle:[{t:2,x:{r:["nls","productName"],s:'_0("settings.languages.addNewLanguage.desc",_1)'}}],scrollable:0},f:[{t:7,e:"div",a:{class:"modal"},f:[{t:4,f:[{t:7,e:"div",a:{class:["stg_language__row kin_table__row ",{t:2,x:{r:["installed","toBeInstalled"],s:'(_0&&!_1)||(!_0&&_1)?"-selected":""'}}]},f:[{t:7,e:"div",f:[{t:7,e:"input",a:{type:"checkbox",checked:[{t:2,r:"toBeInstalled"}],disabled:[{t:2,x:{r:["changeInProgress","properties.language.value","languageId"],s:"_0||_1==_2"}}],id:["settings-languages-",{t:2,r:"languageId"}],"data-test":["settings-languages-",{t:2,r:"languageId"}],class:"checkbox g-margin-left--10 g-margin-right--5",title:[{t:2,r:"englishName"}]},v:{change:{n:"clearError",d:[{t:2,r:"."}]}}}," ",{t:7,e:"label",a:{class:"checkbox__label",for:["settings-languages-",{t:2,r:"languageId"}]},f:[{t:2,r:"localizedAndEnglishName"},{t:3,r:"RTL_BRACKET_FIXER"}," ",{t:4,f:[{t:7,e:"kin-tooltip",f:[{t:7,e:"span",a:{slot:"tooltip-activator"},f:[{t:7,e:"kin-icon",a:{name:"icon-m-action-info",size:"20"}}]}," ",{t:7,e:"span",a:{slot:"tooltip",class:"p -small"},f:[{t:2,x:{r:["nls"],s:'_0("settings.languages.selectedLanguage.tooltip")'}}]}]}],n:50,x:{r:["properties.language.value","languageId"],s:"_0==_1"}}]}]}," ",{t:7,e:"div",a:{class:"kin_table__end g-margin-right--10"},f:[{t:4,f:[{t:4,f:[{t:7,e:"kin-loading",a:{inline:0,size:"small"}}," ",{t:7,e:"span",a:{class:"g-margin-left--5"},f:[{t:2,x:{r:["nls"],s:'_0("settings.languages.remove.progress")'}}]}],n:50,x:{r:["installed","toBeInstalled"],s:"_0&&!_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["installed","toBeInstalled"],s:"!_0&&_1"},f:[{t:7,e:"kin-loading",a:{inline:0,size:"small"}}," ",{t:7,e:"span",a:{class:"g-margin-left--5"},f:[{t:2,x:{r:["nls"],s:'_0("settings.languages.install.progress")'}}]}]},{t:4,n:50,x:{r:["toBeInstalled","installed"],s:"(_1&&_0)&&(_1)"},f:[" ",{t:7,e:"span",a:{class:"color-ok -text"},f:[{t:2,x:{r:["nls"],s:'_0("settings.languages.installed")'}}]}]}],x:{r:["installed","toBeInstalled"],s:"_0&&!_1"}}],n:50,r:"changeInProgress"},{t:4,n:51,f:[{t:4,n:50,x:{r:["error"],s:"_0"},f:[{t:4,f:[{t:7,e:"span",a:{class:"color-critical -text"},f:[{t:2,x:{r:["nls"],s:'_0("settings.languages.toBeInstalled.error")'}}]}],n:50,x:{r:["installed","toBeInstalled"],s:"!_0&&_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["installed","toBeInstalled"],s:"_0&&!_1"},f:[{t:7,e:"span",a:{class:"color-critical -text"},f:[{t:2,x:{r:["nls"],s:'_0("settings.languages.toBeRemoved.error")'}}]}]}],x:{r:["installed","toBeInstalled"],s:"!_0&&_1"}}]},{t:4,n:50,x:{r:["error"],s:"!(_0)"},f:[" ",{t:4,f:[{t:7,e:"span",a:{class:"color-critical -text"},f:[{t:2,x:{r:["nls"],s:'_0("settings.languages.toBeRemoved")'}}]}],n:50,x:{r:["installed","toBeInstalled"],s:"_0&&!_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["installed","toBeInstalled"],s:"!_0&&_1"},f:[{t:7,e:"span",f:[{t:2,x:{r:["nls"],s:'_0("settings.languages.toBeInstalled")'}}]}]},{t:4,n:50,x:{r:["toBeInstalled","installed"],s:"(_1&&_0)&&(_1)"},f:[" ",{t:7,e:"span",a:{class:"color-ok -text"},f:[{t:2,x:{r:["nls"],s:'_0("settings.languages.installed")'}}]}]}],x:{r:["installed","toBeInstalled"],s:"_0&&!_1"}}]}],r:"changeInProgress"}]}]}],r:"languages"}]}," ",{t:7,e:"div",a:{class:"modal__footer"},f:[{t:7,e:"kin-button",a:{"kin-disabled":[{t:2,x:{r:["changeInProgress","lngState.noLngChange"],s:"_0||_1"}}],processing:[{t:2,r:"changeInProgress"}]},v:{click:"updateLanguages"},f:[{t:2,r:"actionBtnText"}]}," ",{t:7,e:"kin-button",a:{type:"secondary"},v:{click:"close"},f:[{t:2,x:{r:["nls"],s:'_0("global.close")'}}]}]}]}],n:50,r:"showLanguageList"}]},css:".stg_language__row {\n grid-template-columns: 70% auto;\n margin: 0 6rem;\n}\n",data:()=>({STRINGS:De,properties:Me(),RTL_BRACKET_FIXER:"‎",languages:[],showLanguageList:!1,changeInProgress:!1,productName:u(m.getProductStringId()),lngState:{someLngToBeInstalled:!1,someLngToBeRemoved:!0,noLngChange:!0}}),computed:{actionBtnText:function(){const e=this.get("lngState"),t=this.get("changeInProgress");return e.someLngToBeRemoved&&e.someLngToBeInstalled?u(t?"settings.languages.apply.progress":"settings.languages.apply"):e.someLngToBeInstalled||e.noLngChange?u(t?"settings.languages.install.progress":"settings.languages.install"):e.someLngToBeRemoved?u(t?"settings.languages.remove.progress":"settings.languages.remove"):void 0}},oninit(){this.appliedLanguage=null,this.observe("languages",this.updateInstalledLanguages.bind(this),{init:!1}),this.observe("properties.language.value",((t,s)=>{null==s?this.appliedLanguage=t:this.trackLanguageChange(t),null!=t&&null!=s&&e.emit("settings.change.language",t)}),{init:!1}),this.on("showLanguageList",this.showLanguageList.bind(this)),this.on("Modal.modalClose",this.closeLanguageList.bind(this,!0)),this.on("close",this.closeLanguageList.bind(this,!0)),this.on("updateLanguages",(()=>{this.updateLanguages()})),this.on("clearError",((e,t)=>{t.error&&(t.error=!1,this.update("languages"))})),this.loadLanguages()},loadLanguages(){return Oe().then((e=>{e.sort(((e,t)=>e.localizedName.localeCompare(t.localizedName))).forEach((e=>{const t=Ue[e.languageId];t&&!t.includes("English")?e.localizedAndEnglishName=e.localizedName+" ("+t+")":e.localizedAndEnglishName=e.localizedName})),this.set("languages",e)}))},initLanguageCheckboxes(){const e=this.get("languages");e.forEach((e=>{e.toBeInstalled=Boolean(e.installed||e.toBeInstalled)})),this.set("languages",e)},updateLanguages(){this.set("changeInProgress",!0);const s=this.get("languages");e.emit("Settings.gaTrack","Install");const n=[];s.forEach((t=>{let s;const a={languageId:t.languageId,installed:t.toBeInstalled};t.installed&&!t.toBeInstalled?s=!1:!t.installed&&t.toBeInstalled&&(s=!0),null!=s&&(e.emit("Settings.gaTrack",t.localizedName,s),a.installed=s),n.push(a)})),t("app.languages.SetLanguages",m.supportedSince("21.8")?{languages:n,silent:!0}:n).finally((()=>{this.setLanguagesAndErrors(s)}))},setLanguagesAndErrors(e){Oe().then((t=>{e.forEach((e=>{const s=t.find((t=>t.languageId===e.languageId));e.installed=s.installed,e.error=e.installed&&!e.toBeInstalled||!e.installed&&e.toBeInstalled})),this.set({languages:e,changeInProgress:!1})}))},updateInstalledLanguages(){const e=this.get("languages"),t=e.some((e=>!e.installed&&e.toBeInstalled)),s=e.some((e=>e.installed&&!e.toBeInstalled)),n=!t&&!s;this.set({lngState:{someLngToBeInstalled:t,someLngToBeRemoved:s,noLngChange:n}});const a=[];e&&e.forEach((e=>{e.installed&&a.push({label:e.localizedAndEnglishName,value:e.languageId})})),this.set("properties.language.options",a)},showLanguageList(){e.emit("Settings.gaTrack","Add language"),this.initLanguageCheckboxes(),this.set("showLanguageList",!0)},closeLanguageList(t){if(t&&e.emit("Settings.gaTrack","Close the add language dialog"),!this.get("changeInProgress")){const e=this.get("languages");e.forEach((e=>{e.toBeInstalled=!1})),this.set("languages",e)}this.set("showLanguageList",!1)},trackLanguageChange(t){const s=this.get("languages").find((e=>e.languageId==t));s&&e.emit("Settings.gaTrack","Change language",s.localizedName)}});const je="Icarus",Be="Instup",Ve="updateVps",Fe="updateProgram",ze={outdated:"outdated",updating:"updating",updated:"updated",failed:"failed",errorSSE3:"errorSSE3"},qe={starting:"starting",running:"running",progress:"progress",finished:"finished",done:"done"};function We(){return!!_.getIssues().reboot_required}function He(e,t){return e!==ze.updated||t?e===ze.outdated||e===ze.failed||t||e===ze.errorSSE3?{name:"attention",color:"critical",shape:"triangle"}:void 0:{name:"ok",color:"ok"}}const Ye=x.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"settings__indent g-margin-bottom--10"},t0:{n:[{t:2,x:{r:["slideEffectEnabled"],s:'_0?"slide":""'}}],d:[]},f:[{t:16}]}],n:50,r:"expanded"}]},data:()=>({expanded:!1,slideEffectEnabled:!0}),onteardown(){this.set("slideEffectEnabled",!1)}}),Ke=o.createLogger("settings.updaterService");class Je extends k{constructor(e){super(),this.setup=e.setup,this.updater=e.updater,this._updateTriedAgain,this.sessionId,this.errorSSE3=!1}destroy(){Ke.info("destroying"),this._stopWatchingInstupStatus(),this._stopWatchingIcarusStatus()}getState(){return this._setState(null,[null],!0)}_getVersion(){return this.updater===Fe?this._getProgramInfo():this.updater===Ve?v.getVpsUpdateInfo():void 0}_getProgramInfo(){const e=[],s=t("app.setup.GetProgramVersions").then((e=>(e.installedBuild=_.getProductInfo().buildNumber,e)));return e.push(s),this.setup===Be&&e.push(this._checkInstupSSE3()),Promise.all(e).then((e=>e[0]))}_isUpdating(e){return e===qe.starting||e===qe.running||e===qe.progress}_setState(e,t,s=!1){this._isUpdating(e)?this.emit("state",{updateState:ze.updating,progress:t,initState:s}):this._getVersion().then((t=>{(function(e,t){if(e===t)return 0;const s=e.split("."),n=t.split("."),a=Math.min(s.length,n.length);for(let i=0;i<a;i++){if(parseInt(s[i])>parseInt(n[i]))return 1;if(parseInt(s[i])<parseInt(n[i]))return-1}return s.length-n.length})(t.installedVersion,t.latestVersion)<0?e===qe.finished||e===qe.done?this._updateTriedAgain?this.emit("state",{updateState:ze.failed,info:t,initState:s}):(this._updateTriedAgain=!0,this.doUpdate(!0)):this.emit("state",{updateState:ze.outdated,info:t,initState:s}):this.updater===Ve?_.update().then((()=>{const e=_.getState().issues;e&&e.defs_out_of_date?this.emit("state",{updateState:ze.outdated,info:t,initState:s}):this.emit("state",{updateState:ze.updated,info:t,initState:s})})):this.errorSSE3?this.emit("state",{updateState:ze.errorSSE3,info:t,initState:s}):this.emit("state",{updateState:ze.updated,info:t,initState:s})})).catch((e=>{Ke.error("set state failed",e)}))}_watchIcarusStatus(t){this.vpsEventerOff||(t&&t.status&&t.progress?this._setState("progress",t.status&&t.progress):this._setState("progress",qe.starting),this.vpsEventerOff=e.on("icarus.onStatusChanged.sessionUpdate",(e=>{e.sessionId===this.sessionId&&e.task===this.updater&&(e.status===qe.finished&&this._stopWatchingIcarusStatus(),this._setState(e.status,e.progress))})))}_stopWatchingIcarusStatus(){this.vpsEventerOff&&this.vpsEventerOff(),this.sessionId=null,this.vpsEventerOff=void 0}_watchInstupStatus(){this.intervalId||(this.intervalId=setInterval((()=>{t("app.setup.GetUpdateStatus",{task:this.updater}).then((e=>{e.task===this.updater?(e.status===qe.done&&this._stopWatchingInstupStatus(),this._setState(e.status,e.progress)):this._stopWatchingInstupStatus()})).catch((e=>{Ke.error("getting status failed",e),this._stopWatchingInstupStatus()}))}),500))}_stopWatchingInstupStatus(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=void 0)}_checkInstupSSE3(){return t("app.settings.Get",{name:"avcfg://settings/Common/Sse3NotPresent"}).then((e=>{this.errorSSE3="1"==e.value})).catch((()=>{this.errorSSE3=!1}))}_doUpdate(){return this.updater===Fe?t("app.setup.UpdateProgram"):this.updater===Ve?t("app.setup.UpdateVPS"):void 0}doUpdate(t){t||(e.emit("Settings.gaTrack","Check program update"),delete this._updateTriedAgain),this._doUpdate().then((e=>{this.setup===Be&&this._checkInstupSSE3(),this.startWatchingProgress(e.sessionId)})).catch((e=>{Ke.error("updating failed",e)}))}startWatchingProgress(e,t=null){return this.sessionId=e,this.setup===je?this._watchIcarusStatus(t):this.setup===Be?this._watchInstupStatus():void 0}}const Xe=Ve,Ze={virusDefinitions:"settings.update.virusDefinitions",vpsUpToDate:"settings.update.vpsUpToDate",vpsOutdated:"settings.update.vpsOutdated",vpsUpdateChecking:"settings.update.vpsUpdateChecking",vpsUpdateDownloading:"settings.update.vpsUpdateDownloading",vpsUpdateInstalling:"settings.update.vpsUpdateInstalling",updateFailed:"settings.update.updateFailed",releaseDateWas:"settings.update.releaseDateWas",version:"settings.update.versionShort",checkForUpdates:"settings.update.checkForUpdates",enableStreamingUpdate:"settings.update.enableStreamingUpdate",automaticUpdate:"settings.update.vps.automaticUpdate",askWhenUpdateAvailable:"settings.update.vps.askWhenUpdateAvailable",manualUpdate:"settings.update.vps.manualUpdate",moreOptions:"settings.moreOptions",lessOptions:"settings.lessOptions",restartNow:"settings.restartNow",restartNeededDesc:"settings.restartNeeded.desc"};function Qe(){return{version:{id:"settings-update-vps-version",search:Ze.version},checkForUpdatesBtn:{id:"settings-update-vps-checkForUpdates",label:u(Ze.checkForUpdates),search:{title:Ze.checkForUpdates,others:[Ze.automaticUpdate,Ze.askWhenUpdateAvailable,Ze.manualUpdate],napiEvent:"settings.update.showVpsUpdate"}},vpsUpdate:{id:"settings-update-vps-update",track:{subject:"VPS update"},path:"avcfg://settings/Common/VPSUpdate",options:[{label:u(Ze.automaticUpdate),value:"Auto"},{label:u(Ze.askWhenUpdateAvailable),value:"Ask"},{label:u(Ze.manualUpdate),value:"Manual"}]},streamingUpdate:{id:"settings-update-vps-enableStreamingUpdate",label:u(Ze.enableStreamingUpdate),track:{subject:"Streaming update"},path:"avcfg://settings/Common/StreamingUpdates",search:{title:Ze.enableStreamingUpdate,napiEvent:"settings.update.showVpsUpdate"}}}}const et=x.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"settings__row"},f:[{t:7,e:"div",a:{class:"stg_update__row"},f:[{t:4,f:[{t:7,e:"kin-icon",a:{name:["icon-s-status-",{t:2,r:"vpsUpdateIcon.name"}],class:["settings__icon color-",{t:2,r:"vpsUpdateIcon.color"}," -text"],size:"24"}}," ",{t:7,e:"div",a:{class:"settings__indent"},f:[{t:4,f:[{t:7,e:"h4",a:{class:"h4 -margins"},f:[{t:3,x:{r:["nls","STRINGS.vpsUpToDate"],s:"_0(_1)"}}]}],n:50,x:{r:["vpsUpdateState","UPDATE_STATES.updated"],s:"_0===_1"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["vpsUpdateState","UPDATE_STATES.failed"],s:"_0===_1"},f:[{t:7,e:"h4",a:{class:"h4 color-critical -text -margins"},f:[{t:3,x:{r:["nls","STRINGS.updateFailed"],s:"_0(_1)"}}]}]},{t:4,n:50,x:{r:["vpsUpdateState","UPDATE_STATES.failed"],s:"!(_0===_1)"},f:[" ",{t:7,e:"h4",a:{class:"h4 color-critical -text -margins"},f:[{t:3,x:{r:["nls","STRINGS.vpsOutdated"],s:"_0(_1)"}}]}]}],x:{r:["vpsUpdateState","UPDATE_STATES.updated"],s:"_0===_1"}}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:3,x:{r:["nls","STRINGS.releaseDateWas","moment","vpsInfo.installedTime"],s:'_0(_1,_2(_3*1000).format("LLL"))'}},{t:7,e:"br"}," (",{t:7,e:"span",a:{id:[{t:2,r:"properties.version.id"}]},f:[{t:3,x:{r:["nls","STRINGS.version","vpsInfo.installedVersion"],s:"_0(_1,_2)"}}]},")"]}]}],n:50,x:{r:["UPDATE_STATES.updated","vpsUpdateState","UPDATE_STATES.outdated"],s:"_1===_0||_1===_2"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["vpsUpdateState","UPDATE_STATES.updating"],s:"_0===_1"},f:[{t:7,e:"kin-loading",a:{size:"small",class:"settings__icon"}}," ",{t:7,e:"div",a:{class:"settings__indent"},f:[{t:4,f:[{t:7,e:"h4",a:{class:"h4 -margins"},f:[{t:3,x:{r:["nls","STRINGS.vpsUpdateInstalling"],s:"_0(_1)"}}]}," ",{t:7,e:"kin-progress",a:{percentage:[{t:2,r:"vpsUpdateProgress"}],size:"small"}}],n:50,r:"vpsUpdateProgress"},{t:4,n:51,f:[{t:7,e:"h4",a:{class:"h4 -margins"},f:[{t:3,x:{r:["nls","STRINGS.vpsUpdateChecking"],s:"_0(_1)"}}]}," ",{t:7,e:"kin-progress",a:{percentage:"-1",size:"small"}}],r:"vpsUpdateProgress"}]}]}],x:{r:["UPDATE_STATES.updated","vpsUpdateState","UPDATE_STATES.outdated"],s:"_1===_0||_1===_2"}}]}," ",{t:7,e:"div",a:{class:"settings__indent settings__row"},f:[{t:4,f:[{t:7,e:"p",a:{class:"p g-margin-bottom--5"},f:[{t:3,x:{r:["nls","STRINGS.restartNeededDesc"],s:"_0(_1)"}}]}," ",{t:7,e:"kin-button",a:{"kin-disabled":[{t:2,r:"runningUpdateTask"}],type:"secondary"},v:{click:"restartNow"},f:[{t:3,x:{r:["nls","STRINGS.restartNow"],s:"_0(_1)"}}]}],n:50,r:"restartNeeded"},{t:4,n:51,f:[{t:7,e:"kin-button",a:{"kin-disabled":[{t:2,r:"runningUpdateTask"}],id:[{t:2,r:"properties.checkForUpdatesBtn.id"}],type:"secondary","aria-label":[{t:2,r:"properties.checkForUpdatesBtn.label"}," - ",{t:2,x:{r:["nls","STRINGS.virusDefinitions"],s:"_0(_1)"}}]},v:{click:"doVpsUpdate"},f:[{t:2,r:"properties.checkForUpdatesBtn.label"}]}," ",{t:7,e:"button",a:{class:"a -icon-right g-margin-left--20"},v:{click:"toggleVpsUpdate"},f:[{t:4,f:[{t:3,x:{r:["nls","STRINGS.lessOptions"],s:"_0(_1)"}}," "],n:50,r:"showVpsUpdate"},{t:4,n:51,f:[{t:3,x:{r:["nls","STRINGS.moreOptions"],s:"_0(_1)"}}," "],r:"showVpsUpdate"},{t:7,e:"Icon",a:{name:"chevron-down",cssCls:[{t:2,x:{r:["showVpsUpdate"],s:'_0?"g-rotate--180":""'}}]}}]}],r:"restartNeeded"}]}]}," ",{t:7,e:"Expander",a:{expanded:[{t:2,r:"showVpsUpdate"}]},f:[{t:7,e:"SettingsRadio",a:{property:[{t:2,r:"properties.vpsUpdate"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.streamingUpdate"}]}}]}],n:50,r:"vpsLoaded"}]},components:{Expander:Ye},data:()=>({STRINGS:Ze,UPDATE_STATES:ze,properties:Qe(),icarusSetup:!1,restartNeeded:null,vpsLoaded:!1,sessionId:null,vpsInfo:{installedVersion:null,installedTime:null,latestVersion:null},vpsUpdateState:null,vpsUpdateProgress:null,vpsUpdateIcon:{color:null,name:null},showVpsUpdate:!1,runningUpdateTask:null,slideEffectEnabled:!0}),oninit(){this.programUpdater=new Je({setup:this.get("icarusSetup")?je:Be,updater:Xe}),this.programUpdater.on("state",(e=>this.setState(e))),this.observe("checkRunningUpdate",(e=>{const t={status:null,progress:null};e&&e.task===Xe&&([qe.starting,qe.progress,qe.running].includes(e.status)&&(this.set("vpsUpdateState",ze.updating),t.status=e.status),e.progress&&(this.set("vpsUpdateProgress",e.progress),t.progress=e.progress),this.programUpdater.startWatchingProgress(e.sessionId?e.sessionId:null,t),this.set("checkRunningUpdate",null))})),this.programUpdater.getState(),this.on("doVpsUpdate",(()=>this.programUpdater.doUpdate())),this.on("toggleVpsUpdate",this.toggle.bind(this,"showVpsUpdate")),this.on("restartNow",(()=>{t("app.avService.FixIssue",{issueId:"reboot_required"})}))},onteardown(){this.set("slideEffectEnabled",!1),this.programUpdater.destroy()},setState(e){e&&(e.info&&(this.set("vpsInfo",e.info),this.get("vpsLoaded")||(this.fire("loaded"),this.set("vpsLoaded",!0))),(!e.initState||e.initState&&this.get("vpsUpdateState")!==ze.updating)&&e.updateState&&e.updateState!==this.get("vpsUpdateState")&&(e.initState||this.set("runningUpdateTask",e.updateState===ze.updating),this.setVpsUpdateIcon(e.updateState),this.set("vpsUpdateState",e.updateState)),e.progress&&this.set("vpsUpdateProgress",e.progress),e.updateState!==ze.updating&&this.set("restartNeeded",We()),!e.initState&&e.updateState===ze.updated&&this.get("runningUpdateTask")&&this.set("runningUpdateTask",!1))},setVpsUpdateIcon(e){this.set("vpsUpdateIcon",He(e))}}),tt=o.createLogger("settings.update.proxy"),st={specificProxyTitle:"settings.update.specificProxyTitle",useSpecificProxy:"settings.update.useSpecificProxy",proxyType:"settings.update.proxy.type",proxyTypeNo:"settings.update.proxy.type.none",proxyTypePreconfig:"settings.update.proxy.type.preconfig",proxyTypeHttp:"settings.update.proxy.type.http",proxyTypeSocks4:"settings.update.proxy.type.socks4",proxyAddress:"settings.update.proxy.address",proxyPort:"settings.update.proxy.port",proxyAuthentication:"settings.update.proxy.authenticationType",proxyAuthenticationNo:"settings.update.proxy.authenticationType.no",proxyAuthenticationBasic:"settings.update.proxy.authenticationType.basic",proxyAuthenticationNtlm:"settings.update.proxy.authenticationType.ntlm",proxyUsername:"settings.update.proxy.username",proxyPassword:"settings.update.proxy.password"},nt={proxy:{id:"settings-update-program-proxy-enabled",search:{title:st.useSpecificProxy,desc:st.specificProxyTitle,others:[st.proxyType,st.proxyTypeHttp,st.proxyTypeSocks4,st.proxyAddress,st.proxyPort,st.proxyAuthentication,st.proxyAuthenticationNo,st.proxyAuthenticationBasic,st.proxyAuthenticationNtlm,st.proxyUsername,st.proxyPassword]}}},at=x.extend({template:{v:3,t:[{t:7,e:"p",a:{class:"p -small -secondary g-margin-top--15"},f:[{t:3,x:{r:["nls","STRINGS.specificProxyTitle"],s:"_0(_1)"}}]}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"proxyEnabled"}]},f:[{t:7,e:"div",a:{class:"stg_update__form"},f:[{t:7,e:"SettingsSelect",a:{property:[{t:2,r:"proxy.type"}],inline:0}}," ",{t:7,e:"div",a:{class:"settings__row"},f:[{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"proxy.address"}],inline:0}}]}," ",{t:7,e:"div",a:{class:"settings__row"},f:[{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"proxy.port"}],inline:0}}]}," ",{t:7,e:"SettingsSelect",a:{property:[{t:2,r:"proxy.authorization"}],inline:0}}," ",{t:7,e:"div",a:{class:"settings__row"},f:[{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"proxy.userName"}],inline:0}}]}," ",{t:7,e:"div",a:{class:"settings__row"},f:[{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"proxy.userPassword"}],inline:0}}]}]}]}]},data(){return{STRINGS:st,proxyEnabled:{id:"settings-update-program-proxy-enabled",label:u(st.useSpecificProxy),track:{subject:"Use proxy"},load:this.loadProxyEnabled.bind(this),change:this.changeProxyEnabled.bind(this)},proxy:{type:{id:"settings-update-program-proxy-type",label:u(st.proxyType),load:this.loadProxyProp.bind(this,"type"),change:this.changeProxyProp.bind(this,"type"),options:[{label:u(st.proxyTypeHttp),value:"http"},{label:u(st.proxyTypeSocks4),value:"socks4"}]},address:{id:"settings-update-program-proxy-address",label:u(st.proxyAddress),load:this.loadProxyProp.bind(this,"address"),change:this.changeProxyProp.bind(this,"address")},port:{id:"settings-update-program-proxy-port",label:u(st.proxyPort),load:this.loadProxyProp.bind(this,"port"),change:this.changeProxyProp.bind(this,"port"),regex:/\d+/},authorization:{id:"settings-update-program-proxy-authorization",label:u(st.proxyAuthentication),load:this.loadProxyProp.bind(this,"authorization"),change:this.changeProxyProp.bind(this,"authorization"),options:[{label:u(st.proxyAuthenticationNo),value:"none"},{label:u(st.proxyAuthenticationBasic),value:"basic"},{label:u(st.proxyAuthenticationNtlm),value:"ntlm"}]},userName:{id:"settings-update-program-proxy-userName",label:u(st.proxyUsername),load:this.loadProxyProp.bind(this,"userName"),change:this.changeProxyProp.bind(this,"userName")},userPassword:{id:"settings-update-program-proxy-userPassword",label:u(st.proxyPassword),load:this.loadProxyProp.bind(this,"userPassword"),change:this.changeProxyProp.bind(this,"userPassword"),type:"password"}}}},oninit(){this.observe("proxy.type.storedValue",(e=>{for(const t in this.get("proxy"))"port"===t&&void 0===this.proxyData.values.port?this.set("proxy.port.disabled",!0):this.set("proxy."+t+".disabled","none"===e)}),{init:!1})},loadProxyEnabled(){return this.loadProxyProp("type").then((e=>({locked:e.locked,value:"none"!==e.value})))},changeProxyEnabled(e){const s=e?"http":"none";return this.changeProxyProp("type",s).then((()=>{this.set("proxy.type.storedValue",s),t("app.settings.ApplySettings")}))},loadProxyProp(e){return this.loadProxy().then((t=>({locked:t.locked,value:t.values[e]})))},changeProxyProp(e,s){return this.proxyData.values[e]=s,t("app.settings.Set",{name:"proxy://Proxy/Common/Proxy",value:this.proxyData.values})},loadProxy(){return this.loadProxyPromise||(this.loadProxyPromise=t("app.settings.Get",{name:"proxy://Proxy/Common/Proxy"}).then((e=>(this.proxyData={values:e.value,locked:e.locked},this.proxyData))).catch((e=>{tt.error("loading proxy failed",e),delete this.loadProxyPromise}))),this.loadProxyPromise}}),it=Fe,ot={program:"settings.update.program",programUpToDate:"settings.update.programUpToDate",programOutdated:"settings.update.programOutdated",programUpdateChecking:"settings.update.programUpdateChecking",programUpdateDownloading:"settings.update.programUpdateDownloading",programUpdateInstalling:"settings.update.programUpdateInstalling",updateFailed:"settings.update.updateFailed",updateFailedSSE3:"settings.update.error.sse3.title",updateFailedSSE3link:"settings.update.error.sse3.link",releaseDateWas:"settings.update.releaseDateWas",version:"settings.update.versionShort",build:"settings.update.build",checkForUpdates:"settings.update.checkForUpdates",automaticUpdate:"settings.update.program.automaticUpdate",askWhenUpdateAvailable:"settings.update.program.askWhenUpdateAvailable",askWhenUpdateDownloaded:"settings.update.program.askWhenUpdateDownloaded",manualUpdate:"settings.update.program.manualUpdate",moreOptions:"settings.moreOptions",lessOptions:"settings.lessOptions",restartNow:"settings.restartNow",restartNeededDesc:"settings.restartNeeded.desc"};function rt(){return{version:{id:"settings-update-program-version",search:ot.version},build:{id:"settings-update-program-build",search:ot.build},checkForUpdatesBtn:{id:"settings-update-program-checkForUpdates",label:u(ot.checkForUpdates),search:{title:ot.checkForUpdates,others:[ot.automaticUpdate,ot.askWhenUpdateDownloaded,ot.askWhenUpdateAvailable,ot.manualUpdate],napiEvent:"settings.update.showProgramUpdate"}},programUpdate:{id:"settings-update-program-update",track:{subject:"Program update"},path:"avcfg://settings/Common/ProgramUpdate",options:[{label:u(ot.automaticUpdate),value:"Auto"},{label:u(ot.askWhenUpdateDownloaded),value:"Download"},{label:u(ot.askWhenUpdateAvailable),value:"Ask"},{label:u(ot.manualUpdate),value:"Manual"}]}}}const lt=x.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"settings__row"},f:[{t:7,e:"div",a:{class:"stg_update__row"},f:[{t:4,f:[{t:7,e:"kin-icon",a:{name:["icon-s-status-",{t:2,r:"programUpdateIcon.name"}],class:["settings__icon color-",{t:2,r:"programUpdateIcon.color"}," -text"],size:"24"}}," ",{t:7,e:"div",a:{class:"settings__indent"},f:[{t:4,f:[{t:7,e:"h4",a:{class:"h4 -margins"},f:[{t:3,x:{r:["nls","STRINGS.programUpToDate"],s:"_0(_1)"}}]}],n:50,x:{r:["programUpdateState","UPDATE_STATES.updated","windowsUpdateNotInstalled"],s:"_0===_1&&!_2"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["programUpdateState","UPDATE_STATES.failed"],s:"_0===_1"},f:[{t:7,e:"h4",a:{class:"h4 color-critical -text -margins"},f:[{t:3,x:{r:["nls","STRINGS.updateFailed"],s:"_0(_1)"}}]}]},{t:4,n:50,x:{r:["UPDATE_STATES.failed","programUpdateState","UPDATE_STATES.errorSSE3"],s:"(!(_1===_0))&&(_1===_2)"},f:[" ",{t:7,e:"h4",a:{class:"h4 color-critical -text -margins"},f:[{t:2,x:{r:["STRINGS.updateFailedSSE3","nls","productStringId"],s:"_1(_0,_1(_2))"}}," ",{t:7,e:"a",a:{class:"a"},v:{click:"openUrl"},f:[{t:2,x:{r:["nls","STRINGS.updateFailedSSE3link"],s:"_0(_1)"}}]}]}]},{t:4,n:50,x:{r:["UPDATE_STATES.failed","programUpdateState","UPDATE_STATES.errorSSE3"],s:"(!(_1===_0))&&(!(_1===_2))"},f:[" ",{t:7,e:"h4",a:{class:"h4 color-critical -text -margins"},f:[{t:3,x:{r:["nls","STRINGS.programOutdated"],s:"_0(_1)"}}]}]}],x:{r:["programUpdateState","UPDATE_STATES.updated","windowsUpdateNotInstalled"],s:"_0===_1&&!_2"}}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:3,x:{r:["nls","STRINGS.releaseDateWas","moment","programInfo.installedTime"],s:'_0(_1,_2(_3*1000).format("LLL"))'}},{t:7,e:"br"}," (",{t:4,f:[{t:7,e:"span",a:{id:[{t:2,r:"properties.version.id"}]},f:[{t:3,x:{r:["nls","STRINGS.version","programInfo.installedVersion"],s:"_0(_1,_2)"}}]},"- "],n:50,x:{r:["icarusSetup"],s:"!_0"}},{t:7,e:"span",a:{id:[{t:2,r:"properties.build.id"}]},f:[{t:3,x:{r:["nls","STRINGS.build","programInfo.installedBuild"],s:"_0(_1,_2)"}}]},")"]}]}],n:50,x:{r:["UPDATE_STATES.updated","UPDATE_STATES.outdated","UPDATE_STATES.failed","programUpdateState","UPDATE_STATES.errorSSE3"],s:"_3===_0||_3===_1||_3===_2||_3===_4"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["programUpdateState","UPDATE_STATES.updating"],s:"_0===_1"},f:[{t:7,e:"kin-loading",a:{size:"small",class:"settings__icon"}}," ",{t:7,e:"div",a:{class:"settings__indent"},f:[{t:4,f:[{t:7,e:"h4",a:{class:"h4 -margins"},f:[{t:3,x:{r:["nls","STRINGS.programUpdateInstalling"],s:"_0(_1)"}}]}," ",{t:7,e:"kin-progress",a:{percentage:[{t:2,r:"programUpdateProgress"}],size:"small"}}],n:50,r:"programUpdateProgress"},{t:4,n:51,f:[{t:7,e:"h4",a:{class:"h4 -margins"},f:[{t:3,x:{r:["nls","STRINGS.programUpdateChecking"],s:"_0(_1)"}}]}," ",{t:7,e:"kin-progress",a:{percentage:"-1",size:"small"}}],r:"programUpdateProgress"}]}]}],x:{r:["UPDATE_STATES.updated","UPDATE_STATES.outdated","UPDATE_STATES.failed","programUpdateState","UPDATE_STATES.errorSSE3"],s:"_3===_0||_3===_1||_3===_2||_3===_4"}}]}," ",{t:7,e:"div",a:{class:"settings__indent settings__row"},f:[{t:4,f:[{t:7,e:"p",a:{class:"p g-margin-bottom--5"},f:[{t:3,x:{r:["nls","STRINGS.restartNeededDesc"],s:"_0(_1)"}}]}," ",{t:7,e:"kin-button",a:{"kin-disabled":[{t:2,r:"runningUpdateTask"}],type:"secondary"},v:{click:"restartNow"},f:[{t:3,x:{r:["nls","STRINGS.restartNow"],s:"_0(_1)"}}]}],n:50,r:"restartNeeded"},{t:4,n:51,f:[{t:7,e:"kin-button",a:{"kin-disabled":[{t:2,r:"runningUpdateTask"}],id:[{t:2,r:"properties.checkForUpdatesBtn.id"}],type:"secondary","aria-label":[{t:2,r:"properties.checkForUpdatesBtn.label"}," - ",{t:2,x:{r:["nls","STRINGS.program"],s:"_0(_1)"}}]},v:{click:"doProgramUpdate"},f:[{t:2,r:"properties.checkForUpdatesBtn.label"}]}," ",{t:7,e:"button",a:{class:"a -icon-right g-margin-left--10"},v:{click:"toggleProgramUpdate"},f:[{t:4,f:[{t:3,x:{r:["nls","STRINGS.lessOptions"],s:"_0(_1)"}}],n:50,r:"showProgramUpdate"},{t:4,n:51,f:[{t:3,x:{r:["nls","STRINGS.moreOptions"],s:"_0(_1)"}}],r:"showProgramUpdate"}," ",{t:7,e:"Icon",a:{name:"chevron-down",cssCls:[{t:2,x:{r:["showProgramUpdate"],s:'_0?"g-rotate--180":""'}}]}}]}],r:"restartNeeded"}]}]}," ",{t:7,e:"Expander",a:{expanded:[{t:2,r:"showProgramUpdate"}]},f:[{t:7,e:"SettingsRadio",a:{property:[{t:2,r:"properties.programUpdate"}]}}," ",{t:7,e:"Proxy"}]}],n:50,r:"programLoaded"}]},components:{Expander:Ye,Proxy:at},data:()=>({STRINGS:ot,UPDATE_STATES:ze,properties:rt(),icarusSetup:!1,restartNeeded:null,programLoaded:!1,sessionId:null,programInfo:{installedVersion:null,installedTime:null,installedBuild:null,latestVersion:null},programUpdateState:null,programUpdateProgress:null,showProgramUpdate:!1,runningUpdateTask:null,productStringId:m.getProductStringId(),url:"avg"===(_.getBrand()||"avast")?"https://support.avg.com/SupportArticleView?urlname=Install-AVG-AntiVirus-Free&retUrl=support_Antivirus":"https://support.avast.com/article/Install-Free-Antivirus",windowsUpdateNotInstalled:null}),oninit(){this.programUpdater=new Je({setup:this.get("icarusSetup")?je:Be,updater:it}),this.programUpdater.on("state",(e=>this.setState(e))),this.programUpdater.getState(),this.observe("checkRunningUpdate",(e=>{const t={status:null,progress:null};e&&e.task===it&&([qe.starting,qe.progress,qe.running].includes(e.status)&&(this.set("programUpdateState",ze.updating),t.status=e.status),e.progress&&(this.set("programUpdateProgress",e.progress),t.progress=e.progress),this.programUpdater.startWatchingProgress(e.sessionId?e.sessionId:null,t),this.set("checkRunningUpdate",null))})),this.on("doProgramUpdate",(()=>this.programUpdater.doUpdate())),this.on("toggleProgramUpdate",this.toggle.bind(this,"showProgramUpdate")),this.on("restartNow",(()=>{t("app.avService.FixIssue",{issueId:"reboot_required"})})),this.on("openUrl",(()=>s.browse(this.get("url"))))},onteardown(){this.programUpdater.destroy()},setState(e){e&&(e.info&&(this.set("programInfo",e.info),this.get("programLoaded")||(this.fire("loaded"),this.set("programLoaded",!0))),(!e.initState||e.initState&&this.get("programUpdateState")!==ze.updating)&&e.updateState&&e.updateState!==this.get("programUpdateState")&&(e.initState||this.set("runningUpdateTask",e.updateState===ze.updating),this.setProgramUpdateIcon(e.updateState),this.set("programUpdateState",e.updateState)),e.progress&&this.set("programUpdateProgress",e.progress),e.updateState!==ze.updating&&this.set("restartNeeded",We()),!e.initState&&e.updateState===ze.updated&&this.get("runningUpdateTask")&&this.set("runningUpdateTask",!1))},setProgramUpdateIcon(e){this.set("programUpdateIcon",He(e,this.get("windowsUpdateNotInstalled")))}}),ct=x.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"settings__row"},f:[{t:7,e:"div",a:{class:"stg_update__row"},f:[{t:7,e:"kin-icon",a:{name:"icon-s-status-attention",class:"settings__icon color-critical -text",size:"24"}}," ",{t:7,e:"div",a:{class:"settings__indent"},f:[{t:7,e:"h4",a:{class:"h4 color-critical -text -margins"},f:[{t:2,x:{r:["nls"],s:'_0("settings.update.winUpdate.title")'}}]}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:2,x:{r:["nls","productStringId"],s:'_0("settings.update.winUpdate.desc",_0(_1))'}}," ",{t:7,e:"a",a:{class:"a"},v:{click:"openUrl"},f:[{t:2,x:{r:["nls"],s:'_0("global.learnMore")'}}]}]}]}]}]}],n:50,r:"updateNotInstalled"}]},data:()=>({updateNotInstalled:!1,productStringId:m.getProductStringId(),url:"https://support.microsoft.com/en-us/topic/2019-sha-2-code-signing-support-requirement-for-windows-and-wsus-64d1c82d-31ee-c273-3930-69a4cde8e64f"}),oninit(){this.on("openUrl",(()=>s.browse(this.get("url")))),this.checkWindowsUpdate()},checkWindowsUpdate(){return t("app.settings.Get",{name:"avcfg://settings/Common/KB3033929NotInstalled"}).then((e=>{this.set("updateNotInstalled","1"==e.value)})).catch((()=>{this.set("updateNotInstalled",!1)})).finally((()=>{this.fire("updateNotInstalled",this.get("updateNotInstalled"))}))}}),pt="settings.update";const dt=x.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"banner -simple g-margin-bottom--30"},f:[{t:7,e:"kin-icon",a:{name:"icon-m-action-download",size:"16",class:"banner__icon color-ok -text"}}," ",{t:7,e:"h4",a:{class:"h4 -text"},f:[{t:3,x:{r:["nls"],s:'_0("settings.update.upgrade2prem.title")'}}]}," ",{t:7,e:"p",a:{class:"text -small -margins"},f:[{t:3,x:{r:["nls"],s:'_0("settings.update.upgrade2prem.desc")'}}]}," ",{t:7,e:"kin-button",v:{click:{m:"showUpgradeModal",a:{r:[],s:"[]"}}},f:[{t:3,x:{r:["nls"],s:'_0("global.updateNow")'}}]}]}],n:50,r:"showUpgrade"},{t:7,e:"SettingsContainer",a:{title:[{t:2,r:"title"}]},f:[{t:4,f:[{t:7,e:"kin-loading",a:{fullscreen:"true"}}],n:50,x:{r:["programLoaded","vpsLoaded"],s:"!_0&&!_1"}}," ",{t:4,f:[{t:7,e:"Vps",a:{runningUpdateTask:[{t:2,r:"runningUpdateTask"}],icarusSetup:[{t:2,r:"icarusSetup"}],sessionId:[{t:2,r:"sessionId"}]},m:[{t:2,r:"checkRunningUpdate"}]}," ",{t:7,e:"Program",a:{runningUpdateTask:[{t:2,r:"runningUpdateTask"}],windowsUpdateNotInstalled:[{t:2,r:"windowsUpdateNotInstalled"}],icarusSetup:[{t:2,r:"icarusSetup"}],sessionId:[{t:2,r:"sessionId"}]},m:[{t:2,r:"checkRunningUpdate"}]}],n:50,r:"setupLoaded"}," ",{t:7,e:"WindowsUpdate"}]}," ",{t:4,f:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls"],s:'_0("settings.update.upgrade2prem.modal.title")'}}]},f:[{t:7,e:"div",a:{class:"modal"},f:[{t:7,e:"p",a:{class:"text -small"},f:[{t:3,x:{r:["nls"],s:'_0("settings.update.upgrade2prem.desc")'}}]}]}," ",{t:7,e:"div",a:{class:"modal__footer"},f:[{t:7,e:"kin-button",v:{click:{m:"upgrade2premium",a:{r:[],s:"[]"}}},f:[{t:3,x:{r:["nls"],s:'_0("global.updateNow")'}}]}," ",{t:7,e:"kin-button",a:{type:"secondary"},v:{click:"Modal.close"},f:[{t:3,x:{r:["nls"],s:'_0("settings.update.doItLater")'}}]}]}]}],n:50,r:"showUpgradeModal"}]},css:".stg_update__row {\n min-height: 6.5rem;\n border-bottom: solid 1px transparent;\n}\n.stg_update__form {\n margin-top: 1rem;\n}\n.stg_update__form .input__label.-inline {\n width: 20%;\n}\n.stg_update__form .input {\n width: 79%;\n}\n",router:new r,components:{Vps:et,Program:lt,WindowsUpdate:ct},data:()=>({title:u(pt),setupLoaded:!1,programLoaded:!1,vpsLoaded:!1,icarusSetup:!1,sessionId:null,runningUpdateTask:!1,checkRunningUpdate:null,showUpgrade:null,windowsUpdateNotInstalled:null}),oninit(){this.checkSetupType(),this.on("Vps.loaded",(()=>{this.set("vpsLoaded",!0)})),this.on("Program.loaded",(()=>{this.set("programLoaded",!0)})),this.on("WindowsUpdate.updateNotInstalled",(e=>{this.set("windowsUpdateNotInstalled",e)})),this.router.on("/",(()=>{})),this.router.on("/cpp",(()=>{location.hash=location.hash.replace("/cpp",""),this.checkSetupType()})),this.vpsEventerOff=e.on("setup.onStatusChanged.sessionStarted",(e=>{this.checkRunningUpdate()})),["suite","pro_av"].includes(_.getProduct())&&(this.on("Modal.close",(()=>{this.set("showUpgradeModal",!1)})),this.set("showUpgrade",!0))},onteardown(){this.vpsEventerOff&&this.vpsEventerOff(),this.vpsEventerOff=void 0,this.router.removeAllListeners()},checkSetupType(){t("app.setup.GetType").then((e=>{e.name===je&&this.set("icarusSetup",!0)})).finally((()=>{this.set("setupLoaded",!0),this.checkRunningUpdate()}))},checkRunningUpdate(){this.get("icarusSetup")?t("app.icarus.GetStatus").then((e=>{if(e.sessions){this.set("runningUpdateTask",!0);const t=e.sessions[0];this.set("checkRunningUpdate",{task:t.task,sessionId:t.sessionId,status:t.status||null,progress:t.progress||null})}})):t("app.setup.GetStatus").then((e=>{this.set("runningUpdateTask",!!e.task),this.set("checkRunningUpdate",{task:e.task})}))},showUpgradeModal(){this.set("showUpgradeModal",!0)},upgrade2premium(){t("app.setup.ChangeProduct",{edition:12}),this.set("showUpgradeModal",!1)}}),ut={title:"settings.notifications",silentMode:"settings.notifications.silentMode.label",showIcon:"settings.notifications.showIcon.label",animateIcon:"settings.notifications.animateIcon.label",enableSounds:"settings.notifications.enableSounds.label",externalDriveScanOffer:"settings.notifications.externalDriveScanOffer.label",hidePopupsDuringStreaming:"settings.notifications.hidePopupsDuringStreaming.label"};function gt(){return(m.supportedSince("21.4")?t("GetIPMParam",["p_osv"]):Promise.resolve()).then((e=>{const t=e&&parseFloat(e[0])>=10,s={silentMode:{id:"settings-notifications-silentMode",label:u(ut.silentMode),track:{subject:"Silent mode"},path:"avcfg://settings/Common/PropertySilent",search:ut.silentMode},showTaskbarIcon:{id:"settings-notifications-showIcon",label:u(ut.showIcon),track:{subject:"Show icon"},path:"avcfg://settings/AAVM/ShowTaskbarIcon",applyOnChange:!0,search:ut.showIcon},animateIcon:{id:"settings-notifications-animateIcon",label:u(ut.animateIcon),track:{subject:"Animate icon"},path:"avcfg://settings/UserInterface/AnimateIcon",search:ut.animateIcon},soundsEnabled:{id:"settings-notifications-enableSounds",label:u(ut.enableSounds),track:{subject:"Enable sounds"},path:"avcfg://settings/Common/SoundsEnabled",search:ut.enableSounds,changeEvent:"soundsEnabled"},externalDriveScanOffer:{id:"settings-notifications-externalDriveScanOffer",label:u(ut.externalDriveScanOffer),track:{subject:"Offer to scan external drives"},path:"avcfg://settings/Common/ExternalDriveScanOffer",search:ut.externalDriveScanOffer}};return m.supportedSince("21.4")&&t&&(s.hidePopupsDuringStreaming={id:"settings-hidePopupsDuringStreaming",label:u(ut.hidePopupsDuringStreaming),track:{subject:"Hide popups during streaming"},path:"avcfg://settings/UserInterface/streaming",search:ut.hidePopupsDuringStreaming}),s}))}const ht=x.extend({template:{v:3,t:[{t:7,e:"SettingsContainer",a:{title:[{t:3,x:{r:["nls","STRINGS.title"],s:"_0(_1)"}}],loaded:[{t:2,r:"loaded"}]},f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.silentMode"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.showTaskbarIcon"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.animateIcon"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.soundsEnabled"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.externalDriveScanOffer"}]}}," ",{t:4,f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.hidePopupsDuringStreaming"}]}}],n:50,r:"properties.hidePopupsDuringStreaming"}]}]},data:()=>({STRINGS:ut,loaded:!1,properties:null}),oninit(){gt().then((e=>{this.set({properties:e,loaded:!0})}))}}),ft={title:"settings.exceptions",desc:"settings.exceptions.desc",descAdvanced:"settings.exceptions.descAdvanced",addException:"settings.exceptions.addException",addAdvanceException:"settings.exceptions.addAdvanced.btn",editAdvanceException:"settings.exceptions.editAdvanced.desc",addExceptionDesc:"settings.exceptions.addException.desc",newExceptionPlaceholder:"settings.exceptions.newException.placeholder",error:{auto:"settings.exceptions.newException.error.invalid",file:"settings.exceptions.newException.error.file",url:"settings.exceptions.newException.error.url",cmdLine:"settings.exceptions.processNameException.error.invalid",duplicity:"settings.exceptions.newException.error.duplicity"},exceptionType:{file:"settings.exceptions.type.file",url:"settings.exceptions.type.url",cmdLine:"settings.exceptions.type.cmdLine"},exceptionsSubType:{all:"settings.exceptions.subType.all",scan:"settings.exceptions.subType.scan",idp:"settings.exceptions.subType.idp",shield:"settings.exceptions.subType.shield",cybercapture:"settings.exceptions.subType.cybercapture",hardened:"settings.exceptions.subType.hardened"},advanceModal:{desc:"settings.exceptions.addAdvanced.select",cutOff:"settings.exceptions.tooltip.cutOff",file:{btn:"settings.exceptions.btn.file",inputDesc:"settings.exceptions.input.file",tooltip:{title:"settings.exceptions.tooltip.file.title",desc:"settings.exceptions.tooltip.file.desc"}},url:{btn:"settings.exceptions.btn.url",inputDesc:"settings.exceptions.input.url"},cmdLine:{btn:"settings.exceptions.btn.cmdLine",inputDesc:"settings.exceptions.input.cmdLine",inputParamsDesc:"settings.exceptions.input.params.cmdLine"}},noExceptions:"settings.exceptions.noExceptions",submit:"settings.exceptions.submit",save:"settings.exceptions.saveChanges",cancel:"global.cancel",browse:"global.browse"};var mt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},bt={exports:{}};!function(e,t){var s="__lodash_hash_undefined__",n=1/0,a=9007199254740991,i="[object Arguments]",o="[object Array]",r="[object Boolean]",l="[object Date]",c="[object Error]",p="[object Function]",d="[object Map]",u="[object Number]",g="[object Object]",h="[object Promise]",f="[object RegExp]",m="[object Set]",b="[object String]",_="[object Symbol]",v="[object WeakMap]",y="[object ArrayBuffer]",S="[object DataView]",x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k=/^\w*$/,w=/^\./,T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/\\(\\)?/g,I=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,E={};E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[i]=E[o]=E[y]=E[r]=E[S]=E[l]=E[c]=E[p]=E[d]=E[u]=E[g]=E[f]=E[m]=E[b]=E[v]=!1;var C="object"==typeof mt&&mt&&mt.Object===Object&&mt,$="object"==typeof self&&self&&self.Object===Object&&self,L=C||$||Function("return this")(),N=t&&!t.nodeType&&t,R=N&&e&&!e.nodeType&&e,U=R&&R.exports===N&&C.process,D=function(){try{return U&&U.binding("util")}catch(e){}}(),M=D&&D.isTypedArray;function O(e,t,s){switch(s.length){case 0:return e.call(t);case 1:return e.call(t,s[0]);case 2:return e.call(t,s[0],s[1]);case 3:return e.call(t,s[0],s[1],s[2])}return e.apply(t,s)}function G(e,t){return!!(e?e.length:0)&&function(e,t,s){if(t!=t)return function(e,t,s,n){var a=e.length,i=s+(n?1:-1);for(;n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}(e,F,s);var n=s-1,a=e.length;for(;++n<a;)if(e[n]===t)return n;return-1}(e,t,0)>-1}function j(e,t,s){for(var n=-1,a=e?e.length:0;++n<a;)if(s(t,e[n]))return!0;return!1}function B(e,t){for(var s=-1,n=t.length,a=e.length;++s<n;)e[a+s]=t[s];return e}function V(e,t){for(var s=-1,n=e?e.length:0;++s<n;)if(t(e[s],s,e))return!0;return!1}function F(e){return e!=e}function z(e,t){return e.has(t)}function q(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(s){}return t}function W(e){var t=-1,s=Array(e.size);return e.forEach((function(e,n){s[++t]=[n,e]})),s}function H(e){var t=-1,s=Array(e.size);return e.forEach((function(e){s[++t]=e})),s}var Y,K,J,X=Array.prototype,Z=Function.prototype,Q=Object.prototype,ee=L["__core-js_shared__"],te=(Y=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"",se=Z.toString,ne=Q.hasOwnProperty,ae=Q.toString,ie=RegExp("^"+se.call(ne).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oe=L.Symbol,re=L.Uint8Array,le=Q.propertyIsEnumerable,ce=X.splice,pe=oe?oe.isConcatSpreadable:void 0,de=(K=Object.keys,J=Object,function(e){return K(J(e))}),ue=Math.max,ge=qe(L,"DataView"),he=qe(L,"Map"),fe=qe(L,"Promise"),me=qe(L,"Set"),be=qe(L,"WeakMap"),_e=qe(Object,"create"),ve=et(ge),ye=et(he),Se=et(fe),xe=et(me),ke=et(be),we=oe?oe.prototype:void 0,Te=we?we.valueOf:void 0,Ae=we?we.toString:void 0;function Ie(e){var t=-1,s=e?e.length:0;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}function Pe(e){var t=-1,s=e?e.length:0;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}function Ee(e){var t=-1,s=e?e.length:0;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}function Ce(e){var t=-1,s=e?e.length:0;for(this.__data__=new Ee;++t<s;)this.add(e[t])}function $e(e){this.__data__=new Pe(e)}function Le(e,t){var s=it(e)||at(e)?function(e,t){for(var s=-1,n=Array(e);++s<e;)n[s]=t(s);return n}(e.length,String):[],n=s.length,a=!!n;for(var i in e)!t&&!ne.call(e,i)||a&&("length"==i||Ye(i,n))||s.push(i);return s}function Ne(e,t){for(var s=e.length;s--;)if(nt(e[s][0],t))return s;return-1}function Re(e,t,s,n,a){var i=-1,o=e.length;for(s||(s=He),a||(a=[]);++i<o;){var r=e[i];t>0&&s(r)?t>1?Re(r,t-1,s,n,a):B(a,r):n||(a[a.length]=r)}return a}function Ue(e,t){for(var s=0,n=(t=Ke(t,e)?[t]:Be(t)).length;null!=e&&s<n;)e=e[Qe(t[s++])];return s&&s==n?e:void 0}function De(e,t){return null!=e&&t in Object(e)}function Me(e,t,s,n,a){return e===t||(null==e||null==t||!pt(e)&&!dt(t)?e!=e&&t!=t:function(e,t,s,n,a,p){var h=it(e),v=it(t),x=o,k=o;h||(x=(x=We(e))==i?g:x);v||(k=(k=We(t))==i?g:k);var w=x==g&&!q(e),T=k==g&&!q(t),A=x==k;if(A&&!w)return p||(p=new $e),h||gt(e)?Fe(e,t,s,n,a,p):function(e,t,s,n,a,i,o){switch(s){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!n(new re(e),new re(t)));case r:case l:case u:return nt(+e,+t);case c:return e.name==t.name&&e.message==t.message;case f:case b:return e==t+"";case d:var p=W;case m:var g=2&i;if(p||(p=H),e.size!=t.size&&!g)return!1;var h=o.get(e);if(h)return h==t;i|=1,o.set(e,t);var v=Fe(p(e),p(t),n,a,i,o);return o.delete(e),v;case _:if(Te)return Te.call(e)==Te.call(t)}return!1}(e,t,x,s,n,a,p);if(!(2&a)){var I=w&&ne.call(e,"__wrapped__"),P=T&&ne.call(t,"__wrapped__");if(I||P){var E=I?e.value():e,C=P?t.value():t;return p||(p=new $e),s(E,C,n,a,p)}}if(!A)return!1;return p||(p=new $e),function(e,t,s,n,a,i){var o=2&a,r=ht(e),l=r.length,c=ht(t).length;if(l!=c&&!o)return!1;var p=l;for(;p--;){var d=r[p];if(!(o?d in t:ne.call(t,d)))return!1}var u=i.get(e);if(u&&i.get(t))return u==t;var g=!0;i.set(e,t),i.set(t,e);var h=o;for(;++p<l;){var f=e[d=r[p]],m=t[d];if(n)var b=o?n(m,f,d,t,e,i):n(f,m,d,e,t,i);if(!(void 0===b?f===m||s(f,m,n,a,i):b)){g=!1;break}h||(h="constructor"==d)}if(g&&!h){var _=e.constructor,v=t.constructor;_==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof v&&v instanceof v||(g=!1)}return i.delete(e),i.delete(t),g}(e,t,s,n,a,p)}(e,t,Me,s,n,a))}function Oe(e){return!(!pt(e)||function(e){return!!te&&te in e}(e))&&(lt(e)||q(e)?ie:I).test(et(e))}function Ge(e){return"function"==typeof e?e:null==e?ft:"object"==typeof e?it(e)?function(e,t){if(Ke(e)&&Je(t))return Xe(Qe(e),t);return function(s){var n=function(e,t,s){var n=null==e?void 0:Ue(e,t);return void 0===n?s:n}(s,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,s){t=Ke(t,e)?[t]:Be(t);var n,a=-1,i=t.length;for(;++a<i;){var o=Qe(t[a]);if(!(n=null!=e&&s(e,o)))break;e=e[o]}if(n)return n;return!!(i=e?e.length:0)&&ct(i)&&Ye(o,i)&&(it(e)||at(e))}(e,t,De)}(s,e):Me(t,n,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=ht(e),s=t.length;for(;s--;){var n=t[s],a=e[n];t[s]=[n,a,Je(a)]}return t}(e);if(1==t.length&&t[0][2])return Xe(t[0][0],t[0][1]);return function(s){return s===e||function(e,t,s,n){var a=s.length,i=a,o=!n;if(null==e)return!i;for(e=Object(e);a--;){var r=s[a];if(o&&r[2]?r[1]!==e[r[0]]:!(r[0]in e))return!1}for(;++a<i;){var l=(r=s[a])[0],c=e[l],p=r[1];if(o&&r[2]){if(void 0===c&&!(l in e))return!1}else{var d=new $e;if(n)var u=n(c,p,l,e,t,d);if(!(void 0===u?Me(p,c,n,3,d):u))return!1}}return!0}(s,e,t)}}(e):Ke(t=e)?(s=Qe(t),function(e){return null==e?void 0:e[s]}):function(e){return function(t){return Ue(t,e)}}(t);var t,s}function je(e){if(s=(t=e)&&t.constructor,n="function"==typeof s&&s.prototype||Q,t!==n)return de(e);var t,s,n,a=[];for(var i in Object(e))ne.call(e,i)&&"constructor"!=i&&a.push(i);return a}function Be(e){return it(e)?e:Ze(e)}Ie.prototype.clear=function(){this.__data__=_e?_e(null):{}},Ie.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ie.prototype.get=function(e){var t=this.__data__;if(_e){var n=t[e];return n===s?void 0:n}return ne.call(t,e)?t[e]:void 0},Ie.prototype.has=function(e){var t=this.__data__;return _e?void 0!==t[e]:ne.call(t,e)},Ie.prototype.set=function(e,t){return this.__data__[e]=_e&&void 0===t?s:t,this},Pe.prototype.clear=function(){this.__data__=[]},Pe.prototype.delete=function(e){var t=this.__data__,s=Ne(t,e);return!(s<0)&&(s==t.length-1?t.pop():ce.call(t,s,1),!0)},Pe.prototype.get=function(e){var t=this.__data__,s=Ne(t,e);return s<0?void 0:t[s][1]},Pe.prototype.has=function(e){return Ne(this.__data__,e)>-1},Pe.prototype.set=function(e,t){var s=this.__data__,n=Ne(s,e);return n<0?s.push([e,t]):s[n][1]=t,this},Ee.prototype.clear=function(){this.__data__={hash:new Ie,map:new(he||Pe),string:new Ie}},Ee.prototype.delete=function(e){return ze(this,e).delete(e)},Ee.prototype.get=function(e){return ze(this,e).get(e)},Ee.prototype.has=function(e){return ze(this,e).has(e)},Ee.prototype.set=function(e,t){return ze(this,e).set(e,t),this},Ce.prototype.add=Ce.prototype.push=function(e){return this.__data__.set(e,s),this},Ce.prototype.has=function(e){return this.__data__.has(e)},$e.prototype.clear=function(){this.__data__=new Pe},$e.prototype.delete=function(e){return this.__data__.delete(e)},$e.prototype.get=function(e){return this.__data__.get(e)},$e.prototype.has=function(e){return this.__data__.has(e)},$e.prototype.set=function(e,t){var s=this.__data__;if(s instanceof Pe){var n=s.__data__;if(!he||n.length<199)return n.push([e,t]),this;s=this.__data__=new Ee(n)}return s.set(e,t),this};var Ve=me&&1/H(new me([,-0]))[1]==n?function(e){return new me(e)}:function(){};function Fe(e,t,s,n,a,i){var o=2&a,r=e.length,l=t.length;if(r!=l&&!(o&&l>r))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var p=-1,d=!0,u=1&a?new Ce:void 0;for(i.set(e,t),i.set(t,e);++p<r;){var g=e[p],h=t[p];if(n)var f=o?n(h,g,p,t,e,i):n(g,h,p,e,t,i);if(void 0!==f){if(f)continue;d=!1;break}if(u){if(!V(t,(function(e,t){if(!u.has(t)&&(g===e||s(g,e,n,a,i)))return u.add(t)}))){d=!1;break}}else if(g!==h&&!s(g,h,n,a,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function ze(e,t){var s,n,a=e.__data__;return("string"==(n=typeof(s=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==s:null===s)?a["string"==typeof t?"string":"hash"]:a.map}function qe(e,t){var s=function(e,t){return null==e?void 0:e[t]}(e,t);return Oe(s)?s:void 0}var We=function(e){return ae.call(e)};function He(e){return it(e)||at(e)||!!(pe&&e&&e[pe])}function Ye(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function Ke(e,t){if(it(e))return!1;var s=typeof e;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=e&&!ut(e))||(k.test(e)||!x.test(e)||null!=t&&e in Object(t))}function Je(e){return e==e&&!pt(e)}function Xe(e,t){return function(s){return null!=s&&(s[e]===t&&(void 0!==t||e in Object(s)))}}(ge&&We(new ge(new ArrayBuffer(1)))!=S||he&&We(new he)!=d||fe&&We(fe.resolve())!=h||me&&We(new me)!=m||be&&We(new be)!=v)&&(We=function(e){var t=ae.call(e),s=t==g?e.constructor:void 0,n=s?et(s):void 0;if(n)switch(n){case ve:return S;case ye:return d;case Se:return h;case xe:return m;case ke:return v}return t});var Ze=st((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(ut(e))return Ae?Ae.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var s=[];return w.test(e)&&s.push(""),e.replace(T,(function(e,t,n,a){s.push(n?a.replace(A,"$1"):t||e)})),s}));function Qe(e){if("string"==typeof e||ut(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function et(e){if(null!=e){try{return se.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var tt=function(e,t){return t=ue(void 0===t?e.length-1:t,0),function(){for(var s=arguments,n=-1,a=ue(s.length-t,0),i=Array(a);++n<a;)i[n]=s[t+n];n=-1;for(var o=Array(t+1);++n<t;)o[n]=s[n];return o[t]=i,O(e,this,o)}}((function(e){var t,s,n=(s=(t=e)?t.length:0)?t[s-1]:void 0;return rt(n)&&(n=void 0),function(e,t,s){var n=-1,a=G,i=e.length,o=!0,r=[],l=r;if(s)o=!1,a=j;else if(i>=200){var c=t?null:Ve(e);if(c)return H(c);o=!1,a=z,l=new Ce}else l=t?[]:r;e:for(;++n<i;){var p=e[n],d=t?t(p):p;if(p=s||0!==p?p:0,o&&d==d){for(var u=l.length;u--;)if(l[u]===d)continue e;t&&l.push(d),r.push(p)}else a(l,d,s)||(l!==r&&l.push(d),r.push(p))}return r}(Re(e,1,rt,!0),Ge(n))}));function st(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var s=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=s.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return s.cache=i.set(a,o),o};return s.cache=new(st.Cache||Ee),s}function nt(e,t){return e===t||e!=e&&t!=t}function at(e){return rt(e)&&ne.call(e,"callee")&&(!le.call(e,"callee")||ae.call(e)==i)}st.Cache=Ee;var it=Array.isArray;function ot(e){return null!=e&&ct(e.length)&&!lt(e)}function rt(e){return dt(e)&&ot(e)}function lt(e){var t=pt(e)?ae.call(e):"";return t==p||"[object GeneratorFunction]"==t}function ct(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function pt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function dt(e){return!!e&&"object"==typeof e}function ut(e){return"symbol"==typeof e||dt(e)&&ae.call(e)==_}var gt=M?function(e){return function(t){return e(t)}}(M):function(e){return dt(e)&&ct(e.length)&&!!E[ae.call(e)]};function ht(e){return ot(e)?Le(e):je(e)}function ft(e){return e}e.exports=tt}(bt,bt.exports);const _t=bt.exports,vt="file",yt="customFile",St="shield",xt="scan",kt="idp",wt="hardened",Tt="cybercapture",At="url",It="cmdLine",Pt=[{path:"avcfg://exclusions/Global/ExcludeFiles",type:vt},{path:"avcfg://FileSystemShield/FileSystem/ScanExceptions",type:St},{path:"avcfg://exclusions/OnDemand/ExcludeFiles",type:xt},{path:"avcfg://exclusions/IDP/ExcludedFiles",type:kt},{path:"avcfg://exclusions/Global/ExcludeHashes",type:wt},{path:"avcfg://exclusions/Autosandbox/ExcludedFiles",type:Tt},{path:"avcfg://exclusions/Global/ExcludeUrls",type:At},{path:"avcfg://exclusions/Global/ExcludeCommandLine",type:It}],Et=/"/g,Ct=/(^\w:\\?|^\\{2}|\\)/,$t=/(".+?";\s*\+*\s*)*(".+?"s*){1}?/,Lt=/(.+\.)\w/;function Nt(e,t){return e?e.filter((e=>e.type===t)):[]}function Rt(e){return e.length?e.sort(((e,t)=>e.value<t.value?-1:e.value>t.value?1:void 0)):e}function Ut(e){const t=e.filter((e=>e.type===St||e.type===xt||e.type===kt||e.type===wt||e.type===Tt)),s={};t.forEach((e=>(e=>{const t=(e.type===St||e.type===xt||e.type===kt)&&e.type,n=(e.type===wt||e.type===Tt)&&e.type;s[e.value]?(t&&(s[e.value].fileSubType=[...s[e.value].fileSubType,t]),n&&(s[e.value].shieldSubType=[...s[e.value].shieldSubType,n])):s[e.value]={value:e.value,accessRights:e.accessRights,type:yt,fileSubType:t?[t]:[],shieldSubType:n?[n]:[]}})(e)));const n=[];for(const a in s)s[a]&&n.push(s[a]);return n}function Dt(e,t,s){if(!t)return e;const n=e.slice(-1);return n===s?e+"*":"*"!==n?e+`${s}*`:e}function Mt(e){if(!isNaN(+e)||"*"===e[e.length-1])return Promise.resolve(e);const s=e.includes("/")?"/":"\\";return t("app.utils.GetFileAttributes",e).then((t=>Dt(e,t.directory,s))).catch((()=>{const t=!e.split(s).pop().includes(".");return Dt(e,t,s)}))}function Ot(e){return/\s/.test(e)?`"${e}"`:e}function Gt(e,t,s){return e.every((e=>s&&e.value===s.value||e.value!==t))}function jt(e,t,s){const n=e.slice();return n[6]=t[s],n}function Bt(e,t,s){const n=e.slice();return n[9]=t[s],n}function Vt(e){let t,s,n,a,i,o,r;function l(e,t){return e[1].type===yt?zt:Ft}let c=l(e),p=c(e),d=e[1].accessRights&&Ht(e);return{c(){t=B("td"),s=B("kin-tooltip"),n=B("span"),n.innerHTML='<kin-icon name="icon-m-action-info" size="16"></kin-icon>',a=F(),i=B("div"),o=B("div"),p.c(),r=F(),d&&d.c(),H(n,"slot","tooltip-activator"),H(n,"class","secondary"),H(o,"class","stg_exceptions__flex_row svelte-jmkfow"),H(i,"slot","tooltip"),Y(s,"data-test","exceptions-row-tooltip"),H(t,"class","stg_exceptions__action svelte-jmkfow")},m(e,l){O(e,t,l),M(t,s),M(s,n),M(s,a),M(s,i),M(i,o),p.m(o,null),M(o,r),d&&d.m(o,null)},p(e,t){c===(c=l(e))&&p?p.p(e,t):(p.d(1),p=c(e),p&&(p.c(),p.m(o,r))),e[1].accessRights?d?d.p(e,t):(d=Ht(e),d.c(),d.m(o,null)):d&&(d.d(1),d=null)},d(e){e&&G(t),p.d(),d&&d.d()}}}function Ft(e){let t;return{c(){t=B("span"),t.textContent=`${u(ft.exceptionsSubType.all)}`,H(t,"data-test","exceptions-tooltip-all")},m(e,s){O(e,t,s)},p:I,d(e){e&&G(t)}}}function zt(e){let t,s,n=e[1].fileSubType,a=[];for(let r=0;r<n.length;r+=1)a[r]=qt(Bt(e,n,r));let i=e[1].shieldSubType,o=[];for(let r=0;r<i.length;r+=1)o[r]=Wt(jt(e,i,r));return{c(){t=B("ul");for(let e=0;e<a.length;e+=1)a[e].c();s=F();for(let e=0;e<o.length;e+=1)o[e].c()},m(e,n){O(e,t,n);for(let s=0;s<a.length;s+=1)a[s].m(t,null);M(t,s);for(let s=0;s<o.length;s+=1)o[s].m(t,null)},p(e,r){if(2&r){let i;for(n=e[1].fileSubType,i=0;i<n.length;i+=1){const o=Bt(e,n,i);a[i]?a[i].p(o,r):(a[i]=qt(o),a[i].c(),a[i].m(t,s))}for(;i<a.length;i+=1)a[i].d(1);a.length=n.length}if(2&r){let s;for(i=e[1].shieldSubType,s=0;s<i.length;s+=1){const n=jt(e,i,s);o[s]?o[s].p(n,r):(o[s]=Wt(n),o[s].c(),o[s].m(t,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=i.length}},d(e){e&&G(t),j(a,e),j(o,e)}}}function qt(e){let t,s,n,a=u(ft.exceptionsSubType[e[9]])+"";return{c(){t=B("li"),s=V(a),H(t,"data-test",n="exceptions-tooltip-"+e[9])},m(e,n){O(e,t,n),M(t,s)},p(e,i){2&i&&a!==(a=u(ft.exceptionsSubType[e[9]])+"")&&J(s,a),2&i&&n!==(n="exceptions-tooltip-"+e[9])&&H(t,"data-test",n)},d(e){e&&G(t)}}}function Wt(e){let t,s,n,a,i=u(ft.exceptionsSubType[e[6]])+"";return{c(){t=B("li"),s=V(i),n=F(),H(t,"data-test",a="exceptions-tooltip-"+e[6])},m(e,a){O(e,t,a),M(t,s),M(t,n)},p(e,n){2&n&&i!==(i=u(ft.exceptionsSubType[e[6]])+"")&&J(s,i),2&n&&a!==(a="exceptions-tooltip-"+e[6])&&H(t,"data-test",a)},d(e){e&&G(t)}}}function Ht(e){let t,s,n,a,i=e[1].accessRights+"";return{c(){t=B("span"),s=V("("),n=V(i),a=V(")"),H(t,"class","g-margin-left--5")},m(e,i){O(e,t,i),M(t,s),M(t,n),M(t,a)},p(e,t){2&t&&i!==(i=e[1].accessRights+"")&&J(n,i)},d(e){e&&G(t)}}}function Yt(e){let t,s,n,a,i,o,r,l;function c(e,t){return e[1].accessRights?Jt:Kt}let p=c(e),d=p(e);return{c(){t=B("td"),d.c(),s=F(),n=B("td"),a=B("kin-button"),i=B("kin-icon"),H(t,"class","stg_exceptions__action table__delete svelte-jmkfow"),Y(i,"name","icon-s-controls-bin"),Y(i,"size","16"),Y(a,"title",o=u("global.remove")+" "+e[1].value),Y(a,"icononly",""),Y(a,"type","blank"),Y(a,"size","small"),Y(a,"data-test","exceptions-row-remove"),H(n,"class","stg_exceptions__action table__delete svelte-jmkfow")},m(o,c){O(o,t,c),d.m(t,null),O(o,s,c),O(o,n,c),M(n,a),M(a,i),r||(l=q(a,"click",e[5]),r=!0)},p(e,s){p===(p=c(e))&&d?d.p(e,s):(d.d(1),d=p(e),d&&(d.c(),d.m(t,null))),2&s&&o!==(o=u("global.remove")+" "+e[1].value)&&Y(a,"title",o)},d(e){e&&G(t),d.d(),e&&G(s),e&&G(n),r=!1,l()}}}function Kt(e){let t,s,n,a,i,o;return{c(){t=B("kin-button"),s=B("kin-icon"),Y(s,"name","icon-m-action-pen"),Y(s,"size","16"),Y(t,"title",n=u("global.edit")+" "+e[1].value),Y(t,"kin-disabled",a=!!e[1].accessRights),Y(t,"icononly",""),Y(t,"type","blank"),Y(t,"size","small"),Y(t,"data-test","exceptions-row-edit")},m(n,a){O(n,t,a),M(t,s),i||(o=q(t,"click",e[4]),i=!0)},p(e,s){2&s&&n!==(n=u("global.edit")+" "+e[1].value)&&Y(t,"title",n),2&s&&a!==(a=!!e[1].accessRights)&&Y(t,"kin-disabled",a)},d(e){e&&G(t),i=!1,o()}}}function Jt(e){let t,s,n,a,i,o,r;return{c(){t=B("kin-tooltip"),s=B("kin-button"),n=B("kin-icon"),o=F(),r=B("p"),r.textContent=`${u("settings.exceptions.edit.readOnly")}`,Y(n,"name","icon-m-action-pen"),Y(n,"size","16"),Y(s,"slot","tooltip-activator"),Y(s,"title",a=e[1].value+" "+u("settings.exceptions.edit.readOnly")),Y(s,"kin-disabled",i=!!e[1].accessRights),Y(s,"icononly",""),Y(s,"type","blank"),Y(s,"size","small"),Y(s,"data-test","exceptions-row-edit"),H(r,"class","p -small"),H(r,"slot","tooltip")},m(e,a){O(e,t,a),M(t,s),M(s,n),M(t,o),M(t,r)},p(e,t){2&t&&a!==(a=e[1].value+" "+u("settings.exceptions.edit.readOnly"))&&Y(s,"title",a),2&t&&i!==(i=!!e[1].accessRights)&&Y(s,"kin-disabled",i)},d(e){e&&G(t)}}}function Xt(e){let t,s,n,a,i,o,r=e[1].value+"",l=e[2]&&Vt(e),c=!e[0]&&Yt(e);return{c(){t=B("tr"),s=B("td"),n=V(r),a=F(),l&&l.c(),i=F(),c&&c.c(),H(s,"class","stg_exceptions__value svelte-jmkfow"),H(s,"data-test","exceptions-row-name"),H(t,"class","-hoverable"),H(t,"data-test",o="exceptions-row-category-"+e[1].type)},m(e,o){O(e,t,o),M(t,s),M(s,n),M(t,a),l&&l.m(t,null),M(t,i),c&&c.m(t,null)},p(e,[s]){2&s&&r!==(r=e[1].value+"")&&J(n,r),e[2]?l?l.p(e,s):(l=Vt(e),l.c(),l.m(t,i)):l&&(l.d(1),l=null),e[0]?c&&(c.d(1),c=null):c?c.p(e,s):(c=Yt(e),c.c(),c.m(t,null)),2&s&&o!==(o="exceptions-row-category-"+e[1].type)&&H(t,"data-test",o)},i:I,o:I,d(e){e&&G(t),l&&l.d(),c&&c.d()}}}function Zt(e,t,s){const n=ie();let{locked:a}=t,{exception:i}=t,{isFileException:o=!1}=t;return e.$$set=e=>{"locked"in e&&s(0,a=e.locked),"exception"in e&&s(1,i=e.exception),"isFileException"in e&&s(2,o=e.isFileException)},[a,i,o,n,()=>n("edit"),()=>n("remove")]}class Qt extends Re{constructor(e){var t;super(),document.getElementById("svelte-jmkfow-style")||((t=B("style")).id="svelte-jmkfow-style",t.textContent=".stg_exceptions__value.svelte-jmkfow{min-width:0;width:100%}.stg_exceptions__action.svelte-jmkfow{width:3.2rem;text-align:center}.stg_exceptions__flex_row.svelte-jmkfow{display:flex;flex-flow:row}",M(document.head,t)),Ne(this,e,Zt,Xt,L,{locked:0,exception:1,isFileException:2})}}var es="object"==typeof mt&&mt&&mt.Object===Object&&mt,ts="object"==typeof self&&self&&self.Object===Object&&self;es||ts||Function("return this")();const ss=e=>({}),ns=e=>({}),as=e=>({}),is=e=>({}),os=e=>({}),rs=e=>({}),ls=e=>({}),cs=e=>({});function ps(e){let t,s,n;return{c(){t=B("div"),H(t,"class","sve_modal__overlay__close")},m(a,i){O(a,t,i),s||(n=q(t,"click",e[16]),s=!0)},p:I,d(e){e&&G(t),s=!1,n()}}}function ds(e){let t,s,n,a;return{c(){t=B("button"),s=B("kin-icon"),Y(s,"name","icon-s-controls-close"),Y(s,"size","12"),H(t,"class","sve_modal__close"),H(t,"data-test","close"),H(t,"title",u("global.closeModalWindow"))},m(i,o){O(i,t,o),M(t,s),n||(a=q(t,"click",e[17]),n=!0)},p:I,d(e){e&&G(t),n=!1,a()}}}function us(e){let t,s,n,a,i=e[0]&&gs(e),o=e[1]&&hs(e);const r=e[15]["modal-header"],l=N(r,e,e[14],cs);return{c(){t=B("div"),i&&i.c(),s=F(),o&&o.c(),n=F(),l&&l.c(),H(t,"class","sve_modal__header")},m(e,r){O(e,t,r),i&&i.m(t,null),M(t,s),o&&o.m(t,null),M(t,n),l&&l.m(t,null),a=!0},p(e,a){e[0]?i?i.p(e,a):(i=gs(e),i.c(),i.m(t,s)):i&&(i.d(1),i=null),e[1]?o?o.p(e,a):(o=hs(e),o.c(),o.m(t,n)):o&&(o.d(1),o=null),l&&l.p&&16384&a&&U(l,r,e,e[14],a,ls,cs)},i(e){a||(ke(l,e),a=!0)},o(e){we(l,e),a=!1},d(e){e&&G(t),i&&i.d(),o&&o.d(),l&&l.d(e)}}}function gs(e){let t,s;return{c(){t=B("h2"),s=V(e[0]),H(t,"class","sve_modal__title")},m(e,n){O(e,t,n),M(t,s)},p(e,t){1&t&&J(s,e[0])},d(e){e&&G(t)}}}function hs(e){let t,s;return{c(){t=B("p"),s=V(e[1]),H(t,"class","sve_modal__subtitle")},m(e,n){O(e,t,n),M(t,s)},p(e,t){2&t&&J(s,e[1])},d(e){e&&G(t)}}}function fs(e){let t,s;const n=e[15]["modal-footer"],a=N(n,e,e[14],is);return{c(){t=B("div"),a&&a.c(),H(t,"class","sve_modal__footer")},m(e,n){O(e,t,n),a&&a.m(t,null),s=!0},p(e,t){a&&a.p&&16384&t&&U(a,n,e,e[14],t,as,is)},i(e){s||(ke(a,e),s=!0)},o(e){we(a,e),s=!1},d(e){e&&G(t),a&&a.d(e)}}}function ms(e){let t,s,n;const a=e[15]["modal-ipm"],i=N(a,e,e[14],ns);return{c(){t=B("div"),i&&i.c(),H(t,"class","sve_modal__ipm"),H(t,"style",s=`${e[9]} margin-top: 0;`)},m(e,s){O(e,t,s),i&&i.m(t,null),n=!0},p(e,o){i&&i.p&&16384&o&&U(i,a,e,e[14],o,ss,ns),(!n||512&o&&s!==(s=`${e[9]} margin-top: 0;`))&&H(t,"style",s)},i(e){n||(ke(i,e),n=!0)},o(e){we(i,e),n=!1},d(e){e&&G(t),i&&i.d(e)}}}function bs(e){let t,s,n,a,i,o,r,c,p,d,u,g,h,f,m,b=e[4]&&ps(e),_=e[4]&&ds(e),v=!e[7]&&us(e);const y=e[15]["modal-content"],S=N(y,e,e[14],rs);let x=!e[7]&&fs(e),k=e[6]&&ms(e);return{c(){t=B("div"),b&&b.c(),s=F(),n=B("div"),_&&_.c(),a=F(),v&&v.c(),i=F(),o=B("div"),S&&S.c(),r=F(),x&&x.c(),c=F(),k&&k.c(),H(o,"class","sve_modal__content"),H(n,"class","sve_modal"),H(n,"style",p=`${e[8]}`),H(t,"class",d="sve_modal__overlay "+e[5]),H(t,"data-test",e[3]),H(t,"role","dialog"),H(t,"aria-labelledby",u=e[0]?e[0]:e[2]),H(t,"aria-describedby",g=e[1]?e[1]:"")},m(p,d){O(p,t,d),b&&b.m(t,null),M(t,s),M(t,n),_&&_.m(n,null),M(n,a),v&&v.m(n,null),M(n,i),M(n,o),S&&S.m(o,null),M(n,r),x&&x.m(n,null),M(n,c),k&&k.m(n,null),h=!0,f||(m=[q(window,"keydown",e[11],!0),D(l.call(null,t))],f=!0)},p(e,[o]){e[4]?b?b.p(e,o):(b=ps(e),b.c(),b.m(t,s)):b&&(b.d(1),b=null),e[4]?_?_.p(e,o):(_=ds(e),_.c(),_.m(n,a)):_&&(_.d(1),_=null),e[7]?v&&(Se(),we(v,1,1,(()=>{v=null})),xe()):v?(v.p(e,o),128&o&&ke(v,1)):(v=us(e),v.c(),ke(v,1),v.m(n,i)),S&&S.p&&16384&o&&U(S,y,e,e[14],o,os,rs),e[7]?x&&(Se(),we(x,1,1,(()=>{x=null})),xe()):x?(x.p(e,o),128&o&&ke(x,1)):(x=fs(e),x.c(),ke(x,1),x.m(n,c)),e[6]?k?(k.p(e,o),64&o&&ke(k,1)):(k=ms(e),k.c(),ke(k,1),k.m(n,null)):k&&(Se(),we(k,1,1,(()=>{k=null})),xe()),(!h||256&o&&p!==(p=`${e[8]}`))&&H(n,"style",p),(!h||32&o&&d!==(d="sve_modal__overlay "+e[5]))&&H(t,"class",d),(!h||8&o)&&H(t,"data-test",e[3]),(!h||5&o&&u!==(u=e[0]?e[0]:e[2]))&&H(t,"aria-labelledby",u),(!h||2&o&&g!==(g=e[1]?e[1]:""))&&H(t,"aria-describedby",g)},i(e){h||(ke(v),ke(S,e),ke(x),ke(k),h=!0)},o(e){we(v),we(S,e),we(x),we(k),h=!1},d(e){e&&G(t),b&&b.d(),_&&_.d(),v&&v.d(),S&&S.d(e),x&&x.d(),k&&k.d(),f=!1,C(m)}}}function _s(e,t,s){let{$$slots:n={},$$scope:a}=t;const i=ie();let o,{title:r=null}=t,{subtitle:l=null}=t,{hiddenTitle:c=null}=t,{testId:p=""}=t,{closable:d=!0}=t,{cssCls:u=""}=t,{ipm:g=!1}=t,{customContent:h=!1}=t,{width:f}=t,{ipmHeight:m}=t,b="",_="";ne((()=>{o=document.activeElement})),ae((()=>{document.body.contains(o)&&o.focus()}));return e.$$set=e=>{"title"in e&&s(0,r=e.title),"subtitle"in e&&s(1,l=e.subtitle),"hiddenTitle"in e&&s(2,c=e.hiddenTitle),"testId"in e&&s(3,p=e.testId),"closable"in e&&s(4,d=e.closable),"cssCls"in e&&s(5,u=e.cssCls),"ipm"in e&&s(6,g=e.ipm),"customContent"in e&&s(7,h=e.customContent),"width"in e&&s(12,f=e.width),"ipmHeight"in e&&s(13,m=e.ipmHeight),"$$scope"in e&&s(14,a=e.$$scope)},e.$$.update=()=>{4096&e.$$.dirty&&f&&s(8,b=`width: ${f}px;`),8256&e.$$.dirty&&g&&m&&s(9,_=`height: ${m}px;`)},[r,l,c,p,d,u,g,h,b,_,i,function(e){"Escape"===e.code&&(i("close"),e.preventDefault(),e.stopPropagation())},f,m,a,n,()=>i("close"),()=>i("close")]}class vs extends Re{constructor(e){super(),Ne(this,e,_s,bs,L,{title:0,subtitle:1,hiddenTitle:2,testId:3,closable:4,cssCls:5,ipm:6,customContent:7,width:12,ipmHeight:13})}}const{document:ys}=Te;function Ss(e){let t,s,n,a,i,o,r;return{c(){t=B("div"),s=B("form"),n=B("kin-input"),Y(n,"label",a=u(e[0].newExceptionPlaceholder)),Y(n,"error",i=e[1]?u(e[0].error[e[1]]):""),Y(n,"value",e[2]),Y(n,"class","stg_exceptions__input svelte-15fn01c"),Y(n,"data-test","exceptions-input"),H(s,"class","stg_exceptions__form svelte-15fn01c"),H(t,"slot","modal-content")},m(a,i){O(a,t,i),M(t,s),M(s,n),o||(r=[q(n,"keyup",e[9]),q(s,"submit",W(e[10]))],o=!0)},p(e,t){1&t&&a!==(a=u(e[0].newExceptionPlaceholder))&&Y(n,"label",a),3&t&&i!==(i=e[1]?u(e[0].error[e[1]]):"")&&Y(n,"error",i),4&t&&Y(n,"value",e[2])},d(e){e&&G(t),o=!1,C(r)}}}function xs(e){let t,s,n,a,i,o,r,l,c=u(e[0].addException)+"",p=u(e[0].browse)+"";return{c(){t=B("div"),s=B("kin-button"),n=V(c),a=F(),i=B("kin-button"),o=V(p),Y(s,"kin-disabled",e[3]),Y(s,"data-test","exceptions-submit"),Y(i,"type","secondary"),Y(i,"class","g-margin-left--5"),Y(i,"data-test","exceptions-browse"),H(t,"slot","modal-footer")},m(c,p){O(c,t,p),M(t,s),M(s,n),M(t,a),M(t,i),M(i,o),r||(l=[q(s,"click",e[7]),q(i,"click",e[8])],r=!0)},p(e,t){1&t&&c!==(c=u(e[0].addException)+"")&&J(n,c),8&t&&Y(s,"kin-disabled",e[3]),1&t&&p!==(p=u(e[0].browse)+"")&&J(o,p)},d(e){e&&G(t),r=!1,C(l)}}}function ks(e){let t,s;return t=new vs({props:{title:u(e[0].addException),subtitle:u(e[0].addExceptionDesc),$$slots:{"modal-footer":[xs],"modal-content":[Ss]},$$scope:{ctx:e}}}),t.$on("close",e[11]),{c(){Ee(t.$$.fragment)},m(e,n){Ce(t,e,n),s=!0},p(e,[s]){const n={};1&s&&(n.title=u(e[0].addException)),1&s&&(n.subtitle=u(e[0].addExceptionDesc)),8207&s&&(n.$$scope={dirty:s,ctx:e}),t.$set(n)},i(e){s||(ke(t.$$.fragment,e),s=!0)},o(e){we(t.$$.fragment,e),s=!1},d(e){$e(t,e)}}}function ws(e,s,n){const a=ie();let i,{STRINGS:o=null}=s,{error:r=null}=s,l="";function c(){if(!i)return a("addAuto",{exception:l})}function p(e,t){t||(a("resetError"),n(2,l=e.trim()))}function d(){t("app.utils.SelectFolders").then((e=>{"ok"===e.dialogReturnCode&&e.paths&&(n(2,l=e.paths),document.querySelector(".stg_exceptions__input input").value=e.paths)}))}return e.$$set=e=>{"STRINGS"in e&&n(0,o=e.STRINGS),"error"in e&&n(1,r=e.error)},e.$$.update=()=>{4&e.$$.dirty&&n(3,i=!l)},[o,r,l,i,c,p,d,()=>c(),()=>d(),e=>p(e.target.value,e.key&&13===e.keyCode),()=>c(),function(t){oe(e,t)}]}class Ts extends Re{constructor(e){var t;super(),ys.getElementById("svelte-15fn01c-style")||((t=B("style")).id="svelte-15fn01c-style",t.textContent=".stg_exceptions__form.svelte-15fn01c{height:8rem}.stg_exceptions__input.svelte-15fn01c{margin:1rem auto}",M(ys.head,t)),Ne(this,e,ws,ks,L,{STRINGS:0,error:1})}}const{document:As}=Te;function Is(e){let t,s,n,a,i,o,r,l,c=(e[5]===vt||e[5]===yt)&&Es(e);return{c(){t=B("div"),s=B("form"),n=B("kin-input"),o=F(),c&&c.c(),Y(n,"label",e[11]),Y(n,"value",e[4]),Y(n,"error",a=e[3]?u(e[1].error[e[3]]):""),Y(n,"class","stg_exceptions__input svelte-ph14q5"),Y(n,"data-test",i="exceptions-input-"+e[5]),H(t,"class","stg_exceptions__form svelte-ph14q5")},m(a,i){O(a,t,i),M(t,s),M(s,n),M(t,o),c&&c.m(t,null),r||(l=[q(n,"keyup",e[26]),q(s,"submit",W(e[27]))],r=!0)},p(e,s){2048&s[0]&&Y(n,"label",e[11]),16&s[0]&&Y(n,"value",e[4]),10&s[0]&&a!==(a=e[3]?u(e[1].error[e[3]]):"")&&Y(n,"error",a),32&s[0]&&i!==(i="exceptions-input-"+e[5])&&Y(n,"data-test",i),e[5]===vt||e[5]===yt?c?c.p(e,s):(c=Es(e),c.c(),c.m(t,null)):c&&(c.d(1),c=null)},d(e){e&&G(t),c&&c.d(),r=!1,C(l)}}}function Ps(e){let t,s,n,a,i,o=u(e[1].advanceModal.desc)+"";return{c(){t=B("div"),s=B("kin-icon"),n=F(),a=B("p"),i=V(o),Y(s,"size","48"),Y(s,"name","icon-s-controls-arrow-up"),H(a,"class","h2"),H(t,"class","stg_exceptions__prompt svelte-ph14q5")},m(e,o){O(e,t,o),M(t,s),M(t,n),M(t,a),M(a,i)},p(e,t){2&t[0]&&o!==(o=u(e[1].advanceModal.desc)+"")&&J(i,o)},d(e){e&&G(t)}}}function Es(e){let t,s,n,a,i=u(e[1].browse)+"";return{c(){t=B("kin-button"),s=V(i),Y(t,"type","secondary"),Y(t,"class","stg_exceptions__browse svelte-ph14q5"),Y(t,"data-test","exceptions-browse")},m(i,o){var r;O(i,t,o),M(t,s),n||(a=[q(t,"submit",(r=e[18],function(e){return e.stopPropagation(),r.call(this,e)})),q(t,"click",e[28])],n=!0)},p(e,t){2&t[0]&&i!==(i=u(e[1].browse)+"")&&J(s,i)},d(e){e&&G(t),n=!1,C(a)}}}function Cs(e){let t,s,n,a,i,o;return{c(){t=B("form"),s=B("kin-input"),Y(s,"label",n=u(e[1].advanceModal.cmdLine.inputParamsDesc)),Y(s,"class","stg_exceptions__input -params g-margin-top--10 svelte-ph14q5"),Y(s,"value",e[8]),Y(s,"data-test",a="exceptions-input-"+e[5]+"-param")},m(n,a){O(n,t,a),M(t,s),i||(o=[q(s,"keyup",e[35]),q(t,"submit",W(e[36]))],i=!0)},p(e,t){2&t[0]&&n!==(n=u(e[1].advanceModal.cmdLine.inputParamsDesc))&&Y(s,"label",n),256&t[0]&&Y(s,"value",e[8]),32&t[0]&&a!==(a="exceptions-input-"+e[5]+"-param")&&Y(s,"data-test",a)},d(e){e&&G(t),i=!1,C(o)}}}function $s(e){let t,s,n,a,i,o,r,l,c,p,d,g,h,f,m,b,_,v,y,S,x,k,w,T,A,I,P,E,$,L,N,R,U,D,j,z,W,Y,K,X,Z,Q=u(e[1].exceptionsSubType.scan)+"",ee=u(e[1].exceptionsSubType.idp)+"",te=u(e[1].exceptionsSubType.shield)+"",se=u(e[1].exceptionsSubType.cybercapture)+"",ne=u(e[1].exceptionsSubType.hardened)+"",ae=u(e[1].advanceModal.file.tooltip.title)+"",ie=u(e[1].advanceModal.file.tooltip.desc)+"";return{c(){t=B("div"),s=B("div"),n=B("label"),a=B("input"),i=F(),o=V(Q),r=F(),l=B("label"),c=B("input"),p=F(),d=V(ee),g=F(),h=B("div"),f=B("label"),m=B("input"),b=F(),_=V(te),v=F(),y=B("label"),S=B("input"),k=F(),w=V(se),T=F(),A=B("label"),I=B("input"),E=F(),$=V(ne),L=F(),N=B("kin-tooltip"),R=B("span"),R.innerHTML='<kin-icon name="icon-m-action-info" size="20"></kin-icon>',U=F(),D=B("div"),j=B("h4"),z=V(ae),W=F(),Y=B("p"),K=V(ie),H(a,"type","checkbox"),H(a,"class","checkbox svelte-ph14q5"),a.__value="scan",a.value=a.__value,H(a,"data-test","exceptions-checkboxes-scan"),e[23][1].push(a),H(n,"class","g-margin-bottom--5 svelte-ph14q5"),H(c,"type","checkbox"),H(c,"class","checkbox svelte-ph14q5"),c.__value="idp",c.value=c.__value,H(c,"data-test","exceptions-checkboxes-idp"),e[23][1].push(c),H(l,"class","svelte-ph14q5"),H(s,"class","svelte-ph14q5"),H(m,"type","checkbox"),H(m,"class","checkbox svelte-ph14q5"),m.__value="shield",m.value=m.__value,H(m,"data-test","exceptions-checkboxes-shield"),e[23][1].push(m),H(f,"class","g-margin-bottom--5 svelte-ph14q5"),H(S,"type","checkbox"),H(S,"class","checkbox svelte-ph14q5"),S.__value="cybercapture",S.value=S.__value,S.disabled=x=e[6].includes("shield"),H(S,"data-test","exceptions-checkboxes-cybercapture"),e[23][0].push(S),H(y,"class","g-margin-bottom--5 g-margin-left--10 svelte-ph14q5"),H(I,"type","checkbox"),H(I,"class","checkbox svelte-ph14q5"),I.__value="hardened",I.value=I.__value,I.disabled=P=e[6].includes("shield"),H(I,"data-test","exceptions-checkboxes-hardened"),e[23][0].push(I),H(A,"class","g-margin-left--10 svelte-ph14q5"),H(h,"class","stg_exceptions__shields svelte-ph14q5"),H(R,"slot","tooltip-activator"),H(j,"class","h4"),H(Y,"class","p -small"),H(D,"slot","tooltip"),H(D,"class","svelte-ph14q5"),H(t,"class","stg_exceptions__file svelte-ph14q5")},m(u,x){O(u,t,x),M(t,s),M(s,n),M(n,a),a.checked=~e[6].indexOf(a.__value),M(n,i),M(n,o),M(s,r),M(s,l),M(l,c),c.checked=~e[6].indexOf(c.__value),M(l,p),M(l,d),M(t,g),M(t,h),M(h,f),M(f,m),m.checked=~e[6].indexOf(m.__value),M(f,b),M(f,_),M(h,v),M(h,y),M(y,S),S.checked=~e[7].indexOf(S.__value),M(y,k),M(y,w),M(h,T),M(h,A),M(A,I),I.checked=~e[7].indexOf(I.__value),M(A,E),M(A,$),M(t,L),M(t,N),M(N,R),M(N,U),M(N,D),M(D,j),M(j,z),M(D,W),M(D,Y),M(Y,K),X||(Z=[q(a,"change",e[29]),q(c,"change",e[30]),q(m,"change",e[31]),q(m,"change",e[32]),q(S,"change",e[33]),q(I,"change",e[34])],X=!0)},p(e,t){64&t[0]&&(a.checked=~e[6].indexOf(a.__value)),2&t[0]&&Q!==(Q=u(e[1].exceptionsSubType.scan)+"")&&J(o,Q),64&t[0]&&(c.checked=~e[6].indexOf(c.__value)),2&t[0]&&ee!==(ee=u(e[1].exceptionsSubType.idp)+"")&&J(d,ee),64&t[0]&&(m.checked=~e[6].indexOf(m.__value)),2&t[0]&&te!==(te=u(e[1].exceptionsSubType.shield)+"")&&J(_,te),64&t[0]&&x!==(x=e[6].includes("shield"))&&(S.disabled=x),128&t[0]&&(S.checked=~e[7].indexOf(S.__value)),2&t[0]&&se!==(se=u(e[1].exceptionsSubType.cybercapture)+"")&&J(w,se),64&t[0]&&P!==(P=e[6].includes("shield"))&&(I.disabled=P),128&t[0]&&(I.checked=~e[7].indexOf(I.__value)),2&t[0]&&ne!==(ne=u(e[1].exceptionsSubType.hardened)+"")&&J($,ne),2&t[0]&&ae!==(ae=u(e[1].advanceModal.file.tooltip.title)+"")&&J(z,ae),2&t[0]&&ie!==(ie=u(e[1].advanceModal.file.tooltip.desc)+"")&&J(K,ie)},d(s){s&&G(t),e[23][1].splice(e[23][1].indexOf(a),1),e[23][1].splice(e[23][1].indexOf(c),1),e[23][1].splice(e[23][1].indexOf(m),1),e[23][0].splice(e[23][0].indexOf(S),1),e[23][0].splice(e[23][0].indexOf(I),1),X=!1,C(Z)}}}function Ls(e){let t,s=""!==e[4]&&Ns(e);return{c(){s&&s.c(),t=z()},m(e,n){s&&s.m(e,n),O(e,t,n)},p(e,n){""!==e[4]?s?s.p(e,n):(s=Ns(e),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null)},d(e){s&&s.d(e),e&&G(t)}}}function Ns(e){let t,s;function n(e,t){return(null==s||16&t[0])&&(s=!!e[4].includes("://")),s?Us:Rs}let a=n(e,[-1]),i=a(e);return{c(){t=B("table"),i.c(),H(t,"class","table -small -full stg_exceptions__table svelte-ph14q5")},m(e,s){O(e,t,s),i.m(t,null)},p(e,s){a===(a=n(e,s))&&i?i.p(e,s):(i.d(1),i=a(e),i&&(i.c(),i.m(t,null)))},d(e){e&&G(t),i.d()}}}function Rs(e){let t,s,n,a,i,o,r,l,c,p,d,u=e[10][0]?`${e[10][0]}/*`:"",g=e[10][0]?`${e[10][0]}/*`:"",h=e[10][1]&&Ds(e),f=e[10][1]&&Ms(e);return{c(){t=B("tr"),s=B("td"),n=V("http://"),a=V(u),i=F(),h&&h.c(),o=F(),r=B("tr"),l=B("td"),c=V("https://"),p=V(g),d=F(),f&&f.c()},m(e,u){O(e,t,u),M(t,s),M(s,n),M(s,a),M(s,i),h&&h.m(s,null),O(e,o,u),O(e,r,u),M(r,l),M(l,c),M(l,p),M(l,d),f&&f.m(l,null)},p(e,t){1024&t[0]&&u!==(u=e[10][0]?`${e[10][0]}/*`:"")&&J(a,u),e[10][1]?h?h.p(e,t):(h=Ds(e),h.c(),h.m(s,null)):h&&(h.d(1),h=null),1024&t[0]&&g!==(g=e[10][0]?`${e[10][0]}/*`:"")&&J(p,g),e[10][1]?f?f.p(e,t):(f=Ms(e),f.c(),f.m(l,null)):f&&(f.d(1),f=null)},d(e){e&&G(t),h&&h.d(),e&&G(o),e&&G(r),f&&f.d()}}}function Us(e){let t,s,n,a,i=e[10][0]?`${e[10][0]}/*`:"",o=e[10][1]&&Os(e);return{c(){t=B("tr"),s=B("td"),n=V(i),a=F(),o&&o.c()},m(e,i){O(e,t,i),M(t,s),M(s,n),M(s,a),o&&o.m(s,null)},p(e,t){1024&t[0]&&i!==(i=e[10][0]?`${e[10][0]}/*`:"")&&J(n,i),e[10][1]?o?o.p(e,t):(o=Os(e),o.c(),o.m(s,null)):o&&(o.d(1),o=null)},d(e){e&&G(t),o&&o.d()}}}function Ds(e){let t,s,n,a,i=u(e[1].advanceModal.cutOff,e[4].split(/\b\/(.+)/)[1])+"";return{c(){t=B("kin-tooltip"),s=B("span"),s.innerHTML='<kin-icon name="icon-m-action-info" size="20"></kin-icon>',n=F(),a=B("div"),H(s,"slot","tooltip-activator"),H(a,"slot","tooltip"),Y(t,"class","stg_exceptions__cut-off svelte-ph14q5")},m(e,o){O(e,t,o),M(t,s),M(t,n),M(t,a),a.innerHTML=i},p(e,t){18&t[0]&&i!==(i=u(e[1].advanceModal.cutOff,e[4].split(/\b\/(.+)/)[1])+"")&&(a.innerHTML=i)},d(e){e&&G(t)}}}function Ms(e){let t,s,n,a,i=u(e[1].advanceModal.cutOff,e[4].split(/\b\/(.+)/)[1])+"";return{c(){t=B("kin-tooltip"),s=B("span"),s.innerHTML='<kin-icon name="icon-m-action-info" size="20"></kin-icon>',n=F(),a=B("div"),H(s,"slot","tooltip-activator"),H(a,"slot","tooltip"),Y(t,"class","stg_exceptions__cut-off svelte-ph14q5")},m(e,o){O(e,t,o),M(t,s),M(t,n),M(t,a),a.innerHTML=i},p(e,t){18&t[0]&&i!==(i=u(e[1].advanceModal.cutOff,e[4].split(/\b\/(.+)/)[1])+"")&&(a.innerHTML=i)},d(e){e&&G(t)}}}function Os(e){let t,s,n,a,i=u(e[1].advanceModal.cutOff,e[4].split(/\b\/(.+)/)[1])+"";return{c(){t=B("kin-tooltip"),s=B("span"),s.innerHTML='<kin-icon name="icon-m-action-info" size="20"></kin-icon>',n=F(),a=B("div"),H(s,"slot","tooltip-activator"),H(a,"slot","tooltip"),Y(t,"class","stg_exceptions__cut-off svelte-ph14q5")},m(e,o){O(e,t,o),M(t,s),M(t,n),M(t,a),a.innerHTML=i},p(e,t){18&t[0]&&i!==(i=u(e[1].advanceModal.cutOff,e[4].split(/\b\/(.+)/)[1])+"")&&(a.innerHTML=i)},d(e){e&&G(t)}}}function Gs(e){let t,s,n,a,i,o,r,l,c,p,d,g,h,f,m,b,_,v,y,S,x,k,w,T,A,I,P,E,$,L,N=u(e[1].advanceModal.url.btn)+"",R=u(e[1].advanceModal.file.btn)+"",U=u(e[1].advanceModal.cmdLine.btn)+"";function D(e,t){return e[5]?Is:Ps}let j=D(e),z=j(e);function W(e,t){return e[5]===At?Ls:!e[2]||e[5]!==vt&&e[5]!==yt?e[5]===It?Cs:void 0:$s}let K=W(e),X=K&&K(e);return{c(){t=B("div"),s=B("div"),n=B("label"),a=B("input"),i=F(),o=B("kin-icon"),r=F(),l=B("span"),c=V(N),p=F(),d=B("label"),g=B("input"),h=F(),f=B("kin-icon"),m=F(),b=B("span"),_=V(R),v=F(),y=B("label"),S=B("input"),x=F(),k=B("kin-icon"),w=F(),T=B("span"),A=V(U),I=F(),P=B("div"),z.c(),E=F(),X&&X.c(),H(a,"type","radio"),a.__value=At,a.value=a.__value,a.disabled=e[0],H(a,"data-test","exceptions-advanced-web"),H(a,"class","svelte-ph14q5"),e[23][2].push(a),Q(a,"-disabled",e[0]),Y(o,"name","icon-s-web"),Y(o,"size","24"),Y(o,"class","g-margin-right--10"),H(n,"class","stg_exceptions__tile cube -banner -blank svelte-ph14q5"),Q(n,"-selected",e[5]===At),Q(n,"-inactive",e[5]!==At&&e[5]),Q(n,"-disabled",e[0]),H(g,"type","radio"),g.__value=vt,g.value=g.__value,g.disabled=e[0],H(g,"data-test","exceptions-advanced-file"),H(g,"class","svelte-ph14q5"),e[23][2].push(g),Q(g,"-disabled",e[0]),Y(f,"name","icon-m-scan-folder"),Y(f,"size","24"),Y(f,"class","g-margin-right--10"),H(d,"class","stg_exceptions__tile cube -banner -blank svelte-ph14q5"),Q(d,"-selected",e[5]===vt||e[5]===yt),Q(d,"-inactive",e[5]!==vt&&e[5]!==yt&&e[5]),Q(d,"-disabled",e[0]),H(S,"type","radio"),S.__value=It,S.value=S.__value,S.disabled=e[0],H(S,"data-test","exceptions-advanced-cmdLine"),H(S,"class","svelte-ph14q5"),e[23][2].push(S),Q(S,"-disabled",e[0]),Y(k,"name","icon-m-hacker"),Y(k,"size","24"),Y(k,"class","g-margin-right--10"),H(y,"class","stg_exceptions__tile cube -banner -blank svelte-ph14q5"),Q(y,"-selected",e[5]===It),Q(y,"-inactive",e[5]!==It&&e[5]),Q(y,"-disabled",e[0]),H(P,"class","stg_exceptions__scan-type svelte-ph14q5"),H(t,"slot","modal-content")},m(u,C){O(u,t,C),M(t,s),M(s,n),M(n,a),a.checked=a.__value===e[5],M(n,i),M(n,o),M(n,r),M(n,l),M(l,c),M(s,p),M(s,d),M(d,g),g.checked=g.__value===e[5],M(d,h),M(d,f),M(d,m),M(d,b),M(b,_),M(s,v),M(s,y),M(y,S),S.checked=S.__value===e[5],M(y,x),M(y,k),M(y,w),M(y,T),M(T,A),M(t,I),M(t,P),z.m(P,null),M(P,E),X&&X.m(P,null),$||(L=[q(a,"change",e[22]),q(g,"change",e[24]),q(S,"change",e[25])],$=!0)},p(e,t){1&t[0]&&(a.disabled=e[0]),32&t[0]&&(a.checked=a.__value===e[5]),1&t[0]&&Q(a,"-disabled",e[0]),2&t[0]&&N!==(N=u(e[1].advanceModal.url.btn)+"")&&J(c,N),32&t[0]&&Q(n,"-selected",e[5]===At),32&t[0]&&Q(n,"-inactive",e[5]!==At&&e[5]),1&t[0]&&Q(n,"-disabled",e[0]),1&t[0]&&(g.disabled=e[0]),32&t[0]&&(g.checked=g.__value===e[5]),1&t[0]&&Q(g,"-disabled",e[0]),2&t[0]&&R!==(R=u(e[1].advanceModal.file.btn)+"")&&J(_,R),32&t[0]&&Q(d,"-selected",e[5]===vt||e[5]===yt),32&t[0]&&Q(d,"-inactive",e[5]!==vt&&e[5]!==yt&&e[5]),1&t[0]&&Q(d,"-disabled",e[0]),1&t[0]&&(S.disabled=e[0]),32&t[0]&&(S.checked=S.__value===e[5]),1&t[0]&&Q(S,"-disabled",e[0]),2&t[0]&&U!==(U=u(e[1].advanceModal.cmdLine.btn)+"")&&J(A,U),32&t[0]&&Q(y,"-selected",e[5]===It),32&t[0]&&Q(y,"-inactive",e[5]!==It&&e[5]),1&t[0]&&Q(y,"-disabled",e[0]),j===(j=D(e))&&z?z.p(e,t):(z.d(1),z=j(e),z&&(z.c(),z.m(P,E))),K===(K=W(e))&&X?X.p(e,t):(X&&X.d(1),X=K&&K(e),X&&(X.c(),X.m(P,null)))},d(s){s&&G(t),e[23][2].splice(e[23][2].indexOf(a),1),e[23][2].splice(e[23][2].indexOf(g),1),e[23][2].splice(e[23][2].indexOf(S),1),z.d(),X&&X.d(),$=!1,C(L)}}}function js(e){let t,s,n,a,i=u(e[1].submit)+"";return{c(){t=B("kin-button"),s=V(i),Y(t,"type","secondary"),Y(t,"kin-disabled",e[9]),Y(t,"data-test","exceptions-submit")},m(i,o){O(i,t,o),M(t,s),n||(a=q(t,"click",e[21]),n=!0)},p(e,n){2&n[0]&&i!==(i=u(e[1].submit)+"")&&J(s,i),512&n[0]&&Y(t,"kin-disabled",e[9])},d(e){e&&G(t),n=!1,a()}}}function Bs(e){let t,s,n,a,i,o,r,l=u(e[1].save)+"",c=u(e[1].cancel)+"";return{c(){t=B("kin-button"),s=V(l),n=F(),a=B("kin-button"),i=V(c),Y(t,"kin-disabled",e[9]),Y(t,"data-test","exceptions-submit"),Y(a,"type","secondary"),Y(a,"data-test","exceptions-close")},m(l,c){O(l,t,c),M(t,s),O(l,n,c),O(l,a,c),M(a,i),o||(r=[q(t,"click",e[19]),q(a,"click",e[20])],o=!0)},p(e,n){2&n[0]&&l!==(l=u(e[1].save)+"")&&J(s,l),512&n[0]&&Y(t,"kin-disabled",e[9]),2&n[0]&&c!==(c=u(e[1].cancel)+"")&&J(i,c)},d(e){e&&G(t),e&&G(n),e&&G(a),o=!1,C(r)}}}function Vs(e){let t;function s(e,t){return e[0]?Bs:js}let n=s(e),a=n(e);return{c(){t=B("div"),a.c(),H(t,"slot","modal-footer")},m(e,s){O(e,t,s),a.m(t,null)},p(e,i){n===(n=s(e))&&a?a.p(e,i):(a.d(1),a=n(e),a&&(a.c(),a.m(t,null)))},d(e){e&&G(t),a.d()}}}function Fs(e){let t,s;return t=new vs({props:{title:e[0]?u(e[1].editAdvanceException):u(e[1].addAdvanceException),$$slots:{"modal-footer":[Vs],"modal-content":[Gs]},$$scope:{ctx:e}}}),t.$on("close",e[37]),{c(){Ee(t.$$.fragment)},m(e,n){Ce(t,e,n),s=!0},p(e,s){const n={};3&s[0]&&(n.title=e[0]?u(e[1].editAdvanceException):u(e[1].addAdvanceException)),4095&s[0]|512&s[1]&&(n.$$scope={dirty:s,ctx:e}),t.$set(n)},i(e){s||(ke(t.$$.fragment,e),s=!0)},o(e){we(t.$$.fragment,e),s=!1},d(e){$e(t,e)}}}function zs(e,s,n){let a,i;const o=ie();let r,l,c,p,{exceptionToEdit:d=null}=s,{STRINGS:g=null}=s,{advancedMode:h=!1}=s,{error:f=null}=s,m="",b=[],_=[];function v(e){return n(7,_=e?["cybercapture","hardened"]:[])}function y(){c||(d?o("update",{exception:m,exceptionType:r,fileSubType:b,shieldSubType:_,cmdParams:l,accessRights:p}):o("add",{exception:m,exceptionType:r,fileSubType:b,shieldSubType:_,cmdParams:l}))}function S(e,t){t||(o("resetError"),n(4,m=e.trim()))}function x(e,t){t||(o("resetError"),n(8,l=e.trim()))}function k(){t("app.utils.SelectFolders").then((e=>{"ok"===e.dialogReturnCode&&e.paths&&(n(4,m=e.paths),document.querySelector(".stg_exceptions__input input").value=e.paths)}))}ne((()=>{d&&(n(5,r=d.type),d.accessRights&&(p=d.accessRights),d.type===It?(n(4,m=d.cmd),n(8,l=d.args)):n(4,m=d.value),d.type===yt?(n(6,b=d.fileSubType),n(7,_=d.shieldSubType)):d.type===vt&&(n(6,b=[xt,St,kt]),n(7,_=[Tt,wt])))}));const w=[[],[],[]];return e.$$set=e=>{"exceptionToEdit"in e&&n(0,d=e.exceptionToEdit),"STRINGS"in e&&n(1,g=e.STRINGS),"advancedMode"in e&&n(2,h=e.advancedMode),"error"in e&&n(3,f=e.error)},e.$$.update=()=>{16&e.$$.dirty[0]&&n(10,a=function(e){const t=e.trim();return t?"/*"===t.slice(-2)?[t.split(/\b\/(.+)/)[0]]:"/"===t.slice(-1)?[t.slice(0,-1)]:t.split(/\b\/(.+)/):[]}(m)),33&e.$$.dirty[0]&&(d||r!==vt||(n(6,b=[xt,St,kt]),n(7,_=[Tt,wt]))),240&e.$$.dirty[0]&&n(9,c=!m||(r===vt||r===yt)&&!b.length&&!_.length),32&e.$$.dirty[0]&&n(11,i=function(e){return o("resetError"),e===vt||e===yt?u(g.advanceModal.file.inputDesc):e===At?u(g.advanceModal.url.inputDesc):e===It?u(g.advanceModal.cmdLine.inputDesc):void 0}(r))},[d,g,h,f,m,r,b,_,l,c,a,i,o,v,y,S,x,k,function(t){oe(e,t)},()=>y(),()=>o("close"),()=>y(),function(){r=this.__value,n(5,r)},w,function(){r=this.__value,n(5,r)},function(){r=this.__value,n(5,r)},e=>S(e.target.value,e.key&&13===e.keyCode),()=>y(),()=>k(),function(){b=K(w[1],this.__value,this.checked),n(6,b),n(0,d),n(5,r)},function(){b=K(w[1],this.__value,this.checked),n(6,b),n(0,d),n(5,r)},function(){b=K(w[1],this.__value,this.checked),n(6,b),n(0,d),n(5,r)},()=>v(b.includes("shield")),function(){_=K(w[0],this.__value,this.checked),n(7,_),n(0,d),n(5,r)},function(){_=K(w[0],this.__value,this.checked),n(7,_),n(0,d),n(5,r)},e=>x(e.target.value,e.key&&13===e.keyCode),()=>y(),function(t){oe(e,t)}]}class qs extends Re{constructor(e){var t;super(),As.getElementById("svelte-ph14q5-style")||((t=B("style")).id="svelte-ph14q5-style",t.textContent=".stg_exceptions__prompt.svelte-ph14q5.svelte-ph14q5{text-align:center;padding-top:3rem;opacity:0.3}.stg_exceptions__input.svelte-ph14q5.svelte-ph14q5{margin:1rem auto;width:35rem}.stg_exceptions__input.-params.svelte-ph14q5.svelte-ph14q5{margin-top:2.5rem}.stg_exceptions__form.svelte-ph14q5.svelte-ph14q5{display:flex;flex-direction:row;justify-content:center}.stg_exceptions__tile.svelte-ph14q5.svelte-ph14q5{width:18rem;height:6rem;margin:0 1rem;padding:0 1rem;display:inline-flex;min-height:0;min-width:0;align-items:center;justify-content:center;position:relative}.stg_exceptions__tile.svelte-ph14q5 input[type='radio'].svelte-ph14q5{-webkit-appearance:none;appearance:none;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;cursor:pointer}.stg_exceptions__tile.svelte-ph14q5 input[type='radio'].-disabled.svelte-ph14q5{cursor:auto}.stg_exceptions__tile.-inactive.svelte-ph14q5.svelte-ph14q5{opacity:0.3;transform:none;background:inherit}.stg_exceptions__scan-type.svelte-ph14q5.svelte-ph14q5{padding-top:2rem;text-align:start;width:100%;min-height:27vh;position:relative}.stg_exceptions__scan-type.svelte-ph14q5 label.svelte-ph14q5{display:block}.stg_exceptions__scan-type.svelte-ph14q5 input.svelte-ph14q5{margin:0.2rem 0.5rem}.stg_exceptions__file.svelte-ph14q5.svelte-ph14q5{display:flex;justify-content:center;align-items:top;padding-top:2rem}.stg_exceptions__file.svelte-ph14q5 div.svelte-ph14q5{padding:0 1rem}.stg_exceptions__browse.svelte-ph14q5.svelte-ph14q5{margin-top:2.3rem;margin-left:1rem}.stg_exceptions__table.svelte-ph14q5.svelte-ph14q5{width:80%;margin:2rem auto 0}.stg_exceptions__cut-off.svelte-ph14q5.svelte-ph14q5{position:absolute;margin:0 1rem}.avs .cube:hover.-disabled{transform:none;background:inherit}",M(As.head,t)),Ne(this,e,zs,Fs,L,{exceptionToEdit:0,STRINGS:1,advancedMode:2,error:3},[-1,-1])}}const{Map:Ws}=Te;function Hs(e,t,s){const n=e.slice();return n[47]=t[s],n[49]=s,n}function Ys(e,t,s){const n=e.slice();return n[47]=t[s],n[49]=s,n}function Ks(e,t,s){const n=e.slice();return n[47]=t[s],n[49]=s,n}function Js(e){let t,s,n,a,i,o,r=u(ft.addAdvanceException)+"";return{c(){t=B("kin-button"),s=V(r),n=F(),a=B("kin-icon"),Y(a,"name","switch-arrow"),Y(a,"size","20"),Y(a,"class","color-ok -text g-rotate--180 g-margin-left--5"),Y(t,"class","g-margin-left--5"),Y(t,"size","small"),Y(t,"type","blank"),Y(t,"kin-disabled",e[1]),Y(t,"data-test","exceptions-add_advanced")},m(r,l){O(r,t,l),M(t,s),M(t,n),M(t,a),i||(o=q(t,"click",e[19]),i=!0)},p(e,s){2&s[0]&&Y(t,"kin-disabled",e[1])},d(e){e&&G(t),i=!1,o()}}}function Xs(e){let t,s;return t=new e[9]({props:{cssCls:"g-margin-left--20",icon:"lock-full"}}),{c(){Ee(t.$$.fragment)},m(e,n){Ce(t,e,n),s=!0},i(e){s||(ke(t.$$.fragment,e),s=!0)},o(e){we(t.$$.fragment,e),s=!1},d(e){$e(t,e)}}}function Zs(e){let t,s,n,a,i=[],o=new Ws,r=e[6];const l=e=>e[47].value;for(let c=0;c<r.length;c+=1){let t=Ks(e,r,c),s=l(t);o.set(s,i[c]=Qs(s,t))}return{c(){t=B("h4"),t.textContent=`${u(ft.exceptionType.url)}`,s=F(),n=B("table");for(let e=0;e<i.length;e+=1)i[e].c();H(t,"class","h6 -margins g-margin-top--40 xxx_url"),H(t,"data-test","exceptions_category-web"),H(n,"class","table -fixed -compact")},m(e,o){O(e,t,o),O(e,s,o),O(e,n,o);for(let t=0;t<i.length;t+=1)i[t].m(n,null);a=!0},p(e,t){9282&t[0]&&(r=e[6],Se(),i=Ie(i,t,l,1,e,r,o,n,Ae,Qs,null,Ks),xe())},i(e){if(!a){for(let e=0;e<r.length;e+=1)ke(i[e]);a=!0}},o(e){for(let t=0;t<i.length;t+=1)we(i[t]);a=!1},d(e){e&&G(t),e&&G(s),e&&G(n);for(let t=0;t<i.length;t+=1)i[t].d()}}}function Qs(e,t){let s,n,a;return n=new Qt({props:{exception:t[47],locked:t[1]}}),n.$on("edit",(function(){return t[20](t[47])})),n.$on("remove",(function(){return t[21](t[47])})),{key:e,first:null,c(){s=z(),Ee(n.$$.fragment),this.first=s},m(e,t){O(e,s,t),Ce(n,e,t),a=!0},p(e,s){t=e;const a={};64&s[0]&&(a.exception=t[47]),2&s[0]&&(a.locked=t[1]),n.$set(a)},i(e){a||(ke(n.$$.fragment,e),a=!0)},o(e){we(n.$$.fragment,e),a=!1},d(e){e&&G(s),$e(n,e)}}}function en(e){let t,s,n,a,i=[],o=new Ws,r=e[5];const l=e=>e[47].value;for(let c=0;c<r.length;c+=1){let t=Ys(e,r,c),s=l(t);o.set(s,i[c]=tn(s,t))}return{c(){t=B("h4"),t.textContent=`${u(ft.exceptionType.file)}`,s=F(),n=B("table");for(let e=0;e<i.length;e+=1)i[e].c();H(t,"class","h6 -margins g-margin-top--40 xxx_file"),H(t,"data-test","exceptions_category-file"),H(n,"class","table -fixed -compact")},m(e,o){O(e,t,o),O(e,s,o),O(e,n,o);for(let t=0;t<i.length;t+=1)i[t].m(n,null);a=!0},p(e,t){9250&t[0]&&(r=e[5],Se(),i=Ie(i,t,l,1,e,r,o,n,Ae,tn,null,Ys),xe())},i(e){if(!a){for(let e=0;e<r.length;e+=1)ke(i[e]);a=!0}},o(e){for(let t=0;t<i.length;t+=1)we(i[t]);a=!1},d(e){e&&G(t),e&&G(s),e&&G(n);for(let t=0;t<i.length;t+=1)i[t].d()}}}function tn(e,t){let s,n,a;return n=new Qt({props:{exception:t[47],locked:t[1],isFileException:!0+"}"}}),n.$on("edit",(function(){return t[22](t[47])})),n.$on("remove",(function(){return t[23](t[47])})),{key:e,first:null,c(){s=z(),Ee(n.$$.fragment),this.first=s},m(e,t){O(e,s,t),Ce(n,e,t),a=!0},p(e,s){t=e;const a={};32&s[0]&&(a.exception=t[47]),2&s[0]&&(a.locked=t[1]),n.$set(a)},i(e){a||(ke(n.$$.fragment,e),a=!0)},o(e){we(n.$$.fragment,e),a=!1},d(e){e&&G(s),$e(n,e)}}}function sn(e){let t,s,n,a,i=[],o=new Ws,r=e[7];const l=e=>e[47].value;for(let c=0;c<r.length;c+=1){let t=Hs(e,r,c),s=l(t);o.set(s,i[c]=nn(s,t))}return{c(){t=B("h4"),t.textContent=`${u(ft.exceptionType.cmdLine)}`,s=F(),n=B("table");for(let e=0;e<i.length;e+=1)i[e].c();H(t,"class","h6 -margins g-margin-top--40 xxx_cmd"),H(t,"data-test","exceptions_category-cmdLine"),H(n,"class","table -fixed -compact")},m(e,o){O(e,t,o),O(e,s,o),O(e,n,o);for(let t=0;t<i.length;t+=1)i[t].m(n,null);a=!0},p(e,t){9346&t[0]&&(r=e[7],Se(),i=Ie(i,t,l,1,e,r,o,n,Ae,nn,null,Hs),xe())},i(e){if(!a){for(let e=0;e<r.length;e+=1)ke(i[e]);a=!0}},o(e){for(let t=0;t<i.length;t+=1)we(i[t]);a=!1},d(e){e&&G(t),e&&G(s),e&&G(n);for(let t=0;t<i.length;t+=1)i[t].d()}}}function nn(e,t){let s,n,a;return n=new Qt({props:{exception:t[47],locked:t[1]}}),n.$on("edit",(function(){return t[24](t[47])})),n.$on("remove",(function(){return t[25](t[47])})),{key:e,first:null,c(){s=z(),Ee(n.$$.fragment),this.first=s},m(e,t){O(e,s,t),Ce(n,e,t),a=!0},p(e,s){t=e;const a={};128&s[0]&&(a.exception=t[47]),2&s[0]&&(a.locked=t[1]),n.$set(a)},i(e){a||(ke(n.$$.fragment,e),a=!0)},o(e){we(n.$$.fragment,e),a=!1},d(e){e&&G(s),$e(n,e)}}}function an(e){let t,s,n,a,i,o,r,l,c,p,d,g,h=u(ft.addException)+"",f=e[0]&&Js(e),m=e[1]&&Xs(e),b=e[6].length>0&&Zs(e),_=e[5].length>0&&en(e),v=e[7].length>0&&sn(e);return{c(){t=B("div"),s=B("kin-button"),n=V(h),a=F(),f&&f.c(),i=F(),m&&m.c(),o=F(),b&&b.c(),r=F(),_&&_.c(),l=F(),v&&v.c(),c=z(),Y(s,"size","small"),Y(s,"kin-disabled",e[1]),Y(s,"data-test","exceptions-add")},m(u,h){O(u,t,h),M(t,s),M(s,n),M(t,a),f&&f.m(t,null),M(t,i),m&&m.m(t,null),O(u,o,h),b&&b.m(u,h),O(u,r,h),_&&_.m(u,h),O(u,l,h),v&&v.m(u,h),O(u,c,h),p=!0,d||(g=q(s,"click",e[18]),d=!0)},p(e,n){(!p||2&n[0])&&Y(s,"kin-disabled",e[1]),e[0]?f?f.p(e,n):(f=Js(e),f.c(),f.m(t,i)):f&&(f.d(1),f=null),e[1]?m?2&n[0]&&ke(m,1):(m=Xs(e),m.c(),ke(m,1),m.m(t,null)):m&&(Se(),we(m,1,1,(()=>{m=null})),xe()),e[6].length>0?b?(b.p(e,n),64&n[0]&&ke(b,1)):(b=Zs(e),b.c(),ke(b,1),b.m(r.parentNode,r)):b&&(Se(),we(b,1,1,(()=>{b=null})),xe()),e[5].length>0?_?(_.p(e,n),32&n[0]&&ke(_,1)):(_=en(e),_.c(),ke(_,1),_.m(l.parentNode,l)):_&&(Se(),we(_,1,1,(()=>{_=null})),xe()),e[7].length>0?v?(v.p(e,n),128&n[0]&&ke(v,1)):(v=sn(e),v.c(),ke(v,1),v.m(c.parentNode,c)):v&&(Se(),we(v,1,1,(()=>{v=null})),xe())},i(e){p||(ke(m),ke(b),ke(_),ke(v),p=!0)},o(e){we(m),we(b),we(_),we(v),p=!1},d(e){e&&G(t),f&&f.d(),m&&m.d(),e&&G(o),b&&b.d(e),e&&G(r),_&&_.d(e),e&&G(l),v&&v.d(e),e&&G(c),d=!1,g()}}}function on(e){let t,s;return t=new Ts({props:{exceptionToEdit:e[4],STRINGS:ft,error:e[3]}}),t.$on("close",e[26]),t.$on("addAuto",e[27]),t.$on("resetError",e[28]),{c(){Ee(t.$$.fragment)},m(e,n){Ce(t,e,n),s=!0},p(e,s){const n={};16&s[0]&&(n.exceptionToEdit=e[4]),8&s[0]&&(n.error=e[3]),t.$set(n)},i(e){s||(ke(t.$$.fragment,e),s=!0)},o(e){we(t.$$.fragment,e),s=!1},d(e){$e(t,e)}}}function rn(e){let t,s;return t=new qs({props:{exceptionToEdit:e[4],STRINGS:ft,advancedMode:e[0],error:e[3]}}),t.$on("close",e[29]),t.$on("add",e[30]),t.$on("update",e[31]),t.$on("resetError",e[32]),{c(){Ee(t.$$.fragment)},m(e,n){Ce(t,e,n),s=!0},p(e,s){const n={};16&s[0]&&(n.exceptionToEdit=e[4]),1&s[0]&&(n.advancedMode=e[0]),8&s[0]&&(n.error=e[3]),t.$set(n)},i(e){s||(ke(t.$$.fragment,e),s=!0)},o(e){we(t.$$.fragment,e),s=!1},d(e){$e(t,e)}}}function ln(e){let t,s,n,a,i;t=new e[8]({props:{title:u(ft.title),desc:e[0]?u(ft.descAdvanced):u(ft.desc),$$slots:{default:[an]},$$scope:{ctx:e}}});let o="add"===e[2]&&on(e),r="advance"===e[2]&&rn(e);return{c(){Ee(t.$$.fragment),s=F(),o&&o.c(),n=F(),r&&r.c(),a=z()},m(e,l){Ce(t,e,l),O(e,s,l),o&&o.m(e,l),O(e,n,l),r&&r.m(e,l),O(e,a,l),i=!0},p(e,s){const i={};1&s[0]&&(i.desc=e[0]?u(ft.descAdvanced):u(ft.desc)),231&s[0]|2097152&s[1]&&(i.$$scope={dirty:s,ctx:e}),t.$set(i),"add"===e[2]?o?(o.p(e,s),4&s[0]&&ke(o,1)):(o=on(e),o.c(),ke(o,1),o.m(n.parentNode,n)):o&&(Se(),we(o,1,1,(()=>{o=null})),xe()),"advance"===e[2]?r?(r.p(e,s),4&s[0]&&ke(r,1)):(r=rn(e),r.c(),ke(r,1),r.m(a.parentNode,a)):r&&(Se(),we(r,1,1,(()=>{r=null})),xe())},i(e){i||(ke(t.$$.fragment,e),ke(o),ke(r),i=!0)},o(e){we(t.$$.fragment,e),we(o),we(r),i=!1},d(e){$e(t,e),e&&G(s),o&&o.d(e),e&&G(n),r&&r.d(e),e&&G(a)}}}function cn(){return b.getValue("avdef://config/GuiCache/DisableExceptionAdvancedMode")}function pn(s,n,a){let i,o,r;const{Container:l,Badge:c}=w;let p=null,d=null,u=!1,g=!1,h=null,f=null,m=null,b=[];function _(e,s){if(!d||s){const e=Pt.map((e=>t("app.settings.Get",{name:e.path})));d=Promise.all(e).then((e=>{const t={};return e.forEach(((e,s)=>{t[Pt[s].path]=e||{},null==e&&console.warn("Exceptions: list resposne is empty",Pt[s])})),t}))}return d.then((t=>e?t[e]:t))}function v(){_().then((e=>Pt.some((t=>e[t.path].locked)))).then((e=>a(1,g=e)))}function y(){const e=Pt.map((e=>function(e){return _(e.path).then((t=>{let s=[];t.value&&(s=t.value.split(e.type==It?";":'";"').map((t=>{if(e.type==It){const{value:s,cmd:n,args:a}=function(e){const t=atob(e),s=t.lastIndexOf(";"),n=t.substring(s+1)||"";let a,i=t.substring(0,s);i=Ot(i);try{a=atob(n)}catch{console.log("invalid based64 args")}return{value:`${i} ${a}`,cmd:i,args:a}}(t);return{value:s,cmd:n,args:a,type:e.type}}{const s=t.match(/<(R|W|X|RW|RWX|WX)>(.+)/);let n,a;return s&&s.length>2?(n=s[2],a=s[1]):n=t.replace(Et,""),{value:n,accessRights:a,type:e.type}}})));const n=[...new Map(s.map((e=>[e.value,e]))).values()];return n.length!==s.length&&S(e.type),n}))}(e)));return Promise.all(e).then((e=>_t.apply(null,e))).then((e=>a(17,b=function(e){const t=Nt(e,vt);return[St,xt,kt,wt,Tt].forEach((s=>{const n=Nt(e,s);t.forEach((t=>{const s=n.find((e=>e.value===t.value));if(s){const t=e.findIndex((e=>e.value===s.value&&e.type===s.type));e.splice(t,1)}}))})),e}(e))))}function S(e){return function(e,s){const n=s.map((t=>e.type==It?function(e){let t,s,n="",a="",i="";/^['"`]/.test(e[0])?(t=1,s=e.search(/.['"`]/)+1):(t=0,s=e.search(/\s/)),n=e.substring(t,s).trim(),a=e.substring(s+1).trim();try{i=btoa(a)}catch{console.log("unable to convert to base64",a)}const o=`${n};${i}`;let r="";try{r=btoa(o)}catch{console.log("unable to convert cmdLineEx to base64",o)}return r}(t.value):t.accessRights?'"<'+t.accessRights+">"+t.value+'"':'"'+t.value+'"')).join(";");return t("app.settings.Set",{name:e.path,value:n})}(Pt.find((t=>t.type===e)),b.filter((t=>t.type===e)))}function x(t){if(e.emit("Settings.gaTrack","Remove exception",t.type),t.type!==yt){const e=[...b],s=e.findIndex((e=>e.value===t.value&&e.type===t.type));return e.splice(s,1),a(17,b=e),S(t.type)}{const{fileSubType:e,shieldSubType:s}=t;e.map((e=>{const s=[...b],n=b.findIndex((s=>s.value===t.value&&s.type===e));return s.splice(n,1),a(17,b=s),S(e)})),s.map((e=>{const s=[...b],n=b.findIndex((s=>s.value===t.value&&s.type===e));return s.splice(n,1),a(17,b=s),S(e)}))}}function k(t,s=!1,n=!1){const i=t.trim();if(!Ct.test(i))return void a(3,f="file");e.emit("Settings.gaTrack","Add exception",vt);Mt(i).then((e=>{e?Gt(b,e,n)?(n&&x(n),a(17,b=[...b,{value:e,accessRights:s,type:vt}]),S(vt),L()):a(3,f="duplicity"):a(3,f="file")}))}function T(t,s=!1){const{exception:n,fileSubType:i,shieldSubType:o}=t,r=n.trim().split('";"').map((e=>e.replace(Et,""))).map((e=>Mt(e)));Promise.all(r).then((t=>{let n=!1,r=!1,l=!1;if(t.forEach((t=>{if(e.emit("Settings.gaTrack","Add exception",vt),!Ct.test(t))return a(3,f="file"),void(l=!0);Gt(b,t)&&(i&&3!==i.length?(r=!0,P({exception:t,fileSubType:i,shieldSubType:o})):(a(17,b=[...b,{value:t,type:vt}]),n=!0))})),!r){if(!n)return a(3,f=l?"file":"duplicity");s&&x(s),S(vt),L()}}))}function A(t,s=!1){const n=t.trim();if(!Lt.test(n))return void a(3,f="url");e.emit("Settings.gaTrack","Add exception",At);(function(e){if(!isNaN(+e)||e&&0===e.length)return Promise.resolve(e);"*"!==e.slice(-1)&&("/"!==e.slice(-1)?e.indexOf("://")+3<e.lastIndexOf("/")&&e.lastIndexOf("/")<e.lastIndexOf(".")?e+="*":e+="/*":e+="*");const t=[];return e.includes("://")?t.push(e):t.push("http://"+e,"https://"+e),Promise.resolve(t.reduce(((e,t)=>{const s=t.match(/(^(?:(\w{2,})?:\/\/)?(?:[^@/\n]+@)?(\[[^\]]{2,}\]|[^:/?\n]+))/);if(s.length>1){const t=s[1]+"/*";e.push(t)}else e.push(t);return e}),[]))})(n).then((e=>{if(!e)return a(3,f="url");{const t=[];e.forEach(((e,n)=>{Gt(b,e)&&(s&&0===n&&x(s),t.push({value:e,type:At}))})),0===t.length?a(3,f="duplicity"):(a(17,b=[...b,...t]),S(At),L())}}))}function I(e){const{exception:t}=e;return N(),$t.test(t)?T(e):Ct.test(t)?k(t,!1,!1):Lt.test(t)?A(t):void a(3,f="auto")}function P(t,s=!1){const{exception:n,accessRights:i,fileSubType:o,shieldSubType:r}=t,l=n.trim(),c=[];if(!Ct.test(l))return void a(3,f="file");Mt(l).then((t=>{if(t)if(Gt(b,t,s)){const n=o.map((s=>(c.push(s),e.emit("Settings.gaTrack","Add exception",s),{value:t,accessRights:i,type:s}))),l=r.map((s=>(c.push(s),e.emit("Settings.gaTrack","Add exception",s),{value:t,accessRights:i,type:s})));s&&x(s),a(17,b=[...b,...n,...l]);const p=[];c.forEach((e=>p.push(S(e)))),Promise.all(p).then((()=>L()))}else a(3,f="duplicity");else a(3,f="file")}))}function E(t,s){const{exception:n,accessRights:i,exceptionType:o,fileSubType:r}=t;return N(),o===vt?$t.test(n)?T(t,s):3!==r.length?P(t):k(n,i,s):o===At?A(n,s):o===It?function(t,s="",n=!1){let i=t.trim().replace(/['"`]/g,"");if(i=Ot(i),!i)return a(3,f="cmdLine");e.emit("Settings.gaTrack","Add command line exception",It);const o=s.trim(),r=i+(o?" "+o:""),l=It;Gt(b,r)?(n&&x(n),a(17,b=[...b,{value:r,cmd:t,args:o,type:l}]),S(l),L()):a(3,f="duplicity")}(n,t.cmdParams,s):void 0}function C(e){a(4,m=e),a(2,h="advance")}function $(e){const{exceptionType:t,fileSubType:s,accessRights:n}=e,a=m.value!==e.exception,i=t===It&&m.cmdParams!==e.cmdParams;N(),!a&&!i||t!==It&&t!==At?t===vt?a&&3===s.length?E(e,m):3!==s.length?P(e,m):L():t===yt?3===s.length?k(e.exception,n,m):3!==s.length&&P(e,m):L():E(e,m)}function L(){m&&a(4,m=null),a(2,h=null),N()}function N(){a(3,f=null)}ne((()=>{p=e.on("app.settings.onStatusChanged",(()=>{_(null,!0).then((()=>{v(),y()}))})),cn().then((e=>{a(0,u=1!=e)})),v(),y()})),ae((()=>{p()}));return s.$$.update=()=>{131072&s.$$.dirty[0]&&a(5,i=Rt([...Nt(b,vt),...Ut(b)])),131072&s.$$.dirty[0]&&a(6,o=Rt(Nt(b,At))),131072&s.$$.dirty[0]&&a(7,r=Rt(Nt(b,It)))},[u,g,h,f,m,i,o,r,l,c,x,I,E,C,$,L,N,b,()=>a(2,h="add"),()=>a(2,h="advance"),e=>C(e),e=>x(e),e=>C(e),e=>x(e),e=>C(e),e=>x(e),()=>L(),e=>I(e.detail),()=>N(),()=>L(),e=>E(e.detail),e=>$(e.detail),()=>N()]}var dn=/^\[object .+?Constructor\]$/,un="object"==typeof mt&&mt&&mt.Object===Object&&mt,gn="object"==typeof self&&self&&self.Object===Object&&self,hn=un||gn||Function("return this")();function fn(e,t,s){switch(s.length){case 0:return e.call(t);case 1:return e.call(t,s[0]);case 2:return e.call(t,s[0],s[1]);case 3:return e.call(t,s[0],s[1],s[2])}return e.apply(t,s)}function mn(e,t){return!!(e?e.length:0)&&function(e,t,s){if(t!=t)return function(e,t,s,n){var a=e.length,i=s+(n?1:-1);for(;n?i--:++i<a;)if(t(e[i],i,e))return i;return-1}(e,vn,s);var n=s-1,a=e.length;for(;++n<a;)if(e[n]===t)return n;return-1}(e,t,0)>-1}function bn(e,t,s){for(var n=-1,a=e?e.length:0;++n<a;)if(s(t,e[n]))return!0;return!1}function _n(e,t){for(var s=-1,n=t.length,a=e.length;++s<n;)e[a+s]=t[s];return e}function vn(e){return e!=e}function yn(e,t){return e.has(t)}function Sn(e){var t=-1,s=Array(e.size);return e.forEach((function(e){s[++t]=e})),s}var xn,kn=Array.prototype,wn=Function.prototype,Tn=Object.prototype,An=hn["__core-js_shared__"],In=(xn=/[^.]+$/.exec(An&&An.keys&&An.keys.IE_PROTO||""))?"Symbol(src)_1."+xn:"",Pn=wn.toString,En=Tn.hasOwnProperty,Cn=Tn.toString,$n=RegExp("^"+Pn.call(En).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ln=hn.Symbol,Nn=Tn.propertyIsEnumerable,Rn=kn.splice,Un=Ln?Ln.isConcatSpreadable:void 0,Dn=Math.max,Mn=Kn(hn,"Map"),On=Kn(hn,"Set"),Gn=Kn(Object,"create");function jn(e){var t=-1,s=e?e.length:0;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}function Bn(e){var t=-1,s=e?e.length:0;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}function Vn(e){var t=-1,s=e?e.length:0;for(this.clear();++t<s;){var n=e[t];this.set(n[0],n[1])}}function Fn(e){var t=-1,s=e?e.length:0;for(this.__data__=new Vn;++t<s;)this.add(e[t])}function zn(e,t){for(var s,n,a=e.length;a--;)if((s=e[a][0])===(n=t)||s!=s&&n!=n)return a;return-1}function qn(e,t,s,n,a){var i=-1,o=e.length;for(s||(s=Jn),a||(a=[]);++i<o;){var r=e[i];t>0&&s(r)?t>1?qn(r,t-1,s,n,a):_n(a,r):n||(a[a.length]=r)}return a}function Wn(e){return!(!aa(e)||(t=e,In&&In in t))&&(na(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(s){}return t}(e)?$n:dn).test(function(e){if(null!=e){try{return Pn.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e));var t}jn.prototype.clear=function(){this.__data__=Gn?Gn(null):{}},jn.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},jn.prototype.get=function(e){var t=this.__data__;if(Gn){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return En.call(t,e)?t[e]:void 0},jn.prototype.has=function(e){var t=this.__data__;return Gn?void 0!==t[e]:En.call(t,e)},jn.prototype.set=function(e,t){return this.__data__[e]=Gn&&void 0===t?"__lodash_hash_undefined__":t,this},Bn.prototype.clear=function(){this.__data__=[]},Bn.prototype.delete=function(e){var t=this.__data__,s=zn(t,e);return!(s<0)&&(s==t.length-1?t.pop():Rn.call(t,s,1),!0)},Bn.prototype.get=function(e){var t=this.__data__,s=zn(t,e);return s<0?void 0:t[s][1]},Bn.prototype.has=function(e){return zn(this.__data__,e)>-1},Bn.prototype.set=function(e,t){var s=this.__data__,n=zn(s,e);return n<0?s.push([e,t]):s[n][1]=t,this},Vn.prototype.clear=function(){this.__data__={hash:new jn,map:new(Mn||Bn),string:new jn}},Vn.prototype.delete=function(e){return Yn(this,e).delete(e)},Vn.prototype.get=function(e){return Yn(this,e).get(e)},Vn.prototype.has=function(e){return Yn(this,e).has(e)},Vn.prototype.set=function(e,t){return Yn(this,e).set(e,t),this},Fn.prototype.add=Fn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Fn.prototype.has=function(e){return this.__data__.has(e)};var Hn=On&&1/Sn(new On([,-0]))[1]==1/0?function(e){return new On(e)}:function(){};function Yn(e,t){var s,n,a=e.__data__;return("string"==(n=typeof(s=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==s:null===s)?a["string"==typeof t?"string":"hash"]:a.map}function Kn(e,t){var s=function(e,t){return null==e?void 0:e[t]}(e,t);return Wn(s)?s:void 0}function Jn(e){return ea(e)||function(e){return sa(e)&&En.call(e,"callee")&&(!Nn.call(e,"callee")||"[object Arguments]"==Cn.call(e))}(e)||!!(Un&&e&&e[Un])}var Xn,Zn,Qn=(Xn=function(e){var t,s,n=(s=(t=e)?t.length:0)?t[s-1]:void 0;return sa(n)&&(n=void 0),function(e,t,s){var n=-1,a=mn,i=e.length,o=!0,r=[],l=r;if(s)o=!1,a=bn;else if(i>=200){var c=t?null:Hn(e);if(c)return Sn(c);o=!1,a=yn,l=new Fn}else l=t?[]:r;e:for(;++n<i;){var p=e[n],d=t?t(p):p;if(p=s||0!==p?p:0,o&&d==d){for(var u=l.length;u--;)if(l[u]===d)continue e;t&&l.push(d),r.push(p)}else a(l,d,s)||(l!==r&&l.push(d),r.push(p))}return r}(qn(e,1,sa,!0),void 0,n)},Zn=Dn(void 0===Zn?Xn.length-1:Zn,0),function(){for(var e=arguments,t=-1,s=Dn(e.length-Zn,0),n=Array(s);++t<s;)n[t]=e[Zn+t];t=-1;for(var a=Array(Zn+1);++t<Zn;)a[t]=e[t];return a[Zn]=n,fn(Xn,this,a)});var ea=Array.isArray;function ta(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!na(e)}function sa(e){return function(e){return!!e&&"object"==typeof e}(e)&&ta(e)}function na(e){var t=aa(e)?Cn.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function aa(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var ia=Qn;const oa=new class extends n{constructor(){super(),this.EVENTS={shieldsChanged:"shieldsChanged",appsChanged:"appsChanged"},this._SHIELDS={antiransomware:{path:"avcfg://exclusions/FileProtection/ExcludedFiles",setupId:"ais_shl_rsw",funcs:{loadApps:()=>this._loadArwPapApps("antiransomware"),saveApp:(e,t)=>this._saveArwPapApp(e,t)}},webcam:{path:"webcam://webcam/common/application_list",setupId:"ais_cmp_webcam",funcs:{loadApps:()=>this._loadSdsWcApps("webcam"),saveApp:(e,t)=>this._saveSdsWcApp(e,t)}},sensitivedata:{path:"sds://SensitiveDataScan/Common/ApplicationList",setupId:"ais_cmp_datascan_full",funcs:{loadApps:()=>this._loadSdsWcApps("sensitivedata"),saveApp:(e,t)=>this._saveSdsWcApp(e,t)}},passwordProtection:{path:"avcfg://exclusions/PasswordProtection/ExcludedFiles",setupId:"ais_cmp_avpap",funcs:{loadApps:()=>this._loadArwPapApps("passwordProtection"),saveApp:(e,t)=>this._saveArwPapApp(e,t)}}},this._appMap={},this._shields=[],this._loadAppsPromise=null,this._userCount=0,this._listeneres=[]}init(){for(const e in this._SHIELDS)this._listeneres.push(_.on("product.change.feature."+this._SHIELDS[e].setupId,this._setShields.bind(this)));this._listeneres.push(e.on("settings.blockedAndAllowedApps.changed",(e=>{setTimeout(this._updateApps.bind(this),e?.updateDelay||0)}))),0===this._userCount&&(this._setShields(),this._loadApps()),this._userCount++}destroy(){this._listeneres.forEach((e=>e())),this._listeneres.length=0,this._userCount=Math.max(this._userCount-1,0),0===this._userCount&&(this._shields.length=0,this._appMap={},this._loadAppsPromise=null)}getShields(){return this._shields}loadApps(){return this._loadApps().then((e=>Object.keys(e).map((t=>this._copyObject(e[t]))).sort(((e,t)=>e.name.localeCompare(t.name)))))}getApp(e){return this._copyObject(this._appMap[e])}saveApp(e){const t=this._shields.map((t=>this._SHIELDS[t].funcs.saveApp(e,t)));return t.push(m.injectAppData(e)),Promise.all(t).then((()=>{this._appMap[e.path]=e,this.emit(this.EVENTS.appsChanged)}))}fakeAllShieldsActiveBeforeDelete(e,t){this._shields.forEach((s=>{this._appMap[e].shields[s]=t}))}_setShields(){this._shields.length=0;for(const e in this._SHIELDS){const t=this._SHIELDS[e].setupId;_.isInstalled(t)&&_.isLicensed(t)&&this._shields.push(e)}this.emit(this.EVENTS.shieldsChanged)}_updateApps(){this._loadApps(!0).then((()=>{this.emit(this.EVENTS.appsChanged)}))}_getAppList(){return Object.keys(this._appMap).map((e=>this._appMap[e]))}_loadApps(e){return!e&&this._loadAppsPromise||(this._loadAppsPromise=Promise.all(this._shields.map((e=>this._SHIELDS[e].funcs.loadApps()))).then((e=>{this._appMap={},e.forEach(((e,t)=>{const s=this._shields[t];e&&e.forEach((e=>{this._appMap[e.path]=this._appMap[e.path]||{path:e.path},this._appMap[e.path].shields=this._appMap[e.path].shields||{},this._appMap[e.path].shields[s]=e.blocked?"blocked":"allowed"}))}));const t=Object.keys(this._appMap).map((e=>m.injectAppData(this._appMap[e])));return Promise.all(t).then((()=>this._appMap))})).catch((e=>{console.error("loading apps failed",e),this._loadAppsPromise=null}))),this._loadAppsPromise}_loadArwPapApps(e){const s=this._SHIELDS[e].path;return t("app.settings.Get",{name:s}).then((e=>{if(!e.value)return;const t=/(.*)<block=(\d)>/,s=[];return this._getArwPapAppPaths(e.value).forEach((e=>{const n=t.exec(e);n&&s.push({path:n[1],blocked:"1"==n[2]})})),s})).catch((e=>{console.error("loading "+s,e)}))}_getArwPapAppPaths(e){if(!e)return[];const t=[];for(let s of e.split(">;"))s.endsWith(">")||(s+=">"),t.push(s);return t}_loadSdsWcApps(e){const s=this._SHIELDS[e].path;return t("app.settings.Get",{name:s}).then((e=>e.value?e.value.map((e=>({path:e.filename,blocked:!e.allow}))):[]))}_saveArwPapApp(e,s){const n=this._SHIELDS[s].path,a=ia([e],this._getAppList(),((e,t)=>e.path===t.path)).filter((e=>null!=e.shields[s])).map((e=>e.path+"<block="+("blocked"===e.shields[s]?1:0)+">")).join(";");return void 0===e.shields[s]?Promise.resolve():t("app.settings.Set",{name:n,value:a})}_saveSdsWcApp(e,s){const n=this._SHIELDS[s].path,a="blocked"===e.shields[s],i="blocked"===e.shields[s]?0:1;let o;if(void 0===e.shields[s])return Promise.resolve();if(this._appMap[e.path]&&this._appMap[e.path].shields[s])null==e.shields[s]?(delete e.shields[s],o="delete"):this._appMap[e.path].shields[s]!==e.shields[s]&&(o="switch");else{if(null===e.shields[s])return Promise.resolve();o="add"}return o?t("app.settings.Set",{name:n,value:{filename:e.path,action:o,blocked:a,allow:i}}):Promise.resolve()}_copyObject(e){return e?JSON.parse(JSON.stringify(e)):e}},ra={title:"settings.blockedAndAllowedApps",desc:"settings.blockedAndAllowedApps.desc",appName:"settings.blockedAndAllowedApps.appName",noApps:"settings.blockedAndAllowedApps.noApps",addApp:"settings.blockedAndAllowedApps.addApp",changeApp:"settings.blockedAndAllowedApps.changeApp",removeApp:"settings.blockedAndAllowedApps.removeApp",list:{blocked:{title:"settings.blockedAndAllowedApps.blockedApps",addLabel:"settings.blockedAndAllowedApps.blockedApps.addLabel",appliedFor:"settings.blockedAndAllowedApps.blockedApps.appliedFor",changeFeaturesLabel:"settings.blockedAndAllowedApps.blockedApps.changeFeaturesLabel",addTitle:"settings.blockedAndAllowedApps.blockedApps.addTitle",addDesc:"settings.blockedAndAllowedApps.blockedApps.addDesc",changeTitle:"settings.blockedAndAllowedApps.blockedApps.changeTitle",featuresLabel:"settings.blockedAndAllowedApps.blockedApps.featuresLabel"},allowed:{title:"settings.blockedAndAllowedApps.allowedApps",addLabel:"settings.blockedAndAllowedApps.allowedApps.addLabel",appliedFor:"settings.blockedAndAllowedApps.allowedApps.appliedFor",changeFeaturesLabel:"settings.blockedAndAllowedApps.allowedApps.changeFeaturesLabel",addTitle:"settings.blockedAndAllowedApps.allowedApps.addTitle",addDesc:"settings.blockedAndAllowedApps.allowedApps.addDesc",changeTitle:"settings.blockedAndAllowedApps.allowedApps.changeTitle",featuresLabel:"settings.blockedAndAllowedApps.allowedApps.featuresLabel"}},noShield:"settings.blockedAndAllowedApps.noShield"},la={blocked:{id:"settings-blockedAndAllowedApps-blocked",list:[],search:ra.list.blocked.title},allowed:{id:"settings-blockedAndAllowedApps-allowed",list:[],search:ra.list.allowed.title}},ca={title:ra.title,items:[la.blocked,la.allowed]},pa=x.extend({template:{v:3,t:[{t:7,e:"SettingsContainer",a:{title:[{t:2,x:{r:["nls","STRINGS.title"],s:"_0(_1)"}}],desc:[{t:2,x:{r:["nls","STRINGS.desc"],s:"_0(_1)"}}]},f:[{t:4,f:[{t:4,f:[{t:7,e:"div",a:{class:"settings__row",id:[{t:2,r:"id"}]},f:[{t:7,e:"h4",a:{class:"h4 g-margin-bottom--20"},f:[{t:3,x:{r:["nls","listType","STRINGS.list"],s:"_0(_2[_1].title)"}}]}," ",{t:7,e:"kin-button",a:{type:"secondary",class:"g-margin-bottom--20","data-test":["baw_add_",{t:2,r:"listType"},"_app"]},v:{click:{n:"showAppDialog",d:[{t:2,r:"listType"}]}},f:[{t:7,e:"kin-icon",a:{name:"icon-s-add",size:"16",class:"g-margin-right--5"}}," ",{t:3,x:{r:["nls","listType","STRINGS.list"],s:"_0(_2[_1].addLabel)"}}]}," ",{t:4,f:[{t:7,e:"table",a:{class:"table -small -fixed -compact g-margin-bottom--20"},f:[{t:7,e:"colgroup",f:[{t:7,e:"col",a:{width:"25%"}}," ",{t:7,e:"col",a:{width:"44%"}}," ",{t:7,e:"col",a:{width:"23%"}}," ",{t:7,e:"col",a:{width:"8%"}}]}," ",{t:7,e:"tr",f:[{t:7,e:"th",a:{colspan:"2"},f:[{t:3,x:{r:["nls","STRINGS.appName"],s:"_0(_1)"}}]}," ",{t:7,e:"th",a:{colspan:"2"},f:[{t:3,x:{r:["nls","listType","STRINGS.list"],s:"_0(_2[_1].appliedFor)"}}]}]}," ",{t:4,f:[{t:7,e:"tr",a:{class:"-hoverable"},f:[{t:7,e:"td",f:[{t:2,r:"name"}]}," ",{t:7,e:"td",a:{"data-test":[{t:2,r:"listType"},"_apps-appPath"]},f:[{t:7,e:"kin-tooltip",a:{ellipsis:"true"},f:[{t:7,e:"p",a:{slot:"tooltip-activator",class:"text -small -secondary"},f:[{t:2,r:"path"}]}," ",{t:7,e:"div",a:{slot:"tooltip"},f:[{t:2,r:"path"}]}]}]}," ",{t:7,e:"td",f:[{t:4,f:[{t:4,f:[{t:7,e:"kin-tooltip",a:{"data-test":["baw_shield_",{t:2,r:"."}]},f:[{t:7,e:"span",a:{slot:"tooltip-activator"},f:[{t:7,e:"kin-icon",a:{name:[{t:2,rx:{r:"SHIELD_ICONS",m:[{t:30,n:"."}]}}],size:"28"}}]}," ",{t:7,e:"div",a:{slot:"tooltip"},f:[{t:2,x:{r:["nls","SHIELD_TRANS","."],s:"_0(_1[_2]||_2)"}}]}]}],n:50,x:{r:[".","shields","listType"],s:"_1&&_1[_0]===_2"}}],n:52,r:"shieldList"}]}," ",{t:7,e:"td",f:[{t:7,e:"kin-dropdown",f:[{t:7,e:"div",a:{slot:"dropdown-activator"},f:[{t:7,e:"kin-button",a:{type:"blank",size:"tiny",icononly:"true","data-test":"kin_table-item-options",title:[{t:2,x:{r:["nls"],s:'_0("global.moreOptions")'}}]},f:[{t:7,e:"kin-icon",a:{name:"icon-s-controls-menu-more",size:"14"},f:[]}]}]}," ",{t:7,e:"kin-dropdown-item",v:{click:{n:"showAppDialog",d:[{t:2,r:"listType"},",",{t:2,r:"."}]}},a:{type:"button","data-test":"kin_dropdown-item-change"},f:[{t:3,x:{r:["nls","listType","STRINGS.list"],s:"_0(_2[_1].changeFeaturesLabel)"}}]}," ",{t:7,e:"kin-dropdown-item",v:{click:{n:"removeApp",d:[{t:2,r:"listType"},",",{t:2,r:"."}]}},a:{type:"button","data-test":"kin_dropdown-item-remove"},f:[{t:3,x:{r:["nls","STRINGS.removeApp"],s:"_0(_1)"}}]}]}]}]}],n:52,r:"list"}]}],n:50,r:"list.length"},{t:4,n:51,f:[{t:7,e:"p",a:{class:"p -small -secondary g-margin-bottom--20"},f:[{t:3,x:{r:["nls","STRINGS.noApps"],s:"_0(_1)"}}]}],r:"list.length"}]}],i:"listType",r:"appLists"}],n:50,r:"shieldList.length"},{t:4,n:51,f:[{t:7,e:"p",f:[{t:2,x:{r:["nls","STRINGS.noShield"],s:"_0(_1)"}}]}],r:"shieldList.length"}]}," ",{t:4,f:[{t:4,f:[{t:7,e:"Modal",a:{title:[{t:2,r:"appDialog.title"}],subtitle:[{t:2,r:"appDialog.app.name"}]},f:[{t:7,e:"p",a:{class:"p g-align--left g-margin-bottom--10"},f:[{t:3,x:{r:["nls","appDialog.listType","STRINGS.list"],s:"_1&&_0(_2[_1].featuresLabel)"}}]}," ",{t:7,e:"table",a:{class:"table -compact -no-border -fixed g-margin-bottom--20"},f:[{t:7,e:"colgroup",f:[{t:7,e:"col",a:{width:"5%"}}," ",{t:7,e:"col",a:{width:"95%"}}]}," ",{t:4,f:[{t:7,e:"tr",f:[{t:7,e:"td",f:[{t:7,e:"input",a:{type:"checkbox",checked:[{t:2,rx:{r:"appDialog.shields",m:[{t:30,n:"."}]}}],class:"checkbox",id:["baa_changeShield-",{t:2,r:"."}]}}]}," ",{t:7,e:"td",f:[{t:7,e:"label",a:{for:["baa_changeShield-",{t:2,r:"."}]},f:[{t:7,e:"kin-icon",a:{name:[{t:2,rx:{r:"SHIELD_ICONS",m:[{t:30,n:"."}]}}],size:"24"}}," ",{t:7,e:"span",a:{class:"g-margin-left--10"},f:[{t:2,x:{r:["nls","SHIELD_TRANS","."],s:"_0(_1[_2]||_2)"}}]}]}]}]}],n:52,r:"shieldList"}]}," ",{t:7,e:"kin-button",v:{click:"saveApp"},a:{"data-test":"baa_changeShield-add"},f:[{t:7,e:"span",f:[{t:4,f:[{t:3,x:{r:["nls","STRINGS.addApp"],s:"_0(_1)"}}],n:50,r:"appDialog.isNewApp"},{t:4,n:51,f:[{t:3,x:{r:["nls","STRINGS.changeApp"],s:"_0(_1)"}}],r:"appDialog.isNewApp"}]}]}]}],n:50,r:"appDialog.app"},{t:4,n:51,f:[{t:7,e:"InstalledApps",a:{title:[{t:2,r:"appDialog.title"}],desc:[{t:2,r:"appDialog.desc"}],addedAppPaths:[{t:2,r:"appDialog.addedAppPaths"}]}}],r:"appDialog.app"}],n:50,r:"appDialog"}]},components:{InstalledApps:T.InstalledApps},data:()=>({STRINGS:ra,SHIELD_TRANS:{webcam:"webcamshield",passwordProtection:"passwordProtection"},SHIELD_ICONS:{antiransomware:"icon-m-tools-ransomware",webcam:"icon-l-webcam",sensitivedata:"icon-l-sensitive-data",passwordProtection:"password-protection"},shieldList:oa.getShields(),appDialog:null,appLists:la}),oninit(){oa.init(),this.on("showAppDialog",((e,t,s)=>this.showAppDialog(t,s))),this.on("removeApp",((e,t,s)=>this.removeApp(t,s))),this.on("saveApp",this.saveApp.bind(this)),this.on("Modal.modalClose",this.closeAppDialog.bind(this,!0)),this.on("InstalledApps.appSelected",this.onNewAppSelected.bind(this)),this.on("InstalledApps.close",this.closeAppDialog.bind(this,!0)),this.offShieldsChanged=oa.on(oa.EVENTS.shieldsChanged,(()=>{this.set("shieldList",oa.getShields())})),this.offAppsChanged=oa.on(oa.EVENTS.appsChanged,this.loadAppLists.bind(this)),this.loadAppLists()},onteardown(){this.offAppsChanged(),oa.destroy()},loadAppLists(){oa.loadApps().then((e=>{const t=[],s=[];e.forEach((e=>{const n=this.get("shieldList"),a=n.some((t=>"blocked"===e.shields[t])),i=n.some((t=>"allowed"===e.shields[t]));a&&t.push(e),i&&s.push(e)})),this.merge("appLists.blocked.list",t,{compare:"path"}),this.merge("appLists.allowed.list",s,{compare:"path"}),this.updateAddedAppPaths()}))},removeApp(t,s){e.emit("Settings.gaTrack",this.capitalize(t)+" app list","Remove app",s.name),this.get("shieldList").forEach((e=>{s.shields[e]===t&&(s.shields[e]=null)})),oa.saveApp(s)},saveApp(){const t=this.get("appDialog.listType"),s=this.get("appDialog.app"),n=this.get("appDialog.shields"),a=oa.getApp(s.path)||{},i=this.capitalize(t)+" app list";e.emit("Settings.gaTrack",i,"Save app",s.name),s.shields=s.shields||a.shields||{},this.get("shieldList").forEach((e=>{n[e]?s.shields[e]=t:s.shields[e]===t&&(s.shields[e]=null)})),oa.saveApp(s),this.closeAppDialog()},showAppDialog(t,s){const n={listType:t,app:s,isNewApp:this.get("appDialog.isNewApp")||!s},a=this.capitalize(t)+" app list";n.isNewApp?s?e.emit("Settings.gaTrack",a,"Set features",s.name):e.emit("Settings.gaTrack",a,"Add app"):e.emit("Settings.gaTrack",a,"Change features",s.name),s&&!n.isNewApp?n.title=u(ra.list[t].changeTitle):n.title=u(ra.list[t].addTitle),s?(n.shields={},this.get("shieldList").forEach((e=>{s.shields?n.shields[e]=s.shields[e]===t:n.shields[e]=t}))):(n.desc=u(ra.list[t].addDesc),n.addedAppPaths=this.getAddedAppPaths(t)),this.set("appDialog",n)},closeAppDialog(t){if(this.get("appDialog")){if(t){const t=this.capitalize(this.get("appDialog.listType")),s=this.get("appDialog.app");e.emit("Settings.gaTrack",t+" app list","Close app dialog",s&&s.name)}this.set("appDialog",null)}},onNewAppSelected(e){const t=this.get("appDialog.listType");this.showAppDialog(t,e)},getAddedAppPaths(e){return this.get("appLists."+e+".list").map((e=>e.path))},updateAddedAppPaths(){const e=this.get("appDialog");e&&this.set("appDialog.addedAppPaths",this.getAddedAppPaths(e.listType))},capitalize:e=>e[0].toUpperCase()+e.slice(1)});var da=/^\s+|\s+$/g,ua=/^[-+]0x[0-9a-f]+$/i,ga=/^0b[01]+$/i,ha=/^0o[0-7]+$/i,fa=parseInt,ma="object"==typeof mt&&mt&&mt.Object===Object&&mt,ba="object"==typeof self&&self&&self.Object===Object&&self,_a=ma||ba||Function("return this")(),va=Object.prototype.toString,ya=Math.max,Sa=Math.min,xa=function(){return _a.Date.now()};function ka(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function wa(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==va.call(e)}(e))return NaN;if(ka(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ka(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(da,"");var s=ga.test(e);return s||ha.test(e)?fa(e.slice(2),s?2:8):ua.test(e)?NaN:+e}var Ta=function(e,t,s){var n,a,i,o,r,l,c=0,p=!1,d=!1,u=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var s=n,i=a;return n=a=void 0,c=t,o=e.apply(i,s)}function h(e){return c=e,r=setTimeout(m,t),p?g(e):o}function f(e){var s=e-l;return void 0===l||s>=t||s<0||d&&e-c>=i}function m(){var e=xa();if(f(e))return b(e);r=setTimeout(m,function(e){var s=t-(e-l);return d?Sa(s,i-(e-c)):s}(e))}function b(e){return r=void 0,u&&n?g(e):(n=a=void 0,o)}function _(){var e=xa(),s=f(e);if(n=arguments,a=this,l=e,s){if(void 0===r)return h(l);if(d)return r=setTimeout(m,t),g(l)}return void 0===r&&(r=setTimeout(m,t)),o}return t=wa(t)||0,ka(s)&&(p=!!s.leading,i=(d="maxWait"in s)?ya(wa(s.maxWait)||0,t):i,u="trailing"in s?!!s.trailing:u),_.cancel=function(){void 0!==r&&clearTimeout(r),c=0,n=l=a=r=void 0},_.flush=function(){return void 0===r?o:b(xa())},_};const Aa={title:"settings.password",desc:"settings.password.desc",createPassword:"settings.password.createPassword",createPasswordDesc:"settings.password.createPassword.desc",enterPassword:"settings.password.enterPassword",reenterPassword:"settings.password.reenterPassword",passwordsDontMatch:"settings.password.passwordsDontMatch",changePassword:"settings.password.changePassword",removePassword:"settings.password.removePassword",protectEverything:"settings.password.protectEverything",protectOnlyAdvancedSettings:"settings.password.protectOnlyAdvancedSettings",protectCustomParts:"settings.password.protectCustomParts",protectShields:"settings.password.protectShields",protectShieldSettings:"settings.password.protectShieldSettings",protectScans:"settings.password.protectScans",protectScanSettings:"settings.password.protectScanSettings",protectUpdate:"settings.password.protectUpdate",protectVirusChest:"settings.password.protectVirusChest",protectFirewall:"settings.password.protectFirewall"},Ia={title:Aa.title,desc:Aa.desc},Pa=x.extend({template:{v:3,t:[{t:7,e:"SettingsContainer",a:{title:[{t:3,x:{r:["nls","STRINGS.title"],s:"_0(_1)"}}],desc:[{t:3,x:{r:["nls","STRINGS.desc"],s:"_0(_1)"}}]},f:[{t:4,f:[{t:7,e:"SettingsRadio",a:{property:[{t:2,r:"protectOptions"}],"data-test":"settings_pwd-radio"},f:[],p:{customAreas:[{t:4,f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"."}]}}],n:52,r:"customAreas"}]}}],n:50,x:{r:["passwordCreated","protectOptionsEnabled"],s:"_0&&_1"}}," ",{t:7,e:"div",a:{class:"settings__row"},f:[{t:7,e:"kin-button",a:{"data-test":"settings_pwd-create","kin-disabled":[{t:2,r:"passwordLocked"}]},v:{click:"openPasswordForm"},f:[{t:7,e:"span",f:[{t:4,f:[{t:3,x:{r:["nls","STRINGS.changePassword"],s:"_0(_1)"}}],n:50,r:"passwordCreated"},{t:4,n:51,f:[{t:3,x:{r:["nls","STRINGS.createPassword"],s:"_0(_1)"}}],r:"passwordCreated"}]}]}," ",{t:4,f:[{t:7,e:"SettingsBadge"}],n:50,r:"passwordLocked"}]}," ",{t:4,f:[{t:4,f:[{t:7,e:"p",a:{class:"a g-margin-left--10","data-test":"settings_pwd-remove"},f:[{t:3,x:{r:["nls","STRINGS.removePassword"],s:"_0(_1)"}}," ",{t:7,e:"SettingsBadge"}]}],n:50,r:"passwordLocked"},{t:4,n:51,f:[{t:7,e:"button",a:{class:"a g-margin-left--10","data-test":"settings_pwd-remove"},v:{click:"removePassword"},f:[{t:3,x:{r:["nls","STRINGS.removePassword"],s:"_0(_1)"}}]}],r:"passwordLocked"}],n:50,r:"passwordCreated"}]}," ",{t:4,f:[{t:7,e:"Modal",a:{title:[{t:3,x:{r:["nls","passwordCreated","STRINGS.changePassword","STRINGS.createPassword"],s:"_0(_1?_2:_3)"}}],subtitle:[{t:3,x:{r:["nls","STRINGS.createPasswordDesc"],s:"_0(_1)"}}],testId:"settings_pwd-modal"},f:[{t:7,e:"form",v:{submit:"changePassword"},f:[{t:7,e:"div",a:{class:"form__row -simple g-margin-toip--10","data-test":"settings_pwd-in1"},f:[{t:7,e:"Input",a:{id:"pwd1",innerValue:[{t:2,r:"password"}],type:"password",label:[{t:2,x:{r:["nls","STRINGS.enterPassword"],s:"_0(_1)"}}],error:[{t:2,x:{r:["passwordError"],s:"!!_0"}}],message:[{t:2,r:"passwordError"}],autofocus:0}}]}," ",{t:7,e:"div",a:{class:"form__row -simple","data-test":"settings_pwd-in2"},f:[{t:7,e:"Input",a:{id:"pwd2",innerValue:[{t:2,r:"password2"}],type:"password",label:[{t:2,x:{r:["nls","STRINGS.reenterPassword"],s:"_0(_1)"}}],error:[{t:2,x:{r:["password2Error"],s:"!!_0"}}],message:[{t:2,r:"password2Error"}]}}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"kin-button",v:{click:"changePassword"},a:{"data-test":"settings_pwd-change"},f:[{t:7,e:"span",f:[{t:4,f:[{t:3,x:{r:["nls","STRINGS.changePassword"],s:"_0(_1)"}}],n:50,r:"passwordCreated"},{t:4,n:51,f:[{t:3,x:{r:["nls","STRINGS.createPassword"],s:"_0(_1)"}}],r:"passwordCreated"}]}]}]}]}]}],n:50,r:"showPasswordForm"}]},CUSTOM_AREAS_VALUE:"_customAreas",data(){return{STRINGS:Aa,defaultProtectOption:"settings",protectOptionsEnabled:!0,passwordCreated:!1,passwordLocked:!1,showPasswordForm:!1,password:null,password2:null,passwordError:null,protectOptions:{id:"password-protectOptions",load:this.loadProtectOption.bind(this),change:this.changeProtectOption.bind(this),options:[{label:u(Aa.protectEverything),value:"ui"},{label:u(Aa.protectOnlyAdvancedSettings),value:"settings"}]},customAreas:[{id:"password-protect-protection",label:u(Aa.protectShields),load:this.loadArea.bind(this,"protection"),change:this.saveCustomAreas.bind(this),_value:"protection",track:{subject:"Protect shields"}},{id:"password-protect-protection_settings",label:u(Aa.protectShieldSettings),load:this.loadArea.bind(this,"protection_settings"),change:this.saveCustomAreas.bind(this),_value:"protection_settings",track:{subject:"Protect shield settings"}},{id:"password-protect-scan",label:u(Aa.protectScans),load:this.loadArea.bind(this,"scan"),change:this.saveCustomAreas.bind(this),_value:"scan",track:{subject:"Protect scans"}},{id:"password-protect-scan_settings",label:u(Aa.protectScanSettings),load:this.loadArea.bind(this,"scan_settings"),change:this.saveCustomAreas.bind(this),_value:"scan_settings",track:{subject:"Protect scan settings"}},{id:"password-protect-update",label:u(Aa.protectUpdate),load:this.loadArea.bind(this,"update"),change:this.saveCustomAreas.bind(this),_value:"update",track:{subject:"Protect update"}},{id:"password-protect-chest",label:u(Aa.protectVirusChest),load:this.loadArea.bind(this,"chest"),change:this.saveCustomAreas.bind(this),_value:"chest",track:{subject:"Protect virus chest"}},{id:"password-protect-firewall",label:u(Aa.protectFirewall),load:this.loadArea.bind(this,"firewall"),change:this.saveCustomAreas.bind(this),_value:"firewall",track:{subject:"Protect firewall"}}]}},oninit(){_.isAfbEdition()&&this.get("protectOptions.options").push({label:u(Aa.protectCustomParts),value:this.CUSTOM_AREAS_VALUE,customYield:"customAreas"}),this.on("openPasswordForm",(()=>{e.emit("Settings.gaTrack","PasswordForm","Open"),this.set("showPasswordForm",!0)}));const t=Ta(this.checkPasswords.bind(this,!1),500);this.observe("password",t,{init:!1}),this.observe("password2",t,{init:!1}),this.on("changePassword",(e=>{e.original.preventDefault(),this.checkPasswords(!0)&&this.changePassword().then(this.hidePasswordForm.bind(this)).catch((e=>{"unauthorized"===e?.code?console.info("Password change not granted",e):console.error("Password change failed",e),this.hidePasswordForm()}))})),this.on("removePassword",this.removePassword.bind(this)),this.on("Modal.modalClose",this.hidePasswordForm.bind(this)),y.on("change",this.loadPasswordCreated.bind(this)),this.loadPasswordCreated()},hidePasswordForm(){e.emit("Settings.gaTrack","PasswordForm","Close"),this.set("showPasswordForm",!1),this.set("password",null),this.set("password2",null),this.set("passwordError",null),this.set("password2Error",null)},checkPasswords(e){const t=this.get("password"),s=this.get("password2");let n=null,a=null;return e?(t!==s&&(a=u(Aa.passwordsDontMatch)),t||(n=u(Aa.enterPassword)),s||(a=u(Aa.reenterPassword))):t&&s&&t!==s?a=u(Aa.passwordsDontMatch):(null==t||t.length||(n=u(Aa.enterPassword)),null==s||s.length||(a=u(Aa.reenterPassword))),this.set("passwordError",n),this.set("password2Error",a),!n&&!a},loadPasswordCreated(){y.getData().then((e=>{this.set("passwordCreated",e.enabled),this.set("passwordLocked",e.enabledLocked)}))},changePassword(){return e.emit("Settings.gaTrack",this.get("passwordCreated")?"Change":"Create password"),y.setPassword(this.get("password")).then((()=>this.changeProtectOption(this.get("protectOptions").storedValue||this.get("defaultProtectOption"))))},removePassword(){e.emit("Settings.gaTrack","Remove password"),y.removePassword().catch((e=>{"unauthorized"===e?.code?console.info("Password removal not granted",e):console.error("Password removal failed",e)}))},loadProtectOption(){return y.getData().then((e=>{const t=this.get("protectOptions.options").map((e=>e.value)).find((t=>e.areas.includes(t)));return{locked:e.areasLocked,value:t||this.CUSTOM_AREAS_VALUE}}))},changeProtectOption(e){let t=[];return _.isAfbEdition()?(t=this.getProtectedCustomAreas(),e!==this.CUSTOM_AREAS_VALUE&&t.push(e)):"ui"===e?t=y.ALL_AREAS:"settings"===e?t=y.SETTINGS_AREAS:t.push(e),y.setProtectedAreas(t)},loadArea:e=>y.getData().then((t=>({locked:t.areasLocked,value:t.areas.includes(e)}))),saveCustomAreas(){const e=this.getProtectedCustomAreas();return y.setProtectedAreas(e)},getProtectedCustomAreas(){const e=[];return this.get("customAreas").forEach((t=>{t.value&&e.push(t._value)})),e}}),Ea=m.supportedSince("20.6"),Ca={title:"settings.personalPrivacy",desc:"settings.personalPrivacy.desc",community:"settings.personalPrivacy.community.label",dataSharingGa:"settings.personalPrivacy.dataSharingGa.label",dataSharingGa206:"settings.personalPrivacy.dataSharingGa.20.6.label",dataSharingGa206Desc:"settings.personalPrivacy.dataSharingGa.20.6.desc",allowOfferPopups:"settings.personalPrivacy.allowOfferPopups.label",allow3rdPartyOfferPopups:"settings.personalPrivacy.allow3rdPartyOfferPopups.label",footnote:"settings.personalPrivacy.footnote",improvements:"settings.personalPrivacy.improvements",offers:"settings.personalPrivacy.offers",trendAnalytics:"settings.personalPrivacy.trendAnalytics",personalization:"settings.personalPrivacy.personalization.title",allowPersonalization:"settings.personalPrivacy.allowPersonalization.label"};function $a(){const e={community:{id:"settings-personalPrivacy-community",label:u(Ca.community),track:{subject:"Participate"},path:"avcfg://settings/Common/PropertyCommunity",search:Ca.community},allow3rdPartyOfferPopups:{id:"settings-personalPrivacy-allow3rdPartyOfferPopups",label:u(Ca.allow3rdPartyOfferPopups),track:{subject:"Show 3rd offers"},path:"avcfg://settings/Common/Allow3rdPartyOfferPopups",applyOnChange:!0,search:Ca.allow3rdPartyOfferPopups},allowPersonalization:{id:"settings-personalPrivacy-allowPersonalization",label:u(Ca.allowPersonalization),track:{subject:"Allow Personalization"},load:()=>b.get("avcfg://settings/Common/DisablePersonalization").then((e=>(e.value=null==e.value||0===parseInt(e.value)?1:0,e))),change:e=>b.set("avcfg://settings/Common/DisablePersonalization",0===parseInt(e)?1:0),search:Ca.allowPersonalization}};return e.dataSharingGa={id:"settings-personalPrivacy-dataSharingGa",label:u(Ea?Ca.dataSharingGa206:Ca.dataSharingGa),desc:La(),track:{subject:"Allow usage GA"},path:"avcfg://settings/Common/PropertyDataSharingGa",search:{title:Ea?Ca.dataSharingGa206:Ca.dataSharingGa,desc:Ea?Ca.dataSharingGa206Desc:null}},_.isFreeProduct()||(e.allowOfferPopups={id:"settings-personalPrivacy-allowOfferPopups",label:u(Ca.allowOfferPopups),track:{subject:"Show our offers"},path:"avcfg://settings/Common/AllowOfferPopups",search:Ca.allowOfferPopups}),e}function La(){if(!Ea)return null;return c.replace(u(Ca.dataSharingGa206Desc),{suffix:"PRODUCT",onclick:["NAPI.track.event('Settings', 'Click', 'Product Policy')","NAPI.openIpmBrowser(403)"]})}const Na=x.extend({template:{v:3,t:[{t:7,e:"SettingsContainer",a:{title:[{t:3,x:{r:["nls","STRINGS.title"],s:"_0(_1)"}}],desc:[{t:3,r:"desc"}]},f:[{t:4,f:[{t:7,e:"h4",a:{class:"h4 g-margin-top--20"},f:[{t:2,x:{r:["nls","STRINGS.improvements"],s:"_0(_1)"}}]}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.community"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.dataSharingGa"}]}}," ",{t:7,e:"h4",a:{class:"h4 g-margin-top--20"},f:[{t:2,x:{r:["nls","STRINGS.offers"],s:"_0(_1)"}}]}," ",{t:4,f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.allowOfferPopups"}]}}],n:50,r:"properties.allowOfferPopups"}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.allow3rdPartyOfferPopups"}]}}," ",{t:7,e:"h4",a:{class:"h4 g-margin-top--20"},f:[{t:2,x:{r:["nls","STRINGS.personalization"],s:"_0(_1)"}}]}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.allowPersonalization"}]}}," ",{t:7,e:"p",a:{class:"p -small g-margin-top--20"},f:[{t:2,x:{r:["nls","STRINGS.footnote","productTranslated"],s:"_0(_1,_2)"}}]}],n:50,r:"properties"}]}]},data(){return{STRINGS:Ca,properties:$a(),desc:this.getDesc()}},computed:{productTranslated:function(){let e=u(m.getProductStringId());return"avg"===_.getProductId()&&(e="AVG "+e),e}},getDesc:()=>c.replace(u(Ca.desc),[{suffix:"PRIVACY",onclick:["NAPI.track.event('Settings', 'Click', 'Privacy Policy')","NAPI.openIpmBrowser(11)"]},{suffix:"PRODUCT",onclick:["NAPI.track.event('Settings', 'Click', 'Product Policy')","NAPI.openIpmBrowser(403)"]}])}),Ra=o.createLogger("settings.troubleshooting");o.setSeverity("settings.troubleshooting",o.SEVERITIES.INFO);const Ua=_.isAfbManaged(),Da=_.isTheOne(),Ma={title:"settings.troubleshooting",desc:"settings.troubleshooting.desc",offlineMode:"settings.troubleshooting.offlineMode.label",offlineModeDesc:"settings.troubleshooting.offlineMode.desc",offlineModeDescNote:"settings.troubleshooting.offlineMode.descNote",offlineModeConfirmTitle:"settings.troubleshooting.offlineMode.confirm.title",offlineModeConfirmDesc:"settings.troubleshooting.offlineMode.confirm.desc",passiveMode:"settings.troubleshooting.passiveMode.label",passiveModeDesc:"settings.troubleshooting.passiveMode.desc",passiveModeRestartOn:"settings.troubleshooting.passiveMode.restartOn",passiveModeRestartOff:"settings.troubleshooting.passiveMode.restartOff",selfDefense:"settings.troubleshooting.selfDefense.label",selfDefenseDesc:"settings.troubleshooting.selfDefense.desc",virtualizationMechanisms:"settings.troubleshooting.virtualizationMechanisms.label",virtualizationMechanismsDesc:"settings.troubleshooting.virtualizationMechanisms.desc",lateServiceStart:"settings.troubleshooting.lateServiceStart.label",lateServiceStartDesc:"settings.troubleshooting.lateServiceStart.desc",repairAndModifyTitle:"settings.troubleshooting.repairAndModifyTitle",repairAndModifyDesc:"settings.troubleshooting.repairAndModifyDesc",repair:"settings.troubleshooting.repair",repairConfirmationTitle:"settings.troubleshooting.repair",repairConfirmationDesc:"settings.troubleshooting.repair.confirmation.desc",repairConfirmationYes:"global.yes",repairConfirmationNo:"global.no",addAndModifyComponents:"settings.addAndModifyComponents",backupAndRestoreTitle:"settings.troubleshooting.backupAndRestoreTitle",backupAndRestoreDesc:"settings.troubleshooting.backupAndRestoreDesc",backupAndRestorePassiveModeOn:"settings.troubleshooting.backupAndRestorePassiveModeOn",backup:"settings.troubleshooting.backup",restore:"settings.troubleshooting.restore",locked:"settings.locked",notInstalled:"settings.notInstalled",resetToDefaultTitle:"settings.troubleshooting.resetToDefaultTitle",resetToDefaultDesc:"settings.troubleshooting.resetToDefaultDesc",resetToDefaultPassiveModeOn:"settings.troubleshooting.resetToDefaultPassiveModeOn",resetToDefault:"settings.troubleshooting.resetToDefault",resetSettingsTitle:"settings.troubleshooting.resetSettings.title",resetSettingsDesc:"settings.troubleshooting.resetSettings.desc",resetSettingsYes:"settings.troubleshooting.resetSettings.yes",resetSettingsNo:"settings.troubleshooting.resetSettings.no",settingsReset:"settings.troubleshooting.resetSettings.success",settingsExported:"settings.troubleshooting.settingsExported",settingsRestored:"settings.troubleshooting.settingsRestored",logs:"settings.troubleshooting.logs",debugLogging:"settings.troubleshooting.debugLogging.label",sendLogsTitle:"settings.troubleshooting.sendLogs.title",sendLogsDesc:"settings.troubleshooting.sendLogs.desc",sendLogsBtn:"settings.troubleshooting.sendLogs.btnLabel",pleaseRestartPC:"settings.pleaseRestartPC",ok:"global.ok",restartNow:"settings.restartNow",restartLater:"global.rebootLater",kb:"global.sizeUnits.kilobyte.standalone",theme:"settings.theme",themeDesc:"settings.theme.desc",themeSelect:"settings.useUpdatedTheme",performanceRecordingTitle:"settings.performanceRecording.title",performanceRecordingDesc:"settings.performanceRecording.desc",performanceRecordingBtn:"settings.performanceRecording.open.btn"};let Oa;function Ga(){return Oa=Oa||Promise.all([b.getValue("avdef://config/GuiCache/supportToolBtnVisible"),b.getValue("avdef://config/GuiCache/ThemeSwitch"),b.getValue("avdef://config/GuiCache/PerfToolBtnVisible")]).then((e=>{const t=e[0],s=parseInt(e[1]),n=e[2],i={passiveMode:{id:"settings-troubleshooting-passiveMode",label:u(Ma.passiveMode),desc:u(Ma.passiveModeDesc),track:{subject:"Passive mode"},load:null,change:null,showThrobberWhileChanging:!0,testAttr:"app.passivemode.GetStatus",value:null,search:{title:Ma.passiveMode,desc:Ma.passiveModeDesc}},selfDefense:{id:"settings-troubleshooting-selfDefense",label:u(Ma.selfDefense),desc:u(Ma.selfDefenseDesc),track:{subject:"Self-defense module"},path:"avcfg://settings/SelfDefense/SelfDefense",search:{title:Ma.selfDefense,desc:Ma.selfDefenseDesc}},virtualizationMechanisms:{id:"settings-troubleshooting-virtualizationMechanisms",label:u(Ma.virtualizationMechanisms),desc:u(Ma.virtualizationMechanismsDesc),track:{subject:"Hardware virtualization"},path:"avcfg://settings/Common/VirtualizationMechanisms",search:{title:Ma.virtualizationMechanisms,desc:Ma.virtualizationMechanismsDesc}},lateServiceStart:{id:"settings-troubleshooting-lateServiceStart",label:u(Ma.lateServiceStart),desc:u(Ma.lateServiceStartDesc),track:{subject:"Loading"},path:"avcfg://settings/Common/LateServiceStart",search:{title:Ma.lateServiceStart,desc:Ma.lateServiceStartDesc}},repairAndModify:{id:"settings-troubleshooting-repairAndModify",repairInProgress:!1,search:{title:Ma.repairAndModifyTitle,others:[Ma.repair]}},logs:{id:"settings-troubleshooting-logs",title:u(Ma.logs),search:Ma.logs},debugLogging:{id:"settings-troubleshooting-debugLogging",label:u(Ma.debugLogging),track:{subject:"Debug logging"},path:"avcfg://settings/Common/DebugLogging",search:Ma.debugLogging}};if(_.isLicensed("Firewall")&&(i.offlineMode={id:"settings-troubleshooting-offlineMode",label:u(Ma.offlineMode),desc:`${u(Ma.offlineModeDesc)} ${_.isInstalled("Firewall")?"":u(Ma.offlineModeDescNote)}`,track:{subject:"Offline mode"},path:"avcfg://Firewall/Firewall/InternetLock",change:null,applyOnChange:!0,disabled:!_.isInstalled("Firewall"),search:{title:Ma.offlineMode,desc:Ma.offlineModeDesc}}),s){const e=Object.keys(a.getModuleDefs()).reduce(((e,t)=>("MainCss"===t?e.push("default"):t.startsWith("MainCss_")&&e.push(t.replace(/^MainCss_/,"")),e)),[]);e.length>1&&(i.theme={id:"settings-troubleshooting-theme",title:u(Ma.theme),search:Ma.theme},i.uiTheme={id:"settings-troubleshooting-uiTheme",label:u(Ma.themeSelect),desc:u(Ma.themeDesc),track:{subject:"Theme"},change:null,path:"avcfg://settings/Common/UITheme",options:e.map((e=>({label:e,value:e}))),search:{title:Ma.themeSelect,desc:Ma.themeDesc}})}return Ua||(i.repairAndModify.search.others.push(Ma.addAndModifyComponents),Object.assign(i,{backupAndRestore:{id:"settings-troubleshooting-backupAndRestore",search:{title:Ma.backupAndRestoreTitle,others:[Ma.backup,Ma.restore]}},resetToDefault:{id:"settings-troubleshooting-resetToDefault",search:{title:Ma.resetToDefaultTitle,others:[Ma.resetToDefault]}}})),1==t&&Object.assign(i,{sendLogs:{id:"settings-troubleshooting-sendLogs",search:{title:Ma.sendLogsTitle,desc:Ma.sendLogsDesc,others:[Ma.sendLogsBtn]}}}),1==n&&Object.assign(i,{performanceRecording:{id:"settings-troubleshooting-performanceRecording",search:{title:Ma.performanceRecordingTitle,desc:Ma.performanceRecordingDesc,others:[Ma.performanceRecordingBtn]}}}),i}))}const ja=x.extend({template:{v:3,t:[{t:7,e:"SettingsContainer",a:{title:[{t:3,x:{r:["nls","STRINGS.title"],s:"_0(_1)"}}],desc:[{t:3,x:{r:["nls","STRINGS.desc"],s:"_0(_1)"}}],loaded:[{t:2,r:"loaded"}]},f:[{t:4,f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.offlineMode"}]}}],n:50,r:"properties.offlineMode"}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.passiveMode"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.selfDefense"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.virtualizationMechanisms"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.lateServiceStart"}]}}," ",{t:7,e:"div",a:{class:"settings__row g-margin-top--10 checkbox__row",id:[{t:2,r:"properties.repairAndModify.id"}]},f:[{t:7,e:"p",a:{class:"p stg_subtitle"},f:[{t:3,x:{r:["nls","STRINGS.repairAndModifyTitle"],s:"_0(_1)"}}]}," ",{t:7,e:"p",a:{class:"p checkbox__desc -margins"},f:[{t:3,x:{r:["nls","STRINGS.repairAndModifyDesc"],s:"_0(_1)"}}]}," ",{t:7,e:"kin-button",a:{class:"g-margin-right--10 g-margin-bottom--5"},v:{click:"repairProgram"},f:[{t:3,x:{r:["nls","STRINGS.repair"],s:"_0(_1)"}}]}," ",{t:4,f:[{t:7,e:"kin-button",a:{type:"secondary",class:"g-margin-bottom--5"},v:{click:"addAndModifyComponents"},f:[{t:3,x:{r:["nls","STRINGS.addAndModifyComponents"],s:"_0(_1)"}}]}],n:50,x:{r:["IS_AFB","IS_ONE"],s:"!_0&&!_1"}}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"settings__row g-margin-top--20 checkbox__row",id:[{t:2,r:"properties.backupAndRestore.id"}]},f:[{t:7,e:"p",a:{class:["p stg_subtitle ",{t:2,x:{r:["passiveMode.value"],s:'_0?"-light":""'}}]},f:[{t:3,x:{r:["nls","STRINGS.backupAndRestoreTitle"],s:"_0(_1)"}}]}," ",{t:7,e:"p",a:{class:["p checkbox__desc -margins ",{t:2,x:{r:["passiveMode.value"],s:'_0?"-light":""'}}]},f:[{t:3,x:{r:["nls","STRINGS.backupAndRestoreDesc"],s:"_0(_1)"}}," ",{t:4,f:[{t:7,e:"br"},{t:7,e:"strong",f:[{t:3,x:{r:["nls","STRINGS.backupAndRestorePassiveModeOn"],s:"_0(_1)"}}]}],n:50,r:"passiveMode.value"}]}," ",{t:7,e:"kin-button",a:{type:"secondary","kin-disabled":[{t:2,r:"passiveMode.value"}],class:"g-margin-right--10 g-margin-bottom--5","data-test":"settings_trouble-export"},v:{click:"exportSettings"},f:[{t:3,x:{r:["nls","STRINGS.backup"],s:"_0(_1)"}}]}," ",{t:7,e:"kin-button",a:{type:"secondary","kin-disabled":[{t:2,r:"passiveMode.value"}],class:"g-margin-bottom--5","data-test":"settings_trouble-import"},v:{click:"importSettings"},f:[{t:3,x:{r:["nls","STRINGS.restore"],s:"_0(_1)"}}]}]}," ",{t:7,e:"div",a:{class:"settings__row g-margin-top--20 checkbox__row",id:[{t:2,r:"properties.resetToDefault.id"}]},f:[{t:7,e:"p",a:{class:["p stg_subtitle ",{t:2,x:{r:["passiveMode.value"],s:'_0?"-light":""'}}]},f:[{t:3,x:{r:["nls","STRINGS.resetToDefaultTitle"],s:"_0(_1)"}}]}," ",{t:7,e:"p",a:{class:["p checkbox__desc -margins ",{t:2,x:{r:["passiveMode.value"],s:'_0?"-light":""'}}]},f:[{t:3,x:{r:["nls","STRINGS.resetToDefaultDesc"],s:"_0(_1)"}}," ",{t:4,f:[{t:7,e:"br"},{t:7,e:"strong",f:[{t:3,x:{r:["nls","STRINGS.resetToDefaultPassiveModeOn"],s:"_0(_1)"}}]}],n:50,r:"passiveMode.value"}]}," ",{t:7,e:"kin-button",a:{"kin-disabled":[{t:2,r:"passiveMode.value"}],type:"secondary","data-test":"settings_trouble-reset"},v:{click:"resetSettings"},f:[{t:3,x:{r:["nls","STRINGS.resetToDefault"],s:"_0(_1)"}}]}]}],n:50,x:{r:["IS_AFB"],s:"!_0"}}," ",{t:4,f:[{t:7,e:"div",a:{class:"settings__row g-margin-top--20 checkbox__row",id:[{t:2,r:"properties.performanceRecording.id"}]},f:[{t:7,e:"p",a:{class:"p stg_subtitle"},f:[{t:2,x:{r:["nls","STRINGS.performanceRecordingTitle"],s:"_0(_1)"}}]}," ",{t:7,e:"p",a:{class:"p checkbox__desc -margins"},f:[{t:2,x:{r:["nls","STRINGS.performanceRecordingDesc"],s:"_0(_1)"}}]}," ",{t:7,e:"kin-button",a:{type:"secondary",class:"g-margin-right--10 g-margin-bottom--5"},v:{click:"openPerformanceRecorder"},f:[{t:2,x:{r:["nls","STRINGS.performanceRecordingBtn"],s:"_0(_1)"}}]}]}],n:50,r:"properties.performanceRecording"}," ",{t:4,f:[{t:7,e:"h4",a:{class:"h4 g-margin-top--20",id:[{t:2,r:"properties.theme.id"}]},f:[{t:2,r:"properties.theme.title"}]}," ",{t:7,e:"SettingsSelect",a:{property:[{t:2,r:"properties.uiTheme"}],labelSmall:0}}],n:50,x:{r:["properties.theme","properties.uiTheme","IS_ONE"],s:"_0&&_1&&!_2"}}," ",{t:7,e:"h4",a:{class:"h4 g-margin-top--20",id:[{t:2,r:"properties.logs.id"}]},f:[{t:2,r:"properties.logs.title"}]}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.debugLogging"}]}}," ",{t:4,f:[{t:7,e:"div",a:{class:"settings__row g-margin-top--20 checkbox__row",id:[{t:2,r:"properties.sendLogs.id"}]},f:[{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls","STRINGS.sendLogsTitle"],s:"_0(_1)"}}]}," ",{t:7,e:"p",a:{class:"p checkbox__desc -margins"},f:[{t:3,x:{r:["nls","STRINGS.sendLogsDesc"],s:"_0(_1)"}}]}," ",{t:7,e:"kin-button",a:{type:"secondary","data-test":"settings_trouble-sendLogs"},v:{click:"sendLogs"},f:[{t:3,x:{r:["nls","STRINGS.sendLogsBtn"],s:"_0(_1)"}}]}]}],n:50,r:"properties.sendLogs"}]}," ",{t:4,f:[{t:7,e:"Modal",a:{closable:"false"},f:[{t:7,e:"kin-loading",a:{label:[{t:2,x:{r:["nls"],s:'_0("global.repairing")'}}]}}]}],n:50,r:"properties.repairAndModify.repairInProgress"}]},data:()=>({IS_AFB:Ua,IS_ONE:Da,STRINGS:Ma,loaded:!1,properties:null}),oninit(){this.on("repairProgram",this.repairProgram.bind(this)),this.on("addAndModifyComponents",this.addAndModifyComponents.bind(this)),this.on("exportSettings",this.exportSettings.bind(this)),this.on("importSettings",this.importSettings.bind(this)),this.on("openPerformanceRecorder",this.openPerformanceRecorder.bind(this)),this.on("resetSettings",this.resetSettings.bind(this)),this.on("sendLogs",this.sendLogs.bind(this)),Ga().then((e=>{e.offlineMode&&(e.offlineMode.change=this.changeOfflineMode.bind(this)),e.passiveMode.load=this.loadPassiveMode.bind(this),e.passiveMode.change=this.changePassiveMode.bind(this),e.uiTheme&&(e.uiTheme.change=this.updateTheme.bind(this)),this.set("properties",e),this.set("loaded",!0)})),this.loadPassiveMode()},onteardown(){this.passiveModeChangeOff&&this.passiveModeChangeOff()},updateTheme:e=>b.set("avcfg://settings/Common/UITheme",e).then((()=>window.location.reload())),repairProgram(){A.confirm(u(Ma.repairConfirmationDesc),{title:u(Ma.repairConfirmationTitle),ok:u(Ma.repairConfirmationYes),cancel:u(Ma.repairConfirmationNo)}).then((()=>{e.emit("Settings.gaTrack","Repair app"),Ra.debug("triggering program repair"),this.set("properties.repairAndModify.repairInProgress",!0),v.repair().then((()=>{this.set("properties.repairAndModify.repairInProgress",!1)})).catch((e=>{Ra.error("repairing program failed",e),this.set("properties.repairAndModify.repairInProgress",!1)}))}))},addAndModifyComponents(){e.emit("Settings.gaTrack","Add components"),v.modifyComponents()},exportSettings(){e.emit("Settings.gaTrack","Backup settings"),t("app.imexsettings.export").then((()=>{A.inform(u(Ma.settingsExported),{title:u("settings.success")})})).catch((e=>{e&&1223===e.code&&Ra.info("settings export cancelled by the user")}))},importSettings(){e.emit("Settings.gaTrack","Restore settings"),t("app.imexsettings.import").then((()=>{this.showRestartDialog(u(Ma.settingsRestored))})).catch((e=>{e&&1223===e.code&&Ra.info("settings import cancelled by the user")}))},openPerformanceRecorder(){e.emit("Settings.gaTrack","Open Performance Recorder"),s.minimize().then((()=>{s.open({url:location.origin+"/MainWindow.html?module=Feedback&view=performanceReporter",windowType:"window",showTitlebar:!1})}))},resetSettings(){e.emit("Settings.gaTrack","Reset to default confirm dlg","Open"),A.confirm(u(Ma.resetSettingsDesc),{title:u(Ma.resetSettingsTitle),ok:u(Ma.resetSettingsYes),cancel:u(Ma.resetSettingsNo)}).then((()=>{e.emit("Settings.gaTrack","Reset to default confirm dlg","Confirm"),v.factoryReset().then((()=>{this.showRestartDialog(u(Ma.settingsReset))})).catch((t=>{e.emit("Settings.gaTrack","Reset to default failed"),Ra.error("resetting to default failed",t)}))})).catch((()=>{e.emit("Settings.gaTrack","Reset to default confirm dlg","Close")}))},sendLogs(){e.emit("Settings.gaTrack","Send logs","Open"),t("app.utils.OpenSupportTool")},changeOfflineMode(e){return 0==e?b.set(this.get("properties.offlineMode.path"),e):A.confirm(u(Ma.offlineModeConfirmDesc),{icon:"circle-critical",title:u(Ma.offlineModeConfirmTitle),ok:u("global.goOffline"),cancel:u("global.cancel")}).then((()=>b.set(this.get("properties.offlineMode.path"),e)))},loadPassiveMode:()=>t("app.passivemode.GetStatus").then((e=>({locked:e.locked,value:e.enabled}))),changePassiveMode(s){return new Promise(((n,a)=>{const i=s?"app.passivemode.Enable":"app.passivemode.Disable";return this.set("properties.passiveMode.value",s),t(i).then((()=>{this.passiveModeChangeOff=e.on("passivemode.onStatusChanged.installationProgress",(e=>{100===e&&(this.passiveModeChangeOff(),n())}))})).catch((e=>{e&&5===e.code&&console.error(i,": consent dialog canceled",e),a()}))}))},showRestartDialog(t){e.emit("Settings.gaTrack","Restart PC confirm dlg","Open"),A.confirm(t,{title:u(Ma.pleaseRestartPC),ok:u(Ma.restartNow),cancel:u(Ma.restartLater)}).then((()=>{e.emit("Settings.gaTrack","Restart PC confirm dlg","Confirm"),S.restart()})).catch((()=>{e.emit("Settings.gaTrack","Restart PC confirm dlg","Close")}))}}),Ba={scan:{desc:"exchange.scan.desc",access:"exchange.scan.access",background:"exchange.scan.background",proactive:"exchange.scan.proactive",transport:"exchange.scan.transport",rtf:"exchange.scan.rtf",infected:"exchange.scan.infected"},logging:{desc:"smb.loging.desc",label:"smb.loging.label",values:{low:"smb.loging.low",normal:"smb.loging.normal",high:"smb.loging.high",max:"smb.loging.max"}}};function Va(){return{access:{id:"settings-exchange-scanning-access",label:u(Ba.scan.access),path:"avcfg://ExchangeShield/Exchange/ScanMessagesOnAccess",search:Ba.scan.access},background:{id:"settings-exchange-scanning-background",label:u(Ba.scan.background),path:"avcfg://ExchangeShield/Exchange/ScanMessagesInBackground",search:Ba.scan.background},proactive:{id:"settings-exchange-scanning-proactive",label:u(Ba.scan.proactive),path:"avcfg://ExchangeShield/Exchange/EnableProactiveScanning",search:Ba.scan.proactive},transport:{id:"settings-exchange-scanning-transport",label:u(Ba.scan.transport),path:"avcfg://ExchangeShield/Exchange/ScanAtTransportLevel",search:Ba.scan.transport},rtf:{id:"settings-exchange-scanning-rtf",label:u(Ba.scan.rtf),path:"avcfg://ExchangeShield/Exchange/ScanRTFBodies",search:Ba.scan.rtf},infected:{id:"settings-exchange-scanning-infected",label:u(Ba.scan.infected),path:"avcfg://ExchangeShield/Exchange/TryToCleanInfectedObjects",search:Ba.scan.infected},logging:{id:"settings-exchange-scanning-logging",label:u(Ba.logging.label),options:[{label:u(Ba.logging.values.low),value:"0"},{label:u(Ba.logging.values.normal),value:"1"},{label:u(Ba.logging.values.high),value:"2"},{label:u(Ba.logging.values.max),value:"3"}],path:"avcfg://ExchangeShield/Exchange/LoggingLevel",search:Ba.logging.label}}}function Fa(){return{desc:Ba.desc,items:Va()}}const za=x.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"g-margin-top--10 g-margin-bottom--10"},f:[{t:3,x:{r:["nls","STRINGS.scan.desc"],s:"_0(_1)"}}]}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.access"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.background"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.proactive"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.transport"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.rtf"}]}}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.infected"}]}}," ",{t:7,e:"div",a:{class:"g-margin-top--10"},f:[{t:3,x:{r:["nls","STRINGS.logging.desc"],s:"_0(_1)"}}]}," ",{t:7,e:"SettingsSelect",a:{property:[{t:2,r:"properties.logging"}]}}]},data:()=>({STRINGS:Ba,properties:Va()})}),qa={untestDesc:"exchange.actions.utDesc",untestLabel:"exchange.actions.utLabel",infectLabel:"exchange.actions.infect",icon:"exchange.actions.icon",values:{allow:"exchange.actions.allow",overwrite:"exchange.actions.overwrite",delete:"exchange.actions.delete"}};function Wa(){const e=[{label:u(qa.values.allow),value:"0"},{label:u(qa.values.overwrite),value:"1"},{label:u(qa.values.delete),value:"3"}];return{untest:{id:"settings-exchange-actions-untest",label:u(qa.untestLabel),path:"avcfg://ExchangeShield/Exchange/UntestableItemsAction",options:e,search:{title:qa.untestLabel,others:[qa.values.allow,qa.values.overwrite,qa.values.delete,qa.icon]}},untestIcon:{id:"settings-exchange-actions-untestIcon",label:u(qa.icon),path:"avcfg://ExchangeShield/Exchange/UntestableItemsChangeObjectIcon"},infected:{id:"settings-exchange-actions-infected",label:u(qa.infectLabel),path:"avcfg://ExchangeShield/Exchange/InfectedItemsAction",options:e,search:{title:qa.infectLabel,others:[qa.values.allow,qa.values.overwrite,qa.values.delete,qa.icon]}},infectedIcon:{id:"settings-exchange-actions-infectedIcon",label:u(qa.icon),path:"avcfg://ExchangeShield/Exchange/InfectedItemsChangeObjectIcon"}}}function Ha(){return{desc:qa.untestDesc,items:Wa()}}const Ya=x.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"g-margin-top--10 g-margin-bottom--10"},f:[{t:3,x:{r:["nls","STRINGS.untestDesc"],s:"_0(_1)"}}]}," ",{t:7,e:"SettingsRadio",a:{property:[{t:2,r:"properties.untest"}]},f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.untestIcon"}]}}]}," ",{t:7,e:"div",a:{class:"strike"}}," ",{t:7,e:"SettingsRadio",a:{property:[{t:2,r:"properties.infected"}]},f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.infectedIcon"}]}}]}]},data:()=>({STRINGS:qa,properties:Wa()})});const Ka=o.createLogger("exchange.settings.blockingList"),Ja="avcfg://ExchangeShield/Exchange/BlockingNames",Xa=x.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"table",a:{class:"table -small -compact"},f:[{t:4,f:[{t:7,e:"tr",a:{class:"-selectable"},f:[{t:7,e:"td",f:[{t:7,e:"input",a:{type:"text",value:[{t:2,r:"."}],class:"input -blank -small ats_list-input",lazy:"500"},v:{keyup:"inputKeyup",blur:"saveList"}}]}," ",{t:7,e:"td",a:{class:"table__delete"},f:[{t:7,e:"kin-button",a:{type:"blank",size:"tiny",icononly:0,title:[{t:3,x:{r:["nls"],s:'_0("global.remove")'}}]},v:{click:"removeFromList"},f:[{t:7,e:"kin-icon",a:{name:"icon-s-controls-bin",size:"14"}}]}]}]}],n:52,i:"index",r:"list"}]}],n:50,r:"list.length"},{t:4,n:51,f:[{t:7,e:"p",a:{class:"p -small -secondary"},v:{click:"addToList"},f:[{t:3,x:{r:["nls"],s:'_0("global.emptyList")'}}]}],r:"list.length"}]},css:".ats_list-input {\n width: 100%;\n}\n",data:function(){return{list:[]}},oninit(){this.loadList(),this.on("inputKeyup",(e=>{13===e.original.keyCode&&e.node.blur()})),this.on("saveList",(t=>{e.emit("Settings.gaTrack","Save blockingNames");const s=this.get("list");t.context.length||s.splice(t.index.index,1),this.updateList(s)})),this.on("addToList",(()=>{this.addToList()})),this.on("removeFromList",(t=>{e.emit("Settings.gaTrack","Remove from blockingNames");const s=this.get("list");s.splice(t.index.index,1),this.updateList(s)}))},addToList(){const e=this.get("list");(0===e.length||e[0].length>0)&&e.unshift(""),this.find("input.ats_list-input").focus()},loadList(){t("app.settings.Get",{name:Ja}).then((e=>{this.set("list",this.parseList(e.value))})).catch((e=>{Ka.error("loading list failed",e)}))},updateList(e){this.set("list",e),t("app.settings.Set",{name:Ja,value:this.stringifyList(e)})},parseList:e=>e?e.split(";"):[],stringifyList:e=>e&&e.length?e.join(";"):""}),Za={desc:"exchange.block.desc",blockByName:"exchange.block.byName",blockAdd:"exchange.block.add",fNameReplaceLabel:"exchange.block.fnameReplace",replaceWithLabel:"exchange.block.replaceWith"};function Qa(){return{blockName:{id:"settings-exchange-blocking-blockName",label:u(Za.blockByName),path:"avcfg://ExchangeShield/Exchange/EnableAttachmentBlockingByName",search:Za.blockByName},fnameReplace:{id:"settings-exchange-blocking-fnameReplace",label:u(Za.fNameReplaceLabel),path:"avcfg://ExchangeShield/Exchange/BlockingFilenameReplacement",search:Za.fNameReplaceLabel},replaceWith:{id:"settings-exchange-blocking-replaceWith",label:u(Za.replaceWithLabel),path:"avcfg://ExchangeShield/Exchange/BlockingReplaceWith",search:Za.replaceWithLabel}}}function ei(){return{desc:Za.desc,items:Qa()}}const ti=x.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"g-margin-top--10 g-margin-bottom--10"},f:[{t:3,x:{r:["nls","STRINGS.desc"],s:"_0(_1)"}}]}," ",{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.blockName"}]}}," ",{t:7,e:"div",a:{class:"g-margin-bottom--15"},f:[{t:7,e:"kin-button",a:{type:"secondary",size:"small",class:"g-margin-top--10 g-margin-bottom--5","data-test":"addBlockName"},v:{click:"addBlockName"},f:["+ ",{t:3,x:{r:["nls","STRINGS.blockAdd"],s:"_0(_1)"}}]}," ",{t:7,e:"BlockingList"}]}," ",{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"properties.fnameReplace"}]},p:{labelRight:[]}}," ",{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"properties.replaceWith"}]},p:{labelRight:[]}}]},components:{BlockingList:Xa},data:()=>({STRINGS:Za,properties:Qa()}),oninit(){this.blockingList=this.findComponent("BlockingList"),this.on("addBlockName",(()=>{this.blockingList.fire("addToList")}))}}),si={title:"exchange.title",desc:"exchange.desc",scanningTabLabel:"exchange.scan.tab",actionsTabLabel:"exchange.actions.tab",blockingTabLabel:"exchange.block.tab"};function ni(){return{scanning:{id:"settings-exchange-scanning",type:"tab",title:u(si.scanningTabLabel),hash:"Settings/exchange/scanning",testAttr:"scanning",compo:za,search:{title:si.scanningTabLabel,desc:Fa.desc,subroute:"scanning",items:Fa.items}},actions:{id:"settings-exchange-actions",type:"tab",title:u(si.actionsTabLabel),hash:"Settings/exchange/actions",testAttr:"actions",compo:Ya,search:{title:si.actionsTabLabel,desc:Ha.desc,subroute:"actions",items:Ha.items}},blocking:{id:"settings-exchange-blocking",type:"tab",title:u(si.blockingTabLabel),hash:"Settings/exchange/blocking",testAttr:"blocking",compo:ti,search:{title:si.blockingTabLabel,desc:ei.desc,subroute:"blocking",items:ei.items}}}}const ai=x.extend({template:{v:3,t:[{t:7,e:"SettingsContainer",a:{title:[{t:3,x:{r:["nls","STRINGS.title"],s:"_0(_1)"}}],desc:[{t:3,x:{r:["nls","STRINGS.desc"],s:"_0(_1)"}}],component:"ExchangeShield",stopOptions:[{t:2,r:"stopOptions"}]},f:[{t:7,e:"SettingsTabs",a:{tabs:[{t:2,r:"tabs"}],selectedTabId:[{t:2,r:"selectedTabId"}]}}]}]},router:new r,data(){const e=ni();return{STRINGS:si,stopOptions:{},selectedTabId:null,tabs:[e.scanning,e.actions,e.blocking]}},oninit(){this.router.on("/",this.handleRoute.bind(this)),this.router.on("/:tab",this.handleRoute.bind(this))},onteardown(){this.router.removeAllListeners()},handleRoute(e){e&&e.tab?this.set("selectedTabId","settings-exchange-"+e.tab):window.location.hash=this.get("tabs.0.hash")}}),ii={title:"sharepoint.title",desc:"sharepoint.desc",logging:{desc:"smb.loging.desc",label:"smb.loging.label",values:{low:"smb.loging.low",normal:"smb.loging.normal",high:"smb.loging.high",max:"smb.loging.max"}},unclean:{label:"sharepoint.unclean.label",footer:"sharepoint.unclean.footer",values:{deny:"sharepoint.unclean.deny",replace:"sharepoint.unclean.replace"}}};function oi(){return{propLogging:{label:u(ii.logging.label),options:[{label:u(ii.logging.values.low),value:"0"},{label:u(ii.logging.values.normal),value:"1"},{label:u(ii.logging.values.high),value:"2"},{label:u(ii.logging.values.max),value:"3"}],path:"avcfg://SharepointShield/Sharepoint/LoggingLevel",search:ii.logging.label},propUnClean:{label:u(ii.unclean.label),path:"avcfg://SharepointShield/Sharepoint/UncleanableItemsAction",options:[{label:u(ii.unclean.values.deny),value:"0"},{label:u(ii.unclean.values.replace),value:"1"}],search:ii.unclean.label}}}const ri=x.extend({template:{v:3,t:[{t:7,e:"SettingsContainer",a:{title:[{t:3,x:{r:["nls","STRINGS.title"],s:"_0(_1)"}}],desc:[{t:3,x:{r:["nls","STRINGS.desc"],s:"_0(_1)"}}],component:"SharepointShield",stopOptions:[{t:2,r:"stopOptions"}]},f:[{t:7,e:"p",a:{class:"g-margin-top--10"},f:[{t:3,x:{r:["nls","STRINGS.logging.desc"],s:"_0(_1)"}}]}," ",{t:7,e:"SettingsSelect",a:{property:[{t:2,r:"properties.propLogging"}],wrapCssCls:"g-margin-bottom--10"}}," ",{t:7,e:"SettingsRadio",a:{property:[{t:2,r:"properties.propUnClean"}]}}," ",{t:7,e:"div",f:[{t:3,x:{r:["nls","STRINGS.unclean.footer"],s:"_0(_1)"}}]}]}]},data:()=>({STRINGS:ii,stopOptions:{},properties:oi()})}),li={0:"UNDEFINED",1:"STARTING",2:"STARTED",3:"CONNECTING",4:"CONNECTED",5:"DISCONNECTING",6:"STOPPING",7:"STOPPED"},ci={0:"UNDEFINED",1:"STARTING",2:"TESTING",3:"CONNECTION_OK",4:"NOT_AVAILABLE",5:"FAILED"},pi={title:"remoteAdmin.title",desc:"remoteAdmin.desc",server:"remoteAdmin.server",port:"remoteAdmin.port",login:"remoteAdmin.login",pass:"remoteAdmin.pass",port4msg:"remoteAdmin.port4msg",testRemote:"remoteAdmin.testRemote"},di=function(){return t("app.settings.Get",{name:this.path}).then((e=>(void 0===this.defaultValue||e.value||0===e.value||(e.value=this.defaultValue),e))).finally((()=>{const e=this.cmpRemoteAdmin.get("properties");this.propLoaded||(this.propLoaded=!0),this.cmpRemoteAdmin._loginPropsLoaded||e.server.propLoaded&&e.port.propLoaded&&e.loginName.propLoaded&&e.password.propLoaded&&e.portMsgIncoming.propLoaded&&(this.cmpRemoteAdmin._loginPropsLoaded=!0,this.cmpRemoteAdmin.remoteStateFetch().finally((()=>this.cmpRemoteAdmin.remoteStateWatch())))}))};function ui(){return{server:{label:u(pi.server),path:"avcfg://settings/AvAdminClient/Server",search:pi.server,defaultValue:"",load:di},port:{label:u(pi.port),path:"avcfg://settings/AvAdminClient/Port",search:pi.port,type:"number",minValue:1,maxValue:65535,defaultValue:4158,load:di},loginName:{label:u(pi.login),path:"avcfg://settings/AvAdminClient/LoginName",search:pi.login,load:di},password:{label:u(pi.pass),property:"password",path:"avcfg://settings/AvAdminClient/LoginPassword",type:"password",search:pi.pass,load:di},portMsgIncoming:{label:u(pi.port4msg),path:"avcfg://settings/AvAdminClient/ListeningPort",search:pi.port4msg,type:"number",minValue:1,maxValue:65535,defaultValue:6503,load:di}}}const gi=x.extend({template:{v:3,t:[{t:7,e:"SettingsContainer",a:{title:[{t:3,x:{r:["nls","STRINGS.title"],s:"_0(_1)"}}],desc:[{t:3,x:{r:["nls","STRINGS.desc"],s:"_0(_1)"}}]},f:[{t:4,f:[" ",{t:7,e:"div",a:{class:"growl -block g-margin-top--10"},f:[{t:3,x:{r:["nls","remoteState"],s:'_0("remoteAdmin.remote.state."+_1)'}}]}],n:50,x:{r:["remoteState"],s:'_0&&_0!=="UNDEFINED"'}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"g-margin-top--40"}}],x:{r:["remoteState"],s:'_0&&_0!=="UNDEFINED"'}}," ",{t:7,e:"div",a:{style:"position: relative"},f:[{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"properties.server"}],cssCls:"-full"}}," ",{t:7,e:"div",a:{class:"sixpack"},f:[{t:7,e:"div",a:{class:"sixpack__3"},f:[{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"properties.port"}],cssCls:"-full"}}]}," ",{t:7,e:"div",a:{class:"sixpack__3"},f:[{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"properties.portMsgIncoming"}],cssCls:"-full"}}]}]}," ",{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"properties.loginName"}],cssCls:"-full"}}," ",{t:7,e:"SettingsTextInput",a:{property:[{t:2,r:"properties.password"}],cssCls:"-full"}}," ",{t:4,f:[{t:7,e:"div",a:{class:["growl -block g-margin-top--10 ",{t:4,f:["-critical"],n:50,x:{r:["remoteTestStatus"],s:'_0==="NOT_AVAILABLE"||_0==="FAILED"'}}," ",{t:4,f:["-ok"],n:50,x:{r:["remoteTestStatus"],s:'_0==="CONNECTION_OK"'}}]},f:[{t:4,f:[{t:7,e:"kin-loading",a:{size:"small"}}],n:50,x:{r:["remoteTestStatus"],s:'_0==="STARTING"||_0==="TESTING"'}}," ",{t:3,x:{r:["nls","remoteTestStatus"],s:'_0("remoteAdmin.remote.status."+_1)'}}]}],n:50,x:{r:["remoteTestStatus"],s:'_0&&_0!=="UNDEFINED"'}}," ",{t:7,e:"kin-button",a:{type:"secondary",class:"g-margin-top--10","kin-disabled":[{t:2,x:{r:["testableRemote","remoteState"],s:'!_0||_1==="testing"'}}]},v:{click:{m:"testRemote",a:{r:[],s:"[]"}}},f:[{t:3,x:{r:["nls","STRINGS.testRemote"],s:"_0(_1)"}}]}]}]}]},data(){const e=ui();return Object.values(e).forEach((e=>e.cmpRemoteAdmin=this)),{STRINGS:pi,properties:e,_remoteState:null,_remoteTestStatus:null}},computed:{testableRemote(){const e=this.get("properties");return e.server.value&&e.port.value&&e.portMsgIncoming.value},remoteState(){return li[this.get("_remoteState")]},remoteTestStatus(){return ci[this.get("_remoteTestStatus")]}},onteardown(){this.remoteStateStopWatch()},testRemote(){if(!this.get("testableRemote"))return;this.remoteStateStopWatch(),this.set("properties.server.disabled",!0),this.set("properties.port.disabled",!0),this.set("properties.portMsgIncoming.disabled",!0),this.set("properties.loginName.disabled",!0),this.set("properties.password.disabled",!0);const e=this.get("properties");t("app.smb.AdminConnectionTest",{address:e.server.value,remotePort:parseInt(e.port.value,10),localPort:parseInt(e.portMsgIncoming.value,10),login:e.loginName.value,password:e.password.value}).finally((()=>{this.remoteStateFetch().finally((()=>{this.set("properties.server.disabled",!1),this.set("properties.port.disabled",!1),this.set("properties.portMsgIncoming.disabled",!1),this.set("properties.loginName.disabled",!1),this.set("properties.password.disabled",!1),this.remoteStateWatch()}))}))},remoteStateFetch(){return Promise.all([t("app.settings.Get","avcfg://settings/AvAdminClient/State"),t("app.settings.Get","avcfg://settings/AvAdminClient/TestStatus")]).then((e=>{this.set({_remoteState:e[0],_remoteTestStatus:e[1]})}))},remoteStateWatch(){this.remoteStateStopWatch(),this.remoteStateWatchTimer=setTimeout((()=>{this.remoteStateFetch().finally((()=>this.remoteStateWatch()))}),2e3)},remoteStateStopWatch(){this.remoteStateWatchTimer&&(this.remoteStateWatchTimer=clearTimeout(this.remoteStateWatchTimer))}}),hi={title:"settings.legacyPasswords"};function fi(){return{showLegacyPasswords:{id:"settings-legacy-show",label:u("settings.legacyPasswords.showInMenu.label"),desc:u("settings.legacyPasswords.showInMenu.desc"),track:{subject:"Show Avast Passwords"},path:"avcfg://settings/Common/ShowLegacyPasswords",search:u("settings.legacyPasswords.showInMenu.label")}}}const mi=x.extend({template:{v:3,t:[{t:7,e:"SettingsContainer",a:{title:[{t:2,x:{r:["nls","STRINGS.title"],s:"_0(_1)"}}]},f:[{t:7,e:"SettingsCheckbox",a:{property:[{t:2,r:"properties.showLegacyPasswords"}]}}]}]},data:()=>({STRINGS:hi,properties:fi()}),onteardown(){e.emit("Settings.updateMenu")}}),bi={blockedAndAllowedApps:pa,exceptions:class extends Re{constructor(e){super(),Ne(this,e,pn,ln,L,{},[-1,-1])}},languages:Ge,notifications:ht,password:Pa,personalPrivacy:Na,troubleshooting:ja,update:dt,exchange:ai,sharepoint:ri,remoteAdmin:gi,legacyPasswords:mi},_i={blockedAndAllowedApps:ca,exceptions:function(){return cn().then((e=>({title:ft.title,desc:1!=e?ft.descAdvanced:ft.desc})))},languages:function(){return{title:De.title,desc:De.desc,items:Me()}},notifications:function(){return gt().then((e=>({title:ut.title,items:e})))},password:Ia,personalPrivacy:function(){return{title:Ca.title,desc:Ca.desc,items:$a()}},troubleshooting:function(){return Ga().then((e=>({title:Ma.title,items:e})))},update:function(){return{title:pt,subpages:[{search:{title:Ze.virusDefinitions,items:Qe()}},{search:(Object.keys(nt).forEach((e=>{nt[e].search&&(nt[e].search.napiEvent="settings.update.showProgramUpdate")})),{title:ot.program,items:Object.assign(rt(),nt)})}]}},exchange:function(){const e=ni();return{title:si.title,desc:si.desc,subpages:[e.scanning,e.actions,e.blocking]}},sharepoint:function(){return{title:ii.title,desc:ii.desc,items:oi()}},remoteAdmin:function(){return{title:pi.title,desc:pi.desc,items:ui()}},legacyPasswords:function(){return{title:hi.title,items:fi()}}},vi={troubleshooting:[{path:"avcfg://settings/Common/LimitAccessForGuestAccount",label:"Limit program access for Guest account",desc:"The Guest account should not be able to change the security settings.",type:"checkbox"},{label:"Maximum size of each log file",path:"avcfg://settings/Common/LogMaxSize",type:"number",unit:"kB",minValue:1,maxValue:1e6,required:!0}],update:[{path:"avcfg://settings/InetWD/UpdatePeriod",label:"Auto-update every",track:{subject:"Auto-update every"},type:"number",minValue:1,maxValue:99999,required:!0,unit:"min"}]};const yi=x.extend({template:{v:3,t:[{t:7,e:"div",a:{class:["settings__badge ",{t:2,x:{r:["cssCls"],s:'_0?_0:""'}}]},f:[{t:4,f:[{t:7,e:"Icon",a:{name:[{t:2,r:"icon"}]}}],n:50,r:"icon"}," ",{t:4,f:[{t:7,e:"span",f:[{t:2,r:"label"}]}],n:50,r:"label"}]}]},data:()=>({label:null,icon:"lock-full",cssCls:null})}),Si=o.createLogger("settings.container"),xi=x.extend({template:{v:3,t:[{t:7,e:"h3",a:{class:"h3 settings__title"},f:[{t:2,r:"title"}]}," ",{t:7,e:"div",a:{class:"settings__status"},f:[{t:4,f:[{t:4,f:[{t:7,e:"div",a:{class:"g-relative"},f:[{t:7,e:"kin-switch",a:{"kin-disabled":"true",type:"trivial"}}," ",{t:4,f:[{t:7,e:"div",a:{class:"stg_switch__tooltip tooltip -arrow-top"},f:[{t:2,r:"notSupportedMsg"}]}],n:50,r:"notSupportedMsg"}]}],n:50,r:"notSupported"},{t:4,n:51,f:[{t:4,n:50,x:{r:["noEnable"],s:"!_0"},f:[{t:7,e:"kin-switch",a:{"kin-checked":[{t:2,r:"isEnabled"}],"kin-disabled":[{t:2,r:"enablingLocked"}],processing:[{t:2,x:{r:["enablingControllable"],s:"!_0"}}],"data-test":"settings_component-switch",title:[{t:2,r:"title"}]},v:{click:"toggleEnabled"}}," ",{t:4,f:[{t:7,e:"SettingsBadge"}],n:50,r:"enablingLocked"}]}],r:"notSupported"}],n:50,x:{r:["noInstall","isInstalled"],s:"_0||_1"}},{t:4,n:51,f:[{t:7,e:"div",a:{class:"settings__not-installed"},f:[{t:2,x:{r:["nls"],s:'_0("settings.notInstalled")'}}]}],x:{r:["noInstall","isInstalled"],s:"_0||_1"}}]}," ",{t:4,f:[{t:7,e:"p",a:{class:"settings__desc"},f:[{t:3,r:"desc"}]}],n:50,r:"desc"},{t:4,f:[{t:4,f:[{t:4,f:[{t:7,e:"div",o:"insertYield"}],n:50,r:"yieldElem"},{t:4,n:51,f:[{t:16}],r:"yieldElem"}],n:50,r:"loaded"},{t:4,n:51,f:[{t:7,e:"div",a:{class:"center__wrap"},f:[{t:7,e:"div",a:{class:"center"},f:[{t:7,e:"kin-loading"}," ",{t:7,e:"p",a:{class:"p"},f:[{t:2,x:{r:["nls"],s:'_0("global.loading")'}}]}]}]}],r:"loaded"}],n:50,x:{r:["noInstall","isInstalled"],s:"_0||_1"}},{t:4,n:51,f:[{t:7,e:"kin-button",a:{type:"secondary",class:"g-margin-top--15"},v:{click:"openSetup"},f:[{t:2,x:{r:["nls"],s:'_0("settings.addAndModifyComponents")'}}]}],x:{r:["noInstall","isInstalled"],s:"_0||_1"}}]},css:".stg_switch__tooltip {\n transform: translateX(-50%);\n left: 50%;\n position: absolute;\n top: 35;\n min-width: 230px;\n}\n",components:{SettingsBadge:yi},data:()=>({loaded:!0,component:null,ipmBuyElm:null,title:null,desc:null,noInstall:!1,noEnable:!1,componentService:null,stopOptions:null,notSupported:!1,notSupportedMsg:null,isInstalled:!1,isEnabled:!0,enablingControllable:!1,yieldElem:null}),decorators:{insertYield:function(e){const t=this.get("yieldElem");return e.replaceWith(t),t.hidden=!1,{teardown:function(){}}}},oninit(){!this.get("yieldElem")||(this.get("noInstall")||this.get("isInstalled"))&&this.get("loaded")||(this.get("yieldElem").hidden=!0),this.listeners=[],this._component=this.get("component"),this.componentService=this.get("componentService"),this.componentService?(this.componentService.init(),this.listeners.push(this.componentService.on("change",this.updateComponentStatus.bind(this))),this.listeners.push(this.componentService.on("controllable",this.updateComponentControllable.bind(this))),this.componentToggleWait=!1,this.componentService.hasToggleWithWaiting&&(this.componentToggleWait=this.componentService.hasToggleWithWaiting())):this._component&&this.listeners.push(e.on("product.change.feature."+this._component,this.updateComponentStatus.bind(this))),this.updateComponentStatus(),this.listeners.push(this.on("toggleEnabled",this.toggleEnabled.bind(this))),this.listeners.push(this.on("openSetup",(()=>{e.emit("Settings.gaTrack","Add and modify components"),v.modifyComponents()}))),this._component||this.componentService||this.set({noInstall:!0,noEnable:!0})},onteardown(){this.componentService&&this.componentService.destroy(),this.listeners.forEach((e=>{"function"==typeof e?e():e&&"function"==typeof e.cancel&&e.cancel()})),delete this.componentService},updateComponentControllable(e){this.set({enablingControllable:e})},updateComponentStatus(){let e;this.componentService&&this.componentService.loadStatus?e=this.componentService.loadStatus(!0):this._component&&(e=Promise.resolve(_.getFeature(this._component))),e&&e.then((e=>{let t=!0;void 0!==e.controllable&&(t=e.controllable);const s={isInstalled:e.installed,isEnabled:e.enabled,enablingControllable:t,enablingLocked:!1};this.set(s),this.fire("componentStatus",s)}))},toggleEnabled(){const t=this.get("isEnabled"),s=this.get("component");let n;this.componentToggleWait&&setTimeout((()=>{this.set("isEnabled",t)}),0),this.componentService&&this.componentService.toggleEnabled?n=this.componentService.toggleEnabled():t&&this.get("stopOptions")?n=this.stopShield():!t&&_.isPassiveMode()?n=A.passiveMode(_.getPassiveModeInfo()).then((()=>_.toggleFeature(s))):(e.emit("Settings.gaTrack","Component ON/OFF",t?"off":"on"),n=_.toggleFeature(s)),n.catch(this.updateComponentStatus.bind(this))},stopShield(){return this.pickStopOption().then((t=>(e.emit("Settings.gaTrack","Component ON/OFF","off",t),_.disableFeature(this.get("component"),t))))},pickStopOption(){return A.stopOptions(this.get("stopOptions")).then((e=>e.time)).catch((()=>(Si.info("no stop option selected.. doing nothing"),Promise.reject())))}});function ki(e){if(null==e.value||""===e.value)return e.required?{valid:!1}:{valid:!0,value:e.value};{let t=e.value;if(null!=e.minValue||null!=e.maxValue){const s=parseInt(e.value);t=s,null!=e.minValue&&(s<e.minValue||isNaN(s))?t=e.minValue:null!=e.maxValue&&s>e.maxValue&&(t=e.maxValue)}return t="string"==typeof e.value?String(t):parseInt(t),{valid:!0,value:t}}}function wi(e){return!e.required||null!=e.value&&""!==e.value?{valid:!0,value:e.value}:{valid:!1}}function Ti(e){let t=e.value,s=t;switch("boolean"==typeof t&&(t=t?1:0),e._valueType){case"number":s=parseInt(t);break;case"boolean":s=Boolean(parseInt(t));break;case"string":s=null==t?"":t+""}return s}function Ai(e){const t=e.map((e=>function(e){const t=e.map((e=>{let t=!0;return"exchange"===e.id||"sharepoint"===e.id?t=_.isInstalled(e.componentId)&&_.isLicensed(e.componentId):e.componentId&&(t=_.isLicensed(e.componentId)),t&&e.cond?e.cond():t}));return Promise.all(t).then((t=>e.filter(((e,s)=>t[s]))))}(e.sections)));return Promise.all(t).then((t=>{const s=[],n=[];return e.forEach(((e,a)=>{const i=t[a];i.length&&(e.cond?n.push(e.cond()):n.push(!0),s.push(Object.assign({},e,{sections:i})))})),Promise.all(n).then((e=>s.filter(((t,s)=>e[s]))))}))}function Ii(e){const t=Ei(e);return e.id||t&&JSON.stringify(t).replace(/[^a-zA-Z0-9]+/g,"_")}function Pi(e){const t=Ei(e);return"object"==typeof e.testAttr?JSON.stringify(Array.isArray(e.testAttr)?e.testAttr:[e.testAttr]):void 0!==e.testAttr?e.testAttr:t?JSON.stringify(t):void 0}function Ei(e){if(e.path)return"string"==typeof e.path?[{name:e.path}]:Array.isArray(e.path)?e.path.map((e=>"string"==typeof e?{name:e}:e)):[e.path]}function Ci(t){try{!t&&localStorage.settingsSearchResult&&(t=JSON.parse(localStorage.settingsSearchResult))}catch(s){console.error("Reading search result from localStorage failed",s)}delete localStorage.settingsSearchResult,t=t||{},setTimeout((()=>{t.tabId&&e.emit("settings.selectTab",t.tabId),t.napiEvent&&e.emit(t.napiEvent,t.napiEventParams),setTimeout((()=>{let e;t.elemId&&(e=document.querySelector("#"+t.elemId+"__container"),e||(e=document.querySelector("#"+t.elemId))),document.querySelectorAll(".settings__highlight").forEach((e=>{e.classList.remove("settings__highlight")})),e&&(e.classList.add("settings__highlight"),e.scrollIntoView())}),200)}),0)}function $i(e){return!e.componentId||_.isInstalled(e.componentId)}const Li=Object.freeze({__proto__:null,validateIntValue:ki,validateValue:wi,getReportDestination:function(){const e="C:\\ProgramData\\AVAST Software\\Avast\\report";return t("app.settings.Get",{name:"avcfg://settings/Common/DefaultReportName"}).then((t=>t.value||e)).catch((()=>e))},getPropValueToStore:Ti,filterStructure:Ai,getPropId:Ii,getPropTestAttr:Pi,getPropPaths:Ei,highlightSearchResult:Ci,isSectionContentVisible:$i}),Ni=o.createLogger("settings._input"),Ri=x.extend({_listeners:[],_handlers:[],data:()=>({property:null,_yieldElem:null}),decorators:{insertYield:function(e,t){return e.replaceWith(this.get(t||"yieldElem")),{teardown:function(){}}},registerInput:function(e){return this.inputElem=e,{teardown:function(){delete this.inputElem}}}},computed:{idAttr:function(){if(!this.get("property"))return;const e=Ii(this.get("property"));if(e)return e;Ni.warn("missing id attr.. may cause problems (e.g. connection to the label)",this.get("property"))},testAttr:function(){if(!this.get("property"))return;const e=Pi(this.get("property"));if(e)return e;Ni.info("missing data-test attr.. may cause problems to the testers",this.get("property"))},paths:function(){if(this.get("property"))return Ei(this.get("property"))}},oninit(){this._changePropHandler=this.on("changeProp",this.changeProp.bind(this)),this.registerUpdateEvent(),this._listeners.push(e.on("app.settings.onStatusChanged",this.loadProp.bind(this,!0))),this.loadProp();const t=this.get("property.descAsPromise");t&&t().then((e=>this.set("property.desc",e))),this.set("property.forceChange",(e=>{this.set("property.value",e),this.changeProp()}))},onteardown(){this._listeners.forEach((e=>e())),this._listeners.length=0,this.set("property.forceChange",null),this._changePropHandler&&this._changePropHandler.cancel(),delete this._changePropHandler},changeProp(){if(!this.validateValue().valid)return;const s=this.get("property"),n=this.getValueToStore(s);if(s.storedValue===n)return;this.set("property.controllable",!1),this.set("property.beingChanged",!0),this.track();let a=s.change&&s.change(n);if(!a){const e=this.get("paths").map((e=>t("app.settings.Set",Object.assign({value:n},e))));a=Promise.all(e)}a.then((()=>{s.storedValue=n,s.controllable=!0,s.beingChanged=!1,this.set("property",s),this.focusElem();const a=this.get("property.changeEvent");a&&e.emit("settings.change."+a,n),s.applyOnChange&&t("app.settings.ApplySettings")})).catch((e=>{this.setUiValue(s.storedValue),this.fire("error",e,s),this.focusElem()}))},loadProp(e){const s=this.get("property"),n=this.get("paths.0");if(!s)return;let a=s&&s.load&&s.load(e);a||(n?a=t("app.settings.Get",n):Ni.warn("loading property failed; neither path nor the load function defined",s)),a.then((e=>{null==e?Ni.error('the property "'+(n&&n.name||s.label)+'" is undefined'):(this.set("property.locked","1"==e.locked),this.setValue(e.value))})).catch((e=>{Ni.error("loading property failed",e,s)}))},setValue(e){this.set("property.storedValue",e),this.set("property._valueType",typeof e),this.setUiValue(e)},setUiValue(e){this.set("property.value",this.getUiValue(e)),this.set("property.controllable",!0),this.set("property.beingChanged",!1)},getUiValue:e=>e,getValueToStore:Ti,validateValue(){return{valid:!0,value:this.get("property.value")}},focusElem(){this.inputElem&&this.inputElem.focus()},track(){const t=this.get("property");if(t.track&&t.track.subject){let s;s=t.track.valueMap&&void 0!==t.track.valueMap[t.value]?t.track.valueMap[t.value]:t.value,void 0!==s&&(s=String(s)),e.emit("Settings.gaTrack",t.track.subject,s)}},registerUpdateEvent(){const t=this.get("property.updateOnEvent"),s="object"==typeof t?t.event:t,n="object"==typeof t&&t.getValue;s&&this._listeners.push(e.on(s,((...e)=>{n?this.setValue(n(...e)):this.loadProp(!0)})))}}),Ui=Ri.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"checkbox__row settings__row",id:[{t:2,r:"idAttr"},"__container"]},f:[{t:7,e:"input",o:"registerInputCheckbox",a:{type:"checkbox",checked:[{t:2,r:"property.value"}],disabled:[{t:2,x:{r:["property.locked","property.disabled","property.unlicensed","property.controllable"],s:"_0||_1||_2||!_3"}}],value:[{t:2,r:"property.storedValue"}],id:[{t:2,r:"idAttr"}],"data-test":[{t:2,r:"testAttr"}],class:["checkbox",{t:4,f:[" -disabled"],n:50,x:{r:["property.locked","property.disabled","property.unlicensed","property.controllable"],s:"_0||_1||_2||!_3"}}]},m:[]}," ",{t:7,e:"label",a:{class:["checkbox__label ",{t:4,f:["-disabled"],n:50,x:{r:["property.locked","property.disabled","property.unlicensed","property.controllable"],s:"_0||_1||_2||!_3"}}],for:[{t:2,r:"idAttr"}]},f:[{t:3,r:"property.label"}," ",{t:4,f:[{t:7,e:"kin-loading",a:{size:"small",class:"g-margin-left--5",inline:"true"}}],n:50,x:{r:["property.beingChanged","property.showThrobberWhileChanging"],s:"_0&&_1"}}," ",{t:4,f:[{t:7,e:"SettingsBadge"}],n:50,r:"property.locked"}," ",{t:4,f:[{t:7,e:"SettingsBadge",a:{label:[{t:2,x:{r:["nls"],s:'_0("settings.unlicensed")'}}]}}],n:50,r:"property.unlicensed"}]}," ",{t:4,f:[{t:7,e:"p",a:{class:["settings__indent checkbox__desc ",{t:4,f:["-disabled"],n:50,x:{r:["property.locked","property.disabled","property.unlicensed","property.controllable"],s:"_0||_1||_2||!_3"}}]},f:[{t:3,r:"property.desc"}]}],n:50,r:"property.desc"}," ",{t:4,f:[{t:7,e:"div",o:"insertYield"}],n:50,r:"yieldElem"},{t:4,n:51,f:[{t:16}],r:"yieldElem"}]}]},components:{SettingsBadge:yi},decorators:{registerInputCheckbox:function(e){return this.inputElem=e,this.inputElemChange=()=>{this.get("property").controllable?this.changeProp():this.inputElem.checked=!this.inputElem.checked},this.inputElem.addEventListener("change",this.inputElemChange),{teardown:()=>{this.inputElem&&this.inputElem.removeEventListener("change",this.inputElemChange),delete this.inputElemChange,delete this.inputElem}}}},getUiValue:e=>"1"==e,track(){const t=this.get("property");if(t.track&&t.track.subject){let s;s=t.track.valueMap&&void 0!==t.track.valueMap[t.value]?t.track.valueMap[t.value]:t.value,e.emit("Settings.gaTrack",t.track.subject,s?"check":"uncheck")}}}),Di=Ri.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"radio__group settings__row",id:[{t:2,r:"idAttr"},"__container"],"data-test":[{t:2,r:"testAttr"}]},f:[{t:7,e:"fieldset",f:[{t:4,f:[{t:7,e:"p",a:{class:"p -margins"},f:[{t:3,r:"property.label"}]}],n:50,r:"property.label"}," ",{t:4,f:[{t:7,e:"div",a:{class:"radio__row"},f:[{t:7,e:"input",a:{type:"radio",name:[{t:3,r:"idAttr"}],disabled:[{t:4,f:["true"],n:50,x:{r:["property.locked","property.disabled","property.controllable"],s:"_0||_1||!_2"}}],id:[{t:2,r:"idAttr"},"-",{t:2,r:"value"}],class:"radio",value:[{t:2,r:"value"}]},v:{change:"changeProp"},m:[{t:4,f:["checked"],n:50,x:{r:["value","property.value"],s:"_0===_1"}}]}," ",{t:7,e:"label",a:{class:["radio__label ",{t:4,f:["-disabled"],n:50,x:{r:["property.locked","property.disabled","property.controllable"],s:"_0||_1||!_2"}}],for:[{t:2,r:"idAttr"},"-",{t:2,r:"value"}]},f:[{t:3,r:"label"}," ",{t:4,f:[{t:7,e:"SettingsBadge",a:{label:[{t:2,x:{r:["nls"],s:'_0("settings.recommended")'}}],icon:"star",cssCls:"-ok"}}],n:50,r:"recommended"}," ",{t:4,f:[{t:7,e:"SettingsBadge"}],n:50,r:"property.locked"}]}," ",{t:4,f:[{t:7,e:"p",a:{class:["settings__indent checkbox__desc ",{t:4,f:["-disabled"],n:50,x:{r:["property.locked","property.disabled","property.controllable"],s:"_0||_1||!_2"}}]},f:[{t:3,r:"desc"}," ",{t:4,f:[{t:8,x:{r:["getYield","descYield"],s:"_0(_1)"}}],n:50,r:"descYield"}," ",{t:4,f:[{t:7,e:"span",o:{n:"insertCompoElem",d:[{t:2,r:"descCompoElem"}]}}],n:50,r:"descCompoElem"}]}],n:50,r:"desc"}," ",{t:4,f:[{t:7,e:"div",a:{class:["settings__indent ",{t:4,f:["-disabled"],n:50,x:{r:["value","property.value","property.locked","property.disabled","property.controllable"],s:"_0!==_1||_2||_3||!_4"}}]},f:[{t:4,f:[{t:8,x:{r:["getYield","customYield"],s:"_0(_1)"}}],n:50,r:"customYield"}," ",{t:4,f:[{t:7,e:"span",o:{n:"insertCompoElem",d:[{t:2,r:"customCompoElem"}]}}],n:50,r:"customCompoElem"}]}],n:50,x:{r:["customYield","customCompoElem"],s:"_0||_1"}}]}],r:"property.options"}]}]}]},components:{SettingsBadge:yi},data:()=>({getYield:function(e){return this.partials[e]||(this.partials[e]="{{yield "+e+"}}"),e},listener:null}),decorators:{insertCompoElem:function(e,t){return t&&e.replaceWith(t),{teardown:function(){}}}},oninit(){this.set("listener",this.on("changeProp",(e=>{this.set("property.value",e.context.value)}))),this._super()},onteardown(){this._listeners.forEach((e=>e())),this._listeners.length=0,this.set("property.forceChange",null);const e=this.get("listener");e&&e.cancel(),delete this.inputElem,this._changePropHandler&&this._changePropHandler.cancel(),delete this._changePropHandler},focusElem(){this.find('input[value="'+this.get("property.value")+'"]').focus()}}),Mi=Ri.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"settings__row slider__row",id:[{t:2,r:"idAttr"},"__container"]},f:[{t:4,f:[{t:7,e:"label",a:{for:[{t:2,r:"idAttr"}],class:["p -small -secondary -margins ",{t:4,f:["-disabled"],n:50,x:{r:["property.locked","property.disabled","property.controllable"],s:"_0||_1||!_2"}}]},f:[{t:2,r:"property.desc"}]}],n:50,r:"property.desc"}," ",{t:7,e:"input",o:"registerInput",a:{class:["slider -white ",{t:2,r:"cssCls"}],type:"range",min:[{t:2,r:"min"}],max:[{t:2,r:"max"}],step:"1",value:[{t:2,r:"property.value"}],disabled:[{t:4,f:["true"],n:50,x:{r:["property.locked","property.disabled","property.controllable"],s:"_0||_1||!_2"}}],"data-test":[{t:2,r:"testAttr"}],id:[{t:2,r:"idAttr"}]},v:{mouseup:"changeProp",keyup:"changeProp"}}," ",{t:7,e:"label",a:{class:["slider__label ",{t:4,f:["-disabled"],n:50,x:{r:["property.locked","property.disabled","property.controllable"],s:"_0||_1||!_2"}}]},f:[{t:4,f:[{t:3,r:"label"}],n:50,r:"label"}]}," ",{t:4,f:[{t:7,e:"SettingsBadge"}],n:50,r:"property.locked"}]}]},components:{SettingsBadge:yi},data:()=>({cssCls:null}),computed:{label:function(){return this.get("property.options."+this.get("property.value")+".label")},min:function(){return this.get("property.options")?0:this.get("property.min")},max:function(){const e=this.get("property.options");return e?e.length-1:this.get("property.max")}},getUiValue(e){const t=this.get("property.options");return t?t.findIndex((t=>t.value===e)):e},getValueToStore(e){const t=this.get("property.options");return t?t[e.value].value:e.value},onteardown(){this._listeners.forEach((e=>e())),this._listeners.length=0,this.set("property.forceChange",null),delete this.inputElem,this._changePropHandler&&this._changePropHandler.cancel(),delete this._changePropHandler}}),Oi=Ri.extend({template:{v:3,t:[{t:7,e:"div",a:{class:["settings__row ",{t:2,x:{r:["wrapCssCls"],s:'_0||""'}}],id:[{t:2,r:"idAttr"},"__container"]},f:[{t:4,f:[{t:7,e:"h4",a:{class:"h4 g-margin-top--20 g-margin-bottom--5"},f:[{t:3,r:"property.label"}]}," ",{t:7,e:"p",a:{class:"text -small -secondary g-margin-bottom--15"},f:[{t:2,r:"property.desc"}]}," ",{t:7,e:"kin-dropdown",a:{class:[{t:2,r:"cssCls"}]},f:[{t:7,e:"kin-button",a:{slot:"dropdown-activator",type:"secondary"},f:[{t:7,e:"span",a:{class:"g-margin-right--10"},f:[{t:2,r:"currentOption.label"}]}," ",{t:7,e:"kin-icon",a:{name:"icon-s-controls-arrow-down",size:"20"}}]}," ",{t:4,f:[{t:7,e:"kin-dropdown-item",a:{type:"button"},v:{click:{m:"_setValue",a:{r:["value"],s:"[_0]"}}},f:[{t:7,e:"span",a:{class:"color-ok -text"},f:[{t:7,e:"kin-icon",a:{name:[{t:2,x:{r:[".","currentOption"],s:'_0===_1?"icon-s-status-check":""'}}],size:"20",class:"g-margin-right--10"}}]}," ",{t:7,e:"span",f:[{t:7,e:"span",a:{class:"g-font--bold"},f:[{t:2,r:"label"}]}," - ",{t:2,r:"desc"}]}]}],n:52,r:"property.options"}]}],n:50,x:{r:["layout"],s:'_0==="block-dropdown"'}},{t:4,n:51,f:[{t:4,f:[{t:4,f:[{t:7,e:"label",a:{for:[{t:2,r:"idAttr"}],class:["p -secondary -small g-margin-bottom--5 ",{t:4,f:["-disabled"],n:50,x:{r:["property.locked","property.disabled","property.controllable"],s:"_0||_1||!_2"}}]},f:[{t:3,r:"property.label"}]}],n:50,r:"labelSmall"},{t:4,n:51,f:[{t:7,e:"label",a:{for:[{t:2,r:"idAttr"}],class:["input__label ",{t:2,x:{r:["inline"],s:'_0?"-inline":""'}}," ",{t:4,f:["-disabled"],n:50,x:{r:["property.locked","property.disabled","property.controllable"],s:"_0||_1||!_2"}}]},f:[{t:3,r:"property.label"}]}],r:"labelSmall"}," ",{t:4,f:[{t:7,e:"p",a:{class:"p -secondary -small"},f:[{t:2,r:"property.desc"}]}],n:50,r:"property.desc"}],n:50,r:"property.label"}," ",{t:7,e:"select",o:"registerInput",a:{value:[{t:2,r:"property.value"}],disabled:[{t:4,f:["true"],n:50,x:{r:["property.locked","property.disabled","property.controllable"],s:"_0||_1||!_2"}}],"data-test":[{t:2,r:"testAttr"}],class:"input -dark",id:[{t:2,r:"idAttr"}]},v:{change:"changeProp"},f:[{t:4,f:[{t:7,e:"option",a:{value:[{t:2,r:"value"}]},f:[{t:3,r:"label"}]}],n:52,r:"property.options"}]}],x:{r:["layout"],s:'_0==="block-dropdown"'}}," ",{t:4,f:[{t:7,e:"SettingsBadge"}],n:50,r:"property.locked"}," ",{t:4,f:[{t:7,e:"div",o:"insertYield"}],n:50,r:"yieldElem"},{t:4,n:51,f:[{t:16}],r:"yieldElem"}]}]},components:{SettingsBadge:yi},data:()=>({layout:null,inline:null,cssCls:null,wrapCssCls:null,labelSmall:!1,currentOption:null}),onteardown(){this._listeners.forEach((e=>e())),this._listeners.length=0,this.set("property.forceChange",null),delete this.inputElem,this._changePropHandler&&this._changePropHandler.cancel(),delete this._changePropHandler},oninit(){this._super(),"block-dropdown"===this.get("layout")&&this.observe("property.value",(e=>{const t=this.get("property.options")||[];this.set("currentOption",t.find((t=>t.value===e)))}))},_setValue(e){this.set("property.value",e),this.changeProp()}}),Gi=x.extend({template:{v:3,t:[{t:7,e:"div",a:{class:"tab__block -margins"},f:[{t:7,e:"div",a:{class:"tab__wrap"},f:[{t:4,f:[{t:7,e:"button",a:{role:"tab","aria-selected":[{t:2,x:{r:["selectedTabId","id"],s:"_0===_1"}}],class:["tab ",{t:4,f:["-active"],n:50,x:{r:["selectedTabId","id"],s:"_0===_1"}}],id:[{t:2,r:"id"}],"data-test":[{t:2,x:{r:["testAttr","id"],s:"_0||_1"}}]},v:{click:"selectTab"},f:[{t:3,r:"title"}]}],r:"tabs"}]}," ",{t:4,f:[{t:7,e:"div",a:{class:"tab__pane"},f:[{t:4,f:[{t:7,e:"div",m:[{t:4,f:['style="display: none"'],n:50,x:{r:["id","selectedTabId"],s:"_0!==_1"}}],f:[{t:8,rx:{r:".",m:["id"]}}]}],r:"tabs"}]}],n:50,r:"selectedTabId"}]}]},data:()=>({tabs:null,selectedTabId:null,watchedTabsHeightContainer:null}),oninit(){this.on("selectTab",(e=>{this.selectTab(e.context)})),this.observe("tabs",this.onTabsChanged.bind(this)),this.observe("selectedTabId",(e=>{this.fire("selectedTabChanged",e)})),e.on("settings.selectTab",(e=>{this.get("tabs").some((t=>t.id===e))&&this.set("selectedTabId",e)}))},onrender(){setTimeout((()=>{this.fixEndOfPage()}))},selectTab(e){e.hash?window.location.hash=e.hash:(this.set("selectedTabId",e.id),this.fixEndOfPage())},onTabsChanged(e,t){t&&t.forEach((e=>{delete this.components[e.id],delete this.partials[e.id]})),e.forEach((e=>{if(e.compo){let t="";if(e.compoParams)for(const s in e.compoParams)t+=" "+s+'="'+e.compoParams[s]+'"';this.components[e.id]=e.compo,this.partials[e.id]="<"+e.id+t+" />"}else this.partials[e.id]="{{yield "+e.id+"}}"})),this.setSelectedTab()},setSelectedTab(){const e=this.get("tabs");e.some((e=>e.id===this.get("selectedTabId")))||this.set("selectedTabId",e&&e[0].id)},fixEndOfPage(){const e=this.get("watchedTabsHeightContainer");if(!e)return;const t=this.find(".tab__pane"),s=document.querySelector(e);this.maxTabHeight=this.maxTabHeight||0,this.maxTabHeight=Math.max(this.maxTabHeight,t.clientHeight),this.maxTabHeight>t.clientHeight?(this.emptySpaceDiv||(this.emptySpaceDiv=document.createElement("div"),this.emptySpaceDiv.classList.add("settings__tab-empty-space"),s.appendChild(this.emptySpaceDiv)),this.emptySpaceDiv.style.height=this.maxTabHeight-t.clientHeight):this.emptySpaceDiv&&(this.emptySpaceDiv.style.height=0)},onteardown(){this.emptySpaceDiv&&(this.emptySpaceDiv.remove(),this.emptySpaceDiv=void 0)}});const ji=Ri.extend({template:{v:3,t:[{t:4,f:[{t:4,f:[{t:7,e:"SettingsBadge"}],n:50,r:"property.locked"}," ",{t:4,f:[{t:7,e:"label",a:{for:[{t:2,r:"idAttr"}],class:["input__label -inline ",{t:4,f:["-disabled"],n:50,x:{r:["property.disabled","property.locked"],s:"_0||_1"}}],id:[{t:2,r:"idAttr"},"__container"]},f:[{t:3,r:"property.label"}]}," ",{t:8,r:"input"}],n:50,r:"property.label"},{t:4,n:51,f:[{t:7,e:"label",a:{for:[{t:2,r:"idAttr"}],id:[{t:2,r:"idAttr"},"__container"]},f:[{t:8,r:"input"}]}],r:"property.label"}],n:50,r:"inline"},{t:4,n:51,f:[{t:7,e:"div",a:{class:["settings__row ",{t:2,x:{r:["wrapCssCls"],s:'_0||""'}}],id:[{t:2,r:"idAttr"},"__container"]},f:[{t:4,f:[{t:7,e:"SettingsBadge"}],n:50,r:"property.locked"}," ",{t:4,f:[{t:7,e:"label",a:{class:[{t:2,x:{r:["labelSmall"],s:'_0?"p -secondary -small g-margin-bottom--5":"input__label"'}}," ",{t:4,f:["-disabled"],n:50,x:{r:["property.locked","property.disabled"],s:"_0||_1"}}],for:[{t:2,r:"idAttr"}]},f:[{t:3,r:"property.label"}]}],n:50,r:"property.label"}," ",{t:8,r:"input"}]}],r:"inline"}],p:{input:[{t:7,e:"span",a:{class:["stg_input__wrapper ",{t:2,r:"cssCls"}]},f:[{t:7,e:"input",a:{type:[{t:2,x:{r:["passwordShown","inputType"],s:'_0?"text":_1'}}],value:[{t:2,r:"property.value"}],id:[{t:2,r:"idAttr"}],"data-test":[{t:2,r:"testAttr"}],disabled:[{t:4,f:["true"],n:50,x:{r:["property.locked","property.disabled"],s:"_0||_1"}}],class:["input -field ",{t:2,x:{r:["property.storedValue","property.error"],s:'_0!==undefined&&_1?"-error":""'}}," ",{t:2,r:"cssCls"}]},m:[{t:4,f:['placeholder="',{t:2,r:"placeholderText"},'"'],n:50,r:"placeholderText"},{t:4,f:[' maxlength="',{t:2,x:{r:["property.maxValue"],s:'(_0+"").length'}},'"'],n:50,r:"property.maxValue"},{t:4,n:51,f:[{t:4,n:50,x:{r:["property.maxLength"],s:"_0"},f:['maxlength="',{t:2,r:"property.maxLength"},'"']}],r:"property.maxValue"}],v:{keyup:"inputKeyup",blur:"changeProp"}}," ",{t:4,f:[{t:7,e:"kin-button",v:{click:"togglePasswordShown"},a:{size:"small",type:"blank",icononly:0,title:[{t:2,x:{r:["nls","passwordShown"],s:'_0(_1?"global.hidePassword":"global.showPassword")'}}]},f:[{t:7,e:"kin-icon",a:{name:[{t:2,x:{r:["passwordShown"],s:'_0?"icon-m-eye-striked":"icon-m-eye"'}}],size:"16"}}]}],n:50,x:{r:["property.type"],s:'_0==="password"'}}," ",{t:4,f:[{t:7,e:"span",f:[{t:16,n:"labelRight"}]}],n:50,x:{r:["partialExists"],s:'_0("labelRight")'}}]}]}},css:".stg_input__wrapper {\n position: relative;\n}\n.stg_input__wrapper.-full {\n display: block;\n}\n.stg_input__wrapper > button,\n.stg_input__wrapper > kin-button {\n position: absolute;\n right: 0.4rem;\n top: 50%;\n transform: translateY(-50%) !important;\n}\n",components:{SettingsBadge:yi},data:()=>({property:null,style:null,inline:!1,wrapCssCls:null,cssCls:null,placeholderText:null,passwordShown:!1}),computed:{inputType:function(){const e=this.get("property");return e.type&&"number"!==e.type?e.type:"text"}},oninit(){this._super(),this.on("inputKeyup",(e=>{13===e.original.keyCode?e.node.blur():this.validateValue()})),this.on("togglePasswordShown",(()=>{this.toggle("passwordShown")}))},validateValue(){const e=this.get("property");let t;return t=e.regex&&!e.regex.test(e.value)?{valid:!1}:null!=e.minValue||null!=e.maxValue?ki(e):wi(e),t.valid&&this.set("property.value",t.value),this.set("property.error",!t.valid),t},onteardown(){this._listeners.forEach((e=>e())),this._listeners.length=0,this.set("property.forceChange",null),delete this.inputElem,this._changePropHandler&&this._changePropHandler.cancel(),delete this._changePropHandler}}),Bi=x.extend({template:{v:3,t:[{t:7,e:"p",a:{class:"settings__row"},f:[{t:7,e:"button",a:{class:"a -small","data-test":"openWhiteAndBlackList"},v:{click:"openWhiteAndBlackList"},f:[{t:2,x:{r:["nls"],s:'_0("settings.viewAllowedAndBlockedApps")'}}]}]}]},oninit(){this.on("openWhiteAndBlackList",(()=>{location.hash="Settings/blockedAndAllowedApps"}))}}),Vi=Object.freeze({__proto__:null,SettingsContainer:xi,SettingsCheckbox:Ui,SettingsRadio:Di,SettingsRange:Mi,SettingsSelect:Oi,SettingsTabs:Gi,SettingsTextInput:ji,SettingsWhiteAndBlackList:Bi,SettingsBadge:yi});function Fi(e,t,s){const n=e.slice();return n[25]=t[s].id,n[26]=t[s].transId,n}function zi(e,t,s){const n=e.slice();return n[25]=t[s].id,n[26]=t[s].transId,n[29]=t[s].icon,n}function qi(e){let t,s;return{c(){t=B("kin-icon"),Y(t,"name",s=e[29]),Y(t,"size","32"),Y(t,"class","nui_menu__icon")},m(e,s){O(e,t,s)},p(e,n){32&n[0]&&s!==(s=e[29])&&Y(t,"name",s)},d(e){e&&G(t)}}}function Wi(e){let t,s,n,a,i,o,r=u(e[26]||e[25])+"",l=e[29]&&qi(e);return{c(){t=B("a"),l&&l.c(),s=F(),n=V(r),a=F(),H(t,"href",i="#Settings/category/"+e[25]),H(t,"class","settings__item"),H(t,"aria-current",o=e[3].id===e[25]),Q(t,"-active",e[3].id===e[25])},m(e,i){O(e,t,i),l&&l.m(t,null),M(t,s),M(t,n),M(t,a)},p(e,a){e[29]?l?l.p(e,a):(l=qi(e),l.c(),l.m(t,s)):l&&(l.d(1),l=null),32&a[0]&&r!==(r=u(e[26]||e[25])+"")&&J(n,r),32&a[0]&&i!==(i="#Settings/category/"+e[25])&&H(t,"href",i),40&a[0]&&o!==(o=e[3].id===e[25])&&H(t,"aria-current",o),40&a[0]&&Q(t,"-active",e[3].id===e[25])},d(e){e&&G(t),l&&l.d()}}}function Hi(e){let t,s=e[3].sections,n=[];for(let a=0;a<s.length;a+=1)n[a]=Yi(Fi(e,s,a));return{c(){t=B("nav");for(let e=0;e<n.length;e+=1)n[e].c();H(t,"class","settings__submenu")},m(e,s){O(e,t,s);for(let a=0;a<n.length;a+=1)n[a].m(t,null)},p(e,a){if(24&a[0]){let i;for(s=e[3].sections,i=0;i<s.length;i+=1){const o=Fi(e,s,i);n[i]?n[i].p(o,a):(n[i]=Yi(o),n[i].c(),n[i].m(t,null))}for(;i<n.length;i+=1)n[i].d(1);n.length=s.length}},d(e){e&&G(t),j(n,e)}}}function Yi(e){let t,s,n,a,i,o=u(e[26]||e[25])+"";return{c(){t=B("a"),s=V(o),n=F(),H(t,"href",a="#Settings/"+e[25]),H(t,"class","settings__subitem"),H(t,"aria-current",i=e[4].id===e[25]?"":void 0),Q(t,"-active",e[4].id===e[25])},m(e,a){O(e,t,a),M(t,s),M(t,n)},p(e,n){8&n[0]&&o!==(o=u(e[26]||e[25])+"")&&J(s,o),8&n[0]&&a!==(a="#Settings/"+e[25])&&H(t,"href",a),24&n[0]&&i!==(i=e[4].id===e[25]?"":void 0)&&H(t,"aria-current",i),24&n[0]&&Q(t,"-active",e[4].id===e[25])},d(e){e&&G(t)}}}function Ki(e){let t;return{c(){t=B("kin-loading"),Y(t,"fullscreen","true")},m(e,s){O(e,t,s)},p:I,d(e){e&&G(t)}}}function Ji(e){let t,s,n,a,i,o,r,l,c,p=e[4].id+"",d=e[4].id+"";return{c(){t=B("h2"),s=V(p),n=V(" ERROR"),a=F(),i=B("div"),o=B("p"),r=V("Loading settings of "),l=V(d),c=V(" failed."),H(t,"class","h2 -margins")},m(e,p){O(e,t,p),M(t,s),M(t,n),O(e,a,p),O(e,i,p),M(i,o),M(o,r),M(o,l),M(o,c)},p(e,t){16&t[0]&&p!==(p=e[4].id+"")&&J(s,p),16&t[0]&&d!==(d=e[4].id+"")&&J(l,d)},d(e){e&&G(t),e&&G(a),e&&G(i)}}}function Xi(e){let t,s,n,a,i,o,r,l,c,p,d=e[5],g=[];for(let u=0;u<d.length;u+=1)g[u]=Wi(zi(e,d,u));let h=e[3].sections&&!e[3].hideSubmenu&&Hi(e);function f(e,t){return e[6]?Ji:e[2]?void 0:Ki}let m=f(e),b=m&&m(e);return{c(){t=B("nav"),s=B("button"),s.textContent=`${u("global.skipToMainContent")}`,n=F();for(let e=0;e<g.length;e+=1)g[e].c();a=F(),h&&h.c(),i=F(),o=B("main"),r=B("section"),l=F(),b&&b.c(),H(s,"class","nui_menu__skip"),H(t,"class","settings__menu"),H(r,"class","settings__section svelte-gpg6a1"),Q(r,"visibilityHidden",!e[2]),H(o,"class","settings__content svelte-gpg6a1"),Q(o,"overflowHidden",!e[2])},m(d,u){O(d,t,u),M(t,s),M(t,n);for(let e=0;e<g.length;e+=1)g[e].m(t,null);O(d,a,u),h&&h.m(d,u),O(d,i,u),O(d,o,u),M(o,r),e[10](r),M(o,l),b&&b.m(o,null),e[11](o),c||(p=q(s,"click",(function(){$(e[1])&&e[1].apply(this,arguments)})),c=!0)},p(s,n){if(e=s,40&n[0]){let s;for(d=e[5],s=0;s<d.length;s+=1){const a=zi(e,d,s);g[s]?g[s].p(a,n):(g[s]=Wi(a),g[s].c(),g[s].m(t,null))}for(;s<g.length;s+=1)g[s].d(1);g.length=d.length}e[3].sections&&!e[3].hideSubmenu?h?h.p(e,n):(h=Hi(e),h.c(),h.m(i.parentNode,i)):h&&(h.d(1),h=null),4&n[0]&&Q(r,"visibilityHidden",!e[2]),m===(m=f(e))&&b?b.p(e,n):(b&&b.d(1),b=m&&m(e),b&&(b.c(),b.m(o,null))),4&n[0]&&Q(o,"overflowHidden",!e[2])},i:I,o:I,d(s){s&&G(t),j(g,s),s&&G(a),h&&h.d(s),s&&G(i),s&&G(o),e[10](null),b&&b.d(),e[11](null),c=!1,p()}}}function Zi(t,s,n){const i=o.createLogger("settings.mainLayout");let r,l,c,{router:d}=s,{structure:u}=s,{contentElem:g}=s,{focusMainContent:h}=s,f={},m={},b=null,_=!1,v={};d.on("/",k),d.on("/:section/*",k),d.on("/category/:category",k),w();const S=e.on("product.change.feature.*.licensed",w),x=new Promise((e=>ne(e)));function k(e){i.debug("handleRoute",e);const t=e.wildcard;let s=null,o=null;if(e.category?s=e.category:e.section&&(s=v[e.section],o=s&&e.section),n(3,f=s?r.find((e=>e.id===s)):r[0]),o){const e=f.sections.find((e=>e.id===o));e&&function(e,t){m.id===e.id?T(t):setTimeout((()=>{n(4,m=e),function(e){return n(2,_=!1),n(6,l=!1),x.then((()=>function(e){return bi[e.id]?Promise.resolve(bi[e.id]):a.importModule(e.module||e.id,e.view||"settings")}(e))).then((e=>{n(0,g.scrollTop=0,g),I(),e.prototype.teardown?b=p(e,{isolated:!0,el:c,components:Vi}):(n(7,c.innerHTML="",c),b=p(e,{target:c})),n(2,_=!0)})).catch((e=>{i.error(e),n(6,l=!0)}))}(e).then((()=>T(t)))}),0)}(e,t)}else{A(f.sections.map((e=>"Settings/"+e.id)))}}function w(){v={},u.forEach((e=>{e.sections.forEach((t=>{v[t.id]=e.id}))})),n(5,r=u)}function T(e){b&&b.router&&b.router.emit(e||"")}function A(e,t=0){return y.isHashLocked("#"+e[t]).then((s=>{if(s){const s=t<e.length-1?t+1:0;return A(e,s)}window.location.hash=e[t]}))}function I(){b&&(b.$destroy(),b=null)}return ae((()=>{i.debug("onDestroy"),I(),d.removeAllListeners(),S()})),t.$$set=e=>{"router"in e&&n(8,d=e.router),"structure"in e&&n(9,u=e.structure),"contentElem"in e&&n(0,g=e.contentElem),"focusMainContent"in e&&n(1,h=e.focusMainContent)},t.$$.update=()=>{4&t.$$.dirty[0]&&_&&Ci()},[g,h,_,f,m,r,l,c,d,u,function(e){le[e?"unshift":"push"]((()=>{c=e,n(7,c)}))},function(e){le[e?"unshift":"push"]((()=>{g=e,n(0,g)}))}]}class Qi extends Re{constructor(e){var t;super(),document.getElementById("svelte-gpg6a1-style")||((t=B("style")).id="svelte-gpg6a1-style",t.textContent=".overflowHidden.svelte-gpg6a1{overflow:hidden}.visibilityHidden.svelte-gpg6a1{visibility:hidden}",M(document.head,t)),Ne(this,e,Zi,Xi,L,{router:8,structure:9,contentElem:0,focusMainContent:1},[-1,-1])}}const eo="checkbox",to="number",so="text",no="select",ao="button";for(var io=function(e){return e.replace(/[^\u0000-\u007e]/g,(function(e){return ro[e]||e}))},oo=[{base:" ",chars:" "},{base:"0",chars:"߀"},{base:"A",chars:"ⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",chars:"Ꜳ"},{base:"AE",chars:"ÆǼǢ"},{base:"AO",chars:"Ꜵ"},{base:"AU",chars:"Ꜷ"},{base:"AV",chars:"ꜸꜺ"},{base:"AY",chars:"Ꜽ"},{base:"B",chars:"ⒷBḂḄḆɃƁ"},{base:"C",chars:"ⒸCꜾḈĆCĈĊČÇƇȻ"},{base:"D",chars:"ⒹDḊĎḌḐḒḎĐƊƉᴅꝹ"},{base:"Dh",chars:"Ð"},{base:"DZ",chars:"DZDŽ"},{base:"Dz",chars:"DzDž"},{base:"E",chars:"ɛⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎᴇ"},{base:"F",chars:"ꝼⒻFḞƑꝻ"},{base:"G",chars:"ⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾɢ"},{base:"H",chars:"ⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",chars:"ⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",chars:"ⒿJĴɈȷ"},{base:"K",chars:"ⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",chars:"ⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",chars:"LJ"},{base:"Lj",chars:"Lj"},{base:"M",chars:"ⓂMḾṀṂⱮƜϻ"},{base:"N",chars:"ꞤȠⓃNǸŃÑṄŇṆŅṊṈƝꞐᴎ"},{base:"NJ",chars:"NJ"},{base:"Nj",chars:"Nj"},{base:"O",chars:"ⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OE",chars:"Œ"},{base:"OI",chars:"Ƣ"},{base:"OO",chars:"Ꝏ"},{base:"OU",chars:"Ȣ"},{base:"P",chars:"ⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",chars:"ⓆQꝖꝘɊ"},{base:"R",chars:"ⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",chars:"ⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",chars:"ⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",chars:"Þ"},{base:"TZ",chars:"Ꜩ"},{base:"U",chars:"ⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",chars:"ⓋVṼṾƲꝞɅ"},{base:"VY",chars:"Ꝡ"},{base:"W",chars:"ⓌWẀẂŴẆẄẈⱲ"},{base:"X",chars:"ⓍXẊẌ"},{base:"Y",chars:"ⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",chars:"ⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",chars:"ⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",chars:"ꜳ"},{base:"ae",chars:"æǽǣ"},{base:"ao",chars:"ꜵ"},{base:"au",chars:"ꜷ"},{base:"av",chars:"ꜹꜻ"},{base:"ay",chars:"ꜽ"},{base:"b",chars:"ⓑbḃḅḇƀƃɓƂ"},{base:"c",chars:"cⓒćĉċčçḉƈȼꜿↄ"},{base:"d",chars:"ⓓdḋďḍḑḓḏđƌɖɗƋᏧԁꞪ"},{base:"dh",chars:"ð"},{base:"dz",chars:"dzdž"},{base:"e",chars:"ⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇǝ"},{base:"f",chars:"ⓕfḟƒ"},{base:"ff",chars:"ff"},{base:"fi",chars:"fi"},{base:"fl",chars:"fl"},{base:"ffi",chars:"ffi"},{base:"ffl",chars:"ffl"},{base:"g",chars:"ⓖgǵĝḡğġǧģǥɠꞡꝿᵹ"},{base:"h",chars:"ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",chars:"ƕ"},{base:"i",chars:"ⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",chars:"ⓙjĵǰɉ"},{base:"k",chars:"ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",chars:"ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇɭ"},{base:"lj",chars:"lj"},{base:"m",chars:"ⓜmḿṁṃɱɯ"},{base:"n",chars:"ⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥлԉ"},{base:"nj",chars:"nj"},{base:"o",chars:"ⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿꝋꝍɵɔᴑ"},{base:"oe",chars:"œ"},{base:"oi",chars:"ƣ"},{base:"oo",chars:"ꝏ"},{base:"ou",chars:"ȣ"},{base:"p",chars:"ⓟpṕṗƥᵽꝑꝓꝕρ"},{base:"q",chars:"ⓠqɋꝗꝙ"},{base:"r",chars:"ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",chars:"ⓢsśṥŝṡšṧṣṩșşȿꞩꞅẛʂ"},{base:"ss",chars:"ß"},{base:"t",chars:"ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",chars:"þ"},{base:"tz",chars:"ꜩ"},{base:"u",chars:"ⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",chars:"ⓥvṽṿʋꝟʌ"},{base:"vy",chars:"ꝡ"},{base:"w",chars:"ⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",chars:"ⓧxẋẍ"},{base:"y",chars:"ⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",chars:"ⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ro={},lo=0;lo<oo.length;lo+=1)for(var co=oo[lo].chars,po=0;po<co.length;po+=1)ro[co[po]]=oo[lo].base;const uo=o.createLogger("settings.search");class go{constructor(e,t=[],s={}){this.searchStrings=[],this.structure=e,this.moduleSearchStrings=t,this.options=s}updateSearchStrings(e){this.customSearchStrings=e,this.customSearchStrings?this.searchStrings=this.customSearchStrings:this.buildSearchStrings()}getResults(e){return e&&e.length>2?this.searchQueryInStrings(e):[]}buildSearchStrings(){const e=[];this.structure.forEach((t=>{t.sections.forEach((t=>{t.route=t.route||"Settings/"+t.id,e.push(t)}))}));const t=e.map((e=>this._loadSectionSearchStrings(e)));Promise.all(t).then((t=>{this.searchStrings=[],t.forEach(((t,s)=>this._buildSectionSearchStrings(e[s],t)))}))}_loadSectionSearchStrings(e){if(this.moduleSearchStrings[e.id])return"function"==typeof this.moduleSearchStrings[e.id]?this.moduleSearchStrings[e.id]():this.moduleSearchStrings[e.id];{const t=e.module||e.id,s=e.view?e.view+"SearchStrings":"settingsSearchStrings";return a.importModule(t,s).then((e=>"function"==typeof e?e():e)).catch((()=>(uo.warn("loading search strings of "+e.id+" failed"),{title:e.transId||e.id})))}}_buildSectionSearchStrings(e,t){$i(e)?(this._buildSectionSearchString({title:t.title,desc:t.desc,others:t.others,isSectionTitle:!0,section:e}),this._buildSectionSearchStringItems(t.items,e),t.subpages&&t.subpages.forEach((t=>this._buildSubpageSearchStrings(t,e)))):this.customSearchStrings||this._buildSectionSearchString({title:t.title,desc:t.desc,isSectionTitle:!0,section:e})}_buildSubpageSearchStrings(e,t){const s="function"==typeof e.search?e.search():e.search;(s instanceof Promise?s:Promise.resolve(s)).then((s=>{const n={title:s.title,subroute:s.subroute};this._buildSectionSearchString({title:s.title,desc:s.desc,section:t,subpage:n,elemId:e.id,tabId:"tab"===e.type?e.id:null,isSectionTitle:!0}),this._buildSectionSearchStringItems(s.items,t,n),s.subpages&&s.subpages.forEach((e=>this._buildSubpageSearchStrings(e,t)))})).catch((s=>{console.error("Getting search strings of a subpage failed",s,e,t)}))}_buildSectionSearchString(e){const t=e.title,s=e.desc,n=e.others,a=e.isSectionTitle;if(!t)return;const i=[{string:u(t),stringEn:this._nlsEn(t),score:2}];let o;s&&i.push({string:u(s),stringEn:this._nlsEn(s),score:1}),n&&n.forEach((e=>{i.push({string:u(e),stringEn:this._nlsEn(e)})})),o=a?s&&u(s):u(t),this.searchStrings.push({section:e.section,subpage:e.subpage,tabId:e.tabId,elemId:e.elemId,napiEvent:e.napiEvent,napiEventParams:e.napiEventParams,title:o,strings:i})}_buildSectionSearchStringItems(e,t,s){if(!e)return;let n=Object.keys(e).map((t=>e[t]));const a=[];n.forEach((e=>{e&&"tab"===e.type&&e.search&&e.search.items&&Object.keys(e.search.items).map((t=>e.search.items[t])).forEach((t=>{t.tabId=e.id,a.push(t)}))})),n=n.concat(a),n.forEach((n=>{if(!n)return void console.error("[Settings] {SearchEngine} Section is broken:",t,"with items:",e);const a=n.search?Ii(n):null,i=n.tabId||"tab"===n.type&&n.id;"object"==typeof n.search&&null!=n.search?this._buildSectionSearchString({elemId:a,title:n.search.title,desc:n.search.desc,others:n.search.others,section:t,subpage:s,tabId:i,napiEvent:n.search.napiEvent,napiEventParams:n.search.napiEventParams}):null!=n.search&&this._buildSectionSearchString({elemId:a,title:n.search,section:t,subpage:s,tabId:i})}))}searchQueryInStrings(e){const t=[];if(this.options.geekAreaDisabled||"geek:area"!==e&&"about:config"!==e&&"about:flags"!==e){const s=e=>{const t=d.stripHtml(e||"");return io(t).replace(/[\!@#\$\^\&%\*\(\)\+\=\-\[\]\\\/\{\}\|\:<>\?,\._'"`]/g,"")},n=s(e);if(this.searchStrings&&n.length){const e=new RegExp(n,"i");this.searchStrings.forEach((n=>{let a;n.strings.forEach((t=>{(e.test(s(t.string))||e.test(s(t.stringEn)))&&(a||(a={title:n.title,section:n.section,subpage:n.subpage,tabId:n.tabId,elemId:n.elemId,napiEvent:n.napiEvent,napiEventParams:n.napiEventParams,score:0}),a.score+=t.score||0)})),a&&t.push(a)}))}}else t.push(this._getGeekAreaResult());return t.sort(((e,t)=>t.score-e.score))}_nlsEn(e){const t=g(e,"en");return t&&t[0]}_getGeekAreaResult(){return{section:{id:"geekArea",transId:"settings.geekArea"},title:u("settings.geekArea.desc")}}}const{window:ho}=Te;function fo(e,t,s){const n=e.slice();return n[31]=t[s],n}function mo(e,t,s){const n=e.slice();return n[34]=t[s],n[36]=s,n}const bo=e=>({}),_o=e=>({});function vo(e){let t,s;return t=new vs({props:{cssCls:"-search",hiddenTitle:u("settings.searchPlaceholder"),$$slots:{"modal-footer":[Io],"modal-content":[Ao],"modal-header":[yo]},$$scope:{ctx:e}}}),t.$on("close",e[19]),{c(){Ee(t.$$.fragment)},m(e,n){Ce(t,e,n),s=!0},p(e,s){const n={};1048605&s[0]&&(n.$$scope={dirty:s,ctx:e}),t.$set(n)},i(e){s||(ke(t.$$.fragment,e),s=!0)},o(e){we(t.$$.fragment,e),s=!1},d(e){$e(t,e)}}}function yo(e){let t,s,n,a,i;return{c(){t=B("div"),s=B("kin-input"),Y(s,"value",e[0]),Y(s,"type","search"),Y(s,"size","large"),Y(s,"id","stg_search-input"),Y(s,"label",u("settings.searchPlaceholder")),Y(s,"title",n=""===e[0]?u("settings.searchPlaceholder"):u("settings.searchHint")),H(t,"slot","modal-header")},m(n,o){O(n,t,o),M(t,s),a||(i=[q(s,"input",e[18]),D(Eo.call(null,s))],a=!0)},p(e,t){1&t[0]&&Y(s,"value",e[0]),1&t[0]&&n!==(n=""===e[0]?u("settings.searchPlaceholder"):u("settings.searchHint"))&&Y(s,"title",n)},d(e){e&&G(t),a=!1,C(i)}}}function So(e){let t,s,n=h(e[34].subpage.title)+"";return{c(){t=V("> "),s=V(n)},m(e,n){O(e,t,n),O(e,s,n)},p(e,t){8&t[0]&&n!==(n=h(e[34].subpage.title)+"")&&J(s,n)},d(e){e&&G(t),e&&G(s)}}}function xo(e){let t,s,n=d.stripHtml(e[34].title)+"";return{c(){t=V("> "),s=V(n)},m(e,n){O(e,t,n),O(e,s,n)},p(e,t){8&t[0]&&n!==(n=d.stripHtml(e[34].title)+"")&&J(s,n)},d(e){e&&G(t),e&&G(s)}}}function ko(e){let t,s,n,a,i,o,r,l,c=h(e[34].section.transId||e[34].section.id)+"",p=e[34].subpage&&So(e),d=e[34].title&&xo(e);function g(){return e[15](e[34])}function f(){return e[16](e[36])}return{c(){t=B("button"),s=B("span"),n=V(c),a=F(),p&&p.c(),i=F(),d&&d.c(),o=F(),H(s,"class","stg_search__item__highlight svelte-1fumwb2"),H(t,"class","stg_search__item svelte-1fumwb2"),H(t,"title",u("settings.search.goToResult")),Q(t,"-hover",e[4]===e[36])},m(e,c){O(e,t,c),M(t,s),M(s,n),M(s,a),p&&p.m(s,null),M(t,i),d&&d.m(t,null),M(t,o),r||(l=[q(t,"click",g),q(t,"focus",f)],r=!0)},p(a,i){e=a,8&i[0]&&c!==(c=h(e[34].section.transId||e[34].section.id)+"")&&J(n,c),e[34].subpage?p?p.p(e,i):(p=So(e),p.c(),p.m(s,null)):p&&(p.d(1),p=null),e[34].title?d?d.p(e,i):(d=xo(e),d.c(),d.m(t,o)):d&&(d.d(1),d=null),16&i[0]&&Q(t,"-hover",e[4]===e[36])},d(e){e&&G(t),p&&p.d(),d&&d.d(),r=!1,C(l)}}}function wo(e){let t,s,n,a,i=e[2],o=[];for(let r=0;r<i.length;r+=1)o[r]=To(fo(e,i,r));return{c(){t=B("div"),s=B("div"),s.textContent=`${u("settings.recommended")}`,n=F(),a=B("div");for(let e=0;e<o.length;e+=1)o[e].c();H(s,"class","stg_recommended__title svelte-1fumwb2"),H(a,"class","stg_recommended__items"),H(t,"class","stg_recommended svelte-1fumwb2")},m(e,i){O(e,t,i),M(t,s),M(t,n),M(t,a);for(let t=0;t<o.length;t+=1)o[t].m(a,null)},p(e,t){if(516&t[0]){let s;for(i=e[2],s=0;s<i.length;s+=1){const n=fo(e,i,s);o[s]?o[s].p(n,t):(o[s]=To(n),o[s].c(),o[s].m(a,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=i.length}},d(e){e&&G(t),j(o,e)}}}function To(e){let t,s,n,a,i,o,r,l,c,p=e[31].title+"";function d(){return e[17](e[31])}return{c(){t=B("a"),s=B("kin-icon"),a=F(),i=V(p),o=F(),Y(s,"name",n=e[31].icon),Y(s,"size","20"),Y(s,"class","g-margin-right--10"),H(t,"class","stg_recommended__item svelte-1fumwb2"),H(t,"href",r="#"+e[31].route)},m(e,n){O(e,t,n),M(t,s),M(t,a),M(t,i),M(t,o),l||(c=q(t,"click",d),l=!0)},p(a,o){e=a,4&o[0]&&n!==(n=e[31].icon)&&Y(s,"name",n),4&o[0]&&p!==(p=e[31].title+"")&&J(i,p),4&o[0]&&r!==(r="#"+e[31].route)&&H(t,"href",r)},d(e){e&&G(t),l=!1,c()}}}function Ao(e){let t,s,n,a,i,o=e[3],r=[];for(let c=0;c<o.length;c+=1)r[c]=ko(mo(e,o,c));let l=!e[3].length&&e[2]&&wo(e);return{c(){t=B("div"),s=B("div");for(let e=0;e<r.length;e+=1)r[e].c();n=F(),l&&l.c(),H(t,"slot","modal-content")},m(o,c){O(o,t,c),M(t,s);for(let e=0;e<r.length;e+=1)r[e].m(s,null);M(t,n),l&&l.m(t,null),a||(i=D(e[5].call(null,s)),a=!0)},p(e,n){if(280&n[0]){let t;for(o=e[3],t=0;t<o.length;t+=1){const a=mo(e,o,t);r[t]?r[t].p(a,n):(r[t]=ko(a),r[t].c(),r[t].m(s,null))}for(;t<r.length;t+=1)r[t].d(1);r.length=o.length}!e[3].length&&e[2]?l?l.p(e,n):(l=wo(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},d(e){e&&G(t),j(r,e),l&&l.d(),a=!1,i()}}}function Io(e){let t,s,n,a,i,o,r,l,c,p,d,g,h,f,m,b=u("settings.search.toNavigate")+"",_=u("settings.search.toSelect")+"",v=u("settings.search.toClose")+"";return{c(){t=B("div"),s=B("span"),n=B("kin-icon"),a=F(),i=V(b),o=F(),r=B("span"),l=B("kin-icon"),c=F(),p=V(_),d=F(),g=B("span"),h=B("strong"),h.textContent="esc",f=F(),m=V(v),Y(n,"name","navigate"),Y(n,"size","16"),Y(n,"class","svelte-1fumwb2"),H(s,"class","stg_search__footer__item g-margin-right--20 svelte-1fumwb2"),Y(l,"name","return"),Y(l,"size","16"),Y(l,"class","svelte-1fumwb2"),H(r,"class","stg_search__footer__item g-margin-right--20 svelte-1fumwb2"),H(h,"class","svelte-1fumwb2"),H(g,"class","stg_search__footer__item svelte-1fumwb2"),H(t,"slot","modal-footer")},m(e,u){O(e,t,u),M(t,s),M(s,n),M(s,a),M(s,i),M(t,o),M(t,r),M(r,l),M(r,c),M(r,p),M(t,d),M(t,g),M(g,h),M(g,f),M(g,m)},p:I,d(e){e&&G(t)}}}function Po(e){let t,s,n,a,i;const o=e[14].searchButton,r=N(o,e,e[20],_o);let l=e[1]&&vo(e);return{c(){r&&r.c(),t=F(),l&&l.c(),s=z()},m(o,c){r&&r.m(o,c),O(o,t,c),l&&l.m(o,c),O(o,s,c),n=!0,a||(i=q(ho,"keydown",e[6]),a=!0)},p(e,t){r&&r.p&&1048576&t[0]&&U(r,o,e,e[20],t,bo,_o),e[1]?l?(l.p(e,t),2&t[0]&&ke(l,1)):(l=vo(e),l.c(),ke(l,1),l.m(s.parentNode,s)):l&&(Se(),we(l,1,1,(()=>{l=null})),xe())},i(e){n||(ke(r,e),ke(l),n=!0)},o(e){we(r,e),we(l),n=!1},d(e){r&&r.d(e),e&&G(t),l&&l.d(e),e&&G(s),a=!1,i()}}}function Eo(e){e.focus()}function Co(t,s,n){let{$$slots:a={},$$scope:i}=s;const r=o.createLogger("settings.search"),l=ie();let{structure:c}=s,{customSearchStrings:p}=s,{mainLayoutContentElem:d}=s,{recommendedItems:u=null}=s,{geekAreaDisabled:g=!1}=s,{isVisible:h=!1}=s,{query:f}=s;const m=new go(c,_i,{geekAreaDisabled:g});let b,_,v=[],y=[],S=0;var x;function k(){m.updateSearchStrings(p)}function w(t,s){e.emit("Settings.hideSearch"),h&&(s&&e.emit("Settings.gaTrack","Close the search dialog"),n(1,h=!1),n(4,S=0),t&&n(0,f=null))}function T(t){const s="geekArea"===t.section.id;if(e.emit("Settings.gaTrack","Searched expression",f),r.debug("goToResult",t),w(s),s)l("geekArea");else{const e=window.location.hash.replace("#","");let s=t.section.route;if(s&&(s+=t.subpage&&t.subpage.subroute?"/"+t.subpage.subroute:""),"Settings/geekArea"!==e&&e!==s&&s){try{localStorage.settingsSearchResult=JSON.stringify(t)}catch(n){console.error("Saving search result to localStorage failed",n)}window.location.hash=s}else Ci(t),!t.elemId&&d&&d.scrollTo(0,0)}}function A(e){e&&l("trackClick",{burgerLabel:e}),w(!1,!1)}ne((()=>{_=e.on("product.change",k)})),x=function(){setTimeout((()=>{y=b?b.querySelectorAll(".stg_search__item"):[]}))},se().$$.after_update.push(x),ae((()=>{_&&_()}));return t.$$set=e=>{"structure"in e&&n(10,c=e.structure),"customSearchStrings"in e&&n(11,p=e.customSearchStrings),"mainLayoutContentElem"in e&&n(12,d=e.mainLayoutContentElem),"recommendedItems"in e&&n(2,u=e.recommendedItems),"geekAreaDisabled"in e&&n(13,g=e.geekAreaDisabled),"isVisible"in e&&n(1,h=e.isVisible),"query"in e&&n(0,f=e.query),"$$scope"in e&&n(20,i=e.$$scope)},t.$$.update=()=>{1&t.$$.dirty[0]&&n(3,v=m.getResults(f)),2048&t.$$.dirty[0]&&k()},[f,h,u,v,S,function(e){b=e},function(t){let s,a=y.length;if("geek:area"!==f&&"about:config"!==f&&"about:flags"!==f||(a=1,s=S),"KeyF"===t.code&&t.ctrlKey)h||(e.emit("Settings.gaTrack","Open the search dialog"),n(1,h=!0),Ci(void 0));else if(h&&a)switch(t.code){case"ArrowDown":S===a-1?(t.preventDefault(),s=0):s=S+1,y[s].focus();break;case"ArrowUp":0===S?(t.preventDefault(),s=a-1):s=S-1,y[s].focus();break;case"Enter":case"NumpadEnter":t.preventDefault(),T(v[S])}},w,T,A,c,p,d,g,a,e=>T(e),e=>n(4,S=e),e=>A(e.burgerLabel),e=>n(0,f=e.target.value),()=>w(!0,!0),i]}class $o extends Re{constructor(e){var t;super(),document.getElementById("svelte-1fumwb2-style")||((t=B("style")).id="svelte-1fumwb2-style",t.textContent=".stg_recommended.svelte-1fumwb2.svelte-1fumwb2{text-align:start}.stg_recommended__title.svelte-1fumwb2.svelte-1fumwb2{text-transform:uppercase;color:var(--color-ok);padding:2rem 1rem 0.2rem;font-size:var(--font-size-tiny)}.stg_recommended__item.svelte-1fumwb2.svelte-1fumwb2{padding:1rem 0.8rem;width:100%;text-align:start;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:var(--font-size-small);color:var(--color-text);cursor:pointer;font-weight:bold;text-decoration:none}.stg_recommended__item.svelte-1fumwb2.svelte-1fumwb2:hover,.stg_recommended__item.svelte-1fumwb2.svelte-1fumwb2:focus{background-color:var(--ds-on-background-extra-light)}.stg_search__item.svelte-1fumwb2.svelte-1fumwb2{padding:1rem 0.8rem;width:100%;text-align:start;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:var(--font-size-small);color:var(--color-text-secondary);cursor:pointer}.stg_search__item__highlight.svelte-1fumwb2.svelte-1fumwb2{font-weight:bold;color:var(--color-text)}.stg_search__item.svelte-1fumwb2.svelte-1fumwb2:hover,.stg_search__item.-hover.svelte-1fumwb2.svelte-1fumwb2{background-color:var(--ds-on-background-extra-light)}.stg_search__footer__item.svelte-1fumwb2.svelte-1fumwb2{color:var(--color-text-secondary);font-size:var(--font-size-small)}.stg_search__footer__item.svelte-1fumwb2 strong.svelte-1fumwb2,.stg_search__footer__item.svelte-1fumwb2 kin-icon.svelte-1fumwb2{color:var(--color-text);font-weight:bold}",M(document.head,t)),Ne(this,e,Co,Po,L,{structure:10,customSearchStrings:11,mainLayoutContentElem:12,recommendedItems:2,geekAreaDisabled:13,isVisible:1,query:0},[-1,-1])}}function Lo(e){let t,s,n;return{c(){t=B("span")},m(a,i){O(a,t,i),s||(n=D(e[0].call(null,t)),s=!0)},p:I,i:I,o:I,d(e){e&&G(t),s=!1,n()}}}function No(e,t,s){let n,{label:a=null}=t,{icon:i=null}=t,{cssCls:o=null}=t;return ae((()=>n&&n.teardown())),e.$$set=e=>{"label"in e&&s(1,a=e.label),"icon"in e&&s(2,i=e.icon),"cssCls"in e&&s(3,o=e.cssCls)},[function(e){n=new yi({el:e,data:{label:a,icon:i,cssCls:o}})},a,i,o]}class Ro extends Re{constructor(e){super(),Ne(this,e,No,Lo,L,{label:1,icon:2,cssCls:3})}}function Uo(e,t,s){const n=e.slice();return n[11]=t[s],n}function Do(e){let t,s;return t=new Ro({}),{c(){Ee(t.$$.fragment)},m(e,n){Ce(t,e,n),s=!0},i(e){s||(ke(t.$$.fragment,e),s=!0)},o(e){we(t.$$.fragment,e),s=!1},d(e){$e(t,e)}}}function Mo(e){let t,s,n;return{c(){t=B("kin-button"),t.textContent="Perform"},m(a,i){O(a,t,i),s||(n=q(t,"click",e[3]),s=!0)},p:I,d(e){e&&G(t),s=!1,n()}}}function Oo(e){let t,s,n,a,i=e[0].options,o=[];for(let r=0;r<i.length;r+=1)o[r]=Bo(Uo(e,i,r));return{c(){t=B("select");for(let e=0;e<o.length;e+=1)o[e].c();H(t,"class","input svelte-kgvbfo"),t.disabled=s=e[0].locked||!e[0].controllable,void 0===e[0].value&&ge((()=>e[6].call(t)))},m(s,i){O(s,t,i);for(let e=0;e<o.length;e+=1)o[e].m(t,null);Z(t,e[0].value),n||(a=[q(t,"change",e[6]),q(t,"blur",e[1])],n=!0)},p(e,n){if(1&n){let s;for(i=e[0].options,s=0;s<i.length;s+=1){const a=Uo(e,i,s);o[s]?o[s].p(a,n):(o[s]=Bo(a),o[s].c(),o[s].m(t,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=i.length}1&n&&s!==(s=e[0].locked||!e[0].controllable)&&(t.disabled=s),1&n&&Z(t,e[0].value)},d(e){e&&G(t),j(o,e),n=!1,C(a)}}}function Go(e){let t,s,n,a,i,o,r=e[0].unit&&Vo(e);return{c(){t=B("input"),n=F(),r&&r.c(),a=z(),H(t,"class","input -field svelte-kgvbfo"),H(t,"type","text"),t.disabled=s=e[0].locked||!e[0].controllable,Q(t,"-error",e[0].error),Q(t,"-number",e[0].type===to)},m(s,l){O(s,t,l),X(t,e[0].value),O(s,n,l),r&&r.m(s,l),O(s,a,l),i||(o=[q(t,"input",e[5]),q(t,"keyup",e[2]),q(t,"change",e[1])],i=!0)},p(e,n){1&n&&s!==(s=e[0].locked||!e[0].controllable)&&(t.disabled=s),1&n&&t.value!==e[0].value&&X(t,e[0].value),1&n&&Q(t,"-error",e[0].error),1&n&&Q(t,"-number",e[0].type===to),e[0].unit?r?r.p(e,n):(r=Vo(e),r.c(),r.m(a.parentNode,a)):r&&(r.d(1),r=null)},d(e){e&&G(t),e&&G(n),r&&r.d(e),e&&G(a),i=!1,C(o)}}}function jo(e){let t,s,n,a;return{c(){t=B("input"),H(t,"type","checkbox"),H(t,"class","checkbox"),t.disabled=s=e[0].locked||!e[0].controllable},m(s,i){O(s,t,i),t.checked=e[0].value,n||(a=[q(t,"change",e[4]),q(t,"change",e[1])],n=!0)},p(e,n){1&n&&s!==(s=e[0].locked||!e[0].controllable)&&(t.disabled=s),1&n&&(t.checked=e[0].value)},d(e){e&&G(t),n=!1,C(a)}}}function Bo(e){let t,s,n,a=e[11].label+"";return{c(){t=B("option"),s=V(a),t.__value=n=e[11].value,t.value=t.__value},m(e,n){O(e,t,n),M(t,s)},p(e,i){1&i&&a!==(a=e[11].label+"")&&J(s,a),1&i&&n!==(n=e[11].value)&&(t.__value=n,t.value=t.__value)},d(e){e&&G(t)}}}function Vo(e){let t,s=e[0].unit+"";return{c(){t=V(s)},m(e,s){O(e,t,s)},p(e,n){1&n&&s!==(s=e[0].unit+"")&&J(t,s)},d(e){e&&G(t)}}}function Fo(e){let t,s,n,a,i,o,r,l,c,p,d,g,h=e[0].label+"",f=u(e[0].desc)+"",m=e[0].locked&&Do();function b(e,t){return e[0].type===eo?jo:e[0].type===so||e[0].type===to?Go:e[0].type===no?Oo:e[0].type===ao?Mo:void 0}let _=b(e),v=_&&_(e);return{c(){t=B("tr"),s=B("td"),n=B("p"),a=V(h),i=F(),m&&m.c(),o=F(),r=B("p"),l=V(f),c=F(),p=B("td"),v&&v.c(),H(n,"class","p"),H(r,"class","p -secondary -small"),H(p,"class","stg_geek__field svelte-kgvbfo"),H(t,"id",d=e[0].elemId)},m(e,d){O(e,t,d),M(t,s),M(s,n),M(n,a),M(n,i),m&&m.m(n,null),M(s,o),M(s,r),M(r,l),M(t,c),M(t,p),v&&v.m(p,null),g=!0},p(e,[s]){(!g||1&s)&&h!==(h=e[0].label+"")&&J(a,h),e[0].locked?m?1&s&&ke(m,1):(m=Do(),m.c(),ke(m,1),m.m(n,null)):m&&(Se(),we(m,1,1,(()=>{m=null})),xe()),(!g||1&s)&&f!==(f=u(e[0].desc)+"")&&J(l,f),_===(_=b(e))&&v?v.p(e,s):(v&&v.d(1),v=_&&_(e),v&&(v.c(),v.m(p,null))),(!g||1&s&&d!==(d=e[0].elemId))&&H(t,"id",d)},i(e){g||(ke(m),g=!0)},o(e){we(m),g=!1},d(e){e&&G(t),m&&m.d(),v&&v.d()}}}function zo(s,n,a){const i=o.createLogger("settings.geekRow"),r=[];let{prop:l}=n;function c(){if(!l.path&&!l.load)return;let e;if(l.load)e=l.load&&l.load();else{const s="string"==typeof l.path?{name:l.path}:l.path;e=t("app.settings.Get",s)}return e.then((e=>(e?(a(0,l.value=l.type===eo?1==e.value:e.value,l),a(0,l.storedValue=l.value,l),a(0,l.locked="1"==e.locked,l),a(0,l.controllable=!0,l),a(0,l._valueType=typeof l.value,l),a(0,l.error=!1,l)):(i.error("the response is not supposed to be empty",l),a(0,l.controllable=!1,l)),l)))}function p(){let e;return e=l.regex&&!l.regex.test(l.value)?{valid:!1}:"number"===l.type?ki(l):wi(l),e.valid&&a(0,l.value=e.value,l),a(0,l.error=!e.valid,l),e.valid}function d(){return l.track&&l.track.subject||l.label}return ne((()=>{l.updateOnEvent&&r.push(e.on(l.updateOnEvent,c)),c()})),ae((()=>{r.forEach((e=>e()))})),s.$$set=e=>{"prop"in e&&a(0,l=e.prop)},[l,function(){if(i.debug("changeProperty",l),a(0,l.controllable=!1,l),p()){const s=Ti(l);let n=l.change&&l.change(s);if(e.emit("Settings.gaTrack",d(),l.value),!n){const e={value:s};l.path.name?Object.assign(e,l.path):e.name=l.path,n=t("app.settings.Set",e)}n.then((()=>{a(0,l.storedValue=l.value,l),a(0,l.controllable=!0,l),l.emitOnChange&&e.emit(l.emitOnChange)})).catch((()=>{a(0,l.value=l.storedValue,l),a(0,l.controllable=!0,l)}))}else a(0,l.controllable=!0,l)},p,function(){e.emit("Settings.gaTrack",d(),"Perform"),l.action()},function(){l.value=this.checked,a(0,l)},function(){l.value=this.value,a(0,l)},function(){l.value=function(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}(this),a(0,l)}]}class qo extends Re{constructor(e){var t;super(),document.getElementById("svelte-kgvbfo-style")||((t=B("style")).id="svelte-kgvbfo-style",t.textContent=".stg_geek__field.svelte-kgvbfo.svelte-kgvbfo{position:relative}.stg_geek__field.svelte-kgvbfo input[type='text'].svelte-kgvbfo,.stg_geek__field.svelte-kgvbfo select.svelte-kgvbfo{width:100%}.stg_geek__field.svelte-kgvbfo input.-number.svelte-kgvbfo{width:60%}",M(document.head,t)),Ne(this,e,zo,Fo,L,{prop:0})}}function Wo(e,t,s){const n=e.slice();return n[8]=t[s],n}function Ho(e,t,s){const n=e.slice();return n[11]=t[s],n}function Yo(e){let t;return{c(){t=B("kin-loading"),Y(t,"fullscreen","true")},m(e,s){O(e,t,s)},p:I,i:I,o:I,d(e){e&&G(t)}}}function Ko(e){let t,s,n=e[0],a=[];for(let o=0;o<n.length;o+=1)a[o]=Xo(Wo(e,n,o));const i=e=>we(a[e],1,1,(()=>{a[e]=null}));return{c(){t=B("div");for(let e=0;e<a.length;e+=1)a[e].c();H(t,"class","settings__upgrade")},m(e,n){O(e,t,n);for(let s=0;s<a.length;s+=1)a[s].m(t,null);s=!0},p(e,s){if(1&s){let o;for(n=e[0],o=0;o<n.length;o+=1){const i=Wo(e,n,o);a[o]?(a[o].p(i,s),ke(a[o],1)):(a[o]=Xo(i),a[o].c(),ke(a[o],1),a[o].m(t,null))}for(Se(),o=n.length;o<a.length;o+=1)i(o);xe()}},i(e){if(!s){for(let e=0;e<n.length;e+=1)ke(a[e]);s=!0}},o(e){a=a.filter(Boolean);for(let t=0;t<a.length;t+=1)we(a[t]);s=!1},d(e){e&&G(t),j(a,e)}}}function Jo(e){let t,s;return t=new qo({props:{prop:e[11]}}),{c(){Ee(t.$$.fragment)},m(e,n){Ce(t,e,n),s=!0},p(e,s){const n={};1&s&&(n.prop=e[11]),t.$set(n)},i(e){s||(ke(t.$$.fragment,e),s=!0)},o(e){we(t.$$.fragment,e),s=!1},d(e){$e(t,e)}}}function Xo(e){let t,s,n,a,i,o,r,l,c,p,d,g,h,f,m=u(e[8].transId||e[8].id)+"",b=e[8].properties,_=[];for(let u=0;u<b.length;u+=1)_[u]=Jo(Ho(e,b,u));const v=e=>we(_[e],1,1,(()=>{_[e]=null}));return{c(){t=B("h4"),s=V(m),a=F(),i=B("table"),o=B("colgroup"),o.innerHTML='<col width="75%"/> \n\t\t\t\t\t\t\t\t<col width="25%"/>',r=F(),l=B("tr"),c=B("th"),c.textContent=`${u("settings.geekArea.item")}`,p=F(),d=B("th"),d.textContent=`${u("settings.geekArea.value")}`,g=F();for(let e=0;e<_.length;e+=1)_[e].c();h=F(),H(t,"class","h4 settings__title g-margin-top--30"),H(t,"id",n=e[8].elemId),H(i,"class","table -no-border -fixed")},m(e,n){O(e,t,n),M(t,s),O(e,a,n),O(e,i,n),M(i,o),M(i,r),M(i,l),M(l,c),M(l,p),M(l,d),M(i,g);for(let t=0;t<_.length;t+=1)_[t].m(i,null);M(i,h),f=!0},p(e,a){if((!f||1&a)&&m!==(m=u(e[8].transId||e[8].id)+"")&&J(s,m),(!f||1&a&&n!==(n=e[8].elemId))&&H(t,"id",n),1&a){let t;for(b=e[8].properties,t=0;t<b.length;t+=1){const s=Ho(e,b,t);_[t]?(_[t].p(s,a),ke(_[t],1)):(_[t]=Jo(s),_[t].c(),ke(_[t],1),_[t].m(i,h))}for(Se(),t=b.length;t<_.length;t+=1)v(t);xe()}},i(e){if(!f){for(let e=0;e<b.length;e+=1)ke(_[e]);f=!0}},o(e){_=_.filter(Boolean);for(let t=0;t<_.length;t+=1)we(_[t]);f=!1},d(e){e&&G(t),e&&G(a),e&&G(i),j(_,e)}}}function Zo(e){let t,s,n,a,i,o,r,l,c,p,d,g,h,f,m,b,_,v,y,S,x,k,w,T=u("settings.geekArea")+"",A=u("settings.geekArea.desc")+"";const I=[Ko,Yo],P=[];function E(e,t){return e[0]?0:1}return y=E(e),S=P[y]=I[y](e),{c(){t=B("nav"),s=B("div"),n=B("kin-icon"),a=F(),i=V(T),o=F(),r=B("div"),l=B("p"),l.textContent=`${u("settings.geekArea.doYouWantToLeave")}`,c=F(),p=B("kin-button"),p.textContent=`${u("settings.geekArea.goBack")}`,d=F(),g=B("main"),h=B("section"),f=B("div"),m=B("h3"),m.textContent=`${u("settings.geekArea")}`,b=F(),_=B("p"),v=F(),S.c(),Y(n,"name","icon-m-eye"),H(s,"class","settings__item -geek -active"),H(s,"aria-current",""),H(l,"class","p -secondary -small"),Y(p,"class","g-margin-top--15"),H(r,"class","settings__item -geek"),H(t,"class","settings__menu"),H(m,"class","h3 settings__title"),H(_,"class","settings__desc"),H(f,"id","stg-section-geekArea"),H(h,"class","settings__section"),H(g,"class","settings__content -no-submenu")},m(u,S){O(u,t,S),M(t,s),M(s,n),M(s,a),M(s,i),M(t,o),M(t,r),M(r,l),M(r,c),M(r,p),O(u,d,S),O(u,g,S),M(g,h),M(h,f),M(f,m),M(f,b),M(f,_),_.innerHTML=A,M(f,v),P[y].m(f,null),x=!0,k||(w=q(p,"click",e[3]),k=!0)},p(e,[t]){let s=y;y=E(e),y===s?P[y].p(e,t):(Se(),we(P[s],1,1,(()=>{P[s]=null})),xe(),S=P[y],S?S.p(e,t):(S=P[y]=I[y](e),S.c()),ke(S,1),S.m(f,null))},i(e){x||(ke(S),x=!0)},o(e){we(S),x=!1},d(e){e&&G(t),e&&G(d),e&&G(g),P[y].d(),k=!1,w()}}}function Qo(e){const t=e.map((e=>function(e){const t=e.map((e=>e.cond||!0));return Promise.all(t).then((t=>e.filter(((e,s)=>t[s])))).catch((e=>(console.log("validating section definitions failed",e),[])))}(e)));return Promise.all(t)}function er(e,t,s){const n=o.createLogger("settings.geekArea"),i=ie();let r,{structure:l}=t;(function(){const e=[],t=[];return l.forEach((s=>{s.sections.forEach((s=>{if($i(s))if(e.push(s),vi[s.id])t.push(vi[s.id]);else{const e=s.module||s.id,n=s.view?s.view+"Geek":"settingsGeek",i=a.importModule(e,n,{silent:!0}).then((e=>"function"==typeof e?e():e)).catch((()=>[]));t.push(i)}}))})),e.push({id:"general",transId:"settings.general"}),t.push([{path:"avcfg://settings/Common/ReputationServices",label:"Enable reputation services",desc:u("geek.reputation.services.desc"),type:"checkbox"},{path:"avcfg://settings/BrowserCleanup/ScheduledMode",label:"Check my browsers regularly for toolbars with bad user ratings",type:"checkbox"}]),Promise.all(t).then(Qo).then((t=>e.filter(((e,s)=>(e.properties=t[s],e.properties.length))))).catch((e=>{n.error("loading property definitions failed",e)}))})().then((e=>{e.forEach((e=>{e.elemId="settings_geekArea_"+e.id,e.properties.forEach((e=>{let t;t=e.path?"string"==typeof e.path?e.path:JSON.stringify(e.path):e.id,e.elemId=t&&"settings_geekArea_"+t.replace(/[^a-zA-Z0-9]+/g,"_")}))})),s(0,r=e)})).then((function(){const e=[];r.forEach((t=>{e.push({section:t,elemId:t.elemId,strings:[{string:u(t.transId||t.id),score:2}]}),t.properties.forEach((s=>{s.unsearchable||e.push({section:t,title:s.label,elemId:s.elemId,strings:[{string:s.label,score:1},{string:s.desc}]})}))})),i("searchStrings",e)}));return e.$$set=e=>{"structure"in e&&s(2,l=e.structure)},[r,i,l,()=>i("close")]}class tr extends Re{constructor(e){super(),Ne(this,e,er,Zo,L,{structure:2})}}function sr(e){let t,s,n,a,i,o,r,l;function c(t){e[15](t)}function p(t){e[16](t)}let d={structure:e[2],customSearchStrings:e[4],mainLayoutContentElem:e[5],$$slots:{searchButton:[ir]},$$scope:{ctx:e}};void 0!==e[6]&&(d.isVisible=e[6]),void 0!==e[7]&&(d.query=e[7]),s=new $o({props:d}),le.push((()=>Pe(s,"isVisible",c))),le.push((()=>Pe(s,"query",p))),s.$on("geekArea",e[10]);const u=[rr,or],g=[];function h(e,t){return e[3]?0:1}return o=h(e),r=g[o]=u[o](e),{c(){t=B("div"),Ee(s.$$.fragment),i=F(),r.c(),H(t,"class","settings stg")},m(e,n){O(e,t,n),Ce(s,t,null),M(t,i),g[o].m(t,null),l=!0},p(e,i){const l={};4&i&&(l.structure=e[2]),16&i&&(l.customSearchStrings=e[4]),32&i&&(l.mainLayoutContentElem=e[5]),16777408&i&&(l.$$scope={dirty:i,ctx:e}),!n&&64&i&&(n=!0,l.isVisible=e[6],he((()=>n=!1))),!a&&128&i&&(a=!0,l.query=e[7],he((()=>a=!1))),s.$set(l);let c=o;o=h(e),o===c?g[o].p(e,i):(Se(),we(g[c],1,1,(()=>{g[c]=null})),xe(),r=g[o],r?r.p(e,i):(r=g[o]=u[o](e),r.c()),ke(r,1),r.m(t,null))},i(e){l||(ke(s.$$.fragment,e),ke(r),l=!0)},o(e){we(s.$$.fragment,e),we(r),l=!1},d(e){e&&G(t),$e(s),g[o].d()}}}function nr(e){let t;return{c(){t=B("kin-loading"),Y(t,"fullscreen","true")},m(e,s){O(e,t,s)},p:I,i:I,o:I,d(e){e&&G(t)}}}function ar(e){let t,s,n;return{c(){t=V(": '"),s=V(e[7]),n=V("'")},m(e,a){O(e,t,a),O(e,s,a),O(e,n,a)},p(e,t){128&t&&J(s,e[7])},d(e){e&&G(t),e&&G(s),e&&G(n)}}}function ir(e){let t,s,n,a,i,o,r,l,c=u("global.search")+"",p=e[7]&&ar(e);return{c(){t=B("kin-button"),s=B("span"),n=B("kin-icon"),a=F(),i=B("span"),o=V(c),p&&p.c(),Y(n,"name","search"),Y(n,"class","g-margin-right--5"),Y(n,"size","16"),H(s,"class","g-ellipsis"),Y(t,"slot","searchButton"),Y(t,"type","blank"),Y(t,"size","small"),Y(t,"class","settings__searchbar nui_caption_client nui_caption_client-overlay"),Y(t,"data-test","settings_showSearch")},m(c,d){O(c,t,d),M(t,s),M(s,n),M(s,a),M(s,i),M(i,o),p&&p.m(i,null),r||(l=q(t,"click",e[14]),r=!0)},p(e,t){e[7]?p?p.p(e,t):(p=ar(e),p.c(),p.m(i,null)):p&&(p.d(1),p=null)},d(e){e&&G(t),p&&p.d(),r=!1,l()}}}function or(e){let t,s,n;function a(t){e[17](t)}let i={structure:e[2],router:e[8],focusMainContent:e[0]};return void 0!==e[5]&&(i.contentElem=e[5]),t=new Qi({props:i}),le.push((()=>Pe(t,"contentElem",a))),{c(){Ee(t.$$.fragment)},m(e,s){Ce(t,e,s),n=!0},p(e,n){const a={};4&n&&(a.structure=e[2]),1&n&&(a.focusMainContent=e[0]),!s&&32&n&&(s=!0,a.contentElem=e[5],he((()=>s=!1))),t.$set(a)},i(e){n||(ke(t.$$.fragment,e),n=!0)},o(e){we(t.$$.fragment,e),n=!1},d(e){$e(t,e)}}}function rr(e){let t,s;return t=new tr({props:{structure:e[2]}}),t.$on("close",e[11]),t.$on("searchStrings",e[9]),{c(){Ee(t.$$.fragment)},m(e,n){Ce(t,e,n),s=!0},p(e,s){const n={};4&s&&(n.structure=e[2]),t.$set(n)},i(e){s||(ke(t.$$.fragment,e),s=!0)},o(e){we(t.$$.fragment,e),s=!1},d(e){$e(t,e)}}}function lr(e){let t,s,n,a;const i=[nr,sr],o=[];function r(e,t){return e[1]?0:1}return t=r(e),s=o[t]=i[t](e),{c(){s.c(),n=z()},m(e,s){o[t].m(e,s),O(e,n,s),a=!0},p(e,[a]){let l=t;t=r(e),t===l?o[t].p(e,a):(Se(),we(o[l],1,1,(()=>{o[l]=null})),xe(),s=o[t],s?s.p(e,a):(s=o[t]=i[t](e),s.c()),ke(s,1),s.m(n.parentNode,n))},i(e){a||(ke(s),a=!0)},o(e){we(s),a=!1},d(e){o[t].d(e),e&&G(n)}}}function cr(s,n,a){const l=o.createLogger("settings.index");let{brandParams:c}=n;const p=new r;let{focusMainContent:d}=n;const u=new r;let g,h,f,m,b,_=!0,v=!1,y="";p.on("/*",(function(e){x.then((()=>{l.debug("handleRoute",e);const t=e.wildcard,s=0===t.indexOf("geekArea");a(3,h=s),s||setTimeout((()=>u.emit(t)),0)}))}));const S=e.on("Settings.gaTrack",(function(e,t,s){const n=s?{cd21:s}:null;i.event("Settings",t,e,null,n)})),x=c.structurePromise.then((e=>{a(2,g=e),a(1,_=!1)})).catch((e=>{l.error("loading structure failed",e)}));ae((()=>{p.removeAllListeners(),S(),t("app.settings.ApplySettings")}));return s.$$set=e=>{"brandParams"in e&&a(12,c=e.brandParams),"focusMainContent"in e&&a(0,d=e.focusMainContent)},[d,_,g,h,f,b,v,y,u,function(e){a(4,f=e.detail)},function(){m=window.location.hash,window.location.hash="Settings/geekArea"},function(){a(4,f=null),window.location.hash=m||"Settings",m=null},c,p,()=>a(6,v=!0),function(e){v=e,a(6,v)},function(e){y=e,a(7,y)},function(e){b=e,a(5,b)}]}class pr extends Re{constructor(e){super(),Ne(this,e,cr,lr,L,{brandParams:12,router:13,focusMainContent:0})}get brandParams(){return this.$$.ctx[12]}set brandParams(e){this.$set({brandParams:e}),be()}get router(){return this.$$.ctx[13]}get focusMainContent(){return this.$$.ctx[0]}set focusMainContent(e){this.$set({focusMainContent:e}),be()}}function dr(e){let t,s,n,a,i,o;const r=e[14].default,l=N(r,e,e[13],null);return{c(){t=B("span"),s=F(),n=B("div"),l&&l.c()},m(r,c){O(r,t,c),O(r,s,c),O(r,n,c),l&&l.m(n,null),a=!0,i||(o=[D(e[0].call(null,t)),D(e[1].call(null,n))],i=!0)},p(e,[t]){l&&l.p&&8192&t&&U(l,r,e,e[13],t,null,null)},i(e){a||(ke(l,e),a=!0)},o(e){we(l,e),a=!1},d(e){e&&G(t),e&&G(s),e&&G(n),l&&l.d(e),i=!1,C(o)}}}function ur(e,t,s){let n,a,i,{$$slots:o={},$$scope:r}=t,{title:l}=t,{desc:c=null}=t,{component:p=null}=t,{ipmBuyElm:d=null}=t,{noInstall:u=!1}=t,{noEnable:g=!1}=t,{componentService:h=null}=t,{stopOptions:f=null}=t,{notSupported:m=null}=t,{notSupportedMsg:b=null}=t;function _(){a&&i&&(s(12,n=new xi({el:a,data:{component:p,ipmBuyElm:d,title:l,desc:c,noInstall:u,noEnable:g,componentService:h,stopOptions:f,notSupported:m,notSupportedMsg:b,yieldElem:i}})),n.observe("notSupported",(e=>s(2,m=e))))}return ae((()=>{n&&n.teardown()})),e.$$set=e=>{"title"in e&&s(3,l=e.title),"desc"in e&&s(4,c=e.desc),"component"in e&&s(5,p=e.component),"ipmBuyElm"in e&&s(6,d=e.ipmBuyElm),"noInstall"in e&&s(7,u=e.noInstall),"noEnable"in e&&s(8,g=e.noEnable),"componentService"in e&&s(9,h=e.componentService),"stopOptions"in e&&s(10,f=e.stopOptions),"notSupported"in e&&s(2,m=e.notSupported),"notSupportedMsg"in e&&s(11,b=e.notSupportedMsg),"$$scope"in e&&s(13,r=e.$$scope)},e.$$.update=()=>{4100&e.$$.dirty&&n&&null!=m&&n.set("notSupported",m)},[function(e){a=e,_()},function(e){i=e,_()},m,l,c,p,d,u,g,h,f,b,n,r,o]}function gr(e){let t,s,n,a,i,o;const r=e[5].default,l=N(r,e,e[4],null);return{c(){t=B("span"),s=F(),n=B("div"),l&&l.c()},m(r,c){O(r,t,c),O(r,s,c),O(r,n,c),l&&l.m(n,null),a=!0,i||(o=[D(e[0].call(null,t)),D(e[1].call(null,n))],i=!0)},p(e,[t]){l&&l.p&&16&t&&U(l,r,e,e[4],t,null,null)},i(e){a||(ke(l,e),a=!0)},o(e){we(l,e),a=!1},d(e){e&&G(t),e&&G(s),e&&G(n),l&&l.d(e),i=!1,C(o)}}}function hr(e,t,s){let n,a,i,{$$slots:o={},$$scope:r}=t,{property:l}=t;function c(){a&&i&&(s(3,n=new Ui({el:a,data:{property:l,yieldElem:i}})),n.observe("property",(e=>s(2,l=e))))}return ae((()=>n&&n.teardown())),e.$$set=e=>{"property"in e&&s(2,l=e.property),"$$scope"in e&&s(4,r=e.$$scope)},e.$$.update=()=>{12&e.$$.dirty&&l&&n&&(n.set("property.label",l.label),n.set("property.desc",l.desc),n.set("property.disabled",l.disabled))},[function(e){a=e,c()},function(e){i=e,c()},l,n,r,o]}function fr(e,t,s){const n=e.slice();return n[8]=t[s],n}function mr(e){let t,s,n,a,i,o;var r=e[8].descCompo;return r&&(s=new r({})),{c(){t=B("span"),s&&Ee(s.$$.fragment)},m(r,l){O(r,t,l),s&&Ce(s,t,null),a=!0,i||(o=D(n=e[1].call(null,t,{type:"desc",option:e[8]})),i=!0)},p(a,i){if(r!==(r=(e=a)[8].descCompo)){if(s){Se();const e=s;we(e.$$.fragment,1,0,(()=>{$e(e,1)})),xe()}r?(s=new r({}),Ee(s.$$.fragment),ke(s.$$.fragment,1),Ce(s,t,null)):s=null}n&&$(n.update)&&1&i&&n.update.call(null,{type:"desc",option:e[8]})},i(e){a||(s&&ke(s.$$.fragment,e),a=!0)},o(e){s&&we(s.$$.fragment,e),a=!1},d(e){e&&G(t),s&&$e(s),i=!1,o()}}}function br(e){let t,s,n,a,i,o;var r=e[8].customCompo;return r&&(s=new r({})),{c(){t=B("span"),s&&Ee(s.$$.fragment)},m(r,l){O(r,t,l),s&&Ce(s,t,null),a=!0,i||(o=D(n=e[1].call(null,t,{type:"custom",option:e[8]})),i=!0)},p(a,i){if(r!==(r=(e=a)[8].customCompo)){if(s){Se();const e=s;we(e.$$.fragment,1,0,(()=>{$e(e,1)})),xe()}r?(s=new r({}),Ee(s.$$.fragment),ke(s.$$.fragment,1),Ce(s,t,null)):s=null}n&&$(n.update)&&1&i&&n.update.call(null,{type:"custom",option:e[8]})},i(e){a||(s&&ke(s.$$.fragment,e),a=!0)},o(e){s&&we(s.$$.fragment,e),a=!1},d(e){e&&G(t),s&&$e(s),i=!1,o()}}}function _r(e){let t,s,n,a=e[8].descCompo&&mr(e),i=e[8].customCompo&&br(e);return{c(){a&&a.c(),t=F(),i&&i.c(),s=z()},m(e,o){a&&a.m(e,o),O(e,t,o),i&&i.m(e,o),O(e,s,o),n=!0},p(e,n){e[8].descCompo?a?(a.p(e,n),1&n&&ke(a,1)):(a=mr(e),a.c(),ke(a,1),a.m(t.parentNode,t)):a&&(Se(),we(a,1,1,(()=>{a=null})),xe()),e[8].customCompo?i?(i.p(e,n),1&n&&ke(i,1)):(i=br(e),i.c(),ke(i,1),i.m(s.parentNode,s)):i&&(Se(),we(i,1,1,(()=>{i=null})),xe())},i(e){n||(ke(a),ke(i),n=!0)},o(e){we(a),we(i),n=!1},d(e){a&&a.d(e),e&&G(t),i&&i.d(e),e&&G(s)}}}function vr(e){let t,s,n,a,i,o,r=e[0].options,l=[];for(let p=0;p<r.length;p+=1)l[p]=_r(fr(e,r,p));const c=e=>we(l[e],1,1,(()=>{l[e]=null}));return{c(){t=B("span"),s=F();for(let e=0;e<l.length;e+=1)l[e].c();n=z()},m(r,c){O(r,t,c),O(r,s,c);for(let e=0;e<l.length;e+=1)l[e].m(r,c);O(r,n,c),a=!0,i||(o=D(e[2].call(null,t)),i=!0)},p(e,[t]){if(1&t){let s;for(r=e[0].options,s=0;s<r.length;s+=1){const a=fr(e,r,s);l[s]?(l[s].p(a,t),ke(l[s],1)):(l[s]=_r(a),l[s].c(),ke(l[s],1),l[s].m(n.parentNode,n))}for(Se(),s=r.length;s<l.length;s+=1)c(s);xe()}},i(e){if(!a){for(let e=0;e<r.length;e+=1)ke(l[e]);a=!0}},o(e){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)we(l[t]);a=!1},d(e){e&&G(t),e&&G(s),j(l,e),e&&G(n),i=!1,o()}}}function yr(e,t,s){let n,a,{property:i}=t,o=0,r=0;function l(){!n||r>o||(a=new Di({el:n,data:{property:i}}),a.observe("property",(e=>s(0,i=e))))}return i.options.forEach((e=>{e.descCompo&&r++,e.customCompo&&r++})),ae((()=>a&&a.teardown())),e.$$set=e=>{"property"in e&&s(0,i=e.property)},[i,function(e,{type:t,option:s}){switch(t){case"desc":s.descCompoElem=e,o++;break;case"custom":s.customCompoElem=e,o++}e.parentNode.removeChild(e),l()},function(e){n=e,l()}]}function Sr(e){let t,s,n;return{c(){t=B("span")},m(a,i){O(a,t,i),s||(n=D(e[0].call(null,t)),s=!0)},p:I,i:I,o:I,d(e){e&&G(t),s=!1,n()}}}function xr(e,t,s){let n,{property:a}=t,{cssCls:i}=t;return ae((()=>n&&n.teardown())),e.$$set=e=>{"property"in e&&s(1,a=e.property),"cssCls"in e&&s(2,i=e.cssCls)},[function(e){n=new Mi({el:e,data:{property:a,cssCls:i}}),n.observe("property",(e=>s(1,a=e)))},a,i]}function kr(e){let t,s,n,a,i,o;const r=e[9].default,l=N(r,e,e[8],null);return{c(){t=B("span"),s=F(),n=B("span"),l&&l.c()},m(r,c){O(r,t,c),O(r,s,c),O(r,n,c),l&&l.m(n,null),a=!0,i||(o=[D(e[0].call(null,t)),D(e[1].call(null,n))],i=!0)},p(e,[t]){l&&l.p&&256&t&&U(l,r,e,e[8],t,null,null)},i(e){a||(ke(l,e),a=!0)},o(e){we(l,e),a=!1},d(e){e&&G(t),e&&G(s),e&&G(n),l&&l.d(e),i=!1,C(o)}}}function wr(e,t,s){let n,a,i,{$$slots:o={},$$scope:r}=t,{property:l}=t,{layout:c}=t,{inline:p}=t,{cssCls:d}=t,{wrapCssCls:u}=t,{labelSmall:g}=t;function h(){a&&i&&(n=new Oi({el:a,data:{property:l,layout:c,yieldElem:i,inline:p,cssCls:d,wrapCssCls:u,labelSmall:g}}),n.observe("property",(e=>s(2,l=e))))}return ae((()=>n&&n.teardown())),e.$$set=e=>{"property"in e&&s(2,l=e.property),"layout"in e&&s(3,c=e.layout),"inline"in e&&s(4,p=e.inline),"cssCls"in e&&s(5,d=e.cssCls),"wrapCssCls"in e&&s(6,u=e.wrapCssCls),"labelSmall"in e&&s(7,g=e.labelSmall),"$$scope"in e&&s(8,r=e.$$scope)},[function(e){a=e,h()},function(e){i=e,h()},l,c,p,d,u,g,r,o]}function Tr(e){let t,s,n;return{c(){t=B("span")},m(a,i){O(a,t,i),s||(n=D(e[0].call(null,t)),s=!0)},p:I,i:I,o:I,d(e){e&&G(t),s=!1,n()}}}function Ar(e,t,s){let n,{tabs:a}=t,{selectedTabId:i}=t,{watchedTabsHeightContainer:o}=t;return ae((()=>n&&n.teardown())),e.$$set=e=>{"tabs"in e&&s(1,a=e.tabs),"selectedTabId"in e&&s(2,i=e.selectedTabId),"watchedTabsHeightContainer"in e&&s(3,o=e.watchedTabsHeightContainer)},[function(e){a&&a.forEach((e=>{e.compo&&e.compo.prototype.teardown&&(e.compo.components=Vi)})),n=new Gi({el:e,data:{tabs:a,selectedTabId:i,watchedTabsHeightContainer:o}})},a,i,o]}function Ir(e){let t,s,n;return{c(){t=B("span")},m(a,i){O(a,t,i),s||(n=D(e[0].call(null,t)),s=!0)},p:I,i:I,o:I,d(e){e&&G(t),s=!1,n()}}}function Pr(e,t,s){let n,{property:a}=t,{style:i}=t,{inline:o}=t,{wrapCssCls:r}=t,{cssCls:l}=t,{placeholderText:c}=t;return ae((()=>n&&n.teardown())),e.$$set=e=>{"property"in e&&s(1,a=e.property),"style"in e&&s(2,i=e.style),"inline"in e&&s(3,o=e.inline),"wrapCssCls"in e&&s(4,r=e.wrapCssCls),"cssCls"in e&&s(5,l=e.cssCls),"placeholderText"in e&&s(6,c=e.placeholderText)},[function(e){n=new ji({el:e,data:{property:a,style:i,inline:o,wrapCssCls:r,cssCls:l,placeholderText:c}}),n.observe("property",(e=>s(1,a=e)))},a,i,o,r,l,c]}function Er(e){let t,s,n;return{c(){t=B("span")},m(a,i){O(a,t,i),s||(n=D(e[0].call(null,t)),s=!0)},p:I,i:I,o:I,d(e){e&&G(t),s=!1,n()}}}function Cr(e){let t;return ae((()=>t&&t.teardown())),[function(e){t=new Bi({el:e})}]}function $r(e,t,s){const n=e.slice();return n[18]=t[s],n[20]=s,n}function Lr(e){let t,s,n,a,i,o,r,l,c,p,d,g,h,f,m,b,_,v,y,S,x,k,w,T=e[5],A=[];for(let u=0;u<T.length;u+=1)A[u]=Dr($r(e,T,u));let I=!e[2]&&0===e[0]&&Mr(e);return{c(){t=B("kin-table"),s=B("div"),n=B("input"),r=F(),l=B("div"),l.textContent=`${u("settings.blockedAllowed.appName")}`,c=F(),p=B("div"),p.textContent=`${u("global.location")}`,d=F(),g=B("div"),g.textContent=`${u("global.status")}`,h=F(),f=B("div"),m=F(),b=B("div");for(let e=0;e<A.length;e+=1)A[e].c();_=F(),v=B("div"),S=F(),I&&I.c(),x=z(),H(n,"type","checkbox"),H(n,"class","checkbox"),H(n,"aria-checked",a=e[5].length!==e[0]&&e[0]>0?"mixed":null),n.disabled=i=0===e[5].length,n.checked=o=e[0]>0,H(n,"title",u("global.selectAllItems")+" - "+u("antiransomware.protectedFolders.title")),Q(n,"-checked",e[5].length===e[0]&&e[0]>0),H(l,"role","columnheader"),H(p,"role","columnheader"),H(g,"role","columnheader"),H(s,"slot","table-header"),H(s,"role","row"),H(s,"class","baa_table__header svelte-e3t6qi"),H(b,"slot","table-body"),Q(b,"g-margin-bottom--60",0===e[0]),H(v,"slot","table-empty-icon"),H(v,"class","svg -empty-table"),Y(t,"datalength",y=e[5].length),Y(t,"selecteditems",e[0]),Y(t,"loading",e[6])},m(a,i){O(a,t,i),M(t,s),M(s,n),M(s,r),M(s,l),M(s,c),M(s,p),M(s,d),M(s,g),M(s,h),M(s,f),M(t,m),M(t,b);for(let e=0;e<A.length;e+=1)A[e].m(b,null);M(t,_),M(t,v),O(a,S,i),I&&I.m(a,i),O(a,x,i),k||(w=q(n,"click",e[9]),k=!0)},p(e,s){if(33&s&&a!==(a=e[5].length!==e[0]&&e[0]>0?"mixed":null)&&H(n,"aria-checked",a),32&s&&i!==(i=0===e[5].length)&&(n.disabled=i),1&s&&o!==(o=e[0]>0)&&(n.checked=o),33&s&&Q(n,"-checked",e[5].length===e[0]&&e[0]>0),1322&s){let t;for(T=e[5],t=0;t<T.length;t+=1){const n=$r(e,T,t);A[t]?A[t].p(n,s):(A[t]=Dr(n),A[t].c(),A[t].m(b,null))}for(;t<A.length;t+=1)A[t].d(1);A.length=T.length}1&s&&Q(b,"g-margin-bottom--60",0===e[0]),32&s&&y!==(y=e[5].length)&&Y(t,"datalength",y),1&s&&Y(t,"selecteditems",e[0]),64&s&&Y(t,"loading",e[6]),e[2]||0!==e[0]?I&&(I.d(1),I=null):I?I.p(e,s):(I=Mr(e),I.c(),I.m(x.parentNode,x))},d(e){e&&G(t),j(A,e),e&&G(S),I&&I.d(e),e&&G(x),k=!1,w()}}}function Nr(e){let t;return{c(){t=B("div"),t.innerHTML='<div class="center"><kin-loading></kin-loading></div>',H(t,"class","center__wrap")},m(e,s){O(e,t,s)},p:I,d(e){e&&G(t)}}}function Rr(e){let t;return{c(){t=B("h5"),t.textContent=`${f("Blocked")}`,H(t,"class","h5 color-critical -text")},m(e,s){O(e,t,s)},p:I,d(e){e&&G(t)}}}function Ur(e){let t;return{c(){t=B("h5"),t.textContent=`${f("Allowed")}`,H(t,"class","h5 color-ok -text")},m(e,s){O(e,t,s)},p:I,d(e){e&&G(t)}}}function Dr(e){let t,s,n,a,i,o,r,l,c,p,d,g,h,f,m,b,_,v,y,S,x,k,w,T,A,I,P,E,$,L,N,R,U=e[18].name+"",D=e[18].name+"",j=e[18].path+"",z=e[18].path+"";function W(...t){return e[12](e[18],...t)}function K(){return e[13](e[18])}function X(e,t){return"allowed"===e[18].shields[e[1]]?Ur:Rr}let Z=X(e),ee=Z(e);return{c(){t=B("div"),s=B("input"),a=F(),i=B("div"),o=B("img"),c=F(),p=B("div"),d=B("kin-tooltip"),g=B("div"),h=V(U),f=F(),m=B("div"),b=V(D),_=F(),v=B("div"),y=B("kin-tooltip"),S=B("div"),x=V(j),k=F(),w=B("div"),T=V(z),A=F(),I=B("div"),P=B("kin-switch"),$=F(),ee.c(),L=F(),H(s,"type","checkbox"),H(s,"class","checkbox"),H(s,"id","folderName-"+e[20]),s.checked=n=e[3].includes(e[18].path),H(s,"title",u("global.selectItem")),H(o,"height","24"),o.src!==(r="data:gif/png;base64,"+e[18].icon)&&H(o,"src",r),H(o,"alt",l=e[18].name),H(g,"slot","tooltip-activator"),H(m,"slot","tooltip"),Y(d,"ellipsis","true"),H(p,"class","kin_table__name"),H(S,"slot","tooltip-activator"),H(w,"slot","tooltip"),Y(y,"ellipsis","true"),H(v,"class","kin_table__name"),H(v,"dir","ltr"),Y(P,"size","small"),Y(P,"checked",E="allowed"===e[18].shields[e[1]]),Y(P,"class","g-margin-right--10"),H(I,"class",""),H(t,"role","row"),H(t,"class","baa_table__row kin_table__row svelte-e3t6qi"),H(t,"aria-rowindex",e[20]),H(t,"data-test","table-row-"+e[20]),Q(t,"-selected",e[3].includes(e[18].path))},m(e,n){O(e,t,n),M(t,s),M(t,a),M(t,i),M(i,o),M(t,c),M(t,p),M(p,d),M(d,g),M(g,h),M(d,f),M(d,m),M(m,b),M(t,_),M(t,v),M(v,y),M(y,S),M(S,x),M(y,k),M(y,w),M(w,T),M(t,A),M(t,I),M(I,P),M(I,$),ee.m(I,null),M(t,L),N||(R=[q(s,"click",W),q(P,"click",K)],N=!0)},p(a,i){e=a,40&i&&n!==(n=e[3].includes(e[18].path))&&(s.checked=n),32&i&&o.src!==(r="data:gif/png;base64,"+e[18].icon)&&H(o,"src",r),32&i&&l!==(l=e[18].name)&&H(o,"alt",l),32&i&&U!==(U=e[18].name+"")&&J(h,U),32&i&&D!==(D=e[18].name+"")&&J(b,D),32&i&&j!==(j=e[18].path+"")&&J(x,j),32&i&&z!==(z=e[18].path+"")&&J(T,z),34&i&&E!==(E="allowed"===e[18].shields[e[1]])&&Y(P,"checked",E),Z===(Z=X(e))&&ee?ee.p(e,i):(ee.d(1),ee=Z(e),ee&&(ee.c(),ee.m(I,null))),40&i&&Q(t,"-selected",e[3].includes(e[18].path))},d(e){e&&G(t),ee.d(),N=!1,C(R)}}}function Mr(e){let t,s,n,a,i,o,r=f("Add application")+"";return{c(){t=B("kin-button"),s=B("kin-icon"),n=F(),a=V(r),Y(s,"name","icon-s-add"),Y(s,"size","24"),Y(t,"size","large"),Y(t,"floating",""),Y(t,"class","sve_one-page__action-single-button")},m(r,l){O(r,t,l),M(t,s),M(t,n),M(t,a),i||(o=q(t,"click",e[14]),i=!0)},p:I,d(e){e&&G(t),i=!1,o()}}}function Or(e){let t,s,n;return{c(){t=B("div")},m(a,i){O(a,t,i),s||(n=D(e[7].call(null,t)),s=!0)},d(e){e&&G(t),s=!1,n()}}}function Gr(e){let t,s;function n(e,t){return e[6]?Nr:Lr}let a=n(e),i=a(e),o=e[4]&&Or(e);return{c(){i.c(),t=F(),o&&o.c(),s=z()},m(e,n){i.m(e,n),O(e,t,n),o&&o.m(e,n),O(e,s,n)},p(e,[r]){a===(a=n(e))&&i?i.p(e,r):(i.d(1),i=a(e),i&&(i.c(),i.m(t.parentNode,t))),e[4]?o||(o=Or(e),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i:I,o:I,d(e){i.d(e),e&&G(t),o&&o.d(e),e&&G(s)}}}function jr(e,t,s){let{featureName:n=""}=t,{blockedAppsCount:a=0}=t,{disabled:i=!1}=t;const o=oa.on(oa.EVENTS.appsChanged,d);let r=[],l=null,c=[],p=!0;function d(){oa.loadApps().then((e=>{s(5,c=e.filter((e=>e.shields[n])))})).finally((()=>{s(6,p=!1)}))}function u(e,t){e.target.checked?r.includes(t)||r.push(t):r.splice(r.indexOf(t),1),s(3,r),s(0,a=r.length)}function g(e){e.target.checked?s(3,r=c.map((e=>e.path))):s(3,r=[]),s(0,a=r.length)}function h(e){e.shields[n]="blocked"===e.shields[n]?"allowed":"blocked",oa.saveApp(e)}oa.init(),d(),ne((()=>{window.addEventListener("kin-deselectAll",g)})),ae((()=>{o(),oa.destroy(),window.removeEventListener("kin-deselectAll",g)}));return e.$$set=e=>{"featureName"in e&&s(1,n=e.featureName),"blockedAppsCount"in e&&s(0,a=e.blockedAppsCount),"disabled"in e&&s(2,i=e.disabled)},[a,n,i,r,l,c,p,function(e){const t=new T.InstalledApps({el:e});return t.on("close",(()=>s(4,l=null))),t.on("appSelected",(e=>{e.shields={[n]:"blocked"},oa.saveApp(e).then((()=>s(4,l=null)))})),{destroy:t.teardown.bind(t)}},u,g,h,()=>{(function(){const e=[];return r.forEach((t=>{const s=c.find((e=>e.path===t));s.shields[n]=null,e.push(oa.saveApp.bind(oa,s))})),e.reduce(((e,t)=>e.then((e=>Promise.all([...e,t()])))),Promise.resolve([]))})().then((()=>{s(3,r=[]),s(0,a=r.length)}))},(e,t)=>u(t,e.path),e=>h(e),()=>s(4,l="blocked")]}const Br=Object.freeze({__proto__:null,Container:class extends Re{constructor(e){super(),Ne(this,e,ur,dr,L,{title:3,desc:4,component:5,ipmBuyElm:6,noInstall:7,noEnable:8,componentService:9,stopOptions:10,notSupported:2,notSupportedMsg:11})}},Checkbox:class extends Re{constructor(e){super(),Ne(this,e,hr,gr,L,{property:2})}},Radio:class extends Re{constructor(e){super(),Ne(this,e,yr,vr,L,{property:0})}},Range:class extends Re{constructor(e){super(),Ne(this,e,xr,Sr,L,{property:1,cssCls:2})}},Select:class extends Re{constructor(e){super(),Ne(this,e,wr,kr,L,{property:2,layout:3,inline:4,cssCls:5,wrapCssCls:6,labelSmall:7})}},Tabs:class extends Re{constructor(e){super(),Ne(this,e,Ar,Tr,L,{tabs:1,selectedTabId:2,watchedTabsHeightContainer:3})}},TextInput:class extends Re{constructor(e){super(),Ne(this,e,Pr,Ir,L,{property:1,style:2,inline:3,wrapCssCls:4,cssCls:5,placeholderText:6})}},WhiteAndBlackList:class extends Re{constructor(e){super(),Ne(this,e,Cr,Er,L,{})}},Badge:Ro,BlockedAndAllowedApps:class extends Re{constructor(e){var t;super(),document.getElementById("svelte-e3t6qi-style")||((t=B("style")).id="svelte-e3t6qi-style",t.textContent=".baa_table__header.svelte-e3t6qi{grid-template-columns:3.5rem 24% auto 18% 0%}.baa_table__row.svelte-e3t6qi{grid-template-columns:3.5rem 4% 20% auto 18%}",M(document.head,t)),Ne(this,e,jr,Gr,L,{featureName:1,blockedAppsCount:0,disabled:2,removeBlockedApps:11})}get removeBlockedApps(){return this.$$.ctx[11]}}}),Vr=Ai([{id:"general",transId:"settings.general",icon:"icon-m-tools-core-shields",sections:[{id:"languages",transId:"settings.languages"},{id:"update",transId:"settings.update"},{id:"notifications",transId:"settings.notifications"},{id:"exceptions",transId:"settings.exceptions"},{id:"blockedAndAllowedApps",transId:"settings.blockedAndAllowedApps"},{id:"password",transId:"settings.password"},{id:"personalPrivacy",transId:"settings.personalPrivacy"},{id:"troubleshooting",transId:"settings.troubleshooting"}]},{id:"security",icon:"icon-m-tools-protection",sections:[{id:"Scans",transId:"scans"},{id:"Shields",transId:"shields"},{id:"VirusChest",transId:"viruschest"},{id:"SecurityNetwork",transId:"network"},{id:"ras",transId:"remoteAccessShield",componentId:"ais_cmp_rdp"},{id:"AntiRansomware",transId:"antiransomware",componentId:"ais_shl_rsw"},{id:"Firewall",transId:"firewall",componentId:"ais_cmp_fw",cond:function(){return!_.isFreeProduct()||b.getValue("avdef://config/GuiCache/NewFW",{localStorage:!0,cached:!0}).then((e=>"1"==e))}},{id:"SecureDNS",transId:"secureDNS",componentId:"ais_cmp_secdns"},{id:"Sandbox",transId:"sandbox",componentId:"ais_cmp_snx"},{id:"exchange",transId:"settings.exchange",componentId:"ais_shl_exch"},{id:"sharepoint",transId:"settings.sharepoint",componentId:"ais_shl_shp"}]},{id:"privacy",icon:"icon-m-tools-privacy",sections:[{id:"WebCam",transId:"webcamshield",componentId:"ais_cmp_webcam"},{id:"SensitiveData",transId:"sensitivedata",componentId:"ais_cmp_datascan_full"},{id:"DataShredder",transId:"datashredder",componentId:"ais_cmp_shredder"},{id:"Antispam",transId:"antispam",componentId:"ais_shl_spm",cond:function(){return _.isInstalled("ais_shl_spm")||_.isAfbEdition()}},{id:"passwordProtection",transId:"passwordProtection",componentId:"ais_cmp_avpap"},{id:"legacyPasswords",transId:"settings.legacyPasswords",cond:function(){return Promise.allSettled([t("app.avast.lis.get.all",{}),t("app.pam.GetPAMState",!0)]).then((([e,t])=>{const s=_.isInstalled("ais_cmp_pwdman"),n=e.value&&e.value.products||{},a=Boolean(t.value&&t.value.vaultPwdCount>0),i=Boolean(n.pam&&n.pam.license&&"paid"===n.pam.license.type);return s&&!(a||i)}))}}]},{id:"performance",icon:"icon-m-tools-performance",sections:[{id:"DoNotDisturb",transId:"doNotDisturb.name",componentId:"ais_cmp_gamingmode"},{id:"Software",transId:"softwarehealth",componentId:"ais_cmp_swhealth"}]},{id:"smarthome.hub",icon:"shield",cond:function(){return"omni"===_.getProduct()&&t("app.ring.stateInfo").then((e=>"ADMIN_FINISHED"===e.state)).catch((()=>!1))},sections:[{id:"smarthomeTroubleshooting",module:"Smarthome",view:"settingsTroubleshooting",transId:"smarthome.hub.troubleshooting.title"},{id:"smarthomePersonalPrivacy",module:"Smarthome",view:"settingsPersonalPrivacy",transId:"smarthome.personalPrivacy.title"}]}]);export default class extends pr{constructor(e={}){e.props=e.props||{},e.props.brandParams={structurePromise:Vr},super(e)}}export{Li as common,Vi as ractiveComponents,Br as svelteComponents};const Fr={name:"Settings",version:"1.2.1245",created:"2021-09-06T13:05:18.679Z"};export{Fr as metadata};