{#if tab === ''}
{#if tools} {#if Object.keys(tools).length > 0} {/if} {#if skills && Object.keys(skills).length > 0} {/if} {:else}
{/if} {#if toggleFilters && toggleFilters.length > 0} {#each toggleFilters.sort( (a, b) => a.name.localeCompare( b.name, undefined, { sensitivity: 'base' } ) ) as filter, filterIdx (filter.id)} {/each} {/if} {#if showImageGenerationButton} {/if} {#if showVideoGenerationButton} {/if} {#if showWebSearchButton} {/if} {#if showCodeInterpreterButton} {/if}
{:else if tab === 'tools' && tools}
{#if toolIds.length === 0}
{$i18n.t('No tools found')}
{:else}
{#each toolGroups as [label, ids]} {#if toolGroups.length > 1}
{label}
{/if} {#each ids as toolId} {/each} {/each}
{/if}
{:else if tab === 'skills' && skills}
{#if skillIds.length === 0}
{$i18n.t('No skills found')}
{:else}
{#each skillGroups as [label, ids]} {#if skillGroups.length > 1 || skills?.[ids[0]]?.source === 'terminal'}
{label}
{/if} {#each ids as skillId} {/each} {/each}
{/if}
{:else if tab === 'image'}
{#if imageModelOptions.length > 6} {/if}
{#if !imageModelQuery.trim()} {/if} {#each imageModelGroups as [label, models] (label)} {#if imageModelGroups.length > 1}
{label}
{/if} {#each models as model (model.id)} {/each} {:else}
{$i18n.t('No image models found')}
{/each}
{:else if tab === 'video'}
{#if videoModelOptions.length > 6} {/if}
{#if !videoModelQuery.trim()} {/if} {#each videoModelGroups as [label, models] (label)} {#if videoModelGroups.length > 1}
{label}
{/if} {#each models as model (model.id)} {/each} {:else}
{$i18n.t('No video models found')}
{/each}
{/if}