Files
2026-07-28 01:06:53 +03:00

183 lines
7.0 KiB
TypeScript

/* Metro module 12695; source: modules/guild_profile/GuildPopoutActionCreators.tsx; dependencies: [5, 661, 694, 507, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun97279(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12885:6, offset: 0x0217a149, size: 151 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/guild_profile/GuildPopoutActionCreators.tsx');
exports.fetchGuildForPopout = function() {
return _fetchGuildForPopout.apply(this, arguments);
};
function _fetchGuildForPopout() { // fn#97280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12885:128, offset: 0x0217a1e0, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun97282).apply(this, arguments);
function* _fun97282(a0) { // fn#97282, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12885:191, offset: 0x0217a21d, size: 257 bytes, params: 2, frame: 19
var binding2;
var property;
var value4;
var HTTP;
var get;
var GUILD_PREVIEW;
var value5;
var value6;
var value7;
var value8;
var binding3;
var value9;
var body;
var error;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_1;
var value3 = binding(env2_2[2]);
var dispatch = value3.dispatch;
Reflect.apply(dispatch, value3, [{type: 'GUILD_POPOUT_FETCH_START', guildId: a0}]);
reducibleJoin3: while (true) {
reduciblePort34: while (true) {
exceptionLanding33: while (true) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding33;
}
break reducibleJoin3;
}
binding = env2_1;
value = binding(env2_2[2]);
dispatch = value.dispatch;
Reflect.apply(dispatch, value, [{type: 'GUILD_POPOUT_FETCH_FAILURE', guildId: a0}]);
break reduciblePort34;
}
return undefined;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding33;
}
try {
property = binding2[3];
} catch (error) {
break exceptionLanding33;
}
try {
value4 = binding(property);
} catch (error) {
break exceptionLanding33;
}
try {
HTTP = value4.HTTP;
} catch (error) {
break exceptionLanding33;
}
try {
get = HTTP.get;
} catch (error) {
break exceptionLanding33;
}
try {
object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
} catch (error) {
break exceptionLanding33;
}
try {
binding = env2_4;
} catch (error) {
break exceptionLanding33;
}
try {
GUILD_PREVIEW = binding.GUILD_PREVIEW;
} catch (error) {
break exceptionLanding33;
}
try {
value5 = Reflect.apply(GUILD_PREVIEW, binding, [a0]);
} catch (error) {
break exceptionLanding33;
}
try {
object.url = value5;
} catch (error) {
break exceptionLanding33;
}
try {
value6 = Reflect.apply(get, HTTP, [object]);
} catch (error) {
break exceptionLanding33;
}
yield value6;
try {
value7 = undefined;
value8 = false;
} catch (error) {
break exceptionLanding33;
}
if (value8) {
return value7;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding33;
}
try {
binding3 = env2_2;
} catch (error) {
break exceptionLanding33;
}
try {
property = binding3[2];
} catch (error) {
break exceptionLanding33;
}
try {
value9 = binding(property);
} catch (error) {
break exceptionLanding33;
}
try {
dispatch = value9.dispatch;
} catch (error) {
break exceptionLanding33;
}
try {
object = {};
} catch (error) {
break exceptionLanding33;
}
try {
object.type = 'GUILD_POPOUT_FETCH_SUCCESS';
} catch (error) {
break exceptionLanding33;
}
try {
object.guildId = a0;
} catch (error) {
break exceptionLanding33;
}
try {
body = value7.body;
} catch (error) {
break exceptionLanding33;
}
try {
object.guild = body;
} catch (error) {
break exceptionLanding33;
}
try {
Reflect.apply(dispatch, value9, [object]);
} catch (error) {
break exceptionLanding33;
}
}
}
}
}
global.__d(_fun97279, 12695, [5, 661, 694, 507, 2]) /* metro module 12695, dependencies: [5, 661, 694, 507, 2] */;