decord/source/components_native/common/ItemSelectorActionSheet.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

56 lines
2.2 KiB
TypeScript

// Module ID: 9556
// Function ID: 9557
// Name: ItemSelectorActionSheet
// Dependencies: [19, 21, 4338, 576, 1611, 7253, 7252, 7301, 6728, 5766, 5769, 2]
// Exports: default
// Module 9556 (ItemSelectorActionSheet)
import nativeDefault from "native" /* 576 */;
import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1611 */;
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(4338).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(7301).ActionSheetCloseButton, obj3);
}
const obj4 = { scrollable: true, header: closure_3(items(7252).BottomSheetTitleHeader, obj2), children: null };
obj2.trailing = tmp6Result;
const obj5 = { contentContainerStyle: null, children: null };
const obj = items(4338);
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(5766).TableRadioGroup, {
value: num,
accessibilityLabel: title,
hasIcons,
onChange(arg0) {
if (null != items[arg0]) {
dependencyMap(iter.value);
}
},
children: items.map((label, value) => closure_1_3(items(5769).TableRadioRow, { label: label.label, value }, value))
});
obj5.children = items1;
obj4.children = tmp8(items(6728).BottomSheetScrollView, obj5);
return closure_3(items(7253).BottomSheet, obj4);
};