decord/source/modules/spoiler_channels/maybeOpenSpoilerGateForVoiceChannel.native.tsx
2026-07-25 08:10:48 +00:00

29 lines
1.1 KiB
TypeScript

// Module ID: 12356
// Function ID: 96101
// Name: maybeOpenSpoilerGateForVoiceChannel
// Dependencies: [1348, 33, 7668, 4473, 12357, 2]
// Exports: maybeOpenSpoilerGateForVoiceChannel
// Module 12356 (maybeOpenSpoilerGateForVoiceChannel)
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { jsx } from "jsxProd";
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);
let tmp2 = null == channel;
if (!tmp2) {
let obj = require(7668) /* getSpoilerGatingChannelId */;
tmp2 = !obj.shouldShowSpoilerGateForChannelId(closure_0);
}
let flag = !tmp2;
if (!tmp2) {
obj = { channelId: channel.id };
require(4473) /* useAlertStore */.openAlert(require(12357) /* VoicePanelSpoilerAlert */.VOICE_PANEL_SPOILER_KEY, jsx(importDefault(12357), { channelId: channel.id }));
flag = true;
const obj2 = require(4473) /* useAlertStore */;
}
return flag;
};