@wealthx/shadcn 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/.turbo/turbo-build.log +235 -154
  2. package/CHANGELOG.md +6 -0
  3. package/dist/{chunk-6OJF6XRN.mjs → chunk-24FUO7TD.mjs} +4 -8
  4. package/dist/{chunk-4AJ5HWHD.mjs → chunk-2I5S2AMY.mjs} +3 -3
  5. package/dist/chunk-2SF672SZ.mjs +161 -0
  6. package/dist/{chunk-GPRJQ24C.mjs → chunk-34NWQURD.mjs} +2 -2
  7. package/dist/{chunk-MQ72DIBH.mjs → chunk-3GF7OVTP.mjs} +14 -5
  8. package/dist/chunk-3WMX6KWS.mjs +245 -0
  9. package/dist/{chunk-PMKODV6M.mjs → chunk-462HMNO4.mjs} +6 -10
  10. package/dist/chunk-4CX4SBRO.mjs +153 -0
  11. package/dist/chunk-4MN6UQHG.mjs +443 -0
  12. package/dist/{chunk-GLW2UO6O.mjs → chunk-5QQVZTVZ.mjs} +82 -61
  13. package/dist/{chunk-BGP2N52Z.mjs → chunk-66MI7Q4B.mjs} +5 -5
  14. package/dist/chunk-6FCGKSZX.mjs +268 -0
  15. package/dist/{chunk-CGOKTPXU.mjs → chunk-6JQFUE5I.mjs} +20 -23
  16. package/dist/{chunk-Z3MK2KKZ.mjs → chunk-7DHU4VGG.mjs} +7 -3
  17. package/dist/{chunk-VZ2NR7L3.mjs → chunk-7PYJD5JI.mjs} +35 -27
  18. package/dist/{chunk-JU2RUWHF.mjs → chunk-7XJHLGUV.mjs} +1 -1
  19. package/dist/{chunk-BMFN37JH.mjs → chunk-7YAU5CY6.mjs} +1 -1
  20. package/dist/chunk-A56YQQHG.mjs +402 -0
  21. package/dist/chunk-AH52LG6N.mjs +315 -0
  22. package/dist/{chunk-SLWCCURD.mjs → chunk-CLIN5525.mjs} +8 -4
  23. package/dist/{chunk-3VQNJ235.mjs → chunk-CSDO6VBW.mjs} +7 -0
  24. package/dist/chunk-D4ILTPOG.mjs +293 -0
  25. package/dist/{chunk-HS7TFG7V.mjs → chunk-D6ID6M4V.mjs} +1 -1
  26. package/dist/chunk-DOH3EHX7.mjs +378 -0
  27. package/dist/{chunk-MJIEMGRD.mjs → chunk-EFRENWEJ.mjs} +9 -17
  28. package/dist/{chunk-YBXCIF5Q.mjs → chunk-ERGGHC2V.mjs} +36 -49
  29. package/dist/{chunk-OXQQNQZI.mjs → chunk-FEZKMUCF.mjs} +10 -1
  30. package/dist/{chunk-55CEW76V.mjs → chunk-FH6QVUVZ.mjs} +1 -1
  31. package/dist/chunk-FMAXJ2SI.mjs +71 -0
  32. package/dist/chunk-FZIXGLMV.mjs +173 -0
  33. package/dist/{chunk-DS2AMHN2.mjs → chunk-GYMYRIZP.mjs} +2 -2
  34. package/dist/{chunk-KQDD5MU3.mjs → chunk-H45TKD34.mjs} +5 -5
  35. package/dist/{chunk-BBJBJSXQ.mjs → chunk-J5UICVJS.mjs} +1 -1
  36. package/dist/{chunk-RL772EH7.mjs → chunk-JHJHG4GO.mjs} +4 -12
  37. package/dist/{chunk-RN67642N.mjs → chunk-KMCGSZTX.mjs} +47 -41
  38. package/dist/{chunk-FHNT55I5.mjs → chunk-KUDCQ4FI.mjs} +4 -4
  39. package/dist/chunk-LE6YFY6D.mjs +209 -0
  40. package/dist/{chunk-NLLKTU4B.mjs → chunk-LLVQKSU3.mjs} +21 -17
  41. package/dist/{chunk-KKHTJNMM.mjs → chunk-MARPPFOJ.mjs} +8 -4
  42. package/dist/{chunk-6AFMNC42.mjs → chunk-N2PT566P.mjs} +15 -11
  43. package/dist/chunk-NLCKVHWB.mjs +161 -0
  44. package/dist/{chunk-YN5SYTOO.mjs → chunk-NQPOYKAQ.mjs} +9 -5
  45. package/dist/{chunk-ZZV5JVNW.mjs → chunk-NSLMILBT.mjs} +3 -7
  46. package/dist/chunk-NXA3CZ7A.mjs +248 -0
  47. package/dist/chunk-OGOYQ7BG.mjs +150 -0
  48. package/dist/{chunk-3NQGYJEZ.mjs → chunk-P6AM5V7O.mjs} +10 -18
  49. package/dist/{chunk-CZ3BW5GL.mjs → chunk-P76HMUI6.mjs} +5 -11
  50. package/dist/chunk-PCPLO5HT.mjs +671 -0
  51. package/dist/chunk-PG6K5XEC.mjs +475 -0
  52. package/dist/{chunk-5JGQAAQV.mjs → chunk-PJHPSRYD.mjs} +84 -62
  53. package/dist/{chunk-DDPA2XXS.mjs → chunk-PMB3A7V3.mjs} +2 -2
  54. package/dist/chunk-PR6V5XKM.mjs +209 -0
  55. package/dist/{chunk-46OFHMQA.mjs → chunk-Q76O3RIQ.mjs} +10 -6
  56. package/dist/chunk-QVKWW6KE.mjs +272 -0
  57. package/dist/chunk-RGU7HOEC.mjs +140 -0
  58. package/dist/{chunk-JF4PHPD5.mjs → chunk-RGVKLTLH.mjs} +4 -4
  59. package/dist/{chunk-VG6UF6UT.mjs → chunk-RP3SQYA3.mjs} +2 -2
  60. package/dist/chunk-RRBS6D63.mjs +163 -0
  61. package/dist/{chunk-UEL4RD5P.mjs → chunk-SMQ3DG25.mjs} +80 -67
  62. package/dist/chunk-SPJ5KXW7.mjs +199 -0
  63. package/dist/chunk-SYOD63OZ.mjs +225 -0
  64. package/dist/chunk-UFYSFDER.mjs +42 -0
  65. package/dist/chunk-VACKZOMY.mjs +190 -0
  66. package/dist/chunk-VLQZANBF.mjs +42 -0
  67. package/dist/chunk-WA6O6EUR.mjs +1885 -0
  68. package/dist/{chunk-E3K6O4FZ.mjs → chunk-WAZD7NFU.mjs} +5 -2
  69. package/dist/chunk-WG6JGJXB.mjs +165 -0
  70. package/dist/{chunk-I64K754C.mjs → chunk-WNGWBVLV.mjs} +2 -2
  71. package/dist/{chunk-3U7SD3MS.mjs → chunk-WOEHFRGB.mjs} +3 -3
  72. package/dist/{chunk-DKZRJOMF.mjs → chunk-XIRTEFKH.mjs} +12 -12
  73. package/dist/chunk-Y6DWJSKZ.mjs +79 -0
  74. package/dist/chunk-YKPROFLB.mjs +161 -0
  75. package/dist/{chunk-CJ46PDXE.mjs → chunk-ZRO5JO3H.mjs} +106 -66
  76. package/dist/{chunk-VYMHBV6D.mjs → chunk-ZU4NV6RG.mjs} +5 -3
  77. package/dist/components/ui/accordion.js +40 -4
  78. package/dist/components/ui/accordion.mjs +2 -2
  79. package/dist/components/ui/add-column-modal.js +789 -0
  80. package/dist/components/ui/add-column-modal.mjs +17 -0
  81. package/dist/components/ui/add-lead-modal.js +647 -0
  82. package/dist/components/ui/add-lead-modal.mjs +16 -0
  83. package/dist/components/ui/ai-assistant-drawer.js +686 -0
  84. package/dist/components/ui/ai-assistant-drawer.mjs +16 -0
  85. package/dist/components/ui/alert-dialog.js +37 -5
  86. package/dist/components/ui/alert-dialog.mjs +4 -4
  87. package/dist/components/ui/alert.js +37 -11
  88. package/dist/components/ui/alert.mjs +2 -2
  89. package/dist/components/ui/avatar.js +36 -8
  90. package/dist/components/ui/avatar.mjs +2 -2
  91. package/dist/components/ui/backoffice-alert-history-chart.js +624 -0
  92. package/dist/components/ui/backoffice-alert-history-chart.mjs +16 -0
  93. package/dist/components/ui/backoffice-contact-history-chart.js +687 -0
  94. package/dist/components/ui/backoffice-contact-history-chart.mjs +16 -0
  95. package/dist/components/ui/badge.js +37 -2
  96. package/dist/components/ui/badge.mjs +2 -2
  97. package/dist/components/ui/borrowing-capacity-line-chart.js +639 -0
  98. package/dist/components/ui/borrowing-capacity-line-chart.mjs +16 -0
  99. package/dist/components/ui/button.js +35 -3
  100. package/dist/components/ui/button.mjs +2 -2
  101. package/dist/components/ui/calendar.js +43 -19
  102. package/dist/components/ui/calendar.mjs +3 -3
  103. package/dist/components/ui/card.js +40 -4
  104. package/dist/components/ui/card.mjs +2 -2
  105. package/dist/components/ui/cash-balance-line-chart.js +627 -0
  106. package/dist/components/ui/cash-balance-line-chart.mjs +16 -0
  107. package/dist/components/ui/cashflow-bar-chart.js +123 -69
  108. package/dist/components/ui/cashflow-bar-chart.mjs +8 -8
  109. package/dist/components/ui/checkbox.js +36 -5
  110. package/dist/components/ui/checkbox.mjs +2 -3
  111. package/dist/components/ui/chip.js +37 -2
  112. package/dist/components/ui/chip.mjs +3 -3
  113. package/dist/components/ui/combobox.js +68 -49
  114. package/dist/components/ui/combobox.mjs +2 -2
  115. package/dist/components/ui/data-table.js +160 -88
  116. package/dist/components/ui/data-table.mjs +10 -11
  117. package/dist/components/ui/date-picker.js +44 -20
  118. package/dist/components/ui/date-picker.mjs +6 -7
  119. package/dist/components/ui/dialog.js +44 -12
  120. package/dist/components/ui/dialog.mjs +4 -4
  121. package/dist/components/ui/drawer.js +46 -10
  122. package/dist/components/ui/drawer.mjs +3 -3
  123. package/dist/components/ui/dropdown-menu.js +40 -16
  124. package/dist/components/ui/dropdown-menu.mjs +3 -3
  125. package/dist/components/ui/empty.js +41 -5
  126. package/dist/components/ui/empty.mjs +2 -2
  127. package/dist/components/ui/expense-bar-chart.js +165 -66
  128. package/dist/components/ui/expense-bar-chart.mjs +8 -8
  129. package/dist/components/ui/field.js +53 -21
  130. package/dist/components/ui/field.mjs +4 -4
  131. package/dist/components/ui/financial-cards.js +1002 -0
  132. package/dist/components/ui/financial-cards.mjs +24 -0
  133. package/dist/components/ui/financial-drawers.js +637 -0
  134. package/dist/components/ui/financial-drawers.mjs +17 -0
  135. package/dist/components/ui/financial-primitives.js +218 -0
  136. package/dist/components/ui/financial-primitives.mjs +22 -0
  137. package/dist/components/ui/financial-sections.js +1422 -0
  138. package/dist/components/ui/financial-sections.mjs +30 -0
  139. package/dist/components/ui/form-primitives.js +682 -0
  140. package/dist/components/ui/form-primitives.mjs +19 -0
  141. package/dist/components/ui/income-bar-chart.js +163 -65
  142. package/dist/components/ui/income-bar-chart.mjs +8 -8
  143. package/dist/components/ui/input-group.js +43 -7
  144. package/dist/components/ui/input-group.mjs +5 -5
  145. package/dist/components/ui/input-otp.js +39 -3
  146. package/dist/components/ui/input-otp.mjs +2 -2
  147. package/dist/components/ui/input.js +34 -2
  148. package/dist/components/ui/input.mjs +2 -2
  149. package/dist/components/ui/kanban-column.js +1143 -0
  150. package/dist/components/ui/kanban-column.mjs +20 -0
  151. package/dist/components/ui/label.js +35 -7
  152. package/dist/components/ui/label.mjs +2 -2
  153. package/dist/components/ui/opportunity-card.js +960 -0
  154. package/dist/components/ui/opportunity-card.mjs +20 -0
  155. package/dist/components/ui/opportunity-edit-modals.js +3360 -0
  156. package/dist/components/ui/opportunity-edit-modals.mjs +37 -0
  157. package/dist/components/ui/opportunity-summary-tab.js +4365 -0
  158. package/dist/components/ui/opportunity-summary-tab.mjs +34 -0
  159. package/dist/components/ui/pagination.js +35 -3
  160. package/dist/components/ui/pagination.mjs +3 -3
  161. package/dist/components/ui/pipeline-alerts.js +103 -0
  162. package/dist/components/ui/pipeline-alerts.mjs +8 -0
  163. package/dist/components/ui/pipeline-board.js +1408 -0
  164. package/dist/components/ui/pipeline-board.mjs +24 -0
  165. package/dist/components/ui/pipeline-chart.js +216 -0
  166. package/dist/components/ui/pipeline-chart.mjs +10 -0
  167. package/dist/components/ui/pipeline-dialogs.js +1183 -0
  168. package/dist/components/ui/pipeline-dialogs.mjs +23 -0
  169. package/dist/components/ui/pipeline-primitives.js +300 -0
  170. package/dist/components/ui/pipeline-primitives.mjs +11 -0
  171. package/dist/components/ui/popover.js +45 -4
  172. package/dist/components/ui/popover.mjs +3 -3
  173. package/dist/components/ui/progress.js +33 -1
  174. package/dist/components/ui/progress.mjs +2 -2
  175. package/dist/components/ui/property-cashflow-doughnut-chart.js +523 -0
  176. package/dist/components/ui/property-cashflow-doughnut-chart.mjs +16 -0
  177. package/dist/components/ui/property-debt-equity-doughnut-chart.js +521 -0
  178. package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +16 -0
  179. package/dist/components/ui/property-mobile-estimate-line-chart.js +682 -0
  180. package/dist/components/ui/property-mobile-estimate-line-chart.mjs +16 -0
  181. package/dist/components/ui/radio-group.js +33 -1
  182. package/dist/components/ui/radio-group.mjs +2 -2
  183. package/dist/components/ui/select.js +66 -26
  184. package/dist/components/ui/select.mjs +3 -3
  185. package/dist/components/ui/separator.js +33 -1
  186. package/dist/components/ui/separator.mjs +2 -2
  187. package/dist/components/ui/sheet.js +37 -9
  188. package/dist/components/ui/sheet.mjs +3 -3
  189. package/dist/components/ui/skeleton.js +33 -1
  190. package/dist/components/ui/skeleton.mjs +2 -2
  191. package/dist/components/ui/slider.js +86 -102
  192. package/dist/components/ui/slider.mjs +2 -2
  193. package/dist/components/ui/spinner.js +33 -1
  194. package/dist/components/ui/spinner.mjs +2 -2
  195. package/dist/components/ui/stage-timeline.js +579 -0
  196. package/dist/components/ui/stage-timeline.mjs +15 -0
  197. package/dist/components/ui/switch.js +37 -4
  198. package/dist/components/ui/switch.mjs +2 -3
  199. package/dist/components/ui/table.js +37 -5
  200. package/dist/components/ui/table.mjs +2 -2
  201. package/dist/components/ui/tabs.js +36 -12
  202. package/dist/components/ui/tabs.mjs +2 -2
  203. package/dist/components/ui/textarea.js +34 -2
  204. package/dist/components/ui/textarea.mjs +2 -2
  205. package/dist/components/ui/toggle-group.js +35 -4
  206. package/dist/components/ui/toggle-group.mjs +3 -4
  207. package/dist/components/ui/toggle.js +35 -4
  208. package/dist/components/ui/toggle.mjs +2 -3
  209. package/dist/components/ui/tooltip.js +51 -22
  210. package/dist/components/ui/tooltip.mjs +3 -3
  211. package/dist/components/ui/transactions-expense-categories-doughnut-chart.js +528 -0
  212. package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +16 -0
  213. package/dist/components/ui/transactions-income-expense-bar-chart.js +76 -38
  214. package/dist/components/ui/transactions-income-expense-bar-chart.mjs +8 -8
  215. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js +528 -0
  216. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +16 -0
  217. package/dist/index.js +11616 -3831
  218. package/dist/index.mjs +333 -161
  219. package/dist/lib/theme-provider.js +10 -1
  220. package/dist/lib/theme-provider.mjs +1 -1
  221. package/dist/lib/typography.js +8 -0
  222. package/dist/lib/typography.mjs +3 -1
  223. package/dist/lib/utils.js +33 -1
  224. package/dist/lib/utils.mjs +1 -1
  225. package/dist/styles.css +1 -1
  226. package/package.json +140 -5
  227. package/src/components/index.tsx +296 -42
  228. package/src/components/ui/accordion.tsx +6 -3
  229. package/src/components/ui/add-column-modal.tsx +339 -0
  230. package/src/components/ui/add-lead-modal.tsx +290 -0
  231. package/src/components/ui/ai-assistant-drawer.tsx +408 -0
  232. package/src/components/ui/alert-dialog.tsx +80 -54
  233. package/src/components/ui/alert.tsx +28 -28
  234. package/src/components/ui/avatar.tsx +30 -29
  235. package/src/components/ui/backoffice-alert-history-chart.tsx +260 -0
  236. package/src/components/ui/backoffice-contact-history-chart.tsx +325 -0
  237. package/src/components/ui/badge.tsx +17 -15
  238. package/src/components/ui/borrowing-capacity-line-chart.tsx +357 -0
  239. package/src/components/ui/button.tsx +30 -27
  240. package/src/components/ui/calendar.tsx +53 -67
  241. package/src/components/ui/card.tsx +27 -24
  242. package/src/components/ui/cash-balance-line-chart.tsx +302 -0
  243. package/src/components/ui/cashflow-bar-chart.tsx +104 -77
  244. package/src/components/ui/chart-shared.tsx +176 -15
  245. package/src/components/ui/checkbox.tsx +30 -26
  246. package/src/components/ui/combobox.tsx +78 -72
  247. package/src/components/ui/data-table.tsx +160 -99
  248. package/src/components/ui/date-picker.tsx +0 -2
  249. package/src/components/ui/dialog.tsx +70 -60
  250. package/src/components/ui/drawer.tsx +57 -48
  251. package/src/components/ui/dropdown-menu.tsx +90 -82
  252. package/src/components/ui/empty.tsx +31 -27
  253. package/src/components/ui/expense-bar-chart.tsx +83 -65
  254. package/src/components/ui/field.tsx +70 -62
  255. package/src/components/ui/financial-cards.tsx +830 -0
  256. package/src/components/ui/financial-drawers.tsx +339 -0
  257. package/src/components/ui/financial-primitives.tsx +331 -0
  258. package/src/components/ui/financial-sections.tsx +672 -0
  259. package/src/components/ui/form-primitives.tsx +536 -0
  260. package/src/components/ui/income-bar-chart.tsx +79 -60
  261. package/src/components/ui/input-group.tsx +41 -34
  262. package/src/components/ui/input-otp.tsx +29 -24
  263. package/src/components/ui/input.tsx +8 -8
  264. package/src/components/ui/kanban-column.tsx +333 -0
  265. package/src/components/ui/label.tsx +9 -12
  266. package/src/components/ui/opportunity-card.tsx +616 -0
  267. package/src/components/ui/opportunity-edit-modals.tsx +2528 -0
  268. package/src/components/ui/opportunity-summary-tab.tsx +579 -0
  269. package/src/components/ui/pipeline-alerts.tsx +74 -0
  270. package/src/components/ui/pipeline-board.tsx +268 -0
  271. package/src/components/ui/pipeline-chart.tsx +173 -0
  272. package/src/components/ui/pipeline-dialogs.tsx +303 -0
  273. package/src/components/ui/pipeline-primitives.tsx +108 -0
  274. package/src/components/ui/popover.tsx +41 -36
  275. package/src/components/ui/property-cashflow-doughnut-chart.tsx +188 -0
  276. package/src/components/ui/property-debt-equity-doughnut-chart.tsx +185 -0
  277. package/src/components/ui/property-mobile-estimate-line-chart.tsx +393 -0
  278. package/src/components/ui/select.tsx +65 -52
  279. package/src/components/ui/sheet.tsx +55 -52
  280. package/src/components/ui/slider.tsx +54 -77
  281. package/src/components/ui/stage-timeline.tsx +205 -0
  282. package/src/components/ui/switch.tsx +42 -29
  283. package/src/components/ui/table.tsx +28 -28
  284. package/src/components/ui/tabs.tsx +22 -28
  285. package/src/components/ui/textarea.tsx +8 -8
  286. package/src/components/ui/toggle-group.tsx +0 -2
  287. package/src/components/ui/toggle.tsx +13 -15
  288. package/src/components/ui/tooltip.tsx +30 -28
  289. package/src/components/ui/transactions-expense-categories-doughnut-chart.tsx +191 -0
  290. package/src/components/ui/transactions-income-expense-bar-chart.tsx +45 -38
  291. package/src/components/ui/transactions-liabilities-breakdown-doughnut-chart.tsx +191 -0
  292. package/src/lib/theme-provider.tsx +10 -0
  293. package/src/lib/typography.ts +9 -0
  294. package/src/lib/utils.ts +41 -3
  295. package/src/styles/globals.css +371 -124
  296. package/src/styles/styles-css.ts +1 -1
  297. package/tsup.config.ts +27 -0
  298. package/dist/chunk-3EQP72AW.mjs +0 -58
  299. package/dist/chunk-K74JRTJR.mjs +0 -105
  300. package/dist/chunk-V7CNWJT3.mjs +0 -10
