PageSourceSearch

https://propvault.com/assets/reports.lp-packet._participantId-DhM5RFRt.js

js propvault.com collected 2026-10-09 22:59:16 UTC 22,807 bytes, 1 lines download raw bytes

1import{j as e,as as R,u as _,a as Y,c as L,r as $,at as U,e as F,C as S,au as W,av as H,B as k,a1 as G,a3 as J}from"./index-BfBkqBNq.js";import{f as X}from"./triangle-alert-eBrbmV7z.js";import{r as C}from"./operating-coc-view-whQn7sjq.js";import{a as I,i as Z,g as ee,c as re,l as se,r as te,d as ne}from"./lp-packet.functions-C17-NqJx.js";import{R as ae}from"./ReconcilingLadderTable-BRPQVM8Y.js";import{P as T,S as ie}from"./PrintPage-DAz6T23l.js";import{a as E}from"./NavBuildupPanel-BqjHlUKg.js";import{I as oe}from"./InvestorQuarterlyPackets-CrHSy7Y0.js";import{F as le}from"./FailureDetail-C15zjOsa.js";import{A as z}from"./arrow-left-C5bIHYJZ.js";import{L as ce,P as O}from"./printer--topBers.js";import{R as ue}from"./refresh-cw-YuRMSVyN.js";import"./identity-DwzoufdA.js";const D=r=>new Date(r).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric",timeZone:"UTC"}),m=r=>r==null||!Number.isFinite(r)?"—":X(r),Q=r=>r==null||!Number.isFinite(r)?"—":`${r.toFixed(1)}%`,V=r=>r==null||!Number.isFinite(r)?"—":`${r.toFixed(2)}×`,de=r=>r==null||!Number.isFinite(r)?"—":`${(r*100).toFixed(1)}%`;function $e(){const{participantId:r}=R.useParams(),{fy:t,q:i}=R.useSearch(),{user:n,loading:h}=_(),l=Y(),j=L(I);$.useEffect(()=>{!h&&!n&&l({to:"/login"})},[h,n,l]);const o=L(U),c=F({queryKey:["lp-packet-fund-gate",r],enabled:S.FUND_LEVEL_ROLLUP&&!!n,retry:!1,queryFn:()=>o({data:{participantId:r}})}),y=S.FUND_LEVEL_ROLLUP&&c.data&&W(c.data)?c.data:null,x=!S.FUND_LEVEL_ROLLUP||c.isSuccess||c.isError,p=!!n&&S.LP_QUARTERLY_PACKET&&x&&!y,{data:s,isLoading:g,error:N}=F({queryKey:["lp-packet",r,t??null,i??null],enabled:p,queryFn:()=>j({data:{participantId:r,fiscalYear:t,quarter:i}})});if(h||!n)return null;if(!S.LP_QUARTERLY_PACKET)return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:e.jsx("div",{className:"rounded-lg border border-border bg-card p-6 text-sm text-foreground",children:"Quarterly packets aren't available yet."})});if(y)return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted p-4",children:e.jsxs("div",{className:"max-w-md rounded-lg border border-border bg-card p-6 text-sm text-foreground",children:[e.jsx("p",{className:"font-medium",children:"Quarterly packet unavailable for this property"}),e.jsx("p",{className:"mt-2 text-muted-foreground",children:H(y.fundName)}),e.jsxs(k,{variant:"outline",className:"mt-4",onClick:()=>l({to:"/reports"}),children:[e.jsx(z,{className:"h-4 w-4"})," Back to reports"]})]})});if(g||S.FUND_LEVEL_ROLLUP&&!x)return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:e.jsx(ce,{className:"h-6 w-6 animate-spin text-primary"})});if(N||!s)return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:e.jsxs("div",{className:"rounded-lg border border-border bg-card p-6 text-sm text-foreground",children:["We couldn't load this packet."," ",e.jsx(le,{error:N})]})});if(Z(s))return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted p-4",children:e.jsxs("div",{className:"max-w-md rounded-lg border border-border bg-card p-6 text-sm text-foreground",children:[e.jsx("p",{className:"font-medium",children:s.message}),s.missingMonths.length>0&&e.jsx("ul",{className:"mt-3 space-y-1 text-xs text-muted-foreground",children:s.missingMonths.map(f=>e.jsxs("li",{children:[f.label," — ",f.reason]},f.month))}),e.jsxs(k,{variant:"outline",className:"mt-4",onClick:()=>l({to:"/reports"}),children:[e.jsx(z,{className:"h-4 w-4"})," Back to reports"]})]})});if(S.LP_PACKET_V2)return e.jsx(me,{data:s,participantId:r,fy:t,q:i,onBack:()=>l({to:"/reports"})});const v=s.branding.accentColor??"#1d4ed8",w=s.branding.brandName??s.organizationName??s.propertyName;return e.jsxs("div",{className:"lp-packet-root min-h-screen bg-muted pb-20",children:[e.jsxs("div",{className:"ir-toolbar sticky top-0 z-10 flex items-center gap-3 border-b border-border bg-card px-4 py-3 shadow-sm no-print",children:[e.jsxs(k,{variant:"ghost",size:"sm",onClick:()=>l({to:"/reports"}),children:[e.jsx(z,{className:"h-4 w-4"})," Back"]}),e.jsxs("h1",{className:"text-sm font-semibold text-foreground",children:["Quarterly Packet — ",s.propertyName," · ",s.quarter.label]}),e.jsx("div",{className:"ml-auto flex gap-2",children:e.jsxs(k,{size:"sm",onClick:()=>window.print(),children:[e.jsx(O,{className:"h-4 w-4"})," Download PDF"]})})]}),e.jsx("div",{className:"py-6",children:e.jsxs("section",{className:"ir-page",children:[e.jsxs("div",{style:{borderBottom:`3px solid ${v}`,paddingBottom:10,marginBottom:14,display:"flex",alignItems:"center",gap:12},children:[s.branding.logoUrl&&e.jsx("img",{src:s.branding.logoUrl,alt:"",style:{maxHeight:48,maxWidth:180,objectFit:"contain"}}),e.jsxs("div",{children:[e.jsx("p",{style:{fontSize:11,color:"#6b7280",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 2px",fontWeight:600},children:w}),e.jsx("h1",{style:{color:v},children:"Quarterly Investor Packet"})]})]}),e.jsxs("p",{style:{color:"#6b7280",fontSize:12,margin:"0 0 4px"},children:[s.propertyName," · ",s.quarter.label]}),e.jsxs("p",{style:{fontSize:11,margin:"0 0 14px"},children:["Prepared for:"," ",e.jsx("strong",{children:s.entityName??s.participantName}),s.entityName&&e.jsxs("span",{style:{color:"#6b7280"},children:[" (",s.participantName,")"]})]}),s.quarter.partialNote&&e.jsx("p",{style:{fontSize:11,background:"#fffbeb",border:"1px solid #fde68a",color:"#92400e",borderRadius:6,padding:"6px 10px",margin:"0 0 14px"},children:s.quarter.partialNote}),e.jsx("h2",{children:"Your Position"}),e.jsxs("div",{className:"lp-kpi-grid",children:[e.jsx(d,{label:"Distributed to you this quarter",value:m(s.quarterDistributionTotal)}),e.jsx(d,{label:"Contributed to date",value:m(s.capitalAccount.totalContributed)}),e.jsx(d,{label:"Distributed to date",value:m(s.capitalAccount.totalDistributed)}),s.position&&e.jsxs(e.Fragment,{children:[e.jsx(d,{label:"Current value of your stake",value:m(s.position.unrealizedValue)}),e.jsx(d,{label:"Annualized return (IRR)",value:Q(s.position.irrPct)}),e.jsx(d,{label:"Equity multiple",value:V(s.position.equityMultiple)})]})]}),s.valuationBasis==="equity_contributed_proxy"&&s.valuationNote&&e.jsx("p",{style:{fontSize:10,
1color:"#92400e",marginTop:4,fontStyle:"italic"},children:s.valuationNote}),e.jsxs("p",{style:{fontSize:10,color:"#6b7280",marginTop:6},children:[s.position?`Ownership: ${s.position.ownershipKnown?`${s.position.ownershipPercentage.toFixed(2)}%`:"— (not on record)"}. Distributions shown are after the sponsor's share.`:"No equity position on record for this holder.",s.navAsOf?` Property value as of ${s.navAsOf}.`:""]}),e.jsxs("h2",{children:["Your Distributions — ",s.quarter.label]}),e.jsx("div",{style:{overflowX:"auto"},children:e.jsxs("table",{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Month"}),e.jsx("th",{className:"ir-num",children:"Your share of statement"}),e.jsx("th",{className:"ir-num",children:"Recorded to you"}),e.jsx("th",{children:"Ties out"})]})}),e.jsx("tbody",{children:s.quarterDistributions.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:4,style:{color:"#6b7280",textAlign:"center"},children:"No distributions recorded to you this quarter."})}):s.quarterDistributions.map(f=>e.jsxs("tr",{children:[e.jsx("td",{children:f.month}),e.jsx("td",{className:"ir-num",children:m(f.myShareOfStatement)}),e.jsx("td",{className:"ir-num",children:m(f.myLedgerAllocation)}),e.jsx("td",{children:f.unallocated?"Not yet itemized":f.reconciles==null?"—":f.reconciles?"Yes":"Review"})]},f.month))})]})}),e.jsxs("h2",{children:["Cash Flow — ",s.quarter.label," ",e.jsx("span",{style:{fontWeight:400,color:"#6b7280",fontSize:11},children:"(deal level)"})]}),e.jsxs("div",{className:"lp-kpi-grid",children:[e.jsx(d,{label:"Net operating income",value:m(s.financials.noi)}),e.jsx(d,{label:"Net change in cash",value:m(s.financials.netCashFlow)}),e.jsx(d,{label:"Distributions declared",value:m(s.financials.distributions)})]}),e.jsx("h2",{style:{marginTop:16},children:"Property value & deal equity"}),e.jsx(E,{nav:s.propertyNav,navAsOf:s.navAsOf,yourSharePercent:s.position?.ownershipPercentage??null,yourShareKnown:s.position?.ownershipKnown??!1,yourShareValue:s.position?.unrealizedValue??null,valuationBasis:s.valuationBasis,valuationNote:s.valuationNote,buildupSummary:s.navBuildupSummary}),e.jsxs("p",{style:{fontSize:10,color:"#9ca3af",marginTop:14},children:[s.quarter.monthsPresent," of 3 months on record ·"," ",s.quarter.monthKeys.join(", ")," · Prepared"," ",D(s.generatedAt)]})]})})]})}function d({label:r,value:t}){return e.jsxs("div",{className:"ir-kpi",children:[e.jsx("div",{className:"ir-kpi-label",children:r}),e.jsx("div",{className:"ir-kpi-value",children:t})]})}const pe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(r){const t=Number(r.slice(5,7));return Number.isFinite(t)&&t>=1&&t<=12?pe[t-1]:r}function M(r){const t=r<0,i=Math.abs(r),n=i>=1e3?`$${(i/1e3).toFixed(i>=1e4?0:1)}k`:`$${Math.round(i)}`;return t?`(${n})`:n}function me({data:r,participantId:t,fy:i,q:n,onBack:h}){const[l,j]=$.useState(null);$.useEffect(()=>{j(null)},[r.quarter.fiscalYear,r.quarter.quarter,t]);const o=L(ee),c=F({queryKey:["lp-packet-version-payload",t,r.quarter.fiscalYear,r.quarter.quarter,l],enabled:!!l&&r.renderedByManager,queryFn:()=>o({data:{participantId:t,fiscalYear:r.quarter.fiscalYear,quarter:r.quarter.quarter,version:l}})}),y=L(re),x=F({queryKey:["lp-packet-staleness",t,r.quarter.fiscalYear,r.quarter.quarter],enabled:!r.renderedByManager&&!l,queryFn:()=>y({data:{participantId:t,fiscalYear:r.quarter.fiscalYear,quarter:r.quarter.quarter}})}),p=l&&c.data?c.data:r;return p.branding.accentColor,p.branding.brandName??p.organizationName??p.propertyName,e.jsxs("div",{className:"lp-packet-root min-h-screen bg-muted pb-20",children:[e.jsxs("div",{className:"ir-toolbar sticky top-0 z-10 flex flex-wrap items-center gap-3 border-b border-border bg-card px-4 py-3 shadow-sm no-print",children:[e.jsxs(k,{variant:"ghost",size:"sm",onClick:h,children:[e.jsx(z,{className:"h-4 w-4"})," Back"]}),e.jsxs("h1",{className:"text-sm font-semibold text-foreground",children:["Quarterly Packet — ",p.propertyName," · ",p.quarter.label]}),e.jsxs("div",{className:"ml-auto flex flex-wrap items-center gap-2",children:[r.renderedByManager&&e.jsx(he,{participantId:t,fiscalYear:r.quarter.f
1iscalYear,quarter:r.quarter.quarter,selectedVersion:l,onSelect:j,isLoadingVersion:!!l&&c.isLoading}),e.jsx(xe,{participantId:t,fy:i,q:n,current:{fiscalYear:r.quarter.fiscalYear,quarter:r.quarter.quarter}}),e.jsxs(k,{size:"sm",onClick:()=>window.print(),children:[e.jsx(O,{className:"h-4 w-4"})," Download PDF"]})]})]}),e.jsx("div",{className:"py-6",children:e.jsx(oe,{packets:[p],staleness:l?void 0:{[p.participantId]:x.data}})})]})}function he({participantId:r,fiscalYear:t,quarter:i,selectedVersion:n,onSelect:h,isLoadingVersion:l}){const j=G(),o=L(se),c=L(te),[y,x]=$.useState(!1),[p,s]=$.useState(null),{data:g}=F({queryKey:["lp-packet-versions",r,t,i],queryFn:()=>o({data:{participantId:r,fiscalYear:t,quarter:i}})}),N=g??[];if(N.length===0)return null;const v=a=>new Date(a).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}),w=n==null?"current":String(n),f=async()=>{x(!0),s(null);try{await c({data:{participantId:r,fiscalYear:t,quarter:i}}),h(null),await j.invalidateQueries({queryKey:["lp-packet-versions",r,t,i]}),await j.invalidateQueries({queryKey:["lp-packet",r]})}catch(a){s(J(a,"We couldn't regenerate this packet. Try again in a moment."))}finally{x(!1)}};return e.jsxs("div",{className:"flex flex-col items-end gap-0.5",children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("select",{"aria-label":"Version",value:w,onChange:a=>{const u=a.target.value;h(u==="current"?null:Number(u))},className:"rounded-md border border-border bg-input px-2 py-1.5 text-xs text-foreground",children:N.map(a=>e.jsx("option",{value:a.status==="current"?"current":String(a.version),style:a.status==="current"?void 0:{color:"#6b7280"},children:a.status==="current"?`v${a.version} · Current · ${v(a.generatedAt)}`:`v${a.version} · Superseded${a.supersededAt?` ${v(a.supersededAt)}`:""} · ${v(a.generatedAt)}`},a.version))}),e.jsxs(k,{size:"sm",variant:"outline",onClick:f,disabled:y,title:"Force a fresh regeneration (writes a new version; keeps the prior one as Superseded)",children:[e.jsx(ue,{className:`h-3.5 w-3.5 ${y?"animate-spin":""}`}),"Regenerate"]})]}),l&&e.jsx("span",{className:"text-[10px] text-muted-foreground",children:"Loading version…"}),p&&e.jsx("span",{className:"text-[10px] text-destructive",children:p})]})}function Fe({data:r,accent:t,brandTitle:i,staleness:n}){const h=r.lifetimeSeries.distributions.map(o=>({label:A(o.month),value:o.value})),l=r.lifetimeSeries.noi.map(o=>({label:A(o.month),value:o.value})),j=`${i} · ${r.propertyName} · ${r.quarter.label}`;return e.jsxs(e.Fragment,{children:[e.jsxs(T,{pageNumber:1,pageCount:2,footLeft:j,children:[e.jsxs("div",{style:{borderBottom:`3px solid ${t}`,paddingBottom:10,marginBottom:14,display:"flex",alignItems:"center",gap:12},children:[r.branding.logoUrl&&e.jsx("img",{src:r.branding.logoUrl,alt:"",style:{maxHeight:48,maxWidth:180,objectFit:"contain"}}),e.jsxs("div",{children:[e.jsx("p",{style:{fontSize:11,color:"#6b7280",textTransform:"uppercase",letterSpacing:"0.08em",margin:"0 0 2px",fontWeight:600},children:i}),e.jsx("h1",{style:{color:t},children:"Quarterly Performance Report"})]})]}),e.jsxs("p",{style:{color:"#6b7280",fontSize:12,margin:"0 0 4px"},children:[r.propertyName," · ",r.quarter.label]}),e.jsxs("p",{style:{fontSize:11,margin:"0 0 12px"},children:["Prepared for: ",e.jsx("strong",{children:r.entityName??r.participantName}),r.entityName&&e.jsxs("span",{style:{color:"#6b7280"},children:[" (",r.participantName,")"]})]}),r.renderedByManager&&e.jsxs("p",{className:"lp-mgr-banner",children:["Prepared by ",r.organizationName??i," for this investor."]}),n?.state==="stale"&&e.jsxs("p",{style:{fontSize:11,background:"#eff6ff",border:"1px solid #bfdbfe",color:"#1e40af",borderRadius:6,padding:"6px 10px",margin:"0 0 14px"},children:[e.jsxs("strong",{children:["As of ",D(n.asOf)," — newer data available."]})," ","This packet is frozen as it was issued, so the figures below have not changed. Your sponsor can issue an updated packet."]}),r.quarter.partialNote&&e.jsx("p",{style:{fontSize:11,background:"#fffbeb",border:"1px solid #fde68a",color:"#92400e",borderRadius:6,padding:"6px 10px",margin:"0 0 14px"},children:r.quarter.partialNote}),e.jsx("h2",{children:"Your Position"}),e.jsxs("div",{className:"lp-kpi-grid",children:[e.jsx(d,{label:"Distributed to you this quarter",value:m(r.quarterDistributionTotal)}),e.jsx(d,{label:"Contributed to date",value:m(r.capitalAccount.totalContributed)}),e.jsx(d,{label:"Distributed to date",value:m(r.capitalAccount.totalDistributed)}),r.position&&e.jsxs(e.Fragment,{children:[e.jsx(d,{label:"Current value of your stake",value:m(r.position.unrealizedValue)}),e.jsx(d,{label:"Annualized return (IRR)",value:Q(r.position.irrPct)}),e.jsx(d,{label:"Equity multiple",value:V(r.position.equityMultiple)}),e.jsx(d,{label:"Cash-on-cash",value:de(C(r.position).ratio)})]})]}),r.position&&C(r.position).disclosure&&e.jsx("p",{style:{fontSize:10,
1color:"#4b5563",marginTop:4},children:C(r.position).disclosure}),r.valuationBasis==="equity_contributed_proxy"&&r.valuationNote&&e.jsx("p",{style:{fontSize:10,color:"#92400e",marginTop:4,fontStyle:"italic"},children:r.valuationNote}),e.jsxs("p",{style:{fontSize:10,color:"#6b7280",marginTop:6},children:[r.position?`Ownership: ${r.position.ownershipKnown?`${r.position.ownershipPercentage.toFixed(2)}%`:"— (not on record)"}. Distributions shown are after the sponsor's share.`:"No equity position on record for this holder.",r.navAsOf?` Property value as of ${r.navAsOf}.`:""]}),e.jsxs("div",{className:"lp-side-by-side",style:{marginTop:8},children:[e.jsxs("div",{children:[e.jsxs("h2",{style:{marginTop:0},children:["Your Distributions",r.distributionsReviewNeeded&&e.jsx("span",{className:"lp-review-chip",children:"Under review"})]}),e.jsx("div",{style:{overflowX:"auto"},children:e.jsxs("table",{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Month"}),e.jsx("th",{className:"ir-num",children:"Distributed to you"})]})}),e.jsx("tbody",{children:r.quarterDistributions.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:2,style:{color:"#6b7280",textAlign:"center"},children:"No distributions recorded to you this quarter."})}):r.quarterDistributions.map(o=>e.jsxs("tr",{children:[e.jsx("td",{children:A(o.month)}),e.jsx("td",{className:"ir-num",children:m(o.authoritative)})]},o.month))}),r.quarterDistributionTotal!=null&&e.jsx("tfoot",{children:e.jsxs("tr",{className:"ir-emph",children:[e.jsx("td",{children:"Total"}),e.jsx("td",{className:"ir-num",children:m(r.quarterDistributionTotal)})]})})]})}),r.distributionsReviewNeeded&&e.jsx("p",{className:"lp-review-note",children:"One or more months are being reconciled against the property statements — these figures may be revised."}),e.jsxs("div",{className:"ir-chart",style:{marginTop:8},children:[e.jsx("p",{className:"ir-chart-title",children:"Distributions — lifetime"}),e.jsx(B,{mode:"bar",data:h})]})]}),e.jsxs("div",{children:[e.jsxs("h2",{style:{marginTop:0},children:["Cash Flow ",e.jsx("span",{style:{fontWeight:400,color:"#6b7280",fontSize:11},children:"(deal level)"})]}),e.jsxs("div",{className:"lp-kpi-grid",children:[e.jsx(d,{label:"Net operating income",value:m(r.financials.noi)}),e.jsx(d,{label:"Net change in cash",value:m(r.financials.netCashFlow)}),e.jsx(d,{label:"Distributions declared",value:m(r.financials.distributions)})]}),e.jsxs("div",{className:"ir-chart",style:{marginTop:8},children:[e.jsx("p",{className:"ir-chart-title",children:"NOI — lifetime"}),e.jsx(B,{mode:"line",data:l})]})]})]})]}),e.jsxs(T,{pageNumber:2,pageCount:2,footLeft:j,children:[e.jsxs("h2",{style:{marginTop:0},children:["Cash Flow — ",r.quarter.label]}),e.jsx("p",{style:{fontSize:10,color:"#6b7280",margin:"0 0 8px"},children:"Month by month, with the quarter total. Property-level operating figures."}),r.quarterLadder?e.jsx(ie,{children:e.jsx(ae,{matrix:{monthLabels:r.quarterLadder.monthKeys.map(A),columns:r.quarterLadder.columns,total:r.quarterLadder.total,totalLabel:"Q total",footnotes:r.quarterLadder.footnotes,showTotal:!0}})}):r.quarterLadderError?e.jsxs("p",{style:{fontSize:10,color:"#b91c1c",marginTop:8},children:["Ladder unavailable: ",r.quarterLadderError]}):e.jsx("p",{style:{fontSize:10,color:"#6b7280",marginTop:8},children:"No month-by-month cash flow on record for this quarter."}),e.jsx("h2",{style:{marginTop:16},children:"Property value & deal equity"}),e.jsx(E,{nav:r.propertyNav,navAsOf:r.navAsOf,yourSharePercent:r.position?.ownershipPercentage??null,yourShareKnown:r.position?.ownershipKnown??!1,yourShareValue:r.position?.unrealizedValue??null,valuationBasis:r.valuationBasis,valuationNote:r.valuationNote,buildupSummary:r.navBuildupSummary}),e.jsxs("p",{style:{fontSize:10,color:"#9ca3af",marginTop:14},children:[r.quarter.monthsPresent," of 3 months on record ·"," ",r.quarter.monthKeys.join(", ")," · Prepared ",D(r.generatedAt)]})]})]})}function xe({participantId:r,fy:t,q:i,current:n}){const h=Y(),l=L(ne),{data:j}=F({queryKey:["lp-packet-quarters-picker",r],queryFn:()=>l({data:{participantId:r}})}),o=j?.defaultQuarter??null;$.useEffect(()=>{t==null&&i==null&&o&&!(o.fiscalYear===n.fiscalYear&&o.quarter===n.quarter)&&h({to:"/reports/lp-packet/$participantId",params:{participantId:r},search:{fy:o.fiscalYear,q:o.quarter},replace:!0})},[t,i,o,n.fiscalYear,n.quarter,r,h]);const c=j?.quarters??[];if(c.length===0)return null;const y=`${n.fiscalYear}-${n.quarter}`,x=c.find(s=>s.fiscalYear===n.fiscalYear&&s.quarter===n.quarter),p=x&&!x.complete;return e.jsxs("div",{className:"flex flex-col items-end gap-0.5",children:[e.jsxs("select",{"aria-label":"Quarter",value:y,onChange:s=>{const[g,N]=s.target.value.split("-");h({to:"/reports/lp-packet/$participantId",params:{participantId:r},search:{fy:Number(g),q:Number(N)}})},className:"rounded-md border border-border bg-input px-2 py-1.5 text-xs text-foreground",children:[!x&&e.jsx("option",{value:y,children:`FY${n.fiscalYear} Q${n.quarter}`}),c.map(s=>e.jsxs("option",{value:`${s.fiscalYear}-${s.quarter}`,disabled:!s.complete,title:s.complete?void 0:`Waiting on: ${s.missingMonths.map(g=>`${g.label} (${g.reason})`).join(" · ")}`,children:[s.label,s.complete?"":` — waiting on ${s.missingMonths.map(g=>g.label).join(", ")}`]},`${s.fiscalYear}-${s.quarter}`))]}),c.some(s=>!s.complete)&&e.jsx("span",{className:"max-w-[20rem] text-right text-[10px] leading-tight text-muted-foreground",children:c.filter(s=>!s.complete).map(s=>`${s.label}: waiting on ${s.missingMonths.map(g=>`${g.label} (${g.reason})`).join(" · ")}`).join(" — ")}),p&&x.missingMonths.length>0&&e.jsxs("span",{className:"max-w-[18rem] text-right text-[10px] leading-tight text-amber-700",children:["Waiting on:"," ",x.missingMonths.map(s=>`${s.label} (${s.reason})`).join(" · ")]})]})}function B({mode:r,data:t}){const c=t.map((u,q)=>({...u,i:q})).filter(u=>u.value!=null);if(c.length===0)return e.jsx("svg",{className:"ir-chart-svg",viewBox:"0 0 260 130",role:"img","aria-label":"No data",children:e.jsx("text",{x:260/2,y:130/2,textAnchor:"middle",className:"lp-graph-empty",children:"No data for this quarter"})});const y=c.map(u=>u.value),x=Math.max(0,...y),p=Math.min(0,...y),s=x-p||1,g=98,N=248,v=u=>16+(1-(u-p)/s)*g,w=v(0),f=t.length,a=N/Math.max(1,f);return e.jsxs("svg",{className:"ir-chart-svg",viewBox:"0 0 260 130",role:"img","aria-label":"Chart",children:[e.jsx("line",{x1:6,y1:w,x2:254,y2:w,className:"lp-graph-axis"}),r==="bar"?c.map(u=>
1{const q=6+a*u.i+a/2,b=Math.min(28,a*.6),P=v(Math.max(0,u.value)),K=Math.abs(v(u.value)-w);return e.jsxs("g",{children:[e.jsx("rect",{x:q-b/2,y:P,width:b,height:Math.max(1,K),className:"lp-graph-bar"}),e.jsx("text",{x:q,y:P-3,textAnchor:"middle",className:"lp-graph-vlabel",children:M(u.value)})]},u.i)}):(()=>{const u=c.map(b=>({x:6+a*b.i+a/2,y:v(b.value),v:b.value})),q=u.map((b,P)=>`${P===0?"M":"L"}${b.x},${b.y}`).join(" ");return e.jsxs(e.Fragment,{children:[e.jsx("path",{d:q,className:"lp-graph-line"}),u.map((b,P)=>e.jsxs("g",{children:[e.jsx("circle",{cx:b.x,cy:b.y,r:2,className:"lp-graph-dot"}),e.jsx("text",{x:b.x,y:b.y-4,textAnchor:"middle",className:"lp-graph-vlabel",children:M(b.v)})]},P))]})})(),t.map((u,q)=>e.jsx("text",{x:6+a*q+a/2,y:126,textAnchor:"middle",className:"lp-graph-xlabel",children:u.label},q))]})}export{Fe as LpPacketPage,B as MiniChart,$e as component};

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.