(el)
| 188 | } |
| 189 | |
| 190 | function getPaneFileDataForElement(el) { |
| 191 | const pane = el?.closest?.('.file-list-pane'); |
| 192 | const paneKey = pane && pane.classList.contains('secondary-pane') ? 'secondary' : 'primary'; |
| 193 | const state = window.__frPaneState?.[paneKey]; |
| 194 | if (state && Array.isArray(state.fileData)) return state.fileData; |
| 195 | return []; |
| 196 | } |
| 197 | |
| 198 | function getTransferTotalsForNames(names, fileList) { |
| 199 | const list = Array.isArray(names) ? names : []; |
no outgoing calls
no test coverage detected