"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[8856],{68856:function(e,l,s){s.r(l);var n=s(96234),o=s(30969),t=s(90550),r=s(59071),a=s(76149),i=s(33359),c=s(70983),d=s(2689),x=s(96074),h=s(72097),u=s(89364),m=s(53276),j=s(59767),k=s(38935),p=s(37574),b=(0,m.ZL)()((function(){return{flexItem:{margin:5}}})),f=(0,t.observer)((function(e){var l=e.model,s=e.onClose,t=b().classes,m=(0,o.useState)("BED"),f=(0,n.Z)(m,2),w=f[0],v=f[1],Z=0===l.selectedBookmarks.length;return(0,p.jsxs)(j.Dialog,{open:!0,onClose:s,title:"Export bookmarks",children:[(0,p.jsxs)(r.Z,{style:{display:"flex",flexFlow:"column",gap:"5px"},children:[(0,p.jsx)(a.Z,{severity:"info",children:Z?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{children:"All bookmarks will be exported."}),(0,p.jsx)("br",{}),(0,p.jsx)("span",{children:"Use the checkboxes to select individual bookmarks to export."})]}):"Only selected bookmarks will be exported."}),(0,p.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,p.jsx)(i.Z,{children:"Format to download:"}),(0,p.jsxs)(c.Z,{size:"small",className:t.flexItem,"data-testid":"selectFileType",value:w,onChange:function(e){return v(e.target.value)},children:[(0,p.jsx)(d.Z,{value:"BED",children:"BED"}),(0,p.jsx)(d.Z,{value:"TSV",children:"TSV"})]})]})]}),(0,p.jsx)(x.Z,{children:(0,p.jsx)(h.Z,{className:t.flexItem,"data-testid":"dialogDownload",variant:"contained",color:"primary",startIcon:(0,p.jsx)(u.Z,{}),onClick:function(){(0,k.C3)(w,l),s(!1)},children:"Download"})})]})}));l.default=f}}]);
//# sourceMappingURL=8856.2e2a100f.chunk.js.map