!function(p){"use strict";function h(e){p(e||document).find('a[href*="pjax"]').each(function(){try{var e=this.getAttribute("href")||this.href||"";e=(e=e.replace(/&amp;|#038;/gi,"&")).replace(/%2C/gi,",");try{e=decodeURIComponent(e)}catch(e){}e=(e=e.replace(/([?&])_?pjax=[^&#]*/gi,"$1").replace(/([?&])$/,"")).replace(/\?&/g,"?").replace(/&&+/g,"&"),this.setAttribute("href",e)}catch(e){this.setAttribute("href",(this.getAttribute("href")||"").replace(/&amp;|#038;/gi,"&").replace(/%2C/gi,",").replace(/([?&])_?pjax=[^&#]*/gi,"$1").replace(/([?&])$/,""))}})}function t(e){p(e).find(".page-numbers a, a.page-numbers, .woocommerce-pagination a").each(function(){let e=p(this).attr("href");e&&(e=e.replace(/#038;/g,"&").replace(/&/g,"&"),p(this).attr("href",e))})}t(document),p(document).on("elementor/popup/show elementor/popup/hide elementor/frontend/init elementor/page/init",function(){t(document)}),p(document).on("et_ajax_request_success et_pb_ajax_page et_load_products et_filter_products",function(){t(document)}),p(document).ajaxComplete(function(){t(document)}),new MutationObserver(function(e){e.forEach(function(e){0<e.addedNodes.length&&t(document)})}).observe(document.body,{childList:!0,subtree:!0}),etTheme.autoinit.pjax=function(){if("function"==typeof p.pjax){var e=p(".etheme-pagination.pjax-pagination, .pjax-pagination").first();if(e.length){var a,t,i="";switch(e.hasClass("portfolio-pagination")?i="portfolio":e.hasClass("articles-pagination")?i="blog":e.hasClass("woocommerce-pagination")&&(i="shop"),i){case"portfolio":a=".portfolio-wrapper",t=".pjax-pagination.portfolio-pagination a";break;case"shop":a=".main-products-loop",t=".pjax-pagination.woocommerce-pagination a";break;default:a=".content",t=".pjax-pagination.articles-pagination a"}p(document).on("pjax:start",function(e,t,o){o?.container===a&&(p(a).addClass("etheme-loading etheme-skeleton-loading"),p("html, body").animate({scrollTop:Math.max(p(a).offset()?.top-110,0)||0},300))}),p(document).on("pjax:end",function(e,t,o){var n;o?.container===a&&((n=p(a)).removeClass("etheme-loading"),setTimeout(function(){n.removeClass("etheme-skeleton-loading")},300),p(document).trigger("etheme_posts_grid_ajax_loaded"),window.hoverSlider&&(window.hoverSlider.init({}),window.hoverSlider.prepareMarkup()),etTheme.reinitSwatches&&etTheme.reinitSwatches(),etTheme.runMasonry&&setTimeout(()=>etTheme.runMasonry(),50),etTheme.global_image_lazy&&etTheme.global_image_lazy(),"portfolio"===i)&&window.initPortfolioGrid&&initPortfolioGrid(n[0])}),t=t.replace(/\/page\/1\/?(\?|#|$)/,"/$1"),p(document).pjax(t,a,{fragment:a,timeout:3e3,scrollTo:!1})}}},etTheme.PostProductsPjax=function(e,a,i,t,r,d){var m=a?".elementor-widget-woocommerce-etheme_archive_products":".elementor-widget-archive-etheme_posts",l=(p(m).attr("data-settings"),(o=JSON.parse(p(m).attr("data-settings"))).animation_type),r=o.masonry,o=!!a&&(Math.max(p(m).offset()?.top-110,0)||0);function c(e,t,o){o?.container===m&&("skeleton_animation"===l&&p(m).addClass("etheme-loading etheme-skeleton-loading"),"fadeInUp_animation"===l&&p(m).addClass("etheme-reloading"),p("html, body").animate({scrollTop:Math.max(p(m).offset()?.top-110,0)||0},300))}function s(e,t,o){var n;o?.container===m&&((n=p(m)).removeClass("etheme-loading"),setTimeout(function(){n.removeClass("etheme-skeleton-loading")},300),a?(p(document).trigger("etheme_product_grid_ajax_loaded"),p(document).trigger("yith_wcwl_reload_fragments"),window.etTheme?.global_image_lazy&&etTheme.global_image_lazy(),(o=i.$element.find(d.sliderImages)).length&&o.each(function(){i.sliderImagesHoverInit(p(this),d)}),window.etTheme?.reinitSwatches&&etTheme.reinitSwatches(),i.$element.find(d.carouselImages).length&&window.hoverSlider&&(window.hoverSlider.init({}),window.hoverSlider.prepareMarkup())):p(document).trigger("etheme_posts_grid_ajax_loaded"),l&&(setTimeout(function(){n.find(a?".type-product":".type-post").removeClass("etheme-post-product-loading")},300),setTimeout(function(){n.find(a?".type-product":".type-post").attr("style",null)},700)),i.$element.removeClass("etheme-loading etheme-reloading etheme-skeleton-loading"),"skeleton_animation"===l&&(i.$element.addClass("etheme-skeleton-loaded"),setTimeout(function(){i.$element.removeClass("etheme-skeleton-loaded")},700)),i.local_params.clicked=!1,r&&setTimeout(function(){if(p(m).each(function(){var e=p(this),t=String(e.data("widget_type")||"").replace(/\..*$/,"");t&&elementorFrontend.hooks.doAction("frontend/element_ready/"+t+".default",e)}),window.etTheme?.runMasonry)try{etTheme.runMasonry()}catch(e){}},750),"fadeInUp_animation"===l&&(n.find(".etheme-product-grid-item, .etheme-product-list-item, .etheme-post").each(function(e,t){p(t).addClass("etheme-post-product-loading")}),p(m).removeClass("etheme-reloading"),setTimeout(function(){n.find(".etheme-product-grid-item, .etheme-product-list-item, .etheme-post").removeClass("etheme-post-product-loading")},300)),h(),p(document).off("pjax:start",c),p(document).off("pjax:end",s))}p(document).on("pjax:start",c),p(document).on("pjax:end",s),e=e.replace(/\/page\/1\/?(\?|#|$)/,"/$1"),p.pjax({url:e,container:m,fragment:m,timeout:4e3,scrollTo:o})},etTheme.ElementorShopFiltersPjax=function(e,t,n){var a=t?'[data-elementor-type="product-archive"]':".content-page",i=t?p(a).find(".elementor-widget-woocommerce-etheme_archive_products"):p(a).find(".products-loop"),o=t?i.attr("data-settings"):{},r=(o=t?JSON.parse(o):{}).animation_type,d=o.masonry;function m(e,t,o){p(a).find(".etheme-elementor-pagination-pjax").addClass("hidden"),o?.container===a&&("skeleton_animation"===r&&p(i).addClass("etheme-loading etheme-skeleton-loading"),"fadeInUp_animation"===r&&p(i).addClass("etheme-reloading"),n&&p("html, body").animate({scrollTop:Math.max(p(i).offset()?.top-110,0)||0},300),p(document).trigger("et_ajax_content_before_load",[etAjaxFiltersConfig.offcanvas_autoclose]))}function l(e,t,o){if(o.container===a){const n=p(i);p(a).find(".etheme-elementor-pagination-pjax").addClass("hidden"),p(a).find(".e-parent").addClass("e-no-lazyload"),n.removeClass("etheme-loading"),setTimeout(()=>n.removeClass("etheme-skeleton-loading"),300),window.etTheme?.global_image_lazy&&etTheme.global_image_lazy(),window.hoverSlider&&(hoverSlider.init({}),hoverSlider.prepareMarkup()),h(),[o=document]=[document],"undefined"!=typeof elementorFrontend&&elementorFrontend.elementsHandler&&p(o).find(".elementor-element[data-widget_type]").each(function(){elementorFrontend.elementsHandler.runReadyTrigger(this)}),window.etTheme?.reinitSwatches&&etTheme.reinitSwatches(),r?(setTimeout(function(){n.find(".type-product").removeClass("etheme-post-product-loading")},300),setTimeout(function(){n.find(".type-product").attr("style",null),p(a).find(".etheme-elementor-pagination-pjax").removeClass("hidden")},700)):p(a).find(".etheme-elementor-pagination-pjax").removeClass("hidden"),d&&setTimeout(function(){if(p(i).each(function(){var e=p(this),t=String(e.data("widget_type")||"").replace(/\..*$/,"");t&&elementorFrontend.hooks.doAction("frontend/element_ready/"+t+".default",e)}),window.etTheme?.runMasonry)try{etTheme.runMasonry()}catch(e){}},750),"fadeInUp_animation"===r?(p(".elementor-widget-woocommerce-etheme_archive_products .etheme-product-grid-item, .elementor-widget-woocommerce-etheme_archive_products .etheme-product-list-item").each(function(e,t){p(t).addClass("etheme-post-product-loading hidden"),p(".etheme-reloading").addClass("etheme-reloading")}),setTimeout(function(){p(".elementor-widget-woocommerce-etheme_archive_products .etheme-product-grid-item, .elementor-widget-woocommerce-etheme_archive_products .etheme-product-list-item").removeClass("hidden")},100),setTimeout(function(){p(".elementor-widget-woocommerce-etheme_archive_products .etheme-product-grid-item, .elementor-widget-woocommerce-etheme_archive_products .etheme-product-list-item").removeClass("etheme-post-product-loading")},300)):p(".etheme-reloading").removeClass("etheme-reloading"),jQuery().selectWoo&&p.each(p("select.woocommerce-widget-layered-nav-dropdown"),function(){var e=p(this);jQuery(e).selectWoo({minimumResultsForSearch:5,width:"100%",language:{noResults:function(){return etAjaxFiltersConfig.notices.noMatchFound}}})}),p(".dropdown_product_cat").on("change",function(){var e,t;""!=p(this).val()?(t="",t=0<(e=etAjaxFiltersConfig.woocommerceSettings.home_url).indexOf("?")?e+"&product_cat="+p(this).val():e+"?product_cat="+p(this).val(),location.href=t):location.href=etAjaxFiltersConfig.woocommerceSettings.shop_url}),ajaxFilters.reinit_price_filter(),"undefined"==typeof woocommerce_price_slider_params&&(o=p(response).find(".et_woocommerce_price_slider_params").html(),p("body").prepend(o)),p(document).trigger("et_ajax_content_loaded"),p(document).trigger("yith_wcwl_reload_fragments"),p(document).off("pjax:start",m),p(document).off("pjax:end",l)}}p(document).on("pjax:start",m),p(document).on("pjax:end",l),p.pjax({url:e,container:a,fragment:a,timeout:4e3,scrollTo:!1})}}(jQuery);