{#if item?.type === 'collection'} {#if item?.type}
{item.type}
• {/if} {#if item?.description}
{item.description}
• {/if} {#if item?.created_at}
{dayjs(item.created_at * 1000).format('LL')}
{/if} {/if} {#if item.size}
{formatFileSize(item.size)}
• {/if} {#if item?.file?.data?.content}
{getLineCount(item?.file?.data?.content ?? '')} extracted lines
Formatting may be inconsistent from source.
{/if} {#if item?.knowledge}
{$i18n.t('Knowledge Base')}
{/if}
{#if edit}
{#if enableFullContent} {$i18n.t('Using Entire Document')} {:else} {$i18n.t('Using Focused Retrieval')} {/if} { item.context = e.detail ? 'full' : undefined; }} />
{/if}
{#if !loading} {#if item?.type === 'collection'}
{#each item?.files as file}
{file?.meta?.name}
{/each}
{:else if isPDF}
{#if selectedTab === 'preview'}