1"use strict";(function(){function manageBreakdanceTabs(){const tabContentSelector=".bde-advanced-tabs-content";const tabsSelector=".bde-advanced-tabs";function getAdvancedTabsParent(selector){return document.querySelector(selector)?.closest(tabsSelector)} 2function getAdvancedTabsNodeId(selector){const advancedTabsElement=getAdvancedTabsParent(selector);if(advancedTabsElement){return advancedTabsElement.dataset?.nodeId} 3return null} 4function alertIfTabLinkAndTabContentDontMatch(advancedTabsNodeId){const advancedTabs=document.querySelector(`[data-node-id="${advancedTabsNodeId}"]`);const tabsMenu=advancedTabs.querySelectorAll(".js-tab");const tabsPanels=advancedTabs.querySelectorAll(".js-panel");if(!tabsMenu||!tabsPanels)return;const tabLinksCount=tabsMenu.length;const tabContentsCount=tabsPanels.length;if(tabLinksCount>tabContentsCount){const plural=tabLinksCount-tabContentsCount>1?"s":"";window.parent.Breakdance.NotificationLogger.log.message(`You're missing ${ 5 tabLinksCount - tabContentsCount 6 } "Tab Content" element${plural} in a "Advanced Tabs" element. `,8000)} 7if(tabLinksCount<tabContentsCount){const plural=tabContentsCount-tabLinksCount>1?"Tabs":"Tab";window.parent.Breakdance.NotificationLogger.log.message(`You're missing ${ 8 tabContentsCount - tabLinksCount 9 } "${plural}" in a "Advanced Tabs" element.`,8000)}} 10function activateTabFromStructurePanel(selector){const advancedTabsNodeId=getAdvancedTabsNodeId(selector);const tabsContentElement=document.querySelector(selector)?.closest(tabContentSelector);if(window.breakdanceTabsInstances&&window.breakdanceTabsInstances[advancedTabsNodeId]){window.breakdanceTabsInstances[advancedTabsNodeId].updateAndActivateTabFromSelector(tabsContentElement)}} 11function update(selector){const advancedTabsNodeId=getAdvancedTabsNodeId(selector);if(window.breakdanceTabsInstances&&window.breakdanceTabsInstances[advancedTabsNodeId]){window.breakdanceTabsInstances[advancedTabsNodeId].update()}} 12return{alertIfTabLinkAndTabContentDontMatch,activateTabFromStructurePanel,update,}} 13window.manageBreakdanceTabs=manageBreakdanceTabs})()
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.