text: /**
   * # authInitialState.js
   * 
   * This class is a Immutable object
   * Working *successfully* with Redux, requires
   * state that is immutable.
   * In my opinion, that can not be by convention
   * By using Immutable, it's enforced.  Just saying....
   *
   */
  'use strict';
  /**
   * ## Import
   */
  import {Record} from 'immutable';
  import {
    LOGIN_STATE_REGISTER
  } from '../../lib/constants';
  
  /**
   * ## Form
   * This Record contains the state of the form and the
   * fields it contains.
   */
  const Form = Record({
    state: LOGIN_STATE_REGISTER,
    disabled: false,
    error: null,
    isValid: false,
    isFetching: false,
    fields: new (Record({
      username: '',
      usernameHasError: false,
      email: '',
      emailHasError: false,
      password: '',
      passwordHasError: false,
      passwordAgain: '',
      passwordAgainHasError: false,
      showPassword: false
    }))
  });
  
  /**
   * ## InitialState
   * The form is set 
   */
  var InitialState = Record({
    form: new Form
  });
  export default InitialState;
  
  