decord/beta/source/components_native/premium/PremiumTierCard.tsx
2026-10-12 16:32:48 +00:00

351 lines
14 KiB
TypeScript

// Module ID: 13858
// Function ID: 13859
// Name: PremiumTierCard
// Dependencies: [19, 17, 7152, 1392, 21, 5092, 587, 558, 576, 13859, 13860, 8097, 7156, 7157, 10072, 4769, 6157, 5391, 1105, 6182, 2]
// Module 13858 (PremiumTierCard)
import react_native from "react-native" /* 17 */;
import nativeDefault from "native" /* 587 */;
import ConstantsIOS from "ConstantsIOS" /* 1105 */;
import PremiumConstants from "PremiumConstants" /* 1392 */;
import PremiumUtils from "PremiumUtils" /* 4769 */;
import LinearGradientDefault from "LinearGradient" /* 5391 */;
import FastImageDefault from "FastImage" /* 6157 */;
import ColorConstants from "ColorConstants" /* 7152 */;
import AssetRegistryDefault from "AssetRegistry" /* 7156 */;
import AssetRegistryDefault2 from "AssetRegistry" /* 7157 */;
import AssetRegistryDefault3 from "AssetRegistry" /* 8097 */;
import AssetRegistryDefault4 from "AssetRegistry" /* 10072 */;
import AssetRegistryDefault5 from "AssetRegistry" /* 13859 */;
import AssetRegistryDefault6 from "AssetRegistry" /* 13860 */;
import react from "react" /* 19 */;
import Fragment from "Fragment" /* 21 */;
import createStyles from "createStyles" /* 5092 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
let importDefault, premiumType;
let metroImportAll;
let metroImportDefault;
let metroRequire;
let obj2;
let tmp8;
const Card_Card = tmp8(6182);
const View = react_native.View;
const getPremiumGradientColor = ColorConstants.getPremiumGradientColor;
const PremiumTypes = PremiumConstants.PremiumTypes;
({ jsx: metroRequire, Fragment: metroImportDefault, jsxs: metroImportAll } = Fragment);
let obj = { 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: obj2 };
obj2 = { padding: 16, borderBottomRightRadius: nativeDefault.radii.xs, borderBottomLeftRadius: nativeDefault.radii.xs };
let closure_9 = createStyles.createStyles(obj);
let tmp4 = ReactCompilerGating.isReactCompilerEnabled() ? ((premiumType) => {
let children;
let closure_1;
let items;
let style;
let tmp5;
let tmp6;
const obj = premiumType(576);
const cResult = obj.c(50);
premiumType = premiumType.premiumType;
({ children, style } = premiumType);
const tmp4 = closure_9();
importDefault = tmp4;
if (cResult[0] !== premiumType) {
function getTextLogo() {
if (PremiumTypes.TIER_0 === premiumType) {
return AssetRegistryDefault5;
} else if (PremiumTypes.TIER_1 === premiumType) {
return AssetRegistryDefault6;
} else if (PremiumTypes.TIER_2 === premiumType) {
return AssetRegistryDefault3;
}
}
cResult[0] = premiumType;
cResult[1] = getTextLogo;
tmp5 = getTextLogo;
} else {
tmp5 = cResult[1];
}
if (cResult[2] !== premiumType) {
function getWumpus() {
if (PremiumTypes.TIER_0 === premiumType) {
return AssetRegistryDefault;
} else if (PremiumTypes.TIER_1 === premiumType) {
return AssetRegistryDefault2;
} else if (PremiumTypes.TIER_2 === premiumType) {
return AssetRegistryDefault4;
}
}
cResult[2] = premiumType;
cResult[3] = getWumpus;
tmp6 = getWumpus;
} else {
tmp6 = cResult[3];
}
if (cResult[4] === premiumType) {
if (cResult[5] === tmp4.textLogoTier0) {
if (cResult[6] === tmp4.textLogoTier1) {
let tmp7;
if (cResult[7] === tmp4.textLogoTier2) {
tmp7 = cResult[8];
}
if (cResult[9] === premiumType) {
if (cResult[10] === tmp4.wumpusLogoTier0) {
if (cResult[11] === tmp4.wumpusLogoTier1) {
let tmp8;
let tmp9;
let tmp12;
let tmp14;
let tmp16;
if (cResult[12] === tmp4.wumpusLogoTier2) {
tmp8 = cResult[13];
}
const header = tmp4.header;
if (cResult[14] !== premiumType) {
const tmp11 = getPremiumGradientColor(premiumType);
cResult[14] = premiumType;
cResult[15] = tmp11;
tmp9 = tmp11;
} else {
tmp9 = cResult[15];
}
if (cResult[16] !== premiumType) {
const tmpResult = premiumType(4769);
const premiumTypeDisplayName = tmpResult.getPremiumTypeDisplayName(premiumType);
cResult[16] = premiumType;
cResult[17] = premiumTypeDisplayName;
tmp12 = premiumTypeDisplayName;
} else {
tmp12 = cResult[17];
}
if (cResult[18] !== tmp7) {
const tmp7Result = tmp7();
cResult[18] = tmp7;
cResult[19] = tmp7Result;
tmp14 = tmp7Result;
} else {
tmp14 = cResult[19];
}
if (cResult[20] !== tmp5) {
const tmp5Result = tmp5();
cResult[20] = tmp5;
cResult[21] = tmp5Result;
tmp16 = tmp5Result;
} else {
tmp16 = cResult[21];
}
if (cResult[22] === tmp12) {
if (cResult[23] === tmp14) {
let tmp18;
if (cResult[24] === tmp16) {
tmp18 = cResult[25];
}
if (cResult[26] === tmp4.header) {
if (cResult[27] === tmp18) {
let tmp22;
let tmp27;
if (cResult[28] === tmp9) {
tmp22 = cResult[29];
}
const wumpusLogo = tmp4.wumpusLogo;
if (cResult[30] !== tmp8) {
const tmp8Result = tmp8();
cResult[30] = tmp8;
cResult[31] = tmp8Result;
tmp27 = tmp8Result;
} else {
tmp27 = cResult[31];
}
if (cResult[32] === tmp4.wumpusLogo) {
let tmp29;
let tmp30;
if (cResult[33] === tmp27) {
tmp29 = cResult[34];
}
if (cResult[35] !== tmp6) {
const tmp6Result = tmp6();
cResult[35] = tmp6;
cResult[36] = tmp6Result;
tmp30 = tmp6Result;
} else {
tmp30 = cResult[36];
}
if (cResult[37] === tmp29) {
let tmp32;
if (cResult[38] === tmp30) {
tmp32 = cResult[39];
}
if (cResult[40] === children) {
let tmp36;
if (cResult[41] === tmp4.body) {
tmp36 = cResult[42];
}
if (cResult[43] === tmp22) {
if (cResult[44] === tmp32) {
let tmp40;
if (cResult[45] === tmp36) {
tmp40 = cResult[46];
}
if (cResult[47] === tmp40) {
let tmp44;
if (cResult[48] === style) {
tmp44 = cResult[49];
}
return tmp44;
}
const obj2 = { variant: "surface-high", style, children: tmp40 };
const tmp46 = closure_6(premiumType(6182).Card, obj2);
cResult[47] = tmp40;
cResult[48] = style;
cResult[49] = tmp46;
tmp44 = tmp46;
}
}
const obj3 = { children: items };
items = [tmp22, tmp32, tmp36];
const tmp43 = closure_8(closure_7, obj3);
cResult[43] = tmp22;
cResult[44] = tmp32;
cResult[45] = tmp36;
cResult[46] = tmp43;
tmp40 = tmp43;
}
const obj4 = { style: tmp4.body, children };
const tmp39 = closure_6(View, obj4);
cResult[40] = children;
cResult[41] = tmp4.body;
cResult[42] = tmp39;
tmp36 = tmp39;
}
const obj5 = { accessible: false, importantForAccessibility: "no", style: tmp29, source: tmp30 };
const tmp35 = closure_6(FastImageDefault, obj5);
cResult[37] = tmp29;
cResult[38] = tmp30;
cResult[39] = tmp35;
tmp32 = tmp35;
}
const items1 = [wumpusLogo, tmp27];
cResult[32] = tmp4.wumpusLogo;
cResult[33] = tmp27;
cResult[34] = items1;
tmp29 = items1;
}
}
const obj6 = { style: header, start: premiumType(1105).HorizontalGradient.START, end: premiumType(1105).HorizontalGradient.END, colors: tmp9, children: tmp18 };
const tmp25 = LinearGradientDefault;
const tmp26 = closure_6(tmp25, obj6);
cResult[26] = tmp4.header;
cResult[27] = tmp18;
cResult[28] = tmp9;
cResult[29] = tmp26;
tmp22 = tmp26;
}
}
const obj7 = { accessible: true, accessibilityLabel: tmp12, accessibilityRole: "header", style: tmp14, source: tmp16 };
const tmp21 = closure_6(FastImageDefault, obj7);
cResult[22] = tmp12;
cResult[23] = tmp14;
cResult[24] = tmp16;
cResult[25] = tmp21;
tmp18 = tmp21;
}
}
}
function getWumpusStyles() {
if (PremiumTypes.TIER_0 === premiumType) {
return closure_1.wumpusLogoTier0;
} else if (PremiumTypes.TIER_1 === premiumType) {
return closure_1.wumpusLogoTier1;
} else if (PremiumTypes.TIER_2 === premiumType) {
return closure_1.wumpusLogoTier2;
}
}
cResult[9] = premiumType;
cResult[10] = tmp4.wumpusLogoTier0;
cResult[11] = tmp4.wumpusLogoTier1;
cResult[12] = tmp4.wumpusLogoTier2;
cResult[13] = getWumpusStyles;
tmp8 = getWumpusStyles;
}
}
}
function getTextLogoStyles() {
if (PremiumTypes.TIER_0 === premiumType) {
return closure_1.textLogoTier0;
} else if (PremiumTypes.TIER_1 === premiumType) {
return closure_1.textLogoTier1;
} else if (PremiumTypes.TIER_2 === premiumType) {
return closure_1.textLogoTier2;
}
}
cResult[4] = premiumType;
cResult[5] = tmp4.textLogoTier0;
cResult[6] = tmp4.textLogoTier1;
cResult[7] = tmp4.textLogoTier2;
cResult[8] = getTextLogoStyles;
tmp7 = getTextLogoStyles;
}) : ((premiumType) => {
let children;
let obj2;
let obj3;
let style;
let textLogoTier2;
let tmp5Result;
let tmp5Result4;
let tmp9;
let wumpusLogoTier2;
premiumType = premiumType.premiumType;
({ children, style } = premiumType);
const tmp = closure_9();
const obj = { style: tmp.header, start: ConstantsIOS.HorizontalGradient.START, end: ConstantsIOS.HorizontalGradient.END, colors: getPremiumGradientColor(premiumType), children: metroRequire(tmp9, obj2) };
const tmp7 = LinearGradientDefault;
obj2 = { accessible: true, accessibilityLabel: obj3.getPremiumTypeDisplayName(premiumType), accessibilityRole: "header", style: textLogoTier2, source: tmp5Result };
tmp9 = FastImageDefault;
obj3 = PremiumUtils;
const tmp2 = metroImportAll;
const tmp3 = metroImportDefault;
if (PremiumTypes.TIER_0 === premiumType) {
textLogoTier2 = tmp.textLogoTier0;
} else if (PremiumTypes.TIER_1 === premiumType) {
textLogoTier2 = tmp.textLogoTier1;
} else if (PremiumTypes.TIER_2 === premiumType) {
textLogoTier2 = tmp.textLogoTier2;
}
if (PremiumTypes.TIER_0 === premiumType) {
tmp5Result = tmp5(13859);
} else if (PremiumTypes.TIER_1 === premiumType) {
tmp5Result = tmp5(13860);
} else if (PremiumTypes.TIER_2 === premiumType) {
tmp5Result = tmp5(8097);
}
const items = [metroRequire(tmp7, obj), , ];
const items1 = [tmp.wumpusLogo, ];
const tmp5Result3 = FastImageDefault;
if (PremiumTypes.TIER_0 === premiumType) {
wumpusLogoTier2 = tmp.wumpusLogoTier0;
} else if (PremiumTypes.TIER_1 === premiumType) {
wumpusLogoTier2 = tmp.wumpusLogoTier1;
} else if (PremiumTypes.TIER_2 === premiumType) {
wumpusLogoTier2 = tmp.wumpusLogoTier2;
}
const obj4 = { accessible: false, importantForAccessibility: "no", style: items1, source: tmp5Result4 };
items1[1] = wumpusLogoTier2;
if (PremiumTypes.TIER_0 === premiumType) {
tmp5Result4 = tmp5(7156);
} else if (PremiumTypes.TIER_1 === premiumType) {
tmp5Result4 = tmp5(7157);
} else if (PremiumTypes.TIER_2 === premiumType) {
tmp5Result4 = tmp5(10072);
}
const obj5 = { children: items };
items[1] = metroRequire(tmp5Result3, obj4);
const obj6 = { style: tmp.body, children };
items[2] = metroRequire(View, obj6);
const children1 = tmp2(tmp3, obj5);
return metroRequire(Card_Card.Card, { variant: "surface-high", style, children: children1 });
});
const result = size.fileFinishedImporting("components_native/premium/PremiumTierCard.tsx");
export default tmp4;