@salesmind-ai/design-system 0.3.4 → 0.3.5

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 (197) hide show
  1. package/dist/admin/index.cjs +68 -2928
  2. package/dist/admin/index.cjs.map +1 -1
  3. package/dist/admin/index.js +5 -2915
  4. package/dist/admin/index.js.map +1 -1
  5. package/dist/blog/index.cjs +53 -1064
  6. package/dist/blog/index.cjs.map +1 -1
  7. package/dist/blog/index.js +8 -1054
  8. package/dist/blog/index.js.map +1 -1
  9. package/dist/charts/index.cjs +46 -2694
  10. package/dist/charts/index.cjs.map +1 -1
  11. package/dist/charts/index.js +3 -2680
  12. package/dist/charts/index.js.map +1 -1
  13. package/dist/chunk-2GARWEJK.js +17 -0
  14. package/dist/chunk-2GARWEJK.js.map +1 -0
  15. package/dist/chunk-2KQVZ5FB.js +485 -0
  16. package/dist/chunk-2KQVZ5FB.js.map +1 -0
  17. package/dist/chunk-2ZNR2F2V.cjs +194 -0
  18. package/dist/chunk-2ZNR2F2V.cjs.map +1 -0
  19. package/dist/chunk-3NKRFUAR.js +37 -0
  20. package/dist/chunk-3NKRFUAR.js.map +1 -0
  21. package/dist/chunk-3TGSIILM.cjs +201 -0
  22. package/dist/chunk-3TGSIILM.cjs.map +1 -0
  23. package/dist/chunk-4GM5BGBN.cjs +801 -0
  24. package/dist/chunk-4GM5BGBN.cjs.map +1 -0
  25. package/dist/chunk-5LGDEZWY.cjs +2434 -0
  26. package/dist/chunk-5LGDEZWY.cjs.map +1 -0
  27. package/dist/chunk-6H4DSTXR.js +786 -0
  28. package/dist/chunk-6H4DSTXR.js.map +1 -0
  29. package/dist/chunk-6HKQ5ILL.cjs +1624 -0
  30. package/dist/chunk-6HKQ5ILL.cjs.map +1 -0
  31. package/dist/chunk-6UNG76Y2.js +153 -0
  32. package/dist/chunk-6UNG76Y2.js.map +1 -0
  33. package/dist/chunk-7PX2AZ6Y.js +39 -0
  34. package/dist/chunk-7PX2AZ6Y.js.map +1 -0
  35. package/dist/chunk-B6AVAX4F.js +1415 -0
  36. package/dist/chunk-B6AVAX4F.js.map +1 -0
  37. package/dist/chunk-BILT5KD3.js +264 -0
  38. package/dist/chunk-BILT5KD3.js.map +1 -0
  39. package/dist/chunk-C2BCDNAV.js +24 -0
  40. package/dist/chunk-C2BCDNAV.js.map +1 -0
  41. package/dist/chunk-CH42VPWE.cjs +421 -0
  42. package/dist/chunk-CH42VPWE.cjs.map +1 -0
  43. package/dist/chunk-CJ2MKVAF.cjs +46 -0
  44. package/dist/chunk-CJ2MKVAF.cjs.map +1 -0
  45. package/dist/chunk-DP74LUXG.cjs +98 -0
  46. package/dist/chunk-DP74LUXG.cjs.map +1 -0
  47. package/dist/chunk-E7D6EKJ4.cjs +44 -0
  48. package/dist/chunk-E7D6EKJ4.cjs.map +1 -0
  49. package/dist/chunk-ECXBTUH6.cjs +584 -0
  50. package/dist/chunk-ECXBTUH6.cjs.map +1 -0
  51. package/dist/chunk-EFRAP5ES.js +157 -0
  52. package/dist/chunk-EFRAP5ES.js.map +1 -0
  53. package/dist/chunk-EM7JHRYW.cjs +69 -0
  54. package/dist/chunk-EM7JHRYW.cjs.map +1 -0
  55. package/dist/chunk-FAFAP4L5.js +183 -0
  56. package/dist/chunk-FAFAP4L5.js.map +1 -0
  57. package/dist/chunk-H2Y6BSTL.cjs +69 -0
  58. package/dist/chunk-H2Y6BSTL.cjs.map +1 -0
  59. package/dist/chunk-HN4PHABT.js +126 -0
  60. package/dist/chunk-HN4PHABT.js.map +1 -0
  61. package/dist/chunk-HRENHNDJ.js +211 -0
  62. package/dist/chunk-HRENHNDJ.js.map +1 -0
  63. package/dist/chunk-I75BFEYT.cjs +2561 -0
  64. package/dist/chunk-I75BFEYT.cjs.map +1 -0
  65. package/dist/chunk-IFRATNLU.js +562 -0
  66. package/dist/chunk-IFRATNLU.js.map +1 -0
  67. package/dist/chunk-JNASH4OQ.js +1022 -0
  68. package/dist/chunk-JNASH4OQ.js.map +1 -0
  69. package/dist/chunk-JPJN4YBC.js +409 -0
  70. package/dist/chunk-JPJN4YBC.js.map +1 -0
  71. package/dist/chunk-KCKUSU2M.cjs +166 -0
  72. package/dist/chunk-KCKUSU2M.cjs.map +1 -0
  73. package/dist/chunk-KDLH35OI.cjs +1042 -0
  74. package/dist/chunk-KDLH35OI.cjs.map +1 -0
  75. package/dist/chunk-KJ2OXQF4.js +287 -0
  76. package/dist/chunk-KJ2OXQF4.js.map +1 -0
  77. package/dist/chunk-KK5UO2P4.cjs +717 -0
  78. package/dist/chunk-KK5UO2P4.cjs.map +1 -0
  79. package/dist/chunk-KNQEIU7O.cjs +1202 -0
  80. package/dist/chunk-KNQEIU7O.cjs.map +1 -0
  81. package/dist/chunk-KVGSVGRK.cjs +569 -0
  82. package/dist/chunk-KVGSVGRK.cjs.map +1 -0
  83. package/dist/chunk-L352JRV6.cjs +105 -0
  84. package/dist/chunk-L352JRV6.cjs.map +1 -0
  85. package/dist/chunk-LGNMFBLF.cjs +502 -0
  86. package/dist/chunk-LGNMFBLF.cjs.map +1 -0
  87. package/dist/chunk-LJADZITX.cjs +298 -0
  88. package/dist/chunk-LJADZITX.cjs.map +1 -0
  89. package/dist/chunk-MDB2WCRQ.cjs +137 -0
  90. package/dist/chunk-MDB2WCRQ.cjs.map +1 -0
  91. package/dist/chunk-MQDEE7HC.cjs +283 -0
  92. package/dist/chunk-MQDEE7HC.cjs.map +1 -0
  93. package/dist/chunk-MQRB634A.cjs +34 -0
  94. package/dist/chunk-MQRB634A.cjs.map +1 -0
  95. package/dist/chunk-MU6GW5ZV.js +2317 -0
  96. package/dist/chunk-MU6GW5ZV.js.map +1 -0
  97. package/dist/chunk-NN3TUHIH.js +28 -0
  98. package/dist/chunk-NN3TUHIH.js.map +1 -0
  99. package/dist/chunk-NT4LBP7D.cjs +111 -0
  100. package/dist/chunk-NT4LBP7D.cjs.map +1 -0
  101. package/dist/chunk-OGKGIXFC.cjs +2162 -0
  102. package/dist/chunk-OGKGIXFC.cjs.map +1 -0
  103. package/dist/chunk-OXNXEQY7.js +2538 -0
  104. package/dist/chunk-OXNXEQY7.js.map +1 -0
  105. package/dist/chunk-P5BOFE5A.js +546 -0
  106. package/dist/chunk-P5BOFE5A.js.map +1 -0
  107. package/dist/chunk-PE2KJVRN.js +185 -0
  108. package/dist/chunk-PE2KJVRN.js.map +1 -0
  109. package/dist/chunk-Q2MFGYTE.cjs +1449 -0
  110. package/dist/chunk-Q2MFGYTE.cjs.map +1 -0
  111. package/dist/chunk-Q75DBVDY.cjs +68 -0
  112. package/dist/chunk-Q75DBVDY.cjs.map +1 -0
  113. package/dist/chunk-RQUFZAZ7.js +1608 -0
  114. package/dist/chunk-RQUFZAZ7.js.map +1 -0
  115. package/dist/chunk-SICKWUWB.js +62 -0
  116. package/dist/chunk-SICKWUWB.js.map +1 -0
  117. package/dist/chunk-T343CCH5.js +1190 -0
  118. package/dist/chunk-T343CCH5.js.map +1 -0
  119. package/dist/chunk-T5H5PNLN.js +701 -0
  120. package/dist/chunk-T5H5PNLN.js.map +1 -0
  121. package/dist/chunk-U3LK2GID.js +2122 -0
  122. package/dist/chunk-U3LK2GID.js.map +1 -0
  123. package/dist/chunk-UFAJY2DM.js +62 -0
  124. package/dist/chunk-UFAJY2DM.js.map +1 -0
  125. package/dist/chunk-VC5LMUVQ.cjs +20 -0
  126. package/dist/chunk-VC5LMUVQ.cjs.map +1 -0
  127. package/dist/chunk-VM7WFMKI.cjs +76 -0
  128. package/dist/chunk-VM7WFMKI.cjs.map +1 -0
  129. package/dist/chunk-W2WTP6HS.cjs +233 -0
  130. package/dist/chunk-W2WTP6HS.cjs.map +1 -0
  131. package/dist/chunk-WH7PYHZY.cjs +35 -0
  132. package/dist/chunk-WH7PYHZY.cjs.map +1 -0
  133. package/dist/chunk-XU3OMQ7V.js +98 -0
  134. package/dist/chunk-XU3OMQ7V.js.map +1 -0
  135. package/dist/chunk-XWPDRMZG.js +62 -0
  136. package/dist/chunk-XWPDRMZG.js.map +1 -0
  137. package/dist/chunk-Y3CPKNB7.js +67 -0
  138. package/dist/chunk-Y3CPKNB7.js.map +1 -0
  139. package/dist/chunk-YNVRDD2P.js +98 -0
  140. package/dist/chunk-YNVRDD2P.js.map +1 -0
  141. package/dist/chunk-YSYR54XR.js +92 -0
  142. package/dist/chunk-YSYR54XR.js.map +1 -0
  143. package/dist/chunk-YTYDQBVY.cjs +162 -0
  144. package/dist/chunk-YTYDQBVY.cjs.map +1 -0
  145. package/dist/core/index.cjs +807 -4333
  146. package/dist/core/index.cjs.map +1 -1
  147. package/dist/core/index.js +14 -4130
  148. package/dist/core/index.js.map +1 -1
  149. package/dist/i18n/index.cjs +86 -558
  150. package/dist/i18n/index.cjs.map +1 -1
  151. package/dist/i18n/index.js +1 -544
  152. package/dist/i18n/index.js.map +1 -1
  153. package/dist/index.cjs +1432 -17140
  154. package/dist/index.cjs.map +1 -1
  155. package/dist/index.js +31 -16785
  156. package/dist/index.js.map +1 -1
  157. package/dist/marketing/index.cjs +142 -3072
  158. package/dist/marketing/index.cjs.map +1 -1
  159. package/dist/marketing/index.js +11 -3042
  160. package/dist/marketing/index.js.map +1 -1
  161. package/dist/motion/index.cjs +26 -1222
  162. package/dist/motion/index.cjs.map +1 -1
  163. package/dist/motion/index.js +2 -1215
  164. package/dist/motion/index.js.map +1 -1
  165. package/dist/nav/index.cjs +101 -1518
  166. package/dist/nav/index.cjs.map +1 -1
  167. package/dist/nav/index.js +4 -1498
  168. package/dist/nav/index.js.map +1 -1
  169. package/dist/report/index.cjs +171 -2403
  170. package/dist/report/index.cjs.map +1 -1
  171. package/dist/report/index.js +3 -2363
  172. package/dist/report/index.js.map +1 -1
  173. package/dist/sections/index.cjs +22 -377
  174. package/dist/sections/index.cjs.map +1 -1
  175. package/dist/sections/index.js +6 -369
  176. package/dist/sections/index.js.map +1 -1
  177. package/dist/social-proof/index.cjs +53 -1250
  178. package/dist/social-proof/index.cjs.map +1 -1
  179. package/dist/social-proof/index.js +6 -1235
  180. package/dist/social-proof/index.js.map +1 -1
  181. package/dist/theme/index.cjs +38 -565
  182. package/dist/theme/index.cjs.map +1 -1
  183. package/dist/theme/index.js +2 -555
  184. package/dist/theme/index.js.map +1 -1
  185. package/dist/web/client/index.cjs +38 -491
  186. package/dist/web/client/index.cjs.map +1 -1
  187. package/dist/web/client/index.js +4 -483
  188. package/dist/web/client/index.js.map +1 -1
  189. package/dist/web/index.cjs +158 -1346
  190. package/dist/web/index.cjs.map +1 -1
  191. package/dist/web/index.js +9 -1305
  192. package/dist/web/index.js.map +1 -1
  193. package/dist/web/server/index.cjs +26 -563
  194. package/dist/web/server/index.cjs.map +1 -1
  195. package/dist/web/server/index.js +1 -560
  196. package/dist/web/server/index.js.map +1 -1
  197. package/package.json +1 -1
@@ -0,0 +1,701 @@
1
+ import { VARIANTS } from './chunk-YNVRDD2P.js';
2
+ import { SectionShell } from './chunk-UFAJY2DM.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-T5H5PNLN.js.map