Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,68 @@
|
||||
/* Metro module 6890; source: lib/guild/GuildChannelSubscriptions.tsx; dependencies: [6, 7, 1393, 22, 2] */
|
||||
function _fun54712(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7068:6, offset: 0x0136c7e8, size: 174 bytes, params: 8, frame: 18
|
||||
const serializeChannelRanges = function(a0) {
|
||||
a0.forEach(_fun54714);
|
||||
return {};
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun54715();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('lib/guild/GuildChannelSubscriptions.tsx');
|
||||
exports.default = value;
|
||||
exports.MINIMUM_RANGE = 100;
|
||||
exports.DEFAULT_RANGES = [[0, 99]];
|
||||
}
|
||||
|
||||
function serializeChannelRanges(a0) { // fn#54713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7068:116, offset: 0x0136c896, size: 28 bytes, params: 2, frame: 12
|
||||
a0.forEach(_fun54714);
|
||||
return {};
|
||||
}
|
||||
|
||||
function _fun54715() { // fn#54715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7068:204, offset: 0x0136c8b2, size: 147 bytes, params: 1, frame: 15
|
||||
return env0_3(GuildChannelSubscriptions, [{key: 'reset', value: function() {
|
||||
this._subscriptions = {};
|
||||
}}, {key: 'get', value: value_54718}, {key: '_get', value: value_54719}, {key: 'clear', value: function(a0) {
|
||||
delete this._subscriptions[a0];
|
||||
}}, {key: 'subscribe', value: function(a0, a1, a2) {
|
||||
var r0;
|
||||
var value = this._get(a0);
|
||||
var isEqual = importDefault(dependencyMap[3]).isEqual(value.get(a1), a2);
|
||||
if (isEqual) {
|
||||
r0 = !isEqual;
|
||||
} else {
|
||||
value.set(a1, a2);
|
||||
this._subscriptions[a0] = value;
|
||||
this._onChange(a0, serializeChannelRanges(value));
|
||||
value = true;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun54714(a0, a1) { // fn#54714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7068:178, offset: 0x00daaa50, size: 21 bytes, params: 3, frame: 3
|
||||
env0_0[a1] = a0;
|
||||
}
|
||||
|
||||
function value_54718(a0) { // fn#54718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7068:412, offset: 0x0136c980, size: 33 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__;
|
||||
return serializeChannelRanges(this._get(a0));
|
||||
}
|
||||
|
||||
function value_54719(a0) { // fn#54719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7068:488, offset: 0x0136c9a1, size: 81 bytes, params: 2, frame: 12
|
||||
var r0;
|
||||
var value;
|
||||
const property = this._subscriptions[a0];
|
||||
if (property != null) {
|
||||
r0 = property;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(1393) /* metro dependency 1393 */;
|
||||
value = new value({max: 5});
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,229 @@
|
||||
/* Metro module 6270; source: lib/guild/GuildMemberRequester.tsx; dependencies: [6, 7, 4041, 22, 2] */
|
||||
function _fun49525(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:6, offset: 0x011fc0cd, size: 149 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = _fun49526();
|
||||
const value = _fun49535();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('lib/guild/GuildMemberRequester.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun49526() { // fn#49526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:118, offset: 0x011fc162, size: 124 bytes, params: 1, frame: 15
|
||||
return env0_4(GuildMemberRequestState, [{key: 'acknowledge', value: function(a0) {
|
||||
this._unacknowledgedRequests.delete(a0);
|
||||
this._pendingRequests.delete(a0);
|
||||
}}, {key: 'flushRequests', value: function(a0) {
|
||||
var items;
|
||||
var _pendingRequests;
|
||||
var env0_0 = this;
|
||||
if (this._pendingRequests.size !== 0) {
|
||||
items = [];
|
||||
var env0_1 = items;
|
||||
_pendingRequests = this._pendingRequests;
|
||||
_pendingRequests.forEach(_fun49531);
|
||||
if (items.length > 0) {
|
||||
a0(this._guildId, items);
|
||||
}
|
||||
_pendingRequests = this._pendingRequests;
|
||||
_pendingRequests.clear();
|
||||
}
|
||||
}}, {key: 'requestUnacknowledged', value: function() {
|
||||
var r0;
|
||||
var env0_0 = this;
|
||||
var value = this._unacknowledgedRequests.size !== 0;
|
||||
if (value) {
|
||||
this._unacknowledgedRequests.forEach(_fun49533);
|
||||
r0 = this._pendingRequests.size !== 0 && undefined;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}}, {key: 'request', value: function(a0) {
|
||||
if (this._guildMemberExists(a0)) {
|
||||
return false;
|
||||
}
|
||||
if (this._sentRequests.has(a0)) {
|
||||
return false;
|
||||
}
|
||||
if (this._pendingRequests.has(a0)) {
|
||||
return false;
|
||||
}
|
||||
this._pendingRequests.add(a0);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun49535() { // fn#49535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:1195, offset: 0x011fc450, size: 195 bytes, params: 1, frame: 15
|
||||
return env0_4(GuildMemberRequester, [{key: 'reset', value: function() {
|
||||
this._guildStates = {};
|
||||
this._flush.cancel();
|
||||
}}, {key: 'request', value: function(a0, a1) {
|
||||
var value = this._getGuildState(a0);
|
||||
value = value.request(a1);
|
||||
if (value !== false) {
|
||||
this._flush.delay(false);
|
||||
}
|
||||
}}, {key: 'acknowledge', value: function(a0, a1) {
|
||||
this._getGuildState(a0).acknowledge(a1);
|
||||
}}, {key: 'flushRequests', value: value_49541}, {key: 'requestUnacknowledged', value: value_49543},
|
||||
{key: '_getGuildState', value: value_49545}, {key: 'getDebugState', value: value_49546}]);
|
||||
}
|
||||
|
||||
function GuildMemberRequestState(a0, a1) { // fn#49527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:139, offset: 0x011fc1de, size: 158 bytes, params: 3, frame: 16
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const value = environment.__proto__;
|
||||
env1_3(this, GuildMemberRequestState);
|
||||
let Set = global.Set;
|
||||
this._pendingRequests = new Set();
|
||||
Set = global.Set;
|
||||
this._sentRequests = new Set();
|
||||
Set = global.Set;
|
||||
this._unacknowledgedRequests = new Set();
|
||||
this._guildId = a0;
|
||||
this._guildMemberExists = _guildMemberExists;
|
||||
}
|
||||
|
||||
function value_49530(a0) { // fn#49530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:493, offset: 0x011fc2be, size: 101 bytes, params: 2, frame: 15
|
||||
var items2;
|
||||
let _pendingRequests = this._pendingRequests;
|
||||
if (_pendingRequests.size !== 0) {
|
||||
items2 = [];
|
||||
_pendingRequests = this._pendingRequests;
|
||||
_pendingRequests.forEach(_fun49531);
|
||||
if (items2.length > 0) {
|
||||
a0(this._guildId, items2);
|
||||
}
|
||||
_pendingRequests = this._pendingRequests;
|
||||
_pendingRequests.clear();
|
||||
}
|
||||
}
|
||||
|
||||
function value_49532() { // fn#49532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:788, offset: 0x011fc371, size: 75 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
const value = this._unacknowledgedRequests.size !== 0;
|
||||
if (value) {
|
||||
this._unacknowledgedRequests.forEach(_fun49533);
|
||||
r0 = this._pendingRequests.size !== 0 && undefined;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function GuildMemberRequester(a0, a1) { // fn#49536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:1216, offset: 0x011fc513, size: 118 bytes, params: 3, frame: 15
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
env1_3(this, GuildMemberRequester);
|
||||
this._guildStates = {};
|
||||
const DelayedCall = (require(4041) /* metro dependency 4041: Timers */).DelayedCall;
|
||||
this._flush = new DelayedCall(0, _fun49537);
|
||||
this._guildMemberExists = a0;
|
||||
this._onChange = a1;
|
||||
}
|
||||
|
||||
function value_49541() { // fn#49541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:1693, offset: 0x011fc618, size: 58 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value.forEach(this._guildStates, _fun49542);
|
||||
}
|
||||
|
||||
function value_49543() { // fn#49543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:1813, offset: 0x011fc66f, size: 77 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
if (value.reduce(this._guildStates, function(a0, a1) {
|
||||
return a1.requestUnacknowledged() !== false || a0;
|
||||
}, false)) {
|
||||
this._flush.delay();
|
||||
}
|
||||
}
|
||||
|
||||
function value_49545(a0) { // fn#49545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:1955, offset: 0x011fc6da, size: 73 bytes, params: 2, frame: 15
|
||||
var r0;
|
||||
var value;
|
||||
var binding;
|
||||
var _guildMemberExists;
|
||||
var binding2;
|
||||
let _guildStates = this._guildStates;
|
||||
const property = _guildStates[a0];
|
||||
if (property != null) {
|
||||
r0 = property;
|
||||
} else {
|
||||
_guildStates = this._guildStates;
|
||||
value = environment.__proto__;
|
||||
binding = env1_5;
|
||||
_guildMemberExists = this._guildMemberExists;
|
||||
binding2 = new binding(a0);
|
||||
_guildStates[a0] = binding2;
|
||||
r0 = binding2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_49546(a0) { // fn#49546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:2099, offset: 0x011fc723, size: 108 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value.forEach(this._guildStates, _fun49547);
|
||||
return {pendingRequestGuildIds: [], unacknowledgedRequestGuildIds: [], sentRequestGuildIds: []};
|
||||
}
|
||||
|
||||
function _guildMemberExists(a0) { // fn#49528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:343, owner: GuildMemberRequestState._guildMemberExists, offset: 0x011fc27c, size: 24 bytes, params: 2, frame: 13
|
||||
return require(env0_0, a0);
|
||||
}
|
||||
|
||||
function _fun49531(a0) { // fn#49531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:580, offset: 0x011fc323, size: 78 bytes, params: 2, frame: 13
|
||||
let binding = env0_0;
|
||||
if (!binding._guildMemberExists(a0)) {
|
||||
binding = env0_0;
|
||||
binding._unacknowledgedRequests.add(a0);
|
||||
binding._sentRequests.add(a0);
|
||||
binding = env0_1;
|
||||
binding.push(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun49533(a0) { // fn#49533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:884, offset: 0x011fc3bc, size: 66 bytes, params: 2, frame: 12
|
||||
let binding = env0_0;
|
||||
const value2 = binding._guildMemberExists(a0);
|
||||
binding = env0_0;
|
||||
if (value2) {
|
||||
binding._unacknowledgedRequests.delete(a0);
|
||||
} else {
|
||||
binding._pendingRequests.add(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun49537() { // fn#49537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:1341, offset: 0x011fc589, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0.flushRequests();
|
||||
}
|
||||
|
||||
function _fun49542(a0) { // fn#49542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:1739, offset: 0x011fc652, size: 29 bytes, params: 2, frame: 11
|
||||
return a0.flushRequests(env0_0._onChange);
|
||||
}
|
||||
|
||||
function _fun49547(a0) { // fn#49547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6448:2172, offset: 0x011fc78f, size: 139 bytes, params: 2, frame: 13
|
||||
var binding;
|
||||
const _pendingRequests = a0._pendingRequests;
|
||||
if (_pendingRequests.has(env0_0)) {
|
||||
binding = env0_1;
|
||||
binding.push(a0._guildId);
|
||||
}
|
||||
const _unacknowledgedRequests = a0._unacknowledgedRequests;
|
||||
if (_unacknowledgedRequests.has(env0_0)) {
|
||||
binding = env0_2;
|
||||
binding.push(a0._guildId);
|
||||
}
|
||||
const _sentRequests = a0._sentRequests;
|
||||
if (_sentRequests.has(env0_0)) {
|
||||
binding = env0_3;
|
||||
binding.push(a0._guildId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
/* Metro module 6889; source: lib/guild/GuildMemberSubscriptions.tsx; dependencies: [6, 7, 672, 4041, 21, 3, 22, 2] */
|
||||
function _fun54697(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7067:6, offset: 0x0136c22e, size: 168 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const MINUTE = Millis.MINUTE;
|
||||
const env0_5 = 1 * MINUTE;
|
||||
const value = _fun54698();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('lib/guild/GuildMemberSubscriptions.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun54698() { // fn#54698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7067:144, offset: 0x0136c2d6, size: 243 bytes, params: 1, frame: 15
|
||||
return env0_4(GuildMemberSubscriptions, [{key: 'reset', value: function() {
|
||||
this._subscriptions = {};
|
||||
this._unsubscriptions = {};
|
||||
this._unsubscribe.cancel();
|
||||
}}, {key: 'get', value: value_54702}, {key: 'clear', value: function(a0) {
|
||||
delete this._subscriptions[a0];
|
||||
delete this._unsubscriptions[a0];
|
||||
}}, {key: 'subscribe', value: function(a0, a1) {
|
||||
var r0;
|
||||
r0 = this._subscriptions[a0] ?? ({});
|
||||
r0[a1] = (r0[a1] ?? 0) + 1;
|
||||
this._subscriptions[a0] = r0;
|
||||
if (r0[a1] === 1) {
|
||||
this._onChange(a0, this.get(a0));
|
||||
}
|
||||
this.checkForLeaks(a0, a1);
|
||||
}}, {key: 'isSubscribed', value: function(a0, a1) {
|
||||
return this._subscriptions[a0] != null && this._subscriptions[a0][a1] != null;
|
||||
}}, {key: 'isSubscribedToAnyMember', value: function(a0) {
|
||||
return this.get(a0).length > 0;
|
||||
}}, {key: 'unsubscribe', value: function(a0, a1) {
|
||||
var r1;
|
||||
var property;
|
||||
if (this.isSubscribed(a0, a1)) {
|
||||
property = this._unsubscriptions[a0];
|
||||
r1 = property ?? ({});
|
||||
property = r1[a1];
|
||||
r1[a1] = (property ?? 0) + 1;
|
||||
this._unsubscriptions[a0] = r1;
|
||||
if (r1[a1] === 1) {
|
||||
this._unsubscribe.delay(false);
|
||||
}
|
||||
}
|
||||
}}, {key: 'checkForLeaks', value: value_54708}, {key: 'flushUnsubscriptions', value: value_54709}]);
|
||||
}
|
||||
|
||||
function GuildMemberSubscriptions(a0) { // fn#54699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7067:165, offset: 0x0136c3c9, size: 119 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
env1_3(this, GuildMemberSubscriptions);
|
||||
this._subscriptions = {};
|
||||
this._unsubscriptions = {};
|
||||
const DelayedCall = (require(4041) /* metro dependency 4041: Timers */).DelayedCall;
|
||||
this._unsubscribe = new DelayedCall(env1_5, _fun54700);
|
||||
this._onChange = a0;
|
||||
}
|
||||
|
||||
function value_54702(a0) { // fn#54702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7067:507, offset: 0x0136c47c, size: 61 bytes, params: 2, frame: 12
|
||||
const r2 = this._subscriptions[a0] ?? ({});
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(21) /* metro dependency 21: SnowflakeUtils */).keys(r2);
|
||||
}
|
||||
|
||||
function value_54708(a0, a1) { // fn#54708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7067:1322, offset: 0x0136c602, size: 183 bytes, params: 3, frame: 18
|
||||
var value4;
|
||||
var defaultImport;
|
||||
var value5;
|
||||
var defaultImport2;
|
||||
let property = this._subscriptions[a0];
|
||||
const value = undefined;
|
||||
const r7 = property == null ? value : property[a1];
|
||||
const value2 = 0;
|
||||
const r1 = r7 ?? value2;
|
||||
property = this._unsubscriptions[a0];
|
||||
const value3 = r1 - ((property == null ? value : property[a1]) ?? value2);
|
||||
if (value3 > 5) {
|
||||
value4 = environment.__proto__;
|
||||
defaultImport = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value5 = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}});
|
||||
defaultImport2 = new defaultImport('GuildMemberSubscriptions');
|
||||
(defaultImport2 instanceof Object ? defaultImport2 : value5).warn('GuildMemberSubscriptions.subscribe(...): Potential reference leak! (' + value3 + ' subscriptions)');
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_54709() { // fn#54709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7067:1652, offset: 0x0136c6b9, size: 103 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
if (!defaultImport.isEmpty(this._unsubscriptions)) {
|
||||
value = defaultImport;
|
||||
value.forEach(this._unsubscriptions, _fun54710);
|
||||
this._unsubscriptions = {};
|
||||
}
|
||||
}
|
||||
|
||||
function _fun54700() { // fn#54700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7067:329, offset: 0x0136c440, size: 21 bytes, params: 1, frame: 9
|
||||
return env0_0.flushUnsubscriptions();
|
||||
}
|
||||
|
||||
function _fun54710(a0, a1) { // fn#54710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7067:1743, offset: 0x0136c720, size: 135 bytes, params: 3, frame: 20
|
||||
const property = env0_0._subscriptions[a1];
|
||||
var env0_0 = property;
|
||||
(importDefault(22) /* metro dependency 22 */).forEach(a0, _fun54711);
|
||||
const defaultImport2 = importDefault(22) /* metro dependency 22 */;
|
||||
if (defaultImport2.isEmpty(property)) {
|
||||
delete env0_0._subscriptions[a1];
|
||||
}
|
||||
const binding = env0_0;
|
||||
const _onChange = binding._onChange;
|
||||
const get = binding.get;
|
||||
Reflect.apply(_onChange, binding, [a1, Reflect.apply(get, binding, [a1])]);
|
||||
}
|
||||
|
||||
function _fun54711(a0, a1) { // fn#54711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7067:1799, offset: 0x0136c7a7, size: 65 bytes, params: 3, frame: 7
|
||||
const binding = env0_0;
|
||||
const property = binding[a1];
|
||||
const value2 = 0;
|
||||
binding[a1] = (property ?? value2) - a0;
|
||||
if (env0_0[a1] <= value2) {
|
||||
delete env0_0[a1];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,212 @@
|
||||
/* Metro module 6888; source: lib/guild/GuildSubscriptions.tsx; dependencies: [6, 7, 661, 6889, 6890, 6891, 4041, 22, 2] */
|
||||
function _fun54669(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:6, offset: 0x0136b7fd, size: 222 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_5 = value.FAVORITES;
|
||||
const env0_6 = value.ME;
|
||||
value = _fun54671();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('lib/guild/GuildSubscriptions.tsx');
|
||||
exports.default = value;
|
||||
const MINIMUM_RANGE = (require(6890) /* metro dependency 6890: GuildChannelSubscriptions */).MINIMUM_RANGE;
|
||||
exports.MINIMUM_RANGE = MINIMUM_RANGE;
|
||||
const DEFAULT_RANGES = (require(6890) /* metro dependency 6890: GuildChannelSubscriptions */).DEFAULT_RANGES;
|
||||
exports.DEFAULT_RANGES = DEFAULT_RANGES;
|
||||
}
|
||||
|
||||
function validateGuildId(a0) { // fn#54670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:147, offset: 0x0136b8db, size: 61 bytes, params: 2, frame: 3
|
||||
let r0 = a0 != null && a0 !== 'null' && a0 !== ME;
|
||||
r0 = r0 && a0 !== 'undefined' && a0 !== FAVORITES;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun54671() { // fn#54671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:239, offset: 0x0136b918, size: 471 bytes, params: 1, frame: 15
|
||||
return env0_4(GuildSubscriptions, [{key: '_enqueue', value: function(a0, a1) {
|
||||
var property = this._pending;
|
||||
var object = {};
|
||||
var _pending = this._pending;
|
||||
copyDataProperties(object, a1, copyDataProperties(object, _pending[a0], _pending));
|
||||
property[a0] = object;
|
||||
this._flush.delay();
|
||||
}}, {key: 'reset', value: value_54678}, {key: 'get', value: value_54679}, {key: 'getSubscribedThreadIds',
|
||||
value: function() {
|
||||
return this._threadMemberLists.getSubscribedThreadIds();
|
||||
}}, {key: 'isSubscribedToThreads', value: function(a0) {
|
||||
return this._threads.has(a0);
|
||||
}}, {key: 'isSubscribedToAnyMember', value: function(a0) {
|
||||
var isSubscribedToAnyMember = this._members.isSubscribedToAnyMember(a0);
|
||||
return isSubscribedToAnyMember != null && isSubscribedToAnyMember;
|
||||
}}, {key: 'isSubscribedToMemberUpdates', value: function(a0) {
|
||||
var member_updates = this.get(a0).member_updates;
|
||||
return member_updates != null && member_updates;
|
||||
}}, {key: 'forEach', value: function(a0) {
|
||||
this._subscribed.forEach(a0);
|
||||
}}, {key: 'clearWithoutFlushing', value: value_54685}, {key: 'flush', value: value_54686}, {key: 'subscribeUser',
|
||||
value: function(a0, a1) {
|
||||
if (validateGuildId(a0)) {
|
||||
this._members.subscribe(a0, a1);
|
||||
}
|
||||
}}, {key: 'unsubscribeUser', value: function(a0, a1) {
|
||||
if (validateGuildId(a0)) {
|
||||
this._members.unsubscribe(a0, a1);
|
||||
}
|
||||
}}, {key: 'subscribeChannel', value: value_54690}, {key: 'subscribeToMemberUpdates', value: function(a0) {
|
||||
if (validateGuildId(a0)) {
|
||||
this._enqueue(a0, {member_updates: true});
|
||||
this._memberUpdates.add(a0);
|
||||
return undefined;
|
||||
}
|
||||
return false;
|
||||
}}, {key: 'unsubscribeFromMemberUpdates', value: value_54692}, {key: 'subscribeThreadMemberList',
|
||||
value: value_54693}, {key: 'unsubscribeThreadMemberList', value: value_54694}, {key: 'subscribeToGuild',
|
||||
value: function(a0) {
|
||||
this._subscribeToFeature(a0, this._typing, {typing: true});
|
||||
this._subscribeToFeature(a0, this._activities, {activities: true});
|
||||
this._subscribeToFeature(a0, this._threads, {threads: true});
|
||||
}}, {key: '_subscribeToFeature', value: function(a0, a1, a2) {
|
||||
if (validateGuildId(a0)) {
|
||||
if (!a1.has(a0)) {
|
||||
a1.add(a0);
|
||||
this._enqueue(a0, a2);
|
||||
}
|
||||
}
|
||||
}}]);
|
||||
}
|
||||
|
||||
function GuildSubscriptions(a0) { // fn#54672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:260, offset: 0x0136baef, size: 404 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
env1_3(this, GuildSubscriptions);
|
||||
const defaultImport = importDefault(6889) /* metro dependency 6889: GuildMemberSubscriptions */;
|
||||
const value3 = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}});
|
||||
const defaultImport4 = new defaultImport(_fun54673);
|
||||
this._members = defaultImport4 instanceof Object ? defaultImport4 : value3;
|
||||
const defaultImport2 = importDefault(6890) /* metro dependency 6890: GuildChannelSubscriptions */;
|
||||
const value6 = Object.create(defaultImport2.prototype, {constructor: {value: defaultImport2}});
|
||||
const defaultImport22 = new defaultImport2(_fun54674);
|
||||
this._channels = defaultImport22 instanceof Object ? defaultImport22 : value6;
|
||||
const defaultImport3 = importDefault(6891) /* metro dependency 6891: GuildThreadSubscriptions */;
|
||||
const value9 = Object.create(defaultImport3.prototype, {constructor: {value: defaultImport3}});
|
||||
const defaultImport32 = new defaultImport3(_fun54675);
|
||||
this._threadMemberLists = defaultImport32 instanceof Object ? defaultImport32 : value9;
|
||||
let Set = global.Set;
|
||||
const value12 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
let set = new Set();
|
||||
this._typing = set instanceof Object ? set : value12;
|
||||
Set = global.Set;
|
||||
const value14 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
this._threads = set instanceof Object ? set : value14;
|
||||
Set = global.Set;
|
||||
const value16 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
this._activities = set instanceof Object ? set : value16;
|
||||
Set = global.Set;
|
||||
const value18 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
this._memberUpdates = set instanceof Object ? set : value18;
|
||||
Set = global.Set;
|
||||
const value20 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
this._subscribed = set instanceof Object ? set : value20;
|
||||
this._pending = {};
|
||||
const DelayedCall = (require(4041) /* metro dependency 4041: Timers */).DelayedCall;
|
||||
this._flush = new DelayedCall(0, _fun54676);
|
||||
this._onChange = a0;
|
||||
}
|
||||
|
||||
function value_54678() { // fn#54678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:878, offset: 0x0136bd3d, size: 143 bytes, params: 1, frame: 10
|
||||
this._subscribed.clear();
|
||||
this._pending = {};
|
||||
this._members.reset();
|
||||
this._memberUpdates.clear();
|
||||
this._channels.reset();
|
||||
this._threadMemberLists.reset();
|
||||
this._typing.clear();
|
||||
this._threads.clear();
|
||||
this._activities.clear();
|
||||
}
|
||||
|
||||
function value_54679(a0) { // fn#54679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:1123, offset: 0x0136bdcc, size: 157 bytes, params: 2, frame: 13
|
||||
const object2 = {};
|
||||
object2.typing = this._typing.has(a0);
|
||||
object2.threads = this._threads.has(a0);
|
||||
object2.activities = this._activities.has(a0);
|
||||
object2.members = this._members.get(a0);
|
||||
object2.member_updates = this._memberUpdates.has(a0);
|
||||
object2.channels = this._channels.get(a0);
|
||||
object2.thread_member_lists = this._threadMemberLists.get(a0);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function value_54685(a0, a1) { // fn#54685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:1894, offset: 0x0136bef9, size: 182 bytes, params: 3, frame: 14
|
||||
if (!(!a1 && this._threads.has(a0))) {
|
||||
this._subscribed.delete(a0);
|
||||
}
|
||||
delete this._pending[a0];
|
||||
this._members.clear(a0);
|
||||
this._channels.clear(a0);
|
||||
this._threadMemberLists.clear(a0);
|
||||
this._typing.delete(a0);
|
||||
this._memberUpdates.delete(a0);
|
||||
if (a1) {
|
||||
this._threads.delete(a0);
|
||||
}
|
||||
this._activities.delete(a0);
|
||||
}
|
||||
|
||||
function value_54686() { // fn#54686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:2193, offset: 0x0136bfaf, size: 83 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value.forEach(this._pending, _fun54687);
|
||||
this._onChange(this._pending);
|
||||
this._pending = {};
|
||||
}
|
||||
|
||||
function value_54690(a0, a1, a2) { // fn#54690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:2537, offset: 0x0136c07c, size: 56 bytes, params: 4, frame: 16
|
||||
let value = environment.__proto__;
|
||||
value = validateGuildId(a0);
|
||||
return value ? this._channels.subscribe(a0, a1, a2) : !!value;
|
||||
}
|
||||
|
||||
function value_54692(a0) { // fn#54692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:2805, offset: 0x0136c0f6, size: 48 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__;
|
||||
if (validateGuildId(a0)) {
|
||||
this._enqueue(a0, {member_updates: false});
|
||||
return undefined;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function value_54693(a0, a1, a2) { // fn#54693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:2927, offset: 0x0136c126, size: 56 bytes, params: 4, frame: 16
|
||||
let value = environment.__proto__;
|
||||
value = validateGuildId(a0);
|
||||
return value ? this._threadMemberLists.subscribe(a0, a1, a2) : !!value;
|
||||
}
|
||||
|
||||
function value_54694(a0, a1) { // fn#54694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:3055, offset: 0x0136c15e, size: 52 bytes, params: 3, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = validateGuildId(a0);
|
||||
return value ? this._threadMemberLists.unsubscribe(a0, a1) : !!value;
|
||||
}
|
||||
|
||||
function _fun54673(a0, a1) { // fn#54673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:346, offset: 0x0136bc83, size: 34 bytes, params: 3, frame: 13
|
||||
return env0_0._enqueue(a0, {members: a1});
|
||||
}
|
||||
|
||||
function _fun54674(a0, a1) { // fn#54674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:413, offset: 0x0136bca5, size: 34 bytes, params: 3, frame: 13
|
||||
return env0_0._enqueue(a0, {channels: a1});
|
||||
}
|
||||
|
||||
function _fun54675(a0, a1) { // fn#54675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:490, offset: 0x0136bcc7, size: 34 bytes, params: 3, frame: 13
|
||||
return env0_0._enqueue(a0, {thread_member_lists: a1});
|
||||
}
|
||||
|
||||
function _fun54687(a0, a1) { // fn#54687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7066:2235, offset: 0x0136c002, size: 30 bytes, params: 3, frame: 11
|
||||
env0_0._subscribed.add(a1);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,248 @@
|
||||
/* Metro module 6891; source: lib/guild/GuildThreadSubscriptions.tsx; dependencies: [6, 7, 1393, 2] */
|
||||
function _fun54722(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7069:6, offset: 0x0136ca80, size: 150 bytes, params: 8, frame: 18
|
||||
const _arrayLikeToArray_54725 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
let value = _fun54726();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('lib/guild/GuildThreadSubscriptions.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_54723(a0, a1) { // fn#54723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7069:120, offset: 0x0136cb16, size: 370 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun54724;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_54725(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_54725(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_54725(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun54724;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _fun54726() { // fn#54726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7069:1036, offset: 0x0136cc88, size: 193 bytes, params: 1, frame: 15
|
||||
return env0_3(GuildThreadSubscriptions, [{key: 'reset', value: function() {
|
||||
this._subscriptions = {};
|
||||
}}, {key: 'get', value: function(a0) {
|
||||
return this._get(a0).keys();
|
||||
}}, {key: 'getSubscribedThreadIds', value: value_54730}, {key: '_get', value: value_54731}, {key: 'clear',
|
||||
value: function(a0) {
|
||||
if (a0 in this._subscriptions) {
|
||||
delete this._subscriptions[a0];
|
||||
this._onChange(a0, []);
|
||||
}
|
||||
}}, {key: 'subscribe', value: value_54733}, {key: 'unsubscribe', value: function(a0, a1) {
|
||||
var r0;
|
||||
var property;
|
||||
var value;
|
||||
if (a0 in this._subscriptions) {
|
||||
property = this._subscriptions[a0];
|
||||
value = property.has(a1);
|
||||
if (value) {
|
||||
property.del(a1);
|
||||
this._onChange(a0, property.keys());
|
||||
r0 = true;
|
||||
} else {
|
||||
r0 = !!value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
return false;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function value_54730() { // fn#54730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7069:1319, offset: 0x0136cd65, size: 136 bytes, params: 1, frame: 21
|
||||
var r8;
|
||||
var r2;
|
||||
var propertyName;
|
||||
var propertyName2;
|
||||
var _createForOfIteratorHelperLoose_54723Binding;
|
||||
var _subscriptions2;
|
||||
var property;
|
||||
var keys;
|
||||
var value3;
|
||||
var value4;
|
||||
var done;
|
||||
var value5;
|
||||
var add;
|
||||
var value6;
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
const properties = Object.keys(this._subscriptions);
|
||||
const properties2 = 0;
|
||||
const properties3 = properties.length;
|
||||
if (properties !== undefined) {
|
||||
r8 = properties2;
|
||||
reducibleLoop1: while (true) {
|
||||
propertyName = properties[r8];
|
||||
propertyName2 = r8 + 1;
|
||||
if (propertyName === undefined) {
|
||||
break reducibleLoop1;
|
||||
}
|
||||
_createForOfIteratorHelperLoose_54723Binding = _createForOfIteratorHelperLoose_54723;
|
||||
_subscriptions2 = this._subscriptions;
|
||||
property = _subscriptions2[propertyName];
|
||||
keys = property.keys;
|
||||
value3 = _createForOfIteratorHelperLoose_54723Binding(Reflect.apply(keys, property, []));
|
||||
value4 = value3();
|
||||
done = value4.done;
|
||||
if (done) {
|
||||
r8 = propertyName2;
|
||||
continue reducibleLoop1;
|
||||
}
|
||||
r2 = value4;
|
||||
reducibleLoop3: while (true) {
|
||||
value5 = r2.value;
|
||||
add = set.add;
|
||||
Reflect.apply(add, set, [value5]);
|
||||
value6 = value3();
|
||||
done = value6.done;
|
||||
if (done) {
|
||||
r8 = propertyName2;
|
||||
continue reducibleLoop1;
|
||||
}
|
||||
r2 = value6;
|
||||
continue reducibleLoop3;
|
||||
}
|
||||
continue reducibleLoop1;
|
||||
}
|
||||
}
|
||||
return set;
|
||||
}
|
||||
|
||||
function value_54731(a0) { // fn#54731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7069:1520, offset: 0x0136cded, size: 83 bytes, params: 2, frame: 12
|
||||
var r0;
|
||||
var value;
|
||||
const property = this._subscriptions[a0];
|
||||
if (property != null) {
|
||||
r0 = property;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(1393) /* metro dependency 1393 */;
|
||||
value = new value({'max': 3, 'updateAgeOnGet': true});
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_54733(a0, a1, a2) { // fn#54733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7069:1757, offset: 0x0136ce71, size: 181 bytes, params: 4, frame: 17
|
||||
var r0;
|
||||
var set;
|
||||
var Date;
|
||||
let value = this._get(a0);
|
||||
if (value.has(a1)) {
|
||||
set = value.set;
|
||||
Date = global.Date;
|
||||
Reflect.apply(set, value, [a1, Date.now()]);
|
||||
value = false;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = a2 != null && value.has(a2);
|
||||
if (r0) {
|
||||
set = value.set;
|
||||
Date = global.Date;
|
||||
Reflect.apply(set, value, [a2, Date.now()]);
|
||||
}
|
||||
set = value.set;
|
||||
Date = global.Date;
|
||||
Reflect.apply(set, value, [a1, Date.now()]);
|
||||
this._subscriptions[a0] = value;
|
||||
this._onChange(a0, value.keys());
|
||||
value = true;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,190 @@
|
||||
/* Metro module 6902; source: lib/guild/subscribeGuildMembers.tsx; dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 22, 6903, 628, 1216, 2] */
|
||||
function _fun54904(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:6, offset: 0x01370aa8, size: 287 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const env0_3 = ['forwardedRef'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
const env0_5 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_6 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_7 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_8 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_9 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_10 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_11 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('lib/guild/subscribeGuildMembers.tsx');
|
||||
exports.default = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return _fun54909;
|
||||
};
|
||||
exports.MAX_GUILD_MEMBER_SUBSCRIPTIONS = 50;
|
||||
exports.useSubscribeGuildMembers = useSubscribeGuildMembers;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_54905() { // fn#54905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:205, offset: 0x01370bc7, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_54905_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function subscribeGuildMembers(a0) { // fn#54908, offset: 0x01370c25, size: 16 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return _fun54909;
|
||||
}
|
||||
|
||||
function useSubscribeGuildMembers(a0, a1) { // fn#54920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:1859, offset: 0x01370fd4, size: 55 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
env0_10.useEffect(_fun54921, [a0, a1]);
|
||||
}
|
||||
|
||||
function _fun54909(a0) { // fn#54909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:529, offset: 0x01370c35, size: 152 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
value = 'SubscribeGuildMembersContainer(' + (a0.displayName ?? a0.name ?? 'Component') + ')';
|
||||
const binding = env1_10;
|
||||
const Component = binding.Component;
|
||||
_fun54910(Component).displayName = value;
|
||||
const value4 = binding.forwardRef(_fun54919);
|
||||
value4.displayName = 'ForwardRef(' + value + ')';
|
||||
return value4;
|
||||
}
|
||||
|
||||
function _fun54921() { // fn#54921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:1911, offset: 0x0137100b, size: 57 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value.forEach(env0_0, _fun54922);
|
||||
return _fun54923;
|
||||
}
|
||||
|
||||
function _fun54910(a0) { // fn#54910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:681, offset: 0x01370ccd, size: 114 bytes, params: 2, frame: 16
|
||||
const closure = WrappedComponent_54911;
|
||||
env2_9(closure, a0);
|
||||
return env2_6(closure, [{key: 'componentDidUpdate', value: value_54913}, {key: 'componentWillUnmount',
|
||||
value: value_54916}, {key: 'render', value: value_54918}]);
|
||||
}
|
||||
|
||||
function _fun54919(a0, a1) { // fn#54919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:1714, offset: 0x01370fa4, size: 48 bytes, params: 3, frame: 14
|
||||
return ((Component) => <Component {...a0} {...{['forwardedRef']: a1}} />)(env0_1);
|
||||
}
|
||||
|
||||
function _fun54922(a0, a1) { // fn#54922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:1935, offset: 0x01371044, size: 150 bytes, params: 3, frame: 17
|
||||
var defaultImport;
|
||||
var captureMessage;
|
||||
var value4;
|
||||
const value = environment.__proto__.__proto__;
|
||||
if (!env2_12 && a0.length > 50) {
|
||||
defaultImport = importDefault(1216) /* metro dependency 1216: SentryUtilsNative */;
|
||||
captureMessage = defaultImport.captureMessage;
|
||||
value4 = environment.__proto__;
|
||||
Reflect.apply(captureMessage, defaultImport, ['SubscribeGuildMembers called with more than 50 userIds.',
|
||||
{extra: {count: a0.length, guildId: a1, reason: require}}]);
|
||||
}
|
||||
(require(6903) /* metro dependency 6903: GuildSubscriptionsActionCreators */).subscribeMembers(a1, a0);
|
||||
}
|
||||
|
||||
function _fun54923() { // fn#54923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:2127, offset: 0x013710da, size: 52 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value.forEach(env1_0, _fun54924);
|
||||
}
|
||||
|
||||
function WrappedComponent_54911(a0) { // fn#54911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:693, offset: 0x01370d3f, size: 171 bytes, params: 2, frame: 21
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
env3_5(this, WrappedComponent_54911);
|
||||
const items2 = [a0];
|
||||
const value3 = env3_8(WrappedComponent_54911);
|
||||
const value6 = env3_7(this, _isNativeReflectConstruct_54905() ? global.Reflect.construct(value3, items2,
|
||||
env3_8(this).constructor) : value3.apply(this, items2));
|
||||
const value8 = env2_0(a0);
|
||||
(importDefault(22) /* metro dependency 22 */).forEach(value8, _fun54912);
|
||||
value6._subscriptions = value8;
|
||||
return value6;
|
||||
}
|
||||
|
||||
function value_54913(a0) { // fn#54913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:1092, offset: 0x01370e17, size: 219 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
var r5;
|
||||
var value2;
|
||||
var value3;
|
||||
var value4;
|
||||
var defaultImport2;
|
||||
var defaultImport3;
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
if (!(importDefault(628) /* metro dependency 628: shallowEqual */)(this.props, a0)) {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
value3 = env2_0(this.props);
|
||||
value4 = this._subscriptions != null;
|
||||
if (value4) {
|
||||
defaultImport2 = importDefault(22) /* metro dependency 22 */;
|
||||
r5 = defaultImport2.isEqual(this._subscriptions, value3);
|
||||
} else {
|
||||
r5 = value4;
|
||||
}
|
||||
if (!r5) {
|
||||
if (this._subscriptions != null) {
|
||||
defaultImport3 = importDefault(22) /* metro dependency 22 */;
|
||||
defaultImport3.forEach(this._subscriptions, _fun54914);
|
||||
}
|
||||
(importDefault(22) /* metro dependency 22 */).forEach(value3, _fun54915);
|
||||
this._subscriptions = value3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_54916() { // fn#54916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:1443, offset: 0x01370f1f, size: 68 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
var value;
|
||||
if (this._subscriptions != null) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
value.forEach(this._subscriptions, _fun54917);
|
||||
}
|
||||
}
|
||||
|
||||
function value_54918() { // fn#54918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:1581, offset: 0x01370f63, size: 65 bytes, params: 1, frame: 15
|
||||
const props = this.props;
|
||||
return ((Component) => <Component ref={props.forwardedRef} {...env3_4(props, env3_3)} />)(env1_0);
|
||||
}
|
||||
|
||||
function _fun54924(a0, a1) { // fn#54924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:2151, offset: 0x0137110e, size: 45 bytes, params: 3, frame: 13
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return (require(6903) /* metro dependency 6903: GuildSubscriptionsActionCreators */).unsubscribeMembers(a1, a0);
|
||||
}
|
||||
|
||||
function _fun54912(a0, a1) { // fn#54912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:951, offset: 0x01370dea, size: 45 bytes, params: 3, frame: 13
|
||||
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
return (require(6903) /* metro dependency 6903: GuildSubscriptionsActionCreators */).subscribeMembers(a1, a0);
|
||||
}
|
||||
|
||||
function _fun54914(a0, a1) { // fn#54914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7080:1284, offset: 0x01370ef2, size: 45 bytes, params: 3, frame: 13
|
||||
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
return (require(6903) /* metro dependency 6903: GuildSubscriptionsActionCreators */).unsubscribeMembers(a1, a0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user