"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5535],{45535:(e,i,t)=>{t.r(i),t.d(i,{default:()=>v});var l=t(67758),n=t(7552),s=t(87083),r=t(99546),o=t(61282),a=t(65895),c=t(69500);const d=(0,n.lazy)(()=>t.e(8544).then(t.bind(t,18544))),u=(0,n.lazy)(()=>t.e(6335).then(t.bind(t,26335)));function h({locStrings:e,model:i}){const t=(0,r.getSession)(i);return(0,c.jsxs)("div",{children:[(0,c.jsx)(o.A,{children:"Navigate to breakend endpoint in linear view:"}),(0,c.jsx)("ul",{children:e.map((e,l)=>(0,c.jsxs)("li",{children:[e," ",(0,c.jsx)(a.A,{href:"#",onClick:l=>{l.preventDefault();const{view:n}=i;try{if(!n)throw new Error("No view associated with this feature detail panel anymore");n.navToLocString?.(e)}catch(e){console.error(e),t.notify(`${e}`)}},children:"(LGV)"})]},`${e}-${l}`))})]})}function w(e){const i=(0,l.c)(22),{locStrings:t,model:n,feature:s}=e;let h;i[0]!==n?(h=(0,r.getSession)(n),i[0]=n,i[1]=h):h=i[1];const w=h;let v;i[2]!==s?(v=new r.SimpleFeature(s),i[2]=s,i[3]=v):v=i[3];const f=v,g=n.view?.displayedRegions[0]?.assemblyName;let p,m,b;if(i[4]===Symbol.for("react.memo_cache_sentinel")?(p=(0,c.jsx)(o.A,{children:"Launch split view"}),i[4]=p):p=i[4],i[5]!==g||i[6]!==s||i[7]!==t||i[8]!==n.id||i[9]!==n.view||i[10]!==w||i[11]!==f){let e;i[13]!==g||i[14]!==s||i[15]!==n.id||i[16]!==n.view||i[17]!==w||i[18]!==f?(e=e=>(0,c.jsxs)("li",{children:[`${s.refName}:${s.start} // ${e}`," ",(0,c.jsx)(a.A,{href:"#",onClick:e=>{e.preventDefault(),w.queueDialog(e=>[d,{handleClose:e,session:w,feature:f,stableViewId:`${n.id}_${g}_breakpointsplitview_multilevel`,view:n.view,assemblyName:g}])},children:"(top/bottom)"})," ",(0,c.jsx)(a.A,{href:"#",onClick:e=>{e.preventDefault(),w.queueDialog(e=>[u,{handleClose:e,session:w,feature:f,stableViewId:`${n.id}_${g}_breakpointsplitview_singlelevel`,view:n.view,assemblyName:g}])},children:"(single row)"})]},JSON.stringify(e)),i[13]=g,i[14]=s,i[15]=n.id,i[16]=n.view,i[17]=w,i[18]=f,i[19]=e):e=i[19],m=t.map(e),i[5]=g,i[6]=s,i[7]=t,i[8]=n.id,i[9]=n.view,i[10]=w,i[11]=f,i[12]=m}else m=i[12];return i[20]!==m?(b=(0,c.jsxs)("div",{children:[p,(0,c.jsx)("ul",{children:m})]}),i[20]=m,i[21]=b):b=i[21],b}function v(e){const i=(0,l.c)(14),{model:t,locStrings:n,feature:o}=e;let a,d,u,v;if(i[0]!==t){const e=(0,r.getSession)(t),{pluginManager:l}=(0,r.getEnv)(e);a=!1;try{a=!!l.getViewType("BreakpointSplitView")}catch(d){}i[0]=t,i[1]=a}else a=i[1];return i[2]!==n||i[3]!==t?(d=(0,c.jsx)(h,{model:t,locStrings:n}),i[2]=n,i[3]=t,i[4]=d):d=i[4],i[5]!==o||i[6]!==a||i[7]!==n||i[8]!==t?(u=a?(0,c.jsx)(w,{model:t,locStrings:n,feature:o}):null,i[5]=o,i[6]=a,i[7]=n,i[8]=t,i[9]=u):u=i[9],i[10]!==e||i[11]!==d||i[12]!==u?(v=(0,c.jsxs)(s.default,{...e,title:"Breakends",children:[d,u]}),i[10]=e,i[11]=d,i[12]=u,i[13]=v):v=i[13],v}}}]);
//# sourceMappingURL=5535.c6523c30.chunk.js.map