"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[7991],{27897:(e,t,n)=>{n.d(t,{A:()=>A});var o=n(83673),a=n(6614),i=n(7552),r=n(93878),l=n(60827),s=n(29628),d=n(81762),c=n(31049),p=n(51148),v=n(5110),u=n(69500);const b=["active","children","className","component","completed","disabled","expanded","index","last"],m=(0,p.Ay)("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.A)({},"horizontal"===e.orientation&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"}))),A=i.forwardRef((function(e,t){const n=(0,c.A)({props:e,name:"MuiStep"}),{active:p,children:A,className:x,component:h="div",completed:L,disabled:C,expanded:S=!1,index:f,last:w}=n,g=(0,o.A)(n,b),{activeStep:j,connector:M,alternativeLabel:k,orientation:R,nonLinear:_}=i.useContext(s.A);let[y=!1,N=!1,P=!1]=[p,L,C];j===f?y=void 0===p||p:!_&&j>f?N=void 0===L||L:!_&&j<f&&(P=void 0===C||C);const z=i.useMemo((()=>({index:f,last:w,expanded:S,icon:f+1,active:y,completed:N,disabled:P})),[f,w,S,y,N,P]),T=(0,a.A)({},n,{active:y,orientation:R,alternativeLabel:k,completed:N,disabled:P,expanded:S,component:h}),F=(e=>{const{classes:t,orientation:n,alternativeLabel:o,completed:a}=e,i={root:["root",n,o&&"alternativeLabel",a&&"completed"]};return(0,l.A)(i,v.L,t)})(T),U=(0,u.jsxs)(m,(0,a.A)({as:h,className:(0,r.A)(F.root,x),ref:t,ownerState:T},g,{children:[M&&k&&0!==f?M:null,A]}));return(0,u.jsx)(d.A.Provider,{value:z,children:M&&!k&&0!==f?(0,u.jsxs)(i.Fragment,{children:[M,U]}):U})}))},81762:(e,t,n)=>{n.d(t,{A:()=>r,P:()=>i});var o=n(7552);const a=o.createContext({});function i(){return o.useContext(a)}const r=a},47991:(e,t,n)=>{n.r(t),n.d(t,{StepContext:()=>i.A,default:()=>o.A,getStepUtilityClass:()=>a.L,stepClasses:()=>a.A,useStepContext:()=>i.P});var o=n(27897),a=n(5110),i=n(81762)},5110:(e,t,n)=>{n.d(t,{A:()=>r,L:()=>i});var o=n(55549),a=n(9577);function i(e){return(0,a.Ay)("MuiStep",e)}const r=(0,o.A)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"])},29628:(e,t,n)=>{n.d(t,{A:()=>r,s:()=>i});var o=n(7552);const a=o.createContext({});function i(){return o.useContext(a)}const r=a}}]);
//# sourceMappingURL=7991.fe6f12b6.chunk.js.map