/* Metro module 9279; source: modules/rtc/SecureFramesPlatformUtils.native.tsx; dependencies: [1379, 4294, 9277, 661, 5080, 9280, 1962, 4080, 9289, 1244, 4496, 1305, 6837, 9292, 2] */ import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */ import RTCConnectionStore from '../../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */ import AlertActionCreators from '../../actions/native/AlertActionCreators.tsx'; /* Metro dependency 4496 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as NativeModule from '../../design/void/native.tsx'; /* Metro dependency 1305 */ import * as SecureFramesConstantsModule from './SecureFramesConstants.tsx'; /* Metro dependency 9277 */ function _fun72576(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9465:6, offset: 0x01d4a246, size: 251 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = SecureFramesConstantsModule; const env0_5 = value.SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY; const env0_6 = value.SECURE_FRAMES_STREAM_VERIFICATION_BOTTOM_SHEET_KEY; const env0_7 = value.SECURE_FRAMES_USER_VERIFICATION_MODAL_KEY; value = require(661) /* metro dependency 661: Constants */; const env0_8 = value.ME; const env0_9 = value.Routes; object = {openSecureFramesStreamVerification: function(a0, a1) { importDefault(dependencyMap[7]).openLazy(require(dependencyMap[6])(dependencyMap[8], dependencyMap.paths), SECURE_FRAMES_STREAM_VERIFICATION_BOTTOM_SHEET_KEY, {streamKey: a0, channelId: a1}); }, openSecureFramesUserVerificationModal: openSecureFramesUserVerificationModal, openSecureFramesUpdateConfirmation: openSecureFramesUpdateConfirmation, handleSecureFramesUserVerificationLink: handleSecureFramesUserVerificationLink}; (FileImportTrackerModule).fileFinishedImporting('modules/rtc/SecureFramesPlatformUtils.native.tsx'); exports.default = object; function openSecureFramesUserVerificationModal(a0, a1, a2) { // fn#72578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9465:496, offset: 0x01d4a3a0, size: 104 bytes, params: 4, frame: 17 var defaultImport; if (a2()) { defaultImport = importDefault(dependencyMap[4]); defaultImport.pushLazy(require(dependencyMap[6])(dependencyMap[5], dependencyMap.paths), {userId: a0, channelId: a1}, SECURE_FRAMES_USER_VERIFICATION_MODAL_KEY); } } function openSecureFramesUpdateConfirmation({title, subtitle, confirmText, onConfirm}) { // fn#72579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9465:656, offset: 0x01d4a408, size: 249 bytes, params: 2, frame: 19 const intl = (IndexNativeModule).intl; const t = (IndexNativeModule).t; const r6 = confirmText !== undefined ? confirmText : intl.string(t['cY+Oob']); const defaultImport = AlertActionCreators; const confirm = defaultImport.confirm; const object = {title: title, body: subtitle, confirmText: r6}; object.cancelText = intl.string(t['ETE/oC']); const ButtonColors = (NativeModule).ButtonColors; const RED = ButtonColors.RED; object.confirmColor = RED; Reflect.apply(confirm, defaultImport, [object]).then(_fun72580); function _fun72580(a0) { // fn#72580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9465:935, offset: 0x01d4a501, size: 23 bytes, params: 2, frame: 9 if (a0) { onConfirm(); } } } function handleSecureFramesUserVerificationLink({userId, fingerprint}) { // fn#72581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9465:989, offset: 0x01d4a518, size: 353 bytes, params: 2, frame: 25 var defaultImport; var show; var object; const intl = require(dependencyMap[9]).intl; const t = require(dependencyMap[9]).t; var defaultImport3; const channelId = RTCConnectionStore.getChannelId(); const channel = ChannelStore.getChannel(channelId); let r7 = channel?.getGuildId(); r7 = r7 ?? ME; if (channelId == null) { defaultImport = importDefault(dependencyMap[10]); show = defaultImport.show; object = {}; object.title = intl.string(t['5ICxE6']); object.body = intl.string(t['v1eXp/']); Reflect.apply(show, defaultImport, [object]); } else if (channel != null) { importDefault(dependencyMap[12])(Routes.CHANNEL(r7, channelId)); defaultImport3 = importDefault(dependencyMap[7]); defaultImport3.openLazy(require(dependencyMap[6])(dependencyMap[13], dependencyMap.paths), SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY, {userId: userId, channelId: channelId, guildId: r7, fingerprint: fingerprint}); } else { defaultImport = importDefault(dependencyMap[10]); show = defaultImport.show; object = {}; object.title = intl.string(t['5ICxE6']); object.body = intl.string(t['v1eXp/']); Reflect.apply(show, defaultImport, [object]); } } } global.__d(_fun72576, 9279, [1379, 4294, 9277, 661, 5080, 9280, 1962, 4080, 9289, 1244, 4496, 1305, 6837, 9292, 2]) /* metro module 9279, dependencies: [1379, 4294, 9277, 661, 5080, 9280, 1962, 4080, 9289, 1244, 4496, 1305, 6837, 9292, 2] */;