This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,11 +1,15 @@
/* Metro module 11659; source: modules/global_discovery_apps/AllowNonStaffToPreviewAppCollectionsExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun89373(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11845:6, offset: 0x0200bea8, size: 145 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'kind': 'user', 'name': '2025-01-allow-nonstaff-to-preview-app-collections',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_apps/AllowNonStaffToPreviewAppCollectionsExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/global_discovery_apps/AllowNonStaffToPreviewAppCollectionsExperiment.tsx');
exports.default = value;
}
global.__d(_fun89373, 11659, [1854, 2]) /* metro module 11659, dependencies: [1854, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,8 +1,10 @@
/* Metro module 669; source: modules/global_discovery_apps/GlobalDiscoveryAppsConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun8023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#8023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:719:6, offset: 0x00d32178, size: 266 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_apps/GlobalDiscoveryAppsConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/global_discovery_apps/GlobalDiscoveryAppsConstants.tsx');
exports.GLOBAL_DISCOVERY_APPS_FEATURED_CATEGORY_ID = 0;
exports.EMPTY_QUERY = '';
exports.MAX_PAGES = 100;
@@ -14,3 +16,4 @@ function _fun8023(global, require, importDefault, importAll, module, exports, de
STORE: 'store', PRIVACY: 'privacy'};
}
global.__d(_fun8023, 669, [2]) /* metro module 669, dependencies: [2] */;
@@ -1,11 +1,13 @@
/* Metro module 7085; source: modules/global_discovery_apps/applicationDirectoryAnalytics.tsx; dependencies: [1934, 3969, 661, 683, 2] */
import SelectedChannelStore from '../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import SelectedGuildStore from '../../stores/SelectedGuildStore.tsx'; /* Metro dependency 3969 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun56525(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7263:6, offset: 0x013ca90c, size: 150 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_apps/applicationDirectoryAnalytics.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/global_discovery_apps/applicationDirectoryAnalytics.tsx');
exports.trackAppDirectoryProfileEmbed = function(a0, a1) {
var defaultImport = importDefault(dependencyMap[3]);
var APP_DIRECTORY_PROFILE_EMBED_SENT = AnalyticEvents.APP_DIRECTORY_PROFILE_EMBED_SENT;
@@ -17,3 +19,5 @@ function _fun56525(global, require, importDefault, importAll, module, exports, d
};
}
global.__d(_fun56525, 7085, [1934, 3969, 661, 683,
2]) /* metro module 7085, dependencies: [1934, 3969, 661, 683, 2] */;
@@ -1,160 +1,200 @@
/* Metro module 6773; source: modules/global_discovery_apps/stores/ApplicationDirectoryApplicationsStore.tsx; dependencies: [6, 7, 15, 17, 18, 4235, 566, 694, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import ApplicationRecord from '../../../records/ApplicationRecord.tsx'; /* Metro dependency 4235 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun53360(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:6, offset: 0x01346d6f, size: 403 bytes, params: 8, frame: 21
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
const applicationRecord = importDefault(4235) /* metro dependency 4235: ApplicationRecord */;
object2 = {FETCHING: 0};
object2[0] = 'FETCHING';
object2.FETCHED = 1;
object2[1] = 'FETCHED';
object2.ERROR = 2;
object2[2] = 'ERROR';
object = {FETCHING: 0};
object[0] = 'FETCHING';
object.FETCHED = 1;
object[1] = 'FETCHED';
object.ERROR = 2;
object[2] = 'ERROR';
const env0_7 = {};
const env0_8 = {};
const Set = global.Set;
let set = new Set();
const env0_10 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
_fun53364(Store).displayName = 'ApplicationDirectoryApplicationsStore';
set = new set(importDefault(694) /* metro dependency 694: Dispatcher */,
{APPLICATION_DIRECTORY_FETCH_APPLICATION: APPLICATION_DIRECTORY_FETCH_APPLICATION,
APPLICATION_DIRECTORY_FETCH_APPLICATION_SUCCESS: APPLICATION_DIRECTORY_FETCH_APPLICATION_SUCCESS,
APPLICATION_DIRECTORY_FETCH_APPLICATION_FAILURE: APPLICATION_DIRECTORY_FETCH_APPLICATION_FAILURE});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_apps/stores/ApplicationDirectoryApplicationsStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/global_discovery_apps/stores/ApplicationDirectoryApplicationsStore.tsx');
exports.default = set;
exports.FetchState = object2;
}
function _isNativeReflectConstruct_53361() { // fn#53361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:158, offset: 0x01346f02, 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) {
exports.FetchState = object;
function _isNativeReflectConstruct_53361() { // fn#53361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:158, offset: 0x01346f02, 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_53361_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_53361_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun53364(a0) { // fn#53364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:487, offset: 0x01346f60, size: 262 bytes, params: 2, frame: 16
const closure = ApplicationDirectoryApplicationsStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'getApplication', value: value_53366}, {key: 'getApplicationRecord',
value: value_53367}, {key: 'getApplications', value: value_53368}, {key: 'getApplicationFetchState',
value: value_53369}, {key: 'getApplicationFetchStates', value: value_53370}, {key: 'isInvalidApplication',
value: value_53371}, {key: 'getInvalidApplicationIds', value: value_53372}, {key: 'isFetching',
value: value_53373}, {key: 'getApplicationLastFetchTime', value: value_53374}]);
}
function _fun53364(a0) { // fn#53364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:487, offset: 0x01346f60, size: 262 bytes, params: 2, frame: 16
const ApplicationDirectoryApplicationsStore2 = ApplicationDirectoryApplicationsStore;
Inherits(ApplicationDirectoryApplicationsStore2, a0);
return CreateClass(ApplicationDirectoryApplicationsStore2, [{key: 'getApplication', value: value_53366},
{key: 'getApplicationRecord', value: value_53367}, {key: 'getApplications', value: value_53368},
{key: 'getApplicationFetchState', value: value_53369}, {key: 'getApplicationFetchStates', value: value_53370},
{key: 'isInvalidApplication', value: value_53371}, {key: 'getInvalidApplicationIds', value: value_53372},
{key: 'isFetching', value: value_53373}, {key: 'getApplicationLastFetchTime', value: value_53374}]);
function ApplicationDirectoryApplicationsStore() { // fn#53365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:499, offset: 0x010a3f4a, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, ApplicationDirectoryApplicationsStore);
const value3 = env1_3(ApplicationDirectoryApplicationsStore);
return env1_2(this, _isNativeReflectConstruct_53361() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function APPLICATION_DIRECTORY_FETCH_APPLICATION({applicationId}) { // fn#53375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:1677, offset: 0x0134710a, size: 47 bytes, params: 2, frame: 13
const object2 = {};
copyDataProperties(object2, env0_8, applicationId);
const FETCHING = env0_6.FETCHING;
object2[applicationId] = FETCHING;
}
function value_53366(a0) { // fn#53366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:906, offset: 0x00e4b9e0, size: 26 bytes, params: 2, frame: 2
var value;
if (a0 != null) {
value = environment.__proto__;
return env1_7[a0];
}
}
function value_53367(a0) { // fn#53367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:977, offset: 0x01347066, size: 45 bytes, params: 2, frame: 12
if (a0 != null) {
var property = env1_7[a0];
if (property != null) {
return ApplicationRecord.createFromServer(property);
}
}
}
function value_53368() { // fn#53368, offset: 0x00fbd9cb, size: 9 bytes, params: 1, frame: 1
return env1_7;
}
function value_53369(a0) { // fn#53369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:1144, offset: 0x01347093, size: 26 bytes, params: 2, frame: 2
var value;
if (a0 != null) {
value = environment.__proto__;
return env1_8[a0];
}
}
function value_53370() { // fn#53370, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
return env1_8;
}
function value_53371(a0) { // fn#53371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:1276, offset: 0x013470ad, size: 31 bytes, params: 2, frame: 12
var r0;
let value = a0 != null;
if (value) {
value = environment.__proto__;
value = env1_9.has(a0);
r0 = value;
} else {
r0 = value;
}
return r0;
}
function value_53372() { // fn#53372, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
function value_53373(a0) { // fn#53373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:1399, offset: 0x013470cc, size: 36 bytes, params: 2, frame: 11
const applicationFetchState = this.getApplicationFetchState(a0);
const FETCHING = env1_6.FETCHING;
return applicationFetchState === FETCHING;
}
function value_53374(a0) { // fn#53374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:1507, offset: 0x013470f0, size: 26 bytes, params: 2, frame: 2
var value;
if (a0 != null) {
value = environment.__proto__;
return env1_10[a0];
}
}
function APPLICATION_DIRECTORY_FETCH_APPLICATION_SUCCESS({application}) { // fn#53376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:1813, offset: 0x01347139, size: 198 bytes, params: 2, frame: 15
var Set;
var set;
let object2 = {};
copyDataProperties(object2, env0_7, undefined);
let id = application.id;
object2[id] = application;
object2 = {};
copyDataProperties(object2, env0_8, undefined);
id = application.id;
const FETCHED = env0_6.FETCHED;
object2[id] = FETCHED;
const Date = global.Date;
const value2 = Date.now();
object2 = {};
copyDataProperties(object2, env0_10, value2);
object2[application.id] = value2;
let binding = env0_9;
if (binding.has(application.id)) {
binding = env0_9;
binding.delete(application.id);
Set = global.Set;
binding = env0_9;
set = new Set(binding);
}
}
function APPLICATION_DIRECTORY_FETCH_APPLICATION_FAILURE({applicationId, isInvalidApplication}) { // fn#53377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:2044, offset: 0x013471ff, size: 106 bytes, params: 2, frame: 14
var binding;
var Set;
var set;
const object2 = {};
copyDataProperties(object2, env0_8, undefined);
const ERROR = env0_6.ERROR;
object2[applicationId] = ERROR;
if (isInvalidApplication) {
binding = env0_9;
binding.add(applicationId);
Set = global.Set;
binding = env0_9;
set = new Set();
function APPLICATION_DIRECTORY_FETCH_APPLICATION({applicationId}) { // fn#53375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:1677, offset: 0x0134710a, size: 47 bytes, params: 2, frame: 13
const object = {};
copyDataProperties(object, env0_8, applicationId);
const FETCHING = env0_6.FETCHING;
object[applicationId] = FETCHING;
}
}
function value_53367(a0) { // fn#53367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:977, offset: 0x01347066, size: 45 bytes, params: 2, frame: 12
if (a0 != null) {
var property = env1_7[a0];
if (property != null) {
return ApplicationRecord.createFromServer(property);
function APPLICATION_DIRECTORY_FETCH_APPLICATION_SUCCESS({application}) { // fn#53376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:1813, offset: 0x01347139, size: 198 bytes, params: 2, frame: 15
var Set;
var set;
let object = {};
copyDataProperties(object, env0_7, undefined);
let id = application.id;
object[id] = application;
object = {};
copyDataProperties(object, env0_8, undefined);
id = application.id;
const FETCHED = env0_6.FETCHED;
object[id] = FETCHED;
const Date = global.Date;
const value2 = Date.now();
object = {};
copyDataProperties(object, env0_10, value2);
object[application.id] = value2;
let binding = env0_9;
if (binding.has(application.id)) {
binding = env0_9;
binding.delete(application.id);
Set = global.Set;
binding = env0_9;
set = new Set(binding);
}
}
}
function value_53371(a0) { // fn#53371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:1276, offset: 0x013470ad, size: 31 bytes, params: 2, frame: 12
var r0;
let value = a0 != null;
if (value) {
value = environment.__proto__;
value = env1_9.has(a0);
r0 = value;
} else {
r0 = value;
}
return r0;
}
function value_53373(a0) { // fn#53373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:1399, offset: 0x013470cc, size: 36 bytes, params: 2, frame: 11
const applicationFetchState = this.getApplicationFetchState(a0);
const FETCHING = env1_6.FETCHING;
return applicationFetchState === FETCHING;
}
function value_53374(a0) { // fn#53374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:1507, offset: 0x013470f0, size: 26 bytes, params: 2, frame: 2
var value;
if (a0 != null) {
value = environment.__proto__;
return env1_10[a0];
function APPLICATION_DIRECTORY_FETCH_APPLICATION_FAILURE({applicationId, isInvalidApplication}) { // fn#53377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6951:2044, offset: 0x013471ff, size: 106 bytes, params: 2, frame: 14
var binding;
var Set;
var set;
const object = {};
copyDataProperties(object, env0_8, undefined);
const ERROR = env0_6.ERROR;
object[applicationId] = ERROR;
if (isInvalidApplication) {
binding = env0_9;
binding.add(applicationId);
Set = global.Set;
binding = env0_9;
set = new Set();
}
}
}
global.__d(_fun53360, 6773, [6, 7, 15, 17, 18, 4235, 566, 694,
2]) /* metro module 6773, dependencies: [6, 7, 15, 17, 18, 4235, 566, 694, 2] */;
@@ -1,14 +1,17 @@
/* Metro module 11613; source: modules/global_discovery_apps/stores/ApplicationDirectoryCategoriesStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun89001(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11799:6, offset: 0x01ffbe0b, size: 281 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
let env0_5 = [];
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun89005(Store);
value.displayName = 'ApplicationDirectoryCategoriesStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
@@ -17,49 +20,71 @@ function _fun89001(global, require, importDefault, importAll, module, exports, d
var Date = global.Date;
env0_6 = Date.now();
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_apps/stores/ApplicationDirectoryCategoriesStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/global_discovery_apps/stores/ApplicationDirectoryCategoriesStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_89002() { // fn#89002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11799:148, offset: 0x01ffbf24, size: 98 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) {
function _isNativeReflectConstruct_89002() { // fn#89002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11799:148, offset: 0x01ffbf24, size: 98 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_89002_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_89002_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun89005(a0) { // fn#89005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11799:363, offset: 0x01ffbf86, size: 122 bytes, params: 2, frame: 16
const closure = ApplicationDirectoryCategoriesStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'getLastFetchTimeMs', value: value_89007}, {key: 'getCategories', value: value_89008},
{key: 'getCategory', value: value_89009}]);
}
function value_89009(a0) { // fn#89009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11799:872, offset: 0x01ffc000, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0;
return env1_5.find(_fun89010);
function _fun89005(a0) { // fn#89005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11799:363, offset: 0x01ffbf86, size: 122 bytes, params: 2, frame: 16
const ApplicationDirectoryCategoriesStore2 = ApplicationDirectoryCategoriesStore;
Inherits(ApplicationDirectoryCategoriesStore2, a0);
return CreateClass(ApplicationDirectoryCategoriesStore2, [{key: 'getLastFetchTimeMs', value: value_89007},
{key: 'getCategories', value: value_89008}, {key: 'getCategory', value: value_89009}]);
function ApplicationDirectoryCategoriesStore() { // fn#89006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11799:375, offset: 0x00e3db8d, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, ApplicationDirectoryCategoriesStore);
const value3 = env1_3(ApplicationDirectoryCategoriesStore);
return env1_2(this, _isNativeReflectConstruct_89002() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_89007() { // fn#89007, offset: 0x00c82288, size: 9 bytes, params: 1, frame: 1
return env1_6;
}
function value_89008() { // fn#89008, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
return env1_5;
}
function value_89009(a0) { // fn#89009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11799:872, offset: 0x01ffc000, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0;
return env1_5.find(_fun89010);
function _fun89010({id}) { // fn#89010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11799:899, offset: 0x00db0c48, size: 21 bytes, params: 2, frame: 2
return id === env0_0;
}
}
}
}
global.__d(_fun89001, 11613, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 11613, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
@@ -1,126 +1,138 @@
/* Metro module 11614; source: modules/global_discovery_apps/stores/ApplicationDirectoryCollectionsStore.tsx; dependencies: [6, 7, 15, 17, 18, 22, 566, 694, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00022 from '../../../by-id/module-00022.js'; /* Metro dependency 22 */
import Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun89012(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:6, offset: 0x01ffc04d, size: 382 bytes, params: 8, frame: 20
var object2;
const getKey_89016 = function({surface, activeState}) {
return 'surface:' + surface + ' activeState:' + activeState;
};
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 env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
object2 = {FETCHING: 0};
object2[0] = 'FETCHING';
object2.FETCHED = 1;
object2[1] = 'FETCHED';
object2.ERROR = 2;
object2[2] = 'ERROR';
object = {FETCHING: 0};
object[0] = 'FETCHING';
object.FETCHED = 1;
object[1] = 'FETCHED';
object.ERROR = 2;
object[2] = 'ERROR';
const env0_8 = [];
const env0_9 = {};
const env0_10 = {};
const env0_11 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun89017(Store);
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{APPLICATION_DIRECTORY_FETCH_COLLECTIONS: APPLICATION_DIRECTORY_FETCH_COLLECTIONS,
APPLICATION_DIRECTORY_FETCH_COLLECTIONS_SUCCESS: APPLICATION_DIRECTORY_FETCH_COLLECTIONS_SUCCESS,
APPLICATION_DIRECTORY_FETCH_COLLECTIONS_FAILURE: APPLICATION_DIRECTORY_FETCH_COLLECTIONS_FAILURE});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_apps/stores/ApplicationDirectoryCollectionsStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/global_discovery_apps/stores/ApplicationDirectoryCollectionsStore.tsx');
exports.default = value;
exports.FetchState = object2;
}
function _isNativeReflectConstruct_89013() { // fn#89013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:148, offset: 0x01ffc1cb, size: 98 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) {
exports.FetchState = object;
function _isNativeReflectConstruct_89013() { // fn#89013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:148, offset: 0x01ffc1cb, size: 98 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_89013_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_89013_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun89017(a0) { // fn#89017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:553, offset: 0x01ffc25e, size: 124 bytes, params: 2, frame: 16
const closure = ApplicationDirectoryCollectionsStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'getLastFetchTimeMs', value: value_89019}, {key: 'getFetchState', value: value_89020},
{key: 'getCollections', value: value_89021}]);
}
function _fun89017(a0) { // fn#89017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:553, offset: 0x01ffc25e, size: 124 bytes, params: 2, frame: 16
const ApplicationDirectoryCollectionsStore2 = ApplicationDirectoryCollectionsStore;
Inherits(ApplicationDirectoryCollectionsStore2, a0);
return CreateClass(ApplicationDirectoryCollectionsStore2, [{key: 'getLastFetchTimeMs', value: value_89019},
{key: 'getFetchState', value: value_89020}, {key: 'getCollections', value: value_89021}]);
function ApplicationDirectoryCollectionsStore() { // fn#89018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:565, offset: 0x00de700a, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, ApplicationDirectoryCollectionsStore);
const value3 = env1_5(ApplicationDirectoryCollectionsStore);
return env1_4(this, _isNativeReflectConstruct_89013() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function APPLICATION_DIRECTORY_FETCH_COLLECTIONS({surface, activeState}) { // fn#89022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:1367, offset: 0x01ffc37d, size: 75 bytes, params: 2, frame: 15
const object2 = {};
copyDataProperties(object2, env0_10, surface);
const key_89016 = getKey_89016({surface: surface, activeState: activeState});
const FETCHING = env0_7.FETCHING;
object2[key_89016] = FETCHING;
}
function value_89019({surface, activeState}) { // fn#89019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:971, offset: 0x01ffc2da, size: 51 bytes, params: 2, frame: 13
return env1_11[getKey_89016({surface: surface, activeState: activeState})];
}
function APPLICATION_DIRECTORY_FETCH_COLLECTIONS_SUCCESS({collections, surface, activeState}) { // fn#89023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:1543, offset: 0x01ffc3c8, size: 203 bytes, params: 2, frame: 16
var object2;
const key_89016 = getKey_89016({surface: surface, activeState: activeState});
const value3 = collections.map(_fun89024);
const value4 = (importDefault(22) /* metro dependency 22 */).sortBy(value3, ['position', 'id']);
object2 = {};
copyDataProperties(object2, env0_9, value3);
object2[key_89016] = value4;
object2 = {};
copyDataProperties(object2, env0_10, value3);
const FETCHED = env0_7.FETCHED;
object2[key_89016] = FETCHED;
const Date = global.Date;
const value5 = Date.now();
object2 = {};
copyDataProperties(object2, env0_11, value3);
object2[key_89016] = value5;
}
function value_89020({surface, activeState}) { // fn#89020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:1080, offset: 0x01ffc30d, size: 51 bytes, params: 2, frame: 13
return env1_10[getKey_89016({surface: surface, activeState: activeState})];
}
function APPLICATION_DIRECTORY_FETCH_COLLECTIONS_FAILURE({surface, activeState}) { // fn#89025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:2054, offset: 0x01ffc4d3, size: 75 bytes, params: 2, frame: 15
const object2 = {};
copyDataProperties(object2, env0_10, surface);
const key_89016 = getKey_89016({surface: surface, activeState: activeState});
const ERROR = env0_7.ERROR;
object2[key_89016] = ERROR;
}
function value_89021({surface, activeState}) { // fn#89021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:1190, offset: 0x01ffc340, size: 61 bytes, params: 2, frame: 14
return env1_9[getKey_89016({surface: surface, activeState: activeState})] ?? env1_8;
}
function value_89019({surface, activeState}) { // fn#89019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:971, offset: 0x01ffc2da, size: 51 bytes, params: 2, frame: 13
return env1_11[getKey_89016({surface: surface, activeState: activeState})];
}
}
function value_89020({surface, activeState}) { // fn#89020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:1080, offset: 0x01ffc30d, size: 51 bytes, params: 2, frame: 13
return env1_10[getKey_89016({surface: surface, activeState: activeState})];
}
function APPLICATION_DIRECTORY_FETCH_COLLECTIONS({surface, activeState}) { // fn#89022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:1367, offset: 0x01ffc37d, size: 75 bytes, params: 2, frame: 15
const object = {};
copyDataProperties(object, env0_10, surface);
const key_89016 = getKey_89016({surface: surface, activeState: activeState});
const FETCHING = env0_7.FETCHING;
object[key_89016] = FETCHING;
}
function value_89021({surface, activeState}) { // fn#89021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:1190, offset: 0x01ffc340, size: 61 bytes, params: 2, frame: 14
return env1_9[getKey_89016({surface: surface, activeState: activeState})] ?? env1_8;
}
function APPLICATION_DIRECTORY_FETCH_COLLECTIONS_SUCCESS({collections, surface, activeState}) { // fn#89023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:1543, offset: 0x01ffc3c8, size: 203 bytes, params: 2, frame: 16
const key_89016 = getKey_89016({surface: surface, activeState: activeState});
const value3 = collections.map(_fun89024);
const value4 = (Module00022).sortBy(value3, ['position', 'id']);
object = {};
copyDataProperties(object, env0_9, value3);
object[key_89016] = value4;
object = {};
copyDataProperties(object, env0_10, value3);
const FETCHED = env0_7.FETCHED;
object[key_89016] = FETCHED;
const Date = global.Date;
const value5 = Date.now();
object = {};
copyDataProperties(object, env0_11, value3);
object[key_89016] = value5;
function _fun89024(a0) { // fn#89024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:1761, offset: 0x01ffc493, size: 64 bytes, params: 2, frame: 14
const application_directory_collection_items = a0.application_directory_collection_items;
let value = environment.__proto__;
value = importDefault(22) /* metro dependency 22 */;
a0.application_directory_collection_items = value.sortBy(application_directory_collection_items, ['position', 'id']);
return a0;
}
}
function APPLICATION_DIRECTORY_FETCH_COLLECTIONS_FAILURE({surface, activeState}) { // fn#89025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:2054, offset: 0x01ffc4d3, size: 75 bytes, params: 2, frame: 15
const object = {};
copyDataProperties(object, env0_10, surface);
const key_89016 = getKey_89016({surface: surface, activeState: activeState});
const ERROR = env0_7.ERROR;
object[key_89016] = ERROR;
}
function _fun89024(a0) { // fn#89024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11800:1761, offset: 0x01ffc493, size: 64 bytes, params: 2, frame: 14
const application_directory_collection_items = a0.application_directory_collection_items;
let value = environment.__proto__;
value = importDefault(22) /* metro dependency 22 */;
a0.application_directory_collection_items = value.sortBy(application_directory_collection_items, ['position', 'id']);
return a0;
}
global.__d(_fun89012, 11614, [6, 7, 15, 17, 18, 22, 566, 694,
2]) /* metro module 11614, dependencies: [6, 7, 15, 17, 18, 22, 566, 694, 2] */;
@@ -1,142 +1,153 @@
/* Metro module 11609; source: modules/global_discovery_apps/stores/ApplicationDirectorySearchStore.tsx; dependencies: [6, 7, 15, 17, 18, 11610, 1393, 566, 694, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import Module01393 from '../../../by-id/module-01393.js'; /* Metro dependency 1393 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun88943(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:6, offset: 0x01ff9e23, size: 422 bytes, params: 8, frame: 21
var object2;
const env0_0 = require;
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 env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
object2 = {FETCHING: 0};
object2[0] = 'FETCHING';
object2.FETCHED = 1;
object2[1] = 'FETCHED';
object2.ERROR = 2;
object2[2] = 'ERROR';
let value = importDefault(1393) /* metro dependency 1393 */;
object = {FETCHING: 0};
object[0] = 'FETCHING';
object.FETCHED = 1;
object[1] = 'FETCHED';
object.ERROR = 2;
object[2] = 'ERROR';
let value = Module01393;
value = new value({max: 20});
const env0_9 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
_fun88948(Store).displayName = 'ApplicationDirectorySearchStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{APPLICATION_DIRECTORY_FETCH_SEARCH: APPLICATION_DIRECTORY_FETCH_SEARCH,
APPLICATION_DIRECTORY_FETCH_SEARCH_SUCCESS: APPLICATION_DIRECTORY_FETCH_SEARCH_SUCCESS,
APPLICATION_DIRECTORY_FETCH_SEARCH_FAILURE: APPLICATION_DIRECTORY_FETCH_SEARCH_FAILURE});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_apps/stores/ApplicationDirectorySearchStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/global_discovery_apps/stores/ApplicationDirectorySearchStore.tsx');
exports.default = value;
exports.FetchState = object2;
}
function _isNativeReflectConstruct_88944() { // fn#88944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:148, offset: 0x01ff9fc9, size: 98 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) {
exports.FetchState = object;
function _isNativeReflectConstruct_88944() { // fn#88944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:148, offset: 0x01ff9fc9, size: 98 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_88944_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_88944_isNativeReflectConstruct = function() {
return !!result;
})();
}
function getCacheKey({query, guildId, page, pageSize, categoryId, integrationType, minUserInstallCommandCount, excludeAppsWithCustomInstallUrl, excludeNonEmbeddedApps, excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand, source}) { // fn#88947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:446, offset: 0x01ffa02b, size: 226 bytes, params: 2, frame: 51
return "query:'" + query + "' guildId:" + guildId + ' page:' + page + ' pageSize:' + pageSize + ' categoryId:' + categoryId + ' integrationType:' + integrationType + ' minUserInstallCommandCount:' + minUserInstallCommandCount + ' excludeAppsWithCustomInstallUrl:' + excludeAppsWithCustomInstallUrl + ' excludeNonEmbeddedApps:' + excludeNonEmbeddedApps + ' excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:' + excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand + ' source:' + (source !== undefined ? source : (require(11610) /* metro dependency 11610: SearchAppsRequestSource */).SearchAppsRequestSource.APP_DIRECTORY);
}
function getCacheKey({query, guildId, page, pageSize, categoryId, integrationType, minUserInstallCommandCount, excludeAppsWithCustomInstallUrl, excludeNonEmbeddedApps, excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand, source}) { // fn#88947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:446, offset: 0x01ffa02b, size: 226 bytes, params: 2, frame: 51
return "query:'" + query + "' guildId:" + guildId + ' page:' + page + ' pageSize:' + pageSize + ' categoryId:' + categoryId + ' integrationType:' + integrationType + ' minUserInstallCommandCount:' + minUserInstallCommandCount + ' excludeAppsWithCustomInstallUrl:' + excludeAppsWithCustomInstallUrl + ' excludeNonEmbeddedApps:' + excludeNonEmbeddedApps + ' excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:' + excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand + ' source:' + (source !== undefined ? source : (require(11610) /* metro dependency 11610: SearchAppsRequestSource */).SearchAppsRequestSource.APP_DIRECTORY);
}
function _fun88948(a0) { // fn#88948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:1039, offset: 0x01ffa10d, size: 97 bytes, params: 2, frame: 16
const closure = ApplicationDirectorySearchStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'getSearchResults', value: value_88950}, {key: 'getFetchState', value: value_88951}]);
}
function _fun88948(a0) { // fn#88948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:1039, offset: 0x01ffa10d, size: 97 bytes, params: 2, frame: 16
const ApplicationDirectorySearchStore2 = ApplicationDirectorySearchStore;
Inherits(ApplicationDirectorySearchStore2, a0);
return CreateClass(ApplicationDirectorySearchStore2, [{key: 'getSearchResults', value: value_88950},
{key: 'getFetchState', value: value_88951}]);
function ApplicationDirectorySearchStore() { // fn#88949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:1051, offset: 0x00ec62ac, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, ApplicationDirectorySearchStore);
const value3 = env1_5(ApplicationDirectorySearchStore);
return env1_4(this, _isNativeReflectConstruct_88944() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function APPLICATION_DIRECTORY_FETCH_SEARCH({query, guildId, page, pageSize, categoryId, integrationType, minUserInstallCommandCount, excludeAppsWithCustomInstallUrl, excludeNonEmbeddedApps, excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand, source}) { // fn#88952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:2557, offset: 0x01ffa298, size: 170 bytes, params: 2, frame: 23
var object2;
const cacheKey = getCacheKey({query: query, guildId: guildId, page: page, pageSize: pageSize,
categoryId: categoryId, integrationType: integrationType,
minUserInstallCommandCount: minUserInstallCommandCount,
excludeAppsWithCustomInstallUrl: excludeAppsWithCustomInstallUrl,
excludeNonEmbeddedApps: excludeNonEmbeddedApps,
excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand: excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand,
source: source});
object2 = {};
copyDataProperties(object2, env0_9, query);
const FETCHING = env0_7.FETCHING;
object2[cacheKey] = FETCHING;
}
function value_88950({query, guildId, page, pageSize, categoryId, integrationType, minUserInstallCommandCount, excludeAppsWithCustomInstallUrl, excludeNonEmbeddedApps, excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand, source}) { // fn#88950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:1430, offset: 0x01ffa16e, size: 152 bytes, params: 2, frame: 22
return env1_8.get(getCacheKey({query: query, guildId: guildId, page: page, pageSize: pageSize,
categoryId: categoryId, integrationType: integrationType,
minUserInstallCommandCount: minUserInstallCommandCount,
excludeAppsWithCustomInstallUrl: excludeAppsWithCustomInstallUrl,
excludeNonEmbeddedApps: excludeNonEmbeddedApps,
excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand: excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand,
source: source}));
}
function APPLICATION_DIRECTORY_FETCH_SEARCH_SUCCESS({query, guildId, page, pageSize, categoryId, result, integrationType, minUserInstallCommandCount, excludeAppsWithCustomInstallUrl, excludeNonEmbeddedApps, excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand, source}) { // fn#88953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:3116, offset: 0x01ffa342, size: 222 bytes, params: 2, frame: 24
var object2;
const cacheKey = getCacheKey({query: query, guildId: guildId, page: page, pageSize: pageSize,
categoryId: categoryId, integrationType: integrationType,
minUserInstallCommandCount: minUserInstallCommandCount,
excludeAppsWithCustomInstallUrl: excludeAppsWithCustomInstallUrl,
excludeNonEmbeddedApps: excludeNonEmbeddedApps,
excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand: excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand,
source: source});
const binding = env0_8;
const set = binding.set;
object2 = {};
const Date = global.Date;
object2.lastFetchTimeMs = Date.now();
copyDataProperties(object2, result, query);
Reflect.apply(set, binding, [cacheKey, object2]);
object2 = {};
copyDataProperties(object2, env0_9, query);
const FETCHED = env0_7.FETCHED;
object2[cacheKey] = FETCHED;
}
function value_88951({query, guildId, page, pageSize, categoryId, integrationType, minUserInstallCommandCount, excludeAppsWithCustomInstallUrl, excludeNonEmbeddedApps, excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand, source}) { // fn#88951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:1948, offset: 0x01ffa206, size: 146 bytes, params: 2, frame: 22
return env1_9[getCacheKey({query: query, guildId: guildId, page: page, pageSize: pageSize, categoryId: categoryId,
integrationType: integrationType, minUserInstallCommandCount: minUserInstallCommandCount,
excludeAppsWithCustomInstallUrl: excludeAppsWithCustomInstallUrl,
excludeNonEmbeddedApps: excludeNonEmbeddedApps,
excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand: excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand,
source: source})];
}
function APPLICATION_DIRECTORY_FETCH_SEARCH_FAILURE({query, guildId, page, pageSize, categoryId, integrationType, minUserInstallCommandCount, excludeAppsWithCustomInstallUrl, excludeNonEmbeddedApps, excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand, source}) { // fn#88954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:3733, offset: 0x01ffa420, size: 170 bytes, params: 2, frame: 23
var object2;
const cacheKey = getCacheKey({query: query, guildId: guildId, page: page, pageSize: pageSize,
categoryId: categoryId, integrationType: integrationType,
minUserInstallCommandCount: minUserInstallCommandCount,
excludeAppsWithCustomInstallUrl: excludeAppsWithCustomInstallUrl,
excludeNonEmbeddedApps: excludeNonEmbeddedApps,
excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand: excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand,
source: source});
object2 = {};
copyDataProperties(object2, env0_9, query);
const ERROR = env0_7.ERROR;
object2[cacheKey] = ERROR;
}
}
function value_88950({query, guildId, page, pageSize, categoryId, integrationType, minUserInstallCommandCount, excludeAppsWithCustomInstallUrl, excludeNonEmbeddedApps, excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand, source}) { // fn#88950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:1430, offset: 0x01ffa16e, size: 152 bytes, params: 2, frame: 22
return env1_8.get(getCacheKey({query: query, guildId: guildId, page: page, pageSize: pageSize,
categoryId: categoryId, integrationType: integrationType,
minUserInstallCommandCount: minUserInstallCommandCount,
excludeAppsWithCustomInstallUrl: excludeAppsWithCustomInstallUrl,
excludeNonEmbeddedApps: excludeNonEmbeddedApps,
excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand: excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand,
source: source}));
}
function APPLICATION_DIRECTORY_FETCH_SEARCH({query, guildId, page, pageSize, categoryId, integrationType, minUserInstallCommandCount, excludeAppsWithCustomInstallUrl, excludeNonEmbeddedApps, excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand, source}) { // fn#88952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:2557, offset: 0x01ffa298, size: 170 bytes, params: 2, frame: 23
const cacheKey = getCacheKey({query: query, guildId: guildId, page: page, pageSize: pageSize,
categoryId: categoryId, integrationType: integrationType,
minUserInstallCommandCount: minUserInstallCommandCount,
excludeAppsWithCustomInstallUrl: excludeAppsWithCustomInstallUrl,
excludeNonEmbeddedApps: excludeNonEmbeddedApps,
excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand: excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand,
source: source});
object = {};
copyDataProperties(object, env0_9, query);
const FETCHING = env0_7.FETCHING;
object[cacheKey] = FETCHING;
}
function APPLICATION_DIRECTORY_FETCH_SEARCH_SUCCESS({query, guildId, page, pageSize, categoryId, result, integrationType, minUserInstallCommandCount, excludeAppsWithCustomInstallUrl, excludeNonEmbeddedApps, excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand, source}) { // fn#88953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:3116, offset: 0x01ffa342, size: 222 bytes, params: 2, frame: 24
const cacheKey = getCacheKey({query: query, guildId: guildId, page: page, pageSize: pageSize,
categoryId: categoryId, integrationType: integrationType,
minUserInstallCommandCount: minUserInstallCommandCount,
excludeAppsWithCustomInstallUrl: excludeAppsWithCustomInstallUrl,
excludeNonEmbeddedApps: excludeNonEmbeddedApps,
excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand: excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand,
source: source});
const binding = env0_8;
const set = binding.set;
object = {};
const Date = global.Date;
object.lastFetchTimeMs = Date.now();
copyDataProperties(object, result, query);
Reflect.apply(set, binding, [cacheKey, object]);
object = {};
copyDataProperties(object, env0_9, query);
const FETCHED = env0_7.FETCHED;
object[cacheKey] = FETCHED;
}
function APPLICATION_DIRECTORY_FETCH_SEARCH_FAILURE({query, guildId, page, pageSize, categoryId, integrationType, minUserInstallCommandCount, excludeAppsWithCustomInstallUrl, excludeNonEmbeddedApps, excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand, source}) { // fn#88954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:3733, offset: 0x01ffa420, size: 170 bytes, params: 2, frame: 23
const cacheKey = getCacheKey({query: query, guildId: guildId, page: page, pageSize: pageSize,
categoryId: categoryId, integrationType: integrationType,
minUserInstallCommandCount: minUserInstallCommandCount,
excludeAppsWithCustomInstallUrl: excludeAppsWithCustomInstallUrl,
excludeNonEmbeddedApps: excludeNonEmbeddedApps,
excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand: excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand,
source: source});
object = {};
copyDataProperties(object, env0_9, query);
const ERROR = env0_7.ERROR;
object[cacheKey] = ERROR;
}
function value_88951({query, guildId, page, pageSize, categoryId, integrationType, minUserInstallCommandCount, excludeAppsWithCustomInstallUrl, excludeNonEmbeddedApps, excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand, source}) { // fn#88951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11795:1948, offset: 0x01ffa206, size: 146 bytes, params: 2, frame: 22
return env1_9[getCacheKey({query: query, guildId: guildId, page: page, pageSize: pageSize, categoryId: categoryId,
integrationType: integrationType, minUserInstallCommandCount: minUserInstallCommandCount,
excludeAppsWithCustomInstallUrl: excludeAppsWithCustomInstallUrl,
excludeNonEmbeddedApps: excludeNonEmbeddedApps,
excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand: excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand,
source: source})];
}
global.__d(_fun88943, 11609, [6, 7, 15, 17, 18, 11610, 1393, 566, 694,
2]) /* metro module 11609, dependencies: [6, 7, 15, 17, 18, 11610, 1393, 566, 694, 2] */;
@@ -1,125 +1,135 @@
/* Metro module 11615; source: modules/global_discovery_apps/stores/ApplicationDirectorySimilarApplicationsStore.tsx; dependencies: [6, 7, 15, 17, 18, 1393, 566, 694, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import Module01393 from '../../../by-id/module-01393.js'; /* Metro dependency 1393 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun89026(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:6, offset: 0x01ffc51e, size: 428 bytes, params: 8, frame: 21
var object2;
const getCacheKey_89030 = function({applicationId, guildId, page}) {
return 'applicationId:' + applicationId + ' guildId:' + guildId + ' page:' + page;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
object2 = {NOT_FETCHED: 0};
object2[0] = 'NOT_FETCHED';
object2.FETCHING = 1;
object2[1] = 'FETCHING';
object2.FETCHED = 2;
object2[2] = 'FETCHED';
object2.ERROR = 3;
object2[3] = 'ERROR';
let value = importDefault(1393) /* metro dependency 1393 */;
object = {NOT_FETCHED: 0};
object[0] = 'NOT_FETCHED';
object.FETCHING = 1;
object[1] = 'FETCHING';
object.FETCHED = 2;
object[2] = 'FETCHED';
object.ERROR = 3;
object[3] = 'ERROR';
let value = Module01393;
value = new value({max: 20});
const env0_7 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
_fun89031(Store).displayName = 'ApplicationDirectorySimilarApplicationsStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{APPLICATION_DIRECTORY_FETCH_SIMILAR_APPLICATIONS: APPLICATION_DIRECTORY_FETCH_SIMILAR_APPLICATIONS,
APPLICATION_DIRECTORY_FETCH_SIMILAR_APPLICATIONS_SUCCESS: APPLICATION_DIRECTORY_FETCH_SIMILAR_APPLICATIONS_SUCCESS,
APPLICATION_DIRECTORY_FETCH_SIMILAR_APPLICATIONS_FAILURE: APPLICATION_DIRECTORY_FETCH_SIMILAR_APPLICATIONS_FAILURE});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_apps/stores/ApplicationDirectorySimilarApplicationsStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/global_discovery_apps/stores/ApplicationDirectorySimilarApplicationsStore.tsx');
exports.default = value;
exports.FetchState = object2;
}
function _isNativeReflectConstruct_89027() { // fn#89027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:148, offset: 0x01ffc6ca, size: 98 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) {
exports.FetchState = object;
function _isNativeReflectConstruct_89027() { // fn#89027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:148, offset: 0x01ffc6ca, size: 98 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_89027_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_89027_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun89031(a0) { // fn#89031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:626, offset: 0x01ffc764, size: 97 bytes, params: 2, frame: 16
const closure = ApplicationDirectorySimilarApplicationsStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'getSimilarApplications', value: value_89033}, {key: 'getFetchState',
value: value_89034}]);
}
function _fun89031(a0) { // fn#89031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:626, offset: 0x01ffc764, size: 97 bytes, params: 2, frame: 16
const ApplicationDirectorySimilarApplicationsStore2 = ApplicationDirectorySimilarApplicationsStore;
Inherits(ApplicationDirectorySimilarApplicationsStore2, a0);
return CreateClass(ApplicationDirectorySimilarApplicationsStore2, [{key: 'getSimilarApplications', value: value_89033},
{key: 'getFetchState', value: value_89034}]);
function ApplicationDirectorySimilarApplicationsStore() { // fn#89032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:638, offset: 0x00e4046a, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, ApplicationDirectorySimilarApplicationsStore);
const value3 = env1_3(ApplicationDirectorySimilarApplicationsStore);
return env1_2(this, _isNativeReflectConstruct_89027() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function APPLICATION_DIRECTORY_FETCH_SIMILAR_APPLICATIONS({applicationId, guildId, page}) { // fn#89035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:1520, offset: 0x01ffc853, size: 82 bytes, params: 2, frame: 15
var object2;
const cacheKey_89030 = getCacheKey_89030({applicationId: applicationId, guildId: guildId, page: page});
object2 = {};
copyDataProperties(object2, env0_7, applicationId);
const FETCHING = env0_5.FETCHING;
object2[cacheKey_89030] = FETCHING;
}
function value_89033({applicationId, guildId, page}) { // fn#89033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:1088, offset: 0x01ffc7c5, size: 74 bytes, params: 2, frame: 14
var value;
if (applicationId != null) {
value = environment.__proto__;
return env1_6.get(getCacheKey_89030({applicationId: applicationId, guildId: guildId, page: page}));
}
}
function APPLICATION_DIRECTORY_FETCH_SIMILAR_APPLICATIONS_SUCCESS({applicationId, guildId, similarApplications, loadId, page, totalPages}) { // fn#89036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:1732, offset: 0x01ffc8a5, size: 159 bytes, params: 2, frame: 21
var object2;
const cacheKey_89030 = getCacheKey_89030({applicationId: applicationId, guildId: guildId, page: page});
const binding = env0_6;
const set = binding.set;
object2 = {};
const Date = global.Date;
object2.lastFetchTimeMs = Date.now();
object2.applications = similarApplications;
object2.loadId = loadId;
object2.page = page;
object2.totalPages = totalPages;
Reflect.apply(set, binding, [cacheKey_89030, object2]);
object2 = {};
copyDataProperties(object2, env0_7, Date);
const FETCHED = env0_5.FETCHED;
object2[cacheKey_89030] = FETCHED;
}
function value_89034({applicationId, guildId, page}) { // fn#89034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:1245, offset: 0x01ffc80f, size: 68 bytes, params: 2, frame: 14
var value;
if (applicationId != null) {
value = environment.__proto__;
return env1_7[getCacheKey_89030({applicationId: applicationId, guildId: guildId, page: page})];
}
}
function APPLICATION_DIRECTORY_FETCH_SIMILAR_APPLICATIONS_FAILURE({applicationId, guildId, page}) { // fn#89037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:2076, offset: 0x01ffc944, size: 82 bytes, params: 2, frame: 15
var object2;
const cacheKey_89030 = getCacheKey_89030({applicationId: applicationId, guildId: guildId, page: page});
object2 = {};
copyDataProperties(object2, env0_7, applicationId);
const ERROR = env0_5.ERROR;
object2[cacheKey_89030] = ERROR;
}
function value_89033({applicationId, guildId, page}) { // fn#89033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:1088, offset: 0x01ffc7c5, size: 74 bytes, params: 2, frame: 14
var value;
if (applicationId != null) {
value = environment.__proto__;
return env1_6.get(getCacheKey_89030({applicationId: applicationId, guildId: guildId, page: page}));
}
}
function value_89034({applicationId, guildId, page}) { // fn#89034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:1245, offset: 0x01ffc80f, size: 68 bytes, params: 2, frame: 14
var value;
if (applicationId != null) {
value = environment.__proto__;
return env1_7[getCacheKey_89030({applicationId: applicationId, guildId: guildId, page: page})];
function APPLICATION_DIRECTORY_FETCH_SIMILAR_APPLICATIONS({applicationId, guildId, page}) { // fn#89035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:1520, offset: 0x01ffc853, size: 82 bytes, params: 2, frame: 15
const cacheKey_89030 = getCacheKey_89030({applicationId: applicationId, guildId: guildId, page: page});
object = {};
copyDataProperties(object, env0_7, applicationId);
const FETCHING = env0_5.FETCHING;
object[cacheKey_89030] = FETCHING;
}
function APPLICATION_DIRECTORY_FETCH_SIMILAR_APPLICATIONS_SUCCESS({applicationId, guildId, similarApplications, loadId, page, totalPages}) { // fn#89036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:1732, offset: 0x01ffc8a5, size: 159 bytes, params: 2, frame: 21
const cacheKey_89030 = getCacheKey_89030({applicationId: applicationId, guildId: guildId, page: page});
const binding = env0_6;
const set = binding.set;
object = {};
const Date = global.Date;
object.lastFetchTimeMs = Date.now();
object.applications = similarApplications;
object.loadId = loadId;
object.page = page;
object.totalPages = totalPages;
Reflect.apply(set, binding, [cacheKey_89030, object]);
object = {};
copyDataProperties(object, env0_7, Date);
const FETCHED = env0_5.FETCHED;
object[cacheKey_89030] = FETCHED;
}
function APPLICATION_DIRECTORY_FETCH_SIMILAR_APPLICATIONS_FAILURE({applicationId, guildId, page}) { // fn#89037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11801:2076, offset: 0x01ffc944, size: 82 bytes, params: 2, frame: 15
const cacheKey_89030 = getCacheKey_89030({applicationId: applicationId, guildId: guildId, page: page});
object = {};
copyDataProperties(object, env0_7, applicationId);
const ERROR = env0_5.ERROR;
object[cacheKey_89030] = ERROR;
}
}
global.__d(_fun89026, 11615, [6, 7, 15, 17, 18, 1393, 566, 694,
2]) /* metro module 11615, dependencies: [6, 7, 15, 17, 18, 1393, 566, 694, 2] */;
@@ -1,6 +1,13 @@
/* Metro module 11616; source: modules/global_discovery_apps/stores/MyGuildApplicationsStore.tsx; dependencies: [6, 7, 15, 17, 18, 672, 566, 694, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun89038(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:6, offset: 0x01ffc996, size: 483 bytes, params: 8, frame: 21
var object3;
const _arrayLikeToArray_89044 = function(a0, a1) {
var r0;
var r1;
@@ -46,24 +53,19 @@ function _fun89038(global, require, importDefault, importAll, module, exports, d
};
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 env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
object3 = {NOT_FETCHED: 0};
object3[0] = 'NOT_FETCHED';
object3.FETCHING = 1;
object3[1] = 'FETCHING';
object3.FETCHED = 2;
object3[2] = 'FETCHED';
object3.ERROR = 3;
object3[3] = 'ERROR';
const object4 = {'applicationIdToGuildIds': null, 'lastFetchTimeMs': null, 'nextFetchRetryTimeMs': null};
object4.applicationIdToGuildIds = {};
const NOT_FETCHED = object3.NOT_FETCHED;
object4.fetchState = NOT_FETCHED;
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
object = {NOT_FETCHED: 0};
object[0] = 'NOT_FETCHED';
object.FETCHING = 1;
object[1] = 'FETCHING';
object.FETCHED = 2;
object[2] = 'FETCHED';
object.ERROR = 3;
object[3] = 'ERROR';
const object2 = {'applicationIdToGuildIds': null, 'lastFetchTimeMs': null, 'nextFetchRetryTimeMs': null};
object2.applicationIdToGuildIds = {};
const NOT_FETCHED = object.NOT_FETCHED;
object2.fetchState = NOT_FETCHED;
const PersistedStore = (Flux).PersistedStore;
let value = _fun89046(PersistedStore);
value.displayName = 'MyGuildApplicationsStore';
value.persistKey = 'MyGuildApplicationsStore';
@@ -72,291 +74,311 @@ function _fun89038(global, require, importDefault, importAll, module, exports, d
FETCH_INTEGRATION_APPLICATION_IDS_FOR_MY_GUILDS_SUCCESS: FETCH_INTEGRATION_APPLICATION_IDS_FOR_MY_GUILDS_SUCCESS,
FETCH_INTEGRATION_APPLICATION_IDS_FOR_MY_GUILDS_FAILURE: FETCH_INTEGRATION_APPLICATION_IDS_FOR_MY_GUILDS_FAILURE,
INTEGRATION_CREATE: INTEGRATION_CREATE, INTEGRATION_DELETE: INTEGRATION_DELETE});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_apps/stores/MyGuildApplicationsStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/global_discovery_apps/stores/MyGuildApplicationsStore.tsx');
exports.default = value;
exports.FetchState = object3;
}
function _isNativeReflectConstruct_89039() { // fn#89039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:150, offset: 0x01ffcb79, size: 98 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_89039_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _createForOfIteratorHelperLoose_89042(a0, a1) { // fn#89042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:343, offset: 0x01ffcbdb, size: 372 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) {
exports.FetchState = object;
function _isNativeReflectConstruct_89039() { // fn#89039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:150, offset: 0x01ffcb79, size: 98 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 _fun89043;
return (_isNativeReflectConstruct_89039_isNativeReflectConstruct = function() {
return !!result;
})();
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_89044(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') {
function _createForOfIteratorHelperLoose_89042(a0, a1) { // fn#89042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:343, offset: 0x01ffcbdb, size: 372 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 _fun89043;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_89044(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
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_89044(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_89044(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun89043;
}
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 _fun89043() { // fn#89043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:914, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
return _fun89043;
}
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 addToApplicationIdToGuildIds({applicationId, guildId}) { // fn#89045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:1494, offset: 0x01ffcd4f, size: 162 bytes, params: 2, frame: 14
var Set;
var value2;
var set;
let applicationIdToGuildIds = env0_8.applicationIdToGuildIds;
if (applicationIdToGuildIds[applicationId] == null) {
}
function addToApplicationIdToGuildIds({applicationId, guildId}) { // fn#89045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:1494, offset: 0x01ffcd4f, size: 162 bytes, params: 2, frame: 14
var Set;
var value2;
var set;
let applicationIdToGuildIds = env0_8.applicationIdToGuildIds;
if (applicationIdToGuildIds[applicationId] == null) {
applicationIdToGuildIds = env0_8.applicationIdToGuildIds;
Set = global.Set;
value2 = Object.create(Set.prototype, {constructor: {value: Set}});
set = new Set();
applicationIdToGuildIds[applicationId] = set instanceof Object ? set : value2;
}
env0_8.applicationIdToGuildIds[applicationId].add(guildId);
applicationIdToGuildIds = env0_8.applicationIdToGuildIds;
Set = global.Set;
value2 = Object.create(Set.prototype, {constructor: {value: Set}});
set = new Set();
applicationIdToGuildIds[applicationId] = set instanceof Object ? set : value2;
applicationIdToGuildIds[applicationId] = new Set(env0_8.applicationIdToGuildIds[applicationId]);
}
env0_8.applicationIdToGuildIds[applicationId].add(guildId);
applicationIdToGuildIds = env0_8.applicationIdToGuildIds;
Set = global.Set;
applicationIdToGuildIds[applicationId] = new Set(env0_8.applicationIdToGuildIds[applicationId]);
}
function _fun89046(a0) { // fn#89046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:1745, offset: 0x01ffcdf1, size: 201 bytes, params: 2, frame: 16
const closure = MyGuildApplicationsStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: value_89048}, {key: 'getState', value: value_89049},
{key: 'getGuildIdsForApplication', value: value_89050}, {key: 'getLastFetchTimeMs', value: value_89051},
{key: 'getNextFetchRetryTimeMs', value: value_89052}, {key: 'getFetchState', value: value_89053}]);
}
function _fun89046(a0) { // fn#89046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:1745, offset: 0x01ffcdf1, size: 201 bytes, params: 2, frame: 16
const MyGuildApplicationsStore2 = MyGuildApplicationsStore;
Inherits(MyGuildApplicationsStore2, a0);
return CreateClass(MyGuildApplicationsStore2, [{key: 'initialize', value: value_89048}, {key: 'getState',
value: value_89049}, {key: 'getGuildIdsForApplication', value: value_89050}, {key: 'getLastFetchTimeMs',
value: value_89051}, {key: 'getNextFetchRetryTimeMs', value: value_89052}, {key: 'getFetchState',
value: value_89053}]);
function MyGuildApplicationsStore() { // fn#89047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:1757, offset: 0x01081bdc, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, MyGuildApplicationsStore);
const value3 = env1_5(MyGuildApplicationsStore);
return env1_4(this, _isNativeReflectConstruct_89039() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function LOGOUT_89054() { // fn#89054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:2824, offset: 0x01ffcf9a, size: 61 bytes, params: 1, frame: 3
let binding = env0_8;
binding.applicationIdToGuildIds = {};
env0_8.lastFetchTimeMs = null;
env0_8.nextFetchRetryTimeMs = null;
binding = env0_8;
const NOT_FETCHED = env0_7.NOT_FETCHED;
binding.fetchState = NOT_FETCHED;
}
function FETCH_INTEGRATION_APPLICATION_IDS_FOR_MY_GUILDS() { // fn#89055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:3004, offset: 0x01ffcfd7, size: 27 bytes, params: 1, frame: 2
const binding = env0_8;
const FETCHING = env0_7.FETCHING;
binding.fetchState = FETCHING;
}
function FETCH_INTEGRATION_APPLICATION_IDS_FOR_MY_GUILDS_SUCCESS({guildIdToApplicationIds}) { // fn#89056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:3125, offset: 0x01ffcff2, size: 176 bytes, params: 2, frame: 22
var r8;
var r2;
var propertyName;
var propertyName2;
var value2;
var value3;
var done;
var addToApplicationIdToGuildIdsBinding;
var value4;
var value5;
let binding = env0_8;
const FETCHED = env0_7.FETCHED;
binding.fetchState = FETCHED;
binding = env0_8;
const Date = global.Date;
binding.lastFetchTimeMs = Date.now();
env0_8.applicationIdToGuildIds = {};
env0_8.nextFetchRetryTimeMs = null;
const properties = Object.keys(guildIdToApplicationIds);
const properties3 = properties.length;
if (properties !== undefined) {
r8 = 0;
reducibleLoop1: while (true) {
propertyName = properties[r8];
propertyName2 = r8 + 1;
if (propertyName === undefined) {
break reducibleLoop1;
function value_89048(a0) { // fn#89048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:2095, offset: 0x01ffceba, size: 147 bytes, params: 2, frame: 21
var value;
var binding;
var propertyName;
var applicationIdToGuildIds2;
var Set;
var applicationIdToGuildIds3;
var property;
var prototype;
var value2;
var set;
var value3;
if (a0 != null) {
value = environment.__proto__;
binding = env1_8;
binding.lastFetchTimeMs = a0.lastFetchTimeMs;
binding = env1_8;
binding.nextFetchRetryTimeMs = a0.nextFetchRetryTimeMs;
binding = env1_8;
binding.fetchState = a0.fetchState;
for (propertyName in a0.applicationIdToGuildIds) {
applicationIdToGuildIds2 = env1_8.applicationIdToGuildIds;
Set = global.Set;
applicationIdToGuildIds3 = a0.applicationIdToGuildIds;
property = applicationIdToGuildIds3[propertyName];
prototype = Set.prototype;
value2 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value3 = set instanceof Object ? set : value2;
applicationIdToGuildIds2[propertyName] = value3;
}
}
value2 = _createForOfIteratorHelperLoose_89042(guildIdToApplicationIds[propertyName]);
value3 = value2();
done = value3.done;
if (done) {
r8 = propertyName2;
continue reducibleLoop1;
}
function value_89049() { // fn#89049, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
return env1_8;
}
function value_89050(a0) { // fn#89050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:2417, offset: 0x01ffcf4d, size: 32 bytes, params: 2, frame: 2
var value;
if (a0 != null) {
value = environment.__proto__;
return env1_8.applicationIdToGuildIds[a0];
}
r2 = value3;
reducibleLoop3: while (true) {
addToApplicationIdToGuildIdsBinding = addToApplicationIdToGuildIds;
value4 = r2.value;
addToApplicationIdToGuildIdsBinding({applicationId: value4, guildId: propertyName});
value5 = value2();
done = value5.done;
}
function value_89051() { // fn#89051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:2510, offset: 0x01ffcf6d, size: 15 bytes, params: 1, frame: 1
return env1_8.lastFetchTimeMs;
}
function value_89052() { // fn#89052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:2585, offset: 0x01ffcf7c, size: 15 bytes, params: 1, frame: 1
return env1_8.nextFetchRetryTimeMs;
}
function value_89053() { // fn#89053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:2655, offset: 0x01ffcf8b, size: 15 bytes, params: 1, frame: 1
return env1_8.fetchState;
}
}
function LOGOUT_89054() { // fn#89054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:2824, offset: 0x01ffcf9a, size: 61 bytes, params: 1, frame: 3
let binding = env0_8;
binding.applicationIdToGuildIds = {};
env0_8.lastFetchTimeMs = null;
env0_8.nextFetchRetryTimeMs = null;
binding = env0_8;
const NOT_FETCHED = env0_7.NOT_FETCHED;
binding.fetchState = NOT_FETCHED;
}
function FETCH_INTEGRATION_APPLICATION_IDS_FOR_MY_GUILDS() { // fn#89055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:3004, offset: 0x01ffcfd7, size: 27 bytes, params: 1, frame: 2
const binding = env0_8;
const FETCHING = env0_7.FETCHING;
binding.fetchState = FETCHING;
}
function FETCH_INTEGRATION_APPLICATION_IDS_FOR_MY_GUILDS_SUCCESS({guildIdToApplicationIds}) { // fn#89056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:3125, offset: 0x01ffcff2, size: 176 bytes, params: 2, frame: 22
var r8;
var r2;
var propertyName;
var propertyName2;
var value2;
var value3;
var done;
var addToApplicationIdToGuildIdsBinding;
var value4;
var value5;
let binding = env0_8;
const FETCHED = env0_7.FETCHED;
binding.fetchState = FETCHED;
binding = env0_8;
const Date = global.Date;
binding.lastFetchTimeMs = Date.now();
env0_8.applicationIdToGuildIds = {};
env0_8.nextFetchRetryTimeMs = null;
const properties = Object.keys(guildIdToApplicationIds);
const properties3 = properties.length;
if (properties !== undefined) {
r8 = 0;
reducibleLoop1: while (true) {
propertyName = properties[r8];
propertyName2 = r8 + 1;
if (propertyName === undefined) {
break reducibleLoop1;
}
value2 = _createForOfIteratorHelperLoose_89042(guildIdToApplicationIds[propertyName]);
value3 = value2();
done = value3.done;
if (done) {
r8 = propertyName2;
continue reducibleLoop1;
}
r2 = value5;
continue reducibleLoop3;
r2 = value3;
reducibleLoop3: while (true) {
addToApplicationIdToGuildIdsBinding = addToApplicationIdToGuildIds;
value4 = r2.value;
addToApplicationIdToGuildIdsBinding({applicationId: value4, guildId: propertyName});
value5 = value2();
done = value5.done;
if (done) {
r8 = propertyName2;
continue reducibleLoop1;
}
r2 = value5;
continue reducibleLoop3;
}
continue reducibleLoop1;
}
continue reducibleLoop1;
}
}
}
function FETCH_INTEGRATION_APPLICATION_IDS_FOR_MY_GUILDS_FAILURE({retryAfterSeconds}) { // fn#89057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:3511, offset: 0x01ffd0a2, size: 111 bytes, params: 2, frame: 13
var value2;
var Date;
let binding = env0_8;
const ERROR = env0_7.ERROR;
binding.fetchState = ERROR;
if (retryAfterSeconds != null) {
value2 = retryAfterSeconds * (importDefault(672) /* metro dependency 672: Durations */).Millis.SECOND;
binding = env0_8;
Date = global.Date;
binding.nextFetchRetryTimeMs = Date.now() + value2;
function FETCH_INTEGRATION_APPLICATION_IDS_FOR_MY_GUILDS_FAILURE({retryAfterSeconds}) { // fn#89057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:3511, offset: 0x01ffd0a2, size: 111 bytes, params: 2, frame: 13
var value2;
var Date;
let binding = env0_8;
const ERROR = env0_7.ERROR;
binding.fetchState = ERROR;
if (retryAfterSeconds != null) {
value2 = retryAfterSeconds * (importDefault(672) /* metro dependency 672: Durations */).Millis.SECOND;
binding = env0_8;
Date = global.Date;
binding.nextFetchRetryTimeMs = Date.now() + value2;
}
}
}
function INTEGRATION_CREATE({application, guildId}) { // fn#89058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:3699, offset: 0x01ffd111, size: 52 bytes, params: 2, frame: 12
if (application != null) {
addToApplicationIdToGuildIds({applicationId: application.id, guildId: guildId});
function INTEGRATION_CREATE({application, guildId}) { // fn#89058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:3699, offset: 0x01ffd111, size: 52 bytes, params: 2, frame: 12
if (application != null) {
addToApplicationIdToGuildIds({applicationId: application.id, guildId: guildId});
}
}
}
function INTEGRATION_DELETE({applicationId, guildId}) { // fn#89059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:3849, offset: 0x01ffd145, size: 147 bytes, params: 2, frame: 13
var object2;
var applicationIdToGuildIds;
var property;
var Set;
if (applicationId != null) {
object2 = {applicationId: applicationId, guildId: guildId};
applicationId = object2.applicationId;
guildId = object2.guildId;
applicationIdToGuildIds = env0_8.applicationIdToGuildIds;
if (applicationIdToGuildIds[applicationId] != null) {
function INTEGRATION_DELETE({applicationId, guildId}) { // fn#89059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:3849, offset: 0x01ffd145, size: 147 bytes, params: 2, frame: 13
var object;
var applicationIdToGuildIds;
var property;
var Set;
if (applicationId != null) {
object = {applicationId: applicationId, guildId: guildId};
applicationId = object.applicationId;
guildId = object.guildId;
applicationIdToGuildIds = env0_8.applicationIdToGuildIds;
property = applicationIdToGuildIds[applicationId];
property.delete(guildId);
applicationIdToGuildIds = env0_8.applicationIdToGuildIds;
Set = global.Set;
property = env0_8.applicationIdToGuildIds[applicationId];
applicationIdToGuildIds[applicationId] = new Set();
if (applicationIdToGuildIds[applicationId] != null) {
applicationIdToGuildIds = env0_8.applicationIdToGuildIds;
property = applicationIdToGuildIds[applicationId];
property.delete(guildId);
applicationIdToGuildIds = env0_8.applicationIdToGuildIds;
Set = global.Set;
property = env0_8.applicationIdToGuildIds[applicationId];
applicationIdToGuildIds[applicationId] = new Set();
}
}
}
}
function value_89048(a0) { // fn#89048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:2095, offset: 0x01ffceba, size: 147 bytes, params: 2, frame: 21
var value;
var binding;
var propertyName;
var applicationIdToGuildIds2;
var Set;
var applicationIdToGuildIds3;
var property;
var prototype;
var value2;
var set;
var value3;
if (a0 != null) {
value = environment.__proto__;
binding = env1_8;
binding.lastFetchTimeMs = a0.lastFetchTimeMs;
binding = env1_8;
binding.nextFetchRetryTimeMs = a0.nextFetchRetryTimeMs;
binding = env1_8;
binding.fetchState = a0.fetchState;
for (propertyName in a0.applicationIdToGuildIds) {
applicationIdToGuildIds2 = env1_8.applicationIdToGuildIds;
Set = global.Set;
applicationIdToGuildIds3 = a0.applicationIdToGuildIds;
property = applicationIdToGuildIds3[propertyName];
prototype = Set.prototype;
value2 = Object.create(prototype, {constructor: {value: Set}});
set = new Set();
value3 = set instanceof Object ? set : value2;
applicationIdToGuildIds2[propertyName] = value3;
}
}
}
function value_89050(a0) { // fn#89050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:2417, offset: 0x01ffcf4d, size: 32 bytes, params: 2, frame: 2
var value;
if (a0 != null) {
value = environment.__proto__;
return env1_8.applicationIdToGuildIds[a0];
}
}
function value_89051() { // fn#89051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:2510, offset: 0x01ffcf6d, size: 15 bytes, params: 1, frame: 1
return env1_8.lastFetchTimeMs;
}
function value_89052() { // fn#89052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:2585, offset: 0x01ffcf7c, size: 15 bytes, params: 1, frame: 1
return env1_8.nextFetchRetryTimeMs;
}
function value_89053() { // fn#89053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11802:2655, offset: 0x01ffcf8b, size: 15 bytes, params: 1, frame: 1
return env1_8.fetchState;
}
global.__d(_fun89038, 11616, [6, 7, 15, 17, 18, 672, 566, 694,
2]) /* metro module 11616, dependencies: [6, 7, 15, 17, 18, 672, 566, 694, 2] */;
@@ -1,42 +1,45 @@
/* Metro module 11666; source: modules/global_discovery_apps/utils/getCollectionItemAssetUrl.tsx; dependencies: [661, 1457, 1423, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as AvatarUtilsModule from '../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import * as ImageLoaderUtilsModule from '../../image_upload/ImageLoaderUtils.tsx'; /* Metro dependency 1457 */
function _fun89441(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11852:6, offset: 0x0200d7db, size: 149 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).Endpoints;
const GLOBAL_ENV = global.window.GLOBAL_ENV;
const env0_3 = GLOBAL_ENV.API_ENDPOINT;
const env0_4 = GLOBAL_ENV.CDN_HOST;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/global_discovery_apps/utils/getCollectionItemAssetUrl.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/global_discovery_apps/utils/getCollectionItemAssetUrl.tsx');
exports.getCollectionItemAssetUrl = getCollectionItemAssetUrl;
}
function getCollectionItemAssetUrl({itemId, hash, containerWidth}) { // fn#89442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11852:293, offset: 0x0200d870, size: 313 bytes, params: 2, frame: 28
var r0;
var value;
var protocol;
containerWidth = containerWidth === undefined ? 1024 : containerWidth;
const imageLoaderUtilsModule = require(1457) /* metro dependency 1457: ImageLoaderUtils */;
const getBestMediaProxySize = imageLoaderUtilsModule.getBestMediaProxySize;
const moduleValue2 = imageLoaderUtilsModule;
const getDevicePixelRatio = moduleValue2.getDevicePixelRatio;
const value3 = Reflect.apply(getBestMediaProxySize, imageLoaderUtilsModule,
[containerWidth * Reflect.apply(getDevicePixelRatio, moduleValue2, [])]).toString();
const URLSearchParams = global.URLSearchParams;
const object2 = {size: value3};
const value4 = Object.create(URLSearchParams.prototype, {constructor: {value: URLSearchParams}});
const uRLSearchParams = new URLSearchParams(object2);
const value6 = (uRLSearchParams instanceof Object ? uRLSearchParams : value4).toString();
const SUPPORTS_WEBP = (require(1423) /* metro dependency 1423: AvatarUtils */).SUPPORTS_WEBP;
const r8 = SUPPORTS_WEBP ? 'webp' : 'png';
if (CDN_HOST != null) {
r0 = 'https://' + CDN_HOST + '/app-assets/application-directory/collection-items/' + itemId + '/' + hash + '.' + r8 + '?' + value6;
} else {
protocol = global.location.protocol;
value = Endpoints.APPLICATION_DIRECTORY_COLLECTION_ITEM_IMAGE(itemId, hash, r8);
value = '' + protocol + API_ENDPOINT + value + '?' + value6;
r0 = value;
function getCollectionItemAssetUrl({itemId, hash, containerWidth}) { // fn#89442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11852:293, offset: 0x0200d870, size: 313 bytes, params: 2, frame: 28
var r0;
var value;
var protocol;
containerWidth = containerWidth === undefined ? 1024 : containerWidth;
const getBestMediaProxySize = ImageLoaderUtilsModule.getBestMediaProxySize;
const getDevicePixelRatio = ImageLoaderUtilsModule.getDevicePixelRatio;
const value3 = Reflect.apply(getBestMediaProxySize, ImageLoaderUtilsModule,
[containerWidth * Reflect.apply(getDevicePixelRatio, ImageLoaderUtilsModule, [])]).toString();
const URLSearchParams = global.URLSearchParams;
const object = {size: value3};
const value4 = Object.create(URLSearchParams.prototype, {constructor: {value: URLSearchParams}});
const uRLSearchParams = new URLSearchParams(object);
const value6 = (uRLSearchParams instanceof Object ? uRLSearchParams : value4).toString();
const SUPPORTS_WEBP = (AvatarUtilsModule).SUPPORTS_WEBP;
const r8 = SUPPORTS_WEBP ? 'webp' : 'png';
if (CDN_HOST != null) {
r0 = 'https://' + CDN_HOST + '/app-assets/application-directory/collection-items/' + itemId + '/' + hash + '.' + r8 + '?' + value6;
} else {
protocol = global.location.protocol;
value = Endpoints.APPLICATION_DIRECTORY_COLLECTION_ITEM_IMAGE(itemId, hash, r8);
value = '' + protocol + API_ENDPOINT + value + '?' + value6;
r0 = value;
}
return r0;
}
return r0;
}
global.__d(_fun89441, 11666, [661, 1457, 1423, 2]) /* metro module 11666, dependencies: [661, 1457, 1423, 2] */;