{ if (e.detail === false) { onClose(); } }} >
{#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 showWebSearchButton} {/if} {#if showImageGenerationButton} {/if} {#if showCodeInterpreterButton} {/if} {#if tools}
{#if Object.keys(tools).length > 0}
{#each Object.keys(tools) as toolId} {/each}
{#if Object.keys(tools).length > 3} {/if} {/if} {:else}
{/if}