1import{bF as b,ce as y,bC as h,cf as p,ca as m,bM as w,cg as S,bD as I,be as i,bO as $,bd as C}from"./DcvButbD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c23ea44c-053e-4e97-b765-a96aa7744c10",e._sentryDebugIdIdentifier="sentry-dbid-c23ea44c-053e-4e97-b765-a96aa7744c10")}catch{}})();const D=async(e,t)=>{const{locale:n}=b(),o=`${JSON.stringify(t?.apiOptions)}${e}${n.value}`,a=y(`${o}-state`),c=h(),d=C(),v=p(),g=m();w(()=>{g.$patch({storyData:a.value}),a.value&&a.value.id&&S(a.value.id,l=>a.value=l,t?.bridgeOptions)});const{data:u,error:r}=await I(o,async()=>await c.get(`cdn/stories/${e}`,{version:d.public.storyblokApiVersion,language:n.value,...t?.apiOptions}),"$A-8A5qS6P_");if(a.value=u.value?.data?.story,v.$patch({cacheVersion:u.value?.data?.cv}),!a.value||r.value)throw i({message:"Story not found",statusCode:404});const s=$([]),f=a.value.translated_slugs;if(Array.isArray(a.value.content.available_languages)?s.value=a.value.content.available_languages:s.value=f?.filter(l=>l.name!==null)?.map(l=>l.lang)??["en"],s.value.length===0)s.value=["en"];else{if(!s.value.includes(n.value)&&s.value.length===1&&s.value[0]==="de")throw i({message:"This content is only available in German",statusCode:404});if(!s.value.includes(n.value))throw i({message:`Content not available in ${n.value}`,statusCode:404})}if(t?.additionalValidation&&t.additionalValidation(a.value))throw i({message:"Story validation failed",statusCode:404});return{story:a,error:r}};export{D as u}; 2//# sourceMappingURL=CfH2X-FR.js.map
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.