decord/source/modules/mfa/native/screens/MfaOptionScreen.tsx
2026-07-27 11:26:19 +00:00

83 lines
2.9 KiB
TypeScript

// Module ID: 14701
// Function ID: 112018
// Name: MFAOptionScreen
// Dependencies: [27, 33, 9125, 14702, 5121, 4542, 4127, 14703, 9150, 2]
// Exports: default
// Module 14701 (MFAOptionScreen)
import { ScrollView } from "get ActivityIndicator";
import jsxProd from "jsxProd";
let closure_4;
let closure_5;
let closure_6;
({ jsx: closure_4, jsxs: closure_5, Fragment: closure_6 } = jsxProd);
const result = require("useWideAuthView").fileFinishedImporting("modules/mfa/native/screens/MfaOptionScreen.tsx");
export default function MFAOptionScreen(arg0) {
let content;
let error;
let headerImage;
let headerText;
let input;
let mfaMethod;
let screenProps;
let submit;
let subtitle;
({ headerImage, subtitle, screenProps, error } = arg0);
({ headerText, input, submit, mfaMethod, content } = arg0);
const tmp = importDefault(9125)();
let obj = importDefault(14702);
const screenStyles = obj.useScreenStyles(tmp);
const first = screenProps.mfaChallenge.methods[0];
let type;
if (null != first) {
type = first.type;
}
let tmp5 = type === mfaMethod;
obj = { bottom: !tmp, top: !tmp, style: screenStyles.contentContainer };
obj = {};
const obj1 = { style: screenStyles.mfaContainerHeader, spacing: 4 };
let tmp7 = null != headerImage;
if (tmp7) {
tmp7 = headerImage;
}
const items = [tmp7, callback(require(4127) /* Text */.Text, { variant: "heading-xl/extrabold", style: screenStyles.mfaContainerHeaderText, children: headerText }), , ];
let tmp8 = null != subtitle;
if (tmp8) {
const obj3 = { variant: "heading-sm/normal", color: "text-default", children: subtitle };
tmp8 = callback(require(4127) /* Text */.Text, obj3);
}
items[2] = tmp8;
let tmp12 = null != error;
if (tmp12) {
const obj4 = { variant: "text-sm/normal", color: "text-feedback-critical", children: error };
tmp12 = callback(require(4127) /* Text */.Text, obj4);
}
items[3] = tmp12;
obj1.children = items;
const items1 = [closure_5(require(4542) /* Stack */.Stack, obj1), input];
obj.children = items1;
const items2 = [closure_5(require(4542) /* Stack */.Stack, obj), content, ];
const obj5 = { style: screenStyles.submit };
const items3 = [submit, ];
if (tmp5) {
const obj6 = { props: screenProps };
tmp5 = callback(importDefault(14703), obj6);
}
items3[1] = tmp5;
obj5.children = items3;
items2[2] = closure_5(require(4542) /* Stack */.Stack, obj5);
obj.children = items2;
const tmp6Result = closure_5(require(5121) /* SafeAreaPaddingView */.SafeAreaPaddingView, obj);
const obj7 = {};
const items4 = [callback(importDefault(9150), { backgroundImageCover: false }), ];
let tmp23 = tmp6Result;
if (tmp) {
const obj8 = { keyboardShouldPersistTaps: "handled", children: tmp6Result };
tmp23 = callback(ScrollView, obj8);
}
items4[1] = tmp23;
obj7.children = items4;
return closure_5(closure_6, obj7);
};