(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-458122c8","chunk-77c1f4ca"],{"140a":function(t,e,i){(function(){function e(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function i(t,e){return t.x*e.x+t.y*e.y}function s(t,s){var n=e(t)*e(s);if(0===n)return 0;var h=i(t,s)/n;return h>1&&(h=1),Math.acos(h)}function n(t,e){return t.x*e.y-e.x*t.y}function h(t,e){var i=s(t,e);return n(t,e)>0&&(i*=-1),180*i/Math.PI}var l=function(t){this.handlers=[],this.el=t};function o(t,e){var i=new l(t);return i.add(e),i}l.prototype.add=function(t){this.handlers.push(t)},l.prototype.del=function(t){t||(this.handlers=[]);for(var e=this.handlers.length;e>=0;e--)this.handlers[e]===t&&this.handlers.splice(e,1)},l.prototype.dispatch=function(){for(var t=0,e=this.handlers.length;t<e;t++){var i=this.handlers[t];"function"===typeof i&&i.apply(this.el,arguments)}};var a=function(t,e){this.element="string"==typeof t?document.querySelector(t):t,this.start=this.start.bind(this),this.move=this.move.bind(this),this.end=this.end.bind(this),this.cancel=this.cancel.bind(this),this.element.addEventListener("touchstart",this.start,!1),this.element.addEventListener("touchmove",this.move,!1),this.element.addEventListener("touchend",this.end,!1),this.element.addEventListener("touchcancel",this.cancel,!1),this.preV={x:null,y:null},this.pinchStartLen=null,this.zoom=1,this.isDoubleTap=!1;var i=function(){};this.rotate=o(this.element,e.rotate||i),this.touchStart=o(this.element,e.touchStart||i),this.multipointStart=o(this.element,e.multipointStart||i),this.multipointEnd=o(this.element,e.multipointEnd||i),this.pinch=o(this.element,e.pinch||i),this.swipe=o(this.element,e.swipe||i),this.tap=o(this.element,e.tap||i),this.doubleTap=o(this.element,e.doubleTap||i),this.longTap=o(this.element,e.longTap||i),this.singleTap=o(this.element,e.singleTap||i),this.pressMove=o(this.element,e.pressMove||i),this.twoFingerPressMove=o(this.element,e.twoFingerPressMove||i),this.touchMove=o(this.element,e.touchMove||i),this.touchEnd=o(this.element,e.touchEnd||i),this.touchCancel=o(this.element,e.touchCancel||i),this._cancelAllHandler=this.cancelAll.bind(this),window.addEventListener("scroll",this._cancelAllHandler),this.delta=null,this.last=null,this.now=null,this.tapTimeout=null,this.singleTapTimeout=null,this.longTapTimeout=null,this.swipeTimeout=null,this.x1=this.x2=this.y1=this.y2=null,this.preTapPosition={x:null,y:null}};a.prototype={start:function(t){if(t.touches){this.now=Date.now(),this.x1=t.touches[0].pageX,this.y1=t.touches[0].pageY,this.delta=this.now-(this.last||this.now),this.touchStart.dispatch(t,this.element),null!==this.preTapPosition.x&&(this.isDoubleTap=this.delta>0&&this.delta<=250&&Math.abs(this.preTapPosition.x-this.x1)<30&&Math.abs(this.preTapPosition.y-this.y1)<30,this.isDoubleTap&&clearTimeout(this.singleTapTimeout)),this.preTapPosition.x=this.x1,this.preTapPosition.y=this.y1,this.last=this.now;var i=this.preV,s=t.touches.length;if(s>1){this._cancelLongTap(),this._cancelSingleTap();var n={x:t.touches[1].pageX-this.x1,y:t.touches[1].pageY-this.y1};i.x=n.x,i.y=n.y,this.pinchStartLen=e(i),this.multipointStart.dispatch(t,this.element)}this._preventTap=!1,this.longTapTimeout=setTimeout(function(){this.longTap.dispatch(t,this.element),this._preventTap=!0}.bind(this),750)}},move:function(t){if(t.touches){var i=this.preV,s=t.touches.length,n=t.touches[0].pageX,l=t.touches[0].pageY;if(this.isDoubleTap=!1,s>1){var o=t.touches[1].pageX,a=t.touches[1].pageY,r={x:t.touches[1].pageX-n,y:t.touches[1].pageY-l};null!==i.x&&(this.pinchStartLen>0&&(t.zoom=e(r)/this.pinchStartLen,this.pinch.dispatch(t,this.element)),t.angle=h(r,i),this.rotate.dispatch(t,this.element)),i.x=r.x,i.y=r.y,null!==this.x2&&null!==this.sx2?(t.deltaX=(n-this.x2+o-this.sx2)/2,t.deltaY=(l-this.y2+a-this.sy2)/2):(t.deltaX=0,t.deltaY=0),this.twoFingerPressMove.dispatch(t,this.element),this.sx2=o,this.sy2=a}else{if(null!==this.x2){t.deltaX=n-this.x2,t.deltaY=l-this.y2;var c=Math.abs(this.x1-this.x2),u=Math.abs(this.y1-this.y2);(c>10||u>10)&&(this._preventTap=!0)}else t.deltaX=0,t.deltaY=0;this.pressMove.dispatch(t,this.element)}this.touchMove.dispatch(t,this.element),this._cancelLongTap(),this.x2=n,this.y2=l,s>1&&t.preventDefault()}},end:function(t){if(t.changedTouches){this._cancelLongTap();var e=this;t.touches.length<2&&(this.multipointEnd.dispatch(t,this.element),this.sx2=this.sy2=null),this.x2&&Math.abs(this.x1-this.x2)>30||this.y2&&Math.abs(this.y1-this.y2)>30?(t.direction=this._swipeDirection(this.x1,this.x2,this.y1,this.y2),this.swipeTimeout=setTimeout((function(){e.swipe.dispatch(t,e.element)}),0)):(this.tapTimeout=setTimeout((function(){e._preventTap||e.tap.dispatch(t,e.element),e.isDoubleTap&&(e.doubleTap.dispatch(t,e.element),e.isDoubleTap=!1)}),0),e.isDoubleTap||(e.singleTapTimeout=setTimeout((function(){e.singleTap.dispatch(t,e.element)}),250))),this.touchEnd.dispatch(t,this.element),this.preV.x=0,this.preV.y=0,this.zoom=1,this.pinchStartLen=null,this.x1=this.x2=this.y1=this.y2=null}},cancelAll:function(){this._preventTap=!0,clearTimeout(this.singleTapTimeout),clearTimeout(this.tapTimeout),clearTimeout(this.longTapTimeout),clearTimeout(this.swipeTimeout)},cancel:function(t){this.cancelAll(),this.touchCancel.dispatch(t,this.element)},_cancelLongTap:function(){clearTimeout(this.longTapTimeout)},_cancelSingleTap:function(){clearTimeout(this.singleTapTimeout)},_swipeDirection:function(t,e,i,s){return Math.abs(t-e)>=Math.abs(i-s)?t-e>0?"Left":"Right":i-s>0?"Up":"Down"},on:function(t,e){this[t]&&this[t].add(e)},off:function(t,e){this[t]&&this[t].del(e)},destroy:function(){return this.singleTapTimeout&&clearTimeout(this.singleTapTimeout),this.tapTimeout&&clearTimeout(this.tapTimeout),this.longTapTimeout&&clearTimeout(this.longTapTimeout),this.swipeTimeout&&clearTimeout(this.swipeTimeout),this.element.removeEventListener("touchstart",this.start),this.element.removeEventListener("touchmove",this.move),this.element.removeEventListener("touchend",this.end),this.element.removeEventListener("touchcancel",this.cancel),this.rotate.del(),this.touchStart.del(),this.multipointStart.del(),this.multipointEnd.del(),this.pinch.del(),this.swipe.del(),this.tap.del(),this.doubleTap.del(),this.longTap.del(),this.singleTap.del(),this.pressMove.del(),this.twoFingerPressMove.del(),this.touchMove.del(),this.touchEnd.del(),this.touchCancel.del(),this.preV=this.pinchStartLen=this.zoom=this.isDoubleTap=this.delta=this.last=this.now=this.tapTimeout=this.singleTapTimeout=this.longTapTimeout=this.swipeTimeout=this.x1=this.x2=this.y1=this.y2=this.preTapPosition=this.rotate=this.touchStart=this.multipointStart=this.multipointEnd=this.pinch=this.swipe=this.tap=this.doubleTap=this.longTap=this.singleTap=this.pressMove=this.touchMove=this.touchEnd=this.touchCancel=this.twoFingerPressMove=null,window.removeEventListener("scroll",this._cancelAllHandler),null}},t.exports=a})()},"64d7":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.$attrs.slider.blocks.length?i("div",{staticClass:"relative",class:Object.values(t.$attrs.slider.css).join(" "),attrs:{"x-data":"{active:0}"},on:{click:t.next}},[i("div",{ref:t.$attrs.slider.id,staticClass:"snap overflow-x-hidden relative flex-no-wrap flex transition-all whoobe-slider",attrs:{id:t.$attrs.slider.id,slides:t.$attrs.slider.blocks.length,"x-ref":"slider"}},t._l(t.$attrs.slider.blocks,(function(e,s){return i("div",{key:s,staticClass:"w-full flex-shrink-0 overflow-hidden flex items-center justify-center"},[i("BlockContainer",{key:"slide_"+t.currentIndex,attrs:{doc:e}})],1)})),0),t.$attrs.slider.blocks.length>1?i("div",{staticClass:"opacity-0 md:opacity-100 slider-navigation cursor-pointer",class:t.navigationClass},[i("div",{ref:"prevBtn",staticClass:"slider-prev flex items-center"},[i("m-icon",{staticClass:"text-5xl",attrs:{icon:t.iconLeft}})],1),i("div",{ref:"nextBtn",staticClass:"slider-next flex items-center"},[i("m-icon",{staticClass:"text-5xl",attrs:{icon:t.iconRight}})],1)]):t._e()]):t._e()},n=[],h=(i("d3b7"),i("3ca3"),i("ddb0"),i("140a")),l=i.n(h),o={name:"BlockSliderPreview",components:{BlockContainer:function(){return i.e("chunk-2d0e53c5").then(i.bind(null,"942f"))}},data:function(){return{currentIndex:0,iconLeft:"chevron_left",iconRight:"chevron_right"}},computed:{navigationClass:function(){if(!this.$attrs.slider.data.slider.navigation)return"flex justify-center m-auto w-full bottom-0 absolute z-10 items-center";if(this.$attrs.slider||this.$attrs.slider.data||this.$attrs.slider.data.slider){var t=this.$attrs.slider.data.slider.navigation.position;return("left"===t||"right"===t)&&(this.iconLeft="expand_less",this.iconRight="expand_more"),"bottom"===t?"flex justify-center m-auto w-full bottom-0 absolute z-10 items-center":"left"===t?"flex flex-col h-full absolute top-0 left-0 justify-center items-center z-modal":"right"===t?"flex flex-col h-full absolute top-0 right-0 justify-center items-center z-modal":"top"===t?"flex justify-center m-auto w-full top-0 absolute z-10 items-center":"flex justify-center m-auto w-full bottom-0 absolute z-10 items-center"}}},methods:{next:function(){this.currentIndex<this.$attrs.slider.blocks.length-1?this.currentIndex++:this.currentIndex=0}},mounted:function(){var t=this;if(this.$attrs.slider.blocks.length>1&&(this.$refs.prevBtn.setAttribute("x-on:click","$refs.slider.scrollLeft = $refs.slider.scrollLeft - ($refs.slider.scrollWidth / "+this.$attrs.slider.blocks.length+")"),this.$refs.nextBtn.setAttribute("x-on:click","$refs.slider.scrollLeft = $refs.slider.scrollLeft + ($refs.slider.scrollWidth / "+this.$attrs.slider.blocks.length+")")),this.$attrs.slider){var e=document.getElementById(this.$attrs.slider.id);new l.a(e,{swipe:function(e){"Left"===e.direction&&t.$refs.nextBtn.click(),"Right"===e.direction&&t.$refs.prevBtn.click()},doubleTap:function(e){t.$refs.nextBtn.click()}})}}},a=o,r=(i("b318"),i("2877")),c=Object(r["a"])(a,s,n,!1,null,null,null);e["default"]=c.exports},a39b:function(t,e,i){},b318:function(t,e,i){"use strict";i("a39b")}}]);