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

55 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 13018
// Function ID: 13019
2026-07-20 16:05:17 +00:00
// Name: VoicePanelSpoilerAlert
2026-09-02 09:53:35 +00:00
// Dependencies: [19, 21, 4863, 4863, 1233, 5465, 5363, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-02 09:53:35 +00:00
// Module 13018 (VoicePanelSpoilerAlert)
2026-08-24 06:08:38 +00:00
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;
2026-09-01 10:26:29 +00:00
let obj = channelId(4863);
2026-07-29 08:29:29 +00:00
closure_1 = obj.useDismissModalCallback();
obj = { title: null, content: null, actions: null };
2026-09-02 09:53:35 +00:00
const intl = channelId(1233).intl;
obj[0] = intl.string(channelId(1233).t["q38/ae"]);
const intl2 = channelId(1233).intl;
obj[1] = intl2.string(channelId(1233).t["2fDWXK"]);
2026-07-29 08:29:29 +00:00
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-09-02 09:53:35 +00:00
const intl3 = channelId(1233).intl;
obj1[2] = intl3.string(channelId(1233).t.p89ACt);
2026-09-01 10:26:29 +00:00
const items = [callback(channelId(4863).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-09-02 09:53:35 +00:00
const intl4 = channelId(1233).intl;
obj2[2] = intl4.string(channelId(1233).t["/g10LC"]);
2026-09-01 10:26:29 +00:00
items[1] = callback(channelId(4863).AlertActionButton, obj2, "cancel");
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-09-01 10:26:29 +00:00
obj[2] = callback2(channelId(4863).AlertActions, obj);
return callback(channelId(4863).AlertModal, obj);
2026-07-20 16:05:17 +00:00
};
export const VOICE_PANEL_SPOILER_KEY = "voice-panel-spoiler";