(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[399],{"KHd+":function(t,e,i){"use strict";function n(t,e,i,n,s,o,a,r){var d,h="function"==typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),n&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),a?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=d):s&&(d=r?function(){s.call(this,(h.functional?this.parent:this).$root.$options.shadowRoot)}:s),d)if(h.functional){h._injectStyles=d;var l=h.render;h.render=function(t,e){return d.call(e),l(t,e)}}else{var u=h.beforeCreate;h.beforeCreate=u?[].concat(u,d):[d]}return{exports:t,options:h}}i.d(e,"a",(function(){return n}))},i32L:function(t,e,i){"use strict";i.r(e);var n={name:"SlideUpDown",props:{active:Boolean,duration:{type:Number,default:500},tag:{type:String,default:"div"},useHidden:{type:Boolean,default:!0},useAriaExpanded:{type:Boolean,default:!0}},data:()=>({style:{},initial:!1,hidden:!1}),watch:{active(){this.layout()}},render(t){return t(this.tag,{style:this.style,attrs:this.attrs,ref:"container",on:{transitionend:this.onTransitionEnd}},this.$slots.default)},mounted(){this.layout(),this.initial=!0},created(){this.hidden=!this.active},computed:{el(){return this.$refs.container},attrs(){const t={"aria-hidden":!this.active};return this.useHidden&&(t.hidden=this.hidden),this.useAriaExpanded&&(t["aria-expanded"]=this.active),t}},methods:{layout(){this.active?(this.hidden=!1,this.$emit("open-start"),this.initial&&this.setHeight("0px",()=>this.el.scrollHeight+"px")):(this.$emit("close-start"),this.setHeight(this.el.scrollHeight+"px",()=>"0px"))},asap(t){this.initial?this.$nextTick(t):t()},setHeight(t,e){this.style={height:t},this.asap(()=>{this.__=this.el.scrollHeight,this.style={height:e(),overflow:"hidden","transition-property":"height","transition-duration":this.duration+"ms"}})},onTransitionEnd(t){t.target===this.el&&(this.active?(this.style={},this.$emit("open-end")):(this.style={height:"0",overflow:"hidden"},this.hidden=!0,this.$emit("close-end")))}}},s=i("KHd+"),o=Object(s.a)(n,void 0,void 0,!1,null,null,null);e.default=o.exports}}]);