문서 / {doc?.title || '로딩...'}
{#if loading}
{:else if doc}
{#if viewerType === 'markdown' || viewerType === 'hwp-markdown'}
{@html marked(doc.extracted_text || '*텍스트 추출 대기 중*')}
{:else if viewerType === 'pdf'} {:else if viewerType === 'image'} {doc.title} {:else if viewerType === 'synology'}

Synology Office 문서

새 창에서 열기
{:else}

이 문서 형식은 인앱 미리보기를 지원하지 않습니다

포맷: {doc.file_format}

{/if}

문서 정보

포맷
{doc.file_format}
크기
{doc.file_size ? (doc.file_size / 1024).toFixed(1) + ' KB' : '-'}
도메인
{doc.ai_domain || '미분류'}
출처
{doc.source_channel || '-'}
{#if doc.ai_summary}

AI 요약

{doc.ai_summary}

{/if} {#if doc.ai_tags?.length > 0}

태그

{#each doc.ai_tags as tag} {/each}
{/if}

가공 이력

텍스트 추출
{doc.extracted_at ? new Date(doc.extracted_at).toLocaleDateString('ko') : '대기'}
AI 분류
{doc.ai_processed_at ? new Date(doc.ai_processed_at).toLocaleDateString('ko') : '대기'}
벡터 임베딩
{doc.embedded_at ? new Date(doc.embedded_at).toLocaleDateString('ko') : '대기'}
{/if}