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{n as i}from"./button-C_jHykqW.js";import{t as a}from"./utils-BRwGVQJx.js";var o=r();t();var s=e(n(),1),c=i(`relative grid w-full grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-1 rounded-lg border bg-card px-4 py-3 text-sm text-card-foreground shadow-xs [&>svg]:mt-0.5 [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`border-border`,destructive:`border-destructive/35 bg-[color-mix(in_srgb,var(--dt-card)_96%,var(--dt-destructive)_4%)] [&>svg]:text-destructive`,warning:`border-primary/30 bg-[color-mix(in_srgb,var(--dt-card)_96%,var(--dt-primary)_4%)] [&>svg]:text-primary`,success:`border-primary/25 bg-[color-mix(in_srgb,var(--dt-card)_97%,var(--dt-primary)_3%)] [&>svg]:text-primary`}},defaultVariants:{variant:`default`}});function l(e){let t=(0,o.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let l;t[4]!==n||t[5]!==i?(l=a(c({variant:i}),n),t[4]=n,t[5]=i,t[6]=l):l=t[6];let u;return t[7]!==r||t[8]!==l?(u=(0,s.jsx)(`div`,{className:l,"data-slot":`alert`,role:`alert`,...r}),t[7]=r,t[8]=l,t[9]=u):u=t[9],u}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 i;t[3]===n?i=t[4]:(i=a(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight text-foreground`,n),t[3]=n,t[4]=i);let c;return t[5]!==r||t[6]!==i?(c=(0,s.jsx)(`div`,{className:i,"data-slot":`alert-title`,...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}function d(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 i;t[3]===n?i=t[4]:(i=a(`col-start-2 grid justify-items-start gap-1 text-muted-foreground [&_p]:leading-relaxed`,n),t[3]=n,t[4]=i);let c;return t[5]!==r||t[6]!==i?(c=(0,s.jsx)(`div`,{className:i,"data-slot":`alert-description`,...r}),t[5]=r,t[6]=i,t[7]=c):c=t[7],c}export{d as n,u as r,l as t};