decord/source/modules/guild_settings/GuildSettingsModalMembersStore.tsx

143 lines
3.9 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 10966
// Function ID: 85280
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-25 08:10:48 +00:00
// Dependencies: [6, 7, 15, 17, 18, 1918, 653, 566, 686, 2]
2026-07-23 10:11:24 +00:00
2026-07-27 11:26:19 +00:00
// Module 10966 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import ME from "ME";
import initialize from "initialize";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { FormStates } from "ME";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
let ME = !valueOf.call(Reflect.construct(Boolean, [], () => {
2026-07-20 16:05:17 +00:00
}));
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
return ME;
2026-07-20 16:05:17 +00:00
}
const result = _isNativeReflectConstruct();
}
function handleStopEditingRoles() {
2026-07-23 10:11:24 +00:00
let c7 = null;
let c8 = false;
let c9 = null;
let c10 = null;
let c11 = null;
2026-07-20 16:05:17 +00:00
}
function handleChangeNicknameSuccess() {
2026-07-23 10:11:24 +00:00
let c9 = null;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c7 = null;
let c8 = false;
let c9 = null;
let c10 = null;
let c11 = null;
let tmp2 = ((Store) => {
2026-07-20 16:05:17 +00:00
class GuildSettingsModalMembersStore {
constructor() {
self = this;
tmp = GuildSettingsModalMembersStore(this, GuildSettingsModalMembersStore);
2026-07-23 10:11:24 +00:00
obj = outer1_3(GuildSettingsModalMembersStore);
tmp2 = outer1_2;
if (outer1_12()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_3;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_3(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(GuildSettingsModalMembersStore, Store);
let obj = {
key: "initialize",
value() {
2026-07-23 10:11:24 +00:00
this.waitFor(outer1_5);
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, , , , , ];
obj = {
key: "isSubmitting",
get() {
2026-07-23 10:11:24 +00:00
return outer1_7 === outer1_6.SUBMITTING;
2026-07-20 16:05:17 +00:00
}
};
items[1] = obj;
obj = {
key: "isEditing",
get() {
2026-07-23 10:11:24 +00:00
return outer1_8;
2026-07-20 16:05:17 +00:00
}
};
items[2] = obj;
items[3] = {
key: "roles",
get() {
2026-07-23 10:11:24 +00:00
return outer1_11;
2026-07-20 16:05:17 +00:00
}
};
items[4] = {
key: "memberId",
get() {
2026-07-23 10:11:24 +00:00
return outer1_10;
2026-07-20 16:05:17 +00:00
}
};
items[5] = {
key: "nicknameError",
get() {
2026-07-23 10:11:24 +00:00
return outer1_9;
2026-07-20 16:05:17 +00:00
}
};
return callback(GuildSettingsModalMembersStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "GuildSettingsModalMembersStore";
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
GUILD_SETTINGS_MODAL_MEMBERS_START_EDITING: function handleStartEditingRoles(userId) {
userId = userId.userId;
2026-07-23 10:11:24 +00:00
member = member.getMember(userId.guildId, userId);
2026-07-20 16:05:17 +00:00
if (null == member) {
return false;
} else {
const OPEN = FormStates.OPEN;
2026-07-23 10:11:24 +00:00
let c8 = true;
2026-07-20 16:05:17 +00:00
const roles = member.roles;
}
},
GUILD_SETTINGS_MODAL_MEMBERS_STOP_EDITING: handleStopEditingRoles,
GUILD_SETTINGS_MODAL_MEMBERS_ROLES_SAVE_COMPLETE: handleStopEditingRoles,
GUILD_SETTINGS_MODAL_MEMBERS_TOGGLE_ROLE: function handleToggleRole(roleId) {
roleId = roleId.roleId;
2026-07-23 10:11:24 +00:00
if (null == found) {
2026-07-20 16:05:17 +00:00
return false;
2026-07-23 10:11:24 +00:00
} else if (tmp) {
const items = [];
const arraySpreadResult = HermesBuiltin.arraySpread(arr, 0);
items[arraySpreadResult] = roleId;
const sum = arraySpreadResult + 1;
found = items;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
found = arr.filter((arg0) => arg0 !== roleId);
2026-07-20 16:05:17 +00:00
}
},
GUILD_SETTINGS_MODAL_MEMBERS_ROLES_SAVE: function handleSaveRoles() {
const SUBMITTING = FormStates.SUBMITTING;
},
GUILD_SETTINGS_MODAL_MEMBERS_START_EDITING_NICKNAME: handleChangeNicknameSuccess,
GUILD_SETTINGS_MODAL_MEMBERS_CHANGE_NICKNAME_SUCCESS: handleChangeNicknameSuccess,
GUILD_SETTINGS_MODAL_MEMBERS_CHANGE_NICKNAME_FAILURE: function handleChangeNicknameFailure(error) {
error = error.error;
}
});
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("modules/guild_settings/GuildSettingsModalMembersStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;