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