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

55 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 12885
// Function ID: 12886
2026-07-20 16:05:17 +00:00
// Name: VoicePanelSpoilerAlert
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 21, 4667, 4667, 1236, 6815, 4980, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 12885 (VoicePanelSpoilerAlert)
import noopAll from "noop" /* 19 */;
import jsxProd from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/spoiler_channels/native/VoicePanelSpoilerAlert.tsx");
2026-07-20 16:05:17 +00:00
export default function VoicePanelSpoilerAlert(channelId) {
2026-07-23 10:11:24 +00:00
channelId = channelId.channelId;
2026-08-24 06:08:38 +00:00
closure_1 = undefined;
let obj = channelId(4667);
2026-07-29 08:29:29 +00:00
closure_1 = obj.useDismissModalCallback();
obj = { title: null, content: null, actions: null };
const intl = channelId(1236).intl;
obj[0] = intl.string(channelId(1236).t["q38/ae"]);
const intl2 = channelId(1236).intl;
obj[1] = intl2.string(channelId(1236).t["2fDWXK"]);
obj = { children: null };
2026-08-24 06:08:38 +00:00
obj1 = {
2026-07-20 16:05:17 +00:00
variant: "primary",
onPress() {
2026-08-24 06:08:38 +00:00
callback(closure_1_2[5]).spoilerAgree(channelId);
const obj = callback(closure_1_2[5]);
const voiceChannel = callback(closure_1_2[6]).selectVoiceChannel(channelId);
2026-07-20 16:05:17 +00:00
callback();
2026-07-29 08:29:29 +00:00
},
text: null
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
const intl3 = channelId(1236).intl;
obj1[2] = intl3.string(channelId(1236).t.p89ACt);
2026-08-24 06:08:38 +00:00
const items = [callback(channelId(4667).AlertActionButton, obj1, "confirm"), ];
2026-07-20 16:05:17 +00:00
const obj2 = {
variant: "secondary",
onPress() {
callback();
2026-07-29 08:29:29 +00:00
},
text: null
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
const intl4 = channelId(1236).intl;
obj2[2] = intl4.string(channelId(1236).t["/g10LC"]);
2026-08-24 06:08:38 +00:00
items[1] = callback(channelId(4667).AlertActionButton, obj2, "cancel");
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-08-24 06:08:38 +00:00
obj[2] = callback2(channelId(4667).AlertActions, obj);
return callback(channelId(4667).AlertModal, obj);
2026-07-20 16:05:17 +00:00
};
export const VOICE_PANEL_SPOILER_KEY = "voice-panel-spoiler";