|  |  | @ -17,41 +17,43 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |       <% end %> |  |  |  |       <% end %> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <% if last_submitter = @submission.submitters.to_a.select(&:completed_at?).max_by(&:completed_at) %> |  |  |  |       <% if last_submitter = @submission.submitters.to_a.select(&:completed_at?).max_by(&:completed_at) %> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <% is_all_completed = @submission.submitters.to_a.all?(&:completed_at?) %> |  |  |  |         <% is_all_completed = @submission.submitters.to_a.all?(&:completed_at?) %> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <div class="join relative"> |  |  |  |         <% if is_all_completed || !is_combined_enabled %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           <download-button data-src="<%= submitter_download_index_path(last_submitter.slug, { sig: params[:sig], combined: is_combined_enabled }.compact) %>" class="base-button <%= '!rounded-r-none !pr-2' if is_all_completed && !is_combined_enabled %>"> |  |  |  |           <div class="join relative"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <span class="flex items-center justify-center space-x-2" data-target="download-button.defaultButton"> |  |  |  |             <download-button data-src="<%= submitter_download_index_path(last_submitter.slug, { sig: params[:sig], combined: is_combined_enabled }.compact) %>" class="base-button <%= '!rounded-r-none !pr-2' if is_all_completed && !is_combined_enabled %>"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               <%= svg_icon('download', class: 'w-6 h-6') %> |  |  |  |               <span class="flex items-center justify-center space-x-2" data-target="download-button.defaultButton"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               <span class="hidden md:inline"><%= t('download') %></span> |  |  |  |                 <%= svg_icon('download', class: 'w-6 h-6') %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             </span> |  |  |  |                 <span class="hidden md:inline"><%= t('download') %></span> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <span class="flex items-center justify-center space-x-2 hidden" data-target="download-button.loadingButton"> |  |  |  |               </span> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               <%= svg_icon('loader', class: 'w-6 h-6 animate-spin') %> |  |  |  |               <span class="flex items-center justify-center space-x-2 hidden" data-target="download-button.loadingButton"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               <span class="hidden md:inline"><%= t('downloading') %></span> |  |  |  |                 <%= svg_icon('loader', class: 'w-6 h-6 animate-spin') %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             </span> |  |  |  |                 <span class="hidden md:inline"><%= t('downloading') %></span> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           </download-button> |  |  |  |               </span> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           <% if is_all_completed && !is_combined_enabled %> |  |  |  |             </download-button> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <div class="dropdown dropdown-end"> |  |  |  |             <% if is_all_completed && !is_combined_enabled %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               <label tabindex="0" class="base-button !rounded-l-none !pl-1 !pr-2 !border-l-neutral-500"> |  |  |  |               <div class="dropdown dropdown-end"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 <span class="text-sm align-text-top"> |  |  |  |                 <label tabindex="0" class="base-button !rounded-l-none !pl-1 !pr-2 !border-l-neutral-500"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                   <%= svg_icon('chevron_down', class: 'w-6 h-6 flex-shrink-0 stroke-2') %> |  |  |  |                   <span class="text-sm align-text-top"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 </span> |  |  |  |                     <%= svg_icon('chevron_down', class: 'w-6 h-6 flex-shrink-0 stroke-2') %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               </label> |  |  |  |                   </span> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               <ul tabindex="0" class="z-10 dropdown-content p-2 mt-2 shadow menu text-base bg-base-100 rounded-box text-right"> |  |  |  |                 </label> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 <li> |  |  |  |                 <ul tabindex="0" class="z-10 dropdown-content p-2 mt-2 shadow menu text-base bg-base-100 rounded-box text-right"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                   <download-button data-src="<%= submitter_download_index_path(last_submitter.slug, { sig: params[:sig], combined: true }.compact) %>" class="flex items-center"> |  |  |  |                   <li> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     <span class="flex items-center justify-center space-x-2" data-target="download-button.defaultButton"> |  |  |  |                     <download-button data-src="<%= submitter_download_index_path(last_submitter.slug, { sig: params[:sig], combined: true }.compact) %>" class="flex items-center"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                       <%= svg_icon('download', class: 'w-6 h-6 flex-shrink-0') %> |  |  |  |                       <span class="flex items-center justify-center space-x-2" data-target="download-button.defaultButton"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                       <span class="whitespace-nowrap"><%= t('download_combined_pdf') %></span> |  |  |  |                         <%= svg_icon('download', class: 'w-6 h-6 flex-shrink-0') %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     </span> |  |  |  |                         <span class="whitespace-nowrap"><%= t('download_combined_pdf') %></span> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     <span class="flex items-center justify-center space-x-2 hidden" data-target="download-button.loadingButton"> |  |  |  |                       </span> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                       <%= svg_icon('loader', class: 'w-6 h-6 animate-spin') %> |  |  |  |                       <span class="flex items-center justify-center space-x-2 hidden" data-target="download-button.loadingButton"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                       <span><%= t('downloading') %></span> |  |  |  |                         <%= svg_icon('loader', class: 'w-6 h-6 animate-spin') %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     </span> |  |  |  |                         <span><%= t('downloading') %></span> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                   </download-button> |  |  |  |                       </span> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 </li> |  |  |  |                     </download-button> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               </ul> |  |  |  |                   </li> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             </div> |  |  |  |                 </ul> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           <% end %> |  |  |  |               </div> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         </div> |  |  |  |             <% end %> | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           </div> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <% end %> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <% elsif @submission.submitters.to_a.size == 1 && !@submission.expired? && !@submission.submitters.to_a.first.declined_at? %> |  |  |  |       <% elsif @submission.submitters.to_a.size == 1 && !@submission.expired? && !@submission.submitters.to_a.first.declined_at? %> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <%= render 'shared/clipboard_copy', text: submit_form_url(slug: @submission.submitters.to_a.first.slug), class: 'base-button', icon_class: 'w-6 h-6 text-white', copy_title: t('copy_share_link'), copied_title: t('copied_to_clipboard') %> |  |  |  |         <%= render 'shared/clipboard_copy', text: submit_form_url(slug: @submission.submitters.to_a.first.slug), class: 'base-button', icon_class: 'w-6 h-6 text-white', copy_title: t('copy_share_link'), copied_title: t('copied_to_clipboard') %> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <% end %> |  |  |  |       <% end %> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |