@opensite/ui 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/footer-accordion-social.cjs +1344 -0
  2. package/dist/footer-accordion-social.d.cts +154 -0
  3. package/dist/footer-accordion-social.d.ts +154 -0
  4. package/dist/footer-accordion-social.js +1322 -0
  5. package/dist/footer-info-cards-accordion.cjs +1427 -0
  6. package/dist/footer-info-cards-accordion.d.cts +278 -0
  7. package/dist/footer-info-cards-accordion.d.ts +278 -0
  8. package/dist/footer-info-cards-accordion.js +1404 -0
  9. package/dist/footer-newsletter-contact.cjs +1281 -0
  10. package/dist/footer-newsletter-contact.d.cts +163 -0
  11. package/dist/footer-newsletter-contact.d.ts +163 -0
  12. package/dist/footer-newsletter-contact.js +1259 -0
  13. package/dist/footer-split-image-accordion.cjs +1395 -0
  14. package/dist/footer-split-image-accordion.d.cts +236 -0
  15. package/dist/footer-split-image-accordion.d.ts +236 -0
  16. package/dist/footer-split-image-accordion.js +1372 -0
  17. package/dist/list-achievements-showcase.cjs +1141 -0
  18. package/dist/list-achievements-showcase.d.cts +131 -0
  19. package/dist/list-achievements-showcase.d.ts +131 -0
  20. package/dist/list-achievements-showcase.js +1119 -0
  21. package/dist/list-career-timeline.cjs +531 -0
  22. package/dist/list-career-timeline.d.cts +153 -0
  23. package/dist/list-career-timeline.d.ts +153 -0
  24. package/dist/list-career-timeline.js +509 -0
  25. package/dist/list-feature-comparison.cjs +1211 -0
  26. package/dist/list-feature-comparison.d.cts +189 -0
  27. package/dist/list-feature-comparison.d.ts +189 -0
  28. package/dist/list-feature-comparison.js +1190 -0
  29. package/dist/list-metrics-dashboard.cjs +1402 -0
  30. package/dist/list-metrics-dashboard.d.cts +191 -0
  31. package/dist/list-metrics-dashboard.d.ts +191 -0
  32. package/dist/list-metrics-dashboard.js +1379 -0
  33. package/dist/list-service-category-table.cjs +762 -0
  34. package/dist/list-service-category-table.d.cts +135 -0
  35. package/dist/list-service-category-table.d.ts +135 -0
  36. package/dist/list-service-category-table.js +741 -0
  37. package/dist/offer-modal-membership-image.cjs +1361 -0
  38. package/dist/offer-modal-membership-image.d.cts +194 -0
  39. package/dist/offer-modal-membership-image.d.ts +194 -0
  40. package/dist/offer-modal-membership-image.js +1339 -0
  41. package/dist/offer-modal-newsletter-discount.cjs +1296 -0
  42. package/dist/offer-modal-newsletter-discount.d.cts +164 -0
  43. package/dist/offer-modal-newsletter-discount.d.ts +164 -0
  44. package/dist/offer-modal-newsletter-discount.js +1274 -0
  45. package/dist/offer-modal-sheet-newsletter.cjs +1360 -0
  46. package/dist/offer-modal-sheet-newsletter.d.cts +221 -0
  47. package/dist/offer-modal-sheet-newsletter.d.ts +221 -0
  48. package/dist/offer-modal-sheet-newsletter.js +1337 -0
  49. package/dist/pricing-addons-cards.cjs +1143 -0
  50. package/dist/pricing-addons-cards.d.cts +203 -0
  51. package/dist/pricing-addons-cards.d.ts +203 -0
  52. package/dist/pricing-addons-cards.js +1122 -0
  53. package/dist/pricing-addons-featured.cjs +1224 -0
  54. package/dist/pricing-addons-featured.d.cts +271 -0
  55. package/dist/pricing-addons-featured.d.ts +271 -0
  56. package/dist/pricing-addons-featured.js +1203 -0
  57. package/dist/pricing-collapsible-plans.cjs +1315 -0
  58. package/dist/pricing-collapsible-plans.d.cts +258 -0
  59. package/dist/pricing-collapsible-plans.d.ts +258 -0
  60. package/dist/pricing-collapsible-plans.js +1294 -0
  61. package/dist/pricing-columns-toggle.cjs +1234 -0
  62. package/dist/pricing-columns-toggle.d.cts +251 -0
  63. package/dist/pricing-columns-toggle.d.ts +251 -0
  64. package/dist/pricing-columns-toggle.js +1212 -0
  65. package/dist/pricing-comparison-headers.cjs +1235 -0
  66. package/dist/pricing-comparison-headers.d.cts +245 -0
  67. package/dist/pricing-comparison-headers.d.ts +245 -0
  68. package/dist/pricing-comparison-headers.js +1213 -0
  69. package/dist/pricing-comparison-table.cjs +1374 -0
  70. package/dist/pricing-comparison-table.d.cts +280 -0
  71. package/dist/pricing-comparison-table.d.ts +280 -0
  72. package/dist/pricing-comparison-table.js +1352 -0
  73. package/dist/pricing-discount-card.cjs +1217 -0
  74. package/dist/pricing-discount-card.d.cts +195 -0
  75. package/dist/pricing-discount-card.d.ts +195 -0
  76. package/dist/pricing-discount-card.js +1195 -0
  77. package/dist/pricing-enterprise-contact.cjs +1094 -0
  78. package/dist/pricing-enterprise-contact.d.cts +170 -0
  79. package/dist/pricing-enterprise-contact.d.ts +170 -0
  80. package/dist/pricing-enterprise-contact.js +1073 -0
  81. package/dist/pricing-feature-matrix.cjs +1197 -0
  82. package/dist/pricing-feature-matrix.d.cts +56 -0
  83. package/dist/pricing-feature-matrix.d.ts +56 -0
  84. package/dist/pricing-feature-matrix.js +1174 -0
  85. package/dist/pricing-four-tier-toggle.cjs +1320 -0
  86. package/dist/pricing-four-tier-toggle.d.cts +266 -0
  87. package/dist/pricing-four-tier-toggle.d.ts +266 -0
  88. package/dist/pricing-four-tier-toggle.js +1297 -0
  89. package/dist/pricing-full-comparison.cjs +1301 -0
  90. package/dist/pricing-full-comparison.d.cts +265 -0
  91. package/dist/pricing-full-comparison.d.ts +265 -0
  92. package/dist/pricing-full-comparison.js +1279 -0
  93. package/dist/pricing-gradient-cards.cjs +1248 -0
  94. package/dist/pricing-gradient-cards.d.cts +258 -0
  95. package/dist/pricing-gradient-cards.d.ts +258 -0
  96. package/dist/pricing-gradient-cards.js +1226 -0
  97. package/dist/pricing-icon-headers.cjs +1163 -0
  98. package/dist/pricing-icon-headers.d.cts +218 -0
  99. package/dist/pricing-icon-headers.d.ts +218 -0
  100. package/dist/pricing-icon-headers.js +1142 -0
  101. package/dist/pricing-minimal-cards.cjs +1146 -0
  102. package/dist/pricing-minimal-cards.d.cts +210 -0
  103. package/dist/pricing-minimal-cards.d.ts +210 -0
  104. package/dist/pricing-minimal-cards.js +1125 -0
  105. package/dist/pricing-packages-radio.cjs +1203 -0
  106. package/dist/pricing-packages-radio.d.cts +243 -0
  107. package/dist/pricing-packages-radio.d.ts +243 -0
  108. package/dist/pricing-packages-radio.js +1182 -0
  109. package/dist/pricing-popular-highlight.cjs +1293 -0
  110. package/dist/pricing-popular-highlight.d.cts +255 -0
  111. package/dist/pricing-popular-highlight.d.ts +255 -0
  112. package/dist/pricing-popular-highlight.js +1271 -0
  113. package/dist/pricing-radio-toggle.cjs +1277 -0
  114. package/dist/pricing-radio-toggle.d.cts +251 -0
  115. package/dist/pricing-radio-toggle.d.ts +251 -0
  116. package/dist/pricing-radio-toggle.js +1255 -0
  117. package/dist/pricing-responsive-table.cjs +1229 -0
  118. package/dist/pricing-responsive-table.d.cts +55 -0
  119. package/dist/pricing-responsive-table.d.ts +55 -0
  120. package/dist/pricing-responsive-table.js +1206 -0
  121. package/dist/pricing-services-cards.cjs +1209 -0
  122. package/dist/pricing-services-cards.d.cts +230 -0
  123. package/dist/pricing-services-cards.d.ts +230 -0
  124. package/dist/pricing-services-cards.js +1188 -0
  125. package/dist/pricing-simple-card.cjs +1102 -0
  126. package/dist/pricing-simple-card.d.cts +174 -0
  127. package/dist/pricing-simple-card.d.ts +174 -0
  128. package/dist/pricing-simple-card.js +1081 -0
  129. package/dist/pricing-single-card.cjs +1174 -0
  130. package/dist/pricing-single-card.d.cts +201 -0
  131. package/dist/pricing-single-card.d.ts +201 -0
  132. package/dist/pricing-single-card.js +1152 -0
  133. package/dist/pricing-split-layout.cjs +1001 -0
  134. package/dist/pricing-split-layout.d.cts +44 -0
  135. package/dist/pricing-split-layout.d.ts +44 -0
  136. package/dist/pricing-split-layout.js +980 -0
  137. package/dist/pricing-spotlight-card.cjs +1157 -0
  138. package/dist/pricing-spotlight-card.d.cts +201 -0
  139. package/dist/pricing-spotlight-card.d.ts +201 -0
  140. package/dist/pricing-spotlight-card.js +1136 -0
  141. package/dist/pricing-switch-cards.cjs +1274 -0
  142. package/dist/pricing-switch-cards.d.cts +254 -0
  143. package/dist/pricing-switch-cards.d.ts +254 -0
  144. package/dist/pricing-switch-cards.js +1252 -0
  145. package/dist/pricing-tabs-toggle.cjs +1314 -0
  146. package/dist/pricing-tabs-toggle.d.cts +274 -0
  147. package/dist/pricing-tabs-toggle.d.ts +274 -0
  148. package/dist/pricing-tabs-toggle.js +1291 -0
  149. package/dist/pricing-tier-grid.cjs +1190 -0
  150. package/dist/pricing-tier-grid.d.cts +224 -0
  151. package/dist/pricing-tier-grid.d.ts +224 -0
  152. package/dist/pricing-tier-grid.js +1169 -0
  153. package/dist/pricing-toggle-cards.cjs +1330 -0
  154. package/dist/pricing-toggle-cards.d.cts +267 -0
  155. package/dist/pricing-toggle-cards.d.ts +267 -0
  156. package/dist/pricing-toggle-cards.js +1307 -0
  157. package/dist/pricing-toggle-period.cjs +1251 -0
  158. package/dist/pricing-toggle-period.d.cts +265 -0
  159. package/dist/pricing-toggle-period.d.ts +265 -0
  160. package/dist/pricing-toggle-period.js +1230 -0
  161. package/dist/pricing-two-column-basic.cjs +1243 -0
  162. package/dist/pricing-two-column-basic.d.cts +244 -0
  163. package/dist/pricing-two-column-basic.d.ts +244 -0
  164. package/dist/pricing-two-column-basic.js +1222 -0
  165. package/dist/registry.cjs +109 -85
  166. package/dist/registry.js +931 -907
  167. package/package.json +1 -1
