(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[46],{2462:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return h}));var n=a(89),r=a.n(n),c=a(91),o=a(83),l=a(1),s=a.n(l),i=a(51),u=a(2396),b=a(2399),f=a(2368),p=a(2400),j=a(2364),d=a(131),O=a.n(d),g=a(82),m=a(84),C=a(477),E=Object(i.a)((function(e){return{closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}}}));function h(e){var t=e.config,a=e.handleClose,n=E(),i=Object(l.useState)(),d=Object(o.a)(i,2),h=d[0],v=d[1],w=Object(l.useState)(),k=Object(o.a)(w,2),S=k[0],q=k[1],y=Object(m.getSession)(t),B=y.rpcManager,x=Object(g.readConfObject)(t);Object(l.useEffect)((function(){var e=new AbortController,a=e.signal,n=!1;return Object(c.a)(r.a.mark((function e(){var c,o;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c=Object(g.readConfObject)(t,"adapter"),e.next=4,B.call(t.trackId,"CoreGetInfo",{adapterConfig:c,signal:a});case 4:o=e.sent,n||v(o),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),n||(console.error(e.t0),q(e.t0));case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))(),function(){e.abort(),n=!0}}),[t,B]);var A=Object(g.readConfObject)(t,"name");"ReferenceSequenceTrack"===Object(g.readConfObject)(t,"type")&&(A="Reference Sequence",y.assemblies.forEach((function(e){e.sequence===t.configuration&&(A="Reference Sequence (".concat(Object(g.readConfObject)(e,"name"),")"))})));var R="string"===typeof h?{header:"<pre>".concat(h.replace(/</g,"&lt;").replace(/>/g,"&gt;"),"</pre>")}:h||{};return s.a.createElement(u.a,{open:!0,onClose:a},s.a.createElement(b.a,null,A,s.a.createElement(f.a,{className:n.closeButton,onClick:function(){return a()}},s.a.createElement(O.a,null))),s.a.createElement(p.a,null,s.a.createElement(C.BaseCard,{title:"Configuration"},s.a.createElement(C.Attributes,{attributes:x,omit:["displays","baseUri","refNames"]})),null!==h?s.a.createElement(C.BaseCard,{title:"File info"},S?s.a.createElement(j.a,{color:"error"},"".concat(S)):h?s.a.createElement(C.Attributes,{attributes:R}):"Loading file data..."):null))}}}]);
//# sourceMappingURL=46.d13db169.chunk.js.map