(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-13a6037e"],{ab14:function(t,e,i){"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 i=t.data&&t.data.attrs?t.data.attrs:[];return{id:this.mainId+e+1,elm:t.elm,...i}}),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)}}}},bae2:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"linea-tiempo-d"},[t._l(t.elements,(function(e,s){return i("div",{key:"linea-tiempo-d-key-"+e.id,staticClass:"linea-tiempo-d__item row",class:{"linea-tiempo-d__item--selected":t.selected===e.id}},[i("div",{staticClass:"col-auto linea-tiempo-d__item__col-number"},[i("div",{staticClass:"linea-tiempo-d__item__number tarjeta tarjeta--gris",class:[,{"px-3":e.numero.length>1}],on:{click:function(i){t.selected=e.id},mouseover:function(e){t.mostrarIndicador=!(t.mostrarIndicador&&s>=1)&&t.mostrarIndicador}}},[t.mostrarIndicador&&1===s?i("div",{staticClass:"indicador__container"},[i("div",{staticClass:"indicador--click"})]):t._e(),i("span",[t._v(t._s(e.numero))])]),s<t.elements.length-1?i("div",{staticClass:"linea-tiempo-d__item__dots"}):t._e()]),i("div",{staticClass:"col",class:{"mb-4":s<t.elements.length-1}},[i("div",{staticClass:"linea-tiempo-d__item__content tarjeta tarjeta--gris"},[i("div",{staticClass:"linea-tiempo-d__item__content__title px-3",on:{click:function(i){t.selected=e.id},mouseover:function(e){t.mostrarIndicador=!(t.mostrarIndicador&&s>=1)&&t.mostrarIndicador}}},[i("span",[t._v(t._s(e.titulo))])]),i("div",{staticClass:"linea-tiempo-d__item__content__slot",style:{height:t.rendered&&t.selected===e.id?t.getActiveHeight(e.id):0}},[i("div",{directives:[{name:"child",rawName:"v-child",value:e.elm,expression:"item.elm"}],ref:e.id,refInFor:!0,staticClass:"p-3 pt-0"})])])])])})),i("div",{staticClass:"hidden-slot"},[t._t("default")],2)],2)},a=[],d=i("ab14"),n={name:"LineaTiempoD",mixins:[d["a"]],data:function(){return{mostrarIndicador:!0}},computed:{},watch:{},methods:{}},r=n,o=i("2877"),l=Object(o["a"])(r,s,a,!1,null,null,null);e["default"]=l.exports}}]);
//# sourceMappingURL=chunk-13a6037e.6b1cbc5f.js.map