@wealthx/shadcn 1.2.2 → 1.3.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.
Files changed (229) hide show
  1. package/.turbo/turbo-build.log +200 -156
  2. package/CHANGELOG.md +22 -0
  3. package/dist/{chunk-4Y6R4WEC.mjs → chunk-2A5RRQGG.mjs} +9 -22
  4. package/dist/{chunk-TS2ZX2VS.mjs → chunk-2UM72RJ7.mjs} +11 -15
  5. package/dist/{chunk-A56YQQHG.mjs → chunk-3NCUZIFP.mjs} +2 -2
  6. package/dist/chunk-3OYFOX3X.mjs +79 -0
  7. package/dist/{chunk-RP3SQYA3.mjs → chunk-3TTACBDP.mjs} +9 -4
  8. package/dist/chunk-4GAWMKMI.mjs +710 -0
  9. package/dist/{chunk-VGSESELX.mjs → chunk-5FQIKDKP.mjs} +5 -5
  10. package/dist/{chunk-K3JYD4IU.mjs → chunk-5IS7G74I.mjs} +11 -4
  11. package/dist/chunk-6AW4KJHE.mjs +235 -0
  12. package/dist/chunk-6CR5N2JW.mjs +302 -0
  13. package/dist/{chunk-XIRTEFKH.mjs → chunk-6DZEXFNB.mjs} +36 -8
  14. package/dist/chunk-6O6KD7CE.mjs +271 -0
  15. package/dist/chunk-7PV3IWCN.mjs +33 -0
  16. package/dist/{chunk-SPJ5KXW7.mjs → chunk-7S5AESZO.mjs} +5 -5
  17. package/dist/{chunk-RYCLWMZ7.mjs → chunk-ABFDMHOR.mjs} +9 -7
  18. package/dist/{chunk-SWGT756Z.mjs → chunk-AMQZRHEZ.mjs} +10 -4
  19. package/dist/{chunk-WAZD7NFU.mjs → chunk-BKNFWEH2.mjs} +6 -6
  20. package/dist/{chunk-CLIN5525.mjs → chunk-C7CQJNMR.mjs} +1 -1
  21. package/dist/{chunk-D4ILTPOG.mjs → chunk-CFMQP5QS.mjs} +5 -4
  22. package/dist/{chunk-VPBN3WOO.mjs → chunk-DGHAXJBN.mjs} +9 -7
  23. package/dist/chunk-DOEO3CDL.mjs +27 -0
  24. package/dist/{chunk-5MEWU56Z.mjs → chunk-DUJTAXMH.mjs} +11 -6
  25. package/dist/{chunk-GGM2UYGG.mjs → chunk-EBXQWIYG.mjs} +10 -4
  26. package/dist/chunk-EWRB4PAD.mjs +468 -0
  27. package/dist/{chunk-ZSHYDDRB.mjs → chunk-FAKPBKLT.mjs} +6 -2
  28. package/dist/chunk-FNQXOAYJ.mjs +169 -0
  29. package/dist/{chunk-A6AAWBPF.mjs → chunk-GHC7LLUX.mjs} +13 -4
  30. package/dist/chunk-HBZLGDIN.mjs +507 -0
  31. package/dist/{chunk-SIZMLSRU.mjs → chunk-HISNT2MG.mjs} +8 -6
  32. package/dist/{chunk-CGH4DRNG.mjs → chunk-HVY6KCCF.mjs} +10 -7
  33. package/dist/chunk-I3RZS7V2.mjs +136 -0
  34. package/dist/chunk-IAE3F7DR.mjs +1962 -0
  35. package/dist/{chunk-UT4KJR7V.mjs → chunk-IHMFS7NZ.mjs} +35 -74
  36. package/dist/{chunk-PCPLO5HT.mjs → chunk-IOJRDS6V.mjs} +96 -14
  37. package/dist/{chunk-LHYCMLVA.mjs → chunk-JKGDCQTZ.mjs} +11 -4
  38. package/dist/{chunk-H45TKD34.mjs → chunk-JMHR3YGZ.mjs} +1 -1
  39. package/dist/{chunk-4MN6UQHG.mjs → chunk-K5A5L6T2.mjs} +17 -39
  40. package/dist/chunk-LV35NGVG.mjs +272 -0
  41. package/dist/{chunk-FZIXGLMV.mjs → chunk-M3FV7LOK.mjs} +5 -12
  42. package/dist/{chunk-FMAXJ2SI.mjs → chunk-MBON7YRJ.mjs} +1 -1
  43. package/dist/chunk-MIZQHHUO.mjs +441 -0
  44. package/dist/chunk-MN5NYQCL.mjs +29 -0
  45. package/dist/chunk-NL3ZO62D.mjs +31 -0
  46. package/dist/{chunk-Q76O3RIQ.mjs → chunk-NMOI6CQD.mjs} +1 -1
  47. package/dist/{chunk-P6AM5V7O.mjs → chunk-OODBHKG7.mjs} +1 -1
  48. package/dist/chunk-PBL4OQV2.mjs +283 -0
  49. package/dist/{chunk-Y4QFWRNR.mjs → chunk-PU4YZQXV.mjs} +17 -18
  50. package/dist/chunk-QMY3AZJH.mjs +80 -0
  51. package/dist/{chunk-BL3DXM2X.mjs → chunk-QZ4RE6NA.mjs} +11 -4
  52. package/dist/{chunk-VACKZOMY.mjs → chunk-R3VSPKNP.mjs} +3 -3
  53. package/dist/{chunk-OPNQAVVH.mjs → chunk-RJI6GKVF.mjs} +8 -6
  54. package/dist/{chunk-WG6JGJXB.mjs → chunk-T4BJLT57.mjs} +1 -1
  55. package/dist/chunk-UMTOX62O.mjs +415 -0
  56. package/dist/{chunk-7MMXNK3C.mjs → chunk-VLARHE5V.mjs} +8 -6
  57. package/dist/{chunk-2I5S2AMY.mjs → chunk-XREGSKX3.mjs} +2 -2
  58. package/dist/{chunk-JNQORUPP.mjs → chunk-YJG55G2H.mjs} +14 -11
  59. package/dist/{chunk-ZRSDX6OW.mjs → chunk-ZC45IGZO.mjs} +33 -30
  60. package/dist/components/ui/add-column-modal.js +42 -14
  61. package/dist/components/ui/add-column-modal.mjs +5 -5
  62. package/dist/components/ui/add-lead-modal.js +42 -11
  63. package/dist/components/ui/add-lead-modal.mjs +3 -3
  64. package/dist/components/ui/advisor-card.js +497 -0
  65. package/dist/components/ui/advisor-card.mjs +13 -0
  66. package/dist/components/ui/ai-assistant-drawer.js +11 -10
  67. package/dist/components/ui/ai-assistant-drawer.mjs +3 -3
  68. package/dist/components/ui/alert-dialog.js +2 -2
  69. package/dist/components/ui/alert-dialog.mjs +2 -2
  70. package/dist/components/ui/appointment-action-dialogs.js +1160 -0
  71. package/dist/components/ui/appointment-action-dialogs.mjs +23 -0
  72. package/dist/components/ui/appointment-availability-settings.js +1590 -0
  73. package/dist/components/ui/appointment-availability-settings.mjs +23 -0
  74. package/dist/components/ui/appointment-book-dialog.js +1744 -0
  75. package/dist/components/ui/appointment-book-dialog.mjs +27 -0
  76. package/dist/components/ui/appointment-calendar-view.js +833 -0
  77. package/dist/components/ui/appointment-calendar-view.mjs +14 -0
  78. package/dist/components/ui/appointment-detail-sheet.js +1517 -0
  79. package/dist/components/ui/appointment-detail-sheet.mjs +24 -0
  80. package/dist/components/ui/appointment-gmail-connect.js +467 -0
  81. package/dist/components/ui/appointment-gmail-connect.mjs +14 -0
  82. package/dist/components/ui/appointment-mini-card.js +345 -0
  83. package/dist/components/ui/appointment-mini-card.mjs +11 -0
  84. package/dist/components/ui/appointment-time-slot-picker.js +311 -0
  85. package/dist/components/ui/appointment-time-slot-picker.mjs +13 -0
  86. package/dist/components/ui/appointment-upcoming-card.js +1268 -0
  87. package/dist/components/ui/appointment-upcoming-card.mjs +21 -0
  88. package/dist/components/ui/backoffice-alert-history-chart.js +11 -5
  89. package/dist/components/ui/backoffice-alert-history-chart.mjs +5 -4
  90. package/dist/components/ui/backoffice-alerts-chart.js +786 -0
  91. package/dist/components/ui/backoffice-alerts-chart.mjs +19 -0
  92. package/dist/components/ui/backoffice-connections-chart.js +817 -0
  93. package/dist/components/ui/backoffice-connections-chart.mjs +19 -0
  94. package/dist/components/ui/backoffice-contact-history-chart.js +11 -5
  95. package/dist/components/ui/backoffice-contact-history-chart.mjs +5 -4
  96. package/dist/components/ui/badge.js +6 -6
  97. package/dist/components/ui/badge.mjs +1 -1
  98. package/dist/components/ui/borrowing-capacity-line-chart.js +30 -21
  99. package/dist/components/ui/borrowing-capacity-line-chart.mjs +5 -4
  100. package/dist/components/ui/button.js +2 -2
  101. package/dist/components/ui/button.mjs +1 -1
  102. package/dist/components/ui/calendar.js +2 -2
  103. package/dist/components/ui/calendar.mjs +2 -2
  104. package/dist/components/ui/card.js +1 -1
  105. package/dist/components/ui/card.mjs +1 -1
  106. package/dist/components/ui/cash-balance-line-chart.js +31 -23
  107. package/dist/components/ui/cash-balance-line-chart.mjs +5 -4
  108. package/dist/components/ui/cashflow-bar-chart.js +12 -5
  109. package/dist/components/ui/cashflow-bar-chart.mjs +5 -4
  110. package/dist/components/ui/chip.js +97 -18
  111. package/dist/components/ui/chip.mjs +3 -2
  112. package/dist/components/ui/color-picker.js +158 -28
  113. package/dist/components/ui/color-picker.mjs +3 -1
  114. package/dist/components/ui/data-table.js +140 -119
  115. package/dist/components/ui/data-table.mjs +3 -2
  116. package/dist/components/ui/date-picker.js +48 -27
  117. package/dist/components/ui/date-picker.mjs +4 -3
  118. package/dist/components/ui/dialog.js +37 -9
  119. package/dist/components/ui/dialog.mjs +2 -2
  120. package/dist/components/ui/expense-bar-chart.js +12 -5
  121. package/dist/components/ui/expense-bar-chart.mjs +5 -4
  122. package/dist/components/ui/field.mjs +2 -2
  123. package/dist/components/ui/financial-cards.js +322 -155
  124. package/dist/components/ui/financial-cards.mjs +5 -3
  125. package/dist/components/ui/financial-drawers.js +2 -2
  126. package/dist/components/ui/financial-drawers.mjs +3 -3
  127. package/dist/components/ui/financial-sections.js +14 -10
  128. package/dist/components/ui/financial-sections.mjs +6 -5
  129. package/dist/components/ui/income-bar-chart.js +12 -5
  130. package/dist/components/ui/income-bar-chart.mjs +5 -4
  131. package/dist/components/ui/input-group.js +2 -2
  132. package/dist/components/ui/input-group.mjs +2 -2
  133. package/dist/components/ui/kanban-column.js +52 -44
  134. package/dist/components/ui/kanban-column.mjs +7 -5
  135. package/dist/components/ui/opportunity-card.js +52 -44
  136. package/dist/components/ui/opportunity-card.mjs +6 -4
  137. package/dist/components/ui/opportunity-edit-modals.js +1367 -1263
  138. package/dist/components/ui/opportunity-edit-modals.mjs +8 -8
  139. package/dist/components/ui/opportunity-summary-tab.js +2744 -2157
  140. package/dist/components/ui/opportunity-summary-tab.mjs +14 -14
  141. package/dist/components/ui/page-header.js +92 -0
  142. package/dist/components/ui/page-header.mjs +8 -0
  143. package/dist/components/ui/page-top-bar.js +88 -0
  144. package/dist/components/ui/page-top-bar.mjs +8 -0
  145. package/dist/components/ui/pagination.js +303 -19
  146. package/dist/components/ui/pagination.mjs +11 -4
  147. package/dist/components/ui/pipeline-board.js +205 -191
  148. package/dist/components/ui/pipeline-board.mjs +9 -7
  149. package/dist/components/ui/pipeline-dialogs.js +114 -65
  150. package/dist/components/ui/pipeline-dialogs.mjs +7 -6
  151. package/dist/components/ui/pipeline-primitives.js +6 -6
  152. package/dist/components/ui/pipeline-primitives.mjs +2 -2
  153. package/dist/components/ui/property-cashflow-doughnut-chart.js +14 -12
  154. package/dist/components/ui/property-cashflow-doughnut-chart.mjs +5 -4
  155. package/dist/components/ui/property-debt-equity-doughnut-chart.js +14 -12
  156. package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +5 -4
  157. package/dist/components/ui/property-mobile-estimate-line-chart.js +16 -14
  158. package/dist/components/ui/property-mobile-estimate-line-chart.mjs +5 -4
  159. package/dist/components/ui/sidebar-nav.js +234 -95
  160. package/dist/components/ui/sidebar-nav.mjs +4 -1
  161. package/dist/components/ui/stage-timeline.js +6 -6
  162. package/dist/components/ui/stage-timeline.mjs +3 -3
  163. package/dist/components/ui/transactions-expense-categories-doughnut-chart.js +18 -16
  164. package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +5 -4
  165. package/dist/components/ui/transactions-income-expense-bar-chart.js +28 -12
  166. package/dist/components/ui/transactions-income-expense-bar-chart.mjs +5 -4
  167. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js +18 -16
  168. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +5 -4
  169. package/dist/index.js +12899 -9343
  170. package/dist/index.mjs +256 -190
  171. package/dist/styles.css +1 -1
  172. package/package.json +71 -1
  173. package/src/components/index.tsx +114 -9
  174. package/src/components/ui/add-column-modal.tsx +7 -7
  175. package/src/components/ui/add-lead-modal.tsx +6 -3
  176. package/src/components/ui/advisor-card.tsx +227 -0
  177. package/src/components/ui/ai-assistant-drawer.tsx +4 -3
  178. package/src/components/ui/appointment-action-dialogs.tsx +297 -0
  179. package/src/components/ui/appointment-availability-settings.tsx +645 -0
  180. package/src/components/ui/appointment-book-dialog.tsx +618 -0
  181. package/src/components/ui/appointment-calendar-view.tsx +510 -0
  182. package/src/components/ui/appointment-detail-sheet.tsx +415 -0
  183. package/src/components/ui/appointment-gmail-connect.tsx +188 -0
  184. package/src/components/ui/appointment-mini-card.tsx +104 -0
  185. package/src/components/ui/appointment-time-slot-picker.tsx +123 -0
  186. package/src/components/ui/appointment-upcoming-card.tsx +635 -0
  187. package/src/components/ui/backoffice-alert-history-chart.tsx +10 -2
  188. package/src/components/ui/backoffice-alerts-chart.tsx +312 -0
  189. package/src/components/ui/backoffice-connections-chart.tsx +339 -0
  190. package/src/components/ui/backoffice-contact-history-chart.tsx +10 -2
  191. package/src/components/ui/badge.tsx +12 -6
  192. package/src/components/ui/borrowing-capacity-line-chart.tsx +4 -11
  193. package/src/components/ui/button.tsx +2 -2
  194. package/src/components/ui/card.tsx +1 -1
  195. package/src/components/ui/cash-balance-line-chart.tsx +4 -23
  196. package/src/components/ui/cashflow-bar-chart.tsx +9 -2
  197. package/src/components/ui/chart-shared.tsx +4 -11
  198. package/src/components/ui/chip.tsx +23 -19
  199. package/src/components/ui/color-picker.tsx +4 -2
  200. package/src/components/ui/data-table.tsx +28 -74
  201. package/src/components/ui/date-picker.tsx +42 -37
  202. package/src/components/ui/dialog.tsx +72 -6
  203. package/src/components/ui/expense-bar-chart.tsx +11 -2
  204. package/src/components/ui/financial-cards.tsx +99 -10
  205. package/src/components/ui/income-bar-chart.tsx +11 -2
  206. package/src/components/ui/opportunity-card.tsx +10 -39
  207. package/src/components/ui/opportunity-edit-modals.tsx +98 -36
  208. package/src/components/ui/opportunity-summary-tab.tsx +548 -232
  209. package/src/components/ui/page-header.tsx +57 -0
  210. package/src/components/ui/page-top-bar.tsx +48 -0
  211. package/src/components/ui/pagination.tsx +171 -22
  212. package/src/components/ui/pipeline-board.tsx +12 -5
  213. package/src/components/ui/property-cashflow-doughnut-chart.tsx +3 -1
  214. package/src/components/ui/property-debt-equity-doughnut-chart.tsx +3 -1
  215. package/src/components/ui/property-mobile-estimate-line-chart.tsx +3 -1
  216. package/src/components/ui/sidebar-nav.tsx +36 -37
  217. package/src/components/ui/transactions-expense-categories-doughnut-chart.tsx +3 -1
  218. package/src/components/ui/transactions-income-expense-bar-chart.tsx +12 -9
  219. package/src/components/ui/transactions-liabilities-breakdown-doughnut-chart.tsx +3 -1
  220. package/src/lib/format-currency.ts +44 -0
  221. package/src/lib/format-date.ts +50 -0
  222. package/src/lib/opportunity-constants.ts +12 -0
  223. package/src/styles/globals.css +17 -15
  224. package/src/styles/styles-css.ts +1 -1
  225. package/tsup.config.ts +14 -0
  226. package/dist/chunk-S4QRUQNW.mjs +0 -475
  227. package/dist/chunk-URGMJAE3.mjs +0 -1885
  228. package/dist/chunk-WNGWBVLV.mjs +0 -148
  229. package/dist/{chunk-LLVQKSU3.mjs → chunk-GD4BJDJR.mjs} +3 -3
