import{o as e}from"./rolldown-runtime-C_s2cVnS.js";import{m as t,n}from"./vendor-react-nmZsNlRz.js";import{t as r}from"./IconAlertTriangle-C0hVHaw_.js";import{t as i}from"./utils-BRwGVQJx.js";import{t as a}from"./codicon-eqX7Peys.js";var o=n(),s=e(t(),1);function c({className:e,size:t=`1.75rem`}){return(0,s.jsx)(a,{className:i(`text-destructive`,e),name:`error`,size:t})}function l(e){let t=(0,o.c)(8),{children:n,className:a}=e,c;t[0]===a?c=t[1]:(c=i(`flex items-start gap-2 rounded-xl border border-destructive/30 bg-destructive/10 px-3 py-2 text-[length:var(--conversation-caption-font-size)] leading-(--conversation-caption-line-height) text-destructive`,a),t[0]=a,t[1]=c);let l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,s.jsx)(r,{className:`mt-0.5 size-3.5 shrink-0`}),t[2]=l):l=t[2];let u;t[3]===n?u=t[4]:(u=(0,s.jsx)(`span`,{className:`min-w-0 whitespace-pre-wrap break-words`,children:n}),t[3]=n,t[4]=u);let d;return t[5]!==c||t[6]!==u?(d=(0,s.jsxs)(`div`,{className:c,children:[l,u]}),t[5]=c,t[6]=u,t[7]=d):d=t[7],d}function u(e){let t=(0,o.c)(18),{children:n,className:r,description:a,icon:l,title:u}=e,d;t[0]===r?d=t[1]:(d=i(`grid gap-5`,r),t[0]=r,t[1]=d);let f;t[2]===l?f=t[3]:(f=l??(0,s.jsx)(c,{}),t[2]=l,t[3]=f);let p;t[4]===u?p=t[5]:(p=typeof u==`string`?(0,s.jsx)(`h2`,{className:`text-center text-xl font-semibold tracking-tight`,children:u}):u,t[4]=u,t[5]=p);let m;t[6]===a?m=t[7]:(m=typeof a==`string`?(0,s.jsx)(`p`,{className:`max-w-prose text-center text-sm leading-5 text-muted-foreground`,children:a}):a,t[6]=a,t[7]=m);let h;t[8]!==f||t[9]!==p||t[10]!==m?(h=(0,s.jsxs)(`div`,{className:`flex flex-col items-center gap-3 text-center`,children:[f,p,m]}),t[8]=f,t[9]=p,t[10]=m,t[11]=h):h=t[11];let g;t[12]===n?g=t[13]:(g=n&&(0,s.jsx)(`div`,{className:`grid gap-2`,children:n}),t[12]=n,t[13]=g);let _;return t[14]!==d||t[15]!==h||t[16]!==g?(_=(0,s.jsxs)(`div`,{className:d,children:[h,g]}),t[14]=d,t[15]=h,t[16]=g,t[17]=_):_=t[17],_}export{c as n,u as r,l as t};