(e)
| 161 | } |
| 162 | |
| 163 | function changeTab(e) { |
| 164 | const { target } = e; |
| 165 | if (!target.matches(".options>span")) return; |
| 166 | const currentTab = el.get(".options>span.active"); |
| 167 | if (target === currentTab) return; |
| 168 | if (currentTab) currentTab.classList.remove("active"); |
| 169 | target.classList.add("active"); |
| 170 | } |
| 171 | } |