jQuery(document).ready(function(r){function n(t){var e=r(t);e.prop("disabled")||e.closest(".form-group").addClass("is-focused")}function e(t){var o=!1;(t.is(r.material.options.checkboxElements)||t.is(r.material.options.radioElements))&&(o=!0),t.closest("label").hover(function(){var t,e,a=r(this).find("input"),i=a.prop("disabled");o&&(t=r(this),e=i,(t.hasClass("checkbox-inline")||t.hasClass("radio-inline")?t:t.closest(".checkbox").length?t.closest(".checkbox"):t.closest(".radio")).toggleClass("disabled",e)),i||n(a)},function(){a(r(this).find("input"))})}function a(t){r(t).closest(".form-group").removeClass("is-focused")}r.expr[":"].notmdproc=function(t){return!r(t).data("mdproc")},r.material={options:{validate:!0,input:!0,ripples:!0,checkbox:!0,togglebutton:!0,radio:!0,arrive:!0,autofill:!1,withRipples:[".btn:not(.btn-link)",".card-image",".navbar a:not(.withoutripple)",".dropdown-menu a",".nav-tabs a:not(.withoutripple)",".withripple",".pagination li:not(.active):not(.disabled) a:not(.withoutripple)"].join(","),inputElements:"input.form-control, textarea.form-control, select.form-control",checkboxElements:".checkbox > label > input[type=checkbox], label.checkbox-inline > input[type=checkbox]",togglebuttonElements:".togglebutton > label > input[type=checkbox]",radioElements:".radio > label > input[type=radio], label.radio-inline > input[type=radio]"},checkbox:function(t){e(r(t||this.options.checkboxElements).filter(":notmdproc").data("mdproc",!0).after(''))},togglebutton:function(t){e(r(t||this.options.togglebuttonElements).filter(":notmdproc").data("mdproc",!0).after(''))},radio:function(t){e(r(t||this.options.radioElements).filter(":notmdproc").data("mdproc",!0).after(''))},input:function(t){r(t||this.options.inputElements).filter(":notmdproc").data("mdproc",!0).each(function(){var a=r(this),i=a.closest(".form-group");if(0!==i.length||"hidden"===a.attr("type")||a.attr("hidden")||a.parents(".pirate_forms").length||(a.wrap('
'),i=a.closest(".form-group")),0===i.length&&"hidden"!==a.attr("type")&&!a.attr("hidden")&&a.parents(".pirate_forms").length){var t=a.prev();"checkbox"===a.attr("type")&&(t=a.next()),a.add(t).wrapAll(''),i=a.closest(".form-group")}a.attr("data-hint")&&(a.after(''+a.attr("data-hint")+"
"),a.removeAttr("data-hint"));if(r.each({"input-lg":"form-group-lg","input-sm":"form-group-sm"},function(t,e){a.hasClass(t)&&(a.removeClass(t),i.addClass(e))}),a.hasClass("floating-label")){var e=a.attr("placeholder");a.attr("placeholder",null).removeClass("floating-label");var o=a.attr("id"),n="";o&&(n='for="'+o+'"'),i.addClass("label-floating"),a.after("")}null!==a.val()&&"undefined"!==a.val()&&""!==a.val()||i.addClass("is-empty"),0 '+e+" ").insertBefore(t)}},l.hestia={init:function(){this.navSearch(),this.getPortfolioModalData(),this.fixHeaderPadding(),this.headerSpacingFrontpage(),this.initCarousel(),this.initCarouselSwipe(),this.scrollToTop(),this.detectIos(),this.parallaxHeader(),this.addViewCart(),this.setSearchSizeInput(),this.setControlLabel(),this.styleDefaultSubscribeWidget(),this.fixElementorTemplates(),this.handleGutenbergAlignment()},fixElementorTemplates:function(){if(l(".elementor").length<=0)return!1;var t=l(".navbar").outerHeight();return l(".elementor-template-full-width header").css("margin-bottom",t),l(".page-template-template-fullwidth .main.classic-blog").css("margin-top",t),!1},navSearch:function(){l(".hestia-toggle-search").on("click",function(){var t=l(".nav-searching");l(".navbar").toggleClass("nav-searching"),t.find(".hestia-nav-search").addClass("is-focused"),t.find(".hestia-nav-search").find(".search-field").focus(),l(this).find("i").fadeOut(200,function(){l(this).toggleClass("fa-search"),l(this).toggleClass("fa-times")}).fadeIn(200)})},getPortfolioModalData:function(){l("#portfolio").find('a[data-toggle="modal"]').on("click",function(t){t.preventDefault();var e=l(this).data("pid");l.ajax({url:requestpost.ajaxurl,type:"post",data:{action:"hestia_get_portfolio_item_data",pid:e},success:function(t){var e=l(".hestia-portfolio-modal");e.find(".modal-content").html(t),e.on("hidden.bs.modal",function(){l(this).find(".modal-content").html('
')})}})})},fixHeaderPadding:function(){var t=l(".navbar-fixed-top").outerHeight(),e=window.matchMedia("(max-width: 600px)");if(l("#wpadminbar").length&&e.matches?(l(".wrapper.classic-blog").find(".main").css("margin-top",t-46),l(".carousel .item .container").css("padding-top",t+50-46),l(".home.page.page-template-default .navbar").hasClass("no-slider")&&l(".home.page.page-template-default .main").css("margin-top",t-46)):(l(".wrapper.classic-blog").find(".main").css("margin-top",t),l(".carousel .item .container").css("padding-top",t+50),l(".home.page.page-template-default .navbar").hasClass("no-slider")&&l(".home.page.page-template-default .main").css("margin-top",t)),768 div[id^=product].product").css("margin-top",-o)}else l(".page-header.header-small .container , .woocommerce.single-product .blog-post .col-md-12 > div[id^=product].product").removeAttr("style");l(".no-content").length&&l(".page-header.header-small").css("min-height",t+230)},headerSpacingFrontpage:function(){if((!this.inIframe()||!this.isMobileUA())&&0')})},setSearchSizeInput:function(){0'),t.find("p.sib-NAME-area").before(''),t.find(".form-group").each(function(){l(this).addClass("is-empty")})},handleGutenbergAlignment:function(){var t=l("body");if(t.hasClass("page-template-template-pagebuilder-full-width")||t.hasClass("page-template-template-pagebuilder-blank"))return!1;var e=l(".alignfull"),a=l(".alignwide");if(!e.length&&!a.length)return!1;var i=l(".main").innerWidth(),o=l(".blog-post > .container > article > .row > div").innerWidth(),n=0,r=0;!this.isMobile()&&l("#secondary").length||(n=(i-o)/2+15,r=(i-o)/5),e.length&&l(e).each(function(t,e){l(e).css({"margin-left":"-"+n+"px","margin-right":"-"+n+"px"})}),a.length&&l(a).each(function(t,e){l(e).css({"margin-left":"-"+r+"px","margin-right":"-"+r+"px"})})},isMobile:function(){return window.innerWidth<=991}},l.navigation={init:function(){this.toggleNavbarTransparency(),this.handleResponsiveDropdowns(),this.handleTouchDropdowns(),this.repositionDropdowns(),this.smoothScroll(),this.activeParentLink(),this.highlightMenu(),this.setBodyOverflow()},handleTouchDropdowns:function(){if(window.innerWidth<991)return!1;var a=this;return l(".caret-wrap").on("touchstart",function(t){t.preventDefault(),t.stopPropagation();var e=l(this).closest("li");l(e).hasClass("dropdown-submenu")&&(l(e).siblings().removeClass("open").find("dropdown-submenu").removeClass("open"),l(e).siblings().find(".caret-open").removeClass("caret-open")),l(this).closest("li").parent().is(".nav")&&a.clearDropdowns(),l(this).toggleClass("caret-open"),l(this).closest(".dropdown").toggleClass("open"),a.createOverlay()}),!1},createOverlay:function(){var t=l(".dropdown-helper-overlay");if(0a?e&&(e=!1,t.removeClass("navbar-transparent"),t.addClass("navbar-not-transparent")):e||(e=!0,t.addClass("navbar-transparent"),t.removeClass("navbar-not-transparent")))},17))}},handleResponsiveDropdowns:function(){if(768 a .caret-wrap").on("click touchend",function(t){var e=l(this);t.preventDefault(),t.stopPropagation(),l(e).toggleClass("caret-open"),l(e).parent().siblings().toggleClass("open")})},smoothScroll:function(){l('.navbar a[href*="#"], a.btn[href*="#"]').click(function(){if("#"===l(this).attr("href"))return!1;if(location.pathname.replace(/^\//,"")===this.pathname.replace(/^\//,"")&&location.hostname===this.hostname){var t=l(this.hash);if((t=t.length?t:l("[name="+this.hash.slice(1)+"]")).length)return l("html,body").animate({scrollTop:t.offset().top-l.utilitiesFunctions.verifyNavHeight()},1200),l(".navbar .navbar-collapse").hasClass("in")&&l(".navbar .navbar-collapse.in").removeClass("in"),l("body").hasClass("menu-open")&&(l("body").removeClass("menu-open"),l(".navbar-collapse").css("height","0"),l(".navbar-toggle").attr("aria-expanded","false")),!1}})},activeParentLink:function(){l(".navbar .dropdown > a").click(function(){return"#"===l(this).attr("href")||(location.href=this.href),!1})},highlightMenu:function(){l(window).on("scroll",function(){if(l("body").hasClass("home")&&751<=l(window).width()){var n=l(window).scrollTop(),r=l(".navbar").outerHeight(),s="no";l("#carousel-hestia-generic, section").each(function(){var t="#"+l(this).attr("id"),e=l(this).offset().top,a=l(this).outerHeight(),i=e-r,o=e+a-r;if(n+l.utilitiesFunctions.verifyNavHeight()>=i&&n+l.utilitiesFunctions.verifyNavHeight()<=o)return s="yes",l("nav .on-section").removeClass("on-section"),l('nav a[href$="'+t+'"]').parent("li").addClass("on-section"),!1;"no"===s&&l("nav .on-section").removeClass("on-section")})}})},setBodyOverflow:function(){var t=l("#main-navigation");t.on("show.bs.collapse",function(){l("body").addClass("menu-open")}),t.on("hidden.bs.collapse",function(){l("body").removeClass("menu-open")})},repositionDropdowns:function(){var n=window.innerWidth;if(n<=768)return!1;var t=l(".dropdown-menu");return 0===t.length||l.each(t,function(t,e){var a=l(e),i=a.offset().left;/webkit.*mobile/i.test(navigator.userAgent)&&(i-=window.scrollX);var o=a.outerWidth();n<=i+o&&l(e).css("left","-100%")}),!1}};var e=0;l.hestiaNavBarScroll={checkNavbarScrollPoint:function(){if(0===l(".navbar-header").length)return!1;if(768<=l.utilitiesFunctions.getWidth()){if(void 0!==l(".navbar-header").offset()){var t=l(".navbar-header").offset().top;/webkit.*mobile/i.test(navigator.userAgent)&&(t-=window.scrollY),e=t+l(".navbar-header").height()}0===l(".hestia_left.header-with-topbar").length&&0===l(".full-screen-menu.header-with-topbar").length||(e=40)}else e=0!==l(".header-with-topbar").length?40:0},addScrollClass:function(){l(window).on("scroll",function(){l(document).scrollTop()>=e?l(".navbar").addClass("navbar-scroll-point"):l(".navbar").removeClass("navbar-scroll-point")})}}}(jQuery),jQuery(document).ready(function(){jQuery.material.init(),jQuery.hestia.init(),jQuery.navigation.init(),jQuery.hestiaFeatures.initAnimations(),jQuery.hestiaFeatures.initTooltips(),jQuery.hestiaNavBarScroll.checkNavbarScrollPoint(),jQuery.hestiaNavBarScroll.addScrollClass()}),jQuery(window).load(function(){jQuery.hestiaFeatures.initMasonry(),jQuery.hestia.sidebarToggle()}),jQuery(window).resize(function(){jQuery.hestiaFeatures.initMasonry(),jQuery.hestia.fixHeaderPadding(),jQuery.hestia.headerSpacingFrontpage(),jQuery.hestia.handleGutenbergAlignment(),jQuery.hestiaNavBarScroll.checkNavbarScrollPoint(),jQuery.navigation.repositionDropdowns()});