@epam/ai-dial-celebrations 1.2.0-dev.231 → 1.2.0-dev.232
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/flying-characters-Czuzwf8T.js +40 -0
- package/halloween.js +1749 -1752
- package/index.css +1 -1
- package/lottie_light-DVla0_7m.js +4435 -0
- package/new-year/assets/gift-wrapping-elves.json.d.ts +4794 -0
- package/new-year/components/NewYear/types.d.ts +2 -0
- package/new-year/components/NewYear/types.d.ts.map +1 -1
- package/new-year/components/NewYearGiftWrapping/GiftWrappingArt.d.ts +13 -0
- package/new-year/components/NewYearGiftWrapping/GiftWrappingArt.d.ts.map +1 -0
- package/new-year/components/NewYearGiftWrapping/NewYearGiftWrapping.d.ts +5 -0
- package/new-year/components/NewYearGiftWrapping/NewYearGiftWrapping.d.ts.map +1 -0
- package/new-year/constants/labels.d.ts +8 -2
- package/new-year/constants/labels.d.ts.map +1 -1
- package/new-year/event.d.ts.map +1 -1
- package/new-year/models/labels.d.ts +2 -0
- package/new-year/models/labels.d.ts.map +1 -1
- package/new-year/utils/gift-wrapping-animation.d.ts +5 -0
- package/new-year/utils/gift-wrapping-animation.d.ts.map +1 -0
- package/new-year/utils/gift-wrapping-composition.d.ts +51 -0
- package/new-year/utils/gift-wrapping-composition.d.ts.map +1 -0
- package/new-year/utils/gift-wrapping-player.d.ts +8 -0
- package/new-year/utils/gift-wrapping-player.d.ts.map +1 -0
- package/new-year/utils/gift-wrapping-rig.d.ts +26 -0
- package/new-year/utils/gift-wrapping-rig.d.ts.map +1 -0
- package/new-year/utils/gift-wrapping-targets.d.ts +20 -0
- package/new-year/utils/gift-wrapping-targets.d.ts.map +1 -0
- package/new-year.js +1561 -97
- package/package.json +3 -2
- package/flying-characters-2UJGx5Nh.js +0 -36
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { memo as e, useSyncExternalStore as t } from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/hooks/useReducedMotion.ts
|
|
4
|
+
var r = "(prefers-reduced-motion: reduce)", i = (e) => {
|
|
5
|
+
let t = window.matchMedia?.(r);
|
|
6
|
+
return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
|
|
7
|
+
}, a = () => window.matchMedia?.(r).matches ?? !1, o = () => t(i, a, () => !0), s = {
|
|
8
|
+
layer: "_layer_17k2o_20",
|
|
9
|
+
flight: "_flight_17k2o_29",
|
|
10
|
+
"character-flight": "_character-flight_17k2o_1",
|
|
11
|
+
facing: "_facing_17k2o_37"
|
|
12
|
+
}, c = e(({ flights: e, Character: t }) => /* @__PURE__ */ n("div", {
|
|
13
|
+
className: s.layer,
|
|
14
|
+
"aria-hidden": "true",
|
|
15
|
+
children: e.map((e, r) => /* @__PURE__ */ n("span", {
|
|
16
|
+
style: e,
|
|
17
|
+
className: s.flight,
|
|
18
|
+
children: /* @__PURE__ */ n("span", {
|
|
19
|
+
className: s.facing,
|
|
20
|
+
children: /* @__PURE__ */ n(t, {})
|
|
21
|
+
})
|
|
22
|
+
}, r))
|
|
23
|
+
})), l = ({ count: e, sizesPx: t, durationSeconds: n, staggerSeconds: r }) => Array.from({ length: e }, (i, a) => {
|
|
24
|
+
let o = a % 2 == 0, s = 12 + a * 17 % 62;
|
|
25
|
+
return {
|
|
26
|
+
"--flight-start-x": o ? "-22vw" : "115vw",
|
|
27
|
+
"--flight-end-x": o ? "115vw" : "-22vw",
|
|
28
|
+
"--flight-start-y": `${s}vh`,
|
|
29
|
+
"--flight-mid-y": `${Math.max(3, s - 18)}vh`,
|
|
30
|
+
"--flight-end-y": `${Math.min(84, s + 8)}vh`,
|
|
31
|
+
"--flight-rest-x": `${8 + a / e * 78}vw`,
|
|
32
|
+
"--flight-rest-y": `${s}vh`,
|
|
33
|
+
"--flight-facing": o ? 1 : -1,
|
|
34
|
+
"--flight-size": `${t[a % t.length]}px`,
|
|
35
|
+
"--flight-delay": `${(a * r).toFixed(2)}s`,
|
|
36
|
+
"--flight-duration": `${n}s`
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
export { c as n, o as r, l as t };
|