decord/source/stores/ChangeVanityURLModalStore.tsx

48 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 16584
// Function ID: 16585
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-05 07:35:12 +00:00
// Module 16584 (FormStates)
2026-07-23 10:11:24 +00:00
import { FormStates } from "ME";
2026-07-29 08:29:29 +00:00
import { Store } from "initialize";
2026-07-20 16:05:17 +00:00
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;
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(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
CHANGE_VANITY_URL_MODAL_OPEN: function handleOpen(arg0) {
2026-07-29 08:29:29 +00:00
let closure_0;
let closure_1;
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);
let 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() {
const CLOSED = FormStates.CLOSED;
2026-07-29 08:29:29 +00:00
let c0 = null;
let c1 = null;
let c5 = null;
2026-07-20 16:05:17 +00:00
}
});
2026-07-29 08:29:29 +00:00
const result = require("dispatcher").fileFinishedImporting("stores/ChangeVanityURLModalStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default changeVanityURLModalStore;