1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c7e4e92e-38e1-44b5-8184-930954f46e09",e._sentryDebugIdIdentifier="sentry-dbid-c7e4e92e-38e1-44b5-8184-930954f46e09")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5247],{5247:(e,t,s)=>{s.r(t),s.d(t,{default:()=>g});var r=s(54568),a=s(9689),o=s(93905),i=s(2112),l=s(79748);s(7620);var n=s(31792),d=s(47436),c=s(20058),m=s(95781),x=s(60602),b=s(97851),h=(0,d.gu)({chartName:"LineChart",GraphicalChild:c.N,axisComponents:[{axisType:"xAxis",AxisComp:m.W},{axisType:"yAxis",AxisComp:x.h}],formatAxisMap:b.pr}),u=s(20784),p=s(45259),f=s(26305);let y=({data:e,currentValue:t,min:s,max:a,getStatusColor:o})=>{let i=[...e].sort((e,t)=>new Date(e.date).getTime()-new Date(t.date).getTime());return(0,r.jsx)("div",{className:"w-full h-full",children:(0,r.jsx)(n.u,{width:"100%",height:"100%",children:(0,r.jsxs)(h,{data:i,margin:{top:6,right:8,bottom:2,left:8},children:[(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"sparklineGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,r.jsx)("stop",{offset:"5%",stopColor:"#c0392b",stopOpacity:.3}),(0,r.jsx)("stop",{offset:"95%",stopColor:"#c0392b",stopOpacity:.05})]}),(0,r.jsxs)("linearGradient",{id:"colorValue",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,r.jsx)("stop",{offset:"5%",stopColor:"#c0392b",stopOpacity:.15}),(0,r.jsx)("stop",{offset:"95%",stopColor:"#c0392b",stopOpacity:.05})]})]}),(0,r.jsx)(u.T,{y1:s,y2:a,fill:"#10B981",fillOpacity:.1,strokeOpacity:0}),(0,r.jsx)(p.e,{y:s,stroke:"#10B981",strokeDasharray:"2 3",strokeOpacity:.4}),(0,r.jsx)(p.e,{y:a,stroke:"#10B981",strokeDasharray:"2 3",strokeOpacity:.4}),(0,r.jsx)(f.G,{type:"monotone",dataKey:"value",stroke:"none",fillOpacity:1,fill:"url(#colorValue)",dot:!1,activeDot:!1,isAnimationActive:!1}),(0,r.jsx)(c.N,{type:"monotone",dataKey:"value",stroke:"#3B82F6",strokeWidth:1.5,dot:!1,activeDot:!1,isAnimationActive:!0}),(0,r.jsx)(c.N,{type:"monotone",dataKey:"value",stroke:"transparent",dot:e=>{let{cx:t,cy:o,payload:l}=e;if(l&&null!==l.value&&void 0!==l.value&&i.indexOf(l)===i.length-1){let e,{fill:i}=(e=(l.value-s)/(a-s)*100)>=95&&e<=120||e>=-20&&e<=5?{fill:"#F59E0B",stroke:"#F59E0B",isOutOfRange:!0,className:"monitor"}:e>120||e<-20?{fill:"#EF4444",stroke:"#EF4444",isOutOfRange:!0,className:"outofrange"}:{fill:"#10B981",stroke:"#10B981",isOutOfRange:!1,className:"optimal"};return(0,r.jsx)("svg",{x:t-4,y:o-4,width:8,height:8,viewBox:"0 0 8 8",children:(0,r.jsx)("circle",{cx:4,cy:4,r:4,fill:i,stroke:"#fff",strokeWidth:1.5})},`dot-${l.date}`)}return(0,r.jsx)("g",{},"empty-dot")},isAnimationActive:!0})]})})})},g=({biomarker:e,historicalData:t,loincId:s,loincCode:n})=>{let d,{generateBiomarkerUrl:c,updateUrlParams:m}=(0,o.z)(),x=(0,l.useRouter)(),b=c(s,{trackScrollPosition:!0}),[h,u]=e.range.split("-").map(Number),{status:p,className:f}=(d=(e.value-h)/(u-h)*100)>=95&&d<=120?{status:"Monitor (High)",className:"bg-amber-500/10 text-amber-600 border border-amber-500/30"}:d>=-20&&d<=5?{status:"Monitor (Low)",className:"bg-amber-500/10 text-amber-600 border border-amber-500/30"}:d>120?{status:"High",className:"bg-red-500/10 text-red-600 border border-red-500/30"}:d<-20?{status:"Low",className:"bg-red-500/10 text-red-600 border border-red-500/30"}:{status:"Optimal",className:"bg-green-500/10 text-green-600 border border-green-500/30"};return(0,r.jsxs)("div",{className:"bg-white/80 rounded-xl border border-brand-primary/10 p-4 sm:p-5 shadow-brand hover:bg-white/90 hover:shadow-brand-lg transition-all flex flex-col h-full relative overflow-hidden group",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4 relative",children:[(0,r.jsx)("div",{className:"flex items-center gap-2 min-w-0 flex-1 pr-2",children:(0,r.jsx)("h3",{className:"text-xs sm:text-sm font-raleway font-medium text-brand-text",children:e.name})}),(0,r.jsx)("div",{className:"shrink-0",children:(0,r.jsx)(a.A,{loincCode:n,size:"sm"})})]}),(0,r.jsx)("div",{className:"flex-grow my-2 h-10 sm:h-12 relative",children:(0,r.jsx)(y,{data:t||[],currentValue:e.value,min:h,max:u,getStatusColor:e=>{switch(e){case"Optimal":case"Good":return"bg-green-500/20 border border-green-500 shadow-sm shadow-green-500/30";case"Fair":case"Poor":case"Monitor":return"bg-amber-500/20 border border-amber-500 shadow-sm shadow-amber-500/30";case"Critical":case"High":case"Low":return"bg-red-500/20 border border-red-500 shadow-sm shadow-red-500/30";default:return"bg-brand-text/20 border border-brand-text/40 shadow-sm shadow-brand-text/20"}}})}),(0,r.jsxs)("div",{className:"mt-3 sm:mt-4 pt-3 sm:pt-4 border-t border-brand-primary/20 flex items-center justify-between relative",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3 min-w-0 overflow-hidden",children:[(0,r.jsxs)("span",{className:"text-xs sm:text-sm font-crimson font-medium text-brand-text whitespace-nowrap",children:[e.value," ",(0,r.jsx)("span",{className:"text-[10px] sm:text-xs text-brand-text/60 font-raleway",children:e.unit})]}),(0,r.jsx)("div",{className:`text-xs px-2 py-1 rounded-full font-raleway font-medium ${f} hidden sm:block`,children:p})]}),(0,r.jsxs)("button",{onClick:e=>{e.preventDefault(),m({scrollY:window.scrollY.toString()}),setTimeout(()=>{x.push(b)},50)},className:"text-brand-primary flex items-center text-xs ml-1 group-hover:text-brand-primary/80 font-raleway font-medium transition-colors",children:["Details",(0,r.jsx)(i.A,{className:"h-3.5 w-3.5"})]})]})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.