| 
						
						
						
					 | 
					 | 
					@ -1,8 +1,7 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					module QuestionAttributeHelper | 
					 | 
					 | 
					 | 
					module QuestionAttributeHelper | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  def stimulus_html_attributes(question) | 
					 | 
					 | 
					 | 
					  def stimulus_html_attributes(question) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    attribs = [ | 
					 | 
					 | 
					 | 
					    attribs = [ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      numeric_question_html_attributes(question), | 
					 | 
					 | 
					 | 
					      numeric_question_html_attributes(question) | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      conditional_html_attributes(question), | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ] | 
					 | 
					 | 
					 | 
					    ] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    merge_controller_attributes(*attribs) | 
					 | 
					 | 
					 | 
					    merge_controller_attributes(*attribs) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  end | 
					 | 
					 | 
					 | 
					  end | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -20,16 +19,6 @@ private | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      "data-calculated": question.fields_to_add.to_json, | 
					 | 
					 | 
					 | 
					      "data-calculated": question.fields_to_add.to_json, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  end | 
					 | 
					 | 
					 | 
					  end | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  def conditional_html_attributes(question) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    return {} if question.conditional_for.blank? | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      "data-controller": "conditional-question", | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      "data-action": "conditional-question#displayConditional", | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      "data-info": question.conditional_for.to_json, | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  end | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					end | 
					 | 
					 | 
					 | 
					end | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					def merge_controller_attributes(*args) | 
					 | 
					 | 
					 | 
					def merge_controller_attributes(*args) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |