"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[18],{20018:(e,a,n)=>{n.r(a),n.d(a,{default:()=>b});var t=n(41867),s=n(47409),o=n(49133),r=n(27768),l=n(23801),i=n(35421),c=n(47192),u=n(80838);const d=(0,c.ZL)()((e=>({formElt:{margin:e.spacing(3),width:400},dialogContent:{width:"80em"}})));function b(e){let{handleClose:a,intronBp:n,upDownBp:c}=e;const{classes:b}=d(),[m,p]=(0,t.useState)("".concat(n)),[h,N]=(0,t.useState)("".concat(c)),f=!Number.isNaN(+m),w=!Number.isNaN(+h);return(0,u.jsxs)(i.Dialog,{maxWidth:"xl",open:!0,onClose:()=>a(),title:"Feature sequence settings",children:[(0,u.jsxs)(s.Z,{className:b.dialogContent,children:[(0,u.jsx)(o.Z,{label:"Number of intronic bases around splice site to display",className:b.formElt,value:m,helperText:f?"":"Not a number",error:!f,onChange:e=>p(e.target.value)}),(0,u.jsx)(o.Z,{label:"Number of bases up/down stream of feature to display",className:b.formElt,value:h,helperText:w?"":"Not a number",error:!w,onChange:e=>N(e.target.value)})]}),(0,u.jsxs)(r.Z,{children:[(0,u.jsx)(l.Z,{onClick:()=>a({upDownBp:+h,intronBp:+m}),disabled:!f||!w,color:"primary",variant:"contained",children:"Submit"}),(0,u.jsx)(l.Z,{onClick:()=>a(),color:"secondary",autoFocus:!0,variant:"contained",children:"Cancel"})]})]})}}}]);
//# sourceMappingURL=18.629da6ae.chunk.js.map