"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[4629],{87731:(e,n,o)=>{o.d(n,{A:()=>x});var r=o(83673),t=o(6614),i=o(7552),a=o(93878),s=o(60827),l=o(15622),c=o(51148),u=o(31049),d=o(9527),p=o(51584),b=o(36715),A=o(58161),m=o(20605),y=o(18283);const h={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},v=({theme:e,ownerState:n})=>{const o=(e=>h[e]||e)(n.color),r=(0,m.Yn)(e,`palette.${o}`,!1)||n.color,t=(0,m.Yn)(e,`palette.${o}Channel`);return"vars"in e&&t?`rgba(${t} / 0.4)`:(0,y.X4)(r,.4)};var w=o(69500);const f=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],k=(0,c.Ay)(b.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:o}=e;return[n.root,n[`underline${(0,l.A)(o.underline)}`],"button"===o.component&&n.button]}})((({theme:e,ownerState:n})=>(0,t.A)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,t.A)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:v({theme:e,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{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"},[`&.${A.A.focusVisible}`]:{outline:"auto"}}))),x=i.forwardRef((function(e,n){const o=(0,u.A)({props:e,name:"MuiLink"}),{className:c,color:b="primary",component:m="a",onBlur:y,onFocus:v,TypographyClasses:x,underline:g="always",variant:C="inherit",sx:S}=o,D=(0,r.A)(o,f),{isFocusVisibleRef:V,onBlur:$,onFocus:F,ref:L}=(0,d.A)(),[M,R]=i.useState(!1),T=(0,p.A)(n,L),j=(0,t.A)({},o,{color:b,component:m,focusVisible:M,underline:g,variant:C}),B=(e=>{const{classes:n,component:o,focusVisible:r,underline:t}=e,i={root:["root",`underline${(0,l.A)(t)}`,"button"===o&&"button",r&&"focusVisible"]};return(0,s.A)(i,A.t,n)})(j);return(0,w.jsx)(k,(0,t.A)({color:b,className:(0,a.A)(B.root,c),classes:x,component:m,onBlur:e=>{$(e),!1===V.current&&R(!1),y&&y(e)},onFocus:e=>{F(e),!0===V.current&&R(!0),v&&v(e)},ref:T,ownerState:j,variant:C,sx:[...Object.keys(h).includes(b)?[]:[{color:b}],...Array.isArray(S)?S:[S]]},D))}))},94629:(e,n,o)=>{o.r(n),o.d(n,{default:()=>r.A,getLinkUtilityClass:()=>t.t,linkClasses:()=>t.A});var r=o(87731),t=o(58161)},58161:(e,n,o)=>{o.d(n,{A:()=>a,t:()=>i});var r=o(55549),t=o(9577);function i(e){return(0,t.Ay)("MuiLink",e)}const a=(0,r.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"])}}]);
//# sourceMappingURL=4629.4da104a8.chunk.js.map