decord/source/modules/mfa/native/screens/SelectScreen.tsx
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

66 lines
2.5 KiB
TypeScript

// Module ID: 15759
// Function ID: 15760
// Name: SelectScreen
// Dependencies: [19, 17, 15756, 21, 4636, 5763, 8718, 7045, 1483, 7226, 4632, 1114, 2]
// Exports: default
// Module 15759 (SelectScreen)
import NavigatorConstants from "NavigatorConstants" /* 5763 */;
import useWideAuthViewDefault from "useWideAuthView" /* 7045 */;
import RowButton from "RowButton" /* 8718 */;
import noop from "module_19" /* 19 */;
const require = globalThis.__r;
require = fn;
const View = fn(17).View;
const SELECT_NAMES = fn(15756).SELECT_NAMES;
const jsxProd = fn(21);
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
const createStyles = fn(4636);
let closure_7 = createStyles.createStyles((arg0) => {
const obj = { container: { marginLeft: 16, marginRight: 16 }, selectContainer: null };
const NAV_BAR_HEIGHT = NavigatorConstants.NAV_BAR_HEIGHT;
if (arg0) {
let diff = NAV_BAR_HEIGHT;
} else {
diff = NAV_BAR_HEIGHT - NavigatorConstants.STATUS_BAR_HEIGHT;
}
obj.selectContainer = { marginTop: diff, marginLeft: 16, marginRight: 16, display: "flex", alignItems: "center" };
return obj;
});
const size = fn(2);
const result = size.fileFinishedImporting("modules/mfa/native/screens/SelectScreen.tsx");
export default function SelectScreen(mfaChallenge) {
_require = mfaChallenge;
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 };
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);
});
items1[1] = closure_5(View, obj6);
obj2.children = items1;
return closure_6(require("common/SafeAreaView").SafeAreaPaddingView, obj2);
};