decord/source/stores/CollapsedVoiceChannelStore.tsx

109 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 5752
2026-07-27 11:26:19 +00:00
// Function ID: 50037
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 1348, 21, 566, 686, 2]
2026-07-25 08:10:48 +00:00
// Module 5752 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import DISCORD_EPOCH from "DISCORD_EPOCH";
import initialize from "initialize";
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() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
function handleConnectionOpen() {
2026-07-23 10:11:24 +00:00
const obj = importDefault(21);
2026-07-20 16:05:17 +00:00
const keys = obj.keys(obj);
const item = keys.forEach((channelId) => {
2026-07-23 10:11:24 +00:00
if (null == outer1_7.getChannel(channelId)) {
delete tmp[tmp2];
2026-07-20 16:05:17 +00:00
}
});
}
let obj = {};
2026-07-23 10:11:24 +00:00
let tmp2 = ((PersistedStore) => {
2026-07-20 16:05:17 +00:00
class CollapsedVoiceChannelStore {
constructor() {
self = this;
2026-07-23 10:11:24 +00:00
tmp = outer1_2(this, CollapsedVoiceChannelStore);
obj = outer1_5(CollapsedVoiceChannelStore);
tmp2 = outer1_4;
if (outer1_10()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_5;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_5(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(CollapsedVoiceChannelStore, PersistedStore);
let obj = {
key: "initialize",
value(arg0) {
let tmp = arg0;
2026-07-23 10:11:24 +00:00
this.waitFor(outer1_7);
2026-07-20 16:05:17 +00:00
if (null == arg0) {
2026-07-23 10:11:24 +00:00
tmp = outer1_8;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const outer1_9 = tmp;
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, , , ];
obj = {
key: "getState",
value() {
2026-07-23 10:11:24 +00:00
return outer1_9;
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
obj = {
key: "getCollapsed",
value() {
2026-07-23 10:11:24 +00:00
return outer1_9;
2026-07-20 16:05:17 +00:00
}
};
items[2] = obj;
items[3] = {
key: "isCollapsed",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_9[arg0] || false;
2026-07-20 16:05:17 +00:00
}
};
return callback(CollapsedVoiceChannelStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").PersistedStore);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "CollapsedVoiceChannelStore";
tmp2.persistKey = "collapsedChannels";
obj = {
CONNECTION_OPEN: handleConnectionOpen,
OVERLAY_INITIALIZE: handleConnectionOpen,
CHANNEL_COLLAPSE: function handleChannelCollapse(channelId) {
channelId = channelId.channelId;
if (obj[channelId]) {
2026-07-23 10:11:24 +00:00
delete tmp[tmp2];
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp3[channelId] = true;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj = {};
2026-07-20 16:05:17 +00:00
const merged = Object.assign(obj);
}
};
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), obj);
let result = require("_possibleConstructorReturn").fileFinishedImporting("stores/CollapsedVoiceChannelStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;