!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
!function(){var M=window.jQuery,T=M(window);M.fn.stick_in_parent=function(t){var y,i,o,s,n,_=(t=null==t?{}:t).sticky_class,b=t.inner_scrolling,w=t.recalc_every,C=t.parent,I=t.offset_top,x=t.spacer,z=t.bottoming;for(null==I&&(I=0),null==C&&(C=void 0),null==b&&(b=!0),null==_&&(_="is_stuck"),y=M(document),null==z&&(z=!0),o=function(e,t,c,r,l,a,i,p){var u,o,f,d,h,k,g,m,s,v,n;if(!e.data("sticky_kit")){if(e.data("sticky_kit",!0),h=y.height(),g=e.parent(),!(g=null!=C?g.closest(C):g).length)throw"failed to find stick parent";if(u=f=!1,null!=x?x&&e.closest(x):M("<div />"),(m=function(){var t,i,o;if(!p)return h=y.height(),t=parseInt(g.css("border-top-width"),10),i=parseInt(g.css("padding-top"),10),parseInt(g.css("padding-bottom"),10),c=g.offset().top+t+i,r=g.height(),f&&(u=f=!1,e.css({position:"",top:"",width:"",bottom:""}).removeClass(_),o=!0),l=e.offset().top-(parseInt(e.css("margin-top"),10)||0)-I,a=e.outerHeight(!0),e.css("float"),o?n():void 0})(),a!==r)return d=void 0,k=I,v=w,n=function(){var t,i,o,s,n;p||(o=!1,null!=v&&--v<=0&&(v=w,m(),o=!0),o||y.height()===h||(m(),o=!0),o=T.scrollTop(),null!=d&&(i=o-d),d=o,f?(z&&(s=r+c<o+a+k,u)&&!s&&(u=!1,e.css({position:"sticky",bottom:"",top:k}).trigger("sticky_kit:unbottom")),o<l&&(f=!1,k=I,e.css(t={position:"",width:"",top:""}).removeClass(_).trigger("sticky_kit:unstick")),b&&(n=T.height())<a+I&&(u||(k-=i,k=Math.max(n-a,k),k=Math.min(I,k),f&&e.css({top:k+"px"})))):l<o&&(f=!0,t={position:"sticky",top:k},e.css(t).addClass(_),e.trigger("sticky_kit:stick")),f&&z&&(null==s&&(s=r+c<o+a+k),!u)&&s&&(u=!0,"static"===g.css("position"))&&g.css({position:"relative"}))},s=function(){return m(),n()},o=function(){if(p=!0,T.off("touchmove",n),T.off("scroll",n),T.off("resize",s),M(document.body).off("sticky_kit:recalc",s),e.off("sticky_kit:detach",o),e.removeData("sticky_kit"),e.css({position:"",bottom:"",top:"",width:""}),g.position("position",""),f)return e.removeClass(_)},T.on("touchmove",n),T.on("scroll",n),T.on("resize",s),M(document.body).on("sticky_kit:recalc",s),e.on("sticky_kit:detach",o),setTimeout(n,0)}},s=0,n=this.length;s<n;s++)i=this[s],o(M(i));return this}}.call(this);
!function(e){woodmartThemeModule.$document.on("wdHeaderBuilderInited",function(){woodmartThemeModule.stickyDetails()}),woodmartThemeModule.stickyDetails=function(){!e(".single-product-page").hasClass("wd-sticky-on")||woodmartThemeModule.$window.width()<=1024||e(".entry-summary").each(function(){var t=e(this),o=parseInt(woodmart_settings.sticky_product_details_offset),i=t.find(".summary-inner"),d=t.parent().find(".woocommerce-product-gallery");i.trigger("sticky_kit:detach"),d.trigger("sticky_kit:detach"),d.imagesLoaded(function(){var t=i.outerHeight()-d.outerHeight(),e=parseInt(woodmart_settings.sticky_product_details_different);t<-e?i.stick_in_parent({offset_top:o}):e<t&&d.stick_in_parent({offset_top:o}),woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){woodmartThemeModule.$window.width()<=1024?(i.trigger("sticky_kit:detach"),d.trigger("sticky_kit:detach")):(i.outerHeight()<d.outerHeight()?i:d).stick_in_parent({offset_top:o})},300))})})},e(document).ready(function(){woodmartThemeModule.stickyDetails()})}(jQuery);
!function(n){woodmartThemeModule.$document.on("wdReplaceMainGalleryNotQuickView wdShowVariationNotQuickView wdResetVariation",function(){setTimeout(function(){woodmartThemeModule.initZoom()},300)}),n.each(["frontend/element_ready/wd_single_product_gallery.default"],function(e,o){woodmartThemeModule.wdElementorAddAction(o,function(){woodmartThemeModule.initZoom()})}),woodmartThemeModule.initZoom=function(){var o=n(".woocommerce-product-gallery__wrapper:not(.quick-view-gallery)");if("yes"!==woodmart_settings.zoom_enable)return!1;var t={touch:!1},e=("ontouchstart"in window&&(t.on="click"),n(".woocommerce-product-gallery"));function i(e){e.find("img").data("large_image_width")>e.width()&&(e.trigger("zoom.destroy"),e.zoom(t))}e.hasClass("thumbs-position-bottom")||e.hasClass("thumbs-position-left")?(document.querySelector(".woocommerce-product-gallery__wrapper:not(.quick-view-gallery)").addEventListener("wdSlideChange",function(e){i(o.find(".wd-carousel-item").eq(e.target.swiper.activeIndex).find(".woocommerce-product-gallery__image"))}),i(o.find(".wd-carousel-item").eq(0).find(".woocommerce-product-gallery__image"))):o.find(".wd-carousel-item").each(function(){i(n(this).find(".woocommerce-product-gallery__image"))})},n(document).ready(function(){woodmartThemeModule.initZoom()})}(jQuery);