"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[6762],{63716:(e,r,o)=>{o.r(r),o.d(r,{default:()=>p});var t=o(41867),a=o(3762),n=o(47409),l=o(51590),s=o(49133),c=o(27768),d=o(23801),i=o(35421),h=o(80838);const p=(0,a.observer)((function(e){let{model:r,handleClose:o}=e;const[a,p]=(0,t.useState)(""),u=a.match(/^[A-Za-z][A-Za-z0-9]$/);return(0,h.jsx)(i.Dialog,{open:!0,onClose:o,title:"Color by tag",children:(0,h.jsxs)(n.Z,{style:{overflowX:"hidden"},children:[(0,h.jsx)(l.Z,{children:"Enter tag to color by: "}),(0,h.jsx)(l.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,h.jsx)(s.Z,{value:a,onChange:e=>p(e.target.value),placeholder:"Enter tag name",inputProps:{maxLength:2},error:2===a.length&&!u,helperText:2!==a.length||u?"":"Not a valid tag",autoComplete:"off"}),(0,h.jsxs)(c.Z,{children:[(0,h.jsx)(d.Z,{variant:"contained",color:"primary",onClick:()=>{r.setColorScheme({type:"tag",tag:a}),o()},disabled:!u,children:"Submit"}),(0,h.jsx)(d.Z,{variant:"contained",color:"secondary",onClick:o,children:"Cancel"})]})]})})}))}}]);
//# sourceMappingURL=6762.751e6999.chunk.js.map