import{bH as V,bG as F,ba as d,e as l,r as Z,bI as w,bs as G,bt as a,a7 as J,d$ as q,aH as p,bd as D,bv as R,bJ as K,as as Q,e0 as h,e1 as j,a$ as X}from"./index-_6SmYgWK.js";function Y(o){return F("MuiAlert",o)}const z=V("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),oo=d(l.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),so=d(l.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),to=d(l.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),lo=d(l.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),eo=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],no=o=>{const{variant:t,color:e,severity:n,classes:s}=o,c={root:["root",`${t}${R(e||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return K(c,Y,s)},ro=p(Q,{name:"MuiAlert",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.root,t[e.variant],t[`${e.variant}${R(e.color||e.severity)}`]]}})(({theme:o,ownerState:t})=>{const e=o.palette.mode==="light"?h:j,n=o.palette.mode==="light"?j:h,s=t.color||t.severity;return a({},o.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},s&&t.variant==="standard"&&{color:o.vars?o.vars.palette.Alert[`${s}Color`]:e(o.palette[s].light,.6),backgroundColor:o.vars?o.vars.palette.Alert[`${s}StandardBg`]:n(o.palette[s].light,.9),[`& .${z.icon}`]:o.vars?{color:o.vars.palette.Alert[`${s}IconColor`]}:{color:o.palette[s].main}},s&&t.variant==="outlined"&&{color:o.vars?o.vars.palette.Alert[`${s}Color`]:e(o.palette[s].light,.6),border:`1px solid ${(o.vars||o).palette[s].light}`,[`& .${z.icon}`]:o.vars?{color:o.vars.palette.Alert[`${s}IconColor`]}:{color:o.palette[s].main}},s&&t.variant==="filled"&&a({fontWeight:o.typography.fontWeightMedium},o.vars?{color:o.vars.palette.Alert[`${s}FilledColor`],backgroundColor:o.vars.palette.Alert[`${s}FilledBg`]}:{backgroundColor:o.palette.mode==="dark"?o.palette[s].dark:o.palette[s].main,color:o.palette.getContrastText(o.palette[s].main)}))}),ao=p("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(o,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),io=p("div",{name:"MuiAlert",slot:"Message",overridesResolver:(o,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),L=p("div",{name:"MuiAlert",slot:"Action",overridesResolver:(o,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),P={success:l.jsx(oo,{fontSize:"inherit"}),warning:l.jsx(so,{fontSize:"inherit"}),error:l.jsx(to,{fontSize:"inherit"}),info:l.jsx(lo,{fontSize:"inherit"})},po=Z.forwardRef(function(t,e){var n,s,c,x,C,A;const u=w({props:t,name:"MuiAlert"}),{action:v,children:k,className:B,closeText:f="Close",color:S,components:I={},componentsProps:M={},icon:m,iconMapping:E=P,onClose:$,role:_="alert",severity:g="success",slotProps:y={},slots:b={},variant:O="standard"}=u,H=G(u,eo),r=a({},u,{color:S,severity:g,variant:O}),i=no(r),N=(n=(s=b.closeButton)!=null?s:I.CloseButton)!=null?n:J,W=(c=(x=b.closeIcon)!=null?x:I.CloseIcon)!=null?c:q,T=(C=y.closeButton)!=null?C:M.closeButton,U=(A=y.closeIcon)!=null?A:M.closeIcon;return l.jsxs(ro,a({role:_,elevation:0,ownerState:r,className:D(i.root,B),ref:e},H,{children:[m!==!1?l.jsx(ao,{ownerState:r,className:i.icon,children:m||E[g]||P[g]}):null,l.jsx(io,{ownerState:r,className:i.message,children:k}),v!=null?l.jsx(L,{ownerState:r,className:i.action,children:v}):null,v==null&&$?l.jsx(L,{ownerState:r,className:i.action,children:l.jsx(N,a({size:"small","aria-label":f,title:f,color:"inherit",onClick:$},T,{children:l.jsx(W,a({fontSize:"small"},U))}))}):null]}))});/**
 * @license @tabler/icons-react v3.31.0 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */var uo=X("outline","exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]]);export{po as A,uo as I};
