@selectwin/kit 0.1.78 → 0.1.80
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/SelectDataTable.d.ts +21 -0
- package/dist/SelectTable.d.ts +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +518 -512
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as u, Fragment as he } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as K, useEffect as ue, forwardRef as T, useState as P, useId as ve, useCallback as nt, useLayoutEffect as Ke, useMemo as
|
|
3
|
-
import
|
|
2
|
+
import { useRef as K, useEffect as ue, forwardRef as T, useState as P, useId as ve, useCallback as nt, useLayoutEffect as Ke, useMemo as Oe, Fragment as jn, Children as Rc, useContext as Zn, createContext as Vn } from "react";
|
|
3
|
+
import We from "gsap";
|
|
4
4
|
import { createPortal as yn } from "react-dom";
|
|
5
|
-
import { Link as
|
|
6
|
-
const
|
|
5
|
+
import { Link as Hl, useNavigate as jl } from "react-router-dom";
|
|
6
|
+
const sl = (t, n, l) => t < n ? n : t > l ? l : t;
|
|
7
7
|
function Tc(t, n, l) {
|
|
8
8
|
const c = t.getPropertyValue(n).match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);
|
|
9
9
|
return c ? [Number(c[1]), Number(c[2]), Number(c[3])] : l;
|
|
@@ -32,7 +32,7 @@ function yr({ className: t, theme: n, glowTarget: l }) {
|
|
|
32
32
|
let $ = 0, b = 0, C = [], A = 0, B = 0, L = null, E = 0;
|
|
33
33
|
const F = { x: 0, y: 0 };
|
|
34
34
|
let I = 0, D = 0, Z = -10;
|
|
35
|
-
const
|
|
35
|
+
const W = We.quickTo(F, "x", { duration: 0.5, ease: "power3.out" }), j = We.quickTo(F, "y", { duration: 0.5, ease: "power3.out" });
|
|
36
36
|
function le() {
|
|
37
37
|
const Q = s.getBoundingClientRect();
|
|
38
38
|
A = Q.left, B = Q.top, $ = Q.width, b = Q.height;
|
|
@@ -52,7 +52,7 @@ function yr({ className: t, theme: n, glowTarget: l }) {
|
|
|
52
52
|
if (!L) return;
|
|
53
53
|
const ne = L.getBoundingClientRect(), we = ne.left - A + ne.width / 2, Te = ne.top - B + ne.height / 2, ie = ne.width / 2, Ae = ne.height / 2, Ue = (Q - we) / (ie + x), De = (ke - Te) / (Ae + x), Pe = Math.sqrt(Ue * Ue + De * De), Xe = Pe < 1 ? 1 - Pe : 0, ze = Xe * Xe * (3 - 2 * Xe);
|
|
54
54
|
if (ze > 1e-3 || E > 1e-3) {
|
|
55
|
-
const R =
|
|
55
|
+
const R = sl((Q - we) / Math.max(ie, 1), -1, 1) * 10 * ze, G = sl((ke - Te) / Math.max(Ae, 1), -1, 1) * 10 * ze;
|
|
56
56
|
L.style.setProperty("--select-card-glow", ze.toFixed(3)), L.style.setProperty("--select-card-glow-rgb", `${be}, ${ye}, ${Ne}`), L.style.setProperty("--select-card-glow-x", `${R.toFixed(1)}px`), L.style.setProperty("--select-card-glow-y", `${G.toFixed(1)}px`);
|
|
57
57
|
}
|
|
58
58
|
E = ze;
|
|
@@ -65,7 +65,7 @@ function yr({ className: t, theme: n, glowTarget: l }) {
|
|
|
65
65
|
}
|
|
66
66
|
function ae(Q) {
|
|
67
67
|
let ke, be;
|
|
68
|
-
Q - Z < _ ? (ke = I, be = D) : (ke = $ * 0.5 + Math.cos(Q * 0.45) * $ * 0.3, be = b * 0.5 + Math.sin(Q * 0.6) * b * 0.28),
|
|
68
|
+
Q - Z < _ ? (ke = I, be = D) : (ke = $ * 0.5 + Math.cos(Q * 0.45) * $ * 0.3, be = b * 0.5 + Math.sin(Q * 0.6) * b * 0.28), W(ke), j(be);
|
|
69
69
|
const ye = F.x, Ne = F.y;
|
|
70
70
|
a.clearRect(0, 0, $, b);
|
|
71
71
|
for (let ne = 0; ne < C.length; ne++) {
|
|
@@ -75,18 +75,18 @@ function yr({ className: t, theme: n, glowTarget: l }) {
|
|
|
75
75
|
a.shadowBlur = 0, q(ye, Ne, k, w, y);
|
|
76
76
|
}
|
|
77
77
|
function Fe(Q) {
|
|
78
|
-
I = Q.clientX - A, D = Q.clientY - B, Z =
|
|
78
|
+
I = Q.clientX - A, D = Q.clientY - B, Z = We.ticker.time;
|
|
79
79
|
}
|
|
80
80
|
function pe() {
|
|
81
81
|
const Q = s.getBoundingClientRect();
|
|
82
82
|
A = Q.left, B = Q.top;
|
|
83
83
|
}
|
|
84
84
|
le();
|
|
85
|
-
const
|
|
85
|
+
const O = new ResizeObserver(() => {
|
|
86
86
|
le(), r && oe();
|
|
87
87
|
});
|
|
88
|
-
return
|
|
89
|
-
|
|
88
|
+
return O.observe(s), r ? (oe(), () => O.disconnect()) : (window.addEventListener("pointermove", Fe, { passive: !0 }), window.addEventListener("scroll", pe, { passive: !0 }), We.ticker.add(ae), () => {
|
|
89
|
+
We.ticker.remove(ae), We.killTweensOf(F), window.removeEventListener("pointermove", Fe), window.removeEventListener("scroll", pe), O.disconnect(), L == null || L.style.removeProperty("--select-card-glow");
|
|
90
90
|
});
|
|
91
91
|
}, [n, l]), /* @__PURE__ */ e("canvas", { ref: c, className: t, "aria-hidden": "true" });
|
|
92
92
|
}
|
|
@@ -95,7 +95,7 @@ function Dc(t, n, l) {
|
|
|
95
95
|
const c = t.getPropertyValue(n).match(/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);
|
|
96
96
|
return c ? [Number(c[1]), Number(c[2]), Number(c[3])] : l;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Wc(t, n) {
|
|
99
99
|
const l = t.trim();
|
|
100
100
|
if (l.startsWith("#")) {
|
|
101
101
|
let s = l.slice(1);
|
|
@@ -107,7 +107,7 @@ function Oc(t, n) {
|
|
|
107
107
|
const c = l.match(/(\d+)[,\s]+(\d+)[,\s]+(\d+)/);
|
|
108
108
|
return c ? [Number(c[1]), Number(c[2]), Number(c[3])] : n;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const Oc = (t) => {
|
|
111
111
|
let i = [], o = 0;
|
|
112
112
|
function d() {
|
|
113
113
|
const h = t.w(), f = t.h();
|
|
@@ -124,8 +124,8 @@ const Wc = (t) => {
|
|
|
124
124
|
v.clearRect(0, 0, k, w);
|
|
125
125
|
const y = _.x, $ = _.y;
|
|
126
126
|
for (const b of i) {
|
|
127
|
-
const C = b.x - y, A = b.y - $, B = Math.hypot(C, A), L = f > 0 && B < 150 ? 1 - B / 150 : 0, E = L * L * f, F = Math.sin(h * 1.1 + b.phase) * 0.5 + 0.5, I = E * 6, D = B > 1e-3 ? 1 / B : 0, Z = b.x - C * D * I,
|
|
128
|
-
t.dark && E > 0.14 ? (v.shadowColor = `rgba(${g},${m},${N},${0.5 * E})`, v.shadowBlur = 10 * E) : v.shadowBlur = 0, v.beginPath(), v.arc(Z,
|
|
127
|
+
const C = b.x - y, A = b.y - $, B = Math.hypot(C, A), L = f > 0 && B < 150 ? 1 - B / 150 : 0, E = L * L * f, F = Math.sin(h * 1.1 + b.phase) * 0.5 + 0.5, I = E * 6, D = B > 1e-3 ? 1 / B : 0, Z = b.x - C * D * I, W = b.y - A * D * I, j = 1 + E * (2.4 - 1) + F * 0.1, le = Math.min(1, 0.3 + F * 0.06 + E * (1 - 0.3)), q = x + (g - x) * E | 0, oe = M + (m - M) * E | 0, ae = S + (N - S) * E | 0;
|
|
128
|
+
t.dark && E > 0.14 ? (v.shadowColor = `rgba(${g},${m},${N},${0.5 * E})`, v.shadowBlur = 10 * E) : v.shadowBlur = 0, v.beginPath(), v.arc(Z, W, 1.2 * j, 0, It), v.fillStyle = `rgba(${q},${oe},${ae},${le})`, v.fill();
|
|
129
129
|
}
|
|
130
130
|
v.shadowBlur = 0;
|
|
131
131
|
}
|
|
@@ -211,8 +211,8 @@ const Wc = (t) => {
|
|
|
211
211
|
const E = i + L * 44;
|
|
212
212
|
let F = B;
|
|
213
213
|
if (f) {
|
|
214
|
-
const
|
|
215
|
-
|
|
214
|
+
const W = Math.hypot(E - y, C - $);
|
|
215
|
+
W < 120 && (F = Math.max(F, (1 - W / 120) ** 2));
|
|
216
216
|
}
|
|
217
217
|
if (F < 0.02) continue;
|
|
218
218
|
const I = x + (g - x) * F | 0, D = M + (m - M) * F | 0, Z = S + (N - S) * F | 0;
|
|
@@ -402,10 +402,10 @@ const Wc = (t) => {
|
|
|
402
402
|
minx: 0,
|
|
403
403
|
maxx: 0
|
|
404
404
|
}), D = [I(), I(), I(), I()];
|
|
405
|
-
let Z = D[0],
|
|
405
|
+
let Z = D[0], W = null, j = null, le = null, q = null, oe = new Float32Array(0), ae = 0, Fe = 0, pe = 0, O = 0, J = 0, Q = 0;
|
|
406
406
|
function ke() {
|
|
407
407
|
const V = Math.max(t.w(), 1), H = Math.max(t.h(), 1);
|
|
408
|
-
pe = (V * Math.abs(m) + H * Math.abs(N)) / 2,
|
|
408
|
+
pe = (V * Math.abs(m) + H * Math.abs(N)) / 2, O = (V * Math.abs(N) + H * Math.abs(m)) / 2, J = Math.min(1, Math.sqrt(42e4 / (4 * pe * O))), ae = Math.max(2, Math.round(2 * pe * J)), Fe = Math.max(2, Math.round(2 * O * J)), Q = Math.min(2.6, Math.max(0.7, 0.62 / J)), W || (W = document.createElement("canvas")), W.width = ae, W.height = Fe, j = W.getContext("2d"), le = (j == null ? void 0 : j.createImageData(ae, Fe)) ?? null, q = le ? new Uint32Array(le.data.buffer) : null, oe = new Float32Array(ae);
|
|
409
409
|
}
|
|
410
410
|
let be = 1, ye = 0, Ne = 0, ne = 0, we = 0, Te = 1, ie = 0, Ae = 0, Ue = 0, De = 0, Pe = Le.TENSION;
|
|
411
411
|
const Xe = (V, H, Y, X, ee) => {
|
|
@@ -433,7 +433,7 @@ const Wc = (t) => {
|
|
|
433
433
|
Je < 0 && (Je = 0);
|
|
434
434
|
const Dt = Je * Je, Lt = Dt * Dt, tn = Lt * Lt * Lt;
|
|
435
435
|
st = y[0] + Se, _t = y[1] + Ce, at = y[2] + Ze, Ct = 1 / Math.sqrt(st * st + _t * _t + at * at), Je = (fe * st + _e * at) * Ct, Je < 0 && (Je = 0);
|
|
436
|
-
const
|
|
436
|
+
const Wt = Je * Je, Ot = Wt * Wt, nn = Ot * Ot;
|
|
437
437
|
let rt = (-(-Se + 2 * Ve * fe) * N - Ce * m + 0.2) * C;
|
|
438
438
|
rt < 0 ? rt = 0 : rt > 1 && (rt = 1);
|
|
439
439
|
const et = rt * rt * (3 - 2 * rt), At = tn * 0.9 + nn * 0.45;
|
|
@@ -447,7 +447,7 @@ const Wc = (t) => {
|
|
|
447
447
|
}
|
|
448
448
|
};
|
|
449
449
|
function R(V, H, Y) {
|
|
450
|
-
const X = Math.max(t.h(), 1), ee = Y * Le.TWIST_SPEED * 0.15, de = Y * Le.TWIST_SPEED * 0.2, fe = -((V + 0.5) / Fe * 2 *
|
|
450
|
+
const X = Math.max(t.h(), 1), ee = Y * Le.TWIST_SPEED * 0.15, de = Y * Le.TWIST_SPEED * 0.2, fe = -((V + 0.5) / Fe * 2 * O - O) / (X * Le.ZOOM);
|
|
451
451
|
ne = fe * Le.CAM / Le.FOCAL;
|
|
452
452
|
for (let Ie = 0; Ie < 2; Ie++)
|
|
453
453
|
ne = fe * (Le.CAM + Math.sin(ne * 1.2 + ee) * Le.BILLOW) / Le.FOCAL;
|
|
@@ -475,10 +475,10 @@ const Wc = (t) => {
|
|
|
475
475
|
let Be = Math.floor(fe), $e = Math.ceil(Me);
|
|
476
476
|
if ($e < 0 || Be > ae - 1) return;
|
|
477
477
|
Be < 0 && (Be = 0), $e > ae - 1 && ($e = ae - 1), oe.fill(-1e9, Be, $e + 1);
|
|
478
|
-
const Se = V * ae, Ce = de * de, Ze = Ce * de, Ie = -0.5 * Ze + Ce - 0.5 * de, Ve = 1.5 * Ze - 2.5 * Ce + 1, qe = -1.5 * Ze + 2 * Ce + 0.5 * de, ut = 0.5 * Ze - 0.5 * Ce, ct = H.x, Pt = Y.x, st = X.x, _t = ee.x, at = H.z, Ct = Y.z, Je = X.z, Dt = ee.z, Lt = H.lift, Sn = Y.lift, tn = X.lift,
|
|
479
|
-
let et = Ie * ct[0] + Ve * Pt[0] + qe * st[0] + ut * _t[0], At = Ie * at[0] + Ve * Ct[0] + qe * Je[0] + ut * Dt[0], bt = Ie * Lt[0] + Ve * Sn[0] + qe * tn[0] + ut *
|
|
478
|
+
const Se = V * ae, Ce = de * de, Ze = Ce * de, Ie = -0.5 * Ze + Ce - 0.5 * de, Ve = 1.5 * Ze - 2.5 * Ce + 1, qe = -1.5 * Ze + 2 * Ce + 0.5 * de, ut = 0.5 * Ze - 0.5 * Ce, ct = H.x, Pt = Y.x, st = X.x, _t = ee.x, at = H.z, Ct = Y.z, Je = X.z, Dt = ee.z, Lt = H.lift, Sn = Y.lift, tn = X.lift, Wt = ee.lift, Ot = H.a, nn = Y.a, Cn = X.a, rt = ee.a;
|
|
479
|
+
let et = Ie * ct[0] + Ve * Pt[0] + qe * st[0] + ut * _t[0], At = Ie * at[0] + Ve * Ct[0] + qe * Je[0] + ut * Dt[0], bt = Ie * Lt[0] + Ve * Sn[0] + qe * tn[0] + ut * Wt[0], Ln = Ie * Ot[0] + Ve * nn[0] + qe * Cn[0] + ut * rt[0];
|
|
480
480
|
for (let re = 1; re < 136; re++) {
|
|
481
|
-
const tt = Ie * ct[re] + Ve * Pt[re] + qe * st[re] + ut * _t[re], jt = Ie * at[re] + Ve * Ct[re] + qe * Je[re] + ut * Dt[re], Zt = Ie * Lt[re] + Ve * Sn[re] + qe * tn[re] + ut *
|
|
481
|
+
const tt = Ie * ct[re] + Ve * Pt[re] + qe * st[re] + ut * _t[re], jt = Ie * at[re] + Ve * Ct[re] + qe * Je[re] + ut * Dt[re], Zt = Ie * Lt[re] + Ve * Sn[re] + qe * tn[re] + ut * Wt[re], Vt = Ie * Ot[re] + Ve * nn[re] + qe * Cn[re] + ut * rt[re];
|
|
482
482
|
if (!Number.isNaN(et) && !Number.isNaN(tt)) {
|
|
483
483
|
let xt = Math.max(Be, Math.ceil((et < tt ? et : tt) - 0.5)), ln = Math.min($e, Math.floor((et > tt ? et : tt) - 0.5));
|
|
484
484
|
if (ln < xt) {
|
|
@@ -490,9 +490,9 @@ const Wc = (t) => {
|
|
|
490
490
|
for (let Et = xt; Et <= ln; Et++) {
|
|
491
491
|
let Nt = (Et + 0.5 - et) * Ec;
|
|
492
492
|
Nt < 0 ? Nt = 0 : Nt > 1 && (Nt = 1);
|
|
493
|
-
const
|
|
494
|
-
if (
|
|
495
|
-
oe[Et] =
|
|
493
|
+
const cl = At + Bc * Nt;
|
|
494
|
+
if (cl <= oe[Et]) continue;
|
|
495
|
+
oe[Et] = cl;
|
|
496
496
|
const En = bt + Fc * Nt;
|
|
497
497
|
me[Se + Et] = cn(p + v * En) << Gc | cn(h + _ * En) << Uc | cn(f + x * En) << zc | cn(Ln + Ic * Nt) << vt;
|
|
498
498
|
}
|
|
@@ -511,12 +511,12 @@ const Wc = (t) => {
|
|
|
511
511
|
break;
|
|
512
512
|
}
|
|
513
513
|
if (An - Ht <= 2 * r.length) return;
|
|
514
|
-
const
|
|
514
|
+
const ll = ~(255 << vt);
|
|
515
515
|
for (let re = 0; re < r.length; re++) {
|
|
516
516
|
const tt = r[re], jt = Se + Ht + re, Zt = me[jt];
|
|
517
|
-
me[jt] = Zt &
|
|
517
|
+
me[jt] = Zt & ll | ((Zt >>> vt & 255) * tt | 0) << vt;
|
|
518
518
|
const Vt = Se + An - re, xt = me[Vt];
|
|
519
|
-
me[Vt] = xt &
|
|
519
|
+
me[Vt] = xt & ll | ((xt >>> vt & 255) * tt | 0) << vt;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
function z(V) {
|
|
@@ -546,23 +546,23 @@ const Wc = (t) => {
|
|
|
546
546
|
}
|
|
547
547
|
function xe(V) {
|
|
548
548
|
const { ctx: H } = t, Y = t.w(), X = t.h();
|
|
549
|
-
H.clearRect(0, 0, Y, X), !(!
|
|
549
|
+
H.clearRect(0, 0, Y, X), !(!W || ae < 2) && (z(V), H.save(), H.translate(Y / 2, X / 2), H.rotate(Le.ROT), H.imageSmoothingEnabled = !0, H.imageSmoothingQuality = "high", H.filter = `blur(${Q.toFixed(2)}px)`, H.drawImage(W, -pe, -O, 2 * pe, 2 * O), H.restore());
|
|
550
550
|
}
|
|
551
551
|
return {
|
|
552
552
|
build: ke,
|
|
553
553
|
interactive: !1,
|
|
554
554
|
frame(V) {
|
|
555
|
-
F || (F =
|
|
555
|
+
F || (F = We.timeline({ repeat: -1, yoyo: !0, defaults: { ease: "sine.inOut" } }).to(E, { twist: 0.92, duration: 19 }, 0).to(E, { tension: 0.72, duration: 13 }, 0)), xe(V), t.clearGlow();
|
|
556
556
|
},
|
|
557
557
|
paintStatic() {
|
|
558
558
|
xe(6), t.clearGlow();
|
|
559
559
|
},
|
|
560
560
|
dispose() {
|
|
561
|
-
F == null || F.kill(), F = null,
|
|
561
|
+
F == null || F.kill(), F = null, We.killTweensOf(E);
|
|
562
562
|
}
|
|
563
563
|
};
|
|
564
564
|
}, Yc = {
|
|
565
|
-
dots:
|
|
565
|
+
dots: Oc,
|
|
566
566
|
plexus: Hc,
|
|
567
567
|
grid: jc,
|
|
568
568
|
flow: Zc,
|
|
@@ -582,16 +582,16 @@ function Mr({
|
|
|
582
582
|
if (!a) return;
|
|
583
583
|
const r = a.getContext("2d");
|
|
584
584
|
if (!r) return;
|
|
585
|
-
const i = ((le = window.matchMedia) == null ? void 0 : le.call(window, "(prefers-reduced-motion: reduce)").matches) ?? !1, o = n === "dark", d = getComputedStyle(a), p = Dc(d, "--select-dot", o ? [235, 238, 255] : [64, 68, 92]), h =
|
|
585
|
+
const i = ((le = window.matchMedia) == null ? void 0 : le.call(window, "(prefers-reduced-motion: reduce)").matches) ?? !1, o = n === "dark", d = getComputedStyle(a), p = Dc(d, "--select-dot", o ? [235, 238, 255] : [64, 68, 92]), h = Wc(d.getPropertyValue("--select-primary"), o ? [255, 255, 255] : [33, 37, 41]);
|
|
586
586
|
let f = 0, v = 0, _ = 0, x = 0, M = null, S = 0;
|
|
587
587
|
const g = 1.2, m = { x: 0, y: 0 }, N = { x: 0, y: 0, active: !1 };
|
|
588
588
|
let k = 0, w = 0, y = -10;
|
|
589
|
-
const $ =
|
|
589
|
+
const $ = We.quickTo(m, "x", { duration: 0.5, ease: "power3.out" }), b = We.quickTo(m, "y", { duration: 0.5, ease: "power3.out" });
|
|
590
590
|
function C(q, oe) {
|
|
591
591
|
if (!M) return;
|
|
592
|
-
const ae = M.getBoundingClientRect(), Fe = ae.left - _ + ae.width / 2, pe = ae.top - x + ae.height / 2,
|
|
592
|
+
const ae = M.getBoundingClientRect(), Fe = ae.left - _ + ae.width / 2, pe = ae.top - x + ae.height / 2, O = ae.width / 2, J = ae.height / 2, Q = 18, ke = (q - Fe) / (O + Q), be = (oe - pe) / (J + Q), ye = Math.sqrt(ke * ke + be * be), Ne = ye < 1 ? 1 - ye : 0, ne = Ne * Ne * (3 - 2 * Ne);
|
|
593
593
|
if (ne > 1e-3 || S > 1e-3) {
|
|
594
|
-
const we = gt((q - Fe) / Math.max(
|
|
594
|
+
const we = gt((q - Fe) / Math.max(O, 1), -1, 1) * 10 * ne, Te = gt((oe - pe) / Math.max(J, 1), -1, 1) * 10 * ne;
|
|
595
595
|
M.style.setProperty("--select-card-glow", ne.toFixed(3)), M.style.setProperty("--select-card-glow-rgb", `${h[0]}, ${h[1]}, ${h[2]}`), M.style.setProperty("--select-card-glow-x", `${we.toFixed(1)}px`), M.style.setProperty("--select-card-glow-y", `${Te.toFixed(1)}px`);
|
|
596
596
|
}
|
|
597
597
|
S = ne;
|
|
@@ -614,9 +614,9 @@ function Mr({
|
|
|
614
614
|
I = q, E && (N.active = q - y < g, $(N.active ? k : f / 2), b(N.active ? w : v / 2), N.x = m.x, N.y = m.y), L.frame(q, oe);
|
|
615
615
|
}
|
|
616
616
|
function Z(q) {
|
|
617
|
-
k = q.clientX - _, w = q.clientY - x, y =
|
|
617
|
+
k = q.clientX - _, w = q.clientY - x, y = We.ticker.time;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function W() {
|
|
620
620
|
const q = a.getBoundingClientRect();
|
|
621
621
|
_ = q.left, x = q.top;
|
|
622
622
|
}
|
|
@@ -627,9 +627,9 @@ function Mr({
|
|
|
627
627
|
return j.observe(a), i ? (L.paintStatic(), () => {
|
|
628
628
|
var q;
|
|
629
629
|
j.disconnect(), (q = L.dispose) == null || q.call(L);
|
|
630
|
-
}) : (E && (window.addEventListener("pointermove", Z, { passive: !0 }), window.addEventListener("scroll",
|
|
630
|
+
}) : (E && (window.addEventListener("pointermove", Z, { passive: !0 }), window.addEventListener("scroll", W, { passive: !0 })), We.ticker.add(D), () => {
|
|
631
631
|
var q;
|
|
632
|
-
|
|
632
|
+
We.ticker.remove(D), We.killTweensOf(m), window.removeEventListener("pointermove", Z), window.removeEventListener("scroll", W), j.disconnect(), (q = L.dispose) == null || q.call(L), M == null || M.style.removeProperty("--select-card-glow");
|
|
633
633
|
});
|
|
634
634
|
}, [n, l, c]), /* @__PURE__ */ e("canvas", { ref: s, className: t, "aria-hidden": "true" });
|
|
635
635
|
}
|
|
@@ -817,7 +817,7 @@ function Xc() {
|
|
|
817
817
|
/* @__PURE__ */ e("path", { d: "M3 16v-1a28.424 28.424 0 0 0 18 0v1M3 9a28.424 28.424 0 0 1 18 0" })
|
|
818
818
|
] });
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Zl() {
|
|
821
821
|
return /* @__PURE__ */ u("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
822
822
|
/* @__PURE__ */ e("path", { d: "m8 9 4-4 4 4" }),
|
|
823
823
|
/* @__PURE__ */ e("path", { d: "m16 15-4 4-4-4" })
|
|
@@ -881,13 +881,13 @@ function ts() {
|
|
|
881
881
|
function ns() {
|
|
882
882
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M2.03 12.42c.36 5.15 4.73 9.34 9.96 9.57 3.69.16 6.99-1.56 8.97-4.27.82-1.11.38-1.85-.99-1.6-.67.12-1.36.17-2.08.14C13 16.06 9 11.97 8.98 7.14c-.01-1.3.26-2.53.75-3.65.54-1.24-.11-1.83-1.36-1.3C4.41 3.86 1.7 7.85 2.03 12.42Z" }) });
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function Vl({ duotone: t = !1 } = {}) {
|
|
885
885
|
return t ? /* @__PURE__ */ u("svg", { viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
|
|
886
886
|
/* @__PURE__ */ e("path", { opacity: ".4", fill: "currentColor", d: "M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2Z" }),
|
|
887
887
|
/* @__PURE__ */ e("path", { stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", d: "M12 17.22V22M7.5 22h9" })
|
|
888
888
|
] }) : /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9" }) });
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function Gl({ duotone: t = !1 } = {}) {
|
|
891
891
|
return t ? /* @__PURE__ */ u("svg", { viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
|
|
892
892
|
/* @__PURE__ */ e("path", { opacity: ".4", fill: "currentColor", d: "M20 7v10c0 4-1 5-5 5H9c-4 0-5-1-5-5V7c0-4 1-5 5-5h6c4 0 5 1 5 5Z" }),
|
|
893
893
|
/* @__PURE__ */ e("path", { stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", d: "M14 5.5h-4" }),
|
|
@@ -904,15 +904,15 @@ function St() {
|
|
|
904
904
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M6 12h12M12 18V6" }) });
|
|
905
905
|
}
|
|
906
906
|
function Dr({ duotone: t = !1 } = {}) {
|
|
907
|
-
return /* @__PURE__ */ e(
|
|
907
|
+
return /* @__PURE__ */ e(Gl, { duotone: t });
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function Wr() {
|
|
910
910
|
return /* @__PURE__ */ u("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
911
911
|
/* @__PURE__ */ e("path", { d: "M20.75 13.25c0 4.83-3.92 8.75-8.75 8.75s-8.75-3.92-8.75-8.75S7.17 4.5 12 4.5s8.75 3.92 8.75 8.75ZM12 8v5" }),
|
|
912
912
|
/* @__PURE__ */ e("path", { d: "M9 2h6" })
|
|
913
913
|
] });
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function Or({ duotone: t = !1 } = {}) {
|
|
916
916
|
return t ? /* @__PURE__ */ u("svg", { viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: [
|
|
917
917
|
/* @__PURE__ */ e("path", { opacity: ".4", fill: "currentColor", d: "M17 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v7c0 3.5-2 5-5 5Z" }),
|
|
918
918
|
/* @__PURE__ */ e("path", { stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", d: "m17 9-3.13 2.5c-1.03.82-2.72.82-3.75 0L7 9" })
|
|
@@ -952,13 +952,13 @@ function Gr() {
|
|
|
952
952
|
function Qe() {
|
|
953
953
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "3", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M5 12.5 10 17.5 19 6.5" }) });
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Ul() {
|
|
956
956
|
return /* @__PURE__ */ u("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
957
957
|
/* @__PURE__ */ e("path", { d: "M15.58 12c0 1.98-1.6 3.58-3.58 3.58S8.42 13.98 8.42 12s1.6-3.58 3.58-3.58 3.58 1.6 3.58 3.58Z" }),
|
|
958
958
|
/* @__PURE__ */ e("path", { d: "M12 20.27c3.53 0 6.82-2.08 9.11-5.68.9-1.41.9-3.78 0-5.19-2.29-3.6-5.58-5.68-9.11-5.68-3.53 0-6.82 2.08-9.11 5.68-.9 1.41-.9 3.78 0 5.19 2.29 3.6 5.58 5.68 9.11 5.68Z" })
|
|
959
959
|
] });
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function zl() {
|
|
962
962
|
return /* @__PURE__ */ u("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
963
963
|
/* @__PURE__ */ e("path", { d: "m14.53 9.47-5.06 5.06a3.576 3.576 0 1 1 5.06-5.06Z" }),
|
|
964
964
|
/* @__PURE__ */ e("path", { d: "M17.82 5.77C16.07 4.45 14.07 3.73 12 3.73c-3.53 0-6.82 2.08-9.11 5.68-.9 1.41-.9 3.78 0 5.19.79 1.24 1.71 2.31 2.71 3.17M8.42 19.53c1.14.48 2.35.74 3.58.74 3.53 0 6.82-2.08 9.11-5.68.9-1.41.9-3.78 0-5.19-.33-.52-.69-1.01-1.06-1.47" }),
|
|
@@ -993,7 +993,7 @@ function Yr() {
|
|
|
993
993
|
/* @__PURE__ */ e("path", { d: "M14.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" })
|
|
994
994
|
] });
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function ql() {
|
|
997
997
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M21 5.98c-3.33-.33-6.68-.5-10.02-.5-1.98 0-3.96.1-5.94.3L3 5.98M8.5 4.97l.22-1.31C8.88 2.71 9 2 10.69 2h2.62c1.69 0 1.82.75 1.97 1.67l.22 1.3M18.85 9.14l-.65 10.07C18.09 20.78 18 22 15.21 22H8.79C6 22 5.91 20.78 5.8 19.21L5.15 9.14M10.33 16.5h3.33M9.5 12.5h5" }) });
|
|
998
998
|
}
|
|
999
999
|
function Kr() {
|
|
@@ -1033,13 +1033,13 @@ function to() {
|
|
|
1033
1033
|
/* @__PURE__ */ e("path", { d: "M17 22H7c-4 0-5-1-5-5v-2c0-4 1-5 5-5h10c4 0 5 1 5 5v2c0 4-1 5-5 5Z" })
|
|
1034
1034
|
] });
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function Yl() {
|
|
1037
1037
|
return /* @__PURE__ */ u("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
1038
1038
|
/* @__PURE__ */ e("path", { d: "M8 2v3M16 2v3M3.5 9.09h17M21 8.5V17c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z" }),
|
|
1039
1039
|
/* @__PURE__ */ e("path", { d: "M15.695 13.7h.009M15.695 16.7h.009M11.995 13.7h.01M11.995 16.7h.01M8.294 13.7h.01M8.294 16.7h.01" })
|
|
1040
1040
|
] });
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function Kl() {
|
|
1043
1043
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M19.92 15.05L13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52" }) });
|
|
1044
1044
|
}
|
|
1045
1045
|
function no() {
|
|
@@ -1104,7 +1104,7 @@ function ho({ duotone: t = !1 } = {}) {
|
|
|
1104
1104
|
/* @__PURE__ */ e("path", { d: "M10 19V5c0-2 1-3 3-3h6c2 0 3 1 3 3v14c0 2-1 3-3 3h-6c-2 0-3-1-3-3Z" })
|
|
1105
1105
|
] });
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function Xl(t, n, l, c, s = 8) {
|
|
1108
1108
|
const a = window.innerWidth, r = window.innerHeight, i = l.split("-");
|
|
1109
1109
|
let o = i[0];
|
|
1110
1110
|
const d = i[1];
|
|
@@ -1154,7 +1154,7 @@ function Kn({
|
|
|
1154
1154
|
var b;
|
|
1155
1155
|
const w = ((b = f.current) == null ? void 0 : b.firstElementChild) ?? f.current, y = v.current;
|
|
1156
1156
|
if (!w || !y) return;
|
|
1157
|
-
const $ =
|
|
1157
|
+
const $ = Xl(
|
|
1158
1158
|
w.getBoundingClientRect(),
|
|
1159
1159
|
{ width: y.offsetWidth, height: y.offsetHeight },
|
|
1160
1160
|
l,
|
|
@@ -1254,7 +1254,7 @@ const ft = T(function({ content: n, title: l, label: c = "Mais informações", p
|
|
|
1254
1254
|
a
|
|
1255
1255
|
] });
|
|
1256
1256
|
}), pt = T(function({ label: n, value: l, onChange: c, type: s = "text", labelAction: a, help: r, info: i, description: o, hint: d, error: p, prefix: h, suffix: f, trailingAction: v, mono: _, autoComplete: x, placeholder: M, required: S, disabled: g, readOnly: m, name: N, id: k, minLength: w, maxLength: y, min: $, max: b, step: C, inputMode: A, autoFocus: B, onBlur: L, onKeyDown: E, size: F = "md", className: I, ...D }, Z) {
|
|
1257
|
-
const
|
|
1257
|
+
const W = ve(), j = k ?? W, [le, q] = P(!1), oe = s === "password", ae = oe && le ? "text" : s, Fe = p ? `${j}-err` : d ? `${j}-hint` : void 0, pe = h != null || f != null, O = s === "number" && !pe && !m, J = l === "" ? null : Number(l), Q = (ne) => {
|
|
1258
1258
|
const we = Number(C ?? 1) || 1;
|
|
1259
1259
|
let ie = (J != null && Number.isFinite(J) ? J : 0) + ne * we;
|
|
1260
1260
|
$ != null && (ie = Math.max(Number($), ie)), b != null && (ie = Math.min(Number(b), ie)), c(String(ie));
|
|
@@ -1262,7 +1262,7 @@ const ft = T(function({ content: n, title: l, label: c = "Mais informações", p
|
|
|
1262
1262
|
"input",
|
|
1263
1263
|
{
|
|
1264
1264
|
id: j,
|
|
1265
|
-
className: `select-input${oe ? " select-input--has-suffix" : ""}${
|
|
1265
|
+
className: `select-input${oe ? " select-input--has-suffix" : ""}${O ? " select-input--has-stepper" : ""}${_ ? " select-input--mono" : ""}${p ? " select-input--error" : ""}`,
|
|
1266
1266
|
type: ae,
|
|
1267
1267
|
value: l,
|
|
1268
1268
|
onChange: (ne) => c(ne.target.value),
|
|
@@ -1295,10 +1295,10 @@ const ft = T(function({ content: n, title: l, label: c = "Mais informações", p
|
|
|
1295
1295
|
className: "select-input__reveal",
|
|
1296
1296
|
onClick: () => q((ne) => !ne),
|
|
1297
1297
|
"aria-label": le ? "Ocultar senha" : "Mostrar senha",
|
|
1298
|
-
children: le ? /* @__PURE__ */ e(
|
|
1298
|
+
children: le ? /* @__PURE__ */ e(zl, {}) : /* @__PURE__ */ e(Ul, {})
|
|
1299
1299
|
}
|
|
1300
1300
|
),
|
|
1301
|
-
|
|
1301
|
+
O && /* @__PURE__ */ u("span", { className: "select-stepper", children: [
|
|
1302
1302
|
/* @__PURE__ */ e(
|
|
1303
1303
|
"button",
|
|
1304
1304
|
{
|
|
@@ -1308,7 +1308,7 @@ const ft = T(function({ content: n, title: l, label: c = "Mais informações", p
|
|
|
1308
1308
|
"aria-label": "Aumentar",
|
|
1309
1309
|
disabled: g || be,
|
|
1310
1310
|
onClick: () => Q(1),
|
|
1311
|
-
children: /* @__PURE__ */ e(
|
|
1311
|
+
children: /* @__PURE__ */ e(Kl, {})
|
|
1312
1312
|
}
|
|
1313
1313
|
),
|
|
1314
1314
|
/* @__PURE__ */ e(
|
|
@@ -1401,11 +1401,11 @@ const ft = T(function({ content: n, title: l, label: c = "Mais informações", p
|
|
|
1401
1401
|
] }),
|
|
1402
1402
|
i ? /* @__PURE__ */ e("p", { className: "select-field__error", children: i }) : r ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: r }) : null
|
|
1403
1403
|
] });
|
|
1404
|
-
}),
|
|
1404
|
+
}), al = new Intl.NumberFormat("pt-BR", {
|
|
1405
1405
|
minimumFractionDigits: 2,
|
|
1406
1406
|
maximumFractionDigits: 2
|
|
1407
1407
|
}), Bn = (t) => t.replace(/\D/g, "");
|
|
1408
|
-
function
|
|
1408
|
+
function rl(t, n) {
|
|
1409
1409
|
if (n <= 0) return t.length;
|
|
1410
1410
|
let l = 0;
|
|
1411
1411
|
for (let c = t.length - 1; c >= 0; c--) {
|
|
@@ -1415,14 +1415,14 @@ function al(t, n) {
|
|
|
1415
1415
|
return 0;
|
|
1416
1416
|
}
|
|
1417
1417
|
const fo = T(function({ label: n, value: l, onChange: c, info: s, hint: a, error: r, onBlur: i, placeholder: o = "0,00", name: d, disabled: p = !1, size: h = "md", className: f, ...v }, _) {
|
|
1418
|
-
const x = ve(), M = K(null), S = K(null), g = l == null ? "" :
|
|
1418
|
+
const x = ve(), M = K(null), S = K(null), g = l == null ? "" : al.format(l / 100);
|
|
1419
1419
|
Ke(() => {
|
|
1420
1420
|
const N = M.current;
|
|
1421
1421
|
if (!N || S.current == null) return;
|
|
1422
1422
|
const k = S.current;
|
|
1423
1423
|
if (S.current = null, document.activeElement !== N) return;
|
|
1424
1424
|
N.value !== g && (N.value = g);
|
|
1425
|
-
const w =
|
|
1425
|
+
const w = rl(N.value, k);
|
|
1426
1426
|
N.setSelectionRange(w, w);
|
|
1427
1427
|
});
|
|
1428
1428
|
const m = (N) => {
|
|
@@ -1432,7 +1432,7 @@ const fo = T(function({ label: n, value: l, onChange: c, info: s, hint: a, error
|
|
|
1432
1432
|
const E = N.nativeEvent.inputType;
|
|
1433
1433
|
E === "deleteContentBackward" && $ ? $ = $.slice(0, -1) : E === "deleteContentForward" && b && (b = b.slice(1));
|
|
1434
1434
|
}
|
|
1435
|
-
const C = $ + b, A = C ? parseInt(C, 10) : 0, B =
|
|
1435
|
+
const C = $ + b, A = C ? parseInt(C, 10) : 0, B = al.format(A / 100), L = rl(B, b.length);
|
|
1436
1436
|
k.value = B, k.setSelectionRange(L, L), S.current = b.length, c(A);
|
|
1437
1437
|
};
|
|
1438
1438
|
return /* @__PURE__ */ u("div", { ref: _, ...v, className: `select-field${h === "sm" ? " select-field--sm" : ""}${f ? " " + f : ""}`, children: [
|
|
@@ -1545,10 +1545,10 @@ const Tt = T(function({ children: n, tone: l = "critical", title: c, action: s,
|
|
|
1545
1545
|
s && /* @__PURE__ */ e("span", { className: "select-filetile__size", children: s })
|
|
1546
1546
|
] });
|
|
1547
1547
|
});
|
|
1548
|
-
function
|
|
1548
|
+
function Jl(t) {
|
|
1549
1549
|
return t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(0)} KB` : `${(t / (1024 * 1024)).toFixed(1)} MB`;
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1551
|
+
function Ql(t, n) {
|
|
1552
1552
|
if (!n) return !0;
|
|
1553
1553
|
const l = t.name.toLowerCase(), c = t.type.toLowerCase();
|
|
1554
1554
|
return n.split(",").some((s) => {
|
|
@@ -1556,13 +1556,13 @@ function Jl(t, n) {
|
|
|
1556
1556
|
return a ? a.startsWith(".") ? l.endsWith(a) : a.endsWith("/*") ? c.startsWith(a.slice(0, -1)) : c === a : !1;
|
|
1557
1557
|
});
|
|
1558
1558
|
}
|
|
1559
|
-
const
|
|
1560
|
-
function
|
|
1559
|
+
const ec = (t) => t.type.startsWith("image/");
|
|
1560
|
+
function tc(t) {
|
|
1561
1561
|
const n = t.split(".");
|
|
1562
1562
|
return n.length > 1 ? n.pop().toUpperCase() : "FILE";
|
|
1563
1563
|
}
|
|
1564
|
-
const
|
|
1565
|
-
function
|
|
1564
|
+
const nc = /^https?:\/\/.+/i;
|
|
1565
|
+
function lc(t) {
|
|
1566
1566
|
try {
|
|
1567
1567
|
return new URL(t).hostname;
|
|
1568
1568
|
} catch {
|
|
@@ -1570,7 +1570,7 @@ function nc(t) {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
1572
|
const vo = T(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, allowMultiple: a = !0, maxFiles: r, hint: i, className: o, ...d }, p) {
|
|
1573
|
-
const h = K(null), [f, v] = P(!1), [_, x] = P(0), M = s * 1024 * 1024, S =
|
|
1573
|
+
const h = K(null), [f, v] = P(!1), [_, x] = P(0), M = s * 1024 * 1024, S = Oe(() => n.map((C) => ec(C) ? URL.createObjectURL(C) : null), [n]);
|
|
1574
1574
|
ue(
|
|
1575
1575
|
() => () => {
|
|
1576
1576
|
S.forEach((C) => {
|
|
@@ -1581,7 +1581,7 @@ const vo = T(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1581
1581
|
);
|
|
1582
1582
|
const g = nt(
|
|
1583
1583
|
(C) => {
|
|
1584
|
-
const A = C.filter((B) => B.size <= M &&
|
|
1584
|
+
const A = C.filter((B) => B.size <= M && Ql(B, c));
|
|
1585
1585
|
if (x(C.length - A.length), A.length) {
|
|
1586
1586
|
const B = a ? [...n, ...A] : A.slice(0, 1);
|
|
1587
1587
|
l(r != null ? B.slice(0, r) : B);
|
|
@@ -1606,9 +1606,9 @@ const vo = T(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1606
1606
|
_n,
|
|
1607
1607
|
{
|
|
1608
1608
|
src: S[A] ?? void 0,
|
|
1609
|
-
docExt:
|
|
1609
|
+
docExt: tc(C.name),
|
|
1610
1610
|
name: C.name,
|
|
1611
|
-
sub:
|
|
1611
|
+
sub: Jl(C.size),
|
|
1612
1612
|
onRemove: () => w(A)
|
|
1613
1613
|
},
|
|
1614
1614
|
`${C.name}-${A}`
|
|
@@ -1669,7 +1669,7 @@ const vo = T(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1669
1669
|
const [p, h] = P(""), [f, v] = P(null), _ = s != null && l.length >= s, x = () => {
|
|
1670
1670
|
const g = p.trim();
|
|
1671
1671
|
if (g) {
|
|
1672
|
-
if (!
|
|
1672
|
+
if (!nc.test(g)) {
|
|
1673
1673
|
v("Insira uma URL válida (https://…).");
|
|
1674
1674
|
return;
|
|
1675
1675
|
}
|
|
@@ -1684,7 +1684,7 @@ const vo = T(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1684
1684
|
}, S = (g) => c(l.filter((m, N) => N !== g));
|
|
1685
1685
|
return /* @__PURE__ */ u("div", { ref: d, ...o, className: `select-field${i ? " " + i : ""}`, children: [
|
|
1686
1686
|
n && /* @__PURE__ */ e("span", { className: "select-field__label", children: n }),
|
|
1687
|
-
l.length > 0 && /* @__PURE__ */ e("div", { className: "select-filetile-grid", children: l.map((g, m) => /* @__PURE__ */ e(_n, { src: g, name:
|
|
1687
|
+
l.length > 0 && /* @__PURE__ */ e("div", { className: "select-filetile-grid", children: l.map((g, m) => /* @__PURE__ */ e(_n, { src: g, name: lc(g), onRemove: () => S(m) }, `${g}-${m}`)) }),
|
|
1688
1688
|
!_ && /* @__PURE__ */ u(he, { children: [
|
|
1689
1689
|
/* @__PURE__ */ e(
|
|
1690
1690
|
pt,
|
|
@@ -1707,18 +1707,18 @@ const vo = T(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1707
1707
|
r != null && !f && /* @__PURE__ */ e("p", { className: "select-field__hint", children: r })
|
|
1708
1708
|
] });
|
|
1709
1709
|
}), ps = T(function({ label: n, mode: l = "multiple", files: c, onFilesChange: s, urls: a, onUrlsChange: r, accept: i = ".jpg,.jpeg,.png,.webp", maxSizeMB: o = 3, maxItems: d = 10, maxFiles: p, uploadHint: h, urlPlaceholder: f, helpText: v, className: _, ...x }, M) {
|
|
1710
|
-
const S = l === "single", g = K(null), [m, N] = P(!1), [k, w] = P(0), [y, $] = P(""), [b, C] = P(null), A = S ? 1 : Math.max(1, d), B = S ? 1 : p ?? A, L = c.length + a.length, E = S ? L === 0 : L < A && c.length < B, F = S ? L === 0 : L < A, I = L > 0, D = o * 1024 * 1024, Z =
|
|
1710
|
+
const S = l === "single", g = K(null), [m, N] = P(!1), [k, w] = P(0), [y, $] = P(""), [b, C] = P(null), A = S ? 1 : Math.max(1, d), B = S ? 1 : p ?? A, L = c.length + a.length, E = S ? L === 0 : L < A && c.length < B, F = S ? L === 0 : L < A, I = L > 0, D = o * 1024 * 1024, Z = Oe(() => c.map((O) => ec(O) ? URL.createObjectURL(O) : null), [c]);
|
|
1711
1711
|
ue(
|
|
1712
1712
|
() => () => {
|
|
1713
|
-
Z.forEach((
|
|
1714
|
-
|
|
1713
|
+
Z.forEach((O) => {
|
|
1714
|
+
O && URL.revokeObjectURL(O);
|
|
1715
1715
|
});
|
|
1716
1716
|
},
|
|
1717
1717
|
[Z]
|
|
1718
1718
|
);
|
|
1719
|
-
const
|
|
1720
|
-
const J =
|
|
1721
|
-
if (w(
|
|
1719
|
+
const W = (O) => {
|
|
1720
|
+
const J = O.filter((be) => be.size <= D && Ql(be, i));
|
|
1721
|
+
if (w(O.length - J.length), !J.length) return;
|
|
1722
1722
|
if (S) {
|
|
1723
1723
|
r([]), s(J.slice(0, 1));
|
|
1724
1724
|
return;
|
|
@@ -1726,30 +1726,30 @@ const vo = T(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1726
1726
|
const Q = Math.min(B - c.length, A - L), ke = [...c, ...J.slice(0, Math.max(0, Q))];
|
|
1727
1727
|
s(ke);
|
|
1728
1728
|
}, j = () => {
|
|
1729
|
-
const
|
|
1730
|
-
if (
|
|
1731
|
-
if (!
|
|
1729
|
+
const O = y.trim();
|
|
1730
|
+
if (O) {
|
|
1731
|
+
if (!nc.test(O)) {
|
|
1732
1732
|
C("Insira uma URL válida (https://…).");
|
|
1733
1733
|
return;
|
|
1734
1734
|
}
|
|
1735
|
-
if (a.includes(
|
|
1735
|
+
if (a.includes(O)) {
|
|
1736
1736
|
C("Essa URL já foi adicionada.");
|
|
1737
1737
|
return;
|
|
1738
1738
|
}
|
|
1739
|
-
S ? (s([]), r([
|
|
1739
|
+
S ? (s([]), r([O])) : r([...a, O].slice(0, A)), $(""), C(null);
|
|
1740
1740
|
}
|
|
1741
|
-
}, le = (
|
|
1742
|
-
|
|
1743
|
-
}, q = (
|
|
1744
|
-
var
|
|
1745
|
-
return (
|
|
1741
|
+
}, le = (O) => {
|
|
1742
|
+
O.key === "Enter" && (O.preventDefault(), j());
|
|
1743
|
+
}, q = (O) => s(c.filter((J, Q) => Q !== O)), oe = (O) => r(a.filter((J, Q) => Q !== O)), ae = () => {
|
|
1744
|
+
var O;
|
|
1745
|
+
return (O = g.current) == null ? void 0 : O.click();
|
|
1746
1746
|
}, pe = {
|
|
1747
|
-
onDragOver: (
|
|
1748
|
-
|
|
1747
|
+
onDragOver: (O) => {
|
|
1748
|
+
O.preventDefault(), N(!0);
|
|
1749
1749
|
},
|
|
1750
1750
|
onDragLeave: () => N(!1),
|
|
1751
|
-
onDrop: (
|
|
1752
|
-
|
|
1751
|
+
onDrop: (O) => {
|
|
1752
|
+
O.preventDefault(), N(!1), W(Array.from(O.dataTransfer.files));
|
|
1753
1753
|
}
|
|
1754
1754
|
};
|
|
1755
1755
|
return /* @__PURE__ */ u("div", { ref: M, ...x, className: `select-field select-imageupload${_ ? " " + _ : ""}`, children: [
|
|
@@ -1760,18 +1760,18 @@ const vo = T(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1760
1760
|
// em colunas de 50% com gap (o modificador --single vem da CONTAGEM de itens,
|
|
1761
1761
|
// o add-tile não conta e vira uma faixa full-width abaixo da imagem única).
|
|
1762
1762
|
/* @__PURE__ */ u("div", { className: `select-filetile-grid${L === 1 ? " select-filetile-grid--single" : ""}`, children: [
|
|
1763
|
-
c.map((
|
|
1763
|
+
c.map((O, J) => /* @__PURE__ */ e(
|
|
1764
1764
|
_n,
|
|
1765
1765
|
{
|
|
1766
1766
|
src: Z[J] ?? void 0,
|
|
1767
|
-
docExt:
|
|
1768
|
-
name:
|
|
1769
|
-
sub:
|
|
1767
|
+
docExt: tc(O.name),
|
|
1768
|
+
name: O.name,
|
|
1769
|
+
sub: Jl(O.size),
|
|
1770
1770
|
onRemove: () => q(J)
|
|
1771
1771
|
},
|
|
1772
|
-
`f-${
|
|
1772
|
+
`f-${O.name}-${J}`
|
|
1773
1773
|
)),
|
|
1774
|
-
a.map((
|
|
1774
|
+
a.map((O, J) => /* @__PURE__ */ e(_n, { src: O, name: lc(O), onRemove: () => oe(J) }, `u-${O}-${J}`)),
|
|
1775
1775
|
E && /* @__PURE__ */ u("button", { type: "button", className: "select-dropzone select-dropzone--tile", onClick: ae, children: [
|
|
1776
1776
|
/* @__PURE__ */ e(fn, {}),
|
|
1777
1777
|
/* @__PURE__ */ e("span", { children: "Adicionar" })
|
|
@@ -1788,8 +1788,8 @@ const vo = T(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1788
1788
|
{
|
|
1789
1789
|
size: "sm",
|
|
1790
1790
|
value: y,
|
|
1791
|
-
onChange: (
|
|
1792
|
-
$(
|
|
1791
|
+
onChange: (O) => {
|
|
1792
|
+
$(O), b && C(null);
|
|
1793
1793
|
},
|
|
1794
1794
|
onKeyDown: le,
|
|
1795
1795
|
type: "url",
|
|
@@ -1809,8 +1809,8 @@ const vo = T(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1809
1809
|
accept: i,
|
|
1810
1810
|
multiple: !S,
|
|
1811
1811
|
hidden: !0,
|
|
1812
|
-
onChange: (
|
|
1813
|
-
|
|
1812
|
+
onChange: (O) => {
|
|
1813
|
+
W(Array.from(O.target.files ?? [])), O.target.value = "";
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
1816
|
)
|
|
@@ -1823,7 +1823,7 @@ const vo = T(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1823
1823
|
] }),
|
|
1824
1824
|
v != null && /* @__PURE__ */ e("p", { className: "select-field__hint", children: v })
|
|
1825
1825
|
] });
|
|
1826
|
-
}),
|
|
1826
|
+
}), cc = T(function({ label: n, value: l, onChange: c, options: s, labelAction: a, help: r, info: i, description: o, hint: d, error: p, placeholder: h, name: f, required: v, disabled: _, size: x = "md", className: M, ...S }, g) {
|
|
1827
1827
|
const m = ve(), N = p ? `${m}-err` : d ? `${m}-hint` : void 0;
|
|
1828
1828
|
return /* @__PURE__ */ u("div", { ref: g, ...S, className: `select-field${x === "sm" ? " select-field--sm" : ""}${M ? " " + M : ""}`, children: [
|
|
1829
1829
|
(n || r || i || a) && /* @__PURE__ */ u("div", { className: "select-field__labelrow", children: [
|
|
@@ -1858,11 +1858,11 @@ const vo = T(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1858
1858
|
p ? /* @__PURE__ */ e("p", { id: `${m}-err`, className: "select-field__error", children: p }) : d ? /* @__PURE__ */ e("p", { id: `${m}-hint`, className: "select-field__hint", children: d }) : null
|
|
1859
1859
|
] });
|
|
1860
1860
|
});
|
|
1861
|
-
function
|
|
1861
|
+
function sc() {
|
|
1862
1862
|
var t;
|
|
1863
1863
|
return typeof window < "u" && !!((t = window.matchMedia) != null && t.call(window, "(prefers-reduced-motion: reduce)").matches);
|
|
1864
1864
|
}
|
|
1865
|
-
const
|
|
1865
|
+
const ac = () => typeof IntersectionObserver < "u";
|
|
1866
1866
|
function wn(t = {}) {
|
|
1867
1867
|
const n = K(null), l = K(t);
|
|
1868
1868
|
return l.current = t, Ke(() => {
|
|
@@ -1880,11 +1880,11 @@ function wn(t = {}) {
|
|
|
1880
1880
|
once: f = !0,
|
|
1881
1881
|
enabled: v = !0
|
|
1882
1882
|
} = l.current;
|
|
1883
|
-
if (!v ||
|
|
1883
|
+
if (!v || sc()) return;
|
|
1884
1884
|
const _ = s ? Array.from(c.querySelectorAll(s)) : [], x = _.length ? _ : [c], M = { opacity: 0, y: a, ...r !== 1 ? { scale: r } : {} };
|
|
1885
1885
|
let S;
|
|
1886
1886
|
const g = () => {
|
|
1887
|
-
S =
|
|
1887
|
+
S = We.fromTo(x, M, {
|
|
1888
1888
|
opacity: 1,
|
|
1889
1889
|
y: 0,
|
|
1890
1890
|
scale: 1,
|
|
@@ -1895,9 +1895,9 @@ function wn(t = {}) {
|
|
|
1895
1895
|
clearProps: "transform"
|
|
1896
1896
|
});
|
|
1897
1897
|
};
|
|
1898
|
-
if (!h || !
|
|
1898
|
+
if (!h || !ac())
|
|
1899
1899
|
return g(), () => S == null ? void 0 : S.kill();
|
|
1900
|
-
|
|
1900
|
+
We.set(x, M);
|
|
1901
1901
|
const m = new IntersectionObserver(
|
|
1902
1902
|
(N) => {
|
|
1903
1903
|
for (const k of N)
|
|
@@ -1926,14 +1926,14 @@ function ms(t) {
|
|
|
1926
1926
|
enabled: h = !0
|
|
1927
1927
|
} = l.current;
|
|
1928
1928
|
if (!h) return;
|
|
1929
|
-
if (
|
|
1929
|
+
if (sc()) {
|
|
1930
1930
|
c.textContent = o(s);
|
|
1931
1931
|
return;
|
|
1932
1932
|
}
|
|
1933
1933
|
const f = { n: a };
|
|
1934
1934
|
let v;
|
|
1935
1935
|
const _ = () => {
|
|
1936
|
-
v =
|
|
1936
|
+
v = We.to(f, {
|
|
1937
1937
|
n: s,
|
|
1938
1938
|
duration: r,
|
|
1939
1939
|
ease: i,
|
|
@@ -1942,7 +1942,7 @@ function ms(t) {
|
|
|
1942
1942
|
}
|
|
1943
1943
|
});
|
|
1944
1944
|
};
|
|
1945
|
-
if (!d || !
|
|
1945
|
+
if (!d || !ac())
|
|
1946
1946
|
return _(), () => v == null ? void 0 : v.kill();
|
|
1947
1947
|
c.textContent = o(a);
|
|
1948
1948
|
const x = new IntersectionObserver(
|
|
@@ -1965,7 +1965,7 @@ const fs = [
|
|
|
1965
1965
|
"textarea:not([disabled])",
|
|
1966
1966
|
'[tabindex]:not([tabindex="-1"])'
|
|
1967
1967
|
].join(",");
|
|
1968
|
-
function
|
|
1968
|
+
function ol(t) {
|
|
1969
1969
|
return Array.from(t.querySelectorAll(fs)).filter(
|
|
1970
1970
|
(n) => n.offsetWidth > 0 || n.offsetHeight > 0 || n === document.activeElement
|
|
1971
1971
|
);
|
|
@@ -1975,10 +1975,10 @@ function _s(t, n) {
|
|
|
1975
1975
|
if (!t) return;
|
|
1976
1976
|
const l = n.current;
|
|
1977
1977
|
if (!l) return;
|
|
1978
|
-
(
|
|
1978
|
+
(ol(l)[0] ?? l).focus({ preventScroll: !0 });
|
|
1979
1979
|
const s = (a) => {
|
|
1980
1980
|
if (a.key !== "Tab") return;
|
|
1981
|
-
const r =
|
|
1981
|
+
const r = ol(l);
|
|
1982
1982
|
if (r.length === 0) {
|
|
1983
1983
|
a.preventDefault();
|
|
1984
1984
|
return;
|
|
@@ -2009,7 +2009,7 @@ function dt({
|
|
|
2009
2009
|
var w;
|
|
2010
2010
|
const g = ((w = p.current) == null ? void 0 : w.firstElementChild) ?? p.current, m = h.current;
|
|
2011
2011
|
if (!g || !m) return;
|
|
2012
|
-
const N = g.getBoundingClientRect(), k =
|
|
2012
|
+
const N = g.getBoundingClientRect(), k = Xl(N, { width: m.offsetWidth, height: m.offsetHeight }, s, a);
|
|
2013
2013
|
_({ top: k.top, left: k.left, minWidth: o ? N.width : void 0 });
|
|
2014
2014
|
}, [s, a, o]);
|
|
2015
2015
|
return Ke(() => {
|
|
@@ -2074,7 +2074,7 @@ function vs({ count: t, children: n }) {
|
|
|
2074
2074
|
return /* @__PURE__ */ e("div", { className: "select-combobox__list", ref: c, children: n });
|
|
2075
2075
|
}
|
|
2076
2076
|
const gs = T(function({ label: n, value: l, onChange: c, options: s, placeholder: a = "Selecionar…", searchPlaceholder: r = "Buscar…", labelAction: i, help: o, hint: d, error: p, emptyText: h = "Nenhum resultado", disabled: f, required: v, size: _ = "md", searchable: x = !0, className: M, ...S }, g) {
|
|
2077
|
-
const m = ve(), [N, k] = P(!1), [w, y] = P(""), $ = s.find((L) => L.value === l), b =
|
|
2077
|
+
const m = ve(), [N, k] = P(!1), [w, y] = P(""), $ = s.find((L) => L.value === l), b = Oe(() => {
|
|
2078
2078
|
const L = w.trim().toLowerCase();
|
|
2079
2079
|
return !x || !L ? s : s.filter((E) => {
|
|
2080
2080
|
var F;
|
|
@@ -2196,7 +2196,7 @@ const bo = T(function({ value: n, onChange: l, banks: c = [], showType: s = !1,
|
|
|
2196
2196
|
)
|
|
2197
2197
|
] }),
|
|
2198
2198
|
s && /* @__PURE__ */ e(
|
|
2199
|
-
|
|
2199
|
+
cc,
|
|
2200
2200
|
{
|
|
2201
2201
|
label: "Tipo de conta",
|
|
2202
2202
|
options: [
|
|
@@ -2310,7 +2310,7 @@ function $s(t) {
|
|
|
2310
2310
|
function Ss(t) {
|
|
2311
2311
|
return (t ?? "").replace(/\D/g, "").slice(0, 11);
|
|
2312
2312
|
}
|
|
2313
|
-
function
|
|
2313
|
+
function rc(t, n) {
|
|
2314
2314
|
return (n ?? "").replace(/\D/g, "").slice(0, $s(t));
|
|
2315
2315
|
}
|
|
2316
2316
|
function Cs(t) {
|
|
@@ -2318,7 +2318,7 @@ function Cs(t) {
|
|
|
2318
2318
|
return n.length === 0 ? "" : n.length <= 2 ? `(${n}` : n.length <= 6 ? `(${n.slice(0, 2)}) ${n.slice(2)}` : n.length <= 10 ? `(${n.slice(0, 2)}) ${n.slice(2, 6)}-${n.slice(6)}` : `(${n.slice(0, 2)}) ${n.slice(2, 7)}-${n.slice(7)}`;
|
|
2319
2319
|
}
|
|
2320
2320
|
function Ls(t, n) {
|
|
2321
|
-
const l =
|
|
2321
|
+
const l = rc(t, n);
|
|
2322
2322
|
if (t === "BR") return Cs(l);
|
|
2323
2323
|
const c = Qn[t];
|
|
2324
2324
|
return c ? ks(c, l) : l;
|
|
@@ -2328,7 +2328,7 @@ function As(t) {
|
|
|
2328
2328
|
const n = Qn[t];
|
|
2329
2329
|
return n ? n.replace(/#/g, "0") : "";
|
|
2330
2330
|
}
|
|
2331
|
-
const
|
|
2331
|
+
const oc = [
|
|
2332
2332
|
{ iso: "BR", dial: "+55", flag: "🇧🇷", name: "Brasil" },
|
|
2333
2333
|
{ iso: "US", dial: "+1", flag: "🇺🇸", name: "Estados Unidos" },
|
|
2334
2334
|
{ iso: "PT", dial: "+351", flag: "🇵🇹", name: "Portugal" },
|
|
@@ -2339,7 +2339,7 @@ const rc = [
|
|
|
2339
2339
|
];
|
|
2340
2340
|
function Es(t) {
|
|
2341
2341
|
var n;
|
|
2342
|
-
return ((n =
|
|
2342
|
+
return ((n = oc.find((l) => l.iso === t)) == null ? void 0 : n.dial) ?? "";
|
|
2343
2343
|
}
|
|
2344
2344
|
const Mo = T(function({ label: n, value: l, onChange: c, labelAction: s, hint: a, error: r, onBlur: i, placeholder: o, className: d, ...p }, h) {
|
|
2345
2345
|
const f = ve(), v = Es(l.country), _ = r ? `${f}-err` : a ? `${f}-hint` : void 0;
|
|
@@ -2363,7 +2363,7 @@ const Mo = T(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
2363
2363
|
value: l.country,
|
|
2364
2364
|
onChange: (x) => c({ ...l, country: x.target.value }),
|
|
2365
2365
|
"aria-label": "País",
|
|
2366
|
-
children:
|
|
2366
|
+
children: oc.map((x) => /* @__PURE__ */ u("option", { value: x.iso, children: [
|
|
2367
2367
|
x.name,
|
|
2368
2368
|
" (",
|
|
2369
2369
|
x.dial,
|
|
@@ -2382,7 +2382,7 @@ const Mo = T(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
2382
2382
|
autoComplete: "tel-national",
|
|
2383
2383
|
value: Ls(l.country, l.number),
|
|
2384
2384
|
placeholder: o ?? As(l.country),
|
|
2385
|
-
onChange: (x) => c({ ...l, number:
|
|
2385
|
+
onChange: (x) => c({ ...l, number: rc(l.country, x.target.value) }),
|
|
2386
2386
|
onBlur: i,
|
|
2387
2387
|
"aria-invalid": r ? !0 : void 0,
|
|
2388
2388
|
"aria-describedby": _
|
|
@@ -2453,7 +2453,7 @@ const Mo = T(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
2453
2453
|
);
|
|
2454
2454
|
})
|
|
2455
2455
|
] });
|
|
2456
|
-
}),
|
|
2456
|
+
}), ic = T(function({ children: n, tone: l = "neutral", icon: c, size: s = "md", className: a, ...r }, i) {
|
|
2457
2457
|
return /* @__PURE__ */ u(
|
|
2458
2458
|
"span",
|
|
2459
2459
|
{
|
|
@@ -2490,9 +2490,9 @@ function $o({
|
|
|
2490
2490
|
size: l
|
|
2491
2491
|
}) {
|
|
2492
2492
|
const c = n[t] ?? { label: t };
|
|
2493
|
-
return /* @__PURE__ */ e(
|
|
2493
|
+
return /* @__PURE__ */ e(ic, { tone: c.tone, size: l, children: c.label });
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2495
|
+
function dc({ items: t, sections: n, onAction: l, autoFocus: c = !0, className: s, ...a }) {
|
|
2496
2496
|
const r = K(null), i = n ?? (t ? [{ items: t }] : []);
|
|
2497
2497
|
ue(() => {
|
|
2498
2498
|
var d, p;
|
|
@@ -2553,7 +2553,7 @@ function So({
|
|
|
2553
2553
|
children: n
|
|
2554
2554
|
}
|
|
2555
2555
|
),
|
|
2556
|
-
children: /* @__PURE__ */ e(
|
|
2556
|
+
children: /* @__PURE__ */ e(dc, { items: t, onAction: () => s(!1) })
|
|
2557
2557
|
}
|
|
2558
2558
|
);
|
|
2559
2559
|
}
|
|
@@ -2596,7 +2596,7 @@ const wt = {
|
|
|
2596
2596
|
function kn(...t) {
|
|
2597
2597
|
return t.filter(Boolean).join(" ");
|
|
2598
2598
|
}
|
|
2599
|
-
function
|
|
2599
|
+
function Wn({ children: t, gap: n, align: l, inlineAlign: c, as: s = "div", className: a, ...r }) {
|
|
2600
2600
|
const i = s, o = {
|
|
2601
2601
|
rowGap: n ? wt[n] : void 0,
|
|
2602
2602
|
justifyContent: l ? Yt[l] : void 0,
|
|
@@ -2662,7 +2662,7 @@ function kt({ children: t, as: n = "p", variant: l = "bodyMd", tone: c, fontWeig
|
|
|
2662
2662
|
].filter(Boolean).join(" ");
|
|
2663
2663
|
return /* @__PURE__ */ e(p, { ...d, className: h, style: a ? { textAlign: a } : void 0, children: t });
|
|
2664
2664
|
}
|
|
2665
|
-
const
|
|
2665
|
+
const il = "https://cdn.selectwin.io/public/payicons", Ts = [
|
|
2666
2666
|
{ value: "visa", label: "Visa", file: "visa" },
|
|
2667
2667
|
{ value: "mastercard", label: "Mastercard", file: "mastercard" },
|
|
2668
2668
|
{ value: "elo", label: "Elo", file: "elo" },
|
|
@@ -2675,25 +2675,25 @@ const ol = "https://cdn.selectwin.io/public/payicons", Ts = [
|
|
|
2675
2675
|
{ value: "discover", label: "Discover", file: "discover" },
|
|
2676
2676
|
{ value: "banescard", label: "Banescard", file: "banescard" },
|
|
2677
2677
|
{ value: "dinersclub", label: "Diners Club", file: "dinersclub" }
|
|
2678
|
-
],
|
|
2678
|
+
], dl = {
|
|
2679
2679
|
master: "mastercard",
|
|
2680
2680
|
"american-express": "amex",
|
|
2681
2681
|
americanexpress: "amex",
|
|
2682
2682
|
diners: "dinersclub",
|
|
2683
2683
|
"diners-club": "dinersclub"
|
|
2684
|
-
},
|
|
2685
|
-
function
|
|
2684
|
+
}, hl = new Map(Ts.map((t) => [t.value, t]));
|
|
2685
|
+
function hc(t) {
|
|
2686
2686
|
if (!t) return null;
|
|
2687
2687
|
const n = t.toLowerCase().trim().replace(/\s+/g, "-");
|
|
2688
2688
|
for (const l of [n, n.replace(/-/g, "")]) {
|
|
2689
|
-
const c =
|
|
2689
|
+
const c = hl.get(l) ?? (dl[l] ? hl.get(dl[l]) : void 0);
|
|
2690
2690
|
if (c) return c;
|
|
2691
2691
|
}
|
|
2692
2692
|
return null;
|
|
2693
2693
|
}
|
|
2694
2694
|
function Ps(t) {
|
|
2695
2695
|
var n;
|
|
2696
|
-
return ((n =
|
|
2696
|
+
return ((n = hc(t)) == null ? void 0 : n.label) ?? t;
|
|
2697
2697
|
}
|
|
2698
2698
|
const Ds = {
|
|
2699
2699
|
pix: "pix",
|
|
@@ -2708,9 +2708,9 @@ const Ds = {
|
|
|
2708
2708
|
boleto: "Boleto bancário",
|
|
2709
2709
|
nupay: "Nupay"
|
|
2710
2710
|
};
|
|
2711
|
-
function
|
|
2711
|
+
function ul(t) {
|
|
2712
2712
|
var n;
|
|
2713
|
-
return ((n =
|
|
2713
|
+
return ((n = hc(t)) == null ? void 0 : n.file) ?? null;
|
|
2714
2714
|
}
|
|
2715
2715
|
function Lo({
|
|
2716
2716
|
method: t,
|
|
@@ -2725,15 +2725,15 @@ function Lo({
|
|
|
2725
2725
|
* method/brand text everywhere the label renders (chip title, alt, showLabel, fallback). */
|
|
2726
2726
|
label: a
|
|
2727
2727
|
}) {
|
|
2728
|
-
const r =
|
|
2728
|
+
const r = ul(n) ?? (t ? Ds[t] : null), i = n ? Ps(n) : void 0, o = a || i || (t ? sn[t] : void 0) || t || "—";
|
|
2729
2729
|
if (!r)
|
|
2730
2730
|
return /* @__PURE__ */ e(kt, { as: "span", tone: "subdued", variant: "bodySm", children: a || t && sn[t] || i || t || "—" });
|
|
2731
|
-
const d =
|
|
2731
|
+
const d = ul(n) == null, p = l, h = Math.round(l * 1.2);
|
|
2732
2732
|
if (s) {
|
|
2733
2733
|
const v = d ? Math.round(l * 0.7) : l, _ = /* @__PURE__ */ e(
|
|
2734
2734
|
"img",
|
|
2735
2735
|
{
|
|
2736
|
-
src: `${
|
|
2736
|
+
src: `${il}/${r}.svg`,
|
|
2737
2737
|
alt: o,
|
|
2738
2738
|
title: o,
|
|
2739
2739
|
loading: "lazy",
|
|
@@ -2773,7 +2773,7 @@ function Lo({
|
|
|
2773
2773
|
children: /* @__PURE__ */ e(
|
|
2774
2774
|
"img",
|
|
2775
2775
|
{
|
|
2776
|
-
src: `${
|
|
2776
|
+
src: `${il}/${r}.svg`,
|
|
2777
2777
|
alt: o,
|
|
2778
2778
|
loading: "lazy",
|
|
2779
2779
|
style: d ? (
|
|
@@ -2798,7 +2798,7 @@ function Lo({
|
|
|
2798
2798
|
const He = T(function({ icon: n, label: l, onClick: c, disabled: s = !1, size: a = "md", variant: r = "ghost", active: i = !1, className: o, ...d }, p) {
|
|
2799
2799
|
return /* @__PURE__ */ e(Kn, { content: l, children: /* @__PURE__ */ e("button", { ref: p, ...d, type: "button", className: `select-iconbtn select-iconbtn--${a} select-iconbtn--${r}${i ? " is-active" : ""}${o ? " " + o : ""}`, "aria-label": l, "aria-pressed": i, onClick: c, disabled: s, children: n }) });
|
|
2800
2800
|
});
|
|
2801
|
-
function
|
|
2801
|
+
function Ws({
|
|
2802
2802
|
open: t,
|
|
2803
2803
|
onToggle: n,
|
|
2804
2804
|
children: l,
|
|
@@ -2821,14 +2821,14 @@ function Os({
|
|
|
2821
2821
|
}
|
|
2822
2822
|
);
|
|
2823
2823
|
}
|
|
2824
|
-
const
|
|
2825
|
-
function
|
|
2826
|
-
const n = t.split(
|
|
2827
|
-
for (let c = 1; c < n.length; c++) l.push(n.slice(0, c).join(
|
|
2824
|
+
const Os = 3e3, On = "", uc = (t, n) => t === "" ? n : t + On + n;
|
|
2825
|
+
function pl(t) {
|
|
2826
|
+
const n = t.split(On), l = [];
|
|
2827
|
+
for (let c = 1; c < n.length; c++) l.push(n.slice(0, c).join(On));
|
|
2828
2828
|
return l;
|
|
2829
2829
|
}
|
|
2830
2830
|
const Hs = (t) => t instanceof Date || t instanceof RegExp || t instanceof Map || t instanceof Set;
|
|
2831
|
-
function
|
|
2831
|
+
function pc(t) {
|
|
2832
2832
|
if (t == null) return "null";
|
|
2833
2833
|
if (Array.isArray(t)) return "array";
|
|
2834
2834
|
switch (typeof t) {
|
|
@@ -2846,10 +2846,10 @@ function uc(t) {
|
|
|
2846
2846
|
}
|
|
2847
2847
|
}
|
|
2848
2848
|
function ht(t) {
|
|
2849
|
-
const n =
|
|
2849
|
+
const n = pc(t);
|
|
2850
2850
|
return n === "object" || n === "array";
|
|
2851
2851
|
}
|
|
2852
|
-
function
|
|
2852
|
+
function mc(t) {
|
|
2853
2853
|
return Array.isArray(t) ? t.map((n, l) => [String(l), n]) : ht(t) ? Object.entries(t) : [];
|
|
2854
2854
|
}
|
|
2855
2855
|
function en(t) {
|
|
@@ -2858,7 +2858,7 @@ function en(t) {
|
|
|
2858
2858
|
function el(t) {
|
|
2859
2859
|
return t == null ? "null" : typeof t == "string" ? t : t instanceof Date ? Number.isNaN(t.getTime()) ? "Invalid Date" : t.toISOString() : String(t);
|
|
2860
2860
|
}
|
|
2861
|
-
function
|
|
2861
|
+
function ml(t) {
|
|
2862
2862
|
const n = en(t), l = Array.isArray(t);
|
|
2863
2863
|
return n === 0 ? l ? "[]" : "{}" : l ? `[${n} ${n === 1 ? "item" : "itens"}]` : `{${n} ${n === 1 ? "chave" : "chaves"}}`;
|
|
2864
2864
|
}
|
|
@@ -2875,14 +2875,14 @@ function js(t) {
|
|
|
2875
2875
|
function Zs(t) {
|
|
2876
2876
|
return t == null ? !0 : ht(t) ? en(t) === 0 : !1;
|
|
2877
2877
|
}
|
|
2878
|
-
function
|
|
2878
|
+
function fc(t) {
|
|
2879
2879
|
try {
|
|
2880
2880
|
return JSON.stringify(t, null, 2) ?? String(t);
|
|
2881
2881
|
} catch {
|
|
2882
2882
|
return String(t);
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
|
-
function Kt(t, n, l =
|
|
2885
|
+
function Kt(t, n, l = Os) {
|
|
2886
2886
|
let c = 0, s = !1;
|
|
2887
2887
|
const a = (r, i, o, d, p) => {
|
|
2888
2888
|
if (s) return;
|
|
@@ -2897,8 +2897,8 @@ function Kt(t, n, l = Ws) {
|
|
|
2897
2897
|
const h = r;
|
|
2898
2898
|
if (p.includes(h)) return;
|
|
2899
2899
|
const f = [...p, h];
|
|
2900
|
-
for (const [v, _] of
|
|
2901
|
-
if (a(_,
|
|
2900
|
+
for (const [v, _] of mc(r))
|
|
2901
|
+
if (a(_, uc(i, v), v, d + 1, f), s) return;
|
|
2902
2902
|
};
|
|
2903
2903
|
return a(t, "", "", 0, []), { count: c, truncated: s };
|
|
2904
2904
|
}
|
|
@@ -2925,19 +2925,19 @@ function qs(t, n) {
|
|
|
2925
2925
|
return Kt(t, ({ path: a, key: r, value: i }) => {
|
|
2926
2926
|
if (r.toLowerCase().includes(l) || !ht(i) && el(i).toLowerCase().includes(l)) {
|
|
2927
2927
|
c.add(a), s.add(a);
|
|
2928
|
-
for (const d of
|
|
2928
|
+
for (const d of pl(a)) s.add(d);
|
|
2929
2929
|
}
|
|
2930
2930
|
}), c.size > 0 && Kt(t, ({ path: a }) => {
|
|
2931
|
-
|
|
2931
|
+
pl(a).some((r) => c.has(r)) && s.add(a);
|
|
2932
2932
|
}), { matched: c, visible: s, count: c.size, active: !0 };
|
|
2933
2933
|
}
|
|
2934
|
-
const
|
|
2934
|
+
const fl = /("(?:\\u[a-fA-F0-9]{4}|\\[^u]|[^\\"])*"(?:\s*:)?|\btrue\b|\bfalse\b|\bnull\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)/g;
|
|
2935
2935
|
function Ys(t) {
|
|
2936
2936
|
const n = [];
|
|
2937
2937
|
let l = 0;
|
|
2938
|
-
|
|
2938
|
+
fl.lastIndex = 0;
|
|
2939
2939
|
let c;
|
|
2940
|
-
for (; (c =
|
|
2940
|
+
for (; (c = fl.exec(t)) !== null; ) {
|
|
2941
2941
|
c.index > l && n.push({ text: t.slice(l, c.index), cls: "plain" });
|
|
2942
2942
|
const s = c[0];
|
|
2943
2943
|
let a = "num";
|
|
@@ -2969,7 +2969,7 @@ function Xs(t, n) {
|
|
|
2969
2969
|
s += 1, a = c.indexOf(l, a + l.length);
|
|
2970
2970
|
return s;
|
|
2971
2971
|
}
|
|
2972
|
-
const
|
|
2972
|
+
const _l = 320, Js = 12e4, Qs = {
|
|
2973
2973
|
string: "str",
|
|
2974
2974
|
number: "num",
|
|
2975
2975
|
boolean: "bool",
|
|
@@ -2995,15 +2995,15 @@ function ea(t = 1400) {
|
|
|
2995
2995
|
);
|
|
2996
2996
|
return [n, s];
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2999
|
-
const c =
|
|
2998
|
+
function _c({ value: t, term: n, forceFull: l }) {
|
|
2999
|
+
const c = pc(t), s = el(t), a = !l && s.length > _l, r = a ? `${s.slice(0, _l)}…` : s, i = c === "string";
|
|
3000
3000
|
return /* @__PURE__ */ u("span", { className: `select-json__v select-json__v--${Qs[c]}`, title: a ? s : void 0, children: [
|
|
3001
3001
|
i && /* @__PURE__ */ e("span", { className: "select-json__quote", children: '"' }),
|
|
3002
3002
|
/* @__PURE__ */ e(vn, { text: r, term: n }),
|
|
3003
3003
|
i && /* @__PURE__ */ e("span", { className: "select-json__quote", children: '"' })
|
|
3004
3004
|
] });
|
|
3005
3005
|
}
|
|
3006
|
-
function
|
|
3006
|
+
function vc({
|
|
3007
3007
|
value: t,
|
|
3008
3008
|
path: n,
|
|
3009
3009
|
depth: l,
|
|
@@ -3011,8 +3011,8 @@ function _c({
|
|
|
3011
3011
|
ctx: s
|
|
3012
3012
|
}) {
|
|
3013
3013
|
const a = s.result.active, r = Array.isArray(t);
|
|
3014
|
-
return /* @__PURE__ */ e(he, { children:
|
|
3015
|
-
const d =
|
|
3014
|
+
return /* @__PURE__ */ e(he, { children: mc(t).map(([i, o]) => {
|
|
3015
|
+
const d = uc(n, i);
|
|
3016
3016
|
if (a && !s.result.visible.has(d)) return null;
|
|
3017
3017
|
const p = Vs(o, c), h = ht(o) && !p, f = h && en(o) > 0, v = a ? !0 : s.expanded.has(d), _ = s.result.matched.has(d), x = `row:${d}`;
|
|
3018
3018
|
return /* @__PURE__ */ u(jn, { children: [
|
|
@@ -3039,8 +3039,8 @@ function _c({
|
|
|
3039
3039
|
p ? /* @__PURE__ */ e("span", { className: "select-json__v select-json__v--other", children: "[referência circular]" }) : f ? (
|
|
3040
3040
|
// The summary doubles as a second hit-target for the caret; `tabIndex={-1}`
|
|
3041
3041
|
// keeps it out of the tab order (the caret is already the focusable control).
|
|
3042
|
-
/* @__PURE__ */ e("button", { type: "button", className: "select-json__summary", tabIndex: -1, onClick: () => s.toggle(d), children:
|
|
3043
|
-
) : h ? /* @__PURE__ */ e("span", { className: "select-json__summary select-json__summary--static", children:
|
|
3042
|
+
/* @__PURE__ */ e("button", { type: "button", className: "select-json__summary", tabIndex: -1, onClick: () => s.toggle(d), children: ml(o) })
|
|
3043
|
+
) : h ? /* @__PURE__ */ e("span", { className: "select-json__summary select-json__summary--static", children: ml(o) }) : /* @__PURE__ */ e(_c, { value: o, term: s.search, forceFull: _ })
|
|
3044
3044
|
] }),
|
|
3045
3045
|
/* @__PURE__ */ e(
|
|
3046
3046
|
"button",
|
|
@@ -3049,31 +3049,31 @@ function _c({
|
|
|
3049
3049
|
className: "select-json__copy",
|
|
3050
3050
|
"aria-label": `Copiar ${i}`,
|
|
3051
3051
|
title: s.copied === x ? "Copiado!" : "Copiar valor",
|
|
3052
|
-
onClick: () => s.copy(x, h ?
|
|
3052
|
+
onClick: () => s.copy(x, h ? fc(o) : el(o)),
|
|
3053
3053
|
children: s.copied === x ? /* @__PURE__ */ e(Qe, {}) : /* @__PURE__ */ e(qn, {})
|
|
3054
3054
|
}
|
|
3055
3055
|
)
|
|
3056
3056
|
]
|
|
3057
3057
|
}
|
|
3058
3058
|
),
|
|
3059
|
-
f && v && /* @__PURE__ */ e(
|
|
3059
|
+
f && v && /* @__PURE__ */ e(vc, { value: o, path: d, depth: l + 1, ancestors: [...c, o], ctx: s })
|
|
3060
3060
|
] }, d);
|
|
3061
3061
|
}) });
|
|
3062
3062
|
}
|
|
3063
3063
|
function ta({ text: t, term: n }) {
|
|
3064
|
-
const l =
|
|
3064
|
+
const l = Oe(() => t.length > Js ? null : Ys(t), [t]);
|
|
3065
3065
|
return l ? /* @__PURE__ */ e("pre", { className: "select-json__pre", children: l.map((c, s) => /* @__PURE__ */ e("span", { className: `select-json__v--${c.cls}`, children: /* @__PURE__ */ e(vn, { text: c.text, term: n }) }, s)) }) : /* @__PURE__ */ e("pre", { className: "select-json__pre", children: /* @__PURE__ */ e(vn, { text: t, term: n }) });
|
|
3066
3066
|
}
|
|
3067
3067
|
const Ao = T(function({ value: n, title: l = "Metadados", maxHeight: c = 360, defaultOpen: s = !1, defaultExpandDepth: a = 1, searchable: r = !0, emptyLabel: i = "Sem dados", className: o, ...d }, p) {
|
|
3068
|
-
const [h, f] = P(s), [v, _] = P("tree"), [x, M] = P(""), [S, g] = P(/* @__PURE__ */ new Set()), [m, N] = ea(), k = K(null), w =
|
|
3069
|
-
() => typeof n == "string" && w === n ? n :
|
|
3068
|
+
const [h, f] = P(s), [v, _] = P("tree"), [x, M] = P(""), [S, g] = P(/* @__PURE__ */ new Set()), [m, N] = ea(), k = K(null), w = Oe(() => js(n), [n]), y = Zs(w), $ = Oe(
|
|
3069
|
+
() => typeof n == "string" && w === n ? n : fc(w),
|
|
3070
3070
|
[n, w]
|
|
3071
|
-
), b =
|
|
3072
|
-
}).truncated, [w]), C = v === "tree" && !b, A =
|
|
3071
|
+
), b = Oe(() => Kt(w, () => {
|
|
3072
|
+
}).truncated, [w]), C = v === "tree" && !b, A = Oe(() => b ? [] : Us(w), [w, b]);
|
|
3073
3073
|
ue(() => {
|
|
3074
3074
|
g(b ? /* @__PURE__ */ new Set() : Gs(w, a)), M("");
|
|
3075
3075
|
}, [w, a, b]);
|
|
3076
|
-
const B =
|
|
3076
|
+
const B = Oe(() => qs(w, C ? x : ""), [w, x, C]), L = x.trim().length > 0, E = C ? B.count : Xs($, x);
|
|
3077
3077
|
ue(() => {
|
|
3078
3078
|
var j, le;
|
|
3079
3079
|
!h || !L || (le = (j = k.current) == null ? void 0 : j.querySelector(".select-json__hit")) == null || le.scrollIntoView({ block: "nearest" });
|
|
@@ -3083,13 +3083,13 @@ const Ao = T(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
3083
3083
|
const q = new Set(le);
|
|
3084
3084
|
return q.delete(j) || q.add(j), q;
|
|
3085
3085
|
});
|
|
3086
|
-
}, []), I = A.length > 0 && A.every((j) => S.has(j)), D = () => g(I ? /* @__PURE__ */ new Set() : new Set(A)), Z = { expanded: S, toggle: F, search: x, result: B, copied: m, copy: N },
|
|
3086
|
+
}, []), I = A.length > 0 && A.every((j) => S.has(j)), D = () => g(I ? /* @__PURE__ */ new Set() : new Set(A)), Z = { expanded: S, toggle: F, search: x, result: B, copied: m, copy: N }, W = h && !y;
|
|
3087
3087
|
return /* @__PURE__ */ u("div", { ref: p, ...d, className: `select-json${o ? " " + o : ""}`, children: [
|
|
3088
3088
|
/* @__PURE__ */ u("div", { className: "select-json__head", children: [
|
|
3089
3089
|
/* @__PURE__ */ e(kt, { as: "h2", variant: "headingSm", children: l }),
|
|
3090
|
-
/* @__PURE__ */ e(
|
|
3090
|
+
/* @__PURE__ */ e(Ws, { open: W, onToggle: () => f((j) => !j), openLabel: "Ocultar", disabled: y, children: y ? i : "Mostrar" })
|
|
3091
3091
|
] }),
|
|
3092
|
-
|
|
3092
|
+
W && /* @__PURE__ */ u("div", { className: "select-json__body", children: [
|
|
3093
3093
|
/* @__PURE__ */ u("div", { className: "select-json__toolbar", children: [
|
|
3094
3094
|
r ? /* @__PURE__ */ u(he, { children: [
|
|
3095
3095
|
/* @__PURE__ */ e("span", { className: "select-json__searchicon", "aria-hidden": "true", children: /* @__PURE__ */ e(zn, {}) }),
|
|
@@ -3109,7 +3109,7 @@ const Ao = T(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
3109
3109
|
C && A.length > 0 && !L && /* @__PURE__ */ e(
|
|
3110
3110
|
He,
|
|
3111
3111
|
{
|
|
3112
|
-
icon: /* @__PURE__ */ e(
|
|
3112
|
+
icon: /* @__PURE__ */ e(Zl, {}),
|
|
3113
3113
|
label: I ? "Recolher tudo" : "Expandir tudo",
|
|
3114
3114
|
size: "sm",
|
|
3115
3115
|
active: I,
|
|
@@ -3142,9 +3142,9 @@ const Ao = T(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
3142
3142
|
"Nenhuma chave ou valor corresponde a “",
|
|
3143
3143
|
x.trim(),
|
|
3144
3144
|
"”."
|
|
3145
|
-
] }) }) : /* @__PURE__ */ e("div", { className: "select-json__tree", children: ht(w) ? /* @__PURE__ */ e(
|
|
3145
|
+
] }) }) : /* @__PURE__ */ e("div", { className: "select-json__tree", children: ht(w) ? /* @__PURE__ */ e(vc, { value: w, path: "", depth: 0, ancestors: [w], ctx: Z }) : /* @__PURE__ */ u("div", { className: "select-json__row", style: { "--json-depth": 0 }, children: [
|
|
3146
3146
|
/* @__PURE__ */ e("span", { className: "select-json__caret select-json__caret--empty", "aria-hidden": "true" }),
|
|
3147
|
-
/* @__PURE__ */ e("span", { className: "select-json__label", children: /* @__PURE__ */ e(
|
|
3147
|
+
/* @__PURE__ */ e("span", { className: "select-json__label", children: /* @__PURE__ */ e(_c, { value: w, term: x, forceFull: !0 }) })
|
|
3148
3148
|
] }) }) : /* @__PURE__ */ e(ta, { text: $, term: x }) })
|
|
3149
3149
|
] })
|
|
3150
3150
|
] });
|
|
@@ -3287,7 +3287,7 @@ const Do = T(function({ onResend: n, seconds: l = 30, idleLabel: c = "Reenviar c
|
|
|
3287
3287
|
i > 0 || (n(), o(l));
|
|
3288
3288
|
}, [i, n, l]), p = i > 0, h = p ? `Reenviar em 0:${String(i).padStart(2, "0")}` : c;
|
|
3289
3289
|
return /* @__PURE__ */ e("button", { ref: r, ...a, type: "button", className: `select-resend${s ? " " + s : ""}`, onClick: d, disabled: p, children: h });
|
|
3290
|
-
}),
|
|
3290
|
+
}), vl = [
|
|
3291
3291
|
{ label: "Muito fraca", cls: "is-0" },
|
|
3292
3292
|
{ label: "Fraca", cls: "is-1" },
|
|
3293
3293
|
{ label: "Razoável", cls: "is-2" },
|
|
@@ -3299,8 +3299,8 @@ function sa(t) {
|
|
|
3299
3299
|
let n = 0;
|
|
3300
3300
|
return t.length >= 8 && n++, t.length >= 12 && n++, /[a-z]/.test(t) && /[A-Z]/.test(t) && n++, /\d/.test(t) && /[^A-Za-z0-9]/.test(t) && n++, Math.min(n, 4);
|
|
3301
3301
|
}
|
|
3302
|
-
const
|
|
3303
|
-
const a = sa(n), r =
|
|
3302
|
+
const Wo = T(function({ value: n, className: l, ...c }, s) {
|
|
3303
|
+
const a = sa(n), r = vl[a] ?? vl[0];
|
|
3304
3304
|
return /* @__PURE__ */ u("div", { ref: s, ...c, className: `select-strength${l ? " " + l : ""}`, "aria-hidden": !n, children: [
|
|
3305
3305
|
/* @__PURE__ */ e("div", { className: `select-strength__bars select-strength__bars--${r.cls}`, children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ e("span", { className: `select-strength__bar${i < a ? " is-on" : ""}` }, i)) }),
|
|
3306
3306
|
n && /* @__PURE__ */ e("span", { className: "select-strength__label", children: r.label })
|
|
@@ -3370,8 +3370,8 @@ function oa({ children: t }) {
|
|
|
3370
3370
|
function ia({ children: t, columns: n = 2 }) {
|
|
3371
3371
|
return /* @__PURE__ */ e("div", { className: "select-formlayout__group", style: { "--cols": String(n) }, children: t });
|
|
3372
3372
|
}
|
|
3373
|
-
const
|
|
3374
|
-
function
|
|
3373
|
+
const Oo = Object.assign(oa, { Group: ia });
|
|
3374
|
+
function gl({ lines: t = 3 }) {
|
|
3375
3375
|
return /* @__PURE__ */ e("div", { className: "select-skel-body", children: Array.from({ length: Math.max(1, t) }, (n, l) => /* @__PURE__ */ e("div", { className: "select-skeleton select-skel-line" }, l)) });
|
|
3376
3376
|
}
|
|
3377
3377
|
function da({ size: t = "medium" }) {
|
|
@@ -3385,9 +3385,9 @@ function ua({ height: t = 240 }) {
|
|
|
3385
3385
|
}
|
|
3386
3386
|
const Ho = Object.assign(
|
|
3387
3387
|
function({ lines: n }) {
|
|
3388
|
-
return /* @__PURE__ */ e(
|
|
3388
|
+
return /* @__PURE__ */ e(gl, { lines: n });
|
|
3389
3389
|
},
|
|
3390
|
-
{ Body:
|
|
3390
|
+
{ Body: gl, Display: da, Thumbnail: ha, Block: ua }
|
|
3391
3391
|
), pa = { sm: "1rem", md: "1.25rem", lg: "1.5rem" };
|
|
3392
3392
|
function ma({
|
|
3393
3393
|
source: t,
|
|
@@ -3502,16 +3502,16 @@ function zo({ tabs: t, value: n, onChange: l, end: c, className: s, ...a }) {
|
|
|
3502
3502
|
c != null && /* @__PURE__ */ e("div", { className: "select-tabs__end", children: c })
|
|
3503
3503
|
] });
|
|
3504
3504
|
}
|
|
3505
|
-
function
|
|
3505
|
+
function gc(t, n) {
|
|
3506
3506
|
var l;
|
|
3507
|
-
return ((l = t.children) == null ? void 0 : l.some((c) => c.id === n ||
|
|
3507
|
+
return ((l = t.children) == null ? void 0 : l.some((c) => c.id === n || gc(c, n))) ?? !1;
|
|
3508
3508
|
}
|
|
3509
3509
|
function fa({
|
|
3510
3510
|
item: t,
|
|
3511
3511
|
active: n,
|
|
3512
3512
|
onSelect: l
|
|
3513
3513
|
}) {
|
|
3514
|
-
const c = t.alwaysOpen === !0, s =
|
|
3514
|
+
const c = t.alwaysOpen === !0, s = gc(t, n), [a, r] = P(s);
|
|
3515
3515
|
ue(() => {
|
|
3516
3516
|
r(s);
|
|
3517
3517
|
}, [s]);
|
|
@@ -3661,12 +3661,12 @@ const ga = T(function({ page: n, pageCount: l, total: c, pageSize: s, hasPreviou
|
|
|
3661
3661
|
N != null && /* @__PURE__ */ e("p", { className: "select-pagination__count", children: N })
|
|
3662
3662
|
] });
|
|
3663
3663
|
});
|
|
3664
|
-
function
|
|
3664
|
+
function nl({ title: t, description: n, action: l, filters: c, tools: s }) {
|
|
3665
3665
|
const a = c != null, r = a ? null : s, i = t != null || n != null;
|
|
3666
3666
|
return { hasFilters: a, inlineTools: r, hasIdentity: i, hasTitleRow: i || l != null || r != null };
|
|
3667
3667
|
}
|
|
3668
3668
|
function bc({ title: t, help: n, description: l, action: c, filters: s, tools: a }) {
|
|
3669
|
-
const { hasFilters: r, inlineTools: i, hasIdentity: o, hasTitleRow: d } =
|
|
3669
|
+
const { hasFilters: r, inlineTools: i, hasIdentity: o, hasTitleRow: d } = nl({ title: t, description: l, action: c, filters: s, tools: a });
|
|
3670
3670
|
return /* @__PURE__ */ u(he, { children: [
|
|
3671
3671
|
d && /* @__PURE__ */ u("div", { className: "select-table__title", children: [
|
|
3672
3672
|
o && /* @__PURE__ */ u("div", { className: "select-table__heading", children: [
|
|
@@ -3769,7 +3769,7 @@ function xc({ pagination: t }) {
|
|
|
3769
3769
|
] });
|
|
3770
3770
|
}
|
|
3771
3771
|
const xa = T(function({ columns: n, children: l, empty: c, footer: s, title: a, help: r, description: i, action: o, filters: d, tools: p, className: h, ...f }, v) {
|
|
3772
|
-
const _ = Rc.count(l) === 0, x = _ && !!c, { hasFilters: M, hasTitleRow: S } =
|
|
3772
|
+
const _ = Rc.count(l) === 0, x = _ && !!c, { hasFilters: M, hasTitleRow: S } = nl({ title: a, description: i, action: o, filters: d, tools: p }), g = x && !S && !M, m = wn({ selector: ".select-table__row", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 }), N = n.length ? n.map((k) => k.width ?? `minmax(${k.minWidth ?? "var(--select-table-col-min, 6.5rem)"}, ${k.grow ?? 1}fr)`).join(" ") : "1fr";
|
|
3773
3773
|
return /* @__PURE__ */ u("div", { ref: v, ...f, className: `select-table${g ? " select-table--empty" : ""}${h ? " " + h : ""}`, style: { "--select-table-cols": N }, children: [
|
|
3774
3774
|
/* @__PURE__ */ e(bc, { title: a, help: r, description: i, action: o, filters: d, tools: p }),
|
|
3775
3775
|
/* @__PURE__ */ e("div", { className: `select-table__scroll${x ? " select-table__scroll--empty" : ""}`, children: /* @__PURE__ */ u("div", { className: "select-table__scrollinner", children: [
|
|
@@ -3807,10 +3807,10 @@ const xa = T(function({ columns: n, children: l, empty: c, footer: s, title: a,
|
|
|
3807
3807
|
] })
|
|
3808
3808
|
] });
|
|
3809
3809
|
});
|
|
3810
|
-
function
|
|
3810
|
+
function bl({ children: t, onClick: n }) {
|
|
3811
3811
|
return n ? /* @__PURE__ */ e("button", { type: "button", className: "select-table__row select-table__row--clickable", onClick: n, children: t }) : /* @__PURE__ */ e("div", { className: "select-table__row", role: "row", children: t });
|
|
3812
3812
|
}
|
|
3813
|
-
const
|
|
3813
|
+
const xl = T(function({ children: n, align: l = "start", className: c, ...s }, a) {
|
|
3814
3814
|
return /* @__PURE__ */ e("div", { ref: a, ...s, role: "cell", className: `select-table__td select-table__cell--${l}${c ? " " + c : ""}`, children: n });
|
|
3815
3815
|
}), yc = T(function({ icon: n, title: l, subtitle: c, action: s, className: a, ...r }, i) {
|
|
3816
3816
|
return /* @__PURE__ */ u("div", { ref: i, ...r, className: `select-table-empty${a ? " " + a : ""}`, children: [
|
|
@@ -3890,7 +3890,7 @@ function t1({
|
|
|
3890
3890
|
return /* @__PURE__ */ u("span", { className: `select-copyid${r === "always" ? " select-copyid--always" : ""}`, children: [
|
|
3891
3891
|
a ? (
|
|
3892
3892
|
// Keep navigation isolated from any row handler; the text alone is the link target.
|
|
3893
|
-
/* @__PURE__ */ e(
|
|
3893
|
+
/* @__PURE__ */ e(Hl, { className: "select-copyid__text select-copyid__link", to: a, onClick: (h) => h.stopPropagation(), children: d })
|
|
3894
3894
|
) : /* @__PURE__ */ e("span", { className: "select-copyid__text", children: d }),
|
|
3895
3895
|
/* @__PURE__ */ e(Kn, { content: i ? "Copiado" : c, children: /* @__PURE__ */ e(
|
|
3896
3896
|
"button",
|
|
@@ -3952,7 +3952,7 @@ const n1 = T(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3952
3952
|
n && /* @__PURE__ */ e("span", { className: "select-wsswitcher__avatar", children: n }),
|
|
3953
3953
|
/* @__PURE__ */ e("span", { className: "select-wsswitcher__name", children: l }),
|
|
3954
3954
|
c,
|
|
3955
|
-
/* @__PURE__ */ e("span", { className: "select-wsswitcher__selector", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
3955
|
+
/* @__PURE__ */ e("span", { className: "select-wsswitcher__selector", "aria-hidden": "true", children: /* @__PURE__ */ e(Zl, {}) })
|
|
3956
3956
|
] });
|
|
3957
3957
|
}), wa = 220;
|
|
3958
3958
|
function $n({
|
|
@@ -4051,7 +4051,7 @@ function r1({ actions: t, label: n = "Ações" }) {
|
|
|
4051
4051
|
onClick: () => c((s) => !s)
|
|
4052
4052
|
}
|
|
4053
4053
|
),
|
|
4054
|
-
children: /* @__PURE__ */ e(
|
|
4054
|
+
children: /* @__PURE__ */ e(dc, { items: t, onAction: () => c(!1) })
|
|
4055
4055
|
}
|
|
4056
4056
|
);
|
|
4057
4057
|
}
|
|
@@ -4148,7 +4148,7 @@ function i1({
|
|
|
4148
4148
|
}
|
|
4149
4149
|
);
|
|
4150
4150
|
}
|
|
4151
|
-
const d1 = "9.5rem", Hn = "select-datatable:hidden-cols:";
|
|
4151
|
+
const d1 = "9.5rem", h1 = { minWidth: "9.5rem", grow: 2 }, Hn = "select-datatable:hidden-cols:";
|
|
4152
4152
|
function ka(t) {
|
|
4153
4153
|
try {
|
|
4154
4154
|
const n = localStorage.getItem(Hn + t), l = n ? JSON.parse(n) : null;
|
|
@@ -4163,14 +4163,14 @@ function $a(t, n) {
|
|
|
4163
4163
|
} catch {
|
|
4164
4164
|
}
|
|
4165
4165
|
}
|
|
4166
|
-
function
|
|
4166
|
+
function yl(t) {
|
|
4167
4167
|
return t.hideable ?? !!t.title;
|
|
4168
4168
|
}
|
|
4169
|
-
const
|
|
4170
|
-
function
|
|
4169
|
+
const Nl = "select-datatable:page-size:";
|
|
4170
|
+
function u1(t, n, l) {
|
|
4171
4171
|
const [c, s] = P(() => {
|
|
4172
4172
|
try {
|
|
4173
|
-
const r = Number(localStorage.getItem(
|
|
4173
|
+
const r = Number(localStorage.getItem(Nl + t));
|
|
4174
4174
|
return Number.isInteger(r) && r > 0 && (!l || l.includes(r)) ? r : n;
|
|
4175
4175
|
} catch {
|
|
4176
4176
|
return n;
|
|
@@ -4179,7 +4179,7 @@ function h1(t, n, l) {
|
|
|
4179
4179
|
return [c, (r) => {
|
|
4180
4180
|
s(r);
|
|
4181
4181
|
try {
|
|
4182
|
-
localStorage.setItem(
|
|
4182
|
+
localStorage.setItem(Nl + t, String(r));
|
|
4183
4183
|
} catch {
|
|
4184
4184
|
}
|
|
4185
4185
|
}];
|
|
@@ -4188,7 +4188,7 @@ function Sa(t, n, l) {
|
|
|
4188
4188
|
const c = t == null || t === "", s = n == null || n === "";
|
|
4189
4189
|
return c || s ? c && s ? 0 : c ? 1 : -1 : typeof t == "number" && typeof n == "number" ? l * (t - n) : l * String(t).localeCompare(String(n), "pt-BR", { numeric: !0, sensitivity: "base" });
|
|
4190
4190
|
}
|
|
4191
|
-
function
|
|
4191
|
+
function p1({
|
|
4192
4192
|
columns: t,
|
|
4193
4193
|
items: n,
|
|
4194
4194
|
getId: l,
|
|
@@ -4203,25 +4203,27 @@ function u1({
|
|
|
4203
4203
|
filters: h,
|
|
4204
4204
|
columnsKey: f
|
|
4205
4205
|
}) {
|
|
4206
|
-
const [v, _] = P(() => f ? ka(f) : []), [x, M] = P(!1), S =
|
|
4206
|
+
const [v, _] = P(() => f ? ka(f) : []), [x, M] = P(!1), S = Oe(() => new Set(v), [v]), g = t.filter(yl), m = g.length > 0 && g.every((I) => S.has(I.key)), N = (I) => !m && S.has(I.key) && yl(I), k = t.filter((I) => !N(I)), w = g.filter((I) => !N(I)), [y, $] = P(null), b = (I) => {
|
|
4207
4207
|
_((D) => {
|
|
4208
|
-
const Z = !D.includes(I.key),
|
|
4209
|
-
return f && $a(f,
|
|
4208
|
+
const Z = !D.includes(I.key), W = Z ? [...D, I.key] : D.filter((j) => j !== I.key);
|
|
4209
|
+
return f && $a(f, W), Z && $((j) => j && j.key === I.key ? null : j), W;
|
|
4210
4210
|
});
|
|
4211
4211
|
}, C = (I) => {
|
|
4212
4212
|
$((D) => {
|
|
4213
4213
|
const Z = I.sortDefault ?? "asc";
|
|
4214
4214
|
return !D || D.key !== I.key ? { key: I.key, dir: Z } : D.dir === Z ? { key: I.key, dir: Z === "asc" ? "desc" : "asc" } : null;
|
|
4215
4215
|
});
|
|
4216
|
-
}, A = y ? t.find((I) => I.key === y.key) : void 0, B =
|
|
4216
|
+
}, A = y ? t.find((I) => I.key === y.key) : void 0, B = Oe(() => {
|
|
4217
4217
|
const I = A == null ? void 0 : A.sortValue;
|
|
4218
4218
|
if (!y || !I) return n;
|
|
4219
4219
|
const D = y.dir === "asc" ? 1 : -1;
|
|
4220
|
-
return [...n].sort((Z,
|
|
4220
|
+
return [...n].sort((Z, W) => Sa(I(Z), I(W), D));
|
|
4221
4221
|
}, [n, y, A]), L = k.map((I) => ({
|
|
4222
4222
|
label: I.title,
|
|
4223
4223
|
align: I.align,
|
|
4224
4224
|
width: I.width,
|
|
4225
|
+
minWidth: I.minWidth,
|
|
4226
|
+
grow: I.grow,
|
|
4225
4227
|
sortable: !!I.sortValue,
|
|
4226
4228
|
sortDir: (y == null ? void 0 : y.key) === I.key ? y.dir : null,
|
|
4227
4229
|
onSort: I.sortValue ? () => C(I) : void 0
|
|
@@ -4276,7 +4278,7 @@ function u1({
|
|
|
4276
4278
|
filters: h,
|
|
4277
4279
|
action: p,
|
|
4278
4280
|
tools: F,
|
|
4279
|
-
children: c ? Array.from({ length: 5 }, (I, D) => /* @__PURE__ */ e(
|
|
4281
|
+
children: c ? Array.from({ length: 5 }, (I, D) => /* @__PURE__ */ e(bl, { children: k.map((Z, W) => /* @__PURE__ */ e(xl, { align: Z.align, width: Z.width, children: /* @__PURE__ */ e("span", { className: "select-skeleton select-datatable__skel" }) }, W)) }, `skeleton-${D}`)) : B.map((I) => /* @__PURE__ */ e(bl, { onClick: r ? () => r(I) : void 0, children: k.map((D, Z) => /* @__PURE__ */ e(xl, { align: D.align, width: D.width, children: D.render(I) }, Z)) }, l(I)))
|
|
4280
4282
|
}
|
|
4281
4283
|
),
|
|
4282
4284
|
a && /* @__PURE__ */ e(xc, { pagination: a })
|
|
@@ -4289,7 +4291,7 @@ const Ca = T(function({ label: n, description: l, onClick: c, icon: s, className
|
|
|
4289
4291
|
l && /* @__PURE__ */ e("span", { className: "select-addcard__desc", children: l })
|
|
4290
4292
|
] });
|
|
4291
4293
|
});
|
|
4292
|
-
function
|
|
4294
|
+
function m1({
|
|
4293
4295
|
items: t,
|
|
4294
4296
|
getId: n,
|
|
4295
4297
|
renderItem: l,
|
|
@@ -4306,25 +4308,28 @@ function p1({
|
|
|
4306
4308
|
filters: v,
|
|
4307
4309
|
tools: _
|
|
4308
4310
|
}) {
|
|
4309
|
-
const x = !c && t.length === 0 && a != null;
|
|
4311
|
+
const x = !c && t.length === 0 && a != null, { hasTitleRow: M, hasFilters: S } = nl({ title: d, description: h, action: f, filters: v, tools: _ });
|
|
4310
4312
|
return /* @__PURE__ */ u("div", { className: "select-cardgrid", children: [
|
|
4311
|
-
/* @__PURE__ */
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
/* @__PURE__ */
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4313
|
+
(M || S) && /* @__PURE__ */ e("div", { className: "select-cardgrid__chrome", children: /* @__PURE__ */ e(bc, { title: d, help: p, description: h, action: f, filters: v, tools: _ }) }),
|
|
4314
|
+
x ? /* @__PURE__ */ e("div", { className: "select-cardgrid__empty", children: /* @__PURE__ */ e(yc, { icon: a.icon, title: a.heading, subtitle: a.text, action: a.action }) }) : /* @__PURE__ */ u("div", { className: "select-cardgrid__body", style: { "--select-cardgrid-min": o }, children: [
|
|
4315
|
+
c ? Array.from({ length: s }, (g, m) => /* @__PURE__ */ u("div", { className: "select-cardgrid__skel", children: [
|
|
4316
|
+
/* @__PURE__ */ e("span", { className: "select-skeleton select-cardgrid__skelthumb" }),
|
|
4317
|
+
/* @__PURE__ */ u("span", { className: "select-cardgrid__skeltext", children: [
|
|
4318
|
+
/* @__PURE__ */ e("span", { className: "select-skeleton select-cardgrid__skelline" }),
|
|
4319
|
+
/* @__PURE__ */ e("span", { className: "select-skeleton select-cardgrid__skelline select-cardgrid__skelline--short" })
|
|
4320
|
+
] })
|
|
4321
|
+
] }, `skeleton-${m}`)) : (
|
|
4322
|
+
// O item vai num wrapper de altura cheia: a grade estica a CÉLULA, e sem isso
|
|
4323
|
+
// o card ficava com a altura do próprio conteúdo — um card sem badge sobrava
|
|
4324
|
+
// espaço embaixo enquanto o vizinho da mesma fileira ia até o fim.
|
|
4325
|
+
t.map((g) => /* @__PURE__ */ e("div", { className: "select-cardgrid__item", children: l(g) }, n(g)))
|
|
4326
|
+
),
|
|
4327
|
+
!c && i && /* @__PURE__ */ e(Ca, { label: i.label, description: i.description, onClick: i.onAction })
|
|
4323
4328
|
] }),
|
|
4324
4329
|
r && /* @__PURE__ */ e(xc, { pagination: r })
|
|
4325
4330
|
] });
|
|
4326
4331
|
}
|
|
4327
|
-
const
|
|
4332
|
+
const f1 = T(function({ media: n, title: l, subtitle: c, actions: s, body: a, tags: r, status: i, meta: o, to: d, accent: p = !1, className: h, ...f }, v) {
|
|
4328
4333
|
const _ = i != null || o != null;
|
|
4329
4334
|
return /* @__PURE__ */ u("div", { ref: v, ...f, className: `select-rcard${d ? " select-rcard--link" : ""}${h ? " " + h : ""}`, children: [
|
|
4330
4335
|
p && /* @__PURE__ */ e("span", { className: "select-rcard__accent", "aria-hidden": "true" }),
|
|
@@ -4332,7 +4337,7 @@ const m1 = T(function({ media: n, title: l, subtitle: c, actions: s, body: a, ta
|
|
|
4332
4337
|
/* @__PURE__ */ u("div", { className: "select-rcard__head", children: [
|
|
4333
4338
|
n && /* @__PURE__ */ e("span", { className: "select-rcard__media", children: n }),
|
|
4334
4339
|
/* @__PURE__ */ u("span", { className: "select-rcard__ident", children: [
|
|
4335
|
-
/* @__PURE__ */ e("span", { className: "select-rcard__title", children: d ? /* @__PURE__ */ e(
|
|
4340
|
+
/* @__PURE__ */ e("span", { className: "select-rcard__title", children: d ? /* @__PURE__ */ e(Hl, { to: d, className: "select-rcard__link", children: l }) : l }),
|
|
4336
4341
|
c && /* @__PURE__ */ e("span", { className: "select-rcard__sub", children: c })
|
|
4337
4342
|
] }),
|
|
4338
4343
|
s && /* @__PURE__ */ e("span", { className: "select-rcard__actions", children: s })
|
|
@@ -4348,7 +4353,7 @@ const m1 = T(function({ media: n, title: l, subtitle: c, actions: s, body: a, ta
|
|
|
4348
4353
|
o && /* @__PURE__ */ e("span", { className: "select-rcard__meta", children: o })
|
|
4349
4354
|
] })
|
|
4350
4355
|
] });
|
|
4351
|
-
}),
|
|
4356
|
+
}), _1 = T(function({ kind: n, className: l, ...c }, s) {
|
|
4352
4357
|
return /* @__PURE__ */ u("span", { ref: s, ...c, className: `select-rcard__thumb${l ? " " + l : ""}`, "aria-hidden": "true", children: [
|
|
4353
4358
|
/* @__PURE__ */ e("span", { className: "select-rcard__thumbline select-rcard__thumbline--accent" }),
|
|
4354
4359
|
n === "steps" ? /* @__PURE__ */ u(he, { children: [
|
|
@@ -4365,18 +4370,18 @@ function La(t) {
|
|
|
4365
4370
|
var l;
|
|
4366
4371
|
return t.initials ? t.initials : ((l = (typeof t.label == "string" ? t.label : "").trim()[0]) == null ? void 0 : l.toUpperCase()) ?? "•";
|
|
4367
4372
|
}
|
|
4368
|
-
function
|
|
4373
|
+
function Ml({ node: t, origin: n = !1 }) {
|
|
4369
4374
|
return /* @__PURE__ */ u("span", { className: `select-chain__node${n ? " select-chain__node--origin" : ""}`, children: [
|
|
4370
4375
|
/* @__PURE__ */ e("span", { className: "select-chain__dot", "aria-hidden": "true", children: La(t) }),
|
|
4371
4376
|
/* @__PURE__ */ e("span", { className: "select-chain__label", title: typeof t.label == "string" ? t.label : void 0, children: t.label }),
|
|
4372
4377
|
t.share != null && /* @__PURE__ */ e("span", { className: "select-chain__share", children: t.share })
|
|
4373
4378
|
] });
|
|
4374
4379
|
}
|
|
4375
|
-
const
|
|
4380
|
+
const v1 = T(function({ nodes: n, origin: l, max: c = 3, className: s, ...a }, r) {
|
|
4376
4381
|
const i = n.slice(0, c), o = n.length - i.length, d = [], p = (h) => /* @__PURE__ */ e("span", { className: "select-chain__link", "aria-hidden": "true" }, h);
|
|
4377
|
-
l && d.push(/* @__PURE__ */ e(
|
|
4382
|
+
l && d.push(/* @__PURE__ */ e(Ml, { node: l, origin: !0 }, "__origin"));
|
|
4378
4383
|
for (const h of i)
|
|
4379
|
-
d.length && d.push(p(`__link-${h.id}`)), d.push(/* @__PURE__ */ e(
|
|
4384
|
+
d.length && d.push(p(`__link-${h.id}`)), d.push(/* @__PURE__ */ e(Ml, { node: h }, h.id));
|
|
4380
4385
|
return o > 0 && (d.push(p("__link-more")), d.push(
|
|
4381
4386
|
/* @__PURE__ */ u("span", { className: "select-chain__more", children: [
|
|
4382
4387
|
"+",
|
|
@@ -4396,12 +4401,12 @@ const _1 = T(function({ nodes: n, origin: l, max: c = 3, className: s, ...a }, r
|
|
|
4396
4401
|
"Outubro",
|
|
4397
4402
|
"Novembro",
|
|
4398
4403
|
"Dezembro"
|
|
4399
|
-
], it = (t) => String(t).padStart(2, "0"), Ut = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), an = (t) => new Date(t.getFullYear(), t.getMonth(), 1),
|
|
4404
|
+
], it = (t) => String(t).padStart(2, "0"), Ut = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), an = (t) => new Date(t.getFullYear(), t.getMonth(), 1), wl = (t, n) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + n), kl = (t, n) => new Date(t.getFullYear(), t.getMonth() + n, 1), $l = (t, n) => t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate();
|
|
4400
4405
|
function Ba(t) {
|
|
4401
4406
|
const n = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(t || "");
|
|
4402
4407
|
return n ? new Date(Number(n[1]), Number(n[2]) - 1, Number(n[3]), Number(n[4] ?? 0), Number(n[5] ?? 0)) : null;
|
|
4403
4408
|
}
|
|
4404
|
-
function
|
|
4409
|
+
function Sl(t, n) {
|
|
4405
4410
|
const l = `${t.getFullYear()}-${it(t.getMonth() + 1)}-${it(t.getDate())}`;
|
|
4406
4411
|
return n ? `${l}T${it(t.getHours())}:${it(t.getMinutes())}` : l;
|
|
4407
4412
|
}
|
|
@@ -4410,15 +4415,15 @@ function Fa(t, n) {
|
|
|
4410
4415
|
return n ? `${l} ${it(t.getHours())}:${it(t.getMinutes())}` : l;
|
|
4411
4416
|
}
|
|
4412
4417
|
const Ia = T(function({ label: n, value: l, onChange: c, showTime: s = !1, placeholder: a, required: r, disabled: i, error: o, hint: d, minDate: p, maxDate: h, clearable: f = !0, id: v, className: _, ...x }, M) {
|
|
4413
|
-
const S = ve(), g = v ?? S, [m, N] = P(!1), k = Ba(l), [w, y] = P(() => an(k ?? /* @__PURE__ */ new Date())), $ = p ? Ut(p) : null, b = h ? Ut(h) : null, C = (
|
|
4414
|
-
i || (y(an(k ?? /* @__PURE__ */ new Date())), N((
|
|
4415
|
-
}, F = (
|
|
4416
|
-
if (C(
|
|
4417
|
-
const j = new Date(
|
|
4418
|
-
s && j.setHours((k == null ? void 0 : k.getHours()) ?? 0, (k == null ? void 0 : k.getMinutes()) ?? 0, 0, 0), c(
|
|
4419
|
-
}, I = (
|
|
4420
|
-
const [j = "", le = ""] =
|
|
4421
|
-
ae.setHours(Number.isFinite(q) ? q : 0, Number.isFinite(oe) ? oe : 0, 0, 0), c(
|
|
4418
|
+
const S = ve(), g = v ?? S, [m, N] = P(!1), k = Ba(l), [w, y] = P(() => an(k ?? /* @__PURE__ */ new Date())), $ = p ? Ut(p) : null, b = h ? Ut(h) : null, C = (W) => !!$ && Ut(W) < $ || !!b && Ut(W) > b, A = wl(an(w), -an(w).getDay()), B = Array.from({ length: 42 }, (W, j) => wl(A, j)), L = Ut(/* @__PURE__ */ new Date()), E = () => {
|
|
4419
|
+
i || (y(an(k ?? /* @__PURE__ */ new Date())), N((W) => !W));
|
|
4420
|
+
}, F = (W) => {
|
|
4421
|
+
if (C(W)) return;
|
|
4422
|
+
const j = new Date(W);
|
|
4423
|
+
s && j.setHours((k == null ? void 0 : k.getHours()) ?? 0, (k == null ? void 0 : k.getMinutes()) ?? 0, 0, 0), c(Sl(j, s)), s || N(!1);
|
|
4424
|
+
}, I = (W) => {
|
|
4425
|
+
const [j = "", le = ""] = W.split(":"), q = Number(j), oe = Number(le), ae = new Date(k ?? L);
|
|
4426
|
+
ae.setHours(Number.isFinite(q) ? q : 0, Number.isFinite(oe) ? oe : 0, 0, 0), c(Sl(ae, !0));
|
|
4422
4427
|
}, D = () => {
|
|
4423
4428
|
c(""), N(!1);
|
|
4424
4429
|
}, Z = /* @__PURE__ */ u("div", { className: `select-input-wrap${o ? " select-input-wrap--error" : ""}`, children: [
|
|
@@ -4436,25 +4441,25 @@ const Ia = T(function({ label: n, value: l, onChange: c, showTime: s = !1, place
|
|
|
4436
4441
|
children: k ? Fa(k, s) : /* @__PURE__ */ e("span", { className: "select-datefield__ph", children: a ?? (s ? "Selecione data e hora" : "Selecione uma data") })
|
|
4437
4442
|
}
|
|
4438
4443
|
),
|
|
4439
|
-
/* @__PURE__ */ e("span", { className: "select-datefield__icon", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
4444
|
+
/* @__PURE__ */ e("span", { className: "select-datefield__icon", "aria-hidden": "true", children: /* @__PURE__ */ e(Yl, {}) })
|
|
4440
4445
|
] });
|
|
4441
4446
|
return /* @__PURE__ */ u("div", { ref: M, ...x, className: `select-field${_ ? " " + _ : ""}`, children: [
|
|
4442
4447
|
n && /* @__PURE__ */ e(Rt, { htmlFor: g, label: r ? `${n} *` : n }),
|
|
4443
4448
|
/* @__PURE__ */ e("div", { className: "select-datefield", children: /* @__PURE__ */ e(dt, { active: m, onClose: () => N(!1), placement: "bottom-start", role: "dialog", activator: Z, children: /* @__PURE__ */ u("div", { className: "select-datefield__pop", children: [
|
|
4444
4449
|
/* @__PURE__ */ u("div", { className: "select-datepicker__calhead", children: [
|
|
4445
|
-
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Mês anterior", onClick: () => y((
|
|
4450
|
+
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Mês anterior", onClick: () => y((W) => kl(W, -1)), children: /* @__PURE__ */ e(Gn, {}) }),
|
|
4446
4451
|
/* @__PURE__ */ u("span", { className: "select-datepicker__monthlabel", children: [
|
|
4447
4452
|
Ea[w.getMonth()],
|
|
4448
4453
|
" ",
|
|
4449
4454
|
w.getFullYear()
|
|
4450
4455
|
] }),
|
|
4451
|
-
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Próximo mês", onClick: () => y((
|
|
4456
|
+
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Próximo mês", onClick: () => y((W) => kl(W, 1)), children: /* @__PURE__ */ e(Jt, {}) })
|
|
4452
4457
|
] }),
|
|
4453
4458
|
/* @__PURE__ */ u("div", { className: "select-datepicker__grid", role: "grid", children: [
|
|
4454
|
-
Aa.map((
|
|
4455
|
-
B.map((
|
|
4456
|
-
const j =
|
|
4457
|
-
return /* @__PURE__ */ e("div", { className: "select-datepicker__day", children: /* @__PURE__ */ e("button", { type: "button", className: q, disabled: C(
|
|
4459
|
+
Aa.map((W) => /* @__PURE__ */ e("div", { className: "select-datepicker__weekday", children: W }, W)),
|
|
4460
|
+
B.map((W) => {
|
|
4461
|
+
const j = W.getMonth() !== w.getMonth(), le = !!k && $l(W, k), q = "select-datepicker__daybtn" + (le ? " is-selected" : "") + ($l(W, L) && !le ? " is-today" : "") + (j ? " is-outside" : "");
|
|
4462
|
+
return /* @__PURE__ */ e("div", { className: "select-datepicker__day", children: /* @__PURE__ */ e("button", { type: "button", className: q, disabled: C(W), onClick: () => F(W), children: W.getDate() }) }, W.getTime());
|
|
4458
4463
|
})
|
|
4459
4464
|
] }),
|
|
4460
4465
|
s && /* @__PURE__ */ u("div", { className: "select-datefield__time", children: [
|
|
@@ -4466,7 +4471,7 @@ const Ia = T(function({ label: n, value: l, onChange: c, showTime: s = !1, place
|
|
|
4466
4471
|
className: "select-input select-datefield__time-input",
|
|
4467
4472
|
"aria-label": "Horário",
|
|
4468
4473
|
value: k ? `${it(k.getHours())}:${it(k.getMinutes())}` : "",
|
|
4469
|
-
onChange: (
|
|
4474
|
+
onChange: (W) => I(W.target.value)
|
|
4470
4475
|
}
|
|
4471
4476
|
)
|
|
4472
4477
|
] }),
|
|
@@ -4570,7 +4575,7 @@ function Ra({
|
|
|
4570
4575
|
}
|
|
4571
4576
|
);
|
|
4572
4577
|
}
|
|
4573
|
-
const
|
|
4578
|
+
const g1 = T(function({ filters: n, values: l, onChange: c, onClearAll: s, search: a, disabled: r, className: i, ...o }, d) {
|
|
4574
4579
|
const [p, h] = P([]), [f, v] = P(null), [_, x] = P(!1), M = (y) => (l[y.key] ?? "").trim() !== "", S = (y) => !!y.pinned || M(y) || p.includes(y.key), g = n.filter(S), m = n.filter((y) => !S(y)), N = n.filter(M), k = () => {
|
|
4575
4580
|
h([]), v(null), s();
|
|
4576
4581
|
}, w = (y) => {
|
|
@@ -4681,7 +4686,7 @@ const v1 = T(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4681
4686
|
/* @__PURE__ */ e("button", { type: "button", className: "select-filterbar__clear", onClick: k, children: "Limpar tudo" })
|
|
4682
4687
|
] })
|
|
4683
4688
|
] });
|
|
4684
|
-
}),
|
|
4689
|
+
}), b1 = T(function({ label: n, options: l, selected: c, onChange: s, placeholder: a = "Selecionar…", hint: r, help: i, error: o, onBlur: d, size: p = "md", className: h, ...f }, v) {
|
|
4685
4690
|
const [_, x] = P(!1), [M, S] = P(""), g = l.filter((k) => k.label.toLowerCase().includes(M.trim().toLowerCase())), m = (k) => s(c.includes(k) ? c.filter((w) => w !== k) : [...c, k]), N = c.map((k) => l.find((w) => w.value === k)).filter((k) => k != null);
|
|
4686
4691
|
return /* @__PURE__ */ u("div", { ref: v, ...f, className: `select-field${p === "sm" ? " select-field--sm" : ""}${h ? " " + h : ""}`, children: [
|
|
4687
4692
|
(n || i) && /* @__PURE__ */ e("div", { className: "select-field__labelrow", children: /* @__PURE__ */ u("span", { className: "select-field__labelwrap", children: [
|
|
@@ -4760,7 +4765,7 @@ const v1 = T(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4760
4765
|
),
|
|
4761
4766
|
o ? /* @__PURE__ */ e("p", { className: "select-field__error", children: o }) : r ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: r }) : null
|
|
4762
4767
|
] });
|
|
4763
|
-
}),
|
|
4768
|
+
}), x1 = T(function({ title: n, description: l, headerAction: c, footer: s, children: a, flush: r = !1, className: i, ...o }, d) {
|
|
4764
4769
|
return /* @__PURE__ */ u("div", { ref: d, ...o, className: `select-surface${i ? " " + i : ""}`, children: [
|
|
4765
4770
|
(n || l || c) && /* @__PURE__ */ u("div", { className: "select-surface__header", children: [
|
|
4766
4771
|
/* @__PURE__ */ u("div", { className: "select-surface__heading", children: [
|
|
@@ -4772,8 +4777,8 @@ const v1 = T(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4772
4777
|
/* @__PURE__ */ e("div", { className: `select-surface__body${r ? " select-surface__body--flush" : ""}`, children: a }),
|
|
4773
4778
|
s && /* @__PURE__ */ e("div", { className: "select-surface__footer", children: s })
|
|
4774
4779
|
] });
|
|
4775
|
-
}), Mc = Vn(null), Ta = 220, Pa = 4e3, Da = 8,
|
|
4776
|
-
function
|
|
4780
|
+
}), Mc = Vn(null), Ta = 220, Pa = 4e3, Da = 8, Wa = 0.04, Oa = 5;
|
|
4781
|
+
function y1({ children: t }) {
|
|
4777
4782
|
const [n, l] = P([]), c = K(0), s = K(/* @__PURE__ */ new Map()), a = nt((d) => {
|
|
4778
4783
|
l((p) => p.filter((h) => h.id !== d)), s.current.delete(d);
|
|
4779
4784
|
}, []), r = nt(
|
|
@@ -4795,7 +4800,7 @@ function x1({ children: t }) {
|
|
|
4795
4800
|
d.forEach((p) => clearTimeout(p)), d.clear();
|
|
4796
4801
|
};
|
|
4797
4802
|
}, []);
|
|
4798
|
-
const o =
|
|
4803
|
+
const o = Oe(
|
|
4799
4804
|
() => ({
|
|
4800
4805
|
show: i,
|
|
4801
4806
|
success: (d, p) => i(d, { variant: "success", duration: p }),
|
|
@@ -4808,8 +4813,8 @@ function x1({ children: t }) {
|
|
|
4808
4813
|
t,
|
|
4809
4814
|
n.length > 0 && yn(
|
|
4810
4815
|
/* @__PURE__ */ e("div", { className: "select select-toasts", role: "region", "aria-live": "polite", "aria-label": "Notificações", children: n.map((d, p) => {
|
|
4811
|
-
const h = n.length - 1 - p, f = d.exiting || h >=
|
|
4812
|
-
transform: `translate(-50%, ${-h * Da}px) scale(${1 - h *
|
|
4816
|
+
const h = n.length - 1 - p, f = d.exiting || h >= Oa, v = {
|
|
4817
|
+
transform: `translate(-50%, ${-h * Da}px) scale(${1 - h * Wa})`,
|
|
4813
4818
|
opacity: f ? 0 : 1,
|
|
4814
4819
|
zIndex: 1e3 - h,
|
|
4815
4820
|
pointerEvents: h === 0 && !d.exiting ? "auto" : "none"
|
|
@@ -4823,12 +4828,12 @@ function x1({ children: t }) {
|
|
|
4823
4828
|
)
|
|
4824
4829
|
] });
|
|
4825
4830
|
}
|
|
4826
|
-
function
|
|
4831
|
+
function N1() {
|
|
4827
4832
|
const t = Zn(Mc);
|
|
4828
4833
|
if (!t) throw new Error("useSelectToast must be used within a SelectToastProvider");
|
|
4829
4834
|
return t;
|
|
4830
4835
|
}
|
|
4831
|
-
const Ha = 390, ja = 1280,
|
|
4836
|
+
const Ha = 390, ja = 1280, M1 = T(function({ src: n, title: l = "Pré-visualização", height: c = 560, fill: s = !1, initialDevice: a = "desktop", showDeviceToggle: r = !0, emptyLabel: i = "Salve para gerar a pré-visualização.", onReload: o, notice: d, iframeRef: p, desktopWidth: h = ja, className: f, ...v }, _) {
|
|
4832
4837
|
const [x, M] = P(a), [S, g] = P(0), [m, N] = P(!0), k = K(null), [w, y] = P({ w: 0, h: 0 });
|
|
4833
4838
|
Ke(() => {
|
|
4834
4839
|
const B = k.current;
|
|
@@ -4857,7 +4862,7 @@ const Ha = 390, ja = 1280, N1 = T(function({ src: n, title: l = "Pré-visualiza
|
|
|
4857
4862
|
He,
|
|
4858
4863
|
{
|
|
4859
4864
|
size: "sm",
|
|
4860
|
-
icon: /* @__PURE__ */ e(
|
|
4865
|
+
icon: /* @__PURE__ */ e(Vl, {}),
|
|
4861
4866
|
label: "Visualizar em desktop",
|
|
4862
4867
|
active: x === "desktop",
|
|
4863
4868
|
onClick: () => M("desktop")
|
|
@@ -4867,7 +4872,7 @@ const Ha = 390, ja = 1280, N1 = T(function({ src: n, title: l = "Pré-visualiza
|
|
|
4867
4872
|
He,
|
|
4868
4873
|
{
|
|
4869
4874
|
size: "sm",
|
|
4870
|
-
icon: /* @__PURE__ */ e(
|
|
4875
|
+
icon: /* @__PURE__ */ e(Gl, {}),
|
|
4871
4876
|
label: "Visualizar em mobile",
|
|
4872
4877
|
active: x === "mobile",
|
|
4873
4878
|
onClick: () => M("mobile")
|
|
@@ -4936,21 +4941,21 @@ function za() {
|
|
|
4936
4941
|
return !1;
|
|
4937
4942
|
}
|
|
4938
4943
|
}
|
|
4939
|
-
function
|
|
4944
|
+
function Cl(t) {
|
|
4940
4945
|
try {
|
|
4941
4946
|
localStorage.setItem(wc, t ? "1" : "0");
|
|
4942
4947
|
} catch {
|
|
4943
4948
|
}
|
|
4944
4949
|
}
|
|
4945
|
-
function
|
|
4950
|
+
function w1({ children: t }) {
|
|
4946
4951
|
const [n, l] = P(za), c = nt((r) => {
|
|
4947
|
-
l(r),
|
|
4952
|
+
l(r), Cl(r);
|
|
4948
4953
|
}, []), s = nt(() => {
|
|
4949
4954
|
l((r) => {
|
|
4950
4955
|
const i = !r;
|
|
4951
|
-
return
|
|
4956
|
+
return Cl(i), i;
|
|
4952
4957
|
});
|
|
4953
|
-
}, []), a =
|
|
4958
|
+
}, []), a = Oe(() => ({ hidden: n, toggle: s, setHidden: c }), [n, s, c]);
|
|
4954
4959
|
return /* @__PURE__ */ e(kc.Provider, { value: a, children: t });
|
|
4955
4960
|
}
|
|
4956
4961
|
function $c() {
|
|
@@ -4987,20 +4992,20 @@ const Ya = new Intl.NumberFormat("pt-BR", {
|
|
|
4987
4992
|
c != null && /* @__PURE__ */ e("span", { className: "select-delta__caption", children: c })
|
|
4988
4993
|
] });
|
|
4989
4994
|
});
|
|
4990
|
-
function
|
|
4995
|
+
function k1() {
|
|
4991
4996
|
const { hidden: t, toggle: n } = $c();
|
|
4992
4997
|
return /* @__PURE__ */ e(
|
|
4993
4998
|
He,
|
|
4994
4999
|
{
|
|
4995
5000
|
variant: "outline",
|
|
4996
|
-
icon: t ? /* @__PURE__ */ e(
|
|
5001
|
+
icon: t ? /* @__PURE__ */ e(zl, {}) : /* @__PURE__ */ e(Ul, {}),
|
|
4997
5002
|
label: t ? "Mostrar valores" : "Ocultar valores",
|
|
4998
5003
|
active: t,
|
|
4999
5004
|
onClick: n
|
|
5000
5005
|
}
|
|
5001
5006
|
);
|
|
5002
5007
|
}
|
|
5003
|
-
const
|
|
5008
|
+
const $1 = T(function({ availableCents: n, availableLabel: l = "Saldo disponível", delta: c, buckets: s = [], action: a, className: r, ...i }, o) {
|
|
5004
5009
|
return /* @__PURE__ */ u("div", { ref: o, ...i, className: `select-balance${r ? " " + r : ""}`, children: [
|
|
5005
5010
|
/* @__PURE__ */ u("div", { className: "select-balance__head", children: [
|
|
5006
5011
|
/* @__PURE__ */ e("h3", { className: "select-balance__title", children: l }),
|
|
@@ -5031,7 +5036,7 @@ const k1 = T(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
5031
5036
|
] }, d.label)) })
|
|
5032
5037
|
] })
|
|
5033
5038
|
] });
|
|
5034
|
-
}),
|
|
5039
|
+
}), S1 = T(function({ grossCents: n, fees: l, netCents: c, grossLabel: s = "Valor bruto", netLabel: a = "Valor líquido", className: r, ...i }, o) {
|
|
5035
5040
|
const d = c ?? n - l.reduce((p, h) => p + h.cents, 0);
|
|
5036
5041
|
return /* @__PURE__ */ u("div", { ref: o, ...i, className: `select-fees${r ? " " + r : ""}`, children: [
|
|
5037
5042
|
/* @__PURE__ */ u("div", { className: "select-fees__row", children: [
|
|
@@ -5051,7 +5056,7 @@ const k1 = T(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
5051
5056
|
/* @__PURE__ */ e("span", { className: "select-fees__netvalue", children: /* @__PURE__ */ e(qt, { cents: d }) })
|
|
5052
5057
|
] })
|
|
5053
5058
|
] });
|
|
5054
|
-
}),
|
|
5059
|
+
}), C1 = T(function({ label: n, value: l, caption: c, chart: s, help: a, tone: r, bare: i = !1, className: o, ...d }, p) {
|
|
5055
5060
|
return /* @__PURE__ */ u("div", { ref: p, ...d, className: `select-kpi${i ? " select-kpi--bare" : ""}${o ? " " + o : ""}`, children: [
|
|
5056
5061
|
/* @__PURE__ */ u("span", { className: `select-kpi__label${a != null ? " select-kpi__label--help" : ""}`, children: [
|
|
5057
5062
|
a != null ? /* @__PURE__ */ e("span", { className: "select-kpi__labeltext", children: n }) : n,
|
|
@@ -5061,7 +5066,7 @@ const k1 = T(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
5061
5066
|
s != null && /* @__PURE__ */ e("div", { className: "select-kpi__chart", children: s }),
|
|
5062
5067
|
c != null && /* @__PURE__ */ e("span", { className: "select-kpi__caption", children: c })
|
|
5063
5068
|
] });
|
|
5064
|
-
}),
|
|
5069
|
+
}), L1 = T(function({ title: n, caption: l, action: c, help: s, loading: a = !1, hideValues: r = !1, height: i = 260, flush: o = !1, insight: d, insightTone: p = "neutral", children: h, className: f, ...v }, _) {
|
|
5065
5070
|
const x = i === "auto" ? void 0 : `${i / 16}rem`, M = i === "auto" ? "10rem" : `${i / 16}rem`;
|
|
5066
5071
|
return /* @__PURE__ */ u("div", { ref: _, ...v, className: `select-chartcard${f ? " " + f : ""}`, children: [
|
|
5067
5072
|
(n || c || l) && /* @__PURE__ */ u("div", { className: "select-chartcard__head", children: [
|
|
@@ -5137,7 +5142,7 @@ function Ja(t, n = 5) {
|
|
|
5137
5142
|
for (let o = 0; o <= r + a / 2; o += a) i.push(Math.round(o * 1e6) / 1e6);
|
|
5138
5143
|
return { max: r, values: i };
|
|
5139
5144
|
}
|
|
5140
|
-
function
|
|
5145
|
+
function Ll(t) {
|
|
5141
5146
|
return t.map((n, l) => `${l === 0 ? "M" : "L"}${n[0].toFixed(2)},${n[1].toFixed(2)}`).join(" ");
|
|
5142
5147
|
}
|
|
5143
5148
|
function mt(t) {
|
|
@@ -5184,7 +5189,7 @@ function Xt(t, n, l, c, s, a) {
|
|
|
5184
5189
|
const [r, i] = rn(t, n, l, s), [o, d] = rn(t, n, l, a), [p, h] = rn(t, n, c, a), [f, v] = rn(t, n, c, s), _ = a - s > 180 ? 1 : 0;
|
|
5185
5190
|
return `M${r.toFixed(2)},${i.toFixed(2)} A${l},${l} 0 ${_} 1 ${o.toFixed(2)},${d.toFixed(2)} L${p.toFixed(2)},${h.toFixed(2)} A${c},${c} 0 ${_} 0 ${f.toFixed(2)},${v.toFixed(2)} Z`;
|
|
5186
5191
|
}
|
|
5187
|
-
const
|
|
5192
|
+
const Al = [
|
|
5188
5193
|
"var(--select-chart-1)",
|
|
5189
5194
|
"var(--select-chart-2)",
|
|
5190
5195
|
"var(--select-chart-3)",
|
|
@@ -5192,14 +5197,14 @@ const Ll = [
|
|
|
5192
5197
|
"var(--select-chart-5)"
|
|
5193
5198
|
];
|
|
5194
5199
|
function U(t) {
|
|
5195
|
-
return
|
|
5200
|
+
return Al[t % Al.length];
|
|
5196
5201
|
}
|
|
5197
5202
|
function te(t) {
|
|
5198
5203
|
const n = Math.abs(t);
|
|
5199
5204
|
return n >= 1e9 ? (t / 1e9).toFixed(1).replace(/\.0$/, "") + "B" : n >= 1e6 ? (t / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : n >= 1e3 ? (t / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : String(Math.round(t));
|
|
5200
5205
|
}
|
|
5201
5206
|
const lt = { top: 16, right: 22, bottom: 32, left: 48 };
|
|
5202
|
-
function
|
|
5207
|
+
function A1({ data: t, color: n, height: l = 40, className: c, ...s }) {
|
|
5203
5208
|
const { ref: a, width: r } = ge(l), i = n ?? U(0), o = ve(), d = 4;
|
|
5204
5209
|
let p = null;
|
|
5205
5210
|
if (r > 0 && t.length > 1) {
|
|
@@ -5259,7 +5264,7 @@ function se({ tip: t, className: n, ...l }) {
|
|
|
5259
5264
|
] }, o))
|
|
5260
5265
|
] });
|
|
5261
5266
|
}
|
|
5262
|
-
function
|
|
5267
|
+
function E1({ data: t, height: n = 240, color: l, format: c = te, className: s, ...a }) {
|
|
5263
5268
|
const { ref: r, width: i } = ge(n), o = ce(), d = ve(), p = l ?? U(0), h = Ge(Math.max(0, ...t.map((m) => m.value))), f = lt, v = Math.max(0, i - f.left - f.right), _ = n - f.top - f.bottom, x = t.length > 0 ? v / t.length : 0, M = Math.min(x * 0.62, 44), S = f.top + _, g = (m) => S - m / h * _;
|
|
5264
5269
|
return /* @__PURE__ */ u("div", { ...a, className: `select-chart-wrap${s ? " " + s : ""}`, ref: r, children: [
|
|
5265
5270
|
i > 0 && /* @__PURE__ */ u("svg", { width: i, height: n, className: "select-chart", children: [
|
|
@@ -5310,7 +5315,7 @@ function A1({ data: t, height: n = 240, color: l, format: c = te, className: s,
|
|
|
5310
5315
|
/* @__PURE__ */ e(se, { tip: o.tip })
|
|
5311
5316
|
] });
|
|
5312
5317
|
}
|
|
5313
|
-
function
|
|
5318
|
+
function B1({ series: t, labels: n, height: l = 240, format: c = te, area: s = !1, className: a, ...r }) {
|
|
5314
5319
|
const { ref: i, width: o } = ge(l), d = ce(), p = ve(), [h, f] = P(null), { max: v, values: _ } = Ja(Math.max(0, ...t.flatMap(($) => $.data))), x = lt, M = Math.max(0, o - x.left - x.right), S = l - x.top - x.bottom, g = n.length, m = ($) => x.left + (g <= 1 ? M / 2 : $ / (g - 1) * M), N = ($) => x.top + S - $ / v * S, k = g > 1 ? M / (g - 1) : M, w = Math.max(1, Math.ceil(g / 7)), y = x.top + S;
|
|
5315
5320
|
return /* @__PURE__ */ u("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
5316
5321
|
o > 0 && /* @__PURE__ */ u("svg", { width: o, height: l, className: "select-chart", children: [
|
|
@@ -5397,7 +5402,7 @@ function E1({ series: t, labels: n, height: l = 240, format: c = te, area: s = !
|
|
|
5397
5402
|
/* @__PURE__ */ e(se, { tip: d.tip })
|
|
5398
5403
|
] });
|
|
5399
5404
|
}
|
|
5400
|
-
function
|
|
5405
|
+
function F1({ series: t, labels: n, height: l = 240, format: c = te, className: s, ...a }) {
|
|
5401
5406
|
const { ref: r, width: i } = ge(l), o = ce(), d = ve(), [p, h] = P(null), f = n.length, v = new Array(f).fill(0), _ = t.map(
|
|
5402
5407
|
(b) => b.data.map((C, A) => (v[A] = (v[A] ?? 0) + (C ?? 0), v[A]))
|
|
5403
5408
|
), x = Ge(Math.max(0, ...v)), M = lt, S = Math.max(0, i - M.left - M.right), g = l - M.top - M.bottom, m = (b) => M.left + (f <= 1 ? S / 2 : b / (f - 1) * S), N = (b) => M.top + g - b / x * g, k = f > 1 ? S / (f - 1) : S, w = Math.max(1, Math.ceil(f / 7)), y = M.top + g, $ = _[_.length - 1];
|
|
@@ -5463,7 +5468,7 @@ function B1({ series: t, labels: n, height: l = 240, format: c = te, className:
|
|
|
5463
5468
|
/* @__PURE__ */ e(se, { tip: o.tip })
|
|
5464
5469
|
] });
|
|
5465
5470
|
}
|
|
5466
|
-
function
|
|
5471
|
+
function I1({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = te, formatLine: a = (o) => `${Math.round(o)}%`, className: r, ...i }) {
|
|
5467
5472
|
const { ref: o, width: d } = ge(c), p = ce(), h = ve(), [f, v] = P(null), _ = { ...lt, right: 58 }, x = Math.max(0, d - _.left - _.right), M = c - _.top - _.bottom, S = t.length, g = Ge(Math.max(0, ...n.data)), m = Ge(Math.max(0, ...l.data)), N = S > 0 ? x / S : 0, k = Math.min(N * 0.5, 36), w = Math.max(1, Math.ceil(S / 8)), y = n.color ?? U(0), $ = l.color ?? U(1), b = _.top + M, C = (E) => b - E / g * M, A = (E) => b - E / m * M, B = (E) => _.left + N * E + N / 2, L = l.data.map((E, F) => [B(F), A(E)]);
|
|
5468
5473
|
return /* @__PURE__ */ u("div", { ...i, className: `select-chart-wrap${r ? " " + r : ""}`, ref: o, children: [
|
|
5469
5474
|
d > 0 && /* @__PURE__ */ u("svg", { width: d, height: c, className: "select-chart", children: [
|
|
@@ -5561,7 +5566,7 @@ function F1({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = te, f
|
|
|
5561
5566
|
/* @__PURE__ */ e(se, { tip: p.tip })
|
|
5562
5567
|
] });
|
|
5563
5568
|
}
|
|
5564
|
-
const
|
|
5569
|
+
const R1 = T(function({ segments: n, size: l = 200, thickness: c = 26, format: s = te, centerLabel: a, legend: r = !0, gap: i = 2, pie: o = !1, className: d, ...p }, h) {
|
|
5565
5570
|
const f = ce(), v = ve(), _ = K(null), x = gn(_, l), M = n.reduce((w, y) => w + y.value, 0) || 1, S = x / 2, g = x / 2, m = x / 2 - 2, N = o ? 0 : m - c;
|
|
5566
5571
|
let k = 0;
|
|
5567
5572
|
return /* @__PURE__ */ u("div", { ref: h, ...p, className: `select-donut-wrap${d ? " " + d : ""}`, children: [
|
|
@@ -5610,7 +5615,7 @@ const I1 = T(function({ segments: n, size: l = 200, thickness: c = 26, format: s
|
|
|
5610
5615
|
/* @__PURE__ */ e(se, { tip: f.tip })
|
|
5611
5616
|
] });
|
|
5612
5617
|
});
|
|
5613
|
-
function
|
|
5618
|
+
function T1({ series: t, labels: n, height: l = 240, format: c = te, stacked: s = !1, className: a, ...r }) {
|
|
5614
5619
|
const { ref: i, width: o } = ge(l), d = ce(), p = ve(), h = n.length, f = t.length || 1, v = n.map((y, $) => t.reduce((b, C) => b + (C.data[$] ?? 0), 0)), _ = Ge(s ? Math.max(0, ...v) : Math.max(0, ...t.flatMap((y) => y.data))), x = lt, M = Math.max(0, o - x.left - x.right), S = l - x.top - x.bottom, g = x.top + S, m = h ? M / h : 0, N = (y) => g - y / _ * S, k = Math.min(m * 0.72, f * 40), w = s ? Math.min(m * 0.5, 44) : k / f;
|
|
5615
5620
|
return /* @__PURE__ */ u("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
5616
5621
|
o > 0 && /* @__PURE__ */ u("svg", { width: o, height: l, className: "select-chart", children: [
|
|
@@ -5702,7 +5707,7 @@ function R1({ series: t, labels: n, height: l = 240, format: c = te, stacked: s
|
|
|
5702
5707
|
/* @__PURE__ */ e(se, { tip: d.tip })
|
|
5703
5708
|
] });
|
|
5704
5709
|
}
|
|
5705
|
-
const
|
|
5710
|
+
const P1 = T(function({ stages: n, format: l = te, className: c, ...s }, a) {
|
|
5706
5711
|
const r = Math.max(1, ...n.map((i) => i.value));
|
|
5707
5712
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-funnel${c ? " " + c : ""}`, children: n.map((i, o) => {
|
|
5708
5713
|
const d = o > 0 ? n[o - 1].value || 1 : i.value || 1, p = o > 0 ? i.value / d * 100 : 100, h = U(o);
|
|
@@ -5731,15 +5736,15 @@ const T1 = T(function({ stages: n, format: l = te, className: c, ...s }, a) {
|
|
|
5731
5736
|
function Qa(t) {
|
|
5732
5737
|
return Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0;
|
|
5733
5738
|
}
|
|
5734
|
-
function
|
|
5739
|
+
function El(t, n, l, c) {
|
|
5735
5740
|
const s = Math.PI + c * Math.PI;
|
|
5736
5741
|
return [t + l * Math.cos(s), n + l * Math.sin(s)];
|
|
5737
5742
|
}
|
|
5738
|
-
function
|
|
5739
|
-
const [a, r] =
|
|
5743
|
+
function Bl(t, n, l, c, s) {
|
|
5744
|
+
const [a, r] = El(t, n, l, c), [i, o] = El(t, n, l, s);
|
|
5740
5745
|
return `M ${a.toFixed(2)} ${r.toFixed(2)} A ${l} ${l} 0 0 1 ${i.toFixed(2)} ${o.toFixed(2)}`;
|
|
5741
5746
|
}
|
|
5742
|
-
const er = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ? 1 : 0 })}%`,
|
|
5747
|
+
const er = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ? 1 : 0 })}%`, D1 = T(function({ value: n, label: l, caption: c, size: s = 220, thickness: a, color: r, format: i = er, className: o, ...d }, p) {
|
|
5743
5748
|
const h = Qa(n), f = a ?? Math.max(8, Math.round(s * 0.075)), v = f / 2 + 2, _ = s / 2 - v, x = s / 2, M = s / 2, S = M + v, g = ms({ value: h, format: i });
|
|
5744
5749
|
return /* @__PURE__ */ u("div", { ref: p, ...d, className: `select-gauge${o ? " " + o : ""}`, style: { width: `${s / 16}rem` }, children: [
|
|
5745
5750
|
/* @__PURE__ */ u("div", { className: "select-gauge__ring", style: { width: "100%", aspectRatio: `${s} / ${S}` }, children: [
|
|
@@ -5748,7 +5753,7 @@ const er = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5748
5753
|
"path",
|
|
5749
5754
|
{
|
|
5750
5755
|
className: "select-gauge__track",
|
|
5751
|
-
d:
|
|
5756
|
+
d: Bl(x, M, _, 0, 1),
|
|
5752
5757
|
fill: "none",
|
|
5753
5758
|
strokeWidth: f,
|
|
5754
5759
|
strokeLinecap: "round"
|
|
@@ -5758,7 +5763,7 @@ const er = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5758
5763
|
"path",
|
|
5759
5764
|
{
|
|
5760
5765
|
className: "select-gauge__arc",
|
|
5761
|
-
d:
|
|
5766
|
+
d: Bl(x, M, _, 0, h / 100),
|
|
5762
5767
|
fill: "none",
|
|
5763
5768
|
stroke: r ?? "var(--select-chart-1)",
|
|
5764
5769
|
strokeWidth: f,
|
|
@@ -5774,7 +5779,7 @@ const er = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5774
5779
|
] }),
|
|
5775
5780
|
c != null && /* @__PURE__ */ e("div", { className: "select-gauge__caption", children: c })
|
|
5776
5781
|
] });
|
|
5777
|
-
}),
|
|
5782
|
+
}), W1 = T(function({ columns: n, rows: l, format: c = te, formatValue: s, color: a = "var(--select-chart-1)", showValues: r = !0, min: i, max: o, cellSize: d = 40, maxCellSize: p = 96, cellHeight: h = 30, className: f, ...v }, _) {
|
|
5778
5783
|
const x = ce(), M = l.flatMap((y) => y.values).filter((y) => y != null && Number.isFinite(y)), S = i ?? (M.length ? Math.min(...M) : 0), m = (o ?? (M.length ? Math.max(...M) : 1)) - S || 1, N = { "--heat-color": a }, k = {
|
|
5779
5784
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${n.length}, minmax(${d}px, ${Math.max(d, p)}px))`,
|
|
5780
5785
|
width: "fit-content",
|
|
@@ -5805,11 +5810,11 @@ const er = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5805
5810
|
color: A > 0.55 ? "#fff" : "var(--select-text)"
|
|
5806
5811
|
},
|
|
5807
5812
|
onMouseEnter: (E) => {
|
|
5808
|
-
const F = E.currentTarget.closest(".select-chart-wrap"), I = E.currentTarget.getBoundingClientRect(), D = F == null ? void 0 : F.getBoundingClientRect(), Z = D ? I.top - D.top : 0,
|
|
5813
|
+
const F = E.currentTarget.closest(".select-chart-wrap"), I = E.currentTarget.getBoundingClientRect(), D = F == null ? void 0 : F.getBoundingClientRect(), Z = D ? I.top - D.top : 0, W = Z < 64 ? "bottom" : "top", j = (D ? I.left - D.left : 0) + I.width / 2, le = W === "bottom" ? D ? I.bottom - D.top : 0 : Z;
|
|
5809
5814
|
x.show({
|
|
5810
5815
|
x: j,
|
|
5811
5816
|
y: le,
|
|
5812
|
-
place:
|
|
5817
|
+
place: W,
|
|
5813
5818
|
title: `${y.label} · ${n[b] ?? ""}`,
|
|
5814
5819
|
rows: [{ label: "Valor", value: (s ?? c)($), color: a }]
|
|
5815
5820
|
});
|
|
@@ -5840,7 +5845,7 @@ function O1({
|
|
|
5840
5845
|
/* @__PURE__ */ u("div", { className: "select-progresslist__top", children: [
|
|
5841
5846
|
/* @__PURE__ */ u("span", { className: "select-progresslist__label", children: [
|
|
5842
5847
|
/* @__PURE__ */ e("span", { className: "select-progresslist__name", children: a.label }),
|
|
5843
|
-
a.badge && /* @__PURE__ */ e(
|
|
5848
|
+
a.badge && /* @__PURE__ */ e(ic, { tone: a.badge.tone, children: a.badge.label })
|
|
5844
5849
|
] }),
|
|
5845
5850
|
/* @__PURE__ */ e("span", { className: "select-progresslist__value", children: a.valueText ?? n(a.value) })
|
|
5846
5851
|
] }),
|
|
@@ -5859,7 +5864,7 @@ function O1({
|
|
|
5859
5864
|
] }, `${a.label}-${r}`);
|
|
5860
5865
|
}) });
|
|
5861
5866
|
}
|
|
5862
|
-
const Fn = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0,
|
|
5867
|
+
const Fn = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0, H1 = T(function({ series: n, size: l = 200, thickness: c = 14, gap: s = 8, format: a = (h) => `${Math.round(h)}%`, centerLabel: r, legend: i = !0, className: o, ...d }, p) {
|
|
5863
5868
|
const h = ve(), f = l / 2, v = l / 2;
|
|
5864
5869
|
return /* @__PURE__ */ u("div", { ref: p, ...d, className: `select-donut-wrap${o ? " " + o : ""}`, children: [
|
|
5865
5870
|
/* @__PURE__ */ u("div", { className: "select-radial", style: { width: l, aspectRatio: "1" }, children: [
|
|
@@ -5904,12 +5909,12 @@ const Fn = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0, W1 = T
|
|
|
5904
5909
|
/* @__PURE__ */ e("span", { className: "select-donut__legval", children: a(Fn(_.value)) })
|
|
5905
5910
|
] }, x)) })
|
|
5906
5911
|
] });
|
|
5907
|
-
}),
|
|
5908
|
-
function
|
|
5912
|
+
}), Fl = 6.1, In = 12, Il = 56, tr = 0.4;
|
|
5913
|
+
function j1({ data: t, height: n, color: l, format: c = te, formatValue: s, distributed: a = !0, labelWidth: r, className: i, ...o }) {
|
|
5909
5914
|
const v = n ?? t.length * 36 + 6 + 26, { ref: _, width: x } = ge(v), M = ce(), S = ve(), g = Ge(Math.max(0, ...t.map((E) => E.value))), m = t.reduce((E, F) => Math.max(E, F.label.length), 0), N = Math.min(
|
|
5910
|
-
Math.max(
|
|
5911
|
-
Math.max(
|
|
5912
|
-
), k = r ?? N, w = Math.max(3, Math.floor((k - In) /
|
|
5915
|
+
Math.max(Il, m * Fl + In),
|
|
5916
|
+
Math.max(Il, x * tr)
|
|
5917
|
+
), k = r ?? N, w = Math.max(3, Math.floor((k - In) / Fl)), y = (E) => E.length <= w ? E : `${E.slice(0, w - 1).trimEnd()}…`, $ = Math.max(0, x - k - 28), b = v - 6 - 26, C = t.length ? b / t.length : 0, A = Math.min(C * 0.62, 22), B = (E) => k + E / g * $, L = (E, F) => E.color ?? (a ? U(F) : l ?? U(0));
|
|
5913
5918
|
return /* @__PURE__ */ u("div", { ...o, className: `select-chart-wrap${i ? " " + i : ""}`, ref: _, children: [
|
|
5914
5919
|
x > 0 && /* @__PURE__ */ u("svg", { width: x, height: v, className: "select-chart", children: [
|
|
5915
5920
|
/* @__PURE__ */ e("defs", { children: t.map((E, F) => {
|
|
@@ -5976,7 +5981,7 @@ function H1({ data: t, height: n, color: l, format: c = te, formatValue: s, dist
|
|
|
5976
5981
|
/* @__PURE__ */ e(se, { tip: M.tip })
|
|
5977
5982
|
] });
|
|
5978
5983
|
}
|
|
5979
|
-
function
|
|
5984
|
+
function Z1({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
5980
5985
|
const { ref: a, width: r } = ge(n), i = ce(), o = ve();
|
|
5981
5986
|
let d = 0;
|
|
5982
5987
|
const p = t.map((w) => {
|
|
@@ -6046,7 +6051,7 @@ function j1({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
6046
6051
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
6047
6052
|
] });
|
|
6048
6053
|
}
|
|
6049
|
-
const
|
|
6054
|
+
const Rl = (t) => Math.max(0, Math.min(100, t)), V1 = T(function({ items: n, format: l = te, className: c, ...s }, a) {
|
|
6050
6055
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-bullet${c ? " " + c : ""}`, children: n.map((r, i) => {
|
|
6051
6056
|
const o = r.color ?? U(i), d = r.max ?? (Math.max(r.value, r.target) * 1.25 || 1), p = r.value >= r.target;
|
|
6052
6057
|
return /* @__PURE__ */ u("div", { className: "select-bullet__row", children: [
|
|
@@ -6072,12 +6077,12 @@ const Il = (t) => Math.max(0, Math.min(100, t)), Z1 = T(function({ items: n, for
|
|
|
6072
6077
|
{
|
|
6073
6078
|
className: "select-bullet__fill",
|
|
6074
6079
|
style: {
|
|
6075
|
-
width: `${
|
|
6080
|
+
width: `${Rl(r.value / d * 100)}%`,
|
|
6076
6081
|
background: `linear-gradient(90deg, ${o}, color-mix(in srgb, ${o} 55%, transparent))`
|
|
6077
6082
|
}
|
|
6078
6083
|
}
|
|
6079
6084
|
),
|
|
6080
|
-
/* @__PURE__ */ e("span", { className: "select-bullet__tick", style: { left: `${
|
|
6085
|
+
/* @__PURE__ */ e("span", { className: "select-bullet__tick", style: { left: `${Rl(r.target / d * 100)}%` } })
|
|
6081
6086
|
] })
|
|
6082
6087
|
] }, `${r.label}-${i}`);
|
|
6083
6088
|
}) });
|
|
@@ -6125,7 +6130,7 @@ function nr(t, n, l) {
|
|
|
6125
6130
|
l
|
|
6126
6131
|
), c;
|
|
6127
6132
|
}
|
|
6128
|
-
function
|
|
6133
|
+
function G1({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
6129
6134
|
const { ref: a, width: r } = ge(n), i = ce(), o = ve(), d = t.map((h, f) => f).sort((h, f) => t[f].value - t[h].value), p = r > 0 ? nr(d.map((h) => t[h].value), r, n) : [];
|
|
6130
6135
|
return /* @__PURE__ */ u("div", { ...s, className: `select-chart-wrap select-treemap${c ? " " + c : ""}`, ref: a, children: [
|
|
6131
6136
|
r > 0 && /* @__PURE__ */ u("svg", { width: r, height: n, className: "select-chart", children: [
|
|
@@ -6167,7 +6172,7 @@ function V1({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
6167
6172
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
6168
6173
|
] });
|
|
6169
6174
|
}
|
|
6170
|
-
function
|
|
6175
|
+
function U1({ series: t, height: n = 240, xFormat: l = te, yFormat: c = te, xMax: s, yMax: a, maxRadius: r = 18, className: i, ...o }) {
|
|
6171
6176
|
const { ref: d, width: p } = ge(n), h = ce(), f = t.flatMap((y) => y.points), v = Ge(s ?? Math.max(0, ...f.map((y) => y.x))), _ = Ge(a ?? Math.max(0, ...f.map((y) => y.y))), x = Math.max(1, ...f.map((y) => y.r ?? 0)), M = lt, S = Math.max(0, p - M.left - M.right), g = n - M.top - M.bottom, m = M.top + g, N = (y) => M.left + y / v * S, k = (y) => m - y / _ * g, w = (y) => y.r ? 4 + Math.sqrt(y.r) / Math.sqrt(x) * (r - 4) : 4.5;
|
|
6172
6177
|
return /* @__PURE__ */ u("div", { ...o, className: `select-chart-wrap${i ? " " + i : ""}`, ref: d, children: [
|
|
6173
6178
|
p > 0 && /* @__PURE__ */ u("svg", { width: p, height: n, className: "select-chart", children: [
|
|
@@ -6214,7 +6219,7 @@ function G1({ series: t, height: n = 240, xFormat: l = te, yFormat: c = te, xMax
|
|
|
6214
6219
|
/* @__PURE__ */ e(se, { tip: h.tip })
|
|
6215
6220
|
] });
|
|
6216
6221
|
}
|
|
6217
|
-
const
|
|
6222
|
+
const z1 = T(function({ axes: n, series: l, size: c = 240, max: s, format: a = te, levels: r = 4, legend: i = !0, className: o, ...d }, p) {
|
|
6218
6223
|
const h = ce(), f = ve(), v = n.length, _ = c / 2, x = c / 2, M = c / 2 - 30, S = s ?? Ge(Math.max(1, ...l.flatMap((k) => k.values))), g = (k) => (-90 + k * 360 / v) * Math.PI / 180, m = (k, w) => [_ + w * Math.cos(g(k)), x + w * Math.sin(g(k))], N = (k) => k.map((w, y) => `${y === 0 ? "M" : "L"}${m(y, w).map(($) => $.toFixed(2)).join(",")}`).join(" ") + " Z";
|
|
6219
6224
|
return /* @__PURE__ */ u("div", { ref: p, ...d, className: `select-donut-wrap${o ? " " + o : ""}`, children: [
|
|
6220
6225
|
/* @__PURE__ */ u("div", { className: "select-radar", style: { width: c, aspectRatio: "1" }, children: [
|
|
@@ -6284,7 +6289,7 @@ const U1 = T(function({ axes: n, series: l, size: c = 240, max: s, format: a = t
|
|
|
6284
6289
|
] }, w)) })
|
|
6285
6290
|
] });
|
|
6286
6291
|
});
|
|
6287
|
-
function
|
|
6292
|
+
function q1({ links: t, height: n = 260, format: l = te, nodeWidth: c = 14, nodeGap: s = 14, className: a, ...r }) {
|
|
6288
6293
|
const { ref: i, width: o } = ge(n), d = ce(), p = [], h = [];
|
|
6289
6294
|
for (const b of t)
|
|
6290
6295
|
p.includes(b.source) || p.push(b.source), h.includes(b.target) || h.push(b.target);
|
|
@@ -6332,7 +6337,7 @@ function z1({ links: t, height: n = 260, format: l = te, nodeWidth: c = 14, node
|
|
|
6332
6337
|
/* @__PURE__ */ e(se, { tip: d.tip })
|
|
6333
6338
|
] });
|
|
6334
6339
|
}
|
|
6335
|
-
function
|
|
6340
|
+
function Y1({ data: t, height: n = 240, format: l = te, upColor: c = "var(--select-chart-4)", downColor: s = "var(--select-chart-3)", className: a, ...r }) {
|
|
6336
6341
|
const { ref: i, width: o } = ge(n), d = ce(), p = lt, h = Math.max(0, o - p.left - p.right), f = n - p.top - p.bottom, v = p.top + f, _ = Math.max(1, ...t.map(($) => $.high)), x = Math.min(_, ...t.map(($) => $.low)), M = (_ - x) * 0.08 || 1, S = x - M, g = _ + M, m = ($) => v - ($ - S) / (g - S) * f, N = t.length, k = N ? h / N : 0, w = Math.min(k * 0.5, 18), y = Array.from({ length: 5 }, ($, b) => S + (g - S) * b / 4);
|
|
6337
6342
|
return /* @__PURE__ */ u("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
6338
6343
|
o > 0 && /* @__PURE__ */ u("svg", { width: o, height: n, className: "select-chart", children: [
|
|
@@ -6384,7 +6389,7 @@ function q1({ data: t, height: n = 240, format: l = te, upColor: c = "var(--sele
|
|
|
6384
6389
|
/* @__PURE__ */ e(se, { tip: d.tip })
|
|
6385
6390
|
] });
|
|
6386
6391
|
}
|
|
6387
|
-
function
|
|
6392
|
+
function K1({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
6388
6393
|
const { ref: a, width: r } = ge(n), i = ce(), o = lt, d = Math.max(0, r - o.left - o.right), p = n - o.top - o.bottom, h = o.top + p, f = Ge(Math.max(1, ...t.map((S) => S.max))), v = (S) => h - S / f * p, _ = t.length, x = _ ? d / _ : 0, M = Math.min(x * 0.5, 40);
|
|
6389
6394
|
return /* @__PURE__ */ u("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
6390
6395
|
r > 0 && /* @__PURE__ */ u("svg", { width: r, height: n, className: "select-chart", children: [
|
|
@@ -6440,7 +6445,7 @@ function Y1({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
6440
6445
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
6441
6446
|
] });
|
|
6442
6447
|
}
|
|
6443
|
-
function
|
|
6448
|
+
function X1({ data: t, height: n, min: l, max: c, format: s = te, labelWidth: a = 96, className: r, ...i }) {
|
|
6444
6449
|
const f = n ?? t.length * 36 + 6 + 26, { ref: v, width: _ } = ge(f), x = ce(), M = ve(), S = l ?? Math.min(0, ...t.map((A) => A.start)), m = (c ?? Math.max(1, ...t.map((A) => A.end))) - S || 1, N = a, k = Math.max(0, _ - N - 14), w = f - 6 - 26, y = t.length ? w / t.length : 0, $ = Math.min(y * 0.6, 22), b = (A) => N + (A - S) / m * k, C = Array.from({ length: 5 }, (A, B) => S + m * B / 4);
|
|
6445
6450
|
return /* @__PURE__ */ u("div", { ...i, className: `select-chart-wrap${r ? " " + r : ""}`, ref: v, children: [
|
|
6446
6451
|
_ > 0 && /* @__PURE__ */ u("svg", { width: _, height: f, className: "select-chart", children: [
|
|
@@ -6495,7 +6500,7 @@ function K1({ data: t, height: n, min: l, max: c, format: s = te, labelWidth: a
|
|
|
6495
6500
|
/* @__PURE__ */ e(se, { tip: x.tip })
|
|
6496
6501
|
] });
|
|
6497
6502
|
}
|
|
6498
|
-
const
|
|
6503
|
+
const J1 = T(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels: c = ["Seg", "", "Qua", "", "Sex", "", "Dom"], columnLabels: s, format: a = te, cell: r = 14, gap: i = 3, min: o, max: d, className: p, ...h }, f) {
|
|
6499
6504
|
const v = ce();
|
|
6500
6505
|
ve();
|
|
6501
6506
|
const _ = n.flat().filter(($) => $ != null && Number.isFinite($)), x = o ?? (_.length ? Math.min(..._) : 0), S = (d ?? (_.length ? Math.max(..._) : 1)) - x || 1, g = 30, m = s ? 16 : 4, N = r + i, k = g + n.length * N, w = m + 7 * N, y = { "--heat-color": l };
|
|
@@ -6539,7 +6544,7 @@ const X1 = T(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
6539
6544
|
] }),
|
|
6540
6545
|
/* @__PURE__ */ e(se, { tip: v.tip })
|
|
6541
6546
|
] });
|
|
6542
|
-
}),
|
|
6547
|
+
}), Q1 = T(function({ segments: n, size: l = 200, format: c = te, legend: s = !0, rose: a = !1, className: r, ...i }, o) {
|
|
6543
6548
|
const d = ce(), p = l / 2, h = l / 2, f = l / 2 - 2, v = n.length || 1, _ = Ge(Math.max(1, ...n.map((S) => S.value))), x = (S) => a ? Math.max(0, S) / _ * f : Math.sqrt(Math.max(0, S) / _) * f, M = 360 / v;
|
|
6544
6549
|
return /* @__PURE__ */ u("div", { ref: o, ...i, className: `select-donut-wrap${r ? " " + r : ""}`, children: [
|
|
6545
6550
|
/* @__PURE__ */ u("div", { className: "select-radial", style: { width: l, aspectRatio: "1" }, children: [
|
|
@@ -6570,7 +6575,7 @@ const X1 = T(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
6570
6575
|
] }, g)) })
|
|
6571
6576
|
] });
|
|
6572
6577
|
});
|
|
6573
|
-
function
|
|
6578
|
+
function ei({ data: t, leftLabel: n, rightLabel: l, height: c = 240, format: s = te, className: a, ...r }) {
|
|
6574
6579
|
const { ref: i, width: o } = ge(c), d = ce(), p = { top: 24, right: 64, bottom: 12, left: 132 }, h = Ge(Math.max(1, ...t.flatMap((M) => [M.left, M.right]))), f = c - p.top - p.bottom, v = (M) => p.top + f - M / h * f, _ = p.left, x = o - p.right;
|
|
6575
6580
|
return /* @__PURE__ */ u("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
6576
6581
|
o > 0 && /* @__PURE__ */ u("svg", { width: o, height: c, className: "select-chart", children: [
|
|
@@ -6617,7 +6622,7 @@ function Q1({ data: t, leftLabel: n, rightLabel: l, height: c = 240, format: s =
|
|
|
6617
6622
|
/* @__PURE__ */ e(se, { tip: d.tip })
|
|
6618
6623
|
] });
|
|
6619
6624
|
}
|
|
6620
|
-
function
|
|
6625
|
+
function ti({ data: t, height: n, format: l = te, fromLabel: c = "Antes", toLabel: s = "Depois", labelWidth: a = 96, className: r, ...i }) {
|
|
6621
6626
|
const f = n ?? t.length * 34 + 6 + 26, { ref: v, width: _ } = ge(f), x = ce(), M = "var(--select-chart-2)", S = "var(--select-chart-1)", g = Ge(Math.max(1, ...t.flatMap(($) => [$.from, $.to]))), m = a, N = Math.max(0, _ - m - 14), k = f - 6 - 26, w = t.length ? k / t.length : 0, y = ($) => m + $ / g * N;
|
|
6622
6627
|
return /* @__PURE__ */ u("div", { ...i, className: `select-chart-wrap${r ? " " + r : ""}`, ref: v, children: [
|
|
6623
6628
|
_ > 0 && /* @__PURE__ */ u("svg", { width: _, height: f, className: "select-chart", children: [
|
|
@@ -6669,7 +6674,7 @@ function ei({ data: t, height: n, format: l = te, fromLabel: c = "Antes", toLabe
|
|
|
6669
6674
|
/* @__PURE__ */ e(se, { tip: x.tip })
|
|
6670
6675
|
] });
|
|
6671
6676
|
}
|
|
6672
|
-
function
|
|
6677
|
+
function ni({ columns: t, height: n = 240, format: l = te, gap: c = 3, className: s, ...a }) {
|
|
6673
6678
|
const { ref: r, width: i } = ge(n), o = ce(), d = { top: 6, right: 6, bottom: 24, left: 6 }, p = Math.max(0, i - d.left - d.right), h = n - d.top - d.bottom, f = t.map((m) => m.segments.reduce((N, k) => N + k.value, 0)), v = f.reduce((m, N) => m + N, 0) || 1, _ = [];
|
|
6674
6679
|
t.forEach((m) => m.segments.forEach((N) => {
|
|
6675
6680
|
_.includes(N.key) || _.push(N.key);
|
|
@@ -6721,7 +6726,7 @@ function ti({ columns: t, height: n = 240, format: l = te, gap: c = 3, className
|
|
|
6721
6726
|
/* @__PURE__ */ e(se, { tip: o.tip })
|
|
6722
6727
|
] });
|
|
6723
6728
|
}
|
|
6724
|
-
const
|
|
6729
|
+
const li = T(function({ value: n, max: l = 100, bands: c, size: s = 220, thickness: a, label: r, format: i = (h) => `${Math.round(h)}`, className: o, ...d }, p) {
|
|
6725
6730
|
const h = a ?? Math.max(10, Math.round(s * 0.08)), f = h / 2 + 2, v = s / 2 - f, _ = s / 2, x = s / 2, M = x + f, S = (A) => Math.max(0, Math.min(l, A)), g = (A) => {
|
|
6726
6731
|
const B = Math.PI + A * Math.PI;
|
|
6727
6732
|
return [_ + v * Math.cos(B), x + v * Math.sin(B)];
|
|
@@ -6746,7 +6751,7 @@ const ni = T(function({ value: n, max: l = 100, bands: c, size: s = 220, thickne
|
|
|
6746
6751
|
] })
|
|
6747
6752
|
] }) });
|
|
6748
6753
|
});
|
|
6749
|
-
function
|
|
6754
|
+
function ci({ series: t, labels: n, height: l = 240, format: c = te, className: s, ...a }) {
|
|
6750
6755
|
const { ref: r, width: i } = ge(l), o = ce(), d = ve(), [p, h] = P(null), f = n.length, v = { top: 14, right: 14, bottom: 28, left: 14 }, _ = Math.max(0, i - v.left - v.right), x = l - v.top - v.bottom, M = n.map((w, y) => t.reduce(($, b) => $ + (b.data[y] ?? 0), 0)), S = Math.max(1, ...M), g = x / S, m = (w) => v.left + (f <= 1 ? _ / 2 : w / (f - 1) * _), N = n.map(() => 0), k = t.map((w, y) => {
|
|
6751
6756
|
const $ = [], b = [];
|
|
6752
6757
|
return n.forEach((C, A) => {
|
|
@@ -6792,7 +6797,7 @@ function li({ series: t, labels: n, height: l = 240, format: c = te, className:
|
|
|
6792
6797
|
/* @__PURE__ */ e(se, { tip: o.tip })
|
|
6793
6798
|
] });
|
|
6794
6799
|
}
|
|
6795
|
-
const
|
|
6800
|
+
const si = T(function({ data: n, size: l = 220, format: c = te, legend: s = !0, className: a, ...r }, i) {
|
|
6796
6801
|
const o = ce(), d = l / 2, p = l / 2, h = l / 2 - 2, f = h * 0.62, v = h * 0.32, _ = n.map((S) => {
|
|
6797
6802
|
var g;
|
|
6798
6803
|
return (g = S.children) != null && g.length ? S.children.reduce((m, N) => m + N.value, 0) : S.value ?? 0;
|
|
@@ -6853,7 +6858,7 @@ const ci = T(function({ data: n, size: l = 220, format: c = te, legend: s = !0,
|
|
|
6853
6858
|
] }, g)) })
|
|
6854
6859
|
] });
|
|
6855
6860
|
});
|
|
6856
|
-
function
|
|
6861
|
+
function ai({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
6857
6862
|
const { ref: a, width: r } = ge(n), i = ce(), o = lt, d = Math.max(0, r - o.left - o.right), p = n - o.top - o.bottom, h = o.top + p, f = Ge(Math.max(1, ...t.map((g) => g.max))), v = (g) => h - g / f * p, _ = t.length, x = _ ? d / _ : 0, M = Math.min(x * 0.42, 46), S = Math.max(1, ...t.flatMap((g) => g.bins));
|
|
6858
6863
|
return /* @__PURE__ */ u("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
6859
6864
|
r > 0 && /* @__PURE__ */ u("svg", { width: r, height: n, className: "select-chart", children: [
|
|
@@ -6874,7 +6879,7 @@ function si({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
6874
6879
|
const N = o.left + x * m + x / 2, k = g.color ?? U(m), w = g.bins.length, y = (L) => v(g.min + (g.max - g.min) * L / Math.max(1, w - 1)), $ = (L) => g.bins[L] / S * M, b = [], C = [];
|
|
6875
6880
|
for (let L = w - 1; L >= 0; L--) b.push([N + $(L), y(L)]);
|
|
6876
6881
|
for (let L = 0; L < w; L++) C.push([N - $(L), y(L)]);
|
|
6877
|
-
const A = `${
|
|
6882
|
+
const A = `${Ll(b)} ${Ll(C).replace(/^M/, "L")} Z`, B = g.median != null ? v(g.median) : null;
|
|
6878
6883
|
return /* @__PURE__ */ u("g", { children: [
|
|
6879
6884
|
/* @__PURE__ */ e("path", { d: A, fill: k, fillOpacity: 0.32, stroke: k, strokeWidth: 1.5, strokeLinejoin: "round" }),
|
|
6880
6885
|
B != null && /* @__PURE__ */ e("line", { x1: N - M * 0.6, x2: N + M * 0.6, y1: B, y2: B, stroke: k, strokeWidth: 2 }),
|
|
@@ -6907,7 +6912,7 @@ function si({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
6907
6912
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
6908
6913
|
] });
|
|
6909
6914
|
}
|
|
6910
|
-
const
|
|
6915
|
+
const ri = T(function({ matrix: n, labels: l, size: c = 240, format: s = te, padAngle: a = 0.05, className: r, ...i }, o) {
|
|
6911
6916
|
const d = ce(), p = l.length, h = c / 2, f = c / 2, v = c / 2 - 22, _ = v - 9, x = n.map((b) => b.reduce((C, A) => C + A, 0)), M = x.reduce((b, C) => b + C, 0) || 1, S = (2 * Math.PI - p * a) / M, g = [];
|
|
6912
6917
|
let m = 0;
|
|
6913
6918
|
for (let b = 0; b < p; b++) {
|
|
@@ -6923,8 +6928,8 @@ const ai = T(function({ matrix: n, labels: l, size: c = 240, format: s = te, pad
|
|
|
6923
6928
|
}
|
|
6924
6929
|
}
|
|
6925
6930
|
const k = (b, C) => [h + C * Math.cos(b - Math.PI / 2), f + C * Math.sin(b - Math.PI / 2)], w = (b, C, A, B) => {
|
|
6926
|
-
const [L, E] = k(b, _), [F, I] = k(C, _), [D, Z] = k(A, _), [
|
|
6927
|
-
return `M${L.toFixed(2)},${E.toFixed(2)} A${_},${_} 0 0 1 ${F.toFixed(2)},${I.toFixed(2)} Q${h},${f} ${D.toFixed(2)},${Z.toFixed(2)} A${_},${_} 0 0 1 ${
|
|
6931
|
+
const [L, E] = k(b, _), [F, I] = k(C, _), [D, Z] = k(A, _), [W, j] = k(B, _);
|
|
6932
|
+
return `M${L.toFixed(2)},${E.toFixed(2)} A${_},${_} 0 0 1 ${F.toFixed(2)},${I.toFixed(2)} Q${h},${f} ${D.toFixed(2)},${Z.toFixed(2)} A${_},${_} 0 0 1 ${W.toFixed(2)},${j.toFixed(2)} Q${h},${f} ${L.toFixed(2)},${E.toFixed(2)} Z`;
|
|
6928
6933
|
}, y = (b) => b * 180 / Math.PI, $ = [];
|
|
6929
6934
|
for (let b = 0; b < p; b++)
|
|
6930
6935
|
for (let C = b; C < p; C++) {
|
|
@@ -6972,11 +6977,11 @@ const ai = T(function({ matrix: n, labels: l, size: c = 240, format: s = te, pad
|
|
|
6972
6977
|
/* @__PURE__ */ e(se, { tip: d.tip })
|
|
6973
6978
|
] }) });
|
|
6974
6979
|
});
|
|
6975
|
-
function
|
|
6980
|
+
function oi({ points: t, height: n = 240, radius: l = 16, color: c = "var(--select-chart-1)", xMax: s, yMax: a, format: r = te, className: i, ...o }) {
|
|
6976
6981
|
const { ref: d, width: p } = ge(n), h = ce(), f = 12, v = Math.max(0, p - f * 2), _ = n - f * 2, x = s ?? Math.max(1, ...t.map((C) => C.x)), M = a ?? Math.max(1, ...t.map((C) => C.y)), S = (C) => f + C / x * v, g = (C) => f + _ - C / M * _, m = l, N = Math.sqrt(3), k = (C, A) => {
|
|
6977
6982
|
let B = C, L = A, E = -B - L, F = Math.round(B), I = Math.round(E), D = Math.round(L);
|
|
6978
|
-
const Z = Math.abs(F - B),
|
|
6979
|
-
return Z >
|
|
6983
|
+
const Z = Math.abs(F - B), W = Math.abs(I - E), j = Math.abs(D - L);
|
|
6984
|
+
return Z > W && Z > j ? F = -I - D : W > j ? I = -F - D : D = -F - I, [F, D];
|
|
6980
6985
|
}, w = (C, A) => [m * N * (C + A / 2), m * (3 / 2) * A], y = (C, A) => {
|
|
6981
6986
|
let B = "";
|
|
6982
6987
|
for (let L = 0; L < 6; L++) {
|
|
@@ -7013,7 +7018,7 @@ function ri({ points: t, height: n = 240, radius: l = 16, color: c = "var(--sele
|
|
|
7013
7018
|
/* @__PURE__ */ e(se, { tip: h.tip })
|
|
7014
7019
|
] });
|
|
7015
7020
|
}
|
|
7016
|
-
const
|
|
7021
|
+
const ii = T(function({ words: n, minSize: l = 14, maxSize: c = 46, className: s, ...a }, r) {
|
|
7017
7022
|
const i = n.map((f) => f.value), o = Math.max(1, ...i), d = Math.min(...i), p = o - d || 1, h = (f) => l + (f - d) / p * (c - l);
|
|
7018
7023
|
return /* @__PURE__ */ e("div", { ref: r, ...a, className: `select-wordcloud${s ? " " + s : ""}`, children: n.map((f, v) => /* @__PURE__ */ e(
|
|
7019
7024
|
"span",
|
|
@@ -7166,7 +7171,7 @@ function on([t, n, l], c, s) {
|
|
|
7166
7171
|
const a = c * bn, r = t * Math.cos(a) + l * Math.sin(a), i = -t * Math.sin(a) + l * Math.cos(a), o = s * bn, d = n * Math.cos(o) - i * Math.sin(o), p = n * Math.sin(o) + i * Math.cos(o);
|
|
7167
7172
|
return [r, d, p];
|
|
7168
7173
|
}
|
|
7169
|
-
function
|
|
7174
|
+
function Tl(t, n, l) {
|
|
7170
7175
|
let c = t[0] * n[0] + t[1] * n[1] + t[2] * n[2];
|
|
7171
7176
|
c = Math.max(-1, Math.min(1, c));
|
|
7172
7177
|
const s = Math.acos(c);
|
|
@@ -7174,11 +7179,11 @@ function Rl(t, n, l) {
|
|
|
7174
7179
|
const a = Math.sin(s), r = Math.sin((1 - l) * s) / a, i = Math.sin(l * s) / a;
|
|
7175
7180
|
return [t[0] * r + n[0] * i, t[1] * r + n[1] * i, t[2] * r + n[2] * i];
|
|
7176
7181
|
}
|
|
7177
|
-
const
|
|
7182
|
+
const Pl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) < 1e-6, di = T(function({ points: n = [], arcs: l = [], size: c = 320, tilt: s = -18, spin: a = !0, speed: r = 7, color: i = "var(--select-chart-1)", format: o = te, legend: d = !0, map: p = !0, fluid: h = !1, onZoomChange: f, className: v, ..._ }, x) {
|
|
7178
7183
|
var ze;
|
|
7179
7184
|
const M = ve(), S = ce(), g = K(null), m = gn(g, c), N = n.length ? n.reduce((R, G) => R + G.lng, 0) / n.length : 0, k = K(
|
|
7180
7185
|
typeof window < "u" && !!((ze = window.matchMedia) != null && ze.call(window, "(prefers-reduced-motion: reduce)").matches)
|
|
7181
|
-
), w = K({ lng: -N, lat: s }), y = K({ lng: 0, lat: 0 }), $ = K(1), b = K(null), C = K(null), A = K(!1), B = K(0), L = K(0), E = K(0), [, F] = P(0), [I, D] = P(!1), [Z,
|
|
7186
|
+
), w = K({ lng: -N, lat: s }), y = K({ lng: 0, lat: 0 }), $ = K(1), b = K(null), C = K(null), A = K(!1), B = K(0), L = K(0), E = K(0), [, F] = P(0), [I, D] = P(!1), [Z, W] = P(null), j = () => {
|
|
7182
7187
|
L.current || (E.current = performance.now(), L.current = requestAnimationFrame(le));
|
|
7183
7188
|
};
|
|
7184
7189
|
function le(R) {
|
|
@@ -7216,10 +7221,10 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7216
7221
|
}, Fe = (R) => {
|
|
7217
7222
|
var G, z;
|
|
7218
7223
|
C.current && ((z = (G = R.target).releasePointerCapture) == null || z.call(G, R.pointerId), C.current = null, D(!1), j());
|
|
7219
|
-
}, pe = (m / 2 - 6) * $.current,
|
|
7224
|
+
}, pe = (m / 2 - 6) * $.current, O = m / 2, J = m / 2, Q = (R) => {
|
|
7220
7225
|
const G = on(R, w.current.lng, w.current.lat);
|
|
7221
|
-
return { x:
|
|
7222
|
-
}, ke =
|
|
7226
|
+
return { x: O + pe * G[0], y: J - pe * G[1], z: G[2] };
|
|
7227
|
+
}, ke = Oe(() => {
|
|
7223
7228
|
const G = [];
|
|
7224
7229
|
for (let z = -180; z < 180; z += 30) {
|
|
7225
7230
|
const xe = [];
|
|
@@ -7232,14 +7237,14 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7232
7237
|
G.push(xe);
|
|
7233
7238
|
}
|
|
7234
7239
|
return G;
|
|
7235
|
-
}, []), be =
|
|
7240
|
+
}, []), be = Oe(
|
|
7236
7241
|
() => lr.map((R) => {
|
|
7237
7242
|
const G = [];
|
|
7238
7243
|
for (let z = 0; z < R.length; z += 2) G.push(Ft(R[z + 1], R[z]));
|
|
7239
7244
|
return G;
|
|
7240
7245
|
}),
|
|
7241
7246
|
[]
|
|
7242
|
-
), ye = (R) => ({ x:
|
|
7247
|
+
), ye = (R) => ({ x: O + pe * R[0], y: J - pe * R[1] });
|
|
7243
7248
|
let Ne = "", ne = "";
|
|
7244
7249
|
if (p)
|
|
7245
7250
|
for (const R of be) {
|
|
@@ -7262,8 +7267,8 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7262
7267
|
const H = (X, ee) => {
|
|
7263
7268
|
const de = ye(ee.v);
|
|
7264
7269
|
if (X.edge && ee.edge) {
|
|
7265
|
-
const me = Math.atan2(ye(X.v).y - J, ye(X.v).x -
|
|
7266
|
-
let _e = Math.atan2(de.y - J, de.x -
|
|
7270
|
+
const me = Math.atan2(ye(X.v).y - J, ye(X.v).x - O);
|
|
7271
|
+
let _e = Math.atan2(de.y - J, de.x - O) - me;
|
|
7267
7272
|
for (; _e > Math.PI; ) _e -= 2 * Math.PI;
|
|
7268
7273
|
for (; _e < -Math.PI; ) _e += 2 * Math.PI;
|
|
7269
7274
|
const Me = _e > 0 ? 1 : 0;
|
|
@@ -7297,10 +7302,10 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7297
7302
|
const z = Ft(R.from.lat, R.from.lng), xe = Ft(R.to.lat, R.to.lng);
|
|
7298
7303
|
let V = "", H = !1;
|
|
7299
7304
|
for (let _e = 0; _e <= 40; _e++) {
|
|
7300
|
-
const Me = _e / 40, Ee =
|
|
7305
|
+
const Me = _e / 40, Ee = Tl(z, xe, Me), Be = 1 + 0.34 * Math.sin(Math.PI * Me), $e = on(Ee, w.current.lng, w.current.lat), Se = Q([Ee[0] * Be, Ee[1] * Be, Ee[2] * Be]);
|
|
7301
7306
|
$e[2] > -0.05 ? (V += `${H ? "L" : "M"}${Se.x.toFixed(1)},${Se.y.toFixed(1)}`, H = !0) : H = !1;
|
|
7302
7307
|
}
|
|
7303
|
-
const Y = k.current ? 0.5 : (B.current * Ue + G * 0.27) % 1, X =
|
|
7308
|
+
const Y = k.current ? 0.5 : (B.current * Ue + G * 0.27) % 1, X = Tl(z, xe, Y), ee = 1 + 0.34 * Math.sin(Math.PI * Y), de = on(X, w.current.lng, w.current.lat), me = Q([X[0] * ee, X[1] * ee, X[2] * ee]), fe = Ae != null && (Pl(R.from, Ae) || Pl(R.to, Ae));
|
|
7304
7309
|
return { d: V, col: R.color ?? i, i: G, flow: { ...me, vis: de[2] > 0 }, active: fe };
|
|
7305
7310
|
}), Pe = Ae != null, Xe = d ? [...n].sort((R, G) => (G.value ?? 0) - (R.value ?? 0)).slice(0, 6) : [];
|
|
7306
7311
|
return /* @__PURE__ */ u("div", { ref: x, ..._, className: `select-globe${v ? " " + v : ""}`, children: [
|
|
@@ -7314,7 +7319,7 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7314
7319
|
A.current = !0;
|
|
7315
7320
|
},
|
|
7316
7321
|
onPointerLeave: (R) => {
|
|
7317
|
-
A.current = !1, Fe(R),
|
|
7322
|
+
A.current = !1, Fe(R), W(null), S.hide(), j();
|
|
7318
7323
|
},
|
|
7319
7324
|
onPointerDown: oe,
|
|
7320
7325
|
onPointerMove: ae,
|
|
@@ -7343,13 +7348,13 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7343
7348
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: i, stopOpacity: 0.95 }),
|
|
7344
7349
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: i, stopOpacity: 0.3 })
|
|
7345
7350
|
] }),
|
|
7346
|
-
/* @__PURE__ */ e("clipPath", { id: `${M}-clip`, children: /* @__PURE__ */ e("circle", { cx:
|
|
7351
|
+
/* @__PURE__ */ e("clipPath", { id: `${M}-clip`, children: /* @__PURE__ */ e("circle", { cx: O, cy: J, r: pe }) })
|
|
7347
7352
|
] }),
|
|
7348
|
-
/* @__PURE__ */ e("circle", { cx:
|
|
7353
|
+
/* @__PURE__ */ e("circle", { cx: O, cy: J, r: pe + 24, fill: `url(#${M}-atmo)` }),
|
|
7349
7354
|
/* @__PURE__ */ e(
|
|
7350
7355
|
"circle",
|
|
7351
7356
|
{
|
|
7352
|
-
cx:
|
|
7357
|
+
cx: O,
|
|
7353
7358
|
cy: J,
|
|
7354
7359
|
r: pe,
|
|
7355
7360
|
fill: `url(#${M}-sphere)`,
|
|
@@ -7357,8 +7362,8 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7357
7362
|
strokeWidth: 1
|
|
7358
7363
|
}
|
|
7359
7364
|
),
|
|
7360
|
-
/* @__PURE__ */ e("circle", { cx:
|
|
7361
|
-
/* @__PURE__ */ e("circle", { cx:
|
|
7365
|
+
/* @__PURE__ */ e("circle", { cx: O, cy: J, r: pe, fill: `url(#${M}-glow)` }),
|
|
7366
|
+
/* @__PURE__ */ e("circle", { cx: O, cy: J, r: pe, fill: `url(#${M}-spec)` }),
|
|
7362
7367
|
/* @__PURE__ */ u("g", { clipPath: `url(#${M}-clip)`, children: [
|
|
7363
7368
|
p && Ne && /* @__PURE__ */ e(
|
|
7364
7369
|
"path",
|
|
@@ -7423,7 +7428,7 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7423
7428
|
fill: R.col,
|
|
7424
7429
|
className: "select-globe__point",
|
|
7425
7430
|
onPointerEnter: () => {
|
|
7426
|
-
|
|
7431
|
+
W(R.i), S.show({
|
|
7427
7432
|
x: R.p.x,
|
|
7428
7433
|
y: R.p.y - R.r - 4,
|
|
7429
7434
|
place: R.p.y < J ? "bottom" : "top",
|
|
@@ -7432,7 +7437,7 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7432
7437
|
});
|
|
7433
7438
|
},
|
|
7434
7439
|
onPointerLeave: () => {
|
|
7435
|
-
|
|
7440
|
+
W(null), S.hide();
|
|
7436
7441
|
},
|
|
7437
7442
|
onClick: () => {
|
|
7438
7443
|
b.current = { lng: -R.lng, lat: s }, j();
|
|
@@ -7453,7 +7458,7 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7453
7458
|
] }, G)) })
|
|
7454
7459
|
] });
|
|
7455
7460
|
});
|
|
7456
|
-
function
|
|
7461
|
+
function hi({ children: t, speed: n = 28, className: l, ...c }) {
|
|
7457
7462
|
const s = K(null), a = K(null), r = K(null), i = gn(s, 0), o = gn(r, 0), d = i > 0 && o > i + 1, p = K(0), h = K(null), f = K(!1);
|
|
7458
7463
|
ue(() => {
|
|
7459
7464
|
var k;
|
|
@@ -7501,7 +7506,7 @@ function di({ children: t, speed: n = 28, className: l, ...c }) {
|
|
|
7501
7506
|
}
|
|
7502
7507
|
);
|
|
7503
7508
|
}
|
|
7504
|
-
function
|
|
7509
|
+
function ui({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
7505
7510
|
var L;
|
|
7506
7511
|
const { ref: a, width: r } = ge(n), i = ce(), o = ve(), [d, p] = P(null), h = { ...lt, right: 44 }, f = [...t].sort((E, F) => F.value - E.value), v = f.length, _ = f.reduce((E, F) => E + F.value, 0) || 1;
|
|
7507
7512
|
let x = 0;
|
|
@@ -7568,7 +7573,7 @@ function hi({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
7568
7573
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
7569
7574
|
] });
|
|
7570
7575
|
}
|
|
7571
|
-
const
|
|
7576
|
+
const pi = T(function({ segments: n, cols: l = 10, rows: c = 10, format: s = te, className: a, ...r }, i) {
|
|
7572
7577
|
const o = n.reduce((x, M) => x + M.value, 0) || 1, d = l * c, p = n.map((x) => x.value / o * d), h = p.map(Math.floor);
|
|
7573
7578
|
let f = h.reduce((x, M) => x + M, 0);
|
|
7574
7579
|
const v = p.map((x, M) => ({ i: M, frac: x - h[M] })).sort((x, M) => M.frac - x.frac);
|
|
@@ -7587,7 +7592,7 @@ const ui = T(function({ segments: n, cols: l = 10, rows: c = 10, format: s = te,
|
|
|
7587
7592
|
] }, M)) })
|
|
7588
7593
|
] });
|
|
7589
7594
|
});
|
|
7590
|
-
function
|
|
7595
|
+
function mi({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", height: c, format: s = te, leftColor: a, rightColor: r, centerWidth: i = 84, className: o, ...d }) {
|
|
7591
7596
|
const p = c ?? Math.max(180, t.length * 40 + 36), { ref: h, width: f } = ge(p), v = ce(), [_, x] = P(null), M = 8, S = 26, g = 8, m = Math.max(1, ...t.flatMap((A) => [A.left, A.right])), N = Math.max(0, (f - i - M * 2) / 2), k = t.length ? (p - S - g) / t.length : 0, w = Math.min(k * 0.6, 26), y = M + N, $ = M + N + i, b = a ?? U(1), C = r ?? U(0);
|
|
7592
7597
|
return /* @__PURE__ */ u("div", { ...d, className: `select-chart-wrap${o ? " " + o : ""}`, ref: h, children: [
|
|
7593
7598
|
f > 0 && /* @__PURE__ */ u("svg", { width: f, height: p, className: "select-chart", onMouseLeave: () => {
|
|
@@ -7641,7 +7646,7 @@ function pi({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", hei
|
|
|
7641
7646
|
/* @__PURE__ */ e(se, { tip: v.tip })
|
|
7642
7647
|
] });
|
|
7643
7648
|
}
|
|
7644
|
-
function
|
|
7649
|
+
function fi({ series: t, labels: n, height: l = 240, format: c = te, className: s, ...a }) {
|
|
7645
7650
|
const { ref: r, width: i } = ge(l), o = ce(), [d, p] = P(null), h = { top: 16, right: 78, bottom: 28, left: 28 }, f = n.length, v = t.length, _ = Math.max(0, i - h.left - h.right), x = l - h.top - h.bottom, M = t.map(() => new Array(f).fill(0));
|
|
7646
7651
|
for (let m = 0; m < f; m++)
|
|
7647
7652
|
t.map((k, w) => ({ si: w, v: k.data[m] ?? 0 })).sort((k, w) => w.v - k.v).forEach((k, w) => {
|
|
@@ -7689,7 +7694,7 @@ function mi({ series: t, labels: n, height: l = 240, format: c = te, className:
|
|
|
7689
7694
|
/* @__PURE__ */ e(se, { tip: o.tip })
|
|
7690
7695
|
] });
|
|
7691
7696
|
}
|
|
7692
|
-
function
|
|
7697
|
+
function _i({ axes: t, data: n, height: l = 260, format: c = te, className: s, ...a }) {
|
|
7693
7698
|
const { ref: r, width: i } = ge(l), o = ce(), [d, p] = P(null), h = { top: 30, right: 28, bottom: 26, left: 28 }, f = Math.max(0, i - h.left - h.right), v = l - h.top - h.bottom, _ = t.length, x = (g) => h.left + (_ <= 1 ? f / 2 : f / (_ - 1) * g), M = t.map((g) => {
|
|
7694
7699
|
const m = n.map((N) => N.values[g.key] ?? 0);
|
|
7695
7700
|
return { min: Math.min(...m), max: Math.max(...m) };
|
|
@@ -7746,7 +7751,7 @@ function pn(t) {
|
|
|
7746
7751
|
function Lc(t, n = 0) {
|
|
7747
7752
|
return !t.children || !t.children.length ? n : Math.max(...t.children.map((l) => Lc(l, n + 1)));
|
|
7748
7753
|
}
|
|
7749
|
-
function
|
|
7754
|
+
function vi({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
7750
7755
|
const { ref: a, width: r } = ge(n), i = ce(), [o, d] = P(null), p = Lc(t), h = n / (p + 1), f = [], v = (_, x, M, S, g) => {
|
|
7751
7756
|
if (f.push({ node: _, x0: x, x1: M, depth: S, color: _.color ?? U(g), value: pn(_) }), _.children && _.children.length) {
|
|
7752
7757
|
const m = _.children.reduce((k, w) => k + pn(w), 0) || 1;
|
|
@@ -7790,7 +7795,7 @@ function _i({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
7790
7795
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
7791
7796
|
] });
|
|
7792
7797
|
}
|
|
7793
|
-
function
|
|
7798
|
+
function gi({ data: t, height: n = 260, className: l, ...c }) {
|
|
7794
7799
|
const { ref: s, width: a } = ge(n), r = ce(), [i, o] = P(null), d = { top: 14, right: 96, bottom: 14, left: 16 };
|
|
7795
7800
|
let p = null;
|
|
7796
7801
|
if (a > 0) {
|
|
@@ -7860,7 +7865,7 @@ function vi({ data: t, height: n = 260, className: l, ...c }) {
|
|
|
7860
7865
|
/* @__PURE__ */ e(se, { tip: r.tip })
|
|
7861
7866
|
] });
|
|
7862
7867
|
}
|
|
7863
|
-
const
|
|
7868
|
+
const bi = T(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
7864
7869
|
const r = Math.min(3, n.length), i = l / 2, o = l / 2, d = Math.max(1, ...n.slice(0, r).map((v) => v.size)), p = l * 0.26, h = (v) => p * 0.45 + p * 0.55 * Math.sqrt(v.size / d), f = r <= 2 ? [
|
|
7865
7870
|
[i - p * 0.42, o],
|
|
7866
7871
|
[i + p * 0.42, o]
|
|
@@ -7908,7 +7913,7 @@ const gi = T(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
|
7908
7913
|
/* @__PURE__ */ e("span", { className: "select-donut__legval", children: v.size.toLocaleString("pt-BR") })
|
|
7909
7914
|
] }, _)) })
|
|
7910
7915
|
] });
|
|
7911
|
-
}),
|
|
7916
|
+
}), xi = T(function({ data: n, size: l = 260, format: c = te, className: s, ...a }, r) {
|
|
7912
7917
|
const i = ce(), [o, d] = P(null), p = Math.max(1, ...n.map((b) => b.value)), h = n.map((b, C) => ({ d: b, i: C, r: 8 + Math.sqrt(b.value / p) * 40 })).sort((b, C) => C.r - b.r), f = [];
|
|
7913
7918
|
for (const b of h) {
|
|
7914
7919
|
if (f.length === 0) {
|
|
@@ -7964,8 +7969,8 @@ const gi = T(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
|
7964
7969
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
7965
7970
|
] });
|
|
7966
7971
|
});
|
|
7967
|
-
function
|
|
7968
|
-
const { ref: r, width: i } = ge(l), o = ce(), [d, p] = P(null), h =
|
|
7972
|
+
function yi({ nodes: t, links: n, height: l = 300, format: c = te, className: s, ...a }) {
|
|
7973
|
+
const { ref: r, width: i } = ge(l), o = ce(), [d, p] = P(null), h = Oe(() => {
|
|
7969
7974
|
const _ = i || l, x = l, M = t.length, S = /* @__PURE__ */ new Map();
|
|
7970
7975
|
if (!M) return S;
|
|
7971
7976
|
const g = t.map((w, y) => ({
|
|
@@ -8052,13 +8057,13 @@ function xi({ nodes: t, links: n, height: l = 300, format: c = te, className: s,
|
|
|
8052
8057
|
const Rn = [
|
|
8053
8058
|
{ value: "light", label: "Claro", icon: /* @__PURE__ */ e(ts, {}) },
|
|
8054
8059
|
{ value: "dark", label: "Escuro", icon: /* @__PURE__ */ e(ns, {}) },
|
|
8055
|
-
{ value: "system", label: "Sistema", icon: /* @__PURE__ */ e(
|
|
8060
|
+
{ value: "system", label: "Sistema", icon: /* @__PURE__ */ e(Vl, {}) }
|
|
8056
8061
|
];
|
|
8057
|
-
function
|
|
8062
|
+
function Ni(t) {
|
|
8058
8063
|
var n;
|
|
8059
8064
|
return t === "system" ? (n = window.matchMedia) != null && n.call(window, "(prefers-color-scheme: dark)").matches ? "dark" : "light" : t;
|
|
8060
8065
|
}
|
|
8061
|
-
function
|
|
8066
|
+
function Mi({ value: t, onChange: n, className: l, ...c }) {
|
|
8062
8067
|
const [s, a] = P(!1), r = K(null), i = Rn.find((o) => o.value === t) ?? Rn[2];
|
|
8063
8068
|
return ue(() => {
|
|
8064
8069
|
if (!s) return;
|
|
@@ -8087,7 +8092,7 @@ function Ni({ value: t, onChange: n, className: l, ...c }) {
|
|
|
8087
8092
|
] });
|
|
8088
8093
|
}
|
|
8089
8094
|
const Ac = Vn(!1);
|
|
8090
|
-
function
|
|
8095
|
+
function wi({
|
|
8091
8096
|
children: t,
|
|
8092
8097
|
stacked: n = !1,
|
|
8093
8098
|
loading: l = !1
|
|
@@ -8095,14 +8100,14 @@ function Mi({
|
|
|
8095
8100
|
const c = wn({ selector: ".select-detail", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 });
|
|
8096
8101
|
return /* @__PURE__ */ e(Ac.Provider, { value: l, children: /* @__PURE__ */ e("div", { className: `select-detaillist${n ? " select-detaillist--stacked" : ""}`, ref: c, children: t }) });
|
|
8097
8102
|
}
|
|
8098
|
-
const
|
|
8103
|
+
const ki = T(function({ label: n, children: l, action: c, align: s = "center", loading: a, className: r, ...i }, o) {
|
|
8099
8104
|
const d = Zn(Ac), p = a ?? d;
|
|
8100
8105
|
return /* @__PURE__ */ u("div", { ref: o, ...i, className: `select-detail select-detail--${s}${r ? " " + r : ""}`, children: [
|
|
8101
8106
|
/* @__PURE__ */ e("div", { className: "select-detail__label", children: n }),
|
|
8102
8107
|
/* @__PURE__ */ e("div", { className: "select-detail__value", children: p ? /* @__PURE__ */ e("span", { className: "select-skeleton select-detail__skel" }) : l }),
|
|
8103
8108
|
c && /* @__PURE__ */ e("div", { className: "select-detail__action", children: c })
|
|
8104
8109
|
] });
|
|
8105
|
-
}),
|
|
8110
|
+
}), $i = T(function({ steps: n, current: l, onSelect: c, orientation: s = "horizontal", className: a, ...r }, i) {
|
|
8106
8111
|
const o = s === "vertical";
|
|
8107
8112
|
return /* @__PURE__ */ e(
|
|
8108
8113
|
"ol",
|
|
@@ -8122,7 +8127,7 @@ const wi = T(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
8122
8127
|
})
|
|
8123
8128
|
}
|
|
8124
8129
|
);
|
|
8125
|
-
}),
|
|
8130
|
+
}), Si = T(function({ name: n, price: l, priceSuffix: c, headerAction: s, summary: a, cta: r, featuresTitle: i, features: o, featured: d = !1, className: p, ...h }, f) {
|
|
8126
8131
|
return /* @__PURE__ */ u("div", { ref: f, ...h, className: `select-plan${d ? " select-plan--featured" : ""}${p ? " " + p : ""}`, children: [
|
|
8127
8132
|
/* @__PURE__ */ u("div", { className: "select-plan__top", children: [
|
|
8128
8133
|
/* @__PURE__ */ u("div", { className: "select-plan__head", children: [
|
|
@@ -8144,7 +8149,7 @@ const wi = T(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
8144
8149
|
] }, _)) })
|
|
8145
8150
|
] })
|
|
8146
8151
|
] });
|
|
8147
|
-
}),
|
|
8152
|
+
}), Ci = T(function({ title: n, description: l, headerAction: c, footer: s, children: a, className: r, ...i }, o) {
|
|
8148
8153
|
return /* @__PURE__ */ u("div", { ref: o, ...i, className: `select-listcard${r ? " " + r : ""}`, children: [
|
|
8149
8154
|
(n || c) && /* @__PURE__ */ u("div", { className: "select-listcard__head", children: [
|
|
8150
8155
|
/* @__PURE__ */ u("div", { className: "select-listcard__heading", children: [
|
|
@@ -8157,7 +8162,7 @@ const wi = T(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
8157
8162
|
s && /* @__PURE__ */ e("div", { className: "select-listcard__footer", children: s })
|
|
8158
8163
|
] });
|
|
8159
8164
|
});
|
|
8160
|
-
function
|
|
8165
|
+
function Li({
|
|
8161
8166
|
media: t,
|
|
8162
8167
|
title: n,
|
|
8163
8168
|
secondary: l,
|
|
@@ -8175,7 +8180,7 @@ function Ci({
|
|
|
8175
8180
|
] }), i = `select-listrow${s ? " select-listrow--muted" : ""}`;
|
|
8176
8181
|
return a ? /* @__PURE__ */ e("button", { type: "button", className: `${i} select-listrow--clickable`, onClick: a, children: r }) : /* @__PURE__ */ e("div", { className: i, children: r });
|
|
8177
8182
|
}
|
|
8178
|
-
const
|
|
8183
|
+
const Dl = T(function({ src: n, alt: l = "", size: c = 40, className: s, ...a }, r) {
|
|
8179
8184
|
const [i, o] = P(!1);
|
|
8180
8185
|
return ue(() => o(!1), [n]), /* @__PURE__ */ e("span", { ref: r, ...a, className: `select-thumb${s ? " " + s : ""}`, style: { width: c, height: c }, children: n && !i ? /* @__PURE__ */ e(
|
|
8181
8186
|
"img",
|
|
@@ -8197,7 +8202,7 @@ function cr({
|
|
|
8197
8202
|
}) {
|
|
8198
8203
|
return /* @__PURE__ */ e($n, { open: t, onClose: n, title: s, size: "lg", theme: Qt(), children: /* @__PURE__ */ e("div", { className: "select-imagezoom", children: /* @__PURE__ */ e("img", { src: l, alt: c ?? s ?? "", className: "select-imagezoom__img" }) }) });
|
|
8199
8204
|
}
|
|
8200
|
-
function
|
|
8205
|
+
function Ai({
|
|
8201
8206
|
src: t,
|
|
8202
8207
|
alt: n = "",
|
|
8203
8208
|
size: l = 40,
|
|
@@ -8214,13 +8219,13 @@ function Li({
|
|
|
8214
8219
|
},
|
|
8215
8220
|
"aria-label": "Ampliar imagem",
|
|
8216
8221
|
style: { all: "unset", cursor: "zoom-in", display: "inline-flex" },
|
|
8217
|
-
children: /* @__PURE__ */ e(
|
|
8222
|
+
children: /* @__PURE__ */ e(Dl, { src: t, size: l, alt: n })
|
|
8218
8223
|
}
|
|
8219
8224
|
),
|
|
8220
8225
|
s && /* @__PURE__ */ e(cr, { open: !0, onClose: () => a(!1), src: t, alt: n, title: c ?? n })
|
|
8221
|
-
] }) : /* @__PURE__ */ e(
|
|
8226
|
+
] }) : /* @__PURE__ */ e(Dl, { size: l, alt: n });
|
|
8222
8227
|
}
|
|
8223
|
-
const
|
|
8228
|
+
const Ei = T(function({ media: n, title: l, secondary: c, className: s, ...a }, r) {
|
|
8224
8229
|
return /* @__PURE__ */ u("span", { ref: r, ...a, className: `select-mediacell${s ? " " + s : ""}`, children: [
|
|
8225
8230
|
n && /* @__PURE__ */ e("span", { className: "select-mediacell__media", children: n }),
|
|
8226
8231
|
/* @__PURE__ */ u("span", { className: "select-mediacell__text", children: [
|
|
@@ -8229,7 +8234,7 @@ const Ai = T(function({ media: n, title: l, secondary: c, className: s, ...a },
|
|
|
8229
8234
|
] })
|
|
8230
8235
|
] });
|
|
8231
8236
|
});
|
|
8232
|
-
function
|
|
8237
|
+
function Bi() {
|
|
8233
8238
|
const [t, n] = P(
|
|
8234
8239
|
() => typeof navigator < "u" && navigator.onLine === !1
|
|
8235
8240
|
);
|
|
@@ -8262,12 +8267,12 @@ function sr(t) {
|
|
|
8262
8267
|
value: l == null ? "" : String(l)
|
|
8263
8268
|
})) : [];
|
|
8264
8269
|
}
|
|
8265
|
-
const
|
|
8270
|
+
const Fi = T(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valuePlaceholder: s = "Valor", keyOptions: a, addLabel: r = "Adicionar", max: i, helpText: o = "Linhas vazias serão ignoradas.", className: d, ...p }, h) {
|
|
8266
8271
|
const f = sr(n), v = (S, g) => l(f.map((m, N) => N === S ? { ...m, ...g } : m)), _ = (S) => l(f.filter((g, m) => m !== S)), x = () => l([...f, { name: "", value: "" }]), M = i == null || f.length < i;
|
|
8267
8272
|
return /* @__PURE__ */ u("div", { ref: h, ...p, className: `select-kv${d ? " " + d : ""}`, children: [
|
|
8268
8273
|
f.map((S, g) => /* @__PURE__ */ u("div", { className: "select-kv__row", children: [
|
|
8269
8274
|
/* @__PURE__ */ e("div", { className: "select-kv__field", children: a ? /* @__PURE__ */ e(
|
|
8270
|
-
|
|
8275
|
+
cc,
|
|
8271
8276
|
{
|
|
8272
8277
|
size: "sm",
|
|
8273
8278
|
options: [{ label: c, value: "" }, ...a],
|
|
@@ -8294,7 +8299,7 @@ const Bi = T(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
8294
8299
|
autoComplete: "off"
|
|
8295
8300
|
}
|
|
8296
8301
|
) }),
|
|
8297
|
-
/* @__PURE__ */ e("div", { className: "select-kv__remove", children: /* @__PURE__ */ e(He, { size: "sm", icon: /* @__PURE__ */ e(
|
|
8302
|
+
/* @__PURE__ */ e("div", { className: "select-kv__remove", children: /* @__PURE__ */ e(He, { size: "sm", icon: /* @__PURE__ */ e(ql, {}), label: "Remover", onClick: () => _(g) }) })
|
|
8298
8303
|
] }, g)),
|
|
8299
8304
|
M && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ u(la, { onClick: x, children: [
|
|
8300
8305
|
"+ ",
|
|
@@ -8302,7 +8307,7 @@ const Bi = T(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
8302
8307
|
] }) }),
|
|
8303
8308
|
o && /* @__PURE__ */ e("p", { className: "select-kv__hint", children: o })
|
|
8304
8309
|
] });
|
|
8305
|
-
}),
|
|
8310
|
+
}), Wl = (t) => String(t).padStart(2, "0"), ar = {
|
|
8306
8311
|
"en-US": {
|
|
8307
8312
|
weekdays: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
8308
8313
|
months: [
|
|
@@ -8345,7 +8350,7 @@ const Bi = T(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
8345
8350
|
to: "Até",
|
|
8346
8351
|
cancel: "Cancelar",
|
|
8347
8352
|
apply: "Aplicar",
|
|
8348
|
-
formatDate: (t) => `${
|
|
8353
|
+
formatDate: (t) => `${Wl(t.getDate())} / ${Wl(t.getMonth() + 1)} / ${t.getFullYear()}`
|
|
8349
8354
|
}
|
|
8350
8355
|
}, ot = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), dn = (t) => new Date(t.getFullYear(), t.getMonth(), 1), xn = (t, n) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + n), Ol = (t, n) => new Date(t.getFullYear(), t.getMonth() + n, 1), hn = (t, n) => t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate(), un = (t) => {
|
|
8351
8356
|
const n = /* @__PURE__ */ new Date();
|
|
@@ -8444,7 +8449,7 @@ const hr = T(function({ value: n, presets: l = rr, onApply: c, onCancel: s, acce
|
|
|
8444
8449
|
/* @__PURE__ */ u("div", { className: "select-datepicker__grid", role: "grid", children: [
|
|
8445
8450
|
v.weekdays.map((L, E) => /* @__PURE__ */ e("div", { className: "select-datepicker__weekday", children: L }, E)),
|
|
8446
8451
|
y.map((L) => {
|
|
8447
|
-
const E = L.getMonth() !== g.getMonth(), F = $(L), I = !!M.from && hn(L, M.from), D = !!M.to && hn(L, M.to), Z = I || D,
|
|
8452
|
+
const E = L.getMonth() !== g.getMonth(), F = $(L), I = !!M.from && hn(L, M.from), D = !!M.to && hn(L, M.to), Z = I || D, W = !!M.from && !!M.to && !hn(M.from, M.to), le = "select-datepicker__day" + (!!M.from && !!M.to && L > ot(M.from) && L < ot(M.to) ? " select-datepicker__day--in-range" : "") + (W && I ? " select-datepicker__day--range-start" : "") + (W && D ? " select-datepicker__day--range-end" : ""), q = "select-datepicker__daybtn" + (Z ? " is-selected" : "") + (hn(L, _) && !Z ? " is-today" : "") + (E ? " is-outside" : "");
|
|
8448
8453
|
return /* @__PURE__ */ e("div", { className: le, children: /* @__PURE__ */ e("button", { type: "button", className: q, disabled: F, onClick: () => C(L), children: L.getDate() }) }, L.getTime());
|
|
8449
8454
|
})
|
|
8450
8455
|
] }),
|
|
@@ -8463,7 +8468,7 @@ function ur(t, n) {
|
|
|
8463
8468
|
}
|
|
8464
8469
|
return Pn(t.start, t.end) ? Dn(t.start) : `${Dn(t.start)} – ${Dn(t.end)}`;
|
|
8465
8470
|
}
|
|
8466
|
-
function
|
|
8471
|
+
function Ii({
|
|
8467
8472
|
value: t,
|
|
8468
8473
|
onChange: n,
|
|
8469
8474
|
presets: l = ir,
|
|
@@ -8488,7 +8493,7 @@ function Fi({
|
|
|
8488
8493
|
size: a,
|
|
8489
8494
|
inline: !i,
|
|
8490
8495
|
disabled: r,
|
|
8491
|
-
icon: /* @__PURE__ */ e(
|
|
8496
|
+
icon: /* @__PURE__ */ e(Yl, {}),
|
|
8492
8497
|
trailingIcon: /* @__PURE__ */ e(je, {}),
|
|
8493
8498
|
onClick: () => d((h) => !h),
|
|
8494
8499
|
children: ur(t, l)
|
|
@@ -8521,7 +8526,7 @@ function pr({ size: t }) {
|
|
|
8521
8526
|
}
|
|
8522
8527
|
) });
|
|
8523
8528
|
}
|
|
8524
|
-
const
|
|
8529
|
+
const Ri = T(function({ value: n, max: l = 5, onChange: c, size: s = 20, label: a, disabled: r = !1, className: i, ...o }, d) {
|
|
8525
8530
|
const p = !!c && !r, [h, f] = P(null), v = h ?? n;
|
|
8526
8531
|
return /* @__PURE__ */ e("div", { ref: d, ...o, className: `select-rating${p ? " select-rating--interactive" : ""}${i ? " " + i : ""}`, role: p ? "slider" : "img", "aria-label": a ?? `Avaliação ${n} de ${l}`, "aria-valuenow": p ? n : void 0, "aria-valuemin": p ? 0 : void 0, "aria-valuemax": p ? l : void 0, onMouseLeave: () => p && f(null), children: Array.from({ length: l }, (_, x) => {
|
|
8527
8532
|
const M = x < v, S = /* @__PURE__ */ e("span", { className: `select-rating__star${M ? " is-filled" : ""}`, children: /* @__PURE__ */ e(pr, { size: s }) });
|
|
@@ -8540,7 +8545,7 @@ const Ii = T(function({ value: n, max: l = 5, onChange: c, size: s = 20, label:
|
|
|
8540
8545
|
x
|
|
8541
8546
|
) : /* @__PURE__ */ e("span", { children: S }, x);
|
|
8542
8547
|
}) });
|
|
8543
|
-
}),
|
|
8548
|
+
}), Ti = T(function({ label: n, value: l, onChange: c, min: s, max: a, step: r = 1, decimal: i = !1, disabled: o = !1, hint: d, error: p, onBlur: h, placeholder: f, size: v = "md", className: _, ...x }, M) {
|
|
8544
8549
|
const S = ve(), g = (E) => Math.min(a ?? 1 / 0, Math.max(s ?? -1 / 0, E)), m = (E) => Math.round(E * 1e6) / 1e6, N = l ?? 0, k = s != null && N <= s, w = a != null && N >= a, [y, $] = P(!1), [b, C] = P(""), A = i && y ? b : l == null ? "" : String(l), B = (E) => {
|
|
8545
8550
|
const F = i ? E.replace(/[^\d.,-]/g, "").replace(",", ".") : E.replace(/[^\d-]/g, "");
|
|
8546
8551
|
if (i && C(F), F === "" || F === "-" || F === ".") return c(null);
|
|
@@ -8600,7 +8605,7 @@ const Ii = T(function({ value: n, max: l = 5, onChange: c, size: s = 20, label:
|
|
|
8600
8605
|
p ? /* @__PURE__ */ e("p", { className: "select-field__error", children: p }) : d ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: d }) : null
|
|
8601
8606
|
] });
|
|
8602
8607
|
});
|
|
8603
|
-
function
|
|
8608
|
+
function Pi({
|
|
8604
8609
|
items: t,
|
|
8605
8610
|
onChange: n,
|
|
8606
8611
|
renderRow: l,
|
|
@@ -8631,19 +8636,19 @@ function Ti({
|
|
|
8631
8636
|
moveUp: () => S(N, -1),
|
|
8632
8637
|
moveDown: () => S(N, 1)
|
|
8633
8638
|
});
|
|
8634
|
-
return /* @__PURE__ */ u(
|
|
8639
|
+
return /* @__PURE__ */ u(Wn, { gap: "300", children: [
|
|
8635
8640
|
t.length === 0 && h != null && /* @__PURE__ */ e("div", { children: h }),
|
|
8636
8641
|
t.map((m, N) => {
|
|
8637
8642
|
const k = g(m, N);
|
|
8638
|
-
return p === "bare" ? /* @__PURE__ */ e("div", { children: l(m, k) }, N) : /* @__PURE__ */ e(Rs, { background: "surface", border: !0, borderRadius: "base", padding: "300", children: /* @__PURE__ */ u(
|
|
8643
|
+
return p === "bare" ? /* @__PURE__ */ e("div", { children: l(m, k) }, N) : /* @__PURE__ */ e(Rs, { background: "surface", border: !0, borderRadius: "base", padding: "300", children: /* @__PURE__ */ u(Wn, { gap: "200", children: [
|
|
8639
8644
|
/* @__PURE__ */ u(zt, { align: "space-between", blockAlign: "center", gap: "200", children: [
|
|
8640
8645
|
/* @__PURE__ */ e(kt, { as: "span", variant: "bodySm", fontWeight: "medium", tone: "subdued", children: a ? a(N, m) : `#${N + 1}` }),
|
|
8641
8646
|
/* @__PURE__ */ u(zt, { gap: "100", blockAlign: "center", wrap: !1, children: [
|
|
8642
8647
|
d && /* @__PURE__ */ u(he, { children: [
|
|
8643
|
-
/* @__PURE__ */ e(He, { size: "sm", icon: /* @__PURE__ */ e(
|
|
8648
|
+
/* @__PURE__ */ e(He, { size: "sm", icon: /* @__PURE__ */ e(Kl, {}), label: "Mover para cima", disabled: k.isFirst, onClick: k.moveUp }),
|
|
8644
8649
|
/* @__PURE__ */ e(He, { size: "sm", icon: /* @__PURE__ */ e(je, {}), label: "Mover para baixo", disabled: k.isLast, onClick: k.moveDown })
|
|
8645
8650
|
] }),
|
|
8646
|
-
/* @__PURE__ */ e(He, { size: "sm", icon: /* @__PURE__ */ e(
|
|
8651
|
+
/* @__PURE__ */ e(He, { size: "sm", icon: /* @__PURE__ */ e(ql, {}), label: "Remover", disabled: !_, onClick: k.remove })
|
|
8647
8652
|
] })
|
|
8648
8653
|
] }),
|
|
8649
8654
|
l(m, k)
|
|
@@ -8655,7 +8660,7 @@ function Ti({
|
|
|
8655
8660
|
] })
|
|
8656
8661
|
] });
|
|
8657
8662
|
}
|
|
8658
|
-
function
|
|
8663
|
+
function Di({
|
|
8659
8664
|
title: t,
|
|
8660
8665
|
subtitle: n,
|
|
8661
8666
|
backTo: l,
|
|
@@ -8668,7 +8673,7 @@ function Pi({
|
|
|
8668
8673
|
preview: d,
|
|
8669
8674
|
children: p
|
|
8670
8675
|
}) {
|
|
8671
|
-
const h =
|
|
8676
|
+
const h = jl();
|
|
8672
8677
|
return /* @__PURE__ */ e(
|
|
8673
8678
|
ra,
|
|
8674
8679
|
{
|
|
@@ -8677,7 +8682,7 @@ function Pi({
|
|
|
8677
8682
|
backAction: { content: "Voltar", onAction: () => h(l || -1) },
|
|
8678
8683
|
primaryAction: { content: a, onAction: c, loading: s, disabled: r },
|
|
8679
8684
|
secondaryActions: i ? [{ content: "Cancelar", onAction: () => h(i), disabled: s }] : void 0,
|
|
8680
|
-
children: /* @__PURE__ */ u(
|
|
8685
|
+
children: /* @__PURE__ */ u(Wn, { gap: "400", children: [
|
|
8681
8686
|
o != null && /* @__PURE__ */ e(Tt, { tone: "critical", children: o }),
|
|
8682
8687
|
d != null ? /* @__PURE__ */ u("div", { className: "select-builder-split", children: [
|
|
8683
8688
|
/* @__PURE__ */ e("div", { className: "select-builder-split__form", children: p }),
|
|
@@ -8687,7 +8692,7 @@ function Pi({
|
|
|
8687
8692
|
}
|
|
8688
8693
|
);
|
|
8689
8694
|
}
|
|
8690
|
-
function
|
|
8695
|
+
function Wi({
|
|
8691
8696
|
title: t,
|
|
8692
8697
|
subtitle: n,
|
|
8693
8698
|
backTo: l,
|
|
@@ -8707,9 +8712,9 @@ function Di({
|
|
|
8707
8712
|
dirtyLabel: M = "Alterações não salvas"
|
|
8708
8713
|
}) {
|
|
8709
8714
|
var A;
|
|
8710
|
-
const S =
|
|
8715
|
+
const S = jl(), [g, m] = P(((A = d[0]) == null ? void 0 : A.id) ?? ""), [N, k] = P(""), w = p ?? g, y = d.find((B) => B.id === w) ?? d[0], $ = (B) => {
|
|
8711
8716
|
p === void 0 && m(B), h == null || h(B);
|
|
8712
|
-
}, b = N.trim().toLowerCase(), C =
|
|
8717
|
+
}, b = N.trim().toLowerCase(), C = Oe(() => {
|
|
8713
8718
|
const B = b ? d.filter(
|
|
8714
8719
|
(E) => (E.title + " " + (E.keywords ?? "") + " " + (E.group ?? "")).toLowerCase().includes(b)
|
|
8715
8720
|
) : d, L = [];
|
|
@@ -8798,7 +8803,7 @@ const Oi = T(function({ label: n, checked: l, onChange: c, disabled: s = !1, hin
|
|
|
8798
8803
|
a != null && /* @__PURE__ */ e("span", { className: "select-switchfield__hint", children: a })
|
|
8799
8804
|
] });
|
|
8800
8805
|
}), mr = (t) => /^#[0-9a-fA-F]{6}$/.test(t);
|
|
8801
|
-
function
|
|
8806
|
+
function Hi({ label: t, value: n, onChange: l, disabled: c = !1, hint: s, error: a }) {
|
|
8802
8807
|
return /* @__PURE__ */ e(
|
|
8803
8808
|
pt,
|
|
8804
8809
|
{
|
|
@@ -8835,7 +8840,7 @@ function fr(t) {
|
|
|
8835
8840
|
c.onload = () => n(String(c.result)), c.onerror = () => l(c.error), c.readAsDataURL(t);
|
|
8836
8841
|
});
|
|
8837
8842
|
}
|
|
8838
|
-
const
|
|
8843
|
+
const ji = T(function({ label: n, value: l, onChange: c, accept: s = "image/*", maxSizeMB: a = 3, urlPlaceholder: r, hint: i, uploadFile: o, className: d, ...p }, h) {
|
|
8839
8844
|
const [f, v] = P([]), [_, x] = P(null), M = l ? [l] : [], S = async (g) => {
|
|
8840
8845
|
const m = g[0];
|
|
8841
8846
|
if (!m) {
|
|
@@ -8873,7 +8878,7 @@ const Hi = T(function({ label: n, value: l, onChange: c, accept: s = "image/*",
|
|
|
8873
8878
|
),
|
|
8874
8879
|
_ && /* @__PURE__ */ e("span", { className: "select-imagefield__error", children: _ })
|
|
8875
8880
|
] });
|
|
8876
|
-
}),
|
|
8881
|
+
}), Zi = T(function({ items: n, multiple: l = !1, defaultOpenIds: c = [], className: s, ...a }, r) {
|
|
8877
8882
|
const [i, o] = P(() => new Set(c)), d = (p) => o((h) => {
|
|
8878
8883
|
const f = h.has(p), v = new Set(l ? h : []);
|
|
8879
8884
|
return f ? v.delete(p) : v.add(p), v;
|
|
@@ -8916,11 +8921,11 @@ export {
|
|
|
8916
8921
|
Un as ArrowLeftIcon,
|
|
8917
8922
|
Vr as ArrowRightIcon,
|
|
8918
8923
|
Ur as AtIcon,
|
|
8919
|
-
|
|
8924
|
+
Wr as AuthAppIcon,
|
|
8920
8925
|
Tr as BellIcon,
|
|
8921
8926
|
Ar as BookmarkIcon,
|
|
8922
8927
|
qr as BuildingIcon,
|
|
8923
|
-
|
|
8928
|
+
Yl as CalendarIcon,
|
|
8924
8929
|
oo as CartIcon,
|
|
8925
8930
|
co as ChartLineIcon,
|
|
8926
8931
|
cs as CheckCircleIcon,
|
|
@@ -8928,7 +8933,7 @@ export {
|
|
|
8928
8933
|
je as ChevronDownIcon,
|
|
8929
8934
|
Gn as ChevronLeftIcon,
|
|
8930
8935
|
Jt as ChevronRightIcon,
|
|
8931
|
-
|
|
8936
|
+
Kl as ChevronUpIcon,
|
|
8932
8937
|
as as ClipboardIcon,
|
|
8933
8938
|
Lr as ClockIcon,
|
|
8934
8939
|
$t as CloseIcon,
|
|
@@ -8940,8 +8945,8 @@ export {
|
|
|
8940
8945
|
Qr as EditIcon,
|
|
8941
8946
|
no as ExportIcon,
|
|
8942
8947
|
Yn as ExternalLinkIcon,
|
|
8943
|
-
|
|
8944
|
-
|
|
8948
|
+
Ul as EyeIcon,
|
|
8949
|
+
zl as EyeOffIcon,
|
|
8945
8950
|
Hr as FacebookIcon,
|
|
8946
8951
|
Sr as FilterIcon,
|
|
8947
8952
|
$r as GithubIcon,
|
|
@@ -8952,11 +8957,11 @@ export {
|
|
|
8952
8957
|
Mn as InfoIcon,
|
|
8953
8958
|
Yr as KeyIcon,
|
|
8954
8959
|
to as LockIcon,
|
|
8955
|
-
|
|
8960
|
+
Or as MailIcon,
|
|
8956
8961
|
io as MenuIcon,
|
|
8957
8962
|
ro as MinusCircleIcon,
|
|
8958
|
-
|
|
8959
|
-
|
|
8963
|
+
Gl as MobileIcon,
|
|
8964
|
+
Vl as MonitorIcon,
|
|
8960
8965
|
ns as MoonIcon,
|
|
8961
8966
|
rs as NoteIcon,
|
|
8962
8967
|
Zr as PasskeyIcon,
|
|
@@ -8967,15 +8972,16 @@ export {
|
|
|
8967
8972
|
Pr as RocketIcon,
|
|
8968
8973
|
Ts as SELECT_CARD_BRANDS,
|
|
8969
8974
|
d1 as SELECT_COL_DATETIME,
|
|
8970
|
-
|
|
8975
|
+
h1 as SELECT_COL_ID,
|
|
8976
|
+
oc as SELECT_COUNTRIES,
|
|
8971
8977
|
ir as SELECT_DAILY_PRESETS,
|
|
8972
8978
|
rr as SELECT_DATE_PRESETS,
|
|
8973
8979
|
wt as SELECT_SPACE,
|
|
8974
8980
|
Bs as SELECT_TRANSACTION_STATUS,
|
|
8975
8981
|
zn as SearchIcon,
|
|
8976
|
-
|
|
8982
|
+
Zi as SelectAccordion,
|
|
8977
8983
|
l1 as SelectActionCard,
|
|
8978
|
-
|
|
8984
|
+
dc as SelectActionList,
|
|
8979
8985
|
So as SelectActionMenu,
|
|
8980
8986
|
us as SelectAddButton,
|
|
8981
8987
|
Ca as SelectAddCard,
|
|
@@ -8984,86 +8990,86 @@ export {
|
|
|
8984
8990
|
Mr as SelectAuthFx,
|
|
8985
8991
|
ca as SelectAvatar,
|
|
8986
8992
|
Po as SelectBackLink,
|
|
8987
|
-
|
|
8988
|
-
|
|
8993
|
+
ic as SelectBadge,
|
|
8994
|
+
$1 as SelectBalanceCard,
|
|
8989
8995
|
bo as SelectBankAccountField,
|
|
8990
|
-
|
|
8996
|
+
E1 as SelectBarChart,
|
|
8991
8997
|
Rs as SelectBox,
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8998
|
+
K1 as SelectBoxPlot,
|
|
8999
|
+
Di as SelectBuilderLayout,
|
|
9000
|
+
Wi as SelectBuilderWorkspace,
|
|
9001
|
+
V1 as SelectBullet,
|
|
9002
|
+
fi as SelectBump,
|
|
8997
9003
|
Re as SelectButton,
|
|
8998
|
-
|
|
8999
|
-
|
|
9004
|
+
J1 as SelectCalendarHeatmap,
|
|
9005
|
+
Y1 as SelectCandlestick,
|
|
9000
9006
|
wr as SelectCard,
|
|
9001
|
-
|
|
9002
|
-
|
|
9007
|
+
m1 as SelectCardGrid,
|
|
9008
|
+
L1 as SelectChartCard,
|
|
9003
9009
|
uo as SelectCheckbox,
|
|
9004
|
-
|
|
9005
|
-
|
|
9010
|
+
ri as SelectChord,
|
|
9011
|
+
xi as SelectCirclePack,
|
|
9006
9012
|
n1 as SelectCollapsible,
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9013
|
+
Hi as SelectColorField,
|
|
9014
|
+
T1 as SelectColumnChart,
|
|
9015
|
+
I1 as SelectComboChart,
|
|
9010
9016
|
gs as SelectCombobox,
|
|
9011
9017
|
o1 as SelectConfirmModal,
|
|
9012
9018
|
e1 as SelectCopyRow,
|
|
9013
9019
|
t1 as SelectCopyableId,
|
|
9014
9020
|
s1 as SelectCreateTile,
|
|
9015
|
-
|
|
9021
|
+
p1 as SelectDataTable,
|
|
9016
9022
|
Ia as SelectDateField,
|
|
9017
9023
|
hr as SelectDatePicker,
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9024
|
+
Ii as SelectDateRangeField,
|
|
9025
|
+
wi as SelectDetailList,
|
|
9026
|
+
ki as SelectDetailRow,
|
|
9027
|
+
Ws as SelectDisclosureButton,
|
|
9022
9028
|
Bo as SelectDivider,
|
|
9023
9029
|
_o as SelectDocumentField,
|
|
9024
|
-
|
|
9030
|
+
R1 as SelectDonut,
|
|
9025
9031
|
yr as SelectDotField,
|
|
9026
|
-
|
|
9027
|
-
|
|
9032
|
+
ti as SelectDumbbell,
|
|
9033
|
+
S1 as SelectFeeBreakdown,
|
|
9028
9034
|
pt as SelectField,
|
|
9029
9035
|
bs as SelectFieldGrid,
|
|
9030
9036
|
vo as SelectFileDropzone,
|
|
9031
9037
|
_n as SelectFileTile,
|
|
9032
|
-
|
|
9038
|
+
g1 as SelectFilterBar,
|
|
9033
9039
|
Qo as SelectFilterChip,
|
|
9034
|
-
|
|
9040
|
+
Oo as SelectFormLayout,
|
|
9035
9041
|
i1 as SelectFormModal,
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9042
|
+
P1 as SelectFunnel,
|
|
9043
|
+
D1 as SelectGauge,
|
|
9044
|
+
li as SelectGaugeBands,
|
|
9045
|
+
di as SelectGlobe,
|
|
9040
9046
|
Co as SelectGrid,
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9047
|
+
W1 as SelectHeatmap,
|
|
9048
|
+
oi as SelectHexbin,
|
|
9049
|
+
k1 as SelectHideMoneyToggle,
|
|
9050
|
+
j1 as SelectHorizontalBar,
|
|
9051
|
+
vi as SelectIcicle,
|
|
9046
9052
|
ma as SelectIcon,
|
|
9047
9053
|
He as SelectIconButton,
|
|
9048
9054
|
Ro as SelectIdentityFooter,
|
|
9049
|
-
|
|
9055
|
+
ji as SelectImageField,
|
|
9050
9056
|
ps as SelectImageUploadField,
|
|
9051
9057
|
go as SelectImageUrlsField,
|
|
9052
9058
|
cr as SelectImageZoomModal,
|
|
9053
9059
|
ft as SelectInfoTip,
|
|
9054
9060
|
zt as SelectInline,
|
|
9055
9061
|
Ao as SelectJsonViewer,
|
|
9056
|
-
|
|
9057
|
-
|
|
9062
|
+
Fi as SelectKeyValueEditor,
|
|
9063
|
+
C1 as SelectKpiCard,
|
|
9058
9064
|
Rt as SelectLabelRow,
|
|
9059
|
-
|
|
9060
|
-
|
|
9065
|
+
_1 as SelectLayoutThumb,
|
|
9066
|
+
B1 as SelectLineChart,
|
|
9061
9067
|
la as SelectLinkButton,
|
|
9062
|
-
|
|
9063
|
-
|
|
9068
|
+
Ci as SelectListCard,
|
|
9069
|
+
Li as SelectListRow,
|
|
9064
9070
|
aa as SelectLoader,
|
|
9065
|
-
|
|
9066
|
-
|
|
9071
|
+
ni as SelectMarimekko,
|
|
9072
|
+
Ei as SelectMediaCell,
|
|
9067
9073
|
ya as SelectMenu,
|
|
9068
9074
|
Ma as SelectMenuButton,
|
|
9069
9075
|
Jo as SelectMenuDivider,
|
|
@@ -9074,89 +9080,89 @@ export {
|
|
|
9074
9080
|
$n as SelectModal,
|
|
9075
9081
|
qt as SelectMoney,
|
|
9076
9082
|
fo as SelectMoneyField,
|
|
9077
|
-
|
|
9083
|
+
yi as SelectNetwork,
|
|
9078
9084
|
jo as SelectNote,
|
|
9079
|
-
|
|
9080
|
-
|
|
9085
|
+
Ti as SelectNumberField,
|
|
9086
|
+
Bi as SelectOfflineModal,
|
|
9081
9087
|
Fo as SelectOptionList,
|
|
9082
9088
|
Io as SelectOptionRow,
|
|
9083
9089
|
To as SelectOtpInput,
|
|
9084
9090
|
ra as SelectPage,
|
|
9085
9091
|
ga as SelectPagination,
|
|
9086
9092
|
Go as SelectPanel,
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9093
|
+
_i as SelectParallel,
|
|
9094
|
+
ui as SelectPareto,
|
|
9095
|
+
Wo as SelectPasswordStrength,
|
|
9090
9096
|
Lo as SelectPaymentBrand,
|
|
9091
9097
|
Mo as SelectPhoneField,
|
|
9092
|
-
|
|
9093
|
-
|
|
9098
|
+
Si as SelectPlanCard,
|
|
9099
|
+
Q1 as SelectPolarArea,
|
|
9094
9100
|
dt as SelectPopover,
|
|
9095
|
-
|
|
9101
|
+
M1 as SelectPreviewFrame,
|
|
9096
9102
|
O1 as SelectProgressList,
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9103
|
+
mi as SelectPyramid,
|
|
9104
|
+
z1 as SelectRadar,
|
|
9105
|
+
H1 as SelectRadialBar,
|
|
9100
9106
|
wo as SelectRadioGroup,
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9107
|
+
X1 as SelectRangeBar,
|
|
9108
|
+
Ri as SelectRating,
|
|
9109
|
+
f1 as SelectRecordCard,
|
|
9110
|
+
Pi as SelectRepeatingFieldArray,
|
|
9105
9111
|
Do as SelectResendButton,
|
|
9106
9112
|
r1 as SelectRowActions,
|
|
9107
|
-
|
|
9108
|
-
|
|
9113
|
+
q1 as SelectSankey,
|
|
9114
|
+
U1 as SelectScatter,
|
|
9109
9115
|
tl as SelectSearchInput,
|
|
9110
9116
|
Uo as SelectSection,
|
|
9111
9117
|
ko as SelectSegmented,
|
|
9112
|
-
|
|
9118
|
+
cc as SelectSelect,
|
|
9113
9119
|
qa as SelectSensitiveValue,
|
|
9114
9120
|
Zo as SelectSettingList,
|
|
9115
9121
|
Vo as SelectSettingRow,
|
|
9116
9122
|
qo as SelectSideNav,
|
|
9117
9123
|
Ho as SelectSkeleton,
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9124
|
+
ei as SelectSlope,
|
|
9125
|
+
A1 as SelectSparkline,
|
|
9126
|
+
v1 as SelectSplitChain,
|
|
9127
|
+
Wn as SelectStack,
|
|
9128
|
+
F1 as SelectStackedArea,
|
|
9123
9129
|
$o as SelectStatusBadge,
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9130
|
+
$i as SelectSteps,
|
|
9131
|
+
ci as SelectStreamGraph,
|
|
9132
|
+
si as SelectSunburst,
|
|
9133
|
+
x1 as SelectSurface,
|
|
9128
9134
|
Jn as SelectSwitch,
|
|
9129
9135
|
Oi as SelectSwitchField,
|
|
9130
9136
|
xa as SelectTable,
|
|
9131
|
-
|
|
9137
|
+
xl as SelectTableCell,
|
|
9132
9138
|
yc as SelectTableEmpty,
|
|
9133
|
-
|
|
9139
|
+
bl as SelectTableRow,
|
|
9134
9140
|
zo as SelectTabs,
|
|
9135
|
-
|
|
9141
|
+
b1 as SelectTagSelect,
|
|
9136
9142
|
kt as SelectText,
|
|
9137
9143
|
po as SelectTextarea,
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9144
|
+
Mi as SelectThemeSwitcher,
|
|
9145
|
+
Dl as SelectThumbnail,
|
|
9146
|
+
hi as SelectTicker,
|
|
9141
9147
|
Eo as SelectTimeline,
|
|
9142
|
-
|
|
9148
|
+
y1 as SelectToastProvider,
|
|
9143
9149
|
xo as SelectToggleList,
|
|
9144
9150
|
No as SelectTogglePanel,
|
|
9145
9151
|
yo as SelectToggleRow,
|
|
9146
9152
|
Kn as SelectTooltip,
|
|
9147
|
-
|
|
9148
|
-
|
|
9153
|
+
gi as SelectTree,
|
|
9154
|
+
G1 as SelectTreemap,
|
|
9149
9155
|
mo as SelectUnitInput,
|
|
9150
9156
|
Yo as SelectUserCell,
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
+
w1 as SelectValueVisibilityProvider,
|
|
9158
|
+
bi as SelectVenn,
|
|
9159
|
+
ai as SelectViolin,
|
|
9160
|
+
pi as SelectWaffle,
|
|
9161
|
+
Z1 as SelectWaterfall,
|
|
9162
|
+
ii as SelectWordCloud,
|
|
9157
9163
|
a1 as SelectWorkspaceSwitcher,
|
|
9158
|
-
|
|
9159
|
-
|
|
9164
|
+
Ai as SelectZoomThumbnail,
|
|
9165
|
+
Zl as SelectorIcon,
|
|
9160
9166
|
eo as SendIcon,
|
|
9161
9167
|
Kc as Setting4Icon,
|
|
9162
9168
|
ss as SettingsIcon,
|
|
@@ -9167,7 +9173,7 @@ export {
|
|
|
9167
9173
|
ho as StorefrontIcon,
|
|
9168
9174
|
ts as SunIcon,
|
|
9169
9175
|
Qc as TerminalIcon,
|
|
9170
|
-
|
|
9176
|
+
ql as TrashIcon,
|
|
9171
9177
|
fn as UploadIcon,
|
|
9172
9178
|
Rr as UserIcon,
|
|
9173
9179
|
Xr as WalletIcon,
|
|
@@ -9176,11 +9182,11 @@ export {
|
|
|
9176
9182
|
Qt as detectSelectTheme,
|
|
9177
9183
|
Es as dialCodeOf,
|
|
9178
9184
|
sa as passwordScore,
|
|
9179
|
-
|
|
9180
|
-
|
|
9185
|
+
Ni as resolveSelectTheme,
|
|
9186
|
+
hc as selectCardBrand,
|
|
9181
9187
|
Ps as selectCardBrandLabel,
|
|
9182
|
-
|
|
9183
|
-
|
|
9188
|
+
u1 as useSelectPageSize,
|
|
9189
|
+
N1 as useSelectToast,
|
|
9184
9190
|
$c as useSelectValueVisibility
|
|
9185
9191
|
};
|
|
9186
9192
|
//# sourceMappingURL=index.js.map
|