"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[4655],{14655:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(41867),i=n(3762),s=n(47409),r=n(51590),o=n(49133),c=n(96614),h=n(83171),l=n(27768),u=n(23801),d=n(35421),g=n(80838);const b=(0,i.observer)((function(e){const{model:t,handleClose:n}=e,{featureHeightSetting:i,noSpacing:b}=t,[p,j]=(0,a.useState)("".concat(i)),[f,m]=(0,a.useState)(b),v=""!==p&&!Number.isNaN(+p);return(0,g.jsx)(d.Dialog,{open:!0,onClose:n,title:"Set feature height",children:(0,g.jsxs)(s.Z,{children:[(0,g.jsx)(r.Z,{children:"Adjust the feature height and whether there is any spacing between features. Setting feature height to 1 and removing spacing makes the display very compact."}),(0,g.jsx)(o.Z,{value:p,helperText:"Feature height",onChange:e=>j(e.target.value)}),(0,g.jsx)(c.Z,{control:(0,g.jsx)(h.Z,{checked:!!f,onChange:()=>m((e=>!e))}),label:"Remove spacing between features in y-direction?"}),(0,g.jsxs)(l.Z,{children:[(0,g.jsx)(u.Z,{variant:"contained",color:"primary",type:"submit",autoFocus:!0,disabled:!v,onClick:()=>{t.setFeatureHeight(""===p||Number.isNaN(+p)?void 0:+p),t.setNoSpacing(f),n()},children:"Submit"}),(0,g.jsx)(u.Z,{variant:"contained",color:"secondary",onClick:()=>n(),children:"Cancel"})]})]})})}))}}]);
//# sourceMappingURL=4655.be017728.chunk.js.map