/* Metro module 13386; source: modules/harvester/DataHarvestActionCreators.tsx; dependencies: [661, 694, 507, 7620, 2] */ function _fun101929(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13576:6, offset: 0x02224093, size: 139 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/harvester/DataHarvestActionCreators.tsx'); exports.getDataHarvestStatus = getDataHarvestStatus; exports.requestDataHarvest = requestDataHarvest; } function getDataHarvestStatus() { // fn#101930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13576:220, offset: 0x0222411e, size: 143 bytes, params: 1, frame: 16 (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_DATA_HARVEST_TYPE_START'}); const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const get = HTTP.get; const USER_HARVEST = Endpoints.USER_HARVEST; let value = Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false, url: USER_HARVEST}]); value = value.then(_fun101931); return value.catch(_fun101932); } function requestDataHarvest(a0) { // fn#101933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13576:576, offset: 0x02224223, size: 60 bytes, params: 2, frame: 11 let value = require(7620) /* metro dependency 7620: UserSettingsAccountActionCreators */; value = value.requestHarvest(a0); return value.then(_fun101934); } function _fun101931({body}) { // fn#101931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13576:396, offset: 0x022241ad, size: 62 bytes, params: 2, frame: 13 const value = environment.__proto__; (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPDATE_DATA_HARVEST_TYPE', harvestType: body}); } function _fun101932(a0) { // fn#101932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13576:481, offset: 0x022241eb, size: 56 bytes, params: 2, frame: 13 const value = environment.__proto__; (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_DATA_HARVEST_TYPE_FAILURE', error: a0}); } function _fun101934(a0) { // fn#101934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13576:646, offset: 0x0222425f, size: 83 bytes, params: 2, frame: 13 let value = a0 != null; if (value && a0.body != null) { value = environment.__proto__; value = importDefault(694) /* metro dependency 694: Dispatcher */; value.dispatch({type: 'UPDATE_DATA_HARVEST_TYPE', harvestType: a0.body}); } return a0; }