"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3054],{63315:(e,t,n)=>{n.d(t,{Z:()=>Z});var o=n(55559),a=n(30984),i=n(66204),r=n(56317),l=n(58029),s=n(74837),d=n(74918),c=n(57369),p=n(61125),v=n(9328),u=n(43188);const b=["active","children","className","component","completed","disabled","expanded","index","last"],m=(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]}})((({ownerState:e})=>(0,a.Z)({},"horizontal"===e.orientation&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"}))),Z=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiStep"}),{active:p,children:Z,className:x,component:h="div",completed:C,disabled:S,expanded:f=!1,index:w,last:L}=n,g=(0,o.Z)(n,b),{activeStep:j,connector:M,alternativeLabel:k,orientation:R,nonLinear:_}=i.useContext(s.Z);let[N=!1,$=!1,z=!1]=[p,C,S];j===w?N=void 0===p||p:!_&&j>w?$=void 0===C||C:!_&&j<w&&(z=void 0===S||S);const P=i.useMemo((()=>({index:w,last:L,expanded:f,icon:w+1,active:N,completed:$,disabled:z})),[w,L,f,N,$,z]),T=(0,a.Z)({},n,{active:N,orientation:R,alternativeLabel:k,completed:$,disabled:z,expanded:f,component:h}),y=(e=>{const{classes:t,orientation:n,alternativeLabel:o,completed:a}=e,i={root:["root",n,o&&"alternativeLabel",a&&"completed"]};return(0,l.Z)(i,v.$,t)})(T),F=(0,u.jsxs)(m,(0,a.Z)({as:h,className:(0,r.Z)(y.root,x),ref:t,ownerState:T},g,{children:[M&&k&&0!==w?M:null,Z]}));return(0,u.jsx)(d.Z.Provider,{value:P,children:M&&!k&&0!==w?(0,u.jsxs)(i.Fragment,{children:[M,F]}):F})}))},74918:(e,t,n)=>{n.d(t,{Z:()=>r,s:()=>i});var o=n(66204);const a=o.createContext({});function i(){return o.useContext(a)}const r=a},73054:(e,t,n)=>{n.r(t),n.d(t,{StepContext:()=>i.Z,default:()=>o.Z,getStepUtilityClass:()=>a.$,stepClasses:()=>a.Z,useStepContext:()=>i.s});var o=n(63315),a=n(9328),i=n(74918)},9328:(e,t,n)=>{n.d(t,{$:()=>i,Z:()=>r});var o=n(58109),a=n(95201);function i(e){return(0,a.Z)("MuiStep",e)}const r=(0,o.Z)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"])},74837:(e,t,n)=>{n.d(t,{Z:()=>r,s:()=>i});var o=n(66204);const a=o.createContext({});function i(){return o.useContext(a)}const r=a}}]);
//# sourceMappingURL=3054.515e51a7.chunk.js.map