"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[6054],{81762:(e,t,o)=>{o.d(t,{A:()=>i,P:()=>a});var n=o(7552);const r=n.createContext({});function a(){return n.useContext(r)}const i=r},23491:(e,t,o)=>{o.d(t,{A:()=>L});var n=o(83673),r=o(6614),a=o(7552),i=o(93878),l=o(60827),s=o(15622),c=o(51148),p=o(31049),d=o(29628),v=o(81762),u=o(62487),b=o(69500);const A=["className"],m=(0,c.Ay)("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})((({ownerState:e})=>(0,r.A)({flex:"1 1 auto"},"vertical"===e.orientation&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}))),S=(0,c.Ay)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${(0,s.A)(o.orientation)}`]]}})((({ownerState:e,theme:t})=>{const o="light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600];return(0,r.A)({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},"horizontal"===e.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===e.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),L=a.forwardRef((function(e,t){const o=(0,p.A)({props:e,name:"MuiStepConnector"}),{className:c}=o,L=(0,n.A)(o,A),{alternativeLabel:h,orientation:f="horizontal"}=a.useContext(d.A),{active:x,disabled:C,completed:w}=a.useContext(v.A),g=(0,r.A)({},o,{alternativeLabel:h,orientation:f,active:x,completed:w,disabled:C}),y=(e=>{const{classes:t,orientation:o,alternativeLabel:n,active:r,completed:a,disabled:i}=e,c={root:["root",o,n&&"alternativeLabel",r&&"active",a&&"completed",i&&"disabled"],line:["line",`line${(0,s.A)(o)}`]};return(0,l.A)(c,u.G,t)})(g);return(0,b.jsx)(m,(0,r.A)({className:(0,i.A)(y.root,c),ref:t,ownerState:g},L,{children:(0,b.jsx)(S,{className:y.line,ownerState:g})}))}))},62487:(e,t,o)=>{o.d(t,{A:()=>i,G:()=>a});var n=o(55549),r=o(9577);function a(e){return(0,r.Ay)("MuiStepConnector",e)}const i=(0,n.A)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"])},85059:(e,t,o)=>{o.d(t,{A:()=>S});var n=o(83673),r=o(6614),a=o(7552),i=o(93878),l=o(60827),s=o(31049),c=o(51148),p=o(25367),d=o(23491),v=o(29628),u=o(69500);const b=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],A=(0,c.Ay)("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel]}})((({ownerState:e})=>(0,r.A)({display:"flex"},"horizontal"===e.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===e.orientation&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"}))),m=(0,u.jsx)(d.A,{}),S=a.forwardRef((function(e,t){const o=(0,s.A)({props:e,name:"MuiStepper"}),{activeStep:c=0,alternativeLabel:d=!1,children:S,className:L,component:h="div",connector:f=m,nonLinear:x=!1,orientation:C="horizontal"}=o,w=(0,n.A)(o,b),g=(0,r.A)({},o,{alternativeLabel:d,orientation:C,component:h}),y=(e=>{const{orientation:t,alternativeLabel:o,classes:n}=e,r={root:["root",t,o&&"alternativeLabel"]};return(0,l.A)(r,p.g,n)})(g),M=a.Children.toArray(S).filter(Boolean),j=M.map(((e,t)=>a.cloneElement(e,(0,r.A)({index:t,last:t+1===M.length},e.props)))),z=a.useMemo((()=>({activeStep:c,alternativeLabel:d,connector:f,nonLinear:x,orientation:C})),[c,d,f,x,C]);return(0,u.jsx)(v.A.Provider,{value:z,children:(0,u.jsx)(A,(0,r.A)({as:h,ownerState:g,className:(0,i.A)(y.root,L),ref:t},w,{children:j}))})}))},29628:(e,t,o)=>{o.d(t,{A:()=>i,s:()=>a});var n=o(7552);const r=n.createContext({});function a(){return n.useContext(r)}const i=r},36054:(e,t,o)=>{o.r(t),o.d(t,{StepperContext:()=>a.A,default:()=>n.A,getStepperUtilityClass:()=>r.g,stepperClasses:()=>r.A,useStepperContext:()=>a.s});var n=o(85059),r=o(25367),a=o(29628)},25367:(e,t,o)=>{o.d(t,{A:()=>i,g:()=>a});var n=o(55549),r=o(9577);function a(e){return(0,r.Ay)("MuiStepper",e)}const i=(0,n.A)("MuiStepper",["root","horizontal","vertical","alternativeLabel"])}}]);
//# sourceMappingURL=6054.a5c46d2f.chunk.js.map