function astra_font_size_rem(t,e,o){var a="";if(""!=t){o=null!=typeof o?o:"desktop";if(a="font-size: "+t+"px;",e){var n=wp.customize("astra-settings[font-size-body]").get();n.desktop=""!=n.desktop?n.desktop:15,n.tablet=""!=n.tablet?n.tablet:n.desktop,n.mobile=""!=n.mobile?n.mobile:n.tablet,a+="font-size: "+t/n[o]+"rem;"}}return a}function astra_responsive_font_size(n,s){wp.customize(n,function(t){t.bind(function(t){if(t.desktop||t.mobile||t.tablet){n=(n=n.replace("[","-")).replace("]",""),jQuery("style#"+n).remove();var e="",o="",a="";""!=t.desktop&&(e="font-size: "+t.desktop+t["desktop-unit"]),""!=t.tablet&&(o="font-size: "+t.tablet+t["tablet-unit"]),""!=t.mobile&&(a="font-size: "+t.mobile+t["mobile-unit"]),"px"==t["desktop-unit"]&&(e=astra_font_size_rem(t.desktop,!0,"desktop")),jQuery("head").append('")}else jQuery("style#"+n).remove()})})}function astra_responsive_spacing(r,d,c,m){wp.customize(r,function(t){t.bind(function(o){var t="",a="padding";if(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 m&&(t=(t=m+"").replace(/,/g,"-")),null!=typeof c&&(a=c+""),r=(r=r.replace("[","-")).replace("]",""),jQuery("style#"+r+"-"+a+"-"+t).remove();var n="",s="",i="",e=null!=typeof m?m:["top","bottom","right","left"];jQuery.each(e,function(t,e){""!=o.desktop[e]&&(n+=a+"-"+e+": "+o.desktop[e]+o["desktop-unit"]+";")}),jQuery.each(e,function(t,e){""!=o.tablet[e]&&(s+=a+"-"+e+": "+o.tablet[e]+o["tablet-unit"]+";")}),jQuery.each(e,function(t,e){""!=o.mobile[e]&&(i+=a+"-"+e+": "+o.mobile[e]+o["mobile-unit"]+";")}),jQuery("head").append('")}else wp.customize.preview.send("refresh"),jQuery("style#"+r+"-"+a+"-"+t).remove()})})}function astra_css_font_size(o,a){wp.customize(o,function(t){t.bind(function(t){if(t){o=(o=o.replace("[","-")).replace("]",""),jQuery("style#"+o).remove();var e="font-size: "+t;(!isNaN(t)||0<=t.indexOf("px"))&&(e=astra_font_size_rem(t=t.replace("px",""),!0)),jQuery("head").append('")}else jQuery("style#"+o).remove()})})}function get_hexdec(t){var e=t.toString(16);return parseInt(e,16)}function astra_css(e,o,a,n){wp.customize(e,function(t){t.bind(function(t){e=(e=e.replace("[","-")).replace("]",""),t?(void 0!==n&&("url"===n?t="url("+t+")":t+=n),jQuery("style#"+e).remove(),jQuery("head").append('")):(wp.customize.preview.send("refresh"),jQuery("style#"+e).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,a){var n="",s=e["background-image"],i=e["background-color"];""===i&&""===s?t.preview.send("refresh"):(""!==s&&""!==i?void 0!==i&&(n="background-image: linear-gradient(to right, "+i+", "+i+"), url("+s+");"):""!==s?n="background-image: url("+s+");":""!==i&&(n="background-color: "+i+";",n+="background-image: none;"),""!==s&&(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,a.replace("{{css}}",n)))}!function(o){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;} .astra-logo-svg{width: "+t.desktop+"px;} @media( max-width: 768px ) { #masthead .site-logo-img .custom-logo-link img { max-width: "+t.tablet+"px;} .astra-logo-svg{width: "+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;} .astra-logo-svg{width: "+t.mobile+"px; } }"),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[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){if(0