47 lines
3.5 KiB
TypeScript
47 lines
3.5 KiB
TypeScript
/* Metro module 15465; source: modules/rtc/native/SecureFramesCallVerificationBottomSheet.tsx; dependencies: [31, 4294, 661, 33, 566, 9284, 9212, 9290, 1244, 9275, 2] */
|
|
import RTCConnectionStore from '../../../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */
|
|
import SecureFramesVerificationBottomSheet from './SecureFramesVerificationBottomSheet.tsx'; /* Metro dependency 9290 */
|
|
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 FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun118382(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15662:6, offset: 0x024d9c68, size: 180 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/rtc/native/SecureFramesCallVerificationBottomSheet.tsx');
|
|
exports.default = SecureFramesCallVerificationBottomSheet;
|
|
function SecureFramesCallVerificationBottomSheet({channelId}) { // fn#118383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15662:265, offset: 0x024d9d1c, size: 322 bytes, params: 2, frame: 22
|
|
var object2;
|
|
const value2 = (FluxModule).useStateFromStores([RTCConnectionStore], _fun118384);
|
|
const value3 = ReactModule.useCallback(function(a0) {
|
|
require(dependencyMap[5]).trackE2EECallVerificationShareClicked({channelId: channelId});
|
|
require(dependencyMap[6]).showShareActionSheet({message: a0},
|
|
AnalyticsSections.SECURE_FRAMES_STREAM_BOTTOM_SHEET);
|
|
}, [channelId]);
|
|
object2 = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cTQI5t);
|
|
object2.subtitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MPp7+C']);
|
|
const format = intl.format;
|
|
const wKxADe = (require(1244) /* metro dependency 1244: indexNative */).t.wKxADe;
|
|
const object = {};
|
|
object.helpArticle = (require(9275) /* metro dependency 9275: SecureFramesUtils */).getSecureFramesHelpdeskArticle();
|
|
object2.footer = Reflect.apply(format, intl, [wKxADe, object]);
|
|
object2.epochAuthenticator = value2;
|
|
object2.onShareClick = value3;
|
|
return ((Component) => <Component {...object2} />)(SecureFramesVerificationBottomSheet);
|
|
function _fun118384() { // fn#118384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15662:367, offset: 0x024d9e5e, size: 36 bytes, params: 1, frame: 10
|
|
const value = environment.__proto__;
|
|
return RTCConnectionStore.getSecureFramesState()?.epochAuthenticator;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun118382, 15465, [31, 4294, 661, 33, 566, 9284, 9212, 9290, 1244, 9275,
|
|
2]) /* metro module 15465, dependencies: [31, 4294, 661, 33, 566, 9284, 9212, 9290, 1244, 9275, 2] */;
|