Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
73 lines
2.7 KiB
TypeScript
73 lines
2.7 KiB
TypeScript
// Module ID: 16047
|
|
// Function ID: 16048
|
|
// Name: components/MFA
|
|
// Dependencies: [19, 502, 21, 12, 1483, 7015, 504, 6664, 15733, 1116, 576, 2]
|
|
// Exports: default
|
|
|
|
// Module 16047 (components/MFA)
|
|
import _modDef12 from "module_12" /* 12 */;
|
|
import AuthenticationActionCreatorsDefault from "AuthenticationActionCreators" /* 6664 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import AuthenticationStore from "AuthenticationStore" /* 502 */;
|
|
|
|
const require = fn;
|
|
function statesAreEqual(arg0, arg1) {
|
|
return _modDef12.isEqual(arg0, arg1);
|
|
}
|
|
const jsx = fn(21).jsx;
|
|
let closure_7 = { flex: 1, position: "relative" };
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/auth/native/components/MFA.tsx");
|
|
|
|
export default function ConnectedMFA() {
|
|
let obj = arg0;
|
|
if (arg0 === undefined) {
|
|
obj = {};
|
|
}
|
|
({ inContainer, isMultiAccount } = obj);
|
|
const navigation = isMultiAccount(1483).useNavigation();
|
|
if (inContainer) {
|
|
inContainer = navigation(7015)();
|
|
}
|
|
const obj2 = isMultiAccount(1483);
|
|
const items = [AuthenticationStore];
|
|
const items1 = [isMultiAccount];
|
|
const stateFromStores = isMultiAccount(504).useStateFromStores(items, () => ({ ticket: AuthenticationStore.getMFATicket(), methods: AuthenticationStore.getMFAMethods() }), [], statesAreEqual);
|
|
const items2 = [navigation];
|
|
const callback = noop.useCallback((arg0) => {
|
|
({ mfaType, data, ticket } = arg0);
|
|
return AuthenticationActionCreatorsDefault.loginMFAv2({ code: data, ticket, mfaType, isMultiAccount });
|
|
}, items1);
|
|
const callback1 = noop.useCallback(() => {
|
|
navigation.goBack();
|
|
}, items2);
|
|
const obj3 = { mfaChallenge: stateFromStores, finish: callback, handleOnClose: callback1, ignoreKeyboard: inContainer, containerStyle: null, headerStatusBarHeight: null, headerLeftContainerStyle: null, headerRightContainerStyle: null };
|
|
let tmp9;
|
|
if (inContainer) {
|
|
tmp9 = closure_7;
|
|
}
|
|
obj3.containerStyle = tmp9;
|
|
let num;
|
|
if (inContainer) {
|
|
num = 0;
|
|
}
|
|
obj3.headerStatusBarHeight = num;
|
|
if (!inContainer) {
|
|
obj3.headerLeftContainerStyle = undefined;
|
|
let tmp13;
|
|
if (inContainer) {
|
|
const obj4 = { paddingRight: tmp4(576).space.PX_16, paddingTop: tmp4(576).space.PX_12, marginLeft: 0 };
|
|
tmp13 = obj4;
|
|
}
|
|
obj3.headerRightContainerStyle = tmp13;
|
|
return jsx(tmp(15733).MFAModal, obj3);
|
|
} else {
|
|
const tmpResult2 = tmp(1116);
|
|
tmp4(576).space;
|
|
const isAndroidResult = tmp(1116).isAndroid();
|
|
const space = { paddingLeft: null, paddingTop: null };
|
|
space.paddingLeft = tmp(1116).isAndroid() ? space.PX_8 : space.PX_16;
|
|
space.paddingTop = tmp4(576).space.PX_12;
|
|
const tmp11 = tmp(1116).isAndroid() ? space.PX_8 : space.PX_16;
|
|
}
|
|
};
|