decord/beta/source/stores/ChangeVanityURLModalStore.tsx

53 lines
1.6 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 18441
// Function ID: 18442
// Name: ChangeVanityURLModalStore
2026-10-07 22:43:51 +00:00
// Dependencies: [1085, 504, 584, 2]
2026-10-12 16:32:48 +00:00
// Module 18441 (ChangeVanityURLModalStore)
2026-10-01 14:13:23 +00:00
import get_initializedDefault from "get initialized" /* 504 */;
2026-10-07 22:43:51 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
import Constants from "Constants" /* 1085 */;
import size from "module_2" /* 2 */;
const FormStates = Constants.FormStates;
2026-10-01 14:13:23 +00:00
const _false = {};
let CLOSED = FormStates.CLOSED;
2026-10-01 14:13:23 +00:00
const hasOwnProperty = null;
const Store = get_initializedDefault.Store;
class ChangeVanityURLModalStore extends Store {
2026-10-01 14:13:23 +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-01 14:13:23 +00:00
const obj = {
CHANGE_VANITY_URL_MODAL_OPEN: function handleOpen(arg0) {
2026-10-01 14:13:23 +00:00
let c0;
let c1;
CLOSED = FormStates.OPEN;
({ guildId: c0, code: c1 } = arg0);
2026-10-01 14:13:23 +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-01 14:13:23 +00:00
let c0 = null;
let c1 = null;
let c5 = null;
}
2026-10-01 14:13:23 +00:00
};
const changeVanityURLModalStore = new ChangeVanityURLModalStore(DispatcherDefault, obj);
const result = size.fileFinishedImporting("stores/ChangeVanityURLModalStore.tsx");
export default changeVanityURLModalStore;