(()=>{function e(){var e=jQuery(".mysticky-welcomebar-fixed").data("after-triger"),t=jQuery(".mystickyelements-fixed").length,a=jQuery(".mysticky-welcomebar-fixed").data("position"),s=0;if(0!=jQuery("#wpadminbar").length)s=jQuery("#wpadminbar").height();if(jQuery(window).width()<=600&&0!=jQuery(window).scrollTop()&&"top"==a){jQuery(".mysticky-welcomebar-fixed").css("top","0px");var o=jQuery(".mysticky-welcomebar-fixed").outerHeight();"none"===jQuery(".mysticky-welcomebar-fixed").css("display")&&(o=0),jQuery("#mysticky-nav").css("top",o+"px")}else if("top"==a){var i=s+jQuery(".mysticky-welcomebar-fixed").outerHeight();"none"===jQuery(".mysticky-welcomebar-fixed").css("display")&&(i=s+0),jQuery(".mysticky-welcomebar-fixed").css("top",s+0+"px"),jQuery("#mysticky-nav").css("top",i+"px")}if(t){o=jQuery(".mysticky-welcomebar-fixed").outerHeight();var c=jQuery(".mystickyelements-fixed").height(),r=o+c;if(jQuery(window).width()<=1024&&jQuery(".mystickyelements-fixed").hasClass("mystickyelements-position-mobile-top"))if("after_a_few_seconds"==e){if(jQuery(".mysticky-welcomebar-fixed").hasClass("mysticky-welcomebar-display-mobile")){var m=1e3*jQuery(".mysticky-welcomebar-fixed").data("triger-sec");setTimeout(function(){"top"==a?(jQuery(".mystickyelements-fixed").css("top",o),$("html").animate({"margin-top":r+"px"},1e3,function(){$("html").css("cssText","margin-top:"+r+"px!important;")})):(jQuery(".mystickyelements-fixed").css("top",""),jQuery("html").attr("style","margin-bottom: "+o+"px !important"))},m)}}else if("after_scroll"===e){100*$(window).scrollTop()/($(document).height()-$(window).height())>$(".mysticky-welcomebar-fixed").data("triger-sec")&&jQuery(".mysticky-welcomebar-fixed").hasClass("mysticky-welcomebar-display-mobile")&&("top"==a?(jQuery(".mystickyelements-fixed").css("top",o),$("html").animate({"margin-top":r+"px"},1e3,function(){$("html").css("cssText","margin-top:"+r+"px!important;")})):(jQuery(".mystickyelements-fixed").css("top",""),jQuery("html").attr("style","margin-bottom: "+o+"px !important")))}}}jQuery(document).ready(function(t){var a=0;if(0!=t("#wpadminbar").length)a=t("#wpadminbar").height();var s=a+jQuery(".mysticky-welcomebar-fixed").outerHeight();"top"==jQuery(".mysticky-welcomebar-fixed").data("position")?jQuery(".mysticky-welcomebar-entry-effect-slide-in.mysticky-welcomebar-fixed").css("top","-"+s+"px"):jQuery(".mysticky-welcomebar-entry-effect-slide-in.mysticky-welcomebar-fixed").css("bottom","-"+s+"px");var o=t(".et_fixed_nav #top-header").outerHeight(),i=s+o,c=t(".mysticky-welcomebar-fixed").data("aftersubmission");if("dont_show_welcomebar"==c)var r=localStorage.getItem("welcomebar_close");else if("show_welcomebar_next_visit"==c)r=sessionStorage.getItem("welcomebar_close");else{sessionStorage.removeItem("welcomebar_close"),localStorage.removeItem("welcomebar_close");r=null}if(null===r){var m=jQuery(".mysticky-welcomebar-fixed").data("after-triger");if(jQuery("body").addClass("mysticky-welcomebar-apper"),"after_a_few_seconds"==m&&t(".mysticky-welcomebar-fixed").hasClass("mysticky-welcomebar-display-desktop")&&t(window).width()>767){var y=1e3*jQuery(".mysticky-welcomebar-fixed").data("triger-sec"),l=t(".mysticky-welcomebar-fixed").data("position"),n=t(".mysticky-welcomebar-fixed").outerHeight();setTimeout(function(){jQuery(".mysticky-welcomebar-fixed").addClass("mysticky-welcomebar-animation"),t(".mysticky-welcomebar-fixed").addClass("entry-effect"),"top"==l?(jQuery(".mysticky-welcomebar-fixed").addClass("mysticky-welcomebar-animation"),jQuery(".mysticky-welcomebar-fixed").css("top",a+0+"px"),jQuery(".mysticky-welcomebar-fixed").css("opacity","1"),t("html").css("margin-bottom",""),jQuery("#mysticky_divi_style").remove(),jQuery(".et_fixed_nav #top-header").css("top",n+"px"),jQuery("head").append('<style id="mysticky_divi_style" type="text/css">.et_fixed_nav #main-header {top: '+n+"px !important}.et_fixed_nav #top-header + #main-header{top: "+i+"px !important}</style>"),t("html").animate({"margin-top":s+"px"},1e3,function(){t("html").css("cssText","margin-top:"+s+"px!important;")}),t("#mysticky-nav").css("top",s+"px")):(jQuery(".mysticky-welcomebar-fixed").css("bottom","0"),jQuery(".mysticky-welcomebar-fixed").css("opacity","1"),t("html").css("margin-top",""),jQuery("#mysticky_divi_style").remove(),jQuery(".et_fixed_nav #top-header").css("top",""),t("html").attr("style","margin-bottom: "+s+"px !important"))},y)}if(t(window).width()<767&&"after_a_few_seconds"==m&&t(".mysticky-welcomebar-fixed").hasClass("mysticky-welcomebar-display-mobile")){y=1e3*jQuery(".mysticky-welcomebar-fixed").data("triger-sec"),l=t(".mysticky-welcomebar-fixed").data("position"),n=t(".mysticky-welcomebar-fixed").outerHeight();setTimeout(function(){jQuery(".mysticky-welcomebar-fixed").addClass("mysticky-welcomebar-animation"),t(".mysticky-welcomebar-fixed").addClass("entry-effect"),jQuery("#mysticky_divi_style").remove(),jQuery(".et_fixed_nav #top-header").css("top",""),"top"==l?(jQuery(".mysticky-welcomebar-fixed").css("top",a+0+"px"),jQuery(".mysticky-welcomebar-fixed").css("opacity","1"),t("html").css("margin-bottom",""),t("html").animate({"margin-top":s+"px"},1e3,function(){t("html").css("cssText","margin-top:"+s+"px!important;")}),t("#mysticky-nav").css("top",s+"px")):(jQuery(".mysticky-welcomebar-fixed").css("bottom","0"),jQuery(".mysticky-welcomebar-fixed").css("opacity","1"),t("html").css("margin-top",""),t("html").attr("style","margin-bottom: "+s+"px !important"))},y)}e()}t(window).resize(function(){var s=jQuery(".mysticky-welcomebar-fixed").outerHeight();if("dont_show_welcomebar"==c)var o=localStorage.getItem("welcomebar_close");else if("show_welcomebar_next_visit"==c)o=sessionStorage.getItem("welcomebar_close");else{sessionStorage.removeItem("welcomebar_close"),localStorage.removeItem("welcomebar_close");o=null}if(null===o){var r=jQuery(".mysticky-welcomebar-fixed").data("after-triger");if(t(".mysticky-welcomebar-fixed").hasClass("mysticky-welcomebar-notapper")?jQuery("body").removeClass("mysticky-welcomebar-apper"):jQuery("body").addClass("mysticky-welcomebar-apper"),"after_a_few_seconds"==r){var m=1e3*jQuery(".mysticky-welcomebar-fixed").data("triger-sec"),y=t(".mysticky-welcomebar-fixed").data("position"),l=t(".mysticky-welcomebar-fixed").outerHeight();t(window).width()<767?t(".mysticky-welcomebar-fixed").hasClass("mysticky-welcomebar-display-mobile")&&setTimeout(function(){jQuery(".mysticky-welcomebar-fixed").addClass("mysticky-welcomebar-animation"),t(".mysticky-welcomebar-fixed").addClass("entry-effect"),jQuery("#mysticky_divi_style").remove(),jQuery(".et_fixed_nav #top-header").css("top",""),"top"==y?(jQuery(".mysticky-welcomebar-fixed").css("top",a+0+"px"),jQuery(".mysticky-welcomebar-fixed").css("opacity","1"),t("html").css("margin-bottom",""),t("html").animate({"margin-top":s+"px"},1e3,function(){t("html").css("cssText","margin-top:"+s+"px!important;")}),t(".mysticky-welcomebar-apper #mysticky-nav").css("top",s+"px")):(jQuery(".mysticky-welcomebar-fixed").css("bottom","0"),jQuery(".mysticky-welcomebar-fixed").css("opacity","1"),t("html").css("margin-top",""),t("html").attr("style","margin-bottom: "+s+"px !important"))},m):t(".mysticky-welcomebar-fixed").hasClass("mysticky-welcomebar-display-desktop")&&setTimeout(function(){jQuery(".mysticky-welcomebar-fixed").addClass("mysticky-welcomebar-animation"),t(".mysticky-welcomebar-fixed").addClass("entry-effect"),"top"==y?(jQuery(".mysticky-welcomebar-fixed").css("top",a+0+"px"),jQuery(".mysticky-welcomebar-fixed").css("opacity","1"),t("html").css("margin-bottom",""),jQuery("#mysticky_divi_style").remove(),jQuery(".mysticky-welcomebar-apper.et_fixed_nav #top-header").css("top",l+"px"),jQuery("head").append('<style id="mysticky_divi_style" type="text/css">.mysticky-welcomebar-apper.et_fixed_nav #main-header {top: '+l+"px !important}.mysticky-welcomebar-apper.et_fixed_nav #top-header + #main-header{top: "+i+"px !important}</style>"),t("html").animate({"margin-top":s+"px"},1e3,function(){t("html").css("cssText","margin-top:"+s+"px!important;")}),t(".mysticky-welcomebar-apper #mysticky-nav").css("top",s+"px")):(jQuery(".mysticky-welcomebar-fixed").css("bottom","0"),jQuery(".mysticky-welcomebar-fixed").css("opacity","1"),t("html").css("margin-top",""),jQuery("#mysticky_divi_style").remove(),jQuery(".et_fixed_nav #top-header").css("top",""),t("html").attr("style","margin-bottom: "+s+"px !important"))},m)}e()}}),jQuery(window).on("scroll",function(){if("dont_show_welcomebar"==c)var o=localStorage.getItem("welcomebar_close");else if("show_welcomebar_next_visit"==c)o=sessionStorage.getItem("welcomebar_close");else{sessionStorage.removeItem("welcomebar_close"),localStorage.removeItem("welcomebar_close");o=null}if(null===o){t(".mysticky-welcomebar-fixed").outerHeight();if("top"==(y=t(".mysticky-welcomebar-fixed").data("position"))&&t("#mysticky-nav").css("top",s+"px"),"after_scroll"===m){var i=100*t(window).scrollTop()/(t(document).height()-t(window).height()),r=jQuery(".mysticky-welcomebar-fixed").data("triger-sec"),y=t(".mysticky-welcomebar-fixed").data("position");t(".mysticky-welcomebar-fixed").outerHeight();i>r&&(t(".mysticky-welcomebar-fixed").hasClass("mysticky-welcomebar-display-desktop")&&t(window).width()>767&&(jQuery(".mysticky-welcomebar-fixed").addClass("mysticky-welcomebar-animation"),t(".mysticky-welcomebar-fixed").addClass("entry-effect"),"top"==y?(jQuery(".mysticky-welcomebar-fixed").css("top",a+0+"px"),jQuery(".mysticky-welcomebar-fixed").css("opacity","1"),t("html").css("margin-bottom",""),t("html").animate({"margin-top":s+"px"},1e3,function(){t("html").css("cssText","margin-top:"+s+"px!important;")}),t("#mysticky-nav").css("top",s+"px")):(jQuery(".mysticky-welcomebar-fixed").css("bottom","0"),jQuery(".mysticky-welcomebar-fixed").css("opacity","1"),t("html").css("margin-top",""),t("html").attr("style","margin-bottom: "+s+"px !important"))),t(".mysticky-welcomebar-fixed").hasClass("mysticky-welcomebar-display-mobile")&&t(window).width()<767&&(jQuery(".mysticky-welcomebar-fixed").addClass("mysticky-welcomebar-animation"),t(".mysticky-welcomebar-fixed").addClass("entry-effect"),"top"==y?(jQuery(".mysticky-welcomebar-fixed").css("top",a+0+"px"),jQuery(".mysticky-welcomebar-fixed").css("opacity","1"),t("html").css("margin-bottom",""),t("html").animate({"margin-top":s+"px"},1e3,function(){t("html").css("cssText","margin-top:"+s+"px!important;")}),t("#mysticky-nav").css("top",s+"px")):(jQuery(".mysticky-welcomebar-fixed").css("bottom","0"),jQuery(".mysticky-welcomebar-fixed").css("opacity","1"),t("html").css("margin-top",""),t("html").attr("style","margin-bottom: "+s+"px !important"))))}e()}}),jQuery(".mysticky-welcomebar-close, .mysticky-welcomebar-btn a").on("click",function(e){""==t(this).attr("href")&&e.preventDefault();var a,o,i=!0,r=100;if(jQuery(".mysticky-welcomebar-lead-content").length>0&&!t(this).hasClass("mysticky-welcomebar-close")){if(""==jQuery("#contact-lead-name-0").val()||""==jQuery("#contact-lead-phone-0").val()&&""==jQuery("#contact-lead-email-0").val())return localStorage.removeItem("welcomebar_close_0"),sessionStorage.removeItem("welcomebar_close_0"),t(".input-error").length&&t(".input-error").remove(),"none"!=jQuery("#contact-lead-name-0").css("display")&&""==jQuery("#contact-lead-name-0").val()&&"none"!=jQuery("#contact-lead-email-0").css("display")&&""==jQuery("#contact-lead-email-0").val()?(t('<div class="input-error"><span>Please enter your name and email</span></div>').insertAfter(jQuery("#contact-lead-name-0")),i=!1):"none"!=jQuery("#contact-lead-name-0").css("display")&&""==jQuery("#contact-lead-name-0").val()&&"none"!=jQuery("#contact-lead-phone-0").css("display")&&""==jQuery("#contact-lead-phone-0").val()?(t('<div class="input-error"><span>Please enter your name and phone</span></div>').insertAfter(jQuery("#contact-lead-name-0")),i=!1):"none"!=jQuery("#contact-lead-name-0").css("display")&&""==jQuery("#contact-lead-name-0").val()?(t('<div class="input-error"><span>Please enter your name</span></div>').insertAfter(jQuery("#contact-lead-name-0")),i=!1):"none"!=jQuery("#contact-lead-email-0").css("display")&&""==jQuery("#contact-lead-email-0").val()?(t('<div class="input-error"><span>Please, enter your email</span></div>').insertAfter(jQuery("#contact-lead-email-0")),i=!1):"none"!=jQuery("#contact-lead-phone-0").css("display")&&""==jQuery("#contact-lead-phone-0").val()&&(t('<div class="input-error"><span>Please, enter your phone</span></div>').insertAfter(jQuery("#contact-lead-phone-0")),i=!1),0==i?t(".mysticky-welcomebar-widget-0 .mysticky-welcomebar-fixed-wrap").css("margin-bottom","10px"):t(".mysticky-welcomebar-widget-0 .mysticky-welcomebar-fixed-wrap").css("margin-bottom","0"),!1;if("none"!=jQuery("#contact-lead-email-0").css("display")&&1!=(o=jQuery("#contact-lead-email-0").val(),!!/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(o))&&(t(".input-error").length&&t(".input-error").remove(),t('<div class="input-error"><span>Please, enter valid email</span></div>').insertAfter(jQuery("#contact-lead-email-0")),i=!1),"none"!=jQuery("#contact-lead-phone-0").css("display")&&1!=(a=jQuery("#contact-lead-phone-0").val(),!!/^((\+[1-9]{1,4}[ \-]*)|(\([0-9]{2,3}\)[ \-]*)|([0-9]{2,4})[ \-]*)*?[0-9]{3,4}?[ \-]*[0-9]{3,4}?$/.test(a))&&(t(".input-error").length&&t(".input-error").remove(),t('<div class="input-error"><span>Please, enter valid phone</span></div>').insertAfter(jQuery("#contact-lead-phone-0")),i=!1),1!=i)return t(".mysticky-welcomebar-widget-0 .mysticky-welcomebar-fixed-wrap").css("margin-bottom","10px"),!1;var m=[];m.contact_name=jQuery("#contact-lead-name-0").val(),m.contact_email=jQuery("#contact-lead-email-0").val(),m.contact_phone=jQuery("#contact-lead-phone-0").val(),m.contact_page_link=jQuery("#contact-lead-pagelink-0").val(),1==t(".mysticky-welcomebar-fixed").data("show-success-message")&&(t(".mysticky-welcomebar-fixed .mysticky-welcomebar-lead-content").hide(),t(".mysticky-welcomebar-fixed .mysticky-welcomebar-content p").hide(),t(".mysticky-welcomebar-fixed .mysticky-welcomebar-btn.contact-lead-button").hide(),t(".mysticky-welcomebar-fixed .mysticky-welcomebar-thankyou-content").show(),t(".mysticky-welcomebar-fixed .mysticky-welcomebar-thankyou-content p").show());r=2e3;jQuery.ajax({url:welcomebar_frontjs.ajaxurl,type:"post",data:"contact_name="+m.contact_name+"&contact_email="+m.contact_email+"&contact_phone="+m.contact_phone+"&action=stickymenu_contact_lead_form&widget_id=0&page_link="+m.contact_page_link+"&save_form_lead=1&wpnonce="+welcomebar_frontjs.ajax_nonce,success:function(e){t(".mysticky-welcomebar-widget-0 .mysticky-welcomebar-fixed-wrap").css("margin-bottom","0"),jQuery("#contact-lead-name-0").val(""),jQuery("#contact-lead-email-0").val(""),jQuery("#contact-lead-phone-0").val("")}})}else t(this).hasClass("mysticky-welcomebar-close")&&localStorage.setItem("is_close_trigger_0","yes");setTimeout(function(){"show_welcomebar_every_page"!=c&&("dont_show_welcomebar"==c?(sessionStorage.removeItem("welcomebar_close"),localStorage.setItem("welcomebar_close","close")):"show_welcomebar_next_visit"==c&&(localStorage.removeItem("welcomebar_close"),sessionStorage.setItem("welcomebar_close","close")));var e=t(".mysticky-welcomebar-fixed").data("position");t(".mysticky-welcomebar-fixed").outerHeight();if(jQuery(".mysticky-welcomebar-fixed").addClass("mysticky-welcomebar-notapper"),jQuery("body").removeClass("mysticky-welcomebar-apper"),jQuery(".mysticky-welcomebar-fixed").slideUp("slow"),"top"==e?jQuery(".mysticky-welcomebar-fixed").css("top","-"+s+"px"):jQuery(".mysticky-welcomebar-fixed").css("bottom","-"+s+"px"),jQuery("#mysticky_divi_style").remove(),jQuery(".et_fixed_nav #top-header").css("top",""),jQuery("html").css("margin-top",""),jQuery("html").css("margin-bottom",""),t("#mysticky-nav").css("top","0px"),t(".mystickyelements-fixed").length&&t(window).width()<=1024&&t(".mystickyelements-fixed").hasClass("mystickyelements-position-mobile-top")&&"top"==e){var a=t(".mystickyelements-fixed").height();t(".mystickyelements-fixed").css("top",""),t("html").animate({"margin-top":a+"px"},1e3,function(){t("html").css("cssText","margin-top:"+a+"px!important;")})}},r),jQuery("#contact-lead-name-0").val(""),jQuery("#contact-lead-email-0").val(""),jQuery("#contact-lead-phone-0").val("")}),t(".mysticky-welcomebar-close").on("keydown",function(e){"13"==e.keyCode&&t(this).trigger("click")})})})();