85 lines
5.6 KiB
TypeScript
85 lines
5.6 KiB
TypeScript
/* 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}
|
|
/>
|
|
);
|
|
}
|
|
|