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

77 lines
2.5 KiB
TypeScript
Raw Normal View History

// Module ID: 15979
// Function ID: 15980
2026-07-20 16:05:17 +00:00
// Name: statesAreEqual
// Dependencies: [19, 502, 21, 12, 1483, 6944, 504, 6593, 15669, 1116, 576, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 15979 (statesAreEqual)
2026-08-24 06:08:38 +00:00
import applyDefault from "apply" /* 12 */;
import closure_3 from "noop" /* 19 */;
import closure_4 from "fetchFingerprint" /* 502 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function statesAreEqual(arg0, arg1) {
2026-08-24 06:08:38 +00:00
return applyDefault.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-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/auth/native/components/MFA.tsx");
2026-07-20 16:05:17 +00:00
export default function ConnectedMFA() {
let obj = arg0;
if (arg0 === undefined) {
obj = {};
}
({ inContainer, isMultiAccount } = obj);
2026-07-23 10:11:24 +00:00
let navigation;
navigation = isMultiAccount(1483).useNavigation();
2026-07-20 16:05:17 +00:00
if (inContainer) {
inContainer = navigation(6944)();
2026-07-20 16:05:17 +00:00
}
let tmpResult = tmp(504);
2026-08-24 06:08:38 +00:00
const items = [closure_4];
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) => {
({ mfaType, data, ticket } = arg0);
2026-08-24 06:08:38 +00:00
let obj = navigation(closure_1_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(576).space.PX_16;
obj[1] = tmp4(576).space.PX_12;
2026-07-29 08:29:29 +00:00
tmp13 = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[7] = tmp13;
return jsx(tmp(15669).MFAModal, obj);
2026-07-20 16:05:17 +00:00
} else {
tmpResult = tmp(1116);
let space = tmp4(576).space;
2026-07-29 08:29:29 +00:00
const isAndroidResult = tmpResult.isAndroid();
space = { paddingLeft: null, paddingTop: null };
space[0] = tmpResult.isAndroid() ? space.PX_8 : space.PX_16;
space[1] = tmp4(576).space.PX_12;
2026-07-29 08:29:29 +00:00
const tmp11 = tmpResult.isAndroid() ? space.PX_8 : space.PX_16;
2026-07-20 16:05:17 +00:00
}
};