"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[5638],{25638:function(e,o,t){t.r(o),t.d(o,{default:function(){return v},getTabUtilityClass:function(){return f},tabClasses:function(){return h}});var i=t(56666),a=t(31461),l=t(7896),n=t(30969),r=t(81856),c=t(26540),s=t(15556),d=t(99853),p=t(2441),u=t(62221),b=t(2975);function f(e){return(0,b.Z)("MuiTab",e)}var h=(0,t(62746).Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),m=t(37574),x=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],w=(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,n=e.theme,r=e.ownerState;return(0,l.Z)({},n.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(h.iconWrapper),(0,l.Z)({},"top"===r.iconPosition&&{marginBottom:6},"bottom"===r.iconPosition&&{marginTop:6},"start"===r.iconPosition&&{marginRight:n.spacing(1)},"end"===r.iconPosition&&{marginLeft:n.spacing(1)})),"inherit"===r.textColor&&(o={color:"inherit",opacity:.6},(0,i.Z)(o,"&.".concat(h.selected),{opacity:1}),(0,i.Z)(o,"&.".concat(h.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity}),o),"primary"===r.textColor&&(t={color:(n.vars||n).palette.text.secondary},(0,i.Z)(t,"&.".concat(h.selected),{color:(n.vars||n).palette.primary.main}),(0,i.Z)(t,"&.".concat(h.disabled),{color:(n.vars||n).palette.text.disabled}),t),"secondary"===r.textColor&&(a={color:(n.vars||n).palette.text.secondary},(0,i.Z)(a,"&.".concat(h.selected),{color:(n.vars||n).palette.secondary.main}),(0,i.Z)(a,"&.".concat(h.disabled),{color:(n.vars||n).palette.text.disabled}),a),r.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},r.wrapped&&{fontSize:n.typography.pxToRem(12)})})),v=n.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,h=void 0!==b&&b,v=t.fullWidth,C=t.icon,g=t.iconPosition,Z=void 0===g?"top":g,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,x),B=(0,l.Z)({},t,{disabled:u,disableFocusRipple:h,selected:R,icon:!!C,iconPosition:Z,label:!!W,fullWidth:v,textColor:j,wrapped:M}),H=function(e){var o=e.classes,t=e.textColor,i=e.fullWidth,a=e.wrapped,l=e.icon,n=e.label,r=e.selected,s=e.disabled,p={root:["root",l&&n&&"labelIcon","textColor".concat((0,d.Z)(t)),i&&"fullWidth",a&&"wrapped",r&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]};return(0,c.Z)(p,f,o)}(B),E=C&&W&&n.isValidElement(C)?n.cloneElement(C,{className:(0,r.default)(H.iconWrapper,C.props.className)}):C;return(0,m.jsxs)(w,(0,l.Z)({focusRipple:!h,className:(0,r.default)(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"===Z||"start"===Z?(0,m.jsxs)(n.Fragment,{children:[E,W]}):(0,m.jsxs)(n.Fragment,{children:[W,E]}),y]}))}))}}]);
//# sourceMappingURL=5638.dcfed51f.chunk.js.map