decord/source/stores/billing/GuildBoostSlotStore.tsx

132 lines
3.5 KiB
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 4023
// Function ID: 33490
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 3782, 566, 686, 2]
// Module 4023 (_isNativeReflectConstruct)
import initialize from "initialize";
import dispatcher from "dispatcher";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
let initialize = !valueOf.call(Reflect.construct(Boolean, [], () => {
2026-07-20 16:05:17 +00:00
}));
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
return initialize;
2026-07-20 16:05:17 +00:00
}
const result = _isNativeReflectConstruct();
}
function handleGuildBoostsUpdate(guildBoostSlot) {
guildBoostSlot = guildBoostSlot.guildBoostSlot;
const obj = {};
2026-07-23 10:11:24 +00:00
const merged = Object.assign(obj);
2026-07-20 16:05:17 +00:00
obj[guildBoostSlot.id] = guildBoostSlot;
}
function handleSubscriptionStoreUpdate() {
let length;
const obj = {};
2026-07-23 10:11:24 +00:00
const values = Object.values(obj);
2026-07-20 16:05:17 +00:00
let num = 0;
if (0 < values.length) {
do {
let tmp = values[num];
obj[tmp.id] = tmp;
2026-07-23 10:11:24 +00:00
let tmp2 = subscriptionById;
tmp.subscription = subscriptionById.getSubscriptionById(tmp.subscriptionId);
2026-07-20 16:05:17 +00:00
num = num + 1;
length = values.length;
} while (num < length);
}
}
2026-07-23 10:11:24 +00:00
let c6 = false;
let c7 = false;
2026-07-20 16:05:17 +00:00
let closure_8 = {};
2026-07-23 10:11:24 +00:00
let tmp2 = ((Store) => {
2026-07-20 16:05:17 +00:00
class GuildBoostSlotStore {
constructor() {
self = this;
tmp = GuildBoostSlotStore(this, GuildBoostSlotStore);
2026-07-23 10:11:24 +00:00
obj = outer1_3(GuildBoostSlotStore);
tmp2 = outer1_2;
if (outer1_9()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_3;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_3(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(GuildBoostSlotStore, Store);
let obj = {
key: "initialize",
value() {
2026-07-23 10:11:24 +00:00
const items = [outer1_5];
this.syncWith(items, outer1_10);
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
let items = [obj, , , , ];
2026-07-20 16:05:17 +00:00
obj = {
key: "hasFetched",
get() {
2026-07-23 10:11:24 +00:00
return outer1_6;
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
obj = {
key: "isFetching",
get() {
2026-07-23 10:11:24 +00:00
return outer1_7;
2026-07-20 16:05:17 +00:00
}
};
items[2] = obj;
items[3] = {
key: "boostSlots",
get() {
2026-07-23 10:11:24 +00:00
return outer1_8;
2026-07-20 16:05:17 +00:00
}
};
items[4] = {
key: "getGuildBoostSlot",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_8[arg0];
2026-07-20 16:05:17 +00:00
}
};
return callback(GuildBoostSlotStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "GuildBoostSlotStore";
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
GUILD_BOOST_SLOTS_FETCH: function handleGuildBoostsFetch() {
2026-07-23 10:11:24 +00:00
let c7 = true;
2026-07-20 16:05:17 +00:00
},
GUILD_BOOST_SLOTS_FETCH_SUCCESS: function handleGuildBoostsFetchSuccess(guildBoostSlots) {
guildBoostSlots = guildBoostSlots.guildBoostSlots;
let closure_8 = {};
const item = guildBoostSlots.forEach((id) => {
closure_8[id.id] = id;
});
2026-07-23 10:11:24 +00:00
let c7 = false;
let c6 = true;
2026-07-20 16:05:17 +00:00
},
GUILD_BOOST_SLOT_UPDATE_SUCCESS: handleGuildBoostsUpdate,
GUILD_BOOST_SLOT_CREATE: handleGuildBoostsUpdate,
GUILD_BOOST_SLOT_UPDATE: handleGuildBoostsUpdate,
LOGOUT: function handleLogout() {
let closure_8 = {};
2026-07-23 10:11:24 +00:00
let c6 = false;
let c7 = false;
2026-07-20 16:05:17 +00:00
}
});
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("stores/billing/GuildBoostSlotStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;