decord/source/modules/spoiler_channels/maybeOpenSpoilerGateForVoiceChannel.native.tsx

30 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 12400
// Function ID: 96276
2026-07-20 16:05:17 +00:00
// Name: maybeOpenSpoilerGateForVoiceChannel
2026-07-28 08:39:19 +00:00
// Dependencies: [1348, 33, 7704, 4507, 12401, 2]
2026-07-20 16:05:17 +00:00
// Exports: maybeOpenSpoilerGateForVoiceChannel
2026-07-28 08:39:19 +00:00
// Module 12400 (maybeOpenSpoilerGateForVoiceChannel)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { jsx } from "jsxProd";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
const result = require("getSpoilerGatingChannelId").fileFinishedImporting("modules/spoiler_channels/maybeOpenSpoilerGateForVoiceChannel.native.tsx");
export const maybeOpenSpoilerGateForVoiceChannel = function maybeOpenSpoilerGateForVoiceChannel(closure_0) {
channel = channel.getChannel(closure_0);
2026-07-20 16:05:17 +00:00
let tmp2 = null == channel;
if (!tmp2) {
2026-07-28 08:39:19 +00:00
let obj = require(7704) /* getSpoilerGatingChannelId */;
2026-07-23 10:11:24 +00:00
tmp2 = !obj.shouldShowSpoilerGateForChannelId(closure_0);
2026-07-20 16:05:17 +00:00
}
let flag = !tmp2;
if (!tmp2) {
obj = { channelId: channel.id };
2026-07-28 08:39:19 +00:00
require(4507) /* useAlertStore */.openAlert(require(12401) /* VoicePanelSpoilerAlert */.VOICE_PANEL_SPOILER_KEY, jsx(importDefault(12401), { channelId: channel.id }));
2026-07-20 16:05:17 +00:00
flag = true;
2026-07-28 08:39:19 +00:00
const obj2 = require(4507) /* useAlertStore */;
2026-07-20 16:05:17 +00:00
}
return flag;
};