Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,41 @@
|
||||
/* Metro module 15465; source: modules/rtc/native/SecureFramesCallVerificationBottomSheet.tsx; dependencies: [31, 4294, 661, 33, 566, 9284, 9212, 9290, 1244, 9275, 2] */
|
||||
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});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticsSections;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).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 object4;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore], _fun118384);
|
||||
const value3 = env0_3.useCallback(function(a0) {
|
||||
require(dependencyMap[5]).trackE2EECallVerificationShareClicked({channelId: channelId});
|
||||
require(dependencyMap[6]).showShareActionSheet({message: a0},
|
||||
AnalyticsSections.SECURE_FRAMES_STREAM_BOTTOM_SHEET);
|
||||
}, [channelId]);
|
||||
const secureFramesVerificationBottomSheet = importDefault(9290) /* metro dependency 9290: SecureFramesVerificationBottomSheet */;
|
||||
object4 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object4.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cTQI5t);
|
||||
object4.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 object3 = {};
|
||||
object3.helpArticle = (require(9275) /* metro dependency 9275: SecureFramesUtils */).getSecureFramesHelpdeskArticle();
|
||||
object4.footer = Reflect.apply(format, intl, [wKxADe, object3]);
|
||||
object4.epochAuthenticator = value2;
|
||||
object4.onShareClick = value3;
|
||||
return ((Component) => <Component {...object4} />)(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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,137 @@
|
||||
/* Metro module 9288; source: modules/rtc/native/SecureFramesCode.tsx; dependencies: [31, 27, 482, 33, 4501, 697, 4573, 2] */
|
||||
function _fun72648(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9474:6, offset: 0x01d4ca2e, size: 522 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.ActivityIndicator;
|
||||
const env0_4 = value.View;
|
||||
const Fonts = (require(482) /* metro dependency 482: Constants */).Fonts;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const CODE_NORMAL = Fonts.CODE_NORMAL;
|
||||
object2.codeText = {fontFamily: CODE_NORMAL};
|
||||
object2.row = {'flexDirection': 'row', 'justifyContent': 'space-around', 'paddingVertical': 8};
|
||||
let BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object2.divider = {height: 1, backgroundColor: BORDER_SUBTLE};
|
||||
const object3 = {'backgroundColor': null, 'borderTopRightRadius': null, 'borderTopLeftRadius': null,
|
||||
'paddingVertical': 10, 'paddingHorizontal': 16, 'justifyContent': 'space-between', 'alignItems': 'center',
|
||||
'flexDirection': 'row'};
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object3.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
object3.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object3.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.codeHeader = object3;
|
||||
const object6 = {'backgroundColor': null, 'paddingVertical': 8, 'paddingHorizontal': 16};
|
||||
BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object6.backgroundColor = BORDER_SUBTLE;
|
||||
object6.borderBottomRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object6.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.code = object6;
|
||||
object2.loading = {minHeight: 126};
|
||||
const env0_8 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/native/SecureFramesCode.tsx');
|
||||
exports.default = SecureFramesCode;
|
||||
}
|
||||
|
||||
function SecureFramesCodeGrid({chunks, columns}) { // fn#72649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9474:852, offset: 0x01d4cc38, size: 119 bytes, params: 2, frame: 17
|
||||
return (
|
||||
<>
|
||||
{useStyles().useMemo(function() {
|
||||
var r1;
|
||||
var r7;
|
||||
var items2;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var items = [];
|
||||
var Math = global.Math;
|
||||
var value2 = Math.ceil(chunks.length / columns);
|
||||
var value3 = 0;
|
||||
if (value3 < value2) {
|
||||
r1 = value3;
|
||||
reducibleLoop1: while (true) {
|
||||
items2 = [];
|
||||
columnsBinding = columns;
|
||||
if (value3 < columnsBinding) {
|
||||
r7 = value3;
|
||||
reducibleLoop2: while (true) {
|
||||
columnsBinding = columns;
|
||||
value4 = r1 * columnsBinding + r7;
|
||||
items2.push(chunks[value4]);
|
||||
value5 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
|
||||
if (value5 < columnsBinding) {
|
||||
r7 = value5;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
break reducibleLoop2;
|
||||
}
|
||||
}
|
||||
items.push(items2);
|
||||
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
||||
if (value6 < value2) {
|
||||
r1 = value6;
|
||||
continue reducibleLoop1;
|
||||
}
|
||||
break reducibleLoop1;
|
||||
}
|
||||
}
|
||||
return items;
|
||||
}, [chunks, columns]).map(_fun72651)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function SecureFramesCode({title, trailing, chunks, columns}) { // fn#72653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9474:1408, offset: 0x01d4ce63, size: 253 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<>
|
||||
<View style={styles.codeHeader}>
|
||||
<Text color="mobile-text-heading-primary" variant="heading-md/semibold">
|
||||
{title}
|
||||
</Text>
|
||||
{trailing}
|
||||
</View>
|
||||
<View style={styles.code}>
|
||||
{chunks != null ? <SecureFramesCodeGrid chunks={chunks} columns={columns} /> : <ActivityIndicator style={styles.loading} />}
|
||||
</View>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun72651(a0, a1) { // fn#72651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9474:1089, offset: 0x01d4cd2e, size: 195 bytes, params: 3, frame: 22
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return (
|
||||
<View key={'' + a0.join(' ') + '-' + a1}>
|
||||
<View style={styles.row}>
|
||||
{a0.map(_fun72652)}
|
||||
</View>
|
||||
{a1 < env0_3.length - 1 && <View style={styles.divider} />}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun72652(a0, a1) { // fn#72652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9474:1144, offset: 0x01d4cdf1, size: 114 bytes, params: 3, frame: 19
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
style={styles.codeText}
|
||||
variant="text-md/normal"
|
||||
color="text-default"
|
||||
key={'' + a0 + '-' + a1}
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 9291; source: modules/rtc/native/SecureFramesCopyIcon.tsx; dependencies: [31, 33, 3856, 6797, 8341, 4060, 1244, 2] */
|
||||
function _fun72662(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9477:6, offset: 0x01d4d790, size: 135 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/native/SecureFramesCopyIcon.tsx');
|
||||
exports.default = SecureFramesCopyIcon;
|
||||
}
|
||||
|
||||
function SecureFramesCopyIcon({chunks}) { // fn#72663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9477:207, offset: 0x01d4d817, size: 225 bytes, params: 2, frame: 20
|
||||
var object2;
|
||||
const binding = env0_2;
|
||||
const useMemo = binding.useMemo;
|
||||
const value3 = binding.useCallback(_fun72665, [Reflect.apply(useMemo, binding, [function() {
|
||||
return chunks.join(' ');
|
||||
}, [chunks]])]);
|
||||
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
object2 = {};
|
||||
const CopyIcon = (require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon;
|
||||
object2.icon = <CopyIcon size="sm" />;
|
||||
object2.variant = 'secondary';
|
||||
object2.onPress = value3;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.e7GWjQ);
|
||||
object2.size = 'sm';
|
||||
return <IconButton {...object2} />;
|
||||
}
|
||||
|
||||
function _fun72665() { // fn#72665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9477:305, offset: 0x01d4d911, size: 67 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentCopiedToClipboard();
|
||||
(require(6797) /* metro dependency 6797: ClipboardUtilsNative */).copy(env0_1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
/* Metro module 9286; source: modules/rtc/native/SecureFramesExistingVerificationsHelpMessage.tsx; dependencies: [27, 33, 4501, 9287, 1305, 1244, 2] */
|
||||
function _fun72641(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9472:6, offset: 0x01d4c6d7, size: 181 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {width: '100%'}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/native/SecureFramesExistingVerificationsHelpMessage.tsx');
|
||||
exports.default = SecureFramesExistingVerificationsHelpMessage;
|
||||
}
|
||||
|
||||
function SecureFramesExistingVerificationsHelpMessage({style, userId, userKey}) { // fn#72642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9472:182, offset: 0x01d4c78c, size: 248 bytes, params: 2, frame: 22
|
||||
var r0;
|
||||
var HelpMessage;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(9287) /* metro dependency 9287: useSecureFramesUserVerifiedKeysCount */).useSecureFramesUserVerifiedKeysCount({userId: userId,
|
||||
keyToOmit: userKey});
|
||||
if (value2 === 0) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: [styles.container, style]};
|
||||
HelpMessage = (require(1305) /* metro dependency 1305: native */).HelpMessage;
|
||||
var helpMessageProps = {messageType: (require(1305) /* metro dependency 1305: native */).HelpMessageTypes.INFO};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r0 = <View {...viewBindingProps}><HelpMessage {...helpMessageProps}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.uZDkz0,
|
||||
|
||||
{count: value2})}</HelpMessage></View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
/* Metro module 9289; source: modules/rtc/native/SecureFramesStreamVerificationBottomSheet.tsx; dependencies: [31, 4395, 661, 33, 566, 9284, 9212, 9290, 1244, 9275, 2] */
|
||||
function _fun72654(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9475:6, offset: 0x01d4cf60, size: 180 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticsSections;
|
||||
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/native/SecureFramesStreamVerificationBottomSheet.tsx');
|
||||
exports.default = SecureFramesStreamVerificationBottomSheet;
|
||||
}
|
||||
|
||||
function SecureFramesStreamVerificationBottomSheet({channelId, streamKey}) { // fn#72655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9475:267, offset: 0x01d4d014, size: 332 bytes, params: 2, frame: 22
|
||||
var object4;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([StreamRTCConnectionStore],
|
||||
_fun72656);
|
||||
const value3 = env0_3.useCallback(function(a0) {
|
||||
require(dependencyMap[5]).trackE2EEStreamVerificationShareClicked({channelId: channelId});
|
||||
require(dependencyMap[6]).showShareActionSheet({message: a0},
|
||||
AnalyticsSections.SECURE_FRAMES_STREAM_BOTTOM_SHEET);
|
||||
}, [channelId]);
|
||||
const secureFramesVerificationBottomSheet = importDefault(9290) /* metro dependency 9290: SecureFramesVerificationBottomSheet */;
|
||||
object4 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const QogHld = (require(1244) /* metro dependency 1244: indexNative */).t.QogHld;
|
||||
object4.title = Reflect.apply(string, intl, [QogHld]);
|
||||
object4.subtitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qODBkW);
|
||||
const format = intl.format;
|
||||
const property = (require(1244) /* metro dependency 1244: indexNative */).t['H3+ktv'];
|
||||
const object3 = {};
|
||||
object3.helpArticle = (require(9275) /* metro dependency 9275: SecureFramesUtils */).getSecureFramesHelpdeskArticle();
|
||||
object4.footer = Reflect.apply(format, intl, [property, object3]);
|
||||
object4.epochAuthenticator = value2;
|
||||
object4.onShareClick = value3;
|
||||
return ((Component) => <Component {...object4} />)(secureFramesVerificationBottomSheet);
|
||||
}
|
||||
|
||||
function _fun72656() { // fn#72656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9475:383, offset: 0x01d4d160, size: 44 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return StreamRTCConnectionStore.getSecureFramesState(streamKey)?.epochAuthenticator;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,178 @@
|
||||
/* Metro module 9292; source: modules/rtc/native/SecureFramesUserVerificationBottomSheet.tsx; dependencies: [57, 31, 27, 4294, 1878, 9277, 661, 33, 4501, 697, 9281, 9293, 9256, 9283, 566, 9285, 8061, 4617, 9275, 9284, 9294, 9296, 4080, 3857, 4073, 1244, 6275, 6758, 6806, 4573, 9286, 4572, 4578, 2] */
|
||||
function _fun72666(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9478:6, offset: 0x01d4d954, size: 453 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 rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
value = require(9277) /* metro dependency 9277: SecureFramesConstants */;
|
||||
const env0_9 = value.AnalyticsSecureFramesUserVerification;
|
||||
const env0_10 = value.SECURE_FRAMES_PUBLIC_KEY_VERSION;
|
||||
const env0_11 = value.USER_VERIFIED_TOAST_KEY;
|
||||
const env0_12 = (require(661) /* metro dependency 661: Constants */).AnalyticsLocations;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_13 = value.jsx;
|
||||
const env0_14 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
const env0_15 = Reflect.apply(createStyles, value, [{iconContainer: {'height': 80, 'width': 80, 'borderRadius': 40,
|
||||
'alignItems': 'center', 'justifyContent': 'center', 'backgroundColor': null, 'marginBottom': 16,
|
||||
backgroundColor: BACKGROUND_MOD_STRONG}, icon: {'height': 48, 'width': 48}, content: {'padding': 16,
|
||||
'justifyContent': 'center', 'alignItems': 'center'}, subtitle: {'textAlign': 'center', 'marginTop': 8,
|
||||
'marginBottom': 40}, buttons: {marginTop: 40}, helpMessage: {marginTop: 16}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/native/SecureFramesUserVerificationBottomSheet.tsx');
|
||||
exports.default = SecureFramesUserVerificationBottomSheet;
|
||||
}
|
||||
|
||||
function SecureFramesUserVerificationBottomSheet({userId, channelId, guildId, fingerprint}) { // fn#72667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9478:745, offset: 0x01d4db19, size: 1325 bytes, params: 2, frame: 35
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
const env0_3 = styles;
|
||||
const value2 = (require(9281) /* metro dependency 9281: useSecureFramesPairwiseFingerprint */).useSecureFramesPairwiseFingerprint({userId: userId});
|
||||
const userKey = value2.userKey;
|
||||
const env0_4 = userKey;
|
||||
const fingerprint2 = value2.fingerprint;
|
||||
const loading = value2.loading;
|
||||
const value3 = (require(9293) /* metro dependency 9293: useIsSecureFramesUIEnabled */).useIsSecureFramesUIEnabled({channelId: channelId});
|
||||
const value4 = (require(9256) /* metro dependency 9256: useIsSecureFramesVerified */).useIsUserSecureFramesVerified({userId: userId,
|
||||
channelId: channelId});
|
||||
const value5 = (require(9283) /* metro dependency 9283: useIsPersistentSecureFramesFingerprint */).useIsPersistentSecureFramesFingerprint({userId: userId});
|
||||
const isOtherUserKeyPersistent = value5.isOtherUserKeyPersistent;
|
||||
const loading2 = value5.loading;
|
||||
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore], function() {
|
||||
return RTCConnectionStore.isConnected();
|
||||
});
|
||||
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore], function() {
|
||||
return RTCConnectionStore.isUserConnected(userId);
|
||||
});
|
||||
const value8 = (require(9285) /* metro dependency 9285: useIsSecureFramesKeyInconsistent */).useIsSecureFramesKeyInconsistent({userId: userId});
|
||||
const binding = env0_4;
|
||||
let useMemo = binding.useMemo;
|
||||
const value9 = Reflect.apply(useMemo, binding, [_fun72670, [fingerprint, channelId, fingerprint2, value6, value8,
|
||||
value7, value3, value4]]);
|
||||
binding.useEffect(_fun72671, [userId]);
|
||||
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getUser(userId);
|
||||
});
|
||||
const value10 = (importDefault(4617) /* metro dependency 4617: NicknameUtils */).useName(guildId, channelId, user);
|
||||
useMemo = binding.useMemo;
|
||||
const value12 = env0_3(Reflect.apply(useMemo, binding, [_fun72673, [value9, value10]]), 2);
|
||||
const property = value12[0];
|
||||
const property2 = value12[1];
|
||||
binding.useEffect(_fun72674, [channelId, value9, userId]);
|
||||
const value13 = binding.useMemo(_fun72675, [value9, styles.icon]);
|
||||
const value14 = binding.useCallback(_fun72676, []);
|
||||
const value15 = binding.useCallback(_fun72677, [channelId, userKey, isOtherUserKeyPersistent, value10, userId]);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
object2 = {startExpanded: true};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const ActionSheetCloseButton = (require(6806) /* metro dependency 6806: ActionSheetCloseButtonNative */).ActionSheetCloseButton;
|
||||
object2.header = <BottomSheetTitleHeader title={null} leading={<ActionSheetCloseButton onPress={value14} />} />;
|
||||
const items2 = [<View style={styles.iconContainer}>{loading2 || loading ? <ActivityIndicator /> : fingerprint2 != null ? value13 : <ActivityIndicator />}</View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary">{property}</Text>;
|
||||
items2[2] = <Text style={styles.subtitle} variant="text-md/medium" color="text-default">{property2}</Text>;
|
||||
items2[3] = ((Component) => <Component style={styles.helpMessage} userId={userId} userKey={userKey} />)(importDefault(9286) /* metro dependency 9286: SecureFramesExistingVerificationsHelpMessage */);
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[4] = <Stack spacing={12} style={styles.buttons}><Button variant="primary" onPress={value15} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['0tvNAn'])} disabled={loading2 || value9 !== AnalyticsSecureFramesUserVerification.MATCH} /><Button variant="secondary" onPress={value14} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])} /></Stack>;
|
||||
return (
|
||||
<BottomSheet {...object2}>
|
||||
<View style={styles.content}>
|
||||
{items2}
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun72670() { // fn#72670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9478:1359, offset: 0x01d4e074, size: 177 bytes, params: 1, frame: 5
|
||||
return channelId == null ? AnalyticsSecureFramesUserVerification.CURRENT_USER_DISCONNECTED : env0_9 ? env0_10 ? env0_6 ? env0_7 ? AnalyticsSecureFramesUserVerification.OTHER_USER_ALREADY_VERIFIED : env0_11 ? AnalyticsSecureFramesUserVerification.OTHER_USER_INCONSISTENT_KEYS : fingerprint !== fingerprint ? AnalyticsSecureFramesUserVerification.FINGERPRINT_MISMATCH : AnalyticsSecureFramesUserVerification.MATCH : AnalyticsSecureFramesUserVerification.UNABLE_TO_VERIFY : AnalyticsSecureFramesUserVerification.OTHER_USER_DISCONNECTED : AnalyticsSecureFramesUserVerification.CURRENT_USER_DISCONNECTED;
|
||||
}
|
||||
|
||||
function _fun72671() { // fn#72671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9478:1586, offset: 0x01d4e125, size: 45 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
(require(8061) /* metro dependency 8061: UserActionCreators */).getUser(userId);
|
||||
}
|
||||
|
||||
function _fun72673() { // fn#72673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9478:1715, offset: 0x01d4e152, size: 50 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (require(9275) /* metro dependency 9275: SecureFramesUtils */).getUserVerifyStateText(env0_12, env0_13);
|
||||
}
|
||||
|
||||
function _fun72674() { // fn#72674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9478:1800, offset: 0x01d4e184, size: 113 bytes, params: 1, frame: 15
|
||||
const binding = env0_12;
|
||||
const OTHER_USER_ALREADY_VERIFIED = AnalyticsSecureFramesUserVerification.OTHER_USER_ALREADY_VERIFIED;
|
||||
if (OTHER_USER_ALREADY_VERIFIED !== binding) {
|
||||
var MATCH = AnalyticsSecureFramesUserVerification.MATCH;
|
||||
if (MATCH === binding) {
|
||||
return undefined;
|
||||
}
|
||||
(require(9284) /* metro dependency 9284: SecureFramesTracking */).trackE2EEUserVerificationFailed({channelId: channelId,
|
||||
|
||||
userId: userId, reason: env0_12, keyVersion: SECURE_FRAMES_PUBLIC_KEY_VERSION});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun72675() { // fn#72675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9478:1994, offset: 0x01d4e1f5, size: 210 bytes, params: 1, frame: 18
|
||||
const CheckmarkLargeBoldIcon = (require(9294) /* metro dependency 9294: CheckmarkLargeBoldIcon */).CheckmarkLargeBoldIcon;
|
||||
const binding = env0_12;
|
||||
const OTHER_USER_ALREADY_VERIFIED = AnalyticsSecureFramesUserVerification.OTHER_USER_ALREADY_VERIFIED;
|
||||
if (OTHER_USER_ALREADY_VERIFIED === binding) {
|
||||
return (
|
||||
<CheckmarkLargeBoldIcon
|
||||
style={styles.icon}
|
||||
color={(importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_POSITIVE}
|
||||
/>
|
||||
);
|
||||
}
|
||||
const MATCH = AnalyticsSecureFramesUserVerification.MATCH;
|
||||
if (MATCH === binding) {
|
||||
return (
|
||||
<CheckmarkLargeBoldIcon
|
||||
style={styles.icon}
|
||||
color={(importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_POSITIVE}
|
||||
/>
|
||||
);
|
||||
}
|
||||
const XLargeBoldIcon = (require(9296) /* metro dependency 9296: XLargeBoldIcon */).XLargeBoldIcon;
|
||||
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
|
||||
return <XLargeBoldIcon style={styles.icon} color={TEXT_FEEDBACK_CRITICAL} />;
|
||||
}
|
||||
|
||||
function _fun72676() { // fn#72676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9478:2291, offset: 0x01d4e2c7, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function _fun72677() { // fn#72677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9478:2346, offset: 0x01d4e2ec, size: 253 bytes, params: 1, frame: 24
|
||||
var value4;
|
||||
var moduleValue;
|
||||
var defaultImport2;
|
||||
var open;
|
||||
var object2;
|
||||
var intl;
|
||||
if (channelId != null && userKey != null) {
|
||||
value4 = environment.__proto__;
|
||||
moduleValue = require(9275) /* metro dependency 9275: SecureFramesUtils */;
|
||||
moduleValue.addVerification(userId, userKey, isOtherUserKeyPersistent, channelId, AnalyticsLocations.DEEP_LINK);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
defaultImport2 = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
||||
open = defaultImport2.open;
|
||||
object2 = {};
|
||||
object2.key = USER_VERIFIED_TOAST_KEY;
|
||||
object2.iconColor = 'text-feedback-positive';
|
||||
object2.IconComponent = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.content = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.Gwu134,
|
||||
{username: env0_13});
|
||||
Reflect.apply(open, defaultImport2, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,232 @@
|
||||
/* 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 = <PressableOpacity accessibilityRole="button" accessibilityLabel={Reflect.apply(string,
|
||||
intl,
|
||||
[cpT0Cq])} androidRippleConfig={ANDROID_FOREGROUND_RIPPLE} hitSlop={8} onPress={value11}><ArrowLargeLeftIcon size="md" /></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 = <PressableOpacity {...object2}><Text variant="text-md/semibold" color="text-brand">{Reflect.apply(string,
|
||||
intl,
|
||||
[RDE0Sc])}</Text></PressableOpacity>;
|
||||
}
|
||||
const items2 = [<View style={styles.header}>{pressableOpacity}{r7}</View>];
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
items2[1] = <Stack spacing={8} justify="center" align="center" direction="vertical"><Text variant="heading-xl/bold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/WPGnF'])}</Text><Text style={styles.subtitle} variant="text-md/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.oc2kce,
|
||||
{username: value3})}</Text></Stack>;
|
||||
items2[2] = <View style={styles.code}>{((Component) => <Component style={styles.helpMessage} userId={userId} userKey={userKey} />)(importDefault(9286) /* metro dependency 9286: SecureFramesExistingVerificationsHelpMessage */)}{((Component) => <Component title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/WPGnF'])} chunks={value5} columns={USER_VERIFICATION_NUM_COLUMNS} trailing={value5 == null ? <ActivityIndicator /> : ((TextBadge) => <TextBadge color={property2} text={property} />)((require(1305) /* metro dependency 1305: native */).TextBadge)} />)(importDefault(9288) /* metro dependency 9288: SecureFramesCode */)}</View>;
|
||||
const text = <Text style={styles.footerText} variant="text-xs/normal" color="text-default">{value14}</Text>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const r16 = value5 == null || loading;
|
||||
const r14 = value6 ? value9 : value8;
|
||||
string = intl.string;
|
||||
items2[3] = <View style={styles.footer}>{text}<Button disabled={r16} variant="primary" onPress={r14} text={value6 ? Reflect.apply(string,
|
||||
intl, [t['Osb+/n']]) : Reflect.apply(string, intl, [t['0tvNAn']])} /></View>;
|
||||
return (
|
||||
<SafeAreaPaddingView
|
||||
top
|
||||
bottom
|
||||
style={styles.container}
|
||||
>
|
||||
{items2}
|
||||
</SafeAreaPaddingView>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun72585() { // fn#72585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9466:1078, offset: 0x01d4b00e, size: 47 bytes, params: 1, frame: 11
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
value = ChannelStore.getChannel(channelId);
|
||||
if (value == null) {
|
||||
r0 = undefined;
|
||||
} else {
|
||||
value = value.getGuildId();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun72586() { // fn#72586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9466:1575, offset: 0x01d4b03d, size: 239 bytes, params: 1, frame: 24
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var defaultImport2;
|
||||
var open;
|
||||
var object2;
|
||||
var intl;
|
||||
if (userKey != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(9275) /* metro dependency 9275: SecureFramesUtils */;
|
||||
moduleValue.addVerification(userId, userKey, isOtherUserKeyPersistent, channelId,
|
||||
AnalyticsLocations.E2EE_USER_VERIFY_MODAL);
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
defaultImport2 = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
||||
open = defaultImport2.open;
|
||||
object2 = {};
|
||||
object2.key = USER_VERIFIED_TOAST_KEY;
|
||||
object2.iconColor = 'text-feedback-positive';
|
||||
object2.IconComponent = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.content = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.Gwu134,
|
||||
{username: env0_2});
|
||||
Reflect.apply(open, defaultImport2, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun72587() { // fn#72587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9466:1868, offset: 0x01d4b12c, size: 93 bytes, params: 1, frame: 18
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (userKey != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(9275) /* metro dependency 9275: SecureFramesUtils */;
|
||||
moduleValue.deleteVerification(userId, userKey, isOtherUserKeyPersistent);
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun72588() { // fn#72588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9466:2063, offset: 0x01d4b189, size: 228 bytes, params: 1, frame: 16
|
||||
var r4;
|
||||
var value2;
|
||||
var moduleValue2;
|
||||
if (fingerprint != null) {
|
||||
if (env0_5 != null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
(require(9284) /* metro dependency 9284: SecureFramesTracking */).trackE2EEUserVerificationShareClicked({userId: userId,
|
||||
|
||||
|
||||
channelId: channelId});
|
||||
if (enabled) {
|
||||
moduleValue2 = require(9275) /* metro dependency 9275: SecureFramesUtils */;
|
||||
r4 = moduleValue2.getUserVerificationDeeplink(userId, fingerprint);
|
||||
} else {
|
||||
r4 = env0_5.join(' ');
|
||||
}
|
||||
(require(9212) /* metro dependency 9212: showShareActionSheetAndroid */).showShareActionSheet({message: r4},
|
||||
AnalyticsSections.SECURE_FRAMES_VOICE_BOTTOM_SHEET);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun72589() { // fn#72589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9466:2380, offset: 0x01d4b26d, size: 91 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
(importDefault(8743) /* metro dependency 8743: showUserProfileActionSheet */)({userId: userId, channelId: channelId,
|
||||
isVoiceContext: true, sourceAnalyticsLocations: analyticsLocations});
|
||||
}
|
||||
|
||||
function _fun72590() { // fn#72590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9466:2613, offset: 0x01d4b2c8, size: 162 bytes, params: 1, frame: 16
|
||||
const BadgeColors = (require(1305) /* metro dependency 1305: native */).BadgeColors;
|
||||
const binding = env0_6;
|
||||
const value = environment.__proto__;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
return binding ? [Reflect.apply(string, intl, [t.UNUuem]), BadgeColors.INFO] : [Reflect.apply(string, intl,
|
||||
[t.y2b7CA]), BadgeColors.DANGER];
|
||||
}
|
||||
|
||||
function _fun72591() { // fn#72591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9466:2799, offset: 0x01d4b36a, size: 70 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (require(9275) /* metro dependency 9275: SecureFramesUtils */).getUserVerificationFooterText({isCurrentUserKeyPersistent: isCurrentUserKeyPersistent,
|
||||
isOtherUserKeyPersistent: isOtherUserKeyPersistent, otherUserNickname: env0_2});
|
||||
}
|
||||
|
||||
function _fun72592() { // fn#72592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9466:2951, offset: 0x01d4b3b0, size: 59 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
(require(9284) /* metro dependency 9284: SecureFramesTracking */).trackE2EEUserVerificationViewed({userId: userId,
|
||||
channelId: channelId});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Metro module 9290; source: modules/rtc/native/SecureFramesVerificationBottomSheet.tsx; dependencies: [31, 27, 9277, 33, 4501, 697, 9282, 4080, 6275, 6758, 6806, 5278, 1244, 4573, 4572, 6705, 9288, 9291, 2] */
|
||||
function _fun72658(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9476:6, offset: 0x01d4d1ea, size: 367 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
let value = require(9277) /* metro dependency 9277: SecureFramesConstants */;
|
||||
const env0_5 = value.EPOCH_AUTHENTICATOR_CHUNK_SIZE;
|
||||
const env0_6 = value.EPOCH_AUTHENTICATOR_COLUMNS;
|
||||
const env0_7 = value.EPOCH_AUTHENTICATOR_LENGTH;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
|
||||
const env0_10 = Reflect.apply(createStyles, value, [{iconContainer: {'height': 80, 'width': 80, 'borderRadius': 40,
|
||||
'alignItems': 'center', 'justifyContent': 'center', backgroundColor: BACKGROUND_MOD_STRONG},
|
||||
icon: {'height': 48, 'width': 48}, share: {height: 24}, content: {padding: 16}, subtitle: {textAlign: 'center'},
|
||||
footer: {'textAlign': 'center', 'marginTop': 8}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/native/SecureFramesVerificationBottomSheet.tsx');
|
||||
exports.default = SecureFramesVerificationBottomSheet;
|
||||
}
|
||||
|
||||
function SecureFramesVerificationBottomSheet({title, subtitle, footer, epochAuthenticator, onShareClick}) { // fn#72659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9476:668, offset: 0x01d4d359, size: 961 bytes, params: 2, frame: 34
|
||||
var object4;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(9282) /* metro dependency 9282: useReadableSecureFramesFingerprint */).useReadableSecureFramesFingerprint({fingerprintBase64: epochAuthenticator,
|
||||
chunkSize: EPOCH_AUTHENTICATOR_CHUNK_SIZE, desiredLength: EPOCH_AUTHENTICATOR_LENGTH});
|
||||
const binding = env0_3;
|
||||
const value3 = binding.useCallback(_fun72660, [value2, onShareClick]);
|
||||
const value4 = binding.useCallback(_fun72661, []);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
object4 = {startExpanded: true};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const object3 = {title: null};
|
||||
const ActionSheetCloseButton = (require(6806) /* metro dependency 6806: ActionSheetCloseButtonNative */).ActionSheetCloseButton;
|
||||
object3.leading = <ActionSheetCloseButton onPress={value4} />;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const pressableOpacityProps = {style: styles.share, hitSlop: 8, onPress: value3, disabled: value2 == null,
|
||||
accessibilityRole: 'button'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
let RDE0Sc = (require(1244) /* metro dependency 1244: indexNative */).t.RDE0Sc;
|
||||
pressableOpacityProps.accessibilityLabel = Reflect.apply(string, intl, [RDE0Sc]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
string = intl.string;
|
||||
RDE0Sc = (require(1244) /* metro dependency 1244: indexNative */).t.RDE0Sc;
|
||||
object3.trailing = <PressableOpacity {...pressableOpacityProps}><Text variant="text-md/semibold" color="text-brand">{Reflect.apply(string,
|
||||
intl, [RDE0Sc])}</Text></PressableOpacity>;
|
||||
object4.header = <BottomSheetTitleHeader {...object3} />;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const LockIcon = (require(6705) /* metro dependency 6705: LockIcon */).LockIcon;
|
||||
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
||||
const items3 = [<View style={styles.iconContainer}><LockIcon style={styles.icon} color={TEXT_SUBTLE} /></View>];
|
||||
items3[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary">{title}</Text>;
|
||||
items3[2] = <Text style={styles.subtitle} variant="text-md/medium" color="text-default">{subtitle}</Text>;
|
||||
const items2 = [<Stack spacing={8} justify="center" align="center" direction="vertical">{items3}</Stack>];
|
||||
items2[1] = ((Component) => <Component title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cgBTyO)} trailing={value2 != null && ((Component) => <Component chunks={value2} />)(importDefault(9291) /* metro dependency 9291: SecureFramesCopyIcon */)} chunks={value2} columns={EPOCH_AUTHENTICATOR_COLUMNS} />)(importDefault(9288) /* metro dependency 9288: SecureFramesCode */);
|
||||
items2[2] = <Text style={styles.footer} variant="text-xs/normal" color="text-muted">{footer}</Text>;
|
||||
return (
|
||||
<BottomSheet {...object4}>
|
||||
<View style={styles.content}>
|
||||
{items2}
|
||||
</View>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun72660() { // fn#72660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9476:903, offset: 0x01d4d71a, size: 81 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
var value3;
|
||||
if (env0_1 != null) {
|
||||
value2 = env0_1.join(' ');
|
||||
value3 = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
onShareClick(value2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun72661() { // fn#72661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9476:996, offset: 0x01d4d76b, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user