decord/source/modules/channel/getFlattedChannelList.tsx

30 lines
850 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 5072
2026-07-27 11:26:19 +00:00
// Function ID: 44082
2026-07-20 16:05:17 +00:00
// Name: getFlattenedChannelList
2026-07-23 10:11:24 +00:00
// Dependencies: [22, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 5072 (getFlattenedChannelList)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/channel/getFlattedChannelList.tsx");
2026-07-20 16:05:17 +00:00
export default function getFlattenedChannelList(arg0, arg1) {
let fn = arg2;
const importDefault = arg1;
if (arg2 === undefined) {
fn = function l() {
return true;
};
}
2026-07-23 10:11:24 +00:00
const mapped = importDefault(22)(arg0).map((channel) => {
2026-07-20 16:05:17 +00:00
if ("null" === channel.channel.id) {
2026-07-23 10:11:24 +00:00
let items = dependencyMap[channel.channel.id];
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
items = [channel, dependencyMap[channel.channel.id]];
2026-07-20 16:05:17 +00:00
}
return items;
});
2026-07-23 10:11:24 +00:00
const arr = importDefault(22)(arg0);
2026-07-20 16:05:17 +00:00
const flattenDeepResult = mapped.flattenDeep();
return mapped.flattenDeep().filter(fn).value();
};