?
function astra_font_size_rem(t,e,o){var a="";if(""!=t){o=void 0!=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(t,e){wp.customize(t,function(o){o.bind(function(o){if(o.desktop||o.mobile||o.tablet){t=(t=t.replace("[","-")).replace("]",""),jQuery("style#"+t).remove();var a="",n="",s="";""!=o.desktop&&(a="font-size: "+o.desktop+o["desktop-unit"]),""!=o.tablet&&(n="font-size: "+o.tablet+o["tablet-unit"]),""!=o.mobile&&(s="font-size: "+o.mobile+o["mobile-unit"]),"px"==o["desktop-unit"]&&(a=astra_font_size_rem(o.desktop,!0,"desktop")),jQuery("head").append('<style id="'+t+'">'+e+"\t{ "+a+" }@media (max-width: 768px) {"+e+"\t{ "+n+" } }@media (max-width: 544px) {"+e+"\t{ "+s+" } }</style>")}else jQuery("style#"+t).remove()})})}function astra_responsive_spacing(t,e,o,a){wp.customize(t,function(n){n.bind(function(n){var s="",i="padding";if(n.desktop.top||n.desktop.right||n.desktop.bottom||n.desktop.left||n.tablet.top||n.tablet.right||n.tablet.bottom||n.tablet.left||n.mobile.top||n.mobile.right||n.mobile.bottom||n.mobile.left){void 0!=typeof a&&(s=(s=a+"").replace(/,/g,"-")),void 0!=typeof o&&(i=o+""),t=(t=t.replace("[","-")).replace("]",""),jQuery("style#"+t+"-"+i+"-"+s).remove();var r="",d="",c="",m=void 0!=typeof a?a:["top","bottom","right","left"];jQuery.each(m,function(t,e){""!=n.desktop[e]&&(r+=i+"-"+e+": "+n.desktop[e]+n["desktop-unit"]+";")}),jQuery.each(m,function(t,e){""!=n.tablet[e]&&(d+=i+"-"+e+": "+n.tablet[e]+n["tablet-unit"]+";")}),jQuery.each(m,function(t,e){""!=n.mobile[e]&&(c+=i+"-"+e+": "+n.mobile[e]+n["mobile-unit"]+";")}),jQuery("head").append('<style id="'+t+"-"+i+"-"+s+'">'+e+"\t{ "+r+" }@media (max-width: 768px) {"+e+"\t{ "+d+" } }@media (max-width: 544px) {"+e+"\t{ "+c+" } }</style>")}else wp.customize.preview.send("refresh"),jQuery("style#"+t+"-"+i+"-"+s).remove()})})}function astra_css_font_size(t,e){wp.customize(t,function(o){o.bind(function(o){if(o){t=(t=t.replace("[","-")).replace("]",""),jQuery("style#"+t).remove();var a="font-size: "+o;(!isNaN(o)||o.indexOf("px")>=0)&&(a=astra_font_size_rem(o=o.replace("px",""),!0)),jQuery("head").append('<style id="'+t+'">'+e+"\t{ "+a+" }</style>")}else jQuery("style#"+t).remove()})})}function get_hexdec(t){var e=t.toString(16);return parseInt(e,16)}function astra_css(t,e,o,a){wp.customize(t,function(n){n.bind(function(n){t=(t=t.replace("[","-")).replace("]",""),n?(void 0!==a&&("url"===a?n="url("+n+")":n+=a),jQuery("style#"+t).remove(),jQuery("head").append('<style id="'+t+'">'+o+"\t{ "+e+": "+n+" }</style>")):(wp.customize.preview.send("refresh"),jQuery("style#"+t).remove())})})}function astra_add_dynamic_css(t,e){t=(t=t.replace("[","-")).replace("]",""),jQuery("style#"+t).remove(),jQuery("head").append('<style id="'+t+'">'+e+"</style>")}!function(t){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; } }"):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(e){e.bind(function(e){if(t("button.main-header-menu-toggle .mobile-menu-wrap .mobile-menu").length>0)""!=e?t("button.main-header-menu-toggle .mobile-menu-wrap .mobile-menu").text(e):t("button.main-header-menu-toggle .mobile-menu-wrap").remove();else{var o=t("button.main-header-menu-toggle").html();""!=e&&(o+='<div class="mobile-menu-wrap"><span class="mobile-menu">'+e+"</span> </div>"),t("button.main-header-menu-toggle").html(o)}})}),wp.customize("astra-settings[site-layout-outside-bg-color]",function(t){t.bind(function(t){""!=t?astra_add_dynamic_css("site-outside-bg-color","body,.ast-separate-container {background-color: "+t+"}"):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[blog-max-width]",function(t){t.bind(function(t){var e="@media all and ( min-width: 921px ) {";jQuery("body").hasClass("ast-woo-shop-archive")||(e+=".blog .site-content > .ast-container,.archive .site-content > .ast-container{ max-width: "+parseInt(t)+"px } "),jQuery("body").hasClass("ast-fluid-width-layout")&&(e+=".blog .site-content > .ast-container,.archive .site-content > .ast-container{ padding-left:20px; padding-right:20px; } "),astra_add_dynamic_css("blog-max-width",e+="}")})}),wp.customize("astra-settings[blog-single-max-width]",function(t){t.bind(function(t){var e="@media all and ( min-width: 921px ) {";e+=".single-post .site-content > .ast-container{ max-width: "+(40+parseInt(t))+"px } ",jQuery("body").hasClass("ast-fluid-width-layout")&&(e+=".single-post .site-content > .ast-container{ padding-left:20px; padding-right:20px; } "),astra_add_dynamic_css("blog-single-max-width",e+="}")})}),wp.customize("astra-settings[site-sidebar-width]",function(t){t.bind(function(t){if(!jQuery("body").hasClass("ast-no-sidebar")&&t>=15&&t<=50){var e="@media (min-width: 769px) {";e+="#primary { width: "+(100-parseInt(t))+"% } ",e+="#secondary { width: "+t+"% } ",astra_add_dynamic_css("site-sidebar-width",e+="}")}})}),wp.customize("astra-settings[header-main-sep]",function(t){t.bind(function(t){var e="body.ast-header-break-point .site-header { border-bottom-width: "+t+"px }";e+="body:not(.ast-header-break-point) .main-header-bar {",e+="border-bottom-width: "+t+"px",astra_add_dynamic_css("header-main-sep",e+="}")})}),wp.customize("astra-settings[footer-sml-divider]",function(t){t.bind(function(t){jQuery(".ast-small-footer").css("border-top-width",t+"px")})}),wp.customize("astra-settings[footer-sml-divider-color]",function(t){t.bind(function(t){jQuery(".ast-small-footer").css("border-top-color",t)})}),wp.customize("astra-settings[button-radius]",function(t){t.bind(function(t){var e='.menu-toggle,button,.ast-button,input#submit,input[type="button"],input[type="submit"],input[type="reset"] { border-radius: '+parseInt(t)+"px } ";jQuery("body").hasClass("woocommerce")&&(e+=".woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled] { border-radius: "+parseInt(t)+"px } "),astra_add_dynamic_css("button-radius",e)})}),wp.customize("astra-settings[button-v-padding]",function(t){t.bind(function(t){var e='.menu-toggle,button,.ast-button,input#submit,input[type="button"],input[type="submit"],input[type="reset"] { padding-top: '+parseInt(t)+"px; padding-bottom: "+parseInt(t)+"px } ";jQuery("body").hasClass("woocommerce")&&(e+=".woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled] { padding-top: "+parseInt(t)+"px; padding-bottom: "+parseInt(t)+"px } "),astra_add_dynamic_css("button-v-padding",e)})}),wp.customize("astra-settings[button-h-padding]",function(t){t.bind(function(t){var e='.menu-toggle,button,.ast-button,input#submit,input[type="button"],input[type="submit"],input[type="reset"] { padding-left: '+parseInt(t)+"px; padding-right: "+parseInt(t)+"px } ";jQuery("body").hasClass("woocommerce")&&(e+=".woocommerce a.button, .woocommerce button.button, .woocommerce .product a.button, .woocommerce .woocommerce-message a.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button,.woocommerce input.button:disabled, .woocommerce input.button:disabled[disabled] { padding-left: "+parseInt(t)+"px; padding-right: "+parseInt(t)+"px } "),astra_add_dynamic_css("button-h-padding",e)})}),wp.customize("astra-settings[header-main-sep]",function(t){t.bind(function(t){var e=" body.ast-header-break-point .site-header { border-bottom-width: "+t+"px } ";e+="body:not(.ast-header-break-point) .main-header-bar {",e+="border-bottom-width: "+t+"px",astra_add_dynamic_css("header-main-sep",e+="}")})}),wp.customize("astra-settings[header-main-sep-color]",function(t){t.bind(function(t){if(""==t&&wp.customize.preview.send("refresh"),t){var e=" body:not(.ast-header-break-point) .main-header-bar { border-bottom-color: "+t+"; } ";astra_add_dynamic_css("header-main-sep-color",e+=" body.ast-header-break-point .site-header { border-bottom-color: "+t+"; } ")}})}),astra_responsive_font_size("astra-settings[font-size-site-tagline]",".site-header .site-description"),astra_responsive_font_size("astra-settings[font-size-site-title]",".site-title"),astra_responsive_font_size("astra-settings[font-size-entry-title]",".ast-single-post .entry-title, .page-title"),astra_responsive_font_size("astra-settings[font-size-archive-summary-title]",".ast-archive-description .ast-archive-title"),astra_responsive_font_size("astra-settings[font-size-page-title]","body:not(.ast-single-post) .entry-title"),astra_responsive_font_size("astra-settings[font-size-h1]","h1, .entry-content h1, .entry-content h1 a"),astra_responsive_font_size("astra-settings[font-size-h2]","h2, .entry-content h2, .entry-content h2 a"),astra_responsive_font_size("astra-settings[font-size-h3]","h3, .entry-content h3, .entry-content h3 a"),astra_responsive_font_size("astra-settings[font-size-h4]","h4, .entry-content h4, .entry-content h4 a"),astra_responsive_font_size("astra-settings[font-size-h5]","h5, .entry-content h5, .entry-content h5 a"),astra_responsive_font_size("astra-settings[font-size-h6]","h6, .entry-content h6, .entry-content h6 a"),astra_css("astra-settings[body-line-height]","line-height","body, button, input, select, textarea"),wp.customize("astra-settings[para-margin-bottom]",function(t){t.bind(function(t){(""==t&&wp.customize.preview.send("refresh"),t)&&astra_add_dynamic_css("para-margin-bottom"," p, .entry-content p { margin-bottom: "+t+"em; } ")})}),astra_css("astra-settings[body-text-transform]","text-transform","body, button, input, select, textarea"),astra_css("astra-settings[headings-text-transform]","text-transform","h1, .entry-content h1, .entry-content h1 a, h2, .entry-content h2, .entry-content h2 a, h3, .entry-content h3, .entry-content h3 a, h4, .entry-content h4, .entry-content h4 a, h5, .entry-content h5, .entry-content h5 a, h6, .entry-content h6, .entry-content h6 a"),astra_css("astra-settings[footer-color]","color",".ast-small-footer"),astra_css("astra-settings[footer-link-color]","color",".ast-small-footer a"),astra_css("astra-settings[footer-link-h-color]","color",".ast-small-footer a:hover"),wp.customize("astra-settings[footer-bg-color]",function(t){t.bind(function(t){(""==t&&wp.customize.preview.send("refresh"),t)&&astra_add_dynamic_css("footer-bg-color"," .ast-small-footer > .ast-footer-overlay { background-color: "+t+"; } ")})}),astra_css("astra-settings[footer-adv-wgt-title-color]","color",".footer-adv .widget-title, .footer-adv .widget-title a"),astra_css("astra-settings[footer-adv-text-color]","color",".footer-adv"),wp.customize("astra-settings[footer-adv-bg-color]",function(t){t.bind(function(t){(""==t&&wp.customize.preview.send("refresh"),t)&&astra_add_dynamic_css("footer-adv-bg-color"," .footer-adv-overlay { background-color: "+t+"; } ")})}),wp.customize("astra-settings[shop-archive-max-width]",function(t){t.bind(function(t){var e="@media all and ( min-width: 921px ) {";e+=".ast-woo-shop-archive .site-content > .ast-container{ max-width: "+parseInt(t)+"px } ",jQuery("body").hasClass("ast-fluid-width-layout")&&(e+=".ast-woo-shop-archive .site-content > .ast-container{ padding-left:20px; padding-right:20px; } "),astra_add_dynamic_css("shop-archive-max-width",e+="}")})})}(jQuery);