telecop 0.1.30 → 0.1.31
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/animations/presets/index.d.ts +18 -1
- package/dist/animations/presets/text.d.ts +17 -0
- package/dist/index.js +8 -8
- package/dist/index.mjs +472 -301
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as n, jsxs as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
2
|
+
import { jsx as n, jsxs as u, Fragment as T } from "react/jsx-runtime";
|
|
3
|
+
import q, { useState as G, useRef as f, useEffect as v } from "react";
|
|
4
|
+
const ja = ({
|
|
5
5
|
children: e,
|
|
6
6
|
variant: a = "primary",
|
|
7
|
-
size:
|
|
8
|
-
onClick:
|
|
7
|
+
size: t = "md",
|
|
8
|
+
onClick: r,
|
|
9
9
|
disabled: o = !1,
|
|
10
10
|
className: i = ""
|
|
11
11
|
}) => {
|
|
@@ -21,8 +21,8 @@ const Ra = ({
|
|
|
21
21
|
return /* @__PURE__ */ n(
|
|
22
22
|
"button",
|
|
23
23
|
{
|
|
24
|
-
className: `${s} ${d[a]} ${l[
|
|
25
|
-
onClick:
|
|
24
|
+
className: `${s} ${d[a]} ${l[t]} ${c} ${i}`,
|
|
25
|
+
onClick: r,
|
|
26
26
|
disabled: o,
|
|
27
27
|
children: e
|
|
28
28
|
}
|
|
@@ -30,17 +30,17 @@ const Ra = ({
|
|
|
30
30
|
}, O = ({
|
|
31
31
|
children: e,
|
|
32
32
|
variant: a = "blur",
|
|
33
|
-
size:
|
|
34
|
-
onClick:
|
|
33
|
+
size: t = "md",
|
|
34
|
+
onClick: r,
|
|
35
35
|
disabled: o = !1,
|
|
36
36
|
className: i = ""
|
|
37
37
|
}) => {
|
|
38
|
-
const [s, d] =
|
|
39
|
-
if (!o &&
|
|
38
|
+
const [s, d] = G([]), l = (p) => {
|
|
39
|
+
if (!o && r) {
|
|
40
40
|
const h = p.currentTarget.getBoundingClientRect(), x = p.clientX - h.left, N = p.clientY - h.top, k = Date.now();
|
|
41
41
|
d([...s, { x, y: N, id: k }]), setTimeout(() => {
|
|
42
|
-
d((
|
|
43
|
-
}, 800),
|
|
42
|
+
d((P) => P.filter((R) => R.id !== k));
|
|
43
|
+
}, 800), r();
|
|
44
44
|
}
|
|
45
45
|
}, c = `
|
|
46
46
|
relative overflow-hidden
|
|
@@ -56,7 +56,7 @@ const Ra = ({
|
|
|
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
|
+
}, b = {
|
|
60
60
|
blur: `
|
|
61
61
|
bg-white/5
|
|
62
62
|
hover:bg-white/15
|
|
@@ -82,15 +82,15 @@ const Ra = ({
|
|
|
82
82
|
hover:before:translate-x-[200%]
|
|
83
83
|
before:transition-transform before:duration-1000
|
|
84
84
|
`
|
|
85
|
-
},
|
|
86
|
-
return /* @__PURE__ */
|
|
85
|
+
}, m = o ? "opacity-40 cursor-not-allowed hover:scale-100 hover:shadow-xl" : "";
|
|
86
|
+
return /* @__PURE__ */ u(
|
|
87
87
|
"button",
|
|
88
88
|
{
|
|
89
|
-
className: `${c} ${g[
|
|
89
|
+
className: `${c} ${g[t]} ${b[a]} ${m} ${i}`,
|
|
90
90
|
onClick: l,
|
|
91
91
|
disabled: o,
|
|
92
92
|
children: [
|
|
93
|
-
a === "waves" && !o && /* @__PURE__ */
|
|
93
|
+
a === "waves" && !o && /* @__PURE__ */ u(T, { children: [
|
|
94
94
|
/* @__PURE__ */ n("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
95
|
/* @__PURE__ */ n("span", { className: "absolute inset-0 bg-gradient-to-br from-transparent via-white/10 to-transparent animate-pulse" })
|
|
96
96
|
] }),
|
|
@@ -114,11 +114,11 @@ const Ra = ({
|
|
|
114
114
|
]
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
|
-
},
|
|
117
|
+
}, Fa = ({
|
|
118
118
|
name: e,
|
|
119
119
|
title: a,
|
|
120
|
-
description:
|
|
121
|
-
primaryButtonText:
|
|
120
|
+
description: t = "Welcome to my portfolio",
|
|
121
|
+
primaryButtonText: r = "Get Started",
|
|
122
122
|
primaryButtonLink: o,
|
|
123
123
|
primaryButtonOnClick: i,
|
|
124
124
|
secondaryButtonText: s = "Learn More",
|
|
@@ -126,19 +126,19 @@ const Ra = ({
|
|
|
126
126
|
secondaryButtonOnClick: l,
|
|
127
127
|
backgroundGradient: c = "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
|
|
128
128
|
animationType: g,
|
|
129
|
-
className:
|
|
129
|
+
className: b = ""
|
|
130
130
|
}) => {
|
|
131
|
-
const
|
|
131
|
+
const m = () => {
|
|
132
132
|
o ? window.location.href = o : i && i();
|
|
133
133
|
}, p = () => {
|
|
134
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:
|
|
135
|
+
}, h = o ? /* @__PURE__ */ n("a", { href: o, style: { textDecoration: "none" }, children: /* @__PURE__ */ n(O, { variant: "waves", size: "lg", children: r }) }) : /* @__PURE__ */ n(
|
|
136
136
|
O,
|
|
137
137
|
{
|
|
138
138
|
variant: "waves",
|
|
139
139
|
size: "lg",
|
|
140
|
-
onClick: i ||
|
|
141
|
-
children:
|
|
140
|
+
onClick: i || m,
|
|
141
|
+
children: r
|
|
142
142
|
}
|
|
143
143
|
), x = d ? /* @__PURE__ */ n("a", { href: d, style: { textDecoration: "none" }, children: /* @__PURE__ */ n(O, { variant: "blur", size: "lg", children: s }) }) : /* @__PURE__ */ n(
|
|
144
144
|
O,
|
|
@@ -157,7 +157,7 @@ const Ra = ({
|
|
|
157
157
|
background: c,
|
|
158
158
|
minHeight: "100vh"
|
|
159
159
|
},
|
|
160
|
-
children: /* @__PURE__ */ n("div", { className: `min-h-screen flex items-center justify-center p-8 ${
|
|
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
161
|
/* @__PURE__ */ n(
|
|
162
162
|
"h1",
|
|
163
163
|
{
|
|
@@ -188,10 +188,10 @@ const Ra = ({
|
|
|
188
188
|
textShadow: "0 0 20px rgba(0,0,0,0.2)",
|
|
189
189
|
animation: "fadeInUp 1.2s ease-out 0.4s backwards"
|
|
190
190
|
},
|
|
191
|
-
children:
|
|
191
|
+
children: t
|
|
192
192
|
}
|
|
193
193
|
),
|
|
194
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ u(
|
|
195
195
|
"div",
|
|
196
196
|
{
|
|
197
197
|
className: "flex flex-wrap gap-6 justify-center mt-12",
|
|
@@ -217,7 +217,7 @@ const Ra = ({
|
|
|
217
217
|
] }) })
|
|
218
218
|
}
|
|
219
219
|
);
|
|
220
|
-
},
|
|
220
|
+
}, Wa = [
|
|
221
221
|
// ========== PREMIUM THEMES (NEW) ==========
|
|
222
222
|
{
|
|
223
223
|
id: "glass-morphism",
|
|
@@ -682,10 +682,10 @@ const Ra = ({
|
|
|
682
682
|
category: "animated",
|
|
683
683
|
animation: "zoom"
|
|
684
684
|
}
|
|
685
|
-
],
|
|
685
|
+
], Qa = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("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 }), Va = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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: [
|
|
686
686
|
/* @__PURE__ */ n("span", { className: "relative z-10", children: e }),
|
|
687
687
|
/* @__PURE__ */ n("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" })
|
|
688
|
-
] }),
|
|
688
|
+
] }), ct = ({ children: e = "Pulse Button", onClick: a }) => /* @__PURE__ */ n("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__ */ n("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 }), pt = ({ children: e = "Glow Effect", onClick: a }) => /* @__PURE__ */ n("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 }), ft = ({ children: e = "Click Me", onClick: a }) => /* @__PURE__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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__ */ n("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
689
|
"glass-morphism": `
|
|
690
690
|
radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
|
|
691
691
|
radial-gradient(circle at 80% 80%, rgba(255, 128, 171, 0.3), transparent 50%),
|
|
@@ -711,11 +711,11 @@ const Ra = ({
|
|
|
711
711
|
linear-gradient(180deg, #000000 0%, #0a0a1a 50%, #000000 100%)
|
|
712
712
|
`,
|
|
713
713
|
none: "transparent"
|
|
714
|
-
},
|
|
714
|
+
}, Mt = ({
|
|
715
715
|
children: e,
|
|
716
716
|
layout: a = "center",
|
|
717
|
-
size:
|
|
718
|
-
theme:
|
|
717
|
+
size: t = "lg",
|
|
718
|
+
theme: r = "none",
|
|
719
719
|
padding: o = !0,
|
|
720
720
|
gap: i = "md",
|
|
721
721
|
className: s = ""
|
|
@@ -726,7 +726,7 @@ const Ra = ({
|
|
|
726
726
|
lg: "max-w-7xl",
|
|
727
727
|
xl: "max-w-[1400px]",
|
|
728
728
|
full: "max-w-full"
|
|
729
|
-
}[
|
|
729
|
+
}[t], l = {
|
|
730
730
|
sm: "gap-4",
|
|
731
731
|
md: "gap-8",
|
|
732
732
|
lg: "gap-12"
|
|
@@ -738,45 +738,45 @@ const Ra = ({
|
|
|
738
738
|
center: "flex flex-col items-center justify-center text-center",
|
|
739
739
|
"two-columns": `grid md:grid-cols-2 ${l}`,
|
|
740
740
|
"three-columns": `grid md:grid-cols-3 ${l}`
|
|
741
|
-
}[a], g = o ? "px-6 py-8" : "",
|
|
742
|
-
background:
|
|
741
|
+
}[a], g = o ? "px-6 py-8" : "", b = r !== "none" ? {
|
|
742
|
+
background: H[r],
|
|
743
743
|
backgroundSize: "200% 200%"
|
|
744
|
-
} : {},
|
|
745
|
-
let p =
|
|
746
|
-
return (a === "image-left" || a === "button-left") && (p =
|
|
744
|
+
} : {}, m = q.Children.toArray(e);
|
|
745
|
+
let p = m;
|
|
746
|
+
return (a === "image-left" || a === "button-left") && (p = m.reverse()), /* @__PURE__ */ n(
|
|
747
747
|
"div",
|
|
748
748
|
{
|
|
749
749
|
className: `${d} mx-auto ${g} ${s}`,
|
|
750
|
-
style:
|
|
750
|
+
style: b,
|
|
751
751
|
children: /* @__PURE__ */ n("div", { className: c, children: p })
|
|
752
752
|
}
|
|
753
753
|
);
|
|
754
|
-
},
|
|
754
|
+
}, Ot = ({
|
|
755
755
|
src: e,
|
|
756
756
|
alt: a,
|
|
757
|
-
className:
|
|
758
|
-
width:
|
|
757
|
+
className: t = "",
|
|
758
|
+
width: r,
|
|
759
759
|
height: o
|
|
760
|
-
}) => /* @__PURE__ */ n("div", { className: `w-full ${
|
|
760
|
+
}) => /* @__PURE__ */ n("div", { className: `w-full ${t}`, children: /* @__PURE__ */ n(
|
|
761
761
|
"img",
|
|
762
762
|
{
|
|
763
763
|
src: e,
|
|
764
764
|
alt: a,
|
|
765
|
-
width:
|
|
765
|
+
width: r,
|
|
766
766
|
height: o,
|
|
767
767
|
className: "w-full h-auto rounded-2xl shadow-2xl object-cover"
|
|
768
768
|
}
|
|
769
|
-
) }),
|
|
769
|
+
) }), Ct = ({
|
|
770
770
|
children: e,
|
|
771
771
|
className: a = ""
|
|
772
|
-
}) => /* @__PURE__ */ n("div", { className: `space-y-4 ${a}`, children: e }),
|
|
772
|
+
}) => /* @__PURE__ */ n("div", { className: `space-y-4 ${a}`, children: e }), Yt = ({
|
|
773
773
|
children: e,
|
|
774
774
|
className: a = ""
|
|
775
|
-
}) => /* @__PURE__ */ n("div", { className: `flex gap-4 ${a}`, children: e }),
|
|
775
|
+
}) => /* @__PURE__ */ n("div", { className: `flex gap-4 ${a}`, children: e }), Xt = ({
|
|
776
776
|
icon: e,
|
|
777
777
|
title: a,
|
|
778
|
-
description:
|
|
779
|
-
variant:
|
|
778
|
+
description: t,
|
|
779
|
+
variant: r = "solid",
|
|
780
780
|
theme: o = "blue",
|
|
781
781
|
hoverable: i = !0,
|
|
782
782
|
className: s = ""
|
|
@@ -823,25 +823,25 @@ const Ra = ({
|
|
|
823
823
|
gradient: "bg-gradient-to-br from-orange-600 to-red-600 text-white",
|
|
824
824
|
outlined: "bg-transparent border-2 border-orange-500 text-orange-500"
|
|
825
825
|
}
|
|
826
|
-
}[o][
|
|
826
|
+
}[o][r]}
|
|
827
827
|
${s}
|
|
828
828
|
`;
|
|
829
|
-
return /* @__PURE__ */
|
|
829
|
+
return /* @__PURE__ */ u("div", { className: l, children: [
|
|
830
830
|
e && /* @__PURE__ */ n("div", { className: "text-4xl mb-4", children: e }),
|
|
831
831
|
/* @__PURE__ */ n("h3", { className: "text-xl font-bold mb-2", children: a }),
|
|
832
|
-
/* @__PURE__ */ n("p", { className: `text-sm ${
|
|
832
|
+
/* @__PURE__ */ n("p", { className: `text-sm ${r === "outlined" ? "text-gray-600" : "opacity-90"}`, children: t })
|
|
833
833
|
] });
|
|
834
|
-
},
|
|
834
|
+
}, Pt = ({
|
|
835
835
|
image: e,
|
|
836
836
|
title: a,
|
|
837
|
-
description:
|
|
838
|
-
price:
|
|
837
|
+
description: t,
|
|
838
|
+
price: r,
|
|
839
839
|
oldPrice: o,
|
|
840
840
|
badge: i,
|
|
841
841
|
variant: s = "solid",
|
|
842
842
|
children: d,
|
|
843
843
|
className: l = ""
|
|
844
|
-
}) => /* @__PURE__ */
|
|
844
|
+
}) => /* @__PURE__ */ u("div", { className: `
|
|
845
845
|
rounded-2xl overflow-hidden
|
|
846
846
|
max-w-sm
|
|
847
847
|
transition-all duration-300
|
|
@@ -854,7 +854,7 @@ const Ra = ({
|
|
|
854
854
|
}[s]}
|
|
855
855
|
${l}
|
|
856
856
|
`, children: [
|
|
857
|
-
/* @__PURE__ */
|
|
857
|
+
/* @__PURE__ */ u("div", { className: "relative", children: [
|
|
858
858
|
/* @__PURE__ */ n(
|
|
859
859
|
"img",
|
|
860
860
|
{
|
|
@@ -865,26 +865,26 @@ const Ra = ({
|
|
|
865
865
|
),
|
|
866
866
|
i && /* @__PURE__ */ n("span", { className: "absolute top-3 right-3 px-3 py-1 bg-red-500 text-white text-xs font-bold rounded-full", children: i })
|
|
867
867
|
] }),
|
|
868
|
-
/* @__PURE__ */
|
|
868
|
+
/* @__PURE__ */ u("div", { className: "p-5 space-y-3", children: [
|
|
869
869
|
/* @__PURE__ */ n("h3", { className: "text-xl font-bold text-white", children: a }),
|
|
870
|
-
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
-
/* @__PURE__ */
|
|
870
|
+
t && /* @__PURE__ */ n("p", { className: "text-gray-400 text-sm", children: t }),
|
|
871
|
+
/* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: [
|
|
872
|
+
/* @__PURE__ */ u("span", { className: "text-2xl font-bold text-white", children: [
|
|
873
873
|
"$",
|
|
874
|
-
|
|
874
|
+
r
|
|
875
875
|
] }),
|
|
876
|
-
o && /* @__PURE__ */
|
|
876
|
+
o && /* @__PURE__ */ u("span", { className: "text-sm text-gray-500 line-through", children: [
|
|
877
877
|
"$",
|
|
878
878
|
o
|
|
879
879
|
] })
|
|
880
880
|
] }),
|
|
881
881
|
d
|
|
882
882
|
] })
|
|
883
|
-
] }),
|
|
883
|
+
] }), Rt = ({
|
|
884
884
|
icon: e,
|
|
885
885
|
label: a,
|
|
886
|
-
value:
|
|
887
|
-
change:
|
|
886
|
+
value: t,
|
|
887
|
+
change: r,
|
|
888
888
|
trend: o = "neutral",
|
|
889
889
|
variant: i = "solid",
|
|
890
890
|
theme: s = "blue",
|
|
@@ -936,7 +936,7 @@ const Ra = ({
|
|
|
936
936
|
down: "↓",
|
|
937
937
|
neutral: "→"
|
|
938
938
|
};
|
|
939
|
-
return /* @__PURE__ */
|
|
939
|
+
return /* @__PURE__ */ u("div", { className: `
|
|
940
940
|
rounded-2xl p-6 border
|
|
941
941
|
max-w-sm
|
|
942
942
|
transition-all duration-300
|
|
@@ -944,16 +944,16 @@ const Ra = ({
|
|
|
944
944
|
${l[s][i]}
|
|
945
945
|
${d}
|
|
946
946
|
`, children: [
|
|
947
|
-
/* @__PURE__ */
|
|
947
|
+
/* @__PURE__ */ u("div", { className: "flex items-start justify-between mb-4", children: [
|
|
948
948
|
e && /* @__PURE__ */ n("div", { className: "text-3xl", children: e }),
|
|
949
|
-
|
|
949
|
+
r && /* @__PURE__ */ u("span", { className: `text-sm font-semibold ${c[o]}`, children: [
|
|
950
950
|
g[o],
|
|
951
951
|
" ",
|
|
952
|
-
|
|
952
|
+
r
|
|
953
953
|
] })
|
|
954
954
|
] }),
|
|
955
955
|
/* @__PURE__ */ n("p", { className: "text-gray-400 text-sm mb-1", children: a }),
|
|
956
|
-
/* @__PURE__ */ n("p", { className: "text-3xl font-bold text-white", children:
|
|
956
|
+
/* @__PURE__ */ n("p", { className: "text-3xl font-bold text-white", children: t })
|
|
957
957
|
] });
|
|
958
958
|
};
|
|
959
959
|
class y {
|
|
@@ -963,17 +963,17 @@ class y {
|
|
|
963
963
|
/**
|
|
964
964
|
* تشغيل animation باستخدام keyframes
|
|
965
965
|
*/
|
|
966
|
-
animate(a,
|
|
966
|
+
animate(a, t = {}) {
|
|
967
967
|
const {
|
|
968
|
-
duration:
|
|
968
|
+
duration: r = 600,
|
|
969
969
|
delay: o = 0,
|
|
970
970
|
easing: i = "ease",
|
|
971
971
|
iterations: s = 1,
|
|
972
972
|
direction: d = "normal",
|
|
973
973
|
fill: l = "both"
|
|
974
|
-
} =
|
|
974
|
+
} = t;
|
|
975
975
|
return this.animation && this.animation.cancel(), this.animation = this.element.animate(a, {
|
|
976
|
-
duration:
|
|
976
|
+
duration: r,
|
|
977
977
|
delay: o,
|
|
978
978
|
easing: typeof i == "string" ? i : "linear",
|
|
979
979
|
iterations: s,
|
|
@@ -1019,49 +1019,49 @@ class y {
|
|
|
1019
1019
|
return ((a = this.animation) == null ? void 0 : a.playState) === "running";
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function St(e) {
|
|
1023
1023
|
return new y(e);
|
|
1024
1024
|
}
|
|
1025
|
-
async function
|
|
1026
|
-
const
|
|
1027
|
-
duration:
|
|
1028
|
-
delay:
|
|
1029
|
-
easing:
|
|
1030
|
-
iterations:
|
|
1031
|
-
direction:
|
|
1032
|
-
fill:
|
|
1025
|
+
async function zt(e, a, t = {}) {
|
|
1026
|
+
const r = t.stagger ?? 0, o = {
|
|
1027
|
+
duration: t.duration,
|
|
1028
|
+
delay: t.delay,
|
|
1029
|
+
easing: t.easing,
|
|
1030
|
+
iterations: t.iterations,
|
|
1031
|
+
direction: t.direction,
|
|
1032
|
+
fill: t.fill
|
|
1033
1033
|
}, i = e.map((s, d) => new y(s).animate(a, {
|
|
1034
1034
|
...o,
|
|
1035
|
-
delay: (o.delay || 0) +
|
|
1035
|
+
delay: (o.delay || 0) + r * d
|
|
1036
1036
|
}));
|
|
1037
1037
|
return Promise.all(i);
|
|
1038
1038
|
}
|
|
1039
|
-
async function
|
|
1039
|
+
async function Bt(e) {
|
|
1040
1040
|
const a = [];
|
|
1041
|
-
for (const { element:
|
|
1042
|
-
const s = await new y(
|
|
1041
|
+
for (const { element: t, keyframes: r, config: o } of e) {
|
|
1042
|
+
const s = await new y(t).animate(r, o);
|
|
1043
1043
|
a.push(s);
|
|
1044
1044
|
}
|
|
1045
1045
|
return a;
|
|
1046
1046
|
}
|
|
1047
|
-
async function
|
|
1048
|
-
const a = e.map(({ element:
|
|
1047
|
+
async function $t(e) {
|
|
1048
|
+
const a = e.map(({ element: t, keyframes: r, config: o }) => new y(t).animate(r, o));
|
|
1049
1049
|
return Promise.all(a);
|
|
1050
1050
|
}
|
|
1051
|
-
const
|
|
1052
|
-
linear:
|
|
1053
|
-
easeInCubic:
|
|
1054
|
-
easeOutCubic:
|
|
1055
|
-
easeInOutCubic:
|
|
1056
|
-
easeInQuad:
|
|
1057
|
-
easeOutQuad:
|
|
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, V = (e) => 1 - (1 - e) * (1 - e), Z = (e) => e < 0.5 ? 2 * e * e : 1 - Math.pow(-2 * e + 2, 2) / 2, J = (e) => e * e * e * e, K = (e) => 1 - Math.pow(1 - e, 4), ee = (e) => e < 0.5 ? 8 * e * e * e * e : 1 - Math.pow(-2 * e + 2, 4) / 2, ae = (e) => e * e * e * e * e, te = (e) => 1 - Math.pow(1 - e, 5), re = (e) => e < 0.5 ? 16 * e * e * e * e * e : 1 - Math.pow(-2 * e + 2, 5) / 2, ne = (e) => e === 0 ? 0 : Math.pow(2, 10 * e - 10), oe = (e) => e === 1 ? 1 : 1 - Math.pow(2, -10 * e), ie = (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, X = 1.70158, C = X * 1.525, _ = X + 1, se = (e) => _ * e * e * e - X * e * e, le = (e) => 1 + _ * Math.pow(e - 1, 3) + X * Math.pow(e - 1, 2), de = (e) => e < 0.5 ? Math.pow(2 * e, 2) * ((C + 1) * 2 * e - C) / 2 : (Math.pow(2 * e - 2, 2) * ((C + 1) * (e * 2 - 2) + C) + 2) / 2, U = 2 * Math.PI / 3, D = 2 * Math.PI / 4.5, ce = (e) => e === 0 ? 0 : e === 1 ? 1 : -Math.pow(2, 10 * e - 10) * Math.sin((e * 10 - 10.75) * U), ge = (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) * D)) / 2 : Math.pow(2, -20 * e + 10) * Math.sin((20 * e - 11.125) * D) / 2 + 1, Y = (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, fe = (e) => 1 - Y(1 - e), ue = (e) => e < 0.5 ? (1 - Y(1 - 2 * e)) / 2 : (1 + Y(2 * e - 1)) / 2, me = (e) => 1 - Math.cos(e * Math.PI / 2), be = (e) => Math.sin(e * Math.PI / 2), he = (e) => -(Math.cos(Math.PI * e) - 1) / 2, xe = (e) => 1 - Math.sqrt(1 - Math.pow(e, 2)), ye = (e) => Math.sqrt(1 - Math.pow(e - 1, 2)), we = (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, ve = {
|
|
1052
|
+
linear: E,
|
|
1053
|
+
easeInCubic: j,
|
|
1054
|
+
easeOutCubic: F,
|
|
1055
|
+
easeInOutCubic: W,
|
|
1056
|
+
easeInQuad: Q,
|
|
1057
|
+
easeOutQuad: V,
|
|
1058
1058
|
easeInOutQuad: Z,
|
|
1059
1059
|
easeInQuart: J,
|
|
1060
1060
|
easeOutQuart: K,
|
|
1061
1061
|
easeInOutQuart: ee,
|
|
1062
1062
|
easeInQuint: ae,
|
|
1063
|
-
easeOutQuint:
|
|
1064
|
-
easeInOutQuint:
|
|
1063
|
+
easeOutQuint: te,
|
|
1064
|
+
easeInOutQuint: re,
|
|
1065
1065
|
easeInExpo: ne,
|
|
1066
1066
|
easeOutExpo: oe,
|
|
1067
1067
|
easeInOutExpo: ie,
|
|
@@ -1071,32 +1071,32 @@ const _ = (e) => e, F = (e) => e * e * e, Q = (e) => 1 - Math.pow(1 - e, 3), T =
|
|
|
1071
1071
|
easeInElastic: ce,
|
|
1072
1072
|
easeOutElastic: ge,
|
|
1073
1073
|
easeInOutElastic: pe,
|
|
1074
|
-
easeInBounce:
|
|
1074
|
+
easeInBounce: fe,
|
|
1075
1075
|
easeOutBounce: Y,
|
|
1076
|
-
easeInOutBounce:
|
|
1077
|
-
easeInSine:
|
|
1078
|
-
easeOutSine:
|
|
1076
|
+
easeInOutBounce: ue,
|
|
1077
|
+
easeInSine: me,
|
|
1078
|
+
easeOutSine: be,
|
|
1079
1079
|
easeInOutSine: he,
|
|
1080
1080
|
easeInCirc: xe,
|
|
1081
1081
|
easeOutCirc: ye,
|
|
1082
1082
|
easeInOutCirc: we
|
|
1083
1083
|
};
|
|
1084
|
-
function
|
|
1085
|
-
return typeof e == "function" ? e : ve[e] ||
|
|
1084
|
+
function Dt(e) {
|
|
1085
|
+
return typeof e == "function" ? e : ve[e] || E;
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return (
|
|
1089
|
-
const o = Math.sqrt(e /
|
|
1087
|
+
function Gt(e = 100, a = 10, t = 1) {
|
|
1088
|
+
return (r) => {
|
|
1089
|
+
const o = Math.sqrt(e / t), i = a / (2 * Math.sqrt(e * t));
|
|
1090
1090
|
if (i < 1) {
|
|
1091
1091
|
const s = o * Math.sqrt(1 - i * i);
|
|
1092
|
-
return 1 - Math.exp(-i * o *
|
|
1092
|
+
return 1 - Math.exp(-i * o * r) * Math.cos(s * r);
|
|
1093
1093
|
} else
|
|
1094
|
-
return 1 - Math.exp(-o *
|
|
1094
|
+
return 1 - Math.exp(-o * r);
|
|
1095
1095
|
};
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function Et(e, a, t, r) {
|
|
1098
1098
|
return (o) => {
|
|
1099
|
-
const i = 3 * a, s = 3 * (
|
|
1099
|
+
const i = 3 * a, s = 3 * (r - a) - i, d = 1 - i - s;
|
|
1100
1100
|
return ((c) => ((d * c + s) * c + i) * c)(o);
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
@@ -1110,23 +1110,23 @@ class L {
|
|
|
1110
1110
|
/**
|
|
1111
1111
|
* مراقبة عنصر
|
|
1112
1112
|
*/
|
|
1113
|
-
observe(a,
|
|
1113
|
+
observe(a, t = {}) {
|
|
1114
1114
|
const {
|
|
1115
|
-
threshold:
|
|
1115
|
+
threshold: r = 0.1,
|
|
1116
1116
|
rootMargin: o = "0px",
|
|
1117
1117
|
triggerOnce: i = !1,
|
|
1118
1118
|
onEnter: s,
|
|
1119
1119
|
onExit: d
|
|
1120
|
-
} =
|
|
1121
|
-
this.elements.set(a,
|
|
1120
|
+
} = t;
|
|
1121
|
+
this.elements.set(a, t), this.observer || (this.observer = new IntersectionObserver(
|
|
1122
1122
|
(l) => {
|
|
1123
1123
|
l.forEach((c) => {
|
|
1124
|
-
var
|
|
1124
|
+
var b, m;
|
|
1125
1125
|
const g = this.elements.get(c.target);
|
|
1126
|
-
g && (c.isIntersecting ? ((
|
|
1126
|
+
g && (c.isIntersecting ? ((b = g.onEnter) == null || b.call(g, c), g.triggerOnce && this.unobserve(c.target)) : (m = g.onExit) == null || m.call(g, c));
|
|
1127
1127
|
});
|
|
1128
1128
|
},
|
|
1129
|
-
{ threshold:
|
|
1129
|
+
{ threshold: r, rootMargin: o }
|
|
1130
1130
|
)), this.observer.observe(a);
|
|
1131
1131
|
}
|
|
1132
1132
|
/**
|
|
@@ -1143,25 +1143,25 @@ class L {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
1145
|
function ke(e, a) {
|
|
1146
|
-
const
|
|
1147
|
-
return
|
|
1146
|
+
const t = new L();
|
|
1147
|
+
return t.observe(e, a), () => t.disconnect();
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1150
|
-
const
|
|
1151
|
-
return e.forEach((
|
|
1149
|
+
function _t(e, a) {
|
|
1150
|
+
const t = new L();
|
|
1151
|
+
return e.forEach((r) => t.observe(r, a)), () => t.disconnect();
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function Ut(e, a, t = {}) {
|
|
1154
1154
|
return ke(e, {
|
|
1155
|
-
...
|
|
1155
|
+
...t,
|
|
1156
1156
|
onEnter: a
|
|
1157
1157
|
});
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1160
|
-
const a = e.getBoundingClientRect(),
|
|
1159
|
+
function Lt(e) {
|
|
1160
|
+
const a = e.getBoundingClientRect(), t = window.innerHeight, r = a.top, o = a.height, i = 1 - (r + o) / (t + o);
|
|
1161
1161
|
return Math.max(0, Math.min(1, i));
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1164
|
-
const
|
|
1163
|
+
function At(e, a = 0) {
|
|
1164
|
+
const t = e.getBoundingClientRect(), r = window.innerHeight, o = window.innerWidth, i = t.top + t.height * a <= r && t.bottom - t.height * a >= 0, s = t.left + t.width * a <= o && t.right - t.width * a >= 0;
|
|
1165
1165
|
return i && s;
|
|
1166
1166
|
}
|
|
1167
1167
|
const Ie = {
|
|
@@ -1264,7 +1264,7 @@ const Ie = {
|
|
|
1264
1264
|
easing: "ease-in",
|
|
1265
1265
|
fill: "both"
|
|
1266
1266
|
}
|
|
1267
|
-
},
|
|
1267
|
+
}, Pe = {
|
|
1268
1268
|
keyframes: [
|
|
1269
1269
|
{
|
|
1270
1270
|
opacity: 1,
|
|
@@ -1280,7 +1280,7 @@ const Ie = {
|
|
|
1280
1280
|
easing: "ease-in",
|
|
1281
1281
|
fill: "both"
|
|
1282
1282
|
}
|
|
1283
|
-
},
|
|
1283
|
+
}, Re = {
|
|
1284
1284
|
keyframes: [
|
|
1285
1285
|
{
|
|
1286
1286
|
opacity: 1,
|
|
@@ -1296,7 +1296,7 @@ const Ie = {
|
|
|
1296
1296
|
easing: "ease-in",
|
|
1297
1297
|
fill: "both"
|
|
1298
1298
|
}
|
|
1299
|
-
},
|
|
1299
|
+
}, Se = {
|
|
1300
1300
|
keyframes: [
|
|
1301
1301
|
{
|
|
1302
1302
|
opacity: 1,
|
|
@@ -1312,7 +1312,7 @@ const Ie = {
|
|
|
1312
1312
|
easing: "ease-in",
|
|
1313
1313
|
fill: "both"
|
|
1314
1314
|
}
|
|
1315
|
-
},
|
|
1315
|
+
}, ze = {
|
|
1316
1316
|
keyframes: [
|
|
1317
1317
|
{
|
|
1318
1318
|
opacity: 0,
|
|
@@ -1344,7 +1344,7 @@ const Ie = {
|
|
|
1344
1344
|
easing: "ease-out",
|
|
1345
1345
|
fill: "both"
|
|
1346
1346
|
}
|
|
1347
|
-
},
|
|
1347
|
+
}, $e = {
|
|
1348
1348
|
keyframes: [
|
|
1349
1349
|
{
|
|
1350
1350
|
opacity: 0,
|
|
@@ -1360,7 +1360,7 @@ const Ie = {
|
|
|
1360
1360
|
easing: "ease-out",
|
|
1361
1361
|
fill: "both"
|
|
1362
1362
|
}
|
|
1363
|
-
},
|
|
1363
|
+
}, De = {
|
|
1364
1364
|
keyframes: [
|
|
1365
1365
|
{
|
|
1366
1366
|
opacity: 0,
|
|
@@ -1376,7 +1376,7 @@ const Ie = {
|
|
|
1376
1376
|
easing: "ease-out",
|
|
1377
1377
|
fill: "both"
|
|
1378
1378
|
}
|
|
1379
|
-
},
|
|
1379
|
+
}, Ge = {
|
|
1380
1380
|
keyframes: [
|
|
1381
1381
|
{
|
|
1382
1382
|
opacity: 1,
|
|
@@ -1392,7 +1392,7 @@ const Ie = {
|
|
|
1392
1392
|
easing: "ease-in",
|
|
1393
1393
|
fill: "both"
|
|
1394
1394
|
}
|
|
1395
|
-
},
|
|
1395
|
+
}, Ee = {
|
|
1396
1396
|
keyframes: [
|
|
1397
1397
|
{
|
|
1398
1398
|
opacity: 1,
|
|
@@ -1408,7 +1408,7 @@ const Ie = {
|
|
|
1408
1408
|
easing: "ease-in",
|
|
1409
1409
|
fill: "both"
|
|
1410
1410
|
}
|
|
1411
|
-
},
|
|
1411
|
+
}, _e = {
|
|
1412
1412
|
keyframes: [
|
|
1413
1413
|
{
|
|
1414
1414
|
opacity: 1,
|
|
@@ -1472,7 +1472,7 @@ const Ie = {
|
|
|
1472
1472
|
easing: "ease-out",
|
|
1473
1473
|
fill: "both"
|
|
1474
1474
|
}
|
|
1475
|
-
},
|
|
1475
|
+
}, Te = {
|
|
1476
1476
|
keyframes: [
|
|
1477
1477
|
{
|
|
1478
1478
|
opacity: 0,
|
|
@@ -1488,7 +1488,7 @@ const Ie = {
|
|
|
1488
1488
|
easing: "ease-out",
|
|
1489
1489
|
fill: "both"
|
|
1490
1490
|
}
|
|
1491
|
-
},
|
|
1491
|
+
}, qe = {
|
|
1492
1492
|
keyframes: [
|
|
1493
1493
|
{
|
|
1494
1494
|
opacity: 0,
|
|
@@ -1504,7 +1504,7 @@ const Ie = {
|
|
|
1504
1504
|
easing: "ease-out",
|
|
1505
1505
|
fill: "both"
|
|
1506
1506
|
}
|
|
1507
|
-
},
|
|
1507
|
+
}, He = {
|
|
1508
1508
|
keyframes: [
|
|
1509
1509
|
{
|
|
1510
1510
|
opacity: 0,
|
|
@@ -1520,7 +1520,7 @@ const Ie = {
|
|
|
1520
1520
|
easing: "ease-out",
|
|
1521
1521
|
fill: "both"
|
|
1522
1522
|
}
|
|
1523
|
-
},
|
|
1523
|
+
}, je = {
|
|
1524
1524
|
keyframes: [
|
|
1525
1525
|
{
|
|
1526
1526
|
opacity: 1,
|
|
@@ -1536,7 +1536,7 @@ const Ie = {
|
|
|
1536
1536
|
easing: "ease-in",
|
|
1537
1537
|
fill: "both"
|
|
1538
1538
|
}
|
|
1539
|
-
},
|
|
1539
|
+
}, Fe = {
|
|
1540
1540
|
keyframes: [
|
|
1541
1541
|
{
|
|
1542
1542
|
opacity: 1,
|
|
@@ -1552,7 +1552,7 @@ const Ie = {
|
|
|
1552
1552
|
easing: "ease-in",
|
|
1553
1553
|
fill: "both"
|
|
1554
1554
|
}
|
|
1555
|
-
},
|
|
1555
|
+
}, We = {
|
|
1556
1556
|
keyframes: [
|
|
1557
1557
|
{
|
|
1558
1558
|
opacity: 1,
|
|
@@ -1568,7 +1568,7 @@ const Ie = {
|
|
|
1568
1568
|
easing: "ease-in",
|
|
1569
1569
|
fill: "both"
|
|
1570
1570
|
}
|
|
1571
|
-
},
|
|
1571
|
+
}, Qe = {
|
|
1572
1572
|
keyframes: [
|
|
1573
1573
|
{
|
|
1574
1574
|
opacity: 0,
|
|
@@ -1584,7 +1584,7 @@ const Ie = {
|
|
|
1584
1584
|
easing: "ease-out",
|
|
1585
1585
|
fill: "both"
|
|
1586
1586
|
}
|
|
1587
|
-
},
|
|
1587
|
+
}, Ve = {
|
|
1588
1588
|
keyframes: [
|
|
1589
1589
|
{
|
|
1590
1590
|
opacity: 0,
|
|
@@ -1694,7 +1694,7 @@ const Ie = {
|
|
|
1694
1694
|
easing: "ease-out",
|
|
1695
1695
|
fill: "both"
|
|
1696
1696
|
}
|
|
1697
|
-
},
|
|
1697
|
+
}, ta = {
|
|
1698
1698
|
keyframes: [
|
|
1699
1699
|
{
|
|
1700
1700
|
opacity: 1,
|
|
@@ -1710,7 +1710,7 @@ const Ie = {
|
|
|
1710
1710
|
easing: "ease-in",
|
|
1711
1711
|
fill: "both"
|
|
1712
1712
|
}
|
|
1713
|
-
},
|
|
1713
|
+
}, ra = {
|
|
1714
1714
|
keyframes: [
|
|
1715
1715
|
{ transform: "rotate(0deg)" },
|
|
1716
1716
|
{ transform: "rotate(360deg)" }
|
|
@@ -1886,7 +1886,7 @@ const Ie = {
|
|
|
1886
1886
|
easing: "ease-in",
|
|
1887
1887
|
fill: "both"
|
|
1888
1888
|
}
|
|
1889
|
-
},
|
|
1889
|
+
}, fa = {
|
|
1890
1890
|
keyframes: [
|
|
1891
1891
|
{ transform: "translateY(0)" },
|
|
1892
1892
|
{ transform: "translateY(-30px)" },
|
|
@@ -1897,7 +1897,7 @@ const Ie = {
|
|
|
1897
1897
|
easing: "ease-out",
|
|
1898
1898
|
fill: "both"
|
|
1899
1899
|
}
|
|
1900
|
-
},
|
|
1900
|
+
}, ua = {
|
|
1901
1901
|
keyframes: [
|
|
1902
1902
|
{ transform: "translateY(0)", offset: 0 },
|
|
1903
1903
|
{ transform: "translateY(-20px)", offset: 0.4 },
|
|
@@ -1911,7 +1911,7 @@ const Ie = {
|
|
|
1911
1911
|
iterations: 1 / 0,
|
|
1912
1912
|
fill: "both"
|
|
1913
1913
|
}
|
|
1914
|
-
},
|
|
1914
|
+
}, ma = {
|
|
1915
1915
|
keyframes: [
|
|
1916
1916
|
{ transform: "translateX(0)" },
|
|
1917
1917
|
{ transform: "translateX(-10px)" },
|
|
@@ -1925,7 +1925,7 @@ const Ie = {
|
|
|
1925
1925
|
easing: "ease-in-out",
|
|
1926
1926
|
fill: "both"
|
|
1927
1927
|
}
|
|
1928
|
-
},
|
|
1928
|
+
}, ba = {
|
|
1929
1929
|
keyframes: [
|
|
1930
1930
|
{ transform: "translateY(0)" },
|
|
1931
1931
|
{ transform: "translateY(-10px)" },
|
|
@@ -2063,6 +2063,143 @@ const Ie = {
|
|
|
2063
2063
|
easing: "ease-in-out",
|
|
2064
2064
|
fill: "both"
|
|
2065
2065
|
}
|
|
2066
|
+
}, Oa = {
|
|
2067
|
+
keyframes: [
|
|
2068
|
+
{ width: "0", opacity: 0 },
|
|
2069
|
+
{ width: "0", opacity: 1, offset: 0.01 },
|
|
2070
|
+
{ width: "100%", opacity: 1 }
|
|
2071
|
+
],
|
|
2072
|
+
config: { duration: 2e3, easing: "steps(40, end)" }
|
|
2073
|
+
}, Ca = {
|
|
2074
|
+
keyframes: [
|
|
2075
|
+
{ transform: "translate(0)", offset: 0 },
|
|
2076
|
+
{ transform: "translate(-2px, 2px)", offset: 0.2 },
|
|
2077
|
+
{ transform: "translate(-2px, -2px)", offset: 0.4 },
|
|
2078
|
+
{ transform: "translate(2px, 2px)", offset: 0.6 },
|
|
2079
|
+
{ transform: "translate(2px, -2px)", offset: 0.8 },
|
|
2080
|
+
{ transform: "translate(0)", offset: 1 }
|
|
2081
|
+
],
|
|
2082
|
+
config: { duration: 500, easing: "linear" }
|
|
2083
|
+
}, Ya = {
|
|
2084
|
+
keyframes: [
|
|
2085
|
+
{ transform: "translateY(0)", offset: 0 },
|
|
2086
|
+
{ transform: "translateY(-10px)", offset: 0.5 },
|
|
2087
|
+
{ transform: "translateY(0)", offset: 1 }
|
|
2088
|
+
],
|
|
2089
|
+
config: { duration: 600, easing: "ease-in-out" }
|
|
2090
|
+
}, Xa = {
|
|
2091
|
+
keyframes: [
|
|
2092
|
+
{ filter: "blur(12px)", opacity: 0 },
|
|
2093
|
+
{ filter: "blur(0)", opacity: 1 }
|
|
2094
|
+
],
|
|
2095
|
+
config: { duration: 800, easing: "ease-out" }
|
|
2096
|
+
}, Pa = {
|
|
2097
|
+
keyframes: [
|
|
2098
|
+
{ letterSpacing: "-0.5em", opacity: 0 },
|
|
2099
|
+
{ letterSpacing: "-0.5em", opacity: 0.6, offset: 0.4 },
|
|
2100
|
+
{ letterSpacing: "normal", opacity: 1 }
|
|
2101
|
+
],
|
|
2102
|
+
config: { duration: 700, easing: "cubic-bezier(0.215, 0.610, 0.355, 1.000)" }
|
|
2103
|
+
}, Ra = {
|
|
2104
|
+
keyframes: [
|
|
2105
|
+
{ letterSpacing: "normal", opacity: 1 },
|
|
2106
|
+
{ letterSpacing: "0em", opacity: 0.6, offset: 0.5 },
|
|
2107
|
+
{ letterSpacing: "-0.5em", opacity: 0 }
|
|
2108
|
+
],
|
|
2109
|
+
config: { duration: 700, easing: "cubic-bezier(0.550, 0.085, 0.680, 0.530)" }
|
|
2110
|
+
}, Sa = {
|
|
2111
|
+
keyframes: [
|
|
2112
|
+
{ filter: "blur(12px)", opacity: 0 },
|
|
2113
|
+
{ filter: "blur(0)", opacity: 1 }
|
|
2114
|
+
],
|
|
2115
|
+
config: { duration: 800, easing: "cubic-bezier(0.550, 0.085, 0.680, 0.530)" }
|
|
2116
|
+
}, za = {
|
|
2117
|
+
keyframes: [
|
|
2118
|
+
{ textShadow: "0 0 #555, 0 0 #555, 0 0 #555, 0 0 #555" },
|
|
2119
|
+
{ textShadow: "1px 1px #555, 2px 2px #555, 3px 3px #555, 4px 4px #555" }
|
|
2120
|
+
],
|
|
2121
|
+
config: { duration: 600, easing: "ease-out" }
|
|
2122
|
+
}, Ba = {
|
|
2123
|
+
keyframes: [
|
|
2124
|
+
{ opacity: 1, offset: 0 },
|
|
2125
|
+
{ opacity: 1, offset: 0.4199 },
|
|
2126
|
+
{ opacity: 0, offset: 0.42 },
|
|
2127
|
+
{ opacity: 0, offset: 0.43 },
|
|
2128
|
+
{ opacity: 1, offset: 0.4301 },
|
|
2129
|
+
{ opacity: 1, offset: 0.4799 },
|
|
2130
|
+
{ opacity: 0, offset: 0.48 },
|
|
2131
|
+
{ opacity: 0, offset: 0.49 },
|
|
2132
|
+
{ opacity: 1, offset: 0.4901 },
|
|
2133
|
+
{ opacity: 1, offset: 1 }
|
|
2134
|
+
],
|
|
2135
|
+
config: { duration: 1e3, easing: "linear" }
|
|
2136
|
+
}, $a = {
|
|
2137
|
+
keyframes: [
|
|
2138
|
+
{ transform: "scale(0)", transformOrigin: "50% 50%", opacity: 0 },
|
|
2139
|
+
{ transform: "scale(1)", transformOrigin: "50% 50%", opacity: 1 }
|
|
2140
|
+
],
|
|
2141
|
+
config: { duration: 500, easing: "cubic-bezier(0.250, 0.460, 0.450, 0.940)" }
|
|
2142
|
+
}, Da = {
|
|
2143
|
+
keyframes: [
|
|
2144
|
+
{ transform: "rotate(-360deg)", opacity: 0 },
|
|
2145
|
+
{ transform: "rotate(0)", opacity: 1 }
|
|
2146
|
+
],
|
|
2147
|
+
config: { duration: 600, easing: "ease-out" }
|
|
2148
|
+
}, Ga = {
|
|
2149
|
+
keyframes: [
|
|
2150
|
+
{ transform: "scale(0.5)", opacity: 0 },
|
|
2151
|
+
{ transform: "scale(1)", opacity: 1 }
|
|
2152
|
+
],
|
|
2153
|
+
config: { duration: 400, easing: "cubic-bezier(0.390, 0.575, 0.565, 1.000)" }
|
|
2154
|
+
}, Ea = {
|
|
2155
|
+
keyframes: [
|
|
2156
|
+
{ transform: "translateX(0) rotate(0)", offset: 0 },
|
|
2157
|
+
{ transform: "translateX(-25px) rotate(-5deg)", offset: 0.15 },
|
|
2158
|
+
{ transform: "translateX(20px) rotate(3deg)", offset: 0.3 },
|
|
2159
|
+
{ transform: "translateX(-15px) rotate(-3deg)", offset: 0.45 },
|
|
2160
|
+
{ transform: "translateX(10px) rotate(2deg)", offset: 0.6 },
|
|
2161
|
+
{ transform: "translateX(-5px) rotate(-1deg)", offset: 0.75 },
|
|
2162
|
+
{ transform: "translateX(0) rotate(0)", offset: 1 }
|
|
2163
|
+
],
|
|
2164
|
+
config: { duration: 1e3, easing: "ease-in-out" }
|
|
2165
|
+
}, _a = {
|
|
2166
|
+
keyframes: [
|
|
2167
|
+
{
|
|
2168
|
+
transform: "rotateX(-100deg)",
|
|
2169
|
+
transformOrigin: "top",
|
|
2170
|
+
opacity: 0
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
transform: "rotateX(0deg)",
|
|
2174
|
+
transformOrigin: "top",
|
|
2175
|
+
opacity: 1
|
|
2176
|
+
}
|
|
2177
|
+
],
|
|
2178
|
+
config: { duration: 600, easing: "cubic-bezier(0.175, 0.885, 0.320, 1.275)" }
|
|
2179
|
+
}, Ua = {
|
|
2180
|
+
keyframes: [
|
|
2181
|
+
{
|
|
2182
|
+
transform: "translateX(-1000px) scaleX(2.5) scaleY(0.2)",
|
|
2183
|
+
filter: "blur(40px)",
|
|
2184
|
+
opacity: 0
|
|
2185
|
+
},
|
|
2186
|
+
{
|
|
2187
|
+
transform: "translateX(0) scaleY(1) scaleX(1)",
|
|
2188
|
+
filter: "blur(0)",
|
|
2189
|
+
opacity: 1
|
|
2190
|
+
}
|
|
2191
|
+
],
|
|
2192
|
+
config: { duration: 800, easing: "cubic-bezier(0.230, 1.000, 0.320, 1.000)" }
|
|
2193
|
+
}, La = {
|
|
2194
|
+
keyframes: [
|
|
2195
|
+
{
|
|
2196
|
+
transform: "scale(1) translateX(0) translateY(0)"
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
transform: "scale(1.2) translateX(15px) translateY(15px)"
|
|
2200
|
+
}
|
|
2201
|
+
],
|
|
2202
|
+
config: { duration: 5e3, easing: "ease-out" }
|
|
2066
2203
|
}, I = {
|
|
2067
2204
|
// Fade (10)
|
|
2068
2205
|
fadeIn: Ie,
|
|
@@ -2072,37 +2209,37 @@ const Ie = {
|
|
|
2072
2209
|
fadeInRight: Ce,
|
|
2073
2210
|
fadeOut: Ye,
|
|
2074
2211
|
fadeOutUp: Xe,
|
|
2075
|
-
fadeOutDown:
|
|
2076
|
-
fadeOutLeft:
|
|
2077
|
-
fadeOutRight:
|
|
2212
|
+
fadeOutDown: Pe,
|
|
2213
|
+
fadeOutLeft: Re,
|
|
2214
|
+
fadeOutRight: Se,
|
|
2078
2215
|
// Slide (8)
|
|
2079
|
-
slideInUp:
|
|
2216
|
+
slideInUp: ze,
|
|
2080
2217
|
slideInDown: Be,
|
|
2081
|
-
slideInLeft:
|
|
2082
|
-
slideInRight:
|
|
2083
|
-
slideOutUp:
|
|
2084
|
-
slideOutDown:
|
|
2085
|
-
slideOutLeft:
|
|
2218
|
+
slideInLeft: $e,
|
|
2219
|
+
slideInRight: De,
|
|
2220
|
+
slideOutUp: Ge,
|
|
2221
|
+
slideOutDown: Ee,
|
|
2222
|
+
slideOutLeft: _e,
|
|
2086
2223
|
slideOutRight: Ue,
|
|
2087
2224
|
// Zoom (10)
|
|
2088
2225
|
zoomIn: Le,
|
|
2089
2226
|
zoomInUp: Ae,
|
|
2090
|
-
zoomInDown:
|
|
2091
|
-
zoomInLeft:
|
|
2092
|
-
zoomInRight:
|
|
2093
|
-
zoomOut:
|
|
2094
|
-
zoomOutUp:
|
|
2095
|
-
zoomOutDown:
|
|
2096
|
-
zoomInBig:
|
|
2097
|
-
zoomInBounce:
|
|
2227
|
+
zoomInDown: Te,
|
|
2228
|
+
zoomInLeft: qe,
|
|
2229
|
+
zoomInRight: He,
|
|
2230
|
+
zoomOut: je,
|
|
2231
|
+
zoomOutUp: Fe,
|
|
2232
|
+
zoomOutDown: We,
|
|
2233
|
+
zoomInBig: Qe,
|
|
2234
|
+
zoomInBounce: Ve,
|
|
2098
2235
|
// Rotate (10)
|
|
2099
2236
|
rotateIn: Ze,
|
|
2100
2237
|
rotateInUpLeft: Je,
|
|
2101
2238
|
rotateInUpRight: Ke,
|
|
2102
2239
|
rotateInDownLeft: ea,
|
|
2103
2240
|
rotateInDownRight: aa,
|
|
2104
|
-
rotateOut:
|
|
2105
|
-
spin:
|
|
2241
|
+
rotateOut: ta,
|
|
2242
|
+
spin: ra,
|
|
2106
2243
|
spinReverse: na,
|
|
2107
2244
|
spinSlow: oa,
|
|
2108
2245
|
spinFast: ia,
|
|
@@ -2113,11 +2250,11 @@ const Ie = {
|
|
|
2113
2250
|
bounceInLeft: ca,
|
|
2114
2251
|
bounceInRight: ga,
|
|
2115
2252
|
bounceOut: pa,
|
|
2116
|
-
bounce:
|
|
2117
|
-
bounceLoop:
|
|
2118
|
-
// Attention (
|
|
2119
|
-
shake:
|
|
2120
|
-
shakeY:
|
|
2253
|
+
bounce: fa,
|
|
2254
|
+
bounceLoop: ua,
|
|
2255
|
+
// Attention (11)
|
|
2256
|
+
shake: ma,
|
|
2257
|
+
shakeY: ba,
|
|
2121
2258
|
pulse: ha,
|
|
2122
2259
|
pulseLoop: xa,
|
|
2123
2260
|
heartbeat: ya,
|
|
@@ -2126,22 +2263,56 @@ const Ie = {
|
|
|
2126
2263
|
jello: ka,
|
|
2127
2264
|
swing: Ia,
|
|
2128
2265
|
wobble: Na,
|
|
2129
|
-
tada: Ma
|
|
2266
|
+
tada: Ma,
|
|
2267
|
+
// ✅ Text (16) - NEW!
|
|
2268
|
+
typing: Oa,
|
|
2269
|
+
glitch: Ca,
|
|
2270
|
+
waveText: Ya,
|
|
2271
|
+
blurIn: Xa,
|
|
2272
|
+
trackingInExpand: Pa,
|
|
2273
|
+
trackingOutContract: Ra,
|
|
2274
|
+
focusIn: Sa,
|
|
2275
|
+
textShadowPop: za,
|
|
2276
|
+
flicker: Ba,
|
|
2277
|
+
textPopUp: $a,
|
|
2278
|
+
textRotateIn: Da,
|
|
2279
|
+
textScaleUp: Ga,
|
|
2280
|
+
textWobble: Ea,
|
|
2281
|
+
swingInTop: _a,
|
|
2282
|
+
slideInBlurred: Ua,
|
|
2283
|
+
kenburns: La
|
|
2130
2284
|
};
|
|
2131
|
-
function
|
|
2285
|
+
function Tt(e) {
|
|
2132
2286
|
return I[e];
|
|
2133
2287
|
}
|
|
2134
|
-
function
|
|
2288
|
+
function Aa() {
|
|
2135
2289
|
return Object.keys(I);
|
|
2136
2290
|
}
|
|
2137
|
-
function
|
|
2138
|
-
return
|
|
2291
|
+
function qt(e) {
|
|
2292
|
+
return e === "text" ? [
|
|
2293
|
+
"typing",
|
|
2294
|
+
"glitch",
|
|
2295
|
+
"waveText",
|
|
2296
|
+
"blurIn",
|
|
2297
|
+
"trackingInExpand",
|
|
2298
|
+
"trackingOutContract",
|
|
2299
|
+
"focusIn",
|
|
2300
|
+
"textShadowPop",
|
|
2301
|
+
"flicker",
|
|
2302
|
+
"textPopUp",
|
|
2303
|
+
"textRotateIn",
|
|
2304
|
+
"textScaleUp",
|
|
2305
|
+
"textWobble",
|
|
2306
|
+
"swingInTop",
|
|
2307
|
+
"slideInBlurred",
|
|
2308
|
+
"kenburns"
|
|
2309
|
+
] : Aa().filter((a) => a.startsWith(e));
|
|
2139
2310
|
}
|
|
2140
|
-
const
|
|
2311
|
+
const Ta = ({
|
|
2141
2312
|
children: e,
|
|
2142
2313
|
preset: a = "fadeIn",
|
|
2143
|
-
duration:
|
|
2144
|
-
delay:
|
|
2314
|
+
duration: t,
|
|
2315
|
+
delay: r,
|
|
2145
2316
|
easing: o,
|
|
2146
2317
|
iterations: i,
|
|
2147
2318
|
trigger: s = "mount",
|
|
@@ -2149,11 +2320,11 @@ const Ca = ({
|
|
|
2149
2320
|
triggerOnce: l = !0,
|
|
2150
2321
|
onAnimationStart: c,
|
|
2151
2322
|
onAnimationEnd: g,
|
|
2152
|
-
className:
|
|
2153
|
-
style:
|
|
2323
|
+
className: b = "",
|
|
2324
|
+
style: m = {}
|
|
2154
2325
|
}) => {
|
|
2155
|
-
const p =
|
|
2156
|
-
var z,
|
|
2326
|
+
const p = f(null), h = f(null), x = f(null), N = f(!1), k = async () => {
|
|
2327
|
+
var S, z, B, $;
|
|
2157
2328
|
if (!p.current || l && N.current) return;
|
|
2158
2329
|
const w = I[a];
|
|
2159
2330
|
if (!w) {
|
|
@@ -2163,10 +2334,10 @@ const Ca = ({
|
|
|
2163
2334
|
h.current || (h.current = new y(p.current)), c == null || c();
|
|
2164
2335
|
const M = {
|
|
2165
2336
|
...w.config,
|
|
2166
|
-
duration:
|
|
2167
|
-
delay:
|
|
2337
|
+
duration: t ?? ((S = w.config) == null ? void 0 : S.duration),
|
|
2338
|
+
delay: r ?? ((z = w.config) == null ? void 0 : z.delay),
|
|
2168
2339
|
easing: o ?? ((B = w.config) == null ? void 0 : B.easing),
|
|
2169
|
-
iterations: i ?? ((
|
|
2340
|
+
iterations: i ?? (($ = w.config) == null ? void 0 : $.iterations)
|
|
2170
2341
|
};
|
|
2171
2342
|
try {
|
|
2172
2343
|
await h.current.animate(w.keyframes, M), N.current = !0, g == null || g();
|
|
@@ -2176,7 +2347,7 @@ const Ca = ({
|
|
|
2176
2347
|
};
|
|
2177
2348
|
v(() => {
|
|
2178
2349
|
s === "mount" && k();
|
|
2179
|
-
}, [a,
|
|
2350
|
+
}, [a, t, r, o, i]), v(() => {
|
|
2180
2351
|
if (!(s !== "scroll" || !p.current))
|
|
2181
2352
|
return x.current = new IntersectionObserver(
|
|
2182
2353
|
(w) => {
|
|
@@ -2189,9 +2360,9 @@ const Ca = ({
|
|
|
2189
2360
|
x.current && x.current.disconnect();
|
|
2190
2361
|
};
|
|
2191
2362
|
}, [s, d, l, a]);
|
|
2192
|
-
const
|
|
2363
|
+
const P = () => {
|
|
2193
2364
|
s === "hover" && k();
|
|
2194
|
-
},
|
|
2365
|
+
}, R = () => {
|
|
2195
2366
|
s === "click" && k();
|
|
2196
2367
|
};
|
|
2197
2368
|
return v(() => () => {
|
|
@@ -2200,106 +2371,106 @@ const Ca = ({
|
|
|
2200
2371
|
"div",
|
|
2201
2372
|
{
|
|
2202
2373
|
ref: p,
|
|
2203
|
-
className:
|
|
2204
|
-
style:
|
|
2205
|
-
onMouseEnter: s === "hover" ?
|
|
2206
|
-
onClick: s === "click" ?
|
|
2374
|
+
className: b,
|
|
2375
|
+
style: m,
|
|
2376
|
+
onMouseEnter: s === "hover" ? P : void 0,
|
|
2377
|
+
onClick: s === "click" ? R : void 0,
|
|
2207
2378
|
children: e
|
|
2208
2379
|
}
|
|
2209
2380
|
);
|
|
2210
2381
|
};
|
|
2211
|
-
|
|
2212
|
-
function
|
|
2213
|
-
const e =
|
|
2214
|
-
e.current && (a.current || (a.current = new y(e.current)), await a.current.animate(
|
|
2382
|
+
Ta.displayName = "TeleMotion";
|
|
2383
|
+
function Ht() {
|
|
2384
|
+
const e = f(null), a = f(null), t = async (r, o) => {
|
|
2385
|
+
e.current && (a.current || (a.current = new y(e.current)), await a.current.animate(r, o));
|
|
2215
2386
|
};
|
|
2216
2387
|
return v(() => () => {
|
|
2217
2388
|
a.current && a.current.stop();
|
|
2218
|
-
}, []), [e,
|
|
2389
|
+
}, []), [e, t];
|
|
2219
2390
|
}
|
|
2220
|
-
function
|
|
2221
|
-
const
|
|
2222
|
-
if (!
|
|
2391
|
+
function jt(e, a) {
|
|
2392
|
+
const t = f(null), r = f(null), o = async () => {
|
|
2393
|
+
if (!t.current) return;
|
|
2223
2394
|
const i = I[e];
|
|
2224
2395
|
if (!i) {
|
|
2225
2396
|
console.warn(`[usePresetAnimation] Preset "${e}" not found`);
|
|
2226
2397
|
return;
|
|
2227
2398
|
}
|
|
2228
|
-
|
|
2399
|
+
r.current || (r.current = new y(t.current));
|
|
2229
2400
|
const s = {
|
|
2230
2401
|
...i.config,
|
|
2231
2402
|
...a
|
|
2232
2403
|
};
|
|
2233
|
-
await
|
|
2404
|
+
await r.current.animate(i.keyframes, s);
|
|
2234
2405
|
};
|
|
2235
2406
|
return v(() => {
|
|
2236
2407
|
(a == null ? void 0 : a.trigger) !== "manual" && o();
|
|
2237
2408
|
}, [e]), v(() => () => {
|
|
2238
|
-
|
|
2239
|
-
}, []), [
|
|
2409
|
+
r.current && r.current.stop();
|
|
2410
|
+
}, []), [t, o];
|
|
2240
2411
|
}
|
|
2241
|
-
function
|
|
2242
|
-
const
|
|
2412
|
+
function Ft(e, a) {
|
|
2413
|
+
const t = f(null), r = f(null), o = f(null), i = f(!1);
|
|
2243
2414
|
return v(() => {
|
|
2244
|
-
if (!
|
|
2415
|
+
if (!t.current) return;
|
|
2245
2416
|
const s = I[e];
|
|
2246
2417
|
if (!s) {
|
|
2247
2418
|
console.warn(`[useScrollAnimation] Preset "${e}" not found`);
|
|
2248
2419
|
return;
|
|
2249
2420
|
}
|
|
2250
|
-
return
|
|
2421
|
+
return r.current = new y(t.current), o.current = new IntersectionObserver(
|
|
2251
2422
|
(d) => {
|
|
2252
2423
|
d.forEach((l) => {
|
|
2253
|
-
if (l.isIntersecting && !i.current &&
|
|
2424
|
+
if (l.isIntersecting && !i.current && r.current) {
|
|
2254
2425
|
const c = {
|
|
2255
2426
|
...s.config,
|
|
2256
2427
|
...a == null ? void 0 : a.config
|
|
2257
2428
|
};
|
|
2258
|
-
|
|
2429
|
+
r.current.animate(s.keyframes, c), i.current = !0, (a == null ? void 0 : a.triggerOnce) !== !1 && o.current && o.current.unobserve(l.target);
|
|
2259
2430
|
}
|
|
2260
2431
|
});
|
|
2261
2432
|
},
|
|
2262
2433
|
{ threshold: (a == null ? void 0 : a.threshold) ?? 0.1 }
|
|
2263
|
-
), o.current.observe(
|
|
2264
|
-
o.current && o.current.disconnect(),
|
|
2434
|
+
), o.current.observe(t.current), () => {
|
|
2435
|
+
o.current && o.current.disconnect(), r.current && r.current.stop();
|
|
2265
2436
|
};
|
|
2266
|
-
}, [e, a == null ? void 0 : a.threshold, a == null ? void 0 : a.triggerOnce]),
|
|
2437
|
+
}, [e, a == null ? void 0 : a.threshold, a == null ? void 0 : a.triggerOnce]), t;
|
|
2267
2438
|
}
|
|
2268
|
-
function
|
|
2269
|
-
const
|
|
2270
|
-
return [
|
|
2271
|
-
if (!
|
|
2439
|
+
function Wt(e, a = 100, t) {
|
|
2440
|
+
const r = f(null);
|
|
2441
|
+
return [r, async () => {
|
|
2442
|
+
if (!r.current) return;
|
|
2272
2443
|
const i = I[e];
|
|
2273
2444
|
if (!i) return;
|
|
2274
|
-
const d = Array.from(
|
|
2445
|
+
const d = Array.from(r.current.children).map((l, c) => new y(l).animate(i.keyframes, {
|
|
2275
2446
|
...i.config,
|
|
2276
|
-
...
|
|
2277
|
-
delay: ((
|
|
2447
|
+
...t,
|
|
2448
|
+
delay: ((t == null ? void 0 : t.delay) ?? 0) + a * c
|
|
2278
2449
|
}));
|
|
2279
2450
|
await Promise.all(d);
|
|
2280
2451
|
}];
|
|
2281
2452
|
}
|
|
2282
|
-
function
|
|
2283
|
-
const
|
|
2284
|
-
return [
|
|
2285
|
-
if (!
|
|
2453
|
+
function Qt(e, a) {
|
|
2454
|
+
const t = f(null), r = f(null);
|
|
2455
|
+
return [t, { onMouseEnter: async () => {
|
|
2456
|
+
if (!t.current) return;
|
|
2286
2457
|
const s = I[e];
|
|
2287
|
-
s && (
|
|
2458
|
+
s && (r.current || (r.current = new y(t.current)), await r.current.animate(s.keyframes, {
|
|
2288
2459
|
...s.config,
|
|
2289
2460
|
...a
|
|
2290
2461
|
}));
|
|
2291
2462
|
}, onMouseLeave: () => {
|
|
2292
|
-
|
|
2463
|
+
r.current && r.current.stop();
|
|
2293
2464
|
} }];
|
|
2294
2465
|
}
|
|
2295
|
-
function
|
|
2296
|
-
const a =
|
|
2466
|
+
function Vt(e = 0.1) {
|
|
2467
|
+
const a = f(null), [t, r] = G(!1);
|
|
2297
2468
|
return v(() => {
|
|
2298
2469
|
if (!a.current) return;
|
|
2299
2470
|
const o = new IntersectionObserver(
|
|
2300
2471
|
(i) => {
|
|
2301
2472
|
i.forEach((s) => {
|
|
2302
|
-
|
|
2473
|
+
r(s.isIntersecting);
|
|
2303
2474
|
});
|
|
2304
2475
|
},
|
|
2305
2476
|
{ threshold: e }
|
|
@@ -2307,74 +2478,74 @@ function Br(e = 0.1) {
|
|
|
2307
2478
|
return o.observe(a.current), () => {
|
|
2308
2479
|
o.disconnect();
|
|
2309
2480
|
};
|
|
2310
|
-
}, [e]), [a,
|
|
2481
|
+
}, [e]), [a, t];
|
|
2311
2482
|
}
|
|
2312
2483
|
export {
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2484
|
+
gt as AnimatedBounce,
|
|
2485
|
+
pt as AnimatedGlow,
|
|
2486
|
+
ct as AnimatedPulse,
|
|
2487
|
+
dt as AnimatedShimmer,
|
|
2317
2488
|
y as Animator,
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2489
|
+
ja as Button,
|
|
2490
|
+
yt as Button3DBlue,
|
|
2491
|
+
vt as Button3DGreen,
|
|
2492
|
+
wt as Button3DPink,
|
|
2493
|
+
Mt as Container,
|
|
2494
|
+
Yt as ContainerButton,
|
|
2495
|
+
Ct as ContainerContent,
|
|
2496
|
+
Ot as ContainerImage,
|
|
2497
|
+
Xt as FeatureCard,
|
|
2498
|
+
bt as GhostBlue,
|
|
2499
|
+
xt as GhostPurple,
|
|
2500
|
+
ht as GhostRed,
|
|
2501
|
+
ot as GlassBlue,
|
|
2331
2502
|
O as GlassButton,
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2503
|
+
lt as GlassPink,
|
|
2504
|
+
it as GlassPurple,
|
|
2505
|
+
st as GlassWhite,
|
|
2506
|
+
at as GradientBlueGreen,
|
|
2507
|
+
rt as GradientCyan,
|
|
2508
|
+
tt as GradientOrangeRed,
|
|
2509
|
+
et as GradientPurplePink,
|
|
2510
|
+
nt as GradientSunset,
|
|
2511
|
+
Fa as Home,
|
|
2512
|
+
kt as NeonBlue,
|
|
2513
|
+
Nt as NeonGreen,
|
|
2514
|
+
It as NeonPink,
|
|
2515
|
+
ft as OutlinedBlue,
|
|
2516
|
+
mt as OutlinedGradient,
|
|
2517
|
+
ut as OutlinedPurple,
|
|
2518
|
+
Pt as ProductCard,
|
|
2348
2519
|
L as ScrollObserver,
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2520
|
+
Qa as SolidBlue,
|
|
2521
|
+
Za as SolidGreen,
|
|
2522
|
+
Ka as SolidPill,
|
|
2523
|
+
Ja as SolidPurple,
|
|
2524
|
+
Va as SolidRed,
|
|
2525
|
+
Rt as StatCard,
|
|
2526
|
+
Ta as TeleMotion,
|
|
2527
|
+
zt as animateGroup,
|
|
2528
|
+
Ut as animateOnScroll,
|
|
2529
|
+
Et as bezier,
|
|
2530
|
+
St as createAnimator,
|
|
2360
2531
|
ve as easings,
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2532
|
+
Dt as getEasing,
|
|
2533
|
+
Tt as getPreset,
|
|
2534
|
+
Aa as getPresetNames,
|
|
2535
|
+
qt as getPresetsByCategory,
|
|
2536
|
+
Lt as getScrollProgress,
|
|
2537
|
+
Wa as gradients,
|
|
2538
|
+
At as isInViewport,
|
|
2368
2539
|
ke as observeElement,
|
|
2369
|
-
|
|
2370
|
-
|
|
2540
|
+
_t as observeElements,
|
|
2541
|
+
$t as parallel,
|
|
2371
2542
|
I as presets,
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2543
|
+
Bt as sequence,
|
|
2544
|
+
Gt as spring,
|
|
2545
|
+
Ht as useAnimator,
|
|
2546
|
+
Qt as useHoverAnimation,
|
|
2547
|
+
Vt as useInView,
|
|
2548
|
+
jt as usePresetAnimation,
|
|
2549
|
+
Ft as useScrollAnimation,
|
|
2550
|
+
Wt as useStagger
|
|
2380
2551
|
};
|