{t("tab_kb_desc")}
{#if visRetNotice}
{#if visRetNotice.includes("✅")}
✅ {(visRetNotice.match(/\*\*(.*?)\*\*/) || ["", visRetNotice])[1].trim() || visRetNotice.replace(/\*\*/g, "").replace(/`/g, "").slice(0, 40)}
{:else if visRetNotice.includes("📥")}
📥 {(visRetNotice.match(/\*\*(.*?)\*\*/) || ["", visRetNotice])[1].trim() || visRetNotice.replace(/\*\*/g, "").replace(/`/g, "").slice(0, 40)}
{:else}
{visRetNotice.replace(/\*\*/g, "").replace(/`/g, "").replace(/\s+/g, " ").trim().slice(0, 50)}
{/if}
{/if}
{t("label_embed_active")}:
{activeEmbedProvider}
/ {activeEmbedModel}
{#if files.length > 0}
{#each files as f, i (f.name)}
{f.name}
{/each}
{/if}
{#if message}
{message}
{/if}
{#if indexLog}
{#each indexLog.split("\n") as line}
{line}
{/each}
{/if}
{t("label_kb_docs")}
{#if rows.length}
{#if docFiltered.length}
{#each headers as h (h)}
| {h} |
{/each}
{#each docFiltered as row, i (i)}
toggleRow(i)} data-tooltip={t("web_tt_doc_row")}>
{#each row as cell, j (j)}
{#if j === 6 && row[6]}
{
e.stopPropagation(); // don't toggle row selection
openVisPreview([row[0], row[6]], 1);
}}
onerror={(e) => (e.currentTarget.style.display = "none")}
/>
|
{:else}
{cell} |
{/if}
{/each}
{/each}
{#if flash}
{flash}
{/if}
{:else}
{t("web_no_rows_match")}
{/if}
{:else}
{t("web_empty_hint")}
{/if}
{#if actionMsg}
{actionMsg}
{/if}
{t("label_visual_docs")}
{#if visRows.length}
{#if visFiltered.length}
{#each t("visual_table_headers") as h (h)}
| {h} |
{/each}
{#each visFiltered as row, i (i)}
toggleVisRow(i)} data-tooltip={t("web_tt_doc_row")}>
{#each row as cell, j (j)}
{#if j === 0}
{#each Array(visPageCount(row)) as _, p (p)}
{
e.stopPropagation(); // don't toggle row selection
openVisPreview(row, p + 1);
}}
onerror={(e) => (e.currentTarget.style.display = "none")}
/>
{/each}
{cell}
|
{:else}
{cell} |
{/if}
{/each}
{/each}
{#if flash}
{flash}
{/if}
{:else}
{t("web_no_rows_match")}
{/if}
{:else}
{t("web_empty_visual")}
{/if}
{#if visActionMsg}
{visActionMsg}
{/if}