100 lines
4.5 KiB
TypeScript
100 lines
4.5 KiB
TypeScript
// Module ID: 13040
|
|
// Function ID: 13041
|
|
// Name: textLogoTier2
|
|
// Dependencies: [19, 17, 7039, 1924, 21, 4380, 712, 5265, 1367, 4826, 691, 4043, 13041, 13042, 7533, 7472, 7473, 7528, 5482, 2]
|
|
// Exports: default
|
|
|
|
// Module 13040 (textLogoTier2)
|
|
import noopAll from "noop" /* 19 */;
|
|
import keys from "keys" /* 691 */;
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
import useIsMobileVisualRefreshExperimentEnabledDefault from "useIsMobileVisualRefreshExperimentEnabled" /* 1367 */;
|
|
import getPremiumPlanItem from "getPremiumPlanItem" /* 4043 */;
|
|
import LinearGradientDefault from "LinearGradient" /* 4826 */;
|
|
import PressableCard from "PressableCard" /* 5482 */;
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
import { getPremiumGradientColor } from "items" /* 7039 */;
|
|
import { PremiumTypes } from "GuildFeatures" /* 1924 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4380 */;
|
|
|
|
require = arg1;
|
|
noopAll;
|
|
({ View: c3, Image: c4 } = get_ActivityIndicator);
|
|
({ jsx: error, Fragment: closure_8, jsxs: c9 } = jsxProd);
|
|
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, bodyLegacy: null };
|
|
createCacheKey = { padding: 16, borderBottomRightRadius: ThemesDefault.radii.xs, borderBottomLeftRadius: ThemesDefault.radii.xs };
|
|
createCacheKey[8] = createCacheKey;
|
|
createCacheKey[9] = { backgroundColor: require("result").DARK_PRIMARY_630_LIGHT_PRIMARY_100 };
|
|
let closure_10 = createCacheKey.createStyles(createCacheKey);
|
|
let obj1 = { backgroundColor: require("result").DARK_PRIMARY_630_LIGHT_PRIMARY_100 };
|
|
const result = require("set").fileFinishedImporting("components_native/premium/PremiumTierCard.tsx");
|
|
|
|
export default function _default(children) {
|
|
({ premiumType, style } = children);
|
|
const tmp = callback();
|
|
const tmp4 = useIsMobileVisualRefreshExperimentEnabledDefault("PremiumTierCard");
|
|
let obj = { style: tmp.header, start: keys.HorizontalGradient.START, end: keys.HorizontalGradient.END, colors: getPremiumGradientColor(premiumType), children: null };
|
|
obj = { accessible: true, accessibilityLabel: null, accessibilityRole: "header", style: null, source: null };
|
|
let obj2 = getPremiumPlanItem;
|
|
obj[1] = obj2.getPremiumTypeDisplayName(premiumType);
|
|
if (PremiumTypes.TIER_0 === premiumType) {
|
|
let textLogoTier2 = tmp.textLogoTier0;
|
|
} else if (tmp11.TIER_1 === premiumType) {
|
|
textLogoTier2 = tmp.textLogoTier1;
|
|
} else if (tmp11.TIER_2 === premiumType) {
|
|
textLogoTier2 = tmp.textLogoTier2;
|
|
}
|
|
obj[3] = textLogoTier2;
|
|
if (PremiumTypes.TIER_0 === premiumType) {
|
|
let tmp2Result = tmp2(13041);
|
|
} else if (tmp11.TIER_1 === premiumType) {
|
|
tmp2Result = tmp2(13042);
|
|
} else if (tmp11.TIER_2 === premiumType) {
|
|
tmp2Result = tmp2(7533);
|
|
}
|
|
obj[4] = tmp2Result;
|
|
obj[4] = closure_7(closure_4, obj);
|
|
const items = [closure_7(LinearGradientDefault, obj), , ];
|
|
const items1 = [tmp.wumpusLogo, ];
|
|
if (PremiumTypes.TIER_0 === premiumType) {
|
|
let wumpusLogoTier2 = tmp.wumpusLogoTier0;
|
|
} else if (tmp11.TIER_1 === premiumType) {
|
|
wumpusLogoTier2 = tmp.wumpusLogoTier1;
|
|
} else if (tmp11.TIER_2 === premiumType) {
|
|
wumpusLogoTier2 = tmp.wumpusLogoTier2;
|
|
}
|
|
obj = { accessible: false, importantForAccessibility: "no", style: items1, source: null };
|
|
items1[1] = wumpusLogoTier2;
|
|
if (PremiumTypes.TIER_0 === premiumType) {
|
|
tmp2Result = tmp2(7472);
|
|
} else if (tmp11.TIER_1 === premiumType) {
|
|
tmp2Result = tmp2(7473);
|
|
} else if (tmp11.TIER_2 === premiumType) {
|
|
tmp2Result = tmp2(7528);
|
|
}
|
|
obj[3] = tmp2Result;
|
|
items[1] = closure_7(closure_4, obj);
|
|
const items2 = [tmp.body, ];
|
|
let bodyLegacy = !tmp4;
|
|
if (!tmp4) {
|
|
bodyLegacy = tmp.bodyLegacy;
|
|
}
|
|
obj1 = { children: null };
|
|
items2[1] = bodyLegacy;
|
|
items[2] = closure_7(closure_3, { style: items2, children: children.children });
|
|
obj1[0] = items;
|
|
const tmp5Result = closure_9(closure_8, obj1);
|
|
if (tmp4) {
|
|
obj2 = { variant: "surface-high", style: null, children: null };
|
|
obj2[1] = style;
|
|
obj2[2] = tmp5Result;
|
|
let tmp7Result = tmp7(PressableCard.Card, obj2);
|
|
} else {
|
|
const obj3 = { style: null, children: null };
|
|
obj3[0] = style;
|
|
obj3[1] = tmp5Result;
|
|
tmp7Result = tmp7(tmp14, obj3);
|
|
}
|
|
return tmp7Result;
|
|
};
|