decord/source/lib/guild/GuildChannelSubscriptions.tsx

83 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 6040
// Function ID: 53693
2026-07-20 16:05:17 +00:00
// Name: serializeChannelRanges
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 1362, 22, 2]
2026-07-28 08:39:19 +00:00
// Module 6040 (serializeChannelRanges)
2026-07-23 10:11:24 +00:00
import _classCallCheck from "_classCallCheck";
import _defineProperties from "_defineProperties";
2026-07-20 16:05:17 +00:00
function serializeChannelRanges(arr) {
const obj = {};
const item = arr.forEach((arg0, arg1) => {
obj[arg1] = arg0;
});
return obj;
}
2026-07-23 10:11:24 +00:00
const tmp2 = (() => {
2026-07-20 16:05:17 +00:00
class GuildChannelSubscriptions {
constructor(arg0) {
2026-07-23 10:11:24 +00:00
tmp = outer1_2(this, GuildChannelSubscriptions);
2026-07-20 16:05:17 +00:00
this._subscriptions = {};
this._onChange = arg0;
return;
}
}
let obj = {
key: "reset",
value() {
this._subscriptions = {};
}
};
const items = [obj, , , , ];
obj = {
key: "get",
value(arg0) {
2026-07-23 10:11:24 +00:00
return outer1_4(this._get(arg0));
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
obj = {
key: "_get",
value(arg0) {
let tmp = this._subscriptions[arg0];
if (null == tmp) {
2026-07-23 10:11:24 +00:00
const tmp4 = GuildChannelSubscriptions(outer1_1[2]);
2026-07-20 16:05:17 +00:00
const obj = { max: 5 };
const prototype = tmp4.prototype;
tmp = new tmp4(obj);
}
return tmp;
}
};
items[2] = obj;
items[3] = {
key: "clear",
value(arg0) {
2026-07-23 10:11:24 +00:00
delete tmp2[tmp];
2026-07-20 16:05:17 +00:00
}
};
items[4] = {
key: "subscribe",
value(_pending) {
const self = this;
const _getResult = this._get(_pending);
2026-07-23 10:11:24 +00:00
let flag = !GuildChannelSubscriptions(outer1_1[3]).isEqual(_getResult.get(arg1), arg2);
2026-07-20 16:05:17 +00:00
if (flag) {
const result = _getResult.set(arg1, arg2);
self._subscriptions[_pending] = _getResult;
2026-07-23 10:11:24 +00:00
self._onChange(_pending, outer1_4(_getResult));
2026-07-20 16:05:17 +00:00
flag = true;
}
return flag;
}
};
return callback(GuildChannelSubscriptions, items);
2026-07-23 10:11:24 +00:00
})();
let result = require("priv").fileFinishedImporting("lib/guild/GuildChannelSubscriptions.tsx");
let items = [[0, 99]];
2026-07-20 16:05:17 +00:00
export default tmp2;
export const MINIMUM_RANGE = 100;
export const DEFAULT_RANGES = items;