2026-09-10 05:38:07 +00:00
|
|
|
// Module ID: 12617
|
|
|
|
|
// Function ID: 12618
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: GuildPowerupsBoostButton
|
2026-09-10 05:38:07 +00:00
|
|
|
// Dependencies: [19, 1979, 1371, 4469, 1074, 21, 504, 7407, 1379, 5448, 7416, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: GuildPowerupsBoostButton
|
|
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
// Module 12617 (GuildPowerupsBoostButton)
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
|
import GuildStore from "GuildStore" /* 1979 */;
|
|
|
|
|
import UserStore from "UserStore" /* 1371 */;
|
|
|
|
|
import GuildBoostSlotStore from "GuildBoostSlotStore" /* 4469 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = fn;
|
|
|
|
|
const AnalyticsSections = fn(1074).AnalyticsSections;
|
|
|
|
|
const jsx = fn(21).jsx;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsBoostButton.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const GuildPowerupsBoostButton = function GuildPowerupsBoostButton(guildId) {
|
2026-07-23 10:11:24 +00:00
|
|
|
guildId = guildId.guildId;
|
2026-09-10 05:38:07 +00:00
|
|
|
let items = [GuildStore];
|
|
|
|
|
const stateFromStores = guildId(504).useStateFromStores(items, () => GuildStore.getGuild(guildId));
|
2026-09-05 10:56:28 +00:00
|
|
|
let obj = guildId(504);
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp = guildId;
|
2026-09-10 05:38:07 +00:00
|
|
|
const items1 = [GuildBoostSlotStore];
|
|
|
|
|
const stateFromStores1 = guildId(504).useStateFromStores(items1, () => boostSlots.boostSlots);
|
|
|
|
|
let obj2 = guildId(504);
|
2026-07-29 08:29:29 +00:00
|
|
|
const tmp5 = stateFromStores1;
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp6 = stateFromStores1(7407)({ forceFetch: true });
|
|
|
|
|
const items2 = [UserStore];
|
2026-09-05 10:56:28 +00:00
|
|
|
const stateFromStores2 = guildId(504).useStateFromStores(items2, () => currentUser.getCurrentUser());
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != stateFromStores2) {
|
|
|
|
|
let UNSPECIFIED = stateFromStores2.premiumGroupRole;
|
|
|
|
|
} else {
|
2026-09-05 10:56:28 +00:00
|
|
|
UNSPECIFIED = tmp(1379).PremiumSubscriptionGroupRole.UNSPECIFIED;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
const items3 = [stateFromStores1];
|
2026-09-10 05:38:07 +00:00
|
|
|
const memo = noop.useMemo(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
const values = Object.values(stateFromStores1);
|
|
|
|
|
return values.find((isAvailable) => isAvailable.isAvailable());
|
|
|
|
|
}, items3);
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp10 = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != stateFromStores) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj4 = { guild: stateFromStores, previousGuildSubscriptionSlot: memo, analyticsSection: AnalyticsSections.GUILD_POWERUPS_OVERVIEW_SIDEBAR, fractionalPremiumState: tmp6.fractionalState, onAvailableSlotPress: tmp9, premiumGroupRole: UNSPECIFIED };
|
|
|
|
|
tmp10 = jsx(tmp5(7416), { guild: stateFromStores, previousGuildSubscriptionSlot: memo, analyticsSection: AnalyticsSections.GUILD_POWERUPS_OVERVIEW_SIDEBAR, fractionalPremiumState: tmp6.fractionalState, onAvailableSlotPress: tmp9, premiumGroupRole: UNSPECIFIED });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp10;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|