!function(e){"use strict";var t={init:function(){var i=t,a={"jet-woo-product-gallery-grid.default":i.productGalleryGrid,"jet-woo-product-gallery-modern.default":i.productGalleryModern,"jet-woo-product-gallery-anchor-nav.default":i.productGalleryAnchorNav,"jet-woo-product-gallery-slider.default":i.productGallerySlider};if(e.each(a,function(e,t){window.elementorFrontend.hooks.addAction("frontend/element_ready/"+e,t)}),window.elementorFrontend.elements.$window.on("elementor/nested-tabs/activate",(t,a)=>{const o=e(a).find(".elementor-widget-jet-woo-product-gallery-slider"),r=o.find(".jet-woo-product-gallery-slider, .jet-woo-swiper-gallery-thumbs");r.length&&(r.each(function(){const e=this.swiper;e&&e.destroy()}),i.swiperDowngrade(),setTimeout(()=>{i.productGallerySlider(o)}))}),e(window).on("jet-popup/render-content/ajax/success",function(){i.swiperDowngrade()}),window.jetWooProductGalleryData&&window.jetWooProductGalleryData.product_types&&window.jetWooProductGalleryData.product_types.length){for(const t of window.jetWooProductGalleryData.product_types){const a=e(".woocommerce div.product").hasClass("product-type-"+t),o=e("body").hasClass("product-type-"+t);if(a||o)return void i.initVariationImageHandler()}e("body").hasClass("single-product")&&e(".jet-woo-product-gallery[data-variation-images]").length&&i.initVariationImageHandler()}},initVariationImageHandler:function(){e(document).off("show_variation.jet-woo-product-gallery reset_image.jet-woo-product-gallery").on("show_variation.jet-woo-product-gallery reset_image.jet-woo-product-gallery",(e,i)=>t.showVariationImage(e,i))},initBlocks:function(){JetPlugins.bulkBlocksInit([{block:"jet-gallery/gallery-anchor-nav",callback:t.productGalleryAnchorNav},{block:"jet-gallery/gallery-grid",callback:t.productGalleryGrid},{block:"jet-gallery/gallery-modern",callback:t.productGalleryModern},{block:"jet-gallery/gallery-slider",callback:t.productGallerySlider}])},swiperDowngrade:function(){if(!window.elementorFrontendConfig.experimentalFeatures.e_swiper_latest)return;const t=window.elementorFrontendConfig.environmentMode.isScriptDebug?"":".min";window.elementorFrontend.utils.assetsLoader.isAssetLoaded({src:`${window.elementorFrontendConfig.urls.assets}lib/swiper/v8/swiper${t}.js?ver=8.4.5`},"script")&&e("body").append(`<script src="${window.jetWooProductGalleryData.assets_path}/lib/swiper/swiper${t}.js?ver=5.3.6"><\/script>`)},showVariationImage:function(i,a){var o=e(i&&i.target?i.target:document),r=t.findVariationGalleries(o);r.length&&e.each(r,function(){var t=e(this);if(t.is("[data-variation-images]")){var i=t.data("variation-images")||{},o=t.find(".jet-woo-product-gallery-slider"),r=o.data("swiper-settings"),n=null,l=null,s=null,d=t.children().data("featured-image"),c=t.data("gallery-settings")||{},u="primaryImageIndex"in c?c.primaryImageIndex:c.videoFirst?1:0,p=u,g=o.find(".jet-woo-product-gallery__image-item").length;r&&r.loop&&g>1?(n=t.find('.jet-woo-product-gallery__image-item[data-swiper-slide-index="'+u+'"]'),l=t.find('.jet-woo-swiper-control-thumbs__item[data-swiper-slide-index="'+u+'"]')):(n=t.find(".jet-woo-product-gallery__image-item").eq(u),l=t.find(".jet-woo-swiper-control-thumbs__item").eq(u)),s=l.find("img");var w=n.find(".wp-post-image"),_=n.find("a").eq(0);if(d||(w=n.find(".wp-post-gallery")),w.wc_reset_variation_attr("src"),w.wc_reset_variation_attr("width"),w.wc_reset_variation_attr("height"),w.wc_reset_variation_attr("srcset"),w.wc_reset_variation_attr("sizes"),w.wc_reset_variation_attr("title"),w.wc_reset_variation_attr("data-caption"),w.wc_reset_variation_attr("alt"),w.wc_reset_variation_attr("data-src"),w.wc_reset_variation_attr("data-large_image"),w.wc_reset_variation_attr("data-large_image_width"),w.wc_reset_variation_attr("data-large_image_height"),n.wc_reset_variation_attr("data-thumb"),n.wc_reset_variation_attr("data-attachment-id"),_.wc_reset_variation_attr("href"),l.wc_reset_variation_attr("data-thumb"),l.wc_reset_variation_attr("data-attachment-id"),s.wc_reset_variation_attr("src"),s.wc_reset_variation_attr("width"),s.wc_reset_variation_attr("height"),s.wc_reset_variation_attr("srcset"),s.wc_reset_variation_attr("sizes"),s.wc_reset_variation_attr("title"),s.wc_reset_variation_attr("data-caption"),s.wc_reset_variation_attr("alt"),s.wc_reset_variation_attr("data-src"),s.wc_reset_variation_attr("data-large_image"),s.wc_reset_variation_attr("data-large_image_width"),s.wc_reset_variation_attr("data-large_image_height"),a&&a.image&&a.image.src&&a.image.src.length>1){var m=a.image_id?i[a.image_id]:null,h=function(t,i){var a=t.image_id?t.image_id.toString():"",r=f(i.full_src||t.image.full_src||i.src||t.image.src),n=-1;return o.find(".swiper-wrapper > .jet-woo-product-gallery__image-item:not(.swiper-slide-duplicate)").each(function(t,i){var o=e(i),l=o.find(".jet-woo-product-gallery__image:not(.image-with-placeholder):not(.jet-woo-product-gallery--with-video) img").first(),s=function(e,t){var i=e.attr("data-attachment-id")||"",a=(t.attr("class")||"").match(/wp-image-([0-9]+)/);return!i&&a&&(i=a[1]),i.toString()}(o,l),d=f(l.attr("data-large_image")||l.attr("data-src")||l.attr("src"));if(l.length)return a&&s===a||r&&d===r?(n=t,!1):void 0}),n}(a,m||{});-1!==h?p=h:m&&function(e,t){var i=t.thumb_src||e.image.thumb_src||t.src,a=t.thumb_src_w||"",o=t.thumb_src_h||"",r=t.full_src||e.image.full_src||t.src,d=e.image_id||"";w.wc_set_variation_attr("src",t.src),w.wc_set_variation_attr("height",t.src_h),w.wc_set_variation_attr("width",t.src_w),w.wc_set_variation_attr("srcset",t.srcset),w.wc_set_variation_attr("sizes",t.sizes),w.wc_set_variation_attr("title",e.image.title),w.wc_set_variation_attr("data-caption",e.image.caption),w.wc_set_variation_attr("alt",e.image.alt),w.wc_set_variation_attr("data-src",t.src),w.wc_set_variation_attr("data-large_image",t.full_src),w.wc_set_variation_attr("data-large_image_width",t.full_src_w),w.wc_set_variation_attr("data-large_image_height",t.full_src_h),n.wc_set_variation_attr("data-thumb",t.src),n.wc_set_variation_attr("data-attachment-id",d),_.wc_set_variation_attr("href",r),l.wc_set_variation_attr("data-thumb",r),l.wc_set_variation_attr("data-attachment-id",d),s.wc_set_variation_attr("src",i),s.wc_set_variation_attr("height",o),s.wc_set_variation_attr("width",a),s.wc_set_variation_attr("srcset",""),s.wc_set_variation_attr("sizes",""),s.wc_set_variation_attr("title",e.image.title),s.wc_set_variation_attr("data-caption",e.image.caption),s.wc_set_variation_attr("alt",e.image.alt),s.wc_set_variation_attr("data-src",i),s.wc_set_variation_attr("data-large_image",r),s.wc_set_variation_attr("data-large_image_width",t.full_src_w),s.wc_set_variation_attr("data-large_image_height",t.full_src_h)}(a,m)}t.data("variation-image-index",p),e(document).trigger("jet-woo-gallery-variation-image-change",[t[0],p])}function f(e){return e?e.toString().split("?")[0].replace(/^https?:/,""):""}})},findVariationGalleries:function(t){var i=t.closest(".product").find(".jet-woo-product-gallery"),a=[".elementor-location-single",".elementor",".woocommerce","main","body"];if(i.length)return i;if(!e("body").hasClass("single-product"))return e();for(var o=0;o<a.length;o++){var r=t.closest(a[o]);if(r.length&&(i=r.find(".jet-woo-product-gallery[data-variation-images]")).length)return i}return e()},ensurePhotoSwipeTemplate:function(){let t=e(".jet-woo-product-gallery-pswp");return t.length?t[0]:window.jetWooProductGalleryData&&window.jetWooProductGalleryData.photoswipe_template&&(e("body").append(window.jetWooProductGalleryData.photoswipe_template),(t=e(".jet-woo-product-gallery-pswp")).length)?t[0]:null},productGallerySlider:function(i){i.find(".jet-swiper-nav").hide();const a=i.find(".jet-woo-product-gallery-slider"),o=a.data("swiper-settings"),r=i.find(".jet-woo-product-gallery").data("gallery-settings")||i.data("gallery-settings"),n=t.getElementorElementSettings(i);if(a.find(".jet-woo-product-gallery__image-item").length>1){let s={slidesPerView:1,touchReleaseOnEdges:!0,...o};if(delete s.paginationType,o.centeredSlides&&!e.isEmptyObject(n)){s.slidesPerView=+n.slider_center_mode_slides||4,s.spaceBetween=+n.slider_center_mode_space_between?+n.slider_center_mode_space_between:0;const e={slidesPerView:"slider_center_mode_slides_",spaceBetween:"slider_center_mode_space_between_"};s.breakpoints=t.handleSwiperBreakpoints(n,s,e)}if(o.showNavigation&&(s.navigation={nextEl:".jet-swiper-button-next",prevEl:".jet-swiper-button-prev"}),o.showPagination)if("thumbnails"===o.paginationType){const r=i.find(".jet-woo-swiper-gallery-thumbs"),l=a.data("swiper-thumb-settings");let d={freeMode:o.loop,slidesPerView:4,spaceBetween:10,watchSlidesVisibility:!0,watchSlidesProgress:!0,...l};if(l.showNavigation&&(d.navigation={nextEl:".jet-thumb-swiper-nav.jet-swiper-button-next",prevEl:".jet-thumb-swiper-nav.jet-swiper-button-prev"}),!e.isEmptyObject(n)){d.slidesPerView=+n.pagination_thumbnails_columns,d.spaceBetween=+n.pagination_thumbnails_space_between?+n.pagination_thumbnails_space_between:0;const e={slidesPerView:"pagination_thumbnails_columns_",spaceBetween:"pagination_thumbnails_space_between_"};d.breakpoints=t.handleSwiperBreakpoints(n,d,e)}s.thumbs={swiper:new JetSwiper(r,d)};let c=0;window.elementorFrontend&&!e.isEmptyObject(n)?(c=+n.pagination_thumbnails_columns,"desktop"!==window.elementorFrontend.getCurrentDeviceMode()&&(c=+n["pagination_thumbnails_columns_"+window.elementorFrontend.getCurrentDeviceMode()])):e.each(l.breakpoints,(t,i)=>{e(window).width()>t&&(c=i.slidesPerView)}),c>=r.find(".jet-woo-swiper-control-thumbs__item:not(.swiper-slide-duplicate)").length&&(r.addClass("jet-woo-swiper-gallery-thumbs-no-nav"),r.find(".jet-swiper-nav").hide(),r.find(".swiper-slide-duplicate").hide())}else s.pagination={el:".swiper-pagination",type:"dynamic"!==o.paginationControllerType?o.paginationControllerType:"bullets",clickable:!0,dynamicBullets:!("dynamic"!==o.paginationControllerType&&!o.dynamicBullets)};const d=s.loop&&"vertical"===s.direction;let c=!1,u=null;const p=function(){return s.centeredSlides&&s.autoHeight&&"horizontal"===s.direction},g=function(e,t=0){if(!p())return;const i=a.find(".swiper-slide-active").first(),o=i.length?Math.ceil(i.outerHeight()):0;e.update(),e.updateAutoHeight(t),o&&(e.$wrapperEl?e.$wrapperEl.css("height",o+"px"):a.find(".swiper-wrapper").css("height",o+"px"))},w=function(e){if(!p())return;let t=0,i=0,o=0;const r=function(){const n=a.find(".swiper-slide-active").first(),l=n.find("img"),s=n.length?Math.ceil(n.outerHeight()):0,d=!l.length||l.toArray().every(function(e){return e.complete&&e.naturalHeight>0}),c=a.width()>0&&s>0&&d;if(c&&s===i?o++:(o=0,i=s),(!c||o<2)&&t<60)return t++,void requestAnimationFrame(r);g(e),requestAnimationFrame(function(){a.removeClass("jet-woo-product-gallery-slider--initializing-autoheight")})};requestAnimationFrame(r)},_=function(e){let t=0;const i=function(){const o=a.find(".swiper-slide-active");if(!(a.height()>0&&o.length&&o.height()>0)&&t<30)return t++,void requestAnimationFrame(i);e.update&&e.update(),e.setTransition&&e.setTransition(0),e.slideToLoop?e.slideToLoop(e.realIndex||0,0,!1):e.slideTo&&e.slideTo(e.activeIndex||0,0,!1),e.updateSlides&&e.updateSlides(),e.updateProgress&&e.updateProgress(),e.updateSlidesClasses&&e.updateSlidesClasses(),requestAnimationFrame(function(){a.removeClass("jet-woo-product-gallery-slider--initializing-loop")})};requestAnimationFrame(i)},m=function(e){c||(c=!0,u&&clearTimeout(u),w(e),d&&_(e))};s.on={init:function(){r.hasVideo&&o.loop&&a.find(".swiper-slide-duplicate video.jet-woo-product-video-player").removeAttr("autoplay")},imagesReady:function(){if(r.hasVideo){const t=a.find(".jet-woo-product-gallery--with-video");"self_hosted"===r.videoType&&("horizontal"===o.direction?(r.hasVideo&&"content"===r.videoIn&&r.videoAutoplay&&r.videoFirst&&(setTimeout(function(){h.updateAutoHeight(100)},300),o.autoHeight||l(t)),o.autoHeight&&t.on("click",()=>{setTimeout(function(){h.updateAutoHeight(100)},300)})):t.each(function(){r.videoAutoplay&&l(e(this)),e(this).on("click",()=>{l(e(this))})}))}if("vertical"===o.direction){a.find(".jet-woo-product-gallery__image-item img").each(function(){let t=e(this);t.height()>a.height()&&t.css({height:a.height()+"px",width:"auto"})})}m(this),e(document).on("jet-woo-gallery-variation-image-change",(t,a,n)=>{const l=a?e(a):e();if(l.length&&i.length&&l[0]!==i[0]&&!e.contains(i[0],l[0])&&!e.contains(l[0],i[0]))return;let s=Number.isInteger(n)?n:parseInt(n,10);isNaN(s)&&(s=r.videoFirst?1:0),o.loop?h.slideToLoop(s,300,!0):h.slideTo(s,300,!0),h.update(),o.autoHeight&&(p()?g(h,100):h.updateAutoHeight(100))})},slideChangeTransitionStart:function(){if(!r.hasVideo||!o.loop)return;const e=this.$wrapperEl,t=this.params;e.children("."+t.slideClass+"."+t.slideDuplicateClass).each(function(){const i=this.getAttribute("data-swiper-slide-index");this.innerHTML=e.children("."+t.slideClass+'[data-swiper-slide-index="'+i+'"]:not(.'+t.slideDuplicateClass+")").html().replace(/((?:\?|&(?:amp;)?)autoplay=)1/gi,"$10")})},slideChangeTransitionEnd:function(){r.hasVideo&&o.loop&&this.slideToLoop(this.realIndex,0,!1),g(this)},resize:function(){g(this)}},d&&a.addClass("jet-woo-product-gallery-slider--initializing-loop"),p()&&a.addClass("jet-woo-product-gallery-slider--initializing-autoheight");const h=new JetSwiper(a,s);c||(u=setTimeout(function(){m(h)},500)),o.showNavigation&&i.find(".jet-swiper-nav").show()}else i.find(".swiper-pagination").hide();function l(e){e.find(".mejs-container").hasClass("mejs-container-fullscreen")?e.find(".mejs-controls").removeAttr("style"):setTimeout(function(){e.height()>a.height()&&e.find(".mejs-controls").css({top:a.height()+"px",bottom:"auto",transform:"translateY(-100%)"})},300)}t.productGallery(i)},productGalleryGrid:function(e){t.productGallery(e)},productGalleryModern:function(e){t.productGallery(e)},productGalleryAnchorNav:function(i){var a=i.find(".jet-woo-product-gallery__image-item"),o=i.find(".jet-woo-product-gallery-anchor-nav-controller-sticky"),r=o.find('[data-role="gallery-controller"]'),n=[],l=!1,s=0,d=0,c=e("#wpadminbar"),u=i.closest(".jet-popup__container-inner"),p=u.length?u:e(window),g=p[0]===window;function w(){return g?e(document).scrollTop():p.scrollTop()}function _(){e(a).each(function(){var t,i=e(this).attr("id");n[i]=(t=e(this),g?t.offset().top:t.offset().top-p.offset().top+p.scrollTop())})}function m(){for(var t in n){if(d>=n[t]-s)e(o).find("a.current-item").removeClass("current-item"),e(o).find('a[data-index="'+t+'"]').addClass("current-item")}}c.length&&(s=c.outerHeight()),t.productGallery(i),_(),p.scroll(function(){l||(_(),d=w(),m())}),d=w(),m(),e(r).on("click",function(){m();var t=e(this).data("index"),i=n[t];if(l=!0,e(o).find("a.current-item").removeClass("current-item"),e(this).addClass("current-item"),t,e(this).parents().hasClass("jet-popup")){let t=e(this).closest(".jet-popup__container-inner");e(t).animate({scrollTop:i+1},"fast",function(){l=!1})}else e("html, body").animate({scrollTop:i-s+1},"fast",function(){l=!1});return!1});var h=null;function f(e){h||(h=window.requestAnimationFrame(function(){h=null,e()}))}function v(){var e=i.find(".jet-woo-product-gallery-anchor-nav");if(e.length){var t=e.find(".jet-woo-product-gallery-anchor-nav-items"),a=e.find(".jet-woo-product-gallery-anchor-nav-controller");if(t.length&&a.length)if("absolute"===window.getComputedStyle(a[0]).position){e.css({"min-height":""});var o=e[0].getBoundingClientRect(),r=t[0].getBoundingClientRect(),n=a[0].getBoundingClientRect(),l=r.bottom-o.top,s=n.bottom-o.top,d=Math.ceil(Math.max(l,s));d>0&&e.css("min-height",d+"px")}else e.css({"min-height":""})}}f(v),e(window).on("resize orientationchange",function(){f(v)}),i.find(".jet-woo-product-gallery__image img, .controller-item__thumbnail img").each(function(){this.complete&&this.naturalWidth||e(this).one("load",function(){f(v)})}),i.on("jetGallery:slideChange jetGallery:layoutChange jetGallery:variationChange",function(){f(v)})},productGallery:function(i){var a,o=i.data("id")||i.parent().data("block-id"),r=i.find(".jet-woo-product-gallery").data("gallery-settings")||i.data("gallery-settings"),n=i.find(".jet-woo-product-gallery__image--with-zoom"),l=i.find(".jet-woo-product-gallery__trigger, .jet-woo-product-gallery__image-overlay"),s=t.ensurePhotoSwipeTemplate(),d=i.find(".jet-woo-product-video__popup-button"),c=i.find(".jet-woo-product-video__popup-overlay"),u=i.find(".jet-woo-product-video-iframe"),p=!!u[0]&&u[0].src,g=i.find(".jet-woo-product-video-player"),w=i.find(".jet-woo-product-video-mejs-player"),_=w.data("controls")||["playpause","current","progress","duration","volume","fullscreen"],m=i.find(".jet-woo-product-video__overlay"),h=m.length>0,f=i.find(".jet-woo-product-gallery__image-overlay").length>0;a=i.find(".jet-woo-product-gallery__primary-image").length?i.find(".jet-woo-product-gallery__primary-image .jet-woo-product-gallery__image-item, .jet-woo-product-gallery__images-grid .jet-woo-product-gallery__image-item"):i.find(".jet-woo-product-gallery__image-item").filter(function(){return!e(this).closest(".swiper-slide").hasClass("swiper-slide-duplicate")});var v=b();if(r){var y={mainClass:i.parent().data("block-id")?o+"-jet-woo-product-gallery":o?"jet-woo-product-gallery-"+o:"",captionEl:r.caption?r.caption:"",fullscreenEl:!!r.fullscreen&&r.fullscreen,zoomEl:!!r.zoom&&r.zoom,shareEl:!!r.share&&r.share,counterEl:!!r.counter&&r.counter,arrowEl:!!r.arrows&&r.arrows,closeOnScroll:!1,history:!1};(r.enableGallery||f)&&(l.on("click.JetWooProductGallery",function(t){if(t.preventDefault(),e("body").hasClass("elementor-editor-active"))return;var o=e(t.target),n=i.find(".jet-woo-product-gallery__image-item.featured").hasClass("no-image"),l=o.parents(".jet-woo-product-gallery__image-item"),d=-1;a.each(function(e,t){if(t===l[0])return d=e,!1});const c=r.hasVideo&&"content"===r.videoIn&&r.videoFirst;(n||c)&&(d-=1);if(y.index=d,!s)return;new PhotoSwipe(s,PhotoSwipeUI_Default,v,y).init()}),e(document).on("jet-woo-gallery-variation-image-change",function(){v=b()})),r.enableZoom&&(j(),e(document).on("jet-woo-gallery-variation-image-change",j)),r.hasVideo&&function(){switch(r.videoIn){case"content":m[0]&&(m.on("click.JetWooProductGallery",function(t){g[0]&&function(t){let i="";e(t).hasClass("jet-woo-product-video__overlay")?(i=e(t).siblings().find(".jet-woo-product-video-player")[1],e(t).remove()):(i=e(t).parents(".jet-woo-product-video__overlay").siblings().find(".jet-woo-product-video-player")[1],e(t).parents(".jet-woo-product-video__overlay").remove());i.play(),h=!1}(t.target),u[0]&&i(t)}),r.videoAutoplay&&u[0]&&i(event)),g&&g.each(function(){e(this).on("play.JetWooProductGallery",function(){h&&(m.remove(),h=!1)})}),w[0]&&t();break;case"popup":t(),d.on("click.JetWooProductGallery",function(e){!function(){d.siblings(".jet-woo-product-video__popup-content").addClass("jet-woo-product-video__popup--show"),g[0]&&(g[0].play(),r.videoAutoplay||(g[0].pause(),g[0].currentTime=0));u[0]&&(u[0].src=p,r.videoAutoplay&&(u[0].src=u[0].src.replace("&autoplay=0","&autoplay=1")))}()}),c.on("click.JetWooProductGallery",function(e){!function(){d.siblings(".jet-woo-product-video__popup-content").removeClass("jet-woo-product-video__popup--show"),u[0]&&(u[0].src="");g&&(g[0].currentTime=0,g[0].pause())}()})}function t(){w.mediaelementplayer({videoVolume:"horizontal",hideVolumeOnTouchDevices:!1,enableProgressTooltip:!1,features:_,autoplay:!1,pauseOtherPlayers:!1}).load()}function i(t){if(r.videoAutoplay)u.each(function(){e(this).parents(".jet-woo-product-gallery__image-item").hasClass("swiper-slide-duplicate")&&(e(this)[0].src=e(this)[0].src.replace("&autoplay=1","&autoplay=0"))});else{let i="";(i=e(t.target).hasClass("jet-woo-product-video__overlay")?e(t.target).siblings().find(".jet-woo-product-video-iframe"):e(t.target).parents(".jet-woo-product-video__overlay").siblings().find(".jet-woo-product-video-iframe"))[0].src=i[0].src.replace("&autoplay=0","&autoplay=1")}m.remove(),h=!1}}()}function j(){var t=!1,i={magnify:r.zoomMagnify,touch:!1};n.each(function(i,a){var o=e(a).find("img");if(o.length){var r=o.parent().width()||0;return(o.data("large_image_width")||o.get(0)&&o.get(0).naturalWidth||0)>r?(t=!0,!1):void 0}}),t&&("ontouchstart"in document.documentElement&&(i.on="click"),n.trigger("zoom.destroy"),n.zoom(i))}function b(){var t=[];return a.length>0&&a.each(function(i,a){var o=e(a).find(".jet-woo-product-gallery__image:not(.image-with-placeholder) img");if(o.length){var r={src:o.attr("data-large_image"),w:o.attr("data-large_image_width"),h:o.attr("data-large_image_height"),title:o.attr("data-caption")?o.attr("data-caption"):o.attr("title")};t.push(r)}}),t}e(".jet-woo-product-gallery__image-item").find("img").on("click",function(e){e.preventDefault()})},getElementorElementSettings:function(e){return window.elementorFrontend&&window.elementorFrontend.isEditMode()&&e.hasClass("elementor-element-edit-mode")?t.getEditorElementSettings(e):e.data("settings")||{}},getEditorElementSettings:function(e){var t,i=e.data("model-cid");return i&&window.elementorFrontend.hasOwnProperty("config")&&window.elementorFrontend.config.hasOwnProperty("elements")&&window.elementorFrontend.config.elements.hasOwnProperty("data")&&(t=window.elementorFrontend.config.elements.data[i])?t.toJSON():{}},handleSwiperBreakpoints:function(e,t,i){const a=window.elementorFrontend.config.responsive.activeBreakpoints,o=elementorFrontend.breakpoints.getBreakpointValues(),r={mobile:2,tablet:3};let n=t.slidesPerView,l=10;return t.breakpoints={},Object.keys(a).reverse().forEach(o=>{const s=r[o]?r[o]:n;l=+e[i.spaceBetween+o]?+e[i.spaceBetween+o]:0,t.breakpoints[a[o].value]={slidesPerView:+e[i.slidesPerView+o]||s,spaceBetween:l},n=+e[i.slidesPerView+o]||s}),Object.keys(t.breakpoints).forEach(e=>{const i=parseInt(e);let r;if(i===a.mobile.value||i+1===a.mobile.value)r=0;else if(!a.widescreen||i!==a.widescreen.value&&i+1!==a.widescreen.value){const e=o.findIndex(e=>i===e||i+1===e);r=o[e-1]}else r=i;t.breakpoints[r]=t.breakpoints[i],t.breakpoints[i]={slidesPerView:t.slidesPerView,spaceBetween:t.spaceBetween}}),t.breakpoints}};e(window).on("elementor/frontend/init",t.init),window.JetPlugins&&(e(function(){JetPlugins.init()}),window.addEventListener("DOMContentLoaded",function(){t.initBlocks()})),window.JetGallery=t}(jQuery);