OwlCyberSecurity - MANAGER
Edit File: TwitterPreview.B39CbiNF.js
import{a as h,u as f,t as S}from"./links.C572zDFG.js";import{B as v}from"./Img.D1d3ge3U.js";import{b as w}from"./Caret.CGwYaMo_.js";import{S as y}from"./Book.DaIhDiml.js";import{S as C}from"./Profile.blAmV54p.js";import{_ as b,v as k}from"./_plugin-vue_export-helper.BLXtEB-G.js";import{v as s,o as i,c as I,a as e,B as c,t as r,aa as B,j as x,k as l,b as d,af as N,m as A,C as V,ad as D,ae as L}from"./runtime-core.esm-bundler.DMBo7TXk.js";const O={setup(){return{optionsStore:h(),rootStore:f()}},components:{BaseImg:v,CoreLoader:w,SvgBook:y,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:{appName(){return"All in One SEO"},getCard(){return this.card==="default"?this.optionsStore.options.social.twitter.general.defaultCardType:this.card}},methods:{maybeCanShow(o){this.canShowImage=o},truncate:S}},P=o=>(D("data-v-3ab503eb"),o=o(),L(),o),T={class:"aioseo-twitter-preview"},q={class:"twitter-post"},z={class:"twitter-header"},E={class:"profile-photo"},R={class:"poster"},j={class:"poster-name"},U=P(()=>e("div",{class:"poster-username"}," @aioseopack ",-1)),F={class:"twitter-content"},G={class:"twitter-site-description"},H={class:"site-domain"},J={class:"site-title"},K={class:"site-description"};function M(o,Q,t,m,n,a){const _=s("svg-dannie-profile"),u=s("svg-book"),p=s("core-loader"),g=s("base-img");return i(),I("div",T,[e("div",q,[e("div",z,[e("div",E,[c(_)]),e("div",R,[e("div",j,r(a.appName),1),U])]),e("div",{class:B(["twitter-container",t.image?a.getCard:"summary"])},[e("div",F,[e("div",{class:"twitter-image-preview",style:x({backgroundImage:a.getCard==="summary"&&n.canShowImage?`url('${t.image}')`:""})},[!t.loading&&(!t.image||!n.canShowImage)?(i(),l(u,{key:0})):d("",!0),t.loading?(i(),l(p,{key:1})):d("",!0),N(c(g,{src:t.image,debounce:!1,onCanShow:a.maybeCanShow},null,8,["src","onCanShow"]),[[k,a.getCard==="summary_large_image"&&n.canShowImage]])],4),e("div",G,[e("div",H,[A(o.$slots,"site-url",{},()=>[V(r(m.rootStore.aioseo.urls.domain),1)],!0)]),e("div",J,r(a.truncate(t.title,70)),1),e("div",K,r(a.truncate(t.description,105)),1)])])],2)])])}const oe=b(O,[["render",M],["__scopeId","data-v-3ab503eb"]]);export{oe as C};