import{F as g,b as v}from"./app-core.61d75c0b.js";import{B as h}from"./Img.af9830ae.js";import{C as y}from"./Button.7fa2ada4.js";import{S as b}from"./Profile.cc99b995.js";import{_ as S}from"./_plugin-vue_export-helper.eefbdd86.js";import{as as r,f as c,i as l,j as e,a0 as i,U as a,P as k,M as B,B as C,ae as x}from"./vendor-vue-ui.d70c869f.js";const N={setup(){return{rootStore:v()}},components:{BaseImg:h,CoreLoader:y,SvgDannieProfile:b},props:{description:{type:String,required:!0},image:String,loading:{type:Boolean,default:!1},title:{type:String,required:!0}},data(){return{images:{}}},computed:{appName(){return"All in One SEO"},date(){const t=new Date;return t.toLocaleString("default",{month:"long"})+" "+t.getDate()},isVerticalImage(){const t=this.images[this.image];return t?t.vertical:!1}},methods:{truncate:g}},V={class:"aioseo-facebook-preview"},I={class:"facebook-post"},A={class:"facebook-header"},D={class:"profile-photo"},L={class:"poster"},P={class:"poster-name"},w={class:"poster-date"},q={key:0,class:"loader"},E={class:"facebook-site-description"},F={class:"site-domain"},O={class:"site-title"},R={class:"site-description"};function U(t,o,n,d,_,s){const u=r("svg-dannie-profile"),m=r("base-img"),p=r("core-loader");return c(),l("div",V,[e("div",I,[e("div",A,[e("div",D,[i(u)]),e("div",L,[e("div",P,a(s.appName),1),e("div",w,a(s.date),1)]),o[1]||(o[1]=e("div",{class:"ellipsis"},[e("div"),e("div"),e("div")],-1))]),e("div",{class:k(["facebook-content",{vertical:s.isVerticalImage}])},[i(m,{debounce:!1,src:n.image,onImages:o[0]||(o[0]=f=>_.images=f),class:"facebook-content__image"},null,8,["src"]),n.loading?(c(),l("div",q,[i(p)])):B("",!0),e("div",E,[e("div",F,[C(t.$slots,"site-url",{},()=>[x(a(d.rootStore.aioseo.urls.domain),1)],!0)]),e("div",O,a(s.truncate(n.title,60)),1),e("div",R,a(s.truncate(n.description,110)),1)])],2),o[2]||(o[2]=e("div",{class:"facebook-footer"},null,-1))])])}const J=S(N,[["render",U],["__scopeId","data-v-d177735a"]]);export{J as C};
