/* Metro module 9280; source: modules/rtc/native/SecureFramesUserVerificationModal.tsx; dependencies: [57, 31, 27, 1379, 1878, 9277, 661, 1309, 33, 4501, 697, 566, 4617, 9281, 9282, 9256, 9283, 9275, 5080, 3857, 4073, 1244, 4248, 9284, 9212, 6771, 8743, 9285, 1305, 6618, 5278, 5284, 4573, 4572, 9286, 9288, 4578, 2] */ function _fun72582(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9466:6, offset: 0x01d4a679, size: 499 bytes, params: 8, frame: 22 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(57) /* metro dependency 57 */; const env0_4 = importAll(31) /* metro dependency 31 */; let value = require(27) /* metro dependency 27 */; const env0_5 = value.ActivityIndicator; const env0_6 = value.View; const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; value = require(9277) /* metro dependency 9277: SecureFramesConstants */; const env0_9 = value.USER_VERIFICATION_CHUNK_SIZE; const env0_10 = value.USER_VERIFICATION_LENGTH; const env0_11 = value.USER_VERIFICATION_NUM_COLUMNS; const env0_12 = value.USER_VERIFIED_TOAST_KEY; value = require(661) /* metro dependency 661: Constants */; const env0_13 = value.AnalyticsLocations; const env0_14 = value.AnalyticsSections; const env0_15 = (require(1309) /* metro dependency 1309: FormConstants */).ANDROID_FOREGROUND_RIPPLE; value = require(33) /* metro dependency 33 */; const env0_16 = value.jsx; const env0_17 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW; const env0_18 = Reflect.apply(createStyles, value, [{container: {'flex': 1, 'padding': 16, 'flexDirection': 'column', backgroundColor: BACKGROUND_BASE_LOW}, footer: {'flex': 1, 'gap': 16, 'justifyContent': 'flex-end'}, footerText: {textAlign: 'center'}, header: {'height': 56, 'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between'}, subtitle: {textAlign: 'center'}, code: {marginTop: 24}, helpMessage: {marginBottom: 16}}]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/native/SecureFramesUserVerificationModal.tsx'); exports.default = SecureFramesUserVerificationModal; } function SecureFramesUserVerificationModal({userId, channelId}) { // fn#72583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9466:912, offset: 0x01d4a86c, size: 1954 bytes, params: 2, frame: 44 var object3; var object2; var RDE0Sc; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const styles = useStyles(); const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() { return UserStore.getUser(userId); }); const value3 = (importDefault(4617) /* metro dependency 4617: NicknameUtils */).useName((require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun72585), null, user); const value4 = (require(9281) /* metro dependency 9281: useSecureFramesPairwiseFingerprint */).useSecureFramesPairwiseFingerprint({userId: userId}); const fingerprint = value4.fingerprint; const env0_3 = fingerprint; const userKey = value4.userKey; const env0_4 = userKey; const value5 = (require(9282) /* metro dependency 9282: useReadableSecureFramesFingerprint */).useReadableSecureFramesFingerprint({fingerprintBase64: fingerprint, chunkSize: USER_VERIFICATION_CHUNK_SIZE, desiredLength: USER_VERIFICATION_LENGTH}); const value6 = (require(9256) /* metro dependency 9256: useIsSecureFramesVerified */).useIsUserSecureFramesVerified({userId: userId, channelId: channelId}); const {isCurrentUserKeyPersistent, isOtherUserKeyPersistent, loading} = (require(9283) /* metro dependency 9283: useIsPersistentSecureFramesFingerprint */).useIsPersistentSecureFramesFingerprint({userId: userId}); const binding = env0_4; const value8 = binding.useCallback(_fun72586, [channelId, userKey, isOtherUserKeyPersistent, value3, userId]); const value9 = binding.useCallback(_fun72587, [userKey, isOtherUserKeyPersistent, userId]); const secureFramesDeeplinkExperimentModule = require(4248) /* metro dependency 4248: SecureFramesDeeplinkExperiment */; const useSecureFramesDeeplinkExperiment = secureFramesDeeplinkExperimentModule.useSecureFramesDeeplinkExperiment; const value10 = binding.useCallback(_fun72588, [channelId, value5, fingerprint, Reflect.apply(useSecureFramesDeeplinkExperiment, secureFramesDeeplinkExperimentModule, [{location: 'SecureFramesUserVerificationModal'}]).enabled, userId]); const value11 = binding.useCallback(_fun72589, [(importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations, channelId, userId]); const useIsSecureFramesKeyInconsistentModule = require(9285) /* metro dependency 9285: useIsSecureFramesKeyInconsistent */; const useAlertIfSecureFramesKeyInconsistent = useIsSecureFramesKeyInconsistentModule.useAlertIfSecureFramesKeyInconsistent; object3 = {channelId: channelId, userId: userId, nickname: value3}; object3.onAlertOpen = (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop; Reflect.apply(useAlertIfSecureFramesKeyInconsistent, useIsSecureFramesKeyInconsistentModule, [object3]); const useMemo = binding.useMemo; const value13 = env0_3(Reflect.apply(useMemo, binding, [_fun72590, [value6]]), 2); const property = value13[0]; const property2 = value13[1]; const value14 = binding.useMemo(_fun72591, [isCurrentUserKeyPersistent, isOtherUserKeyPersistent, value3]); binding.useEffect(_fun72592, [channelId, userId]); const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView; const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; let string = intl.string; const t = (require(1244) /* metro dependency 1244: indexNative */).t; const cpT0Cq = t.cpT0Cq; const ArrowLargeLeftIcon = (require(5284) /* metro dependency 5284: ArrowLargeLeftIcon */).ArrowLargeLeftIcon; const pressableOpacity = ; let r7 = fingerprint != null && value5 != null; if (r7) { object2 = {accessibilityRole: 'button'}; string = intl.string; RDE0Sc = t.RDE0Sc; object2.accessibilityLabel = Reflect.apply(string, intl, [RDE0Sc]); object2.androidRippleConfig = ANDROID_FOREGROUND_RIPPLE; object2.hitSlop = 8; object2.onPress = value10; string = intl.string; RDE0Sc = t.RDE0Sc; r7 = {Reflect.apply(string, intl, [RDE0Sc])}; } const items2 = [{pressableOpacity}{r7}]; const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack; items2[1] = {intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/WPGnF'])}{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.oc2kce, {username: value3})}; items2[2] = {((Component) => )(importDefault(9286) /* metro dependency 9286: SecureFramesExistingVerificationsHelpMessage */)}{((Component) => : ((TextBadge) => )((require(1305) /* metro dependency 1305: native */).TextBadge)} />)(importDefault(9288) /* metro dependency 9288: SecureFramesCode */)}; const text = {value14}; const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button; const r16 = value5 == null || loading; const r14 = value6 ? value9 : value8; string = intl.string; items2[3] = {text}