"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5535],{45535:(e,i,n)=>{n.r(i),n.d(i,{default:()=>w});var l=n(7552),t=n(87083),s=n(99546),r=n(61282),a=n(65895),o=n(69500);const c=(0,l.lazy)((()=>n.e(8544).then(n.bind(n,18544)))),d=(0,l.lazy)((()=>n.e(6335).then(n.bind(n,26335))));function u({locStrings:e,model:i}){const n=(0,s.getSession)(i);return(0,o.jsxs)("div",{children:[(0,o.jsx)(r.A,{children:"Navigate to breakend endpoint in linear view:"}),(0,o.jsx)("ul",{children:e.map(((e,l)=>(0,o.jsxs)("li",{children:[e," ",(0,o.jsx)(a.A,{href:"#",onClick:l=>{l.preventDefault();const{view:t}=i;try{if(!t)throw new Error("No view associated with this feature detail panel anymore");t.navToLocString?.(e)}catch(e){console.error(e),n.notify(`${e}`)}},children:"(LGV)"})]},`${e}-${l}`)))})]})}function h({locStrings:e,model:i,feature:n}){const l=(0,s.getSession)(i),t=new s.SimpleFeature(n),u=i.view?.displayedRegions[0]?.assemblyName;return(0,o.jsxs)("div",{children:[(0,o.jsx)(r.A,{children:"Launch split view"}),(0,o.jsx)("ul",{children:e.map((e=>(0,o.jsxs)("li",{children:[`${n.refName}:${n.start} // ${e}`," ",(0,o.jsx)(a.A,{href:"#",onClick:e=>{e.preventDefault(),l.queueDialog((e=>[c,{handleClose:e,session:l,feature:t,stableViewId:`${i.id}_${u}_breakpointsplitview_multilevel`,view:i.view,assemblyName:u}]))},children:"(top/bottom)"})," ",(0,o.jsx)(a.A,{href:"#",onClick:e=>{e.preventDefault(),l.queueDialog((e=>[d,{handleClose:e,session:l,feature:t,stableViewId:`${i.id}_${u}_breakpointsplitview_singlelevel`,view:i.view,assemblyName:u}]))},children:"(single row)"})]},JSON.stringify(e))))})]})}function w(e){const{model:i,locStrings:n,feature:l}=e,r=(0,s.getSession)(i),{pluginManager:a}=(0,s.getEnv)(r);let c=!1;try{c=!!a.getViewType("BreakpointSplitView")}catch(e){}return(0,o.jsxs)(t.default,{...e,title:"Breakends",children:[(0,o.jsx)(u,{model:i,locStrings:n}),c?(0,o.jsx)(h,{model:i,locStrings:n,feature:l}):null]})}}}]);
//# sourceMappingURL=5535.99182e71.chunk.js.map