function astra_font_size_rem(t,e,o){var s="";return""!=t&&(o=null!=typeof o?o:"desktop",s="font-size: "+t+"px;",e&&((e=wp.customize("astra-settings[font-size-body]").get()).desktop=""!=e.desktop?e.desktop:15,e.tablet=""!=e.tablet?e.tablet:e.desktop,e.mobile=""!=e.mobile?e.mobile:e.tablet,s+="font-size: "+t/e[o]+"rem;")),s}function astra_color_responsive_css(n,a,r,i){wp.customize(a,function(t){t.bind(function(t){var e,o,s;t.desktop||t.mobile||t.tablet?(a=(a=a.replace("[","-")).replace("]",""),jQuery("style#"+a+"-"+n).remove(),(s=o=e="")!=t.desktop&&(e=r+": "+t.desktop),""!=t.tablet&&(o=r+": "+t.tablet),""!=t.mobile&&(s=r+": "+t.mobile),jQuery("head").append('")):jQuery("style#"+a+"-"+n).remove()})})}function astra_responsive_font_size(a,r){wp.customize(a,function(t){t.bind(function(t){var e,o,s,n;t.desktop||t.mobile||t.tablet?(a=(a=a.replace("[","-")).replace("]",""),s=o=e="",n="font-size",jQuery("style#"+a+"-"+n).remove(),""!=t.desktop&&(e="font-size: "+t.desktop+t["desktop-unit"]),""!=t.tablet&&(o="font-size: "+t.tablet+t["tablet-unit"]),""!=t.mobile&&(s="font-size: "+t.mobile+t["mobile-unit"]),"px"==t["desktop-unit"]&&(e=astra_font_size_rem(t.desktop,!0,"desktop")),jQuery("head").append('")):jQuery("style#"+a+"-font-size").remove()})})}function astra_responsive_spacing(i,u,c,l){wp.customize(i,function(t){t.bind(function(o){var s,n,a,t,e="",r="padding";o.desktop.top||o.desktop.right||o.desktop.bottom||o.desktop.left||o.tablet.top||o.tablet.right||o.tablet.bottom||o.tablet.left||o.mobile.top||o.mobile.right||o.mobile.bottom||o.mobile.left?(null!=typeof l&&(e=(e=l+"").replace(/,/g,"-")),null!=typeof c&&(r=c+""),i=(i=i.replace("[","-")).replace("]",""),jQuery("style#"+i+"-"+r+"-"+e).remove(),a=n=s="",t=null!=typeof l?l:["top","bottom","right","left"],jQuery.each(t,function(t,e){""!=o.desktop[e]&&(s+=r+"-"+e+": "+o.desktop[e]+o["desktop-unit"]+";")}),jQuery.each(t,function(t,e){""!=o.tablet[e]&&(n+=r+"-"+e+": "+o.tablet[e]+o["tablet-unit"]+";")}),jQuery.each(t,function(t,e){""!=o.mobile[e]&&(a+=r+"-"+e+": "+o.mobile[e]+o["mobile-unit"]+";")}),jQuery("head").append('")):(wp.customize.preview.send("refresh"),jQuery("style#"+i+"-"+r+"-"+e).remove())})})}function astra_css_font_size(o,s){wp.customize(o,function(t){t.bind(function(t){var e;t?(o=(o=o.replace("[","-")).replace("]",""),jQuery("style#"+o).remove(),e="font-size: "+t,(!isNaN(t)||0<=t.indexOf("px"))&&(e=astra_font_size_rem(t=t.replace("px",""),!0)),jQuery("head").append('")):jQuery("style#"+o).remove()})})}function get_hexdec(t){t=t.toString(16);return parseInt(t,16)}function astra_css(e,o,s,n){wp.customize(e,function(t){t.bind(function(t){e=(e=e.replace("[","-")).replace("]",""),t||0===t?(void 0!==n&&("url"===n?t="url("+t+")":t+=n),jQuery("style#"+e+"-"+o).remove(),jQuery("head").append('"),"unset"===t&&jQuery("style#"+e+"-"+o).remove()):jQuery("style#"+e+"-"+o).remove()})})}function astra_add_dynamic_css(t,e){t=(t=t.replace("[","-")).replace("]",""),jQuery("style#"+t).remove(),jQuery("head").append('")}function astra_background_obj_css(t,e,o,s){var n="",a=e["background-image"],r=e["background-color"];""===r&&""===a?jQuery("style#"+o).remove():(void 0!==e["background-type"]&&""!==e["background-type"]&&("color"===e["background-type"]?""!==a&&""!==r&&void 0!==r&&"unset"!==r?n="background-image: linear-gradient(to right, "+r+", "+r+"), url("+a+");":void 0!==a&&""!==a&&"unset"!==a||(n="background-color: "+r+";"):"image"===e["background-type"]?(""===a||""===r||void 0===r||"unset"===r||r.includes("linear-gradient")||r.includes("radial-gradient")||(n="background-image: linear-gradient(to right, "+r+", "+r+"), url("+a+");"),(void 0===r||""===r||"unset"===r||r.includes("linear-gradient")||r.includes("radial-gradient"))&&""!==a&&(n="background-image: url("+a+");")):"gradient"===e["background-type"]&&""!==r&&"unset"!==r&&(n="background-image: "+r+";")),""!==a&&(n+="background-repeat: "+e["background-repeat"]+";",n+="background-position: "+e["background-position"]+";",n+="background-size: "+e["background-size"]+";",n+="background-attachment: "+e["background-attachment"]+";"),astra_add_dynamic_css(o,s.replace("{{css}}",n)))}function astra_generate_outside_font_family_css(a,r){wp.customize(a,function(t){t.bind(function(t,e){var o="font-family",s="",n=t.split(",")[0];n=n.replace(/'/g,""),a=(a=a.replace("[","-")).replace("]",""),jQuery("style#"+a+"-"+o).remove(),n in astraCustomizer.googleFonts&&(n=n.split(" ").join("+"),jQuery("link#"+a).remove(),s=''),jQuery("head").append('"+s)})})}function astra_generate_font_weight_css(s,n,a,r){wp.customize(n,function(t){t.bind(function(t){n=(n=n.replace("[","-")).replace("]","");var e,o="";t?("undefined"!=typeof unit&&("url"===unit?t="url("+t+")":t+=unit),e=(e=(e=wp.customize._value[s]._value).split(","))[0].replace(/'/g,""),jQuery("style#"+n+"-"+a).remove(),e in astraCustomizer.googleFonts&&(jQuery("#"+s).remove(),o="inherit"===t?'':''),jQuery("head").append('"+o)):jQuery("style#"+n).remove()})})}function astra_apply_responsive_background_css(c,l,d,t,m){wp.customize(c,function(t){t.bind(function(t){var e,o,s,n,a,r,i,u;m=(m=m||"")||"header",c=(c=c.replace("[","-")).replace("]",""),""!==t[d]&&void 0!==t[d]&&(e="",o=t[d]["background-image"],s=t.tablet["background-image"],n=t.desktop["background-image"],a=t[d]["background-color"],r=!!t.tablet["background-image"],i=!!t.desktop["background-image"],void 0!==t[d]["background-type"]&&""!==t[d]["background-type"]&&("color"===t[d]["background-type"]?""!==o&&""!==a&&void 0!==a&&"unset"!==a?e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+o+");":"mobile"===d?i?e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+n+");":r?e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+s+");":(e="background-color: "+a+";",e+="background-image: none;"):"tablet"===d?i?e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+n+");":(e="background-color: "+a+";",e+="background-image: none;"):void 0!==o&&""!==o||(e="background-color: "+a+";",e+="background-image: none;"):"image"===t[d]["background-type"]?(""===o||""===a||void 0===a||"unset"===a||a.includes("linear-gradient")||a.includes("radial-gradient")||(e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+o+");"),(void 0===a||""===a||"unset"===a||a.includes("linear-gradient")||a.includes("radial-gradient"))&&""!==o&&(e="background-image: url("+o+");")):"gradient"===t[d]["background-type"]&&""!==a&&"unset"!==a&&(e="background-image: "+a+";")),""!==o&&(e+="background-repeat: "+t[d]["background-repeat"]+";",e+="background-position: "+t[d]["background-position"]+";",e+="background-size: "+t[d]["background-size"]+";",e+="background-attachment: "+t[d]["background-attachment"]+";"),jQuery("style#"+c+"-"+d+"-"+m).remove(),"desktop"==d&&(u='"),"tablet"==d&&(u='"),"mobile"==d&&(u='"),jQuery("head").append(u))})})}function getChangedKey(t,e){t=isJsonString(t)?JSON.parse(t):t,e=isJsonString(e)?JSON.parse(e):e;for(var o in t){if(!e.hasOwnProperty(o)||!t.hasOwnProperty(o))return o;if(!1===function(t,e){var o=Object.prototype.toString.call(t);if(0<=["[object Array]","[object Object]"].indexOf(o)){if("string"==typeof getChangedKey(t,e))return!1}else{if(o!==Object.prototype.toString.call(e))return!1;if("[object Function]"===o){if(t.toString()!==e.toString())return!1}else if(t!==e)return!1}}(t[o],e[o]))return o}return!0}function isJsonString(t){try{JSON.parse(t)}catch(t){return!1}return!0}function hasWordPressWidgetBlockEditor(){return astraCustomizer.has_block_editor_support||!1}!function(a){wp.customize("astra-settings[ast-header-responsive-logo-width]",function(t){t.bind(function(t){""!=t.desktop||""!=t.tablet||""!=t.mobile?(astra_add_dynamic_css("ast-header-responsive-logo-width","#masthead .site-logo-img .custom-logo-link img { max-width: "+t.desktop+"px; } @media( max-width: 768px ) { #masthead .site-logo-img .custom-logo-link img { max-width: "+t.tablet+"px; } #masthead .site-logo-img img { max-height: "+t.tablet+"px; } } @media( max-width: 544px ) { .ast-header-break-point .site-branding img, .ast-header-break-point #masthead .site-logo-img .custom-logo-link img { max-width: "+t.mobile+"px; }#masthead .site-logo-img img { max-height: "+t.mobile+"px; } .astra-logo-svg{width: "+t.mobile+"px !important; } }"),astra_add_dynamic_css("mobile-header-logo-width",".ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: "+t.tablet+"px; } @media( max-width: 768px ) { .ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: "+t.tablet+"px; } @media( max-width: 544px ) { .ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: "+t.mobile+"px; }")):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[display-site-title-responsive]",function(t){t.bind(function(t){var e=t.desktop?"block":"none",o=t.tablet?"block":"none",t=t.mobile?"block":"none";astra_add_dynamic_css("display-site-title-responsive",".ast-site-title-wrap .site-title { display: "+e+";} @media( max-width: "+(astraBuilderPreview.tablet_break_point||768)+"px) { .ast-site-title-wrap .site-title { display: "+o+";} } @media( max-width: "+(astraBuilderPreview.mobile_break_point||544)+"px) { .ast-site-title-wrap .site-title { display: "+t+";} }")})}),wp.customize("astra-settings[display-site-tagline-responsive]",function(t){t.bind(function(t){var e=t.desktop?"block":"none",o=t.tablet?"block":"none",t=t.mobile?"block":"none";astra_add_dynamic_css("display-site-tagline-responsive",".ast-site-title-wrap .site-description { display: "+e+";} @media( max-width: "+(astraBuilderPreview.tablet_break_point||768)+"px) { .ast-site-title-wrap .site-description { display: "+o+";} } @media( max-width: "+(astraBuilderPreview.mobile_break_point||544)+"px) { .ast-site-title-wrap .site-description { display: "+t+";} }")})}),wp.customize("astra-settings[site-content-width]",function(t){t.bind(function(t){var e="@media (min-width: 554px) {";e+=".ast-container, .fl-builder #content .entry-header { max-width: "+(40+parseInt(t))+"px } ",e+="}",jQuery("body").hasClass("ast-page-builder-template")&&(e+="@media (min-width: 554px) {",e+=".ast-page-builder-template .comments-area { max-width: "+(40+parseInt(t))+"px } ",e+="}"),astra_add_dynamic_css("site-content-width",e)})}),wp.customize("astra-settings[header-main-menu-label]",function(t){t.bind(function(t){var e;0