1import{I as T,bQ as x,m as c}from"./CvDJfsLU.js";import{q as p}from"./aGX58C66.js";const I=v=>{const h=T(),{parseLink:d}=x(),f=c(`navigation-selected-${v}`),m=c(`navigation-selected-sub-${v}`),g=c(`navigation-selected-mobile-${v}`),A=h?._asyncData?.[`${v}-page-frame`]||{data:null},a=p(()=>A.data?.value?.data?.stories.find(e=>e.name==="Main-Navigation")?.content),k=e=>{f.value=e},y=e=>{m.value=e},N=e=>{g.value=e},b=()=>{a.value&&(g.value={_uid:"",title:void 0,link:void 0,linkType:void 0,category:void 0,navigationLinks:a.value.navigationAreas,navigationTeaser:a.value.navigationTeaser,showNextLevel:!0})},P=p(()=>{if(!a.value)return[];const e=[];e.push({_uid:"",title:void 0,link:void 0,linkType:void 0,category:void 0,navigationLinks:a.value.navigationAreas,navigationTeaser:a.value.navigationTeaser,showNextLevel:!0});const r=i=>{i.forEach(t=>{t.navigationLinks?.length&&(e.push(t),r(t.navigationLinks))})};return r(a.value.navigationAreas||[]),e}),L=e=>a.value?l(a.value.navigationAreas||[],{targetId:e,mode:"findParent"}):null,S=e=>a.value?l(a.value.navigationAreas||[],{targetPath:e,mode:"findByPath"}):null,B=(e,r)=>{if(!a.value)return[];const i=l(a.value.navigationAreas||[],{targetPath:e,mode:"getBreadcrumbs"});if(!i){if(!r?.length)return[];let t="";return r.map((s,o)=>(t+="/"+s,{value:s.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase()),to:t}))}return i.map(t=>({value:t.title||"",to:t.linkType==="category"?t.category||"":d(t.link)?.to||""}))},l=(e,r)=>{const{targetId:i,targetPath:t,currentPath:s=[],mode:o}=r;for(const n of e){if(o==="findParent"&&i&&n.navigationLinks?.some(u=>u._uid===i))return n;if((o==="findByPath"||o==="getBreadcrumbs")&&t&&(n.linkType==="category"&&n.category===t||n.link&&d(n.link).to===t))return o==="getBreadcrumbs"?[...s,n]:n;if(n.navigationLinks){const u=l(n.navigationLinks,{targetId:i,targetPath:t,currentPath:[...s,n],mode:o});if(u)return u}}return null};return{mainNavigation:a,setSelectedNavigationArea:k,setSelectedSubNavigationArea:y,setMobileSelectedNavigationArea:N,resetMobileSelectedNavigationArea:b,selectedNavigationArea:f,selectedSubNavigationArea:m,mobileSelectedNavigationArea:g,findParentNavigationArea:L,findNavigationAreaByPath:S,getBreadcrumbsByPath:B,getAllNavigationLayers:P}};export{I as u};
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.