decord/source/stores/ChangeVanityURLModalStore.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

49 lines
1.6 KiB
TypeScript

// Module ID: 17646
// Function ID: 17647
// Name: FormStates
// Dependencies: [1074, 504, 573, 2]
// Module 17646 (FormStates)
import set from "set" /* 2 */;
import initializeDefault from "initialize" /* 504 */;
import dispatcherDefault from "dispatcher" /* 573 */;
import ME from "ME" /* 1074 */;
const FormStates = ME.FormStates;
let closure_3 = {};
let CLOSED = FormStates.CLOSED;
let c5 = null;
const Store = initializeDefault.Store;
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";
const changeVanityURLModalStore = new ChangeVanityURLModalStore(dispatcherDefault, {
CHANGE_VANITY_URL_MODAL_OPEN: function handleOpen(arg0) {
const OPEN = FormStates.OPEN;
({ guildId: closure_0, code: closure_1 } = arg0);
c5 = null;
},
CHANGE_VANITY_URL_MODAL_SUBMIT: function handleSubmit() {
const SUBMITTING = FormStates.SUBMITTING;
},
CHANGE_VANITY_URL_MODAL_SUBMIT_FAILURE: function handleSubmitFailure(error) {
const OPEN = FormStates.OPEN;
error = error.error;
},
CHANGE_VANITY_URL_MODAL_CLOSE: function handleClose() {
CLOSED = FormStates.CLOSED;
c0 = null;
c1 = null;
c5 = null;
}
});
const result = set.fileFinishedImporting("stores/ChangeVanityURLModalStore.tsx");
export default changeVanityURLModalStore;