decord/source/modules/auth/native/components/AccountDisabledOrDeletionScheduled.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

131 lines
5.2 KiB
TypeScript

// Module ID: 16072
// Function ID: 16073
// Name: AccountDisabledOrDeletionScheduled
// Dependencies: [19, 17, 502, 1074, 21, 4636, 576, 1483, 504, 6694, 7045, 1114, 7073, 16073, 4632, 5514, 5056, 2]
// Exports: default
// Module 16072 (AccountDisabledOrDeletionScheduled)
import nativeDefault from "native" /* 576 */;
import AuthenticationActionCreatorsDefault from "AuthenticationActionCreators" /* 6694 */;
import noop from "module_19" /* 19 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
const require = fn;
const View = fn(17).View;
const LoginStates = fn(1074).LoginStates;
const jsxProd = fn(21);
({ jsx: closure_7, jsxs: closure_8 } = jsxProd);
const createStyles = fn(4636);
let closure_9 = createStyles.createStyles((arg0) => {
const space = nativeDefault.space;
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 };
let num = 0;
if (!arg0) {
num = tmp4(576).space.PX_16;
}
container.paddingHorizontal = num;
let str = "transparent";
if (!arg0) {
str = tmp4(576).colors.BACKGROUND_BASE_LOW;
}
container.backgroundColor = str;
let str2 = "center";
if (arg0) {
str2 = "space-between";
}
container.justifyContent = str2;
return { container, image: { marginBottom: 32, alignSelf: "center" }, title: { textAlign: "center", marginBottom: 8 }, description: { lineHeight: 18, marginBottom: 24, textAlign: "center" } };
});
const size = fn(2);
const result = size.fileFinishedImporting("modules/auth/native/components/AccountDisabledOrDeletionScheduled.tsx");
export default function AccountDisabledOrDeletionScheduled(handleLogin) {
handleLogin = handleLogin.handleLogin;
const onReset = handleLogin.onReset;
let navigation;
navigation = handleLogin(navigation[7]).useNavigation();
let obj = handleLogin(navigation[7]);
const items = [AuthenticationStore];
const stateFromStores = handleLogin(navigation[8]).useStateFromStores(items, () => loginStatus.getLoginStatus());
const ref = stateFromStores.useRef(null);
const items1 = [stateFromStores, navigation];
const effect = stateFromStores.useEffect(() => {
if (ref.current !== stateFromStores) {
if (null != tmp.current) {
if (tmp4) {
navigation.pop();
}
tmp4 = tmp2 !== LoginStates.ACCOUNT_SCHEDULED_FOR_DELETION && tmp2 !== LoginStates.ACCOUNT_DISABLED;
} else {
tmp.current = tmp2;
}
}
}, items1);
const items2 = [onReset];
const items3 = [handleLogin];
const callback = stateFromStores.useCallback(() => {
if (null == onReset) {
AuthenticationActionCreatorsDefault.loginReset();
} else {
tmp();
}
}, items2);
const callback1 = stateFromStores.useCallback(() => {
const credentials = AuthenticationStore.getCredentials();
const password = credentials.password;
let str = "";
if (undefined !== password) {
str = password;
}
handleLogin(credentials.login, str, true);
}, items3);
const tmp9 = closure_9(onReset(navigation[10])());
const intl = handleLogin(navigation[11]).intl;
const string = intl.string;
const t = handleLogin(navigation[11]).t;
if (stateFromStores === LoginStates.ACCOUNT_DISABLED) {
let stringResult = string(t["j3rC+U"]);
} else {
stringResult = string(t.ZFWofo);
}
const intl2 = tmp(tmp2[11]).intl;
const string2 = intl2.string;
const t2 = tmp(tmp2[11]).t;
if (stateFromStores === LoginStates.ACCOUNT_DISABLED) {
let string2Result = string2(t2["6eNTWe"]);
} else {
string2Result = string2(t2["pCBti+"]);
}
const obj3 = { contentStyle: { flexGrow: 1 }, children: null };
const obj4 = { style: tmp9.container, children: null };
const obj5 = { children: null };
const obj2 = handleLogin(navigation[8]);
const items4 = [closure_7(handleLogin(navigation[13]).WumpTrash, { style: tmp9.image }), closure_7(handleLogin(navigation[14]).Text, { style: tmp9.title, accessibilityRole: "header", variant: "heading-xl/extrabold", color: "mobile-text-heading-primary", children: stringResult }), closure_7(handleLogin(navigation[14]).Text, { style: tmp9.description, variant: "text-sm/medium", color: "text-default", children: string2Result })];
obj5.children = items4;
const items5 = [closure_8(ref, obj5), ];
const obj9 = { children: null };
const obj10 = { children: null };
const obj11 = { variant: "primary", text: null, onPress: null };
const intl3 = tmp(tmp2[11]).intl;
obj11.text = intl3.string(handleLogin(navigation[11]).t.JhDw5o);
obj11.onPress = callback;
const items6 = [closure_7(handleLogin(navigation[16]).Button, obj11), ];
const obj12 = { variant: "secondary", text: null, onPress: null };
const intl4 = tmp(tmp2[11]).intl;
obj12.text = intl4.string(handleLogin(navigation[11]).t.v51oiN);
obj12.onPress = callback1;
items6[1] = closure_7(handleLogin(navigation[16]).Button, obj12);
obj10.children = items6;
obj9.children = closure_8(handleLogin(navigation[15]).ButtonGroup, obj10);
items5[1] = closure_7(ref, obj9);
obj4.children = items5;
obj3.children = closure_8(ref, obj4);
return closure_7(onReset(navigation[12]), obj3);
};