// Module ID: 9013 // Function ID: 9014 // Name: ItemSelectorActionSheet // Dependencies: [19, 21, 4065, 712, 1628, 5436, 5435, 5804, 5438, 8026, 8025, 2] // Exports: default // Module 9013 (ItemSelectorActionSheet) import "noop"; import jsxProd from "jsxProd"; let c3; let c4; const require = arg1; ({ jsx: c3, jsxs: c4 } = jsxProd); const result = require("map").fileFinishedImporting("components_native/common/ItemSelectorActionSheet.tsx"); export default function ItemSelectorActionSheet(arg0) { let body; let dependencyMap; let hasIcons; let importDefault; let items; let onClose; let title; ({ title, items } = arg0); ({ selectedItem: importDefault, onItemSelect: dependencyMap, onClose } = arg0); ({ body, hasIcons } = arg0); let obj = items(4065); const token = obj.useToken(importDefault(712).modules.mobile.TABLE_ROW_PADDING); const findIndexResult = items.findIndex((value) => value.value === closure_1); obj = { title, trailing: null }; let tmp6Result = null; if (null != onClose) { obj = { onPress: null }; obj[0] = onClose; tmp6Result = tmp6(tmp(5804).ActionSheetCloseButton, obj); } const obj1 = { scrollable: true, header: closure_3(items(5435).BottomSheetTitleHeader, obj), children: null }; obj[1] = tmp6Result; const obj2 = { contentContainerStyle: null, children: null }; const obj3 = { paddingHorizontal: token, paddingBottom: null }; obj3[1] = importDefault(1628)().bottom + importDefault(712).space.PX_16; obj2[0] = obj3; items = [body, ]; let num = -1; if (findIndexResult >= 0) { num = findIndexResult; } items[1] = closure_3(items(8026).TableRadioGroup, { value: num, accessibilityLabel: title, hasIcons, onChange(arg0) { if (null != items[arg0]) { dependencyMap(iter.value); } }, children: items.map((label, value) => callback(items(8025).TableRadioRow, { label: label.label, value }, value)) }); obj2[1] = items; obj1[2] = closure_4(items(5438).BottomSheetScrollView, obj2); return closure_3(items(5436).BottomSheet, obj1); };