import{u as N,a as P,b as R,c as B,d as C,e as b,o as k,f as w,g as x,n as K,p as L}from"./BmsEUx_s.js";import{k as D,a0 as I,H as T,G as $,F as A,m as s}from"./BO9AmBA3.js";const S={name:"PageResolver"},F=D({...S,async setup(U){var i,u;let o,n;const{clearBreadcrumbs:m}=N(),{resolvePath:p}=P(),f=R(),{locale:v}=B(),r=(u=(i=f.path)==null?void 0:i.replace(`${v.value}`,""))==null?void 0:u.replace("//","/"),_=C(),{formatLink:d}=b(_),{data:h}=([o,n]=I(async()=>x("cmsResponse"+r,async()=>{var e,a,l;return(e=history.state)!=null&&e.routeName?{routeName:(a=history.state)==null?void 0:a.routeName,foreignKey:(l=history.state)==null?void 0:l.foreignKey}:await p(r)},"$DYe1DJTSKq")),o=await o,n(),o);k(()=>{m()});const{routeName:c,foreignKey:g}=w(h);function y(){const t=c.value;t||K({path:`${d("/")}`});const e=L(t),a=c&&A(e);return a?a===e?s("div",{},"Problem resolving component: "+t):s("div",s(a,{navigationId:g.value})):s("div",{},"Loading...")}return(t,e)=>($(),T(y))}});export{F as default};