"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[4399],{74399:(e,t,o)=>{o.r(t),o.d(t,{default:()=>x,getTableSortLabelUtilityClass:()=>S,tableSortLabelClasses:()=>f});var r=o(55559),n=o(30984),i=o(58029),a=o(56317),c=o(66204),s=o(42870),l=o(50968),d=o(43188);const p=(0,l.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");var u=o(61125),b=o(57369),v=o(40118),m=o(58109),h=o(95201);function S(e){return(0,h.Z)("MuiTableSortLabel",e)}const f=(0,m.Z)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),Z=["active","children","className","direction","hideSortIcon","IconComponent"],w=(0,u.ZP)(s.Z,{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,[`& .${f.icon}`]:{opacity:.5}},[`&.${f.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${f.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),y=(0,u.ZP)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,t[`iconDirection${(0,v.Z)(o.direction)}`]]}})((({theme:e,ownerState:t})=>(0,n.Z)({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.Z)({props:e,name:"MuiTableSortLabel"}),{active:c=!1,children:s,className:l,direction:u="asc",hideSortIcon:m=!1,IconComponent:h=p}=o,f=(0,r.Z)(o,Z),x=(0,n.Z)({},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.Z)(o)}`]};return(0,i.Z)(n,S,t)})(x);return(0,d.jsxs)(w,(0,n.Z)({className:(0,a.Z)(L.root,l),component:"span",disableRipple:!0,ownerState:x,ref:t},f,{children:[s,m&&!c?null:(0,d.jsx)(y,{as:h,className:(0,a.Z)(L.icon),ownerState:x})]}))}))}}]);
//# sourceMappingURL=4399.c1e107de.chunk.js.map