"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[1410],{61410:function(e,t,o){o.r(t),o.d(t,{default:function(){return x},getTableSortLabelUtilityClass:function(){return h},tableSortLabelClasses:function(){return S}});var n=o(56666),r=o(31461),i=o(7896),a=o(26540),c=o(81856),s=o(30969),l=o(15556),u=o(12104),d=o(37574),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(62221),p=o(2441),b=o(99853),m=o(2975);function h(e){return(0,m.Z)("MuiTableSortLabel",e)}var S=(0,o(62746).Z)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),Z=["active","children","className","direction","hideSortIcon","IconComponent"],w=(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}))})),y=(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)"})})),x=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,S=o.hideSortIcon,x=void 0!==S&&S,L=o.IconComponent,C=void 0===L?v:L,I=(0,r.Z)(o,Z),g=(0,i.Z)({},o,{active:s,direction:m,hideSortIcon:x,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)(w,(0,i.Z)({className:(0,c.default)(D.root,u),component:"span",disableRipple:!0,ownerState:g,ref:t},I,{children:[l,x&&!s?null:(0,d.jsx)(y,{as:C,className:(0,c.default)(D.icon),ownerState:g})]}))}))}}]);
//# sourceMappingURL=1410.9c7d2c7b.chunk.js.map