1import{b as S,K as e,j as r}from"./index-BR_yf2di.js";import{U as E}from"./UnitValue-BzeGtSnS.js";import{f}from"./strandSize-D5EnqNbD.js";import"./react-DvZTCVr6.js";import"./firebase-CvHRqVn6.js";import"./designTokens-BR0I2D6Y.js";const y=E;function x({results:t,isPrestressed:n}){const{unitSystem:A}=S(),i=t[e.OPTIMIZATION_VARIABLES]??{},p=t[e.FIXED_DESIGN_INPUTS]??{},d=t[e.REINFORCEMENT_DETAILS]??{},s=Number(i[e.VARIABLES_HOLLOWCORE.NUM_STRANDS])||0,m=Number(p[e.INPUTS_HOLLOWCORE.STRAND_AREA])||0,l=d[e.REINFORCEMENT.STRAND_AREA],o=Array.isArray(l)&&l.length>0?Number(l[Math.floor(l.length/2)]):s*m,c=i[e.VARIABLES_HOLLOWCORE.FPJ_RATIO],u=typeof c=="number"?c:null,N=[{label:"Prestressing Strands",value:n&&s>0&&m>0?`${s} Ã ${f(m,A)}`:"â",show:n},{label:"Total Strand Area",value:null,rawValue:o>0?o:null,unitType:"smallArea",show:n&&o>0},{label:"fpj / fpu",value:u!=null?u.toFixed(3):"â",show:n&&u!=null}];return r.jsxs("div",{className:"summary-card",children:[r.jsx("div",{className:"summary-card-header",children:"Reinforcement Summary"}),r.jsx("div",{className:"summary-card-body",children:N.filter(a=>a.show).map((a,R)=>r.jsxs("div",{className:"summary-row",children:[r.jsx("span",{className:"summary-row-label",children:a.label}),r.jsx("span",{className:"summary-row-value",children:a.unitType&&a.rawValue!=null?r.jsx(y,{value:a.rawValue,unitType:a.unitType,showLabel:!0}):a.value??"â"})]},R))})]})}export{x as default};
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.