Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
80 lines
3.7 KiB
TypeScript
80 lines
3.7 KiB
TypeScript
// Module ID: 13654
|
|
// Function ID: 13655
|
|
// Name: PremiumTierCard
|
|
// Dependencies: [19, 17, 7535, 1373, 21, 4636, 576, 5068, 1093, 4294, 13655, 13656, 8173, 9515, 10844, 10845, 5688, 2]
|
|
// Exports: default
|
|
|
|
// Module 13654 (PremiumTierCard)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import ConstantsIOS from "ConstantsIOS" /* 1093 */;
|
|
import PremiumUtils from "PremiumUtils" /* 4294 */;
|
|
import LinearGradientDefault from "LinearGradient" /* 5068 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const Card = tmp8(5688);
|
|
require = fn;
|
|
get_ActivityIndicator = fn(17);
|
|
({ View: c3, Image: closure_4 } = get_ActivityIndicator);
|
|
const getPremiumGradientColor = fn(7535).getPremiumGradientColor;
|
|
const PremiumTypes = fn(1373).PremiumTypes;
|
|
const jsxProd = fn(21);
|
|
({ jsx: closure_7, Fragment: closure_8, jsxs: closure_9 } = jsxProd);
|
|
const createStyles = fn(4636);
|
|
let obj2 = { 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: { padding: 16, borderBottomRightRadius: nativeDefault.radii.xs, borderBottomLeftRadius: nativeDefault.radii.xs } };
|
|
let closure_10 = createStyles.createStyles(obj2);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("components_native/premium/PremiumTierCard.tsx");
|
|
|
|
export default function _default(premiumType) {
|
|
premiumType = premiumType.premiumType;
|
|
({ children, style } = premiumType);
|
|
const tmp = closure_10();
|
|
const obj = { style: tmp.header, start: ConstantsIOS.HorizontalGradient.START, end: ConstantsIOS.HorizontalGradient.END, colors: getPremiumGradientColor(premiumType), children: null };
|
|
const obj2 = { accessible: true, accessibilityLabel: null, accessibilityRole: "header", style: null, source: null };
|
|
const tmp2 = React7;
|
|
const tmp3 = React6;
|
|
const tmp7 = LinearGradientDefault;
|
|
obj2.accessibilityLabel = PremiumUtils.getPremiumTypeDisplayName(premiumType);
|
|
if (PremiumTypes.TIER_0 === premiumType) {
|
|
let textLogoTier2 = tmp.textLogoTier0;
|
|
} else if (tmp10.TIER_1 === premiumType) {
|
|
textLogoTier2 = tmp.textLogoTier1;
|
|
} else if (tmp10.TIER_2 === premiumType) {
|
|
textLogoTier2 = tmp.textLogoTier2;
|
|
}
|
|
obj2.style = textLogoTier2;
|
|
if (PremiumTypes.TIER_0 === premiumType) {
|
|
let tmp5Result = tmp5(13655);
|
|
} else if (tmp10.TIER_1 === premiumType) {
|
|
tmp5Result = tmp5(13656);
|
|
} else if (tmp10.TIER_2 === premiumType) {
|
|
tmp5Result = tmp5(8173);
|
|
}
|
|
obj2.source = tmp5Result;
|
|
obj.children = React5(React4, obj2);
|
|
const items = [React5(tmp7, obj), , ];
|
|
const items1 = [tmp.wumpusLogo, ];
|
|
if (PremiumTypes.TIER_0 === premiumType) {
|
|
let wumpusLogoTier2 = tmp.wumpusLogoTier0;
|
|
} else if (tmp10.TIER_1 === premiumType) {
|
|
wumpusLogoTier2 = tmp.wumpusLogoTier1;
|
|
} else if (tmp10.TIER_2 === premiumType) {
|
|
wumpusLogoTier2 = tmp.wumpusLogoTier2;
|
|
}
|
|
const obj4 = { accessible: false, importantForAccessibility: "no", style: items1, source: null };
|
|
items1[1] = wumpusLogoTier2;
|
|
if (PremiumTypes.TIER_0 === premiumType) {
|
|
let tmp5Result2 = tmp5(9515);
|
|
} else if (tmp10.TIER_1 === premiumType) {
|
|
tmp5Result2 = tmp5(10844);
|
|
} else if (tmp10.TIER_2 === premiumType) {
|
|
tmp5Result2 = tmp5(10845);
|
|
}
|
|
const obj5 = { children: null };
|
|
obj4.source = tmp5Result2;
|
|
items[1] = React5(React4, obj4);
|
|
items[2] = React5(React3, { style: tmp.body, children });
|
|
obj5.children = items;
|
|
const children1 = tmp2(tmp3, obj5);
|
|
return React5(Card.Card, { variant: "surface-high", style, children: children1 });
|
|
};
|