/* Metro module 9738; source: modules/message_request/MessageRequestActionCreators.tsx; dependencies: [5, 661, 507, 9739, 694, 5076, 2] */ import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */ import AuthenticationActionCreators from '../../actions/AuthenticationActionCreators.tsx'; /* Metro dependency 5076 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */ function _fun76511(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9924:6, offset: 0x01dd1d48, size: 216 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/message_request/MessageRequestActionCreators.tsx'); exports.acceptMessageRequest = function() { return _acceptMessageRequest.apply(this, arguments); }; exports.clearMessageRequestState = function(a0) { var HTTP = require(dependencyMap[2]).HTTP; var object = {}; object.url = Endpoints.CHANNEL_RECIPIENT_ME(a0); object.body = {consent_status: require(dependencyMap[3]).MessageRequestConsentStatusTypes.UNSPECIFIED}; object.rejectWithError = false; return HTTP.put(object); }; exports.markAsMessageRequest = function(a0) { var HTTP = require(dependencyMap[2]).HTTP; var object = {}; object.url = Endpoints.CHANNEL_RECIPIENT_ME(a0); object.body = {consent_status: require(dependencyMap[3]).MessageRequestConsentStatusTypes.PENDING}; object.rejectWithError = false; return HTTP.put(object); }; exports.rejectMessageRequest = function(a0) { var HTTP = require(dependencyMap[2]).HTTP; var object = {}; object.url = Endpoints.CHANNEL_RECIPIENT_ME(a0); object.rejectWithError = false; return HTTP.del(object); }; exports.rejectMessageRequestBatch = function(a0) { var HTTP = require(dependencyMap[2]).HTTP; var object = {}; object.url = Endpoints.CHANNEL_RECIPIENT_REJECT_BATCH(); object.body = {channel_ids: a0}; object.rejectWithError = false; return HTTP.put(object); }; exports.fetchUserCountryCode = fetchUserCountryCode; function _acceptMessageRequest() { // fn#76512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9924:126, offset: 0x01dd1e20, size: 50 bytes, params: 1, frame: 14 return Module00005(_fun76514).apply(this, arguments); function* _fun76514(a0) { // fn#76514, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9924:191, offset: 0x01dd1e5d, size: 179 bytes, params: 2, frame: 19 if (true) { value = environment.__proto__.__proto__; var binding = env2_0; var binding2 = env2_2; var HTTP = binding(binding2[2]).HTTP; var put = HTTP.put; var object = {}; object.url = env2_4.CHANNEL_RECIPIENT_ME(a0); var MessageRequestConsentStatusTypes = binding(binding2[3]).MessageRequestConsentStatusTypes; var ACCEPTED = MessageRequestConsentStatusTypes.ACCEPTED; object.body = {consent_status: ACCEPTED}; object.rejectWithError = false; yield Reflect.apply(put, HTTP, [object]); if (false) { return undefined; } env2_1(env2_2[4]).dispatch({type: 'MESSAGE_REQUEST_ACCEPT_OPTIMISTIC', channelId: a0}); } } } function fetchUserCountryCode() { // fn#76520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9924:1396, offset: 0x01dd2084, size: 37 bytes, params: 1, frame: 11 (AuthenticationActionCreators).getLocationMetadata(); } } global.__d(_fun76511, 9738, [5, 661, 507, 9739, 694, 5076, 2]) /* metro module 9738, dependencies: [5, 661, 507, 9739, 694, 5076, 2] */;