"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[1510],{81510:function(e,t,n){n.r(t);var a=n(96234),o=n(30969),r=n(90550),s=n(92256),l=n(48651),c=n(66581),i=n(17984),u=n(70054),d=n(35436),h=n(52907),p=n(69852),g=n(2374),x=n(88581),Z=n(37574),b=(0,g.ZL)()((function(e){return{root:{margin:0,padding:e.spacing(2)},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}}}));t.default=(0,r.observer)((function(e){var t=b().classes,n=e.model,r=e.handleClose,g=(0,o.useState)(""),f=(0,a.Z)(g,2),j=f[0],m=f[1],C=j.match(/^[A-Za-z][A-Za-z0-9]$/);return(0,Z.jsxs)(s.Z,{open:!0,onClose:r,children:[(0,Z.jsxs)(l.Z,{children:["Sort by tag",(0,Z.jsx)(c.Z,{"aria-label":"close",className:t.closeButton,onClick:r,children:(0,Z.jsx)(x.Z,{})})]}),(0,Z.jsxs)(i.Z,{children:[(0,Z.jsx)(u.Z,{children:"Set the tag to sort by"}),(0,Z.jsx)(u.Z,{color:"textSecondary",children:"Examples: HP for haplotype, RG for read group, etc."}),(0,Z.jsx)(d.Z,{value:j,onChange:function(e){return m(e.target.value)},placeholder:"Enter tag name",inputProps:{maxLength:2,"data-testid":"sort-tag-name-input"},error:2===j.length&&!C,helperText:2!==j.length||C?"":"Not a valid tag",autoComplete:"off","data-testid":"sort-tag-name"}),(0,Z.jsxs)(h.Z,{children:[(0,Z.jsx)(p.Z,{variant:"contained",color:"primary",type:"submit",autoFocus:!0,onClick:function(){n.setSortedBy("tag",j),r()},children:"Submit"}),(0,Z.jsx)(p.Z,{variant:"contained",color:"secondary",onClick:function(){return r()},children:"Cancel"})]})]})]})}))}}]);
//# sourceMappingURL=1510.1dd5eca0.chunk.js.map