LWR.define("webruntime/cookieStore/v/1_66_890",["exports","@app/authenticationCookieName/v/1"],function(t,o){"use strict";function n(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var l=n(o);let u;function c(e){e&&typeof e=="object"&&(u=e)}function s(e){u=d(e)}function f(){return!!i(l.default)}function r(){return u}function i(e){return e?(typeof document!="undefined"&&s(document?.cookie),u&&u[e]):null}function d(e){return e&&typeof e=="string"?e.split(";").reduce((a,b)=>{const[k,p]=b.trim().split("=").map(decodeURIComponent);return a[k]=p,a},{}):null}t.getAllCookies=r,t.getCookie=i,t.hasSidCookie=f,t.setCookiesFromObject=c,t.setCookiesFromString=s,Object.defineProperty(t,"__esModule",{value:!0})}),LWR.define("webruntime/cookieStore",["exports","webruntime/cookieStore/v/1_66_890"],function(t,o){t.default=o&&typeof o=="object"&&"default"in o?o.default:o,Object.keys(o).forEach(function(n){n==="default"||t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[n]}})})}),LWR.define("webruntime/bootstrapHook/v/1_66_890",["exports","lwc/v/8_10_1","webruntime/routingService/v/1","webruntime/cookieStore/v/1_66_890"],function(t,o,n,l){"use strict";let u=!1;function c(r){u||(o.setHooks({sanitizeHtmlContent(i){return i}}),u=!0),r.addServerDataCallback(({serverData:i})=>{globalThis.CLWR=globalThis.CLWR||{},Object.assign(globalThis.CLWR,{serverData:{initialData:i.initialData||Object.values(i)[0]?.initialData,url:i.url||Object.values(i)[0]?.url,routeParams:i.routeParams||Object.values(i)[0]?.routeParams}})}),typeof window=="undefined"&&typeof r.addRequestHook=="function"?r.addRequestHook(({cookies:i})=>{l.setCookiesFromObject(i)}):typeof document!="undefined"&&l.setCookiesFromString(document?.cookie)}function s(r,i){n.initializeServerRouter(i,r)}async function f({basePath:r,url:i}){const d=n.getLoginUrl(r,i),e={code:302,location:d};if(!l.hasSidCookie())return console.log("[LoginRedirection] Sid cookie not found, redirecting to login."),e;const a=await(await fetch(`${r}/webruntime/module/@app/user?json`)).json(),b=a.isGuest?"Session has expired, redirection to login.":"Session is still valid. No redirection.";return console.log(`[LoginRedirection] ${b}`),a.isGuest?e:null}t.buildServerRouter=s,t.default=c,t.getServerLoginRedirect=f,Object.defineProperty(t,"__esModule",{value:!0})}),LWR.define("webruntime/bootstrapHook",["exports","webruntime/bootstrapHook/v/1_66_890"],function(t,o){t.default=o&&typeof o=="object"&&"default"in o?o.default:o,Object.keys(o).forEach(function(n){n==="default"||t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return o[n]}})})});