@@ -0,0 +1,1361 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var forms = require('@page-speed/forms');
6
+ var inputs = require('@page-speed/forms/inputs');
7
+ var clsx = require('clsx');
8
+ var tailwindMerge = require('tailwind-merge');
9
+ var classVarianceAuthority = require('class-variance-authority');
10
+ var jsxRuntime = require('react/jsx-runtime');
11
+ var img = require('@page-speed/img');
12
+ var DialogPrimitive = require('@radix-ui/react-dialog');
13
+ var integration = require('@page-speed/forms/integration');
14
+
15
+ function _interopNamespace(e) {
16
+ if (e && e.__esModule) return e;
17
+ var n = Object.create(null);
18
+ if (e) {
19
+ Object.keys(e).forEach(function (k) {
20
+ if (k !== 'default') {
21
+ var d = Object.getOwnPropertyDescriptor(e, k);
22
+ Object.defineProperty(n, k, d.get ? d : {
23
+ enumerable: true,
24
+ get: function () { return e[k]; }
25
+ });
26
+ }
27
+ });
28
+ }
29
+ n.default = e;
30
+ return Object.freeze(n);
31
+ }
32
+
33
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
34
+ var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
35
+
36
+ // components/blocks/offer-modal/offer-modal-membership-image.tsx
37
+ var TextInput = inputs.TextInput;
38
+ function cn(...inputs) {
39
+ return tailwindMerge.twMerge(clsx.clsx(inputs));
40
+ }
41
+ function normalizePhoneNumber(input) {
42
+ const trimmed = input.trim();
43
+ if (trimmed.toLowerCase().startsWith("tel:")) {
44
+ return trimmed;
45
+ }
46
+ const match = trimmed.match(/^[\s\+\-\(\)]*(\d[\d\s\-\(\)\.]*\d)[\s\-]*(x|ext\.?|extension)?[\s\-]*(\d+)?$/i);
47
+ if (match) {
48
+ const mainNumber = match[1].replace(/[\s\-\(\)\.]/g, "");
49
+ const extension = match[3];
50
+ const normalized = mainNumber.length >= 10 && !trimmed.startsWith("+") ? `+${mainNumber}` : mainNumber;
51
+ const withExtension = extension ? `${normalized};ext=${extension}` : normalized;
52
+ return `tel:${withExtension}`;
53
+ }
54
+ const cleaned = trimmed.replace(/[\s\-\(\)\.]/g, "");
55
+ return `tel:${cleaned}`;
56
+ }
57
+ function normalizeEmail(input) {
58
+ const trimmed = input.trim();
59
+ if (trimmed.toLowerCase().startsWith("mailto:")) {
60
+ return trimmed;
61
+ }
62
+ return `mailto:${trimmed}`;
63
+ }
64
+ function isEmail(input) {
65
+ const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
66
+ return emailRegex.test(input.trim());
67
+ }
68
+ function isPhoneNumber(input) {
69
+ const trimmed = input.trim();
70
+ if (trimmed.toLowerCase().startsWith("tel:")) {
71
+ return true;
72
+ }
73
+ const phoneRegex = /^[\s\+\-\(\)]*\d[\d\s\-\(\)\.]*\d[\s\-]*(x|ext\.?|extension)?[\s\-]*\d*$/i;
74
+ return phoneRegex.test(trimmed);
75
+ }
76
+ function isInternalUrl(href) {
77
+ if (typeof window === "undefined") {
78
+ return href.startsWith("/") && !href.startsWith("//");
79
+ }
80
+ const trimmed = href.trim();
81
+ if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
82
+ return true;
83
+ }
84
+ try {
85
+ const url = new URL(trimmed, window.location.href);
86
+ const currentOrigin = window.location.origin;
87
+ const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
88
+ return normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin);
89
+ } catch {
90
+ return false;
91
+ }
92
+ }
93
+ function toRelativePath(href) {
94
+ if (typeof window === "undefined") {
95
+ return href;
96
+ }
97
+ const trimmed = href.trim();
98
+ if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
99
+ return trimmed;
100
+ }
101
+ try {
102
+ const url = new URL(trimmed, window.location.href);
103
+ const currentOrigin = window.location.origin;
104
+ const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
105
+ if (normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin)) {
106
+ return url.pathname + url.search + url.hash;
107
+ }
108
+ } catch {
109
+ }
110
+ return trimmed;
111
+ }
112
+ function useNavigation({
113
+ href,
114
+ onClick
115
+ } = {}) {
116
+ const linkType = React__namespace.useMemo(() => {
117
+ if (!href || href.trim() === "") {
118
+ return onClick ? "none" : "none";
119
+ }
120
+ const trimmed = href.trim();
121
+ if (trimmed.toLowerCase().startsWith("mailto:") || isEmail(trimmed)) {
122
+ return "mailto";
123
+ }
124
+ if (trimmed.toLowerCase().startsWith("tel:") || isPhoneNumber(trimmed)) {
125
+ return "tel";
126
+ }
127
+ if (isInternalUrl(trimmed)) {
128
+ return "internal";
129
+ }
130
+ try {
131
+ new URL(trimmed, typeof window !== "undefined" ? window.location.href : "http://localhost");
132
+ return "external";
133
+ } catch {
134
+ return "internal";
135
+ }
136
+ }, [href, onClick]);
137
+ const normalizedHref = React__namespace.useMemo(() => {
138
+ if (!href || href.trim() === "") {
139
+ return void 0;
140
+ }
141
+ const trimmed = href.trim();
142
+ switch (linkType) {
143
+ case "tel":
144
+ return normalizePhoneNumber(trimmed);
145
+ case "mailto":
146
+ return normalizeEmail(trimmed);
147
+ case "internal":
148
+ return toRelativePath(trimmed);
149
+ case "external":
150
+ return trimmed;
151
+ default:
152
+ return trimmed;
153
+ }
154
+ }, [href, linkType]);
155
+ const target = React__namespace.useMemo(() => {
156
+ switch (linkType) {
157
+ case "external":
158
+ return "_blank";
159
+ case "internal":
160
+ return "_self";
161
+ case "mailto":
162
+ case "tel":
163
+ return void 0;
164
+ default:
165
+ return void 0;
166
+ }
167
+ }, [linkType]);
168
+ const rel = React__namespace.useMemo(() => {
169
+ if (linkType === "external") {
170
+ return "noopener noreferrer";
171
+ }
172
+ return void 0;
173
+ }, [linkType]);
174
+ const isExternal = linkType === "external";
175
+ const isInternal = linkType === "internal";
176
+ const shouldUseRouter = isInternal && typeof normalizedHref === "string" && normalizedHref.startsWith("/");
177
+ const handleClick = React__namespace.useCallback(
178
+ (event) => {
179
+ if (onClick) {
180
+ try {
181
+ onClick(event);
182
+ } catch (error) {
183
+ console.error("Error in user onClick handler:", error);
184
+ }
185
+ }
186
+ if (event.defaultPrevented) {
187
+ return;
188
+ }
189
+ if (shouldUseRouter && normalizedHref && event.button === 0 && // left-click only
190
+ !event.metaKey && !event.altKey && !event.ctrlKey && !event.shiftKey) {
191
+ if (typeof window !== "undefined") {
192
+ const handler = window.__opensiteNavigationHandler;
193
+ if (typeof handler === "function") {
194
+ try {
195
+ const handled = handler(normalizedHref, event.nativeEvent || event);
196
+ if (handled !== false) {
197
+ event.preventDefault();
198
+ }
199
+ } catch (error) {
200
+ console.error("Error in navigation handler:", error);
201
+ }
202
+ }
203
+ }
204
+ }
205
+ },
206
+ [onClick, shouldUseRouter, normalizedHref]
207
+ );
208
+ return {
209
+ linkType,
210
+ normalizedHref,
211
+ target,
212
+ rel,
213
+ isExternal,
214
+ isInternal,
215
+ shouldUseRouter,
216
+ handleClick
217
+ };
218
+ }
219
+ var baseStyles = [
220
+ // Layout
221
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap shrink-0",
222
+ // Typography - using CSS variables with sensible defaults
223
+ "font-[var(--button-font-family,inherit)]",
224
+ "font-[var(--button-font-weight,500)]",
225
+ "tracking-[var(--button-letter-spacing,0)]",
226
+ "leading-[var(--button-line-height,1.25)]",
227
+ "[text-transform:var(--button-text-transform,none)]",
228
+ "text-sm",
229
+ // Border radius
230
+ "rounded-[var(--button-radius,var(--radius,0.375rem))]",
231
+ // Smooth transition - using [transition:...] to set full shorthand property (not just transition-property)
232
+ "[transition:var(--button-transition,all_250ms_cubic-bezier(0.4,0,0.2,1))]",
233
+ // Box shadow (master level) - using [box-shadow:...] for complex multi-value shadows
234
+ "[box-shadow:var(--button-shadow,none)]",
235
+ "hover:[box-shadow:var(--button-shadow-hover,var(--button-shadow,none))]",
236
+ // Disabled state
237
+ "disabled:pointer-events-none disabled:opacity-50",
238
+ // SVG handling
239
+ "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",
240
+ // Focus styles
241
+ "outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
242
+ // Invalid state
243
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
244
+ ].join(" ");
245
+ var buttonVariants = classVarianceAuthority.cva(baseStyles, {
246
+ variants: {
247
+ variant: {
248
+ // Default (Primary) variant - full customization
249
+ default: [
250
+ "bg-[var(--button-default-bg,hsl(var(--primary)))]",
251
+ "text-[var(--button-default-fg,hsl(var(--primary-foreground)))]",
252
+ "border-[length:var(--button-default-border-width,0px)]",
253
+ "border-[color:var(--button-default-border,transparent)]",
254
+ "[box-shadow:var(--button-default-shadow,var(--button-shadow,none))]",
255
+ "hover:bg-[var(--button-default-hover-bg,hsl(var(--primary)/0.9))]",
256
+ "hover:text-[var(--button-default-hover-fg,var(--button-default-fg,hsl(var(--primary-foreground))))]",
257
+ "hover:border-[color:var(--button-default-hover-border,var(--button-default-border,transparent))]",
258
+ "hover:[box-shadow:var(--button-default-shadow-hover,var(--button-shadow-hover,var(--button-default-shadow,var(--button-shadow,none))))]"
259
+ ].join(" "),
260
+ // Destructive variant - full customization
261
+ destructive: [
262
+ "bg-[var(--button-destructive-bg,hsl(var(--destructive)))]",
263
+ "text-[var(--button-destructive-fg,white)]",
264
+ "border-[length:var(--button-destructive-border-width,0px)]",
265
+ "border-[color:var(--button-destructive-border,transparent)]",
266
+ "[box-shadow:var(--button-destructive-shadow,var(--button-shadow,none))]",
267
+ "hover:bg-[var(--button-destructive-hover-bg,hsl(var(--destructive)/0.9))]",
268
+ "hover:text-[var(--button-destructive-hover-fg,var(--button-destructive-fg,white))]",
269
+ "hover:border-[color:var(--button-destructive-hover-border,var(--button-destructive-border,transparent))]",
270
+ "hover:[box-shadow:var(--button-destructive-shadow-hover,var(--button-shadow-hover,var(--button-destructive-shadow,var(--button-shadow,none))))]",
271
+ "focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
272
+ "dark:bg-destructive/60"
273
+ ].join(" "),
274
+ // Outline variant - full customization with proper border handling
275
+ outline: [
276
+ "bg-[var(--button-outline-bg,hsl(var(--background)))]",
277
+ "text-[var(--button-outline-fg,inherit)]",
278
+ "border-[length:var(--button-outline-border-width,1px)]",
279
+ "border-[color:var(--button-outline-border,hsl(var(--border)))]",
280
+ "[box-shadow:var(--button-outline-shadow,var(--button-shadow,0_1px_2px_0_rgb(0_0_0/0.05)))]",
281
+ "hover:bg-[var(--button-outline-hover-bg,hsl(var(--accent)))]",
282
+ "hover:text-[var(--button-outline-hover-fg,hsl(var(--accent-foreground)))]",
283
+ "hover:border-[color:var(--button-outline-hover-border,var(--button-outline-border,hsl(var(--border))))]",
284
+ "hover:[box-shadow:var(--button-outline-shadow-hover,var(--button-shadow-hover,var(--button-outline-shadow,var(--button-shadow,none))))]",
285
+ "dark:bg-input/30 dark:border-input dark:hover:bg-input/50"
286
+ ].join(" "),
287
+ // Secondary variant - full customization
288
+ secondary: [
289
+ "bg-[var(--button-secondary-bg,hsl(var(--secondary)))]",
290
+ "text-[var(--button-secondary-fg,hsl(var(--secondary-foreground)))]",
291
+ "border-[length:var(--button-secondary-border-width,0px)]",
292
+ "border-[color:var(--button-secondary-border,transparent)]",
293
+ "[box-shadow:var(--button-secondary-shadow,var(--button-shadow,none))]",
294
+ "hover:bg-[var(--button-secondary-hover-bg,hsl(var(--secondary)/0.8))]",
295
+ "hover:text-[var(--button-secondary-hover-fg,var(--button-secondary-fg,hsl(var(--secondary-foreground))))]",
296
+ "hover:border-[color:var(--button-secondary-hover-border,var(--button-secondary-border,transparent))]",
297
+ "hover:[box-shadow:var(--button-secondary-shadow-hover,var(--button-shadow-hover,var(--button-secondary-shadow,var(--button-shadow,none))))]"
298
+ ].join(" "),
299
+ // Ghost variant - full customization
300
+ ghost: [
301
+ "bg-[var(--button-ghost-bg,transparent)]",
302
+ "text-[var(--button-ghost-fg,inherit)]",
303
+ "border-[length:var(--button-ghost-border-width,0px)]",
304
+ "border-[color:var(--button-ghost-border,transparent)]",
305
+ "[box-shadow:var(--button-ghost-shadow,var(--button-shadow,none))]",
306
+ "hover:bg-[var(--button-ghost-hover-bg,hsl(var(--accent)))]",
307
+ "hover:text-[var(--button-ghost-hover-fg,hsl(var(--accent-foreground)))]",
308
+ "hover:border-[color:var(--button-ghost-hover-border,var(--button-ghost-border,transparent))]",
309
+ "hover:[box-shadow:var(--button-ghost-shadow-hover,var(--button-shadow-hover,var(--button-ghost-shadow,var(--button-shadow,none))))]",
310
+ "dark:hover:bg-accent/50"
311
+ ].join(" "),
312
+ // Link variant - full customization
313
+ link: [
314
+ "bg-[var(--button-link-bg,transparent)]",
315
+ "text-[var(--button-link-fg,hsl(var(--primary)))]",
316
+ "border-[length:var(--button-link-border-width,0px)]",
317
+ "border-[color:var(--button-link-border,transparent)]",
318
+ "[box-shadow:var(--button-link-shadow,none)]",
319
+ "hover:bg-[var(--button-link-hover-bg,transparent)]",
320
+ "hover:text-[var(--button-link-hover-fg,var(--button-link-fg,hsl(var(--primary))))]",
321
+ "hover:[box-shadow:var(--button-link-shadow-hover,none)]",
322
+ "underline-offset-4 hover:underline"
323
+ ].join(" ")
324
+ },
325
+ size: {
326
+ default: [
327
+ "h-[var(--button-height-md,2.25rem)]",
328
+ "px-[var(--button-padding-x-md,1rem)]",
329
+ "py-[var(--button-padding-y-md,0.5rem)]",
330
+ "has-[>svg]:px-[calc(var(--button-padding-x-md,1rem)*0.75)]"
331
+ ].join(" "),
332
+ sm: [
333
+ "h-[var(--button-height-sm,2rem)]",
334
+ "px-[var(--button-padding-x-sm,0.75rem)]",
335
+ "py-[var(--button-padding-y-sm,0.25rem)]",
336
+ "gap-1.5",
337
+ "has-[>svg]:px-[calc(var(--button-padding-x-sm,0.75rem)*0.83)]"
338
+ ].join(" "),
339
+ md: [
340
+ "h-[var(--button-height-md,2.25rem)]",
341
+ "px-[var(--button-padding-x-md,1rem)]",
342
+ "py-[var(--button-padding-y-md,0.5rem)]",
343
+ "has-[>svg]:px-[calc(var(--button-padding-x-md,1rem)*0.75)]"
344
+ ].join(" "),
345
+ lg: [
346
+ "h-[var(--button-height-lg,2.5rem)]",
347
+ "px-[var(--button-padding-x-lg,1.5rem)]",
348
+ "py-[var(--button-padding-y-lg,0.5rem)]",
349
+ "has-[>svg]:px-[calc(var(--button-padding-x-lg,1.5rem)*0.67)]"
350
+ ].join(" "),
351
+ icon: "size-[var(--button-height-md,2.25rem)]",
352
+ "icon-sm": "size-[var(--button-height-sm,2rem)]",
353
+ "icon-lg": "size-[var(--button-height-lg,2.5rem)]"
354
+ }
355
+ },
356
+ defaultVariants: {
357
+ variant: "default",
358
+ size: "default"
359
+ }
360
+ });
361
+ var Pressable = React__namespace.forwardRef(
362
+ ({
363
+ children,
364
+ className,
365
+ href,
366
+ onClick,
367
+ variant,
368
+ size,
369
+ asButton = false,
370
+ fallbackComponentType = "span",
371
+ componentType,
372
+ "aria-label": ariaLabel,
373
+ "aria-describedby": ariaDescribedby,
374
+ id,
375
+ ...props
376
+ }, ref) => {
377
+ const navigation = useNavigation({ href, onClick });
378
+ const {
379
+ normalizedHref,
380
+ target,
381
+ rel,
382
+ linkType,
383
+ isInternal,
384
+ handleClick
385
+ } = navigation;
386
+ const shouldRenderLink = normalizedHref && linkType !== "none";
387
+ const shouldRenderButton = !shouldRenderLink && onClick;
388
+ const effectiveComponentType = componentType || (shouldRenderLink ? "a" : shouldRenderButton ? "button" : fallbackComponentType);
389
+ const finalComponentType = isInternal && shouldRenderLink ? "a" : effectiveComponentType;
390
+ const shouldApplyButtonStyles = asButton || variant || size;
391
+ const combinedClassName = cn(
392
+ shouldApplyButtonStyles && buttonVariants({ variant, size }),
393
+ className
394
+ );
395
+ const dataProps = Object.fromEntries(
396
+ Object.entries(props).filter(([key]) => key.startsWith("data-"))
397
+ );
398
+ const buttonDataAttributes = shouldApplyButtonStyles ? {
399
+ "data-slot": "button",
400
+ "data-variant": variant ?? "default",
401
+ "data-size": size ?? "default"
402
+ } : {};
403
+ const commonProps = {
404
+ className: combinedClassName,
405
+ onClick: handleClick,
406
+ "aria-label": ariaLabel,
407
+ "aria-describedby": ariaDescribedby,
408
+ id,
409
+ ...dataProps,
410
+ ...buttonDataAttributes
411
+ };
412
+ if (finalComponentType === "a" && shouldRenderLink) {
413
+ return /* @__PURE__ */ jsxRuntime.jsx(
414
+ "a",
415
+ {
416
+ ref,
417
+ href: normalizedHref,
418
+ target,
419
+ rel,
420
+ ...commonProps,
421
+ ...props,
422
+ children
423
+ }
424
+ );
425
+ }
426
+ if (finalComponentType === "button") {
427
+ return /* @__PURE__ */ jsxRuntime.jsx(
428
+ "button",
429
+ {
430
+ ref,
431
+ type: props.type || "button",
432
+ ...commonProps,
433
+ ...props,
434
+ children
435
+ }
436
+ );
437
+ }
438
+ if (finalComponentType === "div") {
439
+ return /* @__PURE__ */ jsxRuntime.jsx(
440
+ "div",
441
+ {
442
+ ref,
443
+ ...commonProps,
444
+ children
445
+ }
446
+ );
447
+ }
448
+ return /* @__PURE__ */ jsxRuntime.jsx(
449
+ "span",
450
+ {
451
+ ref,
452
+ ...commonProps,
453
+ children
454
+ }
455
+ );
456
+ }
457
+ );
458
+ Pressable.displayName = "Pressable";
459
+ var svgCache = /* @__PURE__ */ new Map();
460
+ function DynamicIcon({
461
+ name,
462
+ size = 28,
463
+ color,
464
+ className,
465
+ alt
466
+ }) {
467
+ const [svgContent, setSvgContent] = React__namespace.useState(null);
468
+ const [isLoading, setIsLoading] = React__namespace.useState(true);
469
+ const [error, setError] = React__namespace.useState(null);
470
+ const { url, iconName } = React__namespace.useMemo(() => {
471
+ const separator = name.includes("/") ? "/" : ":";
472
+ const [prefix, iconName2] = name.split(separator);
473
+ const baseUrl = `https://icons.opensite.ai/api/icon/${prefix}/${iconName2}?format=svg&width=${size}&height=${size}`;
474
+ return {
475
+ url: baseUrl,
476
+ iconName: iconName2
477
+ };
478
+ }, [name, size]);
479
+ React__namespace.useEffect(() => {
480
+ let isMounted = true;
481
+ const fetchSvg = async () => {
482
+ const cached = svgCache.get(url);
483
+ if (cached) {
484
+ if (isMounted) {
485
+ setSvgContent(cached);
486
+ setIsLoading(false);
487
+ }
488
+ return;
489
+ }
490
+ try {
491
+ setIsLoading(true);
492
+ setError(null);
493
+ const response = await fetch(url);
494
+ if (!response.ok) {
495
+ throw new Error(`Failed to fetch icon: ${response.status}`);
496
+ }
497
+ let svg = await response.text();
498
+ svg = processSvgForCurrentColor(svg);
499
+ svgCache.set(url, svg);
500
+ if (isMounted) {
501
+ setSvgContent(svg);
502
+ setIsLoading(false);
503
+ }
504
+ } catch (err) {
505
+ if (isMounted) {
506
+ setError(err instanceof Error ? err.message : "Failed to load icon");
507
+ setIsLoading(false);
508
+ }
509
+ }
510
+ };
511
+ fetchSvg();
512
+ return () => {
513
+ isMounted = false;
514
+ };
515
+ }, [url]);
516
+ if (isLoading) {
517
+ return /* @__PURE__ */ jsxRuntime.jsx(
518
+ "span",
519
+ {
520
+ className: cn("inline-block", className),
521
+ style: { width: size, height: size },
522
+ "aria-hidden": "true"
523
+ }
524
+ );
525
+ }
526
+ if (error || !svgContent) {
527
+ return /* @__PURE__ */ jsxRuntime.jsx(
528
+ "span",
529
+ {
530
+ className: cn("inline-block", className),
531
+ style: { width: size, height: size },
532
+ role: "img",
533
+ "aria-label": alt || iconName
534
+ }
535
+ );
536
+ }
537
+ return /* @__PURE__ */ jsxRuntime.jsx(
538
+ "span",
539
+ {
540
+ className: cn("inline-flex items-center justify-center", className),
541
+ style: {
542
+ width: size,
543
+ height: size,
544
+ color: color || "inherit"
545
+ },
546
+ role: "img",
547
+ "aria-label": alt || iconName,
548
+ dangerouslySetInnerHTML: { __html: svgContent }
549
+ }
550
+ );
551
+ }
552
+ function processSvgForCurrentColor(svg) {
553
+ let processed = svg;
554
+ processed = processed.replace(
555
+ /stroke=["'](#000000|#000|black)["']/gi,
556
+ 'stroke="currentColor"'
557
+ );
558
+ processed = processed.replace(
559
+ /fill=["'](#000000|#000|black)["']/gi,
560
+ 'fill="currentColor"'
561
+ );
562
+ return processed;
563
+ }
564
+ var maxWidthStyles = {
565
+ sm: "max-w-screen-sm",
566
+ md: "max-w-screen-md",
567
+ lg: "max-w-screen-lg",
568
+ xl: "max-w-7xl",
569
+ "2xl": "max-w-screen-2xl",
570
+ "4xl": "max-w-[1536px]",
571
+ full: "max-w-full"
572
+ };
573
+ var Container = React__namespace.default.forwardRef(
574
+ ({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
575
+ const Component = as;
576
+ return /* @__PURE__ */ jsxRuntime.jsx(
577
+ Component,
578
+ {
579
+ ref,
580
+ className: cn(
581
+ "mx-auto w-full px-2 sm:px-4 lg:px-8",
582
+ maxWidthStyles[maxWidth],
583
+ className
584
+ ),
585
+ ...props,
586
+ children
587
+ }
588
+ );
589
+ }
590
+ );
591
+ Container.displayName = "Container";
592
+
593
+ // lib/patternSvgs.ts
594
+ var patternSvgs = {
595
+ squareAltGrid: "https://cdn.ing/assets/files/record/286187/4gpn0yq2ptra8iwlvmwwv860ggwv",
596
+ grid1: "https://cdn.ing/assets/files/record/286186/nbdflpgp4ostrno079hygibsflp3",
597
+ noise: "https://cdn.ing/assets/i/r/286188/zrqcp9hynh3j7p2laihwzfbujgrl/noise.png",
598
+ dots: "https://cdn.ing/assets/files/record/286198/yfsjx9thvtxzhl2qtshxyhkrm524",
599
+ dotPattern: "https://cdn.ing/assets/files/record/286192/7ig0cku8aqbboiza8nuk6hw0nnsr",
600
+ dotPattern2: "https://cdn.ing/assets/files/record/286189/arez6gd2s7isn9i1o6c7sexdq7bl",
601
+ circles: "https://cdn.ing/assets/files/record/286190/gtmia3sncjtzetdshc20zf1d3c17",
602
+ waves: "https://cdn.ing/assets/files/record/286191/mqlb33fzxz9cdth1bx7if0wmpkp1",
603
+ crossPattern: "https://cdn.ing/assets/files/record/286193/9yfqwdbnqaipbp7fsb3wbzzmq472",
604
+ architect: "https://cdn.ing/assets/files/record/286194/vgs88ugpvyhxu13wqgy0acvae6re",
605
+ tinyCheckers: "https://cdn.ing/assets/files/record/286195/65efaknsw8kcpf9o3c2gybytsl5b",
606
+ p6: "https://cdn.ing/assets/i/r/286196/6kl0rqnd6mjk8j7e525fo8fo0vkc/p6.webp"
607
+ };
608
+ var maskTop = "radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%)";
609
+ var maskBottom = "radial-gradient(ellipse 100% 80% at 50% 100%, #000 50%, transparent 90%)";
610
+ var maskCenter = "radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 70%)";
611
+ var maskTopLeft = "radial-gradient(ellipse 80% 80% at 0% 0%, #000 50%, transparent 90%)";
612
+ var maskTopRight = "radial-gradient(ellipse 80% 80% at 100% 0%, #000 50%, transparent 90%)";
613
+ var maskBottomLeft = "radial-gradient(ellipse 80% 80% at 0% 100%, #000 50%, transparent 90%)";
614
+ var maskBottomRight = "radial-gradient(ellipse 80% 80% at 100% 100%, #000 50%, transparent 90%)";
615
+ var circuitBoardPattern = (id, mask) => /* @__PURE__ */ jsxRuntime.jsxs(
616
+ "svg",
617
+ {
618
+ className: "h-full w-full",
619
+ xmlns: "http://www.w3.org/2000/svg",
620
+ style: mask ? {
621
+ maskImage: mask,
622
+ WebkitMaskImage: mask
623
+ } : void 0,
624
+ children: [
625
+ /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs(
626
+ "pattern",
627
+ {
628
+ id,
629
+ x: "0",
630
+ y: "0",
631
+ width: "100",
632
+ height: "100",
633
+ patternUnits: "userSpaceOnUse",
634
+ children: [
635
+ /* @__PURE__ */ jsxRuntime.jsx(
636
+ "path",
637
+ {
638
+ d: "M0 50h40M60 50h40M50 0v40M50 60v40",
639
+ stroke: "hsl(var(--muted))",
640
+ strokeWidth: "1",
641
+ fill: "none"
642
+ }
643
+ ),
644
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "50", cy: "50", r: "3", fill: "hsl(var(--muted))" }),
645
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "0", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
646
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "100", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
647
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "50", cy: "0", r: "2", fill: "hsl(var(--muted))" }),
648
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "50", cy: "100", r: "2", fill: "hsl(var(--muted))" })
649
+ ]
650
+ }
651
+ ) }),
652
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
653
+ ]
654
+ }
655
+ );
656
+ var gridDotsPattern = (id, mask) => /* @__PURE__ */ jsxRuntime.jsxs(
657
+ "svg",
658
+ {
659
+ className: "h-full w-full",
660
+ xmlns: "http://www.w3.org/2000/svg",
661
+ style: mask ? {
662
+ maskImage: mask,
663
+ WebkitMaskImage: mask
664
+ } : void 0,
665
+ children: [
666
+ /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs(
667
+ "pattern",
668
+ {
669
+ id,
670
+ x: "0",
671
+ y: "0",
672
+ width: "40",
673
+ height: "40",
674
+ patternUnits: "userSpaceOnUse",
675
+ children: [
676
+ /* @__PURE__ */ jsxRuntime.jsx(
677
+ "path",
678
+ {
679
+ d: "M0 20h40M20 0v40",
680
+ stroke: "hsl(var(--muted))",
681
+ strokeWidth: "0.5",
682
+ fill: "none"
683
+ }
684
+ ),
685
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "20", cy: "20", r: "2", fill: "hsl(var(--muted))" })
686
+ ]
687
+ }
688
+ ) }),
689
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
690
+ ]
691
+ }
692
+ );
693
+ var gridPattern = (size, mask) => /* @__PURE__ */ jsxRuntime.jsx(
694
+ "div",
695
+ {
696
+ className: "h-full w-full bg-[linear-gradient(to_right,_hsl(var(--muted))_1px,_transparent_1px),linear-gradient(to_bottom,_hsl(var(--muted))_1px,_transparent_1px)]",
697
+ style: {
698
+ backgroundSize: `${size}px ${size}px`,
699
+ ...mask ? {
700
+ maskImage: mask,
701
+ WebkitMaskImage: mask
702
+ } : {}
703
+ }
704
+ }
705
+ );
706
+ var diagonalCrossPattern = (mask) => /* @__PURE__ */ jsxRuntime.jsx(
707
+ "div",
708
+ {
709
+ className: "h-full w-full",
710
+ style: {
711
+ backgroundImage: "repeating-linear-gradient(45deg, transparent, transparent 32px, hsl(var(--muted)) 32px, hsl(var(--muted)) 33px), repeating-linear-gradient(135deg, transparent, transparent 32px, hsl(var(--muted)) 32px, hsl(var(--muted)) 33px)",
712
+ ...mask ? {
713
+ maskImage: mask,
714
+ WebkitMaskImage: mask
715
+ } : {}
716
+ }
717
+ }
718
+ );
719
+ var dashedGridMaskBase = "repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px), repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px)";
720
+ var dashedGridPattern = (fadeMask) => {
721
+ const mask = fadeMask ? `${dashedGridMaskBase}, ${fadeMask}` : dashedGridMaskBase;
722
+ return /* @__PURE__ */ jsxRuntime.jsx(
723
+ "div",
724
+ {
725
+ className: "h-full w-full",
726
+ style: {
727
+ backgroundImage: "linear-gradient(to right, hsl(var(--muted)) 1px, transparent 1px), linear-gradient(to bottom, hsl(var(--muted)) 1px, transparent 1px)",
728
+ backgroundSize: "20px 20px",
729
+ backgroundPosition: "0 0, 0 0",
730
+ maskImage: mask,
731
+ WebkitMaskImage: mask,
732
+ maskComposite: "intersect",
733
+ WebkitMaskComposite: "source-in"
734
+ }
735
+ }
736
+ );
737
+ };
738
+ var gradientGlow = (position) => /* @__PURE__ */ jsxRuntime.jsx(
739
+ "div",
740
+ {
741
+ className: cn(
742
+ "pointer-events-none absolute left-1/2 z-0 aspect-square w-3/4 -translate-x-1/2 rounded-full opacity-50 blur-3xl",
743
+ position === "top" ? "-top-1/4" : "-bottom-1/4"
744
+ ),
745
+ style: {
746
+ background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
747
+ }
748
+ }
749
+ );
750
+ var spotlight = (position) => /* @__PURE__ */ jsxRuntime.jsx(
751
+ "div",
752
+ {
753
+ className: cn(
754
+ "pointer-events-none absolute top-1/2 z-0 aspect-square w-3/4 -translate-y-1/2 rounded-full opacity-40 blur-3xl",
755
+ position === "left" ? "-left-1/4" : "-right-1/4"
756
+ ),
757
+ style: {
758
+ background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
759
+ }
760
+ }
761
+ );
762
+ var patternOverlays = {
763
+ circuitBoardBasic: () => circuitBoardPattern("circuit-board-basic"),
764
+ circuitBoardFadeTop: () => circuitBoardPattern("circuit-board-fade-top", maskTop),
765
+ circuitBoardFadeBottom: () => circuitBoardPattern("circuit-board-fade-bottom", maskBottom),
766
+ circuitBoardFadeCenter: () => circuitBoardPattern("circuit-board-fade-center", maskCenter),
767
+ circuitBoardFadeTopLeft: () => circuitBoardPattern("circuit-board-fade-top-left", maskTopLeft),
768
+ circuitBoardFadeTopRight: () => circuitBoardPattern("circuit-board-fade-top-right", maskTopRight),
769
+ circuitBoardFadeBottomLeft: () => circuitBoardPattern("circuit-board-fade-bottom-left", maskBottomLeft),
770
+ circuitBoardFadeBottomRight: () => circuitBoardPattern("circuit-board-fade-bottom-right", maskBottomRight),
771
+ dashedGridBasic: () => dashedGridPattern(),
772
+ dashedGridFadeTop: () => dashedGridPattern(maskTop),
773
+ dashedGridFadeBottom: () => dashedGridPattern(maskBottom),
774
+ dashedGridFadeCenter: () => dashedGridPattern(maskCenter),
775
+ dashedGridFadeTopLeft: () => dashedGridPattern(maskTopLeft),
776
+ dashedGridFadeTopRight: () => dashedGridPattern(maskTopRight),
777
+ dashedGridFadeBottomLeft: () => dashedGridPattern(maskBottomLeft),
778
+ dashedGridFadeBottomRight: () => dashedGridPattern(maskBottomRight),
779
+ diagonalCrossBasic: () => diagonalCrossPattern(),
780
+ diagonalCrossFadeTop: () => diagonalCrossPattern(maskTop),
781
+ diagonalCrossFadeBottom: () => diagonalCrossPattern(maskBottom),
782
+ diagonalCrossFadeCenter: () => diagonalCrossPattern(maskCenter),
783
+ diagonalCrossFadeTopLeft: () => diagonalCrossPattern(maskTopLeft),
784
+ diagonalCrossFadeTopRight: () => diagonalCrossPattern(maskTopRight),
785
+ diagonalCrossFadeBottomLeft: () => diagonalCrossPattern(maskBottomLeft),
786
+ diagonalCrossFadeBottomRight: () => diagonalCrossPattern(maskBottomRight),
787
+ gridBasic: () => gridPattern(40),
788
+ gridFadeTop: () => gridPattern(32, maskTop),
789
+ gridFadeBottom: () => gridPattern(32, maskBottom),
790
+ gridFadeCenter: () => gridPattern(40, maskCenter),
791
+ gridFadeTopLeft: () => gridPattern(32, maskTopLeft),
792
+ gridFadeTopRight: () => gridPattern(32, maskTopRight),
793
+ gridFadeBottomLeft: () => gridPattern(32, maskBottomLeft),
794
+ gridFadeBottomRight: () => gridPattern(32, maskBottomRight),
795
+ gridDotsBasic: () => gridDotsPattern("grid-dots-basic"),
796
+ gridDotsFadeCenter: () => gridDotsPattern("grid-dots-fade-center", maskCenter),
797
+ gradientGlowTop: () => gradientGlow("top"),
798
+ gradientGlowBottom: () => gradientGlow("bottom"),
799
+ spotlightLeft: () => spotlight("left"),
800
+ spotlightRight: () => spotlight("right")
801
+ };
802
+ var inlinePatternStyles = {
803
+ radialGradientTop: {
804
+ background: "radial-gradient(125% 125% at 50% 10%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
805
+ },
806
+ radialGradientBottom: {
807
+ background: "radial-gradient(125% 125% at 50% 90%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
808
+ }
809
+ };
810
+ function PatternBackground({
811
+ pattern,
812
+ opacity = 0.08,
813
+ className,
814
+ style
815
+ }) {
816
+ if (!pattern) {
817
+ return null;
818
+ }
819
+ if (pattern in inlinePatternStyles) {
820
+ const inlineStyle = inlinePatternStyles[pattern];
821
+ return /* @__PURE__ */ jsxRuntime.jsx(
822
+ "div",
823
+ {
824
+ className: cn("pointer-events-none absolute inset-0 z-0", className),
825
+ style: { ...inlineStyle, opacity, ...style },
826
+ "aria-hidden": "true"
827
+ }
828
+ );
829
+ }
830
+ if (pattern in patternOverlays) {
831
+ const Overlay2 = patternOverlays[pattern];
832
+ return /* @__PURE__ */ jsxRuntime.jsx(
833
+ "div",
834
+ {
835
+ className: cn("pointer-events-none absolute inset-0 z-0", className),
836
+ style: { opacity, ...style },
837
+ "aria-hidden": "true",
838
+ children: Overlay2()
839
+ }
840
+ );
841
+ }
842
+ const patternUrl = pattern in patternSvgs ? patternSvgs[pattern] : pattern;
843
+ return /* @__PURE__ */ jsxRuntime.jsx(
844
+ "div",
845
+ {
846
+ className: cn("pointer-events-none absolute inset-0 z-0", className),
847
+ style: {
848
+ backgroundImage: `url(${patternUrl})`,
849
+ backgroundRepeat: "repeat",
850
+ backgroundSize: "auto",
851
+ opacity,
852
+ ...style
853
+ },
854
+ "aria-hidden": "true"
855
+ }
856
+ );
857
+ }
858
+ var backgroundStyles = {
859
+ default: "bg-background text-foreground",
860
+ white: "bg-white text-dark",
861
+ gray: "bg-muted/30 text-foreground",
862
+ dark: "bg-foreground text-background",
863
+ transparent: "bg-transparent text-foreground",
864
+ gradient: "bg-linear-to-br from-primary via-primary/90 to-foreground text-primary-foreground",
865
+ primary: "bg-primary text-primary-foreground",
866
+ secondary: "bg-secondary text-secondary-foreground",
867
+ muted: "bg-muted text-muted-foreground"
868
+ };
869
+ var spacingStyles = {
870
+ none: "py-0 md:py-0",
871
+ sm: "py-12 md:py-16",
872
+ md: "py-16 md:py-24",
873
+ lg: "py-20 md:py-32",
874
+ xl: "py-24 md:py-40"
875
+ };
876
+ var predefinedSpacings = ["none", "sm", "md", "lg", "xl"];
877
+ var isPredefinedSpacing = (spacing) => predefinedSpacings.includes(spacing);
878
+ var Section = React__namespace.default.forwardRef(
879
+ ({
880
+ id,
881
+ title,
882
+ subtitle,
883
+ children,
884
+ className,
885
+ style,
886
+ background = "default",
887
+ spacing = "lg",
888
+ pattern,
889
+ patternOpacity,
890
+ patternClassName,
891
+ containerClassName,
892
+ containerMaxWidth = "xl",
893
+ ...props
894
+ }, ref) => {
895
+ const effectivePatternOpacity = patternOpacity !== void 0 ? patternOpacity : pattern ? 1 : 0;
896
+ return /* @__PURE__ */ jsxRuntime.jsxs(
897
+ "section",
898
+ {
899
+ ref,
900
+ id,
901
+ className: cn(
902
+ "relative",
903
+ pattern ? "overflow-hidden" : null,
904
+ backgroundStyles[background],
905
+ isPredefinedSpacing(spacing) ? spacingStyles[spacing] : spacing,
906
+ className
907
+ ),
908
+ style,
909
+ ...props,
910
+ children: [
911
+ /* @__PURE__ */ jsxRuntime.jsx(
912
+ PatternBackground,
913
+ {
914
+ pattern,
915
+ opacity: effectivePatternOpacity,
916
+ className: patternClassName
917
+ }
918
+ ),
919
+ /* @__PURE__ */ jsxRuntime.jsxs(
920
+ Container,
921
+ {
922
+ maxWidth: containerMaxWidth,
923
+ className: cn("relative z-10", containerClassName),
924
+ children: [
925
+ (title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6 text-center md:mb-16", children: [
926
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 text-sm font-semibold uppercase tracking-wider", children: subtitle }),
927
+ title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl", children: title })
928
+ ] }),
929
+ children
930
+ ]
931
+ }
932
+ )
933
+ ]
934
+ }
935
+ );
936
+ }
937
+ );
938
+ Section.displayName = "Section";
939
+ function Dialog({
940
+ ...props
941
+ }) {
942
+ return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { "data-slot": "dialog", ...props });
943
+ }
944
+ function DialogPortal({
945
+ ...props
946
+ }) {
947
+ return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { "data-slot": "dialog-portal", ...props });
948
+ }
949
+ function DialogClose({
950
+ ...props
951
+ }) {
952
+ return /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { "data-slot": "dialog-close", ...props });
953
+ }
954
+ function DialogOverlay({
955
+ className,
956
+ ...props
957
+ }) {
958
+ return /* @__PURE__ */ jsxRuntime.jsx(
959
+ DialogPrimitive__namespace.Overlay,
960
+ {
961
+ "data-slot": "dialog-overlay",
962
+ className: cn(
963
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
964
+ className
965
+ ),
966
+ ...props
967
+ }
968
+ );
969
+ }
970
+ function DialogContent({
971
+ className,
972
+ children,
973
+ showCloseButton = true,
974
+ ...props
975
+ }) {
976
+ return /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
977
+ /* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
978
+ /* @__PURE__ */ jsxRuntime.jsxs(
979
+ DialogPrimitive__namespace.Content,
980
+ {
981
+ "data-slot": "dialog-content",
982
+ className: cn(
983
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",
984
+ className
985
+ ),
986
+ ...props,
987
+ children: [
988
+ children,
989
+ showCloseButton && /* @__PURE__ */ jsxRuntime.jsxs(
990
+ DialogPrimitive__namespace.Close,
991
+ {
992
+ "data-slot": "dialog-close",
993
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
994
+ children: [
995
+ /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", size: 16 }),
996
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
997
+ ]
998
+ }
999
+ )
1000
+ ]
1001
+ }
1002
+ )
1003
+ ] });
1004
+ }
1005
+ function DialogFooter({ className, ...props }) {
1006
+ return /* @__PURE__ */ jsxRuntime.jsx(
1007
+ "div",
1008
+ {
1009
+ "data-slot": "dialog-footer",
1010
+ className: cn(
1011
+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
1012
+ className
1013
+ ),
1014
+ ...props
1015
+ }
1016
+ );
1017
+ }
1018
+ function DialogTitle({
1019
+ className,
1020
+ ...props
1021
+ }) {
1022
+ return /* @__PURE__ */ jsxRuntime.jsx(
1023
+ DialogPrimitive__namespace.Title,
1024
+ {
1025
+ "data-slot": "dialog-title",
1026
+ className: cn("text-lg leading-none font-semibold", className),
1027
+ ...props
1028
+ }
1029
+ );
1030
+ }
1031
+ function DialogDescription({
1032
+ className,
1033
+ ...props
1034
+ }) {
1035
+ return /* @__PURE__ */ jsxRuntime.jsx(
1036
+ DialogPrimitive__namespace.Description,
1037
+ {
1038
+ "data-slot": "dialog-description",
1039
+ className: cn("text-muted-foreground text-sm", className),
1040
+ ...props
1041
+ }
1042
+ );
1043
+ }
1044
+ var PageSpeedFormSubmissionError = class extends Error {
1045
+ constructor(message, options = {}) {
1046
+ super(message);
1047
+ this.name = "PageSpeedFormSubmissionError";
1048
+ this.formErrors = options.formErrors;
1049
+ this.status = options.status;
1050
+ }
1051
+ };
1052
+ var EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
1053
+ function isValidEmail(value) {
1054
+ return EMAIL_REGEX.test(value);
1055
+ }
1056
+ function buildUrlWithParams(endpoint, values) {
1057
+ const base = typeof window === "undefined" ? "http://localhost" : window.location.origin;
1058
+ const url = new URL(endpoint, base);
1059
+ Object.entries(values).forEach(([key, value]) => {
1060
+ if (value === void 0 || value === null) {
1061
+ return;
1062
+ }
1063
+ if (Array.isArray(value)) {
1064
+ value.forEach((item) => {
1065
+ if (item !== void 0 && item !== null) {
1066
+ url.searchParams.append(key, String(item));
1067
+ }
1068
+ });
1069
+ return;
1070
+ }
1071
+ url.searchParams.set(key, String(value));
1072
+ });
1073
+ return url.toString();
1074
+ }
1075
+ function normalizeMethod(method) {
1076
+ return (method || "post").toUpperCase();
1077
+ }
1078
+ function resolveFormat(config) {
1079
+ if (config?.format) {
1080
+ return config.format;
1081
+ }
1082
+ return config?.apiKey ? "rails" : "json";
1083
+ }
1084
+ function mergeValues(values, config) {
1085
+ return {
1086
+ ...config?.values ?? {},
1087
+ ...values
1088
+ };
1089
+ }
1090
+ async function submitPageSpeedForm(values, config) {
1091
+ if (!config?.endpoint) {
1092
+ return null;
1093
+ }
1094
+ const payload = mergeValues(values, config);
1095
+ const method = normalizeMethod(config.method);
1096
+ const format = resolveFormat(config);
1097
+ const headers = { ...config.headers ?? {} };
1098
+ if (format === "rails") {
1099
+ if (!config.apiKey) {
1100
+ throw new PageSpeedFormSubmissionError(
1101
+ "Missing apiKey for Rails form submission."
1102
+ );
1103
+ }
1104
+ const railsConfig = {
1105
+ apiKey: config.apiKey,
1106
+ contactCategoryToken: config.contactCategoryToken,
1107
+ locationId: config.locationId,
1108
+ websiteId: config.websiteId,
1109
+ websiteFormAssignmentId: config.websiteFormAssignmentId,
1110
+ visitorIpAddress: config.visitorIpAddress
1111
+ };
1112
+ const serialized = integration.serializeForRails(payload, railsConfig);
1113
+ if (serialized.contact.contact_form_upload_tokens) {
1114
+ serialized.contact.contact_form_upload_tokens = serialized.contact.contact_form_upload_tokens.map((token) => token.replace(/^upload_/, ""));
1115
+ }
1116
+ headers["Content-Type"] ?? (headers["Content-Type"] = "application/json");
1117
+ const response2 = await fetch(config.endpoint, {
1118
+ method,
1119
+ headers,
1120
+ body: JSON.stringify(serialized)
1121
+ });
1122
+ const data2 = await response2.json().catch(() => null);
1123
+ if (!response2.ok || data2 && data2.errors) {
1124
+ const errorResponse = {
1125
+ errors: data2?.errors ?? { base: ["Form submission failed"] },
1126
+ status: data2?.status ?? response2.status
1127
+ };
1128
+ const formErrors = integration.deserializeErrors(errorResponse);
1129
+ throw new PageSpeedFormSubmissionError("Form submission failed.", {
1130
+ formErrors,
1131
+ status: errorResponse.status
1132
+ });
1133
+ }
1134
+ return data2;
1135
+ }
1136
+ if (method === "GET") {
1137
+ const url = buildUrlWithParams(config.endpoint, payload);
1138
+ const response2 = await fetch(url, { method, headers });
1139
+ const data2 = await response2.json().catch(() => null);
1140
+ if (!response2.ok) {
1141
+ throw new PageSpeedFormSubmissionError(
1142
+ data2?.message || "Form submission failed.",
1143
+ { status: response2.status }
1144
+ );
1145
+ }
1146
+ return data2;
1147
+ }
1148
+ headers["Content-Type"] ?? (headers["Content-Type"] = "application/json");
1149
+ const response = await fetch(config.endpoint, {
1150
+ method,
1151
+ headers,
1152
+ body: JSON.stringify(payload)
1153
+ });
1154
+ const data = await response.json().catch(() => null);
1155
+ if (!response.ok) {
1156
+ throw new PageSpeedFormSubmissionError(
1157
+ data?.message || "Form submission failed.",
1158
+ { status: response.status }
1159
+ );
1160
+ }
1161
+ return data;
1162
+ }
1163
+ var { useMemo: useMemo3 } = React__namespace;
1164
+ function OfferModalMembershipImage({
1165
+ overline,
1166
+ title,
1167
+ description,
1168
+ image,
1169
+ imageSlot,
1170
+ emailPlaceholder,
1171
+ buttonText,
1172
+ closeButtonSlot,
1173
+ formSlot,
1174
+ footerSlot,
1175
+ open,
1176
+ onOpenChange,
1177
+ defaultOpen = true,
1178
+ onSubmit,
1179
+ formConfig,
1180
+ onSuccess,
1181
+ onError,
1182
+ className,
1183
+ imageWrapperClassName,
1184
+ imageClassName,
1185
+ contentClassName,
1186
+ overlineClassName,
1187
+ titleClassName,
1188
+ descriptionClassName,
1189
+ formClassName,
1190
+ inputClassName,
1191
+ submitClassName,
1192
+ closeClassName,
1193
+ footerClassName,
1194
+ optixFlowConfig,
1195
+ background = "default"
1196
+ }) {
1197
+ const form = forms.useForm({
1198
+ initialValues: {
1199
+ email: ""
1200
+ },
1201
+ validationSchema: {
1202
+ email: (value) => {
1203
+ if (!value) return "Please enter an email address";
1204
+ if (!isValidEmail(value)) {
1205
+ return "Please enter a valid email address";
1206
+ }
1207
+ return void 0;
1208
+ }
1209
+ },
1210
+ onSubmit: async (values, helpers) => {
1211
+ const shouldAutoSubmit = Boolean(formConfig?.endpoint);
1212
+ if (!shouldAutoSubmit && !onSubmit) {
1213
+ return;
1214
+ }
1215
+ try {
1216
+ let result;
1217
+ if (shouldAutoSubmit) {
1218
+ result = await submitPageSpeedForm(values, formConfig);
1219
+ }
1220
+ if (onSubmit) {
1221
+ await onSubmit(values.email);
1222
+ }
1223
+ if (shouldAutoSubmit || onSubmit) {
1224
+ if (formConfig?.resetOnSuccess !== false) {
1225
+ helpers.resetForm();
1226
+ }
1227
+ onSuccess?.(result);
1228
+ }
1229
+ } catch (error) {
1230
+ if (error instanceof PageSpeedFormSubmissionError && error.formErrors) {
1231
+ helpers.setErrors(error.formErrors);
1232
+ }
1233
+ onError?.(error);
1234
+ throw error;
1235
+ }
1236
+ }
1237
+ });
1238
+ const formMethod = formConfig?.method?.toLowerCase() === "get" ? "get" : "post";
1239
+ const dialogProps = open !== void 0 ? { open, onOpenChange } : { defaultOpen };
1240
+ const renderImage = useMemo3(() => {
1241
+ if (imageSlot) return imageSlot;
1242
+ if (!image) return null;
1243
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("max-h-[290px] h-full overflow-hidden max-lg:hidden", imageWrapperClassName), children: /* @__PURE__ */ jsxRuntime.jsx(
1244
+ img.Img,
1245
+ {
1246
+ src: image.src,
1247
+ alt: image.alt,
1248
+ className: cn("block size-full object-cover object-[50%_15%]", imageClassName),
1249
+ optixFlowConfig
1250
+ }
1251
+ ) });
1252
+ }, [imageSlot, image, imageWrapperClassName, imageClassName, optixFlowConfig]);
1253
+ const renderCloseButton = useMemo3(() => {
1254
+ if (closeButtonSlot) return closeButtonSlot;
1255
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute -end-px -top-px z-10", children: /* @__PURE__ */ jsxRuntime.jsx(DialogClose, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
1256
+ Pressable,
1257
+ {
1258
+ size: "icon-sm",
1259
+ variant: "default",
1260
+ className: cn(
1261
+ "origin-top-right rounded-none transition-all duration-300 lg:scale-50 lg:opacity-0 lg:group-hover:scale-100 lg:group-hover:opacity-100 [@media(hover:none)]:scale-100 [@media(hover:none)]:opacity-100",
1262
+ closeClassName
1263
+ ),
1264
+ asButton: true,
1265
+ children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/x", size: 16 })
1266
+ }
1267
+ ) }) });
1268
+ }, [closeButtonSlot, closeClassName]);
1269
+ const renderForm = useMemo3(() => {
1270
+ if (formSlot) return formSlot;
1271
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1272
+ forms.Form,
1273
+ {
1274
+ form,
1275
+ action: formConfig?.endpoint,
1276
+ method: formMethod,
1277
+ className: cn("space-y-2.5", formClassName),
1278
+ children: [
1279
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2.5", children: [
1280
+ /* @__PURE__ */ jsxRuntime.jsx(
1281
+ forms.Field,
1282
+ {
1283
+ name: "email",
1284
+ className: "flex-1",
1285
+ children: ({ field, meta }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1", children: [
1286
+ /* @__PURE__ */ jsxRuntime.jsx(
1287
+ TextInput,
1288
+ {
1289
+ ...field,
1290
+ type: "email",
1291
+ placeholder: emailPlaceholder,
1292
+ error: (meta.touched || form.status === "error") && !!meta.error,
1293
+ className: cn("w-full pr-10", inputClassName),
1294
+ "aria-label": emailPlaceholder || "Email address"
1295
+ }
1296
+ ),
1297
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/mail", size: 16 }) }),
1298
+ (meta.touched || form.status === "error") && meta.error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-destructive mt-1 text-xs", children: meta.error })
1299
+ ] })
1300
+ }
1301
+ ),
1302
+ /* @__PURE__ */ jsxRuntime.jsx(
1303
+ Pressable,
1304
+ {
1305
+ size: "icon",
1306
+ variant: "default",
1307
+ className: cn("lg:hidden", submitClassName),
1308
+ asButton: true,
1309
+ componentType: "button",
1310
+ type: "submit",
1311
+ disabled: form.isSubmitting,
1312
+ children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/arrow-right", size: 16 })
1313
+ }
1314
+ )
1315
+ ] }),
1316
+ /* @__PURE__ */ jsxRuntime.jsx(
1317
+ Pressable,
1318
+ {
1319
+ className: cn("w-full max-lg:hidden", submitClassName),
1320
+ variant: "default",
1321
+ asButton: true,
1322
+ componentType: "button",
1323
+ type: "submit",
1324
+ disabled: form.isSubmitting,
1325
+ children: buttonText
1326
+ }
1327
+ )
1328
+ ]
1329
+ }
1330
+ );
1331
+ }, [formSlot, form, formConfig, formMethod, emailPlaceholder, inputClassName, submitClassName, buttonText, formClassName]);
1332
+ const renderFooter = useMemo3(() => {
1333
+ if (footerSlot) return footerSlot;
1334
+ if (!description) return null;
1335
+ return /* @__PURE__ */ jsxRuntime.jsx(DialogFooter, { className: footerClassName, children: /* @__PURE__ */ jsxRuntime.jsx(DialogDescription, { className: cn("text-muted-foreground text-center text-xs leading-relaxed", descriptionClassName), children: description }) });
1336
+ }, [footerSlot, description, footerClassName, descriptionClassName]);
1337
+ return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { ...dialogProps, children: /* @__PURE__ */ jsxRuntime.jsxs(
1338
+ DialogContent,
1339
+ {
1340
+ showCloseButton: false,
1341
+ className: cn(
1342
+ "data-[state=closed]:slide-out-to-bottom-30 data-[state=open]:slide-in-from-bottom-30 sm:max-w-[760px] lg:max-w-[470px] group max-h-[calc(100dvh-2rem)] max-w-full gap-0 rounded-none border-none p-0 max-lg:bottom-0 max-lg:top-auto max-lg:translate-y-0",
1343
+ className
1344
+ ),
1345
+ children: [
1346
+ renderCloseButton,
1347
+ renderImage,
1348
+ /* @__PURE__ */ jsxRuntime.jsx(Section, { background, spacing: "none", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("lg:px-15 space-y-5 overflow-y-auto px-9 py-5 lg:py-7", contentClassName), children: [
1349
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2.5", children: [
1350
+ overline && (typeof overline === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("text-center text-sm font-bold uppercase leading-none", overlineClassName), children: overline }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: overlineClassName, children: overline })),
1351
+ title && /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: cn("text-center text-3xl font-bold", titleClassName), children: title })
1352
+ ] }),
1353
+ renderForm,
1354
+ renderFooter
1355
+ ] }) })
1356
+ ]
1357
+ }
1358
+ ) });
1359
+ }
1360
+
1361
+ exports.OfferModalMembershipImage = OfferModalMembershipImage;