2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 16878
|
|
|
|
|
// Function ID: 16879
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: RegionActionCreators
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [1074, 1271, 573, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 16878 (RegionActionCreators)
|
2026-09-10 05:38:07 +00:00
|
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
|
|
|
import Constants from "Constants" /* 1074 */;
|
2026-09-15 14:23:42 +00:00
|
|
|
import HTTPUtils from "HTTPUtils" /* 1271 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = globalThis.__r;
|
|
|
|
|
|
|
|
|
|
const Endpoints = Constants.Endpoints;
|
|
|
|
|
const result = size.fileFinishedImporting("actions/RegionActionCreators.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
fetchRegions(id) {
|
2026-09-10 05:38:07 +00:00
|
|
|
_require = id;
|
|
|
|
|
const HTTP = require("HTTPUtils").HTTP;
|
|
|
|
|
value = HTTP.get({ url: Endpoints.REGIONS(id), retries: 1, oldFormErrors: true, rejectWithError: true });
|
|
|
|
|
value.then((body) => DispatcherDefault.dispatch({ type: "LOAD_REGIONS", regions: body.body, guildId }), () => DispatcherDefault.dispatch({ type: "LOAD_REGIONS", regions: [], guildId }));
|
2026-07-20 16:05:17 +00:00
|
|
|
},
|
2026-07-29 08:29:29 +00:00
|
|
|
changeCallRegion(id, region) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const HTTP = HTTPUtils.HTTP;
|
|
|
|
|
const request = { url: Endpoints.CALL(id), body: { region }, oldFormErrors: true, rejectWithError: true };
|
|
|
|
|
HTTP.patch(request);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|