"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[9114],{9114:(e,t,a)=>{a.r(t),a.d(t,{default:()=>c});var n=a(87083),s=a(99546),i=a(7552),l=a(61282),r=a(65895),o=a(69500);const d=(0,i.lazy)((()=>a.e(5930).then(a.bind(a,45930)))),u=(0,i.lazy)((()=>a.e(457).then(a.bind(a,80457))));function m({model:e,feature:t}){const a=(0,s.getSession)(e),n={uniqueId:t.uniqueId,refName:t.refName,start:t.start,end:t.end,strand:t.strand},i={uniqueId:`${t.id}-mate`,refName:t.next_ref,start:t.next_pos,end:t.next_pos+1,strand:t.strand};return(0,o.jsxs)("div",{children:[(0,o.jsx)(l.A,{children:"Launch split view"}),(0,o.jsx)("ul",{children:(0,o.jsxs)("li",{children:[n.refName,":",(0,s.toLocale)(n.start)," -> ",i.refName,":",(0,s.toLocale)(i.start)," ",(0,o.jsx)(r.A,{href:"#",onClick:t=>{t.preventDefault(),a.queueDialog((t=>[d,{handleClose:t,session:a,feature:new s.SimpleFeature({...n,mate:i}),view:e.view,assemblyName:e.view.displayedRegions[0].assemblyName}]))},children:"(top/bottom)"})," ",(0,o.jsx)(r.A,{href:"#",onClick:t=>{t.preventDefault(),a.queueDialog((t=>[u,{handleClose:t,session:a,feature:new s.SimpleFeature({...n,mate:i}),view:e.view,assemblyName:e.view.displayedRegions[0].assemblyName}]))},children:"(single row)"})]})})]})}function c(e){const{model:t,feature:a}=e,i=(0,s.getSession)(t),{pluginManager:l}=(0,s.getEnv)(i);let r=!1;try{r=!!l.getViewType("BreakpointSplitView")}catch(e){}return r?(0,o.jsx)(n.default,{...e,title:"Paired alignments",children:(0,o.jsx)(m,{model:t,feature:a})}):null}}}]);
//# sourceMappingURL=9114.b9ea2284.chunk.js.map