{#if title !== null}
{ if (!disabled) { open = !open; } }} >
{#if attributes?.done && attributes?.done !== 'true'}
{/if}
{#if attributes?.type === 'reasoning'} {#if attributes?.done === 'true' && attributes?.duration} {#if attributes.duration < 60} {$i18n.t('Thought for {{DURATION}} seconds', { DURATION: attributes.duration })} {:else} {$i18n.t('Thought for {{DURATION}}', { DURATION: dayjs.duration(attributes.duration, 'seconds').humanize() })} {/if} {:else} {$i18n.t('Thinking...')} {/if} {:else if attributes?.type === 'code_interpreter'} {#if attributes?.done === 'true'} {$i18n.t('Analyzed')} {:else} {$i18n.t('Analyzing...')} {/if} {:else} {title} {/if}
{#if open} {:else} {/if}
{:else}
{ if (!disabled) { open = !open; } }} >
{#if grow} {#if open && !hide}
{ e.stopPropagation(); }} >
{/if} {/if}
{/if} {#if !grow} {#if open && !hide}
{/if} {/if}