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