!function(g,v,s){"use strict";var j={addedScripts:{},addedStyles:{},addedAssetsPromises:[],init:function(){var e={"jet-nav-menu.default":j.navMenu,"jet-search.default":j.searchBox,"jet-auth-links.default":j.authLinks,"jet-hamburger-panel.default":j.hamburgerPanel,"jet-blocks-cart.default":j.wooCard,"jet-register.default":j.userRegistration,"jet-reset.default":j.userResetPassword,"jet-login.default":j.userLogin};g.each(e,function(e,t){v.hooks.addAction("frontend/element_ready/"+e,t)}),g(document).on("click.jetBlocks",".jet-search__popup-trigger",j.searchPopupSwitch).on("click.jetBlocks",".jet-search__popup-close",j.searchPopupSwitch),g(window).on("jet-menu/ajax/frontend-init/before",function(){g(document.body).trigger("wc_fragment_refresh")}),v.hooks.addAction("frontend/element_ready/section",j.setStickySection),v.hooks.addAction("frontend/element_ready/container",j.setStickySection),g(j.stickySection)},wooCard:function(e){(window.JetBlocksEditor&&window.JetBlocksEditor.activeSection||j.isEditMode())&&(t=window.JetBlocksEditor.activeSection,["cart_list_style","cart_list_items_style","cart_buttons_style"].indexOf(t),g(".widget_shopping_cart_content").empty(),g(document.body).trigger("wc_fragment_refresh"));var t,n=g(".jet-blocks-cart",e),s=g(".jet-blocks-cart__heading-link",n);switch(n.data("settings").triggerType){case"hover":"ontouchend"in window||"ontouchstart"in window?(n.on("touchstart",function(e){scrollOffset=g(window).scrollTop()}),n.on("touchend",function(e){if(scrollOffset!==g(window).scrollTop())return!1;var t=g(this);t.hasClass("jet-cart-open-proccess")||setTimeout(function(){t.toggleClass("jet-cart-open")},10)}),g(document).on("touchend",function(e){g(e.target).closest(n).length||n.hasClass("jet-cart-open-proccess")||n.hasClass("jet-cart-open")&&n.removeClass("jet-cart-open")})):n.on("mouseenter mouseleave",function(e){g(this).hasClass("jet-cart-open-proccess")||"mouseenter"!==e.type||g(this).addClass("jet-cart-open"),g(this).hasClass("jet-cart-open-proccess")||"mouseleave"!==e.type||g(this).removeClass("jet-cart-open")});break;case"click":s.on("click",function(e){e.preventDefault(),n.hasClass("jet-cart-open-proccess")||n.toggleClass("jet-cart-open")})}g(".jet-blocks-cart__close-button",n).on("click touchend",function(e){n.hasClass("jet-cart-open-proccess")||n.removeClass("jet-cart-open")})},userRegistration:function(e){var t=g(".jet-register",e),n=g(".pw-validation",t),s=g("button.jet-register__submit",e);n.length&&j.strongPasswordValidation(e,s),j.togglePasswordVisibility(e),i.googleRecaptcha(t)},userResetPassword:function(e){var t=g(".jet-reset",e),n=g(".jet-reset__form",e),t=g(".pw-validation",t),s=g("button.jet-reset__button",e);t.length&&j.strongPasswordValidation(e,s),j.togglePasswordVisibility(e),i.googleRecaptcha(n)},userLogin:function(e){e=g("#loginform",e);i.googleRecaptcha(e)},navMenu:function(r){var c,s,l,n,e,i,t,o,a;function d(e){var t,n=r.find(".jet-nav");"touchend"===e.type&&o!==g(window).scrollTop()||g(e.target).closest(n).length||(t=g(".menu-item-has-children."+c,n))[0]&&(t.removeClass(c),t.addClass(s),setTimeout(function(){t.removeClass(s)},200),n.hasClass("jet-nav--vertical-sub-bottom")&&g(".jet-nav__sub",t).slideUp(200),e.stopPropagation())}function u(e){var t=r.find(".jet-nav-wrap").data("mobile-layout"),n=r.find(".jet-nav-wrap"),s=r.find(".jet-nav__mobile-trigger"),i=r.find(".jet-nav");"left-side"!==t&&"right-side"!==t||"touchend"===e.type&&o!==g(window).scrollTop()||g(e.target).closest(s).length||g(e.target).closest(i).length||n.hasClass(l)&&(n.removeClass(l),e.stopPropagation())}function h(){var e,t;"full-width"===r.find(".jet-nav-wrap").data("mobile-layout")&&(e=r.find(".jet-nav"),t=v.getCurrentDeviceMode(),n.indexOf(t) a",function(e){e=g(e.currentTarget).closest(".menu-item");e.data("offset",g(window).scrollTop()),e.data("elemOffset",e.offset().top)}),r.find(".jet-nav:not(.jet-nav--vertical-sub-bottom)").on("touchend.jetNavMenu",".menu-item > a",function(e){var t,n,s,i,o,a;if(e.preventDefault(),e=g(e.currentTarget),e=e.closest(".menu-item"),t=e.siblings(".menu-item.menu-item-has-children"),n=g("> a",e),s=g(".jet-nav__sub:first",e),i=e.data("offset"),o=e.data("elemOffset"),a=e.closest(".jet-hamburger-panel"),i!==g(window).scrollTop()||o!==e.offset().top)return!1;t[0]&&(t.removeClass(c),g(".menu-item-has-children",t).removeClass(c));if(!g(".jet-nav__sub",e)[0]||e.hasClass(c))return n.trigger("click"),window.location.href=n.attr("href"),r.find(".jet-nav-wrap").hasClass(l)&&r.find(".jet-nav-wrap").removeClass(l),a[0]&&a.hasClass("open-state")&&(a.removeClass("open-state"),g("html").removeClass("jet-hamburger-panel-visible")),!1;s[0]&&e.addClass(c)}),g(document).on("touchstart.jetNavMenu",function(e){o=g(window).scrollTop()}),g(document).on("touchend.jetNavMenu",d)):r.find(".jet-nav:not(.jet-nav--vertical-sub-bottom)").on("click.jetNavMenu",".menu-item > a",function(e){var e=g(e.currentTarget).closest(".menu-item"),t=e.closest(".jet-hamburger-panel");e.hasClass("menu-item-has-children")&&!e.hasClass(c)||t[0]&&t.hasClass("open-state")&&(t.removeClass("open-state"),g("html").removeClass("jet-hamburger-panel-visible"))}),j.isEditMode()||(t=r.find('.menu-item-link[href*="#"]'))[0]&&t.each(function(){if(""!==this.hash&&location.pathname===this.pathname){var e,t=g(this),n=t[0].hash,s="current-menu-item",i="-50% 0% -50%";try{e=g(decodeURIComponent(n))}catch(e){return}e[0]&&(e.hasClass("elementor-menu-anchor")&&(i="300px 0% -300px"),new IntersectionObserver(function(e){e[0].isIntersecting?t.parent(".menu-item").addClass(s):t.parent(".menu-item").removeClass(s)},{rootMargin:i}).observe(e[0]))}}),r.find(".jet-nav--vertical-sub-bottom").on("click.jetNavMenu",".menu-item > a",function(e){var t=g(e.currentTarget).closest(".menu-item"),n=t.siblings(".menu-item.menu-item-has-children"),s=g(".jet-nav__sub:first",t),i=t.closest(".jet-hamburger-panel");!t.hasClass("menu-item-has-children")||t.hasClass(c)?(r.find(".jet-nav-wrap").hasClass(l)&&r.find(".jet-nav-wrap").removeClass(l),i[0]&&i.hasClass("open-state")&&(i.removeClass("open-state"),g("html").removeClass("jet-hamburger-panel-visible"))):(e.preventDefault(),e.stopPropagation(),n[0]&&(n.removeClass(c),g(".menu-item-has-children",n).removeClass(c),g(".jet-nav__sub",n).slideUp(200)),s[0]&&(s.slideDown(200),t.addClass(c)))}),g(document).on("click.jetNavMenu",function(e){r.find(".jet-nav").hasClass("jet-nav--vertical-sub-bottom")&&d(e)}),g(".jet-nav__mobile-trigger",r).on("click.jetNavMenu",function(e){g(this).closest(".jet-nav-wrap").toggleClass(l)}),"ontouchend"in window?g(document).on("touchend.jetMobileNavMenu",u):g(document).on("click.jetMobileNavMenu",u),g(".jet-nav__mobile-close-btn",r).on("click.jetMobileNavMenu",function(e){g(this).closest(".jet-nav-wrap").removeClass(l)}),a=!1,h(),g(window).on("resize.jetMobileNavMenu",h),j.isEditMode()&&r.data("initialized",!1))},searchBox:function(a){j.onSearchSectionActivated(a),g(document).on("click.jetBlocks",function(e){var t=a.find(".jet-search"),n=g(".jet-search__popup-trigger",t),s=g(".jet-search__popup-content",t),i="jet-search-popup-active",o="jet-transition-out";g(e.target).closest(n).length||g(e.target).closest(s).length||t.hasClass(i)&&(t.removeClass(i),t.addClass(o),setTimeout(function(){t.removeClass(o)},300),e.stopPropagation())})},onSearchSectionActivated:function(e){var t;s&&window.JetBlocksEditor&&window.JetBlocksEditor.activeSection&&(t=window.JetBlocksEditor.activeSection,-1!==["section_popup_style","section_popup_close_style","section_form_style"].indexOf(t)?e.find(".jet-search").addClass("jet-search-popup-active"):e.find(".jet-search").removeClass("jet-search-popup-active"))},authLinks:function(e){var t,n;s&&window.JetBlocksEditor&&(window.JetBlocksEditor.activeSection?(n=window.JetBlocksEditor.activeSection,t=-1!==["section_logout_link","section_logout_link_style"].indexOf(n),n=-1!==["section_registered_link","section_registered_link_style"].indexOf(n),(t?e.find(".jet-auth-links__login"):e.find(".jet-auth-links__logout")).css("display","none"),(n?e.find(".jet-auth-links__register"):e.find(".jet-auth-links__registered")).css("display","none")):(e.find(".jet-auth-links__logout").css("display","none"),e.find(".jet-auth-links__registered").css("display","none")))},hamburgerPanel:function(e){var t,n,s,d=g(".jet-hamburger-panel",e),i=g(".jet-hamburger-panel__toggle",e),o=g(".jet-hamburger-panel__instance",e),a=g(".jet-hamburger-panel__cover",e),r=g(".jet-hamburger-panel__inner",e),c=g(".jet-hamburger-panel__close-button",e),l=g(".jet-hamburger-panel__content",e),u=(Boolean(v.isEditMode()),g("html")),h=d.data("settings")||{},p=e.parents(".e-container");function m(e,t=!0){t?(p.css("z-index",999),e.parent(".e-container").css("z-index",999)):!1===t&&(p.css("z-index",""),e.parent(".e-container").css("z-index",""))}function f(e,t){var c=e,e=c.data("template-loaded")||!1,n=c.data("template-id"),l=g(".jet-hamburger-panel-loader",c),t=t.ajaxTemplateCache;e||(g(window).trigger("jet-blocks/ajax-load-template/before",{target:d,contentHolder:c}),c.data("template-loaded",!0),g.ajax({type:"GET",url:window.JetHamburgerPanelSettings.templateApiUrl,dataType:"json",data:{id:n,dev:window.JetHamburgerPanelSettings.devMode,cachedTemplate:t},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",window.JetHamburgerPanelSettings.restNonce)},success:function(t,e,n){var s,i,o=t.template_content,a=t.template_scripts,r=t.template_styles;for(s in a)j.addedAssetsPromises.push(j.loadScriptAsync(s,a[s]));for(i in r)j.addedAssetsPromises.push(j.loadStyle(i,r[i]));Promise.all(j.addedAssetsPromises).then(function(e){l.remove(),c.append(o),j.elementorFrontendInit(c),g(window).trigger("jet-blocks/ajax-load-template/after",{target:d,contentHolder:c,responce:t})},function(e){console.log("Script Loaded Error")})}}))}"ontouchend"in window||"ontouchstart"in window?(i.on("touchstart",function(e){t=g(window).scrollTop()}),i.on("touchend",function(e){if(t!==g(window).scrollTop())return!1;n&&clearTimeout(n),s&&clearTimeout(s),d.hasClass("open-state")?(d.removeClass("open-state"),u.removeClass("jet-hamburger-panel-visible"),s=setTimeout(function(){m(g(this),!1)},400)):(n=setTimeout(function(){m(g(this)),d.addClass("open-state")},10),u.addClass("jet-hamburger-panel-visible"),j.initAnimationsHandlers(r),h.ajaxTemplate&&f(l,h))})):(i.on("click",function(e){n&&clearTimeout(n),d.hasClass("open-state")?(d.removeClass("open-state"),u.removeClass("jet-hamburger-panel-visible"),n=setTimeout(function(){m(g(this),!1)},400)):(m(g(this)),d.addClass("open-state"),u.addClass("jet-hamburger-panel-visible"),j.initAnimationsHandlers(r),h.ajaxTemplate&&f(l,h))}),i.on("keydown",function(e){"Enter"===e.key&&(n&&clearTimeout(n),d.hasClass("open-state")?(d.removeClass("open-state"),u.removeClass("jet-hamburger-panel-visible"),n=setTimeout(function(){m(g(this),!1)},400)):(m(g(this)),d.addClass("open-state"),u.addClass("jet-hamburger-panel-visible"),j.initAnimationsHandlers(r),h.ajaxTemplate&&f(l,h)))})),c.on("click",function(e){n&&clearTimeout(n),d.hasClass("open-state")?(d.removeClass("open-state"),u.removeClass("jet-hamburger-panel-visible"),n=setTimeout(function(){m(g(this),!1)},400)):(d.addClass("open-state"),u.addClass("jet-hamburger-panel-visible"),j.initAnimationsHandlers(r))}),g(document).on("click.JetHamburgerPanel",function(e){(!g(e.target).closest(i).length&&!g(e.target).closest(o).length||g(e.target).closest(a).length)&&d.hasClass("open-state")&&(d.removeClass("open-state"),g(e.target).closest(".jet-hamburger-panel__toggle").length||u.removeClass("jet-hamburger-panel-visible"),e.stopPropagation())})},loadStyle:function(s,i){return j.addedStyles.hasOwnProperty(s)&&j.addedStyles[s]===i?s:i?(j.addedStyles[s]=i,new Promise(function(e,t){var n=document.createElement("link");n.id=s,n.rel="stylesheet",n.href=i,n.type="text/css",n.media="all",n.onload=function(){e(s)},document.head.appendChild(n)})):void 0},loadScriptAsync:function(s,i){return j.addedScripts.hasOwnProperty(s)?s:i?(j.addedScripts[s]=i,new Promise(function(e,t){var n=document.createElement("script");n.src=i,n.async=!0,n.onload=function(){e(s)},document.head.appendChild(n)})):void 0},initAnimationsHandlers:function(e){e.find("[data-element_type]").each(function(){var e=g(this);e.data("element_type")&&window.elementorFrontend.hooks.doAction("frontend/element_ready/global",e,g)})},searchPopupSwitch:function(e){var t=g(this).closest(".jet-search"),n=g(".jet-search__field",t),s="jet-search-popup-active",i="jet-transition-in",o="jet-transition-out";t.hasClass(s)?(t.removeClass(s),t.addClass(o),setTimeout(function(){t.removeClass(o)},300)):(t.addClass(i),setTimeout(function(){t.removeClass(i),t.addClass(s)},300),n.focus())},stickySection:function(){({isEditMode:Boolean(v.isEditMode()),correctionSelector:g("#wpadminbar"),initDesktop:!1,initTablet:!1,initMobile:!1,init:function(){var e=this;this.isEditMode||(g(document).ready(function(){e.run()}),g(window).on("resize.JetStickySection orientationchange.JetStickySection",this.run.bind(this)))},getOffset:function(){var e=0;return e=this.correctionSelector[0]&&"fixed"===this.correctionSelector.css("position")?this.correctionSelector.outerHeight(!0):e},run:function(){var e=v.getCurrentDeviceMode(),n="jet-sticky-transition-in",s="jet-sticky-transition-out",i={stickyClass:"jet-sticky-section--stuck",topSpacing:this.getOffset()};function o(e,t){e.jetStickySection(t).on("jetStickySection:stick",function(e){g(e.target).addClass(n),setTimeout(function(){g(e.target).removeClass(n)},3e3)}).on("jetStickySection:unstick",function(e){g(e.target).addClass(s),setTimeout(function(){g(e.target).removeClass(s)},3e3)}),e.trigger("jetStickySection:activated")}"desktop"!==e||this.initDesktop||(this.initTablet&&(j.getStickySectionsTablet.forEach(function(e,t){e.trigger("jetStickySection:detach")}),this.initTablet=!1),this.initMobile&&(j.getStickySectionsMobile.forEach(function(e,t){e.trigger("jetStickySection:detach")}),this.initMobile=!1),j.getStickySectionsDesktop[0]&&(j.getStickySectionsDesktop.forEach(function(e,t){j.getStickySectionsDesktop[t+1]?i.stopper=j.getStickySectionsDesktop[t+1]:i.stopper="",o(e,i)}),this.initDesktop=!0)),"tablet"!==e||this.initTablet||(this.initDesktop&&(j.getStickySectionsDesktop.forEach(function(e,t){e.trigger("jetStickySection:detach")}),this.initDesktop=!1),this.initMobile&&(j.getStickySectionsMobile.forEach(function(e,t){e.trigger("jetStickySection:detach")}),this.initMobile=!1),j.getStickySectionsTablet[0]&&(j.getStickySectionsTablet.forEach(function(e,t){j.getStickySectionsTablet[t+1]?i.stopper=j.getStickySectionsTablet[t+1]:i.stopper="",o(e,i)}),this.initTablet=!0)),"mobile"!==e||this.initMobile||(this.initDesktop&&(j.getStickySectionsDesktop.forEach(function(e,t){e.trigger("jetStickySection:detach")}),this.initDesktop=!1),this.initTablet&&(j.getStickySectionsTablet.forEach(function(e,t){e.trigger("jetStickySection:detach")}),this.initTablet=!1),j.getStickySectionsMobile[0]&&(j.getStickySectionsMobile.forEach(function(e,t){j.getStickySectionsMobile[t+1]?i.stopper=j.getStickySectionsMobile[t+1]:i.stopper="",o(e,i)}),this.initMobile=!0))}}).init()},getStickySectionsDesktop:[],getStickySectionsTablet:[],getStickySectionsMobile:[],setStickySection:function(t){({target:t,isEditMode:Boolean(v.isEditMode()),init:function(){var e;this.isEditMode||"yes"!==this.getSectionSetting("jet_sticky_section")||(e=this.getSectionSetting("jet_sticky_section_visibility")||[])[0]&&(-1!==e.indexOf("desktop")&&j.getStickySectionsDesktop.push(t),-1!==e.indexOf("tablet")&&j.getStickySectionsTablet.push(t),-1!==e.indexOf("mobile")&&j.getStickySectionsMobile.push(t))},getSectionSetting:function(e){var t={};if(Boolean(v.isEditMode())){if(!v.hasOwnProperty("config"))return;if(!v.config.hasOwnProperty("elements"))return;if(!v.config.elements.hasOwnProperty("data"))return;var n=this.target.data("model-cid"),n=v.config.elements.data[n];if(!n)return;if(!n.hasOwnProperty("attributes"))return;t=n.attributes||{}}else t=this.target.data("settings")||{};if(t[e])return t[e]}}).init()},isEditMode:function(){return Boolean(v.isEditMode())},elementorFrontendInit:function(e){e.find("[data-element_type]").each(function(){var t=g(this),e=t.data("element_type");if(e)try{"widget"===e&&(e=t.data("widget_type"),window.elementorFrontend.hooks.doAction("frontend/element_ready/widget",t,g)),window.elementorFrontend.hooks.doAction("frontend/element_ready/global",t,g),window.elementorFrontend.hooks.doAction("frontend/element_ready/"+e,t,g)}catch(e){return console.log(e),t.remove(),!1}})},togglePasswordVisibility:function(e){var t=g("input:password",e);g(".password-visibility__icon",e).on("click",function(){"password"===t.attr("type")?(t.attr("type","text"),g(".password-visibility__icon--show",e).removeClass("show"),g(".password-visibility__icon--hide",e).addClass("show")):(t.attr("type","password"),g(".password-visibility__icon--show",e).addClass("show"),g(".password-visibility__icon--hide",e).removeClass("show"))})},strongPasswordValidation:function(e,t){var i=g("input.pw-validation",e),n=g(".jet-password-requirements",e),o=g(".jet-password-requirements-length",n),a=g(".jet-password-requirements-lowercase",n),r=g(".jet-password-requirements-uppercase",n),c=g(".jet-password-requirements-number",n),l=g(".jet-password-requirements-special",n);function s(){var e,t=i.val(),n=0,s={};return 0\?]/g.test(t))?l.addClass("success").removeClass("error"):l.removeClass("success"),s.special=e),Object.keys(s).forEach(function(e){!1===s[e]&&n++}),!(0'),t.append('')})})}})}(jQuery,window.elementorFrontend,window.elementor,window.JetHamburgerPanelSettings);