"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7025],{17025:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var o=a(41867),r=a(3762),n=a(47409),s=a(51590),l=a(49133),c=a(27768),i=a(23801),d=a(35421),h=a(80838);const u=(0,r.observer)((function(e){const{model:t,handleClose:a}=e,[r,u]=(0,o.useState)(""),p=r.match(/^[A-Za-z][A-Za-z0-9]$/);return(0,h.jsx)(d.Dialog,{open:!0,onClose:a,title:"Sort by tag",children:(0,h.jsxs)(n.Z,{children:[(0,h.jsx)(s.Z,{children:"Set the tag to sort by"}),(0,h.jsx)(s.Z,{color:"textSecondary",children:"Examples: HP for haplotype, RG for read group, etc."}),(0,h.jsx)(l.Z,{value:r,onChange:e=>u(e.target.value),placeholder:"Enter tag name",inputProps:{maxLength:2,"data-testid":"sort-tag-name-input"},error:2===r.length&&!p,helperText:2!==r.length||p?"":"Not a valid tag",autoComplete:"off","data-testid":"sort-tag-name"}),(0,h.jsxs)(c.Z,{children:[(0,h.jsx)(i.Z,{variant:"contained",color:"primary",type:"submit",autoFocus:!0,onClick:()=>{t.setSortedBy("tag",r),a()},children:"Submit"}),(0,h.jsx)(i.Z,{variant:"contained",color:"secondary",onClick:()=>a(),children:"Cancel"})]})]})})}))}}]);
//# sourceMappingURL=7025.9cd2e914.chunk.js.map