"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5746],{5746:(e,l,t)=>{t.r(l),t.d(l,{default:()=>x});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),b=t(49823),p=t(91194),d=t(84495);const k=(0,E.n9)()({flexItem:{display:"flex",alignItems:"center",gap:"5px"},container:{display:"flex",flexFlow:"column",gap:"5px"}}),x=(0,n.observer)((function({model:e,onClose:l}){const{classes:t}=k(),[n,E]=(0,a.useState)("BED"),{selectedBookmarks:x}=e,w=0===x.length;return a.createElement(b.Dialog,{open:!0,onClose:l,title:"Export bookmarks"},a.createElement(o.A,{className:t.container},a.createElement(r.A,{severity:"info"},w?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",{className:t.flexItem},a.createElement(s.A,null,"Format to download:"),a.createElement(c.A,{size:"small",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(p.A,null),onClick:()=>{(0,d.fU)(n,e),l(!1)}},"Download")))}))}}]);
//# sourceMappingURL=5746.39e4296b.chunk.js.map