2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 12712
|
|
|
|
|
// Function ID: 12713
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: GuildPowerupsPerksSection
|
2026-09-16 07:03:15 +00:00
|
|
|
// Dependencies: [17, 21, 4638, 576, 12695, 1115, 2429, 12713, 12715, 12717, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 12712 (GuildPowerupsPerksSection)
|
2026-09-10 05:38:07 +00:00
|
|
|
import _mod17 from "module_17" /* 17 */;
|
|
|
|
|
import nativeDefault from "native" /* 576 */;
|
2026-09-15 14:23:42 +00:00
|
|
|
import util from "util" /* 1115 */;
|
|
|
|
|
import _modDef2429 from "module_2429" /* 2429 */;
|
2026-09-16 07:03:15 +00:00
|
|
|
import GuildPowerupsSectionHeaderDefault from "GuildPowerupsSectionHeader" /* 12695 */;
|
|
|
|
|
import GuildPowerupsSinglePerkCardDefault from "GuildPowerupsSinglePerkCard" /* 12713 */;
|
|
|
|
|
import GuildPowerupsMultiPerkCardDefault from "GuildPowerupsMultiPerkCard" /* 12715 */;
|
|
|
|
|
import GuildPowerupsGameServerCardDefault from "GuildPowerupsGameServerCard" /* 12717 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import jsxProd from "jsxProd" /* 21 */;
|
2026-09-16 07:03:15 +00:00
|
|
|
import createStyles from "createStyles" /* 4638 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const View = _mod17.View;
|
|
|
|
|
({ jsx: closure_4, Fragment: hasOwnProperty, jsxs: metroRequire } = jsxProd);
|
|
|
|
|
let obj = { container: { flexDirection: "column", gap: nativeDefault.space.PX_16 } };
|
|
|
|
|
let closure_7 = createStyles.createStyles(obj);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsPerksSection.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function GuildPowerupPerksSection(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
({ guildId: require, listings } = arg0);
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = { children: null };
|
2026-09-10 05:38:07 +00:00
|
|
|
let obj2 = { title: null, description: null };
|
|
|
|
|
const tmp = closure_7();
|
|
|
|
|
const intl = util.intl;
|
2026-09-15 14:23:42 +00:00
|
|
|
obj2.title = intl.string(_modDef2429.TV3Vm8);
|
2026-09-10 05:38:07 +00:00
|
|
|
const intl2 = util.intl;
|
2026-09-15 14:23:42 +00:00
|
|
|
obj2.description = intl2.string(_modDef2429.STx9hp);
|
2026-09-10 05:38:07 +00:00
|
|
|
const items = [closure_4(GuildPowerupsSectionHeaderDefault, obj2), ];
|
|
|
|
|
items[1] = closure_4(View, {
|
2026-07-20 16:05:17 +00:00
|
|
|
style: tmp.container,
|
2026-09-10 05:38:07 +00:00
|
|
|
children: listings.map((type, index) => {
|
2026-07-20 16:05:17 +00:00
|
|
|
type = type.type;
|
|
|
|
|
if ("singlePerk" === type) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj2 = { guildId, powerup: null, badge: null };
|
|
|
|
|
({ powerup: obj3.powerup, badge: obj3.badge } = type);
|
|
|
|
|
return React4(GuildPowerupsSinglePerkCardDefault, obj2, type.powerup.skuId);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else if ("multiPerk" === type) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj5 = { guildId, listing: type };
|
2026-07-20 16:05:17 +00:00
|
|
|
const _HermesInternal2 = HermesInternal;
|
2026-09-10 05:38:07 +00:00
|
|
|
return React4(GuildPowerupsMultiPerkCardDefault, obj5, "" + type.group + "-" + index);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else if ("gameServer" === type) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj = { guildId };
|
2026-07-20 16:05:17 +00:00
|
|
|
const _HermesInternal = HermesInternal;
|
2026-09-10 05:38:07 +00:00
|
|
|
return React4(GuildPowerupsGameServerCardDefault, obj, "game-server-" + index);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
})
|
2026-09-10 05:38:07 +00:00
|
|
|
});
|
|
|
|
|
obj.children = items;
|
|
|
|
|
return closure_6(closure_5, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|