Mercurial > repos > fubar > jbrowse2
view x/static/js/7087.79101e8e.chunk.js @ 125:49f3d3878413 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
author | fubar |
---|---|
date | Sat, 05 Oct 2024 23:58:05 +0000 |
parents | |
children |
line wrap: on
line source
"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[7087],{67087:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var l=n(7552),a=n(36715),r=n(87731),i=n(99546),o=n(68984);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},s.apply(null,arguments)}const c=(0,l.lazy)((()=>n.e(4704).then(n.bind(n,84704)))),u=(0,l.lazy)((()=>n.e(5903).then(n.bind(n,25903))));function m({locStrings:e,model:t}){const n=(0,i.getSession)(t);return l.createElement("div",null,l.createElement(a.A,null,"Navigate to breakend endpoint in linear view:"),l.createElement("ul",null,e.map(((e,a)=>l.createElement("li",{key:`${e}-${a}`},e," ",l.createElement(r.A,{href:"#",onClick:l=>{l.preventDefault();const{view:a}=t;try{if(!a)throw new Error("No view associated with this feature detail panel anymore");a.navToLocString?.(e)}catch(e){console.error(e),n.notify(`${e}`)}}},"(LGV)"))))))}function w({locStrings:e,model:t,feature:n,viewType:o}){const s=(0,i.getSession)(t),m=new i.SimpleFeature(n);return l.createElement("div",null,l.createElement(a.A,null,"Launch split view"),l.createElement("ul",null,e.map((e=>l.createElement("li",{key:JSON.stringify(e)},`${n.refName}:${n.start} // ${e}`," ",l.createElement(r.A,{href:"#",onClick:e=>{e.preventDefault(),s.queueDialog((e=>[c,{handleClose:e,model:t,feature:m,viewType:o,view:t.view,assemblyName:t.view.displayedRegions[0].assemblyName}]))}},"(top/bottom)")," ",l.createElement(r.A,{href:"#",onClick:e=>{e.preventDefault(),s.queueDialog((e=>[u,{handleClose:e,model:t,feature:m,viewType:o,view:t.view,assemblyName:t.view.displayedRegions[0].assemblyName}]))}},"(single row)"))))))}function d(e){const{model:t,locStrings:n,feature:a}=e,r=(0,i.getSession)(t),{pluginManager:c}=(0,i.getEnv)(r);let u;try{u=c.getViewType("BreakpointSplitView")}catch(e){}return l.createElement(o.BaseCard,s({},e,{title:"Breakends"}),l.createElement(m,{model:t,locStrings:n}),u?l.createElement(w,{viewType:u,model:t,locStrings:n,feature:a}):null)}}}]); //# sourceMappingURL=7087.79101e8e.chunk.js.map