decord/source/modules/mfa/native/screens/SelectScreen.tsx

67 lines
2.5 KiB
TypeScript
Raw Normal View History

// Module ID: 15757
// Function ID: 15758
2026-07-20 16:05:17 +00:00
// Name: SelectScreen
// Dependencies: [19, 17, 15754, 21, 4636, 5763, 8718, 7045, 1483, 7226, 4632, 1114, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 15757 (SelectScreen)
import NavigatorConstants from "NavigatorConstants" /* 5763 */;
import useWideAuthViewDefault from "useWideAuthView" /* 7045 */;
import RowButton from "RowButton" /* 8718 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
require = fn;
const View = fn(17).View;
const SELECT_NAMES = fn(15754).SELECT_NAMES;
const jsxProd = fn(21);
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
const createStyles = fn(4636);
let closure_7 = createStyles.createStyles((arg0) => {
2026-07-29 08:29:29 +00:00
const obj = { container: { marginLeft: 16, marginRight: 16 }, selectContainer: null };
const NAV_BAR_HEIGHT = NavigatorConstants.NAV_BAR_HEIGHT;
2026-07-20 16:05:17 +00:00
if (arg0) {
let diff = NAV_BAR_HEIGHT;
} else {
diff = NAV_BAR_HEIGHT - NavigatorConstants.STATUS_BAR_HEIGHT;
2026-07-20 16:05:17 +00:00
}
obj.selectContainer = { marginTop: diff, marginLeft: 16, marginRight: 16, display: "flex", alignItems: "center" };
2026-07-20 16:05:17 +00:00
return obj;
});
const size = fn(2);
const result = size.fileFinishedImporting("modules/mfa/native/screens/SelectScreen.tsx");
2026-07-20 16:05:17 +00:00
2026-09-02 09:53:35 +00:00
export default function SelectScreen(mfaChallenge) {
_require = mfaChallenge;
2026-08-24 06:08:38 +00:00
const tmp = useWideAuthViewDefault();
const tmp2 = closure_7(tmp);
importDefault = require("useNavigation").useNavigation();
const obj2 = { top: !tmp, style: tmp2.container, children: null };
const obj3 = { style: tmp2.selectContainer, children: null };
const obj4 = { variant: "heading-xl/extrabold", children: null };
const intl = require("util").intl;
obj4.children = intl.string(require("util").t.S9b9bX);
const items = [closure_5(require("Text/Text").Heading, obj4), ];
const obj5 = { variant: "text-sm/medium", children: null };
const intl2 = require("util").intl;
obj5.children = intl2.string(require("util").t.Jz1lXO);
items[1] = closure_5(require("Text/Text").Text, obj5);
obj3.children = items;
const items1 = [closure_6(View, obj3), ];
const obj6 = { style: { marginTop: 16, gap: 8 }, children: null };
2026-09-02 09:53:35 +00:00
const methods = mfaChallenge.mfaChallenge.methods;
obj6.children = methods.map((type) => {
closure_2 = type;
return hasOwnProperty(RowButton.RowButton, {
label: SELECT_NAMES[type.type],
onPress() {
closure_2.push(type.type, closure_0);
}
}, type.type);
2026-07-20 16:05:17 +00:00
});
items1[1] = closure_5(View, obj6);
obj2.children = items1;
return closure_6(require("common/SafeAreaView").SafeAreaPaddingView, obj2);
2026-07-20 16:05:17 +00:00
};