decord/source/modules/user_profile/native/UserProfileStackedActionSheet.tsx

111 lines
4.6 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 9487
// Function ID: 9488
2026-07-20 16:05:17 +00:00
// Name: UserProfileStackedActionSheet
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 4668, 712, 1629, 6990, 8122, 500, 6988, 5438, 1236, 6347, 4739, 2]
2026-07-20 16:05:17 +00:00
// Exports: UserProfileStackedActionSheetList, UserProfileStackedActionSheetSectionList, default
2026-08-24 06:08:38 +00:00
// Module 9487 (UserProfileStackedActionSheet)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import Text from "Text" /* 4739 */;
import Background from "Background" /* 6988 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { header: null, headerSpacer: null, list: null, contentContainer: null, divider: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { flexDirection: "row", marginHorizontal: ThemesDefault.space.PX_16 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { width: ThemesDefault.space.PX_24, height: ThemesDefault.space.PX_24 };
2026-07-29 08:29:29 +00:00
createCacheKey[2] = { flex: 1 };
2026-08-24 06:08:38 +00:00
let obj1 = { width: ThemesDefault.space.PX_24, height: ThemesDefault.space.PX_24 };
createCacheKey[3] = { marginHorizontal: ThemesDefault.space.PX_16 };
2026-07-29 08:29:29 +00:00
createCacheKey[4] = { marginLeft: 64 };
2026-08-24 06:08:38 +00:00
let closure_6 = createCacheKey.createStyles(createCacheKey);
const obj2 = { marginHorizontal: ThemesDefault.space.PX_16 };
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileStackedActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileStackedActionSheet(onBack) {
onBack = onBack.onBack;
({ title, children } = onBack);
2026-07-29 08:29:29 +00:00
const merged = Object.assign(onBack, Object.create(null));
2026-08-24 06:08:38 +00:00
const tmp2 = callback2();
2026-07-29 08:29:29 +00:00
let tmp4Result = null != onBack;
let obj = {};
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(merged);
2026-07-29 08:29:29 +00:00
const items = [tmp2.header, ];
2026-07-20 16:05:17 +00:00
let str = "center";
2026-07-29 08:29:29 +00:00
if (tmp4Result) {
2026-07-20 16:05:17 +00:00
str = "space-between";
}
2026-07-29 08:29:29 +00:00
obj = { style: items, children: null };
items[1] = { justifyContent: str };
if (tmp4Result) {
obj = { accessibilityRole: "button", accessibilityLabel: null, onPress: null, children: null };
const intl = tmp5(1236).intl;
obj[1] = intl.string(tmp5(1236).t["13/7kX"]);
obj[2] = onBack;
2026-08-24 06:08:38 +00:00
obj[3] = tmp4(tmp5(6347).ArrowLargeLeftIcon, { size: "md" });
tmp4Result = tmp4(tmp5(5438).PressableOpacity, obj);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const items1 = [tmp4Result, closure_4(Text.Text, { variant: "redesign/heading-18/bold", color: "mobile-text-heading-primary", accessibilityRole: "header", children: title }), ];
2026-07-29 08:29:29 +00:00
if (tmp4Result) {
2026-08-24 06:08:38 +00:00
obj1 = { style: null };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp2.headerSpacer;
tmp4Result = tmp4(tmp9, obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items1[2] = tmp4Result;
obj[1] = items1;
obj.header = closure_5(View, obj);
obj.children = children;
2026-08-24 06:08:38 +00:00
return closure_4(Background.BottomSheet, obj);
2026-07-20 16:05:17 +00:00
};
export const UserProfileStackedActionSheetList = function UserProfileStackedActionSheetList(data) {
data = data.data;
2026-07-23 10:11:24 +00:00
const renderItem = data.renderItem;
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
2026-07-29 08:29:29 +00:00
const merged = Object.assign(data, Object.create(null));
2026-08-24 06:08:38 +00:00
const tmp2 = callback2();
2026-07-29 08:29:29 +00:00
dependencyMap = tmp2;
const obj = {};
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(merged);
2026-07-29 08:29:29 +00:00
obj.data = data;
obj.style = tmp2.list;
obj.ItemSeparatorComponent = function ItemSeparatorComponent() {
2026-08-24 06:08:38 +00:00
return closure_1_4(data(divider[7]).FormDivider, { style: divider.divider });
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
const items = [tmp2.contentContainer, , ];
2026-07-20 16:05:17 +00:00
let num = 0;
2026-07-29 08:29:29 +00:00
if (obj2.isAndroid()) {
num = renderItem(712).space.PX_16;
2026-07-20 16:05:17 +00:00
}
2026-08-15 05:55:55 +00:00
items[1] = { paddingBottom: renderItem(1629)().bottom + num };
2026-07-20 16:05:17 +00:00
items[2] = data.contentContainerStyle;
2026-07-29 08:29:29 +00:00
obj.contentContainerStyle = items;
obj.renderItem = function renderItem(index) {
2026-07-20 16:05:17 +00:00
index = index.index;
return renderItem({ item: index.item, index, start: 0 === index, end: index === data.length - 1 });
};
2026-08-24 06:08:38 +00:00
return closure_4(data(6990).BottomSheetFlatList, obj);
2026-07-20 16:05:17 +00:00
};
export const UserProfileStackedActionSheetSectionList = function UserProfileStackedActionSheetSectionList(renderItem) {
2026-07-23 10:11:24 +00:00
renderItem = renderItem.renderItem;
2026-08-24 06:08:38 +00:00
closure_1 = undefined;
2026-07-29 08:29:29 +00:00
const merged = Object.assign(renderItem, Object.create(null));
2026-08-24 06:08:38 +00:00
closure_1 = callback2();
2026-07-29 08:29:29 +00:00
const obj = {};
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(merged);
2026-07-29 08:29:29 +00:00
obj.contentContainerStyle = renderItem.contentContainerStyle;
obj.renderItem = function renderItem(index) {
2026-07-20 16:05:17 +00:00
index = index.index;
return renderItem({ item: index.item, start: 0 === index, end: index === index.section.data.length - 1 });
};
2026-07-29 08:29:29 +00:00
obj.ItemSeparatorComponent = function ItemSeparatorComponent() {
2026-08-24 06:08:38 +00:00
return closure_1_4(renderItem(closure_1_2[7]).FormDivider, { style: divider.divider });
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
return callback(renderItem(6990).BottomSheetSectionList, obj);
2026-07-20 16:05:17 +00:00
};