decord/source/stores/NotificationSettingsModalStore.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

73 lines
2.8 KiB
TypeScript

// Module ID: 17509
// Function ID: 17510
// Name: FormStates
// Dependencies: [1961, 7111, 2012, 4480, 1979, 4741, 1074, 504, 7112, 573, 2]
// Module 17509 (FormStates)
import set from "set" /* 2 */;
import initializeDefault from "initialize" /* 504 */;
import dispatcherDefault from "dispatcher" /* 573 */;
import createChannelRecord from "createChannelRecord" /* 1961 */;
import getFlattenedChannelListDefault from "getFlattenedChannelList" /* 7112 */;
import closure_4 from "setIndex" /* 7111 */;
import closure_5 from "comparator" /* 2012 */;
import closure_6 from "handleInviteData" /* 4480 */;
import closure_7 from "createGuildRecordFromRust" /* 1979 */;
import closure_8 from "updateUserGuildSettingsInternal" /* 4741 */;
import ME from "ME" /* 1074 */;
let closure_3 = createChannelRecord.isGuildSelectableChannelType;
const FormStates = ME.FormStates;
const ChannelTypes = ME.ChannelTypes;
let CLOSED = FormStates.CLOSED;
const Store = initializeDefault.Store;
class NotificationSettingsModalStore extends Store {
}
const prototype = NotificationSettingsModalStore.prototype;
prototype["initialize"] = function initialize() {
const self = this;
this.waitFor(closure_4, closure_5, closure_6, closure_7, closure_8);
const items = [closure_8, closure_5, closure_7];
this.syncWith(items, () => self.isOpen());
};
prototype["isOpen"] = function isOpen() {
return CLOSED !== FormStates.CLOSED;
};
prototype["getProps"] = function getProps() {
categories = categories.getCategories(closure_2);
return {
guildId: closure_2,
categories,
guild: guild.getGuild(closure_2),
memberCount: memberCount.getMemberCount(closure_2),
suppressEveryone: store.isSuppressEveryoneEnabled(closure_2),
suppressRoles: store.isSuppressRolesEnabled(closure_2),
mobilePush: store.isMobilePushEnabled(closure_2),
muted: store.isMuted(closure_2),
muteConfig: store.getMuteConfig(closure_2),
messageNotifications: store.getMessageNotifications(closure_2),
channelOverrides: store.getChannelOverrides(closure_2),
channels: getFlattenedChannelListDefault(categories._categories, categories, (channel) => {
const type = channel.channel.type;
let tmp = callback(type);
if (!tmp) {
tmp = type === constants.GUILD_CATEGORY;
}
return tmp;
})
};
};
NotificationSettingsModalStore.displayName = "NotificationSettingsModalStore";
const notificationSettingsModalStore = new NotificationSettingsModalStore(dispatcherDefault, {
NOTIFICATION_SETTINGS_MODAL_OPEN: function handleFormOpen(guildId) {
const OPEN = FormStates.OPEN;
guildId = guildId.guildId;
},
NOTIFICATION_SETTINGS_MODAL_CLOSE: function handleFormClose() {
CLOSED = FormStates.CLOSED;
c2 = null;
}
});
const result = set.fileFinishedImporting("stores/NotificationSettingsModalStore.tsx");
export default notificationSettingsModalStore;