import{o as e}from"./rolldown-runtime-C_s2cVnS.js";import{h as t,m as n,n as r}from"./vendor-react-nmZsNlRz.js";import{t as i}from"./utils-BRwGVQJx.js";import{t as a}from"./codicon-eqX7Peys.js";var o=r();t();var s=e(n(),1);function c(e){let t=(0,o.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`group/code relative min-w-0 max-w-full overflow-hidden rounded-[0.625rem] bg-(--ui-bg-editor) [--expandable-fade-from:var(--ui-bg-editor)] text-[length:var(--conversation-tool-font-size)] text-muted-foreground`,n),t[3]=n,t[4]=a);let c;return t[5]!==r||t[6]!==a?(c=(0,s.jsx)(`div`,{className:a,"data-slot":`code-card`,...r}),t[5]=r,t[6]=a,t[7]=c):c=t[7],c}function l(e){let t=(0,o.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let c;t[3]===n?c=t[4]:(c=i(`shrink-0 text-[0.875rem] leading-none text-muted-foreground`,n),t[3]=n,t[4]=c);let l;return t[5]!==r||t[6]!==c?(l=(0,s.jsx)(a,{className:c,"data-slot":`code-card-icon`,...r}),t[5]=r,t[6]=c,t[7]=l):l=t[7],l}function u(e){let t=(0,o.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`font-mono text-[0.7rem] leading-relaxed text-foreground/90 [&_pre]:m-0 [&_pre]:overflow-x-auto [&_pre]:scrollbar-overlay [&_pre]:bg-transparent! [&_pre]:px-2 [&_pre]:py-1.5 [&_pre]:font-mono [&_pre]:leading-relaxed`,n),t[3]=n,t[4]=a);let c;return t[5]!==r||t[6]!==a?(c=(0,s.jsx)(`div`,{className:a,"data-slot":`code-card-body`,...r}),t[5]=r,t[6]=a,t[7]=c):c=t[7],c}export{u as n,l as r,c as t};