import{r as s,_ as E,R as t,c as N,P as e,a as h}from"./index-sga-FecS.js";import{u as x,T as y,C as T}from"./university-logo-full-HPG0vyLU.js";const c=s.forwardRef((i,m)=>{var{children:d,className:u,color:o="primary",dismissible:a,variant:f,visible:r=!0,onClose:b}=i,p=E(i,["children","className","color","dismissible","variant","visible","onClose"]);const l=s.useRef(null),C=x(m,l),[v,n]=s.useState(r);return s.useEffect(()=>{n(r)},[r]),t.createElement(y,{in:v,mountOnEnter:!0,nodeRef:l,onExit:b,timeout:150,unmountOnExit:!0},R=>t.createElement("div",Object.assign({className:N("alert",f==="solid"?`bg-${o} text-white`:`alert-${o}`,{"alert-dismissible fade":a,show:R==="entered"},u),role:"alert"},p,{ref:C}),d,a&&t.createElement(T,{onClick:()=>n(!1)})))});c.propTypes={children:e.node,className:e.string,color:h.isRequired,dismissible:e.bool,onClose:e.func,variant:e.string,visible:e.bool};c.displayName="CAlert";export{c as C};
