()
| 144 | let __moveFolderSourcesCache = null; |
| 145 | |
| 146 | function getActiveSourceId() { |
| 147 | const paneKey = window.activePane === 'secondary' ? 'secondary' : 'primary'; |
| 148 | const paneSource = window.__frPaneState?.[paneKey]?.sourceId || ''; |
| 149 | if (paneSource) return paneSource; |
| 150 | const sel = document.getElementById('sourceSelector'); |
| 151 | if (sel && sel.value) return sel.value; |
| 152 | try { |
| 153 | const stored = localStorage.getItem('fr_active_source'); |
| 154 | if (stored) return stored; |
| 155 | } catch (e) {} |
| 156 | return ''; |
| 157 | } |
| 158 | |
| 159 | function getPaneKeyForSourceId(sourceId = '') { |
| 160 | const id = String(sourceId || '').trim(); |
no outgoing calls
no test coverage detected