import{c as y,b as h}from"./vuex.esm-bundler.55d3d5b3.js";import{C as S}from"./Tooltip.c4cc47a2.js";import{b,S as k}from"./Caret.19bf2275.js";import{S as p}from"./index.fae5bbc8.js";import{T as B}from"./Slide.4392623f.js";import{_ as T,r as l,c as r,B as c,a as i,e as a,D as w,b as d,w as u,f as n,o,t as A,d as q}from"./_plugin-vue_export-helper.a81c6319.js";const N={emits:["close-card"],components:{CoreTooltip:S,SvgCaret:b,SvgCircleQuestionMark:p,SvgClose:k,TransitionSlide:B},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{}}}},watch:{toggles(e){const s=this.slug;e&&!this.settings.toggledCards[s]&&this.toggleCard({slug:s,shouldSave:!0})}},computed:{...y(["settings"])},methods:{...h(["toggleCard"])}},V={class:"text"},D={class:"header-icon"},H={class:"header-extra"},L={key:1,class:"content"},M={key:0,class:"content"},j={key:1,class:"content"};function z(e,s,t,E,G,O){const g=l("svg-circle-question-mark"),m=l("core-tooltip"),_=l("svg-caret"),f=l("svg-close"),v=l("transition-slide");return o(),r("div",{class:c(["aioseo-card",{disabled:t.disabled,...t.cardClass}])},[t.hideHeader?n("",!0):(o(),r("div",{key:0,class:c(["header",[{toggles:t.toggles}]]),onClick:s[2]||(s[2]=C=>e.toggleCard({slug:t.slug,shouldSave:t.saveToggleStatus}))},[i("div",V,[i("div",D,[a(e.$slots,"header-icon")]),i("div",{class:"header-title",onClick:s[0]||(s[0]=w(()=>{},["stop"]))},[a(e.$slots,"header",{},()=>[i("span",null,A(t.headerText),1)])]),e.$slots.tooltip?(o(),d(m,{key:0},{tooltip:u(()=>[a(e.$slots,"tooltip")]),default:u(()=>[q(g)]),_:3})):n("",!0),i("div",H,[a(e.$slots,"header-extra")])]),!t.closes&&t.toggles&&e.settings.toggledCards&&!t.noSlide&&!t.disabled?(o(),d(_,{key:0,class:c({rotated:!e.settings.toggledCards[t.slug]})},null,8,["class"])):n("",!0),t.closes?(o(),d(f,{key:1,onClick:s[1]||(s[1]=C=>e.$emit("close-card",!0))})):n("",!0)],2)),e.$slots.disabled&&t.disabled?(o(),r("div",L,[a(e.$slots,"disabled")])):n("",!0),(e.settings.toggledCards||t.noSlide)&&!t.disabled?(o(),d(v,{key:2,active:e.settings.toggledCards[t.slug]&&t.toggles||t.noSlide},{default:u(()=>[e.$slots["before-tabs"]?(o(),r("div",M,[a(e.$slots,"before-tabs")])):n("",!0),a(e.$slots,"tabs"),e.$slots.default?(o(),r("div",j,[a(e.$slots,"default")])):n("",!0)]),_:3},8,["active"])):n("",!0)],2)}const J=T(N,[["render",z]]);export{J as C};
