"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[9481],{59481:function(e,t,a){a.r(t);var n=a(96234),r=a(96902),o=a(4782),l=a(52809),s=a(35388),c=a(66519),i=a(99688),u=a(44536),d=a(90659),h=a(29938);t.default=(0,o.observer)((function(e){var t=e.model,a=e.handleClose,o=(0,r.useState)(""),p=(0,n.Z)(o,2),g=p[0],f=p[1],x=g.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)(l.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)(c.Z,{value:g,onChange:function(e){return f(e.target.value)},placeholder:"Enter tag name",inputProps:{maxLength:2,"data-testid":"sort-tag-name-input"},error:2===g.length&&!x,helperText:2!==g.length||x?"":"Not a valid tag",autoComplete:"off","data-testid":"sort-tag-name"}),(0,h.jsxs)(i.Z,{children:[(0,h.jsx)(u.Z,{variant:"contained",color:"primary",type:"submit",autoFocus:!0,onClick:function(){t.setSortedBy("tag",g),a()},children:"Submit"}),(0,h.jsx)(u.Z,{variant:"contained",color:"secondary",onClick:function(){return a()},children:"Cancel"})]})]})})}))}}]);
//# sourceMappingURL=9481.ef4803e6.chunk.js.map