/* Metro module 13386; source: modules/harvester/DataHarvestActionCreators.tsx; dependencies: [661, 694, 507, 7620, 2] */ import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */ 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 UserSettingsAccountActionCreatorsModule from '../../actions/UserSettingsAccountActionCreators.tsx'; /* Metro dependency 7620 */ 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}); (FileImportTrackerModule).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 (Dispatcher).dispatch({type: 'LOAD_DATA_HARVEST_TYPE_START'}); const HTTP = (HTTPUtilsModule).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 _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__; (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__; (Dispatcher).dispatch({type: 'LOAD_DATA_HARVEST_TYPE_FAILURE', error: a0}); } } 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 = UserSettingsAccountActionCreatorsModule; value = value.requestHarvest(a0); return value.then(_fun101934); 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; } } } global.__d(_fun101929, 13386, [661, 694, 507, 7620, 2]) /* metro module 13386, dependencies: [661, 694, 507, 7620, 2] */;