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

68 lines
2.5 KiB
TypeScript
Raw Normal View History

// Module ID: 12697
// Function ID: 12698
// Name: GuildPowerupsCard
// Dependencies: [19, 17, 21, 4636, 672, 576, 5688, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 12697 (GuildPowerupsCard)
import nativeDefault from "native" /* 576 */;
import Card from "Card" /* 5688 */;
import noop from "module_19" /* 19 */;
import n_mod from "module_672" /* 672 */;
2026-07-23 10:11:24 +00:00
require = fn;
const View = fn(17).View;
const jsx = fn(21).jsx;
const createStyles = fn(4636);
let obj2 = { cardActive: null, cardExpiring: null, cardRemoving: null };
const obj3 = { borderColor: null };
let n = n_mod;
const importDefaultResultResult = n(nativeDefault.unsafe_rawColors.GREEN_360);
obj3.borderColor = n(nativeDefault.unsafe_rawColors.GREEN_360).alpha(0.35).hex();
obj2.cardActive = obj3;
const obj4 = { borderColor: null };
let n = n_mod;
const alphaResult = n(nativeDefault.unsafe_rawColors.GREEN_360).alpha(0.35);
const importDefaultResult1Result = n(nativeDefault.unsafe_rawColors.YELLOW_300);
obj4.borderColor = n(nativeDefault.unsafe_rawColors.YELLOW_300).alpha(0.35).hex();
obj2.cardExpiring = obj4;
const obj5 = { borderColor: null };
let n = n_mod;
const alphaResult1 = n(nativeDefault.unsafe_rawColors.YELLOW_300).alpha(0.35);
const importDefaultResult2Result = n(nativeDefault.unsafe_rawColors.YELLOW_300);
obj5.borderColor = n(nativeDefault.unsafe_rawColors.YELLOW_300).alpha(0.35).hex();
obj2.cardRemoving = obj5;
let closure_4 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsCard.tsx");
2026-07-20 16:05:17 +00:00
export default function GuildPowerupsCard(status) {
status = status.status;
({ children, containerStyle, style } = status);
const merged = Object.assign(status, Object.assign({ children: 0, containerStyle: 0, status: 0, style: 0 }));
const tmp2 = closure_4();
const obj = { style: containerStyle, children: null };
const obj2 = { border: "faint", radius: 16, shadow: "none" };
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(merged);
let type;
2026-07-29 08:29:29 +00:00
if (status != null) {
2026-07-20 16:05:17 +00:00
type = status.type;
}
2026-07-29 08:29:29 +00:00
const items = ["active" === type && tmp2.cardActive, , , ];
2026-07-20 16:05:17 +00:00
let type1;
2026-07-29 08:29:29 +00:00
if (status != null) {
2026-07-20 16:05:17 +00:00
type1 = status.type;
}
2026-07-29 08:29:29 +00:00
items[1] = "expiring" === type1 && tmp2.cardExpiring;
2026-07-20 16:05:17 +00:00
let type2;
2026-07-29 08:29:29 +00:00
if (status != null) {
2026-07-20 16:05:17 +00:00
type2 = status.type;
}
2026-07-29 08:29:29 +00:00
items[2] = "removing" === type2 && tmp2.cardRemoving;
2026-07-20 16:05:17 +00:00
items[3] = style;
obj2.style = items;
obj2.children = children;
obj.children = jsx(Card.Card, { border: "faint", radius: 16, shadow: "none" });
return <View style={containerStyle}>{null}</View>;
2026-07-20 16:05:17 +00:00
};