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

82 lines
3.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 14113
// Function ID: 14114
2026-07-20 16:05:17 +00:00
// Name: UserProfileUpsellCard
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 7224, 7441, 21, 4668, 712, 1297, 8027, 4739, 4761, 691, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 14113 (UserProfileUpsellCard)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { Gradients } from "items" /* 7441 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ View: c3, ScrollView: c4 } = get_ActivityIndicator);
({ jsx: closure_6, jsxs: error } = jsxProd);
createCacheKey = { upsellButton: null, titleContainer: null, linearGradient: null, outer: null, scroll: null, inner: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { marginTop: 8, flexShrink: 0, borderRadius: ThemesDefault.radii.round, gap: 4 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { flexDirection: "row", alignItems: "center", gap: 4, marginBottom: 4 };
createCacheKey[2] = { width: "100%", height: "100%", position: "absolute", overflow: "hidden" };
createCacheKey[3] = { marginHorizontal: require("ARBITRARY_LARGE_OFFSET").PROFILE_SIDE_PADDING - 1 };
let obj1 = { marginHorizontal: require("ARBITRARY_LARGE_OFFSET").PROFILE_SIDE_PADDING - 1 };
2026-08-24 06:08:38 +00:00
createCacheKey[4] = { borderRadius: ThemesDefault.radii.lg, backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH };
2026-07-29 08:29:29 +00:00
createCacheKey[5] = { paddingVertical: 12, paddingHorizontal: 14 };
2026-08-24 06:08:38 +00:00
let closure_8 = createCacheKey.createStyles(createCacheKey);
let obj2 = { borderRadius: ThemesDefault.radii.lg, backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH };
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileUpsellCard.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileUpsellCard(headerText) {
headerText = headerText.headerText;
2026-07-29 08:29:29 +00:00
let _require;
2026-08-14 17:33:39 +00:00
({ style, children, ctaText, showLinearGradient, cardStyle, contentStyle, ctaStyle, onPress } = headerText);
2026-08-24 06:08:38 +00:00
const tmp = callback();
2026-07-29 08:29:29 +00:00
_require = tmp;
2026-08-24 06:08:38 +00:00
let obj = { borderWidth: 1, style: items, direction: _require(1297).GradientBorder.Direction.HORIZONTAL, colors: Gradients.PREMIUM_TIER_2, borderRadius: ThemesDefault.radii.lg, children: null };
2026-07-23 10:11:24 +00:00
items = [tmp.outer, style];
2026-08-14 17:33:39 +00:00
obj = { bounces: false, style: items1, contentContainerStyle: items2, children: null };
items1 = [tmp.scroll, cardStyle];
items2 = [tmp.inner, contentStyle];
2026-07-29 08:29:29 +00:00
let tmp6Result = null;
2026-07-20 16:05:17 +00:00
if (null != headerText) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = tmp.titleContainer;
2026-08-24 06:08:38 +00:00
obj1 = { color: null, size: "xs" };
obj1[0] = ThemesDefault.colors.MOBILE_TEXT_HEADING_PRIMARY;
const items3 = [tmp2(tmp3(8027).NitroWheelIcon, obj1), ];
2026-07-29 08:29:29 +00:00
const obj2 = { variant: "heading-sm/bold", children: null };
obj2[1] = headerText;
2026-08-24 06:08:38 +00:00
items3[1] = tmp2(tmp3(4739).Text, obj2);
2026-08-14 17:33:39 +00:00
obj[1] = items3;
2026-07-29 08:29:29 +00:00
tmp6Result = tmp6(closure_3, obj);
2026-07-20 16:05:17 +00:00
}
2026-08-14 17:33:39 +00:00
const items4 = [tmp6Result, children, ];
2026-08-24 06:08:38 +00:00
const obj3 = {
style: items5,
onPress,
text: ctaText,
color: _require(1297).ButtonColors.GREEN,
renderIcon() {
return callback(lib(table[8]).NitroWheelIcon, { color: "white", size: "xs" });
},
renderLinearGradient: null
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
items5 = [tmp.upsellButton, ctaStyle];
2026-07-20 16:05:17 +00:00
let fn;
if (showLinearGradient) {
fn = () => {
2026-08-24 06:08:38 +00:00
const obj = { style: items, start: lib(closure_1_2[11]).HorizontalGradient.START, end: lib(closure_1_2[11]).HorizontalGradient.END, colors: closure_1_5.PREMIUM_TIER_2_TRI_COLOR };
items = [lib.linearGradient];
return closure_1_6(closure_1_1(closure_1_2[10]), obj);
2026-07-20 16:05:17 +00:00
};
}
2026-07-29 08:29:29 +00:00
obj3[5] = fn;
2026-08-14 17:33:39 +00:00
items4[2] = closure_6(_require(1297).ShinyButton, obj3);
obj[3] = items4;
2026-07-29 08:29:29 +00:00
obj[5] = closure_7(closure_4, obj);
return closure_6(_require(1297).GradientBorder, obj);
2026-07-20 16:05:17 +00:00
};