"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5050],{25050:(e,t,o)=>{o.r(t),o.d(t,{default:()=>S,getTableSortLabelUtilityClass:()=>y,tableSortLabelClasses:()=>A});var r=o(75100),n=o(93878),i=o(7552),a=o(43124),s=o(29772),c=o(69500);const l=(0,s.A)((0,c.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(80317),p=o(21928),b=o(50864),u=o(74325),v=o(51062),m=o(2958);function y(e){return(0,m.Ay)("MuiTableSortLabel",e)}const A=(0,v.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]);var h=o(22020);const 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}}}))),w=(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:s,direction:d="asc",hideSortIcon:p=!1,IconComponent:v=l,slots:m={},slotProps:A={},...S}=o,x={...o,active:i,direction:d,hideSortIcon:p,IconComponent:v},L=(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,y,t)})(x),T={slots:m,slotProps:A},[g,D]=(0,h.A)("root",{elementType:f,externalForwardedProps:T,ownerState:x,className:(0,n.A)(L.root,s),ref:t}),[C,j]=(0,h.A)("icon",{elementType:w,externalForwardedProps:T,ownerState:x,className:L.icon});return(0,c.jsxs)(g,{disableRipple:!0,component:"span",...D,...S,children:[a,p&&!i?null:(0,c.jsx)(C,{as:v,...j})]})})}}]);
//# sourceMappingURL=5050.03577c3a.chunk.js.map