decord/stable/source/stores/ChangeVanityURLModalStore.tsx
2026-10-06 22:12:49 +00:00

52 lines
1.6 KiB
TypeScript

// Module ID: 17447
// Function ID: 17448
// Name: ChangeVanityURLModalStore
// Dependencies: [1086, 504, 585, 2]
// Module 17447 (ChangeVanityURLModalStore)
import get_initializedDefault from "get initialized" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 585 */;
import Constants from "Constants" /* 1086 */;
import size from "module_2" /* 2 */;
const FormStates = Constants.FormStates;
const _false = {};
let CLOSED = FormStates.CLOSED;
const hasOwnProperty = null;
const Store = get_initializedDefault.Store;
class ChangeVanityURLModalStore extends Store {
isOpen() {
return CLOSED !== FormStates.CLOSED;
}
getProps() {
return { submitting: CLOSED === FormStates.SUBMITTING, errorDetails, errors, guildId, code };
}
}
const prototype = ChangeVanityURLModalStore.prototype;
ChangeVanityURLModalStore.displayName = "ChangeVanityURLModalStore";
const obj = {
CHANGE_VANITY_URL_MODAL_OPEN: function handleOpen(arg0) {
let c0;
let c1;
CLOSED = FormStates.OPEN;
({ guildId: c0, code: c1 } = arg0);
let c5 = null;
},
CHANGE_VANITY_URL_MODAL_SUBMIT: function handleSubmit() {
CLOSED = FormStates.SUBMITTING;
},
CHANGE_VANITY_URL_MODAL_SUBMIT_FAILURE: function handleSubmitFailure(error) {
CLOSED = FormStates.OPEN;
error = error.error;
},
CHANGE_VANITY_URL_MODAL_CLOSE: function handleClose() {
CLOSED = FormStates.CLOSED;
let c0 = null;
let c1 = null;
let c5 = null;
}
};
const changeVanityURLModalStore = new ChangeVanityURLModalStore(DispatcherDefault, obj);
const result = size.fileFinishedImporting("stores/ChangeVanityURLModalStore.tsx");
export default changeVanityURLModalStore;