import{a as s}from"./vuex.esm.19624049.js";import{t as i}from"./html.bcbe747e.js";import{B as n}from"./Img.68436b24.js";import{C as o}from"./Caret.eeb84d06.js";import{S as c}from"./Book.4f237719.js";import{S as l}from"./Profile.509489df.js";import{n as m}from"./vueComponentNormalizer.67c9b86e.js";var u=function(){var t=this,a=t.$createElement,e=t._self._c||a;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",domProps:{innerHTML:t._s(t.truncate(t.title,70))}}),e("div",{staticClass:"site-description",domProps:{innerHTML:t._s(t.truncate(t.description,105))}})])])])])])},p=[];const d={components:{BaseImg:n,CoreLoader:o,SvgBook:c,SvgDannieProfile:l},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(t){this.canShowImage=t},truncate:i}},r={};var _=m(d,u,p,!1,g,"a749a046",null,null);function g(t){for(let a in r)this[a]=r[a]}const x=function(){return _.exports}();export{x as C};
