68 lines
3.9 KiB
TypeScript
68 lines
3.9 KiB
TypeScript
/* Metro module 9117; source: modules/guild_settings/GuildSettingsFetchActionCreators.tsx; dependencies: [5, 4235, 1885, 661, 507, 694, 2] */
|
|
function _fun71427(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9302:6, offset: 0x01d1f808, size: 204 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_4 = (require(4235) /* metro dependency 4235: ApplicationRecord */).BasicApplicationRecord;
|
|
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
|
const env0_6 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/GuildSettingsFetchActionCreators.tsx');
|
|
exports.fetchGuildIntegrationsApplications = function() {
|
|
return _fetchGuildIntegrationsApplications.apply(this, arguments);
|
|
};
|
|
exports.fetchGuildEmbed = fetchGuildEmbed;
|
|
}
|
|
|
|
function _fetchGuildIntegrationsApplications() { // fn#71428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9302:169, offset: 0x01d1f8d4, size: 50 bytes, params: 1, frame: 14
|
|
return env0_3(_fun71430).apply(this, arguments);
|
|
}
|
|
|
|
function fetchGuildEmbed(a0) { // fn#71433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9302:991, offset: 0x01d1fa65, size: 95 bytes, params: 2, frame: 14
|
|
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
|
const get = HTTP.get;
|
|
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
|
|
object2.url = Endpoints.GUILD_WIDGET(a0);
|
|
return Reflect.apply(get, HTTP, [object2]).then(_fun71434);
|
|
}
|
|
|
|
function* _fun71430(a0) { // fn#71430, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9302:262, offset: 0x01d1f911, size: 200 bytes, params: 2, frame: 17
|
|
var environment;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const HTTP = env2_0(env2_2[4]).HTTP;
|
|
const get = HTTP.get;
|
|
const object2 = {};
|
|
object2.url = env2_6.GUILD_INTEGRATIONS(a0);
|
|
object2.query = {'include_applications': true, 'include_role_connections_metadata': true};
|
|
object2.oldFormErrors = true;
|
|
object2.rejectWithError = false;
|
|
yield Reflect.apply(get, HTTP, [object2]);
|
|
const value3 = undefined;
|
|
if (false) {
|
|
return value3;
|
|
}
|
|
const value5 = value3.body.map(_fun71431);
|
|
value = env2_1(env2_2[5]);
|
|
value.dispatch({type: 'GUILD_SETTINGS_LOADED_INTEGRATIONS', guildId: a0, integrations: value5});
|
|
return value5;
|
|
}
|
|
|
|
function _fun71434(a0) { // fn#71434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9302:1110, offset: 0x01d1fac4, size: 78 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_SET_WIDGET',
|
|
enabled: a0.body.enabled, channelId: a0.body.channel_id});
|
|
}
|
|
|
|
function _fun71431(a0) { // fn#71431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9302:452, offset: 0x01d1f9d9, size: 140 bytes, params: 2, frame: 17
|
|
const object2 = {};
|
|
copyDataProperties(object2, a0, undefined);
|
|
const value = undefined;
|
|
object2['application'] = 'application' in a0 && a0.application != null ? env3_4.createFromServer(a0.application) : value;
|
|
object2['user'] = 'user' in a0 && a0.user != null ? new env3_5() : value;
|
|
return object2;
|
|
}
|
|
|