PageSourceSearch

https://legalaios2.manus.space/assets/Overview-BK4sAkW-.js

js legalaios2.manus.space collected 2026-10-03 05:03:13 UTC 10,162 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-react-D_PmJq1g.js";import{v as m,S as g,L as c,B as o}from"./index-CH-dzzKG.js";import{C as h}from"./ConsolePage-hLYCyqMG.js";import{m as w,n,o as j,p as r,R as b,q as u,r as O,j as i,E as d,s as f,t as N}from"./vendor-ui-CX5AecA-.js";import"./vendor-data-tjINLo7H.js";import"./badge-DKUuEzvb.js";function B(){const{activeSite:a,summary:t,loading:x}=m(),v=[{label:"知識文件",value:t?.documents??0,detail:`${t?.publishedDocuments??0} 份已發布`,icon:w},{label:"AI Agent",value:t?.agents.length??0,detail:t?.agents.some(s=>s.status==="published")?"已有上線版本":"等待發布",icon:n},{label:"潛在客戶",value:t?.leads??0,detail:"來自詢價、預約與轉真人",icon:j},{label:"匿名事件",value:t?.events??0,detail:"瀏覽與對話使用訊號",icon:r}],p=[{label:"建立網站工作區",done:!!a,href:"/console/sites"},{label:"確認 Agent 語氣與安全規則",done:!!t?.agents.length,href:"/console/sites"},{label:"加入知識文件",done:!!t?.documents,href:"/console/knowledge"},{label:"完成 RAG 回答測試",done:!1,href:"/console/rag-test"},{label:"發布設定並取得嵌入碼",done:a?.status==="published",href:"/console/embed"}];return e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:39",className:"mx-auto max-w-[1500px]",children:[e.jsx(h,{"data-loc":"client/src/pages/console/Overview.tsx:40",eyebrow:"Command Center",title:"工作區總覽",description:"集中查看目前網站的知識、Agent、潛在客戶與使用狀況,並依發布流程完成設定。"}),x?e.jsx("div",{"data-loc":"client/src/pages/console/Overview.tsx:47",className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4",children:Array.from({length:4}).map((s,l)=>e.jsx(g,{"data-loc":"client/src/pages/console/Overview.tsx:49",className:"h-40 rounded-[1.3rem] bg-slate-100"},l))}):e.jsx("div",{"data-loc":"client/src/pages/console/Overview.tsx:53",className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4",children:v.map(s=>{const l=s.icon;return e.jsxs("article",{"data-loc":"client/src/pages/console/Overview.tsx:57",className:"glass-panel rounded-[1.3rem] p-5",children:[e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:58",className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:59",children:[e.jsx("p",{"data-loc":"client/src/pages/console/Overview.tsx:60",className:"text-xs font-semibold text-slate-500",children:s.label}),e.jsx("p",{"data-loc":"client/src/pages/console/Overview.tsx:61",className:"font-display mt-3 text-4xl font-bold text-navy-950",children:s.value})]}),e.jsx("span",{"data-loc":"client/src/pages/console/Overview.tsx:63",className:"grid size-10 place-items-center rounded-xl border border-champagne-400/15 bg-champagne-400/7 text-champagne-700",children:e.jsx(l,{"data-loc":"client/src/pages/console/Overview.tsx:64",className:"size-4.5"})})]}),e.jsx("p",{"data-loc":"client/src/pages/console/Overview.tsx:67",className:"mt-4 text-xs leading-5 text-slate-500",children:s.detail})]},s.label)})}),e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:74",className:"mt-5 grid gap-5 xl:grid-cols-[1.05fr_0.95fr]",children:[e.jsxs("section",{"data-loc":"client/src/pages/console/Overview.tsx:75",className:"glass-panel rounded-[1.4rem] p-5 sm:p-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:76",className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:77",children:[e.jsx("p",{"data-loc":"client/src/pages/console/Overview.tsx:78",className:"text-xs font-bold tracking-[0.15em] text-champagne-700 uppercase",children:"Launch sequence"}),e.jsx("h2",{"data-loc":"client/src/pages/console/Overview.tsx:79",className:"mt-2 text-xl font-bold text-navy-950",children:"發布準備"}),e.jsx("p",{"data-loc":"client/src/pages/console/Overview.tsx:80",className:"mt-2 text-sm leading-6 text-slate-500",children:"完成必要步驟後,再將 Agent 發布至公開網站。"})]}),e.jsx(b,{"data-loc":"client/src/pages/console/Overview.tsx:82",className:"size-5 text-champagne-700"})]}),e.jsx("div",{"data-loc":"client/src/pages/console/Overview.tsx:85",className:"mt-6 space-y-2",children:p.map((s,l)=>e.jsxs(c,{"data-loc":"client/src/pages/console/Overview.tsx:87",href:s.href,className:"group flex items-center gap-3 rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 hover:border-champagne-400/18 hover:bg-slate-50",children:[s.done?e.jsx(u,{"data-loc":"client/src/pages/console/Overview.tsx:93",className:"size-4.5 shrink-0 text-emerald-700"}):e.jsx(O,{"data-loc":"client/src/pages/console/Overview.tsx:95",className:"size-4.5 shrink-0 text-slate-600"}),e.jsxs("span",{"data-loc":"client/src/pages/console/Overview.tsx:97",className:`flex-1 text-sm font-semibold ${s.done?"text-slate-500":"text-navy-950"}`,children:[String(l+1).padStart(2,"0")," · ",s.label]}),e.jsx(i,{"data-loc":"client/src/pages/console/Overview.tsx:100",className:"size-4 text-slate-600 transition group-hover:translate-x-0.5 group-hover:text-champagne-700"})]},s.label))})]}),e.jsxs("section",{"data-loc":"client/src/pages/console/Overview.tsx:106",className:"glass-panel roun
1ded-[1.4rem] p-5 sm:p-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:107",className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:108",children:[e.jsx("p",{"data-loc":"client/src/pages/console/Overview.tsx:109",className:"text-xs font-bold tracking-[0.15em] text-champagne-700 uppercase",children:"Active workspace"}),e.jsx("h2",{"data-loc":"client/src/pages/console/Overview.tsx:110",className:"mt-2 text-xl font-bold text-navy-950",children:a?.name??"載入中"})]}),e.jsx(d,{"data-loc":"client/src/pages/console/Overview.tsx:112",className:"size-5 text-champagne-700"})]}),e.jsxs("dl",{"data-loc":"client/src/pages/console/Overview.tsx:115",className:"mt-6 divide-y divide-slate-200 rounded-xl border border-slate-200 bg-white px-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:116",className:"flex items-center justify-between gap-4 py-3.5",children:[e.jsx("dt",{"data-loc":"client/src/pages/console/Overview.tsx:117",className:"text-xs text-slate-500",children:"品牌"}),e.jsx("dd",{"data-loc":"client/src/pages/console/Overview.tsx:118",className:"text-sm font-semibold text-slate-800",children:a?.brandName??"LegalAIOS"})]}),e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:120",className:"flex items-center justify-between gap-4 py-3.5",children:[e.jsx("dt",{"data-loc":"client/src/pages/console/Overview.tsx:121",className:"text-xs text-slate-500",children:"公開識別碼"}),e.jsx("dd",{"data-loc":"client/src/pages/console/Overview.tsx:122",className:"max-w-[15rem] truncate font-mono text-xs text-champagne-700",children:a?.publicKey??"—"})]}),e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:124",className:"flex items-center justify-between gap-4 py-3.5",children:[e.jsx("dt",{"data-loc":"client/src/pages/console/Overview.tsx:125",className:"text-xs text-slate-500",children:"網域"}),e.jsx("dd",{"data-loc":"client/src/pages/console/Overview.tsx:126",className:"max-w-[15rem] truncate text-sm text-slate-500",children:a?.domain||"尚未指定"})]}),e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:128",className:"flex items-center justify-between gap-4 py-3.5",children:[e.jsx("dt",{"data-loc":"client/src/pages/console/Overview.tsx:129",className:"text-xs text-slate-500",children:"狀態"}),e.jsx("dd",{"data-loc":"client/src/pages/console/Overview.tsx:130",className:a?.status==="published"?"text-sm font-semibold text-emerald-700":"text-sm font-semibold text-amber-200",children:a?.status==="published"?"已發布":"草稿"})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/console/Overview.tsx:136",className:"mt-5 grid grid-cols-2 gap-3",children:[e.jsx(o,{"data-loc":"client/src/pages/console/Overview.tsx:137",asChild:!0,variant:"outline",className:"rounded-xl border-slate-200 bg-slate-50 text-slate-800 hover:bg-slate-100",children:e.jsxs(c,{"data-loc":"client/src/pages/console/Overview.tsx:138",href:"/console/sites",children:[e.jsx(d,{"data-loc":"client/src/pages/console/Overview.tsx:138",className:"mr-2 size-4"}),"管理網站"]})}),e.jsx(o,{"data-loc":"client/src/pages/console/Overview.tsx:140",asChild:!0,className:"rounded-xl bg-champagne-400 font-bold text-navy-950 hover:bg-champagne-300",children:e.jsxs(c,{"data-loc":"client/src/pages/console/Overview.tsx:141",href:"/console/rag-test",children:[e.jsx(f,{"data-loc":"client/src/pages/console/Overview.tsx:141",className:"mr-2 size-4"}),"測試回答"]})})]})]})]}),e.jsx("section",{"data-loc":"client/src/pages/console/Overview.tsx:147",className:"mt-5 grid gap-4 md:grid-cols-3",children:[{title:"知識內容",description:"新增品牌規則、FAQ 或法律資料。",href:"/console/knowledge",icon:N},{title:"Agent 設定",description:"調整模型、歡迎訊息與安全規則。",href:"/console/sites",icon:n},{title:"使用分析",description:"查看真實匿名瀏覽與對話事件。",href:"/console/analytics",icon:r}].map(s=>{const l=s.icon;return e.jsxs(c,{"data-loc":"client/src/pages/console/Overview.tsx:155",href:s.href,className:"group rounded-[1.2rem] border border-slate-200 bg-white p-5 hover:border-champagne-400/18 hover:bg-slate-50",children:[e.jsx(l,{"data-loc":"client/src/pages/console/Overview.tsx:156",className:"size-5 text-champagne-700"}),e.jsx("h3",{"data-loc":"client/src/pages/console/Overview.tsx:157",className:"mt-5 font-bold text-navy-950",children:s.title}),e.jsx("p",{"data-loc":"client/src/pages/console/Overview.tsx:158",className:"mt-2 text-sm leading-6 text-slate-500",children:s.description}),e.jsxs("span",{"data-loc":"client/src/pages/console/Overview.tsx:159",className:"mt-4 inline-flex items-center gap-1.5 text-xs font-bold text-slate-600 group-hover:text-champagne-700",children:["前往設定 ",e.jsx(i,{"data-loc":"client/src/pages/console/Overview.tsx:159",className:"size-3.5"})]})]},s.title)})})]})}export{B as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.