decord/source/components_native/common/ItemSelectorActionSheet.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

56 lines
2.2 KiB
TypeScript

// Module ID: 9569
// Function ID: 9570
// Name: ItemSelectorActionSheet
// Dependencies: [19, 21, 4339, 576, 1612, 7260, 7259, 7308, 6735, 5771, 5774, 2]
// Exports: default
// Module 9569 (ItemSelectorActionSheet)
import nativeDefault from "native" /* 576 */;
import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1612 */;
import noop from "module_19" /* 19 */;
const require = fn;
const jsxProd = fn(21);
({ jsx: c3, jsxs: closure_4 } = jsxProd);
const size = fn(2);
const result = size.fileFinishedImporting("components_native/common/ItemSelectorActionSheet.tsx");
export default function ItemSelectorActionSheet(arg0) {
({ title, items } = arg0);
({ selectedItem: importDefault, onItemSelect: dependencyMap, onClose } = arg0);
({ body, hasIcons } = arg0);
const token = items(4339).useToken(nativeDefault.modules.mobile.TABLE_ROW_PADDING);
const findIndexResult = items.findIndex((value) => value.value === importDefault);
const obj2 = { title, trailing: null };
let tmp6Result = null;
if (null != onClose) {
const obj3 = { onPress: onClose };
tmp6Result = tmp6(tmp(7308).ActionSheetCloseButton, obj3);
}
const obj4 = { scrollable: true, header: closure_3(items(7259).BottomSheetTitleHeader, obj2), children: null };
obj2.trailing = tmp6Result;
const obj5 = { contentContainerStyle: null, children: null };
const obj = items(4339);
const tmp8 = closure_4;
obj5.contentContainerStyle = { paddingHorizontal: token, paddingBottom: useSafeAreaInsetsDefault().bottom + nativeDefault.space.PX_16 };
const items1 = [body, ];
let num = -1;
if (findIndexResult >= 0) {
num = findIndexResult;
}
const obj6 = { paddingHorizontal: token, paddingBottom: useSafeAreaInsetsDefault().bottom + nativeDefault.space.PX_16 };
items1[1] = closure_3(items(5771).TableRadioGroup, {
value: num,
accessibilityLabel: title,
hasIcons,
onChange(arg0) {
if (null != items[arg0]) {
dependencyMap(iter.value);
}
},
children: items.map((label, value) => closure_1_3(items(5774).TableRadioRow, { label: label.label, value }, value))
});
obj5.children = items1;
obj4.children = tmp8(items(6735).BottomSheetScrollView, obj5);
return closure_3(items(7260).BottomSheet, obj4);
};