"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5746],{5746:(e,l,t)=>{t.r(l),t.d(l,{default:()=>w});var a=t(7552),n=t(68446),o=t(29499),r=t(9937),s=t(36715),c=t(98360),m=t(29629),i=t(58507),u=t(5401),E=t(75785),d=t(48735),b=t(57118),k=t(84495);const p=(0,E.n9)()({flexItem:{margin:5},container:{display:"flex",flexFlow:"column",gap:"5px"}}),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(d.Dialog,{open:!0,onClose:l,title:"Export bookmarks"},a.createElement(o.A,{className:t.container},a.createElement(r.A,{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.A,null,"Format to download:"),a.createElement(c.A,{size:"small",className:t.flexItem,"data-testid":"selectFileType",value:n,onChange:e=>E(e.target.value)},a.createElement(m.A,{value:"BED"},"BED"),a.createElement(m.A,{value:"TSV"},"TSV")))),a.createElement(i.A,null,a.createElement(u.A,{variant:"contained",color:"primary",startIcon:a.createElement(b.A,null),onClick:()=>{(0,k.fU)(n,e),l(!1)}},"Download")))}))}}]);
//# sourceMappingURL=5746.f43f87fe.chunk.js.map