decord/alpha/source/stores/ChangeVanityURLModalStore.tsx

53 lines
1.6 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 18445
// Function ID: 18446
// Name: ChangeVanityURLModalStore
2026-10-03 08:58:59 +00:00
// Dependencies: [1085, 504, 584, 2]
2026-07-23 10:11:24 +00:00
2026-10-13 12:43:34 +00:00
// Module 18445 (ChangeVanityURLModalStore)
2026-10-03 08:58:59 +00:00
import get_initializedDefault from "get initialized" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 584 */;
import Constants from "Constants" /* 1085 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
const FormStates = Constants.FormStates;
2026-10-03 08:58:59 +00:00
const _false = {};
2026-07-23 10:11:24 +00:00
let CLOSED = FormStates.CLOSED;
2026-10-03 08:58:59 +00:00
const hasOwnProperty = null;
const Store = get_initializedDefault.Store;
2026-07-29 08:29:29 +00:00
class ChangeVanityURLModalStore extends Store {
2026-10-03 08:58:59 +00:00
isOpen() {
return CLOSED !== FormStates.CLOSED;
}
getProps() {
return { submitting: CLOSED === FormStates.SUBMITTING, errorDetails, errors, guildId, code };
}
2026-07-29 08:29:29 +00:00
}
const prototype = ChangeVanityURLModalStore.prototype;
ChangeVanityURLModalStore.displayName = "ChangeVanityURLModalStore";
2026-10-03 08:58:59 +00:00
const obj = {
2026-07-20 16:05:17 +00:00
CHANGE_VANITY_URL_MODAL_OPEN: function handleOpen(arg0) {
2026-10-03 08:58:59 +00:00
let c0;
let c1;
CLOSED = FormStates.OPEN;
({ guildId: c0, code: c1 } = arg0);
2026-10-03 08:58:59 +00:00
let c5 = null;
2026-07-20 16:05:17 +00:00
},
CHANGE_VANITY_URL_MODAL_SUBMIT: function handleSubmit() {
CLOSED = FormStates.SUBMITTING;
2026-07-20 16:05:17 +00:00
},
CHANGE_VANITY_URL_MODAL_SUBMIT_FAILURE: function handleSubmitFailure(error) {
CLOSED = FormStates.OPEN;
2026-07-20 16:05:17 +00:00
error = error.error;
},
CHANGE_VANITY_URL_MODAL_CLOSE: function handleClose() {
2026-08-24 06:08:38 +00:00
CLOSED = FormStates.CLOSED;
2026-10-03 08:58:59 +00:00
let c0 = null;
let c1 = null;
let c5 = null;
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
};
const changeVanityURLModalStore = new ChangeVanityURLModalStore(DispatcherDefault, obj);
const result = size.fileFinishedImporting("stores/ChangeVanityURLModalStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default changeVanityURLModalStore;