| 246 | const aiEnabledEl = document.getElementById("folderShareAiEnabled"); |
| 247 | |
| 248 | const syncModeVisuals = () => { |
| 249 | if (!dropModeEl) return; |
| 250 | const dropEnabled = !!dropModeEl.checked; |
| 251 | if (browseModeBtn) browseModeBtn.classList.toggle("is-active", !dropEnabled); |
| 252 | if (requestModeBtn) requestModeBtn.classList.toggle("is-active", dropEnabled); |
| 253 | if (modeNoticeEl) { |
| 254 | modeNoticeEl.textContent = dropEnabled |
| 255 | ? t("share_mode_notice_request") |
| 256 | : t("share_mode_notice_browse"); |
| 257 | } |
| 258 | }; |
| 259 | |
| 260 | const syncDropMode = () => { |
| 261 | if (!allowUploadEl || !dropModeEl) return; |