decord/source/modules/experiments/trigger_points/CommonTriggerPointManager.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

40 lines
1.8 KiB
TypeScript

// Module ID: 17415
// Function ID: 17416
// Name: CommonTriggerPointManager
// Dependencies: [7191, 17416, 16990, 2]
// Module 17415 (CommonTriggerPointManager)
import OpenUserSettingsTriggerPoint2 from "OpenUserSettingsTriggerPoint" /* 16990 */;
import VoiceCallTriggerPoint2 from "VoiceCallTriggerPoint" /* 17416 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7191 */;
require = fn;
class CommonTriggerPointManager extends tmp2 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.actions = { VOICE_CHANNEL_SELECT: applyArgumentsResult.handleVoiceChannelSelect, CALL_CREATE: applyArgumentsResult.handleCallCreate, USER_SETTINGS_MODAL_OPEN: applyArgumentsResult.handleUserSettingsModalOpen };
return applyArgumentsResult;
}
}
const prototype = CommonTriggerPointManager.prototype;
prototype["handleVoiceChannelSelect"] = function handleVoiceChannelSelect(guildId) {
guildId = guildId.guildId;
if (null != guildId.channelId) {
const VoiceCallTriggerPoint = VoiceCallTriggerPoint2.VoiceCallTriggerPoint;
const obj = { guildId };
VoiceCallTriggerPoint.trigger(obj);
}
};
prototype["handleCallCreate"] = function handleCallCreate() {
const VoiceCallTriggerPoint = VoiceCallTriggerPoint2.VoiceCallTriggerPoint;
VoiceCallTriggerPoint.trigger();
};
prototype["handleUserSettingsModalOpen"] = function handleUserSettingsModalOpen() {
const OpenUserSettingsTriggerPoint = OpenUserSettingsTriggerPoint2.OpenUserSettingsTriggerPoint;
OpenUserSettingsTriggerPoint.trigger();
};
const commonTriggerPointManager = new CommonTriggerPointManager();
const size = fn(2);
const result = size.fileFinishedImporting("modules/experiments/trigger_points/CommonTriggerPointManager.tsx");
export default commonTriggerPointManager;