"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[1030],{80763:(e,t,o)=>{o.d(t,{Z:()=>i,s:()=>a});var n=o(41867);const r=n.createContext({});function a(){return n.useContext(r)}const i=r},29960:(e,t,o)=>{o.d(t,{Z:()=>f});var n=o(31461),r=o(7896),a=o(41867),i=o(66184),l=o(92705),c=o(9931),s=o(75693),p=o(90293),d=o(58963),v=o(80763),u=o(4030),Z=o(80838);const b=["className"],m=(0,s.ZP)("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]}})((e=>{let{ownerState:t}=e;return(0,r.Z)({flex:"1 1 auto"},"vertical"===t.orientation&&{marginLeft:12},t.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})})),S=(0,s.ZP)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t["line".concat((0,c.Z)(o.orientation))]]}})((e=>{let{ownerState:t,theme:o}=e;const n="light"===o.palette.mode?o.palette.grey[400]:o.palette.grey[600];return(0,r.Z)({display:"block",borderColor:o.vars?o.vars.palette.StepConnector.border:n},"horizontal"===t.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===t.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})})),f=a.forwardRef((function(e,t){const o=(0,p.Z)({props:e,name:"MuiStepConnector"}),{className:s}=o,f=(0,n.Z)(o,b),{alternativeLabel:L,orientation:h="horizontal"}=a.useContext(d.Z),{active:x,disabled:C,completed:w}=a.useContext(v.Z),M=(0,r.Z)({},o,{alternativeLabel:L,orientation:h,active:x,completed:w,disabled:C}),g=(e=>{const{classes:t,orientation:o,alternativeLabel:n,active:r,completed:a,disabled:i}=e,s={root:["root",o,n&&"alternativeLabel",r&&"active",a&&"completed",i&&"disabled"],line:["line","line".concat((0,c.Z)(o))]};return(0,l.Z)(s,u.M,t)})(M);return(0,Z.jsx)(m,(0,r.Z)({className:(0,i.Z)(g.root,s),ref:t,ownerState:M},f,{children:(0,Z.jsx)(S,{className:g.line,ownerState:M})}))}))},4030:(e,t,o)=>{o.d(t,{M:()=>a,Z:()=>i});var n=o(70101),r=o(88498);function a(e){return(0,r.Z)("MuiStepConnector",e)}const i=(0,n.Z)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"])},78882:(e,t,o)=>{o.d(t,{Z:()=>S});var n=o(31461),r=o(7896),a=o(41867),i=o(66184),l=o(92705),c=o(90293),s=o(75693),p=o(95178),d=o(29960),v=o(58963),u=o(80838);const Z=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],b=(0,s.ZP)("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel]}})((e=>{let{ownerState:t}=e;return(0,r.Z)({display:"flex"},"horizontal"===t.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===t.orientation&&{flexDirection:"column"},t.alternativeLabel&&{alignItems:"flex-start"})})),m=(0,u.jsx)(d.Z,{}),S=a.forwardRef((function(e,t){const o=(0,c.Z)({props:e,name:"MuiStepper"}),{activeStep:s=0,alternativeLabel:d=!1,children:S,className:f,component:L="div",connector:h=m,nonLinear:x=!1,orientation:C="horizontal"}=o,w=(0,n.Z)(o,Z),M=(0,r.Z)({},o,{alternativeLabel:d,orientation:C,component:L}),g=(e=>{const{orientation:t,alternativeLabel:o,classes:n}=e,r={root:["root",t,o&&"alternativeLabel"]};return(0,l.Z)(r,p.c,n)})(M),y=a.Children.toArray(S).filter(Boolean),j=y.map(((e,t)=>a.cloneElement(e,(0,r.Z)({index:t,last:t+1===y.length},e.props)))),z=a.useMemo((()=>({activeStep:s,alternativeLabel:d,connector:h,nonLinear:x,orientation:C})),[s,d,h,x,C]);return(0,u.jsx)(v.Z.Provider,{value:z,children:(0,u.jsx)(b,(0,r.Z)({as:L,ownerState:M,className:(0,i.Z)(g.root,f),ref:t},w,{children:j}))})}))},58963:(e,t,o)=>{o.d(t,{Z:()=>i,s:()=>a});var n=o(41867);const r=n.createContext({});function a(){return n.useContext(r)}const i=r},31030:(e,t,o)=>{o.r(t),o.d(t,{StepperContext:()=>a.Z,default:()=>n.Z,getStepperUtilityClass:()=>r.c,stepperClasses:()=>r.Z,useStepperContext:()=>a.s});var n=o(78882),r=o(95178),a=o(58963)},95178:(e,t,o)=>{o.d(t,{Z:()=>i,c:()=>a});var n=o(70101),r=o(88498);function a(e){return(0,r.Z)("MuiStepper",e)}const i=(0,n.Z)("MuiStepper",["root","horizontal","vertical","alternativeLabel"])}}]);
//# sourceMappingURL=1030.3ae5328f.chunk.js.map