"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[9822],{49822:(e,t,o)=>{o.r(t),o.d(t,{default:()=>n.A,stackClasses:()=>r});var n=o(94035);const r=(0,o(51062).A)("MuiStack",["root"])},94035:(e,t,o)=>{o.d(t,{A:()=>S});var n=o(7552),r=o(93878),s=o(10510),a=o(2958),c=o(75100),i=o(98930),l=o(53518),u=o(83884),p=o(72233),d=o(55566),m=o(60061),k=o(69500);const b=(0,p.A)(),f=(0,i.A)("div",{name:"MuiStack",slot:"Root"});function h(e){return(0,l.A)({props:e,name:"MuiStack",defaultTheme:b})}function y(e,t){const o=n.Children.toArray(e).filter(Boolean);return o.reduce(((e,r,s)=>(e.push(r),s<o.length-1&&e.push(n.cloneElement(t,{key:`separator-${s}`})),e)),[])}const v=({ownerState:e,theme:t})=>{let o={display:"flex",flexDirection:"column",...(0,d.NI)({theme:t},(0,d.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e})))};if(e.spacing){const n=(0,m.LX)(t),r=Object.keys(t.breakpoints.values).reduce(((t,o)=>(("object"==typeof e.spacing&&null!=e.spacing[o]||"object"==typeof e.direction&&null!=e.direction[o])&&(t[o]=!0),t)),{}),a=(0,d.kW)({values:e.direction,base:r}),c=(0,d.kW)({values:e.spacing,base:r});"object"==typeof a&&Object.keys(a).forEach(((e,t,o)=>{if(!a[e]){const n=t>0?a[o[t-1]]:"column";a[e]=n}}));const i=(t,o)=>{return e.useFlexGap?{gap:(0,m._W)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${r=o?a[o]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r]}`]:(0,m._W)(n,t)}};var r};o=(0,s.A)(o,(0,d.NI)({theme:t},c,i))}return o=(0,d.iZ)(t.breakpoints,o),o};var A=o(80317),g=o(50864);const w=function(e={}){const{createStyledComponent:t=f,useThemeProps:o=h,componentName:s="MuiStack"}=e,i=t(v),l=n.forwardRef((function(e,t){const n=o(e),l=(0,u.A)(n),{component:p="div",direction:d="column",spacing:m=0,divider:b,children:f,className:h,useFlexGap:v=!1,...A}=l,g={direction:d,spacing:m,useFlexGap:v},w=(0,c.A)({root:["root"]},(e=>(0,a.Ay)(s,e)),{});return(0,k.jsx)(i,{as:p,ownerState:g,ref:t,className:(0,r.A)(w.root,h),...A,children:b?y(f,b):f})}));return l}({createStyledComponent:(0,A.Ay)("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>(0,g.b)({props:e,name:"MuiStack"})}),S=w},98930:(e,t,o)=>{o.d(t,{A:()=>n});const n=(0,o(70770).Ay)()}}]);
//# sourceMappingURL=9822.3ba5f645.chunk.js.map