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

82 lines
4.4 KiB
TypeScript

/* Metro module 16208; source: modules/safety_flows/native/SafetyFlowTaskScreen.tsx; dependencies: [31, 33, 4501, 6258, 6259, 4572, 4573, 10120, 16206, 9790, 2] */
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 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 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 */
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});
ReactModule;
const env0_5 = (CreateStylesModule).createStyles({header: {textAlign: 'center'}});
(FileImportTrackerModule).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 = (TextModule).Text;
var r5;
var ModalFooter;
var items4;
action = action === undefined ? null : action;
withLogout = withLogout === undefined || withLogout;
const styles = useStyles();
const ModalScreen = (ModalScreenNativeModule).ModalScreen;
const ModalContent = (ModalContentNativeModule).ModalContent;
const Stack = (StackNativeModule).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>
);
}
}
global.__d(_fun125259, 16208, [31, 33, 4501, 6258, 6259, 4572, 4573, 10120, 16206, 9790,
2]) /* metro module 16208, dependencies: [31, 33, 4501, 6258, 6259, 4572, 4573, 10120, 16206, 9790, 2] */;