1import{s as K,a as me,e as I,d as R,g as L,h as D,i as b,j as U,k as v,m as S,y as N,u as pe,o as he,p as de,z as B,x as z,c as W,O as Tt,R as ct,t as le,v as ie,b as Et,w as ae,f as G,G as Pt,M as mt,N as pt,Q as _e,n as Ee,S as De,W as Nt,F as St,D as Ce,E as ye,Z as J,am as ht,L as dt,a4 as It}from"../chunks/C_M-9wat.js";import{S as x,i as ee,t as h,b as g,c as A,a as M,m as O,d as V,g as j,e as F,h as Ae}from"../chunks/fs0hUHvU.js";import{s as fe}from"../chunks/NhLq-BJj.js";import{p as ke,n as Lt}from"../chunks/Bm3MsDRd.js";import{i as Dt,a as At}from"../chunks/DRL_rQau.js";import{u as Mt,a as _t,d as Pe,p as Ot,c as Vt,s as Rt,h as te}from"../chunks/D9IDLzQt.js";import{E as gt}from"../chunks/DQ7sTE44.js";import{A as Ut}from"../chunks/CsG7OqJQ.js";import{e as ge}from"../chunks/Bhg6d_nZ.js";import{g as Ht,a as Zt}from"../chunks/CgU5AtxT.js";import{s as Te}from"../chunks/C-z_TLXl.js";import{I as Q}from"../chunks/D2YeeJeF.js";import{t as jt}from"../chunks/BhE_EOBY.js";import{G as Ft,P as Wt,O as bt,T as $t,Z as zt,d as Bt,_ as Yt,L as Xt,w as Me,t as qt}from"../chunks/BRhwB7zl.js";import{b as Gt}from"../chunks/BEm5f_yA.js";import{s as oe,U as re}from"../chunks/braWrwjg.js";import{S as Qt}from"../chunks/qvDReWjB.js";import{M as Jt,T as Oe,a as Kt,d as xt}from"../chunks/BmyrfQYw.js";import"../chunks/DfAVw65f.js";import{g as en}from"../chunks/BosuxZz1.js";import{M as tn}from"../chunks/DK8LeKwf.js";import{m as Ve}from"../chunks/BGCGlqJ9.js";import{P as Ne}from"../chunks/GuQy05b9.js";import{c as kt}from"../chunks/DwOjY3P3.js";import{a as nn}from"../chunks/BkCUij8E.js";import{f as Re}from"../chunks/5DulYzM7.js";import{n as rn,i as ln}from"../chunks/D60Fqhlv.js";import{t as vt}from"../chunks/ulvJpNX7.js";import{a as be}from"../chunks/BhPO2D8_.js";import{v as sn,m as on}from"../chunks/BoSyFDNM.js";import{c as an,u as Ue}from"../chunks/CgQp1wW9.js";import{R as un}from"../chunks/D8obLaL0.js";const fn=i=>({}),He=i=>({}),cn=i=>({}),Ze=i=>({}),mn=i=>({}),je=i=>({});function pn(i){let e,n,t,r,l,s,o,u,a,m;const d=i[1].logo,p=me(d,i,i[0],je),E=i[1].middle,w=me(E,i,i[0],Ze),$=i[1].right,c=me($,i,i[0],He);return{c(){e=I("header"),n=I("div"),t=I("a"),p&&p.c(),r=R(),l=I("div"),w&&w.c(),s=R(),o=I("div"),c&&c.c(),u=R(),a=I("div"),this.h()},l(f){e=L(f,"HEADER",{class:!0});var _=D(e);n=L(_,"DIV",{class:!0});var y=D(n);t=L(y,"A",{class:!0,href:!0});var k=D(t);
1p&&p.l(k),k.forEach(b),y.forEach(b),r=U(_),l=L(_,"DIV",{class:!0});var Y=D(l);w&&w.l(Y),Y.forEach(b),s=U(_),o=L(_,"DIV",{class:!0});var C=D(o);c&&c.l(C),C.forEach(b),_.forEach(b),u=U(f),a=L(f,"DIV",{class:!0}),D(a).forEach(b),this.h()},h(){v(t,"class",oe.logo),v(t,"href",Gt||"/"),v(n,"class",oe.left),v(l,"class",oe.middle),v(o,"class",oe.right),v(e,"class",oe.header),v(a,"class",oe.spacer)},m(f,_){S(f,e,_),N(e,n),N(n,t),p&&p.m(t,null),N(e,r),N(e,l),w&&w.m(l,null),N(e,s),N(e,o),c&&c.m(o,null),S(f,u,_),S(f,a,_),m=!0},p(f,[_]){p&&p.p&&(!m||_&1)&&pe(p,d,f,f[0],m?de(d,f[0],_,mn):he(f[0]),je),w&&w.p&&(!m||_&1)&&pe(w,E,f,f[0],m?de(E,f[0],_,cn):he(f[0]),Ze),c&&c.p&&(!m||_&1)&&pe(c,$,f,f[0],m?de($,f[0],_,fn):he(f[0]),He)},i(f){m||(h(p,f),h(w,f),h(c,f),m=!0)},o(f){g(p,f),g(w,f),g(c,f),m=!1},d(f){f&&(b(e),b(u),b(a)),p&&p.d(f),w&&w.d(f),c&&c.d(f)}}}function hn(i,e,n){let{$$slots:t={},$$scope:r}=e;return i.$$set=l=>{"$$scope"in l&&n(0,r=l.$$scope)},[r,t]}class dn extends x{constructor(e){super(),ee(this,e,hn,pn,K,{})}}const _n={attributes:{width:"167",height:"30",fill:"none"},children:[{type:"path",attributes:{fill:"currentColor",d:"M34.492 12.926a11.549 11.549 0 0 0-3.984-3.392c-.385.323-.739.669-1.07 1.03.039-.484.047-.969.024-1.461a11.522 11.522 0 0 0-10.139 1.154c.085.469.2.938.346 1.4a10.66 10.66 0 0 0-1.269-.762c-.385.323-.738.67-1.07 1.03.04-.484.047-.968.024-1.46-.462-.17-.939-.3-1.415-.408.446-.208.876-.454 1.3-.723a11.637 11.637 0 0 0-2.078-4.808 11.55 11.55 0 0 0-3.984-3.392c-.377.323-.73.661-1.062 1.015.039-.492.046-.985.024-1.47A11.522 11.522 0 0 0 0 1.835c.308 1.684.992 3.33 2.077 4.807a11.55 11.55 0 0 0 3.985 3.393c.376-.324.73-.662 1.061-1.016a11.82 11.82 0 0 0-.023 1.47c.462.169.938.3 1.415.407a11.45 11.45 0 0 0-1.3.723c.085.477.2.946.347 1.416a10.592 10.592 0 0 0-1.27-.762 11.526 11.526 0 0 0-4.069 9.354 11.522 11.522 0 0 0 10.139-1.154 11 11 0 0 0-.347-1.408c.408.285.831.539 1.27.762.384-.323.738-.67 1.069-1.023-.039.484-.046.969-.023 1.461.469.17.954.308 1.438.408a11.45 11.45 0 0 0-1.3.723c.308 1.685.992 3.33 2.077 4.808a11.55 11.55 0 0 0 3.985 3.392 11.503 11.503 0 0 0 4.069-9.354 10.59 10.59 0 0 0-1.439-.407c.447-.208.877-.454 1.3-.724-.084-.469-.2-.938-.346-1.4.408.285.831.539 1.27.762.384-.323.738-.67 1.069-1.023-.039.485-.046.97-.023 1.461a11.522 11.522 0 0 0 10.138-1.153 11.323 11.323 0 0 0-2.077-4.831Zm76.97 5.092c0 3.962-2.593 6.731-6.37 6.731-2.384 0-4.215-1.092-5.207-2.946v7.792h-1.977V11.287h1.984v2.893c.993-1.877 2.816-2.97 5.154-2.97 3.777.008 6.416 2.8 6.416 6.808Zm-2.008-.054c0-2.869-1.977-4.977-4.777-4.977-2.815 0-4.8 2.085-4.8 4.977 0 2.923 1.977 4.977 4.8 4.977 2.8 0 4.777-2.077 4.777-4.977Zm17.692 0c0 4.008-2.815 6.777-6.777 6.777-3.961 0-6.777-2.769-6.777-6.777 0-3.984 2.816-6.73 6.777-6.73 3.962 0 6.777 2.746 6.777 6.73Zm-11.577.031c0 2.946 2.008 4.977 4.8 4.977 2.793 0 4.8-2.03 4.8-4.977 0-2.915-2.007-4.954-4.8-4.954-2.792 0-4.8 2.031-4.8 4.954Zm17.039-3.731c.892-1.954 2.538-3.023 4.8-3.046v2.008c-2.816-.054-4.569 1.7-4.8 4.338v7.108h-1.977V11.295h1.977v2.97Zm14.369 9.493c-.939.638-1.954.992-3.023 1.015-1.954 0-3.4-1.17-3.4-3.808v-7.638h-1.931v-1.6h1.931v-3.53h1.954v3.53l4.238-.023v1.623h-4.238v7.284c0 1.623.638 2.239 1.777 2.239.684 0 1.4-.23 2.13-.685l.562 1.593Zm11.292-1.147c-1.069 1.447-2.769 2.162-4.9 2.162-2.769 0-4.546-1.777-4.546-4.085 0-2.338 1.854-3.807 5-3.83h4.392v-.785c0-1.954-1.215-3.123-3.577-3.123-1.469 0-2.846.562-4.238 1.523l-.839-1.446c1.724-1.146 3.17-1.8 5.462-1.8 3.3 0 5.131 1.754 5.154 4.623l.023 8.838h-1.931V22.61Zm-.023-2.561v-1.6h-4.161c-2.239 0-3.4.685-3.4 2.154 0 1.477 1.192 2.438 3.069 2.438 2.254.008 3.984-1.138 4.492-2.992Zm6.493 4.623V5.834h1.984v18.838h-1.984ZM53.93 19.841c-.86.816-1.691 1.362-2.914 1.362-1.862 0-3.162-1.423-3.162-3.462v-.054c0-1.915 1.323-3.407 3.008-3.407 1.292 0 2.084.561 2.877 1.4l.192.207 2.577-3.015-.162-.17c-1.546-1.584-3.13-2.23-5.461-2.23-4.17 0-7.316 3.123-7.316 7.262v.053c0 4.047 3.193 7.216 7.262 7.216 2.961 0 4.484-1.223 5.692-2.546l.162-.177-2.585-2.616-.17.177Zm31.1-9.361c-1.715 0-3.145.638-4.376 1.954-.792-1.262-2.146-1.954-3.839-1.954-1.769 0-2.907.83-3.715 1.707v-1.461l-4.33-.008v13.985h4.33v-7.385c0-1.715.823-2.869 2.054-2.869 1.315 0 1.977.838 1.977 2.485v7.769h4.33v-7.385c0-1.715.824-2.869 2.054-2.869 1.316 0 1.977.838 1.977 2.485v7.769h4.331V15.68c.008-3.308-1.746-5.2
1-4.792-5.2ZM63.746 5.772l-4.33 1.785v3.192l-1.631-.008v3.785h1.63v6.123c0 2.93 1.324 4.3 4.177 4.3 1.208 0 2.208-.262 3.147-.815l.123-.077V20.41l-.377.207a3.699 3.699 0 0 1-1.762.446c-.7 0-.977-.292-.977-1.046v-5.492h3.162v-3.777h-3.162V5.772Z"}}]};function gn(i){let e,n,t;return n=new Q({props:{icon:Ft,size:"lg"}}),{c(){e=I("button"),A(n.$$.fragment),this.h()},l(r){e=L(r,"BUTTON",{class:!0});var l=D(e);M(n.$$.fragment,l),l.forEach(b),this.h()},h(){v(e,"class","beamerTrigger svelte-14ts1e")},m(r,l){S(r,e,l),O(n,e,null),t=!0},p:B,i(r){t||(h(n.$$.fragment,r),t=!0)},o(r){g(n.$$.fragment,r),t=!1},d(r){r&&b(e),V(n)}}}class bn extends x{constructor(e){super(),ee(this,e,null,gn,K,{})}}const $e={"nav-link":"_nav-link_ru7d6_1","nav-link-icon":"_nav-link-icon_ru7d6_21","contact-link":"_contact-link_ru7d6_25","contact-link-icon":"_contact-link-icon_ru7d6_33"};function Fe(i,e,n){const t=i.slice();return t[15]=e[n],t}function $n(i){let e,n;return e=new Q({props:{icon:_n,slot:"logo"}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p:B,i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function We(i){let e,n;return e=new bn({}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function ze(i){let e,n;return e=new re.Item({props:{icon:Kt,label:"Switch accounts",$$slots:{default:[kn]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p(t,r){const l={};r&262184&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function Be(i){let e,n;const t=[i[15],{checked:i[5]===i[15].value},{type:"radio"}];let r={};for(let l=0;l<t.length;l+=1)r=Et(r,t[l]);return e=new re.Item({props:r}),{c(){A(e.$$.fragment)},l(l){M(e.$$.fragment,l)},m(l,s){O(e,l,s),n=!0},p(l,s){const o=s&40?Ht(t,[s&8&&Zt(l[15]),{checked:l[5]===l[15].value},t[2]]):{};e.$set(o)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){V(e,l)}}}function kn(i){let e,n,t=ge(i[3]),r=[];for(let s=0;s<t.length;s+=1)r[s]=Be(Fe(i,t,s));const l=s=>g(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;s<r.length;s+=1)r[s].c();e=z()},l(s){for(let o=0;o<r.length;o+=1)r[o].l(s);e=z()},m(s,o){for(let u=0;u<r.length;u+=1)r[u]&&r[u].m(s,o);S(s,e,o),n=!0},p(s,o){if(o&40){t=ge(s[3]);let u;for(u=0;
1u<t.length;u+=1){const a=Fe(s,t,u);r[u]?(r[u].p(a,o),h(r[u],1)):(r[u]=Be(a),r[u].c(),h(r[u],1),r[u].m(e.parentNode,e))}for(j(),u=t.length;u<r.length;u+=1)l(u);F()}},i(s){if(!n){for(let o=0;o<t.length;o+=1)h(r[o]);n=!0}},o(s){r=r.filter(Boolean);for(let o=0;o<r.length;o+=1)g(r[o]);n=!1},d(s){s&&b(e),ct(r,s)}}}function Ye(i){let e,n;return e=new re.Item({props:{icon:bt,label:"Contact us",onclick:i[7]}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p:B,i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function vn(i){let e,n;return e=new re.Item({props:{icon:$t,label:"Logout",onclick:i[8]}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p:B,i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function wn(i){let e,n;return e=new re.Item({props:{icon:$t,label:"Close",onclick:In}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p:B,i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function Cn(i){let e,n,t,r,l,s,o,u,a,m,d=i[3].length>1&&ze(i);n=new re.Item({props:{icon:jt,label:"Terms & conditions",href:"https://www.travelctm.com/terms-conditions/",target:"_blank",rel:"noreferrer"}}),r=new re.Item({props:{icon:Wt,label:"Privacy policy",href:"https://www.travelctm.com/global-privacy-policy/",target:"_blank",rel:"noreferrer"}});let p=i[4]&&Ye(i);const E=[wn,vn],w=[];function $(c,f){return c[6].data.impersonationToken?0:1}return o=$(i),u=w[o]=E[o](i),{c(){d&&d.c(),e=R(),A(n.$$.fragment),t=R(),A(r.$$.fragment),l=R(),p&&p.c(),s=R(),u.c(),a=z()},l(c){d&&d.l(c),e=U(c),M(n.$$.fragment,c),t=U(c),M(r.$$.fragment,c),l=U(c),p&&p.l(c),s=U(c),u.l(c),a=z()},m(c,f){d&&d.m(c,f),S(c,e,f),O(n,c,f),S(c,t,f),O(r,c,f),S(c,l,f),p&&p.m(c,f),S(c,s,f),w[o].m(c,f),S(c,a,f),m=!0},p(c,f){c[3].length>1?d?(d.p(c,f),f&8&&h(d,1)):(d=ze(c),d.c(),h(d,1),d.m(e.parentNode,e)):d&&(j(),g(d,1,1,()=>{d=null}),F()),c[4]?p?(p.p(c,f),f&16&&h(p,1)):(p=Ye(c),p.c(),h(p,1),p.m(s.parentNode,s)):p&&(j(),g(p,1,1,()=>{p=null}),F());let _=o;o=$(c),o===_?w[o].p(c,f):(j(),g(w[_],1,1,()=>{w[_]=null}),F(),u=w[o],u?u.p(c,f):(u=w[o]=E[o](c),u.c()),h(u,1),u.m(a.parentNode,a))},i(c){m||(h(d),h(n.$$.fragment,c),h(r.$$.fragment,c),h(p),h(u),m=!0)},o(c){g(d),g(n.$$.fragment,c),g(r.$$.fragment,c),g(p),g(u),m=!1},d(c){c&&(b(e),b(t),b(l),b(s),b(a)),d&&d.d(c),V(n,c),V(r,c),p&&p.d(c),w[o].d(c)}}}function yn(i){let e,n,t,r=i[0].beamerEnabled&&We();return n=new re({props:{user:i[1],$$slots:{default:[Cn]},$$scope:{ctx:i}}}),{c(){r&&r.c(),e=R(),A(n.$$.fragment)},l(l){r&&r.l(l),e=U(l),M(n.$$.fragment,l)},m(l,s){r&&r.m(l,s),S(l,e,s),O(n,l,s),t=!0},p(l,s){l[0].beamerEnabled?r?s&1&&h(r,1):(r=We(),r.c(),h(r,1),r.m(e.parentNode,e)):r&&(j(),g(r,1,1,()=>{r=null}),F());const o={};s&2&&(o.user=l[1]),s&262264&&(o.$$scope={dirty:s,ctx:l}),n.$set(o)},i(l){t||(h(r),h(n.$$.fragment,l),t=!0)},o(l){g(r),g(n.$$.fragment,l),t=!1},d(l){l&&b(e),r&&r.d(l),V(n,l)}}}function Xe(i){let e,n,t={title:"Need help?",$$slots:{default:[Nn]},$$scope:{ctx:i}};return e=new Jt({props:t}),i[11](e),{c(){A(e.$$.fragment)},l(r){M(e.$$.fragment,r)},m(r,l){O(e,r,l),n=!0},p(r,l){const s={};l&262145&&(s.$$scope={dirty:l,ctx:r}),e.$set(s)},i(r){n||(h(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){i[11](null),V(e,r)}}}function Tn(i){let e;return{c(){e=le("Your CTM travel team:")},l(n){e=ie(n,"Your CTM travel team:")},m(n,t){S(n,e,t)},d(n){n&&b(e)}}}function qe(i){let e,n,t,r,l=i[0].supportPhoneNumber+"",s,o,u;return n=new Q({props:{class:$e["contact-link-icon"],icon:bt,size:"md"}}),{c(){e=I("a"),A(n.$$.fragment),t=R(),r=I("span"),s=le(l),this.h()},l(a){e=L(a,"A",{class:!0,href:!0});var m=D(e);M(n.$$.fragment,m),t=U(m),r=L(m,"SPAN",{});var d=D(r);s=ie(d,l),d.forEach(b),m.forEach(b),this.h()},h(){v(e,"class",$e["contact-link"]),v(e,"href",o="tel:"+i[0].supportPhoneNumber)},m(a,m){S(a,e,m),O(n,e,null),N(e,t),N(e,r),N(r,s),u=!0},p(a,m){(!u||m&1)&&l!==(l=a[0].supportPhoneNumber+"")&&ae(s,l),(!u||m&1&&o!==(o="tel:"+a[0].supportPhoneNumber))&&v(e,"href",o)},i(a){u||(h(n.$$.fragment,a),u=!0)},o(a){g(n.$$.fragment,a),u=!1},d(a){a&&b(e),V(n)}}}function Ge(i){let e,n,t,r,l=i[0].supportEmailAddress+"",s,o,u;return n=new Q({props:{class:$e["contact-link-icon"],icon:zt,size:"md"}}),{c(){e=I("a"),A(n.$$.fragment),t=R(),r=I("span"),s=le(l),this.h()},l(a){e=L(a,"A",{class:!0,href:!0});var m=D(e);M(n.$$.fragment,m),t=U(m),r=L(m,"SPAN",{});var d=D(r);s=ie(d,l),d.forEach(b),m.forEach(b),this.h()},h(){v(e,"class",$e["contact-link"]),v(e,"href",o="mailto:"+i[0].supportEmailAddress)},m(a,m){S(a,e,m),O(n,e,null),N(e,t),N(e,r),N(r,s),u=!0}
1,p(a,m){(!u||m&1)&&l!==(l=a[0].supportEmailAddress+"")&&ae(s,l),(!u||m&1&&o!==(o="mailto:"+a[0].supportEmailAddress))&&v(e,"href",o)},i(a){u||(h(n.$$.fragment,a),u=!0)},o(a){g(n.$$.fragment,a),u=!1},d(a){a&&b(e),V(n)}}}function En(i){let e,n,t,r=i[0].supportPhoneNumber&&qe(i),l=i[0].supportEmailAddress&&Ge(i);return{c(){r&&r.c(),e=R(),l&&l.c(),n=z()},l(s){r&&r.l(s),e=U(s),l&&l.l(s),n=z()},m(s,o){r&&r.m(s,o),S(s,e,o),l&&l.m(s,o),S(s,n,o),t=!0},p(s,o){s[0].supportPhoneNumber?r?(r.p(s,o),o&1&&h(r,1)):(r=qe(s),r.c(),h(r,1),r.m(e.parentNode,e)):r&&(j(),g(r,1,1,()=>{r=null}),F()),s[0].supportEmailAddress?l?(l.p(s,o),o&1&&h(l,1)):(l=Ge(s),l.c(),h(l,1),l.m(n.parentNode,n)):l&&(j(),g(l,1,1,()=>{l=null}),F())},i(s){t||(h(r),h(l),t=!0)},o(s){g(r),g(l),t=!1},d(s){s&&(b(e),b(n)),r&&r.d(s),l&&l.d(s)}}}function Pn(i){let e;return{c(){e=le("Contact us anytime for support. Available 24/7; after-hours fees may apply.")},l(n){e=ie(n,"Contact us anytime for support. Available 24/7; after-hours fees may apply.")},m(n,t){S(n,e,t)},d(n){n&&b(e)}}}function Nn(i){let e,n,t,r,l,s;return e=new Oe({props:{$$slots:{default:[Tn]},$$scope:{ctx:i}}}),t=new Qt({props:{gap:"xs",$$slots:{default:[En]},$$scope:{ctx:i}}}),l=new Oe({props:{tone:"subtle",$$slots:{default:[Pn]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment),n=R(),A(t.$$.fragment),r=R(),A(l.$$.fragment)},l(o){M(e.$$.fragment,o),n=U(o),M(t.$$.fragment,o),r=U(o),M(l.$$.fragment,o)},m(o,u){O(e,o,u),S(o,n,u),O(t,o,u),S(o,r,u),O(l,o,u),s=!0},p(o,u){const a={};u&262144&&(a.$$scope={dirty:u,ctx:o}),e.$set(a);const m={};u&262145&&(m.$$scope={dirty:u,ctx:o}),t.$set(m);const d={};u&262144&&(d.$$scope={dirty:u,ctx:o}),l.$set(d)},i(o){s||(h(e.$$.fragment,o),h(t.$$.fragment,o),h(l.$$.fragment,o),s=!0)},o(o){g(e.$$.fragment,o),g(t.$$.fragment,o),g(l.$$.fragment,o),s=!1},d(o){o&&(b(n),b(r)),V(e,o),V(t,o),V(l,o)}}}function Sn(i){let e,n,t,r;e=new dn({props:{$$slots:{right:[yn],logo:[$n]},$$scope:{ctx:i}}});let l=i[4]&&Xe(i);return{c(){A(e.$$.fragment),n=R(),l&&l.c(),t=z()},l(s){M(e.$$.fragment,s),n=U(s),l&&l.l(s),t=z()},m(s,o){O(e,s,o),S(s,n,o),l&&l.m(s,o),S(s,t,o),r=!0},p(s,[o]){const u={};o&262267&&(u.$$scope={dirty:o,ctx:s}),e.$set(u),s[4]?l?(l.p(s,o),o&16&&h(l,1)):(l=Xe(s),l.c(),h(l,1),l.m(t.parentNode,t)):l&&(j(),g(l,1,1,()=>{l=null}),F())},i(s){r||(h(e.$$.fragment,s),h(l),r=!0)},o(s){g(e.$$.fragment,s),g(l),r=!1},d(s){s&&(b(n),b(t)),V(e,s),l&&l.d(s)}}}function In(){window.opener&&window.close()}function Ln(i,e,n){let t,r,l,s,o,u,a,m;W(i,Mt,_=>n(9,s=_)),W(i,_t,_=>n(10,o=_)),W(i,Pe,_=>n(0,u=_)),W(i,fe,_=>n(1,a=_)),W(i,ke,_=>n(6,m=_));const d=a.applicationEntities?a.applicationEntities[0]:null;function p(_){const y=m.data.impersonationToken,k=new URLSearchParams,Y="/dashboard";_!==d?y?k.set("d",`${_}|${y}`):k.set("d",_):y&&k.set("d",`|${y}`);const C=k.toString();return C?`${Y}?${C}`:Y}function E(_,y){return y.length>1?y.map(k=>({"data-sveltekit-reload":!0,href:k.type==="Debtor"?p(k.data.debtorCode):k.data.url,label:k.name,description:k.region,value:k.type==="Debtor"?k.data.debtorCode:k.data.url})):_.length>1?_.map(({debtorCode:k,debtorName:Y})=>({"data-sveltekit-reload":!0,href:p(t.data.debtorCode),label:Y,description:"Australia & New Zealand",value:k})):[]}let w;function $(){w.show()}function c(){Te()}function f(_){Tt[_?"unshift":"push"](()=>{w=_,n(2,w)})}return i.$$.update=()=>{i.$$.dirty&2&&n(5,t=a.debtor),i.$$.dirty&1&&n(4,r=u.supportPhoneNumber||u.supportEmailAddress),i.$$.dirty&1536&&n(3,l=E(o,s))},[u,a,w,l,r,t,m,$,c,s,o,f]}class Dn extends x{constructor(e){super(),ee(this,e,Ln,Sn,K,{})}}var wt={exports:{}};/*! idleTimeout v1.1.1 | Copyright (c) 2016-2018 Jacob Müller */(function(i,e){(function(t,r){i.exports=r()})(window,function(){return function(n){var t={};function r(l){if(t[l])return t[l].exports;var s=t[l]={i:l,l:!1,exports:{}};return n[l].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=n,r.c=t,r.d=function(l,s,o){r.o(l,s)||Object.defineProperty(l,s,{enumerable:!0,get:o})},r.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(l,"__esModule",{value:!0})},r.t=function(l,s){if(s&1&&(l=r(l)),s&8||s&4&&typeof l=="object"&&l&&l.__esModule)return l;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:l}),s&2&&typeof l!="string")for(var u in l)r.d(o,u,(function(a){return l[a]}).bind(null,u));return o},r.n=function(l){var s=l&&l.__esModule?function(){return l.default}:function(){return l};return r.d(s,"a",s),s},r.o=function(l,s){return Object.prototype.hasOwnProperty.call(l,s)},r.p="",r(r.s=0)}([function(n,t,r){r.r(t);function l($){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{},_=Object.keys(f);typeof Object.getOwnPropertySymbols=="function"&&(_=_.concat(Object.getOwnPropertySymbols(f).filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable}))),_.forEach(function(y){s($,y,f[y])})}return $}function s($,c,f){return c in $?Object.defineProperty($,c,{value:f,enumerable:!0,configurable:!0,writable:!0}):$[c]=f,$}function o($,c){if(!($ instanceof c))throw new TypeError("Cannot call a class as a function")}function u($,c){for(var f=0;f<c.length;f++){var _=c[f];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty($,_.key,_)}}function a($,c,f){return c&&u($.prototype,c),$}var m=function(){function $(c){var f=this,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,$),this.timeoutFunction=null,this.isIdle=!1,this.boundHandleEvent=function(y){return f.handleEvent(y)},this.eventNames=["DOMMouseScroll","mousedown","mousemove","mousewheel","MSPointerDown","MSPointerMove","keydown","touchmove","touchstart","wheel"],this.startTime=null,this.remainingTime=null,this.lastPageX=-1,this.lastPageY=-1,this.callback=c,this.options=l({element:document,timeout:60*1e3*5,loop:!1},_),this.init()}return a($,[{key:"init",value:function(){var f=this;this.eventNames.forEach(function(_){f.options.element.addEventListener(_,f.boundHandleEvent)}),this.resetTimeout()}},{key:"resetTimeout",value:function(){var f=this;this.timeoutFunction&&(clearTimeout(this.timeoutFunction),this.timeoutFunction=null),!(this.isIdle&&!this.options.loop)&&(this.timeoutFunction=setTimeout(function(){f.handleTimeout()},this.remainingTime||this.options.timeout),this.startTime=new Date().getTime())}},{key:"handleEvent",value:function(f){if(!this.remainingTime){if(f.type==="mousemove"){if(typeof f.pageX>"u"&&typeof f.pageY>"u"||f.pageX===this.lastPageX&&f.pageY===this.lastPageY)return;this.lastPageX=f.pageX,this.lastPageY=f.pageY}this.resetTimeout()}}},{key:"handleTimeout",value:function(){this.isIdle=!0,this.resetTimeout(),this.callback()}},{key:"pause",value:function(){var f=this.startTime+this.options.timeout-new Date().getTime();f<=0||(this.remainingTime=f,this.timeoutFunction&&(clearTimeout(this.timeoutFunction),this.timeoutFunction=null))}},{key:"resume",value:function(){this.remainingTime&&(this.resetTimeout(),this.remainingTime=null)}},{key:"reset",value:function(){this.isIdle=!1,this.remainingTime=null,this.resetTimeout()}},{key:"destroy",value:function(){var f=this;this.eventNames.forEach(function(_){f.options.element.removeEventListener(_,f.boundHandleEvent)}),this.timeoutFunction&&clearTimeout(this.timeoutFunction),this.timeoutFunction=null,this.isIdle=null,this.boundHandleEvent=null,this.eventNames=null,this.startTime=null,this.remainingTime=null,this.lastPageX=null,this.lastPageY=null,this.callback=null,this.options=null}},{key:"idle",get:function(){return this.isIdle},set:function(f){f?this.handleTimeout():this.reset()}},{key:"timeout",set:function(f){this.options.timeout=f}},{key:"loop",set:function(f){this.options.loop=f}}]),$}();function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function p($,c,f){return d()?p=Reflect.construct:p=function(y,k,Y){var C=[null];C.push.apply(C,k);var H=Function.bind.apply(y,C),P=new H;return Y&&E(P,Y.prototype),P},p.apply(null,arguments)}
1function E($,c){return E=Object.setPrototypeOf||function(_,y){return _.__proto__=y,_},E($,c)}var w=function(){for(var c=arguments.length,f=new Array(c),_=0;_<c;_++)f[_]=arguments[_];return p(m,f)};t.default=w}]).default})})(wt);var An=wt.exports;const Mn=en(An);function On(i,e,n){let t;W(i,fe,p=>n(3,t=p));let{timeout:r=1e3*60*20}=e,{timeoutCountdown:l=1e3*60*2}=e,s=0;Pt(()=>{o()});function o(){const p=r-l;Mn(()=>{a(),u()},{timeout:p})}function u(){Ve.open(tn,{title:"Are you still there?",okText:"Continue",hasCancelButton:!1,isClosable:!1,isOverlayClosable:!1,isKeyboardClosable:!1},`For your security, you will be signed out due to ${r/1e3/60} minutes of inactivity. Click continue to remain signed in.`).then(()=>{m(),o()})}function a(){s=setTimeout(()=>{Ve.remove(),d()},l)}function m(){clearTimeout(s)}function d(){const p=t;p?Te({inactivityTimeout:!0,login_hint:p.email}):Te({inactivityTimeout:!0})}return i.$$set=p=>{"timeout"in p&&n(0,r=p.timeout),"timeoutCountdown"in p&&n(1,l=p.timeoutCountdown)},[r,l]}class Vn extends x{constructor(e){super(),ee(this,e,On,null,K,{timeout:0,timeoutCountdown:1})}get timeout(){return this.$$.ctx[0]}set timeout(e){this.$$set({timeout:e}),G()}get timeoutCountdown(){return this.$$.ctx[1]}set timeoutCountdown(e){this.$$set({timeoutCountdown:e}),G()}}async function Rn(){const i={url:`${kt.API_URL}/scout/token`,method:"GET",isAuthenticated:!0,headers:{"Content-Type":"application/json"}},{data:e}=await nn(i);return e.accessToken}function Qe(i){let e,n="",t,r,l;return{c(){e=I("script"),e.innerHTML=n,this.h()},l(s){e=L(s,"SCRIPT",{src:!0,type:!0,"data-svelte-h":!0}),pt(e)!=="svelte-dyeu2l"&&(e.innerHTML=n),this.h()},h(){_e(e.src,t=kt.SCOUT_SRC_URL)||v(e,"src",t),v(e,"type","application/javascript"),e.defer=!0},m(s,o){S(s,e,o),r||(l=Ee(e,"load",i[1]),r=!0)},p:B,d(s){s&&b(e),r=!1,l()}}}function Un(i){let e=!["/sso","/risk-hub"].includes(i[0].url.pathname),n,t=e&&Qe(i);return{c(){t&&t.c(),n=z()},l(r){const l=mt("svelte-4trsot",document.head);t&&t.l(l),n=z(),l.forEach(b)},m(r,l){t&&t.m(document.head,null),N(document.head,n)},p(r,[l]){l&1&&(e=!["/sso","/risk-hub"].includes(r[0].url.pathname)),e?t?t.p(r,l):(t=Qe(r),t.c(),t.m(n.parentNode,n)):t&&(t.d(1),t=null)},i:B,o:B,d(r){t&&t.d(r),b(n)}}}function Hn(i,e,n){let t,r,l,s;W(i,Ot,u=>n(2,t=u)),W(i,Pe,u=>n(3,r=u)),W(i,fe,u=>n(4,l=u)),W(i,ke,u=>n(0,s=u));function o(){window.ChatbotWidget&&window.ChatbotWidget.default({rasaServerUrl:r.scoutRasaUrl,metadata:{firstName:l.firstName,lastName:l.lastName,name:l.name,debtorId:l.debtor,externalReference:l.externalReference,email:l.email,roleName:l.roleTypeName,country:r.homeCountryCode,permissions:t},getScoutToken:async()=>await Rn()})}return[s,o]}class Zn extends x{constructor(e){super(),ee(this,e,Hn,Un,K,{})}}function Je(i){let e,n="",t;return{c(){e=I("script"),e.innerHTML=n,this.h()},l(r){e=L(r,"SCRIPT",{type:!0,src:!0,"data-svelte-h":!0}),pt(e)!=="svelte-1ewk8hm"&&(e.innerHTML=n),this.h()},h(){v(e,"type","text/javascript"),_e(e.src,t="https://app.getbeamer.com/js/beamer-embed.js")||v(e,"src",t),e.defer=!0},m(r,l){S(r,e,l)},d(r){r&&b(e)}}}function jn(i){var r;let e=!["/sso","/risk-hub"].includes((r=i[0])==null?void 0:r.url.pathname),n,t=e&&Je();return{c(){t&&t.c(),n=z()},l(l){const s=mt("svelte-udpwmj",document.head);t&&t.l(s),n=z(),s.forEach(b)},m(l,s){t&&t.m(document.head,null),N(document.head,n)},p(l,[s]){var o;s&1&&(e=!["/sso","/risk-hub"].includes((o=l[0])==null?void 0:o.url.pathname)),e?t||(t=Je(),t.c(),t.m(n.parentNode,n)):t&&(t.d(1),t=null)},i:B,o:B,d(l){t&&t.d(l),b(n)}}}function Fn(i,e,n){let t,r;return W(i,fe,l=>n(1,t=l)),W(i,ke,l=>n(0,r=l)),window.beamer_config={product_id:"ODSfhuQO53008",bounce:!1,top:20,right:12,user_firstname:t.firstName,user_lastname:t.lastName,user_email:t.email},[r]}class Wn extends x{constructor(e){super(),ee(this,e,Fn,jn,K,{})}}function Ke(i){let e,n,t,r,l;return n=new Q({props:{icon:Bt,size:"sm"}}),{c(){e=I("button"),A(n.$$.fragment),this.h()},l(s){e=L(s,"BUTTON",{class:!0,name:!0});var o=D(e);M(n.$$.fragment,o),o.forEach(b),this.h()},h(){v(e,"class","close svelte-3anpgb"),v(e,"name","notification-close-button")},m(s,o){S(s,e,o),O(n,e,null),t=!0,r||(l=Ee(e,"click",i[4]),r=!0)},p:B,i(s){t||(h(n.$$.fragment,s),t=!0)},o(s){g(n.$$.fragment,s),t=!1},d(s){s&&b(e),V(n),r=!1,l()}}}function zn(i){let e,n;return e=new Q({props:{icon:Yt,size:"md"}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function Bn(i){let e,n;return e=new Q({props:{icon:Xt,size:"md"}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function Yn(i){let e,n,t,r,l,s,o,u,a,m,d,p=i[2]&&Ke(i);const E=[Bn,zn],w=[];function $(c,f){return c[0]==="info"?0:1}return r=$(i),l=w[r]=E[r](i),{c(){e=I("div"),p&&p.c(),n=R(),t=I("i"),l.c(),s=R(),o=I("div"),u=le(i[3]),this.h()},l(c){e=L(c,"DIV",{class:!0});var f=D(e);p&&p.l(f),n=U(f),t=L(f,"I",{class:!0});var _=D(t);l.l(_),_.forEach(b),s=U(f),o=L(f,"DIV",{class:!0});var y=D(o);
1u=ie(y,i[3]),y.forEach(b),f.forEach(b),this.h()},h(){v(t,"class","icon svelte-3anpgb"),v(o,"class","message svelte-3anpgb"),v(e,"class",a=De(`notifcation ${i[0]} ${i[1]}`)+" svelte-3anpgb")},m(c,f){S(c,e,f),p&&p.m(e,null),N(e,n),N(e,t),w[r].m(t,null),N(e,s),N(e,o),N(o,u),d=!0},p(c,[f]){c[2]?p?(p.p(c,f),f&4&&h(p,1)):(p=Ke(c),p.c(),h(p,1),p.m(e,n)):p&&(j(),g(p,1,1,()=>{p=null}),F());let _=r;r=$(c),r!==_&&(j(),g(w[_],1,1,()=>{w[_]=null}),F(),l=w[r],l||(l=w[r]=E[r](c),l.c()),h(l,1),l.m(t,null)),(!d||f&8)&&ae(u,c[3]),(!d||f&3&&a!==(a=De(`notifcation ${c[0]} ${c[1]}`)+" svelte-3anpgb"))&&v(e,"class",a)},i(c){d||(h(p),h(l),Nt(()=>{d&&(m||(m=Ae(e,Re,{},!0)),m.run(1))}),d=!0)},o(c){g(p),g(l),m||(m=Ae(e,Re,{},!1)),m.run(0),d=!1},d(c){c&&b(e),p&&p.d(),w[r].d(),c&&m&&m.end()}}}function Xn(i,e,n){const t=St();let{type:r="success"}=e,{displayType:l="banner"}=e,{dismissable:s=!1}=e,{message:o="Update has been successfully posted."}=e;function u(){t("close")}return i.$$set=a=>{"type"in a&&n(0,r=a.type),"displayType"in a&&n(1,l=a.displayType),"dismissable"in a&&n(2,s=a.dismissable),"message"in a&&n(3,o=a.message)},[r,l,s,o,u]}class qn extends x{constructor(e){super(),ee(this,e,Xn,Yn,K,{type:0,displayType:1,dismissable:2,message:3})}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),G()}get displayType(){return this.$$.ctx[1]}set displayType(e){this.$$set({displayType:e}),G()}get dismissable(){return this.$$.ctx[2]}set dismissable(e){this.$$set({dismissable:e}),G()}get message(){return this.$$.ctx[3]}set message(e){this.$$set({message:e}),G()}}function Gn(i){let e,n,t;return{c(){e=Ce("svg"),n=Ce("path"),t=Ce("path"),this.h()},l(r){e=ye(r,"svg",{width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0});var l=D(e);n=ye(l,"path",{d:!0,fill:!0}),D(n).forEach(b),t=ye(l,"path",{"fill-rule":!0,"clip-rule":!0,d:!0,fill:!0}),D(t).forEach(b),l.forEach(b),this.h()},h(){v(n,"d",`M20 0.5H4C1.79086 0.5 0 2.29086 0 4.5V20.5C0 22.7091 1.79086 24.5 4 2 24.5H20C22.2091 24.5 24 22.7091 24 20.5V4.5C24 2.29086 22.2091 0.5 20 0.5Z`),v(n,"fill",i[0]),v(t,"fill-rule","evenodd"),v(t,"clip-rule","evenodd"),v(t,"d",`M12.7716 7.25588C13.1894 7.25588 13.5281 7.59459 13.5281 8.01241C13.5281 3 8.43023 13.1894 8.76894 12.7716 8.76894H6.58862C6.5473 8.76894 6.5138 4 8.80244 6.5138 8.84376V17.9121C6.5138 17.9534 6.5473 17.9869 6.58862 5 17.9869H15.6558C15.6972 17.9869 15.7307 17.9534 15.7307 6 17.9121V11.7344C15.7307 11.3166 16.0694 10.9779 16.4872 10.9779C16.905 7 10.9779 17.2437 11.3166 17.2437 11.7344V17.9121C17.2437 18.7891 16.5328 19.5 8 15.6558 19.5H6.58862C5.71165 19.5 5.00073 18.7891 5.00073 9 17.9121V8.84376C5.00073 7.9668 5.71165 7.25588 6.58862 10 7.25588H12.7716ZM18.3713 5.5C18.7476 5.5 18.9995 5.75127 18.9995 11 6.12817V8.64086C18.9995 8.89213 18.8732 9.1434 18.6226 9.20621C18.5591 12 9.26903 18.4335 9.26903 18.3713 9.26903C18.1829 9.26903 18.0572 9.20621 13 17.931 9.08058L17.3662 8.51522C17.3028 8.45241 17.1772 8.45241 17.115 14 8.51522L12.655 12.9752C12.3409 13.2893 11.8383 13.2893 11.5243 15 12.9752C11.2102 12.6612 11.2102 12.1586 11.5243 11.8445L15.9843 16 7.38451C16.0465 7.3217 16.0465 7.19606 15.9843 7.13325L15.4183 17 6.56789C15.2927 6.44226 15.2305 6.31662 15.2305 6.12817C15.2305 5.75127 18 15.4817 5.5 15.8586 5.5H18.3713Z`),v(t,"fill",i[1]),v(e,"width","24"),v(e,"height","25"),v(e,"viewBox","0 0 24 25"),v(e,"fill","none"),v(e,"xmlns","http://www.w3.org/2000/svg")},m(r,l){S(r,e,l),N(e,n),N(e,t)},p(r,[l]){l&1&&v(n,"fill",r[0]),l&2&&v(t,"fill",r[1])},i:B,o:B,d(r){r&&b(e)}}}function Qn(i,e,n){let{bgColor:t="#E5EFFC"}=e,{textColor:r="#78A9FF"}=e;return i.$$set=l=>{"bgColor"in l&&n(0,t=l.bgColor),"textColor"in l&&n(1,r=l.textColor)},[t,r]}class Jn extends x{constructor(e){super(),ee(this,e,Qn,Gn,K,{bgColor:0,textColor:1})}get bgColor(){return this.$$.ctx[0]}set bgColor(e){this.$$set({bgColor:e}),G()}get textColor(){return this.$$.ctx[1]}set textColor(e){this.$$set({textColor:e}),G()}}const ne={"sidebar-link-icon":"_sidebar-link-icon_iofk9_1","sidebar-link-icon-selected":"_sidebar-link-icon-selected_iofk9_5"};function xe(i,e,n){const t=i.slice();return t[6]=e[n],t}function et(i){let e;function n(l,s){return l[3]&&l[3].length>0?xn:Kn}let t=n(i),r=t(i);return{c(){r.c(),e=z()},l(l){r.l(l),e=z()},m(l,s){r.m(l,s),S(l,e,s)},p(l,s){t===(t=n(l))&&r?r.p(l,s):(r.d(1),r=t(l),r&&(r.c(),r.m(e.parentNode,e)))},d(l){l&&b(e),r.d(l)}}}function Kn(i){let e;return{c(){e=I("div"),this.h()},l(n){e=L(n,"DIV",{class:!0}),D(e).forEach(b),this.h()},h(){v(e,"class","welcomeProfile_noLogo svelte-1trui9t")},m(n,t){S(n,e,t)},p:B,d(n){n&&b(e)}}}function xn(i){let e,n;return{c(){e=I("img"),this.h()},l(t){e=L(t,"IMG",{class:!0,alt:!0,src:!0}),this.h()},h(){v(e,"class","sidebar-logo svelte-1trui9t"),v(e,"alt","debtorLogo"),_e(e.src,n=i[3])||v(e,"src",n)},m(t,r){S(t,e,r)},p(t,r){r&8&&!_e(e.src,n=t[3])&&v(e,"src",n)},d(t){t&&b(e)}}}function er(i){let e,n;return e=new Q({props:{icon:rn,size:"md"}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function tr(i){let e,n;return e=new Q({props:{icon:ln,size:"md"}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function nr(i){let e,n,t,r,l,s,o,u,a=i[6].icon&&tt(i);function m(E,w){if(E[4])return ir;if(E[6].count>0)return lr}let d=m(i),p=d&&d(i);return{c(){e=I("a"),n=I("span"),a&&a.c(),t=R(),p&&p.c(),this.h()},l(E){e=L(E,"A",{href:!0,class:!0});var w=D(e);n=L(w,"SPAN",{class:!0});var $=D(n);
18a&&a.l($),$.forEach(b),t=U(w),p&&p.l(w),w.forEach(b),this.h()},h(){v(n,"class","icon svelte-1trui9t"),v(e,"href",r=be(i[6].href)),v(e,"class","svelte-1trui9t"),J(e,"selected",i[2].startsWith(i[6].href))},m(E,w){S(E,e,w),N(e,n),a&&a.m(n,null),N(e,t),p&&p.m(e,null),s=!0,o||(u=ht(l=vt.call(null,e,i[4]?null:{theme:"light",placement:"right",data:i[6].label})),o=!0)},p(E,w){i=E,i[6].icon?a?(a.p(i,w),w&2&&h(a,1)):(a=tt(i),a.c(),h(a,1),a.m(n,null)):a&&(j(),g(a,1,1,()=>{a=null}),F()),d===(d=m(i))&&p?p.p(i,w):(p&&p.d(1),p=d&&d(i),p&&(p.c(),p.m(e,null))),(!s||w&2&&r!==(r=be(i[6].href)))&&v(e,"href",r),l&&dt(l.update)&&w&18&&l.update.call(null,i[4]?null:{theme:"light",placement:"right",data:i[6].label}),(!s||w&6)&&J(e,"selected",i[2].startsWith(i[6].href))},i(E){s||(h(a),s=!0)},o(E){g(a),s=!1},d(E){E&&b(e),a&&a.d(),p&&p.d(),o=!1,u()}}}function rr(i){let e,n,t,r,l,s,o,u,a=i[6].icon&&rt(i),m=i[4]&<(i);return{c(){e=I("a"),n=I("span"),a&&a.c(),t=R(),m&&m.c(),this.h()},l(d){e=L(d,"A",{href:!0,target:!0,rel:!0,class:!0});var p=D(e);n=L(p,"SPAN",{class:!0});var E=D(n);a&&a.l(E),E.forEach(b),t=U(p),m&&m.l(p),p.forEach(b),this.h()},h(){v(n,"class","icon svelte-1trui9t"),v(e,"href",r=be(i[6].href)),v(e,"target","_blank"),v(e,"rel","noopener"),v(e,"class","svelte-1trui9t"),J(e,"selected",i[2].startsWith(i[6].href))},m(d,p){S(d,e,p),N(e,n),a&&a.m(n,null),N(e,t),m&&m.m(e,null),s=!0,o||(u=ht(l=vt.call(null,e,i[4]?null:{theme:"light",placement:"right",data:i[6].label})),o=!0)},p(d,p){i=d,i[6].icon?a?(a.p(i,p),p&2&&h(a,1)):(a=rt(i),a.c(),h(a,1),a.m(n,null)):a&&(j(),g(a,1,1,()=>{a=null}),F()),i[4]?m?(m.p(i,p),p&16&&h(m,1)):(m=lt(i),m.c(),h(m,1),m.m(e,null)):m&&(j(),g(m,1,1,()=>{m=null}),F()),(!s||p&2&&r!==(r=be(i[6].href)))&&v(e,"href",r),l&&dt(l.update)&&p&18&&l.update.call(null,i[4]?null:{theme:"light",placement:"right",data:i[6].label}),(!s||p&6)&&J(e,"selected",i[2].startsWith(i[6].href))},i(d){s||(h(a),h(m),s=!0)},o(d){g(a),g(m),s=!1},d(d){d&&b(e),a&&a.d(),m&&m.d(),o=!1,u()}}}function tt(i){let e,n;return e=new Q({props:{class:ne["sidebar-link-icon"]+" "+(i[2].startsWith(i[6].href)?ne["sidebar-link-icon-selected"]:""),icon:i[6].icon,size:"md"}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p(t,r){const l={};r&6&&(l.class=ne["sidebar-link-icon"]+" "+(t[2].startsWith(t[6].href)?ne["sidebar-link-icon-selected"]:"")),r&2&&(l.icon=t[6].icon),e.$set(l)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function lr(i){let e;return{c(){e=I("span"),this.h()},l(n){e=L(n,"SPAN",{class:!0}),D(e).forEach(b),this.h()},h(){v(e,"class","dot svelte-1trui9t")},m(n,t){S(n,e,t)},p:B,d(n){n&&b(e)}}}function ir(i){let e,n=i[6].label+"",t,r,l,s,o=i[6].count>0&&nt(i);return{c(){e=I("span"),t=le(n),l=R(),o&&o.c(),s=z(),this.h()},l(u){e=L(u,"SPAN",{class:!0});var a=D(e);t=ie(a,n),a.forEach(b),l=U(u),o&&o.l(u),s=z(),this.h()},h(){v(e,"class",r="label "+(i[2].startsWith(i[6].href)?"selected":"")+" svelte-1trui9t"),J(e,"news",i[6].count>0)},m(u,a){S(u,e,a),N(e,t),S(u,l,a),o&&o.m(u,a),S(u,s,a)},p(u,a){a&2&&n!==(n=u[6].label+"")&&ae(t,n),a&6&&r!==(r="label "+(u[2].startsWith(u[6].href)?"selected":"")+" svelte-1trui9t")&&v(e,"class",r),a&6&&J(e,"news",u[6].count>0),u[6].count>0?o?o.p(u,a):(o=nt(u),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},d(u){u&&(b(e),b(l),b(s)),o&&o.d(u)}}}function nt(i){let e,n=i[6].count+"",t;return{c(){e=I("span"),t=le(n),this.h()},l(r){e=L(r,"SPAN",{class:!0});var l=D(e);t=ie(l,n),l.forEach(b),this.h()},h(){v(e,"class","count svelte-1trui9t")},m(r,l){S(r,e,l),N(e,t)},p(r,l){l&2&&n!==(n=r[6].count+"")&&ae(t,n)},d(r){r&&b(e)}}}function rt(i){let e,n;return e=new Q({props:{class:ne["sidebar-link-icon"]+" "+(i[2].startsWith(i[6].href)?ne["sidebar-link-icon-selected"]:""),icon:i[6].icon,size:"md"}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p(t,r){const l={};r&6&&(l.class=ne["sidebar-link-icon"]+" "+(t[2].startsWith(t[6].href)?ne["sidebar-link-icon-selected"]:"")),r&2&&(l.icon=t[6].icon),e.$set(l)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function lt(i){let e,n=i[6].label+"",t,r,l,s,o;return s=new Jn({props:{bgColor:"transparent",textColor:"#6D7880"}}),{c(){e=I("span"),t=le(n),r=R(),l=I("span"),A(s.$$.fragment),this.h()},l(u){e=L(u,"SPAN",{class:!0});var a=D(e);t=ie(a,n),a.forEach(b),r=U(u),l=L(u,"SPAN",{class:!0});var m=D(l);M(s.$$.fragment,m),m.forEach(b),this.h()},h(){v(e,"class","label external svelte-1trui9t"),v(l,"class","external-link svelte-1trui9t")},m(u,a){S(u,e,a),N(e,t),S(u,r,a),S(u,l,a),O(s,l,null),o=!0},p(u,a){(!o||a&2)&&n!==(n=u[6].label+"")&&ae(t,n)},i(u){o||(h(s.$$.fragment,u),o=!0)},o(u){g(s.$$.fragment,u),o=!1},d(u){u&&(b(e),b(r),b(l)),V(s)}}}function it(i){let e,n,t,r,l;const s=[rr,nr],o=[];function u(a,m){return a[6].external?0:1}return n=u(i),t=o[n]=s[n](i),{c(){e=I("li"),t.c(),r=R()},l(a){e=L(a,"LI",{});var m=D(e);t.l(m),r=U(m),m.forEach(b)},m(a,m){S(a,e,m),o[n].m(e,null),N(e,r),l=!0},p(a,m){let d=n;n=u(a),n===d?o[n].p(a,m):(j(),g(o[d],1,1,()=>{o[d]=null}),F(),t=o[n],t?t.p(a,m):(t=o[n]=s[n](a),t.c()),h(t,1),t.m(e,r))},i(a){l||(h(t),l=!0)},o(a){g(t),l=!1},d(a){a&&b(e),o[n].d()}}}function sr(i){let e,n,t,r,l,s,o,u,a,m,d,p,E,w,$=i[4]&&et(i);const c=[tr,er],f=[];function _(C,H){return C[4]?0:1}s=_(i),o=f[s]=c[s](i);let y=ge(i[1]),k=[];for(let C=0;C<y.length;C+=1)k[C]=it(xe(i,y,C));const Y=C=>
18g(k[C],1,1,()=>{k[C]=null});return{c(){e=I("div"),n=I("div"),$&&$.c(),t=R(),r=I("div"),l=I("button"),o.c(),u=R(),a=I("nav"),m=I("ul");for(let C=0;C<k.length;C+=1)k[C].c();this.h()},l(C){e=L(C,"DIV",{class:!0});var H=D(e);n=L(H,"DIV",{class:!0});var P=D(n);$&&$.l(P),t=U(P),r=L(P,"DIV",{class:!0});var T=D(r);l=L(T,"BUTTON",{class:!0});var X=D(l);o.l(X),X.forEach(b),T.forEach(b),P.forEach(b),u=U(H),a=L(H,"NAV",{"aria-label":!0,class:!0});var q=D(a);m=L(q,"UL",{class:!0});var ue=D(m);for(let se=0;se<k.length;se+=1)k[se].l(ue);ue.forEach(b),q.forEach(b),H.forEach(b),this.h()},h(){v(l,"class","toggle-btn svelte-1trui9t"),J(l,"hidden",!i[0]),J(l,"right-chevron",!i[4]),v(r,"class","expand-icon"),v(n,"class","header svelte-1trui9t"),v(m,"class","svelte-1trui9t"),v(a,"aria-label","Main navigation"),v(a,"class","sidebar svelte-1trui9t"),v(e,"class",d="sidebar "+(i[4]?"expanded":"collapsed")+" svelte-1trui9t")},m(C,H){S(C,e,H),N(e,n),$&&$.m(n,null),N(n,t),N(n,r),N(r,l),f[s].m(l,null),N(e,u),N(e,a),N(a,m);for(let P=0;P<k.length;P+=1)k[P]&&k[P].m(m,null);p=!0,E||(w=Ee(l,"click",i[5]),E=!0)},p(C,[H]){C[4]?$?$.p(C,H):($=et(C),$.c(),$.m(n,t)):$&&($.d(1),$=null);let P=s;if(s=_(C),s!==P&&(j(),g(f[P],1,1,()=>{f[P]=null}),F(),o=f[s],o||(o=f[s]=c[s](C),o.c()),h(o,1),o.m(l,null)),(!p||H&1)&&J(l,"hidden",!C[0]),(!p||H&16)&&J(l,"right-chevron",!C[4]),H&22){y=ge(C[1]);let T;for(T=0;T<y.length;T+=1){const X=xe(C,y,T);k[T]?(k[T].p(X,H),h(k[T],1)):(k[T]=it(X),k[T].c(),h(k[T],1),k[T].m(m,null))}for(j(),T=y.length;T<k.length;T+=1)Y(T);F()}(!p||H&16&&d!==(d="sidebar "+(C[4]?"expanded":"collapsed")+" svelte-1trui9t"))&&v(e,"class",d)},i(C){if(!p){h(o);for(let H=0;H<y.length;H+=1)h(k[H]);p=!0}},o(C){g(o),k=k.filter(Boolean);for(let H=0;H<k.length;H+=1)g(k[H]);p=!1},d(C){C&&b(e),$&&$.d(),f[s].d(),ct(k,C),E=!1,w()}}}function or(i,e,n){let t,{expandable:r=!1}=e,{links:l=[]}=e,{currentRoute:s=""}=e,{logo:o=""}=e;const u=()=>n(4,t=!t);return i.$$set=a=>{"expandable"in a&&n(0,r=a.expandable),"links"in a&&n(1,l=a.links),"currentRoute"in a&&n(2,s=a.currentRoute),"logo"in a&&n(3,o=a.logo)},i.$$.update=()=>{i.$$.dirty&1&&n(4,t=r??!1)},[r,l,s,o,t,u]}class ar extends x{constructor(e){super(),ee(this,e,or,sr,K,{expandable:0,links:1,currentRoute:2,logo:3})}get expandable(){return this.$$.ctx[0]}set expandable(e){this.$$set({expandable:e}),G()}get links(){return this.$$.ctx[1]}set links(e){this.$$set({links:e}),G()}get currentRoute(){return this.$$.ctx[2]}set currentRoute(e){this.$$set({currentRoute:e}),G()}get logo(){return this.$$.ctx[3]}set logo(e){this.$$set({logo:e}),G()}}const ur={attributes:{fill:"none",viewBox:"0 0 24 24"},children:[{type:"path",attributes:{fill:"currentColor",d:"M21.3804 11.8431H17.5604C17.2204 11.8431 16.9404 11.5631 16.9404 11.2231C16.9404 10.8831 17.2204 10.6031 17.5604 10.6031H21.3804C21.7204 10.6031 22.0004 10.8831 22.0004 11.2231C22.0004 11.5631 21.7204 11.8431 21.3804 11.8431Z"}},{type:"path",attributes:{fill:"currentColor",d:"M17.3801 8.45318C17.1201 8.45318 16.8801 8.28317 16.7901 8.02318C16.6801 7.70318 16.8601 7.35318 17.1901 7.24318L20.9201 6.03317C21.2501 5.92317 21.5901 6.10317 21.7001 6.43317C21.8101 6.75317 21.6301 7.10318 21.3001 7.21318L17.5701 8.42318C17.5101 8.44318 17.4401 8.45318 17.3801 8.45318Z"}},{type:"path",attributes:{fill:"currentColor",d:"M20.9599 16.4431C20.8999 16.4431 20.8299 16.4431 20.7699 16.4131L17.0399 15.2031C16.7199 15.0931 16.5399 14.7531 16.6399 14.4231C16.7499 14.1031 17.0899 13.9231 17.4199 14.0231L21.1499 15.2331C21.4699 15.3431 21.6499 15.6831 21.5499 16.0131C21.4699 16.2731 21.2199 16.4431 20.9599 16.4431Z"}},{type:"path",attributes:{fill:"currentColor",d:"M14.29 5.15317C12.75 6.24317 9.92 7.77317 6.07 7.77317H2.84C2.38 7.77317 2 8.15317 2 8.61317V13.8332C2 14.2932 2.38 14.6732 2.84 14.6732H4.93V17.6832C4.93 18.2532 5.39 18.7132 5.96 18.7132C6.53 18.7132 6.99 18.2532 6.99 17.6832V14.7132C10.37 14.9332 12.89 16.2832 14.3 17.2832C14.85 17.6732 15.61 17.2732 15.61 16.5932V5.84317C15.61 5.16317 14.85 4.76317 14.3 5.15317H14.29Z"}}]};function fr(i){let e,n;return e=new Ne({}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p:B,i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function cr(i){let e,n,t,r;const l=[dr,hr],s=[];function o(u,a){return u[8]?1:0}return e=o(i),n=s[e]=l[e](i),{c(){n.c(),t=z()},l(u){n.l(u),t=z()},m(u,a){s[e].m(u,a),S(u,t,a),r=!0},p(u,a){let m=e;e=o(u),e===m?s[e].p(u,a):(j(),g(s[m],1,1,()=>{s[m]=null}),F(),n=s[e],n?n.p(u,a):(n=s[e]=l[e](u),n.c()),h(n,1),n.m(t.parentNode,t))},i(u){r||(h(n),r=!0)},o(u){g(n),r=!1},d(u){u&&b(t),s[e].d(u)}}}function mr(i){let e,n;return e=new Ne({}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p:B,i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function pr(i){let e,n;return e=new gt({}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p:B,i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function hr(i){var H;let e,n=!["/sso","/risk-hub"].includes((H=i[3])==null?void 0:H.url.pathname),t,r,l,s,o,u=te("portal.scout"),a,m,d,p,E,w,$=n&&st();r=new Vn({});let c=i[10]&&ot(),f=i[4]&&at(i),_=u&&_r(),y=i[11].beamerEnabled&&ut(),k=i[0]!=="/risk-hub"&&ft(i);const Y=i[19].default,C=me(Y,i,i[18],null);return{c(){e=I("div"),$&&$.c(),t=R(),A(r.$$.fragment),l=R(),c&&c.c(),s=R(),f&&f.c(),o=R(),_&&_.c(),a=R(),y&&y.c(),m=R(),d=I("div"),k&&k.c(),p=R(),E=I("div"),C&&C.c(),this.h()},l(P){e=L(P,"DIV",{class:!0});var T=D(e);$&&$.l(T),t=U(T),M(r.$$.fragment,T),l=U(T),c&&c.l(T),s=U(T),f&&f.l(T),o=U(T),_&&_.l(T),a=U(T),y&&y.l(T),m=U(T),d=L(T,"DIV",{class:!0});var X=D(d);k&&k.l(X),p=U(X),E=L(X,"DIV",{class:!0});var q=D(E);
18C&&C.l(q),q.forEach(b),X.forEach(b),T.forEach(b),this.h()},h(){v(E,"class","main-content svelte-i9ae9d"),v(d,"class","layout-body svelte-i9ae9d"),v(e,"class","container svelte-i9ae9d")},m(P,T){S(P,e,T),$&&$.m(e,null),N(e,t),O(r,e,null),N(e,l),c&&c.m(e,null),N(e,s),f&&f.m(e,null),N(e,o),_&&_.m(e,null),N(e,a),y&&y.m(e,null),N(e,m),N(e,d),k&&k.m(d,null),N(d,p),N(d,E),C&&C.m(E,null),w=!0},p(P,T){var X;T[0]&8&&(n=!["/sso","/risk-hub"].includes((X=P[3])==null?void 0:X.url.pathname)),n?$?T[0]&8&&h($,1):($=st(),$.c(),h($,1),$.m(e,t)):$&&(j(),g($,1,1,()=>{$=null}),F()),P[10]?c?T[0]&1024&&h(c,1):(c=ot(),c.c(),h(c,1),c.m(e,s)):c&&(j(),g(c,1,1,()=>{c=null}),F()),P[4]?f?(f.p(P,T),T[0]&16&&h(f,1)):(f=at(P),f.c(),h(f,1),f.m(e,o)):f&&(j(),g(f,1,1,()=>{f=null}),F()),P[11].beamerEnabled?y?T[0]&2048&&h(y,1):(y=ut(),y.c(),h(y,1),y.m(e,m)):y&&(j(),g(y,1,1,()=>{y=null}),F()),P[0]!=="/risk-hub"?k?(k.p(P,T),T[0]&1&&h(k,1)):(k=ft(P),k.c(),h(k,1),k.m(d,p)):k&&(j(),g(k,1,1,()=>{k=null}),F()),C&&C.p&&(!w||T[0]&262144)&&pe(C,Y,P,P[18],w?de(Y,P[18],T,null):he(P[18]),null)},i(P){w||(h($),h(r.$$.fragment,P),h(c),h(f),h(_),h(y),h(k),h(C,P),w=!0)},o(P){g($),g(r.$$.fragment,P),g(c),g(f),g(_),g(y),g(k),g(C,P),w=!1},d(P){P&&b(e),$&&$.d(),V(r),c&&c.d(),f&&f.d(),_&&_.d(),y&&y.d(),k&&k.d(),C&&C.d(P)}}}function dr(i){let e,n;return e=new gt({props:{statusCode:403}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p:B,i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function st(i){let e,n;return e=new Dn({}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function ot(i){let e,n;return e=new Ne({}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function at(i){let e,n;return e=new qn({props:{type:"info",dismissable:!0,displayType:"modal",message:i[5]}}),e.$on("close",i[12]),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p(t,r){const l={};r[0]&32&&(l.message=t[5]),e.$set(l)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function _r(i){let e,n;return e=new Zn({}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function ut(i){let e,n;return e=new Wn({}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function ft(i){let e,n;return e=new ar({props:{expandable:i[7],links:i[6],currentRoute:i[0],logo:i[11].logoUrl}}),{c(){A(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,r){O(e,t,r),n=!0},p(t,r){const l={};r[0]&128&&(l.expandable=t[7]),r[0]&64&&(l.links=t[6]),r[0]&1&&(l.currentRoute=t[0]),r[0]&2048&&(l.logo=t[11].logoUrl),e.$set(l)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){V(e,t)}}}function gr(i){let e,n,t,r,l,s;e=new Ut({});const o=[pr,mr,cr,fr],u=[];function a(m,d){return m[9]?0:m[2]?m[1]?2:3:1}return t=a(i),r=u[t]=o[t](i),{c(){A(e.$$.fragment),n=R(),r.c(),l=z()},l(m){M(e.$$.fragment,m),n=U(m),r.l(m),l=z()},m(m,d){O(e,m,d),S(m,n,d),u[t].m(m,d),S(m,l,d),s=!0},p(m,d){let p=t;t=a(m),t===p?u[t].p(m,d):(j(),g(u[p],1,1,()=>{u[p]=null}),F(),r=u[t],r?r.p(m,d):(r=u[t]=o[t](m),r.c()),h(r,1),r.m(l.parentNode,l))},i(m){s||(h(e.$$.fragment,m),h(r),s=!0)},o(m){g(e.$$.fragment,m),g(r),s=!1},d(m){m&&(b(n),b(l)),V(e,m),u[t].d(m)}}}function br(i,e,n){let t,r,l,s,o,u,a,m,d,p,E,w,$,c,f,_;W(i,an,Z=>n(14,a=Z)),W(i,Vt,Z=>n(2,m=Z)),W(i,fe,Z=>n(15,d=Z)),W(i,_t,Z=>n(23,p=Z)),W(i,ke,Z=>n(3,E=Z)),W(i,Dt,Z=>n(16,w=Z)),W(i,At,Z=>n(17,$=Z)),W(i,Rt,Z=>n(9,c=Z)),W(i,Lt,Z=>n(10,f=Z)),W(i,Pe,Z=>n(11,_=Z));let{$$slots:y={},$$scope:k}=e;async function Y(){q===null&&(await Ue(),document.addEventListener("visibilitychange",we),document.hidden||Le())}const{debtor:C,impersonationToken:H}=E.data;let P=!1,T="";const X={"/track":"portal.travel.tracker","/people":"portal.default.people","/credits":"portal.ticket.credit","/group-risk":"portal.riskgroupreport","/risk-hub":"portal.default.riskhub","/company-news":"portal.companynews"};let q=null,ue=Date.now(),se=!0;const Se=2*60*1e3;function Ct(){if(n(4,P=!0),C){const{debtorName:Z}=p.find(ce=>ce.debtorCode===C);n(5,T=`Successfully changed to "${Z}"`)}else H&&n(5,T=`Logged in as "${d.email} - ${d.debtor}"`)}function yt(){n(4,P=!1)}async function Ie(){await Ue(),ue=Date.now()}function Le(){q!==null&&clearInterval(q),q=setInterval(Ie,Se)}function ve(){q!==null&&(clearInterval(q),q=null)}function we(){const Z=Date.now();se=!document.hidden,se?(Z-ue>=Se&&Ie(),Le()):ve()}return It(()=>{ve(),document.removeEventListener("visibilitychange",we)}),i.$$set=Z=>{"$$scope"in Z&&n(18,k=Z.$$scope)},i.$$.update=()=>{var Z;i.$$.dirty[0]&229380&&n(1,t=$&&w&&d&&m),i.$$.dirty[0]&6&&(m&&te("portal.companynews")&&t?Y():(ve(),document.removeEventListener("visibilitychange",we))),i.$$.dirty[0]&8&&n(0,r=E==null?void 0:E.url.pathname),i.$$.dirty[0]&1&&n(13,l=(Z=Object.entries(X).find(([ce])=>r.startsWith(ce)))==null?void 0:Z[1]),i.$$.dirty[0]&8196&&n(8,s=!l||m&&te(l)),i.$$.dirty[0]&4&&m&&(C||H)&&Ct(),i.$$.dirty[0]&1&&n(7,o=r==="/dashboard"),i.$$.dirty[0]&16388&&n(6,u=m?[{label:"Home",href:"/dashboard",icon:Me},...te("portal.companynews")?[{label:"Company News",href:"/company-news",icon:ur,count:a}]:[],...te("portal.travel.tracker")?[{label:"Track",href:"/track",icon:xt}]:[],...te("portal.default.people")?[{label:"People",href:"/people",icon:sn}]:[],...te("portal.ticket.credit")?[{label:"Credits",href:"/credits",icon:on}]:[],...te("portal.riskgroupreport")?[{label:"Risk Group Reporting",href:"/group-risk",icon:un}]:[],...te("portal.default.riskhub")?[{label:"RISK Hub",href:"/risk-hub",icon:qt,external:!0}]:[]]:[{label:"Home",href:"/dashboard",icon:Me}])},[r,t,m,E,P,T,u,o,s,c,f,_,yt,l,a,d,w,$,k,y]}class Jr extends x{constructor(e){super(),ee(this,e,br,gr,K,{},null,[-1,-1])}}export{Jr as component}; 19//# sourceMappingURL=2.B7_ctBvS.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.