"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[3982],{43982:(e,l,s)=>{s.r(l),s.d(l,{default:()=>u});var o=s(41867),t=s(3762),a=s(47409),n=s(77327),r=s(51590),i=s(36669),d=s(59231),c=s(27768),x=s(23801),h=s(83713),m=s(47192),j=s(35421),k=s(42408),p=s(80838);const b=(0,m.ZL)()((()=>({flexItem:{margin:5}}))),u=(0,t.observer)((function(e){let{model:l,onClose:s}=e;const{classes:t}=b(),[m,u]=(0,o.useState)("BED"),{selectedBookmarks:w}=l,f=0===w.length;return(0,p.jsxs)(j.Dialog,{open:!0,onClose:s,title:"Export bookmarks",children:[(0,p.jsxs)(a.Z,{style:{display:"flex",flexFlow:"column",gap:"5px"},children:[(0,p.jsx)(n.Z,{severity:"info",children:f?(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)(r.Z,{children:"Format to download:"}),(0,p.jsxs)(i.Z,{size:"small",className:t.flexItem,"data-testid":"selectFileType",value:m,onChange:e=>u(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)(c.Z,{children:(0,p.jsx)(x.Z,{className:t.flexItem,"data-testid":"dialogDownload",variant:"contained",color:"primary",startIcon:(0,p.jsx)(h.Z,{}),onClick:()=>{(0,k.C3)(m,l),s(!1)},children:"Download"})})]})}))}}]);
//# sourceMappingURL=3982.acc17409.chunk.js.map