@selectwin/kit 0.1.78 → 0.1.79
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 +327 -324
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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
|
|
5
|
+
import { Link as Ol, useNavigate as Hl } from "react-router-dom";
|
|
6
6
|
const cl = (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+)/);
|
|
@@ -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;
|
|
@@ -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) {
|
|
@@ -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
|
}
|
|
@@ -906,13 +906,13 @@ function St() {
|
|
|
906
906
|
function Dr({ duotone: t = !1 } = {}) {
|
|
907
907
|
return /* @__PURE__ */ e(Vl, { 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" })
|
|
@@ -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),
|
|
@@ -1298,7 +1298,7 @@ const ft = T(function({ content: n, title: l, label: c = "Mais informações", p
|
|
|
1298
1298
|
children: le ? /* @__PURE__ */ e(Ul, {}) : /* @__PURE__ */ e(Gl, {})
|
|
1299
1299
|
}
|
|
1300
1300
|
),
|
|
1301
|
-
|
|
1301
|
+
O && /* @__PURE__ */ u("span", { className: "select-stepper", children: [
|
|
1302
1302
|
/* @__PURE__ */ e(
|
|
1303
1303
|
"button",
|
|
1304
1304
|
{
|
|
@@ -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) => Ql(C) ? URL.createObjectURL(C) : null), [n]);
|
|
1574
1574
|
ue(
|
|
1575
1575
|
() => () => {
|
|
1576
1576
|
S.forEach((C) => {
|
|
@@ -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) => Ql(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 && Jl(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 (!tc.test(
|
|
1729
|
+
const O = y.trim();
|
|
1730
|
+
if (O) {
|
|
1731
|
+
if (!tc.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: ec(
|
|
1768
|
-
name:
|
|
1769
|
-
sub: Xl(
|
|
1767
|
+
docExt: ec(O.name),
|
|
1768
|
+
name: O.name,
|
|
1769
|
+
sub: Xl(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: nc(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
|
)
|
|
@@ -1884,7 +1884,7 @@ function wn(t = {}) {
|
|
|
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,
|
|
@@ -1897,7 +1897,7 @@ function wn(t = {}) {
|
|
|
1897
1897
|
};
|
|
1898
1898
|
if (!h || !sc())
|
|
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)
|
|
@@ -1933,7 +1933,7 @@ function ms(t) {
|
|
|
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,
|
|
@@ -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;
|
|
@@ -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,
|
|
@@ -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,10 +2821,10 @@ function Os({
|
|
|
2821
2821
|
}
|
|
2822
2822
|
);
|
|
2823
2823
|
}
|
|
2824
|
-
const
|
|
2824
|
+
const Os = 3e3, On = "", hc = (t, n) => t === "" ? n : t + On + n;
|
|
2825
2825
|
function ul(t) {
|
|
2826
|
-
const n = t.split(
|
|
2827
|
-
for (let c = 1; c < n.length; c++) l.push(n.slice(0, c).join(
|
|
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;
|
|
@@ -2882,7 +2882,7 @@ function mc(t) {
|
|
|
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;
|
|
@@ -3061,19 +3061,19 @@ function _c({
|
|
|
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 =
|
|
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
3069
|
() => typeof n == "string" && w === n ? n : mc(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, {}) }),
|
|
@@ -3299,7 +3299,7 @@ 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
|
|
3302
|
+
const Wo = T(function({ value: n, className: l, ...c }, s) {
|
|
3303
3303
|
const a = sa(n), r = _l[a] ?? _l[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)) }),
|
|
@@ -3370,7 +3370,7 @@ 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
|
|
3373
|
+
const Oo = Object.assign(oa, { Group: ia });
|
|
3374
3374
|
function vl({ 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
|
}
|
|
@@ -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 } = gc({ 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 ??
|
|
3772
|
+
const _ = Rc.count(l) === 0, x = _ && !!c, { hasFilters: M, hasTitleRow: S } = gc({ 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: [
|
|
@@ -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(Ol, { 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",
|
|
@@ -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;
|
|
@@ -4167,7 +4167,7 @@ function xl(t) {
|
|
|
4167
4167
|
return t.hideable ?? !!t.title;
|
|
4168
4168
|
}
|
|
4169
4169
|
const yl = "select-datatable:page-size:";
|
|
4170
|
-
function
|
|
4170
|
+
function u1(t, n, l) {
|
|
4171
4171
|
const [c, s] = P(() => {
|
|
4172
4172
|
try {
|
|
4173
4173
|
const r = Number(localStorage.getItem(yl + t));
|
|
@@ -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(xl), m = g.length > 0 && g.every((I) => S.has(I.key)), N = (I) => !m && S.has(I.key) && xl(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(gl, { children: k.map((Z,
|
|
4281
|
+
children: c ? Array.from({ length: 5 }, (I, D) => /* @__PURE__ */ e(gl, { children: k.map((Z, W) => /* @__PURE__ */ e(bl, { align: Z.align, width: Z.width, children: /* @__PURE__ */ e("span", { className: "select-skeleton select-datatable__skel" }) }, W)) }, `skeleton-${D}`)) : B.map((I) => /* @__PURE__ */ e(gl, { onClick: r ? () => r(I) : void 0, children: k.map((D, Z) => /* @__PURE__ */ e(bl, { 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,
|
|
@@ -4324,7 +4326,7 @@ function p1({
|
|
|
4324
4326
|
r && /* @__PURE__ */ e(xc, { pagination: r })
|
|
4325
4327
|
] });
|
|
4326
4328
|
}
|
|
4327
|
-
const
|
|
4329
|
+
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
4330
|
const _ = i != null || o != null;
|
|
4329
4331
|
return /* @__PURE__ */ u("div", { ref: v, ...f, className: `select-rcard${d ? " select-rcard--link" : ""}${h ? " " + h : ""}`, children: [
|
|
4330
4332
|
p && /* @__PURE__ */ e("span", { className: "select-rcard__accent", "aria-hidden": "true" }),
|
|
@@ -4332,7 +4334,7 @@ const m1 = T(function({ media: n, title: l, subtitle: c, actions: s, body: a, ta
|
|
|
4332
4334
|
/* @__PURE__ */ u("div", { className: "select-rcard__head", children: [
|
|
4333
4335
|
n && /* @__PURE__ */ e("span", { className: "select-rcard__media", children: n }),
|
|
4334
4336
|
/* @__PURE__ */ u("span", { className: "select-rcard__ident", children: [
|
|
4335
|
-
/* @__PURE__ */ e("span", { className: "select-rcard__title", children: d ? /* @__PURE__ */ e(
|
|
4337
|
+
/* @__PURE__ */ e("span", { className: "select-rcard__title", children: d ? /* @__PURE__ */ e(Ol, { to: d, className: "select-rcard__link", children: l }) : l }),
|
|
4336
4338
|
c && /* @__PURE__ */ e("span", { className: "select-rcard__sub", children: c })
|
|
4337
4339
|
] }),
|
|
4338
4340
|
s && /* @__PURE__ */ e("span", { className: "select-rcard__actions", children: s })
|
|
@@ -4348,7 +4350,7 @@ const m1 = T(function({ media: n, title: l, subtitle: c, actions: s, body: a, ta
|
|
|
4348
4350
|
o && /* @__PURE__ */ e("span", { className: "select-rcard__meta", children: o })
|
|
4349
4351
|
] })
|
|
4350
4352
|
] });
|
|
4351
|
-
}),
|
|
4353
|
+
}), _1 = T(function({ kind: n, className: l, ...c }, s) {
|
|
4352
4354
|
return /* @__PURE__ */ u("span", { ref: s, ...c, className: `select-rcard__thumb${l ? " " + l : ""}`, "aria-hidden": "true", children: [
|
|
4353
4355
|
/* @__PURE__ */ e("span", { className: "select-rcard__thumbline select-rcard__thumbline--accent" }),
|
|
4354
4356
|
n === "steps" ? /* @__PURE__ */ u(he, { children: [
|
|
@@ -4372,7 +4374,7 @@ function Nl({ node: t, origin: n = !1 }) {
|
|
|
4372
4374
|
t.share != null && /* @__PURE__ */ e("span", { className: "select-chain__share", children: t.share })
|
|
4373
4375
|
] });
|
|
4374
4376
|
}
|
|
4375
|
-
const
|
|
4377
|
+
const v1 = T(function({ nodes: n, origin: l, max: c = 3, className: s, ...a }, r) {
|
|
4376
4378
|
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
4379
|
l && d.push(/* @__PURE__ */ e(Nl, { node: l, origin: !0 }, "__origin"));
|
|
4378
4380
|
for (const h of i)
|
|
@@ -4410,14 +4412,14 @@ function Fa(t, n) {
|
|
|
4410
4412
|
return n ? `${l} ${it(t.getHours())}:${it(t.getMinutes())}` : l;
|
|
4411
4413
|
}
|
|
4412
4414
|
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(
|
|
4415
|
+
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 = Ml(an(w), -an(w).getDay()), B = Array.from({ length: 42 }, (W, j) => Ml(A, j)), L = Ut(/* @__PURE__ */ new Date()), E = () => {
|
|
4416
|
+
i || (y(an(k ?? /* @__PURE__ */ new Date())), N((W) => !W));
|
|
4417
|
+
}, F = (W) => {
|
|
4418
|
+
if (C(W)) return;
|
|
4419
|
+
const j = new Date(W);
|
|
4418
4420
|
s && j.setHours((k == null ? void 0 : k.getHours()) ?? 0, (k == null ? void 0 : k.getMinutes()) ?? 0, 0, 0), c($l(j, s)), s || N(!1);
|
|
4419
|
-
}, I = (
|
|
4420
|
-
const [j = "", le = ""] =
|
|
4421
|
+
}, I = (W) => {
|
|
4422
|
+
const [j = "", le = ""] = W.split(":"), q = Number(j), oe = Number(le), ae = new Date(k ?? L);
|
|
4421
4423
|
ae.setHours(Number.isFinite(q) ? q : 0, Number.isFinite(oe) ? oe : 0, 0, 0), c($l(ae, !0));
|
|
4422
4424
|
}, D = () => {
|
|
4423
4425
|
c(""), N(!1);
|
|
@@ -4442,19 +4444,19 @@ const Ia = T(function({ label: n, value: l, onChange: c, showTime: s = !1, place
|
|
|
4442
4444
|
n && /* @__PURE__ */ e(Rt, { htmlFor: g, label: r ? `${n} *` : n }),
|
|
4443
4445
|
/* @__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
4446
|
/* @__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((
|
|
4447
|
+
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Mês anterior", onClick: () => y((W) => wl(W, -1)), children: /* @__PURE__ */ e(Gn, {}) }),
|
|
4446
4448
|
/* @__PURE__ */ u("span", { className: "select-datepicker__monthlabel", children: [
|
|
4447
4449
|
Ea[w.getMonth()],
|
|
4448
4450
|
" ",
|
|
4449
4451
|
w.getFullYear()
|
|
4450
4452
|
] }),
|
|
4451
|
-
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Próximo mês", onClick: () => y((
|
|
4453
|
+
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Próximo mês", onClick: () => y((W) => wl(W, 1)), children: /* @__PURE__ */ e(Jt, {}) })
|
|
4452
4454
|
] }),
|
|
4453
4455
|
/* @__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(
|
|
4456
|
+
Aa.map((W) => /* @__PURE__ */ e("div", { className: "select-datepicker__weekday", children: W }, W)),
|
|
4457
|
+
B.map((W) => {
|
|
4458
|
+
const j = W.getMonth() !== w.getMonth(), le = !!k && kl(W, k), q = "select-datepicker__daybtn" + (le ? " is-selected" : "") + (kl(W, L) && !le ? " is-today" : "") + (j ? " is-outside" : "");
|
|
4459
|
+
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
4460
|
})
|
|
4459
4461
|
] }),
|
|
4460
4462
|
s && /* @__PURE__ */ u("div", { className: "select-datefield__time", children: [
|
|
@@ -4466,7 +4468,7 @@ const Ia = T(function({ label: n, value: l, onChange: c, showTime: s = !1, place
|
|
|
4466
4468
|
className: "select-input select-datefield__time-input",
|
|
4467
4469
|
"aria-label": "Horário",
|
|
4468
4470
|
value: k ? `${it(k.getHours())}:${it(k.getMinutes())}` : "",
|
|
4469
|
-
onChange: (
|
|
4471
|
+
onChange: (W) => I(W.target.value)
|
|
4470
4472
|
}
|
|
4471
4473
|
)
|
|
4472
4474
|
] }),
|
|
@@ -4570,7 +4572,7 @@ function Ra({
|
|
|
4570
4572
|
}
|
|
4571
4573
|
);
|
|
4572
4574
|
}
|
|
4573
|
-
const
|
|
4575
|
+
const g1 = T(function({ filters: n, values: l, onChange: c, onClearAll: s, search: a, disabled: r, className: i, ...o }, d) {
|
|
4574
4576
|
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
4577
|
h([]), v(null), s();
|
|
4576
4578
|
}, w = (y) => {
|
|
@@ -4681,7 +4683,7 @@ const v1 = T(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4681
4683
|
/* @__PURE__ */ e("button", { type: "button", className: "select-filterbar__clear", onClick: k, children: "Limpar tudo" })
|
|
4682
4684
|
] })
|
|
4683
4685
|
] });
|
|
4684
|
-
}),
|
|
4686
|
+
}), 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
4687
|
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
4688
|
return /* @__PURE__ */ u("div", { ref: v, ...f, className: `select-field${p === "sm" ? " select-field--sm" : ""}${h ? " " + h : ""}`, children: [
|
|
4687
4689
|
(n || i) && /* @__PURE__ */ e("div", { className: "select-field__labelrow", children: /* @__PURE__ */ u("span", { className: "select-field__labelwrap", children: [
|
|
@@ -4760,7 +4762,7 @@ const v1 = T(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4760
4762
|
),
|
|
4761
4763
|
o ? /* @__PURE__ */ e("p", { className: "select-field__error", children: o }) : r ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: r }) : null
|
|
4762
4764
|
] });
|
|
4763
|
-
}),
|
|
4765
|
+
}), x1 = T(function({ title: n, description: l, headerAction: c, footer: s, children: a, flush: r = !1, className: i, ...o }, d) {
|
|
4764
4766
|
return /* @__PURE__ */ u("div", { ref: d, ...o, className: `select-surface${i ? " " + i : ""}`, children: [
|
|
4765
4767
|
(n || l || c) && /* @__PURE__ */ u("div", { className: "select-surface__header", children: [
|
|
4766
4768
|
/* @__PURE__ */ u("div", { className: "select-surface__heading", children: [
|
|
@@ -4772,8 +4774,8 @@ const v1 = T(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4772
4774
|
/* @__PURE__ */ e("div", { className: `select-surface__body${r ? " select-surface__body--flush" : ""}`, children: a }),
|
|
4773
4775
|
s && /* @__PURE__ */ e("div", { className: "select-surface__footer", children: s })
|
|
4774
4776
|
] });
|
|
4775
|
-
}), Mc = Vn(null), Ta = 220, Pa = 4e3, Da = 8,
|
|
4776
|
-
function
|
|
4777
|
+
}), Mc = Vn(null), Ta = 220, Pa = 4e3, Da = 8, Wa = 0.04, Oa = 5;
|
|
4778
|
+
function y1({ children: t }) {
|
|
4777
4779
|
const [n, l] = P([]), c = K(0), s = K(/* @__PURE__ */ new Map()), a = nt((d) => {
|
|
4778
4780
|
l((p) => p.filter((h) => h.id !== d)), s.current.delete(d);
|
|
4779
4781
|
}, []), r = nt(
|
|
@@ -4795,7 +4797,7 @@ function x1({ children: t }) {
|
|
|
4795
4797
|
d.forEach((p) => clearTimeout(p)), d.clear();
|
|
4796
4798
|
};
|
|
4797
4799
|
}, []);
|
|
4798
|
-
const o =
|
|
4800
|
+
const o = Oe(
|
|
4799
4801
|
() => ({
|
|
4800
4802
|
show: i,
|
|
4801
4803
|
success: (d, p) => i(d, { variant: "success", duration: p }),
|
|
@@ -4808,8 +4810,8 @@ function x1({ children: t }) {
|
|
|
4808
4810
|
t,
|
|
4809
4811
|
n.length > 0 && yn(
|
|
4810
4812
|
/* @__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 *
|
|
4813
|
+
const h = n.length - 1 - p, f = d.exiting || h >= Oa, v = {
|
|
4814
|
+
transform: `translate(-50%, ${-h * Da}px) scale(${1 - h * Wa})`,
|
|
4813
4815
|
opacity: f ? 0 : 1,
|
|
4814
4816
|
zIndex: 1e3 - h,
|
|
4815
4817
|
pointerEvents: h === 0 && !d.exiting ? "auto" : "none"
|
|
@@ -4823,12 +4825,12 @@ function x1({ children: t }) {
|
|
|
4823
4825
|
)
|
|
4824
4826
|
] });
|
|
4825
4827
|
}
|
|
4826
|
-
function
|
|
4828
|
+
function N1() {
|
|
4827
4829
|
const t = Zn(Mc);
|
|
4828
4830
|
if (!t) throw new Error("useSelectToast must be used within a SelectToastProvider");
|
|
4829
4831
|
return t;
|
|
4830
4832
|
}
|
|
4831
|
-
const Ha = 390, ja = 1280,
|
|
4833
|
+
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
4834
|
const [x, M] = P(a), [S, g] = P(0), [m, N] = P(!0), k = K(null), [w, y] = P({ w: 0, h: 0 });
|
|
4833
4835
|
Ke(() => {
|
|
4834
4836
|
const B = k.current;
|
|
@@ -4942,7 +4944,7 @@ function Sl(t) {
|
|
|
4942
4944
|
} catch {
|
|
4943
4945
|
}
|
|
4944
4946
|
}
|
|
4945
|
-
function
|
|
4947
|
+
function w1({ children: t }) {
|
|
4946
4948
|
const [n, l] = P(za), c = nt((r) => {
|
|
4947
4949
|
l(r), Sl(r);
|
|
4948
4950
|
}, []), s = nt(() => {
|
|
@@ -4950,7 +4952,7 @@ function M1({ children: t }) {
|
|
|
4950
4952
|
const i = !r;
|
|
4951
4953
|
return Sl(i), i;
|
|
4952
4954
|
});
|
|
4953
|
-
}, []), a =
|
|
4955
|
+
}, []), a = Oe(() => ({ hidden: n, toggle: s, setHidden: c }), [n, s, c]);
|
|
4954
4956
|
return /* @__PURE__ */ e(kc.Provider, { value: a, children: t });
|
|
4955
4957
|
}
|
|
4956
4958
|
function $c() {
|
|
@@ -4987,7 +4989,7 @@ const Ya = new Intl.NumberFormat("pt-BR", {
|
|
|
4987
4989
|
c != null && /* @__PURE__ */ e("span", { className: "select-delta__caption", children: c })
|
|
4988
4990
|
] });
|
|
4989
4991
|
});
|
|
4990
|
-
function
|
|
4992
|
+
function k1() {
|
|
4991
4993
|
const { hidden: t, toggle: n } = $c();
|
|
4992
4994
|
return /* @__PURE__ */ e(
|
|
4993
4995
|
He,
|
|
@@ -5000,7 +5002,7 @@ function w1() {
|
|
|
5000
5002
|
}
|
|
5001
5003
|
);
|
|
5002
5004
|
}
|
|
5003
|
-
const
|
|
5005
|
+
const $1 = T(function({ availableCents: n, availableLabel: l = "Saldo disponível", delta: c, buckets: s = [], action: a, className: r, ...i }, o) {
|
|
5004
5006
|
return /* @__PURE__ */ u("div", { ref: o, ...i, className: `select-balance${r ? " " + r : ""}`, children: [
|
|
5005
5007
|
/* @__PURE__ */ u("div", { className: "select-balance__head", children: [
|
|
5006
5008
|
/* @__PURE__ */ e("h3", { className: "select-balance__title", children: l }),
|
|
@@ -5031,7 +5033,7 @@ const k1 = T(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
5031
5033
|
] }, d.label)) })
|
|
5032
5034
|
] })
|
|
5033
5035
|
] });
|
|
5034
|
-
}),
|
|
5036
|
+
}), S1 = T(function({ grossCents: n, fees: l, netCents: c, grossLabel: s = "Valor bruto", netLabel: a = "Valor líquido", className: r, ...i }, o) {
|
|
5035
5037
|
const d = c ?? n - l.reduce((p, h) => p + h.cents, 0);
|
|
5036
5038
|
return /* @__PURE__ */ u("div", { ref: o, ...i, className: `select-fees${r ? " " + r : ""}`, children: [
|
|
5037
5039
|
/* @__PURE__ */ u("div", { className: "select-fees__row", children: [
|
|
@@ -5051,7 +5053,7 @@ const k1 = T(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
5051
5053
|
/* @__PURE__ */ e("span", { className: "select-fees__netvalue", children: /* @__PURE__ */ e(qt, { cents: d }) })
|
|
5052
5054
|
] })
|
|
5053
5055
|
] });
|
|
5054
|
-
}),
|
|
5056
|
+
}), C1 = T(function({ label: n, value: l, caption: c, chart: s, help: a, tone: r, bare: i = !1, className: o, ...d }, p) {
|
|
5055
5057
|
return /* @__PURE__ */ u("div", { ref: p, ...d, className: `select-kpi${i ? " select-kpi--bare" : ""}${o ? " " + o : ""}`, children: [
|
|
5056
5058
|
/* @__PURE__ */ u("span", { className: `select-kpi__label${a != null ? " select-kpi__label--help" : ""}`, children: [
|
|
5057
5059
|
a != null ? /* @__PURE__ */ e("span", { className: "select-kpi__labeltext", children: n }) : n,
|
|
@@ -5061,7 +5063,7 @@ const k1 = T(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
5061
5063
|
s != null && /* @__PURE__ */ e("div", { className: "select-kpi__chart", children: s }),
|
|
5062
5064
|
c != null && /* @__PURE__ */ e("span", { className: "select-kpi__caption", children: c })
|
|
5063
5065
|
] });
|
|
5064
|
-
}),
|
|
5066
|
+
}), 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
5067
|
const x = i === "auto" ? void 0 : `${i / 16}rem`, M = i === "auto" ? "10rem" : `${i / 16}rem`;
|
|
5066
5068
|
return /* @__PURE__ */ u("div", { ref: _, ...v, className: `select-chartcard${f ? " " + f : ""}`, children: [
|
|
5067
5069
|
(n || c || l) && /* @__PURE__ */ u("div", { className: "select-chartcard__head", children: [
|
|
@@ -5199,7 +5201,7 @@ function te(t) {
|
|
|
5199
5201
|
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
5202
|
}
|
|
5201
5203
|
const lt = { top: 16, right: 22, bottom: 32, left: 48 };
|
|
5202
|
-
function
|
|
5204
|
+
function A1({ data: t, color: n, height: l = 40, className: c, ...s }) {
|
|
5203
5205
|
const { ref: a, width: r } = ge(l), i = n ?? U(0), o = ve(), d = 4;
|
|
5204
5206
|
let p = null;
|
|
5205
5207
|
if (r > 0 && t.length > 1) {
|
|
@@ -5259,7 +5261,7 @@ function se({ tip: t, className: n, ...l }) {
|
|
|
5259
5261
|
] }, o))
|
|
5260
5262
|
] });
|
|
5261
5263
|
}
|
|
5262
|
-
function
|
|
5264
|
+
function E1({ data: t, height: n = 240, color: l, format: c = te, className: s, ...a }) {
|
|
5263
5265
|
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
5266
|
return /* @__PURE__ */ u("div", { ...a, className: `select-chart-wrap${s ? " " + s : ""}`, ref: r, children: [
|
|
5265
5267
|
i > 0 && /* @__PURE__ */ u("svg", { width: i, height: n, className: "select-chart", children: [
|
|
@@ -5310,7 +5312,7 @@ function A1({ data: t, height: n = 240, color: l, format: c = te, className: s,
|
|
|
5310
5312
|
/* @__PURE__ */ e(se, { tip: o.tip })
|
|
5311
5313
|
] });
|
|
5312
5314
|
}
|
|
5313
|
-
function
|
|
5315
|
+
function B1({ series: t, labels: n, height: l = 240, format: c = te, area: s = !1, className: a, ...r }) {
|
|
5314
5316
|
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
5317
|
return /* @__PURE__ */ u("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
5316
5318
|
o > 0 && /* @__PURE__ */ u("svg", { width: o, height: l, className: "select-chart", children: [
|
|
@@ -5397,7 +5399,7 @@ function E1({ series: t, labels: n, height: l = 240, format: c = te, area: s = !
|
|
|
5397
5399
|
/* @__PURE__ */ e(se, { tip: d.tip })
|
|
5398
5400
|
] });
|
|
5399
5401
|
}
|
|
5400
|
-
function
|
|
5402
|
+
function F1({ series: t, labels: n, height: l = 240, format: c = te, className: s, ...a }) {
|
|
5401
5403
|
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
5404
|
(b) => b.data.map((C, A) => (v[A] = (v[A] ?? 0) + (C ?? 0), v[A]))
|
|
5403
5405
|
), 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 +5465,7 @@ function B1({ series: t, labels: n, height: l = 240, format: c = te, className:
|
|
|
5463
5465
|
/* @__PURE__ */ e(se, { tip: o.tip })
|
|
5464
5466
|
] });
|
|
5465
5467
|
}
|
|
5466
|
-
function
|
|
5468
|
+
function I1({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = te, formatLine: a = (o) => `${Math.round(o)}%`, className: r, ...i }) {
|
|
5467
5469
|
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
5470
|
return /* @__PURE__ */ u("div", { ...i, className: `select-chart-wrap${r ? " " + r : ""}`, ref: o, children: [
|
|
5469
5471
|
d > 0 && /* @__PURE__ */ u("svg", { width: d, height: c, className: "select-chart", children: [
|
|
@@ -5561,7 +5563,7 @@ function F1({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = te, f
|
|
|
5561
5563
|
/* @__PURE__ */ e(se, { tip: p.tip })
|
|
5562
5564
|
] });
|
|
5563
5565
|
}
|
|
5564
|
-
const
|
|
5566
|
+
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
5567
|
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
5568
|
let k = 0;
|
|
5567
5569
|
return /* @__PURE__ */ u("div", { ref: h, ...p, className: `select-donut-wrap${d ? " " + d : ""}`, children: [
|
|
@@ -5610,7 +5612,7 @@ const I1 = T(function({ segments: n, size: l = 200, thickness: c = 26, format: s
|
|
|
5610
5612
|
/* @__PURE__ */ e(se, { tip: f.tip })
|
|
5611
5613
|
] });
|
|
5612
5614
|
});
|
|
5613
|
-
function
|
|
5615
|
+
function T1({ series: t, labels: n, height: l = 240, format: c = te, stacked: s = !1, className: a, ...r }) {
|
|
5614
5616
|
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
5617
|
return /* @__PURE__ */ u("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
5616
5618
|
o > 0 && /* @__PURE__ */ u("svg", { width: o, height: l, className: "select-chart", children: [
|
|
@@ -5702,7 +5704,7 @@ function R1({ series: t, labels: n, height: l = 240, format: c = te, stacked: s
|
|
|
5702
5704
|
/* @__PURE__ */ e(se, { tip: d.tip })
|
|
5703
5705
|
] });
|
|
5704
5706
|
}
|
|
5705
|
-
const
|
|
5707
|
+
const P1 = T(function({ stages: n, format: l = te, className: c, ...s }, a) {
|
|
5706
5708
|
const r = Math.max(1, ...n.map((i) => i.value));
|
|
5707
5709
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-funnel${c ? " " + c : ""}`, children: n.map((i, o) => {
|
|
5708
5710
|
const d = o > 0 ? n[o - 1].value || 1 : i.value || 1, p = o > 0 ? i.value / d * 100 : 100, h = U(o);
|
|
@@ -5739,7 +5741,7 @@ function El(t, n, l, c, s) {
|
|
|
5739
5741
|
const [a, r] = Al(t, n, l, c), [i, o] = Al(t, n, l, s);
|
|
5740
5742
|
return `M ${a.toFixed(2)} ${r.toFixed(2)} A ${l} ${l} 0 0 1 ${i.toFixed(2)} ${o.toFixed(2)}`;
|
|
5741
5743
|
}
|
|
5742
|
-
const er = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ? 1 : 0 })}%`,
|
|
5744
|
+
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
5745
|
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
5746
|
return /* @__PURE__ */ u("div", { ref: p, ...d, className: `select-gauge${o ? " " + o : ""}`, style: { width: `${s / 16}rem` }, children: [
|
|
5745
5747
|
/* @__PURE__ */ u("div", { className: "select-gauge__ring", style: { width: "100%", aspectRatio: `${s} / ${S}` }, children: [
|
|
@@ -5774,7 +5776,7 @@ const er = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5774
5776
|
] }),
|
|
5775
5777
|
c != null && /* @__PURE__ */ e("div", { className: "select-gauge__caption", children: c })
|
|
5776
5778
|
] });
|
|
5777
|
-
}),
|
|
5779
|
+
}), 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
5780
|
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
5781
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${n.length}, minmax(${d}px, ${Math.max(d, p)}px))`,
|
|
5780
5782
|
width: "fit-content",
|
|
@@ -5805,11 +5807,11 @@ const er = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5805
5807
|
color: A > 0.55 ? "#fff" : "var(--select-text)"
|
|
5806
5808
|
},
|
|
5807
5809
|
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,
|
|
5810
|
+
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
5811
|
x.show({
|
|
5810
5812
|
x: j,
|
|
5811
5813
|
y: le,
|
|
5812
|
-
place:
|
|
5814
|
+
place: W,
|
|
5813
5815
|
title: `${y.label} · ${n[b] ?? ""}`,
|
|
5814
5816
|
rows: [{ label: "Valor", value: (s ?? c)($), color: a }]
|
|
5815
5817
|
});
|
|
@@ -5859,7 +5861,7 @@ function O1({
|
|
|
5859
5861
|
] }, `${a.label}-${r}`);
|
|
5860
5862
|
}) });
|
|
5861
5863
|
}
|
|
5862
|
-
const Fn = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0,
|
|
5864
|
+
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
5865
|
const h = ve(), f = l / 2, v = l / 2;
|
|
5864
5866
|
return /* @__PURE__ */ u("div", { ref: p, ...d, className: `select-donut-wrap${o ? " " + o : ""}`, children: [
|
|
5865
5867
|
/* @__PURE__ */ u("div", { className: "select-radial", style: { width: l, aspectRatio: "1" }, children: [
|
|
@@ -5905,7 +5907,7 @@ const Fn = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0, W1 = T
|
|
|
5905
5907
|
] }, x)) })
|
|
5906
5908
|
] });
|
|
5907
5909
|
}), Bl = 6.1, In = 12, Fl = 56, tr = 0.4;
|
|
5908
|
-
function
|
|
5910
|
+
function j1({ data: t, height: n, color: l, format: c = te, formatValue: s, distributed: a = !0, labelWidth: r, className: i, ...o }) {
|
|
5909
5911
|
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
5912
|
Math.max(Fl, m * Bl + In),
|
|
5911
5913
|
Math.max(Fl, x * tr)
|
|
@@ -5976,7 +5978,7 @@ function H1({ data: t, height: n, color: l, format: c = te, formatValue: s, dist
|
|
|
5976
5978
|
/* @__PURE__ */ e(se, { tip: M.tip })
|
|
5977
5979
|
] });
|
|
5978
5980
|
}
|
|
5979
|
-
function
|
|
5981
|
+
function Z1({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
5980
5982
|
const { ref: a, width: r } = ge(n), i = ce(), o = ve();
|
|
5981
5983
|
let d = 0;
|
|
5982
5984
|
const p = t.map((w) => {
|
|
@@ -6046,7 +6048,7 @@ function j1({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
6046
6048
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
6047
6049
|
] });
|
|
6048
6050
|
}
|
|
6049
|
-
const Il = (t) => Math.max(0, Math.min(100, t)),
|
|
6051
|
+
const Il = (t) => Math.max(0, Math.min(100, t)), V1 = T(function({ items: n, format: l = te, className: c, ...s }, a) {
|
|
6050
6052
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-bullet${c ? " " + c : ""}`, children: n.map((r, i) => {
|
|
6051
6053
|
const o = r.color ?? U(i), d = r.max ?? (Math.max(r.value, r.target) * 1.25 || 1), p = r.value >= r.target;
|
|
6052
6054
|
return /* @__PURE__ */ u("div", { className: "select-bullet__row", children: [
|
|
@@ -6125,7 +6127,7 @@ function nr(t, n, l) {
|
|
|
6125
6127
|
l
|
|
6126
6128
|
), c;
|
|
6127
6129
|
}
|
|
6128
|
-
function
|
|
6130
|
+
function G1({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
6129
6131
|
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
6132
|
return /* @__PURE__ */ u("div", { ...s, className: `select-chart-wrap select-treemap${c ? " " + c : ""}`, ref: a, children: [
|
|
6131
6133
|
r > 0 && /* @__PURE__ */ u("svg", { width: r, height: n, className: "select-chart", children: [
|
|
@@ -6167,7 +6169,7 @@ function V1({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
6167
6169
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
6168
6170
|
] });
|
|
6169
6171
|
}
|
|
6170
|
-
function
|
|
6172
|
+
function U1({ series: t, height: n = 240, xFormat: l = te, yFormat: c = te, xMax: s, yMax: a, maxRadius: r = 18, className: i, ...o }) {
|
|
6171
6173
|
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
6174
|
return /* @__PURE__ */ u("div", { ...o, className: `select-chart-wrap${i ? " " + i : ""}`, ref: d, children: [
|
|
6173
6175
|
p > 0 && /* @__PURE__ */ u("svg", { width: p, height: n, className: "select-chart", children: [
|
|
@@ -6214,7 +6216,7 @@ function G1({ series: t, height: n = 240, xFormat: l = te, yFormat: c = te, xMax
|
|
|
6214
6216
|
/* @__PURE__ */ e(se, { tip: h.tip })
|
|
6215
6217
|
] });
|
|
6216
6218
|
}
|
|
6217
|
-
const
|
|
6219
|
+
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
6220
|
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
6221
|
return /* @__PURE__ */ u("div", { ref: p, ...d, className: `select-donut-wrap${o ? " " + o : ""}`, children: [
|
|
6220
6222
|
/* @__PURE__ */ u("div", { className: "select-radar", style: { width: c, aspectRatio: "1" }, children: [
|
|
@@ -6284,7 +6286,7 @@ const U1 = T(function({ axes: n, series: l, size: c = 240, max: s, format: a = t
|
|
|
6284
6286
|
] }, w)) })
|
|
6285
6287
|
] });
|
|
6286
6288
|
});
|
|
6287
|
-
function
|
|
6289
|
+
function q1({ links: t, height: n = 260, format: l = te, nodeWidth: c = 14, nodeGap: s = 14, className: a, ...r }) {
|
|
6288
6290
|
const { ref: i, width: o } = ge(n), d = ce(), p = [], h = [];
|
|
6289
6291
|
for (const b of t)
|
|
6290
6292
|
p.includes(b.source) || p.push(b.source), h.includes(b.target) || h.push(b.target);
|
|
@@ -6332,7 +6334,7 @@ function z1({ links: t, height: n = 260, format: l = te, nodeWidth: c = 14, node
|
|
|
6332
6334
|
/* @__PURE__ */ e(se, { tip: d.tip })
|
|
6333
6335
|
] });
|
|
6334
6336
|
}
|
|
6335
|
-
function
|
|
6337
|
+
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
6338
|
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
6339
|
return /* @__PURE__ */ u("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
6338
6340
|
o > 0 && /* @__PURE__ */ u("svg", { width: o, height: n, className: "select-chart", children: [
|
|
@@ -6384,7 +6386,7 @@ function q1({ data: t, height: n = 240, format: l = te, upColor: c = "var(--sele
|
|
|
6384
6386
|
/* @__PURE__ */ e(se, { tip: d.tip })
|
|
6385
6387
|
] });
|
|
6386
6388
|
}
|
|
6387
|
-
function
|
|
6389
|
+
function K1({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
6388
6390
|
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
6391
|
return /* @__PURE__ */ u("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
6390
6392
|
r > 0 && /* @__PURE__ */ u("svg", { width: r, height: n, className: "select-chart", children: [
|
|
@@ -6440,7 +6442,7 @@ function Y1({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
6440
6442
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
6441
6443
|
] });
|
|
6442
6444
|
}
|
|
6443
|
-
function
|
|
6445
|
+
function X1({ data: t, height: n, min: l, max: c, format: s = te, labelWidth: a = 96, className: r, ...i }) {
|
|
6444
6446
|
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
6447
|
return /* @__PURE__ */ u("div", { ...i, className: `select-chart-wrap${r ? " " + r : ""}`, ref: v, children: [
|
|
6446
6448
|
_ > 0 && /* @__PURE__ */ u("svg", { width: _, height: f, className: "select-chart", children: [
|
|
@@ -6495,7 +6497,7 @@ function K1({ data: t, height: n, min: l, max: c, format: s = te, labelWidth: a
|
|
|
6495
6497
|
/* @__PURE__ */ e(se, { tip: x.tip })
|
|
6496
6498
|
] });
|
|
6497
6499
|
}
|
|
6498
|
-
const
|
|
6500
|
+
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
6501
|
const v = ce();
|
|
6500
6502
|
ve();
|
|
6501
6503
|
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 +6541,7 @@ const X1 = T(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
6539
6541
|
] }),
|
|
6540
6542
|
/* @__PURE__ */ e(se, { tip: v.tip })
|
|
6541
6543
|
] });
|
|
6542
|
-
}),
|
|
6544
|
+
}), Q1 = T(function({ segments: n, size: l = 200, format: c = te, legend: s = !0, rose: a = !1, className: r, ...i }, o) {
|
|
6543
6545
|
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
6546
|
return /* @__PURE__ */ u("div", { ref: o, ...i, className: `select-donut-wrap${r ? " " + r : ""}`, children: [
|
|
6545
6547
|
/* @__PURE__ */ u("div", { className: "select-radial", style: { width: l, aspectRatio: "1" }, children: [
|
|
@@ -6570,7 +6572,7 @@ const X1 = T(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
6570
6572
|
] }, g)) })
|
|
6571
6573
|
] });
|
|
6572
6574
|
});
|
|
6573
|
-
function
|
|
6575
|
+
function ei({ data: t, leftLabel: n, rightLabel: l, height: c = 240, format: s = te, className: a, ...r }) {
|
|
6574
6576
|
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
6577
|
return /* @__PURE__ */ u("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: i, children: [
|
|
6576
6578
|
o > 0 && /* @__PURE__ */ u("svg", { width: o, height: c, className: "select-chart", children: [
|
|
@@ -6617,7 +6619,7 @@ function Q1({ data: t, leftLabel: n, rightLabel: l, height: c = 240, format: s =
|
|
|
6617
6619
|
/* @__PURE__ */ e(se, { tip: d.tip })
|
|
6618
6620
|
] });
|
|
6619
6621
|
}
|
|
6620
|
-
function
|
|
6622
|
+
function ti({ data: t, height: n, format: l = te, fromLabel: c = "Antes", toLabel: s = "Depois", labelWidth: a = 96, className: r, ...i }) {
|
|
6621
6623
|
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
6624
|
return /* @__PURE__ */ u("div", { ...i, className: `select-chart-wrap${r ? " " + r : ""}`, ref: v, children: [
|
|
6623
6625
|
_ > 0 && /* @__PURE__ */ u("svg", { width: _, height: f, className: "select-chart", children: [
|
|
@@ -6669,7 +6671,7 @@ function ei({ data: t, height: n, format: l = te, fromLabel: c = "Antes", toLabe
|
|
|
6669
6671
|
/* @__PURE__ */ e(se, { tip: x.tip })
|
|
6670
6672
|
] });
|
|
6671
6673
|
}
|
|
6672
|
-
function
|
|
6674
|
+
function ni({ columns: t, height: n = 240, format: l = te, gap: c = 3, className: s, ...a }) {
|
|
6673
6675
|
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
6676
|
t.forEach((m) => m.segments.forEach((N) => {
|
|
6675
6677
|
_.includes(N.key) || _.push(N.key);
|
|
@@ -6721,7 +6723,7 @@ function ti({ columns: t, height: n = 240, format: l = te, gap: c = 3, className
|
|
|
6721
6723
|
/* @__PURE__ */ e(se, { tip: o.tip })
|
|
6722
6724
|
] });
|
|
6723
6725
|
}
|
|
6724
|
-
const
|
|
6726
|
+
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
6727
|
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
6728
|
const B = Math.PI + A * Math.PI;
|
|
6727
6729
|
return [_ + v * Math.cos(B), x + v * Math.sin(B)];
|
|
@@ -6746,7 +6748,7 @@ const ni = T(function({ value: n, max: l = 100, bands: c, size: s = 220, thickne
|
|
|
6746
6748
|
] })
|
|
6747
6749
|
] }) });
|
|
6748
6750
|
});
|
|
6749
|
-
function
|
|
6751
|
+
function ci({ series: t, labels: n, height: l = 240, format: c = te, className: s, ...a }) {
|
|
6750
6752
|
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
6753
|
const $ = [], b = [];
|
|
6752
6754
|
return n.forEach((C, A) => {
|
|
@@ -6792,7 +6794,7 @@ function li({ series: t, labels: n, height: l = 240, format: c = te, className:
|
|
|
6792
6794
|
/* @__PURE__ */ e(se, { tip: o.tip })
|
|
6793
6795
|
] });
|
|
6794
6796
|
}
|
|
6795
|
-
const
|
|
6797
|
+
const si = T(function({ data: n, size: l = 220, format: c = te, legend: s = !0, className: a, ...r }, i) {
|
|
6796
6798
|
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
6799
|
var g;
|
|
6798
6800
|
return (g = S.children) != null && g.length ? S.children.reduce((m, N) => m + N.value, 0) : S.value ?? 0;
|
|
@@ -6853,7 +6855,7 @@ const ci = T(function({ data: n, size: l = 220, format: c = te, legend: s = !0,
|
|
|
6853
6855
|
] }, g)) })
|
|
6854
6856
|
] });
|
|
6855
6857
|
});
|
|
6856
|
-
function
|
|
6858
|
+
function ai({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
6857
6859
|
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
6860
|
return /* @__PURE__ */ u("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
6859
6861
|
r > 0 && /* @__PURE__ */ u("svg", { width: r, height: n, className: "select-chart", children: [
|
|
@@ -6907,7 +6909,7 @@ function si({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
6907
6909
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
6908
6910
|
] });
|
|
6909
6911
|
}
|
|
6910
|
-
const
|
|
6912
|
+
const ri = T(function({ matrix: n, labels: l, size: c = 240, format: s = te, padAngle: a = 0.05, className: r, ...i }, o) {
|
|
6911
6913
|
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
6914
|
let m = 0;
|
|
6913
6915
|
for (let b = 0; b < p; b++) {
|
|
@@ -6923,8 +6925,8 @@ const ai = T(function({ matrix: n, labels: l, size: c = 240, format: s = te, pad
|
|
|
6923
6925
|
}
|
|
6924
6926
|
}
|
|
6925
6927
|
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 ${
|
|
6928
|
+
const [L, E] = k(b, _), [F, I] = k(C, _), [D, Z] = k(A, _), [W, j] = k(B, _);
|
|
6929
|
+
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
6930
|
}, y = (b) => b * 180 / Math.PI, $ = [];
|
|
6929
6931
|
for (let b = 0; b < p; b++)
|
|
6930
6932
|
for (let C = b; C < p; C++) {
|
|
@@ -6972,11 +6974,11 @@ const ai = T(function({ matrix: n, labels: l, size: c = 240, format: s = te, pad
|
|
|
6972
6974
|
/* @__PURE__ */ e(se, { tip: d.tip })
|
|
6973
6975
|
] }) });
|
|
6974
6976
|
});
|
|
6975
|
-
function
|
|
6977
|
+
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
6978
|
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
6979
|
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 >
|
|
6980
|
+
const Z = Math.abs(F - B), W = Math.abs(I - E), j = Math.abs(D - L);
|
|
6981
|
+
return Z > W && Z > j ? F = -I - D : W > j ? I = -F - D : D = -F - I, [F, D];
|
|
6980
6982
|
}, w = (C, A) => [m * N * (C + A / 2), m * (3 / 2) * A], y = (C, A) => {
|
|
6981
6983
|
let B = "";
|
|
6982
6984
|
for (let L = 0; L < 6; L++) {
|
|
@@ -7013,7 +7015,7 @@ function ri({ points: t, height: n = 240, radius: l = 16, color: c = "var(--sele
|
|
|
7013
7015
|
/* @__PURE__ */ e(se, { tip: h.tip })
|
|
7014
7016
|
] });
|
|
7015
7017
|
}
|
|
7016
|
-
const
|
|
7018
|
+
const ii = T(function({ words: n, minSize: l = 14, maxSize: c = 46, className: s, ...a }, r) {
|
|
7017
7019
|
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
7020
|
return /* @__PURE__ */ e("div", { ref: r, ...a, className: `select-wordcloud${s ? " " + s : ""}`, children: n.map((f, v) => /* @__PURE__ */ e(
|
|
7019
7021
|
"span",
|
|
@@ -7174,11 +7176,11 @@ function Rl(t, n, l) {
|
|
|
7174
7176
|
const a = Math.sin(s), r = Math.sin((1 - l) * s) / a, i = Math.sin(l * s) / a;
|
|
7175
7177
|
return [t[0] * r + n[0] * i, t[1] * r + n[1] * i, t[2] * r + n[2] * i];
|
|
7176
7178
|
}
|
|
7177
|
-
const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) < 1e-6,
|
|
7179
|
+
const Tl = (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
7180
|
var ze;
|
|
7179
7181
|
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
7182
|
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,
|
|
7183
|
+
), 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
7184
|
L.current || (E.current = performance.now(), L.current = requestAnimationFrame(le));
|
|
7183
7185
|
};
|
|
7184
7186
|
function le(R) {
|
|
@@ -7216,10 +7218,10 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7216
7218
|
}, Fe = (R) => {
|
|
7217
7219
|
var G, z;
|
|
7218
7220
|
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,
|
|
7221
|
+
}, pe = (m / 2 - 6) * $.current, O = m / 2, J = m / 2, Q = (R) => {
|
|
7220
7222
|
const G = on(R, w.current.lng, w.current.lat);
|
|
7221
|
-
return { x:
|
|
7222
|
-
}, ke =
|
|
7223
|
+
return { x: O + pe * G[0], y: J - pe * G[1], z: G[2] };
|
|
7224
|
+
}, ke = Oe(() => {
|
|
7223
7225
|
const G = [];
|
|
7224
7226
|
for (let z = -180; z < 180; z += 30) {
|
|
7225
7227
|
const xe = [];
|
|
@@ -7232,14 +7234,14 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7232
7234
|
G.push(xe);
|
|
7233
7235
|
}
|
|
7234
7236
|
return G;
|
|
7235
|
-
}, []), be =
|
|
7237
|
+
}, []), be = Oe(
|
|
7236
7238
|
() => lr.map((R) => {
|
|
7237
7239
|
const G = [];
|
|
7238
7240
|
for (let z = 0; z < R.length; z += 2) G.push(Ft(R[z + 1], R[z]));
|
|
7239
7241
|
return G;
|
|
7240
7242
|
}),
|
|
7241
7243
|
[]
|
|
7242
|
-
), ye = (R) => ({ x:
|
|
7244
|
+
), ye = (R) => ({ x: O + pe * R[0], y: J - pe * R[1] });
|
|
7243
7245
|
let Ne = "", ne = "";
|
|
7244
7246
|
if (p)
|
|
7245
7247
|
for (const R of be) {
|
|
@@ -7262,8 +7264,8 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7262
7264
|
const H = (X, ee) => {
|
|
7263
7265
|
const de = ye(ee.v);
|
|
7264
7266
|
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 -
|
|
7267
|
+
const me = Math.atan2(ye(X.v).y - J, ye(X.v).x - O);
|
|
7268
|
+
let _e = Math.atan2(de.y - J, de.x - O) - me;
|
|
7267
7269
|
for (; _e > Math.PI; ) _e -= 2 * Math.PI;
|
|
7268
7270
|
for (; _e < -Math.PI; ) _e += 2 * Math.PI;
|
|
7269
7271
|
const Me = _e > 0 ? 1 : 0;
|
|
@@ -7314,7 +7316,7 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7314
7316
|
A.current = !0;
|
|
7315
7317
|
},
|
|
7316
7318
|
onPointerLeave: (R) => {
|
|
7317
|
-
A.current = !1, Fe(R),
|
|
7319
|
+
A.current = !1, Fe(R), W(null), S.hide(), j();
|
|
7318
7320
|
},
|
|
7319
7321
|
onPointerDown: oe,
|
|
7320
7322
|
onPointerMove: ae,
|
|
@@ -7343,13 +7345,13 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7343
7345
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: i, stopOpacity: 0.95 }),
|
|
7344
7346
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: i, stopOpacity: 0.3 })
|
|
7345
7347
|
] }),
|
|
7346
|
-
/* @__PURE__ */ e("clipPath", { id: `${M}-clip`, children: /* @__PURE__ */ e("circle", { cx:
|
|
7348
|
+
/* @__PURE__ */ e("clipPath", { id: `${M}-clip`, children: /* @__PURE__ */ e("circle", { cx: O, cy: J, r: pe }) })
|
|
7347
7349
|
] }),
|
|
7348
|
-
/* @__PURE__ */ e("circle", { cx:
|
|
7350
|
+
/* @__PURE__ */ e("circle", { cx: O, cy: J, r: pe + 24, fill: `url(#${M}-atmo)` }),
|
|
7349
7351
|
/* @__PURE__ */ e(
|
|
7350
7352
|
"circle",
|
|
7351
7353
|
{
|
|
7352
|
-
cx:
|
|
7354
|
+
cx: O,
|
|
7353
7355
|
cy: J,
|
|
7354
7356
|
r: pe,
|
|
7355
7357
|
fill: `url(#${M}-sphere)`,
|
|
@@ -7357,8 +7359,8 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7357
7359
|
strokeWidth: 1
|
|
7358
7360
|
}
|
|
7359
7361
|
),
|
|
7360
|
-
/* @__PURE__ */ e("circle", { cx:
|
|
7361
|
-
/* @__PURE__ */ e("circle", { cx:
|
|
7362
|
+
/* @__PURE__ */ e("circle", { cx: O, cy: J, r: pe, fill: `url(#${M}-glow)` }),
|
|
7363
|
+
/* @__PURE__ */ e("circle", { cx: O, cy: J, r: pe, fill: `url(#${M}-spec)` }),
|
|
7362
7364
|
/* @__PURE__ */ u("g", { clipPath: `url(#${M}-clip)`, children: [
|
|
7363
7365
|
p && Ne && /* @__PURE__ */ e(
|
|
7364
7366
|
"path",
|
|
@@ -7423,7 +7425,7 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7423
7425
|
fill: R.col,
|
|
7424
7426
|
className: "select-globe__point",
|
|
7425
7427
|
onPointerEnter: () => {
|
|
7426
|
-
|
|
7428
|
+
W(R.i), S.show({
|
|
7427
7429
|
x: R.p.x,
|
|
7428
7430
|
y: R.p.y - R.r - 4,
|
|
7429
7431
|
place: R.p.y < J ? "bottom" : "top",
|
|
@@ -7432,7 +7434,7 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7432
7434
|
});
|
|
7433
7435
|
},
|
|
7434
7436
|
onPointerLeave: () => {
|
|
7435
|
-
|
|
7437
|
+
W(null), S.hide();
|
|
7436
7438
|
},
|
|
7437
7439
|
onClick: () => {
|
|
7438
7440
|
b.current = { lng: -R.lng, lat: s }, j();
|
|
@@ -7453,7 +7455,7 @@ const Tl = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
7453
7455
|
] }, G)) })
|
|
7454
7456
|
] });
|
|
7455
7457
|
});
|
|
7456
|
-
function
|
|
7458
|
+
function hi({ children: t, speed: n = 28, className: l, ...c }) {
|
|
7457
7459
|
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
7460
|
ue(() => {
|
|
7459
7461
|
var k;
|
|
@@ -7501,7 +7503,7 @@ function di({ children: t, speed: n = 28, className: l, ...c }) {
|
|
|
7501
7503
|
}
|
|
7502
7504
|
);
|
|
7503
7505
|
}
|
|
7504
|
-
function
|
|
7506
|
+
function ui({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
7505
7507
|
var L;
|
|
7506
7508
|
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
7509
|
let x = 0;
|
|
@@ -7568,7 +7570,7 @@ function hi({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
7568
7570
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
7569
7571
|
] });
|
|
7570
7572
|
}
|
|
7571
|
-
const
|
|
7573
|
+
const pi = T(function({ segments: n, cols: l = 10, rows: c = 10, format: s = te, className: a, ...r }, i) {
|
|
7572
7574
|
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
7575
|
let f = h.reduce((x, M) => x + M, 0);
|
|
7574
7576
|
const v = p.map((x, M) => ({ i: M, frac: x - h[M] })).sort((x, M) => M.frac - x.frac);
|
|
@@ -7587,7 +7589,7 @@ const ui = T(function({ segments: n, cols: l = 10, rows: c = 10, format: s = te,
|
|
|
7587
7589
|
] }, M)) })
|
|
7588
7590
|
] });
|
|
7589
7591
|
});
|
|
7590
|
-
function
|
|
7592
|
+
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
7593
|
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
7594
|
return /* @__PURE__ */ u("div", { ...d, className: `select-chart-wrap${o ? " " + o : ""}`, ref: h, children: [
|
|
7593
7595
|
f > 0 && /* @__PURE__ */ u("svg", { width: f, height: p, className: "select-chart", onMouseLeave: () => {
|
|
@@ -7641,7 +7643,7 @@ function pi({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", hei
|
|
|
7641
7643
|
/* @__PURE__ */ e(se, { tip: v.tip })
|
|
7642
7644
|
] });
|
|
7643
7645
|
}
|
|
7644
|
-
function
|
|
7646
|
+
function fi({ series: t, labels: n, height: l = 240, format: c = te, className: s, ...a }) {
|
|
7645
7647
|
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
7648
|
for (let m = 0; m < f; m++)
|
|
7647
7649
|
t.map((k, w) => ({ si: w, v: k.data[m] ?? 0 })).sort((k, w) => w.v - k.v).forEach((k, w) => {
|
|
@@ -7689,7 +7691,7 @@ function mi({ series: t, labels: n, height: l = 240, format: c = te, className:
|
|
|
7689
7691
|
/* @__PURE__ */ e(se, { tip: o.tip })
|
|
7690
7692
|
] });
|
|
7691
7693
|
}
|
|
7692
|
-
function
|
|
7694
|
+
function _i({ axes: t, data: n, height: l = 260, format: c = te, className: s, ...a }) {
|
|
7693
7695
|
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
7696
|
const m = n.map((N) => N.values[g.key] ?? 0);
|
|
7695
7697
|
return { min: Math.min(...m), max: Math.max(...m) };
|
|
@@ -7746,7 +7748,7 @@ function pn(t) {
|
|
|
7746
7748
|
function Lc(t, n = 0) {
|
|
7747
7749
|
return !t.children || !t.children.length ? n : Math.max(...t.children.map((l) => Lc(l, n + 1)));
|
|
7748
7750
|
}
|
|
7749
|
-
function
|
|
7751
|
+
function vi({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
7750
7752
|
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
7753
|
if (f.push({ node: _, x0: x, x1: M, depth: S, color: _.color ?? U(g), value: pn(_) }), _.children && _.children.length) {
|
|
7752
7754
|
const m = _.children.reduce((k, w) => k + pn(w), 0) || 1;
|
|
@@ -7790,7 +7792,7 @@ function _i({ data: t, height: n = 240, format: l = te, className: c, ...s }) {
|
|
|
7790
7792
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
7791
7793
|
] });
|
|
7792
7794
|
}
|
|
7793
|
-
function
|
|
7795
|
+
function gi({ data: t, height: n = 260, className: l, ...c }) {
|
|
7794
7796
|
const { ref: s, width: a } = ge(n), r = ce(), [i, o] = P(null), d = { top: 14, right: 96, bottom: 14, left: 16 };
|
|
7795
7797
|
let p = null;
|
|
7796
7798
|
if (a > 0) {
|
|
@@ -7860,7 +7862,7 @@ function vi({ data: t, height: n = 260, className: l, ...c }) {
|
|
|
7860
7862
|
/* @__PURE__ */ e(se, { tip: r.tip })
|
|
7861
7863
|
] });
|
|
7862
7864
|
}
|
|
7863
|
-
const
|
|
7865
|
+
const bi = T(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
7864
7866
|
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
7867
|
[i - p * 0.42, o],
|
|
7866
7868
|
[i + p * 0.42, o]
|
|
@@ -7908,7 +7910,7 @@ const gi = T(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
|
7908
7910
|
/* @__PURE__ */ e("span", { className: "select-donut__legval", children: v.size.toLocaleString("pt-BR") })
|
|
7909
7911
|
] }, _)) })
|
|
7910
7912
|
] });
|
|
7911
|
-
}),
|
|
7913
|
+
}), xi = T(function({ data: n, size: l = 260, format: c = te, className: s, ...a }, r) {
|
|
7912
7914
|
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
7915
|
for (const b of h) {
|
|
7914
7916
|
if (f.length === 0) {
|
|
@@ -7964,8 +7966,8 @@ const gi = T(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
|
7964
7966
|
/* @__PURE__ */ e(se, { tip: i.tip })
|
|
7965
7967
|
] });
|
|
7966
7968
|
});
|
|
7967
|
-
function
|
|
7968
|
-
const { ref: r, width: i } = ge(l), o = ce(), [d, p] = P(null), h =
|
|
7969
|
+
function yi({ nodes: t, links: n, height: l = 300, format: c = te, className: s, ...a }) {
|
|
7970
|
+
const { ref: r, width: i } = ge(l), o = ce(), [d, p] = P(null), h = Oe(() => {
|
|
7969
7971
|
const _ = i || l, x = l, M = t.length, S = /* @__PURE__ */ new Map();
|
|
7970
7972
|
if (!M) return S;
|
|
7971
7973
|
const g = t.map((w, y) => ({
|
|
@@ -8054,11 +8056,11 @@ const Rn = [
|
|
|
8054
8056
|
{ value: "dark", label: "Escuro", icon: /* @__PURE__ */ e(ns, {}) },
|
|
8055
8057
|
{ value: "system", label: "Sistema", icon: /* @__PURE__ */ e(Zl, {}) }
|
|
8056
8058
|
];
|
|
8057
|
-
function
|
|
8059
|
+
function Ni(t) {
|
|
8058
8060
|
var n;
|
|
8059
8061
|
return t === "system" ? (n = window.matchMedia) != null && n.call(window, "(prefers-color-scheme: dark)").matches ? "dark" : "light" : t;
|
|
8060
8062
|
}
|
|
8061
|
-
function
|
|
8063
|
+
function Mi({ value: t, onChange: n, className: l, ...c }) {
|
|
8062
8064
|
const [s, a] = P(!1), r = K(null), i = Rn.find((o) => o.value === t) ?? Rn[2];
|
|
8063
8065
|
return ue(() => {
|
|
8064
8066
|
if (!s) return;
|
|
@@ -8087,7 +8089,7 @@ function Ni({ value: t, onChange: n, className: l, ...c }) {
|
|
|
8087
8089
|
] });
|
|
8088
8090
|
}
|
|
8089
8091
|
const Ac = Vn(!1);
|
|
8090
|
-
function
|
|
8092
|
+
function wi({
|
|
8091
8093
|
children: t,
|
|
8092
8094
|
stacked: n = !1,
|
|
8093
8095
|
loading: l = !1
|
|
@@ -8095,14 +8097,14 @@ function Mi({
|
|
|
8095
8097
|
const c = wn({ selector: ".select-detail", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 });
|
|
8096
8098
|
return /* @__PURE__ */ e(Ac.Provider, { value: l, children: /* @__PURE__ */ e("div", { className: `select-detaillist${n ? " select-detaillist--stacked" : ""}`, ref: c, children: t }) });
|
|
8097
8099
|
}
|
|
8098
|
-
const
|
|
8100
|
+
const ki = T(function({ label: n, children: l, action: c, align: s = "center", loading: a, className: r, ...i }, o) {
|
|
8099
8101
|
const d = Zn(Ac), p = a ?? d;
|
|
8100
8102
|
return /* @__PURE__ */ u("div", { ref: o, ...i, className: `select-detail select-detail--${s}${r ? " " + r : ""}`, children: [
|
|
8101
8103
|
/* @__PURE__ */ e("div", { className: "select-detail__label", children: n }),
|
|
8102
8104
|
/* @__PURE__ */ e("div", { className: "select-detail__value", children: p ? /* @__PURE__ */ e("span", { className: "select-skeleton select-detail__skel" }) : l }),
|
|
8103
8105
|
c && /* @__PURE__ */ e("div", { className: "select-detail__action", children: c })
|
|
8104
8106
|
] });
|
|
8105
|
-
}),
|
|
8107
|
+
}), $i = T(function({ steps: n, current: l, onSelect: c, orientation: s = "horizontal", className: a, ...r }, i) {
|
|
8106
8108
|
const o = s === "vertical";
|
|
8107
8109
|
return /* @__PURE__ */ e(
|
|
8108
8110
|
"ol",
|
|
@@ -8122,7 +8124,7 @@ const wi = T(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
8122
8124
|
})
|
|
8123
8125
|
}
|
|
8124
8126
|
);
|
|
8125
|
-
}),
|
|
8127
|
+
}), 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
8128
|
return /* @__PURE__ */ u("div", { ref: f, ...h, className: `select-plan${d ? " select-plan--featured" : ""}${p ? " " + p : ""}`, children: [
|
|
8127
8129
|
/* @__PURE__ */ u("div", { className: "select-plan__top", children: [
|
|
8128
8130
|
/* @__PURE__ */ u("div", { className: "select-plan__head", children: [
|
|
@@ -8144,7 +8146,7 @@ const wi = T(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
8144
8146
|
] }, _)) })
|
|
8145
8147
|
] })
|
|
8146
8148
|
] });
|
|
8147
|
-
}),
|
|
8149
|
+
}), Ci = T(function({ title: n, description: l, headerAction: c, footer: s, children: a, className: r, ...i }, o) {
|
|
8148
8150
|
return /* @__PURE__ */ u("div", { ref: o, ...i, className: `select-listcard${r ? " " + r : ""}`, children: [
|
|
8149
8151
|
(n || c) && /* @__PURE__ */ u("div", { className: "select-listcard__head", children: [
|
|
8150
8152
|
/* @__PURE__ */ u("div", { className: "select-listcard__heading", children: [
|
|
@@ -8157,7 +8159,7 @@ const wi = T(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
8157
8159
|
s && /* @__PURE__ */ e("div", { className: "select-listcard__footer", children: s })
|
|
8158
8160
|
] });
|
|
8159
8161
|
});
|
|
8160
|
-
function
|
|
8162
|
+
function Li({
|
|
8161
8163
|
media: t,
|
|
8162
8164
|
title: n,
|
|
8163
8165
|
secondary: l,
|
|
@@ -8197,7 +8199,7 @@ function cr({
|
|
|
8197
8199
|
}) {
|
|
8198
8200
|
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
8201
|
}
|
|
8200
|
-
function
|
|
8202
|
+
function Ai({
|
|
8201
8203
|
src: t,
|
|
8202
8204
|
alt: n = "",
|
|
8203
8205
|
size: l = 40,
|
|
@@ -8220,7 +8222,7 @@ function Li({
|
|
|
8220
8222
|
s && /* @__PURE__ */ e(cr, { open: !0, onClose: () => a(!1), src: t, alt: n, title: c ?? n })
|
|
8221
8223
|
] }) : /* @__PURE__ */ e(Pl, { size: l, alt: n });
|
|
8222
8224
|
}
|
|
8223
|
-
const
|
|
8225
|
+
const Ei = T(function({ media: n, title: l, secondary: c, className: s, ...a }, r) {
|
|
8224
8226
|
return /* @__PURE__ */ u("span", { ref: r, ...a, className: `select-mediacell${s ? " " + s : ""}`, children: [
|
|
8225
8227
|
n && /* @__PURE__ */ e("span", { className: "select-mediacell__media", children: n }),
|
|
8226
8228
|
/* @__PURE__ */ u("span", { className: "select-mediacell__text", children: [
|
|
@@ -8229,7 +8231,7 @@ const Ai = T(function({ media: n, title: l, secondary: c, className: s, ...a },
|
|
|
8229
8231
|
] })
|
|
8230
8232
|
] });
|
|
8231
8233
|
});
|
|
8232
|
-
function
|
|
8234
|
+
function Bi() {
|
|
8233
8235
|
const [t, n] = P(
|
|
8234
8236
|
() => typeof navigator < "u" && navigator.onLine === !1
|
|
8235
8237
|
);
|
|
@@ -8262,7 +8264,7 @@ function sr(t) {
|
|
|
8262
8264
|
value: l == null ? "" : String(l)
|
|
8263
8265
|
})) : [];
|
|
8264
8266
|
}
|
|
8265
|
-
const
|
|
8267
|
+
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
8268
|
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
8269
|
return /* @__PURE__ */ u("div", { ref: h, ...p, className: `select-kv${d ? " " + d : ""}`, children: [
|
|
8268
8270
|
f.map((S, g) => /* @__PURE__ */ u("div", { className: "select-kv__row", children: [
|
|
@@ -8347,7 +8349,7 @@ const Bi = T(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
8347
8349
|
apply: "Aplicar",
|
|
8348
8350
|
formatDate: (t) => `${Dl(t.getDate())} / ${Dl(t.getMonth() + 1)} / ${t.getFullYear()}`
|
|
8349
8351
|
}
|
|
8350
|
-
}, 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),
|
|
8352
|
+
}, 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), Wl = (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
8353
|
const n = /* @__PURE__ */ new Date();
|
|
8352
8354
|
return { from: new Date(n.getTime() - t * 6e4), to: n };
|
|
8353
8355
|
}, rr = [
|
|
@@ -8421,7 +8423,7 @@ const hr = T(function({ value: n, presets: l = rr, onApply: c, onCancel: s, acce
|
|
|
8421
8423
|
type: "button",
|
|
8422
8424
|
className: "select-datepicker__nav",
|
|
8423
8425
|
"aria-label": r === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
8424
|
-
onClick: () => m((L) =>
|
|
8426
|
+
onClick: () => m((L) => Wl(L, -1)),
|
|
8425
8427
|
children: /* @__PURE__ */ e(Gn, {})
|
|
8426
8428
|
}
|
|
8427
8429
|
),
|
|
@@ -8436,7 +8438,7 @@ const hr = T(function({ value: n, presets: l = rr, onApply: c, onCancel: s, acce
|
|
|
8436
8438
|
type: "button",
|
|
8437
8439
|
className: "select-datepicker__nav",
|
|
8438
8440
|
"aria-label": r === "pt-BR" ? "Próximo mês" : "Next month",
|
|
8439
|
-
onClick: () => m((L) =>
|
|
8441
|
+
onClick: () => m((L) => Wl(L, 1)),
|
|
8440
8442
|
children: /* @__PURE__ */ e(Jt, {})
|
|
8441
8443
|
}
|
|
8442
8444
|
)
|
|
@@ -8444,7 +8446,7 @@ const hr = T(function({ value: n, presets: l = rr, onApply: c, onCancel: s, acce
|
|
|
8444
8446
|
/* @__PURE__ */ u("div", { className: "select-datepicker__grid", role: "grid", children: [
|
|
8445
8447
|
v.weekdays.map((L, E) => /* @__PURE__ */ e("div", { className: "select-datepicker__weekday", children: L }, E)),
|
|
8446
8448
|
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,
|
|
8449
|
+
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
8450
|
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
8451
|
})
|
|
8450
8452
|
] }),
|
|
@@ -8463,7 +8465,7 @@ function ur(t, n) {
|
|
|
8463
8465
|
}
|
|
8464
8466
|
return Pn(t.start, t.end) ? Dn(t.start) : `${Dn(t.start)} – ${Dn(t.end)}`;
|
|
8465
8467
|
}
|
|
8466
|
-
function
|
|
8468
|
+
function Ii({
|
|
8467
8469
|
value: t,
|
|
8468
8470
|
onChange: n,
|
|
8469
8471
|
presets: l = ir,
|
|
@@ -8521,7 +8523,7 @@ function pr({ size: t }) {
|
|
|
8521
8523
|
}
|
|
8522
8524
|
) });
|
|
8523
8525
|
}
|
|
8524
|
-
const
|
|
8526
|
+
const Ri = T(function({ value: n, max: l = 5, onChange: c, size: s = 20, label: a, disabled: r = !1, className: i, ...o }, d) {
|
|
8525
8527
|
const p = !!c && !r, [h, f] = P(null), v = h ?? n;
|
|
8526
8528
|
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
8529
|
const M = x < v, S = /* @__PURE__ */ e("span", { className: `select-rating__star${M ? " is-filled" : ""}`, children: /* @__PURE__ */ e(pr, { size: s }) });
|
|
@@ -8540,7 +8542,7 @@ const Ii = T(function({ value: n, max: l = 5, onChange: c, size: s = 20, label:
|
|
|
8540
8542
|
x
|
|
8541
8543
|
) : /* @__PURE__ */ e("span", { children: S }, x);
|
|
8542
8544
|
}) });
|
|
8543
|
-
}),
|
|
8545
|
+
}), 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
8546
|
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
8547
|
const F = i ? E.replace(/[^\d.,-]/g, "").replace(",", ".") : E.replace(/[^\d-]/g, "");
|
|
8546
8548
|
if (i && C(F), F === "" || F === "-" || F === ".") return c(null);
|
|
@@ -8600,7 +8602,7 @@ const Ii = T(function({ value: n, max: l = 5, onChange: c, size: s = 20, label:
|
|
|
8600
8602
|
p ? /* @__PURE__ */ e("p", { className: "select-field__error", children: p }) : d ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: d }) : null
|
|
8601
8603
|
] });
|
|
8602
8604
|
});
|
|
8603
|
-
function
|
|
8605
|
+
function Pi({
|
|
8604
8606
|
items: t,
|
|
8605
8607
|
onChange: n,
|
|
8606
8608
|
renderRow: l,
|
|
@@ -8631,11 +8633,11 @@ function Ti({
|
|
|
8631
8633
|
moveUp: () => S(N, -1),
|
|
8632
8634
|
moveDown: () => S(N, 1)
|
|
8633
8635
|
});
|
|
8634
|
-
return /* @__PURE__ */ u(
|
|
8636
|
+
return /* @__PURE__ */ u(Wn, { gap: "300", children: [
|
|
8635
8637
|
t.length === 0 && h != null && /* @__PURE__ */ e("div", { children: h }),
|
|
8636
8638
|
t.map((m, N) => {
|
|
8637
8639
|
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(
|
|
8640
|
+
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
8641
|
/* @__PURE__ */ u(zt, { align: "space-between", blockAlign: "center", gap: "200", children: [
|
|
8640
8642
|
/* @__PURE__ */ e(kt, { as: "span", variant: "bodySm", fontWeight: "medium", tone: "subdued", children: a ? a(N, m) : `#${N + 1}` }),
|
|
8641
8643
|
/* @__PURE__ */ u(zt, { gap: "100", blockAlign: "center", wrap: !1, children: [
|
|
@@ -8655,7 +8657,7 @@ function Ti({
|
|
|
8655
8657
|
] })
|
|
8656
8658
|
] });
|
|
8657
8659
|
}
|
|
8658
|
-
function
|
|
8660
|
+
function Di({
|
|
8659
8661
|
title: t,
|
|
8660
8662
|
subtitle: n,
|
|
8661
8663
|
backTo: l,
|
|
@@ -8677,7 +8679,7 @@ function Pi({
|
|
|
8677
8679
|
backAction: { content: "Voltar", onAction: () => h(l || -1) },
|
|
8678
8680
|
primaryAction: { content: a, onAction: c, loading: s, disabled: r },
|
|
8679
8681
|
secondaryActions: i ? [{ content: "Cancelar", onAction: () => h(i), disabled: s }] : void 0,
|
|
8680
|
-
children: /* @__PURE__ */ u(
|
|
8682
|
+
children: /* @__PURE__ */ u(Wn, { gap: "400", children: [
|
|
8681
8683
|
o != null && /* @__PURE__ */ e(Tt, { tone: "critical", children: o }),
|
|
8682
8684
|
d != null ? /* @__PURE__ */ u("div", { className: "select-builder-split", children: [
|
|
8683
8685
|
/* @__PURE__ */ e("div", { className: "select-builder-split__form", children: p }),
|
|
@@ -8687,7 +8689,7 @@ function Pi({
|
|
|
8687
8689
|
}
|
|
8688
8690
|
);
|
|
8689
8691
|
}
|
|
8690
|
-
function
|
|
8692
|
+
function Wi({
|
|
8691
8693
|
title: t,
|
|
8692
8694
|
subtitle: n,
|
|
8693
8695
|
backTo: l,
|
|
@@ -8709,7 +8711,7 @@ function Di({
|
|
|
8709
8711
|
var A;
|
|
8710
8712
|
const S = Hl(), [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
8713
|
p === void 0 && m(B), h == null || h(B);
|
|
8712
|
-
}, b = N.trim().toLowerCase(), C =
|
|
8714
|
+
}, b = N.trim().toLowerCase(), C = Oe(() => {
|
|
8713
8715
|
const B = b ? d.filter(
|
|
8714
8716
|
(E) => (E.title + " " + (E.keywords ?? "") + " " + (E.group ?? "")).toLowerCase().includes(b)
|
|
8715
8717
|
) : d, L = [];
|
|
@@ -8798,7 +8800,7 @@ const Oi = T(function({ label: n, checked: l, onChange: c, disabled: s = !1, hin
|
|
|
8798
8800
|
a != null && /* @__PURE__ */ e("span", { className: "select-switchfield__hint", children: a })
|
|
8799
8801
|
] });
|
|
8800
8802
|
}), mr = (t) => /^#[0-9a-fA-F]{6}$/.test(t);
|
|
8801
|
-
function
|
|
8803
|
+
function Hi({ label: t, value: n, onChange: l, disabled: c = !1, hint: s, error: a }) {
|
|
8802
8804
|
return /* @__PURE__ */ e(
|
|
8803
8805
|
pt,
|
|
8804
8806
|
{
|
|
@@ -8835,7 +8837,7 @@ function fr(t) {
|
|
|
8835
8837
|
c.onload = () => n(String(c.result)), c.onerror = () => l(c.error), c.readAsDataURL(t);
|
|
8836
8838
|
});
|
|
8837
8839
|
}
|
|
8838
|
-
const
|
|
8840
|
+
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
8841
|
const [f, v] = P([]), [_, x] = P(null), M = l ? [l] : [], S = async (g) => {
|
|
8840
8842
|
const m = g[0];
|
|
8841
8843
|
if (!m) {
|
|
@@ -8873,7 +8875,7 @@ const Hi = T(function({ label: n, value: l, onChange: c, accept: s = "image/*",
|
|
|
8873
8875
|
),
|
|
8874
8876
|
_ && /* @__PURE__ */ e("span", { className: "select-imagefield__error", children: _ })
|
|
8875
8877
|
] });
|
|
8876
|
-
}),
|
|
8878
|
+
}), Zi = T(function({ items: n, multiple: l = !1, defaultOpenIds: c = [], className: s, ...a }, r) {
|
|
8877
8879
|
const [i, o] = P(() => new Set(c)), d = (p) => o((h) => {
|
|
8878
8880
|
const f = h.has(p), v = new Set(l ? h : []);
|
|
8879
8881
|
return f ? v.delete(p) : v.add(p), v;
|
|
@@ -8916,7 +8918,7 @@ export {
|
|
|
8916
8918
|
Un as ArrowLeftIcon,
|
|
8917
8919
|
Vr as ArrowRightIcon,
|
|
8918
8920
|
Ur as AtIcon,
|
|
8919
|
-
|
|
8921
|
+
Wr as AuthAppIcon,
|
|
8920
8922
|
Tr as BellIcon,
|
|
8921
8923
|
Ar as BookmarkIcon,
|
|
8922
8924
|
qr as BuildingIcon,
|
|
@@ -8952,7 +8954,7 @@ export {
|
|
|
8952
8954
|
Mn as InfoIcon,
|
|
8953
8955
|
Yr as KeyIcon,
|
|
8954
8956
|
to as LockIcon,
|
|
8955
|
-
|
|
8957
|
+
Or as MailIcon,
|
|
8956
8958
|
io as MenuIcon,
|
|
8957
8959
|
ro as MinusCircleIcon,
|
|
8958
8960
|
Vl as MobileIcon,
|
|
@@ -8967,13 +8969,14 @@ export {
|
|
|
8967
8969
|
Pr as RocketIcon,
|
|
8968
8970
|
Ts as SELECT_CARD_BRANDS,
|
|
8969
8971
|
d1 as SELECT_COL_DATETIME,
|
|
8972
|
+
h1 as SELECT_COL_ID,
|
|
8970
8973
|
rc as SELECT_COUNTRIES,
|
|
8971
8974
|
ir as SELECT_DAILY_PRESETS,
|
|
8972
8975
|
rr as SELECT_DATE_PRESETS,
|
|
8973
8976
|
wt as SELECT_SPACE,
|
|
8974
8977
|
Bs as SELECT_TRANSACTION_STATUS,
|
|
8975
8978
|
zn as SearchIcon,
|
|
8976
|
-
|
|
8979
|
+
Zi as SelectAccordion,
|
|
8977
8980
|
l1 as SelectActionCard,
|
|
8978
8981
|
ic as SelectActionList,
|
|
8979
8982
|
So as SelectActionMenu,
|
|
@@ -8985,85 +8988,85 @@ export {
|
|
|
8985
8988
|
ca as SelectAvatar,
|
|
8986
8989
|
Po as SelectBackLink,
|
|
8987
8990
|
oc as SelectBadge,
|
|
8988
|
-
|
|
8991
|
+
$1 as SelectBalanceCard,
|
|
8989
8992
|
bo as SelectBankAccountField,
|
|
8990
|
-
|
|
8993
|
+
E1 as SelectBarChart,
|
|
8991
8994
|
Rs as SelectBox,
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8995
|
+
K1 as SelectBoxPlot,
|
|
8996
|
+
Di as SelectBuilderLayout,
|
|
8997
|
+
Wi as SelectBuilderWorkspace,
|
|
8998
|
+
V1 as SelectBullet,
|
|
8999
|
+
fi as SelectBump,
|
|
8997
9000
|
Re as SelectButton,
|
|
8998
|
-
|
|
8999
|
-
|
|
9001
|
+
J1 as SelectCalendarHeatmap,
|
|
9002
|
+
Y1 as SelectCandlestick,
|
|
9000
9003
|
wr as SelectCard,
|
|
9001
|
-
|
|
9002
|
-
|
|
9004
|
+
m1 as SelectCardGrid,
|
|
9005
|
+
L1 as SelectChartCard,
|
|
9003
9006
|
uo as SelectCheckbox,
|
|
9004
|
-
|
|
9005
|
-
|
|
9007
|
+
ri as SelectChord,
|
|
9008
|
+
xi as SelectCirclePack,
|
|
9006
9009
|
n1 as SelectCollapsible,
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
+
Hi as SelectColorField,
|
|
9011
|
+
T1 as SelectColumnChart,
|
|
9012
|
+
I1 as SelectComboChart,
|
|
9010
9013
|
gs as SelectCombobox,
|
|
9011
9014
|
o1 as SelectConfirmModal,
|
|
9012
9015
|
e1 as SelectCopyRow,
|
|
9013
9016
|
t1 as SelectCopyableId,
|
|
9014
9017
|
s1 as SelectCreateTile,
|
|
9015
|
-
|
|
9018
|
+
p1 as SelectDataTable,
|
|
9016
9019
|
Ia as SelectDateField,
|
|
9017
9020
|
hr as SelectDatePicker,
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9021
|
+
Ii as SelectDateRangeField,
|
|
9022
|
+
wi as SelectDetailList,
|
|
9023
|
+
ki as SelectDetailRow,
|
|
9024
|
+
Ws as SelectDisclosureButton,
|
|
9022
9025
|
Bo as SelectDivider,
|
|
9023
9026
|
_o as SelectDocumentField,
|
|
9024
|
-
|
|
9027
|
+
R1 as SelectDonut,
|
|
9025
9028
|
yr as SelectDotField,
|
|
9026
|
-
|
|
9027
|
-
|
|
9029
|
+
ti as SelectDumbbell,
|
|
9030
|
+
S1 as SelectFeeBreakdown,
|
|
9028
9031
|
pt as SelectField,
|
|
9029
9032
|
bs as SelectFieldGrid,
|
|
9030
9033
|
vo as SelectFileDropzone,
|
|
9031
9034
|
_n as SelectFileTile,
|
|
9032
|
-
|
|
9035
|
+
g1 as SelectFilterBar,
|
|
9033
9036
|
Qo as SelectFilterChip,
|
|
9034
|
-
|
|
9037
|
+
Oo as SelectFormLayout,
|
|
9035
9038
|
i1 as SelectFormModal,
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9039
|
+
P1 as SelectFunnel,
|
|
9040
|
+
D1 as SelectGauge,
|
|
9041
|
+
li as SelectGaugeBands,
|
|
9042
|
+
di as SelectGlobe,
|
|
9040
9043
|
Co as SelectGrid,
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9044
|
+
W1 as SelectHeatmap,
|
|
9045
|
+
oi as SelectHexbin,
|
|
9046
|
+
k1 as SelectHideMoneyToggle,
|
|
9047
|
+
j1 as SelectHorizontalBar,
|
|
9048
|
+
vi as SelectIcicle,
|
|
9046
9049
|
ma as SelectIcon,
|
|
9047
9050
|
He as SelectIconButton,
|
|
9048
9051
|
Ro as SelectIdentityFooter,
|
|
9049
|
-
|
|
9052
|
+
ji as SelectImageField,
|
|
9050
9053
|
ps as SelectImageUploadField,
|
|
9051
9054
|
go as SelectImageUrlsField,
|
|
9052
9055
|
cr as SelectImageZoomModal,
|
|
9053
9056
|
ft as SelectInfoTip,
|
|
9054
9057
|
zt as SelectInline,
|
|
9055
9058
|
Ao as SelectJsonViewer,
|
|
9056
|
-
|
|
9057
|
-
|
|
9059
|
+
Fi as SelectKeyValueEditor,
|
|
9060
|
+
C1 as SelectKpiCard,
|
|
9058
9061
|
Rt as SelectLabelRow,
|
|
9059
|
-
|
|
9060
|
-
|
|
9062
|
+
_1 as SelectLayoutThumb,
|
|
9063
|
+
B1 as SelectLineChart,
|
|
9061
9064
|
la as SelectLinkButton,
|
|
9062
|
-
|
|
9063
|
-
|
|
9065
|
+
Ci as SelectListCard,
|
|
9066
|
+
Li as SelectListRow,
|
|
9064
9067
|
aa as SelectLoader,
|
|
9065
|
-
|
|
9066
|
-
|
|
9068
|
+
ni as SelectMarimekko,
|
|
9069
|
+
Ei as SelectMediaCell,
|
|
9067
9070
|
ya as SelectMenu,
|
|
9068
9071
|
Ma as SelectMenuButton,
|
|
9069
9072
|
Jo as SelectMenuDivider,
|
|
@@ -9074,38 +9077,38 @@ export {
|
|
|
9074
9077
|
$n as SelectModal,
|
|
9075
9078
|
qt as SelectMoney,
|
|
9076
9079
|
fo as SelectMoneyField,
|
|
9077
|
-
|
|
9080
|
+
yi as SelectNetwork,
|
|
9078
9081
|
jo as SelectNote,
|
|
9079
|
-
|
|
9080
|
-
|
|
9082
|
+
Ti as SelectNumberField,
|
|
9083
|
+
Bi as SelectOfflineModal,
|
|
9081
9084
|
Fo as SelectOptionList,
|
|
9082
9085
|
Io as SelectOptionRow,
|
|
9083
9086
|
To as SelectOtpInput,
|
|
9084
9087
|
ra as SelectPage,
|
|
9085
9088
|
ga as SelectPagination,
|
|
9086
9089
|
Go as SelectPanel,
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
+
_i as SelectParallel,
|
|
9091
|
+
ui as SelectPareto,
|
|
9092
|
+
Wo as SelectPasswordStrength,
|
|
9090
9093
|
Lo as SelectPaymentBrand,
|
|
9091
9094
|
Mo as SelectPhoneField,
|
|
9092
|
-
|
|
9093
|
-
|
|
9095
|
+
Si as SelectPlanCard,
|
|
9096
|
+
Q1 as SelectPolarArea,
|
|
9094
9097
|
dt as SelectPopover,
|
|
9095
|
-
|
|
9098
|
+
M1 as SelectPreviewFrame,
|
|
9096
9099
|
O1 as SelectProgressList,
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
+
mi as SelectPyramid,
|
|
9101
|
+
z1 as SelectRadar,
|
|
9102
|
+
H1 as SelectRadialBar,
|
|
9100
9103
|
wo as SelectRadioGroup,
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9104
|
+
X1 as SelectRangeBar,
|
|
9105
|
+
Ri as SelectRating,
|
|
9106
|
+
f1 as SelectRecordCard,
|
|
9107
|
+
Pi as SelectRepeatingFieldArray,
|
|
9105
9108
|
Do as SelectResendButton,
|
|
9106
9109
|
r1 as SelectRowActions,
|
|
9107
|
-
|
|
9108
|
-
|
|
9110
|
+
q1 as SelectSankey,
|
|
9111
|
+
U1 as SelectScatter,
|
|
9109
9112
|
tl as SelectSearchInput,
|
|
9110
9113
|
Uo as SelectSection,
|
|
9111
9114
|
ko as SelectSegmented,
|
|
@@ -9115,16 +9118,16 @@ export {
|
|
|
9115
9118
|
Vo as SelectSettingRow,
|
|
9116
9119
|
qo as SelectSideNav,
|
|
9117
9120
|
Ho as SelectSkeleton,
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9121
|
+
ei as SelectSlope,
|
|
9122
|
+
A1 as SelectSparkline,
|
|
9123
|
+
v1 as SelectSplitChain,
|
|
9124
|
+
Wn as SelectStack,
|
|
9125
|
+
F1 as SelectStackedArea,
|
|
9123
9126
|
$o as SelectStatusBadge,
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9127
|
+
$i as SelectSteps,
|
|
9128
|
+
ci as SelectStreamGraph,
|
|
9129
|
+
si as SelectSunburst,
|
|
9130
|
+
x1 as SelectSurface,
|
|
9128
9131
|
Jn as SelectSwitch,
|
|
9129
9132
|
Oi as SelectSwitchField,
|
|
9130
9133
|
xa as SelectTable,
|
|
@@ -9132,30 +9135,30 @@ export {
|
|
|
9132
9135
|
yc as SelectTableEmpty,
|
|
9133
9136
|
gl as SelectTableRow,
|
|
9134
9137
|
zo as SelectTabs,
|
|
9135
|
-
|
|
9138
|
+
b1 as SelectTagSelect,
|
|
9136
9139
|
kt as SelectText,
|
|
9137
9140
|
po as SelectTextarea,
|
|
9138
|
-
|
|
9141
|
+
Mi as SelectThemeSwitcher,
|
|
9139
9142
|
Pl as SelectThumbnail,
|
|
9140
|
-
|
|
9143
|
+
hi as SelectTicker,
|
|
9141
9144
|
Eo as SelectTimeline,
|
|
9142
|
-
|
|
9145
|
+
y1 as SelectToastProvider,
|
|
9143
9146
|
xo as SelectToggleList,
|
|
9144
9147
|
No as SelectTogglePanel,
|
|
9145
9148
|
yo as SelectToggleRow,
|
|
9146
9149
|
Kn as SelectTooltip,
|
|
9147
|
-
|
|
9148
|
-
|
|
9150
|
+
gi as SelectTree,
|
|
9151
|
+
G1 as SelectTreemap,
|
|
9149
9152
|
mo as SelectUnitInput,
|
|
9150
9153
|
Yo as SelectUserCell,
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9154
|
+
w1 as SelectValueVisibilityProvider,
|
|
9155
|
+
bi as SelectVenn,
|
|
9156
|
+
ai as SelectViolin,
|
|
9157
|
+
pi as SelectWaffle,
|
|
9158
|
+
Z1 as SelectWaterfall,
|
|
9159
|
+
ii as SelectWordCloud,
|
|
9157
9160
|
a1 as SelectWorkspaceSwitcher,
|
|
9158
|
-
|
|
9161
|
+
Ai as SelectZoomThumbnail,
|
|
9159
9162
|
jl as SelectorIcon,
|
|
9160
9163
|
eo as SendIcon,
|
|
9161
9164
|
Kc as Setting4Icon,
|
|
@@ -9176,11 +9179,11 @@ export {
|
|
|
9176
9179
|
Qt as detectSelectTheme,
|
|
9177
9180
|
Es as dialCodeOf,
|
|
9178
9181
|
sa as passwordScore,
|
|
9179
|
-
|
|
9182
|
+
Ni as resolveSelectTheme,
|
|
9180
9183
|
dc as selectCardBrand,
|
|
9181
9184
|
Ps as selectCardBrandLabel,
|
|
9182
|
-
|
|
9183
|
-
|
|
9185
|
+
u1 as useSelectPageSize,
|
|
9186
|
+
N1 as useSelectToast,
|
|
9184
9187
|
$c as useSelectValueVisibility
|
|
9185
9188
|
};
|
|
9186
9189
|
//# sourceMappingURL=index.js.map
|