Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
60 lines
3 KiB
TypeScript
60 lines
3 KiB
TypeScript
// Module ID: 12648
|
|
// Function ID: 12649
|
|
// Name: GuildPowerupsBoostInfo
|
|
// Dependencies: [17, 4497, 21, 4607, 576, 7054, 12649, 9468, 4603, 2]
|
|
// Exports: default
|
|
|
|
// Module 12648 (GuildPowerupsBoostInfo)
|
|
import _mod17 from "module_17" /* 17 */;
|
|
import nativeDefault from "native" /* 576 */;
|
|
import GuildPowerupsConstants from "GuildPowerupsConstants" /* 4497 */;
|
|
import Text_Text from "Text/Text" /* 4603 */;
|
|
import ManaTypeConsolidationExperiment from "ManaTypeConsolidationExperiment" /* 7054 */;
|
|
import BoostGemIcon from "BoostGemIcon" /* 9468 */;
|
|
import getGuildPowerupsBoostInfoText from "getGuildPowerupsBoostInfoText" /* 12649 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createStyles from "createStyles" /* 4607 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const View = _mod17.View;
|
|
const BoostInfoType = GuildPowerupsConstants.BoostInfoType;
|
|
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
|
|
let obj = { container: { flex: 1, alignItems: "center", justifyContent: "center", paddingVertical: nativeDefault.space.PX_12 }, headerContainer: { flexDirection: "row", alignItems: "center", justifyContent: "center", display: "flex" } };
|
|
let closure_7 = createStyles.createStyles(obj);
|
|
const result = size.fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsBoostInfo.tsx");
|
|
|
|
export default function GuildPowerupsBoostInfo(arg0) {
|
|
({ count, type } = arg0);
|
|
const tmp = closure_7();
|
|
const manaTypeConsolidationExperiment = ManaTypeConsolidationExperiment.useManaTypeConsolidationExperiment("GuildPowerupsBoostInfo");
|
|
const guildPowerupsBoostInfoText = getGuildPowerupsBoostInfoText.getGuildPowerupsBoostInfoText(count, type);
|
|
const obj3 = { style: tmp.container, accessible: true, accessibilityLabel: "" + count + ", " + guildPowerupsBoostInfoText, children: null };
|
|
const obj4 = { style: tmp.headerContainer, importantForAccessibility: "no-hide-descendants", accessible: false, children: null };
|
|
if (type === BoostInfoType.AVAILABLE) {
|
|
let TEXT_MUTED = nativeDefault.unsafe_rawColors.GUILD_BOOSTING_PINK;
|
|
} else {
|
|
TEXT_MUTED = nativeDefault.colors.TEXT_MUTED;
|
|
}
|
|
const items = [hasOwnProperty(BoostGemIcon.BoostGemIcon, { size: "sm", color: TEXT_MUTED }), ];
|
|
let str = "text-lg/medium";
|
|
if (manaTypeConsolidationExperiment) {
|
|
str = "experimental/body-lg/semibold";
|
|
}
|
|
const obj5 = { variant: str, color: null, importantForAccessibility: "no-hide-descendants", children: null };
|
|
let str2 = "text-subtle";
|
|
if (type === BoostInfoType.AVAILABLE) {
|
|
str2 = "text-strong";
|
|
}
|
|
obj5.color = str2;
|
|
obj5.children = count;
|
|
items[1] = hasOwnProperty(Text_Text.Text, obj5);
|
|
obj4.children = items;
|
|
const items1 = [timestampProducer(View, obj4), ];
|
|
let str3 = "text-md/normal";
|
|
if (manaTypeConsolidationExperiment) {
|
|
str3 = "text-sm/normal";
|
|
}
|
|
items1[1] = hasOwnProperty(Text_Text.Text, { variant: str3, color: "text-subtle", importantForAccessibility: "no-hide-descendants", children: guildPowerupsBoostInfoText });
|
|
obj3.children = items1;
|
|
return timestampProducer(View, obj3);
|
|
};
|