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

81 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 15111
// Function ID: 15112
2026-07-20 16:05:17 +00:00
// Name: statesAreEqual
2026-08-08 06:10:11 +00:00
// Dependencies: [19, 1218, 21, 12, 1480, 8472, 589, 5827, 14987, 501, 712, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-08 06:10:11 +00:00
// Module 15111 (statesAreEqual)
2026-07-29 08:29:29 +00:00
import noop from "noop";
import fetchFingerprint from "fetchFingerprint";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
const require = arg1;
2026-07-20 16:05:17 +00:00
function statesAreEqual(arg0, arg1) {
2026-07-29 08:29:29 +00:00
return importDefault(12).isEqual(arg0, arg1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let closure_7 = { flex: 1, position: "relative" };
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/auth/native/components/MFA.tsx");
2026-07-20 16:05:17 +00:00
export default function ConnectedMFA() {
let inContainer;
let isMultiAccount;
let obj = arg0;
if (arg0 === undefined) {
obj = {};
}
({ inContainer, isMultiAccount } = obj);
2026-07-23 10:11:24 +00:00
let navigation;
2026-07-29 08:29:29 +00:00
navigation = isMultiAccount(1480).useNavigation();
2026-07-20 16:05:17 +00:00
if (inContainer) {
2026-08-08 06:10:11 +00:00
inContainer = navigation(8472)();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let tmpResult = tmp(589);
const items = [fetchFingerprint];
2026-07-20 16:05:17 +00:00
const items1 = [isMultiAccount];
2026-07-29 08:29:29 +00:00
const stateFromStores = tmpResult.useStateFromStores(items, () => ({ ticket: store.getMFATicket(), methods: store.getMFAMethods() }), [], statesAreEqual);
2026-07-20 16:05:17 +00:00
const items2 = [navigation];
const callback = React.useCallback((arg0) => {
let data;
let mfaType;
let ticket;
({ mfaType, data, ticket } = arg0);
2026-07-23 10:11:24 +00:00
let obj = navigation(outer1_2[7]);
2026-07-20 16:05:17 +00:00
obj = { code: data, ticket, mfaType, isMultiAccount };
return obj.loginMFAv2(obj);
}, items1);
const callback1 = React.useCallback(() => {
navigation.goBack();
}, items2);
2026-07-29 08:29:29 +00:00
obj = { mfaChallenge: stateFromStores, finish: callback, handleOnClose: callback1, ignoreKeyboard: inContainer, containerStyle: null, headerStatusBarHeight: null, headerLeftContainerStyle: null, headerRightContainerStyle: null };
let tmp9;
2026-07-20 16:05:17 +00:00
if (inContainer) {
2026-07-29 08:29:29 +00:00
tmp9 = closure_7;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[4] = tmp9;
2026-07-20 16:05:17 +00:00
let num;
if (inContainer) {
num = 0;
}
2026-07-29 08:29:29 +00:00
obj[5] = num;
2026-07-20 16:05:17 +00:00
if (!inContainer) {
2026-07-29 08:29:29 +00:00
obj[6] = undefined;
let tmp13;
2026-07-20 16:05:17 +00:00
if (inContainer) {
2026-07-29 08:29:29 +00:00
obj = { paddingRight: null, paddingTop: null, marginLeft: 0 };
obj[0] = tmp4(712).space.PX_16;
obj[1] = tmp4(712).space.PX_12;
tmp13 = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[7] = tmp13;
2026-08-08 06:10:11 +00:00
return jsx(tmp(14987).MFAModal, obj);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmpResult = tmp(501);
let space = tmp4(712).space;
const isAndroidResult = tmpResult.isAndroid();
space = { paddingLeft: null, paddingTop: null };
space[0] = tmpResult.isAndroid() ? space.PX_8 : space.PX_16;
space[1] = tmp4(712).space.PX_12;
const tmp11 = tmpResult.isAndroid() ? space.PX_8 : space.PX_16;
2026-07-20 16:05:17 +00:00
}
};