view x/static/js/6021.21769087.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([[6021],{96021:(e,t,r)=>{r.r(t),r.d(t,{Tooltip:()=>o.A,default:()=>m});var n=r(7552),l=r(68446),a=r(75429),o=r(88262);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c.apply(null,arguments)}const s=e=>e.toLocaleString("en-US"),u=n.forwardRef((function({model:e,feature:t},r){const l=t.get("start"),o=t.get("end"),c=t.get("refName"),u=l===o?s(l):`${s(l)}..${s(o)}`,m=t.get("sources"),i=t.get("source"),b=t.get("summary"),g=Object.fromEntries(e.sources.map((e=>[e.name,e])));return n.createElement("div",{ref:r},[c,u].filter((e=>!!e)).join(":"),n.createElement("br",null),m?n.createElement("table",null,n.createElement("thead",null,n.createElement("tr",null,n.createElement("th",null,"color"),n.createElement("th",null,"source"),n.createElement("th",null,"score"))),n.createElement("tbody",null,Object.entries(m).map((([e,t])=>n.createElement("tr",{key:e},n.createElement("td",{style:{background:g[e].color}}," "),n.createElement("td",null,e),n.createElement("td",null,(0,a.toP)(t.score))))))):n.createElement("span",null,i," ",b?`min:${(0,a.toP)(t.get("minScore"))} avg:${(0,a.toP)(t.get("score"))} max:${(0,a.toP)(t.get("maxScore"))}`:(0,a.toP)(t.get("score"))))})),m=(0,l.observer)((e=>n.createElement(o.A,c({useClientY:!0,TooltipContents:u},e))))}}]);
//# sourceMappingURL=6021.21769087.chunk.js.map