!function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,"function"==typeof document.createElement("div").style.setExpression&&document.createElement("div").style.setExpression);e.blockUI=function(e){d(window,e)},e.unblockUI=function(e){a(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.on("mouseover",function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).on("mouseout",function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,d(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){a(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var s=null,l=[];function d(d,c){var u,b,h=d==window,k=c&&c.message!==undefined?c.message:undefined;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(d).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),b=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),k=k===undefined?c.message:k,h&&s&&a(window,{fadeOut:0}),k&&"string"!=typeof k&&(k.parentNode||k.jquery)){var y=k.jquery?k[0]:k,m={};e(d).data("blockUI.history",m),m.el=y,m.parent=y.parentNode,m.display=y.style.display,m.position=y.style.position,m.parent&&m.parent.removeChild(y)}e(d).data("blockUI.onUnblock",c.onUnblock);var g,v,I,w,U=c.baseZ;g=o||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),v=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+U+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&h?(w='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:fixed">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):c.theme?(w='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:absolute">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):w=h?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(U+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(U+10)+';display:none;position:absolute"></div>',I=e(w),k&&(c.theme?(I.css(b),I.addClass("ui-widget-content")):I.css(u)),c.theme||v.css(c.overlayCSS),v.css("position",h?"fixed":"absolute"),(o||c.forceIframe)&&g.css("opacity",0);var x=[g,v,I],C=e(h?"body":d);e.each(x,function(){this.appendTo(C)}),c.theme&&c.draggable&&e.fn.draggable&&I.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var S=i&&(!e.support.boxModel||e("object,embed",h?null:d).length>0);if(n||S){if(h&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!h)var E=p(d,"borderTopWidth"),O=p(d,"borderLeftWidth"),T=E?"(0 - "+E+")":0,M=O?"(0 - "+O+")":0;e.each(x,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)h?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),h?o.setExpression("width",'jQuery.support.boxModel&&document.documentElement.clientWidth||document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),M&&o.setExpression("left",M),T&&o.setExpression("top",T);else if(c.centerY)h&&o.setExpression("top",'(document.documentElement.clientHeight||document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah=document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&h){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(k&&(c.theme?I.find(".ui-widget-content").append(k):I.append(k),(k.jquery||k.nodeType)&&e(k).show()),(o||c.forceIframe)&&c.showOverlay&&g.show(),c.fadeIn){var B=c.onBlock?c.onBlock:t,j=c.showOverlay&&!k?B:t,H=k?B:t;c.showOverlay&&v._fadeIn(c.fadeIn,j),k&&I._fadeIn(c.fadeIn,H)}else c.showOverlay&&v.show(),k&&I.show(),c.onBlock&&c.onBlock.bind(I)();if(r(1,d,c),h?(s=I[0],l=e(c.focusableElements,s),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0");o&&(i.top=l>0?l+"px":"0")}(I[0],c.centerX,c.centerY),c.timeout){var z=setTimeout(function(){h?e.unblockUI(c):e(d).unblock(c)},c.timeout);e(d).data("blockUI.timeout",z)}}}function a(t,o){var n,i,d=t==window,a=e(t),u=a.data("blockUI.history"),f=a.data("blockUI.timeout");f&&(clearTimeout(f),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),r(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock")),i=d?e(document.body).children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),d&&(s=l=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,u,o,t)})):c(i,u,o,t)}function c(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function r(t,o,n){var i=o==window,l=e(o);if((t||(!i||s)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).on(d,n,u):e(document).off(d,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&s&&t.data.constrainTabKey){var o=l,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var d=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&d.onOverlayClick&&d.onOverlayClick(t),a.parents("div."+d.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function f(e){if(l){var t=l[!0===e?l.length-1:0];t&&t.trigger("focus")}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(f){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})});
function on_keydown_remove_from_cart(e){" "===e.key&&(e.preventDefault(),e.currentTarget.click())}function focus_populate_live_region(){var e=["woocommerce-message","woocommerce-error","wc-block-components-notice-banner"].map(function(e){return"."+e+'[role="alert"]'}).join(", "),o=document.querySelectorAll(e);if(0!==o.length){var t=o[0];t.setAttribute("tabindex","-1");var n=setTimeout(function(){t.focus(),clearTimeout(n)},500)}}function refresh_sorted_by_live_region(){var e=document.querySelector(".woocommerce-result-count"),o=document.querySelector('[data-wp-interactive="woocommerce/product-filters"]');if(e&&window.location.search&&!o){var t=e.innerHTML;e.setAttribute("role","alert"),e.setAttribute("aria-hidden","true");var n=setTimeout(function(){e.setAttribute("aria-hidden","false"),e.innerHTML="",e.innerHTML=t,clearTimeout(n)},2e3)}}function on_document_ready(){focus_populate_live_region(),refresh_sorted_by_live_region()}jQuery(function(e){e(".woocommerce-ordering").on("change","select.orderby",function(){e(this).closest("form").trigger("submit")}),e("input.qty:not(.product-quantity input.qty)").each(function(){var o=parseFloat(e(this).attr("min"));o>=0&&parseFloat(e(this).val())<o&&e(this).val(o)});var o="store_notice"+(e(".woocommerce-store-notice").data("noticeId")||"");if("hidden"===Cookies.get(o))e(".woocommerce-store-notice").hide();else{function t(o){["Enter"," "].includes(o.key)&&(o.preventDefault(),e(".woocommerce-store-notice__dismiss-link").click())}e(".woocommerce-store-notice").show(),e(".woocommerce-store-notice__dismiss-link").on("click",function n(r){Cookies.set(o,"hidden",{path:"/"}),e(".woocommerce-store-notice").hide(),r.preventDefault(),e(".woocommerce-store-notice__dismiss-link").off("click",n).off("keydown",t)}).on("keydown",t)}e(".woocommerce-input-wrapper span.description").length&&e(document.body).on("click",function(){e(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),e(".woocommerce-input-wrapper").on("click",function(e){e.stopPropagation()}),e(".woocommerce-input-wrapper :input").on("keydown",function(o){var t=e(this).parent().find("span.description");if(27===o.which&&t.length&&t.is(":visible"))return t.prop("aria-hidden",!0).slideUp(250),o.preventDefault(),!1}).on("click focus",function(){var o=e(this).parent(),t=o.find("span.description");o.addClass("currentTarget"),e(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),t.length&&t.is(":hidden")&&t.prop("aria-hidden",!1).slideDown(250),o.removeClass("currentTarget")}),e.scroll_to_notices=function(o){o.length&&e("html, body").animate({scrollTop:o.offset().top-100},1e3)},e('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>'),e(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),e(".password-input").each(function(){const o=e(this).find("input").attr("id");e(this).append('<button type="button" class="show-password-input" aria-label="'+woocommerce_params.i18n_password_show+'" aria-describedBy="'+o+'"></button>')}),e(".show-password-input").on("click",function(o){o.preventDefault(),e(this).hasClass("display-password")?(e(this).removeClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_show)):(e(this).addClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_hide)),e(this).hasClass("display-password")?e(this).siblings(['input[type="password"]']).prop("type","text"):e(this).siblings('input[type="text"]').prop("type","password"),e(this).siblings("input").focus()}),e("a.coming-soon-footer-banner-dismiss").on("click",function(o){var t=e(o.target);e.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){e("#coming-soon-footer-banner").hide()}})}),"undefined"==typeof wc_add_to_cart_params&&e(document.body).on("keydown",".remove_from_cart_button",on_keydown_remove_from_cart),e(document.body).on("item_removed_from_classic_cart updated_wc_div",focus_populate_live_region)}),document.addEventListener("DOMContentLoaded",on_document_ready);
var $j=jQuery.noConflict();
$j(document).ready(function (){
"use strict";
sheHeader();
$j(window).on('resize', function (e){
sheHeader(e);
});
});
function sheHeader(e){
var header=$j('.elementor-element.she-header-yes'),
container=$j('.she-header-yes .elementor-container, .elementor-element.she-header-yes.e-con'),
header_elementor=$j('.elementor-edit-mode .she-header-yes'),
header_logo=$j('.she-header-yes .elementor-widget-theme-site-logo img:not(.elementor-widget-n-menu img), .she-header-yes .elementor-widget-image img:not(.elementor-widget-n-menu img)'),
header_logo_div=$j('.she-header-yes .elementor-widget-theme-site-logo a::after, .she-header-yes .elementor-widget-image a::after');
data_settings=header.data('settings');
if(typeof data_settings!='undefined'){
var responsive_settings=data_settings["transparent_on"];
var width=$j(window).width(),
header_height=header.height(),
logo_width=header_logo.width(),
logo_height=header_logo.height();
}
if(typeof width!='undefined'&&width){
if(width >=1025){
var enabled="desktop";
}else if(width > 767&&width < 1025){
var enabled="tablet";
}else if(width <=767){
var enabled="mobile";
}}
if($j.inArray(enabled, responsive_settings)!='-1'){
var scroll_distance=data_settings["scroll_distance"];
var she_offset=data_settings["she_offset_top"];
var she_padding=data_settings["she_padding"];
var she_width=data_settings["she_width"];
var transparent_header=data_settings["transparent_header_show"];
var background=data_settings["background"];
var bottom_border_color=data_settings["custom_bottom_border_color"],
bottom_border_view=data_settings["bottom_border"],
bottom_border_width=data_settings["custom_bottom_border_width"];
var shrink_header=data_settings["shrink_header"],
data_height=data_settings["custom_height_header"],
data_height_tablet=data_settings["custom_height_header_tablet"],
data_height_mobile=data_settings["custom_height_header_mobile"];
var shrink_logo=data_settings["shrink_header_logo"],
data_logo_height=data_settings["custom_height_header_logo"],
data_logo_height_tablet=data_settings["custom_height_header_logo_tablet"],
data_logo_height_mobile=data_settings["custom_height_header_logo_mobile"];
var change_logo_color=data_settings["change_logo_color"];
var blur_bg=data_settings["blur_bg"];
var scroll_distance_hide_header=data_settings["scroll_distance_hide_header"];
if(width >=1025){
she_offset=data_settings["she_offset_top"];
she_padding=data_settings["she_padding"];
she_width=data_settings["she_width"];
}else if(width > 767&&width < 1025){
she_offset=data_settings["she_offset_top_tablet"];
she_padding=data_settings["she_padding_tablet"];
she_width=data_settings["she_width_tablet"];
}else if(width <=767){
she_offset=data_settings["she_offset_top_mobile"];
she_padding=data_settings["she_padding_mobile"];
she_width=data_settings["she_width_mobile"];
}
if(header.hasClass("she-header")){
if(e?.type==='resize'){
header.css("width", she_width.size + she_width.unit);
header.css("padding-top", she_padding.top + she_padding.unit);
header.css("padding-bottom", she_padding.bottom + she_padding.unit);
header.css("padding-left", she_padding.left + she_padding.unit);
header.css("padding-right", she_padding.right + she_padding.unit);
}}
if(transparent_header=="yes"){
header.addClass('she-header-transparent-yes');
}
if(typeof data_height!="undefined"&&data_height){
if(width >=1025){
var shrink_height=data_height["size"];
}else if(width > 767&&width < 1025){
var shrink_height=data_height_tablet["size"];
if(shrink_height==""){
shrink_height=data_height["size"];
}}else if(width <=767){
var shrink_height=data_height_mobile["size"];
if(shrink_height==""){
shrink_height=data_height["size"];
}}
}
if(typeof data_logo_height!="undefined" &&
data_logo_height
){
if(width >=1025){
var shrink_logo_height=data_logo_height["size"];
}else if(width > 767&&width < 1025){
var shrink_logo_height =
data_logo_height_tablet["size"];
}else if(width <=767){
var shrink_logo_height =
data_logo_height_mobile["size"];
}
if(shrink_logo_height==""){
shrink_logo_height=data_logo_height["size"];
if(shrink_logo_height==""){
shrink_logo_height=shrink_height;
var percent =
parseInt(shrink_logo_height) /
parseInt(header_height),
width_l=logo_width * percent,
height_l=logo_height * percent;
}else{
var width_l =
(logo_width * shrink_logo_height) / 100,
height_l =
(logo_height * shrink_logo_height) / 100;
}}else{
var width_l=(logo_width * shrink_logo_height) / 100,
height_l=(logo_height * shrink_logo_height) / 100;
}}
if(typeof bottom_border_width!='undefined'&&bottom_border_width){
var bottom_border=bottom_border_width["size"] + "px solid " + bottom_border_color;
}
if(typeof scroll_distance_hide_header!="undefined" &&
scroll_distance_hide_header
){
var mywindow=$j(window),
mypos=mywindow.scrollTop();
mywindow.scroll(function (){
var sd_hh_s=scroll_distance_hide_header["size"],
sd_hh_u=scroll_distance_hide_header["unit"],
sd_hh_tablet =
data_settings[
"scroll_distance_hide_header_tablet"
],
sd_hh_tablet_s=sd_hh_tablet["size"],
sd_hh_tablet_u=sd_hh_tablet["unit"],
sd_hh_mobile =
data_settings[
"scroll_distance_hide_header_mobile"
],
sd_hh_mobile_s=sd_hh_mobile["size"],
sd_hh_mobile_u=sd_hh_mobile["unit"];
if(typeof scroll_distance_hide_header!="undefined" &&
scroll_distance_hide_header
){
if(width >=1025){
var sd_hh=sd_hh_s,
sd_hh_u=sd_hh_u;
if(sd_hh_u=="vh"){
sd_hh=window.innerHeight * (sd_hh / 100);
}}else if(width > 767&&width < 1025){
var sd_hh=sd_hh_tablet_s,
sd_hh_u=sd_hh_tablet_u;
if(sd_hh==""){
sd_hh=sd_hh_s;
}
if(sd_hh_u=="vh"){
sd_hh=window.innerHeight * (sd_hh / 100);
}}else if(width <=767){
var sd_hh=sd_hh_mobile_s,
sd_hh_u=sd_hh_mobile_u;
if(sd_hh==""){
sd_hh=sd_hh_s;
}
if(sd_hh_u=="vh"){
sd_hh=window.innerHeight * (sd_hh / 100);
}}
}
if(mypos > sd_hh){
if(mywindow.scrollTop() > mypos){
header.addClass("headerup");
}else{
header.removeClass("headerup");
}}
mypos=mywindow.scrollTop();
});
}
$j(window).on("load scroll", function (e){
var scroll=$j(window).scrollTop();
if(header_elementor){
header_elementor.css("position", "relative");
}
var sd_s=scroll_distance["size"],
sd_u=scroll_distance["unit"],
sd_tablet=data_settings["scroll_distance_tablet"],
sd_tablet_s=sd_tablet["size"],
sd_tablet_u=sd_tablet["unit"],
sd_mobile=data_settings["scroll_distance_mobile"],
sd_mobile_s=sd_mobile["size"],
sd_mobile_u=sd_mobile["unit"];
if(typeof scroll_distance!="undefined" &&
scroll_distance
){
if(width >=1025){
var sd=sd_s,
sd_u=sd_u;
if(sd_u=="vh"){
sd=window.innerHeight * (sd / 100);
}}else if(width > 767&&width < 1025){
var sd=sd_tablet_s,
sd_u=sd_tablet_u;
if(sd==""){
sd=sd_s;
}
if(sd_u=="vh"){
sd=window.innerHeight * (sd / 100);
}}else if(width <=767){
var sd=sd_mobile_s,
sd_u=sd_mobile_u;
if(sd==""){
sd=sd_s;
}
if(sd_u=="vh"){
sd=window.innerHeight * (sd / 100);
}}
}
if(scroll >=scroll_distance["size"]){
header.removeClass('header').addClass("she-header");
header.css("background-color", background);
header.css("border-bottom", bottom_border);
header.css("top", she_offset.size + she_offset.unit);
if(width >=768){
if(document.body.classList.contains('admin-bar')){
header.css("top", (32 + she_offset.size) + she_offset.unit);
}}
header.css("padding-top", she_padding.top + she_padding.unit);
header.css("padding-bottom", she_padding.bottom + she_padding.unit);
header.css("padding-left", she_padding.left + she_padding.unit);
header.css("padding-right", she_padding.right + she_padding.unit);
header.css("width", she_width.size + she_width.unit);
header.removeClass('she-header-transparent-yes');
if(shrink_header=="yes"){
header.css({ "padding-top": "0", "padding-bottom": "0", "margin-top": "0", "margin-bottom": "0" });
container.css({ "min-height": shrink_height, "transition": "all 0.4s ease-in-out", "-webkit-transition": "all 0.4s ease-in-out", "-moz-transition": "all 0.4s ease-in-out" });
}
if(change_logo_color=="yes"){
header_logo.addClass("change-logo-color");
}
if(shrink_logo=="yes"){
header_logo.css({
width: width_l,
transition: "all 0.4s ease-in-out",
"-webkit-transition": "all 0.4s ease-in-out",
"-moz-transition": "all 0.4s ease-in-out",
});
}}else{
header.removeClass("she-header").addClass('header');
header.css("background-color", "");
header.css("border-bottom", "");
header.css("top", "");
header.css("padding-top", "");
header.css("padding-bottom", "");
header.css("padding-left", "");
header.css("padding-right", "");
header.css("width", "");
if(transparent_header=="yes"){
header.addClass('she-header-transparent-yes');
}
if(shrink_header=="yes"){
header.css({ "padding-top": "", "padding-bottom": "", "margin-top": "", "margin-bottom": "" });
container.css("min-height", "");
}
if(shrink_logo=="yes"){
header_logo.css({ height: "", width: "" });
}
if(change_logo_color=="yes"){
header_logo.removeClass("change-logo-color");
}}
});
}};