"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5746],{5746:(e,s,l)=>{l.r(s),l.d(s,{default:()=>u});var o=l(7552),n=l(67112),a=l(59985),r=l(76218),t=l(28194),i=l(61282),c=l(21049),d=l(10240),x=l(30698),h=l(69092),b=l(68446),j=l(75785),p=l(84495),k=l(69500);const m=(0,j.n9)()({flexItem:{display:"flex",alignItems:"center",gap:"5px"},container:{display:"flex",flexFlow:"column",gap:"5px"}}),u=(0,b.observer)((function({model:e,onClose:s}){const{classes:l}=m(),[b,j]=(0,o.useState)("BED"),{selectedBookmarks:u}=e,w=0===u.length;return(0,k.jsxs)(n.Dialog,{open:!0,onClose:()=>{s()},title:"Export bookmarks",children:[(0,k.jsxs)(r.A,{className:l.container,children:[(0,k.jsx)(t.A,{severity:"info",children:w?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("span",{children:"All bookmarks will be exported."}),(0,k.jsx)("br",{}),(0,k.jsx)("span",{children:"Use the checkboxes to select individual bookmarks to export."})]}):"Only selected bookmarks will be exported."}),(0,k.jsxs)("div",{className:l.flexItem,children:[(0,k.jsx)(i.A,{children:"Format to download:"}),(0,k.jsxs)(c.A,{size:"small",value:b,onChange:e=>{j(e.target.value)},children:[(0,k.jsx)(d.A,{value:"BED",children:"BED"}),(0,k.jsx)(d.A,{value:"TSV",children:"TSV"})]})]})]}),(0,k.jsx)(x.A,{children:(0,k.jsx)(h.A,{variant:"contained",color:"primary",startIcon:(0,k.jsx)(a.A,{}),onClick:()=>{(0,p.fU)(b,e),s()},children:"Download"})})]})}))}}]);
//# sourceMappingURL=5746.42b34943.chunk.js.map