"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[6043],{8424:(e,o,r)=>{r.r(o),r.d(o,{default:()=>p});var a=r(7552),t=r(49823),l=r(29499),n=r(36715),s=r(1343),c=r(58507),d=r(5401),i=r(68446),h=r(69500);const p=(0,i.observer)((function({model:e,handleClose:o}){const[r,i]=(0,a.useState)(""),p=/^[A-Za-z][A-Za-z0-9]$/.exec(r);return(0,h.jsx)(t.Dialog,{open:!0,onClose:o,title:"Color by tag",children:(0,h.jsxs)(l.A,{style:{overflowX:"hidden"},children:[(0,h.jsx)(n.A,{children:"Enter tag to color by: "}),(0,h.jsx)(n.A,{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.A,{value:r,onChange:e=>{i(e.target.value)},placeholder:"Enter tag name",error:2===r.length&&!p,helperText:2!==r.length||p?"":"Not a valid tag",autoComplete:"off",slotProps:{htmlInput:{maxLength:2}}}),(0,h.jsxs)(c.A,{children:[(0,h.jsx)(d.A,{variant:"contained",color:"primary",onClick:()=>{e.setColorScheme({type:"tag",tag:r}),o()},disabled:!p,children:"Submit"}),(0,h.jsx)(d.A,{variant:"contained",color:"secondary",onClick:o,children:"Cancel"})]})]})})}))}}]);
//# sourceMappingURL=6043.b32a39e7.chunk.js.map