"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3862],{93862:(e,t,o)=>{o.r(t),o.d(t,{default:()=>S,getTableSortLabelUtilityClass:()=>h,tableSortLabelClasses:()=>A});var r=o(70799),n=o(93878),i=o(7552),a=o(48054),c=o(74893),s=o(69500);const l=(0,c.A)((0,s.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var d=o(51148),p=o(60129),b=o(4785),u=o(15622),v=o(33761),m=o(85693);function h(e){return(0,m.Ay)("MuiTableSortLabel",e)}const A=(0,v.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),f=(0,d.Ay)(a.A,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.active&&t.active]}})((0,p.A)((({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,[`& .${A.icon}`]:{opacity:.5}},[`&.${A.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${A.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})))),y=(0,d.Ay)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,t[`iconDirection${(0,u.A)(o.direction)}`]]}})((0,p.A)((({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]})))),S=i.forwardRef((function(e,t){const o=(0,b.b)({props:e,name:"MuiTableSortLabel"}),{active:i=!1,children:a,className:c,direction:d="asc",hideSortIcon:p=!1,IconComponent:v=l,...m}=o,A={...o,active:i,direction:d,hideSortIcon:p,IconComponent:v},S=(e=>{const{classes:t,direction:o,active:n}=e,i={root:["root",n&&"active",`direction${(0,u.A)(o)}`],icon:["icon",`iconDirection${(0,u.A)(o)}`]};return(0,r.A)(i,h,t)})(A);return(0,s.jsxs)(f,{className:(0,n.A)(S.root,c),component:"span",disableRipple:!0,ownerState:A,ref:t,...m,children:[a,p&&!i?null:(0,s.jsx)(y,{as:v,className:(0,n.A)(S.icon),ownerState:A})]})}))}}]);
//# sourceMappingURL=3862.9fd8e870.chunk.js.map