1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[686],{80686:(e,t,i)=>{i.r(t),i.d(t,{default:()=>o});var a=i(95155),l=i(37197);let r=[0,.2,.8,1];function o(e){let{currentAge:t,currentHeightCm:i,predictedHeightCm:o,motherHeightCm:s,fatherHeightCm:n,gender:h}=e,d="boy"===h?"#3b82f6":"#ec4899",c=Number.isFinite(t)?Number.isInteger(t)?t.toFixed(0):t.toFixed(1):"unknown",f=[i,o,s,n].filter(e=>Number.isFinite(e)),m=f.length?10*Math.floor(Math.min(...f)/10)-10:0,u=f.length?10*Math.ceil(Math.max(...f)/10)+10:1;return(0,a.jsxs)("div",{className:"w-full",role:"group","aria-labelledby":"height-predictor-chart-title","aria-describedby":"height-predictor-chart-note",children:[(0,a.jsxs)("h3",{id:"height-predictor-chart-title",className:"text-sm font-semibold text-muted-foreground mb-1 text-center",children:["Current and Predicted Adult Height (","boy"===h?"Boy":"Girl",")"]}),(0,a.jsx)("p",{id:"height-predictor-chart-note",className:"mb-2 text-center text-xs text-slate-600 dark:text-slate-400",children:"The points compare the current measurement with the KhamisâRoche adult-height estimate. No year-by-year growth path is modeled."}),(0,a.jsx)("div",{className:"h-[350px]",children:(0,a.jsx)(l.uf,{width:"100%",height:"100%",initialDimension:{width:360,height:280},children:(0,a.jsxs)(l.bl,{data:[],margin:{top:10,right:20,left:10,bottom:5},children:[(0,a.jsx)(l.dC,{strokeDasharray:"3 3",opacity:.3}),(0,a.jsx)(l.WX,{type:"number",dataKey:"point",domain:[0,1],ticks:r,tickFormatter:e=>.2===e?"Current (age ".concat(c,")"):.8===e?"Adult estimate":"",tick:{fontSize:11}}),(0,a.jsx)(l.h8,{type:"number",domain:[m,u],label:{value:"Height (cm)",angle:-90,position:"insideLeft",offset:5,fontSize:12},tick:{fontSize:11}}),(0,a.jsx)(l.rR,{x:.2,y:i,r:9,fill:d,stroke:"#fff",strokeWidth:3,label:{value:"Current",position:"top",fontSize:12,fontWeight:"bold",fill:d},tooltip:{title:"Current measurement",lines:[{label:"Age",value:"".concat(c," years")},{label:"Height",value:"".concat(i.toFixed(1)," cm"),emphasis:!0}]}}),(0,a.jsx)(l.rR,{x:.8,y:o,r:9,fill:"#16a34a",stroke:"#fff",strokeWidth:3,label:{value:"Adult estimate",position:"top",fontSize:12,fontWeight:"bold",fill:"#16a34a"},tooltip:{title:"Predicted adult height",lines:[{label:"Height",value:"".concat(o.toFixed(1)," cm"),emphasis:!0},{label:"Type",value:"Adult endpoint estimate"}]}}),(0,a.jsx)(l.e_,{y:s,stroke:"#ec4899",strokeDasharray:"4 4",strokeWidth:1,label:{value:"Mother ".concat(s.toFixed(0)," cm"),position:"left",fontSize:10,fill:"#ec4899"}}),(0,a.jsx)(l.e_,{y:n,stroke:"#3b82f6",strokeDasharray:"4 4",strokeWidth:1,label:{value:"Father ".concat(n.toFixed(0)," cm"),position:"left",fontSize:10,fill:"#3b82f6"}})]})})})]})}}}]);
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.