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