import{r}from"./redux-1.0.74-D8bIc6ki.js";import{g as h,e as j,u as D,f as c,h as L,j as M,m as w}from"./CircularProgress-1.0.74-QfwfRJ7i.js";import{c as b,d as E}from"./Stepper-1.0.74-DVvxtEJC.js";import{h as F}from"./ButtonBase-1.0.74-W6tAH7AI.js";import{j as u}from"./tanstack-1.0.74-aU0azVkW.js";import{C as d}from"./Collapse-1.0.74-DA2Rx31o.js";import{a as N}from"./hooks-1.0.74-NYCTWeI9.js";import{cL as A}from"./lib-1.0.74-B5IEqfHg.js";function $(t){return h("MuiStepContent",t)}j("MuiStepContent",["root","last","transition"]);const O=t=>{const{classes:o,last:s}=t;return M({root:["root",s&&"last"],transition:["transition"]},$,o)},k=c("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:s}=t;return[o.root,s.last&&o.last]}})(w(({theme:t})=>({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:t.vars?`1px solid ${t.vars.palette.StepContent.border}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:"none"}}]}))),q=c(d,{name:"MuiStepContent",slot:"Transition",overridesResolver:(t,o)=>o.transition})({}),W=r.forwardRef(function(o,s){const e=D({props:o,name:"MuiStepContent"}),{children:m,className:C,TransitionComponent:a=d,transitionDuration:i="auto",TransitionProps:S,slots:f={},slotProps:x={},...g}=e,{orientation:z}=r.useContext(b),{active:v,last:U,expanded:y}=r.useContext(E),n={...e,last:U},p=O(n);let l=i;i==="auto"&&!a.muiSupportAuto&&(l=void 0);const P={slots:f,slotProps:{transition:S,...x}},[R,T]=F("transition",{elementType:q,externalForwardedProps:P,ownerState:n,className:p.transition,additionalProps:{in:v||y,timeout:l,unmountOnExit:!0}});return u.jsx(k,{className:L(p.root,C),ref:s,ownerState:n,...g,children:u.jsx(R,{as:a,...T,children:m})})}),X=t=>{const o=N();return e=>{o(A({appId:t,isUpdated:e}))}};export{W as S,X as u};
