decord/source/components_native/premium/PremiumTierCard.tsx

82 lines
3.7 KiB
TypeScript
Raw Normal View History

// Module ID: 13568
// Function ID: 13569
2026-07-20 16:05:17 +00:00
// Name: textLogoTier2
// Dependencies: [19, 17, 7432, 1373, 21, 4560, 576, 4987, 1093, 4218, 13569, 13570, 8068, 9390, 10720, 10721, 5607, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 13568 (textLogoTier2)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 576 */;
import keys from "keys" /* 1093 */;
import getPremiumPlanItem from "getPremiumPlanItem" /* 4218 */;
import LinearGradientDefault from "LinearGradient" /* 4987 */;
import PressableCard from "PressableCard" /* 5607 */;
2026-08-24 06:08:38 +00:00
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { getPremiumGradientColor } from "items" /* 7432 */;
import { PremiumTypes } from "GuildFeatures" /* 1373 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
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: c3, Image: c4 } = get_ActivityIndicator);
2026-08-24 06:08:38 +00:00
({ jsx: error, Fragment: closure_8, jsxs: c9 } = jsxProd);
2026-08-31 15:47:37 +00:00
createCacheKey = { header: { marginTop: 24, padding: 16 }, textLogoTier0: { width: 158, height: 32 }, textLogoTier1: { width: 185, height: 32 }, textLogoTier2: { width: 80, height: 32 }, wumpusLogo: { position: "absolute", top: 0, right: 24, zIndex: 1 }, wumpusLogoTier0: { width: 83, height: 100 }, wumpusLogoTier1: { width: 86, height: 100 }, wumpusLogoTier2: { width: 133, height: 100 }, body: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { padding: 16, borderBottomRightRadius: ThemesDefault.radii.xs, borderBottomLeftRadius: ThemesDefault.radii.xs };
2026-07-29 08:29:29 +00:00
createCacheKey[8] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_10 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("components_native/premium/PremiumTierCard.tsx");
2026-07-20 16:05:17 +00:00
2026-08-31 15:47:37 +00:00
export default function _default(premiumType) {
premiumType = premiumType.premiumType;
({ children, style } = premiumType);
2026-08-24 06:08:38 +00:00
const tmp = callback();
let obj = { style: tmp.header, start: keys.HorizontalGradient.START, end: keys.HorizontalGradient.END, colors: getPremiumGradientColor(premiumType), children: null };
2026-07-29 08:29:29 +00:00
obj = { accessible: true, accessibilityLabel: null, accessibilityRole: "header", style: null, source: null };
2026-08-24 06:08:38 +00:00
let obj2 = getPremiumPlanItem;
2026-07-29 08:29:29 +00:00
obj[1] = obj2.getPremiumTypeDisplayName(premiumType);
2026-07-20 16:05:17 +00:00
if (PremiumTypes.TIER_0 === premiumType) {
let textLogoTier2 = tmp.textLogoTier0;
2026-08-31 15:47:37 +00:00
} else if (tmp10.TIER_1 === premiumType) {
2026-07-20 16:05:17 +00:00
textLogoTier2 = tmp.textLogoTier1;
2026-08-31 15:47:37 +00:00
} else if (tmp10.TIER_2 === premiumType) {
2026-07-20 16:05:17 +00:00
textLogoTier2 = tmp.textLogoTier2;
}
2026-07-29 08:29:29 +00:00
obj[3] = textLogoTier2;
2026-07-20 16:05:17 +00:00
if (PremiumTypes.TIER_0 === premiumType) {
let tmp5Result = tmp5(13569);
2026-08-31 15:47:37 +00:00
} else if (tmp10.TIER_1 === premiumType) {
tmp5Result = tmp5(13570);
2026-08-31 15:47:37 +00:00
} else if (tmp10.TIER_2 === premiumType) {
tmp5Result = tmp5(8068);
2026-07-20 16:05:17 +00:00
}
2026-08-31 15:47:37 +00:00
obj[4] = tmp5Result;
2026-07-29 08:29:29 +00:00
obj[4] = closure_7(closure_4, obj);
2026-08-24 06:08:38 +00:00
const items = [closure_7(LinearGradientDefault, obj), , ];
2026-07-20 16:05:17 +00:00
const items1 = [tmp.wumpusLogo, ];
if (PremiumTypes.TIER_0 === premiumType) {
let wumpusLogoTier2 = tmp.wumpusLogoTier0;
2026-08-31 15:47:37 +00:00
} else if (tmp10.TIER_1 === premiumType) {
2026-07-20 16:05:17 +00:00
wumpusLogoTier2 = tmp.wumpusLogoTier1;
2026-08-31 15:47:37 +00:00
} else if (tmp10.TIER_2 === premiumType) {
2026-07-20 16:05:17 +00:00
wumpusLogoTier2 = tmp.wumpusLogoTier2;
}
2026-07-29 08:29:29 +00:00
obj = { accessible: false, importantForAccessibility: "no", style: items1, source: null };
2026-07-20 16:05:17 +00:00
items1[1] = wumpusLogoTier2;
if (PremiumTypes.TIER_0 === premiumType) {
tmp5Result = tmp5(9390);
2026-08-31 15:47:37 +00:00
} else if (tmp10.TIER_1 === premiumType) {
tmp5Result = tmp5(10720);
2026-08-31 15:47:37 +00:00
} else if (tmp10.TIER_2 === premiumType) {
tmp5Result = tmp5(10721);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj1 = { children: null };
2026-08-31 15:47:37 +00:00
obj[3] = tmp5Result;
items[1] = closure_7(closure_4, obj);
obj2 = { style: tmp.body, children };
items[2] = closure_7(closure_3, obj2);
2026-07-29 08:29:29 +00:00
obj1[0] = items;
2026-08-31 15:47:37 +00:00
children = closure_9(closure_8, obj1);
return closure_7(PressableCard.Card, { variant: "surface-high", style, children });
2026-07-20 16:05:17 +00:00
};