{#if isLoading}
{m.doc_loading()}
{:else if error}

{error}

{#if doc.filePath} {m.doc_download_link()} {/if}
{:else if !doc.filePath}

{m.doc_no_scan()}

{:else if fileUrl && doc.contentType?.startsWith('application/pdf')} {:else if fileUrl}
{m.doc_image_alt()}
{/if}