var e;e={},e=_,function(){wp.customize.bind("pane-contents-reflowed",function(){let e=[];wp.customize.panel.each(function(t){"wpbf-nested"===t.params.type&&t.params.parentId&&e.push(t)}),e.sort(wp.customize.utils.prioritySort).reverse(),jQuery.each(e,function(e,t){jQuery("#sub-accordion-panel-"+t.params.parentId).children(".panel-meta").after(t.headContainer)})});let t=wp.customize.Panel.prototype.embed,a=wp.customize.Panel.prototype.isContextuallyActive,n=wp.customize.Panel.prototype.attachEvents;wp.customize.Panel=wp.customize.Panel.extend({attachEvents:function(){let e=this;if("wpbf-nested"!==e.params.type||!e.params.parentId){n.call(e);return}n.call(e),e.expanded.bind(function(t){e.params.parentId&&(t?wp.customize.panel(e.params.parentId).contentContainer?.addClass("current-panel-parent"):wp.customize.panel(e.params.parentId).contentContainer?.removeClass("current-panel-parent"))}),e.container?.find(".customize-panel-back").off("click keydown").on("click keydown",function(t){!wp.customize.utils.isKeydownButNotEnterEvent(t)&&(t.preventDefault(),e.params.parentId&&e.expanded()&&wp.customize.panel(e.params.parentId).expand(e.params))})},embed:function(){if("wpbf-nested"!==this.params.type||!this.params.parentId){t.call(this);return}t.call(this),jQuery("#sub-accordion-panel-"+this.params.parentId).append(this.headContainer)},isContextuallyActive:function(){var t;let n=this,p=0;if("wpbf-nested"!==n.params.type)return a.call(n);let r=n._children("panel","section");return wp.customize.panel.each(function(e){e.params.parentId&&e.params.parentId===n.id&&r.push(e)}),r.sort(wp.customize.utils.prioritySort),((t=e)&&t.__esModule?t.default:t)(r).each(function(e){e.active()&&e.isContextuallyActive()&&(p+=1)}),0!==p}})}();
