decord/alpha/source/modules/channel/ChannelMuteUtils.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

23 lines
822 B
TypeScript

// Module ID: 9795
// Function ID: 9796
// Name: ChannelMuteUtils
// Dependencies: [4450, 2]
// Exports: getMuteSettings
// Module 9795 (ChannelMuteUtils)
import _modDef4450 from "module_4450" /* 4450 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/channel/ChannelMuteUtils.tsx");
export const getMuteSettings = function getMuteSettings(selected_time_window) {
const mute_config = { selected_time_window, end_time: null };
let toISOStringResult = null;
if (selected_time_window > 0) {
const obj2 = _modDef4450();
toISOStringResult = _modDef4450().add(selected_time_window, "second").toISOString();
const addResult = _modDef4450().add(selected_time_window, "second");
}
mute_config.end_time = toISOStringResult;
return { muted: true, mute_config };
};