Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
/* Metro module 11659; source: modules/global_discovery_apps/AllowNonStaffToPreviewAppCollectionsExperiment.tsx; dependencies: [1854, 2] */
|
||||
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 */;
|
||||
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');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,16 @@
|
||||
/* Metro module 669; source: modules/global_discovery_apps/GlobalDiscoveryAppsConstants.tsx; dependencies: [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');
|
||||
exports.GLOBAL_DISCOVERY_APPS_FEATURED_CATEGORY_ID = 0;
|
||||
exports.EMPTY_QUERY = '';
|
||||
exports.MAX_PAGES = 100;
|
||||
exports.PAGE_SIZE = 48;
|
||||
exports.GlobalDiscoveryAppsSections = {ABOUT: 'about', STORE: 'store'};
|
||||
exports.GlobalDiscoveryAppsTabId = {FEATURED: 'Featured', GAMES: 'Games', ENTERTAINMENT: 'Entertainment',
|
||||
MODERATION_AND_TOOLS: 'Moderation & Tools', SOCIAL: 'Social', UTILITIES: 'Utilities'};
|
||||
exports.ApplicationDirectoryProfileSections = {GENERAL: 'general', IMAGES: 'images', PREMIUM_DEPRECATED: 'premium',
|
||||
STORE: 'store', PRIVACY: 'privacy'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 7085; source: modules/global_discovery_apps/applicationDirectoryAnalytics.tsx; dependencies: [1934, 3969, 661, 683, 2] */
|
||||
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');
|
||||
exports.trackAppDirectoryProfileEmbed = function(a0, a1) {
|
||||
var defaultImport = importDefault(dependencyMap[3]);
|
||||
var APP_DIRECTORY_PROFILE_EMBED_SENT = AnalyticEvents.APP_DIRECTORY_PROFILE_EMBED_SENT;
|
||||
var object = {application_id: a0, device_platform: 'mobile_native'};
|
||||
object.guild_id = SelectedGuildStore.getGuildId();
|
||||
object.channel_id = SelectedChannelStore.getChannelId();
|
||||
object.section = a1;
|
||||
defaultImport.track(APP_DIRECTORY_PROFILE_EMBED_SENT, object);
|
||||
};
|
||||
}
|
||||
|
||||
+160
@@ -0,0 +1,160 @@
|
||||
/* Metro module 6773; source: modules/global_discovery_apps/stores/ApplicationDirectoryApplicationsStore.tsx; dependencies: [6, 7, 15, 17, 18, 4235, 566, 694, 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';
|
||||
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;
|
||||
_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');
|
||||
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) {
|
||||
}
|
||||
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 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 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 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_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];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* Metro module 11613; source: modules/global_discovery_apps/stores/ApplicationDirectoryCategoriesStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 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;
|
||||
let value = _fun89005(Store);
|
||||
value.displayName = 'ApplicationDirectoryCategoriesStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{APPLICATION_DIRECTORY_FETCH_CATEGORIES_SUCCESS: function(a0) {
|
||||
env0_5 = a0.categories;
|
||||
var Date = global.Date;
|
||||
env0_6 = Date.now();
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).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) {
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
/* Metro module 11614; source: modules/global_discovery_apps/stores/ApplicationDirectoryCollectionsStore.tsx; dependencies: [6, 7, 15, 17, 18, 22, 566, 694, 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';
|
||||
const env0_8 = [];
|
||||
const env0_9 = {};
|
||||
const env0_10 = {};
|
||||
const env0_11 = {};
|
||||
const Store = (importDefault(566) /* metro dependency 566: 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');
|
||||
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) {
|
||||
}
|
||||
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 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 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 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_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 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 _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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,142 @@
|
||||
/* Metro module 11609; source: modules/global_discovery_apps/stores/ApplicationDirectorySearchStore.tsx; dependencies: [6, 7, 15, 17, 18, 11610, 1393, 566, 694, 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 */;
|
||||
value = new value({max: 20});
|
||||
const env0_9 = {};
|
||||
const Store = (importDefault(566) /* metro dependency 566: 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');
|
||||
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) {
|
||||
}
|
||||
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 _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 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 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 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 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})];
|
||||
}
|
||||
|
||||
+125
@@ -0,0 +1,125 @@
|
||||
/* Metro module 11615; source: modules/global_discovery_apps/stores/ApplicationDirectorySimilarApplicationsStore.tsx; dependencies: [6, 7, 15, 17, 18, 1393, 566, 694, 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 */;
|
||||
value = new value({max: 20});
|
||||
const env0_7 = {};
|
||||
const Store = (importDefault(566) /* metro dependency 566: 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');
|
||||
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) {
|
||||
}
|
||||
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 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 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 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})];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,362 @@
|
||||
/* Metro module 11616; source: modules/global_discovery_apps/stores/MyGuildApplicationsStore.tsx; dependencies: [6, 7, 15, 17, 18, 672, 566, 694, 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;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
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;
|
||||
let value = _fun89046(PersistedStore);
|
||||
value.displayName = 'MyGuildApplicationsStore';
|
||||
value.persistKey = 'MyGuildApplicationsStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: LOGOUT_89054,
|
||||
FETCH_INTEGRATION_APPLICATION_IDS_FOR_MY_GUILDS: FETCH_INTEGRATION_APPLICATION_IDS_FOR_MY_GUILDS,
|
||||
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');
|
||||
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) {
|
||||
}
|
||||
return _fun89043;
|
||||
}
|
||||
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') {
|
||||
value = _arrayLikeToArray_89044(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
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;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
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 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;
|
||||
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 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 = 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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_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) {
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/* Metro module 11666; source: modules/global_discovery_apps/utils/getCollectionItemAssetUrl.tsx; dependencies: [661, 1457, 1423, 2] */
|
||||
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');
|
||||
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;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user