Files
2026-07-28 01:06:53 +03:00

125 lines
7.7 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] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import SafetyTipsRow from '../../self_mod/shared/native/SafetyTipsRow.tsx'; /* Metro dependency 6237 */
import LogOutDisclaimer from './LogOutDisclaimer.tsx'; /* Metro dependency 16206 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as StackNativeModule from '../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as ModalScreenNativeModule from '../../../design/components/Modal/native/ModalScreen.native.tsx'; /* Metro dependency 6258 */
import * as ModalContentNativeModule from '../../../design/components/Modal/native/ModalContent.native.tsx'; /* Metro dependency 6259 */
import * as ModalActionButtonNativeModule from '../../../design/components/Modal/native/ModalActionButton.native.tsx'; /* Metro dependency 9790 */
import * as ModalFooterNativeModule from '../../../design/components/Modal/native/ModalFooter.native.tsx'; /* Metro dependency 10120 */
import * as TypesModule from '../types.tsx'; /* Metro dependency 16199 */
import * as SafetyFlowsTaskContextModule from '../SafetyFlowsTaskContext.tsx'; /* Metro dependency 16203 */
import * as SafetyFlowsUtilsModule from './SafetyFlowsUtils.tsx'; /* Metro dependency 16204 */
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_6 = (CreateStylesModule).createStyles({content: {'margin': 'auto',
'overflow': 'visible', 'justifyContent': 'center', 'textAlign': 'center', 'alignItems': 'center'},
title: {'textAlign': 'center', 'textTransform': 'uppercase', 'lineHeight': 50}});
(FileImportTrackerModule).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 useSafetyFlowTask = SafetyFlowsTaskContextModule.useSafetyFlowTask;
const task = Reflect.apply(useSafetyFlowTask, SafetyFlowsTaskContextModule, []).task;
const value4 = ReactModule.useCallback(_fun125236, [task,
(UseNavigationNativeModule).useNavigation()]);
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
const ModalContent = (ModalContentNativeModule).ModalContent;
const Stack = (StackNativeModule).Stack;
const PX_16 = (Native).space.PX_16;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).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 = (StackNativeModule).Stack;
const PX_8 = (Native).space.PX_8;
const TableRowGroup = (TableRowGroupNativeModule).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 = (ModalFooterNativeModule).ModalFooter;
let value = LogOutDisclaimer;
value = ((Component) => <Component />)(value);
const ModalActionButton = (ModalActionButtonNativeModule).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 = (SafetyFlowsUtilsModule).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 TASK_TYPE_TO_TITLE = (TypesModule).TASK_TYPE_TO_TITLE;
return (
<SafetyTipsRow
tip={TASK_TYPE_TO_TITLE[a0.task_type]}
index={a1 + 1}
key={a0.task_type}
/>
);
}
}
}
global.__d(_fun125234, 16202, [31, 33, 4501, 16203, 1484, 16204, 6258, 6259, 4572, 697, 4573, 1244, 2486, 6231,
6237, 16199, 10120, 16206, 9790,
2]) /* metro module 16202, dependencies: [31, 33, 4501, 16203, 1484, 16204, 6258, 6259, 4572, 697, 4573, 1244, 2486, 6231, 6237, 16199, 10120, 16206, 9790, 2] */;