1import{h as w,u as h,a as A,b as S,o as C,e as B,c as _,d as b,f as H,w as L,g as R,i as f,j,k as q,l as z,m as E,n as N,p as Q,q as m,r as U,s as F,t as G}from"#entry";const J=async(i,n={},u={})=>{const o=w(),c=h(),l=A("storyblok-bridge-ids",()=>({})),t=S(`story:${i}`,async({locale:s,version:r})=>{const{data:d}=await o.get(`cdn/stories/${i}`,{...n,version:r,language:s,...c?{cv:c}:{}});return d.story});if(C(()=>{const s=t.data.value?.id;!s||l.value[s]||(B(s,r=>t.data.value=r,u),l.value[s]=!0)}),await t,t.error.value){const s=t.error.value.status||t.error.value.cause?.status||t.error.value.statusCode||500;throw _({statusCode:s,statusMessage:s===404?"Page not found":"Could not load content",fatal:!0})}if(!t.data.value)throw _({statusCode:404,statusMessage:"Page not found",fatal:!0});return t.data},y="Question.answer",W={__name:"[...slug]",async setup(i){let n,u;const o=b(()=>{let{slug:e}=F().params;return e?(e[e.length-1]===""&&e.pop(),e=e.length>1?e.join("/"):e[0],e.replace(/\/$/,"")):"home"});if(b(()=>/\.[a-z0-9]{1,8}$/i.test(o.value)||/(^|\/)(\.|wp-|cgi-bin\/|vendor\/)/i.test(o.value)).value)throw _({statusCode:404,statusMessage:"Page not found",fatal:!0});const l=w(),t=h(),{preview:s}=H(),{data:r,execute:d}=S(`story-preview:${o.value}`,async({locale:e})=>{const{data:k}=await l.get(`cdn/stories/${o.value}`,{version:"draft",language:e,resolve_links:"url",resolve_relations:y,...t?{cv:t}:{}});return k.story},{immediate:!1}),a=([n,u]=L(()=>J(o.value,{resolve_links:"url",resolve_relations:y},{resolveRelations:y,resolveLinks:"url",preventClick:!0})),n=await n,u(),n);C(async()=>{s.value&&(await d(),r.value&&(a.value=r.value))}),R()({de:{slug:[f("de",a.value)]},fr:{slug:[f("fr",a.value)]},it:{slug:[f("it",a.value)]}});const v=j({}),{baseUrl:P}=q().public,$=v.value.meta.filter(e=>(["og:url"].includes(e.property)&&(e.content=`${P}${e.content}`),e));z({htmlAttrs:{lang:v.value.htmlAttrs.lang},link:[...v.value.link],meta:[...$]});const{seo_settings:I}=a.value?.content||{},{pageTitle:M,description:D,image:V}=I?.[0]||{},g=()=>M||a.value?.content?.title,p=()=>D||a.value?.content?.description,x=()=>V?.filename;return E({ogImage:()=>x,title:g,ogTitle:g,twitterTitle:g,description:p,ogDescription:p,twitterDescription:p}),(e,k)=>{const T=U("StoryblokComponent");return m(a)?(G(),N(T,{key:0,blok:m(a).content,date:m(a)?.sort_by_date},null,8,["blok","date"])):Q("",!0)}}};export{W as default};
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.