import{N as g,b as v}from"./app-core.fa86622d.js";import{B as h}from"./Img.93307c5c.js";import{C as y}from"./Button.aa421c00.js";import{S as b}from"./Profile.a3d2ac6e.js";import{_ as S}from"./_plugin-vue_export-helper.eefbdd86.js";import{an 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 N}from"./vendor-vue-ui.ad4935f9.js";const x={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"},O={class:"site-domain"},R={class:"site-title"},U={class:"site-description"};function j(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",O,[C(t.$slots,"site-url",{},()=>[N(a(d.rootStore.aioseo.urls.domain),1)],!0)]),e("div",R,a(s.truncate(n.title,60)),1),e("div",U,a(s.truncate(n.description,110)),1)])],2),o[2]||(o[2]=e("div",{class:"facebook-footer"},null,-1))])])}const J=S(x,[["render",j],["__scopeId","data-v-d177735a"]]);export{J as C};
