PageSourceSearch

https://cmoalto.cmogroup.io/_next/static/chunks/pages/finance/cash-3478e60e24366ee5.js

js cmogroup.io collected 2026-10-02 00:00:29 UTC 76,729 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3600],{4956:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]])},5781:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("ArrowDownLeft",[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]])},9813:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]])},12531:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("Slack",[["rect",{width:"3",height:"8",x:"13",y:"2",rx:"1.5",key:"diqz80"}],["path",{d:"M19 8.5V10h1.5A1.5 1.5 0 1 0 19 8.5",key:"183iwg"}],["rect",{width:"3",height:"8",x:"8",y:"14",rx:"1.5",key:"hqg7r1"}],["path",{d:"M5 15.5V14H3.5A1.5 1.5 0 1 0 5 15.5",key:"76g71w"}],["rect",{width:"8",height:"3",x:"14",y:"13",rx:"1.5",key:"1kmz0a"}],["path",{d:"M15.5 19H14v1.5a1.5 1.5 0 1 0 1.5-1.5",key:"jc4sz0"}],["rect",{width:"8",height:"3",x:"2",y:"8",rx:"1.5",key:"1omvl4"}],["path",{d:"M8.5 5H10V3.5A1.5 1.5 0 1 0 8.5 5",key:"16f3cl"}]])},13218:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},14041:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},18375:(e,t,a)=>{"use strict";a.d(t,{n:()=>i});var s=a(14232),r=a(29395),n=a(54216),l=a(36035),d=a(29219);function i(){let{effectiveTenant:e,currentBranch:t}=(0,r.M)(),[a,i]=(0,s.useState)([]),[c,o]=(0,s.useState)([]),[m,x]=(0,s.use
1State)(!0),[p,u]=(0,s.useState)("aws"),h=(0,s.useCallback)(async()=>{var a;x(!0);let s=null==e?void 0:e.id,r=(null!=(a=null==t?void 0:t.id)?a:"").trim(),c=r?"/api/finance/bank/accounts?branchId=".concat(encodeURIComponent(r)):"/api/finance/bank/accounts";try{let e=(await (0,l.X)(c,[],s,e=>e.success&&Array.isArray(e.data)?e.data:null)).data,t=await (0,n.GM)(s);i((0,d.A)(e)),o((0,d.Ry)(t.data)),u("aws")}catch(e){i([]),o([])}x(!1)},[null==e?void 0:e.id,null==t?void 0:t.id]);(0,s.useEffect)(()=>{h()},[h]);let b=(0,s.useMemo)(()=>(0,d.x$)(a.map(e=>({id:e.id,bankName:e.bank,accountName:e.entity,currency:e.currency,balance:e.localBalance})),c.map((e,t)=>{var s,r;return{id:"flow-".concat(t),bankAccountId:null!=(r=null==(s=a[0])?void 0:s.id)?r:"",date:e.time,description:e.desc,amount:Math.abs(e.amount),direction:e.amount>=0?"credit":"debit",reconciled:"settled"===e.status,matchedRef:e.counterparty}})),[a,c]),f=(0,s.useMemo)(()=>{var e,t,s,r,n,l;return{id:null!=(r=null==(e=a[0])?void 0:e.id)?r:"primary",label:a[0]?"".concat(a[0].bank," \xb7 ").concat(a[0].entity):"Primary account",asOf:b.asOf,openingBalance:null!=(n=null==(t=a[0])?void 0:t.usdEquivalent)?n:0,projectedEod:(null!=(l=null==(s=a[0])?void 0:s.usdEquivalent)?l:0)+c.reduce((e,t)=>e+t.amount,0)}},[a,c,b.asOf]);return{accounts:a,flows:c,summary:b,intradayAccount:f,loading:m,source:p,reload:h}}},20249:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},36543:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>e_});var s=a(37876),r=a(14232),n=a(77653),l=a(15750),d=a(99108),i=a(77328),c=a.n(i),o=a(44204),m=a(15565),x=a(32411),p=a(73252),u=a(79449),h=a(18375),b=a(86741),f=a(27490),g=a(20249),y=a(89030),j=a(76419),N=a(60573),v=a(64726);function k(e){return Math.abs(e)>=1e6?"$".concat((e/1e6).toFixed(1),"M"):Math.abs(e)>=1e3?"$".concat((e/1e3).toFixed(0),"K"):"$".concat(e)}function w(){let{t:e}=(0,x.Bd)(),{summary:t,reload:a}=(0,h.n)(),r=!t.accounts;return(0,s.jsxs)("div",{className:"relative overflow-hidden rounded-3xl bg-primary p-6 text-primary-foreground",children:[(0,s.jsx)("div",{className:"pointer-events-none absolute -right-16 -top-16 h-56 w-56 rounded-full bg-white/10 blur-3xl"}),(0,s.jsx)("div",{className:"pointer-events-none absolute -left-12 bottom-0 h-44 w-44 rounded-full bg-accent/25 blur-3xl"}),(0,s.jsxs)("div",{className:"relative flex flex-wrap items-start justify-between gap-5",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs font-medium text-primary-foreground/70",children:[(0,s.jsx)(b.A,{className:"h-4 w-4"})," ",e("financeOverview.cashHeroEyebrow"),t.company?" \xb7 ".concat(t.company):""]}),r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h1",{className:"mt-2 text-2xl font-bold",children:e("financeOverview.cashEmptyHero")}),(0,s.jsx)("p",{className:"mt-1 text-xs text-primary-foreground/70",children:e("financeOverview.cashGlobalUsd",{date:t.asOf||"—"})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mt-2 flex items-end gap-3",children:[(0,s.jsx)("h1",{className:"font-numeric text-4xl font-bold tabular-nums",children:k(t.totalUsd)}),0!==t.dayChange&&(0,s.jsxs)("span",{className:"mb-1 inline-flex items-center gap-1 rounded-md bg-emerald-400/20 px-2 py-0.5 text-[12px] font-semibold text-emerald-100",children:[(0,s.jsx)(f.A,{className:"h-3.5 w-3.5"})," ",t.dayChange>=0?"+":"",k(t.dayChange)," ",e("financeOverview.cashToday")]})]}),(0,s.jsx)("p",{className:"mt-1 text-xs text-primary-foreground/70",children:e("financeOverview.cashGlobalUsd",{date:t.asOf})})]}),(0,s.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[t.lastRefresh&&"—"!==t.lastRefresh&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-white/15 px-3 py-1 text-xs font-semibold",children:[(0,s.jsx)(g.A,{className:"h-3.5 w-3.5"})," ",e("financeOverview.cashSynced",{when:t.lastRefresh})]}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-white/15 px-3 py-1 text-xs font-semibold",children:[(0,s.jsx)(y.A,{className:"h-3.5 w-3.5"})," ",e("financeOverview.cashAccountsBanks",{accounts:t.accounts,banks:t.banks})]}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-white/15 px-3 py-1 text-xs font-semibold",children:[(0,s.jsx)(j.A,{className:"h-3.5 w-3.5"})," ",e("financeOverview.cashCcy",{count:t.currencies})]}),t.bufferFloor>0&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-emerald-400/20 px-3 py-1 text-xs font-semibold text-emerald-100",children:[(0,s.jsx)(N.A,{className:"h-3.5 w-3.5"})," ",k(t.bufferFloor)]})]}),t.aiInsight&&(0,s.jsxs)("div",{className:"mt-5 rounded-2xl bg-amber-300/15 p-4 ring-1 ring-amber-200/20",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-amber-100",children:[(0,s.jsx)(v.A,{className:"h-3.5 w-3.5"})," ",e("financeOverview.cashAiInsight")]}),(0,s.jsx)("p",{className:"mt-1.5 text-[13px] font-medium leading-snug text-primary-foreground
1/90",children:t.aiInsight})]})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>a(),className:"inline-flex items-center gap-2 rounded-2xl bg-white/15 px-4 py-3 text-sm font-semibold ring-1 ring-white/10 transition hover:bg-white/25",children:[(0,s.jsx)(g.A,{className:"h-4 w-4"})," ",e("financeOverview.cashRefreshNow")]})]})]})}var A=a(6023),C=a(82365),S=a(71692),M=a(5781),E=a(93051);function T(e){return Math.abs(e)>=1e6?"$".concat((e/1e6).toFixed(2),"M"):Math.abs(e)>=1e3?"$".concat((e/1e3).toFixed(0),"K"):"$".concat(e.toLocaleString("en-US"))}let F={Operating:"bg-primary/10 text-primary",MMF:"bg-emerald-50 text-emerald-700"};function O(){var e;let{accounts:t,flows:a,intradayAccount:n}=(0,h.n)(),[l,d]=(0,r.useState)(""),i=l||(null==(e=t[0])?void 0:e.id)||"";return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[(0,s.jsx)(A.A,{className:"h-4 w-4 text-primary"})," Global Cash Position — live bank accounts",(0,s.jsx)("span",{className:"ml-auto rounded-md bg-emerald-50 px-2 py-0.5 text-[10px] font-semibold text-emerald-700",children:"Aurora"})]}),0===t.length?(0,s.jsx)("p",{className:"mt-6 text-center text-sm text-muted-foreground py-8",children:"No bank accounts yet — add treasury accounts to see live cash positions."}):(0,s.jsx)("div",{className:"mt-4 overflow-x-auto",children:(0,s.jsxs)("table",{className:"w-full text-left text-[12px]",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"border-b border-border text-[10px] uppercase tracking-wide text-muted-foreground",children:[(0,s.jsx)("th",{className:"pb-2 pr-3 font-semibold",children:"Bank \xb7 Account"}),(0,s.jsx)("th",{className:"pb-2 pr-3 font-semibold",children:"Type"}),(0,s.jsx)("th",{className:"pb-2 pr-3 text-right font-semibold",children:"Local"}),(0,s.jsx)("th",{className:"pb-2 pr-3 text-right font-semibold",children:"USD-equiv"}),(0,s.jsx)("th",{className:"pb-2 text-right font-semibold",children:"Synced"})]})}),(0,s.jsx)("tbody",{children:t.map(e=>(0,s.jsxs)("tr",{onClick:()=>d(e.id),className:(0,m.cn)("cursor-pointer border-b border-border/60 transition hover:bg-muted/30",i===e.id&&"bg-primary/5"),children:[(0,s.jsxs)("td",{className:"py-2.5 pr-3",children:[(0,s.jsxs)("p",{className:"font-semibold",children:[e.bank," \xb7 ",e.region]}),(0,s.jsx)("p",{className:"text-[10px] text-muted-foreground",children:e.entity})]}),(0,s.jsx)("td",{className:"py-2.5 pr-3",children:(0,s.jsx)("span",{className:(0,m.cn)("rounded-md px-1.5 py-0.5 text-[10px] font-semibold",F[e.type]||F.Operating),children:e.type})}),(0,s.jsxs)("td",{className:"py-2.5 pr-3 text-right font-numeric tabular-nums text-muted-foreground",children:[e.localBalance.toLocaleString("en-US")," ",(0,s.jsx)("span",{className:"text-[10px]",children:e.currency})]}),(0,s.jsx)("td",{className:"py-2.5 pr-3 text-right font-numeric font-bold tabular-nums",children:T(e.usdEquivalent)}),(0,s.jsx)("td",{className:"py-2.5 text-right text-[10px] text-muted-foreground",children:e.lastSync})]},e.id))})]})})]}),0===t.length?null:(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm font-semibold",children:[(0,s.jsx)(C.A,{className:"h-4 w-4 text-primary"})," Intraday Liquidity — ",n.label,(0,s.jsxs)("span",{className:"ml-auto text-[11px] font-medium text-muted-foreground",children:["as of ",n.asOf]})]}),(0,s.jsxs)("div",{className:"mt-4 grid gap-3 sm:grid-cols-3",children:[(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-muted/20 p-3",children:[(0,s.jsxs)("p",{className:"flex items-center gap-1 text-[10px] text-muted-foreground",children:[(0,s.jsx)(S.A,{className:"h-3 w-3"})," Opening balance"]}),(0,s.jsx)("p",{className:"mt-0.5 font-numeric text-xl font-bold tabular-nums",children:T(n.openingBalance)})]}),(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-muted/20 p-3",children:[(0,s.jsx)("p",{className:"text-[10px] text-muted-foreground",children:"Net intraday flow"}),(0,s.jsx)("p",{className:"mt-0.5 font-numeric text-xl font-bold tabular-nums text-rose-600",children:T(n.projectedEod-n.openingBalance)})]}),(0,s.jsxs)("div",{className:"rounded-xl border border-primary/30 bg-primary/5 p-3",children:[(0,s.jsx)("p",{className:"text-[10px] text-primary",children:"Projected EOD balance"}),(0,s.jsx)("p",{className:"mt-0.5 font-numeric text-xl font-bold tabular-nums text-primary",children:T(n.projectedEod)})]})]}),(0,s.jsxs)("div",{className:"mt-4 space-y-1.5",children:[0===a.length&&(0,s.jsx)("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No bank transactions recorded."}),a.map((e,t)=>{var a;return(0,s.jsxs)("div",{className:"flex items-center gap-3 rounded-lg border border-border/60 bg-muted/10 px-3 py-2",children:[(0,s.jsx)("span",{className:"font-numeric w-12 shrink-0 text-[11px] tabular-nums text-muted-foreground",children:e.time}),(0,s.jsx)("span",{className:(0,m.cn)("h-2 w-2 shrink-0 rounded-full","settled"===(a=e.status)?"bg-emerald-500":"pending"===a?"bg-amber-500":"bg-muted-foreground
1/40")}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"truncate text-[12px] font-medium",children:e.desc}),(0,s.jsxs)("p",{className:"text-[10px] text-muted-foreground",children:[e.counterparty," \xb7 ",e.status]})]}),0!==e.amount&&(0,s.jsxs)("span",{className:(0,m.cn)("inline-flex items-center gap-1 font-numeric text-[12px] font-bold tabular-nums",e.amount>0?"text-emerald-600":"text-rose-600"),children:[e.amount>0?(0,s.jsx)(M.A,{className:"h-3.5 w-3.5"}):(0,s.jsx)(E.A,{className:"h-3.5 w-3.5"}),T(e.amount)]})]},t)})]})]})]})}var R=a(64453);let D=(0,R.yA)("cashCenterData.CASH_SUMMARY",{company:"Lumina Cloud Treasury",asOf:"31 May 2026 \xb7 17:12 UTC",totalUsd:4824e4,accounts:14,banks:6,entities:5,currencies:7,lastRefresh:"4 min ago",dayChange:128e4,dayChangePct:2.7,bufferFloor:3e7,bufferStatus:"ok",aiAlert:"Tokyo (JPY) entity projects a −\xa5120M shortfall by Thu on a payroll + consumption-tax overlap. Sweep \xa5180M from Singapore MMF (idle, 0.1% APY) covers it and lifts blended yield +18bps."});(0,R.SS)("cashCenterData.POSITION_ACCOUNTS",[{id:"a1",bank:"JPMorgan",entity:"Lumina US Inc",region:"New York",currency:"USD",localBalance:184e5,usdEquivalent:184e5,apy:4.6,type:"MMF",minBalance:5e6,lastSync:"2 min ago"},{id:"a2",bank:"JPMorgan",entity:"Lumina US Inc",region:"New York",currency:"USD",localBalance:612e4,usdEquivalent:612e4,apy:.1,type:"Operating",minBalance:4e6,lastSync:"2 min ago"},{id:"a3",bank:"Citibank",entity:"Lumina EMEA GmbH",region:"Frankfurt",currency:"EUR",localBalance:785e4,usdEquivalent:8478e3,apy:3.2,type:"Operating",minBalance:3e6,lastSync:"5 min ago"},{id:"a4",bank:"Barclays",entity:"Lumina UK Ltd",region:"London",currency:"GBP",localBalance:264e4,usdEquivalent:3352800,apy:4.1,type:"Operating",minBalance:15e5,lastSync:"6 min ago"},{id:"a5",bank:"DBS",entity:"Lumina APAC Pte",region:"Singapore",currency:"SGD",localBalance:92e5,usdEquivalent:6808e3,apy:.1,type:"MMF",minBalance:2e6,lastSync:"3 min ago"},{id:"a6",bank:"MUFG",entity:"Lumina Japan KK",region:"Tokyo",currency:"JPY",localBalance:31e7,usdEquivalent:1984e3,apy:0,type:"Operating",minBalance:22e5,lastSync:"8 min ago"},{id:"a7",bank:"DBS",entity:"Lumina APAC Pte",region:"Singapore",currency:"USD",localBalance:164e4,usdEquivalent:164e4,apy:4.5,type:"Tax Reserve",minBalance:16e5,lastSync:"3 min ago"},{id:"a8",bank:"Citibank",entity:"Lumina EMEA GmbH",region:"Frankfurt",currency:"USD",localBalance:1458e3,usdEquivalent:1458e3,apy:.1,type:"Payroll",minBalance:14e5,lastSync:"5 min ago"}]),(0,R.yA)("cashCenterData.INTRADAY_ACCOUNT",{id:"a2",label:"JPMorgan \xb7 Operating \xb7 USD \xb7 Lumina US Inc",openingBalance:612e4,projectedEod:4905e3,asOf:"17:12 UTC"}),(0,R.SS)("cashCenterData.INTRADAY_FLOWS",[{time:"08:14",desc:"ACH receipt — SaaS invoice INV-44182",counterparty:"Hapag-Lloyd AG",amount:412e3,status:"settled"},{time:"09:02",desc:"Wire receipt — annual prepay",counterparty:"BMW Group",amount:88e4,status:"settled"},{time:"10:30",desc:"Card settlement batch",counterparty:"Stripe",amount:96400,status:"settled"},{time:"11:45",desc:"Vendor ACH — cloud infra",counterparty:"AWS",amount:-742e3,status:"settled"},{time:"14:00",desc:"Payroll funding (US)",counterparty:"Lumina Payroll",amount:-164e4,status:"pending"},{time:"15:30",desc:"Tax estimate Q2",counterparty:"IRS EFTPS",amount:-52e4,status:"pending"},{time:"16:00",desc:"Vendor wire — legal",counterparty:"Wilson Sonsini",amount:-84e3,status:"pending"},{time:"EOD",desc:"Sweep to MMF (rule R-2)",counterparty:"JPMorgan MMF",amount:0,status:"scheduled"}]);let B=(0,R.SS)("cashCenterData.FORECAST",(()=>{let e=48.24,t=[];for(let a=1;a<=13;a++){let s=4.2+1.4*Math.sin(a/2)+.6*(a>8),r=50*(6===a),n=s+r+.4,l=3.3*(a%2==0),d=2.1+.8*Math.cos(a/3),i=4===a||13===a?2.6:.2,c=3===a||9===a?1.8:.3,o=l+d+i+c;e=e+n-o,t.push({week:"W".concat(a),receipts:+n.toFixed(1),ar:+s.toFixed(1),financing:r,disbursements:+o.toFixed(1),ap:+d.toFixed(1),payroll:+l.toFixed(1),tax:+i.toFixed(1),capex:+c.toFixed(1),ending:+e.toFixed(1)})}return t})()),P=(0,R.SS)("cashCenterData.BACKTEST_ROWS",[{category:"AR / Collections",mape:6.2,trend:"down",status:"good"},{category:"AP / Vendor",mape:4.1,trend:"flat",status:"good"},{category:"Payroll",mape:.8,trend:"flat",status:"good"},{category:"Tax",mape:9.4,trend:"up",status:"warn"},{category:"Capex",mape:21.6,trend:"up",status:"bad"}]),U=(0,R.SS)("cashCenterData.BACKTEST_ACCURACY",[{horizon:"Week 4",forecast:87,target:85},{horizon:"Week 8",forecast:81,target:78},{horizon:"Week 13",forecast:76,target:75}]),$=(0,R.SS)("cashCenterData.SWEEP_RECS",[{id:"s1",from:"Singapore DBS MMF (0.1%)",to:"Tokyo MUFG Operating",amount:118e4,yieldGain:"+covers payroll",note:"Funds Thu payroll + consumption-tax; avoids \xa5120M overdraft.",respectsMin:!0},{id:"s2",from:"US Operating (0.1%)",to:"US JPMorgan MMF (4.6%)",amount:21e5,yieldGain:"+$8.1K/mo",note:"Excess above $4M min operating buffer earns 4.6% APY.",respectsMin:!0},{id:"s3",from:"Frankfurt EUR idle",to:"EUR overnight deposit (3.2%)",amount:44e5,yieldGain:"+$11.7K/mo",note:"EUR cash sitting at 0.1%; hedged sweep to term deposit.",respectsMin:!0}]),L=(0,R.SS)("cashCenterData.SWEEP_RULES",[{id:"R-1",rule:"Any USD account > $10M → sweep excess to JPMorgan MMF",scope:"All US entities",status:"active",approver:"Auto \xb7 CFO pre-approved",lastRun:"Today 16:00"},{id:"R-2",rule:"EOD operating buffer = 1.5\xd7 next-day disbursements",scope:"US \xb7 EMEA Operating",status:"active",approver:"Auto",lastRun:"Today 16:00"},{id:"R-3",rule:"EUR idle >
1 €3M → overnight term deposit (hedged)",scope:"Lumina EMEA GmbH",status:"pending-approval",approver:"Awaiting CFO ack",lastRun:"—"},{id:"R-4",rule:"Concentrate APAC cash to SG MMF weekly",scope:"APAC + Japan",status:"paused",approver:"Treasurer \xb7 A. Rou",lastRun:"23 May"}]),I=(0,R.SS)("cashCenterData.CASH_ALERTS",[{id:"al1",severity:"critical",title:"Tokyo projected negative balance",detail:"JPY operating account projects −\xa5120M by Thu 14:00 (payroll + tax overlap). Sweep R-1 available.",channel:["Slack","SMS","Email"],ack:!1},{id:"al2",severity:"high",title:"Large outflow requires CFO ack",detail:"Wire $1.6M to Acme Datacenters (capex) scheduled W3. Exceeds $1M single-outflow policy.",channel:["Slack","Email"],ack:!1},{id:"al3",severity:"info",title:"Singapore buffer above target",detail:"SGD MMF idle at 0.1% — $6.8M earning sub-market yield. Concentration sweep recommended.",channel:["Email"],ack:!0}]),W=(0,R.SS)("cashCenterData.SCENARIO_OVERLAYS",[{id:"sc1",label:"Customer Hapag pays 30 days late",impact:"−$1.4M @ W2",weekImpact:-1.4,tone:"bad",note:"Pushes W2 receipts to W6; min buffer holds but trims headroom to $2.1M."},{id:"sc2",label:"Draw $50M revolver at W6",impact:"+$50M @ W6",weekImpact:50,tone:"good",note:"Already in base case W6 financing; removing it drops W13 ending to −$3.2M (breach)."},{id:"sc3",label:"Delay $1.8M capex to W11",impact:"+$1.8M @ W9",weekImpact:1.8,tone:"good",note:"Smooths W9 trough from $44.1M to $45.9M; no covenant impact."},{id:"sc4",label:"FX: EUR/USD −5%",impact:"−$0.6M USD-equiv",weekImpact:-.6,tone:"warn",note:"EUR receivables revalue down; hedge ratio 60% limits exposure."}]),q=(0,R.SS)("cashCenterData.BANK_FEES",[{bank:"JPMorgan",monthlyFee:4200,perTxn:.42,txns:6840,idleOpportunity:0,note:"Tiered — renegotiate at $20M balance tier."},{bank:"Citibank",monthlyFee:3100,perTxn:.55,txns:2910,idleOpportunity:1240,note:"Per-txn 31% above market; consolidate EUR flows."},{bank:"Barclays",monthlyFee:1800,perTxn:.61,txns:980,idleOpportunity:0,note:"Low volume — candidate for closure."},{bank:"DBS",monthlyFee:2400,perTxn:.38,txns:3420,idleOpportunity:9280,note:"$6.8M idle at 0.1% — $9.3K/mo opportunity cost."},{bank:"MUFG",monthlyFee:2900,perTxn:.71,txns:1140,idleOpportunity:0,note:"Highest per-txn; FX margin embedded."}]),H=(0,R.yA)("cashCenterData.FEE_TOTAL",{monthly:14400,perTxnAvg:.49,idleAnnual:126240,negotiationTarget:"−$38K/yr"}),G=(0,R.SS)("cashCenterData.MOBILE_APPROVALS",[{id:"m1",desc:"Sweep R-3 — EUR term deposit",amount:44e5,account:"Citibank EUR",requestedBy:"Treasury Ops"},{id:"m2",desc:"Capex wire — Acme Datacenters",amount:16e5,account:"JPMorgan USD",requestedBy:"A. Rou"},{id:"m3",desc:"Tokyo emergency sweep R-1",amount:118e4,account:"DBS SGD → MUFG",requestedBy:"AI Autopilot"}]);var _=a(60719),K=a(59132),z=a(81831),J=a(38767);function V(){if(!B.length)return(0,s.jsx)("p",{className:"text-sm text-muted-foreground text-center py-10",children:"13-week forecast appears when treasury cash flows are available."});let e=B.map(e=>e.ending),t=Math.min(...e,28),a=Math.max(...e),r=Math.max(B.length-1,1),n=Math.max(a-t,1),l=B.map((e,a)=>"".concat(a/r*100,",").concat(150-(e.ending-t)/n*150)).join(" "),d=150-(30-t)/n*150;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("svg",{viewBox:"0 0 ".concat(100," ").concat(150),preserveAspectRatio:"none",className:"h-40 w-full",children:[(0,s.jsx)("line",{x1:"0",y1:d,x2:100,y2:d,className:"stroke-rose-300",strokeDasharray:"2",strokeWidth:.5,vectorEffect:"non-scaling-stroke"}),(0,s.jsx)("polyline",{points:l,fill:"none",strokeWidth:2,className:"stroke-primary",vectorEffect:"non-scaling-stroke"})]}),(0,s.jsxs)("div",{className:"mt-1 flex items-center justify-between text-[10px] text-muted-foreground",children:[(0,s.jsx)("span",{children:"W1"}),(0,s.jsx)("span",{className:"text-rose-500",children:"— $30M buffer floor"}),(0,s.jsx)("span",{children:"W13"})]})]})}function Y(){return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[(0,s.jsx)(_.A,{className:"h-4 w-4 text-primary"}
1)," 13-Week Rolling Cash Forecast — ending balance"]}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(V,{})})]}),(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5",children:[(0,s.jsx)("div",{className:"text-sm font-semibold",children:"Weekly buckets — receipts vs disbursements ($M)"}),(0,s.jsx)("div",{className:"mt-4 overflow-x-auto",children:(0,s.jsxs)("table",{className:"w-full text-left text-[12px]",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"border-b border-border text-[10px] uppercase tracking-wide text-muted-foreground",children:[(0,s.jsx)("th",{className:"pb-2 pr-2 font-semibold",children:"Wk"}),(0,s.jsx)("th",{className:"pb-2 pr-2 text-right font-semibold",children:"Receipts"}),(0,s.jsx)("th",{className:"pb-2 pr-2 text-right font-semibold",children:"AP"}),(0,s.jsx)("th",{className:"pb-2 pr-2 text-right font-semibold",children:"Payroll"}),(0,s.jsx)("th",{className:"pb-2 pr-2 text-right font-semibold",children:"Tax"}),(0,s.jsx)("th",{className:"pb-2 pr-2 text-right font-semibold",children:"Capex"}),(0,s.jsx)("th",{className:"pb-2 text-right font-semibold",children:"Ending"})]})}),(0,s.jsx)("tbody",{children:B.map(e=>(0,s.jsxs)("tr",{className:"border-b border-border/60",children:[(0,s.jsxs)("td",{className:"py-2 pr-2 font-semibold",children:[e.week,e.financing>0&&(0,s.jsxs)("span",{className:"ml-1 rounded bg-emerald-50 px-1 text-[9px] font-semibold text-emerald-700",children:["+$",e.financing,"M revolver"]})]}),(0,s.jsxs)("td",{className:"py-2 pr-2 text-right font-numeric tabular-nums text-emerald-600",children:["+",e.receipts]}),(0,s.jsxs)("td",{className:"py-2 pr-2 text-right font-numeric tabular-nums text-muted-foreground",children:["−",e.ap]}),(0,s.jsx)("td",{className:"py-2 pr-2 text-right font-numeric tabular-nums text-muted-foreground",children:e.payroll>0?"−".concat(e.payroll):"—"}),(0,s.jsxs)("td",{className:"py-2 pr-2 text-right font-numeric tabular-nums text-muted-foreground",children:["−",e.tax]}),(0,s.jsxs)("td",{className:"py-2 pr-2 text-right font-numeric tabular-nums text-muted-foreground",children:["−",e.capex]}),(0,s.jsxs)("td",{className:(0,m.cn)("py-2 text-right font-numeric font-bold tabular-nums",e.ending<30?"text-rose-600":"text-foreground"),children:["$",e.ending,"M"]})]},e.week))})]})})]}),(0,s.jsxs)("div",{className:"grid gap-4 lg:grid-cols-2",children:[(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[(0,s.jsx)(K.A,{className:"h-4 w-4 text-primary"})," Forecast Accuracy Backtest"]}),(0,s.jsx)("div",{className:"mt-4 space-y-3",children:U.map(e=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex items-center justify-between text-[12px]",children:[(0,s.jsxs)("span",{className:"font-medium",children:[e.horizon," horizon"]}),(0,s.jsxs)("span",{className:"font-numeric font-bold tabular-nums",children:[e.forecast,"% ",(0,s.jsxs)("span",{className:"text-[10px] font-normal text-muted-foreground",children:["vs ",e.target,"% target"]})]})]}),(0,s.jsx)("div",{className:"mt-1 h-2 overflow-hidden rounded-full bg-muted",children:(0,s.jsx)("div",{className:(0,m.cn)("h-full rounded-full",e.forecast>=e.target?"bg-emerald-500":"bg-amber-500"),style:{width:"".concat(e.forecast,"%")}})})]},e.horizon))}),(0,s.jsxs)("p",{className:"mt-3 flex items-start gap-1 rounded-md bg-emerald-50 px-2 py-1.5 text-[11px] font-medium text-emerald-700",children:[(0,s.jsx)(v.A,{className:"mt-px h-3 w-3 shrink-0"})," All horizons beat target. Week-4 accuracy 87% vs \xb120% manual baseline."]})]}),(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5",children:[(0,s.jsx)("div",{className:"text-sm font-semibold",children:"MAPE per category + drift alerts"}),(0,s.jsx)("div",{className:"mt-4 space-y-2",children:P.map(e=>{let t="up"===e.trend?f.A:"down"===e.trend?z.A:J.A;return(0,s.jsxs)("div",{className:"flex items-center gap-3 rounded-lg border border-border/60 bg-muted/10 px-3 py-2",children:[(0,s.jsx)("span",{className:(0,m.cn)("h-2 w-2 rounded-full","good"===e.status?"bg-emerald-500":"warn"===e.status?"bg-amber-500":"bg-rose-500")}),(0,s.jsx)("span",{className:"flex-1 text-[12px] font-medium",children:e.category}),(0,s.jsx)(t,{className:(0,m.cn)("h-3.5 w-3.5","good"===e.status?"text-emerald-500":"warn"===e.status?"text-amber-500":"text-rose-500")}),(0,s.jsxs)("span",{className:"font-numeric text-[12px] font-bold tabular-nums",children:[e.mape,"% MAPE"]}
1)]},e.category)})}),(0,s.jsxs)("p",{className:"mt-3 flex items-start gap-1 rounded-md bg-rose-50 px-2 py-1.5 text-[11px] font-medium text-rose-700",children:[(0,s.jsx)(f.A,{className:"mt-px h-3 w-3 shrink-0"})," Drift alert: Capex MAPE 21.6% (degraded +6pp) — model retraining queued."]})]})]})]})}var X=a(64120),Q=a(62194),Z=a(56100),ee=a(89023),et=a(9813),ea=a(48230),es=a.n(ea);let er={active:{cls:"bg-emerald-50 text-emerald-700",icon:X.A,label:"Active"},paused:{cls:"bg-muted text-muted-foreground",icon:Q.A,label:"Paused"},"pending-approval":{cls:"bg-amber-50 text-amber-700",icon:Z.A,label:"Pending approval"}};function en(){return $.length||L.length?(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[(0,s.jsx)(v.A,{className:"h-4 w-4 text-primary"})," AI Cash Concentration Recommendations",$.length>0&&(0,s.jsxs)("span",{className:"ml-auto rounded-md bg-emerald-50 px-2 py-0.5 text-[10px] font-semibold text-emerald-700",children:[$.length," recommendation",1===$.length?"":"s"]})]}),(0,s.jsx)("div",{className:"mt-4 space-y-3",children:0===$.length?(0,s.jsx)("p",{className:"text-sm text-muted-foreground py-6 text-center",children:"No AI sweep recommendations for the current position."}):$.map(e=>{var t;return(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-muted/10 p-4",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-[13px] font-semibold",children:[(0,s.jsx)("span",{className:"text-muted-foreground",children:e.from}),(0,s.jsx)(et.A,{className:"h-3.5 w-3.5 text-primary"}),(0,s.jsx)("span",{children:e.to}),(0,s.jsx)("span",{className:"ml-auto font-numeric tabular-nums text-primary",children:Math.abs(t=e.amount)>=1e6?"$".concat((t/1e6).toFixed(2),"M"):Math.abs(t)>=1e3?"$".concat((t/1e3).toFixed(0),"K"):"$".concat(t)})]}),(0,s.jsx)("p",{className:"mt-1.5 text-[12px] text-muted-foreground",children:e.note}),(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-3",children:[(0,s.jsx)("span",{className:"inline-flex items-center gap-1 rounded-md bg-emerald-50 px-2 py-0.5 text-[11px] font-semibold text-emerald-700",children:e.yieldGain}),e.respectsMin&&(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] font-medium text-muted-foreground",children:[(0,s.jsx)(N.A,{className:"h-3.5 w-3.5 text-emerald-500"})," Respects entity min operating balance"]}),(0,s.jsx)("button",{className:"ml-auto rounded-lg bg-primary px-3 py-1.5 text-[11px] font-semibold text-primary-foreground transition hover:bg-primary/90",children:"Execute sweep"})]})]},e.id)})})]}),(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[(0,s.jsx)(et.A,{className:"h-4 w-4 text-primary"})," Sweep Automation Rules",(0,s.jsx)("span",{className:"ml-auto text-[11px] font-medium text-muted-foreground",children:"Approval workflow + audit trail"})]}),(0,s.jsx)("div",{className:"mt-4 space-y-2.5",children:0===L.length?(0,s.jsx)("p",{className:"text-sm text-muted-foreground py-6 text-center",children:"No sweep rules configured yet."}):L.map(e=>{let t=er[e.status];return(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-3 rounded-xl border border-border/70 bg-muted/10 p-3",children:[(0,s.jsx)("span",{className:"font-numeric rounded-md bg-primary/10 px-2 py-1 text-[11px] font-bold text-primary",children:e.id}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-[12px] font-semibold",children:e.rule}),(0,s.jsxs)("p",{className:"text-[10px] text-muted-foreground",children:[e.scope," \xb7 ",e.approver," \xb7 last run ",e.lastRun]})]}),(0,s.jsxs)("span",{className:(0,m.cn)("inline-flex items-center gap-1 rounded-md px-2 py-0.5 text-[10px] font-semibold",t.cls),children:[(0,s.jsx)(t.icon,{className:"h-3 w-3"})," ",t.label]})]},e.id)})}),(0,s.jsx)("button",{className:"mt-3 w-full rounded-xl border border-dashed border-primary/40 py-2 text-[12px] font-semibold text-primary transition hover:bg-primary/5",children:"+ New sweep rule (routes to approval)"})]})]}):(0,s.jsxs)("div",{className:"rounded-2xl border border-dashed border-border bg-muted/20 px-6 py-12 text-center",children:[(0,s.jsx)("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-2xl bg-primary/10 text-primary",children:(0,s.jsx)(ee.A,{className:"h-6 w-6"})}),(0,s.jsx)("p",{className:"text-sm font-semibold text-foreground",children:"No sweep recommendations yet"}),(0,s.jsx)("p",{className:"mt-2 text-xs text-muted-foreground max-w-md mx-auto leading-relaxed",children:"Cash concentration rules and AI sweep suggestions appear after bank accounts and idle balances are connected."}),(0,s.jsx)(es(),{href:"/finance/cash",className:"mt-4 inline-flex h-9 items-center justify-center rounded-xl bg-primary px-4 text-xs font-semibold text-primary-foreground hover:bg-primary/90",children:"Review cash position"})]})}var el=a(75609),ed=a(18050),ei=a(55053),ec=a(12531),eo=a(43836),em=a(78170),ex=a(43544),ep=a(55755),eu=a(24140);let eh={critical:{cls:"border-rose-300 bg-rose-50",icon:el.A},high:{cls:"border-amber-300 bg-amber-50",icon:ed.A}
1,info:{cls:"border-border bg-muted/20",icon:ei.A}},eb={Slack:ec.A,SMS:eo.A,Email:em.A};function ef(){let[e,t]=(0,r.useState)([]),a=W.filter(t=>e.includes(t.id)).reduce((e,t)=>e+t.weekImpact,0);return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[(0,s.jsx)(ex.A,{className:"h-4 w-4 text-primary"})," Threshold Alerts",(0,s.jsx)("span",{className:"ml-auto text-[11px] font-medium text-muted-foreground",children:"push to Slack \xb7 SMS \xb7 email"})]}),(0,s.jsx)("div",{className:"mt-4 space-y-3",children:I.length?I.map(e=>{let t=eh[e.severity];return(0,s.jsx)("div",{className:(0,m.cn)("rounded-xl border p-4",t.cls),children:(0,s.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,s.jsx)(t.icon,{className:(0,m.cn)("mt-0.5 h-4 w-4 shrink-0","critical"===e.severity?"text-rose-600":"high"===e.severity?"text-amber-600":"text-muted-foreground")}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-[13px] font-semibold",children:e.title}),(0,s.jsx)("p",{className:"mt-0.5 text-[12px] text-muted-foreground",children:e.detail}),(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[e.channel.map(e=>{var t;let a=null!=(t=eb[e])?t:ex.A;return(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-md bg-card px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground ring-1 ring-border",children:[(0,s.jsx)(a,{className:"h-3 w-3"})," ",e]},e)}),e.ack?(0,s.jsxs)("span",{className:"ml-auto inline-flex items-center gap-1 text-[11px] font-semibold text-emerald-600",children:[(0,s.jsx)(ep.A,{className:"h-3.5 w-3.5"})," Acknowledged"]}):(0,s.jsx)("button",{className:"ml-auto rounded-lg bg-foreground px-3 py-1 text-[11px] font-semibold text-background",children:"CFO acknowledge"})]})]})]})},e.id)}):(0,s.jsx)("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No treasury alerts. Threshold alerts appear when cash positions are monitored."})})]}),(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[(0,s.jsx)(eu.A,{className:"h-4 w-4 text-primary"})," Scenario Overlay — stress test the 13-week forecast"]}),(0,s.jsx)("div",{className:"mt-4 grid gap-2.5 sm:grid-cols-2",children:W.map(a=>(0,s.jsxs)("button",{onClick:()=>{let e;return e=a.id,t(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},className:(0,m.cn)("rounded-xl border p-3 text-left transition",e.includes(a.id)?"border-primary bg-primary/5 ring-1 ring-primary":"border-border bg-muted/10 hover:border-primary/40"),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-[12px] font-semibold",children:a.label}),(0,s.jsx)("span",{className:(0,m.cn)("font-numeric text-[11px] font-bold tabular-nums","good"===a.tone?"text-emerald-600":"bad"===a.tone?"text-rose-600":"text-amber-600"),children:a.impact})]}),(0,s.jsx)("p",{className:"mt-1 text-[11px] text-muted-foreground",children:a.note})]},a.id))}),(0,s.jsxs)("div",{className:"mt-4 flex items-center gap-3 rounded-xl border border-primary/30 bg-primary/5 p-4",children:[(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("p",{className:"text-[11px] text-muted-foreground",children:"Combined net impact on W13 ending cash"}),(0,s.jsxs)("p",{className:(0,m.cn)("font-numeric text-2xl font-bold tabular-nums",a<0?"text-rose-600":a>0?"text-emerald-600":"text-foreground"),children:[a>=0?"+":"","$",a.toFixed(1),"M"]})]}),(0,s.jsx)("p",{className:"max-w-[55%] text-[11px] font-medium text-muted-foreground",children:0===e.length?"Select scenarios to stress test against the base forecast.":a<-2?"⚠ Combined stress breaches the $30M buffer floor — pre-arrange revolver headroom.":"Buffer floor holds under selected stress. Headroom adequate."})]})]})]})}var eg=a(59547),ey=a(42405),ej=a(38898);
1function eN(e){return"$".concat(e.toLocaleString("en-US"))}function ev(){if(!q.length)return(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-8 text-center",children:[(0,s.jsx)(eg.A,{className:"mx-auto h-8 w-8 text-muted-foreground/50"}),(0,s.jsx)("p",{className:"mt-3 text-sm font-semibold text-foreground",children:"No bank fee data yet"}),(0,s.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:"Fee analytics appear when bank accounts and transaction feeds are connected."})]});let e=Math.max(...q.map(e=>e.monthlyFee),1);return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("div",{className:"grid gap-3 sm:grid-cols-4",children:[{icon:eg.A,label:"Total monthly fees",value:eN(Number(H.monthly)||0),tone:"text-foreground"},{icon:ey.A,label:"Avg cost / transaction",value:"$".concat(H.perTxnAvg),tone:"text-foreground"},{icon:z.A,label:"Idle opportunity cost / yr",value:eN(Number(H.idleAnnual)||0),tone:"text-rose-600"},{icon:ej.A,label:"Negotiation target",value:String(H.negotiationTarget||"—"),tone:"text-emerald-600"}].map(e=>(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-4",children:[(0,s.jsx)(e.icon,{className:"h-4 w-4 text-primary"}),(0,s.jsx)("p",{className:"mt-2 text-[10px] text-muted-foreground",children:e.label}),(0,s.jsx)("p",{className:(0,m.cn)("font-numeric mt-0.5 text-xl font-bold tabular-nums",e.tone),children:e.value})]},e.label))}),(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[(0,s.jsx)(eg.A,{className:"h-4 w-4 text-primary"})," Bank Fee Analytics — negotiation prep"]}),(0,s.jsx)("div",{className:"mt-4 overflow-x-auto",children:(0,s.jsxs)("table",{className:"w-full text-left text-[12px]",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"border-b border-border text-[10px] uppercase tracking-wide text-muted-foreground",children:[(0,s.jsx)("th",{className:"pb-2 pr-3 font-semibold",children:"Bank"}),(0,s.jsx)("th",{className:"pb-2 pr-3 text-right font-semibold",children:"Monthly fee"}),(0,s.jsx)("th",{className:"pb-2 pr-3 text-right font-semibold",children:"Per-txn"}),(0,s.jsx)("th",{className:"pb-2 pr-3 text-right font-semibold",children:"Txns/mo"}),(0,s.jsx)("th",{className:"pb-2 pr-3 text-right font-semibold",children:"Idle cost/mo"}),(0,s.jsx)("th",{className:"pb-2 font-semibold",children:"Prep note"})]})}),(0,s.jsx)("tbody",{children:q.map(t=>(0,s.jsxs)("tr",{className:"border-b border-border/60 align-top",children:[(0,s.jsx)("td",{className:"py-2.5 pr-3 font-semibold",children:t.bank}),(0,s.jsxs)("td",{className:"py-2.5 pr-3 text-right",children:[(0,s.jsx)("span",{className:"font-numeric tabular-nums font-bold",children:eN(t.monthlyFee)}),(0,s.jsx)("div",{className:"ml-auto mt-1 h-1 w-16 overflow-hidden rounded-full bg-muted",children:(0,s.jsx)("div",{className:"h-full rounded-full bg-primary/60",style:{width:"".concat(t.monthlyFee/e*100,"%")}})})]}),(0,s.jsxs)("td",{className:"py-2.5 pr-3 text-right font-numeric tabular-nums",children:["$",t.perTxn.toFixed(2)]}),(0,s.jsx)("td",{className:"py-2.5 pr-3 text-right font-numeric tabular-nums text-muted-foreground",children:t.txns.toLocaleString("en-US")}),(0,s.jsx)("td",{className:(0,m.cn)("py-2.5 pr-3 text-right font-numeric tabular-nums font-semibold",t.idleOpportunity>0?"text-rose-600":"text-muted-foreground"),children:t.idleOpportunity>0?eN(t.idleOpportunity):"—"}),(0,s.jsx)("td",{className:"py-2.5 text-[11px] text-muted-foreground",children:t.note})]},t.bank))})]})})]})]})}var ek=a(41323),ew=a(12759),eA=a(33830);function eC(e){return Math.abs(e)>=1e6?"$".concat((e/1e6).toFixed(2),"M"):Math.abs(e)>=1e3?"$".concat((e/1e3).toFixed(0),"K"):"$".concat(e)}function eS(){return(0,s.jsxs)("div",{className:"grid gap-4 lg:grid-cols-[320px_1fr]",children:[(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsxs)("div",{className:"w-[300px] overflow-hidden rounded-[2.5rem] border-[6px] border-foreground bg-background shadow-2xl",children:[(0,s.jsxs)("div",{className:"bg-primary px-5 pb-5 pt-7 text-primary-foreground",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between text-[10px] opacity-80",children:[(0,s.jsx)("span",{children:"CFO Treasury"}),(0,s.jsx)(ex.A,{className:"h-3.5 w-3.5"})]}),(0,s.jsx)("p",{className:"mt-3 text-[11px] opacity-80",children:"Global cash \xb7 USD-equiv"}),(0,s.jsx)("p",{className:"font-numeric text-3xl font-bold tabular-nums",children:eC(D.totalUsd)}),(0,s.jsxs)("p",{className:"mt-1 text-[10px] opacity-80",children:["+",eC(D.dayChange)," today \xb7 synced ",D.lastRefresh]})]}),(0,s.jsxs)("div",{className:"space-y-3 p-4",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 rounded-xl bg-muted/40 p-2.5 text-[11px] font-medium",children:[(0,s.jsx)(ek.A,{className:"h-4 w-4 text-primary"})," Face ID verified \xb7 biometric session"]}),(0,s.jsx)("p",{className:"text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:"Pending approvals"}),G.length?G.map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-card p-3",children:[(0,s.jsx)("p",{className:"text-[12px] font-semibold",children:e.desc}),(0,s.jsxs)("p",{className:"text-[10px] text-muted-foreground",children:[e.account," \xb7 ",e.requestedBy]}),(0,s.jsx)("p",{className:"font-numeric mt-1 text-lg font-bold tabular-nums text-primary",children:eC(e.amount)}),(0,s.jsxs)("div",{className:"mt-2 flex gap-2",children:[(0,s.jsxs)("button",{className:"flex flex-1 items-center justify-center gap-1 rounded-lg bg-emerald-500 py-1.5 text-[11px] font-semibold text-white",children:[(0,s.jsx)(ep.A,{className:"h-3.5 w-3.5"})," Approve"]}),(0,s.jsxs)("button",{className:"flex flex-1 items-center justify-center gap-1 rounded-lg bg-muted py-1.5 text-[11px] font-semibold text-muted-foreground",children:[(0,s.jsx)(ew.A,{className:"h-3.5 w-3.5"})," Decline"]})]})]},e.id)):(0,s.jsx)("p",{className:"text-[11px] text-muted-foreground text-center py-4",children:"No pending approvals."})]})]})}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold",children:[(0,s.jsx)(eA.A,{className:"h-4 w-4 text-primary"})," CFO Mobile Dashboard"]}),(0,s.jsx)("p",{className:"mt-2 text-[12px] text-muted-foreground",children:"Synced with Finance mobile (task-304). The CFO gets push-on-breach, taps in with biometric auth, and approves large transfers from anywhere — no VPN, no laptop."}),(0,s.jsx)("div",{className:"mt-4 grid gap-3 sm:grid-cols-3",children:[{icon:ek.A,t:"Biometric auth",d:"Face ID / fingerprint 
1+ step-up for >$1M transfers"},{icon:ex.A,t:"Push on breach",d:"Buffer breach, negative projection, large outflow alerts"},{icon:N.A,t:"Quick approve",d:"Sweeps & wires with full audit trail + reason capture"}].map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-border bg-muted/10 p-3",children:[(0,s.jsx)(e.icon,{className:"h-4 w-4 text-primary"}),(0,s.jsx)("p",{className:"mt-1.5 text-[12px] font-semibold",children:e.t}),(0,s.jsx)("p",{className:"mt-0.5 text-[10px] text-muted-foreground",children:e.d})]},e.t))})]}),(0,s.jsxs)("div",{className:"rounded-2xl border border-emerald-200 bg-emerald-50 p-5",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-emerald-800",children:"Outcome metrics"}),(0,s.jsx)("div",{className:"mt-3 grid gap-3 sm:grid-cols-3",children:[{v:"<15 min",l:"Position lag (vs EOD manual)"},{v:"90%+",l:"Manual reporting hours cut"},{v:"0",l:"Unplanned overdrafts YTD"}].map(e=>(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-numeric text-2xl font-bold tabular-nums text-emerald-700",children:e.v}),(0,s.jsx)("p",{className:"text-[11px] text-emerald-700/80",children:e.l})]},e.l))})]})]})]})}var eM=a(29395),eE=a(54216),eT=a(71820),eF=a(14041),eO=a(47282),eR=a(13218);let eD=e=>"".concat(n.tg).concat(e.toLocaleString("en-US",{minimumFractionDigits:2}));function eB(){let{t:e}=(0,x.Bd)(),[t,a]=(0,r.useState)(""),[n,l]=(0,r.useState)(3),[d,i]=(0,r.useState)("matched"),[c,o]=(0,r.useState)({}),[p,u]=(0,r.useState)(null),h=(0,r.useRef)(null),{accounts:b,transactions:f,preview:y,loading:j,busy:N,error:v,reload:k,reconcile:w,importCsv:A,runAutoMatch:C,confirmMatches:S,clearPreview:M}=function(e){var t;let{effectiveTenant:a,currentBranch:s}=(0,eM.M)(),n=null==a?void 0:a.id,l=null!=(t=null==s?void 0:s.id)?t:null,[d,i]=(0,r.useState)([]),[c,o]=(0,r.useState)([]),[m,x]=(0,r.useState)(null),[p,u]=(0,r.useState)(!0),[h,b]=(0,r.useState)(!1),[f,g]=(0,r.useState)(null),[y,j]=(0,r.useState)("aws"),N=(0,r.useCallback)(async()=>{u(!0),g(null);let[t,a]=await Promise.all([(0,eE.Dz)(n,l),(0,eE.GM)(n,e)]);i(t.data),o(a.data),j(a.source),u(!1)},[n,l,e]);(0,r.useEffect)(()=>{N()},[N]);let v=(0,r.useCallback)(async e=>{let t=await (0,eE.Jj)(e,n);return t?(o(a=>a.map(a=>a.id===e.transactionId?t:a)),!0):(g("Could not reconcile transaction"),await N(),!1)},[n,N]),k=(0,r.useCallback)(async t=>{if(!e)return g("Select a bank account first"),null;b(!0),g(null);let a=await (0,eE.Xh)({bankAccountId:e,csv:t},n);return(b(!1),a)?(await N(),a):(g("Import failed"),null)},[e,n,N]),w=(0,r.useCallback)(async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(!e)return g("Select a bank account first"),null;b(!0),g(null);let a=await (0,eE.sU)({bankAccountId:e,dateToleranceDays:t,branchId:l},n);return(b(!1),a)?(x(a),a):(g("Auto-match failed"),x(null),null)},[e,l,n]),A=(0,r.useCallback)(async t=>{if(!e)return!1;b(!0),g(null);let a=await (0,eE.k2)({bankAccountId:e,matches:t,branchId:l},n);return(b(!1),a)?(x(null),await N(),!0):(g("Confirm failed"),!1)},[e,l,n,N]);return{accounts:d,transactions:c,preview:m,loading:p,busy:h,error:f,source:y,reload:N,reconcile:v,importCsv:k,runAutoMatch:w,confirmMatches:A,clearPreview:()=>x(null)}}(t||void 0),[E,T]=(0,r.useState)(null),[F,O]=(0,r.useState)({}),[R,D]=(0,r.useState)({}),B=b.find(e=>e.id===t),P=(0,r.useMemo)(()=>y?y.matched.filter(e=>!1!==c[e.bankTxn.id]):[],[y,c]);async function U(e){let t=F[e],a=R[e]||"invoice";t&&(T(e),await w({transactionId:e,matchedType:a,matchedRef:t}),T(null))}async function $(t){let a=await t.text(),s=await A(a);s&&(u(e("financeCash.importResult",{imported:String(s.imported),skipped:String(s.skipped)})),M())}async function L(){let e=await C(n);if(e){let t={};for(let a of e.matched)t[a.bankTxn.id]=!0;o(t),i("matched")}}async function I(){P.length&&(await S(P.map(e=>({transactionId:e.bankTxn.id,matchedType:e.bookEntry.type,matchedRef:e.bookEntry.id}))),o({}))}return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-bold",children:e("financeCash.autoReconTitle")}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1 max-w-xl",children:e("financeCash.autoReconDesc")})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>k(),className:"inline-flex items-center gap-1.5 rounded-xl border border-border bg-card px-3 py-2 text-xs font-semibold hover:bg-muted transition",children:[(0,s.jsx)(g.A,{className:(0,m.cn)("h-3.5 w-3.5",j&&"animate-spin")}),e("financeCash.refresh")]})]}),(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card p-4 space-y-3",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-end gap-3",children:[(0,s.jsxs)("label",{className:"flex flex-col gap-1 min-w-[220px] flex-1",children:[(0,s.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:e("financeCash.selectBank")}),(0,s.jsxs)("select",{value:t,onChange:e=>{a(e.target.value),M(),u(null)},className:"rounded-xl border border-border bg-muted/20 px-3 py-2 text-sm",children:[(0,s.jsx)("option",{value:"",children:e("financeCash.selectBankPlaceholder")}),b.map(e=>(0,s.jsxs)("option",{value:e.id,children:[e.bankName,e.accountNumber?" \xb7 ".concat(e.accountNumber):"",e.accountName?" — ".concat(e.accountName):""]},e.id))]})]}),(0,s.jsxs)("label",{className:"flex flex-col gap-1 w-28",children:[(0,s.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:e("financeCash.dateTolerance")}),(0,s.jsx)("input",{type:"number",min:0,max:30,value:n,onChange:e=>l(Number(e.target.value)||0),className:"rounded-xl border border-border bg-muted/20 px-3 py-2 text-sm"})]}),(0,s.jsxs)("button",{type:"button",disabled:!t||N,onClick:()=>{var e;return null==(e=h.current)?void 0:e.click()},className:"inline-flex items-center gap-1.5 rounded-xl border border-border bg-card px-3 py-2 text-xs font-semibold hover:bg-muted transition disabled:opacity-50",children:[(0,s.jsx)(eT.A,{className:"h-3.5 w-3.5"}),e("financeCash.importCsv")]}),(0,s.jsx)("input",{ref:h,type:"file",accept:".csv,text/csv",className:"hidden",onChange:e=>{var t;let a=null==(t=e.target.files)?void 0:t[0];a&&$(a),e.target.value=""}}),(0,s.jsxs)("button",{type:"button",disabled:!t||N,onClick:()=>void L(),className:"inline-flex items-center gap-1.5 rounded-xl bg-primary text-primary-foreground px-3 py-2 text-xs font-semibold hover:bg-primary/90 transition disabled:opacity-50",children:[(0,s.jsx)(eF.A,{className:(0,m.cn)("h-3.5 w-3.5",N&&"animate-pulse")}),N?e("financeCash.matching"):e("financeCash.runAutoMatch")]})]}),B&&(0,s.jsxs)("p",{className:"text-[11px] text-muted-foreground inline-flex items-center gap-1.5",children:[(0,s.jsx)(eO.A,{className:"h-3.5 w-3.5"}),B.bankName,B.accountNumber?" \xb7 ".concat(B.accountNumber):""," \xb7 ",f.filter(e=>!e.reconciled).length," ",e("financeCash.unreconciledCount")]}),p&&(0,s.jsx)("p",{className:"text-[11px] text-emerald-700",children:p}),v&&(0,s.jsx)("p",{className:"text-[11px] text-rose-600",children:v})]}),y&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[[["matched",e("financeCash.bucketMatched"),y.summary.matchedCount],["bankOnly",e("financeCash.bucketBankOnly"),y.summary.bankOnlyCount],["bookOnly",e("financeCash.bucketBookOnly"),y.summary.bookOnlyCount]].map(e=>{let[t,a,r]=e;return(0,s.jsxs)("button",{type:"button",onClick:()=>i(t),className:(0,m.cn)("rounded-full px-3 py-1.5 text-[11px] font-semibold border transition",d===t?"bg-primary text-primary-foreground border-primary":"bg-card border-border text-muted-foreground hover:bg-muted"),children:[a," (",r,")"]},t)}),(0,s.jsx)("button",{type:"button",onClick:()=>i("manual"),className:(0,m.cn)("rounded-full px-3 py-1.5 text-[11px] font-semibold border transition","manual"===d?"bg-primary text-primary-foreground border-primary":"bg-card border-border text-muted-foreground hover:bg-muted"),children:e("financeCash.bucketManual")}),"matched"===d&&(0,s.jsxs)("button",{type:"button",disabled:!P.length||N,onClick:()=>void I(),className:"ml-auto inline-flex items-center gap-1.5 rounded-xl bg-emerald-600 text-white px-3 py-1.5 text-[11px] font-semibold hover:bg-emerald-700 disabled:opacity-50",children:[(0,s.jsx)(X.A,{className:"h-3.5 w-3.5"}),e("financeCash.confirmSelected",{count:String(P.length)})]})]}),(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-card overflow-hidden",children:["matched"===d&&(0,s.jsx)(eP,{items:y.matched,selected:c,onToggle:function(e){o(t=>({...t,[e]:!t[e]}))},empty:e("financeCash.emptyMatched")}),"bankOnly"===d&&(0,s.jsx)(eU,{items:y.bankOnly,empty:e("financeCash.emptyBankOnly")}),"bookOnly"===d&&(0,s.jsxs)("div",{className:"divide-y divide-border",children:[y.bookOnly.map(e=>(0,s.jsxs)("div",{className:"px-5 py-3 flex flex-wrap gap-3 items-center text-sm",children:[(0,s.jsx)("span",{className:"text-[10px] font-semibold uppercase text-muted-foreground w-16",children:e.type}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground w-24",children:e.date}),(0,s.jsx)("span",{className:"flex-1 min-w-[140px]",children:e.description}),(0,s.jsx)("span",{className:"font-numeric text-sm font-bold",children:eD(e.amount)}),(0,s.jsx)("span",{className:"text-[10px] text-muted-foreground",children:e.id})]},"".concat(e.type,"-").concat(e.id))),!y.bookOnly.length&&(0,s.jsx)("p",{className:"px-5 py-8 text-center text-sm text-muted-foreground",children:e("financeCash.emptyBookOnly")})]}),"manual"===d&&(0,s.jsx)(e$,{transactions:f.filter(e=>!e.reconciled),matchedRef:F,matchedType:R,setMatchedRef:O,setMatchedType:D,busyId:E,onReconcile:U,t:e})]})]}),!y&&(0,s.jsx)("div",{className:"rounded-2xl border border-border bg-card overflow-hidden",children:(0,s.jsx)(e$,{transactions:f,matchedRef:F,matchedType:R,setMatchedRef:O,setMatchedType:D,busyId:E,onReconcile:U,t:e,loading:j})})]})}function eP(e){let{items:t,selected:a,onToggle:r,empty:n}=e;return t.length?(0,s.jsx)("div",{className:"divide-y divide-border",children:t.map(e=>{let t=!1!==a[e.bankTxn.id];return(0,s.jsxs)("label",{className:"px-5 py-3 flex flex-wrap items-center gap-3 cursor-pointer hover:bg-muted/30",children:[(0,s.jsx)("input",{type:"checkbox",checked:t,onChange:()=>r(e.bankTxn.id),className:"rounded border-border"}),(0,s.jsxs)("div",{className:"min-w-[90px]",children:[(0,s.jsx)("p",{className:"text-[10px] text-muted-foreground",children:e.bankTxn.date}),(0,s.jsx)("p",{className:"text-[10px] text-muted-foreground",children:e.reason})]}),(0,s.jsxs)("div",{className:"flex-1 min-w-[160px]",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:e.bankTxn.description}),(0,s.jsxs)("p",{className:"text-[11px] text-muted-foreground",children:["→ ",e.bookEntry.type," \xb7 ",e.bookEntry.id," \xb7 ",e.bookEntry.description]})]}),(0,s.jsxs)("p",{className:(0,m.cn)("text-sm font-bold font-numeric","credit"===e.bankTxn.direction?"text-emerald-600":"text-rose-600"),children:["credit"===e.bankTxn.direction?"+":"-",eD(e.bankTxn.amount)]})]},e.bankTxn.id)})}):(0,s.jsx)("p",{className:"px-5 py-8 text-center text-sm text-muted-foreground",children:n})}function eU(e){let{items:t,empty:a}=e;return t.length?(0,s.jsx)("div",{className:"divide-y divide-border",children:t.map(e=>(0,s.jsxs)("div",{className:"px-5 py-3 flex flex-wrap items-center gap-3",children:[(0,s.jsx)("p",{className:"text-xs text-muted-foreground w-24",children:e.date}),(0,s.jsx)("p",{className:"flex-1 min-w-[160px] text-sm",children:e.description}),(0,s.jsxs)("p",{className:(0,m.cn)("text-sm font-bold font-numeric","credit"===e.direction?"text-emerald-600":"text-rose-600"),children:["credit"===e.direction?"+":"-",eD(e.amount)]})]},e.id))}):(0,s.jsx)("p",{className:"px-5 py-8 text-center text-sm text-muted-foreground",children:a})}function e$(e){let{transactions:t,matchedRef:a,matchedType:r,setMatchedRef:n,setMatchedType:l,busyId:d,onReconcile:i,t:c,loading:o}=e;return(0,s.jsxs)("div",{className:"divide-y divide-border",children:[t.map(e=>(0,s.jsxs)("div",{className:"px-5 py-4 flex flex-wrap items-center gap-x-4 gap-y-3",children:[(0,s.jsxs)("div",{className:"min-w-[100px]",children:[(0,s.jsx)("p",{className:"text-[10px] text-muted-foreground",children:e.id}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:e.date})]}),(0,s.jsxs)("div",{className:"flex-1 min-w-[180px]",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:e.description}),(0,s.jsx)("p",{className:"text-[10px] text-muted-foreground capitalize",children:e.direction})]}),(0,s.jsxs)("p",{className:(0,m.cn)("text-sm font-bold font-numeric tabular-nums","credit"===e.direction?"text-emerald-600":"text-rose-600"),children:["credit"===e.direction?"+":"-",eD(e.amount)]}),e.reconciled?(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] font-semibold text-emerald-700 bg-emerald-50 px-2 py-1 rounded-full",children:[(0,s.jsx)(X.A,{className:"h-3 w-3"}),e.matchedType," \xb7 ",e.matchedRef]}):(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsxs)("select",{value:r[e.id]||"invoice",onChange:t=>l(a=>({...a,[e.id]:t.target.value})),className:"rounded-lg border border-border bg-muted/20 px-2 py-1.5 text-[11px]",children:[(0,s.jsx)("option",{value:"invoice",children:"Invoice"}),(0,s.jsx)("option",{value:"bill",children:"Bill"}),(0,s.jsx)("option",{value:"expense",children:"Expense"}),(0,s.jsx)("option",{value:"payment",children:"Payment"})]}),(0,s.jsx)("input",{placeholder:c("financeCash.refPlaceholder"),value:a[e.id]||"",onChange:t=>n(a=>({...a,[e.id]:t.target.value})),className:"rounded-lg border border-border bg-muted/20 px-2 py-1.5 text-[11px] w-32"}),(0,s.jsxs)("button",{type:"button",disabled:!a[e.id]||d===e.id,onClick:()=>i(e.id),className:"inline-flex items-center gap-1 rounded-xl bg-primary text-primary-foreground px-3 py-1.5 text-[11px] font-semibold hover:bg-primary/90 transition disabled:opacity-50",children:[(0,s.jsx)(eR.A,{className:"h-3 w-3"}),d===e.id?c("financeCash.matching"):c("financeCash.reconcile")]})]})]},e.id)),!o&&0===t.length&&(0,s.jsx)("p",{className:"px-5 py-8 text-center text-sm text-muted-foreground",children:c("financeCash.emptyTransactions")})]})}var eL=a(31241),eI=a(61357),eW=a(85322),eq=a(4956),eH=a(45361);let eG=[{id:"position",labelKey:"financeCash.tabPosition",icon:A.A},{id:"bank-recon",labelKey:"financeCash.tabBankRecon",icon:eR.A},{id:"forecast",labelKey:"financeCash.tabForecast",icon:_.A},{id:"ai-forecast",labelKey:"financeCash.tabAiForecast",icon:eI.A},{id:"pos-recon",labelKey:"financeCash.tabPosRecon",icon:eW.A},{id:"cit",labelKey:"financeCash.tabCit",icon:eq.A},{id:"sweeps",labelKey:"financeCash.tabSweeps",icon:et.A},{id:"alerts",labelKey:"financeCash.tabAlerts",icon:ex.A},{id:"fees",labelKey:"financeCash.tabFees",icon:eg.A},{id:"mobile",labelKey:"financeCash.tabMobile",icon:eA.A}];function e_(){let{t:e}=(0,x.Bd)(),{data:t,loading:a,source:i}=(0,l.i)("FINANCE","treasury"),[h,b]=(0,r.useState)("bank-recon");return(0,s.jsx)(o.e,{title:e("financeCash.layoutTitle"),children:(0,s.jsxs)(d.H,{loading:a,source:i,data:t,children:[(0,s.jsx)(c(),{children:(0,s.jsx)("title",{children:e("financeCash.seoT
1itle")})}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)(w,{}),(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-1.5 rounded-2xl border border-border bg-card p-1.5",children:eG.map(t=>(0,s.jsxs)("button",{onClick:()=>b(t.id),className:(0,m.cn)("inline-flex items-center gap-1.5 rounded-xl px-3.5 py-2 text-xs font-semibold transition",h===t.id?"bg-primary text-primary-foreground shadow-sm":"text-muted-foreground hover:bg-muted"),children:[(0,s.jsx)(t.icon,{className:"h-3.5 w-3.5"})," ",e(t.labelKey)]},t.id))}),(0,s.jsxs)("div",{children:["position"===h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(O,{}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(p.f,{})})]}),"bank-recon"===h&&(0,s.jsx)(eB,{}),"forecast"===h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Y,{}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(p.f,{})})]}),"sweeps"===h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(en,{}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(p.f,{})})]}),"alerts"===h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ef,{}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(p.f,{})})]}),"fees"===h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ev,{}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(p.f,{})})]}),"mobile"===h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eS,{}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(p.f,{})})]}),"pos-recon"===h&&((0,eL.t4)()?(0,s.jsx)(u.Q,{title:e("financeCash.posEmptyTitle"),description:e("financeCash.posEmptyDesc"),ctaHref:"/finance/cash",ctaLabel:e("financeCash.posEmptyCta")}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"rounded-3xl border border-teal-200 dark:border-teal-900 bg-gradient-to-br from-teal-50 to-emerald-50 dark:from-teal-950/20 dark:to-emerald-900/20 p-6 overflow-hidden relative animate-in fade-in slide-in-from-bottom-4",children:[(0,s.jsx)("div",{className:"absolute top-0 right-0 p-8 opacity-10",children:(0,s.jsx)(eW.A,{className:"w-48 h-48"})}),(0,s.jsxs)("div",{className:"relative z-10 space-y-6",children:[(0,s.jsx)("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-4",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("h3",{className:"text-xl font-bold text-teal-800 dark:text-teal-400 flex items-center gap-2",children:[(0,s.jsx)(v.A,{className:"w-5 h-5"})," ",e("financeCash.posTitle")]}),(0,s.jsx)("p",{className:"text-sm text-slate-600 dark:text-slate-400 max-w-2xl mt-1",children:e("financeCash.posDesc")})]})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"bg-white dark:bg-slate-900 p-5 rounded-2xl border border-teal-100 dark:border-teal-900 shadow-sm",children:[(0,s.jsx)("h4",{className:"font-semibold text-sm mb-4 text-teal-900 dark:text-teal-300",children:e("financeCash.endOfShiftRecon")}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"p-4 bg-slate-50 dark:bg-slate-800/50 rounded-xl border border-slate-100 dark:border-slate-800 flex justify-between items-center",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-bold",children:e("financeCash.morningShift")}),(0,s.jsx)("p",{className:"text-[10px] text-muted-foreground mt-0.5",children:e("financeCash.cashier",{name:"Nattapong"})})]}),(0,s.jsxs)("div",{className:"text-right",children:[(0,s.jsxs)("p",{className:"text-sm font-bold font-numeric",children:["$",n.tg,"34,250.00"]}),(0,s.jsxs)("span",{className:"text-[10px] bg-emerald-100 text-emerald-700 px-2 py-0.5 rounded font-bold flex items-center gap-1 mt-1 justify-end",children:[(0,s.jsx)(X.A,{className:"w-3 h-3"})," ",e("financeCash.balanced")]})]})]}),(0,s.jsxs)("div",{className:"p-4 bg-rose-50 dark:bg-rose-900/20 rounded-xl border border-rose-200 dark:border-rose-800 flex justify-between items-center",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-bold text-rose-900 dark:text-rose-300",children:e("financeCash.nightShift")}),(0,s.jsx)("p",{className:"text-[10px] text-rose-700 dark:text-rose-400 mt-0.5",children:e("financeCash.cashier",{name:"Somsak"})})]}),(0,s.jsxs)("div",{className:"text-right",children:[(0,s.jsxs)("p",{className:"text-sm font-bold font-numeric text-rose-600",children:["$",n.tg,"18,400.00"]}),(0,s.jsxs)("span",{className:"text-[10px] bg-rose-200 text-rose-800 px-2 py-0.5 rounded font-bold flex items-center gap-1 mt-1 justify-end",children:[(0,s.jsx)(ed.A,{className:"w-3 h-3"})," ",e("financeCash.shortAmount",{amount:(0,n.Ue)(500)})]})]})]})]})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-slate-900 p-5 rounded-2xl border border-teal-100 dar
1k:border-teal-900 shadow-sm flex flex-col justify-center",children:[(0,s.jsxs)("h4",{className:"font-semibold text-sm mb-4 text-teal-900 dark:text-teal-300 flex items-center gap-2",children:[(0,s.jsx)(eH.A,{className:"w-4 h-4"})," ",e("financeCash.aiRiskPatterns")]}),(0,s.jsxs)("div",{className:"space-y-4 text-sm",children:[(0,s.jsxs)("p",{className:"text-slate-700 dark:text-slate-300",children:[(0,s.jsx)("strong",{className:"text-rose-600",children:e("financeCash.alertPrefix")})," ",e("financeCash.posAlert")]}),(0,s.jsx)("p",{className:"text-slate-700 dark:text-slate-300",children:e("financeCash.posVoidSpike")}),(0,s.jsx)("button",{className:"bg-teal-600 hover:bg-teal-700 text-white text-xs font-bold px-4 py-2.5 rounded-xl shadow-sm transition w-full",children:e("financeCash.initiateStoreAudit")})]})]})]})]})]}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(p.f,{})})]})),"cit"===h&&((0,eL.t4)()?(0,s.jsx)(u.Q,{title:e("financeCash.citEmptyTitle"),description:e("financeCash.citEmptyDesc"),ctaHref:"/finance/cash",ctaLabel:e("financeCash.citEmptyCta")}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"rounded-3xl border border-indigo-200 dark:border-indigo-900 bg-gradient-to-br from-indigo-50 to-blue-50 dark:from-indigo-950/20 dark:to-blue-900/20 p-6 overflow-hidden relative animate-in fade-in slide-in-from-bottom-4",children:[(0,s.jsx)("div",{className:"absolute top-0 right-0 p-8 opacity-10",children:(0,s.jsx)(eq.A,{className:"w-48 h-48"})}),(0,s.jsxs)("div",{className:"relative z-10 space-y-6",children:[(0,s.jsx)("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-4",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("h3",{className:"text-xl font-bold text-indigo-800 dark:text-indigo-400 flex items-center gap-2",children:[(0,s.jsx)(v.A,{className:"w-5 h-5"})," ",e("financeCash.citTitle")]}),(0,s.jsx)("p",{className:"text-sm text-slate-600 dark:text-slate-400 max-w-2xl mt-1",children:e("financeCash.citDesc")})]})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"bg-white dark:bg-slate-900 p-5 rounded-2xl border border-indigo-100 dark:border-indigo-900 shadow-sm",children:[(0,s.jsx)("h4",{className:"font-semibold text-sm mb-4 text-indigo-900 dark:text-indigo-300",children:e("financeCash.liveCitTracking")}),(0,s.jsxs)("div",{className:"space-y-4 text-sm relative",children:[(0,s.jsx)("div",{className:"absolute left-[15px] top-2 bottom-2 w-0.5 bg-indigo-100 dark:bg-indigo-900 z-0"}),(0,s.jsxs)("div",{className:"relative z-10 flex gap-4",children:[(0,s.jsx)("div",{className:"w-8 h-8 rounded-full bg-emerald-100 text-emerald-600 flex items-center justify-center shrink-0 border-2 border-white dark:border-slate-900",children:(0,s.jsx)(eW.A,{className:"w-4 h-4"})}),(0,s.jsxs)("div",{className:"pt-1 w-full",children:[(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("p",{className:"font-bold",children:e("financeCash.branchHandoff")}),(0,s.jsxs)("p",{className:"font-numeric font-bold",children:["$",n.tg,"120,500"]})]}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:e("financeCash.bagSigned",{id:"BRX-992",name:"Somchai"})})]})]}),(0,s.jsxs)("div",{className:"relative z-10 flex gap-4",children:[(0,s.jsx)("div",{className:"w-8 h-8 rounded-full bg-amber-100 text-amber-600 flex items-center justify-center shrink-0 border-2 border-white dark:border-slate-900",children:(0,s.jsx)(eq.A,{className:"w-4 h-4"})}),(0,s.jsxs)("div",{className:"pt-1 w-full",children:[(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("p",{className:"font-bold",children:e("financeCash.inTransit")}),(0,s.jsx)("span",{className:"text-[10px] bg-amber-100 text-amber-700 px-2 py-0.5 rounded font-bold",children:e("financeCash.pendingDeposit")})]}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:e("financeCash.estBankDrop")})]})]}),(0,s.jsxs)("div",{className:"relative z-10 flex gap-4 opacity-50",children:[(0,s.jsx)("div",{className:"w-8 h-8 rounded-full bg-slate-100 text-slate-400 flex items-center justify-center shrink-0 border-2 border-white dark:border-slate-900",children:(0,s.jsx)(A.A,{className:"w-4 h-4"})}),(0,s.jsxs)("div",{className:"pt-1 w-full",children:[(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("p",{className:"font-bold",children:e("financeCash.bankReconScb")}),(0,s.jsx)("p",{className:"font-numeric",children:"--"})]}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:e("financeCash.awaitingBankSync")})]})]})]})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-slate-900 p-5 rounded-2xl border border-indigo-100 dark:border-indigo-900 shadow-sm flex flex-col justify-center",children:[(0,s.jsxs)("h4",{className:"font-semibold text-sm mb-4 text-indigo-900 dark:text-indigo-300 flex items-center gap-2",children:[(0,s.jsx)(ed.A,{className:"w-4 h-4"})," ",e("financeCash.bankDropDiscrepancy")]}),(0,s.jsxs)("div",{className:"space-y-4 text-sm",children:[(0,s.jsxs)("div",{className:"p-3 bg-rose-50 dark:bg-rose-900/20 rounded-xl border border-rose-200 dark:border-rose-800",children:[(0,s.jsx)("p",{className:"text-slate-700 dark:text-slate-300",children:e("financeCash.citAlert",{handoff:(0,n.Ue)(85e3),deposit:(0,n.Ue)(84e3)})}),(0,s.jsx)("p",{className:"text-rose-700 dark:text-rose-400 font-bold mt-2",children:e("financeCash.variance",{amount:"-".concat(n.tg,"1,000")})})]}),(0,s.jsx)("button",{className:"bg-indigo-600 hover:bg-indigo-700 text-white text-xs font-bold px-4 py-2.5 rounded-xl shadow-sm transition w-full",children:e("financeCash.openCitDispute")})]})]})]})]})]}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(p.f,{})})]})),"ai-forecast"===h&&((0,eL.t4)()?(0,s.jsx)(u.Q,{title:e("financeCash.aiEmptyTitle"),description:e("financeCash.aiEmptyDesc"),ctaHref:"/finance/ap",ctaLabel:e("financeCash.aiEmptyCta")}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"rounded-3xl border border-sky-200 dark:border-sky-900 bg-gradient-to-br from-sky-50 to-blue-50 dark:from-sky-950/20 dark:to-blue-900/20 p-6 overflow-hidden relative animate-in fade-in slide-in-from-bottom-4",children:[(0,s.jsx)("div",{className:"absolute top-0 right-0 p-8 opacity-10",children:(0,s.jsx)(eI.A,{className:"w-48 h-48"})}),(0,s.jsxs)("div",{className:"relative z-10 space-y-6",children:[(0,s.jsx)("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-4",children:(0,s.jsxs)("div",{children:[(0,s.jsxs)("h3",{className:"text-xl font-bold text-sky-800 dark:text-sky-400 flex items-center gap-2",children:[(0,s.jsx)(v.A,{className:"w-5 h-5"})," ",e("financeCash.aiForecastTitle")]}
1),(0,s.jsx)("p",{className:"text-sm text-slate-600 dark:text-slate-400 max-w-2xl mt-1",children:e("financeCash.aiForecastDesc")})]})}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,s.jsxs)("div",{className:"bg-white dark:bg-slate-900 p-5 rounded-2xl border border-sky-100 dark:border-sky-900 shadow-sm col-span-1 lg:col-span-2",children:[(0,s.jsxs)("h4",{className:"font-semibold text-sm mb-4 text-sky-900 dark:text-sky-300 flex items-center gap-2",children:[(0,s.jsx)(_.A,{className:"w-4 h-4"})," ",e("financeCash.liquidityForecast30")]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between p-4 bg-slate-50 dark:bg-slate-800/50 rounded-xl border border-slate-100 dark:border-slate-800",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-bold text-slate-700 dark:text-slate-300",children:e("financeCash.expectedTrough")}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e("financeCash.week3Range")})]}),(0,s.jsxs)("div",{className:"text-right",children:[(0,s.jsxs)("p",{className:"text-lg font-bold font-numeric tabular-nums text-rose-600 dar
1k:text-rose-400",children:["$",n.tg,"12.4M"]}),(0,s.jsx)("p",{className:"text-[10px] text-muted-foreground uppercase tracking-wider",children:e("financeCash.minBuffer",{amount:"".concat(n.tg,"15.0M")})})]})]}),(0,s.jsxs)("div",{className:"p-4 bg-amber-50 dark:bg-amber-900/20 rounded-xl border border-amber-200 dark:border-amber-800 flex gap-3",children:[(0,s.jsx)(ed.A,{className:"w-5 h-5 text-amber-600 shrink-0"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm font-bold text-amber-900 dark:text-amber-300",children:e("financeCash.liquidityWarning")}),(0,s.jsx)("p",{className:"text-xs text-amber-700 dark:text-amber-400 mt-1",children:e("financeCash.liquidityWarningDesc",{payment:"".concat(n.tg,"4.2M")})}),(0,s.jsx)("button",{className:"mt-3 bg-amber-200 hover:bg-amber-300 dark:bg-amber-800 dark:hover:bg-amber-700 text-amber-900 dark:text-amber-100 text-xs font-bold px-3 py-1.5 rounded-lg transition",children:e("financeCash.simulateCreditDrawdown")})]})]})]})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-slate-900 p-5 rounded-2xl border border-sky-100 dark:border-sky-900 shadow-sm flex flex-col justify-center items-center text-center",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-slate-500 mb-2 uppercase tracking-wider",children:e("financeCash.aiForecastConfidence")}),(0,s.jsx)("p",{className:"text-5xl font-bold font-numeric tabular-nums text-emerald-600 dark:text-emerald-400",children:"94%"}),(0,s.jsx)("p",{className:"text-xs text-slate-500 mt-2",children:e("financeCash.basedOnTransactions")})]})]})]})]}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(p.f,{})})]}))]})]})]})})}},38548:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/finance/cash",function(){return a(36543)}])},38767:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},55053:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},56100:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("Clock4",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},62194:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]])},71820:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},75609:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("BellRing",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]])},78170:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},79449:(e,t,a)=>{"use strict";a.d(t,{Q:()=>i});var s=a(37876),r=a(48230),n=a.n(r),l=a(89023),d=a(15565);function i(e){let{title:t,description:a,ctaHref:r="/finance/ar",ctaLabel:i="Go to Accounts Receivable",className:c}=e;return(0,s.jsxs)("div",{className:(0,d.cn)("rounded-2xl border border-dashed border-border bg-muted/20 px-6 py-12 text-center",c),children:[(0,s.jsx)("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-2xl bg-primary/10 text-primary",children:(0,s.jsx)(l.A,{className:"h-6 w-6",strokeWidth:1.75})}),(0,s.jsx)("p",{className:"text-sm font-semibold text-foreground",children:t}),(0,s.jsx)("p",{className:"mt-2 max-w-md mx-auto text-xs leading-relaxed text-muted-foreground",children:a}),(0,s.jsx)(n(),{href:r,className:"mt-4 inline-flex h-9 items-center justify-center rounded-xl bg-primary px-4 text-xs font-semibold text-primary-foreground hover:bg-primary/90",children:i})]})}},81831:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]])},85322:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});
1let s=(0,a(18443).A)("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]])},89030:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(18443).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])}},e=>{e.O(0,[4509,636,6593,8792],()=>e(e.s=38548)),_N_E=e.O()}]);

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.