(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"+m+"

"+n+" was added to Compare

View Compare

"),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"+h+"

"+d+" was added to Wishlist

View Wishlist

"),setTimeout(()=>{e.find("#wpr-added-to-wish-"+n).addClass(g),setTimeout(()=>{e.find("#wpr-added-to-wish-"+n).remove()},1e3*w)},1e3*f)))}},error:function(e){var t=e.responseJSON.message;alert(t)}})}),e.find(".wpr-wishlist-remove").on("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_wishlist",nonce:WprConfig.nonce,product_id:r},success:function(){e.find(".wpr-wishlist-remove[data-product-id=\""+r+"\"]").hide(),e.find(".wpr-wishlist-add[data-product-id=\""+r+"\"]").show(),e.find(".wpr-wishlist-add[data-product-id=\""+r+"\"]").fadeTo(500,1),i.changeActionTargetProductId(r),t(document).trigger("removed_from_wishlist")}})}),t(document).on("removed_from_wishlist",function(){e.find(".wpr-wishlist-remove[data-product-id=\""+r+"\"]").hide(),e.find(".wpr-wishlist-add[data-product-id=\""+r+"\"]").show(),e.find(".wpr-wishlist-add[data-product-id=\""+r+"\"]").fadeTo(500,1)}))}function w(){let a=null;e.find(".wpr-grid-filters").on("click","span",function(r){a&&a.abort(),_=0;var s=t(this).data("filter"),n=t(this).parent("li"),d=n.attr("data-role"),l,p;"*"===t(this).data("filter")?(l="*",p="*"):(l=t(this).data("ajax-filter")[0],p=t(this).data("ajax-filter")[1]),"parent"===d?n.parent("ul").find("ul[data-parent=\""+s+"\"]").length&&(n.parent("ul").children("li").css("display","none"),n.siblings("ul[data-parent=\""+s+"\"]").css("display","block")):"back"===d&&(n.closest(".wpr-grid-filters").children("li").css("display","inline-block"),n.parent().css("display","none")),e.find(".wpr-grid-filters span").removeClass("wpr-active-filter"),t(this).addClass("wpr-active-filter"),r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation(),h.isotopewpr("remove",h.children(".wpr-grid-item")),1>h.find(".wpr-grid-loader-wrap").length&&h.append("
");const c=performance.now();t.ajax({type:"POST",url:WprConfig.ajaxurl,data:{action:g,nonce:WprConfig.nonce,wpr_offset:+b.grid_settings.query_offset,wpr_filter:p,wpr_taxonomy:l,grid_settings:b.grid_settings},success:function(r){var s=r.data.page_count,n=r.data.query_found;const d=performance.now();console.log(`AJAX call took ${d-c} ms`);const f=performance.now();a=t.ajax({type:"POST",url:WprConfig.ajaxurl,data:{action:u,nonce:WprConfig.nonce,wpr_item_length:+b.grid_settings.query_offset+e.find(".wpr-grid-item").length,wpr_filter:p,wpr_taxonomy:l,grid_settings:b.grid_settings},success:function(a){setTimeout(function(){const r=performance.now();console.log(`AJAX call took ${r-f} ms`);var d=t(a.data.output);d||(d=t(a)),h.find(".wpr-grid-loader-wrap").remove(),h.addClass("wpr-fix-grid-height"),h.append(d).isotopewpr("appended",d).isotopewpr("layout"),setTimeout(function(){h.removeClass("wpr-fix-grid-height")},500),"load-more"==b.pagination_type&&x&&(x.find(".wpr-pagination-finish").fadeOut(100),x.delay(2e3).fadeIn(100),1>=s&&n<=d.length&&"load-more"===b.pagination_type&&x.find(".wpr-load-more-btn").fadeOut(),1=a)return;var i=1,r=e.find(".wpr-grid-current-page");r.length&&(i=parseInt(r.text().trim())||1);var s=t.match(/(\d+)(?!.*\d+)/),n=s?parseInt(s[1].trim()):a;if(isNaN(n)||0>=n)return;var d=(i-1)*a+1,o=Math.min(d+a-1,n);t=t.replace(/\d+\u2013\d+/,d+"\u2013"+o),e.find(".woocommerce-result-count").text(t)}},200)}),i.isotopeLayout(b,"","",e),setTimeout(function(){i.isotopeLayout(b,"","",e)},100),i.editorCheck()&&(setTimeout(function(){i.isotopeLayout(b,"","",e)},500),setTimeout(function(){i.isotopeLayout(b,"","",e)},1e3)),t(window).on("load",function(){setTimeout(function(){i.isotopeLayout(b,"","",e)},100)}),t(document).ready(function(){setTimeout(function(){i.isotopeLayout(b,"","",e)},100)}),t(window).smartresize(function(){setTimeout(function(){i.isotopeLayout(b,"","",e)},200)}),b.grid_settings){var _=0;0==t("body").find(".wpr-advanced-filters-wrap").length&&m(),w()}if(l(b),i.changeInitialItems(0),h.on("arrangeComplete",function(a,r){var n=0,d=0,o=0,l=b.animation_duration,p=b.filters_animation_duration;if(h.hasClass("grid-images-loaded"))o=0;else if(h.css("opacity","1"),"default"===b.animation&&"default"===b.filters_animation)return;for(var c in r){(0==s||c>s-1)&&(o+=b.animation_delay,e.find(r[c].element).find(".wpr-grid-item-inner").css({opacity:"1",top:"0",transform:"scale(1)",transition:"all "+l+"s ease-in "+o+"s"})),d+=b.filters_animation_delay,h.hasClass("grid-images-loaded")&&e.find(r[c].element).find(".wpr-grid-item-inner").css({transition:"all "+p+"s ease-in "+d+"s"});var f=window.location.hash;0<=f.indexOf("#filter:")&&0>f.indexOf("#filter:*")&&(f=f.replace("#filter:",""),e.find(r[c].element).filter(function(){if(t(this).hasClass(f))return n+=b.filters_animation_delay,t(this)}).find(".wpr-grid-item-inner").css({"transition-delay":n+"s"}))}i.changeInitialItems(r.length)}),h.imagesLoaded(function(){"1"!==h.css("opacity")&&h.css("opacity","1"),setTimeout(function(){h.addClass("grid-images-loaded")},500),d(b)}),"load-more"===b.pagination_type||"infinite-scroll"===b.pagination_type)if(e.find(".wpr-grid-pagination").length&&!i.editorCheck()){var x=e.find(".wpr-grid-pagination"),C=".elementor-element-"+e.attr("data-id"),k=!1,T=!1;"infinite-scroll"===b.pagination_type&&(T=300,k=C+" .wpr-load-more-btn"),h.infiniteScroll({path:C+" .wpr-grid-pagination a",hideNav:k,append:!1,history:!1,scrollThreshold:T,status:C+" .page-load-status",onInit:function(){this.on("load",function(){h.removeClass("grid-images-loaded")})}}),h.on("request.infiniteScroll",function(){x.find(".wpr-load-more-btn").hide(),x.find(".wpr-pagination-loading").css("display","inline-block")});var P=0;h.on("load.infiniteScroll",function(r,s){P++;var n=t(s).find(C).find(".wpr-grid-item");if(e.find(".woocommerce-result-count").length){var p=e.find(".woocommerce-result-count").text(),c=p.replace(/\d\u2013\d+/,"1\u2013"+(e.find(".wpr-grid-item").length+n.length));e.find(".woocommerce-result-count").text(c)}if(h.infiniteScroll("appendItems",n),h.isotopewpr("appended",n),n.imagesLoaded().progress(function(){i.isotopeLayout(b,"","",e),setTimeout(function(){i.isotopeLayout(b,"","",e),l(b)},10),setTimeout(function(){h.addClass("grid-images-loaded")},500)}),x.find(".wpr-pagination-loading").hide(),b.pagination_max_pages-1===P)x.find(".wpr-pagination-finish").fadeIn(1e3),x.delay(2e3).fadeOut(1e3),setTimeout(function(){x.find(".wpr-pagination-loading").hide()},500);else if("load-more"===b.pagination_type&&(x.find(".wpr-load-more-btn").fadeIn(),e.find(".wpr-grid-filters").length&&"*"!==e.find(".wpr-active-filter").attr("data-filter")&&0"},slidesToShow:j,responsive:[{breakpoint:1e4,settings:{slidesToShow:z,slidesToScroll:E>z?1:E}},{breakpoint:2399,settings:{slidesToShow:j,slidesToScroll:E>j?1:E}},{breakpoint:1221,settings:{slidesToShow:O,slidesToScroll:E>O?1:E}},{breakpoint:1200,settings:{slidesToShow:A,slidesToScroll:E>A?1:E}},{breakpoint:1024,settings:{slidesToShow:I,slidesToScroll:E>I?1:E}},{breakpoint:880,settings:{slidesToShow:L,slidesToScroll:E>L?1:E}},{breakpoint:768,settings:{slidesToShow:D,slidesToScroll:E>D?1:E}}]});var W=e.find(".wpr-grid-slider-prev-arrow"),B=e.find(".wpr-grid-slider-next-arrow");if(0\"\"",0"+h+"

"+o+" "+WprConfig.addedToCartText+"

"+WprConfig.viewCart+"

"),setTimeout(()=>{t(this).find("#wpr-added-to-cart-"+n).addClass(g),setTimeout(()=>{t(this).find("#wpr-added-to-cart-"+n).remove()},1e3*w)},1e3*f))}R.length&&(s.find("i").removeClass(H).addClass("fa-check"),setTimeout(function(){s.find("i").removeClass("fa-check").addClass(H)},3500))})}a(),i.mediaHoverLink(e,h),e.hasClass("elementor-widget-wpr-woo-category-grid-pro")||e.hasClass("elementor-widget-wpr-category-grid-pro")||i.lightboxPopup(b,e,h),n(b),o()}},widgetMagazineGrid:function(e){var a=e.find(".wpr-magazine-grid-wrap"),r=a.attr("data-slick"),s=a.attr("data-slide-effect");typeof r!="undefined"&&!1!==r&&a.slick({fade:"fade"===s}),t(document).ready(function(){a.css("opacity",1)});a.find(".wpr-mgzn-grid-item").length;if("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();var r=t(this).find(".wpr-grid-media-hover-bg").attr("data-url");if(a.find(".wpr-grid-item-title a").length&&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)}}})),e.find(".wpr-sharing-trigger").length){var n=e.find(".wpr-sharing-trigger"),d=e.find(".wpr-post-sharing-inner"),o=5;d.first().find("a").each(function(){o+=t(this).outerWidth()+parseInt(t(this).css("margin-right"),10)});var l=parseInt(d.find("a").css("margin-right"),10);"left"===n.attr("data-direction")?(d.css("width",o+"px"),d.css("left",-(l+o)+"px")):"right"===n.attr("data-direction")?(d.css("width",o+"px"),d.css("right",-(l+o)+"px")):"top"===n.attr("data-direction")?(d.find("a").css({"margin-right":"0","margin-top":l+"px"}),d.css({top:-l+"px",left:"50%","-webkit-transform":"translate(-50%, -100%)",transform:"translate(-50%, -100%)"})):"right"===n.attr("data-direction")?(d.css("width",o+"px"),d.css({left:l+"px"})):"bottom"===n.attr("data-direction")&&(d.find("a").css({"margin-right":"0","margin-bottom":l+"px"}),d.css({bottom:-l+"px",left:"50%","-webkit-transform":"translate(-50%, 100%)",transform:"translate(-50%, 100%)"})),"click"===n.attr("data-action")?n.on("click",function(){var e=t(this).next();"hidden"===e.css("visibility")?(e.css("visibility","visible"),e.find("a").css({opacity:"1",top:"0"}),setTimeout(function(){e.find("a").addClass("wpr-no-transition-delay")},100*e.find("a").length)):(e.find("a").removeClass("wpr-no-transition-delay"),e.find("a").css({opacity:"0",top:"-5px"}),setTimeout(function(){e.css("visibility","hidden")},100*e.find("a").length))}):(n.on("mouseenter",function(){var e=t(this).next();e.css("visibility","visible"),e.find("a").css({opacity:"1",top:"0"}),setTimeout(function(){e.find("a").addClass("wpr-no-transition-delay")},100*e.find("a").length)}),e.find(".wpr-grid-item-sharing").on("mouseleave",function(){var e=t(this).find(".wpr-post-sharing-inner");e.find("a").removeClass("wpr-no-transition-delay"),e.find("a").css({opacity:"0",top:"-5px"}),setTimeout(function(){e.css("visibility","hidden")},100*e.find("a").length)}))}e.find(".wpr-post-like-button").length&&e.find(".wpr-post-like-button").on("click",function(){var e=t(this);return""!==e.attr("data-post-id")&&t.ajax({type:"POST",url:t("
").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})},widgetFeaturedMedia:function(e){var a=e.find(".wpr-gallery-slider"),r=a.attr("data-slick");a.animate({opacity:"1"},1e3),"[]"!==r&&a.slick({appendDots:e.find(".wpr-gallery-slider-dots"),customPaging:function(e,t){e.slideCount;return""}});var s=t(".wpr-featured-media-image").attr("data-lightbox");if(typeof s!=typeof void 0&&!1!==s&&!i.editorCheck()){var n=e.find(".wpr-featured-media-wrap");s=JSON.parse(s),n.lightGallery(s),n.on("onAferAppendSlide.lg, onAfterSlide.lg",function(){var e=t("#lg-actual-size, #lg-zoom-in, #lg-zoom-out, #lg-download"),a=t("#lg-download").attr("href");t("#lg-download").length&&(-1===a.indexOf("wp-content")?e.addClass("wpr-hidden-element"):e.removeClass("wpr-hidden-element")),""===s.autoplay&&t(".lg-autoplay-button").css({width:"0",height:"0",overflow:"hidden"})})}},widgetProductMedia:function(e){t(document).ready(function(t){t(window).trigger("resize"),setTimeout(function(){t(window).trigger("resize"),e.find(".wpr-product-media-wrap").removeClass("wpr-zero-opacity")},1e3)});var a=e.find(".wpr-gallery-slider-arrows-wrap");a.remove(),e.find(".woocommerce-product-gallery__trigger").length&&e.find(".woocommerce-product-gallery__trigger").remove(),e.find(".flex-viewport").append(a),e.find(".wpr-gallery-slider-arrow").on("click",function(){t(this).hasClass("wpr-gallery-slider-prev-arrow")?e.find("a.flex-prev").trigger("click"):t(this).hasClass("wpr-gallery-slider-next-arrow")&&e.find("a.flex-next").trigger("click")});var r=t(".wpr-product-media-wrap").attr("data-lightbox");if(typeof r!=typeof void 0&&!1!==r&&!i.editorCheck()){e.find(".woocommerce-product-gallery__image").each(function(){t(this).attr("data-lightbox",r),t(this).attr("data-src",t(this).find("a").attr("href"))}),e.find(".woocommerce-product-gallery__image").on("click",function(t){t.stopPropagation()}),e.find(".wpr-product-media-lightbox").on("click",function(){e.find(".woocommerce-product-gallery__image").trigger("click")});var s=e.find(".woocommerce-product-gallery__wrapper");r=JSON.parse(r),s.lightGallery(r),s.on("onAferAppendSlide.lg, onAfterSlide.lg",function(){var e=t("#lg-actual-size, #lg-zoom-in, #lg-zoom-out, #lg-download"),a=t("#lg-download").attr("href");t("#lg-download").length&&(-1===a.indexOf("wp-content")?e.addClass("wpr-hidden-element"):e.removeClass("wpr-hidden-element")),""===r.autoplay&&t(".lg-autoplay-button").css({width:"0",height:"0",overflow:"hidden"})})}if(e.hasClass("wpr-product-media-thumbs-slider")&&e.hasClass("wpr-product-media-thumbs-vertical")){var n=e.find(".wpr-product-media-wrap").data("slidestoshow"),d=+e.find(".wpr-product-media-wrap").data("slidestoscroll");e.find(".flex-control-nav").css("height",100/n*e.find(".flex-control-nav li").length+"%"),e.find(".flex-control-nav").wrap("
");var o=e.find(".wpr-thumbnail-slider-prev-arrow"),l=e.find(".wpr-thumbnail-slider-next-arrow");o.remove(),l.remove(),e.find(".wpr-product-media-wrap").data("slidestoshow")
");var o=e.find(".wpr-thumbnail-slider-prev-arrow"),l=e.find(".wpr-thumbnail-slider-next-arrow");o.remove(),l.remove(),e.find(".wpr-product-media-wrap").data("slidestoshow")i.days||0>i.hours||0>i.minutes)&&(i={days:0,hours:0,minutes:0,seconds:0}),e.find(".wpr-countdown-number").each(function(){var e=i[t(this).attr("data-item")];1===e.toString().length&&(e="0"+e),t(this).text(e);var a=t(this).next();if(a.length&&!t(this).hasClass("wpr-countdown-seconds")){var r=a.data("text");"01"==e?a.text(r.singular):a.text(r.plural)}}),0>a&&(clearInterval(n),r())}function r(){var a=s.data("actions");if(!i.editorCheck()){if(a.hasOwnProperty("hide-timer")&&s.hide(),a.hasOwnProperty("hide-element")&&t(a["hide-element"]).hide(),a.hasOwnProperty("message")&&!e.children(".elementor-widget-container").children(".wpr-countdown-message").length&&!e.children(".wpr-countdown-message").length){var r=i.sanitizeHTMLContent(a.message);s.after("
"+r+"
")}if(a.hasOwnProperty("redirect")){var n=new URL(a.redirect);["http:","https:"].includes(n.protocol)&&(window.location.href=n.href)}a.hasOwnProperty("load-template")&&s.next(".elementor").show()}}var s=0

"+t.gm_location_title+"

"+t.gm_location_description+"

",i=new google.maps.InfoWindow({content:a,maxWidth:t.gm_info_window_width.size});"load"===t.gm_show_info_window?i.open(p,e):e.addListener("click",function(){i.open(p,e)})}function a(e){var t;switch(e.style){case"simple":t=JSON.parse("[{\"featureType\":\"road\",\"elementType\":\"geometry\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"poi\",\"elementType\":\"geometry\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"landscape\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#fffffa\"}]},{\"featureType\":\"water\",\"stylers\":[{\"lightness\":50}]},{\"featureType\":\"road\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"transit\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry\",\"stylers\":[{\"lightness\":40}]}]");break;case"white-black":t=JSON.parse("[{\"featureType\":\"road\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"on\"}]},{\"featureType\":\"poi\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"administrative\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"road\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#000000\"},{\"weight\":1}]},{\"featureType\":\"road\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#000000\"},{\"weight\":0.8}]},{\"featureType\":\"landscape\",\"stylers\":[{\"color\":\"#ffffff\"}]},{\"featureType\":\"water\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"transit\",\"stylers\":[{\"visibility\":\"off\"}]},{\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"off\"}]},{\"elementType\":\"labels.text\",\"stylers\":[{\"visibility\":\"on\"}]},{\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"color\":\"#ffffff\"}]},{\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#000000\"}]},{\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"on\"}]}]");break;case"light-silver":t=JSON.parse("[{\"featureType\":\"water\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#e9e9e9\"},{\"lightness\":17}]},{\"featureType\":\"landscape\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#f5f5f5\"},{\"lightness\":20}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#ffffff\"},{\"lightness\":17}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#ffffff\"},{\"lightness\":29},{\"weight\":0.2}]},{\"featureType\":\"road.arterial\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#ffffff\"},{\"lightness\":18}]},{\"featureType\":\"road.local\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#ffffff\"},{\"lightness\":16}]},{\"featureType\":\"poi\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#f5f5f5\"},{\"lightness\":21}]},{\"featureType\":\"poi.park\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#dedede\"},{\"lightness\":21}]},{\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"visibility\":\"on\"},{\"color\":\"#ffffff\"},{\"lightness\":16}]},{\"elementType\":\"labels.text.fill\",\"stylers\":[{\"saturation\":36},{\"color\":\"#333333\"},{\"lightness\":40}]},{\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"transit\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#f2f2f2\"},{\"lightness\":19}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#fefefe\"},{\"lightness\":20}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#fefefe\"},{\"lightness\":17},{\"weight\":1.2}]}]");break;case"light-grayscale":t=JSON.parse("[{\"featureType\":\"all\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"weight\":\"2.00\"}]},{\"featureType\":\"all\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#9c9c9c\"}]},{\"featureType\":\"all\",\"elementType\":\"labels.text\",\"stylers\":[{\"visibility\":\"on\"}]},{\"featureType\":\"landscape\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#f2f2f2\"}]},{\"featureType\":\"landscape\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#ffffff\"}]},{\"featureType\":\"landscape.man_made\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#ffffff\"}]},{\"featureType\":\"poi\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"road\",\"elementType\":\"all\",\"stylers\":[{\"saturation\":-100},{\"lightness\":45}]},{\"featureType\":\"road\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#eeeeee\"}]},{\"featureType\":\"road\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#7b7b7b\"}]},{\"featureType\":\"road\",\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"color\":\"#ffffff\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"transit\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"water\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#46bcec\"},{\"visibility\":\"on\"}]},{\"featureType\":\"water\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#c8d7d4\"}]},{\"featureType\":\"water\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#070707\"}]},{\"featureType\":\"water\",\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"color\":\"#ffffff\"}]}]");break;case"subtle-grayscale":t=JSON.parse("[{\"featureType\":\"administrative\",\"elementType\":\"all\",\"stylers\":[{\"saturation\":\"-100\"}]},{\"featureType\":\"administrative.province\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"landscape\",\"elementType\":\"all\",\"stylers\":[{\"saturation\":-100},{\"lightness\":65},{\"visibility\":\"on\"}]},{\"featureType\":\"poi\",\"elementType\":\"all\",\"stylers\":[{\"saturation\":-100},{\"lightness\":\"50\"},{\"visibility\":\"simplified\"}]},{\"featureType\":\"road\",\"elementType\":\"all\",\"stylers\":[{\"saturation\":\"-100\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"all\",\"stylers\":[{\"lightness\":\"30\"}]},{\"featureType\":\"road.local\",\"elementType\":\"all\",\"stylers\":[{\"lightness\":\"40\"}]},{\"featureType\":\"transit\",\"elementType\":\"all\",\"stylers\":[{\"saturation\":-100},{\"visibility\":\"simplified\"}]},{\"featureType\":\"water\",\"elementType\":\"geometry\",\"stylers\":[{\"hue\":\"#ffff00\"},{\"lightness\":-25},{\"saturation\":-97}]},{\"featureType\":\"water\",\"elementType\":\"labels\",\"stylers\":[{\"lightness\":-25},{\"saturation\":-100}]}]");break;case"mostly-white":t=JSON.parse("[{\"featureType\":\"administrative\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#6195a0\"}]},{\"featureType\":\"landscape\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#f2f2f2\"}]},{\"featureType\":\"landscape\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#ffffff\"}]},{\"featureType\":\"poi\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"poi.park\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#e6f3d6\"},{\"visibility\":\"on\"}]},{\"featureType\":\"road\",\"elementType\":\"all\",\"stylers\":[{\"saturation\":-100},{\"lightness\":45},{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#f4d2c5\"},{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"labels.text\",\"stylers\":[{\"color\":\"#4e4e4e\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#f4f4f4\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#787878\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"transit\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"water\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#eaf6f8\"},{\"visibility\":\"on\"}]},{\"featureType\":\"water\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#eaf6f8\"}]}]");break;case"mostly-green":t=JSON.parse("[{\"featureType\":\"landscape.man_made\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#f7f1df\"}]},{\"featureType\":\"landscape.natural\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#d0e3b4\"}]},{\"featureType\":\"landscape.natural.terrain\",\"elementType\":\"geometry\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"poi\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"poi.business\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"poi.medical\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#fbd3da\"}]},{\"featureType\":\"poi.park\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#bde6ab\"}]},{\"featureType\":\"road\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"road\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#ffe15f\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#efd151\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#ffffff\"}]},{\"featureType\":\"road.local\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"black\"}]},{\"featureType\":\"transit.station.airport\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#cfb2db\"}]},{\"featureType\":\"water\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#a2daf2\"}]}]");break;case"neutral-blue":t=JSON.parse("[{\"featureType\":\"water\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#193341\"}]},{\"featureType\":\"landscape\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#2c5a71\"}]},{\"featureType\":\"road\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#29768a\"},{\"lightness\":-37}]},{\"featureType\":\"poi\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#406d80\"}]},{\"featureType\":\"transit\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#406d80\"}]},{\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"visibility\":\"on\"},{\"color\":\"#3e606f\"},{\"weight\":2},{\"gamma\":0.84}]},{\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#ffffff\"}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry\",\"stylers\":[{\"weight\":0.6},{\"color\":\"#1a3541\"}]},{\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"poi.park\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#2c5a71\"}]}]");break;case"blue-water":t=JSON.parse("[{\"featureType\":\"administrative\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#444444\"}]},{\"featureType\":\"landscape\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#f2f2f2\"}]},{\"featureType\":\"poi\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"road\",\"elementType\":\"all\",\"stylers\":[{\"saturation\":-100},{\"lightness\":45}]},{\"featureType\":\"road.highway\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"simplified\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"transit\",\"elementType\":\"all\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"water\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#46bcec\"},{\"visibility\":\"on\"}]}]");break;case"blue-essense":t=JSON.parse("[{\"featureType\":\"landscape.natural\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"visibility\":\"on\"},{\"color\":\"#e0efef\"}]},{\"featureType\":\"poi\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"visibility\":\"on\"},{\"hue\":\"#1900ff\"},{\"color\":\"#c0e8e8\"}]},{\"featureType\":\"road\",\"elementType\":\"geometry\",\"stylers\":[{\"lightness\":100},{\"visibility\":\"simplified\"}]},{\"featureType\":\"road\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"transit.line\",\"elementType\":\"geometry\",\"stylers\":[{\"visibility\":\"on\"},{\"lightness\":700}]},{\"featureType\":\"water\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#7dcdcd\"}]}]");break;case"golden-brown":t=JSON.parse("[{\"featureType\":\"all\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#ff7000\"},{\"lightness\":\"69\"},{\"saturation\":\"100\"},{\"weight\":\"1.17\"},{\"gamma\":\"2.04\"}]},{\"featureType\":\"all\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#cb8536\"}]},{\"featureType\":\"all\",\"elementType\":\"labels\",\"stylers\":[{\"color\":\"#ffb471\"},{\"lightness\":\"66\"},{\"saturation\":\"100\"}]},{\"featureType\":\"all\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"gamma\":0.01},{\"lightness\":20}]},{\"featureType\":\"all\",\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"saturation\":-31},{\"lightness\":-33},{\"weight\":2},{\"gamma\":0.8}]},{\"featureType\":\"all\",\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"landscape\",\"elementType\":\"all\",\"stylers\":[{\"lightness\":\"-8\"},{\"gamma\":\"0.98\"},{\"weight\":\"2.45\"},{\"saturation\":\"26\"}]},{\"featureType\":\"landscape\",\"elementType\":\"geometry\",\"stylers\":[{\"lightness\":30},{\"saturation\":30}]},{\"featureType\":\"poi\",\"elementType\":\"geometry\",\"stylers\":[{\"saturation\":20}]},{\"featureType\":\"poi.park\",\"elementType\":\"geometry\",\"stylers\":[{\"lightness\":20},{\"saturation\":-20}]},{\"featureType\":\"road\",\"elementType\":\"geometry\",\"stylers\":[{\"lightness\":10},{\"saturation\":-30}]},{\"featureType\":\"road\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"saturation\":25},{\"lightness\":25}]},{\"featureType\":\"water\",\"elementType\":\"all\",\"stylers\":[{\"lightness\":-20},{\"color\":\"#ecc080\"}]}]");break;case"midnight-commander":t=JSON.parse("[{\"featureType\":\"all\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#ffffff\"}]},{\"featureType\":\"all\",\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":13}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#000000\"}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#144b53\"},{\"lightness\":14},{\"weight\":1.4}]},{\"featureType\":\"landscape\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#08304b\"}]},{\"featureType\":\"poi\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#0c4152\"},{\"lightness\":5}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#000000\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#0b434f\"},{\"lightness\":25}]},{\"featureType\":\"road.arterial\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#000000\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#0b3d51\"},{\"lightness\":16}]},{\"featureType\":\"road.local\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"}]},{\"featureType\":\"transit\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#146474\"}]},{\"featureType\":\"water\",\"elementType\":\"all\",\"stylers\":[{\"color\":\"#021019\"}]}]");break;case"shades-of-grey":t=JSON.parse("[{\"featureType\":\"all\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"saturation\":36},{\"color\":\"#000000\"},{\"lightness\":40}]},{\"featureType\":\"all\",\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"visibility\":\"on\"},{\"color\":\"#000000\"},{\"lightness\":16}]},{\"featureType\":\"all\",\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":20}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":17},{\"weight\":1.2}]},{\"featureType\":\"landscape\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":20}]},{\"featureType\":\"poi\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":21}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":17}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":29},{\"weight\":0.2}]},{\"featureType\":\"road.arterial\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":18}]},{\"featureType\":\"road.local\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":16}]},{\"featureType\":\"transit\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":19}]},{\"featureType\":\"water\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":17}]}]");break;case"yellow-black":t=JSON.parse("[{\"featureType\":\"all\",\"elementType\":\"labels\",\"stylers\":[{\"visibility\":\"on\"}]},{\"featureType\":\"all\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"saturation\":36},{\"color\":\"#000000\"},{\"lightness\":40}]},{\"featureType\":\"all\",\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"visibility\":\"on\"},{\"color\":\"#000000\"},{\"lightness\":16}]},{\"featureType\":\"all\",\"elementType\":\"labels.icon\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":20}]},{\"featureType\":\"administrative\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":17},{\"weight\":1.2}]},{\"featureType\":\"administrative.country\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#e5c163\"}]},{\"featureType\":\"administrative.locality\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#c4c4c4\"}]},{\"featureType\":\"administrative.neighborhood\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#e5c163\"}]},{\"featureType\":\"landscape\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":20}]},{\"featureType\":\"poi\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":21},{\"visibility\":\"on\"}]},{\"featureType\":\"poi.business\",\"elementType\":\"geometry\",\"stylers\":[{\"visibility\":\"on\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#e5c163\"},{\"lightness\":\"0\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"geometry.stroke\",\"stylers\":[{\"visibility\":\"off\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#ffffff\"}]},{\"featureType\":\"road.highway\",\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"color\":\"#e5c163\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":18}]},{\"featureType\":\"road.arterial\",\"elementType\":\"geometry.fill\",\"stylers\":[{\"color\":\"#575757\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#ffffff\"}]},{\"featureType\":\"road.arterial\",\"elementType\":\"labels.text.stroke\",\"stylers\":[{\"color\":\"#2c2c2c\"}]},{\"featureType\":\"road.local\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":16}]},{\"featureType\":\"road.local\",\"elementType\":\"labels.text.fill\",\"stylers\":[{\"color\":\"#999999\"}]},{\"featureType\":\"transit\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":19}]},{\"featureType\":\"water\",\"elementType\":\"geometry\",\"stylers\":[{\"color\":\"#000000\"},{\"lightness\":17}]}]");break;case"custom":t=JSON.parse(e.custom_style);break;default:t="";}return t}var r=e.find(".wpr-google-map");if(!(r.data("integration-type")&&"without_api_key"===r.data("integration-type"))){for(var s=r.data("settings"),n=r.data("controls"),d=r.data("locations"),o=[],l=new google.maps.LatLngBounds,p=new google.maps.Map(r[0],{mapTypeId:s.type,styles:a(s),zoom:s.zoom_depth,gestureHandling:s.zoom_on_scroll,mapTypeControl:n.type,fullscreenControl:n.fullscreen,zoomControl:n.zoom,streetViewControl:n.streetview}),c=0;c=parseInt(n.css("left"),10)?e.stop().css("opacity",0):e.stop().css("opacity",1),i.outerWidth()-(r+15)<=parseInt(n.css("left"),10)?t.stop().css("opacity",0):t.stop().css("opacity",1)}else{var a=e.position().top+e.outerHeight(),r=t.position().top+t.outerHeight();a+15>=parseInt(n.css("top"),10)?e.stop().css("opacity",0):e.stop().css("opacity",1),i.outerHeight()-(r+15)<=parseInt(n.css("top"),10)?t.stop().css("opacity",0):t.stop().css("opacity",1)}}var i=e.find(".wpr-ba-image-container"),r=i.find(".wpr-ba-image-1"),s=i.find(".wpr-ba-image-2"),n=i.find(".wpr-ba-divider"),d=i.attr("data-position");i.hasClass("wpr-ba-horizontal")?(n.css("left",d+"%"),s.css("left",d+"%"),s.find("img").css("right",d+"%"),n.on("move",function(t){var e=t.pageX-i.offset().left;n.css({left:"auto",right:"auto"}),s.css({left:"auto",right:"auto"}),0=e?(n.css("left",0),s.css("left",0),s.find("img").css("right",0)):e>=i.outerWidth()&&(n.css("right",-n.outerWidth()/2),s.css("right",0),s.find("img").css("right","100%")),a()})):(n.css("top",d+"%"),s.css("top",d+"%"),s.find("img").css("bottom",d+"%"),n.on("move",function(t){var e=t.pageY-i.offset().top;n.css({top:"auto",bottom:"auto"}),s.css({top:"auto",bottom:"auto"}),0=e?(n.css("top",0),s.css("top",0),s.find("img").css("bottom",0)):e>=i.outerHeight()&&(n.css("bottom",-n.outerHeight()/2),s.css("bottom",0),s.find("img").css("bottom","100%")),a()})),"mouse"===i.attr("data-trigger")&&i.on("mousemove",function(e){if(i.hasClass("wpr-ba-horizontal")){var r=e.pageX-t(this).offset().left;n.css("left",r),s.css("left",r),s.find("img").css("right",r)}else{var r=e.pageY-t(this).offset().top;n.css("top",r),s.css("top",r),s.find("img").css("bottom",r)}a()}),a()},widgetMailchimp:function(e){var a=e.find("form");a.on("submit",function(i){i.preventDefault();var r=t(this).find("button").text();t(this).find("button").text(t(this).find("button").data("loading")),t.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"mailchimp_subscribe",fields:t(this).serialize(),listId:a.data("list-id")},success:function(i){"yes"==a.data("clear-fields")&&a.find("input").each(function(){t(this).val("")}),a.find("button").text(r),"subscribed"===i.status?e.find(".wpr-mailchimp-success-message").show():e.find(".wpr-mailchimp-error-message").show(),e.find(".wpr-mailchimp-message").fadeIn()}})})},widgetAdvancedSlider:function(e){function a(){d.find("iframe").attr("width",e.find(".wpr-slider-item").width()),d.find("iframe").attr("height",e.find(".wpr-slider-item").height());var a=t(window).outerWidth(),i=+elementorFrontend.config.responsive.breakpoints.mobile.value,r=+elementorFrontend.config.responsive.breakpoints.mobile_extra.value,s=+elementorFrontend.config.responsive.breakpoints.tablet.value,n=+elementorFrontend.config.responsive.breakpoints.tablet_extra.value,o=+elementorFrontend.config.responsive.breakpoints.laptop.value,p=+elementorFrontend.config.responsive.breakpoints.widescreen.value,c=elementorFrontend.config.responsive.activeBreakpoints;[...e[0].classList].forEach(t=>{t.startsWith("wpr-slider-video-icon-size-")&&e[0].classList.remove(t)}),i>=a&&null!=c.mobile?e.addClass("wpr-slider-video-icon-size-"+l.mobile):r>=a&&null!=c.mobile_extra?e.addClass("wpr-slider-video-icon-size-"+l.mobile_extra):s>=a&&null!=c.tablet?e.addClass("wpr-slider-video-icon-size-"+l.tablet):n>=a&&null!=c.tablet_extra?e.addClass("wpr-slider-video-icon-size-"+l.tablet_extra):o>=a&&null!=c.laptop?e.addClass("wpr-slider-video-icon-size-"+l.laptop):p>a?e.addClass("wpr-slider-video-icon-size-"+l.desktop):e.addClass("wpr-slider-video-icon-size-"+l.widescreen)}function r(){d.find(".slick-current").each(function(){var r=i.sanitizeURL(t(this).find(".wpr-slider-item").attr("data-video-src"))||"",s=t(this).find(".wpr-slider-item").attr("data-video-autoplay");if(1!==t(this).find(".wpr-slider-video").length&&"yes"===s){if(r.includes("vimeo")||r.includes("youtube"))1==f?t(this).find(".wpr-cv-inner").prepend("
"):t(this).find(".wpr-cv-container").prepend("
"),a();else{var n=i.sanitizeDataAttr(t(this).find(".wpr-slider-item").attr("data-video-mute")),o=i.sanitizeDataAttr(t(this).find(".wpr-slider-item").attr("data-video-controls")),l=i.sanitizeDataAttr(t(this).find(".wpr-slider-item").attr("data-video-loop"));t(this).find(".wpr-cv-inner").prepend("
"),d.find("video").attr("width",e.find(".wpr-slider-item").width()),d.find("video").attr("height",e.find(".wpr-slider-item").height())}t(this).find(".wpr-slider-content")&&"yes"===d.data("hide-video-content")&&t(this).find(".wpr-slider-content").fadeOut(300)}})}function s(){1==f&&d.find(".wpr-slider-item").not(".slick-active").find(".wpr-slider-animation").removeClass("wpr-animation-enter")}function n(){d.find(".slick-active").find(".wpr-slider-content").fadeIn(0),d.find(".slick-cloned").find(".wpr-slider-content").fadeIn(0),d.find(".slick-current").find(".wpr-slider-content").fadeIn(0),1==f&&d.find(".slick-active").find(".wpr-slider-animation").addClass("wpr-animation-enter")}var d=e.find(".wpr-advanced-slider"),o=d.data("slick"),l=d.data("video-btn-size"),p="false",c=e.attr("class"),f=c.match(/wpr-adv-slider-columns-\d/)?+c.match(/wpr-adv-slider-columns-\d/).join().slice(-1):2,w=c.match(/columns--widescreen\d/)?+c.match(/columns--widescreen\d/).join().slice(-1):f,m=c.match(/columns--laptop\d/)?+c.match(/columns--laptop\d/).join().slice(-1):f,h=c.match(/columns--tablet\d/)?+c.match(/columns--tablet\d/).join().slice(-1):2,g=c.match(/columns--tablet_extra\d/)?+c.match(/columns--tablet_extra\d/).join().slice(-1):h,u=c.match(/columns--mobile_extra\d/)?+c.match(/columns--mobile_extra\d/).join().slice(-1):h,y=c.match(/columns--mobile\d/)?+c.match(/columns--mobile\d/).join().slice(-1):1,v=+c.match(/wpr-adv-slides-to-scroll-\d/).join().slice(-1),b=d.attr("data-slide-effect");if(d.slick({appendArrows:e.find(".wpr-slider-controls"),appendDots:e.find(".wpr-slider-dots"),customPaging:function(e,t){e.slideCount;return""},slidesToShow:f,responsive:[{breakpoint:1e4,settings:{slidesToShow:w,slidesToScroll:v>w?1:v,fade:1==w&&"fade"===b}},{breakpoint:2399,settings:{slidesToShow:f,slidesToScroll:v>f?1:v,fade:1==f&&"fade"===b}},{breakpoint:1221,settings:{slidesToShow:m,slidesToScroll:v>m?1:v,fade:1==m&&"fade"===b}},{breakpoint:1200,settings:{slidesToShow:g,slidesToScroll:v>g?1:v,fade:1==g&&"fade"===b}},{breakpoint:1024,settings:{slidesToShow:h,slidesToScroll:v>h?1:v,fade:1==h&&"fade"===b}},{breakpoint:880,settings:{slidesToShow:u,slidesToScroll:v>u?1:v,fade:1==u&&"fade"===b}},{breakpoint:768,settings:{slidesToShow:y,slidesToScroll:v>y?1:v,fade:1==y&&"fade"===b}}]}),t(document).ready(function(){e.find(".slick-current").addClass("wpr-slick-visible");0!==e.find(".wpr-slider-img").length&&(e.find(".wpr-advanced-slider").css("height",e.find(".slick-current").outerHeight()),e.find(".wpr-slider-arrow").on("click",function(){e.find(".wpr-advanced-slider").css("height",e.find(".slick-current").outerHeight())}),t(window).smartresize(function(){e.find(".wpr-advanced-slider").css("height",e.find(".slick-current").outerHeight())}))}),t(window).on("load resize",function(){a()}),t(document).ready(function(){e.find(".wpr-advanced-slider").length&&(e.find(".wpr-advanced-slider").css("opacity",1),r())}),n(),d.on("click",".wpr-slider-video-btn",function(){var r=t(this).closest(".slick-slide"),s=i.sanitizeURL(r.find(".wpr-slider-item").attr("data-video-src"))||"",n=t(this),o="";if(p="true"==p?"false":"true",s.includes("youtube"))s+="&autoplay=1",o="allowfullscreen=\"allowfullscreen\"";else if(s.includes("vimeo"))o="allowfullscreen";else{var l=i.sanitizeDataAttr(r.find(".wpr-slider-item").attr("data-video-mute")),c=i.sanitizeDataAttr(r.find(".wpr-slider-item").attr("data-video-controls")),f=i.sanitizeDataAttr(r.find(".wpr-slider-item").attr("data-video-loop"));return void(1===r.find(".wpr-slider-video").length?"true"==p?(r.find("video")[0].play(),n.find("i").removeClass("fa-play").addClass("fa-pause")):(r.find("video")[0].pause(),n.find("i").removeClass("fa-pause").addClass("fa-play")):(r.find(".wpr-cv-container").prepend("
"),d.find("video").attr("width",e.find(".wpr-slider-item").width()),d.find("video").attr("height",e.find(".wpr-slider-item").height()),"yes"===d.data("hide-video-content")?r.find(".wpr-slider-content").fadeOut(300):"true"==p?n.find("i").removeClass("fa-play").addClass("fa-pause"):n.find("i").removeClass("fa-pause").addClass("fa-play"),r.find("video")[0].play()))}1!==r.find(".wpr-slider-video").length&&(r.find(".wpr-cv-container").prepend("
"),a(),"yes"===d.data("hide-video-content")&&r.find(".wpr-slider-content").fadeOut(300))}),d.on({beforeChange:function(){d.find(".wpr-slider-item").not(".slick-active").find(".wpr-slider-video").remove(),d.find(".wpr-animation-enter").find(".wpr-slider-content").fadeOut(300),"yes"!==d.data("hide-video-content")&&(d.find(".wpr-slider-video-btn").find("i").removeClass("fa-pause").addClass("fa-play"),p="false"),s()},afterChange:function(){n(),r(),e.find(".slick-slide").removeClass("wpr-slick-visible"),e.find(".slick-current").addClass("wpr-slick-visible"),e.find(".slick-current").nextAll().slice(0,f-1).addClass("wpr-slick-visible"),e.find(".wpr-advanced-slider").css("height",e.find(".slick-current").outerHeight())}}),e.find(".slick-dots").length&&e.hasClass("wpr-slider-dots-horizontal")){var _=e.find(".slick-dots li").outerWidth()*e.find(".slick-dots li").length-parseInt(e.find(".slick-dots li span").css("margin-right"),10);e.find(".slick-dots").length&&e.find(".slick-dots").css("width",_),t(window).smartresize(function(){setTimeout(function(){var t=e.find(".slick-dots li").outerWidth()*e.find(".slick-dots li").length-parseInt(e.find(".slick-dots li span").css("margin-right"),10);e.find(".slick-dots").css("width",t)},300)})}},widgetTestimonialCarousel:function(e){var a=e.find(".wpr-testimonial-carousel"),i=JSON.parse(a.attr("data-slick")),r=e.attr("class"),s=r.match(/wpr-testimonial-slider-columns-\d/)?+r.match(/wpr-testimonial-slider-columns-\d/).join().slice(-1):2,n=r.match(/columns--widescreen\d/)?+r.match(/columns--widescreen\d/).join().slice(-1):s,d=r.match(/columns--laptop\d/)?+r.match(/columns--laptop\d/).join().slice(-1):s,o=r.match(/columns--tablet\d/)?+r.match(/columns--tablet\d/).join().slice(-1):2,l=r.match(/columns--tablet_extra\d/)?+r.match(/columns--tablet_extra\d/).join().slice(-1):o,p=r.match(/columns--mobile_extra\d/)?+r.match(/columns--mobile_extra\d/).join().slice(-1):o,c=r.match(/columns--mobile\d/)?+r.match(/columns--mobile\d/).join().slice(-1):1,f=i.sliderSlidesToScroll,w=a.attr("data-slide-effect");if(a.slick({appendArrows:e.find(".wpr-testimonial-controls"),appendDots:e.find(".wpr-testimonial-dots"),customPaging:function(e,t){e.slideCount;return""},slidesToShow:s,responsive:[{breakpoint:1e4,settings:{slidesToShow:n,slidesToScroll:f>n?1:f,fade:1==n&&"fade"===w}},{breakpoint:2399,settings:{slidesToShow:s,slidesToScroll:f>s?1:f,fade:1==s&&"fade"===w}},{breakpoint:1221,settings:{slidesToShow:d,slidesToScroll:f>d?1:f,fade:1==d&&"fade"===w}},{breakpoint:1200,settings:{slidesToShow:l,slidesToScroll:f>l?1:f,fade:1==l&&"fade"===w}},{breakpoint:1024,settings:{slidesToShow:o,slidesToScroll:f>o?1:f,fade:1==o&&"fade"===w}},{breakpoint:880,settings:{slidesToShow:p,slidesToScroll:f>p?1:f,fade:1==p&&"fade"===w}},{breakpoint:768,settings:{slidesToShow:c,slidesToScroll:f>c?1:f,fade:1==c&&"fade"===w}}]}),e.hasClass("wpr-testimonial-nav-fade")&&(e.on("mouseover",function(){e.closest("section").find(".wpr-testimonial-arrow").css({opacity:1})}),e.closest("section").on("mouseout",function(){e.find(".wpr-testimonial-arrow").css({opacity:0})})),e.find(".slick-dots").length){var m=e.find(".slick-dots li").outerWidth()*e.find(".slick-dots li").length-parseInt(e.find(".slick-dots li span").css("margin-right"),10);e.find(".slick-dots").css("width",m)}t(window).smartresize(function(){setTimeout(function(){if(e.find(".slick-dots").length){var t=e.find(".slick-dots li").outerWidth()*e.find(".slick-dots li").length-parseInt(e.find(".slick-dots li span").css("margin-right"),10);e.find(".slick-dots").css("width",t)}},300)})},widgetSearch:function(a){function i(i,r,d){if(13===d.which)return!1;null!=s&&clearTimeout(s);var e=0{var s=i.val();t.ajax({type:"POST",url:WprConfig.ajaxurl,data:{action:"wpr_data_fetch",nonce:WprConfig.nonce,wpr_keyword:a.find(".wpr-search-form-input").val(),wpr_query_type:a.find(".wpr-search-form-input").attr("wpr-query-type"),wpr_option_post_type:e?a.find(".wpr-category-select").find("option:selected").data("post-type"):"",wpr_taxonomy_type:o,wpr_category:0"+i+"":""+i+""}var n=a.join("");e.html(n).css("opacity",1)})}function s(e){e.each(function(){var e=t(this),a=e.find(".wpr-anim-text-inner");if(e.hasClass("wpr-anim-text-type-clip")){var i=a.outerWidth();a.css("width",i)}setTimeout(function(){n(e.find(".wpr-anim-text-visible").eq(0))},b),e.hasClass("wpr-anim-text-type-rotate-1")&&a.find("b").each(function(){t(this).outerWidth()>a.outerWidth()&&a.css("width",t(this).outerWidth())})})}function n(e){var t=p(e);if(!("yes"!==u&&(v++,v===y)))if(e.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-typing")){var a=e.parent(".wpr-anim-text-inner");a.addClass("wpr-anim-text-selected").removeClass("waiting"),setTimeout(function(){a.removeClass("wpr-anim-text-selected"),e.removeClass("wpr-anim-text-visible").addClass("wpr-anim-text-hidden").children("i").removeClass("wpr-anim-text-in").addClass("wpr-anim-text-out")},_),setTimeout(function(){d(t,h)},x)}else if(e.parents(".wpr-anim-text").hasClass("wpr-anim-text-letters")){var i=!!(e.children("i").length>=t.children("i").length);o(e.find("i").eq(0),e,i,h),l(t.find("i").eq(0),t,i,h)}else e.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-clip")?e.parents(".wpr-anim-text-inner").animate({width:"2px"},h,function(){c(e,t),d(t)}):(c(e,t),setTimeout(function(){n(t)},b))}function d(e,t){e.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-typing")?(l(e.find("i").eq(0),e,!1,t),e.addClass("wpr-anim-text-visible").removeClass("wpr-anim-text-hidden")):e.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-clip")&&e.parents(".wpr-anim-text-inner").animate({width:e.outerWidth()},h,function(){setTimeout(function(){n(e)},b)})}function o(e,t,a,i){if(e.removeClass("wpr-anim-text-in").addClass("wpr-anim-text-out"),e.is(":last-child")?a&&setTimeout(function(){n(p(t))},b):setTimeout(function(){o(e.next(),t,a,i)},i),e.is(":last-child")){var r=p(t);c(t,r)}}function l(e,t,a,i){e.addClass("wpr-anim-text-in").removeClass("wpr-anim-text-out"),e.is(":last-child")?(t.parents(".wpr-anim-text").hasClass("wpr-anim-text-type-typing")&&setTimeout(function(){t.parents(".wpr-anim-text-inner").addClass("waiting")},200),!a&&setTimeout(function(){n(t)},b)):setTimeout(function(){l(e.next(),t,a,i)},i)}function p(e){return e.is(":last-child")?e.parent().children().eq(0):e.next()}function c(e,t){e.removeClass("wpr-anim-text-visible").addClass("wpr-anim-text-hidden"),t.removeClass("wpr-anim-text-hidden").addClass("wpr-anim-text-visible")}function f(e,t,a){for(var r="",s=0;st(window).height()&&(a+=50),i>r&&an?1:w,fade:!("typing"!==f&&"fade"!==f)}},{breakpoint:2399,settings:{slidesToShow:"typing"===f||"fade"===f?1:s,slidesToScroll:w>s?1:w,fade:!("typing"!==f&&"fade"!==f)}},{breakpoint:1221,settings:{slidesToShow:"typing"===f||"fade"===f?1:d,slidesToScroll:w>d?1:w,fade:!("typing"!==f&&"fade"!==f)}},{breakpoint:1200,settings:{slidesToShow:"typing"===f||"fade"===f?1:l,slidesToScroll:w>l?1:w,fade:!("typing"!==f&&"fade"!==f)}},{breakpoint:1024,settings:{slidesToShow:"typing"===f||"fade"===f?1:o,slidesToScroll:w>o?1:w,fade:!("typing"!==f&&"fade"!==f)}},{breakpoint:880,settings:{slidesToShow:"typing"===f||"fade"===f?1:p,slidesToScroll:w>p?1:w,fade:!("typing"!==f&&"fade"!==f)}},{breakpoint:768,settings:{slidesToShow:"typing"===f||"fade"===f?1:c,slidesToScroll:w>c?1:w,fade:!("typing"!==f&&"fade"!==f)}}]}),a.marquee(i),0 .wpr-tab",n),o=t("> .wpr-tab-content",d),l=s.data("options"),p=l.activeTab-1,c=window.location.href.indexOf("active_tab=");if(-1 .wpr-switcher-bg",n),l=t("> .wpr-switcher",n),p=t("> .wpr-switcher-content",d),c=parseInt(s.data("active-switcher"))-1;l.eq(c).addClass("wpr-switcher-active"),p.eq(c).addClass("wpr-switcher-content-active wpr-animation-enter"),a(c),function(){e.hasClass("wpr-switcher-label-style-outer")?n.on("click",function(){var e=n.find(".wpr-switcher-active");1===parseInt(e.data("switcher"),10)?(n.children(".wpr-switcher").eq(0).removeClass("wpr-switcher-active"),n.children(".wpr-switcher").eq(1).addClass("wpr-switcher-active"),n.closest(".wpr-switcher-container").attr("data-active-switcher",2),i(1)):2===parseInt(e.data("switcher"),10)&&(n.children(".wpr-switcher").eq(1).removeClass("wpr-switcher-active"),n.children(".wpr-switcher").eq(0).addClass("wpr-switcher-active"),n.closest(".wpr-switcher-container").attr("data-active-switcher",1),i(0))}):l.on("click",function(){var e=t(this).data("switcher")-1;i(e)})}()},widgetBackToTop:function(e){function a(e,t,a){e>a.animationOffset?"fade"===a.animation?i.stop().css("visibility","visible").animate({opacity:"1"},a.animationDuration):"slide"===a.animation?i.stop().css("visibility","visible").animate({opacity:"1","margin-bottom":0},a.animationDuration):i.css("visibility","visible"):"fade"===a.animation?i.stop().animate({opacity:"0"},a.animationDuration):"slide"===a.animation?i.stop().animate({"margin-bottom":"-100px",opacity:"0"},a.animationDuration):i.css("visibility","hidden")}var i=e.find(".wpr-stt-btn"),r=i.attr("data-settings");r=JSON.parse(r),"fixed"===r.fixed&&("none"!==r.animation&&(i.css({opacity:"0"}),"slide"===r.animation&&i.css({"margin-bottom":"-100px"})),a(t(window).scrollTop(),i,r),t(window).scroll(function(){a(t(this).scrollTop(),i,r)})),i.on("click",function(){return t("html, body").animate({scrollTop:0},r.scrolAnim),!1})},widgetLottieAnimations:function(e){var a=e.find(".wpr-lottie-animations"),i=e.find(".wpr-lottie-animations-wrapper"),r=JSON.parse(a.attr("data-settings")),s=lottie.loadAnimation({container:a[0],path:a.attr("data-json-url"),renderer:r.lottie_renderer,loop:!("yes"!==r.loop),autoplay:!("yes"!==r.autoplay)});s.setSpeed(r.speed),r.reverse&&s.setDirection(-1),s.addEventListener("DOMLoaded",function(){function e(){if(s.pause(),"function"==typeof a[0].getBoundingClientRect){var e=document.documentElement.clientHeight,i=100*(a[0].getBoundingClientRect().top/e),n=100*(a[0].getBoundingClientRect().bottom/e),d=ir.scroll_start;if("viewport"===r.trigger&&(o&&d?s.play():s.pause()),"scroll"===r.trigger&&o&&d){s.pause();var l=100*t(window).scrollTop()/(t(document).height()-t(window).height()),p=Math.round(l);s.goToAndStop(4e3*(p/100))}}}"hover"!==r.trigger&&"none"!==r.trigger&&(e("load"),t(window).on("scroll",e)),"hover"===r.trigger&&(s.pause(),a.hover(function(){s.play()},function(){s.pause()}))})},widgetCharts:function(e){function a(t,a){var i=e.find(".wpr-chart"),r=t.split(/\r?\n|\r/),n=r.shift().split(a.separator),d={labels:n,datasets:[]};l={type:"bar_horizontal"==a.chart_type?"bar":a.chart_type,data:d,options:c,plugins:[a.inner_datalabels?ChartDataLabels:"",{beforeInit:function(e){e.legend.afterFit=function(){this.height+=50}}}]},"bar_horizontal"==a.chart_type?l.options.indexAxis="y":"",a.tooltips_percent&&(l.options.plugins.tooltip.callbacks.label=function(e){var t=e.dataset.label+": ";("pie"==a.chart_type||"doughnut"==a.chart_type||"polarArea"==a.chart_type)&&(t=e.label+" ("+e.dataset.label+") : ");var i=e.dataset,r=i.data.reduce(function(e,t){return parseFloat(e)+parseFloat(t)}),s=e.formattedValue,n=(100*(s/r)).toPrecision(3);return t+(a.tooltips_percent?n+"%":e.formattedValue)}),o=new Chart(i,l),r.forEach(function(e,t){if(0!==e.length){var i={};i.data=e.split(a.separator),s[t]&&(i.borderColor=s[t].borderColor,i.borderWidth=s[t].borderWidth,i.backgroundColor=s[t].backgroundColor,i.hoverBackgroundColor=s[t].hoverBackgroundColor,i.label=s[t].label,i.fill=s[t].fill),d.datasets.push(i),o.update()}})}var i=JSON.parse(e.find(".wpr-charts-container").attr("data-settings")),r=i.chart_labels,s=i.chart_datasets?JSON.parse(i.chart_datasets):"";var n=768<=window.innerWidth?i.line_dots_radius:767>=window.innerWidth?i.line_dots_radius_mobile:0,d=768<=window.innerWidth?i.tooltip_caret_size:767>=window.innerWidth?i.chart_tooltip_caret_size_mobile:0,o="",l="",p=["bar","bar_horizontal","line"],c={responsive:!0,showLine:i.show_lines,animation:"yes"===i.chart_animation,animations:{tension:{duration:i.chart_animation_duration,easing:i.animation_transition_type,from:1,to:0,loop:"yes"==i.chart_animation_loop}},events:[i.trigger_tooltip_on,"yes"===i.exclude_dataset_on_click?"click":""],interaction:{mode:void 0===i.chart_interaction_mode?"nearest":i.chart_interaction_mode},elements:{point:{radius:"yes"===i.line_dots?n:0}},scales:{x:{reverse:"yes"==i.reverse_x,stacked:"yes"==i.stacked_bar_chart,type:"bar_horizontal"===i.chart_type?i.data_type:"category",min:void 0===i.min_value?null:i.min_value,max:void 0===i.max_value?null:i.max_value,grid:{display:i.display_x_axis,drawBorder:i.display_x_axis,drawOnChartArea:i.display_x_axis,drawTicks:i.display_x_axis,color:i.axis_grid_line_color_x,borderDash:[i.border_dash_length,i.border_dash_spacing],borderDashOffset:i.border_dash_offset,lineWidth:i.grid_line_width_x},title:{display:i.display_x_axis_title,text:i.x_axis_title,color:i.axis_title_color_x,font:{size:i.axis_title_font_size_x,family:i.axis_title_font_family_x,style:i.axis_title_font_style_x,weight:i.axis_title_font_weight_x}},ticks:{stepSize:"bar_horizontal"===i.chart_type?i.x_step_size:"",display:i.display_x_ticks,padding:i.ticks_padding_x,autoSkip:!1,maxRotation:i.rotation_x,minRotation:i.rotation_x,color:i.ticks_color_x,font:{size:i.ticks_font_size_x,family:i.ticks_font_family_x,style:i.ticks_font_style_x,weight:i.ticks_font_weight_x}}},y:{reverse:"yes"==i.reverse_y,stacked:"yes"==i.stacked_bar_chart,type:"bar"===i.chart_type||"line"===i.chart_type?i.data_type:"category",min:void 0===i.min_value?null:i.min_value,max:void 0===i.max_value?null:i.max_value,grid:{display:i.display_y_axis,drawBorder:i.display_y_axis,drawOnChartArea:i.display_y_axis,drawTicks:i.display_y_axis,color:i.axis_grid_line_color_y,borderDash:[i.border_dash_length,i.border_dash_spacing],borderDashOffset:i.border_dash_offset,lineWidth:i.grid_line_width_y},title:{display:i.display_y_axis_title,text:i.y_axis_title,color:i.axis_title_color_y,font:{size:i.axis_title_font_size_y,family:i.axis_title_font_family_y,style:i.axis_title_font_style_y,weight:i.axis_title_font_weight_y}},ticks:{stepSize:i.y_step_size,display:i.display_y_ticks,padding:i.ticks_padding_y,autoSkip:!1,maxRotation:i.rotation_y,minRotation:i.rotation_y,color:i.ticks_color_y,font:{size:i.ticks_font_size_y,family:i.ticks_font_family_y,style:i.ticks_font_style_y,weight:i.ticks_font_weight_y}}}},plugins:{datalabels:{color:i.inner_datalabels_color,font:{size:i.inner_datalabels_font_size,style:i.inner_datalabels_font_style,weight:i.inner_datalabels_font_weight}},legend:{onHover:e=>{e.native.target.style.cursor="pointer"},onLeave:e=>{e.native.target.style.cursor="default"},onClick:function(t,e,a){if(p.includes(i.chart_type)||"radar"===i.chart_type){const t=e.datasetIndex,i=a.chart;i.isDatasetVisible(t)?(i.hide(t),e.hidden=!0):(i.show(t),e.hidden=!1)}},reverse:"yes"===i.reverse_legend,display:"yes"==i.show_chart_legend,position:void 0===i.legend_position?"top":i.legend_position,align:void 0===i.legend_align?"center":i.legend_align,labels:{usePointStyle:"point"==i.legend_shape,padding:i.legend_padding,boxWidth:i.legend_box_width,boxHeight:i.legend_font_size,color:i.legend_text_color,font:{family:i.legend_font_family,size:i.legend_font_size,style:i.legend_font_style,weight:i.legend_font_weight}}},title:{display:"yes"===i.show_chart_title,text:i.chart_title,align:void 0===i.chart_title_align?"center":i.chart_title_align,position:void 0===i.chart_title_position?"top":i.chart_title_position,color:void 0===i.chart_title_color?"#000":i.chart_title_color,padding:i.title_padding,font:{family:i.title_font_family,size:i.title_font_size,style:i.title_font_style,weight:i.title_font_weight}},tooltip:{callbacks:{footer:e=>{let t=0;return e.forEach(function(e){t+=e.parsed.y}),"bar_horizontal"===i.chart_type&&(t=0,e.forEach(function(e){t+=e.parsed.x})),"radar"!=i.chart_type&&"pie"!=i.chart_type&&"doughnut"!=i.chart_type&&"polarArea"!=i.chart_type&&"Sum: "+t}},enabled:"yes"===i.show_chart_tooltip,position:void 0===i.tooltip_position?"nearest":i.tooltip_position,padding:void 0===i.tooltip_padding?10:i.tooltip_padding,caretSize:d,backgroundColor:void 0===i.chart_tooltip_bg_color?"rbga(0, 0, 0, 0.2)":i.chart_tooltip_bg_color,titleColor:void 0===i.chart_tooltip_title_color?"#FFF":i.chart_tooltip_title_color,titleFont:{family:i.chart_tooltip_title_font,size:i.chart_tooltip_title_font_size},titleAlign:i.chart_tooltip_title_align,titleMarginBottom:i.chart_tooltip_title_margin_bottom,bodyColor:void 0===i.chart_tooltip_item_color?"#FFF":i.chart_tooltip_item_color,bodyFont:{family:i.chart_tooltip_item_font,size:i.chart_tooltip_item_font_size},bodyAlign:i.chart_tooltip_item_align,bodySpacing:i.chart_tooltip_item_spacing,boxPadding:3}}};if(p.includes(i.chart_type)||delete c.scales,p.includes(i.chart_type)||"doughnut"===i.chart_type||"pie"===i.chart_type||(c.scales={r:{angleLines:{color:i.angle_lines_color},pointLabels:{color:i.point_labels_color_r,font:{size:i.point_labels_font_size_r,family:i.point_labels_font_family_r,style:i.point_labels_font_style_r,weight:i.point_labels_font_weight_r}},ticks:{stepSize:i.r_step_size,display:i.display_r_ticks,backdropColor:i.axis_labels_bg_color,backdropPadding:+i.axis_labels_padding,color:i.axis_labels_color},grid:{display:i.display_r_axis,drawBorder:i.display_r_axis,drawOnChartArea:i.display_r_axis,drawTicks:i.display_r_axis,color:i.axis_grid_line_color_r,borderDash:[i.border_dash_length_r,i.border_dash_spacing_r],borderDashOffset:i.border_dash_offset_r,lineWidth:i.grid_line_width_r}}}),"custom"===i.data_source){const t={labels:r,datasets:JSON.parse(i.chart_datasets)};l={plugins:[i.inner_datalabels?ChartDataLabels:""],type:"bar_horizontal"==i.chart_type?"bar":i.chart_type,data:t,options:c},"bar_horizontal"==i.chart_type?l.options.indexAxis="y":"",(i.tooltips_percent||"pie"==i.chart_type||"doughnut"==i.chart_type||"polarArea"==i.chart_type)&&(l.options.plugins.tooltip.callbacks.label=function(e){var t=e.dataset.label+": ";("pie"==i.chart_type||"doughnut"==i.chart_type||"polarArea"==i.chart_type)&&(t=e.label+" ("+e.dataset.label+") : ");var a=e.dataset,r=a.data.reduce(function(e,t){return parseFloat(e)+parseFloat(t)}),s=e.formattedValue,n=(100*(s/r)).toPrecision(3);return t+(i.tooltips_percent?n+"%":e.formattedValue)}),o=new Chart(e.find(".wpr-chart"),l)}else i.url&&(p.includes(i.chart_type)||"radar"===i.chart_type)?t.ajax({url:i.url,type:"GET",success:function(t){e.find(".wpr-rotating-plane").remove(),a(t,i)},error:function(e){console.log(e)}}):!i.url&&(p.includes(i.chart_type)||"radar"===i.chart_type)?(e.find(".wpr-rotating-plane").remove(),e.find(".wpr-charts-container").html("

Provide a csv file or remote URL

")):(e.find(".wpr-rotating-plane").remove(),e.find(".wpr-charts-container").html("

doughnut, pie and polareArea charts only work with custom data source

"));t(window).resize(function(){n=768<=window.innerWidth?i.line_dots_radius:767>=window.innerWidth?i.line_dots_radius_mobile:0,l.options.elements.point.radius=n,l.options.plugins.tooltip.caretSize=d})},widgetTaxonomyList:function(e){var a=e.find(".wpr-taxonomy-list");"yes"==a.data("show-on-click")&&(a.find(".wpr-taxonomy i.wpr-tax-dropdown").on("click",function(i){i.preventDefault(),a.find(".wpr-sub-taxonomy[data-term-id=\"child-"+t(this).closest("li").data("term-id")+"\"]").hasClass("wpr-sub-hidden")?(t(this).removeClass("fa-caret-right").addClass("fa-caret-down"),a.find(".wpr-sub-taxonomy[data-term-id=\"child-"+t(this).closest("li").data("term-id")+"\"]").removeClass("wpr-sub-hidden")):(t(this).removeClass("fa-caret-down").addClass("fa-caret-right"),a.find(".wpr-sub-taxonomy[data-term-id=\"child-"+t(this).closest("li").data("term-id")+"\"]").addClass("wpr-sub-hidden"),a.find(".wpr-inner-sub-taxonomy[data-term-id=\"grandchild-"+t(this).closest("li").data("term-id")+"\"]").each(function(){t(this).hasClass("wpr-sub-hidden")||(a.find(".wpr-sub-taxonomy[data-id=\""+t(this).data("parent-id")+"\"] i.wpr-tax-dropdown").removeClass("fa-caret-down").addClass("fa-caret-right"),t(this).addClass("wpr-sub-hidden"))}),a.find(".wpr-inner-sub-taxonomy-2[data-term-id=\"great-grandchild-"+t(this).closest("li").data("term-id")+"\"]").each(function(){t(this).hasClass("wpr-sub-hidden")||(a.find(".wpr-sub-taxonomy[data-id=\""+t(this).data("parent-id")+"\"] i.wpr-tax-dropdown").removeClass("fa-caret-down").addClass("fa-caret-right"),t(this).addClass("wpr-sub-hidden"))})),a.find(".wpr-inner-sub-taxonomy[data-term-id=\"grandchild-"+t(this).closest("li").data("term-id")+"\"] i.wpr-tax-dropdown").removeClass("fa-caret-down").addClass("fa-caret-right"),a.find(".wpr-inner-sub-taxonomy-2[data-term-id=\"great-grandchild-"+t(this).closest("li").data("term-id")+"\"]").hasClass("wpr-sub-hidden")||a.find(".wpr-inner-sub-taxonomy-2[data-term-id=\"great-grandchild-"+t(this).closest("li").data("term-id")+"\"]").addClass("wpr-sub-hidden")}),a.find(".wpr-sub-taxonomy i.wpr-tax-dropdown").on("click",function(i){i.preventDefault(),a.find(".wpr-inner-sub-taxonomy[data-parent-id=\""+t(this).closest("li").data("id")+"\"]").hasClass("wpr-sub-hidden")?(t(this).removeClass("fa-caret-right").addClass("fa-caret-down"),a.find(".wpr-inner-sub-taxonomy[data-parent-id=\""+t(this).closest("li").data("id")+"\"]").removeClass("wpr-sub-hidden")):(t(this).removeClass("fa-caret-down").addClass("fa-caret-right"),a.find(".wpr-inner-sub-taxonomy[data-parent-id=\""+t(this).closest("li").data("id")+"\"]").addClass("wpr-sub-hidden")),a.find(".wpr-inner-sub-taxonomy[data-parent-id=\""+t(this).closest("li").data("id")+"\"] i.wpr-tax-dropdown").removeClass("fa-caret-down").addClass("fa-caret-right"),a.find(".wpr-inner-sub-taxonomy-2[data-term-id=\"great-grandchild-"+t(this).closest("li").data("term-id").replace("child-","")+"\"]").hasClass("wpr-sub-hidden")||a.find(".wpr-inner-sub-taxonomy-2[data-term-id=\"great-grandchild-"+t(this).closest("li").data("term-id").replace("child-","")+"\"]").addClass("wpr-sub-hidden")}),a.find(".wpr-inner-sub-taxonomy i.wpr-tax-dropdown").on("click",function(i){i.preventDefault(),a.find(".wpr-inner-sub-taxonomy-2[data-parent-id=\""+t(this).closest("li").data("id")+"\"]").hasClass("wpr-sub-hidden")?(t(this).removeClass("fa-caret-right").addClass("fa-caret-down"),a.find(".wpr-inner-sub-taxonomy-2[data-parent-id=\""+t(this).closest("li").data("id")+"\"]").removeClass("wpr-sub-hidden")):(t(this).removeClass("fa-caret-down").addClass("fa-caret-right"),a.find(".wpr-inner-sub-taxonomy-2[data-parent-id=\""+t(this).closest("li").data("id")+"\"]").addClass("wpr-sub-hidden"))}))},widgetPostsTimeline:function(e){function a(){e.find(".wpr-centered").length&&(767>=window.innerWidth?(e.find(".wpr-wrapper .wpr-timeline-centered").removeClass("wpr-both-sided-timeline").addClass("wpr-one-sided-timeline").addClass("wpr-remove-one-sided-later"),e.find(".wpr-wrapper .wpr-left-aligned").removeClass("wpr-left-aligned").addClass("wpr-right-aligned").addClass("wpr-remove-right-aligned-later")):(e.find(".wpr-wrapper .wpr-timeline-centered.wpr-remove-one-sided-later").removeClass("wpr-one-sided-timeline").addClass("wpr-both-sided-timeline").removeClass("wpr-remove-one-sided-later"),e.find(".wpr-wrapper .wpr-remove-right-aligned-later").removeClass("wpr-right-aligned").addClass("wpr-left-aligned").removeClass("wpr-remove-right-aligned-later")))}function r(a,i){if(e.find(".wpr-timeline-fill").length&&(0a.offset().top-i.offset().top+parseInt(a.css("height").slice(0,-2))||p.css("height",s+n-i.offset().top+"px"),e.find(".wpr-main-line-icon.wpr-icon").each(function(){t(this).offset().top=p?a.columns_mobile?a.columns_mobile:1:f>=p?a.columns_mobile_extra?a.columns_mobile_extra:a.columns_tablet?a.columns_tablet:a.columns:w>=p?a.columns_tablet?a.columns_tablet:2:m>=p?a.columns_tablet_extra?a.columns_tablet_extra:a.columns_tablet?a.columns_tablet:a.columns:h>=p?a.columns_laptop?a.columns_laptop:a.columns:g-1>=p?a.columns:g<=p?a.columns_widescreen?a.columns_widescreen:a.columns:a.columns,8=p?a.columns_mobile?a.columns_mobile:1:f>=p?a.columns_mobile_extra?a.columns_mobile_extra:a.columns_tablet?a.columns_tablet:a.columns:w>=p?a.columns_tablet?a.columns_tablet:2:m>=p?a.columns_tablet_extra?a.columns_tablet_extra:a.columns_tablet?a.columns_tablet:a.columns:h>=p?a.columns_laptop?a.columns_laptop:a.columns:g-1>=p?a.columns:g<=p?a.columns_widescreen?a.columns_widescreen:a.columns:a.columns,8 span").attr("data-src"),a=t(this).closest(".wpr-insta-feed-content-wrap");a.find("img").attr("alt",DOMPurify.sanitize(a.find("img").attr("alt"))),a.find(".wpr-insta-feed-image-wrap").attr("data-src",e);a.find(".wpr-insta-feed-image-wrap").attr("data-src")}),n.lightGallery(a.lightbox),n.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),!1==n&&t(this).find("img").attr("src",e)})}),e.find(".wpr-insta-feed").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.lightbox.autoplay&&t(".lg-autoplay-button").css({width:"0",height:"0",overflow:"hidden"})}),s.length?(e.find(".wpr-insta-feed-media-hover-bg").after(s.remove()),e.find(".wpr-insta-feed-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(".wpr-insta-feed-content-wrap").find(".wpr-insta-feed-image-wrap").trigger("click")})):r.find(".inner-block > span").on("click",function(){if(!i.editorCheck()){var e=t(this).closest(".wpr-insta-feed-content-wrap").find(".wpr-insta-feed-image-wrap");e.trigger("click")}else alert("Lightbox is Disabled in the Editor! Please Preview this Page to see it in action.")})}}function s(){"yes"!==n.find(".wpr-insta-feed-media-wrap").attr("data-overlay-link")||i.editorCheck()||(n.find(".wpr-insta-feed-media-wrap").css("cursor","pointer"),n.find(".wpr-insta-feed-media-wrap").on("click",function(e){var a=e.target.className;if(-1!==a.indexOf("inner-block")||-1!==a.indexOf("wpr-cv-inner")||-1!==a.indexOf("wpr-insta-feed-media-hover")){e.preventDefault();var i=t(this).find(".wpr-insta-feed-media-hover-bg").attr("data-url"),i=i.replace("#new_tab","");if(i)try{var r=new URL(i);if(["http:","https:"].includes(r.protocol)){var s=r.href;"_blank"===iGrid.find(".wpr-grid-item-title a").attr("target")?window.open(s,"_blank").focus():window.location.href=s}else console.error("Invalid URL scheme:",r.protocol)}catch(t){console.error("Invalid URL:",i)}}}))}if(!(0e.find(".wpr-insta-feed-content-wrap").length&&e.find(".wpr-layout-full-width").css("grid-template-columns","repeat("+e.find(".wpr-insta-feed-content-wrap").length+", minmax(0, 1fr))"),e.hasClass("wpr-insta-feed-masonry")&&(a(d),setTimeout(function(){a(d)},100),i.editorCheck()&&(setTimeout(function(){a(d)},500),setTimeout(function(){a(d)},1e3)),t(window).on("load",function(){setTimeout(function(){a(d)},100)}),t(window).smartresize(function(){setTimeout(function(){a(d)},200)})),e.hasClass("wpr-insta-feed-layout-list")){var f=d.media_align,w=d.media_width,m=d.media_distance;e.find(".wpr-insta-feed-item-below-content").css({float:f,width:"calc((100% - "+w+"%) - "+m+"px)"}),t(window).smartresize(function(){f=d.media_align,w=d.media_width,m=d.media_distance,e.find(".wpr-insta-feed-item-below-content").css({float:f,width:"calc((100% - "+w+"%) - "+m+"px)"})})}i.editorCheck()||e.find(".wpr-load-more-insta-posts").on("click",function(){c.find(".wpr-load-more-btn").hide(),c.find(".wpr-pagination-loading").css("display","inline-block"),t.ajax({type:"POST",url:WprConfig.ajaxurl,data:{action:"wpr_load_more_instagram_posts",nonce:WprConfig.nonce,wpr_load_more_settings:o,wpr_insta_feed_widget_id:l,next_post_index:p},success:function(a){var i=t(a);i.each(function(){t(this).addClass("wpr-instagram-hidden-item")}),e.find(".wpr-instagram-feed").append(i),e.hasClass("wpr-insta-feed-layout-list")&&(f=d.media_align,w=d.media_width,m=d.media_distance,e.find(".wpr-insta-feed-item-below-content").css({float:f,width:"calc((100% - "+w+"%) - "+m+"px)"})),e.hasClass("wpr-insta-feed-masonry")&&(n.isotopewpr("appended",i),n.isotopewpr("reloadItems"),n.isotopewpr("layout"),t(window).trigger("resize")),setTimeout(function(){i.each(function(){var e=t(this);setTimeout(function(){e.removeClass("wpr-instagram-hidden-item")},100)}),c.find(".wpr-pagination-loading").hide(),a.includes("wpr-insta-feed-content-wrap")?setTimeout(function(){c.find(".wpr-load-more-btn").fadeIn()},400):(c.find(".wpr-pagination-finish").fadeIn(1e3),c.delay(2e3).fadeOut(1e3),setTimeout(function(){c.find(".wpr-pagination-loading").hide()},500))},400),p+=o.limit,n.data("lightGallery")&&n.data("lightGallery").destroy(!0),s()},error:function(e){console.log(e)}})}),e.find(".wpr-layout-carousel")&&function(){if(e.hasClass("wpr-insta-feed-layout-carousel")){var t=function(e,t){var a=elementorFrontend.utils.swiper;return new a(e,t).then(function(e){return e})};e.find(".wpr-instagram-feed").css("flexWrap","nowrap");var a=d.carousel;e.find(".wpr-instagram-feed-cont").addClass("swiper"),e.find(".wpr-instagram-feed").addClass("swiper-wrapper"),e.find(".wpr-insta-feed-content-wrap").addClass("swiper-slide"),e.find(".wpr-instagram-feed-cont").css("overflow","hidden");var i=e.find(".wpr-instagram-feed-cont"),r=+elementorFrontend.config.responsive.breakpoints.mobile.value+1,s=+elementorFrontend.config.responsive.breakpoints.mobile_extra.value+1,n=+elementorFrontend.config.responsive.breakpoints.tablet.value+1,o=+elementorFrontend.config.responsive.breakpoints.tablet_extra.value+1,l=+elementorFrontend.config.responsive.breakpoints.laptop.value+1,p=+elementorFrontend.config.responsive.breakpoints.widescreen.value;t(i,{autoplay:"yes"===a.wpr_cs_autoplay&&{delay:+a.wpr_cs_delay},loop:"yes"===a.wpr_cs_loop,slidesPerView:+a.wpr_cs_slides_to_show,spaceBetween:+a.wpr_cs_space_between,speed:+a.wpr_cs_speed,pagination:"yes"===a.wpr_cs_pagination&&{el:".swiper-pagination",type:a.wpr_cs_pagination_type,clickable:"bullets"===a.wpr_cs_pagination_type},navigation:{prevEl:".wpr-swiper-button-prev",nextEl:".wpr-swiper-button-next"},breakpoints:{320:{slidesPerView:+a.wpr_cs_slides_to_show_mobile},[r]:{slidesPerView:+a.wpr_cs_slides_to_show_mobile_extra},[s]:{slidesPerView:+a.wpr_cs_slides_to_show_tablet,spaceBetween:+a.wpr_cs_space_between_tablet},[n]:{slidesPerView:+a.wpr_cs_slides_to_show_tablet_extra,spaceBetween:+a.wpr_cs_space_between_tablet_extra},[o]:{slidesPerView:+a.wpr_cs_slides_to_show_laptop,spaceBetween:+a.wpr_cs_space_between_laptop},[l]:{slidesPerView:+a.wpr_cs_slides_to_show,spaceBetween:+a.wpr_cs_space_between},[p]:{slidesPerView:+a.wpr_cs_slides_to_show_widescreen,spaceBetween:+a.wpr_cs_space_between_widescreen}}}),e.css("opacity",1)}}(),t(document).ready(function(){e.find(".wpr-grid-pagination").removeClass("wpr-pagination-hidden")}),t(document).ready(function(){n.length&&n.css("opacity",1)}),i.editorCheck()&&n.length&&n.css("opacity",1),s(),r(d),function(){if(e.find(".wpr-sharing-trigger").length){var a=e.find(".wpr-sharing-trigger"),i=e.find(".wpr-post-sharing-inner"),r=5;i.first().find("a").each(function(){r+=t(this).outerWidth()+parseInt(t(this).css("margin-right"),10)});var s=parseInt(i.find("a").css("margin-right"),10);"left"===a.attr("data-direction")?(i.css("width",r+"px"),i.css("left",-(s+r)+"px")):"right"===a.attr("data-direction")?(i.css("width",r+"px"),i.css("right",-(s+r)+"px")):"top"===a.attr("data-direction")?(i.find("a").css({"margin-right":"0","margin-top":s+"px"}),i.css({top:-s+"px",left:"50%","-webkit-transform":"translate(-50%, -100%)",transform:"translate(-50%, -100%)"})):"right"===a.attr("data-direction")?(i.css("width",r+"px"),i.css({left:s+"px"})):"bottom"===a.attr("data-direction")&&(i.find("a").css({"margin-right":"0","margin-bottom":s+"px"}),i.css({bottom:-s+"px",left:"50%","-webkit-transform":"translate(-50%, 100%)",transform:"translate(-50%, 100%)"})),"click"===a.attr("data-action")?a.on("click",function(){var e=t(this).next();"hidden"===e.css("visibility")?(e.css("visibility","visible"),e.find("a").css({opacity:"1",top:"0"}),setTimeout(function(){e.find("a").addClass("wpr-no-transition-delay")},100*e.find("a").length)):(e.find("a").removeClass("wpr-no-transition-delay"),e.find("a").css({opacity:"0",top:"-5px"}),setTimeout(function(){e.css("visibility","hidden")},100*e.find("a").length))}):(a.on("mouseenter",function(){var e=t(this).next();e.css("visibility","visible"),e.find("a").css({opacity:"1",top:"0"}),setTimeout(function(){e.find("a").addClass("wpr-no-transition-delay")},100*e.find("a").length)}),e.find(".wpr-insta-feed-item-sharing").on("mouseleave",function(){var e=t(this).find(".wpr-post-sharing-inner");e.find("a").removeClass("wpr-no-transition-delay"),e.find("a").css({opacity:"0",top:"-5px"}),setTimeout(function(){e.css("visibility","hidden")},100*e.find("a").length)}))}}();var h=new MutationObserver(function(){s(),r(d)});h.observe(e[0],{childList:!0,subtree:!0}),e.find(".elementor-widget-wrap").removeClass("e-swiper-container")},widgetFacebookFeed:function(){window.fbAsyncInit=function(){FB.init({appId:"1184287221975469",xfbml:!0,version:"v13.0"}),FB.AppEvents.logPageView()},function(e,t,a){var i=e.getElementsByTagName(t)[0],r;e.getElementById(a)||(r=e.createElement(t),r.id=a,r.src="https://connect.facebook.net/en_US/sdk.js",i.parentNode.insertBefore(r,i))}(document,"script","facebook-jssdk")},widgetFlipCarousel:function(e){var a=JSON.parse(e.find(".wpr-flip-carousel").attr("data-settings"));e.find(".wpr-flip-carousel").css("opacity",1),e.find(".wpr-flip-carousel").flipster({itemContainer:"ul",itemSelector:"li",fadeIn:400,start:"yes"===a.starts_from_center?"center":0,style:a.carousel_type,loop:!("yes"!==a.loop),autoplay:"no"!==a.autoplay&&a.autoplay_milliseconds,pauseOnHover:!("yes"!==a.pause_on_hover),click:!("yes"!==a.play_on_click),scrollwheel:!("yes"!==a.play_on_scroll),touch:!0,nav:!("true"!==a.pagination_position)||!!a.pagination_position&&a.pagination_position,spacing:a.spacing,buttons:"custom",buttonPrev:a.button_prev,buttonNext:a.button_next});var i=e.find(".wpr-flip-carousel").find(".flipster__nav__item").find(".flipster__nav__link");i.each(function(){t(this).text(parseInt(t(this).text())+1)})},widgetFeatureList:function(e){function a(){e.find(".wpr-feature-list-item:not(:last-of-type)").find(".wpr-feature-list-icon-wrap").each(function(a){var i=e.find(".wpr-feature-list-item").eq(a+1).find(".wpr-feature-list-icon-wrap").offset().top;t(this).find(".wpr-feature-list-line").height(i-t(this).offset().top+"px")}),t(window).resize(function(){e.find(".wpr-feature-list-item:not(:last-of-type)").find(".wpr-feature-list-icon-wrap").each(function(a){var i=e.find(".wpr-feature-list-item").eq(a+1).find(".wpr-feature-list-icon-wrap").offset().top;t(this).find(".wpr-feature-list-line").height(i-t(this).offset().top+"px")})})}const i=document.querySelector(".e-n-tabs-content>div");if(i){const e=new MutationObserver(function(e){for(let t of e)("attributes"===t.type||"childList"===t.type)&&a()});e.observe(i,{attributes:!0,childList:!0,subtree:!0})}a()},widgetAdvancedAccordion:function(a){var i=a.find(".wpr-acc-button"),r=a.find(".wpr-acc-panel"),s=a.find(".wpr-accordion-item-wrap"),n=a.find(".wpr-advanced-accordion").data("accordion-type"),d=+a.find(".wpr-advanced-accordion").data("active-index")-1,o=a.find(".wpr-advanced-accordion").data("accordion-trigger"),l=1e3*+a.find(".wpr-advanced-accordion").data("interaction-speed"),p=a.attr("data-id"),c=window.location.href.indexOf("active_panel=");-1 *");a.find("i.fa-times").on("click",function(){a.find(".wpr-acc-search-input").val(""),a.find(".wpr-acc-search-input").trigger("keyup")});var w=a.find(".wpr-acc-icon-box");w.each(function(){t(this).find(".wpr-acc-icon-box-after").css({"border-top":t(this).height()/2+"px solid transparent","border-bottom":t(this).height()/2+"px solid transparent"})}),t(window).resize(function(){w.each(function(){t(this).find(".wpr-acc-icon-box-after").css({"border-top":t(this).height()/2+"px solid transparent","border-bottom":t(this).height()/2+"px solid transparent"})})}),a.find(".wpr-acc-search-input").on("keyup",function(){setTimeout(()=>{let e=t(this).val();0{t(this).find(".wpr-img-accordion-media-hover").trigger("click")},400):setTimeout(()=>{t(this).find(".wpr-img-accordion-media-hover").trigger("mouseenter")},400))}),e.find(".wpr-image-accordion-wrap").css("opacity",1)},widgetOffcanvas:function(a){function i(e){a.hasClass("wpr-offcanvas-entrance-type-push")||a.find(".wpr-offcanvas-content").hasClass("wpr-offcanvas-content-relative")||t("body").addClass("wpr-offcanvas-body-overflow"),s=1e3*+e.find(".wpr-offcanvas-content").css("animation-duration").replace("s",""),e.fadeIn(s),e.addClass("wpr-offcanvas-wrap-active"),a.hasClass("wpr-offcanvas-entrance-animation-slide")?e.find(".wpr-offcanvas-content").hasClass("wpr-offcanvas-slide-in")?e.find(".wpr-offcanvas-content").removeClass("wpr-offcanvas-slide-in").addClass("wpr-offcanvas-slide-out"):e.find(".wpr-offcanvas-content").removeClass("wpr-offcanvas-slide-out").addClass("wpr-offcanvas-slide-in"):a.hasClass("wpr-offcanvas-entrance-animation-grow")?e.find(".wpr-offcanvas-content").hasClass("wpr-offcanvas-grow-in")?e.find(".wpr-offcanvas-content").removeClass("wpr-offcanvas-grow-in").addClass("wpr-offcanvas-grow-out"):e.find(".wpr-offcanvas-content").removeClass("wpr-offcanvas-grow-out").addClass("wpr-offcanvas-grow-in"):a.hasClass("wpr-offcanvas-entrance-animation-fade")&&(e.find(".wpr-offcanvas-content").hasClass("wpr-offcanvas-fade-in")?e.find(".wpr-offcanvas-content").removeClass("wpr-offcanvas-fade-in").addClass("wpr-offcanvas-fade-out"):e.find(".wpr-offcanvas-content").removeClass("wpr-offcanvas-fade-out").addClass("wpr-offcanvas-fade-in")),t(window).trigger("resize")}function r(e){a.hasClass("wpr-offcanvas-entrance-type-push")||a.find(".wpr-offcanvas-content").hasClass("wpr-offcanvas-content-relative")||t("body").removeClass("wpr-offcanvas-body-overflow"),a.hasClass("wpr-offcanvas-entrance-animation-slide")?e.find(".wpr-offcanvas-content").removeClass("wpr-offcanvas-slide-in").addClass("wpr-offcanvas-slide-out"):a.hasClass("wpr-offcanvas-entrance-animation-grow")?e.find(".wpr-offcanvas-content").removeClass("wpr-offcanvas-grow-in").addClass("wpr-offcanvas-grow-out"):a.hasClass("wpr-offcanvas-entrance-animation-fade")&&e.find(".wpr-offcanvas-content").removeClass("wpr-offcanvas-fade-in").addClass("wpr-offcanvas-fade-out"),e.fadeOut(s),e.removeClass("wpr-offcanvas-wrap-active")}let s;if(a.hasClass("wpr-offcanvas-entrance-animation-pro-sl")?a.removeClass("wpr-offcanvas-entrance-animation-pro-sl").addClass("wpr-offcanvas-entrance-animation-fade"):a.hasClass("wpr-offcanvas-entrance-animation-pro-gr")&&a.removeClass("wpr-offcanvas-entrance-animation-pro-gr").addClass("wpr-offcanvas-entrance-animation-fade"),a.hasClass("wpr-offcanvas-entrance-type-pro-ps")&&a.removeClass("wpr-offcanvas-entrance-type-pro-ps").addClass("wpr-offcanvas-entrance-type-cover"),a.hasClass("wpr-offcanvas-entrance-type-push")){function e(){if(1>t(".wpr-offcanvas-body-inner-wrap-"+a.data("id")).length){var e=t(".wpr-offcanvas-wrap-"+a.data("id")).clone();t(".wpr-offcanvas-wrap-"+a.data("id")).remove(),0"),n=t(".wpr-offcanvas-body-inner-wrap-"+a.data("id")),n.css("position","relative"),0");var n=t(".wpr-offcanvas-body-inner-wrap-"+a.data("id"));n.css("position","relative"),0";a+="",a+=""+t.product_image+"",a+=""+t.product_title+"",a+="
"+t.product_price+"
",a+="
"+t.product_stock+"
",a+="
"+t.product_atc+"
",a+="",e.find(".wpr-wishlist-products tbody").append(a)}),0<+a.wishlist_count?(e.find(".wpr-wishlist-products").hasClass("wpr-wishlist-empty-hidden")&&e.find(".wpr-wishlist-products").removeClass("wpr-wishlist-empty-hidden"),!e.find(".wpr-wishlist-empty").hasClass("wpr-wishlist-empty-hidden")&&e.find(".wpr-wishlist-empty").addClass("wpr-wishlist-empty-hidden")):(!e.find(".wpr-wishlist-products").hasClass("wpr-wishlist-empty-hidden")&&e.find(".wpr-wishlist-products").addClass("wpr-wishlist-empty-hidden"),e.find(".wpr-wishlist-empty").hasClass("wpr-wishlist-empty-hidden")&&e.find(".wpr-wishlist-empty").removeClass("wpr-wishlist-empty-hidden"))},error:function(e){console.log(e)}}),e.on("click",".wpr-wishlist-remove",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(){1===e.find(".wpr-wishlist-product").length&&(!e.find(".wpr-wishlist-products").hasClass("wpr-wishlist-empty-hidden")&&e.find(".wpr-wishlist-products").addClass("wpr-wishlist-empty-hidden"),e.find(".wpr-wishlist-empty").hasClass("wpr-wishlist-empty-hidden")&&e.find(".wpr-wishlist-empty").removeClass("wpr-wishlist-empty-hidden")),e.find(".wpr-wishlist-product[data-product-id=\""+r+"\"]").remove(),i.changeActionTargetProductId(r),t(document).trigger("removed_from_wishlist")},error:function(e){console.log(e)}})}),t("body").on("added_to_cart",function(e,t,a,i){i.next().fadeTo(700,1),i.css("display","none")})},widgetWishlistButton:function(e){t.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"check_product_in_wishlist",product_id:e.find(".wpr-wishlist-add").data("product-id")},success:function(t){!0==t&&(!e.find(".wpr-wishlist-add").hasClass("wpr-button-hidden")&&e.find(".wpr-wishlist-add").addClass("wpr-button-hidden"),e.find(".wpr-wishlist-remove").hasClass("wpr-button-hidden")&&e.find(".wpr-wishlist-remove").removeClass("wpr-button-hidden"))}}),e.find(".wpr-wishlist-add").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:"add_to_wishlist",nonce:WprConfig.nonce,product_id:r},success:function(){e.find(".wpr-wishlist-add[data-product-id=\""+r+"\"]").hide(),e.find(".wpr-wishlist-remove[data-product-id=\""+r+"\"]").show(),e.find(".wpr-wishlist-remove[data-product-id=\""+r+"\"]").fadeTo(500,1),i.changeActionTargetProductId(r),t(document).trigger("added_to_wishlist")},error:function(e){var t=e.responseJSON.message;alert(t)}})}),e.find(".wpr-wishlist-remove").on("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_wishlist",nonce:WprConfig.nonce,product_id:r},success:function(){e.find(".wpr-wishlist-remove[data-product-id=\""+r+"\"]").hide(),e.find(".wpr-wishlist-add[data-product-id=\""+r+"\"]").show(),e.find(".wpr-wishlist-add[data-product-id=\""+r+"\"]").fadeTo(500,1),i.changeActionTargetProductId(r),t(document).trigger("removed_from_wishlist")}})}),t(document).on("removed_from_wishlist",function(){e.find(".wpr-wishlist-remove[data-product-id=\""+r+"\"]").hide(),e.find(".wpr-wishlist-add[data-product-id=\""+r+"\"]").show(),e.find(".wpr-wishlist-add[data-product-id=\""+r+"\"]").fadeTo(500,1)})},widgetCompareButton:function(e){t.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"check_product_in_compare",product_id:e.find(".wpr-compare-add").data("product-id")},success:function(t){!0==t&&(!e.find(".wpr-compare-add").hasClass("wpr-button-hidden")&&e.find(".wpr-compare-add").addClass("wpr-button-hidden"),e.find(".wpr-compare-remove").hasClass("wpr-button-hidden")&&e.find(".wpr-compare-remove").removeClass("wpr-button-hidden"))}}),e.find(".wpr-compare-add").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:"add_to_compare",nonce:WprConfig.nonce,product_id:r},success:function(){e.find(".wpr-compare-add[data-product-id=\""+r+"\"]").hide(),e.find(".wpr-compare-remove[data-product-id=\""+r+"\"]").show(),e.find(".wpr-compare-remove[data-product-id=\""+r+"\"]").fadeTo(500,1),i.changeActionTargetProductId(r),t(document).trigger("added_to_compare")},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)})},widgetMiniCompare:function(a){0
"),t.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"wpr_get_page_content",nonce:WprConfig.nonce,wpr_compare_page_id:WprConfig.comparePageID},success:function(e){a.find(".wpr-compare-popup-inner-wrap").html(e.data.content),i.widgetCompare(a),a.find(".wpr-compare-remove").click(function(r){r.preventDefault();var e=t(this).data("product-id");t.ajax({url:WprConfig.ajaxurl,type:"POST",data:{action:"remove_from_compare",nonce:WprConfig.nonce,product_id:e},success:function(){i.changeActionTargetProductId(e),a.find("[data-product-id=\""+e+"\"]").remove(),0{t.ajax({url:WprConfig.ajaxurl,type:"POST",data:p,processData:!1,contentType:!1,success:function(t){if(t.success)"click"==r&&(f[s][c]=t.data.url),a(t);else{if(console.error("Error:",t),t.data){if("filesize"===t.data.cause){let a=e.data("maxfs-notice")?e.data("maxfs-notice"):t.data.message;e.closest(".wpr-field-group").append("

"+a+"

")}"filetype"==t.data.cause&&e.closest(".wpr-field-group").append("

"+t.data.message+"

")}i(t)}},error:function(t){if("filesize"===t.cause){let a=e.data("maxfs-notice")?e.data("maxfs-notice"):t.message;e.closest(".wpr-field-group").append("

"+a+"

")}"filetype"==t.cause&&e.closest(".wpr-field-group").append("

"+t.message+"

"),console.log(t),i(t)}})}))}return Promise.all(o)}function s(e){const t=new Date(e),a=(t.getMonth()+1).toString().padStart(2,"0"),i=t.getDate().toString().padStart(2,"0");return`${a}/${i}`}function d(e){var t=a.find(".wpr-step-tab");t.eq(e).removeClass("wpr-step-tab-hidden"),0===e?a.find(".wpr-step-prev").hide():a.find(".wpr-step-prev").show(),p(e)}function o(e){var t=a.find(".wpr-step-tab");return!!(1!==e||l())&&(t.eq(m).addClass("wpr-step-tab-hidden"),m+=e,m>=t.length?(a.find("form").submit(),!1):void d(m))}function l(){var e=!0,i=a.find(".wpr-step-tab");0"+WprConfig.file_empty+"

"):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(){0s&&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+"
    "+e.product_title+"
    "+e.product_price+"
  • ")})}}),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+"
    "+e.product_title+"
    "+e.product_price+"
  • "),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");