Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,215 @@
|
||||
/* Metro module 13255; source: modules/webauthn/native/nav_steps/PasskeyInitStep.tsx; dependencies: [57, 31, 27, 13243, 13244, 33, 4501, 697, 566, 13245, 4573, 1244, 6261, 8341, 4071, 4080, 13256, 1962, 9646, 6231, 6238, 13258, 1484, 5084, 8980, 5277, 7972, 2] */
|
||||
function _fun101070(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:6, offset: 0x02206f52, size: 521 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
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.Image;
|
||||
const env0_6 = value.View;
|
||||
const webAuthnStore = importDefault(13243) /* metro dependency 13243: WebAuthnStore */;
|
||||
const env0_8 = (require(13244) /* metro dependency 13244: WebAuthnConstants */).WebAuthnScreens;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object5 = {'flex': 1, 'flexDirection': 'column', 'alignItems': 'stretch', 'justifyContent': 'space-between'};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.marginLeft = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.marginRight = PX_16;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.marginTop = PX_8;
|
||||
object3.container = object5;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.upsellContainer = {marginTop: PX_16, alignItems: 'center'};
|
||||
const object6 = {};
|
||||
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
||||
object6.color = TEXT_SUBTLE;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.marginTop = PX_16;
|
||||
object6.textAlign = 'center';
|
||||
object3.upsellText = object6;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.iconButtonGroup = {flexDirection: 'row', paddingVertical: PX_8};
|
||||
object3.keychainImage = {'height': 125, 'width': 161};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/nav_steps/PasskeyInitStep.tsx');
|
||||
exports.default = PasskeyInitStep;
|
||||
}
|
||||
|
||||
function CredentialList({navigation}) { // fn#101071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:693, offset: 0x0220715b, size: 490 bytes, params: 2, frame: 23
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items2;
|
||||
var env0_3Binding = undefined;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
|
||||
const credentials = Reflect.apply(useStateFromStoresObject, fluxModule, [[WebAuthnStore], function() {
|
||||
var object = {};
|
||||
object.credentials = WebAuthnStore.getCredentials();
|
||||
return object;
|
||||
}]).credentials;
|
||||
const styles = useStyles();
|
||||
var [env0_2, env0_3] = env0_3Binding(env0_4.useState(false), 2);
|
||||
if (credentials.length === 0) {
|
||||
var viewBindingProps = {style: styles.upsellContainer};
|
||||
items2 = [<Image source={importDefault(13245) /* metro dependency 13245 */} style={styles.keychainImage} />];
|
||||
items2[1] = ((Text) => <Text variant="text-md/normal" style={styles.upsellText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.FSNwFW)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
return (
|
||||
<View {...viewBindingProps}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
return (
|
||||
<TableRowGroup
|
||||
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4RIqrQ'])}
|
||||
hasIcons={false}
|
||||
>
|
||||
{credentials.map(_fun101076)}
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function PasskeyInitStep(a0) { // fn#101077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2141, offset: 0x0220766d, size: 286 bytes, params: 2, frame: 21
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
|
||||
throw undefined;
|
||||
}
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const styles = useStyles();
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
|
||||
env0_4.useEffect(_fun101079, [Reflect.apply(useStateFromStoresObject, fluxModule, [[WebAuthnStore], function() {
|
||||
var object = {};
|
||||
object.hasFetchedCredentials = WebAuthnStore.hasFetchedCredentials();
|
||||
return object;
|
||||
}]).hasFetchedCredentials]);
|
||||
env0_4.useLayoutEffect(_fun101080, [value2]);
|
||||
const Form = (require(7972) /* metro dependency 7972: native */).Form;
|
||||
return (
|
||||
<Form>
|
||||
<View style={styles.container}>
|
||||
<CredentialList navigation={value2} />
|
||||
</View>
|
||||
</Form>
|
||||
);
|
||||
}
|
||||
|
||||
function credentialTrailer(a0) { // fn#101072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:1097, owner: CredentialList.credentialTrailer, offset: 0x02207345, size: 422 bytes, params: 2, frame: 28
|
||||
const env0_0 = a0;
|
||||
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
|
||||
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
const object = {variant: 'secondary'};
|
||||
const TrashIcon = (require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon;
|
||||
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
|
||||
object.icon = <TrashIcon color={TEXT_FEEDBACK_CRITICAL} />;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const N86XcP = (require(1244) /* metro dependency 1244: indexNative */).t.N86XcP;
|
||||
object.accessibilityLabel = Reflect.apply(string, intl, [N86XcP]);
|
||||
object.size = 'sm';
|
||||
object.disabled = env0_2;
|
||||
object.loading = env0_2;
|
||||
object.onPress = onPress_101073;
|
||||
const iconButton = <IconButton {...object} />;
|
||||
const PencilIcon = (require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon;
|
||||
return (
|
||||
<ButtonGroup style={styles.iconButtonGroup}>
|
||||
{iconButton}
|
||||
<IconButton
|
||||
variant="secondary"
|
||||
icon={<PencilIcon />}
|
||||
accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bt75uw)}
|
||||
size="sm"
|
||||
disabled={env0_2}
|
||||
loading={env0_2}
|
||||
onPress={onPress_101074}
|
||||
/>
|
||||
</ButtonGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun101076(a0) { // fn#101076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:1846, offset: 0x022075a9, size: 196 bytes, params: 2, frame: 23
|
||||
var r5;
|
||||
var intl;
|
||||
var format;
|
||||
var property;
|
||||
let value = environment.__proto__;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const tableRowProps = {label: a0.name, trailing: credentialTrailer(a0)};
|
||||
const last_used = a0.last_used;
|
||||
const value3 = null;
|
||||
if (value3 != last_used) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
format = intl.format;
|
||||
property = (require(1244) /* metro dependency 1244: indexNative */).t['7JgxF5'];
|
||||
value = require(13258) /* metro dependency 13258: AuthSessionsUtils */;
|
||||
value = Reflect.apply(format, intl, [property, {lastUsed: value.formatDate(a0.last_used)}]);
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = value3;
|
||||
}
|
||||
tableRowProps.subLabel = r5;
|
||||
return <TableRow {...tableRowProps} key={a0.id} />;
|
||||
}
|
||||
|
||||
function _fun101079() { // fn#101079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2347, offset: 0x022077a5, size: 49 bytes, params: 1, frame: 11
|
||||
var value;
|
||||
if (!hasFetchedCredentials) {
|
||||
value = environment.__proto__;
|
||||
value = require(5084) /* metro dependency 5084: WebAuthnActionCreators */;
|
||||
value.fetchWebAuthnCredentials();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun101080() { // fn#101080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2417, offset: 0x022077d6, size: 38 bytes, params: 1, frame: 12
|
||||
const binding = env0_0;
|
||||
binding.setOptions({headerRight: headerRight_101081});
|
||||
}
|
||||
|
||||
function credentialTrailerOnPress() { // fn#101073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:1406, owner: CredentialList.credentialTrailer.onPress, offset: 0x022074eb, size: 115 bytes, params: 1, frame: 16
|
||||
let value = environment.__proto__.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[15]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[17]);
|
||||
value = value(dependencyMap[16], dependencyMap.paths);
|
||||
return Reflect.apply(openLazy, defaultImport, [value, 'WEBAUTHN_DELETE_SHEET_KEY', {credential: env0_0,
|
||||
deleting: env1_2, setDeleting: env1_3}]);
|
||||
}
|
||||
|
||||
function credentialTrailerOnPress_101074() { // fn#101074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:1695, owner: CredentialList.credentialTrailer.onPress, offset: 0x0220755e, size: 49 bytes, params: 1, frame: 14
|
||||
const navigationBinding = navigation;
|
||||
const push = navigationBinding.push;
|
||||
const EDIT = WebAuthnScreens.EDIT;
|
||||
Reflect.apply(push, navigationBinding, [EDIT, {credential: env0_0}]);
|
||||
}
|
||||
|
||||
function headerRight_101081() { // fn#101081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2448, offset: 0x022077fc, size: 147 bytes, params: 1, frame: 18
|
||||
var HeaderActionButton;
|
||||
var intl;
|
||||
if ((require(8980) /* metro dependency 8980: MFAUtils */).hasWebAuthn) {
|
||||
HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderActionButton
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OYkgVk)}
|
||||
onPress={onPress_101082}
|
||||
foregroundRipple
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function headerRight_101081OnPress() { // fn#101082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2568, owner: headerRight_101081.onPress, offset: 0x0220788f, size: 34 bytes, params: 1, frame: 11
|
||||
const binding = env2_0;
|
||||
const push = binding.push;
|
||||
const REGISTER = WebAuthnScreens.REGISTER;
|
||||
Reflect.apply(push, binding, [REGISTER]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,168 @@
|
||||
/* Metro module 13248; source: modules/webauthn/native/nav_steps/PasskeyUpsellView.tsx; dependencies: [57, 31, 27, 13244, 661, 1376, 33, 4501, 697, 1484, 1244, 13249, 13250, 5282, 1948, 6618, 13253, 4573, 477, 6766, 4578, 8978, 2] */
|
||||
function _fun101036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:6, offset: 0x022056dc, size: 730 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
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.View;
|
||||
const env0_6 = value.Image;
|
||||
const env0_7 = value.ScrollView;
|
||||
const env0_8 = (require(13244) /* metro dependency 13244: WebAuthnConstants */).WebAuthnScreens;
|
||||
const env0_9 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
|
||||
const env0_10 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value.jsx;
|
||||
const env0_12 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {'flex': 1, 'flexDirection': 'column', backgroundColor: BACKGROUND_BASE_LOW};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.scrollViewContainer = {'flexGrow': 1, 'justifyContent': 'space-between', paddingHorizontal: PX_16};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.headerContainer = {'alignItems': 'center', 'justifyContent': 'center', gap: PX_16};
|
||||
object2.headerImage = {'height': 190, 'width': 220, 'resizeMode': 'contain'};
|
||||
object2.headerText = {textAlign: 'center'};
|
||||
const object3 = {};
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object3.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
let PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object3.width = PX_32;
|
||||
PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object3.height = PX_32;
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object2.circleIcon = object3;
|
||||
const object4 = {};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object4.gap = PX_24;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.marginLeft = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.marginRight = PX_8;
|
||||
object2.listContainer = object4;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.row = {'flexDirection': 'row', 'gap': null, 'alignItems': 'center', gap: PX_8};
|
||||
object2.text = {flex: 1};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.buttonContainer = {gap: PX_16, alignItems: 'center'};
|
||||
const env0_13 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/nav_steps/PasskeyUpsellView.tsx');
|
||||
exports.default = PasskeyUpsellView;
|
||||
}
|
||||
|
||||
function PasskeyUpsellView() { // fn#101037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:1169, offset: 0x022059b6, size: 1426 bytes, params: 1, frame: 40
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, ['']);
|
||||
const binding2 = env0_3;
|
||||
const value4 = binding2(value3, 2);
|
||||
value4[0];
|
||||
const env0_1 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property = value5[0];
|
||||
const env0_2 = value5[1];
|
||||
const closure = onPress_101039;
|
||||
binding.useLayoutEffect(_fun101040, [value2]);
|
||||
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport.getArticleURL;
|
||||
const SETTING_UP_TWO_FACTOR = HelpdeskArticles.SETTING_UP_TWO_FACTOR;
|
||||
const value6 = Reflect.apply(getArticleURL, defaultImport, [SETTING_UP_TWO_FACTOR]);
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
const items3 = [<Image source={importDefault(13253) /* metro dependency 13253 */} style={styles.headerImage} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
let headerText = styles.headerText;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const CjleBl = t.CjleBl;
|
||||
items3[1] = <Text accessibilityRole="header" variant="heading-xl/bold" color="mobile-text-heading-primary" style={headerText}>{Reflect.apply(string,
|
||||
intl, [CjleBl])}</Text>;
|
||||
headerText = styles.headerText;
|
||||
const isIOS2 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS();
|
||||
string = intl.string;
|
||||
items3[2] = <Text variant="heading-md/normal" color="text-default" style={headerText}>{isIOS2 ? Reflect.apply(string,
|
||||
intl, [t['7yxR9t']]) : Reflect.apply(string, intl, [t.d6uxJy])}</Text>;
|
||||
const items2 = [<View style={styles.headerContainer}>{items3}</View>];
|
||||
let row = styles.row;
|
||||
const view = <View style={styles.circleIcon} />;
|
||||
let text = styles.text;
|
||||
string = intl.string;
|
||||
const HtqVkj = (require(1244) /* metro dependency 1244: indexNative */).t.HtqVkj;
|
||||
const view2 = <View style={row}>{view}<Text variant="heading-md/normal" color="text-default" style={text}>{Reflect.apply(string,
|
||||
intl, [HtqVkj])}</Text></View>;
|
||||
row = styles.row;
|
||||
const view3 = <View style={styles.circleIcon} />;
|
||||
text = styles.text;
|
||||
const isIOS3 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS();
|
||||
string = intl.string;
|
||||
items2[1] = <View style={styles.listContainer}>{view2}<View style={row}>{view3}<Text variant="heading-md/normal" color="text-default" style={text}>{isIOS3 ? Reflect.apply(string,
|
||||
intl, [t.U409I8]) : Reflect.apply(string, intl, [t.uYfqlo])}</Text></View></View>;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
const format = intl.format;
|
||||
const OeGXVv = (require(1244) /* metro dependency 1244: indexNative */).t.OeGXVv;
|
||||
const items6 = [<TextWithIOSLinkWorkaround variant="text-sm/semibold" color="text-brand">{Reflect.apply(format,
|
||||
intl, [OeGXVv, {learnMoreLink: value6}])}</TextWithIOSLinkWorkaround>];
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
items6[1] = <Button text={property ? Reflect.apply(string, intl, [t.wePEBF]) : Reflect.apply(string, intl,
|
||||
[t.NIFmCJ])} onPress={onPress_101041} size="lg" disabled={property} loading={property} grow />;
|
||||
string = intl.string;
|
||||
items6[2] = <Button text={property ? Reflect.apply(string, intl, [t.wePEBF]) : Reflect.apply(string, intl,
|
||||
[t['7J6/nG']])} onPress={closure} size="lg" variant="secondary" grow />;
|
||||
items2[2] = <View style={styles.buttonContainer}>{items6}</View>;
|
||||
return (
|
||||
<SafeAreaPaddingView bottom style={styles.container}>
|
||||
<ScrollView contentContainerStyle={styles.scrollViewContainer}>
|
||||
{items2}
|
||||
</ScrollView>
|
||||
</SafeAreaPaddingView>
|
||||
);
|
||||
}
|
||||
|
||||
function PasskeyUpsellViewOnRegisterSuccess(a0) { // fn#101038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:1332, owner: PasskeyUpsellView.onRegisterSuccess, offset: 0x02205f48, size: 111 bytes, params: 2, frame: 19
|
||||
const binding = env0_0;
|
||||
const push = binding.push;
|
||||
const value = environment.__proto__;
|
||||
const NAME = WebAuthnScreens.NAME;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2['name'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8H5RmH']);
|
||||
Reflect.apply(push, binding, [NAME, object2]);
|
||||
}
|
||||
|
||||
function PasskeyUpsellViewOnPress() { // fn#101039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:1416, owner: PasskeyUpsellView.onPress, offset: 0x02205fb7, size: 70 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const defaultImport = importDefault(13249) /* metro dependency 13249: PasskeyUpsellManager */;
|
||||
const markDismissed = defaultImport.markDismissed;
|
||||
const USER_DISMISS = ContentDismissActionType.USER_DISMISS;
|
||||
Reflect.apply(markDismissed, defaultImport, [USER_DISMISS]);
|
||||
(importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).closePasskeyUpsellModal();
|
||||
}
|
||||
|
||||
function _fun101040() { // fn#101040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:1515, offset: 0x02205ffd, size: 67 bytes, params: 1, frame: 15
|
||||
const binding = env0_0;
|
||||
const setOptions = binding.setOptions;
|
||||
const navigatorHeaderNativeModule = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
|
||||
const getHeaderCloseButton = navigatorHeaderNativeModule.getHeaderCloseButton;
|
||||
Reflect.apply(setOptions, binding, [{headerLeft: Reflect.apply(getHeaderCloseButton, navigatorHeaderNativeModule,
|
||||
[onPress_101039])}]);
|
||||
}
|
||||
|
||||
function PasskeyUpsellViewOnPress_101041() { // fn#101041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:3015, owner: PasskeyUpsellView.onPress, offset: 0x02206040, size: 103 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const defaultImport = importDefault(13249) /* metro dependency 13249: PasskeyUpsellManager */;
|
||||
const markDismissed = defaultImport.markDismissed;
|
||||
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
|
||||
Reflect.apply(markDismissed, defaultImport, [TAKE_ACTION]);
|
||||
(importDefault(8978) /* metro dependency 8978: NativeCeremonies */).registerPasskey({setRegistering: env0_2,
|
||||
setError: env0_1, onRegisterSuccess: PasskeyUpsellViewOnRegisterSuccess});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
/* Metro module 13260; source: modules/webauthn/native/nav_steps/WebAuthnEditStep.tsx; dependencies: [57, 31, 33, 4501, 697, 1484, 5282, 7972, 1244, 1305, 4578, 5084, 3857, 11111, 4073, 2] */
|
||||
function _fun101114(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:6, offset: 0x022085a9, size: 258 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
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(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.inputField = {marginBottom: PX_16};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.form = {paddingHorizontal: PX_16};
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/nav_steps/WebAuthnEditStep.tsx');
|
||||
exports.default = EditCredentialModal;
|
||||
}
|
||||
|
||||
function EditCredentialModal({credential}) { // fn#101115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:359, offset: 0x022086ab, size: 579 bytes, params: 2, frame: 29
|
||||
const styles = useStyles();
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_3;
|
||||
const value4 = binding2(value3, 2);
|
||||
const property = value4[0];
|
||||
const env0_2 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, ['']), 2);
|
||||
const property2 = value5[0];
|
||||
const property3 = value5[1];
|
||||
useState = binding.useState;
|
||||
const value6 = binding2(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property4 = value6[0];
|
||||
var env0_4 = value6[1];
|
||||
binding.useLayoutEffect(_fun101116, [value2]);
|
||||
const Form = (require(7972) /* metro dependency 7972: native */).Form;
|
||||
const FormInput = (require(7972) /* metro dependency 7972: native */).FormInput;
|
||||
const formInputProps = {showTopContainer: false, value: property2, onChange: property3, style: styles.inputField,
|
||||
error: property4};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
formInputProps.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Jzd+z/']);
|
||||
formInputProps.placeholder = credential.name;
|
||||
formInputProps.disabled = property;
|
||||
const ClearButtonVisibility = (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility;
|
||||
const WITH_CONTENT = ClearButtonVisibility.WITH_CONTENT;
|
||||
formInputProps.clearButtonVisibility = WITH_CONTENT;
|
||||
formInputProps.autoFocus = true;
|
||||
formInputProps.showBorder = true;
|
||||
formInputProps.required = true;
|
||||
formInputProps.large = true;
|
||||
const items2 = [<FormInput {...formInputProps} />];
|
||||
const FormDivider = (require(7972) /* metro dependency 7972: native */).FormDivider;
|
||||
items2[1] = <FormDivider />;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[2] = <Button onPress={onPress_101118} disabled={property || property2 === ''} loading={property} size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7asiR3'])} grow />;
|
||||
return (
|
||||
<Form style={styles.form}>
|
||||
{items2}
|
||||
</Form>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun101116() { // fn#101116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:588, offset: 0x022088ee, size: 72 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
const binding = env0_1;
|
||||
const setOptions = binding.setOptions;
|
||||
const object2 = {};
|
||||
const value = environment.__proto__;
|
||||
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton(_fun101117);
|
||||
Reflect.apply(setOptions, binding, [object2]);
|
||||
}
|
||||
|
||||
function EditCredentialModalOnPress() { // fn#101118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:1043, owner: EditCredentialModal.onPress, offset: 0x0220894b, size: 132 bytes, params: 1, frame: 15
|
||||
env0_2(true);
|
||||
env0_4(null);
|
||||
const webAuthnActionCreatorsModule = require(5084) /* metro dependency 5084: WebAuthnActionCreators */;
|
||||
let value = webAuthnActionCreatorsModule.editWebAuthnCredential(credential.id, env0_3);
|
||||
value = value.then(_fun101119);
|
||||
value = value.catch(_fun101120);
|
||||
value.finally(_fun101121);
|
||||
}
|
||||
|
||||
function _fun101117() { // fn#101117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:647, offset: 0x02208936, size: 21 bytes, params: 1, frame: 9
|
||||
env1_1.pop();
|
||||
}
|
||||
|
||||
function _fun101119() { // fn#101119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:1108, offset: 0x022089cf, size: 173 bytes, params: 1, frame: 18
|
||||
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
||||
const open = defaultImport.open;
|
||||
const object2 = {key: 'WEBAUTHN_CREDENTIAL_EDIT_SUCCESS_TOAST_KEY'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const IV13mH = (require(1244) /* metro dependency 1244: indexNative */).t.IV13mH;
|
||||
object2.content = Reflect.apply(string, intl, [IV13mH]);
|
||||
object2.icon = importDefault(11111) /* metro dependency 11111 */;
|
||||
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
|
||||
object2.IconComponent = CircleCheckIcon;
|
||||
object2.iconColor = 'status-positive';
|
||||
Reflect.apply(open, defaultImport, [object2]);
|
||||
env1_1.popToTop();
|
||||
}
|
||||
|
||||
function _fun101120({body}) { // fn#101120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:1329, offset: 0x02208a7c, size: 29 bytes, params: 2, frame: 11
|
||||
env1_4(body.message);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,279 @@
|
||||
/* Metro module 13264; source: modules/webauthn/native/nav_steps/WebAuthnNameStep.tsx; dependencies: [5, 57, 31, 27, 13244, 33, 4501, 1484, 5084, 3857, 1244, 11111, 4073, 7972, 1305, 4578, 2] */
|
||||
function _fun101133(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13454:6, offset: 0x02209334, size: 266 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_7 = (require(13244) /* metro dependency 13244: WebAuthnConstants */).WebAuthnScreens;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({margin: {margin: 16}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/nav_steps/WebAuthnNameStep.tsx');
|
||||
exports.default = WebAuthnNameStep;
|
||||
}
|
||||
|
||||
function WebAuthnNameStep({ticket, credential, name}) { // fn#101134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13454:338, offset: 0x0220943e, size: 633 bytes, params: 2, frame: 29
|
||||
const styles = useStyles();
|
||||
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const binding = undefined;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_4;
|
||||
const value3 = binding2(value2, 2);
|
||||
const property = value3[0];
|
||||
const env0_3 = value3[1];
|
||||
useState = binding.useState;
|
||||
const value4 = binding2(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property2 = value4[0];
|
||||
var env0_4 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = '';
|
||||
const value7 = env0_4(Reflect.apply(useState, binding, [name ?? value5]), 2);
|
||||
const property3 = value7[0];
|
||||
const property4 = value7[1];
|
||||
const value8 = _fun101135();
|
||||
const Form = (require(7972) /* metro dependency 7972: native */).Form;
|
||||
const FormInput = (require(7972) /* metro dependency 7972: native */).FormInput;
|
||||
const object = {showTopContainer: false, value: property3, onChange: property4};
|
||||
let margin = styles.margin;
|
||||
object.style = margin;
|
||||
object.error = property2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Jzd+z/']);
|
||||
object.placeholder = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['I/sJtJ']);
|
||||
object.disabled = property;
|
||||
const ClearButtonVisibility = (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility;
|
||||
const WITH_CONTENT = ClearButtonVisibility.WITH_CONTENT;
|
||||
object.clearButtonVisibility = WITH_CONTENT;
|
||||
object.autoFocus = true;
|
||||
object.showBorder = true;
|
||||
object.required = true;
|
||||
object.large = true;
|
||||
const items2 = [<FormInput {...object} />];
|
||||
const FormDivider = (require(7972) /* metro dependency 7972: native */).FormDivider;
|
||||
items2[1] = <FormDivider />;
|
||||
margin = styles.margin;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[2] = <View style={margin}><Button onPress={value8} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5dyZ1S'])} disabled={value5 === property3} size="lg" /></View>;
|
||||
return (
|
||||
<Form>
|
||||
{items2}
|
||||
</Form>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun101135() { // fn#101135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13454:566, offset: 0x022096b7, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun101137);
|
||||
return _fun101138;
|
||||
}
|
||||
|
||||
function* _fun101137() { // fn#101137, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13454:586, offset: 0x022096e6, size: 356 bytes, params: 1, frame: 24
|
||||
var value;
|
||||
var value2;
|
||||
var binding;
|
||||
var value3;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var finishRegisterWebAuthnCredential;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var binding3;
|
||||
var value8;
|
||||
var open;
|
||||
var object2;
|
||||
var binding4;
|
||||
var intl;
|
||||
var string;
|
||||
var t;
|
||||
var j3d5qI;
|
||||
var CircleCheckIcon;
|
||||
var push;
|
||||
var SUCCESS;
|
||||
var error;
|
||||
var body;
|
||||
var message;
|
||||
exceptionSkip29: while (true) {
|
||||
exceptionLanding29: while (true) {
|
||||
exceptionSkip21: while (true) {
|
||||
exceptionLanding21: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
try {
|
||||
binding = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding(true);
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
value3 = environment.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding2[8];
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
finishRegisterWebAuthnCredential = value4.finishRegisterWebAuthnCredential;
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env2_5;
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value5 = Reflect.apply(finishRegisterWebAuthnCredential, value4, [binding, require,
|
||||
importDefault]);
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
if (value7) {
|
||||
env2_3(false);
|
||||
return value6;
|
||||
}
|
||||
env2_3(false);
|
||||
binding = env3_1;
|
||||
binding3 = env3_2;
|
||||
value8 = binding(binding3[9]);
|
||||
open = value8.open;
|
||||
object2 = {key: 'WEBAUTHN_CREDENTIAL_REGISTER_SUCCESS_TOAST_KEY'};
|
||||
binding4 = env3_0;
|
||||
intl = binding4(binding3[10]).intl;
|
||||
string = intl.string;
|
||||
t = binding4(binding3[10]).t;
|
||||
j3d5qI = t.j3d5qI;
|
||||
object2.content = Reflect.apply(string, intl, [j3d5qI]);
|
||||
object2.icon = binding(binding3[11]);
|
||||
CircleCheckIcon = binding4(binding3[12]).CircleCheckIcon;
|
||||
object2.IconComponent = CircleCheckIcon;
|
||||
object2.iconColor = 'status-success';
|
||||
Reflect.apply(open, value8, [object2]);
|
||||
push = dependencyMap.push;
|
||||
SUCCESS = env3_7.SUCCESS;
|
||||
Reflect.apply(push, dependencyMap, [SUCCESS, {}]);
|
||||
return undefined;
|
||||
break exceptionSkip21;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
body = error.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
message = body.message;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
binding(message);
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
env2_3(false);
|
||||
return undefined;
|
||||
break exceptionSkip21;
|
||||
}
|
||||
break exceptionSkip29;
|
||||
}
|
||||
env2_3(false);
|
||||
throw error;
|
||||
break exceptionSkip29;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
/* Metro module 13261; source: modules/webauthn/native/nav_steps/WebAuthnRegisterStep.tsx; dependencies: [57, 31, 27, 13244, 33, 4501, 697, 8978, 1244, 1305, 1484, 477, 6618, 13262, 4573, 6261, 4578, 2] */
|
||||
function _fun101122(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:6, offset: 0x02208a99, size: 499 bytes, params: 8, frame: 25
|
||||
var object4;
|
||||
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 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_6 = (require(13244) /* metro dependency 13244: WebAuthnConstants */).WebAuthnScreens;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object5 = {};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const env0_9 = Reflect.apply(createStyles, value, [{flexContainer: {'flex': 1, 'flexDirection': 'column',
|
||||
'alignItems': 'stretch', 'justifyContent': 'space-between', 'marginLeft': 16, 'marginRight': 16,
|
||||
'marginTop': 16}, centerFlex: {'display': 'flex', 'alignItems': 'center'}, margin: {'marginTop': 16,
|
||||
'textAlign': 'center'}, radioItem: object5}]);
|
||||
object4 = {PASSKEY_CREDENTIAL_MANAGER: 0};
|
||||
object4[0] = 'PASSKEY_CREDENTIAL_MANAGER';
|
||||
object4.PASSKEY_DEVICE = 1;
|
||||
object4[1] = 'PASSKEY_DEVICE';
|
||||
object4.OTHER_AND_ANDROID_NONDISCOVERABLE = 2;
|
||||
object4[2] = 'OTHER_AND_ANDROID_NONDISCOVERABLE';
|
||||
const object6 = {};
|
||||
const PASSKEY_CREDENTIAL_MANAGER = object4.PASSKEY_CREDENTIAL_MANAGER;
|
||||
object6[PASSKEY_CREDENTIAL_MANAGER] = (importDefault(8978) /* metro dependency 8978: NativeCeremonies */).registerPasskey;
|
||||
const PASSKEY_DEVICE = object4.PASSKEY_DEVICE;
|
||||
object6[PASSKEY_DEVICE] = (importDefault(8978) /* metro dependency 8978: NativeCeremonies */).registerAndroidDevicePasskey;
|
||||
const OTHER_AND_ANDROID_NONDISCOVERABLE = object4.OTHER_AND_ANDROID_NONDISCOVERABLE;
|
||||
object6[OTHER_AND_ANDROID_NONDISCOVERABLE] = (importDefault(8978) /* metro dependency 8978: NativeCeremonies */).registerSecurityKey;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/nav_steps/WebAuthnRegisterStep.tsx');
|
||||
exports.default = WebAuthnRegisterStep;
|
||||
}
|
||||
|
||||
function AndroidPasskeyRadioGroup({authenticatorSelection, onChange, registering}) { // fn#101123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:927, offset: 0x02208c8c, size: 369 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
let object2 = {};
|
||||
const PASSKEY_CREDENTIAL_MANAGER = env0_10.PASSKEY_CREDENTIAL_MANAGER;
|
||||
object2.value = PASSKEY_CREDENTIAL_MANAGER;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const JQbo8L = (require(1244) /* metro dependency 1244: indexNative */).t.JQbo8L;
|
||||
object2.name = Reflect.apply(string, intl, [JQbo8L]);
|
||||
const items2 = [object2];
|
||||
object2 = {};
|
||||
const PASSKEY_DEVICE = env0_10.PASSKEY_DEVICE;
|
||||
object2.value = PASSKEY_DEVICE;
|
||||
string = intl.string;
|
||||
const GjBNMg = (require(1244) /* metro dependency 1244: indexNative */).t.GjBNMg;
|
||||
object2.name = Reflect.apply(string, intl, [GjBNMg]);
|
||||
items2[1] = object2;
|
||||
object2 = {};
|
||||
const OTHER_AND_ANDROID_NONDISCOVERABLE = env0_10.OTHER_AND_ANDROID_NONDISCOVERABLE;
|
||||
object2.value = OTHER_AND_ANDROID_NONDISCOVERABLE;
|
||||
object2.name = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['OhC77+']);
|
||||
items2[2] = object2;
|
||||
const RadioGroup = (require(1305) /* metro dependency 1305: native */).RadioGroup;
|
||||
const RadioGroup2 = (require(1305) /* metro dependency 1305: native */).RadioGroup;
|
||||
const Sizes = RadioGroup2.Sizes;
|
||||
const LARGE = Sizes.LARGE;
|
||||
return (
|
||||
<RadioGroup
|
||||
style={styles.radioItem}
|
||||
options={items2}
|
||||
onChange={function({value}) {
|
||||
return onChange(value);
|
||||
}}
|
||||
value={authenticatorSelection}
|
||||
disabled={registering}
|
||||
size={LARGE}
|
||||
withSpacing
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function WebAuthnRegisterStep() { // fn#101125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:1525, offset: 0x02208e15, size: 878 bytes, params: 1, frame: 32
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const styles = useStyles();
|
||||
let binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value3 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_3;
|
||||
const value4 = binding2(value3, 2);
|
||||
const property = value4[0];
|
||||
const property2 = value4[1];
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, ['']), 2);
|
||||
const property3 = value5[0];
|
||||
const property4 = value5[1];
|
||||
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
binding = env0_10;
|
||||
const r8 = isAndroid2 ? binding.PASSKEY_CREDENTIAL_MANAGER : binding.OTHER_AND_ANDROID_NONDISCOVERABLE;
|
||||
binding = env0_4;
|
||||
const [property5, property6] = env0_3(binding.useState(r8), 2);
|
||||
const value8 = binding.useCallback(_fun101126, [value2]);
|
||||
const env0_5 = binding.useMemo(_fun101127, [property5]);
|
||||
const env0_6 = binding.useMemo(_fun101128, [value8, property4, property2]);
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
const KeyImage = (require(13262) /* metro dependency 13262: KeyImage */).KeyImage;
|
||||
const items2 = [<KeyImage />];
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
items2[1] = <Text style={styles.margin} variant="text-md/normal">{property ? Reflect.apply(string, intl,
|
||||
[t.aVMiX3]) : Reflect.apply(string, intl, [t.Lh5vTW])}</Text>;
|
||||
items2[2] = property3 != null && <Text variant="text-md/normal" color="text-feedback-critical">{property3}</Text>;
|
||||
const view = <View style={styles.centerFlex}>{items2}</View>;
|
||||
const r5 = (importDefault(8978) /* metro dependency 8978: NativeCeremonies */).shouldDisplayAndroidFidoSelector && <AndroidPasskeyRadioGroup authenticatorSelection={property5} registering={property} onChange={property6} />;
|
||||
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
return (
|
||||
<SafeAreaPaddingView
|
||||
bottom
|
||||
left
|
||||
right
|
||||
style={styles.flexContainer}
|
||||
>
|
||||
{view}
|
||||
{r5}
|
||||
<ButtonGroup>
|
||||
<Button
|
||||
text={property ? Reflect.apply(string, intl, [t.wePEBF]) : Reflect.apply(string, intl, [t.oibaQa])}
|
||||
disabled={property}
|
||||
loading={property}
|
||||
onPress={onPress_101129}
|
||||
size="lg"
|
||||
/>
|
||||
</ButtonGroup>
|
||||
</SafeAreaPaddingView>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun101126(a0) { // fn#101126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:1818, offset: 0x02209183, size: 38 bytes, params: 2, frame: 13
|
||||
const binding = env0_0;
|
||||
const push = binding.push;
|
||||
const NAME = WebAuthnScreens.NAME;
|
||||
Reflect.apply(push, binding, [NAME, a0]);
|
||||
}
|
||||
|
||||
function _fun101127() { // fn#101127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:1859, offset: 0x022091a9, size: 20 bytes, params: 1, frame: 2
|
||||
return env1_11[env0_3];
|
||||
}
|
||||
|
||||
function _fun101128() { // fn#101128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:1887, offset: 0x022091bd, size: 34 bytes, params: 1, frame: 3
|
||||
return {onRegisterSuccess: env0_4, setError: env0_2, setRegistering: env0_1};
|
||||
}
|
||||
|
||||
function WebAuthnRegisterStepOnPress() { // fn#101129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:2639, owner: WebAuthnRegisterStep.onPress, offset: 0x022091df, size: 20 bytes, params: 1, frame: 11
|
||||
return env0_5(env0_6);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/* Metro module 13265; source: modules/webauthn/native/nav_steps/WebAuthnSuccessStep.tsx; dependencies: [31, 33, 1484, 5282, 13250, 13266, 1244, 2] */
|
||||
function _fun101139(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13455:6, offset: 0x0220984a, size: 142 bytes, params: 8, frame: 18
|
||||
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(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/nav_steps/WebAuthnSuccessStep.tsx');
|
||||
exports.default = WebAuthnSuccessStep;
|
||||
}
|
||||
|
||||
function WebAuthnSuccessStep() { // fn#101140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13455:221, offset: 0x022098d8, size: 166 bytes, params: 1, frame: 18
|
||||
env0_3.useLayoutEffect(_fun101141,
|
||||
[(require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation()]);
|
||||
const UserSettingsAccountBackupCodes = importDefault(13266) /* metro dependency 13266: UserSettingsAccountBackupCodes */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<UserSettingsAccountBackupCodes
|
||||
onGenerate={null}
|
||||
headerLabel={intl.format((require(1244) /* metro dependency 1244: indexNative */).t.iVTs6i, {})}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun101141() { // fn#101141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13455:308, offset: 0x0220997e, size: 72 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
const binding = env0_0;
|
||||
const setOptions = binding.setOptions;
|
||||
const object2 = {};
|
||||
const value = environment.__proto__;
|
||||
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(_fun101142);
|
||||
Reflect.apply(setOptions, binding, [object2]);
|
||||
}
|
||||
|
||||
function _fun101142() { // fn#101142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13455:368, offset: 0x022099c6, size: 54 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
env1_0.popToTop();
|
||||
value = environment.__proto__.__proto__;
|
||||
(importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).closePasskeyUpsellModal();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user