prometeo-design-system 1.5.0 → 1.5.2
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.
|
@@ -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
|
};
|
|
@@ -300,12 +300,20 @@ function dc({
|
|
|
300
300
|
sizeFallback: t = "md",
|
|
301
301
|
fallbackText: r = "Matias tejerina"
|
|
302
302
|
}) {
|
|
303
|
-
const [i, a] = Se(!1), o = n && n.trim() !== "" && !i, s = (
|
|
303
|
+
const [i, a] = Se(!1), o = n && n.trim() !== "" && !i, s = (u) => u.split(" ").map((p) => p.charAt(0)).join("").toUpperCase().slice(0, 2), l = {
|
|
304
|
+
xxs: "w-8.5 h-8.5",
|
|
304
305
|
xs: "w-10 h-10",
|
|
305
306
|
sm: "w-16 h-16",
|
|
306
307
|
md: "w-24 h-24",
|
|
307
308
|
lg: "w-32 h-32",
|
|
308
309
|
xl: "w-40 h-40"
|
|
310
|
+
}, c = {
|
|
311
|
+
xxs: "text-xs",
|
|
312
|
+
xs: "text-sm",
|
|
313
|
+
sm: "text-lg",
|
|
314
|
+
md: "text-2xl",
|
|
315
|
+
lg: "text-3xl",
|
|
316
|
+
xl: "text-4xl"
|
|
309
317
|
};
|
|
310
318
|
return /* @__PURE__ */ d.jsx(d.Fragment, { children: o ? /* @__PURE__ */ d.jsx(
|
|
311
319
|
"img",
|
|
@@ -326,7 +334,7 @@ function dc({
|
|
|
326
334
|
animate: { opacity: 1, scale: 1 },
|
|
327
335
|
exit: { opacity: 0, scale: 0.9 },
|
|
328
336
|
transition: { duration: 0.3 },
|
|
329
|
-
children: /* @__PURE__ */ d.jsx("span", { className: M("text-[#312C85] font-semibold
|
|
337
|
+
children: /* @__PURE__ */ d.jsx("span", { className: M("text-[#312C85] font-semibold", c[t]), children: s(r) })
|
|
330
338
|
},
|
|
331
339
|
"initials"
|
|
332
340
|
) });
|
|
@@ -3203,15 +3211,15 @@ function mp({ activeSnapPointProp: n, setActiveSnapPointProp: e, snapPoints: t,
|
|
|
3203
3211
|
E(x[t.length - 1]);
|
|
3204
3212
|
return;
|
|
3205
3213
|
}
|
|
3206
|
-
const Z = x?.reduce((
|
|
3207
|
-
if (j > Cs && Math.abs(S) <
|
|
3208
|
-
const
|
|
3209
|
-
if (
|
|
3214
|
+
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;
|
|
3215
|
+
if (j > Cs && Math.abs(S) < Y * 0.4) {
|
|
3216
|
+
const K = W ? 1 : -1;
|
|
3217
|
+
if (K > 0 && g && t) {
|
|
3210
3218
|
E(x[t.length - 1]);
|
|
3211
3219
|
return;
|
|
3212
3220
|
}
|
|
3213
|
-
if (R &&
|
|
3214
|
-
E(x[f +
|
|
3221
|
+
if (R && K < 0 && L && C(), f === null) return;
|
|
3222
|
+
E(x[f + K]);
|
|
3215
3223
|
return;
|
|
3216
3224
|
}
|
|
3217
3225
|
E(Z);
|
|
@@ -3357,7 +3365,7 @@ function gp({ isOpen: n, modal: e, nested: t, hasBeenOpened: r, preventScrollRes
|
|
|
3357
3365
|
}
|
|
3358
3366
|
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
3367
|
var R, W;
|
|
3360
|
-
const [Z = !1,
|
|
3368
|
+
const [Z = !1, Y] = Ps({
|
|
3361
3369
|
defaultProp: y,
|
|
3362
3370
|
prop: n,
|
|
3363
3371
|
onChange: (Q) => {
|
|
@@ -3367,9 +3375,9 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3367
3375
|
document.body.style.pointerEvents = "auto";
|
|
3368
3376
|
}), Q || (document.body.style.pointerEvents = "auto");
|
|
3369
3377
|
}
|
|
3370
|
-
}), [
|
|
3378
|
+
}), [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
3379
|
a && Q === Ue.length - 1 && (q.current = /* @__PURE__ */ new Date());
|
|
3372
|
-
}, []), { activeSnapPoint: le, activeSnapPointIndex: xe, setActiveSnapPoint: jt, onRelease: We, snapPointsOffset: Ue, onDrag: F, shouldFade:
|
|
3380
|
+
}, []), { activeSnapPoint: le, activeSnapPointIndex: xe, setActiveSnapPoint: jt, onRelease: We, snapPointsOffset: Ue, onDrag: F, shouldFade: X, getPercentageDragged: se } = mp({
|
|
3373
3381
|
snapPoints: a,
|
|
3374
3382
|
activeSnapPointProp: h,
|
|
3375
3383
|
setActiveSnapPointProp: g,
|
|
@@ -3382,13 +3390,13 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3382
3390
|
snapToSequentialPoint: S
|
|
3383
3391
|
});
|
|
3384
3392
|
rp({
|
|
3385
|
-
isDisabled: !Z || te || !v || k || !
|
|
3393
|
+
isDisabled: !Z || te || !v || k || !K || !j || !O
|
|
3386
3394
|
});
|
|
3387
3395
|
const { restorePositionSetting: pe } = gp({
|
|
3388
3396
|
isOpen: Z,
|
|
3389
3397
|
modal: v,
|
|
3390
3398
|
nested: _ ?? !1,
|
|
3391
|
-
hasBeenOpened:
|
|
3399
|
+
hasBeenOpened: K,
|
|
3392
3400
|
preventScrollRestoration: C,
|
|
3393
3401
|
noBodyStyles: E
|
|
3394
3402
|
});
|
|
@@ -3396,15 +3404,15 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3396
3404
|
return (window.innerWidth - Di) / window.innerWidth;
|
|
3397
3405
|
}
|
|
3398
3406
|
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 = ((
|
|
3407
|
+
var de, ge;
|
|
3408
|
+
!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
3409
|
once: !0
|
|
3402
|
-
}), Q.target.setPointerCapture(Q.pointerId),
|
|
3410
|
+
}), Q.target.setPointerCapture(Q.pointerId), G.current = Re(T) ? Q.pageY : Q.pageX);
|
|
3403
3411
|
}
|
|
3404
3412
|
function pt(Q, de) {
|
|
3405
|
-
var
|
|
3413
|
+
var ge;
|
|
3406
3414
|
let ae = Q;
|
|
3407
|
-
const ke = (
|
|
3415
|
+
const ke = (ge = window.getSelection()) == null ? void 0 : ge.toString(), Xe = N.current ? hr(N.current, T) : null, Ze = /* @__PURE__ */ new Date();
|
|
3408
3416
|
if (ae.tagName === "SELECT" || ae.hasAttribute("data-vaul-no-drag") || ae.closest("[data-vaul-no-drag]"))
|
|
3409
3417
|
return !1;
|
|
3410
3418
|
if (T === "right" || T === "left")
|
|
@@ -3430,9 +3438,9 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3430
3438
|
}
|
|
3431
3439
|
function Vt(Q) {
|
|
3432
3440
|
if (N.current && te) {
|
|
3433
|
-
const de = T === "bottom" || T === "right" ? 1 : -1,
|
|
3441
|
+
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
3442
|
if (ke && xe === 0) return;
|
|
3435
|
-
const Xe = Math.abs(
|
|
3443
|
+
const Xe = Math.abs(ge), Ze = document.querySelector("[data-vaul-drawer-wrapper]"), Nt = T === "bottom" || T === "top" ? ee.current : Ce.current;
|
|
3436
3444
|
let mt = Xe / Nt;
|
|
3437
3445
|
const Xt = se(Xe, ae);
|
|
3438
3446
|
if (Xt !== null && (mt = Xt), ke && mt >= 1 || !A.current && !pt(Q.target, ae)) return;
|
|
@@ -3441,16 +3449,16 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3441
3449
|
}), qe(D.current, {
|
|
3442
3450
|
transition: "none"
|
|
3443
3451
|
}), a && F({
|
|
3444
|
-
draggedDistance:
|
|
3452
|
+
draggedDistance: ge
|
|
3445
3453
|
}), ae && !a) {
|
|
3446
|
-
const yt = cp(
|
|
3454
|
+
const yt = cp(ge), sr = Math.min(yt * -1, 0) * de;
|
|
3447
3455
|
qe(N.current, {
|
|
3448
3456
|
transform: Re(T) ? `translate3d(0, ${sr}px, 0)` : `translate3d(${sr}px, 0, 0)`
|
|
3449
3457
|
});
|
|
3450
3458
|
return;
|
|
3451
3459
|
}
|
|
3452
3460
|
const qt = 1 - mt;
|
|
3453
|
-
if ((
|
|
3461
|
+
if ((X || m && xe === m - 1) && (r?.(Q, mt), qe(D.current, {
|
|
3454
3462
|
opacity: `${qt}`,
|
|
3455
3463
|
transition: "none"
|
|
3456
3464
|
}, !0)), Ze && D.current && o) {
|
|
@@ -3477,8 +3485,8 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3477
3485
|
var Q;
|
|
3478
3486
|
function de() {
|
|
3479
3487
|
if (!N.current || !j) return;
|
|
3480
|
-
const
|
|
3481
|
-
if (Ri(
|
|
3488
|
+
const ge = document.activeElement;
|
|
3489
|
+
if (Ri(ge) || ie.current) {
|
|
3482
3490
|
var ae;
|
|
3483
3491
|
const ke = ((ae = window.visualViewport) == null ? void 0 : ae.height) || 0, Xe = window.innerHeight;
|
|
3484
3492
|
let Ze = Xe - ke;
|
|
@@ -3498,8 +3506,8 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3498
3506
|
}
|
|
3499
3507
|
}
|
|
3500
3508
|
return (Q = window.visualViewport) == null || Q.addEventListener("resize", de), () => {
|
|
3501
|
-
var
|
|
3502
|
-
return (
|
|
3509
|
+
var ge;
|
|
3510
|
+
return (ge = window.visualViewport) == null ? void 0 : ge.removeEventListener("resize", de);
|
|
3503
3511
|
};
|
|
3504
3512
|
}, [
|
|
3505
3513
|
xe,
|
|
@@ -3507,7 +3515,7 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3507
3515
|
Ue
|
|
3508
3516
|
]);
|
|
3509
3517
|
function ft(Q) {
|
|
3510
|
-
xt(), x?.(), Q ||
|
|
3518
|
+
xt(), x?.(), Q || Y(!1), setTimeout(() => {
|
|
3511
3519
|
a && jt(a[0]);
|
|
3512
3520
|
}, _e.DURATION * 1e3);
|
|
3513
3521
|
}
|
|
@@ -3536,14 +3544,14 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3536
3544
|
}, !0);
|
|
3537
3545
|
}
|
|
3538
3546
|
function xt() {
|
|
3539
|
-
!te || !N.current || (N.current.classList.remove(pi), A.current = !1, w(!1),
|
|
3547
|
+
!te || !N.current || (N.current.classList.remove(pi), A.current = !1, w(!1), V.current = /* @__PURE__ */ new Date());
|
|
3540
3548
|
}
|
|
3541
3549
|
function Yt(Q) {
|
|
3542
3550
|
if (!te || !N.current) return;
|
|
3543
|
-
N.current.classList.remove(pi), A.current = !1, w(!1),
|
|
3551
|
+
N.current.classList.remove(pi), A.current = !1, w(!1), V.current = /* @__PURE__ */ new Date();
|
|
3544
3552
|
const de = hr(N.current, T);
|
|
3545
3553
|
if (!Q || !pt(Q.target, !1) || !de || Number.isNaN(de) || z.current === null) return;
|
|
3546
|
-
const
|
|
3554
|
+
const ge = V.current.getTime() - z.current.getTime(), ae = G.current - (Re(T) ? Q.pageY : Q.pageX), ke = Math.abs(ae) / ge;
|
|
3547
3555
|
if (ke > 0.05 && (P(!0), setTimeout(() => {
|
|
3548
3556
|
P(!1);
|
|
3549
3557
|
}, 200)), a) {
|
|
@@ -3581,10 +3589,10 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3581
3589
|
Z
|
|
3582
3590
|
]);
|
|
3583
3591
|
function Rn(Q) {
|
|
3584
|
-
const de = Q ? (window.innerWidth - Gt) / window.innerWidth : 1,
|
|
3592
|
+
const de = Q ? (window.innerWidth - Gt) / window.innerWidth : 1, ge = Q ? -Gt : 0;
|
|
3585
3593
|
U.current && window.clearTimeout(U.current), qe(N.current, {
|
|
3586
3594
|
transition: `transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,
|
|
3587
|
-
transform: Re(T) ? `scale(${de}) translate3d(0, ${
|
|
3595
|
+
transform: Re(T) ? `scale(${de}) translate3d(0, ${ge}px, 0)` : `scale(${de}) translate3d(${ge}px, 0, 0)`
|
|
3588
3596
|
}), !Q && N.current && (U.current = setTimeout(() => {
|
|
3589
3597
|
const ae = hr(N.current, T);
|
|
3590
3598
|
qe(N.current, {
|
|
@@ -3595,14 +3603,14 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3595
3603
|
}
|
|
3596
3604
|
function Dn(Q, de) {
|
|
3597
3605
|
if (de < 0) return;
|
|
3598
|
-
const
|
|
3606
|
+
const ge = (window.innerWidth - Gt) / window.innerWidth, ae = ge + de * (1 - ge), ke = -Gt + de * Gt;
|
|
3599
3607
|
qe(N.current, {
|
|
3600
3608
|
transform: Re(T) ? `scale(${ae}) translate3d(0, ${ke}px, 0)` : `scale(${ae}) translate3d(${ke}px, 0, 0)`,
|
|
3601
3609
|
transition: "none"
|
|
3602
3610
|
});
|
|
3603
3611
|
}
|
|
3604
3612
|
function An(Q, de) {
|
|
3605
|
-
const
|
|
3613
|
+
const ge = Re(T) ? window.innerHeight : window.innerWidth, ae = de ? (ge - Gt) / ge : 1, ke = de ? -Gt : 0;
|
|
3606
3614
|
de && qe(N.current, {
|
|
3607
3615
|
transition: `transform ${_e.DURATION}s cubic-bezier(${_e.EASE.join(",")})`,
|
|
3608
3616
|
transform: Re(T) ? `scale(${ae}) translate3d(0, ${ke}px, 0)` : `scale(${ae}) translate3d(${ke}px, 0, 0)`
|
|
@@ -3617,7 +3625,7 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3617
3625
|
]), /* @__PURE__ */ B.createElement(Wd, {
|
|
3618
3626
|
defaultOpen: y,
|
|
3619
3627
|
onOpenChange: (Q) => {
|
|
3620
|
-
!u && !Q || (Q ? ne(!0) : ft(!0),
|
|
3628
|
+
!u && !Q || (Q ? ne(!0) : ft(!0), Y(Q));
|
|
3621
3629
|
},
|
|
3622
3630
|
open: Z
|
|
3623
3631
|
}, /* @__PURE__ */ B.createElement(_s.Provider, {
|
|
@@ -3636,7 +3644,7 @@ function xp({ open: n, onOpenChange: e, children: t, onDrag: r, onRelease: i, sn
|
|
|
3636
3644
|
handleOnly: p,
|
|
3637
3645
|
isOpen: Z,
|
|
3638
3646
|
isDragging: te,
|
|
3639
|
-
shouldFade:
|
|
3647
|
+
shouldFade: X,
|
|
3640
3648
|
closeDrawer: ft,
|
|
3641
3649
|
onNestedDrag: Dn,
|
|
3642
3650
|
onNestedOpenChange: Rn,
|
|
@@ -3677,14 +3685,14 @@ const Ds = /* @__PURE__ */ B.forwardRef(function({ onPointerDownOutside: n, styl
|
|
|
3677
3685
|
vp();
|
|
3678
3686
|
const H = (R, W, Z = 0) => {
|
|
3679
3687
|
if (j.current) return !0;
|
|
3680
|
-
const
|
|
3688
|
+
const Y = Math.abs(R.y), K = Math.abs(R.x), ne = K > Y, te = [
|
|
3681
3689
|
"bottom",
|
|
3682
3690
|
"right"
|
|
3683
3691
|
].includes(W) ? 1 : -1;
|
|
3684
3692
|
if (W === "left" || W === "right") {
|
|
3685
|
-
if (!(R.x * te < 0) &&
|
|
3693
|
+
if (!(R.x * te < 0) && K >= 0 && K <= Z)
|
|
3686
3694
|
return ne;
|
|
3687
|
-
} else if (!(R.y * te < 0) &&
|
|
3695
|
+
} else if (!(R.y * te < 0) && Y >= 0 && Y <= Z)
|
|
3688
3696
|
return !ne;
|
|
3689
3697
|
return j.current = !0, !0;
|
|
3690
3698
|
};
|
|
@@ -3733,11 +3741,11 @@ const Ds = /* @__PURE__ */ B.forwardRef(function({ onPointerDownOutside: n, styl
|
|
|
3733
3741
|
},
|
|
3734
3742
|
onPointerMove: (R) => {
|
|
3735
3743
|
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,
|
|
3744
|
+
const W = R.pageY - S.current.y, Z = R.pageX - S.current.x, Y = R.pointerType === "touch" ? 10 : 2;
|
|
3737
3745
|
H({
|
|
3738
3746
|
x: Z,
|
|
3739
3747
|
y: W
|
|
3740
|
-
}, g,
|
|
3748
|
+
}, g, Y) ? l(R) : (Math.abs(Z) > Y || Math.abs(W) > Y) && (S.current = null);
|
|
3741
3749
|
},
|
|
3742
3750
|
onPointerUp: (R) => {
|
|
3743
3751
|
r.onPointerUp == null || r.onPointerUp.call(r, R), S.current = null, j.current = !1, s(R);
|
|
@@ -3839,11 +3847,11 @@ const Pt = {
|
|
|
3839
3847
|
}), Sp = Pn(({ children: n, direction: e, modal: t = !1, className: r, onClose: i, defaultOpen: a = !1 }, o) => {
|
|
3840
3848
|
const [s, l] = Se(a), c = Me(i);
|
|
3841
3849
|
c.current = i;
|
|
3842
|
-
const u =
|
|
3850
|
+
const u = he(() => {
|
|
3843
3851
|
l(!0);
|
|
3844
|
-
}, []), p =
|
|
3852
|
+
}, []), p = he(() => {
|
|
3845
3853
|
l(!1);
|
|
3846
|
-
}, []), m =
|
|
3854
|
+
}, []), m = he(() => {
|
|
3847
3855
|
l(!1), c.current?.();
|
|
3848
3856
|
}, []);
|
|
3849
3857
|
return Vr(o, () => ({
|
|
@@ -3869,11 +3877,11 @@ Sp.displayName = "DrawerDesktop";
|
|
|
3869
3877
|
const jp = Pn(({ children: n, setSnap: e, snap: t, snapPoints: r, onClose: i, defaultOpen: a = !1, modal: o = !1, open: s }, l) => {
|
|
3870
3878
|
const [c, u] = Se(a), p = s !== void 0 ? s : c, m = Me(i);
|
|
3871
3879
|
m.current = i;
|
|
3872
|
-
const h =
|
|
3880
|
+
const h = he(() => {
|
|
3873
3881
|
u(!0);
|
|
3874
|
-
}, []), g =
|
|
3882
|
+
}, []), g = he(() => {
|
|
3875
3883
|
u(!1);
|
|
3876
|
-
}, []), f =
|
|
3884
|
+
}, []), f = he(() => {
|
|
3877
3885
|
u(!1), m.current?.();
|
|
3878
3886
|
}, []);
|
|
3879
3887
|
return Vr(l, () => ({
|
|
@@ -4341,24 +4349,24 @@ const As = ({
|
|
|
4341
4349
|
onKeyDown: T,
|
|
4342
4350
|
onKeyUp: y
|
|
4343
4351
|
}) => {
|
|
4344
|
-
const [O, S] = Se(r), [C] = sc(O, i), [j, L] = Se(!1), [H, $] = Se(!1);
|
|
4352
|
+
const [O, S] = Se(r), [C] = sc(O, i), [j, L] = Se(!1), [H, $] = Se(!1), R = he(t, [t]);
|
|
4345
4353
|
ht(() => {
|
|
4346
|
-
i > 0 &&
|
|
4347
|
-
}, [C, i,
|
|
4354
|
+
i > 0 && C !== r && R(C);
|
|
4355
|
+
}, [C, i, R, r]), ht(() => {
|
|
4348
4356
|
S(r);
|
|
4349
4357
|
}, [r]);
|
|
4350
|
-
const
|
|
4358
|
+
const W = () => {
|
|
4351
4359
|
L(!0), x?.();
|
|
4352
|
-
},
|
|
4360
|
+
}, Z = () => {
|
|
4353
4361
|
L(!1), _?.();
|
|
4354
|
-
},
|
|
4355
|
-
const
|
|
4356
|
-
S(
|
|
4357
|
-
},
|
|
4362
|
+
}, Y = (V) => {
|
|
4363
|
+
const J = V.target.value, A = O;
|
|
4364
|
+
S(J), A.length > 0 && J.length === 0 && E?.(), (!i || i === 0) && t(J);
|
|
4365
|
+
}, K = () => {
|
|
4358
4366
|
$(!H);
|
|
4359
|
-
},
|
|
4360
|
-
o && o !== "100%" && (
|
|
4361
|
-
const
|
|
4367
|
+
}, ne = {};
|
|
4368
|
+
o && o !== "100%" && (ne.width = o), s && (ne.height = s);
|
|
4369
|
+
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
4370
|
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
4363
4371
|
/* @__PURE__ */ d.jsxs(
|
|
4364
4372
|
"div",
|
|
@@ -4370,7 +4378,7 @@ const As = ({
|
|
|
4370
4378
|
"bg-inherit",
|
|
4371
4379
|
c === "static" && "mt-2"
|
|
4372
4380
|
),
|
|
4373
|
-
style:
|
|
4381
|
+
style: ne,
|
|
4374
4382
|
children: [
|
|
4375
4383
|
/* @__PURE__ */ d.jsx(
|
|
4376
4384
|
"input",
|
|
@@ -4379,23 +4387,23 @@ const As = ({
|
|
|
4379
4387
|
name: a,
|
|
4380
4388
|
type: m === "password" && H ? "text" : m,
|
|
4381
4389
|
value: O,
|
|
4382
|
-
placeholder:
|
|
4390
|
+
placeholder: z(),
|
|
4383
4391
|
className: M(
|
|
4384
4392
|
"peer w-full border-1 rounded-lg bg-transparent appearance-none transition-all duration-200 ease-in-out",
|
|
4385
4393
|
"focus:outline-none px-3",
|
|
4386
4394
|
c === "default" && "placeholder:text-transparent",
|
|
4387
4395
|
c === "static" && "placeholder:text-neutral-medium-default placeholder:opacity-50",
|
|
4388
4396
|
!s && Fn[u].input,
|
|
4389
|
-
s && `px-3 ${Fn[u].input.split(" ").filter((
|
|
4397
|
+
s && `px-3 ${Fn[u].input.split(" ").filter((V) => V.startsWith("text-")).join(" ")}`,
|
|
4390
4398
|
vr[l].input,
|
|
4391
4399
|
e && "pr-10",
|
|
4392
4400
|
p && "bg-neutral-weak-default cursor-not-allowed opacity-60",
|
|
4393
4401
|
vr[l].container
|
|
4394
4402
|
),
|
|
4395
|
-
style:
|
|
4396
|
-
onChange:
|
|
4397
|
-
onFocus:
|
|
4398
|
-
onBlur:
|
|
4403
|
+
style: q(),
|
|
4404
|
+
onChange: Y,
|
|
4405
|
+
onFocus: W,
|
|
4406
|
+
onBlur: Z,
|
|
4399
4407
|
disabled: p,
|
|
4400
4408
|
required: v,
|
|
4401
4409
|
onEmptied: E,
|
|
@@ -4410,9 +4418,9 @@ const As = ({
|
|
|
4410
4418
|
className: M(
|
|
4411
4419
|
"absolute left-3 pointer-events-none bg-inherit px-1 z-10",
|
|
4412
4420
|
c === "default" && "transition-all duration-200 ease-in-out",
|
|
4413
|
-
|
|
4421
|
+
D(),
|
|
4414
4422
|
vr[l].label,
|
|
4415
|
-
|
|
4423
|
+
P(),
|
|
4416
4424
|
v && "after:content-['*'] after:text-error-default after:ml-1"
|
|
4417
4425
|
),
|
|
4418
4426
|
children: n
|
|
@@ -4428,16 +4436,16 @@ const As = ({
|
|
|
4428
4436
|
vr[l].icon,
|
|
4429
4437
|
m === "password" && !h ? "cursor-pointer" : "pointer-events-none"
|
|
4430
4438
|
),
|
|
4431
|
-
onClick: m === "password" && !h ?
|
|
4432
|
-
onMouseDown: (
|
|
4439
|
+
onClick: m === "password" && !h ? K : void 0,
|
|
4440
|
+
onMouseDown: (V) => m === "password" && !h && V.preventDefault(),
|
|
4433
4441
|
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
4442
|
}
|
|
4435
4443
|
)
|
|
4436
4444
|
]
|
|
4437
4445
|
}
|
|
4438
4446
|
),
|
|
4439
|
-
|
|
4440
|
-
|
|
4447
|
+
k && f,
|
|
4448
|
+
w && g
|
|
4441
4449
|
] });
|
|
4442
4450
|
}, bh = rr(Xp), wh = ({
|
|
4443
4451
|
icon: n,
|
|
@@ -4734,9 +4742,9 @@ const Sh = B.forwardRef(
|
|
|
4734
4742
|
width: T = "100%",
|
|
4735
4743
|
height: y
|
|
4736
4744
|
}) => {
|
|
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
|
|
4745
|
+
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 = {};
|
|
4746
|
+
T && T !== "100%" && (Y.width = T), y && (Y.height = y);
|
|
4747
|
+
const K = () => y ? { height: y } : {};
|
|
4740
4748
|
ht(() => {
|
|
4741
4749
|
const A = (U) => {
|
|
4742
4750
|
$.current && !$.current.contains(U.target) && S(!1);
|
|
@@ -4754,15 +4762,15 @@ const Sh = B.forwardRef(
|
|
|
4754
4762
|
A.stopPropagation(), j(!1), A.target.blur(), o?.();
|
|
4755
4763
|
}, k = (A, U) => {
|
|
4756
4764
|
U?.stopPropagation();
|
|
4757
|
-
const
|
|
4758
|
-
E?.(
|
|
4765
|
+
const G = p(A);
|
|
4766
|
+
E?.(G);
|
|
4759
4767
|
}, 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
4768
|
/* @__PURE__ */ d.jsx("span", { className: "truncate max-w-20", children: m(A) }),
|
|
4761
4769
|
/* @__PURE__ */ d.jsx(
|
|
4762
4770
|
"button",
|
|
4763
4771
|
{
|
|
4764
|
-
onMouseDown: (
|
|
4765
|
-
|
|
4772
|
+
onMouseDown: (G) => {
|
|
4773
|
+
G.preventDefault(), U(A, G);
|
|
4766
4774
|
},
|
|
4767
4775
|
className: "flex-shrink-0 hover:bg-primary-strong-default rounded-sm p-0.5 transition-colors",
|
|
4768
4776
|
type: "button",
|
|
@@ -4772,14 +4780,14 @@ const Sh = B.forwardRef(
|
|
|
4772
4780
|
)
|
|
4773
4781
|
] }), D = () => {
|
|
4774
4782
|
if ($.current) {
|
|
4775
|
-
const A = $.current.getBoundingClientRect(), U = 250,
|
|
4776
|
-
|
|
4783
|
+
const A = $.current.getBoundingClientRect(), U = 250, G = window.innerHeight - A.bottom, ie = A.top;
|
|
4784
|
+
G < U && ie > U ? H("up") : H("down");
|
|
4777
4785
|
}
|
|
4778
|
-
}, q = ({ option: A, isSelected: U, onSelect:
|
|
4786
|
+
}, q = ({ option: A, isSelected: U, onSelect: G, isMultiple: ie }) => /* @__PURE__ */ d.jsxs(
|
|
4779
4787
|
"div",
|
|
4780
4788
|
{
|
|
4781
4789
|
onMouseDown: (I) => {
|
|
4782
|
-
I.preventDefault(),
|
|
4790
|
+
I.preventDefault(), G(), I.stopPropagation();
|
|
4783
4791
|
},
|
|
4784
4792
|
className: M(
|
|
4785
4793
|
"px-3 py-2 cursor-pointer flex items-center transition-colors",
|
|
@@ -4809,13 +4817,13 @@ const Sh = B.forwardRef(
|
|
|
4809
4817
|
)) }) : A?.length === 1 ? /* @__PURE__ */ d.jsx("span", { children: m(A[0]) }) : /* @__PURE__ */ d.jsxs("span", { children: [
|
|
4810
4818
|
A?.length,
|
|
4811
4819
|
" seleccionados"
|
|
4812
|
-
] }),
|
|
4820
|
+
] }), V = h || q, J = g || z;
|
|
4813
4821
|
return /* @__PURE__ */ d.jsx(
|
|
4814
4822
|
"div",
|
|
4815
4823
|
{
|
|
4816
4824
|
className: M("relative bg-inherit select-none", f, !T && "w-full "),
|
|
4817
4825
|
ref: $,
|
|
4818
|
-
style:
|
|
4826
|
+
style: Y,
|
|
4819
4827
|
children: /* @__PURE__ */ d.jsxs("div", { className: M("relative bg-inherit", l), children: [
|
|
4820
4828
|
/* @__PURE__ */ d.jsxs(
|
|
4821
4829
|
"button",
|
|
@@ -4833,7 +4841,7 @@ const Sh = B.forwardRef(
|
|
|
4833
4841
|
O || C ? "border-primary-default-default border-2" : "border-neutral-default-default hover:border-neutral-strong-default",
|
|
4834
4842
|
v
|
|
4835
4843
|
),
|
|
4836
|
-
style:
|
|
4844
|
+
style: K(),
|
|
4837
4845
|
children: [
|
|
4838
4846
|
/* @__PURE__ */ d.jsx(
|
|
4839
4847
|
"label",
|
|
@@ -4887,12 +4895,12 @@ const Sh = B.forwardRef(
|
|
|
4887
4895
|
x
|
|
4888
4896
|
),
|
|
4889
4897
|
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),
|
|
4898
|
+
const U = p(A), G = t.includes(U);
|
|
4891
4899
|
return /* @__PURE__ */ d.jsx(
|
|
4892
|
-
|
|
4900
|
+
V,
|
|
4893
4901
|
{
|
|
4894
4902
|
option: A,
|
|
4895
|
-
isSelected:
|
|
4903
|
+
isSelected: G,
|
|
4896
4904
|
onSelect: () => te(A),
|
|
4897
4905
|
isMultiple: a
|
|
4898
4906
|
},
|
|
@@ -4955,9 +4963,9 @@ const Sh = B.forwardRef(
|
|
|
4955
4963
|
P.preventDefault(), H(P.clientX, P.clientY);
|
|
4956
4964
|
}, Z = (P) => {
|
|
4957
4965
|
$(P.clientX, P.clientY);
|
|
4958
|
-
},
|
|
4966
|
+
}, Y = () => {
|
|
4959
4967
|
R();
|
|
4960
|
-
},
|
|
4968
|
+
}, K = (P) => {
|
|
4961
4969
|
const D = P.touches[0];
|
|
4962
4970
|
H(D.clientX, D.clientY);
|
|
4963
4971
|
}, ne = (P) => {
|
|
@@ -5005,9 +5013,9 @@ const Sh = B.forwardRef(
|
|
|
5005
5013
|
},
|
|
5006
5014
|
onMouseDown: W,
|
|
5007
5015
|
onMouseMove: Z,
|
|
5008
|
-
onMouseUp:
|
|
5009
|
-
onMouseLeave:
|
|
5010
|
-
onTouchStart:
|
|
5016
|
+
onMouseUp: Y,
|
|
5017
|
+
onMouseLeave: Y,
|
|
5018
|
+
onTouchStart: K,
|
|
5011
5019
|
onTouchMove: ne,
|
|
5012
5020
|
onTouchEnd: te,
|
|
5013
5021
|
children: n.map((P, D) => /* @__PURE__ */ d.jsx(
|
|
@@ -5409,7 +5417,7 @@ var at = {
|
|
|
5409
5417
|
duration: 0.5,
|
|
5410
5418
|
overwrite: !1,
|
|
5411
5419
|
delay: 0
|
|
5412
|
-
}, aa, $e, ye, ct = 1e8,
|
|
5420
|
+
}, 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
5421
|
return typeof e == "string";
|
|
5414
5422
|
}, je = function(e) {
|
|
5415
5423
|
return typeof e == "function";
|
|
@@ -5550,17 +5558,17 @@ var at = {
|
|
|
5550
5558
|
}, Fr = function(e, t) {
|
|
5551
5559
|
return (e - t._start) * t._ts + (t._ts >= 0 ? 0 : t._dirty ? t.totalDuration() : t._tDur);
|
|
5552
5560
|
}, Jr = function(e) {
|
|
5553
|
-
return e._end = Ae(e._start + (e._tDur / Math.abs(e._ts || e._rts ||
|
|
5561
|
+
return e._end = Ae(e._start + (e._tDur / Math.abs(e._ts || e._rts || ve) || 0));
|
|
5554
5562
|
}, Qr = function(e, t) {
|
|
5555
5563
|
var r = e._dp;
|
|
5556
5564
|
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
5565
|
}, Ks = function(e, t) {
|
|
5558
5566
|
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 >
|
|
5567
|
+
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
5568
|
if (e._dur < e.duration())
|
|
5561
5569
|
for (r = e; r._dp; )
|
|
5562
5570
|
r.rawTime() >= 0 && r.totalTime(r._tTime), r = r._dp;
|
|
5563
|
-
e._zTime = -
|
|
5571
|
+
e._zTime = -ve;
|
|
5564
5572
|
}
|
|
5565
5573
|
}, Tt = function(e, t, r, i) {
|
|
5566
5574
|
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 +5587,10 @@ var at = {
|
|
|
5579
5587
|
return t === "isFromStart" || t === "isStart";
|
|
5580
5588
|
}, Ef = function(e, t, r, i) {
|
|
5581
5589
|
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 ===
|
|
5590
|
+
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
5591
|
if (!e._initted && Qs(e, t, i, r, l))
|
|
5584
5592
|
return;
|
|
5585
|
-
for (p = e._zTime, e._zTime = t || (r ?
|
|
5593
|
+
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
5594
|
c.r(o, c.d), c = c._next;
|
|
5587
5595
|
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
5596
|
} else e._zTime || (e._zTime = t);
|
|
@@ -6002,7 +6010,7 @@ pn("Back", gi("in"), gi("out"), gi());
|
|
|
6002
6010
|
re.SteppedEase = re.steps = ot.SteppedEase = {
|
|
6003
6011
|
config: function(e, t) {
|
|
6004
6012
|
e === void 0 && (e = 1);
|
|
6005
|
-
var r = 1 / e, i = e + (t ? 0 : 1), a = t ? 1 : 0, o = 1 -
|
|
6013
|
+
var r = 1 / e, i = e + (t ? 0 : 1), a = t ? 1 : 0, o = 1 - ve;
|
|
6006
6014
|
return function(s) {
|
|
6007
6015
|
return ((i * or(0, o, s) | 0) + a) * r;
|
|
6008
6016
|
};
|
|
@@ -6034,7 +6042,7 @@ var hl = function(e, t) {
|
|
|
6034
6042
|
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
6043
|
!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
6044
|
}
|
|
6037
|
-
return (this._tTime !== r || !this._dur && !i || this._initted && Math.abs(this._zTime) ===
|
|
6045
|
+
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
6046
|
}, e.time = function(r, i) {
|
|
6039
6047
|
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), r + Ka(this)) % (this._dur + this._rDelay) || (r ? this._dur : 0), i) : this._time;
|
|
6040
6048
|
}, e.totalProgress = function(r, i) {
|
|
@@ -6046,13 +6054,13 @@ var hl = function(e, t) {
|
|
|
6046
6054
|
return arguments.length ? this.totalTime(this._time + (r - 1) * a, i) : this._repeat ? Sn(this._tTime, a) + 1 : 1;
|
|
6047
6055
|
}, e.timeScale = function(r, i) {
|
|
6048
6056
|
if (!arguments.length)
|
|
6049
|
-
return this._rts === -
|
|
6057
|
+
return this._rts === -ve ? 0 : this._rts;
|
|
6050
6058
|
if (this._rts === r)
|
|
6051
6059
|
return this;
|
|
6052
6060
|
var a = this.parent && this._ts ? Fr(this.parent._time, this) : this._tTime;
|
|
6053
|
-
return this._rts = +r || 0, this._ts = this._ps || r === -
|
|
6061
|
+
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
6062
|
}, 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) !==
|
|
6063
|
+
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
6064
|
}, e.startTime = function(r) {
|
|
6057
6065
|
if (arguments.length) {
|
|
6058
6066
|
this._start = r;
|
|
@@ -6086,7 +6094,7 @@ var hl = function(e, t) {
|
|
|
6086
6094
|
}, e.seek = function(r, i) {
|
|
6087
6095
|
return this.totalTime(lt(this, r), Ke(i));
|
|
6088
6096
|
}, e.restart = function(r, i) {
|
|
6089
|
-
return this.play().totalTime(r ? -this._delay : 0, Ke(i)), this._dur || (this._zTime = -
|
|
6097
|
+
return this.play().totalTime(r ? -this._delay : 0, Ke(i)), this._dur || (this._zTime = -ve), this;
|
|
6090
6098
|
}, e.play = function(r, i) {
|
|
6091
6099
|
return r != null && this.seek(r, i), this.reversed(!1).paused(!1);
|
|
6092
6100
|
}, e.reverse = function(r, i) {
|
|
@@ -6096,12 +6104,12 @@ var hl = function(e, t) {
|
|
|
6096
6104
|
}, e.resume = function() {
|
|
6097
6105
|
return this.paused(!1);
|
|
6098
6106
|
}, e.reversed = function(r) {
|
|
6099
|
-
return arguments.length ? (!!r !== this.reversed() && this.timeScale(-this._rts || (r ? -
|
|
6107
|
+
return arguments.length ? (!!r !== this.reversed() && this.timeScale(-this._rts || (r ? -ve : 0)), this) : this._rts < 0;
|
|
6100
6108
|
}, e.invalidate = function() {
|
|
6101
|
-
return this._initted = this._act = 0, this._zTime = -
|
|
6109
|
+
return this._initted = this._act = 0, this._zTime = -ve, this;
|
|
6102
6110
|
}, e.isActive = function() {
|
|
6103
6111
|
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) -
|
|
6112
|
+
return !!(!r || this._ts && this._initted && r.isActive() && (a = r.rawTime(!0)) >= i && a < this.endTime(!0) - ve);
|
|
6105
6113
|
}, e.eventCallback = function(r, i, a) {
|
|
6106
6114
|
var o = this.vars;
|
|
6107
6115
|
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 +6141,7 @@ st(Qn.prototype, {
|
|
|
6133
6141
|
_ts: 1,
|
|
6134
6142
|
_dp: 0,
|
|
6135
6143
|
ratio: 0,
|
|
6136
|
-
_zTime: -
|
|
6144
|
+
_zTime: -ve,
|
|
6137
6145
|
_prom: 0,
|
|
6138
6146
|
_ps: !1,
|
|
6139
6147
|
_rts: 1
|
|
@@ -6184,7 +6192,7 @@ var Ve = /* @__PURE__ */ (function(n) {
|
|
|
6184
6192
|
if (h.parent !== this)
|
|
6185
6193
|
return this.render(i, a, o);
|
|
6186
6194
|
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 = -
|
|
6195
|
+
_ = 0, g && (u += this._zTime = -ve);
|
|
6188
6196
|
break;
|
|
6189
6197
|
}
|
|
6190
6198
|
}
|
|
@@ -6197,14 +6205,14 @@ var Ve = /* @__PURE__ */ (function(n) {
|
|
|
6197
6205
|
if (h.parent !== this)
|
|
6198
6206
|
return this.render(i, a, o);
|
|
6199
6207
|
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 ? -
|
|
6208
|
+
_ = 0, g && (u += this._zTime = L ? -ve : ve);
|
|
6201
6209
|
break;
|
|
6202
6210
|
}
|
|
6203
6211
|
}
|
|
6204
6212
|
h = g;
|
|
6205
6213
|
}
|
|
6206
6214
|
}
|
|
6207
|
-
if (_ && !a && (this.pause(), _.render(m >= s ? 0 : -
|
|
6215
|
+
if (_ && !a && (this.pause(), _.render(m >= s ? 0 : -ve)._zTime = m >= s ? 1 : -1, this._ts))
|
|
6208
6216
|
return this._start = T, Jr(this), this.render(i, a, o);
|
|
6209
6217
|
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
6218
|
}
|
|
@@ -6264,7 +6272,7 @@ var Ve = /* @__PURE__ */ (function(n) {
|
|
|
6264
6272
|
immediateRender: !1,
|
|
6265
6273
|
time: s,
|
|
6266
6274
|
overwrite: "auto",
|
|
6267
|
-
duration: a.duration || Math.abs((s - (c && "time" in c ? c.time : o._time)) / o.timeScale()) ||
|
|
6275
|
+
duration: a.duration || Math.abs((s - (c && "time" in c ? c.time : o._time)) / o.timeScale()) || ve,
|
|
6268
6276
|
onStart: function() {
|
|
6269
6277
|
if (o.pause(), !h) {
|
|
6270
6278
|
var v = a.duration || Math.abs((s - (c && "time" in c ? c.time : o._time)) / o.timeScale());
|
|
@@ -6287,7 +6295,7 @@ var Ve = /* @__PURE__ */ (function(n) {
|
|
|
6287
6295
|
}, t.previousLabel = function(i) {
|
|
6288
6296
|
return i === void 0 && (i = this._time), Qa(this, lt(this, i), 1);
|
|
6289
6297
|
}, t.currentLabel = function(i) {
|
|
6290
|
-
return arguments.length ? this.seek(i, !0) : this.previousLabel(this._time +
|
|
6298
|
+
return arguments.length ? this.seek(i, !0) : this.previousLabel(this._time + ve);
|
|
6291
6299
|
}, t.shiftChildren = function(i, a, o) {
|
|
6292
6300
|
o === void 0 && (o = 0);
|
|
6293
6301
|
for (var s = this._first, l = this.labels, c; s; )
|
|
@@ -6364,9 +6372,9 @@ var $f = function(e, t, r, i, a, o, s) {
|
|
|
6364
6372
|
c[s._props[u]] = l;
|
|
6365
6373
|
return s;
|
|
6366
6374
|
}, 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,
|
|
6375
|
+
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
6376
|
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,
|
|
6377
|
+
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
6378
|
if (Wt(e._startAt = De.set(v, st({
|
|
6371
6379
|
data: "isStart",
|
|
6372
6380
|
overwrite: !1,
|
|
@@ -6394,22 +6402,22 @@ var $f = function(e, t, r, i, a, o, s) {
|
|
|
6394
6402
|
stagger: 0,
|
|
6395
6403
|
parent: x
|
|
6396
6404
|
//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,
|
|
6405
|
+
}, 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)
|
|
6406
|
+
n(e._startAt, ve, ve);
|
|
6399
6407
|
else if (!t)
|
|
6400
6408
|
return;
|
|
6401
6409
|
}
|
|
6402
6410
|
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,
|
|
6411
|
+
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
6412
|
W[ne] = C;
|
|
6405
|
-
}), R.priority && (L = 1)), !$ ||
|
|
6413
|
+
}), R.priority && (L = 1)), !$ || Y)
|
|
6406
6414
|
for (S in y)
|
|
6407
6415
|
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)),
|
|
6416
|
+
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
6417
|
}
|
|
6410
6418
|
L && _l(e), e._onInit && e._onInit(e);
|
|
6411
6419
|
}
|
|
6412
|
-
e._onUpdate = c, e._initted = (!e._op || e._pt) && !
|
|
6420
|
+
e._onUpdate = c, e._initted = (!e._op || e._pt) && !K, m && t <= 0 && T.render(ct, !0, !0);
|
|
6413
6421
|
}, Hf = function(e, t, r, i, a, o, s, l) {
|
|
6414
6422
|
var c = (e._pt && e._ptCache || (e._ptCache = {}))[t], u, p, m, h;
|
|
6415
6423
|
if (!c)
|
|
@@ -6480,16 +6488,16 @@ var De = /* @__PURE__ */ (function(n) {
|
|
|
6480
6488
|
})), T._ease = on(g.ease || i.ease || "none");
|
|
6481
6489
|
var $ = 0, R, W, Z;
|
|
6482
6490
|
if (He(g))
|
|
6483
|
-
g.forEach(function(
|
|
6484
|
-
return T.to(E,
|
|
6491
|
+
g.forEach(function(Y) {
|
|
6492
|
+
return T.to(E, Y, ">");
|
|
6485
6493
|
}), T.duration();
|
|
6486
6494
|
else {
|
|
6487
6495
|
O = {};
|
|
6488
6496
|
for (C in g)
|
|
6489
6497
|
C === "ease" || C === "easeEach" || Uf(C, g[C], O, g.easeEach);
|
|
6490
6498
|
for (C in O)
|
|
6491
|
-
for (R = O[C].sort(function(
|
|
6492
|
-
return
|
|
6499
|
+
for (R = O[C].sort(function(Y, K) {
|
|
6500
|
+
return Y.t - K.t;
|
|
6493
6501
|
}), $ = 0, y = 0; y < R.length; y++)
|
|
6494
6502
|
W = R[y], Z = {
|
|
6495
6503
|
ease: W.e,
|
|
@@ -6503,11 +6511,11 @@ var De = /* @__PURE__ */ (function(n) {
|
|
|
6503
6511
|
c || s.duration(c = T.duration());
|
|
6504
6512
|
} else
|
|
6505
6513
|
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 = -
|
|
6514
|
+
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
6515
|
}
|
|
6508
6516
|
var t = e.prototype;
|
|
6509
6517
|
return t.render = function(i, a, o) {
|
|
6510
|
-
var s = this._time, l = this._tDur, c = this._dur, u = i < 0, p = i > l -
|
|
6518
|
+
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
6519
|
if (!c)
|
|
6512
6520
|
Ef(this, i, a, o);
|
|
6513
6521
|
else if (p !== this._tTime || !i || o || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== u || this._lazy) {
|
|
@@ -7258,8 +7266,8 @@ var no, Ft, wn, ya, nn, ro, ba, rm = function() {
|
|
|
7258
7266
|
var r = e._gsap || new hl(e);
|
|
7259
7267
|
if ("x" in r && !t && !r.uncache)
|
|
7260
7268
|
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",
|
|
7269
|
+
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;
|
|
7270
|
+
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
7271
|
}, $r = function(e) {
|
|
7264
7272
|
return (e = e.split(" "))[0] + " " + e[1];
|
|
7265
7273
|
}, bi = function(e, t, r) {
|
|
@@ -7858,7 +7866,7 @@ const Sm = (n, e) => {
|
|
|
7858
7866
|
});
|
|
7859
7867
|
}, qm = Pn(
|
|
7860
7868
|
({ children: n, isCollapsed: e = !1, className: t = "" }, r) => {
|
|
7861
|
-
const i = Me(null), { registerPrimarySidebar: a } = qs(), o =
|
|
7869
|
+
const i = Me(null), { registerPrimarySidebar: a } = qs(), o = he((s) => {
|
|
7862
7870
|
i.current = s, typeof r == "function" ? r(s) : r && (r.current = s);
|
|
7863
7871
|
}, [r]);
|
|
7864
7872
|
return ht(() => {
|
|
@@ -8230,23 +8238,23 @@ var e0 = b.createContext({}), zl = b.forwardRef((n, e) => {
|
|
|
8230
8238
|
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
8239
|
let [S, C] = b.useState(typeof x.defaultValue == "string" ? x.defaultValue : ""), j = r ?? S, L = Xm(j), H = b.useCallback((N) => {
|
|
8232
8240
|
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")) }),
|
|
8241
|
+
}, [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
8242
|
b.useImperativeHandle(e, () => R.current, []), b.useEffect(() => {
|
|
8235
8243
|
let N = R.current, ee = W.current;
|
|
8236
8244
|
if (!N || !ee) return;
|
|
8237
|
-
Z.current.value !== N.value && Z.current.onChange(N.value),
|
|
8245
|
+
Z.current.value !== N.value && Z.current.onChange(N.value), Y.current.prev = [N.selectionStart, N.selectionEnd, N.selectionDirection];
|
|
8238
8246
|
function Ce() {
|
|
8239
8247
|
if (document.activeElement !== N) {
|
|
8240
8248
|
P(null), q(null);
|
|
8241
8249
|
return;
|
|
8242
8250
|
}
|
|
8243
|
-
let le = N.selectionStart, xe = N.selectionEnd, jt = N.selectionDirection, We = N.maxLength, Ue = N.value, F =
|
|
8251
|
+
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
8252
|
if (Ue.length !== 0 && le !== null && xe !== null) {
|
|
8245
8253
|
let Vt = le === xe, ft = le === Ue.length && Ue.length < We;
|
|
8246
8254
|
if (Vt && !ft) {
|
|
8247
8255
|
let Ye = le;
|
|
8248
|
-
if (Ye === 0)
|
|
8249
|
-
else if (Ye === We)
|
|
8256
|
+
if (Ye === 0) X = 0, se = 1, pe = "forward";
|
|
8257
|
+
else if (Ye === We) X = Ye - 1, se = Ye, pe = "backward";
|
|
8250
8258
|
else if (We > 1 && Ue.length > 1) {
|
|
8251
8259
|
let xt = 0;
|
|
8252
8260
|
if (F[0] !== null && F[1] !== null) {
|
|
@@ -8254,13 +8262,13 @@ var e0 = b.createContext({}), zl = b.forwardRef((n, e) => {
|
|
|
8254
8262
|
let Yt = F[0] === F[1] && F[0] < We;
|
|
8255
8263
|
pe === "backward" && !Yt && (xt = -1);
|
|
8256
8264
|
}
|
|
8257
|
-
|
|
8265
|
+
X = xt + Ye, se = xt + Ye + 1;
|
|
8258
8266
|
}
|
|
8259
8267
|
}
|
|
8260
|
-
|
|
8268
|
+
X !== -1 && se !== -1 && X !== se && R.current.setSelectionRange(X, se, pe);
|
|
8261
8269
|
}
|
|
8262
|
-
let Oe =
|
|
8263
|
-
P(Oe), q(gt),
|
|
8270
|
+
let Oe = X !== -1 ? X : le, gt = se !== -1 ? se : xe, pt = pe ?? jt;
|
|
8271
|
+
P(Oe), q(gt), Y.current.prev = [Oe, gt, pt];
|
|
8264
8272
|
}
|
|
8265
8273
|
if (document.addEventListener("selectionchange", Ce, { capture: !0 }), Ce(), document.activeElement === N && w(!0), !document.getElementById("input-otp-style")) {
|
|
8266
8274
|
let le = document.createElement("style");
|
|
@@ -8278,18 +8286,18 @@ var e0 = b.createContext({}), zl = b.forwardRef((n, e) => {
|
|
|
8278
8286
|
document.removeEventListener("selectionchange", Ce, { capture: !0 }), Fe.disconnect();
|
|
8279
8287
|
};
|
|
8280
8288
|
}, []);
|
|
8281
|
-
let [
|
|
8289
|
+
let [K, ne] = b.useState(!1), [te, w] = b.useState(!1), [k, P] = b.useState(null), [D, q] = b.useState(null);
|
|
8282
8290
|
b.useEffect(() => {
|
|
8283
8291
|
Ym(() => {
|
|
8284
8292
|
var N, ee, Ce, be;
|
|
8285
8293
|
(N = R.current) == null || N.dispatchEvent(new Event("input"));
|
|
8286
8294
|
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),
|
|
8295
|
+
Fe !== null && le !== null && (P(Fe), q(le), Y.current.prev = [Fe, le, xe]);
|
|
8288
8296
|
});
|
|
8289
8297
|
}, [j, te]), b.useEffect(() => {
|
|
8290
8298
|
L !== void 0 && j !== L && L.length < a && j.length === a && u?.(j);
|
|
8291
8299
|
}, [a, u, L, j]);
|
|
8292
|
-
let z = Qm({ containerRef: W, inputRef: R, pushPasswordManagerStrategy: p, isFocused: te }),
|
|
8300
|
+
let z = Qm({ containerRef: W, inputRef: R, pushPasswordManagerStrategy: p, isFocused: te }), V = b.useCallback((N) => {
|
|
8293
8301
|
let ee = N.currentTarget.value.slice(0, a);
|
|
8294
8302
|
if (ee.length > 0 && $ && !$.test(ee)) {
|
|
8295
8303
|
N.preventDefault();
|
|
@@ -8314,10 +8322,10 @@ var e0 = b.createContext({}), zl = b.forwardRef((n, e) => {
|
|
|
8314
8322
|
be.value = We, H(We);
|
|
8315
8323
|
let Ue = Math.min(We.length, a - 1), F = We.length;
|
|
8316
8324
|
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]),
|
|
8325
|
+
}, [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
8326
|
var ee;
|
|
8319
8327
|
A(N), (ee = x.onPaste) == null || ee.call(x, N);
|
|
8320
|
-
}, onChange:
|
|
8328
|
+
}, onChange: V, onMouseOver: (N) => {
|
|
8321
8329
|
var ee;
|
|
8322
8330
|
ne(!0), (ee = x.onMouseOver) == null || ee.call(x, N);
|
|
8323
8331
|
}, onMouseLeave: (N) => {
|
|
@@ -8329,11 +8337,11 @@ var e0 = b.createContext({}), zl = b.forwardRef((n, e) => {
|
|
|
8329
8337
|
}, onBlur: (N) => {
|
|
8330
8338
|
var ee;
|
|
8331
8339
|
w(!1), (ee = x.onBlur) == null || ee.call(x, N);
|
|
8332
|
-
} })), [
|
|
8340
|
+
} })), [V, J, A, c, G, a, D, k, x, $?.source, j]), I = b.useMemo(() => ({ slots: Array.from({ length: a }).map((N, ee) => {
|
|
8333
8341
|
var Ce;
|
|
8334
8342
|
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
8343
|
return { char: Fe, placeholderChar: le, isActive: be, hasFakeCaret: be && Fe === null };
|
|
8336
|
-
}), isFocused: te, isHovering: !x.disabled &&
|
|
8344
|
+
}), 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
8345
|
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
8346
|
});
|
|
8339
8347
|
zl.displayName = "Input";
|
|
@@ -8425,25 +8433,25 @@ const Bh = ({
|
|
|
8425
8433
|
isOpen: () => n.current?.isOpen ?? !1
|
|
8426
8434
|
};
|
|
8427
8435
|
}, Wh = () => {
|
|
8428
|
-
const n = Me(null), e =
|
|
8436
|
+
const n = Me(null), e = he(() => {
|
|
8429
8437
|
n.current?.open();
|
|
8430
|
-
}, []), t =
|
|
8438
|
+
}, []), t = he(() => {
|
|
8431
8439
|
n.current?.close();
|
|
8432
8440
|
}, []);
|
|
8433
8441
|
return {
|
|
8434
|
-
isOpen:
|
|
8442
|
+
isOpen: he(() => n.current?.isOpen ?? !1, []),
|
|
8435
8443
|
open: e,
|
|
8436
8444
|
close: t,
|
|
8437
8445
|
drawerRef: n
|
|
8438
8446
|
};
|
|
8439
8447
|
}, Uh = () => {
|
|
8440
|
-
const n = Me(null), e =
|
|
8448
|
+
const n = Me(null), e = he(() => {
|
|
8441
8449
|
n.current?.open();
|
|
8442
|
-
}, []), t =
|
|
8450
|
+
}, []), t = he(() => {
|
|
8443
8451
|
n.current?.close();
|
|
8444
8452
|
}, []);
|
|
8445
8453
|
return {
|
|
8446
|
-
isOpen:
|
|
8454
|
+
isOpen: he(() => n.current?.isOpen ?? !1, []),
|
|
8447
8455
|
open: e,
|
|
8448
8456
|
close: t,
|
|
8449
8457
|
drawerRef: n
|
|
@@ -8592,7 +8600,7 @@ function r0() {
|
|
|
8592
8600
|
}
|
|
8593
8601
|
}
|
|
8594
8602
|
}
|
|
8595
|
-
var y = l, O = c, S = s, C = o, j = e, L = u, H = r, $ = g, R = h, W = t, Z = a,
|
|
8603
|
+
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
8604
|
function te(I) {
|
|
8597
8605
|
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
8606
|
}
|
|
@@ -8614,7 +8622,7 @@ function r0() {
|
|
|
8614
8622
|
function z(I) {
|
|
8615
8623
|
return T(I) === r;
|
|
8616
8624
|
}
|
|
8617
|
-
function
|
|
8625
|
+
function V(I) {
|
|
8618
8626
|
return T(I) === g;
|
|
8619
8627
|
}
|
|
8620
8628
|
function J(I) {
|
|
@@ -8626,13 +8634,13 @@ function r0() {
|
|
|
8626
8634
|
function U(I) {
|
|
8627
8635
|
return T(I) === a;
|
|
8628
8636
|
}
|
|
8629
|
-
function
|
|
8637
|
+
function G(I) {
|
|
8630
8638
|
return T(I) === i;
|
|
8631
8639
|
}
|
|
8632
8640
|
function ie(I) {
|
|
8633
8641
|
return T(I) === p;
|
|
8634
8642
|
}
|
|
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 =
|
|
8643
|
+
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
8644
|
})()), ue;
|
|
8637
8645
|
}
|
|
8638
8646
|
var xo;
|
|
@@ -8805,8 +8813,8 @@ function o0() {
|
|
|
8805
8813
|
function v(w) {
|
|
8806
8814
|
if (process.env.NODE_ENV !== "production")
|
|
8807
8815
|
var k = {}, P = 0;
|
|
8808
|
-
function D(z,
|
|
8809
|
-
if (A = A || m,
|
|
8816
|
+
function D(z, V, J, A, U, G, ie) {
|
|
8817
|
+
if (A = A || m, G = G || J, ie !== t) {
|
|
8810
8818
|
if (l) {
|
|
8811
8819
|
var I = new Error(
|
|
8812
8820
|
"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 +8824,22 @@ function o0() {
|
|
|
8816
8824
|
var Ie = A + ":" + J;
|
|
8817
8825
|
!k[Ie] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
8818
8826
|
P < 3 && (a(
|
|
8819
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
8827
|
+
"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
8828
|
), k[Ie] = !0, P++);
|
|
8821
8829
|
}
|
|
8822
8830
|
}
|
|
8823
|
-
return
|
|
8831
|
+
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
8832
|
}
|
|
8825
8833
|
var q = D.bind(null, !1);
|
|
8826
8834
|
return q.isRequired = D.bind(null, !0), q;
|
|
8827
8835
|
}
|
|
8828
8836
|
function x(w) {
|
|
8829
|
-
function k(P, D, q, z,
|
|
8830
|
-
var A = P[D], U =
|
|
8837
|
+
function k(P, D, q, z, V, J) {
|
|
8838
|
+
var A = P[D], U = Y(A);
|
|
8831
8839
|
if (U !== w) {
|
|
8832
|
-
var
|
|
8840
|
+
var G = K(A);
|
|
8833
8841
|
return new f(
|
|
8834
|
-
"Invalid " + z + " `" +
|
|
8842
|
+
"Invalid " + z + " `" + V + "` of type " + ("`" + G + "` supplied to `" + q + "`, expected ") + ("`" + w + "`."),
|
|
8835
8843
|
{ expectedType: w }
|
|
8836
8844
|
);
|
|
8837
8845
|
}
|
|
@@ -8843,18 +8851,18 @@ function o0() {
|
|
|
8843
8851
|
return v(o);
|
|
8844
8852
|
}
|
|
8845
8853
|
function E(w) {
|
|
8846
|
-
function k(P, D, q, z,
|
|
8854
|
+
function k(P, D, q, z, V) {
|
|
8847
8855
|
if (typeof w != "function")
|
|
8848
|
-
return new f("Property `" +
|
|
8856
|
+
return new f("Property `" + V + "` of component `" + q + "` has invalid PropType notation inside arrayOf.");
|
|
8849
8857
|
var J = P[D];
|
|
8850
8858
|
if (!Array.isArray(J)) {
|
|
8851
|
-
var A =
|
|
8852
|
-
return new f("Invalid " + z + " `" +
|
|
8859
|
+
var A = Y(J);
|
|
8860
|
+
return new f("Invalid " + z + " `" + V + "` of type " + ("`" + A + "` supplied to `" + q + "`, expected an array."));
|
|
8853
8861
|
}
|
|
8854
8862
|
for (var U = 0; U < J.length; U++) {
|
|
8855
|
-
var
|
|
8856
|
-
if (
|
|
8857
|
-
return
|
|
8863
|
+
var G = w(J, U, q, z, V + "[" + U + "]", t);
|
|
8864
|
+
if (G instanceof Error)
|
|
8865
|
+
return G;
|
|
8858
8866
|
}
|
|
8859
8867
|
return null;
|
|
8860
8868
|
}
|
|
@@ -8862,9 +8870,9 @@ function o0() {
|
|
|
8862
8870
|
}
|
|
8863
8871
|
function T() {
|
|
8864
8872
|
function w(k, P, D, q, z) {
|
|
8865
|
-
var
|
|
8866
|
-
if (!s(
|
|
8867
|
-
var J = V
|
|
8873
|
+
var V = k[P];
|
|
8874
|
+
if (!s(V)) {
|
|
8875
|
+
var J = Y(V);
|
|
8868
8876
|
return new f("Invalid " + q + " `" + z + "` of type " + ("`" + J + "` supplied to `" + D + "`, expected a single ReactElement."));
|
|
8869
8877
|
}
|
|
8870
8878
|
return null;
|
|
@@ -8873,9 +8881,9 @@ function o0() {
|
|
|
8873
8881
|
}
|
|
8874
8882
|
function y() {
|
|
8875
8883
|
function w(k, P, D, q, z) {
|
|
8876
|
-
var
|
|
8877
|
-
if (!n.isValidElementType(
|
|
8878
|
-
var J = V
|
|
8884
|
+
var V = k[P];
|
|
8885
|
+
if (!n.isValidElementType(V)) {
|
|
8886
|
+
var J = Y(V);
|
|
8879
8887
|
return new f("Invalid " + q + " `" + z + "` of type " + ("`" + J + "` supplied to `" + D + "`, expected a single ReactElement type."));
|
|
8880
8888
|
}
|
|
8881
8889
|
return null;
|
|
@@ -8883,10 +8891,10 @@ function o0() {
|
|
|
8883
8891
|
return v(w);
|
|
8884
8892
|
}
|
|
8885
8893
|
function O(w) {
|
|
8886
|
-
function k(P, D, q, z,
|
|
8894
|
+
function k(P, D, q, z, V) {
|
|
8887
8895
|
if (!(P[D] instanceof w)) {
|
|
8888
8896
|
var J = w.name || m, A = te(P[D]);
|
|
8889
|
-
return new f("Invalid " + z + " `" +
|
|
8897
|
+
return new f("Invalid " + z + " `" + V + "` of type " + ("`" + A + "` supplied to `" + q + "`, expected ") + ("instance of `" + J + "`."));
|
|
8890
8898
|
}
|
|
8891
8899
|
return null;
|
|
8892
8900
|
}
|
|
@@ -8897,30 +8905,30 @@ function o0() {
|
|
|
8897
8905
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
8898
8906
|
"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
8907
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
8900
|
-
function k(P, D, q, z,
|
|
8908
|
+
function k(P, D, q, z, V) {
|
|
8901
8909
|
for (var J = P[D], A = 0; A < w.length; A++)
|
|
8902
8910
|
if (g(J, w[A]))
|
|
8903
8911
|
return null;
|
|
8904
8912
|
var U = JSON.stringify(w, function(ie, I) {
|
|
8905
|
-
var Ie =
|
|
8913
|
+
var Ie = K(I);
|
|
8906
8914
|
return Ie === "symbol" ? String(I) : I;
|
|
8907
8915
|
});
|
|
8908
|
-
return new f("Invalid " + z + " `" +
|
|
8916
|
+
return new f("Invalid " + z + " `" + V + "` of value `" + String(J) + "` " + ("supplied to `" + q + "`, expected one of " + U + "."));
|
|
8909
8917
|
}
|
|
8910
8918
|
return v(k);
|
|
8911
8919
|
}
|
|
8912
8920
|
function C(w) {
|
|
8913
|
-
function k(P, D, q, z,
|
|
8921
|
+
function k(P, D, q, z, V) {
|
|
8914
8922
|
if (typeof w != "function")
|
|
8915
|
-
return new f("Property `" +
|
|
8916
|
-
var J = P[D], A =
|
|
8923
|
+
return new f("Property `" + V + "` of component `" + q + "` has invalid PropType notation inside objectOf.");
|
|
8924
|
+
var J = P[D], A = Y(J);
|
|
8917
8925
|
if (A !== "object")
|
|
8918
|
-
return new f("Invalid " + z + " `" +
|
|
8926
|
+
return new f("Invalid " + z + " `" + V + "` of type " + ("`" + A + "` supplied to `" + q + "`, expected an object."));
|
|
8919
8927
|
for (var U in J)
|
|
8920
8928
|
if (r(J, U)) {
|
|
8921
|
-
var
|
|
8922
|
-
if (
|
|
8923
|
-
return
|
|
8929
|
+
var G = w(J, U, q, z, V + "." + U, t);
|
|
8930
|
+
if (G instanceof Error)
|
|
8931
|
+
return G;
|
|
8924
8932
|
}
|
|
8925
8933
|
return null;
|
|
8926
8934
|
}
|
|
@@ -8936,15 +8944,15 @@ function o0() {
|
|
|
8936
8944
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(P) + " at index " + k + "."
|
|
8937
8945
|
), o;
|
|
8938
8946
|
}
|
|
8939
|
-
function D(q, z,
|
|
8940
|
-
for (var U = [],
|
|
8941
|
-
var ie = w[
|
|
8947
|
+
function D(q, z, V, J, A) {
|
|
8948
|
+
for (var U = [], G = 0; G < w.length; G++) {
|
|
8949
|
+
var ie = w[G], I = ie(q, z, V, J, A, t);
|
|
8942
8950
|
if (I == null)
|
|
8943
8951
|
return null;
|
|
8944
8952
|
I.data && r(I.data, "expectedType") && U.push(I.data.expectedType);
|
|
8945
8953
|
}
|
|
8946
8954
|
var Ie = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
|
|
8947
|
-
return new f("Invalid " + J + " `" + A + "` supplied to " + ("`" +
|
|
8955
|
+
return new f("Invalid " + J + " `" + A + "` supplied to " + ("`" + V + "`" + Ie + "."));
|
|
8948
8956
|
}
|
|
8949
8957
|
return v(D);
|
|
8950
8958
|
}
|
|
@@ -8960,15 +8968,15 @@ function o0() {
|
|
|
8960
8968
|
);
|
|
8961
8969
|
}
|
|
8962
8970
|
function $(w) {
|
|
8963
|
-
function k(P, D, q, z,
|
|
8964
|
-
var J = P[D], A =
|
|
8971
|
+
function k(P, D, q, z, V) {
|
|
8972
|
+
var J = P[D], A = Y(J);
|
|
8965
8973
|
if (A !== "object")
|
|
8966
|
-
return new f("Invalid " + z + " `" +
|
|
8974
|
+
return new f("Invalid " + z + " `" + V + "` of type `" + A + "` " + ("supplied to `" + q + "`, expected `object`."));
|
|
8967
8975
|
for (var U in w) {
|
|
8968
|
-
var
|
|
8969
|
-
if (typeof
|
|
8970
|
-
return H(q, z,
|
|
8971
|
-
var ie =
|
|
8976
|
+
var G = w[U];
|
|
8977
|
+
if (typeof G != "function")
|
|
8978
|
+
return H(q, z, V, U, K(G));
|
|
8979
|
+
var ie = G(J, U, q, z, V + "." + U, t);
|
|
8972
8980
|
if (ie)
|
|
8973
8981
|
return ie;
|
|
8974
8982
|
}
|
|
@@ -8977,21 +8985,21 @@ function o0() {
|
|
|
8977
8985
|
return v(k);
|
|
8978
8986
|
}
|
|
8979
8987
|
function R(w) {
|
|
8980
|
-
function k(P, D, q, z,
|
|
8981
|
-
var J = P[D], A =
|
|
8988
|
+
function k(P, D, q, z, V) {
|
|
8989
|
+
var J = P[D], A = Y(J);
|
|
8982
8990
|
if (A !== "object")
|
|
8983
|
-
return new f("Invalid " + z + " `" +
|
|
8991
|
+
return new f("Invalid " + z + " `" + V + "` of type `" + A + "` " + ("supplied to `" + q + "`, expected `object`."));
|
|
8984
8992
|
var U = e({}, P[D], w);
|
|
8985
|
-
for (var
|
|
8986
|
-
var ie = w[
|
|
8987
|
-
if (r(w,
|
|
8988
|
-
return H(q, z,
|
|
8993
|
+
for (var G in U) {
|
|
8994
|
+
var ie = w[G];
|
|
8995
|
+
if (r(w, G) && typeof ie != "function")
|
|
8996
|
+
return H(q, z, V, G, K(ie));
|
|
8989
8997
|
if (!ie)
|
|
8990
8998
|
return new f(
|
|
8991
|
-
"Invalid " + z + " `" +
|
|
8999
|
+
"Invalid " + z + " `" + V + "` key `" + G + "` supplied to `" + q + "`.\nBad object: " + JSON.stringify(P[D], null, " ") + `
|
|
8992
9000
|
Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
8993
9001
|
);
|
|
8994
|
-
var I = ie(J,
|
|
9002
|
+
var I = ie(J, G, q, z, V + "." + G, t);
|
|
8995
9003
|
if (I)
|
|
8996
9004
|
return I;
|
|
8997
9005
|
}
|
|
@@ -9035,14 +9043,14 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
9035
9043
|
function Z(w, k) {
|
|
9036
9044
|
return w === "symbol" ? !0 : k ? k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol : !1;
|
|
9037
9045
|
}
|
|
9038
|
-
function
|
|
9046
|
+
function Y(w) {
|
|
9039
9047
|
var k = typeof w;
|
|
9040
9048
|
return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : Z(k, w) ? "symbol" : k;
|
|
9041
9049
|
}
|
|
9042
|
-
function
|
|
9050
|
+
function K(w) {
|
|
9043
9051
|
if (typeof w > "u" || w === null)
|
|
9044
9052
|
return "" + w;
|
|
9045
|
-
var k =
|
|
9053
|
+
var k = Y(w);
|
|
9046
9054
|
if (k === "object") {
|
|
9047
9055
|
if (w instanceof Date)
|
|
9048
9056
|
return "date";
|
|
@@ -9052,7 +9060,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
9052
9060
|
return k;
|
|
9053
9061
|
}
|
|
9054
9062
|
function ne(w) {
|
|
9055
|
-
var k =
|
|
9063
|
+
var k = K(w);
|
|
9056
9064
|
switch (k) {
|
|
9057
9065
|
case "array":
|
|
9058
9066
|
case "object":
|
|
@@ -11010,11 +11018,11 @@ function Ql() {
|
|
|
11010
11018
|
return typeof v == "function" ? v : Io;
|
|
11011
11019
|
}, [v]), R = Qt(function() {
|
|
11012
11020
|
return typeof f == "function" ? f : Io;
|
|
11013
|
-
}, [f]), W = Me(null), Z = Me(null),
|
|
11021
|
+
}, [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
11022
|
!P.current && k && setTimeout(function() {
|
|
11015
11023
|
if (Z.current) {
|
|
11016
|
-
var
|
|
11017
|
-
|
|
11024
|
+
var X = Z.current.files;
|
|
11025
|
+
X.length || (te({
|
|
11018
11026
|
type: "closeDialog"
|
|
11019
11027
|
}), R());
|
|
11020
11028
|
}
|
|
@@ -11025,8 +11033,8 @@ function Ql() {
|
|
|
11025
11033
|
window.removeEventListener("focus", D, !1);
|
|
11026
11034
|
};
|
|
11027
11035
|
}, [Z, k, R, P]);
|
|
11028
|
-
var q = Me([]), z = function(
|
|
11029
|
-
W.current && W.current.contains(
|
|
11036
|
+
var q = Me([]), z = function(X) {
|
|
11037
|
+
W.current && W.current.contains(X.target) || (X.preventDefault(), q.current = []);
|
|
11030
11038
|
};
|
|
11031
11039
|
ht(function() {
|
|
11032
11040
|
return E && (document.addEventListener("dragover", qo, !1), document.addEventListener("drop", z, !1)), function() {
|
|
@@ -11036,13 +11044,13 @@ function Ql() {
|
|
|
11036
11044
|
return !r && _ && W.current && W.current.focus(), function() {
|
|
11037
11045
|
};
|
|
11038
11046
|
}, [W, _, r]);
|
|
11039
|
-
var
|
|
11047
|
+
var V = he(function(F) {
|
|
11040
11048
|
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(
|
|
11049
|
+
}, [C]), J = he(function(F) {
|
|
11050
|
+
F.preventDefault(), F.persist(), xe(F), q.current = [].concat(G0(q.current), [F.target]), wr(F) && Promise.resolve(i(F)).then(function(X) {
|
|
11043
11051
|
if (!(Ur(F) && !S)) {
|
|
11044
|
-
var se =
|
|
11045
|
-
files:
|
|
11052
|
+
var se = X.length, pe = se > 0 && I0({
|
|
11053
|
+
files: X,
|
|
11046
11054
|
accept: L,
|
|
11047
11055
|
minSize: o,
|
|
11048
11056
|
maxSize: a,
|
|
@@ -11057,30 +11065,30 @@ function Ql() {
|
|
|
11057
11065
|
type: "setDraggedFiles"
|
|
11058
11066
|
}), c && c(F);
|
|
11059
11067
|
}
|
|
11060
|
-
}).catch(function(
|
|
11061
|
-
return
|
|
11068
|
+
}).catch(function(X) {
|
|
11069
|
+
return V(X);
|
|
11062
11070
|
});
|
|
11063
|
-
}, [i, c,
|
|
11071
|
+
}, [i, c, V, S, L, o, a, s, l, j]), A = he(function(F) {
|
|
11064
11072
|
F.preventDefault(), F.persist(), xe(F);
|
|
11065
|
-
var
|
|
11066
|
-
if (
|
|
11073
|
+
var X = wr(F);
|
|
11074
|
+
if (X && F.dataTransfer)
|
|
11067
11075
|
try {
|
|
11068
11076
|
F.dataTransfer.dropEffect = "copy";
|
|
11069
11077
|
} catch {
|
|
11070
11078
|
}
|
|
11071
|
-
return
|
|
11072
|
-
}, [p, S]), U =
|
|
11079
|
+
return X && p && p(F), !1;
|
|
11080
|
+
}, [p, S]), U = he(function(F) {
|
|
11073
11081
|
F.preventDefault(), F.persist(), xe(F);
|
|
11074
|
-
var
|
|
11082
|
+
var X = q.current.filter(function(pe) {
|
|
11075
11083
|
return W.current && W.current.contains(pe);
|
|
11076
|
-
}), se =
|
|
11077
|
-
se !== -1 &&
|
|
11084
|
+
}), se = X.indexOf(F.target);
|
|
11085
|
+
se !== -1 && X.splice(se, 1), q.current = X, !(X.length > 0) && (te({
|
|
11078
11086
|
type: "setDraggedFiles",
|
|
11079
11087
|
isDragActive: !1,
|
|
11080
11088
|
isDragAccept: !1,
|
|
11081
11089
|
isDragReject: !1
|
|
11082
11090
|
}), wr(F) && u && u(F));
|
|
11083
|
-
}, [W, u, S]),
|
|
11091
|
+
}, [W, u, S]), G = he(function(F, X) {
|
|
11084
11092
|
var se = [], pe = [];
|
|
11085
11093
|
F.forEach(function(Oe) {
|
|
11086
11094
|
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 +11113,16 @@ function Ql() {
|
|
|
11105
11113
|
fileRejections: pe,
|
|
11106
11114
|
isDragReject: pe.length > 0,
|
|
11107
11115
|
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
|
|
11116
|
+
}), m && m(se, pe, X), pe.length > 0 && g && g(pe, X), se.length > 0 && h && h(se, X);
|
|
11117
|
+
}, [te, s, L, o, a, l, m, h, g, j]), ie = he(function(F) {
|
|
11118
|
+
F.preventDefault(), F.persist(), xe(F), q.current = [], wr(F) && Promise.resolve(i(F)).then(function(X) {
|
|
11119
|
+
Ur(F) && !S || G(X, F);
|
|
11120
|
+
}).catch(function(X) {
|
|
11121
|
+
return V(X);
|
|
11114
11122
|
}), te({
|
|
11115
11123
|
type: "reset"
|
|
11116
11124
|
});
|
|
11117
|
-
}, [i,
|
|
11125
|
+
}, [i, G, V, S]), I = he(function() {
|
|
11118
11126
|
if (P.current) {
|
|
11119
11127
|
te({
|
|
11120
11128
|
type: "openDialog"
|
|
@@ -11123,45 +11131,45 @@ function Ql() {
|
|
|
11123
11131
|
multiple: s,
|
|
11124
11132
|
types: H
|
|
11125
11133
|
};
|
|
11126
|
-
window.showOpenFilePicker(F).then(function(
|
|
11127
|
-
return i(
|
|
11128
|
-
}).then(function(
|
|
11129
|
-
|
|
11134
|
+
window.showOpenFilePicker(F).then(function(X) {
|
|
11135
|
+
return i(X);
|
|
11136
|
+
}).then(function(X) {
|
|
11137
|
+
G(X, null), te({
|
|
11130
11138
|
type: "closeDialog"
|
|
11131
11139
|
});
|
|
11132
|
-
}).catch(function(
|
|
11133
|
-
W0(
|
|
11140
|
+
}).catch(function(X) {
|
|
11141
|
+
W0(X) ? (R(X), te({
|
|
11134
11142
|
type: "closeDialog"
|
|
11135
|
-
})) : U0(
|
|
11143
|
+
})) : 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
11144
|
});
|
|
11137
11145
|
return;
|
|
11138
11146
|
}
|
|
11139
11147
|
Z.current && (te({
|
|
11140
11148
|
type: "openDialog"
|
|
11141
11149
|
}), $(), Z.current.value = null, Z.current.click());
|
|
11142
|
-
}, [te, $, R, x,
|
|
11150
|
+
}, [te, $, R, x, G, V, H, s]), Ie = he(function(F) {
|
|
11143
11151
|
!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 =
|
|
11152
|
+
}, [W, I]), N = he(function() {
|
|
11145
11153
|
te({
|
|
11146
11154
|
type: "focus"
|
|
11147
11155
|
});
|
|
11148
|
-
}, []), ee =
|
|
11156
|
+
}, []), ee = he(function() {
|
|
11149
11157
|
te({
|
|
11150
11158
|
type: "blur"
|
|
11151
11159
|
});
|
|
11152
|
-
}, []), Ce =
|
|
11160
|
+
}, []), Ce = he(function() {
|
|
11153
11161
|
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 &&
|
|
11162
|
+
}, [T, I]), be = function(X) {
|
|
11163
|
+
return r ? null : X;
|
|
11164
|
+
}, Fe = function(X) {
|
|
11165
|
+
return y ? null : be(X);
|
|
11166
|
+
}, le = function(X) {
|
|
11167
|
+
return O ? null : be(X);
|
|
11168
|
+
}, xe = function(X) {
|
|
11169
|
+
S && X.stopPropagation();
|
|
11162
11170
|
}, jt = Qt(function() {
|
|
11163
11171
|
return function() {
|
|
11164
|
-
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
11172
|
+
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
11173
|
return we(we(Ji({
|
|
11166
11174
|
onKeyDown: Fe(bt(Oe, Ie)),
|
|
11167
11175
|
onFocus: Fe(bt(gt, N)),
|
|
@@ -11176,11 +11184,11 @@ function Ql() {
|
|
|
11176
11184
|
tabIndex: 0
|
|
11177
11185
|
} : {}), Rn);
|
|
11178
11186
|
};
|
|
11179
|
-
}, [W, Ie, N, ee, Ce, J, A, U, ie, y, O, r]), We =
|
|
11187
|
+
}, [W, Ie, N, ee, Ce, J, A, U, ie, y, O, r]), We = he(function(F) {
|
|
11180
11188
|
F.stopPropagation();
|
|
11181
11189
|
}, []), Ue = Qt(function() {
|
|
11182
11190
|
return function() {
|
|
11183
|
-
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
11191
|
+
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
11192
|
accept: L,
|
|
11185
11193
|
multiple: s,
|
|
11186
11194
|
type: "file",
|
|
@@ -11264,7 +11272,7 @@ const ah = B.forwardRef(
|
|
|
11264
11272
|
maxFiles: c = 1,
|
|
11265
11273
|
...u
|
|
11266
11274
|
}, p) => {
|
|
11267
|
-
const m =
|
|
11275
|
+
const m = he((E, T) => {
|
|
11268
11276
|
E.length > 0 && n?.(E), T.length > 0 && e?.(T);
|
|
11269
11277
|
}, [n, e]), {
|
|
11270
11278
|
getRootProps: h,
|