1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{147:()=>{},785:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var s=r(5155),a=r(2115),l=r(2379),i=r(6766);let o=async e=>{let{login:t}=await r.e(603).then(r.bind(r,7603));return t(e)};var n=r(4915);let d=async e=>{let{forgotPassword:t}=await r.e(61).then(r.bind(r,8061));return t(e)},c=({step1successData:e})=>(0,s.jsxs)("div",{className:"w-full flex flex-col px-2",children:[(0,s.jsx)(i.default,{src:"/asset/confirmation.svg","aria-label":"Confirmation Icon",alt:"Confirmation Icon",width:32,height:24,className:"mx-auto mb-7 w-32 h-24 items-center justify-center",unoptimized:!0}),(0,s.jsx)("h2",{className:"cs-h3 dark:text-black mb-2",children:e?.title}),(0,s.jsx)("div",{className:"cs-text md:sm:w-[387px] w-auto whitespace-pre-line mb-10 dark:text-black",children:e?.text?function(e){let t,r=[],s=0,l=/<a\s+[^>]*href=["']mailto:([^"']+)["'][^>]*>(.*?)<\/a>/gi,i=e.replace(/<\/?p[^>]*>/gi,"\n");for(;null!==(t=l.exec(i));){let[e,l,o]=t,n=t.index;n>s&&r.push(i.slice(s,n)),r.push(a.createElement("a",{key:l+n,href:`mailto:${l}`,className:"cs-text text-neutral-900 font-bold underline"},o)),s=n+e.length}return s<i.length&&r.push(i.slice(s)),r}(e.text):null})]});var u=r(7447),p=r(7992),m=r(949);let x=({onClose:e,onBack:t,pwForgotten:r,recaptchaSiteKey:o})=>{let[x,h]=(0,a.useState)({email:"",company:""}),[f,w]=(0,a.useState)({}),[g,b]=(0,a.useState)(null),[v,j]=(0,a.useState)(!1),[y,k]=(0,a.useState)(null),N=(0,a.useRef)(null);(0,a.useEffect)(()=>{let t=t=>{(0,m.P)(t)||N.current&&!N.current.contains(t.target)&&e()};return document.addEventListener("mousedown",t),document.addEventListener("focusin",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("focusin",t)}},[]);let L=e=>{let{name:t,type:s,value:a}=e.target,l="checkbox"===s&&e.target instanceof HTMLInputElement?e.target.checked:a;h(e=>({...e,[t]:l}));let i=null;"email"===t&&(i=(0,n.DT)(a,r?.step1?.fields?.email?.error)),w(e=>({...e,[t]:i||void 0}))},C=()=>{let e=Object.values(f).some(Boolean),t=x.email.trim()&&!!y;return!e&&!!t},S=async()=>{if(!Object.values({email:(0,n.DT)(x.email,r?.step1?.fields?.email?.error)||void 0}).some(Boolean)){if(!y)return void b(r?.internalServerError||p.P.en.errors.internalServerError);try{if(!(await d({email:x.email,company:x.company,recaptchaToken:y})).success){let e=r?.internalServerError||p.P.en.errors.internalServerError;b(e);return}b(null),j(!0)}catch(e){b(e instanceof Error?e.message:p.P.en.errors.unexpectedError)}}};return(0,s.jsx)("div",{className:"flex flex-col",ref:N,children:v?(0,s.jsx)(c,{step1successData:r?.step1success}):(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),S()},className:"w-full pl-[10px] pr-[13px] pt-[15px] pb-[10px] rounded-[35px] flex flex-col",children:[(0,s.jsxs)(l.$,{classname:"bg-white w-[125px] flex rounded-full hover:bg-black group pl-5 py-2 pr-3 justify-between items-center mt-[-22px] mb-[10px]",onClick:()=>{t()},children:[(0,s.jsxs)("span",{className:"relative bg-arrow flex justify-center items-center shrink-0 cursor-pointer rounded-full w-10 h-10 -ml-2 group-hover:bg-white ",children:[(0,s.jsx)(i.default,{src:"/asset/arrow-right.svg",alt:"",width:18,height:14,className:"absolute transition-opacity opacity-100 group-hover:opacity-0 transform rotate-180",unoptimized:!0}),(0,s.jsx)(i.default,{src:"/asset/arrow-right-dark.svg",alt:"",width:16,height:14,className:"absolute transition-opacity opacity-0 group-hover:opacity-100 transform rotate-180",unoptimized:!0})]}),(0,s.jsx)("span",{className:"cs-text text-black group-hover:text-white px-2",children:r?.step1?.buttons?.back})]}),(0,s.jsx)("div",{className:"cs-h3 dark:text-white mb-4 mt-4",children:r?.step1?.title}),(0,s.jsx)("pre",{className:"cs-text sm:w-96 w-auto dark:text-white whitespace-pre-line mb-7 sm:pr-2 md:pr-4",children:r?.step1?.text.replace(/<\/?p[^>]*>/g,"\n").trim()}),g&&(0,s.jsx)("p",{className:"cs-text mb-5 px-4 py-1.5 bg-red-600 rounded-xl text-center text-white mb-4",children:g}),(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("label",{className:"cs-text block mb-2 font-bold text-black/50 dark:text-white/50",htmlFor:"email",children:r?.step1?.fields?.email?.label||"Email*"}),(0,s.jsxs)("div",{className:f?.email&&"rounded-xl bg-red-600 p-0.5 -m-0.5",children:[(0,s.jsx)("input",{name:"email",id:"email",type:"email",value:x.email,onChange:L,className:"cs-text border-none dark:text-white dark:bg-dark_secondary dark:placeholder:text-dark_placeholder focus:outline-none focus:ring-0 w-full p-4 rounded-xl",placeholder:r?.step1?.fields?.email?.placeholder||"Enter your email",required:!0}),f.email&&(0,s.jsx)("p",{className:"cs-text text-white px-4 py-1",children:f.email})]}),(0,s.jsx)("input",{type:"text",name:"company",value:x.company||"",onChange:L,style:{display:"none"},autoComplete:"off",tabIndex:-1})]}),(0,s.jsx)("div",{className:"mb-5",children:(0,s.jsx)(u.A,{siteKey:o,onVerify:e=>k(e),onTokenExpired:()=>k(null),onError:()=>k(null)})}),(0,s.jsx)("div",{className:"mb-8 flex items-center",children:(0,s.jsxs)(l.$,{classname:`w-[387px] pr-2 flex rounded-full ${C()?"bg-gradient-primary":"bg-gray-500 dark:bg-dark_secondary cursor-not-allowed"} pl-[22px] pt-[17px] pb-[18px]`,type:"submit",disabled:!C(),children:[(0,s.jsx)("span",{className:"cs-text text-white group-hover:text-white",children:r?.step1?.buttons?.submit||"Submit"}),(0,s.jsxs)("span",{className:"relative bg-arrow bg-arrow-black flex justify-center items-center shrink-0 cursor-pointer rounded-full w-10 h-10",children:[(0,s.jsx)(i.default,{src:"/asset/arrow-right-white.svg",alt:"",width:18,height:14,className:"absolute transition-opacity opacity-100 group-hover:opacity-0",unoptimized:!0}),(0,s.jsx)(i.default,{src:"/asset/arrow-right-dark.svg",alt:"",width:16,height:14,className:"absolute transition-opacity opacity-0 group-hover:opacity-100",unoptimized:!0})]})]})})]})})},h=({closeLogo:e,onClose:t,onOpenRegistration:r,loginData:d,onSuccess:c,pwForgotten:h,recaptchaSiteKey:f})=>{let[w,g]=(0,a.useState)({email:"",password:""}),[b,v]=(0,a.useState)({}),[j,y]=(0,a.useState)(null),[k,N]=(0,a.useState)(!0),[L,C]=(0,a.useState)(null),S=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=e=>{(0,m.P)(e)||(e=>e.target instanceof HTMLElement&&!!e.target.closest("#cookiescript_injected_wrapper"))(e)||S.current&&!S.current.contains(e.target)&&t()};return document.addEventListener("mousedown",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("focusin",e)}},[]);let E=e=>{let{name:t,value:r}=e.target;if(g(e=>({...e,[t]:r})),"email"===t){let e=(0,n.DT)(r,d?.fields?.email?.error);v(t=>({...t,email:e||void 0}))}"password"===t&&b.password&&v(e=>({...e,password:void 0})),y(null)},T=()=>!(0,n.DT)(w.email)&&w.password.trim().length>0&&!!L,$=async()=>{let e={email:(0,n.DT)(w.email,d?.fields?.email?.error)||void 0,password:(w.password.trim()?void 0:d?.fields?.password?.error||p.P.en.errors.login.passwordMissing)||void 0};if(v(e),!Object.values(e).some(Boolean)){if(!L)return void y(d?.internalServerError||p.P.en.errors.internalServerError);try{let e=(0,n.K0)(w.password),t=await o({email:w.email,password:e,recaptchaToken:L});if(!t.success){let e;e="ERROR845"===t.code?d?.error||p.P.en.errors.login.credentials:d?.internalServerError||p.P.en.errors.internalServerError,y(e);return}y(null),window.dispatchEvent(new CustomEvent("check-user",{detail:{onSuccess:c}}))}catch(e){console.error("Login error:",e),y(d?.error||p.P.en.errors.internalServerError)}}};return(0,s.jsxs)("div",{className:"flex flex-col rounded-[35px]",ref:S,children:[(0,s.jsx)(l.$,{type:"button",onClick:t,classname:"!justify-end !flex !items-end !pr-0 !py-0 -mt-1","aria-label":"Close login form","data-testid":"close-login-btn",children:(0,s.jsx)(i.default,{src:e,alt:"",width:60,height:60,className:"mr-[-6px] rounded-full",unoptimized:!0})}),k?(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),$()},className:"w-full pl-[8px] pr-[7px] pb-2 flex flex-col mt-[30px]","data-testid":"login-form",children:[(0,s.jsx)("div",{className:"flex flex-col mb-3",children:(0,s.jsx)("h2",{className:"cs-
1h3 dark:text-white mb-5","data-testid":"login-title",children:d?.title})}),j&&(0,s.jsx)("div",{className:"cs-text mb-5 px-4 py-1.5 bg-red-600 rounded-xl text-center text-white",role:"alert","aria-live":"assertive","data-testid":"submit-error",children:j}),(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("label",{className:"cs-text block mb-2 font-bold dark:text-white/50 text-neutral-900/50",htmlFor:"email-input",children:d?.fields?.email?.label}),(0,s.jsxs)("div",{className:b?.email&&"rounded-xl bg-red-600 p-0.5 -mx-0.5",children:[(0,s.jsx)("input",{id:"email-input",name:"email",type:"email",value:w.email,onChange:E,className:"cs-text border-none dark:text-white dark:bg-dark_secondary dark:placeholder:text-dark_placeholder focus:outline-none focus:ring-0 w-full p-4 rounded-xl",placeholder:d?.fields?.email?.placeholder,required:!0,"data-testid":"email-input"}),b?.email&&(0,s.jsx)("p",{className:"cs-text text-white px-4 py-1",children:b?.email})]})]}),(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsx)("label",{className:"cs-text block mb-2 font-bold dark:text-white/50 text-neutral-900/50",htmlFor:"password-input",children:d?.fields?.password?.label}),(0,s.jsxs)("div",{className:b?.password&&"rounded-xl bg-red-600 p-0.5 -m-0.5",children:[(0,s.jsx)("input",{id:"password-input",name:"password",type:"password",value:w.password,onChange:E,className:"cs-text border-none dark:text-white dark:bg-dark_secondary dark:placeholder:text-dark_placeholder focus:outline-none focus:ring-0 w-full p-4 rounded-xl",placeholder:d?.fields?.password?.placeholder,required:!0,"data-testid":"password-input"}),b.password&&(0,s.jsx)("p",{className:"cs-text text-white px-4 py-1","data-testid":"password-error",children:b.password})]})]}),(0,s.jsx)("div",{className:"mb-5",children:(0,s.jsx)(l.$,{type:"button",classname:"cs-text text-black dark:text-white font-bold ml-1 !pl-0",onClick:()=>{N(!1)},"data-testid":"forgot-password-btn",children:d?.buttons?.pwdForgotten})}),(0,s.jsx)("div",{className:"mb-7",children:(0,s.jsx)(u.A,{siteKey:f,onVerify:e=>C(e),onTokenExpired:()=>C(null),onError:()=>C(null)})}),(0,s.jsx)("div",{className:"mb-4 flex items-center",children:(0,s.jsxs)(l.$,{classname:`w-[387px] pr-2 flex rounded-full pl-[23px] pt-[17px] pb-[18px] ${T()?"bg-gradient-primary":"bg-gray-500 dark:bg-dark_secondary cursor-not-allowed"}`,type:"submit",disabled:!T(),"data-testid":"login-submit-btn",children:[(0,s.jsx)("span",{className:"cs-text text-white group-hover:text-white",children:d?.buttons?.login}),(0,s.jsxs)("span",{className:"relative bg-arrow bg-gray-900 flex justify-center items-center shrink-0 cursor-pointer rounded-full w-10 h-10 group-hover:bg-white",children:[(0,s.jsx)(i.default,{src:"/asset/arrow-right-white.svg",alt:"",width:18,height:14,className:"absolute transition-opacity opacity-100 group-hover:opacity-0",unoptimized:!0}),(0,s.jsx)(i.default,{src:"/asset/arrow-right-dark.svg",alt:"",width:16,height:14,className:"absolute transition-opacity opacity-0 group-hover:opacity-100",unoptimized:!0})]})]})}),(0,s.jsx)("div",{className:"mb-4 flex items-center",children:(0,s.jsxs)(l.$,{onClick:r,classname:"pr-2 bg-white flex rounded-full hover:bg-black group w-[387px] pl-[23px] pt-[17px] pb-[18px]","data-testid":"register-btn",children:[(0,s.jsx)("span",{className:"cs-text text-black group-hover:text-white",children:d?.buttons?.register}),(0,s.jsxs)("span",{className:"relative bg-arrow flex justify-center items-center shrink-0 cursor-pointer rounded-full w-10 h-10 group-hover:bg-white",children:[(0,s.jsx)(i.default,{src:"/asset/arrow-right-white.svg",alt:"",width:18,height:14,className:"absolute transition-opacity opacity-100 group-hover:opacity-0",unoptimized:!0}),(0,s.jsx)(i.default,{src:"/asset/arrow-right-dark.svg",alt:"",width:16,height:14,className:"absolute transition-opacity opacity-0 group-hover:opacity-100",unoptimized:!0})]})]})})]})]}):(0,s.jsx)(x,{onBack:()=>N(!0),onClose:t,pwForgotten:h,recaptchaSiteKey:f})]})}},949:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});let s=e=>{let t=e.target;if(t instanceof HTMLElement&&"IFRAME"===t.tagName){let e=t.getAttribute("title"),r=t.getAttribute("src");if("string"==typeof r&&"string"==typeof e&&r?.toLowerCase()?.indexOf("recaptcha")>=0&&e?.toLowerCase()?.indexOf("recaptcha")>=0)return!0}return!1}},1843:(e,t,r)=>{"use strict";r.d(t,{ScrollToTopComponent:()=>d});var s=r(5155),a=r(2115),l=r(6766),i=r(4293);let o={src:"/_next/static/media/arrowTop.b482800a.svg"},n={src:"/_next/static/media/arrowTopBlack.8a5b0980.svg"},d=()=>{let[e,t]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{let e=()=>{t(window.scrollY>i.K.TOP_SCROLL_VALUE)};return window.addEventListener("scroll",e),e(),()=>window.removeEventListener("scroll",e)}
1,[]),e)?(0,s.jsxs)("button",{className:"fixed group bottom-[14px] right-[14px] z-[21] flex justify-center items-center w-10 h-10 rounded-full bg-black hover:bg-transparent border border-transparent hover:border-black",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},children:[(0,s.jsx)(l.default,{src:n.src,alt:"Scroll to top",className:"hidden group-hover:block",width:10,height:10,unoptimized:!0}),(0,s.jsx)(l.default,{src:o.src,className:"group-hover:hidden",alt:"Scroll to top",width:10,height:10,unoptimized:!0})]}):null}},2116:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s=r(5155);r(2115);var a=r(6766);let l=({onClose:e,registrationSuccessData:t,closeLogo:r,regSuccessLogo:l})=>(0,s.jsxs)("div",{className:"flex flex-col px-2",children:[(0,s.jsx)("button",{onClick:e,className:"text-gray-500 hover:text-gray-700 text-lg justify-end flex items-center mb-","aria-label":"Close login form",children:(0,s.jsx)(a.default,{src:r,alt:"Cross Icon",width:48,height:48,className:"h-12 w-12 lg:mr-0 rounded-full",unoptimized:!0})}),(0,s.jsx)(a.default,{src:l,"aria-label":"Close Icon",alt:"Cross Icon",width:48,height:48,className:"mx-auto mb-7 w-24 h-28 rounded-full items-center justify-center",unoptimized:!0}),(0,s.jsx)("h2",{className:"cs-h3 dark:text-white mb-7",children:t?.title}),(0,s.jsx)("p",{className:"cs-text mb-8",children:t?.text})]})},2270:(e,t,r)=>{"use strict";r.d(t,{TokenRefresh:()=>a});var s=r(2115);function a(){return(0,s.useEffect)(()=>{let e=setInterval(async()=>{try{await fetch("/api/auth/refresh",{method:"GET",credentials:"include"})}catch(e){console.error("Silent refresh failed",e)}},3e5);return()=>clearInterval(e)},[]),null}},2931:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,3063,23)),Promise.resolve().then(r.t.bind(r,147,23)),Promise.resolve().then(r.bind(r,7658)),Promise.resolve().then(r.bind(r,1843)),Promise.resolve().then(r.t.bind(r,9976,23)),Promise.resolve().then(r.bind(r,6989)),Promise.resolve().then(r.bind(r,2465)),Promise.resolve().then(r.bind(r,4103)),Promise.resolve().then(r.bind(r,7086)),Promise.resolve().then(r.bind(r,2270))},4101:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var s=r(5155),a=r(2115),l=r(2379),i=r(6766);let o=async e=>{let{registerUser:t}=await r.e(631).then(r.bind(r,3631));return t(e)};var n=r(4915),d=r(7447),c=r(7992),u=r(949);let p=({onClose:e,onBack:t,onSuccess:r,registrationData:p,closeLogo:m,bulletLogo:x,recaptchaSiteKey:h})=>{let[f,w]=(0,a.useState)({firstName:"",lastName:"",title:"",email:"",password:"",confirmPassword:"",agreeToTerms:!1,company:""}),[g,b]=(0,a.useState)({}),[v,j]=(0,a.useState)(null),[y,k]=(0,a.useState)(null),N=(0,a.useRef)(null);(0,a.useEffect)(()=>{let t=t=>{(0,u.P)(t)||N.current&&!N.current.contains(t.target)&&e()};return document.addEventListener("mousedown",t),document.addEventListener("focusin",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("focusin",t)}},[]);let L=e=>{let{name:t,type:r,value:s}=e.target,a="checkbox"===r&&e.target instanceof HTMLInputElement?e.target.checked:s;w(e=>({...e,[t]:a}));let l=null;switch(t){case"email":l=(0,n.DT)(s,p?.fields?.email?.error);break;case"firstName":l=(0,n.yS)(s,p?.fields?.firstName?.error);break;case"lastName":l=(0,n.yS)(s,p?.fields?.lastName?.error);break;case"title":l=(0,n.RX)(s,p?.fields?.title?.error);break;case"password":l=(0,n.Oj)(s,p?.fields?.password1?.error);break;case"confirmPassword":s!==f.password&&(l=p?.fields?.password2?.error||"password must match");break;case"agreeToTerms":a||(l=p?.fields?.term?.error||"You must agree to the terms and privacy policy.")}b(e=>({...e,[t]:l||void 0}))},C=()=>{let e=Object.values(g).some(Boolean),t=f.firstName.trim()&&f.lastName.trim()&&f.title.trim()&&f.email.trim()&&f.password.trim()&&f.confirmPassword.trim()&&f.agreeToTerms&&!!y;return!e&&!!t},S=async()=>{let e={email:(0,n.DT)(f.email,p?.fields?.email?.error)||void 0,title:(0,n.RX)(f.title,p?.fields?.title?.error)||void 0,firstName:(0,n.yS)(f.firstName,p?.fields?.firstName?.error)||void 0,lastName:(0,n.yS)(f.lastName,p?.fields?.lastName?.error)||void 0,password:(0,n.Oj)(f.password,p?.fields?.password1?.error)||void 0,confirmPassword:f.password!==f.confirmPassword?p?.f
1ields?.password2?.error:void 0,agreeToTerms:f.agreeToTerms?void 0:p?.fields?.term?.error};if(b(e),!Object.values(e).some(Boolean)){if(!y)return void j(p?.error||c.P.en.errors.internalServerError);try{let e=(0,n.K0)(f.password),t=await o({firstName:f.firstName,lastName:f.lastName,email:f.email,password:e,termsAndConditionsAccepted:f.agreeToTerms,salutation:f.title,company:f.company,recaptchaToken:y});if(!t.success){let e;e="ERROR800"===t.code?p?.fields?.email?.errorAlreadyExist||c.P.en.errors.registration.emailAlreadyInUse:"HONEYPOT_TRIGGERED"===t.code?null:p?.error||c.P.en.errors.internalServerError,j(e);return}j(null),r()}catch(e){console.error("Registration error:",e),j(p?.error||c.P.en.errors.internalServerError)}}};return(0,s.jsxs)("div",{className:"flex flex-col",ref:N,children:[(0,s.jsx)(l.$,{type:"button",onClick:e,classname:"!justify-end !flex !items-end !pr-0 !py-0 -mt-1","aria-label":"Close registration form",children:(0,s.jsx)(i.default,{src:m,alt:"",width:60,height:60,className:"mr-[-6px] rounded-full",unoptimized:!0})}),(0,s.jsxs)(l.$,{size:"extraSmall",classname:"bg-white max-w-[125px] flex rounded-full hover:bg-black group",onClick:()=>{t()},children:[(0,s.jsxs)("span",{className:"relative bg-arrow flex justify-center items-center shrink-0 cursor-pointer rounded-full w-10 h-10 -ml-2 group-hover:bg-white ",children:[(0,s.jsx)(i.default,{src:"/asset/arrow-right.svg",alt:"",width:18,height:14,className:"absolute transition-opacity opacity-100 group-hover:opacity-0 transform rotate-180",unoptimized:!0}),(0,s.jsx)(i.default,{src:"/asset/arrow-right-dark.svg",alt:"",width:16,height:14,className:"absolute transition-opacity opacity-0 group-hover:opacity-100 transform rotate-180",unoptimized:!0})]}),(0,s.jsx)("span",{className:"cs-text text-black group-hover:text-white px-2",children:p?.buttons?.back})]}),(0,s.jsxs)("form",{"data-testid":"registration-form",onSubmit:e=>{e.preventDefault(),S()},className:"w-full rounded-2xl flex flex-col my-8",children:[(0,s.jsx)("h2",{className:"cs-h3 dark:text-white mb-8",children:p?.title}),[p?.bullet1,p?.bullet2,p?.bullet3].map((e,t)=>e&&(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,s.jsx)(i.default,{src:x,alt:"",width:48,height:48,className:"h-3 w-5 lg:mr-0 rounded-full",unoptimized:!0}),(0,s.jsx)("p",{className:"cs-text text-neutral-900 dark:text-white",children:e},t)]},t)),v&&(0,s.jsx)("div",{className:"cs-text mb-5 px-4 py-1.5 bg-red-600 rounded-xl text-center text-white",children:v}),[{name:"email",type:"email"},{name:"password",type:"password",dataKey:"password1"},{name:"confirmPassword",type:"password",dataKey:"password2"},{name:"title",type:"select"},{name:"firstName",type:"text"},{name:"lastName",type:"text"}].map(({name:e,type:t,dataKey:r})=>{let a=r||e,l=p?.fields?.[a],i=g[e],o=f[e];return(0,s.jsxs)("div",{className:`mb-5 ${"email"===e?"mt-8":""}`,children:[(0,s.jsx)("label",{htmlFor:e,className:"cs-text block mb-2 font-bold dark:text-white/50 text-neutral-900/50",children:l?.label}),(0,s.jsxs)("div",{className:i&&"rounded-xl bg-red-600 p-0.5 -m-0.5",children:["select"===t?(0,s.jsxs)("select",{name:e,value:o,onChange:L,className:"cs-text border-none dark:text-white dark:bg-dark_secondary dark:placeholder:text-dark_placeholder focus:outline-none focus:ring-0 w-full p-4 rounded-xl","aria-label":l?.label,children:[(0,s.jsx)("option",{value:"",children:p?.fields?.title?.placeholder}),l?.values?.map(e=>(0,s.jsx)("option",{value:e,children:e},e))]}):(0,s.jsx)("input",{id:e,name:e,type:t,value:o,onChange:L,className:"cs-text border-none dark:text-white dark:bg-dark_secondary dark:placeholder:text-dark_placeholder focus:outline-none focus:ring-0 w-full p-4 rounded-xl",placeholder:l?.placeholder,"aria-label":l?.label}),i&&(0,s.jsx)("p",{className:"cs-text text-white px-4 py-1",children:i})]})]},e)}),(0,s.jsx)("input",{type:"text",name:"company",value:f.company||"",onChange:L,style:{display:"none"},autoComplete:"off",tabIndex:-1,"data-testid":"honeypot"}),(0,s.jsxs)("div",{className:"mb-5 flex items-center",children:[(0,s.jsx)("input",{type:"checkbox",name:"agreeToTerms",checked:f.agreeToTerms,onChange:L,className:"mr-2 h-7 w-7 bg-transparent appearance-none",id:"agreeToTerms"}),(0,s.jsxs)("label",{htmlFor:"agreeToTerms",className:"cs-text dark:text-white",children:[p?.fields?.term?.title,(0,s.jsx)("a",{href:p?.fields?.term?.link1[0]?.url,className:"font-bold text-black dark:text-white underline px-1",target:"_blank",rel:"noopener noreferrer",children:p?.fields?.term?.link1Text}),p?.fields?.term?.title1,(0,s.jsx)("a",{href:p?.fields?.term?.link2[0]?.url,className:"font-bold text-black dark:text-white underline px-1",target:"_blank",rel:"noopener noreferrer",children:p?.fields?.term?.link2Text}),p?.fields?.term?.title2]})]}),g.agreeToTerms&&(0,s.jsx)("p",{className:"cs-text text-red-500 mb-4",children:g.agreeToTerms}),(0,s.jsx)("div",{className:"mb-7",children:(0,s.jsx)(d.A,{siteKey:h,onVerify:e=>k(e),onTokenExpired:()=>k(null),onError:()=>k(null)})}),(0,s.jsx)("div",{className:"mb-5",children:(0,s.jsxs)(l.$,{type:"submit","data-testid":"submit-button",classname:`flex w-full rounded-full group ${C()?"bg-gradient-primary":"bg-gray-300 dark:bg-dark_secondary cursor-not-allowed"}`,disabled:!C(),children:[(0,s.jsx)("span",{className:"cs-text text-black group-hover:text-white",children:p?.buttons?.submit}),(0,s.jsxs)("span",{className:"relative bg-arrow flex justify-center items-center shrink-0 cursor-pointer rounded-full w-10 h-10 group-hover:bg-white ",children:[(0,s.jsx)(i.default,{src:"/asset/arrow-right.svg",alt:"",width:18,height:14,className:"absolute transition-opacity opacity-100 group-hover:opacity-0",unoptimized:!0}),(0,s.jsx)(i.default,{src:"/asset/arrow-right-dark.svg",alt:"",width:16,height:14,className:"absolute transition-opacity opacity-0 group-hover:opacity-100",unoptimized:!0})]})]})})]})]})}},4103:(e,t,r)=>{"use strict";r.d(t,{HeaderNavigation:()=>T});var s=r(5155),a=r(2115),l=r(6766),i=r(4101),o=r(785),n=r(2116),d=r(2379);r(6978);var c=r(6309),u=r(9237);function p({closeLogo:e,onClose:t,profileFlyoutData:r=[],loggedInData:i}){let o=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&t()};return document.addEventListener("mousedown",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("focusin",e)}},[]);let n=(0,c.G)(window.dbagRole);return(0,s.jsx)("div",{className:"sm:w-[400px] w-[300px] rounded-[35px] flex flex-col",ref:o,children:(0,s.jsxs)("div",{className:"relative bg-white/65 dark:bg-dark_primary/65 rounded-[35px] shadow-lg pb-7 backdrop-blur-xl",children:[(0,s.jsx)(d.$,{type:"button",onClick:t,classname:"absolute right-2 top-2 text-gray-500 hover:text-gray-700 justify-end flex items-center !pr-0","aria-label":"Close profile modal",children:(0,s.jsx)(l.default,{src:e,alt:"",width:60,height:60,className:"mr-[-6px] rounded-full",unoptimized:!0})}),(0,s.jsxs)("div",{className:"cs-text flex flex-col mt-16",children:[(0,s.jsxs)("div",{className:"cs-
1h3 self-stretch justify-center text-neutral-900 dark:text-white pl-6 pb-6",children:[(0,s.jsx)("div",{children:i?.title}),(0,s.jsxs)("div",{children:[`${window.dbagFirstName} ${window.dbagLastName}`," "]})]}),(0,s.jsxs)("div",{className:"self-stretch justify-center pl-6 pb-6",children:[(0,s.jsx)("span",{className:"text-neutral-900 dark:text-white",children:i?.as}),(0,s.jsxs)("span",{className:"text-neutral-900 dark:text-white font-medium",children:[` ${n}`," User"]})]}),r?.map((e,t)=>{let r=e.url,a=r.startsWith("/")?r:`/${r}`;return"Logout"===e.title?(0,s.jsx)("div",{className:"pr-6 pl-6 pt-6 border-t border-neutral-900/10",children:(0,s.jsx)(u.A,{className:"cs-text w-full",href:a,btnStyle:"secondary",text:e.title,standardLink:!0})},t):(0,s.jsxs)("a",{href:a,className:"cs-text block relative pr-6 pl-6 py-[16px] text-black dark:text-white border-t border-neutral-900/10 hover:bg-gradient-to-r hover:from-[#245ca6] hover:to-[#00a5c0] hover:text-white",children:[e.title,(0,s.jsx)(l.default,{src:"/asset/right_arrow_black.svg",alt:"",width:10,height:20,className:"absolute profileLayout dark:invert",unoptimized:!0})]},t)})]})]})})}var m=r(4915);let x=async e=>{let{resetPassword:t}=await r.e(219).then(r.bind(r,7219));return t(e)},h=({data:e,closeLogo:t,onClose:r})=>(0,s.jsx)("div",{className:"bg-white sm:w-96 w-auto border border-gray-300 rounded-[35px] flex flex-col items-center pt-10 backdrop-blur-xl bg-white/65 dark:bg-dark_primary/65",children:(0,s.jsxs)("div",{className:"flex flex-col px-2",children:[(0,s.jsx)("button",{type:"button",onClick:()=>r?.(!1),className:"text-gray-500 hover:text-gray-700 text-lg justify-end flex items-center -mt-7 mr-2","aria-label":"Close Password Update Flyout",children:(0,s.jsx)(l.default,{src:t,alt:"",width:48,height:48,className:"h-12 w-12 lg:mr-0 rounded-full",unoptimized:!0})}),(0,s.jsx)("div",{className:"flex justify-center w-full",children:(0,s.jsx)(l.default,{src:"/asset/lockIcon.svg",alt:"",width:48,height:48,className:"h-24 w-20 lg:mr-0",unoptimized:!0})}),(0,s.jsx)("div",{className:"cs-h3 w-full mb-7 pt-8 pl-6 self-start",children:e?.title}),(0,s.jsx)("pre",{className:"cs-text sm:w-96 w-auto sm:pl-7 pl-0 whitespace-pre-line mb-7 sm:pr-2 md:pr-4",children:e?.text.replace(/<\/?p[^>]*>/g,"\n").trim()})]})}),f=({closeLogo:e,onClose:t,data:r})=>(0,s.jsx)("div",{className:"bg-white sm:w-96 w-auto border border-gray-300 rounded-[35px] flex flex-col items-center pt-10 backdrop-blur-xl bg-white/65 dark:bg-dark_primary/65",children:(0,s.jsxs)("div",{className:"flex flex-col px-2",children:[(0,s.jsx)("button",{type:"button",onClick:()=>t?.(!1),className:"text-gray-500 hover:text-gray-700 text-lg justify-end flex items-center -mt-7 mr-2","aria-label":"Close Password Expire Flyout",children:(0,s.jsx)(l.default,{src:e,alt:"",width:48,height:48,className:"h-12 w-12 lg:mr-0 rounded-full",unoptimized:!0})}),(0,s.jsx)("div",{className:"flex justify-center w-full",children:(0,s.jsx)(l.default,{src:"/asset/password-expire-icon.svg","aria-label":"Password Expire Icon",alt:"Password Expire Icon",width:48,height:48,className:"h-24 w-20 lg:mr-0",unoptimized:!0})}),(0,s.jsx)("div",{className:"cs-h3 w-full mb-7 pt-8 pl-6 self-start",children:r?.title}),(0,s.jsx)("pre",{className:"cs-text sm:w-96 w-auto sm:pl-7 pl-0 whitespace-pre-line mb-7 sm:pr-2 md:pr-4",children:function(e){let t=document.createElement("textarea");t.innerHTML=e;let r=t.value.split(/(<b>|<\/b>)/gi),a=[],l=!1;for(let e of r)"<b>"===e.toLowerCase()?l=!0:"</b>"===e.toLowerCase()?l=!1:a.push((0,s.jsx)("span",{className:l?"font-bold":"",children:e},a.length));return a}(r?.text||"")})]})}),w=({pwForgotten:e,onClose:t,closeLogo:r})=>{let[i,o]=(0,a.useState)({password:"",repeatedPw:"",company:""}),[n,c]=(0,a.useState)({}),[u,p]=(0,a.useState)(null),[w,g]=(0,a.useState)(!1),[b,v]=(0,a.useState)(!1),[j,y]=(0,a.useState)(!1),k=t=>{let{name:r,type:s,value:a}=t.target,l="checkbox"===s&&t.target instanceof HTMLInputElement?t.target.checked:a;o(e=>({...e,[r]:l}));let n=null;switch(r){case"password":n=(0,m.Oj)(a,e?.step2?.fields?.password1?.error);break;case"repeatedPw":a!==i.password&&(n=e?.step2?.fields?.password2?.error||"password must match")}c(e=>({...e,[r]:n||void 0}))},N=()=>{let e=Object.values(n).some(Boolean),t=i.password.trim()&&i.repeatedPw.trim();return!e&&!!t},L=async()=>{let t={password:(0,m.Oj)(i.password,e?.step2?.fields?.password1?.error)||void 0,repeatedPw:i.password!==i.repeatedPw?e?.step2?.fields?.password2?.error:void 0};if(c(t),!Object.values(t).some(Boolean))try{let t=(0,m.K0)(i.password),r=(0,m.K0)(i.repeatedPw),s=await x({password:t,repeatedPw:r,company:i.company});if(!s.success){let t;
1if("HONEYPOT_TRIGGERED"===s.code)t=null;else{if(400===s.statusCode)return void v(!0);t=e?.internalServerError||"Something went wrong. Please try again later."}p(t);return}p(null),C()}catch(t){p(t instanceof Error?t.message:e?.internalServerError||"An unexpected error occurred.")}},C=()=>{g(!0),y(!0)};return b&&!j&&e?.step2error?(0,s.jsx)(f,{closeLogo:r,onClose:()=>{v(!1),t&&t()},data:e?.step2error}):w&&e?.step2success?(0,s.jsx)(h,{data:e?.step2success,closeLogo:r,onClose:()=>{y(!1),g(!1),t&&t()}}):(0,s.jsx)("div",{className:"sm:w-96 w-auto rounded-[35px] backdrop-blur-xl text-black bg-white/65 dark:bg-dark_primary/65",children:(0,s.jsxs)("div",{className:"flex flex-col px-2",children:[(0,s.jsx)("button",{type:"button",onClick:t,className:"text-gray-500 hover:text-gray-700 text-lg justify-end flex items-center mt-3 mb-","aria-label":"Close Reset Password form",children:(0,s.jsx)(l.default,{src:r,alt:"",width:48,height:48,className:"h-12 w-12 lg:mr-0 rounded-full",unoptimized:!0})}),(0,s.jsxs)("div",{className:"flex flex-col sm:w-full sm:h-full w-auto h-auto px-4 pt-2 space-y-5 sm:mr-0 mr-8",children:[(0,s.jsx)("div",{className:"flex justify-center w-full",children:(0,s.jsx)(l.default,{src:"/asset/reset-passwordIcon.svg",alt:"lock Icon",width:48,height:48,className:"h-[85px] w-[75px] lg:mr-0",unoptimized:!0})}),(0,s.jsx)("div",{className:"cs-h3 dark:text-white sm:pl-0 pl-6",children:e?.step2?.title}),u&&(0,s.jsx)("div",{className:"cs-text mb-5 px-4 py-1.5 bg-red-600 rounded-xl text-center text-white",children:u}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"password",className:"cs-text block mb-2 font-bold dark:text-white/50 text-neutral-900/50",children:e?.step2?.fields?.password1?.label}),(0,s.jsxs)("div",{className:n?.password&&"rounded-xl bg-red-600 p-0.5 -m-0.5",children:[(0,s.jsx)("input",{type:"password",id:"password",name:"password",className:"cs-text border-none dark:text-white dark:bg-dark_secondary dark:placeholder:text-dark_placeholder focus:outline-none focus:ring-0 w-full p-4 rounded-xl",placeholder:e?.step2?.fields?.password1?.placeholder,value:i.password,onChange:k}),n.password&&(0,s.jsx)("p",{className:"cs-text text-white px-4 py-1",children:n.password})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"confirmPassword",className:"cs-text block mb-2 font-bold dark:text-white/50 text-neutral-900/50",children:e?.step2?.fields?.password2?.label}),(0,s.jsxs)("div",{className:n?.repeatedPw&&"rounded-xl bg-red-600 p-0.5 -m-0.5",children:[(0,s.jsx)("input",{type:"password",id:"confirmPassword",name:"repeatedPw",className:"cs-text border-none dark:text-white dark:bg-dark_secondary dark:placeholder:text-dark_placeholder focus:outline-none focus:ring-0 w-full p-4 rounded-xl",placeholder:e?.step2?.fields?.password2?.placeholder,value:i.repeatedPw,onChange:k}),n.repeatedPw&&(0,s.jsx)("p",{className:"cs-text text-white px-4 py-1",children:n.repeatedPw})]})]}),(0,s.jsx)("input",{type:"text",name:"company",value:i.company||"",onChange:k,style:{display:"none"},autoComplete:"off",tabIndex:-1}),(0,s.jsxs)("div",{className:"cs-text flex flex-col w-full space-y-2 text-left sm:pl-0 pl-6",children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"text-gray-400 pr-3 font-bold",children:"â"}),e?.step2?.fields?.pwRequirement1]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"text-gray-400 pr-3 font-bold",children:"â"}),e?.step2?.fields?.pwRequirement2]})]}),(0,s.jsx)("div",{className:"flex justify-between w-full",children:(0,s.jsxs)("div",{className:"w-full mb-8 flex gap-2 justify-between",children:[(0,s.jsxs)(d.$,{classname:"w-1/2 bg-gray-300 flex rounded-full hover:bg-black group pr-2 sm:gap-0 gap-1 sm:pl-3 pl-4",onClick:()=>{o({password:"",repeatedPw:"",company:""}),c({}),p(null)},children:[(0,s.jsx)("span",{className:"cs-text text-black group-hover:text-white",children:e?.step2?.buttons?.cancel}),(0,s.jsxs)("span",{className:"relative bg-arrow bg-arrow-black flex justify-center items-center shrink-0 cursor-pointer rounded-full w-10 h-10 group-hover:bg-white",children:[(0,s.jsx)(l.default,{src:"/asset/arrow-right-white.svg",alt:"",width:18,height:14,className:"absolute transition-opacity opacity-100 group-hover:opacity-0",unoptimized:!0}),(0,s.jsx)(l.default,{src:"/asset/arrow-right-dark.svg",alt:"",width:16,height:14,className:"absolute transition-opacity opacity-0 group-hover:opacity-100",unoptimized:!0})]})]}),(0,s.jsxs)(d.$,{classname:`w-1/2 flex rounded-full pr-2 sm:gap-0 gap-3 ${N()?"bg-gradient-primary":"bg-gray-500 cursor-not-allowed"}`,onClick:L,disabled:!N(),children:[(0,s.jsx)("span",{className:"cs-text text-white",children:e?.
1step2?.buttons?.submit}),(0,s.jsxs)("span",{className:"relative bg-arrow bg-arrow-black flex justify-center items-center shrink-0 cursor-pointer rounded-full w-10 h-10 group-hover:bg-white",children:[(0,s.jsx)(l.default,{src:"/asset/arrow-right-white.svg",alt:"",width:18,height:14,className:"absolute transition-opacity opacity-100 group-hover:opacity-0",unoptimized:!0}),(0,s.jsx)(l.default,{src:"/asset/arrow-right-dark.svg",alt:"",width:16,height:14,className:"absolute transition-opacity opacity-0 group-hover:opacity-100",unoptimized:!0})]})]})]})})]})]})})};var g=r(3551),b=r(3667),v=r(4293),j=r(65),y=r(2465);let k=({regSuccessLogo:e,bulletLogo:t,closeLogo:r,groupLogo:d,brandLogo:c,brandLogoDark:u,pdfLogo:m,searchLogo:x,userLogo:h,userLogoAlt:k,resourceLibraryLabel:N,resourceLibraryLink:L,searchLink:C,searchActionId:S,searchPlaceholderText:E,onGroupLogoClick:T,myCS:$,recaptchaSiteKey:P})=>{let[_,z]=(0,a.useState)(!1),[I,R]=(0,a.useState)(!1),[D,F]=(0,a.useState)(!1),[O,A]=(0,a.useState)(!1),[K,H]=(0,a.useState)(!1),[B,M]=(0,a.useState)(!1),[U,X]=(0,a.useState)(!1),[q,G]=(0,a.useState)(!1),[V,Y]=(0,a.useState)(!1),[W,Q]=(0,a.useState)(!1),[J,Z]=(0,a.useState)(""),[ee,et]=(0,a.useState)([]),[er,es]=(0,a.useState)(!1),[ea,el]=(0,a.useState)(null),[ei,eo]=(0,a.useState)(!1),[en,ed]=(0,a.useState)(!1);(0,a.useEffect)(()=>{async function e(){try{let e=await fetch("/api/auth/isResettoken"),t=await e.json(),r=sessionStorage.getItem("resetFlyoutDismissed");if("true"===r)return;t.isResetTokenValid?G(!0):t.isResetTokenExpired?Y(!0):t.isResetToken500&&Q(!0)}catch(e){console.error("Failed to check reset password status",e)}}function t(){A(window.dbagIsLoggedIn),H(window.dbagIsLoggedIn),X(!0)}let r=setTimeout(()=>{e()},100);return window.addEventListener("after-check-user",t),()=>{clearTimeout(r),window.removeEventListener("after-check-user",t)}},[]);let ec=()=>{sessionStorage.setItem("resetFlyoutDismissed","true"),G(!1),Y(!1),Q(!1),z(!1),F(!1)},eu=()=>{z(!1),R(!1),F(!1),A(!1)},ep=()=>{let e=setTimeout(async()=>{if(!J)return void et([]);es(!0),eo(!0);try{let e=await (0,g.i)(J,S);et(e.suggestions),e.error?el(e.error):el(null)}catch(e){et([])}finally{es(!1)}},300);return()=>{clearTimeout(e)}};(0,a.useEffect)(()=>ep(),[J]);let em=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(em)return(0,b.C)([em],ei,eo)},[ei]),(0,a.useEffect)(()=>{if(em)return(0,b.C)([em],en,ed)},[en]);let ex=e=>{e?.preventDefault();let t=window.innerWidth>1280;return t||en?window?.open(`/${C}?searchQuery=${encodeURIComponent(J)}`,"_self"):t||ed(!0),{}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("header",{className:"relative xl:max-w-[1500px] max-w-full w-full max-h-[70px] w-full p-2 items-center rounded-full border border-black/10 bg-white backdrop-blur-sm justify-between dark:bg-dark_primary",role:"banner",children:(0,s.jsxs)("div",{className:"relative w-full flex",children:[(0,s.jsxs)("div",{className:`${en?"pl-2":""} flex w-full justify-start items-center mb-0 gap-2 md:gap-0`,children:[(0,s.jsx)("button",{className:"cursor-pointer",onClick:T,"aria-label":"Open navigation",children:(0,s.jsx)(l.default,{src:d,alt:"",width:50,height:50,className:"shrink-0 h-[50px] w-[50px] mr-0 md:mr-7",unoptimized:!0})}),(0,s.jsxs)(y.default,{button:!1,href:v.K.CONTEXT,children:[c&&(0,s.jsx)(j.default,{url:c,alt:"Brand logo",className:"w-40 h-6 md:w-[233px] lg:w-[283px] sm:h-12 shrink-0 dark:hidden",fetchPriority:"high"}),u&&(0,s.jsx)(j.default,{url:u,alt:"Brand logo",className:"w-40 h-6 md:w-[233px] lg:w-[283px] sm:h-12 shrink-0 hidden dark:block",fetchPriority:"high"})]})]}),(0,s.jsxs)("div",{className:"flex justify-end items-center gap-2",children:[(0,s.jsx)("div",{className:"hidden md:flex text-right text-gray-900 whitespace-nowrap items-center flex cursor-pointer pr-6 dark:text-white",children:(0,s.jsxs)(y.default,{button:!1,className:"cs-text flex justify-center items-center",href:L,children:[N,(0,s.jsx)(l.default,{src:m,alt:"",width:16,height:16,className:"w-4 h-5 ml-4 dark:invert",unoptimized:!0})]})}),(0,s.jsxs)("div",{className:`${en?"absolute w-full":""} xl:relative w-[50px] xl:w-[500px] h-[50px] px-4 py-4 bg-zinc-100 dark:bg-dark_secondary rounded-full flex justify-start items-center`,ref:em,children:[(0,s.jsx)("input",{type:"text",className:`${en?"":"hidden"} cs-text xl:block flex-1 justify-center font-normal dark:text-white dark:bg-dark_secondary dark:placeholder:text-dark_placeholder placeholder:text-gray-900 border-none focus:outline-none focus:ring-0 bg-zinc-100 p-0 backdrop-blur-xl`,placeholder:E,onChange:e=>Z(e.target.value),onFocus:e=>ep(),onKeyDown:e=>{"Enter"===e.key?ex():"Escape"==e.key&&(Z(""),eo(!1),ed(!1))}}),(0,s.jsx)("button",{className:"justify-center items-center cursor-pointer min-w-[18px]","aria-label":"Submit search",onClick:ex,children:(0,s.jsx)(l.default,{src:"/asset/searchLogo.svg",className:"dark:invert",alt:"",width:18,height:18,unoptimized:!0})}),ei&&er&&(0,s.jsx)("div",{className:"absolute left-0 top-0 top-full mt-1 w-full shadow-lg rounded-2xl z-10 overflow-hidden bg-white dark:bg-dark_primary",children:(0,s.jsx)("span",{className:"cs-text py-4 px-9 hover:bg-gray-100 dark:hover:bg-dark_secondary cursor-pointer text-gray-900 dark:text-white flex flex-row items-center",children:"Loading..."})}),ei&&ea&&(0,s.jsx)("div",{className:"absolute left-0 top-0 top-full mt-1 w-full shadow-lg rounded-2xl z-10 overflow-hidden bg-white dark:bg-dark_primary",children:(0,s.jsx)("span",{className:"cs-text py-4 px-9 hover:bg-gray-100 dark:hover:bg-dark_secondary cursor-pointer text-gray-900 dark:text-white flex flex-row items-center",children:ea})}),ei&&ee?.length>0&&!er&&(0,s.jsx)("ul",{className:"cs-text absolute left-0 top-0 top-full mt-1 w-full shadow-lg rounded-2xl z-10 overflow-hidden bg-white dark:bg-dark_primary",children:ee?.map((e,t)=>(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:`/${C}?searchQuery=${encodeURIComponent(e.value)}`,className:"inline-flex py-4 px-9 w-full flex flex-row items-center hover:bg-gray-100 dark:hover:bg-dark_secondary cursor-pointer text-gray-900 dark:text-white",children:[(0,s.jsx)(l.default,{src:x||"/asset/searchLogo.svg",alt:"",width:16,height:16,className:"w-4 h-4 dark:invert",unoptimized:!0}),(0,s.jsx)("span",{className:"px-4 font-medium",children:e.value}),(0,s.jsxs)("span",{children:["(",e.count,")"]})]})},`${e.value}-${t}`))})]}),(0,s.jsx)("button",{className:"flex justify-center h-[50px] w-[50px] items-center shrink-0 bg-zinc-100 dark:bg-dark_secondary rounded-full","aria-label":"Open user profile",type:"button",id:"user-profile-button",onClick:()=>{U&&(O&&K?M(!0):z(!0))},children:(0,s.jsx)(l.default,{src:h,alt:"",width:16,height:18,className:"rounded-full dark:invert",unoptimized:!0})})]})]})}),B&&K&&(0,s.jsx)("div",{className:"absolute top-0 right-0 z-[99999]",children:(0,s.jsx)(p,{onClose:()=>{A(!0),z(!1),M(!1),R(!1),F(!1)},loggedInData:$?.loggedin,profileFlyoutData:$?.navigation,closeLogo:r})}),q&&(0,s.jsx)("div",{className:"absolute top-0 right-0 z-[99999]",children:(0,s.jsx)(w,{pwForgotten:$?.pwForgotten,onClose:ec,closeLogo:r})}),V&&$?.pwForgotten?.step2error&&(0,s.jsx)("div",{className:"absolute top-0 right-0 z-[99999]",children:(0,s.jsx)(f,{data:$?.pwForgotten?.step2error,onClose:ec,closeLogo:r})}),W&&$?.pwForgotten?.step2error500&&(0,s.jsx)("div",{className:"absolute top-0 right-0 z-[99999]",children:(0,s.jsx)(f,{data:$?.pwForgotten?.step2error500,onClose:ec,closeLogo:r})}),_&&!q&&!V&&!W&&(0,s.jsx)("div",{className:"absolute w-full md:w-3/5 lg:w-[435px] xl:w-[435px] backdrop-blur-xl right-0 top-0 z-[99999] p-4 shadow-2xl rounded-[35px] max-w-[435px] bg-white/65 dark:bg-dark_primary/65",children:I||O?I&&!D?(0,s.jsx)(i.A,{bulletLogo:t,closeLogo:r,onBack:()=>{R(!1),F(!1)},onClose:eu,onSuccess:()=>{F(!0),G(!1)},registrationData:$?.register,recaptchaSiteKey:P}):(0,s.jsx)(n.A,{closeLogo:r,regSuccessLogo:e,onClose:eu,registrationSuccessData:$?.registerCompleted}):(0,s.jsx)(o.A,{onOpenRegistration:()=>R(!0),onClose:eu,onSuccess:()=>{A(!0),z(!1),M(!0),H(!0)},loginData:$?.login,closeLogo:r,pwForgotten:$?.pwForgotten,isFormOpen:_,recaptchaSiteKey:P})})]})};var N=r(8296),L=r(2125),C=r(5695),S=r(2140);let E=({groupLogo:e,onClose:t,navigationData:r})=>{let[i,o]=(0,a.useState)(null),[n,d]=(0,a.useState)(null),[c,u]=(0,a.useState)(null),p=(0,N.Ub)({minWidth:1280}),m=(0,C.useRouter)(),x=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=e=>{x.current&&!x.current.contains(e.target)&&t()};return document.addEventListener("mousedown",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("focusin",e)}},[]);let h=e=>{i===e?o(null):(o(e),d(null),u(null))},f=e=>{n===e?d(null):(d(e),u(null))},w=e=>{c===e?u(null):u(e)};return(0,s.jsxs)("div",{"data-testid":"navigation-menu",ref:x,className:`flex flex-col md:flex-row max-h-full rounded-[35px] md:rounded-[30px] border border-neutral-900/10 bg-white/65 dark:bg-dark_primary/65 backdrop-blur-xl ${i?"md:w-[355px] xl:w-full":"w-full md:w-[355px] xl:w-[413px]"}`,children:[(0,s.jsxs)("div",{className:`flex flex-col rounded-[35px] md:rounded-[30px] ${i?" w-full xl:w-1/3":"w-full max-w-[413px]"}`,children:[(0,s.jsx)("button",{onClick:t,className:"p-2","aria-label":"Close drawer",children:(0,s.jsx)(l.default,{src:e,alt:"",width:48,height:48,className:"shrink-0 h-12 w-12 mr-10 md:mr-7",unoptimized:!0})}),p?(0,s.jsx)("div",{children:r?.navigation.map((e,r)=>(0,s.jsx)("div",{children:e.mainLevel2&&e.mainLevel2.length>0?(0,s.jsxs)("button",{onClick:()=>{h(e.title)},"data-testid":`nav-section-${e.title}`,"aria-expanded":i===e.title?"true":"false","aria-controls":`drawer-section-${e.title}`,className:`w-full flex justify-between items-center gap-2 text-left px-5 xl:px-10 py-[30px] xl:py-[40px] border-b-2 ${i===e.title?"border-gray-900 dark:border-white/70":"border-neutral-900/10 hover:border-gray-900 dark:border-white/40 dark:hover:border-white/70"}
1 cursor-pointer`,children:[(0,s.jsx)("span",{className:"cs-h3 text-gray-900 dark:text-white",onClick:()=>{m.push(`/${e.url}`),t()},children:e?.title}),(0,s.jsx)(l.default,{src:"/asset/nav-arrow.svg",alt:"Dropdown arrow",className:"dark:invert",width:11,height:9,onClick:()=>{h(e.title)}})]}):(0,s.jsxs)("a",{"data-testid":`nav-link-${e.title}`,href:"/"+e.url,className:"w-full flex justify-between items-center text-left gap-2 px-5 xl:px-10 py-[30px] xl:py-[40px] border-b-2 border-neutral-900/10 cursor-pointer dark:border-white/40 dark:hover:border-white/70 hover:border-gray-900","aria-label":`Navigate to ${e.title}`,children:[(0,s.jsx)("span",{className:"cs-h3 text-gray-900 dark:text-white",children:e?.title}),(0,s.jsx)(l.default,{src:"/asset/nav-arrow.svg",alt:"",className:"dark:invert",width:11,height:9})]})},e.title+r))}):(0,s.jsx)("div",{className:"flex flex-col",children:r?.navigation.map((e,r)=>(0,s.jsxs)("div",{children:[e.mainLevel2&&e.mainLevel2.length>0?(0,s.jsx)("button",{onClick:()=>{h(e.title)},"data-testid":`nav-section-${e.title}`,"aria-expanded":i===e.title?"true":"false","aria-controls":`subnav-${e.title}`,className:`w-full text-left flex justify-between items-center px-[20px] py-[30px] border-b-2 rounded-none ${i===e.title?"border-neutral-900 dark:border-white/70":"border-neutral-900/10 hover:border-neutral-900 dark:border-white/40 dark:hover:border-white/70"} cursor-pointer`,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"text-gray-900 dark:text-white",onClick:()=>{m.push(`/${e.url}`),t()},children:e.title}),(0,s.jsx)("span",{onClick:()=>{h(e.title)},children:i===e.title?(0,s.jsx)(l.default,{src:S.A,alt:"Dropdown arrow",className:"dark:invert",width:11,height:11}):(0,s.jsx)(l.default,{src:"/asset/accordion-arrow.svg",alt:"Dropdown arrow",className:"dark:invert",width:11,height:11})})]})}):(0,s.jsxs)("a",{"data-testid":`nav-link-${e.title}`,href:"/"+e.url,className:"w-full text-left flex justify-between items-center px-[20px] py-[30px] border-b-2 border-neutral-900/10 hover:border-gray-900 dark:border-white/40 dark:hover:border-white/70",children:[(0,s.jsx)("span",{className:"text-gray-900 dark:text-white",children:e.title}),(0,s.jsx)("span",{children:i===e.title?(0,s.jsx)(l.default,{src:S.A,alt:"Dropdown arrow",className:"dark:invert",width:11,height:11}):(0,s.jsx)(l.default,{src:"/asset/accordion-arrow.svg",alt:"Dropdown arrow",className:"dark:invert",width:11,height:11})})]}),i===e.title&&(0,s.jsx)("div",{id:`subnav-${e.title}`,role:"region","aria-labelledby":`nav-section-${e.title}`,children:e.mainLevel2?.map((r,a)=>(0,s.jsxs)("div",{children:[r.mainLevel3&&r.mainLevel3.length>0?(0,s.jsxs)("button",{onClick:()=>{f(r.title)},"aria-expanded":n===r.title?"true":"false","aria-controls":`subsubnav-${r.title}`,className:`w-full text-left flex justify-between items-center px-[30px] py-[16px] border-b-2 ${n===r.title?"border-neutral-900 dark:border-white/70":"border-neutral-900/10 hover:border-neutral-900 dark:border-white/40 dark:hover:border-white/70"} cursor-pointer `,children:[(0,s.jsx)("span",{className:"text-gray-600 dark:text-white",onClick:()=>{m.push(`/${r.url}`),t()},children:r.title}),(0,s.jsx)("span",{className:"text-gray-600 dark:text-white",onClick:()=>{f(r.title)},children:n===r.title?(0,s.jsx)(l.default,{src:S.A,alt:"Dropdown arrow",className:"dark:invert",width:11,height:11}):(0,s.jsx)(l.default,{src:"/asset/accordion-arrow.svg",alt:"Dropdown arrow",className:"dark:invert",width:11,height:11})})]}):(0,s.jsxs)("a",{href:"/"+r.url,className:"w-full text-left flex justify-between items-center px-[30px] py-[16px] border-b-2 border-neutral-900/10 hover:border-gray-900 dark:border-white/40 dark:hover:border-white/70",children:[(0,s.jsx)("span",{className:"text-gray-600 dark:text-white",children:r.title}),(0,s.jsx)("span",{children:n===r.title?(0,s.jsx)(l.default,{src:S.A,alt:"Dropdown arrow",className:"dark:invert",width:11,height:11}):(0,s.jsx)(l.default,{src:"/asset/accordion-arrow.svg",alt:"Dropdown arrow",className:"dark:invert",width:11,height:11})})]}),n===r.title&&(0,s.jsx)("div",{id:`subsubnav-${r.title}`,role:"region","aria-labelledby":`nav-section-${e.title}`,children:r.mainLevel3?.map((e,t)=>(0,s.jsx)("a",{href:"/"+e.url,className:"block px-[60px] py-[16px] border-b-2 border-neutral-900/10 text-gray-600 dark:text-white hover:border-gray-900 dark:border-white/40 dark:hover:border-white/70",children:e.title},e.title+t))})]},r.title+a))})]},e.title+r))}),r?.metaNav&&(0,s.jsx)("div",{className:"pt-[30px] xl:pt-[40px] pb-[60px] ",children:r?.metaNav.map((e,t)=>(0,s.jsx)("a",{"data-testid":`meta-nav-link-${e.title}`,href:"/"+e.url,className:"flex justify-between items-center px-5 xl:px-10 pb-[30px] ","aria-label":`Navigate to ${e.title}`,children:(0,s.jsx)("span",{className:"cs-text text-gray-900",children:e?.title})},e.title+t))})]}),p&&(0,s.jsx)("div",{className:`${i?"w-full":"hidden"} border rounded-none rounded-r-[30px] border-neutral-900/10 `,children:(0,s.jsx)("div",{className:"flex flex-col rounded-[30px] w-full h-full",children:i&&r?.navigation.filter(e=>e.title===i).map(e=>(0,s.jsx)("div",{className:"h-full rounded-[30px] ",children:(e=>(0,s.jsxs)("div",{className:"flex flex-row h-full justify-between rounded-[30px]",children:[(0,s.jsx)("div",{className:"w-1/3 h-full border-r border-neutral-900/10",children:e.mainLevel2&&e.mainLevel2.length>0?e.mainLevel2.map((e,r)=>(0,s.jsx)("div",{children:e.mainLevel3&&e.mainLevel3.length>0?(0,s.jsxs)("button",{onClick:()=>{f(e.title)},"aria-expanded":n===e.title?"true":"false","aria-controls":`subnav-${e.title}`,className:`w-full flex justify-between items-center gap-2 text-left pl-5 pr-5 xl:pr-12 py-[19.4px] border-b-[1px] ${n===e.title?"border-gray-900 dark:border-white/70":"border-neutral-900/10 hover:border-gray-900 dark:border-white/40 dark:hover:border-white/70"} cursor-pointer`,children:[(0,s.jsx)("span",{className:"cs-text text-gray-900 dark:text-white",onClick:()=>{m.push(`/${e.url}`),t()},children:e.title}),(0,s.jsx)(l.default,{src:"/asset/nav-arrow.svg",alt:"Dropdown arrow",className:"dark:invert",width:11,height:9,onClick:()=>{f(e.title)}})]}):(0,s.jsx)("a",{href:"/"+e.url,className:"w-full flex justify-between items-center pl-5 pr-5 xl:pr-12 py-[19.4px] border-b-[1px] border-neutral-900/10 cursor-pointer hover:border-gray-900 dark:border-white/40 dark:hover:border-white/70",children:(0,s.jsx)("span",{className:"cs-text text-gray-900 dark:text-white",children:e.title})})}
1,e.title+r)):(0,s.jsx)("a",{href:"/"+e.url,className:"w-full flex justify-between items-center pl-5 pr-5 xl:pr-12 py-[19.4px] border-b-[1px] border-neutral-900/10 cursor-pointer hover:border-gray-900","aria-label":`Navigate to ${e.title}`,children:(0,s.jsx)("span",{className:"cs-h3 text-gray-900",children:e.title})})}),n&&(0,s.jsx)("div",{className:"w-1/3 border-l border-neutral-900/10",children:e.mainLevel2&&e.mainLevel2.filter(e=>e.title===n).map((e,r)=>e.mainLevel3&&e.mainLevel3.length>0?e.mainLevel3.map((e,r)=>(0,s.jsx)("div",{children:e.mainLevel3&&e.mainLevel3.length>0?(0,s.jsxs)("button",{onClick:()=>{w(e.title)},"aria-expanded":c===e.title?"true":"false","aria-controls":`subsubnav-${e.title}`,className:`w-full flex justify-between items-center gap-2 text-left pl-5 pr-5 xl:pr-12 py-[19.4px] border-b-[1px] ${c===e.title?"border-gray-900 dark:border-white/70":"border-neutral-900/10 hover:border-gray-900 dark:border-white/40 dark:hover:border-white/70"} cursor-pointer`,children:[(0,s.jsx)("span",{className:"cs-text text-gray-900 dark:text-white",onClick:()=>{m.push(`/${e.url}`),t()},children:e.title}),(0,s.jsx)(l.default,{src:"/asset/nav-arrow.svg",alt:"",className:"dark:invert",width:11,height:9,onClick:()=>{w(e.title)}})]}):(0,s.jsx)("a",{href:"/"+e.url,className:"w-full flex justify-between items-center pl-5 pr-5 xl:pr-12 py-[19.4px] border-b-[1px] border-neutral-900/10 cursor-pointer hover:border-gray-900 dark:border-white/40 dark:hover:border-white/70","aria-label":`Navigate to ${e.title}`,children:(0,s.jsx)("span",{className:"cs-text text-gray-900 dark:text-white",children:e.title})})},e.title+r)):(0,s.jsx)("a",{href:"/"+e.url,className:"w-full flex justify-between items-center pl-5 pr-5 xl:pr-12 py-[19.4px] border-b-[1px] border-neutral-900/10 cursor-pointer hover:border-gray-900",children:(0,s.jsx)("span",{className:"cs-text text-gray-900",children:e.title})},e.title+r))}),r?.navImage[0]?.url&&i&&(0,s.jsx)("div",{className:"w-1/3 pr-2 rounded-[30px] h-full",children:r?.navImage[0]?.url&&(0,s.jsx)(j.default,{url:r?.navImage[0]?.url,alt:r?.navImage[0]?.alt||"",crops:L._,className:"h-full object-cover rounded-[30px] "})})]}))(e)},e.title))})})]})},T=({headerData:e,navigationData:t,recaptchaSiteKey:r})=>{let[l,i]=(0,a.useState)(!1);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(k,{onGroupLogoClick:()=>{i(e=>!e)},regSuccessLogo:"/asset/regSuccessIcon.svg",bulletLogo:"/asset/tickIcon.svg",closeLogo:"/asset/crossIcon.svg",userLogo:"/asset/loginIcon.svg",groupLogo:"/asset/groupLogo.svg",pdfLogo:"/asset/pdfLogo.svg",searchLogo:"/asset/searchLogo.svg",...e,recaptchaSiteKey:r}),l&&(0,s.jsx)("div",{className:"absolute top-0 left-0 w-full z-[99999]",children:(0,s.jsx)(E,{groupLogo:"/asset/groupCollapse.svg",onClose:()=>{i(!1)},navigationData:t})})]})}},6978:()=>{},6989:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var s=r(2115);let a=r(4293).K.CONTEXT;function l(){let e=(0,s.useRef)(null),[t,r]=(0,s.useState)(!1),l=()=>{e.current&&clearTimeout(e.current),e.current=setTimeout(i,6e5)},i=async()=>{try{window.location.href="/api/auth/logout"}catch(e){window.location.href=a,console.log("Failed to log out, redirecting to fallback URL:",e)}};return(0,s.useEffect)(()=>{let e=setInterval(()=>{window.dbagIsLoggedIn&&(r(!0),clearInterval(e))},500);return()=>clearInterval(e)},[]),(0,s.useEffect)(()=>{if(!t)return;let r=["mousemove","keydown","mousedown","touchstart","scroll"],s=()=>l();for(let e of r)window.addEventListener(e,s);return l(),()=>{for(let e of r)window.removeEventListener(e,s);e.current&&clearTimeout(e.current)}},[t]),null}},7086:(e,t,r)=>{"use strict";r.d(t,{GlobalModals:()=>m});var s=r(5155),a=r(2115),l=r(6766);let i=({onClose:e,closeLogo:t,title:r,text:a})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-black/40 backdrop-blur-sm z-[99999]"}),(0,s.jsx)("div",{className:"fixed inset-0 z-[99999]",children:(0,s.jsx)("div",{className:"flex items-center justify-center min-h-screen px-4 py-10",children:(0,s.jsxs)("div",{className:"bg-white rounded-3xl shadow-2xl w-full max-w-md p-6 relative backdrop-blur-xl overflow-y-auto bg-white/65 max-h-[1186px] max-w-[435px]",children:[(0,s.jsx)("button",{type:"button",onClick:e,className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700","aria-label":"Close",children:(0,s.jsx)(l.default,{src:t,alt:"",width:48,height:48,className:"rounded-full",unoptimized:!0})}),(0,s.jsx)(l.default,{src:"/asset/regSuccessIcon.svg",alt:"",width:48,height:48,className:"mx-auto mb-7 w-24 h-28 rounded-full pt-6",unoptimized:!0}
1),(0,s.jsx)("h3",{className:"cs-h3 mb-7 text-center",children:r}),(0,s.jsx)("p",{className:"cs-text text-neutral-900/50 mb-8 text-center",children:a})]})})})]});var o=r(785),n=r(4101),d=r(2116),c=r(5695),u=r(4293);let p=({myCS:e,bulletLogo:t,closeLogo:r,regSuccessLogo:l,onSuccess:i,isOpen:p,onClose:m,recaptchaSiteKey:x})=>{let[h,f]=(0,a.useState)(!1),[w,g]=(0,a.useState)(!1),b=(0,c.useRouter)(),v=()=>{m(),f(!1),g(!1)};return(0,s.jsxs)("div",{children:[p&&(0,s.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-40 backdrop-blur-sm z-[99999]"}),p&&(0,s.jsx)("div",{className:"fixed inset-0 overflow-y-auto z-[99999]",style:{scrollbarWidth:"none",msOverflowStyle:"none",overflowY:"scroll"},children:(0,s.jsx)("div",{className:"flex items-center justify-center min-h-screen px-4 py-10",children:(0,s.jsx)("div",{className:"bg-white rounded-3xl shadow-2xl w-full max-w-md p-6 backdrop-blur-xl bg-white/65 dark:bg-dark_primary/65 max-w-[435px] max-h-[1186px]",children:h||w?h&&!w?(0,s.jsx)(n.A,{bulletLogo:t,closeLogo:r,onBack:()=>{f(!1),g(!1)},onClose:v,onSuccess:()=>{g(!0)},registrationData:e?.register,recaptchaSiteKey:x}):(0,s.jsx)(d.A,{closeLogo:r,regSuccessLogo:l,onClose:v,registrationSuccessData:e?.registerCompleted}):(0,s.jsx)(o.A,{closeLogo:r,onOpenRegistration:()=>{f(!0)},onClose:v,onSuccess:()=>{if(m(),i)i();else{let e=Object.fromEntries(document.cookie.split("; ").map(e=>{let[t,...r]=e.split("=");return[t,decodeURIComponent(r.join("="))]}))[u.K.REDIRECT_PATH]||u.K.CONTEXT;b.push(e)}},loginData:e?.login,pwForgotten:e?.pwForgotten,recaptchaSiteKey:x})})})})]})},m=({myCS:e,recaptchaSiteKey:t})=>{let[r,l]=(0,a.useState)(!1),[o,n]=(0,a.useState)(null),[d,c]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{async function e(e){try{let t=await fetch("/api/auth/isLoggedin"),r=await t.json();window.dbagIsLoggedIn=r.isLoggedIn,window.dbagRole=r.role,window.dbagFirstName=r.firstName,window.dbagLastName=r.lastName,r.isLoggedIn&&e&&e.detail?.onSuccess&&e.detail?.onSuccess()}catch(e){console.error("Failed to check login status",e)}finally{window.dispatchEvent(new CustomEvent("after-check-user"))}}e();let t=e=>{n(e.detail?.target||null),l(!0)},r=()=>c(!0);return window.addEventListener("open-login-modal",t),window.addEventListener("open-permissionDenied-modal",r),window.addEventListener("check-user",e),()=>{window.removeEventListener("open-login-modal",t),window.removeEventListener("open-permissionDenied-modal",r),window.removeEventListener("check-user",e)}},[]),(0,s.jsxs)(s.Fragment,{children:[d&&(0,s.jsx)(i,{"data-testid":"permission-denied",onClose:()=>c(!1),closeLogo:"/asset/crossIcon.svg",title:e?.protected?.title,text:e?.protected?.text}),r&&(0,s.jsx)(p,{isOpen:r,onClose:()=>{l(!1),n(null)},myCS:e,onSuccess:()=>{o&&o.click()},regSuccessLogo:"/asset/regSuccessIcon.svg",bulletLogo:"/asset/tickIcon.svg",closeLogo:"/asset/crossIcon.svg",recaptchaSiteKey:t})]})}},7658:(e,t,r)=>{"use strict";r.d(t,{CookieScriptHandler:()=>o});var s=r(2115);function a(e){let t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?decodeURIComponent(t.pop().split(";").shift()):null}function l(){let e=a("CookieScriptConsentCategories");return!!e&&e.split(",").map(e=>e.trim()).includes("performance")}function i({domain:e,containerId:t}){if(!e||!t)return;let r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=`https://${e}/js/container_${t}.js`,document.head.appendChild(r);let s=document.createElement("script");s.type="text/javascript",s.innerHTML=` 2 window._mtm = window._mtm || []; 3 _mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'}); 4 `,document.head.appendChild(s)}let o=({cookieScriptUrl:e,matomoConfig:t})=>((0,s.useEffect)(()=>{let r=a("cookieAction"),s=l();if(r&&s&&t)return void i(t);if(!e)return;let o=document.createElement("script");o.src=e,o.async=!0,document.head.appendChild(o);let n=XMLHttpRequest.prototype.open;return XMLHttpRequest.prototype.open=function(e,r,s,a,o){try{let e="string"==typeof r?new URL(r,window.location.origin):r;if(e.href.includes("consent.cookie-script.com/analytics")){let r=e.searchParams.get("action"),s=e.searchParams.get("time"),a=e.searchParams.get("category");r&&s&&(document.cookie=`cookieAction=${encodeURIComponent(r)}; path=/; max-age=86400; SameSite=Lax`,document.cookie=`cookieTime=${encodeURIComponent(s)}; path=/; max-age=86400; SameSite=Lax`,"firstaccept"===r&&"performance"===a&&(document.cookie="CookieScriptConsentPerformance=true; path=/; max-age=86400; SameSite=Lax"),setTimeout(()=>{l()&&t&&i(t)},1e3))}}catch(e){console.error("Error intercepting XHR open call:",e)}return n.call(this,e,r,s??!0,a,o)},()=>{XMLHttpRequest.prototype.open=n}},[e,t]),null)},9976:()=>{}},e=>{e.O(0,[154,961,945,420,762,441,964,358],()=>e(e.s=2931)),_N_E=e.O()}]);
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.