| 7670 | } |
| 7671 | }, { once: true }); |
| 7672 | function reorderTabs(container) { |
| 7673 | if (scheduler2.config.header) { |
| 7674 | return; |
| 7675 | } |
| 7676 | const tabs = Array.from(container.querySelectorAll(".dhx_cal_tab")); |
| 7677 | const order = ["day", "week", "month"]; |
| 7678 | const specialTabs = order.map((tabName) => tabs.find((tab) => tab.getAttribute("data-tab") === tabName)).filter((tab) => tab !== void 0); |
| 7679 | let firstTab = tabs.length > 0 ? tabs[0] : null; |
| 7680 | specialTabs.reverse().forEach((tab) => { |
| 7681 | container.insertBefore(tab, firstTab); |
| 7682 | firstTab = tab; |
| 7683 | }); |
| 7684 | } |
| 7685 | }; |
| 7686 | } |
| 7687 | function extend$2(scheduler2) { |