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