// procRow — строка таблицы обработки (3-секционная). import { esc } from './esc.js'; import { fs } from './fs.js'; export function procRow(state, i, stTxt) { const f = state.files[i]; const over = state.overNames.has(f.name); const p = state.proc && state.proc.procState ? state.proc.procState[i] : null; const cls = (p && p.st === 'current') ? ' class="row-current"' : (over ? ' class="row-over"' : ''); return '' + esc(f.name) + '' + fs(f.size) + '' + stTxt + ''; }