"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[6054],{81762:(e,t,n)=>{n.d(t,{A:()=>i,P:()=>a});var o=n(7552);const r=o.createContext({});function a(){return o.useContext(r)}const i=r},23491:(e,t,n)=>{n.d(t,{A:()=>S});var o=n(83673),r=n(6614),a=n(7552),i=n(93878),l=n(70799),s=n(15622),c=n(51148),p=n(4785),d=n(29628),v=n(81762),u=n(62487),b=n(69500);const A=["className"],m=(0,c.Ay)("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.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)"}))),L=(0,c.Ay)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${(0,s.A)(n.orientation)}`]]}})((({ownerState:e,theme:t})=>{const n="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:n},"horizontal"===e.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===e.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),S=a.forwardRef((function(e,t){const n=(0,p.b)({props:e,name:"MuiStepConnector"}),{className:c}=n,S=(0,o.A)(n,A),{alternativeLabel:h,orientation:f="horizontal"}=a.useContext(d.A),{active:x,disabled:C,completed:w}=a.useContext(v.A),g=(0,r.A)({},n,{alternativeLabel:h,orientation:f,active:x,completed:w,disabled:C}),y=(e=>{const{classes:t,orientation:n,alternativeLabel:o,active:r,completed:a,disabled:i}=e,c={root:["root",n,o&&"alternativeLabel",r&&"active",a&&"completed",i&&"disabled"],line:["line",`line${(0,s.A)(n)}`]};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},S,{children:(0,b.jsx)(L,{className:y.line,ownerState:g})}))}))},62487:(e,t,n)=>{n.d(t,{A:()=>i,G:()=>a});var o=n(33761),r=n(85693);function a(e){return(0,r.Ay)("MuiStepConnector",e)}const i=(0,o.A)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"])},85059:(e,t,n)=>{n.d(t,{A:()=>L});var o=n(83673),r=n(6614),a=n(7552),i=n(93878),l=n(70799),s=n(4785),c=n(51148),p=n(25367),d=n(23491),v=n(29628),u=n(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:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})((({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,{}),L=a.forwardRef((function(e,t){const n=(0,s.b)({props:e,name:"MuiStepper"}),{activeStep:c=0,alternativeLabel:d=!1,children:L,className:S,component:h="div",connector:f=m,nonLinear:x=!1,orientation:C="horizontal"}=n,w=(0,o.A)(n,b),g=(0,r.A)({},n,{nonLinear:x,alternativeLabel:d,orientation:C,component:h}),y=(e=>{const{orientation:t,nonLinear:n,alternativeLabel:o,classes:r}=e,a={root:["root",t,n&&"nonLinear",o&&"alternativeLabel"]};return(0,l.A)(a,p.g,r)})(g),M=a.Children.toArray(L).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,S),ref:t},w,{children:j}))})}))},29628:(e,t,n)=>{n.d(t,{A:()=>i,s:()=>a});var o=n(7552);const r=o.createContext({});function a(){return o.useContext(r)}const i=r},36054:(e,t,n)=>{n.r(t),n.d(t,{StepperContext:()=>a.A,default:()=>o.A,getStepperUtilityClass:()=>r.g,stepperClasses:()=>r.A,useStepperContext:()=>a.s});var o=n(85059),r=n(25367),a=n(29628)},25367:(e,t,n)=>{n.d(t,{A:()=>i,g:()=>a});var o=n(33761),r=n(85693);function a(e){return(0,r.Ay)("MuiStepper",e)}const i=(0,o.A)("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"])}}]);
//# sourceMappingURL=6054.10c286a9.chunk.js.map