!function(t){function e(e){for(var i,r,a=e[0],s=e[1],n=0,u=[];n'),this.$notice=t('
'),this.$target.on({"mousemove.easyzoom touchmove.easyzoom":t.proxy(this._onMove,this),"mouseleave.easyzoom touchend.easyzoom":t.proxy(this._onLeave,this),"mouseenter.easyzoom touchstart.easyzoom":t.proxy(this._onEnter,this)}),this.opts.preventClicks&&this.$target.on("click.easyzoom",(function(t){t.preventDefault()}))},c.prototype.show=function(t,a){var s=this;if(!1!==this.opts.beforeShow.call(this)){if(!this.isReady)return this._loadImage(this.$link.attr(this.opts.linkAttribute),(function(){!s.isMouseOver&&a||s.show(t)}));this.$target.append(this.$flyout);var n=this.$target.outerWidth(),c=this.$target.outerHeight(),u=this.$flyout.width(),l=this.$flyout.height(),d=this.$zoom.width(),h=this.$zoom.height();e=Math.ceil(d-u),i=Math.ceil(h-l),e<0&&(e=0),i<0&&(i=0),o=e/n,r=i/c,this.isOpen=!0,this.opts.onShow.call(this),t&&this._move(t)}},c.prototype._onEnter=function(t){var e=t.originalEvent.touches;this.isMouseOver=!0,e&&1!=e.length||(t.preventDefault(),this.show(t,!0))},c.prototype._onMove=function(t){this.isOpen&&(t.preventDefault(),this._move(t))},c.prototype._onLeave=function(){this.isMouseOver=!1,this.isOpen&&this.hide()},c.prototype._onLoad=function(t){t.currentTarget.width&&(this.isReady=!0,this.$notice.detach(),this.$flyout.html(this.$zoom),this.$target.removeClass("is-loading").addClass("is-ready"),t.data.call&&t.data())},c.prototype._onError=function(){var t=this;this.$notice.text(this.opts.errorNotice),this.$target.removeClass("is-loading").addClass("is-error"),this.detachNotice=setTimeout((function(){t.$notice.detach(),t.detachNotice=null}),this.opts.errorDuration)},c.prototype._loadImage=function(e,i){var o=new Image;this.$target.addClass("is-loading").append(this.$notice.text(this.opts.loadingNotice)),this.$zoom=t(o).on("error",t.proxy(this._onError,this)).on("load",i,t.proxy(this._onLoad,this)),o.style.position="absolute",o.src=e},c.prototype._move=function(t){if(0===t.type.indexOf("touch")){var n=t.touches||t.originalEvent.touches;a=n[0].pageX,s=n[0].pageY}else a=t.pageX||a,s=t.pageY||s;var c=this.$target.offset(),u=a-c.left,l=s-c.top,d=Math.ceil(u*o),h=Math.ceil(l*r);if(d<0||h<0||eo)?e.val(o):e.val((i+parseFloat(a)).toFixed(a.uxGetDecimals())):r&&(r===i||i0&&e.val((i-parseFloat(a)).toFixed(a.uxGetDecimals())),e.trigger("change")})),String.prototype.uxGetDecimals||(String.prototype.uxGetDecimals=function(){var t=(""+this).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0})}))},51:function(t,e){Flatsome.behavior("add-qty",{attach:function(t){jQuery(".quantity",t).addQty()}})},52:function(t,e){Flatsome.behavior("equalize-box",{attach:function(t){var e={ScreenSize:{LARGE:1,MEDIUM:2,SMALL:3},equalizeItems:function(t){var e=this;e.maxHeight=0,e.rowEnd=e.disablePerRow?e.boxCount:e.colPerRow,e.$items=[],e.rating={present:!1,height:0,dummy:''},e.swatches={present:!1,height:0,dummy:''},jQuery(t,e.currentElement).each((function(t){var i=jQuery(this);e.$items.push(i),i.height(""),i.children(".js-star-rating").remove();var o=i.children(".star-rating");o.length&&(e.rating.present=!0,e.rating.height=o.height()),i.children(".js-ux-swatches").remove();var r=i.children(".ux-swatches.ux-swatches-in-loop");r.length&&(e.swatches.present=!0,e.swatches.height=r.height()),i.height()>e.maxHeight&&(e.maxHeight=i.height()),t!==e.rowEnd-1&&t!==e.boxCount-1||(e.$items.forEach((function(t){t.height(e.maxHeight),e.maybeAddDummyRating(t),e.maybeAddDummySwatches(t)})),e.rowEnd+=e.colPerRow,e.maxHeight=0,e.$items=[],e.rating.present=!1,e.swatches.present=!1)}))},getColsPerRow:function(){var t,e=jQuery(this.currentElement).attr("class");switch(this.getScreenSize()){case this.ScreenSize.LARGE:return(t=/large-columns-(\d+)/g.exec(e))?parseInt(t[1]):3;case this.ScreenSize.MEDIUM:return(t=/medium-columns-(\d+)/g.exec(e))?parseInt(t[1]):3;case this.ScreenSize.SMALL:return(t=/small-columns-(\d+)/g.exec(e))?parseInt(t[1]):2}},maybeAddDummyRating:function(t){var e=t;this.rating.present&&e.hasClass("price-wrapper")&&(e.children(".star-rating").length||(e.prepend(this.rating.dummy),e.children(".js-star-rating").height(this.rating.height)))},maybeAddDummySwatches:function(t){var e=t;this.swatches.present&&(e.children(".ux-swatches.ux-swatches-in-loop").length||(e.prepend(this.swatches.dummy),e.children(".js-ux-swatches").height(this.swatches.height)))},getScreenSize:function(){return window.matchMedia("(min-width: 850px)").matches?this.ScreenSize.LARGE:window.matchMedia("(min-width: 550px) and (max-width: 849px)").matches?this.ScreenSize.MEDIUM:window.matchMedia("(max-width: 549px)").matches?this.ScreenSize.SMALL:void 0},init:function(){var e=this,i=[".product-title",".price-wrapper",".box-excerpt",".add-to-cart-button"];jQuery(".equalize-box",t).each((function(t,o){e.currentElement=o,e.colPerRow=e.getColsPerRow(),1!==e.colPerRow&&(e.disablePerRow=jQuery(o).hasClass("row-slider")||jQuery(o).hasClass("row-grid"),e.boxCount=jQuery(".box-text",e.currentElement).length,i.forEach((function(t){e.equalizeItems(".box-text "+t)})),e.equalizeItems(".box-text"))}))}};e.init(),jQuery(window).on("resize",(function(){e.init()})),jQuery(document).on("flatsome-equalize-box",(function(){e.init()}))}})},53:function(t,e,i){"use strict";i.r(e),i(49),i(50),i(51),i(52);var o=i(1);Flatsome.behavior("quick-view",{attach:function(t){"uxBuilder"!==jQuery("html").attr("ng-app")&&jQuery(".quick-view",t).each((function(t,e){jQuery(e).hasClass("quick-view-added")||(jQuery(e).on("click",(function(t){if(""!=jQuery(this).attr("data-prod")){jQuery(this).parent().parent().addClass("processing");var e={action:"flatsome_quickview",product:jQuery(this).attr("data-prod")};jQuery.post(flatsomeVars.ajaxurl,e,(function(t){Object(o.a)().then((function(){jQuery(".processing").removeClass("processing"),jQuery.magnificPopup.open({removalDelay:300,autoFocusLast:!1,closeMarkup:flatsomeVars.lightbox.close_markup,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,items:{src:'",type:"inline"}});var e=jQuery(".product-gallery-slider img",t).length>1;setTimeout((function(){var t=jQuery(".product-lightbox");t.imagesLoaded((function(){jQuery(".product-lightbox .slider").lazyFlickity({cellAlign:"left",wrapAround:!0,autoPlay:!1,prevNextButtons:!0,adaptiveHeight:!0,imagesLoaded:!0,dragThreshold:15,pageDots:e,rightToLeft:flatsomeVars.rtl})})),Flatsome.attach("tooltips",t)}),300);var i=jQuery(".product-lightbox form.variations_form");jQuery(".product-lightbox form").hasClass("variations_form")&&i.wc_variation_form();var o=jQuery(".product-lightbox .product-gallery-slider"),r=jQuery(".product-lightbox .product-gallery-slider .slide.first img"),a=jQuery(".product-lightbox .product-gallery-slider .slide.first a"),s=r.attr("data-src")?r.attr("data-src"):r.attr("src"),n=function(){o.data("flickity")&&o.flickity("select",0)},c=function(){o.data("flickity")&&o.imagesLoaded((function(){o.flickity("resize")}))};o.one("flatsome-flickity-ready",(function(){i.on("show_variation",(function(t,e){e.image.src?(r.attr("src",e.image.src).attr("srcset",""),a.attr("href",e.image_link),n(),c()):e.image_src&&(r.attr("src",e.image_src).attr("srcset",""),a.attr("href",e.image_link),n(),c())})),i.on("hide_variation",(function(t,e){r.attr("src",s).attr("srcset",""),c()})),i.on("click",".reset_variations",(function(){r.attr("src",s).attr("srcset",""),n(),c()}))})),jQuery(".product-lightbox .quantity").addQty()}))})),t.preventDefault()}})),jQuery(e).addClass("quick-view-added"))}))}});var r=!1,a=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);function s(t){if(jQuery(".cart-item .nav-dropdown").length)jQuery(".cart-item").addClass("current-dropdown cart-active"),jQuery(".shop-container").on("click",(function(){jQuery(".cart-item").removeClass("current-dropdown cart-active")})),jQuery(".cart-item").hover((function(){jQuery(".cart-active").removeClass("cart-active")})),setTimeout((function(){jQuery(".cart-active").removeClass("current-dropdown")}),t);else{var e=0;jQuery.fn.magnificPopup&&(e=jQuery.magnificPopup.open?0:300)&&jQuery.magnificPopup.close(),setTimeout((function(){jQuery(".cart-item .off-canvas-toggle").trigger("click")}),e)}}a||(r=jQuery(".has-image-zoom .slide").easyZoom({loadingNotice:"",preventClicks:!1})),jQuery("table.my_account_orders").wrap('
'),jQuery((function(t){if(document.body.classList.contains("single-product")){var e=window.location.hash,i=window.location.href;(e.toLowerCase().indexOf("comment-")>=0||"#comments"===e||"#reviews"===e||"#tab-reviews"===e||i.indexOf("comment-page-")>0||i.indexOf("cpage=")>0)&&o(),t("a.woocommerce-review-link").on("click",(function(t){t.preventDefault(),history.pushState(null,null,"#reviews"),o()}))}function o(){var e,i;(i=(e=t(".reviews_tab")).length?e:t("#reviews").closest(".accordion-item")).length&&i.find("a:not(.active):first").trigger("click"),setTimeout((function(){t.scrollTo("#reviews",{duration:300,offset:-200})}),500)}})),jQuery(".single_add_to_cart_button").on("click",(function(){var t=jQuery(this),e=t.closest("form.cart");e?e.on("submit",(function(){t.addClass("loading")})):t.hasClass("disabled")||t.addClass("loading"),jQuery(window).on("pageshow",(function(){t.removeClass("loading")}))})),jQuery(document).ready((function(){var t=jQuery(".product-thumbnails .first img").attr("data-src")?jQuery(".product-thumbnails .first img").attr("data-src"):jQuery(".product-thumbnails .first img").attr("src"),e=jQuery("form.variations_form"),i=jQuery(".product-gallery-slider"),o=function(){r&&r.length&&r.filter(".has-image-zoom .slide.first").data("easyZoom").swap(jQuery(".has-image-zoom .slide.first img").attr("src"),jQuery(".has-image-zoom .slide.first img").attr("data-large_image"))},s=function(){i.data("flickity")&&i.flickity("select",0)},n=function(){i.data("flickity")&&i.imagesLoaded((function(){i.flickity("resize")}))};i.one("flatsome-flickity-ready",(function(){a&&n(),e.on("show_variation",(function(e,i){i.hasOwnProperty("image")&&i.image.thumb_src?(jQuery(".product-gallery-slider-old .slide.first img, .sticky-add-to-cart-img, .product-thumbnails .first img, .product-gallery-slider .slide.first .zoomImg").attr("src",i.image.thumb_src).attr("srcset",""),s(),o(),n()):(jQuery(".product-thumbnails .first img").attr("src",t),n())})),e.on("hide_variation",(function(e,i){jQuery(".product-thumbnails .first img, .sticky-add-to-cart-img").attr("src",t),n()})),e.on("click",".reset_variations",(function(){jQuery(".product-thumbnails .first img, .sticky-add-to-cart-img").attr("src",t),s(),o(),n()}))})),jQuery(".has-lightbox .product-gallery-slider").each((function(){jQuery(this).lazyMagnificPopup({delegate:"a",type:"image",tLoading:'
',closeMarkup:flatsomeVars.lightbox.close_markup,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],arrowMarkup:''},image:{tError:'The image #%curr% could not be loaded.',verticalFit:!1}})}))})),jQuery(".zoom-button").on("click",(function(t){jQuery(".product-gallery-slider").find(".is-selected a").trigger("click"),t.preventDefault()})),flatsomeVars.is_mini_cart_reveal&&(jQuery("body").on("added_to_cart",(function(){s("5000");var t=jQuery("#header"),e=t.hasClass("has-sticky"),i=jQuery(".header-wrapper",t);e&&jQuery(".cart-item.has-dropdown").length&&t.hasClass("sticky-hide-on-scroll--active")&&(i.addClass("stuck"),t.removeClass("sticky-hide-on-scroll--active"))})),jQuery(document).ready((function(){jQuery("span.added-to-cart").length&&s("5000")}))),jQuery(document.body).on("updated_cart_totals",(function(){jQuery(document).trigger("yith_wcwl_reload_fragments");var t=jQuery(".cart-wrapper");Flatsome.attach("lazy-load-images",t),Flatsome.attach("quick-view",t),Flatsome.attach("wishlist",t),Flatsome.attach("cart-refresh",t),Flatsome.attach("equalize-box",t)})),jQuery(document).ajaxComplete((function(){Flatsome.attach(jQuery(".quantity").parent()),Flatsome.attach("lightboxes-link",jQuery(".woocommerce-checkout .woocommerce-terms-and-conditions-wrapper"))})),jQuery(document).on("yith_infs_adding_elem",(function(t){Flatsome.attach(jQuery(".shop-container"))})),jQuery(".disable-lightbox a").on("click",(function(t){t.preventDefault()})),jQuery(document).ready((function(){if(jQuery(".custom-product-page").length){var t=jQuery("#respond p.stars");if(t.length>1){var e=t[0].outerHTML;t.remove(),jQuery('select[id="rating"]').hide().before(e)}}})),jQuery(".sticky-add-to-cart-wrapper").waypoint((function(t){var e=jQuery(this.element),i=jQuery(this.element).find(".sticky-add-to-cart");jQuery(".wc-variation-selection-needed").on("click",(function(){jQuery.scrollTo(".sticky-add-to-cart-wrapper",{duration:0,offset:-200})})),"down"===t&&(e.css({height:e.outerHeight()}),i.addClass("sticky-add-to-cart--active"),jQuery("body").addClass("has-sticky-product-cart")),"up"===t&&(i.removeClass("sticky-add-to-cart--active"),e.css({height:"auto"}),jQuery("body").removeClass("has-sticky-product-cart"))})),setTimeout((function(){jQuery(document.body).on("country_to_state_changed",(function(){"undefined"!=typeof floatlabels&&floatlabels.rebuild()}))}),500)}});