????

Your IP : 216.73.216.234


Current Path : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/
Upload File :
Current File : C:/inetpub/vhost/tracnghiem.gdtsolutions.vn/wwwroot/assets/Stack-6f785cc2.js

import{s as j,b as d,u as k,bk as O,e as h,j as x,_ as b,p as e,bl as y,bm as u,bn as T,bo as V,bp as P,bq as R}from"./index-9bcd78a9.js";const B=["component","direction","spacing","divider","children"];function E(o,r){const t=d.Children.toArray(o).filter(Boolean);return t.reduce((i,a,s)=>(i.push(a),s<t.length-1&&i.push(d.cloneElement(r,{key:`separator-${s}`})),i),[])}const D=o=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[o],S=({ownerState:o,theme:r})=>{let t=b({display:"flex",flexDirection:"column"},y({theme:r},u({values:o.direction,breakpoints:r.breakpoints.values}),i=>({flexDirection:i})));if(o.spacing){const i=T(r),a=Object.keys(r.breakpoints.values).reduce((c,n)=>((typeof o.spacing=="object"&&o.spacing[n]!=null||typeof o.direction=="object"&&o.direction[n]!=null)&&(c[n]=!0),c),{}),s=u({values:o.direction,base:a}),l=u({values:o.spacing,base:a});typeof s=="object"&&Object.keys(s).forEach((c,n,p)=>{if(!s[c]){const g=n>0?s[p[n-1]]:"column";s[c]=g}}),t=V(t,y({theme:r},l,(c,n)=>({"& > :not(style) + :not(style)":{margin:0,[`margin${D(n?s[n]:o.direction)}`]:R(i,c)}})))}return t=P(r.breakpoints,t),t},_=j("div",{name:"MuiStack",slot:"Root",overridesResolver:(o,r)=>[r.root]})(S),v=d.forwardRef(function(r,t){const i=k({props:r,name:"MuiStack"}),a=O(i),{component:s="div",direction:l="column",spacing:f=0,divider:c,children:n}=a,p=h(a,B),m={direction:l,spacing:f};return x.jsx(_,b({as:s,ownerState:m,ref:t},p,{children:c?E(n,c):n}))});v.propTypes={children:e.node,component:e.elementType,direction:e.oneOfType([e.oneOf(["column-reverse","column","row-reverse","row"]),e.arrayOf(e.oneOf(["column-reverse","column","row-reverse","row"])),e.object]),divider:e.node,spacing:e.oneOfType([e.arrayOf(e.oneOfType([e.number,e.string])),e.number,e.object,e.string]),sx:e.oneOfType([e.arrayOf(e.oneOfType([e.func,e.object,e.bool])),e.func,e.object])};const $=v;export{$ as S};