// Module ID: 8813 // Function ID: 8814 // Name: SecureFramesPlatformUtils // Dependencies: [2064, 5109, 8810, 1085, 5941, 8814, 2000, 5055, 8824, 1126, 5299, 1200, 6943, 8827, 2] // Module 8813 (SecureFramesPlatformUtils) import intl3 from "intl" /* 1126 */; import native from "native" /* 1200 */; import asyncRequire from "asyncRequire" /* 2000 */; import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 5055 */; import actions_AlertActionCreatorsDefault from "actions/AlertActionCreators" /* 5299 */; import ModalActionCreatorsDefault from "ModalActionCreators" /* 5941 */; import safeTransitionToDefault from "safeTransitionTo" /* 6943 */; import ChannelStore from "ChannelStore" /* 2064 */; import RTCConnectionStore from "RTCConnectionStore" /* 5109 */; import SecureFramesConstants from "SecureFramesConstants" /* 8810 */; import Constants from "Constants" /* 1085 */; import size from "module_2" /* 2 */; let c9; let hasOwnProperty; let metroImportAll; let metroImportDefault; let metroRequire; ({ SECURE_FRAMES_LINKING_BOTTOM_SHEET_KEY: hasOwnProperty, SECURE_FRAMES_STREAM_VERIFICATION_BOTTOM_SHEET_KEY: metroRequire, SECURE_FRAMES_USER_VERIFICATION_MODAL_KEY: metroImportDefault } = SecureFramesConstants); ({ ME: metroImportAll, Routes: c9 } = Constants); let obj = { openSecureFramesStreamVerification(streamKey, channelId) { const obj = ActionSheetActionCreatorsDefault; const obj2 = { streamKey, channelId }; obj.openLazy(asyncRequire(8824, dependencyMap.paths), metroRequire, obj2); }, openSecureFramesUserVerificationModal(id, id2, fn) { if (fn()) { const obj2 = { userId: id, channelId: id2 }; const obj = ModalActionCreatorsDefault; obj.pushLazy(asyncRequire(8814, dependencyMap.paths), obj2, metroImportDefault); } }, openSecureFramesUpdateConfirmation(confirmText) { let intl2; let subtitle; let title; confirmText = confirmText.confirmText; ({ title, subtitle } = confirmText); if (confirmText === undefined) { let tmp = require; const intl = intl3.intl; confirmText = intl.string(intl3.t["cY+Oob"]); } const onConfirm = confirmText.onConfirm; const tmp3 = actions_AlertActionCreatorsDefault; const _confirm = tmp3.confirm; const obj = { title, body: subtitle, confirmText, cancelText: intl2.string(intl3.t["ETE/oC"]), confirmColor: native.ButtonColors.RED }; intl2 = intl3.intl; const _confirmResult = _confirm(obj); _confirmResult.then((result) => { const tmp = result; if (tmp) { onConfirm(); } }); }, handleSecureFramesUserVerificationLink(arg0) { let fingerprint; let intl; let intl2; let userId; ({ userId, fingerprint } = arg0); const channelId = RTCConnectionStore.getChannelId(); const channel = ChannelStore.getChannel(channelId); let guildId; if (channel != null) { guildId = channel.getGuildId(); } if (guildId == null) { guildId = metroImportAll; } if (null != channelId) { if (null != channel) { const tmp7 = safeTransitionToDefault; tmp7(React4.CHANNEL(guildId, channelId)); const obj = { userId, channelId, guildId, fingerprint }; const obj3 = ActionSheetActionCreatorsDefault; obj3.openLazy(asyncRequire(8827, dependencyMap.paths), hasOwnProperty, obj); } } const obj2 = { title: intl.string(intl3.t["5ICxE6"]), body: intl2.string(intl3.t["v1eXp/"]) }; const show = actions_AlertActionCreatorsDefault.show; actions_AlertActionCreatorsDefault; intl = intl3.intl; intl2 = intl3.intl; show(obj2); } }; const result = size.fileFinishedImporting("modules/rtc/SecureFramesPlatformUtils.native.tsx"); export default obj;