42 lines
2.4 KiB
TypeScript
42 lines
2.4 KiB
TypeScript
/* Metro module 15176; source: actions/RegionActionCreators.tsx; dependencies: [661, 507, 694, 2] */
|
|
function _fun115947(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15373:6, offset: 0x024758ca, size: 145 bytes, params: 8, frame: 18
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
|
object2 = {fetchRegions: fetchRegions, changeCallRegion: function(a0, a1) {
|
|
var HTTP = require(dependencyMap[1]).HTTP;
|
|
var object = {};
|
|
object.url = Endpoints.CALL(a0);
|
|
object.body = {region: a1};
|
|
object.oldFormErrors = true;
|
|
object.rejectWithError = true;
|
|
HTTP.patch(object);
|
|
}};
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/RegionActionCreators.tsx');
|
|
exports.default = object2;
|
|
}
|
|
|
|
function fetchRegions(a0) { // fn#115948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15373:119, offset: 0x0247595b, size: 111 bytes, params: 2, frame: 17
|
|
const env0_0 = a0;
|
|
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
|
const get = HTTP.get;
|
|
const object2 = {'url': null, 'retries': 1, 'oldFormErrors': true, 'rejectWithError': true};
|
|
object2.url = Endpoints.REGIONS(a0);
|
|
Reflect.apply(get, HTTP, [object2]).then(_fun115949, _fun115950);
|
|
}
|
|
|
|
function _fun115949({body}) { // fn#115949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15373:224, offset: 0x024759ca, size: 73 bytes, params: 2, frame: 12
|
|
const value = environment.__proto__;
|
|
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_REGIONS', regions: body,
|
|
guildId: env0_0});
|
|
}
|
|
|
|
function _fun115950() { // fn#115950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15373:294, offset: 0x02475a13, size: 69 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__;
|
|
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_REGIONS', regions: [],
|
|
guildId: env0_0});
|
|
}
|
|
|