import{_ as g}from"./BN7yRM0k.js";import{_ as h}from"./DoB-8nhn.js";import{_ as b}from"./JGHjtYZ0.js";import{D as k}from"./B0pgjDxI.js";import{d as C,aB as c,aq as v,m as y,w as A,aJ as D,o as n,c as B,b as e,f as p,j as l,h as m,u as R}from"./CcVK2I7c.js";import"./B08U0THx.js";import"./B8vS6OTO.js";import"./DRgX-g2V.js";import"./CAhoRlBp.js";import"./DJ5VG4qW.js";import"./C94ndmYg.js";import"./qOSwr3PX.js";import"./DDZiLrG4.js";const G=C({__name:"Post",async setup($){let r,s;const{post:a}=c().params;if(typeof a!="string")throw new Error("Could not get post slug");const _=v().public.website,{tRaw:i}=y();c();const t=([r,s]=A(()=>R().fetchPost(a)),r=await r,s(),r),o={title:i(t.content.post.meta.title),description:i(t.content.post.meta.description)};return D({...o,ogTitle:o.title,ogDescription:o.description,twitterTitle:o.title,twitterDescription:o.description,twitterImage:{alt:t.content.article.title,url:`https://${_.url}/twitter-big-image.png`}}),(x,T)=>{const u=g,d=h,f=b,w=k;return n(),B("div",null,[e(t)?(n(),p(u,{key:0,content:e(t).content.hero,dark:"",overlap:""},null,8,["content"])):l("",!0),e(t)?(n(),p(d,{key:1,article:e(t).content.article,overlap:"","show-share-buttons":"","show-details":"","updated-at":e(t).updatedAt},null,8,["article","updated-at"])):l("",!0),m(f,{"related-articles":e(t).content.relatedArticles},null,8,["related-articles"]),m(w)])}}});export{G as default};
