text: export const FORM_ELEMENTS = {
    elements: {},
    validate() {
      const elements = this.elements;
      Object.keys(elements).forEach((k) => {
        elements[k].validate();
      });
    },
    isValid() {
      const elements = this.elements;
      const valid = Object.keys(elements)
        .map(k => elements[k].isValid())
        .filter(v => v !== null)
        .every(element => element);
  
      return valid;
    }
  };
  
  export default { FORM_ELEMENTS };
  