@salesmind-ai/design-system 0.6.0 → 0.7.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 (257) hide show
  1. package/README.md +2 -0
  2. package/dist/Anton-Regular-MLEXVTB2.woff2 +0 -0
  3. package/dist/admin/index.cjs +5 -61
  4. package/dist/admin/index.css +0 -3918
  5. package/dist/admin/index.css.map +1 -1
  6. package/dist/admin/index.d.cts +1 -422
  7. package/dist/admin/index.d.ts +1 -422
  8. package/dist/admin/index.js +1 -5
  9. package/dist/blog/index.cjs +13 -34
  10. package/dist/blog/index.css +0 -579
  11. package/dist/blog/index.css.map +1 -1
  12. package/dist/blog/index.d.cts +1 -54
  13. package/dist/blog/index.d.ts +1 -54
  14. package/dist/blog/index.js +5 -6
  15. package/dist/charts/index.cjs +0 -46
  16. package/dist/charts/index.d.cts +1 -452
  17. package/dist/charts/index.d.ts +1 -452
  18. package/dist/charts/index.js +1 -3
  19. package/dist/{chunk-HDVAMYSG.js → chunk-27Y5ESMM.js} +7 -2
  20. package/dist/chunk-27Y5ESMM.js.map +1 -0
  21. package/dist/{chunk-YTYDQBVY.cjs → chunk-2VVRZBUR.cjs} +4 -4
  22. package/dist/{chunk-GQELL2MF.cjs → chunk-3NS6X2R4.cjs} +20 -203
  23. package/dist/chunk-3NS6X2R4.cjs.map +1 -0
  24. package/dist/{chunk-XEX2AEZK.cjs → chunk-65DTHLVX.cjs} +66 -186
  25. package/dist/chunk-65DTHLVX.cjs.map +1 -0
  26. package/dist/{chunk-QALDZ7WQ.js → chunk-6BUS7RMS.js} +21 -198
  27. package/dist/chunk-6BUS7RMS.js.map +1 -0
  28. package/dist/{chunk-BJZ2DKS5.cjs → chunk-6QIQCUYC.cjs} +11 -10
  29. package/dist/chunk-6QIQCUYC.cjs.map +1 -0
  30. package/dist/{chunk-H2Y6BSTL.cjs → chunk-7EUR3AKV.cjs} +1 -1
  31. package/dist/chunk-7EUR3AKV.cjs.map +1 -0
  32. package/dist/{chunk-VFJZQQZU.js → chunk-AMNY5TS3.js} +11 -10
  33. package/dist/chunk-AMNY5TS3.js.map +1 -0
  34. package/dist/{chunk-YJ6C3EKW.js → chunk-CLXLQCNQ.js} +52 -168
  35. package/dist/chunk-CLXLQCNQ.js.map +1 -0
  36. package/dist/{chunk-H2KQ3WSH.cjs → chunk-CVLD5RQK.cjs} +12 -14
  37. package/dist/chunk-CVLD5RQK.cjs.map +1 -0
  38. package/dist/chunk-EPD4ZEPY.cjs +344 -0
  39. package/dist/chunk-EPD4ZEPY.cjs.map +1 -0
  40. package/dist/chunk-FXYOSA4E.cjs +118 -0
  41. package/dist/chunk-FXYOSA4E.cjs.map +1 -0
  42. package/dist/{chunk-ECXBTUH6.cjs → chunk-GPHQGLR5.cjs} +27 -204
  43. package/dist/chunk-GPHQGLR5.cjs.map +1 -0
  44. package/dist/{chunk-Y26OHHMX.js → chunk-HHQ6J7B6.js} +513 -888
  45. package/dist/chunk-HHQ6J7B6.js.map +1 -0
  46. package/dist/chunk-JPUJWI7F.cjs +73 -0
  47. package/dist/chunk-JPUJWI7F.cjs.map +1 -0
  48. package/dist/{chunk-6UNG76Y2.js → chunk-K526GN7P.js} +2 -2
  49. package/dist/{chunk-SICKWUWB.js → chunk-KJHPOB3J.js} +1 -1
  50. package/dist/chunk-KJHPOB3J.js.map +1 -0
  51. package/dist/chunk-KXVFFEGD.js +60 -0
  52. package/dist/chunk-KXVFFEGD.js.map +1 -0
  53. package/dist/chunk-LQB7QLD3.js +288 -0
  54. package/dist/chunk-LQB7QLD3.js.map +1 -0
  55. package/dist/chunk-LUD52ZJF.cjs +726 -0
  56. package/dist/chunk-LUD52ZJF.cjs.map +1 -0
  57. package/dist/{chunk-7UZ5DETZ.js → chunk-MBAG654R.js} +4 -216
  58. package/dist/chunk-MBAG654R.js.map +1 -0
  59. package/dist/chunk-OMP6FAZ6.cjs +183 -0
  60. package/dist/chunk-OMP6FAZ6.cjs.map +1 -0
  61. package/dist/{chunk-WYH4TKS5.js → chunk-PBYRTNQ5.js} +6 -8
  62. package/dist/chunk-PBYRTNQ5.js.map +1 -0
  63. package/dist/chunk-PYREXCZK.js +679 -0
  64. package/dist/chunk-PYREXCZK.js.map +1 -0
  65. package/dist/{chunk-6D22TFLA.cjs → chunk-R3ZECV5P.cjs} +9 -4
  66. package/dist/chunk-R3ZECV5P.cjs.map +1 -0
  67. package/dist/{chunk-P5BOFE5A.js → chunk-RSLA2FJN.js} +28 -183
  68. package/dist/chunk-RSLA2FJN.js.map +1 -0
  69. package/dist/chunk-S46SKHMD.js +173 -0
  70. package/dist/chunk-S46SKHMD.js.map +1 -0
  71. package/dist/chunk-SFXTB7JL.js +190 -0
  72. package/dist/chunk-SFXTB7JL.js.map +1 -0
  73. package/dist/chunk-SGYXYMKZ.cjs +214 -0
  74. package/dist/chunk-SGYXYMKZ.cjs.map +1 -0
  75. package/dist/chunk-UGKYP6F3.cjs +296 -0
  76. package/dist/chunk-UGKYP6F3.cjs.map +1 -0
  77. package/dist/chunk-WB6XDNU7.js +115 -0
  78. package/dist/chunk-WB6XDNU7.js.map +1 -0
  79. package/dist/{chunk-LTPTW2US.cjs → chunk-WE4QIIVN.cjs} +592 -974
  80. package/dist/chunk-WE4QIIVN.cjs.map +1 -0
  81. package/dist/core/index.cjs +144 -626
  82. package/dist/core/index.css +178 -3567
  83. package/dist/core/index.css.map +1 -1
  84. package/dist/core/index.d.cts +940 -902
  85. package/dist/core/index.d.ts +940 -902
  86. package/dist/core/index.js +6 -12
  87. package/dist/i18n/index.cjs +54 -49
  88. package/dist/i18n/index.d.cts +46 -11
  89. package/dist/i18n/index.d.ts +46 -11
  90. package/dist/i18n/index.js +2 -1
  91. package/dist/index-BJ8rBqrO.d.cts +1100 -0
  92. package/dist/index-BxMqCbqE.d.ts +1100 -0
  93. package/dist/index.cjs +507 -1001
  94. package/dist/index.cjs.map +1 -1
  95. package/dist/index.css +6057 -16713
  96. package/dist/index.css.map +1 -1
  97. package/dist/index.d.cts +306 -21
  98. package/dist/index.d.ts +306 -21
  99. package/dist/index.js +274 -39
  100. package/dist/index.js.map +1 -1
  101. package/dist/marketing/index.cjs +33 -76
  102. package/dist/marketing/index.css +1896 -3234
  103. package/dist/marketing/index.css.map +1 -1
  104. package/dist/marketing/index.d.cts +3 -1351
  105. package/dist/marketing/index.d.ts +3 -1351
  106. package/dist/marketing/index.js +5 -8
  107. package/dist/motion/index.cjs +3 -20
  108. package/dist/motion/index.css +0 -580
  109. package/dist/motion/index.css.map +1 -1
  110. package/dist/motion/index.d.cts +1 -37
  111. package/dist/motion/index.d.ts +1 -37
  112. package/dist/motion/index.js +1 -2
  113. package/dist/nav/index.cjs +10 -35
  114. package/dist/nav/index.css +28 -580
  115. package/dist/nav/index.css.map +1 -1
  116. package/dist/nav/index.d.cts +2 -60
  117. package/dist/nav/index.d.ts +2 -60
  118. package/dist/nav/index.js +1 -2
  119. package/dist/report/index.cjs +1166 -175
  120. package/dist/report/index.cjs.map +1 -1
  121. package/dist/report/index.d.cts +208 -5
  122. package/dist/report/index.d.ts +208 -5
  123. package/dist/report/index.js +1141 -3
  124. package/dist/report/index.js.map +1 -1
  125. package/dist/sections/index.cjs +8 -10
  126. package/dist/sections/index.cjs.map +1 -1
  127. package/dist/sections/index.css +0 -206
  128. package/dist/sections/index.css.map +1 -1
  129. package/dist/sections/index.js +2 -4
  130. package/dist/sections/index.js.map +1 -1
  131. package/dist/social-media/index.cjs +4 -0
  132. package/dist/social-media/index.cjs.map +1 -0
  133. package/dist/social-media/index.d.cts +2 -0
  134. package/dist/social-media/index.d.ts +2 -0
  135. package/dist/social-media/index.js +3 -0
  136. package/dist/social-media/index.js.map +1 -0
  137. package/dist/social-proof/index.cjs +4 -36
  138. package/dist/social-proof/index.css +3 -1106
  139. package/dist/social-proof/index.css.map +1 -1
  140. package/dist/social-proof/index.d.cts +26 -171
  141. package/dist/social-proof/index.d.ts +26 -171
  142. package/dist/social-proof/index.js +1 -5
  143. package/dist/styles/styles.css +657 -2990
  144. package/dist/theme/index.cjs +12 -16
  145. package/dist/theme/index.css +1 -245
  146. package/dist/theme/index.css.map +1 -1
  147. package/dist/theme/index.d.cts +4 -1
  148. package/dist/theme/index.d.ts +4 -1
  149. package/dist/theme/index.js +2 -2
  150. package/dist/web/client/index.cjs +10 -10
  151. package/dist/web/client/index.css +118 -0
  152. package/dist/web/client/index.css.map +1 -1
  153. package/dist/web/client/index.js +2 -2
  154. package/dist/web/index.cjs +10 -10
  155. package/dist/web/index.css +118 -0
  156. package/dist/web/index.css.map +1 -1
  157. package/dist/web/index.js +2 -2
  158. package/package.json +10 -4
  159. package/dist/AppearancePanel-UT57J69V.d.cts +0 -51
  160. package/dist/AppearancePanel-UT57J69V.d.ts +0 -51
  161. package/dist/ExportMenu-A2TLFiVv.d.cts +0 -311
  162. package/dist/ExportMenu-C8qck5AT.d.ts +0 -311
  163. package/dist/Select-BdZmK0Lt.d.cts +0 -66
  164. package/dist/Select-BdZmK0Lt.d.ts +0 -66
  165. package/dist/chart-types-BGVVO-zl.d.cts +0 -208
  166. package/dist/chart-types-BGVVO-zl.d.ts +0 -208
  167. package/dist/charts/index.css +0 -1167
  168. package/dist/charts/index.css.map +0 -1
  169. package/dist/chunk-3BAQDW3V.cjs +0 -1207
  170. package/dist/chunk-3BAQDW3V.cjs.map +0 -1
  171. package/dist/chunk-3NKRFUAR.js +0 -37
  172. package/dist/chunk-3NKRFUAR.js.map +0 -1
  173. package/dist/chunk-3TGSIILM.cjs +0 -201
  174. package/dist/chunk-3TGSIILM.cjs.map +0 -1
  175. package/dist/chunk-4GM5BGBN.cjs +0 -801
  176. package/dist/chunk-4GM5BGBN.cjs.map +0 -1
  177. package/dist/chunk-5LA3T22E.cjs +0 -562
  178. package/dist/chunk-5LA3T22E.cjs.map +0 -1
  179. package/dist/chunk-5SN66B2X.js +0 -2542
  180. package/dist/chunk-5SN66B2X.js.map +0 -1
  181. package/dist/chunk-6D22TFLA.cjs.map +0 -1
  182. package/dist/chunk-6H4DSTXR.js +0 -786
  183. package/dist/chunk-6H4DSTXR.js.map +0 -1
  184. package/dist/chunk-6HKQ5ILL.cjs +0 -1624
  185. package/dist/chunk-6HKQ5ILL.cjs.map +0 -1
  186. package/dist/chunk-7PX2AZ6Y.js +0 -39
  187. package/dist/chunk-7PX2AZ6Y.js.map +0 -1
  188. package/dist/chunk-7UZ5DETZ.js.map +0 -1
  189. package/dist/chunk-B6AVAX4F.js +0 -1415
  190. package/dist/chunk-B6AVAX4F.js.map +0 -1
  191. package/dist/chunk-BJZ2DKS5.cjs.map +0 -1
  192. package/dist/chunk-BUTQSDQH.js +0 -200
  193. package/dist/chunk-BUTQSDQH.js.map +0 -1
  194. package/dist/chunk-C2BCDNAV.js +0 -24
  195. package/dist/chunk-C2BCDNAV.js.map +0 -1
  196. package/dist/chunk-CJ2MKVAF.cjs +0 -46
  197. package/dist/chunk-CJ2MKVAF.cjs.map +0 -1
  198. package/dist/chunk-E7D6EKJ4.cjs +0 -44
  199. package/dist/chunk-E7D6EKJ4.cjs.map +0 -1
  200. package/dist/chunk-ECXBTUH6.cjs.map +0 -1
  201. package/dist/chunk-FAFAP4L5.js +0 -183
  202. package/dist/chunk-FAFAP4L5.js.map +0 -1
  203. package/dist/chunk-G2XGBO5V.cjs +0 -2565
  204. package/dist/chunk-G2XGBO5V.cjs.map +0 -1
  205. package/dist/chunk-GQELL2MF.cjs.map +0 -1
  206. package/dist/chunk-H2KQ3WSH.cjs.map +0 -1
  207. package/dist/chunk-H2Y6BSTL.cjs.map +0 -1
  208. package/dist/chunk-HCZW5AJN.cjs +0 -234
  209. package/dist/chunk-HCZW5AJN.cjs.map +0 -1
  210. package/dist/chunk-HDVAMYSG.js.map +0 -1
  211. package/dist/chunk-HN4PHABT.js +0 -126
  212. package/dist/chunk-HN4PHABT.js.map +0 -1
  213. package/dist/chunk-LTPTW2US.cjs.map +0 -1
  214. package/dist/chunk-MDB2WCRQ.cjs +0 -137
  215. package/dist/chunk-MDB2WCRQ.cjs.map +0 -1
  216. package/dist/chunk-MQRB634A.cjs +0 -34
  217. package/dist/chunk-MQRB634A.cjs.map +0 -1
  218. package/dist/chunk-NN3TUHIH.js +0 -28
  219. package/dist/chunk-NN3TUHIH.js.map +0 -1
  220. package/dist/chunk-OWS2KAXZ.js +0 -701
  221. package/dist/chunk-OWS2KAXZ.js.map +0 -1
  222. package/dist/chunk-P5BOFE5A.js.map +0 -1
  223. package/dist/chunk-PUPSK3DI.cjs +0 -216
  224. package/dist/chunk-PUPSK3DI.cjs.map +0 -1
  225. package/dist/chunk-Q2MFGYTE.cjs +0 -1449
  226. package/dist/chunk-Q2MFGYTE.cjs.map +0 -1
  227. package/dist/chunk-Q75DBVDY.cjs +0 -68
  228. package/dist/chunk-Q75DBVDY.cjs.map +0 -1
  229. package/dist/chunk-QALDZ7WQ.js.map +0 -1
  230. package/dist/chunk-QWE2RNCS.js +0 -1195
  231. package/dist/chunk-QWE2RNCS.js.map +0 -1
  232. package/dist/chunk-RQUFZAZ7.js +0 -1608
  233. package/dist/chunk-RQUFZAZ7.js.map +0 -1
  234. package/dist/chunk-SICKWUWB.js.map +0 -1
  235. package/dist/chunk-TCFC7XTB.js +0 -212
  236. package/dist/chunk-TCFC7XTB.js.map +0 -1
  237. package/dist/chunk-UTVXGAQP.cjs +0 -2437
  238. package/dist/chunk-UTVXGAQP.cjs.map +0 -1
  239. package/dist/chunk-UVEMY3FQ.cjs +0 -717
  240. package/dist/chunk-UVEMY3FQ.cjs.map +0 -1
  241. package/dist/chunk-VFJZQQZU.js.map +0 -1
  242. package/dist/chunk-WH7PYHZY.cjs +0 -35
  243. package/dist/chunk-WH7PYHZY.cjs.map +0 -1
  244. package/dist/chunk-WYH4TKS5.js.map +0 -1
  245. package/dist/chunk-XEX2AEZK.cjs.map +0 -1
  246. package/dist/chunk-XPTVHPCN.js +0 -2320
  247. package/dist/chunk-XPTVHPCN.js.map +0 -1
  248. package/dist/chunk-XWPDRMZG.js +0 -62
  249. package/dist/chunk-XWPDRMZG.js.map +0 -1
  250. package/dist/chunk-Y26OHHMX.js.map +0 -1
  251. package/dist/chunk-YJ6C3EKW.js.map +0 -1
  252. package/dist/motion-C651Ry6d.d.cts +0 -832
  253. package/dist/motion-C651Ry6d.d.ts +0 -832
  254. package/dist/report/index.css +0 -1239
  255. package/dist/report/index.css.map +0 -1
  256. /package/dist/{chunk-6UNG76Y2.js.map → chunk-2VVRZBUR.cjs.map} +0 -0
  257. /package/dist/{chunk-YTYDQBVY.cjs.map → chunk-K526GN7P.js.map} +0 -0
