decord/source/components_native/common/ItemSelectorActionSheet.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

56 lines
2.2 KiB
TypeScript

// Module ID: 9519
// Function ID: 9520
// Name: ItemSelectorActionSheet
// Dependencies: [19, 21, 4308, 576, 1611, 7224, 7223, 7272, 6699, 5737, 5740, 2]
// Exports: default
// Module 9519 (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(4308).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(7272).ActionSheetCloseButton, obj3);
}
const obj4 = { scrollable: true, header: closure_3(items(7223).BottomSheetTitleHeader, obj2), children: null };
obj2.trailing = tmp6Result;
const obj5 = { contentContainerStyle: null, children: null };
const obj = items(4308);
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(5737).TableRadioGroup, {
value: num,
accessibilityLabel: title,
hasIcons,
onChange(arg0) {
if (null != items[arg0]) {
dependencyMap(iter.value);
}
},
children: items.map((label, value) => closure_1_3(items(5740).TableRadioRow, { label: label.label, value }, value))
});
obj5.children = items1;
obj4.children = tmp8(items(6699).BottomSheetScrollView, obj5);
return closure_3(items(7224).BottomSheet, obj4);
};