1(window.webpackJsonp=window.webpackJsonp||[]).push([[164],{4008:function(e,t,n){e.exports={}},5023:function(e,t,n){"use strict";n(4008)},957:function(e,t,n){"use strict";n.r(t);var r=n(204),l=n(1647),o=n(1634),d=n(3);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(d.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(165),n(7),n(8);var h=n(24),f=n(149),x=n(1477),w=n(59),m=n(1),y=n(34),_={name:"KaGallarySlider",components:{VMedia:h.VMedia,VSwiper:h.VSwiper,VSwiperSlide:h.VSwiperSlide,VSwiperNavigation:h.VSwiperNavigation,KaSwiperPagination:f.KaSwiperPagination},mixins:[w.block],data:()=>({mdiCloseCircleOutline:y.q,mdiChevronLeft:y.j,mdiChevronRight:y.k,SWIPER_DIALOG_CONFIG:x.SWIPER_DIALOG_CONFIG,SWIPER_CONFIG:x.SWIPER_CONFIG,widthMedia:1324,heightMedia:744,realSlideIndex:0,activeSlideIndex:0,maxTextHeight:100,dialog:!1,navigationInitFrameId:null,swiperOptions:Object(m.hb)(x.SWIPER_CONFIG),swiperDialogOptions:Object(m.hb)(x.SWIPER_DIALOG_CONFIG)}),computed:{swiperRef(){var e;return null===(e=this.$refs.swiper)||void 0===e?void 0:e.swiper},dialogSwiperRef(){var e;return null===(e=this.$refs.dialogSwiper)||void 0===e?void 0:e.swiper},innerTextRef(){return this.$refs.innerTextContainer},textContainerRef(){return this.$refs.textContainer},activeTextSlide(){var e,t=null===(e=this.fields)||void 0===e?void 0:e.items;return this.isNotEmptyArray(t)?t[this.realSlideIndex>=0?this.realSlideIndex%t.length:0]:null},slideTitle(){var e,t=this.activeTextSlide;return null!==(e=null==t?void 0:t.title)&&void 0!==e?e:""},slideDescription(){var e,t=this.activeTextSlide;return null!==(e=null==t?void 0:t.description)&&void 0!==e?e:""},slides(){var e=this.fields.items;if(Object(m.Sb)(e))for(;e.length<x.MIN_SLIDE_COUNT;)e=[...e,...e];return e}},watch:{dialog(){this.dialogSwiperRef.slideToLoop(this.realSlideIndex)}},mounted(){this.$nextTick((()=>{this.initializeSwiperNavigations(),this.setHandlersOnSwiper()}))},beforeDestroy(){null!==this.navigationInitFrameId&&cancelAnimationFrame(this.navigationInitFrameId)},methods:{isNotEmptyArray:m.Sb,generateSwiperNavOptions:m.hb,mediaConstructor:(e,t,n,r)=>({src:e,type:t,width:n,height:r}),setRealSwiperIndex(){var e;this.realSlideIndex=null===(e=this.swiperRef)||void 0===e?void 0:e.realIndex},setActiveSwiperIndex(){var e;this.activeSlideIndex=null===(e=this.swiperRef)||void 0===e?void 0:e.activeIndex},initializeSwiperNavigation(e,t){var n=null==t?void 0:t.$el,r=null==n?void 0:n.querySelector(".swiper-button-prev"),l=null==n?void 0:n.querySelector(".swiper-button-next");return!!(null!=e&&e.navigation&&r&&l)&&(e.navigation.destroy(),e.params.navigation.prevEl=r,e.params.navigation.nextEl=l,e.navigation.init(),e.navigation.update(),!0)},initializeSwiperNavigations(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.initializeSwiperNavigation(this.swiperRef,this.$refs.mainNavigation),n=this.initializeSwiperNavigation(this.dialogSwiperRef,this.$refs.dialogNavigation);this.navigationInitFrameId=t&&n||!(e<10)?null:requestAnimationFrame((()=>this.initializeSwiperNavigations(e+1)))},setHandlersOnSwiper(){var e;null===(e=this.swiperRef)||void 0===e||e.on("activeIndexChange",(()=>{this.setActiveSwiperIndex(),this.setRealSwiperIndex(),this.getMaxTextHeight(),this.setHeightToTextContainer(),this.initSlideMultiplier()}))},initSlideMultiplier(){this.isNotEmptyArray(this.swiperRef.slides)&&this.swiperRef.slides.forEach(((e,t)=>{if(t>this.activeSlideIndex){var n=t-this.activeSlideIndex,r=1===n?n:1.5*n;e.style.setProperty("--multiplier",r)}}))},getMaxTextHeight(){if(this.innerTextRef instanceof HTMLElement){var e=this.innerTextRef.offsetHeight;this.maxTextHeight<e&&(this.maxTextHeight=e)}},setHeightToTextContainer(){var e=Object(h.toRootElement)(this.textContainerRef);e&&(e.style.height=this.maxTextHeight+x.PAGINATION_HEIGHT+"px")}}},S=_,C=(n(5023),n(2)),component=Object(C.a)(S,(function(){var e=this,t=e._self._c;return e.isNotEmptyArray(e.slides)?t("div",{staticClass:"gallary-slider"},[t("div",{staticClass:"gallary-slider__main",attrs:{role:"button",tabindex:"0"},on:{click:function(t){e.dialog=!0}}},[t("v-swiper",{ref:"swiper",attrs:{options:e.swiperOptions}},e._l(e.slides,(function(n,r){return t("v-swiper-slide",{key:r,staticClass:"gallary-slider__slide px-sm-2 px-1 d-flex align-center justify-center",class:{image:"image"===n.type,video:"video"===n.type}},[t("client-only",{scopedSlots:e._u([{key:"placeholder",fn:function(){return["image"===n.type&&n.source?t("nuxt-img",{staticClass:"gallary-slider__ssr-img",attrs:{src:e.$img(n.source,{width:e.widthMedia,height:e.heightMedia,fit:"cover"}),width:e.widthMedia,height:e.heightMedia,fit:"cover",alt:"",loading:"eager"}}
1):e._e()]},proxy:!0}],null,!0)},[t("v-media",{staticClass:"gallary-slider__media",attrs:{items:[v({},e.mediaConstructor(n.source,n.type,e.widthMedia,e.heightMedia))]}})],1)],1)})),1)],1),e._v(" "),t(l.a,{attrs:{eager:"","max-width":"1300"},model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[t("div",{staticClass:"gallary-slider-dialog"},[t("v-swiper",{ref:"dialogSwiper",attrs:{options:e.swiperDialogOptions}},e._l(e.slides,(function(n,r){return t("v-swiper-slide",{key:r,staticClass:"d-flex align-center justify-center",class:{image:"image"===n.type,video:"video"===n.type}},[t("v-media",{staticClass:"gallary-slider-dialog__media",attrs:{items:[v({},e.mediaConstructor(n.source,n.type,2*e.widthMedia,2*e.heightMedia))]}})],1)})),1),e._v(" "),t("v-swiper-navigation",{ref:"dialogNavigation",staticClass:"gallary-slider-dialog__navigation d-flex justify-space-between",attrs:{navigation:e.swiperDialogOptions.navigation},scopedSlots:e._u([{key:"content-prev",fn:function(){return[t(o.a,{attrs:{color:"contrast",large:""}},[e._v("\n "+e._s(e.mdiChevronLeft)+"\n ")])]},proxy:!0},{key:"content-next",fn:function(){return[t(o.a,{attrs:{color:"contrast",large:""}},[e._v("\n "+e._s(e.mdiChevronRight)+"\n ")])]},proxy:!0}],null,!1,707862052)}),e._v(" "),t(o.a,{staticClass:"gallary-slider-dialog__close",attrs:{color:"contrast"},on:{click:function(t){e.dialog=!1}}},[e._v("\n "+e._s(e.mdiCloseCircleOutline)+"\n ")])],1)]),e._v(" "),t(r.default,{ref:"textContainer",staticClass:"d-flex justify-center"},[t("div",{staticClass:"gallary-slider__container"},[t("div",{ref:"innerTextContainer",staticClass:"text-center textPrimary--text pt-5"},[e.slideTitle?t("div",{staticClass:"text-mob-h3 text-lg-h3"},[e._v("\n "+e._s(e.slideTitle)+"\n ")]):e._e(),e._v(" "),e.slideDescription?t("div",{staticClass:"text-mob-body-1 text-lg-body-1 mt-2"},[e._v("\n "+e._s(e.slideDescription)+"\n ")]):e._e()]),e._v(" "),t("v-swiper-navigation",{ref:"mainNavigation",staticClass:"gallary-slider__navigation d-none d-md-flex",attrs:{navigation:e.swiperOptions.navigation},scopedSlots:e._u([{key:"content-prev",fn:function(){return[t(o.a,{attrs:{color:"textPrimary",large:""}},[e._v("\n "+e._s(e.mdiChevronLeft)+"\n ")])]},proxy:!0},{key:"content-next",fn:function(){return[t(o.a,{attrs:{color:"textPrimary",large:""}},[e._v("\n "+e._s(e.mdiChevronRight)+"\n ")])]},proxy:!0}],null,!1,1803550948)}),e._v(" "),t("ka-swiper-pagination",{staticClass:"gallary-slider__pagination d-md-none mt-5"})],1)])],1):e._e()}),[],!1,null,"38d48f93",null);t.default=component.exports}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.