decord/source/components_native/common/ItemSelectorActionSheet.tsx

63 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 8426
// Function ID: 66988
2026-07-20 16:05:17 +00:00
// Name: ItemSelectorActionSheet
2026-07-24 07:16:23 +00:00
// Dependencies: [31, 33, 3834, 689, 1557, 5187, 5186, 5499, 5189, 7654, 7653, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 8426 (ItemSelectorActionSheet)
2026-07-23 10:11:24 +00:00
import "result";
import jsxProd from "jsxProd";
let closure_3;
let closure_4;
const require = arg1;
({ jsx: closure_3, jsxs: closure_4 } = jsxProd);
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-23 10:11:24 +00:00
let obj = items(3834);
const token = obj.useToken(importDefault(689).modules.mobile.TABLE_ROW_PADDING);
2026-07-20 16:05:17 +00:00
const findIndexResult = items.findIndex((value) => value.value === closure_1);
obj = { scrollable: true };
obj = { title };
let tmp4 = null;
if (null != onClose) {
const obj1 = { onPress: onClose };
2026-07-24 07:16:23 +00:00
tmp4 = callback(items(5499).ActionSheetCloseButton, obj1);
2026-07-20 16:05:17 +00:00
}
obj.trailing = tmp4;
2026-07-23 10:11:24 +00:00
obj.header = callback(items(5186).BottomSheetTitleHeader, obj);
2026-07-20 16:05:17 +00:00
const obj2 = {};
2026-07-23 10:11:24 +00:00
const obj3 = { paddingHorizontal: token, paddingBottom: importDefault(1557)().bottom + importDefault(689).space.PX_16 };
2026-07-20 16:05:17 +00:00
obj2.contentContainerStyle = obj3;
items = [body, ];
const obj4 = {};
let num2 = -1;
if (findIndexResult >= 0) {
num2 = findIndexResult;
}
obj4.value = num2;
obj4.accessibilityLabel = title;
obj4.hasIcons = hasIcons;
obj4.onChange = function onChange(arg0) {
if (null != items[arg0]) {
callback(iter.value);
}
};
2026-07-23 10:11:24 +00:00
obj4.children = items.map((label, value) => outer1_3(items(outer1_2[10]).TableRadioRow, { label: label.label, value }, value));
2026-07-24 07:16:23 +00:00
items[1] = callback(items(7654).TableRadioGroup, obj4);
2026-07-20 16:05:17 +00:00
obj2.children = items;
2026-07-23 10:11:24 +00:00
obj.children = closure_4(items(5189).BottomSheetScrollView, obj2);
return callback(items(5187).BottomSheet, obj);
2026-07-20 16:05:17 +00:00
};