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

103 lines
5.9 KiB
TypeScript

/* Metro module 15260; source: modules/safety_hub/native/SuspendedUserPage.tsx; dependencies: [31, 27, 5267, 33, 4501, 697, 6618, 8341, 1244, 5076, 8160, 4573, 3853, 13272, 2] */
import AuthenticationActionCreators from '../../../actions/AuthenticationActionCreators.tsx'; /* Metro dependency 5076 */
import Module08160 from '../../../by-id/module-08160.js'; /* Metro dependency 8160 */
import SafetyHubPage from './SafetyHubPage.tsx'; /* Metro dependency 13272 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as SafetyHubConstantsModule from '../SafetyHubConstants.tsx'; /* Metro dependency 5267 */
import * as SafeAreaViewModule from '../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as IconButtonNativeModule from '../../../design/components/Button/native/IconButton.native.tsx'; /* Metro dependency 8341 */
function _fun116679(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15457:6, offset: 0x02492f44, size: 394 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object.container = {'backgroundColor': null, 'display': 'flex', 'flexDirection': 'column', 'height': '100%',
backgroundColor: BACKGROUND_BASE_LOW};
const object3 = {};
const CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT;
object3.backgroundColor = CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT;
object3.flexDirection = 'row';
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.paddingVertical = PX_8;
object3.alignItems = 'center';
object.header = object3;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object.text = {'marginRight': null, 'textAlign': 'left', 'flexShrink': 1, marginRight: PX_8};
object.link = {textDecorationLine: 'underline'};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/safety_hub/native/SuspendedUserPage.tsx');
exports.default = SuspendedUserSafetyHubPage;
function SuspendedUserSafetyHubPage() { // fn#116680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15457:669, offset: 0x024930ce, size: 523 bytes, params: 1, frame: 30
const styles = useStyles();
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const IconButton = (IconButtonNativeModule).IconButton;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const items2 = [
<IconButton
variant="destructive"
accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)}
onPress={onPress_116681}
icon={Module08160}
/>,
];
const Text = (TextModule).Text;
const value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MG+Bzb']);
const Text2 = (TextModule).Text;
items2[1] = (
<Text
style={styles.text}
onPress={function() {
importDefault(dependencyMap[12]).openURL(SafetyHubLinks.WARNING_SYSTEM_HELPCENTER_LINK);
}}
variant="text-xs/medium"
color="control-critical-primary-text-default"
>
{value}
{' '}
<Text2
style={styles.link}
variant="text-xs/medium"
color="control-critical-primary-text-default"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9JceHN'])}
</Text2>
</Text>
);
return (
<SafeAreaPaddingView
top
right
left
>
<View style={styles.container}>
<View style={styles.header}>
{items2}
</View>
{((Component) => <Component visible />)(SafetyHubPage)}
</View>
</SafeAreaPaddingView>
);
function SuspendedUserSafetyHubPageOnPress() { // fn#116681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15457:960, owner: SuspendedUserSafetyHubPage.onPress, offset: 0x024932d9, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(AuthenticationActionCreators).closeSuspendedUser();
}
}
}
global.__d(_fun116679, 15260, [31, 27, 5267, 33, 4501, 697, 6618, 8341, 1244, 5076, 8160, 4573, 3853, 13272,
2]) /* metro module 15260, dependencies: [31, 27, 5267, 33, 4501, 697, 6618, 8341, 1244, 5076, 8160, 4573, 3853, 13272, 2] */;