decord/source/modules/auth/native/components/AccountDisabledOrDeletionScheduled.tsx

137 lines
5.1 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 14821
// Function ID: 113071
2026-07-20 16:05:17 +00:00
// Name: AccountDisabledOrDeletionScheduled
2026-07-27 11:26:19 +00:00
// Dependencies: [31, 27, 1194, 653, 33, 4131, 689, 1456, 566, 5588, 9125, 1212, 9147, 14822, 4127, 4966, 4544, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 14821 (AccountDisabledOrDeletionScheduled)
2026-07-23 10:11:24 +00:00
import result from "result";
import { View } from "get ActivityIndicator";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { LoginStates } from "ME";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_7;
let closure_8;
const require = arg1;
({ jsx: closure_7, jsxs: closure_8 } = jsxProd);
let closure_9 = _createForOfIteratorHelperLoose.createStyles((arg0) => {
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { display: "flex", height: "100%", flex: 1 };
const space = importDefault(689).space;
2026-07-20 16:05:17 +00:00
obj.paddingBottom = arg0 ? space.PX_8 : space.PX_16;
let num = 0;
if (!arg0) {
2026-07-23 10:11:24 +00:00
num = importDefault(689).space.PX_16;
2026-07-20 16:05:17 +00:00
}
obj.paddingHorizontal = num;
let str = "transparent";
if (!arg0) {
2026-07-23 10:11:24 +00:00
str = importDefault(689).colors.BACKGROUND_BASE_LOW;
2026-07-20 16:05:17 +00:00
}
obj.backgroundColor = str;
let str2 = "center";
if (arg0) {
str2 = "space-between";
}
obj.justifyContent = str2;
obj.container = obj;
2026-07-23 10:11:24 +00:00
obj.image = { marginBottom: 32, alignSelf: "center" };
obj.title = { textAlign: "center", marginBottom: 8 };
obj.description = { lineHeight: 18, marginBottom: 24, textAlign: "center" };
2026-07-20 16:05:17 +00:00
return obj;
});
2026-07-23 10:11:24 +00:00
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/auth/native/components/AccountDisabledOrDeletionScheduled.tsx");
2026-07-20 16:05:17 +00:00
export default function AccountDisabledOrDeletionScheduled(handleLogin) {
handleLogin = handleLogin.handleLogin;
const onReset = handleLogin.onReset;
2026-07-23 10:11:24 +00:00
let obj = handleLogin(navigation[7]);
navigation = obj.useNavigation();
let obj1 = handleLogin(navigation[8]);
const items = [_isNativeReflectConstruct];
const stateFromStores = obj1.useStateFromStores(items, () => outer1_5.getLoginStatus());
let closure_4 = stateFromStores.useRef(null);
2026-07-20 16:05:17 +00:00
const items1 = [stateFromStores, navigation];
2026-07-23 10:11:24 +00:00
const effect = stateFromStores.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (ref.current !== stateFromStores) {
if (null != ref.current) {
2026-07-23 10:11:24 +00:00
let tmp7 = stateFromStores !== outer1_6.ACCOUNT_SCHEDULED_FOR_DELETION;
2026-07-20 16:05:17 +00:00
if (tmp7) {
2026-07-23 10:11:24 +00:00
tmp7 = stateFromStores !== outer1_6.ACCOUNT_DISABLED;
2026-07-20 16:05:17 +00:00
}
if (tmp7) {
navigation.pop();
}
} else {
ref.current = stateFromStores;
}
}
}, items1);
const items2 = [onReset];
const items3 = [handleLogin];
2026-07-23 10:11:24 +00:00
const callback = stateFromStores.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (null == onReset) {
onReset(navigation[9]).loginReset();
const obj = onReset(navigation[9]);
} else {
onReset();
}
}, items2);
2026-07-23 10:11:24 +00:00
const callback1 = stateFromStores.useCallback(() => {
const credentials = outer1_5.getCredentials();
2026-07-20 16:05:17 +00:00
const password = credentials.password;
let str = "";
if (undefined !== password) {
str = password;
}
handleLogin(credentials.login, str, true);
}, items3);
2026-07-23 10:11:24 +00:00
const tmp6 = callback3(onReset(navigation[10])());
const intl = handleLogin(navigation[11]).intl;
2026-07-20 16:05:17 +00:00
const string = intl.string;
2026-07-23 10:11:24 +00:00
const t = handleLogin(navigation[11]).t;
2026-07-20 16:05:17 +00:00
if (stateFromStores === LoginStates.ACCOUNT_DISABLED) {
2026-07-23 10:11:24 +00:00
let stringResult = string(t["j3rC+U"]);
2026-07-20 16:05:17 +00:00
} else {
stringResult = string(t.ZFWofo);
}
2026-07-23 10:11:24 +00:00
const intl2 = handleLogin(navigation[11]).intl;
2026-07-20 16:05:17 +00:00
const string2 = intl2.string;
2026-07-23 10:11:24 +00:00
const t2 = handleLogin(navigation[11]).t;
2026-07-20 16:05:17 +00:00
if (stateFromStores === LoginStates.ACCOUNT_DISABLED) {
2026-07-23 10:11:24 +00:00
let string2Result = string2(t2["6eNTWe"]);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
string2Result = string2(t2["pCBti+"]);
2026-07-20 16:05:17 +00:00
}
obj = { contentStyle: { flexGrow: 1 } };
obj = { style: tmp6.container };
obj1 = {};
2026-07-23 10:11:24 +00:00
const items4 = [callback(handleLogin(navigation[13]).WumpTrash, { style: tmp6.image }), , ];
const obj3 = { style: tmp6.title, accessibilityRole: "header", variant: "heading-xl/extrabold", color: "mobile-text-heading-primary", children: stringResult };
items4[1] = callback(handleLogin(navigation[14]).Text, obj3);
const obj4 = { style: tmp6.description, variant: "text-sm/medium", color: "text-default", children: string2Result };
items4[2] = callback(handleLogin(navigation[14]).Text, obj4);
2026-07-20 16:05:17 +00:00
obj1.children = items4;
const items5 = [callback2(closure_4, obj1), ];
const obj5 = {};
const obj6 = {};
const obj7 = { variant: "primary" };
2026-07-23 10:11:24 +00:00
const intl3 = handleLogin(navigation[11]).intl;
obj7.text = intl3.string(handleLogin(navigation[11]).t.JhDw5o);
2026-07-20 16:05:17 +00:00
obj7.onPress = callback;
2026-07-23 10:11:24 +00:00
const items6 = [callback(handleLogin(navigation[16]).Button, obj7), ];
2026-07-20 16:05:17 +00:00
const obj8 = { variant: "secondary" };
2026-07-23 10:11:24 +00:00
const intl4 = handleLogin(navigation[11]).intl;
obj8.text = intl4.string(handleLogin(navigation[11]).t.v51oiN);
2026-07-20 16:05:17 +00:00
obj8.onPress = callback1;
2026-07-23 10:11:24 +00:00
items6[1] = callback(handleLogin(navigation[16]).Button, obj8);
2026-07-20 16:05:17 +00:00
obj6.children = items6;
2026-07-23 10:11:24 +00:00
obj5.children = callback2(handleLogin(navigation[15]).ButtonGroup, obj6);
2026-07-20 16:05:17 +00:00
items5[1] = callback(closure_4, obj5);
obj.children = items5;
obj.children = callback2(closure_4, obj);
2026-07-23 10:11:24 +00:00
return callback(onReset(navigation[12]), obj);
2026-07-20 16:05:17 +00:00
};