"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[1280],{51280:function(e,r,t){t.r(r);var a=t(96234),o=t(96902),n=t(4782),l=t(52809),s=t(35388),c=t(66519),i=t(99688),d=t(44536),h=t(46186),u=t(29938);r.default=(0,n.observer)((function(e){var r=e.model,t=e.handleClose,n=(0,o.useState)(""),p=(0,a.Z)(n,2),f=p[0],g=p[1],m=f.match(/^[A-Za-z][A-Za-z0-9]$/);return(0,u.jsx)(h.Dialog,{open:!0,onClose:t,title:"Color by tag",children:(0,u.jsxs)(l.Z,{style:{overflowX:"hidden"},children:[(0,u.jsx)(s.Z,{children:"Enter tag to color by: "}),(0,u.jsx)(s.Z,{color:"textSecondary",children:"Examples: XS or TS for RNA-seq inferred read strand, ts (lower-case) for minimap2 read strand, HP for haplotype, RG for read group, etc."}),(0,u.jsx)(c.Z,{value:f,onChange:function(e){return g(e.target.value)},placeholder:"Enter tag name",inputProps:{maxLength:2,"data-testid":"color-tag-name-input"},error:2===f.length&&!m,helperText:2!==f.length||m?"":"Not a valid tag",autoComplete:"off","data-testid":"color-tag-name"}),(0,u.jsxs)(i.Z,{children:[(0,u.jsx)(d.Z,{variant:"contained",color:"primary",onClick:function(){r.setColorScheme({type:"tag",tag:f}),t()},disabled:!m,children:"Submit"}),(0,u.jsx)(d.Z,{variant:"contained",color:"secondary",onClick:t,children:"Cancel"})]})]})})}))}}]);
//# sourceMappingURL=1280.c1d9f4fe.chunk.js.map