"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[1915],{51915:(e,i,s)=>{s.r(i),s.d(i,{default:()=>p});var r=s(49823),a=s(68446),n=s(75785),t=s(67314),l=s(33371),o=s(32808),c=s(69500);const d=(0,n.n9)()((e=>({circularViewOptions:{padding:e.spacing(1)}}))),h=(0,a.observer)((function({svInspector:e}){const{classes:i}=d();return(0,c.jsx)(t.Ay,{container:!0,className:i.circularViewOptions,style:{height:e.circularViewOptionsBarHeight},children:(0,c.jsx)(t.Ay,{item:!0,children:(0,c.jsx)(l.A,{control:(0,c.jsx)(o.A,{checked:e.onlyDisplayRelevantRegionsInCircularView,onChange:i=>{e.setOnlyDisplayRelevantRegionsInCircularView(i.target.checked)}}),label:"show only regions with data"})})})})),w=(0,n.n9)()((e=>({resizeHandleVert:{background:e.palette.action.selected,width:4,boxSizing:"border-box",borderTop:"1px solid #fafafa"},resizeHandleHoriz:{background:e.palette.action.selected,height:4,boxSizing:"border-box",borderTop:"1px solid #fafafa"},viewControls:{margin:0},viewsContainer:{display:"flex"},container:{overflow:"hidden"}}))),p=(0,a.observer)((function({model:e}){const{classes:i}=w(),{SpreadsheetViewReactComponent:s,CircularViewReactComponent:a,showCircularView:n}=e;return(0,c.jsxs)("div",{className:i.container,children:[(0,c.jsxs)("div",{className:i.viewsContainer,children:[(0,c.jsx)("div",{style:{width:e.spreadsheetView.width},className:i.container,children:(0,c.jsx)(s,{model:e.spreadsheetView})}),n?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r.ResizeHandle,{onDrag:i=>{const s=e.circularView.resizeWidth(-i);return e.spreadsheetView.resizeWidth(-s)},vertical:!0,flexbox:!0,className:i.resizeHandleVert}),(0,c.jsxs)("div",{style:{width:e.circularView.width},children:[(0,c.jsx)(h,{svInspector:e}),(0,c.jsx)(a,{model:e.circularView})]})]}):null]}),(0,c.jsx)(r.ResizeHandle,{onDrag:e.resizeHeight,className:i.resizeHandleHoriz})]})}))}}]);
//# sourceMappingURL=1915.cecdc454.chunk.js.map