Mercurial > repos > fubar > jbrowse2
view x/static/js/366.b00bf6ca.chunk.js @ 133:cec274db51c0 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 7d28252954cae9f8db5f8a85d8f29cb2865b504b-dirty
author | fubar |
---|---|
date | Fri, 18 Oct 2024 11:57:55 +0000 |
parents | 49f3d3878413 |
children |
line wrap: on
line source
"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[366],{40366:(e,o,r)=>{r.r(o),r.d(o,{breadcrumbsClasses:()=>A,default:()=>I,getBreadcrumbsUtilityClass:()=>w});var t=r(7552),l=(r(19487),r(93878)),a=r(70799),s=r(1045),n=r(51148),c=r(4785),i=r(36715),p=r(72639),d=r(60129),u=r(74893),m=r(69500);const g=(0,u.A)((0,m.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");var h=r(48054);const b=(0,n.Ay)(h.A)((0,d.A)((({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,..."light"===e.palette.mode?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{..."light"===e.palette.mode?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],..."light"===e.palette.mode?{backgroundColor:(0,p.tL)(e.palette.grey[200],.12)}:{backgroundColor:(0,p.tL)(e.palette.grey[600],.12)}}})))),f=(0,n.Ay)(g)({width:24,height:16}),x=function(e){const{slots:o={},slotProps:r={},...t}=e,l=e;return(0,m.jsx)("li",{children:(0,m.jsx)(b,{focusRipple:!0,...t,ownerState:l,children:(0,m.jsx)(f,{as:o.CollapsedIcon,ownerState:l,...r.collapsedIcon})})})};var y=r(33761),C=r(85693);function w(e){return(0,C.Ay)("MuiBreadcrumbs",e)}const A=(0,y.A)("MuiBreadcrumbs",["root","ol","li","separator"]),S=(0,n.Ay)(i.A,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,o)=>[{[`& .${A.li}`]:o.li},o.root]})({}),v=(0,n.Ay)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,o)=>o.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),j=(0,n.Ay)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,o)=>o.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function k(e,o,r,t){return e.reduce(((l,a,s)=>(s<e.length-1?l=l.concat(a,(0,m.jsx)(j,{"aria-hidden":!0,className:o,ownerState:t,children:r},`separator-${s}`)):l.push(a),l)),[])}const I=t.forwardRef((function(e,o){const r=(0,c.b)({props:e,name:"MuiBreadcrumbs"}),{children:n,className:i,component:p="nav",slots:d={},slotProps:u={},expandText:g="Show path",itemsAfterCollapse:h=1,itemsBeforeCollapse:b=1,maxItems:f=8,separator:y="/",...C}=r,[A,j]=t.useState(!1),I={...r,component:p,expanded:A,expandText:g,itemsAfterCollapse:h,itemsBeforeCollapse:b,maxItems:f,separator:y},R=(e=>{const{classes:o}=e;return(0,a.A)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},w,o)})(I),B=(0,s.A)({elementType:d.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:I}),M=t.useRef(null),N=t.Children.toArray(n).filter((e=>t.isValidElement(e))).map(((e,o)=>(0,m.jsx)("li",{className:R.li,children:e},`child-${o}`)));return(0,m.jsx)(S,{ref:o,component:p,color:"textSecondary",className:(0,l.A)(R.root,i),ownerState:I,...C,children:(0,m.jsx)(v,{className:R.ol,ref:M,ownerState:I,children:k(A||f&&N.length<=f?N:(e=>b+h>=e.length?e:[...e.slice(0,b),(0,m.jsx)(x,{"aria-label":g,slots:{CollapsedIcon:d.CollapsedIcon},slotProps:{collapsedIcon:B},onClick:()=>{j(!0);const e=M.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...e.slice(e.length-h,e.length)])(N),R.separator,y,I)})})}))}}]); //# sourceMappingURL=366.b00bf6ca.chunk.js.map