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

79 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11778
// Function ID: 11779
2026-07-20 16:05:17 +00:00
// Name: GuildPowerupsWarning
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 4668, 712, 8347, 11779, 8113, 4739, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 11778 (GuildPowerupsWarning)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { container: null, contentContainer: null, warningText: null, text: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { flexDirection: "row", alignItems: "flex-start", padding: ThemesDefault.space.PX_24, backgroundColor: ThemesDefault.colors.BACKGROUND_FEEDBACK_WARNING, borderWidth: 1, borderColor: ThemesDefault.colors.STATUS_WARNING, borderRadius: ThemesDefault.radii.lg, gap: ThemesDefault.space.PX_8, overflow: "hidden" };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { flex: 1, gap: ThemesDefault.space.PX_4, alignItems: "center" };
let obj1 = { flex: 1, gap: ThemesDefault.space.PX_4, alignItems: "center" };
createCacheKey[2] = { marginTop: ThemesDefault.space.PX_4 };
2026-07-29 08:29:29 +00:00
createCacheKey[3] = { textAlign: "center" };
2026-08-24 06:08:38 +00:00
let closure_6 = createCacheKey.createStyles(createCacheKey);
let obj2 = { marginTop: ThemesDefault.space.PX_4 };
const result = require("set").fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsWarning.tsx");
2026-07-20 16:05:17 +00:00
export default function GuildPowerupsWarning(warnings) {
warnings = warnings.warnings;
2026-07-29 08:29:29 +00:00
let _require;
2026-08-12 06:57:52 +00:00
let manaTypeConsolidationExperiment;
2026-07-20 16:05:17 +00:00
({ guildId, powerupNames } = warnings);
2026-08-24 06:08:38 +00:00
const tmp = callback2();
2026-07-29 08:29:29 +00:00
_require = tmp;
2026-08-24 06:08:38 +00:00
let obj = _require(8347);
2026-08-12 06:57:52 +00:00
manaTypeConsolidationExperiment = obj.useManaTypeConsolidationExperiment("GuildPowerupsWarning");
let tmp10Result = null;
if (tmp6.shouldShow) {
obj = { style: null, children: null };
2026-07-29 08:29:29 +00:00
obj[0] = tmp.container;
obj = { style: null, children: null };
obj[0] = tmp.contentContainer;
2026-08-24 06:08:38 +00:00
obj1 = { color: null, size: "md" };
2026-08-12 06:57:52 +00:00
obj1[0] = manaTypeConsolidationExperiment(712).colors.TEXT_FEEDBACK_WARNING;
2026-08-24 06:08:38 +00:00
let items = [callback(tmp2(8113).CircleErrorIcon, obj1), , , ];
2026-08-12 06:57:52 +00:00
const obj2 = { variant: "text-md/semibold", color: "text-feedback-warning", style: null, children: null };
obj2[2] = tmp.text;
obj2[3] = tmp7;
2026-08-24 06:08:38 +00:00
items[1] = callback(tmp2(4739).Text, obj2);
2026-08-12 06:57:52 +00:00
let str = "text-sm/medium";
if (manaTypeConsolidationExperiment) {
str = "experimental/body-sm/normal";
}
const obj3 = { variant: null, style: null, children: null };
obj3[0] = str;
obj3[1] = tmp.text;
obj3[2] = tmp8;
2026-08-24 06:08:38 +00:00
items[2] = callback(tmp2(4739).Text, obj3);
2026-07-20 16:05:17 +00:00
let mapped;
2026-07-29 08:29:29 +00:00
if (warnings != null) {
2026-07-20 16:05:17 +00:00
mapped = warnings.map((children) => {
2026-08-12 06:57:52 +00:00
let str = "text-sm/medium";
if (manaTypeConsolidationExperiment) {
str = "experimental/body-sm/normal";
}
2026-07-20 16:05:17 +00:00
const items = [, ];
2026-08-24 06:08:38 +00:00
({ warningText: arr[0], text: arr[1] } = callback);
return closure_1_4(callback(closure_1_2[8]).Text, { variant: str, color: "text-feedback-warning", style: items, children }, "warning-" + arg1);
2026-07-20 16:05:17 +00:00
});
}
items[3] = mapped;
2026-07-29 08:29:29 +00:00
obj[1] = items;
obj[1] = closure_5(View, obj);
2026-08-12 06:57:52 +00:00
tmp10Result = tmp10(tmp11, obj);
const tmp12 = closure_5;
2026-07-20 16:05:17 +00:00
}
2026-08-12 06:57:52 +00:00
return tmp10Result;
2026-07-20 16:05:17 +00:00
};