PageSourceSearch

https://www.spacez.co/_next/static/chunks/33248.1b123588e1327884.js

js spacez.co collected 2026-09-24 13:11:41 UTC 1,982 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[33248],{33248:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var a=n(95155),s=n(30557),l=n(15296),c=n(47703);let r=e=>new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR",maximumFractionDigits:0}).format(Math.round(e)),o={Platform:"landmark",Spacez:"building",Cash:"wallet"};function i(){var e;let{data:t,loading:n,error:i,reload:m}=(0,c.K)("/api/pms/cashflow-projection?window=30"),d=null!=(e=null==t?void 0:t.forwardByAccount)?e:[],x=d.reduce((e,t)=>e+t.amount,0),u=Math.max(1,...d.map(e=>e.amount)),h=d.length>0;return(0,a.jsx)(l.r,{title:"Upcoming by account",icon:(0,a.jsx)(s.Icon,{name:"landmark"}),loading:n&&!h,error:i,onRetry:m,empty:!n&&!h,emptyText:"No upcoming settlements",footerHref:"/pms/cashflow",children:h&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-lexendDeca text-[12px] text-semantic_text_secondary",children:"Next 30 days"}),(0,a.jsx)("p",{className:"font-figtree text-[24px] font-bold leading-[28px] tabular-nums text-semantic_text_prominent",children:r(x)}),(0,a.jsx)("div",{className:"mt-3 space-y-2.5",children:d.map(e=>{var t;let n=null!=(t=o[e.key])?t:"landmark",l=x>0?e.amount/x*100:0;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,a.jsx)(s.Icon,{name:n,className:"h-4 w-4 flex-shrink-0 text-semantic_icon"}),(0,a.jsx)("span",{className:"flex-1 min-w-0 truncate font-lexendDeca text-[13px] text-semantic_text",children:e.key}),(0,a.jsxs)("span",{className:"font-figtree tabular-nums text-[13px] text-semantic_text",children:[r(e.amount)," ",(0,a.jsxs)("span",{className:"text-semantic_text_secondary",children:["\xb7 ",l<1?"<1":Math.round(l),"%"]})]})]}),(0,a.jsx)("div",{className:"h-1.5 rounded-full bg-semantic_background_hovered overflow-hidden",children:(0,a.jsx)("div",{className:"h-full rounded-full",style:{width:"".concat(e.amount/u*100,"%"),backgroundColor:"#C16B3E"}})})]},e.key)})})]})})}}}]);

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.