@wealthx/shadcn 1.3.2 → 1.3.4

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 (313) hide show
  1. package/.turbo/turbo-build.log +227 -191
  2. package/CHANGELOG.md +12 -0
  3. package/dist/{chunk-2UM72RJ7.mjs → chunk-2D3HQPFN.mjs} +12 -10
  4. package/dist/chunk-2EM2FRU6.mjs +613 -0
  5. package/dist/{chunk-FH6QVUVZ.mjs → chunk-2GIYVERS.mjs} +2 -2
  6. package/dist/chunk-2P7HP7LR.mjs +68 -0
  7. package/dist/{chunk-HISNT2MG.mjs → chunk-37AE3OM5.mjs} +5 -5
  8. package/dist/{chunk-HBZLGDIN.mjs → chunk-3ERBUVHC.mjs} +169 -110
  9. package/dist/{chunk-C7CQJNMR.mjs → chunk-3VDET466.mjs} +2 -2
  10. package/dist/{chunk-462HMNO4.mjs → chunk-4MM7LHM5.mjs} +2 -2
  11. package/dist/{chunk-QMY3AZJH.mjs → chunk-4Z66LMIQ.mjs} +2 -2
  12. package/dist/{chunk-U5X52X37.mjs → chunk-57ZXILTS.mjs} +6 -6
  13. package/dist/{chunk-2A5RRQGG.mjs → chunk-5NF6T2RS.mjs} +11 -20
  14. package/dist/{chunk-3OYFOX3X.mjs → chunk-5VOTTIXF.mjs} +2 -2
  15. package/dist/{chunk-LBMRIB3G.mjs → chunk-6AJUS7VX.mjs} +1 -1
  16. package/dist/{chunk-OODBHKG7.mjs → chunk-6HIOM2HL.mjs} +7 -4
  17. package/dist/{chunk-BDYZCBRT.mjs → chunk-6QAFGZC2.mjs} +2 -2
  18. package/dist/{chunk-U4NDAF2P.mjs → chunk-6TX73WG7.mjs} +1 -1
  19. package/dist/{chunk-GD4BJDJR.mjs → chunk-7BTFGCFC.mjs} +4 -4
  20. package/dist/{chunk-FAKPBKLT.mjs → chunk-7GWRPXHD.mjs} +4 -4
  21. package/dist/{chunk-NMOI6CQD.mjs → chunk-7YI3HEBH.mjs} +5 -5
  22. package/dist/{chunk-T4BJLT57.mjs → chunk-AE7MASLF.mjs} +5 -5
  23. package/dist/{chunk-VLQZANBF.mjs → chunk-AFML43VJ.mjs} +6 -1
  24. package/dist/chunk-BBXSNDS3.mjs +260 -0
  25. package/dist/chunk-BOW7U26Y.mjs +203 -0
  26. package/dist/{chunk-34NWQURD.mjs → chunk-BS75ICOO.mjs} +2 -2
  27. package/dist/chunk-D2NSIIXG.mjs +394 -0
  28. package/dist/{chunk-3GF7OVTP.mjs → chunk-DGNHGNYH.mjs} +2 -2
  29. package/dist/{chunk-VLARHE5V.mjs → chunk-DMXYRCHM.mjs} +6 -6
  30. package/dist/{chunk-OGOYQ7BG.mjs → chunk-DQB4EPIS.mjs} +1 -1
  31. package/dist/{chunk-MIZQHHUO.mjs → chunk-FL6DZFJK.mjs} +106 -38
  32. package/dist/{chunk-I3RZS7V2.mjs → chunk-FLL633WS.mjs} +19 -33
  33. package/dist/{chunk-PBL4OQV2.mjs → chunk-FTPBQVQ6.mjs} +4 -4
  34. package/dist/chunk-FYPSTTEJ.mjs +169 -0
  35. package/dist/{chunk-6O6KD7CE.mjs → chunk-G27TSQLQ.mjs} +6 -6
  36. package/dist/{chunk-66MI7Q4B.mjs → chunk-GT3RU6GA.mjs} +2 -2
  37. package/dist/{chunk-D6ID6M4V.mjs → chunk-GTAVSBDO.mjs} +2 -2
  38. package/dist/{chunk-24FUO7TD.mjs → chunk-H6NQTIF4.mjs} +2 -2
  39. package/dist/{chunk-7DHU4VGG.mjs → chunk-HK4HUQTV.mjs} +2 -2
  40. package/dist/chunk-I4KVSZCH.mjs +101 -0
  41. package/dist/{chunk-RGVKLTLH.mjs → chunk-IKXYTCSB.mjs} +2 -2
  42. package/dist/{chunk-Y6DWJSKZ.mjs → chunk-ISUA7DSB.mjs} +1 -1
  43. package/dist/{chunk-J5UICVJS.mjs → chunk-JPGL36WQ.mjs} +2 -2
  44. package/dist/{chunk-7XJHLGUV.mjs → chunk-JTK6VJXY.mjs} +2 -2
  45. package/dist/{chunk-7YAU5CY6.mjs → chunk-JVMXMFBB.mjs} +2 -2
  46. package/dist/{chunk-IAE3F7DR.mjs → chunk-JZY6TNIS.mjs} +21 -21
  47. package/dist/{chunk-K5A5L6T2.mjs → chunk-K4KOD3KR.mjs} +12 -12
  48. package/dist/{chunk-MBON7YRJ.mjs → chunk-K5QV4TT6.mjs} +3 -3
  49. package/dist/{chunk-IHMFS7NZ.mjs → chunk-K5VHK7CM.mjs} +21 -21
  50. package/dist/{chunk-RJI6GKVF.mjs → chunk-KCWNDYPZ.mjs} +5 -5
  51. package/dist/{chunk-UFYSFDER.mjs → chunk-KFH36NKF.mjs} +1 -1
  52. package/dist/{chunk-EBXQWIYG.mjs → chunk-KLTACJ2G.mjs} +5 -5
  53. package/dist/{chunk-3TTACBDP.mjs → chunk-KWD6GANL.mjs} +4 -4
  54. package/dist/{chunk-IOJRDS6V.mjs → chunk-L4NSRQ3T.mjs} +218 -147
  55. package/dist/{chunk-GYMYRIZP.mjs → chunk-LBTHZSBT.mjs} +2 -2
  56. package/dist/{chunk-AMQZRHEZ.mjs → chunk-LQULK2E3.mjs} +5 -5
  57. package/dist/{chunk-YJG55G2H.mjs → chunk-LR6LHDP3.mjs} +5 -5
  58. package/dist/{chunk-7PV3IWCN.mjs → chunk-M4VYX2PV.mjs} +19 -1
  59. package/dist/{chunk-P76HMUI6.mjs → chunk-MDUKXXIL.mjs} +2 -2
  60. package/dist/{chunk-LV35NGVG.mjs → chunk-N6Q5IPKT.mjs} +9 -9
  61. package/dist/{chunk-DOEO3CDL.mjs → chunk-NB3ZL36B.mjs} +1 -1
  62. package/dist/{chunk-XREGSKX3.mjs → chunk-NOOEKOWY.mjs} +5 -5
  63. package/dist/{chunk-NL3ZO62D.mjs → chunk-NT4FX27K.mjs} +1 -1
  64. package/dist/{chunk-QZ4RE6NA.mjs → chunk-NTYQWVLI.mjs} +6 -6
  65. package/dist/{chunk-ERGGHC2V.mjs → chunk-OEOOYMC2.mjs} +2 -2
  66. package/dist/{chunk-4GAWMKMI.mjs → chunk-OIKBW2QD.mjs} +291 -54
  67. package/dist/{chunk-DUJTAXMH.mjs → chunk-OKTJFDPN.mjs} +6 -6
  68. package/dist/chunk-OLKMCXAR.mjs +1219 -0
  69. package/dist/{chunk-EI5F6FMT.mjs → chunk-OWFQSXVD.mjs} +3 -3
  70. package/dist/{chunk-6DZEXFNB.mjs → chunk-P2N2PEFY.mjs} +3 -3
  71. package/dist/{chunk-NSLMILBT.mjs → chunk-P7CEBZM6.mjs} +2 -2
  72. package/dist/{chunk-7S5AESZO.mjs → chunk-PNRUH7JY.mjs} +6 -6
  73. package/dist/{chunk-ZU4NV6RG.mjs → chunk-PNSYFE3K.mjs} +2 -2
  74. package/dist/{chunk-JKGDCQTZ.mjs → chunk-QTRSCVQ3.mjs} +5 -5
  75. package/dist/{chunk-ABFDMHOR.mjs → chunk-QX7IFQSF.mjs} +5 -5
  76. package/dist/{chunk-CFMQP5QS.mjs → chunk-QXKGOMUX.mjs} +6 -6
  77. package/dist/{chunk-NQPOYKAQ.mjs → chunk-R2ON6CAN.mjs} +2 -2
  78. package/dist/{chunk-DBHJ5KC3.mjs → chunk-R4HCRDU5.mjs} +1 -1
  79. package/dist/{chunk-EWRB4PAD.mjs → chunk-RCAOCHWA.mjs} +14 -14
  80. package/dist/{chunk-EFRENWEJ.mjs → chunk-RSUIPKGX.mjs} +2 -2
  81. package/dist/{chunk-DGHAXJBN.mjs → chunk-S2FKV4M5.mjs} +5 -5
  82. package/dist/{chunk-RGU7HOEC.mjs → chunk-SET2ANTY.mjs} +5 -7
  83. package/dist/chunk-SFH2NJEJ.mjs +47 -0
  84. package/dist/{chunk-6AW4KJHE.mjs → chunk-SIVYAI3M.mjs} +12 -12
  85. package/dist/{chunk-5FQIKDKP.mjs → chunk-THVO2N47.mjs} +8 -8
  86. package/dist/{chunk-JMHR3YGZ.mjs → chunk-TLAWKTSA.mjs} +3 -3
  87. package/dist/{chunk-HVY6KCCF.mjs → chunk-TOWTPLRC.mjs} +68 -72
  88. package/dist/{chunk-6JQFUE5I.mjs → chunk-UALR6JGV.mjs} +2 -2
  89. package/dist/{chunk-N6TNTQL6.mjs → chunk-UJZ4UHWI.mjs} +9 -11
  90. package/dist/{chunk-MARPPFOJ.mjs → chunk-UNACI2YK.mjs} +2 -2
  91. package/dist/{chunk-3NCUZIFP.mjs → chunk-V6XGXYCJ.mjs} +7 -7
  92. package/dist/chunk-VB5M6OZQ.mjs +57 -0
  93. package/dist/{chunk-5IS7G74I.mjs → chunk-VY5NEUP7.mjs} +6 -6
  94. package/dist/{chunk-JHJHG4GO.mjs → chunk-WE4YKBDE.mjs} +2 -2
  95. package/dist/{chunk-BKNFWEH2.mjs → chunk-WL6WVV47.mjs} +3 -3
  96. package/dist/{chunk-FWCSY2DS.mjs → chunk-WNQUEZJF.mjs} +22 -1
  97. package/dist/{chunk-2Y7YJKPE.mjs → chunk-WZ6UJCBL.mjs} +1 -1
  98. package/dist/{chunk-UMTOX62O.mjs → chunk-XYPW2XA5.mjs} +13 -10
  99. package/dist/chunk-Y2MTAVAK.mjs +34 -0
  100. package/dist/{chunk-6CR5N2JW.mjs → chunk-YCWLFG27.mjs} +6 -6
  101. package/dist/{chunk-PU4YZQXV.mjs → chunk-YE67AALL.mjs} +12 -12
  102. package/dist/{chunk-M3FV7LOK.mjs → chunk-YEWNFK5S.mjs} +6 -1
  103. package/dist/{chunk-R3VSPKNP.mjs → chunk-YIZHS72Z.mjs} +11 -12
  104. package/dist/{chunk-7PYJD5JI.mjs → chunk-ZEDMKQK2.mjs} +2 -2
  105. package/dist/{chunk-N2PT566P.mjs → chunk-ZFCDYW6N.mjs} +4 -4
  106. package/dist/chunk-ZGQIVGIN.mjs +57 -0
  107. package/dist/{chunk-Q2BGOAMG.mjs → chunk-ZKWXDQDG.mjs} +4 -4
  108. package/dist/{chunk-GHC7LLUX.mjs → chunk-ZOWL2L5J.mjs} +5 -5
  109. package/dist/components/ui/accordion.mjs +3 -3
  110. package/dist/components/ui/add-column-modal.js +2 -2
  111. package/dist/components/ui/add-column-modal.mjs +10 -10
  112. package/dist/components/ui/add-lead-modal.js +424 -82
  113. package/dist/components/ui/add-lead-modal.mjs +12 -9
  114. package/dist/components/ui/advisor-card.js +2 -2
  115. package/dist/components/ui/advisor-card.mjs +8 -8
  116. package/dist/components/ui/ai-assistant-drawer.js +2 -2
  117. package/dist/components/ui/ai-assistant-drawer.mjs +9 -9
  118. package/dist/components/ui/ai-builder.js +958 -0
  119. package/dist/components/ui/ai-builder.mjs +25 -0
  120. package/dist/components/ui/ai-conversations.js +2045 -0
  121. package/dist/components/ui/ai-conversations.mjs +41 -0
  122. package/dist/components/ui/alert-dialog.js +2 -2
  123. package/dist/components/ui/alert-dialog.mjs +5 -5
  124. package/dist/components/ui/alert.mjs +3 -3
  125. package/dist/components/ui/appointment-action-dialogs.js +19 -3
  126. package/dist/components/ui/appointment-action-dialogs.mjs +15 -14
  127. package/dist/components/ui/appointment-availability-settings.js +181 -111
  128. package/dist/components/ui/appointment-availability-settings.mjs +20 -18
  129. package/dist/components/ui/appointment-book-dialog.js +113 -24
  130. package/dist/components/ui/appointment-book-dialog.mjs +21 -20
  131. package/dist/components/ui/appointment-calendar-view.js +19 -3
  132. package/dist/components/ui/appointment-calendar-view.mjs +10 -9
  133. package/dist/components/ui/appointment-detail-sheet.js +19 -3
  134. package/dist/components/ui/appointment-detail-sheet.mjs +18 -17
  135. package/dist/components/ui/appointment-gmail-connect.js +49 -89
  136. package/dist/components/ui/appointment-gmail-connect.mjs +8 -9
  137. package/dist/components/ui/appointment-mini-card.js +2 -2
  138. package/dist/components/ui/appointment-mini-card.mjs +6 -6
  139. package/dist/components/ui/appointment-time-slot-picker.mjs +6 -6
  140. package/dist/components/ui/appointment-upcoming-card.js +19 -3
  141. package/dist/components/ui/appointment-upcoming-card.mjs +15 -14
  142. package/dist/components/ui/auth-logo.js +95 -0
  143. package/dist/components/ui/auth-logo.mjs +8 -0
  144. package/dist/components/ui/auth-page-layout.js +108 -0
  145. package/dist/components/ui/auth-page-layout.mjs +8 -0
  146. package/dist/components/ui/avatar.mjs +3 -3
  147. package/dist/components/ui/backoffice-alert-history-chart.js +2 -2
  148. package/dist/components/ui/backoffice-alert-history-chart.mjs +9 -9
  149. package/dist/components/ui/backoffice-alerts-chart.js +2 -2
  150. package/dist/components/ui/backoffice-alerts-chart.mjs +11 -11
  151. package/dist/components/ui/backoffice-connections-chart.js +2 -2
  152. package/dist/components/ui/backoffice-connections-chart.mjs +11 -11
  153. package/dist/components/ui/backoffice-contact-history-chart.js +2 -2
  154. package/dist/components/ui/backoffice-contact-history-chart.mjs +9 -9
  155. package/dist/components/ui/badge.mjs +4 -4
  156. package/dist/components/ui/borrowing-capacity-line-chart.js +145 -132
  157. package/dist/components/ui/borrowing-capacity-line-chart.mjs +9 -9
  158. package/dist/components/ui/button.js +2 -2
  159. package/dist/components/ui/button.mjs +4 -4
  160. package/dist/components/ui/calendar.js +17 -3
  161. package/dist/components/ui/calendar.mjs +6 -5
  162. package/dist/components/ui/card.mjs +3 -3
  163. package/dist/components/ui/cash-balance-line-chart.js +158 -158
  164. package/dist/components/ui/cash-balance-line-chart.mjs +9 -9
  165. package/dist/components/ui/cashflow-bar-chart.js +2 -2
  166. package/dist/components/ui/cashflow-bar-chart.mjs +9 -9
  167. package/dist/components/ui/chat-widget-primitives.js +573 -0
  168. package/dist/components/ui/chat-widget-primitives.mjs +21 -0
  169. package/dist/components/ui/chat-widget.js +1268 -0
  170. package/dist/components/ui/chat-widget.mjs +29 -0
  171. package/dist/components/ui/checkbox.mjs +3 -3
  172. package/dist/components/ui/chip.js +2 -2
  173. package/dist/components/ui/chip.mjs +6 -6
  174. package/dist/components/ui/color-picker.js +2 -2
  175. package/dist/components/ui/color-picker.mjs +7 -7
  176. package/dist/components/ui/combobox.mjs +3 -3
  177. package/dist/components/ui/data-table.js +2 -2
  178. package/dist/components/ui/data-table.mjs +12 -12
  179. package/dist/components/ui/date-picker.js +22 -6
  180. package/dist/components/ui/date-picker.mjs +9 -8
  181. package/dist/components/ui/dialog.js +2 -2
  182. package/dist/components/ui/dialog.mjs +5 -5
  183. package/dist/components/ui/document-checklist-template.js +630 -0
  184. package/dist/components/ui/document-checklist-template.mjs +15 -0
  185. package/dist/components/ui/drawer.js +2 -2
  186. package/dist/components/ui/drawer.mjs +3 -3
  187. package/dist/components/ui/dropdown-menu.mjs +3 -3
  188. package/dist/components/ui/empty.mjs +3 -3
  189. package/dist/components/ui/expense-bar-chart.js +2 -2
  190. package/dist/components/ui/expense-bar-chart.mjs +9 -9
  191. package/dist/components/ui/field.mjs +5 -5
  192. package/dist/components/ui/financial-cards.js +431 -291
  193. package/dist/components/ui/financial-cards.mjs +10 -9
  194. package/dist/components/ui/financial-drawers.js +4 -4
  195. package/dist/components/ui/financial-drawers.mjs +8 -8
  196. package/dist/components/ui/financial-primitives.mjs +3 -3
  197. package/dist/components/ui/financial-sections.js +8 -9
  198. package/dist/components/ui/financial-sections.mjs +12 -12
  199. package/dist/components/ui/form-primitives.mjs +8 -8
  200. package/dist/components/ui/income-bar-chart.js +2 -2
  201. package/dist/components/ui/income-bar-chart.mjs +9 -9
  202. package/dist/components/ui/input-group.js +2 -2
  203. package/dist/components/ui/input-group.mjs +7 -7
  204. package/dist/components/ui/input-otp.mjs +3 -3
  205. package/dist/components/ui/input.mjs +3 -3
  206. package/dist/components/ui/kanban-column.js +19 -23
  207. package/dist/components/ui/kanban-column.mjs +14 -14
  208. package/dist/components/ui/label.mjs +3 -3
  209. package/dist/components/ui/onboarding-layout.js +476 -0
  210. package/dist/components/ui/onboarding-layout.mjs +11 -0
  211. package/dist/components/ui/opportunity-card.js +2 -2
  212. package/dist/components/ui/opportunity-card.mjs +12 -12
  213. package/dist/components/ui/opportunity-edit-modals.js +22 -6
  214. package/dist/components/ui/opportunity-edit-modals.mjs +21 -20
  215. package/dist/components/ui/opportunity-summary-tab.js +991 -674
  216. package/dist/components/ui/opportunity-summary-tab.mjs +26 -26
  217. package/dist/components/ui/page-header.mjs +3 -3
  218. package/dist/components/ui/page-top-bar.mjs +3 -3
  219. package/dist/components/ui/pagination.js +2 -2
  220. package/dist/components/ui/pagination.mjs +6 -6
  221. package/dist/components/ui/password-strength-tooltip.js +197 -0
  222. package/dist/components/ui/password-strength-tooltip.mjs +11 -0
  223. package/dist/components/ui/pipeline-alerts.mjs +3 -3
  224. package/dist/components/ui/pipeline-board.js +19 -23
  225. package/dist/components/ui/pipeline-board.mjs +18 -18
  226. package/dist/components/ui/pipeline-chart.js +12 -6
  227. package/dist/components/ui/pipeline-chart.mjs +4 -3
  228. package/dist/components/ui/pipeline-dialogs.js +28 -12
  229. package/dist/components/ui/pipeline-dialogs.mjs +14 -13
  230. package/dist/components/ui/pipeline-primitives.mjs +6 -6
  231. package/dist/components/ui/popover.mjs +3 -3
  232. package/dist/components/ui/progress.mjs +3 -3
  233. package/dist/components/ui/property-cashflow-doughnut-chart.js +2 -2
  234. package/dist/components/ui/property-cashflow-doughnut-chart.mjs +9 -9
  235. package/dist/components/ui/property-debt-equity-doughnut-chart.js +2 -2
  236. package/dist/components/ui/property-debt-equity-doughnut-chart.mjs +9 -9
  237. package/dist/components/ui/property-mobile-estimate-line-chart.js +2 -2
  238. package/dist/components/ui/property-mobile-estimate-line-chart.mjs +9 -9
  239. package/dist/components/ui/radio-group.mjs +3 -3
  240. package/dist/components/ui/select.mjs +3 -3
  241. package/dist/components/ui/separator.mjs +3 -3
  242. package/dist/components/ui/sheet.mjs +3 -3
  243. package/dist/components/ui/sidebar-nav.js +6 -5
  244. package/dist/components/ui/sidebar-nav.mjs +7 -7
  245. package/dist/components/ui/skeleton.mjs +3 -3
  246. package/dist/components/ui/slider.mjs +3 -3
  247. package/dist/components/ui/sonner.mjs +2 -2
  248. package/dist/components/ui/spinner.mjs +3 -3
  249. package/dist/components/ui/stage-timeline.mjs +10 -10
  250. package/dist/components/ui/stepper.mjs +3 -3
  251. package/dist/components/ui/switch.mjs +3 -3
  252. package/dist/components/ui/table.mjs +3 -3
  253. package/dist/components/ui/tabs.mjs +3 -3
  254. package/dist/components/ui/textarea.mjs +3 -3
  255. package/dist/components/ui/toggle-group.mjs +4 -4
  256. package/dist/components/ui/toggle.mjs +3 -3
  257. package/dist/components/ui/tooltip.mjs +3 -3
  258. package/dist/components/ui/transactions-expense-categories-doughnut-chart.js +2 -2
  259. package/dist/components/ui/transactions-expense-categories-doughnut-chart.mjs +9 -9
  260. package/dist/components/ui/transactions-income-expense-bar-chart.js +2 -2
  261. package/dist/components/ui/transactions-income-expense-bar-chart.mjs +9 -9
  262. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.js +2 -2
  263. package/dist/components/ui/transactions-liabilities-breakdown-doughnut-chart.mjs +9 -9
  264. package/dist/components/ui/two-fa-setup-form.js +612 -0
  265. package/dist/components/ui/two-fa-setup-form.mjs +16 -0
  266. package/dist/components/ui/upload-card.js +187 -0
  267. package/dist/components/ui/upload-card.mjs +10 -0
  268. package/dist/components/ui/video-background.js +118 -0
  269. package/dist/components/ui/video-background.mjs +8 -0
  270. package/dist/index.js +12674 -9311
  271. package/dist/index.mjs +341 -245
  272. package/dist/lib/colors.mjs +1 -1
  273. package/dist/lib/theme-provider.mjs +1 -1
  274. package/dist/lib/typography.mjs +2 -2
  275. package/dist/lib/utils.js +8 -2
  276. package/dist/lib/utils.mjs +6 -4
  277. package/dist/styles.css +1 -1
  278. package/package.json +61 -1
  279. package/src/components/index.tsx +126 -1
  280. package/src/components/ui/add-lead-modal.tsx +101 -142
  281. package/src/components/ui/ai-builder.tsx +560 -0
  282. package/src/components/ui/ai-conversations.tsx +1690 -0
  283. package/src/components/ui/appointment-availability-settings.tsx +152 -101
  284. package/src/components/ui/appointment-book-dialog.tsx +138 -24
  285. package/src/components/ui/appointment-calendar-view.tsx +2 -3
  286. package/src/components/ui/appointment-gmail-connect.tsx +23 -42
  287. package/src/components/ui/auth-logo.tsx +50 -0
  288. package/src/components/ui/auth-page-layout.tsx +59 -0
  289. package/src/components/ui/borrowing-capacity-line-chart.tsx +10 -8
  290. package/src/components/ui/button.tsx +2 -2
  291. package/src/components/ui/calendar.tsx +2 -1
  292. package/src/components/ui/cash-balance-line-chart.tsx +11 -20
  293. package/src/components/ui/chart-shared.tsx +10 -0
  294. package/src/components/ui/chat-widget-primitives.tsx +336 -0
  295. package/src/components/ui/chat-widget.tsx +822 -0
  296. package/src/components/ui/document-checklist-template.tsx +264 -0
  297. package/src/components/ui/drawer.tsx +2 -2
  298. package/src/components/ui/financial-cards.tsx +176 -78
  299. package/src/components/ui/financial-drawers.tsx +2 -2
  300. package/src/components/ui/financial-sections.tsx +1 -1
  301. package/src/components/ui/kanban-column.tsx +2 -5
  302. package/src/components/ui/onboarding-layout.tsx +109 -0
  303. package/src/components/ui/opportunity-summary-tab.tsx +469 -142
  304. package/src/components/ui/password-strength-tooltip.tsx +70 -0
  305. package/src/components/ui/pipeline-chart.tsx +2 -6
  306. package/src/components/ui/sidebar-nav.tsx +1 -11
  307. package/src/components/ui/two-fa-setup-form.tsx +229 -0
  308. package/src/components/ui/upload-card.tsx +98 -0
  309. package/src/components/ui/video-background.tsx +55 -0
  310. package/src/lib/format-date.ts +26 -0
  311. package/src/lib/utils.ts +11 -0
  312. package/src/styles/styles-css.ts +1 -1
  313. package/tsup.config.ts +13 -0
