"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[6164],{18801:(e,t,n)=>{n.d(t,{Z:()=>b});var o=n(31461),a=n(7896),r=n(41867),i=n(66184),l=n(92705),s=n(58963),d=n(80763),c=n(90293),p=n(75693),v=n(82540),u=n(80838);const m=["active","children","className","component","completed","disabled","expanded","index","last"],Z=(0,p.ZP)("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((e=>{let{ownerState:t}=e;return(0,a.Z)({},"horizontal"===t.orientation&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"})})),b=r.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiStep"}),{active:p,children:b,className:x,component:f="div",completed:h,disabled:C,expanded:S=!1,index:w,last:L}=n,g=(0,o.Z)(n,m),{activeStep:j,connector:M,alternativeLabel:k,orientation:R,nonLinear:_}=r.useContext(s.Z);let[N=!1,$=!1,z=!1]=[p,h,C];j===w?N=void 0===p||p:!_&&j>w?$=void 0===h||h:!_&&j<w&&(z=void 0===C||C);const P=r.useMemo((()=>({index:w,last:L,expanded:S,icon:w+1,active:N,completed:$,disabled:z})),[w,L,S,N,$,z]),y=(0,a.Z)({},n,{active:N,orientation:R,alternativeLabel:k,completed:$,disabled:z,expanded:S,component:f}),F=(e=>{const{classes:t,orientation:n,alternativeLabel:o,completed:a}=e,r={root:["root",n,o&&"alternativeLabel",a&&"completed"]};return(0,l.Z)(r,v.$,t)})(y),U=(0,u.jsxs)(Z,(0,a.Z)({as:f,className:(0,i.Z)(F.root,x),ref:t,ownerState:y},g,{children:[M&&k&&0!==w?M:null,b]}));return(0,u.jsx)(d.Z.Provider,{value:P,children:M&&!k&&0!==w?(0,u.jsxs)(r.Fragment,{children:[M,U]}):U})}))},80763:(e,t,n)=>{n.d(t,{Z:()=>i,s:()=>r});var o=n(41867);const a=o.createContext({});function r(){return o.useContext(a)}const i=a},6164:(e,t,n)=>{n.r(t),n.d(t,{StepContext:()=>r.Z,default:()=>o.Z,getStepUtilityClass:()=>a.$,stepClasses:()=>a.Z,useStepContext:()=>r.s});var o=n(18801),a=n(82540),r=n(80763)},82540:(e,t,n)=>{n.d(t,{$:()=>r,Z:()=>i});var o=n(70101),a=n(88498);function r(e){return(0,a.Z)("MuiStep",e)}const i=(0,o.Z)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"])},58963:(e,t,n)=>{n.d(t,{Z:()=>i,s:()=>r});var o=n(41867);const a=o.createContext({});function r(){return o.useContext(a)}const i=a}}]);
//# sourceMappingURL=6164.2b065091.chunk.js.map