|  |  | @ -324,7 +324,8 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       withPayment: this.withPayment, |  |  |  |       withPayment: this.withPayment, | 
			
		
	
		
		
			
				
					
					|  |  |  |       withFormula: this.withFormula, |  |  |  |       withFormula: this.withFormula, | 
			
		
	
		
		
			
				
					
					|  |  |  |       defaultDrawFieldType: this.defaultDrawFieldType, |  |  |  |       defaultDrawFieldType: this.defaultDrawFieldType, | 
			
		
	
		
		
			
				
					
					|  |  |  |       selectedAreaRef: computed(() => this.selectedAreaRef) |  |  |  |       selectedAreaRef: computed(() => this.selectedAreaRef), | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       fieldsDragFieldRef: computed(() => this.fieldsDragFieldRef) | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   props: { |  |  |  |   props: { | 
			
		
	
	
		
		
			
				
					|  |  | @ -480,6 +481,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   computed: { |  |  |  |   computed: { | 
			
		
	
		
		
			
				
					
					|  |  |  |     selectedAreaRef: () => ref(), |  |  |  |     selectedAreaRef: () => ref(), | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     fieldsDragFieldRef: () => ref(), | 
			
		
	
		
		
			
				
					
					|  |  |  |     fieldAreasIndex () { |  |  |  |     fieldAreasIndex () { | 
			
		
	
		
		
			
				
					
					|  |  |  |       const areas = {} |  |  |  |       const areas = {} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -811,7 +813,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     onDropfield (area) { |  |  |  |     onDropfield (area) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       const field = { |  |  |  |       const field = this.fieldsDragFieldRef.value || { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         name: '', |  |  |  |         name: '', | 
			
		
	
		
		
			
				
					
					|  |  |  |         uuid: v4(), |  |  |  |         uuid: v4(), | 
			
		
	
		
		
			
				
					
					|  |  |  |         submitter_uuid: this.selectedSubmitter.uuid, |  |  |  |         submitter_uuid: this.selectedSubmitter.uuid, | 
			
		
	
	
		
		
			
				
					|  |  | @ -819,6 +821,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         ...this.dragField |  |  |  |         ...this.dragField | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       if (!this.fieldsDragFieldRef.value) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (['select', 'multiple', 'radio'].includes(field.type)) { |  |  |  |         if (['select', 'multiple', 'radio'].includes(field.type)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |           field.options = [{ value: '', uuid: v4() }] |  |  |  |           field.options = [{ value: '', uuid: v4() }] | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | @ -832,6 +835,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |             format: Intl.DateTimeFormat().resolvedOptions().locale.endsWith('-US') ? 'MM/DD/YYYY' : 'DD/MM/YYYY' |  |  |  |             format: Intl.DateTimeFormat().resolvedOptions().locale.endsWith('-US') ? 'MM/DD/YYYY' : 'DD/MM/YYYY' | 
			
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       const fieldArea = { |  |  |  |       const fieldArea = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         x: (area.x - 6) / area.maskW, |  |  |  |         x: (area.x - 6) / area.maskW, | 
			
		
	
	
		
		
			
				
					|  |  | @ -885,11 +889,23 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         fieldArea.cell_w = baseArea.cell_w || (baseArea.w / 5) |  |  |  |         fieldArea.cell_w = baseArea.cell_w || (baseArea.w / 5) | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       field.areas = [fieldArea] |  |  |  |       field.areas ||= [] | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       const lastArea = field.areas[field.areas.length - 1] | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       if (lastArea) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         fieldArea.x -= lastArea.w / 2 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         fieldArea.w = lastArea.w | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         fieldArea.h = lastArea.h | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       field.areas.push(fieldArea) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.selectedAreaRef.value = fieldArea |  |  |  |       this.selectedAreaRef.value = fieldArea | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       if (this.template.fields.indexOf(field) === -1) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.template.fields.push(field) |  |  |  |         this.template.fields.push(field) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.save() |  |  |  |       this.save() | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
	
		
		
			
				
					|  |  | 
 |