@wealthx/shadcn 1.2.1 → 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 (247) hide show
  1. package/.turbo/turbo-build.log +203 -150
  2. package/CHANGELOG.md +29 -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-SYOD63OZ.mjs → chunk-5FQIKDKP.mjs} +6 -6
  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-WOEHFRGB.mjs → chunk-BDYZCBRT.mjs} +4 -4
  20. package/dist/{chunk-WAZD7NFU.mjs → chunk-BKNFWEH2.mjs} +6 -6
  21. package/dist/{chunk-CLIN5525.mjs → chunk-C7CQJNMR.mjs} +1 -1
  22. package/dist/{chunk-D4ILTPOG.mjs → chunk-CFMQP5QS.mjs} +5 -4
  23. package/dist/{chunk-VPBN3WOO.mjs → chunk-DGHAXJBN.mjs} +9 -7
  24. package/dist/chunk-DOEO3CDL.mjs +27 -0
  25. package/dist/{chunk-KUDCQ4FI.mjs → chunk-DUJTAXMH.mjs} +9 -4
  26. package/dist/{chunk-GGM2UYGG.mjs → chunk-EBXQWIYG.mjs} +10 -4
  27. package/dist/{chunk-PMB3A7V3.mjs → chunk-EI5F6FMT.mjs} +1 -1
  28. package/dist/chunk-EWRB4PAD.mjs +468 -0
  29. package/dist/chunk-FAKPBKLT.mjs +253 -0
  30. package/dist/chunk-FNQXOAYJ.mjs +169 -0
  31. package/dist/{chunk-4CX4SBRO.mjs → chunk-GHC7LLUX.mjs} +14 -5
  32. package/dist/chunk-HBZLGDIN.mjs +507 -0
  33. package/dist/{chunk-SIZMLSRU.mjs → chunk-HISNT2MG.mjs} +8 -6
  34. package/dist/{chunk-PR6V5XKM.mjs → chunk-HVY6KCCF.mjs} +7 -4
  35. package/dist/chunk-I3RZS7V2.mjs +136 -0
  36. package/dist/chunk-IAE3F7DR.mjs +1962 -0
  37. package/dist/{chunk-ZRO5JO3H.mjs → chunk-IHMFS7NZ.mjs} +81 -84
  38. package/dist/{chunk-PCPLO5HT.mjs → chunk-IOJRDS6V.mjs} +96 -14
  39. package/dist/{chunk-LHYCMLVA.mjs → chunk-JKGDCQTZ.mjs} +11 -4
  40. package/dist/{chunk-H45TKD34.mjs → chunk-JMHR3YGZ.mjs} +1 -1
  41. package/dist/{chunk-4MN6UQHG.mjs → chunk-K5A5L6T2.mjs} +17 -39
  42. package/dist/{chunk-CSDO6VBW.mjs → chunk-LBMRIB3G.mjs} +10 -10
  43. package/dist/chunk-LV35NGVG.mjs +272 -0
  44. package/dist/{chunk-FZIXGLMV.mjs → chunk-M3FV7LOK.mjs} +5 -12
  45. package/dist/{chunk-FMAXJ2SI.mjs → chunk-MBON7YRJ.mjs} +1 -1
  46. package/dist/chunk-MIZQHHUO.mjs +441 -0
  47. package/dist/chunk-MN5NYQCL.mjs +29 -0
  48. package/dist/chunk-NL3ZO62D.mjs +31 -0
  49. package/dist/{chunk-Q76O3RIQ.mjs → chunk-NMOI6CQD.mjs} +1 -1
  50. package/dist/{chunk-P6AM5V7O.mjs → chunk-OODBHKG7.mjs} +1 -1
  51. package/dist/chunk-PBL4OQV2.mjs +283 -0
  52. package/dist/{chunk-3WMX6KWS.mjs → chunk-PU4YZQXV.mjs} +11 -12
  53. package/dist/chunk-QMY3AZJH.mjs +80 -0
  54. package/dist/{chunk-BL3DXM2X.mjs → chunk-QZ4RE6NA.mjs} +11 -4
  55. package/dist/{chunk-VACKZOMY.mjs → chunk-R3VSPKNP.mjs} +3 -3
  56. package/dist/{chunk-OPNQAVVH.mjs → chunk-RJI6GKVF.mjs} +8 -6
  57. package/dist/{chunk-WG6JGJXB.mjs → chunk-T4BJLT57.mjs} +1 -1
  58. package/dist/chunk-U4NDAF2P.mjs +207 -0
  59. package/dist/{chunk-DOH3EHX7.mjs → chunk-U5X52X37.mjs} +1 -1
  60. package/dist/chunk-UMTOX62O.mjs +415 -0
  61. package/dist/{chunk-7MMXNK3C.mjs → chunk-VLARHE5V.mjs} +8 -6
  62. package/dist/{chunk-2I5S2AMY.mjs → chunk-XREGSKX3.mjs} +2 -2
  63. package/dist/{chunk-JNQORUPP.mjs → chunk-YJG55G2H.mjs} +14 -11
  64. package/dist/chunk-ZC45IGZO.mjs +388 -0
  65. package/dist/components/ui/add-column-modal.js +42 -14
  66. package/dist/components/ui/add-column-modal.mjs +4 -4
  67. package/dist/components/ui/add-lead-modal.js +42 -11
  68. package/dist/components/ui/add-lead-modal.mjs +3 -3
  69. package/dist/components/ui/advisor-card.js +497 -0
  70. package/dist/components/ui/advisor-card.mjs +13 -0
  71. package/dist/components/ui/ai-assistant-drawer.js +11 -10
  72. package/dist/components/ui/ai-assistant-drawer.mjs +3 -3
  73. package/dist/components/ui/alert-dialog.js +2 -2
  74. package/dist/components/ui/alert-dialog.mjs +2 -2
  75. package/dist/components/ui/appointment-action-dialogs.js +1160 -0
  76. package/dist/components/ui/appointment-action-dialogs.mjs +23 -0
  77. package/dist/components/ui/appointment-availability-settings.js +1590 -0
  78. package/dist/components/ui/appointment-availability-settings.mjs +23 -0
  79. package/dist/components/ui/appointment-book-dialog.js +1744 -0
  80. package/dist/components/ui/appointment-book-dialog.mjs +27 -0
  81. package/dist/components/ui/appointment-calendar-view.js +833 -0
  82. package/dist/components/ui/appointment-calendar-view.mjs +14 -0
  83. package/dist/components/ui/appointment-detail-sheet.js +1517 -0
  84. package/dist/components/ui/appointment-detail-sheet.mjs +24 -0
  85. package/dist/components/ui/appointment-gmail-connect.js +467 -0
  86. package/dist/components/ui/appointment-gmail-connect.mjs +14 -0
  87. package/dist/components/ui/appointment-mini-card.js +345 -0
  88. package/dist/components/ui/appointment-mini-card.mjs +11 -0
  89. package/dist/components/ui/appointment-time-slot-picker.js +311 -0
  90. package/dist/components/ui/appointment-time-slot-picker.mjs +13 -0
  91. package/dist/components/ui/appointment-upcoming-card.js +1268 -0
  92. package/dist/components/ui/appointment-upcoming-card.mjs +21 -0
  93. package/dist/components/ui/backoffice-alert-history-chart.js +11 -5
  94. package/dist/components/ui/backoffice-alert-history-chart.mjs +5 -4
  95. package/dist/components/ui/backoffice-alerts-chart.js +786 -0
  96. package/dist/components/ui/backoffice-alerts-chart.mjs +19 -0
  97. package/dist/components/ui/backoffice-connections-chart.js +817 -0
  98. package/dist/components/ui/backoffice-connections-chart.mjs +19 -0
  99. package/dist/components/ui/backoffice-contact-history-chart.js +11 -5
  100. package/dist/components/ui/backoffice-contact-history-chart.mjs +5 -4
  101. package/dist/components/ui/badge.js +6 -6
  102. package/dist/components/ui/badge.mjs +1 -1
  103. package/dist/components/ui/borrowing-capacity-line-chart.js +30 -21
  104. package/dist/components/ui/borrowing-capacity-line-chart.mjs +5 -4
  105. package/dist/components/ui/button.js +2 -2
  106. package/dist/components/ui/button.mjs +1 -1
  107. package/dist/components/ui/calendar.js +2 -2
  108. package/dist/components/ui/calendar.mjs +2 -2
  109. package/dist/components/ui/card.js +1 -1
  110. package/dist/components/ui/card.mjs +1 -1
  111. package/dist/components/ui/cash-balance-line-chart.js +31 -23
  112. package/dist/components/ui/cash-balance-line-chart.mjs +5 -4
  113. package/dist/components/ui/cashflow-bar-chart.js +12 -5
  114. package/dist/components/ui/cashflow-bar-chart.mjs +5 -4
  115. package/dist/components/ui/chip.js +97 -18
  116. package/dist/components/ui/chip.mjs +3 -2
  117. package/dist/components/ui/color-picker.js +547 -0
  118. package/dist/components/ui/color-picker.mjs +24 -0
  119. package/dist/components/ui/data-table.js +182 -129
  120. package/dist/components/ui/data-table.mjs +3 -2
  121. package/dist/components/ui/date-picker.js +48 -27
  122. package/dist/components/ui/date-picker.mjs +4 -3
  123. package/dist/components/ui/dialog.js +37 -9
  124. package/dist/components/ui/dialog.mjs +2 -2
  125. package/dist/components/ui/expense-bar-chart.js +12 -5
  126. package/dist/components/ui/expense-bar-chart.mjs +5 -4
  127. package/dist/components/ui/field.mjs +2 -2
  128. package/dist/components/ui/financial-cards.js +322 -155
  129. package/dist/components/ui/financial-cards.mjs +5 -3
  130. package/dist/components/ui/financial-drawers.js +2 -2
  131. package/dist/components/ui/financial-drawers.mjs +3 -3
  132. package/dist/components/ui/financial-sections.js +14 -10
  133. package/dist/components/ui/financial-sections.mjs +6 -5
  134. package/dist/components/ui/form-primitives.js +4 -4
  135. package/dist/components/ui/form-primitives.mjs +3 -3
  136. package/dist/components/ui/income-bar-chart.js +12 -5
  137. package/dist/components/ui/income-bar-chart.mjs +5 -4
  138. package/dist/components/ui/input-group.js +2 -2
  139. package/dist/components/ui/input-group.mjs +2 -2
  140. package/dist/components/ui/kanban-column.js +52 -44
  141. package/dist/components/ui/kanban-column.mjs +7 -5
  142. package/dist/components/ui/opportunity-card.js +52 -44
  143. package/dist/components/ui/opportunity-card.mjs +6 -4
  144. package/dist/components/ui/opportunity-edit-modals.js +1371 -1267
  145. package/dist/components/ui/opportunity-edit-modals.mjs +10 -10
  146. package/dist/components/ui/opportunity-summary-tab.js +2748 -2161
  147. package/dist/components/ui/opportunity-summary-tab.mjs +16 -16
  148. package/dist/components/ui/page-header.js +92 -0
  149. package/dist/components/ui/page-header.mjs +8 -0
  150. package/dist/components/ui/page-top-bar.js +88 -0
  151. package/dist/components/ui/page-top-bar.mjs +8 -0
  152. package/dist/components/ui/pagination.js +303 -19
  153. package/dist/components/ui/pagination.mjs +11 -4
  154. package/dist/components/ui/pipeline-board.js +209 -195
  155. package/dist/components/ui/pipeline-board.mjs +10 -8
  156. package/dist/components/ui/pipeline-dialogs.js +118 -69
  157. package/dist/components/ui/pipeline-dialogs.mjs +8 -7
  158. package/dist/components/ui/pipeline-primitives.js +6 -6
  159. package/dist/components/ui/pipeline-primitives.mjs +2 -2
  160. package/dist/components/ui/property-cashflow-doughnut-chart.js +14 -12
  161. package/dist/components/ui/property-cashflow-doughnut-chart.mjs +5 -4
  162. package/dist/components/ui/property-debt-equity-doughnut-chart.js +14 -12
  163. package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +5 -4
  164. package/dist/components/ui/property-mobile-estimate-line-chart.js +16 -14
  165. package/dist/components/ui/property-mobile-estimate-line-chart.mjs +5 -4
  166. package/dist/components/ui/sidebar-nav.js +679 -0
  167. package/dist/components/ui/sidebar-nav.mjs +14 -0
  168. package/dist/components/ui/stage-timeline.js +6 -6
  169. package/dist/components/ui/stage-timeline.mjs +3 -3
  170. package/dist/components/ui/stepper.js +283 -0
  171. package/dist/components/ui/stepper.mjs +18 -0
  172. package/dist/components/ui/toggle-group.js +4 -4
  173. package/dist/components/ui/toggle-group.mjs +2 -2
  174. package/dist/components/ui/toggle.js +4 -4
  175. package/dist/components/ui/toggle.mjs +1 -1
  176. package/dist/components/ui/transactions-expense-categories-doughnut-chart.js +18 -16
  177. package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +5 -4
  178. package/dist/components/ui/transactions-income-expense-bar-chart.js +28 -12
  179. package/dist/components/ui/transactions-income-expense-bar-chart.mjs +5 -4
  180. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js +18 -16
  181. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +5 -4
  182. package/dist/index.js +12927 -8522
  183. package/dist/index.mjs +288 -190
  184. package/dist/lib/typography.js +10 -10
  185. package/dist/lib/typography.mjs +1 -1
  186. package/dist/styles.css +1 -1
  187. package/package.json +86 -1
  188. package/src/components/index.tsx +146 -0
  189. package/src/components/ui/add-column-modal.tsx +7 -7
  190. package/src/components/ui/add-lead-modal.tsx +6 -3
  191. package/src/components/ui/advisor-card.tsx +227 -0
  192. package/src/components/ui/ai-assistant-drawer.tsx +4 -3
  193. package/src/components/ui/appointment-action-dialogs.tsx +297 -0
  194. package/src/components/ui/appointment-availability-settings.tsx +645 -0
  195. package/src/components/ui/appointment-book-dialog.tsx +618 -0
  196. package/src/components/ui/appointment-calendar-view.tsx +510 -0
  197. package/src/components/ui/appointment-detail-sheet.tsx +415 -0
  198. package/src/components/ui/appointment-gmail-connect.tsx +188 -0
  199. package/src/components/ui/appointment-mini-card.tsx +104 -0
  200. package/src/components/ui/appointment-time-slot-picker.tsx +123 -0
  201. package/src/components/ui/appointment-upcoming-card.tsx +635 -0
  202. package/src/components/ui/backoffice-alert-history-chart.tsx +10 -2
  203. package/src/components/ui/backoffice-alerts-chart.tsx +312 -0
  204. package/src/components/ui/backoffice-connections-chart.tsx +339 -0
  205. package/src/components/ui/backoffice-contact-history-chart.tsx +10 -2
  206. package/src/components/ui/badge.tsx +12 -6
  207. package/src/components/ui/borrowing-capacity-line-chart.tsx +4 -11
  208. package/src/components/ui/button.tsx +2 -2
  209. package/src/components/ui/card.tsx +1 -1
  210. package/src/components/ui/cash-balance-line-chart.tsx +4 -23
  211. package/src/components/ui/cashflow-bar-chart.tsx +9 -2
  212. package/src/components/ui/chart-shared.tsx +4 -11
  213. package/src/components/ui/chip.tsx +23 -19
  214. package/src/components/ui/color-picker.tsx +309 -0
  215. package/src/components/ui/data-table.tsx +117 -83
  216. package/src/components/ui/date-picker.tsx +42 -37
  217. package/src/components/ui/dialog.tsx +72 -6
  218. package/src/components/ui/expense-bar-chart.tsx +11 -2
  219. package/src/components/ui/financial-cards.tsx +99 -10
  220. package/src/components/ui/income-bar-chart.tsx +11 -2
  221. package/src/components/ui/opportunity-card.tsx +10 -39
  222. package/src/components/ui/opportunity-edit-modals.tsx +98 -36
  223. package/src/components/ui/opportunity-summary-tab.tsx +548 -232
  224. package/src/components/ui/page-header.tsx +57 -0
  225. package/src/components/ui/page-top-bar.tsx +48 -0
  226. package/src/components/ui/pagination.tsx +171 -22
  227. package/src/components/ui/pipeline-board.tsx +12 -5
  228. package/src/components/ui/property-cashflow-doughnut-chart.tsx +3 -1
  229. package/src/components/ui/property-debt-equity-doughnut-chart.tsx +3 -1
  230. package/src/components/ui/property-mobile-estimate-line-chart.tsx +3 -1
  231. package/src/components/ui/sidebar-nav.tsx +516 -0
  232. package/src/components/ui/stepper.tsx +347 -0
  233. package/src/components/ui/toggle.tsx +4 -4
  234. package/src/components/ui/transactions-expense-categories-doughnut-chart.tsx +3 -1
  235. package/src/components/ui/transactions-income-expense-bar-chart.tsx +12 -9
  236. package/src/components/ui/transactions-liabilities-breakdown-doughnut-chart.tsx +3 -1
  237. package/src/lib/format-currency.ts +44 -0
  238. package/src/lib/format-date.ts +50 -0
  239. package/src/lib/opportunity-constants.ts +12 -0
  240. package/src/lib/typography.ts +11 -11
  241. package/src/styles/globals.css +36 -34
  242. package/src/styles/styles-css.ts +1 -1
  243. package/tsup.config.ts +17 -0
  244. package/dist/chunk-PG6K5XEC.mjs +0 -475
  245. package/dist/chunk-WA6O6EUR.mjs +0 -1885
  246. package/dist/chunk-WNGWBVLV.mjs +0 -148
  247. package/dist/{chunk-LLVQKSU3.mjs → chunk-GD4BJDJR.mjs} +3 -3
