decord/source/components_native/common/ItemSelectorActionSheet.tsx

64 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 8246
// Function ID: 8247
2026-07-20 16:05:17 +00:00
// Name: ItemSelectorActionSheet
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 21, 3893, 712, 1581, 5243, 5242, 5552, 5245, 7655, 7654, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 8246 (ItemSelectorActionSheet)
import "noop";
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
let c3;
let c4;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c3, jsxs: c4 } = jsxProd);
2026-07-23 10:11:24 +00:00
const result = require("map").fileFinishedImporting("components_native/common/ItemSelectorActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function ItemSelectorActionSheet(arg0) {
let body;
2026-07-23 10:11:24 +00:00
let dependencyMap;
2026-07-20 16:05:17 +00:00
let hasIcons;
2026-07-23 10:11:24 +00:00
let importDefault;
2026-07-20 16:05:17 +00:00
let items;
let onClose;
let title;
({ 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-07-29 08:29:29 +00:00
let obj = items(3893);
const token = obj.useToken(importDefault(712).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;
tmp6Result = tmp6(tmp(5552).ActionSheetCloseButton, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
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;
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-07-29 08:29:29 +00:00
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);
2026-07-20 16:05:17 +00:00
};