"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[18],{20018:(e,a,t)=>{t.r(a),t.d(a,{default:()=>u});var n=t(66204),l=t(29520),o=t(46338),r=t(62301),s=t(7146),i=t(35421);const c=(0,t(38684).ZL)()((e=>({formElt:{margin:e.spacing(3),width:400},dialogContent:{width:"80em"}})));function u({handleClose:e,intronBp:a,upDownBp:t}){const{classes:u}=c(),[m,b]=(0,n.useState)(`${a}`),[p,d]=(0,n.useState)(`${t}`),h=!Number.isNaN(+m),N=!Number.isNaN(+p);return n.createElement(i.Dialog,{maxWidth:"xl",open:!0,onClose:()=>e(),title:"Feature sequence settings"},n.createElement(l.Z,{className:u.dialogContent},n.createElement(o.Z,{label:"Number of intronic bases around splice site to display",className:u.formElt,value:m,helperText:h?"":"Not a number",error:!h,onChange:e=>b(e.target.value)}),n.createElement(o.Z,{label:"Number of bases up/down stream of feature to display",className:u.formElt,value:p,helperText:N?"":"Not a number",error:!N,onChange:e=>d(e.target.value)})),n.createElement(r.Z,null,n.createElement(s.Z,{onClick:()=>e({upDownBp:+p,intronBp:+m}),disabled:!h||!N,color:"primary",variant:"contained"},"Submit"),n.createElement(s.Z,{onClick:()=>e(),color:"secondary",autoFocus:!0,variant:"contained"},"Cancel")))}}}]);
//# sourceMappingURL=18.acef81ca.chunk.js.map