@wealthx/shadcn 1.0.2 → 1.2.0

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