"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[2582],{52582:function(e,n,t){t.r(n),t.d(n,{default:function(){return P},stackClasses:function(){return R}});var o=t(56666),r=t(31461),i=t(7896),c=t(96902),a=t(24463),u=t(86244),s=t(73674),l=t(61235),d=t(8044),f=t(86655),v=t(72021),p=t(91221),m=t(1617),h=t(73572),k=t(29938),b=["component","direction","spacing","divider","children","className"],Z=(0,p.Z)(),g=(0,d.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,n){return n.root}});function y(e){return(0,f.Z)({props:e,name:"MuiStack",defaultTheme:Z})}function w(e,n){var t=c.Children.toArray(e).filter(Boolean);return t.reduce((function(e,o,r){return e.push(o),r<t.length-1&&e.push(c.cloneElement(n,{key:"separator-".concat(r)})),e}),[])}var S=function(e){var n=e.ownerState,t=e.theme,r=(0,i.Z)({display:"flex",flexDirection:"column"},(0,m.k9)({theme:t},(0,m.P$)({values:n.direction,breakpoints:t.breakpoints.values}),(function(e){return{flexDirection:e}})));if(n.spacing){var c=(0,h.hB)(t),a=Object.keys(t.breakpoints.values).reduce((function(e,t){return("object"===typeof n.spacing&&null!=n.spacing[t]||"object"===typeof n.direction&&null!=n.direction[t])&&(e[t]=!0),e}),{}),s=(0,m.P$)({values:n.direction,base:a}),l=(0,m.P$)({values:n.spacing,base:a});"object"===typeof s&&Object.keys(s).forEach((function(e,n,t){if(!s[e]){var o=n>0?s[t[n-1]]:"column";s[e]=o}}));r=(0,u.Z)(r,(0,m.k9)({theme:t},l,(function(e,t){return{"& > :not(style) + :not(style)":(0,o.Z)({margin:0},"margin".concat((r=t?s[t]:n.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r])),(0,h.NA)(c,e))};var r})))}return r=(0,m.dt)(t.breakpoints,r)};var j=t(2252),C=t(53068),M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.createStyledComponent,t=void 0===n?g:n,o=e.useThemeProps,u=void 0===o?y:o,d=e.componentName,f=void 0===d?"MuiStack":d,p=t(S),m=c.forwardRef((function(e,n){var t=u(e),o=(0,v.Z)(t),c=o.component,d=void 0===c?"div":c,m=o.direction,h=void 0===m?"column":m,Z=o.spacing,g=void 0===Z?0:Z,y=o.divider,S=o.children,j=o.className,C=(0,r.Z)(o,b),M={direction:h,spacing:g},P=(0,s.Z)({root:["root"]},(function(e){return(0,l.Z)(f,e)}),{});return(0,k.jsx)(p,(0,i.Z)({as:d,ownerState:M,ref:n,className:(0,a.default)(P.root,j)},C,{children:y?w(S,y):S}))}));return m}({createStyledComponent:(0,j.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,n){return n.root}}),useThemeProps:function(e){return(0,C.Z)({props:e,name:"MuiStack"})}}),P=M;var R=(0,t(74732).Z)("MuiStack",["root"])}}]);
//# sourceMappingURL=2582.13bff03e.chunk.js.map