(function(t){"use strict";var e=window.location.href,a={},i={init:function(){var e={"wpr-nav-menu.default":i.widgetNavMenu,"wpr-mega-menu.default":i.widgetMegaMenu,"wpr-onepage-nav.default":i.widgetOnepageNav,"wpr-grid.default":i.widgetGrid,"wpr-magazine-grid.default":i.widgetMagazineGrid,"wpr-media-grid.default":i.widgetGrid,"wpr-woo-grid.default":i.widgetGrid,"wpr-woo-category-grid-pro.default":i.widgetGrid,"wpr-category-grid-pro.default":i.widgetGrid,"wpr-featured-media.default":i.widgetFeaturedMedia,"wpr-countdown.default":i.widgetCountDown,"wpr-google-maps.default":i.widgetGoogleMaps,"wpr-before-after.default":i.widgetBeforeAfter,"wpr-mailchimp.default":i.widgetMailchimp,"wpr-advanced-slider.default":i.widgetAdvancedSlider,"wpr-testimonial.default":i.widgetTestimonialCarousel,"wpr-search.default":i.widgetSearch,"wpr-advanced-text.default":i.widgetAdvancedText,"wpr-progress-bar.default":i.widgetProgressBar,"wpr-image-hotspots.default":i.widgetImageHotspots,"wpr-flip-box.default":i.widgetFlipBox,"wpr-content-ticker.default":i.widgetContentTicker,"wpr-tabs.default":i.widgetTabs,"wpr-content-toggle.default":i.widgetContentToogle,"wpr-back-to-top.default":i.widgetBackToTop,"wpr-lottie-animations.default":i.widgetLottieAnimations,"wpr-posts-timeline.default":i.widgetPostsTimeline,"wpr-sharing-buttons.default":i.widgetSharingButtons,"wpr-twitter-feed.default":i.widgetTwitterFeed,"wpr-instagram-feed.default":i.widgetInstagramFeed,"wpr-facebook-feed.default":i.widgetFacebookFeed,"wpr-flip-carousel.default":i.widgetFlipCarousel,"wpr-feature-list.default":i.widgetFeatureList,"wpr-advanced-accordion.default":i.widgetAdvancedAccordion,"wpr-image-accordion.default":i.widgetImageAccordion,"wpr-product-media.default":i.widgetProductMedia,"wpr-product-add-to-cart.default":i.widgetProductAddToCart,"wpr-product-mini-cart.default":i.widgetProductMiniCart,"wpr-product-filters.default":i.widgetProductFilters,"wpr-advanced-filters-pro.default":i.widgetAdvancedFilters,"wpr-page-cart.default":i.widgetPageCart,"wpr-my-account-pro.default":i.widgetPageMyAccount,"wpr-reading-progress-bar.default":i.widgetReadingProgressBar,"wpr-data-table.default":i.widgetDataTable,"wpr-charts.default":i.widgetCharts,"wpr-taxonomy-list.default":i.widgetTaxonomyList,"wpr-offcanvas.default":i.widgetOffcanvas,"wpr-wishlist-button-pro.default":i.widgetWishlistButton,"wpr-mini-wishlist-pro.default":i.widgetMiniWishlist,"wpr-wishlist-pro.default":i.widgetWishlist,"wpr-compare-button-pro.default":i.widgetCompareButton,"wpr-mini-compare-pro.default":i.widgetMiniCompare,"wpr-compare-pro.default":i.widgetCompare,"wpr-form-builder.default":i.widgetFormBuilder,"wpr-image-scroll.default":i.widgetImageScroll,"wpr-video-playlist.default":i.widgetVideoPlaylist,global:i.widgetSection,"wpr-post-media.default":i.widgetPostMedia};t.each(e,function(e,t){window.elementorFrontend.hooks.addAction("frontend/element_ready/"+e,t)}),i.changeAdminBarMenu()},widgetPostMedia:function(e){var a=t(".wpr-featured-media-image").attr("data-lightbox");if(typeof a!=typeof void 0&&!1!==a&&!i.editorCheck()){var r=e.find(".wpr-featured-media-wrap");a=JSON.parse(a),r.lightGallery(a),r.on("onAferAppendSlide.lg, onAfterSlide.lg",function(){var e=t("#lg-actual-size, #lg-zoom-in, #lg-zoom-out, #lg-download"),i=t("#lg-download").attr("href");t("#lg-download").length&&(-1===i.indexOf("wp-content")?e.addClass("wpr-hidden-element"):e.removeClass("wpr-hidden-element")),""===a.autoplay&&t(".lg-autoplay-button").css({width:"0",height:"0",overflow:"hidden"})})}},widgetSection:function(e){function a(){function a(e,t){let a;return function(...i){const r=this;clearTimeout(a),a=setTimeout(()=>e.apply(r,i),t)}}function r(){C=e.offset().top,k=t(window).height(),T=e.outerHeight(!0),P=t(document).height()-(C+T),c=t("body").prop("clientWidth")+17,s()}function s(){if(!e.hasClass("wpr-sticky-section-yes")&&!e.find(".wpr-sticky-section-yes-editor"))return void(S="relative");var a=w.includes("widescreen_sticky")?2400:4e3,i=[],r=[["mobile_sticky",768],["mobile_extra_sticky",881],["tablet_sticky",1025],["tablet_extra_sticky",1201],["laptop_sticky",1216],["desktop_sticky",4e3],["widescreen_sticky",4e3]].filter(e=>-1!=w.indexOf(e[0])).reverse();r.forEach((t,a)=>{if(t[1]>c){var r=t[0].replace("_sticky","");h="desktop"==r?e.data("settings")?C+e.data("settings").wpr_sticky_effects_offset:C+e.find(".wpr-sticky-section-yes-editor").attr("data-wpr-offset-settings"):e.data("settings")?C+e.data("settings")["wpr_sticky_effects_offset_"+r]:C+e.find(".wpr-sticky-section-yes-editor").attr("data-wpr-offset-settings"),-1===f.indexOf(t[0])?(S=-1===w?.indexOf(t[0])?i[a-1]?i[a-1]:o:"relative",i[a]=S):-1!==f.indexOf(t[0])&&(S=o)}});var s=function(){let a=g.scrollTop();"fixed"!=S&&("top"===l&&(a>C?n():a<=C&&e.css({position:"relative"})),"bottom"===l&&(a+k<=t(document).height()-P?n():e.css({position:"relative"}))),"relative"!==S&&(a>h?"yes"==e.data("wpr-replace-header")?"yes"===e.data("wpr-sticky-hide")?(a>=C&&e.addClass("wpr-visibility-hidden"),a=C&&(a{u=a},10)};"sticky"==S?t(window).scroll(s):"fixed"==S&&(n(),t(window).scroll(s)),"yes"==e.data("wpr-replace-header")&&0!=e.next().length&&e.next().get(0).style.setProperty("--wpr-animation-duration",O);let d}function n(){var a=+window.innerHeight-(+e.css("top").slice(0,-2)+e.height()),r=+window.innerHeight-(+e.css("bottom").slice(0,-2)+e.height());"yes"===e.data("wpr-sticky-hide")&&u .wpr-jarallax").attr("bg-image-editor")+"\")"),e.jarallax({type:e.find("> .wpr-jarallax").attr("scroll-effect-editor"),speed:e.find("> .wpr-jarallax").attr("speed-data-editor")}))}(e.attr("data-wpr-particles")||e.find(".wpr-particle-wrapper").attr("data-wpr-particles-editor"))&&function(){var t=e.data("element_type"),a=encodeURIComponent(e.data("id")),s=i.editorCheck()?e.find(".wpr-particle-wrapper").attr("data-wpr-particles-editor"):e.attr("data-wpr-particles");("section"===t||"container"===t)&&void 0!==s&&(i.editorCheck()?e.hasClass("wpr-particle-yes")?(particlesJS("wpr-particle-"+a,"wpr_particle_json_custom"==e.find(".wpr-particle-wrapper").attr("particle-source")?JSON.parse(s):r(s)),e.find(".elementor-column").css("z-index",9),setTimeout(function(){window.dispatchEvent(new Event("resize"))},500),setTimeout(function(){window.dispatchEvent(new Event("resize"))},1500)):e.find(".wpr-particle-wrapper").remove():(e.prepend(""),particlesJS("wpr-particle-"+a,"wpr_particle_json_custom"==e.attr("particle-source")?JSON.parse(s):r(s)),setTimeout(function(){window.dispatchEvent(new Event("resize"))},500),setTimeout(function(){window.dispatchEvent(new Event("resize"))},1500)))}(),(e.hasClass("wpr-jarallax")||e.hasClass("wpr-jarallax-yes"))&&function(e){const t=new IntersectionObserver((t,a)=>{t.forEach(t=>{t.isIntersecting&&(s.call(this,e),a.unobserve(t.target))})},{rootMargin:"0px",threshold:.1});t.observe(e[0])}(e),e.hasClass("wpr-parallax-yes")&&function(){if(e.hasClass("wpr-parallax-yes")){var a=document.getElementsByClassName("wpr-parallax-multi-layer"),r=Array.from(a).map(e=>new Parallax(e,{invertY:"yes"==e.getAttribute("direction"),invertX:"yes"==e.getAttribute("direction"),scalarX:e.getAttribute("scalar-speed"),scalarY:e.getAttribute("scalar-speed"),hoverOnly:!0,pointerEvents:!0}));r.forEach(e=>{e.friction(.2,.2)})}if(!i.editorCheck()){var s=[];document.querySelectorAll(".wpr-parallax-multi-layer").forEach(e=>{e.parentElement.style.position="relative",e.style.position="absolute",s.push(e),e.remove()}),document.querySelectorAll(".wpr-parallax-ml-children").forEach(e=>{e.style.position="absolute",e.style.top=e.getAttribute("style-top"),e.style.left=e.getAttribute("style-left")}),t(".wpr-parallax-yes").each(function(e){t(this).append(s[e])})}}(),e.hasClass("wpr-sticky-section-yes")&&t(document).ready(function(){a()})},widgetNavMenu:function(a){function i(){if(a.hasClass("wpr-mobile-menu-full-width")&&(a.closest(".elementor-column").length||a.closest(".e-con").length)){var e=a.closest(".elementor-top-section"),i=a.closest(".elementor-column").length?a.closest(".elementor-column"):a.closest(".elementor-element"),r=e.length?e.outerWidth()-2*l.offset().left:t(window).outerWidth()-2*l.offset().left,s=i.offset().left+parseInt(i.css("padding-left"),10);l.css({width:r+"px",left:-s+"px"})}}function r(e,t){!0===t?(e.prev().attr("aria-expanded","true"),a.hasClass("wpr-sub-menu-fx-slide")?e.stop().slideDown():e.stop().fadeIn()):(e.prev().attr("aria-expanded","false"),a.hasClass("wpr-sub-menu-fx-slide")?e.stop().slideUp():e.stop().fadeOut())}var s=a.find(".wpr-nav-menu-container"),n=a.find(".wpr-mobile-nav-menu-container"),d=s.find(".wpr-nav-menu > li.menu-item-has-children"),o=s.find(".wpr-sub-menu li.menu-item-has-children");a.find(".wpr-mobile-toggle").length&&a.find("a").on("click",function(){this.pathname!=window.location.pathname||1").find("h3").text(i);let r=a.find(".wpr-mobile-mega-menu").children(".wpr-mobile-sub-open"),s=r.children("ul").length?r.children("ul"):r.children(".wpr-mobile-sub-mega-menu"),n=s.outerHeight();n>t(window).height()&&(a.find(".wpr-mobile-sub-mega-menu").not(e.find(".wpr-mobile-sub-mega-menu")).hide(),a.find(".wpr-mobile-mega-menu-wrap").css("overflow-y","scroll"))}var d=a.find(".wpr-nav-menu-container"),o=a.find(".wpr-mobile-nav-menu-container"),l=d.find(".wpr-nav-menu > li.menu-item-has-children"),p=d.find(".wpr-sub-menu li.menu-item-has-children");a.find(".wpr-mobile-toggle").length&&a.find("a").on("click",function(){this.pathname!=window.location.pathname||1 a .wpr-mobile-sub-icon, .menu-item-has-children > a[href=\"#\"]").on("click",function(i){i.preventDefault(),i.stopPropagation();var e=t(this).closest("li.menu-item");if(!!e.hasClass("wpr-mobile-sub-open"))e.removeClass("wpr-mobile-sub-open"),a.hasClass("wpr-mobile-menu-display-offcanvas")||(e.children(".wpr-mobile-sub-menu").slideUp(),e.children(".wpr-mobile-sub-mega-menu").slideUp());else if(i.preventDefault(),e.addClass("wpr-mobile-sub-open"),a.hasClass("wpr-mobile-menu-display-offcanvas")||(t(window).trigger("resize"),e.children(".wpr-mobile-sub-menu").first().stop().slideDown()),!e.hasClass("wpr-mega-menu-true"))a.hasClass("wpr-mobile-menu-display-offcanvas")&&n(e);else if(e.hasClass("wpr-mega-menu-ajax")&&!e.find(".wpr-mobile-sub-mega-menu").find(".elementor").length){let i=e.find(".wpr-mobile-sub-icon");t.ajax({type:"GET",url:WprConfig.resturl+"/wprmegamenu/",data:{item_id:e.data("id")},beforeSend:function(){i.removeClass(w).addClass("fas fa-circle-notch fa-spin")},success:function(r){i.removeClass("fas fa-circle-notch fa-spin").addClass(w),a.hasClass("wpr-mobile-menu-display-offcanvas")?(e.find(".wpr-menu-offcanvas-back").after(r),n(e)):(e.find(".wpr-mobile-sub-mega-menu").html(r),e.children(".wpr-mobile-sub-mega-menu").slideDown()),e.find(".wpr-mobile-sub-mega-menu").find(".elementor-element").each(function(){elementorFrontend.elementsHandler.runReadyTrigger(t(this))})}})}else a.hasClass("wpr-mobile-menu-display-offcanvas")?n(e):e.children(".wpr-mobile-sub-mega-menu").slideDown()}),a.find(".wpr-menu-offcanvas-back").on("click",function(){t(this).closest(".wpr-mobile-mega-menu").removeClass("wpr-mobile-sub-offcanvas-open"),t(this).closest(".menu-item").removeClass("wpr-mobile-sub-open"),a.find(".wpr-mobile-mega-menu-wrap").removeAttr("style"),a.find(".wpr-mobile-sub-mega-menu").removeAttr("style")}),i(),r(),t(window).smartresize(function(){i(),r()})},widgetOnepageNav:function(e){t(document).ready(function(){var a=e.find(".wpr-onepage-nav-item"),i=parseInt(e.find(".wpr-onepage-nav").attr("data-speed"),10),r=e.find(".wpr-onepage-nav").attr("data-consider-header"),s=[];a.each(function(){s.push(t(t(this).find("a").attr("href")))});var n=t(s),d=window.location.href,o=d.split("#")[1];if(o){var l=t("#"+o),p=l.offset().top;t("html, body").animate({scrollTop:"yes"===r&&t("[data-wpr-sticky-section=\"yes\"]").first().length?p-t("[data-wpr-sticky-section=\"yes\"]").first().height():p},i)}a.each(function(){-1!==d.indexOf(t(this).find("a").attr("href"))&&t(this).addClass("wpr-onepage-active-item")}),a.each(function(){t(this).click(function(e){e.preventDefault(),e.stopPropagation(),a.removeClass("wpr-onepage-active-item"),t(this).addClass("wpr-onepage-active-item");var s=t(this).find("a").attr("href"),n=t(s),d=n.offset().top;t("html, body").animate({scrollTop:"yes"===r&&t("[data-wpr-sticky-section=\"yes\"]").first().length?d-t("[data-wpr-sticky-section=\"yes\"]").first().height():d},i)})}),t(window).on("scroll",function(e){e.preventDefault(),e.stopPropagation();var i=t(this).scrollTop();t.isEmptyObject(n)||n.each(function(){if(0=e-50&&i").text(e.attr("data-ajax")).html(),data:{action:"wpr_likes_init",post_id:e.attr("data-post-id"),nonce:e.attr("data-nonce")},beforeSend:function(){e.fadeTo(500,.5)},success:function(a){var i=t("").text(e.attr("data-icon")).html(),r=a.count;""===r.replace(/<\/?[^>]+(>|$)/g,"")?(r="
"+t("").text(e.attr("data-text")).html()+"",!e.hasClass("wpr-likes-zero")&&e.addClass("wpr-likes-zero")):e.removeClass("wpr-likes-zero"),e.hasClass("wpr-already-liked")?(e.prop("title","Like"),e.removeClass("wpr-already-liked"),e.html(""+r)):(e.prop("title","Unlike"),e.addClass("wpr-already-liked"),e.html(""+r)),e.fadeTo(500,1)}}),!1})}function d(a){let i=e.find(".wpr-grid"),r=i.children("article"),s=Math.floor(i.outerWidth()/r.outerWidth());if("fitRows"===a.layout&&1{e.forEach(e=>{e.isIntersecting&&e.target.src.includes("icon-256x256")&&setTimeout(function(){e.target.src=e.target.parentElement.dataset.src,e.target.classList.toggle("wpr-hidden-image"),t(window).trigger("resize")},100)})},{});e.find(".wpr-grid-image-wrap img:first-of-type").each(function(){a.observe(t(this)[0])})},100)}function l(a,r="load"){if("yes"===a.filters_count&&e.find(".wpr-grid-filters a, .wpr-grid-filters span").each(function(){let i=t(this),s;if(a.grid_settings&&"load"==r){var n="*"===t(this).attr("data-filter")?"*":t(this).data("ajax-filter")[0],d="*"===t(this).attr("data-filter")?"*":t(this).data("ajax-filter")[1];let e={action:g,nonce:WprConfig.nonce,wpr_offset:0,wpr_filter:d,wpr_taxonomy:n,grid_settings:a.grid_settings};t.ajax({type:"POST",url:WprConfig.ajaxurl,data:e,success:function(e){s=e.data.query_found,i.find("sup").text(e.data.query_found)},error:function(e){console.log(e)}})}else"*"===t(this).attr("data-filter")?t(this).find("sup").text(e.find(".wpr-grid-filters").next().find("article").length):t(this).find("sup").text(e.find(t(this).attr("data-filter")).length)}),"yes"!==a.filters_linkable){if("yes"===a.deeplinking){var s=window.location.hash.replace("#filter:",".");window.location.hash.match("#filter:all")&&(s="*");var n=e.find(".wpr-grid-filters span[data-filter=\""+s+"\"]:not(.wpr-back-filter)"),d=n.parent();"parent"===n.parent().attr("data-role")?d.parent("ul").find("ul[data-parent=\""+s+"\"]").length&&(d.parent("ul").children("li").css("display","none"),d.siblings("ul[data-parent=\""+s+"\"]").css("display","block")):"sub"===n.parent().attr("data-role")&&(d.closest(".wpr-grid-filters").children("li").css("display","none"),d.parent("ul").css("display","inline-block")),e.find(".wpr-grid-filters span").removeClass("wpr-active-filter"),n.addClass("wpr-active-filter"),e.find(".wpr-grid").isotopewpr({filter:s}),a.lightbox.selector="*"===s?" .wpr-grid-image-wrap":s+" .wpr-grid-image-wrap",i.lightboxPopup(a,e,h)}"yes"!==a.filters_hide_empty||a.grid_settings||e.find(".wpr-grid-filters span").each(function(){var e=t(this).attr("data-filter");"*"!==e&&(0===h.find(e).length?t(this).parent("li").addClass("wpr-hidden-element"):t(this).parent("li").removeClass("wpr-hidden-element"))}),e.hasClass("elementor-widget-wpr-woo-category-grid-pro")||e.hasClass("elementor-widget-wpr-category-grid-pro")||""===a.filters_default_filter||setTimeout(function(){e.find(".wpr-grid-filters").find("span[data-filter*=\"-"+a.filters_default_filter+"\"]")[0].click()},100),a.grid_settings||e.find(".wpr-grid-filters span").on("click",function(){i.changeInitialItems(0);var r=t(this).data("filter"),s=t(this).parent("li"),n=s.attr("data-role");if(e.find(".wpr-grid-filters span").removeClass("wpr-active-filter"),t(this).addClass("wpr-active-filter"),"parent"===n?s.parent("ul").find("ul[data-parent=\""+r+"\"]").length&&(s.parent("ul").children("li").css("display","none"),s.siblings("ul[data-parent=\""+r+"\"]").css("display","block")):"back"===n&&(s.closest(".wpr-grid-filters").children("li").css("display","inline-block"),s.parent().css("display","none")),"yes"===a.deeplinking){var d="#filter:"+r.replace(".","");"*"===r&&(d="#filter:all"),window.location.href=window.location.pathname+window.location.search+d}"infinite-scroll"===a.pagination_type&&0===h.find(t(this).attr("data-filter")).length&&e.find(".wpr-grid").infiniteScroll("loadNextPage"),"load-more"===a.pagination_type&&0===h.find(t(this).attr("data-filter")).length&&e.find(".wpr-grid").infiniteScroll("loadNextPage"),"default"!==a.filters_animation&&e.find(".wpr-grid-item-inner").css({opacity:"0",transition:"none"}),"fade-slide"===a.filters_animation?e.find(".wpr-grid-item-inner").css("top","20px"):"zoom"===a.filters_animation?e.find(".wpr-grid-item-inner").css("transform","scale(0.01)"):e.find(".wpr-grid-item-inner").css({top:"0",transform:"scale(1)"}),e.find(".wpr-grid").isotopewpr({filter:r}),a.lightbox.selector="*"===r?" .wpr-grid-image-wrap":r+" .wpr-grid-image-wrap",h.data("lightGallery").destroy(!0),h.lightGallery(a.lightbox)})}}function p(){var e;if(h.find(".wpr-wishlist-add").length&&(t.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"check_product_in_wishlist_grid"},success:function(t){e=t}}),h.find(".wpr-wishlist-add").each(function(){var a=t(this);-1!==t.inArray(a.data("product-id"),e)&&(!a.hasClass("wpr-button-hidden")&&a.addClass("wpr-button-hidden"),a.next().hasClass("wpr-button-hidden")&&a.next().removeClass("wpr-button-hidden"))})),0
",0 "),setTimeout(()=>{e.find("#wpr-added-to-comp-"+s).addClass(h),setTimeout(()=>{e.find("#wpr-added-to-comp-"+s).remove()},1e3*f)},1e3*c))}},error:function(e){var t=e.responseJSON.message;alert(t)}})}),e.find(".wpr-compare-remove").click(function(a){a.preventDefault();var r=t(this).data("product-id");t(this).fadeTo(500,0),t.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"remove_from_compare",nonce:WprConfig.nonce,product_id:r},success:function(){e.find(".wpr-compare-remove[data-product-id=\""+r+"\"]").hide(),e.find(".wpr-compare-add[data-product-id=\""+r+"\"]").show(),e.find(".wpr-compare-add[data-product-id=\""+r+"\"]").fadeTo(500,1),i.changeActionTargetProductId(r),t(document).trigger("removed_from_compare")}})}),t(document).on("removed_from_compare",function(){e.find(".wpr-compare-remove[data-product-id=\""+r+"\"]").hide(),e.find(".wpr-compare-add[data-product-id=\""+r+"\"]").show(),e.find(".wpr-compare-add[data-product-id=\""+r+"\"]").fadeTo(500,1)}))}function f(){let a=!1;h.find(".wpr-wishlist-add").length&&(e.find(".wpr-wishlist-add").click(function(r){r.preventDefault();var s=t(this),n=t(this).data("product-id");s.fadeTo(500,0),t.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"add_to_wishlist",nonce:WprConfig.nonce,product_id:n},success:function(){if(e.find(".wpr-wishlist-add[data-product-id=\""+n+"\"]").hide(),e.find(".wpr-wishlist-remove[data-product-id=\""+n+"\"]").show(),e.find(".wpr-wishlist-remove[data-product-id=\""+n+"\"]").fadeTo(500,1),i.changeActionTargetProductId(n),t(document).trigger("added_to_wishlist"),"sidebar"===s.data("atw-popup"))t(".wpr-wishlist-toggle-btn").length&&t(".wpr-wishlist-toggle-btn").each(function(){"none"===t(this).next(".wpr-wishlist").css("display")&&t(this).trigger("click")});else if("popup"===s.data("atw-popup")){var r=s.closest(".wpr-grid-item"),d=r.find(".wpr-grid-item-title").text(),o=WprConfig.wishlistPageURL,l="yes"==s.data("open-in-new-tab")?"_blank":"_self",p=r.find(".wpr-grid-image-wrap").length?r.find(".wpr-grid-image-wrap").data("src"):"",c=s.data("atw-animation"),f=s.data("atw-fade-out-in"),w=s.data("atw-animation-time"),m="wpr-added-to-wishlist-default",h,g;"slide-left"===c?(m="wpr-added-to-wishlist-slide-in-left",g="wpr-added-to-wishlist-slide-out-left"):"scale-up"===c?(m="wpr-added-to-wishlist-scale-up",g="wpr-added-to-wishlist-scale-down"):"skew"===c?(m="wpr-added-to-wishlist-skew",g="wpr-added-to-wishlist-skew-off"):"fade"===c?(m="wpr-added-to-wishlist-fade",g="wpr-added-to-wishlist-fade-out"):g="wpr-added-to-wishlist-popup-hide",h=""===p?"":"",a||(a=!0,!(0
"):t(this).is("select")||"radio"===t(this).attr("type")||"checkbox"===t(this).attr("type")?t(this).closest(".wpr-field-group").append(""+WprConfig.select_empty+"
"):t(this).closest(".wpr-field-group").append(""+WprConfig.input_empty+"
"))}),e?a.find(".wpr-step").eq(m).addClass("wpr-step-finish"):a.find(".wpr-step").eq(m).hasClass("wpr-step-finish")&&a.find(".wpr-step").eq(m).removeClass("wpr-step-finish"),e}function p(e){var t=a.find(".wpr-step");t.removeClass("wpr-step-active"),t.eq(e).addClass("wpr-step-active"),a.find(".wpr-step-active").hasClass("wpr-step-finish")&&a.find(".wpr-step-active").removeClass("wpr-step-finish");const i=a.find(".wpr-step-tab"),r=a.find(".wpr-step-progress-fill");(function(){const t=i.length,a=100*((e+1)/t);r.css("width",a+"%"),setTimeout(function(){r.text(Math.round(a)+"%")},500)})()}var c={},f={};if(0{i(),l()&&t(this).closest("form").trigger("submit")}).catch(e=>{console.error(e)})):(i(),l()&&t(this).closest("form").trigger("submit"))}),a.find("form").on("submit",function(i){function e(e,a,i,r){return t.ajax({type:"POST",url:WprConfig.ajaxurl,data:{action:"wpr_update_form_action_meta",nonce:WprConfig.nonce,post_id:e,action_name:a,status:i,message:r}})}function r(e){return JSON.parse(JSON.stringify(e))}function n(){var e=r(c);for(let t in e)if(("radio"==e[t][0]||"checkbox"==e[t][0])&&Array.isArray(e[t][1])){let a=e[t][1].filter(e=>!0===e[1]).map(e=>e[0]),i=a.join(", ");e[t][1]=i}return t.ajax({type:"POST",url:WprConfig.ajaxurl,data:{action:"wpr_form_builder_email",nonce:WprConfig.nonce,form_content:e,wpr_form_id:a.find("input[name=\"form_id\"]").val()},success:function(e){!e.success},error:function(){}})}function d(){var e=r(c);for(let t in e)if(("radio"==e[t][0]||"checkbox"==e[t][0])&&Array.isArray(e[t][1])){let a=e[t][1].filter(e=>!0===e[1]).map(e=>e[0]),i=a.join(", ");e[t][1]=i}return t.ajax({type:"POST",url:WprConfig.ajaxurl,data:{action:"wpr_form_builder_webhook",nonce:WprConfig.nonce,form_content:e,wpr_form_id:a.find("input[name=\"form_id\"]").val(),form_name:a.find("form").attr("name")},success:function(e){!e.success},error:function(e){console.log(e)}})}function o(){var e={action:"wpr_form_builder_submissions",nonce:WprConfig.nonce,form_content:c,status:"publish",form_name:a.find("form").attr("name"),form_id:a.find("input[name=\"form_id\"]").val(),form_page:a.find("form").attr("page"),form_page_id:a.find("form").attr("page_id")};return t.ajax({type:"POST",url:WprConfig.ajaxurl,data:e,success:function(){},error:function(e){console.log(e)}})}function l(){const e=a.find(".wpr-form-field-type-submit"),i=JSON.parse(e.attr("data-mailchimp-fields"));let r={};return Object.keys(i).forEach(function(e){if("group_id"==e)var t=Array.isArray(i[e])?i[e].join(","):i[e];else var t=a.find("#form-field-"+i[e]).val();t&&("birthday_field"==e?r[e]=s(t):r[e]=t)}),t.ajax({url:WprConfig.ajaxurl,method:"POST",data:{action:"wpr_form_builder_mailchimp",nonce:WprConfig.nonce,form_data:r,listId:e.data("list-id")},beforeSend:function(){e.prop("disabled",!0)},success:function(e){!e.success},error:function(e,t,a){console.log(a)},complete:function(){e.prop("disabled",!1)}})}i.preventDefault();let p=[];a.find(".wpr-button>span").addClass("wpr-loader-hidden"),a.find(".wpr-button").find(".wpr-double-bounce").removeClass("wpr-loader-hidden"),a.find(".wpr-submit-error")&&a.find(".wpr-submit-error").remove(),a.find(".wpr-submit-success")&&a.find(".wpr-submit-success").remove(),function(e){0span").removeClass("wpr-loader-hidden"),a.find("form").append(""+WprConfig.recaptcha_error+"
")},500),e(!1))},error:function(t){console.log(t),setTimeout(function(){a.find(".wpr-button").find(".wpr-double-bounce").addClass("wpr-loader-hidden"),a.find(".wpr-button>span").removeClass("wpr-loader-hidden"),a.find("form").append(""+WprConfig.recaptcha_error+"
")},500),e(!1)}})})}):e(!0)}(function(i){if(i){var r={emailPromise:n,submissionsPromise:o,mailchimpPromise:l,webhookPromise:d};Promise.all(h.map(e=>{try{if(r[e+"Promise"])return r[e+"Promise"]()}catch(e){return console.error(e),Promise.reject(e)}})).then(i=>{const r=i.find(e=>e&&"wpr_form_builder_submissions"===e.data.action),s=r?r.data.post_id:null;var n=h.map(t=>{if("redirect"!==t){t="wpr_form_builder_"+t;const a=i.find(e=>e&&e.data.action===t),r=a?a.data.message:"";if(a&&"success"===a.data.status){if(p.push("success"),s)return e(s,t,"success",r);}else if(p.push("error"),s)return e(s,t,"error",r)}});return Promise.all(n).then(()=>{if(p.includes("error")){var e=t("").text(a.data("settings").error_message).html();a.find("form").append("
"+e+"
")}else a.find("form").append(t("
").text(a.data("settings").success_message)),a.find("button").attr("disabled",!0),a.find("button").css("opacity",.6)})}).catch(e=>{console.error(e)}).then(()=>{setTimeout(function(){a.find(".wpr-button").find(".wpr-double-bounce").addClass("wpr-loader-hidden"),a.find(".wpr-button>span").removeClass("wpr-loader-hidden"),setTimeout(function(){h.includes("redirect")&&p.includes("success")&&t(location).prop("href",a.find(".wpr-form-field-type-submit").data("redirect-url"))},500)},500)}).catch(e=>{console.error(e)})}else return!1})})},widgetImageScroll:function(e){function t(){n.css("transition",`transform ${o}s ease-out`)}function a(){t(),m&&(w?n.css("transform",`translateY(-${h}px)`):n.css("transform",`translateX(-${h}px)`)),s.on("mouseenter",function(){e.find(".wpr-image-scroll-icon").addClass("wpr-image-scroll-icon-hidden")}),s.on("mouseleave",function(){e.find(".wpr-image-scroll-icon").removeClass("wpr-image-scroll-icon-hidden")}),s.hasClass("wpr-trigger-hover")?i():s.hasClass("wpr-trigger-scroll")&&r()}function i(){var e=g.length?g:s;e.on("mouseenter",function(){m?w?n.css("transform","translateY(0)"):n.css("transform","translateX(0)"):w?n.css("transform",`translateY(-${h}px)`):n.css("transform",`translateX(-${h}px)`)}),s.on("mouseleave",function(){m?w?n.css("transform",`translateY(-${h}px)`):n.css("transform",`translateX(-${h}px)`):n.css("transform","translate(0, 0)")})}function r(){function t(){w?n.css("transform","translateY(-"+a+"px)"):n.css("transform","translateX(-"+a+"px)"),i=!1}var a=m?h:0,i=!1;s.on("wheel",function(r){r.preventDefault(),i||requestAnimationFrame(t),i=!0;var e=r.originalEvent.deltaY;m&&(e=-e),a=Math.max(Math.min(a+e*o,h),0)})}var s=e.find(".wpr-image-scroll-wrap"),n=s.find("img"),d=s.data(),o=d.speed||1,l=s.height(),p=s.width(),c=n.height(),f=n.width(),w=s.hasClass("wpr-scroll-vertical"),m=s.hasClass("wpr-direction-reverse"),h=w?c-l:f-p,g=e.find(".wpr-image-scroll-link");n.on("load",function(){c=n.height(),f=n.width(),h=w?c-l:f-p,t(),a()}),a()},widgetVideoPlaylist:function(e){const a={players:{},isAPIReady:!1,pendingPlayers:[],apiLoaded:!1,init:function(e){if(e&&e.length){if(!this.apiLoaded&&"undefined"==typeof YT){const e=document.createElement("script");e.src="//www.youtube.com/iframe_api";const t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),this.apiLoaded=!0,window.onYouTubeIframeAPIReady=()=>{a.isAPIReady=!0,a.pendingPlayers.forEach(e=>{a.createPlayer(e.$container,e.videoId,e.$widget)})}}const t=e.find(".wpr-vplaylist-thumbs").data("urls");t&&Array.isArray(t)&&this.processVideos(e,t)}},processVideos:function(e,i){const r=e.find(".wpr-vplaylist-thumbs ul"),s=e.find(".wpr-vplaylist-current-title").prop("tagName").toLowerCase(),n=i.map((e,i)=>new Promise(r=>{const s=a.extractVideoId(e);return s?void t.get("https://www.youtube.com/oembed",{url:e,format:"json"}).done(e=>{r({videoId:s,title:e.title,index:i})}).fail(()=>{r(null)}):void r(null)}));Promise.all(n).then(i=>{const n=i.filter(e=>null!==e).sort((e,t)=>e.index-t.index);n.forEach((i,n)=>{const d=t("
").attr("data-video",i.videoId),o="https://i.ytimg.com/vi/"+i.videoId+"/maxresdefault.jpg";d.append(t("
").attr({src:o,alt:i.title}));const l=t("").addClass("wpr-vplaylist-info");if(l.append(t("<"+s+">").addClass("wpr-vplaylist-info-title").text(i.title)),d.append(l),r.append(d),0===n){e.find(".wpr-vplaylist-current-title").text(i.title),e.find(".wpr-vplaylist-highlight").attr("data-video",i.videoId);const t=e.find(".wpr-vplaylist-main");a.isAPIReady?a.createPlayer(t,i.videoId,e):a.pendingPlayers.push({$container:t,videoId:i.videoId,$widget:e})}}),e.find(".wpr-vplaylist-thumbs li").on("click",function(){const i=t(this).data("video"),r=e.find(".wpr-vplaylist-main").attr("id"),s=t(this).find(".wpr-vplaylist-info-title").text();a.players[r]&&(a.players[r].loadVideoById(i),e.find(".wpr-vplaylist-highlight").attr("data-video",i),e.find(".wpr-vplaylist-current-title").text(s),e.find(".wpr-play").hide(),e.find(".wpr-pause").show())})})},createPlayer:function(e,i,r){const s="wpr-player-"+Math.random().toString(36).substr(2,9);return e.attr("id",s),this.players[s]=new YT.Player(s,{height:"360",width:"640",videoId:i,playerVars:{autoplay:0,controls:1,rel:0,showinfo:0},events:{onReady:function(){r.find(".wpr-vplaylist-controller").on("click",function(){const e=a.players[s];e.getPlayerState()===YT.PlayerState.PLAYING?(e.pauseVideo(),t(this).find(".wpr-play").show(),t(this).find(".wpr-pause").hide()):(e.playVideo(),t(this).find(".wpr-play").hide(),t(this).find(".wpr-pause").show())})},onStateChange:function(e){const t=r.find(".wpr-vplaylist-controller");e.data===YT.PlayerState.PLAYING?(t.find(".wpr-play").hide(),t.find(".wpr-pause").show()):(e.data===YT.PlayerState.PAUSED||e.data===YT.PlayerState.ENDED)&&(t.find(".wpr-play").show(),t.find(".wpr-pause").hide())}}}),s},extractVideoId:function(e){const t=e.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/i);return t?t[1]:null}};a.init(e)},widgetProductAddToCart:function(e){function a(a){a.preventDefault();let i=t(this).closest("form");var r=i.closest(".variations_form");let s=i.hasClass("grouped_form");if(!i[0].checkValidity())return i[0].reportValidity(),!1;let n=t(this),d=n.val()||"",o=i.serialize();if(s){let a=!1;if(e.find(".woocommerce-grouped-product-list-item__quantity").find("input").each(function(){0
s&&jQuery(this).val(s)});t(document).ready(function(){"yes"!==e.find(".wpr-product-add-to-cart").data("ajax-add-to-cart")||t("div[data-elementor-type=\"wpr-theme-builder\"]").hasClass("product-type-external")||e.find(".single_add_to_cart_button").on("click",a)})},widgetMiniWishlist:function(a){function s(){a.find(".wpr-wishlist-remove").on("click",function(r){r.preventDefault();var e=t(this).data("product-id");t.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"remove_from_wishlist",nonce:WprConfig.nonce,product_id:e},success:function(){a.find(".wpr-wishlist-product[data-product-id=\""+e+"\"]").remove(),i.changeActionTargetProductId(e),t(document).trigger("removed_from_wishlist")}})})}function n(){a.find(".wpr-close-wishlist span").on("click",function(){a.find(".wpr-wishlist-inner-wrap").addClass("wpr-wishlist-slide-out"),a.find(".wpr-wishlist-slide-out").css("animation-speed",o),a.find(".wpr-wishlist").fadeOut(o),t("body").removeClass("wpr-wishlist-sidebar-body"),setTimeout(function(){a.find(".wpr-wishlist-inner-wrap").removeClass("wpr-wishlist-slide-out"),a.find(".wpr-wishlist").css({display:"none"})},o+100)})}0"+e.product_image+"")})}}),t(document).on("added_to_wishlist",function(){t.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"update_mini_wishlist",product_id:r},success:function(e){0==a.find(".wpr-wishlist-products").find("li[data-product-id="+e.product_id+"]").length&&a.find(".wpr-wishlist-products").append(""+e.product_image+""),a.find(".wpr-wishlist-count").text(e.wishlist_count),a.find(".wpr-wishlist-count").css("display","inline-flex")}})}),t(document).on("removed_from_wishlist",function(){a.find(".wpr-wishlist-product[data-product-id=\""+r+"\"]").remove(),t.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"update_mini_wishlist",product_id:r},success:function(e){a.find(".wpr-wishlist-count").text(e.wishlist_count),0==e.wishlist_count?a.find(".wpr-wishlist-count").css("display","none"):a.find(".wpr-wishlist-count").css("display","inline-flex")}})}),a.find(".wpr-wishlist").css({display:"none"});var o=a.find(".wpr-wishlist-wrap").data("animation");t("body").on("click",function(t){t.target.classList.value.includes("wpr-wishlist-wrap")||t.target.closest(".wpr-wishlist-wrap")||(a.hasClass("wpr-wishlist-slide")?a.find(".wpr-wishlist").slideUp(o):a.find(".wpr-wishlist").fadeOut(o))}),0!==a.hasClass("wpr-wishlist-sidebar").length&&(t("#wpadminbar").length&&a.find(".wpr-wishlist").css({"z-index":999999}),n(),a.find(".wpr-wishlist").on("click",function(i){i.target.classList.value.includes("wpr-wishlist-inner-wrap")||i.target.closest(".wpr-wishlist-inner-wrap")||(a.find(".wpr-wishlist-inner-wrap").addClass("wpr-wishlist-slide-out"),a.find(".wpr-wishlist-slide-out").css("animation-speed",o),a.find(".wpr-wishlist").fadeOut(o),t("body").removeClass("wpr-wishlist-sidebar-body"),setTimeout(function(){a.find(".wpr-wishlist-inner-wrap").removeClass("wpr-wishlist-slide-out"),a.find(".wpr-wishlist").css({display:"none"})},o+100))})),a.find(".wpr-wishlist").length&&(a.hasClass("wpr-wishlist-sidebar")||a.hasClass("wpr-wishlist-dropdown"))&&a.find(".wpr-wishlist-toggle-btn").on("click",function(i){i.stopPropagation(),i.preventDefault(),"none"===a.find(".wpr-wishlist").css("display")?(a.hasClass("wpr-wishlist-slide")?a.find(".wpr-wishlist").slideDown(o):a.find(".wpr-wishlist").fadeIn(o),a.hasClass("wpr-wishlist-sidebar")&&(a.find(".wpr-wishlist").fadeIn(o),a.find(".wpr-wishlist-inner-wrap").addClass("wpr-wishlist-slide-in"),a.find(".wpr-wishlist-slide-in").css("animation-speed",o),t("body").addClass("wpr-wishlist-sidebar-body")),setTimeout(function(){a.find(".wpr-wishlist").removeClass("wpr-wishlist-slide-in"),a.hasClass("wpr-wishlist-sidebar")&&a.find(".wpr-wishlist").trigger("resize")},o+100)):a.hasClass("wpr-wishlist-slide")?a.find(".wpr-wishlist").slideUp(o):a.find(".wpr-wishlist").fadeOut(o)});var d=new MutationObserver(function(){0!==a.hasClass("wpr-wishlist-sidebar").length&&n(),a.find(".wpr-wishlist-product").on("click",".wpr-wishlist-remove",function(){t(this).closest("li").addClass("wpr-before-remove-from-wishlist")}),0===a.find(".wpr-wishlist-product").length?(a.find(".wpr-wishlist-empty").removeClass("wpr-wishlist-empty-hidden"),a.find(".wpr-view-wishlist").addClass("wpr-hidden-element")):(a.find(".wpr-wishlist-empty").addClass("wpr-wishlist-empty-hidden"),a.find(".wpr-view-wishlist").removeClass("wpr-hidden-element"))});d.observe(a[0],{childList:!0,subtree:!0})},widgetProductMiniCart:function(a){function i(){t.ajax({url:wc_add_to_cart_params.ajax_url,type:"POST",data:{action:"woocommerce_get_refreshed_fragments"},success:function(e){e&&e.fragments&&(t.each(e.fragments,function(e,a){t(e).replaceWith(a)}),t(document.body).trigger("wc_fragments_refreshed"))}})}function r(){a.find(".wpr-close-cart span").on("click",function(){a.find(".wpr-shopping-cart-inner-wrap").addClass("wpr-mini-cart-slide-out"),a.find(".wpr-mini-cart-slide-out").css("animation-speed",s),a.find(".wpr-shopping-cart-wrap").fadeOut(s),t("body").removeClass("wpr-mini-cart-sidebar-body"),setTimeout(function(){a.find(".wpr-shopping-cart-inner-wrap").removeClass("wpr-mini-cart-slide-out"),a.find(".wpr-mini-cart").css({display:"none"})},s+100)})}window.addEventListener("pageshow",function(e){(e.persisted||window.performance&&2===window.performance.navigation.type)&&i()}),t(document.body).on("updated_wc_div",function(){i()}),a.find(".wpr-mini-cart").css({display:"none"});var s=a.find(".wpr-mini-cart-wrap").data("animation");t("body").on("click",function(t){t.target.classList.value.includes("wpr-mini-cart")||t.target.closest(".wpr-mini-cart")||(a.find(".wpr-mini-cart-toggle-btn").closest(".elementor>.elementor-element").removeClass("wpr-z-index"),a.hasClass("wpr-mini-cart-slide")?a.find(".wpr-mini-cart").slideUp(s):a.find(".wpr-mini-cart").fadeOut(s))}),a.hasClass("wpr-mini-cart-sidebar")&&(t("#wpadminbar").length&&a.find(".wpr-mini-cart").css({"z-index":999999}),r(),a.find(".wpr-shopping-cart-wrap").on("click",function(i){i.target.classList.value.includes("wpr-shopping-cart-inner-wrap")||i.target.closest(".wpr-shopping-cart-inner-wrap")||(a.find(".wpr-shopping-cart-inner-wrap").addClass("wpr-mini-cart-slide-out"),a.find(".wpr-mini-cart-slide-out").css("animation-speed",s),a.find(".wpr-shopping-cart-wrap").fadeOut(s),t("body").removeClass("wpr-mini-cart-sidebar-body"),setTimeout(function(){a.find(".wpr-shopping-cart-inner-wrap").removeClass("wpr-mini-cart-slide-out"),a.find(".wpr-mini-cart").css({display:"none"})},s+100))})),a.find(".wpr-mini-cart").length&&(a.hasClass("wpr-mini-cart-sidebar")||a.hasClass("wpr-mini-cart-dropdown"))&&a.find(".wpr-mini-cart-toggle-btn").on("click",function(i){i.stopPropagation(),i.preventDefault(),"none"===a.find(".wpr-mini-cart").css("display")?(t(this).closest(".elementor>.elementor-element").addClass("wpr-z-index"),a.hasClass("wpr-mini-cart-slide")?a.find(".wpr-mini-cart").slideDown(s):a.find(".wpr-mini-cart").fadeIn(s),a.hasClass("wpr-mini-cart-sidebar")?(a.find(".wpr-shopping-cart-wrap").fadeIn(s),a.find(".wpr-shopping-cart-inner-wrap").addClass("wpr-mini-cart-slide-in"),a.find(".wpr-mini-cart-slide-in").css("animation-speed",s),t("body").addClass("wpr-mini-cart-sidebar-body")):a.hasClass("wpr-mini-cart-dropdown")&&a.find(".wpr-shopping-cart-wrap").css("display","block"),setTimeout(function(){a.find(".wpr-shopping-cart-inner-wrap").removeClass("wpr-mini-cart-slide-in"),a.hasClass("wpr-mini-cart-sidebar")&&a.find(".wpr-woo-mini-cart").trigger("resize")},s+100)):(t(this).closest(".elementor>.elementor-element").removeClass("wpr-z-index"),a.hasClass("wpr-mini-cart-slide")?a.find(".wpr-mini-cart").slideUp(s):a.find(".wpr-mini-cart").fadeOut(s))});var n=new MutationObserver(function(){a.hasClass("wpr-mini-cart-sidebar")&&r(),a.find(".woocommerce-mini-cart-item").on("click",".wpr-remove-item-from-mini-cart",function(){t(this).closest("li").addClass("wpr-before-remove-from-mini-cart")})});n.observe(a[0],{childList:!0,subtree:!0})},widgetProductFilters:function(e){0!==e.find(".wpr-search-form-input").length&&e.find(".wpr-search-form-input").on({focus:function(){e.addClass("wpr-search-form-input-focus")},blur:function(){e.removeClass("wpr-search-form-input-focus")}})},widgetAdvancedFilters:function(r){function s(){0Tags: Tasty(7) ")}t(".wpr-advanced-filters-wrap").each(function(){var e=t(this),i=e.find("h4").text().trim()||e.data("term-label"),r=e.closest(".elementor-element").data("id"),s=!e.find("select").first().val()||"0"==e.find("select").first().val(),n=[];if(e.find("input[type=\"checkbox\"]:checked, input[type=\"radio\"]:checked, .wpr-active-product-filter input.wpr-rating-filter").each(function(){var e=t(this).parent("label").text().trim();t(this).hasClass("wpr-rating-filter")&&(e=t(this).val()+"/5"),n.push({label:i,value:e,realVal:t(this).val()})}),e.find("input[type=\"checkbox\"]:not(:checked), input[type=\"radio\"]:not(:checked), .wpr-woo-rating:not(.wpr-active-product-filter) input.wpr-rating-filter").each(function(){t("body").find("span[data-value=\""+t(this).val()+"\"]").parent().attr("data-wpr-af-type")==e.data("wpr-filter-type")&&e.closest("[data-element_type=\"widget\"]").data("id")==t("body").find("span[data-value=\""+t(this).val()+"\"]").data("rf-id")&&t("body").find("span[data-value=\""+t(this).val()+"\"]").remove()}),e.find("input[type=\"date\"]").each(function(){n.push({label:i,value:t(this).val(),realVal:t(this).val()})}),e.find("input[type=\"text\"]").each(function(){n.push({label:i,value:t(this).val(),realVal:t(this).val()})}),0"),l=["select","radio","date","range"];0").text(i+": "+a.value),n=t("");if(s.append(n),l.includes(o.attr("data-wpr-af-type"))){if(1>=e.find("select").length)o.html(s);else if(!(1").text(i+": "+a.value):t("").text(a.value),o.find("."+e)?(o.find("."+e).remove(),"wpr-date-filter-start"==e?o.prepend(s):o.append(s)):o.append(s)}else o.append(s)}}),0==t("body").find(".wpr-af-active-wrap-"+r).length&&0r?(e.val(r).attr("value",r),t.val(r).attr("value",r)):(e.val(i).attr("value",i),t.val(i).attr("value",i)),i<+t.attr("min")&&(t.val(+t.attr("min")).attr("value",+t.attr("min")),e.val(+t.attr("min")).attr("value",+t.attr("min")))}function o(e,t,a){const[i,r]=c(t,a);f(t,a),w(a,"to"),i<=r?r>+a.attr("max")?(e.val(+a.attr("max")).attr("value",+a.attr("max")),a.val(+a.attr("max")).attr("value",+a.attr("max"))):(e.val(r).attr("value",r),a.val(r).attr("value",r)):r>+a.attr("max")?a.val(+a.attr("max")).attr("value",+a.attr("max")):a.val(i).attr("value",i)}function l(e,t,a){const[i,s]=c(e,t);f(e,t),w(e,"from"),i>s?(e.val(s).attr("value",s),a.val(s).attr("value",s),r.find(".wpr-af-rs-value-min").text(s)):(e.val(i).attr("value",i),a.val(i).attr("value",i),r.find(".wpr-af-rs-value-min").text(i))}function p(e,t,a){const[i,s]=c(e,t);f(e,t),w(t,"to"),i<=s?(t.val(s).attr("value",s),a.val(s).attr("value",s),r.find(".wpr-af-rs-value-max").text(s)):(a.val(i).attr("value",i),t.val(i).attr("value",i),r.find(".wpr-af-rs-value-max").text(i))}function c(e,t){const a=parseInt(e.val(),10),i=parseInt(t.val(),10);return[a,i]}function f(e,t){const a=parseFloat(t.prop("min")),i=parseFloat(t.prop("max")),r=Math.min(parseFloat(e.val()),parseFloat(t.val())),s=Math.max(parseFloat(e.val()),parseFloat(t.val())),n=i-a,d=0<100*((r-a)/n)?100*((r-a)/n):0;let o=100*((s-a)/n);const l=e.closest(".wpr-advanced-filters-wrap").find(".wpr-af-slider-fill");100=i?e.closest(".wpr-advanced-filters-wrap").find(".wpr-af-range-container").attr("data-active","no"):e.closest(".wpr-advanced-filters-wrap").find(".wpr-af-range-container").attr("data-active","yes")}function w(e,t="to"){if("to"==t){const t=r.find("#wpr-af-to-slider-"+r.data("id"));+e.val()<=+e.attr("min")?t.css("z-index",2):t.css("z-index",0)}else{const t=r.find("#wpr-af-from-slider-"+r.data("id"));+e.val()>=+e.attr("max")?t.css("z-index",2):t.css("z-index",0)}}function m(e){let i=[],s=[];return t(".wpr-advanced-filters-wrap").each(function(){const e=t(this);if("yes"===e.attr("data-show-count")&&""!==e.attr("data-change-counter")){if("other_filters"===e.attr("data-change-counter")&&e.closest(".elementor-widget-wpr-advanced-filters-pro").is(r))return!0;const n=e.find("input[type=\"checkbox\"], input[type=\"radio\"], option, li.wpr-woo-rating");n.each(function(){const e=t(this),r="OPTION"===e.prop("tagName"),n=r?e.closest("select").attr("name"):e.attr("name"),d=e.val()||e.data("rating");if(!n||""===d)return;let o={...a},l=o[n]?o[n].split(","):[];l.includes(d)||l.push(d),o[n]=l.join(","),s.push({element:e,name:n,value:d}),i.push(o)})}}),0===i.length?void console.warn("No filters to analyze."):void t.ajax({type:"POST",url:WprConfig.ajaxurl,data:{action:k,nonce:WprConfig.nonce,grid_settings:e.grid_settings,wpr_url_params:i},success:function(e){return e&&Array.isArray(e.data)?void setTimeout(()=>{e.data.forEach((e,a)=>{const i=`(${e.found_posts})`,{element:n,value:d}=s[a],o=t(n);if("or"==o.closest(".wpr-advanced-filters-wrap").attr("data-wpr-relation")&&o.closest(".elementor-widget-wpr-advanced-filters-pro").is(r))return!0;if(o.hasClass("wpr-woo-rating"))o.find(".wpr-af-count").text(i);else if("OPTION"!==o.prop("tagName")){o.closest(".wpr-af-input-wrap").find(".wpr-af-count").text(i);let e=t(".wpr-af-active-filters").find(`span[data-value="${d}"]`);if(0")}})}}else if(0!=o.attr("value")){const e=o.text().replace(/\(\d+\)/,"");o.text(e+i)}0===e.found_posts?"hide"===o.closest(".wpr-advanced-filters-wrap").attr("data-empty-action")?0!=o.attr("value")&&(o.hide(),(o.is(":checkbox")||o.is(":radio"))&&(o.closest(".wpr-af-input-wrap").hide(),o.closest(".wpr-af-visual-wrap")&&o.closest(".wpr-af-visual-wrap").hide())):"disable"===o.closest(".wpr-advanced-filters-wrap").attr("data-empty-action")&&o.prop("disabled",!0):(o.prop("disabled",!1),o.show(),(o.is(":checkbox")||o.is(":radio"))&&(o.closest(".wpr-af-input-wrap").show(),o.closest(".wpr-af-visual-wrap").show()));const l=o.closest(".wpr-advanced-filters-wrap");0===l.find(".wpr-advanced-filters-inner").children(":visible").length?l.find(".wpr-af-filters-label").hide():l.find(".wpr-af-filters-label").show()})},800):void console.warn("Invalid response:",e)},error:function(e){console.error("AJAX error:",e)}})}function h(r=""){if(!i.editorCheck()){var s=r,d=t(".wpr-af-active-filters");0d.find(".wpr-grid-item").length?"load-more"===n.pagination_type&&(d.find(".wpr-grid-pagination").find(".wpr-pagination-loading").hide(),d.find(".wpr-grid-pagination").find(".wpr-load-more-btn").delay(500).show()):(d.find(".wpr-grid-pagination").find(".wpr-pagination-loading").hide(),d.find(".wpr-grid-pagination").find(".wpr-pagination-finish").fadeIn(1e3),d.find(".wpr-grid-pagination").delay(1e3).fadeOut(500),setTimeout(function(){d.find(".wpr-grid-pagination").find(".wpr-pagination-loading").hide()},500)),i.lightboxPopup(n,d,s),s.data("lightGallery").destroy(!0),s.lightGallery(n.lightbox),i.mediaHoverLink(r,s),s.removeClass("wpr-grid-loading"),window.dispatchEvent(new Event("resize")),window.dispatchEvent(new Event("scroll")),t(window).trigger("scroll"),d.find(".woocommerce-result-count").length){var o=d.find(".woocommerce-result-count").text(),l=o.replace(/\d\u2013\d+/,"1\u2013"+d.find(".wpr-grid-item").length);d.find(".woocommerce-result-count").text(l)}},error:function(e){console.log(e)}})):t.ajax({type:"POST",url:WprConfig.ajaxurl,data:{action:T,nonce:WprConfig.nonce,wpr_item_length:s.find(".wpr-grid-item").length,grid_settings:n.grid_settings,wpr_url_params:a,orderby:w},success:function(t){({data:t.data.output,timestamp:new Date().getTime()});i.changeInitialItems(0),u(t,!1,e,s,n,d)},error:function(e){console.log(e)}})},300)}var v=r.find(".wpr-af-visual-wrap"),b=r.find(".wpr-view-more-less"),_=t("body").find(".wpr-grid[data-advanced-filters=\"yes\"]").first(),x=t("body").find(".wpr-grid[data-advanced-filters=\"yes\"]").first().closest("[class*=\"elementor-widget-wpr-\"]"),C=_.length&&0<_.closest(".elementor-widget-wpr-woo-grid").length,k=C?"wpr_get_filtered_count_products":"wpr_get_filtered_count_posts",T=C?"wpr_woo_grid_filters_ajax":"wpr_grid_filters_ajax",P=[],S=0,j;if(0=x.find(".wpr-grid-pagination").data("pages")&&x.find(".wpr-load-more-btn").hide(),0l(e,t,a)),t.on("input",()=>p(e,t,i)),a.on("change",()=>d(e,a,i)),i.on("change",()=>o(t,a,i))}if(0null===e).map(e=>l[l.indexOf(e)].split("=")[0].replace("_gf_","_gfr_"));p=p.filter(function(e){var t=e.split("=")[0];return!c.includes(t)});var w=d+(0m.split(",")[0]==t(a).val()).length){let[e,a]=m.split(","),i=g.filter((a,i)=>e==t(i).val()),r=u.filter((e,i)=>a==t(i).val()),s=i.closest(".wpr-advanced-filters-wrap"),n=s.find(".wpr-af-range-container"),d=n.find(".wpr-af-from-slider"),o=n.find(".wpr-af-to-slider"),l=n.find(".wpr-af-rs-value-min"),p=n.find(".wpr-af-rs-value-max");d.val(i.attr("min")),o.val(r.attr("max")),l.text(i.attr("min")),p.text(r.attr("max")),i.val(i.attr("min")).trigger("input"),r.val(r.attr("max")).trigger("input"),n.find("input.wpr-af-from-slider").trigger("change"),0"+i.find("option:first").text()+"";e.data.forEach(function(e){t+=""}),i.html(t).prop("disabled",!1)}}})}var i=e.find(".wpr-af-main-select"),r=e.find(".wpr-af-dependent-select"),s=e.find(".wpr-advanced-filters-wrap").data("none-label")||"None";t(document).ready(function(){var e=i.val(),n=i.closest(".wpr-advanced-filters-wrap").find(".wpr-af-dependent-select").first().data("taxonomy"),d=i.data("taxonomy");s=t(this).find("option:first").text(),e&&0==r.first().val()&&a(e,n,r.first(),d)}),i.on("change",function(){var e=t(this).val(),i=t(this).closest(".wpr-advanced-filters-wrap").find(".wpr-af-dependent-select").first().data("taxonomy"),n=t(this).data("taxonomy");s=t(this).find("option:first").text(),r.each(function(){s=t(this).find("option:first").text(),t(this).prop("disabled",!0).empty().append("")}),e&&a(e,i,r.first(),n)}),r.on("change",function(){var e=t(this).val(),i=t(this).closest(".wpr-af-select-wrap").nextAll(".wpr-af-select-wrap").first().find(".wpr-af-dependent-select"),r=t(this).data("taxonomy");t(this).nextAll(".wpr-af-dependent-select").each(function(){t(this).prop("disabled",!0).empty().append("")}),e&&i.length&&a(e,i.data("taxonomy"),i,r)})}(r)},widgetPageCart:function(){},widgetPageMyAccount:function(e){i.editorCheck()&&(e.find(".woocommerce-MyAccount-content").each(function(){1!==t(this).index()&&t(this).css("display","none")}),e.find(".woocommerce-MyAccount-navigation-link").on("click",function(){var a,i,r;a=e.find(".woocommerce-MyAccount-content"),a.each(function(){t(this).css("display","none")}),i=e.find(".woocommerce-MyAccount-navigation-link"),i.each(function(){t(this).removeClass("is-active")}),r=t(this).attr("class").slice(t(this).attr("class").indexOf("--")+2),t(this).addClass("is-active"),e.find("[wpr-my-account-page=\""+r+"\"]").css("display","block")})),e.find(".wpr-wishlist-remove").length&&(e.find(".wpr-wishlist-remove").on("click",function(a){a.preventDefault();var r=t(this).data("product-id");t.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"remove_from_wishlist",nonce:WprConfig.nonce,product_id:r},success:function(){e.find(".wpr-wishlist-product[data-product-id=\""+r+"\"]").remove(),i.changeActionTargetProductId(r),t(document).trigger("removed_from_wishlist")}})}),t(document).on("removed_from_wishlist",function(){e.find(".wpr-wishlist-product[data-product-id=\""+r+"\"]").remove()}))},widgetReadingProgressBar:function(e){function a(e,a){var r=t("body").css("paddingTop"),s=t("body").css("paddingBottom");"0px"===a.css("top")?("colored"==a.data("background-type")&&t("body").css("paddingTop",e.find(".wpr-reading-progress-bar").css("height")),t("#wpadminbar").length&&a.css("top",t("#wpadminbar").height()),t("body").css("paddingBottom",s)):"0px"===a.css("bottom")&&"colored"==a.data("background-type")&&(t("body").css("paddingBottom",e.find(".wpr-reading-progress-bar").css("height")),t("body").css("paddingTop",r)),i(e),window.onscroll=function(){i(e)}}function i(e){if(e.find(".wpr-reading-progress-bar").length){var t=document.body.scrollTop||document.documentElement.scrollTop,a=document.documentElement.scrollHeight-document.documentElement.clientHeight;e.find(".wpr-reading-progress-bar").css("width",100*(t/a)+"%")}}if(0!=e.find(".wpr-reading-progress-bar-container").length){var r=e.find(".wpr-reading-progress-bar-container");a(e,r)}},widgetDataTable:function(a){function i(){if("yes"===a.find(".wpr-table-inner-container").attr("data-entry-info")){var e=+a.find(".wpr-active-pagination-item").text(),t=p*e-(p-a.find("tbody tr").length),i=t-a.find("tbody tr").length+1;a.find(".wpr-entry-info").html("Showing "+i+" to "+t+" of "+f.length+" Entries.")}}function r(){g=a.find(".wpr-active-pagination-item").index(),c.each(function(e){0==e||e==c.length-1||e<=g&&e>=g-2?t(this).css("display","flex"):t(this).css("display","none")})}function s(e){return function(i,a){var r=n(i,e),s=n(a,e);return t.isNumeric(r)&&t.isNumeric(s)?r-s:r.toString().localeCompare(s)}}function n(e,a){return t(e).children("td").eq(a).text()}function d(e,t,a){for(var r=[],s=a.find(".wpr-table-row"),n=0;np*(m-1)&&e<=p*m})),w.show(),l=a.find("tbody .wpr-table-row"),l.find(".wpr-table-tr-before-remove").each(function(){t(this).removeClass("wpr-table-tr-before-remove")}),i()}),a.find(".wpr-table-prev-next").each(function(){m=+a.find(".wpr-active-pagination-item").text(),t(this).hasClass("wpr-table-custom-pagination-prev")?t(this).on("click",function(){1p*(m-1)&&e<=p*m})),l=a.find("tbody .wpr-table-row"),""==h&&w.html(l)),i()}):t(this).on("click",function(){c.length>m&&(c.removeClass("wpr-active-pagination-item"),m++,c.each(function(e){e++,e===m&&(t(this).addClass("wpr-active-pagination-item"),m=+t(this).text())}),r(),w.html(f.filter(function(e){return e++,e>p*(m-1)&&e<=p*m})),l=a.find("tbody .wpr-table-row"),""==h&&w.html(l)),i()}),l.find(".wpr-table-tr-before-remove").each(function(){t(this).removeClass("wpr-table-tr-before-remove")})})}if(a.find(".wpr-table-inner-container").removeClass("wpr-hide-table-before-arrange"),i(),l=a.find("tbody .wpr-table-row"),a.find(".wpr-table-live-search").keyup(function(){""===this.value?a.find(".wpr-table-pagination-cont").removeClass("wpr-hide-pagination-on-search"):a.find(".wpr-table-pagination-cont").addClass("wpr-hide-pagination-on-search"),h=this.value.toLowerCase().trim();var e=[];f.each(function(){t(this).find("td").each(function(){var a=t(this).text().toLowerCase().trim(),i=-1==a.indexOf(h);i||e.push(t(this).closest("tr"))})}),w.html(e),""==h&&w.html(l),i()}),"yes"===a.find(".wpr-table-inner-container").attr("data-table-sorting")&&(t(window).click(function(i){t(i.target).hasClass("wpr-table-th")||0!==t(i.target).closest(".wpr-table-th").length||t(i.target).hasClass("wpr-active-td-bg-color")||0!==t(i.target).closest(".wpr-active-td-bg-color").length||a.find("td").each(function(){t(this).hasClass("wpr-active-td-bg-color")&&t(this).removeClass("wpr-active-td-bg-color")})}),a.find("th").click(function(){var e=t(this).index();a.find("td").each(function(){t(this).index()===e?t(this).addClass("wpr-active-td-bg-color"):t(this).removeClass("wpr-active-td-bg-color")}),a.find("th").each(function(){t(this).find(".wpr-sorting-icon").html("")});var r=t(this).parents("table").eq(0),n=r.find("tr:gt(0)").toArray().sort(s(t(this).index()));this.asc=!this.asc,(a.hasClass("wpr-data-table-type-custom")?!this.asc:this.asc)&&(a.hasClass("wpr-data-table-type-custom")?t(this).find(".wpr-sorting-icon").html(""):t(this).find(".wpr-sorting-icon").html(""),n=n.reverse()),(a.hasClass("wpr-data-table-type-custom")?this.asc:!this.asc)&&(a.hasClass("wpr-data-table-type-custom")?t(this).find(".wpr-sorting-icon").html(""):t(this).find(".wpr-sorting-icon").html(""));for(var d=0;d#"),f.each(function(e){t(this).prepend(""+(e+1)+" | ")})),a.find(".wpr-table-export-button-cont").length){var y=a.find(".wpr-table-export-button-cont .wpr-button");y.each(function(){t(this).hasClass("wpr-xls")?t(this).on("click",function(){let e=a.find("table");TableToExcel.convert(e[0],{name:`export.xlsx`,sheet:{name:"Sheet 1"}})}):t(this).hasClass("wpr-csv")&&t(this).on("click",function(){d("why-this-arg?","placeholder.csv",a.find(".wpr-data-table"))})})}},editorCheck:function(){return!!t("body").hasClass("elementor-editor-active")},changeAdminBarMenu:function(){let e=t("#wp-admin-bar-elementor_edit_page-default");e.children("li").each(function(){let e=t(this),a=e.children("a").children("span").first().text();0===a.indexOf("wpr-mega-menu-item")&&e.remove()})},changeActionTargetProductId:function(e){r=e},changeFinalURL:function(t){e=t},changeInitialItems:function(e){s=e},isotopeLayout:function(e,a="",r="",s=""){""!=r&&(s=r);var n=s.find(".wpr-grid"),d=n.find(".wpr-grid-item"),o=d.filter(":visible"),l=e.layout,p=e.layout,c=e.media_align,f=e.media_width,w=e.media_distance,m=3,h=1,g=2,u=parseInt(e.columns_desktop,10),y=e.gutter_hr,v=e.gutter_vr,b=e.gutter_hr_mobile,_=e.gutter_vr_mobile,x=e.gutter_hr_mobile_extra,C=e.gutter_vr_mobile_extra,k=e.gutter_hr_tablet,T=e.gutter_vr_tablet,P=e.gutter_hr_tablet_extra,S=e.gutter_vr_tablet_extra,j=e.gutter_hr_widescreen,z=e.gutter_vr_widescreen,O=e.gutter_hr_laptop,I=e.gutter_vr_laptop,A=n.width()+y-.3,L=t(window).outerWidth(),D=400,q,E,W,B,p;""!=a&&(d=a);for(var M=s.attr("class"),M=M.split(" "),N=0;N=L&&null!=X.mobile?(m=h,y=b,v=_):R>=L&&null!=X.mobile_extra?(m=q?q:g,y=x,v=C):H>=L&&null!=X.tablet?(m=g,y=k,v=T):F>=L&&null!=X.tablet_extra?(m=E?E:g,y=P,v=S):U>=L&&null!=X.laptop?(m=W?W:u,y=O,v=I):G>L?(m=u,y=e.gutter_hr,v=e.gutter_vr):(m=B?B:u,y=j,v=z),8Y&&(Y=a)}),"fitRows"===l&&o.each(function(){parseInt(t(this).css("top"))===Y&&t(this).addClass("rf-last-row")}),"list"===l){var J=d.find(".wpr-grid-image-wrap").outerHeight();if(d.find(".wpr-grid-item-below-content").css("min-height",J+"px"),480>t("body").prop("clientWidth"))d.find(".wpr-grid-media-wrap").css({float:"none",width:"100%"}),d.find(".wpr-grid-item-below-content").css({float:"none",width:"100%"}),d.find(".wpr-grid-image-wrap").css("padding","0"),d.find(".wpr-grid-item-below-content").css("min-height","0"),"zigzag"===c&&d.find("[class*=\"elementor-repeater-item\"]").css("text-align","center");else if("zigzag"!==c){d.find(".wpr-grid-media-wrap").css({float:c,width:f+"%"});var $="left"===c?"margin-right":"margin-left";d.find(".wpr-grid-media-wrap").css($,w+"px"),d.find(".wpr-grid-item-below-content").css({float:c,width:"calc((100% - "+f+"%) - "+w+"px)"})}else d.filter(":even").find(".wpr-grid-media-wrap").css({float:"left",width:f+"%"}),d.filter(":even").find(".wpr-grid-item-below-content").css({float:"left",width:"calc((100% - "+f+"%) - "+w+"px)"}),d.filter(":even").find(".wpr-grid-media-wrap").css("margin-right",w+"px"),d.filter(":odd").find(".wpr-grid-media-wrap").css({float:"right",width:f+"%"}),d.filter(":odd").find(".wpr-grid-item-below-content").css({float:"right",width:"calc((100% - "+f+"%) - "+w+"px)"}),d.filter(":odd").find(".wpr-grid-media-wrap").css("margin-left",w+"px"),n.hasClass("wpr-grid-list-ready")||d.each(function(e){var a=t(this).find("[class*=\"elementor-repeater-item\"]");0==e%2?a.each(function(){if(!t(this).hasClass("wpr-grid-item-align-center")){"none"===t(this).css("float")?t(this).css("text-align","left"):t(this).css("float","left");t(this).find(".inner-block")}}):a.each(function(e){if(!t(this).hasClass("wpr-grid-item-align-center")){"none"===t(this).css("float")?t(this).css("text-align","right"):t(this).css("float","right");var a=t(this).find(".inner-block");"0px"!==a.css("margin-left")&&(a.css("margin-right",a.css("margin-left")),a.css("margin-left","0")),0===e&&"0px"!==a.css("margin-right")&&(a.css("margin-left",a.css("margin-right")),a.css("margin-right","0"))}})}),setTimeout(function(){n.hasClass("wpr-grid-list-ready")||n.addClass("wpr-grid-list-ready")},500)}p=l,"list"===l&&(l="fitRows"),"default"!==e.filters_animation&&(D=0);n.isotopewpr({layoutMode:l,masonry:{gutter:y},fitRows:{gutter:y},transitionDuration:D,percentPosition:!0})},mediaHoverLink:function(e,a){a.find(".wpr-grid-media-wrap").on("mouseover",function(){"yes"===t(this).find(".wpr-grid-image-wrap").attr("data-img-on-hover")&&t(this).find("img:nth-of-type(2)").attr("src")!==void 0&&""!==t(this).find("img:nth-of-type(2)").attr("src")&&(t(this).find("img:first-of-type").addClass("wpr-hidden-img"),t(this).find("img:nth-of-type(2)").removeClass("wpr-hidden-img"))}),a.find(".wpr-grid-media-wrap").on("mouseleave",function(){"yes"===t(this).find(".wpr-grid-image-wrap").attr("data-img-on-hover")&&t(this).find("img:nth-of-type(2)").attr("src")!==void 0&&""!==t(this).find("img:nth-of-type(2)").attr("src")&&(t(this).find("img:nth-of-type(2)").addClass("wpr-hidden-img"),t(this).find("img:first-of-type").removeClass("wpr-hidden-img"))}),"yes"!==a.find(".wpr-grid-media-wrap").attr("data-overlay-link")||i.editorCheck()||(a.find(".wpr-grid-media-wrap").css("cursor","pointer"),a.find(".wpr-grid-media-wrap").on("click",function(e){var i=e.target.className;if(-1!==i.indexOf("inner-block")||-1!==i.indexOf("wpr-cv-inner")||-1!==i.indexOf("wpr-grid-media-hover")){e.preventDefault(),e.stopPropagation();var r=t(this).find(".wpr-grid-media-hover-bg").attr("data-url"),r=r.replace("#new_tab","");if(r)try{var s=new URL(r);if(["http:","https:"].includes(s.protocol)){var n=s.href;"_blank"===a.find(".wpr-grid-item-title a").attr("target")?window.open(n,"_blank").focus():window.location.href=n}else console.error("Invalid URL scheme:",s.protocol)}catch(t){console.error("Invalid URL:",r)}}}))},lightboxPopup:function(e,a,r){if(-1!==r.find(".wpr-grid-item-lightbox").length){var s=r.find(".wpr-grid-item-lightbox"),n=s.find(".wpr-grid-lightbox-overlay").first();s.each(function(){var e=t(this).find(".inner-block > span").attr("data-src"),a=t(this).closest("article").not(".slick-cloned");r.hasClass("wpr-media-grid")||a.find(".wpr-grid-image-wrap").attr("data-src",e);var i=a.find(".wpr-grid-image-wrap").attr("data-src");typeof i!="undefined"&&!1!==i&&-1===i.indexOf("wp-content")&&a.find(".wpr-grid-image-wrap").attr("data-iframe","true")}),r.lightGallery(e.lightbox),r.on("onAfterOpen.lg",function(){t(".lg-outer").find(".lg-thumb-item").length&&t(".lg-outer").find(".lg-thumb-item").each(function(){var e=t(this).find("img").attr("src"),a=e,i=e.lastIndexOf("."),r=e.slice(i),s=e.lastIndexOf("-"),n=!!/\d{3,}x\d{3,}/.test(e.substring(i,s))&&e.substring(i,s);42<=e.substring(i,s).length&&(n=""),""!==n&&(!1===n?a=[e.slice(0,i),"-150x150",e.slice(i)].join(""):a=e.replace(n,"-150x150")),t(this).find("img").attr("src",a)})}),r.find(".wpr-grid").on("onAferAppendSlide.lg, onAfterSlide.lg",function(){var a=t("#lg-actual-size, #lg-zoom-in, #lg-zoom-out, #lg-download"),i=t("#lg-download").attr("href");t("#lg-download").length&&(-1===i.indexOf("wp-content")?a.addClass("wpr-hidden-element"):a.removeClass("wpr-hidden-element")),""===e.lightbox.autoplay&&t(".lg-autoplay-button").css({width:"0",height:"0",overflow:"hidden"})}),n.length?(r.find(".wpr-grid-media-hover-bg").after(n.remove()),r.find(".wpr-grid-lightbox-overlay").on("click",function(){i.editorCheck()?alert("Lightbox is Disabled in the Editor! Please Preview this Page to see it in action."):t(this).closest("article").find(".wpr-grid-image-wrap").trigger("click")})):s.find(".inner-block > span").on("click",function(){if(!i.editorCheck()){var e=t(this).closest("article").find(".wpr-grid-image-wrap");e.trigger("click")}else alert("Lightbox is Disabled in the Editor! Please Preview this Page to see it in action.")})}},sanitizeHTMLContent:function(e){var t=document.createElement("div");t.innerHTML=e;for(var a=t.getElementsByTagName("script");0r===e||r.endsWith("."+e)),n=/\.(mp4|webm|ogg)(?:$|\?)/i.test(i.pathname);return s||n?i.toString():null},sanitizeDataAttr:function(e){const t=((e||"")+"").trim(),a=["onerror","onclick","onload","script","<",">","=","javascript:","data:","vbscript:","&","%3C","%3E"];for(const i of a)if(t.toLowerCase().includes(i))return null;return DOMPurify.sanitize(t,{SAFE_FOR_TEMPLATES:!0,ALLOWED_TAGS:[],ALLOWED_ATTR:[]})},closeSideBarOnReplace:function(e=null,a=200){e.find(".wpr-shopping-cart-inner-wrap").addClass("wpr-mini-cart-slide-out"),e.find(".wpr-mini-cart-slide-out").css("animation-speed",a),e.find(".wpr-shopping-cart-wrap").fadeOut(a),t("body").removeClass("wpr-mini-cart-sidebar-body"),setTimeout(function(){e.find(".wpr-shopping-cart-inner-wrap").removeClass("wpr-mini-cart-slide-out"),e.find(".wpr-mini-cart").css({display:"none"})},a+100)}},r,s;t(window).on("elementor/frontend/init",i.init)})(jQuery,window.elementorFrontend),function(e,t){var a=function(e,t,a){var i;return function(){var r=this,s=arguments;i?clearTimeout(i):a&&e.apply(r,s),i=setTimeout(function(){a||e.apply(r,s),i=null},t||100)}};jQuery.fn[t]=function(e){return e?this.bind("resize",a(e)):this.trigger(t)}}(jQuery,"smartresize");