"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[4267],{74267:function(e,t,o){o.r(t),o.d(t,{default:function(){return L},getTableSortLabelUtilityClass:function(){return h},tableSortLabelClasses:function(){return S}});var n=o(56666),r=o(31461),i=o(7896),a=o(73674),c=o(37032),s=o(96902),l=o(83413),u=o(30992),d=o(29938),v=(0,u.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"),f=o(2252),p=o(53068),b=o(70378),m=o(74732),Z=o(61235);function h(e){return(0,Z.Z)("MuiTableSortLabel",e)}var S=(0,m.Z)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),w=["active","children","className","direction","hideSortIcon","IconComponent"],y=(0,f.ZP)(l.Z,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:function(e,t){var o=e.ownerState;return[t.root,o.active&&t.active]}})((function(e){var t=e.theme;return(0,n.Z)({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":(0,n.Z)({color:(t.vars||t).palette.text.secondary},"& .".concat(S.icon),{opacity:.5})},"&.".concat(S.active),(0,n.Z)({color:(t.vars||t).palette.text.primary},"& .".concat(S.icon),{opacity:1,color:(t.vars||t).palette.text.secondary}))})),x=(0,f.ZP)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:function(e,t){var o=e.ownerState;return[t.icon,t["iconDirection".concat((0,b.Z)(o.direction))]]}})((function(e){var t=e.theme,o=e.ownerState;return(0,i.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)"})})),L=s.forwardRef((function(e,t){var o=(0,p.Z)({props:e,name:"MuiTableSortLabel"}),n=o.active,s=void 0!==n&&n,l=o.children,u=o.className,f=o.direction,m=void 0===f?"asc":f,Z=o.hideSortIcon,S=void 0!==Z&&Z,L=o.IconComponent,C=void 0===L?v:L,I=(0,r.Z)(o,w),g=(0,i.Z)({},o,{active:s,direction:m,hideSortIcon:S,IconComponent:C}),D=function(e){var t=e.classes,o=e.direction,n={root:["root",e.active&&"active"],icon:["icon","iconDirection".concat((0,b.Z)(o))]};return(0,a.Z)(n,h,t)}(g);return(0,d.jsxs)(y,(0,i.Z)({className:(0,c.Z)(D.root,u),component:"span",disableRipple:!0,ownerState:g,ref:t},I,{children:[l,S&&!s?null:(0,d.jsx)(x,{as:C,className:(0,c.Z)(D.icon),ownerState:g})]}))}))}}]);
//# sourceMappingURL=4267.3d0feec7.chunk.js.map