// Module ID: 8246 // Function ID: 8247 // Name: ItemSelectorActionSheet // Dependencies: [19, 21, 3893, 712, 1581, 5243, 5242, 5552, 5245, 7655, 7654, 2] // Exports: default // Module 8246 (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(3893); 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(5552).ActionSheetCloseButton, obj); } const obj1 = { scrollable: true, header: closure_3(items(5242).BottomSheetTitleHeader, obj), children: null }; obj[1] = tmp6Result; const obj2 = { contentContainerStyle: null, children: null }; const obj3 = { paddingHorizontal: token, paddingBottom: null }; obj3[1] = importDefault(1581)().bottom + importDefault(712).space.PX_16; obj2[0] = obj3; items = [body, ]; let num = -1; if (findIndexResult >= 0) { num = findIndexResult; } items[1] = closure_3(items(7655).TableRadioGroup, { value: num, accessibilityLabel: title, hasIcons, onChange(arg0) { if (null != items[arg0]) { dependencyMap(iter.value); } }, children: items.map((label, value) => callback(items(7654).TableRadioRow, { label: label.label, value }, value)) }); obj2[1] = items; obj1[2] = closure_4(items(5245).BottomSheetScrollView, obj2); return closure_3(items(5243).BottomSheet, obj1); };