decord/alpha/source/modules/channel/ChannelMuteUtils.tsx

24 lines
766 B
TypeScript
Raw Normal View History

2026-10-08 09:57:35 +00:00
// Module ID: 10377
// Function ID: 10378
// Name: ChannelMuteUtils
2026-10-08 09:57:35 +00:00
// Dependencies: [4659, 2]
2026-07-20 16:05:17 +00:00
// Exports: getMuteSettings
2026-10-08 09:57:35 +00:00
// Module 10377 (ChannelMuteUtils)
import _modDef4659 from "module_4659" /* 4659 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/channel/ChannelMuteUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getMuteSettings = function getMuteSettings(selected_time_window) {
2026-10-03 08:58:59 +00:00
let toISOStringResult;
const mute_config = { selected_time_window, end_time: toISOStringResult };
toISOStringResult = null;
2026-07-20 16:05:17 +00:00
if (selected_time_window > 0) {
2026-10-08 09:57:35 +00:00
const obj2 = _modDef4659();
2026-10-03 08:58:59 +00:00
const addResult = obj2.add(selected_time_window, "second");
toISOStringResult = addResult.toISOString();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return { muted: true, mute_config };
2026-07-20 16:05:17 +00:00
};