"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[1918],{77491:function(n,e,o){o.d(e,{Z:function(){return S}});var r=o(68079),t=o(96234),i=o(56666),a=o(31461),u=o(7896),c=o(30969),s=o(81856),l=o(26540),d=o(99853),f=o(62221),p=o(2441),b=o(46827),m=o(63970),v=o(70054),Z=o(44121),y=o(43565),w=o(74262),h={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},k=function(n){var e=n.theme,o=n.ownerState,r=function(n){return h[n]||n}(o.color),t=(0,y.D)(e,"palette.".concat(r),!1)||o.color,i=(0,y.D)(e,"palette.".concat(r,"Channel"));return"vars"in e&&i?"rgba(".concat(i," / 0.4)"):(0,w.Fq)(t,.4)},x=o(37574),C=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],g=(0,f.ZP)(v.Z,{name:"MuiLink",slot:"Root",overridesResolver:function(n,e){var o=n.ownerState;return[e.root,e["underline".concat((0,d.Z)(o.underline))],"button"===o.component&&e.button]}})((function(n){var e=n.theme,o=n.ownerState;return(0,u.Z)({},"none"===o.underline&&{textDecoration:"none"},"hover"===o.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===o.underline&&(0,u.Z)({textDecoration:"underline"},"inherit"!==o.color&&{textDecorationColor:k({theme:e,ownerState:o})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===o.component&&(0,i.Z)({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"}},"&.".concat(Z.Z.focusVisible),{outline:"auto"}))})),S=c.forwardRef((function(n,e){var o=(0,p.Z)({props:n,name:"MuiLink"}),i=o.className,f=o.color,v=void 0===f?"primary":f,y=o.component,w=void 0===y?"a":y,k=o.onBlur,S=o.onFocus,D=o.TypographyClasses,A=o.underline,F=void 0===A?"always":A,V=o.variant,L=void 0===V?"inherit":V,M=o.sx,R=(0,a.Z)(o,C),j=(0,b.Z)(),B=j.isFocusVisibleRef,N=j.onBlur,_=j.onFocus,T=j.ref,z=c.useState(!1),H=(0,t.Z)(z,2),P=H[0],W=H[1],q=(0,m.Z)(e,T),O=(0,u.Z)({},o,{color:v,component:w,focusVisible:P,underline:F,variant:L}),U=function(n){var e=n.classes,o=n.component,r=n.focusVisible,t=n.underline,i={root:["root","underline".concat((0,d.Z)(t)),"button"===o&&"button",r&&"focusVisible"]};return(0,l.Z)(i,Z.w,e)}(O);return(0,x.jsx)(g,(0,u.Z)({color:v,className:(0,s.default)(U.root,i),classes:D,component:w,onBlur:function(n){N(n),!1===B.current&&W(!1),k&&k(n)},onFocus:function(n){_(n),!0===B.current&&W(!0),S&&S(n)},ref:q,ownerState:O,variant:L,sx:[].concat((0,r.Z)(Object.keys(h).includes(v)?[]:[{color:v}]),(0,r.Z)(Array.isArray(M)?M:[M]))},R))}))},71918:function(n,e,o){o.r(e),o.d(e,{default:function(){return r.Z},getLinkUtilityClass:function(){return t.w},linkClasses:function(){return t.Z}});var r=o(77491),t=o(44121)},44121:function(n,e,o){o.d(e,{w:function(){return t}});var r=o(2975);function t(n){return(0,r.Z)("MuiLink",n)}var i=(0,o(62746).Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);e.Z=i}}]);
//# sourceMappingURL=1918.62d8d727.chunk.js.map