!function(e){var c=wp.customize;ASTCustomizer={controls:{},init:function(){ASTCustomizer._initToggles()},_initToggles:function(){ASTControlTrigger.triggerHook("astra-toggle-control",c),e.each(ASTCustomizerToggles,function(t,o){c(t,function(i){e.each(o,function(t,n){e.each(n.controls,function(t,o){c.control(o,function(o){var t=function(t){o.container.toggle(n.callback(t))};t(i.get()),i.bind(t)})})})}),e('.customize-control *[data-customize-setting-link="'+t+'"]').on("change",function(){setTimeout(function(){e.each(o,function(t,o){e.each(o.controls,function(t,o){o=o.replace("astra-settings[","").replace("]","");var n=e("#customize-control-astra-settings-"+o).closest(".control-section");if(void 0!==n){var i=n.attr("id"),c=!1;n.find(" > .customize-control").each(function(t,o){"none"!=e(this).css("display")&&(c=!0)}),c?e('.control-section[aria-owns="'+i+'"]').removeClass("ast-hide"):e('.control-section[aria-owns="'+i+'"]').addClass("ast-hide")}})})},300)}),e.each(o,function(t,o){e.each(o.controls,function(t,o){o=o.replace("astra-settings[","").replace("]","");var n=e("#customize-control-astra-settings-"+o).closest(".control-section");if(void 0!==n){var i=n.attr("id"),c=!1;n.find(" > .customize-control").each(function(t,o){"none"!=e(this).css("display")&&(c=!0)}),c?e('.control-section[aria-owns="'+i+'"]').removeClass("ast-hide"):e('.control-section[aria-owns="'+i+'"]').addClass("ast-hide")}})})})}},e(function(){ASTCustomizer.init()})}(jQuery),function(t){t.sectionConstructor["astra-pro"]=t.Section.extend({attachEvents:function(){},isContextuallyActive:function(){return!0}})}(wp.customize);