"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[489],{80489:(e,t,l)=>{l.r(t),l.d(t,{default:()=>i});var n=l(7552),r=l(68446),a=l(99546),c=l(27725);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},o.apply(null,arguments)}const u=(0,l(75785).n9)()((()=>({td:{whiteSpace:"nowrap"}}))),s=(e,t=1)=>`${((e=0)=>+(+e).toFixed(1))(e/(t||1)*100)}%`,d=n.forwardRef((function(e,t){const{feature:l,model:r}=e,{classes:c}=u(),o=l.get("start")+1,d=l.get("end"),i=l.get("refName"),{refbase:E,readsCounted:p,depth:b,ref:h,...f}=l.get("snpinfo"),g=[i,o===d?(0,a.toLocale)(o):`${(0,a.toLocale)(o)}..${(0,a.toLocale)(d)}`].filter((e=>!!e)).join(":");return n.createElement("div",{ref:t},n.createElement("table",null,n.createElement("caption",null,g),n.createElement("thead",null,n.createElement("tr",null,n.createElement("th",null),n.createElement("th",null,"Base"),n.createElement("th",null,"Count"),n.createElement("th",null,"% of Total"),n.createElement("th",null,"Strands"))),n.createElement("tbody",null,n.createElement("tr",null,n.createElement("td",null),n.createElement("td",null,"Total"),n.createElement("td",null,p),n.createElement("td",null," "),n.createElement("td",null," ")),n.createElement("tr",null,n.createElement("td",null),n.createElement("td",null,"REF ",E?`(${E.toUpperCase()})`:""),n.createElement("td",null,h.entryDepth),n.createElement("td",null,s(h.entryDepth,p)),n.createElement("td",null,h[-1]?`${h[-1]}(-)`:"",h[1]?`${h[1]}(+)`:"")),Object.entries(f).map((([e,t])=>Object.entries(t).map((([t,l])=>n.createElement("tr",{key:`${e}_${t}`},n.createElement("td",null,n.createElement(m,{model:r,base:t})),n.createElement("td",null,t.toUpperCase()," "),n.createElement("td",{className:c.td},[l.entryDepth,void 0!==l.avgProbability?`(avg. ${s(l.avgProbability)} prob.)`:""].filter((e=>!!e)).join(" ")),n.createElement("td",null,"depth"===t||"skip"===t?"---":s(l.entryDepth,p)),n.createElement("td",null,l[-1]?`${l[-1]}(-)`:"",l[1]?`${l[1]}(+)`:"")))))))))}));function m({base:e,model:t}){const{visibleModifications:l}=t;return e.startsWith("mod_")?n.createElement("div",{style:{width:10,height:10,background:l.get(e.replace("mod_",""))?.color}}):null}const i=(0,r.observer)((function(e){const{model:t}=e,{featureUnderMouse:l}=t;return l&&"skip"===l.get("type")?null:n.createElement(c.m_,o({TooltipContents:d},e))}))}}]);
//# sourceMappingURL=489.602d55cd.chunk.js.map