68 lines
4.5 KiB
TypeScript
68 lines
4.5 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] */
|
|
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
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
|
const env0_4 = (require(5267) /* metro dependency 5267: SafetyHubConstants */).SafetyHubLinks;
|
|
let 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 = {};
|
|
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
|
object2.container = {'backgroundColor': null, 'display': 'flex', 'flexDirection': 'column', 'height': '100%',
|
|
backgroundColor: BACKGROUND_BASE_LOW};
|
|
const object4 = {};
|
|
const CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT;
|
|
object4.backgroundColor = CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT;
|
|
object4.flexDirection = 'row';
|
|
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object4.paddingVertical = PX_8;
|
|
object4.alignItems = 'center';
|
|
object2.header = object4;
|
|
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object2.text = {'marginRight': null, 'textAlign': 'left', 'flexShrink': 1, marginRight: PX_8};
|
|
object2.link = {textDecorationLine: 'underline'};
|
|
const env0_7 = Reflect.apply(createStyles, value, [object2]);
|
|
(require(2) /* metro dependency 2 */).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 = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
|
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).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={importDefault(8160) /* metro dependency 8160 */} />];
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MG+Bzb']);
|
|
const Text2 = (require(4573) /* metro dependency 4573: Text */).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 />)(importDefault(13272) /* metro dependency 13272: 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__;
|
|
(importDefault(5076) /* metro dependency 5076: AuthenticationActionCreators */).closeSuspendedUser();
|
|
}
|
|
|