"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[2332],{92332:function(e,o,t){t.r(o),t.d(o,{default:function(){return C},getTabUtilityClass:function(){return h},tabClasses:function(){return m}});var i=t(56666),a=t(31461),n=t(7896),l=t(30969),r=t(87023),c=t(26540),s=t(6596),d=t(24099),p=t(17363),u=t(45971),b=t(62746),f=t(2975);function h(e){return(0,f.Z)("MuiTab",e)}var m=(0,b.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),x=t(37574),w=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],v=(0,u.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:function(e,o){var t=e.ownerState;return[o.root,t.label&&t.icon&&o.labelIcon,o["textColor".concat((0,d.Z)(t.textColor))],t.fullWidth&&o.fullWidth,t.wrapped&&o.wrapped]}})((function(e){var o,t,a,l=e.theme,r=e.ownerState;return(0,n.Z)({},l.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},r.label&&{flexDirection:"top"===r.iconPosition||"bottom"===r.iconPosition?"column":"row"},{lineHeight:1.25},r.icon&&r.label&&(0,i.Z)({minHeight:72,paddingTop:9,paddingBottom:9},"& > .".concat(m.iconWrapper),(0,n.Z)({},"top"===r.iconPosition&&{marginBottom:6},"bottom"===r.iconPosition&&{marginTop:6},"start"===r.iconPosition&&{marginRight:l.spacing(1)},"end"===r.iconPosition&&{marginLeft:l.spacing(1)})),"inherit"===r.textColor&&(o={color:"inherit",opacity:.6},(0,i.Z)(o,"&.".concat(m.selected),{opacity:1}),(0,i.Z)(o,"&.".concat(m.disabled),{opacity:(l.vars||l).palette.action.disabledOpacity}),o),"primary"===r.textColor&&(t={color:(l.vars||l).palette.text.secondary},(0,i.Z)(t,"&.".concat(m.selected),{color:(l.vars||l).palette.primary.main}),(0,i.Z)(t,"&.".concat(m.disabled),{color:(l.vars||l).palette.text.disabled}),t),"secondary"===r.textColor&&(a={color:(l.vars||l).palette.text.secondary},(0,i.Z)(a,"&.".concat(m.selected),{color:(l.vars||l).palette.secondary.main}),(0,i.Z)(a,"&.".concat(m.disabled),{color:(l.vars||l).palette.text.disabled}),a),r.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},r.wrapped&&{fontSize:l.typography.pxToRem(12)})})),C=l.forwardRef((function(e,o){var t=(0,p.Z)({props:e,name:"MuiTab"}),i=t.className,s=t.disabled,u=void 0!==s&&s,b=t.disableFocusRipple,f=void 0!==b&&b,m=t.fullWidth,C=t.icon,Z=t.iconPosition,g=void 0===Z?"top":Z,y=t.indicator,W=t.label,F=t.onChange,P=t.onClick,k=t.onFocus,R=t.selected,S=t.selectionFollowsFocus,T=t.textColor,j=void 0===T?"inherit":T,I=t.value,N=t.wrapped,M=void 0!==N&&N,_=(0,a.Z)(t,w),B=(0,n.Z)({},t,{disabled:u,disableFocusRipple:f,selected:R,icon:!!C,iconPosition:g,label:!!W,fullWidth:m,textColor:j,wrapped:M}),H=function(e){var o=e.classes,t=e.textColor,i=e.fullWidth,a=e.wrapped,n=e.icon,l=e.label,r=e.selected,s=e.disabled,p={root:["root",n&&l&&"labelIcon","textColor".concat((0,d.Z)(t)),i&&"fullWidth",a&&"wrapped",r&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]};return(0,c.Z)(p,h,o)}(B),E=C&&W&&l.isValidElement(C)?l.cloneElement(C,{className:(0,r.Z)(H.iconWrapper,C.props.className)}):C;return(0,x.jsxs)(v,(0,n.Z)({focusRipple:!f,className:(0,r.Z)(H.root,i),ref:o,role:"tab","aria-selected":R,disabled:u,onClick:function(e){!R&&F&&F(e,I),P&&P(e)},onFocus:function(e){S&&!R&&F&&F(e,I),k&&k(e)},ownerState:B,tabIndex:R?0:-1},_,{children:["top"===g||"start"===g?(0,x.jsxs)(l.Fragment,{children:[E,W]}):(0,x.jsxs)(l.Fragment,{children:[W,E]}),y]}))}))}}]);
//# sourceMappingURL=2332.bdd3789b.chunk.js.map