import{c as a,m as r}from"./vuex.esm.19624049.js";import{C as l}from"./Tooltip.d723c3c3.js";import{e as i,S as c}from"./Caret.eeb84d06.js";import{S as d}from"./index.81e35b24.js";import{T as u}from"./Slide.9538a421.js";import{n as g}from"./vueComponentNormalizer.67c9b86e.js";var _=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"aioseo-card",class:Object.assign({disabled:t.disabled},t.cardClass)},[t.hideHeader?t._e():e("div",{staticClass:"header",class:[{toggles:t.toggles}],on:{click:function(o){return t.toggleCard({slug:t.slug,shouldSave:t.saveToggleStatus})}}},[e("div",{staticClass:"text"},[e("div",{staticClass:"header-icon"},[t._t("header-icon")],2),e("div",{staticClass:"header-title",on:{click:function(o){o.stopPropagation()}}},[t._t("header",function(){return[e("span",[t._v(t._s(t.headerText))])]})],2),t.$slots.tooltip?e("core-tooltip",{scopedSlots:t._u([{key:"tooltip",fn:function(){return[t._t("tooltip")]},proxy:!0}],null,!0)},[e("svg-circle-question-mark")],1):t._e(),e("div",{staticClass:"header-extra"},[t._t("header-extra")],2)],1),!t.closes&&t.toggles&&t.settings.toggledCards&&!t.noSlide&&!t.disabled?e("svg-caret",{class:{rotated:!t.settings.toggledCards[t.slug]}}):t._e(),t.closes?e("svg-close",{on:{click:function(o){return t.$emit("close-card",!0)}}}):t._e()],1),t.$slots.disabled&&t.disabled?e("div",{staticClass:"content"},[t._t("disabled")],2):t._e(),(t.settings.toggledCards||t.noSlide)&&!t.disabled?e("transition-slide",{attrs:{active:t.settings.toggledCards[t.slug]&&t.toggles||t.noSlide}},[t.$slots["before-tabs"]?e("div",{staticClass:"content"},[t._t("before-tabs")],2):t._e(),t._t("tabs"),t.$slots.default?e("div",{staticClass:"content"},[t._t("default")],2):t._e()],2):t._e()],1)},p=[];const f={components:{CoreTooltip:l,SvgCaret:i,SvgCircleQuestionMark:d,SvgClose:c,TransitionSlide:u},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(t){const s=this.slug;t&&!this.settings.toggledCards[s]&&this.toggleCard({slug:s,shouldSave:!0})}},computed:{...a(["settings"])},methods:{...r(["toggleCard"])}},n={};var v=g(f,_,p,!1,m,null,null,null);function m(t){for(let s in n)this[s]=n[s]}const $=function(){return v.exports}();export{$ as C};
