@functionalui/functionalui 0.1.0 → 0.1.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/main.cjs +2 -2
- package/dist/main.d.ts +25 -27
- package/dist/main.js +341 -334
- package/dist/types.d.ts +4 -6
- package/package.json +12 -19
package/dist/main.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as d, jsxs as X, Fragment as Ce } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
4
|
-
import le, { useEffect as q, useLayoutEffect as qs, useState as Z, useRef as te, forwardRef as me, useCallback as Le, useMemo as Ne, useContext as
|
|
3
|
+
import * as fn from "react";
|
|
4
|
+
import le, { useEffect as q, useLayoutEffect as qs, useState as Z, useRef as te, forwardRef as me, useCallback as Le, useMemo as Ne, useContext as An, Children as Ca, isValidElement as ka, cloneElement as Ia, createContext as mi, createElement as Ta, useReducer as Aa } from "react";
|
|
5
5
|
import { unstable_batchedUpdates as Oa, createPortal as Ys } from "react-dom";
|
|
6
|
-
import { M as
|
|
7
|
-
var yi =
|
|
8
|
-
j.write = (e) =>
|
|
9
|
-
var hr =
|
|
10
|
-
j.onStart = (e) =>
|
|
11
|
-
var bi =
|
|
12
|
-
j.onFrame = (e) =>
|
|
13
|
-
var _i =
|
|
14
|
-
j.onFinish = (e) =>
|
|
15
|
-
var
|
|
6
|
+
import { M as dt, a as ht, b as pt, c as mt, d as gt, P as yt, e as vt, f as bt, g as _t, h as wt, B as St, i as Et, j as xt, k as Ct, l as kt, m as It, n as Tt, o as At, p as Ot, q as Mt, r as zt, s as Lt, t as Pt, C as Q, u as Dt, O as Rt, v as Nt, w as Ft, x as $t, y as jt, z as Bt, A as qe, D as Ws, F as Ks, E as Zs, G as Xs, H as Qs, I as Js, J as eo, K as to, L as no, N as ro, Q as io, R as so, S as oo, T as W, U as se, V as oe, W as ae, X as ce, Y as ue, Z as ao, _ as Ma, $ as ze, a0 as lt, a1 as D, a2 as cr, a3 as I, a4 as vn, a5 as ee, a6 as J, a7 as ke, a8 as he, a9 as K, aa as ur, ab as za, ac as qt, ad as pe, ae as Rn, af as gi, ag as ge, ah as La, ai as Pa, aj as Da, ak as lr, al as Jn, am as co, an as fr, ao as uo, ap as Ze, aq as Xt, ar as Ra, as as ye, at as De, au as Te, av as Nn, aw as Fn, ax as bn, ay as lo, az as Na, aA as Fa, aB as ct, aC as it, aD as rt, aE as fo, aF as Ge, aG as st, aH as Yt, aI as $a, aJ as er, aK as ja, aL as Ba, aM as dr, aN as Hi, aO as He, aP as Kr, aQ as $n, aR as sn, aS as jn, aT as Ha, aU as Ua, aV as Bn, aW as Xe, aX as Ga, aY as Ui, aZ as on, a_ as Va, a$ as qa, b0 as Ya, b1 as Hn, b2 as ft, b3 as Zr, b4 as Ut, b5 as Xr, b6 as tr, b7 as ho, b8 as Kn, b9 as et, ba as Gi, bb as Wa, bc as Ka } from "./types-B2oLQKyl.js";
|
|
7
|
+
var yi = Mn(), j = (e) => On(e, yi), vi = Mn();
|
|
8
|
+
j.write = (e) => On(e, vi);
|
|
9
|
+
var hr = Mn();
|
|
10
|
+
j.onStart = (e) => On(e, hr);
|
|
11
|
+
var bi = Mn();
|
|
12
|
+
j.onFrame = (e) => On(e, bi);
|
|
13
|
+
var _i = Mn();
|
|
14
|
+
j.onFinish = (e) => On(e, _i);
|
|
15
|
+
var Qt = [];
|
|
16
16
|
j.setTimeout = (e, t) => {
|
|
17
17
|
const n = j.now() + t, r = () => {
|
|
18
|
-
const s =
|
|
19
|
-
~s &&
|
|
18
|
+
const s = Qt.findIndex((o) => o.cancel == r);
|
|
19
|
+
~s && Qt.splice(s, 1), at -= ~s ? 1 : 0;
|
|
20
20
|
}, i = { time: n, handler: e, cancel: r };
|
|
21
|
-
return
|
|
21
|
+
return Qt.splice(po(n), 0, i), at += 1, mo(), i;
|
|
22
22
|
};
|
|
23
|
-
var po = (e) => ~(~
|
|
23
|
+
var po = (e) => ~(~Qt.findIndex((t) => t.time > e) || ~Qt.length);
|
|
24
24
|
j.cancel = (e) => {
|
|
25
25
|
hr.delete(e), bi.delete(e), _i.delete(e), yi.delete(e), vi.delete(e);
|
|
26
26
|
};
|
|
@@ -58,40 +58,40 @@ j.advance = () => {
|
|
|
58
58
|
"Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"
|
|
59
59
|
) : yo();
|
|
60
60
|
};
|
|
61
|
-
var
|
|
62
|
-
function
|
|
61
|
+
var ot = -1, at = 0, Qr = !1;
|
|
62
|
+
function On(e, t) {
|
|
63
63
|
Qr ? (t.delete(e), e(0)) : (t.add(e), mo());
|
|
64
64
|
}
|
|
65
65
|
function mo() {
|
|
66
|
-
|
|
66
|
+
ot < 0 && (ot = 0, j.frameLoop !== "demand" && wi(go));
|
|
67
67
|
}
|
|
68
68
|
function Za() {
|
|
69
|
-
|
|
69
|
+
ot = -1;
|
|
70
70
|
}
|
|
71
71
|
function go() {
|
|
72
|
-
~
|
|
72
|
+
~ot && (wi(go), j.batchedUpdates(yo));
|
|
73
73
|
}
|
|
74
74
|
function yo() {
|
|
75
|
-
const e =
|
|
76
|
-
|
|
77
|
-
const t = po(
|
|
78
|
-
if (t && (vo(
|
|
75
|
+
const e = ot;
|
|
76
|
+
ot = j.now();
|
|
77
|
+
const t = po(ot);
|
|
78
|
+
if (t && (vo(Qt.splice(0, t), (n) => n.handler()), at -= t), !at) {
|
|
79
79
|
Za();
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
|
-
hr.flush(), yi.flush(e ? Math.min(64,
|
|
82
|
+
hr.flush(), yi.flush(e ? Math.min(64, ot - e) : 16.667), bi.flush(), vi.flush(), _i.flush();
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Mn() {
|
|
85
85
|
let e = /* @__PURE__ */ new Set(), t = e;
|
|
86
86
|
return {
|
|
87
87
|
add(n) {
|
|
88
|
-
|
|
88
|
+
at += t == e && !e.has(n) ? 1 : 0, e.add(n);
|
|
89
89
|
},
|
|
90
90
|
delete(n) {
|
|
91
|
-
return
|
|
91
|
+
return at -= t == e && e.has(n) ? 1 : 0, e.delete(n);
|
|
92
92
|
},
|
|
93
93
|
flush(n) {
|
|
94
|
-
t.size && (e = /* @__PURE__ */ new Set(),
|
|
94
|
+
t.size && (e = /* @__PURE__ */ new Set(), at -= t.size, vo(t, (r) => r(n) && e.add(r)), at += e.size, t = e);
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
}
|
|
@@ -110,7 +110,7 @@ var Xa = Object.defineProperty, Qa = (e, t) => {
|
|
|
110
110
|
}, $e = {};
|
|
111
111
|
Qa($e, {
|
|
112
112
|
assign: () => ec,
|
|
113
|
-
colors: () =>
|
|
113
|
+
colors: () => ut,
|
|
114
114
|
createStringInterpolator: () => Ei,
|
|
115
115
|
skipAnimation: () => _o,
|
|
116
116
|
to: () => bo,
|
|
@@ -146,21 +146,21 @@ function Ve(e, t, n) {
|
|
|
146
146
|
e.hasOwnProperty(r) && t.call(n, e[r], r);
|
|
147
147
|
}
|
|
148
148
|
var _e = (e) => x.und(e) ? [] : x.arr(e) ? e : [e];
|
|
149
|
-
function
|
|
149
|
+
function dn(e, t) {
|
|
150
150
|
if (e.size) {
|
|
151
151
|
const n = Array.from(e);
|
|
152
152
|
e.clear(), F(n, t);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
var
|
|
156
|
-
e.to && (bo = e.to), e.now && (j.now = e.now), e.colors !== void 0 && (
|
|
157
|
-
},
|
|
155
|
+
var ln = (e, ...t) => dn(e, (n) => n(...t)), Si = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), Ei, bo, ut = null, _o = !1, xi = Jr, ec = (e) => {
|
|
156
|
+
e.to && (bo = e.to), e.now && (j.now = e.now), e.colors !== void 0 && (ut = e.colors), e.skipAnimation != null && (_o = e.skipAnimation), e.createStringInterpolator && (Ei = e.createStringInterpolator), e.requestAnimationFrame && j.use(e.requestAnimationFrame), e.batchedUpdates && (j.batchedUpdates = e.batchedUpdates), e.willAdvance && (xi = e.willAdvance), e.frameLoop && (j.frameLoop = e.frameLoop);
|
|
157
|
+
}, hn = /* @__PURE__ */ new Set(), Me = [], kr = [], nr = 0, pr = {
|
|
158
158
|
get idle() {
|
|
159
|
-
return !
|
|
159
|
+
return !hn.size && !Me.length;
|
|
160
160
|
},
|
|
161
161
|
/** Advance the given animation on every frame until idle. */
|
|
162
162
|
start(e) {
|
|
163
|
-
nr > e.priority ? (
|
|
163
|
+
nr > e.priority ? (hn.add(e), j.onStart(tc)) : (wo(e), j(ei));
|
|
164
164
|
},
|
|
165
165
|
/** Advance all animations by the given time. */
|
|
166
166
|
advance: ei,
|
|
@@ -179,11 +179,11 @@ var un = (e, ...t) => fn(e, (n) => n(...t)), Si = () => typeof window > "u" || !
|
|
|
179
179
|
* ☠️ Never call this from within the frameloop.
|
|
180
180
|
*/
|
|
181
181
|
clear() {
|
|
182
|
-
Me = [],
|
|
182
|
+
Me = [], hn.clear();
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
function tc() {
|
|
186
|
-
|
|
186
|
+
hn.forEach(wo), hn.clear(), j(ei);
|
|
187
187
|
}
|
|
188
188
|
function wo(e) {
|
|
189
189
|
Me.includes(e) || So(e);
|
|
@@ -367,13 +367,13 @@ var sc = new RegExp("rgb" + mr(Fe, Fe, Fe)), oc = new RegExp("rgba" + mr(Fe, Fe,
|
|
|
367
367
|
), uc = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, lc = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, fc = /^#([0-9a-fA-F]{6})$/, dc = /^#([0-9a-fA-F]{8})$/;
|
|
368
368
|
function hc(e) {
|
|
369
369
|
let t;
|
|
370
|
-
return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = fc.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 :
|
|
371
|
-
|
|
372
|
-
|
|
370
|
+
return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = fc.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : ut && ut[e] !== void 0 ? ut[e] : (t = sc.exec(e)) ? (Wt(t[1]) << 24 | // r
|
|
371
|
+
Wt(t[2]) << 16 | // g
|
|
372
|
+
Wt(t[3]) << 8 | // b
|
|
373
373
|
255) >>> // a
|
|
374
|
-
0 : (t = oc.exec(e)) ? (
|
|
375
|
-
|
|
376
|
-
|
|
374
|
+
0 : (t = oc.exec(e)) ? (Wt(t[1]) << 24 | // r
|
|
375
|
+
Wt(t[2]) << 16 | // g
|
|
376
|
+
Wt(t[3]) << 8 | // b
|
|
377
377
|
Yi(t[4])) >>> // a
|
|
378
378
|
0 : (t = uc.exec(e)) ? parseInt(
|
|
379
379
|
t[1] + t[1] + // r
|
|
@@ -392,17 +392,17 @@ function hc(e) {
|
|
|
392
392
|
) >>> 0 : (t = ac.exec(e)) ? (Vi(
|
|
393
393
|
qi(t[1]),
|
|
394
394
|
// h
|
|
395
|
-
|
|
395
|
+
Un(t[2]),
|
|
396
396
|
// s
|
|
397
|
-
|
|
397
|
+
Un(t[3])
|
|
398
398
|
// l
|
|
399
399
|
) | 255) >>> // a
|
|
400
400
|
0 : (t = cc.exec(e)) ? (Vi(
|
|
401
401
|
qi(t[1]),
|
|
402
402
|
// h
|
|
403
|
-
|
|
403
|
+
Un(t[2]),
|
|
404
404
|
// s
|
|
405
|
-
|
|
405
|
+
Un(t[3])
|
|
406
406
|
// l
|
|
407
407
|
) | Yi(t[4])) >>> // a
|
|
408
408
|
0 : null;
|
|
@@ -414,7 +414,7 @@ function Vi(e, t, n) {
|
|
|
414
414
|
const r = n < 0.5 ? n * (1 + t) : n + t - n * t, i = 2 * n - r, s = Ir(i, r, e + 1 / 3), o = Ir(i, r, e), u = Ir(i, r, e - 1 / 3);
|
|
415
415
|
return Math.round(s * 255) << 24 | Math.round(o * 255) << 16 | Math.round(u * 255) << 8;
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Wt(e) {
|
|
418
418
|
const t = parseInt(e, 10);
|
|
419
419
|
return t < 0 ? 0 : t > 255 ? 255 : t;
|
|
420
420
|
}
|
|
@@ -425,7 +425,7 @@ function Yi(e) {
|
|
|
425
425
|
const t = parseFloat(e);
|
|
426
426
|
return t < 0 ? 0 : t > 1 ? 255 : Math.round(t * 255);
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Un(e) {
|
|
429
429
|
const t = parseFloat(e);
|
|
430
430
|
return t < 0 ? 0 : t > 100 ? 1 : t / 100;
|
|
431
431
|
}
|
|
@@ -436,11 +436,11 @@ function Wi(e) {
|
|
|
436
436
|
const n = (t & 4278190080) >>> 24, r = (t & 16711680) >>> 16, i = (t & 65280) >>> 8, s = (t & 255) / 255;
|
|
437
437
|
return `rgba(${n}, ${r}, ${i}, ${s})`;
|
|
438
438
|
}
|
|
439
|
-
var
|
|
439
|
+
var _n = (e, t, n) => {
|
|
440
440
|
if (x.fun(e))
|
|
441
441
|
return e;
|
|
442
442
|
if (x.arr(e))
|
|
443
|
-
return
|
|
443
|
+
return _n({
|
|
444
444
|
range: e,
|
|
445
445
|
output: t,
|
|
446
446
|
extrapolate: n
|
|
@@ -484,7 +484,7 @@ var gc = (e, t = "end") => (n) => {
|
|
|
484
484
|
n = t === "end" ? Math.min(n, 0.999) : Math.max(n, 1e-3);
|
|
485
485
|
const r = n * e, i = t === "end" ? Math.floor(r) : Math.ceil(r);
|
|
486
486
|
return rc(0, 1, i / e);
|
|
487
|
-
}, ir = 1.70158,
|
|
487
|
+
}, ir = 1.70158, Gn = ir * 1.525, Ki = ir + 1, Zi = 2 * Math.PI / 3, Xi = 2 * Math.PI / 4.5, Vn = (e) => e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + 0.75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + 0.9375 : 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375, yc = {
|
|
488
488
|
linear: (e) => e,
|
|
489
489
|
easeInQuad: (e) => e * e,
|
|
490
490
|
easeOutQuad: (e) => 1 - (1 - e) * (1 - e),
|
|
@@ -509,20 +509,20 @@ var gc = (e, t = "end") => (n) => {
|
|
|
509
509
|
easeInOutCirc: (e) => e < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * e, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * e + 2, 2)) + 1) / 2,
|
|
510
510
|
easeInBack: (e) => Ki * e * e * e - ir * e * e,
|
|
511
511
|
easeOutBack: (e) => 1 + Ki * Math.pow(e - 1, 3) + ir * Math.pow(e - 1, 2),
|
|
512
|
-
easeInOutBack: (e) => e < 0.5 ? Math.pow(2 * e, 2) * ((
|
|
512
|
+
easeInOutBack: (e) => e < 0.5 ? Math.pow(2 * e, 2) * ((Gn + 1) * 2 * e - Gn) / 2 : (Math.pow(2 * e - 2, 2) * ((Gn + 1) * (e * 2 - 2) + Gn) + 2) / 2,
|
|
513
513
|
easeInElastic: (e) => e === 0 ? 0 : e === 1 ? 1 : -Math.pow(2, 10 * e - 10) * Math.sin((e * 10 - 10.75) * Zi),
|
|
514
514
|
easeOutElastic: (e) => e === 0 ? 0 : e === 1 ? 1 : Math.pow(2, -10 * e) * Math.sin((e * 10 - 0.75) * Zi) + 1,
|
|
515
515
|
easeInOutElastic: (e) => e === 0 ? 0 : e === 1 ? 1 : e < 0.5 ? -(Math.pow(2, 20 * e - 10) * Math.sin((20 * e - 11.125) * Xi)) / 2 : Math.pow(2, -20 * e + 10) * Math.sin((20 * e - 11.125) * Xi) / 2 + 1,
|
|
516
|
-
easeInBounce: (e) => 1 -
|
|
517
|
-
easeOutBounce:
|
|
518
|
-
easeInOutBounce: (e) => e < 0.5 ? (1 -
|
|
516
|
+
easeInBounce: (e) => 1 - Vn(1 - e),
|
|
517
|
+
easeOutBounce: Vn,
|
|
518
|
+
easeInOutBounce: (e) => e < 0.5 ? (1 - Vn(1 - 2 * e)) / 2 : (1 + Vn(2 * e - 1)) / 2,
|
|
519
519
|
steps: gc
|
|
520
|
-
},
|
|
520
|
+
}, wn = Symbol.for("FluidValue.get"), en = Symbol.for("FluidValue.observers"), Ae = (e) => !!(e && e[wn]), Ee = (e) => e && e[wn] ? e[wn]() : e, Qi = (e) => e[en] || null;
|
|
521
521
|
function vc(e, t) {
|
|
522
522
|
e.eventObserved ? e.eventObserved(t) : e(t);
|
|
523
523
|
}
|
|
524
|
-
function
|
|
525
|
-
const n = e[
|
|
524
|
+
function Sn(e, t) {
|
|
525
|
+
const n = e[en];
|
|
526
526
|
n && n.forEach((r) => {
|
|
527
527
|
vc(r, t);
|
|
528
528
|
});
|
|
@@ -533,19 +533,19 @@ var Eo = class {
|
|
|
533
533
|
throw Error("Unknown getter");
|
|
534
534
|
bc(this, e);
|
|
535
535
|
}
|
|
536
|
-
}, bc = (e, t) => xo(e,
|
|
537
|
-
function
|
|
538
|
-
if (e[
|
|
539
|
-
let n = e[
|
|
540
|
-
n || xo(e,
|
|
536
|
+
}, bc = (e, t) => xo(e, wn, t);
|
|
537
|
+
function tn(e, t) {
|
|
538
|
+
if (e[wn]) {
|
|
539
|
+
let n = e[en];
|
|
540
|
+
n || xo(e, en, n = /* @__PURE__ */ new Set()), n.has(t) || (n.add(t), e.observerAdded && e.observerAdded(n.size, t));
|
|
541
541
|
}
|
|
542
542
|
return t;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
545
|
-
const n = e[
|
|
544
|
+
function En(e, t) {
|
|
545
|
+
const n = e[en];
|
|
546
546
|
if (n && n.has(t)) {
|
|
547
547
|
const r = n.size - 1;
|
|
548
|
-
r ? n.delete(t) : e[
|
|
548
|
+
r ? n.delete(t) : e[en] = null, e.observerRemoved && e.observerRemoved(r, t);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
var xo = (e, t, n) => Object.defineProperty(e, t, {
|
|
@@ -575,9 +575,9 @@ var xo = (e, t, n) => Object.defineProperty(e, t, {
|
|
|
575
575
|
const [, n, r] = t;
|
|
576
576
|
return [n, r];
|
|
577
577
|
}, Tr, Ec = (e, t, n, r, i) => `rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`, ko = (e) => {
|
|
578
|
-
Tr || (Tr =
|
|
578
|
+
Tr || (Tr = ut ? (
|
|
579
579
|
// match color names, ignore partial matches
|
|
580
|
-
new RegExp(`(${Object.keys(
|
|
580
|
+
new RegExp(`(${Object.keys(ut).join("|")})(?!\\w)`, "g")
|
|
581
581
|
) : (
|
|
582
582
|
// never match
|
|
583
583
|
/^\b$/
|
|
@@ -589,7 +589,7 @@ var xo = (e, t, n) => Object.defineProperty(e, t, {
|
|
|
589
589
|
return u[o];
|
|
590
590
|
})
|
|
591
591
|
).map(
|
|
592
|
-
(s) =>
|
|
592
|
+
(s) => _n({ ...e, output: s })
|
|
593
593
|
);
|
|
594
594
|
return (s) => {
|
|
595
595
|
var a;
|
|
@@ -622,11 +622,11 @@ function Ic() {
|
|
|
622
622
|
}
|
|
623
623
|
function yr(e) {
|
|
624
624
|
return x.str(e) && (e[0] == "#" || /\d/.test(e) || // Do not identify a CSS variable as an AnimatedString if its SSR
|
|
625
|
-
!Si() && gr.test(e) || e in (
|
|
625
|
+
!Si() && gr.test(e) || e in (ut || {}));
|
|
626
626
|
}
|
|
627
|
-
var
|
|
627
|
+
var Gt = Si() ? q : qs, Tc = () => {
|
|
628
628
|
const e = te(!1);
|
|
629
|
-
return
|
|
629
|
+
return Gt(() => (e.current = !0, () => {
|
|
630
630
|
e.current = !1;
|
|
631
631
|
}), []), e;
|
|
632
632
|
};
|
|
@@ -643,7 +643,7 @@ function ti(e) {
|
|
|
643
643
|
t.current = e;
|
|
644
644
|
}), t.current;
|
|
645
645
|
}
|
|
646
|
-
var
|
|
646
|
+
var xn = Symbol.for("Animated:node"), Oc = (e) => !!e && e[xn] === e, Ue = (e) => e && e[xn], Ti = (e, t) => Ja(e, xn, t), vr = (e) => e && e[xn] && e[xn].getPayload(), To = class {
|
|
647
647
|
constructor() {
|
|
648
648
|
Ti(this, this);
|
|
649
649
|
}
|
|
@@ -674,7 +674,7 @@ var En = Symbol.for("Animated:node"), Oc = (e) => !!e && e[En] === e, Ue = (e) =
|
|
|
674
674
|
}
|
|
675
675
|
}, sr = class Oo extends br {
|
|
676
676
|
constructor(t) {
|
|
677
|
-
super(0), this._string = null, this._toString =
|
|
677
|
+
super(0), this._string = null, this._toString = _n({
|
|
678
678
|
output: [t, t]
|
|
679
679
|
});
|
|
680
680
|
}
|
|
@@ -698,7 +698,7 @@ var En = Symbol.for("Animated:node"), Oc = (e) => !!e && e[En] === e, Ue = (e) =
|
|
|
698
698
|
return !0;
|
|
699
699
|
}
|
|
700
700
|
reset(t) {
|
|
701
|
-
t && (this._toString =
|
|
701
|
+
t && (this._toString = _n({
|
|
702
702
|
output: [this.getValue(), t]
|
|
703
703
|
})), this._value = 0, super.reset();
|
|
704
704
|
}
|
|
@@ -774,17 +774,17 @@ var es = (e, t) => {
|
|
|
774
774
|
return;
|
|
775
775
|
(m ? t.applyAnimatedValues(m, u.getValue(!0)) : !1) === !1 && c();
|
|
776
776
|
}, h = new Lc(l, a), f = te(void 0);
|
|
777
|
-
|
|
777
|
+
Gt(() => (f.current = h, F(a, (m) => tn(m, h)), () => {
|
|
778
778
|
f.current && (F(
|
|
779
779
|
f.current.deps,
|
|
780
|
-
(m) =>
|
|
780
|
+
(m) => En(m, f.current)
|
|
781
781
|
), j.cancel(f.current.update));
|
|
782
782
|
})), q(l, []), Ii(() => () => {
|
|
783
783
|
const m = f.current;
|
|
784
|
-
F(m.deps, (g) =>
|
|
784
|
+
F(m.deps, (g) => En(g, m));
|
|
785
785
|
});
|
|
786
786
|
const p = t.getComponentProps(u.getValue());
|
|
787
|
-
return /* @__PURE__ */
|
|
787
|
+
return /* @__PURE__ */ fn.createElement(e, { ...p, ref: o });
|
|
788
788
|
});
|
|
789
789
|
}, Lc = class {
|
|
790
790
|
constructor(e, t) {
|
|
@@ -826,7 +826,7 @@ var ts = Symbol.for("AnimatedComponent"), Rc = (e, {
|
|
|
826
826
|
function xe(e, ...t) {
|
|
827
827
|
return x.fun(e) ? e(...t) : e;
|
|
828
828
|
}
|
|
829
|
-
var
|
|
829
|
+
var pn = (e, t) => e === !0 || !!(t && e && (x.fun(e) ? e(t) : _e(e).includes(t))), zo = (e, t) => x.obj(e) ? t && e[t] : e, Lo = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, Nc = (e) => e, wr = (e, t = Nc) => {
|
|
830
830
|
let n = Fc;
|
|
831
831
|
e.default && e.default !== !0 && (e = e.default, n = Object.keys(e));
|
|
832
832
|
const r = {};
|
|
@@ -895,8 +895,8 @@ function Ai(e) {
|
|
|
895
895
|
}
|
|
896
896
|
return { ...e };
|
|
897
897
|
}
|
|
898
|
-
function
|
|
899
|
-
return e = Ee(e), x.arr(e) ? e.map(
|
|
898
|
+
function Cn(e) {
|
|
899
|
+
return e = Ee(e), x.arr(e) ? e.map(Cn) : yr(e) ? $e.createStringInterpolator({
|
|
900
900
|
range: [0, 1],
|
|
901
901
|
output: [e, e]
|
|
902
902
|
})(1) : e;
|
|
@@ -957,13 +957,13 @@ var is = [], Uc = class {
|
|
|
957
957
|
};
|
|
958
958
|
function Ro(e, { key: t, props: n, defaultProps: r, state: i, actions: s }) {
|
|
959
959
|
return new Promise((o, u) => {
|
|
960
|
-
let a, c, l =
|
|
960
|
+
let a, c, l = pn(n.cancel ?? (r == null ? void 0 : r.cancel), t);
|
|
961
961
|
if (l)
|
|
962
962
|
p();
|
|
963
963
|
else {
|
|
964
|
-
x.und(n.pause) || (i.paused =
|
|
964
|
+
x.und(n.pause) || (i.paused = pn(n.pause, t));
|
|
965
965
|
let m = r == null ? void 0 : r.pause;
|
|
966
|
-
m !== !0 && (m = i.paused ||
|
|
966
|
+
m !== !0 && (m = i.paused || pn(m, t)), a = xe(n.delay || 0, t), m ? (i.resumeQueue.add(f), s.pause()) : (s.resume(), f());
|
|
967
967
|
}
|
|
968
968
|
function h() {
|
|
969
969
|
i.resumeQueue.add(f), i.timeouts.delete(c), c.cancel(), a = c.time - j.now();
|
|
@@ -981,7 +981,7 @@ function Ro(e, { key: t, props: n, defaultProps: r, state: i, actions: s }) {
|
|
|
981
981
|
}
|
|
982
982
|
});
|
|
983
983
|
}
|
|
984
|
-
var Mi = (e, t) => t.length == 1 ? t[0] : t.some((n) => n.cancelled) ?
|
|
984
|
+
var Mi = (e, t) => t.length == 1 ? t[0] : t.some((n) => n.cancelled) ? Jt(e.get()) : t.every((n) => n.noop) ? No(e.get()) : Re(
|
|
985
985
|
e.get(),
|
|
986
986
|
t.every((n) => n.finished)
|
|
987
987
|
), No = (e) => ({
|
|
@@ -993,7 +993,7 @@ var Mi = (e, t) => t.length == 1 ? t[0] : t.some((n) => n.cancelled) ? Qt(e.get(
|
|
|
993
993
|
value: e,
|
|
994
994
|
finished: t,
|
|
995
995
|
cancelled: n
|
|
996
|
-
}),
|
|
996
|
+
}), Jt = (e) => ({
|
|
997
997
|
value: e,
|
|
998
998
|
cancelled: !0,
|
|
999
999
|
finished: !1
|
|
@@ -1015,7 +1015,7 @@ function Fo(e, t, n, r) {
|
|
|
1015
1015
|
), p = (y) => {
|
|
1016
1016
|
const v = (
|
|
1017
1017
|
// The `cancel` prop or `stop` method was used.
|
|
1018
|
-
i <= (n.cancelId || 0) &&
|
|
1018
|
+
i <= (n.cancelId || 0) && Jt(r) || // The async `to` prop was replaced.
|
|
1019
1019
|
i !== n.asyncId && Re(r, !1)
|
|
1020
1020
|
);
|
|
1021
1021
|
if (v)
|
|
@@ -1024,7 +1024,7 @@ function Fo(e, t, n, r) {
|
|
|
1024
1024
|
const w = new ss(), S = new os();
|
|
1025
1025
|
return (async () => {
|
|
1026
1026
|
if ($e.skipAnimation)
|
|
1027
|
-
throw
|
|
1027
|
+
throw kn(n), S.result = Re(r, !1), h(S), S;
|
|
1028
1028
|
p(w);
|
|
1029
1029
|
const C = x.obj(y) ? { ...y } : { ...v, to: y };
|
|
1030
1030
|
C.parentId = i, Ve(c, (A, M) => {
|
|
@@ -1038,7 +1038,7 @@ function Fo(e, t, n, r) {
|
|
|
1038
1038
|
};
|
|
1039
1039
|
let g;
|
|
1040
1040
|
if ($e.skipAnimation)
|
|
1041
|
-
return
|
|
1041
|
+
return kn(n), Re(r, !1);
|
|
1042
1042
|
try {
|
|
1043
1043
|
let y;
|
|
1044
1044
|
x.arr(e) ? y = (async (v) => {
|
|
@@ -1060,8 +1060,8 @@ function Fo(e, t, n, r) {
|
|
|
1060
1060
|
}), g;
|
|
1061
1061
|
})();
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1064
|
-
|
|
1063
|
+
function kn(e, t) {
|
|
1064
|
+
dn(e.timeouts, (n) => n.cancel()), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t);
|
|
1065
1065
|
}
|
|
1066
1066
|
var ss = class extends Error {
|
|
1067
1067
|
constructor() {
|
|
@@ -1113,7 +1113,7 @@ var ss = class extends Error {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
/** Tell our children about our new value */
|
|
1115
1115
|
_onChange(e, t = !1) {
|
|
1116
|
-
|
|
1116
|
+
Sn(this, {
|
|
1117
1117
|
type: "change",
|
|
1118
1118
|
parent: this,
|
|
1119
1119
|
value: e,
|
|
@@ -1122,13 +1122,13 @@ var ss = class extends Error {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
/** Tell our children about our new priority */
|
|
1124
1124
|
_onPriorityChange(e) {
|
|
1125
|
-
this.idle || pr.sort(this),
|
|
1125
|
+
this.idle || pr.sort(this), Sn(this, {
|
|
1126
1126
|
type: "priority",
|
|
1127
1127
|
parent: this,
|
|
1128
1128
|
priority: e
|
|
1129
1129
|
});
|
|
1130
1130
|
}
|
|
1131
|
-
},
|
|
1131
|
+
}, Vt = Symbol.for("SpringPhase"), $o = 1, jo = 2, Bo = 4, Ar = (e) => (e[Vt] & $o) > 0, tt = (e) => (e[Vt] & jo) > 0, an = (e) => (e[Vt] & Bo) > 0, as = (e, t) => t ? e[Vt] |= jo | $o : e[Vt] &= -3, cs = (e, t) => t ? e[Vt] |= Bo : e[Vt] &= -5, Vc = class extends zi {
|
|
1132
1132
|
constructor(e, t) {
|
|
1133
1133
|
if (super(), this.animation = new Uc(), this.defaultProps = {}, this._state = {
|
|
1134
1134
|
paused: !1,
|
|
@@ -1143,7 +1143,7 @@ var ss = class extends Error {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
/** Equals true when not advancing on each frame. */
|
|
1145
1145
|
get idle() {
|
|
1146
|
-
return !(tt(this) || this._state.asyncTo) ||
|
|
1146
|
+
return !(tt(this) || this._state.asyncTo) || an(this);
|
|
1147
1147
|
}
|
|
1148
1148
|
get goal() {
|
|
1149
1149
|
return Ee(this.animation.to);
|
|
@@ -1169,7 +1169,7 @@ var ss = class extends Error {
|
|
|
1169
1169
|
* When true, all current and future animations are paused.
|
|
1170
1170
|
*/
|
|
1171
1171
|
get isPaused() {
|
|
1172
|
-
return
|
|
1172
|
+
return an(this);
|
|
1173
1173
|
}
|
|
1174
1174
|
/**
|
|
1175
1175
|
*
|
|
@@ -1273,7 +1273,7 @@ var ss = class extends Error {
|
|
|
1273
1273
|
*/
|
|
1274
1274
|
stop(e) {
|
|
1275
1275
|
const { to: t } = this.animation;
|
|
1276
|
-
return this._focus(this.get()),
|
|
1276
|
+
return this._focus(this.get()), kn(this._state, e && this._lastCallId), j.batchedUpdates(() => this._stop(t, e)), this;
|
|
1277
1277
|
}
|
|
1278
1278
|
/** Restart the animation. */
|
|
1279
1279
|
reset() {
|
|
@@ -1305,7 +1305,7 @@ var ss = class extends Error {
|
|
|
1305
1305
|
e,
|
|
1306
1306
|
(o, u) => /^on/.test(u) ? zo(o, n) : o
|
|
1307
1307
|
)
|
|
1308
|
-
), ls(this, e, "onProps"),
|
|
1308
|
+
), ls(this, e, "onProps"), un(this, "onProps", e, this);
|
|
1309
1309
|
const i = this._prepareNode(e);
|
|
1310
1310
|
if (Object.isFrozen(this))
|
|
1311
1311
|
throw Error(
|
|
@@ -1319,18 +1319,18 @@ var ss = class extends Error {
|
|
|
1319
1319
|
state: s,
|
|
1320
1320
|
actions: {
|
|
1321
1321
|
pause: () => {
|
|
1322
|
-
|
|
1322
|
+
an(this) || (cs(this, !0), ln(s.pauseQueue), un(
|
|
1323
1323
|
this,
|
|
1324
1324
|
"onPause",
|
|
1325
|
-
Re(this,
|
|
1325
|
+
Re(this, cn(this, this.animation.to)),
|
|
1326
1326
|
this
|
|
1327
1327
|
));
|
|
1328
1328
|
},
|
|
1329
1329
|
resume: () => {
|
|
1330
|
-
|
|
1330
|
+
an(this) && (cs(this, !1), tt(this) && this._resume(), ln(s.resumeQueue), un(
|
|
1331
1331
|
this,
|
|
1332
1332
|
"onResume",
|
|
1333
|
-
Re(this,
|
|
1333
|
+
Re(this, cn(this, this.animation.to)),
|
|
1334
1334
|
this
|
|
1335
1335
|
));
|
|
1336
1336
|
},
|
|
@@ -1348,13 +1348,13 @@ var ss = class extends Error {
|
|
|
1348
1348
|
/** Merge props into the current animation */
|
|
1349
1349
|
_merge(e, t, n) {
|
|
1350
1350
|
if (t.cancel)
|
|
1351
|
-
return this.stop(!0), n(
|
|
1351
|
+
return this.stop(!0), n(Jt(this));
|
|
1352
1352
|
const r = !x.und(e.to), i = !x.und(e.from);
|
|
1353
1353
|
if (r || i)
|
|
1354
1354
|
if (t.callId > this._lastToId)
|
|
1355
1355
|
this._lastToId = t.callId;
|
|
1356
1356
|
else
|
|
1357
|
-
return n(
|
|
1357
|
+
return n(Jt(this));
|
|
1358
1358
|
const { key: s, defaultProps: o, animation: u } = this, { to: a, from: c } = u;
|
|
1359
1359
|
let { to: l = a, from: h = c } = e;
|
|
1360
1360
|
i && !r && (!t.default || x.und(l)) && (l = h), t.reverse && ([l, h] = [h, l]);
|
|
@@ -1376,8 +1376,8 @@ var ss = class extends Error {
|
|
|
1376
1376
|
// When `reset` is undefined, the `from` prop implies `reset: true`,
|
|
1377
1377
|
// except for declarative updates. When `reset` is defined, there
|
|
1378
1378
|
// must exist a value to animate from.
|
|
1379
|
-
x.und(t.reset) ? i && !t.default : !x.und(h) &&
|
|
1380
|
-
), C = S ? h : this.get(), E =
|
|
1379
|
+
x.und(t.reset) ? i && !t.default : !x.und(h) && pn(t.reset, s)
|
|
1380
|
+
), C = S ? h : this.get(), E = Cn(l), A = x.num(E) || x.arr(E) || yr(E), M = !m && (!A || pn(o.immediate || t.immediate, s));
|
|
1381
1381
|
if (p) {
|
|
1382
1382
|
const z = ni(l);
|
|
1383
1383
|
if (z !== w.constructor)
|
|
@@ -1392,13 +1392,13 @@ var ss = class extends Error {
|
|
|
1392
1392
|
let P = Ae(l), R = !1;
|
|
1393
1393
|
if (!P) {
|
|
1394
1394
|
const z = S || !Ar(this) && f;
|
|
1395
|
-
(p || z) && (R = Ke(
|
|
1395
|
+
(p || z) && (R = Ke(Cn(C), E), P = !R), (!Ke(u.immediate, M) && !M || !Ke(g.decay, y) || !Ke(g.velocity, v)) && (P = !0);
|
|
1396
1396
|
}
|
|
1397
1397
|
if (R && tt(this) && (u.changed && !S ? P = !0 : P || this._stop(a)), !m && ((P || Ae(a)) && (u.values = w.getPayload(), u.toValues = Ae(l) ? null : L == sr ? [1] : _e(E)), u.immediate != M && (u.immediate = M, !M && !S && this._set(a)), P)) {
|
|
1398
1398
|
const { onRest: z } = u;
|
|
1399
1399
|
F(Yc, (U) => ls(this, t, U));
|
|
1400
|
-
const B = Re(this,
|
|
1401
|
-
|
|
1400
|
+
const B = Re(this, cn(this, a));
|
|
1401
|
+
ln(this._pendingCalls, B), this._pendingCalls.add(n), u.changed && j.batchedUpdates(() => {
|
|
1402
1402
|
var U;
|
|
1403
1403
|
u.changed = !S, z == null || z(B, this), S ? xe(o.onRest, B) : (U = u.onStart) == null || U.call(u, B, this);
|
|
1404
1404
|
});
|
|
@@ -1413,11 +1413,11 @@ var ss = class extends Error {
|
|
|
1413
1413
|
_attach() {
|
|
1414
1414
|
let e = 0;
|
|
1415
1415
|
const { to: t } = this.animation;
|
|
1416
|
-
Ae(t) && (
|
|
1416
|
+
Ae(t) && (tn(t, this), oi(t) && (e = t.priority + 1)), this.priority = e;
|
|
1417
1417
|
}
|
|
1418
1418
|
_detach() {
|
|
1419
1419
|
const { to: e } = this.animation;
|
|
1420
|
-
Ae(e) &&
|
|
1420
|
+
Ae(e) && En(e, this);
|
|
1421
1421
|
}
|
|
1422
1422
|
/**
|
|
1423
1423
|
* Update the current value from outside the frameloop,
|
|
@@ -1438,10 +1438,10 @@ var ss = class extends Error {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
_onStart() {
|
|
1440
1440
|
const e = this.animation;
|
|
1441
|
-
e.changed || (e.changed = !0,
|
|
1441
|
+
e.changed || (e.changed = !0, un(
|
|
1442
1442
|
this,
|
|
1443
1443
|
"onStart",
|
|
1444
|
-
Re(this,
|
|
1444
|
+
Re(this, cn(this, e.to)),
|
|
1445
1445
|
this
|
|
1446
1446
|
));
|
|
1447
1447
|
}
|
|
@@ -1453,7 +1453,7 @@ var ss = class extends Error {
|
|
|
1453
1453
|
// is added to the frameloop.
|
|
1454
1454
|
_start() {
|
|
1455
1455
|
const e = this.animation;
|
|
1456
|
-
Ue(this).reset(Ee(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), tt(this) || (as(this, !0),
|
|
1456
|
+
Ue(this).reset(Ee(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), tt(this) || (as(this, !0), an(this) || this._resume());
|
|
1457
1457
|
}
|
|
1458
1458
|
_resume() {
|
|
1459
1459
|
$e.skipAnimation ? this.finish() : pr.start(this);
|
|
@@ -1469,24 +1469,24 @@ var ss = class extends Error {
|
|
|
1469
1469
|
const n = this.animation;
|
|
1470
1470
|
F(n.values, (i) => {
|
|
1471
1471
|
i.done = !0;
|
|
1472
|
-
}), n.toValues && (n.onChange = n.onPause = n.onResume = void 0),
|
|
1472
|
+
}), n.toValues && (n.onChange = n.onPause = n.onResume = void 0), Sn(this, {
|
|
1473
1473
|
type: "idle",
|
|
1474
1474
|
parent: this
|
|
1475
1475
|
});
|
|
1476
|
-
const r = t ?
|
|
1477
|
-
|
|
1476
|
+
const r = t ? Jt(this.get()) : Re(this.get(), cn(this, e ?? n.to));
|
|
1477
|
+
ln(this._pendingCalls, r), n.changed && (n.changed = !1, un(this, "onRest", r, this));
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
1480
|
};
|
|
1481
|
-
function
|
|
1482
|
-
const n =
|
|
1481
|
+
function cn(e, t) {
|
|
1482
|
+
const n = Cn(t), r = Cn(e.get());
|
|
1483
1483
|
return Ke(r, n);
|
|
1484
1484
|
}
|
|
1485
1485
|
function Ho(e, t = e.loop, n = e.to) {
|
|
1486
1486
|
const r = xe(t);
|
|
1487
1487
|
if (r) {
|
|
1488
1488
|
const i = r !== !0 && Ai(r), s = (i || e).reverse, o = !i || i.reset;
|
|
1489
|
-
return
|
|
1489
|
+
return In({
|
|
1490
1490
|
...e,
|
|
1491
1491
|
loop: t,
|
|
1492
1492
|
// Avoid updating default props when looping.
|
|
@@ -1506,12 +1506,12 @@ function Ho(e, t = e.loop, n = e.to) {
|
|
|
1506
1506
|
});
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function In(e) {
|
|
1510
1510
|
const { to: t, from: n } = e = Ai(e), r = /* @__PURE__ */ new Set();
|
|
1511
1511
|
return x.obj(t) && us(t, r), x.obj(n) && us(n, r), e.keys = r.size ? Array.from(r) : null, e;
|
|
1512
1512
|
}
|
|
1513
1513
|
function qc(e) {
|
|
1514
|
-
const t =
|
|
1514
|
+
const t = In(e);
|
|
1515
1515
|
return x.und(t.default) && (t.default = wr(t)), t;
|
|
1516
1516
|
}
|
|
1517
1517
|
function us(e, t) {
|
|
@@ -1527,7 +1527,7 @@ var Yc = [
|
|
|
1527
1527
|
function ls(e, t, n) {
|
|
1528
1528
|
e.animation[n] = t[n] !== Lo(t, n) ? zo(t[n], e.key) : void 0;
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function un(e, t, ...n) {
|
|
1531
1531
|
var r, i, s, o;
|
|
1532
1532
|
(i = (r = e.animation)[t]) == null || i.call(r, ...n), (o = (s = e.defaultProps)[t]) == null || o.call(s, ...n);
|
|
1533
1533
|
}
|
|
@@ -1571,7 +1571,7 @@ var Wc = ["onStart", "onChange", "onRest"], Kc = 1, Uo = class {
|
|
|
1571
1571
|
}
|
|
1572
1572
|
/** Push an update onto the queue of each value. */
|
|
1573
1573
|
update(t) {
|
|
1574
|
-
return t && this.queue.push(
|
|
1574
|
+
return t && this.queue.push(In(t)), this;
|
|
1575
1575
|
}
|
|
1576
1576
|
/**
|
|
1577
1577
|
* Start the queued animations for every spring, and resolve the returned
|
|
@@ -1582,7 +1582,7 @@ var Wc = ["onStart", "onChange", "onRest"], Kc = 1, Uo = class {
|
|
|
1582
1582
|
*/
|
|
1583
1583
|
start(t) {
|
|
1584
1584
|
let { queue: n } = this;
|
|
1585
|
-
return t ? n = _e(t).map(
|
|
1585
|
+
return t ? n = _e(t).map(In) : this.queue = [], this._flush ? this._flush(this, n) : (Wo(this, n), ai(this, n));
|
|
1586
1586
|
}
|
|
1587
1587
|
/** @internal */
|
|
1588
1588
|
stop(t, n) {
|
|
@@ -1590,7 +1590,7 @@ var Wc = ["onStart", "onChange", "onRest"], Kc = 1, Uo = class {
|
|
|
1590
1590
|
const r = this.springs;
|
|
1591
1591
|
F(_e(n), (i) => r[i].stop(!!t));
|
|
1592
1592
|
} else
|
|
1593
|
-
|
|
1593
|
+
kn(this._state, this._lastAsyncId), this.each((r) => r.stop(!!t));
|
|
1594
1594
|
return this;
|
|
1595
1595
|
}
|
|
1596
1596
|
/** Freeze the active animation in time */
|
|
@@ -1620,13 +1620,13 @@ var Wc = ["onStart", "onChange", "onRest"], Kc = 1, Uo = class {
|
|
|
1620
1620
|
/** @internal Called at the end of every animation frame */
|
|
1621
1621
|
_onFrame() {
|
|
1622
1622
|
const { onStart: t, onChange: n, onRest: r } = this._events, i = this._active.size > 0, s = this._changed.size > 0;
|
|
1623
|
-
(i && !this._started || s && !this._started) && (this._started = !0,
|
|
1623
|
+
(i && !this._started || s && !this._started) && (this._started = !0, dn(t, ([a, c]) => {
|
|
1624
1624
|
c.value = this.get(), a(c, this, this._item);
|
|
1625
1625
|
}));
|
|
1626
1626
|
const o = !i && this._started, u = s || o && r.size ? this.get() : null;
|
|
1627
|
-
s && n.size &&
|
|
1627
|
+
s && n.size && dn(n, ([a, c]) => {
|
|
1628
1628
|
c.value = u, a(c, this, this._item);
|
|
1629
|
-
}), o && (this._started = !1,
|
|
1629
|
+
}), o && (this._started = !1, dn(r, ([a, c]) => {
|
|
1630
1630
|
c.value = u, a(c, this, this._item);
|
|
1631
1631
|
}));
|
|
1632
1632
|
}
|
|
@@ -1664,7 +1664,7 @@ async function Go(e, t, n) {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
});
|
|
1666
1666
|
const h = e._state;
|
|
1667
|
-
t.pause === !h.paused ? (h.paused = t.pause,
|
|
1667
|
+
t.pause === !h.paused ? (h.paused = t.pause, ln(t.pause ? h.pauseQueue : h.resumeQueue)) : h.paused && (t.pause = !0);
|
|
1668
1668
|
const f = (r || Object.keys(e.springs)).map(
|
|
1669
1669
|
(g) => e.springs[g].start(t)
|
|
1670
1670
|
), p = t.cancel === !0 || Lo(t, "cancel") === !0;
|
|
@@ -1676,7 +1676,7 @@ async function Go(e, t, n) {
|
|
|
1676
1676
|
pause: Jr,
|
|
1677
1677
|
resume: Jr,
|
|
1678
1678
|
start(g, y) {
|
|
1679
|
-
p ? (
|
|
1679
|
+
p ? (kn(h, e._lastAsyncId), y(Jt(e))) : (g.onRest = u, y(
|
|
1680
1680
|
Fo(
|
|
1681
1681
|
l,
|
|
1682
1682
|
g,
|
|
@@ -1701,17 +1701,17 @@ async function Go(e, t, n) {
|
|
|
1701
1701
|
function ci(e, t) {
|
|
1702
1702
|
const n = { ...e.springs };
|
|
1703
1703
|
return t && F(_e(t), (r) => {
|
|
1704
|
-
x.und(r.keys) && (r =
|
|
1704
|
+
x.und(r.keys) && (r = In(r)), x.obj(r.to) || (r = { ...r, to: void 0 }), Yo(n, r, (i) => qo(i));
|
|
1705
1705
|
}), Vo(e, n), n;
|
|
1706
1706
|
}
|
|
1707
1707
|
function Vo(e, t) {
|
|
1708
1708
|
Ve(t, (n, r) => {
|
|
1709
|
-
e.springs[r] || (e.springs[r] = n,
|
|
1709
|
+
e.springs[r] || (e.springs[r] = n, tn(n, e));
|
|
1710
1710
|
});
|
|
1711
1711
|
}
|
|
1712
1712
|
function qo(e, t) {
|
|
1713
1713
|
const n = new Vc();
|
|
1714
|
-
return n.key = e, t &&
|
|
1714
|
+
return n.key = e, t && tn(n, t), n;
|
|
1715
1715
|
}
|
|
1716
1716
|
function Yo(e, t, n) {
|
|
1717
1717
|
t.keys && F(t.keys, (r) => {
|
|
@@ -1723,7 +1723,7 @@ function Wo(e, t) {
|
|
|
1723
1723
|
Yo(e.springs, n, (r) => qo(r, e));
|
|
1724
1724
|
});
|
|
1725
1725
|
}
|
|
1726
|
-
var Ko =
|
|
1726
|
+
var Ko = fn.createContext({
|
|
1727
1727
|
pause: !1,
|
|
1728
1728
|
immediate: !1
|
|
1729
1729
|
}), Zo = () => {
|
|
@@ -1809,8 +1809,8 @@ function Li(e, t, n) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
const f = a.current.map(
|
|
1811
1811
|
(v, w) => ci(v, c.current[w])
|
|
1812
|
-
), p =
|
|
1813
|
-
|
|
1812
|
+
), p = An(Ko), m = ti(p), g = p !== m && Po(p);
|
|
1813
|
+
Gt(() => {
|
|
1814
1814
|
s.current++, u.ctrls = a.current;
|
|
1815
1815
|
const { queue: v } = u;
|
|
1816
1816
|
v.length && (u.queue = [], F(v, (w) => w())), F(a.current, (w, S) => {
|
|
@@ -1846,7 +1846,7 @@ function Pe(e, t, n) {
|
|
|
1846
1846
|
() => r || arguments.length == 3 ? Zo() : void 0,
|
|
1847
1847
|
[]
|
|
1848
1848
|
), p = _e(e), m = [], g = te(null), y = i ? null : g.current;
|
|
1849
|
-
|
|
1849
|
+
Gt(() => {
|
|
1850
1850
|
g.current = m;
|
|
1851
1851
|
}), Ii(() => (F(m, (T) => {
|
|
1852
1852
|
f == null || f.add(T.ctrl), T.ctrl.ref = f;
|
|
@@ -1856,7 +1856,7 @@ function Pe(e, t, n) {
|
|
|
1856
1856
|
});
|
|
1857
1857
|
}));
|
|
1858
1858
|
const v = Xc(p, r ? r() : t, y), w = i && g.current || [];
|
|
1859
|
-
|
|
1859
|
+
Gt(
|
|
1860
1860
|
() => F(w, ({ ctrl: T, item: O, key: H }) => {
|
|
1861
1861
|
ii(T, f), xe(c, O, H);
|
|
1862
1862
|
})
|
|
@@ -1920,30 +1920,30 @@ function Pe(e, t, n) {
|
|
|
1920
1920
|
const we = r ? r() : t, Qe = x.und(we.initial) || y ? we.from : we.initial;
|
|
1921
1921
|
je.from = xe(Qe, T.item, O);
|
|
1922
1922
|
}
|
|
1923
|
-
const { onResolve:
|
|
1923
|
+
const { onResolve: Pn } = je;
|
|
1924
1924
|
je.onResolve = (we) => {
|
|
1925
|
-
xe(
|
|
1926
|
-
const Qe = g.current, Je = Qe.find((
|
|
1925
|
+
xe(Pn, we);
|
|
1926
|
+
const Qe = g.current, Je = Qe.find((Dn) => Dn.key === H);
|
|
1927
1927
|
if (Je && !(we.cancelled && Je.phase != "update") && Je.ctrl.idle) {
|
|
1928
|
-
const
|
|
1928
|
+
const Dn = Qe.every((Ht) => Ht.ctrl.idle);
|
|
1929
1929
|
if (Je.phase == "leave") {
|
|
1930
|
-
const
|
|
1931
|
-
if (
|
|
1932
|
-
const Cr =
|
|
1933
|
-
if (Je.expired = !0, !
|
|
1930
|
+
const Ht = xe(u, Je.item);
|
|
1931
|
+
if (Ht !== !1) {
|
|
1932
|
+
const Cr = Ht === !0 ? 0 : Ht;
|
|
1933
|
+
if (Je.expired = !0, !Dn && Cr > 0) {
|
|
1934
1934
|
Cr <= 2147483647 && (Je.expirationId = setTimeout(E, Cr));
|
|
1935
1935
|
return;
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
|
-
|
|
1939
|
+
Dn && Qe.some((Ht) => Ht.expired) && (L.current.delete(Je), a && (P.current = !0), E());
|
|
1940
1940
|
}
|
|
1941
1941
|
};
|
|
1942
|
-
const
|
|
1943
|
-
b === "leave" && a ? L.current.set(T, { phase: b, springs:
|
|
1942
|
+
const rn = ci(T.ctrl, je);
|
|
1943
|
+
b === "leave" && a ? L.current.set(T, { phase: b, springs: rn, payload: je }) : M.set(T, { phase: b, springs: rn, payload: je });
|
|
1944
1944
|
});
|
|
1945
|
-
const R =
|
|
1946
|
-
|
|
1945
|
+
const R = An(Ko), z = ti(R), B = R !== z && Po(R);
|
|
1946
|
+
Gt(() => {
|
|
1947
1947
|
B && F(m, (T) => {
|
|
1948
1948
|
T.ctrl.start({ default: R });
|
|
1949
1949
|
});
|
|
@@ -1952,7 +1952,7 @@ function Pe(e, t, n) {
|
|
|
1952
1952
|
const H = m.findIndex(($) => $.key === O.key);
|
|
1953
1953
|
m.splice(H, 1);
|
|
1954
1954
|
}
|
|
1955
|
-
}),
|
|
1955
|
+
}), Gt(
|
|
1956
1956
|
() => {
|
|
1957
1957
|
F(
|
|
1958
1958
|
L.current.size ? L.current : M,
|
|
@@ -1964,9 +1964,9 @@ function Pe(e, t, n) {
|
|
|
1964
1964
|
},
|
|
1965
1965
|
i ? void 0 : n
|
|
1966
1966
|
);
|
|
1967
|
-
const U = (T) => /* @__PURE__ */
|
|
1967
|
+
const U = (T) => /* @__PURE__ */ fn.createElement(fn.Fragment, null, m.map((O, H) => {
|
|
1968
1968
|
const { springs: $ } = M.get(O) || O.ctrl, G = T({ ...$ }, O.item, O, H);
|
|
1969
|
-
return G && G.type ? /* @__PURE__ */
|
|
1969
|
+
return G && G.type ? /* @__PURE__ */ fn.createElement(
|
|
1970
1970
|
G.type,
|
|
1971
1971
|
{
|
|
1972
1972
|
...G.props,
|
|
@@ -1992,7 +1992,7 @@ function Xc(e, { key: t, keys: n = t }, r) {
|
|
|
1992
1992
|
}
|
|
1993
1993
|
var Qc = class extends zi {
|
|
1994
1994
|
constructor(e, t) {
|
|
1995
|
-
super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc =
|
|
1995
|
+
super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc = _n(...t);
|
|
1996
1996
|
const n = this._get(), r = ni(n);
|
|
1997
1997
|
Ti(this, r.create(n));
|
|
1998
1998
|
}
|
|
@@ -2013,13 +2013,13 @@ var Qc = class extends zi {
|
|
|
2013
2013
|
_attach() {
|
|
2014
2014
|
let e = 1;
|
|
2015
2015
|
F(_e(this.source), (t) => {
|
|
2016
|
-
Ae(t) &&
|
|
2016
|
+
Ae(t) && tn(t, this), oi(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1));
|
|
2017
2017
|
}), this.priority = e, this._start();
|
|
2018
2018
|
}
|
|
2019
2019
|
// Stop observing our sources once we have no observers.
|
|
2020
2020
|
_detach() {
|
|
2021
2021
|
F(_e(this.source), (e) => {
|
|
2022
|
-
Ae(e) &&
|
|
2022
|
+
Ae(e) && En(e, this);
|
|
2023
2023
|
}), this._active.clear(), Or(this);
|
|
2024
2024
|
}
|
|
2025
2025
|
/** @internal */
|
|
@@ -2039,7 +2039,7 @@ function fs(e) {
|
|
|
2039
2039
|
function Or(e) {
|
|
2040
2040
|
e.idle || (e.idle = !0, F(vr(e), (t) => {
|
|
2041
2041
|
t.done = !0;
|
|
2042
|
-
}),
|
|
2042
|
+
}), Sn(e, {
|
|
2043
2043
|
type: "idle",
|
|
2044
2044
|
parent: e
|
|
2045
2045
|
}));
|
|
@@ -2050,7 +2050,7 @@ $e.assign({
|
|
|
2050
2050
|
});
|
|
2051
2051
|
var Xo = /^--/;
|
|
2052
2052
|
function eu(e, t) {
|
|
2053
|
-
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !Xo.test(e) && !(
|
|
2053
|
+
return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !Xo.test(e) && !(mn.hasOwnProperty(e) && mn[e]) ? t + "px" : ("" + t).trim();
|
|
2054
2054
|
}
|
|
2055
2055
|
var ds = {};
|
|
2056
2056
|
function tu(e, t) {
|
|
@@ -2081,7 +2081,7 @@ function tu(e, t) {
|
|
|
2081
2081
|
e.setAttribute(f, l[p]);
|
|
2082
2082
|
}), r !== void 0 && (e.className = r), o !== void 0 && (e.scrollTop = o), u !== void 0 && (e.scrollLeft = u), a !== void 0 && e.setAttribute("viewBox", a);
|
|
2083
2083
|
}
|
|
2084
|
-
var
|
|
2084
|
+
var mn = {
|
|
2085
2085
|
animationIterationCount: !0,
|
|
2086
2086
|
borderImageOutset: !0,
|
|
2087
2087
|
borderImageSlice: !0,
|
|
@@ -2125,7 +2125,7 @@ var pn = {
|
|
|
2125
2125
|
strokeOpacity: !0,
|
|
2126
2126
|
strokeWidth: !0
|
|
2127
2127
|
}, nu = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), ru = ["Webkit", "Ms", "Moz", "O"];
|
|
2128
|
-
|
|
2128
|
+
mn = Object.keys(mn).reduce((e, t) => (ru.forEach((n) => e[nu(n, t)] = e[t]), e), mn);
|
|
2129
2129
|
var iu = /^(matrix|translate|scale|rotate|skew)/, su = /^(translate)/, ou = /^(rotate|skew)/, Mr = (e, t) => x.num(e) && e !== 0 ? e + t : e, Xn = (e, t) => x.arr(e) ? e.every((n) => Xn(n, t)) : x.num(e) ? e === t : parseFloat(e) === t, au = class extends _r {
|
|
2130
2130
|
constructor({ x: e, y: t, z: n, ...r }) {
|
|
2131
2131
|
const i = [], s = [];
|
|
@@ -2173,7 +2173,7 @@ var iu = /^(matrix|translate|scale|rotate|skew)/, su = /^(translate)/, ou = /^(r
|
|
|
2173
2173
|
this.inputs,
|
|
2174
2174
|
(t) => F(
|
|
2175
2175
|
t,
|
|
2176
|
-
(n) => Ae(n) &&
|
|
2176
|
+
(n) => Ae(n) && tn(n, this)
|
|
2177
2177
|
)
|
|
2178
2178
|
);
|
|
2179
2179
|
}
|
|
@@ -2183,12 +2183,12 @@ var iu = /^(matrix|translate|scale|rotate|skew)/, su = /^(translate)/, ou = /^(r
|
|
|
2183
2183
|
this.inputs,
|
|
2184
2184
|
(t) => F(
|
|
2185
2185
|
t,
|
|
2186
|
-
(n) => Ae(n) &&
|
|
2186
|
+
(n) => Ae(n) && En(n, this)
|
|
2187
2187
|
)
|
|
2188
2188
|
);
|
|
2189
2189
|
}
|
|
2190
2190
|
eventObserved(e) {
|
|
2191
|
-
e.type == "change" && (this._value = null),
|
|
2191
|
+
e.type == "change" && (this._value = null), Sn(this, e);
|
|
2192
2192
|
}
|
|
2193
2193
|
}, uu = [
|
|
2194
2194
|
"a",
|
|
@@ -2375,7 +2375,7 @@ const k = ({
|
|
|
2375
2375
|
...G
|
|
2376
2376
|
}) => {
|
|
2377
2377
|
const _ = {};
|
|
2378
|
-
return e && (_[
|
|
2378
|
+
return e && (_[dt[e]] = !0), t && (_[ht[t]] = !0), n && (_[pt[n]] = !0), r && (_[mt[r]] = !0), i && (_[gt[i]] = !0), s && (_[yt[s]] = !0), o && (_[vt[o]] = !0), u && (_[bt[u]] = !0), a && (_[_t[a]] = !0), c && (_[wt[c]] = !0), l && (_[St[l]] = !0), h && (_[Et[h]] = !0), f && (_[xt[f]] = !0), p && (_[Ct[p]] = !0), m && (_[kt[m]] = !0), g && (_[It[g]] = !0), y && (_[Tt[y]] = !0), v && (_[At[v]] = !0), w && (_[Ot[w]] = !0), S && (_[Mt[S]] = !0), C && (_[zt[C]] = !0), E && (_[Lt[E]] = !0), A && (_[Pt[A]] = !0), M && (_[Q[M]] = !0), L && (_[Dt[L]] = !0), P && (_[Rt[P]] = !0), R && (_[Nt[R]] = !0), z && (_[Ft[z]] = !0), B && (_[$t[B]] = !0), U && (_[jt[U]] = !0), T && (_[Bt[T]] = !0), O && (_[qe[O]] = !0), /* @__PURE__ */ d(
|
|
2379
2379
|
N.div,
|
|
2380
2380
|
{
|
|
2381
2381
|
className: `${Object.keys(_).join(" ")} ${$ || ""}`,
|
|
@@ -2383,7 +2383,7 @@ const k = ({
|
|
|
2383
2383
|
children: H
|
|
2384
2384
|
}
|
|
2385
2385
|
);
|
|
2386
|
-
},
|
|
2386
|
+
}, nn = me(
|
|
2387
2387
|
({
|
|
2388
2388
|
margin: e,
|
|
2389
2389
|
marginTop: t,
|
|
@@ -2422,7 +2422,7 @@ const k = ({
|
|
|
2422
2422
|
...G
|
|
2423
2423
|
}, _) => {
|
|
2424
2424
|
const b = {};
|
|
2425
|
-
return e && (b[
|
|
2425
|
+
return e && (b[dt[e]] = !0), t && (b[ht[t]] = !0), n && (b[pt[n]] = !0), r && (b[mt[r]] = !0), i && (b[gt[i]] = !0), s && (b[yt[s]] = !0), o && (b[vt[o]] = !0), u && (b[bt[u]] = !0), a && (b[_t[a]] = !0), c && (b[wt[c]] = !0), l && (b[St[l]] = !0), h && (b[Et[h]] = !0), f && (b[xt[f]] = !0), p && (b[Ct[p]] = !0), m && (b[kt[m]] = !0), g && (b[It[g]] = !0), y && (b[Tt[y]] = !0), v && (b[At[v]] = !0), w && (b[Ot[w]] = !0), S && (b[Mt[S]] = !0), C && (b[zt[C]] = !0), E && (b[Lt[E]] = !0), A && (b[Pt[A]] = !0), M && (b[Q[M]] = !0), L && (b[Dt[L]] = !0), P && (b[Rt[P]] = !0), R && (b[Nt[R]] = !0), z && (b[Ft[z]] = !0), B && (b[$t[B]] = !0), U && (b[jt[U]] = !0), T && (b[Bt[T]] = !0), O && (b[qe[O]] = !0), /* @__PURE__ */ d(
|
|
2426
2426
|
N.div,
|
|
2427
2427
|
{
|
|
2428
2428
|
ref: _,
|
|
@@ -2529,7 +2529,7 @@ const k = ({
|
|
|
2529
2529
|
...b
|
|
2530
2530
|
}) => {
|
|
2531
2531
|
const V = {};
|
|
2532
|
-
return e && (V[
|
|
2532
|
+
return e && (V[dt[e]] = !0), t && (V[ht[t]] = !0), n && (V[pt[n]] = !0), r && (V[mt[r]] = !0), i && (V[gt[i]] = !0), s && (V[yt[s]] = !0), o && (V[vt[o]] = !0), u && (V[bt[u]] = !0), a && (V[_t[a]] = !0), c && (V[wt[c]] = !0), l && (V[St[l]] = !0), h && (V[Et[h]] = !0), f && (V[xt[f]] = !0), p && (V[Ct[p]] = !0), m && (V[kt[m]] = !0), g && (V[It[g]] = !0), y && (V[Tt[y]] = !0), v && (V[At[v]] = !0), w && (V[Ot[w]] = !0), S && (V[Mt[S]] = !0), C && (V[zt[C]] = !0), E && (V[Lt[E]] = !0), A && (V[Pt[A]] = !0), M && (V[Q[M]] = !0), L && (V[Dt[L]] = !0), P && (V[Rt[P]] = !0), R && (V[Nt[R]] = !0), z && (V[Ft[z]] = !0), B && (V[$t[B]] = !0), U && (V[jt[U]] = !0), T && (V[Bt[T]] = !0), H && (V[qe[H]] = !0), /* @__PURE__ */ d(
|
|
2533
2533
|
N.button,
|
|
2534
2534
|
{
|
|
2535
2535
|
type: O,
|
|
@@ -2578,7 +2578,7 @@ const k = ({
|
|
|
2578
2578
|
...G
|
|
2579
2579
|
}, _) => {
|
|
2580
2580
|
const b = {};
|
|
2581
|
-
return e && (b[
|
|
2581
|
+
return e && (b[dt[e]] = !0), t && (b[ht[t]] = !0), n && (b[pt[n]] = !0), r && (b[mt[r]] = !0), i && (b[gt[i]] = !0), s && (b[yt[s]] = !0), o && (b[vt[o]] = !0), u && (b[bt[u]] = !0), a && (b[_t[a]] = !0), c && (b[wt[c]] = !0), l && (b[St[l]] = !0), h && (b[Et[h]] = !0), f && (b[xt[f]] = !0), p && (b[Ct[p]] = !0), m && (b[kt[m]] = !0), g && (b[It[g]] = !0), y && (b[Tt[y]] = !0), v && (b[At[v]] = !0), w && (b[Ot[w]] = !0), S && (b[Mt[S]] = !0), C && (b[zt[C]] = !0), E && (b[Lt[E]] = !0), A && (b[Pt[A]] = !0), M && (b[Q[M]] = !0), L && (b[Dt[L]] = !0), P && (b[Rt[P]] = !0), R && (b[Nt[R]] = !0), z && (b[Ft[z]] = !0), B && (b[$t[B]] = !0), U && (b[jt[U]] = !0), T && (b[Bt[T]] = !0), O && (b[qe[O]] = !0), /* @__PURE__ */ d(
|
|
2582
2582
|
N.button,
|
|
2583
2583
|
{
|
|
2584
2584
|
ref: _,
|
|
@@ -2715,7 +2715,7 @@ const k = ({
|
|
|
2715
2715
|
...G
|
|
2716
2716
|
}) => {
|
|
2717
2717
|
const _ = {};
|
|
2718
|
-
return e && (_[
|
|
2718
|
+
return e && (_[dt[e]] = !0), t && (_[ht[t]] = !0), n && (_[pt[n]] = !0), r && (_[mt[r]] = !0), i && (_[gt[i]] = !0), s && (_[yt[s]] = !0), o && (_[vt[o]] = !0), u && (_[bt[u]] = !0), a && (_[_t[a]] = !0), c && (_[wt[c]] = !0), l && (_[St[l]] = !0), h && (_[Et[h]] = !0), f && (_[xt[f]] = !0), p && (_[Ct[p]] = !0), m && (_[kt[m]] = !0), g && (_[It[g]] = !0), y && (_[Tt[y]] = !0), v && (_[At[v]] = !0), w && (_[Ot[w]] = !0), S && (_[Mt[S]] = !0), C && (_[zt[C]] = !0), E && (_[Lt[E]] = !0), A && (_[Pt[A]] = !0), M && (_[Q[M]] = !0), L && (_[Dt[L]] = !0), P && (_[Rt[P]] = !0), R && (_[Nt[R]] = !0), z && (_[Ft[z]] = !0), B && (_[$t[B]] = !0), U && (_[jt[U]] = !0), T && (_[Bt[T]] = !0), O && (_[qe[O]] = !0), /* @__PURE__ */ d(
|
|
2719
2719
|
N.li,
|
|
2720
2720
|
{
|
|
2721
2721
|
className: `${Object.keys(_).join(" ")} ${H || ""}`,
|
|
@@ -2762,7 +2762,7 @@ const k = ({
|
|
|
2762
2762
|
...G
|
|
2763
2763
|
}, _) => {
|
|
2764
2764
|
const b = {};
|
|
2765
|
-
return e && (b[
|
|
2765
|
+
return e && (b[dt[e]] = !0), t && (b[ht[t]] = !0), n && (b[pt[n]] = !0), r && (b[mt[r]] = !0), i && (b[gt[i]] = !0), s && (b[yt[s]] = !0), o && (b[vt[o]] = !0), u && (b[bt[u]] = !0), a && (b[_t[a]] = !0), c && (b[wt[c]] = !0), l && (b[St[l]] = !0), h && (b[Et[h]] = !0), f && (b[xt[f]] = !0), p && (b[Ct[p]] = !0), m && (b[kt[m]] = !0), g && (b[It[g]] = !0), y && (b[Tt[y]] = !0), v && (b[At[v]] = !0), w && (b[Ot[w]] = !0), S && (b[Mt[S]] = !0), C && (b[zt[C]] = !0), E && (b[Lt[E]] = !0), A && (b[Pt[A]] = !0), M && (b[Q[M]] = !0), L && (b[Dt[L]] = !0), P && (b[Rt[P]] = !0), R && (b[Nt[R]] = !0), z && (b[Ft[z]] = !0), B && (b[$t[B]] = !0), U && (b[jt[U]] = !0), T && (b[Bt[T]] = !0), O && (b[qe[O]] = !0), /* @__PURE__ */ d(
|
|
2766
2766
|
N.li,
|
|
2767
2767
|
{
|
|
2768
2768
|
ref: _,
|
|
@@ -2810,7 +2810,7 @@ const k = ({
|
|
|
2810
2810
|
...G
|
|
2811
2811
|
}) => {
|
|
2812
2812
|
const _ = {};
|
|
2813
|
-
return e && (_[
|
|
2813
|
+
return e && (_[dt[e]] = !0), t && (_[ht[t]] = !0), n && (_[pt[n]] = !0), r && (_[mt[r]] = !0), i && (_[gt[i]] = !0), s && (_[yt[s]] = !0), o && (_[vt[o]] = !0), u && (_[bt[u]] = !0), a && (_[_t[a]] = !0), c && (_[wt[c]] = !0), l && (_[St[l]] = !0), h && (_[Et[h]] = !0), f && (_[xt[f]] = !0), p && (_[Ct[p]] = !0), m && (_[kt[m]] = !0), g && (_[It[g]] = !0), y && (_[Tt[y]] = !0), v && (_[At[v]] = !0), w && (_[Ot[w]] = !0), S && (_[Mt[S]] = !0), C && (_[zt[C]] = !0), E && (_[Lt[E]] = !0), A && (_[Pt[A]] = !0), M && (_[Q[M]] = !0), L && (_[Dt[L]] = !0), P && (_[Rt[P]] = !0), R && (_[Nt[R]] = !0), z && (_[Ft[z]] = !0), B && (_[$t[B]] = !0), U && (_[jt[U]] = !0), T && (_[Bt[T]] = !0), H && (_[qe[H]] = !0), /* @__PURE__ */ d(
|
|
2814
2814
|
N.ul,
|
|
2815
2815
|
{
|
|
2816
2816
|
className: `${Object.keys(_).join(" ")} ${O || ""}`,
|
|
@@ -2857,7 +2857,7 @@ const k = ({
|
|
|
2857
2857
|
...G
|
|
2858
2858
|
}, _) => {
|
|
2859
2859
|
const b = {};
|
|
2860
|
-
return e && (b[
|
|
2860
|
+
return e && (b[dt[e]] = !0), t && (b[ht[t]] = !0), n && (b[pt[n]] = !0), r && (b[mt[r]] = !0), i && (b[gt[i]] = !0), s && (b[yt[s]] = !0), o && (b[vt[o]] = !0), u && (b[bt[u]] = !0), a && (b[_t[a]] = !0), c && (b[wt[c]] = !0), l && (b[St[l]] = !0), h && (b[Et[h]] = !0), f && (b[xt[f]] = !0), p && (b[Ct[p]] = !0), m && (b[kt[m]] = !0), g && (b[It[g]] = !0), y && (b[Tt[y]] = !0), v && (b[At[v]] = !0), w && (b[Ot[w]] = !0), S && (b[Mt[S]] = !0), C && (b[zt[C]] = !0), E && (b[Lt[E]] = !0), A && (b[Pt[A]] = !0), M && (b[Q[M]] = !0), L && (b[Dt[L]] = !0), P && (b[Rt[P]] = !0), R && (b[Nt[R]] = !0), z && (b[Ft[z]] = !0), B && (b[$t[B]] = !0), U && (b[jt[U]] = !0), T && (b[Bt[T]] = !0), O && (b[qe[O]] = !0), /* @__PURE__ */ d(
|
|
2861
2861
|
N.ul,
|
|
2862
2862
|
{
|
|
2863
2863
|
ref: _,
|
|
@@ -3141,7 +3141,7 @@ const Pi = ({
|
|
|
3141
3141
|
...a
|
|
3142
3142
|
}) => {
|
|
3143
3143
|
const c = {}, { theme: l, baseFontSize: h } = re();
|
|
3144
|
-
return t ? h !==
|
|
3144
|
+
return t ? h !== lt ? c[W[Sr(t, h - lt)]] = !0 : c[W[t]] = !0 : c[W[h]] = !0, e && (c[Q[e]] = !0), t && (c[W[t]] = !0), n && (c[se[n]] = !0), r && (c[oe[r]] = !0), i && (c[ae[i]] = !0), s && (c[ce[s]] = !0), /* @__PURE__ */ d(
|
|
3145
3145
|
N.p,
|
|
3146
3146
|
{
|
|
3147
3147
|
className: `${ue[l]} ${Object.keys(c).join(" ")} ${o || ""}`,
|
|
@@ -3162,7 +3162,7 @@ const Pi = ({
|
|
|
3162
3162
|
...a
|
|
3163
3163
|
}, c) => {
|
|
3164
3164
|
const l = {}, { theme: h, baseFontSize: f } = re();
|
|
3165
|
-
return t ? f !==
|
|
3165
|
+
return t ? f !== lt ? l[W[Sr(t, f - lt)]] = !0 : l[W[t]] = !0 : l[W[f]] = !0, e && (l[Q[e]] = !0), t && (l[W[t]] = !0), n && (l[se[n]] = !0), r && (l[oe[r]] = !0), i && (l[ae[i]] = !0), s && (l[ce[s]] = !0), /* @__PURE__ */ d(
|
|
3166
3166
|
N.p,
|
|
3167
3167
|
{
|
|
3168
3168
|
ref: c,
|
|
@@ -3185,7 +3185,7 @@ const Pi = ({
|
|
|
3185
3185
|
...c
|
|
3186
3186
|
}) => {
|
|
3187
3187
|
const l = {}, { theme: h, baseFontSize: f } = re();
|
|
3188
|
-
return t ? f !==
|
|
3188
|
+
return t ? f !== lt ? l[W[Sr(t, f - lt)]] = !0 : l[W[t]] = !0 : l[W[f]] = !0, e && (l[Q[e]] = !0), t && (l[W[t]] = !0), n && (l[se[n]] = !0), r && (l[oe[r]] = !0), i && (l[ae[i]] = !0), s && (l[ce[s]] = !0), u && (l[qe[u]] = !0), /* @__PURE__ */ d(
|
|
3189
3189
|
N.span,
|
|
3190
3190
|
{
|
|
3191
3191
|
className: `${ue[h]} ${Object.keys(l).join(" ")} ${o || ""}`,
|
|
@@ -3207,7 +3207,7 @@ const Pi = ({
|
|
|
3207
3207
|
...c
|
|
3208
3208
|
}, l) => {
|
|
3209
3209
|
const h = {}, { theme: f, baseFontSize: p } = re();
|
|
3210
|
-
return t ? p !==
|
|
3210
|
+
return t ? p !== lt ? h[W[Sr(t, p - lt)]] = !0 : h[W[t]] = !0 : h[W[p]] = !0, e && (h[Q[e]] = !0), t && (h[W[t]] = !0), n && (h[se[n]] = !0), r && (h[oe[r]] = !0), i && (h[ae[i]] = !0), s && (h[ce[s]] = !0), u && (h[qe[u]] = !0), /* @__PURE__ */ d(
|
|
3211
3211
|
N.span,
|
|
3212
3212
|
{
|
|
3213
3213
|
ref: l,
|
|
@@ -3446,7 +3446,7 @@ const Su = ["x", "y", "top", "bottom", "left", "right", "width", "height"], Eu =
|
|
|
3446
3446
|
children: a
|
|
3447
3447
|
}
|
|
3448
3448
|
);
|
|
3449
|
-
},
|
|
3449
|
+
}, qn = {
|
|
3450
3450
|
[D.Size1]: { containerSize: 8, size: 4 },
|
|
3451
3451
|
[D.Size2]: { containerSize: 12, size: 8 },
|
|
3452
3452
|
[D.Size3]: { containerSize: 16, size: 12 },
|
|
@@ -3469,16 +3469,16 @@ function xu({ size: e = D.Size3 }) {
|
|
|
3469
3469
|
{
|
|
3470
3470
|
className: "image-container",
|
|
3471
3471
|
style: {
|
|
3472
|
-
width: `${
|
|
3473
|
-
height: `${
|
|
3472
|
+
width: `${qn[e].containerSize}px`,
|
|
3473
|
+
height: `${qn[e].containerSize}px`
|
|
3474
3474
|
},
|
|
3475
3475
|
children: /* @__PURE__ */ d(
|
|
3476
3476
|
"svg",
|
|
3477
3477
|
{
|
|
3478
3478
|
className: "text-zinc-300",
|
|
3479
3479
|
viewBox: "0 0 2400 2400",
|
|
3480
|
-
width:
|
|
3481
|
-
height:
|
|
3480
|
+
width: qn[e].size,
|
|
3481
|
+
height: qn[e].size,
|
|
3482
3482
|
children: /* @__PURE__ */ X(
|
|
3483
3483
|
"g",
|
|
3484
3484
|
{
|
|
@@ -3668,7 +3668,7 @@ const $h = ({ isLoading: e, size: t = D.Size3 }) => Pe(e, {
|
|
|
3668
3668
|
)
|
|
3669
3669
|
}
|
|
3670
3670
|
);
|
|
3671
|
-
},
|
|
3671
|
+
}, nt = {
|
|
3672
3672
|
// padding 1
|
|
3673
3673
|
[D.Size1]: {
|
|
3674
3674
|
padding: I.Size1,
|
|
@@ -3802,7 +3802,7 @@ const Ie = ({
|
|
|
3802
3802
|
const { theme: f } = re(), [p, m] = ie(() => ({
|
|
3803
3803
|
backgroundColor: ee[K.Transparent],
|
|
3804
3804
|
scale: 1
|
|
3805
|
-
})), g = f !==
|
|
3805
|
+
})), g = f !== vn.Light ? ee[o] : ee[s], y = c && typeof u < "u";
|
|
3806
3806
|
return /* @__PURE__ */ d(
|
|
3807
3807
|
Y,
|
|
3808
3808
|
{
|
|
@@ -3836,21 +3836,29 @@ const Ie = ({
|
|
|
3836
3836
|
children: /* @__PURE__ */ d(
|
|
3837
3837
|
k,
|
|
3838
3838
|
{
|
|
3839
|
-
padding: n ?
|
|
3839
|
+
padding: n ? nt[t].padding : void 0,
|
|
3840
3840
|
cursor: a,
|
|
3841
3841
|
style: y ? {
|
|
3842
3842
|
...p,
|
|
3843
3843
|
borderRadius: h,
|
|
3844
|
-
display: "flex"
|
|
3844
|
+
display: "flex",
|
|
3845
|
+
alignItems: "center",
|
|
3846
|
+
justifyContent: "center",
|
|
3847
|
+
minWidth: nt[t].size + 3,
|
|
3848
|
+
minHeight: nt[t].size + 3
|
|
3845
3849
|
} : {
|
|
3846
3850
|
borderRadius: h,
|
|
3847
|
-
display: "flex"
|
|
3851
|
+
display: "flex",
|
|
3852
|
+
alignItems: "center",
|
|
3853
|
+
justifyContent: "center",
|
|
3854
|
+
minWidth: nt[t].size + 3,
|
|
3855
|
+
minHeight: nt[t].size + 3
|
|
3848
3856
|
},
|
|
3849
|
-
children: e === "spinner" ? /* @__PURE__ */ d(ku, { size:
|
|
3857
|
+
children: e === "spinner" ? /* @__PURE__ */ d(ku, { size: nt[t].size, color: g }) : /* @__PURE__ */ d(
|
|
3850
3858
|
"svg",
|
|
3851
3859
|
{
|
|
3852
|
-
width: r ||
|
|
3853
|
-
height: i ||
|
|
3860
|
+
width: r || nt[t].size,
|
|
3861
|
+
height: i || nt[t].size,
|
|
3854
3862
|
fill: "none",
|
|
3855
3863
|
stroke: g,
|
|
3856
3864
|
strokeWidth: "2",
|
|
@@ -3864,7 +3872,7 @@ const Ie = ({
|
|
|
3864
3872
|
}
|
|
3865
3873
|
);
|
|
3866
3874
|
}, ta = mi({
|
|
3867
|
-
theme:
|
|
3875
|
+
theme: vn.Default,
|
|
3868
3876
|
baseFontSize: ze.Size2 || 2,
|
|
3869
3877
|
handleSetTheme: () => {
|
|
3870
3878
|
},
|
|
@@ -3875,9 +3883,9 @@ function Uh({ children: e }) {
|
|
|
3875
3883
|
const t = Iu();
|
|
3876
3884
|
return /* @__PURE__ */ d(ta.Provider, { value: t, children: e });
|
|
3877
3885
|
}
|
|
3878
|
-
const re = () =>
|
|
3886
|
+
const re = () => An(ta);
|
|
3879
3887
|
function Iu() {
|
|
3880
|
-
const [e, t] = Z(
|
|
3888
|
+
const [e, t] = Z(vn.Default), n = (o) => {
|
|
3881
3889
|
t(o);
|
|
3882
3890
|
}, [r, i] = Z(ze.Size2);
|
|
3883
3891
|
return {
|
|
@@ -3902,7 +3910,7 @@ function Gh({
|
|
|
3902
3910
|
const t = Au();
|
|
3903
3911
|
return /* @__PURE__ */ d(na.Provider, { value: t, children: e });
|
|
3904
3912
|
}
|
|
3905
|
-
const Tu = () =>
|
|
3913
|
+
const Tu = () => An(na);
|
|
3906
3914
|
function Au() {
|
|
3907
3915
|
const e = te(null), t = Le(
|
|
3908
3916
|
(i, s) => {
|
|
@@ -3914,14 +3922,14 @@ function Au() {
|
|
|
3914
3922
|
var s;
|
|
3915
3923
|
if (i.response) {
|
|
3916
3924
|
const o = ((s = i.response.data) == null ? void 0 : s.message) || "An error occurred";
|
|
3917
|
-
t(o,
|
|
3918
|
-
} else i.request ? t("Could not reach server",
|
|
3925
|
+
t(o, qt.Error);
|
|
3926
|
+
} else i.request ? t("Could not reach server", qt.Error) : t("Could not process your request", qt.Error);
|
|
3919
3927
|
}, []), r = Le((i) => {
|
|
3920
3928
|
var s;
|
|
3921
3929
|
if (i.response) {
|
|
3922
3930
|
const o = ((s = i.response.data) == null ? void 0 : s.message) || "An error occurred";
|
|
3923
|
-
t(o,
|
|
3924
|
-
} else i.request ? t("Could not reach server",
|
|
3931
|
+
t(o, qt.Error);
|
|
3932
|
+
} else i.request ? t("Could not reach server", qt.Error) : t("Could not process your request", qt.Error);
|
|
3925
3933
|
}, []);
|
|
3926
3934
|
return {
|
|
3927
3935
|
globalEventRef: e,
|
|
@@ -3939,9 +3947,9 @@ const Vh = ({
|
|
|
3939
3947
|
k,
|
|
3940
3948
|
{
|
|
3941
3949
|
borderRadius: pe.Size4,
|
|
3942
|
-
borderColor:
|
|
3950
|
+
borderColor: Rn[e].borderColor,
|
|
3943
3951
|
borderWidth: gi.Size2,
|
|
3944
|
-
bgColor:
|
|
3952
|
+
bgColor: Rn[e].bgColor,
|
|
3945
3953
|
style: { width: "max-content" },
|
|
3946
3954
|
children: /* @__PURE__ */ X(Y, { children: [
|
|
3947
3955
|
/* @__PURE__ */ d(
|
|
@@ -3962,8 +3970,8 @@ const Vh = ({
|
|
|
3962
3970
|
Ie,
|
|
3963
3971
|
{
|
|
3964
3972
|
name: La[e].titleIcon,
|
|
3965
|
-
colorLight:
|
|
3966
|
-
colorDark:
|
|
3973
|
+
colorLight: Rn[e].iconColor,
|
|
3974
|
+
colorDark: Rn[e].iconColor,
|
|
3967
3975
|
size: ge[t].title.iconSize,
|
|
3968
3976
|
withMargin: !1,
|
|
3969
3977
|
borderRadius: void 0,
|
|
@@ -4172,7 +4180,7 @@ const Lu = ({
|
|
|
4172
4180
|
y: n
|
|
4173
4181
|
});
|
|
4174
4182
|
return /* @__PURE__ */ d(
|
|
4175
|
-
|
|
4183
|
+
nn,
|
|
4176
4184
|
{
|
|
4177
4185
|
ref: s,
|
|
4178
4186
|
style: t !== 0 ? a : u,
|
|
@@ -4204,12 +4212,12 @@ const Lu = ({
|
|
|
4204
4212
|
return /* @__PURE__ */ d(
|
|
4205
4213
|
k,
|
|
4206
4214
|
{
|
|
4207
|
-
marginRight: i ===
|
|
4208
|
-
marginLeft: i ===
|
|
4215
|
+
marginRight: i === Xt.Left ? s : void 0,
|
|
4216
|
+
marginLeft: i === Xt.Right ? s : void 0,
|
|
4209
4217
|
style: {
|
|
4210
4218
|
position: "relative",
|
|
4211
4219
|
// [iconMargin === Spacings.Size0 ? "marginRight" : "marginLeft"]: 2,
|
|
4212
|
-
[s === I.Size0 ? i ===
|
|
4220
|
+
[s === I.Size0 ? i === Xt.Left ? "marginRight" : i === Xt.Right ? "marginLeft" : "" : ""]: 2,
|
|
4213
4221
|
// marginRight:
|
|
4214
4222
|
// iconPosition === ButtonIconPositions.Left && !iconMargin ? 3 : "auto",
|
|
4215
4223
|
// marginLeft:
|
|
@@ -4247,12 +4255,12 @@ const Lu = ({
|
|
|
4247
4255
|
buttonColor: n = Na.Primary5,
|
|
4248
4256
|
buttonState: r = Ze.Icon,
|
|
4249
4257
|
buttonType: i = Fa.Button,
|
|
4250
|
-
buttonStyle: s =
|
|
4258
|
+
buttonStyle: s = Nn.Filled,
|
|
4251
4259
|
buttonShadow: o = lr.Size2,
|
|
4252
4260
|
icon: u,
|
|
4253
4261
|
// iconSize,
|
|
4254
4262
|
iconColor: a = K.Primary8,
|
|
4255
|
-
iconPosition: c =
|
|
4263
|
+
iconPosition: c = Xt.Left,
|
|
4256
4264
|
// iconState,
|
|
4257
4265
|
animate: l = !0,
|
|
4258
4266
|
hover: h,
|
|
@@ -4261,14 +4269,14 @@ const Lu = ({
|
|
|
4261
4269
|
clickAction: f = () => {
|
|
4262
4270
|
}
|
|
4263
4271
|
}) => {
|
|
4264
|
-
var E, A, M, L, P, R, z, B, U, T, O, H, $, G, _, b, V, je,
|
|
4272
|
+
var E, A, M, L, P, R, z, B, U, T, O, H, $, G, _, b, V, je, Pn, rn, we, Qe;
|
|
4265
4273
|
var p = r === Ze.Disabled;
|
|
4266
4274
|
const [m, g] = Z(h), [y, v] = Ye({ debounce: 500 }), [w, S] = ie(() => ({
|
|
4267
4275
|
y: 0,
|
|
4268
4276
|
transform: "scale(1.0)"
|
|
4269
4277
|
})), C = l && !p && typeof ((E = ye[r]) == null ? void 0 : E.animation) > "u";
|
|
4270
4278
|
return /* @__PURE__ */ X(
|
|
4271
|
-
|
|
4279
|
+
nn,
|
|
4272
4280
|
{
|
|
4273
4281
|
style: { width: "max-content" },
|
|
4274
4282
|
ref: y,
|
|
@@ -4311,8 +4319,8 @@ const Lu = ({
|
|
|
4311
4319
|
borderWidth: Te[s].border.borderWidth,
|
|
4312
4320
|
borderStyle: Te[s].border.borderStyle,
|
|
4313
4321
|
boxShadow: s && ((A = Te[s]) != null && A.shadow) ? Te[s].shadow : o,
|
|
4314
|
-
bgColor: s ===
|
|
4315
|
-
borderColor: (U = (B = ye[r]) == null ? void 0 : B.color) != null && U.borderColor ? (O = (T = ye[r]) == null ? void 0 : T.color) == null ? void 0 : O.borderColor :
|
|
4322
|
+
bgColor: s === Nn.Gray && r === Ze.Error ? Te[s].bgColor : (L = (M = ye[r]) == null ? void 0 : M.color) != null && L.bgColor && s !== Nn.Outlined && s !== Nn.Plain ? (R = (P = ye[r]) == null ? void 0 : P.color) == null ? void 0 : R.bgColor : s && ((z = Te[s]) != null && z.bgColor) ? Te[s].bgColor : Fn[n].background,
|
|
4323
|
+
borderColor: (U = (B = ye[r]) == null ? void 0 : B.color) != null && U.borderColor ? (O = (T = ye[r]) == null ? void 0 : T.color) == null ? void 0 : O.borderColor : Fn[n].borderColor,
|
|
4316
4324
|
cursor: (H = ye[r]) != null && H.cursor ? ye[r].cursor : Te[s].cursor,
|
|
4317
4325
|
children: /* @__PURE__ */ d(
|
|
4318
4326
|
Y,
|
|
@@ -4320,7 +4328,7 @@ const Lu = ({
|
|
|
4320
4328
|
display: J.Flex,
|
|
4321
4329
|
flexJustifyContent: ke.Center,
|
|
4322
4330
|
flexAlignItem: he.Center,
|
|
4323
|
-
children: c ===
|
|
4331
|
+
children: c === Xt.Left ? /* @__PURE__ */ X(Ce, { children: [
|
|
4324
4332
|
u && /* @__PURE__ */ d(
|
|
4325
4333
|
gs,
|
|
4326
4334
|
{
|
|
@@ -4336,8 +4344,8 @@ const Lu = ({
|
|
|
4336
4344
|
de,
|
|
4337
4345
|
{
|
|
4338
4346
|
fontSize: De[t].text,
|
|
4339
|
-
fontWeight:
|
|
4340
|
-
paletteColor: (G = ($ = ye[r]) == null ? void 0 : $.text) != null && G.color ? (b = (_ = ye[r]) == null ? void 0 : _.text) == null ? void 0 : b.color : s && ((V = Te[s]) != null && V.fontColor) ? Te[s].fontColor :
|
|
4347
|
+
fontWeight: bn.Size3,
|
|
4348
|
+
paletteColor: (G = ($ = ye[r]) == null ? void 0 : $.text) != null && G.color ? (b = (_ = ye[r]) == null ? void 0 : _.text) == null ? void 0 : b.color : s && ((V = Te[s]) != null && V.fontColor) ? Te[s].fontColor : Fn[n].text,
|
|
4341
4349
|
className: `name ${u ? "icon-left" : ""}`,
|
|
4342
4350
|
children: e
|
|
4343
4351
|
}
|
|
@@ -4347,8 +4355,8 @@ const Lu = ({
|
|
|
4347
4355
|
de,
|
|
4348
4356
|
{
|
|
4349
4357
|
fontSize: De[t].text,
|
|
4350
|
-
fontWeight:
|
|
4351
|
-
paletteColor: (
|
|
4358
|
+
fontWeight: bn.Size3,
|
|
4359
|
+
paletteColor: (Pn = (je = ye[r]) == null ? void 0 : je.text) != null && Pn.color ? (we = (rn = ye[r]) == null ? void 0 : rn.text) == null ? void 0 : we.color : s && ((Qe = Te[s]) != null && Qe.fontColor) ? Te[s].fontColor : Fn[n].text,
|
|
4352
4360
|
className: `name ${u ? "icon-right" : ""}`,
|
|
4353
4361
|
children: e
|
|
4354
4362
|
}
|
|
@@ -4377,7 +4385,7 @@ const Lu = ({
|
|
|
4377
4385
|
}, Du = ({
|
|
4378
4386
|
isChecked: e,
|
|
4379
4387
|
size: t,
|
|
4380
|
-
checkboxColor: n =
|
|
4388
|
+
checkboxColor: n = ct.Grey5,
|
|
4381
4389
|
onClick: r
|
|
4382
4390
|
}) => /* @__PURE__ */ d(
|
|
4383
4391
|
Nu,
|
|
@@ -4399,24 +4407,24 @@ const Lu = ({
|
|
|
4399
4407
|
borderStyle: "solid"
|
|
4400
4408
|
}, Nu = ({
|
|
4401
4409
|
isChecked: e,
|
|
4402
|
-
checkboxColor: t =
|
|
4410
|
+
checkboxColor: t = ct.Grey5,
|
|
4403
4411
|
size: n = fo.Size3,
|
|
4404
4412
|
children: r,
|
|
4405
4413
|
onClick: i
|
|
4406
4414
|
}) => {
|
|
4407
4415
|
const [s, o] = ie(() => ({
|
|
4408
|
-
borderColor: e ?
|
|
4416
|
+
borderColor: e ? it[t].borderColor : it[ct.Grey5].borderColor
|
|
4409
4417
|
}));
|
|
4410
4418
|
return o.start({
|
|
4411
|
-
borderColor: e ?
|
|
4419
|
+
borderColor: e ? it[t].borderColor : it[ct.Grey5].borderColor
|
|
4412
4420
|
}), /* @__PURE__ */ d(
|
|
4413
4421
|
k,
|
|
4414
4422
|
{
|
|
4415
4423
|
onClick: i,
|
|
4416
|
-
borderRadius:
|
|
4424
|
+
borderRadius: rt[n].boxBorderRadius,
|
|
4417
4425
|
style: {
|
|
4418
|
-
padding:
|
|
4419
|
-
borderWidth:
|
|
4426
|
+
padding: rt[n].padding,
|
|
4427
|
+
borderWidth: rt[n].borderWidth,
|
|
4420
4428
|
...Ru,
|
|
4421
4429
|
...s,
|
|
4422
4430
|
width: "max-content",
|
|
@@ -4427,32 +4435,32 @@ const Lu = ({
|
|
|
4427
4435
|
);
|
|
4428
4436
|
}, Fu = ({
|
|
4429
4437
|
isChecked: e,
|
|
4430
|
-
checkboxColor: t =
|
|
4438
|
+
checkboxColor: t = ct.Grey5,
|
|
4431
4439
|
size: n = fo.Size3
|
|
4432
4440
|
}) => {
|
|
4433
4441
|
const [r, i] = ie(() => ({
|
|
4434
|
-
backgroundColor: e ?
|
|
4442
|
+
backgroundColor: e ? it[t].checkedColor : it[ct.Grey5].checkedColor,
|
|
4435
4443
|
scale: e ? 1 : 0.8,
|
|
4436
4444
|
opacity: e ? 1 : 0
|
|
4437
4445
|
}));
|
|
4438
4446
|
return i.start({
|
|
4439
|
-
backgroundColor: e ?
|
|
4447
|
+
backgroundColor: e ? it[t].checkedColor : it[ct.Grey5].checkedColor,
|
|
4440
4448
|
scale: e ? 1 : 0.8,
|
|
4441
4449
|
opacity: e ? 1 : 0
|
|
4442
4450
|
}), /* @__PURE__ */ d(
|
|
4443
4451
|
k,
|
|
4444
4452
|
{
|
|
4445
4453
|
style: {
|
|
4446
|
-
width:
|
|
4447
|
-
height:
|
|
4454
|
+
width: rt[n].checkedColor.w,
|
|
4455
|
+
height: rt[n].checkedColor.h
|
|
4448
4456
|
},
|
|
4449
4457
|
children: /* @__PURE__ */ d(
|
|
4450
4458
|
k,
|
|
4451
4459
|
{
|
|
4452
|
-
borderRadius:
|
|
4460
|
+
borderRadius: rt[n].checkedBorderRadius,
|
|
4453
4461
|
style: {
|
|
4454
|
-
width:
|
|
4455
|
-
height:
|
|
4462
|
+
width: rt[n].checkedColor.w,
|
|
4463
|
+
height: rt[n].checkedColor.h,
|
|
4456
4464
|
...r
|
|
4457
4465
|
},
|
|
4458
4466
|
children: /* @__PURE__ */ d(Ce, {})
|
|
@@ -4463,7 +4471,7 @@ const Lu = ({
|
|
|
4463
4471
|
}, Yh = ({
|
|
4464
4472
|
options: e,
|
|
4465
4473
|
multiselect: t = !1,
|
|
4466
|
-
checkboxColor: n =
|
|
4474
|
+
checkboxColor: n = ct.Primary5,
|
|
4467
4475
|
size: r,
|
|
4468
4476
|
//= CheckboxSizes.Size1,
|
|
4469
4477
|
handleClick: i
|
|
@@ -4583,7 +4591,7 @@ const We = {
|
|
|
4583
4591
|
}
|
|
4584
4592
|
}, Wh = ({
|
|
4585
4593
|
children: e,
|
|
4586
|
-
chipColor: t =
|
|
4594
|
+
chipColor: t = st.Primarys,
|
|
4587
4595
|
paddings: n = "all",
|
|
4588
4596
|
margin: r,
|
|
4589
4597
|
marginTop: i,
|
|
@@ -4597,8 +4605,8 @@ const We = {
|
|
|
4597
4605
|
}) => {
|
|
4598
4606
|
var p, m, g, y, v, w, S, C, E, A, M, L, P;
|
|
4599
4607
|
const { theme: h } = re(), f = ie({
|
|
4600
|
-
backgroundColor: h !==
|
|
4601
|
-
color: h !==
|
|
4608
|
+
backgroundColor: h !== vn.Light ? (p = We[c]) != null && p.bgColor ? ee[Ge[t][0] + 2] : void 0 : (m = We[c]) != null && m.bgColor ? ee[Ge[t][1] - 2] : void 0,
|
|
4609
|
+
color: h !== vn.Light ? (
|
|
4602
4610
|
// dark
|
|
4603
4611
|
(y = (g = We[c]) == null ? void 0 : g.font) != null && y.fontColor ? (w = (v = We[c]) == null ? void 0 : v.font) == null ? void 0 : w.fontColor : ee[Ge[t][0] + 4]
|
|
4604
4612
|
) : (
|
|
@@ -4632,7 +4640,7 @@ const We = {
|
|
|
4632
4640
|
color: "inherit"
|
|
4633
4641
|
},
|
|
4634
4642
|
fontSize: a || Be[l].fontSize,
|
|
4635
|
-
fontWeight:
|
|
4643
|
+
fontWeight: bn.Size3,
|
|
4636
4644
|
children: e
|
|
4637
4645
|
}
|
|
4638
4646
|
)
|
|
@@ -5590,13 +5598,13 @@ const Wu = /* @__PURE__ */ Jo(Yu), Ku = ({ size: e, color: t = K.Primary5, text:
|
|
|
5590
5598
|
return /* @__PURE__ */ d(Y, { children: n && /* @__PURE__ */ d(
|
|
5591
5599
|
k,
|
|
5592
5600
|
{
|
|
5593
|
-
marginTop:
|
|
5594
|
-
marginBottom:
|
|
5595
|
-
marginLeft:
|
|
5596
|
-
marginRight:
|
|
5601
|
+
marginTop: Yt[e].margins.marginTop,
|
|
5602
|
+
marginBottom: Yt[e].margins.marginBottom,
|
|
5603
|
+
marginLeft: Yt[e].margins.marginLeft,
|
|
5604
|
+
marginRight: Yt[e].margins.marginRight,
|
|
5597
5605
|
style: {
|
|
5598
|
-
width:
|
|
5599
|
-
height:
|
|
5606
|
+
width: Yt[e].width,
|
|
5607
|
+
height: Yt[e].height,
|
|
5600
5608
|
borderRadius: "50%",
|
|
5601
5609
|
backgroundColor: typeof t == "number" ? ee[t] : t,
|
|
5602
5610
|
color: r
|
|
@@ -5636,24 +5644,24 @@ function ui(e) {
|
|
|
5636
5644
|
});
|
|
5637
5645
|
return t.current = e, n.current;
|
|
5638
5646
|
}
|
|
5639
|
-
var
|
|
5647
|
+
var Tn = function(e, t, n) {
|
|
5640
5648
|
return t === void 0 && (t = 0), n === void 0 && (n = 1), e > n ? n : e < t ? t : e;
|
|
5641
|
-
},
|
|
5649
|
+
}, gn = function(e) {
|
|
5642
5650
|
return "touches" in e;
|
|
5643
5651
|
}, li = function(e) {
|
|
5644
5652
|
return e && e.ownerDocument.defaultView || self;
|
|
5645
5653
|
}, Cs = function(e, t, n) {
|
|
5646
|
-
var r = e.getBoundingClientRect(), i =
|
|
5654
|
+
var r = e.getBoundingClientRect(), i = gn(t) ? function(s, o) {
|
|
5647
5655
|
for (var u = 0; u < s.length; u++) if (s[u].identifier === o) return s[u];
|
|
5648
5656
|
return s[0];
|
|
5649
5657
|
}(t.touches, n) : t;
|
|
5650
|
-
return { left:
|
|
5658
|
+
return { left: Tn((i.pageX - (r.left + li(e).pageXOffset)) / r.width), top: Tn((i.pageY - (r.top + li(e).pageYOffset)) / r.height) };
|
|
5651
5659
|
}, ks = function(e) {
|
|
5652
|
-
!
|
|
5660
|
+
!gn(e) && e.preventDefault();
|
|
5653
5661
|
}, ca = le.memo(function(e) {
|
|
5654
5662
|
var t = e.onMove, n = e.onKey, r = aa(e, ["onMove", "onKey"]), i = te(null), s = ui(t), o = ui(n), u = te(null), a = te(!1), c = Ne(function() {
|
|
5655
5663
|
var p = function(y) {
|
|
5656
|
-
ks(y), (
|
|
5664
|
+
ks(y), (gn(y) ? y.touches.length > 0 : y.buttons > 0) && i.current ? s(Cs(i.current, y, u.current)) : g(!1);
|
|
5657
5665
|
}, m = function() {
|
|
5658
5666
|
return g(!1);
|
|
5659
5667
|
};
|
|
@@ -5664,9 +5672,9 @@ var In = function(e, t, n) {
|
|
|
5664
5672
|
return [function(y) {
|
|
5665
5673
|
var v = y.nativeEvent, w = i.current;
|
|
5666
5674
|
if (w && (ks(v), !function(C, E) {
|
|
5667
|
-
return E && !
|
|
5675
|
+
return E && !gn(C);
|
|
5668
5676
|
}(v, a.current) && w)) {
|
|
5669
|
-
if (
|
|
5677
|
+
if (gn(v)) {
|
|
5670
5678
|
a.current = !0;
|
|
5671
5679
|
var S = v.changedTouches || [];
|
|
5672
5680
|
S.length && (u.current = S[0].identifier);
|
|
@@ -5719,14 +5727,14 @@ var In = function(e, t, n) {
|
|
|
5719
5727
|
return le.createElement("div", { className: r }, le.createElement(ca, { onMove: function(i) {
|
|
5720
5728
|
n({ h: 360 * i.left });
|
|
5721
5729
|
}, onKey: function(i) {
|
|
5722
|
-
n({ h:
|
|
5730
|
+
n({ h: Tn(t + 360 * i.left, 0, 360) });
|
|
5723
5731
|
}, "aria-label": "Hue", "aria-valuenow": ve(t), "aria-valuemax": "360", "aria-valuemin": "0" }, le.createElement(ua, { className: "react-colorful__hue-pointer", left: t / 360, color: di({ h: t, s: 100, v: 100, a: 1 }) })));
|
|
5724
5732
|
}), il = le.memo(function(e) {
|
|
5725
5733
|
var t = e.hsva, n = e.onChange, r = { backgroundColor: di({ h: t.h, s: 100, v: 100, a: 1 }) };
|
|
5726
5734
|
return le.createElement("div", { className: "react-colorful__saturation", style: r }, le.createElement(ca, { onMove: function(i) {
|
|
5727
5735
|
n({ s: 100 * i.left, v: 100 - 100 * i.top });
|
|
5728
5736
|
}, onKey: function(i) {
|
|
5729
|
-
n({ s:
|
|
5737
|
+
n({ s: Tn(t.s + 100 * i.left, 0, 100), v: Tn(t.v - 100 * i.top, 0, 100) });
|
|
5730
5738
|
}, "aria-label": "Color", "aria-valuetext": "Saturation " + ve(t.s) + "%, Brightness " + ve(t.v) + "%" }, le.createElement(ua, { className: "react-colorful__saturation-pointer", top: 1 - t.v / 100, left: t.s / 100, color: di(t) })));
|
|
5731
5739
|
}), la = function(e, t) {
|
|
5732
5740
|
if (e === t) return !0;
|
|
@@ -5778,7 +5786,7 @@ var al = typeof window < "u" ? qs : q, cl = function() {
|
|
|
5778
5786
|
return le.createElement(ll, Er({}, e, { colorModel: fl }));
|
|
5779
5787
|
};
|
|
5780
5788
|
const Ni = (e) => {
|
|
5781
|
-
const t = te();
|
|
5789
|
+
const t = te(null);
|
|
5782
5790
|
return q(() => {
|
|
5783
5791
|
const n = (r) => {
|
|
5784
5792
|
t.current && (t.current.contains(r.target) || e());
|
|
@@ -5867,7 +5875,7 @@ const fa = {
|
|
|
5867
5875
|
e,
|
|
5868
5876
|
document.querySelector(fa[er.Modals].id) || document.body
|
|
5869
5877
|
) : null;
|
|
5870
|
-
}, bl = "_modalBgAnimated_o2uzj_11", _l = "_modalCardCopyOriAnimated_o2uzj_18", wl = "_wrapperContainer_o2uzj_49",
|
|
5878
|
+
}, bl = "_modalBgAnimated_o2uzj_11", _l = "_modalCardCopyOriAnimated_o2uzj_18", wl = "_wrapperContainer_o2uzj_49", yn = {
|
|
5871
5879
|
modalBgAnimated: bl,
|
|
5872
5880
|
modalCardCopyOriAnimated: _l,
|
|
5873
5881
|
"no-card": "_no-card_o2uzj_38",
|
|
@@ -5880,7 +5888,7 @@ const fa = {
|
|
|
5880
5888
|
(r, i) => i && /* @__PURE__ */ d(
|
|
5881
5889
|
k,
|
|
5882
5890
|
{
|
|
5883
|
-
className:
|
|
5891
|
+
className: yn.modalBgAnimated,
|
|
5884
5892
|
style: {
|
|
5885
5893
|
...r,
|
|
5886
5894
|
backgroundColor: t ? `${ee[t]}${ja[Ba.Dark3]}` : "#0000007f"
|
|
@@ -6298,7 +6306,7 @@ process.env.NODE_ENV === "development" && Object.assign(Fi, {
|
|
|
6298
6306
|
return NaN;
|
|
6299
6307
|
}
|
|
6300
6308
|
});
|
|
6301
|
-
const Ul = 0,
|
|
6309
|
+
const Ul = 0, zn = ne(ne({}, Fi), {}, {
|
|
6302
6310
|
axis(e, t, {
|
|
6303
6311
|
axis: n
|
|
6304
6312
|
}) {
|
|
@@ -6309,7 +6317,7 @@ const Ul = 0, Mn = ne(ne({}, Fi), {}, {
|
|
|
6309
6317
|
},
|
|
6310
6318
|
bounds(e = {}) {
|
|
6311
6319
|
if (typeof e == "function")
|
|
6312
|
-
return (s) =>
|
|
6320
|
+
return (s) => zn.bounds(e(s));
|
|
6313
6321
|
if ("current" in e)
|
|
6314
6322
|
return () => e.current;
|
|
6315
6323
|
if (typeof HTMLElement == "function" && e instanceof HTMLElement)
|
|
@@ -6346,7 +6354,7 @@ class Gl extends Hl {
|
|
|
6346
6354
|
top: n.top - r.top + t.offset[1],
|
|
6347
6355
|
bottom: n.bottom - r.bottom + t.offset[1]
|
|
6348
6356
|
};
|
|
6349
|
-
t._bounds =
|
|
6357
|
+
t._bounds = zn.bounds(i);
|
|
6350
6358
|
}
|
|
6351
6359
|
}
|
|
6352
6360
|
cancel() {
|
|
@@ -6472,18 +6480,18 @@ class Gl extends Hl {
|
|
|
6472
6480
|
function Vl(e) {
|
|
6473
6481
|
"persist" in e && typeof e.persist == "function" && e.persist();
|
|
6474
6482
|
}
|
|
6475
|
-
const
|
|
6483
|
+
const Ln = typeof window < "u" && window.document && window.document.createElement;
|
|
6476
6484
|
function ga() {
|
|
6477
|
-
return
|
|
6485
|
+
return Ln && "ontouchstart" in window;
|
|
6478
6486
|
}
|
|
6479
6487
|
function ql() {
|
|
6480
|
-
return ga() ||
|
|
6488
|
+
return ga() || Ln && window.navigator.maxTouchPoints > 1;
|
|
6481
6489
|
}
|
|
6482
6490
|
function Yl() {
|
|
6483
|
-
return
|
|
6491
|
+
return Ln && "onpointerdown" in window;
|
|
6484
6492
|
}
|
|
6485
6493
|
function Wl() {
|
|
6486
|
-
return
|
|
6494
|
+
return Ln && "exitPointerLock" in window.document;
|
|
6487
6495
|
}
|
|
6488
6496
|
function Kl() {
|
|
6489
6497
|
try {
|
|
@@ -6493,7 +6501,7 @@ function Kl() {
|
|
|
6493
6501
|
}
|
|
6494
6502
|
}
|
|
6495
6503
|
const Oe = {
|
|
6496
|
-
isBrowser:
|
|
6504
|
+
isBrowser: Ln,
|
|
6497
6505
|
gesture: Kl(),
|
|
6498
6506
|
touch: ga(),
|
|
6499
6507
|
touchscreen: ql(),
|
|
@@ -6503,7 +6511,7 @@ const Oe = {
|
|
|
6503
6511
|
mouse: 0,
|
|
6504
6512
|
touch: 0,
|
|
6505
6513
|
pen: 8
|
|
6506
|
-
}, ya = ne(ne({},
|
|
6514
|
+
}, ya = ne(ne({}, zn), {}, {
|
|
6507
6515
|
device(e, t, {
|
|
6508
6516
|
pointer: {
|
|
6509
6517
|
touch: n = !1,
|
|
@@ -6768,10 +6776,10 @@ const af = ne(ne({}, Fi), {}, {
|
|
|
6768
6776
|
return e;
|
|
6769
6777
|
}
|
|
6770
6778
|
});
|
|
6771
|
-
ne(ne({},
|
|
6779
|
+
ne(ne({}, zn), {}, {
|
|
6772
6780
|
mouseOnly: (e = !0) => e
|
|
6773
6781
|
});
|
|
6774
|
-
ne(ne({},
|
|
6782
|
+
ne(ne({}, zn), {}, {
|
|
6775
6783
|
mouseOnly: (e = !0) => e
|
|
6776
6784
|
});
|
|
6777
6785
|
const $i = /* @__PURE__ */ new Map(), pi = /* @__PURE__ */ new Map();
|
|
@@ -6980,11 +6988,11 @@ class mf {
|
|
|
6980
6988
|
}
|
|
6981
6989
|
}
|
|
6982
6990
|
}
|
|
6983
|
-
function
|
|
6991
|
+
function Kt(e, t) {
|
|
6984
6992
|
e.gestures.add(t), e.gestureEventStores[t] = new _a(e, t), e.gestureTimeoutStores[t] = new pf();
|
|
6985
6993
|
}
|
|
6986
6994
|
function gf(e, t) {
|
|
6987
|
-
t.drag &&
|
|
6995
|
+
t.drag && Kt(e, "drag"), t.wheel && Kt(e, "wheel"), t.scroll && Kt(e, "scroll"), t.move && Kt(e, "move"), t.pinch && Kt(e, "pinch"), t.hover && Kt(e, "hover");
|
|
6988
6996
|
}
|
|
6989
6997
|
const Bs = (e, t, n) => (r, i, s, o = {}, u = !1) => {
|
|
6990
6998
|
var a, c;
|
|
@@ -6998,7 +7006,7 @@ function vf(e) {
|
|
|
6998
7006
|
yf.test(i) ? (r.add(RegExp.lastMatch), n[i] = e[i]) : t[i] = e[i];
|
|
6999
7007
|
return [n, t, r];
|
|
7000
7008
|
}
|
|
7001
|
-
function
|
|
7009
|
+
function Zt(e, t, n, r, i, s) {
|
|
7002
7010
|
if (!e.has(n)) return;
|
|
7003
7011
|
if (!$i.has(r)) {
|
|
7004
7012
|
process.env.NODE_ENV === "development" && console.warn(`[@use-gesture]: You've created a custom handler that that uses the \`${r}\` gesture but isn't properly configured.
|
|
@@ -7014,7 +7022,7 @@ Please add \`${r}Action\` when creating your handler.`);
|
|
|
7014
7022
|
}
|
|
7015
7023
|
function bf(e, t) {
|
|
7016
7024
|
const [n, r, i] = vf(e), s = {};
|
|
7017
|
-
return
|
|
7025
|
+
return Zt(i, n, "onDrag", "drag", s, t), Zt(i, n, "onWheel", "wheel", s, t), Zt(i, n, "onScroll", "scroll", s, t), Zt(i, n, "onPinch", "pinch", s, t), Zt(i, n, "onMove", "move", s, t), Zt(i, n, "onHover", "hover", s, t), {
|
|
7018
7026
|
handlers: s,
|
|
7019
7027
|
config: t,
|
|
7020
7028
|
nativeHandlers: r
|
|
@@ -7048,9 +7056,9 @@ const wf = ({ closeModal: e, modalStyles: t, children: n }) => {
|
|
|
7048
7056
|
{ axis: "y", filterTaps: !0, pointer: { touch: !0 } }
|
|
7049
7057
|
);
|
|
7050
7058
|
return /* @__PURE__ */ d(
|
|
7051
|
-
|
|
7059
|
+
nn,
|
|
7052
7060
|
{
|
|
7053
|
-
className: t === dr.Nocard ? `${
|
|
7061
|
+
className: t === dr.Nocard ? `${yn.modalCardCopyOriAnimated} ${yn["no-card"]}` : `${yn.modalCardCopyOriAnimated}`,
|
|
7054
7062
|
...o(),
|
|
7055
7063
|
style: { ...i, touchAction: "none" },
|
|
7056
7064
|
ref: r,
|
|
@@ -7062,7 +7070,7 @@ const wf = ({ closeModal: e, modalStyles: t, children: n }) => {
|
|
|
7062
7070
|
enter: { opacity: 1 },
|
|
7063
7071
|
leave: { opacity: 0 }
|
|
7064
7072
|
})(
|
|
7065
|
-
(r, i) => i && /* @__PURE__ */ d(k, { className:
|
|
7073
|
+
(r, i) => i && /* @__PURE__ */ d(k, { className: yn.wrapperContainer, style: r, children: t })
|
|
7066
7074
|
), Ef = ({
|
|
7067
7075
|
showModal: e,
|
|
7068
7076
|
closeModal: t,
|
|
@@ -7196,7 +7204,7 @@ const Ea = mi({
|
|
|
7196
7204
|
}), Ff = ({ children: e }) => {
|
|
7197
7205
|
const t = $f();
|
|
7198
7206
|
return /* @__PURE__ */ d(Ea.Provider, { value: t, children: e });
|
|
7199
|
-
}, ji = () =>
|
|
7207
|
+
}, ji = () => An(Ea);
|
|
7200
7208
|
function $f() {
|
|
7201
7209
|
const [e, t] = Z([]), [n, r] = Z(0), [i, { width: s }] = Ye(), [o, u] = Z(!1), [a, c] = Li(
|
|
7202
7210
|
e.length,
|
|
@@ -7438,7 +7446,7 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
7438
7446
|
flexAlignItem: he.Center,
|
|
7439
7447
|
style: { height: "100%" },
|
|
7440
7448
|
children: /* @__PURE__ */ d(
|
|
7441
|
-
|
|
7449
|
+
nn,
|
|
7442
7450
|
{
|
|
7443
7451
|
ref: u,
|
|
7444
7452
|
className: Hf.ZAnimated,
|
|
@@ -7831,7 +7839,7 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
7831
7839
|
children: /* @__PURE__ */ d("label", { htmlFor: e, children: /* @__PURE__ */ d(
|
|
7832
7840
|
de,
|
|
7833
7841
|
{
|
|
7834
|
-
fontWeight:
|
|
7842
|
+
fontWeight: bn.Size3,
|
|
7835
7843
|
paletteColor: r && typeof r == "boolean" ? Kr[i].labelColor : K.Grey10,
|
|
7836
7844
|
fontSize: He[n].font.size,
|
|
7837
7845
|
children: t
|
|
@@ -7842,9 +7850,9 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
7842
7850
|
// required
|
|
7843
7851
|
id: e,
|
|
7844
7852
|
name: t,
|
|
7845
|
-
type: n =
|
|
7853
|
+
type: n = sn.Text,
|
|
7846
7854
|
value: r,
|
|
7847
|
-
modes: i =
|
|
7855
|
+
modes: i = $n.Default,
|
|
7848
7856
|
label: s,
|
|
7849
7857
|
// optional properties
|
|
7850
7858
|
focus: o,
|
|
@@ -7863,8 +7871,8 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
7863
7871
|
handleCheck: v,
|
|
7864
7872
|
// styling
|
|
7865
7873
|
size: w = Ua.Default,
|
|
7866
|
-
inputStyle: S =
|
|
7867
|
-
inputColor: C =
|
|
7874
|
+
inputStyle: S = jn.Default,
|
|
7875
|
+
inputColor: C = st.Primarys,
|
|
7868
7876
|
// customizations
|
|
7869
7877
|
labelTextColor: E = !0,
|
|
7870
7878
|
transparent: A,
|
|
@@ -7872,7 +7880,7 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
7872
7880
|
}) => {
|
|
7873
7881
|
const L = te(null);
|
|
7874
7882
|
q(() => {
|
|
7875
|
-
if (i !==
|
|
7883
|
+
if (i !== $n.Disabled) {
|
|
7876
7884
|
if (o) {
|
|
7877
7885
|
L.current && L.current.focus();
|
|
7878
7886
|
return;
|
|
@@ -7884,7 +7892,7 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
7884
7892
|
B(($) => !$);
|
|
7885
7893
|
};
|
|
7886
7894
|
q(() => {
|
|
7887
|
-
n ===
|
|
7895
|
+
n === sn.Password && R(z ? sn.Text : sn.Password);
|
|
7888
7896
|
}, [z]);
|
|
7889
7897
|
const T = ($) => {
|
|
7890
7898
|
m && m($);
|
|
@@ -7899,7 +7907,7 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
7899
7907
|
},
|
|
7900
7908
|
[y, v]
|
|
7901
7909
|
), H = Le(() => {
|
|
7902
|
-
if (i !==
|
|
7910
|
+
if (i !== $n.Disabled)
|
|
7903
7911
|
return L.current && L.current.focus(), g && g(), !0;
|
|
7904
7912
|
}, [g, i]);
|
|
7905
7913
|
return /* @__PURE__ */ X(
|
|
@@ -7934,10 +7942,10 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
7934
7942
|
style: {
|
|
7935
7943
|
// position: "relative",
|
|
7936
7944
|
// width: fullWidth ? "100%" : width ? width : 350,
|
|
7937
|
-
paddingTop: S !==
|
|
7938
|
-
paddingBottom: S !==
|
|
7945
|
+
paddingTop: S !== jn.Outlined ? 1 : "",
|
|
7946
|
+
paddingBottom: S !== jn.Outlined ? Ha[He[w].paddings.bottom] : "",
|
|
7939
7947
|
// display: size === InputTextSizes.Small ? "flex" : "block",
|
|
7940
|
-
display: S !==
|
|
7948
|
+
display: S !== jn.Outlined ? "flex" : "block",
|
|
7941
7949
|
cursor: "text"
|
|
7942
7950
|
},
|
|
7943
7951
|
onClick: () => H(),
|
|
@@ -7948,7 +7956,7 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
7948
7956
|
ref: L,
|
|
7949
7957
|
type: P,
|
|
7950
7958
|
required: u,
|
|
7951
|
-
disabled: i !==
|
|
7959
|
+
disabled: i !== $n.Disabled ? void 0 : !0,
|
|
7952
7960
|
fontSize: He[w].font.size,
|
|
7953
7961
|
fontWeight: He[w].font.weight,
|
|
7954
7962
|
color: Kr[C].fontColor,
|
|
@@ -7965,7 +7973,7 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
7965
7973
|
...M
|
|
7966
7974
|
}
|
|
7967
7975
|
),
|
|
7968
|
-
n ===
|
|
7976
|
+
n === sn.Password && /* @__PURE__ */ d(
|
|
7969
7977
|
ud,
|
|
7970
7978
|
{
|
|
7971
7979
|
isShow: z,
|
|
@@ -7983,11 +7991,11 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
7983
7991
|
var n, r, i, s, o, u, a, c, l, h;
|
|
7984
7992
|
return t ? {} : {
|
|
7985
7993
|
// default
|
|
7986
|
-
borderBottomStyle: (i = (r = (n =
|
|
7987
|
-
borderWidth: (o = (s =
|
|
7994
|
+
borderBottomStyle: (i = (r = (n = Bn[e]) == null ? void 0 : n.borders) == null ? void 0 : r.bottom) == null ? void 0 : i.style,
|
|
7995
|
+
borderWidth: (o = (s = Bn[e]) == null ? void 0 : s.borders) == null ? void 0 : o.width,
|
|
7988
7996
|
// outline
|
|
7989
|
-
borderRadius: (a = (u =
|
|
7990
|
-
borderStyle: (h = (l = (c =
|
|
7997
|
+
borderRadius: (a = (u = Bn[e]) == null ? void 0 : u.borders) == null ? void 0 : a.radius,
|
|
7998
|
+
borderStyle: (h = (l = (c = Bn[e]) == null ? void 0 : c.borders) == null ? void 0 : l.borders) == null ? void 0 : h.style
|
|
7991
7999
|
// filled
|
|
7992
8000
|
// borderRadius: undefined,
|
|
7993
8001
|
};
|
|
@@ -8013,7 +8021,7 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
8013
8021
|
children: /* @__PURE__ */ d("label", { htmlFor: e, children: /* @__PURE__ */ d(
|
|
8014
8022
|
de,
|
|
8015
8023
|
{
|
|
8016
|
-
fontWeight:
|
|
8024
|
+
fontWeight: bn.Size3,
|
|
8017
8025
|
paletteColor: i && typeof i == "boolean" ? Ga[r].labelColor : K.Grey10,
|
|
8018
8026
|
fontSize: Xe[n].font.size,
|
|
8019
8027
|
children: t
|
|
@@ -8043,8 +8051,8 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
8043
8051
|
handleCheck: p,
|
|
8044
8052
|
// text area styles -- style, sizings
|
|
8045
8053
|
size: m = Ya.Default,
|
|
8046
|
-
textAreaStyle: g =
|
|
8047
|
-
textAreaColor: y =
|
|
8054
|
+
textAreaStyle: g = on.Default,
|
|
8055
|
+
textAreaColor: y = st.Primarys,
|
|
8048
8056
|
// customization
|
|
8049
8057
|
labelTextColor: v,
|
|
8050
8058
|
noLabel: w,
|
|
@@ -8095,8 +8103,8 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
8095
8103
|
borderColor: K.Primary5,
|
|
8096
8104
|
...gd(g),
|
|
8097
8105
|
style: {
|
|
8098
|
-
paddingTop: g !==
|
|
8099
|
-
paddingBottom: g !==
|
|
8106
|
+
paddingTop: g !== on.Outlined && g !== on.Default ? 1 : "",
|
|
8107
|
+
paddingBottom: g !== on.Outlined && g !== on.Default ? 1 : "",
|
|
8100
8108
|
cursor: "text"
|
|
8101
8109
|
},
|
|
8102
8110
|
onClick: () => A(),
|
|
@@ -8130,10 +8138,10 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
8130
8138
|
var t, n, r, i, s, o, u, a, c;
|
|
8131
8139
|
return {
|
|
8132
8140
|
// define the top, left, bottom, right first
|
|
8133
|
-
borderBottomStyle: (r = (n = (t =
|
|
8134
|
-
borderWidth: (s = (i =
|
|
8135
|
-
borderRadius: (u = (o =
|
|
8136
|
-
borderStyle: (c = (a =
|
|
8141
|
+
borderBottomStyle: (r = (n = (t = Hn[e]) == null ? void 0 : t.borders) == null ? void 0 : n.bottom) == null ? void 0 : r.style,
|
|
8142
|
+
borderWidth: (s = (i = Hn[e]) == null ? void 0 : i.borders) == null ? void 0 : s.width,
|
|
8143
|
+
borderRadius: (u = (o = Hn[e]) == null ? void 0 : o.borders) == null ? void 0 : u.radius,
|
|
8144
|
+
borderStyle: (c = (a = Hn[e]) == null ? void 0 : a.borders) == null ? void 0 : c.style
|
|
8137
8145
|
};
|
|
8138
8146
|
}, yd = ({
|
|
8139
8147
|
text: e,
|
|
@@ -8143,7 +8151,7 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
8143
8151
|
handleSelectInset: n,
|
|
8144
8152
|
isSelected: r,
|
|
8145
8153
|
// rgbBg,
|
|
8146
|
-
insetColor: i =
|
|
8154
|
+
insetColor: i = st.Primarys,
|
|
8147
8155
|
borderTopLeftRadius: s,
|
|
8148
8156
|
borderTopRightRadius: o,
|
|
8149
8157
|
borderBottomLeftRadius: u,
|
|
@@ -8151,9 +8159,9 @@ const jf = ({ openMenu: e = !0 }) => {
|
|
|
8151
8159
|
}) => {
|
|
8152
8160
|
const c = ie({
|
|
8153
8161
|
// backgroundColor: isSelected ? rgbBg ? rgbBg : "rgb(255,255,255)" : "rgb(222,226,230)",
|
|
8154
|
-
backgroundColor: r ? ee[Ge[i][0] + 3] : ee[Ge[
|
|
8162
|
+
backgroundColor: r ? ee[Ge[i][0] + 3] : ee[Ge[st.Greys][0] + 2],
|
|
8155
8163
|
// color: isSelected ? "rgb(25,25,25)" : "rgb(134,142,150)",
|
|
8156
|
-
color: r ? ee[Ge[
|
|
8164
|
+
color: r ? ee[Ge[st.Greys][1] - 1] : ee[Ge[st.Greys][1] - 4],
|
|
8157
8165
|
boxShadow: r ? "inset 0 0px 0 hsla(0, 0%, 0%, 0), inset 0 0px 0px hsla(0, 0%, 0%, 0)" : "inset 0 -2px 0 hsla(0, 0%, 100%, .055), inset 0 2px 2px hsla(0, 0%, 0%, 0.1)"
|
|
8158
8166
|
// boxShadow: isSelected ? "inset 0 0px 0 hsla(0, 0%, 0%, 0)" : "inset 0 -2px 0 hsla(0, 0%, 100%, .15)",
|
|
8159
8167
|
// config: {
|
|
@@ -8370,12 +8378,12 @@ const Td = ({
|
|
|
8370
8378
|
ul: Ad,
|
|
8371
8379
|
li: Od
|
|
8372
8380
|
}, Yr = {
|
|
8373
|
-
[
|
|
8381
|
+
[ft.Top]: {
|
|
8374
8382
|
from: { y: -10 },
|
|
8375
8383
|
enter: { y: -1 },
|
|
8376
8384
|
leave: { y: -10 }
|
|
8377
8385
|
},
|
|
8378
|
-
[
|
|
8386
|
+
[ft.Bottom]: {
|
|
8379
8387
|
from: { y: 10 },
|
|
8380
8388
|
enter: { y: -1 },
|
|
8381
8389
|
leave: { y: 10 }
|
|
@@ -8452,7 +8460,7 @@ const Td = ({
|
|
|
8452
8460
|
{
|
|
8453
8461
|
style: {
|
|
8454
8462
|
...s,
|
|
8455
|
-
transformOrigin: t ===
|
|
8463
|
+
transformOrigin: t === ft.Top ? "bottom center" : t === ft.Bottom ? "top center" : n < 0 ? "bottom center" : "top center"
|
|
8456
8464
|
},
|
|
8457
8465
|
className: Bi.ul,
|
|
8458
8466
|
children: r
|
|
@@ -8487,7 +8495,7 @@ const Td = ({
|
|
|
8487
8495
|
{
|
|
8488
8496
|
style: {
|
|
8489
8497
|
...s,
|
|
8490
|
-
transformOrigin: t ===
|
|
8498
|
+
transformOrigin: t === ft.Top ? "bottom center" : t === ft.Bottom ? "top center" : n < 0 ? "bottom center" : "top center"
|
|
8491
8499
|
},
|
|
8492
8500
|
className: Bi.ul,
|
|
8493
8501
|
children: r
|
|
@@ -8537,11 +8545,8 @@ const Td = ({
|
|
|
8537
8545
|
}
|
|
8538
8546
|
);
|
|
8539
8547
|
}, Pd = (e, t) => {
|
|
8540
|
-
const [n, r] = Z(
|
|
8541
|
-
|
|
8542
|
-
height: 0
|
|
8543
|
-
});
|
|
8544
|
-
return q(() => {
|
|
8548
|
+
const [n, r] = Z(null);
|
|
8549
|
+
q(() => {
|
|
8545
8550
|
const s = () => {
|
|
8546
8551
|
r({
|
|
8547
8552
|
width: window ? window.innerWidth : 0,
|
|
@@ -8551,14 +8556,16 @@ const Td = ({
|
|
|
8551
8556
|
return window && window.addEventListener("resize", s), () => {
|
|
8552
8557
|
window && window.removeEventListener("resize", s);
|
|
8553
8558
|
};
|
|
8554
|
-
}, [])
|
|
8559
|
+
}, []);
|
|
8560
|
+
const i = e.height + 10;
|
|
8561
|
+
return n && i + e.top > n.height ? -1 : 1;
|
|
8555
8562
|
}, Dd = ({
|
|
8556
8563
|
isSelectOpen: e,
|
|
8557
8564
|
selectOptions: t,
|
|
8558
8565
|
handleSelectItem: n,
|
|
8559
8566
|
selectState: r,
|
|
8560
8567
|
dropdownHeightStyle: i,
|
|
8561
|
-
dropdownPosition: s =
|
|
8568
|
+
dropdownPosition: s = ft.Bottom,
|
|
8562
8569
|
colorSet: o,
|
|
8563
8570
|
headerHeight: u,
|
|
8564
8571
|
w: a
|
|
@@ -8566,14 +8573,14 @@ const Td = ({
|
|
|
8566
8573
|
}) => {
|
|
8567
8574
|
const [c, l] = Ye(), h = Pd(l), f = h > 0 ? u - 1 : -l.height;
|
|
8568
8575
|
return /* @__PURE__ */ d(
|
|
8569
|
-
|
|
8576
|
+
nn,
|
|
8570
8577
|
{
|
|
8571
8578
|
ref: c,
|
|
8572
|
-
borderRadius:
|
|
8579
|
+
borderRadius: Ut[r].dropdown.borderRadius,
|
|
8573
8580
|
borderBottomLeftRadius: pe.Size0,
|
|
8574
8581
|
borderBottomRightRadius: pe.Size0,
|
|
8575
|
-
borderWidth:
|
|
8576
|
-
borderColor:
|
|
8582
|
+
borderWidth: Ut[r].header.borderWidth,
|
|
8583
|
+
borderColor: Ut[r].header.borderColor,
|
|
8577
8584
|
style: {
|
|
8578
8585
|
maxHeight: 250,
|
|
8579
8586
|
width: a,
|
|
@@ -8642,12 +8649,12 @@ const Td = ({
|
|
|
8642
8649
|
paddingBottom: I.Size1,
|
|
8643
8650
|
paddingLeft: I.Size2,
|
|
8644
8651
|
paddingRight: I.Size2,
|
|
8645
|
-
borderRadius:
|
|
8646
|
-
borderWidth:
|
|
8647
|
-
borderColor:
|
|
8652
|
+
borderRadius: Ut[i].header.borderRadius,
|
|
8653
|
+
borderWidth: Ut[i].header.borderWidth,
|
|
8654
|
+
borderColor: Ut[i].header.borderColor,
|
|
8648
8655
|
borderTopLeftRadius: t ? pe.Size0 : void 0,
|
|
8649
8656
|
borderTopRightRadius: t ? pe.Size0 : void 0,
|
|
8650
|
-
bgColor:
|
|
8657
|
+
bgColor: Ut[i].header.bgColor,
|
|
8651
8658
|
onClick: () => e((a) => !a),
|
|
8652
8659
|
children: /* @__PURE__ */ X(
|
|
8653
8660
|
Y,
|
|
@@ -8739,8 +8746,8 @@ const r0 = ({
|
|
|
8739
8746
|
dropdownHeightStyle: u = Zr.AutoHeight,
|
|
8740
8747
|
state: a = Kn.Default,
|
|
8741
8748
|
selectedValuesStyle: c = Xr.Text,
|
|
8742
|
-
colorSet: l =
|
|
8743
|
-
dropdownPosition: h =
|
|
8749
|
+
colorSet: l = st.Primarys,
|
|
8750
|
+
dropdownPosition: h = ft.Bottom,
|
|
8744
8751
|
setSelectedIdx: f,
|
|
8745
8752
|
setInput: p
|
|
8746
8753
|
}) => {
|
|
@@ -9209,7 +9216,7 @@ const ah = ({ height: e, tabRoomWidth: t, activeItem: n }) => {
|
|
|
9209
9216
|
}
|
|
9210
9217
|
) }),
|
|
9211
9218
|
/* @__PURE__ */ d(k, { style: { position: "relative", ...u }, children: /* @__PURE__ */ X(
|
|
9212
|
-
|
|
9219
|
+
nn,
|
|
9213
9220
|
{
|
|
9214
9221
|
className: Wr.toggleThumb,
|
|
9215
9222
|
ref: h,
|
|
@@ -9252,7 +9259,7 @@ export {
|
|
|
9252
9259
|
Wh as Chip,
|
|
9253
9260
|
Kh as ColorPicker,
|
|
9254
9261
|
k as Container,
|
|
9255
|
-
|
|
9262
|
+
nn as ContainerRef,
|
|
9256
9263
|
Fh as DivMeasure,
|
|
9257
9264
|
du as F__Button,
|
|
9258
9265
|
gh as F__ButtonRef,
|