"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[3982],{43982:function(e,l,s){s.r(l);var n=s(96234),o=s(41867),t=s(3762),r=s(47409),a=s(77327),i=s(51590),c=s(36669),d=s(59231),x=s(27768),h=s(23801),u=s(83713),m=s(47192),j=s(35421),k=s(42408),p=s(80838),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=3982.4ab7618a.chunk.js.map