"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[9680],{49680:(e,t,o)=>{o.r(t),o.d(t,{StepContext:()=>r.A,default:()=>n.A,getStepUtilityClass:()=>a.L,stepClasses:()=>a.A,useStepContext:()=>r.P});var n=o(61180),a=o(97846),r=o(57969)},57969:(e,t,o)=>{o.d(t,{A:()=>i,P:()=>r});var n=o(7552);const a=n.createContext({});function r(){return n.useContext(a)}const i=a},61180:(e,t,o)=>{o.d(t,{A:()=>u});var n=o(7552),a=o(93878),r=o(75100),i=o(85095),l=o(57969),s=o(80317),c=o(50864),d=o(97846),p=o(69500);const v=(0,s.Ay)("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),u=n.forwardRef(function(e,t){const o=(0,c.b)({props:e,name:"MuiStep"}),{active:s,children:u,className:b,component:m="div",completed:x,disabled:A,expanded:L=!1,index:h,last:C,...f}=o,{activeStep:S,connector:w,alternativeLabel:g,orientation:j,nonLinear:y}=n.useContext(i.A);let[M=!1,k=!1,R=!1]=[s,x,A];S===h?M=void 0===s||s:!y&&S>h?k=void 0===x||x:!y&&S<h&&(R=void 0===A||A);const _=n.useMemo(()=>({index:h,last:C,expanded:L,icon:h+1,active:M,completed:k,disabled:R}),[h,C,L,M,k,R]),P={...o,active:M,orientation:j,alternativeLabel:g,completed:k,disabled:R,expanded:L,component:m},z=(e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e,i={root:["root",o,n&&"alternativeLabel",a&&"completed"]};return(0,r.A)(i,d.L,t)})(P),N=(0,p.jsxs)(v,{as:m,className:(0,a.A)(z.root,b),ref:t,ownerState:P,...f,children:[w&&g&&0!==h?w:null,u]});return(0,p.jsx)(l.A.Provider,{value:_,children:w&&!g&&0!==h?(0,p.jsxs)(n.Fragment,{children:[w,N]}):N})})},85095:(e,t,o)=>{o.d(t,{A:()=>i,s:()=>r});var n=o(7552);const a=n.createContext({});function r(){return n.useContext(a)}const i=a},97846:(e,t,o)=>{o.d(t,{A:()=>i,L:()=>r});var n=o(51062),a=o(2958);function r(e){return(0,a.Ay)("MuiStep",e)}const i=(0,n.A)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"])}}]);
//# sourceMappingURL=9680.1d2eec51.chunk.js.map