   SPLIT =
     A:
       message: Messages.personallyMotivated
-      input: Input.radios
+      input: Input.min
       feedback: Feedback.image
     B:
       message: Messages.personallyMotivated
-      input: Input.radios
+      input: Input.min
       feedback: Feedback.message
     C:
       message: Messages.personallyMotivated
-      input: Input.slider
+      input: Input.max
       feedback: Feedback.image
     D:
       message: Messages.personallyMotivated
-      input: Input.slider
+      input: Input.max
       feedback: Feedback.message
     E:
       message: Messages.sociallyMotivated
-      input: Input.radios
+      input: Input.min
       feedback: Feedback.image
     F:
       message: Messages.sociallyMotivated
-      input: Input.radios
+      input: Input.min
       feedback: Feedback.message
     G:
       message: Messages.sociallyMotivated
-      input: Input.slider
+      input: Input.max
       feedback: Feedback.image
     H:
       message: Messages.sociallyMotivated
-      input: Input.slider
+      input: Input.max
       feedback: Feedback.message
 
   constructor: (@splitGroup) ->

  IMAGE_FILES = [26, 27, 29, 30, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 49, 50, 51, 52, 61]

  @sampleArray: (arr) -> arr[Math.floor(Math.random() * arr.length)]
  @randomKelpImage: -> @sampleArray(IMAGE_FILES)

  Input =
    slider: """
      <p id='slider-val'>0 Classifications</p>
      <form id='user-goal-form'>
        <input type='range' id='user-goal-slider' value='25' min='1' max='50' step='1'>
      </form>
    """
    radios: """
      <form id='user-goal-form'>
        <input type="radio" name="goal-radio" value="10">10
        <input type="radio" name="goal-radio" value="20">20
        <input type="radio" name="goal-radio" value="30">30
        <input type="radio" name="goal-radio" value="40">40
        <input type="radio" name="goal-radio" value="50">50
      </form>
    """

  Feedback =
    message: "<h1 class='user-goal-feedback-message'>Classification Goal Achieved!<br>Thank you for your efforts!</h1>"

    time.setMinutes(time.getMinutes() + SESSION_TIME)
    User?.current?.setPreference "goal_end_date", time

module?.exports = UserGoals
