{#if tabs.length > 1}
{#each tabs as t (t.id)} {/each}
{/if}
{#if visible.length === 0}

{emptyHint}

{:else}
{#each visible as opt (opt.path)} {@const selected = opt.path === value} {@const src = assetUrl(opt.path)} {@const isVideo = (opt.kind ?? kind) === 'video'} {/each}
{/if}
{#snippet footer()} {#if value && onclear} {/if} {#if allowUpload} {/if} {/snippet}