@@ -0,0 +1,468 @@
1
+ import {
2
+ AppointmentSlotSection
3
+ } from "./chunk-3OYFOX3X.mjs";
4
+ import {
5
+ Textarea
6
+ } from "./chunk-34NWQURD.mjs";
7
+ import {
8
+ Calendar
9
+ } from "./chunk-OODBHKG7.mjs";
10
+ import {
11
+ Avatar,
12
+ AvatarFallback
13
+ } from "./chunk-24FUO7TD.mjs";
14
+ import {
15
+ Badge
16
+ } from "./chunk-BKNFWEH2.mjs";
17
+ import {
18
+ Label
19
+ } from "./chunk-NSLMILBT.mjs";
20
+ import {
21
+ Separator
22
+ } from "./chunk-FH6QVUVZ.mjs";
23
+ import {
24
+ Dialog,
25
+ DialogClose,
26
+ DialogContent,
27
+ DialogDescription,
28
+ DialogFooter,
29
+ DialogHeader,
30
+ DialogTitle
31
+ } from "./chunk-6DZEXFNB.mjs";
32
+ import {
33
+ Button
34
+ } from "./chunk-XREGSKX3.mjs";
35
+
36
+ // src/components/ui/appointment-upcoming-card.tsx
37
+ import React from "react";
38
+ import {
39
+ Calendar as CalendarIcon,
40
+ CalendarCheck,
41
+ Clock,
42
+ ExternalLink
43
+ } from "lucide-react";
44
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
45
+ function AppointmentUpcomingCard({
46
+ appointment,
47
+ amSlots = [],
48
+ pmSlots = [],
49
+ onBookAppointment,
50
+ onReschedule,
51
+ onCancel,
52
+ onAcceptReschedule
53
+ }) {
54
+ var _a, _b, _c;
55
+ const [calendarDialogOpen, setCalendarDialogOpen] = React.useState(false);
56
+ const [acceptDialogOpen, setAcceptDialogOpen] = React.useState(false);
57
+ const [rescheduleDialogOpen, setRescheduleDialogOpen] = React.useState(false);
58
+ const [cancelDialogOpen, setCancelDialogOpen] = React.useState(false);
59
+ const [rescheduleDate, setRescheduleDate] = React.useState(
60
+ /* @__PURE__ */ new Date()
61
+ );
62
+ const [rescheduleSlot, setRescheduleSlot] = React.useState(void 0);
63
+ const [rescheduleNote, setRescheduleNote] = React.useState("");
64
+ const [cancelReason, setCancelReason] = React.useState("");
65
+ const resetRescheduleForm = () => {
66
+ setRescheduleDate(/* @__PURE__ */ new Date());
67
+ setRescheduleSlot(void 0);
68
+ setRescheduleNote("");
69
+ };
70
+ const hasSlotsData = amSlots.length > 0 || pmSlots.length > 0;
71
+ const canSubmitReschedule = hasSlotsData ? !!rescheduleDate && !!rescheduleSlot : !!rescheduleDate;
72
+ if (!appointment) {
73
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-4 border border-border bg-card px-6 py-10 text-center", children: [
74
+ /* @__PURE__ */ jsx("div", { className: "flex h-12 w-12 items-center justify-center bg-muted", children: /* @__PURE__ */ jsx(CalendarIcon, { className: "h-6 w-6 text-muted-foreground" }) }),
75
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
76
+ /* @__PURE__ */ jsx("p", { className: "text-base font-semibold", children: "No upcoming appointments" }),
77
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Schedule time with your advisor to discuss your financial goals." })
78
+ ] }),
79
+ /* @__PURE__ */ jsx(Button, { onClick: onBookAppointment, className: "w-full", children: "Book an Appointment" })
80
+ ] });
81
+ }
82
+ const isPending = appointment.status === "pending";
83
+ const isRescheduled = appointment.status === "rescheduled";
84
+ const isCancelled = appointment.status === "cancelled";
85
+ const statusBadge = (() => {
86
+ if (isPending) return /* @__PURE__ */ jsx(Badge, { variant: "warning", children: "Pending" });
87
+ if (isRescheduled) return /* @__PURE__ */ jsx(Badge, { variant: "info", children: "Rescheduled" });
88
+ if (isCancelled) return /* @__PURE__ */ jsx(Badge, { variant: "destructive", children: "Cancelled" });
89
+ return /* @__PURE__ */ jsx(Badge, { variant: "success", children: "Confirmed" });
90
+ })();
91
+ const noticeBanner = (() => {
92
+ if (isPending) {
93
+ return /* @__PURE__ */ jsx("div", { className: "bg-warning/10 px-5 py-3", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-foreground", children: "Your booking request has been sent. Your advisor will confirm the appointment shortly." }) });
94
+ }
95
+ if (isRescheduled) {
96
+ return /* @__PURE__ */ jsx("div", { className: "bg-info/10 px-5 py-3", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-foreground", children: "Your advisor has proposed a new time. Please review and respond below." }) });
97
+ }
98
+ if (isCancelled) {
99
+ return /* @__PURE__ */ jsx("div", { className: "bg-destructive/10 px-5 py-3", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-foreground", children: "This appointment has been cancelled by your advisor." }) });
100
+ }
101
+ return null;
102
+ })();
103
+ const headerTitle = appointment.appointmentType ? appointment.appointmentType.toUpperCase() : "UPCOMING APPOINTMENT";
104
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
105
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col border border-border bg-card", children: [
106
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-5 py-4", children: [
107
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
108
+ /* @__PURE__ */ jsx(CalendarCheck, { className: "h-4 w-4 text-muted-foreground" }),
109
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold uppercase tracking-wide text-muted-foreground", children: headerTitle })
110
+ ] }),
111
+ statusBadge
112
+ ] }),
113
+ /* @__PURE__ */ jsx(Separator, {}),
114
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 px-5 py-4", children: [
115
+ /* @__PURE__ */ jsx(Avatar, { className: "h-12 w-12 shrink-0", children: /* @__PURE__ */ jsx(AvatarFallback, { className: "text-base", children: appointment.advisor.avatarInitials }) }),
116
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
117
+ /* @__PURE__ */ jsx("p", { className: "text-base font-semibold", children: appointment.advisor.name }),
118
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: appointment.advisor.role }),
119
+ /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: appointment.advisor.company })
120
+ ] })
121
+ ] }),
122
+ /* @__PURE__ */ jsx(Separator, {}),
123
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4 px-5 py-4", children: isRescheduled ? /* @__PURE__ */ jsxs(Fragment, { children: [
124
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
125
+ /* @__PURE__ */ jsx("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: "Original time" }),
126
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 text-sm text-muted-foreground/50 line-through", children: [
127
+ /* @__PURE__ */ jsx(CalendarIcon, { className: "h-4 w-4 shrink-0" }),
128
+ /* @__PURE__ */ jsx("span", { children: (_a = appointment.originalDate) != null ? _a : appointment.date })
129
+ ] }),
130
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 text-sm text-muted-foreground/50 line-through", children: [
131
+ /* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 shrink-0" }),
132
+ /* @__PURE__ */ jsxs("span", { children: [
133
+ (_b = appointment.originalTimeStart) != null ? _b : appointment.timeStart,
134
+ " \u2013",
135
+ " ",
136
+ (_c = appointment.originalTimeEnd) != null ? _c : appointment.timeEnd
137
+ ] })
138
+ ] })
139
+ ] }),
140
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
141
+ /* @__PURE__ */ jsx("p", { className: "text-xs font-medium uppercase tracking-wide text-info", children: "New proposed time" }),
142
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 text-sm text-foreground", children: [
143
+ /* @__PURE__ */ jsx(CalendarIcon, { className: "h-4 w-4 shrink-0" }),
144
+ /* @__PURE__ */ jsx("span", { children: appointment.date })
145
+ ] }),
146
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 text-sm text-foreground", children: [
147
+ /* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 shrink-0" }),
148
+ /* @__PURE__ */ jsxs("span", { children: [
149
+ appointment.timeStart,
150
+ " \u2013 ",
151
+ appointment.timeEnd
152
+ ] })
153
+ ] })
154
+ ] })
155
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
156
+ /* @__PURE__ */ jsxs(
157
+ "div",
158
+ {
159
+ className: `flex items-center gap-2.5 text-sm ${isCancelled ? "text-muted-foreground/50 line-through" : "text-muted-foreground"}`,
160
+ children: [
161
+ /* @__PURE__ */ jsx(CalendarIcon, { className: "h-4 w-4 shrink-0" }),
162
+ /* @__PURE__ */ jsx("span", { children: appointment.date })
163
+ ]
164
+ }
165
+ ),
166
+ /* @__PURE__ */ jsxs(
167
+ "div",
168
+ {
169
+ className: `flex items-center gap-2.5 text-sm ${isCancelled ? "text-muted-foreground/50 line-through" : "text-muted-foreground"}`,
170
+ children: [
171
+ /* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 shrink-0" }),
172
+ /* @__PURE__ */ jsxs("span", { children: [
173
+ appointment.timeStart,
174
+ " \u2013 ",
175
+ appointment.timeEnd
176
+ ] })
177
+ ]
178
+ }
179
+ )
180
+ ] }) }),
181
+ noticeBanner && /* @__PURE__ */ jsxs(Fragment, { children: [
182
+ /* @__PURE__ */ jsx(Separator, {}),
183
+ noticeBanner
184
+ ] }),
185
+ /* @__PURE__ */ jsx(Separator, {}),
186
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 px-5 py-4", children: [
187
+ !isPending && !isRescheduled && !isCancelled && appointment.calendarLink && /* @__PURE__ */ jsxs(
188
+ Button,
189
+ {
190
+ className: "w-full gap-2",
191
+ onClick: () => setCalendarDialogOpen(true),
192
+ children: [
193
+ /* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
194
+ "Add to Calendar"
195
+ ]
196
+ }
197
+ ),
198
+ isRescheduled && /* @__PURE__ */ jsxs(Fragment, { children: [
199
+ /* @__PURE__ */ jsx(
200
+ Button,
201
+ {
202
+ className: "w-full",
203
+ onClick: () => setAcceptDialogOpen(true),
204
+ children: "Accept New Time"
205
+ }
206
+ ),
207
+ /* @__PURE__ */ jsx(
208
+ Button,
209
+ {
210
+ variant: "outline",
211
+ className: "w-full",
212
+ onClick: () => {
213
+ resetRescheduleForm();
214
+ setRescheduleDialogOpen(true);
215
+ },
216
+ children: "Request Another Time"
217
+ }
218
+ )
219
+ ] }),
220
+ isCancelled && /* @__PURE__ */ jsx(Button, { className: "w-full", onClick: onBookAppointment, children: "Book a New Appointment" }),
221
+ !isRescheduled && !isCancelled && /* @__PURE__ */ jsxs(Fragment, { children: [
222
+ /* @__PURE__ */ jsx(
223
+ Button,
224
+ {
225
+ variant: "ghost",
226
+ className: "w-full",
227
+ onClick: () => {
228
+ resetRescheduleForm();
229
+ setRescheduleDialogOpen(true);
230
+ },
231
+ children: "Request Reschedule"
232
+ }
233
+ ),
234
+ /* @__PURE__ */ jsx(
235
+ Button,
236
+ {
237
+ variant: "ghost",
238
+ className: "w-full text-destructive hover:text-destructive",
239
+ onClick: () => {
240
+ setCancelReason("");
241
+ setCancelDialogOpen(true);
242
+ },
243
+ children: "Cancel Booking"
244
+ }
245
+ )
246
+ ] })
247
+ ] })
248
+ ] }),
249
+ /* @__PURE__ */ jsx(Dialog, { open: acceptDialogOpen, onOpenChange: setAcceptDialogOpen, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
250
+ /* @__PURE__ */ jsxs(DialogHeader, { children: [
251
+ /* @__PURE__ */ jsx(DialogTitle, { children: "Accept New Time" }),
252
+ /* @__PURE__ */ jsxs(DialogDescription, { children: [
253
+ "Confirm you want to accept",
254
+ " ",
255
+ /* @__PURE__ */ jsx("span", { className: "font-medium text-foreground", children: appointment.date }),
256
+ " ",
257
+ "from",
258
+ " ",
259
+ /* @__PURE__ */ jsxs("span", { className: "font-medium text-foreground", children: [
260
+ appointment.timeStart,
261
+ " \u2013 ",
262
+ appointment.timeEnd
263
+ ] }),
264
+ " ",
265
+ "as your new appointment time. Your advisor will be notified."
266
+ ] })
267
+ ] }),
268
+ /* @__PURE__ */ jsxs(DialogFooter, { children: [
269
+ /* @__PURE__ */ jsx(DialogClose, { render: /* @__PURE__ */ jsx(Button, { variant: "outline" }), children: "Keep Waiting" }),
270
+ /* @__PURE__ */ jsx(
271
+ Button,
272
+ {
273
+ onClick: () => {
274
+ onAcceptReschedule == null ? void 0 : onAcceptReschedule();
275
+ setAcceptDialogOpen(false);
276
+ },
277
+ children: "Accept New Time"
278
+ }
279
+ )
280
+ ] })
281
+ ] }) }),
282
+ /* @__PURE__ */ jsx(Dialog, { open: calendarDialogOpen, onOpenChange: setCalendarDialogOpen, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
283
+ /* @__PURE__ */ jsxs(DialogHeader, { children: [
284
+ /* @__PURE__ */ jsx(DialogTitle, { children: "Add to Google Calendar" }),
285
+ /* @__PURE__ */ jsx(DialogDescription, { children: "You'll be taken to Google Calendar to save this appointment. Make sure you're signed in to the correct account." })
286
+ ] }),
287
+ /* @__PURE__ */ jsxs(DialogFooter, { children: [
288
+ /* @__PURE__ */ jsx(DialogClose, { render: /* @__PURE__ */ jsx(Button, { variant: "outline" }), children: "Cancel" }),
289
+ /* @__PURE__ */ jsxs(
290
+ Button,
291
+ {
292
+ className: "gap-1.5",
293
+ onClick: () => {
294
+ window.open(appointment.calendarLink, "_blank");
295
+ setCalendarDialogOpen(false);
296
+ },
297
+ children: [
298
+ /* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
299
+ "Open Google Calendar"
300
+ ]
301
+ }
302
+ )
303
+ ] })
304
+ ] }) }),
305
+ /* @__PURE__ */ jsx(
306
+ Dialog,
307
+ {
308
+ open: rescheduleDialogOpen,
309
+ onOpenChange: (next) => {
310
+ if (!next) resetRescheduleForm();
311
+ setRescheduleDialogOpen(next);
312
+ },
313
+ children: /* @__PURE__ */ jsxs(DialogContent, { size: "2xl", children: [
314
+ /* @__PURE__ */ jsxs(DialogHeader, { children: [
315
+ /* @__PURE__ */ jsx(DialogTitle, { children: "Request Reschedule" }),
316
+ /* @__PURE__ */ jsx(DialogDescription, { children: "Choose your preferred date and time. Your advisor will review the request and confirm a new slot." })
317
+ ] }),
318
+ /* @__PURE__ */ jsx(Separator, {}),
319
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
320
+ /* @__PURE__ */ jsx("p", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: "Current booking" }),
321
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 border border-border bg-muted/30 px-3 py-2.5 text-sm text-muted-foreground", children: [
322
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
323
+ /* @__PURE__ */ jsx(CalendarIcon, { className: "h-3.5 w-3.5 shrink-0" }),
324
+ appointment.date
325
+ ] }),
326
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5", children: [
327
+ /* @__PURE__ */ jsx(Clock, { className: "h-3.5 w-3.5 shrink-0" }),
328
+ appointment.timeStart,
329
+ " \u2013 ",
330
+ appointment.timeEnd
331
+ ] })
332
+ ] })
333
+ ] }),
334
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[auto_1fr] items-start gap-5", children: [
335
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
336
+ /* @__PURE__ */ jsx(Label, { children: "Preferred date" }),
337
+ /* @__PURE__ */ jsx(
338
+ Calendar,
339
+ {
340
+ mode: "single",
341
+ selected: rescheduleDate,
342
+ onSelect: (d) => {
343
+ setRescheduleDate(d);
344
+ setRescheduleSlot(void 0);
345
+ },
346
+ captionLayout: "label",
347
+ fromDate: /* @__PURE__ */ new Date(),
348
+ disabled: { before: /* @__PURE__ */ new Date() },
349
+ className: "border border-border"
350
+ }
351
+ )
352
+ ] }),
353
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4", children: hasSlotsData ? rescheduleDate ? /* @__PURE__ */ jsxs(Fragment, { children: [
354
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold", children: "Preferred time" }),
355
+ /* @__PURE__ */ jsx(
356
+ AppointmentSlotSection,
357
+ {
358
+ label: "Morning",
359
+ slots: amSlots,
360
+ selectedSlotId: rescheduleSlot == null ? void 0 : rescheduleSlot.id,
361
+ onSelect: setRescheduleSlot
362
+ }
363
+ ),
364
+ /* @__PURE__ */ jsx(
365
+ AppointmentSlotSection,
366
+ {
367
+ label: "Afternoon",
368
+ slots: pmSlots,
369
+ selectedSlotId: rescheduleSlot == null ? void 0 : rescheduleSlot.id,
370
+ onSelect: setRescheduleSlot
371
+ }
372
+ )
373
+ ] }) : /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col items-center justify-center gap-2 py-8 text-center", children: [
374
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold", children: "Preferred time" }),
375
+ /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Pick a date on the left to see available slots." })
376
+ ] }) : null })
377
+ ] }),
378
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
379
+ /* @__PURE__ */ jsxs(Label, { htmlFor: "reschedule-note", children: [
380
+ "Note",
381
+ " ",
382
+ /* @__PURE__ */ jsx("span", { className: "font-normal text-muted-foreground", children: "(optional)" })
383
+ ] }),
384
+ /* @__PURE__ */ jsx(
385
+ Textarea,
386
+ {
387
+ id: "reschedule-note",
388
+ placeholder: "e.g. I have a conflict at this time and would like to move to a later slot\u2026",
389
+ value: rescheduleNote,
390
+ onChange: (e) => setRescheduleNote(e.target.value),
391
+ className: "w-full resize-none",
392
+ rows: 2
393
+ }
394
+ )
395
+ ] }),
396
+ /* @__PURE__ */ jsxs(DialogFooter, { children: [
397
+ /* @__PURE__ */ jsx(DialogClose, { render: /* @__PURE__ */ jsx(Button, { variant: "outline" }), children: "Cancel" }),
398
+ /* @__PURE__ */ jsx(
399
+ Button,
400
+ {
401
+ disabled: !canSubmitReschedule,
402
+ onClick: () => {
403
+ onReschedule == null ? void 0 : onReschedule(rescheduleDate, rescheduleSlot, rescheduleNote);
404
+ resetRescheduleForm();
405
+ setRescheduleDialogOpen(false);
406
+ },
407
+ children: "Submit Request"
408
+ }
409
+ )
410
+ ] })
411
+ ] })
412
+ }
413
+ ),
414
+ /* @__PURE__ */ jsx(
415
+ Dialog,
416
+ {
417
+ open: cancelDialogOpen,
418
+ onOpenChange: (next) => {
419
+ if (!next) setCancelReason("");
420
+ setCancelDialogOpen(next);
421
+ },
422
+ children: /* @__PURE__ */ jsxs(DialogContent, { children: [
423
+ /* @__PURE__ */ jsxs(DialogHeader, { children: [
424
+ /* @__PURE__ */ jsx(DialogTitle, { children: "Cancel Booking" }),
425
+ /* @__PURE__ */ jsx(DialogDescription, { children: "Are you sure you want to cancel this appointment? Your advisor will be notified. This action cannot be undone." })
426
+ ] }),
427
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
428
+ /* @__PURE__ */ jsxs(Label, { htmlFor: "cancel-reason", children: [
429
+ "Reason",
430
+ " ",
431
+ /* @__PURE__ */ jsx("span", { className: "font-normal text-muted-foreground", children: "(optional)" })
432
+ ] }),
433
+ /* @__PURE__ */ jsx(
434
+ Textarea,
435
+ {
436
+ id: "cancel-reason",
437
+ placeholder: "e.g. I need to reschedule due to a conflict\u2026",
438
+ value: cancelReason,
439
+ onChange: (e) => setCancelReason(e.target.value),
440
+ className: "w-full resize-none",
441
+ rows: 2
442
+ }
443
+ )
444
+ ] }),
445
+ /* @__PURE__ */ jsxs(DialogFooter, { children: [
446
+ /* @__PURE__ */ jsx(DialogClose, { render: /* @__PURE__ */ jsx(Button, { variant: "outline" }), children: "Keep Booking" }),
447
+ /* @__PURE__ */ jsx(
448
+ Button,
449
+ {
450
+ variant: "destructive",
451
+ onClick: () => {
452
+ onCancel == null ? void 0 : onCancel(cancelReason);
453
+ setCancelReason("");
454
+ setCancelDialogOpen(false);
455
+ },
456
+ children: "Cancel Booking"
457
+ }
458
+ )
459
+ ] })
460
+ ] })
461
+ }
462
+ )
463
+ ] });
464
+ }
465
+
466
+ export {
467
+ AppointmentUpcomingCard
468
+ };
@@ -6,6 +6,9 @@ import {
6
6
  import {
7
7
  Input
8
8
  } from "./chunk-GYMYRIZP.mjs";
9
+ import {
10
+ Button
11
+ } from "./chunk-XREGSKX3.mjs";
9
12
  import {
10
13
  cn
11
14
  } from "./chunk-VLQZANBF.mjs";
@@ -65,15 +68,16 @@ function ColorSwatch({
65
68
  className
66
69
  }) {
67
70
  return /* @__PURE__ */ jsx(
68
- "button",
71
+ Button,
69
72
  {
70
73
  type: "button",
74
+ variant: "ghost",
71
75
  title: color,
72
76
  "aria-label": `Select color ${color}`,
73
77
  "aria-pressed": selected,
74
78
  onClick: () => onClick == null ? void 0 : onClick(color),
75
79
  className: cn(
76
- "relative shrink-0 transition-all outline-none shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]",
80
+ "relative shrink-0 p-0 transition-all outline-none shadow-[inset_0_0_0_1px_rgba(0,0,0,0.12)]",
77
81
  "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
78
82
  size === "md" ? "size-7" : "size-5",
79
83
  selected && "ring-2 ring-foreground ring-offset-1 ring-offset-background",
@@ -0,0 +1,169 @@
1
+ import {
2
+ Avatar,
3
+ AvatarFallback,
4
+ AvatarImage
5
+ } from "./chunk-24FUO7TD.mjs";
6
+ import {
7
+ Badge
8
+ } from "./chunk-BKNFWEH2.mjs";
9
+ import {
10
+ Separator
11
+ } from "./chunk-FH6QVUVZ.mjs";
12
+ import {
13
+ Button
14
+ } from "./chunk-XREGSKX3.mjs";
15
+
16
+ // src/components/ui/advisor-card.tsx
17
+ import {
18
+ Calendar,
19
+ CalendarCheck,
20
+ ChevronRight,
21
+ Mail,
22
+ MoreVertical,
23
+ Phone
24
+ } from "lucide-react";
25
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
26
+ var STATUS_VARIANT = {
27
+ pending: "warning",
28
+ confirmed: "success",
29
+ cancelled: "destructive",
30
+ rescheduled: "info"
31
+ };
32
+ var STATUS_LABEL = {
33
+ pending: "Pending",
34
+ confirmed: "Confirmed",
35
+ cancelled: "Cancelled",
36
+ rescheduled: "Rescheduled"
37
+ };
38
+ var STRIP_BG = {
39
+ pending: "bg-warning/5",
40
+ confirmed: "bg-success/5",
41
+ cancelled: "bg-destructive/5",
42
+ rescheduled: "bg-info/5"
43
+ };
44
+ function AdvisorCard({
45
+ name,
46
+ role,
47
+ phone,
48
+ email,
49
+ companyLogoUrl,
50
+ avatarInitials,
51
+ isPrimary = false,
52
+ appointment,
53
+ onRefer,
54
+ onMoreOptions,
55
+ onBookAppointment,
56
+ onViewAppointment
57
+ }) {
58
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-col border border-border bg-card", children: [
59
+ /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4 p-4", children: [
60
+ /* @__PURE__ */ jsxs(Avatar, { className: "h-10 w-10 shrink-0", children: [
61
+ companyLogoUrl && /* @__PURE__ */ jsx(AvatarImage, { src: companyLogoUrl, alt: `${name} company logo` }),
62
+ /* @__PURE__ */ jsx(AvatarFallback, { className: "text-sm", children: avatarInitials != null ? avatarInitials : name.slice(0, 2).toUpperCase() })
63
+ ] }),
64
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
65
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold leading-tight", children: name }),
66
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: role }),
67
+ /* @__PURE__ */ jsxs("div", { className: "mt-2 flex flex-col gap-1", children: [
68
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
69
+ /* @__PURE__ */ jsx(Phone, { className: "h-3 w-3 shrink-0" }),
70
+ /* @__PURE__ */ jsx("span", { children: phone })
71
+ ] }),
72
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
73
+ /* @__PURE__ */ jsx(Mail, { className: "h-3 w-3 shrink-0" }),
74
+ /* @__PURE__ */ jsx("span", { children: email })
75
+ ] })
76
+ ] })
77
+ ] }),
78
+ /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-1.5", children: [
79
+ isPrimary && /* @__PURE__ */ jsx(Badge, { variant: "success", children: "Primary" }),
80
+ /* @__PURE__ */ jsx(
81
+ Button,
82
+ {
83
+ variant: "ghost",
84
+ size: "icon",
85
+ className: "h-7 w-7",
86
+ onClick: onMoreOptions,
87
+ "aria-label": "More options",
88
+ children: /* @__PURE__ */ jsx(MoreVertical, { className: "h-4 w-4" })
89
+ }
90
+ )
91
+ ] })
92
+ ] }),
93
+ appointment !== void 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
94
+ /* @__PURE__ */ jsx(Separator, {}),
95
+ appointment ? (
96
+ /* Has appointment */
97
+ /* @__PURE__ */ jsxs(
98
+ "div",
99
+ {
100
+ className: `flex items-center gap-3 px-4 py-3 ${STRIP_BG[appointment.status]}`,
101
+ children: [
102
+ /* @__PURE__ */ jsx(CalendarCheck, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
103
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
104
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
105
+ /* @__PURE__ */ jsx(
106
+ Badge,
107
+ {
108
+ variant: STATUS_VARIANT[appointment.status],
109
+ className: "text-[10px]",
110
+ children: STATUS_LABEL[appointment.status]
111
+ }
112
+ ),
113
+ appointment.appointmentType && /* @__PURE__ */ jsx("span", { className: "truncate text-xs text-muted-foreground", children: appointment.appointmentType })
114
+ ] }),
115
+ /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
116
+ appointment.date,
117
+ " \xB7 ",
118
+ appointment.timeStart,
119
+ "\u2013",
120
+ appointment.timeEnd
121
+ ] })
122
+ ] }),
123
+ onViewAppointment && /* @__PURE__ */ jsxs(
124
+ Button,
125
+ {
126
+ variant: "ghost",
127
+ size: "sm",
128
+ className: "h-7 shrink-0 gap-1 px-2 text-xs",
129
+ onClick: onViewAppointment,
130
+ children: [
131
+ "View",
132
+ /* @__PURE__ */ jsx(ChevronRight, { className: "h-3 w-3" })
133
+ ]
134
+ }
135
+ )
136
+ ]
137
+ }
138
+ )
139
+ ) : (
140
+ /* No appointment */
141
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 px-4 py-3", children: [
142
+ /* @__PURE__ */ jsx(Calendar, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
143
+ /* @__PURE__ */ jsx("p", { className: "flex-1 text-xs text-muted-foreground", children: "No upcoming appointments" })
144
+ ] })
145
+ )
146
+ ] }),
147
+ /* @__PURE__ */ jsx(Separator, {}),
148
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-4 py-3", children: [
149
+ onBookAppointment && /* @__PURE__ */ jsx(
150
+ Button,
151
+ {
152
+ variant: "outline-primary",
153
+ size: "sm",
154
+ onClick: onBookAppointment,
155
+ children: "Book Appointment"
156
+ }
157
+ ),
158
+ onRefer && /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", onClick: onRefer, children: [
159
+ "Refer ",
160
+ name,
161
+ " to Others"
162
+ ] })
163
+ ] })
164
+ ] });
165
+ }
166
+
167
+ export {
168
+ AdvisorCard
169
+ };