import{d as S,H as w,C as D,i as T,p as C,k as m,at as b,A as g,aD as E,f as u,o as I,e as M,g as Y,l as B,aN as N}from"./bdrFovXZ.js";import{p as R,a as x}from"./AFFOpQTA.js";import{t as d}from"./C79X9ZMt.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalthis:typeof self<"u"?self:{};t.sentry_release={id:"dcd43fef1e4af7f7614a43abf36301348c5fce67"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalthis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="40420df2-8793-49d6-911d-7cf963fe490c",t._sentryDebugIdIdentifier="sentry-dbid-40420df2-8793-49d6-911d-7cf963fe490c")})()}catch{}const H=S({__name:"[...slug]",setup(t){var i;const a=B(),y=w(),{locale:r}=D(),_=T(),h=N(),e=C();if(e.value=_.data??void 0,!e.value)throw m({statusCode:404,statusMessage:"global.error.pageNotFound"});if(e.value.status)throw m({statusCode:e.value.status,statusMessage:e.value.response});const n=(i=e.value.content)==null?void 0:i.seo;n&&b({title:n==null?void 0:n.title,meta:[{name:"description",content:n==null?void 0:n.description},{property:"og:site_name",content:"airBaltic.com"}]});const f=e.value.translated_slugs,v=g(()=>R(f,r.value)),k=g(()=>x(e,v.value.name,r.value));return b(()=>{var s,p;if(!e.value)return{};const l=[{rel:"canonical",href:a.public.siteUrl+d(y.path)},{rel:"alternate",hreflang:"x-default",href:a.public.siteUrl+"/en/"+d((s=e.value)==null?void 0:s.default_full_slug)}];f.forEach(o=>{o!=null&&o.name&&l.push({rel:"alternate",hreflang:o.lang,href:a.public.siteUrl+"/"+o.lang+"/"+d(o.path)})});const c=h((p=e.value)==null?void 0:p.updated_at).format("YYYY-MM-DD");return{meta:[{name:"language",content:r.value},{name:"lastModified",content:c}],link:l,titleTemplate:"%s %separator"}}),(l,c)=>{const s=E("StoryblokComponent");return u(e)?(I(),M(s,{key:0,blok:u(e).content,breadcrumbs:u(k)},null,8,["blok","breadcrumbs"])):Y("",!0)}}});export{H as default}; //# sourceMappingURL=MYf5iojT.js.map