"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3434],{751233:function(e,t,n){n.d(t,{Z:function(){return j}});var o=n(263366),r=n(487462),s=n(667294),c=n(490512),i=n(259766),a=n(794780),u=n(34867),l=n(513264),p=n(629628),f=n(139707),d=n(566500),m=n(495408),v=n(998700),h=n(785893);const Z=["component","direction","spacing","divider","children","className","useFlexGap"],k=(0,d.Z)(),y=(0,l.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function b(e){return(0,p.Z)({props:e,name:"MuiStack",defaultTheme:k})}function P(e,t){const n=s.Children.toArray(e).filter(Boolean);return n.reduce(((e,o,r)=>(e.push(o),r<n.length-1&&e.push(s.cloneElement(t,{key:`separator-${r}`})),e)),[])}const g=({ownerState:e,theme:t})=>{let n=(0,r.Z)({display:"flex",flexDirection:"column"},(0,m.k9)({theme:t},(0,m.P$)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const o=(0,v.hB)(t),r=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"===typeof e.spacing&&null!=e.spacing[n]||"object"===typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),s=(0,m.P$)({values:e.direction,base:r}),c=(0,m.P$)({values:e.spacing,base:r});"object"===typeof s&&Object.keys(s).forEach(((e,t,n)=>{if(!s[e]){const o=t>0?s[n[t-1]]:"column";s[e]=o}}));const a=(t,n)=>{return e.useFlexGap?{gap:(0,v.NA)(o,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${r=n?s[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r]}`]:(0,v.NA)(o,t)}};var r};n=(0,i.Z)(n,(0,m.k9)({theme:t},c,a))}return n=(0,m.dt)(t.breakpoints,n),n};var x=n(690948),S=n(471657);const N=function(e={}){const{createStyledComponent:t=y,useThemeProps:n=b,componentName:i="MuiStack"}=e,l=t(g),p=s.forwardRef((function(e,t){const s=n(e),p=(0,f.Z)(s),{component:d="div",direction:m="column",spacing:v=0,divider:k,children:y,className:b,useFlexGap:g=!1}=p,x=(0,o.Z)(p,Z),S={direction:m,spacing:v,useFlexGap:g},N=(0,a.Z)({root:["root"]},(e=>(0,u.Z)(i,e)),{});return(0,h.jsx)(l,(0,r.Z)({as:d,ownerState:S,ref:t,className:(0,c.Z)(N.root,b)},x,{children:k?P(y,k):y}))}));return p}({createStyledComponent:(0,x.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,S.Z)({props:e,name:"MuiStack"})});var j=N},473434:function(e,t,n){n.r(t),n.d(t,{default:function(){return o.Z},stackClasses:function(){return r}});var o=n(751233);var r=(0,n(1588).Z)("MuiStack",["root"])},139707:function(e,t,n){n.d(t,{Z:function(){return a}});var o=n(487462),r=n(263366),s=n(259766),c=n(44920);const i=["sx"];function a(e){const{sx:t}=e,n=(0,r.Z)(e,i),{systemProps:a,otherProps:u}=(e=>{var t,n;const o={systemProps:{},otherProps:{}},r=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:c.Z;return Object.keys(e).forEach((t=>{r[t]?o.systemProps[t]=e[t]:o.otherProps[t]=e[t]})),o})(n);let l;return l=Array.isArray(t)?[a,...t]:"function"===typeof t?(...e)=>{const n=t(...e);return(0,s.P)(n)?(0,o.Z)({},a,n):a}:(0,o.Z)({},a,t),(0,o.Z)({},u,{sx:l})}},513264:function(e,t,n){const o=(0,n(170182).ZP)();t.Z=o}}]);