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