prometeo-design-system 1.5.0 → 1.5.1
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/prometeo-design-system.es.js +276 -276
- package/dist/prometeo-design-system.umd.js +11 -11
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as b from "react";
|
|
2
|
-
import B, { useState as Se, useId as ja, useRef as Me, forwardRef as Pn, useImperativeHandle as Vr, useMemo as Qt, useLayoutEffect as Fo, useEffect as ht, useCallback as
|
|
2
|
+
import B, { useState as Se, useId as ja, useRef as Me, forwardRef as Pn, useImperativeHandle as Vr, useMemo as Qt, useLayoutEffect as Fo, useEffect as ht, useCallback as he, memo as rr, cloneElement as ec, createContext as Lo, useContext as zo, useReducer as tc, Fragment as nc } from "react";
|
|
3
3
|
import { clsx as $o } from "clsx";
|
|
4
4
|
import { twMerge as rc } from "tailwind-merge";
|
|
5
5
|
import { motion as oe, useAnimationControls as ic, AnimatePresence as ir } from "framer-motion";
|
|
@@ -158,11 +158,11 @@ function cc() {
|
|
|
158
158
|
}
|
|
159
159
|
function l() {
|
|
160
160
|
var w = n(this.type);
|
|
161
|
-
return
|
|
161
|
+
return Y[w] || (Y[w] = !0, console.error(
|
|
162
162
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
163
163
|
)), w = this.props.ref, w !== void 0 ? w : null;
|
|
164
164
|
}
|
|
165
|
-
function c(w, k, P, D, q, z,
|
|
165
|
+
function c(w, k, P, D, q, z, V, J) {
|
|
166
166
|
return P = z.ref, w = {
|
|
167
167
|
$$typeof: h,
|
|
168
168
|
type: w,
|
|
@@ -186,7 +186,7 @@ function cc() {
|
|
|
186
186
|
configurable: !1,
|
|
187
187
|
enumerable: !1,
|
|
188
188
|
writable: !0,
|
|
189
|
-
value:
|
|
189
|
+
value: V
|
|
190
190
|
}), Object.defineProperty(w, "_debugTask", {
|
|
191
191
|
configurable: !1,
|
|
192
192
|
enumerable: !1,
|
|
@@ -194,7 +194,7 @@ function cc() {
|
|
|
194
194
|
value: J
|
|
195
195
|
}), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
|
|
196
196
|
}
|
|
197
|
-
function u(w, k, P, D, q, z,
|
|
197
|
+
function u(w, k, P, D, q, z, V, J) {
|
|
198
198
|
var A = k.children;
|
|
199
199
|
if (A !== void 0)
|
|
200
200
|
if (D)
|
|
@@ -227,8 +227,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
227
227
|
}
|
|
228
228
|
if (A = null, P !== void 0 && (t(P), A = "" + P), o(k) && (t(k.key), A = "" + k.key), "key" in k) {
|
|
229
229
|
P = {};
|
|
230
|
-
for (var
|
|
231
|
-
|
|
230
|
+
for (var G in k)
|
|
231
|
+
G !== "key" && (P[G] = k[G]);
|
|
232
232
|
} else P = k;
|
|
233
233
|
return A && s(
|
|
234
234
|
P,
|
|
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
q,
|
|
241
241
|
i(),
|
|
242
242
|
P,
|
|
243
|
-
|
|
243
|
+
V,
|
|
244
244
|
J
|
|
245
245
|
);
|
|
246
246
|
}
|
|
@@ -255,7 +255,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
255
255
|
return w();
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
|
-
var Z,
|
|
258
|
+
var Z, Y = {}, K = m.react_stack_bottom_frame.bind(
|
|
259
259
|
m,
|
|
260
260
|
a
|
|
261
261
|
)(), ne = W(r(a)), te = {};
|
|
@@ -268,7 +268,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
268
268
|
!1,
|
|
269
269
|
D,
|
|
270
270
|
q,
|
|
271
|
-
z ? Error("react-stack-top-frame") :
|
|
271
|
+
z ? Error("react-stack-top-frame") : K,
|
|
272
272
|
z ? W(r(w)) : ne
|
|
273
273
|
);
|
|
274
274
|
}, qn.jsxs = function(w, k, P, D, q) {
|
|
@@ -280,7 +280,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
280
280
|
!0,
|
|
281
281
|
D,
|
|
282
282
|
q,
|
|
283
|
-
z ? Error("react-stack-top-frame") :
|
|
283
|
+
z ? Error("react-stack-top-frame") : K,
|
|
284
284
|
z ? W(r(w)) : ne
|
|
285
285
|
);
|
|
286
286
|
};
|
|
@@ -3203,15 +3203,15 @@ function mp({ activeSnapPointProp: n, setActiveSnapPointProp: e, snapPoints: t,
|
|
|
3203
3203
|
E(x[t.length - 1]);
|
|
3204
3204
|
return;
|
|
3205
3205
|
}
|
|
3206
|
-
const Z = x?.reduce((
|
|
3207
|
-
if (j > Cs && Math.abs(S) <
|
|
3208
|
-
const
|
|
3209
|
-
if (
|
|
3206
|
+
const Z = x?.reduce((K, ne) => typeof K != "number" || typeof ne != "number" ? K : Math.abs(ne - H) < Math.abs(K - H) ? ne : K), Y = Re(s) ? window.innerHeight : window.innerWidth;
|
|
3207
|
+
if (j > Cs && Math.abs(S) < Y * 0.4) {
|
|
3208
|
+
const K = W ? 1 : -1;
|
|
3209
|
+
if (K > 0 && g && t) {
|
|
3210
3210
|
E(x[t.length - 1]);
|
|
3211
3211
|
return;
|
|
3212
3212
|
}
|
|
3213
|
-
if (R &&
|
|
3214
|
-
E(x[f +
|
|
3213
|
+
if (R && K < 0 && L && C(), f === null) return;
|
|
3214
|
+
E(x[f + K]);
|
|
3215
3215
|
return;
|
|
3216
3216
|
}
|
|
3217
3217
|
E(Z);
|
|
@@ -3357,7 +3357,7 @@ function gp({ isOpen: n, modal: e, nested: t, hasBeenOpened: r, preventScrollRes
|
|
|
3357
3357
|
}
|
|
3358
3358
|
function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, snapPoints: a, shouldScaleBackground: o = !1, setBackgroundColorOnScale: s = !0, closeThreshold: l = dp, scrollLockTimeout: c = pp, dismissible: u = !0, handleOnly: p = !1, fadeFromIndex: m = a && a.length - 1, activeSnapPoint: h, setActiveSnapPoint: g, fixed: f, modal: v = !0, onClose: x, nested: _, noBodyStyles: E = !1, direction: T = "bottom", defaultOpen: y = !1, disablePreventScroll: O = !0, snapToSequentialPoint: S = !1, preventScrollRestoration: C = !1, repositionInputs: j = !0, onAnimationEnd: L, container: H, autoFocus: $ = !1 }) {
|
|
3359
3359
|
var R, W;
|
|
3360
|
-
const [Z = !1,
|
|
3360
|
+
const [Z = !1, Y] = Ps({
|
|
3361
3361
|
defaultProp: y,
|
|
3362
3362
|
prop: n,
|
|
3363
3363
|
onChange: (Q) => {
|
|
@@ -3367,9 +3367,9 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3367
3367
|
document.body.style.pointerEvents = "auto";
|
|
3368
3368
|
}), Q || (document.body.style.pointerEvents = "auto");
|
|
3369
3369
|
}
|
|
3370
|
-
}), [
|
|
3370
|
+
}), [K, ne] = B.useState(!1), [te, w] = B.useState(!1), [k, P] = B.useState(!1), D = B.useRef(null), q = B.useRef(null), z = B.useRef(null), V = B.useRef(null), J = B.useRef(null), A = B.useRef(!1), U = B.useRef(null), G = B.useRef(0), ie = B.useRef(!1), I = B.useRef(!y), Ie = B.useRef(0), N = B.useRef(null), ee = B.useRef(((R = N.current) == null ? void 0 : R.getBoundingClientRect().height) || 0), Ce = B.useRef(((W = N.current) == null ? void 0 : W.getBoundingClientRect().width) || 0), be = B.useRef(0), Fe = B.useCallback((Q) => {
|
|
3371
3371
|
a && Q === Ue.length - 1 && (q.current = /* @__PURE__ */ new Date());
|
|
3372
|
-
}, []), { activeSnapPoint: le, activeSnapPointIndex: xe, setActiveSnapPoint: jt, onRelease: We, snapPointsOffset: Ue, onDrag: F, shouldFade:
|
|
3372
|
+
}, []), { activeSnapPoint: le, activeSnapPointIndex: xe, setActiveSnapPoint: jt, onRelease: We, snapPointsOffset: Ue, onDrag: F, shouldFade: X, getPercentageDragged: se } = mp({
|
|
3373
3373
|
snapPoints: a,
|
|
3374
3374
|
activeSnapPointProp: h,
|
|
3375
3375
|
setActiveSnapPointProp: g,
|
|
@@ -3382,13 +3382,13 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3382
3382
|
snapToSequentialPoint: S
|
|
3383
3383
|
});
|
|
3384
3384
|
rp({
|
|
3385
|
-
isDisabled: !Z || te || !v || k || !
|
|
3385
|
+
isDisabled: !Z || te || !v || k || !K || !j || !O
|
|
3386
3386
|
});
|
|
3387
3387
|
const { restorePositionSetting: pe } = gp({
|
|
3388
3388
|
isOpen: Z,
|
|
3389
3389
|
modal: v,
|
|
3390
3390
|
nested: _ ?? !1,
|
|
3391
|
-
hasBeenOpened:
|
|
3391
|
+
hasBeenOpened: K,
|
|
3392
3392
|
preventScrollRestoration: C,
|
|
3393
3393
|
noBodyStyles: E
|
|
3394
3394
|
});
|
|
@@ -3396,15 +3396,15 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3396
3396
|
return (window.innerWidth - Di) / window.innerWidth;
|
|
3397
3397
|
}
|
|
3398
3398
|
function gt(Q) {
|
|
3399
|
-
var de,
|
|
3400
|
-
!u && !a || N.current && !N.current.contains(Q.target) || (ee.current = ((de = N.current) == null ? void 0 : de.getBoundingClientRect().height) || 0, Ce.current = ((
|
|
3399
|
+
var de, ge;
|
|
3400
|
+
!u && !a || N.current && !N.current.contains(Q.target) || (ee.current = ((de = N.current) == null ? void 0 : de.getBoundingClientRect().height) || 0, Ce.current = ((ge = N.current) == null ? void 0 : ge.getBoundingClientRect().width) || 0, w(!0), z.current = /* @__PURE__ */ new Date(), Ts() && window.addEventListener("touchend", () => A.current = !1, {
|
|
3401
3401
|
once: !0
|
|
3402
|
-
}), Q.target.setPointerCapture(Q.pointerId),
|
|
3402
|
+
}), Q.target.setPointerCapture(Q.pointerId), G.current = Re(T) ? Q.pageY : Q.pageX);
|
|
3403
3403
|
}
|
|
3404
3404
|
function pt(Q, de) {
|
|
3405
|
-
var
|
|
3405
|
+
var ge;
|
|
3406
3406
|
let ae = Q;
|
|
3407
|
-
const ke = (
|
|
3407
|
+
const ke = (ge = window.getSelection()) == null ? void 0 : ge.toString(), Xe = N.current ? hr(N.current, T) : null, Ze = /* @__PURE__ */ new Date();
|
|
3408
3408
|
if (ae.tagName === "SELECT" || ae.hasAttribute("data-vaul-no-drag") || ae.closest("[data-vaul-no-drag]"))
|
|
3409
3409
|
return !1;
|
|
3410
3410
|
if (T === "right" || T === "left")
|
|
@@ -3430,9 +3430,9 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3430
3430
|
}
|
|
3431
3431
|
function Vt(Q) {
|
|
3432
3432
|
if (N.current && te) {
|
|
3433
|
-
const de = T === "bottom" || T === "right" ? 1 : -1,
|
|
3433
|
+
const de = T === "bottom" || T === "right" ? 1 : -1, ge = (G.current - (Re(T) ? Q.pageY : Q.pageX)) * de, ae = ge > 0, ke = a && !u && !ae;
|
|
3434
3434
|
if (ke && xe === 0) return;
|
|
3435
|
-
const Xe = Math.abs(
|
|
3435
|
+
const Xe = Math.abs(ge), Ze = document.querySelector("[data-vaul-drawer-wrapper]"), Nt = T === "bottom" || T === "top" ? ee.current : Ce.current;
|
|
3436
3436
|
let mt = Xe / Nt;
|
|
3437
3437
|
const Xt = se(Xe, ae);
|
|
3438
3438
|
if (Xt !== null && (mt = Xt), ke && mt >= 1 || !A.current && !pt(Q.target, ae)) return;
|
|
@@ -3441,16 +3441,16 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3441
3441
|
}), qe(D.current, {
|
|
3442
3442
|
transition: "none"
|
|
3443
3443
|
}), a && F({
|
|
3444
|
-
draggedDistance:
|
|
3444
|
+
draggedDistance: ge
|
|
3445
3445
|
}), ae && !a) {
|
|
3446
|
-
const yt = cp(
|
|
3446
|
+
const yt = cp(ge), sr = Math.min(yt * -1, 0) * de;
|
|
3447
3447
|
qe(N.current, {
|
|
3448
3448
|
transform: Re(T) ? `translate3d(0, ${sr}px, 0)` : `translate3d(${sr}px, 0, 0)`
|
|
3449
3449
|
});
|
|
3450
3450
|
return;
|
|
3451
3451
|
}
|
|
3452
3452
|
const qt = 1 - mt;
|
|
3453
|
-
if ((
|
|
3453
|
+
if ((X || m && xe === m - 1) && (r?.(Q, mt), qe(D.current, {
|
|
3454
3454
|
opacity: `${qt}`,
|
|
3455
3455
|
transition: "none"
|
|
3456
3456
|
}, !0)), Ze && D.current && o) {
|
|
@@ -3477,8 +3477,8 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3477
3477
|
var Q;
|
|
3478
3478
|
function de() {
|
|
3479
3479
|
if (!N.current || !j) return;
|
|
3480
|
-
const
|
|
3481
|
-
if (Ri(
|
|
3480
|
+
const ge = document.activeElement;
|
|
3481
|
+
if (Ri(ge) || ie.current) {
|
|
3482
3482
|
var ae;
|
|
3483
3483
|
const ke = ((ae = window.visualViewport) == null ? void 0 : ae.height) || 0, Xe = window.innerHeight;
|
|
3484
3484
|
let Ze = Xe - ke;
|
|
@@ -3498,8 +3498,8 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3498
3498
|
}
|
|
3499
3499
|
}
|
|
3500
3500
|
return (Q = window.visualViewport) == null || Q.addEventListener("resize", de), () => {
|
|
3501
|
-
var
|
|
3502
|
-
return (
|
|
3501
|
+
var ge;
|
|
3502
|
+
return (ge = window.visualViewport) == null ? void 0 : ge.removeEventListener("resize", de);
|
|
3503
3503
|
};
|
|
3504
3504
|
}, [
|
|
3505
3505
|
xe,
|
|
@@ -3507,7 +3507,7 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3507
3507
|
Ue
|
|
3508
3508
|
]);
|
|
3509
3509
|
function ft(Q) {
|
|
3510
|
-
xt(), x?.(), Q ||
|
|
3510
|
+
xt(), x?.(), Q || Y(!1), setTimeout(() => {
|
|
3511
3511
|
a && jt(a[0]);
|
|
3512
3512
|
}, _e.DURATION * 1e3);
|
|
3513
3513
|
}
|
|
@@ -3536,14 +3536,14 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3536
3536
|
}, !0);
|
|
3537
3537
|
}
|
|
3538
3538
|
function xt() {
|
|
3539
|
-
!te || !N.current || (N.current.classList.remove(pi), A.current = !1, w(!1),
|
|
3539
|
+
!te || !N.current || (N.current.classList.remove(pi), A.current = !1, w(!1), V.current = /* @__PURE__ */ new Date());
|
|
3540
3540
|
}
|
|
3541
3541
|
function Yt(Q) {
|
|
3542
3542
|
if (!te || !N.current) return;
|
|
3543
|
-
N.current.classList.remove(pi), A.current = !1, w(!1),
|
|
3543
|
+
N.current.classList.remove(pi), A.current = !1, w(!1), V.current = /* @__PURE__ */ new Date();
|
|
3544
3544
|
const de = hr(N.current, T);
|
|
3545
3545
|
if (!Q || !pt(Q.target, !1) || !de || Number.isNaN(de) || z.current === null) return;
|
|
3546
|
-
const
|
|
3546
|
+
const ge = V.current.getTime() - z.current.getTime(), ae = G.current - (Re(T) ? Q.pageY : Q.pageX), ke = Math.abs(ae) / ge;
|
|
3547
3547
|
if (ke > 0.05 && (P(!0), setTimeout(() => {
|
|
3548
3548
|
P(!1);
|
|
3549
3549
|
}, 200)), a) {
|
|
@@ -3581,10 +3581,10 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3581
3581
|
Z
|
|
3582
3582
|
]);
|
|
3583
3583
|
function Rn(Q) {
|
|
3584
|
-
const de = Q ? (window.innerWidth - Gt) / window.innerWidth : 1,
|
|
3584
|
+
const de = Q ? (window.innerWidth - Gt) / window.innerWidth : 1, ge = Q ? -Gt : 0;
|
|
3585
3585
|
U.current && window.clearTimeout(U.current), qe(N.current, {
|
|
3586
3586
|
transition: `transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,
|
|
3587
|
-
transform: Re(T) ? `scale(${de}) translate3d(0, ${
|
|
3587
|
+
transform: Re(T) ? `scale(${de}) translate3d(0, ${ge}px, 0)` : `scale(${de}) translate3d(${ge}px, 0, 0)`
|
|
3588
3588
|
}), !Q && N.current && (U.current = setTimeout(() => {
|
|
3589
3589
|
const ae = hr(N.current, T);
|
|
3590
3590
|
qe(N.current, {
|
|
@@ -3595,14 +3595,14 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3595
3595
|
}
|
|
3596
3596
|
function Dn(Q, de) {
|
|
3597
3597
|
if (de < 0) return;
|
|
3598
|
-
const
|
|
3598
|
+
const ge = (window.innerWidth - Gt) / window.innerWidth, ae = ge + de * (1 - ge), ke = -Gt + de * Gt;
|
|
3599
3599
|
qe(N.current, {
|
|
3600
3600
|
transform: Re(T) ? `scale(${ae}) translate3d(0, ${ke}px, 0)` : `scale(${ae}) translate3d(${ke}px, 0, 0)`,
|
|
3601
3601
|
transition: "none"
|
|
3602
3602
|
});
|
|
3603
3603
|
}
|
|
3604
3604
|
function An(Q, de) {
|
|
3605
|
-
const
|
|
3605
|
+
const ge = Re(T) ? window.innerHeight : window.innerWidth, ae = de ? (ge - Gt) / ge : 1, ke = de ? -Gt : 0;
|
|
3606
3606
|
de && qe(N.current, {
|
|
3607
3607
|
transition: `transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,
|
|
3608
3608
|
transform: Re(T) ? `scale(${ae}) translate3d(0, ${ke}px, 0)` : `scale(${ae}) translate3d(${ke}px, 0, 0)`
|
|
@@ -3617,7 +3617,7 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3617
3617
|
]), /* @__PURE__ */ B.createElement(Wd, {
|
|
3618
3618
|
defaultOpen: y,
|
|
3619
3619
|
onOpenChange: (Q) => {
|
|
3620
|
-
!u && !Q || (Q ? ne(!0) : ft(!0),
|
|
3620
|
+
!u && !Q || (Q ? ne(!0) : ft(!0), Y(Q));
|
|
3621
3621
|
},
|
|
3622
3622
|
open: Z
|
|
3623
3623
|
}, /* @__PURE__ */ B.createElement(_s.Provider, {
|
|
@@ -3636,7 +3636,7 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3636
3636
|
handleOnly: p,
|
|
3637
3637
|
isOpen: Z,
|
|
3638
3638
|
isDragging: te,
|
|
3639
|
-
shouldFade:
|
|
3639
|
+
shouldFade: X,
|
|
3640
3640
|
closeDrawer: ft,
|
|
3641
3641
|
onNestedDrag: Dn,
|
|
3642
3642
|
onNestedOpenChange: Rn,
|
|
@@ -3677,14 +3677,14 @@ const Ds = /* @__PURE__ */ B.forwardRef(function({ onPointerDownOutside: n, styl
|
|
|
3677
3677
|
vp();
|
|
3678
3678
|
const H = (R, W, Z = 0) => {
|
|
3679
3679
|
if (j.current) return !0;
|
|
3680
|
-
const
|
|
3680
|
+
const Y = Math.abs(R.y), K = Math.abs(R.x), ne = K > Y, te = [
|
|
3681
3681
|
"bottom",
|
|
3682
3682
|
"right"
|
|
3683
3683
|
].includes(W) ? 1 : -1;
|
|
3684
3684
|
if (W === "left" || W === "right") {
|
|
3685
|
-
if (!(R.x * te < 0) &&
|
|
3685
|
+
if (!(R.x * te < 0) && K >= 0 && K <= Z)
|
|
3686
3686
|
return ne;
|
|
3687
|
-
} else if (!(R.y * te < 0) &&
|
|
3687
|
+
} else if (!(R.y * te < 0) && Y >= 0 && Y <= Z)
|
|
3688
3688
|
return !ne;
|
|
3689
3689
|
return j.current = !0, !0;
|
|
3690
3690
|
};
|
|
@@ -3733,11 +3733,11 @@ const Ds = /* @__PURE__ */ B.forwardRef(function({ onPointerDownOutside: n, styl
|
|
|
3733
3733
|
},
|
|
3734
3734
|
onPointerMove: (R) => {
|
|
3735
3735
|
if (C.current = R, x || (r.onPointerMove == null || r.onPointerMove.call(r, R), !S.current)) return;
|
|
3736
|
-
const W = R.pageY - S.current.y, Z = R.pageX - S.current.x,
|
|
3736
|
+
const W = R.pageY - S.current.y, Z = R.pageX - S.current.x, Y = R.pointerType === "touch" ? 10 : 2;
|
|
3737
3737
|
H({
|
|
3738
3738
|
x: Z,
|
|
3739
3739
|
y: W
|
|
3740
|
-
}, g,
|
|
3740
|
+
}, g, Y) ? l(R) : (Math.abs(Z) > Y || Math.abs(W) > Y) && (S.current = null);
|
|
3741
3741
|
},
|
|
3742
3742
|
onPointerUp: (R) => {
|
|
3743
3743
|
r.onPointerUp == null || r.onPointerUp.call(r, R), S.current = null, j.current = !1, s(R);
|
|
@@ -3839,11 +3839,11 @@ const Pt = {
|
|
|
3839
3839
|
}), Sp = Pn(({ children: n, direction: e, modal: t = !1, className: r, onClose: i, defaultOpen: a = !1 }, o) => {
|
|
3840
3840
|
const [s, l] = Se(a), c = Me(i);
|
|
3841
3841
|
c.current = i;
|
|
3842
|
-
const u =
|
|
3842
|
+
const u = he(() => {
|
|
3843
3843
|
l(!0);
|
|
3844
|
-
}, []), p =
|
|
3844
|
+
}, []), p = he(() => {
|
|
3845
3845
|
l(!1);
|
|
3846
|
-
}, []), m =
|
|
3846
|
+
}, []), m = he(() => {
|
|
3847
3847
|
l(!1), c.current?.();
|
|
3848
3848
|
}, []);
|
|
3849
3849
|
return Vr(o, () => ({
|
|
@@ -3869,11 +3869,11 @@ Sp.displayName = "DrawerDesktop";
|
|
|
3869
3869
|
const jp = Pn(({ children: n, setSnap: e, snap: t, snapPoints: r, onClose: i, defaultOpen: a = !1, modal: o = !1, open: s }, l) => {
|
|
3870
3870
|
const [c, u] = Se(a), p = s !== void 0 ? s : c, m = Me(i);
|
|
3871
3871
|
m.current = i;
|
|
3872
|
-
const h =
|
|
3872
|
+
const h = he(() => {
|
|
3873
3873
|
u(!0);
|
|
3874
|
-
}, []), g =
|
|
3874
|
+
}, []), g = he(() => {
|
|
3875
3875
|
u(!1);
|
|
3876
|
-
}, []), f =
|
|
3876
|
+
}, []), f = he(() => {
|
|
3877
3877
|
u(!1), m.current?.();
|
|
3878
3878
|
}, []);
|
|
3879
3879
|
return Vr(l, () => ({
|
|
@@ -4341,24 +4341,24 @@ const As = ({
|
|
|
4341
4341
|
onKeyDown: T,
|
|
4342
4342
|
onKeyUp: y
|
|
4343
4343
|
}) => {
|
|
4344
|
-
const [O, S] = Se(r), [C] = sc(O, i), [j, L] = Se(!1), [H, $] = Se(!1);
|
|
4344
|
+
const [O, S] = Se(r), [C] = sc(O, i), [j, L] = Se(!1), [H, $] = Se(!1), R = he(t, [t]);
|
|
4345
4345
|
ht(() => {
|
|
4346
|
-
i > 0 &&
|
|
4347
|
-
}, [C, i,
|
|
4346
|
+
i > 0 && C !== r && R(C);
|
|
4347
|
+
}, [C, i, R, r]), ht(() => {
|
|
4348
4348
|
S(r);
|
|
4349
4349
|
}, [r]);
|
|
4350
|
-
const
|
|
4350
|
+
const W = () => {
|
|
4351
4351
|
L(!0), x?.();
|
|
4352
|
-
},
|
|
4352
|
+
}, Z = () => {
|
|
4353
4353
|
L(!1), _?.();
|
|
4354
|
-
},
|
|
4355
|
-
const
|
|
4356
|
-
S(
|
|
4357
|
-
},
|
|
4354
|
+
}, Y = (V) => {
|
|
4355
|
+
const J = V.target.value, A = O;
|
|
4356
|
+
S(J), A.length > 0 && J.length === 0 && E?.(), (!i || i === 0) && t(J);
|
|
4357
|
+
}, K = () => {
|
|
4358
4358
|
$(!H);
|
|
4359
|
-
},
|
|
4360
|
-
o && o !== "100%" && (
|
|
4361
|
-
const
|
|
4359
|
+
}, ne = {};
|
|
4360
|
+
o && o !== "100%" && (ne.width = o), s && (ne.height = s);
|
|
4361
|
+
const te = O.length > 0, w = l === "error" && g, k = !w && f, P = () => c === "static" || j || te ? "-top-2 left-2 scale-90" : "top-1/2 -translate-y-1/2 scale-100", D = () => c === "static" ? s ? "text-sm" : "text-xs" : s ? "text-sm" : Fn[u].label, q = () => s ? { height: s } : {}, z = () => c === "static" ? n : "";
|
|
4362
4362
|
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
4363
4363
|
/* @__PURE__ */ d.jsxs(
|
|
4364
4364
|
"div",
|
|
@@ -4370,7 +4370,7 @@ const As = ({
|
|
|
4370
4370
|
"bg-inherit",
|
|
4371
4371
|
c === "static" && "mt-2"
|
|
4372
4372
|
),
|
|
4373
|
-
style:
|
|
4373
|
+
style: ne,
|
|
4374
4374
|
children: [
|
|
4375
4375
|
/* @__PURE__ */ d.jsx(
|
|
4376
4376
|
"input",
|
|
@@ -4379,23 +4379,23 @@ const As = ({
|
|
|
4379
4379
|
name: a,
|
|
4380
4380
|
type: m === "password" && H ? "text" : m,
|
|
4381
4381
|
value: O,
|
|
4382
|
-
placeholder:
|
|
4382
|
+
placeholder: z(),
|
|
4383
4383
|
className: M(
|
|
4384
4384
|
"peer w-full border-1 rounded-lg bg-transparent appearance-none transition-all duration-200 ease-in-out",
|
|
4385
4385
|
"focus:outline-none px-3",
|
|
4386
4386
|
c === "default" && "placeholder:text-transparent",
|
|
4387
4387
|
c === "static" && "placeholder:text-neutral-medium-default placeholder:opacity-50",
|
|
4388
4388
|
!s && Fn[u].input,
|
|
4389
|
-
s && `px-3 ${Fn[u].input.split(" ").filter((
|
|
4389
|
+
s && `px-3 ${Fn[u].input.split(" ").filter((V) => V.startsWith("text-")).join(" ")}`,
|
|
4390
4390
|
vr[l].input,
|
|
4391
4391
|
e && "pr-10",
|
|
4392
4392
|
p && "bg-neutral-weak-default cursor-not-allowed opacity-60",
|
|
4393
4393
|
vr[l].container
|
|
4394
4394
|
),
|
|
4395
|
-
style:
|
|
4396
|
-
onChange:
|
|
4397
|
-
onFocus:
|
|
4398
|
-
onBlur:
|
|
4395
|
+
style: q(),
|
|
4396
|
+
onChange: Y,
|
|
4397
|
+
onFocus: W,
|
|
4398
|
+
onBlur: Z,
|
|
4399
4399
|
disabled: p,
|
|
4400
4400
|
required: v,
|
|
4401
4401
|
onEmptied: E,
|
|
@@ -4410,9 +4410,9 @@ const As = ({
|
|
|
4410
4410
|
className: M(
|
|
4411
4411
|
"absolute left-3 pointer-events-none bg-inherit px-1 z-10",
|
|
4412
4412
|
c === "default" && "transition-all duration-200 ease-in-out",
|
|
4413
|
-
|
|
4413
|
+
D(),
|
|
4414
4414
|
vr[l].label,
|
|
4415
|
-
|
|
4415
|
+
P(),
|
|
4416
4416
|
v && "after:content-['*'] after:text-error-default after:ml-1"
|
|
4417
4417
|
),
|
|
4418
4418
|
children: n
|
|
@@ -4428,16 +4428,16 @@ const As = ({
|
|
|
4428
4428
|
vr[l].icon,
|
|
4429
4429
|
m === "password" && !h ? "cursor-pointer" : "pointer-events-none"
|
|
4430
4430
|
),
|
|
4431
|
-
onClick: m === "password" && !h ?
|
|
4432
|
-
onMouseDown: (
|
|
4431
|
+
onClick: m === "password" && !h ? K : void 0,
|
|
4432
|
+
onMouseDown: (V) => m === "password" && !h && V.preventDefault(),
|
|
4433
4433
|
children: /* @__PURE__ */ d.jsx("div", { children: h && m !== "password" ? /* @__PURE__ */ d.jsx("div", { children: /* @__PURE__ */ d.jsx(As, { size: 24, color: "#7c86ff", loading: !0, variant: "clip" }) }) : m === "password" ? H ? /* @__PURE__ */ d.jsx(Ne.EyeVisibility, { size: 24, className: "" }) : /* @__PURE__ */ d.jsx(Ne.EyeVisibilityOff, { size: 24, className: "" }) : e })
|
|
4434
4434
|
}
|
|
4435
4435
|
)
|
|
4436
4436
|
]
|
|
4437
4437
|
}
|
|
4438
4438
|
),
|
|
4439
|
-
|
|
4440
|
-
|
|
4439
|
+
k && f,
|
|
4440
|
+
w && g
|
|
4441
4441
|
] });
|
|
4442
4442
|
}, bh = rr(Xp), wh = ({
|
|
4443
4443
|
icon: n,
|
|
@@ -4734,9 +4734,9 @@ const Sh = B.forwardRef(
|
|
|
4734
4734
|
width: T = "100%",
|
|
4735
4735
|
height: y
|
|
4736
4736
|
}) => {
|
|
4737
|
-
const [O, S] = Se(!1), [C, j] = Se(!1), [L, H] = Se("down"), $ = Me(null), R = t && t.length > 0, W = i?.filter((A) => t.includes(p(A))), Z = () => O || R || C ? "-top-2 left-2 scale-90" : "top-1/2 -translate-y-1/2 scale-100",
|
|
4738
|
-
T && T !== "100%" && (
|
|
4739
|
-
const
|
|
4737
|
+
const [O, S] = Se(!1), [C, j] = Se(!1), [L, H] = Se("down"), $ = Me(null), R = t && t.length > 0, W = i?.filter((A) => t.includes(p(A))), Z = () => O || R || C ? "-top-2 left-2 scale-90" : "top-1/2 -translate-y-1/2 scale-100", Y = {};
|
|
4738
|
+
T && T !== "100%" && (Y.width = T), y && (Y.height = y);
|
|
4739
|
+
const K = () => y ? { height: y } : {};
|
|
4740
4740
|
ht(() => {
|
|
4741
4741
|
const A = (U) => {
|
|
4742
4742
|
$.current && !$.current.contains(U.target) && S(!1);
|
|
@@ -4754,15 +4754,15 @@ const Sh = B.forwardRef(
|
|
|
4754
4754
|
A.stopPropagation(), j(!1), A.target.blur(), o?.();
|
|
4755
4755
|
}, k = (A, U) => {
|
|
4756
4756
|
U?.stopPropagation();
|
|
4757
|
-
const
|
|
4758
|
-
E?.(
|
|
4757
|
+
const G = p(A);
|
|
4758
|
+
E?.(G);
|
|
4759
4759
|
}, P = ({ option: A, onRemove: U }) => /* @__PURE__ */ d.jsxs("div", { className: "inline-flex items-center gap-1 px-2 py-1 bg-primary-default-default text-white text-xs rounded-md", children: [
|
|
4760
4760
|
/* @__PURE__ */ d.jsx("span", { className: "truncate max-w-20", children: m(A) }),
|
|
4761
4761
|
/* @__PURE__ */ d.jsx(
|
|
4762
4762
|
"button",
|
|
4763
4763
|
{
|
|
4764
|
-
onMouseDown: (
|
|
4765
|
-
|
|
4764
|
+
onMouseDown: (G) => {
|
|
4765
|
+
G.preventDefault(), U(A, G);
|
|
4766
4766
|
},
|
|
4767
4767
|
className: "flex-shrink-0 hover:bg-primary-strong-default rounded-sm p-0.5 transition-colors",
|
|
4768
4768
|
type: "button",
|
|
@@ -4772,14 +4772,14 @@ const Sh = B.forwardRef(
|
|
|
4772
4772
|
)
|
|
4773
4773
|
] }), D = () => {
|
|
4774
4774
|
if ($.current) {
|
|
4775
|
-
const A = $.current.getBoundingClientRect(), U = 250,
|
|
4776
|
-
|
|
4775
|
+
const A = $.current.getBoundingClientRect(), U = 250, G = window.innerHeight - A.bottom, ie = A.top;
|
|
4776
|
+
G < U && ie > U ? H("up") : H("down");
|
|
4777
4777
|
}
|
|
4778
|
-
}, q = ({ option: A, isSelected: U, onSelect:
|
|
4778
|
+
}, q = ({ option: A, isSelected: U, onSelect: G, isMultiple: ie }) => /* @__PURE__ */ d.jsxs(
|
|
4779
4779
|
"div",
|
|
4780
4780
|
{
|
|
4781
4781
|
onMouseDown: (I) => {
|
|
4782
|
-
I.preventDefault(),
|
|
4782
|
+
I.preventDefault(), G(), I.stopPropagation();
|
|
4783
4783
|
},
|
|
4784
4784
|
className: M(
|
|
4785
4785
|
"px-3 py-2 cursor-pointer flex items-center transition-colors",
|
|
@@ -4809,13 +4809,13 @@ const Sh = B.forwardRef(
|
|
|
4809
4809
|
)) }) : A?.length === 1 ? /* @__PURE__ */ d.jsx("span", { children: m(A[0]) }) : /* @__PURE__ */ d.jsxs("span", { children: [
|
|
4810
4810
|
A?.length,
|
|
4811
4811
|
" seleccionados"
|
|
4812
|
-
] }),
|
|
4812
|
+
] }), V = h || q, J = g || z;
|
|
4813
4813
|
return /* @__PURE__ */ d.jsx(
|
|
4814
4814
|
"div",
|
|
4815
4815
|
{
|
|
4816
4816
|
className: M("relative bg-inherit select-none", f, !T && "w-full "),
|
|
4817
4817
|
ref: $,
|
|
4818
|
-
style:
|
|
4818
|
+
style: Y,
|
|
4819
4819
|
children: /* @__PURE__ */ d.jsxs("div", { className: M("relative bg-inherit", l), children: [
|
|
4820
4820
|
/* @__PURE__ */ d.jsxs(
|
|
4821
4821
|
"button",
|
|
@@ -4833,7 +4833,7 @@ const Sh = B.forwardRef(
|
|
|
4833
4833
|
O || C ? "border-primary-default-default border-2" : "border-neutral-default-default hover:border-neutral-strong-default",
|
|
4834
4834
|
v
|
|
4835
4835
|
),
|
|
4836
|
-
style:
|
|
4836
|
+
style: K(),
|
|
4837
4837
|
children: [
|
|
4838
4838
|
/* @__PURE__ */ d.jsx(
|
|
4839
4839
|
"label",
|
|
@@ -4887,12 +4887,12 @@ const Sh = B.forwardRef(
|
|
|
4887
4887
|
x
|
|
4888
4888
|
),
|
|
4889
4889
|
children: i.length === 0 ? /* @__PURE__ */ d.jsx("div", { className: "px-3 py-2 text-neutral-medium-default", children: u }) : i.map((A) => {
|
|
4890
|
-
const U = p(A),
|
|
4890
|
+
const U = p(A), G = t.includes(U);
|
|
4891
4891
|
return /* @__PURE__ */ d.jsx(
|
|
4892
|
-
|
|
4892
|
+
V,
|
|
4893
4893
|
{
|
|
4894
4894
|
option: A,
|
|
4895
|
-
isSelected:
|
|
4895
|
+
isSelected: G,
|
|
4896
4896
|
onSelect: () => te(A),
|
|
4897
4897
|
isMultiple: a
|
|
4898
4898
|
},
|
|
@@ -4955,9 +4955,9 @@ const Sh = B.forwardRef(
|
|
|
4955
4955
|
P.preventDefault(), H(P.clientX, P.clientY);
|
|
4956
4956
|
}, Z = (P) => {
|
|
4957
4957
|
$(P.clientX, P.clientY);
|
|
4958
|
-
},
|
|
4958
|
+
}, Y = () => {
|
|
4959
4959
|
R();
|
|
4960
|
-
},
|
|
4960
|
+
}, K = (P) => {
|
|
4961
4961
|
const D = P.touches[0];
|
|
4962
4962
|
H(D.clientX, D.clientY);
|
|
4963
4963
|
}, ne = (P) => {
|
|
@@ -5005,9 +5005,9 @@ const Sh = B.forwardRef(
|
|
|
5005
5005
|
},
|
|
5006
5006
|
onMouseDown: W,
|
|
5007
5007
|
onMouseMove: Z,
|
|
5008
|
-
onMouseUp:
|
|
5009
|
-
onMouseLeave:
|
|
5010
|
-
onTouchStart:
|
|
5008
|
+
onMouseUp: Y,
|
|
5009
|
+
onMouseLeave: Y,
|
|
5010
|
+
onTouchStart: K,
|
|
5011
5011
|
onTouchMove: ne,
|
|
5012
5012
|
onTouchEnd: te,
|
|
5013
5013
|
children: n.map((P, D) => /* @__PURE__ */ d.jsx(
|
|
@@ -5409,7 +5409,7 @@ var at = {
|
|
|
5409
5409
|
duration: 0.5,
|
|
5410
5410
|
overwrite: !1,
|
|
5411
5411
|
delay: 0
|
|
5412
|
-
}, aa, $e, ye, ct = 1e8,
|
|
5412
|
+
}, aa, $e, ye, ct = 1e8, ve = 1 / ct, Ai = Math.PI * 2, df = Ai / 4, pf = 0, Is = Math.sqrt, ff = Math.cos, mf = Math.sin, ze = function(e) {
|
|
5413
5413
|
return typeof e == "string";
|
|
5414
5414
|
}, je = function(e) {
|
|
5415
5415
|
return typeof e == "function";
|
|
@@ -5550,17 +5550,17 @@ var at = {
|
|
|
5550
5550
|
}, Fr = function(e, t) {
|
|
5551
5551
|
return (e - t._start) * t._ts + (t._ts >= 0 ? 0 : t._dirty ? t.totalDuration() : t._tDur);
|
|
5552
5552
|
}, Jr = function(e) {
|
|
5553
|
-
return e._end = Ae(e._start + (e._tDur / Math.abs(e._ts || e._rts ||
|
|
5553
|
+
return e._end = Ae(e._start + (e._tDur / Math.abs(e._ts || e._rts || ve) || 0));
|
|
5554
5554
|
}, Qr = function(e, t) {
|
|
5555
5555
|
var r = e._dp;
|
|
5556
5556
|
return r && r.smoothChildTiming && e._ts && (e._start = Ae(r._time - (e._ts > 0 ? t / e._ts : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts)), Jr(e), r._dirty || an(r, e)), e;
|
|
5557
5557
|
}, Ks = function(e, t) {
|
|
5558
5558
|
var r;
|
|
5559
|
-
if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (r = Fr(e.rawTime(), t), (!t._dur || or(0, t.totalDuration(), r) - t._tTime >
|
|
5559
|
+
if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (r = Fr(e.rawTime(), t), (!t._dur || or(0, t.totalDuration(), r) - t._tTime > ve) && t.render(r, !0)), an(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
|
|
5560
5560
|
if (e._dur < e.duration())
|
|
5561
5561
|
for (r = e; r._dp; )
|
|
5562
5562
|
r.rawTime() >= 0 && r.totalTime(r._tTime), r = r._dp;
|
|
5563
|
-
e._zTime = -
|
|
5563
|
+
e._zTime = -ve;
|
|
5564
5564
|
}
|
|
5565
5565
|
}, Tt = function(e, t, r, i) {
|
|
5566
5566
|
return t.parent && Wt(t), t._start = Ae((Rt(r) ? r : r || e !== Te ? lt(e, r, t) : e._time) + t._delay), t._end = Ae(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Gs(e, t, "_first", "_last", e._sort ? "_start" : 0), Fi(t) || (e._recent = t), i || Ks(e, t), e._ts < 0 && Qr(e, e._tTime), e;
|
|
@@ -5579,10 +5579,10 @@ var at = {
|
|
|
5579
5579
|
return t === "isFromStart" || t === "isStart";
|
|
5580
5580
|
}, Ef = function(e, t, r, i) {
|
|
5581
5581
|
var a = e.ratio, o = t < 0 || !t && (!e._start && Tf(e) && !(!e._initted && Fi(e)) || (e._ts < 0 || e._dp._ts < 0) && !Fi(e)) ? 0 : 1, s = e._rDelay, l = 0, c, u, p;
|
|
5582
|
-
if (s && e._repeat && (l = or(0, e._tDur, t), u = Sn(l, s), e._yoyo && u & 1 && (o = 1 - o), u !== Sn(e._tTime, s) && (a = 1 - o, e.vars.repeatRefresh && e._initted && e.invalidate())), o !== a || $e || i || e._zTime ===
|
|
5582
|
+
if (s && e._repeat && (l = or(0, e._tDur, t), u = Sn(l, s), e._yoyo && u & 1 && (o = 1 - o), u !== Sn(e._tTime, s) && (a = 1 - o, e.vars.repeatRefresh && e._initted && e.invalidate())), o !== a || $e || i || e._zTime === ve || !t && e._zTime) {
|
|
5583
5583
|
if (!e._initted && Qs(e, t, i, r, l))
|
|
5584
5584
|
return;
|
|
5585
|
-
for (p = e._zTime, e._zTime = t || (r ?
|
|
5585
|
+
for (p = e._zTime, e._zTime = t || (r ? ve : 0), r || (r = t && !p), e.ratio = o, e._from && (o = 1 - o), e._time = 0, e._tTime = l, c = e._pt; c; )
|
|
5586
5586
|
c.r(o, c.d), c = c._next;
|
|
5587
5587
|
t < 0 && Ii(e, t, r, !0), e._onUpdate && !r && it(e, "onUpdate"), l && e._repeat && !r && e.parent && it(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === o && (o && Wt(e, 1), !r && !$e && (it(e, o ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
|
|
5588
5588
|
} else e._zTime || (e._zTime = t);
|
|
@@ -6002,7 +6002,7 @@ pn("Back", gi("in"), gi("out"), gi());
|
|
|
6002
6002
|
re.SteppedEase = re.steps = ot.SteppedEase = {
|
|
6003
6003
|
config: function(e, t) {
|
|
6004
6004
|
e === void 0 && (e = 1);
|
|
6005
|
-
var r = 1 / e, i = e + (t ? 0 : 1), a = t ? 1 : 0, o = 1 -
|
|
6005
|
+
var r = 1 / e, i = e + (t ? 0 : 1), a = t ? 1 : 0, o = 1 - ve;
|
|
6006
6006
|
return function(s) {
|
|
6007
6007
|
return ((i * or(0, o, s) | 0) + a) * r;
|
|
6008
6008
|
};
|
|
@@ -6034,7 +6034,7 @@ var hl = function(e, t) {
|
|
|
6034
6034
|
a.parent._time !== a._start + (a._ts >= 0 ? a._tTime / a._ts : (a.totalDuration() - a._tTime) / -a._ts) && a.totalTime(a._tTime, !0), a = a.parent;
|
|
6035
6035
|
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && r < this._tDur || this._ts < 0 && r > 0 || !this._tDur && !r) && Tt(this._dp, this, this._start - this._delay);
|
|
6036
6036
|
}
|
|
6037
|
-
return (this._tTime !== r || !this._dur && !i || this._initted && Math.abs(this._zTime) ===
|
|
6037
|
+
return (this._tTime !== r || !this._dur && !i || this._initted && Math.abs(this._zTime) === ve || !r && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = r), Vs(this, r, i)), this;
|
|
6038
6038
|
}, e.time = function(r, i) {
|
|
6039
6039
|
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), r + Ka(this)) % (this._dur + this._rDelay) || (r ? this._dur : 0), i) : this._time;
|
|
6040
6040
|
}, e.totalProgress = function(r, i) {
|
|
@@ -6046,13 +6046,13 @@ var hl = function(e, t) {
|
|
|
6046
6046
|
return arguments.length ? this.totalTime(this._time + (r - 1) * a, i) : this._repeat ? Sn(this._tTime, a) + 1 : 1;
|
|
6047
6047
|
}, e.timeScale = function(r, i) {
|
|
6048
6048
|
if (!arguments.length)
|
|
6049
|
-
return this._rts === -
|
|
6049
|
+
return this._rts === -ve ? 0 : this._rts;
|
|
6050
6050
|
if (this._rts === r)
|
|
6051
6051
|
return this;
|
|
6052
6052
|
var a = this.parent && this._ts ? Fr(this.parent._time, this) : this._tTime;
|
|
6053
|
-
return this._rts = +r || 0, this._ts = this._ps || r === -
|
|
6053
|
+
return this._rts = +r || 0, this._ts = this._ps || r === -ve ? 0 : this._rts, this.totalTime(or(-Math.abs(this._delay), this.totalDuration(), a), i !== !1), Jr(this), wf(this);
|
|
6054
6054
|
}, e.paused = function(r) {
|
|
6055
|
-
return arguments.length ? (this._ps !== r && (this._ps = r, r ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (Cn(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !==
|
|
6055
|
+
return arguments.length ? (this._ps !== r && (this._ps = r, r ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (Cn(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== ve && (this._tTime -= ve)))), this) : this._ps;
|
|
6056
6056
|
}, e.startTime = function(r) {
|
|
6057
6057
|
if (arguments.length) {
|
|
6058
6058
|
this._start = r;
|
|
@@ -6086,7 +6086,7 @@ var hl = function(e, t) {
|
|
|
6086
6086
|
}, e.seek = function(r, i) {
|
|
6087
6087
|
return this.totalTime(lt(this, r), Ke(i));
|
|
6088
6088
|
}, e.restart = function(r, i) {
|
|
6089
|
-
return this.play().totalTime(r ? -this._delay : 0, Ke(i)), this._dur || (this._zTime = -
|
|
6089
|
+
return this.play().totalTime(r ? -this._delay : 0, Ke(i)), this._dur || (this._zTime = -ve), this;
|
|
6090
6090
|
}, e.play = function(r, i) {
|
|
6091
6091
|
return r != null && this.seek(r, i), this.reversed(!1).paused(!1);
|
|
6092
6092
|
}, e.reverse = function(r, i) {
|
|
@@ -6096,12 +6096,12 @@ var hl = function(e, t) {
|
|
|
6096
6096
|
}, e.resume = function() {
|
|
6097
6097
|
return this.paused(!1);
|
|
6098
6098
|
}, e.reversed = function(r) {
|
|
6099
|
-
return arguments.length ? (!!r !== this.reversed() && this.timeScale(-this._rts || (r ? -
|
|
6099
|
+
return arguments.length ? (!!r !== this.reversed() && this.timeScale(-this._rts || (r ? -ve : 0)), this) : this._rts < 0;
|
|
6100
6100
|
}, e.invalidate = function() {
|
|
6101
|
-
return this._initted = this._act = 0, this._zTime = -
|
|
6101
|
+
return this._initted = this._act = 0, this._zTime = -ve, this;
|
|
6102
6102
|
}, e.isActive = function() {
|
|
6103
6103
|
var r = this.parent || this._dp, i = this._start, a;
|
|
6104
|
-
return !!(!r || this._ts && this._initted && r.isActive() && (a = r.rawTime(!0)) >= i && a < this.endTime(!0) -
|
|
6104
|
+
return !!(!r || this._ts && this._initted && r.isActive() && (a = r.rawTime(!0)) >= i && a < this.endTime(!0) - ve);
|
|
6105
6105
|
}, e.eventCallback = function(r, i, a) {
|
|
6106
6106
|
var o = this.vars;
|
|
6107
6107
|
return arguments.length > 1 ? (i ? (o[r] = i, a && (o[r + "Params"] = a), r === "onUpdate" && (this._onUpdate = i)) : delete o[r], this) : o[r];
|
|
@@ -6133,7 +6133,7 @@ st(Qn.prototype, {
|
|
|
6133
6133
|
_ts: 1,
|
|
6134
6134
|
_dp: 0,
|
|
6135
6135
|
ratio: 0,
|
|
6136
|
-
_zTime: -
|
|
6136
|
+
_zTime: -ve,
|
|
6137
6137
|
_prom: 0,
|
|
6138
6138
|
_ps: !1,
|
|
6139
6139
|
_rts: 1
|
|
@@ -6184,7 +6184,7 @@ var Ve = /* @__PURE__ */ (function(n) {
|
|
|
6184
6184
|
if (h.parent !== this)
|
|
6185
6185
|
return this.render(i, a, o);
|
|
6186
6186
|
if (h.render(h._ts > 0 ? (m - h._start) * h._ts : (h._dirty ? h.totalDuration() : h._tDur) + (m - h._start) * h._ts, a, o), m !== this._time || !this._ts && !x) {
|
|
6187
|
-
_ = 0, g && (u += this._zTime = -
|
|
6187
|
+
_ = 0, g && (u += this._zTime = -ve);
|
|
6188
6188
|
break;
|
|
6189
6189
|
}
|
|
6190
6190
|
}
|
|
@@ -6197,14 +6197,14 @@ var Ve = /* @__PURE__ */ (function(n) {
|
|
|
6197
6197
|
if (h.parent !== this)
|
|
6198
6198
|
return this.render(i, a, o);
|
|
6199
6199
|
if (h.render(h._ts > 0 ? (L - h._start) * h._ts : (h._dirty ? h.totalDuration() : h._tDur) + (L - h._start) * h._ts, a, o || $e && fa(h)), m !== this._time || !this._ts && !x) {
|
|
6200
|
-
_ = 0, g && (u += this._zTime = L ? -
|
|
6200
|
+
_ = 0, g && (u += this._zTime = L ? -ve : ve);
|
|
6201
6201
|
break;
|
|
6202
6202
|
}
|
|
6203
6203
|
}
|
|
6204
6204
|
h = g;
|
|
6205
6205
|
}
|
|
6206
6206
|
}
|
|
6207
|
-
if (_ && !a && (this.pause(), _.render(m >= s ? 0 : -
|
|
6207
|
+
if (_ && !a && (this.pause(), _.render(m >= s ? 0 : -ve)._zTime = m >= s ? 1 : -1, this._ts))
|
|
6208
6208
|
return this._start = T, Jr(this), this.render(i, a, o);
|
|
6209
6209
|
this._onUpdate && !a && it(this, "onUpdate", !0), (u === l && this._tTime >= this.totalDuration() || !u && s) && (T === this._start || Math.abs(E) !== Math.abs(this._ts)) && (this._lock || ((i || !c) && (u === l && this._ts > 0 || !u && this._ts < 0) && Wt(this, 1), !a && !(i < 0 && !s) && (u || s || !l) && (it(this, u === l && i >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(u < l && this.timeScale() > 0) && this._prom())));
|
|
6210
6210
|
}
|
|
@@ -6264,7 +6264,7 @@ var Ve = /* @__PURE__ */ (function(n) {
|
|
|
6264
6264
|
immediateRender: !1,
|
|
6265
6265
|
time: s,
|
|
6266
6266
|
overwrite: "auto",
|
|
6267
|
-
duration: a.duration || Math.abs((s - (c && "time" in c ? c.time : o._time)) / o.timeScale()) ||
|
|
6267
|
+
duration: a.duration || Math.abs((s - (c && "time" in c ? c.time : o._time)) / o.timeScale()) || ve,
|
|
6268
6268
|
onStart: function() {
|
|
6269
6269
|
if (o.pause(), !h) {
|
|
6270
6270
|
var v = a.duration || Math.abs((s - (c && "time" in c ? c.time : o._time)) / o.timeScale());
|
|
@@ -6287,7 +6287,7 @@ var Ve = /* @__PURE__ */ (function(n) {
|
|
|
6287
6287
|
}, t.previousLabel = function(i) {
|
|
6288
6288
|
return i === void 0 && (i = this._time), Qa(this, lt(this, i), 1);
|
|
6289
6289
|
}, t.currentLabel = function(i) {
|
|
6290
|
-
return arguments.length ? this.seek(i, !0) : this.previousLabel(this._time +
|
|
6290
|
+
return arguments.length ? this.seek(i, !0) : this.previousLabel(this._time + ve);
|
|
6291
6291
|
}, t.shiftChildren = function(i, a, o) {
|
|
6292
6292
|
o === void 0 && (o = 0);
|
|
6293
6293
|
for (var s = this._first, l = this.labels, c; s; )
|
|
@@ -6364,9 +6364,9 @@ var $f = function(e, t, r, i, a, o, s) {
|
|
|
6364
6364
|
c[s._props[u]] = l;
|
|
6365
6365
|
return s;
|
|
6366
6366
|
}, It, Bi, ha = function n(e, t, r) {
|
|
6367
|
-
var i = e.vars, a = i.ease, o = i.startAt, s = i.immediateRender, l = i.lazy, c = i.onUpdate, u = i.runBackwards, p = i.yoyoEase, m = i.keyframes, h = i.autoRevert, g = e._dur, f = e._startAt, v = e._targets, x = e.parent, _ = x && x.data === "nested" ? x.vars.targets : v, E = e._overwrite === "auto" && !aa, T = e.timeline, y, O, S, C, j, L, H, $, R, W, Z,
|
|
6367
|
+
var i = e.vars, a = i.ease, o = i.startAt, s = i.immediateRender, l = i.lazy, c = i.onUpdate, u = i.runBackwards, p = i.yoyoEase, m = i.keyframes, h = i.autoRevert, g = e._dur, f = e._startAt, v = e._targets, x = e.parent, _ = x && x.data === "nested" ? x.vars.targets : v, E = e._overwrite === "auto" && !aa, T = e.timeline, y, O, S, C, j, L, H, $, R, W, Z, Y, K;
|
|
6368
6368
|
if (T && (!m || !a) && (a = "none"), e._ease = on(a, Tn.ease), e._yEase = p ? pl(on(p === !0 ? a : p, Tn.ease)) : 0, p && e._yoyo && !e._repeat && (p = e._yEase, e._yEase = e._ease, e._ease = p), e._from = !T && !!i.runBackwards, !T || m && !i.stagger) {
|
|
6369
|
-
if ($ = v[0] ? rn(v[0]).harness : 0,
|
|
6369
|
+
if ($ = v[0] ? rn(v[0]).harness : 0, Y = $ && i[$.prop], y = Ir(i, ua), f && (f._zTime < 0 && f.progress(1), t < 0 && u && s && !h ? f.render(-1, !0) : f.revert(u && g ? Er : vf), f._lazy = 0), o) {
|
|
6370
6370
|
if (Wt(e._startAt = De.set(v, st({
|
|
6371
6371
|
data: "isStart",
|
|
6372
6372
|
overwrite: !1,
|
|
@@ -6394,22 +6394,22 @@ var $f = function(e, t, r, i, a, o, s) {
|
|
|
6394
6394
|
stagger: 0,
|
|
6395
6395
|
parent: x
|
|
6396
6396
|
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
6397
|
-
}, y),
|
|
6398
|
-
n(e._startAt,
|
|
6397
|
+
}, y), Y && (S[$.prop] = Y), Wt(e._startAt = De.set(v, S)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && ($e ? e._startAt.revert(Er) : e._startAt.render(-1, !0)), e._zTime = t, !s)
|
|
6398
|
+
n(e._startAt, ve, ve);
|
|
6399
6399
|
else if (!t)
|
|
6400
6400
|
return;
|
|
6401
6401
|
}
|
|
6402
6402
|
for (e._pt = e._ptCache = 0, l = g && Ke(l) || l && !g, O = 0; O < v.length; O++) {
|
|
6403
|
-
if (j = v[O], H = j._gsap || pa(v)[O]._gsap, e._ptLookup[O] = W = {}, Mi[H.id] && $t.length && Mr(), Z = _ === v ? O : _.indexOf(j), $ && (R = new $()).init(j,
|
|
6403
|
+
if (j = v[O], H = j._gsap || pa(v)[O]._gsap, e._ptLookup[O] = W = {}, Mi[H.id] && $t.length && Mr(), Z = _ === v ? O : _.indexOf(j), $ && (R = new $()).init(j, Y || y, e, Z, _) !== !1 && (e._pt = C = new Qe(e._pt, j, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(ne) {
|
|
6404
6404
|
W[ne] = C;
|
|
6405
|
-
}), R.priority && (L = 1)), !$ ||
|
|
6405
|
+
}), R.priority && (L = 1)), !$ || Y)
|
|
6406
6406
|
for (S in y)
|
|
6407
6407
|
nt[S] && (R = vl(S, y, e, Z, j, _)) ? R.priority && (L = 1) : W[S] = C = ma.call(e, j, S, "get", y[S], Z, _, 0, i.stringFilter);
|
|
6408
|
-
e._op && e._op[O] && e.kill(j, e._op[O]), E && e._pt && (It = e, Te.killTweensOf(j, W, e.globalTime(t)),
|
|
6408
|
+
e._op && e._op[O] && e.kill(j, e._op[O]), E && e._pt && (It = e, Te.killTweensOf(j, W, e.globalTime(t)), K = !e.parent, It = 0), e._pt && l && (Mi[H.id] = 1);
|
|
6409
6409
|
}
|
|
6410
6410
|
L && _l(e), e._onInit && e._onInit(e);
|
|
6411
6411
|
}
|
|
6412
|
-
e._onUpdate = c, e._initted = (!e._op || e._pt) && !
|
|
6412
|
+
e._onUpdate = c, e._initted = (!e._op || e._pt) && !K, m && t <= 0 && T.render(ct, !0, !0);
|
|
6413
6413
|
}, Hf = function(e, t, r, i, a, o, s, l) {
|
|
6414
6414
|
var c = (e._pt && e._ptCache || (e._ptCache = {}))[t], u, p, m, h;
|
|
6415
6415
|
if (!c)
|
|
@@ -6480,16 +6480,16 @@ var De = /* @__PURE__ */ (function(n) {
|
|
|
6480
6480
|
})), T._ease = on(g.ease || i.ease || "none");
|
|
6481
6481
|
var $ = 0, R, W, Z;
|
|
6482
6482
|
if (He(g))
|
|
6483
|
-
g.forEach(function(
|
|
6484
|
-
return T.to(E,
|
|
6483
|
+
g.forEach(function(Y) {
|
|
6484
|
+
return T.to(E, Y, ">");
|
|
6485
6485
|
}), T.duration();
|
|
6486
6486
|
else {
|
|
6487
6487
|
O = {};
|
|
6488
6488
|
for (C in g)
|
|
6489
6489
|
C === "ease" || C === "easeEach" || Uf(C, g[C], O, g.easeEach);
|
|
6490
6490
|
for (C in O)
|
|
6491
|
-
for (R = O[C].sort(function(
|
|
6492
|
-
return
|
|
6491
|
+
for (R = O[C].sort(function(Y, K) {
|
|
6492
|
+
return Y.t - K.t;
|
|
6493
6493
|
}), $ = 0, y = 0; y < R.length; y++)
|
|
6494
6494
|
W = R[y], Z = {
|
|
6495
6495
|
ease: W.e,
|
|
@@ -6503,11 +6503,11 @@ var De = /* @__PURE__ */ (function(n) {
|
|
|
6503
6503
|
c || s.duration(c = T.duration());
|
|
6504
6504
|
} else
|
|
6505
6505
|
s.timeline = 0;
|
|
6506
|
-
return h === !0 && !aa && (It = Ot(s), Te.killTweensOf(E), It = 0), Tt(_, Ot(s), a), i.reversed && s.reverse(), i.paused && s.paused(!0), (p || !c && !g && s._start === Ae(_._time) && Ke(p) && _f(Ot(s)) && _.data !== "nested") && (s._tTime = -
|
|
6506
|
+
return h === !0 && !aa && (It = Ot(s), Te.killTweensOf(E), It = 0), Tt(_, Ot(s), a), i.reversed && s.reverse(), i.paused && s.paused(!0), (p || !c && !g && s._start === Ae(_._time) && Ke(p) && _f(Ot(s)) && _.data !== "nested") && (s._tTime = -ve, s.render(Math.max(0, -u) || 0)), v && Js(Ot(s), v), s;
|
|
6507
6507
|
}
|
|
6508
6508
|
var t = e.prototype;
|
|
6509
6509
|
return t.render = function(i, a, o) {
|
|
6510
|
-
var s = this._time, l = this._tDur, c = this._dur, u = i < 0, p = i > l -
|
|
6510
|
+
var s = this._time, l = this._tDur, c = this._dur, u = i < 0, p = i > l - ve && !u ? l : i < ve ? 0 : i, m, h, g, f, v, x, _, E, T;
|
|
6511
6511
|
if (!c)
|
|
6512
6512
|
Ef(this, i, a, o);
|
|
6513
6513
|
else if (p !== this._tTime || !i || o || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== u || this._lazy) {
|
|
@@ -7258,8 +7258,8 @@ var no, Ft, wn, ya, nn, ro, ba, rm = function() {
|
|
|
7258
7258
|
var r = e._gsap || new hl(e);
|
|
7259
7259
|
if ("x" in r && !t && !r.uncache)
|
|
7260
7260
|
return r;
|
|
7261
|
-
var i = e.style, a = r.scaleX < 0, o = "px", s = "deg", l = getComputedStyle(e), c = dt(e, et) || "0", u, p, m, h, g, f, v, x, _, E, T, y, O, S, C, j, L, H, $, R, W, Z,
|
|
7262
|
-
return u = p = m = f = v = x = _ = E = T = 0, h = g = 1, r.svg = !!(e.getCTM && Pl(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (i[Ee] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[Ee] !== "none" ? l[Ee] : "")), i.scale = i.rotate = i.translate = "none"), S = _a(e, r.svg), r.svg && (r.uncache ? (ne = e.getBBox(), c = r.xOrigin - ne.x + "px " + (r.yOrigin - ne.y) + "px",
|
|
7261
|
+
var i = e.style, a = r.scaleX < 0, o = "px", s = "deg", l = getComputedStyle(e), c = dt(e, et) || "0", u, p, m, h, g, f, v, x, _, E, T, y, O, S, C, j, L, H, $, R, W, Z, Y, K, ne, te, w, k, P, D, q, z;
|
|
7262
|
+
return u = p = m = f = v = x = _ = E = T = 0, h = g = 1, r.svg = !!(e.getCTM && Pl(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (i[Ee] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[Ee] !== "none" ? l[Ee] : "")), i.scale = i.rotate = i.translate = "none"), S = _a(e, r.svg), r.svg && (r.uncache ? (ne = e.getBBox(), c = r.xOrigin - ne.x + "px " + (r.yOrigin - ne.y) + "px", K = "") : K = !t && e.getAttribute("data-svg-origin"), Vi(e, K || c, !!K || r.originIsAbsolute, r.smooth !== !1, S)), y = r.xOrigin || 0, O = r.yOrigin || 0, S !== er && (H = S[0], $ = S[1], R = S[2], W = S[3], u = Z = S[4], p = Y = S[5], S.length === 6 ? (h = Math.sqrt(H * H + $ * $), g = Math.sqrt(W * W + R * R), f = H || $ ? vn($, H) * en : 0, _ = R || W ? vn(R, W) * en + f : 0, _ && (g *= Math.abs(Math.cos(_ * _n))), r.svg && (u -= y - (y * H + O * R), p -= O - (y * $ + O * W))) : (z = S[6], D = S[7], w = S[8], k = S[9], P = S[10], q = S[11], u = S[12], p = S[13], m = S[14], C = vn(z, P), v = C * en, C && (j = Math.cos(-C), L = Math.sin(-C), K = Z * j + w * L, ne = Y * j + k * L, te = z * j + P * L, w = Z * -L + w * j, k = Y * -L + k * j, P = z * -L + P * j, q = D * -L + q * j, Z = K, Y = ne, z = te), C = vn(-R, P), x = C * en, C && (j = Math.cos(-C), L = Math.sin(-C), K = H * j - w * L, ne = $ * j - k * L, te = R * j - P * L, q = W * L + q * j, H = K, $ = ne, R = te), C = vn($, H), f = C * en, C && (j = Math.cos(C), L = Math.sin(C), K = H * j + $ * L, ne = Z * j + Y * L, $ = $ * j - H * L, Y = Y * j - Z * L, H = K, Z = ne), v && Math.abs(v) + Math.abs(f) > 359.9 && (v = f = 0, x = 180 - x), h = Pe(Math.sqrt(H * H + $ * $ + R * R)), g = Pe(Math.sqrt(Y * Y + z * z)), C = vn(Z, Y), _ = Math.abs(C) > 2e-4 ? C * en : 0, T = q ? 1 / (q < 0 ? -q : q) : 0), r.svg && (K = e.getAttribute("transform"), r.forceCSS = e.setAttribute("transform", "") || !Dl(dt(e, Ee)), K && e.setAttribute("transform", K))), Math.abs(_) > 90 && Math.abs(_) < 270 && (a ? (h *= -1, _ += f <= 0 ? 180 : -180, f += f <= 0 ? 180 : -180) : (g *= -1, _ += _ <= 0 ? 180 : -180)), t = t || r.uncache, r.x = u - ((r.xPercent = u && (!t && r.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetWidth * r.xPercent / 100 : 0) + o, r.y = p - ((r.yPercent = p && (!t && r.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-p) ? -50 : 0))) ? e.offsetHeight * r.yPercent / 100 : 0) + o, r.z = m + o, r.scaleX = Pe(h), r.scaleY = Pe(g), r.rotation = Pe(f) + s, r.rotationX = Pe(v) + s, r.rotationY = Pe(x) + s, r.skewX = _ + s, r.skewY = E + s, r.transformPerspective = T + o, (r.zOrigin = parseFloat(c.split(" ")[2]) || !t && r.zOrigin || 0) && (i[et] = $r(c)), r.xOffset = r.yOffset = 0, r.force3D = at.force3D, r.renderTransform = r.svg ? _m : Ol ? Al : wm, r.uncache = 0, r;
|
|
7263
7263
|
}, $r = function(e) {
|
|
7264
7264
|
return (e = e.split(" "))[0] + " " + e[1];
|
|
7265
7265
|
}, bi = function(e, t, r) {
|
|
@@ -7858,7 +7858,7 @@ const Sm = (n, e) => {
|
|
|
7858
7858
|
});
|
|
7859
7859
|
}, qm = Pn(
|
|
7860
7860
|
({ children: n, isCollapsed: e = !1, className: t = "" }, r) => {
|
|
7861
|
-
const i = Me(null), { registerPrimarySidebar: a } = qs(), o =
|
|
7861
|
+
const i = Me(null), { registerPrimarySidebar: a } = qs(), o = he((s) => {
|
|
7862
7862
|
i.current = s, typeof r == "function" ? r(s) : r && (r.current = s);
|
|
7863
7863
|
}, [r]);
|
|
7864
7864
|
return ht(() => {
|
|
@@ -8230,23 +8230,23 @@ var e0 = b.createContext({}), zl = b.forwardRef((n, e) => {
|
|
|
8230
8230
|
var t = n, { value: r, onChange: i, maxLength: a, textAlign: o = "left", pattern: s, placeholder: l, inputMode: c = "numeric", onComplete: u, pushPasswordManagerStrategy: p = "increase-width", pasteTransformer: m, containerClassName: h, noScriptCSSFallback: g = t0, render: f, children: v } = t, x = Vm(t, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), _, E, T, y, O;
|
|
8231
8231
|
let [S, C] = b.useState(typeof x.defaultValue == "string" ? x.defaultValue : ""), j = r ?? S, L = Xm(j), H = b.useCallback((N) => {
|
|
8232
8232
|
i?.(N), C(N);
|
|
8233
|
-
}, [i]), $ = b.useMemo(() => s ? typeof s == "string" ? new RegExp(s) : s : null, [s]), R = b.useRef(null), W = b.useRef(null), Z = b.useRef({ value: j, onChange: H, isIOS: typeof window < "u" && ((E = (_ = window?.CSS) == null ? void 0 : _.supports) == null ? void 0 : E.call(_, "-webkit-touch-callout", "none")) }),
|
|
8233
|
+
}, [i]), $ = b.useMemo(() => s ? typeof s == "string" ? new RegExp(s) : s : null, [s]), R = b.useRef(null), W = b.useRef(null), Z = b.useRef({ value: j, onChange: H, isIOS: typeof window < "u" && ((E = (_ = window?.CSS) == null ? void 0 : _.supports) == null ? void 0 : E.call(_, "-webkit-touch-callout", "none")) }), Y = b.useRef({ prev: [(T = R.current) == null ? void 0 : T.selectionStart, (y = R.current) == null ? void 0 : y.selectionEnd, (O = R.current) == null ? void 0 : O.selectionDirection] });
|
|
8234
8234
|
b.useImperativeHandle(e, () => R.current, []), b.useEffect(() => {
|
|
8235
8235
|
let N = R.current, ee = W.current;
|
|
8236
8236
|
if (!N || !ee) return;
|
|
8237
|
-
Z.current.value !== N.value && Z.current.onChange(N.value),
|
|
8237
|
+
Z.current.value !== N.value && Z.current.onChange(N.value), Y.current.prev = [N.selectionStart, N.selectionEnd, N.selectionDirection];
|
|
8238
8238
|
function Ce() {
|
|
8239
8239
|
if (document.activeElement !== N) {
|
|
8240
8240
|
P(null), q(null);
|
|
8241
8241
|
return;
|
|
8242
8242
|
}
|
|
8243
|
-
let le = N.selectionStart, xe = N.selectionEnd, jt = N.selectionDirection, We = N.maxLength, Ue = N.value, F =
|
|
8243
|
+
let le = N.selectionStart, xe = N.selectionEnd, jt = N.selectionDirection, We = N.maxLength, Ue = N.value, F = Y.current.prev, X = -1, se = -1, pe;
|
|
8244
8244
|
if (Ue.length !== 0 && le !== null && xe !== null) {
|
|
8245
8245
|
let Vt = le === xe, ft = le === Ue.length && Ue.length < We;
|
|
8246
8246
|
if (Vt && !ft) {
|
|
8247
8247
|
let Ye = le;
|
|
8248
|
-
if (Ye === 0)
|
|
8249
|
-
else if (Ye === We)
|
|
8248
|
+
if (Ye === 0) X = 0, se = 1, pe = "forward";
|
|
8249
|
+
else if (Ye === We) X = Ye - 1, se = Ye, pe = "backward";
|
|
8250
8250
|
else if (We > 1 && Ue.length > 1) {
|
|
8251
8251
|
let xt = 0;
|
|
8252
8252
|
if (F[0] !== null && F[1] !== null) {
|
|
@@ -8254,13 +8254,13 @@ var e0 = b.createContext({}), zl = b.forwardRef((n, e) => {
|
|
|
8254
8254
|
let Yt = F[0] === F[1] && F[0] < We;
|
|
8255
8255
|
pe === "backward" && !Yt && (xt = -1);
|
|
8256
8256
|
}
|
|
8257
|
-
|
|
8257
|
+
X = xt + Ye, se = xt + Ye + 1;
|
|
8258
8258
|
}
|
|
8259
8259
|
}
|
|
8260
|
-
|
|
8260
|
+
X !== -1 && se !== -1 && X !== se && R.current.setSelectionRange(X, se, pe);
|
|
8261
8261
|
}
|
|
8262
|
-
let Oe =
|
|
8263
|
-
P(Oe), q(gt),
|
|
8262
|
+
let Oe = X !== -1 ? X : le, gt = se !== -1 ? se : xe, pt = pe ?? jt;
|
|
8263
|
+
P(Oe), q(gt), Y.current.prev = [Oe, gt, pt];
|
|
8264
8264
|
}
|
|
8265
8265
|
if (document.addEventListener("selectionchange", Ce, { capture: !0 }), Ce(), document.activeElement === N && w(!0), !document.getElementById("input-otp-style")) {
|
|
8266
8266
|
let le = document.createElement("style");
|
|
@@ -8278,18 +8278,18 @@ var e0 = b.createContext({}), zl = b.forwardRef((n, e) => {
|
|
|
8278
8278
|
document.removeEventListener("selectionchange", Ce, { capture: !0 }), Fe.disconnect();
|
|
8279
8279
|
};
|
|
8280
8280
|
}, []);
|
|
8281
|
-
let [
|
|
8281
|
+
let [K, ne] = b.useState(!1), [te, w] = b.useState(!1), [k, P] = b.useState(null), [D, q] = b.useState(null);
|
|
8282
8282
|
b.useEffect(() => {
|
|
8283
8283
|
Ym(() => {
|
|
8284
8284
|
var N, ee, Ce, be;
|
|
8285
8285
|
(N = R.current) == null || N.dispatchEvent(new Event("input"));
|
|
8286
8286
|
let Fe = (ee = R.current) == null ? void 0 : ee.selectionStart, le = (Ce = R.current) == null ? void 0 : Ce.selectionEnd, xe = (be = R.current) == null ? void 0 : be.selectionDirection;
|
|
8287
|
-
Fe !== null && le !== null && (P(Fe), q(le),
|
|
8287
|
+
Fe !== null && le !== null && (P(Fe), q(le), Y.current.prev = [Fe, le, xe]);
|
|
8288
8288
|
});
|
|
8289
8289
|
}, [j, te]), b.useEffect(() => {
|
|
8290
8290
|
L !== void 0 && j !== L && L.length < a && j.length === a && u?.(j);
|
|
8291
8291
|
}, [a, u, L, j]);
|
|
8292
|
-
let z = Qm({ containerRef: W, inputRef: R, pushPasswordManagerStrategy: p, isFocused: te }),
|
|
8292
|
+
let z = Qm({ containerRef: W, inputRef: R, pushPasswordManagerStrategy: p, isFocused: te }), V = b.useCallback((N) => {
|
|
8293
8293
|
let ee = N.currentTarget.value.slice(0, a);
|
|
8294
8294
|
if (ee.length > 0 && $ && !$.test(ee)) {
|
|
8295
8295
|
N.preventDefault();
|
|
@@ -8314,10 +8314,10 @@ var e0 = b.createContext({}), zl = b.forwardRef((n, e) => {
|
|
|
8314
8314
|
be.value = We, H(We);
|
|
8315
8315
|
let Ue = Math.min(We.length, a - 1), F = We.length;
|
|
8316
8316
|
be.setSelectionRange(Ue, F), P(Ue), q(F);
|
|
8317
|
-
}, [a, H, $, j]), U = b.useMemo(() => ({ position: "relative", cursor: x.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [x.disabled]),
|
|
8317
|
+
}, [a, H, $, j]), U = b.useMemo(() => ({ position: "relative", cursor: x.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [x.disabled]), G = b.useMemo(() => ({ position: "absolute", inset: 0, width: z.willPushPWMBadge ? `calc(100% + ${z.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: z.willPushPWMBadge ? `inset(0 ${z.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: o, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [z.PWM_BADGE_SPACE_WIDTH, z.willPushPWMBadge, o]), ie = b.useMemo(() => b.createElement("input", Zm(Um({ autoComplete: x.autoComplete || "one-time-code" }, x), { "data-input-otp": !0, "data-input-otp-placeholder-shown": j.length === 0 || void 0, "data-input-otp-mss": k, "data-input-otp-mse": D, inputMode: c, pattern: $?.source, "aria-placeholder": l, style: G, maxLength: a, value: j, ref: R, onPaste: (N) => {
|
|
8318
8318
|
var ee;
|
|
8319
8319
|
A(N), (ee = x.onPaste) == null || ee.call(x, N);
|
|
8320
|
-
}, onChange:
|
|
8320
|
+
}, onChange: V, onMouseOver: (N) => {
|
|
8321
8321
|
var ee;
|
|
8322
8322
|
ne(!0), (ee = x.onMouseOver) == null || ee.call(x, N);
|
|
8323
8323
|
}, onMouseLeave: (N) => {
|
|
@@ -8329,11 +8329,11 @@ var e0 = b.createContext({}), zl = b.forwardRef((n, e) => {
|
|
|
8329
8329
|
}, onBlur: (N) => {
|
|
8330
8330
|
var ee;
|
|
8331
8331
|
w(!1), (ee = x.onBlur) == null || ee.call(x, N);
|
|
8332
|
-
} })), [
|
|
8332
|
+
} })), [V, J, A, c, G, a, D, k, x, $?.source, j]), I = b.useMemo(() => ({ slots: Array.from({ length: a }).map((N, ee) => {
|
|
8333
8333
|
var Ce;
|
|
8334
8334
|
let be = te && k !== null && D !== null && (k === D && ee === k || ee >= k && ee < D), Fe = j[ee] !== void 0 ? j[ee] : null, le = j[0] !== void 0 ? null : (Ce = l?.[ee]) != null ? Ce : null;
|
|
8335
8335
|
return { char: Fe, placeholderChar: le, isActive: be, hasFakeCaret: be && Fe === null };
|
|
8336
|
-
}), isFocused: te, isHovering: !x.disabled &&
|
|
8336
|
+
}), isFocused: te, isHovering: !x.disabled && K }), [te, K, a, D, k, x.disabled, j]), Ie = b.useMemo(() => f ? f(I) : b.createElement(e0.Provider, { value: I }, v), [v, I, f]);
|
|
8337
8337
|
return b.createElement(b.Fragment, null, g !== null && b.createElement("noscript", null, b.createElement("style", null, g)), b.createElement("div", { ref: W, "data-input-otp-container": !0, style: U, className: h }, Ie, b.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, ie)));
|
|
8338
8338
|
});
|
|
8339
8339
|
zl.displayName = "Input";
|
|
@@ -8425,25 +8425,25 @@ const Bh = ({
|
|
|
8425
8425
|
isOpen: () => n.current?.isOpen ?? !1
|
|
8426
8426
|
};
|
|
8427
8427
|
}, Wh = () => {
|
|
8428
|
-
const n = Me(null), e =
|
|
8428
|
+
const n = Me(null), e = he(() => {
|
|
8429
8429
|
n.current?.open();
|
|
8430
|
-
}, []), t =
|
|
8430
|
+
}, []), t = he(() => {
|
|
8431
8431
|
n.current?.close();
|
|
8432
8432
|
}, []);
|
|
8433
8433
|
return {
|
|
8434
|
-
isOpen:
|
|
8434
|
+
isOpen: he(() => n.current?.isOpen ?? !1, []),
|
|
8435
8435
|
open: e,
|
|
8436
8436
|
close: t,
|
|
8437
8437
|
drawerRef: n
|
|
8438
8438
|
};
|
|
8439
8439
|
}, Uh = () => {
|
|
8440
|
-
const n = Me(null), e =
|
|
8440
|
+
const n = Me(null), e = he(() => {
|
|
8441
8441
|
n.current?.open();
|
|
8442
|
-
}, []), t =
|
|
8442
|
+
}, []), t = he(() => {
|
|
8443
8443
|
n.current?.close();
|
|
8444
8444
|
}, []);
|
|
8445
8445
|
return {
|
|
8446
|
-
isOpen:
|
|
8446
|
+
isOpen: he(() => n.current?.isOpen ?? !1, []),
|
|
8447
8447
|
open: e,
|
|
8448
8448
|
close: t,
|
|
8449
8449
|
drawerRef: n
|
|
@@ -8592,7 +8592,7 @@ function r0() {
|
|
|
8592
8592
|
}
|
|
8593
8593
|
}
|
|
8594
8594
|
}
|
|
8595
|
-
var y = l, O = c, S = s, C = o, j = e, L = u, H = r, $ = g, R = h, W = t, Z = a,
|
|
8595
|
+
var y = l, O = c, S = s, C = o, j = e, L = u, H = r, $ = g, R = h, W = t, Z = a, Y = i, K = p, ne = !1;
|
|
8596
8596
|
function te(I) {
|
|
8597
8597
|
return ne || (ne = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(I) || T(I) === l;
|
|
8598
8598
|
}
|
|
@@ -8614,7 +8614,7 @@ function r0() {
|
|
|
8614
8614
|
function z(I) {
|
|
8615
8615
|
return T(I) === r;
|
|
8616
8616
|
}
|
|
8617
|
-
function
|
|
8617
|
+
function V(I) {
|
|
8618
8618
|
return T(I) === g;
|
|
8619
8619
|
}
|
|
8620
8620
|
function J(I) {
|
|
@@ -8626,13 +8626,13 @@ function r0() {
|
|
|
8626
8626
|
function U(I) {
|
|
8627
8627
|
return T(I) === a;
|
|
8628
8628
|
}
|
|
8629
|
-
function
|
|
8629
|
+
function G(I) {
|
|
8630
8630
|
return T(I) === i;
|
|
8631
8631
|
}
|
|
8632
8632
|
function ie(I) {
|
|
8633
8633
|
return T(I) === p;
|
|
8634
8634
|
}
|
|
8635
|
-
ue.AsyncMode = y, ue.ConcurrentMode = O, ue.ContextConsumer = S, ue.ContextProvider = C, ue.Element = j, ue.ForwardRef = L, ue.Fragment = H, ue.Lazy = $, ue.Memo = R, ue.Portal = W, ue.Profiler = Z, ue.StrictMode =
|
|
8635
|
+
ue.AsyncMode = y, ue.ConcurrentMode = O, ue.ContextConsumer = S, ue.ContextProvider = C, ue.Element = j, ue.ForwardRef = L, ue.Fragment = H, ue.Lazy = $, ue.Memo = R, ue.Portal = W, ue.Profiler = Z, ue.StrictMode = Y, ue.Suspense = K, ue.isAsyncMode = te, ue.isConcurrentMode = w, ue.isContextConsumer = k, ue.isContextProvider = P, ue.isElement = D, ue.isForwardRef = q, ue.isFragment = z, ue.isLazy = V, ue.isMemo = J, ue.isPortal = A, ue.isProfiler = U, ue.isStrictMode = G, ue.isSuspense = ie, ue.isValidElementType = E, ue.typeOf = T;
|
|
8636
8636
|
})()), ue;
|
|
8637
8637
|
}
|
|
8638
8638
|
var xo;
|
|
@@ -8805,8 +8805,8 @@ function o0() {
|
|
|
8805
8805
|
function v(w) {
|
|
8806
8806
|
if (process.env.NODE_ENV !== "production")
|
|
8807
8807
|
var k = {}, P = 0;
|
|
8808
|
-
function D(z,
|
|
8809
|
-
if (A = A || m,
|
|
8808
|
+
function D(z, V, J, A, U, G, ie) {
|
|
8809
|
+
if (A = A || m, G = G || J, ie !== t) {
|
|
8810
8810
|
if (l) {
|
|
8811
8811
|
var I = new Error(
|
|
8812
8812
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -8816,22 +8816,22 @@ function o0() {
|
|
|
8816
8816
|
var Ie = A + ":" + J;
|
|
8817
8817
|
!k[Ie] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
8818
8818
|
P < 3 && (a(
|
|
8819
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
8819
|
+
"You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + A + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
8820
8820
|
), k[Ie] = !0, P++);
|
|
8821
8821
|
}
|
|
8822
8822
|
}
|
|
8823
|
-
return
|
|
8823
|
+
return V[J] == null ? z ? V[J] === null ? new f("The " + U + " `" + G + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new f("The " + U + " `" + G + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : w(V, J, A, U, G);
|
|
8824
8824
|
}
|
|
8825
8825
|
var q = D.bind(null, !1);
|
|
8826
8826
|
return q.isRequired = D.bind(null, !0), q;
|
|
8827
8827
|
}
|
|
8828
8828
|
function x(w) {
|
|
8829
|
-
function k(P, D, q, z,
|
|
8830
|
-
var A = P[D], U =
|
|
8829
|
+
function k(P, D, q, z, V, J) {
|
|
8830
|
+
var A = P[D], U = Y(A);
|
|
8831
8831
|
if (U !== w) {
|
|
8832
|
-
var
|
|
8832
|
+
var G = K(A);
|
|
8833
8833
|
return new f(
|
|
8834
|
-
"Invalid " + z + " `" +
|
|
8834
|
+
"Invalid " + z + " `" + V + "` of type " + ("`" + G + "` supplied to `" + q + "`, expected ") + ("`" + w + "`."),
|
|
8835
8835
|
{ expectedType: w }
|
|
8836
8836
|
);
|
|
8837
8837
|
}
|
|
@@ -8843,18 +8843,18 @@ function o0() {
|
|
|
8843
8843
|
return v(o);
|
|
8844
8844
|
}
|
|
8845
8845
|
function E(w) {
|
|
8846
|
-
function k(P, D, q, z,
|
|
8846
|
+
function k(P, D, q, z, V) {
|
|
8847
8847
|
if (typeof w != "function")
|
|
8848
|
-
return new f("Property `" +
|
|
8848
|
+
return new f("Property `" + V + "` of component `" + q + "` has invalid PropType notation inside arrayOf.");
|
|
8849
8849
|
var J = P[D];
|
|
8850
8850
|
if (!Array.isArray(J)) {
|
|
8851
|
-
var A =
|
|
8852
|
-
return new f("Invalid " + z + " `" +
|
|
8851
|
+
var A = Y(J);
|
|
8852
|
+
return new f("Invalid " + z + " `" + V + "` of type " + ("`" + A + "` supplied to `" + q + "`, expected an array."));
|
|
8853
8853
|
}
|
|
8854
8854
|
for (var U = 0; U < J.length; U++) {
|
|
8855
|
-
var
|
|
8856
|
-
if (
|
|
8857
|
-
return
|
|
8855
|
+
var G = w(J, U, q, z, V + "[" + U + "]", t);
|
|
8856
|
+
if (G instanceof Error)
|
|
8857
|
+
return G;
|
|
8858
8858
|
}
|
|
8859
8859
|
return null;
|
|
8860
8860
|
}
|
|
@@ -8862,9 +8862,9 @@ function o0() {
|
|
|
8862
8862
|
}
|
|
8863
8863
|
function T() {
|
|
8864
8864
|
function w(k, P, D, q, z) {
|
|
8865
|
-
var
|
|
8866
|
-
if (!s(
|
|
8867
|
-
var J = V
|
|
8865
|
+
var V = k[P];
|
|
8866
|
+
if (!s(V)) {
|
|
8867
|
+
var J = Y(V);
|
|
8868
8868
|
return new f("Invalid " + q + " `" + z + "` of type " + ("`" + J + "` supplied to `" + D + "`, expected a single ReactElement."));
|
|
8869
8869
|
}
|
|
8870
8870
|
return null;
|
|
@@ -8873,9 +8873,9 @@ function o0() {
|
|
|
8873
8873
|
}
|
|
8874
8874
|
function y() {
|
|
8875
8875
|
function w(k, P, D, q, z) {
|
|
8876
|
-
var
|
|
8877
|
-
if (!n.isValidElementType(
|
|
8878
|
-
var J = V
|
|
8876
|
+
var V = k[P];
|
|
8877
|
+
if (!n.isValidElementType(V)) {
|
|
8878
|
+
var J = Y(V);
|
|
8879
8879
|
return new f("Invalid " + q + " `" + z + "` of type " + ("`" + J + "` supplied to `" + D + "`, expected a single ReactElement type."));
|
|
8880
8880
|
}
|
|
8881
8881
|
return null;
|
|
@@ -8883,10 +8883,10 @@ function o0() {
|
|
|
8883
8883
|
return v(w);
|
|
8884
8884
|
}
|
|
8885
8885
|
function O(w) {
|
|
8886
|
-
function k(P, D, q, z,
|
|
8886
|
+
function k(P, D, q, z, V) {
|
|
8887
8887
|
if (!(P[D] instanceof w)) {
|
|
8888
8888
|
var J = w.name || m, A = te(P[D]);
|
|
8889
|
-
return new f("Invalid " + z + " `" +
|
|
8889
|
+
return new f("Invalid " + z + " `" + V + "` of type " + ("`" + A + "` supplied to `" + q + "`, expected ") + ("instance of `" + J + "`."));
|
|
8890
8890
|
}
|
|
8891
8891
|
return null;
|
|
8892
8892
|
}
|
|
@@ -8897,30 +8897,30 @@ function o0() {
|
|
|
8897
8897
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
8898
8898
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
8899
8899
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
8900
|
-
function k(P, D, q, z,
|
|
8900
|
+
function k(P, D, q, z, V) {
|
|
8901
8901
|
for (var J = P[D], A = 0; A < w.length; A++)
|
|
8902
8902
|
if (g(J, w[A]))
|
|
8903
8903
|
return null;
|
|
8904
8904
|
var U = JSON.stringify(w, function(ie, I) {
|
|
8905
|
-
var Ie =
|
|
8905
|
+
var Ie = K(I);
|
|
8906
8906
|
return Ie === "symbol" ? String(I) : I;
|
|
8907
8907
|
});
|
|
8908
|
-
return new f("Invalid " + z + " `" +
|
|
8908
|
+
return new f("Invalid " + z + " `" + V + "` of value `" + String(J) + "` " + ("supplied to `" + q + "`, expected one of " + U + "."));
|
|
8909
8909
|
}
|
|
8910
8910
|
return v(k);
|
|
8911
8911
|
}
|
|
8912
8912
|
function C(w) {
|
|
8913
|
-
function k(P, D, q, z,
|
|
8913
|
+
function k(P, D, q, z, V) {
|
|
8914
8914
|
if (typeof w != "function")
|
|
8915
|
-
return new f("Property `" +
|
|
8916
|
-
var J = P[D], A =
|
|
8915
|
+
return new f("Property `" + V + "` of component `" + q + "` has invalid PropType notation inside objectOf.");
|
|
8916
|
+
var J = P[D], A = Y(J);
|
|
8917
8917
|
if (A !== "object")
|
|
8918
|
-
return new f("Invalid " + z + " `" +
|
|
8918
|
+
return new f("Invalid " + z + " `" + V + "` of type " + ("`" + A + "` supplied to `" + q + "`, expected an object."));
|
|
8919
8919
|
for (var U in J)
|
|
8920
8920
|
if (r(J, U)) {
|
|
8921
|
-
var
|
|
8922
|
-
if (
|
|
8923
|
-
return
|
|
8921
|
+
var G = w(J, U, q, z, V + "." + U, t);
|
|
8922
|
+
if (G instanceof Error)
|
|
8923
|
+
return G;
|
|
8924
8924
|
}
|
|
8925
8925
|
return null;
|
|
8926
8926
|
}
|
|
@@ -8936,15 +8936,15 @@ function o0() {
|
|
|
8936
8936
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(P) + " at index " + k + "."
|
|
8937
8937
|
), o;
|
|
8938
8938
|
}
|
|
8939
|
-
function D(q, z,
|
|
8940
|
-
for (var U = [],
|
|
8941
|
-
var ie = w[
|
|
8939
|
+
function D(q, z, V, J, A) {
|
|
8940
|
+
for (var U = [], G = 0; G < w.length; G++) {
|
|
8941
|
+
var ie = w[G], I = ie(q, z, V, J, A, t);
|
|
8942
8942
|
if (I == null)
|
|
8943
8943
|
return null;
|
|
8944
8944
|
I.data && r(I.data, "expectedType") && U.push(I.data.expectedType);
|
|
8945
8945
|
}
|
|
8946
8946
|
var Ie = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
|
|
8947
|
-
return new f("Invalid " + J + " `" + A + "` supplied to " + ("`" +
|
|
8947
|
+
return new f("Invalid " + J + " `" + A + "` supplied to " + ("`" + V + "`" + Ie + "."));
|
|
8948
8948
|
}
|
|
8949
8949
|
return v(D);
|
|
8950
8950
|
}
|
|
@@ -8960,15 +8960,15 @@ function o0() {
|
|
|
8960
8960
|
);
|
|
8961
8961
|
}
|
|
8962
8962
|
function $(w) {
|
|
8963
|
-
function k(P, D, q, z,
|
|
8964
|
-
var J = P[D], A =
|
|
8963
|
+
function k(P, D, q, z, V) {
|
|
8964
|
+
var J = P[D], A = Y(J);
|
|
8965
8965
|
if (A !== "object")
|
|
8966
|
-
return new f("Invalid " + z + " `" +
|
|
8966
|
+
return new f("Invalid " + z + " `" + V + "` of type `" + A + "` " + ("supplied to `" + q + "`, expected `object`."));
|
|
8967
8967
|
for (var U in w) {
|
|
8968
|
-
var
|
|
8969
|
-
if (typeof
|
|
8970
|
-
return H(q, z,
|
|
8971
|
-
var ie =
|
|
8968
|
+
var G = w[U];
|
|
8969
|
+
if (typeof G != "function")
|
|
8970
|
+
return H(q, z, V, U, K(G));
|
|
8971
|
+
var ie = G(J, U, q, z, V + "." + U, t);
|
|
8972
8972
|
if (ie)
|
|
8973
8973
|
return ie;
|
|
8974
8974
|
}
|
|
@@ -8977,21 +8977,21 @@ function o0() {
|
|
|
8977
8977
|
return v(k);
|
|
8978
8978
|
}
|
|
8979
8979
|
function R(w) {
|
|
8980
|
-
function k(P, D, q, z,
|
|
8981
|
-
var J = P[D], A =
|
|
8980
|
+
function k(P, D, q, z, V) {
|
|
8981
|
+
var J = P[D], A = Y(J);
|
|
8982
8982
|
if (A !== "object")
|
|
8983
|
-
return new f("Invalid " + z + " `" +
|
|
8983
|
+
return new f("Invalid " + z + " `" + V + "` of type `" + A + "` " + ("supplied to `" + q + "`, expected `object`."));
|
|
8984
8984
|
var U = e({}, P[D], w);
|
|
8985
|
-
for (var
|
|
8986
|
-
var ie = w[
|
|
8987
|
-
if (r(w,
|
|
8988
|
-
return H(q, z,
|
|
8985
|
+
for (var G in U) {
|
|
8986
|
+
var ie = w[G];
|
|
8987
|
+
if (r(w, G) && typeof ie != "function")
|
|
8988
|
+
return H(q, z, V, G, K(ie));
|
|
8989
8989
|
if (!ie)
|
|
8990
8990
|
return new f(
|
|
8991
|
-
"Invalid " + z + " `" +
|
|
8991
|
+
"Invalid " + z + " `" + V + "` key `" + G + "` supplied to `" + q + "`.\nBad object: " + JSON.stringify(P[D], null, " ") + `
|
|
8992
8992
|
Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
8993
8993
|
);
|
|
8994
|
-
var I = ie(J,
|
|
8994
|
+
var I = ie(J, G, q, z, V + "." + G, t);
|
|
8995
8995
|
if (I)
|
|
8996
8996
|
return I;
|
|
8997
8997
|
}
|
|
@@ -9035,14 +9035,14 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
9035
9035
|
function Z(w, k) {
|
|
9036
9036
|
return w === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
|
|
9037
9037
|
}
|
|
9038
|
-
function
|
|
9038
|
+
function Y(w) {
|
|
9039
9039
|
var k = typeof w;
|
|
9040
9040
|
return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : Z(k, w) ? "symbol" : k;
|
|
9041
9041
|
}
|
|
9042
|
-
function
|
|
9042
|
+
function K(w) {
|
|
9043
9043
|
if (typeof w > "u" || w === null)
|
|
9044
9044
|
return "" + w;
|
|
9045
|
-
var k =
|
|
9045
|
+
var k = Y(w);
|
|
9046
9046
|
if (k === "object") {
|
|
9047
9047
|
if (w instanceof Date)
|
|
9048
9048
|
return "date";
|
|
@@ -9052,7 +9052,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
9052
9052
|
return k;
|
|
9053
9053
|
}
|
|
9054
9054
|
function ne(w) {
|
|
9055
|
-
var k =
|
|
9055
|
+
var k = K(w);
|
|
9056
9056
|
switch (k) {
|
|
9057
9057
|
case "array":
|
|
9058
9058
|
case "object":
|
|
@@ -11010,11 +11010,11 @@ function Ql() {
|
|
|
11010
11010
|
return typeof v == "function" ? v : Io;
|
|
11011
11011
|
}, [v]), R = Qt(function() {
|
|
11012
11012
|
return typeof f == "function" ? f : Io;
|
|
11013
|
-
}, [f]), W = Me(null), Z = Me(null),
|
|
11013
|
+
}, [f]), W = Me(null), Z = Me(null), Y = tc(ih, Qi), K = Oi(Y, 2), ne = K[0], te = K[1], w = ne.isFocused, k = ne.isFileDialogActive, P = Me(typeof window < "u" && window.isSecureContext && x && $0()), D = function() {
|
|
11014
11014
|
!P.current && k && setTimeout(function() {
|
|
11015
11015
|
if (Z.current) {
|
|
11016
|
-
var
|
|
11017
|
-
|
|
11016
|
+
var X = Z.current.files;
|
|
11017
|
+
X.length || (te({
|
|
11018
11018
|
type: "closeDialog"
|
|
11019
11019
|
}), R());
|
|
11020
11020
|
}
|
|
@@ -11025,8 +11025,8 @@ function Ql() {
|
|
|
11025
11025
|
window.removeEventListener("focus", D, !1);
|
|
11026
11026
|
};
|
|
11027
11027
|
}, [Z, k, R, P]);
|
|
11028
|
-
var q = Me([]), z = function(
|
|
11029
|
-
W.current && W.current.contains(
|
|
11028
|
+
var q = Me([]), z = function(X) {
|
|
11029
|
+
W.current && W.current.contains(X.target) || (X.preventDefault(), q.current = []);
|
|
11030
11030
|
};
|
|
11031
11031
|
ht(function() {
|
|
11032
11032
|
return E && (document.addEventListener("dragover", qo, !1), document.addEventListener("drop", z, !1)), function() {
|
|
@@ -11036,13 +11036,13 @@ function Ql() {
|
|
|
11036
11036
|
return !r && _ && W.current && W.current.focus(), function() {
|
|
11037
11037
|
};
|
|
11038
11038
|
}, [W, _, r]);
|
|
11039
|
-
var
|
|
11039
|
+
var V = he(function(F) {
|
|
11040
11040
|
C ? C(F) : console.error(F);
|
|
11041
|
-
}, [C]), J =
|
|
11042
|
-
F.preventDefault(), F.persist(), xe(F), q.current = [].concat(G0(q.current), [F.target]), wr(F) && Promise.resolve(i(F)).then(function(
|
|
11041
|
+
}, [C]), J = he(function(F) {
|
|
11042
|
+
F.preventDefault(), F.persist(), xe(F), q.current = [].concat(G0(q.current), [F.target]), wr(F) && Promise.resolve(i(F)).then(function(X) {
|
|
11043
11043
|
if (!(Ur(F) && !S)) {
|
|
11044
|
-
var se =
|
|
11045
|
-
files:
|
|
11044
|
+
var se = X.length, pe = se > 0 && I0({
|
|
11045
|
+
files: X,
|
|
11046
11046
|
accept: L,
|
|
11047
11047
|
minSize: o,
|
|
11048
11048
|
maxSize: a,
|
|
@@ -11057,30 +11057,30 @@ function Ql() {
|
|
|
11057
11057
|
type: "setDraggedFiles"
|
|
11058
11058
|
}), c && c(F);
|
|
11059
11059
|
}
|
|
11060
|
-
}).catch(function(
|
|
11061
|
-
return
|
|
11060
|
+
}).catch(function(X) {
|
|
11061
|
+
return V(X);
|
|
11062
11062
|
});
|
|
11063
|
-
}, [i, c,
|
|
11063
|
+
}, [i, c, V, S, L, o, a, s, l, j]), A = he(function(F) {
|
|
11064
11064
|
F.preventDefault(), F.persist(), xe(F);
|
|
11065
|
-
var
|
|
11066
|
-
if (
|
|
11065
|
+
var X = wr(F);
|
|
11066
|
+
if (X && F.dataTransfer)
|
|
11067
11067
|
try {
|
|
11068
11068
|
F.dataTransfer.dropEffect = "copy";
|
|
11069
11069
|
} catch {
|
|
11070
11070
|
}
|
|
11071
|
-
return
|
|
11072
|
-
}, [p, S]), U =
|
|
11071
|
+
return X && p && p(F), !1;
|
|
11072
|
+
}, [p, S]), U = he(function(F) {
|
|
11073
11073
|
F.preventDefault(), F.persist(), xe(F);
|
|
11074
|
-
var
|
|
11074
|
+
var X = q.current.filter(function(pe) {
|
|
11075
11075
|
return W.current && W.current.contains(pe);
|
|
11076
|
-
}), se =
|
|
11077
|
-
se !== -1 &&
|
|
11076
|
+
}), se = X.indexOf(F.target);
|
|
11077
|
+
se !== -1 && X.splice(se, 1), q.current = X, !(X.length > 0) && (te({
|
|
11078
11078
|
type: "setDraggedFiles",
|
|
11079
11079
|
isDragActive: !1,
|
|
11080
11080
|
isDragAccept: !1,
|
|
11081
11081
|
isDragReject: !1
|
|
11082
11082
|
}), wr(F) && u && u(F));
|
|
11083
|
-
}, [W, u, S]),
|
|
11083
|
+
}, [W, u, S]), G = he(function(F, X) {
|
|
11084
11084
|
var se = [], pe = [];
|
|
11085
11085
|
F.forEach(function(Oe) {
|
|
11086
11086
|
var gt = Vl(Oe, L), pt = Oi(gt, 2), Vt = pt[0], ft = pt[1], Ye = Yl(Oe, o, a), xt = Oi(Ye, 2), Yt = xt[0], Rn = xt[1], Dn = j ? j(Oe) : null;
|
|
@@ -11105,16 +11105,16 @@ function Ql() {
|
|
|
11105
11105
|
fileRejections: pe,
|
|
11106
11106
|
isDragReject: pe.length > 0,
|
|
11107
11107
|
type: "setFiles"
|
|
11108
|
-
}), m && m(se, pe,
|
|
11109
|
-
}, [te, s, L, o, a, l, m, h, g, j]), ie =
|
|
11110
|
-
F.preventDefault(), F.persist(), xe(F), q.current = [], wr(F) && Promise.resolve(i(F)).then(function(
|
|
11111
|
-
Ur(F) && !S ||
|
|
11112
|
-
}).catch(function(
|
|
11113
|
-
return
|
|
11108
|
+
}), m && m(se, pe, X), pe.length > 0 && g && g(pe, X), se.length > 0 && h && h(se, X);
|
|
11109
|
+
}, [te, s, L, o, a, l, m, h, g, j]), ie = he(function(F) {
|
|
11110
|
+
F.preventDefault(), F.persist(), xe(F), q.current = [], wr(F) && Promise.resolve(i(F)).then(function(X) {
|
|
11111
|
+
Ur(F) && !S || G(X, F);
|
|
11112
|
+
}).catch(function(X) {
|
|
11113
|
+
return V(X);
|
|
11114
11114
|
}), te({
|
|
11115
11115
|
type: "reset"
|
|
11116
11116
|
});
|
|
11117
|
-
}, [i,
|
|
11117
|
+
}, [i, G, V, S]), I = he(function() {
|
|
11118
11118
|
if (P.current) {
|
|
11119
11119
|
te({
|
|
11120
11120
|
type: "openDialog"
|
|
@@ -11123,45 +11123,45 @@ function Ql() {
|
|
|
11123
11123
|
multiple: s,
|
|
11124
11124
|
types: H
|
|
11125
11125
|
};
|
|
11126
|
-
window.showOpenFilePicker(F).then(function(
|
|
11127
|
-
return i(
|
|
11128
|
-
}).then(function(
|
|
11129
|
-
|
|
11126
|
+
window.showOpenFilePicker(F).then(function(X) {
|
|
11127
|
+
return i(X);
|
|
11128
|
+
}).then(function(X) {
|
|
11129
|
+
G(X, null), te({
|
|
11130
11130
|
type: "closeDialog"
|
|
11131
11131
|
});
|
|
11132
|
-
}).catch(function(
|
|
11133
|
-
W0(
|
|
11132
|
+
}).catch(function(X) {
|
|
11133
|
+
W0(X) ? (R(X), te({
|
|
11134
11134
|
type: "closeDialog"
|
|
11135
|
-
})) : U0(
|
|
11135
|
+
})) : U0(X) ? (P.current = !1, Z.current ? (Z.current.value = null, Z.current.click()) : V(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : V(X);
|
|
11136
11136
|
});
|
|
11137
11137
|
return;
|
|
11138
11138
|
}
|
|
11139
11139
|
Z.current && (te({
|
|
11140
11140
|
type: "openDialog"
|
|
11141
11141
|
}), $(), Z.current.value = null, Z.current.click());
|
|
11142
|
-
}, [te, $, R, x,
|
|
11142
|
+
}, [te, $, R, x, G, V, H, s]), Ie = he(function(F) {
|
|
11143
11143
|
!W.current || !W.current.isEqualNode(F.target) || (F.key === " " || F.key === "Enter" || F.keyCode === 32 || F.keyCode === 13) && (F.preventDefault(), I());
|
|
11144
|
-
}, [W, I]), N =
|
|
11144
|
+
}, [W, I]), N = he(function() {
|
|
11145
11145
|
te({
|
|
11146
11146
|
type: "focus"
|
|
11147
11147
|
});
|
|
11148
|
-
}, []), ee =
|
|
11148
|
+
}, []), ee = he(function() {
|
|
11149
11149
|
te({
|
|
11150
11150
|
type: "blur"
|
|
11151
11151
|
});
|
|
11152
|
-
}, []), Ce =
|
|
11152
|
+
}, []), Ce = he(function() {
|
|
11153
11153
|
T || (z0() ? setTimeout(I, 0) : I());
|
|
11154
|
-
}, [T, I]), be = function(
|
|
11155
|
-
return r ? null :
|
|
11156
|
-
}, Fe = function(
|
|
11157
|
-
return y ? null : be(
|
|
11158
|
-
}, le = function(
|
|
11159
|
-
return O ? null : be(
|
|
11160
|
-
}, xe = function(
|
|
11161
|
-
S &&
|
|
11154
|
+
}, [T, I]), be = function(X) {
|
|
11155
|
+
return r ? null : X;
|
|
11156
|
+
}, Fe = function(X) {
|
|
11157
|
+
return y ? null : be(X);
|
|
11158
|
+
}, le = function(X) {
|
|
11159
|
+
return O ? null : be(X);
|
|
11160
|
+
}, xe = function(X) {
|
|
11161
|
+
S && X.stopPropagation();
|
|
11162
11162
|
}, jt = Qt(function() {
|
|
11163
11163
|
return function() {
|
|
11164
|
-
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
11164
|
+
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, X = F.refKey, se = X === void 0 ? "ref" : X, pe = F.role, Oe = F.onKeyDown, gt = F.onFocus, pt = F.onBlur, Vt = F.onClick, ft = F.onDragEnter, Ye = F.onDragOver, xt = F.onDragLeave, Yt = F.onDrop, Rn = Zr(F, Y0);
|
|
11165
11165
|
return we(we(Ji({
|
|
11166
11166
|
onKeyDown: Fe(bt(Oe, Ie)),
|
|
11167
11167
|
onFocus: Fe(bt(gt, N)),
|
|
@@ -11176,11 +11176,11 @@ function Ql() {
|
|
|
11176
11176
|
tabIndex: 0
|
|
11177
11177
|
} : {}), Rn);
|
|
11178
11178
|
};
|
|
11179
|
-
}, [W, Ie, N, ee, Ce, J, A, U, ie, y, O, r]), We =
|
|
11179
|
+
}, [W, Ie, N, ee, Ce, J, A, U, ie, y, O, r]), We = he(function(F) {
|
|
11180
11180
|
F.stopPropagation();
|
|
11181
11181
|
}, []), Ue = Qt(function() {
|
|
11182
11182
|
return function() {
|
|
11183
|
-
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
11183
|
+
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, X = F.refKey, se = X === void 0 ? "ref" : X, pe = F.onChange, Oe = F.onClick, gt = Zr(F, X0), pt = Ji({
|
|
11184
11184
|
accept: L,
|
|
11185
11185
|
multiple: s,
|
|
11186
11186
|
type: "file",
|
|
@@ -11264,7 +11264,7 @@ const ah = B.forwardRef(
|
|
|
11264
11264
|
maxFiles: c = 1,
|
|
11265
11265
|
...u
|
|
11266
11266
|
}, p) => {
|
|
11267
|
-
const m =
|
|
11267
|
+
const m = he((E, T) => {
|
|
11268
11268
|
E.length > 0 && n?.(E), T.length > 0 && e?.(T);
|
|
11269
11269
|
}, [n, e]), {
|
|
11270
11270
|
getRootProps: h,
|