import{a as s}from"./vuex.esm.8fdeb4b6.js";import{t as r}from"./html.14f2a8b9.js";import{B as i}from"./Img.b3dc0554.js";import{C as n}from"./Caret.19b10233.js";import{S as o}from"./Book.9dd59972.js";import{S as c}from"./Profile.c44d4735.js";import{n as l}from"./_plugin-vue2_normalizer.61652a7c.js";const m={components:{BaseImg:i,CoreLoader:n,SvgBook:o,SvgDannieProfile:c},props:{card:String,description:{type:String,required:!0},image:String,loading:{type:Boolean,default:!1},title:{type:String,required:!0}},data(){return{canShowImage:!1}},computed:{...s(["options"]),appName(){return"All in One SEO"},getCard(){return this.card==="default"?this.options.social.twitter.general.defaultCardType:this.card}},methods:{maybeCanShow(a){this.canShowImage=a},truncate:r}};var u=function(){var t=this,e=t._self._c;return e("div",{staticClass:"aioseo-twitter-preview"},[e("div",{staticClass:"twitter-post"},[e("div",{staticClass:"twitter-header"},[e("div",{staticClass:"profile-photo"},[e("svg-dannie-profile")],1),e("div",{staticClass:"poster"},[e("div",{staticClass:"poster-name"},[t._v(" "+t._s(t.appName)+" ")]),e("div",{staticClass:"poster-username"},[t._v(" @aioseopack ")])])]),e("div",{staticClass:"twitter-container",class:t.image?t.getCard:"summary"},[e("div",{staticClass:"twitter-content"},[e("div",{staticClass:"twitter-image-preview",style:{backgroundImage:t.getCard==="summary"&&t.canShowImage?`url('${t.image}')`:""}},[!t.loading&&(!t.image||!t.canShowImage)?e("svg-book"):t._e(),t.loading?e("core-loader"):t._e(),e("base-img",{directives:[{name:"show",rawName:"v-show",value:t.getCard==="summary_large_image"&&t.canShowImage,expression:"'summary_large_image' === getCard && canShowImage"}],attrs:{src:t.image,debounce:!1},on:{"can-show":t.maybeCanShow}})],1),e("div",{staticClass:"twitter-site-description"},[e("div",{staticClass:"site-domain"},[t._t("site-url",function(){return[t._v(" "+t._s(t.$aioseo.urls.domain)+" ")]})],2),e("div",{staticClass:"site-title"},[t._v(" "+t._s(t.truncate(t.title,70))+" ")]),e("div",{staticClass:"site-description"},[t._v(" "+t._s(t.truncate(t.description,105))+" ")])])])])])])},p=[],d=l(m,u,p,!1,null,"e708d0a8",null,null);const h=d.exports;export{h as C};
