Files
discord-decomp/sources/actions/PruneGuildModalActionCreators.tsx
T
2026-07-27 16:20:00 +03:00

70 lines
3.4 KiB
TypeScript

/* Metro module 15002; source: actions/PruneGuildModalActionCreators.tsx; dependencies: [5, 661, 507, 2] */
function _fun113403(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:6, offset: 0x023f74d2, size: 169 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints;
object2 = {updateEstimate: updateEstimate_113404, updateEstimateV2: updateEstimateV2, prune: function(a0, a1, a2) {
var HTTP = require(dependencyMap[2]).HTTP;
var object = {};
object.url = Endpoints.GUILD_PRUNE(a0);
object.body = {days: a1, compute_prune_count: false, include_roles: a2};
object.oldFormErrors = true;
object.rejectWithError = false;
return HTTP.post(object);
}};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/PruneGuildModalActionCreators.tsx');
exports.default = object2;
}
function updateEstimate_113404(a0) { // fn#113404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:144, offset: 0x023f757b, size: 57 bytes, params: 2, frame: 12
const value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : 7;
return a2(_fun113406)();
}
function updateEstimateV2(a0) { // fn#113407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:326, offset: 0x023f7653, size: 57 bytes, params: 2, frame: 12
const value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : 7;
return a2(_fun113409)();
}
function* _fun113406() { // fn#113406, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:158, offset: 0x023f75bf, size: 148 bytes, params: 1, frame: 16
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_0;
const HTTP = binding(env2_1[2]).HTTP;
const get = HTTP.get;
binding = env2_3;
const GUILD_PRUNE = binding.GUILD_PRUNE;
value = environment.__proto__;
yield Reflect.apply(get, HTTP, [{url: Reflect.apply(GUILD_PRUNE, binding, [require]), query: {days: dependencyMap,
include_roles: env1_2}, oldFormErrors: true, rejectWithError: false}]);
value = undefined;
if (false) {
return value;
}
return value.body.pruned;
}
function* _fun113409() { // fn#113409, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:340, offset: 0x023f7697, size: 135 bytes, params: 1, frame: 17
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var HTTP = binding(env2_1[2]).HTTP;
var get = HTTP.get;
binding = env2_3;
var GUILD_PRUNE_V2 = binding.GUILD_PRUNE_V2;
value = environment.__proto__;
yield Reflect.apply(get, HTTP, [{url: Reflect.apply(GUILD_PRUNE_V2, binding, [require]),
query: {days: dependencyMap, include_roles: env1_2}, oldFormErrors: true, rejectWithError: false}]);
}
}