{#if show}
{#if question} {#key question.id}
{question.header}
{#if questions.length > 1}
{questionIndex + 1}/{questions.length}
{/if}
{question.question}
{#each question.options || [] as option, optionIndex} {/each}
{#if questionAllowsOther(question)}
{$i18n.t('Other')}
selectOther(question)} on:input={(event) => updateOther(question, (event.currentTarget as HTMLInputElement).value)} on:keydown={(event) => { if (event.key === 'Enter') { event.preventDefault(); advance(); } }} />
{/if}
{/key} {/if}
{#if questionIndex < questions.length - 1} {:else} {/if}
{/if}