import{r as e,s as t}from"./rolldown-runtime-C5c2KzVm.js";import{$P as n}from"./lucide-C4oWPzu4.js";import{p as r}from"./utils-Bs-0X7qI.js";import{r as i}from"./bundle-mjs-C4g7ASB5.js";import{Nt as a,gt as o,ut as s}from"./web-C56Kq6kn.js";import{d as c}from"./chunk-LFPYN7LY-Bb6SdmrV.js";import{l,o as u}from"./src-KuJTsB_e.js";import{a as d}from"./message-item-DWt_8FFP.js";import{r as f,t as p}from"./ask-assistant-ui-BsoUqCnQ.js";var m=e({default:()=>y,meta:()=>v}),h=r();t(n(),1);var g=i(),_=[{id:`1`,text:`如何开始使用 React Hooks？`},{id:`2`,text:`TypeScript 的最佳实践是什么？`},{id:`3`,text:`如何优化 React 应用的性能？`}],v=u({title:`对话`,description:`开始新的对话`,icon:`square-pen`}),y=()=>{let e=(0,h.c)(21),{id:t}=c(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={supportedModelTypes:`llm`},e[0]=n):n=e[0];let{data:r}=a(n),i;e[1]===r?i=e[2]:(i=r===void 0?[]:r,e[1]=r,e[2]=i);let u=i,m=!!t,v;e[3]===m?v=e[4]:(v={enabled:m},e[3]=m,e[4]=v);let{data:y}=o(t||``,v),{data:S}=s(),C=S,w=t&&y?.title||`新对话`,T;e[5]===w?T=e[6]:(T={title:w},e[5]=w,e[6]=T),l(T);let E;bb0:{if(!C){E=_;break bb0}if(!C.suggestionsEnabled){let t;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[7]=t):t=e[7],E=t;break bb0}let t;e[8]===C.suggestions?t=e[9]:(t=(Array.isArray(C.suggestions)?C.suggestions:[]).filter(b).map(x),e[8]=C.suggestions,e[9]=t),E=t}let D=E,O=C?.welcomeInfo,k;e[10]!==u||e[11]!==D?(k={providers:u,suggestions:D},e[10]=u,e[11]=D,e[12]=k):k=e[12];let A=p(k),j=y?.title||`新对话`,M=O?.title,N=O?.description,P=O?.footer,F;e[13]!==M||e[14]!==N||e[15]!==P||e[16]!==j?(F=(0,g.jsx)(f,{title:j,welcomeTitle:M,welcomeDescription:N,footerText:P}),e[13]=M,e[14]=N,e[15]=P,e[16]=j,e[17]=F):F=e[17];let I;return e[18]!==A||e[19]!==F?(I=(0,g.jsx)(d,{...A,children:F}),e[18]=A,e[19]=F,e[20]=I):I=e[20],I};function b(e){return!!e?.text}function x(e,t){return{id:String(t),text:e.text}}export{m as n,v as r,y as t};