()
| 5735 | }; |
| 5736 | |
| 5737 | const updateToggleState = () => { |
| 5738 | const hasQuery = !!normalizeAdminSearchText(input.value); |
| 5739 | if (toggleBtn) { |
| 5740 | toggleBtn.classList.toggle("is-active", hasQuery); |
| 5741 | } |
| 5742 | if (clearBtn) { |
| 5743 | clearBtn.hidden = !hasQuery; |
| 5744 | clearBtn.disabled = !hasQuery; |
| 5745 | } |
| 5746 | }; |
| 5747 | |
| 5748 | const restoreState = () => { |
| 5749 | ids.forEach(id => { |
no test coverage detected