import{h as d,m as _,x as m,b as u,f as p}from"./CSGWN0Ke.js";import{u as g}from"./00Wz9xmJ.js";const x=d({__name:"SocialHead",async setup(h){var o,r,c,l,s,n;let e,a;const t=([e,a]=_(()=>m()),e=await e,a(),e),i=([e,a]=_(()=>g()),e=await e,a(),e);return t.value&&"social_cards"in t.value&&u({meta:[{hid:"og:title",property:"og:title",content:((o=t.value.social_cards[0])==null?void 0:o.social_card_title)||t.value.meta_title||i.meta_title_default},{hid:"og:url",property:"og:url",content:t.value.sharing_url},{hid:"og:description",property:"og:description",content:((r=t.value.social_cards[0])==null?void 0:r.social_card_description)||t.value.meta_description||i.meta_description_default},{hid:"og:image",property:"og:image",content:(c=t.value.social_cards[0])==null?void 0:c.social_card_image.facebook.url},{hid:"og:locale",property:"og:locale",content:t.value.sharing_locale},{hid:"twitter:card",name:"twitter:card",content:"summary_large_image"},{hid:"twitter:title",name:"twitter:title",content:((l=t.value.social_cards[0])==null?void 0:l.social_card_title)||t.value.meta_title||i.meta_title_default},{hid:"twitter:description",name:"twitter:description",content:((s=t.value.social_cards[0])==null?void 0:s.social_card_description)||t.value.meta_description||i.meta_description_default},{hid:"twitter:image",name:"twitter:image",content:(n=t.value.social_cards[0])==null?void 0:n.social_card_image.twitter.url}]}),(v,w)=>p("",!0)}});export{x as _};