@@ -0,0 +1,1160 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+
59
+ // src/components/ui/appointment-action-dialogs.tsx
60
+ var appointment_action_dialogs_exports = {};
61
+ __export(appointment_action_dialogs_exports, {
62
+ AppointmentConfirmDialog: () => AppointmentConfirmDialog,
63
+ AppointmentRescheduleDialog: () => AppointmentRescheduleDialog
64
+ });
65
+ module.exports = __toCommonJS(appointment_action_dialogs_exports);
66
+ var import_react3 = __toESM(require("react"));
67
+
68
+ // src/components/ui/alert-dialog.tsx
69
+ var import_alert_dialog = require("@base-ui/react/alert-dialog");
70
+
71
+ // src/lib/utils.ts
72
+ var import_clsx = require("clsx");
73
+ var import_tailwind_merge = require("tailwind-merge");
74
+ var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
75
+ extend: {
76
+ classGroups: {
77
+ "font-size": [
78
+ {
79
+ text: [
80
+ "display-large",
81
+ "display-medium",
82
+ "display-small",
83
+ "h1",
84
+ "h2",
85
+ "h3",
86
+ "h4",
87
+ "h5",
88
+ "h6",
89
+ "body-large",
90
+ "body-medium",
91
+ "body-small",
92
+ "label-large",
93
+ "label-medium",
94
+ "label-small",
95
+ "button",
96
+ "button-xs",
97
+ "caption",
98
+ "overline",
99
+ "code"
100
+ ]
101
+ }
102
+ ]
103
+ }
104
+ }
105
+ });
106
+ function cn(...inputs) {
107
+ return twMerge((0, import_clsx.clsx)(inputs));
108
+ }
109
+
110
+ // src/lib/theme-provider.tsx
111
+ var import_react = require("react");
112
+ var import_jsx_runtime = require("react/jsx-runtime");
113
+ var ThemeVarsContext = (0, import_react.createContext)({});
114
+ function useThemeVars() {
115
+ return (0, import_react.useContext)(ThemeVarsContext);
116
+ }
117
+
118
+ // src/components/ui/button.tsx
119
+ var import_react2 = require("react");
120
+ var import_class_variance_authority = require("class-variance-authority");
121
+ var import_lucide_react = require("lucide-react");
122
+
123
+ // src/lib/slot.tsx
124
+ var React2 = __toESM(require("react"));
125
+ function mergeRefs(...refs) {
126
+ return (value) => {
127
+ for (const ref of refs) {
128
+ if (typeof ref === "function") ref(value);
129
+ else if (ref !== null)
130
+ ref.current = value;
131
+ }
132
+ };
133
+ }
134
+ var Slot = React2.forwardRef(
135
+ (_a, forwardedRef) => {
136
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
137
+ const child = React2.Children.only(children);
138
+ if (!React2.isValidElement(child)) return null;
139
+ const childProps = child.props;
140
+ const merged = __spreadValues({}, props);
141
+ for (const key of Object.keys(childProps)) {
142
+ if (key === "className") {
143
+ merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
144
+ } else if (key === "style") {
145
+ merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
146
+ } else if (key.startsWith("on") && typeof childProps[key] === "function") {
147
+ const parentHandler = props[key];
148
+ if (typeof parentHandler === "function") {
149
+ merged[key] = (...args) => {
150
+ childProps[key](...args);
151
+ parentHandler(...args);
152
+ };
153
+ } else {
154
+ merged[key] = childProps[key];
155
+ }
156
+ } else {
157
+ merged[key] = childProps[key];
158
+ }
159
+ }
160
+ const childRef = child.ref;
161
+ merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
162
+ return React2.cloneElement(
163
+ child,
164
+ merged
165
+ );
166
+ }
167
+ );
168
+ Slot.displayName = "Slot";
169
+
170
+ // src/components/ui/button.tsx
171
+ var import_jsx_runtime2 = require("react/jsx-runtime");
172
+ var buttonVariants = (0, import_class_variance_authority.cva)(
173
+ "inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 font-sans text-button whitespace-nowrap transition-all active:scale-[0.98] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
174
+ {
175
+ variants: {
176
+ variant: {
177
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
178
+ secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
179
+ destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
180
+ outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:ring-border/50 dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
181
+ "outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
182
+ "outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:ring-brand-secondary/30",
183
+ ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs focus-visible:ring-border/50 dark:hover:bg-accent/50",
184
+ link: "text-primary underline-offset-4 hover:underline"
185
+ },
186
+ size: {
187
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
188
+ xs: "h-6 gap-1 px-2 text-button-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
189
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
190
+ lg: "h-10 px-6 has-[>svg]:px-4",
191
+ icon: "size-9",
192
+ "icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
193
+ "icon-sm": "size-8",
194
+ "icon-lg": "size-10"
195
+ }
196
+ },
197
+ defaultVariants: {
198
+ variant: "default",
199
+ size: "default"
200
+ }
201
+ }
202
+ );
203
+ var Button = (0, import_react2.forwardRef)(function Button2(_a, ref) {
204
+ var _b = _a, {
205
+ className,
206
+ variant,
207
+ size,
208
+ asChild = false,
209
+ loading = false,
210
+ disabled,
211
+ type = "button",
212
+ children
213
+ } = _b, props = __objRest(_b, [
214
+ "className",
215
+ "variant",
216
+ "size",
217
+ "asChild",
218
+ "loading",
219
+ "disabled",
220
+ "type",
221
+ "children"
222
+ ]);
223
+ const Comp = asChild ? Slot : "button";
224
+ const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
225
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
226
+ Comp,
227
+ __spreadProps(__spreadValues({
228
+ className: cn(buttonVariants({ variant, size, className })),
229
+ "data-size": size,
230
+ "data-slot": "button",
231
+ "data-variant": variant,
232
+ disabled: loading || disabled,
233
+ ref,
234
+ type
235
+ }, props), {
236
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
237
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
238
+ !isIconOnly && children
239
+ ] }) : children
240
+ })
241
+ );
242
+ });
243
+
244
+ // src/components/ui/alert-dialog.tsx
245
+ var import_jsx_runtime3 = require("react/jsx-runtime");
246
+ function AlertDialog(_a) {
247
+ var props = __objRest(_a, []);
248
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_alert_dialog.AlertDialog.Root, __spreadValues({ "data-slot": "alert-dialog" }, props));
249
+ }
250
+ function AlertDialogPortal(_a) {
251
+ var props = __objRest(_a, []);
252
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_alert_dialog.AlertDialog.Portal, __spreadValues({ "data-slot": "alert-dialog-portal" }, props));
253
+ }
254
+ function AlertDialogOverlay(_a) {
255
+ var _b = _a, {
256
+ className
257
+ } = _b, props = __objRest(_b, [
258
+ "className"
259
+ ]);
260
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
261
+ import_alert_dialog.AlertDialog.Backdrop,
262
+ __spreadValues({
263
+ className: cn(
264
+ // WealthX: foreground/50 scrim — matches Figma foreground token at 50% opacity
265
+ "fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
266
+ className
267
+ ),
268
+ "data-slot": "alert-dialog-overlay"
269
+ }, props)
270
+ );
271
+ }
272
+ function AlertDialogContent(_a) {
273
+ var _b = _a, {
274
+ className,
275
+ size = "default",
276
+ style
277
+ } = _b, props = __objRest(_b, [
278
+ "className",
279
+ "size",
280
+ "style"
281
+ ]);
282
+ const themeVars = useThemeVars();
283
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(AlertDialogPortal, { children: [
284
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogOverlay, {}),
285
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
286
+ import_alert_dialog.AlertDialog.Popup,
287
+ __spreadValues({
288
+ className: cn(
289
+ // WealthX: removed rounded-lg (sharp corners), shadow-lg (flat panels)
290
+ "group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 duration-200 data-[size=sm]:max-w-xs data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[size=default]:sm:max-w-lg",
291
+ className
292
+ ),
293
+ "data-size": size,
294
+ "data-slot": "alert-dialog-content",
295
+ style: __spreadValues(__spreadValues({}, themeVars), style)
296
+ }, props)
297
+ )
298
+ ] });
299
+ }
300
+ function AlertDialogHeader(_a) {
301
+ var _b = _a, {
302
+ className
303
+ } = _b, props = __objRest(_b, [
304
+ "className"
305
+ ]);
306
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
307
+ "div",
308
+ __spreadValues({
309
+ className: cn(
310
+ "grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",
311
+ className
312
+ ),
313
+ "data-slot": "alert-dialog-header"
314
+ }, props)
315
+ );
316
+ }
317
+ function AlertDialogFooter(_a) {
318
+ var _b = _a, {
319
+ className
320
+ } = _b, props = __objRest(_b, [
321
+ "className"
322
+ ]);
323
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
324
+ "div",
325
+ __spreadValues({
326
+ className: cn(
327
+ // WealthX: always row, right-aligned, separator above footer (matches Figma)
328
+ "flex flex-row justify-end gap-2 border-t border-border pt-4",
329
+ className
330
+ ),
331
+ "data-slot": "alert-dialog-footer"
332
+ }, props)
333
+ );
334
+ }
335
+ function AlertDialogTitle(_a) {
336
+ var _b = _a, {
337
+ className
338
+ } = _b, props = __objRest(_b, [
339
+ "className"
340
+ ]);
341
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
342
+ import_alert_dialog.AlertDialog.Title,
343
+ __spreadValues({
344
+ className: cn(
345
+ "text-h5 sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
346
+ className
347
+ ),
348
+ "data-slot": "alert-dialog-title"
349
+ }, props)
350
+ );
351
+ }
352
+ function AlertDialogDescription(_a) {
353
+ var _b = _a, {
354
+ className
355
+ } = _b, props = __objRest(_b, [
356
+ "className"
357
+ ]);
358
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
359
+ import_alert_dialog.AlertDialog.Description,
360
+ __spreadValues({
361
+ className: cn(
362
+ "text-body-small text-muted-foreground sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
363
+ className
364
+ ),
365
+ "data-slot": "alert-dialog-description"
366
+ }, props)
367
+ );
368
+ }
369
+ function AlertDialogAction(_a) {
370
+ var _b = _a, {
371
+ className,
372
+ variant = "default",
373
+ size = "default"
374
+ } = _b, props = __objRest(_b, [
375
+ "className",
376
+ "variant",
377
+ "size"
378
+ ]);
379
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
380
+ import_alert_dialog.AlertDialog.Close,
381
+ __spreadValues({
382
+ className: cn(buttonVariants({ variant, size }), className),
383
+ "data-slot": "alert-dialog-action"
384
+ }, props)
385
+ );
386
+ }
387
+ function AlertDialogCancel(_a) {
388
+ var _b = _a, {
389
+ className,
390
+ variant = "outline",
391
+ size = "default"
392
+ } = _b, props = __objRest(_b, [
393
+ "className",
394
+ "variant",
395
+ "size"
396
+ ]);
397
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
398
+ import_alert_dialog.AlertDialog.Close,
399
+ __spreadValues({
400
+ className: cn(buttonVariants({ variant, size }), className),
401
+ "data-slot": "alert-dialog-cancel"
402
+ }, props)
403
+ );
404
+ }
405
+
406
+ // src/components/ui/calendar.tsx
407
+ var React3 = __toESM(require("react"));
408
+ var import_lucide_react2 = require("lucide-react");
409
+ var import_react_day_picker = require("react-day-picker");
410
+ var import_jsx_runtime4 = require("react/jsx-runtime");
411
+ function CalendarRoot(_a) {
412
+ var _b = _a, {
413
+ className,
414
+ rootRef
415
+ } = _b, props = __objRest(_b, [
416
+ "className",
417
+ "rootRef"
418
+ ]);
419
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
420
+ "div",
421
+ __spreadValues({
422
+ className: cn(className),
423
+ "data-slot": "calendar",
424
+ ref: rootRef
425
+ }, props)
426
+ );
427
+ }
428
+ function CalendarChevron(_a) {
429
+ var _b = _a, {
430
+ className,
431
+ orientation
432
+ } = _b, props = __objRest(_b, [
433
+ "className",
434
+ "orientation"
435
+ ]);
436
+ if (orientation === "left") {
437
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react2.ChevronLeftIcon, __spreadValues({ className: cn("size-4", className) }, props));
438
+ }
439
+ if (orientation === "right") {
440
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react2.ChevronRightIcon, __spreadValues({ className: cn("size-4", className) }, props));
441
+ }
442
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react2.ChevronDownIcon, __spreadValues({ className: cn("size-4", className) }, props));
443
+ }
444
+ function CalendarWeekNumber(_a) {
445
+ var _b = _a, {
446
+ children
447
+ } = _b, props = __objRest(_b, [
448
+ "children"
449
+ ]);
450
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("td", __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) }));
451
+ }
452
+ function Calendar(_a) {
453
+ var _b = _a, {
454
+ className,
455
+ classNames,
456
+ showOutsideDays = true,
457
+ captionLayout = "dropdown",
458
+ buttonVariant = "ghost",
459
+ formatters,
460
+ components
461
+ } = _b, props = __objRest(_b, [
462
+ "className",
463
+ "classNames",
464
+ "showOutsideDays",
465
+ "captionLayout",
466
+ "buttonVariant",
467
+ "formatters",
468
+ "components"
469
+ ]);
470
+ const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
471
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
472
+ import_react_day_picker.DayPicker,
473
+ __spreadValues({
474
+ captionLayout,
475
+ className: cn(
476
+ "group/calendar bg-background p-3 font-sans border border-border shadow-sm [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
477
+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
478
+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
479
+ className
480
+ ),
481
+ classNames: __spreadValues({
482
+ root: cn("w-fit", defaultClassNames.root),
483
+ months: cn(
484
+ "relative flex flex-col gap-4 md:flex-row",
485
+ defaultClassNames.months
486
+ ),
487
+ month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
488
+ nav: cn(
489
+ "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
490
+ defaultClassNames.nav
491
+ ),
492
+ button_previous: cn(
493
+ buttonVariants({ variant: buttonVariant }),
494
+ "size-(--cell-size) p-0 select-none aria-disabled:opacity-50",
495
+ defaultClassNames.button_previous
496
+ ),
497
+ button_next: cn(
498
+ buttonVariants({ variant: buttonVariant }),
499
+ "size-(--cell-size) p-0 select-none aria-disabled:opacity-50",
500
+ defaultClassNames.button_next
501
+ ),
502
+ month_caption: cn(
503
+ "flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",
504
+ defaultClassNames.month_caption
505
+ ),
506
+ dropdowns: cn(
507
+ "flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-label-small",
508
+ defaultClassNames.dropdowns
509
+ ),
510
+ dropdown_root: cn(
511
+ "relative border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50",
512
+ defaultClassNames.dropdown_root
513
+ ),
514
+ dropdown: cn(
515
+ "absolute inset-0 bg-popover opacity-0",
516
+ defaultClassNames.dropdown
517
+ ),
518
+ caption_label: cn(
519
+ "select-none",
520
+ captionLayout === "label" ? "text-label-small" : "flex h-8 items-center gap-1 pr-1 pl-2 text-label-small [&>svg]:size-3.5 [&>svg]:text-muted-foreground",
521
+ defaultClassNames.caption_label
522
+ ),
523
+ table: "w-full border-collapse",
524
+ weekdays: cn("flex", defaultClassNames.weekdays),
525
+ weekday: cn(
526
+ "flex-1 text-caption font-normal text-muted-foreground select-none",
527
+ defaultClassNames.weekday
528
+ ),
529
+ week: cn("mt-2 flex w-full", defaultClassNames.week),
530
+ week_number_header: cn(
531
+ "w-(--cell-size) select-none",
532
+ defaultClassNames.week_number_header
533
+ ),
534
+ week_number: cn(
535
+ "text-caption text-muted-foreground select-none",
536
+ defaultClassNames.week_number
537
+ ),
538
+ day: cn(
539
+ "group/day relative aspect-square h-full w-full p-0 text-center select-none",
540
+ defaultClassNames.day
541
+ ),
542
+ range_start: cn("bg-accent", defaultClassNames.range_start),
543
+ range_middle: cn("rounded-none", defaultClassNames.range_middle),
544
+ range_end: cn("bg-accent", defaultClassNames.range_end),
545
+ today: cn("bg-accent text-accent-foreground", defaultClassNames.today),
546
+ outside: cn(
547
+ "text-muted-foreground aria-selected:text-muted-foreground",
548
+ defaultClassNames.outside
549
+ ),
550
+ disabled: cn(
551
+ "text-muted-foreground opacity-50",
552
+ defaultClassNames.disabled
553
+ ),
554
+ hidden: cn("invisible", defaultClassNames.hidden)
555
+ }, classNames),
556
+ components: __spreadValues({
557
+ Root: CalendarRoot,
558
+ Chevron: CalendarChevron,
559
+ DayButton: CalendarDayButton,
560
+ WeekNumber: CalendarWeekNumber
561
+ }, components),
562
+ formatters: __spreadValues({
563
+ formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" })
564
+ }, formatters),
565
+ showOutsideDays
566
+ }, props)
567
+ );
568
+ }
569
+ function CalendarDayButton(_a) {
570
+ var _b = _a, {
571
+ className,
572
+ day,
573
+ modifiers
574
+ } = _b, props = __objRest(_b, [
575
+ "className",
576
+ "day",
577
+ "modifiers"
578
+ ]);
579
+ const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
580
+ const ref = React3.useRef(null);
581
+ React3.useEffect(() => {
582
+ var _a2;
583
+ if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
584
+ }, [modifiers.focused]);
585
+ const selectedSingle = modifiers.selected && !modifiers.range_start && !modifiers.range_end ? !modifiers.range_middle : null;
586
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
587
+ Button,
588
+ __spreadValues({
589
+ className: cn(
590
+ "flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal rounded-none group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-caption [&>span]:opacity-70",
591
+ defaultClassNames.day,
592
+ className
593
+ ),
594
+ "data-day": day.date.toLocaleDateString(),
595
+ "data-range-end": modifiers.range_end,
596
+ "data-range-middle": modifiers.range_middle,
597
+ "data-range-start": modifiers.range_start,
598
+ "data-selected-single": selectedSingle,
599
+ ref,
600
+ size: "icon",
601
+ variant: "ghost"
602
+ }, props)
603
+ );
604
+ }
605
+
606
+ // src/components/ui/dialog.tsx
607
+ var import_lucide_react3 = require("lucide-react");
608
+ var import_dialog = require("@base-ui/react/dialog");
609
+ var import_jsx_runtime5 = require("react/jsx-runtime");
610
+ function Dialog(_a) {
611
+ var props = __objRest(_a, []);
612
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dialog.Dialog.Root, __spreadValues({ "data-slot": "dialog" }, props));
613
+ }
614
+ function DialogPortal(_a) {
615
+ var props = __objRest(_a, []);
616
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dialog.Dialog.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
617
+ }
618
+ function DialogClose(_a) {
619
+ var props = __objRest(_a, []);
620
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_dialog.Dialog.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
621
+ }
622
+ function DialogOverlay(_a) {
623
+ var _b = _a, {
624
+ className
625
+ } = _b, props = __objRest(_b, [
626
+ "className"
627
+ ]);
628
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
629
+ import_dialog.Dialog.Backdrop,
630
+ __spreadValues({
631
+ className: cn(
632
+ // WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
633
+ "fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
634
+ className
635
+ ),
636
+ "data-slot": "dialog-overlay"
637
+ }, props)
638
+ );
639
+ }
640
+ var DIALOG_MAX_WIDTHS = {
641
+ sm: "24rem",
642
+ md: "28rem",
643
+ lg: "32rem",
644
+ xl: "36rem",
645
+ "2xl": "42rem",
646
+ "3xl": "48rem",
647
+ "4xl": "56rem",
648
+ full: "100%"
649
+ };
650
+ var DIALOG_AUTO_MIN_WIDTH = "20rem";
651
+ function DialogContent(_a) {
652
+ var _b = _a, {
653
+ className,
654
+ children,
655
+ showCloseButton = true,
656
+ style,
657
+ container,
658
+ align = "center",
659
+ size = "lg",
660
+ minWidth
661
+ } = _b, props = __objRest(_b, [
662
+ "className",
663
+ "children",
664
+ "showCloseButton",
665
+ "style",
666
+ "container",
667
+ "align",
668
+ "size",
669
+ "minWidth"
670
+ ]);
671
+ const themeVars = useThemeVars();
672
+ const isAuto = size === "auto";
673
+ const sizeStyle = isAuto ? { minWidth: minWidth != null ? minWidth : DIALOG_AUTO_MIN_WIDTH } : { maxWidth: DIALOG_MAX_WIDTHS[size] };
674
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(DialogPortal, { container: container != null ? container : void 0, children: [
675
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogOverlay, { style: themeVars }),
676
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
677
+ import_dialog.Dialog.Popup,
678
+ __spreadProps(__spreadValues({
679
+ className: cn(
680
+ // WealthX: removed rounded-lg (sharp corners), shadow-lg (flat panels)
681
+ // max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
682
+ // Fixed max-width is applied via inline style (sizeStyle) to avoid
683
+ // Tailwind v4 class-scanning gaps with dynamic class lookups.
684
+ "fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
685
+ // "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
686
+ isAuto ? "w-auto" : "w-full",
687
+ align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
688
+ className
689
+ ),
690
+ "data-slot": "dialog-content",
691
+ style: __spreadValues(__spreadValues(__spreadValues({}, themeVars), sizeStyle), style)
692
+ }, props), {
693
+ children: [
694
+ children,
695
+ showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
696
+ import_dialog.Dialog.Close,
697
+ {
698
+ className: "absolute top-4 right-4 inline-flex size-7 items-center justify-center transition-colors hover:bg-foreground/5 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-border focus-visible:ring-offset-0 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
699
+ "data-slot": "dialog-close",
700
+ children: [
701
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react3.XIcon, {}),
702
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sr-only", children: "Close" })
703
+ ]
704
+ }
705
+ ) : null
706
+ ]
707
+ })
708
+ )
709
+ ] });
710
+ }
711
+ function DialogHeader(_a) {
712
+ var _b = _a, {
713
+ className
714
+ } = _b, props = __objRest(_b, [
715
+ "className"
716
+ ]);
717
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
718
+ "div",
719
+ __spreadValues({
720
+ className: cn("flex flex-col gap-1.5", className),
721
+ "data-slot": "dialog-header"
722
+ }, props)
723
+ );
724
+ }
725
+ function DialogFooter(_a) {
726
+ var _b = _a, {
727
+ className,
728
+ showCloseButton = false,
729
+ children
730
+ } = _b, props = __objRest(_b, [
731
+ "className",
732
+ "showCloseButton",
733
+ "children"
734
+ ]);
735
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
736
+ "div",
737
+ __spreadProps(__spreadValues({
738
+ className: cn(
739
+ // WealthX: always row layout, right-aligned, separator above footer
740
+ "flex flex-row justify-end gap-2 border-t border-border pt-4",
741
+ className
742
+ ),
743
+ "data-slot": "dialog-footer"
744
+ }, props), {
745
+ children: [
746
+ children,
747
+ showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
748
+ import_dialog.Dialog.Close,
749
+ {
750
+ className: cn(buttonVariants({ variant: "outline" })),
751
+ type: "button",
752
+ children: "Close"
753
+ }
754
+ ) : null
755
+ ]
756
+ })
757
+ );
758
+ }
759
+ function DialogTitle(_a) {
760
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
761
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
762
+ import_dialog.Dialog.Title,
763
+ __spreadValues({
764
+ className: cn("text-h5 leading-none", className),
765
+ "data-slot": "dialog-title"
766
+ }, props)
767
+ );
768
+ }
769
+ function DialogDescription(_a) {
770
+ var _b = _a, {
771
+ className
772
+ } = _b, props = __objRest(_b, [
773
+ "className"
774
+ ]);
775
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
776
+ import_dialog.Dialog.Description,
777
+ __spreadValues({
778
+ className: cn("text-body-small text-muted-foreground", className),
779
+ "data-slot": "dialog-description"
780
+ }, props)
781
+ );
782
+ }
783
+
784
+ // src/components/ui/label.tsx
785
+ var import_jsx_runtime6 = (
786
+ // eslint-disable-next-line jsx-a11y/label-has-associated-control -- htmlFor is passed by the consumer
787
+ require("react/jsx-runtime")
788
+ );
789
+ function Label(_a) {
790
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
791
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
792
+ "label",
793
+ __spreadValues({
794
+ className: cn(
795
+ "flex items-center gap-2 text-label-medium leading-none select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
796
+ className
797
+ ),
798
+ "data-slot": "label"
799
+ }, props)
800
+ );
801
+ }
802
+
803
+ // src/components/ui/separator.tsx
804
+ var import_separator = require("@base-ui/react/separator");
805
+ var import_jsx_runtime7 = require("react/jsx-runtime");
806
+ function Separator(_a) {
807
+ var _b = _a, {
808
+ className,
809
+ orientation = "horizontal"
810
+ } = _b, props = __objRest(_b, [
811
+ "className",
812
+ "orientation"
813
+ ]);
814
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
815
+ import_separator.Separator,
816
+ __spreadValues({
817
+ className: cn(
818
+ "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
819
+ className
820
+ ),
821
+ "data-orientation": orientation,
822
+ "data-slot": "separator"
823
+ }, props)
824
+ );
825
+ }
826
+
827
+ // src/components/ui/textarea.tsx
828
+ var import_jsx_runtime8 = require("react/jsx-runtime");
829
+ function Textarea(_a) {
830
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
831
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
832
+ "textarea",
833
+ __spreadValues({
834
+ className: cn(
835
+ // WealthX: removed shadow-xs (flat panels), added font-sans
836
+ "flex field-sizing-content min-h-16 w-full border border-input bg-transparent px-3 py-2 text-body-medium font-sans transition-[color,box-shadow] outline-none placeholder:font-normal placeholder:text-muted-foreground focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/20 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
837
+ className
838
+ ),
839
+ "data-slot": "textarea"
840
+ }, props)
841
+ );
842
+ }
843
+
844
+ // src/components/ui/appointment-action-dialogs.tsx
845
+ var import_lucide_react4 = require("lucide-react");
846
+
847
+ // src/components/ui/badge.tsx
848
+ var import_class_variance_authority2 = require("class-variance-authority");
849
+ var import_jsx_runtime9 = require("react/jsx-runtime");
850
+ var badgeVariants = (0, import_class_variance_authority2.cva)(
851
+ "inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2.5 py-0.5 text-xs font-medium font-sans whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",
852
+ {
853
+ variants: {
854
+ variant: {
855
+ default: "border-primary/40 bg-primary/10 text-foreground [a&]:hover:bg-primary/15",
856
+ secondary: "border-border bg-muted text-muted-foreground [a&]:hover:bg-muted/80",
857
+ destructive: "border-destructive/40 bg-destructive/10 text-destructive-text focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/15",
858
+ success: "border-success/40 bg-success/10 text-success-text [a&]:hover:bg-success/15",
859
+ warning: "border-warning/40 bg-warning/10 text-warning-text [a&]:hover:bg-warning/15",
860
+ info: "border-info/40 bg-info/10 text-info-text [a&]:hover:bg-info/15",
861
+ outline: "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
862
+ ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
863
+ link: "text-primary underline-offset-4 [a&]:hover:underline"
864
+ }
865
+ },
866
+ defaultVariants: {
867
+ variant: "default"
868
+ }
869
+ }
870
+ );
871
+ function Badge(_a) {
872
+ var _b = _a, {
873
+ className,
874
+ variant = "default",
875
+ asChild = false
876
+ } = _b, props = __objRest(_b, [
877
+ "className",
878
+ "variant",
879
+ "asChild"
880
+ ]);
881
+ const Comp = asChild ? Slot : "span";
882
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
883
+ Comp,
884
+ __spreadValues({
885
+ className: cn(badgeVariants({ variant }), className),
886
+ "data-slot": "badge",
887
+ "data-variant": variant
888
+ }, props)
889
+ );
890
+ }
891
+
892
+ // src/components/ui/toggle.tsx
893
+ var import_class_variance_authority3 = require("class-variance-authority");
894
+ var import_toggle = require("@base-ui/react/toggle");
895
+ var import_jsx_runtime10 = require("react/jsx-runtime");
896
+ var toggleVariants = (0, import_class_variance_authority3.cva)(
897
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-pressed:bg-primary/10 data-pressed:inset-ring data-pressed:inset-ring-primary data-pressed:text-foreground data-pressed:hover:bg-primary/10 data-pressed:hover:text-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
898
+ {
899
+ variants: {
900
+ variant: {
901
+ default: "bg-transparent hover:bg-muted hover:text-muted-foreground",
902
+ outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
903
+ },
904
+ size: {
905
+ default: "h-9 min-w-9 px-2 text-label-large",
906
+ sm: "h-8 min-w-8 px-1.5 text-label-medium",
907
+ lg: "h-10 min-w-10 px-2.5 text-h5"
908
+ }
909
+ },
910
+ defaultVariants: {
911
+ variant: "default",
912
+ size: "default"
913
+ }
914
+ }
915
+ );
916
+ function Toggle(_a) {
917
+ var _b = _a, {
918
+ className,
919
+ variant,
920
+ size
921
+ } = _b, props = __objRest(_b, [
922
+ "className",
923
+ "variant",
924
+ "size"
925
+ ]);
926
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
927
+ import_toggle.Toggle,
928
+ __spreadValues({
929
+ className: cn(toggleVariants({ variant, size, className })),
930
+ "data-slot": "toggle"
931
+ }, props)
932
+ );
933
+ }
934
+
935
+ // src/components/ui/appointment-time-slot-picker.tsx
936
+ var import_jsx_runtime11 = require("react/jsx-runtime");
937
+ function AppointmentSlotSection({
938
+ label,
939
+ slots,
940
+ selectedSlotId,
941
+ onSelect
942
+ }) {
943
+ const hasAvailable = slots.some((s) => s.available);
944
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex flex-col gap-2", children: [
945
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex items-center gap-2", children: [
946
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: label }),
947
+ !hasAvailable && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Badge, { variant: "secondary", className: "text-[10px]", children: "No availability" })
948
+ ] }),
949
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "flex flex-wrap gap-2", children: slots.map((slot) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
950
+ Toggle,
951
+ {
952
+ variant: "outline",
953
+ pressed: selectedSlotId === slot.id,
954
+ onPressedChange: (pressed) => {
955
+ if (pressed && slot.available) onSelect == null ? void 0 : onSelect(slot);
956
+ },
957
+ disabled: !slot.available,
958
+ className: "min-w-[88px]",
959
+ children: slot.label
960
+ },
961
+ slot.id
962
+ )) })
963
+ ] });
964
+ }
965
+
966
+ // src/components/ui/appointment-action-dialogs.tsx
967
+ var import_jsx_runtime12 = require("react/jsx-runtime");
968
+ function AppointmentConfirmDialog({
969
+ open,
970
+ onOpenChange,
971
+ action,
972
+ clientName,
973
+ onConfirm
974
+ }) {
975
+ const isDecline = action === "decline";
976
+ const [cancelReason, setCancelReason] = import_react3.default.useState("");
977
+ const handleOpenChange = (next) => {
978
+ if (!next) setCancelReason("");
979
+ onOpenChange(next);
980
+ };
981
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialog, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(AlertDialogContent, { children: [
982
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(AlertDialogHeader, { children: [
983
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogTitle, { children: isDecline ? "Decline this appointment?" : "Accept this appointment?" }),
984
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogDescription, { children: isDecline ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
985
+ "This will cancel the appointment with",
986
+ " ",
987
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("strong", { children: clientName }),
988
+ " and notify them by email. This action cannot be undone."
989
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
990
+ "The appointment with ",
991
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("strong", { children: clientName }),
992
+ " will be confirmed and they will be notified by email."
993
+ ] }) })
994
+ ] }),
995
+ isDecline && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
996
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Label, { htmlFor: "decline-reason", children: [
997
+ "Reason",
998
+ " ",
999
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "font-normal text-muted-foreground", children: "(optional)" })
1000
+ ] }),
1001
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1002
+ Textarea,
1003
+ {
1004
+ id: "decline-reason",
1005
+ placeholder: "e.g. Advisor is unavailable at this time\u2026",
1006
+ value: cancelReason,
1007
+ onChange: (e) => setCancelReason(e.target.value),
1008
+ className: "w-full resize-none",
1009
+ rows: 2
1010
+ }
1011
+ )
1012
+ ] }),
1013
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(AlertDialogFooter, { children: [
1014
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(AlertDialogCancel, { children: isDecline ? "Keep appointment" : "Cancel" }),
1015
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1016
+ AlertDialogAction,
1017
+ {
1018
+ onClick: () => onConfirm(isDecline ? cancelReason : void 0),
1019
+ className: isDecline ? "bg-destructive text-destructive-foreground hover:bg-destructive/90" : void 0,
1020
+ children: isDecline ? "Decline appointment" : "Accept appointment"
1021
+ }
1022
+ )
1023
+ ] })
1024
+ ] }) });
1025
+ }
1026
+ function AppointmentRescheduleDialog({
1027
+ open,
1028
+ onOpenChange,
1029
+ amSlots,
1030
+ pmSlots,
1031
+ currentDate,
1032
+ currentTimeStart,
1033
+ currentTimeEnd,
1034
+ onReschedule
1035
+ }) {
1036
+ const [date, setDate] = import_react3.default.useState(/* @__PURE__ */ new Date());
1037
+ const [slot, setSlot] = import_react3.default.useState();
1038
+ const [note, setNote] = import_react3.default.useState("");
1039
+ const handleOpenChange = (next) => {
1040
+ if (!next) {
1041
+ setDate(/* @__PURE__ */ new Date());
1042
+ setSlot(void 0);
1043
+ setNote("");
1044
+ }
1045
+ onOpenChange(next);
1046
+ };
1047
+ const totalAvailable = [...amSlots, ...pmSlots].filter(
1048
+ (s) => s.available
1049
+ ).length;
1050
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Dialog, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(DialogContent, { size: "2xl", children: [
1051
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(DialogHeader, { children: [
1052
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DialogTitle, { children: "Propose New Time" }),
1053
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DialogDescription, { children: "Select a new date and time slot. The client will be notified by email." })
1054
+ ] }),
1055
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Separator, {}),
1056
+ (currentDate || currentTimeStart) && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
1057
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: "Current booking" }),
1058
+ /* @__PURE__ */ (0, import_jsx_runtime12.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: [
1059
+ currentDate && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex items-center gap-1.5", children: [
1060
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.Calendar, { className: "h-3.5 w-3.5 shrink-0" }),
1061
+ currentDate
1062
+ ] }),
1063
+ currentTimeStart && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex items-center gap-1.5", children: [
1064
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react4.Clock, { className: "h-3.5 w-3.5 shrink-0" }),
1065
+ currentTimeStart,
1066
+ currentTimeEnd ? ` \u2013 ${currentTimeEnd}` : ""
1067
+ ] })
1068
+ ] })
1069
+ ] }),
1070
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "grid grid-cols-[auto_1fr] items-start gap-5", children: [
1071
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
1072
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Label, { children: "New date" }),
1073
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1074
+ Calendar,
1075
+ {
1076
+ mode: "single",
1077
+ selected: date,
1078
+ onSelect: (d) => {
1079
+ setDate(d);
1080
+ setSlot(void 0);
1081
+ },
1082
+ captionLayout: "label",
1083
+ fromDate: /* @__PURE__ */ new Date(),
1084
+ disabled: { before: /* @__PURE__ */ new Date() },
1085
+ className: "border border-border"
1086
+ }
1087
+ )
1088
+ ] }),
1089
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex flex-col gap-5", children: date ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
1090
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-center justify-between", children: [
1091
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-sm font-semibold", children: "Select a time slot" }),
1092
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "text-xs text-muted-foreground", children: [
1093
+ totalAvailable,
1094
+ " available"
1095
+ ] })
1096
+ ] }),
1097
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1098
+ AppointmentSlotSection,
1099
+ {
1100
+ label: "Morning",
1101
+ slots: amSlots,
1102
+ selectedSlotId: slot == null ? void 0 : slot.id,
1103
+ onSelect: setSlot
1104
+ }
1105
+ ),
1106
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1107
+ AppointmentSlotSection,
1108
+ {
1109
+ label: "Afternoon",
1110
+ slots: pmSlots,
1111
+ selectedSlotId: slot == null ? void 0 : slot.id,
1112
+ onSelect: setSlot
1113
+ }
1114
+ )
1115
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex h-full flex-col items-center justify-center gap-2 py-8 text-center", children: [
1116
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-sm font-semibold", children: "Select a time slot" }),
1117
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-xs text-muted-foreground", children: "Pick a date on the left to see available slots." })
1118
+ ] }) })
1119
+ ] }),
1120
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
1121
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Label, { htmlFor: "reschedule-note", children: [
1122
+ "Note",
1123
+ " ",
1124
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "font-normal text-muted-foreground", children: "(optional)" })
1125
+ ] }),
1126
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1127
+ Textarea,
1128
+ {
1129
+ id: "reschedule-note",
1130
+ placeholder: "e.g. Rescheduling due to an internal conflict \u2014 apologies for the inconvenience\u2026",
1131
+ value: note,
1132
+ onChange: (e) => setNote(e.target.value),
1133
+ className: "w-full resize-none",
1134
+ rows: 2
1135
+ }
1136
+ )
1137
+ ] }),
1138
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(DialogFooter, { children: [
1139
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DialogClose, { render: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Button, { variant: "outline" }), children: "Cancel" }),
1140
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1141
+ Button,
1142
+ {
1143
+ disabled: !date || !slot,
1144
+ onClick: () => {
1145
+ if (date && slot) {
1146
+ onReschedule(date, slot, note);
1147
+ handleOpenChange(false);
1148
+ }
1149
+ },
1150
+ children: "Propose New Time"
1151
+ }
1152
+ )
1153
+ ] })
1154
+ ] }) });
1155
+ }
1156
+ // Annotate the CommonJS export names for ESM import in node:
1157
+ 0 && (module.exports = {
1158
+ AppointmentConfirmDialog,
1159
+ AppointmentRescheduleDialog
1160
+ });