(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c06842c"],{ab14:function(t,e,s){"use strict";e["a"]={data:()=>({mainId:Math.floor(1e7*Math.random()),selected:0,elements:[],stateStr:"",rendered:!1,firstSelection:!0}),watch:{menuState(){this.domUpdated()}},created(){window.addEventListener("resize",this.domUpdated)},mounted(){this.$nextTick(()=>{this.crearElementos()})},computed:{menuState(){return this.$store.getters.isMenuOpen}},beforeDestroy(){window.removeEventListener("resize",this.domUpdated)},updated(){this.$nextTick(()=>{this.getStateStr()!=this.stateStr&&this.crearElementos()})},methods:{crearElementos(){return this.$slots.default&&this.$slots.default.length?(this.domUpdated(),this.elements=this.$slots.default.map((t,e)=>{const s=t.data&&t.data.attrs?t.data.attrs:[];return{id:this.mainId+e+1,elm:t.elm,...s}}),this.firstSelection&&(this.selected=this.selected>0?this.selected:this.elements[0].id),void(this.stateStr=this.getStateStr())):[]},getActiveHeight(t){return this.$refs[t][0].scrollHeight+"px"},getStateStr(){return this.$slots.default.map(t=>t.elm.outerHTML).join("")},domUpdated(){this.rendered=!1,setTimeout(()=>{this.rendered=!0},100)}}}},b5d4:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"tabs-a"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-lg-4 col-xl-3"},[s("div",{staticClass:"row"},t._l(t.elements,(function(e,a){return s("div",{key:"tabs-menu-"+e.id,staticClass:"col-sm-6 col-lg-12 mb-3"},[s("button",{staticClass:"tabs-a__tab",class:{"tabs-a__tab__selected":t.selected===e.id},on:{click:function(s){t.selected=e.id},mouseover:function(e){t.mostrarIndicador=!(t.mostrarIndicador&&a>=1)&&t.mostrarIndicador}}},[s("div",{staticClass:"tabs-a__tab__text"},[t._v(t._s(e.titulo))]),t.mostrarIndicador&&1===a?s("div",{staticClass:"indicador__container"},[s("div",{staticClass:"indicador--click"})]):t._e()])])})),0)]),s("div",{staticClass:"col-lg-8 col-xl-9"},t._l(t.elements,(function(e){return s("div",{directives:[{name:"show",rawName:"v-show",value:t.selected===e.id,expression:"selected === elm.id"},{name:"child",rawName:"v-child",value:e.elm,expression:"elm.elm"}],key:"tabs-a-content-"+e.id,staticClass:"tabs-a__content-item",class:{"tabs-a__content-item--active":t.selected===e.id}})})),0)]),s("div",{staticClass:"hidden-slot"},[t._t("default")],2)])},i=[],d=s("ab14"),n={name:"TabsA",mixins:[d["a"]],data:function(){return{mostrarIndicador:!0}}},r=n,l=s("2877"),c=Object(l["a"])(r,a,i,!1,null,null,null);e["default"]=c.exports}}]);
//# sourceMappingURL=chunk-2c06842c.dc469a53.js.map