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

133 lines
5.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15307
// Function ID: 15308
2026-07-20 16:05:17 +00:00
// Name: AccountDisabledOrDeletionScheduled
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 1218, 676, 21, 4668, 712, 1500, 589, 5261, 8621, 1236, 8646, 15308, 4739, 6723, 4750, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 15307 (AccountDisabledOrDeletionScheduled)
import ThemesDefault from "Themes" /* 712 */;
import closure_3 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import closure_5 from "fetchFingerprint" /* 1218 */;
import { LoginStates } from "ME" /* 676 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
({ jsx: error, jsxs: closure_8 } = jsxProd);
2026-07-29 08:29:29 +00:00
let closure_9 = createCacheKey.createStyles((arg0) => {
2026-08-24 06:08:38 +00:00
const space = ThemesDefault.space;
2026-07-29 08:29:29 +00:00
if (arg0) {
let PX_16 = space.PX_8;
let tmp4 = tmp;
} else {
PX_16 = space.PX_16;
tmp4 = tmp;
}
const container = { display: "flex", height: "100%", flex: 1, paddingBottom: PX_16, paddingHorizontal: null, backgroundColor: null, justifyContent: null };
2026-07-20 16:05:17 +00:00
let num = 0;
if (!arg0) {
2026-07-29 08:29:29 +00:00
num = tmp4(712).space.PX_16;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
container[4] = num;
2026-07-20 16:05:17 +00:00
let str = "transparent";
if (!arg0) {
2026-07-29 08:29:29 +00:00
str = tmp4(712).colors.BACKGROUND_BASE_LOW;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
container[5] = str;
2026-07-20 16:05:17 +00:00
let str2 = "center";
if (arg0) {
str2 = "space-between";
}
2026-07-29 08:29:29 +00:00
container[6] = str2;
return { container, image: { marginBottom: 32, alignSelf: "center" }, title: { textAlign: "center", marginBottom: 8 }, description: { lineHeight: 18, marginBottom: 24, textAlign: "center" } };
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const result = require("set").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-29 08:29:29 +00:00
let navigation;
let stateFromStores;
2026-08-24 06:08:38 +00:00
closure_4 = undefined;
2026-07-23 10:11:24 +00:00
let obj = handleLogin(navigation[7]);
navigation = obj.useNavigation();
2026-08-24 06:08:38 +00:00
obj1 = handleLogin(navigation[8]);
const items = [closure_5];
2026-07-29 08:29:29 +00:00
stateFromStores = obj1.useStateFromStores(items, () => loginStatus.getLoginStatus());
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) {
2026-07-29 08:29:29 +00:00
if (null != tmp.current) {
if (tmp4) {
2026-07-20 16:05:17 +00:00
navigation.pop();
}
2026-08-24 06:08:38 +00:00
tmp4 = tmp2 !== closure_1_6.ACCOUNT_SCHEDULED_FOR_DELETION && tmp2 !== closure_1_6.ACCOUNT_DISABLED;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp.current = tmp2;
2026-07-20 16:05:17 +00:00
}
}
}, 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 {
2026-07-29 08:29:29 +00:00
tmp();
2026-07-20 16:05:17 +00:00
}
}, items2);
2026-07-23 10:11:24 +00:00
const callback1 = stateFromStores.useCallback(() => {
2026-08-24 06:08:38 +00:00
const credentials = closure_1_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-29 08:29:29 +00:00
const tmp9 = callback3(onReset(navigation[10])());
2026-07-23 10:11:24 +00:00
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-29 08:29:29 +00:00
const intl2 = tmp(tmp2[11]).intl;
2026-07-20 16:05:17 +00:00
const string2 = intl2.string;
2026-07-29 08:29:29 +00:00
const t2 = tmp(tmp2[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
}
2026-07-29 08:29:29 +00:00
obj = { contentStyle: { flexGrow: 1 }, children: null };
obj = { style: tmp9.container, children: null };
obj1 = { children: null };
const items4 = [callback(handleLogin(navigation[13]).WumpTrash, { style: tmp9.image }), callback(handleLogin(navigation[14]).Text, { style: tmp9.title, accessibilityRole: "header", variant: "heading-xl/extrabold", color: "mobile-text-heading-primary", children: stringResult }), callback(handleLogin(navigation[14]).Text, { style: tmp9.description, variant: "text-sm/medium", color: "text-default", children: string2Result })];
obj1[0] = items4;
2026-07-20 16:05:17 +00:00
const items5 = [callback2(closure_4, obj1), ];
2026-07-29 08:29:29 +00:00
const obj5 = { children: null };
const obj6 = { children: null };
const obj7 = { variant: "primary", text: null, onPress: null };
const intl3 = tmp(tmp2[11]).intl;
obj7[1] = intl3.string(handleLogin(navigation[11]).t.JhDw5o);
obj7[2] = callback;
2026-07-23 10:11:24 +00:00
const items6 = [callback(handleLogin(navigation[16]).Button, obj7), ];
2026-07-29 08:29:29 +00:00
const obj8 = { variant: "secondary", text: null, onPress: null };
const intl4 = tmp(tmp2[11]).intl;
obj8[1] = intl4.string(handleLogin(navigation[11]).t.v51oiN);
obj8[2] = callback1;
2026-07-23 10:11:24 +00:00
items6[1] = callback(handleLogin(navigation[16]).Button, obj8);
2026-07-29 08:29:29 +00:00
obj6[0] = items6;
obj5[0] = callback2(handleLogin(navigation[15]).ButtonGroup, obj6);
2026-07-20 16:05:17 +00:00
items5[1] = callback(closure_4, obj5);
2026-07-29 08:29:29 +00:00
obj[1] = items5;
obj[1] = 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
};