1import{I as v,C as p,av as m,l as _,aP as w,aO as E,k as I}from"./fVQkwvbV.js";import{u as g}from"./DF7LXhiv.js";import{t as r}from"./Cmyjy-u5.js";import{I as T}from"./D7Tfmrol.js";import{s as M}from"./BoiRXTn5.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"6563e1b01ed63d5fd27245241aa9b63f8a764302"}}catch{}})();try{(function(){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]="5e680fd6-0602-453c-8211-ca1127f56ef5",e._sentryDebugIdIdentifier="sentry-dbid-5e680fd6-0602-453c-8211-ca1127f56ef5")})()}catch{}const x=e=>{var l,i;const t=_(),s=v(),{locale:o}=p();if(!e.value)return;const a=(i=(l=e.value)==null?void 0:l.content)==null?void 0:i.seo;a&&m({title:a==null?void 0:a.title,meta:[{name:"description",content:a==null?void 0:a.description},{property:"og:site_name",content:"airBaltic.com"}]}),g(),m(()=>{var f,c,b;const u=[{rel:"canonical",href:t.public.siteUrl+r(s.path)},{rel:"alternate",hreflang:"x-default",href:t.public.siteUrl+"/en/"+r(((f=e.value)==null?void 0:f.default_full_slug)??"")}],d=(c=e.value)==null?void 0:c.translated_slugs;d&&d.forEach(n=>{n!=null&&n.name&&u.push({rel:"alternate",hreflang:n.lang,href:t.public.siteUrl+"/"+n.lang+"/"+r(n.path??"")})});const h=w(),y=(b=e.value)!=null&&b.updated_at?h(e.value.updated_at).format(T):"";return{meta:[{name:"language",content:o.value},{name:"lastModified",content:y}],link:u}})},F=async e=>{const{locale:t,t:s}=p(),{data:o,error:a}=await E(`/api/storyblok/${e}`,{query:{language:t.value}},"$A1edxEMjVj");if(M(e),a.value)throw console.error(`Error fetching ${e} data:`,a.value),g(),I({statusCode:a.value.statusCode??404,statusMessage:a.value.statusMessage??s("global.error.pageNotFound")});return o};export{F as a,x as u}; 2//# sourceMappingURL=DlX_srfw.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.