@acrool/react-picker 0.0.2-alpha.3 → 0.0.2-alpha.5
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/acrool-react-picker.es.js +357 -349
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as An from "react";
|
|
2
|
-
import $s, { createContext as
|
|
2
|
+
import $s, { createContext as Et, useContext as U, useLayoutEffect as Ho, useEffect as gt, useRef as it, useInsertionEffect as Ks, useCallback as pt, useMemo as Vt, forwardRef as Gs, Fragment as zs, createElement as Yo, useId as Cn, Component as Xo, Children as qo, isValidElement as Zo, useState as Jt } from "react";
|
|
3
3
|
var jt = /* @__PURE__ */ ((t) => (t.Escape = "Escape", t.Enter = "Enter", t.Tab = "Tab", t.ArrowUp = "ArrowUp", t.ArrowDown = "ArrowDown", t))(jt || {});
|
|
4
4
|
const le = [
|
|
5
5
|
"color: #fff",
|
|
@@ -48,21 +48,21 @@ function na(t, ...e) {
|
|
|
48
48
|
]).join(";");
|
|
49
49
|
ce(t, n, ...e);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const wt = {
|
|
52
52
|
primary: Jo,
|
|
53
53
|
success: Qo,
|
|
54
54
|
info: ta,
|
|
55
55
|
warning: ea,
|
|
56
56
|
danger: na
|
|
57
|
-
}, Rn =
|
|
58
|
-
hide: () =>
|
|
59
|
-
show: () =>
|
|
60
|
-
toggle: () =>
|
|
57
|
+
}, Rn = Et({
|
|
58
|
+
hide: () => wt.warning("No hide method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
59
|
+
show: () => wt.warning("No show method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
60
|
+
toggle: () => wt.warning("No toggle method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
61
61
|
isVisible: !1,
|
|
62
|
-
inputFocus: () =>
|
|
63
|
-
inputBlur: () =>
|
|
62
|
+
inputFocus: () => wt.warning("No focus method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
63
|
+
inputBlur: () => wt.warning("No blur method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
64
64
|
isInputFocus: !1,
|
|
65
|
-
onChange: () =>
|
|
65
|
+
onChange: () => wt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?")
|
|
66
66
|
}), Uh = Rn.Consumer, Wh = () => U(Rn);
|
|
67
67
|
var cn = { exports: {} }, Ht = {};
|
|
68
68
|
/**
|
|
@@ -105,22 +105,22 @@ var Yt = {};
|
|
|
105
105
|
var bi;
|
|
106
106
|
function sa() {
|
|
107
107
|
return bi || (bi = 1, process.env.NODE_ENV !== "production" && function() {
|
|
108
|
-
var t = $s, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"),
|
|
108
|
+
var t = $s, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, P = "@@iterator";
|
|
109
109
|
function b(f) {
|
|
110
110
|
if (f === null || typeof f != "object")
|
|
111
111
|
return null;
|
|
112
|
-
var m =
|
|
112
|
+
var m = g && f[g] || f[P];
|
|
113
113
|
return typeof m == "function" ? m : null;
|
|
114
114
|
}
|
|
115
115
|
var x = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
116
|
-
function
|
|
116
|
+
function y(f) {
|
|
117
117
|
{
|
|
118
118
|
for (var m = arguments.length, T = new Array(m > 1 ? m - 1 : 0), A = 1; A < m; A++)
|
|
119
119
|
T[A - 1] = arguments[A];
|
|
120
|
-
|
|
120
|
+
v("error", f, T);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function v(f, m, T) {
|
|
124
124
|
{
|
|
125
125
|
var A = x.ReactDebugCurrentFrame, D = A.getStackAddendum();
|
|
126
126
|
D !== "" && (m += "%s", T = T.concat([D]));
|
|
@@ -130,10 +130,10 @@ function sa() {
|
|
|
130
130
|
k.unshift("Warning: " + m), Function.prototype.apply.call(console[f], console, k);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var w = !1, C = !1, L = !1, q = !1, V = !1, G;
|
|
134
134
|
G = Symbol.for("react.module.reference");
|
|
135
135
|
function H(f) {
|
|
136
|
-
return !!(typeof f == "string" || typeof f == "function" || f === i || f === o || V || f === s || f === u || f === c || q || f === p ||
|
|
136
|
+
return !!(typeof f == "string" || typeof f == "function" || f === i || f === o || V || f === s || f === u || f === c || q || f === p || w || C || L || typeof f == "object" && f !== null && (f.$$typeof === d || f.$$typeof === h || f.$$typeof === r || f.$$typeof === a || f.$$typeof === l || // This needs to include all possible module reference object
|
|
137
137
|
// types supported by any Flight configuration anywhere since
|
|
138
138
|
// we don't know which Flight build this will end up being used
|
|
139
139
|
// with.
|
|
@@ -152,7 +152,7 @@ function sa() {
|
|
|
152
152
|
function Z(f) {
|
|
153
153
|
if (f == null)
|
|
154
154
|
return null;
|
|
155
|
-
if (typeof f.tag == "number" &&
|
|
155
|
+
if (typeof f.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof f == "function")
|
|
156
156
|
return f.displayName || f.name || null;
|
|
157
157
|
if (typeof f == "string")
|
|
158
158
|
return f;
|
|
@@ -253,7 +253,7 @@ function sa() {
|
|
|
253
253
|
})
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
|
-
F < 0 &&
|
|
256
|
+
F < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
var Ue = x.ReactCurrentDispatcher, We;
|
|
@@ -343,8 +343,8 @@ function sa() {
|
|
|
343
343
|
} finally {
|
|
344
344
|
$e = !1, Ue.current = k, To(), Error.prepareStackTrace = D;
|
|
345
345
|
}
|
|
346
|
-
var Lt = f ? f.displayName || f.name : "",
|
|
347
|
-
return typeof f == "function" && ge.set(f,
|
|
346
|
+
var Lt = f ? f.displayName || f.name : "", Tt = Lt ? me(Lt) : "";
|
|
347
|
+
return typeof f == "function" && ge.set(f, Tt), Tt;
|
|
348
348
|
}
|
|
349
349
|
function wo(f, m, T) {
|
|
350
350
|
return ai(f, !1);
|
|
@@ -405,7 +405,7 @@ function sa() {
|
|
|
405
405
|
} catch (_) {
|
|
406
406
|
R = _;
|
|
407
407
|
}
|
|
408
|
-
R && !(R instanceof Error) && (ve(D),
|
|
408
|
+
R && !(R instanceof Error) && (ve(D), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", A || "React class", T, E, typeof R), ve(null)), R instanceof Error && !(R.message in li) && (li[R.message] = !0, ve(D), y("Failed %s type: %s", T, R.message), ve(null));
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
}
|
|
@@ -431,7 +431,7 @@ function sa() {
|
|
|
431
431
|
}
|
|
432
432
|
function hi(f) {
|
|
433
433
|
if (Vo(f))
|
|
434
|
-
return
|
|
434
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ro(f)), ci(f);
|
|
435
435
|
}
|
|
436
436
|
var zt = x.ReactCurrentOwner, Eo = {
|
|
437
437
|
key: !0,
|
|
@@ -459,13 +459,13 @@ function sa() {
|
|
|
459
459
|
function ko(f, m) {
|
|
460
460
|
if (typeof f.ref == "string" && zt.current && m && zt.current.stateNode !== m) {
|
|
461
461
|
var T = Z(zt.current.type);
|
|
462
|
-
Ge[T] || (
|
|
462
|
+
Ge[T] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(zt.current.type), f.ref), Ge[T] = !0);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
function Lo(f, m) {
|
|
466
466
|
{
|
|
467
467
|
var T = function() {
|
|
468
|
-
fi || (fi = !0,
|
|
468
|
+
fi || (fi = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
|
|
469
469
|
};
|
|
470
470
|
T.isReactWarning = !0, Object.defineProperty(f, "key", {
|
|
471
471
|
get: T,
|
|
@@ -476,7 +476,7 @@ function sa() {
|
|
|
476
476
|
function jo(f, m) {
|
|
477
477
|
{
|
|
478
478
|
var T = function() {
|
|
479
|
-
di || (di = !0,
|
|
479
|
+
di || (di = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
|
|
480
480
|
};
|
|
481
481
|
T.isReactWarning = !0, Object.defineProperty(f, "ref", {
|
|
482
482
|
get: T,
|
|
@@ -590,7 +590,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
590
590
|
return;
|
|
591
591
|
gi[T] = !0;
|
|
592
592
|
var A = "";
|
|
593
|
-
f && f._owner && f._owner !== ze.current && (A = " It was passed a child from " + Z(f._owner.type) + "."), kt(f),
|
|
593
|
+
f && f._owner && f._owner !== ze.current && (A = " It was passed a child from " + Z(f._owner.type) + "."), kt(f), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, A), kt(null);
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
function vi(f, m) {
|
|
@@ -632,9 +632,9 @@ Check the top-level render call using <` + T + ">.");
|
|
|
632
632
|
} else if (m.PropTypes !== void 0 && !He) {
|
|
633
633
|
He = !0;
|
|
634
634
|
var D = Z(m);
|
|
635
|
-
|
|
635
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
|
|
636
636
|
}
|
|
637
|
-
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved &&
|
|
637
|
+
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
function No(f) {
|
|
@@ -642,11 +642,11 @@ Check the top-level render call using <` + T + ">.");
|
|
|
642
642
|
for (var m = Object.keys(f.props), T = 0; T < m.length; T++) {
|
|
643
643
|
var A = m[T];
|
|
644
644
|
if (A !== "children" && A !== "key") {
|
|
645
|
-
kt(f),
|
|
645
|
+
kt(f), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), kt(null);
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
f.ref !== null && (kt(f),
|
|
649
|
+
f.ref !== null && (kt(f), y("Invalid attribute `ref` supplied to `React.Fragment`."), kt(null));
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
var Pi = {};
|
|
@@ -659,7 +659,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
659
659
|
var z = _o(D);
|
|
660
660
|
z ? R += z : R += mi();
|
|
661
661
|
var _;
|
|
662
|
-
f === null ? _ = "null" : Ke(f) ? _ = "array" : f !== void 0 && f.$$typeof === e ? (_ = "<" + (Z(f.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof f,
|
|
662
|
+
f === null ? _ = "null" : Ke(f) ? _ = "array" : f !== void 0 && f.$$typeof === e ? (_ = "<" + (Z(f.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof f, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, R);
|
|
663
663
|
}
|
|
664
664
|
var I = Fo(f, m, T, D, k);
|
|
665
665
|
if (I == null)
|
|
@@ -673,22 +673,22 @@ Check the top-level render call using <` + T + ">.");
|
|
|
673
673
|
vi(Q[Lt], f);
|
|
674
674
|
Object.freeze && Object.freeze(Q);
|
|
675
675
|
} else
|
|
676
|
-
|
|
676
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
677
677
|
else
|
|
678
678
|
vi(Q, f);
|
|
679
679
|
}
|
|
680
680
|
if (Gt.call(m, "key")) {
|
|
681
|
-
var
|
|
681
|
+
var Tt = Z(f), Y = Object.keys(m).filter(function(zo) {
|
|
682
682
|
return zo !== "key";
|
|
683
683
|
}), Xe = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
684
|
-
if (!Pi[
|
|
684
|
+
if (!Pi[Tt + Xe]) {
|
|
685
685
|
var Go = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
|
|
686
|
-
|
|
686
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
687
687
|
let props = %s;
|
|
688
688
|
<%s {...props} />
|
|
689
689
|
React keys must be passed directly to JSX without using spread:
|
|
690
690
|
let props = %s;
|
|
691
|
-
<%s key={someKey} {...props} />`, Xe,
|
|
691
|
+
<%s key={someKey} {...props} />`, Xe, Tt, Go, Tt), Pi[Tt + Xe] = !0;
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
return f === i ? No(I) : Io(I), I;
|
|
@@ -706,11 +706,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
706
706
|
}
|
|
707
707
|
process.env.NODE_ENV === "production" ? cn.exports = ia() : cn.exports = sa();
|
|
708
708
|
var O = cn.exports;
|
|
709
|
-
const Vn =
|
|
709
|
+
const Vn = Et({
|
|
710
710
|
transformPagePoint: (t) => t,
|
|
711
711
|
isStatic: !1,
|
|
712
712
|
reducedMotion: "never"
|
|
713
|
-
}), ke =
|
|
713
|
+
}), ke = Et({}), Le = Et(null), En = typeof window < "u", Hs = En ? Ho : gt, Ys = Et({ strict: !1 }), je = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), ra = "framerAppearId", Xs = "data-" + je(ra), oa = {
|
|
714
714
|
skipAnimations: !1,
|
|
715
715
|
useManualTiming: !1
|
|
716
716
|
};
|
|
@@ -772,25 +772,25 @@ function qs(t, e) {
|
|
|
772
772
|
delta: 0,
|
|
773
773
|
timestamp: 0,
|
|
774
774
|
isProcessing: !1
|
|
775
|
-
}, o = () => n = !0, r = Pe.reduce((x,
|
|
775
|
+
}, o = () => n = !0, r = Pe.reduce((x, y) => (x[y] = aa(o), x), {}), { read: a, resolveKeyframes: l, update: u, preRender: c, render: h, postRender: d } = r, p = () => {
|
|
776
776
|
const x = performance.now();
|
|
777
777
|
n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(x - s.timestamp, la), 1), s.timestamp = x, s.isProcessing = !0, a.process(s), l.process(s), u.process(s), c.process(s), h.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
|
|
778
|
-
},
|
|
778
|
+
}, g = () => {
|
|
779
779
|
n = !0, i = !0, s.isProcessing || t(p);
|
|
780
780
|
};
|
|
781
|
-
return { schedule: Pe.reduce((x,
|
|
782
|
-
const
|
|
783
|
-
return x[
|
|
781
|
+
return { schedule: Pe.reduce((x, y) => {
|
|
782
|
+
const v = r[y];
|
|
783
|
+
return x[y] = (w, C = !1, L = !1) => (n || g(), v.schedule(w, C, L)), x;
|
|
784
784
|
}, {}), cancel: (x) => {
|
|
785
|
-
for (let
|
|
786
|
-
r[Pe[
|
|
785
|
+
for (let y = 0; y < Pe.length; y++)
|
|
786
|
+
r[Pe[y]].cancel(x);
|
|
787
787
|
}, state: s, steps: r };
|
|
788
788
|
}
|
|
789
789
|
const { schedule: Dn, cancel: $h } = qs(queueMicrotask, !1);
|
|
790
790
|
function Ot(t) {
|
|
791
791
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
792
792
|
}
|
|
793
|
-
const Zs =
|
|
793
|
+
const Zs = Et({});
|
|
794
794
|
let wi = !1;
|
|
795
795
|
function ua(t, e, n, i, s) {
|
|
796
796
|
const { visualElement: o } = U(ke), r = U(Ys), a = U(Le), l = U(Vn).reducedMotion, u = it();
|
|
@@ -809,7 +809,7 @@ function ua(t, e, n, i, s) {
|
|
|
809
809
|
const d = it(!!(n[Xs] && !window.HandoffComplete));
|
|
810
810
|
return Hs(() => {
|
|
811
811
|
c && (c.updateFeatures(), Dn.render(c.render), d.current && c.animationState && c.animationState.animateChanges());
|
|
812
|
-
}),
|
|
812
|
+
}), gt(() => {
|
|
813
813
|
c && (!d.current && c.animationState && c.animationState.animateChanges(), d.current && (d.current = !1, wi || (wi = !0, queueMicrotask(ca))));
|
|
814
814
|
}), c;
|
|
815
815
|
}
|
|
@@ -886,7 +886,7 @@ function da(t, e) {
|
|
|
886
886
|
}
|
|
887
887
|
function pa(t) {
|
|
888
888
|
const { initial: e, animate: n } = da(t, U(ke));
|
|
889
|
-
return
|
|
889
|
+
return Vt(() => ({ initial: e, animate: n }), [Si(e), Si(n)]);
|
|
890
890
|
}
|
|
891
891
|
function Si(t) {
|
|
892
892
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
@@ -922,7 +922,7 @@ function ma(t) {
|
|
|
922
922
|
...t[e]
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
|
-
const Ln =
|
|
925
|
+
const Ln = Et({}), ga = Symbol.for("motionComponentSymbol"), W = (t) => t;
|
|
926
926
|
let Wt = W, ct = W;
|
|
927
927
|
process.env.NODE_ENV !== "production" && (Wt = (t, e) => {
|
|
928
928
|
!t && typeof console < "u" && console.warn(e);
|
|
@@ -941,8 +941,8 @@ function ya({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
|
|
|
941
941
|
}, { isStatic: h } = c, d = pa(a), p = i(a, h);
|
|
942
942
|
if (!h && En) {
|
|
943
943
|
Pa(c, t);
|
|
944
|
-
const
|
|
945
|
-
u =
|
|
944
|
+
const g = xa(c);
|
|
945
|
+
u = g.MeasureLayout, d.visualElement = ua(s, p, c, e, g.ProjectionNode);
|
|
946
946
|
}
|
|
947
947
|
return O.jsxs(ke.Provider, { value: d, children: [u && d.visualElement ? O.jsx(u, { visualElement: d.visualElement, ...c }) : null, n(s, a, fa(p, d.visualElement, l), p, h, d.visualElement)] });
|
|
948
948
|
}
|
|
@@ -1055,9 +1055,9 @@ const he = [
|
|
|
1055
1055
|
"skew",
|
|
1056
1056
|
"skewX",
|
|
1057
1057
|
"skewY"
|
|
1058
|
-
],
|
|
1058
|
+
], Pt = new Set(he);
|
|
1059
1059
|
function tr(t, { layout: e, layoutId: n }) {
|
|
1060
|
-
return
|
|
1060
|
+
return Pt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!Ce[t] || t === "opacity");
|
|
1061
1061
|
}
|
|
1062
1062
|
const K = (t) => !!(t && t.getVelocity), Sa = {
|
|
1063
1063
|
x: "translateX",
|
|
@@ -1076,13 +1076,13 @@ function Ca(t, e, n) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
return i = i.trim(), n ? i = n(t, e ? "" : i) : e && (i = "none"), i;
|
|
1078
1078
|
}
|
|
1079
|
-
const er = (t) => (e) => typeof e == "string" && e.startsWith(t), nr = er("--"), Ra = er("var(--"), On = (t) => Ra(t) ? Va.test(t.split("/*")[0].trim()) : !1, Va = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Ea = (t, e) => e && typeof t == "number" ? e.transform(t) : t,
|
|
1079
|
+
const er = (t) => (e) => typeof e == "string" && e.startsWith(t), nr = er("--"), Ra = er("var(--"), On = (t) => Ra(t) ? Va.test(t.split("/*")[0].trim()) : !1, Va = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Ea = (t, e) => e && typeof t == "number" ? e.transform(t) : t, yt = (t, e, n) => n > e ? e : n < t ? t : n, $t = {
|
|
1080
1080
|
test: (t) => typeof t == "number",
|
|
1081
1081
|
parse: parseFloat,
|
|
1082
1082
|
transform: (t) => t
|
|
1083
1083
|
}, Qt = {
|
|
1084
1084
|
...$t,
|
|
1085
|
-
transform: (t) =>
|
|
1085
|
+
transform: (t) => yt(0, 1, t)
|
|
1086
1086
|
}, xe = {
|
|
1087
1087
|
...$t,
|
|
1088
1088
|
default: 1
|
|
@@ -1097,7 +1097,7 @@ const de = (t) => ({
|
|
|
1097
1097
|
test: (e) => fe(e) && e.endsWith(t) && e.split(" ").length === 1,
|
|
1098
1098
|
parse: parseFloat,
|
|
1099
1099
|
transform: (e) => `${e}${t}`
|
|
1100
|
-
}), dt = de("deg"), st = de("%"),
|
|
1100
|
+
}), dt = de("deg"), st = de("%"), S = de("px"), La = de("vh"), ja = de("vw"), Ci = {
|
|
1101
1101
|
...st,
|
|
1102
1102
|
parse: (t) => st.parse(t) / 100,
|
|
1103
1103
|
transform: (t) => st.transform(t * 100)
|
|
@@ -1106,38 +1106,38 @@ const de = (t) => ({
|
|
|
1106
1106
|
transform: Math.round
|
|
1107
1107
|
}, ir = {
|
|
1108
1108
|
// Border props
|
|
1109
|
-
borderWidth:
|
|
1110
|
-
borderTopWidth:
|
|
1111
|
-
borderRightWidth:
|
|
1112
|
-
borderBottomWidth:
|
|
1113
|
-
borderLeftWidth:
|
|
1114
|
-
borderRadius:
|
|
1115
|
-
radius:
|
|
1116
|
-
borderTopLeftRadius:
|
|
1117
|
-
borderTopRightRadius:
|
|
1118
|
-
borderBottomRightRadius:
|
|
1119
|
-
borderBottomLeftRadius:
|
|
1109
|
+
borderWidth: S,
|
|
1110
|
+
borderTopWidth: S,
|
|
1111
|
+
borderRightWidth: S,
|
|
1112
|
+
borderBottomWidth: S,
|
|
1113
|
+
borderLeftWidth: S,
|
|
1114
|
+
borderRadius: S,
|
|
1115
|
+
radius: S,
|
|
1116
|
+
borderTopLeftRadius: S,
|
|
1117
|
+
borderTopRightRadius: S,
|
|
1118
|
+
borderBottomRightRadius: S,
|
|
1119
|
+
borderBottomLeftRadius: S,
|
|
1120
1120
|
// Positioning props
|
|
1121
|
-
width:
|
|
1122
|
-
maxWidth:
|
|
1123
|
-
height:
|
|
1124
|
-
maxHeight:
|
|
1125
|
-
size:
|
|
1126
|
-
top:
|
|
1127
|
-
right:
|
|
1128
|
-
bottom:
|
|
1129
|
-
left:
|
|
1121
|
+
width: S,
|
|
1122
|
+
maxWidth: S,
|
|
1123
|
+
height: S,
|
|
1124
|
+
maxHeight: S,
|
|
1125
|
+
size: S,
|
|
1126
|
+
top: S,
|
|
1127
|
+
right: S,
|
|
1128
|
+
bottom: S,
|
|
1129
|
+
left: S,
|
|
1130
1130
|
// Spacing props
|
|
1131
|
-
padding:
|
|
1132
|
-
paddingTop:
|
|
1133
|
-
paddingRight:
|
|
1134
|
-
paddingBottom:
|
|
1135
|
-
paddingLeft:
|
|
1136
|
-
margin:
|
|
1137
|
-
marginTop:
|
|
1138
|
-
marginRight:
|
|
1139
|
-
marginBottom:
|
|
1140
|
-
marginLeft:
|
|
1131
|
+
padding: S,
|
|
1132
|
+
paddingTop: S,
|
|
1133
|
+
paddingRight: S,
|
|
1134
|
+
paddingBottom: S,
|
|
1135
|
+
paddingLeft: S,
|
|
1136
|
+
margin: S,
|
|
1137
|
+
marginTop: S,
|
|
1138
|
+
marginRight: S,
|
|
1139
|
+
marginBottom: S,
|
|
1140
|
+
marginLeft: S,
|
|
1141
1141
|
// Transform props
|
|
1142
1142
|
rotate: dt,
|
|
1143
1143
|
rotateX: dt,
|
|
@@ -1150,23 +1150,23 @@ const de = (t) => ({
|
|
|
1150
1150
|
skew: dt,
|
|
1151
1151
|
skewX: dt,
|
|
1152
1152
|
skewY: dt,
|
|
1153
|
-
distance:
|
|
1154
|
-
translateX:
|
|
1155
|
-
translateY:
|
|
1156
|
-
translateZ:
|
|
1157
|
-
x:
|
|
1158
|
-
y:
|
|
1159
|
-
z:
|
|
1160
|
-
perspective:
|
|
1161
|
-
transformPerspective:
|
|
1153
|
+
distance: S,
|
|
1154
|
+
translateX: S,
|
|
1155
|
+
translateY: S,
|
|
1156
|
+
translateZ: S,
|
|
1157
|
+
x: S,
|
|
1158
|
+
y: S,
|
|
1159
|
+
z: S,
|
|
1160
|
+
perspective: S,
|
|
1161
|
+
transformPerspective: S,
|
|
1162
1162
|
opacity: Qt,
|
|
1163
1163
|
originX: Ci,
|
|
1164
1164
|
originY: Ci,
|
|
1165
|
-
originZ:
|
|
1165
|
+
originZ: S,
|
|
1166
1166
|
// Misc
|
|
1167
1167
|
zIndex: Ri,
|
|
1168
|
-
backgroundPositionX:
|
|
1169
|
-
backgroundPositionY:
|
|
1168
|
+
backgroundPositionX: S,
|
|
1169
|
+
backgroundPositionY: S,
|
|
1170
1170
|
// SVG
|
|
1171
1171
|
fillOpacity: Qt,
|
|
1172
1172
|
strokeOpacity: Qt,
|
|
@@ -1182,7 +1182,7 @@ function _n(t, e, n) {
|
|
|
1182
1182
|
continue;
|
|
1183
1183
|
}
|
|
1184
1184
|
const d = ir[c], p = Ea(h, d);
|
|
1185
|
-
if (
|
|
1185
|
+
if (Pt.has(c)) {
|
|
1186
1186
|
if (a = !0, o[c] = p, !u)
|
|
1187
1187
|
continue;
|
|
1188
1188
|
h !== (d.default || 0) && (u = !1);
|
|
@@ -1205,7 +1205,7 @@ function sr(t, e, n) {
|
|
|
1205
1205
|
!K(e[i]) && !tr(i, n) && (t[i] = e[i]);
|
|
1206
1206
|
}
|
|
1207
1207
|
function Oa({ transformTemplate: t }, e) {
|
|
1208
|
-
return
|
|
1208
|
+
return Vt(() => {
|
|
1209
1209
|
const n = Bn();
|
|
1210
1210
|
return _n(n, e, t), Object.assign({}, n.vars, n.style);
|
|
1211
1211
|
}, [e]);
|
|
@@ -1269,7 +1269,7 @@ function Na(t, e, n) {
|
|
|
1269
1269
|
return i;
|
|
1270
1270
|
}
|
|
1271
1271
|
function Vi(t, e, n) {
|
|
1272
|
-
return typeof t == "string" ? t :
|
|
1272
|
+
return typeof t == "string" ? t : S.transform(e + n * t);
|
|
1273
1273
|
}
|
|
1274
1274
|
function Ua(t, e, n) {
|
|
1275
1275
|
const i = Vi(e, t.x, t.width), s = Vi(n, t.y, t.height);
|
|
@@ -1285,8 +1285,8 @@ const Wa = {
|
|
|
1285
1285
|
function Ka(t, e, n = 1, i = 0, s = !0) {
|
|
1286
1286
|
t.pathLength = 1;
|
|
1287
1287
|
const o = s ? Wa : $a;
|
|
1288
|
-
t[o.offset] =
|
|
1289
|
-
const r =
|
|
1288
|
+
t[o.offset] = S.transform(-i);
|
|
1289
|
+
const r = S.transform(e), a = S.transform(n);
|
|
1290
1290
|
t[o.array] = `${r} ${a}`;
|
|
1291
1291
|
}
|
|
1292
1292
|
function In(t, {
|
|
@@ -1306,15 +1306,15 @@ function In(t, {
|
|
|
1306
1306
|
return;
|
|
1307
1307
|
}
|
|
1308
1308
|
t.attrs = t.style, t.style = {};
|
|
1309
|
-
const { attrs: d, style: p, dimensions:
|
|
1310
|
-
d.transform && (
|
|
1309
|
+
const { attrs: d, style: p, dimensions: g } = t;
|
|
1310
|
+
d.transform && (g && (p.transform = d.transform), delete d.transform), g && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = Ua(g, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && Ka(d, r, a, l, !1);
|
|
1311
1311
|
}
|
|
1312
1312
|
const or = () => ({
|
|
1313
1313
|
...Bn(),
|
|
1314
1314
|
attrs: {}
|
|
1315
1315
|
}), Nn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
1316
1316
|
function Ga(t, e, n, i) {
|
|
1317
|
-
const s =
|
|
1317
|
+
const s = Vt(() => {
|
|
1318
1318
|
const o = or();
|
|
1319
1319
|
return In(o, e, Nn(i), t.transformTemplate), {
|
|
1320
1320
|
...o.attrs,
|
|
@@ -1329,7 +1329,7 @@ function Ga(t, e, n, i) {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
function za(t = !1) {
|
|
1331
1331
|
return (n, i, s, { latestValues: o }, r) => {
|
|
1332
|
-
const l = (jn(n) ? Ga : _a)(i, o, r, n), u = Na(i, typeof n == "string", t), c = n !== zs ? { ...u, ...l, ref: s } : {}, { children: h } = i, d =
|
|
1332
|
+
const l = (jn(n) ? Ga : _a)(i, o, r, n), u = Na(i, typeof n == "string", t), c = n !== zs ? { ...u, ...l, ref: s } : {}, { children: h } = i, d = Vt(() => K(h) ? h.get() : h, [h]);
|
|
1333
1333
|
return Yo(n, {
|
|
1334
1334
|
...c,
|
|
1335
1335
|
children: d
|
|
@@ -1423,7 +1423,7 @@ const hr = /* @__PURE__ */ new Set([
|
|
|
1423
1423
|
// "background-color"
|
|
1424
1424
|
]);
|
|
1425
1425
|
function fr(t) {
|
|
1426
|
-
if (
|
|
1426
|
+
if (Pt.has(t))
|
|
1427
1427
|
return "transform";
|
|
1428
1428
|
if (hr.has(t))
|
|
1429
1429
|
return je(t);
|
|
@@ -1468,20 +1468,20 @@ function Za(t, e, n, i, s) {
|
|
|
1468
1468
|
let { initial: c, animate: h } = t;
|
|
1469
1469
|
const d = Oe(t), p = Qs(t);
|
|
1470
1470
|
e && p && !d && t.inherit !== !1 && (c === void 0 && (c = e.initial), h === void 0 && (h = e.animate));
|
|
1471
|
-
let
|
|
1472
|
-
|
|
1473
|
-
const P =
|
|
1471
|
+
let g = n ? n.initial === !1 : !1;
|
|
1472
|
+
g = g || c === !1;
|
|
1473
|
+
const P = g ? h : c;
|
|
1474
1474
|
return P && typeof P != "boolean" && !se(P) && Di(t, P, (b, x) => {
|
|
1475
|
-
for (const
|
|
1476
|
-
let
|
|
1477
|
-
if (Array.isArray(
|
|
1478
|
-
const
|
|
1479
|
-
|
|
1475
|
+
for (const y in b) {
|
|
1476
|
+
let v = b[y];
|
|
1477
|
+
if (Array.isArray(v)) {
|
|
1478
|
+
const w = g ? v.length - 1 : 0;
|
|
1479
|
+
v = v[w];
|
|
1480
1480
|
}
|
|
1481
|
-
|
|
1481
|
+
v !== null && (r[y] = v);
|
|
1482
1482
|
}
|
|
1483
|
-
for (const
|
|
1484
|
-
r[
|
|
1483
|
+
for (const y in x)
|
|
1484
|
+
r[y] = x[y];
|
|
1485
1485
|
}), l && (h && c !== !1 && !se(h) && Di(t, h, (b) => {
|
|
1486
1486
|
for (const x in b)
|
|
1487
1487
|
qa(a, x);
|
|
@@ -1569,7 +1569,7 @@ function yr() {
|
|
|
1569
1569
|
const t = gr(!0);
|
|
1570
1570
|
return t ? (t(), !1) : !0;
|
|
1571
1571
|
}
|
|
1572
|
-
class
|
|
1572
|
+
class xt {
|
|
1573
1573
|
constructor(e) {
|
|
1574
1574
|
this.isMounted = !1, this.node = e;
|
|
1575
1575
|
}
|
|
@@ -1589,14 +1589,14 @@ function Li(t, e) {
|
|
|
1589
1589
|
passive: !t.getProps()[i]
|
|
1590
1590
|
});
|
|
1591
1591
|
}
|
|
1592
|
-
class il extends
|
|
1592
|
+
class il extends xt {
|
|
1593
1593
|
mount() {
|
|
1594
1594
|
this.unmount = at(Li(this.node, !0), Li(this.node, !1));
|
|
1595
1595
|
}
|
|
1596
1596
|
unmount() {
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
|
-
class sl extends
|
|
1599
|
+
class sl extends xt {
|
|
1600
1600
|
constructor() {
|
|
1601
1601
|
super(...arguments), this.isActive = !1;
|
|
1602
1602
|
}
|
|
@@ -1625,7 +1625,7 @@ function Ze(t, e) {
|
|
|
1625
1625
|
const n = new PointerEvent("pointer" + t);
|
|
1626
1626
|
e(n, Be(n));
|
|
1627
1627
|
}
|
|
1628
|
-
class rl extends
|
|
1628
|
+
class rl extends xt {
|
|
1629
1629
|
constructor() {
|
|
1630
1630
|
super(...arguments), this.removeStartListeners = W, this.removeEndListeners = W, this.removeAccessibleListeners = W, this.startPointerPress = (e, n) => {
|
|
1631
1631
|
if (this.isPressing)
|
|
@@ -1707,7 +1707,7 @@ const cl = {
|
|
|
1707
1707
|
some: 0,
|
|
1708
1708
|
all: 1
|
|
1709
1709
|
};
|
|
1710
|
-
class hl extends
|
|
1710
|
+
class hl extends xt {
|
|
1711
1711
|
constructor() {
|
|
1712
1712
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
1713
1713
|
}
|
|
@@ -1788,7 +1788,7 @@ const lt = (t) => t * 1e3, ut = (t) => t / 1e3, pl = {
|
|
|
1788
1788
|
type: "keyframes",
|
|
1789
1789
|
ease: [0.25, 0.1, 0.35, 1],
|
|
1790
1790
|
duration: 0.3
|
|
1791
|
-
}, vl = (t, { keyframes: e }) => e.length > 2 ? gl :
|
|
1791
|
+
}, vl = (t, { keyframes: e }) => e.length > 2 ? gl : Pt.has(t) ? t.startsWith("scale") ? ml(e[1]) : pl : yl;
|
|
1792
1792
|
function Pl({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: u, ...c }) {
|
|
1793
1793
|
return !!Object.keys(c).length;
|
|
1794
1794
|
}
|
|
@@ -1848,7 +1848,7 @@ const Cl = /* @__PURE__ */ new Set([
|
|
|
1848
1848
|
"y",
|
|
1849
1849
|
"translateX",
|
|
1850
1850
|
"translateY"
|
|
1851
|
-
]), ji = (t) => t === $t || t ===
|
|
1851
|
+
]), ji = (t) => t === $t || t === S, Oi = (t, e) => parseFloat(t.split(", ")[e]), Fi = (t, e) => (n, { transform: i }) => {
|
|
1852
1852
|
if (i === "none" || !i)
|
|
1853
1853
|
return 0;
|
|
1854
1854
|
const s = i.match(/^matrix3d\((.+)\)$/u);
|
|
@@ -1883,11 +1883,11 @@ Ut.translateY = Ut.y;
|
|
|
1883
1883
|
const wr = (t) => (e) => e.test(t), Dl = {
|
|
1884
1884
|
test: (t) => t === "auto",
|
|
1885
1885
|
parse: (t) => t
|
|
1886
|
-
}, Sr = [$t,
|
|
1886
|
+
}, Sr = [$t, S, st, dt, ja, La, Dl], _i = (t) => Sr.find(wr(t)), Rt = /* @__PURE__ */ new Set();
|
|
1887
1887
|
let dn = !1, pn = !1;
|
|
1888
1888
|
function Ar() {
|
|
1889
1889
|
if (pn) {
|
|
1890
|
-
const t = Array.from(
|
|
1890
|
+
const t = Array.from(Rt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
|
|
1891
1891
|
e.forEach((i) => {
|
|
1892
1892
|
const s = El(i);
|
|
1893
1893
|
s.length && (n.set(i, s), i.render());
|
|
@@ -1902,10 +1902,10 @@ function Ar() {
|
|
|
1902
1902
|
i.suspendedScrollY !== void 0 && window.scrollTo(0, i.suspendedScrollY);
|
|
1903
1903
|
});
|
|
1904
1904
|
}
|
|
1905
|
-
pn = !1, dn = !1,
|
|
1905
|
+
pn = !1, dn = !1, Rt.forEach((t) => t.complete()), Rt.clear();
|
|
1906
1906
|
}
|
|
1907
1907
|
function Cr() {
|
|
1908
|
-
|
|
1908
|
+
Rt.forEach((t) => {
|
|
1909
1909
|
t.readKeyframes(), t.needsMeasurement && (pn = !0);
|
|
1910
1910
|
});
|
|
1911
1911
|
}
|
|
@@ -1917,7 +1917,7 @@ class Gn {
|
|
|
1917
1917
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = i, this.motionValue = s, this.element = o, this.isAsync = r;
|
|
1918
1918
|
}
|
|
1919
1919
|
scheduleResolve() {
|
|
1920
|
-
this.isScheduled = !0, this.isAsync ? (
|
|
1920
|
+
this.isScheduled = !0, this.isAsync ? (Rt.add(this), dn || (dn = !0, M.read(Cr), M.resolveKeyframes(Ar))) : (this.readKeyframes(), this.complete());
|
|
1921
1921
|
}
|
|
1922
1922
|
readKeyframes() {
|
|
1923
1923
|
const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
|
|
@@ -1944,10 +1944,10 @@ class Gn {
|
|
|
1944
1944
|
measureEndState() {
|
|
1945
1945
|
}
|
|
1946
1946
|
complete() {
|
|
1947
|
-
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe),
|
|
1947
|
+
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), Rt.delete(this);
|
|
1948
1948
|
}
|
|
1949
1949
|
cancel() {
|
|
1950
|
-
this.isComplete || (this.isScheduled = !1,
|
|
1950
|
+
this.isComplete || (this.isScheduled = !1, Rt.delete(this));
|
|
1951
1951
|
}
|
|
1952
1952
|
resume() {
|
|
1953
1953
|
this.isComplete || this.scheduleResolve();
|
|
@@ -1963,10 +1963,10 @@ const zn = (t, e) => (n) => !!(fe(n) && Ma.test(n) && n.startsWith(t) || e && !k
|
|
|
1963
1963
|
[n]: parseFloat(r),
|
|
1964
1964
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
1965
1965
|
};
|
|
1966
|
-
}, kl = (t) =>
|
|
1966
|
+
}, kl = (t) => yt(0, 255, t), Qe = {
|
|
1967
1967
|
...$t,
|
|
1968
1968
|
transform: (t) => Math.round(kl(t))
|
|
1969
|
-
},
|
|
1969
|
+
}, Ct = {
|
|
1970
1970
|
test: zn("rgb", "red"),
|
|
1971
1971
|
parse: Rr("red", "green", "blue"),
|
|
1972
1972
|
transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + Qe.transform(t) + ", " + Qe.transform(e) + ", " + Qe.transform(n) + ", " + te(Qt.transform(i)) + ")"
|
|
@@ -1983,15 +1983,15 @@ function Ll(t) {
|
|
|
1983
1983
|
const mn = {
|
|
1984
1984
|
test: zn("#"),
|
|
1985
1985
|
parse: Ll,
|
|
1986
|
-
transform:
|
|
1986
|
+
transform: Ct.transform
|
|
1987
1987
|
}, Ft = {
|
|
1988
1988
|
test: zn("hsl", "hue"),
|
|
1989
1989
|
parse: Rr("hue", "saturation", "lightness"),
|
|
1990
1990
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + st.transform(te(e)) + ", " + st.transform(te(n)) + ", " + te(Qt.transform(i)) + ")"
|
|
1991
1991
|
}, $ = {
|
|
1992
|
-
test: (t) =>
|
|
1993
|
-
parse: (t) =>
|
|
1994
|
-
transform: (t) => fe(t) ? t : t.hasOwnProperty("red") ?
|
|
1992
|
+
test: (t) => Ct.test(t) || mn.test(t) || Ft.test(t),
|
|
1993
|
+
parse: (t) => Ct.test(t) ? Ct.parse(t) : Ft.test(t) ? Ft.parse(t) : mn.parse(t),
|
|
1994
|
+
transform: (t) => fe(t) ? t : t.hasOwnProperty("red") ? Ct.transform(t) : Ft.transform(t)
|
|
1995
1995
|
};
|
|
1996
1996
|
function jl(t) {
|
|
1997
1997
|
var e, n;
|
|
@@ -2028,7 +2028,7 @@ function Il(t) {
|
|
|
2028
2028
|
const e = Dr(t);
|
|
2029
2029
|
return Mr(t)(e.map(Bl));
|
|
2030
2030
|
}
|
|
2031
|
-
const
|
|
2031
|
+
const vt = {
|
|
2032
2032
|
test: jl,
|
|
2033
2033
|
parse: Dr,
|
|
2034
2034
|
createTransformer: Mr,
|
|
@@ -2046,7 +2046,7 @@ function Ul(t) {
|
|
|
2046
2046
|
return i !== n && (o *= 100), e + "(" + o + s + ")";
|
|
2047
2047
|
}
|
|
2048
2048
|
const Wl = /\b([a-z-]*)\(.*?\)/gu, gn = {
|
|
2049
|
-
...
|
|
2049
|
+
...vt,
|
|
2050
2050
|
getAnimatableNone: (t) => {
|
|
2051
2051
|
const e = t.match(Wl);
|
|
2052
2052
|
return e ? e.map(Ul).join(" ") : t;
|
|
@@ -2070,7 +2070,7 @@ const Wl = /\b([a-z-]*)\(.*?\)/gu, gn = {
|
|
|
2070
2070
|
}, Hn = (t) => $l[t];
|
|
2071
2071
|
function kr(t, e) {
|
|
2072
2072
|
let n = Hn(t);
|
|
2073
|
-
return n !== gn && (n =
|
|
2073
|
+
return n !== gn && (n = vt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
2074
2074
|
}
|
|
2075
2075
|
const Kl = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
2076
2076
|
function Gl(t, e, n) {
|
|
@@ -2143,7 +2143,7 @@ function jr(t) {
|
|
|
2143
2143
|
return () => (e === void 0 && (e = t()), e);
|
|
2144
2144
|
}
|
|
2145
2145
|
const Ii = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
2146
|
-
(
|
|
2146
|
+
(vt.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
2147
2147
|
!t.startsWith("url("));
|
|
2148
2148
|
function zl(t) {
|
|
2149
2149
|
const e = t[0];
|
|
@@ -2233,12 +2233,12 @@ function Jl({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1
|
|
|
2233
2233
|
let s, o;
|
|
2234
2234
|
Wt(t <= lt(Ni), "Spring duration must be 10 seconds or less");
|
|
2235
2235
|
let r = 1 - e;
|
|
2236
|
-
r =
|
|
2237
|
-
const c = u * r, h = c * t, d = c - n, p = yn(u, r),
|
|
2238
|
-
return tn - d / p *
|
|
2236
|
+
r = yt(ql, Zl, r), t = yt(Xl, Ni, ut(t)), r < 1 ? (s = (u) => {
|
|
2237
|
+
const c = u * r, h = c * t, d = c - n, p = yn(u, r), g = Math.exp(-h);
|
|
2238
|
+
return tn - d / p * g;
|
|
2239
2239
|
}, o = (u) => {
|
|
2240
|
-
const h = u * r * t, d = h * n + n, p = Math.pow(r, 2) * Math.pow(u, 2) * t,
|
|
2241
|
-
return (-s(u) + tn > 0 ? -1 : 1) * ((d - p) *
|
|
2240
|
+
const h = u * r * t, d = h * n + n, p = Math.pow(r, 2) * Math.pow(u, 2) * t, g = Math.exp(-h), P = yn(Math.pow(u, 2), r);
|
|
2241
|
+
return (-s(u) + tn > 0 ? -1 : 1) * ((d - p) * g) / P;
|
|
2242
2242
|
}) : (s = (u) => {
|
|
2243
2243
|
const c = Math.exp(-u * t), h = (u - n) * t + 1;
|
|
2244
2244
|
return -tn + c * h;
|
|
@@ -2299,37 +2299,37 @@ function Br({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
|
|
|
2299
2299
|
const s = t[0], o = t[t.length - 1], r = { done: !1, value: s }, { stiffness: a, damping: l, mass: u, duration: c, velocity: h, isResolvedFromDuration: d } = iu({
|
|
2300
2300
|
...i,
|
|
2301
2301
|
velocity: -ut(i.velocity || 0)
|
|
2302
|
-
}), p = h || 0,
|
|
2302
|
+
}), p = h || 0, g = l / (2 * Math.sqrt(a * u)), P = o - s, b = ut(Math.sqrt(a / u)), x = Math.abs(P) < 5;
|
|
2303
2303
|
n || (n = x ? 0.01 : 2), e || (e = x ? 5e-3 : 0.5);
|
|
2304
|
-
let
|
|
2305
|
-
if (
|
|
2306
|
-
const
|
|
2307
|
-
|
|
2308
|
-
const C = Math.exp(-
|
|
2309
|
-
return o - C * ((p +
|
|
2304
|
+
let y;
|
|
2305
|
+
if (g < 1) {
|
|
2306
|
+
const v = yn(b, g);
|
|
2307
|
+
y = (w) => {
|
|
2308
|
+
const C = Math.exp(-g * b * w);
|
|
2309
|
+
return o - C * ((p + g * b * P) / v * Math.sin(v * w) + P * Math.cos(v * w));
|
|
2310
2310
|
};
|
|
2311
|
-
} else if (
|
|
2312
|
-
|
|
2311
|
+
} else if (g === 1)
|
|
2312
|
+
y = (v) => o - Math.exp(-b * v) * (P + (p + b * P) * v);
|
|
2313
2313
|
else {
|
|
2314
|
-
const
|
|
2315
|
-
|
|
2316
|
-
const C = Math.exp(-
|
|
2317
|
-
return o - C * ((p +
|
|
2314
|
+
const v = b * Math.sqrt(g * g - 1);
|
|
2315
|
+
y = (w) => {
|
|
2316
|
+
const C = Math.exp(-g * b * w), L = Math.min(v * w, 300);
|
|
2317
|
+
return o - C * ((p + g * b * P) * Math.sinh(L) + v * P * Math.cosh(L)) / v;
|
|
2318
2318
|
};
|
|
2319
2319
|
}
|
|
2320
2320
|
return {
|
|
2321
2321
|
calculatedDuration: d && c || null,
|
|
2322
|
-
next: (
|
|
2323
|
-
const
|
|
2322
|
+
next: (v) => {
|
|
2323
|
+
const w = y(v);
|
|
2324
2324
|
if (d)
|
|
2325
|
-
r.done =
|
|
2325
|
+
r.done = v >= c;
|
|
2326
2326
|
else {
|
|
2327
2327
|
let C = p;
|
|
2328
|
-
|
|
2329
|
-
const L = Math.abs(C) <= n, q = Math.abs(o -
|
|
2328
|
+
v !== 0 && (g < 1 ? C = _r(y, v, w) : C = 0);
|
|
2329
|
+
const L = Math.abs(C) <= n, q = Math.abs(o - w) <= e;
|
|
2330
2330
|
r.done = L && q;
|
|
2331
2331
|
}
|
|
2332
|
-
return r.value = r.done ? o :
|
|
2332
|
+
return r.value = r.done ? o : w, r;
|
|
2333
2333
|
}
|
|
2334
2334
|
};
|
|
2335
2335
|
}
|
|
@@ -2337,19 +2337,19 @@ function Wi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
2337
2337
|
const h = t[0], d = {
|
|
2338
2338
|
done: !1,
|
|
2339
2339
|
value: h
|
|
2340
|
-
}, p = (V) => a !== void 0 && V < a || l !== void 0 && V > l,
|
|
2340
|
+
}, p = (V) => a !== void 0 && V < a || l !== void 0 && V > l, g = (V) => a === void 0 ? l : l === void 0 || Math.abs(a - V) < Math.abs(l - V) ? a : l;
|
|
2341
2341
|
let P = n * e;
|
|
2342
2342
|
const b = h + P, x = r === void 0 ? b : r(b);
|
|
2343
2343
|
x !== b && (P = x - h);
|
|
2344
|
-
const
|
|
2345
|
-
const G =
|
|
2344
|
+
const y = (V) => -P * Math.exp(-V / i), v = (V) => x + y(V), w = (V) => {
|
|
2345
|
+
const G = y(V), H = v(V);
|
|
2346
2346
|
d.done = Math.abs(G) <= u, d.value = d.done ? x : H;
|
|
2347
2347
|
};
|
|
2348
2348
|
let C, L;
|
|
2349
2349
|
const q = (V) => {
|
|
2350
2350
|
p(d.value) && (C = V, L = Br({
|
|
2351
|
-
keyframes: [d.value,
|
|
2352
|
-
velocity: _r(
|
|
2351
|
+
keyframes: [d.value, g(d.value)],
|
|
2352
|
+
velocity: _r(v, V, d.value),
|
|
2353
2353
|
// TODO: This should be passing * 1000
|
|
2354
2354
|
damping: s,
|
|
2355
2355
|
stiffness: o,
|
|
@@ -2361,7 +2361,7 @@ function Wi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
2361
2361
|
calculatedDuration: null,
|
|
2362
2362
|
next: (V) => {
|
|
2363
2363
|
let G = !1;
|
|
2364
|
-
return !L && C === void 0 && (G = !0,
|
|
2364
|
+
return !L && C === void 0 && (G = !0, w(V), q(V)), C !== void 0 && V >= C ? L.next(V - C) : (!G && w(V), d);
|
|
2365
2365
|
}
|
|
2366
2366
|
};
|
|
2367
2367
|
}
|
|
@@ -2428,7 +2428,7 @@ function Ve(t, e) {
|
|
|
2428
2428
|
const nn = (t, e, n) => {
|
|
2429
2429
|
const i = t * t, s = n * (e * e - i) + i;
|
|
2430
2430
|
return s < 0 ? 0 : Math.sqrt(s);
|
|
2431
|
-
}, pu = [mn,
|
|
2431
|
+
}, pu = [mn, Ct, Ft], mu = (t) => pu.find((e) => e.test(t));
|
|
2432
2432
|
function Gi(t) {
|
|
2433
2433
|
const e = mu(t);
|
|
2434
2434
|
if (Wt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
@@ -2441,7 +2441,7 @@ const zi = (t, e) => {
|
|
|
2441
2441
|
if (!n || !i)
|
|
2442
2442
|
return Ve(t, e);
|
|
2443
2443
|
const s = { ...n };
|
|
2444
|
-
return (o) => (s.red = nn(n.red, i.red, o), s.green = nn(n.green, i.green, o), s.blue = nn(n.blue, i.blue, o), s.alpha = j(n.alpha, i.alpha, o),
|
|
2444
|
+
return (o) => (s.red = nn(n.red, i.red, o), s.green = nn(n.green, i.green, o), s.blue = nn(n.blue, i.blue, o), s.alpha = j(n.alpha, i.alpha, o), Ct.transform(s));
|
|
2445
2445
|
}, vn = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
2446
2446
|
function gu(t, e) {
|
|
2447
2447
|
return vn.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
@@ -2480,7 +2480,7 @@ function Pu(t, e) {
|
|
|
2480
2480
|
return i;
|
|
2481
2481
|
}
|
|
2482
2482
|
const xu = (t, e) => {
|
|
2483
|
-
const n =
|
|
2483
|
+
const n = vt.createTransformer(e), i = re(t), s = re(e);
|
|
2484
2484
|
return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? vn.has(t) && !s.values.length || vn.has(e) && !i.values.length ? gu(t, e) : at(Gr(Pu(i, s), s.values), n) : (Wt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ve(t, e));
|
|
2485
2485
|
};
|
|
2486
2486
|
function zr(t, e, n) {
|
|
@@ -2513,7 +2513,7 @@ function bu(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
|
|
|
2513
2513
|
const h = oe(t[c], t[c + 1], u);
|
|
2514
2514
|
return r[c](h);
|
|
2515
2515
|
};
|
|
2516
|
-
return n ? (u) => l(
|
|
2516
|
+
return n ? (u) => l(yt(t[0], t[o - 1], u)) : l;
|
|
2517
2517
|
}
|
|
2518
2518
|
function wu(t, e) {
|
|
2519
2519
|
const n = t[t.length - 1];
|
|
@@ -2621,20 +2621,20 @@ class Zn extends Or {
|
|
|
2621
2621
|
const { finalKeyframe: s, generator: o, mirroredGenerator: r, mapPercentToKeyframes: a, keyframes: l, calculatedDuration: u, totalDuration: c, resolvedDuration: h } = i;
|
|
2622
2622
|
if (this.startTime === null)
|
|
2623
2623
|
return o.next(0);
|
|
2624
|
-
const { delay: d, repeat: p, repeatType:
|
|
2624
|
+
const { delay: d, repeat: p, repeatType: g, repeatDelay: P, onUpdate: b } = this.options;
|
|
2625
2625
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - c / this.speed, this.startTime)), n ? this.currentTime = e : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(e - this.startTime) * this.speed;
|
|
2626
|
-
const x = this.currentTime - d * (this.speed >= 0 ? 1 : -1),
|
|
2626
|
+
const x = this.currentTime - d * (this.speed >= 0 ? 1 : -1), y = this.speed >= 0 ? x < 0 : x > c;
|
|
2627
2627
|
this.currentTime = Math.max(x, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = c);
|
|
2628
|
-
let
|
|
2628
|
+
let v = this.currentTime, w = o;
|
|
2629
2629
|
if (p) {
|
|
2630
2630
|
const V = Math.min(this.currentTime, c) / h;
|
|
2631
2631
|
let G = Math.floor(V), H = V % 1;
|
|
2632
|
-
!H && V >= 1 && (H = 1), H === 1 && G--, G = Math.min(G, p + 1), !!(G % 2) && (
|
|
2632
|
+
!H && V >= 1 && (H = 1), H === 1 && G--, G = Math.min(G, p + 1), !!(G % 2) && (g === "reverse" ? (H = 1 - H, P && (H -= P / h)) : g === "mirror" && (w = r)), v = yt(0, 1, H) * h;
|
|
2633
2633
|
}
|
|
2634
|
-
const C =
|
|
2634
|
+
const C = y ? { done: !1, value: l[0] } : w.next(v);
|
|
2635
2635
|
a && (C.value = a(C.value));
|
|
2636
2636
|
let { done: L } = C;
|
|
2637
|
-
!
|
|
2637
|
+
!y && u !== null && (L = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0);
|
|
2638
2638
|
const q = this.holdTime === null && (this.state === "finished" || this.state === "running" && L);
|
|
2639
2639
|
return q && s !== void 0 && (C.value = Ne(l, this.options, s)), b && b(C.value), q && this.finish(), C;
|
|
2640
2640
|
}
|
|
@@ -2767,7 +2767,7 @@ class Yi extends Or {
|
|
|
2767
2767
|
if (!(!((i = l.owner) === null || i === void 0) && i.current))
|
|
2768
2768
|
return !1;
|
|
2769
2769
|
if (Ou(this.options)) {
|
|
2770
|
-
const { onComplete: h, onUpdate: d, motionValue: p, ...
|
|
2770
|
+
const { onComplete: h, onUpdate: d, motionValue: p, ...g } = this.options, P = Fu(e, g);
|
|
2771
2771
|
e = P.keyframes, e.length === 1 && (e[1] = e[0]), s = P.duration, o = P.times, r = P.ease, a = "keyframes";
|
|
2772
2772
|
}
|
|
2773
2773
|
const c = ku(l.owner.current, u, e, { ...this.options, duration: s, times: o, ease: r });
|
|
@@ -2876,8 +2876,8 @@ class Yi extends Or {
|
|
|
2876
2876
|
ease: r,
|
|
2877
2877
|
times: a,
|
|
2878
2878
|
isGenerator: !0
|
|
2879
|
-
}),
|
|
2880
|
-
u.setWithVelocity(p.sample(
|
|
2879
|
+
}), g = lt(this.time);
|
|
2880
|
+
u.setWithVelocity(p.sample(g - De).value, p.sample(g).value, De);
|
|
2881
2881
|
}
|
|
2882
2882
|
const { onStop: l } = this.options;
|
|
2883
2883
|
l && l(), this.cancel();
|
|
@@ -3298,7 +3298,7 @@ function Jr(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
|
|
|
3298
3298
|
const d = t.getValue(h, (o = t.latestValues[h]) !== null && o !== void 0 ? o : null), p = l[h];
|
|
3299
3299
|
if (p === void 0 || c && Gu(c, h))
|
|
3300
3300
|
continue;
|
|
3301
|
-
const
|
|
3301
|
+
const g = {
|
|
3302
3302
|
delay: n,
|
|
3303
3303
|
elapsed: 0,
|
|
3304
3304
|
...Kn(r || {}, h)
|
|
@@ -3307,11 +3307,11 @@ function Jr(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
|
|
|
3307
3307
|
if (window.HandoffAppearAnimations) {
|
|
3308
3308
|
const x = Zr(t);
|
|
3309
3309
|
if (x) {
|
|
3310
|
-
const
|
|
3311
|
-
|
|
3310
|
+
const y = window.HandoffAppearAnimations(x, h, d, M);
|
|
3311
|
+
y !== null && (g.elapsed = y, P = !0);
|
|
3312
3312
|
}
|
|
3313
3313
|
}
|
|
3314
|
-
d.start(Qn(h, d, p, t.shouldReduceMotion &&
|
|
3314
|
+
d.start(Qn(h, d, p, t.shouldReduceMotion && Pt.has(h) ? { type: !1 } : g, t, P, Pn(t, h)));
|
|
3315
3315
|
const b = d.animation;
|
|
3316
3316
|
b && u.push(b);
|
|
3317
3317
|
}
|
|
@@ -3374,8 +3374,8 @@ function Ju(t) {
|
|
|
3374
3374
|
var h;
|
|
3375
3375
|
const d = Ie(t, c, l === "exit" ? (h = t.presenceContext) === null || h === void 0 ? void 0 : h.custom : void 0);
|
|
3376
3376
|
if (d) {
|
|
3377
|
-
const { transition: p, transitionEnd:
|
|
3378
|
-
u = { ...u, ...P, ...
|
|
3377
|
+
const { transition: p, transitionEnd: g, ...P } = d;
|
|
3378
|
+
u = { ...u, ...P, ...g };
|
|
3379
3379
|
}
|
|
3380
3380
|
return u;
|
|
3381
3381
|
};
|
|
@@ -3384,27 +3384,27 @@ function Ju(t) {
|
|
|
3384
3384
|
}
|
|
3385
3385
|
function r(l) {
|
|
3386
3386
|
const u = t.getProps(), c = t.getVariantContext(!0) || {}, h = [], d = /* @__PURE__ */ new Set();
|
|
3387
|
-
let p = {},
|
|
3387
|
+
let p = {}, g = 1 / 0;
|
|
3388
3388
|
for (let b = 0; b < qu; b++) {
|
|
3389
|
-
const x = Xu[b],
|
|
3390
|
-
C === !1 && (
|
|
3391
|
-
let L =
|
|
3392
|
-
if (L && i && t.manuallyAnimateOnMount && (L = !1),
|
|
3393
|
-
!
|
|
3394
|
-
!
|
|
3395
|
-
se(
|
|
3389
|
+
const x = Xu[b], y = n[x], v = u[x] !== void 0 ? u[x] : c[x], w = ie(v), C = x === l ? y.isActive : null;
|
|
3390
|
+
C === !1 && (g = b);
|
|
3391
|
+
let L = v === c[x] && v !== u[x] && w;
|
|
3392
|
+
if (L && i && t.manuallyAnimateOnMount && (L = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
3393
|
+
!y.isActive && C === null || // If we didn't and don't have any defined prop for this animation type
|
|
3394
|
+
!v && !y.prevProp || // Or if the prop doesn't define an animation
|
|
3395
|
+
se(v) || typeof v == "boolean")
|
|
3396
3396
|
continue;
|
|
3397
|
-
let V = Qu(
|
|
3398
|
-
x === l &&
|
|
3399
|
-
b >
|
|
3400
|
-
const H = Array.isArray(
|
|
3397
|
+
let V = Qu(y.prevProp, v) || // If we're making this variant active, we want to always make it active
|
|
3398
|
+
x === l && y.isActive && !L && w || // If we removed a higher-priority variant (i is in reverse order)
|
|
3399
|
+
b > g && w, G = !1;
|
|
3400
|
+
const H = Array.isArray(v) ? v : [v];
|
|
3401
3401
|
let ft = H.reduce(s(x), {});
|
|
3402
3402
|
C === !1 && (ft = {});
|
|
3403
|
-
const { prevResolvedValues: Kt = {} } =
|
|
3403
|
+
const { prevResolvedValues: Kt = {} } = y, Z = {
|
|
3404
3404
|
...Kt,
|
|
3405
3405
|
...ft
|
|
3406
3406
|
}, nt = (F) => {
|
|
3407
|
-
V = !0, d.has(F) && (G = !0, d.delete(F)),
|
|
3407
|
+
V = !0, d.has(F) && (G = !0, d.delete(F)), y.needsAnimating[F] = !0;
|
|
3408
3408
|
const J = t.getValue(F);
|
|
3409
3409
|
J && (J.liveStyle = !1);
|
|
3410
3410
|
};
|
|
@@ -3413,9 +3413,9 @@ function Ju(t) {
|
|
|
3413
3413
|
if (p.hasOwnProperty(F))
|
|
3414
3414
|
continue;
|
|
3415
3415
|
let Mt = !1;
|
|
3416
|
-
hn(J) && hn(Dt) ? Mt = !Pr(J, Dt) : Mt = J !== Dt, Mt ? J != null ? nt(F) : d.add(F) : J !== void 0 && d.has(F) ? nt(F) :
|
|
3416
|
+
hn(J) && hn(Dt) ? Mt = !Pr(J, Dt) : Mt = J !== Dt, Mt ? J != null ? nt(F) : d.add(F) : J !== void 0 && d.has(F) ? nt(F) : y.protectedKeys[F] = !0;
|
|
3417
3417
|
}
|
|
3418
|
-
|
|
3418
|
+
y.prevProp = v, y.prevResolvedValues = ft, y.isActive && (p = { ...p, ...ft }), i && t.blockInitialAnimation && (V = !1), V && (!L || G) && h.push(...H.map((F) => ({
|
|
3419
3419
|
animation: F,
|
|
3420
3420
|
options: { type: x }
|
|
3421
3421
|
})));
|
|
@@ -3423,8 +3423,8 @@ function Ju(t) {
|
|
|
3423
3423
|
if (d.size) {
|
|
3424
3424
|
const b = {};
|
|
3425
3425
|
d.forEach((x) => {
|
|
3426
|
-
const
|
|
3427
|
-
|
|
3426
|
+
const y = t.getBaseTarget(x), v = t.getValue(x);
|
|
3427
|
+
v && (v.liveStyle = !0), b[x] = y ?? null;
|
|
3428
3428
|
}), h.push({ animation: b });
|
|
3429
3429
|
}
|
|
3430
3430
|
let P = !!h.length;
|
|
@@ -3456,7 +3456,7 @@ function Ju(t) {
|
|
|
3456
3456
|
function Qu(t, e) {
|
|
3457
3457
|
return typeof e == "string" ? e !== t : Array.isArray(e) ? !Pr(e, t) : !1;
|
|
3458
3458
|
}
|
|
3459
|
-
function
|
|
3459
|
+
function bt(t = !1) {
|
|
3460
3460
|
return {
|
|
3461
3461
|
isActive: t,
|
|
3462
3462
|
protectedKeys: {},
|
|
@@ -3466,16 +3466,16 @@ function Tt(t = !1) {
|
|
|
3466
3466
|
}
|
|
3467
3467
|
function Zi() {
|
|
3468
3468
|
return {
|
|
3469
|
-
animate:
|
|
3470
|
-
whileInView:
|
|
3471
|
-
whileHover:
|
|
3472
|
-
whileTap:
|
|
3473
|
-
whileDrag:
|
|
3474
|
-
whileFocus:
|
|
3475
|
-
exit:
|
|
3469
|
+
animate: bt(!0),
|
|
3470
|
+
whileInView: bt(),
|
|
3471
|
+
whileHover: bt(),
|
|
3472
|
+
whileTap: bt(),
|
|
3473
|
+
whileDrag: bt(),
|
|
3474
|
+
whileFocus: bt(),
|
|
3475
|
+
exit: bt()
|
|
3476
3476
|
};
|
|
3477
3477
|
}
|
|
3478
|
-
class tc extends
|
|
3478
|
+
class tc extends xt {
|
|
3479
3479
|
/**
|
|
3480
3480
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
3481
3481
|
* to the underlying animation library. We only want to load that if we load this,
|
|
@@ -3504,7 +3504,7 @@ class tc extends Pt {
|
|
|
3504
3504
|
}
|
|
3505
3505
|
}
|
|
3506
3506
|
let ec = 0;
|
|
3507
|
-
class nc extends
|
|
3507
|
+
class nc extends xt {
|
|
3508
3508
|
constructor() {
|
|
3509
3509
|
super(...arguments), this.id = ec++;
|
|
3510
3510
|
}
|
|
@@ -3544,19 +3544,19 @@ class Qr {
|
|
|
3544
3544
|
const h = rn(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, p = sc(h.offset, { x: 0, y: 0 }) >= 3;
|
|
3545
3545
|
if (!d && !p)
|
|
3546
3546
|
return;
|
|
3547
|
-
const { point:
|
|
3548
|
-
this.history.push({ ...
|
|
3547
|
+
const { point: g } = h, { timestamp: P } = N;
|
|
3548
|
+
this.history.push({ ...g, timestamp: P });
|
|
3549
3549
|
const { onStart: b, onMove: x } = this.handlers;
|
|
3550
3550
|
d || (b && b(this.lastMoveEvent, h), this.startEvent = this.lastMoveEvent), x && x(this.lastMoveEvent, h);
|
|
3551
3551
|
}, this.handlePointerMove = (h, d) => {
|
|
3552
3552
|
this.lastMoveEvent = h, this.lastMoveEventInfo = sn(d, this.transformPagePoint), M.update(this.updatePoint, !0);
|
|
3553
3553
|
}, this.handlePointerUp = (h, d) => {
|
|
3554
3554
|
this.end();
|
|
3555
|
-
const { onEnd: p, onSessionEnd:
|
|
3555
|
+
const { onEnd: p, onSessionEnd: g, resumeAnimation: P } = this.handlers;
|
|
3556
3556
|
if (this.dragSnapToOrigin && P && P(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3557
3557
|
return;
|
|
3558
3558
|
const b = rn(h.type === "pointercancel" ? this.lastMoveEventInfo : sn(d, this.transformPagePoint), this.history);
|
|
3559
|
-
this.startEvent && p && p(h, b),
|
|
3559
|
+
this.startEvent && p && p(h, b), g && g(h, b);
|
|
3560
3560
|
}, !pr(e))
|
|
3561
3561
|
return;
|
|
3562
3562
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = s || window;
|
|
@@ -3663,7 +3663,7 @@ function mc(t, e) {
|
|
|
3663
3663
|
function gc(t, e) {
|
|
3664
3664
|
let n = 0.5;
|
|
3665
3665
|
const i = X(t), s = X(e);
|
|
3666
|
-
return s > i ? n = oe(e.min, e.max - i, t.min) : i > s && (n = oe(t.min, t.max - s, e.min)),
|
|
3666
|
+
return s > i ? n = oe(e.min, e.max - i, t.min) : i > s && (n = oe(t.min, t.max - s, e.min)), yt(0, 1, n);
|
|
3667
3667
|
}
|
|
3668
3668
|
function yc(t, e) {
|
|
3669
3669
|
const n = {};
|
|
@@ -3726,7 +3726,7 @@ function on(t) {
|
|
|
3726
3726
|
function bn({ scale: t, scaleX: e, scaleY: n }) {
|
|
3727
3727
|
return !on(t) || !on(e) || !on(n);
|
|
3728
3728
|
}
|
|
3729
|
-
function
|
|
3729
|
+
function St(t) {
|
|
3730
3730
|
return bn(t) || so(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
|
|
3731
3731
|
}
|
|
3732
3732
|
function so(t) {
|
|
@@ -3761,7 +3761,7 @@ function Tc(t, e, n, i = !1) {
|
|
|
3761
3761
|
l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && It(t, {
|
|
3762
3762
|
x: -o.scroll.offset.x,
|
|
3763
3763
|
y: -o.scroll.offset.y
|
|
3764
|
-
}), r && (e.x *= r.x.scale, e.y *= r.y.scale, ro(t, r)), i &&
|
|
3764
|
+
}), r && (e.x *= r.x.scale, e.y *= r.y.scale, ro(t, r)), i && St(o.latestValues) && It(t, o.latestValues));
|
|
3765
3765
|
}
|
|
3766
3766
|
e.x < fs && e.x > hs && (e.x = 1), e.y < fs && e.y > hs && (e.y = 1);
|
|
3767
3767
|
}
|
|
@@ -3796,29 +3796,29 @@ class Sc {
|
|
|
3796
3796
|
h ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Be(c, "page").point);
|
|
3797
3797
|
}, o = (c, h) => {
|
|
3798
3798
|
var d;
|
|
3799
|
-
const { drag: p, dragPropagation:
|
|
3800
|
-
if (p && !
|
|
3799
|
+
const { drag: p, dragPropagation: g, onDragStart: P } = this.getProps();
|
|
3800
|
+
if (p && !g && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = gr(p), !this.openGlobalLock))
|
|
3801
3801
|
return;
|
|
3802
3802
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), et((x) => {
|
|
3803
|
-
let
|
|
3804
|
-
if (st.test(
|
|
3805
|
-
const { projection:
|
|
3806
|
-
if (
|
|
3807
|
-
const
|
|
3808
|
-
|
|
3803
|
+
let y = this.getAxisMotionValue(x).get() || 0;
|
|
3804
|
+
if (st.test(y)) {
|
|
3805
|
+
const { projection: v } = this.visualElement;
|
|
3806
|
+
if (v && v.layout) {
|
|
3807
|
+
const w = v.layout.layoutBox[x];
|
|
3808
|
+
w && (y = X(w) * (parseFloat(y) / 100));
|
|
3809
3809
|
}
|
|
3810
3810
|
}
|
|
3811
|
-
this.originPoint[x] =
|
|
3811
|
+
this.originPoint[x] = y;
|
|
3812
3812
|
}), P && M.postRender(() => P(c, h)), (d = this.removeWillChange) === null || d === void 0 || d.call(this), this.removeWillChange = Pn(this.visualElement, "transform");
|
|
3813
3813
|
const { animationState: b } = this.visualElement;
|
|
3814
3814
|
b && b.setActive("whileDrag", !0);
|
|
3815
3815
|
}, r = (c, h) => {
|
|
3816
|
-
const { dragPropagation: d, dragDirectionLock: p, onDirectionLock:
|
|
3816
|
+
const { dragPropagation: d, dragDirectionLock: p, onDirectionLock: g, onDrag: P } = this.getProps();
|
|
3817
3817
|
if (!d && !this.openGlobalLock)
|
|
3818
3818
|
return;
|
|
3819
3819
|
const { offset: b } = h;
|
|
3820
3820
|
if (p && this.currentDirection === null) {
|
|
3821
|
-
this.currentDirection = Ac(b), this.currentDirection !== null &&
|
|
3821
|
+
this.currentDirection = Ac(b), this.currentDirection !== null && g && g(this.currentDirection);
|
|
3822
3822
|
return;
|
|
3823
3823
|
}
|
|
3824
3824
|
this.updateAxis("x", h.point, b), this.updateAxis("y", h.point, b), this.visualElement.render(), P && P(c, h);
|
|
@@ -3894,7 +3894,7 @@ class Sc {
|
|
|
3894
3894
|
return;
|
|
3895
3895
|
let h = l && l[c] || {};
|
|
3896
3896
|
r && (h = { min: 0, max: 0 });
|
|
3897
|
-
const d = s ? 200 : 1e6, p = s ? 40 : 1e7,
|
|
3897
|
+
const d = s ? 200 : 1e6, p = s ? 40 : 1e7, g = {
|
|
3898
3898
|
type: "inertia",
|
|
3899
3899
|
velocity: i ? e[c] : 0,
|
|
3900
3900
|
bounceStiffness: d,
|
|
@@ -3905,7 +3905,7 @@ class Sc {
|
|
|
3905
3905
|
...o,
|
|
3906
3906
|
...h
|
|
3907
3907
|
};
|
|
3908
|
-
return this.startAxisValueAnimation(c,
|
|
3908
|
+
return this.startAxisValueAnimation(c, g);
|
|
3909
3909
|
});
|
|
3910
3910
|
return Promise.all(u).then(a);
|
|
3911
3911
|
}
|
|
@@ -4018,7 +4018,7 @@ function Ac(t, e = 10) {
|
|
|
4018
4018
|
let n = null;
|
|
4019
4019
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
|
4020
4020
|
}
|
|
4021
|
-
class Cc extends
|
|
4021
|
+
class Cc extends xt {
|
|
4022
4022
|
constructor(e) {
|
|
4023
4023
|
super(e), this.removeGroupControls = W, this.removeListeners = W, this.controls = new Sc(e);
|
|
4024
4024
|
}
|
|
@@ -4033,7 +4033,7 @@ class Cc extends Pt {
|
|
|
4033
4033
|
const ps = (t) => (e, n) => {
|
|
4034
4034
|
t && M.postRender(() => t(e, n));
|
|
4035
4035
|
};
|
|
4036
|
-
class Rc extends
|
|
4036
|
+
class Rc extends xt {
|
|
4037
4037
|
constructor() {
|
|
4038
4038
|
super(...arguments), this.removePointerDownListener = W;
|
|
4039
4039
|
}
|
|
@@ -4069,7 +4069,7 @@ function Vc() {
|
|
|
4069
4069
|
if (t === null)
|
|
4070
4070
|
return [!0, null];
|
|
4071
4071
|
const { isPresent: e, onExitComplete: n, register: i } = t, s = Cn();
|
|
4072
|
-
|
|
4072
|
+
gt(() => i(s), []);
|
|
4073
4073
|
const o = pt(() => n && n(s), [s, n]);
|
|
4074
4074
|
return !e && n ? [!1, o] : [!0];
|
|
4075
4075
|
}
|
|
@@ -4093,7 +4093,7 @@ const Xt = {
|
|
|
4093
4093
|
if (!e.target)
|
|
4094
4094
|
return t;
|
|
4095
4095
|
if (typeof t == "string")
|
|
4096
|
-
if (
|
|
4096
|
+
if (S.test(t))
|
|
4097
4097
|
t = parseFloat(t);
|
|
4098
4098
|
else
|
|
4099
4099
|
return t;
|
|
@@ -4102,10 +4102,10 @@ const Xt = {
|
|
|
4102
4102
|
}
|
|
4103
4103
|
}, Ec = {
|
|
4104
4104
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
|
4105
|
-
const i = t, s =
|
|
4105
|
+
const i = t, s = vt.parse(t);
|
|
4106
4106
|
if (s.length > 5)
|
|
4107
4107
|
return i;
|
|
4108
|
-
const o =
|
|
4108
|
+
const o = vt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
|
|
4109
4109
|
s[0 + r] /= a, s[1 + r] /= l;
|
|
4110
4110
|
const u = j(a, l, 0.5);
|
|
4111
4111
|
return typeof s[2 + r] == "number" && (s[2 + r] /= u), typeof s[3 + r] == "number" && (s[3 + r] /= u), o(s);
|
|
@@ -4170,7 +4170,7 @@ const Mc = {
|
|
|
4170
4170
|
borderBottomLeftRadius: Xt,
|
|
4171
4171
|
borderBottomRightRadius: Xt,
|
|
4172
4172
|
boxShadow: Ec
|
|
4173
|
-
}, uo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], kc = uo.length, gs = (t) => typeof t == "string" ? parseFloat(t) : t, ys = (t) => typeof t == "number" ||
|
|
4173
|
+
}, uo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], kc = uo.length, gs = (t) => typeof t == "string" ? parseFloat(t) : t, ys = (t) => typeof t == "number" || S.test(t);
|
|
4174
4174
|
function Lc(t, e, n, i, s, o) {
|
|
4175
4175
|
s ? (t.opacity = j(
|
|
4176
4176
|
0,
|
|
@@ -4301,8 +4301,8 @@ function Uc(t, e, n) {
|
|
|
4301
4301
|
let i = "";
|
|
4302
4302
|
const s = t.x.translate / e.x, o = t.y.translate / e.y, r = (n == null ? void 0 : n.z) || 0;
|
|
4303
4303
|
if ((s || o || r) && (i = `translate3d(${s}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
|
|
4304
|
-
const { transformPerspective: u, rotate: c, rotateX: h, rotateY: d, skewX: p, skewY:
|
|
4305
|
-
u && (i = `perspective(${u}px) ${i}`), c && (i += `rotate(${c}deg) `), h && (i += `rotateX(${h}deg) `), d && (i += `rotateY(${d}deg) `), p && (i += `skewX(${p}deg) `),
|
|
4304
|
+
const { transformPerspective: u, rotate: c, rotateX: h, rotateY: d, skewX: p, skewY: g } = n;
|
|
4305
|
+
u && (i = `perspective(${u}px) ${i}`), c && (i += `rotate(${c}deg) `), h && (i += `rotateX(${h}deg) `), d && (i += `rotateY(${d}deg) `), p && (i += `skewX(${p}deg) `), g && (i += `skewY(${g}deg) `);
|
|
4306
4306
|
}
|
|
4307
4307
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
4308
4308
|
return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
|
|
@@ -4336,7 +4336,7 @@ function zc(t, e, n) {
|
|
|
4336
4336
|
const i = K(t) ? t : ae(t);
|
|
4337
4337
|
return i.start(Qn("", i, e, n)), i.animation;
|
|
4338
4338
|
}
|
|
4339
|
-
const
|
|
4339
|
+
const At = {
|
|
4340
4340
|
type: "projectionFrame",
|
|
4341
4341
|
totalNodes: 0,
|
|
4342
4342
|
resolvedTargetDeltas: 0,
|
|
@@ -4359,7 +4359,7 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4359
4359
|
this.id = Yc++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
4360
4360
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
4361
4361
|
}, this.updateProjection = () => {
|
|
4362
|
-
this.projectionUpdateScheduled = !1, Zt && (
|
|
4362
|
+
this.projectionUpdateScheduled = !1, Zt && (At.totalNodes = At.resolvedTargetDeltas = At.recalculatedProjection = 0), this.nodes.forEach(Zc), this.nodes.forEach(nh), this.nodes.forEach(ih), this.nodes.forEach(Jc), Zt && window.MotionDebug.record(At);
|
|
4363
4363
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
|
4364
4364
|
for (let l = 0; l < this.path.length; l++)
|
|
4365
4365
|
this.path[l].shouldResetTransform = !0;
|
|
@@ -4390,23 +4390,23 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4390
4390
|
this.root.updateBlockedByResize = !0, h && h(), h = Kc(d, 250), Ae.hasAnimatedSinceResize && (Ae.hasAnimatedSinceResize = !1, this.nodes.forEach(Ms));
|
|
4391
4391
|
});
|
|
4392
4392
|
}
|
|
4393
|
-
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && c && (l || u) && this.addEventListener("didUpdate", ({ delta: h, hasLayoutChanged: d, hasRelativeTargetChanged: p, layout:
|
|
4393
|
+
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && c && (l || u) && this.addEventListener("didUpdate", ({ delta: h, hasLayoutChanged: d, hasRelativeTargetChanged: p, layout: g }) => {
|
|
4394
4394
|
if (this.isTreeAnimationBlocked()) {
|
|
4395
4395
|
this.target = void 0, this.relativeTarget = void 0;
|
|
4396
4396
|
return;
|
|
4397
4397
|
}
|
|
4398
|
-
const P = this.options.transition || c.getDefaultTransition() || lh, { onLayoutAnimationStart: b, onLayoutAnimationComplete: x } = c.getProps(),
|
|
4399
|
-
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance ||
|
|
4400
|
-
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(h,
|
|
4401
|
-
const
|
|
4398
|
+
const P = this.options.transition || c.getDefaultTransition() || lh, { onLayoutAnimationStart: b, onLayoutAnimationComplete: x } = c.getProps(), y = !this.targetLayout || !fo(this.targetLayout, g) || p, v = !d && p;
|
|
4399
|
+
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || v || d && (y || !this.currentAnimation)) {
|
|
4400
|
+
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(h, v);
|
|
4401
|
+
const w = {
|
|
4402
4402
|
...Kn(P, "layout"),
|
|
4403
4403
|
onPlay: b,
|
|
4404
4404
|
onComplete: x
|
|
4405
4405
|
};
|
|
4406
|
-
(c.shouldReduceMotion || this.options.layoutRoot) && (
|
|
4406
|
+
(c.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w);
|
|
4407
4407
|
} else
|
|
4408
4408
|
d || Ms(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
4409
|
-
this.targetLayout =
|
|
4409
|
+
this.targetLayout = g;
|
|
4410
4410
|
});
|
|
4411
4411
|
}
|
|
4412
4412
|
unmount() {
|
|
@@ -4460,7 +4460,7 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4460
4460
|
}
|
|
4461
4461
|
this.isUpdating || this.nodes.forEach(th), this.isUpdating = !1, this.nodes.forEach(eh), this.nodes.forEach(Xc), this.nodes.forEach(qc), this.clearAllSnapshots();
|
|
4462
4462
|
const a = mt.now();
|
|
4463
|
-
N.delta =
|
|
4463
|
+
N.delta = yt(0, 1e3 / 60, a - N.timestamp), N.timestamp = a, N.isProcessing = !0, qe.update.process(N), qe.preRender.process(N), qe.render.process(N), N.isProcessing = !1;
|
|
4464
4464
|
}
|
|
4465
4465
|
didUpdate() {
|
|
4466
4466
|
this.updateScheduled || (this.updateScheduled = !0, Dn.read(this.scheduleUpdate));
|
|
@@ -4510,7 +4510,7 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4510
4510
|
if (!s)
|
|
4511
4511
|
return;
|
|
4512
4512
|
const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !ho(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
|
|
4513
|
-
r && (a ||
|
|
4513
|
+
r && (a || St(this.latestValues) || c) && (s(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
|
|
4514
4514
|
}
|
|
4515
4515
|
measure(r = !0) {
|
|
4516
4516
|
const a = this.measurePageBox();
|
|
@@ -4554,22 +4554,22 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4554
4554
|
!a && c.options.layoutScroll && c.scroll && c !== c.root && It(l, {
|
|
4555
4555
|
x: -c.scroll.offset.x,
|
|
4556
4556
|
y: -c.scroll.offset.y
|
|
4557
|
-
}),
|
|
4557
|
+
}), St(c.latestValues) && It(l, c.latestValues);
|
|
4558
4558
|
}
|
|
4559
|
-
return
|
|
4559
|
+
return St(this.latestValues) && It(l, this.latestValues), l;
|
|
4560
4560
|
}
|
|
4561
4561
|
removeTransform(r) {
|
|
4562
4562
|
const a = B();
|
|
4563
4563
|
tt(a, r);
|
|
4564
4564
|
for (let l = 0; l < this.path.length; l++) {
|
|
4565
4565
|
const u = this.path[l];
|
|
4566
|
-
if (!u.instance || !
|
|
4566
|
+
if (!u.instance || !St(u.latestValues))
|
|
4567
4567
|
continue;
|
|
4568
4568
|
bn(u.latestValues) && u.updateSnapshot();
|
|
4569
4569
|
const c = B(), h = u.measurePageBox();
|
|
4570
4570
|
tt(c, h), ws(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
|
|
4571
4571
|
}
|
|
4572
|
-
return
|
|
4572
|
+
return St(this.latestValues) && ws(a, this.latestValues), a;
|
|
4573
4573
|
}
|
|
4574
4574
|
setTargetDelta(r) {
|
|
4575
4575
|
this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -4606,7 +4606,7 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4606
4606
|
const p = this.getClosestProjectingParent();
|
|
4607
4607
|
p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), ne(this.relativeTargetOrigin, this.target, p.target), tt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4608
4608
|
}
|
|
4609
|
-
Zt &&
|
|
4609
|
+
Zt && At.resolvedTargetDeltas++;
|
|
4610
4610
|
}
|
|
4611
4611
|
}
|
|
4612
4612
|
}
|
|
@@ -4629,12 +4629,12 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4629
4629
|
tt(this.layoutCorrected, this.layout.layoutBox);
|
|
4630
4630
|
const d = this.treeScale.x, p = this.treeScale.y;
|
|
4631
4631
|
Tc(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = B());
|
|
4632
|
-
const { target:
|
|
4633
|
-
if (!
|
|
4632
|
+
const { target: g } = a;
|
|
4633
|
+
if (!g) {
|
|
4634
4634
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
4635
4635
|
return;
|
|
4636
4636
|
}
|
|
4637
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (xs(this.prevProjectionDelta.x, this.projectionDelta.x), xs(this.prevProjectionDelta.y, this.projectionDelta.y)), ee(this.projectionDelta, this.layoutCorrected,
|
|
4637
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (xs(this.prevProjectionDelta.x, this.projectionDelta.x), xs(this.prevProjectionDelta.y, this.projectionDelta.y)), ee(this.projectionDelta, this.layoutCorrected, g, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Vs(this.projectionDelta.x, this.prevProjectionDelta.x) || !Vs(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", g)), Zt && At.recalculatedProjection++;
|
|
4638
4638
|
}
|
|
4639
4639
|
hide() {
|
|
4640
4640
|
this.isVisible = !1;
|
|
@@ -4656,12 +4656,12 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4656
4656
|
setAnimationOrigin(r, a = !1) {
|
|
4657
4657
|
const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, h = _t();
|
|
4658
4658
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
4659
|
-
const d = B(), p = l ? l.source : void 0,
|
|
4659
|
+
const d = B(), p = l ? l.source : void 0, g = this.layout ? this.layout.source : void 0, P = p !== g, b = this.getStack(), x = !b || b.members.length <= 1, y = !!(P && !x && this.options.crossfade === !0 && !this.path.some(ah));
|
|
4660
4660
|
this.animationProgress = 0;
|
|
4661
|
-
let
|
|
4662
|
-
this.mixTargetDelta = (
|
|
4663
|
-
const C =
|
|
4664
|
-
ks(h.x, r.x, C), ks(h.y, r.y, C), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ne(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), oh(this.relativeTarget, this.relativeTargetOrigin, d, C),
|
|
4661
|
+
let v;
|
|
4662
|
+
this.mixTargetDelta = (w) => {
|
|
4663
|
+
const C = w / 1e3;
|
|
4664
|
+
ks(h.x, r.x, C), ks(h.y, r.y, C), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ne(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), oh(this.relativeTarget, this.relativeTargetOrigin, d, C), v && Ic(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = B()), tt(v, this.relativeTarget)), P && (this.animationValues = c, Lc(c, u, this.latestValues, C, y, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
|
|
4665
4665
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4666
4666
|
}
|
|
4667
4667
|
startAnimation(r) {
|
|
@@ -4765,22 +4765,22 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4765
4765
|
const h = this.getLead();
|
|
4766
4766
|
if (!this.projectionDelta || !this.layout || !h.target) {
|
|
4767
4767
|
const P = {};
|
|
4768
|
-
return this.options.layoutId && (P.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, P.pointerEvents = we(r == null ? void 0 : r.pointerEvents) || ""), this.hasProjected && !
|
|
4768
|
+
return this.options.layoutId && (P.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, P.pointerEvents = we(r == null ? void 0 : r.pointerEvents) || ""), this.hasProjected && !St(this.latestValues) && (P.transform = c ? c({}, "") : "none", this.hasProjected = !1), P;
|
|
4769
4769
|
}
|
|
4770
4770
|
const d = h.animationValues || h.latestValues;
|
|
4771
4771
|
this.applyTransformsToTarget(), u.transform = Uc(this.projectionDeltaWithTransform, this.treeScale, d), c && (u.transform = c(d, u.transform));
|
|
4772
|
-
const { x: p, y } = this.projectionDelta;
|
|
4773
|
-
u.transformOrigin = `${p.origin * 100}% ${
|
|
4772
|
+
const { x: p, y: g } = this.projectionDelta;
|
|
4773
|
+
u.transformOrigin = `${p.origin * 100}% ${g.origin * 100}% 0`, h.animationValues ? u.opacity = h === this ? (l = (a = d.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : u.opacity = h === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
|
|
4774
4774
|
for (const P in Ce) {
|
|
4775
4775
|
if (d[P] === void 0)
|
|
4776
4776
|
continue;
|
|
4777
|
-
const { correct: b, applyTo: x } = Ce[P],
|
|
4777
|
+
const { correct: b, applyTo: x } = Ce[P], y = u.transform === "none" ? d[P] : b(d[P], h);
|
|
4778
4778
|
if (x) {
|
|
4779
|
-
const
|
|
4780
|
-
for (let
|
|
4781
|
-
u[x[
|
|
4779
|
+
const v = x.length;
|
|
4780
|
+
for (let w = 0; w < v; w++)
|
|
4781
|
+
u[x[w]] = y;
|
|
4782
4782
|
} else
|
|
4783
|
-
u[P] =
|
|
4783
|
+
u[P] = y;
|
|
4784
4784
|
}
|
|
4785
4785
|
return this.options.layoutId && (u.pointerEvents = h === this ? we(r == null ? void 0 : r.pointerEvents) || "" : "none"), u;
|
|
4786
4786
|
}
|
|
@@ -4822,10 +4822,10 @@ function qc(t) {
|
|
|
4822
4822
|
if (h && !h.resumeFrom) {
|
|
4823
4823
|
const { snapshot: d, layout: p } = h;
|
|
4824
4824
|
if (d && p) {
|
|
4825
|
-
const
|
|
4826
|
-
ne(
|
|
4825
|
+
const g = B();
|
|
4826
|
+
ne(g, n.layoutBox, d.layoutBox);
|
|
4827
4827
|
const P = B();
|
|
4828
|
-
ne(P, i, p.layoutBox), fo(
|
|
4828
|
+
ne(P, i, p.layoutBox), fo(g, P) || (c = !0), h.options.layoutRoot && (t.relativeTarget = P, t.relativeTargetOrigin = g, t.relativeParent = h);
|
|
4829
4829
|
}
|
|
4830
4830
|
}
|
|
4831
4831
|
}
|
|
@@ -4844,7 +4844,7 @@ function qc(t) {
|
|
|
4844
4844
|
t.options.transition = void 0;
|
|
4845
4845
|
}
|
|
4846
4846
|
function Zc(t) {
|
|
4847
|
-
Zt &&
|
|
4847
|
+
Zt && At.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
|
|
4848
4848
|
}
|
|
4849
4849
|
function Jc(t) {
|
|
4850
4850
|
t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
|
|
@@ -4969,7 +4969,7 @@ function ph(t, e, n) {
|
|
|
4969
4969
|
e[i] === void 0 && t.removeValue(i);
|
|
4970
4970
|
return e;
|
|
4971
4971
|
}
|
|
4972
|
-
const _s = /* @__PURE__ */ new WeakMap(), mh = [...Sr, $,
|
|
4972
|
+
const _s = /* @__PURE__ */ new WeakMap(), mh = [...Sr, $, vt], gh = (t) => mh.find(wr(t)), Bs = [
|
|
4973
4973
|
"AnimationStart",
|
|
4974
4974
|
"AnimationComplete",
|
|
4975
4975
|
"Update",
|
|
@@ -4990,7 +4990,7 @@ class vh {
|
|
|
4990
4990
|
return {};
|
|
4991
4991
|
}
|
|
4992
4992
|
constructor({ parent: e, props: n, presenceContext: i, reducedMotionConfig: s, blockInitialAnimation: o, visualState: r }, a = {}) {
|
|
4993
|
-
this.applyWillChange = !1, this.resolveKeyframes = (d, p,
|
|
4993
|
+
this.applyWillChange = !1, this.resolveKeyframes = (d, p, g, P) => new this.KeyframeResolver(d, p, g, P, this), this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Gn, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
4994
4994
|
this.isRenderScheduled = !1, this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
4995
4995
|
}, this.isRenderScheduled = !1, this.scheduleRender = () => {
|
|
4996
4996
|
this.isRenderScheduled || (this.isRenderScheduled = !0, M.render(this.render, !1, !0));
|
|
@@ -5017,7 +5017,7 @@ class vh {
|
|
|
5017
5017
|
this.current = null;
|
|
5018
5018
|
}
|
|
5019
5019
|
bindToMotionValue(e, n) {
|
|
5020
|
-
const i =
|
|
5020
|
+
const i = Pt.has(e), s = n.on("change", (r) => {
|
|
5021
5021
|
this.latestValues[e] = r, this.props.onUpdate && M.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0);
|
|
5022
5022
|
}), o = n.on("renderRequest", this.scheduleRender);
|
|
5023
5023
|
this.valueSubscriptions.set(e, () => {
|
|
@@ -5149,7 +5149,7 @@ class vh {
|
|
|
5149
5149
|
readValue(e, n) {
|
|
5150
5150
|
var i;
|
|
5151
5151
|
let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (i = this.getBaseTargetFromProps(this.props, e)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, e, this.options);
|
|
5152
|
-
return s != null && (typeof s == "string" && (Tr(s) || xr(s)) ? s = parseFloat(s) : !gh(s) &&
|
|
5152
|
+
return s != null && (typeof s == "string" && (Tr(s) || xr(s)) ? s = parseFloat(s) : !gh(s) && vt.test(n) && (s = kr(e, n)), this.setBaseTarget(e, K(s) ? s.get() : s)), K(s) ? s.get() : s;
|
|
5153
5153
|
}
|
|
5154
5154
|
/**
|
|
5155
5155
|
* Set the base target to later animate back to. This is currently
|
|
@@ -5204,7 +5204,7 @@ class xh extends Po {
|
|
|
5204
5204
|
super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = ar;
|
|
5205
5205
|
}
|
|
5206
5206
|
readValueFromInstance(e, n) {
|
|
5207
|
-
if (
|
|
5207
|
+
if (Pt.has(n)) {
|
|
5208
5208
|
const i = Hn(n);
|
|
5209
5209
|
return i && i.default || 0;
|
|
5210
5210
|
} else {
|
|
@@ -5237,7 +5237,7 @@ class Th extends Po {
|
|
|
5237
5237
|
return e[n];
|
|
5238
5238
|
}
|
|
5239
5239
|
readValueFromInstance(e, n) {
|
|
5240
|
-
if (
|
|
5240
|
+
if (Pt.has(n)) {
|
|
5241
5241
|
const i = Hn(n);
|
|
5242
5242
|
return i && i.default || 0;
|
|
5243
5243
|
}
|
|
@@ -5314,7 +5314,7 @@ function Rh({ children: t, isPresent: e }) {
|
|
|
5314
5314
|
}, [e]), O.jsx(Ch, { isPresent: e, childRef: i, sizeRef: s, children: An.cloneElement(t, { ref: i }) });
|
|
5315
5315
|
}
|
|
5316
5316
|
const Vh = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: o, mode: r }) => {
|
|
5317
|
-
const a = $n(Eh), l = Cn(), u =
|
|
5317
|
+
const a = $n(Eh), l = Cn(), u = Vt(
|
|
5318
5318
|
() => ({
|
|
5319
5319
|
id: l,
|
|
5320
5320
|
initial: e,
|
|
@@ -5336,7 +5336,7 @@ const Vh = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom:
|
|
|
5336
5336
|
*/
|
|
5337
5337
|
o ? [Math.random()] : [n]
|
|
5338
5338
|
);
|
|
5339
|
-
return
|
|
5339
|
+
return Vt(() => {
|
|
5340
5340
|
a.forEach((c, h) => a.set(h, !1));
|
|
5341
5341
|
}, [n]), An.useEffect(() => {
|
|
5342
5342
|
!n && !a.size && i && i();
|
|
@@ -5354,30 +5354,30 @@ function Is(t) {
|
|
|
5354
5354
|
}
|
|
5355
5355
|
const Dh = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExitComplete: s, presenceAffectsLayout: o = !0, mode: r = "sync" }) => {
|
|
5356
5356
|
ct(!e, "Replace exitBeforeEnter with mode='wait'");
|
|
5357
|
-
const a =
|
|
5357
|
+
const a = Vt(() => Is(t), [t]), l = a.map(be), u = it(!0), c = it(a), h = $n(() => /* @__PURE__ */ new Map()), [d, p] = Jt(a), [g, P] = Jt(a);
|
|
5358
5358
|
Hs(() => {
|
|
5359
5359
|
u.current = !1, c.current = a;
|
|
5360
|
-
for (let
|
|
5361
|
-
const
|
|
5362
|
-
l.includes(
|
|
5360
|
+
for (let y = 0; y < g.length; y++) {
|
|
5361
|
+
const v = be(g[y]);
|
|
5362
|
+
l.includes(v) ? h.delete(v) : h.get(v) !== !0 && h.set(v, !1);
|
|
5363
5363
|
}
|
|
5364
|
-
}, [
|
|
5364
|
+
}, [g, l.length, l.join("-")]);
|
|
5365
5365
|
const b = [];
|
|
5366
5366
|
if (a !== d) {
|
|
5367
|
-
let
|
|
5368
|
-
for (let
|
|
5369
|
-
const
|
|
5370
|
-
l.includes(C) || (
|
|
5367
|
+
let y = [...a];
|
|
5368
|
+
for (let v = 0; v < g.length; v++) {
|
|
5369
|
+
const w = g[v], C = be(w);
|
|
5370
|
+
l.includes(C) || (y.splice(v, 0, w), b.push(w));
|
|
5371
5371
|
}
|
|
5372
|
-
r === "wait" && b.length && (
|
|
5372
|
+
r === "wait" && b.length && (y = b), P(Is(y)), p(a);
|
|
5373
5373
|
return;
|
|
5374
5374
|
}
|
|
5375
|
-
process.env.NODE_ENV !== "production" && r === "wait" &&
|
|
5375
|
+
process.env.NODE_ENV !== "production" && r === "wait" && g.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
5376
5376
|
const { forceRender: x } = U(Ln);
|
|
5377
|
-
return O.jsx(O.Fragment, { children:
|
|
5378
|
-
const
|
|
5379
|
-
if (h.has(
|
|
5380
|
-
h.set(
|
|
5377
|
+
return O.jsx(O.Fragment, { children: g.map((y) => {
|
|
5378
|
+
const v = be(y), w = a === g || l.includes(v), C = () => {
|
|
5379
|
+
if (h.has(v))
|
|
5380
|
+
h.set(v, !0);
|
|
5381
5381
|
else
|
|
5382
5382
|
return;
|
|
5383
5383
|
let L = !0;
|
|
@@ -5385,19 +5385,19 @@ const Dh = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
|
|
|
5385
5385
|
q || (L = !1);
|
|
5386
5386
|
}), L && (x == null || x(), P(c.current), s && s());
|
|
5387
5387
|
};
|
|
5388
|
-
return O.jsx(Vh, { isPresent:
|
|
5388
|
+
return O.jsx(Vh, { isPresent: w, initial: !u.current || i ? void 0 : !1, custom: w ? void 0 : n, presenceAffectsLayout: o, mode: r, onExitComplete: w ? void 0 : C, children: y }, v);
|
|
5389
5389
|
}) });
|
|
5390
5390
|
}, Ns = ({
|
|
5391
5391
|
onKeydown: t
|
|
5392
|
-
}) => (
|
|
5392
|
+
}) => (gt(() => (document.addEventListener("keydown", t), () => {
|
|
5393
5393
|
document.removeEventListener("keydown", t);
|
|
5394
5394
|
}), []), null), Us = ({
|
|
5395
5395
|
onMousedown: t
|
|
5396
|
-
}) => (
|
|
5396
|
+
}) => (gt(() => (document.addEventListener("mousedown", t), () => {
|
|
5397
5397
|
document.removeEventListener("mousedown", t);
|
|
5398
5398
|
}), []), null), Mh = ({
|
|
5399
5399
|
onPickerHide: t
|
|
5400
|
-
}) => (
|
|
5400
|
+
}) => (gt(() => () => {
|
|
5401
5401
|
t();
|
|
5402
5402
|
}, []), null), kh = "acrool-react-picker__root", Lh = "acrool-react-picker__main-el", Ws = {
|
|
5403
5403
|
root: kh,
|
|
@@ -5452,57 +5452,65 @@ const Dh = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
|
|
|
5452
5452
|
};
|
|
5453
5453
|
};
|
|
5454
5454
|
function Gh(t, e) {
|
|
5455
|
-
return (i) => {
|
|
5456
|
-
const [
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
}, [
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
}, []), P = pt((
|
|
5465
|
-
|
|
5466
|
-
}, []), b = pt((
|
|
5467
|
-
|
|
5468
|
-
}, []), x = pt(() => {
|
|
5455
|
+
return (i, s) => {
|
|
5456
|
+
const [o, r] = Jt(!1), [a, l] = Jt(!1), [u, c] = Jt(), h = it(null), d = it(null), p = it(u);
|
|
5457
|
+
gt(() => {
|
|
5458
|
+
c(i.value);
|
|
5459
|
+
}, [JSON.stringify(i.value)]), gt(() => {
|
|
5460
|
+
p.current = u;
|
|
5461
|
+
}, [u]);
|
|
5462
|
+
const g = pt((w) => {
|
|
5463
|
+
[jt.Tab].includes(w.key) && (r(!1), l(!1));
|
|
5464
|
+
}, []), P = pt((w) => {
|
|
5465
|
+
([jt.ArrowUp, jt.ArrowDown, jt.Enter].includes(w.key) || w.code === "Space") && r(!0);
|
|
5466
|
+
}, []), b = pt((w) => {
|
|
5467
|
+
!h.current && d.current && !d.current.contains(w.target) && l(!1);
|
|
5468
|
+
}, []), x = pt((w) => {
|
|
5469
|
+
h.current && !h.current.contains(w.target) && d.current && !d.current.contains(w.target) && (r(!1), l(!1));
|
|
5470
|
+
}, []), y = pt(() => {
|
|
5469
5471
|
if (typeof (i == null ? void 0 : i.onChange) > "u") {
|
|
5470
|
-
|
|
5472
|
+
wt.warning("@acrool/react-picker", "createPicker component props onChange is undefined, is no call");
|
|
5471
5473
|
return;
|
|
5472
5474
|
}
|
|
5473
|
-
|
|
5474
|
-
}, [
|
|
5475
|
-
[jt.Escape].includes(
|
|
5476
|
-
}, [
|
|
5475
|
+
p.current && JSON.stringify(u) !== JSON.stringify(p.current) && i.onChange(p.current);
|
|
5476
|
+
}, [u, i.onChange]), v = pt((w) => {
|
|
5477
|
+
[jt.Escape].includes(w.key) && o && (w.stopPropagation(), r(!1));
|
|
5478
|
+
}, [o]);
|
|
5477
5479
|
return /* @__PURE__ */ O.jsx(
|
|
5478
5480
|
Rn.Provider,
|
|
5479
5481
|
{
|
|
5480
5482
|
value: {
|
|
5481
|
-
hide: () => requestAnimationFrame(() =>
|
|
5482
|
-
show: () =>
|
|
5483
|
-
toggle: () =>
|
|
5484
|
-
isVisible:
|
|
5485
|
-
inputFocus: () =>
|
|
5486
|
-
inputBlur: () =>
|
|
5487
|
-
isInputFocus:
|
|
5488
|
-
value:
|
|
5489
|
-
onChange:
|
|
5483
|
+
hide: () => requestAnimationFrame(() => r(!1)),
|
|
5484
|
+
show: () => r(!0),
|
|
5485
|
+
toggle: () => r((w) => !w),
|
|
5486
|
+
isVisible: o,
|
|
5487
|
+
inputFocus: () => l(!0),
|
|
5488
|
+
inputBlur: () => l(!1),
|
|
5489
|
+
isInputFocus: a,
|
|
5490
|
+
value: u,
|
|
5491
|
+
onChange: c
|
|
5490
5492
|
},
|
|
5491
5493
|
children: /* @__PURE__ */ O.jsxs("div", { className: Ws.root, children: [
|
|
5492
|
-
/* @__PURE__ */ O.jsx("div", { ref:
|
|
5493
|
-
|
|
5494
|
+
/* @__PURE__ */ O.jsx("div", { ref: d, className: Ws.mainEl, onKeyDown: v, children: /* @__PURE__ */ O.jsx(
|
|
5495
|
+
t,
|
|
5496
|
+
{
|
|
5497
|
+
...i,
|
|
5498
|
+
ref: s
|
|
5499
|
+
}
|
|
5500
|
+
) }),
|
|
5501
|
+
/* @__PURE__ */ O.jsx(Dh, { children: o && /* @__PURE__ */ O.jsx(
|
|
5494
5502
|
Bh,
|
|
5495
5503
|
{
|
|
5496
|
-
ref:
|
|
5497
|
-
position: Ih(
|
|
5504
|
+
ref: h,
|
|
5505
|
+
position: Ih(d.current),
|
|
5498
5506
|
children: /* @__PURE__ */ O.jsx(e, { ...i })
|
|
5499
5507
|
}
|
|
5500
5508
|
) }),
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5509
|
+
o && /* @__PURE__ */ O.jsx(Mh, { onPickerHide: y }),
|
|
5510
|
+
o && /* @__PURE__ */ O.jsx(Us, { onMousedown: x }),
|
|
5511
|
+
a && /* @__PURE__ */ O.jsx(Us, { onMousedown: b }),
|
|
5512
|
+
a && /* @__PURE__ */ O.jsx(Ns, { onKeydown: P }),
|
|
5513
|
+
a && /* @__PURE__ */ O.jsx(Ns, { onKeydown: g })
|
|
5506
5514
|
] })
|
|
5507
5515
|
}
|
|
5508
5516
|
);
|