decord/source/modules/premium/powerups/native/GuildPowerupsBoostInfo.tsx

61 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11771
// Function ID: 11772
2026-07-20 16:05:17 +00:00
// Name: GuildPowerupsBoostInfo
2026-08-24 06:08:38 +00:00
// Dependencies: [17, 4266, 21, 4668, 712, 8347, 11772, 8018, 4739, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 11771 (GuildPowerupsBoostInfo)
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import ThemesDefault from "Themes" /* 712 */;
import BoostedGuildTiers from "BoostedGuildTiers" /* 4266 */;
import Text from "Text" /* 4739 */;
import BoostGemIcon from "BoostGemIcon" /* 8018 */;
import apexExperiment from "apexExperiment" /* 8347 */;
import getGuildPowerupsBoostInfoText from "getGuildPowerupsBoostInfoText" /* 11772 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const View = get_ActivityIndicator.View;
const BoostInfoType = BoostedGuildTiers.BoostInfoType;
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let obj = { container: null, headerContainer: null };
2026-08-24 06:08:38 +00:00
obj = { flex: 1, alignItems: "center", justifyContent: "center", paddingVertical: ThemesDefault.space.PX_12 };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
obj[1] = { flexDirection: "row", alignItems: "center", justifyContent: "center", display: "flex" };
let closure_7 = createCacheKey.createStyles(obj);
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsBoostInfo.tsx");
2026-07-20 16:05:17 +00:00
export default function GuildPowerupsBoostInfo(arg0) {
({ count, type } = arg0);
2026-07-29 08:29:29 +00:00
const tmp = callback();
2026-08-24 06:08:38 +00:00
let obj = apexExperiment;
2026-08-12 06:57:52 +00:00
const manaTypeConsolidationExperiment = obj.useManaTypeConsolidationExperiment("GuildPowerupsBoostInfo");
2026-08-24 06:08:38 +00:00
obj1 = getGuildPowerupsBoostInfoText;
2026-08-12 06:57:52 +00:00
const guildPowerupsBoostInfoText = obj1.getGuildPowerupsBoostInfoText(count, type);
2026-07-29 08:29:29 +00:00
obj = { style: tmp.container, accessible: true, accessibilityLabel: "" + count + ", " + guildPowerupsBoostInfoText, children: null };
obj = { style: tmp.headerContainer, importantForAccessibility: "no-hide-descendants", accessible: false, children: null };
2026-07-20 16:05:17 +00:00
if (type === BoostInfoType.AVAILABLE) {
2026-08-24 06:08:38 +00:00
let TEXT_MUTED = ThemesDefault.unsafe_rawColors.GUILD_BOOSTING_PINK;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
TEXT_MUTED = ThemesDefault.colors.TEXT_MUTED;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const items = [closure_5(BoostGemIcon.BoostGemIcon, { size: "sm", color: TEXT_MUTED }), ];
2026-08-12 06:57:52 +00:00
let str = "text-lg/medium";
if (manaTypeConsolidationExperiment) {
str = "experimental/body-lg/semibold";
}
obj1 = { variant: str, color: null, importantForAccessibility: "no-hide-descendants", children: null };
let str2 = "text-subtle";
2026-07-20 16:05:17 +00:00
if (type === BoostInfoType.AVAILABLE) {
2026-08-12 06:57:52 +00:00
str2 = "text-strong";
2026-07-20 16:05:17 +00:00
}
2026-08-12 06:57:52 +00:00
obj1[1] = str2;
obj1[3] = count;
2026-08-24 06:08:38 +00:00
items[1] = closure_5(Text.Text, obj1);
2026-07-29 08:29:29 +00:00
obj[3] = items;
2026-08-24 06:08:38 +00:00
const items1 = [closure_6(View, obj), closure_5(Text.Text, { variant: "text-md/normal", color: "text-subtle", importantForAccessibility: "no-hide-descendants", children: guildPowerupsBoostInfoText })];
2026-07-29 08:29:29 +00:00
obj[3] = items1;
2026-07-20 16:05:17 +00:00
return closure_6(View, obj);
};