telecop 0.1.28 → 0.1.30
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/core/animator.d.ts +75 -0
- package/dist/animations/core/easing.d.ts +86 -0
- package/dist/animations/core/observer.d.ts +48 -0
- package/dist/animations/presets/attention.d.ts +12 -0
- package/dist/animations/presets/bounce.d.ts +9 -0
- package/dist/animations/presets/fade.d.ts +15 -0
- package/dist/animations/presets/index.d.ts +80 -0
- package/dist/animations/presets/rotate.d.ts +11 -0
- package/dist/animations/presets/slide.d.ts +9 -0
- package/dist/animations/presets/zoom.d.ts +11 -0
- package/dist/animations/react/TeleMotion.d.ts +18 -0
- package/dist/animations/react/hooks.d.ts +21 -0
- package/dist/animations/react/index.d.ts +3 -0
- package/dist/animations/test.d.ts +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +14 -14
- package/dist/index.mjs +1611 -232
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
children:
|
|
6
|
-
variant:
|
|
7
|
-
size:
|
|
8
|
-
onClick:
|
|
9
|
-
disabled:
|
|
10
|
-
className:
|
|
2
|
+
import { jsx as n, jsxs as m, Fragment as q } from "react/jsx-runtime";
|
|
3
|
+
import H, { useState as S, useRef as u, useEffect as v } from "react";
|
|
4
|
+
const Ra = ({
|
|
5
|
+
children: e,
|
|
6
|
+
variant: a = "primary",
|
|
7
|
+
size: r = "md",
|
|
8
|
+
onClick: t,
|
|
9
|
+
disabled: o = !1,
|
|
10
|
+
className: i = ""
|
|
11
11
|
}) => {
|
|
12
|
-
const s = "font-semibold rounded-lg transition-all duration-200 cursor-pointer",
|
|
12
|
+
const s = "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"
|
|
16
|
-
},
|
|
16
|
+
}, l = {
|
|
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
|
-
},
|
|
21
|
-
return /* @__PURE__ */
|
|
20
|
+
}, c = o ? "opacity-50 cursor-not-allowed" : "";
|
|
21
|
+
return /* @__PURE__ */ n(
|
|
22
22
|
"button",
|
|
23
23
|
{
|
|
24
|
-
className: `${s} ${
|
|
25
|
-
onClick:
|
|
26
|
-
disabled:
|
|
27
|
-
children:
|
|
24
|
+
className: `${s} ${d[a]} ${l[r]} ${c} ${i}`,
|
|
25
|
+
onClick: t,
|
|
26
|
+
disabled: o,
|
|
27
|
+
children: e
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
|
-
},
|
|
31
|
-
children:
|
|
32
|
-
variant:
|
|
33
|
-
size:
|
|
34
|
-
onClick:
|
|
35
|
-
disabled:
|
|
36
|
-
className:
|
|
30
|
+
}, O = ({
|
|
31
|
+
children: e,
|
|
32
|
+
variant: a = "blur",
|
|
33
|
+
size: r = "md",
|
|
34
|
+
onClick: t,
|
|
35
|
+
disabled: o = !1,
|
|
36
|
+
className: i = ""
|
|
37
37
|
}) => {
|
|
38
|
-
const [s,
|
|
39
|
-
if (!
|
|
40
|
-
const h =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, 800),
|
|
44
|
-
}
|
|
45
|
-
},
|
|
38
|
+
const [s, d] = S([]), l = (p) => {
|
|
39
|
+
if (!o && t) {
|
|
40
|
+
const h = p.currentTarget.getBoundingClientRect(), x = p.clientX - h.left, N = p.clientY - h.top, k = Date.now();
|
|
41
|
+
d([...s, { x, y: N, id: k }]), setTimeout(() => {
|
|
42
|
+
d((R) => R.filter((P) => P.id !== k));
|
|
43
|
+
}, 800), t();
|
|
44
|
+
}
|
|
45
|
+
}, c = `
|
|
46
46
|
relative overflow-hidden
|
|
47
47
|
backdrop-blur-xl
|
|
48
48
|
border border-white/30
|
|
@@ -52,11 +52,11 @@ const S = ({
|
|
|
52
52
|
cursor-pointer
|
|
53
53
|
shadow-xl
|
|
54
54
|
group
|
|
55
|
-
`,
|
|
55
|
+
`, g = {
|
|
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
|
+
}, f = {
|
|
60
60
|
blur: `
|
|
61
61
|
bg-white/5
|
|
62
62
|
hover:bg-white/15
|
|
@@ -82,83 +82,83 @@ const S = ({
|
|
|
82
82
|
hover:before:translate-x-[200%]
|
|
83
83
|
before:transition-transform before:duration-1000
|
|
84
84
|
`
|
|
85
|
-
},
|
|
86
|
-
return /* @__PURE__ */
|
|
85
|
+
}, b = o ? "opacity-40 cursor-not-allowed hover:scale-100 hover:shadow-xl" : "";
|
|
86
|
+
return /* @__PURE__ */ m(
|
|
87
87
|
"button",
|
|
88
88
|
{
|
|
89
|
-
className: `${
|
|
90
|
-
onClick:
|
|
91
|
-
disabled:
|
|
89
|
+
className: `${c} ${g[r]} ${f[a]} ${b} ${i}`,
|
|
90
|
+
onClick: l,
|
|
91
|
+
disabled: o,
|
|
92
92
|
children: [
|
|
93
|
-
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
/* @__PURE__ */
|
|
93
|
+
a === "waves" && !o && /* @__PURE__ */ m(q, { children: [
|
|
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
|
+
/* @__PURE__ */ n("span", { className: "absolute inset-0 bg-gradient-to-br from-transparent via-white/10 to-transparent animate-pulse" })
|
|
96
96
|
] }),
|
|
97
|
-
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
s.map((
|
|
97
|
+
a === "blur" && !o && /* @__PURE__ */ n("span", { className: "absolute inset-0 bg-white/5 blur-xl opacity-0 group-hover:opacity-100 transition-opacity duration-500" }),
|
|
98
|
+
/* @__PURE__ */ n("span", { className: "absolute inset-0 rounded-2xl opacity-0 group-hover:opacity-100 transition-opacity duration-500 pointer-events-none", children: /* @__PURE__ */ n("span", { className: "absolute inset-[-2px] rounded-2xl bg-gradient-to-r from-transparent via-white/40 to-transparent blur-sm animate-shimmer" }) }),
|
|
99
|
+
s.map((p) => /* @__PURE__ */ n(
|
|
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: p.x,
|
|
105
|
+
top: p.y,
|
|
106
106
|
width: "20px",
|
|
107
107
|
height: "20px",
|
|
108
108
|
transform: "translate(-50%, -50%)"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
|
|
111
|
+
p.id
|
|
112
112
|
)),
|
|
113
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ n("span", { className: "relative z-10 drop-shadow-lg", children: e })
|
|
114
114
|
]
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
|
-
},
|
|
118
|
-
name:
|
|
119
|
-
title:
|
|
120
|
-
description:
|
|
121
|
-
primaryButtonText:
|
|
122
|
-
primaryButtonLink:
|
|
123
|
-
primaryButtonOnClick:
|
|
117
|
+
}, Pa = ({
|
|
118
|
+
name: e,
|
|
119
|
+
title: a,
|
|
120
|
+
description: r = "Welcome to my portfolio",
|
|
121
|
+
primaryButtonText: t = "Get Started",
|
|
122
|
+
primaryButtonLink: o,
|
|
123
|
+
primaryButtonOnClick: i,
|
|
124
124
|
secondaryButtonText: s = "Learn More",
|
|
125
|
-
secondaryButtonLink:
|
|
126
|
-
secondaryButtonOnClick:
|
|
127
|
-
backgroundGradient:
|
|
128
|
-
animationType:
|
|
129
|
-
className:
|
|
125
|
+
secondaryButtonLink: d,
|
|
126
|
+
secondaryButtonOnClick: l,
|
|
127
|
+
backgroundGradient: c = "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
|
|
128
|
+
animationType: g,
|
|
129
|
+
className: f = ""
|
|
130
130
|
}) => {
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
}, h =
|
|
136
|
-
|
|
131
|
+
const b = () => {
|
|
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: t }) }) : /* @__PURE__ */ n(
|
|
136
|
+
O,
|
|
137
137
|
{
|
|
138
138
|
variant: "waves",
|
|
139
139
|
size: "lg",
|
|
140
|
-
onClick:
|
|
141
|
-
children:
|
|
140
|
+
onClick: i || b,
|
|
141
|
+
children: t
|
|
142
142
|
}
|
|
143
|
-
),
|
|
144
|
-
|
|
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
145
|
{
|
|
146
146
|
variant: "blur",
|
|
147
147
|
size: "lg",
|
|
148
|
-
onClick:
|
|
148
|
+
onClick: l || p,
|
|
149
149
|
children: s
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
|
-
return /* @__PURE__ */
|
|
152
|
+
return /* @__PURE__ */ n(
|
|
153
153
|
"div",
|
|
154
154
|
{
|
|
155
|
-
className:
|
|
155
|
+
className: g ? `animate-gradient-${g}` : "",
|
|
156
156
|
style: {
|
|
157
|
-
background:
|
|
157
|
+
background: c,
|
|
158
158
|
minHeight: "100vh"
|
|
159
159
|
},
|
|
160
|
-
children: /* @__PURE__ */
|
|
161
|
-
/* @__PURE__ */
|
|
160
|
+
children: /* @__PURE__ */ n("div", { className: `min-h-screen flex items-center justify-center p-8 ${f}`, children: /* @__PURE__ */ m("div", { className: "max-w-4xl w-full text-center space-y-8", children: [
|
|
161
|
+
/* @__PURE__ */ n(
|
|
162
162
|
"h1",
|
|
163
163
|
{
|
|
164
164
|
className: "text-6xl md:text-8xl font-bold text-white mb-4",
|
|
@@ -166,10 +166,10 @@ const S = ({
|
|
|
166
166
|
textShadow: "0 0 40px rgba(0,0,0,0.3)",
|
|
167
167
|
animation: "fadeInUp 0.8s ease-out"
|
|
168
168
|
},
|
|
169
|
-
children:
|
|
169
|
+
children: e
|
|
170
170
|
}
|
|
171
171
|
),
|
|
172
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ n(
|
|
173
173
|
"h2",
|
|
174
174
|
{
|
|
175
175
|
className: "text-3xl md:text-5xl font-semibold text-white/90",
|
|
@@ -177,10 +177,10 @@ const S = ({
|
|
|
177
177
|
textShadow: "0 0 30px rgba(0,0,0,0.2)",
|
|
178
178
|
animation: "fadeInUp 1s ease-out 0.2s backwards"
|
|
179
179
|
},
|
|
180
|
-
children:
|
|
180
|
+
children: a
|
|
181
181
|
}
|
|
182
182
|
),
|
|
183
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ n(
|
|
184
184
|
"p",
|
|
185
185
|
{
|
|
186
186
|
className: "text-xl md:text-2xl text-white/80 max-w-2xl mx-auto",
|
|
@@ -188,10 +188,10 @@ const S = ({
|
|
|
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: r
|
|
192
192
|
}
|
|
193
193
|
),
|
|
194
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ m(
|
|
195
195
|
"div",
|
|
196
196
|
{
|
|
197
197
|
className: "flex flex-wrap gap-6 justify-center mt-12",
|
|
@@ -200,11 +200,11 @@ const S = ({
|
|
|
200
200
|
},
|
|
201
201
|
children: [
|
|
202
202
|
h,
|
|
203
|
-
|
|
203
|
+
x
|
|
204
204
|
]
|
|
205
205
|
}
|
|
206
206
|
),
|
|
207
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ n(
|
|
208
208
|
"div",
|
|
209
209
|
{
|
|
210
210
|
className: "mt-16 mx-auto w-32 h-1 rounded-full",
|
|
@@ -217,7 +217,7 @@ const S = ({
|
|
|
217
217
|
] }) })
|
|
218
218
|
}
|
|
219
219
|
);
|
|
220
|
-
},
|
|
220
|
+
}, za = [
|
|
221
221
|
// ========== PREMIUM THEMES (NEW) ==========
|
|
222
222
|
{
|
|
223
223
|
id: "glass-morphism",
|
|
@@ -682,10 +682,10 @@ const S = ({
|
|
|
682
682
|
category: "animated",
|
|
683
683
|
animation: "zoom"
|
|
684
684
|
}
|
|
685
|
-
],
|
|
686
|
-
/* @__PURE__ */
|
|
687
|
-
/* @__PURE__ */
|
|
688
|
-
] }),
|
|
685
|
+
], $a = ({ 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 }), Ba = ({ 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 }), Da = ({ 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 }), Ga = ({ 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 }), Sa = ({ 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 }), _a = ({ 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 }), Ea = ({ 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 }), Ua = ({ 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 }), La = ({ 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 }), Aa = ({ 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 }), 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-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 }), Ha = ({ 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 }), ja = ({ 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 }), Fa = ({ 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 }), Qa = ({ children: e = "Shimmer Effect", onClick: a }) => /* @__PURE__ */ m("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
|
+
/* @__PURE__ */ n("span", { className: "relative z-10", children: e }),
|
|
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
|
+
] }), Ta = ({ 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 }), Va = ({ 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 }), Wa = ({ 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 }), Za = ({ 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 }), Ja = ({ 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 }), Ka = ({ 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 }), er = ({ 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 }), ar = ({ 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 }), rr = ({ 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 }), tr = ({ 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 }), nr = ({ 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 }), or = ({ 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 }), ir = ({ 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 }), sr = ({ 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 }), lr = ({ 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 }), j = {
|
|
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,81 +711,81 @@ const S = ({
|
|
|
711
711
|
linear-gradient(180deg, #000000 0%, #0a0a1a 50%, #000000 100%)
|
|
712
712
|
`,
|
|
713
713
|
none: "transparent"
|
|
714
|
-
},
|
|
715
|
-
children:
|
|
716
|
-
layout:
|
|
717
|
-
size:
|
|
718
|
-
theme:
|
|
719
|
-
padding:
|
|
720
|
-
gap:
|
|
714
|
+
}, dr = ({
|
|
715
|
+
children: e,
|
|
716
|
+
layout: a = "center",
|
|
717
|
+
size: r = "lg",
|
|
718
|
+
theme: t = "none",
|
|
719
|
+
padding: o = !0,
|
|
720
|
+
gap: i = "md",
|
|
721
721
|
className: s = ""
|
|
722
722
|
}) => {
|
|
723
|
-
const
|
|
723
|
+
const d = {
|
|
724
724
|
sm: "max-w-3xl",
|
|
725
725
|
md: "max-w-5xl",
|
|
726
726
|
lg: "max-w-7xl",
|
|
727
727
|
xl: "max-w-[1400px]",
|
|
728
728
|
full: "max-w-full"
|
|
729
|
-
}[
|
|
729
|
+
}[r], l = {
|
|
730
730
|
sm: "gap-4",
|
|
731
731
|
md: "gap-8",
|
|
732
732
|
lg: "gap-12"
|
|
733
|
-
}[
|
|
734
|
-
"image-right": `grid md:grid-cols-2 ${
|
|
735
|
-
"image-left": `grid md:grid-cols-2 ${
|
|
736
|
-
"button-right": `grid md:grid-cols-2 ${
|
|
737
|
-
"button-left": `grid md:grid-cols-2 ${
|
|
733
|
+
}[i], c = {
|
|
734
|
+
"image-right": `grid md:grid-cols-2 ${l} items-center`,
|
|
735
|
+
"image-left": `grid md:grid-cols-2 ${l} items-center`,
|
|
736
|
+
"button-right": `grid md:grid-cols-2 ${l} items-center`,
|
|
737
|
+
"button-left": `grid md:grid-cols-2 ${l} items-center`,
|
|
738
738
|
center: "flex flex-col items-center justify-center text-center",
|
|
739
|
-
"two-columns": `grid md:grid-cols-2 ${
|
|
740
|
-
"three-columns": `grid md:grid-cols-3 ${
|
|
741
|
-
}[
|
|
742
|
-
background:
|
|
739
|
+
"two-columns": `grid md:grid-cols-2 ${l}`,
|
|
740
|
+
"three-columns": `grid md:grid-cols-3 ${l}`
|
|
741
|
+
}[a], g = o ? "px-6 py-8" : "", f = t !== "none" ? {
|
|
742
|
+
background: j[t],
|
|
743
743
|
backgroundSize: "200% 200%"
|
|
744
|
-
} : {},
|
|
745
|
-
let
|
|
746
|
-
return (
|
|
744
|
+
} : {}, b = H.Children.toArray(e);
|
|
745
|
+
let p = b;
|
|
746
|
+
return (a === "image-left" || a === "button-left") && (p = b.reverse()), /* @__PURE__ */ n(
|
|
747
747
|
"div",
|
|
748
748
|
{
|
|
749
|
-
className: `${
|
|
750
|
-
style:
|
|
751
|
-
children: /* @__PURE__ */
|
|
749
|
+
className: `${d} mx-auto ${g} ${s}`,
|
|
750
|
+
style: f,
|
|
751
|
+
children: /* @__PURE__ */ n("div", { className: c, children: p })
|
|
752
752
|
}
|
|
753
753
|
);
|
|
754
|
-
},
|
|
755
|
-
src:
|
|
756
|
-
alt:
|
|
757
|
-
className:
|
|
758
|
-
width:
|
|
759
|
-
height:
|
|
760
|
-
}) => /* @__PURE__ */
|
|
754
|
+
}, cr = ({
|
|
755
|
+
src: e,
|
|
756
|
+
alt: a,
|
|
757
|
+
className: r = "",
|
|
758
|
+
width: t,
|
|
759
|
+
height: o
|
|
760
|
+
}) => /* @__PURE__ */ n("div", { className: `w-full ${r}`, children: /* @__PURE__ */ n(
|
|
761
761
|
"img",
|
|
762
762
|
{
|
|
763
|
-
src:
|
|
764
|
-
alt:
|
|
765
|
-
width:
|
|
766
|
-
height:
|
|
763
|
+
src: e,
|
|
764
|
+
alt: a,
|
|
765
|
+
width: t,
|
|
766
|
+
height: o,
|
|
767
767
|
className: "w-full h-auto rounded-2xl shadow-2xl object-cover"
|
|
768
768
|
}
|
|
769
|
-
) }),
|
|
770
|
-
children:
|
|
771
|
-
className:
|
|
772
|
-
}) => /* @__PURE__ */
|
|
773
|
-
children:
|
|
774
|
-
className:
|
|
775
|
-
}) => /* @__PURE__ */
|
|
776
|
-
icon:
|
|
777
|
-
title:
|
|
778
|
-
description:
|
|
779
|
-
variant:
|
|
780
|
-
theme:
|
|
781
|
-
hoverable:
|
|
769
|
+
) }), gr = ({
|
|
770
|
+
children: e,
|
|
771
|
+
className: a = ""
|
|
772
|
+
}) => /* @__PURE__ */ n("div", { className: `space-y-4 ${a}`, children: e }), pr = ({
|
|
773
|
+
children: e,
|
|
774
|
+
className: a = ""
|
|
775
|
+
}) => /* @__PURE__ */ n("div", { className: `flex gap-4 ${a}`, children: e }), ur = ({
|
|
776
|
+
icon: e,
|
|
777
|
+
title: a,
|
|
778
|
+
description: r,
|
|
779
|
+
variant: t = "solid",
|
|
780
|
+
theme: o = "blue",
|
|
781
|
+
hoverable: i = !0,
|
|
782
782
|
className: s = ""
|
|
783
783
|
}) => {
|
|
784
|
-
const
|
|
784
|
+
const l = `
|
|
785
785
|
rounded-2xl p-6
|
|
786
786
|
max-w-sm
|
|
787
787
|
transition-all duration-300
|
|
788
|
-
${
|
|
788
|
+
${i ? "hover:scale-[1.02] hover:shadow-2xl" : ""}
|
|
789
789
|
${{
|
|
790
790
|
blue: {
|
|
791
791
|
solid: "bg-blue-600 text-white",
|
|
@@ -823,25 +823,25 @@ const S = ({
|
|
|
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
|
-
}[
|
|
826
|
+
}[o][t]}
|
|
827
827
|
${s}
|
|
828
828
|
`;
|
|
829
|
-
return /* @__PURE__ */
|
|
830
|
-
|
|
831
|
-
/* @__PURE__ */
|
|
832
|
-
/* @__PURE__ */
|
|
829
|
+
return /* @__PURE__ */ m("div", { className: l, children: [
|
|
830
|
+
e && /* @__PURE__ */ n("div", { className: "text-4xl mb-4", children: e }),
|
|
831
|
+
/* @__PURE__ */ n("h3", { className: "text-xl font-bold mb-2", children: a }),
|
|
832
|
+
/* @__PURE__ */ n("p", { className: `text-sm ${t === "outlined" ? "text-gray-600" : "opacity-90"}`, children: r })
|
|
833
833
|
] });
|
|
834
|
-
},
|
|
835
|
-
image:
|
|
836
|
-
title:
|
|
837
|
-
description:
|
|
838
|
-
price:
|
|
839
|
-
oldPrice:
|
|
840
|
-
badge:
|
|
834
|
+
}, mr = ({
|
|
835
|
+
image: e,
|
|
836
|
+
title: a,
|
|
837
|
+
description: r,
|
|
838
|
+
price: t,
|
|
839
|
+
oldPrice: o,
|
|
840
|
+
badge: i,
|
|
841
841
|
variant: s = "solid",
|
|
842
|
-
children:
|
|
843
|
-
className:
|
|
844
|
-
}) => /* @__PURE__ */
|
|
842
|
+
children: d,
|
|
843
|
+
className: l = ""
|
|
844
|
+
}) => /* @__PURE__ */ m("div", { className: `
|
|
845
845
|
rounded-2xl overflow-hidden
|
|
846
846
|
max-w-sm
|
|
847
847
|
transition-all duration-300
|
|
@@ -852,45 +852,45 @@ const S = ({
|
|
|
852
852
|
gradient: "bg-gradient-to-br from-gray-900 to-gray-800 border border-gray-700",
|
|
853
853
|
outlined: "bg-transparent border-2 border-gray-700"
|
|
854
854
|
}[s]}
|
|
855
|
-
${
|
|
855
|
+
${l}
|
|
856
856
|
`, children: [
|
|
857
|
-
/* @__PURE__ */
|
|
858
|
-
/* @__PURE__ */
|
|
857
|
+
/* @__PURE__ */ m("div", { className: "relative", children: [
|
|
858
|
+
/* @__PURE__ */ n(
|
|
859
859
|
"img",
|
|
860
860
|
{
|
|
861
|
-
src:
|
|
862
|
-
alt:
|
|
861
|
+
src: e,
|
|
862
|
+
alt: a,
|
|
863
863
|
className: "w-full h-48 object-cover"
|
|
864
864
|
}
|
|
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__ */
|
|
869
|
-
/* @__PURE__ */
|
|
870
|
-
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
-
/* @__PURE__ */
|
|
868
|
+
/* @__PURE__ */ m("div", { className: "p-5 space-y-3", children: [
|
|
869
|
+
/* @__PURE__ */ n("h3", { className: "text-xl font-bold text-white", children: a }),
|
|
870
|
+
r && /* @__PURE__ */ n("p", { className: "text-gray-400 text-sm", children: r }),
|
|
871
|
+
/* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
|
|
872
|
+
/* @__PURE__ */ m("span", { className: "text-2xl font-bold text-white", children: [
|
|
873
873
|
"$",
|
|
874
|
-
|
|
874
|
+
t
|
|
875
875
|
] }),
|
|
876
|
-
|
|
876
|
+
o && /* @__PURE__ */ m("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
|
-
] }),
|
|
884
|
-
icon:
|
|
885
|
-
label:
|
|
886
|
-
value:
|
|
887
|
-
change:
|
|
888
|
-
trend:
|
|
889
|
-
variant:
|
|
883
|
+
] }), br = ({
|
|
884
|
+
icon: e,
|
|
885
|
+
label: a,
|
|
886
|
+
value: r,
|
|
887
|
+
change: t,
|
|
888
|
+
trend: o = "neutral",
|
|
889
|
+
variant: i = "solid",
|
|
890
890
|
theme: s = "blue",
|
|
891
|
-
className:
|
|
891
|
+
className: d = ""
|
|
892
892
|
}) => {
|
|
893
|
-
const
|
|
893
|
+
const l = {
|
|
894
894
|
blue: {
|
|
895
895
|
solid: "bg-blue-600/10 border-blue-500/20",
|
|
896
896
|
glass: "bg-blue-500/20 backdrop-blur-xl border-blue-400/30",
|
|
@@ -927,75 +927,1454 @@ const S = ({
|
|
|
927
927
|
gradient: "bg-gradient-to-br from-orange-600/20 to-red-600/20 border-orange-500/30",
|
|
928
928
|
outlined: "bg-transparent border-2 border-orange-500"
|
|
929
929
|
}
|
|
930
|
-
},
|
|
930
|
+
}, c = {
|
|
931
931
|
up: "text-green-400",
|
|
932
932
|
down: "text-red-400",
|
|
933
933
|
neutral: "text-gray-400"
|
|
934
|
-
},
|
|
934
|
+
}, g = {
|
|
935
935
|
up: "↑",
|
|
936
936
|
down: "↓",
|
|
937
937
|
neutral: "→"
|
|
938
938
|
};
|
|
939
|
-
return /* @__PURE__ */
|
|
939
|
+
return /* @__PURE__ */ m("div", { className: `
|
|
940
940
|
rounded-2xl p-6 border
|
|
941
941
|
max-w-sm
|
|
942
942
|
transition-all duration-300
|
|
943
943
|
hover:scale-[1.02] hover:shadow-xl
|
|
944
|
-
${
|
|
945
|
-
${
|
|
944
|
+
${l[s][i]}
|
|
945
|
+
${d}
|
|
946
946
|
`, children: [
|
|
947
|
-
/* @__PURE__ */
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
947
|
+
/* @__PURE__ */ m("div", { className: "flex items-start justify-between mb-4", children: [
|
|
948
|
+
e && /* @__PURE__ */ n("div", { className: "text-3xl", children: e }),
|
|
949
|
+
t && /* @__PURE__ */ m("span", { className: `text-sm font-semibold ${c[o]}`, children: [
|
|
950
|
+
g[o],
|
|
951
951
|
" ",
|
|
952
|
-
|
|
952
|
+
t
|
|
953
953
|
] })
|
|
954
954
|
] }),
|
|
955
|
-
/* @__PURE__ */
|
|
956
|
-
/* @__PURE__ */
|
|
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: r })
|
|
957
957
|
] });
|
|
958
958
|
};
|
|
959
|
+
class y {
|
|
960
|
+
constructor(a) {
|
|
961
|
+
this.animation = null, this.element = a;
|
|
962
|
+
}
|
|
963
|
+
/**
|
|
964
|
+
* تشغيل animation باستخدام keyframes
|
|
965
|
+
*/
|
|
966
|
+
animate(a, r = {}) {
|
|
967
|
+
const {
|
|
968
|
+
duration: t = 600,
|
|
969
|
+
delay: o = 0,
|
|
970
|
+
easing: i = "ease",
|
|
971
|
+
iterations: s = 1,
|
|
972
|
+
direction: d = "normal",
|
|
973
|
+
fill: l = "both"
|
|
974
|
+
} = r;
|
|
975
|
+
return this.animation && this.animation.cancel(), this.animation = this.element.animate(a, {
|
|
976
|
+
duration: t,
|
|
977
|
+
delay: o,
|
|
978
|
+
easing: typeof i == "string" ? i : "linear",
|
|
979
|
+
iterations: s,
|
|
980
|
+
direction: d,
|
|
981
|
+
fill: l
|
|
982
|
+
}), this.animation.finished;
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* إيقاف الـ animation
|
|
986
|
+
*/
|
|
987
|
+
stop() {
|
|
988
|
+
this.animation && (this.animation.cancel(), this.animation = null);
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* Pause الـ animation
|
|
992
|
+
*/
|
|
993
|
+
pause() {
|
|
994
|
+
this.animation && this.animation.pause();
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* Resume الـ animation
|
|
998
|
+
*/
|
|
999
|
+
resume() {
|
|
1000
|
+
this.animation && this.animation.play();
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
* Reverse الـ animation
|
|
1004
|
+
*/
|
|
1005
|
+
reverse() {
|
|
1006
|
+
this.animation && this.animation.reverse();
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Get current progress (0 to 1)
|
|
1010
|
+
*/
|
|
1011
|
+
getProgress() {
|
|
1012
|
+
return !this.animation || !this.animation.effect ? 0 : this.animation.effect.getComputedTiming().progress || 0;
|
|
1013
|
+
}
|
|
1014
|
+
/**
|
|
1015
|
+
* Check if animation is running
|
|
1016
|
+
*/
|
|
1017
|
+
isRunning() {
|
|
1018
|
+
var a;
|
|
1019
|
+
return ((a = this.animation) == null ? void 0 : a.playState) === "running";
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
function fr(e) {
|
|
1023
|
+
return new y(e);
|
|
1024
|
+
}
|
|
1025
|
+
async function hr(e, a, r = {}) {
|
|
1026
|
+
const t = r.stagger ?? 0, o = {
|
|
1027
|
+
duration: r.duration,
|
|
1028
|
+
delay: r.delay,
|
|
1029
|
+
easing: r.easing,
|
|
1030
|
+
iterations: r.iterations,
|
|
1031
|
+
direction: r.direction,
|
|
1032
|
+
fill: r.fill
|
|
1033
|
+
}, i = e.map((s, d) => new y(s).animate(a, {
|
|
1034
|
+
...o,
|
|
1035
|
+
delay: (o.delay || 0) + t * d
|
|
1036
|
+
}));
|
|
1037
|
+
return Promise.all(i);
|
|
1038
|
+
}
|
|
1039
|
+
async function xr(e) {
|
|
1040
|
+
const a = [];
|
|
1041
|
+
for (const { element: r, keyframes: t, config: o } of e) {
|
|
1042
|
+
const s = await new y(r).animate(t, o);
|
|
1043
|
+
a.push(s);
|
|
1044
|
+
}
|
|
1045
|
+
return a;
|
|
1046
|
+
}
|
|
1047
|
+
async function yr(e) {
|
|
1048
|
+
const a = e.map(({ element: r, keyframes: t, config: o }) => new y(r).animate(t, o));
|
|
1049
|
+
return Promise.all(a);
|
|
1050
|
+
}
|
|
1051
|
+
const _ = (e) => e, F = (e) => e * e * e, Q = (e) => 1 - Math.pow(1 - e, 3), T = (e) => e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2, V = (e) => e * e, W = (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, re = (e) => 1 - Math.pow(1 - e, 5), te = (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, E = X + 1, se = (e) => E * e * e * e - X * e * e, le = (e) => 1 + E * 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, G = 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) * G)) / 2 : Math.pow(2, -20 * e + 10) * Math.sin((20 * e - 11.125) * G) / 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, ue = (e) => 1 - Y(1 - e), me = (e) => e < 0.5 ? (1 - Y(1 - 2 * e)) / 2 : (1 + Y(2 * e - 1)) / 2, be = (e) => 1 - Math.cos(e * Math.PI / 2), fe = (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: _,
|
|
1053
|
+
easeInCubic: F,
|
|
1054
|
+
easeOutCubic: Q,
|
|
1055
|
+
easeInOutCubic: T,
|
|
1056
|
+
easeInQuad: V,
|
|
1057
|
+
easeOutQuad: W,
|
|
1058
|
+
easeInOutQuad: Z,
|
|
1059
|
+
easeInQuart: J,
|
|
1060
|
+
easeOutQuart: K,
|
|
1061
|
+
easeInOutQuart: ee,
|
|
1062
|
+
easeInQuint: ae,
|
|
1063
|
+
easeOutQuint: re,
|
|
1064
|
+
easeInOutQuint: te,
|
|
1065
|
+
easeInExpo: ne,
|
|
1066
|
+
easeOutExpo: oe,
|
|
1067
|
+
easeInOutExpo: ie,
|
|
1068
|
+
easeInBack: se,
|
|
1069
|
+
easeOutBack: le,
|
|
1070
|
+
easeInOutBack: de,
|
|
1071
|
+
easeInElastic: ce,
|
|
1072
|
+
easeOutElastic: ge,
|
|
1073
|
+
easeInOutElastic: pe,
|
|
1074
|
+
easeInBounce: ue,
|
|
1075
|
+
easeOutBounce: Y,
|
|
1076
|
+
easeInOutBounce: me,
|
|
1077
|
+
easeInSine: be,
|
|
1078
|
+
easeOutSine: fe,
|
|
1079
|
+
easeInOutSine: he,
|
|
1080
|
+
easeInCirc: xe,
|
|
1081
|
+
easeOutCirc: ye,
|
|
1082
|
+
easeInOutCirc: we
|
|
1083
|
+
};
|
|
1084
|
+
function wr(e) {
|
|
1085
|
+
return typeof e == "function" ? e : ve[e] || _;
|
|
1086
|
+
}
|
|
1087
|
+
function vr(e = 100, a = 10, r = 1) {
|
|
1088
|
+
return (t) => {
|
|
1089
|
+
const o = Math.sqrt(e / r), i = a / (2 * Math.sqrt(e * r));
|
|
1090
|
+
if (i < 1) {
|
|
1091
|
+
const s = o * Math.sqrt(1 - i * i);
|
|
1092
|
+
return 1 - Math.exp(-i * o * t) * Math.cos(s * t);
|
|
1093
|
+
} else
|
|
1094
|
+
return 1 - Math.exp(-o * t);
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
function kr(e, a, r, t) {
|
|
1098
|
+
return (o) => {
|
|
1099
|
+
const i = 3 * a, s = 3 * (t - a) - i, d = 1 - i - s;
|
|
1100
|
+
return ((c) => ((d * c + s) * c + i) * c)(o);
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1103
|
+
class L {
|
|
1104
|
+
constructor() {
|
|
1105
|
+
if (this.observer = null, this.elements = /* @__PURE__ */ new Map(), typeof window > "u" || !("IntersectionObserver" in window)) {
|
|
1106
|
+
console.warn("IntersectionObserver not supported");
|
|
1107
|
+
return;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* مراقبة عنصر
|
|
1112
|
+
*/
|
|
1113
|
+
observe(a, r = {}) {
|
|
1114
|
+
const {
|
|
1115
|
+
threshold: t = 0.1,
|
|
1116
|
+
rootMargin: o = "0px",
|
|
1117
|
+
triggerOnce: i = !1,
|
|
1118
|
+
onEnter: s,
|
|
1119
|
+
onExit: d
|
|
1120
|
+
} = r;
|
|
1121
|
+
this.elements.set(a, r), this.observer || (this.observer = new IntersectionObserver(
|
|
1122
|
+
(l) => {
|
|
1123
|
+
l.forEach((c) => {
|
|
1124
|
+
var f, b;
|
|
1125
|
+
const g = this.elements.get(c.target);
|
|
1126
|
+
g && (c.isIntersecting ? ((f = g.onEnter) == null || f.call(g, c), g.triggerOnce && this.unobserve(c.target)) : (b = g.onExit) == null || b.call(g, c));
|
|
1127
|
+
});
|
|
1128
|
+
},
|
|
1129
|
+
{ threshold: t, rootMargin: o }
|
|
1130
|
+
)), this.observer.observe(a);
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* إيقاف مراقبة عنصر
|
|
1134
|
+
*/
|
|
1135
|
+
unobserve(a) {
|
|
1136
|
+
this.observer && (this.observer.unobserve(a), this.elements.delete(a));
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* إيقاف كل المراقبة
|
|
1140
|
+
*/
|
|
1141
|
+
disconnect() {
|
|
1142
|
+
this.observer && (this.observer.disconnect(), this.elements.clear(), this.observer = null);
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
function ke(e, a) {
|
|
1146
|
+
const r = new L();
|
|
1147
|
+
return r.observe(e, a), () => r.disconnect();
|
|
1148
|
+
}
|
|
1149
|
+
function Ir(e, a) {
|
|
1150
|
+
const r = new L();
|
|
1151
|
+
return e.forEach((t) => r.observe(t, a)), () => r.disconnect();
|
|
1152
|
+
}
|
|
1153
|
+
function Nr(e, a, r = {}) {
|
|
1154
|
+
return ke(e, {
|
|
1155
|
+
...r,
|
|
1156
|
+
onEnter: a
|
|
1157
|
+
});
|
|
1158
|
+
}
|
|
1159
|
+
function Mr(e) {
|
|
1160
|
+
const a = e.getBoundingClientRect(), r = window.innerHeight, t = a.top, o = a.height, i = 1 - (t + o) / (r + o);
|
|
1161
|
+
return Math.max(0, Math.min(1, i));
|
|
1162
|
+
}
|
|
1163
|
+
function Or(e, a = 0) {
|
|
1164
|
+
const r = e.getBoundingClientRect(), t = window.innerHeight, o = window.innerWidth, i = r.top + r.height * a <= t && r.bottom - r.height * a >= 0, s = r.left + r.width * a <= o && r.right - r.width * a >= 0;
|
|
1165
|
+
return i && s;
|
|
1166
|
+
}
|
|
1167
|
+
const Ie = {
|
|
1168
|
+
keyframes: [
|
|
1169
|
+
{ opacity: 0 },
|
|
1170
|
+
{ opacity: 1 }
|
|
1171
|
+
],
|
|
1172
|
+
config: {
|
|
1173
|
+
duration: 600,
|
|
1174
|
+
easing: "ease-out",
|
|
1175
|
+
fill: "both"
|
|
1176
|
+
}
|
|
1177
|
+
}, Ne = {
|
|
1178
|
+
keyframes: [
|
|
1179
|
+
{
|
|
1180
|
+
opacity: 0,
|
|
1181
|
+
transform: "translateY(30px)"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
opacity: 1,
|
|
1185
|
+
transform: "translateY(0)"
|
|
1186
|
+
}
|
|
1187
|
+
],
|
|
1188
|
+
config: {
|
|
1189
|
+
duration: 800,
|
|
1190
|
+
easing: "ease-out",
|
|
1191
|
+
fill: "both"
|
|
1192
|
+
}
|
|
1193
|
+
}, Me = {
|
|
1194
|
+
keyframes: [
|
|
1195
|
+
{
|
|
1196
|
+
opacity: 0,
|
|
1197
|
+
transform: "translateY(-30px)"
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
opacity: 1,
|
|
1201
|
+
transform: "translateY(0)"
|
|
1202
|
+
}
|
|
1203
|
+
],
|
|
1204
|
+
config: {
|
|
1205
|
+
duration: 800,
|
|
1206
|
+
easing: "ease-out",
|
|
1207
|
+
fill: "both"
|
|
1208
|
+
}
|
|
1209
|
+
}, Oe = {
|
|
1210
|
+
keyframes: [
|
|
1211
|
+
{
|
|
1212
|
+
opacity: 0,
|
|
1213
|
+
transform: "translateX(-30px)"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
opacity: 1,
|
|
1217
|
+
transform: "translateX(0)"
|
|
1218
|
+
}
|
|
1219
|
+
],
|
|
1220
|
+
config: {
|
|
1221
|
+
duration: 800,
|
|
1222
|
+
easing: "ease-out",
|
|
1223
|
+
fill: "both"
|
|
1224
|
+
}
|
|
1225
|
+
}, Ce = {
|
|
1226
|
+
keyframes: [
|
|
1227
|
+
{
|
|
1228
|
+
opacity: 0,
|
|
1229
|
+
transform: "translateX(30px)"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
opacity: 1,
|
|
1233
|
+
transform: "translateX(0)"
|
|
1234
|
+
}
|
|
1235
|
+
],
|
|
1236
|
+
config: {
|
|
1237
|
+
duration: 800,
|
|
1238
|
+
easing: "ease-out",
|
|
1239
|
+
fill: "both"
|
|
1240
|
+
}
|
|
1241
|
+
}, Ye = {
|
|
1242
|
+
keyframes: [
|
|
1243
|
+
{ opacity: 1 },
|
|
1244
|
+
{ opacity: 0 }
|
|
1245
|
+
],
|
|
1246
|
+
config: {
|
|
1247
|
+
duration: 600,
|
|
1248
|
+
easing: "ease-in",
|
|
1249
|
+
fill: "both"
|
|
1250
|
+
}
|
|
1251
|
+
}, Xe = {
|
|
1252
|
+
keyframes: [
|
|
1253
|
+
{
|
|
1254
|
+
opacity: 1,
|
|
1255
|
+
transform: "translateY(0)"
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
opacity: 0,
|
|
1259
|
+
transform: "translateY(-30px)"
|
|
1260
|
+
}
|
|
1261
|
+
],
|
|
1262
|
+
config: {
|
|
1263
|
+
duration: 800,
|
|
1264
|
+
easing: "ease-in",
|
|
1265
|
+
fill: "both"
|
|
1266
|
+
}
|
|
1267
|
+
}, Re = {
|
|
1268
|
+
keyframes: [
|
|
1269
|
+
{
|
|
1270
|
+
opacity: 1,
|
|
1271
|
+
transform: "translateY(0)"
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
opacity: 0,
|
|
1275
|
+
transform: "translateY(30px)"
|
|
1276
|
+
}
|
|
1277
|
+
],
|
|
1278
|
+
config: {
|
|
1279
|
+
duration: 800,
|
|
1280
|
+
easing: "ease-in",
|
|
1281
|
+
fill: "both"
|
|
1282
|
+
}
|
|
1283
|
+
}, Pe = {
|
|
1284
|
+
keyframes: [
|
|
1285
|
+
{
|
|
1286
|
+
opacity: 1,
|
|
1287
|
+
transform: "translateX(0)"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
opacity: 0,
|
|
1291
|
+
transform: "translateX(-30px)"
|
|
1292
|
+
}
|
|
1293
|
+
],
|
|
1294
|
+
config: {
|
|
1295
|
+
duration: 800,
|
|
1296
|
+
easing: "ease-in",
|
|
1297
|
+
fill: "both"
|
|
1298
|
+
}
|
|
1299
|
+
}, ze = {
|
|
1300
|
+
keyframes: [
|
|
1301
|
+
{
|
|
1302
|
+
opacity: 1,
|
|
1303
|
+
transform: "translateX(0)"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
opacity: 0,
|
|
1307
|
+
transform: "translateX(30px)"
|
|
1308
|
+
}
|
|
1309
|
+
],
|
|
1310
|
+
config: {
|
|
1311
|
+
duration: 800,
|
|
1312
|
+
easing: "ease-in",
|
|
1313
|
+
fill: "both"
|
|
1314
|
+
}
|
|
1315
|
+
}, $e = {
|
|
1316
|
+
keyframes: [
|
|
1317
|
+
{
|
|
1318
|
+
opacity: 0,
|
|
1319
|
+
transform: "translateY(100%)"
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
opacity: 1,
|
|
1323
|
+
transform: "translateY(0)"
|
|
1324
|
+
}
|
|
1325
|
+
],
|
|
1326
|
+
config: {
|
|
1327
|
+
duration: 800,
|
|
1328
|
+
easing: "ease-out",
|
|
1329
|
+
fill: "both"
|
|
1330
|
+
}
|
|
1331
|
+
}, Be = {
|
|
1332
|
+
keyframes: [
|
|
1333
|
+
{
|
|
1334
|
+
opacity: 0,
|
|
1335
|
+
transform: "translateY(-100%)"
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
opacity: 1,
|
|
1339
|
+
transform: "translateY(0)"
|
|
1340
|
+
}
|
|
1341
|
+
],
|
|
1342
|
+
config: {
|
|
1343
|
+
duration: 800,
|
|
1344
|
+
easing: "ease-out",
|
|
1345
|
+
fill: "both"
|
|
1346
|
+
}
|
|
1347
|
+
}, De = {
|
|
1348
|
+
keyframes: [
|
|
1349
|
+
{
|
|
1350
|
+
opacity: 0,
|
|
1351
|
+
transform: "translateX(-100%)"
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
opacity: 1,
|
|
1355
|
+
transform: "translateX(0)"
|
|
1356
|
+
}
|
|
1357
|
+
],
|
|
1358
|
+
config: {
|
|
1359
|
+
duration: 800,
|
|
1360
|
+
easing: "ease-out",
|
|
1361
|
+
fill: "both"
|
|
1362
|
+
}
|
|
1363
|
+
}, Ge = {
|
|
1364
|
+
keyframes: [
|
|
1365
|
+
{
|
|
1366
|
+
opacity: 0,
|
|
1367
|
+
transform: "translateX(100%)"
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
opacity: 1,
|
|
1371
|
+
transform: "translateX(0)"
|
|
1372
|
+
}
|
|
1373
|
+
],
|
|
1374
|
+
config: {
|
|
1375
|
+
duration: 800,
|
|
1376
|
+
easing: "ease-out",
|
|
1377
|
+
fill: "both"
|
|
1378
|
+
}
|
|
1379
|
+
}, Se = {
|
|
1380
|
+
keyframes: [
|
|
1381
|
+
{
|
|
1382
|
+
opacity: 1,
|
|
1383
|
+
transform: "translateY(0)"
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
opacity: 0,
|
|
1387
|
+
transform: "translateY(-100%)"
|
|
1388
|
+
}
|
|
1389
|
+
],
|
|
1390
|
+
config: {
|
|
1391
|
+
duration: 800,
|
|
1392
|
+
easing: "ease-in",
|
|
1393
|
+
fill: "both"
|
|
1394
|
+
}
|
|
1395
|
+
}, _e = {
|
|
1396
|
+
keyframes: [
|
|
1397
|
+
{
|
|
1398
|
+
opacity: 1,
|
|
1399
|
+
transform: "translateY(0)"
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
opacity: 0,
|
|
1403
|
+
transform: "translateY(100%)"
|
|
1404
|
+
}
|
|
1405
|
+
],
|
|
1406
|
+
config: {
|
|
1407
|
+
duration: 800,
|
|
1408
|
+
easing: "ease-in",
|
|
1409
|
+
fill: "both"
|
|
1410
|
+
}
|
|
1411
|
+
}, Ee = {
|
|
1412
|
+
keyframes: [
|
|
1413
|
+
{
|
|
1414
|
+
opacity: 1,
|
|
1415
|
+
transform: "translateX(0)"
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
opacity: 0,
|
|
1419
|
+
transform: "translateX(-100%)"
|
|
1420
|
+
}
|
|
1421
|
+
],
|
|
1422
|
+
config: {
|
|
1423
|
+
duration: 800,
|
|
1424
|
+
easing: "ease-in",
|
|
1425
|
+
fill: "both"
|
|
1426
|
+
}
|
|
1427
|
+
}, Ue = {
|
|
1428
|
+
keyframes: [
|
|
1429
|
+
{
|
|
1430
|
+
opacity: 1,
|
|
1431
|
+
transform: "translateX(0)"
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
opacity: 0,
|
|
1435
|
+
transform: "translateX(100%)"
|
|
1436
|
+
}
|
|
1437
|
+
],
|
|
1438
|
+
config: {
|
|
1439
|
+
duration: 800,
|
|
1440
|
+
easing: "ease-in",
|
|
1441
|
+
fill: "both"
|
|
1442
|
+
}
|
|
1443
|
+
}, Le = {
|
|
1444
|
+
keyframes: [
|
|
1445
|
+
{
|
|
1446
|
+
opacity: 0,
|
|
1447
|
+
transform: "scale(0.5)"
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
opacity: 1,
|
|
1451
|
+
transform: "scale(1)"
|
|
1452
|
+
}
|
|
1453
|
+
],
|
|
1454
|
+
config: {
|
|
1455
|
+
duration: 600,
|
|
1456
|
+
easing: "ease-out",
|
|
1457
|
+
fill: "both"
|
|
1458
|
+
}
|
|
1459
|
+
}, Ae = {
|
|
1460
|
+
keyframes: [
|
|
1461
|
+
{
|
|
1462
|
+
opacity: 0,
|
|
1463
|
+
transform: "scale(0.5) translateY(50px)"
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
opacity: 1,
|
|
1467
|
+
transform: "scale(1) translateY(0)"
|
|
1468
|
+
}
|
|
1469
|
+
],
|
|
1470
|
+
config: {
|
|
1471
|
+
duration: 800,
|
|
1472
|
+
easing: "ease-out",
|
|
1473
|
+
fill: "both"
|
|
1474
|
+
}
|
|
1475
|
+
}, qe = {
|
|
1476
|
+
keyframes: [
|
|
1477
|
+
{
|
|
1478
|
+
opacity: 0,
|
|
1479
|
+
transform: "scale(0.5) translateY(-50px)"
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
opacity: 1,
|
|
1483
|
+
transform: "scale(1) translateY(0)"
|
|
1484
|
+
}
|
|
1485
|
+
],
|
|
1486
|
+
config: {
|
|
1487
|
+
duration: 800,
|
|
1488
|
+
easing: "ease-out",
|
|
1489
|
+
fill: "both"
|
|
1490
|
+
}
|
|
1491
|
+
}, He = {
|
|
1492
|
+
keyframes: [
|
|
1493
|
+
{
|
|
1494
|
+
opacity: 0,
|
|
1495
|
+
transform: "scale(0.5) translateX(-50px)"
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
opacity: 1,
|
|
1499
|
+
transform: "scale(1) translateX(0)"
|
|
1500
|
+
}
|
|
1501
|
+
],
|
|
1502
|
+
config: {
|
|
1503
|
+
duration: 800,
|
|
1504
|
+
easing: "ease-out",
|
|
1505
|
+
fill: "both"
|
|
1506
|
+
}
|
|
1507
|
+
}, je = {
|
|
1508
|
+
keyframes: [
|
|
1509
|
+
{
|
|
1510
|
+
opacity: 0,
|
|
1511
|
+
transform: "scale(0.5) translateX(50px)"
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
opacity: 1,
|
|
1515
|
+
transform: "scale(1) translateX(0)"
|
|
1516
|
+
}
|
|
1517
|
+
],
|
|
1518
|
+
config: {
|
|
1519
|
+
duration: 800,
|
|
1520
|
+
easing: "ease-out",
|
|
1521
|
+
fill: "both"
|
|
1522
|
+
}
|
|
1523
|
+
}, Fe = {
|
|
1524
|
+
keyframes: [
|
|
1525
|
+
{
|
|
1526
|
+
opacity: 1,
|
|
1527
|
+
transform: "scale(1)"
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
opacity: 0,
|
|
1531
|
+
transform: "scale(0.5)"
|
|
1532
|
+
}
|
|
1533
|
+
],
|
|
1534
|
+
config: {
|
|
1535
|
+
duration: 600,
|
|
1536
|
+
easing: "ease-in",
|
|
1537
|
+
fill: "both"
|
|
1538
|
+
}
|
|
1539
|
+
}, Qe = {
|
|
1540
|
+
keyframes: [
|
|
1541
|
+
{
|
|
1542
|
+
opacity: 1,
|
|
1543
|
+
transform: "scale(1) translateY(0)"
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
opacity: 0,
|
|
1547
|
+
transform: "scale(0.5) translateY(-50px)"
|
|
1548
|
+
}
|
|
1549
|
+
],
|
|
1550
|
+
config: {
|
|
1551
|
+
duration: 800,
|
|
1552
|
+
easing: "ease-in",
|
|
1553
|
+
fill: "both"
|
|
1554
|
+
}
|
|
1555
|
+
}, Te = {
|
|
1556
|
+
keyframes: [
|
|
1557
|
+
{
|
|
1558
|
+
opacity: 1,
|
|
1559
|
+
transform: "scale(1) translateY(0)"
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
opacity: 0,
|
|
1563
|
+
transform: "scale(0.5) translateY(50px)"
|
|
1564
|
+
}
|
|
1565
|
+
],
|
|
1566
|
+
config: {
|
|
1567
|
+
duration: 800,
|
|
1568
|
+
easing: "ease-in",
|
|
1569
|
+
fill: "both"
|
|
1570
|
+
}
|
|
1571
|
+
}, Ve = {
|
|
1572
|
+
keyframes: [
|
|
1573
|
+
{
|
|
1574
|
+
opacity: 0,
|
|
1575
|
+
transform: "scale(0)"
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
opacity: 1,
|
|
1579
|
+
transform: "scale(1)"
|
|
1580
|
+
}
|
|
1581
|
+
],
|
|
1582
|
+
config: {
|
|
1583
|
+
duration: 1e3,
|
|
1584
|
+
easing: "ease-out",
|
|
1585
|
+
fill: "both"
|
|
1586
|
+
}
|
|
1587
|
+
}, We = {
|
|
1588
|
+
keyframes: [
|
|
1589
|
+
{
|
|
1590
|
+
opacity: 0,
|
|
1591
|
+
transform: "scale(0)"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
opacity: 1,
|
|
1595
|
+
transform: "scale(1.1)"
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
transform: "scale(0.9)"
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
transform: "scale(1)"
|
|
1602
|
+
}
|
|
1603
|
+
],
|
|
1604
|
+
config: {
|
|
1605
|
+
duration: 800,
|
|
1606
|
+
easing: "ease-out",
|
|
1607
|
+
fill: "both"
|
|
1608
|
+
}
|
|
1609
|
+
}, Ze = {
|
|
1610
|
+
keyframes: [
|
|
1611
|
+
{
|
|
1612
|
+
opacity: 0,
|
|
1613
|
+
transform: "rotate(-180deg) scale(0.5)"
|
|
1614
|
+
},
|
|
1615
|
+
{
|
|
1616
|
+
opacity: 1,
|
|
1617
|
+
transform: "rotate(0deg) scale(1)"
|
|
1618
|
+
}
|
|
1619
|
+
],
|
|
1620
|
+
config: {
|
|
1621
|
+
duration: 800,
|
|
1622
|
+
easing: "ease-out",
|
|
1623
|
+
fill: "both"
|
|
1624
|
+
}
|
|
1625
|
+
}, Je = {
|
|
1626
|
+
keyframes: [
|
|
1627
|
+
{
|
|
1628
|
+
opacity: 0,
|
|
1629
|
+
transform: "rotate(-45deg) translate(-50px, -50px) scale(0.5)",
|
|
1630
|
+
transformOrigin: "left bottom"
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
opacity: 1,
|
|
1634
|
+
transform: "rotate(0deg) translate(0, 0) scale(1)",
|
|
1635
|
+
transformOrigin: "left bottom"
|
|
1636
|
+
}
|
|
1637
|
+
],
|
|
1638
|
+
config: {
|
|
1639
|
+
duration: 800,
|
|
1640
|
+
easing: "ease-out",
|
|
1641
|
+
fill: "both"
|
|
1642
|
+
}
|
|
1643
|
+
}, Ke = {
|
|
1644
|
+
keyframes: [
|
|
1645
|
+
{
|
|
1646
|
+
opacity: 0,
|
|
1647
|
+
transform: "rotate(45deg) translate(50px, -50px) scale(0.5)",
|
|
1648
|
+
transformOrigin: "right bottom"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
opacity: 1,
|
|
1652
|
+
transform: "rotate(0deg) translate(0, 0) scale(1)",
|
|
1653
|
+
transformOrigin: "right bottom"
|
|
1654
|
+
}
|
|
1655
|
+
],
|
|
1656
|
+
config: {
|
|
1657
|
+
duration: 800,
|
|
1658
|
+
easing: "ease-out",
|
|
1659
|
+
fill: "both"
|
|
1660
|
+
}
|
|
1661
|
+
}, ea = {
|
|
1662
|
+
keyframes: [
|
|
1663
|
+
{
|
|
1664
|
+
opacity: 0,
|
|
1665
|
+
transform: "rotate(45deg) translate(-50px, 50px) scale(0.5)",
|
|
1666
|
+
transformOrigin: "left top"
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
opacity: 1,
|
|
1670
|
+
transform: "rotate(0deg) translate(0, 0) scale(1)",
|
|
1671
|
+
transformOrigin: "left top"
|
|
1672
|
+
}
|
|
1673
|
+
],
|
|
1674
|
+
config: {
|
|
1675
|
+
duration: 800,
|
|
1676
|
+
easing: "ease-out",
|
|
1677
|
+
fill: "both"
|
|
1678
|
+
}
|
|
1679
|
+
}, aa = {
|
|
1680
|
+
keyframes: [
|
|
1681
|
+
{
|
|
1682
|
+
opacity: 0,
|
|
1683
|
+
transform: "rotate(-45deg) translate(50px, 50px) scale(0.5)",
|
|
1684
|
+
transformOrigin: "right top"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
opacity: 1,
|
|
1688
|
+
transform: "rotate(0deg) translate(0, 0) scale(1)",
|
|
1689
|
+
transformOrigin: "right top"
|
|
1690
|
+
}
|
|
1691
|
+
],
|
|
1692
|
+
config: {
|
|
1693
|
+
duration: 800,
|
|
1694
|
+
easing: "ease-out",
|
|
1695
|
+
fill: "both"
|
|
1696
|
+
}
|
|
1697
|
+
}, ra = {
|
|
1698
|
+
keyframes: [
|
|
1699
|
+
{
|
|
1700
|
+
opacity: 1,
|
|
1701
|
+
transform: "rotate(0deg) scale(1)"
|
|
1702
|
+
},
|
|
1703
|
+
{
|
|
1704
|
+
opacity: 0,
|
|
1705
|
+
transform: "rotate(180deg) scale(0.5)"
|
|
1706
|
+
}
|
|
1707
|
+
],
|
|
1708
|
+
config: {
|
|
1709
|
+
duration: 800,
|
|
1710
|
+
easing: "ease-in",
|
|
1711
|
+
fill: "both"
|
|
1712
|
+
}
|
|
1713
|
+
}, ta = {
|
|
1714
|
+
keyframes: [
|
|
1715
|
+
{ transform: "rotate(0deg)" },
|
|
1716
|
+
{ transform: "rotate(360deg)" }
|
|
1717
|
+
],
|
|
1718
|
+
config: {
|
|
1719
|
+
duration: 1e3,
|
|
1720
|
+
easing: "linear",
|
|
1721
|
+
iterations: 1 / 0,
|
|
1722
|
+
fill: "both"
|
|
1723
|
+
}
|
|
1724
|
+
}, na = {
|
|
1725
|
+
keyframes: [
|
|
1726
|
+
{ transform: "rotate(360deg)" },
|
|
1727
|
+
{ transform: "rotate(0deg)" }
|
|
1728
|
+
],
|
|
1729
|
+
config: {
|
|
1730
|
+
duration: 1e3,
|
|
1731
|
+
easing: "linear",
|
|
1732
|
+
iterations: 1 / 0,
|
|
1733
|
+
fill: "both"
|
|
1734
|
+
}
|
|
1735
|
+
}, oa = {
|
|
1736
|
+
keyframes: [
|
|
1737
|
+
{ transform: "rotate(0deg)" },
|
|
1738
|
+
{ transform: "rotate(360deg)" }
|
|
1739
|
+
],
|
|
1740
|
+
config: {
|
|
1741
|
+
duration: 3e3,
|
|
1742
|
+
easing: "linear",
|
|
1743
|
+
iterations: 1 / 0,
|
|
1744
|
+
fill: "both"
|
|
1745
|
+
}
|
|
1746
|
+
}, ia = {
|
|
1747
|
+
keyframes: [
|
|
1748
|
+
{ transform: "rotate(0deg)" },
|
|
1749
|
+
{ transform: "rotate(360deg)" }
|
|
1750
|
+
],
|
|
1751
|
+
config: {
|
|
1752
|
+
duration: 500,
|
|
1753
|
+
easing: "linear",
|
|
1754
|
+
iterations: 1 / 0,
|
|
1755
|
+
fill: "both"
|
|
1756
|
+
}
|
|
1757
|
+
}, sa = {
|
|
1758
|
+
keyframes: [
|
|
1759
|
+
{
|
|
1760
|
+
opacity: 0,
|
|
1761
|
+
transform: "scale(0.3)"
|
|
1762
|
+
},
|
|
1763
|
+
{
|
|
1764
|
+
opacity: 1,
|
|
1765
|
+
transform: "scale(1.05)"
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
transform: "scale(0.9)"
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
transform: "scale(1)"
|
|
1772
|
+
}
|
|
1773
|
+
],
|
|
1774
|
+
config: {
|
|
1775
|
+
duration: 800,
|
|
1776
|
+
easing: "ease-out",
|
|
1777
|
+
fill: "both"
|
|
1778
|
+
}
|
|
1779
|
+
}, la = {
|
|
1780
|
+
keyframes: [
|
|
1781
|
+
{
|
|
1782
|
+
opacity: 0,
|
|
1783
|
+
transform: "translateY(100%) scale(0.7)"
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
opacity: 1,
|
|
1787
|
+
transform: "translateY(-20px) scale(1.05)"
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
transform: "translateY(10px) scale(0.95)"
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
transform: "translateY(0) scale(1)"
|
|
1794
|
+
}
|
|
1795
|
+
],
|
|
1796
|
+
config: {
|
|
1797
|
+
duration: 1e3,
|
|
1798
|
+
easing: "ease-out",
|
|
1799
|
+
fill: "both"
|
|
1800
|
+
}
|
|
1801
|
+
}, da = {
|
|
1802
|
+
keyframes: [
|
|
1803
|
+
{
|
|
1804
|
+
opacity: 0,
|
|
1805
|
+
transform: "translateY(-100%) scale(0.7)"
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
opacity: 1,
|
|
1809
|
+
transform: "translateY(20px) scale(1.05)"
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
transform: "translateY(-10px) scale(0.95)"
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
transform: "translateY(0) scale(1)"
|
|
1816
|
+
}
|
|
1817
|
+
],
|
|
1818
|
+
config: {
|
|
1819
|
+
duration: 1e3,
|
|
1820
|
+
easing: "ease-out",
|
|
1821
|
+
fill: "both"
|
|
1822
|
+
}
|
|
1823
|
+
}, ca = {
|
|
1824
|
+
keyframes: [
|
|
1825
|
+
{
|
|
1826
|
+
opacity: 0,
|
|
1827
|
+
transform: "translateX(-100%) scale(0.7)"
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
opacity: 1,
|
|
1831
|
+
transform: "translateX(20px) scale(1.05)"
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
transform: "translateX(-10px) scale(0.95)"
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
transform: "translateX(0) scale(1)"
|
|
1838
|
+
}
|
|
1839
|
+
],
|
|
1840
|
+
config: {
|
|
1841
|
+
duration: 1e3,
|
|
1842
|
+
easing: "ease-out",
|
|
1843
|
+
fill: "both"
|
|
1844
|
+
}
|
|
1845
|
+
}, ga = {
|
|
1846
|
+
keyframes: [
|
|
1847
|
+
{
|
|
1848
|
+
opacity: 0,
|
|
1849
|
+
transform: "translateX(100%) scale(0.7)"
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
opacity: 1,
|
|
1853
|
+
transform: "translateX(-20px) scale(1.05)"
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
transform: "translateX(10px) scale(0.95)"
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
transform: "translateX(0) scale(1)"
|
|
1860
|
+
}
|
|
1861
|
+
],
|
|
1862
|
+
config: {
|
|
1863
|
+
duration: 1e3,
|
|
1864
|
+
easing: "ease-out",
|
|
1865
|
+
fill: "both"
|
|
1866
|
+
}
|
|
1867
|
+
}, pa = {
|
|
1868
|
+
keyframes: [
|
|
1869
|
+
{
|
|
1870
|
+
transform: "scale(1)"
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
transform: "scale(1.1)"
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
opacity: 1,
|
|
1877
|
+
transform: "scale(0.3)"
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
opacity: 0,
|
|
1881
|
+
transform: "scale(0)"
|
|
1882
|
+
}
|
|
1883
|
+
],
|
|
1884
|
+
config: {
|
|
1885
|
+
duration: 800,
|
|
1886
|
+
easing: "ease-in",
|
|
1887
|
+
fill: "both"
|
|
1888
|
+
}
|
|
1889
|
+
}, ua = {
|
|
1890
|
+
keyframes: [
|
|
1891
|
+
{ transform: "translateY(0)" },
|
|
1892
|
+
{ transform: "translateY(-30px)" },
|
|
1893
|
+
{ transform: "translateY(0)" }
|
|
1894
|
+
],
|
|
1895
|
+
config: {
|
|
1896
|
+
duration: 600,
|
|
1897
|
+
easing: "ease-out",
|
|
1898
|
+
fill: "both"
|
|
1899
|
+
}
|
|
1900
|
+
}, ma = {
|
|
1901
|
+
keyframes: [
|
|
1902
|
+
{ transform: "translateY(0)", offset: 0 },
|
|
1903
|
+
{ transform: "translateY(-20px)", offset: 0.4 },
|
|
1904
|
+
{ transform: "translateY(0)", offset: 0.5 },
|
|
1905
|
+
{ transform: "translateY(-10px)", offset: 0.7 },
|
|
1906
|
+
{ transform: "translateY(0)", offset: 1 }
|
|
1907
|
+
],
|
|
1908
|
+
config: {
|
|
1909
|
+
duration: 1e3,
|
|
1910
|
+
easing: "ease-out",
|
|
1911
|
+
iterations: 1 / 0,
|
|
1912
|
+
fill: "both"
|
|
1913
|
+
}
|
|
1914
|
+
}, ba = {
|
|
1915
|
+
keyframes: [
|
|
1916
|
+
{ transform: "translateX(0)" },
|
|
1917
|
+
{ transform: "translateX(-10px)" },
|
|
1918
|
+
{ transform: "translateX(10px)" },
|
|
1919
|
+
{ transform: "translateX(-10px)" },
|
|
1920
|
+
{ transform: "translateX(10px)" },
|
|
1921
|
+
{ transform: "translateX(0)" }
|
|
1922
|
+
],
|
|
1923
|
+
config: {
|
|
1924
|
+
duration: 500,
|
|
1925
|
+
easing: "ease-in-out",
|
|
1926
|
+
fill: "both"
|
|
1927
|
+
}
|
|
1928
|
+
}, fa = {
|
|
1929
|
+
keyframes: [
|
|
1930
|
+
{ transform: "translateY(0)" },
|
|
1931
|
+
{ transform: "translateY(-10px)" },
|
|
1932
|
+
{ transform: "translateY(10px)" },
|
|
1933
|
+
{ transform: "translateY(-10px)" },
|
|
1934
|
+
{ transform: "translateY(10px)" },
|
|
1935
|
+
{ transform: "translateY(0)" }
|
|
1936
|
+
],
|
|
1937
|
+
config: {
|
|
1938
|
+
duration: 500,
|
|
1939
|
+
easing: "ease-in-out",
|
|
1940
|
+
fill: "both"
|
|
1941
|
+
}
|
|
1942
|
+
}, ha = {
|
|
1943
|
+
keyframes: [
|
|
1944
|
+
{ transform: "scale(1)" },
|
|
1945
|
+
{ transform: "scale(1.05)" },
|
|
1946
|
+
{ transform: "scale(1)" }
|
|
1947
|
+
],
|
|
1948
|
+
config: {
|
|
1949
|
+
duration: 500,
|
|
1950
|
+
easing: "ease-in-out",
|
|
1951
|
+
fill: "both"
|
|
1952
|
+
}
|
|
1953
|
+
}, xa = {
|
|
1954
|
+
keyframes: [
|
|
1955
|
+
{ transform: "scale(1)" },
|
|
1956
|
+
{ transform: "scale(1.05)" },
|
|
1957
|
+
{ transform: "scale(1)" }
|
|
1958
|
+
],
|
|
1959
|
+
config: {
|
|
1960
|
+
duration: 1e3,
|
|
1961
|
+
easing: "ease-in-out",
|
|
1962
|
+
iterations: 1 / 0,
|
|
1963
|
+
fill: "both"
|
|
1964
|
+
}
|
|
1965
|
+
}, ya = {
|
|
1966
|
+
keyframes: [
|
|
1967
|
+
{ transform: "scale(1)" },
|
|
1968
|
+
{ transform: "scale(1.3)" },
|
|
1969
|
+
{ transform: "scale(1)" },
|
|
1970
|
+
{ transform: "scale(1.3)" },
|
|
1971
|
+
{ transform: "scale(1)" }
|
|
1972
|
+
],
|
|
1973
|
+
config: {
|
|
1974
|
+
duration: 1300,
|
|
1975
|
+
easing: "ease-in-out",
|
|
1976
|
+
fill: "both"
|
|
1977
|
+
}
|
|
1978
|
+
}, wa = {
|
|
1979
|
+
keyframes: [
|
|
1980
|
+
{ opacity: 1 },
|
|
1981
|
+
{ opacity: 0 },
|
|
1982
|
+
{ opacity: 1 },
|
|
1983
|
+
{ opacity: 0 },
|
|
1984
|
+
{ opacity: 1 }
|
|
1985
|
+
],
|
|
1986
|
+
config: {
|
|
1987
|
+
duration: 750,
|
|
1988
|
+
easing: "linear",
|
|
1989
|
+
fill: "both"
|
|
1990
|
+
}
|
|
1991
|
+
}, va = {
|
|
1992
|
+
keyframes: [
|
|
1993
|
+
{ transform: "scaleX(1) scaleY(1)" },
|
|
1994
|
+
{ transform: "scaleX(1.25) scaleY(0.75)" },
|
|
1995
|
+
{ transform: "scaleX(0.75) scaleY(1.25)" },
|
|
1996
|
+
{ transform: "scaleX(1.15) scaleY(0.85)" },
|
|
1997
|
+
{ transform: "scaleX(0.95) scaleY(1.05)" },
|
|
1998
|
+
{ transform: "scaleX(1) scaleY(1)" }
|
|
1999
|
+
],
|
|
2000
|
+
config: {
|
|
2001
|
+
duration: 1e3,
|
|
2002
|
+
easing: "ease-in-out",
|
|
2003
|
+
fill: "both"
|
|
2004
|
+
}
|
|
2005
|
+
}, ka = {
|
|
2006
|
+
keyframes: [
|
|
2007
|
+
{ transform: "skewX(0deg) skewY(0deg)" },
|
|
2008
|
+
{ transform: "skewX(-12.5deg) skewY(-12.5deg)" },
|
|
2009
|
+
{ transform: "skewX(6.25deg) skewY(6.25deg)" },
|
|
2010
|
+
{ transform: "skewX(-3.125deg) skewY(-3.125deg)" },
|
|
2011
|
+
{ transform: "skewX(1.5625deg) skewY(1.5625deg)" },
|
|
2012
|
+
{ transform: "skewX(0deg) skewY(0deg)" }
|
|
2013
|
+
],
|
|
2014
|
+
config: {
|
|
2015
|
+
duration: 1e3,
|
|
2016
|
+
easing: "ease-in-out",
|
|
2017
|
+
fill: "both"
|
|
2018
|
+
}
|
|
2019
|
+
}, Ia = {
|
|
2020
|
+
keyframes: [
|
|
2021
|
+
{ transform: "rotate(0deg)", transformOrigin: "top center" },
|
|
2022
|
+
{ transform: "rotate(15deg)", transformOrigin: "top center" },
|
|
2023
|
+
{ transform: "rotate(-10deg)", transformOrigin: "top center" },
|
|
2024
|
+
{ transform: "rotate(5deg)", transformOrigin: "top center" },
|
|
2025
|
+
{ transform: "rotate(-5deg)", transformOrigin: "top center" },
|
|
2026
|
+
{ transform: "rotate(0deg)", transformOrigin: "top center" }
|
|
2027
|
+
],
|
|
2028
|
+
config: {
|
|
2029
|
+
duration: 1e3,
|
|
2030
|
+
easing: "ease-in-out",
|
|
2031
|
+
fill: "both"
|
|
2032
|
+
}
|
|
2033
|
+
}, Na = {
|
|
2034
|
+
keyframes: [
|
|
2035
|
+
{ transform: "translateX(0%) rotate(0deg)" },
|
|
2036
|
+
{ transform: "translateX(-25%) rotate(-5deg)" },
|
|
2037
|
+
{ transform: "translateX(20%) rotate(3deg)" },
|
|
2038
|
+
{ transform: "translateX(-15%) rotate(-3deg)" },
|
|
2039
|
+
{ transform: "translateX(10%) rotate(2deg)" },
|
|
2040
|
+
{ transform: "translateX(-5%) rotate(-1deg)" },
|
|
2041
|
+
{ transform: "translateX(0%) rotate(0deg)" }
|
|
2042
|
+
],
|
|
2043
|
+
config: {
|
|
2044
|
+
duration: 1e3,
|
|
2045
|
+
easing: "ease-in-out",
|
|
2046
|
+
fill: "both"
|
|
2047
|
+
}
|
|
2048
|
+
}, Ma = {
|
|
2049
|
+
keyframes: [
|
|
2050
|
+
{ transform: "scale(1) rotate(0deg)" },
|
|
2051
|
+
{ transform: "scale(0.9) rotate(-3deg)" },
|
|
2052
|
+
{ transform: "scale(0.9) rotate(-3deg)" },
|
|
2053
|
+
{ transform: "scale(1.1) rotate(3deg)" },
|
|
2054
|
+
{ transform: "scale(1.1) rotate(-3deg)" },
|
|
2055
|
+
{ transform: "scale(1.1) rotate(3deg)" },
|
|
2056
|
+
{ transform: "scale(1.1) rotate(-3deg)" },
|
|
2057
|
+
{ transform: "scale(1.1) rotate(3deg)" },
|
|
2058
|
+
{ transform: "scale(1.1) rotate(-3deg)" },
|
|
2059
|
+
{ transform: "scale(1) rotate(0deg)" }
|
|
2060
|
+
],
|
|
2061
|
+
config: {
|
|
2062
|
+
duration: 1e3,
|
|
2063
|
+
easing: "ease-in-out",
|
|
2064
|
+
fill: "both"
|
|
2065
|
+
}
|
|
2066
|
+
}, I = {
|
|
2067
|
+
// Fade (10)
|
|
2068
|
+
fadeIn: Ie,
|
|
2069
|
+
fadeInUp: Ne,
|
|
2070
|
+
fadeInDown: Me,
|
|
2071
|
+
fadeInLeft: Oe,
|
|
2072
|
+
fadeInRight: Ce,
|
|
2073
|
+
fadeOut: Ye,
|
|
2074
|
+
fadeOutUp: Xe,
|
|
2075
|
+
fadeOutDown: Re,
|
|
2076
|
+
fadeOutLeft: Pe,
|
|
2077
|
+
fadeOutRight: ze,
|
|
2078
|
+
// Slide (8)
|
|
2079
|
+
slideInUp: $e,
|
|
2080
|
+
slideInDown: Be,
|
|
2081
|
+
slideInLeft: De,
|
|
2082
|
+
slideInRight: Ge,
|
|
2083
|
+
slideOutUp: Se,
|
|
2084
|
+
slideOutDown: _e,
|
|
2085
|
+
slideOutLeft: Ee,
|
|
2086
|
+
slideOutRight: Ue,
|
|
2087
|
+
// Zoom (10)
|
|
2088
|
+
zoomIn: Le,
|
|
2089
|
+
zoomInUp: Ae,
|
|
2090
|
+
zoomInDown: qe,
|
|
2091
|
+
zoomInLeft: He,
|
|
2092
|
+
zoomInRight: je,
|
|
2093
|
+
zoomOut: Fe,
|
|
2094
|
+
zoomOutUp: Qe,
|
|
2095
|
+
zoomOutDown: Te,
|
|
2096
|
+
zoomInBig: Ve,
|
|
2097
|
+
zoomInBounce: We,
|
|
2098
|
+
// Rotate (10)
|
|
2099
|
+
rotateIn: Ze,
|
|
2100
|
+
rotateInUpLeft: Je,
|
|
2101
|
+
rotateInUpRight: Ke,
|
|
2102
|
+
rotateInDownLeft: ea,
|
|
2103
|
+
rotateInDownRight: aa,
|
|
2104
|
+
rotateOut: ra,
|
|
2105
|
+
spin: ta,
|
|
2106
|
+
spinReverse: na,
|
|
2107
|
+
spinSlow: oa,
|
|
2108
|
+
spinFast: ia,
|
|
2109
|
+
// Bounce (8)
|
|
2110
|
+
bounceIn: sa,
|
|
2111
|
+
bounceInUp: la,
|
|
2112
|
+
bounceInDown: da,
|
|
2113
|
+
bounceInLeft: ca,
|
|
2114
|
+
bounceInRight: ga,
|
|
2115
|
+
bounceOut: pa,
|
|
2116
|
+
bounce: ua,
|
|
2117
|
+
bounceLoop: ma,
|
|
2118
|
+
// Attention (12)
|
|
2119
|
+
shake: ba,
|
|
2120
|
+
shakeY: fa,
|
|
2121
|
+
pulse: ha,
|
|
2122
|
+
pulseLoop: xa,
|
|
2123
|
+
heartbeat: ya,
|
|
2124
|
+
flash: wa,
|
|
2125
|
+
rubberBand: va,
|
|
2126
|
+
jello: ka,
|
|
2127
|
+
swing: Ia,
|
|
2128
|
+
wobble: Na,
|
|
2129
|
+
tada: Ma
|
|
2130
|
+
};
|
|
2131
|
+
function Cr(e) {
|
|
2132
|
+
return I[e];
|
|
2133
|
+
}
|
|
2134
|
+
function Oa() {
|
|
2135
|
+
return Object.keys(I);
|
|
2136
|
+
}
|
|
2137
|
+
function Yr(e) {
|
|
2138
|
+
return Oa().filter((a) => a.startsWith(e));
|
|
2139
|
+
}
|
|
2140
|
+
const Ca = ({
|
|
2141
|
+
children: e,
|
|
2142
|
+
preset: a = "fadeIn",
|
|
2143
|
+
duration: r,
|
|
2144
|
+
delay: t,
|
|
2145
|
+
easing: o,
|
|
2146
|
+
iterations: i,
|
|
2147
|
+
trigger: s = "mount",
|
|
2148
|
+
threshold: d = 0.1,
|
|
2149
|
+
triggerOnce: l = !0,
|
|
2150
|
+
onAnimationStart: c,
|
|
2151
|
+
onAnimationEnd: g,
|
|
2152
|
+
className: f = "",
|
|
2153
|
+
style: b = {}
|
|
2154
|
+
}) => {
|
|
2155
|
+
const p = u(null), h = u(null), x = u(null), N = u(!1), k = async () => {
|
|
2156
|
+
var z, $, B, D;
|
|
2157
|
+
if (!p.current || l && N.current) return;
|
|
2158
|
+
const w = I[a];
|
|
2159
|
+
if (!w) {
|
|
2160
|
+
console.warn(`[TeleMotion] Preset "${a}" not found`);
|
|
2161
|
+
return;
|
|
2162
|
+
}
|
|
2163
|
+
h.current || (h.current = new y(p.current)), c == null || c();
|
|
2164
|
+
const M = {
|
|
2165
|
+
...w.config,
|
|
2166
|
+
duration: r ?? ((z = w.config) == null ? void 0 : z.duration),
|
|
2167
|
+
delay: t ?? (($ = w.config) == null ? void 0 : $.delay),
|
|
2168
|
+
easing: o ?? ((B = w.config) == null ? void 0 : B.easing),
|
|
2169
|
+
iterations: i ?? ((D = w.config) == null ? void 0 : D.iterations)
|
|
2170
|
+
};
|
|
2171
|
+
try {
|
|
2172
|
+
await h.current.animate(w.keyframes, M), N.current = !0, g == null || g();
|
|
2173
|
+
} catch (A) {
|
|
2174
|
+
console.error("[TeleMotion] Animation error:", A);
|
|
2175
|
+
}
|
|
2176
|
+
};
|
|
2177
|
+
v(() => {
|
|
2178
|
+
s === "mount" && k();
|
|
2179
|
+
}, [a, r, t, o, i]), v(() => {
|
|
2180
|
+
if (!(s !== "scroll" || !p.current))
|
|
2181
|
+
return x.current = new IntersectionObserver(
|
|
2182
|
+
(w) => {
|
|
2183
|
+
w.forEach((M) => {
|
|
2184
|
+
M.isIntersecting && (k(), l && x.current && x.current.unobserve(M.target));
|
|
2185
|
+
});
|
|
2186
|
+
},
|
|
2187
|
+
{ threshold: d }
|
|
2188
|
+
), x.current.observe(p.current), () => {
|
|
2189
|
+
x.current && x.current.disconnect();
|
|
2190
|
+
};
|
|
2191
|
+
}, [s, d, l, a]);
|
|
2192
|
+
const R = () => {
|
|
2193
|
+
s === "hover" && k();
|
|
2194
|
+
}, P = () => {
|
|
2195
|
+
s === "click" && k();
|
|
2196
|
+
};
|
|
2197
|
+
return v(() => () => {
|
|
2198
|
+
h.current && h.current.stop();
|
|
2199
|
+
}, []), /* @__PURE__ */ n(
|
|
2200
|
+
"div",
|
|
2201
|
+
{
|
|
2202
|
+
ref: p,
|
|
2203
|
+
className: f,
|
|
2204
|
+
style: b,
|
|
2205
|
+
onMouseEnter: s === "hover" ? R : void 0,
|
|
2206
|
+
onClick: s === "click" ? P : void 0,
|
|
2207
|
+
children: e
|
|
2208
|
+
}
|
|
2209
|
+
);
|
|
2210
|
+
};
|
|
2211
|
+
Ca.displayName = "TeleMotion";
|
|
2212
|
+
function Xr() {
|
|
2213
|
+
const e = u(null), a = u(null), r = async (t, o) => {
|
|
2214
|
+
e.current && (a.current || (a.current = new y(e.current)), await a.current.animate(t, o));
|
|
2215
|
+
};
|
|
2216
|
+
return v(() => () => {
|
|
2217
|
+
a.current && a.current.stop();
|
|
2218
|
+
}, []), [e, r];
|
|
2219
|
+
}
|
|
2220
|
+
function Rr(e, a) {
|
|
2221
|
+
const r = u(null), t = u(null), o = async () => {
|
|
2222
|
+
if (!r.current) return;
|
|
2223
|
+
const i = I[e];
|
|
2224
|
+
if (!i) {
|
|
2225
|
+
console.warn(`[usePresetAnimation] Preset "${e}" not found`);
|
|
2226
|
+
return;
|
|
2227
|
+
}
|
|
2228
|
+
t.current || (t.current = new y(r.current));
|
|
2229
|
+
const s = {
|
|
2230
|
+
...i.config,
|
|
2231
|
+
...a
|
|
2232
|
+
};
|
|
2233
|
+
await t.current.animate(i.keyframes, s);
|
|
2234
|
+
};
|
|
2235
|
+
return v(() => {
|
|
2236
|
+
(a == null ? void 0 : a.trigger) !== "manual" && o();
|
|
2237
|
+
}, [e]), v(() => () => {
|
|
2238
|
+
t.current && t.current.stop();
|
|
2239
|
+
}, []), [r, o];
|
|
2240
|
+
}
|
|
2241
|
+
function Pr(e, a) {
|
|
2242
|
+
const r = u(null), t = u(null), o = u(null), i = u(!1);
|
|
2243
|
+
return v(() => {
|
|
2244
|
+
if (!r.current) return;
|
|
2245
|
+
const s = I[e];
|
|
2246
|
+
if (!s) {
|
|
2247
|
+
console.warn(`[useScrollAnimation] Preset "${e}" not found`);
|
|
2248
|
+
return;
|
|
2249
|
+
}
|
|
2250
|
+
return t.current = new y(r.current), o.current = new IntersectionObserver(
|
|
2251
|
+
(d) => {
|
|
2252
|
+
d.forEach((l) => {
|
|
2253
|
+
if (l.isIntersecting && !i.current && t.current) {
|
|
2254
|
+
const c = {
|
|
2255
|
+
...s.config,
|
|
2256
|
+
...a == null ? void 0 : a.config
|
|
2257
|
+
};
|
|
2258
|
+
t.current.animate(s.keyframes, c), i.current = !0, (a == null ? void 0 : a.triggerOnce) !== !1 && o.current && o.current.unobserve(l.target);
|
|
2259
|
+
}
|
|
2260
|
+
});
|
|
2261
|
+
},
|
|
2262
|
+
{ threshold: (a == null ? void 0 : a.threshold) ?? 0.1 }
|
|
2263
|
+
), o.current.observe(r.current), () => {
|
|
2264
|
+
o.current && o.current.disconnect(), t.current && t.current.stop();
|
|
2265
|
+
};
|
|
2266
|
+
}, [e, a == null ? void 0 : a.threshold, a == null ? void 0 : a.triggerOnce]), r;
|
|
2267
|
+
}
|
|
2268
|
+
function zr(e, a = 100, r) {
|
|
2269
|
+
const t = u(null);
|
|
2270
|
+
return [t, async () => {
|
|
2271
|
+
if (!t.current) return;
|
|
2272
|
+
const i = I[e];
|
|
2273
|
+
if (!i) return;
|
|
2274
|
+
const d = Array.from(t.current.children).map((l, c) => new y(l).animate(i.keyframes, {
|
|
2275
|
+
...i.config,
|
|
2276
|
+
...r,
|
|
2277
|
+
delay: ((r == null ? void 0 : r.delay) ?? 0) + a * c
|
|
2278
|
+
}));
|
|
2279
|
+
await Promise.all(d);
|
|
2280
|
+
}];
|
|
2281
|
+
}
|
|
2282
|
+
function $r(e, a) {
|
|
2283
|
+
const r = u(null), t = u(null);
|
|
2284
|
+
return [r, { onMouseEnter: async () => {
|
|
2285
|
+
if (!r.current) return;
|
|
2286
|
+
const s = I[e];
|
|
2287
|
+
s && (t.current || (t.current = new y(r.current)), await t.current.animate(s.keyframes, {
|
|
2288
|
+
...s.config,
|
|
2289
|
+
...a
|
|
2290
|
+
}));
|
|
2291
|
+
}, onMouseLeave: () => {
|
|
2292
|
+
t.current && t.current.stop();
|
|
2293
|
+
} }];
|
|
2294
|
+
}
|
|
2295
|
+
function Br(e = 0.1) {
|
|
2296
|
+
const a = u(null), [r, t] = S(!1);
|
|
2297
|
+
return v(() => {
|
|
2298
|
+
if (!a.current) return;
|
|
2299
|
+
const o = new IntersectionObserver(
|
|
2300
|
+
(i) => {
|
|
2301
|
+
i.forEach((s) => {
|
|
2302
|
+
t(s.isIntersecting);
|
|
2303
|
+
});
|
|
2304
|
+
},
|
|
2305
|
+
{ threshold: e }
|
|
2306
|
+
);
|
|
2307
|
+
return o.observe(a.current), () => {
|
|
2308
|
+
o.disconnect();
|
|
2309
|
+
};
|
|
2310
|
+
}, [e]), [a, r];
|
|
2311
|
+
}
|
|
959
2312
|
export {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
2313
|
+
Va as AnimatedBounce,
|
|
2314
|
+
Wa as AnimatedGlow,
|
|
2315
|
+
Ta as AnimatedPulse,
|
|
2316
|
+
Qa as AnimatedShimmer,
|
|
2317
|
+
y as Animator,
|
|
2318
|
+
Ra as Button,
|
|
2319
|
+
tr as Button3DBlue,
|
|
2320
|
+
or as Button3DGreen,
|
|
2321
|
+
nr as Button3DPink,
|
|
2322
|
+
dr as Container,
|
|
2323
|
+
pr as ContainerButton,
|
|
2324
|
+
gr as ContainerContent,
|
|
2325
|
+
cr as ContainerImage,
|
|
2326
|
+
ur as FeatureCard,
|
|
2327
|
+
er as GhostBlue,
|
|
2328
|
+
rr as GhostPurple,
|
|
2329
|
+
ar as GhostRed,
|
|
2330
|
+
qa as GlassBlue,
|
|
2331
|
+
O as GlassButton,
|
|
2332
|
+
Fa as GlassPink,
|
|
2333
|
+
Ha as GlassPurple,
|
|
2334
|
+
ja as GlassWhite,
|
|
2335
|
+
Ea as GradientBlueGreen,
|
|
2336
|
+
La as GradientCyan,
|
|
2337
|
+
Ua as GradientOrangeRed,
|
|
2338
|
+
_a as GradientPurplePink,
|
|
2339
|
+
Aa as GradientSunset,
|
|
2340
|
+
Pa as Home,
|
|
2341
|
+
ir as NeonBlue,
|
|
2342
|
+
lr as NeonGreen,
|
|
2343
|
+
sr as NeonPink,
|
|
2344
|
+
Za as OutlinedBlue,
|
|
2345
|
+
Ka as OutlinedGradient,
|
|
2346
|
+
Ja as OutlinedPurple,
|
|
2347
|
+
mr as ProductCard,
|
|
2348
|
+
L as ScrollObserver,
|
|
2349
|
+
$a as SolidBlue,
|
|
2350
|
+
Da as SolidGreen,
|
|
2351
|
+
Sa as SolidPill,
|
|
2352
|
+
Ga as SolidPurple,
|
|
2353
|
+
Ba as SolidRed,
|
|
2354
|
+
br as StatCard,
|
|
2355
|
+
Ca as TeleMotion,
|
|
2356
|
+
hr as animateGroup,
|
|
2357
|
+
Nr as animateOnScroll,
|
|
2358
|
+
kr as bezier,
|
|
2359
|
+
fr as createAnimator,
|
|
2360
|
+
ve as easings,
|
|
2361
|
+
wr as getEasing,
|
|
2362
|
+
Cr as getPreset,
|
|
2363
|
+
Oa as getPresetNames,
|
|
2364
|
+
Yr as getPresetsByCategory,
|
|
2365
|
+
Mr as getScrollProgress,
|
|
2366
|
+
za as gradients,
|
|
2367
|
+
Or as isInViewport,
|
|
2368
|
+
ke as observeElement,
|
|
2369
|
+
Ir as observeElements,
|
|
2370
|
+
yr as parallel,
|
|
2371
|
+
I as presets,
|
|
2372
|
+
xr as sequence,
|
|
2373
|
+
vr as spring,
|
|
2374
|
+
Xr as useAnimator,
|
|
2375
|
+
$r as useHoverAnimation,
|
|
2376
|
+
Br as useInView,
|
|
2377
|
+
Rr as usePresetAnimation,
|
|
2378
|
+
Pr as useScrollAnimation,
|
|
2379
|
+
zr as useStagger
|
|
1001
2380
|
};
|