import{r}from"./redux-1.0.63-Df-eBzJn.js";import{h as b,g as h,i as j,j as c,c as D,l as M,m as w}from"./Typography-1.0.63-mecuj_Wl.js";import{c as L,d as E}from"./Stepper-1.0.63--rdAhqM6.js";import{b as F}from"./ButtonBase-1.0.63-CF10PFMS.js";import{j as u}from"./cm-1.0.63-CSIRHMXC.js";import{C as d}from"./Collapse-1.0.63-B-Rwe0o9.js";import{a as N}from"./hooks-1.0.63-CWs3kTdT.js";import{bV as A}from"./lib-1.0.63-DJZPtMem.js";function $(t){return b("MuiStepContent",t)}h("MuiStepContent",["root","last","transition"]);const O=t=>{const{classes:o,last:s}=t;return M({root:["root",s&&"last"],transition:["transition"]},$,o)},V=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"}}]}))),k=c(d,{name:"MuiStepContent",slot:"Transition",overridesResolver:(t,o)=>o.transition})({}),W=r.forwardRef(function(o,s){const e=j({props:o,name:"MuiStepContent"}),{children:m,className:C,TransitionComponent:a=d,transitionDuration:i="auto",TransitionProps:S,slots:f={},slotProps:x={},...g}=e,{orientation:q}=r.useContext(L),{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:k,externalForwardedProps:P,ownerState:n,className:p.transition,additionalProps:{in:v||y,timeout:l,unmountOnExit:!0}});return u.jsx(V,{className:D(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};
