decord/source/modules/stickers/native/StickerPackInformationPopout.tsx

91 lines
4.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10269
// Function ID: 10270
2026-07-29 08:29:29 +00:00
// Name: StickerPackInformationPopout
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 4668, 712, 4828, 1236, 4739, 5438, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, doesStickerPackHavePopoutInformation
2026-08-24 06:08:38 +00:00
// Module 10269 (StickerPackInformationPopout)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import getStickerExtensionFromFormatType from "getStickerExtensionFromFormatType" /* 4828 */;
import get_ActivityIndicator 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
({ View: obj1, FlatList: c3 } = get_ActivityIndicator);
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { informationContainer: null, headerContainer: null, informationHeader: null, informationContentContainer: null, informationContent: null, informationContentDescription: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, width: "90%", marginHorizontal: "5%", padding: 16, borderRadius: ThemesDefault.radii.xs, shadowColor: ThemesDefault.colors.BLACK, shadowOffset: { width: 2, height: 2 }, shadowOpacity: 0.25, shadowRadius: 5 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { flexDirection: "row", justifyContent: "space-between", marginBottom: 8 };
createCacheKey[2] = { lineHeight: 20 };
createCacheKey[3] = { flexDirection: "row" };
createCacheKey[4] = { lineHeight: 20 };
createCacheKey[5] = { flex: 1, marginLeft: 5 };
2026-08-24 06:08:38 +00:00
let closure_6 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/stickers/native/StickerPackInformationPopout.tsx");
2026-07-20 16:05:17 +00:00
export default function StickerPackInformationPopout(stickerPack) {
stickerPack = stickerPack.stickerPack;
2026-07-29 08:29:29 +00:00
let _require;
2026-07-20 16:05:17 +00:00
({ onClose, style } = stickerPack);
2026-08-24 06:08:38 +00:00
const tmp = callback3();
2026-07-29 08:29:29 +00:00
_require = tmp;
let items = [];
2026-08-24 06:08:38 +00:00
let obj = _require(4828);
2026-07-29 08:29:29 +00:00
if (obj.isStickerPackAnimated(stickerPack)) {
obj = { key: "animated", description: null };
const intl = tmp2(1236).intl;
obj[1] = intl.string(tmp2(1236).t.W11rMa);
items.push(obj);
}
obj = { style: items1, children: null };
items1 = [tmp.informationContainer, style];
2026-08-24 06:08:38 +00:00
obj1 = { style: tmp.headerContainer, children: null };
2026-07-29 08:29:29 +00:00
const obj2 = { style: tmp.informationHeader, variant: "text-md/semibold", color: "mobile-text-heading-primary", children: null };
const intl2 = tmp2(1236).intl;
obj2[3] = intl2.format(_require(1236).t.XDm6yN, { stickerPackName: stickerPack.name });
2026-08-24 06:08:38 +00:00
const items2 = [callback(_require(4739).Text, obj2), ];
2026-07-29 08:29:29 +00:00
const obj4 = { onPress: onClose, accessibilityRole: "button", accessibilityLabel: null, children: null };
const intl3 = tmp2(1236).intl;
obj4[2] = intl3.string(_require(1236).t.cpT0Cq);
const obj5 = { variant: "text-md/bold", color: "text-brand", children: null };
const intl4 = tmp2(1236).intl;
obj5[2] = intl4.string(_require(1236).t.cpT0Cq);
2026-08-24 06:08:38 +00:00
obj4[3] = callback(_require(4739).Text, obj5);
items2[1] = callback(_require(5438).PressableOpacity, obj4);
2026-07-29 08:29:29 +00:00
obj1[1] = items2;
const items3 = [
callback2(closure_2, obj1),
callback(closure_3, {
data: items,
renderItem(children) {
2026-08-24 06:08:38 +00:00
let obj = { style: lib.informationContentContainer, children: null };
obj = { style: lib.informationContent, variant: "text-md/medium", color: "text-default", children: "\u2022" };
const items = [closure_1_4(lib(closure_1_1[7]).Text, obj), ];
2026-07-29 08:29:29 +00:00
obj = { style: items1, variant: "text-md/medium", color: "text-default", children: children.item.description };
items1 = [, ];
2026-08-24 06:08:38 +00:00
({ informationContent: arr2[0], informationContentDescription: arr2[1] } = lib);
items[1] = closure_1_4(lib(closure_1_1[7]).Text, obj);
2026-07-29 08:29:29 +00:00
obj[1] = items;
2026-08-24 06:08:38 +00:00
return closure_1_5(closure_1_2, obj);
2026-07-29 08:29:29 +00:00
}
})
];
obj[1] = items3;
2026-07-20 16:05:17 +00:00
return callback2(closure_2, obj);
};
export const doesStickerPackHavePopoutInformation = function doesStickerPackHavePopoutInformation(stickerPack) {
2026-07-29 08:29:29 +00:00
const items = [];
2026-08-24 06:08:38 +00:00
let obj = getStickerExtensionFromFormatType;
2026-07-29 08:29:29 +00:00
if (obj.isStickerPackAnimated(stickerPack)) {
obj = { key: "animated", description: null };
const intl = tmp(1236).intl;
obj[1] = intl.string(tmp(1236).t.W11rMa);
items.push(obj);
}
return items.length > 0;
2026-07-20 16:05:17 +00:00
};