decord/source/components_native/common/ItemSelectorActionSheet.tsx

58 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 9115
// Function ID: 9116
2026-07-20 16:05:17 +00:00
// Name: ItemSelectorActionSheet
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 21, 4101, 712, 1629, 5503, 5502, 5871, 5505, 8136, 8135, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 9115 (ItemSelectorActionSheet)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1629 */;
import jsxProd from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("components_native/common/ItemSelectorActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function ItemSelectorActionSheet(arg0) {
({ title, items } = arg0);
2026-07-23 10:11:24 +00:00
({ selectedItem: importDefault, onItemSelect: dependencyMap, onClose } = arg0);
2026-07-20 16:05:17 +00:00
({ body, hasIcons } = arg0);
2026-08-25 06:04:03 +00:00
let obj = items(4101);
2026-08-24 06:08:38 +00:00
const token = obj.useToken(ThemesDefault.modules.mobile.TABLE_ROW_PADDING);
2026-07-20 16:05:17 +00:00
const findIndexResult = items.findIndex((value) => value.value === closure_1);
2026-07-29 08:29:29 +00:00
obj = { title, trailing: null };
let tmp6Result = null;
2026-07-20 16:05:17 +00:00
if (null != onClose) {
2026-07-29 08:29:29 +00:00
obj = { onPress: null };
obj[0] = onClose;
2026-08-25 06:04:03 +00:00
tmp6Result = tmp6(tmp(5871).ActionSheetCloseButton, obj);
2026-07-20 16:05:17 +00:00
}
2026-08-25 06:04:03 +00:00
obj1 = { scrollable: true, header: closure_3(items(5502).BottomSheetTitleHeader, obj), children: null };
2026-07-29 08:29:29 +00:00
obj[1] = tmp6Result;
2026-08-24 06:08:38 +00:00
const obj2 = { contentContainerStyle: { paddingHorizontal: token, paddingBottom: useSafeAreaInsetsDefault().bottom + ThemesDefault.space.PX_16 }, children: null };
2026-07-20 16:05:17 +00:00
items = [body, ];
2026-07-29 08:29:29 +00:00
let num = -1;
2026-07-20 16:05:17 +00:00
if (findIndexResult >= 0) {
2026-07-29 08:29:29 +00:00
num = findIndexResult;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const obj3 = { paddingHorizontal: token, paddingBottom: useSafeAreaInsetsDefault().bottom + ThemesDefault.space.PX_16 };
const tmp3 = importDefault;
const tmp8 = closure_4;
2026-08-25 06:04:03 +00:00
items[1] = closure_3(items(8136).TableRadioGroup, {
2026-07-29 08:29:29 +00:00
value: num,
accessibilityLabel: title,
hasIcons,
onChange(arg0) {
if (null != items[arg0]) {
dependencyMap(iter.value);
}
},
2026-08-25 06:04:03 +00:00
children: items.map((label, value) => callback(items(8135).TableRadioRow, { label: label.label, value }, value))
2026-07-29 08:29:29 +00:00
});
obj2[1] = items;
2026-08-25 06:04:03 +00:00
obj1[2] = tmp8(items(5505).BottomSheetScrollView, obj2);
return closure_3(items(5503).BottomSheet, obj1);
2026-07-20 16:05:17 +00:00
};