"use strict";(self.heliuxModules=self.heliuxModules||[]).push([[4253],{67941:(e,t,n)=>{n.d(t,{P:()=>a});var i=n(2371),r=n(24036),o=n(92220);const a=e=>{if(!e)return null;const t={};Object.keys(e).forEach((n=>{t[n]=e[n].substring(4)}));const n=(0,i.KA)(r.v.storeName);return(0,o.A)(t,n)}},63645:(e,t,n)=>{n.d(t,{XL:()=>g,Zx:()=>m,g:()=>o,jk:()=>f,sU:()=>h,sh:()=>d,t6:()=>l,y7:()=>c});var i=n(87587),r=n(88760);const o=()=>window[i.CU],a=()=>(o()||{}).isEnabled,s=()=>!a(),c=()=>a()?o():null,u=(e=25e3)=>new Promise((t=>{const n=o();return s()?t(null):n.isInit?t(n):(0,r.fm)(window,"CIAM",e).then((n=>null===n?null:(0,r.fm)(n,"isInit",e).then((e=>t(e))).catch((()=>t(null))))).catch((()=>t(null)))})),l=async()=>u(),d=async()=>{const e=await u();return e?(e.isReady||await e.onReady(12e4),e):null},m=()=>{const e=c();return e?e.account:null},h=async()=>{if(s())return null;return await(async()=>{const e=await l();return e?e.account:null})()||(async()=>{const e=await d();return e?e.account:null})()},g=async()=>{const e=await d();if(!e)return null;const t=await e.getRefreshedTokenWithFallback();return t?`Bearer ${t}`:null},f=async()=>!!await h()},87696:(e,t,n)=>{n.d(t,{M:()=>i,Z:()=>r});const i=e=>{if(!e)return null;const{username:t,idTokenClaims:n={},localAccountId:i,homeAccountId:r}=e,{name:o,given_name:a,family_name:s,preferred_username:c,email:u,email_verified:l,customer_id:d,customer_id_verified:m,organisation_name:h,auth_time:g,exp:f,iat:p,roles:w}=n;return{account:{email:u,username:t||c,name:e.name||o,firstName:a,lastName:s,organisationName:h,roles:w,localAccountId:i,homeAccountId:r,customerId:d,customerIdVerified:m,emailVerified:l},idToken:{isExpired:1e3*f<Date.now(),authTime:g,expirationTime:f,issuedAt:p}}},r=(e,t)=>JSON.stringify(e)!==JSON.stringify(t)},52060:(e,t,n)=>{n.d(t,{o:()=>i});const i=(e={width:500,height:100})=>{const{width:t,height:n}=e,i=document.documentElement.clientWidth,r=document.documentElement.clientHeight,o=void 0!==e.top?e.top:r-n-50;return{popupPosition:{left:void 0!==e.left?e.left:(i-t)/2,top:o},popupSize:{width:t,height:n}}}},7873:(e,t,n)=>{n.d(t,{v:()=>i});const i={login:"ciam::login::start",silentLogin:"ciam::silentLogin::start",logout:"ciam::logout::start",register:"ciam::register::start",profile:"ciam::get::profile",delete:"ciam::delete::start",resendVerificationEmail:"ciam::resendVerificationEmail::start",token:"ciam::get::token",apiInit:"ciam::api::init",apiready:"ciam::api::ready",userReady:"user.ready",userLoggedIn:"ciam:user:loggedin",userLoggedInBasic:"ciam:user:loggedin:basic",userLoginError:"ciam:user:loggedin:error",userLoggedOut:"ciam:user:loggedout",userLogoutError:"ciam:user:loggedout:error",userAccountRefreshed:"ciam:user:account:refreshed",reRenderOnAccountRefreshed:"reRender::on::accountRefreshed",userTokenRefreshed:"ciam:user:token:refreshed",notification:"notifications::message",taxExemptionOnSubmit:"ciam:user:taxexemption:on:submit",optOut:"ciam::optout::start"}},80648:(e,t,n)=>{n.d(t,{u:()=>i});class i{constructor(e=()=>{},t=()=>{}){this.decodeAuthToken=t,this.getDeserializedHash=e}getAccountFromHash(){const e=this.getTokenHint();return e?this.decodeToken(e)||{}:null}getHashParams(){const e=new URL(window.location.href);return e.hash?this.getDeserializedHash(e.hash):{}}getTokenHint(){return(this.getHashParams()||{}).id_token}getErrorMessage(){const e=this.getHashParams()||{},t=e.error_description,n=e.error;return n&&t?{title:n,description:t}:null}decodeToken(e=""){return this.decodeAuthToken(e)}getIdTokenHint(){return new URLSearchParams(window.location.search).get("id_token_hint")}}}}]);