/* Metro module 9117; source: modules/guild_settings/GuildSettingsFetchActionCreators.tsx; dependencies: [5, 4235, 1885, 661, 507, 694, 2] */ import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */ import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */ import UserRecord from '../../records/UserRecord.tsx'; /* Metro dependency 1885 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as HTTPUtilsModule from '../../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */ import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */ import * as ApplicationRecordModule from '../../records/ApplicationRecord.tsx'; /* Metro dependency 4235 */ 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}); (FileImportTrackerModule).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 Module00005(_fun71430).apply(this, arguments); 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 object = {}; object.url = env2_6.GUILD_INTEGRATIONS(a0); object.query = {'include_applications': true, 'include_role_connections_metadata': true}; object.oldFormErrors = true; object.rejectWithError = false; yield Reflect.apply(get, HTTP, [object]); 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 _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 object = {}; copyDataProperties(object, a0, undefined); const value = undefined; object['application'] = 'application' in a0 && a0.application != null ? env3_4.createFromServer(a0.application) : value; object['user'] = 'user' in a0 && a0.user != null ? new env3_5() : value; return object; } } } 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 = (HTTPUtilsModule).HTTP; const get = HTTP.get; const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true}; object.url = Endpoints.GUILD_WIDGET(a0); return Reflect.apply(get, HTTP, [object]).then(_fun71434); 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__; (Dispatcher).dispatch({type: 'GUILD_SETTINGS_SET_WIDGET', enabled: a0.body.enabled, channelId: a0.body.channel_id}); } } } global.__d(_fun71427, 9117, [5, 4235, 1885, 661, 507, 694, 2]) /* metro module 9117, dependencies: [5, 4235, 1885, 661, 507, 694, 2] */;