import{m as x,n as h,a as p,o as g,_ as k,p as a,j as v,q as R,t as V,v as F,P as z,ak as b,Z as W,al as E,a9 as H,y as L,T as q}from"./index-xfjNwoa4.js";function I(e){return x("MuiCard",e)}h("MuiCard",["root"]);const O=["className","raised"],S=e=>{const{classes:o}=e;return V({root:["root"]},I,o)},Z=F(z,{name:"MuiCard",slot:"Root",overridesResolver:(e,o)=>o.root})(()=>({overflow:"hidden"})),so=p.forwardRef(function(o,s){const n=g({props:o,name:"MuiCard"}),{className:t,raised:r=!1}=n,c=k(n,O),i=a({},n,{raised:r}),u=S(i);return v.jsx(Z,a({className:R(u.root,t),elevation:r?8:void 0,ref:s,ownerState:i},c))});function G(e){return x("MuiLink",e)}const J=h("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),D={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},K=e=>D[e]||e,Q=({theme:e,ownerState:o})=>{const s=K(o.color),n=b(e,`palette.${s}`,!1)||o.color,t=b(e,`palette.${s}Channel`);return"vars"in e&&t?`rgba(${t} / 0.4)`:W(n,.4)},X=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Y=e=>{const{classes:o,component:s,focusVisible:n,underline:t}=e,r={root:["root",`underline${L(t)}`,s==="button"&&"button",n&&"focusVisible"]};return V(r,G,o)},oo=F(q,{name:"MuiLink",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:s}=e;return[o.root,o[`underline${L(s.underline)}`],s.component==="button"&&o.button]}})(({theme:e,ownerState:o})=>a({},o.underline==="none"&&{textDecoration:"none"},o.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},o.underline==="always"&&a({textDecoration:"underline"},o.color!=="inherit"&&{textDecorationColor:Q({theme:e,ownerState:o})},{"&:hover":{textDecorationColor:"inherit"}}),o.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${J.focusVisible}`]:{outline:"auto"}})),no=p.forwardRef(function(o,s){const n=g({props:o,name:"MuiLink"}),{className:t,color:r="primary",component:c="a",onBlur:i,onFocus:u,TypographyClasses:M,underline:$="always",variant:f="inherit",sx:d}=n,N=k(n,X),{isFocusVisibleRef:m,onBlur:T,onFocus:j,ref:A}=E(),[B,y]=p.useState(!1),P=H(s,A),U=l=>{T(l),m.current===!1&&y(!1),i&&i(l)},_=l=>{j(l),m.current===!0&&y(!0),u&&u(l)},C=a({},n,{color:r,component:c,focusVisible:B,underline:$,variant:f}),w=Y(C);return v.jsx(oo,a({color:r,className:R(w.root,t),classes:M,component:c,onBlur:U,onFocus:_,ref:P,ownerState:C,variant:f,sx:[...Object.keys(D).includes(r)?[]:[{color:r}],...Array.isArray(d)?d:[d]]},N))});export{so as C,no as L};
