52 lines
1.6 KiB
TypeScript
52 lines
1.6 KiB
TypeScript
// Module ID: 17814
|
|
// Function ID: 17815
|
|
// Name: ChangeVanityURLModalStore
|
|
// Dependencies: [1085, 504, 584, 2]
|
|
|
|
// Module 17814 (ChangeVanityURLModalStore)
|
|
import get_initializedDefault from "get initialized" /* 504 */;
|
|
import DispatcherDefault from "Dispatcher" /* 584 */;
|
|
import Constants from "Constants" /* 1085 */;
|
|
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;
|