decord/source/stores/ChangeVanityURLModalStore.tsx

50 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 16989
// Function ID: 16990
2026-07-29 08:29:29 +00:00
// Name: FormStates
// Dependencies: [676, 589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-25 06:04:03 +00:00
// Module 16989 (FormStates)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import initializeDefault from "initialize" /* 589 */;
import ME from "ME" /* 676 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const FormStates = ME.FormStates;
2026-07-29 08:29:29 +00:00
let closure_3 = {};
2026-07-23 10:11:24 +00:00
let CLOSED = FormStates.CLOSED;
2026-07-29 08:29:29 +00:00
let c5 = null;
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class ChangeVanityURLModalStore extends Store {
}
const prototype = ChangeVanityURLModalStore.prototype;
prototype["isOpen"] = function isOpen() {
return CLOSED !== FormStates.CLOSED;
};
prototype["getProps"] = function getProps() {
return { submitting: CLOSED === FormStates.SUBMITTING, errorDetails: c5, errors: closure_3, guildId: closure_0, code: closure_1 };
};
ChangeVanityURLModalStore.displayName = "ChangeVanityURLModalStore";
2026-08-24 06:08:38 +00:00
const changeVanityURLModalStore = new ChangeVanityURLModalStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
CHANGE_VANITY_URL_MODAL_OPEN: function handleOpen(arg0) {
2026-07-23 10:11:24 +00:00
const OPEN = FormStates.OPEN;
2026-07-29 08:29:29 +00:00
({ guildId: closure_0, code: closure_1 } = arg0);
2026-08-24 06:08:38 +00:00
c5 = null;
2026-07-20 16:05:17 +00:00
},
CHANGE_VANITY_URL_MODAL_SUBMIT: function handleSubmit() {
2026-07-23 10:11:24 +00:00
const SUBMITTING = FormStates.SUBMITTING;
2026-07-20 16:05:17 +00:00
},
CHANGE_VANITY_URL_MODAL_SUBMIT_FAILURE: function handleSubmitFailure(error) {
2026-07-23 10:11:24 +00:00
const OPEN = FormStates.OPEN;
2026-07-20 16:05:17 +00:00
error = error.error;
},
CHANGE_VANITY_URL_MODAL_CLOSE: function handleClose() {
2026-08-24 06:08:38 +00:00
CLOSED = FormStates.CLOSED;
c0 = null;
c1 = null;
c5 = null;
2026-07-20 16:05:17 +00:00
}
});
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("stores/ChangeVanityURLModalStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default changeVanityURLModalStore;