"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[589],{60589:(e,t,o)=>{o.r(t),o.d(t,{default:()=>x,getTableSortLabelUtilityClass:()=>h,tableSortLabelClasses:()=>S});var r=o(31461),n=o(7896),a=o(92705),c=o(66184),i=o(41867),s=o(15543),l=o(17886),d=o(80838);const u=(0,l.Z)((0,d.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var p=o(75693),b=o(90293),v=o(9931),m=o(70101),f=o(88498);function h(e){return(0,f.Z)("MuiTableSortLabel",e)}const S=(0,m.Z)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),Z=["active","children","className","direction","hideSortIcon","IconComponent"],w=(0,p.ZP)(s.Z,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.active&&t.active]}})((e=>{let{theme:t}=e;return{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,["& .".concat(S.icon)]:{opacity:.5}},["&.".concat(S.active)]:{color:(t.vars||t).palette.text.primary,["& .".concat(S.icon)]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}})),y=(0,p.ZP)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,t["iconDirection".concat((0,v.Z)(o.direction))]]}})((e=>{let{theme:t,ownerState:o}=e;return(0,n.Z)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===o.direction&&{transform:"rotate(0deg)"},"asc"===o.direction&&{transform:"rotate(180deg)"})})),x=i.forwardRef((function(e,t){const o=(0,b.Z)({props:e,name:"MuiTableSortLabel"}),{active:i=!1,children:s,className:l,direction:p="asc",hideSortIcon:m=!1,IconComponent:f=u}=o,S=(0,r.Z)(o,Z),x=(0,n.Z)({},o,{active:i,direction:p,hideSortIcon:m,IconComponent:f}),L=(e=>{const{classes:t,direction:o,active:r}=e,n={root:["root",r&&"active"],icon:["icon","iconDirection".concat((0,v.Z)(o))]};return(0,a.Z)(n,h,t)})(x);return(0,d.jsxs)(w,(0,n.Z)({className:(0,c.Z)(L.root,l),component:"span",disableRipple:!0,ownerState:x,ref:t},S,{children:[s,m&&!i?null:(0,d.jsx)(y,{as:f,className:(0,c.Z)(L.icon),ownerState:x})]}))}))}}]);
//# sourceMappingURL=589.26a3ea3a.chunk.js.map