Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,191 @@
/* Metro module 16213; source: modules/safety_flows/native/ErrorScreen.tsx; dependencies: [5, 57, 31, 27, 33, 4501, 697, 1484, 16200, 16204, 4573, 1244, 4572, 4578, 5076, 2] */
function _fun125287(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:6, offset: 0x025d3a76, size: 333 bytes, params: 8, frame: 22
var object3;
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;
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;
object3 = {};
const object4 = {'flexDirection': 'column', 'justifyContent': 'center', 'gap': null, 'padding': null,
'alignItems': 'center'};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.gap = PX_8;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.padding = PX_16;
object3.container = object4;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.buttonContainer = {marginTop: PX_8};
const env0_9 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/ErrorScreen.tsx');
exports.default = ErrorScreen;
}
function ErrorScreen() { // fn#125288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:459, offset: 0x025d3bc3, size: 576 bytes, params: 1, frame: 28
const [property, env0_0] = env0_4(env0_5.useState(false), 2);
const env0_1 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const styles = useStyles();
const value4 = _fun125289();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items2 = [<Text variant="heading-lg/semibold">{Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t.c6kn6F])}</Text>];
string = intl.string;
const ZUEGFn = (require(1244) /* metro dependency 1244: indexNative */).t.ZUEGFn;
items2[1] = <Text variant="text-md/normal" color="text-muted">{Reflect.apply(string, intl, [ZUEGFn])}</Text>;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <Stack style={styles.buttonContainer} spacing={8}><Button onPress={onPress_125293} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2jxGer'])} variant="secondary" size="md" /><Button onPress={value4} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7NqTJn'])} variant="primary" size="md" loading={property} /></Stack>;
return (
<View style={styles.container}>
{items2}
</View>
);
}
function _fun125289() { // fn#125289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:560, offset: 0x025d3e03, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun125291);
return _fun125292;
}
function ErrorScreenOnPress() { // fn#125293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:1095, owner: ErrorScreen.onPress, offset: 0x025d3ed7, size: 44 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */).logout('safety_flows_error_screen');
}
function* _fun125291() { // fn#125291, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16421:580, offset: 0x025d3e32, size: 165 bytes, params: 1, frame: 17
var binding;
var binding2;
var property;
var value4;
var getCurrentTask;
var value5;
var value6;
var value7;
var value8;
var binding3;
var value9;
var navigateToScreenForTask;
var error;
if (true) {
value = environment.__proto__.__proto__;
try {
} catch (error) {
require(false);
throw error;
}
try {
require(true);
} catch (error) {
require(false);
throw error;
}
try {
binding = env3_0;
} catch (error) {
require(false);
throw error;
}
try {
binding2 = env3_2;
} catch (error) {
require(false);
throw error;
}
try {
property = binding2[8];
} catch (error) {
require(false);
throw error;
}
try {
value4 = binding(property);
} catch (error) {
require(false);
throw error;
}
try {
getCurrentTask = value4.getCurrentTask;
} catch (error) {
require(false);
throw error;
}
try {
value5 = Reflect.apply(getCurrentTask, value4, []);
} catch (error) {
require(false);
throw error;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
require(false);
throw error;
}
if (value7) {
require(false);
return value6;
}
try {
value8 = value6 == null;
} catch (error) {
require(false);
throw error;
}
if (!value8) {
try {
binding = env3_0;
} catch (error) {
require(false);
throw error;
}
try {
binding3 = env3_2;
} catch (error) {
require(false);
throw error;
}
try {
property = binding3[9];
} catch (error) {
require(false);
throw error;
}
try {
value9 = binding(property);
} catch (error) {
require(false);
throw error;
}
try {
navigateToScreenForTask = value9.navigateToScreenForTask;
} catch (error) {
require(false);
throw error;
}
try {
} catch (error) {
require(false);
throw error;
}
try {
Reflect.apply(navigateToScreenForTask, value9, [importDefault, value6]);
} catch (error) {
require(false);
throw error;
}
}
require(false);
}
}
@@ -0,0 +1,29 @@
/* Metro module 16206; source: modules/safety_flows/native/LogOutDisclaimer.tsx; dependencies: [33, 12807, 4573, 1244, 2486, 5076, 2] */
function _fun125253(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16414:6, offset: 0x025d2372, size: 123 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/LogOutDisclaimer.tsx');
exports.default = LogOutDisclaimer;
}
function LogOutDisclaimer() { // fn#125254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16414:202, offset: 0x025d23ed, size: 158 bytes, params: 1, frame: 20
const ModalDisclaimer = (require(12807) /* metro dependency 12807: ModalDisclaimerNative */).ModalDisclaimer;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<ModalDisclaimer>
<Text variant="text-xs/medium">
{intl.format((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['0DHxym'],
{handleLogOut: handleLogOut})}
</Text>
</ModalDisclaimer>
);
}
function handleLogOut() { // fn#125255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16414:375, owner: LogOutDisclaimer.handleLogOut, offset: 0x025d248b, size: 44 bytes, params: 1, frame: 12
const value = environment.__proto__;
(importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */).logout('safety_flows_enter_email_screen');
}
@@ -0,0 +1,84 @@
/* Metro module 16202; source: modules/safety_flows/native/OverviewScreen.tsx; dependencies: [31, 33, 4501, 16203, 1484, 16204, 6258, 6259, 4572, 697, 4573, 1244, 2486, 6231, 6237, 16199, 10120, 16206, 9790, 2] */
function _fun125234(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16410:6, offset: 0x025d191a, size: 215 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 value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({content: {'margin': 'auto',
'overflow': 'visible', 'justifyContent': 'center', 'textAlign': 'center', 'alignItems': 'center'},
title: {'textAlign': 'center', 'textTransform': 'uppercase', 'lineHeight': 50}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/OverviewScreen.tsx');
exports.default = OverviewScreen;
}
function OverviewScreen() { // fn#125235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16410:423, offset: 0x025d19f1, size: 846 bytes, params: 1, frame: 36
const value2 = undefined;
const styles = useStyles();
const safetyFlowsTaskContextModule = require(16203) /* metro dependency 16203: SafetyFlowsTaskContext */;
const useSafetyFlowTask = safetyFlowsTaskContextModule.useSafetyFlowTask;
const task = Reflect.apply(useSafetyFlowTask, safetyFlowsTaskContextModule, []).task;
const value4 = env0_3.useCallback(_fun125236, [task,
(require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation()]);
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const RRamMH = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).RRamMH;
const items2 = [<Text variant="display-lg" style={styles.title}>{Reflect.apply(string, intl, [RRamMH])}</Text>];
string = intl.string;
const I2Ctk1 = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).I2Ctk1;
items2[1] = <Text variant="text-md/medium" color="text-strong">{Reflect.apply(string, intl, [I2Ctk1])}</Text>;
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const flow_context = task.flow_context;
items2[2] = <Stack2 spacing={PX_8}><TableRowGroup hasIcons>{flow_context == null || flow_context.tasks == null ? value2 : flow_context.tasks.map(_fun125237)}</TableRowGroup><Text variant="text-xs/medium" color="text-muted">{intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['0TnUrG'])}</Text></Stack2>;
const modalContent = <ModalContent><Stack spacing={PX_16} style={styles.content}>{items2}</Stack></ModalContent>;
const ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
let value = importDefault(16206) /* metro dependency 16206: LogOutDisclaimer */;
value = ((Component) => <Component />)(value);
const ModalActionButton = (require(9790) /* metro dependency 9790: ModalActionButtonNative */).ModalActionButton;
string = intl.string;
const Ks6opt = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).Ks6opt;
return (
<ModalScreen>
{modalContent}
<ModalFooter>
{value}
<ModalActionButton
variant="primary"
text={Reflect.apply(string, intl, [Ks6opt])}
onPress={value4}
/>
</ModalFooter>
</ModalScreen>
);
}
function _fun125236() { // fn#125236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16410:539, offset: 0x025d1d3f, size: 107 bytes, params: 1, frame: 15
let value = environment.__proto__;
const getScreensForTaskType = (require(16204) /* metro dependency 16204: SafetyFlowsUtils */).getScreensForTaskType;
value = Reflect.apply(getScreensForTaskType, value, [task.task_type]);
if (value != null && value.length > 0 && value[0] != null) {
env0_1.push(value[0]);
}
}
function _fun125237(a0, a1) { // fn#125237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16410:1163, offset: 0x025d1daa, size: 100 bytes, params: 3, frame: 18
const SafetyTipsRow = importDefault(6237) /* metro dependency 6237: SafetyTipsRow */;
const TASK_TYPE_TO_TITLE = (require(16199) /* metro dependency 16199: types */).TASK_TYPE_TO_TITLE;
return (
<SafetyTipsRow
tip={TASK_TYPE_TO_TITLE[a0.task_type]}
index={a1 + 1}
key={a0.task_type}
/>
);
}
@@ -0,0 +1,45 @@
/* Metro module 16208; source: modules/safety_flows/native/SafetyFlowTaskScreen.tsx; dependencies: [31, 33, 4501, 6258, 6259, 4572, 4573, 10120, 16206, 9790, 2] */
function _fun125259(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16416:6, offset: 0x025d26bb, size: 189 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({header: {textAlign: 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/SafetyFlowTaskScreen.tsx');
exports.default = SafetyFlowTaskScreen;
}
function SafetyFlowTaskScreen({ImageComponent, title, subtitle, action, onAction, footer, children, submitting, withLogout}) { // fn#125260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16416:282, offset: 0x025d2778, size: 539 bytes, params: 2, frame: 35
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var r5;
var ModalFooter;
var items4;
action = action === undefined ? null : action;
withLogout = withLogout === undefined || withLogout;
const styles = useStyles();
const ModalScreen = (require(6258) /* metro dependency 6258: ModalScreenNative */).ModalScreen;
const ModalContent = (require(6259) /* metro dependency 6259: ModalContentNative */).ModalContent;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const items2 = [ImageComponent != null && ImageComponent];
items2[1] = <Text accessibilityRole="header" variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.header}>{title}</Text>;
items2[2] = subtitle != null && <Text variant="text-md/medium" color="text-strong" style={styles.header}>{subtitle}</Text>;
const modalContent = <ModalContent><Stack align="center" justify="center" spacing={8}>{items2}</Stack>{children}</ModalContent>;
if (footer !== undefined) {
r5 = footer;
} else {
ModalFooter = (require(10120) /* metro dependency 10120: ModalFooterNative */).ModalFooter;
items4 = [withLogout && ((Component) => <Component />)(importDefault(16206) /* metro dependency 16206: LogOutDisclaimer */)];
items4[1] = action != null && ((ModalActionButton) => <ModalActionButton variant="primary" text={action} onPress={onAction} loading={submitting} />)((require(9790) /* metro dependency 9790: ModalActionButtonNative */).ModalActionButton);
r5 = <ModalFooter>{items4}</ModalFooter>;
}
return (
<ModalScreen>
{modalContent}
{r5}
</ModalScreen>
);
}
@@ -0,0 +1,137 @@
/* Metro module 16201; source: modules/safety_flows/native/SafetyFlowsModal.tsx; dependencies: [57, 31, 33, 5280, 16199, 16202, 16207, 5282, 16209, 16211, 16212, 16213, 16204, 16203, 12805, 2] */
function _fun125210(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:6, offset: 0x025d142c, size: 158 bytes, params: 8, frame: 19
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(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/SafetyFlowsModal.tsx');
exports.default = SafetyFlowsModal;
}
function SafetyFlowsModal({task, initialScreen}) { // fn#125211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:223, offset: 0x025d14ca, size: 228 bytes, params: 2, frame: 19
const binding = env0_4;
const [property, env0_1] = env0_3(binding.useState(task), 2);
const value4 = SafetyFlowsModalUseScreens();
const value5 = binding.useMemo(_fun125230, [property]);
const value6 = binding.useMemo(_fun125233, [property]);
const SafetyFlowTaskContext = (require(16203) /* metro dependency 16203: SafetyFlowsTaskContext */).SafetyFlowTaskContext;
const Provider = SafetyFlowTaskContext.Provider;
const StepModal = (require(12805) /* metro dependency 12805: StepModalNative */).StepModal;
return (
<Provider value={value6}>
<StepModal
initialRouteName={initialScreen}
screens={value4}
steps={value5}
/>
</Provider>
);
}
function SafetyFlowsModalUseScreens() { // fn#125212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:320, owner: SafetyFlowsModal.useScreens, offset: 0x025d15ae, size: 52 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
return (require(5280) /* metro dependency 5280: NavigatorNative */).useNavigatorScreens(_fun125213, []);
}
function _fun125230() { // fn#125230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1068, offset: 0x025d186c, size: 102 bytes, params: 1, frame: 13
var r0;
var value;
if (env0_0?.flow_context == null) {
r0 = [];
} else {
value = env0_0.flow_context.tasks.map(_fun125231);
value = value.filter(function(a0) {
return a0 != null;
});
value = value.flat();
r0 = value;
}
return r0;
}
function _fun125233() { // fn#125233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1235, offset: 0x025d1901, size: 25 bytes, params: 1, frame: 3
return {task: env0_0, setTask: env0_1};
}
function _fun125213() { // fn#125213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:378, offset: 0x025d15e2, size: 416 bytes, params: 1, frame: 18
var environment;
const object2 = {};
const value = environment.__proto__.__proto__;
const SafetyFlowScreens = (require(16199) /* metro dependency 16199: types */).SafetyFlowScreens;
const OVERVIEW = SafetyFlowScreens.OVERVIEW;
object2[OVERVIEW] = {headerLeft: function() {
return null;
}, headerShown: false, render: render_125215};
const ENTER_EMAIL = SafetyFlowScreens.ENTER_EMAIL;
object2[ENTER_EMAIL] = {headerLeft: function() {
return null;
}, headerTitle: function() {
return null;
}, render: render_125218};
const VERIFY_EMAIL = SafetyFlowScreens.VERIFY_EMAIL;
const object3 = {};
object3.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton();
object3.headerTitle = function() {
return null;
};
object3.render = render_125220;
object2[VERIFY_EMAIL] = object3;
const UPDATE_APP = SafetyFlowScreens.UPDATE_APP;
object2[UPDATE_APP] = {headerLeft: function() {
return null;
}, headerTitle: function() {
return null;
}, render: render_125223};
const AGE_VERIFICATION = SafetyFlowScreens.AGE_VERIFICATION;
object2[AGE_VERIFICATION] = {headerLeft: function() {
return null;
}, headerTitle: function() {
return null;
}, render: render_125226};
const ERROR = SafetyFlowScreens.ERROR;
object2[ERROR] = {headerLeft: function() {
return null;
}, headerTitle: function() {
return null;
}, render: render_125229};
return object2;
}
function _fun125231({task_type}) { // fn#125231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1139, offset: 0x025d18d2, size: 47 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__;
return (require(16204) /* metro dependency 16204: SafetyFlowsUtils */).getScreensForTaskType(task_type);
}
function render_125215() { // fn#125215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:464, offset: 0x025d1782, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16202) /* metro dependency 16202: OverviewScreen */);
}
function render_125218() { // fn#125218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:572, offset: 0x025d17a9, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16207) /* metro dependency 16207: EnterEmailScreen */);
}
function render_125220() { // fn#125220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:702, offset: 0x025d17d0, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16209) /* metro dependency 16209: VerifyEmailScreen */);
}
function render_125223() { // fn#125223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:809, offset: 0x025d17f7, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16211) /* metro dependency 16211: UpdateAppScreen */);
}
function render_125226() { // fn#125226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:922, offset: 0x025d181e, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16212) /* metro dependency 16212: AgeVerificationScreen */);
}
function render_125229() { // fn#125229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16409:1025, offset: 0x025d1845, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(16213) /* metro dependency 16213: ErrorScreen */);
}
@@ -0,0 +1,115 @@
/* Metro module 16204; source: modules/safety_flows/native/SafetyFlowsUtils.tsx; dependencies: [5, 31, 1878, 16199, 16200, 5080, 16205, 3857, 8096, 1244, 2486, 1484, 16203, 2] */
function _fun125240(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:6, offset: 0x025d1ed1, size: 217 bytes, params: 8, frame: 22
const env0_0 = require;
const closure = getScreensForTaskType;
const closure2 = function() {
return _fetchAndUpdateTask.apply(this, arguments);
};
const closure3 = navigateToScreenForTask;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/SafetyFlowsUtils.tsx');
exports.getScreensForTaskType = closure;
exports.fetchAndUpdateTask = closure2;
exports.navigateToScreenForTask = closure3;
exports.useOnTaskComplete = useOnTaskComplete;
}
function getScreensForTaskType(a0) { // fn#125241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:126, offset: 0x025d1faa, size: 165 bytes, params: 2, frame: 18
var r1;
var r0;
var currentUser;
const value2 = undefined;
const TASK_TYPE_TO_SCREENS = (require(16199) /* metro dependency 16199: types */).TASK_TYPE_TO_SCREENS;
const property = TASK_TYPE_TO_SCREENS[a0];
const value3 = null;
if (value3 == property) {
r0 = value3;
} else {
if (a0 !== (require(16199) /* metro dependency 16199: types */).TaskType.EMAIL_VERIFICATION) {
r1 = property;
} else {
currentUser = UserStore.getCurrentUser();
r1 = value3 == (value3 == currentUser ? value2 : currentUser.email) ? property : [(require(16199) /* metro dependency 16199: types */).SafetyFlowScreens.VERIFY_EMAIL];
}
r0 = r1;
}
return r0;
}
function _fetchAndUpdateTask() { // fn#125243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:435, offset: 0x025d204f, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun125245).apply(this, arguments);
}
function navigateToScreenForTask(a0, a1) { // fn#125246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:595, offset: 0x025d20d7, size: 262 bytes, params: 3, frame: 17
var value;
var defaultImport;
var open;
var object2;
if (a1 == null) {
defaultImport = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
defaultImport.popWithKey((require(16205) /* metro dependency 16205: constants */).SAFETY_FLOWS_MODAL_KEY);
value = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
open = value.open;
object2 = {key: 'SAFETY_FLOWS_VERIFY_EMAIL_SUCCESS', icon: importDefault(8096) /* metro dependency 8096 */};
object2.content = (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['/fHz9S']);
Reflect.apply(open, value, [object2]);
} else {
var screensForTaskType = getScreensForTaskType(a1.task_type);
if (screensForTaskType != null) {
a0.push(screensForTaskType[0]);
} else {
a0.push((require(16199) /* metro dependency 16199: types */).SafetyFlowScreens.UPDATE_APP);
}
}
}
function useOnTaskComplete() { // fn#125247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:1170, offset: 0x025d21dd, size: 127 bytes, params: 1, frame: 16
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const {task, setTask} = (require(16203) /* metro dependency 16203: SafetyFlowsTaskContext */).useSafetyFlowTask();
return env0_4.useCallback(_fun125248(), [value2, task, setTask]);
}
function* _fun125245(a0) { // fn#125245, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:496, offset: 0x025d208c, size: 75 bytes, params: 2, frame: 12
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
value = env2_0(env2_2[4]);
const getCurrentTask = value.getCurrentTask;
yield Reflect.apply(getCurrentTask, value, []);
value = undefined;
if (true) {
if (value != null) {
a0(value);
}
}
return value;
}
function _fun125248() { // fn#125248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:1303, offset: 0x025d225c, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun125250);
return _fun125251;
}
function* _fun125250(a0) { // fn#125250, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16412:1323, offset: 0x025d228b, size: 149 bytes, params: 2, frame: 18
if (true) {
value = environment.__proto__.__proto__.__proto__;
var value3 = env3_0(env3_2[4]);
yield value3.completeTask({task_id: importDefault.task_id, flow_id: importDefault.flow_context.flow_id,
data: a0});
if (false) {
return undefined;
}
yield env3_7(dependencyMap);
var value7 = undefined;
if (false) {
return value7;
}
env3_9(require, value7);
}
}
@@ -0,0 +1,46 @@
/* Metro module 16211; source: modules/safety_flows/native/UpdateAppScreen.tsx; dependencies: [27, 33, 4501, 697, 4573, 1244, 2486, 4578, 2] */
function _fun125275(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16419:6, offset: 0x025d32f5, size: 265 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(27) /* metro dependency 27 */;
const env0_3 = value.NativeModules;
const env0_4 = value.View;
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_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.container = {'flexDirection': 'column', 'justifyContent': 'center', gap: PX_8};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.buttonContainer = {marginTop: PX_8};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/UpdateAppScreen.tsx');
exports.default = UpdateAppScreen;
}
function UpdateAppScreen() { // fn#125276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16419:406, offset: 0x025d33fe, size: 362 bytes, params: 1, frame: 26
const styles = useStyles();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items2 = [<Text variant="heading-lg/semibold">{Reflect.apply(string, intl,
[(importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).yxqMCD])}</Text>];
string = intl.string;
const VBZJJg = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).VBZJJg;
items2[1] = <Text variant="text-md/normal" color="text-muted">{Reflect.apply(string, intl, [VBZJJg])}</Text>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <View style={styles.buttonContainer}><Button onPress={function() {
var BundleUpdaterManager = NativeModules.BundleUpdaterManager;
BundleUpdaterManager.reload();
}} text={intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).o4D6fm)} variant="primary" size="md" /></View>;
return (
<View style={styles.container}>
{items2}
</View>
);
}
@@ -0,0 +1,98 @@
/* Metro module 16212; source: modules/safety_flows/native/tasks/AgeVerificationScreen.tsx; dependencies: [31, 27, 1878, 661, 33, 4501, 491, 16204, 566, 6253, 16199, 1909, 5074, 16208, 5473, 1244, 2486, 2742, 5263, 1948, 12807, 5076, 4573, 6260, 2] */
function _fun125278(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:6, offset: 0x025d3583, size: 245 bytes, params: 8, frame: 20
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 */).Pressable;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_6 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({helpLink: {textAlign: 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/tasks/AgeVerificationScreen.tsx');
exports.default = AgeVerificationScreen;
}
function AgeVerificationScreen() { // fn#125279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:239, offset: 0x025d3678, size: 606 bytes, params: 1, frame: 27
var object3;
const binding = env0_3;
const value2 = binding.useMemo(_fun125280, []);
const styles = useStyles();
const value3 = (require(16204) /* metro dependency 16204: SafetyFlowsUtils */).useOnTaskComplete();
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
const {loading,
ageVerificationMethods} = (importDefault(6253) /* metro dependency 6253: useAgeVerificationMethods */)({onClose: onClose_125282});
binding.useEffect(_fun125283, [value3, currentUser]);
binding.useEffect(_fun125284, [value2]);
const SafetyFlowTaskScreen = importDefault(16208) /* metro dependency 16208: SafetyFlowTaskScreen */;
object3 = {};
const ShieldSpotIllustration = (require(5473) /* metro dependency 5473: native */).ShieldSpotIllustration;
object3.ImageComponent = <ShieldSpotIllustration />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object3.title = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['dSkE/A']);
const format = intl.format;
const RpMIT0 = (importDefault(2742) /* metro dependency 2742: AgeAssuranceMessages */).RpMIT0;
object3.subtitle = Reflect.apply(format, intl, [RpMIT0, {handleOnHelpUrlHook: function() {
importDefault(dependencyMap[18]).openUrl(importDefault(dependencyMap[19]).getArticleURL(HelpdeskArticles.TIGGER_PAWTECT_LEARN_MORE));
}}]);
const ModalDisclaimer = (require(12807) /* metro dependency 12807: ModalDisclaimerNative */).ModalDisclaimer;
const object2 = {accessibilityRole: 'button', onPress: onPress_125286};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
object3.footer = <ModalDisclaimer><Pressable {...object2}><Text variant="text-sm/medium" color="text-link" style={styles.helpLink}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2jxGer'])}</Text></Pressable></ModalDisclaimer>;
object3.submitting = loading;
const AgeVerificationMethodsContainer = (require(6260) /* metro dependency 6260: AgeVerificationMethodsContainer */).AgeVerificationMethodsContainer;
return (
<SafetyFlowTaskScreen {...object3}>
<AgeVerificationMethodsContainer ageVerificationMethods={ageVerificationMethods} modalSessionId={value2} />
</SafetyFlowTaskScreen>
);
}
function _fun125280() { // fn#125280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:289, offset: 0x025d38d6, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (require(491) /* metro dependency 491 */).v4();
}
function AgeVerificationScreenOnClose() { // fn#125282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:425, owner: AgeVerificationScreen.onClose, offset: 0x025d38fb, size: 57 bytes, params: 1, frame: 13
const binding = env0_1;
const TaskInputType = (require(16199) /* metro dependency 16199: types */).TaskInputType;
const Empty = TaskInputType.Empty;
return binding({type: Empty});
}
function _fun125283() { // fn#125283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:529, offset: 0x025d3934, size: 118 bytes, params: 1, frame: 15
var binding;
var object2;
const currentUserBinding = currentUser;
const value2 = undefined;
const ageVerificationStatus = currentUserBinding == null ? value2 : currentUser.ageVerificationStatus;
const AgeVerificationStatusUkAndAusOnly = (require(1909) /* metro dependency 1909: Server */).AgeVerificationStatusUkAndAusOnly;
const UNVERIFIED = AgeVerificationStatusUkAndAusOnly.UNVERIFIED;
if (ageVerificationStatus !== UNVERIFIED) {
binding = env0_1;
object2 = {};
object2.type = (require(16199) /* metro dependency 16199: types */).TaskInputType.Empty;
binding(object2);
}
return value2;
}
function _fun125284() { // fn#125284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:693, offset: 0x025d39aa, size: 89 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */;
const trackAgeVerificationModalViewed = value.trackAgeVerificationModalViewed;
const binding = env0_0;
const AgeVerificationModalVersion = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalVersion;
const EXPRESSIVE_PRIMARY = AgeVerificationModalVersion.EXPRESSIVE_PRIMARY;
const AgeVerificationModalEntryPoint = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).AgeVerificationModalEntryPoint;
const SAFETY_FLOWS = AgeVerificationModalEntryPoint.SAFETY_FLOWS;
Reflect.apply(trackAgeVerificationModalViewed, value, [binding, EXPRESSIVE_PRIMARY, SAFETY_FLOWS]);
}
function AgeVerificationScreenOnPress() { // fn#125286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16420:1199, owner: AgeVerificationScreen.onPress, offset: 0x025d3a4a, size: 44 bytes, params: 1, frame: 12
const value = environment.__proto__;
(importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */).logout('age_verification_screen');
}
@@ -0,0 +1,48 @@
/* Metro module 16207; source: modules/safety_flows/native/tasks/EnterEmailScreen.tsx; dependencies: [57, 31, 33, 1484, 16208, 1244, 2486, 16199, 4572, 7981, 2] */
function _fun125256(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16415:6, offset: 0x025d24b7, size: 158 bytes, params: 8, frame: 19
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(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/tasks/EnterEmailScreen.tsx');
exports.default = EnterEmailScreen;
}
function EnterEmailScreen() { // fn#125257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16415:136, offset: 0x025d2555, size: 302 bytes, params: 1, frame: 24
const env0_0 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const [property, property2] = env0_3(env0_4.useState(''), 2);
const SafetyFlowTaskScreen = importDefault(16208) /* metro dependency 16208: SafetyFlowTaskScreen */;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.title = Reflect.apply(string, intl,
[(importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).bFbsV6]);
string = intl.string;
const RRBNpv = (importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).RRBNpv;
object2.action = Reflect.apply(string, intl, [RRBNpv]);
object2.onAction = onAction;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
return (
<SafetyFlowTaskScreen {...object2}>
<Stack>
<TextInput
label="Email"
value={property}
onChange={property2}
/>
</Stack>
</SafetyFlowTaskScreen>
);
}
function onAction() { // fn#125258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16415:346, owner: EnterEmailScreen.onAction, offset: 0x025d2683, size: 56 bytes, params: 1, frame: 13
const binding = env0_0;
const push = binding.push;
const SafetyFlowScreens = (require(16199) /* metro dependency 16199: types */).SafetyFlowScreens;
const VERIFY_EMAIL = SafetyFlowScreens.VERIFY_EMAIL;
Reflect.apply(push, binding, [VERIFY_EMAIL]);
}
@@ -0,0 +1,388 @@
/* Metro module 16210; source: modules/safety_flows/native/tasks/ResendVerificationCodeButton.tsx; dependencies: [5, 57, 31, 27, 33, 16200, 3856, 3857, 1244, 2486, 13436, 4066, 4573, 2] */
function _fun125267(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:6, offset: 0x025d2eba, size: 196 bytes, params: 8, frame: 19
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 */).Pressable;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/tasks/ResendVerificationCodeButton.tsx');
exports.default = _default_125268;
}
function _default_125268({flowId, setLoading}) { // fn#125268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:171, offset: 0x025d2f7e, size: 454 bytes, params: 2, frame: 24
var object2;
const binding = env0_5;
const [property, env0_3] = env0_4(binding.useState(0), 2);
binding.useEffect(_fun125269, [property]);
object2 = {onPress: binding.useCallback(env0_3(_fun125274), [setLoading, property, flowId]), disabled: property > 0,
accessibilityRole: 'button'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.accessibilityLabel = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).ah0EUu);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Pressable {...object2}>
<Text
variant="text-sm/medium"
color="text-link"
accessibilityLabel={intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).ah0EUu)}
importantForAccessibility="no"
>
{property > 0 ? intl.format((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['2+Lyn0'],
{countdown: property}) : intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).ah0EUu)}
</Text>
</Pressable>
);
}
function _fun125269() { // fn#125269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:255, offset: 0x025d3144, size: 61 bytes, params: 1, frame: 14
if (env0_2 > 0) {
var env0_0 = global.setInterval(_fun125270, 1000);
return _fun125272;
}
}
function* _fun125274() { // fn#125274, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:369, offset: 0x025d31a5, size: 336 bytes, params: 1, frame: 20
var value;
var value2;
var value3;
var binding;
var binding2;
var property;
var value4;
var resendVerificationCode;
var value5;
var value6;
var value7;
var binding3;
var value8;
var showVerificationSent;
var error;
var binding4;
var value9;
var open;
var object2;
var binding5;
var value10;
var intl;
var string;
var value11;
var value12;
var value13;
var value14;
var XLargeIcon;
exceptionLanding63: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = environment.__proto__;
if (!(dependencyMap > 0)) {
importDefault(true);
value3 = environment.__proto__.__proto__;
reducibleJoin5: while (true) {
reduciblePort62: while (true) {
exceptionLanding27: while (true) {
try {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
break reducibleJoin5;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding63;
}
try {
binding4 = env2_2;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[7];
} catch (error) {
break exceptionLanding63;
}
try {
value9 = binding(property);
} catch (error) {
break exceptionLanding63;
}
try {
open = value9.open;
} catch (error) {
break exceptionLanding63;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding63;
}
try {
object2.key = 'SAFETY_FLOWS_VERIFY_EMAIL_ERROR';
} catch (error) {
break exceptionLanding63;
}
try {
binding5 = env2_0;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[8];
} catch (error) {
break exceptionLanding63;
}
try {
value10 = binding5(property);
} catch (error) {
break exceptionLanding63;
}
try {
intl = value10.intl;
} catch (error) {
break exceptionLanding63;
}
try {
string = intl.string;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[9];
} catch (error) {
break exceptionLanding63;
}
try {
value11 = binding(property);
} catch (error) {
break exceptionLanding63;
}
try {
property = value11['3AXMYu'];
} catch (error) {
break exceptionLanding63;
}
try {
value12 = Reflect.apply(string, intl, [property]);
} catch (error) {
break exceptionLanding63;
}
try {
object2.content = value12;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[10];
} catch (error) {
break exceptionLanding63;
}
try {
value13 = binding(property);
} catch (error) {
break exceptionLanding63;
}
try {
object2.icon = value13;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding4[11];
} catch (error) {
break exceptionLanding63;
}
try {
value14 = binding5(property);
} catch (error) {
break exceptionLanding63;
}
try {
XLargeIcon = value14.XLargeIcon;
} catch (error) {
break exceptionLanding63;
}
try {
object2.IconComponent = XLargeIcon;
} catch (error) {
break exceptionLanding63;
}
try {
object2.iconColor = 'icon-feedback-critical';
} catch (error) {
break exceptionLanding63;
}
try {
Reflect.apply(open, value9, [object2]);
} catch (error) {
break exceptionLanding63;
}
break reduciblePort62;
}
importDefault(false);
return undefined;
}
try {
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
property = binding2[5];
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
value4 = binding(property);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
resendVerificationCode = value4.resendVerificationCode;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
value5 = Reflect.apply(resendVerificationCode, value4, [require]);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
yield value5;
try {
try {
value6 = undefined;
value7 = false;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
if (value7) {
importDefault(false);
return value6;
}
try {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
binding3 = env2_2;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
property = binding3[6];
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
value8 = binding(property);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
showVerificationSent = value8.showVerificationSent;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
Reflect.apply(showVerificationSent, value8, []);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
binding = env1_3;
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
try {
try {
binding(30);
} catch (error) {
break exceptionLanding27;
}
} catch (error) {
break exceptionLanding63;
}
importDefault(false);
}
return undefined;
}
importDefault(false);
throw error;
}
function _fun125270() { // fn#125270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16418:287, offset: 0x025d3181, size: 25 bytes, params: 1, frame: 11
env1_3(function(a0) {
return a0 - 1;
});
}
@@ -0,0 +1,223 @@
/* Metro module 16209; source: modules/safety_flows/native/tasks/VerifyEmailScreen.tsx; dependencies: [5, 57, 31, 33, 16203, 16204, 16199, 3857, 1244, 2486, 16208, 4572, 697, 4573, 7981, 16210, 2] */
function _fun125261(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16417:6, offset: 0x025d2993, size: 183 bytes, params: 8, frame: 19
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 value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_flows/native/tasks/VerifyEmailScreen.tsx');
exports.default = _default_125262;
}
function _default_125262() { // fn#125262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16417:162, offset: 0x025d2a4a, size: 795 bytes, params: 1, frame: 32
var object2;
const value2 = undefined;
const safetyFlowsTaskContextModule = require(16203) /* metro dependency 16203: SafetyFlowsTaskContext */;
const useSafetyFlowTask = safetyFlowsTaskContextModule.useSafetyFlowTask;
const task = Reflect.apply(useSafetyFlowTask, safetyFlowsTaskContextModule, []).task;
const value3 = (require(16204) /* metro dependency 16204: SafetyFlowsUtils */).useOnTaskComplete();
const binding = env0_5;
const env0_1 = binding.useRef('');
let useState = binding.useState;
const value4 = Reflect.apply(useState, binding, ['']);
const binding2 = env0_4;
const value5 = binding2(value4, 2);
const property = value5[0];
const property2 = value5[1];
useState = binding.useState;
const value6 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property3 = value6[0];
const property4 = value6[1];
const env0_3 = property4;
useState = binding.useState;
const value7 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property5 = value7[0];
var env0_5 = value7[1];
const value9 = binding.useCallback(env0_3(_fun125264), [value3]);
binding.useEffect(_fun125265, [property]);
binding.useEffect(_fun125266, [property, property5, value9]);
const SafetyFlowTaskScreen = importDefault(16208) /* metro dependency 16208: SafetyFlowTaskScreen */;
object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */)['Qm6K/s']);
object2.action = intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).wq2RDq);
object2.onAction = value9;
object2.submitting = property3;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items3 = [<Text variant="text-sm/medium" color="text-subtle">{intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).aveKoG)}</Text>];
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
const items2 = [<TextInput placeholder={intl.string((importDefault(2486) /* metro dependency 2486: SafetyFlowsMessages */).d9Ykjr)} maxLength={6} returnKeyType="done" value={property} onChange={property2} />];
const ResendVerificationCodeButton = importDefault(16210) /* metro dependency 16210: ResendVerificationCodeButton */;
const flow_context = task.flow_context;
items2[1] = <ResendVerificationCodeButton setLoading={property4} flowId={flow_context == null ? value2 : flow_context.flow_id} />;
items3[1] = <Stack2 spacing={PX_8}>{items2}</Stack2>;
return (
<SafetyFlowTaskScreen {...object2}>
<Stack spacing={PX_16}>
{items3}
</Stack>
</SafetyFlowTaskScreen>
);
}
function* _fun125264() { // fn#125264, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16417:392, offset: 0x025d2d70, size: 287 bytes, params: 1, frame: 18
var current;
var binding;
var object2;
var value3;
var binding2;
var property;
var value4;
var TaskInputType;
var VerificationCode;
var moduleValue;
var value5;
var value6;
var error;
var binding3;
var value7;
var open;
var binding4;
var intl;
var string;
var PfbG6H;
if (true) {
reduciblePort29: while (true) {
exceptionLanding28: while (true) {
value = environment.__proto__;
current = importDefault.current;
if (current == null) {
break reduciblePort29;
}
if (current === '') {
break reduciblePort29;
}
try {
binding = env1_3;
} catch (error) {
break exceptionLanding28;
}
try {
binding(true);
} catch (error) {
break exceptionLanding28;
}
try {
binding = env1_5;
} catch (error) {
break exceptionLanding28;
}
try {
binding(true);
} catch (error) {
break exceptionLanding28;
}
try {
} catch (error) {
break exceptionLanding28;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding28;
}
try {
object2.verification_code = current;
} catch (error) {
break exceptionLanding28;
}
value3 = environment.__proto__.__proto__;
try {
binding = env2_0;
} catch (error) {
break exceptionLanding28;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding28;
}
try {
property = binding2[6];
} catch (error) {
break exceptionLanding28;
}
try {
value4 = binding(property);
} catch (error) {
break exceptionLanding28;
}
try {
TaskInputType = value4.TaskInputType;
} catch (error) {
break exceptionLanding28;
}
try {
VerificationCode = TaskInputType.VerificationCode;
} catch (error) {
break exceptionLanding28;
}
try {
object2.type = VerificationCode;
} catch (error) {
break exceptionLanding28;
}
try {
moduleValue = require(object2);
} catch (error) {
break exceptionLanding28;
}
yield moduleValue;
try {
value5 = undefined;
value6 = false;
} catch (error) {
break exceptionLanding28;
}
if (value6) {
return value5;
}
try {
binding = env1_3;
} catch (error) {
break exceptionLanding28;
}
try {
binding(false);
} catch (error) {
break exceptionLanding28;
}
break reduciblePort29;
}
env1_3(false);
env1_5(false);
value = environment.__proto__.__proto__;
binding = env2_1;
binding3 = env2_2;
value7 = binding(binding3[7]);
open = value7.open;
binding4 = env2_0;
intl = binding4(binding3[8]).intl;
string = intl.string;
PfbG6H = binding(binding3[9]).PfbG6H;
Reflect.apply(open, value7, [{key: 'SAFETY_FLOWS_VERIFY_EMAIL_ERROR', content: Reflect.apply(string, intl,
[PfbG6H])}]);
break reduciblePort29;
}
}
}
function _fun125266() { // fn#125266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16417:721, offset: 0x025d2e8f, size: 43 bytes, params: 1, frame: 10
if (!(env0_2.length !== 6 || env0_4)) {
env0_6();
}
}