"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[772],{70772:(e,o,t)=>{t.r(o),t.d(o,{default:()=>g});var n=t(49823),i=t(76218),r=t(61282),s=t(94035),l=t(31380),a=t(30698),c=t(69092),h=t(68446),d=t(69500);const g=(0,h.observer)((function({onClose:e,model:o}){return(0,d.jsxs)(n.Dialog,{open:!0,onClose:e,title:"Highlight bookmarks",children:[(0,d.jsxs)(i.A,{children:[(0,d.jsx)(r.A,{variant:"h6",children:"Highlight toggles"}),(0,d.jsxs)(s.A,{direction:"row",alignItems:"center",children:[(0,d.jsx)(l.A,{"data-testid":"toggle_highlight_all_switch",checked:o.areBookmarksHighlightedOnAllOpenViews,onChange:()=>{o.setBookmarkHighlightsVisible(!o.areBookmarksHighlightedOnAllOpenViews)}}),(0,d.jsx)(r.A,{children:"Toggle bookmark highlights on all open views"})]}),(0,d.jsxs)(s.A,{direction:"row",alignItems:"center",children:[(0,d.jsx)(l.A,{"data-testid":"toggle_highlight_label_all_switch",checked:o.areBookmarksHighlightLabelsOnAllOpenViews,onChange:()=>{o.setBookmarkLabelsVisible(!o.areBookmarksHighlightLabelsOnAllOpenViews)}}),(0,d.jsx)(r.A,{children:"Toggle 'bookmark' icon on LGV tracks"})]})]}),(0,d.jsx)(a.A,{children:(0,d.jsx)(c.A,{variant:"contained",color:"primary",onClick:()=>{e()},children:"Close"})})]})}))},94035:(e,o,t)=>{t.d(o,{A:()=>x});var n=t(7552),i=t(93878),r=t(10510),s=t(2958),l=t(75100),a=t(98930),c=t(94489),h=t(83884),d=t(72233),g=t(55566),u=t(60061),p=t(69500);const k=(0,d.A)(),m=(0,a.A)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,o)=>o.root});function b(e){return(0,c.A)({props:e,name:"MuiStack",defaultTheme:k})}function A(e,o){const t=n.Children.toArray(e).filter(Boolean);return t.reduce(((e,i,r)=>(e.push(i),r<t.length-1&&e.push(n.cloneElement(o,{key:`separator-${r}`})),e)),[])}const v=({ownerState:e,theme:o})=>{let t={display:"flex",flexDirection:"column",...(0,g.NI)({theme:o},(0,g.kW)({values:e.direction,breakpoints:o.breakpoints.values}),(e=>({flexDirection:e})))};if(e.spacing){const n=(0,u.LX)(o),i=Object.keys(o.breakpoints.values).reduce(((o,t)=>(("object"==typeof e.spacing&&null!=e.spacing[t]||"object"==typeof e.direction&&null!=e.direction[t])&&(o[t]=!0),o)),{}),s=(0,g.kW)({values:e.direction,base:i}),l=(0,g.kW)({values:e.spacing,base:i});"object"==typeof s&&Object.keys(s).forEach(((e,o,t)=>{if(!s[e]){const n=o>0?s[t[o-1]]:"column";s[e]=n}}));const a=(o,t)=>{return e.useFlexGap?{gap:(0,u._W)(n,o)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${i=t?s[t]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[i]}`]:(0,u._W)(n,o)}};var i};t=(0,r.A)(t,(0,g.NI)({theme:o},l,a))}return t=(0,g.iZ)(o.breakpoints,t),t};var f=t(80317),w=t(50864);const j=function(e={}){const{createStyledComponent:o=m,useThemeProps:t=b,componentName:r="MuiStack"}=e,a=o(v),c=n.forwardRef((function(e,o){const n=t(e),c=(0,h.A)(n),{component:d="div",direction:g="column",spacing:u=0,divider:k,children:m,className:b,useFlexGap:v=!1,...f}=c,w={direction:g,spacing:u,useFlexGap:v},j=(0,l.A)({root:["root"]},(e=>(0,s.Ay)(r,e)),{});return(0,p.jsx)(a,{as:d,ownerState:w,ref:o,className:(0,i.A)(j.root,b),...f,children:k?A(m,k):m})}));return c}({createStyledComponent:(0,f.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,o)=>o.root}),useThemeProps:e=>(0,w.b)({props:e,name:"MuiStack"})}),x=j}}]);
//# sourceMappingURL=772.f0e10ac0.chunk.js.map