59 lines
3.3 KiB
TypeScript
59 lines
3.3 KiB
TypeScript
/* Metro module 9473; source: modules/activities/utils/getCachedOrFetchActivityApplicationForLaunch.tsx; dependencies: [5, 4234, 4235, 1379, 7860, 8099, 9474, 2] */
|
|
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
|
|
import ApplicationStore from '../../applications/ApplicationStore.tsx'; /* Metro dependency 4234 */
|
|
import ApplicationRecord from '../../../records/ApplicationRecord.tsx'; /* Metro dependency 4235 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun73665(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9659:6, offset: 0x01d745fc, size: 188 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const isUsableApplicationRecord = function(a0) {
|
|
return a0 != null && a0.embeddedActivityConfig != null;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/activities/utils/getCachedOrFetchActivityApplicationForLaunch.tsx');
|
|
exports.default = function() {
|
|
return _getCachedOrFetchActivityApplicationForLaunch.apply(this, arguments);
|
|
};
|
|
function _getCachedOrFetchActivityApplicationForLaunch() { // fn#73666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9659:136, offset: 0x01d746b8, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun73668).apply(this, arguments);
|
|
function* _fun73668(a0, a1) { // fn#73668, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9659:249, offset: 0x01d746f5, size: 298 bytes, params: 3, frame: 20
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const application = env2_4.getApplication(a0);
|
|
const value4 = undefined;
|
|
if (env2_8(application)) {
|
|
return application;
|
|
}
|
|
const channel = env2_6.getChannel(a1);
|
|
const guild_id = channel == null ? value4 : channel.guild_id;
|
|
const value6 = env2_0(env2_2[4]);
|
|
yield value6.fetchShelf({guildId: guild_id});
|
|
const value7 = undefined;
|
|
if (false) {
|
|
return value7;
|
|
}
|
|
const value10 = env2_1(env2_2[5])({applicationId: a0, activityConfigs: value7.activityConfigs,
|
|
applications: value7.applications});
|
|
if (env2_8(value10 == null ? value4 : value10.application)) {
|
|
return value10 == null ? value4 : value10.application;
|
|
}
|
|
const value11 = env2_0(env2_2[6]);
|
|
yield value11.fetchApplication(a0);
|
|
const value12 = undefined;
|
|
if (false) {
|
|
return value12;
|
|
}
|
|
return env2_5.createFromServer(value12);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun73665, 9473, [5, 4234, 4235, 1379, 7860, 8099, 9474,
|
|
2]) /* metro module 9473, dependencies: [5, 4234, 4235, 1379, 7860, 8099, 9474, 2] */;
|