"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[4065],{14065:function(e,r,o){o.r(r),o.d(r,{breadcrumbsClasses:function(){return I},default:function(){return _},getBreadcrumbsUtilityClass:function(){return k}});var t=o(68079),a=o(96234),l=o(56666),n=o(7896),s=o(31461),c=o(30969),i=(o(9479),o(87023)),d=o(26540),u=o(77997),p=o(45971),m=o(17363),f=o(33359),h=o(74262),g=o(17469),v=o(37574),x=(0,g.Z)((0,v.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),b=o(6596),Z=["slots","slotProps"],C=(0,p.ZP)(b.Z)((function(e){var r=e.theme;return(0,n.Z)({display:"flex",marginLeft:"calc(".concat(r.spacing(1)," * 0.5)"),marginRight:"calc(".concat(r.spacing(1)," * 0.5)")},"light"===r.palette.mode?{backgroundColor:r.palette.grey[100],color:r.palette.grey[700]}:{backgroundColor:r.palette.grey[700],color:r.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,n.Z)({},"light"===r.palette.mode?{backgroundColor:r.palette.grey[200]}:{backgroundColor:r.palette.grey[600]}),"&:active":(0,n.Z)({boxShadow:r.shadows[0]},"light"===r.palette.mode?{backgroundColor:(0,h._4)(r.palette.grey[200],.12)}:{backgroundColor:(0,h._4)(r.palette.grey[600],.12)})})})),w=(0,p.ZP)(x)({width:24,height:16});var y=function(e){var r=e.slots,o=void 0===r?{}:r,t=e.slotProps,a=void 0===t?{}:t,l=(0,s.Z)(e,Z),c=e;return(0,v.jsx)("li",{children:(0,v.jsx)(C,(0,n.Z)({focusRipple:!0},l,{ownerState:c,children:(0,v.jsx)(w,(0,n.Z)({as:o.CollapsedIcon,ownerState:c},a.collapsedIcon))}))})},S=o(62746),j=o(2975);function k(e){return(0,j.Z)("MuiBreadcrumbs",e)}var I=(0,S.Z)("MuiBreadcrumbs",["root","ol","li","separator"]),P=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],B=(0,p.ZP)(f.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:function(e,r){return[(0,l.Z)({},"& .".concat(I.li),r.li),r.root]}})({}),R=(0,p.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:function(e,r){return r.ol}})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),M=(0,p.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:function(e,r){return r.separator}})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function N(e,r,o,t){return e.reduce((function(a,l,n){return n<e.length-1?a=a.concat(l,(0,v.jsx)(M,{"aria-hidden":!0,className:r,ownerState:t,children:o},"separator-".concat(n))):a.push(l),a}),[])}var _=c.forwardRef((function(e,r){var o=(0,m.Z)({props:e,name:"MuiBreadcrumbs"}),l=o.children,p=o.className,f=o.component,h=void 0===f?"nav":f,g=o.slots,x=void 0===g?{}:g,b=o.slotProps,Z=void 0===b?{}:b,C=o.expandText,w=void 0===C?"Show path":C,S=o.itemsAfterCollapse,j=void 0===S?1:S,I=o.itemsBeforeCollapse,M=void 0===I?1:I,_=o.maxItems,z=void 0===_?8:_,A=o.separator,T=void 0===A?"/":A,L=(0,s.Z)(o,P),q=c.useState(!1),E=(0,a.Z)(q,2),H=E[0],O=E[1],U=(0,n.Z)({},o,{component:h,expanded:H,expandText:w,itemsAfterCollapse:j,itemsBeforeCollapse:M,maxItems:z,separator:T}),V=function(e){var r=e.classes;return(0,d.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},k,r)}(U),W=(0,u.y)({elementType:x.CollapsedIcon,externalSlotProps:Z.collapsedIcon,ownerState:U}),D=c.useRef(null),F=c.Children.toArray(l).filter((function(e){return c.isValidElement(e)})).map((function(e,r){return(0,v.jsx)("li",{className:V.li,children:e},"child-".concat(r))}));return(0,v.jsx)(B,(0,n.Z)({ref:r,component:h,color:"text.secondary",className:(0,i.Z)(V.root,p),ownerState:U},L,{children:(0,v.jsx)(R,{className:V.ol,ref:D,ownerState:U,children:N(H||z&&F.length<=z?F:function(e){return M+j>=e.length?e:[].concat((0,t.Z)(e.slice(0,M)),[(0,v.jsx)(y,{"aria-label":w,slots:{CollapsedIcon:x.CollapsedIcon},slotProps:{collapsedIcon:W},onClick:function(){O(!0);var e=D.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis")],(0,t.Z)(e.slice(e.length-j,e.length)))}(F),V.separator,T,U)})}))}))}}]);
//# sourceMappingURL=4065.a7da2e64.chunk.js.map