"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[7811],{97811:(e,o,t)=>{t.r(o),t.d(o,{default:()=>g,getTabUtilityClass:()=>u,tabClasses:()=>m});var i=t(55559),l=t(30984),a=t(66204),r=t(56317),n=t(58029),s=t(42870),c=t(40118),d=t(57369),p=t(61125),b=t(58109),h=t(95201);function u(e){return(0,h.Z)("MuiTab",e)}const m=(0,b.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);var x=t(43188);const w=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],f=(0,p.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.label&&t.icon&&o.labelIcon,o[`textColor${(0,c.Z)(t.textColor)}`],t.fullWidth&&o.fullWidth,t.wrapped&&o.wrapped]}})((({theme:e,ownerState:o})=>(0,l.Z)({},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.Z)({},"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.Z)({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:v,onFocus:Z,selected:F,selectionFollowsFocus:P,textColor:T="inherit",value:k,wrapped:R=!1}=t,$=(0,i.Z)(t,w),S=(0,l.Z)({},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.Z)(t)}`,i&&"fullWidth",l&&"wrapped",s&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return(0,n.Z)(p,u,o)})(S),I=m&&y&&a.isValidElement(m)?a.cloneElement(m,{className:(0,r.Z)(j.iconWrapper,m.props.className)}):m;return(0,x.jsxs)(f,(0,l.Z)({focusRipple:!b,className:(0,r.Z)(j.root,s),ref:o,role:"tab","aria-selected":F,disabled:p,onClick:e=>{!F&&W&&W(e,k),v&&v(e)},onFocus:e=>{P&&!F&&W&&W(e,k),Z&&Z(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=7811.4e4d2f09.chunk.js.map