import{s as e}from"./rolldown-runtime-C5c2KzVm.js";import{$P as t}from"./lucide-C4oWPzu4.js";import{p as n,t as r}from"./utils-Bs-0X7qI.js";import{r as i}from"./bundle-mjs-C4g7ASB5.js";import{t as a}from"./dist-CImBN8k_.js";var o=n();e(t(),1);var s=i(),c=a(`grid gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 w-full relative group/alert`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function l(e){let t=(0,o.c)(10),n,i,a;t[0]===e?(n=t[1],i=t[2],a=t[3]):({className:n,variant:a,...i}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=a);let l;t[4]!==n||t[5]!==a?(l=r(c({variant:a}),n),t[4]=n,t[5]=a,t[6]=l):l=t[6];let u;return t[7]!==i||t[8]!==l?(u=(0,s.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:l,...i}),t[7]=i,t[8]=l,t[9]=u):u=t[9],u}function u(e){let t=(0,o.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`[&_a]:hover:text-foreground font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3`,n),t[3]=n,t[4]=a);let c;return t[5]!==i||t[6]!==a?(c=(0,s.jsx)(`div`,{"data-slot":`alert-title`,className:a,...i}),t[5]=i,t[6]=a,t[7]=c):c=t[7],c}function d(e){let t=(0,o.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`text-muted-foreground [&_a]:hover:text-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4`,n),t[3]=n,t[4]=a);let c;return t[5]!==i||t[6]!==a?(c=(0,s.jsx)(`div`,{"data-slot":`alert-description`,className:a,...i}),t[5]=i,t[6]=a,t[7]=c):c=t[7],c}export{d as n,u as r,l as t};