| 
						
						
						
					 | 
					 | 
					@ -1,4 +1,21 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<template>
 | 
					 | 
					 | 
					 | 
					<template>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  <template
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    v-for="field in otherSubmitterFields"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    :key="field.uuid"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    <Teleport
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      v-for="(area, index) in field.areas"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      :key="index"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      :to="`#page-${area.attachment_uuid}-${area.page}`"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      <FieldArea
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        :model-value="values[field.uuid]"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        :field="field"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        :area="area"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        :attachments-index="attachmentsIndex"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      />
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    </Teleport>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  </template>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  <FieldAreas
 | 
					 | 
					 | 
					 | 
					  <FieldAreas
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ref="areas"
 | 
					 | 
					 | 
					 | 
					    ref="areas"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    :steps="stepFields"
 | 
					 | 
					 | 
					 | 
					    :steps="stepFields"
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -7,206 +24,221 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    :current-step="currentStepFields"
 | 
					 | 
					 | 
					 | 
					    :current-step="currentStepFields"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @focus-step="goToStep($event, false, true)"
 | 
					 | 
					 | 
					 | 
					    @focus-step="goToStep($event, false, true)"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  />
 | 
					 | 
					 | 
					 | 
					  />
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  <form
 | 
					 | 
					 | 
					 | 
					  <div>
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    v-if="!isCompleted"
 | 
					 | 
					 | 
					 | 
					    <form
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ref="form"
 | 
					 | 
					 | 
					 | 
					      v-if="!isCompleted"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    :action="submitPath"
 | 
					 | 
					 | 
					 | 
					      ref="form"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    method="post"
 | 
					 | 
					 | 
					 | 
					      :action="submitPath"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    class="md:mx-16"
 | 
					 | 
					 | 
					 | 
					      method="post"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @submit.prevent="submitStep"
 | 
					 | 
					 | 
					 | 
					      class="md:mx-16"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  >
 | 
					 | 
					 | 
					 | 
					      @submit.prevent="submitStep"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <input
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      type="hidden"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      name="authenticity_token"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      :value="authenticityToken"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    >
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <input
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      v-if="currentStep === stepFields.length - 1"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      type="hidden"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      name="completed"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      value="true"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    >
 | 
					 | 
					 | 
					 | 
					    >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <input
 | 
					 | 
					 | 
					 | 
					      <input
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      value="put"
 | 
					 | 
					 | 
					 | 
					        type="hidden"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      name="_method"
 | 
					 | 
					 | 
					 | 
					        name="authenticity_token"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      type="hidden"
 | 
					 | 
					 | 
					 | 
					        :value="authenticityToken"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    >
 | 
					 | 
					 | 
					 | 
					      >
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <div class="mt-4">
 | 
					 | 
					 | 
					 | 
					      <input
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <div v-if="currentField.type === 'text'">
 | 
					 | 
					 | 
					 | 
					        v-if="currentStep === stepFields.length - 1"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <label
 | 
					 | 
					 | 
					 | 
					        type="hidden"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          v-if="currentField.name"
 | 
					 | 
					 | 
					 | 
					        name="completed"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          :for="currentField.uuid"
 | 
					 | 
					 | 
					 | 
					        value="true"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          class="label text-2xl mb-2"
 | 
					 | 
					 | 
					 | 
					      >
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        >{{ currentField.name }}</label>
 | 
					 | 
					 | 
					 | 
					      <input
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <div>
 | 
					 | 
					 | 
					 | 
					        value="put"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          <input
 | 
					 | 
					 | 
					 | 
					        name="_method"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            :id="currentField.uuid"
 | 
					 | 
					 | 
					 | 
					        type="hidden"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            v-model="values[currentField.uuid]"
 | 
					 | 
					 | 
					 | 
					      >
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            class="base-input !text-2xl w-full"
 | 
					 | 
					 | 
					 | 
					      <div class="mt-4">
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            :required="currentField.required"
 | 
					 | 
					 | 
					 | 
					        <div v-if="currentField.type === 'text'">
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            placeholder="Type here..."
 | 
					 | 
					 | 
					 | 
					          <label
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            type="text"
 | 
					 | 
					 | 
					 | 
					            v-if="currentField.name"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            :name="`values[${currentField.uuid}]`"
 | 
					 | 
					 | 
					 | 
					            :for="currentField.uuid"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            @focus="$refs.areas.scrollIntoField(currentField)"
 | 
					 | 
					 | 
					 | 
					            class="label text-2xl mb-2"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          >
 | 
					 | 
					 | 
					 | 
					          >{{ currentField.name }}</label>
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          <div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            <input
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              :id="currentField.uuid"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              v-model="values[currentField.uuid]"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              class="base-input !text-2xl w-full"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              :required="currentField.required"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              placeholder="Type here..."
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              type="text"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              :name="`values[${currentField.uuid}]`"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              @focus="$refs.areas.scrollIntoField(currentField)"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </div>
 | 
					 | 
					 | 
					 | 
					        </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      </div>
 | 
					 | 
					 | 
					 | 
					        <div v-else-if="currentField.type === 'date'">
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <div v-else-if="currentField.type === 'date'">
 | 
					 | 
					 | 
					 | 
					          <label
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <label
 | 
					 | 
					 | 
					 | 
					            v-if="currentField.name"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          v-if="currentField.name"
 | 
					 | 
					 | 
					 | 
					            :for="currentField.uuid"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          :for="currentField.uuid"
 | 
					 | 
					 | 
					 | 
					            class="label text-2xl mb-2"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          class="label text-2xl mb-2"
 | 
					 | 
					 | 
					 | 
					          >{{ currentField.name }}</label>
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        >{{ currentField.name }}</label>
 | 
					 | 
					 | 
					 | 
					          <div class="text-center">
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <div class="text-center">
 | 
					 | 
					 | 
					 | 
					            <input
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          <input
 | 
					 | 
					 | 
					 | 
					              :id="currentField.uuid"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              v-model="values[currentField.uuid]"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              class="base-input !text-2xl text-center w-full"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              :required="currentField.required"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              type="date"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              :name="`values[${currentField.uuid}]`"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              @focus="$refs.areas.scrollIntoField(currentField)"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        <div v-else-if="currentField.type === 'select'">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          <label
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            v-if="currentField.name"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            :for="currentField.uuid"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            class="label text-2xl mb-2"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          >{{ currentField.name }}</label>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          <select
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            :id="currentField.uuid"
 | 
					 | 
					 | 
					 | 
					            :id="currentField.uuid"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            v-model="values[currentField.uuid]"
 | 
					 | 
					 | 
					 | 
					            :required="true"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            class="base-input !text-2xl text-center w-full"
 | 
					 | 
					 | 
					 | 
					            class="select base-input !text-2xl w-full text-center font-normal"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            :required="currentField.required"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            type="date"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            :name="`values[${currentField.uuid}]`"
 | 
					 | 
					 | 
					 | 
					            :name="`values[${currentField.uuid}]`"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            @change="values[currentField.uuid] = $event.target.value"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            @focus="$refs.areas.scrollIntoField(currentField)"
 | 
					 | 
					 | 
					 | 
					            @focus="$refs.areas.scrollIntoField(currentField)"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          >
 | 
					 | 
					 | 
					 | 
					          >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            <option
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              value=""
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              :selected="!values[currentField.uuid]"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              Select your option
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            </option>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            <option
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              v-for="(option, index) in currentField.options"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              :key="index"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              :selected="values[currentField.uuid] == option"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              :value="option"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              {{ option }}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            </option>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          </select>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </div>
 | 
					 | 
					 | 
					 | 
					        </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      </div>
 | 
					 | 
					 | 
					 | 
					        <div v-else-if="currentField.type === 'radio'">
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <div v-else-if="currentField.type === 'select'">
 | 
					 | 
					 | 
					 | 
					          <label
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <label
 | 
					 | 
					 | 
					 | 
					            v-if="currentField.name"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          v-if="currentField.name"
 | 
					 | 
					 | 
					 | 
					            :for="currentField.uuid"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          :for="currentField.uuid"
 | 
					 | 
					 | 
					 | 
					            class="label text-2xl mb-2"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          class="label text-2xl mb-2"
 | 
					 | 
					 | 
					 | 
					          >{{ currentField.name }}</label>
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        >{{ currentField.name }}</label>
 | 
					 | 
					 | 
					 | 
					          <div class="flex w-full">
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <select
 | 
					 | 
					 | 
					 | 
					            <div class="space-y-3.5 mx-auto">
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          :id="currentField.uuid"
 | 
					 | 
					 | 
					 | 
					              <div
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          :required="true"
 | 
					 | 
					 | 
					 | 
					                v-for="(option, index) in currentField.options"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          class="select base-input !text-2xl w-full text-center font-normal"
 | 
					 | 
					 | 
					 | 
					                :key="index"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          :name="`values[${currentField.uuid}]`"
 | 
					 | 
					 | 
					 | 
					              >
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          @change="values[currentField.uuid] = $event.target.value"
 | 
					 | 
					 | 
					 | 
					                <label
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          @focus="$refs.areas.scrollIntoField(currentField)"
 | 
					 | 
					 | 
					 | 
					                  :for="currentField.uuid + option"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                  class="flex items-center space-x-3"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                  <input
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    :id="currentField.uuid + option"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    v-model="values[currentField.uuid]"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    type="radio"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    class="base-radio !h-7 !w-7"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    :name="`values[${currentField.uuid}]`"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    :value="option"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    required
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                  >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                  <span class="text-xl">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                    {{ option }}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                  </span>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                </label>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					              </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        <MultiSelectStep
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          v-else-if="currentField.type === 'multiple'"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          v-model="values[currentField.uuid]"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          :field="currentField"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        />
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        <div
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          v-else-if="currentField.type === 'checkbox'"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          class="flex w-full"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        >
 | 
					 | 
					 | 
					 | 
					        >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          <option
 | 
					 | 
					 | 
					 | 
					          <input
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            value=""
 | 
					 | 
					 | 
					 | 
					            type="hidden"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            :selected="!values[currentField.uuid]"
 | 
					 | 
					 | 
					 | 
					            name="cast_boolean"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            value="true"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          >
 | 
					 | 
					 | 
					 | 
					          >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            Select your option
 | 
					 | 
					 | 
					 | 
					          <div
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          </option>
 | 
					 | 
					 | 
					 | 
					            class="space-y-3.5 mx-auto"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          <option
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            v-for="(option, index) in currentField.options"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            :key="index"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            :selected="values[currentField.uuid] == option"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            :value="option"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          >
 | 
					 | 
					 | 
					 | 
					          >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            {{ option }}
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          </option>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </select>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      </div>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <div v-else-if="currentField.type === 'radio'">
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <label
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          v-if="currentField.name"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          :for="currentField.uuid"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          class="label text-2xl mb-2"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        >{{ currentField.name }}</label>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <div class="flex w-full">
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          <div class="space-y-3.5 mx-auto">
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <div
 | 
					 | 
					 | 
					 | 
					            <div
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              v-for="(option, index) in currentField.options"
 | 
					 | 
					 | 
					 | 
					              v-for="(field, index) in currentStepFields"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              :key="index"
 | 
					 | 
					 | 
					 | 
					              :key="field.uuid"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            >
 | 
					 | 
					 | 
					 | 
					            >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              <label
 | 
					 | 
					 | 
					 | 
					              <label
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                :for="currentField.uuid + option"
 | 
					 | 
					 | 
					 | 
					                :for="field.uuid"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                class="flex items-center space-x-3"
 | 
					 | 
					 | 
					 | 
					                class="flex items-center space-x-3"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              >
 | 
					 | 
					 | 
					 | 
					              >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                <input
 | 
					 | 
					 | 
					 | 
					                <input
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  :id="currentField.uuid + option"
 | 
					 | 
					 | 
					 | 
					                  type="hidden"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  v-model="values[currentField.uuid]"
 | 
					 | 
					 | 
					 | 
					                  :name="`values[${field.uuid}]`"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  type="radio"
 | 
					 | 
					 | 
					 | 
					                  :value="!!values[field.uuid]"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  class="base-radio !h-7 !w-7"
 | 
					 | 
					 | 
					 | 
					                >
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  :name="`values[${currentField.uuid}]`"
 | 
					 | 
					 | 
					 | 
					                <input
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  :value="option"
 | 
					 | 
					 | 
					 | 
					                  :id="field.uuid"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  required
 | 
					 | 
					 | 
					 | 
					                  type="checkbox"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                  class="base-checkbox !h-7 !w-7"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                  :checked="!!values[field.uuid]"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                  @click="values[field.uuid] = !values[field.uuid]"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                >
 | 
					 | 
					 | 
					 | 
					                >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                <span class="text-xl">
 | 
					 | 
					 | 
					 | 
					                <span class="text-xl">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                  {{ option }}
 | 
					 | 
					 | 
					 | 
					                  {{ currentField.name || currentField.type + ' ' + (index + 1) }}
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                </span>
 | 
					 | 
					 | 
					 | 
					                </span>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              </label>
 | 
					 | 
					 | 
					 | 
					              </label>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            </div>
 | 
					 | 
					 | 
					 | 
					            </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          </div>
 | 
					 | 
					 | 
					 | 
					          </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </div>
 | 
					 | 
					 | 
					 | 
					        </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        <ImageStep
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          v-else-if="currentField.type === 'image'"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          v-model="values[currentField.uuid]"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          :field="currentField"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          :attachments-index="attachmentsIndex"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          :submitter-slug="submitterSlug"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          @attached="attachments.push($event)"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        />
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        <SignatureStep
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          v-else-if="currentField.type === 'signature'"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          ref="currentStep"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          v-model="values[currentField.uuid]"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          :field="currentField"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          :attachments-index="attachmentsIndex"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          :submitter-slug="submitterSlug"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          @attached="attachments.push($event)"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        />
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        <AttachmentStep
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          v-else-if="currentField.type === 'file'"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          v-model="values[currentField.uuid]"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          :field="currentField"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          :attachments-index="attachmentsIndex"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          :submitter-slug="submitterSlug"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          @attached="attachments.push($event)"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        />
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      </div>
 | 
					 | 
					 | 
					 | 
					      </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <MultiSelectStep
 | 
					 | 
					 | 
					 | 
					      <div class="mt-8">
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        v-else-if="currentField.type === 'multiple'"
 | 
					 | 
					 | 
					 | 
					        <button
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        v-model="values[currentField.uuid]"
 | 
					 | 
					 | 
					 | 
					          type="submit"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        :field="currentField"
 | 
					 | 
					 | 
					 | 
					          class="base-button w-full"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      />
 | 
					 | 
					 | 
					 | 
					          :disabled="isSubmitting"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <div
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        v-else-if="currentField.type === 'checkbox'"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        class="flex w-full"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      >
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <div
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          class="space-y-3.5 mx-auto"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        >
 | 
					 | 
					 | 
					 | 
					        >
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          <div
 | 
					 | 
					 | 
					 | 
					          <span v-if="isSubmitting">
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            v-for="(field, index) in currentStepFields"
 | 
					 | 
					 | 
					 | 
					            Submitting...
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            :key="field.uuid"
 | 
					 | 
					 | 
					 | 
					          </span>
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          >
 | 
					 | 
					 | 
					 | 
					          <span v-else>
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <label
 | 
					 | 
					 | 
					 | 
					            Submit
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              :for="field.uuid"
 | 
					 | 
					 | 
					 | 
					          </span>
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              class="flex items-center space-x-3"
 | 
					 | 
					 | 
					 | 
					        </button>
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            >
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              <input
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                :id="field.uuid"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                type="checkbox"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                :name="`values[${field.uuid}]`"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                :value="false"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                class="base-checkbox !h-7 !w-7"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                :checked="!!values[field.uuid]"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                @click="values[field.uuid] = !values[field.uuid]"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              >
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              <span class="text-xl">
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                {{ currentField.name || currentField.type + ' ' + (index + 1) }}
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					              </span>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            </label>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          </div>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </div>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      </div>
 | 
					 | 
					 | 
					 | 
					      </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <ImageStep
 | 
					 | 
					 | 
					 | 
					    </form>
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        v-else-if="currentField.type === 'image'"
 | 
					 | 
					 | 
					 | 
					    <FormCompleted
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        v-model="values[currentField.uuid]"
 | 
					 | 
					 | 
					 | 
					      v-else
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        :field="currentField"
 | 
					 | 
					 | 
					 | 
					      :submitter-slug="submitterSlug"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        :attachments-index="attachmentsIndex"
 | 
					 | 
					 | 
					 | 
					    />
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        :submitter-slug="submitterSlug"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        @attached="attachments.push($event)"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      />
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <SignatureStep
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        v-else-if="currentField.type === 'signature'"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        ref="currentStep"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        v-model="values[currentField.uuid]"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        :field="currentField"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        :attachments-index="attachmentsIndex"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        :submitter-slug="submitterSlug"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        @attached="attachments.push($event)"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      />
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <AttachmentStep
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        v-else-if="currentField.type === 'file'"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        v-model="values[currentField.uuid]"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        :field="currentField"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        :attachments-index="attachmentsIndex"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        :submitter-slug="submitterSlug"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        @attached="attachments.push($event)"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      />
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </div>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <div class="mt-8">
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <button
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        type="submit"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        class="base-button w-full"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      >
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <span v-if="isSubmitting">
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          Submitting...
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </span>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <span v-else>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          Submit
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </span>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      </button>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </div>
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <div class="flex justify-center">
 | 
					 | 
					 | 
					 | 
					    <div class="flex justify-center">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <div class="flex items-center mt-5 mb-1">
 | 
					 | 
					 | 
					 | 
					      <div class="flex items-center mt-5 mb-1">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <a
 | 
					 | 
					 | 
					 | 
					        <a
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -214,20 +246,17 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          :key="step[0].uuid"
 | 
					 | 
					 | 
					 | 
					          :key="step[0].uuid"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          href="#"
 | 
					 | 
					 | 
					 | 
					          href="#"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          class="inline border border-base-300 h-3 w-3 rounded-full mx-1"
 | 
					 | 
					 | 
					 | 
					          class="inline border border-base-300 h-3 w-3 rounded-full mx-1"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          :class="{ 'bg-base-200': index === currentStep, 'bg-base-content': index < currentStep, 'bg-white': index > currentStep }"
 | 
					 | 
					 | 
					 | 
					          :class="{ 'bg-base-200': index === currentStep, 'bg-base-content': index < currentStep || isCompleted, 'bg-white': index > currentStep }"
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          @click.prevent="goToStep(step, true)"
 | 
					 | 
					 | 
					 | 
					          @click.prevent="isCompleted ? '' : goToStep(step, true)"
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        />
 | 
					 | 
					 | 
					 | 
					        />
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      </div>
 | 
					 | 
					 | 
					 | 
					      </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </div>
 | 
					 | 
					 | 
					 | 
					    </div>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  </form>
 | 
					 | 
					 | 
					 | 
					  </div>
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  <FormCompleted
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    v-else
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    :submitter-slug="submitterSlug"
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  />
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					</template>
 | 
					 | 
					 | 
					 | 
					</template>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<script>
 | 
					 | 
					 | 
					 | 
					<script>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import FieldAreas from './areas'
 | 
					 | 
					 | 
					 | 
					import FieldAreas from './areas'
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import FieldArea from './area'
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import ImageStep from './image_step'
 | 
					 | 
					 | 
					 | 
					import ImageStep from './image_step'
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import SignatureStep from './signature_step'
 | 
					 | 
					 | 
					 | 
					import SignatureStep from './signature_step'
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import AttachmentStep from './attachment_step'
 | 
					 | 
					 | 
					 | 
					import AttachmentStep from './attachment_step'
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -238,6 +267,7 @@ export default {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  name: 'SubmissionForm',
 | 
					 | 
					 | 
					 | 
					  name: 'SubmissionForm',
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  components: {
 | 
					 | 
					 | 
					 | 
					  components: {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    FieldAreas,
 | 
					 | 
					 | 
					 | 
					    FieldAreas,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    FieldArea,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ImageStep,
 | 
					 | 
					 | 
					 | 
					    ImageStep,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    SignatureStep,
 | 
					 | 
					 | 
					 | 
					    SignatureStep,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    AttachmentStep,
 | 
					 | 
					 | 
					 | 
					    AttachmentStep,
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -287,11 +317,14 @@ export default {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    currentField () {
 | 
					 | 
					 | 
					 | 
					    currentField () {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      return this.currentStepFields[0]
 | 
					 | 
					 | 
					 | 
					      return this.currentStepFields[0]
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    },
 | 
					 | 
					 | 
					 | 
					    },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    submitterFields () {
 | 
					 | 
					 | 
					 | 
					    currentSubmitterFields () {
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      return this.fields.filter((f) => f.submitter_uuid === this.submitterUuid)
 | 
					 | 
					 | 
					 | 
					      return this.fields.filter((f) => f.submitter_uuid === this.submitterUuid)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    },
 | 
					 | 
					 | 
					 | 
					    },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    otherSubmitterFields () {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      return this.fields.filter((f) => f.submitter_uuid !== this.submitterUuid)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    },
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    stepFields () {
 | 
					 | 
					 | 
					 | 
					    stepFields () {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      return this.submitterFields.reduce((acc, f) => {
 | 
					 | 
					 | 
					 | 
					      return this.currentSubmitterFields.reduce((acc, f) => {
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        const prevStep = acc[acc.length - 1]
 | 
					 | 
					 | 
					 | 
					        const prevStep = acc[acc.length - 1]
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (f.type === 'checkbox' && Array.isArray(prevStep) && prevStep[0].type === 'checkbox') {
 | 
					 | 
					 | 
					 | 
					        if (f.type === 'checkbox' && Array.isArray(prevStep) && prevStep[0].type === 'checkbox') {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |