decord/source/modules/safety_hub/native/SuspendedUserPage.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

75 lines
3.7 KiB
TypeScript

// Module ID: 17020
// Function ID: 17021
// Name: SuspendedUserPage
// Dependencies: [19, 17, 8548, 8537, 21, 4636, 576, 504, 7226, 8202, 1114, 6694, 7095, 4632, 4331, 14854, 2]
// Exports: default
// Module 17020 (SuspendedUserPage)
import initialize from "initialize" /* 504 */;
import nativeDefault from "native" /* 576 */;
import LinkingDefault from "Linking" /* 4331 */;
import AuthenticationActionCreatorsDefault from "AuthenticationActionCreators" /* 6694 */;
import _modDef7095 from "module_7095" /* 7095 */;
import common_SafeAreaView from "common/SafeAreaView" /* 7226 */;
import SafetyHubPageDefault from "SafetyHubPage" /* 14854 */;
import noop from "module_19" /* 19 */;
import SafetyHubStore from "SafetyHubStore" /* 8548 */;
require = fn;
const View = fn(17).View;
const SafetyHubConstants = fn(8537);
({ AgeCheckStatus: hasOwnProperty, SafetyHubLinks: metroRequire } = SafetyHubConstants);
const jsxProd = fn(21);
({ jsx: closure_7, jsxs: closure_8 } = jsxProd);
const createStyles = fn(4636);
let obj2 = { container: { backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW, display: "flex", flexDirection: "column", height: "100%" }, header: null, text: null, link: null };
let obj3 = { backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW, display: "flex", flexDirection: "column", height: "100%" };
obj2.header = { backgroundColor: nativeDefault.colors.CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT, flexDirection: "row", paddingVertical: nativeDefault.space.PX_8, alignItems: "center" };
let obj4 = { backgroundColor: nativeDefault.colors.CONTROL_CRITICAL_PRIMARY_BACKGROUND_DEFAULT, flexDirection: "row", paddingVertical: nativeDefault.space.PX_8, alignItems: "center" };
obj2.text = { marginRight: nativeDefault.space.PX_8, textAlign: "left", flexShrink: 1 };
obj2.link = { textDecorationLine: "underline" };
let closure_9 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/safety_hub/native/SuspendedUserPage.tsx");
export default function SuspendedUserSafetyHubPage() {
const tmp = closure_9();
const items = [SafetyHubStore];
let tmp6Result = initialize.useStateFromStores(items, () => ageCheckStatus.getAgeCheckStatus()) !== constants.VERIFIED;
const obj2 = { style: tmp.container, children: null };
if (tmp6Result) {
const obj3 = { style: tmp.header, children: null };
const obj4 = { variant: "destructive", accessibilityLabel: null, onPress: null, icon: null };
const intl = tmp2(1114).intl;
obj4.accessibilityLabel = intl.string(tmp2(1114).t.cpT0Cq);
obj4.onPress = function onPress() {
AuthenticationActionCreatorsDefault.closeSuspendedUser();
};
obj4.icon = _modDef7095;
const items1 = [tmp5(tmp2(8202).IconButton, obj4), ];
const obj5 = {
style: tmp.text,
onPress() {
LinkingDefault.openURL(constants.WARNING_SYSTEM_HELPCENTER_LINK);
},
variant: "text-xs/medium",
color: "control-critical-primary-text-default",
children: null
};
const intl2 = tmp2(1114).intl;
const items2 = [intl2.string(tmp2(1114).t["MG+Bzb"]), " ", ];
const obj6 = { style: tmp.link, variant: "text-xs/medium", color: "control-critical-primary-text-default", children: null };
const intl3 = tmp2(1114).intl;
obj6.children = intl3.string(tmp2(1114).t["9JceHN"]);
items2[2] = tmp5(tmp2(4632).Text, obj6);
obj5.children = items2;
items1[1] = tmp6(tmp2(4632).Text, obj5);
obj3.children = items1;
tmp6Result = tmp6(tmp7, obj3);
}
const rect = { top: true, right: true, left: true, children: null };
const items3 = [tmp6Result, React5(SafetyHubPageDefault, { visible: true })];
obj2.children = items3;
rect.children = React6(View, obj2);
return React5(common_SafeAreaView.SafeAreaPaddingView, rect);
};