"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5880],{915880:function(t,e,n){n.r(e),n.d(e,{default:function(){return g},getStepButtonUtilityClass:function(){return m},stepButtonClasses:function(){return R}});var o=n(263366),i=n(487462),r=n(667294),a=n(490512),u=n(794780),c=n(690948),p=n(471657),s=n(192905),l=n(780003),d=n(571579),f=n(374187),h=n(879998),Z=n(1588),x=n(34867);function m(t){return(0,x.Z)("MuiStepButton",t)}var R=(0,Z.Z)("MuiStepButton",["root","horizontal","vertical","touchRipple"]),v=n(785893);const S=["children","className","icon","optional"],b=(0,c.ZP)(s.Z,{name:"MuiStepButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${R.touchRipple}`]:e.touchRipple},e.root,e[n.orientation]]}})((({ownerState:t})=>(0,i.Z)({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},"vertical"===t.orientation&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${R.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}})));var g=r.forwardRef((function(t,e){const n=(0,p.Z)({props:t,name:"MuiStepButton"}),{children:c,className:s,icon:Z,optional:x}=n,R=(0,o.Z)(n,S),{disabled:g,active:w}=r.useContext(h.Z),{orientation:C}=r.useContext(f.Z),N=(0,i.Z)({},n,{orientation:C}),B=(t=>{const{classes:e,orientation:n}=t,o={root:["root",n],touchRipple:["touchRipple"]};return(0,u.Z)(o,m,e)})(N),k={icon:Z,optional:x},E=(0,d.Z)(c,["StepLabel"])?r.cloneElement(c,k):(0,v.jsx)(l.Z,(0,i.Z)({},k,{children:c}));return(0,v.jsx)(b,(0,i.Z)({focusRipple:!0,disabled:g,TouchRippleProps:{className:B.touchRipple},className:(0,a.Z)(B.root,s),ref:e,ownerState:N,"aria-current":w?"step":void 0},R,{children:E}))}))},571579:function(t,e,n){n.d(e,{Z:function(){return i}});var o=n(667294);var i=function(t,e){return o.isValidElement(t)&&-1!==e.indexOf(t.type.muiName)}}}]);