@wealthx/shadcn 1.5.41 → 1.5.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +204 -199
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-5FHBC6DY.mjs → chunk-33WZ5NCW.mjs} +1 -1
- package/dist/{chunk-C35JMOII.mjs → chunk-3G6JUYRE.mjs} +4 -4
- package/dist/{chunk-LBXIYS34.mjs → chunk-4PVCJ3JD.mjs} +1 -1
- package/dist/{chunk-EHQL64B7.mjs → chunk-4SUXTO2Z.mjs} +4 -4
- package/dist/{chunk-BAONSY54.mjs → chunk-5RYH7SOQ.mjs} +1 -1
- package/dist/{chunk-3C4DZTGA.mjs → chunk-5XD7A7YC.mjs} +1 -1
- package/dist/{chunk-5DAQU3B6.mjs → chunk-66JXT7NY.mjs} +1 -1
- package/dist/{chunk-NGKTJRFN.mjs → chunk-6DO4EGT2.mjs} +2 -2
- package/dist/{chunk-C7ZTZTEW.mjs → chunk-6XJWL2E5.mjs} +1 -1
- package/dist/{chunk-FQUT5XD6.mjs → chunk-A4UP4QFB.mjs} +1 -1
- package/dist/{chunk-USIRKDYQ.mjs → chunk-BFCX7ADE.mjs} +1 -1
- package/dist/{chunk-XGRSPFFC.mjs → chunk-CQHKU24Z.mjs} +1 -1
- package/dist/{chunk-HONTZFLO.mjs → chunk-DP4ER6TJ.mjs} +1 -1
- package/dist/{chunk-VLVEZHFE.mjs → chunk-EFSLAMHI.mjs} +4 -4
- package/dist/{chunk-FYZBGWYR.mjs → chunk-FVSOFXJQ.mjs} +1 -1
- package/dist/{chunk-JUMEIPII.mjs → chunk-G2MOZZPE.mjs} +8 -8
- package/dist/{chunk-D3HKFRQO.mjs → chunk-GQWKBESP.mjs} +8 -5
- package/dist/{chunk-MD66TGX7.mjs → chunk-GXDKWCMV.mjs} +1 -1
- package/dist/{chunk-77L3UPBW.mjs → chunk-H7NOUDU3.mjs} +5 -5
- package/dist/{chunk-4LLTZ45R.mjs → chunk-HOXTEU5K.mjs} +8 -7
- package/dist/{chunk-ZA37ZWZW.mjs → chunk-IXW77PMI.mjs} +7 -7
- package/dist/{chunk-XHZONBL4.mjs → chunk-JLEQU5BO.mjs} +1 -1
- package/dist/{chunk-6UKOJLXO.mjs → chunk-JSFWRD7K.mjs} +4 -4
- package/dist/{chunk-7PTRHNUV.mjs → chunk-JY3FUGNL.mjs} +1 -1
- package/dist/{chunk-3ZU5BH6X.mjs → chunk-KEOAPKJO.mjs} +3 -3
- package/dist/{chunk-4QTHK7ML.mjs → chunk-KWYFJQV6.mjs} +1 -1
- package/dist/{chunk-FGMDBJCF.mjs → chunk-LDPCSE7J.mjs} +4 -4
- package/dist/chunk-LFWNKXZU.mjs +109 -0
- package/dist/{chunk-IRZWYTGV.mjs → chunk-M32YSAWL.mjs} +8 -7
- package/dist/{chunk-LLAGF6BA.mjs → chunk-MUB2G36A.mjs} +1 -1
- package/dist/{chunk-DQNNP6I4.mjs → chunk-NIETQFJQ.mjs} +1 -1
- package/dist/{chunk-RUX3OLVZ.mjs → chunk-OTFG57ZF.mjs} +1 -1
- package/dist/{chunk-OKIWXOJL.mjs → chunk-OWTW5WAJ.mjs} +1 -1
- package/dist/{chunk-WWIWRNBK.mjs → chunk-P7NSCTAW.mjs} +1 -1
- package/dist/{chunk-BZWQU52U.mjs → chunk-QZREZL2F.mjs} +1 -1
- package/dist/{chunk-E432NK23.mjs → chunk-RBQ4BZUV.mjs} +6 -6
- package/dist/{chunk-I2EKKSEF.mjs → chunk-RKBLVNDC.mjs} +4 -7
- package/dist/{chunk-LHQACMZY.mjs → chunk-SPPQFW32.mjs} +106 -50
- package/dist/{chunk-OSSS56CB.mjs → chunk-SUXJWKRI.mjs} +4 -4
- package/dist/{chunk-SCGCGVDN.mjs → chunk-SZXIPE5J.mjs} +1 -1
- package/dist/{chunk-GIQGZFP6.mjs → chunk-THOHFAW2.mjs} +28 -12
- package/dist/{chunk-VVURVETY.mjs → chunk-TOQRA2TD.mjs} +1 -1
- package/dist/{chunk-GYWOD2YI.mjs → chunk-TZSDYQFH.mjs} +4 -4
- package/dist/{chunk-S7SBLNX4.mjs → chunk-UB3WG6I4.mjs} +1 -1
- package/dist/{chunk-PGJRZHN7.mjs → chunk-UVZ3JWFG.mjs} +1 -1
- package/dist/{chunk-UD5UF5OC.mjs → chunk-W7OPFKTZ.mjs} +4 -4
- package/dist/{chunk-YEWNFK5S.mjs → chunk-WLXP4OOF.mjs} +5 -5
- package/dist/{chunk-ORMC3TV3.mjs → chunk-XYXYTTNW.mjs} +1 -1
- package/dist/{chunk-CZOGJC76.mjs → chunk-YACFZWRR.mjs} +7 -7
- package/dist/{chunk-UTCW5YUX.mjs → chunk-YPATB6YQ.mjs} +9 -9
- package/dist/{chunk-BZGFW6L7.mjs → chunk-YWJAIPUA.mjs} +1 -1
- package/dist/{chunk-MHBQJVHE.mjs → chunk-Z65BGSHI.mjs} +5 -5
- package/dist/{chunk-PCULNQWA.mjs → chunk-ZGSFRUVI.mjs} +3 -3
- package/dist/{chunk-7NQKFPXE.mjs → chunk-ZRYG6ICN.mjs} +1 -1
- package/dist/{chunk-ZFKAYRFQ.mjs → chunk-ZUHFYW65.mjs} +1 -1
- package/dist/components/ui/about-you-form.mjs +2 -2
- package/dist/components/ui/account-list-carousel.mjs +2 -2
- package/dist/components/ui/add-column-modal.mjs +4 -4
- package/dist/components/ui/add-lead-modal.mjs +4 -4
- package/dist/components/ui/advisor-card.mjs +2 -2
- package/dist/components/ui/ai-assistant-drawer.mjs +2 -2
- package/dist/components/ui/ai-builder/index.mjs +4 -4
- package/dist/components/ui/ai-conversations/index.mjs +4 -4
- package/dist/components/ui/alert-dialog.mjs +3 -3
- package/dist/components/ui/applicant-expenses-section.mjs +1 -1
- package/dist/components/ui/appointment-action-dialogs.mjs +5 -5
- package/dist/components/ui/appointment-availability-settings.mjs +4 -4
- package/dist/components/ui/appointment-book-dialog.mjs +4 -4
- package/dist/components/ui/appointment-detail-sheet.mjs +6 -6
- package/dist/components/ui/appointment-upcoming-card.mjs +4 -4
- package/dist/components/ui/asset-accordion.mjs +7 -7
- package/dist/components/ui/assets-liabilities-side-card.js +19 -66
- package/dist/components/ui/assets-liabilities-side-card.mjs +22 -69
- package/dist/components/ui/backoffice-alert-history-chart.js +1 -1
- package/dist/components/ui/backoffice-alert-history-chart.mjs +5 -5
- package/dist/components/ui/backoffice-alert-matching-chart.js +1 -1
- package/dist/components/ui/backoffice-alert-matching-chart.mjs +5 -5
- package/dist/components/ui/backoffice-alerts-chart.js +1 -1
- package/dist/components/ui/backoffice-alerts-chart.mjs +5 -5
- package/dist/components/ui/backoffice-connections-chart.js +1 -1
- package/dist/components/ui/backoffice-connections-chart.mjs +5 -5
- package/dist/components/ui/backoffice-contact-history-chart.js +1 -1
- package/dist/components/ui/backoffice-contact-history-chart.mjs +5 -5
- package/dist/components/ui/backoffice-contact-matching-chart.js +1 -1
- package/dist/components/ui/backoffice-contact-matching-chart.mjs +5 -5
- package/dist/components/ui/backoffice-signup-steps.mjs +4 -4
- package/dist/components/ui/bank-statement-generate-dialog.mjs +4 -4
- package/dist/components/ui/bank-statement-pdf-viewer.mjs +4 -4
- package/dist/components/ui/borrowing-capacity-atoms.js +3 -6
- package/dist/components/ui/borrowing-capacity-atoms.mjs +2 -2
- package/dist/components/ui/borrowing-capacity-card.js +5 -5
- package/dist/components/ui/borrowing-capacity-card.mjs +6 -6
- package/dist/components/ui/borrowing-capacity-line-chart.js +5 -5
- package/dist/components/ui/borrowing-capacity-line-chart.mjs +5 -5
- package/dist/components/ui/calculator-section.mjs +4 -4
- package/dist/components/ui/cash-balance-line-chart.js +102 -46
- package/dist/components/ui/cash-balance-line-chart.mjs +5 -5
- package/dist/components/ui/cashflow-bar-chart.js +7 -4
- package/dist/components/ui/cashflow-bar-chart.mjs +5 -5
- package/dist/components/ui/category-edit-dialog.mjs +4 -4
- package/dist/components/ui/color-picker.mjs +2 -2
- package/dist/components/ui/contact-alert-dialog/index.mjs +4 -4
- package/dist/components/ui/create-contact-modal.mjs +4 -4
- package/dist/components/ui/csv-import-modal.mjs +4 -4
- package/dist/components/ui/dashboard-expense-categories.js +96 -63
- package/dist/components/ui/dashboard-expense-categories.mjs +101 -66
- package/dist/components/ui/dashboard-transactions-table.js +37 -44
- package/dist/components/ui/dashboard-transactions-table.mjs +45 -52
- package/dist/components/ui/data-table.mjs +2 -2
- package/dist/components/ui/date-picker.mjs +2 -2
- package/dist/components/ui/debt-accordion.mjs +7 -7
- package/dist/components/ui/delete-contact-component.mjs +4 -4
- package/dist/components/ui/dialog.mjs +3 -3
- package/dist/components/ui/document-checklist-template.mjs +2 -2
- package/dist/components/ui/expense-bar-chart.js +8 -7
- package/dist/components/ui/expense-bar-chart.mjs +5 -5
- package/dist/components/ui/expense-categories-bar.js +261 -0
- package/dist/components/ui/expense-categories-bar.mjs +12 -0
- package/dist/components/ui/expense-work-details.js +8 -7
- package/dist/components/ui/expense-work-details.mjs +7 -7
- package/dist/components/ui/file-preview-dialog.mjs +4 -4
- package/dist/components/ui/financial-cards.mjs +2 -2
- package/dist/components/ui/financial-drawers.mjs +2 -2
- package/dist/components/ui/financial-sections.mjs +3 -3
- package/dist/components/ui/frontend-signup-steps.mjs +2 -2
- package/dist/components/ui/income-bar-chart.js +8 -7
- package/dist/components/ui/income-bar-chart.mjs +5 -5
- package/dist/components/ui/income-sources-card.mjs +1 -1
- package/dist/components/ui/income-summary-component.mjs +1 -1
- package/dist/components/ui/income-work-details.js +8 -7
- package/dist/components/ui/income-work-details.mjs +6 -6
- package/dist/components/ui/incoming-outgoings-card.js +2 -2
- package/dist/components/ui/incoming-outgoings-card.mjs +3 -3
- package/dist/components/ui/interest-rate-section.mjs +1 -1
- package/dist/components/ui/kanban-column.mjs +5 -5
- package/dist/components/ui/loan-application-cards.mjs +3 -3
- package/dist/components/ui/loan-financials.mjs +3 -3
- package/dist/components/ui/money-input-with-slider.mjs +2 -2
- package/dist/components/ui/opportunity-card.mjs +4 -4
- package/dist/components/ui/opportunity-edit-modals.mjs +4 -4
- package/dist/components/ui/opportunity-summary-tab.mjs +8 -8
- package/dist/components/ui/pagination.mjs +2 -2
- package/dist/components/ui/pipeline-board.mjs +6 -6
- package/dist/components/ui/pipeline-chart.mjs +2 -2
- package/dist/components/ui/pipeline-dialogs.mjs +4 -4
- package/dist/components/ui/policy-ai/index.mjs +2 -2
- package/dist/components/ui/property-asset-card.mjs +4 -4
- package/dist/components/ui/property-cashflow-doughnut-chart.js +3 -3
- package/dist/components/ui/property-cashflow-doughnut-chart.mjs +5 -5
- package/dist/components/ui/property-debt-equity-doughnut-chart.js +3 -3
- package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +5 -5
- package/dist/components/ui/property-list-carousel.mjs +2 -2
- package/dist/components/ui/property-mobile-estimate-line-chart.js +4 -4
- package/dist/components/ui/property-mobile-estimate-line-chart.mjs +5 -5
- package/dist/components/ui/property-report-dialog.mjs +5 -5
- package/dist/components/ui/resource-center/index.mjs +4 -4
- package/dist/components/ui/review-alerts-dialog.mjs +4 -4
- package/dist/components/ui/savings-goal-modal.mjs +7 -7
- package/dist/components/ui/scenario-drawer.mjs +4 -4
- package/dist/components/ui/scenario-list.js +4 -7
- package/dist/components/ui/scenario-list.mjs +5 -5
- package/dist/components/ui/share-details-dialog.mjs +4 -4
- package/dist/components/ui/sidebar-nav.mjs +4 -4
- package/dist/components/ui/signup-form-primitives.mjs +2 -2
- package/dist/components/ui/stage-timeline.mjs +1 -1
- package/dist/components/ui/support-agent/index.js +27 -11
- package/dist/components/ui/support-agent/index.mjs +3 -3
- package/dist/components/ui/top-three-product.mjs +1 -1
- package/dist/components/ui/transactions-expense-categories-doughnut-chart.js +3 -3
- package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +5 -5
- package/dist/components/ui/transactions-income-expense-bar-chart.mjs +5 -5
- package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js +4 -4
- package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +5 -5
- package/dist/components/ui/transactions-summary-block.js +13 -0
- package/dist/components/ui/transactions-summary-block.mjs +13 -0
- package/dist/index.js +2119 -1946
- package/dist/index.mjs +139 -135
- package/dist/lib/format-currency.js +54 -0
- package/dist/lib/format-currency.mjs +9 -0
- package/dist/styles.css +1 -1
- package/package.json +6 -1
- package/src/component-descriptions/assets-liabilities-side-card.md +19 -0
- package/src/component-descriptions/pipeline-chart.md +17 -0
- package/src/components/index.tsx +6 -0
- package/src/components/ui/assets-liabilities-side-card.tsx +43 -83
- package/src/components/ui/borrowing-capacity-atoms.tsx +4 -7
- package/src/components/ui/borrowing-capacity-line-chart.tsx +4 -4
- package/src/components/ui/cash-balance-line-chart.tsx +123 -42
- package/src/components/ui/cashflow-bar-chart.tsx +7 -4
- package/src/components/ui/chart-shared.tsx +4 -4
- package/src/components/ui/dashboard-expense-categories.tsx +136 -60
- package/src/components/ui/dashboard-transactions-table.tsx +42 -28
- package/src/components/ui/expense-bar-chart.tsx +32 -19
- package/src/components/ui/expense-categories-bar.tsx +178 -0
- package/src/components/ui/income-bar-chart.tsx +32 -19
- package/src/components/ui/incoming-outgoings-card.tsx +2 -2
- package/src/components/ui/property-mobile-estimate-line-chart.tsx +4 -4
- package/src/components/ui/scenario-list.tsx +2 -2
- package/src/components/ui/support-agent/support-agent-panel.tsx +40 -11
- package/src/components/ui/transactions-liabilities-breakdown-doughnut-chart.tsx +7 -5
- package/src/components/ui/transactions-summary-block.tsx +39 -6
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +2 -0
- package/dist/{chunk-CEYEK3TI.mjs → chunk-B4R62ID3.mjs} +3 -3
- package/dist/{chunk-7LN5OGC2.mjs → chunk-E3VAK4EB.mjs} +3 -3
- package/dist/{chunk-EY36WDCF.mjs → chunk-EEZFXE3P.mjs} +3 -3
- package/dist/{chunk-T5FRVEJQ.mjs → chunk-JTMN36BK.mjs} +3 -3
- /package/dist/{chunk-MN5NYQCL.mjs → chunk-XQDTFNVL.mjs} +0 -0
|
@@ -223,22 +223,6 @@ function formatCurrencyAbbrev(value) {
|
|
|
223
223
|
|
|
224
224
|
// src/components/ui/assets-liabilities-side-card.tsx
|
|
225
225
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
226
|
-
function MetricRow({
|
|
227
|
-
label,
|
|
228
|
-
value,
|
|
229
|
-
valueClass
|
|
230
|
-
}) {
|
|
231
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
232
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-sm font-medium text-foreground", children: label }),
|
|
233
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: cn("text-base font-semibold shrink-0", valueClass), children: value })
|
|
234
|
-
] });
|
|
235
|
-
}
|
|
236
|
-
function SubRow({ label, value }) {
|
|
237
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex items-center justify-between gap-2 pl-3 text-sm", children: [
|
|
238
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-muted-foreground", children: label }),
|
|
239
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "font-medium text-foreground", children: value })
|
|
240
|
-
] });
|
|
241
|
-
}
|
|
242
226
|
function AssetsLiabilitiesSideCard({
|
|
243
227
|
liabilities,
|
|
244
228
|
assets,
|
|
@@ -248,10 +232,14 @@ function AssetsLiabilitiesSideCard({
|
|
|
248
232
|
tooltipText = "Current snapshot of your financial position. These values are not affected by the date range filter.",
|
|
249
233
|
className
|
|
250
234
|
}) {
|
|
251
|
-
const
|
|
252
|
-
|
|
235
|
+
const cells = [
|
|
236
|
+
{ label: "Total Liabilities", value: liabilities, negative: true },
|
|
237
|
+
{ label: "Total Cash Assets", value: assets },
|
|
238
|
+
{ label: "Net Position", value: netPosition },
|
|
239
|
+
{ label: "Total Property Value", value: propertyValue }
|
|
240
|
+
];
|
|
253
241
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Card, { className: cn("flex flex-col", className), children: [
|
|
254
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CardHeader, { className: "pb-
|
|
242
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CardHeader, { className: "pb-3", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
255
243
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CardTitle, { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: title }),
|
|
256
244
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Tooltip, { children: [
|
|
257
245
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
@@ -265,61 +253,26 @@ function AssetsLiabilitiesSideCard({
|
|
|
265
253
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TooltipContent, { className: "max-w-56", children: tooltipText })
|
|
266
254
|
] }) })
|
|
267
255
|
] }) }),
|
|
268
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.
|
|
269
|
-
|
|
270
|
-
|
|
256
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CardContent, { className: "pb-5", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "grid grid-cols-2 gap-1.5", children: cells.map((cell) => {
|
|
257
|
+
const displayValue = `${cell.negative ? "-" : ""}${formatCurrencyAbbrev(Math.abs(cell.value))}`;
|
|
258
|
+
const fullValue = `${cell.negative ? "-" : ""}$${Math.abs(cell.value).toLocaleString()}`;
|
|
259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "bg-muted p-4", children: [
|
|
260
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "text-xs text-muted-foreground font-medium mb-1.5", children: cell.label }),
|
|
271
261
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Tooltip, { children: [
|
|
272
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.
|
|
262
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
273
263
|
"span",
|
|
274
264
|
{
|
|
275
265
|
className: cn(
|
|
276
|
-
"
|
|
277
|
-
|
|
266
|
+
"text-lg font-bold cursor-default",
|
|
267
|
+
cell.negative ? "text-brand-secondary" : "text-primary"
|
|
278
268
|
),
|
|
279
|
-
children:
|
|
280
|
-
netPositive ? "" : "-",
|
|
281
|
-
formatCurrencyAbbrev(Math.abs(netPosition))
|
|
282
|
-
]
|
|
269
|
+
children: displayValue
|
|
283
270
|
}
|
|
284
271
|
) }),
|
|
285
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.
|
|
286
|
-
netPositive ? "" : "-",
|
|
287
|
-
"$",
|
|
288
|
-
Math.abs(netPosition).toLocaleString()
|
|
289
|
-
] })
|
|
272
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TooltipContent, { children: fullValue })
|
|
290
273
|
] }) })
|
|
291
|
-
] })
|
|
292
|
-
|
|
293
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
294
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
295
|
-
MetricRow,
|
|
296
|
-
{
|
|
297
|
-
label: "Total Assets",
|
|
298
|
-
value: formatCurrencyAbbrev(totalAssets),
|
|
299
|
-
valueClass: "text-xl"
|
|
300
|
-
}
|
|
301
|
-
),
|
|
302
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
|
|
303
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SubRow, { label: "Cash Assets", value: formatCurrencyAbbrev(assets) }),
|
|
304
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
305
|
-
SubRow,
|
|
306
|
-
{
|
|
307
|
-
label: "Property Value",
|
|
308
|
-
value: formatCurrencyAbbrev(propertyValue)
|
|
309
|
-
}
|
|
310
|
-
)
|
|
311
|
-
] })
|
|
312
|
-
] }),
|
|
313
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "border-t border-border" }),
|
|
314
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
315
|
-
MetricRow,
|
|
316
|
-
{
|
|
317
|
-
label: "Total Liabilities",
|
|
318
|
-
value: `-${formatCurrencyAbbrev(liabilities)}`,
|
|
319
|
-
valueClass: "text-xl text-destructive"
|
|
320
|
-
}
|
|
321
|
-
)
|
|
322
|
-
] })
|
|
274
|
+
] }, cell.label);
|
|
275
|
+
}) }) })
|
|
323
276
|
] });
|
|
324
277
|
}
|
|
325
278
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
CardHeader,
|
|
11
11
|
CardTitle
|
|
12
12
|
} from "../../chunk-3VDET466.mjs";
|
|
13
|
-
import "../../chunk-XYSRRDBH.mjs";
|
|
14
|
-
import "../../chunk-FRCTOAKZ.mjs";
|
|
15
13
|
import {
|
|
16
14
|
formatCurrencyAbbrev
|
|
17
|
-
} from "../../chunk-
|
|
15
|
+
} from "../../chunk-XQDTFNVL.mjs";
|
|
16
|
+
import "../../chunk-XYSRRDBH.mjs";
|
|
17
|
+
import "../../chunk-FRCTOAKZ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
cn
|
|
20
20
|
} from "../../chunk-AFML43VJ.mjs";
|
|
@@ -23,22 +23,6 @@ import "../../chunk-WNQUEZJF.mjs";
|
|
|
23
23
|
// src/components/ui/assets-liabilities-side-card.tsx
|
|
24
24
|
import { Info } from "lucide-react";
|
|
25
25
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
-
function MetricRow({
|
|
27
|
-
label,
|
|
28
|
-
value,
|
|
29
|
-
valueClass
|
|
30
|
-
}) {
|
|
31
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
32
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: label }),
|
|
33
|
-
/* @__PURE__ */ jsx("span", { className: cn("text-base font-semibold shrink-0", valueClass), children: value })
|
|
34
|
-
] });
|
|
35
|
-
}
|
|
36
|
-
function SubRow({ label, value }) {
|
|
37
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 pl-3 text-sm", children: [
|
|
38
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: label }),
|
|
39
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-foreground", children: value })
|
|
40
|
-
] });
|
|
41
|
-
}
|
|
42
26
|
function AssetsLiabilitiesSideCard({
|
|
43
27
|
liabilities,
|
|
44
28
|
assets,
|
|
@@ -48,10 +32,14 @@ function AssetsLiabilitiesSideCard({
|
|
|
48
32
|
tooltipText = "Current snapshot of your financial position. These values are not affected by the date range filter.",
|
|
49
33
|
className
|
|
50
34
|
}) {
|
|
51
|
-
const
|
|
52
|
-
|
|
35
|
+
const cells = [
|
|
36
|
+
{ label: "Total Liabilities", value: liabilities, negative: true },
|
|
37
|
+
{ label: "Total Cash Assets", value: assets },
|
|
38
|
+
{ label: "Net Position", value: netPosition },
|
|
39
|
+
{ label: "Total Property Value", value: propertyValue }
|
|
40
|
+
];
|
|
53
41
|
return /* @__PURE__ */ jsxs(Card, { className: cn("flex flex-col", className), children: [
|
|
54
|
-
/* @__PURE__ */ jsx(CardHeader, { className: "pb-
|
|
42
|
+
/* @__PURE__ */ jsx(CardHeader, { className: "pb-3", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
55
43
|
/* @__PURE__ */ jsx(CardTitle, { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: title }),
|
|
56
44
|
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
57
45
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
@@ -65,61 +53,26 @@ function AssetsLiabilitiesSideCard({
|
|
|
65
53
|
/* @__PURE__ */ jsx(TooltipContent, { className: "max-w-56", children: tooltipText })
|
|
66
54
|
] }) })
|
|
67
55
|
] }) }),
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
|
|
70
|
-
|
|
56
|
+
/* @__PURE__ */ jsx(CardContent, { className: "pb-5", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-1.5", children: cells.map((cell) => {
|
|
57
|
+
const displayValue = `${cell.negative ? "-" : ""}${formatCurrencyAbbrev(Math.abs(cell.value))}`;
|
|
58
|
+
const fullValue = `${cell.negative ? "-" : ""}$${Math.abs(cell.value).toLocaleString()}`;
|
|
59
|
+
return /* @__PURE__ */ jsxs("div", { className: "bg-muted p-4", children: [
|
|
60
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground font-medium mb-1.5", children: cell.label }),
|
|
71
61
|
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
72
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
73
63
|
"span",
|
|
74
64
|
{
|
|
75
65
|
className: cn(
|
|
76
|
-
"
|
|
77
|
-
|
|
66
|
+
"text-lg font-bold cursor-default",
|
|
67
|
+
cell.negative ? "text-brand-secondary" : "text-primary"
|
|
78
68
|
),
|
|
79
|
-
children:
|
|
80
|
-
netPositive ? "" : "-",
|
|
81
|
-
formatCurrencyAbbrev(Math.abs(netPosition))
|
|
82
|
-
]
|
|
69
|
+
children: displayValue
|
|
83
70
|
}
|
|
84
71
|
) }),
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
netPositive ? "" : "-",
|
|
87
|
-
"$",
|
|
88
|
-
Math.abs(netPosition).toLocaleString()
|
|
89
|
-
] })
|
|
72
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: fullValue })
|
|
90
73
|
] }) })
|
|
91
|
-
] })
|
|
92
|
-
|
|
93
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
94
|
-
/* @__PURE__ */ jsx(
|
|
95
|
-
MetricRow,
|
|
96
|
-
{
|
|
97
|
-
label: "Total Assets",
|
|
98
|
-
value: formatCurrencyAbbrev(totalAssets),
|
|
99
|
-
valueClass: "text-xl"
|
|
100
|
-
}
|
|
101
|
-
),
|
|
102
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
103
|
-
/* @__PURE__ */ jsx(SubRow, { label: "Cash Assets", value: formatCurrencyAbbrev(assets) }),
|
|
104
|
-
/* @__PURE__ */ jsx(
|
|
105
|
-
SubRow,
|
|
106
|
-
{
|
|
107
|
-
label: "Property Value",
|
|
108
|
-
value: formatCurrencyAbbrev(propertyValue)
|
|
109
|
-
}
|
|
110
|
-
)
|
|
111
|
-
] })
|
|
112
|
-
] }),
|
|
113
|
-
/* @__PURE__ */ jsx("div", { className: "border-t border-border" }),
|
|
114
|
-
/* @__PURE__ */ jsx(
|
|
115
|
-
MetricRow,
|
|
116
|
-
{
|
|
117
|
-
label: "Total Liabilities",
|
|
118
|
-
value: `-${formatCurrencyAbbrev(liabilities)}`,
|
|
119
|
-
valueClass: "text-xl text-destructive"
|
|
120
|
-
}
|
|
121
|
-
)
|
|
122
|
-
] })
|
|
74
|
+
] }, cell.label);
|
|
75
|
+
}) }) })
|
|
123
76
|
] });
|
|
124
77
|
}
|
|
125
78
|
export {
|
|
@@ -429,7 +429,7 @@ function ChartLegendItem({
|
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
),
|
|
432
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-
|
|
432
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-sm text-muted-foreground leading-none", children: label })
|
|
433
433
|
] });
|
|
434
434
|
}
|
|
435
435
|
function ChartPeriodButton({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BackofficeAlertHistoryChart
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-YWJAIPUA.mjs";
|
|
4
4
|
import "../../chunk-GTAVSBDO.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-WLXP4OOF.mjs";
|
|
6
6
|
import "../../chunk-R2ON6CAN.mjs";
|
|
7
7
|
import "../../chunk-3VDET466.mjs";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-FRCTOAKZ.mjs";
|
|
10
|
-
import "../../chunk-MN5NYQCL.mjs";
|
|
8
|
+
import "../../chunk-XQDTFNVL.mjs";
|
|
11
9
|
import "../../chunk-NOOEKOWY.mjs";
|
|
12
10
|
import "../../chunk-R4HCRDU5.mjs";
|
|
11
|
+
import "../../chunk-XYSRRDBH.mjs";
|
|
12
|
+
import "../../chunk-FRCTOAKZ.mjs";
|
|
13
13
|
import "../../chunk-AFML43VJ.mjs";
|
|
14
14
|
import "../../chunk-WNQUEZJF.mjs";
|
|
15
15
|
export {
|
|
@@ -430,7 +430,7 @@ function ChartLegendItem({
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
),
|
|
433
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-
|
|
433
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-sm text-muted-foreground leading-none", children: label })
|
|
434
434
|
] });
|
|
435
435
|
}
|
|
436
436
|
function ChartPeriodButton({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BackofficeAlertMatchingChart
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-UVZ3JWFG.mjs";
|
|
4
4
|
import "../../chunk-GTAVSBDO.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-WLXP4OOF.mjs";
|
|
6
6
|
import "../../chunk-R2ON6CAN.mjs";
|
|
7
7
|
import "../../chunk-3VDET466.mjs";
|
|
8
|
+
import "../../chunk-XQDTFNVL.mjs";
|
|
8
9
|
import "../../chunk-OWFQSXVD.mjs";
|
|
9
10
|
import "../../chunk-6QAFGZC2.mjs";
|
|
10
|
-
import "../../chunk-XYSRRDBH.mjs";
|
|
11
|
-
import "../../chunk-FRCTOAKZ.mjs";
|
|
12
|
-
import "../../chunk-MN5NYQCL.mjs";
|
|
13
11
|
import "../../chunk-NOOEKOWY.mjs";
|
|
14
12
|
import "../../chunk-R4HCRDU5.mjs";
|
|
13
|
+
import "../../chunk-XYSRRDBH.mjs";
|
|
14
|
+
import "../../chunk-FRCTOAKZ.mjs";
|
|
15
15
|
import "../../chunk-AFML43VJ.mjs";
|
|
16
16
|
import "../../chunk-WNQUEZJF.mjs";
|
|
17
17
|
export {
|
|
@@ -430,7 +430,7 @@ function ChartLegendItem({
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
),
|
|
433
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-
|
|
433
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-sm text-muted-foreground leading-none", children: label })
|
|
434
434
|
] });
|
|
435
435
|
}
|
|
436
436
|
function ChartPeriodButton({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BackofficeAlertsChart
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-5XD7A7YC.mjs";
|
|
4
4
|
import "../../chunk-GTAVSBDO.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-WLXP4OOF.mjs";
|
|
6
6
|
import "../../chunk-R2ON6CAN.mjs";
|
|
7
7
|
import "../../chunk-3VDET466.mjs";
|
|
8
|
+
import "../../chunk-XQDTFNVL.mjs";
|
|
8
9
|
import "../../chunk-OWFQSXVD.mjs";
|
|
9
10
|
import "../../chunk-6QAFGZC2.mjs";
|
|
10
|
-
import "../../chunk-XYSRRDBH.mjs";
|
|
11
|
-
import "../../chunk-FRCTOAKZ.mjs";
|
|
12
|
-
import "../../chunk-MN5NYQCL.mjs";
|
|
13
11
|
import "../../chunk-NOOEKOWY.mjs";
|
|
14
12
|
import "../../chunk-R4HCRDU5.mjs";
|
|
13
|
+
import "../../chunk-XYSRRDBH.mjs";
|
|
14
|
+
import "../../chunk-FRCTOAKZ.mjs";
|
|
15
15
|
import "../../chunk-AFML43VJ.mjs";
|
|
16
16
|
import "../../chunk-WNQUEZJF.mjs";
|
|
17
17
|
export {
|
|
@@ -430,7 +430,7 @@ function ChartLegendItem({
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
),
|
|
433
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-
|
|
433
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-sm text-muted-foreground leading-none", children: label })
|
|
434
434
|
] });
|
|
435
435
|
}
|
|
436
436
|
function ChartPeriodButton({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BackofficeConnectionsChart
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-P7NSCTAW.mjs";
|
|
4
4
|
import "../../chunk-GTAVSBDO.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-WLXP4OOF.mjs";
|
|
6
6
|
import "../../chunk-R2ON6CAN.mjs";
|
|
7
7
|
import "../../chunk-3VDET466.mjs";
|
|
8
|
+
import "../../chunk-XQDTFNVL.mjs";
|
|
8
9
|
import "../../chunk-OWFQSXVD.mjs";
|
|
9
10
|
import "../../chunk-6QAFGZC2.mjs";
|
|
10
|
-
import "../../chunk-XYSRRDBH.mjs";
|
|
11
|
-
import "../../chunk-FRCTOAKZ.mjs";
|
|
12
|
-
import "../../chunk-MN5NYQCL.mjs";
|
|
13
11
|
import "../../chunk-NOOEKOWY.mjs";
|
|
14
12
|
import "../../chunk-R4HCRDU5.mjs";
|
|
13
|
+
import "../../chunk-XYSRRDBH.mjs";
|
|
14
|
+
import "../../chunk-FRCTOAKZ.mjs";
|
|
15
15
|
import "../../chunk-AFML43VJ.mjs";
|
|
16
16
|
import "../../chunk-WNQUEZJF.mjs";
|
|
17
17
|
export {
|
|
@@ -430,7 +430,7 @@ function ChartLegendItem({
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
),
|
|
433
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-
|
|
433
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-sm text-muted-foreground leading-none", children: label })
|
|
434
434
|
] });
|
|
435
435
|
}
|
|
436
436
|
function ChartPeriodButton({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BackofficeContactHistoryChart
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-5RYH7SOQ.mjs";
|
|
4
4
|
import "../../chunk-GTAVSBDO.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-WLXP4OOF.mjs";
|
|
6
6
|
import "../../chunk-R2ON6CAN.mjs";
|
|
7
7
|
import "../../chunk-3VDET466.mjs";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-FRCTOAKZ.mjs";
|
|
10
|
-
import "../../chunk-MN5NYQCL.mjs";
|
|
8
|
+
import "../../chunk-XQDTFNVL.mjs";
|
|
11
9
|
import "../../chunk-NOOEKOWY.mjs";
|
|
12
10
|
import "../../chunk-R4HCRDU5.mjs";
|
|
11
|
+
import "../../chunk-XYSRRDBH.mjs";
|
|
12
|
+
import "../../chunk-FRCTOAKZ.mjs";
|
|
13
13
|
import "../../chunk-AFML43VJ.mjs";
|
|
14
14
|
import "../../chunk-WNQUEZJF.mjs";
|
|
15
15
|
export {
|
|
@@ -430,7 +430,7 @@ function ChartLegendItem({
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
),
|
|
433
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-
|
|
433
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-sm text-muted-foreground leading-none", children: label })
|
|
434
434
|
] });
|
|
435
435
|
}
|
|
436
436
|
function ChartPeriodButton({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BackofficeContactMatchingChart
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-ZUHFYW65.mjs";
|
|
4
4
|
import "../../chunk-GTAVSBDO.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-WLXP4OOF.mjs";
|
|
6
6
|
import "../../chunk-R2ON6CAN.mjs";
|
|
7
7
|
import "../../chunk-3VDET466.mjs";
|
|
8
|
+
import "../../chunk-XQDTFNVL.mjs";
|
|
8
9
|
import "../../chunk-OWFQSXVD.mjs";
|
|
9
10
|
import "../../chunk-6QAFGZC2.mjs";
|
|
10
|
-
import "../../chunk-XYSRRDBH.mjs";
|
|
11
|
-
import "../../chunk-FRCTOAKZ.mjs";
|
|
12
|
-
import "../../chunk-MN5NYQCL.mjs";
|
|
13
11
|
import "../../chunk-NOOEKOWY.mjs";
|
|
14
12
|
import "../../chunk-R4HCRDU5.mjs";
|
|
13
|
+
import "../../chunk-XYSRRDBH.mjs";
|
|
14
|
+
import "../../chunk-FRCTOAKZ.mjs";
|
|
15
15
|
import "../../chunk-AFML43VJ.mjs";
|
|
16
16
|
import "../../chunk-WNQUEZJF.mjs";
|
|
17
17
|
export {
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
PaymentView,
|
|
7
7
|
PersonalDetailsStep,
|
|
8
8
|
StripeView
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-EEZFXE3P.mjs";
|
|
10
10
|
import "../../chunk-4UT3RZ2D.mjs";
|
|
11
11
|
import "../../chunk-IKVF4XE2.mjs";
|
|
12
|
-
import "../../chunk-I4KVSZCH.mjs";
|
|
13
12
|
import "../../chunk-X3VEDQPO.mjs";
|
|
13
|
+
import "../../chunk-I4KVSZCH.mjs";
|
|
14
14
|
import "../../chunk-MS3GNXMB.mjs";
|
|
15
15
|
import "../../chunk-3S6KVFF5.mjs";
|
|
16
16
|
import "../../chunk-IKXYTCSB.mjs";
|
|
@@ -19,10 +19,10 @@ import "../../chunk-2GIYVERS.mjs";
|
|
|
19
19
|
import "../../chunk-F3CU6KEI.mjs";
|
|
20
20
|
import "../../chunk-LSRGA5BI.mjs";
|
|
21
21
|
import "../../chunk-LBTHZSBT.mjs";
|
|
22
|
-
import "../../chunk-XYSRRDBH.mjs";
|
|
23
|
-
import "../../chunk-FRCTOAKZ.mjs";
|
|
24
22
|
import "../../chunk-NOOEKOWY.mjs";
|
|
25
23
|
import "../../chunk-R4HCRDU5.mjs";
|
|
24
|
+
import "../../chunk-XYSRRDBH.mjs";
|
|
25
|
+
import "../../chunk-FRCTOAKZ.mjs";
|
|
26
26
|
import "../../chunk-AFML43VJ.mjs";
|
|
27
27
|
import "../../chunk-WNQUEZJF.mjs";
|
|
28
28
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BankStatementGenerateDialog
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-KWYFJQV6.mjs";
|
|
4
4
|
import "../../chunk-MS3GNXMB.mjs";
|
|
5
5
|
import "../../chunk-6WRDXE7A.mjs";
|
|
6
6
|
import "../../chunk-GT3RU6GA.mjs";
|
|
7
7
|
import "../../chunk-IKXYTCSB.mjs";
|
|
8
8
|
import "../../chunk-K6VCC2MK.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-JTMN36BK.mjs";
|
|
10
10
|
import "../../chunk-2GIYVERS.mjs";
|
|
11
11
|
import "../../chunk-JVMXMFBB.mjs";
|
|
12
12
|
import "../../chunk-ICCPK3J2.mjs";
|
|
@@ -17,10 +17,10 @@ import "../../chunk-FBNEIYSE.mjs";
|
|
|
17
17
|
import "../../chunk-LHWJQNLG.mjs";
|
|
18
18
|
import "../../chunk-LSRGA5BI.mjs";
|
|
19
19
|
import "../../chunk-LBTHZSBT.mjs";
|
|
20
|
-
import "../../chunk-XYSRRDBH.mjs";
|
|
21
|
-
import "../../chunk-FRCTOAKZ.mjs";
|
|
22
20
|
import "../../chunk-NOOEKOWY.mjs";
|
|
23
21
|
import "../../chunk-R4HCRDU5.mjs";
|
|
22
|
+
import "../../chunk-XYSRRDBH.mjs";
|
|
23
|
+
import "../../chunk-FRCTOAKZ.mjs";
|
|
24
24
|
import "../../chunk-AFML43VJ.mjs";
|
|
25
25
|
import "../../chunk-WNQUEZJF.mjs";
|
|
26
26
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BankStatementPDFViewer
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-4PVCJ3JD.mjs";
|
|
4
|
+
import "../../chunk-JTMN36BK.mjs";
|
|
5
5
|
import "../../chunk-JVMXMFBB.mjs";
|
|
6
|
-
import "../../chunk-XYSRRDBH.mjs";
|
|
7
|
-
import "../../chunk-FRCTOAKZ.mjs";
|
|
8
6
|
import "../../chunk-NOOEKOWY.mjs";
|
|
9
7
|
import "../../chunk-R4HCRDU5.mjs";
|
|
8
|
+
import "../../chunk-XYSRRDBH.mjs";
|
|
9
|
+
import "../../chunk-FRCTOAKZ.mjs";
|
|
10
10
|
import "../../chunk-AFML43VJ.mjs";
|
|
11
11
|
import "../../chunk-WNQUEZJF.mjs";
|
|
12
12
|
export {
|
|
@@ -351,7 +351,7 @@ function LoanToValueRatio({
|
|
|
351
351
|
] });
|
|
352
352
|
}
|
|
353
353
|
function AddScenarioButton({
|
|
354
|
-
title = "
|
|
354
|
+
title = "Add New Scenario",
|
|
355
355
|
disabled = false,
|
|
356
356
|
onClick,
|
|
357
357
|
className
|
|
@@ -359,13 +359,10 @@ function AddScenarioButton({
|
|
|
359
359
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
360
360
|
Button,
|
|
361
361
|
{
|
|
362
|
-
variant: "outline
|
|
362
|
+
variant: "outline",
|
|
363
363
|
disabled,
|
|
364
364
|
onClick,
|
|
365
|
-
className: cn(
|
|
366
|
-
"w-full justify-between border-dashed text-base",
|
|
367
|
-
className
|
|
368
|
-
),
|
|
365
|
+
className: cn("w-full justify-between", className),
|
|
369
366
|
children: [
|
|
370
367
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { children: title }),
|
|
371
368
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react2.Plus, { size: 18, className: "shrink-0" })
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
BorrowCapacityItem,
|
|
4
4
|
LoanToValueRatio,
|
|
5
5
|
StatisticItem
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-RKBLVNDC.mjs";
|
|
7
|
+
import "../../chunk-XQDTFNVL.mjs";
|
|
8
8
|
import "../../chunk-NOOEKOWY.mjs";
|
|
9
9
|
import "../../chunk-R4HCRDU5.mjs";
|
|
10
10
|
import "../../chunk-AFML43VJ.mjs";
|
|
@@ -435,7 +435,7 @@ function ChartLegendItem({
|
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
),
|
|
438
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-
|
|
438
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-sm text-muted-foreground leading-none", children: label })
|
|
439
439
|
] });
|
|
440
440
|
}
|
|
441
441
|
|
|
@@ -702,7 +702,7 @@ function BorrowingCapacityLineChart({
|
|
|
702
702
|
maxRotation: 0,
|
|
703
703
|
minRotation: 0,
|
|
704
704
|
color: FALLBACK_TICK,
|
|
705
|
-
font: { size:
|
|
705
|
+
font: { size: 12, family: fontFamily },
|
|
706
706
|
callback: function(_, index) {
|
|
707
707
|
const iso = labels[index];
|
|
708
708
|
return iso ? formatDateLabel(iso) : "";
|
|
@@ -718,7 +718,7 @@ function BorrowingCapacityLineChart({
|
|
|
718
718
|
maxTicksLimit: 6,
|
|
719
719
|
padding: 8,
|
|
720
720
|
color: FALLBACK_TICK,
|
|
721
|
-
font: { size:
|
|
721
|
+
font: { size: 12, family: fontFamily },
|
|
722
722
|
callback: (v) => formatCurrencyAbbrev(Number(v))
|
|
723
723
|
}
|
|
724
724
|
}
|
|
@@ -749,8 +749,8 @@ function BorrowingCapacityLineChart({
|
|
|
749
749
|
style: { maxWidth: width, fontFamily },
|
|
750
750
|
children: [
|
|
751
751
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CardHeader, { className: "px-3 sm:px-6", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-start justify-between gap-4", children: [
|
|
752
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CardTitle, { className: "text-xs font-semibold uppercase tracking-
|
|
753
|
-
kpiValue != null && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "shrink-0 text-
|
|
752
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CardTitle, { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: title }),
|
|
753
|
+
kpiValue != null && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "shrink-0 text-lg font-bold tabular-nums", children: formatCurrency(kpiValue / 100) })
|
|
754
754
|
] }) }),
|
|
755
755
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CardContent, { className: "px-3 sm:px-6", children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Skeleton, { style: { height, width: "100%" } }) : !hasData ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Empty, { className: "flex-none p-4", style: { height }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(EmptyDescription, { children: "No borrowing capacity data available" }) }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
|
|
756
756
|
legendPosition === "top" && legendWrapper,
|
|
@@ -2,21 +2,21 @@ import {
|
|
|
2
2
|
BorrowCapacityItem,
|
|
3
3
|
LoanToValueRatio,
|
|
4
4
|
StatisticItem
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-RKBLVNDC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
BorrowingCapacityLineChart
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-YPATB6YQ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Skeleton
|
|
11
11
|
} from "../../chunk-GTAVSBDO.mjs";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-WLXP4OOF.mjs";
|
|
13
13
|
import "../../chunk-R2ON6CAN.mjs";
|
|
14
14
|
import "../../chunk-3VDET466.mjs";
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-FRCTOAKZ.mjs";
|
|
17
|
-
import "../../chunk-MN5NYQCL.mjs";
|
|
15
|
+
import "../../chunk-XQDTFNVL.mjs";
|
|
18
16
|
import "../../chunk-NOOEKOWY.mjs";
|
|
19
17
|
import "../../chunk-R4HCRDU5.mjs";
|
|
18
|
+
import "../../chunk-XYSRRDBH.mjs";
|
|
19
|
+
import "../../chunk-FRCTOAKZ.mjs";
|
|
20
20
|
import {
|
|
21
21
|
cn
|
|
22
22
|
} from "../../chunk-AFML43VJ.mjs";
|