55 lines
2.8 KiB
TypeScript
55 lines
2.8 KiB
TypeScript
/* Metro module 9473; source: modules/activities/utils/getCachedOrFetchActivityApplicationForLaunch.tsx; dependencies: [5, 4234, 4235, 1379, 7860, 8099, 9474, 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});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
|
|
const applicationRecord = importDefault(4235) /* metro dependency 4235: ApplicationRecord */;
|
|
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
|
(require(2) /* metro dependency 2 */).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 env0_3(_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);
|
|
}
|
|
|