{#if visibleModals.personalIdModal} (visibleModals.personalIdModal = false)} personalIdNumber={baseCandidateDetails.personalIdNumber} /> {:else if visibleModals.linkErrorModal} (visibleModals.linkErrorModal = false)} /> {/if}
{:else if pageIndex === 1}

{$LL.candidate.register.first.title()}

{$LL.candidate.register.first.description()}

{:else if pageIndex === 2}

{pageTexts[0]}

{$LL.candidate.register.second.description()} {$LL.here()}.

{:else if pageIndex === 3}

{pageTexts[1]}

{$LL.candidate.register.third.description()}

{:else if pageIndex === 4}

{pageTexts[2]}

{$LL.candidate.register.fourth.description()}

{#if $form.candidate.citizenship === 'Česká republika' || !$form.candidate.citizenship} {:else} {/if}
{#if $form.candidate.citizenship === 'Česká republika' || !$form.candidate.citizenship} {:else} {/if}
{:else if pageIndex === 5}

{pageTexts[3]}

{$LL.candidate.register.fifth.description()}

{:else if pageIndex === 6}

{pageTexts[4]}

{$LL.candidate.register.sixth.description()}

{:else if pageIndex === 7}

{pageTexts[5]}

{$LL.candidate.register.seventh.description()}

První škola - termín JPZ: 13. 4. 2023

Druhá škola - termín JPZ: 14. 4. 2023

{:else if pageIndex === 8}

{pageTexts[6]}

{$LL.candidate.register.eighth.description()}

{/if}
{ if (pageIndex === 4) { validatePersonalId(); } await handleSubmit(e); if (isPageInvalid(pageIndex)) return; if (pageIndex !== pageCount) { pagesFilled[pageIndex] = true; pageIndex++; } // @ts-ignore errors.set(formInitialValues); }} value={pageIndex === pageCount ? $LL.input.submit() : $LL.input.continue()} />
{#each Array(pageCount + 1) as _, i}