@@ -0,0 +1,960 @@
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/opportunity-card.tsx
60
+ var opportunity_card_exports = {};
61
+ __export(opportunity_card_exports, {
62
+ LeadCard: () => LeadCard,
63
+ OpportunityCard: () => OpportunityCard
64
+ });
65
+ module.exports = __toCommonJS(opportunity_card_exports);
66
+ var import_lucide_react5 = require("lucide-react");
67
+
68
+ // src/lib/utils.ts
69
+ var import_clsx = require("clsx");
70
+ var import_tailwind_merge = require("tailwind-merge");
71
+ var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
72
+ extend: {
73
+ classGroups: {
74
+ "font-size": [
75
+ {
76
+ text: [
77
+ "display-large",
78
+ "display-medium",
79
+ "display-small",
80
+ "h1",
81
+ "h2",
82
+ "h3",
83
+ "h4",
84
+ "h5",
85
+ "h6",
86
+ "body-large",
87
+ "body-medium",
88
+ "body-small",
89
+ "label-large",
90
+ "label-medium",
91
+ "label-small",
92
+ "button",
93
+ "button-xs",
94
+ "caption",
95
+ "overline",
96
+ "code"
97
+ ]
98
+ }
99
+ ]
100
+ }
101
+ }
102
+ });
103
+ function cn(...inputs) {
104
+ return twMerge((0, import_clsx.clsx)(inputs));
105
+ }
106
+
107
+ // src/components/ui/badge.tsx
108
+ var import_class_variance_authority = require("class-variance-authority");
109
+
110
+ // src/lib/slot.tsx
111
+ var React = __toESM(require("react"));
112
+ function mergeRefs(...refs) {
113
+ return (value) => {
114
+ for (const ref of refs) {
115
+ if (typeof ref === "function") ref(value);
116
+ else if (ref !== null)
117
+ ref.current = value;
118
+ }
119
+ };
120
+ }
121
+ var Slot = React.forwardRef(
122
+ (_a, forwardedRef) => {
123
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
124
+ const child = React.Children.only(children);
125
+ if (!React.isValidElement(child)) return null;
126
+ const childProps = child.props;
127
+ const merged = __spreadValues({}, props);
128
+ for (const key of Object.keys(childProps)) {
129
+ if (key === "className") {
130
+ merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
131
+ } else if (key === "style") {
132
+ merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
133
+ } else if (key.startsWith("on") && typeof childProps[key] === "function") {
134
+ const parentHandler = props[key];
135
+ if (typeof parentHandler === "function") {
136
+ merged[key] = (...args) => {
137
+ childProps[key](...args);
138
+ parentHandler(...args);
139
+ };
140
+ } else {
141
+ merged[key] = childProps[key];
142
+ }
143
+ } else {
144
+ merged[key] = childProps[key];
145
+ }
146
+ }
147
+ const childRef = child.ref;
148
+ merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
149
+ return React.cloneElement(
150
+ child,
151
+ merged
152
+ );
153
+ }
154
+ );
155
+ Slot.displayName = "Slot";
156
+
157
+ // src/components/ui/badge.tsx
158
+ var import_jsx_runtime = require("react/jsx-runtime");
159
+ var badgeVariants = (0, import_class_variance_authority.cva)(
160
+ "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",
161
+ {
162
+ variants: {
163
+ variant: {
164
+ default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
165
+ secondary: "bg-muted text-muted-foreground [a&]:hover:bg-muted/80",
166
+ destructive: "bg-destructive text-destructive-foreground focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",
167
+ success: "bg-success text-success-foreground [a&]:hover:bg-success/90",
168
+ warning: "bg-warning text-warning-foreground [a&]:hover:bg-warning/90",
169
+ info: "bg-info text-info-foreground [a&]:hover:bg-info/90",
170
+ outline: "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
171
+ ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
172
+ link: "text-primary underline-offset-4 [a&]:hover:underline"
173
+ }
174
+ },
175
+ defaultVariants: {
176
+ variant: "default"
177
+ }
178
+ }
179
+ );
180
+ function Badge(_a) {
181
+ var _b = _a, {
182
+ className,
183
+ variant = "default",
184
+ asChild = false
185
+ } = _b, props = __objRest(_b, [
186
+ "className",
187
+ "variant",
188
+ "asChild"
189
+ ]);
190
+ const Comp = asChild ? Slot : "span";
191
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
192
+ Comp,
193
+ __spreadValues({
194
+ className: cn(badgeVariants({ variant }), className),
195
+ "data-slot": "badge",
196
+ "data-variant": variant
197
+ }, props)
198
+ );
199
+ }
200
+
201
+ // src/components/ui/button.tsx
202
+ var import_react = require("react");
203
+ var import_class_variance_authority2 = require("class-variance-authority");
204
+ var import_lucide_react = require("lucide-react");
205
+ var import_jsx_runtime2 = require("react/jsx-runtime");
206
+ var buttonVariants = (0, import_class_variance_authority2.cva)(
207
+ "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",
208
+ {
209
+ variants: {
210
+ variant: {
211
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
212
+ secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
213
+ 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",
214
+ outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
215
+ "outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
216
+ "outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:ring-brand-secondary/30",
217
+ ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs dark:hover:bg-accent/50",
218
+ link: "text-primary underline-offset-4 hover:underline"
219
+ },
220
+ size: {
221
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
222
+ xs: "h-6 gap-1 px-2 text-button-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
223
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
224
+ lg: "h-10 px-6 has-[>svg]:px-4",
225
+ icon: "size-9",
226
+ "icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
227
+ "icon-sm": "size-8",
228
+ "icon-lg": "size-10"
229
+ }
230
+ },
231
+ defaultVariants: {
232
+ variant: "default",
233
+ size: "default"
234
+ }
235
+ }
236
+ );
237
+ var Button = (0, import_react.forwardRef)(function Button2(_a, ref) {
238
+ var _b = _a, {
239
+ className,
240
+ variant,
241
+ size,
242
+ asChild = false,
243
+ loading = false,
244
+ disabled,
245
+ type = "button",
246
+ children
247
+ } = _b, props = __objRest(_b, [
248
+ "className",
249
+ "variant",
250
+ "size",
251
+ "asChild",
252
+ "loading",
253
+ "disabled",
254
+ "type",
255
+ "children"
256
+ ]);
257
+ const Comp = asChild ? Slot : "button";
258
+ const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
259
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
260
+ Comp,
261
+ __spreadProps(__spreadValues({
262
+ className: cn(buttonVariants({ variant, size, className })),
263
+ "data-size": size,
264
+ "data-slot": "button",
265
+ "data-variant": variant,
266
+ disabled: loading || disabled,
267
+ ref,
268
+ type
269
+ }, props), {
270
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
271
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
272
+ !isIconOnly && children
273
+ ] }) : children
274
+ })
275
+ );
276
+ });
277
+
278
+ // src/components/ui/separator.tsx
279
+ var import_separator = require("@base-ui/react/separator");
280
+ var import_jsx_runtime3 = require("react/jsx-runtime");
281
+ function Separator(_a) {
282
+ var _b = _a, {
283
+ className,
284
+ orientation = "horizontal"
285
+ } = _b, props = __objRest(_b, [
286
+ "className",
287
+ "orientation"
288
+ ]);
289
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
290
+ import_separator.Separator,
291
+ __spreadValues({
292
+ className: cn(
293
+ "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
294
+ className
295
+ ),
296
+ "data-orientation": orientation,
297
+ "data-slot": "separator"
298
+ }, props)
299
+ );
300
+ }
301
+
302
+ // src/components/ui/dropdown-menu.tsx
303
+ var import_lucide_react2 = require("lucide-react");
304
+ var import_menu = require("@base-ui/react/menu");
305
+
306
+ // src/lib/theme-provider.tsx
307
+ var import_react2 = require("react");
308
+ var import_jsx_runtime4 = require("react/jsx-runtime");
309
+ var ThemeVarsContext = (0, import_react2.createContext)({});
310
+ function useThemeVars() {
311
+ return (0, import_react2.useContext)(ThemeVarsContext);
312
+ }
313
+
314
+ // src/components/ui/dropdown-menu.tsx
315
+ var import_jsx_runtime5 = require("react/jsx-runtime");
316
+ function DropdownMenu(_a) {
317
+ var props = __objRest(_a, []);
318
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_menu.Menu.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
319
+ }
320
+ function DropdownMenuTrigger(_a) {
321
+ var props = __objRest(_a, []);
322
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_menu.Menu.Trigger, __spreadValues({ "data-slot": "dropdown-menu-trigger" }, props));
323
+ }
324
+ function DropdownMenuContent(_a) {
325
+ var _b = _a, {
326
+ className,
327
+ sideOffset = 4,
328
+ style
329
+ } = _b, props = __objRest(_b, [
330
+ "className",
331
+ "sideOffset",
332
+ "style"
333
+ ]);
334
+ const themeVars = useThemeVars();
335
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_menu.Menu.Positioner, { sideOffset, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
336
+ import_menu.Menu.Popup,
337
+ __spreadValues({
338
+ className: cn(
339
+ "z-50 min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-none border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 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",
340
+ className
341
+ ),
342
+ "data-slot": "dropdown-menu-content",
343
+ style: __spreadValues(__spreadValues({}, themeVars), style)
344
+ }, props)
345
+ ) }) });
346
+ }
347
+ function DropdownMenuItem(_a) {
348
+ var _b = _a, {
349
+ className,
350
+ inset,
351
+ variant = "default"
352
+ } = _b, props = __objRest(_b, [
353
+ "className",
354
+ "inset",
355
+ "variant"
356
+ ]);
357
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
358
+ import_menu.Menu.Item,
359
+ __spreadValues({
360
+ className: cn(
361
+ "relative flex cursor-default items-center gap-2 rounded-none px-2 py-1.5 text-body-small outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",
362
+ className
363
+ ),
364
+ "data-inset": inset,
365
+ "data-slot": "dropdown-menu-item",
366
+ "data-variant": variant
367
+ }, props)
368
+ );
369
+ }
370
+ function DropdownMenuSeparator(_a) {
371
+ var _b = _a, {
372
+ className
373
+ } = _b, props = __objRest(_b, [
374
+ "className"
375
+ ]);
376
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
377
+ import_menu.Menu.Separator,
378
+ __spreadValues({
379
+ className: cn("-mx-1 my-1 h-px bg-border", className),
380
+ "data-slot": "dropdown-menu-separator"
381
+ }, props)
382
+ );
383
+ }
384
+
385
+ // src/components/ui/accordion.tsx
386
+ var import_lucide_react3 = require("lucide-react");
387
+ var import_accordion = require("@base-ui/react/accordion");
388
+ var import_jsx_runtime6 = require("react/jsx-runtime");
389
+ function Accordion(props) {
390
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_accordion.Accordion.Root, __spreadValues({ "data-slot": "accordion" }, props));
391
+ }
392
+ function AccordionItem(_a) {
393
+ var _b = _a, {
394
+ className
395
+ } = _b, props = __objRest(_b, [
396
+ "className"
397
+ ]);
398
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
399
+ import_accordion.Accordion.Item,
400
+ __spreadValues({
401
+ className: cn("border-b", className),
402
+ "data-slot": "accordion-item"
403
+ }, props)
404
+ );
405
+ }
406
+ function AccordionTrigger(_a) {
407
+ var _b = _a, {
408
+ className,
409
+ children
410
+ } = _b, props = __objRest(_b, [
411
+ "className",
412
+ "children"
413
+ ]);
414
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_accordion.Accordion.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
415
+ import_accordion.Accordion.Trigger,
416
+ __spreadProps(__spreadValues({
417
+ className: cn(
418
+ // layout
419
+ "flex flex-1 items-center justify-between gap-4 py-4 text-left",
420
+ // typography
421
+ "text-label-medium",
422
+ // base
423
+ "rounded-none outline-none transition-[color,opacity]",
424
+ // interactive states
425
+ "hover:underline",
426
+ "focus-visible:ring-2 focus-visible:ring-foreground/30",
427
+ "disabled:pointer-events-none disabled:opacity-50",
428
+ // chevron rotation when open
429
+ "[&[data-panel-open]>svg]:rotate-180",
430
+ className
431
+ ),
432
+ "data-slot": "accordion-trigger"
433
+ }, props), {
434
+ children: [
435
+ children,
436
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react3.ChevronDownIcon, { className: "pointer-events-none size-4 shrink-0 text-muted-foreground transition-transform duration-200" })
437
+ ]
438
+ })
439
+ ) });
440
+ }
441
+ function AccordionContent(_a) {
442
+ var _b = _a, {
443
+ className,
444
+ children
445
+ } = _b, props = __objRest(_b, [
446
+ "className",
447
+ "children"
448
+ ]);
449
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
450
+ import_accordion.Accordion.Panel,
451
+ __spreadProps(__spreadValues({
452
+ className: "overflow-hidden text-body-small h-(--accordion-panel-height) transition-[height] duration-200 ease-out data-starting-style:h-0 data-ending-style:h-0",
453
+ "data-slot": "accordion-content"
454
+ }, props), {
455
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: cn("pb-4 text-muted-foreground", className), children })
456
+ })
457
+ );
458
+ }
459
+
460
+ // src/components/ui/checkbox.tsx
461
+ var import_react3 = require("react");
462
+ var import_lucide_react4 = require("lucide-react");
463
+ var import_checkbox = require("@base-ui/react/checkbox");
464
+ var import_jsx_runtime7 = require("react/jsx-runtime");
465
+ function Checkbox(_a) {
466
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
467
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
468
+ import_checkbox.Checkbox.Root,
469
+ __spreadProps(__spreadValues({
470
+ className: cn(
471
+ "peer group inline-flex size-4 shrink-0 border border-input shadow-xs transition-all outline-none",
472
+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
473
+ "disabled:cursor-not-allowed disabled:opacity-50",
474
+ "aria-invalid:border-destructive aria-invalid:ring-destructive/20",
475
+ "data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground",
476
+ "data-indeterminate:border-primary data-indeterminate:bg-primary data-indeterminate:text-primary-foreground",
477
+ // Dark mode (upstream shadcn)
478
+ "dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-checked:bg-primary",
479
+ // Stacked (2 attr selectors) → wins over single-attr rules above
480
+ "aria-invalid:data-checked:border-destructive aria-invalid:data-checked:bg-destructive aria-invalid:data-checked:text-destructive-foreground",
481
+ "aria-invalid:data-indeterminate:border-destructive aria-invalid:data-indeterminate:bg-destructive aria-invalid:data-indeterminate:text-destructive-foreground",
482
+ className
483
+ ),
484
+ "data-slot": "checkbox"
485
+ }, props), {
486
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
487
+ import_checkbox.Checkbox.Indicator,
488
+ {
489
+ className: "grid place-content-center text-current transition-none",
490
+ "data-slot": "checkbox-indicator",
491
+ children: [
492
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react4.CheckIcon, { className: "size-3.5 group-data-indeterminate:hidden" }),
493
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react4.MinusIcon, { className: "size-3.5 hidden group-data-indeterminate:block" })
494
+ ]
495
+ }
496
+ )
497
+ })
498
+ );
499
+ }
500
+
501
+ // src/components/ui/pipeline-primitives.tsx
502
+ var import_jsx_runtime8 = require("react/jsx-runtime");
503
+ function TaskCheckItem({
504
+ title,
505
+ completed,
506
+ aiAgentName,
507
+ onToggle,
508
+ disabled = false,
509
+ size = "xs",
510
+ className
511
+ }) {
512
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
513
+ "div",
514
+ {
515
+ className: cn(
516
+ "flex cursor-pointer items-start gap-2 py-1.5",
517
+ disabled && "pointer-events-none opacity-60",
518
+ className
519
+ ),
520
+ onClick: () => onToggle == null ? void 0 : onToggle(),
521
+ "data-slot": "task-check-item",
522
+ children: [
523
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { onClick: (e) => e.stopPropagation(), className: "mt-0.5 shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
524
+ Checkbox,
525
+ {
526
+ checked: completed,
527
+ onCheckedChange: () => onToggle == null ? void 0 : onToggle(),
528
+ disabled
529
+ }
530
+ ) }),
531
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
532
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
533
+ "span",
534
+ {
535
+ className: cn(
536
+ "leading-snug text-foreground",
537
+ size === "sm" ? "text-sm" : "text-xs",
538
+ completed && "text-muted-foreground line-through"
539
+ ),
540
+ children: title
541
+ }
542
+ ),
543
+ aiAgentName && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Badge, { variant: "secondary", className: "gap-1 text-[10px]", children: [
544
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
545
+ "span",
546
+ {
547
+ className: "size-1.5 rounded-full bg-primary",
548
+ "aria-hidden": "true"
549
+ }
550
+ ),
551
+ aiAgentName
552
+ ] })
553
+ ] })
554
+ ]
555
+ }
556
+ );
557
+ }
558
+
559
+ // src/components/ui/opportunity-card.tsx
560
+ var import_jsx_runtime9 = require("react/jsx-runtime");
561
+ var PRIORITY_COLORS = {
562
+ HIGH: "var(--color-destructive)",
563
+ MEDIUM: "var(--color-warning)",
564
+ LOW: "var(--color-success)",
565
+ NONE: "var(--color-muted-foreground)"
566
+ };
567
+ var PRIORITY_TEXT_COLORS = {
568
+ HIGH: "var(--color-destructive-text)",
569
+ MEDIUM: "var(--color-warning-text)",
570
+ LOW: "var(--color-success-text)",
571
+ NONE: "var(--color-muted-foreground)"
572
+ };
573
+ function resolvePriority(days, warningDays, priorityDays, priority) {
574
+ if (days === void 0) return priority;
575
+ if (priorityDays !== void 0 && days >= priorityDays) return "HIGH";
576
+ if (warningDays !== void 0 && days >= warningDays) return "MEDIUM";
577
+ if (warningDays !== void 0 || priorityDays !== void 0) return "LOW";
578
+ return priority;
579
+ }
580
+ function formatAmount(amount) {
581
+ return new Intl.NumberFormat("en-AU", {
582
+ style: "currency",
583
+ currency: "AUD",
584
+ maximumFractionDigits: 0
585
+ }).format(amount);
586
+ }
587
+ function formatDate(iso) {
588
+ try {
589
+ return new Date(iso).toLocaleDateString("en-AU", {
590
+ day: "2-digit",
591
+ month: "short",
592
+ year: "numeric"
593
+ });
594
+ } catch (e) {
595
+ return iso;
596
+ }
597
+ }
598
+ function formatHoldDate(iso) {
599
+ try {
600
+ return new Date(iso).toLocaleDateString("en-AU", {
601
+ day: "2-digit",
602
+ month: "short"
603
+ });
604
+ } catch (e) {
605
+ return iso;
606
+ }
607
+ }
608
+ function formatLoanType(type) {
609
+ return type.split("-").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
610
+ }
611
+ function OpportunityCard({
612
+ customerName,
613
+ customerPhone,
614
+ customerEmail,
615
+ additionalContacts,
616
+ loanType,
617
+ loanPurposeLabel,
618
+ amount,
619
+ date,
620
+ priority,
621
+ daysSinceColumnChanged,
622
+ warningDays,
623
+ priorityDays,
624
+ onHoldTo,
625
+ isModifyCompletedLoan,
626
+ tasks = [],
627
+ nextTask,
628
+ onViewDetails,
629
+ onTaskToggle,
630
+ onMarkAsDone,
631
+ onMoveToNextStage,
632
+ onLaunchAssistant,
633
+ onChangePriority,
634
+ onDelete,
635
+ onPutOnHold,
636
+ isSubmitting = false,
637
+ className
638
+ }) {
639
+ const resolvedPriority = resolvePriority(
640
+ daysSinceColumnChanged,
641
+ warningDays,
642
+ priorityDays,
643
+ priority
644
+ );
645
+ const priorityColor = PRIORITY_COLORS[resolvedPriority];
646
+ const priorityTextColor = PRIORITY_TEXT_COLORS[resolvedPriority];
647
+ const completedCount = tasks.filter((t) => t.completed).length;
648
+ const hasTasks = tasks.length > 0;
649
+ const hasActions = onMarkAsDone || onMoveToNextStage;
650
+ const hasMenu = onViewDetails || onChangePriority || onPutOnHold || onDelete;
651
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
652
+ "div",
653
+ {
654
+ className: cn(
655
+ "flex flex-col gap-2 border border-border bg-background p-4 text-foreground shadow-sm",
656
+ isSubmitting && "opacity-60",
657
+ className
658
+ ),
659
+ "data-slot": "opportunity-card",
660
+ children: [
661
+ onHoldTo && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
662
+ "div",
663
+ {
664
+ className: "flex items-center gap-1.5 rounded border border-warning/30 bg-warning/10 px-2 py-1 text-xs font-medium",
665
+ style: { color: "var(--color-warning-text)" },
666
+ children: [
667
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react5.Clock, { className: "size-3 shrink-0" }),
668
+ "On hold until ",
669
+ formatHoldDate(onHoldTo)
670
+ ]
671
+ }
672
+ ),
673
+ isModifyCompletedLoan && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
674
+ "div",
675
+ {
676
+ className: "flex items-center gap-1.5 rounded border border-info/30 bg-info/10 px-2 py-1 text-xs font-medium",
677
+ style: { color: "var(--color-info-text)" },
678
+ children: "Modify completed loan"
679
+ }
680
+ ),
681
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
682
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
683
+ (loanPurposeLabel || loanType) && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Badge, { variant: "outline", className: "self-start", children: loanPurposeLabel != null ? loanPurposeLabel : formatLoanType(loanType) }),
684
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-base font-bold tabular-nums text-foreground", children: formatAmount(amount) })
685
+ ] }),
686
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center gap-1 -mr-1 -mt-1", children: [
687
+ onLaunchAssistant && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
688
+ "button",
689
+ {
690
+ type: "button",
691
+ className: cn(
692
+ buttonVariants({ variant: "ghost", size: "icon" }),
693
+ "size-7 shrink-0"
694
+ ),
695
+ onClick: onLaunchAssistant,
696
+ "aria-label": "Launch AI Assistant",
697
+ title: "Launch AI Assistant",
698
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react5.Bot, { className: "size-4" })
699
+ }
700
+ ),
701
+ hasMenu && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(DropdownMenu, { children: [
702
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
703
+ DropdownMenuTrigger,
704
+ {
705
+ className: cn(
706
+ buttonVariants({ variant: "ghost", size: "icon" }),
707
+ "size-7 shrink-0"
708
+ ),
709
+ "aria-label": "Opportunity actions",
710
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react5.MoreVertical, { className: "size-4" })
711
+ }
712
+ ),
713
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(DropdownMenuContent, { align: "end", children: [
714
+ onViewDetails && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuItem, { onClick: onViewDetails, children: "View details" }),
715
+ onChangePriority && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuItem, { onClick: onChangePriority, children: "Change priority" }),
716
+ onPutOnHold && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuItem, { onClick: onPutOnHold, children: "Put on hold" }),
717
+ onDelete && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
718
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuSeparator, {}),
719
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuItem, { onClick: onDelete, variant: "destructive", children: "Delete" })
720
+ ] })
721
+ ] })
722
+ ] })
723
+ ] })
724
+ ] }),
725
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Separator, {}),
726
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex flex-col gap-1", children: [
727
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
728
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "truncate text-sm font-semibold text-foreground", children: customerName }),
729
+ additionalContacts && additionalContacts > 0 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Badge, { variant: "secondary", className: "shrink-0 gap-1", children: [
730
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react5.Users, { className: "size-3", "aria-hidden": "true" }),
731
+ "Joint"
732
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Badge, { variant: "secondary", className: "shrink-0 gap-1", children: [
733
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react5.User, { className: "size-3", "aria-hidden": "true" }),
734
+ "Individual"
735
+ ] })
736
+ ] }),
737
+ customerPhone && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
738
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react5.Phone, { className: "size-3 shrink-0", "aria-hidden": "true" }),
739
+ customerPhone
740
+ ] }),
741
+ customerEmail && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
742
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react5.Mail, { className: "size-3 shrink-0", "aria-hidden": "true" }),
743
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "truncate", children: customerEmail })
744
+ ] })
745
+ ] }),
746
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Separator, {}),
747
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center justify-between", children: [
748
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
749
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react5.Calendar, { className: "size-3 shrink-0", "aria-hidden": "true" }),
750
+ formatDate(date)
751
+ ] }),
752
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "flex items-center gap-1.5", children: [
753
+ daysSinceColumnChanged !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
754
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
755
+ import_lucide_react5.Clock,
756
+ {
757
+ className: "size-3 shrink-0",
758
+ style: { color: priorityTextColor },
759
+ "aria-hidden": "true"
760
+ }
761
+ ),
762
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
763
+ "span",
764
+ {
765
+ className: "text-xs font-medium tabular-nums",
766
+ style: { color: priorityTextColor },
767
+ children: [
768
+ daysSinceColumnChanged,
769
+ "d"
770
+ ]
771
+ }
772
+ )
773
+ ] }),
774
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
775
+ "span",
776
+ {
777
+ role: "img",
778
+ className: "inline-block size-2 shrink-0 rounded-full",
779
+ style: { backgroundColor: priorityColor },
780
+ "aria-label": `Priority: ${resolvedPriority}`
781
+ }
782
+ )
783
+ ] })
784
+ ] }),
785
+ hasTasks && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
786
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
787
+ "div",
788
+ {
789
+ className: "flex gap-0.5",
790
+ role: "progressbar",
791
+ "aria-valuenow": completedCount,
792
+ "aria-valuemin": 0,
793
+ "aria-valuemax": tasks.length,
794
+ "aria-label": `${completedCount} of ${tasks.length} tasks complete`,
795
+ children: tasks.map((t, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
796
+ "div",
797
+ {
798
+ className: cn(
799
+ "h-[7px] flex-1",
800
+ i < completedCount ? "bg-primary" : "bg-muted"
801
+ )
802
+ },
803
+ t.id
804
+ ))
805
+ }
806
+ ),
807
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Accordion, { type: "single", collapsible: true, className: "-mx-4", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(AccordionItem, { value: "tasks", className: "border-0", children: [
808
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(AccordionTrigger, { className: "px-4 py-1.5 text-xs font-normal text-muted-foreground hover:no-underline hover:text-foreground [&>svg]:size-3.5", children: [
809
+ "Tasks (",
810
+ completedCount,
811
+ "/",
812
+ tasks.length,
813
+ ")"
814
+ ] }),
815
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(AccordionContent, { className: "px-4", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex flex-col", children: tasks.map((task) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
816
+ TaskCheckItem,
817
+ {
818
+ title: task.title,
819
+ completed: task.completed,
820
+ aiAgentName: task.aiAgentName,
821
+ onToggle: onTaskToggle ? () => onTaskToggle(task.id) : void 0,
822
+ disabled: isSubmitting
823
+ },
824
+ task.id
825
+ )) }) })
826
+ ] }) }),
827
+ nextTask && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-start gap-1.5 border border-primary/30 bg-primary/5 px-2 py-1.5 text-xs", children: [
828
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
829
+ import_lucide_react5.ArrowRight,
830
+ {
831
+ className: "mt-0.5 size-3 shrink-0 text-primary",
832
+ "aria-hidden": "true"
833
+ }
834
+ ),
835
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "font-medium", children: "Next:" }),
836
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-muted-foreground", children: nextTask })
837
+ ] })
838
+ ] }),
839
+ hasActions && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
840
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Separator, {}),
841
+ (onMoveToNextStage || onMarkAsDone) && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex gap-2", children: [
842
+ onMoveToNextStage && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
843
+ Button,
844
+ {
845
+ variant: "outline",
846
+ size: "sm",
847
+ className: "flex-1 text-caption",
848
+ onClick: onMoveToNextStage,
849
+ disabled: isSubmitting,
850
+ children: "Move to next stage"
851
+ }
852
+ ),
853
+ onMarkAsDone && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
854
+ Button,
855
+ {
856
+ variant: "default",
857
+ size: "sm",
858
+ className: "flex-1 text-caption",
859
+ onClick: onMarkAsDone,
860
+ disabled: isSubmitting,
861
+ children: "Mark as done"
862
+ }
863
+ )
864
+ ] })
865
+ ] })
866
+ ]
867
+ }
868
+ );
869
+ }
870
+ function LeadCard({
871
+ customerName,
872
+ customerPhone,
873
+ customerEmail,
874
+ onSendLoanApplication,
875
+ loanApplicationUrl,
876
+ onDelete,
877
+ isSubmitting = false,
878
+ className
879
+ }) {
880
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
881
+ "div",
882
+ {
883
+ className: cn(
884
+ "flex flex-col gap-3 border border-border bg-background p-4 text-foreground shadow-sm",
885
+ isSubmitting && "opacity-60",
886
+ className
887
+ ),
888
+ "data-slot": "lead-card",
889
+ children: [
890
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
891
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
892
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-sm font-semibold text-foreground", children: customerName }),
893
+ customerPhone && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
894
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react5.Phone, { className: "size-3 shrink-0", "aria-hidden": "true" }),
895
+ customerPhone
896
+ ] }),
897
+ customerEmail && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
898
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react5.Mail, { className: "size-3 shrink-0", "aria-hidden": "true" }),
899
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "truncate", children: customerEmail })
900
+ ] })
901
+ ] }),
902
+ onDelete && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(DropdownMenu, { children: [
903
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
904
+ DropdownMenuTrigger,
905
+ {
906
+ className: cn(
907
+ buttonVariants({ variant: "ghost", size: "icon" }),
908
+ "-mr-1 -mt-1 size-7 shrink-0"
909
+ ),
910
+ "aria-label": "Lead actions",
911
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react5.MoreVertical, { className: "size-4" })
912
+ }
913
+ ),
914
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DropdownMenuContent, { align: "end", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
915
+ DropdownMenuItem,
916
+ {
917
+ onClick: onDelete,
918
+ className: "text-destructive focus:text-destructive",
919
+ children: "Delete"
920
+ }
921
+ ) })
922
+ ] })
923
+ ] }),
924
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Separator, {}),
925
+ onSendLoanApplication && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex flex-col gap-2", children: [
926
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
927
+ Button,
928
+ {
929
+ variant: "outline",
930
+ size: "sm",
931
+ className: "w-full text-caption",
932
+ onClick: onSendLoanApplication,
933
+ disabled: isSubmitting,
934
+ children: "Send Loan Application Request"
935
+ }
936
+ ),
937
+ loanApplicationUrl && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("p", { className: "text-xs text-muted-foreground", children: [
938
+ "Or the link below to fill out the loan application directly.",
939
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("br", {}),
940
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
941
+ "a",
942
+ {
943
+ href: `https://${loanApplicationUrl.replace(/^https?:\/\//, "")}`,
944
+ target: "_blank",
945
+ rel: "noreferrer",
946
+ className: "text-primary underline-offset-2 hover:underline",
947
+ children: loanApplicationUrl
948
+ }
949
+ )
950
+ ] })
951
+ ] })
952
+ ]
953
+ }
954
+ );
955
+ }
956
+ // Annotate the CommonJS export names for ESM import in node:
957
+ 0 && (module.exports = {
958
+ LeadCard,
959
+ OpportunityCard
960
+ });