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