function astra_font_size_rem(t,e,o){var s="";return""!=t&&(o=void 0!==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,"px"===e[o+"-unit"])&&(s+="font-size: "+t/e[o]+"rem;"),s}function astra_refresh_customizer(t){wp.customize(t,function(t){t.bind(function(t){wp.customize.preview.send("refresh")})})}function astra_color_responsive_css(a,n,r,i){wp.customize(n,function(t){t.bind(function(t){var e,o,s;t.desktop||t.mobile||t.tablet?(n=(n=n.replace("[","-")).replace("]",""),jQuery("style#"+n+"-"+a).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#"+n+"-"+a).remove()})})}function astra_responsive_font_size(n,r,i=!1,l=""){wp.customize(n,function(t){t.bind(function(t){var e,o,s,a;t.desktop||t.mobile||t.tablet?(n=(n=n.replace("[","-")).replace("]",""),a="font-size",e="px"==t["desktop-unit"]?astra_font_size_rem(t.desktop,!0,"desktop"):"",s=o="",jQuery("style#"+n+"-"+a).remove(),""!=t.desktop&&(e=e||"font-size: "+t.desktop+(null==t["desktop-unit"]?"px":t["desktop-unit"])),""!=t.tablet&&(o="font-size: "+t.tablet+(null==t["tablet-unit"]?"px":t["tablet-unit"])),""!=t.mobile&&(s="font-size: "+t.mobile+(null==t["mobile-unit"]?"px":t["mobile-unit"])),jQuery("head").append('"),i&&(a=new CustomEvent("AstraStyleGuideElementUpdated",{detail:{value:{desktop:t.desktop+(null==t["desktop-unit"]?"px":t["desktop-unit"]),tablet:t.tablet+(null==t["tablet-unit"]?"px":t["tablet-unit"]),mobile:t.mobile+(null==t["mobile-unit"]?"px":t["mobile-unit"])},selector:l}}),document.dispatchEvent(a))):jQuery("style#"+n+"-font-size").remove()})})}function astra_font_extras_css(o,s){wp.customize("astra-settings["+o+"]",function(t){t.bind(function(t){var e;t?(jQuery("style#"+o).remove(),e=s+" { line-height : "+t["line-height"]+t["line-height-unit"]+";",e=(e+="letter-spacing : "+t["letter-spacing"]+t["letter-spacing-unit"]+";")+"text-decoration : "+t["text-decoration"]+";text-transform : "+t["text-transform"]+";}",jQuery("head").append('")):jQuery("style#"+o).remove()})})}function astra_responsive_spacing(i,l,u,c){wp.customize(i,function(t){t.bind(function(o){var s,a,n,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?(void 0!==c&&(e=(e=c+"").replace(/,/g,"-")),void 0!==u&&(r=u+""),i=(i=i.replace("[","-")).replace("]",""),jQuery("style#"+i+"-"+r+"-"+e).remove(),n=a=s="",t=void 0!==c?c:["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]&&(a+=r+"-"+e+": "+o.tablet[e]+o["tablet-unit"]+";")}),jQuery.each(t,function(t,e){""!=o.mobile[e]&&(n+=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,(!Number.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(o,s,a,n,r=!1){wp.customize(o,function(t){t.bind(function(t){var e;o=(o=o.replace("[","-")).replace("]",""),(t||0===t)&&(void 0!==n&&("url"===n?t="url("+t+")":t+=n),e=r?" !important":"",jQuery("style#"+o+"-"+s).remove(),jQuery("head").append('"),"unset"!==t)||jQuery("style#"+o+"-"+s).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 a="",n=e["background-image"],r=e["background-color"];if(""===r&&""===n)jQuery("style#"+o).remove();else{if(void 0!==e["background-type"]&&""!==e["background-type"])if("color"===e["background-type"])""!==n&&""!==r&&void 0!==r&&"unset"!==r?a="background-image: linear-gradient(to right, "+r+", "+r+"), url("+n+");":void 0!==n&&""!==n&&"unset"!==n||(a="background-color: "+r+";");else if("image"===e["background-type"]){if(""!==n)if("overlay-type"in e&&"none"!==e["overlay-type"]){var i="overlay-color"in e?e["overlay-color"]:"",l="overlay-opacity"in e?e["overlay-opacity"]:"",u="overlay-gradient"in e?e["overlay-gradient"]:"";if("classic"===e["overlay-type"]&&""!==i){if(""!==l)return void wp.customize.preview.send("refresh");a="background-image: linear-gradient(to right, "+e["overlay-color"]+", "+e["overlay-color"]+"), url("+n+");"}else a="gradient"===e["overlay-type"]&&""!==u?"background-image: "+u+", url("+n+");":"background-image: url("+n+");"}else a="background-image: url("+n+");"}else"gradient"===e["background-type"]&&""!==r&&"unset"!==r&&(a="background-image: "+r+";");""!==n&&(a=(a=(a+="background-repeat: "+e["background-repeat"]+";")+"background-position: "+e["background-position"]+";")+"background-size: "+e["background-size"]+";background-attachment: "+e["background-attachment"]+";"),astra_add_dynamic_css(o,s.replace("{{css}}",a))}}function astra_generate_outside_font_family_css(n,r,i=!1,l=""){wp.customize(n,function(t){t.bind(function(t,e){var o="font-family",s="",a=t.split(",")[0];a=a.replace(/'/g,""),n=(n=n.replace("[","-")).replace("]",""),jQuery("style#"+n+"-"+o).remove(),a in astraCustomizer.googleFonts&&(a=a.split(" ").join("+"),jQuery("link#"+n).remove(),s=''),i&&(a=new CustomEvent("AstraStyleGuideElementUpdated",{detail:{value:t,selector:l}}),document.dispatchEvent(a)),jQuery("head").append('"+s)})})}function astra_builder_advanced_css(o,s){wp.customize("astra-settings["+o+"-padding]",function(t){t.bind(function(t){var e;t.hasOwnProperty("desktop")&&(""!=t.desktop.bottom||""!=t.desktop.top||""!=t.desktop.left||""!=t.desktop.right||""!=t.tablet.bottom||""!=t.tablet.top||""!=t.tablet.left||""!=t.tablet.right||""!=t.mobile.bottom||""!=t.mobile.top||""!=t.mobile.left||""!=t.mobile.right?(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e="")+s+" {padding-left: "+t.desktop.left+t["desktop-unit"]+";")+"padding-right: "+t.desktop.right+t["desktop-unit"]+";")+"padding-top: "+t.desktop.top+t["desktop-unit"]+";")+"padding-bottom: "+t.desktop.bottom+t["desktop-unit"]+";} @media (max-width: 921px) {")+s+" {padding-left: "+t.tablet.left+t["tablet-unit"]+";")+"padding-right: "+t.tablet.right+t["tablet-unit"]+";")+"padding-top: "+t.tablet.top+t["tablet-unit"]+";")+"padding-bottom: "+t.tablet.bottom+t["tablet-unit"]+";} } @media (max-width: 544px) {")+s+" {padding-left: "+t.mobile.left+t["mobile-unit"]+";")+"padding-right: "+t.mobile.right+t["mobile-unit"]+";")+"padding-top: "+t.mobile.top+t["mobile-unit"]+";")+"padding-bottom: "+t.mobile.bottom+t["mobile-unit"]+";",astra_add_dynamic_css(o+"-padding-toggle-button",e=e+"} "+"} ")):astra_add_dynamic_css(o+"-padding-toggle-button",""))})}),wp.customize("astra-settings["+o+"-margin]",function(t){t.bind(function(t){var e;t.hasOwnProperty("desktop")&&(""!=t.desktop.bottom||""!=t.desktop.top||""!=t.desktop.left||""!=t.desktop.right||""!=t.tablet.bottom||""!=t.tablet.top||""!=t.tablet.left||""!=t.tablet.right||""!=t.mobile.bottom||""!=t.mobile.top||""!=t.mobile.left||""!=t.mobile.right?(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e="")+s+" {margin-left: "+t.desktop.left+t["desktop-unit"]+";")+"margin-right: "+t.desktop.right+t["desktop-unit"]+";")+"margin-top: "+t.desktop.top+t["desktop-unit"]+";")+"margin-bottom: "+t.desktop.bottom+t["desktop-unit"]+";} @media (max-width: 921px) {")+s+" {margin-left: "+t.tablet.left+t["tablet-unit"]+";")+"margin-right: "+t.tablet.right+t["tablet-unit"]+";")+"margin-top: "+t.tablet.top+t["tablet-unit"]+";")+"margin-bottom: "+t.tablet.bottom+t["tablet-unit"]+";} } @media (max-width: 544px) {")+s+" {margin-left: "+t.mobile.left+t["mobile-unit"]+";")+"margin-right: "+t.mobile.right+t["mobile-unit"]+";")+"margin-top: "+t.mobile.top+t["mobile-unit"]+";")+"margin-bottom: "+t.mobile.bottom+t["mobile-unit"]+";",astra_add_dynamic_css(o+"-margin-toggle-button",e=e+"} "+"} ")):astra_add_dynamic_css(o+"-margin-toggle-button",""))})})}function astra_border_spacing_advanced_css(o,s){wp.customize("astra-settings["+o+"-border-width]",function(t){t.bind(function(t){var e=s+" {";t.top&&(e=e+"border-top-style: solid;border-top-width: "+t.top+"px;"),t.right&&(e=e+"border-right-style: solid;border-right-width: "+t.right+"px;"),t.bottom&&(e=e+"border-bottom-style: solid;border-bottom-width: "+t.bottom+"px;"),t.left&&(e=e+"border-left-style: solid;border-left-width: "+t.left+"px;"),astra_add_dynamic_css("astra-settings["+o+"-border-width]",e+="} ")})}),wp.customize("astra-settings["+o+"-border-radius]",function(t){t.bind(function(t){var e;t.top||t.right||t.bottom||t.left?(e=s+" {",""!==t.top&&(e+="border-top-left-radius: "+t.top+"px;"),""!==t.right&&(e+="border-top-right-radius: "+t.right+"px;"),""!==t.left&&(e+="border-bottom-left-radius: "+t.left+"px;"),""!==t.bottom&&(e+="border-bottom-right-radius: "+t.bottom+"px;"),astra_add_dynamic_css("astra-settings["+o+"-border-radius]",e+="} ")):wp.customize.preview.send("refresh")})}),astra_css("astra-settings["+o+"-border-color]","border-color",s),astra_builder_advanced_css(o,s)}function astra_generate_font_weight_css(s,a,n,r){wp.customize(a,function(t){t.bind(function(t){a=(a=a.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#"+a+"-"+n).remove(),e in astraCustomizer.googleFonts&&(jQuery("#"+s).remove(),o="inherit"===t?'':''),jQuery("head").append('"+o)):jQuery("style#"+a).remove()})})}function astra_apply_responsive_background_css(u,c,d,t,b){wp.customize(u,function(t){t.bind(function(t){if(b=(b=b||"")||"header",u=(u=u.replace("[","-")).replace("]",""),""!==t[d]&&void 0!==t[d]){var e,o="",s=t[d]["background-image"],a=t.tablet["background-image"],n=t.desktop["background-image"],r=t[d]["background-color"],i=!!t.tablet["background-image"],l=!!t.desktop["background-image"];if(void 0!==t[d]["background-type"]&&""!==t[d]["background-type"])if("color"===t[d]["background-type"])""!==s&&""!==r&&void 0!==r&&"unset"!==r?o="background-image: linear-gradient(to right, "+r+", "+r+"), url("+s+");":"mobile"===d?l?o="background-image: linear-gradient(to right, "+r+", "+r+"), url("+n+");":i?o="background-image: linear-gradient(to right, "+r+", "+r+"), url("+a+");":(o="background-color: "+r+";",o+="background-image: none;"):"tablet"===d?l?o="background-image: linear-gradient(to right, "+r+", "+r+"), url("+n+");":(o="background-color: "+r+";",o+="background-image: none;"):void 0!==s&&""!==s||(o="background-color: "+r+";",o+="background-image: none;");else if("image"===t[d]["background-type"]){if(""!==s)if(void 0!==t[d]["overlay-type"]&&"none"!==t[d]["overlay-type"]){i=void 0!==t[d]["overlay-color"]?t[d]["overlay-color"]:"",a=void 0!==t[d]["overlay-opacity"]?t[d]["overlay-opacity"]:"",l=void 0!==t[d]["overlay-gradient"]?t[d]["overlay-gradient"]:"";if("classic"===t[d]["overlay-type"]&&""!==i){if(""!==a)return void wp.customize.preview.send("refresh");o="background-image: linear-gradient(to right, "+i+", "+i+"), url("+s+");"}else o="gradient"===t[d]["overlay-type"]&&""!==l?"background-image: "+l+", url("+s+");":"background-image: url("+s+");"}else o="background-image: url("+s+");"}else"gradient"===t[d]["background-type"]&&""!==r&&"unset"!==r&&(o="background-image: "+r+";");""!==s&&(o=(o=(o=(o+="background-repeat: "+t[d]["background-repeat"]+";")+"background-position: "+t[d]["background-position"]+";")+"background-size: "+t[d]["background-size"]+";")+"background-attachment: "+t[d]["background-attachment"]+";"),jQuery("style#"+u+"-"+d+"-"+b).remove(),"desktop"==d&&(e='"),"tablet"==d&&(e='"),"mobile"==d&&(e='"),jQuery("head").append(e)}})})}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===((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}(n=>{wp.customize("astra-settings[logo-svg-icon]",function(t){t.bind(function(){astra_add_dynamic_css("ast-header-responsive-logo-svg-icon-width",".ast-logo-title-inline .ast-site-identity { gap: 5px; } #masthead .ast-logo-svg-icon svg, .ast-sg-logo-section .ast-logo-svg-icon svg { width: 30px; }")})}),wp.customize("astra-settings[ast-header-responsive-logo-width]",function(t){t.bind(function(t){var e=astraCustomizer.tablet_breakpoint||921,o=astraCustomizer.mobile_breakpoint||544;""!=t.desktop||""!=t.tablet||""!=t.mobile?(astra_add_dynamic_css("ast-header-responsive-logo-width",`#masthead .site-logo-img .custom-logo-link img, .ast-sg-logo-section .site-logo-img .custom-logo-link img {
max-width: ${t.desktop}px;
width: ${t.desktop}px;
}
@media( max-width: ${e}px ) {
#masthead .site-logo-img .custom-logo-link img, .ast-sg-logo-section .site-logo-img .custom-logo-link img {
max-width: ${t.tablet}px;
width: ${t.tablet}px;
}
#masthead .site-logo-img img {
max-width: ${t.tablet}px;
width: ${t.tablet}px;
}
}
@media( max-width: ${o}px ) {
#masthead .site-logo-img .custom-logo-link img, .ast-sg-logo-section .site-logo-img .custom-logo-link img {
max-width: ${t.mobile}px;
width: ${t.mobile}px;
}
#masthead .site-logo-img img {
max-width: ${t.mobile}px;
max-height: ${t.mobile}px;
}
}`),astra_add_dynamic_css("mobile-header-logo-width",".ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img, .ast-header-break-point .ast-sg-logo-section .site-logo-img .custom-mobile-logo-link img { max-width: "+t.tablet+"px; } @media( max-width: "+e+"px ) { .ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img, .ast-header-break-point .ast-sg-logo-section .site-logo-img .custom-mobile-logo-link img { max-width: "+t.tablet+"px; } @media( max-width: "+o+"px ) { .ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: "+t.mobile+"px; }"),astra_add_dynamic_css("ast-header-responsive-logo-svg-icon-width","#masthead .ast-logo-svg-icon svg, .ast-sg-logo-section .ast-logo-svg-icon svg { width: "+t.desktop+"px; } @media( max-width: "+e+"px ) { #masthead .ast-logo-svg-icon svg, .ast-sg-logo-section .ast-logo-svg-icon svg { width: "+t.tablet+"px; } #masthead .ast-logo-svg-icon svg, .ast-sg-logo-section .ast-logo-svg-icon svg { width: "+t.tablet+"px; } } @media( max-width: "+o+"px ) { #masthead .ast-logo-svg-icon svg, .ast-sg-logo-section .ast-logo-svg-icon svg { width: "+t.mobile+"px; }#masthead .ast-logo-svg-icon svg, .ast-sg-logo-section .ast-logo-svg-icon svg { width: "+t.mobile+"px; } }")):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[logo-svg-site-title-gap]",function(t){t.bind(function(t){var e=astraCustomizer.tablet_breakpoint||921;""!=t.desktop||""!=t.tablet||""!=t.mobile?astra_add_dynamic_css("logo-svg-site-title-gap",`.ast-logo-title-inline .ast-site-identity {
gap: ${t.desktop}px;
}
@media( max-width: ${e}px ) {
.ast-logo-title-inline .ast-site-identity {
gap: ${t.tablet}px;
}
}
@media( max-width: ${astraCustomizer.mobile_breakpoint||544}px ) {
.ast-logo-title-inline .ast-site-identity {
gap: ${t.mobile}px;
}
}`):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[display-site-title-responsive]",function(t){t.bind(function(t){astra_add_dynamic_css("display-site-title-responsive",".ast-site-title-wrap .site-title { display: "+(t.desktop?"block":"none")+";} @media( max-width: "+(astraBuilderPreview.tablet_break_point||921)+"px) { .ast-site-title-wrap .site-title { display: "+(t.tablet?"block":"none")+";} } @media( max-width: "+(astraBuilderPreview.mobile_break_point||544)+"px) { .ast-site-title-wrap .site-title { display: "+(t.mobile?"block":"none")+";} }")})}),wp.customize("astra-settings[display-site-tagline-responsive]",function(t){t.bind(function(t){astra_add_dynamic_css("display-site-tagline-responsive",".ast-site-title-wrap .site-description { display: "+(t.desktop?"block":"none")+";} @media( max-width: "+(astraBuilderPreview.tablet_break_point||768)+"px) { .ast-site-title-wrap .site-description { display: "+(t.tablet?"block":"none")+";} } @media( max-width: "+(astraBuilderPreview.mobile_break_point||544)+"px) { .ast-site-title-wrap .site-description { display: "+(t.mobile?"block":"none")+";} }")})}),wp.customize("astra-settings[site-content-width]",function(t){t.bind(function(t){var e=(e="@media (min-width: 554px) {")+(".ast-container, .fl-builder #content .entry-header { max-width: "+(40+parseInt(t))+"px } ")+"}";astra_add_dynamic_css("site-content-width",e=jQuery("body").hasClass("ast-page-builder-template")?(e+="@media (min-width: 554px) {")+".ast-page-builder-template .comments-area { max-width: "+(40+parseInt(t))+"px } }":e)})}),wp.customize("astra-settings[header-main-menu-label]",function(t){t.bind(function(t){var e;0