PageSourceSearch

https://www.wishyork.com/_next/static/chunks/136.eef931ecb886d907.js

js wishyork.com collected 2026-10-02 01:49:38 UTC 12,542 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f2aac26b-2ea8-4ec9-b793-898b6009c897",e._sentryDebugIdIdentifier="sentry-dbid-f2aac26b-2ea8-4ec9-b793-898b6009c897")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[136],{1272:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},30136:(e,t,a)=>{a.r(t),a.d(t,{EventFinanceTab:()=>w});var r=a(95155),n=a(12115),s=a(18955),d=a(40671),i=a(60406),l=a(14294);let c=(0,l.A)("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]),o=(0,l.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"}]]);var x=a(1272),m=a(72251);let u=(0,l.A)("CircleDot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);var p=a(62593),b=a(64269),f=a(13406);let h=(0,a(83101).F)("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),g=n.forwardRef((e,t)=>{let{className:a,variant:n,...s}=e;return(0,r.jsx)("div",{ref:t,role:"alert",className:(0,b.cn)(h({variant:n}),a),...s})});g.displayName="Alert",n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("h5",{ref:t,className:(0,b.cn)("mb-1 font-medium leading-none tracking-tight",a),...n})}).displayName="AlertTitle";let k=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("div",{ref:t,className:(0,b.cn)("text-sm [&_p]:leading-relaxed",a),...n})});k.displayName="AlertDescription";var v=a(11647),N=a(3001),y=a(30926);let j=(0,y.createServerReference)("40d21f0fcf21413062e7a209375e6a182e41ebb068",y.callServer,void 0,y.findSourceMapURL,"getEventFinanceItemsAction");function w(e){var t;let{eventId:a,isNGOMission:l,financialSummary:h,currency:y}=e,w=(0,s.c)("Dashboard"),A=(0,s.c)("EventMissionControl"),E=(0,s.k)(),[B,_]=(0,n.use
1State)(!0),[F,D]=(0,n.useState)(null!=(t=h.items)?t:[]);(0,n.useEffect)(()=>{let e=!1;return(async()=>{try{let t=await j(a);if(e)return;t.success&&t.data&&D(t.data)}finally{e||_(!1)}})(),()=>{e=!0}},[a]);let M=h.spent>h.budget&&h.budget>0,C=h.spent-h.budget,I=(0,N.Qn)(y),L=F.filter(e=>e.conversionUnavailable).length,T={minimumFractionDigits:2,maximumFractionDigits:2};return(0,r.jsx)(f.av,{value:"finance",className:"mt-0 focus-visible:outline-none space-y-10",children:(0,r.jsxs)("div",{className:"space-y-8 animate-in fade-in slide-in-from-right-4 duration-500",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(d.A,{className:"h-6 w-6 shrink-0 text-primary","aria-hidden":!0}),(0,r.jsx)("h3",{className:"text-xl font-bold normal-case leading-tight text-[#171717] dark:text-neutral-100",children:l?A("financeHeadingNgo"):w("financeLedger")})]}),M&&(0,r.jsxs)(g,{variant:"destructive",className:"bg-red-50 dark:bg-red-950/20 border-l-4 border-red-500 animate-in fade-in slide-in-from-top-2 duration-300",children:[(0,r.jsx)(i.A,{className:"h-4 w-4"}),(0,r.jsx)(k,{className:"font-bold",children:w("budgetExceeded",{amount:"".concat(I).concat(E.number(C,T))})})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:[(0,r.jsxs)("div",{className:"flex flex-col justify-between rounded-[12px] border border-[#EBEBEB] bg-white p-5 shadow-[0_2px_12px_rgba(0,0,0,0.08)] transition-shadow duration-200 hover:shadow-[0_4px_20px_rgba(0,0,0,0.12)] dark:border-neutral-800 dark:bg-neutral-900",children:[(0,r.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-[#8A8A80] dark:text-neutral-400",children:w("financeTotalBudget")}),(0,r.jsxs)("div",{className:"mt-4 flex items-baseline gap-2",children:[(0,r.jsxs)("span",{className:"text-2xl font-bold font-display text-[#171717] dark:text-neutral-100","data-testid":"finance-stat-budget",children:[I,E.number(h.budget||0,T)]}),(0,r.jsx)(c,{className:"h-4 w-4 shrink-0 text-[#8A8A80] dark:text-neutral-400","aria-hidden":!0})]})]}),(0,r.jsxs)("div",{className:"flex flex-col justify-between rounded-[12px] border border-[#EBEBEB] bg-white p-5 shadow-[0_2px_12px_rgba(0,0,0,0.08)] transition-shadow duration-200 hover:shadow-[0_4px_20px_rgba(0,0,0,0.12)] dark:border-neutral-800 dark:bg-neutral-900",children:[(0,r.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-[#8A8A80] dark:text-neutral-400",children:w("financeTotalSpent")}),(0,r.jsxs)("div",{className:"mt-4 flex items-baseline gap-2",children:[(0,r.jsxs)("span",{className:"text-2xl font-bold font-display text-[#171717] dark:text-neutral-100","data-testid":"finance-stat-spent",children:[I,E.number(h.spent,T)]}),(0,r.jsx)(o,{className:"h-4 w-4 shrink-0 text-[#8A8A80] dark:text-neutral-400","aria-hidden":!0})]})]}),(0,r.jsxs)("div",{className:"flex flex-col justify-between rounded-[12px] border border-[#EBEBEB] bg-white p-5 shadow-[0_2px_12px_rgba(0,0,0,0.08)] transition-shadow duration-200 hover:shadow-[0_4px_20px_rgba(0,0,0,0.12)] dark:border-neutral-800 dark:bg-neutral-900",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-[#8A8A80] dark:text-neutral-400",children:w("financeRemainingBalance")}),M&&(0,r.jsx)(v.E,{variant:"destructive",className:"text-[10px] font-bold uppercase tracking-tight py-0 px-2 h-5",children:w("overBudget")})]}),(0,r.jsxs)("div",{className:"mt-4 flex items-baseline gap-2",children:[(0,r.jsx)("span",{"data-testid":"finance-stat-remaining",className:(0,b.cn)("text-2xl font-bold font-display",M?"text-red-600 dark:text-red-400":"text-primary"),children:M?"-".concat(I).concat(E.number(C,T)):"".concat(I).concat(E.number(h.remaining,T))}),(0,r.jsx)(x.A,{className:"h-4 w-4 shrink-0 text-[#8A8A80] dark:text-neutral-400","aria-hidden":!0})]})]})]}),L>0&&(0,r.jsxs)("div",{className:"flex items-center gap-2.5 rounded-[10px] border border-amber-200 bg-amber-50/70 px-4 py-3 text-xs text-amber-800 dark:border-amber-900/40 dark:bg-amber-950/20 dark:text-amber-300",children:[(0,r.jsx)(i.A,{className:"h-4 w-4 shrink-0 text-amber-600 dar
1k:text-amber-400","aria-hidden":!0}),(0,r.jsx)("span",{children:w("excludedItemsNotice",{count:L,currency:y})})]}),(0,r.jsxs)("div",{className:"overflow-hidden rounded-[12px] border border-[#EBEBEB] bg-white shadow-[0_2px_12px_rgba(0,0,0,0.08)] transition-shadow duration-200 hover:shadow-[0_4px_20px_rgba(0,0,0,0.12)] dark:border-neutral-800 dark:bg-neutral-900",children:[(0,r.jsxs)("header",{className:"flex items-center justify-between border-b border-[#EBEBEB] px-5 py-4 dark:border-neutral-800",children:[(0,r.jsx)("span",{className:"text-sm font-semibold normal-case text-[#171717] dark:text-neutral-100",children:w("financeProjectCostBreakdown")}),(0,r.jsx)("span",{className:"rounded-full bg-primary/15 px-2 py-0.5 text-[10px] font-semibold text-primary",children:w("financeLiveData")})]}),(0,r.jsx)("div",{className:"divide-y divide-[#EBEBEB] dark:divide-neutral-800",children:F.length>0?F.map(e=>{var t,a;let n=null!=e.priceAmount?Number(e.priceAmount):Number(e.price),s=(e.currency||"USD")===(y||"USD"),d=Number(e.quantity),l=Number.isFinite(d)&&d>0?d:1,c=Number(e.fulfilledQuantity),o=Number.isFinite(c)?Math.max(0,c):0,x=l>1,f=x?o>=l?"paid":o>0?"partial":"pending":"FULFILLED"===e.status?"paid":"pending",h=!x&&"FULFILLED"===e.status,g=x?"paid"===f?"text-forest dark:text-forest":"partial"===f?"text-sky-dark dark:text-sky":"text-[#171717] dark:text-neutral-100":h?"text-primary":"text-[#171717] dark:text-neutral-100",k=x?null!=e.totalConvertedAmount&&Number.isFinite(Number(e.totalConvertedAmount))?Number(e.totalConvertedAmount):Number.isFinite(n)?n*l:null:s?n:null!=(t=e.convertedAmount)?t:e.unitConvertedAmount,v=x?"(".concat((0,N.Qn)(e.currency)).concat(e.price," \xd7 ").concat(l,")"):"(".concat((0,N.Qn)(e.currency)).concat(e.price,")");return(0,r.jsxs)("div",{"data-testid":"finance-row-".concat(e.id),className:"flex flex-col justify-between gap-4 p-5 transition-colors hover:bg-[#F9F9F9] dark:hover:bg-neutral-800/40 md:flex-row md:items-center",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("div",{className:(0,b.cn)("flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-[#EBEBEB] dark:border-neutral-700",x?"paid"===f?"bg-forest/10 text-forest dark:bg-forest-light dark:text-forest":"partial"===f?"bg-sky-light/50 text-sky-dark dark:bg-sky/10 dark:text-sky":"bg-[#F9F9F9] dark:bg-neutral-800":h?"bg-primary/10 text-[#5a8a3a]":"bg-[#F9F9F9] dark:bg-neutral-800"),children:x?"paid"===f?(0,r.jsx)(m.A,{className:"h-5 w-5"}):"partial"===f?(0,r.jsx)(u,{className:"h-5 w-5"}):(0,r.jsx)(p.A,{className:"h-5 w-5 text-[#8A8A80] dark:text-neutral-400"}):h?(0,r.jsx)(m.A,{className:"h-5 w-5"}):(0,r.jsx)(p.A,{className:"h-5 w-5 text-[#8A8A80] dark:text-neutral-400"})}),(0,r.jsxs)("div",{className:"min-w-0 space-y-1",children:[(0,r.jsx)("h5",{className:"text-sm font-semibold normal-case leading-snug text-[#171717] dark:text-neutral-100",children:e.title}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[x&&(0,r.jsx)("span",{"data-testid":"finance-row-qty-".concat(e.id),className:"font-['IBM_Plex_Mono'] text-[11px] text-[#8A8A80] dark:text-neutral-400",children:w("paidOf",{paid:Math.min(o,l),total:l})}),(0,r.jsx)("span",{className:"rounded-full border border-[#EBEBEB] bg-[#F9F9F9] px-2 py-0.5 text-[10px] font-medium text-[#6B6B6B] dark:border-neutral-700 dark:bg-neutral-800",children:e.itemType}),e.category&&(0,r.jsx)("span",{className:"text-xs font-medium text-[#8A8A80] dark:text-neutral-400",children:e.category})]})]})]}),(0,r.jsx)("div",{className:"flex items-center gap-4 md:gap-6",children:(0,r.jsxs)("div",{className:"text-right",children:[s?(0,r.jsxs)("span",{"data-testid":"finance-row-amount-".concat(e.id),className:(0,b.cn)("block text-lg font-bold",g),children:[I,null!=k&&Number.isFinite(k)?E.number(k,T):e.price]}):null!=e.convertedAmount||null!=e.totalConvertedAmount?(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{"data-testid":"finance-row-amount-".concat(e.id),className:(0,b.cn)("block text-lg font-bold",g),children:[I,E.number(x?null!=(a=e.totalConvertedAmount)?a:k:e.convertedAmount,T)]}),(0,r.jsx)("span",{className:"block text-xs font-medium text-[#8A8A80] dark:text-neutral-400",children:v})]}):(0,r.jsxs)("div",{className:"flex items-center justify-end gap-1.5",children:[(0,r.jsxs)("span",{"data-testid":"finance-row-amount-".concat(e.id),className:(0,b.cn)("block text-lg font-bold",g),children:[(0,N.Qn)(e.currency),x&&Number.isFinite(n)?E.number(n*l,T):e.price]}),(0,r.jsx)("span",{title:w("rateUnavailable"),className:"inline-flex items-center text-amber-500 hover:text-amber-600 dar
1k:text-amber-400 cursor-help",children:(0,r.jsx)(i.A,{className:"h-4 w-4 shrink-0","aria-label":w("rateUnavailable")})})]}),(0,r.jsx)("span",{"data-testid":"finance-row-badge-".concat(e.id),className:(0,b.cn)("text-[10px] font-medium uppercase tracking-wide",x&&"paid"===f?"text-forest dark:text-forest":x&&"partial"===f?"text-sky-dark dark:text-sky":"text-[#8A8A80] dark:text-neutral-400"),children:"paid"===f?w("financePaid"):"partial"===f?w("financePartiallyPaid"):w("financePending")})]})})]},e.id)}):B?null:(0,r.jsxs)("div",{className:"flex flex-col items-center gap-4 px-5 py-20 text-center",children:[(0,r.jsx)(d.A,{className:"h-12 w-12 text-[#EBEBEB] dark:text-neutral-700","aria-hidden":!0}),(0,r.jsx)("p",{className:"text-sm font-normal normal-case text-[#8A8A80] dark:text-neutral-400",children:w("financeNoData")})]})})]})]})})}},60406:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(14294).A)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])}}]);

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.