/* Metro module 15953; source: actions/native/GuildActionCreators.tsx; dependencies: [661, 694, 507, 2] */ function _fun123307(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:6, offset: 0x02587d3b, size: 155 bytes, params: 8, frame: 20 var object2; const env0_0 = require; const closure = batchChannelUpdate_123308; const closure2 = batchRoleUpdate_123310; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints; object2 = {batchChannelUpdate: closure, batchRoleUpdate: closure2}; (require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/GuildActionCreators.tsx'); exports.default = object2; exports.batchChannelUpdate = closure; exports.batchRoleUpdate = closure2; } function batchChannelUpdate_123308(a0, a1) { // fn#123308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:116, offset: 0x02587dd6, size: 157 bytes, params: 3, frame: 18 var object2; var HTTP; var patch; const closure = batchChannelUpdate_123308OnEnd; if (!(a1.length <= 0)) { (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_SUBMIT'}); HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; patch = HTTP.patch; object2 = {}; object2.url = Endpoints.GUILD_CHANNELS(a0); object2.body = a1; object2.oldFormErrors = true; object2.rejectWithError = true; Reflect.apply(patch, HTTP, [object2]).then(closure, closure); } } function batchRoleUpdate_123310(a0, a1) { // fn#123310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:401, offset: 0x02587ea2, size: 157 bytes, params: 3, frame: 18 var object2; var HTTP; var patch; const closure = batchRoleUpdate_123310OnEnd; if (!(a1.length <= 0)) { (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_SUBMIT'}); HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; patch = HTTP.patch; object2 = {}; object2.url = Endpoints.GUILD_ROLES(a0); object2.body = a1; object2.oldFormErrors = true; object2.rejectWithError = true; Reflect.apply(patch, HTTP, [object2]).then(closure, closure); } } function batchChannelUpdate_123308OnEnd() { // fn#123309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:149, owner: batchChannelUpdate_123308.onEnd, offset: 0x02587e73, size: 47 bytes, params: 1, frame: 12 const value = environment.__proto__; return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_SUBMIT_SUCCESS'}); }