2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 12688
|
|
|
|
|
// Function ID: 12689
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useGameServerGetExpiringEntitlements
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [19, 4546, 504, 12622, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 12688 (useGameServerGetExpiringEntitlements)
|
|
|
|
|
import getExpiringGuildEntitlements from "getExpiringGuildEntitlements" /* 12622 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-09-12 13:45:10 +00:00
|
|
|
import GameServerStore from "GameServerStore" /* 4546 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = globalThis.__r;
|
|
|
|
|
|
|
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/game_server/hooks/useGameServerGetExpiringEntitlements.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useGameServerGetExpiringEntitlements(arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
_require = arg0;
|
|
|
|
|
let items = [GameServerStore];
|
|
|
|
|
stateFromStores = require("initialize").useStateFromStores(items, () => GameServerStore.getStateForGuild(closure_0));
|
2026-07-29 08:29:29 +00:00
|
|
|
let entitlements;
|
|
|
|
|
if (stateFromStores != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
entitlements = stateFromStores.entitlements;
|
|
|
|
|
}
|
|
|
|
|
const items1 = [entitlements];
|
2026-09-10 05:38:07 +00:00
|
|
|
return noop.useMemo(() => {
|
2026-07-20 16:05:17 +00:00
|
|
|
let entitlements;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (stateFromStores != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
entitlements = stateFromStores.entitlements;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (entitlements == null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
entitlements = {};
|
|
|
|
|
}
|
|
|
|
|
const values = Object.values(entitlements);
|
|
|
|
|
if (0 === values.length) {
|
|
|
|
|
let items = [];
|
|
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
items = getExpiringGuildEntitlements.getExpiringGuildEntitlements(values);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return items;
|
|
|
|
|
}, items1);
|
|
|
|
|
};
|