"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3300,5576],{93300:(e,t,n)=>{n.r(t),n.d(t,{BaseAttributes:()=>b,BaseCard:()=>u.default,BaseCoreDetails:()=>d,FeatureDetails:()=>m.default,default:()=>v});var a=n(7552),r=n(68446),l=n(49823),s=n(1178),i=n(373),o=n(35300),u=n(87083),c=n(62568),m=n(84144);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},f.apply(null,arguments)}const d=e=>{const{title:t="Primary data"}=e;return a.createElement(u.default,f({},e,{title:t}),a.createElement(c.A,e))},b=e=>{const{feature:t}=e;return a.createElement(u.default,f({},e,{title:"Attributes"}),a.createElement(o.default,f({},e,{attributes:t})))},v=(0,r.observer)((function({model:e}){const{error:t,featureData:n}=e;if(t)return a.createElement(l.ErrorMessage,{error:t});if(n){const t=(0,i.Il)(n);return(0,s.Im)(t)?null:a.createElement(m.default,{model:e,feature:t})}return null}))},95576:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var a=n(7552),r=n(87731),l=n(943),s=n(68446),i=n(87083),o=n(93300),u=n(99546);const c=(0,a.lazy)((()=>n.e(3301).then(n.bind(n,33301)))),m=(0,s.observer)((function({model:e}){const{featureData:t,view:n,level:l,trackId:s}=e;return a.createElement("ul",null,"LinearSyntenyView"===n.type?a.createElement("li",null,a.createElement(r.A,{href:"#",onClick:a=>{a.preventDefault();const{views:r}=n;if(void 0!==l)r[l]?.navTo(t),r[l+1]?.navTo(t.mate);else{const n=t,a=t.mate,l=n.assemblyName,s=a.assemblyName,i=r.find((e=>e.assemblyNames[0]===l)),o=r.find((e=>e.assemblyNames[0]===s));i&&o||(0,u.getSession)(e).notify([i?`Unable to find ${(0,u.assembleLocString)(n)} in synteny view`:"",o?`Unable to find ${(0,u.assembleLocString)(a)} in synteny view`:""].join(" ... ")),i?.navTo(n),o?.navTo(a)}}},"Center view on this feature")):null,a.createElement("li",null,a.createElement(r.A,{href:"#",onClick:n=>{n.preventDefault();const a=(0,u.getSession)(e),r=new u.SimpleFeature(t);a.queueDialog((t=>[c,{model:e,feature:r,trackId:s,handleClose:t}]))}},"Launch new linear synteny view on this feature")))})),f=(0,s.observer)((function({model:e}){return a.createElement(l.A,{"data-testid":"alignment-side-drawer"},a.createElement(o.default,{title:"Feature",model:e}),a.createElement(i.default,{title:"Link to view"},a.createElement(m,{model:e})))}))}}]);
//# sourceMappingURL=5576.a93ef0a0.chunk.js.map