(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{572:function(a,b,c){var d=c(634);"string"==typeof d&&(d=[[a.i,d,""]]),d.locals&&(a.exports=d.locals);var e=c(17).default,f=e("be4123f2",d,!1,{})},633:function(a,b,c){"use strict";var d=c(572),e=c.n(d)},634:function(){},648:function(a,b,c){"use strict";c.r(b);var d=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("div",{staticClass:"content"},[c("hooper",{attrs:{settings:a.hooperSettings}},[a._l(a.data,function(b,d){return c("slide",{key:d},[c("a",{staticClass:"js-thumbnail",staticStyle:{cursor:"default"},attrs:{rel:"group",href:b},on:{click:function(){return a.handleProductShowClick("image-carousel"+d)}}},[!1==a.is_admin?c("img",{key:a.updateComponent,ref:"image-carousel"+d,refInFor:!0,staticClass:"load-image visible-block",attrs:{src:b,"data-src":b}}):!0==a.is_admin?c("img",{ref:"image-carousel"+d,refInFor:!0,staticClass:"load-image visible-block",attrs:{src:b,"data-src":b}}):a._e()])])}),a._v(" "),c("navigation",{attrs:{slot:"hooper-addons"},slot:"hooper-addons"})],2)],1)};d._withStripped=!0;var e=c(632),f={name:"BaseCarousel",components:{Hooper:e.a,Slide:e.d,Navigation:e.b,HooperPagination:e.c},props:{options:Object,data:Array,typezoom:Object,wg24tipozoomprod:String,is_admin:{type:Boolean,require:!1}},data:function(){return{hooperSettings:this.options,updateComponent:0}},methods:{handleProductShowClick:function(a){if(event.preventDefault(),this.wg24tipozoomprod==this.typezoom.Tp_Fancybox)$(".js-thumbnail").fancybox({prevEffect:"elastic",nextEffect:"elastic",closeBtn:!0,nextClick:!0,type:"image",beforeLoad:function(){"video"==this.element[0].dataset.type&&(this.type="iframe")}});else if(this.wg24tipozoomprod==this.typezoom.Tp_PhotoSwipe){var b=a.at(-1);$("#main-image").attr("data-index",b),this.openPhotoSwipe()}else if(this.wg24tipozoomprod==this.typezoom.Tp_ElevateZoom){document.querySelectorAll(".border-active").forEach(function(a){a.classList.remove("border-active")}),this.$refs[a][0].classList.add("border-active"),$(".zoomContainer").remove(),$("#main-image").removeData("elevateZoom"),$("#main-image").attr("src",this.$refs[a][0].src),$("#main-image").data("zoom-image",this.$refs[a][0].src),$("#main-image").elevateZoom({gallery:"thumbnails",cursor:"crosshair",containLensZoom:!0,zoomType:"inner"});var c=a.at(-1);$("#main-image").attr("data-index",c)}else if(this.wg24tipozoomprod==this.typezoom.Tp_Cloudzoom){document.querySelectorAll(".border-active").forEach(function(a){a.classList.remove("border-active")}),this.$refs[a][0].classList.add("border-active"),$(".zoomContainer").remove(),$("#main-image").removeData("elevateZoom"),$("#main-image").attr("src",this.$refs[a][0].src),$("#main-image").data("zoom-image",this.$refs[a][0].src),$("#main-image").elevateZoom({gallery:"thumbnails",cursor:"crosshair",containLensZoom:!0,zoomType:"window"});var d=a.at(-1);$("#main-image").attr("data-index",d)}},openPhotoSwipe:function(){var a=document.querySelectorAll(".pswp")[0],b=document.getElementById("main-image"),c=[];c[0]={src:b.getAttribute("data-zoom-image"),w:parseInt(b.getAttribute("data-w"),10),h:parseInt(b.getAttribute("data-h"),10)};for(var d=document.querySelectorAll(".js-thumbnail"),e=0;e<d.length;e++)c[e]="video"==$(d[e]).data("type")?{html:"<div class=\"flex full-height middle-xs\">"+$(d[e]).attr("href")+"</div>"}:{src:d[e].getAttribute("href"),w:parseInt(b.getAttribute("data-w"),10),h:parseInt(b.getAttribute("data-h"),10)};var f={history:!1,focus:!1,shareEl:!1,showAnimationDuration:0,hideAnimationDuration:0,index:parseInt(b.getAttribute("data-index"),10)},g=new window.PhotoSwipe(a,window.PhotoSwipeUI_Default,c,f);g.init()},forceRerender:function(){this.updateComponent+=1}},mounted:function(){(this.wg24tipozoomprod==this.typezoom.Tp_Cloudzoom||this.wg24tipozoomprod==this.typezoom.Tp_ElevateZoom)&&this.$refs["image-carousel0"][0].classList.add("border-active")}},g=c(633),h=c(545),i=Object(h.a)(f,d,[],!1,null,null,null);i.options.__file="assets/components/elements/BaseCarousel/index.vue";b["default"]=i.exports}}]);