decord/source/modules/panels/visibleInlineChannels.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

46 lines
1.2 KiB
TypeScript

// Module ID: 13914
// Function ID: 13915
// Name: visibleInlineChannels
// Dependencies: [2]
// Exports: isChannelVisibleInline, registerVisibleInlineChannel, unregisterVisibleInlineChannel
// Module 13914 (visibleInlineChannels)
import size from "module_2" /* 2 */;
const map = new Map();
let result = size.fileFinishedImporting("modules/panels/visibleInlineChannels.tsx");
export const registerVisibleInlineChannel = function registerVisibleInlineChannel(arg0, arg1) {
value = map.get(arg0);
if (null == value) {
const _Set = Set;
const set = new Set();
const result = map.set(arg0, set);
value = set;
}
value.add(arg1);
};
export const unregisterVisibleInlineChannel = function unregisterVisibleInlineChannel(arg0, arg1) {
value = map.get(arg0);
if (null != value) {
value.delete(arg1);
if (0 === value.size) {
map.delete(arg0);
}
}
};
export const isChannelVisibleInline = function isChannelVisibleInline(channelId, fn) {
value = map.get(channelId);
if (null == value) {
return false;
} else {
for (const item10010 of value) {
if (arg1(item10010)) {
obj.return();
let flag = true;
return true;
}
}
return false;
}
};