decord/source/modules/guild_role_subscriptions/GuildRoleSubscriptionsHooks.tsx

1246 lines
38 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 14808
// Function ID: 14809
2026-07-29 08:29:29 +00:00
// Name: useFetchListingsForGuild
2026-09-01 10:26:29 +00:00
// Dependencies: [5, 32, 19, 5221, 4115, 589, 6102, 5554, 14809, 14810, 11770, 1471, 2]
2026-07-29 08:29:29 +00:00
// Exports: useArchiveSubscriptionListing, useCreateSubscriptionGroupListing, useDeleteSubscriptionGroupListing, useDeleteSubscriptionListing, useFetchListingsForSubscriptions, useFetchSubscriptionsSettings, useGroupListingsForGuild, usePublishSubscriptionListing, useSubscriptionGroupListing, useSubscriptionListing, useSubscriptionListingsForGroup, useSubscriptionListingsForGuild, useSubscriptionTrial, useSubscriptionTrialsForGroup, useSubscriptionTrialsForGuild, useSubscriptionsSettings, useUpdateSubscriptionGroupListing, useUpdateSubscriptionsSettings, useUpdateSubscriptionsTrial
2026-07-20 16:05:17 +00:00
2026-09-01 10:26:29 +00:00
// Module 14808 (useFetchListingsForGuild)
import _fetchSubscriptionsSettingsAll from "_fetchSubscriptionsSettings" /* 6102 */;
import useRequestDefault from "useRequest" /* 11770 */;
2026-08-24 06:08:38 +00:00
import closure_4 from "asyncGeneratorStep" /* 5 */;
import closure_5 from "_slicedToArray" /* 32 */;
import closure_6 from "noop" /* 19 */;
2026-09-01 10:26:29 +00:00
import closure_7 from "_handleConnectionOpen" /* 5221 */;
import closure_8 from "makeGroupListingIndexSubscriptionListingTag" /* 4115 */;
import { FetchState } from "makeGroupListingIndexSubscriptionListingTag" /* 4115 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function useFetchListingsForGuild(guildId) {
2026-07-23 10:11:24 +00:00
const _require = guildId;
2026-07-29 08:29:29 +00:00
let obj = arg1;
2026-07-20 16:05:17 +00:00
if (arg1 === undefined) {
obj = {};
}
let flag = obj.refetchOnMount;
if (flag === undefined) {
flag = false;
}
let flag2 = obj.includeSoftDeleted;
if (flag2 === undefined) {
flag2 = true;
}
const countryCode = obj.countryCode;
const dontFetchWhileTrue = obj.dontFetchWhileTrue;
2026-07-23 10:11:24 +00:00
let stateFromStores;
let ref;
2026-08-24 06:08:38 +00:00
const items = [closure_7];
2026-07-29 08:29:29 +00:00
stateFromStores = _require(countryCode[5]).useStateFromStores(items, () => connected.isConnected());
2026-07-23 10:11:24 +00:00
const obj2 = _require(countryCode[5]);
2026-08-24 06:08:38 +00:00
const items1 = [closure_8];
2026-07-23 10:11:24 +00:00
const stateFromStores1 = _require(countryCode[5]).useStateFromStores(items1, () => {
if (null != closure_0) {
2026-08-24 06:08:38 +00:00
let FETCHED = closure_1_8.getSubscriptionGroupListingsForGuildFetchState(tmp);
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
FETCHED = closure_1_9.FETCHED;
2026-07-20 16:05:17 +00:00
}
return FETCHED;
});
2026-07-23 10:11:24 +00:00
ref = ref.useRef(flag);
2026-07-20 16:05:17 +00:00
const items2 = [stateFromStores, guildId, flag2, flag, countryCode, dontFetchWhileTrue];
2026-07-23 10:11:24 +00:00
const effect = ref.useEffect(() => {
if (null != closure_0) {
2026-07-20 16:05:17 +00:00
if (stateFromStores) {
if (true !== dontFetchWhileTrue) {
let tmp5 = flag;
if (!flag) {
2026-08-24 06:08:38 +00:00
tmp5 = tmp4 === closure_1_9.NOT_FETCHED;
2026-07-20 16:05:17 +00:00
}
if (tmp5) {
ref.current = false;
let obj = flag2(countryCode[6]);
2026-07-29 08:29:29 +00:00
obj = { includeSoftDeleted: null, countryCode: null };
obj[0] = false;
obj[1] = countryCode;
2026-07-23 10:11:24 +00:00
const allSubscriptionListingsDataForGuild = obj.fetchAllSubscriptionListingsDataForGuild(closure_0, obj);
2026-07-20 16:05:17 +00:00
}
}
}
}
}, items2);
2026-07-29 08:29:29 +00:00
let listingsLoaded = stateFromStores1 === FetchState.FETCHED;
if (listingsLoaded) {
listingsLoaded = true !== tmp5;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return { listingsLoaded };
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let closure_10 = [];
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/guild_role_subscriptions/GuildRoleSubscriptionsHooks.tsx");
2026-07-29 08:29:29 +00:00
export { useFetchListingsForGuild };
export const useCreateSubscriptionGroupListing = function useCreateSubscriptionGroupListing() {
function _createSubscriptionGroupListing() {
const self = this;
2026-08-24 06:08:38 +00:00
const tmp = closure_1_4((arg0, arg1) => {
closure_0 = arg0;
closure_1 = arg1;
c3 = 0;
c6 = 0;
c5 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0, arg1) {
if (c6 === 2) {
c6 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp7 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c6 = 2;
if (0 === table) {
if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 === 2) {
c6 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
closure_2 = tmp4;
2026-07-29 08:29:29 +00:00
callback(true);
callback2(null);
2026-08-24 06:08:38 +00:00
c5 = 2;
let obj2 = closure_1_2(table[6]);
2026-07-29 08:29:29 +00:00
table = 3;
c6 = 1;
2026-08-24 06:08:38 +00:00
obj1 = { value: null, done: false };
2026-07-29 08:29:29 +00:00
obj1[0] = obj2.createSubscriptionGroupListing(callback, callback2);
return obj1;
}
} else if (1 === tmp8) {
c5 = 0;
callback(false);
2026-08-24 06:08:38 +00:00
throw closure_4;
2026-07-29 08:29:29 +00:00
} else if (2 === tmp8) {
c5 = 1;
2026-08-24 06:08:38 +00:00
callback2(closure_4);
2026-07-29 08:29:29 +00:00
c5 = 0;
callback(false);
c6 = 3;
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
} else if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 === 2) {
c5 = 0;
callback(false);
c6 = 3;
obj2 = { value: null, done: true };
obj2[0] = arg1;
return obj2;
} else {
c5 = 0;
callback(false);
c6 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
}
} catch (tmp36) {
2026-08-24 06:08:38 +00:00
closure_4 = tmp36;
2026-07-29 08:29:29 +00:00
if (tmp5 === c5) {
c6 = tmp3;
throw tmp36;
} else if (tmp2 === tmp38) {
table = tmp2;
} else {
table = tmp;
}
}
}
})();
});
2026-08-24 06:08:38 +00:00
closure_2 = tmp;
2026-07-29 08:29:29 +00:00
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}
let tmp = callback2(React.useState(false), 2);
2026-08-24 06:08:38 +00:00
closure_0 = tmp[1];
2026-07-29 08:29:29 +00:00
const tmp2 = callback2(React.useState(null), 2);
2026-08-24 06:08:38 +00:00
closure_1 = tmp2[1];
2026-07-29 08:29:29 +00:00
return {
loading: tmp[0],
createSubscriptionGroupListing(arg0, arg1) {
const self = this;
const apply = _createSubscriptionGroupListing.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
},
error: tmp2[0]
};
};
export const useUpdateSubscriptionGroupListing = function useUpdateSubscriptionGroupListing() {
const tmp = callback2(React.useState(false), 2);
2026-08-24 06:08:38 +00:00
closure_0 = tmp[1];
2026-07-29 08:29:29 +00:00
const tmp2 = callback2(React.useState(null), 2);
2026-08-24 06:08:38 +00:00
closure_1 = tmp2[1];
2026-07-29 08:29:29 +00:00
closure_0 = undefined;
closure_0 = callback((arg0, arg1, arg2) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
closure_2 = arg2;
c4 = 0;
c7 = 0;
c6 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0, arg1, arg2) {
if (c7 === 2) {
c7 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp7 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c7 = 2;
if (0 === c4) {
if (arg0 === 1) {
c7 = 3;
throw arg1;
} else if (arg0 === 2) {
c7 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
closure_3 = tmp4;
2026-07-29 08:29:29 +00:00
callback(true);
callback2(null);
2026-08-24 06:08:38 +00:00
c6 = 2;
let obj2 = closure_2_2(closure_2_3[6]);
2026-07-29 08:29:29 +00:00
c4 = 3;
c7 = 1;
2026-08-24 06:08:38 +00:00
obj1 = { value: null, done: false };
2026-07-29 08:29:29 +00:00
obj1[0] = obj2.updateSubscriptionGroupListing(callback, callback2, closure_2);
return obj1;
}
} else if (1 === tmp8) {
c6 = 0;
callback(false);
2026-08-24 06:08:38 +00:00
throw closure_5;
2026-07-29 08:29:29 +00:00
} else if (2 === tmp8) {
c6 = 1;
2026-08-24 06:08:38 +00:00
callback2(closure_5);
2026-07-29 08:29:29 +00:00
c6 = 0;
callback(false);
c7 = 3;
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
} else if (arg0 === 1) {
c7 = 3;
throw arg1;
} else if (arg0 === 2) {
c6 = 0;
callback(false);
c7 = 3;
obj2 = { value: null, done: true };
obj2[0] = arg1;
return obj2;
} else {
c6 = 0;
callback(false);
c7 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
}
} catch (tmp37) {
2026-08-24 06:08:38 +00:00
closure_5 = tmp37;
2026-07-29 08:29:29 +00:00
if (tmp5 === c6) {
c7 = tmp3;
throw tmp37;
} else if (tmp2 === tmp39) {
c4 = tmp2;
} else {
c4 = tmp;
}
}
}
})();
});
return {
loading: tmp[0],
updateSubscriptionGroupListing: React.useCallback(function(arg0, arg1, arg2) {
const self = this;
const apply = closure_0.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}, []),
error: tmp2[0]
};
};
export const useSubscriptionListingsForGroup = function useSubscriptionListingsForGroup(id, arg1) {
2026-07-23 10:11:24 +00:00
const _require = id;
2026-07-29 08:29:29 +00:00
let obj = arg1;
2026-07-20 16:05:17 +00:00
if (arg1 === undefined) {
obj = {};
}
let flag = obj.includeSoftDeleted;
if (flag === undefined) {
flag = false;
}
let flag2 = obj.includeUnpublished;
if (flag2 === undefined) {
flag2 = true;
}
2026-08-24 06:08:38 +00:00
const items = [closure_8];
2026-07-20 16:05:17 +00:00
const items1 = [id, flag, flag2];
2026-07-29 08:29:29 +00:00
return _require(589).useStateFromStoresArray(items, () => {
if (null == stateFromStoresArray) {
2026-07-20 16:05:17 +00:00
return [];
} else {
2026-08-24 06:08:38 +00:00
const subscriptionGroupListing = closure_1_8.getSubscriptionGroupListing(tmp);
2026-07-20 16:05:17 +00:00
if (null == subscriptionGroupListing) {
return [];
} else {
const items = [];
2026-07-29 08:29:29 +00:00
const subscription_listings_ids = subscriptionGroupListing.subscription_listings_ids;
for (const item10009 of subscription_listings_ids) {
2026-08-24 06:08:38 +00:00
let tmp4 = closure_1_8;
let subscriptionListing = closure_1_8.getSubscriptionListing(item10009);
2026-07-29 08:29:29 +00:00
let tmp6 = subscriptionListing;
if (null != subscriptionListing) {
let tmp7 = subscriptionListing;
let soft_deleted = tmp6.soft_deleted;
if (soft_deleted) {
let tmp8 = flag;
soft_deleted = !flag;
}
if (!soft_deleted) {
let tmp9 = subscriptionListing;
let published = tmp6.published;
if (!published) {
published = flag2;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (published) {
let tmp10 = subscriptionListing;
let arr = items.push(tmp6);
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
}
continue;
2026-07-20 16:05:17 +00:00
}
return items;
}
}
}, items1);
};
export const useSubscriptionListing = function useSubscriptionListing(editStateId) {
2026-07-23 10:11:24 +00:00
const _require = editStateId;
2026-08-24 06:08:38 +00:00
const items = [closure_8];
2026-07-29 08:29:29 +00:00
return _require(589).useStateFromStores(items, () => {
2026-07-20 16:05:17 +00:00
let subscriptionListing = null;
2026-07-23 10:11:24 +00:00
if (null != closure_0) {
2026-08-24 06:08:38 +00:00
subscriptionListing = closure_1_8.getSubscriptionListing(tmp);
2026-07-20 16:05:17 +00:00
}
return subscriptionListing;
});
};
export const useSubscriptionGroupListing = function useSubscriptionGroupListing(arg0) {
2026-07-23 10:11:24 +00:00
const _require = arg0;
2026-08-24 06:08:38 +00:00
const items = [closure_8];
2026-07-29 08:29:29 +00:00
return _require(589).useStateFromStores(items, () => {
2026-07-20 16:05:17 +00:00
let subscriptionGroupListing = null;
2026-07-23 10:11:24 +00:00
if (null != closure_0) {
2026-08-24 06:08:38 +00:00
subscriptionGroupListing = closure_1_8.getSubscriptionGroupListing(tmp);
2026-07-20 16:05:17 +00:00
}
return subscriptionGroupListing;
});
};
export const useGroupListingsForGuild = function useGroupListingsForGuild(guildId) {
2026-07-23 10:11:24 +00:00
const _require = guildId;
2026-09-01 10:26:29 +00:00
closure_1 = _require(14809).useGroupListingsFetchContext("useGroupListingsForGuild");
const obj = _require(14809);
2026-08-24 06:08:38 +00:00
const items = [closure_8];
2026-07-29 08:29:29 +00:00
return _require(589).useStateFromStores(items, () => {
2026-07-23 10:11:24 +00:00
if (null != closure_0) {
2026-07-20 16:05:17 +00:00
if (closure_1) {
2026-08-24 06:08:38 +00:00
let subscriptionGroupListingsForGuild = closure_1_8.getSubscriptionGroupListingsForGuild(tmp);
2026-07-20 16:05:17 +00:00
}
return subscriptionGroupListingsForGuild;
}
2026-08-24 06:08:38 +00:00
subscriptionGroupListingsForGuild = closure_1_10;
2026-07-20 16:05:17 +00:00
});
};
2026-07-29 08:29:29 +00:00
export const useSubscriptionListingsForGuild = function useSubscriptionListingsForGuild(guildId, arg1) {
const _require = guildId;
let obj = arg1;
if (arg1 === undefined) {
obj = { includeSoftDeleted: false, sortDeletedListingsLast: false };
}
useFetchListingsForGuild(guildId);
2026-08-24 06:08:38 +00:00
const items = [closure_8];
2026-07-29 08:29:29 +00:00
return _require(589).useStateFromStoresArray(items, () => {
let tmp = stateFromStoresArray;
if (null != stateFromStoresArray) {
2026-08-24 06:08:38 +00:00
let subscriptionGroupListingsForGuild = closure_1_8.getSubscriptionGroupListingsForGuild(tmp);
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
subscriptionGroupListingsForGuild = closure_1_10;
2026-07-29 08:29:29 +00:00
}
tmp = subscriptionGroupListingsForGuild;
subscriptionGroupListingsForGuild[Symbol.iterator]();
});
};
2026-07-20 16:05:17 +00:00
export const useFetchListingsForSubscriptions = (arg0) => {
2026-07-23 10:11:24 +00:00
const _require = arg0;
2026-07-29 08:29:29 +00:00
let tmp = callback2(React.useState(false), 2);
2026-07-20 16:05:17 +00:00
const loading = tmp[0];
2026-08-24 06:08:38 +00:00
closure_2 = tmp[1];
2026-07-20 16:05:17 +00:00
const items = [arg0];
2026-07-23 10:11:24 +00:00
const memo = React.useMemo(() => lib.map(lib(memo[9]).getRoleSubscriptionPlanId), items);
2026-08-24 06:08:38 +00:00
const items1 = [closure_8];
2026-07-20 16:05:17 +00:00
const items2 = [memo];
2026-07-29 08:29:29 +00:00
const stateFromStoresArray = _require(memo[5]).useStateFromStoresArray(items1, () => memo.filter((arg0) => !didFetchListingForSubscriptionPlanId.getDidFetchListingForSubscriptionPlanId(arg0)), items2);
2026-07-20 16:05:17 +00:00
const items3 = [loading, stateFromStoresArray];
const effect = React.useEffect(() => {
let tmp = !loading;
2026-07-29 08:29:29 +00:00
if (!loading) {
2026-07-20 16:05:17 +00:00
tmp = stateFromStoresArray.length > 0;
}
if (tmp) {
callback(true);
2026-07-29 08:29:29 +00:00
const allPromises = Promise.all(stateFromStoresArray.map((arg0) => callback(table[6]).fetchSubscriptionListingForPlan(arg0)));
Promise.all(stateFromStoresArray.map((arg0) => callback(table[6]).fetchSubscriptionListingForPlan(arg0))).catch(() => {
2026-07-20 16:05:17 +00:00
}).then(() => {
2026-07-29 08:29:29 +00:00
callback(false);
2026-07-20 16:05:17 +00:00
});
2026-07-29 08:29:29 +00:00
const catchPromise = Promise.all(stateFromStoresArray.map((arg0) => callback(table[6]).fetchSubscriptionListingForPlan(arg0))).catch(() => {
2026-07-20 16:05:17 +00:00
});
}
}, items3);
return { loading };
};
export const useDeleteSubscriptionListing = function useDeleteSubscriptionListing() {
function _deleteSubscriptionListing() {
2026-07-29 08:29:29 +00:00
const self = this;
2026-08-24 06:08:38 +00:00
const tmp = closure_1_4((arg0, arg1, arg2) => {
closure_0 = arg0;
closure_1 = arg1;
closure_2 = arg2;
c4 = 0;
c7 = 0;
c6 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0, arg1, arg2) {
if (c7 === 2) {
c7 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp7 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c7 = 2;
if (0 === c4) {
if (arg0 === 1) {
c7 = 3;
throw arg1;
} else if (arg0 === 2) {
c7 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
closure_3 = tmp4;
c6 = 2;
2026-07-29 08:29:29 +00:00
callback(true);
callback2(null);
2026-08-24 06:08:38 +00:00
obj1 = callback3(closure_1_3[6]);
2026-07-29 08:29:29 +00:00
c4 = 3;
c7 = 1;
obj1 = { value: null, done: false };
obj1[0] = obj1.deleteSubscriptionListing(callback, callback2, callback3);
return obj1;
}
} else if (1 === tmp8) {
c6 = 0;
callback(false);
2026-08-24 06:08:38 +00:00
throw closure_5;
2026-07-29 08:29:29 +00:00
} else if (2 === tmp8) {
c6 = 1;
2026-08-24 06:08:38 +00:00
callback2(closure_5);
2026-07-29 08:29:29 +00:00
c6 = 0;
callback(false);
c7 = 3;
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
} else if (arg0 === 1) {
c7 = 3;
throw arg1;
} else if (arg0 === 2) {
c6 = 0;
callback(false);
c7 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
c6 = 0;
callback(false);
c7 = 3;
return { value: true, done: true };
}
} catch (tmp37) {
2026-08-24 06:08:38 +00:00
closure_5 = tmp37;
2026-07-29 08:29:29 +00:00
if (tmp5 === c6) {
c7 = tmp3;
throw tmp37;
} else if (tmp2 === tmp39) {
c4 = tmp2;
} else {
c4 = tmp;
}
}
}
})();
});
2026-08-24 06:08:38 +00:00
closure_2 = tmp;
2026-07-29 08:29:29 +00:00
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let tmp = callback2(React.useState(false), 2);
2026-08-24 06:08:38 +00:00
closure_0 = tmp[1];
2026-07-29 08:29:29 +00:00
const tmp2 = callback2(React.useState(null), 2);
2026-08-24 06:08:38 +00:00
closure_1 = tmp2[1];
2026-07-20 16:05:17 +00:00
return {
error: tmp2[0],
submitting: tmp[0],
deleteSubscriptionListing(arg0, arg1, arg2) {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _deleteSubscriptionListing.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
};
};
export const useArchiveSubscriptionListing = function useArchiveSubscriptionListing() {
2026-08-24 06:08:38 +00:00
const tmp2 = callback2(useRequestDefault(_fetchSubscriptionsSettingsAll.archiveSubscriptionListing), 2);
2026-07-20 16:05:17 +00:00
return { error: tmp2[1].error, submitting: tmp2[1].loading, archiveSubscriptionListing: tmp2[0] };
};
export const usePublishSubscriptionListing = function usePublishSubscriptionListing() {
function _publishSubscriptionListing() {
2026-07-29 08:29:29 +00:00
const self = this;
2026-08-24 06:08:38 +00:00
const tmp = closure_1_4((arg0) => {
closure_0 = arg0;
c5 = 0;
c6 = 0;
c4 = 0;
2026-07-29 08:29:29 +00:00
const iter = (function*(arg0) {
if (c6 === 2) {
c6 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp8 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c6 = 2;
if (0 === c5) {
if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 === 2) {
c6 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
c2 = tmp4;
let callback2 = tmp6;
let callback;
callback2 = undefined;
c2 = undefined;
({ guildId: c0, groupListingId: c1, listingId: c2 } = callback);
c5 = 1;
c6 = 1;
2026-09-01 10:26:29 +00:00
return { value: "PX_16", done: null };
2026-07-29 08:29:29 +00:00
}
} else if (1 === tmp9) {
if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 === 2) {
c6 = 3;
2026-08-24 06:08:38 +00:00
obj1 = { value: null, done: true };
2026-07-29 08:29:29 +00:00
obj1[0] = arg1;
return obj1;
} else {
2026-08-24 06:08:38 +00:00
c4 = 2;
2026-07-29 08:29:29 +00:00
callback(true);
callback2(null);
const obj2 = { guildId: null, groupListingId: null, listingId: null, data: null };
obj2[0] = callback;
obj2[1] = callback2;
obj2[2] = c2;
obj2[3] = { published: true };
c5 = 4;
c6 = 1;
const obj3 = { value: null, done: false };
2026-08-24 06:08:38 +00:00
obj3[0] = closure_1_2(closure_1_3[6]).updateSubscriptionListing(obj2);
2026-07-29 08:29:29 +00:00
return obj3;
}
} else if (2 === tmp9) {
c4 = 0;
callback(false);
throw closure_3;
} else if (3 === tmp9) {
c4 = 1;
callback2(closure_3);
c4 = 0;
callback(false);
c6 = 3;
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
} else if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 === 2) {
c4 = 0;
callback(false);
c6 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
c4 = 0;
callback(false);
c6 = 3;
return { value: true, done: true };
}
} catch (tmp30) {
closure_3 = tmp30;
if (tmp5 === c4) {
c6 = tmp3;
throw tmp30;
} else if (tmp2 === tmp32) {
c5 = tmp;
} else {
c5 = tmp3;
}
}
}
})();
iter.next();
return iter;
});
2026-08-24 06:08:38 +00:00
closure_2 = tmp;
2026-07-29 08:29:29 +00:00
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let tmp = callback2(React.useState(false), 2);
2026-08-24 06:08:38 +00:00
closure_0 = tmp[1];
2026-07-29 08:29:29 +00:00
const tmp2 = callback2(React.useState(null), 2);
2026-08-24 06:08:38 +00:00
closure_1 = tmp2[1];
2026-07-20 16:05:17 +00:00
return {
error: tmp2[0],
submitting: tmp[0],
publishSubscriptionListing(arg0) {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _publishSubscriptionListing.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
},
clearError() {
return callback(null);
}
};
};
export const useSubscriptionsSettings = function useSubscriptionsSettings(guildId) {
2026-07-23 10:11:24 +00:00
const _require = guildId;
2026-08-24 06:08:38 +00:00
const items = [closure_8];
2026-07-29 08:29:29 +00:00
return _require(589).useStateFromStores(items, () => {
2026-07-20 16:05:17 +00:00
let subscriptionSettings;
2026-07-23 10:11:24 +00:00
if (null != closure_0) {
2026-08-24 06:08:38 +00:00
subscriptionSettings = closure_1_8.getSubscriptionSettings(tmp);
2026-07-20 16:05:17 +00:00
}
return subscriptionSettings;
});
};
export const useUpdateSubscriptionsSettings = function useUpdateSubscriptionsSettings() {
2026-07-29 08:29:29 +00:00
const tmp = callback2(React.useState(false), 2);
2026-08-24 06:08:38 +00:00
closure_0 = tmp[1];
2026-07-29 08:29:29 +00:00
const tmp2 = callback2(React.useState(null), 2);
2026-08-24 06:08:38 +00:00
closure_1 = tmp2[1];
2026-07-29 08:29:29 +00:00
closure_0 = undefined;
closure_0 = callback((arg0, arg1) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
c3 = 0;
c6 = 0;
c5 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0, arg1) {
if (c6 === 2) {
c6 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp7 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c6 = 2;
if (0 === c3) {
if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 === 2) {
c6 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
closure_2 = tmp4;
2026-07-29 08:29:29 +00:00
callback(true);
callback2(null);
2026-08-24 06:08:38 +00:00
c5 = 2;
obj1 = closure_2_2(closure_2_3[6]);
2026-07-29 08:29:29 +00:00
c3 = 3;
c6 = 1;
obj1 = { value: null, done: false };
obj1[0] = obj1.updateSubscriptionsSettings(callback, callback2);
return obj1;
}
} else if (1 === tmp8) {
c5 = 0;
callback(false);
2026-08-24 06:08:38 +00:00
throw closure_4;
2026-07-29 08:29:29 +00:00
} else {
if (2 === tmp8) {
c5 = 1;
2026-08-24 06:08:38 +00:00
callback2(closure_4);
2026-07-29 08:29:29 +00:00
c5 = 0;
callback(false);
c6 = 3;
} else if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 !== 2) {
c5 = 1;
}
c5 = 0;
callback(false);
c6 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
}
} catch (tmp33) {
2026-08-24 06:08:38 +00:00
closure_4 = tmp33;
2026-07-29 08:29:29 +00:00
if (tmp5 === c5) {
c6 = tmp3;
throw tmp33;
} else if (tmp2 === tmp35) {
c3 = tmp2;
} else {
c3 = tmp;
}
}
}
})();
});
2026-07-20 16:05:17 +00:00
return {
loading: tmp[0],
2026-07-29 08:29:29 +00:00
updateSubscriptionsSettings: React.useCallback(function(arg0, arg1) {
const self = this;
const apply = closure_0.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}, []),
2026-07-20 16:05:17 +00:00
error: tmp2[0]
};
};
export const useDeleteSubscriptionGroupListing = function useDeleteSubscriptionGroupListing() {
function _deleteSubscriptionGroupListing() {
2026-07-29 08:29:29 +00:00
const self = this;
2026-08-24 06:08:38 +00:00
const tmp = closure_1_4((arg0, arg1) => {
closure_0 = arg0;
closure_1 = arg1;
c3 = 0;
c6 = 0;
c5 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0, arg1) {
if (c6 === 2) {
c6 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp7 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c6 = 2;
if (0 === table) {
if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 === 2) {
c6 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
closure_2 = tmp4;
c5 = 2;
2026-07-29 08:29:29 +00:00
callback(true);
callback2(null);
2026-08-24 06:08:38 +00:00
let obj2 = closure_1_2(table[6]);
2026-07-29 08:29:29 +00:00
table = 3;
c6 = 1;
2026-08-24 06:08:38 +00:00
obj1 = { value: null, done: false };
2026-07-29 08:29:29 +00:00
obj1[0] = obj2.deleteSubscriptionGroupListing(callback, callback2);
return obj1;
}
} else if (1 === tmp8) {
c5 = 0;
callback(false);
2026-08-24 06:08:38 +00:00
throw closure_4;
2026-07-29 08:29:29 +00:00
} else if (2 === tmp8) {
c5 = 1;
2026-08-24 06:08:38 +00:00
callback2(closure_4);
2026-07-29 08:29:29 +00:00
c5 = 0;
callback(false);
c6 = 3;
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
} else if (arg0 === 1) {
c6 = 3;
throw arg1;
} else if (arg0 === 2) {
c5 = 0;
callback(false);
c6 = 3;
obj2 = { value: null, done: true };
obj2[0] = arg1;
return obj2;
} else {
c5 = 0;
callback(false);
c6 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
}
} catch (tmp36) {
2026-08-24 06:08:38 +00:00
closure_4 = tmp36;
2026-07-29 08:29:29 +00:00
if (tmp5 === c5) {
c6 = tmp3;
throw tmp36;
} else if (tmp2 === tmp38) {
table = tmp2;
} else {
table = tmp;
}
}
}
})();
});
2026-08-24 06:08:38 +00:00
closure_2 = tmp;
2026-07-29 08:29:29 +00:00
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let tmp = callback2(React.useState(false), 2);
2026-08-24 06:08:38 +00:00
closure_0 = tmp[1];
2026-07-29 08:29:29 +00:00
const tmp2 = callback2(React.useState(null), 2);
2026-08-24 06:08:38 +00:00
closure_1 = tmp2[1];
2026-07-20 16:05:17 +00:00
return {
error: tmp2[0],
submitting: tmp[0],
deleteSubscriptionGroupListing(arg0, arg1) {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _deleteSubscriptionGroupListing.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
};
};
export const useFetchSubscriptionsSettings = function useFetchSubscriptionsSettings() {
2026-07-29 08:29:29 +00:00
const tmp = callback2(React.useState(false), 2);
2026-08-24 06:08:38 +00:00
closure_0 = tmp[1];
2026-07-29 08:29:29 +00:00
const tmp2 = callback2(React.useState(null), 2);
2026-08-24 06:08:38 +00:00
closure_1 = tmp2[1];
2026-07-29 08:29:29 +00:00
closure_0 = undefined;
closure_0 = callback((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
c2 = 0;
c5 = 0;
c4 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0) {
if (c5 === 2) {
c5 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp7 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c5 = 2;
if (0 === c2) {
if (arg0 === 1) {
c5 = 3;
throw arg1;
} else if (arg0 === 2) {
c5 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
closure_1 = tmp4;
2026-07-29 08:29:29 +00:00
callback(true);
2026-08-24 06:08:38 +00:00
closure_1_1(null);
c4 = 2;
obj1 = closure_2_2(closure_2_3[6]);
2026-07-29 08:29:29 +00:00
c2 = 3;
c5 = 1;
obj1 = { value: null, done: false };
obj1[0] = obj1.fetchSubscriptionsSettings(callback);
return obj1;
}
} else if (1 === tmp8) {
c4 = 0;
callback(false);
throw closure_3;
} else {
if (2 === tmp8) {
c4 = 1;
2026-08-24 06:08:38 +00:00
closure_1_1(closure_3);
2026-07-29 08:29:29 +00:00
c4 = 0;
callback(false);
c5 = 3;
} else if (arg0 === 1) {
c5 = 3;
throw arg1;
} else if (arg0 !== 2) {
c4 = 1;
}
c4 = 0;
callback(false);
c5 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
}
} catch (tmp32) {
closure_3 = tmp32;
if (tmp5 === c4) {
c5 = tmp3;
throw tmp32;
} else if (tmp2 === tmp34) {
c2 = tmp2;
} else {
c2 = tmp;
}
}
}
})();
});
2026-07-20 16:05:17 +00:00
return {
loading: tmp[0],
2026-07-29 08:29:29 +00:00
fetchSubscriptionsSettings: React.useCallback(function(arg0) {
const self = this;
const apply = closure_0.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}, []),
2026-07-20 16:05:17 +00:00
error: tmp2[0]
};
};
export const useUpdateSubscriptionsTrial = function useUpdateSubscriptionsTrial() {
2026-07-29 08:29:29 +00:00
const tmp = callback2(React.useState(false), 2);
2026-08-24 06:08:38 +00:00
closure_0 = tmp[1];
2026-07-29 08:29:29 +00:00
const tmp2 = callback2(React.useState(null), 2);
2026-08-24 06:08:38 +00:00
closure_1 = tmp2[1];
2026-07-29 08:29:29 +00:00
closure_0 = undefined;
closure_0 = callback((arg0, arg1, arg2) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
closure_1 = arg1;
closure_2 = arg2;
c4 = 0;
c7 = 0;
c6 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0, arg1, arg2) {
if (c7 === 2) {
c7 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp7 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-09-01 10:26:29 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
c7 = 2;
if (0 === c4) {
if (arg0 === 1) {
c7 = 3;
throw arg1;
} else if (arg0 === 2) {
c7 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
closure_3 = tmp4;
2026-07-29 08:29:29 +00:00
callback(true);
callback2(null);
2026-08-24 06:08:38 +00:00
c6 = 2;
obj1 = closure_2_2(closure_2_3[6]);
2026-07-29 08:29:29 +00:00
c4 = 3;
c7 = 1;
obj1 = { value: null, done: false };
obj1[0] = obj1.updateSubscriptionTrial(callback, callback2, closure_2);
return obj1;
}
} else if (1 === tmp8) {
c6 = 0;
callback(false);
2026-08-24 06:08:38 +00:00
throw closure_5;
2026-07-29 08:29:29 +00:00
} else {
if (2 === tmp8) {
c6 = 1;
2026-08-24 06:08:38 +00:00
callback2(closure_5);
2026-07-29 08:29:29 +00:00
c6 = 0;
callback(false);
c7 = 3;
} else if (arg0 === 1) {
c7 = 3;
throw arg1;
} else if (arg0 !== 2) {
c6 = 1;
}
c6 = 0;
callback(false);
c7 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
}
} catch (tmp34) {
2026-08-24 06:08:38 +00:00
closure_5 = tmp34;
2026-07-29 08:29:29 +00:00
if (tmp5 === c6) {
c7 = tmp3;
throw tmp34;
} else if (tmp2 === tmp36) {
c4 = tmp2;
} else {
c4 = tmp;
}
}
}
})();
});
2026-07-20 16:05:17 +00:00
return {
loading: tmp[0],
2026-07-29 08:29:29 +00:00
updateSubscriptionTrial: React.useCallback(function(arg0, arg1, arg2) {
const self = this;
const apply = closure_0.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
}, []),
2026-07-20 16:05:17 +00:00
error: tmp2[0]
};
};
export const useSubscriptionTrial = function useSubscriptionTrial(editStateId) {
2026-07-23 10:11:24 +00:00
const _require = editStateId;
2026-08-24 06:08:38 +00:00
const items = [closure_8];
2026-07-29 08:29:29 +00:00
return _require(589).useStateFromStores(items, () => {
2026-07-20 16:05:17 +00:00
let subscriptionTrial = null;
2026-07-23 10:11:24 +00:00
if (null != closure_0) {
2026-08-24 06:08:38 +00:00
subscriptionTrial = closure_1_8.getSubscriptionTrial(tmp);
2026-07-20 16:05:17 +00:00
}
return subscriptionTrial;
});
};
2026-07-29 08:29:29 +00:00
export const useSubscriptionTrialsForGroup = function useSubscriptionTrialsForGroup(arg0) {
let stateFromStoresArray = arg0;
const obj = {};
let flag = obj.includeSoftDeleted;
if (flag === undefined) {
flag = false;
}
let flag2 = obj.includeUnpublished;
if (flag2 === undefined) {
flag2 = true;
}
2026-08-24 06:08:38 +00:00
let items = [closure_8];
2026-07-29 08:29:29 +00:00
const items1 = [arg0, flag, flag2];
stateFromStoresArray = stateFromStoresArray(589).useStateFromStoresArray(items, () => {
if (null == stateFromStoresArray) {
return [];
} else {
2026-08-24 06:08:38 +00:00
const subscriptionGroupListing = closure_1_8.getSubscriptionGroupListing(tmp);
2026-07-29 08:29:29 +00:00
if (null == subscriptionGroupListing) {
return [];
} else {
const items = [];
const subscription_listings_ids = subscriptionGroupListing.subscription_listings_ids;
for (const item10009 of subscription_listings_ids) {
2026-08-24 06:08:38 +00:00
let tmp4 = closure_1_8;
let subscriptionListing = closure_1_8.getSubscriptionListing(item10009);
2026-07-29 08:29:29 +00:00
let tmp6 = subscriptionListing;
if (null != subscriptionListing) {
let tmp7 = subscriptionListing;
let soft_deleted = tmp6.soft_deleted;
if (soft_deleted) {
let tmp8 = flag;
soft_deleted = !flag;
}
if (!soft_deleted) {
let tmp9 = subscriptionListing;
let published = tmp6.published;
if (!published) {
published = flag2;
}
if (published) {
let tmp10 = subscriptionListing;
let arr = items.push(tmp6);
}
}
}
continue;
}
return items;
}
}
2026-07-20 16:05:17 +00:00
}, items1);
2026-07-29 08:29:29 +00:00
const obj2 = stateFromStoresArray(589);
2026-08-24 06:08:38 +00:00
const items2 = [closure_8];
2026-07-29 08:29:29 +00:00
const items3 = [stateFromStoresArray];
return stateFromStoresArray(589).useStateFromStoresArray(items2, () => {
const mapped = stateFromStoresArray.map((id) => subscriptionTrial.getSubscriptionTrial(id.id));
2026-08-24 06:08:38 +00:00
return mapped.filter(stateFromStoresArray(closure_1_3[11]).isNotNullish);
2026-07-29 08:29:29 +00:00
}, items3);
2026-07-20 16:05:17 +00:00
};
export const useSubscriptionTrialsForGuild = function useSubscriptionTrialsForGuild(guildId) {
2026-07-29 08:29:29 +00:00
let stateFromStoresArray = guildId;
2026-08-24 06:08:38 +00:00
closure_1 = { includeSoftDeleted: false, sortDeletedListingsLast: false };
2026-07-29 08:29:29 +00:00
useFetchListingsForGuild(guildId);
2026-08-24 06:08:38 +00:00
const items = [closure_8];
2026-07-29 08:29:29 +00:00
stateFromStoresArray = stateFromStoresArray(589).useStateFromStoresArray(items, () => {
let tmp = stateFromStoresArray;
if (null != stateFromStoresArray) {
2026-08-24 06:08:38 +00:00
let subscriptionGroupListingsForGuild = closure_1_8.getSubscriptionGroupListingsForGuild(tmp);
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
subscriptionGroupListingsForGuild = closure_1_10;
2026-07-29 08:29:29 +00:00
}
tmp = subscriptionGroupListingsForGuild;
subscriptionGroupListingsForGuild[Symbol.iterator]();
});
const obj = stateFromStoresArray(589);
2026-08-24 06:08:38 +00:00
const items1 = [closure_8];
2026-07-29 08:29:29 +00:00
const items2 = [stateFromStoresArray];
return stateFromStoresArray(589).useStateFromStoresArray(items1, () => {
const mapped = stateFromStoresArray.map((id) => subscriptionTrial.getSubscriptionTrial(id.id));
2026-08-24 06:08:38 +00:00
return mapped.filter(stateFromStoresArray(closure_1_3[11]).isNotNullish);
2026-07-29 08:29:29 +00:00
}, items2);
2026-07-20 16:05:17 +00:00
};