wp.customize.bind("ready",function(){!function(){let t=document.querySelectorAll("[data-wpbf-parent-tab-id]"),e=[];function a(t,e){jQuery('[data-wpbf-tab-id="'+t+'"] .wpbf-tab-menu-item').removeClass("is-active");let a=document.querySelector('[data-wpbf-tab-id="'+t+'"] [data-wpbf-tab-menu-id="'+e+'"]');a&&a.classList.add("is-active"),document.querySelectorAll('[data-wpbf-parent-tab-id="'+t+'"]').forEach(function(t){t instanceof HTMLElement&&(t.dataset.wpbfParentTabItem===e?t.classList.remove("wpbf-tab-item-hidden"):t.classList.add("wpbf-tab-item-hidden"))})}t.forEach(function(t){if(!(t instanceof HTMLElement))return;let a=t.dataset.wpbfParentTabId;a&&!e.includes(a)&&e.push(a)}),jQuery(document).on("click",".wpbf-tab-menu-item a",function(t){t.preventDefault(),a(this.parentNode.parentNode.parentNode.dataset.wpbfTabId,this.parentNode.dataset.wpbfTabMenuId)}),e.forEach(function(t){wp.customize.section(t,function(e){e.expanded.bind(function(e){if(e){let e=document.querySelector('[data-wpbf-tab-id="'+t+'"] .wpbf-tab-menu-item.is-active');if(e&&e instanceof HTMLElement){let n=e.dataset.wpbfTabMenuId;n&&a(t,n)}}})})})}()});
