telecop 0.1.31 → 0.1.33
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/components/Animations/RotateIn.d.ts +3 -0
- package/dist/components/Animations/ScrollReveal.d.ts +3 -0
- package/dist/components/Animations/ZoomIn.d.ts +3 -0
- package/dist/components/Animations/index.d.ts +4 -0
- package/dist/components/Animations/types.d.ts +18 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +12 -12
- package/dist/index.mjs +599 -492
- package/dist/style.css +1 -1
- package/dist/templates/Home/Home.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
2
|
+
import { jsx as o, jsxs as u, Fragment as T } from "react/jsx-runtime";
|
|
3
|
+
import V, { useState as C, useRef as p, useEffect as y } from "react";
|
|
4
4
|
const ja = ({
|
|
5
5
|
children: e,
|
|
6
6
|
variant: a = "primary",
|
|
7
7
|
size: t = "md",
|
|
8
8
|
onClick: r,
|
|
9
|
-
disabled:
|
|
10
|
-
className:
|
|
9
|
+
disabled: n = !1,
|
|
10
|
+
className: s = ""
|
|
11
11
|
}) => {
|
|
12
|
-
const
|
|
12
|
+
const i = "font-semibold rounded-lg transition-all duration-200 cursor-pointer", d = {
|
|
13
13
|
primary: "bg-blue-600 hover:bg-blue-700 text-white shadow-md hover:shadow-lg",
|
|
14
14
|
secondary: "bg-gray-600 hover:bg-gray-700 text-white shadow-md hover:shadow-lg",
|
|
15
15
|
danger: "bg-red-600 hover:bg-red-700 text-white shadow-md hover:shadow-lg"
|
|
@@ -17,29 +17,29 @@ const ja = ({
|
|
|
17
17
|
sm: "px-3 py-1.5 text-sm",
|
|
18
18
|
md: "px-4 py-2 text-base",
|
|
19
19
|
lg: "px-6 py-3 text-lg"
|
|
20
|
-
}, c =
|
|
21
|
-
return /* @__PURE__ */
|
|
20
|
+
}, c = n ? "opacity-50 cursor-not-allowed" : "";
|
|
21
|
+
return /* @__PURE__ */ o(
|
|
22
22
|
"button",
|
|
23
23
|
{
|
|
24
|
-
className: `${
|
|
24
|
+
className: `${i} ${d[a]} ${l[t]} ${c} ${s}`,
|
|
25
25
|
onClick: r,
|
|
26
|
-
disabled:
|
|
26
|
+
disabled: n,
|
|
27
27
|
children: e
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
|
-
},
|
|
30
|
+
}, X = ({
|
|
31
31
|
children: e,
|
|
32
32
|
variant: a = "blur",
|
|
33
33
|
size: t = "md",
|
|
34
34
|
onClick: r,
|
|
35
|
-
disabled:
|
|
36
|
-
className:
|
|
35
|
+
disabled: n = !1,
|
|
36
|
+
className: s = ""
|
|
37
37
|
}) => {
|
|
38
|
-
const [
|
|
39
|
-
if (!
|
|
40
|
-
const
|
|
41
|
-
d([...
|
|
42
|
-
d((
|
|
38
|
+
const [i, d] = C([]), l = (f) => {
|
|
39
|
+
if (!n && r) {
|
|
40
|
+
const w = f.currentTarget.getBoundingClientRect(), h = f.clientX - w.left, N = f.clientY - w.top, k = Date.now();
|
|
41
|
+
d([...i, { x: h, y: N, id: k }]), setTimeout(() => {
|
|
42
|
+
d((O) => O.filter((M) => M.id !== k));
|
|
43
43
|
}, 800), r();
|
|
44
44
|
}
|
|
45
45
|
}, c = `
|
|
@@ -56,7 +56,7 @@ const ja = ({
|
|
|
56
56
|
sm: "px-5 py-2.5 text-sm",
|
|
57
57
|
md: "px-7 py-3.5 text-base",
|
|
58
58
|
lg: "px-9 py-4.5 text-lg"
|
|
59
|
-
},
|
|
59
|
+
}, m = {
|
|
60
60
|
blur: `
|
|
61
61
|
bg-white/5
|
|
62
62
|
hover:bg-white/15
|
|
@@ -82,142 +82,39 @@ const ja = ({
|
|
|
82
82
|
hover:before:translate-x-[200%]
|
|
83
83
|
before:transition-transform before:duration-1000
|
|
84
84
|
`
|
|
85
|
-
},
|
|
85
|
+
}, b = n ? "opacity-40 cursor-not-allowed hover:scale-100 hover:shadow-xl" : "";
|
|
86
86
|
return /* @__PURE__ */ u(
|
|
87
87
|
"button",
|
|
88
88
|
{
|
|
89
|
-
className: `${c} ${g[t]} ${
|
|
89
|
+
className: `${c} ${g[t]} ${m[a]} ${b} ${s}`,
|
|
90
90
|
onClick: l,
|
|
91
|
-
disabled:
|
|
91
|
+
disabled: n,
|
|
92
92
|
children: [
|
|
93
|
-
a === "waves" && !
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
93
|
+
a === "waves" && !n && /* @__PURE__ */ u(T, { children: [
|
|
94
|
+
/* @__PURE__ */ o("span", { className: "absolute inset-0 bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-pink-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-700" }),
|
|
95
|
+
/* @__PURE__ */ o("span", { className: "absolute inset-0 bg-gradient-to-br from-transparent via-white/10 to-transparent animate-pulse" })
|
|
96
96
|
] }),
|
|
97
|
-
a === "blur" && !
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
|
|
97
|
+
a === "blur" && !n && /* @__PURE__ */ o("span", { className: "absolute inset-0 bg-white/5 blur-xl opacity-0 group-hover:opacity-100 transition-opacity duration-500" }),
|
|
98
|
+
/* @__PURE__ */ o("span", { className: "absolute inset-0 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none", children: /* @__PURE__ */ o("span", { className: "absolute inset-[-2px] rounded-2xl bg-gradient-to-r from-transparent via-white/40 to-transparent blur-sm animate-shimmer" }) }),
|
|
99
|
+
i.map((f) => /* @__PURE__ */ o(
|
|
100
100
|
"span",
|
|
101
101
|
{
|
|
102
102
|
className: "absolute rounded-full bg-white/30 pointer-events-none animate-ripple",
|
|
103
103
|
style: {
|
|
104
|
-
left:
|
|
105
|
-
top:
|
|
104
|
+
left: f.x,
|
|
105
|
+
top: f.y,
|
|
106
106
|
width: "20px",
|
|
107
107
|
height: "20px",
|
|
108
108
|
transform: "translate(-50%, -50%)"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
|
|
111
|
+
f.id
|
|
112
112
|
)),
|
|
113
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ o("span", { className: "relative z-10 drop-shadow-lg", children: e })
|
|
114
114
|
]
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
|
-
},
|
|
118
|
-
name: e,
|
|
119
|
-
title: a,
|
|
120
|
-
description: t = "Welcome to my portfolio",
|
|
121
|
-
primaryButtonText: r = "Get Started",
|
|
122
|
-
primaryButtonLink: o,
|
|
123
|
-
primaryButtonOnClick: i,
|
|
124
|
-
secondaryButtonText: s = "Learn More",
|
|
125
|
-
secondaryButtonLink: d,
|
|
126
|
-
secondaryButtonOnClick: l,
|
|
127
|
-
backgroundGradient: c = "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
|
|
128
|
-
animationType: g,
|
|
129
|
-
className: b = ""
|
|
130
|
-
}) => {
|
|
131
|
-
const m = () => {
|
|
132
|
-
o ? window.location.href = o : i && i();
|
|
133
|
-
}, p = () => {
|
|
134
|
-
d ? window.location.href = d : l && l();
|
|
135
|
-
}, h = o ? /* @__PURE__ */ n("a", { href: o, style: { textDecoration: "none" }, children: /* @__PURE__ */ n(O, { variant: "waves", size: "lg", children: r }) }) : /* @__PURE__ */ n(
|
|
136
|
-
O,
|
|
137
|
-
{
|
|
138
|
-
variant: "waves",
|
|
139
|
-
size: "lg",
|
|
140
|
-
onClick: i || m,
|
|
141
|
-
children: r
|
|
142
|
-
}
|
|
143
|
-
), x = d ? /* @__PURE__ */ n("a", { href: d, style: { textDecoration: "none" }, children: /* @__PURE__ */ n(O, { variant: "blur", size: "lg", children: s }) }) : /* @__PURE__ */ n(
|
|
144
|
-
O,
|
|
145
|
-
{
|
|
146
|
-
variant: "blur",
|
|
147
|
-
size: "lg",
|
|
148
|
-
onClick: l || p,
|
|
149
|
-
children: s
|
|
150
|
-
}
|
|
151
|
-
);
|
|
152
|
-
return /* @__PURE__ */ n(
|
|
153
|
-
"div",
|
|
154
|
-
{
|
|
155
|
-
className: g ? `animate-gradient-${g}` : "",
|
|
156
|
-
style: {
|
|
157
|
-
background: c,
|
|
158
|
-
minHeight: "100vh"
|
|
159
|
-
},
|
|
160
|
-
children: /* @__PURE__ */ n("div", { className: `min-h-screen flex items-center justify-center p-8 ${b}`, children: /* @__PURE__ */ u("div", { className: "max-w-4xl w-full text-center space-y-8", children: [
|
|
161
|
-
/* @__PURE__ */ n(
|
|
162
|
-
"h1",
|
|
163
|
-
{
|
|
164
|
-
className: "text-6xl md:text-8xl font-bold text-white mb-4",
|
|
165
|
-
style: {
|
|
166
|
-
textShadow: "0 0 40px rgba(0,0,0,0.3)",
|
|
167
|
-
animation: "fadeInUp 0.8s ease-out"
|
|
168
|
-
},
|
|
169
|
-
children: e
|
|
170
|
-
}
|
|
171
|
-
),
|
|
172
|
-
/* @__PURE__ */ n(
|
|
173
|
-
"h2",
|
|
174
|
-
{
|
|
175
|
-
className: "text-3xl md:text-5xl font-semibold text-white/90",
|
|
176
|
-
style: {
|
|
177
|
-
textShadow: "0 0 30px rgba(0,0,0,0.2)",
|
|
178
|
-
animation: "fadeInUp 1s ease-out 0.2s backwards"
|
|
179
|
-
},
|
|
180
|
-
children: a
|
|
181
|
-
}
|
|
182
|
-
),
|
|
183
|
-
/* @__PURE__ */ n(
|
|
184
|
-
"p",
|
|
185
|
-
{
|
|
186
|
-
className: "text-xl md:text-2xl text-white/80 max-w-2xl mx-auto",
|
|
187
|
-
style: {
|
|
188
|
-
textShadow: "0 0 20px rgba(0,0,0,0.2)",
|
|
189
|
-
animation: "fadeInUp 1.2s ease-out 0.4s backwards"
|
|
190
|
-
},
|
|
191
|
-
children: t
|
|
192
|
-
}
|
|
193
|
-
),
|
|
194
|
-
/* @__PURE__ */ u(
|
|
195
|
-
"div",
|
|
196
|
-
{
|
|
197
|
-
className: "flex flex-wrap gap-6 justify-center mt-12",
|
|
198
|
-
style: {
|
|
199
|
-
animation: "fadeInUp 1.4s ease-out 0.6s backwards"
|
|
200
|
-
},
|
|
201
|
-
children: [
|
|
202
|
-
h,
|
|
203
|
-
x
|
|
204
|
-
]
|
|
205
|
-
}
|
|
206
|
-
),
|
|
207
|
-
/* @__PURE__ */ n(
|
|
208
|
-
"div",
|
|
209
|
-
{
|
|
210
|
-
className: "mt-16 mx-auto w-32 h-1 rounded-full",
|
|
211
|
-
style: {
|
|
212
|
-
background: "linear-gradient(90deg, transparent, white, transparent)",
|
|
213
|
-
animation: "fadeIn 2s ease-out 1s backwards"
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
)
|
|
217
|
-
] }) })
|
|
218
|
-
}
|
|
219
|
-
);
|
|
220
|
-
}, Wa = [
|
|
117
|
+
}, q = [
|
|
221
118
|
// ========== PREMIUM THEMES (NEW) ==========
|
|
222
119
|
{
|
|
223
120
|
id: "glass-morphism",
|
|
@@ -682,10 +579,117 @@ const ja = ({
|
|
|
682
579
|
category: "animated",
|
|
683
580
|
animation: "zoom"
|
|
684
581
|
}
|
|
685
|
-
],
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
582
|
+
], Fa = ({
|
|
583
|
+
name: e,
|
|
584
|
+
title: a,
|
|
585
|
+
description: t = "Welcome to my portfolio",
|
|
586
|
+
primaryButtonText: r = "Get Started",
|
|
587
|
+
primaryButtonLink: n,
|
|
588
|
+
primaryButtonOnClick: s,
|
|
589
|
+
secondaryButtonText: i = "Learn More",
|
|
590
|
+
secondaryButtonLink: d,
|
|
591
|
+
secondaryButtonOnClick: l,
|
|
592
|
+
theme: c,
|
|
593
|
+
// ✅ NEW
|
|
594
|
+
backgroundGradient: g,
|
|
595
|
+
// ⚠️ KEEP للناس اللي يبغون custom
|
|
596
|
+
animationType: m,
|
|
597
|
+
className: b = ""
|
|
598
|
+
}) => {
|
|
599
|
+
const f = c ? q.find((x) => x.id === c) : null, w = (f == null ? void 0 : f.gradient) || g || "linear-gradient(135deg, #667eea 0%, #764ba2 100%)", h = m || (f == null ? void 0 : f.animation), N = () => {
|
|
600
|
+
n ? window.location.href = n : s && s();
|
|
601
|
+
}, k = () => {
|
|
602
|
+
d ? window.location.href = d : l && l();
|
|
603
|
+
}, O = n ? /* @__PURE__ */ o("a", { href: n, style: { textDecoration: "none" }, children: /* @__PURE__ */ o(X, { variant: "waves", size: "lg", children: r }) }) : /* @__PURE__ */ o(
|
|
604
|
+
X,
|
|
605
|
+
{
|
|
606
|
+
variant: "waves",
|
|
607
|
+
size: "lg",
|
|
608
|
+
onClick: s || N,
|
|
609
|
+
children: r
|
|
610
|
+
}
|
|
611
|
+
), M = d ? /* @__PURE__ */ o("a", { href: d, style: { textDecoration: "none" }, children: /* @__PURE__ */ o(X, { variant: "blur", size: "lg", children: i }) }) : /* @__PURE__ */ o(
|
|
612
|
+
X,
|
|
613
|
+
{
|
|
614
|
+
variant: "blur",
|
|
615
|
+
size: "lg",
|
|
616
|
+
onClick: l || k,
|
|
617
|
+
children: i
|
|
618
|
+
}
|
|
619
|
+
);
|
|
620
|
+
return /* @__PURE__ */ o(
|
|
621
|
+
"div",
|
|
622
|
+
{
|
|
623
|
+
className: h ? `animate-gradient-${h}` : "",
|
|
624
|
+
style: {
|
|
625
|
+
background: w,
|
|
626
|
+
// ✅ استخدام الـ gradient المحدد
|
|
627
|
+
minHeight: "100vh"
|
|
628
|
+
},
|
|
629
|
+
children: /* @__PURE__ */ o("div", { className: `min-h-screen flex items-center justify-center p-8 ${b}`, children: /* @__PURE__ */ u("div", { className: "max-w-4xl w-full text-center space-y-8", children: [
|
|
630
|
+
/* @__PURE__ */ o(
|
|
631
|
+
"h1",
|
|
632
|
+
{
|
|
633
|
+
className: "text-6xl md:text-8xl font-bold text-white mb-4",
|
|
634
|
+
style: {
|
|
635
|
+
textShadow: "0 0 40px rgba(0,0,0,0.3)",
|
|
636
|
+
animation: "fadeInUp 0.8s ease-out"
|
|
637
|
+
},
|
|
638
|
+
children: e
|
|
639
|
+
}
|
|
640
|
+
),
|
|
641
|
+
/* @__PURE__ */ o(
|
|
642
|
+
"h2",
|
|
643
|
+
{
|
|
644
|
+
className: "text-3xl md:text-5xl font-semibold text-white/90",
|
|
645
|
+
style: {
|
|
646
|
+
textShadow: "0 0 30px rgba(0,0,0,0.2)",
|
|
647
|
+
animation: "fadeInUp 1s ease-out 0.2s backwards"
|
|
648
|
+
},
|
|
649
|
+
children: a
|
|
650
|
+
}
|
|
651
|
+
),
|
|
652
|
+
/* @__PURE__ */ o(
|
|
653
|
+
"p",
|
|
654
|
+
{
|
|
655
|
+
className: "text-xl md:text-2xl text-white/80 max-w-2xl mx-auto",
|
|
656
|
+
style: {
|
|
657
|
+
textShadow: "0 0 20px rgba(0,0,0,0.2)",
|
|
658
|
+
animation: "fadeInUp 1.2s ease-out 0.4s backwards"
|
|
659
|
+
},
|
|
660
|
+
children: t
|
|
661
|
+
}
|
|
662
|
+
),
|
|
663
|
+
/* @__PURE__ */ u(
|
|
664
|
+
"div",
|
|
665
|
+
{
|
|
666
|
+
className: "flex flex-wrap gap-6 justify-center mt-12",
|
|
667
|
+
style: {
|
|
668
|
+
animation: "fadeInUp 1.4s ease-out 0.6s backwards"
|
|
669
|
+
},
|
|
670
|
+
children: [
|
|
671
|
+
O,
|
|
672
|
+
M
|
|
673
|
+
]
|
|
674
|
+
}
|
|
675
|
+
),
|
|
676
|
+
/* @__PURE__ */ o(
|
|
677
|
+
"div",
|
|
678
|
+
{
|
|
679
|
+
className: "mt-16 mx-auto w-32 h-1 rounded-full",
|
|
680
|
+
style: {
|
|
681
|
+
background: "linear-gradient(90deg, transparent, white, transparent)",
|
|
682
|
+
animation: "fadeIn 2s ease-out 1s backwards"
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
)
|
|
686
|
+
] }) })
|
|
687
|
+
}
|
|
688
|
+
);
|
|
689
|
+
}, Wa = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-blue-600 hover:bg-blue-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: e }), Qa = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-red-600 hover:bg-red-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: e }), Za = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-green-600 hover:bg-green-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: e }), Ja = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-purple-600 hover:bg-purple-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: e }), Ka = ({ children: e = "Pill Button", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-8 py-3 rounded-full font-semibold text-white bg-indigo-600 hover:bg-indigo-700 transition-all duration-300 hover:scale-105 hover:shadow-xl", children: e }), et = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-purple-500/50", children: e }), at = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-blue-600 to-green-600 hover:from-blue-700 hover:to-green-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-blue-500/50", children: e }), tt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-orange-600 to-red-600 hover:from-orange-700 hover:to-red-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-orange-500/50", children: e }), rt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-br from-cyan-400 to-blue-600 hover:from-cyan-500 hover:to-blue-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-cyan-500/50", children: e }), nt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-yellow-500 via-orange-500 to-red-600 hover:from-yellow-600 hover:via-orange-600 hover:to-red-700 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-orange-500/50", children: e }), ot = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-blue-500/20 backdrop-blur-xl border border-blue-400/30 hover:bg-blue-500/30 hover:border-blue-400/50 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-blue-500/20", children: e }), it = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-purple-500/20 backdrop-blur-xl border border-purple-400/30 hover:bg-purple-500/30 hover:border-purple-400/50 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-purple-500/20", children: e }), st = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-white/10 backdrop-blur-xl border border-white/30 hover:bg-white/20 hover:border-white/50 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-white/20", children: e }), lt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-pink-500/20 backdrop-blur-xl border border-pink-400/30 hover:bg-pink-500/30 hover:border-pink-400/50 transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-pink-500/20", children: e }), dt = ({ children: e = "Shimmer Effect", onClick: a }) => /* @__PURE__ */ u("button", { onClick: a, className: "relative px-6 py-3 rounded-lg font-semibold text-white bg-gradient-to-r from-purple-600 to-blue-600 overflow-hidden group transition-all duration-300 hover:scale-105", children: [
|
|
690
|
+
/* @__PURE__ */ o("span", { className: "relative z-10", children: e }),
|
|
691
|
+
/* @__PURE__ */ o("span", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/30 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-1000" })
|
|
692
|
+
] }), ct = ({ children: e = "Pulse Button", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-red-600 hover:bg-red-700 transition-all duration-300 animate-pulse hover:animate-none hover:scale-105", children: e }), gt = ({ children: e = "Bounce Button", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-green-600 hover:bg-green-700 transition-all duration-300 hover:animate-bounce", children: e }), ft = ({ children: e = "Glow Effect", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-purple-600 hover:bg-purple-700 transition-all duration-300 hover:shadow-[0_0_30px_rgba(168,85,247,0.8)] hover:scale-105", children: e }), pt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-blue-500 border-2 border-blue-500 hover:bg-blue-500 hover:text-white transition-all duration-300 hover:scale-105", children: e }), ut = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-purple-500 border-2 border-purple-500 hover:bg-purple-500 hover:text-white transition-all duration-300 hover:scale-105", children: e }), mt = ({ children: e = "Gradient Border", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-transparent bg-clip-text bg-gradient-to-r from-purple-500 to-pink-500 border-2 border-transparent hover:text-white transition-all duration-300 hover:scale-105", style: { borderImage: "linear-gradient(to right, rgb(168, 85, 247), rgb(236, 72, 153)) 1" }, children: e }), bt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-blue-500 hover:bg-blue-500/10 transition-all duration-300 hover:scale-105", children: e }), ht = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-red-500 hover:bg-red-500/10 transition-all duration-300 hover:scale-105", children: e }), xt = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-purple-500 hover:bg-purple-500/10 transition-all duration-300 hover:scale-105", children: e }), yt = ({ children: e = "3D Button", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-blue-600 shadow-[0_6px_0_rgb(37,99,235)] hover:shadow-[0_4px_0_rgb(37,99,235)] hover:translate-y-[2px] transition-all duration-150", children: e }), wt = ({ children: e = "3D Button", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-pink-600 shadow-[0_6px_0_rgb(219,39,119)] hover:shadow-[0_4px_0_rgb(219,39,119)] hover:translate-y-[2px] transition-all duration-150", children: e }), vt = ({ children: e = "3D Button", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-white bg-green-600 shadow-[0_6px_0_rgb(22,163,74)] hover:shadow-[0_4px_0_rgb(22,163,74)] hover:translate-y-[2px] transition-all duration-150", children: e }), kt = ({ children: e = "Neon Blue", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-blue-400 border-2 border-blue-400 hover:bg-blue-400 hover:text-black transition-all duration-300 hover:shadow-[0_0_20px_rgba(59,130,246,0.8)] hover:scale-105", children: e }), It = ({ children: e = "Neon Pink", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-pink-400 border-2 border-pink-400 hover:bg-pink-400 hover:text-black transition-all duration-300 hover:shadow-[0_0_20px_rgba(236,72,153,0.8)] hover:scale-105", children: e }), Nt = ({ children: e = "Neon Green", onClick: a }) => /* @__PURE__ */ o("button", { onClick: a, className: "px-6 py-3 rounded-lg font-semibold text-green-400 border-2 border-green-400 hover:bg-green-400 hover:text-black transition-all duration-300 hover:shadow-[0_0_20px_rgba(34,197,94,0.8)] hover:scale-105", children: e }), H = {
|
|
689
693
|
"glass-morphism": `
|
|
690
694
|
radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
|
|
691
695
|
radial-gradient(circle at 80% 80%, rgba(255, 128, 171, 0.3), transparent 50%),
|
|
@@ -711,14 +715,14 @@ const ja = ({
|
|
|
711
715
|
linear-gradient(180deg, #000000 0%, #0a0a1a 50%, #000000 100%)
|
|
712
716
|
`,
|
|
713
717
|
none: "transparent"
|
|
714
|
-
},
|
|
718
|
+
}, Ot = ({
|
|
715
719
|
children: e,
|
|
716
720
|
layout: a = "center",
|
|
717
721
|
size: t = "lg",
|
|
718
722
|
theme: r = "none",
|
|
719
|
-
padding:
|
|
720
|
-
gap:
|
|
721
|
-
className:
|
|
723
|
+
padding: n = !0,
|
|
724
|
+
gap: s = "md",
|
|
725
|
+
className: i = ""
|
|
722
726
|
}) => {
|
|
723
727
|
const d = {
|
|
724
728
|
sm: "max-w-3xl",
|
|
@@ -730,7 +734,7 @@ const ja = ({
|
|
|
730
734
|
sm: "gap-4",
|
|
731
735
|
md: "gap-8",
|
|
732
736
|
lg: "gap-12"
|
|
733
|
-
}[
|
|
737
|
+
}[s], c = {
|
|
734
738
|
"image-right": `grid md:grid-cols-2 ${l} items-center`,
|
|
735
739
|
"image-left": `grid md:grid-cols-2 ${l} items-center`,
|
|
736
740
|
"button-right": `grid md:grid-cols-2 ${l} items-center`,
|
|
@@ -738,54 +742,54 @@ const ja = ({
|
|
|
738
742
|
center: "flex flex-col items-center justify-center text-center",
|
|
739
743
|
"two-columns": `grid md:grid-cols-2 ${l}`,
|
|
740
744
|
"three-columns": `grid md:grid-cols-3 ${l}`
|
|
741
|
-
}[a], g =
|
|
745
|
+
}[a], g = n ? "px-6 py-8" : "", m = r !== "none" ? {
|
|
742
746
|
background: H[r],
|
|
743
747
|
backgroundSize: "200% 200%"
|
|
744
|
-
} : {},
|
|
745
|
-
let
|
|
746
|
-
return (a === "image-left" || a === "button-left") && (
|
|
748
|
+
} : {}, b = V.Children.toArray(e);
|
|
749
|
+
let f = b;
|
|
750
|
+
return (a === "image-left" || a === "button-left") && (f = b.reverse()), /* @__PURE__ */ o(
|
|
747
751
|
"div",
|
|
748
752
|
{
|
|
749
|
-
className: `${d} mx-auto ${g} ${
|
|
750
|
-
style:
|
|
751
|
-
children: /* @__PURE__ */
|
|
753
|
+
className: `${d} mx-auto ${g} ${i}`,
|
|
754
|
+
style: m,
|
|
755
|
+
children: /* @__PURE__ */ o("div", { className: c, children: f })
|
|
752
756
|
}
|
|
753
757
|
);
|
|
754
|
-
},
|
|
758
|
+
}, Mt = ({
|
|
755
759
|
src: e,
|
|
756
760
|
alt: a,
|
|
757
761
|
className: t = "",
|
|
758
762
|
width: r,
|
|
759
|
-
height:
|
|
760
|
-
}) => /* @__PURE__ */
|
|
763
|
+
height: n
|
|
764
|
+
}) => /* @__PURE__ */ o("div", { className: `w-full ${t}`, children: /* @__PURE__ */ o(
|
|
761
765
|
"img",
|
|
762
766
|
{
|
|
763
767
|
src: e,
|
|
764
768
|
alt: a,
|
|
765
769
|
width: r,
|
|
766
|
-
height:
|
|
770
|
+
height: n,
|
|
767
771
|
className: "w-full h-auto rounded-2xl shadow-2xl object-cover"
|
|
768
772
|
}
|
|
769
773
|
) }), Ct = ({
|
|
770
774
|
children: e,
|
|
771
775
|
className: a = ""
|
|
772
|
-
}) => /* @__PURE__ */
|
|
776
|
+
}) => /* @__PURE__ */ o("div", { className: `space-y-4 ${a}`, children: e }), Yt = ({
|
|
773
777
|
children: e,
|
|
774
778
|
className: a = ""
|
|
775
|
-
}) => /* @__PURE__ */
|
|
779
|
+
}) => /* @__PURE__ */ o("div", { className: `flex gap-4 ${a}`, children: e }), Xt = ({
|
|
776
780
|
icon: e,
|
|
777
781
|
title: a,
|
|
778
782
|
description: t,
|
|
779
783
|
variant: r = "solid",
|
|
780
|
-
theme:
|
|
781
|
-
hoverable:
|
|
782
|
-
className:
|
|
784
|
+
theme: n = "blue",
|
|
785
|
+
hoverable: s = !0,
|
|
786
|
+
className: i = ""
|
|
783
787
|
}) => {
|
|
784
788
|
const l = `
|
|
785
789
|
rounded-2xl p-6
|
|
786
790
|
max-w-sm
|
|
787
791
|
transition-all duration-300
|
|
788
|
-
${
|
|
792
|
+
${s ? "hover:scale-[1.02] hover:shadow-2xl" : ""}
|
|
789
793
|
${{
|
|
790
794
|
blue: {
|
|
791
795
|
solid: "bg-blue-600 text-white",
|
|
@@ -823,22 +827,22 @@ const ja = ({
|
|
|
823
827
|
gradient: "bg-gradient-to-br from-orange-600 to-red-600 text-white",
|
|
824
828
|
outlined: "bg-transparent border-2 border-orange-500 text-orange-500"
|
|
825
829
|
}
|
|
826
|
-
}[
|
|
827
|
-
${
|
|
830
|
+
}[n][r]}
|
|
831
|
+
${i}
|
|
828
832
|
`;
|
|
829
833
|
return /* @__PURE__ */ u("div", { className: l, children: [
|
|
830
|
-
e && /* @__PURE__ */
|
|
831
|
-
/* @__PURE__ */
|
|
832
|
-
/* @__PURE__ */
|
|
834
|
+
e && /* @__PURE__ */ o("div", { className: "text-4xl mb-4", children: e }),
|
|
835
|
+
/* @__PURE__ */ o("h3", { className: "text-xl font-bold mb-2", children: a }),
|
|
836
|
+
/* @__PURE__ */ o("p", { className: `text-sm ${r === "outlined" ? "text-gray-600" : "opacity-90"}`, children: t })
|
|
833
837
|
] });
|
|
834
838
|
}, Pt = ({
|
|
835
839
|
image: e,
|
|
836
840
|
title: a,
|
|
837
841
|
description: t,
|
|
838
842
|
price: r,
|
|
839
|
-
oldPrice:
|
|
840
|
-
badge:
|
|
841
|
-
variant:
|
|
843
|
+
oldPrice: n,
|
|
844
|
+
badge: s,
|
|
845
|
+
variant: i = "solid",
|
|
842
846
|
children: d,
|
|
843
847
|
className: l = ""
|
|
844
848
|
}) => /* @__PURE__ */ u("div", { className: `
|
|
@@ -851,11 +855,11 @@ const ja = ({
|
|
|
851
855
|
glass: "bg-white/5 backdrop-blur-xl border border-white/10",
|
|
852
856
|
gradient: "bg-gradient-to-br from-gray-900 to-gray-800 border border-gray-700",
|
|
853
857
|
outlined: "bg-transparent border-2 border-gray-700"
|
|
854
|
-
}[
|
|
858
|
+
}[i]}
|
|
855
859
|
${l}
|
|
856
860
|
`, children: [
|
|
857
861
|
/* @__PURE__ */ u("div", { className: "relative", children: [
|
|
858
|
-
/* @__PURE__ */
|
|
862
|
+
/* @__PURE__ */ o(
|
|
859
863
|
"img",
|
|
860
864
|
{
|
|
861
865
|
src: e,
|
|
@@ -863,19 +867,19 @@ const ja = ({
|
|
|
863
867
|
className: "w-full h-48 object-cover"
|
|
864
868
|
}
|
|
865
869
|
),
|
|
866
|
-
|
|
870
|
+
s && /* @__PURE__ */ o("span", { className: "absolute top-3 right-3 px-3 py-1 bg-red-500 text-white text-xs font-bold rounded-full", children: s })
|
|
867
871
|
] }),
|
|
868
872
|
/* @__PURE__ */ u("div", { className: "p-5 space-y-3", children: [
|
|
869
|
-
/* @__PURE__ */
|
|
870
|
-
t && /* @__PURE__ */
|
|
873
|
+
/* @__PURE__ */ o("h3", { className: "text-xl font-bold text-white", children: a }),
|
|
874
|
+
t && /* @__PURE__ */ o("p", { className: "text-gray-400 text-sm", children: t }),
|
|
871
875
|
/* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: [
|
|
872
876
|
/* @__PURE__ */ u("span", { className: "text-2xl font-bold text-white", children: [
|
|
873
877
|
"$",
|
|
874
878
|
r
|
|
875
879
|
] }),
|
|
876
|
-
|
|
880
|
+
n && /* @__PURE__ */ u("span", { className: "text-sm text-gray-500 line-through", children: [
|
|
877
881
|
"$",
|
|
878
|
-
|
|
882
|
+
n
|
|
879
883
|
] })
|
|
880
884
|
] }),
|
|
881
885
|
d
|
|
@@ -885,9 +889,9 @@ const ja = ({
|
|
|
885
889
|
label: a,
|
|
886
890
|
value: t,
|
|
887
891
|
change: r,
|
|
888
|
-
trend:
|
|
889
|
-
variant:
|
|
890
|
-
theme:
|
|
892
|
+
trend: n = "neutral",
|
|
893
|
+
variant: s = "solid",
|
|
894
|
+
theme: i = "blue",
|
|
891
895
|
className: d = ""
|
|
892
896
|
}) => {
|
|
893
897
|
const l = {
|
|
@@ -941,22 +945,22 @@ const ja = ({
|
|
|
941
945
|
max-w-sm
|
|
942
946
|
transition-all duration-300
|
|
943
947
|
hover:scale-[1.02] hover:shadow-xl
|
|
944
|
-
${l[
|
|
948
|
+
${l[i][s]}
|
|
945
949
|
${d}
|
|
946
950
|
`, children: [
|
|
947
951
|
/* @__PURE__ */ u("div", { className: "flex items-start justify-between mb-4", children: [
|
|
948
|
-
e && /* @__PURE__ */
|
|
949
|
-
r && /* @__PURE__ */ u("span", { className: `text-sm font-semibold ${c[
|
|
950
|
-
g[
|
|
952
|
+
e && /* @__PURE__ */ o("div", { className: "text-3xl", children: e }),
|
|
953
|
+
r && /* @__PURE__ */ u("span", { className: `text-sm font-semibold ${c[n]}`, children: [
|
|
954
|
+
g[n],
|
|
951
955
|
" ",
|
|
952
956
|
r
|
|
953
957
|
] })
|
|
954
958
|
] }),
|
|
955
|
-
/* @__PURE__ */
|
|
956
|
-
/* @__PURE__ */
|
|
959
|
+
/* @__PURE__ */ o("p", { className: "text-gray-400 text-sm mb-1", children: a }),
|
|
960
|
+
/* @__PURE__ */ o("p", { className: "text-3xl font-bold text-white", children: t })
|
|
957
961
|
] });
|
|
958
962
|
};
|
|
959
|
-
class
|
|
963
|
+
class v {
|
|
960
964
|
constructor(a) {
|
|
961
965
|
this.animation = null, this.element = a;
|
|
962
966
|
}
|
|
@@ -966,17 +970,17 @@ class y {
|
|
|
966
970
|
animate(a, t = {}) {
|
|
967
971
|
const {
|
|
968
972
|
duration: r = 600,
|
|
969
|
-
delay:
|
|
970
|
-
easing:
|
|
971
|
-
iterations:
|
|
973
|
+
delay: n = 0,
|
|
974
|
+
easing: s = "ease",
|
|
975
|
+
iterations: i = 1,
|
|
972
976
|
direction: d = "normal",
|
|
973
977
|
fill: l = "both"
|
|
974
978
|
} = t;
|
|
975
979
|
return this.animation && this.animation.cancel(), this.animation = this.element.animate(a, {
|
|
976
980
|
duration: r,
|
|
977
|
-
delay:
|
|
978
|
-
easing: typeof
|
|
979
|
-
iterations:
|
|
981
|
+
delay: n,
|
|
982
|
+
easing: typeof s == "string" ? s : "linear",
|
|
983
|
+
iterations: i,
|
|
980
984
|
direction: d,
|
|
981
985
|
fill: l
|
|
982
986
|
}), this.animation.finished;
|
|
@@ -1019,85 +1023,85 @@ class y {
|
|
|
1019
1023
|
return ((a = this.animation) == null ? void 0 : a.playState) === "running";
|
|
1020
1024
|
}
|
|
1021
1025
|
}
|
|
1022
|
-
function
|
|
1023
|
-
return new
|
|
1026
|
+
function $t(e) {
|
|
1027
|
+
return new v(e);
|
|
1024
1028
|
}
|
|
1025
|
-
async function
|
|
1026
|
-
const r = t.stagger ?? 0,
|
|
1029
|
+
async function St(e, a, t = {}) {
|
|
1030
|
+
const r = t.stagger ?? 0, n = {
|
|
1027
1031
|
duration: t.duration,
|
|
1028
1032
|
delay: t.delay,
|
|
1029
1033
|
easing: t.easing,
|
|
1030
1034
|
iterations: t.iterations,
|
|
1031
1035
|
direction: t.direction,
|
|
1032
1036
|
fill: t.fill
|
|
1033
|
-
},
|
|
1034
|
-
...
|
|
1035
|
-
delay: (
|
|
1037
|
+
}, s = e.map((i, d) => new v(i).animate(a, {
|
|
1038
|
+
...n,
|
|
1039
|
+
delay: (n.delay || 0) + r * d
|
|
1036
1040
|
}));
|
|
1037
|
-
return Promise.all(
|
|
1041
|
+
return Promise.all(s);
|
|
1038
1042
|
}
|
|
1039
|
-
async function
|
|
1043
|
+
async function zt(e) {
|
|
1040
1044
|
const a = [];
|
|
1041
|
-
for (const { element: t, keyframes: r, config:
|
|
1042
|
-
const
|
|
1043
|
-
a.push(
|
|
1045
|
+
for (const { element: t, keyframes: r, config: n } of e) {
|
|
1046
|
+
const i = await new v(t).animate(r, n);
|
|
1047
|
+
a.push(i);
|
|
1044
1048
|
}
|
|
1045
1049
|
return a;
|
|
1046
1050
|
}
|
|
1047
|
-
async function
|
|
1048
|
-
const a = e.map(({ element: t, keyframes: r, config:
|
|
1051
|
+
async function Dt(e) {
|
|
1052
|
+
const a = e.map(({ element: t, keyframes: r, config: n }) => new v(t).animate(r, n));
|
|
1049
1053
|
return Promise.all(a);
|
|
1050
1054
|
}
|
|
1051
|
-
const E = (e) => e, j = (e) => e * e * e, F = (e) => 1 - Math.pow(1 - e, 3), W = (e) => e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2, Q = (e) => e * e,
|
|
1055
|
+
const E = (e) => e, j = (e) => e * e * e, F = (e) => 1 - Math.pow(1 - e, 3), W = (e) => e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2, Q = (e) => e * e, Z = (e) => 1 - (1 - e) * (1 - e), J = (e) => e < 0.5 ? 2 * e * e : 1 - Math.pow(-2 * e + 2, 2) / 2, K = (e) => e * e * e * e, ee = (e) => 1 - Math.pow(1 - e, 4), ae = (e) => e < 0.5 ? 8 * e * e * e * e : 1 - Math.pow(-2 * e + 2, 4) / 2, te = (e) => e * e * e * e * e, re = (e) => 1 - Math.pow(1 - e, 5), ne = (e) => e < 0.5 ? 16 * e * e * e * e * e : 1 - Math.pow(-2 * e + 2, 5) / 2, oe = (e) => e === 0 ? 0 : Math.pow(2, 10 * e - 10), ie = (e) => e === 1 ? 1 : 1 - Math.pow(2, -10 * e), se = (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? Math.pow(2, 20 * e - 10) / 2 : (2 - Math.pow(2, -20 * e + 10)) / 2, $ = 1.70158, P = $ * 1.525, _ = $ + 1, le = (e) => _ * e * e * e - $ * e * e, de = (e) => 1 + _ * Math.pow(e - 1, 3) + $ * Math.pow(e - 1, 2), ce = (e) => e < 0.5 ? Math.pow(2 * e, 2) * ((P + 1) * 2 * e - P) / 2 : (Math.pow(2 * e - 2, 2) * ((P + 1) * (e * 2 - 2) + P) + 2) / 2, U = 2 * Math.PI / 3, G = 2 * Math.PI / 4.5, ge = (e) => e === 0 ? 0 : e === 1 ? 1 : -Math.pow(2, 10 * e - 10) * Math.sin((e * 10 - 10.75) * U), fe = (e) => e === 0 ? 0 : e === 1 ? 1 : Math.pow(2, -10 * e) * Math.sin((e * 10 - 0.75) * U) + 1, pe = (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? -(Math.pow(2, 20 * e - 10) * Math.sin((20 * e - 11.125) * G)) / 2 : Math.pow(2, -20 * e + 10) * Math.sin((20 * e - 11.125) * G) / 2 + 1, R = (e) => e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375 : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375, ue = (e) => 1 - R(1 - e), me = (e) => e < 0.5 ? (1 - R(1 - 2 * e)) / 2 : (1 + R(2 * e - 1)) / 2, be = (e) => 1 - Math.cos(e * Math.PI / 2), he = (e) => Math.sin(e * Math.PI / 2), xe = (e) => -(Math.cos(Math.PI * e) - 1) / 2, ye = (e) => 1 - Math.sqrt(1 - Math.pow(e, 2)), we = (e) => Math.sqrt(1 - Math.pow(e - 1, 2)), ve = (e) => e < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * e, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * e + 2, 2)) + 1) / 2, ke = {
|
|
1052
1056
|
linear: E,
|
|
1053
1057
|
easeInCubic: j,
|
|
1054
1058
|
easeOutCubic: F,
|
|
1055
1059
|
easeInOutCubic: W,
|
|
1056
1060
|
easeInQuad: Q,
|
|
1057
|
-
easeOutQuad:
|
|
1058
|
-
easeInOutQuad:
|
|
1059
|
-
easeInQuart:
|
|
1060
|
-
easeOutQuart:
|
|
1061
|
-
easeInOutQuart:
|
|
1062
|
-
easeInQuint:
|
|
1063
|
-
easeOutQuint:
|
|
1064
|
-
easeInOutQuint:
|
|
1065
|
-
easeInExpo:
|
|
1066
|
-
easeOutExpo:
|
|
1067
|
-
easeInOutExpo:
|
|
1068
|
-
easeInBack:
|
|
1069
|
-
easeOutBack:
|
|
1070
|
-
easeInOutBack:
|
|
1071
|
-
easeInElastic:
|
|
1072
|
-
easeOutElastic:
|
|
1061
|
+
easeOutQuad: Z,
|
|
1062
|
+
easeInOutQuad: J,
|
|
1063
|
+
easeInQuart: K,
|
|
1064
|
+
easeOutQuart: ee,
|
|
1065
|
+
easeInOutQuart: ae,
|
|
1066
|
+
easeInQuint: te,
|
|
1067
|
+
easeOutQuint: re,
|
|
1068
|
+
easeInOutQuint: ne,
|
|
1069
|
+
easeInExpo: oe,
|
|
1070
|
+
easeOutExpo: ie,
|
|
1071
|
+
easeInOutExpo: se,
|
|
1072
|
+
easeInBack: le,
|
|
1073
|
+
easeOutBack: de,
|
|
1074
|
+
easeInOutBack: ce,
|
|
1075
|
+
easeInElastic: ge,
|
|
1076
|
+
easeOutElastic: fe,
|
|
1073
1077
|
easeInOutElastic: pe,
|
|
1074
|
-
easeInBounce:
|
|
1075
|
-
easeOutBounce:
|
|
1076
|
-
easeInOutBounce:
|
|
1077
|
-
easeInSine:
|
|
1078
|
-
easeOutSine:
|
|
1079
|
-
easeInOutSine:
|
|
1080
|
-
easeInCirc:
|
|
1081
|
-
easeOutCirc:
|
|
1082
|
-
easeInOutCirc:
|
|
1078
|
+
easeInBounce: ue,
|
|
1079
|
+
easeOutBounce: R,
|
|
1080
|
+
easeInOutBounce: me,
|
|
1081
|
+
easeInSine: be,
|
|
1082
|
+
easeOutSine: he,
|
|
1083
|
+
easeInOutSine: xe,
|
|
1084
|
+
easeInCirc: ye,
|
|
1085
|
+
easeOutCirc: we,
|
|
1086
|
+
easeInOutCirc: ve
|
|
1083
1087
|
};
|
|
1084
|
-
function
|
|
1085
|
-
return typeof e == "function" ? e :
|
|
1088
|
+
function Bt(e) {
|
|
1089
|
+
return typeof e == "function" ? e : ke[e] || E;
|
|
1086
1090
|
}
|
|
1087
1091
|
function Gt(e = 100, a = 10, t = 1) {
|
|
1088
1092
|
return (r) => {
|
|
1089
|
-
const
|
|
1090
|
-
if (
|
|
1091
|
-
const
|
|
1092
|
-
return 1 - Math.exp(-
|
|
1093
|
+
const n = Math.sqrt(e / t), s = a / (2 * Math.sqrt(e * t));
|
|
1094
|
+
if (s < 1) {
|
|
1095
|
+
const i = n * Math.sqrt(1 - s * s);
|
|
1096
|
+
return 1 - Math.exp(-s * n * r) * Math.cos(i * r);
|
|
1093
1097
|
} else
|
|
1094
|
-
return 1 - Math.exp(-
|
|
1098
|
+
return 1 - Math.exp(-n * r);
|
|
1095
1099
|
};
|
|
1096
1100
|
}
|
|
1097
1101
|
function Et(e, a, t, r) {
|
|
1098
|
-
return (
|
|
1099
|
-
const
|
|
1100
|
-
return ((c) => ((d * c +
|
|
1102
|
+
return (n) => {
|
|
1103
|
+
const s = 3 * a, i = 3 * (r - a) - s, d = 1 - s - i;
|
|
1104
|
+
return ((c) => ((d * c + i) * c + s) * c)(n);
|
|
1101
1105
|
};
|
|
1102
1106
|
}
|
|
1103
1107
|
class L {
|
|
@@ -1113,20 +1117,20 @@ class L {
|
|
|
1113
1117
|
observe(a, t = {}) {
|
|
1114
1118
|
const {
|
|
1115
1119
|
threshold: r = 0.1,
|
|
1116
|
-
rootMargin:
|
|
1117
|
-
triggerOnce:
|
|
1118
|
-
onEnter:
|
|
1120
|
+
rootMargin: n = "0px",
|
|
1121
|
+
triggerOnce: s = !1,
|
|
1122
|
+
onEnter: i,
|
|
1119
1123
|
onExit: d
|
|
1120
1124
|
} = t;
|
|
1121
1125
|
this.elements.set(a, t), this.observer || (this.observer = new IntersectionObserver(
|
|
1122
1126
|
(l) => {
|
|
1123
1127
|
l.forEach((c) => {
|
|
1124
|
-
var
|
|
1128
|
+
var m, b;
|
|
1125
1129
|
const g = this.elements.get(c.target);
|
|
1126
|
-
g && (c.isIntersecting ? ((
|
|
1130
|
+
g && (c.isIntersecting ? ((m = g.onEnter) == null || m.call(g, c), g.triggerOnce && this.unobserve(c.target)) : (b = g.onExit) == null || b.call(g, c));
|
|
1127
1131
|
});
|
|
1128
1132
|
},
|
|
1129
|
-
{ threshold: r, rootMargin:
|
|
1133
|
+
{ threshold: r, rootMargin: n }
|
|
1130
1134
|
)), this.observer.observe(a);
|
|
1131
1135
|
}
|
|
1132
1136
|
/**
|
|
@@ -1142,7 +1146,7 @@ class L {
|
|
|
1142
1146
|
this.observer && (this.observer.disconnect(), this.elements.clear(), this.observer = null);
|
|
1143
1147
|
}
|
|
1144
1148
|
}
|
|
1145
|
-
function
|
|
1149
|
+
function Ie(e, a) {
|
|
1146
1150
|
const t = new L();
|
|
1147
1151
|
return t.observe(e, a), () => t.disconnect();
|
|
1148
1152
|
}
|
|
@@ -1151,20 +1155,20 @@ function _t(e, a) {
|
|
|
1151
1155
|
return e.forEach((r) => t.observe(r, a)), () => t.disconnect();
|
|
1152
1156
|
}
|
|
1153
1157
|
function Ut(e, a, t = {}) {
|
|
1154
|
-
return
|
|
1158
|
+
return Ie(e, {
|
|
1155
1159
|
...t,
|
|
1156
1160
|
onEnter: a
|
|
1157
1161
|
});
|
|
1158
1162
|
}
|
|
1159
1163
|
function Lt(e) {
|
|
1160
|
-
const a = e.getBoundingClientRect(), t = window.innerHeight, r = a.top,
|
|
1161
|
-
return Math.max(0, Math.min(1,
|
|
1164
|
+
const a = e.getBoundingClientRect(), t = window.innerHeight, r = a.top, n = a.height, s = 1 - (r + n) / (t + n);
|
|
1165
|
+
return Math.max(0, Math.min(1, s));
|
|
1162
1166
|
}
|
|
1163
1167
|
function At(e, a = 0) {
|
|
1164
|
-
const t = e.getBoundingClientRect(), r = window.innerHeight,
|
|
1165
|
-
return
|
|
1168
|
+
const t = e.getBoundingClientRect(), r = window.innerHeight, n = window.innerWidth, s = t.top + t.height * a <= r && t.bottom - t.height * a >= 0, i = t.left + t.width * a <= n && t.right - t.width * a >= 0;
|
|
1169
|
+
return s && i;
|
|
1166
1170
|
}
|
|
1167
|
-
const
|
|
1171
|
+
const Ne = {
|
|
1168
1172
|
keyframes: [
|
|
1169
1173
|
{ opacity: 0 },
|
|
1170
1174
|
{ opacity: 1 }
|
|
@@ -1174,7 +1178,7 @@ const Ie = {
|
|
|
1174
1178
|
easing: "ease-out",
|
|
1175
1179
|
fill: "both"
|
|
1176
1180
|
}
|
|
1177
|
-
},
|
|
1181
|
+
}, Oe = {
|
|
1178
1182
|
keyframes: [
|
|
1179
1183
|
{
|
|
1180
1184
|
opacity: 0,
|
|
@@ -1206,7 +1210,7 @@ const Ie = {
|
|
|
1206
1210
|
easing: "ease-out",
|
|
1207
1211
|
fill: "both"
|
|
1208
1212
|
}
|
|
1209
|
-
},
|
|
1213
|
+
}, Ce = {
|
|
1210
1214
|
keyframes: [
|
|
1211
1215
|
{
|
|
1212
1216
|
opacity: 0,
|
|
@@ -1222,7 +1226,7 @@ const Ie = {
|
|
|
1222
1226
|
easing: "ease-out",
|
|
1223
1227
|
fill: "both"
|
|
1224
1228
|
}
|
|
1225
|
-
},
|
|
1229
|
+
}, Ye = {
|
|
1226
1230
|
keyframes: [
|
|
1227
1231
|
{
|
|
1228
1232
|
opacity: 0,
|
|
@@ -1238,7 +1242,7 @@ const Ie = {
|
|
|
1238
1242
|
easing: "ease-out",
|
|
1239
1243
|
fill: "both"
|
|
1240
1244
|
}
|
|
1241
|
-
},
|
|
1245
|
+
}, Xe = {
|
|
1242
1246
|
keyframes: [
|
|
1243
1247
|
{ opacity: 1 },
|
|
1244
1248
|
{ opacity: 0 }
|
|
@@ -1248,7 +1252,7 @@ const Ie = {
|
|
|
1248
1252
|
easing: "ease-in",
|
|
1249
1253
|
fill: "both"
|
|
1250
1254
|
}
|
|
1251
|
-
},
|
|
1255
|
+
}, Pe = {
|
|
1252
1256
|
keyframes: [
|
|
1253
1257
|
{
|
|
1254
1258
|
opacity: 1,
|
|
@@ -1264,7 +1268,7 @@ const Ie = {
|
|
|
1264
1268
|
easing: "ease-in",
|
|
1265
1269
|
fill: "both"
|
|
1266
1270
|
}
|
|
1267
|
-
},
|
|
1271
|
+
}, Re = {
|
|
1268
1272
|
keyframes: [
|
|
1269
1273
|
{
|
|
1270
1274
|
opacity: 1,
|
|
@@ -1280,7 +1284,7 @@ const Ie = {
|
|
|
1280
1284
|
easing: "ease-in",
|
|
1281
1285
|
fill: "both"
|
|
1282
1286
|
}
|
|
1283
|
-
},
|
|
1287
|
+
}, $e = {
|
|
1284
1288
|
keyframes: [
|
|
1285
1289
|
{
|
|
1286
1290
|
opacity: 1,
|
|
@@ -1328,7 +1332,7 @@ const Ie = {
|
|
|
1328
1332
|
easing: "ease-out",
|
|
1329
1333
|
fill: "both"
|
|
1330
1334
|
}
|
|
1331
|
-
},
|
|
1335
|
+
}, De = {
|
|
1332
1336
|
keyframes: [
|
|
1333
1337
|
{
|
|
1334
1338
|
opacity: 0,
|
|
@@ -1344,7 +1348,7 @@ const Ie = {
|
|
|
1344
1348
|
easing: "ease-out",
|
|
1345
1349
|
fill: "both"
|
|
1346
1350
|
}
|
|
1347
|
-
},
|
|
1351
|
+
}, Be = {
|
|
1348
1352
|
keyframes: [
|
|
1349
1353
|
{
|
|
1350
1354
|
opacity: 0,
|
|
@@ -1360,7 +1364,7 @@ const Ie = {
|
|
|
1360
1364
|
easing: "ease-out",
|
|
1361
1365
|
fill: "both"
|
|
1362
1366
|
}
|
|
1363
|
-
},
|
|
1367
|
+
}, Ge = {
|
|
1364
1368
|
keyframes: [
|
|
1365
1369
|
{
|
|
1366
1370
|
opacity: 0,
|
|
@@ -1376,7 +1380,7 @@ const Ie = {
|
|
|
1376
1380
|
easing: "ease-out",
|
|
1377
1381
|
fill: "both"
|
|
1378
1382
|
}
|
|
1379
|
-
},
|
|
1383
|
+
}, Ee = {
|
|
1380
1384
|
keyframes: [
|
|
1381
1385
|
{
|
|
1382
1386
|
opacity: 1,
|
|
@@ -1392,7 +1396,7 @@ const Ie = {
|
|
|
1392
1396
|
easing: "ease-in",
|
|
1393
1397
|
fill: "both"
|
|
1394
1398
|
}
|
|
1395
|
-
},
|
|
1399
|
+
}, _e = {
|
|
1396
1400
|
keyframes: [
|
|
1397
1401
|
{
|
|
1398
1402
|
opacity: 1,
|
|
@@ -1408,7 +1412,7 @@ const Ie = {
|
|
|
1408
1412
|
easing: "ease-in",
|
|
1409
1413
|
fill: "both"
|
|
1410
1414
|
}
|
|
1411
|
-
},
|
|
1415
|
+
}, Ue = {
|
|
1412
1416
|
keyframes: [
|
|
1413
1417
|
{
|
|
1414
1418
|
opacity: 1,
|
|
@@ -1424,7 +1428,7 @@ const Ie = {
|
|
|
1424
1428
|
easing: "ease-in",
|
|
1425
1429
|
fill: "both"
|
|
1426
1430
|
}
|
|
1427
|
-
},
|
|
1431
|
+
}, Le = {
|
|
1428
1432
|
keyframes: [
|
|
1429
1433
|
{
|
|
1430
1434
|
opacity: 1,
|
|
@@ -1440,7 +1444,7 @@ const Ie = {
|
|
|
1440
1444
|
easing: "ease-in",
|
|
1441
1445
|
fill: "both"
|
|
1442
1446
|
}
|
|
1443
|
-
},
|
|
1447
|
+
}, Ae = {
|
|
1444
1448
|
keyframes: [
|
|
1445
1449
|
{
|
|
1446
1450
|
opacity: 0,
|
|
@@ -1456,7 +1460,7 @@ const Ie = {
|
|
|
1456
1460
|
easing: "ease-out",
|
|
1457
1461
|
fill: "both"
|
|
1458
1462
|
}
|
|
1459
|
-
},
|
|
1463
|
+
}, Te = {
|
|
1460
1464
|
keyframes: [
|
|
1461
1465
|
{
|
|
1462
1466
|
opacity: 0,
|
|
@@ -1472,7 +1476,7 @@ const Ie = {
|
|
|
1472
1476
|
easing: "ease-out",
|
|
1473
1477
|
fill: "both"
|
|
1474
1478
|
}
|
|
1475
|
-
},
|
|
1479
|
+
}, Ve = {
|
|
1476
1480
|
keyframes: [
|
|
1477
1481
|
{
|
|
1478
1482
|
opacity: 0,
|
|
@@ -1584,7 +1588,7 @@ const Ie = {
|
|
|
1584
1588
|
easing: "ease-out",
|
|
1585
1589
|
fill: "both"
|
|
1586
1590
|
}
|
|
1587
|
-
},
|
|
1591
|
+
}, Ze = {
|
|
1588
1592
|
keyframes: [
|
|
1589
1593
|
{
|
|
1590
1594
|
opacity: 0,
|
|
@@ -1606,7 +1610,7 @@ const Ie = {
|
|
|
1606
1610
|
easing: "ease-out",
|
|
1607
1611
|
fill: "both"
|
|
1608
1612
|
}
|
|
1609
|
-
},
|
|
1613
|
+
}, Je = {
|
|
1610
1614
|
keyframes: [
|
|
1611
1615
|
{
|
|
1612
1616
|
opacity: 0,
|
|
@@ -1622,7 +1626,7 @@ const Ie = {
|
|
|
1622
1626
|
easing: "ease-out",
|
|
1623
1627
|
fill: "both"
|
|
1624
1628
|
}
|
|
1625
|
-
},
|
|
1629
|
+
}, Ke = {
|
|
1626
1630
|
keyframes: [
|
|
1627
1631
|
{
|
|
1628
1632
|
opacity: 0,
|
|
@@ -1640,7 +1644,7 @@ const Ie = {
|
|
|
1640
1644
|
easing: "ease-out",
|
|
1641
1645
|
fill: "both"
|
|
1642
1646
|
}
|
|
1643
|
-
},
|
|
1647
|
+
}, ea = {
|
|
1644
1648
|
keyframes: [
|
|
1645
1649
|
{
|
|
1646
1650
|
opacity: 0,
|
|
@@ -1658,7 +1662,7 @@ const Ie = {
|
|
|
1658
1662
|
easing: "ease-out",
|
|
1659
1663
|
fill: "both"
|
|
1660
1664
|
}
|
|
1661
|
-
},
|
|
1665
|
+
}, aa = {
|
|
1662
1666
|
keyframes: [
|
|
1663
1667
|
{
|
|
1664
1668
|
opacity: 0,
|
|
@@ -1676,7 +1680,7 @@ const Ie = {
|
|
|
1676
1680
|
easing: "ease-out",
|
|
1677
1681
|
fill: "both"
|
|
1678
1682
|
}
|
|
1679
|
-
},
|
|
1683
|
+
}, ta = {
|
|
1680
1684
|
keyframes: [
|
|
1681
1685
|
{
|
|
1682
1686
|
opacity: 0,
|
|
@@ -1694,7 +1698,7 @@ const Ie = {
|
|
|
1694
1698
|
easing: "ease-out",
|
|
1695
1699
|
fill: "both"
|
|
1696
1700
|
}
|
|
1697
|
-
},
|
|
1701
|
+
}, ra = {
|
|
1698
1702
|
keyframes: [
|
|
1699
1703
|
{
|
|
1700
1704
|
opacity: 1,
|
|
@@ -1710,7 +1714,7 @@ const Ie = {
|
|
|
1710
1714
|
easing: "ease-in",
|
|
1711
1715
|
fill: "both"
|
|
1712
1716
|
}
|
|
1713
|
-
},
|
|
1717
|
+
}, na = {
|
|
1714
1718
|
keyframes: [
|
|
1715
1719
|
{ transform: "rotate(0deg)" },
|
|
1716
1720
|
{ transform: "rotate(360deg)" }
|
|
@@ -1721,7 +1725,7 @@ const Ie = {
|
|
|
1721
1725
|
iterations: 1 / 0,
|
|
1722
1726
|
fill: "both"
|
|
1723
1727
|
}
|
|
1724
|
-
},
|
|
1728
|
+
}, oa = {
|
|
1725
1729
|
keyframes: [
|
|
1726
1730
|
{ transform: "rotate(360deg)" },
|
|
1727
1731
|
{ transform: "rotate(0deg)" }
|
|
@@ -1732,7 +1736,7 @@ const Ie = {
|
|
|
1732
1736
|
iterations: 1 / 0,
|
|
1733
1737
|
fill: "both"
|
|
1734
1738
|
}
|
|
1735
|
-
},
|
|
1739
|
+
}, ia = {
|
|
1736
1740
|
keyframes: [
|
|
1737
1741
|
{ transform: "rotate(0deg)" },
|
|
1738
1742
|
{ transform: "rotate(360deg)" }
|
|
@@ -1743,7 +1747,7 @@ const Ie = {
|
|
|
1743
1747
|
iterations: 1 / 0,
|
|
1744
1748
|
fill: "both"
|
|
1745
1749
|
}
|
|
1746
|
-
},
|
|
1750
|
+
}, sa = {
|
|
1747
1751
|
keyframes: [
|
|
1748
1752
|
{ transform: "rotate(0deg)" },
|
|
1749
1753
|
{ transform: "rotate(360deg)" }
|
|
@@ -1754,7 +1758,7 @@ const Ie = {
|
|
|
1754
1758
|
iterations: 1 / 0,
|
|
1755
1759
|
fill: "both"
|
|
1756
1760
|
}
|
|
1757
|
-
},
|
|
1761
|
+
}, la = {
|
|
1758
1762
|
keyframes: [
|
|
1759
1763
|
{
|
|
1760
1764
|
opacity: 0,
|
|
@@ -1776,7 +1780,7 @@ const Ie = {
|
|
|
1776
1780
|
easing: "ease-out",
|
|
1777
1781
|
fill: "both"
|
|
1778
1782
|
}
|
|
1779
|
-
},
|
|
1783
|
+
}, da = {
|
|
1780
1784
|
keyframes: [
|
|
1781
1785
|
{
|
|
1782
1786
|
opacity: 0,
|
|
@@ -1798,7 +1802,7 @@ const Ie = {
|
|
|
1798
1802
|
easing: "ease-out",
|
|
1799
1803
|
fill: "both"
|
|
1800
1804
|
}
|
|
1801
|
-
},
|
|
1805
|
+
}, ca = {
|
|
1802
1806
|
keyframes: [
|
|
1803
1807
|
{
|
|
1804
1808
|
opacity: 0,
|
|
@@ -1820,7 +1824,7 @@ const Ie = {
|
|
|
1820
1824
|
easing: "ease-out",
|
|
1821
1825
|
fill: "both"
|
|
1822
1826
|
}
|
|
1823
|
-
},
|
|
1827
|
+
}, ga = {
|
|
1824
1828
|
keyframes: [
|
|
1825
1829
|
{
|
|
1826
1830
|
opacity: 0,
|
|
@@ -1842,7 +1846,7 @@ const Ie = {
|
|
|
1842
1846
|
easing: "ease-out",
|
|
1843
1847
|
fill: "both"
|
|
1844
1848
|
}
|
|
1845
|
-
},
|
|
1849
|
+
}, fa = {
|
|
1846
1850
|
keyframes: [
|
|
1847
1851
|
{
|
|
1848
1852
|
opacity: 0,
|
|
@@ -1886,7 +1890,7 @@ const Ie = {
|
|
|
1886
1890
|
easing: "ease-in",
|
|
1887
1891
|
fill: "both"
|
|
1888
1892
|
}
|
|
1889
|
-
},
|
|
1893
|
+
}, ua = {
|
|
1890
1894
|
keyframes: [
|
|
1891
1895
|
{ transform: "translateY(0)" },
|
|
1892
1896
|
{ transform: "translateY(-30px)" },
|
|
@@ -1897,7 +1901,7 @@ const Ie = {
|
|
|
1897
1901
|
easing: "ease-out",
|
|
1898
1902
|
fill: "both"
|
|
1899
1903
|
}
|
|
1900
|
-
},
|
|
1904
|
+
}, ma = {
|
|
1901
1905
|
keyframes: [
|
|
1902
1906
|
{ transform: "translateY(0)", offset: 0 },
|
|
1903
1907
|
{ transform: "translateY(-20px)", offset: 0.4 },
|
|
@@ -1911,7 +1915,7 @@ const Ie = {
|
|
|
1911
1915
|
iterations: 1 / 0,
|
|
1912
1916
|
fill: "both"
|
|
1913
1917
|
}
|
|
1914
|
-
},
|
|
1918
|
+
}, ba = {
|
|
1915
1919
|
keyframes: [
|
|
1916
1920
|
{ transform: "translateX(0)" },
|
|
1917
1921
|
{ transform: "translateX(-10px)" },
|
|
@@ -1925,7 +1929,7 @@ const Ie = {
|
|
|
1925
1929
|
easing: "ease-in-out",
|
|
1926
1930
|
fill: "both"
|
|
1927
1931
|
}
|
|
1928
|
-
},
|
|
1932
|
+
}, ha = {
|
|
1929
1933
|
keyframes: [
|
|
1930
1934
|
{ transform: "translateY(0)" },
|
|
1931
1935
|
{ transform: "translateY(-10px)" },
|
|
@@ -1939,7 +1943,7 @@ const Ie = {
|
|
|
1939
1943
|
easing: "ease-in-out",
|
|
1940
1944
|
fill: "both"
|
|
1941
1945
|
}
|
|
1942
|
-
},
|
|
1946
|
+
}, xa = {
|
|
1943
1947
|
keyframes: [
|
|
1944
1948
|
{ transform: "scale(1)" },
|
|
1945
1949
|
{ transform: "scale(1.05)" },
|
|
@@ -1950,7 +1954,7 @@ const Ie = {
|
|
|
1950
1954
|
easing: "ease-in-out",
|
|
1951
1955
|
fill: "both"
|
|
1952
1956
|
}
|
|
1953
|
-
},
|
|
1957
|
+
}, ya = {
|
|
1954
1958
|
keyframes: [
|
|
1955
1959
|
{ transform: "scale(1)" },
|
|
1956
1960
|
{ transform: "scale(1.05)" },
|
|
@@ -1962,7 +1966,7 @@ const Ie = {
|
|
|
1962
1966
|
iterations: 1 / 0,
|
|
1963
1967
|
fill: "both"
|
|
1964
1968
|
}
|
|
1965
|
-
},
|
|
1969
|
+
}, wa = {
|
|
1966
1970
|
keyframes: [
|
|
1967
1971
|
{ transform: "scale(1)" },
|
|
1968
1972
|
{ transform: "scale(1.3)" },
|
|
@@ -1975,7 +1979,7 @@ const Ie = {
|
|
|
1975
1979
|
easing: "ease-in-out",
|
|
1976
1980
|
fill: "both"
|
|
1977
1981
|
}
|
|
1978
|
-
},
|
|
1982
|
+
}, va = {
|
|
1979
1983
|
keyframes: [
|
|
1980
1984
|
{ opacity: 1 },
|
|
1981
1985
|
{ opacity: 0 },
|
|
@@ -1988,7 +1992,7 @@ const Ie = {
|
|
|
1988
1992
|
easing: "linear",
|
|
1989
1993
|
fill: "both"
|
|
1990
1994
|
}
|
|
1991
|
-
},
|
|
1995
|
+
}, ka = {
|
|
1992
1996
|
keyframes: [
|
|
1993
1997
|
{ transform: "scaleX(1) scaleY(1)" },
|
|
1994
1998
|
{ transform: "scaleX(1.25) scaleY(0.75)" },
|
|
@@ -2002,7 +2006,7 @@ const Ie = {
|
|
|
2002
2006
|
easing: "ease-in-out",
|
|
2003
2007
|
fill: "both"
|
|
2004
2008
|
}
|
|
2005
|
-
},
|
|
2009
|
+
}, Ia = {
|
|
2006
2010
|
keyframes: [
|
|
2007
2011
|
{ transform: "skewX(0deg) skewY(0deg)" },
|
|
2008
2012
|
{ transform: "skewX(-12.5deg) skewY(-12.5deg)" },
|
|
@@ -2016,7 +2020,7 @@ const Ie = {
|
|
|
2016
2020
|
easing: "ease-in-out",
|
|
2017
2021
|
fill: "both"
|
|
2018
2022
|
}
|
|
2019
|
-
},
|
|
2023
|
+
}, Na = {
|
|
2020
2024
|
keyframes: [
|
|
2021
2025
|
{ transform: "rotate(0deg)", transformOrigin: "top center" },
|
|
2022
2026
|
{ transform: "rotate(15deg)", transformOrigin: "top center" },
|
|
@@ -2030,7 +2034,7 @@ const Ie = {
|
|
|
2030
2034
|
easing: "ease-in-out",
|
|
2031
2035
|
fill: "both"
|
|
2032
2036
|
}
|
|
2033
|
-
},
|
|
2037
|
+
}, Oa = {
|
|
2034
2038
|
keyframes: [
|
|
2035
2039
|
{ transform: "translateX(0%) rotate(0deg)" },
|
|
2036
2040
|
{ transform: "translateX(-25%) rotate(-5deg)" },
|
|
@@ -2063,14 +2067,14 @@ const Ie = {
|
|
|
2063
2067
|
easing: "ease-in-out",
|
|
2064
2068
|
fill: "both"
|
|
2065
2069
|
}
|
|
2066
|
-
},
|
|
2070
|
+
}, Ca = {
|
|
2067
2071
|
keyframes: [
|
|
2068
2072
|
{ width: "0", opacity: 0 },
|
|
2069
2073
|
{ width: "0", opacity: 1, offset: 0.01 },
|
|
2070
2074
|
{ width: "100%", opacity: 1 }
|
|
2071
2075
|
],
|
|
2072
2076
|
config: { duration: 2e3, easing: "steps(40, end)" }
|
|
2073
|
-
},
|
|
2077
|
+
}, Ya = {
|
|
2074
2078
|
keyframes: [
|
|
2075
2079
|
{ transform: "translate(0)", offset: 0 },
|
|
2076
2080
|
{ transform: "translate(-2px, 2px)", offset: 0.2 },
|
|
@@ -2080,27 +2084,27 @@ const Ie = {
|
|
|
2080
2084
|
{ transform: "translate(0)", offset: 1 }
|
|
2081
2085
|
],
|
|
2082
2086
|
config: { duration: 500, easing: "linear" }
|
|
2083
|
-
},
|
|
2087
|
+
}, Xa = {
|
|
2084
2088
|
keyframes: [
|
|
2085
2089
|
{ transform: "translateY(0)", offset: 0 },
|
|
2086
2090
|
{ transform: "translateY(-10px)", offset: 0.5 },
|
|
2087
2091
|
{ transform: "translateY(0)", offset: 1 }
|
|
2088
2092
|
],
|
|
2089
2093
|
config: { duration: 600, easing: "ease-in-out" }
|
|
2090
|
-
},
|
|
2094
|
+
}, Pa = {
|
|
2091
2095
|
keyframes: [
|
|
2092
2096
|
{ filter: "blur(12px)", opacity: 0 },
|
|
2093
2097
|
{ filter: "blur(0)", opacity: 1 }
|
|
2094
2098
|
],
|
|
2095
2099
|
config: { duration: 800, easing: "ease-out" }
|
|
2096
|
-
},
|
|
2100
|
+
}, Ra = {
|
|
2097
2101
|
keyframes: [
|
|
2098
2102
|
{ letterSpacing: "-0.5em", opacity: 0 },
|
|
2099
2103
|
{ letterSpacing: "-0.5em", opacity: 0.6, offset: 0.4 },
|
|
2100
2104
|
{ letterSpacing: "normal", opacity: 1 }
|
|
2101
2105
|
],
|
|
2102
2106
|
config: { duration: 700, easing: "cubic-bezier(0.215, 0.610, 0.355, 1.000)" }
|
|
2103
|
-
},
|
|
2107
|
+
}, $a = {
|
|
2104
2108
|
keyframes: [
|
|
2105
2109
|
{ letterSpacing: "normal", opacity: 1 },
|
|
2106
2110
|
{ letterSpacing: "0em", opacity: 0.6, offset: 0.5 },
|
|
@@ -2119,7 +2123,7 @@ const Ie = {
|
|
|
2119
2123
|
{ textShadow: "1px 1px #555, 2px 2px #555, 3px 3px #555, 4px 4px #555" }
|
|
2120
2124
|
],
|
|
2121
2125
|
config: { duration: 600, easing: "ease-out" }
|
|
2122
|
-
},
|
|
2126
|
+
}, Da = {
|
|
2123
2127
|
keyframes: [
|
|
2124
2128
|
{ opacity: 1, offset: 0 },
|
|
2125
2129
|
{ opacity: 1, offset: 0.4199 },
|
|
@@ -2133,25 +2137,25 @@ const Ie = {
|
|
|
2133
2137
|
{ opacity: 1, offset: 1 }
|
|
2134
2138
|
],
|
|
2135
2139
|
config: { duration: 1e3, easing: "linear" }
|
|
2136
|
-
},
|
|
2140
|
+
}, Ba = {
|
|
2137
2141
|
keyframes: [
|
|
2138
2142
|
{ transform: "scale(0)", transformOrigin: "50% 50%", opacity: 0 },
|
|
2139
2143
|
{ transform: "scale(1)", transformOrigin: "50% 50%", opacity: 1 }
|
|
2140
2144
|
],
|
|
2141
2145
|
config: { duration: 500, easing: "cubic-bezier(0.250, 0.460, 0.450, 0.940)" }
|
|
2142
|
-
},
|
|
2146
|
+
}, Ga = {
|
|
2143
2147
|
keyframes: [
|
|
2144
2148
|
{ transform: "rotate(-360deg)", opacity: 0 },
|
|
2145
2149
|
{ transform: "rotate(0)", opacity: 1 }
|
|
2146
2150
|
],
|
|
2147
2151
|
config: { duration: 600, easing: "ease-out" }
|
|
2148
|
-
},
|
|
2152
|
+
}, Ea = {
|
|
2149
2153
|
keyframes: [
|
|
2150
2154
|
{ transform: "scale(0.5)", opacity: 0 },
|
|
2151
2155
|
{ transform: "scale(1)", opacity: 1 }
|
|
2152
2156
|
],
|
|
2153
2157
|
config: { duration: 400, easing: "cubic-bezier(0.390, 0.575, 0.565, 1.000)" }
|
|
2154
|
-
},
|
|
2158
|
+
}, _a = {
|
|
2155
2159
|
keyframes: [
|
|
2156
2160
|
{ transform: "translateX(0) rotate(0)", offset: 0 },
|
|
2157
2161
|
{ transform: "translateX(-25px) rotate(-5deg)", offset: 0.15 },
|
|
@@ -2162,7 +2166,7 @@ const Ie = {
|
|
|
2162
2166
|
{ transform: "translateX(0) rotate(0)", offset: 1 }
|
|
2163
2167
|
],
|
|
2164
2168
|
config: { duration: 1e3, easing: "ease-in-out" }
|
|
2165
|
-
},
|
|
2169
|
+
}, Ua = {
|
|
2166
2170
|
keyframes: [
|
|
2167
2171
|
{
|
|
2168
2172
|
transform: "rotateX(-100deg)",
|
|
@@ -2176,7 +2180,7 @@ const Ie = {
|
|
|
2176
2180
|
}
|
|
2177
2181
|
],
|
|
2178
2182
|
config: { duration: 600, easing: "cubic-bezier(0.175, 0.885, 0.320, 1.275)" }
|
|
2179
|
-
},
|
|
2183
|
+
}, La = {
|
|
2180
2184
|
keyframes: [
|
|
2181
2185
|
{
|
|
2182
2186
|
transform: "translateX(-1000px) scaleX(2.5) scaleY(0.2)",
|
|
@@ -2190,7 +2194,7 @@ const Ie = {
|
|
|
2190
2194
|
}
|
|
2191
2195
|
],
|
|
2192
2196
|
config: { duration: 800, easing: "cubic-bezier(0.230, 1.000, 0.320, 1.000)" }
|
|
2193
|
-
},
|
|
2197
|
+
}, Aa = {
|
|
2194
2198
|
keyframes: [
|
|
2195
2199
|
{
|
|
2196
2200
|
transform: "scale(1) translateX(0) translateY(0)"
|
|
@@ -2202,93 +2206,93 @@ const Ie = {
|
|
|
2202
2206
|
config: { duration: 5e3, easing: "ease-out" }
|
|
2203
2207
|
}, I = {
|
|
2204
2208
|
// Fade (10)
|
|
2205
|
-
fadeIn:
|
|
2206
|
-
fadeInUp:
|
|
2209
|
+
fadeIn: Ne,
|
|
2210
|
+
fadeInUp: Oe,
|
|
2207
2211
|
fadeInDown: Me,
|
|
2208
|
-
fadeInLeft:
|
|
2209
|
-
fadeInRight:
|
|
2210
|
-
fadeOut:
|
|
2211
|
-
fadeOutUp:
|
|
2212
|
-
fadeOutDown:
|
|
2213
|
-
fadeOutLeft:
|
|
2212
|
+
fadeInLeft: Ce,
|
|
2213
|
+
fadeInRight: Ye,
|
|
2214
|
+
fadeOut: Xe,
|
|
2215
|
+
fadeOutUp: Pe,
|
|
2216
|
+
fadeOutDown: Re,
|
|
2217
|
+
fadeOutLeft: $e,
|
|
2214
2218
|
fadeOutRight: Se,
|
|
2215
2219
|
// Slide (8)
|
|
2216
2220
|
slideInUp: ze,
|
|
2217
|
-
slideInDown:
|
|
2218
|
-
slideInLeft:
|
|
2219
|
-
slideInRight:
|
|
2220
|
-
slideOutUp:
|
|
2221
|
-
slideOutDown:
|
|
2222
|
-
slideOutLeft:
|
|
2223
|
-
slideOutRight:
|
|
2221
|
+
slideInDown: De,
|
|
2222
|
+
slideInLeft: Be,
|
|
2223
|
+
slideInRight: Ge,
|
|
2224
|
+
slideOutUp: Ee,
|
|
2225
|
+
slideOutDown: _e,
|
|
2226
|
+
slideOutLeft: Ue,
|
|
2227
|
+
slideOutRight: Le,
|
|
2224
2228
|
// Zoom (10)
|
|
2225
|
-
zoomIn:
|
|
2226
|
-
zoomInUp:
|
|
2227
|
-
zoomInDown:
|
|
2229
|
+
zoomIn: Ae,
|
|
2230
|
+
zoomInUp: Te,
|
|
2231
|
+
zoomInDown: Ve,
|
|
2228
2232
|
zoomInLeft: qe,
|
|
2229
2233
|
zoomInRight: He,
|
|
2230
2234
|
zoomOut: je,
|
|
2231
2235
|
zoomOutUp: Fe,
|
|
2232
2236
|
zoomOutDown: We,
|
|
2233
2237
|
zoomInBig: Qe,
|
|
2234
|
-
zoomInBounce:
|
|
2238
|
+
zoomInBounce: Ze,
|
|
2235
2239
|
// Rotate (10)
|
|
2236
|
-
rotateIn:
|
|
2237
|
-
rotateInUpLeft:
|
|
2238
|
-
rotateInUpRight:
|
|
2239
|
-
rotateInDownLeft:
|
|
2240
|
-
rotateInDownRight:
|
|
2241
|
-
rotateOut:
|
|
2242
|
-
spin:
|
|
2243
|
-
spinReverse:
|
|
2244
|
-
spinSlow:
|
|
2245
|
-
spinFast:
|
|
2240
|
+
rotateIn: Je,
|
|
2241
|
+
rotateInUpLeft: Ke,
|
|
2242
|
+
rotateInUpRight: ea,
|
|
2243
|
+
rotateInDownLeft: aa,
|
|
2244
|
+
rotateInDownRight: ta,
|
|
2245
|
+
rotateOut: ra,
|
|
2246
|
+
spin: na,
|
|
2247
|
+
spinReverse: oa,
|
|
2248
|
+
spinSlow: ia,
|
|
2249
|
+
spinFast: sa,
|
|
2246
2250
|
// Bounce (8)
|
|
2247
|
-
bounceIn:
|
|
2248
|
-
bounceInUp:
|
|
2249
|
-
bounceInDown:
|
|
2250
|
-
bounceInLeft:
|
|
2251
|
-
bounceInRight:
|
|
2251
|
+
bounceIn: la,
|
|
2252
|
+
bounceInUp: da,
|
|
2253
|
+
bounceInDown: ca,
|
|
2254
|
+
bounceInLeft: ga,
|
|
2255
|
+
bounceInRight: fa,
|
|
2252
2256
|
bounceOut: pa,
|
|
2253
|
-
bounce:
|
|
2254
|
-
bounceLoop:
|
|
2257
|
+
bounce: ua,
|
|
2258
|
+
bounceLoop: ma,
|
|
2255
2259
|
// Attention (11)
|
|
2256
|
-
shake:
|
|
2257
|
-
shakeY:
|
|
2258
|
-
pulse:
|
|
2259
|
-
pulseLoop:
|
|
2260
|
-
heartbeat:
|
|
2261
|
-
flash:
|
|
2262
|
-
rubberBand:
|
|
2263
|
-
jello:
|
|
2264
|
-
swing:
|
|
2265
|
-
wobble:
|
|
2260
|
+
shake: ba,
|
|
2261
|
+
shakeY: ha,
|
|
2262
|
+
pulse: xa,
|
|
2263
|
+
pulseLoop: ya,
|
|
2264
|
+
heartbeat: wa,
|
|
2265
|
+
flash: va,
|
|
2266
|
+
rubberBand: ka,
|
|
2267
|
+
jello: Ia,
|
|
2268
|
+
swing: Na,
|
|
2269
|
+
wobble: Oa,
|
|
2266
2270
|
tada: Ma,
|
|
2267
2271
|
// ✅ Text (16) - NEW!
|
|
2268
|
-
typing:
|
|
2269
|
-
glitch:
|
|
2270
|
-
waveText:
|
|
2271
|
-
blurIn:
|
|
2272
|
-
trackingInExpand:
|
|
2273
|
-
trackingOutContract:
|
|
2272
|
+
typing: Ca,
|
|
2273
|
+
glitch: Ya,
|
|
2274
|
+
waveText: Xa,
|
|
2275
|
+
blurIn: Pa,
|
|
2276
|
+
trackingInExpand: Ra,
|
|
2277
|
+
trackingOutContract: $a,
|
|
2274
2278
|
focusIn: Sa,
|
|
2275
2279
|
textShadowPop: za,
|
|
2276
|
-
flicker:
|
|
2277
|
-
textPopUp:
|
|
2278
|
-
textRotateIn:
|
|
2279
|
-
textScaleUp:
|
|
2280
|
-
textWobble:
|
|
2281
|
-
swingInTop:
|
|
2282
|
-
slideInBlurred:
|
|
2283
|
-
kenburns:
|
|
2280
|
+
flicker: Da,
|
|
2281
|
+
textPopUp: Ba,
|
|
2282
|
+
textRotateIn: Ga,
|
|
2283
|
+
textScaleUp: Ea,
|
|
2284
|
+
textWobble: _a,
|
|
2285
|
+
swingInTop: Ua,
|
|
2286
|
+
slideInBlurred: La,
|
|
2287
|
+
kenburns: Aa
|
|
2284
2288
|
};
|
|
2285
2289
|
function Tt(e) {
|
|
2286
2290
|
return I[e];
|
|
2287
2291
|
}
|
|
2288
|
-
function
|
|
2292
|
+
function Ta() {
|
|
2289
2293
|
return Object.keys(I);
|
|
2290
2294
|
}
|
|
2291
|
-
function
|
|
2295
|
+
function Vt(e) {
|
|
2292
2296
|
return e === "text" ? [
|
|
2293
2297
|
"typing",
|
|
2294
2298
|
"glitch",
|
|
@@ -2306,200 +2310,300 @@ function qt(e) {
|
|
|
2306
2310
|
"swingInTop",
|
|
2307
2311
|
"slideInBlurred",
|
|
2308
2312
|
"kenburns"
|
|
2309
|
-
] :
|
|
2313
|
+
] : Ta().filter((a) => a.startsWith(e));
|
|
2310
2314
|
}
|
|
2311
|
-
const
|
|
2315
|
+
const Va = ({
|
|
2312
2316
|
children: e,
|
|
2313
2317
|
preset: a = "fadeIn",
|
|
2314
2318
|
duration: t,
|
|
2315
2319
|
delay: r,
|
|
2316
|
-
easing:
|
|
2317
|
-
iterations:
|
|
2318
|
-
trigger:
|
|
2320
|
+
easing: n,
|
|
2321
|
+
iterations: s,
|
|
2322
|
+
trigger: i = "mount",
|
|
2319
2323
|
threshold: d = 0.1,
|
|
2320
2324
|
triggerOnce: l = !0,
|
|
2321
2325
|
onAnimationStart: c,
|
|
2322
2326
|
onAnimationEnd: g,
|
|
2323
|
-
className:
|
|
2324
|
-
style:
|
|
2327
|
+
className: m = "",
|
|
2328
|
+
style: b = {}
|
|
2325
2329
|
}) => {
|
|
2326
|
-
const
|
|
2327
|
-
var S, z,
|
|
2328
|
-
if (!
|
|
2329
|
-
const
|
|
2330
|
-
if (!
|
|
2330
|
+
const f = p(null), w = p(null), h = p(null), N = p(!1), k = async () => {
|
|
2331
|
+
var S, z, D, B;
|
|
2332
|
+
if (!f.current || l && N.current) return;
|
|
2333
|
+
const x = I[a];
|
|
2334
|
+
if (!x) {
|
|
2331
2335
|
console.warn(`[TeleMotion] Preset "${a}" not found`);
|
|
2332
2336
|
return;
|
|
2333
2337
|
}
|
|
2334
|
-
|
|
2335
|
-
const
|
|
2336
|
-
...
|
|
2337
|
-
duration: t ?? ((S =
|
|
2338
|
-
delay: r ?? ((z =
|
|
2339
|
-
easing:
|
|
2340
|
-
iterations:
|
|
2338
|
+
w.current || (w.current = new v(f.current)), c == null || c();
|
|
2339
|
+
const Y = {
|
|
2340
|
+
...x.config,
|
|
2341
|
+
duration: t ?? ((S = x.config) == null ? void 0 : S.duration),
|
|
2342
|
+
delay: r ?? ((z = x.config) == null ? void 0 : z.delay),
|
|
2343
|
+
easing: n ?? ((D = x.config) == null ? void 0 : D.easing),
|
|
2344
|
+
iterations: s ?? ((B = x.config) == null ? void 0 : B.iterations)
|
|
2341
2345
|
};
|
|
2342
2346
|
try {
|
|
2343
|
-
await
|
|
2347
|
+
await w.current.animate(x.keyframes, Y), N.current = !0, g == null || g();
|
|
2344
2348
|
} catch (A) {
|
|
2345
2349
|
console.error("[TeleMotion] Animation error:", A);
|
|
2346
2350
|
}
|
|
2347
2351
|
};
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
}, [a, t, r,
|
|
2351
|
-
if (!(
|
|
2352
|
-
return
|
|
2353
|
-
(
|
|
2354
|
-
|
|
2355
|
-
|
|
2352
|
+
y(() => {
|
|
2353
|
+
i === "mount" && k();
|
|
2354
|
+
}, [a, t, r, n, s]), y(() => {
|
|
2355
|
+
if (!(i !== "scroll" || !f.current))
|
|
2356
|
+
return h.current = new IntersectionObserver(
|
|
2357
|
+
(x) => {
|
|
2358
|
+
x.forEach((Y) => {
|
|
2359
|
+
Y.isIntersecting && (k(), l && h.current && h.current.unobserve(Y.target));
|
|
2356
2360
|
});
|
|
2357
2361
|
},
|
|
2358
2362
|
{ threshold: d }
|
|
2359
|
-
),
|
|
2360
|
-
|
|
2363
|
+
), h.current.observe(f.current), () => {
|
|
2364
|
+
h.current && h.current.disconnect();
|
|
2361
2365
|
};
|
|
2362
|
-
}, [
|
|
2363
|
-
const
|
|
2364
|
-
|
|
2365
|
-
},
|
|
2366
|
-
|
|
2366
|
+
}, [i, d, l, a]);
|
|
2367
|
+
const O = () => {
|
|
2368
|
+
i === "hover" && k();
|
|
2369
|
+
}, M = () => {
|
|
2370
|
+
i === "click" && k();
|
|
2367
2371
|
};
|
|
2368
|
-
return
|
|
2369
|
-
|
|
2370
|
-
}, []), /* @__PURE__ */
|
|
2372
|
+
return y(() => () => {
|
|
2373
|
+
w.current && w.current.stop();
|
|
2374
|
+
}, []), /* @__PURE__ */ o(
|
|
2371
2375
|
"div",
|
|
2372
2376
|
{
|
|
2373
|
-
ref:
|
|
2374
|
-
className:
|
|
2375
|
-
style:
|
|
2376
|
-
onMouseEnter:
|
|
2377
|
-
onClick:
|
|
2377
|
+
ref: f,
|
|
2378
|
+
className: m,
|
|
2379
|
+
style: b,
|
|
2380
|
+
onMouseEnter: i === "hover" ? O : void 0,
|
|
2381
|
+
onClick: i === "click" ? M : void 0,
|
|
2378
2382
|
children: e
|
|
2379
2383
|
}
|
|
2380
2384
|
);
|
|
2381
2385
|
};
|
|
2382
|
-
|
|
2383
|
-
function
|
|
2384
|
-
const e =
|
|
2385
|
-
e.current && (a.current || (a.current = new
|
|
2386
|
+
Va.displayName = "TeleMotion";
|
|
2387
|
+
function qt() {
|
|
2388
|
+
const e = p(null), a = p(null), t = async (r, n) => {
|
|
2389
|
+
e.current && (a.current || (a.current = new v(e.current)), await a.current.animate(r, n));
|
|
2386
2390
|
};
|
|
2387
|
-
return
|
|
2391
|
+
return y(() => () => {
|
|
2388
2392
|
a.current && a.current.stop();
|
|
2389
2393
|
}, []), [e, t];
|
|
2390
2394
|
}
|
|
2391
|
-
function
|
|
2392
|
-
const t =
|
|
2395
|
+
function Ht(e, a) {
|
|
2396
|
+
const t = p(null), r = p(null), n = async () => {
|
|
2393
2397
|
if (!t.current) return;
|
|
2394
|
-
const
|
|
2395
|
-
if (!
|
|
2398
|
+
const s = I[e];
|
|
2399
|
+
if (!s) {
|
|
2396
2400
|
console.warn(`[usePresetAnimation] Preset "${e}" not found`);
|
|
2397
2401
|
return;
|
|
2398
2402
|
}
|
|
2399
|
-
r.current || (r.current = new
|
|
2400
|
-
const
|
|
2401
|
-
...
|
|
2403
|
+
r.current || (r.current = new v(t.current));
|
|
2404
|
+
const i = {
|
|
2405
|
+
...s.config,
|
|
2402
2406
|
...a
|
|
2403
2407
|
};
|
|
2404
|
-
await r.current.animate(
|
|
2408
|
+
await r.current.animate(s.keyframes, i);
|
|
2405
2409
|
};
|
|
2406
|
-
return
|
|
2407
|
-
(a == null ? void 0 : a.trigger) !== "manual" &&
|
|
2408
|
-
}, [e]),
|
|
2410
|
+
return y(() => {
|
|
2411
|
+
(a == null ? void 0 : a.trigger) !== "manual" && n();
|
|
2412
|
+
}, [e]), y(() => () => {
|
|
2409
2413
|
r.current && r.current.stop();
|
|
2410
|
-
}, []), [t,
|
|
2414
|
+
}, []), [t, n];
|
|
2411
2415
|
}
|
|
2412
|
-
function
|
|
2413
|
-
const t =
|
|
2414
|
-
return
|
|
2416
|
+
function jt(e, a) {
|
|
2417
|
+
const t = p(null), r = p(null), n = p(null), s = p(!1);
|
|
2418
|
+
return y(() => {
|
|
2415
2419
|
if (!t.current) return;
|
|
2416
|
-
const
|
|
2417
|
-
if (!
|
|
2420
|
+
const i = I[e];
|
|
2421
|
+
if (!i) {
|
|
2418
2422
|
console.warn(`[useScrollAnimation] Preset "${e}" not found`);
|
|
2419
2423
|
return;
|
|
2420
2424
|
}
|
|
2421
|
-
return r.current = new
|
|
2425
|
+
return r.current = new v(t.current), n.current = new IntersectionObserver(
|
|
2422
2426
|
(d) => {
|
|
2423
2427
|
d.forEach((l) => {
|
|
2424
|
-
if (l.isIntersecting && !
|
|
2428
|
+
if (l.isIntersecting && !s.current && r.current) {
|
|
2425
2429
|
const c = {
|
|
2426
|
-
...
|
|
2430
|
+
...i.config,
|
|
2427
2431
|
...a == null ? void 0 : a.config
|
|
2428
2432
|
};
|
|
2429
|
-
r.current.animate(
|
|
2433
|
+
r.current.animate(i.keyframes, c), s.current = !0, (a == null ? void 0 : a.triggerOnce) !== !1 && n.current && n.current.unobserve(l.target);
|
|
2430
2434
|
}
|
|
2431
2435
|
});
|
|
2432
2436
|
},
|
|
2433
2437
|
{ threshold: (a == null ? void 0 : a.threshold) ?? 0.1 }
|
|
2434
|
-
),
|
|
2435
|
-
|
|
2438
|
+
), n.current.observe(t.current), () => {
|
|
2439
|
+
n.current && n.current.disconnect(), r.current && r.current.stop();
|
|
2436
2440
|
};
|
|
2437
2441
|
}, [e, a == null ? void 0 : a.threshold, a == null ? void 0 : a.triggerOnce]), t;
|
|
2438
2442
|
}
|
|
2439
|
-
function
|
|
2440
|
-
const r =
|
|
2443
|
+
function Ft(e, a = 100, t) {
|
|
2444
|
+
const r = p(null);
|
|
2441
2445
|
return [r, async () => {
|
|
2442
2446
|
if (!r.current) return;
|
|
2443
|
-
const
|
|
2444
|
-
if (!
|
|
2445
|
-
const d = Array.from(r.current.children).map((l, c) => new
|
|
2446
|
-
...
|
|
2447
|
+
const s = I[e];
|
|
2448
|
+
if (!s) return;
|
|
2449
|
+
const d = Array.from(r.current.children).map((l, c) => new v(l).animate(s.keyframes, {
|
|
2450
|
+
...s.config,
|
|
2447
2451
|
...t,
|
|
2448
2452
|
delay: ((t == null ? void 0 : t.delay) ?? 0) + a * c
|
|
2449
2453
|
}));
|
|
2450
2454
|
await Promise.all(d);
|
|
2451
2455
|
}];
|
|
2452
2456
|
}
|
|
2453
|
-
function
|
|
2454
|
-
const t =
|
|
2457
|
+
function Wt(e, a) {
|
|
2458
|
+
const t = p(null), r = p(null);
|
|
2455
2459
|
return [t, { onMouseEnter: async () => {
|
|
2456
2460
|
if (!t.current) return;
|
|
2457
|
-
const
|
|
2458
|
-
|
|
2459
|
-
...
|
|
2461
|
+
const i = I[e];
|
|
2462
|
+
i && (r.current || (r.current = new v(t.current)), await r.current.animate(i.keyframes, {
|
|
2463
|
+
...i.config,
|
|
2460
2464
|
...a
|
|
2461
2465
|
}));
|
|
2462
2466
|
}, onMouseLeave: () => {
|
|
2463
2467
|
r.current && r.current.stop();
|
|
2464
2468
|
} }];
|
|
2465
2469
|
}
|
|
2466
|
-
function
|
|
2467
|
-
const a =
|
|
2468
|
-
return
|
|
2470
|
+
function Qt(e = 0.1) {
|
|
2471
|
+
const a = p(null), [t, r] = C(!1);
|
|
2472
|
+
return y(() => {
|
|
2469
2473
|
if (!a.current) return;
|
|
2470
|
-
const
|
|
2471
|
-
(
|
|
2472
|
-
|
|
2473
|
-
r(
|
|
2474
|
+
const n = new IntersectionObserver(
|
|
2475
|
+
(s) => {
|
|
2476
|
+
s.forEach((i) => {
|
|
2477
|
+
r(i.isIntersecting);
|
|
2474
2478
|
});
|
|
2475
2479
|
},
|
|
2476
2480
|
{ threshold: e }
|
|
2477
2481
|
);
|
|
2478
|
-
return
|
|
2479
|
-
|
|
2482
|
+
return n.observe(a.current), () => {
|
|
2483
|
+
n.disconnect();
|
|
2480
2484
|
};
|
|
2481
2485
|
}, [e]), [a, t];
|
|
2482
2486
|
}
|
|
2487
|
+
const Zt = ({
|
|
2488
|
+
children: e,
|
|
2489
|
+
direction: a = "up",
|
|
2490
|
+
delay: t = 0,
|
|
2491
|
+
duration: r = 800,
|
|
2492
|
+
threshold: n = 0.1,
|
|
2493
|
+
once: s = !0,
|
|
2494
|
+
className: i = ""
|
|
2495
|
+
}) => {
|
|
2496
|
+
const d = p(null), [l, c] = C(!1);
|
|
2497
|
+
y(() => {
|
|
2498
|
+
const m = new IntersectionObserver(
|
|
2499
|
+
([b]) => {
|
|
2500
|
+
b.isIntersecting ? (c(!0), s && d.current && m.unobserve(d.current)) : s || c(!1);
|
|
2501
|
+
},
|
|
2502
|
+
{
|
|
2503
|
+
threshold: n,
|
|
2504
|
+
rootMargin: "0px"
|
|
2505
|
+
}
|
|
2506
|
+
);
|
|
2507
|
+
return d.current && m.observe(d.current), () => {
|
|
2508
|
+
d.current && m.unobserve(d.current);
|
|
2509
|
+
};
|
|
2510
|
+
}, [n, s]);
|
|
2511
|
+
const g = `scroll-fade-${a}`;
|
|
2512
|
+
return /* @__PURE__ */ o(
|
|
2513
|
+
"div",
|
|
2514
|
+
{
|
|
2515
|
+
ref: d,
|
|
2516
|
+
className: `scroll-animation ${g} ${l ? "active" : ""} ${i}`,
|
|
2517
|
+
style: {
|
|
2518
|
+
animationDelay: `${t}ms`,
|
|
2519
|
+
animationDuration: `${r}ms`
|
|
2520
|
+
},
|
|
2521
|
+
children: e
|
|
2522
|
+
}
|
|
2523
|
+
);
|
|
2524
|
+
}, Jt = ({
|
|
2525
|
+
children: e,
|
|
2526
|
+
delay: a = 0,
|
|
2527
|
+
duration: t = 600,
|
|
2528
|
+
threshold: r = 0.1,
|
|
2529
|
+
once: n = !0,
|
|
2530
|
+
className: s = ""
|
|
2531
|
+
}) => {
|
|
2532
|
+
const i = p(null), [d, l] = C(!1);
|
|
2533
|
+
return y(() => {
|
|
2534
|
+
const c = new IntersectionObserver(
|
|
2535
|
+
([g]) => {
|
|
2536
|
+
g.isIntersecting ? (l(!0), n && i.current && c.unobserve(i.current)) : n || l(!1);
|
|
2537
|
+
},
|
|
2538
|
+
{ threshold: r }
|
|
2539
|
+
);
|
|
2540
|
+
return i.current && c.observe(i.current), () => {
|
|
2541
|
+
i.current && c.unobserve(i.current);
|
|
2542
|
+
};
|
|
2543
|
+
}, [r, n]), /* @__PURE__ */ o(
|
|
2544
|
+
"div",
|
|
2545
|
+
{
|
|
2546
|
+
ref: i,
|
|
2547
|
+
className: `scroll-animation scroll-zoom-in ${d ? "active" : ""} ${s}`,
|
|
2548
|
+
style: {
|
|
2549
|
+
animationDelay: `${a}ms`,
|
|
2550
|
+
animationDuration: `${t}ms`
|
|
2551
|
+
},
|
|
2552
|
+
children: e
|
|
2553
|
+
}
|
|
2554
|
+
);
|
|
2555
|
+
}, Kt = ({
|
|
2556
|
+
children: e,
|
|
2557
|
+
delay: a = 0,
|
|
2558
|
+
duration: t = 800,
|
|
2559
|
+
threshold: r = 0.1,
|
|
2560
|
+
once: n = !0,
|
|
2561
|
+
className: s = ""
|
|
2562
|
+
}) => {
|
|
2563
|
+
const i = p(null), [d, l] = C(!1);
|
|
2564
|
+
return y(() => {
|
|
2565
|
+
const c = new IntersectionObserver(
|
|
2566
|
+
([g]) => {
|
|
2567
|
+
g.isIntersecting ? (l(!0), n && i.current && c.unobserve(i.current)) : n || l(!1);
|
|
2568
|
+
},
|
|
2569
|
+
{ threshold: r }
|
|
2570
|
+
);
|
|
2571
|
+
return i.current && c.observe(i.current), () => {
|
|
2572
|
+
i.current && c.unobserve(i.current);
|
|
2573
|
+
};
|
|
2574
|
+
}, [r, n]), /* @__PURE__ */ o(
|
|
2575
|
+
"div",
|
|
2576
|
+
{
|
|
2577
|
+
ref: i,
|
|
2578
|
+
className: `scroll-animation scroll-rotate-in ${d ? "active" : ""} ${s}`,
|
|
2579
|
+
style: {
|
|
2580
|
+
animationDelay: `${a}ms`,
|
|
2581
|
+
animationDuration: `${t}ms`
|
|
2582
|
+
},
|
|
2583
|
+
children: e
|
|
2584
|
+
}
|
|
2585
|
+
);
|
|
2586
|
+
};
|
|
2483
2587
|
export {
|
|
2484
2588
|
gt as AnimatedBounce,
|
|
2485
|
-
|
|
2589
|
+
ft as AnimatedGlow,
|
|
2486
2590
|
ct as AnimatedPulse,
|
|
2487
2591
|
dt as AnimatedShimmer,
|
|
2488
|
-
|
|
2592
|
+
v as Animator,
|
|
2489
2593
|
ja as Button,
|
|
2490
2594
|
yt as Button3DBlue,
|
|
2491
2595
|
vt as Button3DGreen,
|
|
2492
2596
|
wt as Button3DPink,
|
|
2493
|
-
|
|
2597
|
+
Ot as Container,
|
|
2494
2598
|
Yt as ContainerButton,
|
|
2495
2599
|
Ct as ContainerContent,
|
|
2496
|
-
|
|
2600
|
+
Mt as ContainerImage,
|
|
2497
2601
|
Xt as FeatureCard,
|
|
2498
2602
|
bt as GhostBlue,
|
|
2499
2603
|
xt as GhostPurple,
|
|
2500
2604
|
ht as GhostRed,
|
|
2501
2605
|
ot as GlassBlue,
|
|
2502
|
-
|
|
2606
|
+
X as GlassButton,
|
|
2503
2607
|
lt as GlassPink,
|
|
2504
2608
|
it as GlassPurple,
|
|
2505
2609
|
st as GlassWhite,
|
|
@@ -2512,40 +2616,43 @@ export {
|
|
|
2512
2616
|
kt as NeonBlue,
|
|
2513
2617
|
Nt as NeonGreen,
|
|
2514
2618
|
It as NeonPink,
|
|
2515
|
-
|
|
2619
|
+
pt as OutlinedBlue,
|
|
2516
2620
|
mt as OutlinedGradient,
|
|
2517
2621
|
ut as OutlinedPurple,
|
|
2518
2622
|
Pt as ProductCard,
|
|
2623
|
+
Kt as RotateIn,
|
|
2519
2624
|
L as ScrollObserver,
|
|
2520
|
-
|
|
2625
|
+
Zt as ScrollReveal,
|
|
2626
|
+
Wa as SolidBlue,
|
|
2521
2627
|
Za as SolidGreen,
|
|
2522
2628
|
Ka as SolidPill,
|
|
2523
2629
|
Ja as SolidPurple,
|
|
2524
|
-
|
|
2630
|
+
Qa as SolidRed,
|
|
2525
2631
|
Rt as StatCard,
|
|
2526
|
-
|
|
2527
|
-
|
|
2632
|
+
Va as TeleMotion,
|
|
2633
|
+
Jt as ZoomIn,
|
|
2634
|
+
St as animateGroup,
|
|
2528
2635
|
Ut as animateOnScroll,
|
|
2529
2636
|
Et as bezier,
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2637
|
+
$t as createAnimator,
|
|
2638
|
+
ke as easings,
|
|
2639
|
+
Bt as getEasing,
|
|
2533
2640
|
Tt as getPreset,
|
|
2534
|
-
|
|
2535
|
-
|
|
2641
|
+
Ta as getPresetNames,
|
|
2642
|
+
Vt as getPresetsByCategory,
|
|
2536
2643
|
Lt as getScrollProgress,
|
|
2537
|
-
|
|
2644
|
+
q as gradients,
|
|
2538
2645
|
At as isInViewport,
|
|
2539
|
-
|
|
2646
|
+
Ie as observeElement,
|
|
2540
2647
|
_t as observeElements,
|
|
2541
|
-
|
|
2648
|
+
Dt as parallel,
|
|
2542
2649
|
I as presets,
|
|
2543
|
-
|
|
2650
|
+
zt as sequence,
|
|
2544
2651
|
Gt as spring,
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2652
|
+
qt as useAnimator,
|
|
2653
|
+
Wt as useHoverAnimation,
|
|
2654
|
+
Qt as useInView,
|
|
2655
|
+
Ht as usePresetAnimation,
|
|
2656
|
+
jt as useScrollAnimation,
|
|
2657
|
+
Ft as useStagger
|
|
2551
2658
|
};
|