@opensite/ui 2.0.2 → 2.0.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.
- package/dist/hero-ai-powered-carousel.cjs +152 -77
- package/dist/hero-ai-powered-carousel.d.cts +5 -13
- package/dist/hero-ai-powered-carousel.d.ts +5 -13
- package/dist/hero-ai-powered-carousel.js +152 -77
- package/dist/hero-announcement-badge.cjs +679 -665
- package/dist/hero-announcement-badge.d.cts +1 -1
- package/dist/hero-announcement-badge.d.ts +1 -1
- package/dist/hero-announcement-badge.js +689 -675
- package/dist/hero-badge-shadow-overlay.cjs +79 -32
- package/dist/hero-badge-shadow-overlay.js +80 -33
- package/dist/hero-centered-image-grid.cjs +106 -95
- package/dist/hero-centered-image-grid.d.cts +2 -14
- package/dist/hero-centered-image-grid.d.ts +2 -14
- package/dist/hero-centered-image-grid.js +106 -95
- package/dist/hero-community-survey-cta.cjs +149 -58
- package/dist/hero-community-survey-cta.d.cts +1 -1
- package/dist/hero-community-survey-cta.d.ts +1 -1
- package/dist/hero-community-survey-cta.js +149 -58
- package/dist/hero-design-carousel-portfolio.cjs +158 -66
- package/dist/hero-design-carousel-portfolio.d.cts +7 -11
- package/dist/hero-design-carousel-portfolio.d.ts +7 -11
- package/dist/hero-design-carousel-portfolio.js +158 -66
- package/dist/hero-event-registration.cjs +765 -718
- package/dist/hero-event-registration.js +761 -714
- package/dist/hero-fullscreen-background-image.cjs +746 -649
- package/dist/hero-fullscreen-background-image.d.cts +12 -4
- package/dist/hero-fullscreen-background-image.d.ts +12 -4
- package/dist/hero-fullscreen-background-image.js +746 -649
- package/dist/hero-fullscreen-logo-cta.cjs +89 -31
- package/dist/hero-fullscreen-logo-cta.js +89 -31
- package/dist/hero-gradient-avatars-rating.cjs +847 -816
- package/dist/hero-gradient-avatars-rating.d.cts +1 -13
- package/dist/hero-gradient-avatars-rating.d.ts +1 -13
- package/dist/hero-gradient-avatars-rating.js +844 -813
- package/dist/hero-gradient-client-focused.cjs +690 -629
- package/dist/hero-gradient-client-focused.d.cts +1 -1
- package/dist/hero-gradient-client-focused.d.ts +1 -1
- package/dist/hero-gradient-client-focused.js +689 -628
- package/dist/hero-grid-pattern-efficiency.cjs +59 -47
- package/dist/hero-grid-pattern-efficiency.d.cts +1 -8
- package/dist/hero-grid-pattern-efficiency.d.ts +1 -8
- package/dist/hero-grid-pattern-efficiency.js +59 -47
- package/dist/hero-logo-centered-screenshot.cjs +1 -1
- package/dist/hero-logo-centered-screenshot.js +1 -1
- package/dist/hero-marketplace-scattered-images.cjs +2 -6
- package/dist/hero-marketplace-scattered-images.d.cts +1 -4
- package/dist/hero-marketplace-scattered-images.d.ts +1 -4
- package/dist/hero-marketplace-scattered-images.js +2 -6
- package/dist/hero-pattern-logo-tech-stack.cjs +1 -1
- package/dist/hero-pattern-logo-tech-stack.js +1 -1
- package/dist/hero-platform-features-grid.cjs +5 -5
- package/dist/hero-platform-features-grid.js +5 -5
- package/dist/hero-simple-centered-image.cjs +140 -44
- package/dist/hero-simple-centered-image.d.cts +1 -1
- package/dist/hero-simple-centered-image.d.ts +1 -1
- package/dist/hero-simple-centered-image.js +140 -44
- package/dist/hero-spiral-pattern-cards.cjs +857 -809
- package/dist/hero-spiral-pattern-cards.d.cts +5 -1
- package/dist/hero-spiral-pattern-cards.d.ts +5 -1
- package/dist/hero-spiral-pattern-cards.js +856 -808
- package/dist/hero-split-geometric-shapes.cjs +754 -723
- package/dist/hero-split-geometric-shapes.d.cts +5 -1
- package/dist/hero-split-geometric-shapes.d.ts +5 -1
- package/dist/hero-split-geometric-shapes.js +748 -717
- package/dist/hero-task-timer-animated.cjs +698 -650
- package/dist/hero-task-timer-animated.d.cts +5 -1
- package/dist/hero-task-timer-animated.d.ts +5 -1
- package/dist/hero-task-timer-animated.js +697 -649
- package/dist/hero-ui-library-showcase.cjs +734 -719
- package/dist/hero-ui-library-showcase.d.cts +5 -1
- package/dist/hero-ui-library-showcase.d.ts +5 -1
- package/dist/hero-ui-library-showcase.js +732 -717
- package/dist/registry.cjs +1035 -788
- package/dist/registry.js +1035 -788
- package/package.json +1 -1
|
@@ -1,193 +1,391 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as React3 from 'react';
|
|
3
|
+
import React3__default, { useMemo } from 'react';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { cva } from 'class-variance-authority';
|
|
7
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
|
+
import { cva } from 'class-variance-authority';
|
|
8
|
+
import { Img } from '@page-speed/img';
|
|
8
9
|
|
|
9
10
|
// components/blocks/hero/hero-fullscreen-background-image.tsx
|
|
10
11
|
function cn(...inputs) {
|
|
11
12
|
return twMerge(clsx(inputs));
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return emailRegex.test(input.trim());
|
|
39
|
-
}
|
|
40
|
-
function isPhoneNumber(input) {
|
|
41
|
-
const trimmed = input.trim();
|
|
42
|
-
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
const phoneRegex = /^[\s\+\-\(\)]*\d[\d\s\-\(\)\.]*\d[\s\-]*(x|ext\.?|extension)?[\s\-]*\d*$/i;
|
|
46
|
-
return phoneRegex.test(trimmed);
|
|
47
|
-
}
|
|
48
|
-
function isInternalUrl(href) {
|
|
49
|
-
if (typeof window === "undefined") {
|
|
50
|
-
return href.startsWith("/") && !href.startsWith("//");
|
|
51
|
-
}
|
|
52
|
-
const trimmed = href.trim();
|
|
53
|
-
if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
try {
|
|
57
|
-
const url = new URL(trimmed, window.location.href);
|
|
58
|
-
const currentOrigin = window.location.origin;
|
|
59
|
-
const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
|
|
60
|
-
return normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin);
|
|
61
|
-
} catch {
|
|
62
|
-
return false;
|
|
14
|
+
var maxWidthStyles = {
|
|
15
|
+
sm: "max-w-screen-sm",
|
|
16
|
+
md: "max-w-screen-md",
|
|
17
|
+
lg: "max-w-screen-lg",
|
|
18
|
+
xl: "max-w-7xl",
|
|
19
|
+
"2xl": "max-w-screen-2xl",
|
|
20
|
+
"4xl": "max-w-[1536px]",
|
|
21
|
+
full: "max-w-full"
|
|
22
|
+
};
|
|
23
|
+
var Container = React3__default.forwardRef(
|
|
24
|
+
({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
|
|
25
|
+
const Component = as;
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
Component,
|
|
28
|
+
{
|
|
29
|
+
ref,
|
|
30
|
+
className: cn(
|
|
31
|
+
"mx-auto w-full px-2 sm:px-4 lg:px-8",
|
|
32
|
+
maxWidthStyles[maxWidth],
|
|
33
|
+
className
|
|
34
|
+
),
|
|
35
|
+
...props,
|
|
36
|
+
children
|
|
37
|
+
}
|
|
38
|
+
);
|
|
63
39
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
40
|
+
);
|
|
41
|
+
Container.displayName = "Container";
|
|
42
|
+
|
|
43
|
+
// lib/patternSvgs.ts
|
|
44
|
+
var patternSvgs = {
|
|
45
|
+
squareAltGrid: "https://cdn.ing/assets/files/record/286187/4gpn0yq2ptra8iwlvmwwv860ggwv",
|
|
46
|
+
grid1: "https://cdn.ing/assets/files/record/286186/nbdflpgp4ostrno079hygibsflp3",
|
|
47
|
+
noise: "https://cdn.ing/assets/i/r/286188/zrqcp9hynh3j7p2laihwzfbujgrl/noise.png",
|
|
48
|
+
dots: "https://cdn.ing/assets/files/record/286198/yfsjx9thvtxzhl2qtshxyhkrm524",
|
|
49
|
+
dotPattern: "https://cdn.ing/assets/files/record/286192/7ig0cku8aqbboiza8nuk6hw0nnsr",
|
|
50
|
+
dotPattern2: "https://cdn.ing/assets/files/record/286189/arez6gd2s7isn9i1o6c7sexdq7bl",
|
|
51
|
+
circles: "https://cdn.ing/assets/files/record/286190/gtmia3sncjtzetdshc20zf1d3c17",
|
|
52
|
+
waves: "https://cdn.ing/assets/files/record/286191/mqlb33fzxz9cdth1bx7if0wmpkp1",
|
|
53
|
+
crossPattern: "https://cdn.ing/assets/files/record/286193/9yfqwdbnqaipbp7fsb3wbzzmq472",
|
|
54
|
+
architect: "https://cdn.ing/assets/files/record/286194/vgs88ugpvyhxu13wqgy0acvae6re",
|
|
55
|
+
tinyCheckers: "https://cdn.ing/assets/files/record/286195/65efaknsw8kcpf9o3c2gybytsl5b",
|
|
56
|
+
p6: "https://cdn.ing/assets/i/r/286196/6kl0rqnd6mjk8j7e525fo8fo0vkc/p6.webp"
|
|
57
|
+
};
|
|
58
|
+
var maskTop = "radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%)";
|
|
59
|
+
var maskBottom = "radial-gradient(ellipse 100% 80% at 50% 100%, #000 50%, transparent 90%)";
|
|
60
|
+
var maskCenter = "radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 70%)";
|
|
61
|
+
var maskTopLeft = "radial-gradient(ellipse 80% 80% at 0% 0%, #000 50%, transparent 90%)";
|
|
62
|
+
var maskTopRight = "radial-gradient(ellipse 80% 80% at 100% 0%, #000 50%, transparent 90%)";
|
|
63
|
+
var maskBottomLeft = "radial-gradient(ellipse 80% 80% at 0% 100%, #000 50%, transparent 90%)";
|
|
64
|
+
var maskBottomRight = "radial-gradient(ellipse 80% 80% at 100% 100%, #000 50%, transparent 90%)";
|
|
65
|
+
var circuitBoardPattern = (id, mask) => /* @__PURE__ */ jsxs(
|
|
66
|
+
"svg",
|
|
67
|
+
{
|
|
68
|
+
className: "h-full w-full",
|
|
69
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
70
|
+
style: mask ? {
|
|
71
|
+
maskImage: mask,
|
|
72
|
+
WebkitMaskImage: mask
|
|
73
|
+
} : void 0,
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
76
|
+
"pattern",
|
|
77
|
+
{
|
|
78
|
+
id,
|
|
79
|
+
x: "0",
|
|
80
|
+
y: "0",
|
|
81
|
+
width: "100",
|
|
82
|
+
height: "100",
|
|
83
|
+
patternUnits: "userSpaceOnUse",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ jsx(
|
|
86
|
+
"path",
|
|
87
|
+
{
|
|
88
|
+
d: "M0 50h40M60 50h40M50 0v40M50 60v40",
|
|
89
|
+
stroke: "hsl(var(--muted))",
|
|
90
|
+
strokeWidth: "1",
|
|
91
|
+
fill: "none"
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ jsx("circle", { cx: "50", cy: "50", r: "3", fill: "hsl(var(--muted))" }),
|
|
95
|
+
/* @__PURE__ */ jsx("circle", { cx: "0", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
|
|
96
|
+
/* @__PURE__ */ jsx("circle", { cx: "100", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
|
|
97
|
+
/* @__PURE__ */ jsx("circle", { cx: "50", cy: "0", r: "2", fill: "hsl(var(--muted))" }),
|
|
98
|
+
/* @__PURE__ */ jsx("circle", { cx: "50", cy: "100", r: "2", fill: "hsl(var(--muted))" })
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
) }),
|
|
102
|
+
/* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
|
|
103
|
+
]
|
|
68
104
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
105
|
+
);
|
|
106
|
+
var gridDotsPattern = (id, mask) => /* @__PURE__ */ jsxs(
|
|
107
|
+
"svg",
|
|
108
|
+
{
|
|
109
|
+
className: "h-full w-full",
|
|
110
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
111
|
+
style: mask ? {
|
|
112
|
+
maskImage: mask,
|
|
113
|
+
WebkitMaskImage: mask
|
|
114
|
+
} : void 0,
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
117
|
+
"pattern",
|
|
118
|
+
{
|
|
119
|
+
id,
|
|
120
|
+
x: "0",
|
|
121
|
+
y: "0",
|
|
122
|
+
width: "40",
|
|
123
|
+
height: "40",
|
|
124
|
+
patternUnits: "userSpaceOnUse",
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ jsx(
|
|
127
|
+
"path",
|
|
128
|
+
{
|
|
129
|
+
d: "M0 20h40M20 0v40",
|
|
130
|
+
stroke: "hsl(var(--muted))",
|
|
131
|
+
strokeWidth: "0.5",
|
|
132
|
+
fill: "none"
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
/* @__PURE__ */ jsx("circle", { cx: "20", cy: "20", r: "2", fill: "hsl(var(--muted))" })
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
) }),
|
|
139
|
+
/* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
|
|
140
|
+
]
|
|
72
141
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
142
|
+
);
|
|
143
|
+
var gridPattern = (size, mask) => /* @__PURE__ */ jsx(
|
|
144
|
+
"div",
|
|
145
|
+
{
|
|
146
|
+
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)]",
|
|
147
|
+
style: {
|
|
148
|
+
backgroundSize: `${size}px ${size}px`,
|
|
149
|
+
...mask ? {
|
|
150
|
+
maskImage: mask,
|
|
151
|
+
WebkitMaskImage: mask
|
|
152
|
+
} : {}
|
|
79
153
|
}
|
|
80
|
-
} catch {
|
|
81
154
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
155
|
+
);
|
|
156
|
+
var diagonalCrossPattern = (mask) => /* @__PURE__ */ jsx(
|
|
157
|
+
"div",
|
|
158
|
+
{
|
|
159
|
+
className: "h-full w-full",
|
|
160
|
+
style: {
|
|
161
|
+
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)",
|
|
162
|
+
...mask ? {
|
|
163
|
+
maskImage: mask,
|
|
164
|
+
WebkitMaskImage: mask
|
|
165
|
+
} : {}
|
|
91
166
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
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)";
|
|
170
|
+
var dashedGridPattern = (fadeMask) => {
|
|
171
|
+
const mask = fadeMask ? `${dashedGridMaskBase}, ${fadeMask}` : dashedGridMaskBase;
|
|
172
|
+
return /* @__PURE__ */ jsx(
|
|
173
|
+
"div",
|
|
174
|
+
{
|
|
175
|
+
className: "h-full w-full",
|
|
176
|
+
style: {
|
|
177
|
+
backgroundImage: "linear-gradient(to right, hsl(var(--muted)) 1px, transparent 1px), linear-gradient(to bottom, hsl(var(--muted)) 1px, transparent 1px)",
|
|
178
|
+
backgroundSize: "20px 20px",
|
|
179
|
+
backgroundPosition: "0 0, 0 0",
|
|
180
|
+
maskImage: mask,
|
|
181
|
+
WebkitMaskImage: mask,
|
|
182
|
+
maskComposite: "intersect",
|
|
183
|
+
WebkitMaskComposite: "source-in"
|
|
184
|
+
}
|
|
95
185
|
}
|
|
96
|
-
|
|
97
|
-
|
|
186
|
+
);
|
|
187
|
+
};
|
|
188
|
+
var gradientGlow = (position) => /* @__PURE__ */ jsx(
|
|
189
|
+
"div",
|
|
190
|
+
{
|
|
191
|
+
className: cn(
|
|
192
|
+
"pointer-events-none absolute left-1/2 z-0 aspect-square w-3/4 -translate-x-1/2 rounded-full opacity-50 blur-3xl",
|
|
193
|
+
position === "top" ? "-top-1/4" : "-bottom-1/4"
|
|
194
|
+
),
|
|
195
|
+
style: {
|
|
196
|
+
background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
|
|
98
197
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
if (!href || href.trim() === "") {
|
|
111
|
-
return void 0;
|
|
112
|
-
}
|
|
113
|
-
const trimmed = href.trim();
|
|
114
|
-
switch (linkType) {
|
|
115
|
-
case "tel":
|
|
116
|
-
return normalizePhoneNumber(trimmed);
|
|
117
|
-
case "mailto":
|
|
118
|
-
return normalizeEmail(trimmed);
|
|
119
|
-
case "internal":
|
|
120
|
-
return toRelativePath(trimmed);
|
|
121
|
-
case "external":
|
|
122
|
-
return trimmed;
|
|
123
|
-
default:
|
|
124
|
-
return trimmed;
|
|
125
|
-
}
|
|
126
|
-
}, [href, linkType]);
|
|
127
|
-
const target = React.useMemo(() => {
|
|
128
|
-
switch (linkType) {
|
|
129
|
-
case "external":
|
|
130
|
-
return "_blank";
|
|
131
|
-
case "internal":
|
|
132
|
-
return "_self";
|
|
133
|
-
case "mailto":
|
|
134
|
-
case "tel":
|
|
135
|
-
return void 0;
|
|
136
|
-
default:
|
|
137
|
-
return void 0;
|
|
138
|
-
}
|
|
139
|
-
}, [linkType]);
|
|
140
|
-
const rel = React.useMemo(() => {
|
|
141
|
-
if (linkType === "external") {
|
|
142
|
-
return "noopener noreferrer";
|
|
198
|
+
}
|
|
199
|
+
);
|
|
200
|
+
var spotlight = (position) => /* @__PURE__ */ jsx(
|
|
201
|
+
"div",
|
|
202
|
+
{
|
|
203
|
+
className: cn(
|
|
204
|
+
"pointer-events-none absolute top-1/2 z-0 aspect-square w-3/4 -translate-y-1/2 rounded-full opacity-40 blur-3xl",
|
|
205
|
+
position === "left" ? "-left-1/4" : "-right-1/4"
|
|
206
|
+
),
|
|
207
|
+
style: {
|
|
208
|
+
background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
|
|
143
209
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
var patternOverlays = {
|
|
213
|
+
circuitBoardBasic: () => circuitBoardPattern("circuit-board-basic"),
|
|
214
|
+
circuitBoardFadeTop: () => circuitBoardPattern("circuit-board-fade-top", maskTop),
|
|
215
|
+
circuitBoardFadeBottom: () => circuitBoardPattern("circuit-board-fade-bottom", maskBottom),
|
|
216
|
+
circuitBoardFadeCenter: () => circuitBoardPattern("circuit-board-fade-center", maskCenter),
|
|
217
|
+
circuitBoardFadeTopLeft: () => circuitBoardPattern("circuit-board-fade-top-left", maskTopLeft),
|
|
218
|
+
circuitBoardFadeTopRight: () => circuitBoardPattern("circuit-board-fade-top-right", maskTopRight),
|
|
219
|
+
circuitBoardFadeBottomLeft: () => circuitBoardPattern("circuit-board-fade-bottom-left", maskBottomLeft),
|
|
220
|
+
circuitBoardFadeBottomRight: () => circuitBoardPattern("circuit-board-fade-bottom-right", maskBottomRight),
|
|
221
|
+
dashedGridBasic: () => dashedGridPattern(),
|
|
222
|
+
dashedGridFadeTop: () => dashedGridPattern(maskTop),
|
|
223
|
+
dashedGridFadeBottom: () => dashedGridPattern(maskBottom),
|
|
224
|
+
dashedGridFadeCenter: () => dashedGridPattern(maskCenter),
|
|
225
|
+
dashedGridFadeTopLeft: () => dashedGridPattern(maskTopLeft),
|
|
226
|
+
dashedGridFadeTopRight: () => dashedGridPattern(maskTopRight),
|
|
227
|
+
dashedGridFadeBottomLeft: () => dashedGridPattern(maskBottomLeft),
|
|
228
|
+
dashedGridFadeBottomRight: () => dashedGridPattern(maskBottomRight),
|
|
229
|
+
diagonalCrossBasic: () => diagonalCrossPattern(),
|
|
230
|
+
diagonalCrossFadeTop: () => diagonalCrossPattern(maskTop),
|
|
231
|
+
diagonalCrossFadeBottom: () => diagonalCrossPattern(maskBottom),
|
|
232
|
+
diagonalCrossFadeCenter: () => diagonalCrossPattern(maskCenter),
|
|
233
|
+
diagonalCrossFadeTopLeft: () => diagonalCrossPattern(maskTopLeft),
|
|
234
|
+
diagonalCrossFadeTopRight: () => diagonalCrossPattern(maskTopRight),
|
|
235
|
+
diagonalCrossFadeBottomLeft: () => diagonalCrossPattern(maskBottomLeft),
|
|
236
|
+
diagonalCrossFadeBottomRight: () => diagonalCrossPattern(maskBottomRight),
|
|
237
|
+
gridBasic: () => gridPattern(40),
|
|
238
|
+
gridFadeTop: () => gridPattern(32, maskTop),
|
|
239
|
+
gridFadeBottom: () => gridPattern(32, maskBottom),
|
|
240
|
+
gridFadeCenter: () => gridPattern(40, maskCenter),
|
|
241
|
+
gridFadeTopLeft: () => gridPattern(32, maskTopLeft),
|
|
242
|
+
gridFadeTopRight: () => gridPattern(32, maskTopRight),
|
|
243
|
+
gridFadeBottomLeft: () => gridPattern(32, maskBottomLeft),
|
|
244
|
+
gridFadeBottomRight: () => gridPattern(32, maskBottomRight),
|
|
245
|
+
gridDotsBasic: () => gridDotsPattern("grid-dots-basic"),
|
|
246
|
+
gridDotsFadeCenter: () => gridDotsPattern("grid-dots-fade-center", maskCenter),
|
|
247
|
+
gradientGlowTop: () => gradientGlow("top"),
|
|
248
|
+
gradientGlowBottom: () => gradientGlow("bottom"),
|
|
249
|
+
spotlightLeft: () => spotlight("left"),
|
|
250
|
+
spotlightRight: () => spotlight("right")
|
|
251
|
+
};
|
|
252
|
+
var inlinePatternStyles = {
|
|
253
|
+
radialGradientTop: {
|
|
254
|
+
background: "radial-gradient(125% 125% at 50% 10%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
|
|
255
|
+
},
|
|
256
|
+
radialGradientBottom: {
|
|
257
|
+
background: "radial-gradient(125% 125% at 50% 90%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
function PatternBackground({
|
|
261
|
+
pattern,
|
|
262
|
+
opacity = 0.08,
|
|
263
|
+
className,
|
|
264
|
+
style
|
|
265
|
+
}) {
|
|
266
|
+
if (!pattern) {
|
|
267
|
+
return null;
|
|
268
|
+
}
|
|
269
|
+
if (pattern in inlinePatternStyles) {
|
|
270
|
+
const inlineStyle = inlinePatternStyles[pattern];
|
|
271
|
+
return /* @__PURE__ */ jsx(
|
|
272
|
+
"div",
|
|
273
|
+
{
|
|
274
|
+
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
275
|
+
style: { ...inlineStyle, opacity, ...style },
|
|
276
|
+
"aria-hidden": "true"
|
|
160
277
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
console.error("Error in navigation handler:", error);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
if (pattern in patternOverlays) {
|
|
281
|
+
const Overlay = patternOverlays[pattern];
|
|
282
|
+
return /* @__PURE__ */ jsx(
|
|
283
|
+
"div",
|
|
284
|
+
{
|
|
285
|
+
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
286
|
+
style: { opacity, ...style },
|
|
287
|
+
"aria-hidden": "true",
|
|
288
|
+
children: Overlay()
|
|
176
289
|
}
|
|
177
|
-
|
|
178
|
-
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
const patternUrl = pattern in patternSvgs ? patternSvgs[pattern] : pattern;
|
|
293
|
+
return /* @__PURE__ */ jsx(
|
|
294
|
+
"div",
|
|
295
|
+
{
|
|
296
|
+
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
297
|
+
style: {
|
|
298
|
+
backgroundImage: `url(${patternUrl})`,
|
|
299
|
+
backgroundRepeat: "repeat",
|
|
300
|
+
backgroundSize: "auto",
|
|
301
|
+
opacity,
|
|
302
|
+
...style
|
|
303
|
+
},
|
|
304
|
+
"aria-hidden": "true"
|
|
305
|
+
}
|
|
179
306
|
);
|
|
180
|
-
return {
|
|
181
|
-
linkType,
|
|
182
|
-
normalizedHref,
|
|
183
|
-
target,
|
|
184
|
-
rel,
|
|
185
|
-
isExternal,
|
|
186
|
-
isInternal,
|
|
187
|
-
shouldUseRouter,
|
|
188
|
-
handleClick
|
|
189
|
-
};
|
|
190
307
|
}
|
|
308
|
+
var backgroundStyles = {
|
|
309
|
+
default: "bg-background text-foreground",
|
|
310
|
+
white: "bg-white text-dark",
|
|
311
|
+
gray: "bg-muted/30 text-foreground",
|
|
312
|
+
dark: "bg-foreground text-background",
|
|
313
|
+
transparent: "bg-transparent text-foreground",
|
|
314
|
+
gradient: "bg-linear-to-br from-primary via-primary/90 to-foreground text-primary-foreground",
|
|
315
|
+
primary: "bg-primary text-primary-foreground",
|
|
316
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
317
|
+
muted: "bg-muted text-muted-foreground"
|
|
318
|
+
};
|
|
319
|
+
var spacingStyles = {
|
|
320
|
+
none: "py-0 md:py-0",
|
|
321
|
+
sm: "py-12 md:py-16",
|
|
322
|
+
md: "py-16 md:py-24",
|
|
323
|
+
lg: "py-20 md:py-32",
|
|
324
|
+
xl: "py-24 md:py-40"
|
|
325
|
+
};
|
|
326
|
+
var predefinedSpacings = ["none", "sm", "md", "lg", "xl"];
|
|
327
|
+
var isPredefinedSpacing = (spacing) => predefinedSpacings.includes(spacing);
|
|
328
|
+
var Section = React3__default.forwardRef(
|
|
329
|
+
({
|
|
330
|
+
id,
|
|
331
|
+
title,
|
|
332
|
+
subtitle,
|
|
333
|
+
children,
|
|
334
|
+
className,
|
|
335
|
+
style,
|
|
336
|
+
background = "default",
|
|
337
|
+
spacing = "lg",
|
|
338
|
+
pattern,
|
|
339
|
+
patternOpacity,
|
|
340
|
+
patternClassName,
|
|
341
|
+
containerClassName,
|
|
342
|
+
containerMaxWidth = "xl",
|
|
343
|
+
...props
|
|
344
|
+
}, ref) => {
|
|
345
|
+
const effectivePatternOpacity = patternOpacity !== void 0 ? patternOpacity : pattern ? 1 : 0;
|
|
346
|
+
return /* @__PURE__ */ jsxs(
|
|
347
|
+
"section",
|
|
348
|
+
{
|
|
349
|
+
ref,
|
|
350
|
+
id,
|
|
351
|
+
className: cn(
|
|
352
|
+
"relative",
|
|
353
|
+
pattern ? "overflow-hidden" : null,
|
|
354
|
+
backgroundStyles[background],
|
|
355
|
+
isPredefinedSpacing(spacing) ? spacingStyles[spacing] : spacing,
|
|
356
|
+
className
|
|
357
|
+
),
|
|
358
|
+
style,
|
|
359
|
+
...props,
|
|
360
|
+
children: [
|
|
361
|
+
/* @__PURE__ */ jsx(
|
|
362
|
+
PatternBackground,
|
|
363
|
+
{
|
|
364
|
+
pattern,
|
|
365
|
+
opacity: effectivePatternOpacity,
|
|
366
|
+
className: patternClassName
|
|
367
|
+
}
|
|
368
|
+
),
|
|
369
|
+
/* @__PURE__ */ jsxs(
|
|
370
|
+
Container,
|
|
371
|
+
{
|
|
372
|
+
maxWidth: containerMaxWidth,
|
|
373
|
+
className: cn("relative z-10", containerClassName),
|
|
374
|
+
children: [
|
|
375
|
+
(title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-6 text-center md:mb-16", children: [
|
|
376
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: "mb-2 text-sm font-semibold uppercase tracking-wider", children: subtitle }),
|
|
377
|
+
title && /* @__PURE__ */ jsx("h2", { className: "text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl", children: title })
|
|
378
|
+
] }),
|
|
379
|
+
children
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
)
|
|
383
|
+
]
|
|
384
|
+
}
|
|
385
|
+
);
|
|
386
|
+
}
|
|
387
|
+
);
|
|
388
|
+
Section.displayName = "Section";
|
|
191
389
|
var baseStyles = [
|
|
192
390
|
// Layout
|
|
193
391
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap shrink-0",
|
|
@@ -330,536 +528,435 @@ var buttonVariants = cva(baseStyles, {
|
|
|
330
528
|
size: "default"
|
|
331
529
|
}
|
|
332
530
|
});
|
|
333
|
-
|
|
334
|
-
(
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
href,
|
|
338
|
-
onClick,
|
|
339
|
-
variant,
|
|
340
|
-
size,
|
|
341
|
-
asButton = false,
|
|
342
|
-
fallbackComponentType = "span",
|
|
343
|
-
componentType,
|
|
344
|
-
"aria-label": ariaLabel,
|
|
345
|
-
"aria-describedby": ariaDescribedby,
|
|
346
|
-
id,
|
|
347
|
-
...props
|
|
348
|
-
}, ref) => {
|
|
349
|
-
const navigation = useNavigation({ href, onClick });
|
|
350
|
-
const {
|
|
351
|
-
normalizedHref,
|
|
352
|
-
target,
|
|
353
|
-
rel,
|
|
354
|
-
linkType,
|
|
355
|
-
isInternal,
|
|
356
|
-
handleClick
|
|
357
|
-
} = navigation;
|
|
358
|
-
const shouldRenderLink = normalizedHref && linkType !== "none";
|
|
359
|
-
const shouldRenderButton = !shouldRenderLink && onClick;
|
|
360
|
-
const effectiveComponentType = componentType || (shouldRenderLink ? "a" : shouldRenderButton ? "button" : fallbackComponentType);
|
|
361
|
-
const finalComponentType = isInternal && shouldRenderLink ? "a" : effectiveComponentType;
|
|
362
|
-
const shouldApplyButtonStyles = asButton || variant || size;
|
|
363
|
-
const combinedClassName = cn(
|
|
364
|
-
shouldApplyButtonStyles && buttonVariants({ variant, size }),
|
|
365
|
-
className
|
|
366
|
-
);
|
|
367
|
-
const dataProps = Object.fromEntries(
|
|
368
|
-
Object.entries(props).filter(([key]) => key.startsWith("data-"))
|
|
369
|
-
);
|
|
370
|
-
const buttonDataAttributes = shouldApplyButtonStyles ? {
|
|
371
|
-
"data-slot": "button",
|
|
372
|
-
"data-variant": variant ?? "default",
|
|
373
|
-
"data-size": size ?? "default"
|
|
374
|
-
} : {};
|
|
375
|
-
const commonProps = {
|
|
376
|
-
className: combinedClassName,
|
|
377
|
-
onClick: handleClick,
|
|
378
|
-
"aria-label": ariaLabel,
|
|
379
|
-
"aria-describedby": ariaDescribedby,
|
|
380
|
-
id,
|
|
381
|
-
...dataProps,
|
|
382
|
-
...buttonDataAttributes
|
|
383
|
-
};
|
|
384
|
-
if (finalComponentType === "a" && shouldRenderLink) {
|
|
385
|
-
return /* @__PURE__ */ jsx(
|
|
386
|
-
"a",
|
|
387
|
-
{
|
|
388
|
-
ref,
|
|
389
|
-
href: normalizedHref,
|
|
390
|
-
target,
|
|
391
|
-
rel,
|
|
392
|
-
...commonProps,
|
|
393
|
-
...props,
|
|
394
|
-
children
|
|
395
|
-
}
|
|
396
|
-
);
|
|
397
|
-
}
|
|
398
|
-
if (finalComponentType === "button") {
|
|
399
|
-
return /* @__PURE__ */ jsx(
|
|
400
|
-
"button",
|
|
401
|
-
{
|
|
402
|
-
ref,
|
|
403
|
-
type: props.type || "button",
|
|
404
|
-
...commonProps,
|
|
405
|
-
...props,
|
|
406
|
-
children
|
|
407
|
-
}
|
|
408
|
-
);
|
|
409
|
-
}
|
|
410
|
-
if (finalComponentType === "div") {
|
|
411
|
-
return /* @__PURE__ */ jsx(
|
|
412
|
-
"div",
|
|
413
|
-
{
|
|
414
|
-
ref,
|
|
415
|
-
...commonProps,
|
|
416
|
-
children
|
|
417
|
-
}
|
|
418
|
-
);
|
|
419
|
-
}
|
|
420
|
-
return /* @__PURE__ */ jsx(
|
|
421
|
-
"span",
|
|
422
|
-
{
|
|
423
|
-
ref,
|
|
424
|
-
...commonProps,
|
|
425
|
-
children
|
|
426
|
-
}
|
|
427
|
-
);
|
|
531
|
+
function normalizePhoneNumber(input) {
|
|
532
|
+
const trimmed = input.trim();
|
|
533
|
+
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
534
|
+
return trimmed;
|
|
428
535
|
}
|
|
429
|
-
);
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
"2xl": "max-w-screen-2xl",
|
|
437
|
-
"4xl": "max-w-[1536px]",
|
|
438
|
-
full: "max-w-full"
|
|
439
|
-
};
|
|
440
|
-
var Container = React__default.forwardRef(
|
|
441
|
-
({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
|
|
442
|
-
const Component = as;
|
|
443
|
-
return /* @__PURE__ */ jsx(
|
|
444
|
-
Component,
|
|
445
|
-
{
|
|
446
|
-
ref,
|
|
447
|
-
className: cn(
|
|
448
|
-
"mx-auto w-full px-2 sm:px-4 lg:px-8",
|
|
449
|
-
maxWidthStyles[maxWidth],
|
|
450
|
-
className
|
|
451
|
-
),
|
|
452
|
-
...props,
|
|
453
|
-
children
|
|
454
|
-
}
|
|
455
|
-
);
|
|
536
|
+
const match = trimmed.match(/^[\s\+\-\(\)]*(\d[\d\s\-\(\)\.]*\d)[\s\-]*(x|ext\.?|extension)?[\s\-]*(\d+)?$/i);
|
|
537
|
+
if (match) {
|
|
538
|
+
const mainNumber = match[1].replace(/[\s\-\(\)\.]/g, "");
|
|
539
|
+
const extension = match[3];
|
|
540
|
+
const normalized = mainNumber.length >= 10 && !trimmed.startsWith("+") ? `+${mainNumber}` : mainNumber;
|
|
541
|
+
const withExtension = extension ? `${normalized};ext=${extension}` : normalized;
|
|
542
|
+
return `tel:${withExtension}`;
|
|
456
543
|
}
|
|
457
|
-
);
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
var circuitBoardPattern = (id, mask) => /* @__PURE__ */ jsxs(
|
|
483
|
-
"svg",
|
|
484
|
-
{
|
|
485
|
-
className: "h-full w-full",
|
|
486
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
487
|
-
style: mask ? {
|
|
488
|
-
maskImage: mask,
|
|
489
|
-
WebkitMaskImage: mask
|
|
490
|
-
} : void 0,
|
|
491
|
-
children: [
|
|
492
|
-
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
493
|
-
"pattern",
|
|
494
|
-
{
|
|
495
|
-
id,
|
|
496
|
-
x: "0",
|
|
497
|
-
y: "0",
|
|
498
|
-
width: "100",
|
|
499
|
-
height: "100",
|
|
500
|
-
patternUnits: "userSpaceOnUse",
|
|
501
|
-
children: [
|
|
502
|
-
/* @__PURE__ */ jsx(
|
|
503
|
-
"path",
|
|
504
|
-
{
|
|
505
|
-
d: "M0 50h40M60 50h40M50 0v40M50 60v40",
|
|
506
|
-
stroke: "hsl(var(--muted))",
|
|
507
|
-
strokeWidth: "1",
|
|
508
|
-
fill: "none"
|
|
509
|
-
}
|
|
510
|
-
),
|
|
511
|
-
/* @__PURE__ */ jsx("circle", { cx: "50", cy: "50", r: "3", fill: "hsl(var(--muted))" }),
|
|
512
|
-
/* @__PURE__ */ jsx("circle", { cx: "0", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
|
|
513
|
-
/* @__PURE__ */ jsx("circle", { cx: "100", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
|
|
514
|
-
/* @__PURE__ */ jsx("circle", { cx: "50", cy: "0", r: "2", fill: "hsl(var(--muted))" }),
|
|
515
|
-
/* @__PURE__ */ jsx("circle", { cx: "50", cy: "100", r: "2", fill: "hsl(var(--muted))" })
|
|
516
|
-
]
|
|
517
|
-
}
|
|
518
|
-
) }),
|
|
519
|
-
/* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
|
|
520
|
-
]
|
|
544
|
+
const cleaned = trimmed.replace(/[\s\-\(\)\.]/g, "");
|
|
545
|
+
return `tel:${cleaned}`;
|
|
546
|
+
}
|
|
547
|
+
function normalizeEmail(input) {
|
|
548
|
+
const trimmed = input.trim();
|
|
549
|
+
if (trimmed.toLowerCase().startsWith("mailto:")) {
|
|
550
|
+
return trimmed;
|
|
551
|
+
}
|
|
552
|
+
return `mailto:${trimmed}`;
|
|
553
|
+
}
|
|
554
|
+
function isEmail(input) {
|
|
555
|
+
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
556
|
+
return emailRegex.test(input.trim());
|
|
557
|
+
}
|
|
558
|
+
function isPhoneNumber(input) {
|
|
559
|
+
const trimmed = input.trim();
|
|
560
|
+
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
561
|
+
return true;
|
|
562
|
+
}
|
|
563
|
+
const phoneRegex = /^[\s\+\-\(\)]*\d[\d\s\-\(\)\.]*\d[\s\-]*(x|ext\.?|extension)?[\s\-]*\d*$/i;
|
|
564
|
+
return phoneRegex.test(trimmed);
|
|
565
|
+
}
|
|
566
|
+
function isInternalUrl(href) {
|
|
567
|
+
if (typeof window === "undefined") {
|
|
568
|
+
return href.startsWith("/") && !href.startsWith("//");
|
|
521
569
|
}
|
|
522
|
-
);
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
{
|
|
526
|
-
className: "h-full w-full",
|
|
527
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
528
|
-
style: mask ? {
|
|
529
|
-
maskImage: mask,
|
|
530
|
-
WebkitMaskImage: mask
|
|
531
|
-
} : void 0,
|
|
532
|
-
children: [
|
|
533
|
-
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
534
|
-
"pattern",
|
|
535
|
-
{
|
|
536
|
-
id,
|
|
537
|
-
x: "0",
|
|
538
|
-
y: "0",
|
|
539
|
-
width: "40",
|
|
540
|
-
height: "40",
|
|
541
|
-
patternUnits: "userSpaceOnUse",
|
|
542
|
-
children: [
|
|
543
|
-
/* @__PURE__ */ jsx(
|
|
544
|
-
"path",
|
|
545
|
-
{
|
|
546
|
-
d: "M0 20h40M20 0v40",
|
|
547
|
-
stroke: "hsl(var(--muted))",
|
|
548
|
-
strokeWidth: "0.5",
|
|
549
|
-
fill: "none"
|
|
550
|
-
}
|
|
551
|
-
),
|
|
552
|
-
/* @__PURE__ */ jsx("circle", { cx: "20", cy: "20", r: "2", fill: "hsl(var(--muted))" })
|
|
553
|
-
]
|
|
554
|
-
}
|
|
555
|
-
) }),
|
|
556
|
-
/* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
|
|
557
|
-
]
|
|
570
|
+
const trimmed = href.trim();
|
|
571
|
+
if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
|
|
572
|
+
return true;
|
|
558
573
|
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
...mask ? {
|
|
567
|
-
maskImage: mask,
|
|
568
|
-
WebkitMaskImage: mask
|
|
569
|
-
} : {}
|
|
570
|
-
}
|
|
574
|
+
try {
|
|
575
|
+
const url = new URL(trimmed, window.location.href);
|
|
576
|
+
const currentOrigin = window.location.origin;
|
|
577
|
+
const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
|
|
578
|
+
return normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin);
|
|
579
|
+
} catch {
|
|
580
|
+
return false;
|
|
571
581
|
}
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
"
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
582
|
+
}
|
|
583
|
+
function toRelativePath(href) {
|
|
584
|
+
if (typeof window === "undefined") {
|
|
585
|
+
return href;
|
|
586
|
+
}
|
|
587
|
+
const trimmed = href.trim();
|
|
588
|
+
if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
|
|
589
|
+
return trimmed;
|
|
590
|
+
}
|
|
591
|
+
try {
|
|
592
|
+
const url = new URL(trimmed, window.location.href);
|
|
593
|
+
const currentOrigin = window.location.origin;
|
|
594
|
+
const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
|
|
595
|
+
if (normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin)) {
|
|
596
|
+
return url.pathname + url.search + url.hash;
|
|
583
597
|
}
|
|
598
|
+
} catch {
|
|
584
599
|
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
backgroundImage: "linear-gradient(to right, hsl(var(--muted)) 1px, transparent 1px), linear-gradient(to bottom, hsl(var(--muted)) 1px, transparent 1px)",
|
|
595
|
-
backgroundSize: "20px 20px",
|
|
596
|
-
backgroundPosition: "0 0, 0 0",
|
|
597
|
-
maskImage: mask,
|
|
598
|
-
WebkitMaskImage: mask,
|
|
599
|
-
maskComposite: "intersect",
|
|
600
|
-
WebkitMaskComposite: "source-in"
|
|
601
|
-
}
|
|
600
|
+
return trimmed;
|
|
601
|
+
}
|
|
602
|
+
function useNavigation({
|
|
603
|
+
href,
|
|
604
|
+
onClick
|
|
605
|
+
} = {}) {
|
|
606
|
+
const linkType = React3.useMemo(() => {
|
|
607
|
+
if (!href || href.trim() === "") {
|
|
608
|
+
return onClick ? "none" : "none";
|
|
602
609
|
}
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
"div",
|
|
607
|
-
{
|
|
608
|
-
className: cn(
|
|
609
|
-
"pointer-events-none absolute left-1/2 z-0 aspect-square w-3/4 -translate-x-1/2 rounded-full opacity-50 blur-3xl",
|
|
610
|
-
position === "top" ? "-top-1/4" : "-bottom-1/4"
|
|
611
|
-
),
|
|
612
|
-
style: {
|
|
613
|
-
background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
|
|
610
|
+
const trimmed = href.trim();
|
|
611
|
+
if (trimmed.toLowerCase().startsWith("mailto:") || isEmail(trimmed)) {
|
|
612
|
+
return "mailto";
|
|
614
613
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
var spotlight = (position) => /* @__PURE__ */ jsx(
|
|
618
|
-
"div",
|
|
619
|
-
{
|
|
620
|
-
className: cn(
|
|
621
|
-
"pointer-events-none absolute top-1/2 z-0 aspect-square w-3/4 -translate-y-1/2 rounded-full opacity-40 blur-3xl",
|
|
622
|
-
position === "left" ? "-left-1/4" : "-right-1/4"
|
|
623
|
-
),
|
|
624
|
-
style: {
|
|
625
|
-
background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
|
|
614
|
+
if (trimmed.toLowerCase().startsWith("tel:") || isPhoneNumber(trimmed)) {
|
|
615
|
+
return "tel";
|
|
626
616
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
}) {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
}
|
|
686
|
-
if (pattern in inlinePatternStyles) {
|
|
687
|
-
const inlineStyle = inlinePatternStyles[pattern];
|
|
688
|
-
return /* @__PURE__ */ jsx(
|
|
689
|
-
"div",
|
|
690
|
-
{
|
|
691
|
-
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
692
|
-
style: { ...inlineStyle, opacity, ...style },
|
|
693
|
-
"aria-hidden": "true"
|
|
617
|
+
if (isInternalUrl(trimmed)) {
|
|
618
|
+
return "internal";
|
|
619
|
+
}
|
|
620
|
+
try {
|
|
621
|
+
new URL(trimmed, typeof window !== "undefined" ? window.location.href : "http://localhost");
|
|
622
|
+
return "external";
|
|
623
|
+
} catch {
|
|
624
|
+
return "internal";
|
|
625
|
+
}
|
|
626
|
+
}, [href, onClick]);
|
|
627
|
+
const normalizedHref = React3.useMemo(() => {
|
|
628
|
+
if (!href || href.trim() === "") {
|
|
629
|
+
return void 0;
|
|
630
|
+
}
|
|
631
|
+
const trimmed = href.trim();
|
|
632
|
+
switch (linkType) {
|
|
633
|
+
case "tel":
|
|
634
|
+
return normalizePhoneNumber(trimmed);
|
|
635
|
+
case "mailto":
|
|
636
|
+
return normalizeEmail(trimmed);
|
|
637
|
+
case "internal":
|
|
638
|
+
return toRelativePath(trimmed);
|
|
639
|
+
case "external":
|
|
640
|
+
return trimmed;
|
|
641
|
+
default:
|
|
642
|
+
return trimmed;
|
|
643
|
+
}
|
|
644
|
+
}, [href, linkType]);
|
|
645
|
+
const target = React3.useMemo(() => {
|
|
646
|
+
switch (linkType) {
|
|
647
|
+
case "external":
|
|
648
|
+
return "_blank";
|
|
649
|
+
case "internal":
|
|
650
|
+
return "_self";
|
|
651
|
+
case "mailto":
|
|
652
|
+
case "tel":
|
|
653
|
+
return void 0;
|
|
654
|
+
default:
|
|
655
|
+
return void 0;
|
|
656
|
+
}
|
|
657
|
+
}, [linkType]);
|
|
658
|
+
const rel = React3.useMemo(() => {
|
|
659
|
+
if (linkType === "external") {
|
|
660
|
+
return "noopener noreferrer";
|
|
661
|
+
}
|
|
662
|
+
return void 0;
|
|
663
|
+
}, [linkType]);
|
|
664
|
+
const isExternal = linkType === "external";
|
|
665
|
+
const isInternal = linkType === "internal";
|
|
666
|
+
const shouldUseRouter = isInternal && typeof normalizedHref === "string" && normalizedHref.startsWith("/");
|
|
667
|
+
const handleClick = React3.useCallback(
|
|
668
|
+
(event) => {
|
|
669
|
+
if (onClick) {
|
|
670
|
+
try {
|
|
671
|
+
onClick(event);
|
|
672
|
+
} catch (error) {
|
|
673
|
+
console.error("Error in user onClick handler:", error);
|
|
674
|
+
}
|
|
694
675
|
}
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
if (pattern in patternOverlays) {
|
|
698
|
-
const Overlay = patternOverlays[pattern];
|
|
699
|
-
return /* @__PURE__ */ jsx(
|
|
700
|
-
"div",
|
|
701
|
-
{
|
|
702
|
-
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
703
|
-
style: { opacity, ...style },
|
|
704
|
-
"aria-hidden": "true",
|
|
705
|
-
children: Overlay()
|
|
676
|
+
if (event.defaultPrevented) {
|
|
677
|
+
return;
|
|
706
678
|
}
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
679
|
+
if (shouldUseRouter && normalizedHref && event.button === 0 && // left-click only
|
|
680
|
+
!event.metaKey && !event.altKey && !event.ctrlKey && !event.shiftKey) {
|
|
681
|
+
if (typeof window !== "undefined") {
|
|
682
|
+
const handler = window.__opensiteNavigationHandler;
|
|
683
|
+
if (typeof handler === "function") {
|
|
684
|
+
try {
|
|
685
|
+
const handled = handler(normalizedHref, event.nativeEvent || event);
|
|
686
|
+
if (handled !== false) {
|
|
687
|
+
event.preventDefault();
|
|
688
|
+
}
|
|
689
|
+
} catch (error) {
|
|
690
|
+
console.error("Error in navigation handler:", error);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
[onClick, shouldUseRouter, normalizedHref]
|
|
723
697
|
);
|
|
698
|
+
return {
|
|
699
|
+
linkType,
|
|
700
|
+
normalizedHref,
|
|
701
|
+
target,
|
|
702
|
+
rel,
|
|
703
|
+
isExternal,
|
|
704
|
+
isInternal,
|
|
705
|
+
shouldUseRouter,
|
|
706
|
+
handleClick
|
|
707
|
+
};
|
|
724
708
|
}
|
|
725
|
-
var
|
|
726
|
-
default: "bg-background text-foreground",
|
|
727
|
-
white: "bg-white text-dark",
|
|
728
|
-
gray: "bg-muted/30 text-foreground",
|
|
729
|
-
dark: "bg-foreground text-background",
|
|
730
|
-
transparent: "bg-transparent text-foreground",
|
|
731
|
-
gradient: "bg-linear-to-br from-primary via-primary/90 to-foreground text-primary-foreground",
|
|
732
|
-
primary: "bg-primary text-primary-foreground",
|
|
733
|
-
secondary: "bg-secondary text-secondary-foreground",
|
|
734
|
-
muted: "bg-muted text-muted-foreground"
|
|
735
|
-
};
|
|
736
|
-
var spacingStyles = {
|
|
737
|
-
none: "py-0 md:py-0",
|
|
738
|
-
sm: "py-12 md:py-16",
|
|
739
|
-
md: "py-16 md:py-24",
|
|
740
|
-
lg: "py-20 md:py-32",
|
|
741
|
-
xl: "py-24 md:py-40"
|
|
742
|
-
};
|
|
743
|
-
var predefinedSpacings = ["none", "sm", "md", "lg", "xl"];
|
|
744
|
-
var isPredefinedSpacing = (spacing) => predefinedSpacings.includes(spacing);
|
|
745
|
-
var Section = React__default.forwardRef(
|
|
709
|
+
var Pressable = React3.forwardRef(
|
|
746
710
|
({
|
|
747
|
-
id,
|
|
748
|
-
title,
|
|
749
|
-
subtitle,
|
|
750
711
|
children,
|
|
751
712
|
className,
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
713
|
+
href,
|
|
714
|
+
onClick,
|
|
715
|
+
variant,
|
|
716
|
+
size,
|
|
717
|
+
asButton = false,
|
|
718
|
+
fallbackComponentType = "span",
|
|
719
|
+
componentType,
|
|
720
|
+
"aria-label": ariaLabel,
|
|
721
|
+
"aria-describedby": ariaDescribedby,
|
|
722
|
+
id,
|
|
760
723
|
...props
|
|
761
724
|
}, ref) => {
|
|
762
|
-
const
|
|
763
|
-
|
|
764
|
-
|
|
725
|
+
const navigation = useNavigation({ href, onClick });
|
|
726
|
+
const {
|
|
727
|
+
normalizedHref,
|
|
728
|
+
target,
|
|
729
|
+
rel,
|
|
730
|
+
linkType,
|
|
731
|
+
isInternal,
|
|
732
|
+
handleClick
|
|
733
|
+
} = navigation;
|
|
734
|
+
const shouldRenderLink = normalizedHref && linkType !== "none";
|
|
735
|
+
const shouldRenderButton = !shouldRenderLink && onClick;
|
|
736
|
+
const effectiveComponentType = componentType || (shouldRenderLink ? "a" : shouldRenderButton ? "button" : fallbackComponentType);
|
|
737
|
+
const finalComponentType = isInternal && shouldRenderLink ? "a" : effectiveComponentType;
|
|
738
|
+
const shouldApplyButtonStyles = asButton || variant || size;
|
|
739
|
+
const combinedClassName = cn(
|
|
740
|
+
shouldApplyButtonStyles && buttonVariants({ variant, size }),
|
|
741
|
+
className
|
|
742
|
+
);
|
|
743
|
+
const dataProps = Object.fromEntries(
|
|
744
|
+
Object.entries(props).filter(([key]) => key.startsWith("data-"))
|
|
745
|
+
);
|
|
746
|
+
const buttonDataAttributes = shouldApplyButtonStyles ? {
|
|
747
|
+
"data-slot": "button",
|
|
748
|
+
"data-variant": variant ?? "default",
|
|
749
|
+
"data-size": size ?? "default"
|
|
750
|
+
} : {};
|
|
751
|
+
const commonProps = {
|
|
752
|
+
className: combinedClassName,
|
|
753
|
+
onClick: handleClick,
|
|
754
|
+
"aria-label": ariaLabel,
|
|
755
|
+
"aria-describedby": ariaDescribedby,
|
|
756
|
+
id,
|
|
757
|
+
...dataProps,
|
|
758
|
+
...buttonDataAttributes
|
|
759
|
+
};
|
|
760
|
+
if (finalComponentType === "a" && shouldRenderLink) {
|
|
761
|
+
return /* @__PURE__ */ jsx(
|
|
762
|
+
"a",
|
|
763
|
+
{
|
|
764
|
+
ref,
|
|
765
|
+
href: normalizedHref,
|
|
766
|
+
target,
|
|
767
|
+
rel,
|
|
768
|
+
...commonProps,
|
|
769
|
+
...props,
|
|
770
|
+
children
|
|
771
|
+
}
|
|
772
|
+
);
|
|
773
|
+
}
|
|
774
|
+
if (finalComponentType === "button") {
|
|
775
|
+
return /* @__PURE__ */ jsx(
|
|
776
|
+
"button",
|
|
777
|
+
{
|
|
778
|
+
ref,
|
|
779
|
+
type: props.type || "button",
|
|
780
|
+
...commonProps,
|
|
781
|
+
...props,
|
|
782
|
+
children
|
|
783
|
+
}
|
|
784
|
+
);
|
|
785
|
+
}
|
|
786
|
+
if (finalComponentType === "div") {
|
|
787
|
+
return /* @__PURE__ */ jsx(
|
|
788
|
+
"div",
|
|
789
|
+
{
|
|
790
|
+
ref,
|
|
791
|
+
...commonProps,
|
|
792
|
+
children
|
|
793
|
+
}
|
|
794
|
+
);
|
|
795
|
+
}
|
|
796
|
+
return /* @__PURE__ */ jsx(
|
|
797
|
+
"span",
|
|
765
798
|
{
|
|
766
799
|
ref,
|
|
767
|
-
|
|
800
|
+
...commonProps,
|
|
801
|
+
children
|
|
802
|
+
}
|
|
803
|
+
);
|
|
804
|
+
}
|
|
805
|
+
);
|
|
806
|
+
Pressable.displayName = "Pressable";
|
|
807
|
+
var MOBILE_CLASSES = {
|
|
808
|
+
"fit-left": "items-start md:items-center",
|
|
809
|
+
"fit-center": "items-center",
|
|
810
|
+
"fit-right": "items-end md:items-center",
|
|
811
|
+
"full-left": "items-stretch md:items-center",
|
|
812
|
+
"full-center": "items-stretch md:items-center",
|
|
813
|
+
"full-right": "items-stretch md:items-center"
|
|
814
|
+
};
|
|
815
|
+
function BlockActions({
|
|
816
|
+
mobileConfig,
|
|
817
|
+
actionsClassName,
|
|
818
|
+
verticalSpacing = "mt-4 md:mt-8",
|
|
819
|
+
actions,
|
|
820
|
+
actionsSlot
|
|
821
|
+
}) {
|
|
822
|
+
const renderAction = React3.useCallback(
|
|
823
|
+
(action, idx) => {
|
|
824
|
+
const {
|
|
825
|
+
label,
|
|
826
|
+
icon,
|
|
827
|
+
iconAfter,
|
|
828
|
+
children,
|
|
829
|
+
href,
|
|
830
|
+
onClick,
|
|
831
|
+
className: actionClassName,
|
|
832
|
+
...pressableProps
|
|
833
|
+
} = action;
|
|
834
|
+
return /* @__PURE__ */ jsx(
|
|
835
|
+
Pressable,
|
|
836
|
+
{
|
|
837
|
+
href,
|
|
838
|
+
onClick,
|
|
839
|
+
asButton: action.asButton || true,
|
|
840
|
+
className: actionClassName,
|
|
841
|
+
...pressableProps,
|
|
842
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
843
|
+
icon,
|
|
844
|
+
label,
|
|
845
|
+
iconAfter
|
|
846
|
+
] })
|
|
847
|
+
},
|
|
848
|
+
idx
|
|
849
|
+
);
|
|
850
|
+
},
|
|
851
|
+
[]
|
|
852
|
+
);
|
|
853
|
+
const width = mobileConfig?.width ?? "full";
|
|
854
|
+
const position = mobileConfig?.position ?? "center";
|
|
855
|
+
const mobileLayoutClass = MOBILE_CLASSES[`${width}-${position}`];
|
|
856
|
+
if (actionsSlot) {
|
|
857
|
+
return /* @__PURE__ */ jsx("div", { children: actionsSlot });
|
|
858
|
+
} else if (actions && actions?.length > 0) {
|
|
859
|
+
return /* @__PURE__ */ jsx(
|
|
860
|
+
"div",
|
|
861
|
+
{
|
|
768
862
|
className: cn(
|
|
769
|
-
"
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
className
|
|
863
|
+
"flex flex-col md:flex-row flex-wrap gap-4",
|
|
864
|
+
mobileLayoutClass,
|
|
865
|
+
actionsClassName,
|
|
866
|
+
verticalSpacing
|
|
774
867
|
),
|
|
775
|
-
|
|
776
|
-
...props,
|
|
777
|
-
children: [
|
|
778
|
-
/* @__PURE__ */ jsx(
|
|
779
|
-
PatternBackground,
|
|
780
|
-
{
|
|
781
|
-
pattern,
|
|
782
|
-
opacity: effectivePatternOpacity,
|
|
783
|
-
className: patternClassName
|
|
784
|
-
}
|
|
785
|
-
),
|
|
786
|
-
/* @__PURE__ */ jsxs(
|
|
787
|
-
Container,
|
|
788
|
-
{
|
|
789
|
-
maxWidth: containerMaxWidth,
|
|
790
|
-
className: cn("relative z-10", containerClassName),
|
|
791
|
-
children: [
|
|
792
|
-
(title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-6 text-center md:mb-16", children: [
|
|
793
|
-
subtitle && /* @__PURE__ */ jsx("p", { className: "mb-2 text-sm font-semibold uppercase tracking-wider", children: subtitle }),
|
|
794
|
-
title && /* @__PURE__ */ jsx("h2", { className: "text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl", children: title })
|
|
795
|
-
] }),
|
|
796
|
-
children
|
|
797
|
-
]
|
|
798
|
-
}
|
|
799
|
-
)
|
|
800
|
-
]
|
|
868
|
+
children: actions.map((action, index) => renderAction(action, index))
|
|
801
869
|
}
|
|
802
870
|
);
|
|
871
|
+
} else {
|
|
872
|
+
return null;
|
|
803
873
|
}
|
|
804
|
-
|
|
805
|
-
Section.displayName = "Section";
|
|
874
|
+
}
|
|
806
875
|
function HeroFullscreenBackgroundImage({
|
|
807
876
|
heading,
|
|
808
877
|
description,
|
|
809
878
|
actions,
|
|
810
879
|
actionsSlot,
|
|
811
880
|
backgroundImage,
|
|
812
|
-
noiseOverlayUrl = "https://cdn.ing/assets/i/r/286188/zrqcp9hynh3j7p2laihwzfbujgrl/noise.png",
|
|
813
881
|
background,
|
|
814
|
-
spacing,
|
|
882
|
+
spacing = "none",
|
|
815
883
|
pattern,
|
|
816
884
|
patternOpacity,
|
|
817
885
|
className,
|
|
818
|
-
|
|
886
|
+
containerClassName = "px-0 sm:px-0 lg:px-0 max-w-full relative z-10 h-screen w-screen flex justify-center items-center",
|
|
887
|
+
contentClassName = "relative flex flex-col gap-12 px-6 pt-28 pb-6 md:pt-0 md:pb-0",
|
|
819
888
|
headingClassName,
|
|
820
889
|
descriptionClassName,
|
|
821
|
-
actionsClassName
|
|
890
|
+
actionsClassName,
|
|
891
|
+
optixFlowConfig
|
|
822
892
|
}) {
|
|
823
|
-
const
|
|
824
|
-
if (
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
return /* @__PURE__ */ jsx(
|
|
829
|
-
Pressable,
|
|
893
|
+
const renderBackground = useMemo(() => {
|
|
894
|
+
if (!backgroundImage) return null;
|
|
895
|
+
return /* @__PURE__ */ jsxs("div", { className: "absolute inset-0", children: [
|
|
896
|
+
/* @__PURE__ */ jsx(
|
|
897
|
+
Img,
|
|
830
898
|
{
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
);
|
|
842
|
-
});
|
|
843
|
-
}, [actionsSlot, actions]);
|
|
899
|
+
src: backgroundImage,
|
|
900
|
+
alt: "Full screen background image",
|
|
901
|
+
className: "h-full w-full object-cover",
|
|
902
|
+
loading: "eager",
|
|
903
|
+
optixFlowConfig
|
|
904
|
+
}
|
|
905
|
+
),
|
|
906
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-linear-to-b from-black/80 via-black/65 to-black/20" })
|
|
907
|
+
] });
|
|
908
|
+
}, [backgroundImage, optixFlowConfig]);
|
|
844
909
|
return /* @__PURE__ */ jsxs(
|
|
845
910
|
Section,
|
|
846
911
|
{
|
|
912
|
+
background,
|
|
913
|
+
spacing,
|
|
914
|
+
pattern,
|
|
915
|
+
patternOpacity,
|
|
847
916
|
className: cn(
|
|
848
|
-
"
|
|
917
|
+
"relative flex h-full min-h-screen w-screen items-center justify-center overflow-hidden bg-black pb-0 pt-0 md:pt-0 px-0",
|
|
849
918
|
className
|
|
850
919
|
),
|
|
851
|
-
|
|
920
|
+
containerClassName,
|
|
852
921
|
children: [
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-center text-base ", descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description })),
|
|
856
|
-
(actionsSlot || actions && actions.length > 0) && /* @__PURE__ */ jsx("div", { className: actionsClassName, children: renderActions })
|
|
857
|
-
] }),
|
|
858
|
-
noiseOverlayUrl && /* @__PURE__ */ jsx(
|
|
922
|
+
renderBackground,
|
|
923
|
+
/* @__PURE__ */ jsxs(
|
|
859
924
|
"div",
|
|
860
925
|
{
|
|
861
|
-
className:
|
|
862
|
-
|
|
926
|
+
className: cn(
|
|
927
|
+
"relative z-30 m-auto flex max-w-185 flex-col items-center justify-center gap-6 px-5",
|
|
928
|
+
contentClassName
|
|
929
|
+
),
|
|
930
|
+
children: [
|
|
931
|
+
heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
|
|
932
|
+
"h1",
|
|
933
|
+
{
|
|
934
|
+
className: cn(
|
|
935
|
+
"text-center text-4xl leading-tight md:text-6xl xl:text-[4.4rem] text-balance text-white text-shadow-2xl",
|
|
936
|
+
headingClassName
|
|
937
|
+
),
|
|
938
|
+
children: heading
|
|
939
|
+
}
|
|
940
|
+
) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })),
|
|
941
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
942
|
+
"p",
|
|
943
|
+
{
|
|
944
|
+
className: cn(
|
|
945
|
+
"text-center text-base text-balance text-shadow-2xl",
|
|
946
|
+
descriptionClassName
|
|
947
|
+
),
|
|
948
|
+
children: description
|
|
949
|
+
}
|
|
950
|
+
) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description })),
|
|
951
|
+
/* @__PURE__ */ jsx(
|
|
952
|
+
BlockActions,
|
|
953
|
+
{
|
|
954
|
+
actions,
|
|
955
|
+
actionsSlot,
|
|
956
|
+
actionsClassName
|
|
957
|
+
}
|
|
958
|
+
)
|
|
959
|
+
]
|
|
863
960
|
}
|
|
864
961
|
)
|
|
865
962
|
]
|