"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[4629],{87731:(e,n,r)=>{r.d(n,{A:()=>x});var t=r(7552),o=r(93878),a=r(72639),l=r(70799),i=r(91527),s=r(15622),u=r(51148),c=r(48231),p=r(60129),d=r(4785),y=r(36715),b=r(58161),m=r(39995);const v=({theme:e,ownerState:n})=>{const r=n.color,t=(0,m.Yn)(e,`palette.${r}`,!1)||n.color,o=(0,m.Yn)(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:(0,a.X4)(t,.4)};var A=r(69500);const h={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},w=(0,u.Ay)(y.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.root,n[`underline${(0,s.A)(r.underline)}`],"button"===r.component&&n.button]}})((0,p.A)((({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:e,ownerState:n})=>"always"===e&&"inherit"!==n.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter((([,e])=>e&&e.main)).map((([n])=>({props:{underline:"always",color:n},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.4)`:(0,a.X4)(e.palette[n].main,.4)}}))),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,a.X4)(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:(0,a.X4)(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"},[`&.${b.A.focusVisible}`]:{outline:"auto"}}}]})))),x=t.forwardRef((function(e,n){const r=(0,d.b)({props:e,name:"MuiLink"}),a=(0,c.A)(),{className:u,color:p="primary",component:y="a",onBlur:m,onFocus:x,TypographyClasses:k,underline:C="always",variant:g="inherit",sx:f,...L}=r,[S,$]=t.useState(!1),D={...r,color:p,component:y,focusVisible:S,underline:C,variant:g},M=(e=>{const{classes:n,component:r,focusVisible:t,underline:o}=e,a={root:["root",`underline${(0,s.A)(o)}`,"button"===r&&"button",t&&"focusVisible"]};return(0,l.A)(a,b.t,n)})(D);return(0,A.jsx)(w,{color:p,className:(0,o.A)(M.root,u),classes:k,component:y,onBlur:e=>{(0,i.A)(e.target)||$(!1),m&&m(e)},onFocus:e=>{(0,i.A)(e.target)&&$(!0),x&&x(e)},ref:n,ownerState:D,variant:g,...L,sx:[...void 0===h[p]?[{color:p}]:[],...Array.isArray(f)?f:[f]],style:{...L.style,..."always"===C&&"inherit"!==p&&!h[p]&&{"--Link-underlineColor":v({theme:a,ownerState:D})}}})}))},94629:(e,n,r)=>{r.r(n),r.d(n,{default:()=>t.A,getLinkUtilityClass:()=>o.t,linkClasses:()=>o.A});var t=r(87731),o=r(58161)},58161:(e,n,r)=>{r.d(n,{A:()=>l,t:()=>a});var t=r(33761),o=r(85693);function a(e){return(0,o.Ay)("MuiLink",e)}const l=(0,t.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"])}}]);
//# sourceMappingURL=4629.c0066b47.chunk.js.map