@@ -1,2542 +0,0 @@
1
- import { Checkbox } from './chunk-7PX2AZ6Y.js';
2
- import { TextField } from './chunk-3NKRFUAR.js';
3
- import { Button } from './chunk-SICKWUWB.js';
4
- import { OutboundLink } from './chunk-KJ2OXQF4.js';
5
- import React4, { useState, useEffect, useMemo } from 'react';
6
- import clsx4 from 'clsx';
7
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
8
-
9
- var Sidebar = React4.forwardRef(
10
- ({ position = "left", width = 280, collapsed = false, className, children }, ref) => {
11
- const style = {
12
- "--sidebar-width": typeof width === "number" ? `${width}px` : width
13
- };
14
- return /* @__PURE__ */ jsx(
15
- "aside",
16
- {
17
- ref,
18
- className: clsx4(
19
- "ds-sidebar",
20
- `ds-sidebar--${position}`,
21
- collapsed && "ds-sidebar--collapsed",
22
- className
23
- ),
24
- style,
25
- children: /* @__PURE__ */ jsx("div", { className: "ds-sidebar__content", children })
26
- }
27
- );
28
- }
29
- );
30
- Sidebar.displayName = "Sidebar";
31
- var SidebarSection = React4.forwardRef(
32
- ({ title, className, children }, ref) => {
33
- return /* @__PURE__ */ jsxs("div", { ref, className: clsx4("ds-sidebar__section", className), children: [
34
- title && /* @__PURE__ */ jsx("h3", { className: "ds-sidebar__section-title", children: title }),
35
- children
36
- ] });
37
- }
38
- );
39
- SidebarSection.displayName = "SidebarSection";
40
- var SidebarItem = React4.forwardRef(
41
- ({ active = false, icon, onClick, className, children }, ref) => {
42
- return /* @__PURE__ */ jsxs(
43
- "button",
44
- {
45
- ref,
46
- className: clsx4("ds-sidebar__item", active && "ds-sidebar__item--active", className),
47
- onClick,
48
- type: "button",
49
- children: [
50
- icon && /* @__PURE__ */ jsx("span", { className: "ds-sidebar__item-icon", children: icon }),
51
- /* @__PURE__ */ jsx("span", { className: "ds-sidebar__item-label", children })
52
- ]
53
- }
54
- );
55
- }
56
- );
57
- SidebarItem.displayName = "SidebarItem";
58
- var FloatingTabBar = React4.forwardRef(
59
- ({ position = "bottom", className, children }, ref) => {
60
- return /* @__PURE__ */ jsx(
61
- "nav",
62
- {
63
- ref,
64
- className: clsx4("ds-floating-tab-bar", `ds-floating-tab-bar--${position}`, className),
65
- role: "tablist",
66
- children
67
- }
68
- );
69
- }
70
- );
71
- FloatingTabBar.displayName = "FloatingTabBar";
72
- var TabItem = React4.forwardRef(
73
- ({ active = false, icon, label, onClick, className }, ref) => {
74
- return /* @__PURE__ */ jsxs(
75
- "button",
76
- {
77
- ref,
78
- className: clsx4("ds-tab-item", active && "ds-tab-item--active", className),
79
- onClick,
80
- role: "tab",
81
- "aria-selected": active,
82
- type: "button",
83
- children: [
84
- icon && /* @__PURE__ */ jsx("span", { className: "ds-tab-item__icon", children: icon }),
85
- label && /* @__PURE__ */ jsx("span", { className: "ds-tab-item__label", children: label })
86
- ]
87
- }
88
- );
89
- }
90
- );
91
- TabItem.displayName = "TabItem";
92
- var HomeIcon = () => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
93
- /* @__PURE__ */ jsx("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
94
- /* @__PURE__ */ jsx("polyline", { points: "9,22 9,12 15,12 15,22" })
95
- ] });
96
- var ChartIcon = () => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
97
- /* @__PURE__ */ jsx("line", { x1: "18", y1: "20", x2: "18", y2: "10" }),
98
- /* @__PURE__ */ jsx("line", { x1: "12", y1: "20", x2: "12", y2: "4" }),
99
- /* @__PURE__ */ jsx("line", { x1: "6", y1: "20", x2: "6", y2: "14" })
100
- ] });
101
- var UsersIcon = () => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
102
- /* @__PURE__ */ jsx("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
103
- /* @__PURE__ */ jsx("circle", { cx: "9", cy: "7", r: "4" }),
104
- /* @__PURE__ */ jsx("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
105
- /* @__PURE__ */ jsx("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
106
- ] });
107
- var SettingsIcon = () => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, children: [
108
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" }),
109
- /* @__PURE__ */ jsx("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" })
110
- ] });
111
- var DEFAULT_NAV_ITEMS = [
112
- { key: "dashboard", label: "Dashboard", icon: /* @__PURE__ */ jsx(HomeIcon, {}) },
113
- { key: "analytics", label: "Analytics", icon: /* @__PURE__ */ jsx(ChartIcon, {}) },
114
- { key: "contacts", label: "Contacts", icon: /* @__PURE__ */ jsx(UsersIcon, {}) },
115
- { key: "settings", label: "Settings", icon: /* @__PURE__ */ jsx(SettingsIcon, {}) }
116
- ];
117
- function getNavFromDocument() {
118
- if (typeof document === "undefined") return "left";
119
- const nav = document.documentElement.getAttribute("data-nav");
120
- if (nav === "left" || nav === "right" || nav === "bottom") {
121
- return nav;
122
- }
123
- return "left";
124
- }
125
- var Shell = React4.forwardRef(
126
- ({
127
- layout,
128
- className,
129
- children,
130
- navItems = DEFAULT_NAV_ITEMS,
131
- activeNav = "dashboard",
132
- onNavChange,
133
- systemSectionTitle = "System"
134
- }, ref) => {
135
- const [computedLayout, setComputedLayout] = useState(
136
- layout || getNavFromDocument()
137
- );
138
- useEffect(() => {
139
- if (layout) {
140
- setComputedLayout(layout);
141
- return;
142
- }
143
- if (typeof document === "undefined") return;
144
- const observer = new MutationObserver((mutations) => {
145
- mutations.forEach((mutation) => {
146
- if (mutation.type === "attributes" && mutation.attributeName === "data-nav") {
147
- setComputedLayout(getNavFromDocument());
148
- }
149
- });
150
- });
151
- observer.observe(document.documentElement, {
152
- attributes: true,
153
- attributeFilter: ["data-nav"]
154
- });
155
- setComputedLayout(getNavFromDocument());
156
- return () => observer.disconnect();
157
- }, [layout]);
158
- const handleNavClick = (key) => {
159
- onNavChange?.(key);
160
- };
161
- return /* @__PURE__ */ jsxs(
162
- "div",
163
- {
164
- ref,
165
- className: clsx4("ds-shell", `ds-shell--${computedLayout}`, className),
166
- "data-shell-layout": computedLayout,
167
- children: [
168
- (computedLayout === "left" || computedLayout === "right") && /* @__PURE__ */ jsxs(Sidebar, { position: computedLayout, children: [
169
- /* @__PURE__ */ jsx(SidebarSection, { children: navItems.slice(0, 3).map((item) => /* @__PURE__ */ jsx(
170
- SidebarItem,
171
- {
172
- icon: item.icon,
173
- active: activeNav === item.key,
174
- onClick: () => handleNavClick(item.key),
175
- children: item.label
176
- },
177
- item.key
178
- )) }),
179
- navItems.length > 3 && /* @__PURE__ */ jsx(SidebarSection, { title: systemSectionTitle, children: navItems.slice(3).map((item) => /* @__PURE__ */ jsx(
180
- SidebarItem,
181
- {
182
- icon: item.icon,
183
- active: activeNav === item.key,
184
- onClick: () => handleNavClick(item.key),
185
- children: item.label
186
- },
187
- item.key
188
- )) })
189
- ] }),
190
- computedLayout === "bottom" && /* @__PURE__ */ jsx(FloatingTabBar, { position: "bottom", children: navItems.map((item) => /* @__PURE__ */ jsx(
191
- TabItem,
192
- {
193
- icon: item.icon,
194
- label: item.label,
195
- active: activeNav === item.key,
196
- onClick: () => handleNavClick(item.key)
197
- },
198
- item.key
199
- )) }),
200
- /* @__PURE__ */ jsx("main", { className: "ds-shell__content", children })
201
- ]
202
- }
203
- );
204
- }
205
- );
206
- Shell.displayName = "Shell";
207
- var DataTable = React4.forwardRef(
208
- ({ className, children, ...props }, ref) => {
209
- return /* @__PURE__ */ jsx("div", { className: "ds-data-table-container", children: /* @__PURE__ */ jsx("table", { ref, className: clsx4("ds-data-table", className), ...props, children }) });
210
- }
211
- );
212
- DataTable.displayName = "DataTable";
213
- var DataTableHeader = React4.forwardRef(({ className, ...props }, ref) => {
214
- return /* @__PURE__ */ jsx("thead", { ref, className: clsx4("ds-data-table__header", className), ...props });
215
- });
216
- DataTableHeader.displayName = "DataTableHeader";
217
- var DataTableBody = React4.forwardRef(({ className, ...props }, ref) => {
218
- return /* @__PURE__ */ jsx("tbody", { ref, className: clsx4("ds-data-table__body", className), ...props });
219
- });
220
- DataTableBody.displayName = "DataTableBody";
221
- var DataTableRow = React4.forwardRef(({ className, ...props }, ref) => {
222
- return /* @__PURE__ */ jsx("tr", { ref, className: clsx4("ds-data-table__row", className), ...props });
223
- });
224
- DataTableRow.displayName = "DataTableRow";
225
- var DataTableHead = React4.forwardRef(({ className, ...props }, ref) => {
226
- return /* @__PURE__ */ jsx("th", { ref, className: clsx4("ds-data-table__head", className), ...props });
227
- });
228
- DataTableHead.displayName = "DataTableHead";
229
- var DataTableCell = React4.forwardRef(({ className, ...props }, ref) => {
230
- return /* @__PURE__ */ jsx("td", { ref, className: clsx4("ds-data-table__cell", className), ...props });
231
- });
232
- DataTableCell.displayName = "DataTableCell";
233
- var defaultLoginLabels = {
234
- continueWithGoogleLabel: "Continue with Google",
235
- orContinueWithEmailLabel: "or continue with email",
236
- emailPlaceholder: "you@company.com",
237
- passwordPlaceholder: "Enter your password",
238
- signInLabel: "Sign in",
239
- doNotHaveAnAccountLabel: "Don't have an account?",
240
- emailLabel: "Email",
241
- passwordLabel: "Password",
242
- rememberMeLabel: "Remember me",
243
- forgotPasswordLabel: "Forgot password?",
244
- signUpLabel: "Sign up",
245
- trustedByLabel: "Trusted by 500+ sales teams worldwide"
246
- };
247
- var Login = ({
248
- brandName,
249
- tagline = "AI Sales Agents that automate your pipeline",
250
- labels: customLabels,
251
- showSocialLogin = true,
252
- showRememberMe = true,
253
- showForgotPassword = true,
254
- showSignUp = true,
255
- logo,
256
- onSubmit,
257
- onGoogleLogin,
258
- onForgotPassword,
259
- onSignUp,
260
- isLoading = false,
261
- error,
262
- className,
263
- style
264
- }) => {
265
- const l = { ...defaultLoginLabels, ...customLabels };
266
- const [email, setEmail] = useState("");
267
- const [password, setPassword] = useState("");
268
- const [showPassword, setShowPassword] = useState(false);
269
- const [rememberMe, setRememberMe] = useState(false);
270
- const handleSubmit = (e) => {
271
- e.preventDefault();
272
- onSubmit?.({ email, password, rememberMe });
273
- };
274
- return /* @__PURE__ */ jsxs("div", { className: clsx4("ds-login", className), style, children: [
275
- /* @__PURE__ */ jsxs("div", { className: "ds-login__background", children: [
276
- /* @__PURE__ */ jsx("div", { className: "ds-login__accent ds-login__accent--1", "aria-hidden": "true" }),
277
- /* @__PURE__ */ jsx("div", { className: "ds-login__accent ds-login__accent--2", "aria-hidden": "true" })
278
- ] }),
279
- /* @__PURE__ */ jsxs("div", { className: "ds-login__card", children: [
280
- /* @__PURE__ */ jsxs("div", { className: "ds-login__header", children: [
281
- logo ? /* @__PURE__ */ jsx("div", { className: "ds-login__logo", children: logo }) : /* @__PURE__ */ jsx("div", { className: "ds-login__logo ds-login__logo--default", children: /* @__PURE__ */ jsx("div", { className: "ds-login__logo-icon", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
282
- /* @__PURE__ */ jsx("rect", { width: "32", height: "32", rx: "8", fill: "url(#logo-gradient)" }),
283
- /* @__PURE__ */ jsx(
284
- "path",
285
- {
286
- d: "M10 16L14 20L22 12",
287
- stroke: "white",
288
- strokeWidth: "2.5",
289
- strokeLinecap: "round",
290
- strokeLinejoin: "round"
291
- }
292
- ),
293
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "logo-gradient", x1: "0", y1: "0", x2: "32", y2: "32", children: [
294
- /* @__PURE__ */ jsx("stop", { stopColor: "rgb(var(--accent-rgb))" }),
295
- /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "rgb(var(--accent2-rgb))" })
296
- ] }) })
297
- ] }) }) }),
298
- /* @__PURE__ */ jsx("h1", { className: "ds-login__title", children: brandName }),
299
- /* @__PURE__ */ jsx("p", { className: "ds-login__tagline", children: tagline })
300
- ] }),
301
- error && /* @__PURE__ */ jsxs("div", { className: "ds-login__error", children: [
302
- /* @__PURE__ */ jsxs(
303
- "svg",
304
- {
305
- width: "16",
306
- height: "16",
307
- viewBox: "0 0 16 16",
308
- fill: "none",
309
- xmlns: "http://www.w3.org/2000/svg",
310
- children: [
311
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7", stroke: "currentColor", strokeWidth: "1.5" }),
312
- /* @__PURE__ */ jsx("path", { d: "M8 4.5V8.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }),
313
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "11", r: "0.75", fill: "currentColor" })
314
- ]
315
- }
316
- ),
317
- /* @__PURE__ */ jsx("span", { children: error })
318
- ] }),
319
- showSocialLogin && /* @__PURE__ */ jsxs("div", { className: "ds-login__social", children: [
320
- /* @__PURE__ */ jsxs(
321
- "button",
322
- {
323
- type: "button",
324
- className: "ds-login__social-btn",
325
- onClick: onGoogleLogin,
326
- disabled: isLoading,
327
- children: [
328
- /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", width: "20", height: "20", children: [
329
- /* @__PURE__ */ jsx(
330
- "path",
331
- {
332
- fill: "#4285F4",
333
- d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
334
- }
335
- ),
336
- /* @__PURE__ */ jsx(
337
- "path",
338
- {
339
- fill: "#34A853",
340
- d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
341
- }
342
- ),
343
- /* @__PURE__ */ jsx(
344
- "path",
345
- {
346
- fill: "#FBBC05",
347
- d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
348
- }
349
- ),
350
- /* @__PURE__ */ jsx(
351
- "path",
352
- {
353
- fill: "#EA4335",
354
- d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"
355
- }
356
- )
357
- ] }),
358
- /* @__PURE__ */ jsx("span", { children: l.continueWithGoogleLabel })
359
- ]
360
- }
361
- ),
362
- /* @__PURE__ */ jsx("div", { className: "ds-login__divider", children: /* @__PURE__ */ jsx("span", { children: l.orContinueWithEmailLabel }) })
363
- ] }),
364
- /* @__PURE__ */ jsxs("form", { className: "ds-login__form", onSubmit: handleSubmit, children: [
365
- /* @__PURE__ */ jsx("div", { className: "ds-login__field", children: /* @__PURE__ */ jsx(
366
- TextField,
367
- {
368
- label: l.emailLabel,
369
- type: "email",
370
- placeholder: l.emailPlaceholder,
371
- value: email,
372
- onChange: (e) => setEmail(e.target.value),
373
- disabled: isLoading,
374
- autoComplete: "email"
375
- }
376
- ) }),
377
- /* @__PURE__ */ jsx("div", { className: "ds-login__field", children: /* @__PURE__ */ jsx(
378
- TextField,
379
- {
380
- label: l.passwordLabel,
381
- type: showPassword ? "text" : "password",
382
- placeholder: l.passwordPlaceholder,
383
- value: password,
384
- onChange: (e) => setPassword(e.target.value),
385
- disabled: isLoading,
386
- autoComplete: "current-password",
387
- endAdornment: /* @__PURE__ */ jsx(
388
- "button",
389
- {
390
- type: "button",
391
- className: "ds-login__password-toggle",
392
- onClick: () => setShowPassword(!showPassword),
393
- "aria-label": showPassword ? "Hide password" : "Show password",
394
- children: showPassword ? /* @__PURE__ */ jsxs(
395
- "svg",
396
- {
397
- width: "20",
398
- height: "20",
399
- viewBox: "0 0 24 24",
400
- fill: "none",
401
- stroke: "currentColor",
402
- strokeWidth: "2",
403
- strokeLinecap: "round",
404
- strokeLinejoin: "round",
405
- children: [
406
- /* @__PURE__ */ jsx("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }),
407
- /* @__PURE__ */ jsx("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
408
- ]
409
- }
410
- ) : /* @__PURE__ */ jsxs(
411
- "svg",
412
- {
413
- width: "20",
414
- height: "20",
415
- viewBox: "0 0 24 24",
416
- fill: "none",
417
- stroke: "currentColor",
418
- strokeWidth: "2",
419
- strokeLinecap: "round",
420
- strokeLinejoin: "round",
421
- children: [
422
- /* @__PURE__ */ jsx("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
423
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" })
424
- ]
425
- }
426
- )
427
- }
428
- )
429
- }
430
- ) }),
431
- /* @__PURE__ */ jsxs("div", { className: "ds-login__options", children: [
432
- showRememberMe && /* @__PURE__ */ jsx(
433
- Checkbox,
434
- {
435
- label: l.rememberMeLabel,
436
- checked: rememberMe,
437
- onCheckedChange: (checked) => setRememberMe(checked === true),
438
- disabled: isLoading
439
- }
440
- ),
441
- showForgotPassword && /* @__PURE__ */ jsx(
442
- "button",
443
- {
444
- type: "button",
445
- className: "ds-login__link",
446
- onClick: onForgotPassword,
447
- disabled: isLoading,
448
- children: l.forgotPasswordLabel
449
- }
450
- )
451
- ] }),
452
- /* @__PURE__ */ jsx(
453
- Button,
454
- {
455
- type: "submit",
456
- variant: "primary",
457
- size: "lg",
458
- disabled: isLoading || !email || !password,
459
- className: "ds-login__submit",
460
- children: isLoading ? /* @__PURE__ */ jsx("span", { className: "ds-login__spinner" }) : l.signInLabel
461
- }
462
- )
463
- ] }),
464
- showSignUp && /* @__PURE__ */ jsxs("div", { className: "ds-login__footer", children: [
465
- /* @__PURE__ */ jsx("span", { children: l.doNotHaveAnAccountLabel }),
466
- /* @__PURE__ */ jsx(
467
- "button",
468
- {
469
- type: "button",
470
- className: "ds-login__link ds-login__link--accent",
471
- onClick: onSignUp,
472
- disabled: isLoading,
473
- children: l.signUpLabel
474
- }
475
- )
476
- ] })
477
- ] })
478
- ] });
479
- };
480
- Login.displayName = "Login";
481
- var defaultChangeEmailLabels = {
482
- changeEmailTitle: "Change Email",
483
- enterNewEmailAndCurrentPasswordTagline: "Enter you new email and the current password.",
484
- newEmailLabel: "New Email *",
485
- currentPasswordLabel: "Current Password *",
486
- forgotPasswordButton: "Forgot password?",
487
- continueButton: "Continue"
488
- };
489
- var ChangeEmail = ({
490
- labels: customLabels,
491
- logo,
492
- onSubmit,
493
- isLoading = false,
494
- error,
495
- className,
496
- style
497
- }) => {
498
- const l = { ...defaultChangeEmailLabels, ...customLabels };
499
- const [newEmail, setNewEmail] = useState("");
500
- const [currentPassword, setCurrentPassword] = useState("");
501
- const [showPassword, setShowPassword] = useState(false);
502
- const handleSubmit = (e) => {
503
- e.preventDefault();
504
- onSubmit?.({ newEmail, currentPassword });
505
- };
506
- return /* @__PURE__ */ jsx("div", { className: clsx4("ds-change-email", className), style, children: /* @__PURE__ */ jsxs("div", { className: "ds-change-email__container", children: [
507
- /* @__PURE__ */ jsx("div", { className: "ds-change-email__accent ds-change-email__accent--1", "aria-hidden": "true" }),
508
- /* @__PURE__ */ jsx("div", { className: "ds-change-email__accent ds-change-email__accent--2", "aria-hidden": "true" }),
509
- /* @__PURE__ */ jsxs("div", { className: "ds-change-email__card", children: [
510
- /* @__PURE__ */ jsxs("div", { className: "ds-change-email__header", children: [
511
- logo ? /* @__PURE__ */ jsx("div", { className: "ds-change-email__logo", children: logo }) : /* @__PURE__ */ jsx("div", { className: "ds-change-email__logo ds-change-email__logo--default", children: /* @__PURE__ */ jsx("div", { className: "ds-change-email__logo-icon", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
512
- /* @__PURE__ */ jsx("rect", { width: "32", height: "32", rx: "8", fill: "url(#logo-gradient)" }),
513
- /* @__PURE__ */ jsx(
514
- "path",
515
- {
516
- d: "M10 16L14 20L22 12",
517
- stroke: "white",
518
- strokeWidth: "2.5",
519
- strokeLinecap: "round",
520
- strokeLinejoin: "round"
521
- }
522
- ),
523
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "logo-gradient", x1: "0", y1: "0", x2: "32", y2: "32", children: [
524
- /* @__PURE__ */ jsx("stop", { stopColor: "rgb(var(--accent-rgb))" }),
525
- /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "rgb(var(--accent2-rgb))" })
526
- ] }) })
527
- ] }) }) }),
528
- /* @__PURE__ */ jsx("h1", { className: "ds-change-email__title", children: l.changeEmailTitle }),
529
- /* @__PURE__ */ jsx("p", { className: "ds-change-email__tagline", children: l.enterNewEmailAndCurrentPasswordTagline })
530
- ] }),
531
- error && /* @__PURE__ */ jsxs("div", { className: "ds-change-email__error", children: [
532
- /* @__PURE__ */ jsxs(
533
- "svg",
534
- {
535
- width: "16",
536
- height: "16",
537
- viewBox: "0 0 16 16",
538
- fill: "none",
539
- xmlns: "http://www.w3.org/2000/svg",
540
- children: [
541
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7", stroke: "currentColor", strokeWidth: "1.5" }),
542
- /* @__PURE__ */ jsx("path", { d: "M8 4.5V8.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }),
543
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "11", r: "0.75", fill: "currentColor" })
544
- ]
545
- }
546
- ),
547
- /* @__PURE__ */ jsx("span", { children: error })
548
- ] }),
549
- /* @__PURE__ */ jsxs("form", { className: "ds-change-email__form", onSubmit: handleSubmit, children: [
550
- /* @__PURE__ */ jsx("div", { className: "ds-change-email__field", children: /* @__PURE__ */ jsx(
551
- TextField,
552
- {
553
- label: l.newEmailLabel,
554
- type: "email",
555
- placeholder: "",
556
- value: newEmail,
557
- onChange: (e) => setNewEmail(e.target.value),
558
- disabled: isLoading,
559
- autoComplete: "email"
560
- }
561
- ) }),
562
- /* @__PURE__ */ jsx("div", { className: "ds-change-email__field", children: /* @__PURE__ */ jsx(
563
- TextField,
564
- {
565
- label: l.currentPasswordLabel,
566
- type: showPassword ? "text" : "password",
567
- placeholder: "",
568
- value: currentPassword,
569
- onChange: (e) => setCurrentPassword(e.target.value),
570
- disabled: isLoading,
571
- autoComplete: "current-password",
572
- endAdornment: /* @__PURE__ */ jsx(
573
- "button",
574
- {
575
- type: "button",
576
- className: "ds-change-email__password-toggle",
577
- onClick: () => setShowPassword(!showPassword),
578
- "aria-label": showPassword ? "Hide password" : "Show password",
579
- children: showPassword ? /* @__PURE__ */ jsxs(
580
- "svg",
581
- {
582
- width: "20",
583
- height: "20",
584
- viewBox: "0 0 24 24",
585
- fill: "none",
586
- stroke: "currentColor",
587
- strokeWidth: "2",
588
- strokeLinecap: "round",
589
- strokeLinejoin: "round",
590
- children: [
591
- /* @__PURE__ */ jsx("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }),
592
- /* @__PURE__ */ jsx("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
593
- ]
594
- }
595
- ) : /* @__PURE__ */ jsxs(
596
- "svg",
597
- {
598
- width: "20",
599
- height: "20",
600
- viewBox: "0 0 24 24",
601
- fill: "none",
602
- stroke: "currentColor",
603
- strokeWidth: "2",
604
- strokeLinecap: "round",
605
- strokeLinejoin: "round",
606
- children: [
607
- /* @__PURE__ */ jsx("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
608
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" })
609
- ]
610
- }
611
- )
612
- }
613
- )
614
- }
615
- ) }),
616
- /* @__PURE__ */ jsx("div", { className: "ds-change-email__options", style: { display: "flex", justifyContent: "flex-end", marginTop: "-8px" }, children: /* @__PURE__ */ jsx(
617
- "button",
618
- {
619
- type: "button",
620
- className: "ds-change-email__link",
621
- onClick: () => console.log("Forgot password clicked"),
622
- disabled: isLoading,
623
- style: {
624
- background: "none",
625
- border: "none",
626
- color: "var(--text-secondary)",
627
- cursor: "pointer",
628
- fontSize: "0.875rem"
629
- },
630
- children: l.forgotPasswordButton
631
- }
632
- ) }),
633
- /* @__PURE__ */ jsx("div", { style: { marginTop: "24px" }, children: /* @__PURE__ */ jsx(
634
- Button,
635
- {
636
- type: "submit",
637
- variant: "primary",
638
- size: "lg",
639
- disabled: isLoading || !newEmail || !currentPassword,
640
- className: "ds-change-email__submit",
641
- children: isLoading ? /* @__PURE__ */ jsx("span", { className: "ds-change-email__spinner" }) : l.continueButton
642
- }
643
- ) })
644
- ] })
645
- ] })
646
- ] }) });
647
- };
648
- ChangeEmail.displayName = "Change Email";
649
- var defaultSignupLabels = {
650
- formTitle: "Create your account",
651
- googleButtonLabel: "Sign up with Google",
652
- dividerText: "or sign up with email",
653
- nameLabel: "Full name",
654
- namePlaceholder: "John Doe",
655
- emailLabel: "Work email",
656
- emailPlaceholder: "you@company.com",
657
- passwordLabel: "Password",
658
- passwordPlaceholder: "Create a strong password",
659
- phoneLabel: "Phone",
660
- phonePlaceholder: "Phone number",
661
- hidePasswordLabel: "Hide password",
662
- showPasswordLabel: "Show password",
663
- passwordStrengthLabels: ["Very Weak", "Weak", "Fair", "Strong", "Very Strong"],
664
- termsAgreementPrefix: "I agree to the ",
665
- termsLabel: "Terms of Service ",
666
- termsConjunction: "and ",
667
- privacyLabel: "Privacy Policy",
668
- submitLabel: "Create account",
669
- loginPrompt: "Already have an account?",
670
- loginLabel: "Sign in",
671
- successTitle: "Welcome!",
672
- continueToLoginLabel: "Go to Application"
673
- };
674
- function calculatePasswordStrength(password, strengthLabels) {
675
- let score = 0;
676
- if (password.length >= 8) score++;
677
- if (password.length >= 12) score++;
678
- if (/[a-z]/.test(password) && /[A-Z]/.test(password)) score++;
679
- if (/\d/.test(password)) score++;
680
- if (/[!@#$%^&*(),.?":{}|<>]/.test(password)) score++;
681
- score = Math.min(4, score);
682
- const labels = strengthLabels ?? defaultSignupLabels.passwordStrengthLabels;
683
- const colors = [
684
- "var(--status-error)",
685
- "var(--status-warning)",
686
- "#ffd000",
687
- "var(--status-success)",
688
- "var(--status-success)"
689
- ];
690
- return {
691
- score,
692
- label: labels[score],
693
- color: colors[score]
694
- };
695
- }
696
- var Signup = ({
697
- brandName,
698
- showSocialSignup = true,
699
- logo,
700
- onSubmit,
701
- onGoogleSignup,
702
- onLogin,
703
- onTermsClick,
704
- onPrivacyClick,
705
- isLoading = false,
706
- error,
707
- isSuccess = false,
708
- successMessage = /* @__PURE__ */ jsxs(Fragment, { children: [
709
- "You're all set!",
710
- /* @__PURE__ */ jsx("br", {}),
711
- "Check your email to verify your account."
712
- ] }),
713
- className,
714
- style,
715
- labels: customLabels,
716
- defaultCountry = "TH",
717
- countries = [],
718
- renderPhoneInput
719
- }) => {
720
- const l = { ...defaultSignupLabels, ...customLabels };
721
- const [name, setName] = useState("");
722
- const [email, setEmail] = useState("");
723
- const defaultCountryData = countries.find((c) => c.code === defaultCountry) || countries[0] || { dial: "+66"};
724
- const [countryDial, setCountryDial] = useState(defaultCountryData.dial);
725
- const [phone, setPhone] = useState("");
726
- const [password, setPassword] = useState("");
727
- const [showPassword, setShowPassword] = useState(false);
728
- const [acceptedTerms, setAcceptedTerms] = useState(false);
729
- const passwordStrength = useMemo(
730
- () => calculatePasswordStrength(password, l.passwordStrengthLabels),
731
- [password, l.passwordStrengthLabels]
732
- );
733
- const handleSubmit = (e) => {
734
- e.preventDefault();
735
- const fullPhone = phone ? phone.trim().startsWith("+") ? phone.trim() : `${countryDial} ${phone}`.trim() : "";
736
- onSubmit?.({ name, email, phone: fullPhone, password, acceptedTerms });
737
- };
738
- const isFormValid = name && email && password.length >= 8 && acceptedTerms;
739
- if (isSuccess) {
740
- return /* @__PURE__ */ jsxs("div", { className: clsx4("ds-signup", className), style, children: [
741
- /* @__PURE__ */ jsxs("div", { className: "ds-signup__background", children: [
742
- /* @__PURE__ */ jsx("div", { className: "ds-signup__accent ds-signup__accent--1", "aria-hidden": "true" }),
743
- /* @__PURE__ */ jsx("div", { className: "ds-signup__accent ds-signup__accent--2", "aria-hidden": "true" })
744
- ] }),
745
- /* @__PURE__ */ jsxs("div", { className: "ds-signup__card ds-signup__card--success", children: [
746
- /* @__PURE__ */ jsx("div", { className: "ds-signup__success-icon", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
747
- /* @__PURE__ */ jsx("circle", { cx: "32", cy: "32", r: "30", stroke: "var(--status-success)", strokeWidth: "2" }),
748
- /* @__PURE__ */ jsx(
749
- "path",
750
- {
751
- d: "M20 32L28 40L44 24",
752
- stroke: "var(--status-success)",
753
- strokeWidth: "3",
754
- strokeLinecap: "round",
755
- strokeLinejoin: "round"
756
- }
757
- )
758
- ] }) }),
759
- /* @__PURE__ */ jsx("h1", { className: "ds-signup__success-title", children: l.successTitle === "Welcome!" ? brandName ? `Welcome to ${brandName}!` : "Welcome!" : l.successTitle }),
760
- /* @__PURE__ */ jsx("p", { className: "ds-signup__success-message", children: successMessage }),
761
- /* @__PURE__ */ jsx(Button, { variant: "primary", size: "lg", onClick: onLogin, className: "ds-signup__success-btn", children: l.continueToLoginLabel })
762
- ] })
763
- ] });
764
- }
765
- return /* @__PURE__ */ jsxs("div", { className: clsx4("ds-signup", className), style, children: [
766
- /* @__PURE__ */ jsxs("div", { className: "ds-signup__background", children: [
767
- /* @__PURE__ */ jsx("div", { className: "ds-signup__accent ds-signup__accent--1", "aria-hidden": "true" }),
768
- /* @__PURE__ */ jsx("div", { className: "ds-signup__accent ds-signup__accent--2", "aria-hidden": "true" })
769
- ] }),
770
- /* @__PURE__ */ jsxs("div", { className: "ds-signup__card", children: [
771
- /* @__PURE__ */ jsxs("div", { className: "ds-signup__header", children: [
772
- logo ? /* @__PURE__ */ jsx("div", { className: "ds-signup__logo", children: logo }) : /* @__PURE__ */ jsx("div", { className: "ds-signup__logo ds-signup__logo--default", children: /* @__PURE__ */ jsx("div", { className: "ds-signup__logo-icon", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
773
- /* @__PURE__ */ jsx("rect", { width: "32", height: "32", rx: "8", fill: "url(#signup-logo-gradient)" }),
774
- /* @__PURE__ */ jsx(
775
- "path",
776
- {
777
- d: "M16 8V24M8 16H24",
778
- stroke: "white",
779
- strokeWidth: "2.5",
780
- strokeLinecap: "round"
781
- }
782
- ),
783
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "signup-logo-gradient", x1: "0", y1: "0", x2: "32", y2: "32", children: [
784
- /* @__PURE__ */ jsx("stop", { stopColor: "rgb(var(--accent-rgb))" }),
785
- /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "rgb(var(--accent2-rgb))" })
786
- ] }) })
787
- ] }) }) }),
788
- /* @__PURE__ */ jsx("h1", { className: "ds-signup__title", children: l.formTitle })
789
- ] }),
790
- error && /* @__PURE__ */ jsxs("div", { className: "ds-signup__error", children: [
791
- /* @__PURE__ */ jsxs(
792
- "svg",
793
- {
794
- width: "16",
795
- height: "16",
796
- viewBox: "0 0 16 16",
797
- fill: "none",
798
- xmlns: "http://www.w3.org/2000/svg",
799
- children: [
800
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7", stroke: "currentColor", strokeWidth: "1.5" }),
801
- /* @__PURE__ */ jsx("path", { d: "M8 4.5V8.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }),
802
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "11", r: "0.75", fill: "currentColor" })
803
- ]
804
- }
805
- ),
806
- /* @__PURE__ */ jsx("span", { children: error })
807
- ] }),
808
- showSocialSignup && /* @__PURE__ */ jsxs("div", { className: "ds-signup__social", children: [
809
- /* @__PURE__ */ jsxs(
810
- "button",
811
- {
812
- type: "button",
813
- className: "ds-signup__social-btn",
814
- onClick: onGoogleSignup,
815
- disabled: isLoading,
816
- children: [
817
- /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", width: "20", height: "20", children: [
818
- /* @__PURE__ */ jsx(
819
- "path",
820
- {
821
- fill: "#4285F4",
822
- d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
823
- }
824
- ),
825
- /* @__PURE__ */ jsx(
826
- "path",
827
- {
828
- fill: "#34A853",
829
- d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
830
- }
831
- ),
832
- /* @__PURE__ */ jsx(
833
- "path",
834
- {
835
- fill: "#FBBC05",
836
- d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
837
- }
838
- ),
839
- /* @__PURE__ */ jsx(
840
- "path",
841
- {
842
- fill: "#EA4335",
843
- d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"
844
- }
845
- )
846
- ] }),
847
- /* @__PURE__ */ jsx("span", { children: l.googleButtonLabel })
848
- ]
849
- }
850
- ),
851
- /* @__PURE__ */ jsx("div", { className: "ds-signup__divider", children: /* @__PURE__ */ jsx("span", { children: l.dividerText }) })
852
- ] }),
853
- /* @__PURE__ */ jsxs("form", { className: "ds-signup__form", onSubmit: handleSubmit, children: [
854
- /* @__PURE__ */ jsx("div", { className: "ds-signup__field", children: /* @__PURE__ */ jsx(
855
- TextField,
856
- {
857
- label: l.nameLabel,
858
- type: "text",
859
- placeholder: l.namePlaceholder,
860
- value: name,
861
- onChange: (e) => setName(e.target.value),
862
- disabled: isLoading,
863
- autoComplete: "name"
864
- }
865
- ) }),
866
- /* @__PURE__ */ jsx("div", { className: "ds-signup__field", children: /* @__PURE__ */ jsx(
867
- TextField,
868
- {
869
- label: l.emailLabel,
870
- type: "email",
871
- placeholder: l.emailPlaceholder,
872
- value: email,
873
- onChange: (e) => setEmail(e.target.value),
874
- disabled: isLoading,
875
- autoComplete: "email"
876
- }
877
- ) }),
878
- /* @__PURE__ */ jsx("div", { className: "ds-signup__field ds-signup__phone-field", children: /* @__PURE__ */ jsxs("div", { className: "ds-textfield", children: [
879
- /* @__PURE__ */ jsx("label", { className: "ds-textfield__label", htmlFor: "phone-input", children: l.phoneLabel }),
880
- /* @__PURE__ */ jsx("div", { className: "ds-textfield__input-wrapper", children: renderPhoneInput ? renderPhoneInput({
881
- value: phone,
882
- onChange: setPhone,
883
- placeholder: l.phonePlaceholder,
884
- disabled: isLoading,
885
- className: "ds-signup__phone-container ds-textfield__input",
886
- id: "phone-input"
887
- }) : /* @__PURE__ */ jsxs("div", { className: clsx4("ds-signup__phone-container", "ds-textfield__input"), children: [
888
- /* @__PURE__ */ jsxs("div", { className: "ds-signup__flag-select-wrapper", children: [
889
- /* @__PURE__ */ jsx(
890
- "select",
891
- {
892
- className: "ds-signup__flag-select-native",
893
- value: countryDial,
894
- onChange: (e) => {
895
- const newDial = e.target.value;
896
- setCountryDial(newDial);
897
- setPhone(newDial + " ");
898
- },
899
- disabled: isLoading,
900
- "aria-label": "Select country code",
901
- children: countries.map((c) => /* @__PURE__ */ jsx("option", { value: c.dial, children: c.name }, c.code))
902
- }
903
- ),
904
- /* @__PURE__ */ jsxs("div", { className: "ds-signup__flag-display", "aria-hidden": "true", children: [
905
- /* @__PURE__ */ jsx("span", { className: "ds-signup__flag-icon", children: countries.find((c) => c.dial === countryDial)?.flag || "\u{1F310}" }),
906
- /* @__PURE__ */ jsx("svg", { width: "10", height: "6", viewBox: "0 0 10 6", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M1 1L5 5L9 1", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
907
- ] })
908
- ] }),
909
- /* @__PURE__ */ jsx(
910
- "input",
911
- {
912
- id: "phone-input",
913
- type: "tel",
914
- placeholder: l.phonePlaceholder,
915
- value: phone,
916
- onChange: (e) => setPhone(e.target.value),
917
- disabled: isLoading,
918
- className: "ds-signup__phone-input ds-signup__phone-input-native",
919
- autoComplete: "tel"
920
- }
921
- )
922
- ] }) })
923
- ] }) }),
924
- /* @__PURE__ */ jsxs("div", { className: "ds-signup__field", children: [
925
- /* @__PURE__ */ jsxs("div", { className: "ds-signup__password-wrapper", children: [
926
- /* @__PURE__ */ jsx(
927
- TextField,
928
- {
929
- label: l.passwordLabel,
930
- type: showPassword ? "text" : "password",
931
- placeholder: l.passwordPlaceholder,
932
- value: password,
933
- onChange: (e) => setPassword(e.target.value),
934
- disabled: isLoading,
935
- autoComplete: "new-password"
936
- }
937
- ),
938
- /* @__PURE__ */ jsx(
939
- "button",
940
- {
941
- type: "button",
942
- className: "ds-signup__password-toggle",
943
- onClick: () => setShowPassword(!showPassword),
944
- "aria-label": showPassword ? l.hidePasswordLabel : l.showPasswordLabel,
945
- children: showPassword ? /* @__PURE__ */ jsxs(
946
- "svg",
947
- {
948
- width: "20",
949
- height: "20",
950
- viewBox: "0 0 24 24",
951
- fill: "none",
952
- stroke: "currentColor",
953
- strokeWidth: "2",
954
- strokeLinecap: "round",
955
- strokeLinejoin: "round",
956
- children: [
957
- /* @__PURE__ */ jsx("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }),
958
- /* @__PURE__ */ jsx("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
959
- ]
960
- }
961
- ) : /* @__PURE__ */ jsxs(
962
- "svg",
963
- {
964
- width: "20",
965
- height: "20",
966
- viewBox: "0 0 24 24",
967
- fill: "none",
968
- stroke: "currentColor",
969
- strokeWidth: "2",
970
- strokeLinecap: "round",
971
- strokeLinejoin: "round",
972
- children: [
973
- /* @__PURE__ */ jsx("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
974
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" })
975
- ]
976
- }
977
- )
978
- }
979
- )
980
- ] }),
981
- password && /* @__PURE__ */ jsxs("div", { className: "ds-signup__strength", children: [
982
- /* @__PURE__ */ jsx("div", { className: "ds-signup__strength-bar", children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx(
983
- "div",
984
- {
985
- className: clsx4(
986
- "ds-signup__strength-segment",
987
- i < passwordStrength.score && "ds-signup__strength-segment--active"
988
- ),
989
- style: i < passwordStrength.score ? { backgroundColor: passwordStrength.color } : {}
990
- },
991
- i
992
- )) }),
993
- /* @__PURE__ */ jsx(
994
- "span",
995
- {
996
- className: "ds-signup__strength-label",
997
- style: { color: passwordStrength.color },
998
- children: passwordStrength.label
999
- }
1000
- )
1001
- ] })
1002
- ] }),
1003
- /* @__PURE__ */ jsxs("div", { className: "ds-signup__terms", children: [
1004
- /* @__PURE__ */ jsx(
1005
- Checkbox,
1006
- {
1007
- label: "",
1008
- checked: acceptedTerms,
1009
- onCheckedChange: (checked) => setAcceptedTerms(checked === true),
1010
- disabled: isLoading
1011
- }
1012
- ),
1013
- /* @__PURE__ */ jsxs("span", { className: "ds-signup__terms-text", children: [
1014
- (l.termsAgreementPrefix || "").endsWith(" ") ? l.termsAgreementPrefix || "" : `${l.termsAgreementPrefix || ""} `,
1015
- /* @__PURE__ */ jsx(
1016
- "button",
1017
- {
1018
- type: "button",
1019
- className: "ds-signup__link",
1020
- onClick: onTermsClick,
1021
- disabled: isLoading,
1022
- children: l.termsLabel
1023
- }
1024
- ),
1025
- (l.termsConjunction || " ").startsWith(" ") && (l.termsConjunction || " ").endsWith(" ") ? l.termsConjunction || " " : ` ${(l.termsConjunction || "").trim()} `,
1026
- /* @__PURE__ */ jsx(
1027
- "button",
1028
- {
1029
- type: "button",
1030
- className: "ds-signup__link",
1031
- onClick: onPrivacyClick,
1032
- disabled: isLoading,
1033
- children: l.privacyLabel
1034
- }
1035
- )
1036
- ] })
1037
- ] }),
1038
- /* @__PURE__ */ jsx(
1039
- Button,
1040
- {
1041
- type: "submit",
1042
- variant: "primary",
1043
- size: "lg",
1044
- disabled: isLoading || !isFormValid,
1045
- className: "ds-signup__submit",
1046
- children: isLoading ? /* @__PURE__ */ jsx("span", { className: "ds-signup__spinner" }) : l.submitLabel
1047
- }
1048
- )
1049
- ] }),
1050
- /* @__PURE__ */ jsxs("div", { className: "ds-signup__footer", children: [
1051
- /* @__PURE__ */ jsx("span", { children: l.loginPrompt }),
1052
- /* @__PURE__ */ jsx(
1053
- "button",
1054
- {
1055
- type: "button",
1056
- className: "ds-signup__link ds-signup__link--accent",
1057
- onClick: onLogin,
1058
- disabled: isLoading,
1059
- children: l.loginLabel
1060
- }
1061
- )
1062
- ] })
1063
- ] })
1064
- ] });
1065
- };
1066
- Signup.displayName = "Signup";
1067
- var defaultForgotPasswordLabels = {
1068
- forgotPasswordTitle: "Forgot password?",
1069
- resetInstructionsTagline: "No worries, we'll send you reset instructions.",
1070
- emailLabel: "Email",
1071
- emailPlaceholder: "Enter your email",
1072
- resetPasswordButton: "Reset password",
1073
- backToLoginButton: "Back to login",
1074
- checkYourEmailTitle: "Check your email",
1075
- passwordResetLinkTagline: "We sent a password reset link to",
1076
- didNotReceiveEmailHint: "Didn't receive the email? ",
1077
- clickToResendButton: "Click to resend",
1078
- setNewPasswordTitle: "Set new password",
1079
- mustBeCharactersTagline: "Must be at least 8 characters.",
1080
- passwordLabel: "Password",
1081
- enterNewPasswordPlaceholder: "Enter new password",
1082
- confirmPasswordLabel: "Confirm password",
1083
- confirmNewPasswordPlaceholder: "Confirm new password",
1084
- passwordsDontMatchError: "Passwords don't match",
1085
- passwordResetTitle: "Password reset",
1086
- passwordSuccessfullyResetTagline: "Your password has been successfully reset.",
1087
- clickBelowLogInHint: "Click below to log in.",
1088
- continueToLoginButton: "Continue to login",
1089
- showPasswordLabel: "Show password",
1090
- hidePasswordLabel: "Hide password"
1091
- };
1092
- var ForgotPassword = ({
1093
- logo,
1094
- labels: customLabels,
1095
- onSubmit,
1096
- onResetPassword,
1097
- onBackToLogin,
1098
- isLoading = false,
1099
- error,
1100
- step = "email",
1101
- email: initialEmail = "",
1102
- className
1103
- }) => {
1104
- const l = { ...defaultForgotPasswordLabels, ...customLabels };
1105
- const [email, setEmail] = useState(initialEmail);
1106
- const [password, setPassword] = useState("");
1107
- const [confirmPassword, setConfirmPassword] = useState("");
1108
- const [showPassword, setShowPassword] = useState(false);
1109
- const [resendTimer, setResendTimer] = useState(0);
1110
- const hasStartedTimer = React4.useRef(false);
1111
- useEffect(() => {
1112
- if (step === "sent" && !hasStartedTimer.current) {
1113
- hasStartedTimer.current = true;
1114
- setResendTimer(60);
1115
- } else if (step !== "sent") {
1116
- hasStartedTimer.current = false;
1117
- }
1118
- }, [step]);
1119
- useEffect(() => {
1120
- let timerId;
1121
- if (resendTimer > 0) {
1122
- timerId = setInterval(() => {
1123
- setResendTimer((prev) => prev - 1);
1124
- }, 1e3);
1125
- }
1126
- return () => {
1127
- if (timerId) clearInterval(timerId);
1128
- };
1129
- }, [resendTimer]);
1130
- const handleResendClick = () => {
1131
- if (resendTimer === 0) {
1132
- onSubmit?.(email || initialEmail);
1133
- setResendTimer(60);
1134
- }
1135
- };
1136
- const handleEmailSubmit = (e) => {
1137
- e.preventDefault();
1138
- onSubmit?.(email);
1139
- };
1140
- const handleResetSubmit = (e) => {
1141
- e.preventDefault();
1142
- onResetPassword?.({ password, confirmPassword });
1143
- };
1144
- const renderLogo = () => logo ? /* @__PURE__ */ jsx("div", { className: "ds-forgot__logo", children: logo }) : /* @__PURE__ */ jsx("div", { className: "ds-forgot__logo ds-forgot__logo--default", children: /* @__PURE__ */ jsx("div", { className: "ds-forgot__logo-icon", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1145
- /* @__PURE__ */ jsx("rect", { width: "32", height: "32", rx: "8", fill: "url(#forgot-logo-gradient)" }),
1146
- /* @__PURE__ */ jsx(
1147
- "path",
1148
- {
1149
- d: "M16 10V14M16 22V22.01M16 26C21.5228 26 26 21.5228 26 16C26 10.4772 21.5228 6 16 6C10.4772 6 6 10.4772 6 16C6 21.5228 10.4772 26 16 26Z",
1150
- stroke: "white",
1151
- strokeWidth: "2",
1152
- strokeLinecap: "round"
1153
- }
1154
- ),
1155
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "forgot-logo-gradient", x1: "0", y1: "0", x2: "32", y2: "32", children: [
1156
- /* @__PURE__ */ jsx("stop", { stopColor: "rgb(var(--accent-rgb))" }),
1157
- /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "rgb(var(--accent2-rgb))" })
1158
- ] }) })
1159
- ] }) }) });
1160
- if (step === "email") {
1161
- return /* @__PURE__ */ jsxs("div", { className: clsx4("ds-forgot", className), children: [
1162
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__accent ds-forgot__accent--1", "aria-hidden": "true" }),
1163
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__accent ds-forgot__accent--2", "aria-hidden": "true" }),
1164
- /* @__PURE__ */ jsxs("div", { className: "ds-forgot__card", children: [
1165
- /* @__PURE__ */ jsxs("div", { className: "ds-forgot__header", children: [
1166
- renderLogo(),
1167
- /* @__PURE__ */ jsx("h1", { className: "ds-forgot__title", children: l.forgotPasswordTitle }),
1168
- /* @__PURE__ */ jsx("p", { className: "ds-forgot__tagline", children: l.resetInstructionsTagline })
1169
- ] }),
1170
- error && /* @__PURE__ */ jsxs("div", { className: "ds-forgot__error", children: [
1171
- /* @__PURE__ */ jsxs(
1172
- "svg",
1173
- {
1174
- width: "16",
1175
- height: "16",
1176
- viewBox: "0 0 16 16",
1177
- fill: "none",
1178
- xmlns: "http://www.w3.org/2000/svg",
1179
- children: [
1180
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7", stroke: "currentColor", strokeWidth: "1.5" }),
1181
- /* @__PURE__ */ jsx(
1182
- "path",
1183
- {
1184
- d: "M8 4.5V8.5",
1185
- stroke: "currentColor",
1186
- strokeWidth: "1.5",
1187
- strokeLinecap: "round"
1188
- }
1189
- ),
1190
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "11", r: "0.75", fill: "currentColor" })
1191
- ]
1192
- }
1193
- ),
1194
- /* @__PURE__ */ jsx("span", { children: error })
1195
- ] }),
1196
- /* @__PURE__ */ jsxs("form", { className: "ds-forgot__form", onSubmit: handleEmailSubmit, children: [
1197
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__field", children: /* @__PURE__ */ jsx(
1198
- TextField,
1199
- {
1200
- label: l.emailLabel,
1201
- type: "email",
1202
- placeholder: l.emailPlaceholder,
1203
- value: email,
1204
- onChange: (e) => setEmail(e.target.value),
1205
- disabled: isLoading,
1206
- autoComplete: "email"
1207
- }
1208
- ) }),
1209
- /* @__PURE__ */ jsx(
1210
- Button,
1211
- {
1212
- type: "submit",
1213
- variant: "primary",
1214
- size: "lg",
1215
- disabled: isLoading || !email,
1216
- className: "ds-forgot__submit",
1217
- children: isLoading ? /* @__PURE__ */ jsx("span", { className: "ds-forgot__spinner" }) : l.resetPasswordButton
1218
- }
1219
- )
1220
- ] }),
1221
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__footer", children: /* @__PURE__ */ jsxs(
1222
- "button",
1223
- {
1224
- type: "button",
1225
- className: "ds-forgot__back",
1226
- onClick: onBackToLogin,
1227
- disabled: isLoading,
1228
- children: [
1229
- /* @__PURE__ */ jsx(
1230
- "svg",
1231
- {
1232
- width: "16",
1233
- height: "16",
1234
- viewBox: "0 0 16 16",
1235
- fill: "none",
1236
- stroke: "currentColor",
1237
- strokeWidth: "1.5",
1238
- strokeLinecap: "round",
1239
- strokeLinejoin: "round",
1240
- children: /* @__PURE__ */ jsx("path", { d: "M10 12L6 8L10 4" })
1241
- }
1242
- ),
1243
- l.backToLoginButton
1244
- ]
1245
- }
1246
- ) })
1247
- ] })
1248
- ] });
1249
- }
1250
- if (step === "sent") {
1251
- return /* @__PURE__ */ jsxs("div", { className: clsx4("ds-forgot", className), children: [
1252
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__accent ds-forgot__accent--1", "aria-hidden": "true" }),
1253
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__accent ds-forgot__accent--2", "aria-hidden": "true" }),
1254
- /* @__PURE__ */ jsxs("div", { className: "ds-forgot__card ds-forgot__card--centered", children: [
1255
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__success-icon", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1256
- /* @__PURE__ */ jsx("circle", { cx: "32", cy: "32", r: "30", stroke: "rgb(var(--accent-rgb))", strokeWidth: "2" }),
1257
- /* @__PURE__ */ jsx(
1258
- "path",
1259
- {
1260
- d: "M20 32L44 32M44 32L36 24M44 32L36 40",
1261
- stroke: "rgb(var(--accent-rgb))",
1262
- strokeWidth: "3",
1263
- strokeLinecap: "round",
1264
- strokeLinejoin: "round"
1265
- }
1266
- )
1267
- ] }) }),
1268
- /* @__PURE__ */ jsx("h1", { className: "ds-forgot__title", children: l.checkYourEmailTitle }),
1269
- /* @__PURE__ */ jsxs("p", { className: "ds-forgot__tagline", children: [
1270
- l.passwordResetLinkTagline,
1271
- /* @__PURE__ */ jsx("br", {}),
1272
- /* @__PURE__ */ jsx("strong", { children: email || initialEmail })
1273
- ] }),
1274
- /* @__PURE__ */ jsxs("div", { className: "ds-forgot__hint", children: [
1275
- /* @__PURE__ */ jsx("span", { children: l.didNotReceiveEmailHint }),
1276
- /* @__PURE__ */ jsx(
1277
- "button",
1278
- {
1279
- type: "button",
1280
- className: "ds-forgot__link",
1281
- onClick: handleResendClick,
1282
- disabled: isLoading || resendTimer > 0,
1283
- children: resendTimer > 0 ? `${l.clickToResendButton} ${resendTimer}s` : l.clickToResendButton
1284
- }
1285
- )
1286
- ] }),
1287
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__footer", children: /* @__PURE__ */ jsxs(
1288
- "button",
1289
- {
1290
- type: "button",
1291
- className: "ds-forgot__back",
1292
- onClick: onBackToLogin,
1293
- disabled: isLoading,
1294
- children: [
1295
- /* @__PURE__ */ jsx(
1296
- "svg",
1297
- {
1298
- width: "16",
1299
- height: "16",
1300
- viewBox: "0 0 16 16",
1301
- fill: "none",
1302
- stroke: "currentColor",
1303
- strokeWidth: "1.5",
1304
- strokeLinecap: "round",
1305
- strokeLinejoin: "round",
1306
- children: /* @__PURE__ */ jsx("path", { d: "M10 12L6 8L10 4" })
1307
- }
1308
- ),
1309
- l.backToLoginButton
1310
- ]
1311
- }
1312
- ) })
1313
- ] })
1314
- ] });
1315
- }
1316
- if (step === "reset") {
1317
- const passwordsMatch = password === confirmPassword;
1318
- const isValid = password.length >= 8 && passwordsMatch;
1319
- return /* @__PURE__ */ jsxs("div", { className: clsx4("ds-forgot", className), children: [
1320
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__accent ds-forgot__accent--1", "aria-hidden": "true" }),
1321
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__accent ds-forgot__accent--2", "aria-hidden": "true" }),
1322
- /* @__PURE__ */ jsxs("div", { className: "ds-forgot__card", children: [
1323
- /* @__PURE__ */ jsxs("div", { className: "ds-forgot__header", children: [
1324
- renderLogo(),
1325
- /* @__PURE__ */ jsx("h1", { className: "ds-forgot__title", children: l.setNewPasswordTitle }),
1326
- /* @__PURE__ */ jsx("p", { className: "ds-forgot__tagline", children: l.mustBeCharactersTagline })
1327
- ] }),
1328
- error && /* @__PURE__ */ jsxs("div", { className: "ds-forgot__error", children: [
1329
- /* @__PURE__ */ jsxs(
1330
- "svg",
1331
- {
1332
- width: "16",
1333
- height: "16",
1334
- viewBox: "0 0 16 16",
1335
- fill: "none",
1336
- xmlns: "http://www.w3.org/2000/svg",
1337
- children: [
1338
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "7", stroke: "currentColor", strokeWidth: "1.5" }),
1339
- /* @__PURE__ */ jsx(
1340
- "path",
1341
- {
1342
- d: "M8 4.5V8.5",
1343
- stroke: "currentColor",
1344
- strokeWidth: "1.5",
1345
- strokeLinecap: "round"
1346
- }
1347
- ),
1348
- /* @__PURE__ */ jsx("circle", { cx: "8", cy: "11", r: "0.75", fill: "currentColor" })
1349
- ]
1350
- }
1351
- ),
1352
- /* @__PURE__ */ jsx("span", { children: error })
1353
- ] }),
1354
- /* @__PURE__ */ jsxs("form", { className: "ds-forgot__form", onSubmit: handleResetSubmit, children: [
1355
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__field", children: /* @__PURE__ */ jsxs("div", { className: "ds-forgot__password-wrapper", children: [
1356
- /* @__PURE__ */ jsx(
1357
- TextField,
1358
- {
1359
- label: l.passwordLabel,
1360
- type: showPassword ? "text" : "password",
1361
- placeholder: l.enterNewPasswordPlaceholder,
1362
- value: password,
1363
- onChange: (e) => setPassword(e.target.value),
1364
- disabled: isLoading,
1365
- autoComplete: "new-password"
1366
- }
1367
- ),
1368
- /* @__PURE__ */ jsx(
1369
- "button",
1370
- {
1371
- type: "button",
1372
- className: "ds-forgot__password-toggle",
1373
- onClick: () => setShowPassword(!showPassword),
1374
- "aria-label": showPassword ? l.hidePasswordLabel : l.showPasswordLabel,
1375
- children: showPassword ? /* @__PURE__ */ jsxs(
1376
- "svg",
1377
- {
1378
- width: "20",
1379
- height: "20",
1380
- viewBox: "0 0 24 24",
1381
- fill: "none",
1382
- stroke: "currentColor",
1383
- strokeWidth: "2",
1384
- strokeLinecap: "round",
1385
- strokeLinejoin: "round",
1386
- children: [
1387
- /* @__PURE__ */ jsx("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }),
1388
- /* @__PURE__ */ jsx("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
1389
- ]
1390
- }
1391
- ) : /* @__PURE__ */ jsxs(
1392
- "svg",
1393
- {
1394
- width: "20",
1395
- height: "20",
1396
- viewBox: "0 0 24 24",
1397
- fill: "none",
1398
- stroke: "currentColor",
1399
- strokeWidth: "2",
1400
- strokeLinecap: "round",
1401
- strokeLinejoin: "round",
1402
- children: [
1403
- /* @__PURE__ */ jsx("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
1404
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" })
1405
- ]
1406
- }
1407
- )
1408
- }
1409
- )
1410
- ] }) }),
1411
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__field", children: /* @__PURE__ */ jsx(
1412
- TextField,
1413
- {
1414
- label: l.confirmPasswordLabel,
1415
- type: showPassword ? "text" : "password",
1416
- placeholder: l.confirmNewPasswordPlaceholder,
1417
- value: confirmPassword,
1418
- onChange: (e) => setConfirmPassword(e.target.value),
1419
- disabled: isLoading,
1420
- autoComplete: "new-password",
1421
- error: confirmPassword.length > 0 && !passwordsMatch,
1422
- helperText: confirmPassword.length > 0 && !passwordsMatch ? l.passwordsDontMatchError : void 0
1423
- }
1424
- ) }),
1425
- /* @__PURE__ */ jsx(
1426
- Button,
1427
- {
1428
- type: "submit",
1429
- variant: "primary",
1430
- size: "lg",
1431
- disabled: isLoading || !isValid,
1432
- className: "ds-forgot__submit",
1433
- children: isLoading ? /* @__PURE__ */ jsx("span", { className: "ds-forgot__spinner" }) : l.resetPasswordButton
1434
- }
1435
- )
1436
- ] }),
1437
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__footer", children: /* @__PURE__ */ jsxs(
1438
- "button",
1439
- {
1440
- type: "button",
1441
- className: "ds-forgot__back",
1442
- onClick: onBackToLogin,
1443
- disabled: isLoading,
1444
- children: [
1445
- /* @__PURE__ */ jsx(
1446
- "svg",
1447
- {
1448
- width: "16",
1449
- height: "16",
1450
- viewBox: "0 0 16 16",
1451
- fill: "none",
1452
- stroke: "currentColor",
1453
- strokeWidth: "1.5",
1454
- strokeLinecap: "round",
1455
- strokeLinejoin: "round",
1456
- children: /* @__PURE__ */ jsx("path", { d: "M10 12L6 8L10 4" })
1457
- }
1458
- ),
1459
- l.backToLoginButton
1460
- ]
1461
- }
1462
- ) })
1463
- ] })
1464
- ] });
1465
- }
1466
- return /* @__PURE__ */ jsxs("div", { className: clsx4("ds-forgot", className), children: [
1467
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__accent ds-forgot__accent--1", "aria-hidden": "true" }),
1468
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__accent ds-forgot__accent--2", "aria-hidden": "true" }),
1469
- /* @__PURE__ */ jsxs("div", { className: "ds-forgot__card ds-forgot__card--centered", children: [
1470
- /* @__PURE__ */ jsx("div", { className: "ds-forgot__success-icon ds-forgot__success-icon--check", children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
1471
- /* @__PURE__ */ jsx("circle", { cx: "32", cy: "32", r: "30", stroke: "var(--status-success)", strokeWidth: "2" }),
1472
- /* @__PURE__ */ jsx(
1473
- "path",
1474
- {
1475
- d: "M20 32L28 40L44 24",
1476
- stroke: "var(--status-success)",
1477
- strokeWidth: "3",
1478
- strokeLinecap: "round",
1479
- strokeLinejoin: "round"
1480
- }
1481
- )
1482
- ] }) }),
1483
- /* @__PURE__ */ jsx("h1", { className: "ds-forgot__title", children: l.passwordResetTitle }),
1484
- /* @__PURE__ */ jsxs("p", { className: "ds-forgot__tagline", children: [
1485
- l.passwordSuccessfullyResetTagline,
1486
- /* @__PURE__ */ jsx("br", {}),
1487
- l.clickBelowLogInHint
1488
- ] }),
1489
- /* @__PURE__ */ jsx(Button, { variant: "primary", size: "lg", onClick: onBackToLogin, className: "ds-forgot__submit", children: l.continueToLoginButton })
1490
- ] })
1491
- ] });
1492
- };
1493
- ForgotPassword.displayName = "ForgotPassword";
1494
- var IconLinkedIn = ({ className, size = 16 }) => /* @__PURE__ */ jsx(
1495
- "svg",
1496
- {
1497
- width: size,
1498
- height: size,
1499
- viewBox: "0 0 24 24",
1500
- fill: "currentColor",
1501
- className,
1502
- xmlns: "http://www.w3.org/2000/svg",
1503
- children: /* @__PURE__ */ jsx("path", { d: "M20.447 20.452H16.892V14.881C16.892 13.553 16.865 11.848 15.043 11.848C13.194 11.848 12.911 13.291 12.911 14.786V20.452H9.356V9.006H12.768V10.57H12.816C13.291 9.67 14.453 8.721 16.184 8.721C19.788 8.721 20.447 11.093 20.447 14.179V20.452ZM5.337 7.433C4.197 7.433 3.274 6.509 3.274 5.37C3.274 4.23 4.197 3.307 5.337 3.307C6.477 3.307 7.4 4.23 7.4 5.37C7.4 6.509 6.477 7.433 5.337 7.433ZM3.563 20.452H7.123V9.006H3.563V20.452Z" })
1504
- }
1505
- );
1506
- var IconMail = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1507
- "svg",
1508
- {
1509
- width: size,
1510
- height: size,
1511
- viewBox: "0 0 24 24",
1512
- fill: "none",
1513
- stroke: "currentColor",
1514
- strokeWidth: "2",
1515
- strokeLinecap: "round",
1516
- strokeLinejoin: "round",
1517
- className,
1518
- children: [
1519
- /* @__PURE__ */ jsx("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
1520
- /* @__PURE__ */ jsx("polyline", { points: "22,6 12,13 2,6" })
1521
- ]
1522
- }
1523
- );
1524
- var IconMapPin = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1525
- "svg",
1526
- {
1527
- width: size,
1528
- height: size,
1529
- viewBox: "0 0 24 24",
1530
- fill: "none",
1531
- stroke: "currentColor",
1532
- strokeWidth: "2",
1533
- strokeLinecap: "round",
1534
- strokeLinejoin: "round",
1535
- className,
1536
- children: [
1537
- /* @__PURE__ */ jsx("path", { d: "M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" }),
1538
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "10", r: "3" })
1539
- ]
1540
- }
1541
- );
1542
- var IconBriefcase = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1543
- "svg",
1544
- {
1545
- width: size,
1546
- height: size,
1547
- viewBox: "0 0 24 24",
1548
- fill: "none",
1549
- stroke: "currentColor",
1550
- strokeWidth: "2",
1551
- strokeLinecap: "round",
1552
- strokeLinejoin: "round",
1553
- className,
1554
- children: [
1555
- /* @__PURE__ */ jsx("rect", { x: "2", y: "7", width: "20", height: "14", rx: "2", ry: "2" }),
1556
- /* @__PURE__ */ jsx("path", { d: "M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16" })
1557
- ]
1558
- }
1559
- );
1560
- var IconSchool = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1561
- "svg",
1562
- {
1563
- width: size,
1564
- height: size,
1565
- viewBox: "0 0 24 24",
1566
- fill: "none",
1567
- stroke: "currentColor",
1568
- strokeWidth: "2",
1569
- strokeLinecap: "round",
1570
- strokeLinejoin: "round",
1571
- className,
1572
- children: [
1573
- /* @__PURE__ */ jsx("path", { d: "M22 10v6M2 10l10-5 10 5-10 5z" }),
1574
- /* @__PURE__ */ jsx("path", { d: "M6 12v5c3 3 9 3 12 0v-5" })
1575
- ]
1576
- }
1577
- );
1578
- var IconChevronDown = ({ className, size = 16 }) => /* @__PURE__ */ jsx(
1579
- "svg",
1580
- {
1581
- width: size,
1582
- height: size,
1583
- viewBox: "0 0 24 24",
1584
- fill: "none",
1585
- stroke: "currentColor",
1586
- strokeWidth: "2",
1587
- strokeLinecap: "round",
1588
- strokeLinejoin: "round",
1589
- className,
1590
- children: /* @__PURE__ */ jsx("polyline", { points: "6 9 12 15 18 9" })
1591
- }
1592
- );
1593
- var IconChevronUp = ({ className, size = 16 }) => /* @__PURE__ */ jsx(
1594
- "svg",
1595
- {
1596
- width: size,
1597
- height: size,
1598
- viewBox: "0 0 24 24",
1599
- fill: "none",
1600
- stroke: "currentColor",
1601
- strokeWidth: "2",
1602
- strokeLinecap: "round",
1603
- strokeLinejoin: "round",
1604
- className,
1605
- children: /* @__PURE__ */ jsx("polyline", { points: "18 15 12 9 6 15" })
1606
- }
1607
- );
1608
- var IconRefresh = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1609
- "svg",
1610
- {
1611
- width: size,
1612
- height: size,
1613
- viewBox: "0 0 24 24",
1614
- fill: "none",
1615
- stroke: "currentColor",
1616
- strokeWidth: "2",
1617
- strokeLinecap: "round",
1618
- strokeLinejoin: "round",
1619
- className,
1620
- children: [
1621
- /* @__PURE__ */ jsx("path", { d: "M23 4v6h-6" }),
1622
- /* @__PURE__ */ jsx("path", { d: "M1 20v-6h6" }),
1623
- /* @__PURE__ */ jsx("path", { d: "M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15" })
1624
- ]
1625
- }
1626
- );
1627
- var IconCheck = ({ className, size = 16 }) => /* @__PURE__ */ jsx(
1628
- "svg",
1629
- {
1630
- width: size,
1631
- height: size,
1632
- viewBox: "0 0 24 24",
1633
- fill: "none",
1634
- stroke: "currentColor",
1635
- strokeWidth: "2",
1636
- strokeLinecap: "round",
1637
- strokeLinejoin: "round",
1638
- className,
1639
- children: /* @__PURE__ */ jsx("polyline", { points: "20 6 9 17 4 12" })
1640
- }
1641
- );
1642
- var IconLock = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1643
- "svg",
1644
- {
1645
- width: size,
1646
- height: size,
1647
- viewBox: "0 0 24 24",
1648
- fill: "none",
1649
- stroke: "currentColor",
1650
- strokeWidth: "2",
1651
- strokeLinecap: "round",
1652
- strokeLinejoin: "round",
1653
- className,
1654
- children: [
1655
- /* @__PURE__ */ jsx("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
1656
- /* @__PURE__ */ jsx("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
1657
- ]
1658
- }
1659
- );
1660
- var IconInfo = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1661
- "svg",
1662
- {
1663
- width: size,
1664
- height: size,
1665
- viewBox: "0 0 24 24",
1666
- fill: "none",
1667
- stroke: "currentColor",
1668
- strokeWidth: "2",
1669
- strokeLinecap: "round",
1670
- strokeLinejoin: "round",
1671
- className,
1672
- children: [
1673
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
1674
- /* @__PURE__ */ jsx("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
1675
- /* @__PURE__ */ jsx("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
1676
- ]
1677
- }
1678
- );
1679
- var IconShieldCheck = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1680
- "svg",
1681
- {
1682
- width: size,
1683
- height: size,
1684
- viewBox: "0 0 24 24",
1685
- fill: "none",
1686
- stroke: "currentColor",
1687
- strokeWidth: "2",
1688
- strokeLinecap: "round",
1689
- strokeLinejoin: "round",
1690
- className,
1691
- children: [
1692
- /* @__PURE__ */ jsx("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }),
1693
- /* @__PURE__ */ jsx("path", { d: "M9 12l2 2 4-4" })
1694
- ]
1695
- }
1696
- );
1697
- var IconBrain = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1698
- "svg",
1699
- {
1700
- width: size,
1701
- height: size,
1702
- viewBox: "0 0 24 24",
1703
- fill: "none",
1704
- stroke: "currentColor",
1705
- strokeWidth: "2",
1706
- strokeLinecap: "round",
1707
- strokeLinejoin: "round",
1708
- className,
1709
- children: [
1710
- /* @__PURE__ */ jsx("path", { d: "M12 4.5a2.5 2.5 0 0 0-4.96-.46 2.5 2.5 0 0 0-1.98 3 2.5 2.5 0 0 0-1.32 4.24 3 3 0 0 0 .34 5.58 2.5 2.5 0 0 0 2.96 3.08A2.5 2.5 0 0 0 12 19.5a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 12 4.5" }),
1711
- /* @__PURE__ */ jsx("path", { d: "M12 4.5v15" })
1712
- ]
1713
- }
1714
- );
1715
- var IconSparkles = ({ className, size = 16 }) => /* @__PURE__ */ jsx(
1716
- "svg",
1717
- {
1718
- width: size,
1719
- height: size,
1720
- viewBox: "0 0 24 24",
1721
- fill: "none",
1722
- stroke: "currentColor",
1723
- strokeWidth: "2",
1724
- strokeLinecap: "round",
1725
- strokeLinejoin: "round",
1726
- className,
1727
- children: /* @__PURE__ */ jsx("path", { d: "M12 3l1.912 5.813a2 2 0 0 0 1.275 1.275L21 12l-5.813 1.912a2 2 0 0 0-1.275 1.275L12 21l-1.912-5.813a2 2 0 0 0-1.275-1.275L3 12l5.813-1.912a2 2 0 0 0 1.275-1.275L12 3z" })
1728
- }
1729
- );
1730
- var IconTarget = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1731
- "svg",
1732
- {
1733
- width: size,
1734
- height: size,
1735
- viewBox: "0 0 24 24",
1736
- fill: "none",
1737
- stroke: "currentColor",
1738
- strokeWidth: "2",
1739
- strokeLinecap: "round",
1740
- strokeLinejoin: "round",
1741
- className,
1742
- children: [
1743
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
1744
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "6" }),
1745
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "2" })
1746
- ]
1747
- }
1748
- );
1749
- var IconMessageCircle = ({ className, size = 16 }) => /* @__PURE__ */ jsx(
1750
- "svg",
1751
- {
1752
- width: size,
1753
- height: size,
1754
- viewBox: "0 0 24 24",
1755
- fill: "none",
1756
- stroke: "currentColor",
1757
- strokeWidth: "2",
1758
- strokeLinecap: "round",
1759
- strokeLinejoin: "round",
1760
- className,
1761
- children: /* @__PURE__ */ jsx("path", { d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z" })
1762
- }
1763
- );
1764
- var IconZap = ({ className, size = 16 }) => /* @__PURE__ */ jsx(
1765
- "svg",
1766
- {
1767
- width: size,
1768
- height: size,
1769
- viewBox: "0 0 24 24",
1770
- fill: "none",
1771
- stroke: "currentColor",
1772
- strokeWidth: "2",
1773
- strokeLinecap: "round",
1774
- strokeLinejoin: "round",
1775
- className,
1776
- children: /* @__PURE__ */ jsx("polygon", { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2" })
1777
- }
1778
- );
1779
- var IconTrendingUp = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1780
- "svg",
1781
- {
1782
- width: size,
1783
- height: size,
1784
- viewBox: "0 0 24 24",
1785
- fill: "none",
1786
- stroke: "currentColor",
1787
- strokeWidth: "2",
1788
- strokeLinecap: "round",
1789
- strokeLinejoin: "round",
1790
- className,
1791
- children: [
1792
- /* @__PURE__ */ jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
1793
- /* @__PURE__ */ jsx("polyline", { points: "17 6 23 6 23 12" })
1794
- ]
1795
- }
1796
- );
1797
- var IconAlertTriangle = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1798
- "svg",
1799
- {
1800
- width: size,
1801
- height: size,
1802
- viewBox: "0 0 24 24",
1803
- fill: "none",
1804
- stroke: "currentColor",
1805
- strokeWidth: "2",
1806
- strokeLinecap: "round",
1807
- strokeLinejoin: "round",
1808
- className,
1809
- children: [
1810
- /* @__PURE__ */ jsx("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
1811
- /* @__PURE__ */ jsx("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
1812
- /* @__PURE__ */ jsx("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
1813
- ]
1814
- }
1815
- );
1816
- var IconUser = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1817
- "svg",
1818
- {
1819
- width: size,
1820
- height: size,
1821
- viewBox: "0 0 24 24",
1822
- fill: "none",
1823
- stroke: "currentColor",
1824
- strokeWidth: "2",
1825
- strokeLinecap: "round",
1826
- strokeLinejoin: "round",
1827
- className,
1828
- children: [
1829
- /* @__PURE__ */ jsx("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
1830
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "7", r: "4" })
1831
- ]
1832
- }
1833
- );
1834
- var IconClock = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1835
- "svg",
1836
- {
1837
- width: size,
1838
- height: size,
1839
- viewBox: "0 0 24 24",
1840
- fill: "none",
1841
- stroke: "currentColor",
1842
- strokeWidth: "2",
1843
- strokeLinecap: "round",
1844
- strokeLinejoin: "round",
1845
- className,
1846
- children: [
1847
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
1848
- /* @__PURE__ */ jsx("polyline", { points: "12 6 12 12 16 14" })
1849
- ]
1850
- }
1851
- );
1852
- var IconThumbsUp = ({ className, size = 16 }) => /* @__PURE__ */ jsx(
1853
- "svg",
1854
- {
1855
- width: size,
1856
- height: size,
1857
- viewBox: "0 0 24 24",
1858
- fill: "none",
1859
- stroke: "currentColor",
1860
- strokeWidth: "2",
1861
- strokeLinecap: "round",
1862
- strokeLinejoin: "round",
1863
- className,
1864
- children: /* @__PURE__ */ jsx("path", { d: "M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3" })
1865
- }
1866
- );
1867
- var IconThumbsDown = ({ className, size = 16 }) => /* @__PURE__ */ jsx(
1868
- "svg",
1869
- {
1870
- width: size,
1871
- height: size,
1872
- viewBox: "0 0 24 24",
1873
- fill: "none",
1874
- stroke: "currentColor",
1875
- strokeWidth: "2",
1876
- strokeLinecap: "round",
1877
- strokeLinejoin: "round",
1878
- className,
1879
- children: /* @__PURE__ */ jsx("path", { d: "M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17" })
1880
- }
1881
- );
1882
- var IconLightbulb = ({ className, size = 16 }) => /* @__PURE__ */ jsxs(
1883
- "svg",
1884
- {
1885
- width: size,
1886
- height: size,
1887
- viewBox: "0 0 24 24",
1888
- fill: "none",
1889
- stroke: "currentColor",
1890
- strokeWidth: "2",
1891
- strokeLinecap: "round",
1892
- strokeLinejoin: "round",
1893
- className,
1894
- children: [
1895
- /* @__PURE__ */ jsx("path", { d: "M9 18h6" }),
1896
- /* @__PURE__ */ jsx("path", { d: "M10 22h4" }),
1897
- /* @__PURE__ */ jsx("path", { d: "M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .23 2.23 1.5 3.5A4.61 4.61 0 0 1 8.91 14" })
1898
- ]
1899
- }
1900
- );
1901
- var EmptyStateDisplay = ({ onRefresh }) => {
1902
- return /* @__PURE__ */ jsxs("div", { className: "ds-lead-empty", children: [
1903
- /* @__PURE__ */ jsx("div", { className: "ds-lead-empty__avatar-container", children: /* @__PURE__ */ jsxs("div", { className: "ds-lead-empty__avatar", children: [
1904
- /* @__PURE__ */ jsx("div", { className: "ds-lead-empty__avatar-pulse" }),
1905
- /* @__PURE__ */ jsx("div", { className: "ds-lead-empty__avatar-icon", children: /* @__PURE__ */ jsx(IconSparkles, { size: 32 }) })
1906
- ] }) }),
1907
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-empty__content", children: [
1908
- /* @__PURE__ */ jsx("h2", { className: "ds-lead-empty__title", children: "Discover Who They Really Are" }),
1909
- /* @__PURE__ */ jsx("p", { className: "ds-lead-empty__description", children: "Our AI analyzes behavioral patterns, communication style, and personality signals to help you connect more effectively." })
1910
- ] }),
1911
- onRefresh && /* @__PURE__ */ jsx("div", { className: "ds-lead-empty__action", children: /* @__PURE__ */ jsxs(Button, { onClick: onRefresh, variant: "primary", size: "lg", children: [
1912
- /* @__PURE__ */ jsx(IconRefresh, {}),
1913
- " Begin Analysis"
1914
- ] }) }),
1915
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-empty__trust", children: [
1916
- /* @__PURE__ */ jsxs("span", { className: "ds-lead-empty__trust-item", children: [
1917
- /* @__PURE__ */ jsx("span", { className: "ds-lead-empty__trust-dot" }),
1918
- "Privacy-first approach"
1919
- ] }),
1920
- /* @__PURE__ */ jsxs("span", { className: "ds-lead-empty__trust-item", children: [
1921
- /* @__PURE__ */ jsx("span", { className: "ds-lead-empty__trust-dot" }),
1922
- "Public data only"
1923
- ] }),
1924
- /* @__PURE__ */ jsxs("span", { className: "ds-lead-empty__trust-item", children: [
1925
- /* @__PURE__ */ jsx("span", { className: "ds-lead-empty__trust-dot" }),
1926
- "~2 min analysis"
1927
- ] })
1928
- ] })
1929
- ] });
1930
- };
1931
- var ANALYSIS_STAGES = [
1932
- { id: "identity", label: "Verifying Identity", icon: IconUser },
1933
- { id: "behavior", label: "Analyzing Behavior", icon: IconBrain },
1934
- { id: "communication", label: "Mapping Communication Style", icon: IconMessageCircle },
1935
- { id: "personality", label: "Building Personality Profile", icon: IconSparkles }
1936
- ];
1937
- var LoadingStateDisplay = ({ progress }) => {
1938
- const currentStage = progress?.currentStage || "identity";
1939
- const completedStages = progress?.completedStages || [];
1940
- const estimatedTime = progress?.estimatedTimeRemaining;
1941
- const getStageStatus = (stageId) => {
1942
- if (completedStages.includes(stageId)) {
1943
- return "completed";
1944
- }
1945
- if (stageId === currentStage) {
1946
- return "active";
1947
- }
1948
- return "pending";
1949
- };
1950
- const completionPercentage = Math.round(
1951
- (completedStages.length + 0.5) / ANALYSIS_STAGES.length * 100
1952
- );
1953
- return /* @__PURE__ */ jsxs("div", { className: "ds-lead-loading", children: [
1954
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-loading__progress", children: [
1955
- /* @__PURE__ */ jsx("div", { className: "ds-lead-loading__progress-bar", children: /* @__PURE__ */ jsx(
1956
- "div",
1957
- {
1958
- className: "ds-lead-loading__progress-fill",
1959
- style: { width: `${completionPercentage}%` }
1960
- }
1961
- ) }),
1962
- /* @__PURE__ */ jsxs("span", { className: "ds-lead-loading__progress-text", children: [
1963
- completionPercentage,
1964
- "% complete"
1965
- ] })
1966
- ] }),
1967
- /* @__PURE__ */ jsx("div", { className: "ds-lead-loading__stages", children: ANALYSIS_STAGES.map((stage, index) => {
1968
- const status = getStageStatus(stage.id);
1969
- const Icon = stage.icon;
1970
- return /* @__PURE__ */ jsxs(
1971
- "div",
1972
- {
1973
- className: clsx4("ds-lead-loading__stage", `ds-lead-loading__stage--${status}`),
1974
- style: { "--stage-index": index },
1975
- children: [
1976
- /* @__PURE__ */ jsx("div", { className: "ds-lead-loading__stage-icon", children: status === "completed" ? /* @__PURE__ */ jsx(IconCheck, { size: 16 }) : /* @__PURE__ */ jsx(Icon, { size: 16 }) }),
1977
- /* @__PURE__ */ jsx("span", { className: "ds-lead-loading__stage-label", children: stage.label }),
1978
- status === "active" && /* @__PURE__ */ jsx("div", { className: "ds-lead-loading__stage-pulse" })
1979
- ]
1980
- },
1981
- stage.id
1982
- );
1983
- }) }),
1984
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-loading__footer", children: [
1985
- estimatedTime && estimatedTime > 0 ? /* @__PURE__ */ jsxs("p", { className: "ds-lead-loading__time", children: [
1986
- "About ",
1987
- Math.ceil(estimatedTime / 60),
1988
- " minute",
1989
- estimatedTime > 60 ? "s" : "",
1990
- " remaining"
1991
- ] }) : /* @__PURE__ */ jsx("p", { className: "ds-lead-loading__time", children: "This typically takes 1\u20132 minutes" }),
1992
- /* @__PURE__ */ jsx("p", { className: "ds-lead-loading__message", children: progress?.message || "Analyzing publicly available information..." })
1993
- ] })
1994
- ] });
1995
- };
1996
- var IdentityHeader = ({ data, compact }) => {
1997
- const avatarUrl = data.avatarUrl || `https://ui-avatars.com/api/?name=${encodeURIComponent(data.name)}&background=1a1a2e&color=fff&size=240`;
1998
- const emailStatus = data.contact?.emailStatus;
1999
- const linkedinVerified = data.contact?.linkedinVerified;
2000
- const confidenceScore = data.dataConfidence?.score;
2001
- return /* @__PURE__ */ jsxs("div", { className: clsx4("ds-lead-identity", compact && "ds-lead-identity--compact"), children: [
2002
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-identity__avatar-wrapper", children: [
2003
- /* @__PURE__ */ jsx("img", { src: avatarUrl, alt: data.name, className: "ds-lead-identity__avatar" }),
2004
- confidenceScore && confidenceScore >= 80 && /* @__PURE__ */ jsx("div", { className: "ds-lead-identity__verified-badge", title: "High confidence data", children: /* @__PURE__ */ jsx(IconShieldCheck, { size: 14 }) })
2005
- ] }),
2006
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-identity__content", children: [
2007
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-identity__name-row", children: [
2008
- /* @__PURE__ */ jsx("h1", { className: "ds-lead-identity__name", children: data.name }),
2009
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-identity__badges", children: [
2010
- linkedinVerified && data.contact?.linkedinUrl && /* @__PURE__ */ jsx(
2011
- OutboundLink,
2012
- {
2013
- href: data.contact.linkedinUrl,
2014
- context: "identity-linkedin-badge",
2015
- className: "ds-lead-identity__badge ds-lead-identity__badge--linkedin",
2016
- title: "Verified LinkedIn Profile",
2017
- children: /* @__PURE__ */ jsx(IconLinkedIn, { size: 14 })
2018
- }
2019
- ),
2020
- emailStatus === "verified" && /* @__PURE__ */ jsx(
2021
- "span",
2022
- {
2023
- className: "ds-lead-identity__badge ds-lead-identity__badge--verified",
2024
- title: "Email Verified",
2025
- children: /* @__PURE__ */ jsx(IconMail, { size: 14 })
2026
- }
2027
- )
2028
- ] })
2029
- ] }),
2030
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-identity__role", children: [
2031
- /* @__PURE__ */ jsx("span", { className: "ds-lead-identity__role-title", children: data.role }),
2032
- /* @__PURE__ */ jsx("span", { className: "ds-lead-identity__role-separator", children: "at" }),
2033
- /* @__PURE__ */ jsxs("span", { className: "ds-lead-identity__company", children: [
2034
- data.companyLogo && /* @__PURE__ */ jsx(
2035
- "img",
2036
- {
2037
- src: data.companyLogo,
2038
- alt: data.company,
2039
- className: "ds-lead-identity__company-logo"
2040
- }
2041
- ),
2042
- data.company
2043
- ] })
2044
- ] }),
2045
- /* @__PURE__ */ jsx("div", { className: "ds-lead-identity__meta", children: /* @__PURE__ */ jsxs("span", { className: "ds-lead-identity__meta-item", children: [
2046
- /* @__PURE__ */ jsx(IconMapPin, { size: 14 }),
2047
- data.location
2048
- ] }) }),
2049
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-identity__actions", children: [
2050
- data.contact?.email && /* @__PURE__ */ jsxs(
2051
- OutboundLink,
2052
- {
2053
- href: `mailto:${data.contact.email}`,
2054
- context: "identity-email-contact",
2055
- openInNewTab: false,
2056
- className: clsx4(
2057
- "ds-lead-identity__contact",
2058
- emailStatus && `ds-lead-identity__contact--${emailStatus}`
2059
- ),
2060
- children: [
2061
- /* @__PURE__ */ jsx(IconMail, { size: 14 }),
2062
- /* @__PURE__ */ jsx("span", { className: "ds-lead-identity__contact-email", children: data.contact.email }),
2063
- emailStatus && /* @__PURE__ */ jsxs("span", { className: "ds-lead-identity__contact-status", children: [
2064
- emailStatus === "verified" && "Verified",
2065
- emailStatus === "valid" && "Valid",
2066
- emailStatus === "risky" && "Risky",
2067
- emailStatus === "invalid" && "Invalid"
2068
- ] })
2069
- ]
2070
- }
2071
- ),
2072
- data.lastUpdated && /* @__PURE__ */ jsxs("span", { className: "ds-lead-identity__freshness", children: [
2073
- /* @__PURE__ */ jsx(IconClock, { size: 12 }),
2074
- "Updated ",
2075
- data.lastUpdated
2076
- ] })
2077
- ] }),
2078
- confidenceScore !== void 0 && /* @__PURE__ */ jsxs("div", { className: "ds-lead-identity__confidence", children: [
2079
- /* @__PURE__ */ jsx("div", { className: "ds-lead-identity__confidence-bar", children: /* @__PURE__ */ jsx(
2080
- "div",
2081
- {
2082
- className: "ds-lead-identity__confidence-fill",
2083
- style: { width: `${confidenceScore}%` }
2084
- }
2085
- ) }),
2086
- /* @__PURE__ */ jsxs("span", { className: "ds-lead-identity__confidence-label", children: [
2087
- confidenceScore,
2088
- "% data confidence"
2089
- ] })
2090
- ] })
2091
- ] })
2092
- ] });
2093
- };
2094
- var IntelligenceSummary = ({
2095
- data,
2096
- isLocked = false
2097
- }) => {
2098
- if (isLocked) {
2099
- return /* @__PURE__ */ jsx("div", { className: "ds-lead-intelligence", children: /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__grid", children: [
2100
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__card ds-lead-intelligence__card--locked", children: [
2101
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__card-header", children: [
2102
- /* @__PURE__ */ jsx(IconBrain, { size: 20 }),
2103
- /* @__PURE__ */ jsx("span", { className: "ds-lead-intelligence__card-title", children: "Personality Analysis" })
2104
- ] }),
2105
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__locked-content", children: [
2106
- /* @__PURE__ */ jsx("div", { className: "ds-lead-intelligence__locked-icon", children: /* @__PURE__ */ jsx(IconLock, { size: 24 }) }),
2107
- /* @__PURE__ */ jsx("p", { className: "ds-lead-intelligence__locked-text", children: "Personality analysis in progress..." }),
2108
- /* @__PURE__ */ jsx("div", { className: "ds-lead-intelligence__locked-shimmer" })
2109
- ] })
2110
- ] }),
2111
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__card ds-lead-intelligence__card--locked", children: [
2112
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__card-header", children: [
2113
- /* @__PURE__ */ jsx(IconTarget, { size: 20 }),
2114
- /* @__PURE__ */ jsx("span", { className: "ds-lead-intelligence__card-title", children: "Engagement Strategy" })
2115
- ] }),
2116
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__locked-content", children: [
2117
- /* @__PURE__ */ jsx("div", { className: "ds-lead-intelligence__locked-icon", children: /* @__PURE__ */ jsx(IconLock, { size: 24 }) }),
2118
- /* @__PURE__ */ jsx("p", { className: "ds-lead-intelligence__locked-text", children: "Building engagement recommendations..." }),
2119
- /* @__PURE__ */ jsx("div", { className: "ds-lead-intelligence__locked-shimmer" })
2120
- ] })
2121
- ] })
2122
- ] }) });
2123
- }
2124
- if (!data.personalitySummary && !data.engagementTips?.length) {
2125
- return null;
2126
- }
2127
- return /* @__PURE__ */ jsx("div", { className: "ds-lead-intelligence", children: /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__grid", children: [
2128
- data.personalitySummary && /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__card ds-lead-intelligence__card--personality", children: [
2129
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__card-header", children: [
2130
- /* @__PURE__ */ jsx(IconBrain, { size: 20 }),
2131
- /* @__PURE__ */ jsx("span", { className: "ds-lead-intelligence__card-title", children: "Personality Analysis" })
2132
- ] }),
2133
- /* @__PURE__ */ jsx("p", { className: "ds-lead-intelligence__narrative", children: data.personalitySummary }),
2134
- data.mbtiType && /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__mbti-badge", children: [
2135
- /* @__PURE__ */ jsx("span", { className: "ds-lead-intelligence__mbti-type", children: data.mbtiType }),
2136
- /* @__PURE__ */ jsx("span", { className: "ds-lead-intelligence__mbti-label", children: "Personality Type" })
2137
- ] })
2138
- ] }),
2139
- data.engagementTips && data.engagementTips.length > 0 && /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__card ds-lead-intelligence__card--engagement", children: [
2140
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__card-header", children: [
2141
- /* @__PURE__ */ jsx(IconTarget, { size: 20 }),
2142
- /* @__PURE__ */ jsx("span", { className: "ds-lead-intelligence__card-title", children: "How to Engage" })
2143
- ] }),
2144
- /* @__PURE__ */ jsx("div", { className: "ds-lead-intelligence__tips", children: data.engagementTips.map((tip, index) => /* @__PURE__ */ jsxs(
2145
- "div",
2146
- {
2147
- className: clsx4(
2148
- "ds-lead-intelligence__tip",
2149
- `ds-lead-intelligence__tip--${tip.type}`
2150
- ),
2151
- children: [
2152
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__tip-icon", children: [
2153
- tip.type === "do" && /* @__PURE__ */ jsx(IconThumbsUp, { size: 14 }),
2154
- tip.type === "dont" && /* @__PURE__ */ jsx(IconThumbsDown, { size: 14 }),
2155
- tip.type === "insight" && /* @__PURE__ */ jsx(IconLightbulb, { size: 14 })
2156
- ] }),
2157
- /* @__PURE__ */ jsxs("div", { className: "ds-lead-intelligence__tip-content", children: [
2158
- /* @__PURE__ */ jsx("span", { className: "ds-lead-intelligence__tip-text", children: tip.text }),
2159
- tip.detail && /* @__PURE__ */ jsx("span", { className: "ds-lead-intelligence__tip-detail", children: tip.detail })
2160
- ] })
2161
- ]
2162
- },
2163
- index
2164
- )) })
2165
- ] })
2166
- ] }) });
2167
- };
2168
- var DIMENSION_TOOLTIPS = {
2169
- energy: {
2170
- left: "Gains energy from social interaction and external activities",
2171
- right: "Recharges through solitude and internal reflection",
2172
- description: "Where you direct and receive energy"
2173
- },
2174
- mind: {
2175
- left: "Focuses on patterns, possibilities, and abstract thinking",
2176
- right: "Prefers concrete facts, details, and practical approaches",
2177
- description: "How you process information"
2178
- },
2179
- nature: {
2180
- left: "Prioritizes logic, consistency, and objective analysis",
2181
- right: "Values harmony, empathy, and personal considerations",
2182
- description: "How you make decisions"
2183
- },
2184
- tactics: {
2185
- left: "Prefers structure, planning, and decisive action",
2186
- right: "Favors flexibility, spontaneity, and keeping options open",
2187
- description: "How you organize your life"
2188
- }
2189
- };
2190
- var MBTISpectrum = ({
2191
- scores,
2192
- mbtiType,
2193
- isLocked = false
2194
- }) => {
2195
- const [hoveredDimension, setHoveredDimension] = useState(null);
2196
- if (isLocked) {
2197
- return /* @__PURE__ */ jsxs("div", { className: "ds-mbti ds-mbti--locked", children: [
2198
- /* @__PURE__ */ jsxs("div", { className: "ds-mbti__header", children: [
2199
- /* @__PURE__ */ jsx("h3", { className: "ds-mbti__title", children: "MBTI Personality Dimensions" }),
2200
- /* @__PURE__ */ jsxs("div", { className: "ds-mbti__locked-badge", children: [
2201
- /* @__PURE__ */ jsx(IconLock, { size: 14 }),
2202
- /* @__PURE__ */ jsx("span", { children: "Analysis in progress" })
2203
- ] })
2204
- ] }),
2205
- /* @__PURE__ */ jsx("div", { className: "ds-mbti__locked-content", children: [1, 2, 3, 4].map((i) => /* @__PURE__ */ jsxs("div", { className: "ds-mbti__row ds-mbti__row--locked", children: [
2206
- /* @__PURE__ */ jsx("span", { className: "ds-mbti__label ds-mbti__label--skeleton" }),
2207
- /* @__PURE__ */ jsx("div", { className: "ds-mbti__track ds-mbti__track--skeleton", children: /* @__PURE__ */ jsx("div", { className: "ds-mbti__skeleton-shimmer" }) }),
2208
- /* @__PURE__ */ jsx("span", { className: "ds-mbti__label ds-mbti__label--skeleton" })
2209
- ] }, i)) })
2210
- ] });
2211
- }
2212
- return /* @__PURE__ */ jsxs("div", { className: "ds-mbti", children: [
2213
- /* @__PURE__ */ jsxs("div", { className: "ds-mbti__header", children: [
2214
- /* @__PURE__ */ jsx("h3", { className: "ds-mbti__title", children: "Personality Dimensions" }),
2215
- mbtiType && /* @__PURE__ */ jsx("span", { className: "ds-mbti__type-badge", children: mbtiType })
2216
- ] }),
2217
- /* @__PURE__ */ jsx("div", { className: "ds-mbti__dimensions", children: scores.map((score) => {
2218
- const tooltip = DIMENSION_TOOLTIPS[score.dimension];
2219
- const isHovered = hoveredDimension === score.dimension;
2220
- const dominantSide = score.value < 50 ? "left" : "right";
2221
- const intensity = Math.abs(score.value - 50);
2222
- return /* @__PURE__ */ jsxs(
2223
- "div",
2224
- {
2225
- className: clsx4(
2226
- "ds-mbti__row",
2227
- `ds-mbti__row--${score.color}`,
2228
- isHovered && "ds-mbti__row--hovered"
2229
- ),
2230
- onMouseEnter: () => setHoveredDimension(score.dimension),
2231
- onMouseLeave: () => setHoveredDimension(null),
2232
- children: [
2233
- /* @__PURE__ */ jsxs(
2234
- "div",
2235
- {
2236
- className: clsx4(
2237
- "ds-mbti__label",
2238
- "ds-mbti__label--left",
2239
- dominantSide === "left" && "ds-mbti__label--active"
2240
- ),
2241
- children: [
2242
- /* @__PURE__ */ jsx("span", { className: "ds-mbti__label-text", children: score.leftLabel }),
2243
- dominantSide === "left" && /* @__PURE__ */ jsx("span", { className: "ds-mbti__label-strength", children: intensity > 30 ? "Strong" : intensity > 15 ? "Moderate" : "Slight" })
2244
- ]
2245
- }
2246
- ),
2247
- /* @__PURE__ */ jsxs("div", { className: "ds-mbti__track-container", children: [
2248
- /* @__PURE__ */ jsxs("div", { className: clsx4("ds-mbti__track", `ds-mbti__track--${score.color}`), children: [
2249
- /* @__PURE__ */ jsx("div", { className: "ds-mbti__track-center" }),
2250
- /* @__PURE__ */ jsx(
2251
- "div",
2252
- {
2253
- className: "ds-mbti__track-fill",
2254
- style: {
2255
- left: score.value < 50 ? `${score.value}%` : "50%",
2256
- width: `${Math.abs(score.value - 50)}%`
2257
- }
2258
- }
2259
- ),
2260
- /* @__PURE__ */ jsx("div", { className: "ds-mbti__thumb", style: { left: `${score.value}%` }, children: /* @__PURE__ */ jsx("div", { className: "ds-mbti__thumb-glow" }) })
2261
- ] }),
2262
- /* @__PURE__ */ jsx("span", { className: "ds-mbti__dimension-label", children: score.label })
2263
- ] }),
2264
- /* @__PURE__ */ jsxs(
2265
- "div",
2266
- {
2267
- className: clsx4(
2268
- "ds-mbti__label",
2269
- "ds-mbti__label--right",
2270
- dominantSide === "right" && "ds-mbti__label--active"
2271
- ),
2272
- children: [
2273
- /* @__PURE__ */ jsx("span", { className: "ds-mbti__label-text", children: score.rightLabel }),
2274
- dominantSide === "right" && /* @__PURE__ */ jsx("span", { className: "ds-mbti__label-strength", children: intensity > 30 ? "Strong" : intensity > 15 ? "Moderate" : "Slight" })
2275
- ]
2276
- }
2277
- ),
2278
- /* @__PURE__ */ jsx(
2279
- "button",
2280
- {
2281
- className: "ds-mbti__info-button",
2282
- "aria-label": `Learn more about ${score.label}`,
2283
- children: /* @__PURE__ */ jsx(IconInfo, { size: 14 })
2284
- }
2285
- ),
2286
- isHovered && tooltip && /* @__PURE__ */ jsxs("div", { className: "ds-mbti__tooltip", children: [
2287
- /* @__PURE__ */ jsx("p", { className: "ds-mbti__tooltip-description", children: tooltip.description }),
2288
- /* @__PURE__ */ jsxs("div", { className: "ds-mbti__tooltip-traits", children: [
2289
- /* @__PURE__ */ jsxs("div", { className: "ds-mbti__tooltip-trait", children: [
2290
- /* @__PURE__ */ jsxs("strong", { children: [
2291
- score.leftLabel,
2292
- ":"
2293
- ] }),
2294
- " ",
2295
- tooltip.left
2296
- ] }),
2297
- /* @__PURE__ */ jsxs("div", { className: "ds-mbti__tooltip-trait", children: [
2298
- /* @__PURE__ */ jsxs("strong", { children: [
2299
- score.rightLabel,
2300
- ":"
2301
- ] }),
2302
- " ",
2303
- tooltip.right
2304
- ] })
2305
- ] })
2306
- ] })
2307
- ]
2308
- },
2309
- score.dimension
2310
- );
2311
- }) })
2312
- ] });
2313
- };
2314
- var COMMUNICATION_LABELS = {
2315
- visual: { label: "Visual", description: "Prefers diagrams, charts, and visual presentations" },
2316
- verbal: { label: "Verbal", description: "Responds best to conversations and discussions" },
2317
- analytical: { label: "Analytical", description: "Values data, logic, and detailed analysis" },
2318
- written: { label: "Written", description: "Prefers documented, well-structured communication" }
2319
- };
2320
- var DECISION_LABELS = {
2321
- fast: { label: "Fast Decider", description: "Makes quick decisions with available information" },
2322
- deliberate: { label: "Deliberate", description: "Takes time to weigh all options carefully" },
2323
- consensus: { label: "Consensus Builder", description: "Seeks input from others before deciding" },
2324
- "data-driven": {
2325
- label: "Data-Driven",
2326
- description: "Requires strong evidence to make decisions"
2327
- }
2328
- };
2329
- var BehavioralHighlights = ({
2330
- signals,
2331
- isLocked = false
2332
- }) => {
2333
- if (isLocked) {
2334
- return /* @__PURE__ */ jsxs("div", { className: "ds-behavioral ds-behavioral--locked", children: [
2335
- /* @__PURE__ */ jsxs("div", { className: "ds-behavioral__header", children: [
2336
- /* @__PURE__ */ jsx("h3", { className: "ds-behavioral__title", children: "Behavioral Signals" }),
2337
- /* @__PURE__ */ jsxs("div", { className: "ds-behavioral__locked-badge", children: [
2338
- /* @__PURE__ */ jsx(IconLock, { size: 14 }),
2339
- /* @__PURE__ */ jsx("span", { children: "Analyzing patterns..." })
2340
- ] })
2341
- ] }),
2342
- /* @__PURE__ */ jsx("div", { className: "ds-behavioral__grid", children: [1, 2, 3].map((i) => /* @__PURE__ */ jsx("div", { className: "ds-behavioral__item ds-behavioral__item--skeleton", children: /* @__PURE__ */ jsx("div", { className: "ds-behavioral__item-shimmer" }) }, i)) })
2343
- ] });
2344
- }
2345
- const hasAnySignal = signals.communicationStyle || signals.decisionStyle || signals.riskTolerance !== void 0;
2346
- if (!hasAnySignal) {
2347
- return null;
2348
- }
2349
- return /* @__PURE__ */ jsxs("div", { className: "ds-behavioral", children: [
2350
- /* @__PURE__ */ jsx("div", { className: "ds-behavioral__header", children: /* @__PURE__ */ jsx("h3", { className: "ds-behavioral__title", children: "Behavioral Signals" }) }),
2351
- /* @__PURE__ */ jsxs("div", { className: "ds-behavioral__grid", children: [
2352
- signals.communicationStyle && /* @__PURE__ */ jsxs("div", { className: "ds-behavioral__item", children: [
2353
- /* @__PURE__ */ jsx("div", { className: "ds-behavioral__item-icon", children: /* @__PURE__ */ jsx(IconMessageCircle, { size: 18 }) }),
2354
- /* @__PURE__ */ jsxs("div", { className: "ds-behavioral__item-content", children: [
2355
- /* @__PURE__ */ jsx("span", { className: "ds-behavioral__item-label", children: "Communication Style" }),
2356
- /* @__PURE__ */ jsx("span", { className: "ds-behavioral__item-value", children: COMMUNICATION_LABELS[signals.communicationStyle].label }),
2357
- /* @__PURE__ */ jsx("span", { className: "ds-behavioral__item-description", children: COMMUNICATION_LABELS[signals.communicationStyle].description })
2358
- ] })
2359
- ] }),
2360
- signals.decisionStyle && /* @__PURE__ */ jsxs("div", { className: "ds-behavioral__item", children: [
2361
- /* @__PURE__ */ jsx("div", { className: "ds-behavioral__item-icon", children: /* @__PURE__ */ jsx(IconZap, { size: 18 }) }),
2362
- /* @__PURE__ */ jsxs("div", { className: "ds-behavioral__item-content", children: [
2363
- /* @__PURE__ */ jsx("span", { className: "ds-behavioral__item-label", children: "Decision Making" }),
2364
- /* @__PURE__ */ jsx("span", { className: "ds-behavioral__item-value", children: DECISION_LABELS[signals.decisionStyle].label }),
2365
- /* @__PURE__ */ jsx("span", { className: "ds-behavioral__item-description", children: DECISION_LABELS[signals.decisionStyle].description })
2366
- ] })
2367
- ] }),
2368
- signals.riskTolerance !== void 0 && /* @__PURE__ */ jsxs("div", { className: "ds-behavioral__item", children: [
2369
- /* @__PURE__ */ jsx("div", { className: "ds-behavioral__item-icon", children: /* @__PURE__ */ jsx(IconTrendingUp, { size: 18 }) }),
2370
- /* @__PURE__ */ jsxs("div", { className: "ds-behavioral__item-content", children: [
2371
- /* @__PURE__ */ jsx("span", { className: "ds-behavioral__item-label", children: "Risk Tolerance" }),
2372
- /* @__PURE__ */ jsxs("div", { className: "ds-behavioral__risk-meter", children: [
2373
- /* @__PURE__ */ jsx("div", { className: "ds-behavioral__risk-track", children: /* @__PURE__ */ jsx(
2374
- "div",
2375
- {
2376
- className: clsx4(
2377
- "ds-behavioral__risk-fill",
2378
- signals.riskTolerance < 33 && "ds-behavioral__risk-fill--low",
2379
- signals.riskTolerance >= 33 && signals.riskTolerance < 66 && "ds-behavioral__risk-fill--medium",
2380
- signals.riskTolerance >= 66 && "ds-behavioral__risk-fill--high"
2381
- ),
2382
- style: { width: `${signals.riskTolerance}%` }
2383
- }
2384
- ) }),
2385
- /* @__PURE__ */ jsxs("span", { className: "ds-behavioral__risk-label", children: [
2386
- signals.riskTolerance < 33 && "Conservative",
2387
- signals.riskTolerance >= 33 && signals.riskTolerance < 66 && "Balanced",
2388
- signals.riskTolerance >= 66 && "Risk-Tolerant"
2389
- ] })
2390
- ] })
2391
- ] })
2392
- ] })
2393
- ] })
2394
- ] });
2395
- };
2396
- var DeepDiveSection = ({
2397
- data,
2398
- defaultExpanded = false
2399
- }) => {
2400
- const [isExpanded, setIsExpanded] = useState(defaultExpanded);
2401
- const hasContent = data.education?.length || data.experience?.length || data.strengths?.length || data.risks?.length || data.careerInsights;
2402
- if (!hasContent) {
2403
- return null;
2404
- }
2405
- return /* @__PURE__ */ jsxs("div", { className: clsx4("ds-deep-dive", isExpanded && "ds-deep-dive--expanded"), children: [
2406
- /* @__PURE__ */ jsxs(
2407
- "button",
2408
- {
2409
- className: "ds-deep-dive__trigger",
2410
- onClick: () => setIsExpanded(!isExpanded),
2411
- "aria-expanded": isExpanded,
2412
- "aria-controls": "deep-dive-content",
2413
- children: [
2414
- /* @__PURE__ */ jsx("span", { className: "ds-deep-dive__trigger-text", children: "Deep Dive & Background" }),
2415
- /* @__PURE__ */ jsx("span", { className: "ds-deep-dive__trigger-icon", children: isExpanded ? /* @__PURE__ */ jsx(IconChevronUp, { size: 16 }) : /* @__PURE__ */ jsx(IconChevronDown, { size: 16 }) })
2416
- ]
2417
- }
2418
- ),
2419
- isExpanded && /* @__PURE__ */ jsx("div", { id: "deep-dive-content", className: "ds-deep-dive__content", children: /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__grid", children: [
2420
- (data.strengths?.length || data.risks?.length) && /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__card ds-deep-dive__card--insights", children: [
2421
- data.strengths && data.strengths.length > 0 && /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__section", children: [
2422
- /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__section-header ds-deep-dive__section-header--success", children: [
2423
- /* @__PURE__ */ jsx(IconTrendingUp, { size: 16 }),
2424
- /* @__PURE__ */ jsx("h4", { className: "ds-deep-dive__section-title", children: "Key Strengths" })
2425
- ] }),
2426
- /* @__PURE__ */ jsx("ul", { className: "ds-deep-dive__list", children: data.strengths.map((strength, idx) => /* @__PURE__ */ jsx("li", { className: "ds-deep-dive__list-item", children: strength }, idx)) })
2427
- ] }),
2428
- data.risks && data.risks.length > 0 && /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__section", children: [
2429
- /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__section-header ds-deep-dive__section-header--warning", children: [
2430
- /* @__PURE__ */ jsx(IconAlertTriangle, { size: 16 }),
2431
- /* @__PURE__ */ jsx("h4", { className: "ds-deep-dive__section-title", children: "Watch Out For" })
2432
- ] }),
2433
- /* @__PURE__ */ jsx("ul", { className: "ds-deep-dive__list", children: data.risks.map((risk, idx) => /* @__PURE__ */ jsx("li", { className: "ds-deep-dive__list-item", children: risk }, idx)) })
2434
- ] })
2435
- ] }),
2436
- data.education && data.education.length > 0 && /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__card", children: [
2437
- /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__section-header", children: [
2438
- /* @__PURE__ */ jsx(IconSchool, { size: 16 }),
2439
- /* @__PURE__ */ jsx("h4", { className: "ds-deep-dive__section-title", children: "Education" })
2440
- ] }),
2441
- /* @__PURE__ */ jsx("div", { className: "ds-deep-dive__timeline", children: data.education.map((edu, idx) => /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__timeline-item", children: [
2442
- edu.logo ? /* @__PURE__ */ jsx(
2443
- "img",
2444
- {
2445
- src: edu.logo,
2446
- alt: edu.school,
2447
- className: "ds-deep-dive__timeline-logo"
2448
- }
2449
- ) : /* @__PURE__ */ jsx("div", { className: "ds-deep-dive__timeline-icon", children: /* @__PURE__ */ jsx(IconSchool, { size: 16 }) }),
2450
- /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__timeline-content", children: [
2451
- /* @__PURE__ */ jsx("h5", { className: "ds-deep-dive__timeline-title", children: edu.school }),
2452
- /* @__PURE__ */ jsxs("p", { className: "ds-deep-dive__timeline-subtitle", children: [
2453
- edu.degree,
2454
- edu.field && ` in ${edu.field}`
2455
- ] }),
2456
- /* @__PURE__ */ jsx("span", { className: "ds-deep-dive__timeline-date", children: edu.year })
2457
- ] })
2458
- ] }, idx)) })
2459
- ] }),
2460
- data.experience && data.experience.length > 0 && /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__card", children: [
2461
- /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__section-header", children: [
2462
- /* @__PURE__ */ jsx(IconBriefcase, { size: 16 }),
2463
- /* @__PURE__ */ jsx("h4", { className: "ds-deep-dive__section-title", children: "Experience" })
2464
- ] }),
2465
- /* @__PURE__ */ jsx("div", { className: "ds-deep-dive__timeline", children: data.experience.map((exp, idx) => /* @__PURE__ */ jsxs(
2466
- "div",
2467
- {
2468
- className: clsx4(
2469
- "ds-deep-dive__timeline-item",
2470
- exp.current && "ds-deep-dive__timeline-item--current"
2471
- ),
2472
- children: [
2473
- exp.logo ? /* @__PURE__ */ jsx(
2474
- "img",
2475
- {
2476
- src: exp.logo,
2477
- alt: exp.company,
2478
- className: "ds-deep-dive__timeline-logo"
2479
- }
2480
- ) : /* @__PURE__ */ jsx("div", { className: "ds-deep-dive__timeline-icon", children: /* @__PURE__ */ jsx(IconBriefcase, { size: 16 }) }),
2481
- /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__timeline-content", children: [
2482
- /* @__PURE__ */ jsx("h5", { className: "ds-deep-dive__timeline-title", children: exp.role }),
2483
- /* @__PURE__ */ jsx("p", { className: "ds-deep-dive__timeline-subtitle", children: exp.company }),
2484
- /* @__PURE__ */ jsxs("span", { className: "ds-deep-dive__timeline-date", children: [
2485
- exp.duration,
2486
- exp.current && /* @__PURE__ */ jsx("span", { className: "ds-deep-dive__current-badge", children: "Current" })
2487
- ] })
2488
- ] })
2489
- ]
2490
- },
2491
- idx
2492
- )) })
2493
- ] }),
2494
- data.careerInsights && /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__card ds-deep-dive__card--wide", children: [
2495
- /* @__PURE__ */ jsxs("div", { className: "ds-deep-dive__section-header", children: [
2496
- /* @__PURE__ */ jsx(IconTrendingUp, { size: 16 }),
2497
- /* @__PURE__ */ jsx("h4", { className: "ds-deep-dive__section-title", children: "Career Trajectory" })
2498
- ] }),
2499
- /* @__PURE__ */ jsx("p", { className: "ds-deep-dive__narrative", children: data.careerInsights })
2500
- ] })
2501
- ] }) })
2502
- ] });
2503
- };
2504
- var LeadProfileView = React4.forwardRef(
2505
- ({ state, data, analysisProgress, onRefresh, className }, ref) => {
2506
- if (state === "empty") {
2507
- return /* @__PURE__ */ jsx("div", { ref, className: clsx4("ds-lead-profile", "ds-lead-profile--empty", className), children: /* @__PURE__ */ jsx(EmptyStateDisplay, { onRefresh }) });
2508
- }
2509
- if (state === "loading") {
2510
- return /* @__PURE__ */ jsx("div", { ref, className: clsx4("ds-lead-profile", "ds-lead-profile--loading", className), children: /* @__PURE__ */ jsx(LoadingStateDisplay, { progress: analysisProgress }) });
2511
- }
2512
- if (!data) return null;
2513
- const isPartial = state === "partial";
2514
- const hasMBTI = !isPartial && data.mbtiScores?.length;
2515
- const hasBehavioral = !isPartial && data.behavioralSignals;
2516
- return /* @__PURE__ */ jsxs("div", { ref, className: clsx4("ds-lead-profile", `ds-lead-profile--${state}`, className), children: [
2517
- /* @__PURE__ */ jsx("section", { className: "ds-lead-profile__zone ds-lead-profile__zone--identity", children: /* @__PURE__ */ jsx(IdentityHeader, { data, compact: isPartial }) }),
2518
- /* @__PURE__ */ jsxs("section", { className: "ds-lead-profile__zone ds-lead-profile__zone--intelligence", children: [
2519
- /* @__PURE__ */ jsx(IntelligenceSummary, { data, isLocked: isPartial }),
2520
- (hasMBTI || isPartial) && /* @__PURE__ */ jsx("div", { className: "ds-lead-profile__mbti-wrapper", children: /* @__PURE__ */ jsx(
2521
- MBTISpectrum,
2522
- {
2523
- scores: data.mbtiScores || [],
2524
- mbtiType: data.mbtiType,
2525
- isLocked: isPartial
2526
- }
2527
- ) }),
2528
- (hasBehavioral || isPartial) && data.behavioralSignals && /* @__PURE__ */ jsx(BehavioralHighlights, { signals: data.behavioralSignals, isLocked: isPartial }),
2529
- isPartial && /* @__PURE__ */ jsx("div", { className: "ds-lead-profile__partial-notice", children: /* @__PURE__ */ jsxs("div", { className: "ds-lead-profile__partial-notice-content", children: [
2530
- /* @__PURE__ */ jsx("span", { className: "ds-lead-profile__partial-notice-text", children: "Full intelligence analysis will be available shortly" }),
2531
- /* @__PURE__ */ jsx("div", { className: "ds-lead-profile__partial-notice-progress", children: /* @__PURE__ */ jsx("div", { className: "ds-lead-profile__partial-notice-bar" }) })
2532
- ] }) })
2533
- ] }),
2534
- !isPartial && /* @__PURE__ */ jsx("section", { className: "ds-lead-profile__zone ds-lead-profile__zone--deep-dive", children: /* @__PURE__ */ jsx(DeepDiveSection, { data }) })
2535
- ] });
2536
- }
2537
- );
2538
- LeadProfileView.displayName = "LeadProfileView";
2539
-
2540
- export { ChangeEmail, DataTable, DataTableBody, DataTableCell, DataTableHead, DataTableHeader, DataTableRow, FloatingTabBar, ForgotPassword, LeadProfileView, Login, Shell, Sidebar, SidebarItem, SidebarSection, Signup, TabItem };
2541
- //# sourceMappingURL=out.js.map
2542
- //# sourceMappingURL=chunk-5SN66B2X.js.map