"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5246],{75246:(e,n,s)=>{s.r(n),s.d(n,{default:()=>f});var t=s(93300),i=s(87083),l=s(943),a=s(68446),o=s(7552),r=s(99546),c=s(87731),d=s(69500);const u=(0,o.lazy)((()=>s.e(3301).then(s.bind(s,33301)))),b=(0,a.observer)((function({model:e}){const{featureData:n,view:s,level:t,trackId:i}=e;return(0,d.jsxs)("ul",{children:["LinearSyntenyView"===s.type?(0,d.jsx)("li",{children:(0,d.jsx)(c.A,{href:"#",onClick:i=>{i.preventDefault();const{views:l}=s;if(void 0!==t)l[t]?.navTo(n),l[t+1]?.navTo(n.mate);else{const s=n,t=n.mate,i=s.assemblyName,a=t.assemblyName,o=l.find((e=>e.assemblyNames[0]===i)),c=l.find((e=>e.assemblyNames[0]===a));o&&c||(0,r.getSession)(e).notify([o?`Unable to find ${(0,r.assembleLocString)(s)} in synteny view`:"",c?`Unable to find ${(0,r.assembleLocString)(t)} in synteny view`:""].join(" ... ")),o?.navTo(s),c?.navTo(t)}},children:"Center view on this feature"})}):null,(0,d.jsx)("li",{children:(0,d.jsx)(c.A,{href:"#",onClick:s=>{s.preventDefault();const t=new r.SimpleFeature(n),l=(0,r.getSession)(e);l.queueDialog((e=>[u,{session:l,feature:t,trackId:i,handleClose:e}]))},children:"Launch new linear synteny view on this feature"})})]})})),f=(0,a.observer)((function({model:e}){return(0,d.jsxs)(l.A,{children:[(0,d.jsx)(t.default,{title:"Feature",model:e}),(0,d.jsx)(i.default,{title:"Link to view",children:(0,d.jsx)(b,{model:e})})]})}))}}]);
//# sourceMappingURL=5246.bc8f28fc.chunk.js.map