@wealthx/shadcn 1.0.2 → 1.2.0
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 +235 -138
- package/CHANGELOG.md +12 -0
- package/README.md +82 -0
- package/dist/{chunk-6OJF6XRN.mjs → chunk-24FUO7TD.mjs} +4 -8
- package/dist/{chunk-4AJ5HWHD.mjs → chunk-2I5S2AMY.mjs} +3 -3
- package/dist/chunk-2SF672SZ.mjs +161 -0
- package/dist/{chunk-GPRJQ24C.mjs → chunk-34NWQURD.mjs} +2 -2
- package/dist/{chunk-MQ72DIBH.mjs → chunk-3GF7OVTP.mjs} +14 -5
- package/dist/chunk-3WMX6KWS.mjs +245 -0
- package/dist/{chunk-PMKODV6M.mjs → chunk-462HMNO4.mjs} +6 -10
- package/dist/chunk-4CX4SBRO.mjs +153 -0
- package/dist/chunk-4MN6UQHG.mjs +443 -0
- package/dist/chunk-5QQVZTVZ.mjs +233 -0
- package/dist/{chunk-BGP2N52Z.mjs → chunk-66MI7Q4B.mjs} +5 -5
- package/dist/chunk-6FCGKSZX.mjs +268 -0
- package/dist/{chunk-CGOKTPXU.mjs → chunk-6JQFUE5I.mjs} +20 -23
- package/dist/{chunk-Z3MK2KKZ.mjs → chunk-7DHU4VGG.mjs} +7 -3
- package/dist/{chunk-VZ2NR7L3.mjs → chunk-7PYJD5JI.mjs} +35 -27
- package/dist/{chunk-JU2RUWHF.mjs → chunk-7XJHLGUV.mjs} +1 -1
- package/dist/{chunk-BMFN37JH.mjs → chunk-7YAU5CY6.mjs} +1 -1
- package/dist/chunk-A56YQQHG.mjs +402 -0
- package/dist/chunk-AH52LG6N.mjs +315 -0
- package/dist/{chunk-SLWCCURD.mjs → chunk-CLIN5525.mjs} +8 -4
- package/dist/{chunk-3VQNJ235.mjs → chunk-CSDO6VBW.mjs} +7 -0
- package/dist/chunk-D4ILTPOG.mjs +293 -0
- package/dist/{chunk-HS7TFG7V.mjs → chunk-D6ID6M4V.mjs} +1 -1
- package/dist/chunk-DOH3EHX7.mjs +378 -0
- package/dist/{chunk-MJIEMGRD.mjs → chunk-EFRENWEJ.mjs} +9 -17
- package/dist/chunk-ERGGHC2V.mjs +185 -0
- package/dist/{chunk-OXQQNQZI.mjs → chunk-FEZKMUCF.mjs} +10 -1
- package/dist/{chunk-55CEW76V.mjs → chunk-FH6QVUVZ.mjs} +1 -1
- package/dist/chunk-FMAXJ2SI.mjs +71 -0
- package/dist/chunk-FZIXGLMV.mjs +173 -0
- package/dist/{chunk-DS2AMHN2.mjs → chunk-GYMYRIZP.mjs} +2 -2
- package/dist/{chunk-KQDD5MU3.mjs → chunk-H45TKD34.mjs} +5 -5
- package/dist/{chunk-BBJBJSXQ.mjs → chunk-J5UICVJS.mjs} +1 -1
- package/dist/{chunk-RL772EH7.mjs → chunk-JHJHG4GO.mjs} +4 -12
- package/dist/chunk-KMCGSZTX.mjs +177 -0
- package/dist/{chunk-FHNT55I5.mjs → chunk-KUDCQ4FI.mjs} +4 -4
- package/dist/chunk-LE6YFY6D.mjs +209 -0
- package/dist/{chunk-HUVTPUV2.mjs → chunk-LLVQKSU3.mjs} +23 -19
- package/dist/{chunk-KKHTJNMM.mjs → chunk-MARPPFOJ.mjs} +8 -4
- package/dist/{chunk-6AFMNC42.mjs → chunk-N2PT566P.mjs} +15 -11
- package/dist/chunk-NLCKVHWB.mjs +161 -0
- package/dist/{chunk-YN5SYTOO.mjs → chunk-NQPOYKAQ.mjs} +9 -5
- package/dist/{chunk-ZZV5JVNW.mjs → chunk-NSLMILBT.mjs} +3 -7
- package/dist/chunk-NXA3CZ7A.mjs +248 -0
- package/dist/chunk-OGOYQ7BG.mjs +150 -0
- package/dist/{chunk-3NQGYJEZ.mjs → chunk-P6AM5V7O.mjs} +10 -18
- package/dist/{chunk-CZ3BW5GL.mjs → chunk-P76HMUI6.mjs} +5 -11
- package/dist/chunk-PCPLO5HT.mjs +671 -0
- package/dist/chunk-PG6K5XEC.mjs +475 -0
- package/dist/chunk-PJHPSRYD.mjs +234 -0
- package/dist/{chunk-DDPA2XXS.mjs → chunk-PMB3A7V3.mjs} +2 -2
- package/dist/chunk-PR6V5XKM.mjs +209 -0
- package/dist/{chunk-46OFHMQA.mjs → chunk-Q76O3RIQ.mjs} +10 -6
- package/dist/chunk-QVKWW6KE.mjs +272 -0
- package/dist/chunk-RGU7HOEC.mjs +140 -0
- package/dist/{chunk-JF4PHPD5.mjs → chunk-RGVKLTLH.mjs} +4 -4
- package/dist/{chunk-VG6UF6UT.mjs → chunk-RP3SQYA3.mjs} +2 -2
- package/dist/chunk-RRBS6D63.mjs +163 -0
- package/dist/chunk-SMQ3DG25.mjs +285 -0
- package/dist/chunk-SPJ5KXW7.mjs +199 -0
- package/dist/chunk-SYOD63OZ.mjs +225 -0
- package/dist/chunk-UFYSFDER.mjs +42 -0
- package/dist/chunk-VACKZOMY.mjs +190 -0
- package/dist/chunk-VLQZANBF.mjs +42 -0
- package/dist/chunk-WA6O6EUR.mjs +1885 -0
- package/dist/{chunk-E3K6O4FZ.mjs → chunk-WAZD7NFU.mjs} +5 -2
- package/dist/chunk-WG6JGJXB.mjs +165 -0
- package/dist/{chunk-I64K754C.mjs → chunk-WNGWBVLV.mjs} +2 -2
- package/dist/{chunk-3U7SD3MS.mjs → chunk-WOEHFRGB.mjs} +3 -3
- package/dist/{chunk-DKZRJOMF.mjs → chunk-XIRTEFKH.mjs} +12 -12
- package/dist/chunk-Y6DWJSKZ.mjs +79 -0
- package/dist/chunk-YKPROFLB.mjs +161 -0
- package/dist/{chunk-K76E2TQU.mjs → chunk-ZRO5JO3H.mjs} +107 -67
- package/dist/{chunk-VYMHBV6D.mjs → chunk-ZU4NV6RG.mjs} +5 -3
- package/dist/components/ui/accordion.js +40 -4
- package/dist/components/ui/accordion.mjs +2 -2
- package/dist/components/ui/add-column-modal.js +789 -0
- package/dist/components/ui/add-column-modal.mjs +17 -0
- package/dist/components/ui/add-lead-modal.js +647 -0
- package/dist/components/ui/add-lead-modal.mjs +16 -0
- package/dist/components/ui/ai-assistant-drawer.js +686 -0
- package/dist/components/ui/ai-assistant-drawer.mjs +16 -0
- package/dist/components/ui/alert-dialog.js +37 -5
- package/dist/components/ui/alert-dialog.mjs +4 -4
- package/dist/components/ui/alert.js +37 -11
- package/dist/components/ui/alert.mjs +2 -2
- package/dist/components/ui/avatar.js +36 -8
- package/dist/components/ui/avatar.mjs +2 -2
- package/dist/components/ui/backoffice-alert-history-chart.js +624 -0
- package/dist/components/ui/backoffice-alert-history-chart.mjs +16 -0
- package/dist/components/ui/backoffice-contact-history-chart.js +687 -0
- package/dist/components/ui/backoffice-contact-history-chart.mjs +16 -0
- package/dist/components/ui/badge.js +37 -2
- package/dist/components/ui/badge.mjs +2 -2
- package/dist/components/ui/borrowing-capacity-line-chart.js +639 -0
- package/dist/components/ui/borrowing-capacity-line-chart.mjs +16 -0
- package/dist/components/ui/button.js +35 -3
- package/dist/components/ui/button.mjs +2 -2
- package/dist/components/ui/calendar.js +43 -19
- package/dist/components/ui/calendar.mjs +3 -3
- package/dist/components/ui/card.js +40 -4
- package/dist/components/ui/card.mjs +2 -2
- package/dist/components/ui/cash-balance-line-chart.js +627 -0
- package/dist/components/ui/cash-balance-line-chart.mjs +16 -0
- package/dist/components/ui/cashflow-bar-chart.js +650 -0
- package/dist/components/ui/cashflow-bar-chart.mjs +16 -0
- package/dist/components/ui/checkbox.js +36 -5
- package/dist/components/ui/checkbox.mjs +2 -3
- package/dist/components/ui/chip.js +37 -2
- package/dist/components/ui/chip.mjs +3 -3
- package/dist/components/ui/combobox.js +280 -0
- package/dist/components/ui/combobox.mjs +28 -0
- package/dist/components/ui/data-table.js +160 -88
- package/dist/components/ui/data-table.mjs +10 -11
- package/dist/components/ui/date-picker.js +44 -20
- package/dist/components/ui/date-picker.mjs +6 -7
- package/dist/components/ui/dialog.js +44 -12
- package/dist/components/ui/dialog.mjs +4 -4
- package/dist/components/ui/drawer.js +46 -10
- package/dist/components/ui/drawer.mjs +3 -3
- package/dist/components/ui/dropdown-menu.js +40 -16
- package/dist/components/ui/dropdown-menu.mjs +3 -3
- package/dist/components/ui/empty.js +41 -5
- package/dist/components/ui/empty.mjs +2 -2
- package/dist/components/ui/expense-bar-chart.js +642 -0
- package/dist/components/ui/expense-bar-chart.mjs +16 -0
- package/dist/components/ui/field.js +53 -21
- package/dist/components/ui/field.mjs +4 -4
- package/dist/components/ui/financial-cards.js +1002 -0
- package/dist/components/ui/financial-cards.mjs +24 -0
- package/dist/components/ui/financial-drawers.js +637 -0
- package/dist/components/ui/financial-drawers.mjs +17 -0
- package/dist/components/ui/financial-primitives.js +218 -0
- package/dist/components/ui/financial-primitives.mjs +22 -0
- package/dist/components/ui/financial-sections.js +1422 -0
- package/dist/components/ui/financial-sections.mjs +30 -0
- package/dist/components/ui/form-primitives.js +682 -0
- package/dist/components/ui/form-primitives.mjs +19 -0
- package/dist/components/ui/income-bar-chart.js +641 -0
- package/dist/components/ui/income-bar-chart.mjs +16 -0
- package/dist/components/ui/input-group.js +43 -7
- package/dist/components/ui/input-group.mjs +5 -5
- package/dist/components/ui/input-otp.js +39 -3
- package/dist/components/ui/input-otp.mjs +2 -2
- package/dist/components/ui/input.js +34 -2
- package/dist/components/ui/input.mjs +2 -2
- package/dist/components/ui/kanban-column.js +1143 -0
- package/dist/components/ui/kanban-column.mjs +20 -0
- package/dist/components/ui/label.js +35 -7
- package/dist/components/ui/label.mjs +2 -2
- package/dist/components/ui/opportunity-card.js +960 -0
- package/dist/components/ui/opportunity-card.mjs +20 -0
- package/dist/components/ui/opportunity-edit-modals.js +3360 -0
- package/dist/components/ui/opportunity-edit-modals.mjs +37 -0
- package/dist/components/ui/opportunity-summary-tab.js +4365 -0
- package/dist/components/ui/opportunity-summary-tab.mjs +34 -0
- package/dist/components/ui/pagination.js +35 -3
- package/dist/components/ui/pagination.mjs +3 -3
- package/dist/components/ui/pipeline-alerts.js +103 -0
- package/dist/components/ui/pipeline-alerts.mjs +8 -0
- package/dist/components/ui/pipeline-board.js +1408 -0
- package/dist/components/ui/pipeline-board.mjs +24 -0
- package/dist/components/ui/pipeline-chart.js +216 -0
- package/dist/components/ui/pipeline-chart.mjs +10 -0
- package/dist/components/ui/pipeline-dialogs.js +1183 -0
- package/dist/components/ui/pipeline-dialogs.mjs +23 -0
- package/dist/components/ui/pipeline-primitives.js +300 -0
- package/dist/components/ui/pipeline-primitives.mjs +11 -0
- package/dist/components/ui/popover.js +45 -4
- package/dist/components/ui/popover.mjs +3 -3
- package/dist/components/ui/progress.js +33 -1
- package/dist/components/ui/progress.mjs +2 -2
- package/dist/components/ui/property-cashflow-doughnut-chart.js +523 -0
- package/dist/components/ui/property-cashflow-doughnut-chart.mjs +16 -0
- package/dist/components/ui/property-debt-equity-doughnut-chart.js +521 -0
- package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +16 -0
- package/dist/components/ui/property-mobile-estimate-line-chart.js +682 -0
- package/dist/components/ui/property-mobile-estimate-line-chart.mjs +16 -0
- package/dist/components/ui/radio-group.js +33 -1
- package/dist/components/ui/radio-group.mjs +2 -2
- package/dist/components/ui/select.js +66 -26
- package/dist/components/ui/select.mjs +3 -3
- package/dist/components/ui/separator.js +33 -1
- package/dist/components/ui/separator.mjs +2 -2
- package/dist/components/ui/sheet.js +37 -9
- package/dist/components/ui/sheet.mjs +3 -3
- package/dist/components/ui/skeleton.js +33 -1
- package/dist/components/ui/skeleton.mjs +2 -2
- package/dist/components/ui/slider.js +86 -102
- package/dist/components/ui/slider.mjs +2 -2
- package/dist/components/ui/spinner.js +33 -1
- package/dist/components/ui/spinner.mjs +2 -2
- package/dist/components/ui/stage-timeline.js +579 -0
- package/dist/components/ui/stage-timeline.mjs +15 -0
- package/dist/components/ui/switch.js +37 -4
- package/dist/components/ui/switch.mjs +2 -3
- package/dist/components/ui/table.js +37 -5
- package/dist/components/ui/table.mjs +2 -2
- package/dist/components/ui/tabs.js +36 -12
- package/dist/components/ui/tabs.mjs +2 -2
- package/dist/components/ui/textarea.js +34 -2
- package/dist/components/ui/textarea.mjs +2 -2
- package/dist/components/ui/toggle-group.js +35 -4
- package/dist/components/ui/toggle-group.mjs +3 -4
- package/dist/components/ui/toggle.js +35 -4
- package/dist/components/ui/toggle.mjs +2 -3
- package/dist/components/ui/tooltip.js +51 -22
- package/dist/components/ui/tooltip.mjs +3 -3
- package/dist/components/ui/transactions-expense-categories-doughnut-chart.js +528 -0
- package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +16 -0
- package/dist/components/ui/transactions-income-expense-bar-chart.js +516 -0
- package/dist/components/ui/transactions-income-expense-bar-chart.mjs +16 -0
- package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js +528 -0
- package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +16 -0
- package/dist/index.js +11613 -2868
- package/dist/index.mjs +377 -164
- package/dist/lib/theme-provider.js +10 -1
- package/dist/lib/theme-provider.mjs +1 -1
- package/dist/lib/typography.js +8 -0
- package/dist/lib/typography.mjs +3 -1
- package/dist/lib/utils.js +33 -1
- package/dist/lib/utils.mjs +1 -1
- package/dist/styles.css +1 -1
- package/package.json +169 -6
- package/src/components/index.tsx +323 -13
- package/src/components/ui/accordion.tsx +6 -3
- package/src/components/ui/add-column-modal.tsx +339 -0
- package/src/components/ui/add-lead-modal.tsx +290 -0
- package/src/components/ui/ai-assistant-drawer.tsx +408 -0
- package/src/components/ui/alert-dialog.tsx +80 -54
- package/src/components/ui/alert.tsx +28 -28
- package/src/components/ui/avatar.tsx +30 -29
- package/src/components/ui/backoffice-alert-history-chart.tsx +260 -0
- package/src/components/ui/backoffice-contact-history-chart.tsx +325 -0
- package/src/components/ui/badge.tsx +17 -15
- package/src/components/ui/borrowing-capacity-line-chart.tsx +357 -0
- package/src/components/ui/button.tsx +30 -27
- package/src/components/ui/calendar.tsx +53 -67
- package/src/components/ui/card.tsx +27 -24
- package/src/components/ui/cash-balance-line-chart.tsx +302 -0
- package/src/components/ui/cashflow-bar-chart.tsx +363 -0
- package/src/components/ui/chart-shared.tsx +261 -0
- package/src/components/ui/checkbox.tsx +30 -26
- package/src/components/ui/combobox.tsx +223 -0
- package/src/components/ui/data-table.tsx +160 -99
- package/src/components/ui/date-picker.tsx +0 -2
- package/src/components/ui/dialog.tsx +70 -60
- package/src/components/ui/drawer.tsx +57 -48
- package/src/components/ui/dropdown-menu.tsx +90 -82
- package/src/components/ui/empty.tsx +31 -27
- package/src/components/ui/expense-bar-chart.tsx +296 -0
- package/src/components/ui/field.tsx +70 -62
- package/src/components/ui/financial-cards.tsx +830 -0
- package/src/components/ui/financial-drawers.tsx +339 -0
- package/src/components/ui/financial-primitives.tsx +331 -0
- package/src/components/ui/financial-sections.tsx +672 -0
- package/src/components/ui/form-primitives.tsx +536 -0
- package/src/components/ui/income-bar-chart.tsx +297 -0
- package/src/components/ui/input-group.tsx +41 -34
- package/src/components/ui/input-otp.tsx +29 -24
- package/src/components/ui/input.tsx +8 -8
- package/src/components/ui/kanban-column.tsx +333 -0
- package/src/components/ui/label.tsx +9 -12
- package/src/components/ui/opportunity-card.tsx +616 -0
- package/src/components/ui/opportunity-edit-modals.tsx +2528 -0
- package/src/components/ui/opportunity-summary-tab.tsx +579 -0
- package/src/components/ui/pipeline-alerts.tsx +74 -0
- package/src/components/ui/pipeline-board.tsx +268 -0
- package/src/components/ui/pipeline-chart.tsx +173 -0
- package/src/components/ui/pipeline-dialogs.tsx +303 -0
- package/src/components/ui/pipeline-primitives.tsx +108 -0
- package/src/components/ui/popover.tsx +41 -36
- package/src/components/ui/property-cashflow-doughnut-chart.tsx +188 -0
- package/src/components/ui/property-debt-equity-doughnut-chart.tsx +185 -0
- package/src/components/ui/property-mobile-estimate-line-chart.tsx +393 -0
- package/src/components/ui/select.tsx +65 -52
- package/src/components/ui/sheet.tsx +55 -52
- package/src/components/ui/slider.tsx +54 -77
- package/src/components/ui/stage-timeline.tsx +205 -0
- package/src/components/ui/switch.tsx +42 -29
- package/src/components/ui/table.tsx +28 -28
- package/src/components/ui/tabs.tsx +22 -28
- package/src/components/ui/textarea.tsx +8 -8
- package/src/components/ui/toggle-group.tsx +0 -2
- package/src/components/ui/toggle.tsx +13 -15
- package/src/components/ui/tooltip.tsx +30 -28
- package/src/components/ui/transactions-expense-categories-doughnut-chart.tsx +191 -0
- package/src/components/ui/transactions-income-expense-bar-chart.tsx +205 -0
- package/src/components/ui/transactions-liabilities-breakdown-doughnut-chart.tsx +191 -0
- package/src/lib/theme-provider.tsx +10 -0
- package/src/lib/typography.ts +9 -0
- package/src/lib/utils.ts +41 -3
- package/src/styles/globals.css +371 -124
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +32 -0
- package/dist/chunk-K74JRTJR.mjs +0 -105
- package/dist/chunk-V7CNWJT3.mjs +0 -10
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RadioGroup,
|
|
3
|
+
RadioGroupItem
|
|
4
|
+
} from "./chunk-7XJHLGUV.mjs";
|
|
5
|
+
import {
|
|
6
|
+
FinancialDetailField,
|
|
7
|
+
FinancialLvrBar,
|
|
8
|
+
FinancialSubsectionTitle,
|
|
9
|
+
FinancialSubtotalBlock,
|
|
10
|
+
FinancialSubtotalFrame
|
|
11
|
+
} from "./chunk-OGOYQ7BG.mjs";
|
|
12
|
+
import {
|
|
13
|
+
Badge
|
|
14
|
+
} from "./chunk-WAZD7NFU.mjs";
|
|
15
|
+
import {
|
|
16
|
+
cn
|
|
17
|
+
} from "./chunk-VLQZANBF.mjs";
|
|
18
|
+
|
|
19
|
+
// src/components/ui/financial-cards.tsx
|
|
20
|
+
import * as React from "react";
|
|
21
|
+
import {
|
|
22
|
+
Baby,
|
|
23
|
+
Building2,
|
|
24
|
+
Car,
|
|
25
|
+
ChevronDown,
|
|
26
|
+
CreditCard,
|
|
27
|
+
Dumbbell,
|
|
28
|
+
GraduationCap,
|
|
29
|
+
HeartPulse,
|
|
30
|
+
Landmark,
|
|
31
|
+
Receipt,
|
|
32
|
+
RefreshCw,
|
|
33
|
+
Shield,
|
|
34
|
+
ShoppingCart,
|
|
35
|
+
Shirt,
|
|
36
|
+
Tv,
|
|
37
|
+
UtensilsCrossed,
|
|
38
|
+
Zap
|
|
39
|
+
} from "lucide-react";
|
|
40
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
41
|
+
function PropertyCard({
|
|
42
|
+
address,
|
|
43
|
+
type,
|
|
44
|
+
estimated,
|
|
45
|
+
isLinkedToBank = false,
|
|
46
|
+
borderless = false,
|
|
47
|
+
loanAmount,
|
|
48
|
+
equity,
|
|
49
|
+
lvr,
|
|
50
|
+
lvrPercent = 0,
|
|
51
|
+
lenderName,
|
|
52
|
+
interestRate,
|
|
53
|
+
yearsRemaining,
|
|
54
|
+
minRepayments,
|
|
55
|
+
averageRepayments,
|
|
56
|
+
redrawAmount,
|
|
57
|
+
offsetAccount,
|
|
58
|
+
totalMinRepayments,
|
|
59
|
+
totalExtraRepayments,
|
|
60
|
+
interestCharged,
|
|
61
|
+
principlePaidOff
|
|
62
|
+
}) {
|
|
63
|
+
const [expanded, setExpanded] = React.useState(false);
|
|
64
|
+
return /* @__PURE__ */ jsxs(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
className: cn(
|
|
68
|
+
"overflow-hidden flex flex-col",
|
|
69
|
+
!borderless && "border border-border"
|
|
70
|
+
),
|
|
71
|
+
children: [
|
|
72
|
+
isLinkedToBank ? /* @__PURE__ */ jsxs(
|
|
73
|
+
"button",
|
|
74
|
+
{
|
|
75
|
+
type: "button",
|
|
76
|
+
"aria-expanded": expanded,
|
|
77
|
+
onClick: () => setExpanded((prev) => !prev),
|
|
78
|
+
className: "flex items-center gap-1.5 px-5 py-3 text-left cursor-pointer hover:opacity-85",
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ jsx("span", { className: "text-label-medium text-foreground", children: address }),
|
|
81
|
+
type && /* @__PURE__ */ jsx(Badge, { variant: "outline", children: type }),
|
|
82
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1" }),
|
|
83
|
+
/* @__PURE__ */ jsx(
|
|
84
|
+
ChevronDown,
|
|
85
|
+
{
|
|
86
|
+
className: cn(
|
|
87
|
+
"h-5 w-5 shrink-0 text-muted-foreground transition-transform duration-200",
|
|
88
|
+
expanded && "rotate-180"
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
) : /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 px-5 py-3", children: [
|
|
95
|
+
/* @__PURE__ */ jsx("span", { className: "text-label-medium text-foreground", children: address }),
|
|
96
|
+
type && /* @__PURE__ */ jsx(Badge, { variant: "outline", children: type })
|
|
97
|
+
] }),
|
|
98
|
+
!isLinkedToBank && /* @__PURE__ */ jsx("p", { className: "px-5 pb-2 text-xs italic text-muted-foreground", children: "No mortgage account linked to this property" }),
|
|
99
|
+
/* @__PURE__ */ jsxs(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
className: cn(
|
|
103
|
+
"grid gap-5 px-5 py-[15px]",
|
|
104
|
+
isLinkedToBank ? "grid-cols-3" : "grid-cols-1"
|
|
105
|
+
),
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Estimated Value", value: estimated }),
|
|
108
|
+
isLinkedToBank && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
109
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Loan Amount", value: loanAmount }),
|
|
110
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Equity", value: equity })
|
|
111
|
+
] })
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
isLinkedToBank && /* @__PURE__ */ jsx("div", { className: "px-5 pb-[15px]", children: /* @__PURE__ */ jsx(
|
|
116
|
+
FinancialLvrBar,
|
|
117
|
+
{
|
|
118
|
+
percent: lvrPercent,
|
|
119
|
+
label: lvr != null ? lvr : `${lvrPercent}%`
|
|
120
|
+
}
|
|
121
|
+
) }),
|
|
122
|
+
isLinkedToBank && /* @__PURE__ */ jsx(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
className: cn(
|
|
126
|
+
"grid transition-[grid-template-rows] duration-200 ease-in-out",
|
|
127
|
+
expanded ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
128
|
+
),
|
|
129
|
+
children: /* @__PURE__ */ jsxs("div", { className: "overflow-hidden", children: [
|
|
130
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-5 border-t border-border px-5 py-[15px]", children: [
|
|
131
|
+
/* @__PURE__ */ jsx(FinancialSubsectionTitle, { children: "Loan" }),
|
|
132
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-4 gap-x-4 gap-y-4", children: [
|
|
133
|
+
/* @__PURE__ */ jsx(
|
|
134
|
+
FinancialDetailField,
|
|
135
|
+
{
|
|
136
|
+
label: "Name of Lender",
|
|
137
|
+
value: lenderName
|
|
138
|
+
}
|
|
139
|
+
),
|
|
140
|
+
/* @__PURE__ */ jsx(
|
|
141
|
+
FinancialDetailField,
|
|
142
|
+
{
|
|
143
|
+
label: "Current Loan Amount",
|
|
144
|
+
value: loanAmount
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
/* @__PURE__ */ jsx(
|
|
148
|
+
FinancialDetailField,
|
|
149
|
+
{
|
|
150
|
+
label: "Interest Rate",
|
|
151
|
+
value: interestRate
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
/* @__PURE__ */ jsx(
|
|
155
|
+
FinancialDetailField,
|
|
156
|
+
{
|
|
157
|
+
label: "Years Remaining",
|
|
158
|
+
value: yearsRemaining
|
|
159
|
+
}
|
|
160
|
+
)
|
|
161
|
+
] }),
|
|
162
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-4 gap-x-4 gap-y-4", children: [
|
|
163
|
+
/* @__PURE__ */ jsx(
|
|
164
|
+
FinancialDetailField,
|
|
165
|
+
{
|
|
166
|
+
label: "Min Repayments",
|
|
167
|
+
value: minRepayments
|
|
168
|
+
}
|
|
169
|
+
),
|
|
170
|
+
/* @__PURE__ */ jsx(
|
|
171
|
+
FinancialDetailField,
|
|
172
|
+
{
|
|
173
|
+
label: "Average Repayments",
|
|
174
|
+
value: averageRepayments
|
|
175
|
+
}
|
|
176
|
+
),
|
|
177
|
+
/* @__PURE__ */ jsx(
|
|
178
|
+
FinancialDetailField,
|
|
179
|
+
{
|
|
180
|
+
label: "Redraw Amount",
|
|
181
|
+
value: redrawAmount
|
|
182
|
+
}
|
|
183
|
+
),
|
|
184
|
+
/* @__PURE__ */ jsx(
|
|
185
|
+
FinancialDetailField,
|
|
186
|
+
{
|
|
187
|
+
label: "Offset Account",
|
|
188
|
+
value: offsetAccount
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
] })
|
|
192
|
+
] }),
|
|
193
|
+
/* @__PURE__ */ jsx(FinancialSubtotalFrame, { children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-4 gap-x-4 gap-y-1", children: [
|
|
194
|
+
/* @__PURE__ */ jsx(
|
|
195
|
+
FinancialDetailField,
|
|
196
|
+
{
|
|
197
|
+
variant: "footer",
|
|
198
|
+
label: "Total Min Repayments",
|
|
199
|
+
value: totalMinRepayments
|
|
200
|
+
}
|
|
201
|
+
),
|
|
202
|
+
/* @__PURE__ */ jsx(
|
|
203
|
+
FinancialDetailField,
|
|
204
|
+
{
|
|
205
|
+
variant: "footer",
|
|
206
|
+
label: "Total Extra Repayments",
|
|
207
|
+
value: totalExtraRepayments
|
|
208
|
+
}
|
|
209
|
+
),
|
|
210
|
+
/* @__PURE__ */ jsx(
|
|
211
|
+
FinancialDetailField,
|
|
212
|
+
{
|
|
213
|
+
variant: "footer",
|
|
214
|
+
label: "Interest Charge",
|
|
215
|
+
value: interestCharged
|
|
216
|
+
}
|
|
217
|
+
),
|
|
218
|
+
/* @__PURE__ */ jsx(
|
|
219
|
+
FinancialDetailField,
|
|
220
|
+
{
|
|
221
|
+
variant: "footer",
|
|
222
|
+
label: "Principle Paid Off",
|
|
223
|
+
value: principlePaidOff
|
|
224
|
+
}
|
|
225
|
+
)
|
|
226
|
+
] }) })
|
|
227
|
+
] })
|
|
228
|
+
}
|
|
229
|
+
)
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
function DebtCard({
|
|
235
|
+
lenderName,
|
|
236
|
+
currentLoanAmount,
|
|
237
|
+
interestRate,
|
|
238
|
+
originalLoanAmount,
|
|
239
|
+
originalLoanTerm,
|
|
240
|
+
monthlyRepayments,
|
|
241
|
+
redrawAmount,
|
|
242
|
+
offsetAmount,
|
|
243
|
+
extraLoanRepayments,
|
|
244
|
+
totalRepaymentsMade,
|
|
245
|
+
totalInterestPaid,
|
|
246
|
+
yearsRemaining
|
|
247
|
+
}) {
|
|
248
|
+
return /* @__PURE__ */ jsxs("div", { className: "border border-border overflow-hidden flex flex-col h-full", children: [
|
|
249
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-3 gap-5 px-5 py-[15px] border-b border-border min-h-[7rem] items-start", children: [
|
|
250
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Name of Lender", value: lenderName }),
|
|
251
|
+
/* @__PURE__ */ jsx(
|
|
252
|
+
FinancialDetailField,
|
|
253
|
+
{
|
|
254
|
+
label: "Current Loan Amount",
|
|
255
|
+
value: currentLoanAmount
|
|
256
|
+
}
|
|
257
|
+
),
|
|
258
|
+
/* @__PURE__ */ jsx(
|
|
259
|
+
FinancialDetailField,
|
|
260
|
+
{
|
|
261
|
+
label: "Current Interest Rate",
|
|
262
|
+
value: interestRate
|
|
263
|
+
}
|
|
264
|
+
)
|
|
265
|
+
] }),
|
|
266
|
+
/* @__PURE__ */ jsxs("div", { className: "px-5 py-[15px] flex flex-col gap-5 flex-1", children: [
|
|
267
|
+
/* @__PURE__ */ jsx(FinancialSubsectionTitle, { children: "Loan Stats" }),
|
|
268
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-3 gap-5", children: [
|
|
269
|
+
/* @__PURE__ */ jsx(
|
|
270
|
+
FinancialDetailField,
|
|
271
|
+
{
|
|
272
|
+
label: "Original Loan Amount",
|
|
273
|
+
value: originalLoanAmount
|
|
274
|
+
}
|
|
275
|
+
),
|
|
276
|
+
/* @__PURE__ */ jsx(
|
|
277
|
+
FinancialDetailField,
|
|
278
|
+
{
|
|
279
|
+
label: "Original Loan Term",
|
|
280
|
+
value: originalLoanTerm
|
|
281
|
+
}
|
|
282
|
+
),
|
|
283
|
+
/* @__PURE__ */ jsx(
|
|
284
|
+
FinancialDetailField,
|
|
285
|
+
{
|
|
286
|
+
label: "Monthly Repayments",
|
|
287
|
+
value: monthlyRepayments
|
|
288
|
+
}
|
|
289
|
+
)
|
|
290
|
+
] }),
|
|
291
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-3 gap-5", children: [
|
|
292
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Redraw Amount", value: redrawAmount }),
|
|
293
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Offset Account", value: offsetAmount }),
|
|
294
|
+
/* @__PURE__ */ jsx(
|
|
295
|
+
FinancialDetailField,
|
|
296
|
+
{
|
|
297
|
+
label: "Extra Loan Repayments",
|
|
298
|
+
value: extraLoanRepayments
|
|
299
|
+
}
|
|
300
|
+
)
|
|
301
|
+
] })
|
|
302
|
+
] }),
|
|
303
|
+
/* @__PURE__ */ jsx(FinancialSubtotalFrame, { children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-3 gap-x-4 gap-y-1", children: [
|
|
304
|
+
/* @__PURE__ */ jsx(
|
|
305
|
+
FinancialDetailField,
|
|
306
|
+
{
|
|
307
|
+
variant: "footer",
|
|
308
|
+
label: "Total Repayments Made",
|
|
309
|
+
value: totalRepaymentsMade
|
|
310
|
+
}
|
|
311
|
+
),
|
|
312
|
+
/* @__PURE__ */ jsx(
|
|
313
|
+
FinancialDetailField,
|
|
314
|
+
{
|
|
315
|
+
variant: "footer",
|
|
316
|
+
label: "Total Interest Paid",
|
|
317
|
+
value: totalInterestPaid
|
|
318
|
+
}
|
|
319
|
+
),
|
|
320
|
+
/* @__PURE__ */ jsx(
|
|
321
|
+
FinancialDetailField,
|
|
322
|
+
{
|
|
323
|
+
variant: "footer",
|
|
324
|
+
label: "Years Remaining",
|
|
325
|
+
value: yearsRemaining
|
|
326
|
+
}
|
|
327
|
+
)
|
|
328
|
+
] }) })
|
|
329
|
+
] });
|
|
330
|
+
}
|
|
331
|
+
function OtherLiabilityCard({
|
|
332
|
+
type,
|
|
333
|
+
lenderName,
|
|
334
|
+
interestRate,
|
|
335
|
+
currentBalance,
|
|
336
|
+
creditLimit,
|
|
337
|
+
minMonthlyPayment,
|
|
338
|
+
annualFee,
|
|
339
|
+
availableCredit,
|
|
340
|
+
currentLoanAmount,
|
|
341
|
+
originalLoanAmount,
|
|
342
|
+
originalLoanTerm,
|
|
343
|
+
monthlyRepayments,
|
|
344
|
+
currentLoanTermLeft,
|
|
345
|
+
totalRepaymentsMade,
|
|
346
|
+
totalInterestPaid
|
|
347
|
+
}) {
|
|
348
|
+
const isCreditCard = type === "credit_card";
|
|
349
|
+
return /* @__PURE__ */ jsxs("div", { className: "border border-border overflow-hidden flex flex-col h-full", children: [
|
|
350
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-3 gap-5 px-4 pt-5 pb-4 min-h-[7rem] items-start", children: [
|
|
351
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Lender", value: lenderName }),
|
|
352
|
+
isCreditCard ? /* @__PURE__ */ jsx(
|
|
353
|
+
FinancialDetailField,
|
|
354
|
+
{
|
|
355
|
+
label: "Current Balance",
|
|
356
|
+
value: currentBalance
|
|
357
|
+
}
|
|
358
|
+
) : /* @__PURE__ */ jsx(
|
|
359
|
+
FinancialDetailField,
|
|
360
|
+
{
|
|
361
|
+
label: "Current Loan Amount",
|
|
362
|
+
value: currentLoanAmount
|
|
363
|
+
}
|
|
364
|
+
),
|
|
365
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Interest Rate", value: interestRate })
|
|
366
|
+
] }),
|
|
367
|
+
/* @__PURE__ */ jsxs("div", { className: "px-4 pt-4 pb-5 flex flex-col gap-5 border-t border-border flex-1", children: [
|
|
368
|
+
/* @__PURE__ */ jsx(FinancialSubsectionTitle, { children: isCreditCard ? "Card Stats" : "Loan Stats" }),
|
|
369
|
+
isCreditCard ? /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-3 gap-5", children: [
|
|
370
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Credit Limit", value: creditLimit }),
|
|
371
|
+
/* @__PURE__ */ jsx(
|
|
372
|
+
FinancialDetailField,
|
|
373
|
+
{
|
|
374
|
+
label: "Min Monthly Payment",
|
|
375
|
+
value: minMonthlyPayment
|
|
376
|
+
}
|
|
377
|
+
),
|
|
378
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Annual Fee", value: annualFee })
|
|
379
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-3 gap-5", children: [
|
|
380
|
+
/* @__PURE__ */ jsx(
|
|
381
|
+
FinancialDetailField,
|
|
382
|
+
{
|
|
383
|
+
label: "Original Loan Amount",
|
|
384
|
+
value: originalLoanAmount
|
|
385
|
+
}
|
|
386
|
+
),
|
|
387
|
+
/* @__PURE__ */ jsx(
|
|
388
|
+
FinancialDetailField,
|
|
389
|
+
{
|
|
390
|
+
label: "Original Loan Term",
|
|
391
|
+
value: originalLoanTerm
|
|
392
|
+
}
|
|
393
|
+
),
|
|
394
|
+
/* @__PURE__ */ jsx(
|
|
395
|
+
FinancialDetailField,
|
|
396
|
+
{
|
|
397
|
+
label: "Monthly Repayments",
|
|
398
|
+
value: monthlyRepayments
|
|
399
|
+
}
|
|
400
|
+
)
|
|
401
|
+
] })
|
|
402
|
+
] }),
|
|
403
|
+
/* @__PURE__ */ jsx(FinancialSubtotalFrame, { children: isCreditCard ? /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-x-4 gap-y-1", children: [
|
|
404
|
+
/* @__PURE__ */ jsx(
|
|
405
|
+
FinancialDetailField,
|
|
406
|
+
{
|
|
407
|
+
variant: "footer",
|
|
408
|
+
label: "Total Interest Paid",
|
|
409
|
+
value: totalInterestPaid
|
|
410
|
+
}
|
|
411
|
+
),
|
|
412
|
+
/* @__PURE__ */ jsx(
|
|
413
|
+
FinancialDetailField,
|
|
414
|
+
{
|
|
415
|
+
variant: "footer",
|
|
416
|
+
label: "Available Credit",
|
|
417
|
+
value: availableCredit
|
|
418
|
+
}
|
|
419
|
+
)
|
|
420
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-3 gap-x-4 gap-y-1", children: [
|
|
421
|
+
/* @__PURE__ */ jsx(
|
|
422
|
+
FinancialDetailField,
|
|
423
|
+
{
|
|
424
|
+
variant: "footer",
|
|
425
|
+
label: "Total Repayments Made",
|
|
426
|
+
value: totalRepaymentsMade
|
|
427
|
+
}
|
|
428
|
+
),
|
|
429
|
+
/* @__PURE__ */ jsx(
|
|
430
|
+
FinancialDetailField,
|
|
431
|
+
{
|
|
432
|
+
variant: "footer",
|
|
433
|
+
label: "Total Interest Paid",
|
|
434
|
+
value: totalInterestPaid
|
|
435
|
+
}
|
|
436
|
+
),
|
|
437
|
+
/* @__PURE__ */ jsx(
|
|
438
|
+
FinancialDetailField,
|
|
439
|
+
{
|
|
440
|
+
variant: "footer",
|
|
441
|
+
label: "Years Remaining",
|
|
442
|
+
value: currentLoanTermLeft
|
|
443
|
+
}
|
|
444
|
+
)
|
|
445
|
+
] }) })
|
|
446
|
+
] });
|
|
447
|
+
}
|
|
448
|
+
var SEVERITY_CLASSES = {
|
|
449
|
+
NEED_ACTION: { dot: "bg-destructive", border: "border-destructive" },
|
|
450
|
+
WATCH: { dot: "bg-warning", border: "border-warning" },
|
|
451
|
+
INSIGHT: { dot: "bg-success", border: "border-success" }
|
|
452
|
+
};
|
|
453
|
+
function AlertCard({
|
|
454
|
+
id,
|
|
455
|
+
name,
|
|
456
|
+
severityCode,
|
|
457
|
+
ignored = false,
|
|
458
|
+
ignoredUntil,
|
|
459
|
+
selectedAction = null,
|
|
460
|
+
onActionChange
|
|
461
|
+
}) {
|
|
462
|
+
const { dot, border } = SEVERITY_CLASSES[severityCode];
|
|
463
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-1.5 border p-2.5 px-3", border), children: [
|
|
464
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
465
|
+
/* @__PURE__ */ jsx("span", { className: cn("h-[9px] w-[9px] shrink-0 rounded-full", dot) }),
|
|
466
|
+
/* @__PURE__ */ jsx(
|
|
467
|
+
"span",
|
|
468
|
+
{
|
|
469
|
+
className: cn(
|
|
470
|
+
"text-sm font-medium leading-tight",
|
|
471
|
+
ignored ? "text-muted-foreground line-through" : "text-foreground"
|
|
472
|
+
),
|
|
473
|
+
children: name
|
|
474
|
+
}
|
|
475
|
+
)
|
|
476
|
+
] }),
|
|
477
|
+
ignored ? /* @__PURE__ */ jsxs("span", { className: "ml-[15px] text-xs italic text-muted-foreground/60", children: [
|
|
478
|
+
"Ignored until ",
|
|
479
|
+
ignoredUntil
|
|
480
|
+
] }) : /* @__PURE__ */ jsxs(
|
|
481
|
+
RadioGroup,
|
|
482
|
+
{
|
|
483
|
+
value: selectedAction != null ? selectedAction : "",
|
|
484
|
+
onValueChange: (val) => onActionChange == null ? void 0 : onActionChange(val),
|
|
485
|
+
className: "ml-[15px] flex flex-col gap-1",
|
|
486
|
+
children: [
|
|
487
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
488
|
+
/* @__PURE__ */ jsx(RadioGroupItem, { value: "DISMISS", id: `dismiss-${id}` }),
|
|
489
|
+
/* @__PURE__ */ jsx(
|
|
490
|
+
"label",
|
|
491
|
+
{
|
|
492
|
+
htmlFor: `dismiss-${id}`,
|
|
493
|
+
className: "cursor-pointer select-none text-sm leading-none text-muted-foreground",
|
|
494
|
+
children: "Mark as done (will reset in 6 months)"
|
|
495
|
+
}
|
|
496
|
+
)
|
|
497
|
+
] }),
|
|
498
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
499
|
+
/* @__PURE__ */ jsx(RadioGroupItem, { value: "SNOOZE", id: `snooze-${id}` }),
|
|
500
|
+
/* @__PURE__ */ jsx(
|
|
501
|
+
"label",
|
|
502
|
+
{
|
|
503
|
+
htmlFor: `snooze-${id}`,
|
|
504
|
+
className: "cursor-pointer select-none text-sm leading-none text-muted-foreground",
|
|
505
|
+
children: "Snooze for 30 days"
|
|
506
|
+
}
|
|
507
|
+
)
|
|
508
|
+
] })
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
)
|
|
512
|
+
] });
|
|
513
|
+
}
|
|
514
|
+
function AboutCard({
|
|
515
|
+
title,
|
|
516
|
+
firstName,
|
|
517
|
+
lastName,
|
|
518
|
+
phone,
|
|
519
|
+
email,
|
|
520
|
+
gender,
|
|
521
|
+
maritalStatus,
|
|
522
|
+
citizenStatus,
|
|
523
|
+
propertyInTrust,
|
|
524
|
+
companyOwnership
|
|
525
|
+
}) {
|
|
526
|
+
const fullName = [title, firstName, lastName].filter(Boolean).join(" ") || "\u2014";
|
|
527
|
+
return /* @__PURE__ */ jsx("div", { className: "border border-border overflow-hidden", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 gap-x-8 gap-y-4 px-5 py-4", children: [
|
|
528
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Full Name", value: fullName }),
|
|
529
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Gender", value: gender || "\u2014" }),
|
|
530
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Phone", value: phone || "\u2014" }),
|
|
531
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Email", value: email || "\u2014" }),
|
|
532
|
+
/* @__PURE__ */ jsx(
|
|
533
|
+
FinancialDetailField,
|
|
534
|
+
{
|
|
535
|
+
label: "Marital Status",
|
|
536
|
+
value: maritalStatus || "\u2014"
|
|
537
|
+
}
|
|
538
|
+
),
|
|
539
|
+
/* @__PURE__ */ jsx(
|
|
540
|
+
FinancialDetailField,
|
|
541
|
+
{
|
|
542
|
+
label: "Citizenship",
|
|
543
|
+
value: citizenStatus || "\u2014"
|
|
544
|
+
}
|
|
545
|
+
),
|
|
546
|
+
/* @__PURE__ */ jsx(
|
|
547
|
+
FinancialDetailField,
|
|
548
|
+
{
|
|
549
|
+
label: "Property in Trust",
|
|
550
|
+
value: propertyInTrust || "\u2014"
|
|
551
|
+
}
|
|
552
|
+
),
|
|
553
|
+
/* @__PURE__ */ jsx(
|
|
554
|
+
FinancialDetailField,
|
|
555
|
+
{
|
|
556
|
+
label: "Company Ownership",
|
|
557
|
+
value: companyOwnership || "\u2014"
|
|
558
|
+
}
|
|
559
|
+
)
|
|
560
|
+
] }) });
|
|
561
|
+
}
|
|
562
|
+
function IncomeCard({ items, totalMonthly }) {
|
|
563
|
+
if (items.length === 0) {
|
|
564
|
+
return /* @__PURE__ */ jsx("div", { className: "border border-border px-5 py-4", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "No income recorded." }) });
|
|
565
|
+
}
|
|
566
|
+
return /* @__PURE__ */ jsxs("div", { className: "border border-border overflow-hidden flex flex-col", children: [
|
|
567
|
+
items.map((item, i) => /* @__PURE__ */ jsxs(
|
|
568
|
+
"div",
|
|
569
|
+
{
|
|
570
|
+
className: cn(
|
|
571
|
+
"grid grid-cols-3 gap-x-6 px-5 py-[15px]",
|
|
572
|
+
i < items.length - 1 && "border-b border-border"
|
|
573
|
+
),
|
|
574
|
+
children: [
|
|
575
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Type", value: item.incomeType || "\u2014" }),
|
|
576
|
+
/* @__PURE__ */ jsx(
|
|
577
|
+
FinancialDetailField,
|
|
578
|
+
{
|
|
579
|
+
label: "Employer",
|
|
580
|
+
value: item.companyName || item.jobTitle || "\u2014"
|
|
581
|
+
}
|
|
582
|
+
),
|
|
583
|
+
/* @__PURE__ */ jsx(FinancialDetailField, { label: "Amount", value: item.amountLabel })
|
|
584
|
+
]
|
|
585
|
+
},
|
|
586
|
+
i
|
|
587
|
+
)),
|
|
588
|
+
totalMonthly && /* @__PURE__ */ jsx(FinancialSubtotalFrame, { children: /* @__PURE__ */ jsx(
|
|
589
|
+
FinancialSubtotalBlock,
|
|
590
|
+
{
|
|
591
|
+
monthlyAverage: totalMonthly,
|
|
592
|
+
label: "Total Monthly Income"
|
|
593
|
+
}
|
|
594
|
+
) })
|
|
595
|
+
] });
|
|
596
|
+
}
|
|
597
|
+
var EXPENSE_ICON_MAP = {
|
|
598
|
+
groceries: ShoppingCart,
|
|
599
|
+
"dining out": UtensilsCrossed,
|
|
600
|
+
dining: UtensilsCrossed,
|
|
601
|
+
restaurants: UtensilsCrossed,
|
|
602
|
+
transport: Car,
|
|
603
|
+
transportation: Car,
|
|
604
|
+
vehicle: Car,
|
|
605
|
+
utilities: Zap,
|
|
606
|
+
electricity: Zap,
|
|
607
|
+
insurance: Shield,
|
|
608
|
+
"council rates": Landmark,
|
|
609
|
+
council: Landmark,
|
|
610
|
+
rates: Landmark,
|
|
611
|
+
medical: HeartPulse,
|
|
612
|
+
health: HeartPulse,
|
|
613
|
+
subscriptions: RefreshCw,
|
|
614
|
+
subscription: RefreshCw,
|
|
615
|
+
"credit card": CreditCard,
|
|
616
|
+
education: GraduationCap,
|
|
617
|
+
childcare: Baby,
|
|
618
|
+
entertainment: Tv,
|
|
619
|
+
gym: Dumbbell,
|
|
620
|
+
fitness: Dumbbell,
|
|
621
|
+
clothing: Shirt,
|
|
622
|
+
rent: Building2
|
|
623
|
+
};
|
|
624
|
+
function getExpenseIcon(expenseType) {
|
|
625
|
+
var _a;
|
|
626
|
+
return (_a = EXPENSE_ICON_MAP[expenseType.toLowerCase()]) != null ? _a : Receipt;
|
|
627
|
+
}
|
|
628
|
+
function ExpensesCard({ items, totalMonthly }) {
|
|
629
|
+
if (items.length === 0) {
|
|
630
|
+
return /* @__PURE__ */ jsx("div", { className: "border border-border px-5 py-4", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "No expenses recorded." }) });
|
|
631
|
+
}
|
|
632
|
+
return /* @__PURE__ */ jsxs("div", { className: "border border-border overflow-hidden flex flex-col", children: [
|
|
633
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col", children: items.map((item, i) => {
|
|
634
|
+
const Icon = getExpenseIcon(item.expenseType);
|
|
635
|
+
return /* @__PURE__ */ jsxs(
|
|
636
|
+
"div",
|
|
637
|
+
{
|
|
638
|
+
className: cn(
|
|
639
|
+
"flex items-center justify-between gap-4 px-5 py-2.5",
|
|
640
|
+
i < items.length - 1 && "border-b border-border"
|
|
641
|
+
),
|
|
642
|
+
children: [
|
|
643
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5", children: [
|
|
644
|
+
/* @__PURE__ */ jsx(Icon, { className: "size-3.5 shrink-0 text-muted-foreground" }),
|
|
645
|
+
/* @__PURE__ */ jsx("span", { className: "text-body-small text-foreground", children: item.expenseType })
|
|
646
|
+
] }),
|
|
647
|
+
/* @__PURE__ */ jsx("span", { className: "text-label-medium whitespace-nowrap text-destructive", children: item.amountLabel })
|
|
648
|
+
]
|
|
649
|
+
},
|
|
650
|
+
item.expenseType
|
|
651
|
+
);
|
|
652
|
+
}) }),
|
|
653
|
+
totalMonthly && /* @__PURE__ */ jsx(FinancialSubtotalFrame, { children: /* @__PURE__ */ jsx(
|
|
654
|
+
FinancialSubtotalBlock,
|
|
655
|
+
{
|
|
656
|
+
monthlyAverage: totalMonthly,
|
|
657
|
+
label: "Total Monthly Expenses"
|
|
658
|
+
}
|
|
659
|
+
) })
|
|
660
|
+
] });
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
export {
|
|
664
|
+
PropertyCard,
|
|
665
|
+
DebtCard,
|
|
666
|
+
OtherLiabilityCard,
|
|
667
|
+
AlertCard,
|
|
668
|
+
AboutCard,
|
|
669
|
+
IncomeCard,
|
|
670
|
+
ExpensesCard
|
|
671
|
+
};
|