"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3982],{43982:(e,l,t)=>{t.r(l),t.d(l,{default:()=>w});var a=t(66204),n=t(80846),o=t(29520),r=t(32831),s=t(80013),c=t(32339),m=t(78781),i=t(62301),d=t(7146),u=t(8459),E=t(38684),b=t(35421),k=t(71932);const p=(0,E.ZL)()((()=>({flexItem:{margin:5}}))),w=(0,n.observer)((function({model:e,onClose:l}){const{classes:t}=p(),[n,E]=(0,a.useState)("BED"),{selectedBookmarks:w}=e,x=0===w.length;return a.createElement(b.Dialog,{open:!0,onClose:l,title:"Export bookmarks"},a.createElement(o.Z,{style:{display:"flex",flexFlow:"column",gap:"5px"}},a.createElement(r.Z,{severity:"info"},x?a.createElement(a.Fragment,null,a.createElement("span",null,"All bookmarks will be exported."),a.createElement("br",null),a.createElement("span",null,"Use the checkboxes to select individual bookmarks to export.")):"Only selected bookmarks will be exported."),a.createElement("div",{style:{display:"flex",alignItems:"center"}},a.createElement(s.Z,null,"Format to download:"),a.createElement(c.Z,{size:"small",className:t.flexItem,"data-testid":"selectFileType",value:n,onChange:e=>E(e.target.value)},a.createElement(m.Z,{value:"BED"},"BED"),a.createElement(m.Z,{value:"TSV"},"TSV")))),a.createElement(i.Z,null,a.createElement(d.Z,{className:t.flexItem,"data-testid":"dialogDownload",variant:"contained",color:"primary",startIcon:a.createElement(u.Z,null),onClick:()=>{(0,k.C3)(n,e),l(!1)}},"Download")))}))}}]);
//# sourceMappingURL=3982.bdd92288.chunk.js.map