65 lines
4.0 KiB
TypeScript
65 lines
4.0 KiB
TypeScript
/* Metro module 9441; source: modules/spoiler_channels/native/VoicePanelSpoilerAlert.tsx; dependencies: [31, 33, 4500, 4500, 1244, 6593, 4796, 2] */
|
|
import SelectedChannelActionCreators from '../../../actions/SelectedChannelActionCreators.tsx'; /* Metro dependency 4796 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as AlertModalNativeModule from '../../../design/components/AlertModal/native/AlertModal.native.tsx'; /* Metro dependency 4500 */
|
|
|
|
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});
|
|
ReactModule;
|
|
(FileImportTrackerModule).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 = (AlertModalNativeModule).useDismissModalCallback();
|
|
const AlertModal = (AlertModalNativeModule).AlertModal;
|
|
const object = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['q38/ae']);
|
|
object.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2fDWXK']);
|
|
const AlertActions = (AlertModalNativeModule).AlertActions;
|
|
const AlertActionButton = (AlertModalNativeModule).AlertActionButton;
|
|
const alertActionButton = (
|
|
<AlertActionButton
|
|
variant="primary"
|
|
onPress={onPress_73455}
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.p89ACt)}
|
|
key="confirm"
|
|
/>
|
|
);
|
|
object.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 {...object} />;
|
|
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]);
|
|
(SelectedChannelActionCreators).selectVoiceChannel(channelIdBinding);
|
|
env0_1();
|
|
}
|
|
|
|
function VoicePanelSpoilerAlertOnPress_73456() { // fn#73456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9627:718, owner: VoicePanelSpoilerAlert.onPress, offset: 0x00de925a, size: 15 bytes, params: 1, frame: 9
|
|
env0_1();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun73453, 9441, [31, 33, 4500, 4500, 1244, 6593, 4796,
|
|
2]) /* metro module 9441, dependencies: [31, 33, 4500, 4500, 1244, 6593, 4796, 2] */;
|