98 lines
5.3 KiB
TypeScript
98 lines
5.3 KiB
TypeScript
/* Metro module 13449; source: modules/parent_tools/RestrictedScheduleActionCreators.tsx; dependencies: [5, 661, 507, 694, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun102280(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:6, offset: 0x022359e3, size: 199 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/parent_tools/RestrictedScheduleActionCreators.tsx');
|
|
exports.addRestrictedScheduleRule = function() {
|
|
return _addRestrictedScheduleRule.apply(this, arguments);
|
|
};
|
|
exports.updateRestrictedScheduleRule = function() {
|
|
return _updateRestrictedScheduleRule.apply(this, arguments);
|
|
};
|
|
exports.deleteRestrictedScheduleRule = function() {
|
|
return _deleteRestrictedScheduleRule.apply(this, arguments);
|
|
};
|
|
function _addRestrictedScheduleRule() { // fn#102281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:126, offset: 0x02235aaa, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun102283).apply(this, arguments);
|
|
function* _fun102283(a0, a1) { // fn#102283, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:201, offset: 0x02235ae7, size: 163 bytes, params: 3, frame: 17
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const HTTP = env2_0(env2_2[2]).HTTP;
|
|
const post = HTTP.post;
|
|
const object = {};
|
|
object.url = env2_4.FAMILY_CENTER_RESTRICTED_SCHEDULE_RULE(a0);
|
|
object.body = a1;
|
|
object.rejectWithError = false;
|
|
yield Reflect.apply(post, HTTP, [object]);
|
|
const value3 = undefined;
|
|
if (false) {
|
|
return value3;
|
|
}
|
|
const body = value3.body;
|
|
value = env2_1(env2_2[3]);
|
|
value.dispatch({type: 'USER_RESTRICTED_SCHEDULE_UPDATE', userId: a0, restrictedSchedule: body});
|
|
return body;
|
|
}
|
|
|
|
}
|
|
|
|
function _updateRestrictedScheduleRule() { // fn#102284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:454, offset: 0x02235b8a, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun102286).apply(this, arguments);
|
|
function* _fun102286(a0, a1, a2) { // fn#102286, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:535, offset: 0x02235bc7, size: 167 bytes, params: 4, frame: 19
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const HTTP = env2_0(env2_2[2]).HTTP;
|
|
const patch = HTTP.patch;
|
|
const object = {};
|
|
object.url = env2_4.FAMILY_CENTER_RESTRICTED_SCHEDULE_RULES(a0, a1);
|
|
object.body = a2;
|
|
object.rejectWithError = false;
|
|
yield Reflect.apply(patch, HTTP, [object]);
|
|
const value3 = undefined;
|
|
if (false) {
|
|
return value3;
|
|
}
|
|
const body = value3.body;
|
|
value = env2_1(env2_2[3]);
|
|
value.dispatch({type: 'USER_RESTRICTED_SCHEDULE_UPDATE', userId: a0, restrictedSchedule: body});
|
|
return body;
|
|
}
|
|
|
|
}
|
|
|
|
function _deleteRestrictedScheduleRule() { // fn#102287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:794, offset: 0x02235c6e, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun102289).apply(this, arguments);
|
|
function* _fun102289(a0, a1) { // fn#102289, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13639:875, offset: 0x02235cab, size: 160 bytes, params: 3, frame: 19
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var HTTP = env2_0(env2_2[2]).HTTP;
|
|
var del = HTTP.del;
|
|
var object = {};
|
|
object.url = env2_4.FAMILY_CENTER_RESTRICTED_SCHEDULE_RULES(a0, a1);
|
|
object.rejectWithError = false;
|
|
yield Reflect.apply(del, HTTP, [object]);
|
|
var value3 = undefined;
|
|
if (false) {
|
|
return value3;
|
|
}
|
|
var body = value3.body;
|
|
value = env2_1(env2_2[3]);
|
|
value.dispatch({type: 'USER_RESTRICTED_SCHEDULE_UPDATE', userId: a0, restrictedSchedule: body});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun102280, 13449, [5, 661, 507, 694, 2]) /* metro module 13449, dependencies: [5, 661, 507, 694, 2] */;
|