1import{p as A,q as S,aY as l,f as i,r as v,t as T,u as F,j as R,v as M,A as L,w as P,s as j,T as U,y as z,K as B,aZ as k}from"./index-CuWjzpqd.js";function N(e){return A("MuiLink",e)}const E=S("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),H=({theme:e,ownerState:r})=>{const n=r.color,t=l(e,`palette.${n}.main`,!1)||l(e,`palette.${n}`,!1)||r.color,o=l(e,`palette.${n}.mainChannel`)||l(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:i(t,.4)},m={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},W=e=>{const{classes:r,component:n,focusVisible:t,underline:o}=e,u={root:["root",`underline${L(o)}`,n==="button"&&"button",t&&"focusVisible"]};return P(u,N,r)},q=j(U,{name:"MuiLink",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:n}=e;return[r.root,r[`underline${L(n.underline)}`],n.component==="button"&&r.button]}})(z(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:r,ownerState:n})=>r==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(B()).map(([r])=>({props:{underline:"always",color:r},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.4)`:i(e.palette[r].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:i(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:i(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{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"},[`&.${E.focusVisible}`]:{outline:"auto"}}}]}))),O=v.forwardRef(function(r,n){const t=T({props:r,name:"MuiLink"}),o=F(),{className:u,color:s="primary",component:d="a",onBlur:y,onFocus:b,TypographyClasses:w,underline:x="always",variant:f="inherit",sx:c,...C}=t,[$,g]=v.useState(!1),h=a=>{k(a.target)||g(!1),y&&y(a)},D=a=>{k(a.target)&&g(!0),b&&b(a)},p={...t,color:s,component:d,focusVisible:$,underline:x,variant:f},V=W(p);return R.jsx(q,{color:s,className:M(V.root,u),classes:w,component:d,onBlur:h,onFocus:D,ref:n,ownerState:p,variant:f,...C,sx:[...m[s]===void 0?[{color:s}]:[],...Array.isArray(c)?c:[c]],style:{...C.style,...x==="always"&&s!=="inherit"&&!m[s]&&{"--Link-underlineColor":H({theme:o,ownerState:p})}}})});export{O as L};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.