1import{d as $,a as x,b as g,P as k,c as v,e as d}from"./entry.ad64c700.js";import{r as n,c as M}from"./swiper-vue.d06afa39.js";import{u as _}from"./asyncData.9c4fca0b.js";import{u as A}from"./useAsyncStoryblok.e57658aa.js";const D=$("global",()=>{const{$i18n:l}=x(),u=g(),p=u.public.defaultLocale,c=n(),r=n(),o=n(),f=n(0),h=M(()=>l.availableLocales.map(t=>{var s;let e="";if(t===p&&o.value)e=o.value.default_full_slug||"";else if(o.value){const i=(s=o.value.translated_slugs)==null?void 0:s.find(w=>w.lang===t);e=(i==null?void 0:i.path)??""}return e==="home"?e="":e=e.endsWith("/")?e:`${e}/`,{locale:t,uri:`/${t}/${e}`}}));async function m(){var s;const a=k(),t=g(),{data:e}=await _("globalSettings",async()=>await a.get("cdn/stories/settings",{version:t.public.previewMode?"draft":"published",resolve_links:"url",language:l.locale.value}));c.value=(s=e.value)==null?void 0:s.data.story.content}async function b(a){const t=await A(a&&a.length>0?a.join("/"):"home",{version:u.public.previewMode?"draft":"published",language:l.locale.value,resolve_links:"url"}).catch(e=>{throw v({statusCode:404,statusMessage:`Error getting story ${d().fullPath}: ${e.message}`,fatal:!0})});if(t.value&&t.value.content&&u.public.contentTypes.indexOf(t.value.content.component)<0)throw v({statusCode:404,statusMessage:`Error getting story ${d().fullPath}: Not a page`,fatal:!0});return o.value=t.value,o}function y(a){f.value=a}function L(a){r.value=a}function S(){r.value=""}return{settings:c,languageLinks:h,lightBox:r,story:o,menuHeightSecondLevel:f,loadStory:b,loadGlobalSettings:m,setMenuHeightSecondLevel:y,openLightBox:L,closeLightBox:S}});export{D 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.