"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3862],{93862:(e,t,o)=>{o.r(t),o.d(t,{default:()=>x,getTableSortLabelUtilityClass:()=>A,tableSortLabelClasses:()=>S});var r=o(83673),n=o(6614),i=o(60827),a=o(93878),c=o(7552),s=o(83159),l=o(74893),d=o(69500);const p=(0,l.A)((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 u=o(51148),b=o(31049),v=o(15622),m=o(55549),h=o(9577);function A(e){return(0,h.Ay)("MuiTableSortLabel",e)}const S=(0,m.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),f=["active","children","className","direction","hideSortIcon","IconComponent"],w=(0,u.Ay)(s.A,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.active&&t.active]}})((({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${S.icon}`]:{opacity:.5}},[`&.${S.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${S.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),y=(0,u.Ay)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,t[`iconDirection${(0,v.A)(o.direction)}`]]}})((({theme:e,ownerState:t})=>(0,n.A)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===t.direction&&{transform:"rotate(0deg)"},"asc"===t.direction&&{transform:"rotate(180deg)"}))),x=c.forwardRef((function(e,t){const o=(0,b.A)({props:e,name:"MuiTableSortLabel"}),{active:c=!1,children:s,className:l,direction:u="asc",hideSortIcon:m=!1,IconComponent:h=p}=o,S=(0,r.A)(o,f),x=(0,n.A)({},o,{active:c,direction:u,hideSortIcon:m,IconComponent:h}),L=(e=>{const{classes:t,direction:o,active:r}=e,n={root:["root",r&&"active"],icon:["icon",`iconDirection${(0,v.A)(o)}`]};return(0,i.A)(n,A,t)})(x);return(0,d.jsxs)(w,(0,n.A)({className:(0,a.A)(L.root,l),component:"span",disableRipple:!0,ownerState:x,ref:t},S,{children:[s,m&&!c?null:(0,d.jsx)(y,{as:h,className:(0,a.A)(L.icon),ownerState:x})]}))}))}}]);
//# sourceMappingURL=3862.f56c72d0.chunk.js.map