decord/stable/source/stores/ChangeVanityURLModalStore.tsx

53 lines
1.6 KiB
TypeScript
Raw Permalink Normal View History

2026-10-06 22:12:49 +00:00
// Module ID: 17447
// Function ID: 17448
// Name: ChangeVanityURLModalStore
2026-10-06 22:12:49 +00:00
// Dependencies: [1086, 504, 585, 2]
2026-10-06 22:12:49 +00:00
// 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;
2026-10-06 22:12:49 +00:00
const _false = {};
let CLOSED = FormStates.CLOSED;
2026-10-06 22:12:49 +00:00
const hasOwnProperty = null;
const Store = get_initializedDefault.Store;
class ChangeVanityURLModalStore extends Store {
2026-10-06 22:12:49 +00:00
isOpen() {
return CLOSED !== FormStates.CLOSED;
}
getProps() {
return { submitting: CLOSED === FormStates.SUBMITTING, errorDetails, errors, guildId, code };
}
}
const prototype = ChangeVanityURLModalStore.prototype;
ChangeVanityURLModalStore.displayName = "ChangeVanityURLModalStore";
2026-10-06 22:12:49 +00:00
const obj = {
CHANGE_VANITY_URL_MODAL_OPEN: function handleOpen(arg0) {
2026-10-06 22:12:49 +00:00
let c0;
let c1;
CLOSED = FormStates.OPEN;
({ guildId: c0, code: c1 } = arg0);
2026-10-06 22:12:49 +00:00
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;
2026-10-06 22:12:49 +00:00
let c0 = null;
let c1 = null;
let c5 = null;
}
2026-10-06 22:12:49 +00:00
};
const changeVanityURLModalStore = new ChangeVanityURLModalStore(DispatcherDefault, obj);
const result = size.fileFinishedImporting("stores/ChangeVanityURLModalStore.tsx");
export default changeVanityURLModalStore;