@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,701 +0,0 @@
1
- import { VARIANTS } from './chunk-BUTQSDQH.js';
2
- import { SectionShell } from './chunk-VFJZQQZU.js';
3
- import { OutboundLink } from './chunk-KJ2OXQF4.js';
4
- import React3, { forwardRef, useState, useRef, useEffect, useCallback } from 'react';
5
- import clsx4 from 'clsx';
6
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
7
- import { motion } from 'framer-motion';
8
- import { Dialog } from '@base-ui/react/dialog';
9
-
10
- var StarRating = forwardRef(
11
- ({
12
- value,
13
- max = 5,
14
- size = "md",
15
- animate = false,
16
- showValue = false,
17
- valueLabel,
18
- className,
19
- ...props
20
- }, ref) => {
21
- const [visible, setVisible] = useState(!animate);
22
- const containerRef = useRef(null);
23
- useEffect(() => {
24
- if (!animate) return;
25
- if (typeof window !== "undefined") {
26
- const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
27
- if (mq.matches) {
28
- setVisible(true);
29
- return;
30
- }
31
- }
32
- const target = containerRef.current;
33
- if (!target) return;
34
- const observer = new IntersectionObserver(
35
- ([entry]) => {
36
- if (entry.isIntersecting) {
37
- setVisible(true);
38
- observer.disconnect();
39
- }
40
- },
41
- { threshold: 0.5 }
42
- );
43
- observer.observe(target);
44
- return () => observer.disconnect();
45
- }, [animate]);
46
- const clampedValue = Math.min(Math.max(value, 0), max);
47
- const stars = Array.from({ length: max }, (_, i) => {
48
- const starIndex = i + 1;
49
- const fillPercent = clampedValue >= starIndex ? 100 : clampedValue > starIndex - 1 ? (clampedValue - (starIndex - 1)) * 100 : 0;
50
- return /* @__PURE__ */ jsxs(
51
- "span",
52
- {
53
- className: clsx4(
54
- "ds-star-rating__star",
55
- visible && "ds-star-rating__star--visible"
56
- ),
57
- style: {
58
- "--star-fill": `${fillPercent}%`,
59
- "--star-delay": animate ? `${i * 100}ms` : "0ms"
60
- },
61
- children: [
62
- /* @__PURE__ */ jsx(
63
- "svg",
64
- {
65
- viewBox: "0 0 24 24",
66
- fill: "none",
67
- xmlns: "http://www.w3.org/2000/svg",
68
- className: "ds-star-rating__svg",
69
- "aria-hidden": "true",
70
- children: /* @__PURE__ */ jsx(
71
- "path",
72
- {
73
- d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",
74
- className: "ds-star-rating__empty"
75
- }
76
- )
77
- }
78
- ),
79
- /* @__PURE__ */ jsx(
80
- "svg",
81
- {
82
- viewBox: "0 0 24 24",
83
- fill: "none",
84
- xmlns: "http://www.w3.org/2000/svg",
85
- className: "ds-star-rating__svg ds-star-rating__svg--filled",
86
- "aria-hidden": "true",
87
- style: {
88
- clipPath: `inset(0 ${100 - fillPercent}% 0 0)`
89
- },
90
- children: /* @__PURE__ */ jsx(
91
- "path",
92
- {
93
- d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",
94
- className: "ds-star-rating__filled"
95
- }
96
- )
97
- }
98
- )
99
- ]
100
- },
101
- i
102
- );
103
- });
104
- return /* @__PURE__ */ jsxs(
105
- "div",
106
- {
107
- ref: (node) => {
108
- containerRef.current = node;
109
- if (typeof ref === "function") ref(node);
110
- else if (ref) ref.current = node;
111
- },
112
- className: clsx4("ds-star-rating", `ds-star-rating--${size}`, className),
113
- role: "img",
114
- "aria-label": `${clampedValue} out of ${max} stars`,
115
- ...props,
116
- children: [
117
- /* @__PURE__ */ jsx("span", { className: "ds-star-rating__stars", children: stars }),
118
- showValue && /* @__PURE__ */ jsxs("span", { className: "ds-star-rating__value", children: [
119
- clampedValue.toLocaleString(void 0, {
120
- minimumFractionDigits: clampedValue % 1 !== 0 ? 1 : 0,
121
- maximumFractionDigits: 1
122
- }),
123
- valueLabel && /* @__PURE__ */ jsx("span", { className: "ds-star-rating__value-label", children: valueLabel })
124
- ] })
125
- ]
126
- }
127
- );
128
- }
129
- );
130
- StarRating.displayName = "StarRating";
131
- var TrustpilotIcon = ({ size }) => /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M12 2l2.9 8.9H24l-7.35 5.34 2.81 8.64L12 19.56l-7.46 5.32 2.81-8.64L0 10.9h9.1L12 2z", fill: "#00B67A" }) });
132
- var G2Icon = ({ size }) => /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
133
- /* @__PURE__ */ jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z", fill: "#FF492C" }),
134
- /* @__PURE__ */ jsx("text", { x: "50%", y: "54%", dominantBaseline: "middle", textAnchor: "middle", fill: "white", fontWeight: "bold", fontSize: "11", fontFamily: "Arial, sans-serif", children: "G2" })
135
- ] });
136
- var GoogleIcon = ({ size }) => /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
137
- /* @__PURE__ */ jsx("path", { d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 01-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z", fill: "#4285F4" }),
138
- /* @__PURE__ */ jsx("path", { 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", fill: "#34A853" }),
139
- /* @__PURE__ */ jsx("path", { d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A10.96 10.96 0 001 12c0 1.77.42 3.45 1.18 4.93l3.66-2.84z", fill: "#FBBC05" }),
140
- /* @__PURE__ */ jsx("path", { 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", fill: "#EA4335" })
141
- ] });
142
- var ChromeWebStoreIcon = ({ size }) => /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
143
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "#4285F4", opacity: "0.1", stroke: "#4285F4", strokeWidth: "1.5" }),
144
- /* @__PURE__ */ jsx("path", { d: "M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8.5c-1.93 0-3.5-1.57-3.5-3.5S10.07 8.5 12 8.5s3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z", fill: "#4285F4" }),
145
- /* @__PURE__ */ jsx("path", { d: "M7.5 10.5L4 5.5", stroke: "#EA4335", strokeWidth: "1.5", strokeLinecap: "round" }),
146
- /* @__PURE__ */ jsx("path", { d: "M16.5 10.5L20 5.5", stroke: "#FBBC05", strokeWidth: "1.5", strokeLinecap: "round" }),
147
- /* @__PURE__ */ jsx("path", { d: "M12 17l-3.5 5", stroke: "#34A853", strokeWidth: "1.5", strokeLinecap: "round" })
148
- ] });
149
- var PLATFORM_ICONS = {
150
- trustpilot: TrustpilotIcon,
151
- g2: G2Icon,
152
- google: GoogleIcon,
153
- "chrome-web-store": ChromeWebStoreIcon
154
- };
155
- var PLATFORM_LABELS = {
156
- trustpilot: "Trustpilot",
157
- g2: "G2",
158
- google: "Google",
159
- "chrome-web-store": "Chrome Web Store"
160
- };
161
- var PLATFORM_COLORS = {
162
- trustpilot: "#00B67A",
163
- g2: "#FF492C",
164
- google: "#4285F4",
165
- "chrome-web-store": "#4285F4"
166
- };
167
- var PlatformBadge = forwardRef(
168
- ({
169
- platform,
170
- variant = "icon-label",
171
- rating,
172
- count,
173
- size = "sm",
174
- className,
175
- ...props
176
- }, ref) => {
177
- const Icon = PLATFORM_ICONS[platform];
178
- const label = PLATFORM_LABELS[platform];
179
- const accentColor = PLATFORM_COLORS[platform];
180
- const iconSize = size === "sm" ? 18 : 22;
181
- return /* @__PURE__ */ jsxs(
182
- "div",
183
- {
184
- ref,
185
- role: "img",
186
- className: clsx4(
187
- "ds-platform-badge",
188
- `ds-platform-badge--${variant}`,
189
- `ds-platform-badge--${size}`,
190
- className
191
- ),
192
- style: { "--platform-accent": accentColor },
193
- "aria-label": variant === "full" && rating ? `${label}: ${rating} stars${count ? ` from ${count} reviews` : ""}` : label,
194
- ...props,
195
- children: [
196
- /* @__PURE__ */ jsx("span", { className: "ds-platform-badge__icon", children: /* @__PURE__ */ jsx(Icon, { size: iconSize }) }),
197
- variant !== "icon-only" && /* @__PURE__ */ jsx("span", { className: "ds-platform-badge__label", children: label }),
198
- variant === "full" && rating != null && /* @__PURE__ */ jsxs("span", { className: "ds-platform-badge__rating", children: [
199
- /* @__PURE__ */ jsx(StarRating, { value: rating, size: "sm" }),
200
- count != null && /* @__PURE__ */ jsxs("span", { className: "ds-platform-badge__count", children: [
201
- "(",
202
- count,
203
- ")"
204
- ] })
205
- ] })
206
- ]
207
- }
208
- );
209
- }
210
- );
211
- PlatformBadge.displayName = "PlatformBadge";
212
- var PlayIcon = () => /* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M8 5v14l11-7z" }) });
213
- var SocialProofCard = forwardRef(
214
- ({
215
- variant = "simple",
216
- content,
217
- author,
218
- media,
219
- sourceIcon,
220
- platform,
221
- starRating,
222
- date,
223
- badges,
224
- ctaText,
225
- href,
226
- className,
227
- children,
228
- animationDelay,
229
- headline,
230
- logo,
231
- industry,
232
- metrics,
233
- ...props
234
- }, ref) => {
235
- const cardClass = clsx4(
236
- "ds-social-card",
237
- `ds-social-card--${variant}`,
238
- animationDelay != null && "ds-social-card--animated",
239
- className
240
- );
241
- const cardStyle = animationDelay != null ? { "--card-delay": `${animationDelay}ms` } : void 0;
242
- if (variant === "rating-only") {
243
- const inner = /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: "ds-social-card__rating-row", children: [
244
- starRating != null && /* @__PURE__ */ jsx(StarRating, { value: starRating, size: "lg" }),
245
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__meta", children: [
246
- /* @__PURE__ */ jsx("span", { className: "ds-social-card__name", children: author.name }),
247
- (author.role || author.company) && /* @__PURE__ */ jsxs("span", { className: "ds-social-card__role", children: [
248
- author.role,
249
- author.role && author.company && " \xB7 ",
250
- author.company
251
- ] })
252
- ] }),
253
- platform && /* @__PURE__ */ jsx(PlatformBadge, { platform, variant: "icon-label", size: "sm" })
254
- ] }) });
255
- if (href) {
256
- return /* @__PURE__ */ jsx(OutboundLink, { ref, href, context: "social-proof-card", className: cardClass, style: cardStyle, openInNewTab: false, ...props, children: inner });
257
- }
258
- return /* @__PURE__ */ jsx("div", { ref, className: cardClass, style: cardStyle, ...props, children: inner });
259
- }
260
- if (variant === "case-study") {
261
- const defaultCta2 = ctaText || "Read Case Study \u2192";
262
- const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
263
- media && /* @__PURE__ */ jsx("div", { className: "ds-social-card__media", children: /* @__PURE__ */ jsx("img", { src: media.src, alt: media.alt || `${author.company} case study` }) }),
264
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__content", children: [
265
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__cs-header", children: [
266
- logo && /* @__PURE__ */ jsx("div", { className: "ds-social-card__cs-logo", children: logo }),
267
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__cs-company", children: [
268
- /* @__PURE__ */ jsx("span", { className: "ds-social-card__name", children: author.company || author.name }),
269
- industry && /* @__PURE__ */ jsx("span", { className: "ds-social-card__cs-industry", children: industry })
270
- ] })
271
- ] }),
272
- headline && /* @__PURE__ */ jsx("h3", { className: "ds-social-card__cs-headline", children: headline }),
273
- metrics && metrics.length > 0 && /* @__PURE__ */ jsx("div", { className: "ds-social-card__cs-metrics", children: metrics.map((m, i) => /* @__PURE__ */ jsxs("div", { className: "ds-social-card__cs-metric", children: [
274
- /* @__PURE__ */ jsxs("span", { className: "ds-social-card__cs-metric-value", children: [
275
- m.prefix,
276
- m.value,
277
- m.suffix
278
- ] }),
279
- /* @__PURE__ */ jsx("span", { className: "ds-social-card__cs-metric-label", children: m.label })
280
- ] }, i)) }),
281
- content && /* @__PURE__ */ jsxs("blockquote", { className: "ds-social-card__quote ds-social-card__quote--excerpt", children: [
282
- "\u201C",
283
- content,
284
- "\u201D"
285
- ] }),
286
- href && /* @__PURE__ */ jsx("div", { className: "ds-social-card__cta", children: defaultCta2 })
287
- ] })
288
- ] });
289
- if (href) {
290
- return /* @__PURE__ */ jsx(OutboundLink, { ref, href, context: "social-proof-card", className: cardClass, style: cardStyle, openInNewTab: false, ...props, children: inner });
291
- }
292
- return /* @__PURE__ */ jsx("div", { ref, className: cardClass, style: cardStyle, ...props, children: inner });
293
- }
294
- if (variant === "video") {
295
- const defaultCta2 = ctaText || "Watch Video \u2192";
296
- const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
297
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__media", children: [
298
- media ? /* @__PURE__ */ jsx("img", { src: media.src, alt: media.alt || `${author.name} video` }) : /* @__PURE__ */ jsx("div", { className: "ds-social-card__media-placeholder" }),
299
- /* @__PURE__ */ jsx("div", { className: "ds-social-card__play", children: /* @__PURE__ */ jsx("div", { className: "ds-social-card__play-icon", children: /* @__PURE__ */ jsx(PlayIcon, {}) }) }),
300
- badges && badges.length > 0 && /* @__PURE__ */ jsx("div", { className: "ds-social-card__badges", children: badges.map((badge, idx) => /* @__PURE__ */ jsx("span", { className: "ds-social-card__badge", children: badge }, idx)) })
301
- ] }),
302
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__content", children: [
303
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__author", children: [
304
- author.avatar && /* @__PURE__ */ jsx("div", { className: "ds-social-card__avatar", children: /* @__PURE__ */ jsx("img", { src: author.avatar, alt: author.name }) }),
305
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__meta", children: [
306
- /* @__PURE__ */ jsx("span", { className: "ds-social-card__name", children: author.name }),
307
- (author.role || author.company) && /* @__PURE__ */ jsxs("span", { className: "ds-social-card__role", children: [
308
- author.role,
309
- author.role && author.company && " \xB7 ",
310
- author.company
311
- ] })
312
- ] }),
313
- platform && /* @__PURE__ */ jsx(PlatformBadge, { platform, variant: "icon-only", size: "sm" })
314
- ] }),
315
- content && /* @__PURE__ */ jsx("blockquote", { className: "ds-social-card__quote", children: content }),
316
- href && /* @__PURE__ */ jsx("div", { className: "ds-social-card__cta", children: defaultCta2 })
317
- ] })
318
- ] });
319
- if (href) {
320
- return /* @__PURE__ */ jsx(OutboundLink, { ref, href, context: "social-proof-card", className: cardClass, style: cardStyle, openInNewTab: false, ...props, children: inner });
321
- }
322
- return /* @__PURE__ */ jsx("div", { ref, className: cardClass, style: cardStyle, ...props, children: inner });
323
- }
324
- if (variant === "social") {
325
- const inner = /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { className: "ds-social-card__content", children: [
326
- (platform || sourceIcon) && /* @__PURE__ */ jsx("div", { className: "ds-social-card__source", children: platform ? /* @__PURE__ */ jsx(PlatformBadge, { platform, variant: "icon-only", size: "sm" }) : sourceIcon }),
327
- content && /* @__PURE__ */ jsx("blockquote", { className: "ds-social-card__quote ds-social-card__quote--clamp", children: content }),
328
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__author", children: [
329
- author.avatar && /* @__PURE__ */ jsx("div", { className: "ds-social-card__avatar", children: /* @__PURE__ */ jsx("img", { src: author.avatar, alt: author.name }) }),
330
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__meta", children: [
331
- /* @__PURE__ */ jsx("span", { className: "ds-social-card__name", children: author.name }),
332
- (author.role || author.company) && /* @__PURE__ */ jsxs("span", { className: "ds-social-card__role", children: [
333
- author.role,
334
- author.role && author.company && " \xB7 ",
335
- author.company
336
- ] }),
337
- date && /* @__PURE__ */ jsx("span", { className: "ds-social-card__role", children: date })
338
- ] })
339
- ] }),
340
- starRating != null && /* @__PURE__ */ jsx(StarRating, { value: starRating, size: "sm" }),
341
- children
342
- ] }) });
343
- if (href) {
344
- return /* @__PURE__ */ jsx(OutboundLink, { ref, href, context: "social-proof-card", className: cardClass, style: cardStyle, openInNewTab: false, ...props, children: inner });
345
- }
346
- return /* @__PURE__ */ jsx("div", { ref, className: cardClass, style: cardStyle, ...props, children: inner });
347
- }
348
- const BadgeList = badges && badges.length > 0 && /* @__PURE__ */ jsx("div", { className: "ds-social-card__badges", children: badges.map((badge, idx) => /* @__PURE__ */ jsx("span", { className: "ds-social-card__badge", children: badge }, idx)) });
349
- const defaultCta = ctaText || "Read Story \u2192";
350
- const simpleInner = /* @__PURE__ */ jsxs("div", { className: "ds-social-card__content", children: [
351
- /* @__PURE__ */ jsx("div", { className: "ds-social-card__deco-quote", "aria-hidden": "true", children: "\u201C" }),
352
- (platform || sourceIcon) && /* @__PURE__ */ jsx("div", { className: "ds-social-card__source", children: platform ? /* @__PURE__ */ jsx(PlatformBadge, { platform, variant: "icon-only", size: "sm" }) : sourceIcon }),
353
- BadgeList,
354
- content && /* @__PURE__ */ jsx("blockquote", { className: "ds-social-card__quote", children: content }),
355
- starRating != null && /* @__PURE__ */ jsx(StarRating, { value: starRating, size: "sm" }),
356
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__author", children: [
357
- author.avatar && /* @__PURE__ */ jsx("div", { className: "ds-social-card__avatar", children: /* @__PURE__ */ jsx("img", { src: author.avatar, alt: author.name }) }),
358
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__meta", children: [
359
- /* @__PURE__ */ jsxs("span", { className: "ds-social-card__name", children: [
360
- author.name,
361
- author.handle && /* @__PURE__ */ jsxs("span", { className: "ds-social-card__handle", children: [
362
- "@",
363
- author.handle
364
- ] })
365
- ] }),
366
- (author.role || author.company) && /* @__PURE__ */ jsxs("span", { className: "ds-social-card__role", children: [
367
- author.role,
368
- author.role && author.company && " \xB7 ",
369
- author.company
370
- ] }),
371
- date && /* @__PURE__ */ jsx("span", { className: "ds-social-card__role", children: date })
372
- ] })
373
- ] }),
374
- children,
375
- href && /* @__PURE__ */ jsx("div", { className: "ds-social-card__cta", children: defaultCta })
376
- ] });
377
- if (href) {
378
- return /* @__PURE__ */ jsx(OutboundLink, { ref, href, context: "social-proof-card", className: cardClass, style: cardStyle, openInNewTab: false, ...props, children: simpleInner });
379
- }
380
- return /* @__PURE__ */ jsx("div", { ref, className: cardClass, style: cardStyle, ...props, children: simpleInner });
381
- }
382
- );
383
- SocialProofCard.displayName = "SocialProofCard";
384
- var SocialProofGrid = forwardRef(
385
- ({ columns = 3, masonry = false, staggered = false, className, children, ...props }, ref) => {
386
- const enhancedChildren = staggered ? React3.Children.map(children, (child, index) => {
387
- if (!React3.isValidElement(child)) return child;
388
- const delay = Math.min(index * 50, 600);
389
- const childProps = child.props;
390
- return React3.cloneElement(child, {
391
- style: { ...childProps.style, "--card-delay": `${delay}ms` },
392
- className: clsx4(childProps.className, "ds-social-card--animated")
393
- });
394
- }) : children;
395
- return /* @__PURE__ */ jsx(
396
- SectionShell,
397
- {
398
- ref,
399
- padding: "md",
400
- className: clsx4("ds-social-proof", className),
401
- ...props,
402
- children: masonry ? /* @__PURE__ */ jsx("div", { className: "ds-social-masonry", children: enhancedChildren }) : /* @__PURE__ */ jsx("div", { className: clsx4("ds-social-grid", `ds-social-grid--${columns}-col`), children: enhancedChildren })
403
- }
404
- );
405
- }
406
- );
407
- SocialProofGrid.displayName = "SocialProofGrid";
408
- var LogoItemRender = ({ item, className }) => {
409
- const content = item.logo ? item.logo : /* @__PURE__ */ jsx(
410
- "img",
411
- {
412
- src: item.src,
413
- alt: item.alt,
414
- width: 120,
415
- height: 48,
416
- loading: "lazy",
417
- decoding: "async",
418
- style: { objectFit: "contain", width: "auto", height: "100%" }
419
- }
420
- );
421
- const innerContent = /* @__PURE__ */ jsxs(Fragment, { children: [
422
- content,
423
- item.badge && /* @__PURE__ */ jsx("span", { className: "ds-social-logos__badge", children: item.badge })
424
- ] });
425
- if (item.href) {
426
- const isInternal = item.href.startsWith("/");
427
- return /* @__PURE__ */ jsx(
428
- OutboundLink,
429
- {
430
- href: item.href,
431
- context: "social-proof-logo",
432
- className: clsx4("ds-social-logos__item", className),
433
- title: item.alt,
434
- openInNewTab: !isInternal,
435
- children: innerContent
436
- }
437
- );
438
- }
439
- return /* @__PURE__ */ jsx("div", { className: clsx4("ds-social-logos__item", className), title: item.alt, children: innerContent });
440
- };
441
- var SocialProofLogos = forwardRef(
442
- ({ title, logos, variant = "grid", speed = 40, className, ...props }, ref) => {
443
- return /* @__PURE__ */ jsxs(
444
- SectionShell,
445
- {
446
- ref,
447
- padding: "sm",
448
- className: clsx4("ds-social-logos", className),
449
- ...props,
450
- children: [
451
- title && /* @__PURE__ */ jsx(
452
- "p",
453
- {
454
- className: "ds-section-header__eyebrow",
455
- style: { textAlign: "center", marginBottom: "var(--space-8)" },
456
- children: title
457
- }
458
- ),
459
- variant === "marquee" ? /* @__PURE__ */ jsxs(
460
- "div",
461
- {
462
- className: "ds-social-logos__marquee",
463
- style: { "--marquee-duration": `${speed}s` },
464
- children: [
465
- /* @__PURE__ */ jsx("div", { className: "ds-social-logos__track", children: logos.map((item) => /* @__PURE__ */ jsx(LogoItemRender, { item }, `set1-${item.id}`)) }),
466
- /* @__PURE__ */ jsx("div", { className: "ds-social-logos__track", "aria-hidden": "true", children: logos.map((item) => /* @__PURE__ */ jsx(LogoItemRender, { item }, `set2-${item.id}`)) })
467
- ]
468
- }
469
- ) : /* @__PURE__ */ jsx("div", { className: "ds-social-grid ds-social-grid--4-col", style: { alignItems: "center" }, children: logos.map((item) => /* @__PURE__ */ jsx(LogoItemRender, { item }, item.id)) })
470
- ]
471
- }
472
- );
473
- }
474
- );
475
- SocialProofLogos.displayName = "SocialProofLogos";
476
- var PlayIconLarge = () => /* @__PURE__ */ jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
477
- /* @__PURE__ */ jsx("circle", { cx: "32", cy: "32", r: "32", fill: "white", fillOpacity: "0.9" }),
478
- /* @__PURE__ */ jsx("path", { d: "M42 32L26 41.2376L26 22.7624L42 32Z", fill: "black" })
479
- ] });
480
- var SocialProofFeatured = forwardRef(
481
- ({
482
- quote,
483
- author,
484
- media,
485
- mediaSrc,
486
- orientation = "horizontal",
487
- featuredVariant = "standard",
488
- starRating,
489
- platform,
490
- logo,
491
- className,
492
- ...props
493
- }, ref) => {
494
- const showMedia = media || mediaSrc;
495
- const effectiveOrientation = featuredVariant === "spotlight" ? "vertical" : orientation;
496
- return /* @__PURE__ */ jsx(
497
- SectionShell,
498
- {
499
- ref,
500
- padding: "md",
501
- className: clsx4("ds-social-featured-section", className),
502
- ...props,
503
- children: /* @__PURE__ */ jsxs(
504
- "div",
505
- {
506
- className: clsx4(
507
- "ds-social-featured",
508
- `ds-social-featured--${effectiveOrientation}`,
509
- `ds-social-featured--${featuredVariant}`
510
- ),
511
- children: [
512
- showMedia && featuredVariant !== "spotlight" && /* @__PURE__ */ jsx("div", { className: "ds-social-featured__media", children: media ? media : /* @__PURE__ */ jsxs(Fragment, { children: [
513
- /* @__PURE__ */ jsx(
514
- "img",
515
- {
516
- src: mediaSrc || "https://placehold.co/1920x1080/111/FFF?text=Video+Case+Study",
517
- alt: `Case study by ${author.name}`,
518
- style: { width: "100%", height: "100%", objectFit: "cover" }
519
- }
520
- ),
521
- /* @__PURE__ */ jsx("div", { className: "ds-social-card__play", children: /* @__PURE__ */ jsx(PlayIconLarge, {}) })
522
- ] }) }),
523
- /* @__PURE__ */ jsxs("div", { className: "ds-social-featured__content", children: [
524
- logo && /* @__PURE__ */ jsx("div", { className: "ds-social-featured__logo", children: logo }),
525
- /* @__PURE__ */ jsxs("blockquote", { className: "ds-social-featured__quote", children: [
526
- "\u201C",
527
- quote,
528
- "\u201D"
529
- ] }),
530
- /* @__PURE__ */ jsxs("div", { className: "ds-social-featured__author-large", children: [
531
- author.avatar && /* @__PURE__ */ jsx("div", { className: "ds-social-card__avatar", children: /* @__PURE__ */ jsx("img", { src: author.avatar, alt: author.name }) }),
532
- /* @__PURE__ */ jsxs("div", { className: "ds-social-card__meta", children: [
533
- /* @__PURE__ */ jsx("span", { className: "ds-social-card__name", children: author.name }),
534
- /* @__PURE__ */ jsxs("span", { className: "ds-social-card__role", children: [
535
- author.role,
536
- author.role && author.company && ", ",
537
- author.company
538
- ] })
539
- ] })
540
- ] }),
541
- (starRating != null || platform) && /* @__PURE__ */ jsxs("div", { className: "ds-social-featured__trust", children: [
542
- starRating != null && /* @__PURE__ */ jsx(StarRating, { value: starRating, size: "md", showValue: true }),
543
- platform && /* @__PURE__ */ jsx(PlatformBadge, { platform, variant: "icon-label", size: "md" })
544
- ] })
545
- ] })
546
- ]
547
- }
548
- )
549
- }
550
- );
551
- }
552
- );
553
- SocialProofFeatured.displayName = "SocialProofFeatured";
554
- var SocialProofCarousel = forwardRef(
555
- ({ children, className, ...props }, ref) => {
556
- return /* @__PURE__ */ jsx(
557
- SectionShell,
558
- {
559
- ref,
560
- padding: "none",
561
- containerFluid: true,
562
- className: clsx4("ds-social-carousel", className),
563
- ...props,
564
- children: /* @__PURE__ */ jsxs(
565
- motion.div,
566
- {
567
- className: "ds-social-carousel__track",
568
- variants: VARIANTS.fadeIn,
569
- initial: "hidden",
570
- whileInView: "visible",
571
- viewport: { once: true, margin: "-10%" },
572
- children: [
573
- children,
574
- children
575
- ]
576
- }
577
- )
578
- }
579
- );
580
- }
581
- );
582
- SocialProofCarousel.displayName = "SocialProofCarousel";
583
- function getShortsEmbedUrl(url) {
584
- const match = url.match(/(?:youtube\.com\/shorts\/|youtu\.be\/|youtube\.com\/embed\/)([a-zA-Z0-9_-]+)/);
585
- if (match) {
586
- return `https://www.youtube-nocookie.com/embed/${match[1]}?rel=0&modestbranding=1&playsinline=1&controls=1`;
587
- }
588
- return url.replace("youtube.com", "youtube-nocookie.com") + (url.includes("?") ? "&" : "?") + "rel=0&modestbranding=1&playsinline=1";
589
- }
590
- function VerticalVideoGrid({ urls, className }) {
591
- if (!urls || urls.length === 0) return null;
592
- return /* @__PURE__ */ jsx(SectionShell, { className: clsx4("ds-vertical-video-grid my-16", className), children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 md:gap-6 max-w-6xl mx-auto", children: urls.map((url, i) => /* @__PURE__ */ jsx(
593
- "div",
594
- {
595
- className: "relative w-full overflow-hidden rounded-[20px] shadow-lg border border-white/10 bg-black",
596
- style: { aspectRatio: "9/16" },
597
- children: /* @__PURE__ */ jsx(
598
- "iframe",
599
- {
600
- src: getShortsEmbedUrl(url),
601
- title: `Short testimonial ${i + 1}`,
602
- className: "absolute inset-0 w-full h-full",
603
- allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
604
- allowFullScreen: true,
605
- loading: "lazy"
606
- }
607
- )
608
- },
609
- i
610
- )) }) });
611
- }
612
-
613
- // src/components/SocialProof/index.ts
614
- var SocialProof = {
615
- Card: SocialProofCard,
616
- Grid: SocialProofGrid,
617
- Logos: SocialProofLogos,
618
- Featured: SocialProofFeatured,
619
- Carousel: SocialProofCarousel,
620
- VerticalGrid: VerticalVideoGrid
621
- };
622
- function getEmbedUrl(src) {
623
- const ytMatch = src.match(
624
- /(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/)([a-zA-Z0-9_-]+)/
625
- );
626
- if (ytMatch) return `https://www.youtube-nocookie.com/embed/${ytMatch[1]}?autoplay=1&rel=0`;
627
- const vimeoMatch = src.match(/(?:vimeo\.com\/)(\d+)/);
628
- if (vimeoMatch) return `https://player.vimeo.com/video/${vimeoMatch[1]}?autoplay=1`;
629
- const loomMatch = src.match(/(?:loom\.com\/share\/)([a-zA-Z0-9]+)/);
630
- if (loomMatch) return `https://www.loom.com/embed/${loomMatch[1]}?autoplay=1`;
631
- return src;
632
- }
633
- var PlayIcon2 = () => /* @__PURE__ */ jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
634
- /* @__PURE__ */ jsx("circle", { cx: "32", cy: "32", r: "32", className: "ds-video-lightbox__play-bg" }),
635
- /* @__PURE__ */ jsx("path", { d: "M26 20v24l20-12L26 20z", fill: "white" })
636
- ] });
637
- var CloseIcon = () => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
638
- /* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
639
- /* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
640
- ] });
641
- var VideoLightbox = forwardRef(
642
- ({
643
- videoUrl,
644
- thumbnailSrc,
645
- thumbnailAlt,
646
- title = "Video",
647
- trigger,
648
- className,
649
- onPlay
650
- }, ref) => {
651
- const [open, setOpen] = useState(false);
652
- const handleOpen = useCallback(() => {
653
- setOpen(true);
654
- onPlay?.();
655
- }, [onPlay]);
656
- return /* @__PURE__ */ jsx("div", { ref, className: clsx4("ds-video-lightbox", className), children: /* @__PURE__ */ jsxs(Dialog.Root, { open, onOpenChange: setOpen, children: [
657
- /* @__PURE__ */ jsx(
658
- Dialog.Trigger,
659
- {
660
- className: "ds-video-lightbox__trigger",
661
- onClick: handleOpen,
662
- children: trigger || /* @__PURE__ */ jsxs("div", { className: "ds-video-lightbox__thumbnail-wrap", children: [
663
- thumbnailSrc ? /* @__PURE__ */ jsx(
664
- "img",
665
- {
666
- src: thumbnailSrc,
667
- alt: thumbnailAlt || `Play: ${title}`,
668
- className: "ds-video-lightbox__thumbnail",
669
- loading: "lazy",
670
- decoding: "async"
671
- }
672
- ) : /* @__PURE__ */ jsx("div", { className: "ds-video-lightbox__placeholder" }),
673
- /* @__PURE__ */ jsx("div", { className: "ds-video-lightbox__overlay", children: /* @__PURE__ */ jsx("div", { className: "ds-video-lightbox__play-btn", children: /* @__PURE__ */ jsx(PlayIcon2, {}) }) })
674
- ] })
675
- }
676
- ),
677
- /* @__PURE__ */ jsxs(Dialog.Portal, { children: [
678
- /* @__PURE__ */ jsx(Dialog.Backdrop, { className: "ds-video-lightbox__backdrop" }),
679
- /* @__PURE__ */ jsxs(Dialog.Popup, { className: "ds-video-lightbox__popup", children: [
680
- /* @__PURE__ */ jsx(Dialog.Close, { className: "ds-video-lightbox__close", "aria-label": "Close video", children: /* @__PURE__ */ jsx(CloseIcon, {}) }),
681
- /* @__PURE__ */ jsx(Dialog.Title, { className: "ds-sr-only", children: title }),
682
- /* @__PURE__ */ jsx("div", { className: "ds-video-lightbox__iframe-wrap", children: open && /* @__PURE__ */ jsx(
683
- "iframe",
684
- {
685
- src: getEmbedUrl(videoUrl),
686
- title,
687
- className: "ds-video-lightbox__iframe",
688
- allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
689
- allowFullScreen: true
690
- }
691
- ) })
692
- ] })
693
- ] })
694
- ] }) });
695
- }
696
- );
697
- VideoLightbox.displayName = "VideoLightbox";
698
-
699
- export { PlatformBadge, SocialProof, SocialProofCard, SocialProofCarousel, SocialProofFeatured, SocialProofGrid, SocialProofLogos, StarRating, VerticalVideoGrid, VideoLightbox };
700
- //# sourceMappingURL=out.js.map
701
- //# sourceMappingURL=chunk-OWS2KAXZ.js.map