"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[1729],{60059:function(e,t,n){var o=n(31461),r=n(7896),a=n(30969),i=n(87023),l=n(26540),c=n(40679),d=n(94982),u=n(17363),s=n(45971),v=n(57547),p=n(37574),f=["active","children","className","component","completed","disabled","expanded","index","last"],m=(0,s.ZP)("div",{name:"MuiStep",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((function(e){var t=e.ownerState;return(0,r.Z)({},"horizontal"===t.orientation&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"})})),Z=a.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiStep"}),s=n.active,Z=n.children,b=n.className,x=n.component,h=void 0===x?"div":x,C=n.completed,S=n.disabled,w=n.expanded,L=void 0!==w&&w,g=n.index,j=n.last,M=(0,o.Z)(n,f),k=a.useContext(c.Z),R=k.activeStep,_=k.connector,N=k.alternativeLabel,$=k.orientation,z=k.nonLinear,P=void 0!==s&&s,y=void 0!==C&&C,F=void 0!==S&&S;R===g?P=void 0===s||s:!z&&R>g?y=void 0===C||C:!z&&R<g&&(F=void 0===S||S);var U=a.useMemo((function(){return{index:g,last:j,expanded:L,icon:g+1,active:P,completed:y,disabled:F}}),[g,j,L,P,y,F]),q=(0,r.Z)({},n,{active:P,orientation:$,alternativeLabel:N,completed:y,disabled:F,expanded:L,component:h}),A=function(e){var t=e.classes,n={root:["root",e.orientation,e.alternativeLabel&&"alternativeLabel",e.completed&&"completed"]};return(0,l.Z)(n,v.$,t)}(q),B=(0,p.jsxs)(m,(0,r.Z)({as:h,className:(0,i.Z)(A.root,b),ref:t,ownerState:q},M,{children:[_&&N&&0!==g?_:null,Z]}));return(0,p.jsx)(d.Z.Provider,{value:U,children:_&&!N&&0!==g?(0,p.jsxs)(a.Fragment,{children:[_,B]}):B})}));t.Z=Z},94982:function(e,t,n){n.d(t,{s:function(){return a}});var o=n(30969),r=o.createContext({});function a(){return o.useContext(r)}t.Z=r},71729:function(e,t,n){n.r(t),n.d(t,{StepContext:function(){return a.Z},default:function(){return o.Z},getStepUtilityClass:function(){return r.$},stepClasses:function(){return r.Z},useStepContext:function(){return a.s}});var o=n(60059),r=n(57547),a=n(94982)},57547:function(e,t,n){n.d(t,{$:function(){return a}});var o=n(62746),r=n(2975);function a(e){return(0,r.Z)("MuiStep",e)}var i=(0,o.Z)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);t.Z=i},40679:function(e,t,n){n.d(t,{s:function(){return a}});var o=n(30969),r=o.createContext({});function a(){return o.useContext(r)}t.Z=r}}]);
//# sourceMappingURL=1729.18c0dd57.chunk.js.map