"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[8165],{28165:(e,o,t)=>{t.r(o),t.d(o,{default:()=>g,getTabUtilityClass:()=>u,tabClasses:()=>m});var i=t(83673),l=t(6614),a=t(7552),r=t(93878),n=t(60827),s=t(83159),c=t(15622),d=t(31049),p=t(51148),b=t(55549),h=t(9577);function u(e){return(0,h.Ay)("MuiTab",e)}const m=(0,b.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);var x=t(69500);const w=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],f=(0,p.Ay)(s.A,{name:"MuiTab",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.label&&t.icon&&o.labelIcon,o[`textColor${(0,c.A)(t.textColor)}`],t.fullWidth&&o.fullWidth,t.wrapped&&o.wrapped]}})((({theme:e,ownerState:o})=>(0,l.A)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},o.label&&{flexDirection:"top"===o.iconPosition||"bottom"===o.iconPosition?"column":"row"},{lineHeight:1.25},o.icon&&o.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${m.iconWrapper}`]:(0,l.A)({},"top"===o.iconPosition&&{marginBottom:6},"bottom"===o.iconPosition&&{marginTop:6},"start"===o.iconPosition&&{marginRight:e.spacing(1)},"end"===o.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===o.textColor&&{color:"inherit",opacity:.6,[`&.${m.selected}`]:{opacity:1},[`&.${m.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===o.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${m.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===o.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${m.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled}},o.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},o.wrapped&&{fontSize:e.typography.pxToRem(12)}))),g=a.forwardRef((function(e,o){const t=(0,d.A)({props:e,name:"MuiTab"}),{className:s,disabled:p=!1,disableFocusRipple:b=!1,fullWidth:h,icon:m,iconPosition:g="top",indicator:C,label:y,onChange:W,onClick:A,onFocus:v,selected:F,selectionFollowsFocus:P,textColor:T="inherit",value:k,wrapped:R=!1}=t,$=(0,i.A)(t,w),S=(0,l.A)({},t,{disabled:p,disableFocusRipple:b,selected:F,icon:!!m,iconPosition:g,label:!!y,fullWidth:h,textColor:T,wrapped:R}),j=(e=>{const{classes:o,textColor:t,fullWidth:i,wrapped:l,icon:a,label:r,selected:s,disabled:d}=e,p={root:["root",a&&r&&"labelIcon",`textColor${(0,c.A)(t)}`,i&&"fullWidth",l&&"wrapped",s&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return(0,n.A)(p,u,o)})(S),I=m&&y&&a.isValidElement(m)?a.cloneElement(m,{className:(0,r.A)(j.iconWrapper,m.props.className)}):m;return(0,x.jsxs)(f,(0,l.A)({focusRipple:!b,className:(0,r.A)(j.root,s),ref:o,role:"tab","aria-selected":F,disabled:p,onClick:e=>{!F&&W&&W(e,k),A&&A(e)},onFocus:e=>{P&&!F&&W&&W(e,k),v&&v(e)},ownerState:S,tabIndex:F?0:-1},$,{children:["top"===g||"start"===g?(0,x.jsxs)(a.Fragment,{children:[I,y]}):(0,x.jsxs)(a.Fragment,{children:[y,I]}),C]}))}))}}]);
//# sourceMappingURL=8165.3cb8d1c6.chunk.js.map