decord/source/modules/parent_tools/native/FamilyCenterActivityGiftRow.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

88 lines
3.4 KiB
TypeScript

// Module ID: 14905
// Function ID: 14906
// Name: FamilyCenterActivityGiftRow
// Dependencies: [19, 17, 21, 4560, 576, 8173, 14893, 14902, 14904, 4404, 14903, 4556, 2]
// Exports: default
// Module 14905 (FamilyCenterActivityGiftRow)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 576 */;
import useCollectiblesDataDefault from "useCollectiblesData" /* 8173 */;
import useSelectedTeenUser from "useSelectedTeenUser" /* 14893 */;
import getCollectibleTypeName from "getCollectibleTypeName" /* 14902 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
require = arg1;
noopAll;
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { container: null, textContainer: null };
createCacheKey = { display: "flex", flexDirection: "row", alignItems: "center", borderBottomColor: ThemesDefault.colors.BORDER_SUBTLE, borderBottomWidth: 1, paddingVertical: 12 };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { display: "flex", flexDirection: "column", flexShrink: 1 };
let closure_6 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/parent_tools/native/FamilyCenterActivityGiftRow.tsx");
export default function FamilyCenterActivityGiftRow(arg0) {
({ skuId, subscriptionPlanId } = arg0);
({ price, gifterUserId, claimed, offeredAt, claimedAt } = arg0);
const tmp = callback();
let product = useCollectiblesDataDefault(skuId).product;
let obj = useSelectedTeenUser;
const teenUserForId = obj.useTeenUserForId(gifterUserId);
obj1 = getCollectibleTypeName;
let tmp7 = product;
if (product == null) {
tmp7 = null;
}
const purchaseDisplayInfo = obj1.getPurchaseDisplayInfo(tmp7, subscriptionPlanId);
({ displayName, isSubscription } = purchaseDisplayInfo);
if (null != skuId) {
if (!isSubscription) {
if (null == product) {
return null;
}
}
}
if (null == displayName) {
return null;
} else {
obj = { claimed: null, price: null, gifterName: null, offeredAt: null, claimedAt: null };
obj[0] = claimed;
obj[1] = price;
let name = null;
if (null != teenUserForId) {
let tmp2Result = tmp2(4404);
name = tmp2Result.getName(teenUserForId);
}
obj[2] = name;
obj[3] = offeredAt;
obj[4] = claimedAt;
obj = { style: null, children: null };
obj[0] = tmp.container;
const giftSubtext = tmp5(14904).getGiftSubtext(obj);
obj1 = { displayName: null, product: null, isSubscription: null, subscriptionPlanId: null };
obj1[0] = displayName;
tmp2Result = tmp2(14903);
if (product == null) {
product = null;
}
obj1[1] = product;
obj1[2] = isSubscription;
obj1[3] = subscriptionPlanId;
const items = [closure_4(tmp2Result, obj1), ];
const obj2 = { style: null, children: null };
obj2[0] = tmp.textContainer;
const obj3 = { variant: "text-md/semibold", color: "interactive-text-active", ellipsizeMode: "tail", lineClamp: 1, children: null };
obj3[4] = displayName;
const items1 = [closure_4(tmp5(4556).Text, obj3), ];
const obj4 = { variant: "text-xs/medium", color: "text-muted", children: null };
obj4[2] = giftSubtext;
items1[1] = closure_4(tmp5(4556).Text, obj4);
obj2[1] = items1;
items[1] = closure_5(View, obj2);
obj[1] = items;
return closure_5(View, obj);
}
};