@levo-so/studio 0.1.59 → 0.1.61
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/{Beams-0Cg_3upg.js → Beams-sKsW_tr4.js} +46 -55
- package/dist/{Dots-turX9wMO.js → Dots-BEIutbKS.js} +44 -40
- package/dist/{Gradient-Be4Kqh_1.js → Gradient-DAR7R3Mz.js} +2 -2
- package/dist/Grid-BuKIXWMJ.js +174 -0
- package/dist/MessageCard-C8v6oHmf.js +45 -0
- package/dist/{Waves-DL4kuojY.js → Waves-C8qlIS1W.js} +29 -80
- package/dist/bridge/Highlighter.d.ts +3 -5
- package/dist/bridge/StudioBlockPreview.d.ts +1 -0
- package/dist/bridge/StudioPagePreview.d.ts +2 -2
- package/dist/bridge/StudioPreview.d.ts +1 -1
- package/dist/bridge/constants.d.ts +2 -0
- package/dist/bridge/hooks/useElementTracker.d.ts +9 -0
- package/dist/bridge/index.d.ts +3 -3
- package/dist/bridge/utils.d.ts +1 -4
- package/dist/components/AnimatedBlock.d.ts +50 -0
- package/dist/components/backgroundPresets/exports.d.ts +1 -1
- package/dist/components/backgroundPresets/presetSystem.d.ts +2 -2
- package/dist/components/bookingCard/BookingCard.d.ts +65 -0
- package/dist/components/bookingCard/index.d.ts +2 -0
- package/dist/components/bookingModal/BookingConfirmation.d.ts +48 -0
- package/dist/components/bookingModal/BookingModal.d.ts +19 -0
- package/dist/components/bookingModal/BookingSummary.d.ts +34 -0
- package/dist/components/bookingModal/index.d.ts +4 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/integrationFilters/FieldRenderer.d.ts +3 -0
- package/dist/components/integrationFilters/IntegrationFilters.d.ts +1 -1
- package/dist/components/integrationFilters/fields/DropdownField.d.ts +1 -1
- package/dist/components/integrationFilters/fields/TextField.d.ts +1 -1
- package/dist/components/registerModal/AttendeeForm.d.ts +27 -0
- package/dist/components/registerModal/CouponView.d.ts +14 -0
- package/dist/components/registerModal/RegisterModal.d.ts +2 -1
- package/dist/components/registerModal/TicketSelectionStep.d.ts +15 -0
- package/dist/components/registerModal/utils.d.ts +85 -1
- package/dist/components/stripePaymentModal/StripePaymentModal.d.ts +22 -0
- package/dist/components/stripePaymentModal/index.d.ts +3 -0
- package/dist/components/ui/Calendar.d.ts +1 -1
- package/dist/components/ui/base/avatar.d.ts +13 -0
- package/dist/components/ui/base/index.d.ts +3 -0
- package/dist/components/ui/base/input.d.ts +1 -1
- package/dist/components/ui/base/skeleton.d.ts +3 -0
- package/dist/components/ui/base/textarea.d.ts +4 -0
- package/dist/components/ui/base/tooltip.d.ts +17 -0
- package/dist/components/ui/form/FormTextarea.d.ts +15 -0
- package/dist/components/ui/index.d.ts +3 -0
- package/dist/components/withBlockProps.d.ts +6 -14
- package/dist/constants/animation.d.ts +10 -0
- package/dist/contentEngine/content.d.ts +8 -3
- package/dist/contentEngine/index.d.ts +3 -3
- package/dist/contentEngine/sourceFetcher.d.ts +1 -1
- package/dist/contentEngine/themeUtils.d.ts +13 -0
- package/dist/contentEngine/types.d.ts +1 -0
- package/dist/contentEngine/useContextEngine.d.ts +11 -0
- package/dist/context/ForumContext.d.ts +48 -0
- package/dist/core/AccessManager/index.d.ts +1 -1
- package/dist/core/LevoBlock.d.ts +3 -2
- package/dist/core/LevoPage.d.ts +2 -2
- package/dist/core/index.d.ts +1 -1
- package/dist/elements/AlertDialog/index.d.ts +23 -0
- package/dist/elements/Carousel.d.ts +10 -2
- package/dist/elements/Tabs.d.ts +1 -1
- package/dist/elements/UserMenu.d.ts +1 -1
- package/dist/elements/accordion/index.d.ts +1 -1
- package/dist/elements/dialog/index.d.ts +1 -1
- package/dist/elements/forum/ForumPost.d.ts +18 -0
- package/dist/elements/forum/ForumPostContentRenderer.d.ts +8 -0
- package/dist/elements/forum/SearchInput.d.ts +5 -0
- package/dist/elements/forum/categoryFilter/CategoryFilter.d.ts +16 -0
- package/dist/elements/forum/categoryFilter/index.d.ts +2 -0
- package/dist/elements/forum/comments/Comment.d.ts +14 -0
- package/dist/elements/forum/comments/Comments.d.ts +9 -0
- package/dist/elements/forum/comments/ReplyBox.d.ts +11 -0
- package/dist/elements/forum/comments/commentUtility.d.ts +25 -0
- package/dist/elements/forum/comments/index.d.ts +2 -0
- package/dist/elements/forum/createForumPost/CreateForumPost.d.ts +9 -0
- package/dist/elements/forum/createForumPost/CreateForumPostModal.d.ts +87 -0
- package/dist/elements/forum/createForumPost/index.d.ts +2 -0
- package/dist/elements/forum/index.d.ts +8 -0
- package/dist/elements/forum/restrictionOverlays/CommentsRestrictionOverlay.d.ts +16 -0
- package/dist/elements/forum/restrictionOverlays/JoinRequestForm.d.ts +14 -0
- package/dist/elements/forum/restrictionOverlays/PendingRequestState.d.ts +11 -0
- package/dist/elements/forum/restrictionOverlays/PostsRestrictionOverlay.d.ts +16 -0
- package/dist/elements/forum/restrictionOverlays/index.d.ts +5 -0
- package/dist/elements/forum/utility/Video.d.ts +16 -0
- package/dist/elements/forum/utility/index.d.ts +49 -0
- package/dist/elements/index.d.ts +10 -9
- package/dist/elements-BxhlsyhI.js +9 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/useLogin.d.ts +1 -1
- package/dist/hooks/useStripePayment.d.ts +49 -0
- package/dist/index-BJrh8CwF.js +16197 -0
- package/dist/{index-BdswdesP.js → index-BYXw6aHi.js} +3 -4
- package/dist/index-CV5mr-8e.js +365 -0
- package/dist/index-CXtfbmpx.js +23 -0
- package/dist/index-CgUU2EbC.js +765 -0
- package/dist/index-DsAqikcl.js +29 -0
- package/dist/index-DxsNKR4p.js +56 -0
- package/dist/{index-DHHPZcEh.js → index-IcG2wuuE.js} +1 -8
- package/dist/index.d.ts +16 -13
- package/dist/index.js +159 -107
- package/dist/interfaces/block.d.ts +2 -2
- package/dist/interfaces/levoBlock.d.ts +64 -10
- package/dist/interfaces/site.d.ts +1 -193
- package/dist/interfaces/sites.d.ts +201 -3
- package/dist/interfaces/theme.d.ts +2 -0
- package/dist/pixel/parserUtil.d.ts +1 -0
- package/dist/providers/AuthProvider.d.ts +1 -0
- package/dist/providers/BlockContext.d.ts +2 -1
- package/dist/providers/LazyMotionProvider.d.ts +15 -0
- package/dist/providers/index.d.ts +1 -0
- package/dist/studio.css +1 -1
- package/dist/utils/colorUtils.d.ts +7 -0
- package/dist/utils/getKeysWithValue.d.ts +1 -1
- package/dist/utils/string.d.ts +7 -0
- package/dist/utils/withBlockPropsUtils.d.ts +6 -55
- package/package.json +13 -16
- package/dist/Grid-B0vqOT42.js +0 -184
- package/dist/MessageCard-CCngWCHS.js +0 -53
- package/dist/components/withBlockProps copy.d.ts +0 -61
- package/dist/index-CPJI9a7D.js +0 -13503
- package/dist/index-CmNhuPZp.js +0 -34
- package/dist/index-kVKDoWCh.js +0 -57
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as C, jsxs as
|
|
2
|
+
import { jsx as C, jsxs as e } from "react/jsx-runtime";
|
|
3
3
|
import r from "react";
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
4
|
+
import { M as d, a as p } from "./elements-BxhlsyhI.js";
|
|
5
|
+
const m = r.memo(
|
|
6
6
|
({
|
|
7
7
|
className: o,
|
|
8
8
|
primaryColor: t = "#00ff00",
|
|
9
9
|
secondaryColor: n = "#ff0000",
|
|
10
10
|
lineColor: l = "#121212"
|
|
11
11
|
}) => {
|
|
12
|
-
const
|
|
12
|
+
const a = r.useMemo(
|
|
13
13
|
() => [
|
|
14
14
|
"M-380 -189C-380 -189 -312 216 152 343C616 470 684 875 684 875",
|
|
15
15
|
"M-373 -197C-373 -197 -305 208 159 335C623 462 691 867 691 867",
|
|
@@ -63,13 +63,13 @@ const h = r.memo(
|
|
|
63
63
|
"M-37 -581C-37 -581 31 -176 495 -49C959 78 1027 483 1027 483"
|
|
64
64
|
],
|
|
65
65
|
[]
|
|
66
|
-
),
|
|
67
|
-
() =>
|
|
66
|
+
), i = r.useMemo(
|
|
67
|
+
() => a.map((s, M) => ({
|
|
68
68
|
duration: Math.random() * 10 + 10,
|
|
69
69
|
delay: Math.random() * 10,
|
|
70
70
|
endY: `${93 + Math.random() * 8}%`
|
|
71
71
|
})),
|
|
72
|
-
[
|
|
72
|
+
[a]
|
|
73
73
|
);
|
|
74
74
|
return /* @__PURE__ */ C(
|
|
75
75
|
"div",
|
|
@@ -87,7 +87,7 @@ const h = r.memo(
|
|
|
87
87
|
maskSize: "40px",
|
|
88
88
|
zIndex: -1
|
|
89
89
|
},
|
|
90
|
-
children: /* @__PURE__ */
|
|
90
|
+
children: /* @__PURE__ */ e(
|
|
91
91
|
"svg",
|
|
92
92
|
{
|
|
93
93
|
style: {
|
|
@@ -103,6 +103,7 @@ const h = r.memo(
|
|
|
103
103
|
fill: "none",
|
|
104
104
|
xmlns: "http://www.w3.org/2000/svg",
|
|
105
105
|
children: [
|
|
106
|
+
/* @__PURE__ */ C("title", { children: "Beams Path" }),
|
|
106
107
|
/* @__PURE__ */ C(
|
|
107
108
|
"path",
|
|
108
109
|
{
|
|
@@ -112,59 +113,49 @@ const h = r.memo(
|
|
|
112
113
|
strokeWidth: "0.5"
|
|
113
114
|
}
|
|
114
115
|
),
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
a.map((s, M) => /* @__PURE__ */ C(
|
|
117
|
+
d,
|
|
117
118
|
{
|
|
118
|
-
d:
|
|
119
|
+
d: s,
|
|
119
120
|
stroke: `url(#linearGradient-${M})`,
|
|
120
121
|
strokeOpacity: "0.4",
|
|
121
122
|
strokeWidth: "0.5"
|
|
122
123
|
},
|
|
123
124
|
"path-" + M
|
|
124
125
|
)),
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
{
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
repeat: 1 / 0,
|
|
148
|
-
delay: ((m = s[M]) == null ? void 0 : m.delay) || 0
|
|
149
|
-
},
|
|
150
|
-
children: [
|
|
151
|
-
/* @__PURE__ */ C("stop", { stopColor: t, stopOpacity: "0" }),
|
|
152
|
-
/* @__PURE__ */ C("stop", { stopColor: t }),
|
|
153
|
-
/* @__PURE__ */ C("stop", { offset: "32.5%", stopColor: n }),
|
|
154
|
-
/* @__PURE__ */ C(
|
|
155
|
-
"stop",
|
|
156
|
-
{
|
|
157
|
-
offset: "100%",
|
|
158
|
-
stopColor: n,
|
|
159
|
-
stopOpacity: "0"
|
|
160
|
-
}
|
|
161
|
-
)
|
|
162
|
-
]
|
|
126
|
+
/* @__PURE__ */ e("defs", { children: [
|
|
127
|
+
a.map((s, M) => /* @__PURE__ */ e(
|
|
128
|
+
p,
|
|
129
|
+
{
|
|
130
|
+
id: `linearGradient-${M}`,
|
|
131
|
+
initial: {
|
|
132
|
+
x1: "0%",
|
|
133
|
+
x2: "0%",
|
|
134
|
+
y1: "0%",
|
|
135
|
+
y2: "0%"
|
|
136
|
+
},
|
|
137
|
+
animate: {
|
|
138
|
+
x1: ["0%", "100%"],
|
|
139
|
+
x2: ["0%", "95%"],
|
|
140
|
+
y1: ["0%", "100%"],
|
|
141
|
+
y2: ["0%", i[M]?.endY || "100%"]
|
|
142
|
+
},
|
|
143
|
+
transition: {
|
|
144
|
+
duration: i[M]?.duration || 15,
|
|
145
|
+
ease: "easeInOut",
|
|
146
|
+
repeat: 1 / 0,
|
|
147
|
+
delay: i[M]?.delay || 0
|
|
163
148
|
},
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
149
|
+
children: [
|
|
150
|
+
/* @__PURE__ */ C("stop", { stopColor: t, stopOpacity: "0" }),
|
|
151
|
+
/* @__PURE__ */ C("stop", { stopColor: t }),
|
|
152
|
+
/* @__PURE__ */ C("stop", { offset: "32.5%", stopColor: n }),
|
|
153
|
+
/* @__PURE__ */ C("stop", { offset: "100%", stopColor: n, stopOpacity: "0" })
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
`gradient-${M}`
|
|
157
|
+
)),
|
|
158
|
+
/* @__PURE__ */ e(
|
|
168
159
|
"radialGradient",
|
|
169
160
|
{
|
|
170
161
|
id: "paint0_radial_242_278",
|
|
@@ -190,7 +181,7 @@ const h = r.memo(
|
|
|
190
181
|
// Custom comparison function for better memoization
|
|
191
182
|
(o, t) => o.className === t.className && o.primaryColor === t.primaryColor && o.secondaryColor === t.secondaryColor && o.lineColor === t.lineColor
|
|
192
183
|
);
|
|
193
|
-
|
|
184
|
+
m.displayName = "BackgroundBeams";
|
|
194
185
|
export {
|
|
195
|
-
|
|
186
|
+
m as BackgroundBeams
|
|
196
187
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as l, jsxs as
|
|
2
|
+
import { jsx as l, jsxs as m } from "react/jsx-runtime";
|
|
3
3
|
import h from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { b as x } from "./elements-BxhlsyhI.js";
|
|
5
5
|
const g = h.memo(
|
|
6
6
|
({
|
|
7
7
|
className: i,
|
|
@@ -9,7 +9,7 @@ const g = h.memo(
|
|
|
9
9
|
dotSize: o = 2,
|
|
10
10
|
spacing: e = 30,
|
|
11
11
|
isAnimated: d = !1,
|
|
12
|
-
speed:
|
|
12
|
+
speed: u = 1
|
|
13
13
|
}) => {
|
|
14
14
|
const a = h.useMemo(
|
|
15
15
|
() => ({
|
|
@@ -23,11 +23,11 @@ const g = h.memo(
|
|
|
23
23
|
), c = h.useMemo(
|
|
24
24
|
() => `dots-pattern-${Math.random().toString(36).substring(2, 11)}`,
|
|
25
25
|
[]
|
|
26
|
-
),
|
|
26
|
+
), y = h.useMemo(() => {
|
|
27
27
|
if (!d) return [];
|
|
28
|
-
const t = [],
|
|
29
|
-
for (let s = 0; s <
|
|
30
|
-
for (let r = 0; r <
|
|
28
|
+
const t = [], f = Math.ceil(100 / (e / 10)), w = Math.ceil(100 / (e / 10));
|
|
29
|
+
for (let s = 0; s < f; s++)
|
|
30
|
+
for (let r = 0; r < w; r++)
|
|
31
31
|
t.push({
|
|
32
32
|
id: `${s}-${r}`,
|
|
33
33
|
x: r * e / 10 + Math.random() * 5,
|
|
@@ -52,7 +52,7 @@ const g = h.memo(
|
|
|
52
52
|
overflow: "hidden",
|
|
53
53
|
zIndex: -1
|
|
54
54
|
},
|
|
55
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ m(
|
|
56
56
|
"svg",
|
|
57
57
|
{
|
|
58
58
|
style: {
|
|
@@ -65,38 +65,41 @@ const g = h.memo(
|
|
|
65
65
|
width: "100%",
|
|
66
66
|
height: "100%",
|
|
67
67
|
xmlns: "http://www.w3.org/2000/svg",
|
|
68
|
-
children:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
opacity:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ l("title", { children: "Animated Dots" }),
|
|
70
|
+
y.map((t) => /* @__PURE__ */ l(
|
|
71
|
+
x,
|
|
72
|
+
{
|
|
73
|
+
cx: `${t.x}%`,
|
|
74
|
+
cy: `${t.y}%`,
|
|
75
|
+
r: o,
|
|
76
|
+
fill: n,
|
|
77
|
+
initial: { opacity: 0.3 },
|
|
78
|
+
animate: {
|
|
79
|
+
opacity: [0.3, 0.8, 0.3],
|
|
80
|
+
cx: [
|
|
81
|
+
`${t.x}%`,
|
|
82
|
+
`${t.x + t.amplitude}%`,
|
|
83
|
+
`${t.x - t.amplitude}%`,
|
|
84
|
+
`${t.x}%`
|
|
85
|
+
],
|
|
86
|
+
cy: [
|
|
87
|
+
`${t.y}%`,
|
|
88
|
+
`${t.y - t.amplitude}%`,
|
|
89
|
+
`${t.y + t.amplitude}%`,
|
|
90
|
+
`${t.y}%`
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
transition: {
|
|
94
|
+
duration: 8 / u,
|
|
95
|
+
repeat: 1 / 0,
|
|
96
|
+
ease: "easeInOut",
|
|
97
|
+
delay: t.delay
|
|
98
|
+
}
|
|
90
99
|
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
ease: "easeInOut",
|
|
95
|
-
delay: t.delay
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
t.id
|
|
99
|
-
))
|
|
100
|
+
t.id
|
|
101
|
+
))
|
|
102
|
+
]
|
|
100
103
|
}
|
|
101
104
|
)
|
|
102
105
|
}
|
|
@@ -114,7 +117,7 @@ const g = h.memo(
|
|
|
114
117
|
justifyContent: "center",
|
|
115
118
|
zIndex: -1
|
|
116
119
|
},
|
|
117
|
-
children: /* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ m(
|
|
118
121
|
"svg",
|
|
119
122
|
{
|
|
120
123
|
style: {
|
|
@@ -128,6 +131,7 @@ const g = h.memo(
|
|
|
128
131
|
height: "100%",
|
|
129
132
|
xmlns: "http://www.w3.org/2000/svg",
|
|
130
133
|
children: [
|
|
134
|
+
/* @__PURE__ */ l("title", { children: "Static Dots" }),
|
|
131
135
|
/* @__PURE__ */ l("defs", { children: /* @__PURE__ */ l(
|
|
132
136
|
"pattern",
|
|
133
137
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import o from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { c as r } from "./elements-BxhlsyhI.js";
|
|
5
5
|
const s = o.memo(
|
|
6
6
|
({
|
|
7
7
|
className: e,
|
|
@@ -23,7 +23,7 @@ const s = o.memo(
|
|
|
23
23
|
zIndex: -1
|
|
24
24
|
},
|
|
25
25
|
children: /* @__PURE__ */ t(
|
|
26
|
-
r
|
|
26
|
+
r,
|
|
27
27
|
{
|
|
28
28
|
style: {
|
|
29
29
|
position: "absolute",
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
3
|
+
import n from "react";
|
|
4
|
+
import { c as u } from "./elements-BxhlsyhI.js";
|
|
5
|
+
const x = n.memo(
|
|
6
|
+
({
|
|
7
|
+
className: i,
|
|
8
|
+
lineColor: e = "#333333",
|
|
9
|
+
lineWidth: r = 1,
|
|
10
|
+
spacing: o = 50,
|
|
11
|
+
// Interactive mode props
|
|
12
|
+
isInteractive: y = !1,
|
|
13
|
+
hoverColor: d = "#93c5fd",
|
|
14
|
+
rows: s = 150,
|
|
15
|
+
cols: a = 100
|
|
16
|
+
}) => {
|
|
17
|
+
const f = n.useMemo(() => new Array(s).fill(1), [s]), g = n.useMemo(() => new Array(a).fill(1), [a]), l = n.useMemo(
|
|
18
|
+
() => ({
|
|
19
|
+
rowStyle: {
|
|
20
|
+
height: `${o}px`,
|
|
21
|
+
width: `${o * 2}px`,
|
|
22
|
+
borderLeft: `${r}px solid ${e}`
|
|
23
|
+
},
|
|
24
|
+
colStyle: {
|
|
25
|
+
height: `${o}px`,
|
|
26
|
+
width: `${o * 2}px`,
|
|
27
|
+
borderTop: `${r}px solid ${e}`,
|
|
28
|
+
borderRight: `${r}px solid ${e}`
|
|
29
|
+
},
|
|
30
|
+
iconStyle: {
|
|
31
|
+
top: `${-o / 3.8}px`,
|
|
32
|
+
left: `${-o / 2.4}px`,
|
|
33
|
+
color: e
|
|
34
|
+
}
|
|
35
|
+
}),
|
|
36
|
+
[o, r, e]
|
|
37
|
+
), h = n.useMemo(
|
|
38
|
+
() => ({
|
|
39
|
+
hover: {
|
|
40
|
+
backgroundColor: d,
|
|
41
|
+
transition: { duration: 0 }
|
|
42
|
+
},
|
|
43
|
+
animate: {
|
|
44
|
+
transition: { duration: 2 }
|
|
45
|
+
}
|
|
46
|
+
}),
|
|
47
|
+
[d]
|
|
48
|
+
);
|
|
49
|
+
return y ? /* @__PURE__ */ t(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
className: i,
|
|
53
|
+
style: {
|
|
54
|
+
position: "absolute",
|
|
55
|
+
inset: 0,
|
|
56
|
+
display: "flex",
|
|
57
|
+
height: "100%",
|
|
58
|
+
width: "100%",
|
|
59
|
+
alignItems: "center",
|
|
60
|
+
justifyContent: "center",
|
|
61
|
+
overflow: "hidden",
|
|
62
|
+
zIndex: -1
|
|
63
|
+
},
|
|
64
|
+
children: /* @__PURE__ */ t(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
style: {
|
|
68
|
+
transform: "translate(-40%,-60%) skewX(-48deg) skewY(14deg) scale(0.675) rotate(0deg) translateZ(0)",
|
|
69
|
+
position: "absolute",
|
|
70
|
+
top: "-25%",
|
|
71
|
+
left: "25%",
|
|
72
|
+
zIndex: 0,
|
|
73
|
+
display: "flex",
|
|
74
|
+
height: "100%",
|
|
75
|
+
width: "100%",
|
|
76
|
+
padding: "1rem"
|
|
77
|
+
},
|
|
78
|
+
children: f.map(($, c) => /* @__PURE__ */ t(u, { style: { ...l.rowStyle, position: "relative" }, children: g.map((p, w) => /* @__PURE__ */ t(
|
|
79
|
+
u,
|
|
80
|
+
{
|
|
81
|
+
whileHover: h.hover,
|
|
82
|
+
animate: h.animate,
|
|
83
|
+
style: { ...l.colStyle, position: "relative" },
|
|
84
|
+
children: w % 2 === 0 && c % 2 === 0 ? /* @__PURE__ */ m(
|
|
85
|
+
"svg",
|
|
86
|
+
{
|
|
87
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
88
|
+
fill: "none",
|
|
89
|
+
viewBox: "0 0 24 24",
|
|
90
|
+
strokeWidth: "1.5",
|
|
91
|
+
stroke: "currentColor",
|
|
92
|
+
style: {
|
|
93
|
+
...l.iconStyle,
|
|
94
|
+
pointerEvents: "none",
|
|
95
|
+
position: "absolute",
|
|
96
|
+
height: "1.5rem",
|
|
97
|
+
width: "2.5rem",
|
|
98
|
+
strokeWidth: "1px"
|
|
99
|
+
},
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ t("title", { children: "Grid Lines" }),
|
|
102
|
+
/* @__PURE__ */ t("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 6v12m6-6H6" })
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
) : null
|
|
106
|
+
},
|
|
107
|
+
`col-${w}`
|
|
108
|
+
)) }, `row-${c}`))
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
}
|
|
112
|
+
) : /* @__PURE__ */ t(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
className: i,
|
|
116
|
+
style: {
|
|
117
|
+
position: "absolute",
|
|
118
|
+
inset: 0,
|
|
119
|
+
display: "flex",
|
|
120
|
+
height: "100%",
|
|
121
|
+
width: "100%",
|
|
122
|
+
alignItems: "center",
|
|
123
|
+
justifyContent: "center",
|
|
124
|
+
zIndex: -1
|
|
125
|
+
},
|
|
126
|
+
children: /* @__PURE__ */ m(
|
|
127
|
+
"svg",
|
|
128
|
+
{
|
|
129
|
+
style: {
|
|
130
|
+
pointerEvents: "none",
|
|
131
|
+
position: "absolute",
|
|
132
|
+
zIndex: 0,
|
|
133
|
+
height: "100%",
|
|
134
|
+
width: "100%"
|
|
135
|
+
},
|
|
136
|
+
width: "100%",
|
|
137
|
+
height: "100%",
|
|
138
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
139
|
+
children: [
|
|
140
|
+
/* @__PURE__ */ t("title", { children: "Grid Lines" }),
|
|
141
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t(
|
|
142
|
+
"pattern",
|
|
143
|
+
{
|
|
144
|
+
id: "grid-pattern",
|
|
145
|
+
x: "0",
|
|
146
|
+
y: "0",
|
|
147
|
+
width: o,
|
|
148
|
+
height: o,
|
|
149
|
+
patternUnits: "userSpaceOnUse",
|
|
150
|
+
children: /* @__PURE__ */ t(
|
|
151
|
+
"path",
|
|
152
|
+
{
|
|
153
|
+
d: `M ${o} 0 L 0 0 0 ${o}`,
|
|
154
|
+
fill: "none",
|
|
155
|
+
stroke: e,
|
|
156
|
+
strokeWidth: r
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
}
|
|
160
|
+
) }),
|
|
161
|
+
/* @__PURE__ */ t("rect", { width: "100%", height: "100%", fill: "url(#grid-pattern)" })
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
},
|
|
168
|
+
// Custom comparison function for better memoization
|
|
169
|
+
(i, e) => i.className === e.className && i.lineColor === e.lineColor && i.lineWidth === e.lineWidth && i.spacing === e.spacing && i.isInteractive === e.isInteractive && i.hoverColor === e.hoverColor && i.rows === e.rows && i.cols === e.cols
|
|
170
|
+
);
|
|
171
|
+
x.displayName = "BackgroundGrid";
|
|
172
|
+
export {
|
|
173
|
+
x as BackgroundGrid
|
|
174
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { A as o } from "./index-IcG2wuuE.js";
|
|
4
|
+
import { M as a } from "./index-CXtfbmpx.js";
|
|
5
|
+
const m = ({ logo: s, siteName: t, options: l, message: n }) => /* @__PURE__ */ r(o, { logo: s, siteName: t, maxWidth: "sm", children: [
|
|
6
|
+
/* @__PURE__ */ r("div", { className: "mb-6 px-8 sm:px-6", children: [
|
|
7
|
+
/* @__PURE__ */ e("div", { className: "mb-4 flex justify-center", children: /* @__PURE__ */ e(
|
|
8
|
+
"svg",
|
|
9
|
+
{
|
|
10
|
+
className: "h-12 w-12 text-black sm:h-10 sm:w-10",
|
|
11
|
+
fill: "none",
|
|
12
|
+
viewBox: "0 0 24 24",
|
|
13
|
+
strokeWidth: 1.5,
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
children: /* @__PURE__ */ e(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
strokeLinecap: "round",
|
|
19
|
+
strokeLinejoin: "round",
|
|
20
|
+
d: "M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
) }),
|
|
25
|
+
/* @__PURE__ */ e("h1", { className: "m-0 mb-2 text-center font-semibold text-2xl text-text-1 sm:text-xl", children: "Access Restricted" }),
|
|
26
|
+
t && /* @__PURE__ */ r("p", { className: "m-0 text-center text-[--color-text-2] leading-6", children: [
|
|
27
|
+
"Content on ",
|
|
28
|
+
/* @__PURE__ */ e("strong", { children: t }),
|
|
29
|
+
" is currently restricted"
|
|
30
|
+
] })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ e("div", { className: "mx-8 mb-8 rounded-lg border-red-300 border-l-4 bg-gray-50 p-4 sm:mx-6", children: /* @__PURE__ */ e(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
className: "m-0 flex flex-col gap-3 text-gray-700 leading-relaxed",
|
|
36
|
+
dangerouslySetInnerHTML: {
|
|
37
|
+
__html: l?.content?.conditionNotFulfilled ?? n ?? ""
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
) }),
|
|
41
|
+
/* @__PURE__ */ e(a, {})
|
|
42
|
+
] });
|
|
43
|
+
export {
|
|
44
|
+
m as default
|
|
45
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
const g =
|
|
3
|
+
import y from "react";
|
|
4
|
+
import { M as u, b as M } from "./elements-BxhlsyhI.js";
|
|
5
|
+
const g = y.memo(
|
|
6
6
|
({
|
|
7
|
-
className:
|
|
7
|
+
className: d,
|
|
8
8
|
primaryColor: o = "#3b82f6",
|
|
9
9
|
secondaryColor: n = "#8b5cf6",
|
|
10
|
-
amplitude:
|
|
11
|
-
frequency:
|
|
10
|
+
amplitude: p = 50,
|
|
11
|
+
frequency: l = 0.02,
|
|
12
12
|
speed: h = 1
|
|
13
13
|
}) => {
|
|
14
|
-
const
|
|
15
|
-
const i = [],
|
|
14
|
+
const c = Array.from({ length: 3 }, (t, i) => i), s = (t) => {
|
|
15
|
+
const i = [], f = t * 60;
|
|
16
16
|
for (let r = 0; r <= 1e3; r += 10) {
|
|
17
|
-
const
|
|
18
|
-
i.push(`${r},${
|
|
17
|
+
const m = 200 + Math.sin(r * l + f) * p;
|
|
18
|
+
i.push(`${r},${m}`);
|
|
19
19
|
}
|
|
20
20
|
return `M 0,200 Q ${i.join(" ")} 1000,200 L 1000,400 L 0,400 Z`;
|
|
21
21
|
};
|
|
22
22
|
return /* @__PURE__ */ e(
|
|
23
23
|
"div",
|
|
24
24
|
{
|
|
25
|
-
className:
|
|
25
|
+
className: d,
|
|
26
26
|
style: {
|
|
27
27
|
position: "absolute",
|
|
28
28
|
inset: 0,
|
|
@@ -50,66 +50,23 @@ const g = u.memo(
|
|
|
50
50
|
preserveAspectRatio: "xMidYMid slice",
|
|
51
51
|
xmlns: "http://www.w3.org/2000/svg",
|
|
52
52
|
children: [
|
|
53
|
+
/* @__PURE__ */ e("title", { children: "Waves" }),
|
|
53
54
|
/* @__PURE__ */ a("defs", { children: [
|
|
54
|
-
/* @__PURE__ */ a(
|
|
55
|
-
"
|
|
56
|
-
{
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
{
|
|
67
|
-
offset: "100%",
|
|
68
|
-
stopColor: n,
|
|
69
|
-
stopOpacity: "0.1"
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
),
|
|
75
|
-
/* @__PURE__ */ a(
|
|
76
|
-
"linearGradient",
|
|
77
|
-
{
|
|
78
|
-
id: "waveGradient2",
|
|
79
|
-
x1: "0%",
|
|
80
|
-
y1: "0%",
|
|
81
|
-
x2: "100%",
|
|
82
|
-
y2: "100%",
|
|
83
|
-
children: [
|
|
84
|
-
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: n, stopOpacity: "0.2" }),
|
|
85
|
-
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: o, stopOpacity: "0.05" })
|
|
86
|
-
]
|
|
87
|
-
}
|
|
88
|
-
),
|
|
89
|
-
/* @__PURE__ */ a(
|
|
90
|
-
"linearGradient",
|
|
91
|
-
{
|
|
92
|
-
id: "waveGradient3",
|
|
93
|
-
x1: "0%",
|
|
94
|
-
y1: "0%",
|
|
95
|
-
x2: "100%",
|
|
96
|
-
y2: "100%",
|
|
97
|
-
children: [
|
|
98
|
-
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.1" }),
|
|
99
|
-
/* @__PURE__ */ e(
|
|
100
|
-
"stop",
|
|
101
|
-
{
|
|
102
|
-
offset: "100%",
|
|
103
|
-
stopColor: n,
|
|
104
|
-
stopOpacity: "0.3"
|
|
105
|
-
}
|
|
106
|
-
)
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
)
|
|
55
|
+
/* @__PURE__ */ a("linearGradient", { id: "waveGradient1", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
56
|
+
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.3" }),
|
|
57
|
+
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: n, stopOpacity: "0.1" })
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ a("linearGradient", { id: "waveGradient2", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
60
|
+
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: n, stopOpacity: "0.2" }),
|
|
61
|
+
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: o, stopOpacity: "0.05" })
|
|
62
|
+
] }),
|
|
63
|
+
/* @__PURE__ */ a("linearGradient", { id: "waveGradient3", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
64
|
+
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.1" }),
|
|
65
|
+
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: n, stopOpacity: "0.3" })
|
|
66
|
+
] })
|
|
110
67
|
] }),
|
|
111
|
-
|
|
112
|
-
|
|
68
|
+
c.map((t) => /* @__PURE__ */ e(
|
|
69
|
+
u,
|
|
113
70
|
{
|
|
114
71
|
d: s(t),
|
|
115
72
|
fill: `url(#waveGradient${t + 1})`,
|
|
@@ -141,7 +98,7 @@ const g = u.memo(
|
|
|
141
98
|
`wave-${t}`
|
|
142
99
|
)),
|
|
143
100
|
Array.from({ length: 15 }, (t, i) => /* @__PURE__ */ e(
|
|
144
|
-
|
|
101
|
+
M,
|
|
145
102
|
{
|
|
146
103
|
cx: Math.random() * 1e3,
|
|
147
104
|
cy: Math.random() * 400,
|
|
@@ -150,16 +107,8 @@ const g = u.memo(
|
|
|
150
107
|
initial: { opacity: 0.3 },
|
|
151
108
|
animate: {
|
|
152
109
|
opacity: [0.3, 0.8, 0.3],
|
|
153
|
-
cy: [
|
|
154
|
-
|
|
155
|
-
Math.random() * 400,
|
|
156
|
-
Math.random() * 400
|
|
157
|
-
],
|
|
158
|
-
cx: [
|
|
159
|
-
Math.random() * 1e3,
|
|
160
|
-
Math.random() * 1e3,
|
|
161
|
-
Math.random() * 1e3
|
|
162
|
-
]
|
|
110
|
+
cy: [Math.random() * 400, Math.random() * 400, Math.random() * 400],
|
|
111
|
+
cx: [Math.random() * 1e3, Math.random() * 1e3, Math.random() * 1e3]
|
|
163
112
|
},
|
|
164
113
|
transition: {
|
|
165
114
|
duration: Math.random() * 10 + 5,
|