Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
77 lines
3.5 KiB
TypeScript
77 lines
3.5 KiB
TypeScript
// Module ID: 12698
|
|
// Function ID: 12699
|
|
// Name: GuildPowerupsNotificationContainer
|
|
// Dependencies: [17, 21, 4638, 576, 7090, 4634, 12699, 12700, 1115, 2429, 12703, 2]
|
|
// Exports: default
|
|
|
|
// Module 12698 (GuildPowerupsNotificationContainer)
|
|
import _mod17 from "module_17" /* 17 */;
|
|
import nativeDefault from "native" /* 576 */;
|
|
import Text_Text from "Text/Text" /* 4634 */;
|
|
import ManaTypeConsolidationExperiment from "ManaTypeConsolidationExperiment" /* 7090 */;
|
|
import useGuildPowerupTier3OverrideConfigDefault from "useGuildPowerupTier3OverrideConfig" /* 12699 */;
|
|
import useGuildPowerupExpiringNotificationsConfigDefault from "useGuildPowerupExpiringNotificationsConfig" /* 12700 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createStyles from "createStyles" /* 4638 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
function Tier3OverrideNotice(children) {
|
|
const tmp = closure_6();
|
|
const obj2 = { style: tmp.staffContainer, children: null };
|
|
const manaTypeConsolidationExperiment = ManaTypeConsolidationExperiment.useManaTypeConsolidationExperiment("Tier3OverrideNotice");
|
|
let str = "text-sm/medium";
|
|
if (manaTypeConsolidationExperiment) {
|
|
str = "experimental/body-sm/normal";
|
|
}
|
|
obj2.children = React4(Text_Text.Text, { variant: str, children: children.text });
|
|
return React4(View, obj2);
|
|
}
|
|
const View = _mod17.View;
|
|
({ jsx: closure_4, jsxs: hasOwnProperty } = jsxProd);
|
|
const obj = { container: { gap: nativeDefault.space.PX_12, margin: nativeDefault.space.PX_16 }, staffContainer: null };
|
|
let obj2 = { gap: nativeDefault.space.PX_12, margin: nativeDefault.space.PX_16 };
|
|
obj.staffContainer = { padding: nativeDefault.space.PX_12, backgroundColor: nativeDefault.colors.BACKGROUND_MOD_SUBTLE, borderRadius: nativeDefault.radii.md, borderWidth: 1, borderStyle: "solid", borderColor: nativeDefault.colors.BORDER_SUBTLE };
|
|
let closure_6 = createStyles.createStyles(obj);
|
|
const result = size.fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsNotificationContainer.tsx");
|
|
|
|
export default function GuildPowerupsNotificationContainer(guildId) {
|
|
guildId = guildId.guildId;
|
|
const tmp4 = useGuildPowerupTier3OverrideConfigDefault(guildId);
|
|
const tmp5 = useGuildPowerupExpiringNotificationsConfigDefault(guildId);
|
|
const tmp = closure_6();
|
|
const manaTypeConsolidationExperiment = ManaTypeConsolidationExperiment.useManaTypeConsolidationExperiment("GuildPowerupsNotificationContainer");
|
|
if (tmp4.shouldShow) {
|
|
const obj2 = { style: tmp.container, children: null };
|
|
let str = "text-subtle";
|
|
if (manaTypeConsolidationExperiment) {
|
|
str = "text-strong";
|
|
}
|
|
const obj3 = { color: str, variant: null, children: null };
|
|
let str2 = "eyebrow";
|
|
if (manaTypeConsolidationExperiment) {
|
|
str2 = "experimental/heading-lg/semibold";
|
|
}
|
|
obj3.variant = str2;
|
|
const intl = tmp6(1115).intl;
|
|
obj3.children = intl.string(tmp2(2429)["3FRirU"]);
|
|
const items = [React4(tmp6(4634).Text, obj3), , ];
|
|
let shouldShow = tmp4.shouldShow;
|
|
if (shouldShow) {
|
|
const obj4 = { text: tmp4.text };
|
|
shouldShow = tmp11(Tier3OverrideNotice, obj4);
|
|
}
|
|
items[1] = shouldShow;
|
|
let shouldShow2 = tmp5.shouldShow;
|
|
if (shouldShow2) {
|
|
const obj9 = { guildId, powerupNames: null, warnings: null };
|
|
({ expiringPowerupNames: obj5.powerupNames, warnings: obj5.warnings } = tmp5);
|
|
shouldShow2 = tmp11(tmp2(12703), obj9);
|
|
}
|
|
items[2] = shouldShow2;
|
|
obj2.children = items;
|
|
let tmp9Result = hasOwnProperty(View, obj2);
|
|
} else {
|
|
tmp9Result = null;
|
|
}
|
|
return tmp9Result;
|
|
};
|