@@ -0,0 +1,958 @@
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
+ var __async = (__this, __arguments, generator) => {
59
+ return new Promise((resolve, reject) => {
60
+ var fulfilled = (value) => {
61
+ try {
62
+ step(generator.next(value));
63
+ } catch (e) {
64
+ reject(e);
65
+ }
66
+ };
67
+ var rejected = (value) => {
68
+ try {
69
+ step(generator.throw(value));
70
+ } catch (e) {
71
+ reject(e);
72
+ }
73
+ };
74
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
75
+ step((generator = generator.apply(__this, __arguments)).next());
76
+ });
77
+ };
78
+
79
+ // src/components/ui/ai-builder.tsx
80
+ var ai_builder_exports = {};
81
+ __export(ai_builder_exports, {
82
+ AgentCard: () => AgentCard,
83
+ AgentMenuModal: () => AgentMenuModal,
84
+ IntegrationInstructionCard: () => IntegrationInstructionCard,
85
+ IntegrationServiceCard: () => IntegrationServiceCard,
86
+ ServiceConfigurationModal: () => ServiceConfigurationModal
87
+ });
88
+ module.exports = __toCommonJS(ai_builder_exports);
89
+ var import_react4 = require("react");
90
+ var import_lucide_react3 = require("lucide-react");
91
+
92
+ // src/components/ui/avatar.tsx
93
+ var import_avatar = require("@base-ui/react/avatar");
94
+
95
+ // src/lib/utils.ts
96
+ var import_clsx = require("clsx");
97
+ var import_tailwind_merge = require("tailwind-merge");
98
+ var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
99
+ extend: {
100
+ classGroups: {
101
+ "font-size": [
102
+ {
103
+ text: [
104
+ "display-large",
105
+ "display-medium",
106
+ "display-small",
107
+ "h1",
108
+ "h2",
109
+ "h3",
110
+ "h4",
111
+ "h5",
112
+ "h6",
113
+ "body-large",
114
+ "body-medium",
115
+ "body-small",
116
+ "label-large",
117
+ "label-medium",
118
+ "label-small",
119
+ "button",
120
+ "button-xs",
121
+ "caption",
122
+ "overline",
123
+ "code"
124
+ ]
125
+ }
126
+ ]
127
+ }
128
+ }
129
+ });
130
+ function cn(...inputs) {
131
+ return twMerge((0, import_clsx.clsx)(inputs));
132
+ }
133
+
134
+ // src/components/ui/avatar.tsx
135
+ var import_jsx_runtime = require("react/jsx-runtime");
136
+ function Avatar(_a) {
137
+ var _b = _a, {
138
+ className,
139
+ size = "default"
140
+ } = _b, props = __objRest(_b, [
141
+ "className",
142
+ "size"
143
+ ]);
144
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
145
+ import_avatar.Avatar.Root,
146
+ __spreadValues({
147
+ className: cn(
148
+ "group/avatar relative flex size-8 shrink-0 rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",
149
+ className
150
+ ),
151
+ "data-size": size,
152
+ "data-slot": "avatar"
153
+ }, props)
154
+ );
155
+ }
156
+ function AvatarImage(_a) {
157
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
158
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
159
+ import_avatar.Avatar.Image,
160
+ __spreadValues({
161
+ className: cn("aspect-square size-full rounded-full", className),
162
+ "data-slot": "avatar-image"
163
+ }, props)
164
+ );
165
+ }
166
+ function AvatarFallback(_a) {
167
+ var _b = _a, {
168
+ className
169
+ } = _b, props = __objRest(_b, [
170
+ "className"
171
+ ]);
172
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
173
+ import_avatar.Avatar.Fallback,
174
+ __spreadValues({
175
+ className: cn(
176
+ "flex size-full items-center justify-center rounded-full overflow-hidden bg-muted text-body-small font-sans text-muted-foreground group-data-[size=sm]/avatar:text-caption",
177
+ className
178
+ ),
179
+ "data-slot": "avatar-fallback"
180
+ }, props)
181
+ );
182
+ }
183
+
184
+ // src/components/ui/badge.tsx
185
+ var import_class_variance_authority = require("class-variance-authority");
186
+
187
+ // src/lib/slot.tsx
188
+ var React = __toESM(require("react"));
189
+ function mergeRefs(...refs) {
190
+ return (value) => {
191
+ for (const ref of refs) {
192
+ if (typeof ref === "function") ref(value);
193
+ else if (ref !== null)
194
+ ref.current = value;
195
+ }
196
+ };
197
+ }
198
+ var Slot = React.forwardRef(
199
+ (_a, forwardedRef) => {
200
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
201
+ const child = React.Children.only(children);
202
+ if (!React.isValidElement(child)) return null;
203
+ const childProps = child.props;
204
+ const merged = __spreadValues({}, props);
205
+ for (const key of Object.keys(childProps)) {
206
+ if (key === "className") {
207
+ merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
208
+ } else if (key === "style") {
209
+ merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
210
+ } else if (key.startsWith("on") && typeof childProps[key] === "function") {
211
+ const parentHandler = props[key];
212
+ if (typeof parentHandler === "function") {
213
+ merged[key] = (...args) => {
214
+ childProps[key](...args);
215
+ parentHandler(...args);
216
+ };
217
+ } else {
218
+ merged[key] = childProps[key];
219
+ }
220
+ } else {
221
+ merged[key] = childProps[key];
222
+ }
223
+ }
224
+ const childRef = child.ref;
225
+ merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
226
+ return React.cloneElement(
227
+ child,
228
+ merged
229
+ );
230
+ }
231
+ );
232
+ Slot.displayName = "Slot";
233
+
234
+ // src/components/ui/badge.tsx
235
+ var import_jsx_runtime2 = require("react/jsx-runtime");
236
+ var badgeVariants = (0, import_class_variance_authority.cva)(
237
+ "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",
238
+ {
239
+ variants: {
240
+ variant: {
241
+ default: "border-primary/40 bg-primary/10 text-foreground [a&]:hover:bg-primary/15",
242
+ secondary: "border-border bg-muted text-muted-foreground [a&]:hover:bg-muted/80",
243
+ destructive: "border-destructive/40 bg-destructive/10 text-destructive-text focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/15",
244
+ success: "border-success/40 bg-success/10 text-success-text [a&]:hover:bg-success/15",
245
+ warning: "border-warning/40 bg-warning/10 text-warning-text [a&]:hover:bg-warning/15",
246
+ info: "border-info/40 bg-info/10 text-info-text [a&]:hover:bg-info/15",
247
+ outline: "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
248
+ ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
249
+ link: "text-primary underline-offset-4 [a&]:hover:underline"
250
+ }
251
+ },
252
+ defaultVariants: {
253
+ variant: "default"
254
+ }
255
+ }
256
+ );
257
+ function Badge(_a) {
258
+ var _b = _a, {
259
+ className,
260
+ variant = "default",
261
+ asChild = false
262
+ } = _b, props = __objRest(_b, [
263
+ "className",
264
+ "variant",
265
+ "asChild"
266
+ ]);
267
+ const Comp = asChild ? Slot : "span";
268
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
269
+ Comp,
270
+ __spreadValues({
271
+ className: cn(badgeVariants({ variant }), className),
272
+ "data-slot": "badge",
273
+ "data-variant": variant
274
+ }, props)
275
+ );
276
+ }
277
+
278
+ // src/components/ui/button.tsx
279
+ var import_react = require("react");
280
+ var import_class_variance_authority2 = require("class-variance-authority");
281
+ var import_lucide_react = require("lucide-react");
282
+ var import_jsx_runtime3 = require("react/jsx-runtime");
283
+ var buttonVariants = (0, import_class_variance_authority2.cva)(
284
+ "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",
285
+ {
286
+ variants: {
287
+ variant: {
288
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
289
+ secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
290
+ 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",
291
+ outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:border-border focus-visible:ring-border/50 dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
292
+ "outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
293
+ "outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:border-brand-secondary focus-visible:ring-brand-secondary/30",
294
+ ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs focus-visible:ring-border/50 dark:hover:bg-accent/50",
295
+ link: "text-primary underline-offset-4 hover:underline"
296
+ },
297
+ size: {
298
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
299
+ xs: "h-6 gap-1 px-2 text-button-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
300
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
301
+ lg: "h-10 px-6 has-[>svg]:px-4",
302
+ icon: "size-9",
303
+ "icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
304
+ "icon-sm": "size-8",
305
+ "icon-lg": "size-10"
306
+ }
307
+ },
308
+ defaultVariants: {
309
+ variant: "default",
310
+ size: "default"
311
+ }
312
+ }
313
+ );
314
+ var Button = (0, import_react.forwardRef)(function Button2(_a, ref) {
315
+ var _b = _a, {
316
+ className,
317
+ variant,
318
+ size,
319
+ asChild = false,
320
+ loading = false,
321
+ disabled,
322
+ type = "button",
323
+ children
324
+ } = _b, props = __objRest(_b, [
325
+ "className",
326
+ "variant",
327
+ "size",
328
+ "asChild",
329
+ "loading",
330
+ "disabled",
331
+ "type",
332
+ "children"
333
+ ]);
334
+ const Comp = asChild ? Slot : "button";
335
+ const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
336
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
337
+ Comp,
338
+ __spreadProps(__spreadValues({
339
+ className: cn(buttonVariants({ variant, size, className })),
340
+ "data-size": size,
341
+ "data-slot": "button",
342
+ "data-variant": variant,
343
+ disabled: loading || disabled,
344
+ ref,
345
+ type
346
+ }, props), {
347
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
348
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
349
+ !isIconOnly && children
350
+ ] }) : children
351
+ })
352
+ );
353
+ });
354
+
355
+ // src/components/ui/card.tsx
356
+ var import_jsx_runtime4 = require("react/jsx-runtime");
357
+ function Card(_a) {
358
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
359
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
360
+ "div",
361
+ __spreadValues({
362
+ className: cn(
363
+ "flex flex-col gap-6 border bg-card py-6 text-card-foreground shadow-sm",
364
+ className
365
+ ),
366
+ "data-slot": "card"
367
+ }, props)
368
+ );
369
+ }
370
+ function CardContent(_a) {
371
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
372
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
373
+ "div",
374
+ __spreadValues({
375
+ className: cn("px-6", className),
376
+ "data-slot": "card-content"
377
+ }, props)
378
+ );
379
+ }
380
+
381
+ // src/components/ui/dialog.tsx
382
+ var import_lucide_react2 = require("lucide-react");
383
+ var import_dialog = require("@base-ui/react/dialog");
384
+
385
+ // src/lib/theme-provider.tsx
386
+ var import_react2 = require("react");
387
+ var import_jsx_runtime5 = require("react/jsx-runtime");
388
+ var ThemeVarsContext = (0, import_react2.createContext)({});
389
+ function useThemeVars() {
390
+ return (0, import_react2.useContext)(ThemeVarsContext);
391
+ }
392
+
393
+ // src/components/ui/dialog.tsx
394
+ var import_jsx_runtime6 = require("react/jsx-runtime");
395
+ function Dialog(_a) {
396
+ var props = __objRest(_a, []);
397
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.Dialog.Root, __spreadValues({ "data-slot": "dialog" }, props));
398
+ }
399
+ function DialogPortal(_a) {
400
+ var props = __objRest(_a, []);
401
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_dialog.Dialog.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
402
+ }
403
+ function DialogOverlay(_a) {
404
+ var _b = _a, {
405
+ className
406
+ } = _b, props = __objRest(_b, [
407
+ "className"
408
+ ]);
409
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
410
+ import_dialog.Dialog.Backdrop,
411
+ __spreadValues({
412
+ className: cn(
413
+ // WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
414
+ "fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
415
+ className
416
+ ),
417
+ "data-slot": "dialog-overlay"
418
+ }, props)
419
+ );
420
+ }
421
+ var DIALOG_MAX_WIDTHS = {
422
+ sm: "24rem",
423
+ md: "28rem",
424
+ lg: "32rem",
425
+ xl: "36rem",
426
+ "2xl": "42rem",
427
+ "3xl": "48rem",
428
+ "4xl": "56rem",
429
+ full: "100%"
430
+ };
431
+ var DIALOG_AUTO_MIN_WIDTH = "20rem";
432
+ function DialogContent(_a) {
433
+ var _b = _a, {
434
+ className,
435
+ children,
436
+ showCloseButton = true,
437
+ style,
438
+ container,
439
+ align = "center",
440
+ size = "lg",
441
+ minWidth
442
+ } = _b, props = __objRest(_b, [
443
+ "className",
444
+ "children",
445
+ "showCloseButton",
446
+ "style",
447
+ "container",
448
+ "align",
449
+ "size",
450
+ "minWidth"
451
+ ]);
452
+ const themeVars = useThemeVars();
453
+ const isAuto = size === "auto";
454
+ const sizeStyle = isAuto ? { minWidth: minWidth != null ? minWidth : DIALOG_AUTO_MIN_WIDTH } : { maxWidth: DIALOG_MAX_WIDTHS[size] };
455
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(DialogPortal, { container: container != null ? container : void 0, children: [
456
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogOverlay, { style: themeVars }),
457
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
458
+ import_dialog.Dialog.Popup,
459
+ __spreadProps(__spreadValues({
460
+ className: cn(
461
+ // WealthX: removed rounded-lg (sharp corners), shadow-lg (flat panels)
462
+ // max-w-[calc(100%-2rem)] acts as a viewport-edge guard on all sizes.
463
+ // Fixed max-width is applied via inline style (sizeStyle) to avoid
464
+ // Tailwind v4 class-scanning gaps with dynamic class lookups.
465
+ "fixed left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] gap-4 border bg-background p-6 duration-200 outline-none data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
466
+ // "auto" → hug content (with min-width floor); fixed sizes → fill to max-width
467
+ isAuto ? "w-auto" : "w-full",
468
+ align === "center" ? "top-[50%] translate-y-[-50%]" : "top-4 translate-y-0",
469
+ className
470
+ ),
471
+ "data-slot": "dialog-content",
472
+ style: __spreadValues(__spreadValues(__spreadValues({}, themeVars), sizeStyle), style)
473
+ }, props), {
474
+ children: [
475
+ children,
476
+ showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
477
+ import_dialog.Dialog.Close,
478
+ {
479
+ className: "absolute top-4 right-4 inline-flex size-7 items-center justify-center transition-colors hover:bg-foreground/5 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-border focus-visible:ring-offset-0 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
480
+ "data-slot": "dialog-close",
481
+ children: [
482
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.XIcon, {}),
483
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "sr-only", children: "Close" })
484
+ ]
485
+ }
486
+ ) : null
487
+ ]
488
+ })
489
+ )
490
+ ] });
491
+ }
492
+ function DialogHeader(_a) {
493
+ var _b = _a, {
494
+ className
495
+ } = _b, props = __objRest(_b, [
496
+ "className"
497
+ ]);
498
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
499
+ "div",
500
+ __spreadValues({
501
+ className: cn("flex flex-col gap-1.5", className),
502
+ "data-slot": "dialog-header"
503
+ }, props)
504
+ );
505
+ }
506
+ function DialogFooter(_a) {
507
+ var _b = _a, {
508
+ className,
509
+ showCloseButton = false,
510
+ children
511
+ } = _b, props = __objRest(_b, [
512
+ "className",
513
+ "showCloseButton",
514
+ "children"
515
+ ]);
516
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
517
+ "div",
518
+ __spreadProps(__spreadValues({
519
+ className: cn(
520
+ // WealthX: always row layout, right-aligned, separator above footer
521
+ "flex flex-row justify-end gap-2 border-t border-border pt-4",
522
+ className
523
+ ),
524
+ "data-slot": "dialog-footer"
525
+ }, props), {
526
+ children: [
527
+ children,
528
+ showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
529
+ import_dialog.Dialog.Close,
530
+ {
531
+ className: cn(buttonVariants({ variant: "outline" })),
532
+ type: "button",
533
+ children: "Close"
534
+ }
535
+ ) : null
536
+ ]
537
+ })
538
+ );
539
+ }
540
+ function DialogTitle(_a) {
541
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
542
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
543
+ import_dialog.Dialog.Title,
544
+ __spreadValues({
545
+ className: cn("text-h5 leading-none", className),
546
+ "data-slot": "dialog-title"
547
+ }, props)
548
+ );
549
+ }
550
+ function DialogDescription(_a) {
551
+ var _b = _a, {
552
+ className
553
+ } = _b, props = __objRest(_b, [
554
+ "className"
555
+ ]);
556
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
557
+ import_dialog.Dialog.Description,
558
+ __spreadValues({
559
+ className: cn("text-body-small text-muted-foreground", className),
560
+ "data-slot": "dialog-description"
561
+ }, props)
562
+ );
563
+ }
564
+
565
+ // src/components/ui/switch.tsx
566
+ var import_react3 = require("react");
567
+ var import_switch = require("@base-ui/react/switch");
568
+ var import_jsx_runtime7 = require("react/jsx-runtime");
569
+ function Switch(_a) {
570
+ var _b = _a, {
571
+ className,
572
+ size = "default"
573
+ } = _b, props = __objRest(_b, [
574
+ "className",
575
+ "size"
576
+ ]);
577
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
578
+ import_switch.Switch.Root,
579
+ __spreadProps(__spreadValues({
580
+ className: cn(
581
+ "peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none",
582
+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
583
+ "disabled:cursor-not-allowed disabled:opacity-50",
584
+ "data-[size=default]:h-[1.15rem] data-[size=default]:w-8",
585
+ "data-[size=sm]:h-3.5 data-[size=sm]:w-6",
586
+ "data-checked:bg-primary data-unchecked:bg-input",
587
+ "aria-invalid:data-checked:bg-destructive aria-invalid:border-destructive",
588
+ "dark:data-unchecked:bg-input/80",
589
+ className
590
+ ),
591
+ "data-size": size,
592
+ "data-slot": "switch"
593
+ }, props), {
594
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
595
+ import_switch.Switch.Thumb,
596
+ {
597
+ className: cn(
598
+ "pointer-events-none block rounded-full bg-background ring-0 transition-transform",
599
+ "group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3",
600
+ "data-checked:translate-x-[calc(100%-2px)] data-unchecked:translate-x-0",
601
+ "dark:data-checked:bg-primary-foreground dark:data-unchecked:bg-foreground"
602
+ ),
603
+ "data-slot": "switch-thumb"
604
+ }
605
+ )
606
+ })
607
+ );
608
+ }
609
+
610
+ // src/components/ui/ai-builder.tsx
611
+ var import_jsx_runtime8 = require("react/jsx-runtime");
612
+ var AGENT_FEATURES = [
613
+ {
614
+ title: "Lead Capture",
615
+ description: "Automatically collect and qualify leads from website visitors."
616
+ },
617
+ {
618
+ title: "Initial Engagement",
619
+ description: "Instantly respond to inquiries with personalised mortgage guidance."
620
+ },
621
+ {
622
+ title: "Smart Follow-Up",
623
+ description: "Re-engage cold leads with timely, context-aware follow-up messages."
624
+ },
625
+ {
626
+ title: "Appointment Scheduling",
627
+ description: "Book qualified leads directly into advisor calendars without manual coordination."
628
+ },
629
+ {
630
+ title: "Performance Tracking",
631
+ description: "Monitor agent activity, response rates, and conversion metrics."
632
+ }
633
+ ];
634
+ function AgentCard({
635
+ agent,
636
+ onToggle,
637
+ onMenuClick,
638
+ className
639
+ }) {
640
+ const { id, title, description, tags, isEnabled, infoBadge, isComingSoon } = agent;
641
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
642
+ Card,
643
+ {
644
+ className: cn(
645
+ "flex flex-col gap-3 p-4 transition-opacity",
646
+ isComingSoon && "opacity-60",
647
+ className
648
+ ),
649
+ children: [
650
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
651
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-1 items-center gap-2 min-w-0", children: [
652
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
653
+ "span",
654
+ {
655
+ className: cn(
656
+ "mt-0.5 size-2 shrink-0 rounded-full",
657
+ isEnabled && !isComingSoon ? "bg-success" : "bg-muted-foreground/40"
658
+ )
659
+ }
660
+ ),
661
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "truncate text-sm font-semibold leading-tight", children: title }),
662
+ isComingSoon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Badge, { variant: "outline", className: "shrink-0 text-xs", children: "Coming Soon" })
663
+ ] }),
664
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex shrink-0 items-center gap-1", children: [
665
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
666
+ Switch,
667
+ {
668
+ checked: isEnabled,
669
+ disabled: isComingSoon,
670
+ onCheckedChange: (checked) => onToggle(id, checked),
671
+ "aria-label": `Toggle ${title}`
672
+ }
673
+ ),
674
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
675
+ Button,
676
+ {
677
+ variant: "ghost",
678
+ size: "icon",
679
+ className: "h-7 w-7",
680
+ onClick: () => onMenuClick(id),
681
+ "aria-label": `View details for ${title}`,
682
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.MoreHorizontal, { className: "h-4 w-4" })
683
+ }
684
+ )
685
+ ] })
686
+ ] }),
687
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-muted-foreground text-xs leading-relaxed flex-1", children: description }),
688
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-2", children: [
689
+ infoBadge && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "bg-info/10 text-info px-2 py-1 text-xs", children: infoBadge }),
690
+ tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex flex-wrap gap-1", children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Badge, { variant: "secondary", className: "text-xs", children: tag }, tag)) })
691
+ ] })
692
+ ]
693
+ }
694
+ );
695
+ }
696
+ function AgentMenuModal({
697
+ open,
698
+ onOpenChange,
699
+ agentTitle,
700
+ description = "AI-powered lead management that works around the clock to grow your mortgage business.",
701
+ features = AGENT_FEATURES
702
+ }) {
703
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Dialog, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(DialogContent, { className: "max-w-lg", align: "top", children: [
704
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(DialogHeader, { children: [
705
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DialogTitle, { children: agentTitle }),
706
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DialogDescription, { children: description })
707
+ ] }),
708
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex flex-col gap-3 py-2", children: features.map((feature, index) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex gap-3", children: [
709
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
710
+ Badge,
711
+ {
712
+ variant: "default",
713
+ className: "h-6 w-6 shrink-0 p-0 text-xs font-bold",
714
+ children: index + 1
715
+ }
716
+ ),
717
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-0.5", children: [
718
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-sm font-semibold", children: feature.title }),
719
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-muted-foreground text-xs leading-relaxed", children: feature.description })
720
+ ] })
721
+ ] }, feature.title)) })
722
+ ] }) });
723
+ }
724
+ function IntegrationServiceCard({
725
+ title,
726
+ imageUrl,
727
+ iconNode,
728
+ description,
729
+ isConnected,
730
+ onCardClick,
731
+ onSettingsClick,
732
+ className
733
+ }) {
734
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
735
+ Card,
736
+ {
737
+ className: cn(
738
+ "flex flex-col gap-3 p-4",
739
+ !isConnected && "cursor-pointer transition-colors hover:bg-accent/50",
740
+ className
741
+ ),
742
+ onClick: !isConnected ? onCardClick : void 0,
743
+ children: [
744
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-start gap-3", children: [
745
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Avatar, { className: "h-10 w-10 shrink-0", children: [
746
+ imageUrl && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AvatarImage, { src: imageUrl, alt: title }),
747
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AvatarFallback, { className: iconNode ? "bg-transparent p-0.5" : "", children: iconNode != null ? iconNode : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.User, { className: "h-5 w-5" }) })
748
+ ] }),
749
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2", children: [
750
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-base font-semibold", children: title }),
751
+ isConnected && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Badge, { variant: "success", className: "gap-1 text-xs", children: [
752
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.CheckCircle2, { className: "h-3 w-3" }),
753
+ "Connected"
754
+ ] })
755
+ ] }) }),
756
+ isConnected && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
757
+ Button,
758
+ {
759
+ variant: "ghost",
760
+ size: "icon",
761
+ className: "h-7 w-7 shrink-0",
762
+ onClick: (e) => {
763
+ e.stopPropagation();
764
+ onSettingsClick();
765
+ },
766
+ "aria-label": `Settings for ${title}`,
767
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Settings, { className: "h-4 w-4" })
768
+ }
769
+ )
770
+ ] }),
771
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-sm leading-relaxed text-muted-foreground", children: description })
772
+ ]
773
+ }
774
+ );
775
+ }
776
+ function IntegrationInstructionCard({
777
+ title,
778
+ codeBlock,
779
+ onCopy,
780
+ className
781
+ }) {
782
+ const [copied, setCopied] = (0, import_react4.useState)(false);
783
+ const handleCopy = () => __async(null, null, function* () {
784
+ try {
785
+ yield navigator.clipboard.writeText(codeBlock);
786
+ setCopied(true);
787
+ onCopy == null ? void 0 : onCopy();
788
+ setTimeout(() => setCopied(false), 2e3);
789
+ } catch (e) {
790
+ }
791
+ });
792
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Card, { className: cn("flex flex-col gap-3 p-4", className), children: [
793
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
794
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { className: "text-sm font-semibold", children: title }),
795
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
796
+ Button,
797
+ {
798
+ variant: "outline",
799
+ size: "sm",
800
+ className: "h-7 gap-1.5 text-xs",
801
+ onClick: handleCopy,
802
+ children: copied ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
803
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Check, { className: "h-3 w-3" }),
804
+ "Copied"
805
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
806
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Copy, { className: "h-3 w-3" }),
807
+ "Copy"
808
+ ] })
809
+ }
810
+ )
811
+ ] }),
812
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("pre", { className: "bg-muted overflow-x-auto p-3 text-xs leading-relaxed", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("code", { children: codeBlock }) })
813
+ ] });
814
+ }
815
+ function ServiceConfigurationModal({
816
+ open,
817
+ onOpenChange,
818
+ serviceTitle,
819
+ isConnected,
820
+ serviceData,
821
+ iconNode,
822
+ connectPermissions,
823
+ connectDescription = "Link your account to enable automated workflows with WealthX.",
824
+ onConnect,
825
+ onDisconnect,
826
+ onReconnect
827
+ }) {
828
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Dialog, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DialogContent, { className: "max-w-md", align: "top", children: isConnected ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
829
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(DialogHeader, { children: [
830
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DialogTitle, { children: serviceTitle }),
831
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DialogDescription, { children: "Manage your integration settings." })
832
+ ] }),
833
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-4 py-2", children: [
834
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2 px-3 py-2 text-xs font-medium bg-success/10 text-success", children: [
835
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.CheckCircle2, { className: "h-3.5 w-3.5 shrink-0" }),
836
+ "Active \u2014 integration is running"
837
+ ] }),
838
+ serviceData && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
839
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-2", children: [
840
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-muted-foreground text-xs font-medium uppercase tracking-wide", children: "Account Information" }),
841
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Card, { className: "py-0", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(CardContent, { className: "flex flex-col gap-3 p-3", children: [
842
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2 text-xs", children: [
843
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.User, { className: "text-muted-foreground h-3.5 w-3.5 shrink-0" }),
844
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "text-muted-foreground", children: [
845
+ serviceData.accountIdentifierLabel,
846
+ ":"
847
+ ] }),
848
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "font-medium", children: serviceData.accountIdentifier })
849
+ ] }),
850
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2 text-xs", children: [
851
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Clock, { className: "text-muted-foreground h-3.5 w-3.5 shrink-0" }),
852
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-muted-foreground", children: "Connected on:" }),
853
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "font-medium", children: serviceData.connectedOn })
854
+ ] }),
855
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2 text-xs", children: [
856
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Clock, { className: "text-muted-foreground h-3.5 w-3.5 shrink-0" }),
857
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-muted-foreground", children: "Last synced:" }),
858
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "font-medium", children: serviceData.lastSynced })
859
+ ] })
860
+ ] }) })
861
+ ] }),
862
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-2", children: [
863
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-muted-foreground text-xs font-medium uppercase tracking-wide", children: "Granted Permissions" }),
864
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Card, { className: "py-0", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CardContent, { className: "flex flex-col gap-2 p-3", children: serviceData.permissions.map((permission) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
865
+ "div",
866
+ {
867
+ className: "flex items-center gap-2 text-xs",
868
+ children: [
869
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Shield, { className: "text-success h-3.5 w-3.5 shrink-0" }),
870
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: permission })
871
+ ]
872
+ },
873
+ permission
874
+ )) }) })
875
+ ] }),
876
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-2", children: [
877
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-muted-foreground text-xs font-medium uppercase tracking-wide", children: "Sync Settings" }),
878
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Card, { className: "py-0", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(CardContent, { className: "flex items-center justify-between gap-3 p-3", children: [
879
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-0.5", children: [
880
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-sm font-medium", children: serviceData.syncLabel }),
881
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-muted-foreground text-xs", children: serviceData.syncDescription })
882
+ ] }),
883
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
884
+ Switch,
885
+ {
886
+ checked: serviceData.syncEnabled,
887
+ onCheckedChange: serviceData.onSyncToggle,
888
+ "aria-label": serviceData.syncLabel
889
+ }
890
+ )
891
+ ] }) })
892
+ ] })
893
+ ] })
894
+ ] }),
895
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(DialogFooter, { children: [
896
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
897
+ Button,
898
+ {
899
+ variant: "destructive",
900
+ size: "sm",
901
+ onClick: onDisconnect,
902
+ className: "mr-auto",
903
+ children: "Disconnect"
904
+ }
905
+ ),
906
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
907
+ Button,
908
+ {
909
+ variant: "outline-secondary",
910
+ size: "sm",
911
+ onClick: () => onOpenChange(false),
912
+ children: "Cancel"
913
+ }
914
+ ),
915
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { size: "sm", onClick: onReconnect, children: "Reconnect" })
916
+ ] })
917
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
918
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-4 py-2", children: [
919
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-3", children: [
920
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex h-10 w-10 shrink-0 items-center justify-center bg-muted", children: iconNode != null ? iconNode : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Mail, { className: "h-5 w-5 text-muted-foreground" }) }),
921
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-0.5", children: [
922
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("p", { className: "text-sm font-semibold", children: [
923
+ "Connect ",
924
+ serviceTitle
925
+ ] }),
926
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-muted-foreground text-xs", children: connectDescription })
927
+ ] })
928
+ ] }),
929
+ connectPermissions && connectPermissions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-2 border border-border px-4 py-3", children: [
930
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide", children: "Permissions requested" }),
931
+ connectPermissions.map((perm) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2", children: [
932
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Check, { className: "h-3.5 w-3.5 shrink-0 text-success" }),
933
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-sm text-muted-foreground", children: perm })
934
+ ] }, perm))
935
+ ] })
936
+ ] }),
937
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(DialogFooter, { children: [
938
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
939
+ Button,
940
+ {
941
+ variant: "outline-secondary",
942
+ size: "sm",
943
+ onClick: () => onOpenChange(false),
944
+ children: "Cancel"
945
+ }
946
+ ),
947
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { size: "sm", onClick: onConnect, children: "Connect" })
948
+ ] })
949
+ ] }) }) });
950
+ }
951
+ // Annotate the CommonJS export names for ESM import in node:
952
+ 0 && (module.exports = {
953
+ AgentCard,
954
+ AgentMenuModal,
955
+ IntegrationInstructionCard,
956
+ IntegrationServiceCard,
957
+ ServiceConfigurationModal
958
+ });