"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[1260],{54617:(e,t,o)=>{o.d(t,{A:()=>S});var n=o(7552),r=o(93878),s=o(78745),a=o(85693),c=o(70799),i=o(24959),l=o(82081),u=o(8455),p=o(72861),d=o(43059),m=o(34901),k=o(69500);const f=(0,p.A)(),b=(0,i.A)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function h(e){return(0,l.A)({props:e,name:"MuiStack",defaultTheme:f})}function v(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 y=({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(51148),g=o(31049);const w=function(e={}){const{createStyledComponent:t=b,useThemeProps:o=h,componentName:s="MuiStack"}=e,i=t(y),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:f,children:b,className:h,useFlexGap:y=!1,...A}=l,g={direction:d,spacing:m,useFlexGap:y},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:f?v(b,f):b})}));return l}({createStyledComponent:(0,A.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,g.A)({props:e,name:"MuiStack"})}),S=w},11260:(e,t,o)=>{o.r(t),o.d(t,{default:()=>n.A,stackClasses:()=>r});var n=o(54617);const r=(0,o(33761).A)("MuiStack",["root"])},24959:(e,t,o)=>{o.d(t,{A:()=>n});const n=(0,o(15543).Ay)()}}]);
//# sourceMappingURL=1260.ee4ecbf4.chunk.js.map