decord/source/modules/channel/getFlattedChannelList.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

32 lines
895 B
TypeScript

// Module ID: 7186
// Function ID: 7187
// Name: getFlattedChannelList
// Dependencies: [12, 2]
// Exports: default
// Module 7186 (getFlattedChannelList)
import _modDef12 from "module_12" /* 12 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/channel/getFlattedChannelList.tsx");
export default function getFlattenedChannelList(arg0, arg1) {
dependencyMap = arg1;
let fn = arg2;
if (arg2 === undefined) {
fn = function l() {
return true;
};
}
const mapped = _modDef12(arg0).map((channel) => {
if ("null" === channel.channel.id) {
let items = dependencyMap[channel.channel.id];
} else {
items = [channel, dependencyMap[channel.channel.id]];
}
return items;
});
const arr = _modDef12(arg0);
const flattenDeepResult = mapped.flattenDeep();
return mapped.flattenDeep().filter(fn).value();
};