{#if copy_toast_open || game_in_lobby}
{/if}
{#each quizzes as quiz, i}

{@html quiz.title}

{@html quiz.description}

{#if quiz.cover_image}
Not provided
{/if}

{@html quiz.title}

{quiz.questions.length} {$t('words.question', { count: quiz.questions.length })}

{#if quiz.public} {$t('words.public')} {:else} {$t('words.private')} {/if}
{$t('words.edit')} { start_game = quiz.id; }} > {$t('words.start')} { deleteQuiz(quiz.id); }} flex={true} >

{ copy_id(quiz.id); }} > {quiz.id}

{#each quiz.questions as question, q}
{@html question.question}
{#if question.image}
{ visibleImages[i][q] = true; }} on:exitViewport={() => { visibleImages[i][q] = false; }} class="flex justify-center align-middle items-center" >
{#if visibleImages?.[i]?.[q]} Not provided {/if}
{/if}

{question.time}s

{#if question.type === QuizQuestionType.ABCD || question.type === undefined}
{#each question.answers as answer, index_answer}

{answer.answer}

{/each}
{:else if question.type === QuizQuestionType.RANGE}

All numbers between {question.answers.min_correct} and {question.answers.max_correct} are correct, where numbers between {question.answers.min} and {question .answers.max} can be selected.

{:else if question.type === QuizQuestionType.VOTING}
{#each question.answers as answer}

{answer.answer}

{/each}
{:else if question.type === QuizQuestionType.ORDER}
    {#each question.answers as answer}
  • {answer.answer}

  • {/each}
{:else if question.type === QuizQuestionType.SLIDE}
{ visibleImages[i][q] = true; }} on:exitViewport={() => { visibleImages[i][q] = false; }} class="flex justify-center align-middle items-center" > {#await import('$lib/play/admin/slide.svelte')} {:then c}
{/await}
{/if}
{/each}
{/each}
{#if start_game !== null} {/if}