39 lines
3.0 KiB
TypeScript
39 lines
3.0 KiB
TypeScript
/* Metro module 9441; source: modules/spoiler_channels/native/VoicePanelSpoilerAlert.tsx; dependencies: [31, 33, 4500, 4500, 1244, 6593, 4796, 2] */
|
|
function _fun73453(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9627:6, offset: 0x01d6d6d1, size: 159 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const value = require(33) /* metro dependency 33 */;
|
|
const env0_3 = value.jsx;
|
|
const env0_4 = value.jsxs;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/spoiler_channels/native/VoicePanelSpoilerAlert.tsx');
|
|
exports.default = VoicePanelSpoilerAlert;
|
|
exports.VOICE_PANEL_SPOILER_KEY = 'voice-panel-spoiler';
|
|
}
|
|
|
|
function VoicePanelSpoilerAlert({channelId}) { // fn#73454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9627:233, offset: 0x01d6d770, size: 424 bytes, params: 2, frame: 27
|
|
const env0_1 = (require(4500) /* metro dependency 4500: AlertModalNative */).useDismissModalCallback();
|
|
const AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal;
|
|
const object2 = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['q38/ae']);
|
|
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2fDWXK']);
|
|
const AlertActions = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActions;
|
|
const AlertActionButton = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton;
|
|
const alertActionButton = <AlertActionButton variant="primary" onPress={onPress_73455} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.p89ACt)} key="confirm" />;
|
|
object2.actions = <AlertActions>{alertActionButton}<AlertActionButton variant="secondary" onPress={onPress_73456} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/g10LC'])} key="cancel" /></AlertActions>;
|
|
return <AlertModal {...object2} />;
|
|
}
|
|
|
|
function VoicePanelSpoilerAlertOnPress() { // fn#73455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9627:542, owner: VoicePanelSpoilerAlert.onPress, offset: 0x01d6d918, size: 76 bytes, params: 1, frame: 15
|
|
let value = environment.__proto__;
|
|
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
|
const spoilerAgree = value.spoilerAgree;
|
|
const channelIdBinding = channelId;
|
|
Reflect.apply(spoilerAgree, value, [channelIdBinding]);
|
|
(importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */).selectVoiceChannel(channelIdBinding);
|
|
env0_1();
|
|
}
|
|
|