{#if data.questions[selected_question].type === QuizQuestionType.SLIDE}
{#await import('./slide.svelte')}
{/await}
{:else}
{@const type = data.questions[selected_question].type}
{#key unique}
{#await import('$lib/inline-editor.svelte')}
{:then c}
{/await}
{/key}
{#if data.questions[selected_question].image != undefined && data.questions[selected_question].image !== ''}
{#await import('$lib/editor/MediaComponent.svelte') then c}
{/await}
{:else}
{#await import('$lib/editor/uploader.svelte')}
{:then c}
{/await}
{/if}
{#if type === QuizQuestionType.ABCD || QuizQuestionType.CHECK}
{#await import('$lib/editor/ABCDEditorPart.svelte')}
{:then c}
{/await}
{:else if type === QuizQuestionType.RANGE}
{:else if type === QuizQuestionType.VOTING}
{#await import('$lib/editor/VotingEditorPart.svelte')}
{:then c}
{/await}
{:else if type === QuizQuestionType.TEXT}
{#await import('$lib/editor/TextEditorPart.svelte')}
{:then c}
{/await}
{:else if type === QuizQuestionType.ORDER}
{#await import('$lib/editor/OrderEditorPart.svelte')}
{:then c}
{/await}
{/if}