@selectwin/kit 0.1.28 → 0.1.30
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/SelectSkeleton.d.ts +6 -0
- package/dist/index.js +739 -736
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as m, Fragment as _e } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as q, useEffect as le, forwardRef as R, useState as D, useId as te, useMemo as xe, useCallback as Te, useLayoutEffect as
|
|
2
|
+
import { useRef as q, useEffect as le, forwardRef as R, useState as D, useId as te, useMemo as xe, useCallback as Te, useLayoutEffect as Be, Fragment as Yt, Children as kl, useContext as zt, createContext as Xt } from "react";
|
|
3
3
|
import Me from "gsap";
|
|
4
4
|
import { createPortal as Ft } from "react-dom";
|
|
5
5
|
import { Link as wl, useNavigate as Sl } from "react-router-dom";
|
|
@@ -20,7 +20,7 @@ function Ll(t, n) {
|
|
|
20
20
|
const c = l.match(/(\d+)[,\s]+(\d+)[,\s]+(\d+)/);
|
|
21
21
|
return c ? [Number(c[1]), Number(c[2]), Number(c[3])] : n;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Js({ className: t, theme: n, glowTarget: l }) {
|
|
24
24
|
const c = q(null);
|
|
25
25
|
return le(() => {
|
|
26
26
|
var Q;
|
|
@@ -29,13 +29,13 @@ function Ks({ className: t, theme: n, glowTarget: l }) {
|
|
|
29
29
|
const a = s.getContext("2d");
|
|
30
30
|
if (!a) return;
|
|
31
31
|
const r = ((Q = window.matchMedia) == null ? void 0 : Q.call(window, "(prefers-reduced-motion: reduce)").matches) ?? !1, d = n === "dark", o = 30, i = 1.2, h = 160, u = 8, f = 2.9, g = 0.32, v = 1.4, y = 18, x = Math.PI * 2, $ = getComputedStyle(s), [_, p, b] = Cl($, "--select-dot", d ? [235, 238, 255] : [64, 68, 92]), [S, k, M] = Ll($.getPropertyValue("--select-primary"), d ? [255, 255, 255] : [33, 37, 41]);
|
|
32
|
-
let w = 0, N = 0, C = [], L = 0,
|
|
33
|
-
const
|
|
32
|
+
let w = 0, N = 0, C = [], L = 0, B = 0, A = null, F = 0;
|
|
33
|
+
const E = { x: 0, y: 0 };
|
|
34
34
|
let T = 0, I = 0, O = -10;
|
|
35
|
-
const W = Me.quickTo(
|
|
35
|
+
const W = Me.quickTo(E, "x", { duration: 0.5, ease: "power3.out" }), Z = Me.quickTo(E, "y", { duration: 0.5, ease: "power3.out" });
|
|
36
36
|
function G() {
|
|
37
37
|
const z = s.getBoundingClientRect();
|
|
38
|
-
L = z.left,
|
|
38
|
+
L = z.left, B = z.top, w = z.width, N = z.height;
|
|
39
39
|
const he = Math.min(window.devicePixelRatio || 1, 2);
|
|
40
40
|
s.width = Math.round(w * he), s.height = Math.round(N * he), a.setTransform(he, 0, 0, he, 0, 0);
|
|
41
41
|
const ie = s.closest(".select-auth") ?? document;
|
|
@@ -46,11 +46,11 @@ function Ks({ className: t, theme: n, glowTarget: l }) {
|
|
|
46
46
|
const Ne = ae + Le * o, Ie = $e + Ce * o;
|
|
47
47
|
C.push({ x: Ne, y: Ie, phase: (Ne + Ie) * 0.013 });
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
E.x === 0 && E.y === 0 && (E.x = T = w / 2, E.y = I = N / 2);
|
|
50
50
|
}
|
|
51
51
|
function J(z, he, ie, pe, de) {
|
|
52
52
|
if (!A) return;
|
|
53
|
-
const ae = A.getBoundingClientRect(), $e = ae.left - L + ae.width / 2, Ce = ae.top -
|
|
53
|
+
const ae = A.getBoundingClientRect(), $e = ae.left - L + ae.width / 2, Ce = ae.top - B + ae.height / 2, Le = ae.width / 2, Ne = ae.height / 2, Ie = (z - $e) / (Le + y), ke = (he - Ce) / (Ne + y), Ue = Math.sqrt(Ie * Ie + ke * ke), je = Ue < 1 ? 1 - Ue : 0, Fe = je * je * (3 - 2 * je);
|
|
54
54
|
if (Fe > 1e-3 || F > 1e-3) {
|
|
55
55
|
const P = on((z - $e) / Math.max(Le, 1), -1, 1) * 10 * Fe, V = on((he - Ce) / Math.max(Ne, 1), -1, 1) * 10 * Fe;
|
|
56
56
|
A.style.setProperty("--select-card-glow", Fe.toFixed(3)), A.style.setProperty("--select-card-glow-rgb", `${ie}, ${pe}, ${de}`), A.style.setProperty("--select-card-glow-x", `${P.toFixed(1)}px`), A.style.setProperty("--select-card-glow-y", `${V.toFixed(1)}px`);
|
|
@@ -66,7 +66,7 @@ function Ks({ className: t, theme: n, glowTarget: l }) {
|
|
|
66
66
|
function me(z) {
|
|
67
67
|
let he, ie;
|
|
68
68
|
z - O < v ? (he = T, ie = I) : (he = w * 0.5 + Math.cos(z * 0.45) * w * 0.3, ie = N * 0.5 + Math.sin(z * 0.6) * N * 0.28), W(he), Z(ie);
|
|
69
|
-
const pe =
|
|
69
|
+
const pe = E.x, de = E.y;
|
|
70
70
|
a.clearRect(0, 0, w, N);
|
|
71
71
|
for (let ae = 0; ae < C.length; ae++) {
|
|
72
72
|
const $e = C[ae], Ce = $e.x - pe, Le = $e.y - de, Ne = Math.sqrt(Ce * Ce + Le * Le), Ie = Ne < h ? 1 - Ne / h : 0, ke = Ie * Ie, Ue = Math.sin(z * 1.4 + $e.phase) * 0.5 + 0.5, je = ke * u, Fe = Ne > 1e-4 ? 1 / Ne : 0, P = $e.x - Ce * Fe * je, V = $e.y - Le * Fe * je, U = 1 + ke * (f - 1) + Ue * 0.14, oe = Math.min(1, g + Ue * 0.08 + ke * (1 - g)), ee = _ + (S - _) * ke | 0, se = p + (k - p) * ke | 0, ue = b + (M - b) * ke | 0;
|
|
@@ -75,22 +75,22 @@ function Ks({ className: t, theme: n, glowTarget: l }) {
|
|
|
75
75
|
a.shadowBlur = 0, J(pe, de, S, k, M);
|
|
76
76
|
}
|
|
77
77
|
function Se(z) {
|
|
78
|
-
T = z.clientX - L, I = z.clientY -
|
|
78
|
+
T = z.clientX - L, I = z.clientY - B, O = Me.ticker.time;
|
|
79
79
|
}
|
|
80
80
|
function ne() {
|
|
81
81
|
const z = s.getBoundingClientRect();
|
|
82
|
-
L = z.left,
|
|
82
|
+
L = z.left, B = z.top;
|
|
83
83
|
}
|
|
84
84
|
G();
|
|
85
85
|
const H = new ResizeObserver(() => {
|
|
86
86
|
G(), r && re();
|
|
87
87
|
});
|
|
88
88
|
return H.observe(s), r ? (re(), () => H.disconnect()) : (window.addEventListener("pointermove", Se, { passive: !0 }), window.addEventListener("scroll", ne, { passive: !0 }), Me.ticker.add(me), () => {
|
|
89
|
-
Me.ticker.remove(me), Me.killTweensOf(
|
|
89
|
+
Me.ticker.remove(me), Me.killTweensOf(E), window.removeEventListener("pointermove", Se), window.removeEventListener("scroll", ne), H.disconnect(), A == null || A.style.removeProperty("--select-card-glow");
|
|
90
90
|
});
|
|
91
91
|
}, [n, l]), /* @__PURE__ */ e("canvas", { ref: c, className: t, "aria-hidden": "true" });
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const Qs = ["dots", "plexus", "grid", "flow", "circuit"], tt = Math.PI * 2, Ye = (t, n, l) => t < n ? n : t > l ? l : t, $t = (t, n, l) => t + (n - t) * l;
|
|
94
94
|
function Al(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;
|
|
@@ -107,7 +107,7 @@ function Fl(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 Bl = (t) => {
|
|
111
111
|
let d = [], o = 0;
|
|
112
112
|
function i() {
|
|
113
113
|
const u = t.w(), f = t.h();
|
|
@@ -124,7 +124,7 @@ const El = (t) => {
|
|
|
124
124
|
g.clearRect(0, 0, S, k);
|
|
125
125
|
const M = v.x, w = v.y;
|
|
126
126
|
for (const N of d) {
|
|
127
|
-
const C = N.x - M, L = N.y - w,
|
|
127
|
+
const C = N.x - M, L = N.y - w, B = Math.hypot(C, L), A = f > 0 && B < 150 ? 1 - B / 150 : 0, F = A * A * f, E = Math.sin(u * 1.1 + N.phase) * 0.5 + 0.5, T = F * 6, I = B > 1e-3 ? 1 / B : 0, O = N.x - C * I * T, W = N.y - L * I * T, Z = 1 + F * (2.4 - 1) + E * 0.1, G = Math.min(1, 0.3 + E * 0.06 + F * (1 - 0.3)), J = y + (_ - y) * F | 0, re = x + (p - x) * F | 0, me = $ + (b - $) * F | 0;
|
|
128
128
|
t.dark && F > 0.14 ? (g.shadowColor = `rgba(${_},${p},${b},${0.5 * F})`, g.shadowBlur = 10 * F) : g.shadowBlur = 0, g.beginPath(), g.arc(O, W, 1.2 * Z, 0, tt), g.fillStyle = `rgba(${J},${re},${me},${G})`, g.fill();
|
|
129
129
|
}
|
|
130
130
|
g.shadowBlur = 0;
|
|
@@ -138,7 +138,7 @@ const El = (t) => {
|
|
|
138
138
|
h(0, 0), t.clearGlow();
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
|
-
},
|
|
141
|
+
}, El = (t) => {
|
|
142
142
|
let c = 0, s = 0, a = [];
|
|
143
143
|
function r() {
|
|
144
144
|
c = t.w(), s = t.h();
|
|
@@ -206,17 +206,17 @@ const El = (t) => {
|
|
|
206
206
|
k.addColorStop(0, `rgba(${_},${p},${b},0)`), k.addColorStop(0.5, `rgba(${_},${p},${b},${t.dark ? 0.08 : 0.05})`), k.addColorStop(1, `rgba(${_},${p},${b},0)`), g.fillStyle = k, g.fillRect(0, S - 90, c, 90 * 2), g.strokeStyle = `rgba(${_},${p},${b},0.18)`, g.beginPath(), g.moveTo(0, S), g.lineTo(c, S), g.stroke();
|
|
207
207
|
const M = v.x, w = v.y;
|
|
208
208
|
for (let N = 0; N < r; N++) {
|
|
209
|
-
const C = o + N * 44, L = 1 - Math.min(1, Math.abs(C - S) / 90),
|
|
209
|
+
const C = o + N * 44, L = 1 - Math.min(1, Math.abs(C - S) / 90), B = L * L * 0.8;
|
|
210
210
|
for (let A = 0; A < a; A++) {
|
|
211
211
|
const F = d + A * 44;
|
|
212
|
-
let
|
|
212
|
+
let E = B;
|
|
213
213
|
if (f) {
|
|
214
214
|
const W = Math.hypot(F - M, C - w);
|
|
215
|
-
W < 120 && (
|
|
215
|
+
W < 120 && (E = Math.max(E, (1 - W / 120) ** 2));
|
|
216
216
|
}
|
|
217
|
-
if (
|
|
218
|
-
const T = y + (_ - y) *
|
|
219
|
-
g.beginPath(), g.arc(F, C, 1 +
|
|
217
|
+
if (E < 0.02) continue;
|
|
218
|
+
const T = y + (_ - y) * E | 0, I = x + (p - x) * E | 0, O = $ + (b - $) * E | 0;
|
|
219
|
+
g.beginPath(), g.arc(F, C, 1 + E * 2.2, 0, tt), g.fillStyle = `rgba(${T},${I},${O},${0.3 + E * 0.6})`, g.fill();
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}
|
|
@@ -253,8 +253,8 @@ const El = (t) => {
|
|
|
253
253
|
for (const S of s) {
|
|
254
254
|
let k = a(S.x, S.y, i), M = 0;
|
|
255
255
|
if (h) {
|
|
256
|
-
const
|
|
257
|
-
F < 160 && (M = 1 - F / 160, k = $t(k, Math.atan2(A,
|
|
256
|
+
const B = S.x - p, A = S.y - b, F = Math.hypot(B, A);
|
|
257
|
+
F < 160 && (M = 1 - F / 160, k = $t(k, Math.atan2(A, B) + Math.PI / 2, M * 0.7));
|
|
258
258
|
}
|
|
259
259
|
const w = 0.9 + M * 0.6;
|
|
260
260
|
if (S.x += Math.cos(k) * w, S.y += Math.sin(k) * w, S.hist.push(S.x, S.y), S.hist.length > 9 * 2 && S.hist.splice(0, S.hist.length - 9 * 2), ++S.life > S.max || S.x < -20 || S.x > l + 20 || S.y < -20 || S.y > c + 20) {
|
|
@@ -263,9 +263,9 @@ const El = (t) => {
|
|
|
263
263
|
}
|
|
264
264
|
const N = g + (x - g) * M | 0, C = v + ($ - v) * M | 0, L = y + (_ - y) * M | 0;
|
|
265
265
|
u.strokeStyle = `rgba(${N},${C},${L},${0.16 + M * 0.5})`, u.lineWidth = 1 + M * 0.8, u.beginPath();
|
|
266
|
-
for (let
|
|
267
|
-
const A = S.hist[
|
|
268
|
-
|
|
266
|
+
for (let B = 0; B < S.hist.length; B += 2) {
|
|
267
|
+
const A = S.hist[B], F = S.hist[B + 1];
|
|
268
|
+
B === 0 ? u.moveTo(A, F) : u.lineTo(A, F);
|
|
269
269
|
}
|
|
270
270
|
u.stroke();
|
|
271
271
|
}
|
|
@@ -358,13 +358,13 @@ const El = (t) => {
|
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
}, Dl = {
|
|
361
|
-
dots:
|
|
362
|
-
plexus:
|
|
361
|
+
dots: Bl,
|
|
362
|
+
plexus: El,
|
|
363
363
|
grid: Il,
|
|
364
364
|
flow: Pl,
|
|
365
365
|
circuit: Rl
|
|
366
366
|
};
|
|
367
|
-
function
|
|
367
|
+
function ea({
|
|
368
368
|
className: t,
|
|
369
369
|
theme: n,
|
|
370
370
|
glowTarget: l,
|
|
@@ -394,7 +394,7 @@ function Qs({
|
|
|
394
394
|
function L() {
|
|
395
395
|
$ > 1e-3 && (x == null || x.style.setProperty("--select-card-glow", "0")), $ = 0;
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const B = { ctx: r, w: () => f, h: () => g, ink: h, accent: u, dark: o, pointer: b, cardGlow: C, clearGlow: L }, A = Dl[c](B);
|
|
398
398
|
function F() {
|
|
399
399
|
const G = a.getBoundingClientRect();
|
|
400
400
|
v = G.left, y = G.top, f = G.width, g = G.height;
|
|
@@ -403,10 +403,10 @@ function Qs({
|
|
|
403
403
|
const re = a.closest(".select-auth") ?? document;
|
|
404
404
|
x = l ? re.querySelector(l) : null, p.x === 0 && p.y === 0 && (p.x = S = f / 2, p.y = k = g / 2), A.build();
|
|
405
405
|
}
|
|
406
|
-
let
|
|
406
|
+
let E = -1;
|
|
407
407
|
function T(G) {
|
|
408
|
-
const J =
|
|
409
|
-
|
|
408
|
+
const J = E < 0 ? 0 : Math.min(G - E, 0.05);
|
|
409
|
+
E = G, b.active = G - M < _, w(b.active ? S : f / 2), N(b.active ? k : g / 2), b.x = p.x, b.y = p.y, A.frame(G, J);
|
|
410
410
|
}
|
|
411
411
|
function I(G) {
|
|
412
412
|
S = G.clientX - v, k = G.clientY - y, M = Me.ticker.time;
|
|
@@ -424,7 +424,7 @@ function Qs({
|
|
|
424
424
|
});
|
|
425
425
|
}, [n, l, c]), /* @__PURE__ */ e("canvas", { ref: s, className: t, "aria-hidden": "true" });
|
|
426
426
|
}
|
|
427
|
-
const
|
|
427
|
+
const ta = R(function({ title: n, subtitle: l, logo: c, mark: s, children: a, footer: r, className: d, ...o }, i) {
|
|
428
428
|
return /* @__PURE__ */ m("div", { ref: i, ...o, className: `select-card${d ? " " + d : ""}`, children: [
|
|
429
429
|
/* @__PURE__ */ m("div", { className: "select-card__body", children: [
|
|
430
430
|
c && /* @__PURE__ */ e("div", { className: "select-card__brand", children: c }),
|
|
@@ -483,7 +483,7 @@ const ea = R(function({ title: n, subtitle: l, logo: c, mark: s, children: a, fo
|
|
|
483
483
|
!s && r && /* @__PURE__ */ e("span", { className: "select-btn__icon select-btn__icon--trailing", children: r })
|
|
484
484
|
] });
|
|
485
485
|
});
|
|
486
|
-
function
|
|
486
|
+
function na() {
|
|
487
487
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: [
|
|
488
488
|
/* @__PURE__ */ e(
|
|
489
489
|
"path",
|
|
@@ -515,7 +515,7 @@ function ta() {
|
|
|
515
515
|
)
|
|
516
516
|
] });
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function la() {
|
|
519
519
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
520
520
|
"path",
|
|
521
521
|
{
|
|
@@ -536,7 +536,7 @@ function be() {
|
|
|
536
536
|
function On() {
|
|
537
537
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M9.57 5.93L3.5 12l6.07 6.07M20.5 12H3.67" }) });
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function ca() {
|
|
540
540
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10" }) });
|
|
541
541
|
}
|
|
542
542
|
function Jt() {
|
|
@@ -561,7 +561,7 @@ function Hn() {
|
|
|
561
561
|
function Ke() {
|
|
562
562
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M6 6 18 18M18 6 6 18" }) });
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function sa() {
|
|
565
565
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z" }) });
|
|
566
566
|
}
|
|
567
567
|
function Tl() {
|
|
@@ -572,23 +572,23 @@ function Tl() {
|
|
|
572
572
|
/* @__PURE__ */ e("path", { d: "M14 21a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z" })
|
|
573
573
|
] });
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function aa() {
|
|
576
576
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
577
577
|
/* @__PURE__ */ e("path", { d: "M22 12c0 5.52-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2s10 4.48 10 10Z" }),
|
|
578
578
|
/* @__PURE__ */ e("path", { d: "m15.71 15.18-3.1-1.85c-.54-.32-.98-1.09-.98-1.72v-4.1" })
|
|
579
579
|
] });
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function oa() {
|
|
582
582
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
583
583
|
/* @__PURE__ */ e("path", { d: "M9.25 9.05a8 8 0 0 0 5.5 0" }),
|
|
584
584
|
/* @__PURE__ */ e("path", { d: "M16.82 2H7.18C5.05 2 3.32 3.74 3.32 5.86v14.09c0 1.8 1.29 2.56 2.87 1.69l4.88-2.71c.52-.29 1.36-.29 1.87 0l4.88 2.71c1.58.88 2.87.12 2.87-1.69V5.86C20.68 3.74 18.95 2 16.82 2Z" }),
|
|
585
585
|
/* @__PURE__ */ e("path", { d: "M16.82 2H7.18C5.05 2 3.32 3.74 3.32 5.86v14.09c0 1.8 1.29 2.56 2.87 1.69l4.88-2.71c.52-.29 1.36-.29 1.87 0l4.88 2.71c1.58.88 2.87.12 2.87-1.69V5.86C20.68 3.74 18.95 2 16.82 2Z" })
|
|
586
586
|
] });
|
|
587
587
|
}
|
|
588
|
-
const
|
|
588
|
+
const ra = R(function({ filled: n = !1, className: l, ...c }, s) {
|
|
589
589
|
return n ? /* @__PURE__ */ e("svg", { ref: s, ...c, className: l, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M5.74 16c.11-.49-.09-1.19-.44-1.54l-2.43-2.43c-.76-.76-1.06-1.57-.84-2.27.23-.7.94-1.18 2-1.36l3.12-.52c.45-.08 1-.48 1.21-.89l1.72-3.45C10.58 2.55 11.26 2 12 2s1.42.55 1.92 1.54l1.72 3.45c.13.26.4.51.69.68L5.56 18.44c-.14.14-.38.01-.34-.19L5.74 16ZM18.7 14.462c-.36.36-.56 1.05-.44 1.54l.69 3.01c.29 1.25.11 2.19-.51 2.64a1.5 1.5 0 0 1-.9.27c-.51 0-1.11-.19-1.77-.58l-2.93-1.74c-.46-.27-1.22-.27-1.68 0l-2.93 1.74c-1.11.65-2.06.76-2.67.31-.23-.17-.4-.4-.51-.7l12.16-12.16c.46-.46 1.11-.67 1.74-.56l1.01.17c1.06.18 1.77.66 2 1.36.22.7-.08 1.51-.84 2.27l-2.42 2.43Z" }) }) : /* @__PURE__ */ e("svg", { ref: s, ...c, className: l, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "m13.73 3.51 1.76 3.52c.24.49.88.96 1.42 1.05l3.19.53c2.04.34 2.52 1.82 1.05 3.28l-2.48 2.48c-.42.42-.65 1.23-.52 1.81l.71 3.07c.56 2.43-.73 3.37-2.88 2.1l-2.99-1.77c-.54-.32-1.43-.32-1.98 0l-2.99 1.77c-2.14 1.27-3.44.32-2.88-2.1l.71-3.07c.13-.58-.1-1.39-.52-1.81l-2.48-2.48c-1.46-1.46-.99-2.94 1.05-3.28l3.19-.53c.53-.09 1.17-.56 1.41-1.05l1.76-3.52c.96-1.91 2.52-1.91 3.47 0Z" }) });
|
|
590
590
|
});
|
|
591
|
-
function
|
|
591
|
+
function ia() {
|
|
592
592
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M16.96 6.17c2 1.39 3.38 3.6 3.66 6.15M3.49 12.37a8.601 8.601 0 0 1 3.6-6.15M8.19 20.94c1.16.59 2.48.92 3.87.92 1.34 0 2.6-.3 3.73-.85M12.06 7.7a2.78 2.78 0 1 0 0-5.56 2.78 2.78 0 0 0 0 5.56ZM4.83 19.92a2.78 2.78 0 1 0 0-5.56 2.78 2.78 0 0 0 0 5.56ZM19.17 19.92a2.78 2.78 0 1 0 0-5.56 2.78 2.78 0 0 0 0 5.56Z" }) });
|
|
593
593
|
}
|
|
594
594
|
function Wl() {
|
|
@@ -616,10 +616,10 @@ function Ol() {
|
|
|
616
616
|
/* @__PURE__ */ e("path", { d: "M11.995 17h.009" })
|
|
617
617
|
] });
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function da() {
|
|
620
620
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10ZM20.59 22c0-3.87-3.85-7-8.59-7s-8.59 3.13-8.59 7" }) });
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function ua() {
|
|
623
623
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
624
624
|
/* @__PURE__ */ e("path", { d: "M12.02 2.91c-3.31 0-6 2.69-6 6v2.89c0 .61-.26 1.54-.57 2.06L4.3 15.77c-.71 1.18-.22 2.49 1.08 2.93 4.31 1.44 8.96 1.44 13.27 0 1.21-.4 1.74-1.83 1.08-2.93l-1.15-1.91c-.3-.52-.56-1.45-.56-2.06V8.91c0-3.3-2.7-6-6-6Z" }),
|
|
625
625
|
/* @__PURE__ */ e("path", { d: "M13.87 3.2a6.754 6.754 0 0 0-3.7 0c.29-.74 1.01-1.26 1.85-1.26.84 0 1.56.52 1.85 1.26Z" }),
|
|
@@ -632,7 +632,7 @@ function Hl() {
|
|
|
632
632
|
/* @__PURE__ */ e("path", { d: "M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM2.23 8.01 21.45 8" })
|
|
633
633
|
] });
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function ha() {
|
|
636
636
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
637
637
|
/* @__PURE__ */ e("path", { d: "M5 15c-1.5 1.3-2 5-2 5s3.7-.5 5-2c.8-.9.8-2.2 0-3a2.1 2.1 0 0 0-3 0Z" }),
|
|
638
638
|
/* @__PURE__ */ e("path", { d: "M9 12a13 13 0 0 1 9-9 13 13 0 0 1-9 9Z" }),
|
|
@@ -670,25 +670,25 @@ function Ul() {
|
|
|
670
670
|
function nt() {
|
|
671
671
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M6 12h12M12 18V6" }) });
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function pa() {
|
|
674
674
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
675
675
|
/* @__PURE__ */ e("path", { d: "M17 6v10c0 4-1 5-5 5H6c-4 0-5-1-5-5V6c0-4 1-5 5-5h6c4 0 5 1 5 5ZM11 4.5H7" }),
|
|
676
676
|
/* @__PURE__ */ e("path", { d: "M9 18.1A1.55 1.55 0 1 0 9 15a1.55 1.55 0 0 0 0 3.1Z" })
|
|
677
677
|
] });
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function ma() {
|
|
680
680
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
681
681
|
/* @__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" }),
|
|
682
682
|
/* @__PURE__ */ e("path", { d: "M9 2h6" })
|
|
683
683
|
] });
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function fa() {
|
|
686
686
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
687
687
|
/* @__PURE__ */ e("path", { 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" }),
|
|
688
688
|
/* @__PURE__ */ e("path", { d: "m17 9-3.13 2.5c-1.03.82-2.72.82-3.75 0L7 9" })
|
|
689
689
|
] });
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function _a() {
|
|
692
692
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
693
693
|
"path",
|
|
694
694
|
{
|
|
@@ -697,20 +697,20 @@ function fa() {
|
|
|
697
697
|
}
|
|
698
698
|
) });
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function va() {
|
|
701
701
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M17.05 12.54c-.02-2.05 1.68-3.03 1.75-3.08-.95-1.4-2.44-1.59-2.97-1.61-1.26-.13-2.47.74-3.11.74-.64 0-1.63-.72-2.69-.7-1.38.02-2.66.8-3.37 2.04-1.44 2.5-.37 6.19 1.03 8.22.69.99 1.5 2.1 2.57 2.06 1.03-.04 1.42-.66 2.66-.66 1.24 0 1.59.66 2.68.64 1.11-.02 1.81-1 2.49-2 .78-1.15 1.1-2.26 1.12-2.32-.02-.01-2.15-.83-2.17-3.27ZM15.1 6.34c.56-.69.94-1.63.84-2.59-.81.03-1.8.54-2.39 1.22-.52.6-.98 1.57-.86 2.49.91.07 1.84-.46 2.41-1.12Z" }) });
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function ga() {
|
|
704
704
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
705
705
|
/* @__PURE__ */ e("path", { d: "M12 14.88c-.91 0-1.65-.74-1.65-1.65v-2.47c0-.91.74-1.65 1.65-1.65.91 0 1.65.74 1.65 1.65v2.47c0 .91-.74 1.65-1.65 1.65Z" }),
|
|
706
706
|
/* @__PURE__ */ e("path", { d: "M16.98 13.47c-.2 2.58-2.36 4.6-4.98 4.6-2.76 0-5-2.24-5-5v-2.14c0-2.76 2.24-5 5-5 2.59 0 4.72 1.97 4.97 4.49" }),
|
|
707
707
|
/* @__PURE__ */ e("path", { d: "M15 2h2c3 0 5 2 5 5v2M2 9V7c0-3 2-5 5-5h2M15 22h2c3 0 5-2 5-5v-2M2 15v2c0 3 2 5 5 5h2" })
|
|
708
708
|
] });
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function ba() {
|
|
711
711
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M14.43 5.93L20.5 12l-6.07 6.07M3.5 12h16.83" }) });
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function xa() {
|
|
714
714
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
715
715
|
/* @__PURE__ */ e("path", { d: "M10.49 2.23 5.5 4.11c-1.15.43-2.09 1.79-2.09 3.01v7.43c0 1.18.78 2.73 1.73 3.44l4.3 3.21c1.41 1.06 3.73 1.06 5.14 0l4.3-3.21c.95-.71 1.73-2.26 1.73-3.44V7.12c0-1.23-.94-2.59-2.09-3.02l-4.99-1.87c-.85-.31-2.21-.31-3.04 0Z" }),
|
|
716
716
|
/* @__PURE__ */ e("path", { d: "m9.05 11.87 1.61 1.61 4.3-4.3" })
|
|
@@ -738,23 +738,23 @@ function ql() {
|
|
|
738
738
|
/* @__PURE__ */ e("path", { d: "m7.75 12 2.83 2.83 5.67-5.66" })
|
|
739
739
|
] });
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function ya() {
|
|
742
742
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
743
743
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "4" }),
|
|
744
744
|
/* @__PURE__ */ e("path", { d: "M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.9 7.9" })
|
|
745
745
|
] });
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function Na() {
|
|
748
748
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M16.29 2.15H7.7C6 2.15 5.25 3 4.79 4.04L2.23 9.8c-.46 1.04-.21 2.59.56 3.43l6.86 7.54c1.3 1.42 3.42 1.42 4.71 0l6.85-7.55c.77-.85 1.02-2.39.55-3.43L19.2 4.03c-.46-1.03-1.21-1.88-2.91-1.88ZM3.5 8h17" }) });
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function Ma() {
|
|
751
751
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
752
752
|
/* @__PURE__ */ e("path", { d: "M6.7 18H4.15C2.72 18 2 17.28 2 15.85V4.15C2 2.72 2.72 2 4.15 2h4.3c1.43 0 2.15.72 2.15 2.15V6" }),
|
|
753
753
|
/* @__PURE__ */ e("path", { d: "M17.37 8.42v11.16c0 1.61-.8 2.42-2.41 2.42H9.12c-1.61 0-2.42-.81-2.42-2.42V8.42C6.7 6.81 7.51 6 9.12 6h5.84c1.61 0 2.41.81 2.41 2.42Z" }),
|
|
754
754
|
/* @__PURE__ */ e("path", { d: "M13.4 6V4.15c0-1.43.72-2.15 2.15-2.15h4.3C21.28 2 22 2.72 22 4.15v11.7c0 1.43-.72 2.15-2.15 2.15h-2.48M10 11h4M10 14h4M12 22v-3" })
|
|
755
755
|
] });
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function $a() {
|
|
758
758
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
759
759
|
/* @__PURE__ */ e("path", { d: "M19.79 14.93a7.575 7.575 0 0 1-7.6 1.87l-4.71 4.7c-.34.35-1.01.56-1.49.49l-2.18-.3c-.72-.1-1.39-.78-1.5-1.5l-.3-2.18c-.07-.48.16-1.15.49-1.49l4.7-4.7c-.8-2.6-.18-5.55 1.88-7.6 2.95-2.95 7.74-2.95 10.7 0 2.96 2.95 2.96 7.76.01 10.71ZM6.89 17.49l2.3 2.3" }),
|
|
760
760
|
/* @__PURE__ */ e("path", { d: "M14.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z" })
|
|
@@ -763,7 +763,7 @@ function Ma() {
|
|
|
763
763
|
function Un() {
|
|
764
764
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M21 5.98c-3.33-.33-6.68-.5-10.02-.5-1.98 0-3.96.1-5.94.3L3 5.98M8.5 4.97l.22-1.31C8.88 2.71 9 2 10.69 2h2.62c1.69 0 1.82.75 1.97 1.67l.22 1.3M18.85 9.14l-.65 10.07C18.09 20.78 18 22 15.21 22H8.79C6 22 5.91 20.78 5.8 19.21L5.15 9.14M10.33 16.5h3.33M9.5 12.5h5" }) });
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function ka() {
|
|
767
767
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "m9.02 2.84-5.39 4.2C2.73 7.74 2 9.23 2 10.36v7.41c0 2.32 1.89 4.22 4.21 4.22h11.58c2.32 0 4.21-1.9 4.21-4.21V10.5c0-1.21-.81-2.76-1.8-3.45l-6.18-4.33c-1.4-.98-3.65-.93-5 .12ZM12 17.99v-3" }) });
|
|
768
768
|
}
|
|
769
769
|
function Yl() {
|
|
@@ -772,29 +772,29 @@ function Yl() {
|
|
|
772
772
|
/* @__PURE__ */ e("path", { d: "M2 12.88v-1.76c0-1.04.85-1.9 1.9-1.9 1.81 0 2.55-1.28 1.64-2.85-.52-.9-.21-2.07.7-2.59l1.73-.99c.79-.47 1.81-.19 2.28.6l.11.19c.9 1.57 2.38 1.57 3.29 0l.11-.19c.47-.79 1.49-1.07 2.28-.6l1.73.99c.91.52 1.22 1.69.7 2.59-.91 1.57-.17 2.85 1.64 2.85 1.04 0 1.9.85 1.9 1.9v1.76c0 1.04-.85 1.9-1.9 1.9-1.81 0-2.55 1.28-1.64 2.85.52.91.21 2.07-.7 2.59l-1.73.99c-.79.47-1.81.19-2.28-.6l-.11-.19c-.9-1.57-2.38-1.57-3.29 0l-.11.19c-.47.79-1.49 1.07-2.28.6l-1.73-.99a1.899 1.899 0 0 1-.7-2.59c.91-1.57.17-2.85-1.64-2.85-1.05 0-1.9-.86-1.9-1.9Z" })
|
|
773
773
|
] });
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function wa() {
|
|
776
776
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
777
777
|
/* @__PURE__ */ e("path", { d: "M13 11.15H7M2 11.15V6.53c0-2.04 1.65-3.69 3.69-3.69h5.62c2.04 0 3.69 1.27 3.69 3.31" }),
|
|
778
778
|
/* @__PURE__ */ e("path", { d: "M17.48 12.2c-.5.48-.74 1.22-.54 1.98.25.93 1.17 1.52 2.13 1.52H20v1.45c0 2.21-1.79 4-4 4H6c-2.21 0-4-1.79-4-4v-7c0-2.21 1.79-4 4-4h10c2.2 0 4 1.8 4 4v1.45h-1.08c-.56 0-1.07.22-1.44.6Z" }),
|
|
779
779
|
/* @__PURE__ */ e("path", { d: "M22 12.62v2.06c0 .56-.46 1.02-1.03 1.02h-1.93c-1.08 0-2.07-.79-2.16-1.87-.06-.63.18-1.22.6-1.63.37-.38.88-.6 1.44-.6h2.05c.57 0 1.03.46 1.03 1.02Z" })
|
|
780
780
|
] });
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Sa() {
|
|
783
783
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
784
784
|
/* @__PURE__ */ e("path", { d: "M2 8.505h20M6 16.505h2M10.5 16.505h4" }),
|
|
785
785
|
/* @__PURE__ */ e("path", { d: "M6.44 3.505h11.11c3.56 0 4.45.88 4.45 4.39v8.21c0 3.51-.89 4.39-4.44 4.39H6.44c-3.55.01-4.44-.87-4.44-4.38v-8.22c0-3.51.89-4.39 4.44-4.39Z" })
|
|
786
786
|
] });
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function Ca() {
|
|
789
789
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
790
790
|
/* @__PURE__ */ e("path", { d: "m13.26 3.6-8.21 8.69c-.31.33-.61.98-.67 1.43l-.37 3.24c-.13 1.17.71 1.97 1.87 1.77l3.22-.55c.45-.08 1.08-.41 1.39-.75l8.21-8.69c1.42-1.5 2.06-3.21-.15-5.3-2.2-2.07-3.87-1.34-5.29.16Z" }),
|
|
791
791
|
/* @__PURE__ */ e("path", { d: "M11.89 5.05a6.126 6.126 0 0 0 5.45 5.15M3 22h18" })
|
|
792
792
|
] });
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function La() {
|
|
795
795
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "m7.4 6.32 8.49-2.83c3.81-1.27 5.88.81 4.62 4.62l-2.83 8.49c-1.9 5.71-5.02 5.71-6.92 0l-.84-2.52-2.52-.84c-5.71-1.9-5.71-5.01 0-6.92ZM10.11 13.65l3.58-3.59" }) });
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Aa() {
|
|
798
798
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
799
799
|
/* @__PURE__ */ e("path", { d: "M6 10V8c0-3.31 1-6 6-6s6 2.69 6 6v2M12 18.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" }),
|
|
800
800
|
/* @__PURE__ */ e("path", { d: "M17 22H7c-4 0-5-1-5-5v-2c0-4 1-5 5-5h10c4 0 5 1 5 5v2c0 4-1 5-5 5Z" })
|
|
@@ -809,7 +809,7 @@ function qn() {
|
|
|
809
809
|
function Yn() {
|
|
810
810
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M19.92 15.05L13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52" }) });
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function Fa() {
|
|
813
813
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M9.32 6.5l2.56-2.56 2.56 2.56M11.88 14.18V4.01M4 12c0 4.42 3 8 8 8s8-3.58 8-8" }) });
|
|
814
814
|
}
|
|
815
815
|
function zl() {
|
|
@@ -824,7 +824,7 @@ function Xl() {
|
|
|
824
824
|
/* @__PURE__ */ e("path", { d: "M14.5 4.5v2c0 1.1.9 2 2 2h2M8 13h4M8 17h8" })
|
|
825
825
|
] });
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function Ba() {
|
|
828
828
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
829
829
|
/* @__PURE__ */ e("path", { d: "m3.989 14.66-1.52-1.52c-.62-.62-.62-1.64 0-2.26l1.52-1.52c.26-.26.47-.77.47-1.13V6.08c0-.88.72-1.6 1.6-1.6h2.15c.36 0 .87-.21 1.13-.47l1.52-1.52c.62-.62 1.64-.62 2.26 0l1.52 1.52c.26.26.77.47 1.13.47h2.15c.88 0 1.6.72 1.6 1.6v2.15c0 .36.21.87.47 1.13l1.52 1.52c.62.62.62 1.64 0 2.26l-1.52 1.52c-.26.26-.47.77-.47 1.13v2.15c0 .88-.72 1.6-1.6 1.6h-2.15c-.36 0-.87.21-1.13.47l-1.52 1.52c-.62.62-1.64.62-2.26 0l-1.52-1.52c-.26-.26-.77-.47-1.13-.47h-2.15c-.88 0-1.6-.72-1.6-1.6v-2.15c0-.37-.21-.88-.47-1.13ZM9 15l6-6" }),
|
|
830
830
|
/* @__PURE__ */ e("path", { d: "M14.495 14.5h.009M9.495 9.5h.008" })
|
|
@@ -836,23 +836,23 @@ function Ea() {
|
|
|
836
836
|
/* @__PURE__ */ e("path", { d: "m5 17 4.59-5.36c.76-.88 2.11-.94 2.93-.11l.95.95c.82.82 2.17.77 2.93-.11L21 7" })
|
|
837
837
|
] });
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function Ia() {
|
|
840
840
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
841
841
|
/* @__PURE__ */ e("path", { d: "M3.01 11.22v4.49C3.01 20.2 4.81 22 9.3 22h5.39c4.49 0 6.29-1.8 6.29-6.29v-4.49" }),
|
|
842
842
|
/* @__PURE__ */ e("path", { d: "M12 12c1.83 0 3.18-1.49 3-3.32L14.34 2H9.67L9 8.68C8.82 10.51 10.17 12 12 12Z" }),
|
|
843
843
|
/* @__PURE__ */ e("path", { d: "M18.31 12c2.02 0 3.5-1.64 3.3-3.65l-.28-2.75C20.97 3 19.97 2 17.35 2H14.3l.7 7.01c.17 1.65 1.66 2.99 3.31 2.99ZM5.64 12c1.65 0 3.14-1.34 3.3-2.99l.22-2.21.48-4.8H6.59C3.97 2 2.97 3 2.61 5.6l-.27 2.75C2.14 10.36 3.62 12 5.64 12ZM12 17c-1.67 0-2.5.83-2.5 2.5V22h5v-2.5c0-1.67-.83-2.5-2.5-2.5Z" })
|
|
844
844
|
] });
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Pa() {
|
|
847
847
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M5 10h2c2 0 3-1 3-3V5c0-2-1-3-3-3H5C3 2 2 3 2 5v2c0 2 1 3 3 3ZM17 10h2c2 0 3-1 3-3V5c0-2-1-3-3-3h-2c-2 0-3 1-3 3v2c0 2 1 3 3 3ZM17 22h2c2 0 3-1 3-3v-2c0-2-1-3-3-3h-2c-2 0-3 1-3 3v2c0 2 1 3 3 3ZM5 22h2c2 0 3-1 3-3v-2c0-2-1-3-3-3H5c-2 0-3 1-3 3v2c0 2 1 3 3 3Z" }) });
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function Ra() {
|
|
850
850
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M11.92 22c5.5 0 10-4.5 10-10s-4.5-10-10-10-10 4.5-10 10 4.5 10 10 10ZM7.92 12h8" }) });
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function Da() {
|
|
853
853
|
return /* @__PURE__ */ e("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M3 7h18M3 12h18M3 17h18" }) });
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function Ta() {
|
|
856
856
|
return /* @__PURE__ */ m("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
857
857
|
/* @__PURE__ */ e("path", { d: "M13 22H5c-2 0-3-1-3-3v-8c0-2 1-3 3-3h5v11c0 2 1 3 3 3ZM10.11 4c-.08.3-.11.63-.11 1v3H5V6c0-1.1.9-2 2-2h3.11ZM14 8v5M18 8v5M17 17h-2c-.55 0-1 .45-1 1v4h4v-4c0-.55-.45-1-1-1ZM6 13v4" }),
|
|
858
858
|
/* @__PURE__ */ e("path", { d: "M10 19V5c0-2 1-3 3-3h6c2 0 3 1 3 3v14c0 2-1 3-3 3h-6c-2 0-3-1-3-3Z" })
|
|
@@ -866,7 +866,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
866
866
|
] }),
|
|
867
867
|
s
|
|
868
868
|
] });
|
|
869
|
-
}), We = R(function({ label: n, value: l, onChange: c, type: s = "text", labelAction: a, info: r, description: d, hint: o, error: i, prefix: h, suffix: u, mono: f, autoComplete: g, placeholder: v, required: y, disabled: x, readOnly: $, name: _, id: p, minLength: b, maxLength: S, min: k, max: M, step: w, inputMode: N, autoFocus: C, onBlur: L, onKeyDown:
|
|
869
|
+
}), We = R(function({ label: n, value: l, onChange: c, type: s = "text", labelAction: a, info: r, description: d, hint: o, error: i, prefix: h, suffix: u, mono: f, autoComplete: g, placeholder: v, required: y, disabled: x, readOnly: $, name: _, id: p, minLength: b, maxLength: S, min: k, max: M, step: w, inputMode: N, autoFocus: C, onBlur: L, onKeyDown: B, size: A = "md", className: F, ...E }, T) {
|
|
870
870
|
const I = te(), O = p ?? I, [W, Z] = D(!1), G = s === "password", J = G && W ? "text" : s, re = i ? `${O}-err` : o ? `${O}-hint` : void 0, me = h != null || u != null, Se = s === "number" && !me && !$, ne = l === "" ? null : Number(l), H = (ie) => {
|
|
871
871
|
const pe = Number(w ?? 1) || 1;
|
|
872
872
|
let ae = (ne != null && Number.isFinite(ne) ? ne : 0) + ie * pe;
|
|
@@ -880,7 +880,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
880
880
|
value: l,
|
|
881
881
|
onChange: (ie) => c(ie.target.value),
|
|
882
882
|
onBlur: L,
|
|
883
|
-
onKeyDown:
|
|
883
|
+
onKeyDown: B,
|
|
884
884
|
autoComplete: g,
|
|
885
885
|
placeholder: v,
|
|
886
886
|
required: y,
|
|
@@ -898,7 +898,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
898
898
|
"aria-describedby": re
|
|
899
899
|
}
|
|
900
900
|
);
|
|
901
|
-
return /* @__PURE__ */ m("div", { ref: T, ...
|
|
901
|
+
return /* @__PURE__ */ m("div", { ref: T, ...E, className: `select-field${A === "sm" ? " select-field--sm" : ""}${F ? " " + F : ""}`, children: [
|
|
902
902
|
(n || r || a) && /* @__PURE__ */ e(lt, { htmlFor: O, label: n, info: r, action: a }),
|
|
903
903
|
d && /* @__PURE__ */ e("p", { className: "select-field__desc", children: d }),
|
|
904
904
|
/* @__PURE__ */ m("div", { className: `select-input-wrap${me ? " select-input-wrap--affixed" : ""}${i ? " select-input-wrap--error" : ""}`, children: [
|
|
@@ -944,7 +944,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
944
944
|
] }),
|
|
945
945
|
i ? /* @__PURE__ */ e("p", { id: `${O}-err`, className: "select-field__error", children: i }) : o ? /* @__PURE__ */ e("p", { id: `${O}-hint`, className: "select-field__hint", children: o }) : null
|
|
946
946
|
] });
|
|
947
|
-
}),
|
|
947
|
+
}), Wa = R(function({ label: n, checked: l, onChange: c, disabled: s, hint: a, name: r, className: d, ...o }, i) {
|
|
948
948
|
return /* @__PURE__ */ m("span", { ref: i, ...o, className: `select-checkbox-field${s ? " select-checkbox-field--disabled" : ""}${d ? " " + d : ""}`, children: [
|
|
949
949
|
/* @__PURE__ */ m("label", { className: "select-checkbox", children: [
|
|
950
950
|
/* @__PURE__ */ e(
|
|
@@ -962,7 +962,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
962
962
|
] }),
|
|
963
963
|
a && /* @__PURE__ */ e("span", { className: "select-checkbox__hint", children: a })
|
|
964
964
|
] });
|
|
965
|
-
}),
|
|
965
|
+
}), Oa = R(function({ label: n, value: l, onChange: c, labelAction: s, info: a, description: r, hint: d, error: o, placeholder: i, rows: h = 4, mono: u, name: f, required: g, disabled: v, maxLength: y, onBlur: x, size: $ = "md", className: _, ...p }, b) {
|
|
966
966
|
const S = te(), k = o ? `${S}-err` : d ? `${S}-hint` : void 0;
|
|
967
967
|
return /* @__PURE__ */ m("div", { ref: b, ...p, className: `select-field${$ === "sm" ? " select-field--sm" : ""}${_ ? " " + _ : ""}`, children: [
|
|
968
968
|
(n || a || s) && /* @__PURE__ */ e(lt, { htmlFor: S, label: n, info: a, action: s }),
|
|
@@ -987,7 +987,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
987
987
|
),
|
|
988
988
|
o ? /* @__PURE__ */ e("p", { id: `${S}-err`, className: "select-field__error", children: o }) : d ? /* @__PURE__ */ e("p", { id: `${S}-hint`, className: "select-field__hint", children: d }) : null
|
|
989
989
|
] });
|
|
990
|
-
}),
|
|
990
|
+
}), Ha = R(function({ label: n, value: l, onChange: c, unit: s, info: a, hint: r, error: d, placeholder: o = "0", disabled: i = !1, min: h, max: u, className: f, ...g }, v) {
|
|
991
991
|
const y = te();
|
|
992
992
|
return /* @__PURE__ */ m("div", { ref: v, ...g, className: `select-field${f ? " " + f : ""}`, children: [
|
|
993
993
|
n && /* @__PURE__ */ e(lt, { htmlFor: y, label: n, info: a }),
|
|
@@ -1014,7 +1014,7 @@ const lt = R(function({ htmlFor: n, label: l, info: c, action: s, className: a,
|
|
|
1014
1014
|
}), Kl = new Intl.NumberFormat("pt-BR", {
|
|
1015
1015
|
minimumFractionDigits: 2,
|
|
1016
1016
|
maximumFractionDigits: 2
|
|
1017
|
-
}),
|
|
1017
|
+
}), ja = R(function({ label: n, value: l, onChange: c, info: s, hint: a, error: r, onBlur: d, placeholder: o = "0,00", name: i, disabled: h = !1, size: u = "md", className: f, ...g }, v) {
|
|
1018
1018
|
const y = te();
|
|
1019
1019
|
return /* @__PURE__ */ m("div", { ref: v, ...g, className: `select-field${u === "sm" ? " select-field--sm" : ""}${f ? " " + f : ""}`, children: [
|
|
1020
1020
|
n && /* @__PURE__ */ e(lt, { htmlFor: y, label: n, info: s }),
|
|
@@ -1061,7 +1061,7 @@ function Ql(t) {
|
|
|
1061
1061
|
const n = tn(t).slice(0, 14);
|
|
1062
1062
|
return n.length <= 11 ? n.replace(/^(\d{3})(\d)/, "$1.$2").replace(/^(\d{3})\.(\d{3})(\d)/, "$1.$2.$3").replace(/\.(\d{3})(\d)/, ".$1-$2") : n.replace(/^(\d{2})(\d)/, "$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/, "$1.$2.$3").replace(/\.(\d{3})(\d)/, ".$1/$2").replace(/(\d{4})(\d)/, "$1-$2");
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function Va({
|
|
1065
1065
|
label: t = "CPF/CNPJ",
|
|
1066
1066
|
value: n,
|
|
1067
1067
|
onChange: l,
|
|
@@ -1151,7 +1151,7 @@ function el(t) {
|
|
|
1151
1151
|
return t;
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
|
-
const
|
|
1154
|
+
const Za = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, allowMultiple: a = !0, maxFiles: r, hint: d, className: o, ...i }, h) {
|
|
1155
1155
|
const u = q(null), [f, g] = D(!1), [v, y] = D(0), x = s * 1024 * 1024, $ = xe(() => n.map((C) => Kn(C) ? URL.createObjectURL(C) : null), [n]);
|
|
1156
1156
|
le(
|
|
1157
1157
|
() => () => {
|
|
@@ -1163,10 +1163,10 @@ const Va = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1163
1163
|
);
|
|
1164
1164
|
const _ = Te(
|
|
1165
1165
|
(C) => {
|
|
1166
|
-
const L = C.filter((
|
|
1166
|
+
const L = C.filter((B) => B.size <= x && Xn(B, c));
|
|
1167
1167
|
if (y(C.length - L.length), L.length) {
|
|
1168
|
-
const
|
|
1169
|
-
l(r != null ?
|
|
1168
|
+
const B = a ? [...n, ...L] : L.slice(0, 1);
|
|
1169
|
+
l(r != null ? B.slice(0, r) : B);
|
|
1170
1170
|
}
|
|
1171
1171
|
},
|
|
1172
1172
|
[n, x, c, a, r, l]
|
|
@@ -1181,7 +1181,7 @@ const Va = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1181
1181
|
}, S = () => {
|
|
1182
1182
|
var C;
|
|
1183
1183
|
return (C = u.current) == null ? void 0 : C.click();
|
|
1184
|
-
}, k = (C) => l(n.filter((L,
|
|
1184
|
+
}, k = (C) => l(n.filter((L, B) => B !== C)), M = r != null && n.length >= r, w = (a || n.length === 0) && !M, N = n.length > 0;
|
|
1185
1185
|
return /* @__PURE__ */ m("div", { ref: h, ...i, className: `select-dropzone-wrap${o ? " " + o : ""}`, children: [
|
|
1186
1186
|
N && /* @__PURE__ */ m("div", { className: "select-filetile-grid", children: [
|
|
1187
1187
|
n.map((C, L) => /* @__PURE__ */ e(
|
|
@@ -1247,7 +1247,7 @@ const Va = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1247
1247
|
/* @__PURE__ */ e("span", { className: "select-addbtn__icon", "aria-hidden": "true", children: c ?? /* @__PURE__ */ e(nt, {}) }),
|
|
1248
1248
|
n
|
|
1249
1249
|
] });
|
|
1250
|
-
}),
|
|
1250
|
+
}), Ga = R(function({ label: n, urls: l, onChange: c, maxUrls: s, placeholder: a, helpText: r, className: d, ...o }, i) {
|
|
1251
1251
|
const [h, u] = D(""), [f, g] = D(null), v = s != null && l.length >= s, y = () => {
|
|
1252
1252
|
const _ = h.trim();
|
|
1253
1253
|
if (_) {
|
|
@@ -1289,7 +1289,7 @@ const Va = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1289
1289
|
r != null && !f && /* @__PURE__ */ e("p", { className: "select-field__hint", children: r })
|
|
1290
1290
|
] });
|
|
1291
1291
|
}), tc = R(function({ label: n, mode: l = "multiple", files: c, onFilesChange: s, urls: a, onUrlsChange: r, accept: d = ".jpg,.jpeg,.png,.webp", maxSizeMB: o = 3, maxItems: i = 10, maxFiles: h, uploadHint: u, urlPlaceholder: f, helpText: g, className: v, ...y }, x) {
|
|
1292
|
-
const $ = l === "single", _ = q(null), [p, b] = D(!1), [S, k] = D(0), [M, w] = D(""), [N, C] = D(null), L = $ ? 1 : Math.max(1, i),
|
|
1292
|
+
const $ = l === "single", _ = q(null), [p, b] = D(!1), [S, k] = D(0), [M, w] = D(""), [N, C] = D(null), L = $ ? 1 : Math.max(1, i), B = $ ? 1 : h ?? L, A = c.length + a.length, F = $ ? A === 0 : A < L && c.length < B, E = $ ? A === 0 : A < L, T = A > 0, I = o * 1024 * 1024, O = xe(() => c.map((H) => Kn(H) ? URL.createObjectURL(H) : null), [c]);
|
|
1293
1293
|
le(
|
|
1294
1294
|
() => () => {
|
|
1295
1295
|
O.forEach((H) => {
|
|
@@ -1305,7 +1305,7 @@ const Va = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1305
1305
|
r([]), s(Q.slice(0, 1));
|
|
1306
1306
|
return;
|
|
1307
1307
|
}
|
|
1308
|
-
const z = Math.min(
|
|
1308
|
+
const z = Math.min(B - c.length, L - A), he = [...c, ...Q.slice(0, Math.max(0, z))];
|
|
1309
1309
|
s(he);
|
|
1310
1310
|
}, Z = () => {
|
|
1311
1311
|
const H = M.trim();
|
|
@@ -1358,7 +1358,7 @@ const Va = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1358
1358
|
/* @__PURE__ */ e(kt, {}),
|
|
1359
1359
|
/* @__PURE__ */ e("span", { children: u ?? `Arraste ou selecione um arquivo · até ${o} MB` })
|
|
1360
1360
|
] }),
|
|
1361
|
-
|
|
1361
|
+
E && /* @__PURE__ */ m("div", { className: "select-uploadzone__url", children: [
|
|
1362
1362
|
/* @__PURE__ */ e(Wl, {}),
|
|
1363
1363
|
/* @__PURE__ */ e("div", { className: "select-uploadzone__urlfield", children: /* @__PURE__ */ e(
|
|
1364
1364
|
We,
|
|
@@ -1436,7 +1436,7 @@ const Va = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1436
1436
|
] });
|
|
1437
1437
|
}), nc = R(function({ children: n, columns: l = 2, className: c, ...s }, a) {
|
|
1438
1438
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-fieldgrid select-fieldgrid--${l}${c ? " " + c : ""}`, children: n });
|
|
1439
|
-
}), Rt = (t) => t.replace(/\D/g, ""),
|
|
1439
|
+
}), Rt = (t) => t.replace(/\D/g, ""), Ua = R(function({ value: n, onChange: l, banks: c = [], showType: s = !1, error: a, className: r, ...d }, o) {
|
|
1440
1440
|
const i = (u) => l({ ...n, ...u }), h = [
|
|
1441
1441
|
{ label: "Selecione o banco", value: "" },
|
|
1442
1442
|
// `name` already reads "001 - Banco do Brasil S.A." (code + bank name), so show it alone —
|
|
@@ -1474,15 +1474,15 @@ const Va = R(function({ files: n, onChange: l, accept: c, maxSizeMB: s = 10, all
|
|
|
1474
1474
|
] });
|
|
1475
1475
|
}), nn = R(function({ checked: n, onChange: l, disabled: c = !1, label: s, className: a, ...r }, d) {
|
|
1476
1476
|
return /* @__PURE__ */ e("button", { ref: d, ...r, type: "button", role: "switch", "aria-checked": n, "aria-label": s, disabled: c, className: `select-switch${n ? " select-switch--on" : ""}${a ? " " + a : ""}`, onClick: () => l(!n), children: /* @__PURE__ */ e("span", { className: "select-switch__knob", "aria-hidden": "true" }) });
|
|
1477
|
-
}),
|
|
1477
|
+
}), qa = R(function({ children: n, scroll: l = !1, className: c, ...s }, a) {
|
|
1478
1478
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-togglelist${l ? " select-togglelist--scroll" : ""}${c ? " " + c : ""}`, children: n });
|
|
1479
|
-
}),
|
|
1479
|
+
}), Ya = R(function({ icon: n, label: l, checked: c, onChange: s, disabled: a = !1, className: r, ...d }, o) {
|
|
1480
1480
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-togglerow${a ? " select-togglerow--disabled" : ""}${r ? " " + r : ""}`, children: [
|
|
1481
1481
|
n && /* @__PURE__ */ e("span", { className: "select-togglerow__icon", children: n }),
|
|
1482
1482
|
/* @__PURE__ */ e("span", { className: "select-togglerow__label", children: l }),
|
|
1483
1483
|
/* @__PURE__ */ e(nn, { checked: c, onChange: s, disabled: a, label: typeof l == "string" ? l : void 0 })
|
|
1484
1484
|
] });
|
|
1485
|
-
}),
|
|
1485
|
+
}), za = R(function({ icon: n, title: l, checked: c, onChange: s, children: a, disabled: r = !1, className: d, ...o }, i) {
|
|
1486
1486
|
return /* @__PURE__ */ m("div", { ref: i, ...o, className: `select-togglepanel${c ? " is-on" : ""}${d ? " " + d : ""}`, children: [
|
|
1487
1487
|
/* @__PURE__ */ m("div", { className: "select-togglepanel__header", children: [
|
|
1488
1488
|
/* @__PURE__ */ e(nn, { checked: c, onChange: s, disabled: r, label: typeof l == "string" ? l : void 0 }),
|
|
@@ -1557,7 +1557,7 @@ function dc(t) {
|
|
|
1557
1557
|
var n;
|
|
1558
1558
|
return ((n = Zt.find((l) => l.iso === t)) == null ? void 0 : n.dial) ?? "";
|
|
1559
1559
|
}
|
|
1560
|
-
const
|
|
1560
|
+
const Xa = R(function({ label: n, value: l, onChange: c, labelAction: s, hint: a, error: r, onBlur: d, placeholder: o, className: i, ...h }, u) {
|
|
1561
1561
|
var y;
|
|
1562
1562
|
const f = te(), g = dc(l.country), v = r ? `${f}-err` : a ? `${f}-hint` : void 0;
|
|
1563
1563
|
return /* @__PURE__ */ m("div", { ref: u, ...h, className: `select-field${i ? " " + i : ""}`, children: [
|
|
@@ -1610,7 +1610,7 @@ const za = R(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
1610
1610
|
] }),
|
|
1611
1611
|
r ? /* @__PURE__ */ e("p", { id: `${f}-err`, className: "select-field__error", children: r }) : a ? /* @__PURE__ */ e("p", { id: `${f}-hint`, className: "select-field__hint", children: a }) : null
|
|
1612
1612
|
] });
|
|
1613
|
-
}),
|
|
1613
|
+
}), Ka = R(function({ value: n, onChange: l, options: c, name: s, className: a, ...r }, d) {
|
|
1614
1614
|
const o = te(), i = s ?? o;
|
|
1615
1615
|
return /* @__PURE__ */ e("div", { ref: d, ...r, className: `select-radiogroup${a ? " " + a : ""}`, role: "radiogroup", children: c.map((h) => {
|
|
1616
1616
|
const u = h.value === n;
|
|
@@ -1642,9 +1642,9 @@ const za = R(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
1642
1642
|
h.value
|
|
1643
1643
|
);
|
|
1644
1644
|
}) });
|
|
1645
|
-
}),
|
|
1645
|
+
}), Ja = R(function({ value: n, onChange: l, options: c, ariaLabel: s, fullWidth: a = !1, className: r, ...d }, o) {
|
|
1646
1646
|
const i = Math.max(0, c.findIndex((v) => v.value === n)), h = q([]), [u, f] = D(null);
|
|
1647
|
-
|
|
1647
|
+
Be(() => {
|
|
1648
1648
|
const v = h.current[i];
|
|
1649
1649
|
v && f({ left: v.offsetLeft, width: v.offsetWidth });
|
|
1650
1650
|
}, [i, c.length]);
|
|
@@ -1693,7 +1693,7 @@ const za = R(function({ label: n, value: l, onChange: c, labelAction: s, hint: a
|
|
|
1693
1693
|
chargeback: { label: "Chargeback", tone: "critical" },
|
|
1694
1694
|
dispute: { label: "Em disputa", tone: "critical" }
|
|
1695
1695
|
};
|
|
1696
|
-
function
|
|
1696
|
+
function Qa({
|
|
1697
1697
|
status: t,
|
|
1698
1698
|
map: n = uc
|
|
1699
1699
|
}) {
|
|
@@ -1771,7 +1771,7 @@ function Oe({
|
|
|
1771
1771
|
const b = _.getBoundingClientRect(), S = ll(b, { width: p.offsetWidth, height: p.offsetHeight }, s, a);
|
|
1772
1772
|
v({ top: S.top, left: S.left, minWidth: o ? b.width : void 0 });
|
|
1773
1773
|
}, [s, a, o]);
|
|
1774
|
-
return
|
|
1774
|
+
return Be(() => {
|
|
1775
1775
|
if (!t) {
|
|
1776
1776
|
v(null);
|
|
1777
1777
|
return;
|
|
@@ -1865,7 +1865,7 @@ function cl({ items: t, sections: n, onAction: l, autoFocus: c = !0, className:
|
|
|
1865
1865
|
))
|
|
1866
1866
|
] }, h)) });
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function e1({
|
|
1869
1869
|
items: t,
|
|
1870
1870
|
label: n = "Ações",
|
|
1871
1871
|
disabled: l
|
|
@@ -1929,7 +1929,7 @@ const ze = {
|
|
|
1929
1929
|
baseline: "baseline",
|
|
1930
1930
|
stretch: "stretch"
|
|
1931
1931
|
};
|
|
1932
|
-
function
|
|
1932
|
+
function Bt(...t) {
|
|
1933
1933
|
return t.filter(Boolean).join(" ");
|
|
1934
1934
|
}
|
|
1935
1935
|
function Gt({ children: t, gap: n, align: l, inlineAlign: c, as: s = "div", className: a, ...r }) {
|
|
@@ -1938,7 +1938,7 @@ function Gt({ children: t, gap: n, align: l, inlineAlign: c, as: s = "div", clas
|
|
|
1938
1938
|
justifyContent: l ? ot[l] : void 0,
|
|
1939
1939
|
alignItems: c ? ot[c] : void 0
|
|
1940
1940
|
};
|
|
1941
|
-
return /* @__PURE__ */ e(d, { ...r, className:
|
|
1941
|
+
return /* @__PURE__ */ e(d, { ...r, className: Bt("select-stack", a), style: o, children: t });
|
|
1942
1942
|
}
|
|
1943
1943
|
function st({ children: t, gap: n, align: l, blockAlign: c = "center", wrap: s = !0, as: a = "div", className: r, ...d }) {
|
|
1944
1944
|
const o = a, i = {
|
|
@@ -1948,15 +1948,15 @@ function st({ children: t, gap: n, align: l, blockAlign: c = "center", wrap: s =
|
|
|
1948
1948
|
alignItems: ot[c],
|
|
1949
1949
|
flexWrap: s ? "wrap" : "nowrap"
|
|
1950
1950
|
};
|
|
1951
|
-
return /* @__PURE__ */ e(o, { ...d, className:
|
|
1951
|
+
return /* @__PURE__ */ e(o, { ...d, className: Bt("select-inline", r), style: i, children: t });
|
|
1952
1952
|
}
|
|
1953
|
-
function
|
|
1953
|
+
function t1({ children: t, columns: n = 2, gap: l = "400", alignItems: c, collapseBelow: s, as: a = "div", className: r, ...d }) {
|
|
1954
1954
|
const o = a, i = {
|
|
1955
1955
|
"--select-grid-columns": typeof n == "number" ? `repeat(${n}, minmax(0, 1fr))` : n,
|
|
1956
1956
|
gap: ze[l],
|
|
1957
1957
|
alignItems: c ? ot[c] : void 0
|
|
1958
1958
|
};
|
|
1959
|
-
return /* @__PURE__ */ e(o, { ...d, className:
|
|
1959
|
+
return /* @__PURE__ */ e(o, { ...d, className: Bt("select-grid", s && `select-grid--collapse-${s}`, r), style: i, children: t });
|
|
1960
1960
|
}
|
|
1961
1961
|
const mc = {
|
|
1962
1962
|
surface: "var(--select-surface)",
|
|
@@ -1984,7 +1984,7 @@ function _c({ children: t, padding: n, paddingInline: l, paddingBlock: c, backgr
|
|
|
1984
1984
|
minHeight: i,
|
|
1985
1985
|
...f
|
|
1986
1986
|
};
|
|
1987
|
-
return /* @__PURE__ */ e(v, { ...g, className:
|
|
1987
|
+
return /* @__PURE__ */ e(v, { ...g, className: Bt("select-box", u), style: y, children: t });
|
|
1988
1988
|
}
|
|
1989
1989
|
function Xe({ children: t, as: n = "p", variant: l = "bodyMd", tone: c, fontWeight: s, alignment: a, truncate: r = !1, numeric: d = !1, className: o, ...i }) {
|
|
1990
1990
|
const h = n, u = [
|
|
@@ -2034,7 +2034,7 @@ function hn(t) {
|
|
|
2034
2034
|
const n = t.toLowerCase().trim().replace(/\s+/g, "-");
|
|
2035
2035
|
return un[n] ?? un[n.replace(/-/g, "")] ?? null;
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2037
|
+
function n1({
|
|
2038
2038
|
method: t,
|
|
2039
2039
|
cardBrand: n,
|
|
2040
2040
|
/** Chip height in px; width is derived to a card aspect ratio (1.2). Default 24×29. */
|
|
@@ -2291,7 +2291,7 @@ function Ac(t, n) {
|
|
|
2291
2291
|
s += 1, a = c.indexOf(l, a + l.length);
|
|
2292
2292
|
return s;
|
|
2293
2293
|
}
|
|
2294
|
-
const _n = 320, Fc = 12e4,
|
|
2294
|
+
const _n = 320, Fc = 12e4, Bc = {
|
|
2295
2295
|
string: "str",
|
|
2296
2296
|
number: "num",
|
|
2297
2297
|
boolean: "bool",
|
|
@@ -2305,7 +2305,7 @@ function St({ text: t, term: n }) {
|
|
|
2305
2305
|
(l, c) => l.hit ? /* @__PURE__ */ e("mark", { className: "select-json__hit", children: l.text }, c) : /* @__PURE__ */ e(Yt, { children: l.text }, c)
|
|
2306
2306
|
) }) : /* @__PURE__ */ e(_e, { children: t });
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2308
|
+
function Ec(t = 1400) {
|
|
2309
2309
|
const [n, l] = D(null), c = q(void 0);
|
|
2310
2310
|
le(() => () => window.clearTimeout(c.current), []);
|
|
2311
2311
|
const s = Te(
|
|
@@ -2319,7 +2319,7 @@ function Bc(t = 1400) {
|
|
|
2319
2319
|
}
|
|
2320
2320
|
function il({ value: t, term: n, forceFull: l }) {
|
|
2321
2321
|
const c = al(t), s = cn(t), a = !l && s.length > _n, r = a ? `${s.slice(0, _n)}…` : s, d = c === "string";
|
|
2322
|
-
return /* @__PURE__ */ m("span", { className: `select-json__v select-json__v--${
|
|
2322
|
+
return /* @__PURE__ */ m("span", { className: `select-json__v select-json__v--${Bc[c]}`, title: a ? s : void 0, children: [
|
|
2323
2323
|
d && /* @__PURE__ */ e("span", { className: "select-json__quote", children: '"' }),
|
|
2324
2324
|
/* @__PURE__ */ e(St, { text: r, term: n }),
|
|
2325
2325
|
d && /* @__PURE__ */ e("span", { className: "select-json__quote", children: '"' })
|
|
@@ -2386,8 +2386,8 @@ function Ic({ text: t, term: n }) {
|
|
|
2386
2386
|
const l = xe(() => t.length > Fc ? null : Cc(t), [t]);
|
|
2387
2387
|
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(St, { text: c.text, term: n }) }, s)) }) : /* @__PURE__ */ e("pre", { className: "select-json__pre", children: /* @__PURE__ */ e(St, { text: t, term: n }) });
|
|
2388
2388
|
}
|
|
2389
|
-
const
|
|
2390
|
-
const [u, f] = D(s), [g, v] = D("tree"), [y, x] = D(""), [$, _] = D(/* @__PURE__ */ new Set()), [p, b] =
|
|
2389
|
+
const l1 = R(function({ value: n, title: l = "Metadados", maxHeight: c = 360, defaultOpen: s = !1, defaultExpandDepth: a = 1, searchable: r = !0, emptyLabel: d = "Sem dados", className: o, ...i }, h) {
|
|
2390
|
+
const [u, f] = D(s), [g, v] = D("tree"), [y, x] = D(""), [$, _] = D(/* @__PURE__ */ new Set()), [p, b] = Ec(), S = q(null), k = xe(() => yc(n), [n]), M = Nc(k), w = xe(
|
|
2391
2391
|
() => typeof n == "string" && k === n ? n : rl(k),
|
|
2392
2392
|
[n, k]
|
|
2393
2393
|
), N = xe(() => rt(k, () => {
|
|
@@ -2395,17 +2395,17 @@ const n1 = R(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
2395
2395
|
le(() => {
|
|
2396
2396
|
_(N ? /* @__PURE__ */ new Set() : $c(k, a)), x("");
|
|
2397
2397
|
}, [k, a, N]);
|
|
2398
|
-
const
|
|
2398
|
+
const B = xe(() => Sc(k, C ? y : ""), [k, y, C]), A = y.trim().length > 0, F = C ? B.count : Ac(w, y);
|
|
2399
2399
|
le(() => {
|
|
2400
2400
|
var Z, G;
|
|
2401
2401
|
!u || !A || (G = (Z = S.current) == null ? void 0 : Z.querySelector(".select-json__hit")) == null || G.scrollIntoView({ block: "nearest" });
|
|
2402
2402
|
}, [u, A, y, g]);
|
|
2403
|
-
const
|
|
2403
|
+
const E = Te((Z) => {
|
|
2404
2404
|
_((G) => {
|
|
2405
2405
|
const J = new Set(G);
|
|
2406
2406
|
return J.delete(Z) || J.add(Z), J;
|
|
2407
2407
|
});
|
|
2408
|
-
}, []), T = L.length > 0 && L.every((Z) => $.has(Z)), I = () => _(T ? /* @__PURE__ */ new Set() : new Set(L)), O = { expanded: $, toggle:
|
|
2408
|
+
}, []), T = L.length > 0 && L.every((Z) => $.has(Z)), I = () => _(T ? /* @__PURE__ */ new Set() : new Set(L)), O = { expanded: $, toggle: E, search: y, result: B, copied: p, copy: b }, W = u && !M;
|
|
2409
2409
|
return /* @__PURE__ */ m("div", { ref: h, ...i, className: `select-json${o ? " " + o : ""}`, children: [
|
|
2410
2410
|
/* @__PURE__ */ m("div", { className: "select-json__head", children: [
|
|
2411
2411
|
/* @__PURE__ */ e(Xe, { as: "h2", variant: "headingSm", children: l }),
|
|
@@ -2460,7 +2460,7 @@ const n1 = R(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
2460
2460
|
}
|
|
2461
2461
|
)
|
|
2462
2462
|
] }),
|
|
2463
|
-
/* @__PURE__ */ e("div", { ref: S, className: "select-json__scroll", style: { maxHeight: c }, children: C ? A &&
|
|
2463
|
+
/* @__PURE__ */ e("div", { ref: S, className: "select-json__scroll", style: { maxHeight: c }, children: C ? A && B.count === 0 ? /* @__PURE__ */ e("div", { className: "select-json__empty", children: /* @__PURE__ */ m(Xe, { as: "p", tone: "subdued", variant: "bodySm", children: [
|
|
2464
2464
|
"Nenhuma chave ou valor corresponde a “",
|
|
2465
2465
|
y.trim(),
|
|
2466
2466
|
"”."
|
|
@@ -2476,7 +2476,7 @@ const n1 = R(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
2476
2476
|
warning: "var(--select-warning-text)",
|
|
2477
2477
|
info: "var(--select-info-text)",
|
|
2478
2478
|
default: "var(--select-text-secondary)"
|
|
2479
|
-
},
|
|
2479
|
+
}, c1 = R(function({ items: n, className: l, ...c }, s) {
|
|
2480
2480
|
var d;
|
|
2481
2481
|
const a = n.length ? ((d = n[0]) == null ? void 0 : d.tone) ?? "default" : "default", r = { "--tl-final": Pc[a] };
|
|
2482
2482
|
return /* @__PURE__ */ e("ul", { ref: s, ...c, className: `select-timeline${l ? " " + l : ""}`, style: r, children: n.map((o, i) => /* @__PURE__ */ m("li", { className: "select-timeline__item", children: [
|
|
@@ -2492,7 +2492,7 @@ const n1 = R(function({ value: n, title: l = "Metadados", maxHeight: c = 360, de
|
|
|
2492
2492
|
] }, i)) });
|
|
2493
2493
|
}), Rc = R(function({ children: n, onClick: l, disabled: c = !1, tone: s = "default", className: a, ...r }, d) {
|
|
2494
2494
|
return /* @__PURE__ */ e("button", { ref: d, ...r, type: "button", className: `select-linkbtn${s === "critical" ? " select-linkbtn--critical" : ""}${a ? " " + a : ""}`, onClick: l, disabled: c, children: n });
|
|
2495
|
-
}),
|
|
2495
|
+
}), s1 = R(function({ children: n, className: l, ...c }, s) {
|
|
2496
2496
|
return n == null ? /* @__PURE__ */ e("div", { ref: s, ...c, className: `select-divider select-divider--plain${l ? " " + l : ""}`, role: "separator" }) : /* @__PURE__ */ e("div", { ref: s, ...c, className: `select-divider${l ? " " + l : ""}`, children: n });
|
|
2497
2497
|
}), Dc = R(function({ name: n, src: l, icon: c, dashed: s = !1, round: a = !1, className: r, ...d }, o) {
|
|
2498
2498
|
var h, u;
|
|
@@ -2504,9 +2504,9 @@ function ul() {
|
|
|
2504
2504
|
return typeof window < "u" && !!((t = window.matchMedia) != null && t.call(window, "(prefers-reduced-motion: reduce)").matches);
|
|
2505
2505
|
}
|
|
2506
2506
|
const hl = () => typeof IntersectionObserver < "u";
|
|
2507
|
-
function
|
|
2507
|
+
function Et(t = {}) {
|
|
2508
2508
|
const n = q(null), l = q(t);
|
|
2509
|
-
return l.current = t,
|
|
2509
|
+
return l.current = t, Be(() => {
|
|
2510
2510
|
const c = n.current;
|
|
2511
2511
|
if (!c) return;
|
|
2512
2512
|
const {
|
|
@@ -2553,7 +2553,7 @@ function Bt(t = {}) {
|
|
|
2553
2553
|
}
|
|
2554
2554
|
function Tc(t) {
|
|
2555
2555
|
const n = q(null), l = q(t);
|
|
2556
|
-
return l.current = t,
|
|
2556
|
+
return l.current = t, Be(() => {
|
|
2557
2557
|
const c = n.current;
|
|
2558
2558
|
if (!c) return;
|
|
2559
2559
|
const {
|
|
@@ -2598,11 +2598,11 @@ function Tc(t) {
|
|
|
2598
2598
|
};
|
|
2599
2599
|
}, [t.value]), n;
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2602
|
-
const c =
|
|
2601
|
+
function a1({ children: t, className: n, ...l }) {
|
|
2602
|
+
const c = Et({ selector: ".select-optionrow", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 });
|
|
2603
2603
|
return /* @__PURE__ */ e("div", { ...l, className: `select-optionlist${n ? " " + n : ""}`, ref: c, children: t });
|
|
2604
2604
|
}
|
|
2605
|
-
function
|
|
2605
|
+
function o1({
|
|
2606
2606
|
title: t,
|
|
2607
2607
|
subtitle: n,
|
|
2608
2608
|
leading: l,
|
|
@@ -2620,7 +2620,7 @@ function a1({
|
|
|
2620
2620
|
] }), i = `select-optionrow${a ? " select-optionrow--muted" : ""}`;
|
|
2621
2621
|
return r ? /* @__PURE__ */ e("button", { type: "button", className: i, onClick: s, children: o }) : /* @__PURE__ */ e("div", { className: i, children: o });
|
|
2622
2622
|
}
|
|
2623
|
-
const
|
|
2623
|
+
const r1 = R(function({ email: n, onSignOut: l, signOutLabel: c = "Sair", prefix: s = "Conectado como", className: a, ...r }, d) {
|
|
2624
2624
|
return /* @__PURE__ */ m("span", { ref: d, ...r, className: `select-identity${a ? " " + a : ""}`, children: [
|
|
2625
2625
|
/* @__PURE__ */ m("span", { className: "select-identity__text", children: [
|
|
2626
2626
|
s,
|
|
@@ -2629,7 +2629,7 @@ const o1 = R(function({ email: n, onSignOut: l, signOutLabel: c = "Sair", prefix
|
|
|
2629
2629
|
] }),
|
|
2630
2630
|
l && /* @__PURE__ */ e("button", { type: "button", className: "select-identity__action", onClick: l, children: c })
|
|
2631
2631
|
] });
|
|
2632
|
-
}),
|
|
2632
|
+
}), i1 = R(function({ value: n, onChange: l, length: c = 6, onComplete: s, autoFocus: a = !1, disabled: r = !1, className: d, ...o }, i) {
|
|
2633
2633
|
const h = q([]), u = Array.from({ length: c }, (_, p) => n[p] ?? ""), f = (_) => {
|
|
2634
2634
|
var p;
|
|
2635
2635
|
return (p = h.current[_]) == null ? void 0 : p.focus();
|
|
@@ -2686,7 +2686,7 @@ const o1 = R(function({ email: n, onSignOut: l, signOutLabel: c = "Sair", prefix
|
|
|
2686
2686
|
p
|
|
2687
2687
|
)) });
|
|
2688
2688
|
});
|
|
2689
|
-
function
|
|
2689
|
+
function d1({
|
|
2690
2690
|
children: t = "Voltar",
|
|
2691
2691
|
onClick: n,
|
|
2692
2692
|
href: l
|
|
@@ -2697,7 +2697,7 @@ function i1({
|
|
|
2697
2697
|
] });
|
|
2698
2698
|
return l ? /* @__PURE__ */ e("a", { className: "select-backlink", href: l, children: c }) : /* @__PURE__ */ e("button", { type: "button", className: "select-backlink", onClick: n, children: c });
|
|
2699
2699
|
}
|
|
2700
|
-
const
|
|
2700
|
+
const u1 = R(function({ onResend: n, seconds: l = 30, idleLabel: c = "Reenviar código", className: s, ...a }, r) {
|
|
2701
2701
|
const [d, o] = D(l);
|
|
2702
2702
|
le(() => {
|
|
2703
2703
|
if (d <= 0) return;
|
|
@@ -2720,7 +2720,7 @@ function Wc(t) {
|
|
|
2720
2720
|
let n = 0;
|
|
2721
2721
|
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);
|
|
2722
2722
|
}
|
|
2723
|
-
const
|
|
2723
|
+
const h1 = R(function({ value: n, className: l, ...c }, s) {
|
|
2724
2724
|
const a = Wc(n), r = vn[a] ?? vn[0];
|
|
2725
2725
|
return /* @__PURE__ */ m("div", { ref: s, ...c, className: `select-strength${l ? " " + l : ""}`, "aria-hidden": !n, children: [
|
|
2726
2726
|
/* @__PURE__ */ e("div", { className: `select-strength__bars select-strength__bars--${r.cls}`, children: [0, 1, 2, 3].map((d) => /* @__PURE__ */ e("span", { className: `select-strength__bar${d < a ? " is-on" : ""}` }, d)) }),
|
|
@@ -2791,7 +2791,7 @@ function jc({ children: t }) {
|
|
|
2791
2791
|
function Vc({ children: t, columns: n = 2 }) {
|
|
2792
2792
|
return /* @__PURE__ */ e("div", { className: "select-formlayout__group", style: { "--cols": String(n) }, children: t });
|
|
2793
2793
|
}
|
|
2794
|
-
const
|
|
2794
|
+
const p1 = Object.assign(jc, { Group: Vc });
|
|
2795
2795
|
function gn({ lines: t = 3 }) {
|
|
2796
2796
|
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)) });
|
|
2797
2797
|
}
|
|
@@ -2801,29 +2801,32 @@ function Zc({ size: t = "medium" }) {
|
|
|
2801
2801
|
function Gc({ size: t = "medium" }) {
|
|
2802
2802
|
return /* @__PURE__ */ e("div", { className: `select-skeleton select-skel-thumb select-skel-thumb--${t}` });
|
|
2803
2803
|
}
|
|
2804
|
-
|
|
2804
|
+
function Uc({ height: t = 240 }) {
|
|
2805
|
+
return /* @__PURE__ */ e("div", { className: "select-skeleton select-skel-block", style: { height: t } });
|
|
2806
|
+
}
|
|
2807
|
+
const m1 = Object.assign(
|
|
2805
2808
|
function({ lines: n }) {
|
|
2806
2809
|
return /* @__PURE__ */ e(gn, { lines: n });
|
|
2807
2810
|
},
|
|
2808
|
-
{ Body: gn, Display: Zc, Thumbnail: Gc }
|
|
2809
|
-
),
|
|
2810
|
-
function
|
|
2811
|
+
{ Body: gn, Display: Zc, Thumbnail: Gc, Block: Uc }
|
|
2812
|
+
), qc = { sm: "1rem", md: "1.25rem", lg: "1.5rem" };
|
|
2813
|
+
function f1({
|
|
2811
2814
|
source: t,
|
|
2812
2815
|
tone: n = "inherit",
|
|
2813
2816
|
size: l = "md"
|
|
2814
2817
|
}) {
|
|
2815
2818
|
const c = ["select-icon", n !== "inherit" && n !== "base" ? `select-icon--${n}` : ""].filter(Boolean).join(" ");
|
|
2816
|
-
return /* @__PURE__ */ e("span", { className: c, style: { "--select-icon-size":
|
|
2819
|
+
return /* @__PURE__ */ e("span", { className: c, style: { "--select-icon-size": qc[l] }, "aria-hidden": "true", children: /* @__PURE__ */ e(t, {}) });
|
|
2817
2820
|
}
|
|
2818
|
-
const
|
|
2821
|
+
const _1 = R(function({ children: n, tone: l = "neutral", hideIcon: c = !1, className: s, ...a }, r) {
|
|
2819
2822
|
const d = l === "warning" || l === "critical" ? /* @__PURE__ */ e(Ol, {}) : /* @__PURE__ */ e(en, {});
|
|
2820
2823
|
return /* @__PURE__ */ m("div", { ref: r, ...a, className: `select-note select-note--${l}${s ? " " + s : ""}`, children: [
|
|
2821
2824
|
!c && /* @__PURE__ */ e("span", { className: "select-note__icon", children: d }),
|
|
2822
2825
|
/* @__PURE__ */ e("span", { className: "select-note__body", children: n })
|
|
2823
2826
|
] });
|
|
2824
|
-
}),
|
|
2827
|
+
}), v1 = R(function({ children: n, className: l, ...c }, s) {
|
|
2825
2828
|
return /* @__PURE__ */ e("div", { ref: s, ...c, className: `select-settinglist${l ? " " + l : ""}`, children: n });
|
|
2826
|
-
}),
|
|
2829
|
+
}), g1 = R(function({ control: n, title: l, badge: c, description: s, children: a, bodyOpen: r, className: d, ...o }, i) {
|
|
2827
2830
|
return /* @__PURE__ */ m("div", { ref: i, ...o, className: `select-setting${d ? " " + d : ""}`, children: [
|
|
2828
2831
|
n && /* @__PURE__ */ e("div", { className: "select-setting__control", children: n }),
|
|
2829
2832
|
/* @__PURE__ */ m("div", { className: "select-setting__main", children: [
|
|
@@ -2841,7 +2844,7 @@ const f1 = R(function({ children: n, tone: l = "neutral", hideIcon: c = !1, clas
|
|
|
2841
2844
|
))
|
|
2842
2845
|
] })
|
|
2843
2846
|
] });
|
|
2844
|
-
}),
|
|
2847
|
+
}), b1 = R(function({ title: n, description: l, headerAction: c, footer: s, children: a, tone: r = "default", flush: d = !1, className: o, ...i }, h) {
|
|
2845
2848
|
return /* @__PURE__ */ m("div", { ref: h, ...i, className: `select-panel${r === "highlight" ? " select-panel--highlight" : ""}${o ? " " + o : ""}`, children: [
|
|
2846
2849
|
(n || c) && /* @__PURE__ */ m("div", { className: "select-panel__header", children: [
|
|
2847
2850
|
/* @__PURE__ */ m("div", { className: "select-panel__heading", children: [
|
|
@@ -2853,7 +2856,7 @@ const f1 = R(function({ children: n, tone: l = "neutral", hideIcon: c = !1, clas
|
|
|
2853
2856
|
a && /* @__PURE__ */ e("div", { className: `select-panel__body${d ? " select-panel__body--flush" : ""}`, children: a }),
|
|
2854
2857
|
s && /* @__PURE__ */ e("div", { className: "select-panel__footer", children: s })
|
|
2855
2858
|
] });
|
|
2856
|
-
}),
|
|
2859
|
+
}), x1 = R(function({ title: n, description: l, action: c, collapsible: s = !1, defaultOpen: a = !0, children: r, className: d, ...o }, i) {
|
|
2857
2860
|
const [h, u] = D(a);
|
|
2858
2861
|
return s ? /* @__PURE__ */ m("div", { ref: i, ...o, className: `select-section select-section--collapsible${h ? " is-open" : ""}${d ? " " + d : ""}`, children: [
|
|
2859
2862
|
/* @__PURE__ */ m("button", { type: "button", className: "select-section__head select-section__head--toggle", "aria-expanded": h, onClick: () => u((f) => !f), children: [
|
|
@@ -2872,9 +2875,9 @@ const f1 = R(function({ children: n, tone: l = "neutral", hideIcon: c = !1, clas
|
|
|
2872
2875
|
/* @__PURE__ */ e("div", { className: "select-section__body", children: r })
|
|
2873
2876
|
] });
|
|
2874
2877
|
});
|
|
2875
|
-
function
|
|
2878
|
+
function y1({ tabs: t, value: n, onChange: l, end: c, className: s, ...a }) {
|
|
2876
2879
|
const r = q(null), [d, o] = D({ left: 0, width: 0 });
|
|
2877
|
-
|
|
2880
|
+
Be(() => {
|
|
2878
2881
|
const h = r.current;
|
|
2879
2882
|
if (!h) return;
|
|
2880
2883
|
const u = () => {
|
|
@@ -2920,7 +2923,7 @@ function pl(t, n) {
|
|
|
2920
2923
|
var l;
|
|
2921
2924
|
return ((l = t.children) == null ? void 0 : l.some((c) => c.id === n || pl(c, n))) ?? !1;
|
|
2922
2925
|
}
|
|
2923
|
-
function
|
|
2926
|
+
function Yc({
|
|
2924
2927
|
item: t,
|
|
2925
2928
|
active: n,
|
|
2926
2929
|
onSelect: l
|
|
@@ -2930,7 +2933,7 @@ function qc({
|
|
|
2930
2933
|
a(c);
|
|
2931
2934
|
}, [c]);
|
|
2932
2935
|
const r = q(null), [d, o] = D(null);
|
|
2933
|
-
return
|
|
2936
|
+
return Be(() => {
|
|
2934
2937
|
var h;
|
|
2935
2938
|
const i = (h = r.current) == null ? void 0 : h.querySelector(".select-sidenav__item--child.is-active");
|
|
2936
2939
|
o(i && s ? i.offsetTop + i.offsetHeight / 2 : null);
|
|
@@ -2972,13 +2975,13 @@ function qc({
|
|
|
2972
2975
|
] }) })
|
|
2973
2976
|
] });
|
|
2974
2977
|
}
|
|
2975
|
-
const
|
|
2978
|
+
const N1 = R(function({ sections: n, active: l, onSelect: c, header: s, className: a, ...r }, d) {
|
|
2976
2979
|
return /* @__PURE__ */ m("nav", { ref: d, ...r, className: `select-sidenav${a ? " " + a : ""}`, children: [
|
|
2977
2980
|
s && /* @__PURE__ */ e("div", { className: "select-sidenav__header", children: s }),
|
|
2978
2981
|
n.map((o, i) => /* @__PURE__ */ m("div", { className: "select-sidenav__section", children: [
|
|
2979
2982
|
o.label && /* @__PURE__ */ e("div", { className: "select-sidenav__sectionlabel", children: o.label }),
|
|
2980
2983
|
o.items.map(
|
|
2981
|
-
(h) => h.children ? /* @__PURE__ */ e(
|
|
2984
|
+
(h) => h.children ? /* @__PURE__ */ e(Yc, { item: h, active: l, onSelect: c }, h.id) : /* @__PURE__ */ m(
|
|
2982
2985
|
"button",
|
|
2983
2986
|
{
|
|
2984
2987
|
type: "button",
|
|
@@ -3009,8 +3012,8 @@ const y1 = R(function({ sections: n, active: l, onSelect: c, header: s, classNam
|
|
|
3009
3012
|
),
|
|
3010
3013
|
s && /* @__PURE__ */ e("kbd", { className: "select-search__kbd", children: s })
|
|
3011
3014
|
] });
|
|
3012
|
-
}),
|
|
3013
|
-
const u = kl.count(l) === 0, f = u && !!c, g = a != null || r != null || d != null, v = f && !g, y =
|
|
3015
|
+
}), zc = R(function({ columns: n, children: l, empty: c, footer: s, title: a, action: r, filters: d, className: o, ...i }, h) {
|
|
3016
|
+
const u = kl.count(l) === 0, f = u && !!c, g = a != null || r != null || d != null, v = f && !g, y = Et({ selector: ".select-table__row", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 }), x = n.length ? n.map(($) => $.width ?? "minmax(var(--select-table-col-min, 6.5rem), 1fr)").join(" ") : "1fr";
|
|
3014
3017
|
return /* @__PURE__ */ m("div", { ref: h, ...i, className: `select-table${v ? " select-table--empty" : ""}${o ? " " + o : ""}`, style: { "--select-table-cols": x }, children: [
|
|
3015
3018
|
g && /* @__PURE__ */ m("div", { className: "select-table__title", children: [
|
|
3016
3019
|
a != null && /* @__PURE__ */ e("h3", { className: "select-table__titletext", children: a }),
|
|
@@ -3043,7 +3046,7 @@ const y1 = R(function({ sections: n, active: l, onSelect: c, header: s, classNam
|
|
|
3043
3046
|
] }) }),
|
|
3044
3047
|
s && /* @__PURE__ */ e("div", { className: "select-table__footer", children: s })
|
|
3045
3048
|
] });
|
|
3046
|
-
}),
|
|
3049
|
+
}), M1 = R(function({ name: n, secondary: l, src: c, className: s, ...a }, r) {
|
|
3047
3050
|
return /* @__PURE__ */ m("span", { ref: r, ...a, className: `select-usercell${s ? " " + s : ""}`, children: [
|
|
3048
3051
|
/* @__PURE__ */ e(Dc, { name: typeof n == "string" ? n : void 0, src: c }),
|
|
3049
3052
|
/* @__PURE__ */ m("span", { className: "select-usercell__text", children: [
|
|
@@ -3057,36 +3060,36 @@ function bn({ children: t, onClick: n }) {
|
|
|
3057
3060
|
}
|
|
3058
3061
|
const xn = R(function({ children: n, align: l = "start", className: c, ...s }, a) {
|
|
3059
3062
|
return /* @__PURE__ */ e("div", { ref: a, ...s, role: "cell", className: `select-table__td select-table__cell--${l}${c ? " " + c : ""}`, children: n });
|
|
3060
|
-
}),
|
|
3063
|
+
}), Xc = R(function({ icon: n, title: l, subtitle: c, action: s, className: a, ...r }, d) {
|
|
3061
3064
|
return /* @__PURE__ */ m("div", { ref: d, ...r, className: `select-table-empty${a ? " " + a : ""}`, children: [
|
|
3062
3065
|
n && /* @__PURE__ */ e("span", { className: "select-table-empty__icon", children: n }),
|
|
3063
3066
|
/* @__PURE__ */ e("p", { className: "select-table-empty__title", children: l }),
|
|
3064
3067
|
c && /* @__PURE__ */ e("p", { className: "select-table-empty__subtitle", children: c }),
|
|
3065
3068
|
s && /* @__PURE__ */ e("div", { className: "select-table-empty__action", children: s })
|
|
3066
3069
|
] });
|
|
3067
|
-
}),
|
|
3070
|
+
}), Kc = R(function({ children: n, className: l, ...c }, s) {
|
|
3068
3071
|
return /* @__PURE__ */ e("div", { ref: s, ...c, className: `select-menu${l ? " " + l : ""}`, role: "menu", children: n });
|
|
3069
|
-
}),
|
|
3072
|
+
}), Jc = R(function({ children: n, icon: l, trailing: c, onClick: s, active: a = !1, tone: r = "default", className: d, ...o }, i) {
|
|
3070
3073
|
return /* @__PURE__ */ m("button", { ref: i, ...o, type: "button", role: "menuitem", className: `select-menu__item select-menu__item--${r}${a ? " is-active" : ""}${d ? " " + d : ""}`, onClick: s, children: [
|
|
3071
3074
|
l && /* @__PURE__ */ e("span", { className: "select-menu__icon", children: l }),
|
|
3072
3075
|
/* @__PURE__ */ e("span", { className: "select-menu__label", children: n }),
|
|
3073
3076
|
c && /* @__PURE__ */ e("span", { className: "select-menu__trailing", children: c })
|
|
3074
3077
|
] });
|
|
3075
3078
|
});
|
|
3076
|
-
function
|
|
3079
|
+
function $1() {
|
|
3077
3080
|
return /* @__PURE__ */ e("div", { className: "select-menu__divider", role: "separator" });
|
|
3078
3081
|
}
|
|
3079
|
-
const
|
|
3082
|
+
const Qc = R(function({ children: n, onClick: l, active: c = !1, className: s, ...a }, r) {
|
|
3080
3083
|
return /* @__PURE__ */ m("button", { ref: r, ...a, type: "button", className: `select-menubtn${c ? " is-active" : ""}${s ? " " + s : ""}`, onClick: l, "aria-haspopup": "menu", "aria-expanded": c, children: [
|
|
3081
3084
|
/* @__PURE__ */ e("span", { children: n }),
|
|
3082
3085
|
/* @__PURE__ */ e("span", { className: "select-menubtn__caret", "aria-hidden": "true", children: /* @__PURE__ */ e(be, {}) })
|
|
3083
3086
|
] });
|
|
3084
|
-
}),
|
|
3087
|
+
}), k1 = R(function({ children: n, onClick: l, active: c = !1, className: s, ...a }, r) {
|
|
3085
3088
|
return /* @__PURE__ */ m("button", { ref: r, ...a, type: "button", className: `select-chip${c ? " select-chip--active" : ""}${s ? " " + s : ""}`, onClick: l, children: [
|
|
3086
3089
|
!c && /* @__PURE__ */ e("span", { className: "select-chip__icon", "aria-hidden": "true", children: /* @__PURE__ */ e(nt, {}) }),
|
|
3087
3090
|
n
|
|
3088
3091
|
] });
|
|
3089
|
-
}),
|
|
3092
|
+
}), w1 = R(function({ label: n, value: l, href: c, onCopy: s, className: a, ...r }, d) {
|
|
3090
3093
|
return /* @__PURE__ */ m("div", { ref: d, ...r, className: `select-copyrow${a ? " " + a : ""}`, children: [
|
|
3091
3094
|
n && /* @__PURE__ */ e("span", { className: "select-copyrow__label", children: n }),
|
|
3092
3095
|
/* @__PURE__ */ m("div", { className: "select-copyrow__value", children: [
|
|
@@ -3098,7 +3101,7 @@ const Jc = R(function({ children: n, onClick: l, active: c = !1, className: s, .
|
|
|
3098
3101
|
] })
|
|
3099
3102
|
] });
|
|
3100
3103
|
});
|
|
3101
|
-
function
|
|
3104
|
+
function S1({
|
|
3102
3105
|
value: t,
|
|
3103
3106
|
children: n,
|
|
3104
3107
|
truncate: l,
|
|
@@ -3132,7 +3135,7 @@ function w1({
|
|
|
3132
3135
|
)
|
|
3133
3136
|
] });
|
|
3134
3137
|
}
|
|
3135
|
-
const
|
|
3138
|
+
const C1 = R(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !1, className: a, ...r }, d) {
|
|
3136
3139
|
const [o, i] = D(c);
|
|
3137
3140
|
return /* @__PURE__ */ m("div", { ref: d, ...r, className: `select-collapsible${s ? " select-collapsible--plain" : ""}${o ? " is-open" : ""}${a ? " " + a : ""}`, children: [
|
|
3138
3141
|
/* @__PURE__ */ m("button", { type: "button", className: "select-collapsible__header", onClick: () => i((h) => !h), "aria-expanded": o, children: [
|
|
@@ -3141,7 +3144,7 @@ const S1 = R(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3141
3144
|
] }),
|
|
3142
3145
|
/* @__PURE__ */ e("div", { className: "select-collapsible__bodywrap", children: /* @__PURE__ */ e("div", { className: "select-collapsible__bodyclip", "aria-hidden": !o, children: /* @__PURE__ */ e("div", { className: "select-collapsible__body", children: l }) }) })
|
|
3143
3146
|
] });
|
|
3144
|
-
}),
|
|
3147
|
+
}), L1 = R(function({ icon: n, title: l, description: c, action: s, onDismiss: a, className: r, ...d }, o) {
|
|
3145
3148
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-actioncard${r ? " " + r : ""}`, children: [
|
|
3146
3149
|
a && /* @__PURE__ */ e("div", { className: "select-actioncard__dismiss", children: /* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(Ke, {}), label: "Dispensar", onClick: a }) }),
|
|
3147
3150
|
n && /* @__PURE__ */ e("span", { className: "select-actioncard__icon", children: n }),
|
|
@@ -3151,7 +3154,7 @@ const S1 = R(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3151
3154
|
] }),
|
|
3152
3155
|
s && /* @__PURE__ */ e("div", { className: "select-actioncard__action", children: s })
|
|
3153
3156
|
] });
|
|
3154
|
-
}),
|
|
3157
|
+
}), A1 = R(function({ media: n, sublabel: l, title: c, badge: s, meta: a, accent: r = !0, onClick: d, className: o, ...i }, h) {
|
|
3155
3158
|
return /* @__PURE__ */ m("button", { ref: h, ...i, type: "button", className: `select-tile${o ? " " + o : ""}`, onClick: d, children: [
|
|
3156
3159
|
r && /* @__PURE__ */ e("span", { className: "select-tile__accent", "aria-hidden": "true" }),
|
|
3157
3160
|
/* @__PURE__ */ m("div", { className: "select-tile__main", children: [
|
|
@@ -3166,19 +3169,19 @@ const S1 = R(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3166
3169
|
] }),
|
|
3167
3170
|
a && /* @__PURE__ */ e("div", { className: "select-tile__meta", children: a })
|
|
3168
3171
|
] });
|
|
3169
|
-
}),
|
|
3172
|
+
}), F1 = R(function({ label: n, onClick: l, className: c, ...s }, a) {
|
|
3170
3173
|
return /* @__PURE__ */ m("button", { ref: a, ...s, type: "button", className: `select-tile select-tile--create${c ? " " + c : ""}`, onClick: l, children: [
|
|
3171
3174
|
/* @__PURE__ */ e("span", { className: "select-tile__plus", "aria-hidden": "true", children: /* @__PURE__ */ e(nt, {}) }),
|
|
3172
3175
|
/* @__PURE__ */ e("span", { className: "select-tile__createlabel", children: n })
|
|
3173
3176
|
] });
|
|
3174
|
-
}),
|
|
3177
|
+
}), B1 = R(function({ avatar: n, name: l, badge: c, onClick: s, className: a, ...r }, d) {
|
|
3175
3178
|
return /* @__PURE__ */ m("button", { ref: d, ...r, type: "button", className: `select-wsswitcher${a ? " " + a : ""}`, onClick: s, "aria-haspopup": "menu", children: [
|
|
3176
3179
|
n && /* @__PURE__ */ e("span", { className: "select-wsswitcher__avatar", children: n }),
|
|
3177
3180
|
/* @__PURE__ */ e("span", { className: "select-wsswitcher__name", children: l }),
|
|
3178
3181
|
c,
|
|
3179
3182
|
/* @__PURE__ */ e("span", { className: "select-wsswitcher__selector", "aria-hidden": "true", children: /* @__PURE__ */ e(jn, {}) })
|
|
3180
3183
|
] });
|
|
3181
|
-
}),
|
|
3184
|
+
}), es = 220;
|
|
3182
3185
|
function It({
|
|
3183
3186
|
open: t,
|
|
3184
3187
|
onClose: n,
|
|
@@ -3201,7 +3204,7 @@ function It({
|
|
|
3201
3204
|
y(!0);
|
|
3202
3205
|
const _ = setTimeout(() => {
|
|
3203
3206
|
g(!1), y(!1);
|
|
3204
|
-
},
|
|
3207
|
+
}, es);
|
|
3205
3208
|
return () => clearTimeout(_);
|
|
3206
3209
|
}
|
|
3207
3210
|
}, [t, f]), le(() => {
|
|
@@ -3272,7 +3275,7 @@ function E1({
|
|
|
3272
3275
|
o.current && clearTimeout(o.current);
|
|
3273
3276
|
},
|
|
3274
3277
|
[]
|
|
3275
|
-
),
|
|
3278
|
+
), Be(() => {
|
|
3276
3279
|
var $;
|
|
3277
3280
|
if (!s) {
|
|
3278
3281
|
h(null);
|
|
@@ -3323,7 +3326,7 @@ function E1({
|
|
|
3323
3326
|
)
|
|
3324
3327
|
] });
|
|
3325
3328
|
}
|
|
3326
|
-
function
|
|
3329
|
+
function I1({ actions: t, label: n = "Ações" }) {
|
|
3327
3330
|
const [l, c] = D(!1);
|
|
3328
3331
|
return /* @__PURE__ */ e(
|
|
3329
3332
|
Oe,
|
|
@@ -3346,7 +3349,7 @@ function B1({ actions: t, label: n = "Ações" }) {
|
|
|
3346
3349
|
}
|
|
3347
3350
|
);
|
|
3348
3351
|
}
|
|
3349
|
-
function
|
|
3352
|
+
function P1({
|
|
3350
3353
|
open: t,
|
|
3351
3354
|
onClose: n,
|
|
3352
3355
|
onConfirm: l,
|
|
@@ -3384,7 +3387,7 @@ function I1({
|
|
|
3384
3387
|
}
|
|
3385
3388
|
);
|
|
3386
3389
|
}
|
|
3387
|
-
function
|
|
3390
|
+
function R1({
|
|
3388
3391
|
open: t,
|
|
3389
3392
|
onClose: n,
|
|
3390
3393
|
onSubmit: l,
|
|
@@ -3439,14 +3442,14 @@ function P1({
|
|
|
3439
3442
|
}
|
|
3440
3443
|
);
|
|
3441
3444
|
}
|
|
3442
|
-
function
|
|
3445
|
+
function ts(t, n) {
|
|
3443
3446
|
const c = [.../* @__PURE__ */ new Set([1, n, t, t - 1, t + 1])].filter((r) => r >= 1 && r <= n).sort((r, d) => r - d), s = [];
|
|
3444
3447
|
let a = 0;
|
|
3445
3448
|
for (const r of c)
|
|
3446
3449
|
r - a > 1 && s.push("gap"), s.push(r), a = r;
|
|
3447
3450
|
return s;
|
|
3448
3451
|
}
|
|
3449
|
-
function
|
|
3452
|
+
function ns(t, n, l, c, s, a) {
|
|
3450
3453
|
const r = [];
|
|
3451
3454
|
if (t != null)
|
|
3452
3455
|
if (t === 0)
|
|
@@ -3458,8 +3461,8 @@ function ts(t, n, l, c, s, a) {
|
|
|
3458
3461
|
r.push(`${t} ${s}`);
|
|
3459
3462
|
return a && c != null && c > 0 && r.push(`Página ${l} de ${c}`), r.length > 0 ? r.join(" · ") : null;
|
|
3460
3463
|
}
|
|
3461
|
-
const
|
|
3462
|
-
const v = a ?? n > 1, y = r ?? (l != null ? n < l : !0), x = d ?? (i ? () => i(n - 1) : void 0), $ = o ?? (i ? () => i(n + 1) : void 0), _ = l != null && l > 1 && i != null, p = _ ?
|
|
3464
|
+
const ls = R(function({ page: n, pageCount: l, total: c, pageSize: s, hasPrevious: a, hasNext: r, onPrevious: d, onNext: o, onPage: i, noun: h = "resultados", className: u, ...f }, g) {
|
|
3465
|
+
const v = a ?? n > 1, y = r ?? (l != null ? n < l : !0), x = d ?? (i ? () => i(n - 1) : void 0), $ = o ?? (i ? () => i(n + 1) : void 0), _ = l != null && l > 1 && i != null, p = _ ? ts(n, l) : [], b = ns(c, s, n, l, h, _);
|
|
3463
3466
|
return /* @__PURE__ */ m("nav", { ref: g, ...f, className: `select-pagination${u ? " " + u : ""}`, "aria-label": "Paginação", children: [
|
|
3464
3467
|
/* @__PURE__ */ m("div", { className: "select-pagination__controls", children: [
|
|
3465
3468
|
/* @__PURE__ */ e(
|
|
@@ -3500,8 +3503,8 @@ const ns = R(function({ page: n, pageCount: l, total: c, pageSize: s, hasPreviou
|
|
|
3500
3503
|
] }),
|
|
3501
3504
|
b != null && /* @__PURE__ */ e("p", { className: "select-pagination__count", children: b })
|
|
3502
3505
|
] });
|
|
3503
|
-
}),
|
|
3504
|
-
function
|
|
3506
|
+
}), D1 = "9.5rem", qt = "select-datatable:hidden-cols:";
|
|
3507
|
+
function cs(t) {
|
|
3505
3508
|
try {
|
|
3506
3509
|
const n = localStorage.getItem(qt + t), l = n ? JSON.parse(n) : null;
|
|
3507
3510
|
return Array.isArray(l) ? l.filter((c) => typeof c == "string") : [];
|
|
@@ -3509,7 +3512,7 @@ function ls(t) {
|
|
|
3509
3512
|
return [];
|
|
3510
3513
|
}
|
|
3511
3514
|
}
|
|
3512
|
-
function
|
|
3515
|
+
function ss(t, n) {
|
|
3513
3516
|
try {
|
|
3514
3517
|
n.length === 0 ? localStorage.removeItem(qt + t) : localStorage.setItem(qt + t, JSON.stringify(n));
|
|
3515
3518
|
} catch {
|
|
@@ -3519,7 +3522,7 @@ function yn(t) {
|
|
|
3519
3522
|
return t.hideable ?? !!t.title;
|
|
3520
3523
|
}
|
|
3521
3524
|
const Nn = "select-datatable:page-size:";
|
|
3522
|
-
function
|
|
3525
|
+
function T1(t, n, l) {
|
|
3523
3526
|
const [c, s] = D(() => {
|
|
3524
3527
|
try {
|
|
3525
3528
|
const r = Number(localStorage.getItem(Nn + t));
|
|
@@ -3536,11 +3539,11 @@ function D1(t, n, l) {
|
|
|
3536
3539
|
}
|
|
3537
3540
|
}];
|
|
3538
3541
|
}
|
|
3539
|
-
function
|
|
3542
|
+
function as(t, n, l) {
|
|
3540
3543
|
const c = t == null || t === "", s = n == null || n === "";
|
|
3541
3544
|
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" });
|
|
3542
3545
|
}
|
|
3543
|
-
function
|
|
3546
|
+
function W1({
|
|
3544
3547
|
columns: t,
|
|
3545
3548
|
items: n,
|
|
3546
3549
|
getId: l,
|
|
@@ -3553,21 +3556,21 @@ function T1({
|
|
|
3553
3556
|
filters: i,
|
|
3554
3557
|
columnsKey: h
|
|
3555
3558
|
}) {
|
|
3556
|
-
const [u, f] = D(() => h ?
|
|
3559
|
+
const [u, f] = D(() => h ? cs(h) : []), [g, v] = D(!1), [y, x] = D(!1), $ = xe(() => new Set(u), [u]), _ = t.filter(yn), p = _.length > 0 && _.every((I) => $.has(I.key)), b = (I) => !p && $.has(I.key) && yn(I), S = t.filter((I) => !b(I)), k = _.filter((I) => !b(I)), [M, w] = D(null), N = (I) => {
|
|
3557
3560
|
f((O) => {
|
|
3558
3561
|
const W = !O.includes(I.key), Z = W ? [...O, I.key] : O.filter((G) => G !== I.key);
|
|
3559
|
-
return h &&
|
|
3562
|
+
return h && ss(h, Z), W && w((G) => G && G.key === I.key ? null : G), Z;
|
|
3560
3563
|
});
|
|
3561
3564
|
}, C = (I) => {
|
|
3562
3565
|
w((O) => {
|
|
3563
3566
|
const W = I.sortDefault ?? "asc";
|
|
3564
3567
|
return !O || O.key !== I.key ? { key: I.key, dir: W } : O.dir === W ? { key: I.key, dir: W === "asc" ? "desc" : "asc" } : null;
|
|
3565
3568
|
});
|
|
3566
|
-
}, L = M ? t.find((I) => I.key === M.key) : void 0,
|
|
3569
|
+
}, L = M ? t.find((I) => I.key === M.key) : void 0, B = xe(() => {
|
|
3567
3570
|
const I = L == null ? void 0 : L.sortValue;
|
|
3568
3571
|
if (!M || !I) return n;
|
|
3569
3572
|
const O = M.dir === "asc" ? 1 : -1;
|
|
3570
|
-
return [...n].sort((W, Z) =>
|
|
3573
|
+
return [...n].sort((W, Z) => as(I(W), I(Z), O));
|
|
3571
3574
|
}, [n, M, L]), A = S.map((I) => ({
|
|
3572
3575
|
label: I.title,
|
|
3573
3576
|
align: I.align,
|
|
@@ -3575,7 +3578,7 @@ function T1({
|
|
|
3575
3578
|
sortable: !!I.sortValue,
|
|
3576
3579
|
sortDir: (M == null ? void 0 : M.key) === I.key ? M.dir : null,
|
|
3577
3580
|
onSort: I.sortValue ? () => C(I) : void 0
|
|
3578
|
-
})), F = !c && s ? /* @__PURE__ */ e(
|
|
3581
|
+
})), F = !c && s ? /* @__PURE__ */ e(Xc, { icon: s.icon, title: s.heading, subtitle: s.text, action: s.action }) : void 0, E = h && _.length > 0 ? /* @__PURE__ */ e(
|
|
3579
3582
|
Oe,
|
|
3580
3583
|
{
|
|
3581
3584
|
active: g,
|
|
@@ -3615,10 +3618,10 @@ function T1({
|
|
|
3615
3618
|
}
|
|
3616
3619
|
) : null;
|
|
3617
3620
|
return /* @__PURE__ */ m("div", { className: "select-datatable", children: [
|
|
3618
|
-
/* @__PURE__ */ e(
|
|
3621
|
+
/* @__PURE__ */ e(zc, { columns: A, empty: F, title: d, filters: i, action: E ? /* @__PURE__ */ m("span", { className: "select-datatable__toolbar", children: [
|
|
3619
3622
|
o,
|
|
3620
|
-
|
|
3621
|
-
] }) : o, children: c ? Array.from({ length: 5 }, (I, O) => /* @__PURE__ */ e(bn, { children: S.map((W, Z) => /* @__PURE__ */ e(xn, { align: W.align, width: W.width, children: /* @__PURE__ */ e("span", { className: "select-skeleton select-datatable__skel" }) }, Z)) }, `skeleton-${O}`)) :
|
|
3623
|
+
E
|
|
3624
|
+
] }) : o, children: c ? Array.from({ length: 5 }, (I, O) => /* @__PURE__ */ e(bn, { children: S.map((W, Z) => /* @__PURE__ */ e(xn, { align: W.align, width: W.width, children: /* @__PURE__ */ e("span", { className: "select-skeleton select-datatable__skel" }) }, Z)) }, `skeleton-${O}`)) : B.map((I) => /* @__PURE__ */ e(bn, { onClick: r ? () => r(I) : void 0, children: S.map((O, W) => /* @__PURE__ */ e(xn, { align: O.align, width: O.width, children: O.render(I) }, W)) }, l(I))) }),
|
|
3622
3625
|
a && /* @__PURE__ */ m("div", { className: "select-datatable__pagination", children: [
|
|
3623
3626
|
a.pageSizeOptions && a.pageSizeOptions.length > 1 && a.onPageSizeChange && /* @__PURE__ */ e("div", { className: "select-datatable__pagesize", children: /* @__PURE__ */ e(
|
|
3624
3627
|
Oe,
|
|
@@ -3671,7 +3674,7 @@ function T1({
|
|
|
3671
3674
|
}
|
|
3672
3675
|
) }),
|
|
3673
3676
|
/* @__PURE__ */ e(
|
|
3674
|
-
|
|
3677
|
+
ls,
|
|
3675
3678
|
{
|
|
3676
3679
|
page: a.page ?? 1,
|
|
3677
3680
|
pageCount: a.pageCount,
|
|
@@ -3688,7 +3691,7 @@ function T1({
|
|
|
3688
3691
|
] })
|
|
3689
3692
|
] });
|
|
3690
3693
|
}
|
|
3691
|
-
const
|
|
3694
|
+
const os = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"], rs = [
|
|
3692
3695
|
"Janeiro",
|
|
3693
3696
|
"Fevereiro",
|
|
3694
3697
|
"Março",
|
|
@@ -3702,7 +3705,7 @@ const as = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"], os = [
|
|
|
3702
3705
|
"Novembro",
|
|
3703
3706
|
"Dezembro"
|
|
3704
3707
|
], De = (t) => String(t).padStart(2, "0"), ct = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), vt = (t) => new Date(t.getFullYear(), t.getMonth(), 1), Mn = (t, n) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + n), $n = (t, n) => new Date(t.getFullYear(), t.getMonth() + n, 1), kn = (t, n) => t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate();
|
|
3705
|
-
function
|
|
3708
|
+
function is(t) {
|
|
3706
3709
|
const n = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(t || "");
|
|
3707
3710
|
return n ? new Date(Number(n[1]), Number(n[2]) - 1, Number(n[3]), Number(n[4] ?? 0), Number(n[5] ?? 0)) : null;
|
|
3708
3711
|
}
|
|
@@ -3710,14 +3713,14 @@ function wn(t, n) {
|
|
|
3710
3713
|
const l = `${t.getFullYear()}-${De(t.getMonth() + 1)}-${De(t.getDate())}`;
|
|
3711
3714
|
return n ? `${l}T${De(t.getHours())}:${De(t.getMinutes())}` : l;
|
|
3712
3715
|
}
|
|
3713
|
-
function
|
|
3716
|
+
function ds(t, n) {
|
|
3714
3717
|
const l = `${De(t.getDate())}/${De(t.getMonth() + 1)}/${t.getFullYear()}`;
|
|
3715
3718
|
return n ? `${l} ${De(t.getHours())}:${De(t.getMinutes())}` : l;
|
|
3716
3719
|
}
|
|
3717
|
-
const
|
|
3718
|
-
const $ = te(), _ = g ?? $, [p, b] = D(!1), S =
|
|
3720
|
+
const us = R(function({ label: n, value: l, onChange: c, showTime: s = !1, placeholder: a, required: r, disabled: d, error: o, hint: i, minDate: h, maxDate: u, clearable: f = !0, id: g, className: v, ...y }, x) {
|
|
3721
|
+
const $ = te(), _ = g ?? $, [p, b] = D(!1), S = is(l), [k, M] = D(() => vt(S ?? /* @__PURE__ */ new Date())), w = h ? ct(h) : null, N = u ? ct(u) : null, C = (W) => !!w && ct(W) < w || !!N && ct(W) > N, L = Mn(vt(k), -vt(k).getDay()), B = Array.from({ length: 42 }, (W, Z) => Mn(L, Z)), A = ct(/* @__PURE__ */ new Date()), F = () => {
|
|
3719
3722
|
d || (M(vt(S ?? /* @__PURE__ */ new Date())), b((W) => !W));
|
|
3720
|
-
},
|
|
3723
|
+
}, E = (W) => {
|
|
3721
3724
|
if (C(W)) return;
|
|
3722
3725
|
const Z = new Date(W);
|
|
3723
3726
|
s && Z.setHours((S == null ? void 0 : S.getHours()) ?? 0, (S == null ? void 0 : S.getMinutes()) ?? 0, 0, 0), c(wn(Z, s)), s || b(!1);
|
|
@@ -3738,7 +3741,7 @@ const ds = R(function({ label: n, value: l, onChange: c, showTime: s = !1, place
|
|
|
3738
3741
|
"aria-haspopup": "dialog",
|
|
3739
3742
|
"aria-expanded": p,
|
|
3740
3743
|
"aria-invalid": o ? !0 : void 0,
|
|
3741
|
-
children: S ?
|
|
3744
|
+
children: S ? ds(S, s) : /* @__PURE__ */ e("span", { className: "select-datefield__ph", children: a ?? (s ? "Selecione data e hora" : "Selecione uma data") })
|
|
3742
3745
|
}
|
|
3743
3746
|
),
|
|
3744
3747
|
/* @__PURE__ */ e("span", { className: "select-datefield__icon", "aria-hidden": "true", children: /* @__PURE__ */ e(qn, {}) })
|
|
@@ -3749,17 +3752,17 @@ const ds = R(function({ label: n, value: l, onChange: c, showTime: s = !1, place
|
|
|
3749
3752
|
/* @__PURE__ */ m("div", { className: "select-datepicker__calhead", children: [
|
|
3750
3753
|
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Mês anterior", onClick: () => M((W) => $n(W, -1)), children: /* @__PURE__ */ e(Kt, {}) }),
|
|
3751
3754
|
/* @__PURE__ */ m("span", { className: "select-datepicker__monthlabel", children: [
|
|
3752
|
-
|
|
3755
|
+
rs[k.getMonth()],
|
|
3753
3756
|
" ",
|
|
3754
3757
|
k.getFullYear()
|
|
3755
3758
|
] }),
|
|
3756
3759
|
/* @__PURE__ */ e("button", { type: "button", className: "select-datepicker__nav", "aria-label": "Próximo mês", onClick: () => M((W) => $n(W, 1)), children: /* @__PURE__ */ e(dt, {}) })
|
|
3757
3760
|
] }),
|
|
3758
3761
|
/* @__PURE__ */ m("div", { className: "select-datepicker__grid", role: "grid", children: [
|
|
3759
|
-
|
|
3760
|
-
|
|
3762
|
+
os.map((W) => /* @__PURE__ */ e("div", { className: "select-datepicker__weekday", children: W }, W)),
|
|
3763
|
+
B.map((W) => {
|
|
3761
3764
|
const Z = W.getMonth() !== k.getMonth(), G = !!S && kn(W, S), J = "select-datepicker__daybtn" + (G ? " is-selected" : "") + (kn(W, A) && !G ? " is-today" : "") + (Z ? " is-outside" : "");
|
|
3762
|
-
return /* @__PURE__ */ e("div", { className: "select-datepicker__day", children: /* @__PURE__ */ e("button", { type: "button", className: J, disabled: C(W), onClick: () =>
|
|
3765
|
+
return /* @__PURE__ */ e("div", { className: "select-datepicker__day", children: /* @__PURE__ */ e("button", { type: "button", className: J, disabled: C(W), onClick: () => E(W), children: W.getDate() }) }, W.getTime());
|
|
3763
3766
|
})
|
|
3764
3767
|
] }),
|
|
3765
3768
|
s && /* @__PURE__ */ m("div", { className: "select-datefield__time", children: [
|
|
@@ -3778,7 +3781,7 @@ const ds = R(function({ label: n, value: l, onChange: c, showTime: s = !1, place
|
|
|
3778
3781
|
/* @__PURE__ */ m("div", { className: "select-datefield__footer", children: [
|
|
3779
3782
|
f && S ? /* @__PURE__ */ e(ve, { variant: "secondary", inline: !0, onClick: I, children: "Limpar" }) : /* @__PURE__ */ e("span", {}),
|
|
3780
3783
|
/* @__PURE__ */ m("div", { className: "select-datefield__footer-right", children: [
|
|
3781
|
-
/* @__PURE__ */ e(ve, { variant: "secondary", inline: !0, onClick: () =>
|
|
3784
|
+
/* @__PURE__ */ e(ve, { variant: "secondary", inline: !0, onClick: () => E(A), children: "Hoje" }),
|
|
3782
3785
|
s && /* @__PURE__ */ e(ve, { variant: "primary", inline: !0, onClick: () => b(!1), children: "Concluir" })
|
|
3783
3786
|
] })
|
|
3784
3787
|
] })
|
|
@@ -3790,7 +3793,7 @@ function fl(t, n) {
|
|
|
3790
3793
|
var l, c;
|
|
3791
3794
|
return t.type === "select" ? ((c = (l = t.options) == null ? void 0 : l.find((s) => s.value === n)) == null ? void 0 : c.label) ?? n : n;
|
|
3792
3795
|
}
|
|
3793
|
-
function
|
|
3796
|
+
function hs({
|
|
3794
3797
|
filter: t,
|
|
3795
3798
|
value: n,
|
|
3796
3799
|
onChange: l,
|
|
@@ -3847,7 +3850,7 @@ function us({
|
|
|
3847
3850
|
v.value
|
|
3848
3851
|
);
|
|
3849
3852
|
}) })
|
|
3850
|
-
] }) : t.type === "date" ? /* @__PURE__ */ e("div", { className: "select-facet__field", children: /* @__PURE__ */ e(
|
|
3853
|
+
] }) : t.type === "date" ? /* @__PURE__ */ e("div", { className: "select-facet__field", children: /* @__PURE__ */ e(us, { value: n, onChange: l, placeholder: t.placeholder, clearable: !1 }) }) : /* @__PURE__ */ e(
|
|
3851
3854
|
"div",
|
|
3852
3855
|
{
|
|
3853
3856
|
className: "select-facet__field",
|
|
@@ -3872,7 +3875,7 @@ function us({
|
|
|
3872
3875
|
}
|
|
3873
3876
|
);
|
|
3874
3877
|
}
|
|
3875
|
-
const
|
|
3878
|
+
const O1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, search: a, disabled: r, className: d, ...o }, i) {
|
|
3876
3879
|
const [h, u] = D([]), [f, g] = D(null), [v, y] = D(!1), x = (M) => (l[M.key] ?? "").trim() !== "", $ = (M) => !!M.pinned || x(M) || h.includes(M.key), _ = n.filter($), p = n.filter((M) => !$(M)), b = n.filter(x), S = () => {
|
|
3877
3880
|
u([]), g(null), s();
|
|
3878
3881
|
}, k = (M) => {
|
|
@@ -3905,7 +3908,7 @@ const W1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
3905
3908
|
)
|
|
3906
3909
|
] }),
|
|
3907
3910
|
_.map((M) => /* @__PURE__ */ e(
|
|
3908
|
-
|
|
3911
|
+
hs,
|
|
3909
3912
|
{
|
|
3910
3913
|
filter: M,
|
|
3911
3914
|
value: l[M.key] ?? "",
|
|
@@ -3970,7 +3973,7 @@ const W1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
3970
3973
|
/* @__PURE__ */ e("button", { type: "button", className: "select-filterbar__clear", onClick: S, children: "Limpar tudo" })
|
|
3971
3974
|
] })
|
|
3972
3975
|
] });
|
|
3973
|
-
}),
|
|
3976
|
+
}), H1 = R(function({ label: n, options: l, selected: c, onChange: s, placeholder: a = "Selecionar…", hint: r, error: d, onBlur: o, size: i = "md", className: h, ...u }, f) {
|
|
3974
3977
|
const [g, v] = D(!1), [y, x] = D(""), $ = l.filter((b) => b.label.toLowerCase().includes(y.trim().toLowerCase())), _ = (b) => s(c.includes(b) ? c.filter((S) => S !== b) : [...c, b]), p = c.map((b) => l.find((S) => S.value === b)).filter((b) => b != null);
|
|
3975
3978
|
return /* @__PURE__ */ m("div", { ref: f, ...u, className: `select-field${i === "sm" ? " select-field--sm" : ""}${h ? " " + h : ""}`, children: [
|
|
3976
3979
|
n && /* @__PURE__ */ e("div", { className: "select-field__labelrow", children: /* @__PURE__ */ e("span", { className: "select-field__label", children: n }) }),
|
|
@@ -4045,7 +4048,7 @@ const W1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4045
4048
|
),
|
|
4046
4049
|
d ? /* @__PURE__ */ e("p", { className: "select-field__error", children: d }) : r ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: r }) : null
|
|
4047
4050
|
] });
|
|
4048
|
-
}),
|
|
4051
|
+
}), j1 = R(function({ title: n, description: l, headerAction: c, footer: s, children: a, flush: r = !1, className: d, ...o }, i) {
|
|
4049
4052
|
return /* @__PURE__ */ m("div", { ref: i, ...o, className: `select-surface${d ? " " + d : ""}`, children: [
|
|
4050
4053
|
(n || l || c) && /* @__PURE__ */ m("div", { className: "select-surface__header", children: [
|
|
4051
4054
|
/* @__PURE__ */ m("div", { className: "select-surface__heading", children: [
|
|
@@ -4057,19 +4060,19 @@ const W1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4057
4060
|
/* @__PURE__ */ e("div", { className: `select-surface__body${r ? " select-surface__body--flush" : ""}`, children: a }),
|
|
4058
4061
|
s && /* @__PURE__ */ e("div", { className: "select-surface__footer", children: s })
|
|
4059
4062
|
] });
|
|
4060
|
-
}), _l = Xt(null),
|
|
4061
|
-
function
|
|
4063
|
+
}), _l = Xt(null), ps = 220, ms = 4e3, fs = 8, _s = 0.04, vs = 5;
|
|
4064
|
+
function V1({ children: t }) {
|
|
4062
4065
|
const [n, l] = D([]), c = q(0), s = q(/* @__PURE__ */ new Map()), a = Te((i) => {
|
|
4063
4066
|
l((h) => h.filter((u) => u.id !== i)), s.current.delete(i);
|
|
4064
4067
|
}, []), r = Te(
|
|
4065
4068
|
(i) => {
|
|
4066
4069
|
const h = s.current.get(i);
|
|
4067
|
-
h && clearTimeout(h), l((u) => u.map((f) => f.id === i ? { ...f, exiting: !0 } : f)), s.current.set(i, setTimeout(() => a(i),
|
|
4070
|
+
h && clearTimeout(h), l((u) => u.map((f) => f.id === i ? { ...f, exiting: !0 } : f)), s.current.set(i, setTimeout(() => a(i), ps));
|
|
4068
4071
|
},
|
|
4069
4072
|
[a]
|
|
4070
4073
|
), d = Te(
|
|
4071
4074
|
(i, h) => {
|
|
4072
|
-
const u = ++c.current, f = (h == null ? void 0 : h.duration) ??
|
|
4075
|
+
const u = ++c.current, f = (h == null ? void 0 : h.duration) ?? ms;
|
|
4073
4076
|
l((g) => [...g, { id: u, content: i, variant: (h == null ? void 0 : h.variant) ?? "neutral" }]), f > 0 && s.current.set(u, setTimeout(() => r(u), f));
|
|
4074
4077
|
},
|
|
4075
4078
|
[r]
|
|
@@ -4093,8 +4096,8 @@ function j1({ children: t }) {
|
|
|
4093
4096
|
t,
|
|
4094
4097
|
n.length > 0 && Ft(
|
|
4095
4098
|
/* @__PURE__ */ e("div", { className: "select select-toasts", role: "region", "aria-live": "polite", "aria-label": "Notificações", children: n.map((i, h) => {
|
|
4096
|
-
const u = n.length - 1 - h, f = i.exiting || u >=
|
|
4097
|
-
transform: `translate(-50%, ${-u *
|
|
4099
|
+
const u = n.length - 1 - h, f = i.exiting || u >= vs, g = {
|
|
4100
|
+
transform: `translate(-50%, ${-u * fs}px) scale(${1 - u * _s})`,
|
|
4098
4101
|
opacity: f ? 0 : 1,
|
|
4099
4102
|
zIndex: 1e3 - u,
|
|
4100
4103
|
pointerEvents: u === 0 && !i.exiting ? "auto" : "none"
|
|
@@ -4108,12 +4111,12 @@ function j1({ children: t }) {
|
|
|
4108
4111
|
)
|
|
4109
4112
|
] });
|
|
4110
4113
|
}
|
|
4111
|
-
function
|
|
4114
|
+
function Z1() {
|
|
4112
4115
|
const t = zt(_l);
|
|
4113
4116
|
if (!t) throw new Error("useSelectToast must be used within a SelectToastProvider");
|
|
4114
4117
|
return t;
|
|
4115
4118
|
}
|
|
4116
|
-
const
|
|
4119
|
+
const gs = { desktop: "100%", mobile: 390 }, G1 = R(function({ src: n, title: l = "Pré-visualização", height: c = 560, initialDevice: s = "desktop", showDeviceToggle: a = !0, emptyLabel: r = "Salve para gerar a pré-visualização.", className: d, ...o }, i) {
|
|
4117
4120
|
const [h, u] = D(s), [f, g] = D(0), [v, y] = D(!0), x = n ? `${n}${n.includes("?") ? "&" : "?"}_pv=${f}` : "", $ = () => {
|
|
4118
4121
|
y(!0), g((_) => _ + 1);
|
|
4119
4122
|
};
|
|
@@ -4158,7 +4161,7 @@ const vs = { desktop: "100%", mobile: 390 }, Z1 = R(function({ src: n, title: l
|
|
|
4158
4161
|
)
|
|
4159
4162
|
] })
|
|
4160
4163
|
] }),
|
|
4161
|
-
/* @__PURE__ */ e("div", { className: "select-preview__stage", style: { height: c }, children: x ? /* @__PURE__ */ m("div", { className: "select-preview__device", style: { width:
|
|
4164
|
+
/* @__PURE__ */ e("div", { className: "select-preview__stage", style: { height: c }, children: x ? /* @__PURE__ */ m("div", { className: "select-preview__device", style: { width: gs[h] }, children: [
|
|
4162
4165
|
v && /* @__PURE__ */ e("div", { className: "select-preview__loading", children: /* @__PURE__ */ e(Oc, {}) }),
|
|
4163
4166
|
/* @__PURE__ */ e(
|
|
4164
4167
|
"iframe",
|
|
@@ -4172,18 +4175,18 @@ const vs = { desktop: "100%", mobile: 390 }, Z1 = R(function({ src: n, title: l
|
|
|
4172
4175
|
)
|
|
4173
4176
|
] }) : /* @__PURE__ */ e("p", { className: "select-preview__empty", children: r }) })
|
|
4174
4177
|
] });
|
|
4175
|
-
}),
|
|
4176
|
-
function
|
|
4178
|
+
}), bs = new Intl.NumberFormat("pt-BR", { style: "currency", currency: "BRL" });
|
|
4179
|
+
function xs(t) {
|
|
4177
4180
|
const n = typeof t == "string" ? Number(t) : t;
|
|
4178
4181
|
return typeof n == "number" && Number.isFinite(n) ? n : 0;
|
|
4179
4182
|
}
|
|
4180
|
-
function
|
|
4181
|
-
return
|
|
4183
|
+
function ys(t) {
|
|
4184
|
+
return bs.format(xs(t) / 100);
|
|
4182
4185
|
}
|
|
4183
|
-
const vl = "sw:hide-money",
|
|
4186
|
+
const vl = "sw:hide-money", Ns = { hidden: !1, toggle: () => {
|
|
4184
4187
|
}, setHidden: () => {
|
|
4185
4188
|
} }, gl = Xt(null);
|
|
4186
|
-
function
|
|
4189
|
+
function Ms() {
|
|
4187
4190
|
try {
|
|
4188
4191
|
return localStorage.getItem(vl) === "1";
|
|
4189
4192
|
} catch {
|
|
@@ -4196,8 +4199,8 @@ function Sn(t) {
|
|
|
4196
4199
|
} catch {
|
|
4197
4200
|
}
|
|
4198
4201
|
}
|
|
4199
|
-
function
|
|
4200
|
-
const [n, l] = D(
|
|
4202
|
+
function U1({ children: t }) {
|
|
4203
|
+
const [n, l] = D(Ms), c = Te((r) => {
|
|
4201
4204
|
l(r), Sn(r);
|
|
4202
4205
|
}, []), s = Te(() => {
|
|
4203
4206
|
l((r) => {
|
|
@@ -4208,9 +4211,9 @@ function G1({ children: t }) {
|
|
|
4208
4211
|
return /* @__PURE__ */ e(gl.Provider, { value: a, children: t });
|
|
4209
4212
|
}
|
|
4210
4213
|
function bl() {
|
|
4211
|
-
return zt(gl) ??
|
|
4214
|
+
return zt(gl) ?? Ns;
|
|
4212
4215
|
}
|
|
4213
|
-
const
|
|
4216
|
+
const $s = R(function({ children: n, label: l = "valor oculto", className: c, ...s }, a) {
|
|
4214
4217
|
const { hidden: r } = bl();
|
|
4215
4218
|
return /* @__PURE__ */ e("span", { ref: a, ...s, className: `select-sensitive${r ? " select-sensitive--hidden" : ""}${c ? " " + c : ""}`, "aria-label": r ? l : void 0, children: n });
|
|
4216
4219
|
});
|
|
@@ -4218,14 +4221,14 @@ function at({
|
|
|
4218
4221
|
cents: t,
|
|
4219
4222
|
sensitive: n = !0
|
|
4220
4223
|
}) {
|
|
4221
|
-
const l =
|
|
4222
|
-
return n ? /* @__PURE__ */ e(
|
|
4224
|
+
const l = ys(t);
|
|
4225
|
+
return n ? /* @__PURE__ */ e($s, { children: l }) : /* @__PURE__ */ e(_e, { children: l });
|
|
4223
4226
|
}
|
|
4224
|
-
const
|
|
4227
|
+
const ks = new Intl.NumberFormat("pt-BR", {
|
|
4225
4228
|
signDisplay: "exceptZero",
|
|
4226
4229
|
minimumFractionDigits: 1,
|
|
4227
4230
|
maximumFractionDigits: 1
|
|
4228
|
-
}),
|
|
4231
|
+
}), ws = R(function({ value: n, invert: l = !1, caption: c, className: s, ...a }, r) {
|
|
4229
4232
|
if (n == null || !Number.isFinite(n))
|
|
4230
4233
|
return /* @__PURE__ */ m("span", { ref: r, ...a, className: `select-delta select-delta--muted${s ? " " + s : ""}`, children: [
|
|
4231
4234
|
"—",
|
|
@@ -4235,13 +4238,13 @@ const $s = new Intl.NumberFormat("pt-BR", {
|
|
|
4235
4238
|
return /* @__PURE__ */ m("span", { ref: r, ...a, className: `select-delta${s ? " " + s : ""}`, children: [
|
|
4236
4239
|
/* @__PURE__ */ m("span", { className: `select-delta__value select-delta__value--${h}`, children: [
|
|
4237
4240
|
u ? `${u} ` : "",
|
|
4238
|
-
|
|
4241
|
+
ks.format(n),
|
|
4239
4242
|
"%"
|
|
4240
4243
|
] }),
|
|
4241
4244
|
c != null && /* @__PURE__ */ e("span", { className: "select-delta__caption", children: c })
|
|
4242
4245
|
] });
|
|
4243
4246
|
});
|
|
4244
|
-
function
|
|
4247
|
+
function q1() {
|
|
4245
4248
|
const { hidden: t, toggle: n } = bl();
|
|
4246
4249
|
return /* @__PURE__ */ e(
|
|
4247
4250
|
ge,
|
|
@@ -4254,7 +4257,7 @@ function U1() {
|
|
|
4254
4257
|
}
|
|
4255
4258
|
);
|
|
4256
4259
|
}
|
|
4257
|
-
const
|
|
4260
|
+
const Y1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponível", delta: c, buckets: s = [], action: a, className: r, ...d }, o) {
|
|
4258
4261
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-balance${r ? " " + r : ""}`, children: [
|
|
4259
4262
|
/* @__PURE__ */ m("div", { className: "select-balance__head", children: [
|
|
4260
4263
|
/* @__PURE__ */ e("h3", { className: "select-balance__title", children: l }),
|
|
@@ -4274,7 +4277,7 @@ const q1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4274
4277
|
/* @__PURE__ */ m("div", { className: "select-balance__body", children: [
|
|
4275
4278
|
/* @__PURE__ */ m("div", { className: "select-balance__heromain", children: [
|
|
4276
4279
|
/* @__PURE__ */ e("span", { className: "select-balance__heroamount", children: /* @__PURE__ */ e(at, { cents: n }) }),
|
|
4277
|
-
c != null && /* @__PURE__ */ e(
|
|
4280
|
+
c != null && /* @__PURE__ */ e(ws, { value: c, caption: "vs. período anterior" })
|
|
4278
4281
|
] }),
|
|
4279
4282
|
s.length > 0 && /* @__PURE__ */ e("div", { className: "select-balance__buckets", children: s.map((i) => /* @__PURE__ */ m("div", { className: "select-balance__bucket", children: [
|
|
4280
4283
|
i.icon && /* @__PURE__ */ e("span", { className: "select-balance__bucketicon", children: i.icon }),
|
|
@@ -4285,7 +4288,7 @@ const q1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4285
4288
|
] }, i.label)) })
|
|
4286
4289
|
] })
|
|
4287
4290
|
] });
|
|
4288
|
-
}),
|
|
4291
|
+
}), z1 = R(function({ grossCents: n, fees: l, netCents: c, grossLabel: s = "Valor bruto", netLabel: a = "Valor líquido", className: r, ...d }, o) {
|
|
4289
4292
|
const i = c ?? n - l.reduce((h, u) => h + u.cents, 0);
|
|
4290
4293
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-fees${r ? " " + r : ""}`, children: [
|
|
4291
4294
|
/* @__PURE__ */ m("div", { className: "select-fees__row", children: [
|
|
@@ -4305,14 +4308,14 @@ const q1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4305
4308
|
/* @__PURE__ */ e("span", { className: "select-fees__netvalue", children: /* @__PURE__ */ e(at, { cents: i }) })
|
|
4306
4309
|
] })
|
|
4307
4310
|
] });
|
|
4308
|
-
}),
|
|
4311
|
+
}), X1 = R(function({ label: n, value: l, caption: c, chart: s, tone: a, bare: r = !1, className: d, ...o }, i) {
|
|
4309
4312
|
return /* @__PURE__ */ m("div", { ref: i, ...o, className: `select-kpi${r ? " select-kpi--bare" : ""}${d ? " " + d : ""}`, children: [
|
|
4310
4313
|
/* @__PURE__ */ e("span", { className: "select-kpi__label", children: n }),
|
|
4311
4314
|
/* @__PURE__ */ e("span", { className: `select-kpi__value${a ? ` select-kpi__value--${a}` : ""}`, children: l }),
|
|
4312
4315
|
s != null && /* @__PURE__ */ e("div", { className: "select-kpi__chart", children: s }),
|
|
4313
4316
|
c != null && /* @__PURE__ */ e("span", { className: "select-kpi__caption", children: c })
|
|
4314
4317
|
] });
|
|
4315
|
-
}),
|
|
4318
|
+
}), K1 = R(function({ title: n, caption: l, action: c, loading: s = !1, hideValues: a = !1, height: r = 260, flush: d = !1, children: o, className: i, ...h }, u) {
|
|
4316
4319
|
const f = r === "auto" ? void 0 : `${r / 16}rem`, g = r === "auto" ? "10rem" : `${r / 16}rem`;
|
|
4317
4320
|
return /* @__PURE__ */ m("div", { ref: u, ...h, className: `select-chartcard${i ? " " + i : ""}`, children: [
|
|
4318
4321
|
(n || c || l) && /* @__PURE__ */ m("div", { className: "select-chartcard__head", children: [
|
|
@@ -4332,9 +4335,9 @@ const q1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4332
4335
|
)
|
|
4333
4336
|
] });
|
|
4334
4337
|
});
|
|
4335
|
-
function
|
|
4338
|
+
function Ss() {
|
|
4336
4339
|
const [t, n] = D(1);
|
|
4337
|
-
return
|
|
4340
|
+
return Be(() => {
|
|
4338
4341
|
const l = () => {
|
|
4339
4342
|
const c = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
4340
4343
|
c && n(c / 16);
|
|
@@ -4343,8 +4346,8 @@ function ws() {
|
|
|
4343
4346
|
}, []), t;
|
|
4344
4347
|
}
|
|
4345
4348
|
function ce(t) {
|
|
4346
|
-
const n = q(null), [l, c] = D(0), s =
|
|
4347
|
-
return
|
|
4349
|
+
const n = q(null), [l, c] = D(0), s = Ss();
|
|
4350
|
+
return Be(() => {
|
|
4348
4351
|
const a = n.current;
|
|
4349
4352
|
if (!a) return;
|
|
4350
4353
|
c(a.clientWidth);
|
|
@@ -4358,7 +4361,7 @@ function ce(t) {
|
|
|
4358
4361
|
}
|
|
4359
4362
|
function Ct(t, n) {
|
|
4360
4363
|
const [l, c] = D(n);
|
|
4361
|
-
return
|
|
4364
|
+
return Be(() => {
|
|
4362
4365
|
const s = t.current;
|
|
4363
4366
|
if (!s) return;
|
|
4364
4367
|
const a = () => {
|
|
@@ -4378,7 +4381,7 @@ function ye(t) {
|
|
|
4378
4381
|
function we(t, n = 4) {
|
|
4379
4382
|
return Array.from({ length: n + 1 }, (l, c) => t / n * c);
|
|
4380
4383
|
}
|
|
4381
|
-
function
|
|
4384
|
+
function Cs(t, n = 5) {
|
|
4382
4385
|
if (!(t > 0)) return { max: 1, values: [0, 1] };
|
|
4383
4386
|
const l = t / n, c = Math.pow(10, Math.floor(Math.log10(l))), s = l / c, a = (s <= 1 ? 1 : s <= 2 ? 2 : s <= 5 ? 5 : 10) * c, r = Math.ceil(t / a) * a, d = [];
|
|
4384
4387
|
for (let o = 0; o <= r + a / 2; o += a) d.push(Math.round(o * 1e6) / 1e6);
|
|
@@ -4445,8 +4448,8 @@ function Y(t) {
|
|
|
4445
4448
|
const n = Math.abs(t);
|
|
4446
4449
|
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));
|
|
4447
4450
|
}
|
|
4448
|
-
const
|
|
4449
|
-
function
|
|
4451
|
+
const Ee = { top: 16, right: 22, bottom: 32, left: 48 };
|
|
4452
|
+
function J1({ data: t, color: n, height: l = 40, className: c, ...s }) {
|
|
4450
4453
|
const { ref: a, width: r } = ce(l), d = n ?? j(0), o = te(), i = 4;
|
|
4451
4454
|
let h = null;
|
|
4452
4455
|
if (r > 0 && t.length > 1) {
|
|
@@ -4484,7 +4487,7 @@ function X() {
|
|
|
4484
4487
|
}
|
|
4485
4488
|
function K({ tip: t, className: n, ...l }) {
|
|
4486
4489
|
const c = q(null), [s, a] = D(0);
|
|
4487
|
-
if (
|
|
4490
|
+
if (Be(() => {
|
|
4488
4491
|
if (!t) return;
|
|
4489
4492
|
const d = c.current, o = d == null ? void 0 : d.offsetParent;
|
|
4490
4493
|
if (!d || !o) return;
|
|
@@ -4506,8 +4509,8 @@ function K({ tip: t, className: n, ...l }) {
|
|
|
4506
4509
|
] }, o))
|
|
4507
4510
|
] });
|
|
4508
4511
|
}
|
|
4509
|
-
function
|
|
4510
|
-
const { ref: r, width: d } = ce(n), o = X(), i = te(), h = l ?? j(0), u = ye(Math.max(0, ...t.map((p) => p.value))), f =
|
|
4512
|
+
function Q1({ data: t, height: n = 240, color: l, format: c = Y, className: s, ...a }) {
|
|
4513
|
+
const { ref: r, width: d } = ce(n), o = X(), i = te(), h = l ?? j(0), u = ye(Math.max(0, ...t.map((p) => p.value))), f = Ee, g = Math.max(0, d - f.left - f.right), v = n - f.top - f.bottom, y = t.length > 0 ? g / t.length : 0, x = Math.min(y * 0.62, 44), $ = f.top + v, _ = (p) => $ - p / u * v;
|
|
4511
4514
|
return /* @__PURE__ */ m("div", { ...a, className: `select-chart-wrap${s ? " " + s : ""}`, ref: r, children: [
|
|
4512
4515
|
d > 0 && /* @__PURE__ */ m("svg", { width: d, height: n, className: "select-chart", children: [
|
|
4513
4516
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ m("linearGradient", { id: `${i}-bar`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
@@ -4557,8 +4560,8 @@ function J1({ data: t, height: n = 240, color: l, format: c = Y, className: s, .
|
|
|
4557
4560
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
4558
4561
|
] });
|
|
4559
4562
|
}
|
|
4560
|
-
function
|
|
4561
|
-
const { ref: d, width: o } = ce(l), i = X(), h = te(), [u, f] = D(null), { max: g, values: v } =
|
|
4563
|
+
function eo({ series: t, labels: n, height: l = 240, format: c = Y, area: s = !1, className: a, ...r }) {
|
|
4564
|
+
const { ref: d, width: o } = ce(l), i = X(), h = te(), [u, f] = D(null), { max: g, values: v } = Cs(Math.max(0, ...t.flatMap((w) => w.data))), y = Ee, x = Math.max(0, o - y.left - y.right), $ = l - y.top - y.bottom, _ = n.length, p = (w) => y.left + (_ <= 1 ? x / 2 : w / (_ - 1) * x), b = (w) => y.top + $ - w / g * $, S = _ > 1 ? x / (_ - 1) : x, k = Math.max(1, Math.ceil(_ / 7)), M = y.top + $;
|
|
4562
4565
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: d, children: [
|
|
4563
4566
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: l, className: "select-chart", children: [
|
|
4564
4567
|
/* @__PURE__ */ e("defs", { children: t.map((w, N) => {
|
|
@@ -4583,7 +4586,7 @@ function Q1({ series: t, labels: n, height: l = 240, format: c = Y, area: s = !1
|
|
|
4583
4586
|
] }, N)),
|
|
4584
4587
|
u != null && /* @__PURE__ */ e("line", { x1: p(u), x2: p(u), y1: y.top, y2: M, className: "select-chart__crosshair" }),
|
|
4585
4588
|
t.map((w, N) => {
|
|
4586
|
-
const C = w.color ?? j(N), L = w.data.map((
|
|
4589
|
+
const C = w.color ?? j(N), L = w.data.map((B, A) => [p(A), b(B)]);
|
|
4587
4590
|
return /* @__PURE__ */ m("g", { children: [
|
|
4588
4591
|
s && /* @__PURE__ */ e("path", { d: xl(L, M), fill: `url(#${h}-a${N})`, className: "select-chart__area" }),
|
|
4589
4592
|
/* @__PURE__ */ e(
|
|
@@ -4631,7 +4634,7 @@ function Q1({ series: t, labels: n, height: l = 240, format: c = Y, area: s = !1
|
|
|
4631
4634
|
y: C,
|
|
4632
4635
|
place: C < y.top + 52 ? "bottom" : "top",
|
|
4633
4636
|
title: w,
|
|
4634
|
-
rows: t.map((L,
|
|
4637
|
+
rows: t.map((L, B) => ({ label: L.name, value: c(L.data[N] ?? 0), color: L.color ?? j(B) }))
|
|
4635
4638
|
});
|
|
4636
4639
|
},
|
|
4637
4640
|
onMouseLeave: () => {
|
|
@@ -4644,10 +4647,10 @@ function Q1({ series: t, labels: n, height: l = 240, format: c = Y, area: s = !1
|
|
|
4644
4647
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
4645
4648
|
] });
|
|
4646
4649
|
}
|
|
4647
|
-
function
|
|
4650
|
+
function to({ series: t, labels: n, height: l = 240, format: c = Y, className: s, ...a }) {
|
|
4648
4651
|
const { ref: r, width: d } = ce(l), o = X(), i = te(), [h, u] = D(null), f = n.length, g = new Array(f).fill(0), v = t.map(
|
|
4649
4652
|
(N) => N.data.map((C, L) => (g[L] = (g[L] ?? 0) + (C ?? 0), g[L]))
|
|
4650
|
-
), y = ye(Math.max(0, ...g)), x =
|
|
4653
|
+
), y = ye(Math.max(0, ...g)), x = Ee, $ = Math.max(0, d - x.left - x.right), _ = l - x.top - x.bottom, p = (N) => x.left + (f <= 1 ? $ / 2 : N / (f - 1) * $), b = (N) => x.top + _ - N / y * _, S = f > 1 ? $ / (f - 1) : $, k = Math.max(1, Math.ceil(f / 7)), M = x.top + _, w = v[v.length - 1];
|
|
4651
4654
|
return /* @__PURE__ */ m("div", { ...a, className: `select-chart-wrap${s ? " " + s : ""}`, ref: r, children: [
|
|
4652
4655
|
d > 0 && /* @__PURE__ */ m("svg", { width: d, height: l, className: "select-chart", children: [
|
|
4653
4656
|
/* @__PURE__ */ e("defs", { children: t.map((N, C) => {
|
|
@@ -4671,10 +4674,10 @@ function eo({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
4671
4674
|
/* @__PURE__ */ e("text", { x: x.left - 8, y: b(N), className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: c(N) })
|
|
4672
4675
|
] }, C)),
|
|
4673
4676
|
t.map((N, C) => {
|
|
4674
|
-
const L = N.color ?? j(C),
|
|
4677
|
+
const L = N.color ?? j(C), B = v[C].map((F, E) => [p(E), b(F)]), A = C === 0 ? n.map((F, E) => [p(E), M]) : v[C - 1].map((F, E) => [p(E), b(F)]);
|
|
4675
4678
|
return /* @__PURE__ */ m("g", { className: "select-chart__area", children: [
|
|
4676
|
-
/* @__PURE__ */ e("path", { d: yl(
|
|
4677
|
-
/* @__PURE__ */ e("path", { d: Ge(
|
|
4679
|
+
/* @__PURE__ */ e("path", { d: yl(B, A), fill: `url(#${i}-b${C})` }),
|
|
4680
|
+
/* @__PURE__ */ e("path", { d: Ge(B), fill: "none", stroke: L, strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })
|
|
4678
4681
|
] }, C);
|
|
4679
4682
|
}),
|
|
4680
4683
|
h != null && /* @__PURE__ */ e("line", { x1: p(h), x2: p(h), y1: x.top, y2: M, className: "select-chart__crosshair" }),
|
|
@@ -4697,7 +4700,7 @@ function eo({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
4697
4700
|
y: L,
|
|
4698
4701
|
place: L < x.top + 52 ? "bottom" : "top",
|
|
4699
4702
|
title: N,
|
|
4700
|
-
rows: t.map((
|
|
4703
|
+
rows: t.map((B, A) => ({ label: B.name, value: c(B.data[C] ?? 0), color: B.color ?? j(A) }))
|
|
4701
4704
|
});
|
|
4702
4705
|
},
|
|
4703
4706
|
onMouseLeave: () => {
|
|
@@ -4710,15 +4713,15 @@ function eo({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
4710
4713
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
4711
4714
|
] });
|
|
4712
4715
|
}
|
|
4713
|
-
function
|
|
4714
|
-
const { ref: o, width: i } = ce(c), h = X(), u = te(), [f, g] = D(null), v = { ...
|
|
4716
|
+
function no({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = Y, formatLine: a = (o) => `${Math.round(o)}%`, className: r, ...d }) {
|
|
4717
|
+
const { ref: o, width: i } = ce(c), h = X(), u = te(), [f, g] = D(null), v = { ...Ee, right: 58 }, y = Math.max(0, i - v.left - v.right), x = c - v.top - v.bottom, $ = t.length, _ = ye(Math.max(0, ...n.data)), p = ye(Math.max(0, ...l.data)), b = $ > 0 ? y / $ : 0, S = Math.min(b * 0.5, 36), k = Math.max(1, Math.ceil($ / 8)), M = n.color ?? j(0), w = l.color ?? j(1), N = v.top + x, C = (F) => N - F / _ * x, L = (F) => N - F / p * x, B = (F) => v.left + b * F + b / 2, A = l.data.map((F, E) => [B(E), L(F)]);
|
|
4715
4718
|
return /* @__PURE__ */ m("div", { ...d, className: `select-chart-wrap${r ? " " + r : ""}`, ref: o, children: [
|
|
4716
4719
|
i > 0 && /* @__PURE__ */ m("svg", { width: i, height: c, className: "select-chart", children: [
|
|
4717
4720
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ m("linearGradient", { id: `${u}-bar`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
4718
4721
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: M, stopOpacity: 1 }),
|
|
4719
4722
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: M, stopOpacity: 0.55 })
|
|
4720
4723
|
] }) }),
|
|
4721
|
-
we(_).map((F,
|
|
4724
|
+
we(_).map((F, E) => /* @__PURE__ */ m("g", { children: [
|
|
4722
4725
|
/* @__PURE__ */ e(
|
|
4723
4726
|
"line",
|
|
4724
4727
|
{
|
|
@@ -4726,30 +4729,30 @@ function to({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = Y, fo
|
|
|
4726
4729
|
x2: i - v.right,
|
|
4727
4730
|
y1: C(F),
|
|
4728
4731
|
y2: C(F),
|
|
4729
|
-
className:
|
|
4732
|
+
className: E === 0 ? "select-chart__axis" : "select-chart__grid"
|
|
4730
4733
|
}
|
|
4731
4734
|
),
|
|
4732
4735
|
/* @__PURE__ */ e("text", { x: v.left - 8, y: C(F), className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: s(F) })
|
|
4733
|
-
] },
|
|
4734
|
-
we(p).map((F,
|
|
4735
|
-
n.data.map((F,
|
|
4736
|
+
] }, E)),
|
|
4737
|
+
we(p).map((F, E) => /* @__PURE__ */ e("text", { x: i - 4, y: L(F), className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: a(F) }, `r${E}`)),
|
|
4738
|
+
n.data.map((F, E) => {
|
|
4736
4739
|
const T = F / _ * x;
|
|
4737
4740
|
return /* @__PURE__ */ e(
|
|
4738
4741
|
"rect",
|
|
4739
4742
|
{
|
|
4740
|
-
x: E
|
|
4743
|
+
x: B(E) - S / 2,
|
|
4741
4744
|
y: N - T,
|
|
4742
4745
|
width: S,
|
|
4743
4746
|
height: Math.max(0, T),
|
|
4744
4747
|
rx: 5,
|
|
4745
4748
|
fill: `url(#${u}-bar)`,
|
|
4746
4749
|
className: "select-chart__bar",
|
|
4747
|
-
style: { animationDelay: `${
|
|
4750
|
+
style: { animationDelay: `${E * 40}ms` }
|
|
4748
4751
|
},
|
|
4749
|
-
|
|
4752
|
+
E
|
|
4750
4753
|
);
|
|
4751
4754
|
}),
|
|
4752
|
-
f != null && /* @__PURE__ */ e("line", { x1:
|
|
4755
|
+
f != null && /* @__PURE__ */ e("line", { x1: B(f), x2: B(f), y1: v.top, y2: N, className: "select-chart__crosshair" }),
|
|
4753
4756
|
/* @__PURE__ */ e(
|
|
4754
4757
|
"path",
|
|
4755
4758
|
{
|
|
@@ -4766,7 +4769,7 @@ function to({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = Y, fo
|
|
|
4766
4769
|
f != null && /* @__PURE__ */ e(
|
|
4767
4770
|
"circle",
|
|
4768
4771
|
{
|
|
4769
|
-
cx:
|
|
4772
|
+
cx: B(f),
|
|
4770
4773
|
cy: L(l.data[f] ?? 0),
|
|
4771
4774
|
r: 4,
|
|
4772
4775
|
fill: w,
|
|
@@ -4774,27 +4777,27 @@ function to({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = Y, fo
|
|
|
4774
4777
|
}
|
|
4775
4778
|
),
|
|
4776
4779
|
t.map(
|
|
4777
|
-
(F,
|
|
4780
|
+
(F, E) => E % k === 0 || E === $ - 1 ? /* @__PURE__ */ e("text", { x: B(E), y: c - v.bottom + 16, className: "select-chart__xlabel", textAnchor: "middle", children: F }, E) : null
|
|
4778
4781
|
),
|
|
4779
|
-
t.map((F,
|
|
4782
|
+
t.map((F, E) => /* @__PURE__ */ e(
|
|
4780
4783
|
"rect",
|
|
4781
4784
|
{
|
|
4782
|
-
x: v.left + b *
|
|
4785
|
+
x: v.left + b * E,
|
|
4783
4786
|
y: v.top,
|
|
4784
4787
|
width: b,
|
|
4785
4788
|
height: x,
|
|
4786
4789
|
fill: "transparent",
|
|
4787
4790
|
onMouseEnter: () => {
|
|
4788
|
-
g(
|
|
4789
|
-
const T = Math.min(C(n.data[
|
|
4791
|
+
g(E);
|
|
4792
|
+
const T = Math.min(C(n.data[E] ?? 0), L(l.data[E] ?? 0));
|
|
4790
4793
|
h.show({
|
|
4791
|
-
x: E
|
|
4794
|
+
x: B(E),
|
|
4792
4795
|
y: T,
|
|
4793
4796
|
place: T < v.top + 52 ? "bottom" : "top",
|
|
4794
4797
|
title: F,
|
|
4795
4798
|
rows: [
|
|
4796
|
-
{ label: n.name, value: s(n.data[
|
|
4797
|
-
{ label: l.name, value: a(l.data[
|
|
4799
|
+
{ label: n.name, value: s(n.data[E] ?? 0), color: M },
|
|
4800
|
+
{ label: l.name, value: a(l.data[E] ?? 0), color: w }
|
|
4798
4801
|
]
|
|
4799
4802
|
});
|
|
4800
4803
|
},
|
|
@@ -4802,13 +4805,13 @@ function to({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = Y, fo
|
|
|
4802
4805
|
g(null), h.hide();
|
|
4803
4806
|
}
|
|
4804
4807
|
},
|
|
4805
|
-
`h${
|
|
4808
|
+
`h${E}`
|
|
4806
4809
|
))
|
|
4807
4810
|
] }),
|
|
4808
4811
|
/* @__PURE__ */ e(K, { tip: h.tip })
|
|
4809
4812
|
] });
|
|
4810
4813
|
}
|
|
4811
|
-
const
|
|
4814
|
+
const lo = R(function({ segments: n, size: l = 200, thickness: c = 26, format: s = Y, centerLabel: a, legend: r = !0, gap: d = 2, pie: o = !1, className: i, ...h }, u) {
|
|
4812
4815
|
const f = X(), g = te(), v = q(null), y = Ct(v, l), x = n.reduce((k, M) => k + M.value, 0) || 1, $ = y / 2, _ = y / 2, p = y / 2 - 2, b = o ? 0 : p - c;
|
|
4813
4816
|
let S = 0;
|
|
4814
4817
|
return /* @__PURE__ */ m("div", { ref: u, ...h, className: `select-donut-wrap${i ? " " + i : ""}`, children: [
|
|
@@ -4824,7 +4827,7 @@ const no = R(function({ segments: n, size: l = 200, thickness: c = 26, format: s
|
|
|
4824
4827
|
n.map((k, M) => {
|
|
4825
4828
|
const w = S / x * 360;
|
|
4826
4829
|
S += k.value;
|
|
4827
|
-
const N = S / x * 360, C = k.color ?? j(M),
|
|
4830
|
+
const N = S / x * 360, C = k.color ?? j(M), B = N - w > d * 1.5 ? d / 2 : 0, A = w + B, F = Math.max(A + 0.01, N - B);
|
|
4828
4831
|
return /* @__PURE__ */ e(
|
|
4829
4832
|
"path",
|
|
4830
4833
|
{
|
|
@@ -4832,7 +4835,7 @@ const no = R(function({ segments: n, size: l = 200, thickness: c = 26, format: s
|
|
|
4832
4835
|
fill: `url(#${g}-s${M})`,
|
|
4833
4836
|
className: "select-chart__seg",
|
|
4834
4837
|
onMouseEnter: () => {
|
|
4835
|
-
const
|
|
4838
|
+
const E = ((w + N) / 2 - 90) * Math.PI / 180, T = $ + (p + 6) * Math.cos(E), I = _ + (p + 6) * Math.sin(E);
|
|
4836
4839
|
f.show({
|
|
4837
4840
|
x: T,
|
|
4838
4841
|
y: I,
|
|
@@ -4857,8 +4860,8 @@ const no = R(function({ segments: n, size: l = 200, thickness: c = 26, format: s
|
|
|
4857
4860
|
/* @__PURE__ */ e(K, { tip: f.tip })
|
|
4858
4861
|
] });
|
|
4859
4862
|
});
|
|
4860
|
-
function
|
|
4861
|
-
const { ref: d, width: o } = ce(l), i = X(), h = te(), u = n.length, f = t.length || 1, g = n.map((M, w) => t.reduce((N, C) => N + (C.data[w] ?? 0), 0)), v = ye(s ? Math.max(0, ...g) : Math.max(0, ...t.flatMap((M) => M.data))), y =
|
|
4863
|
+
function co({ series: t, labels: n, height: l = 240, format: c = Y, stacked: s = !1, className: a, ...r }) {
|
|
4864
|
+
const { ref: d, width: o } = ce(l), i = X(), h = te(), u = n.length, f = t.length || 1, g = n.map((M, w) => t.reduce((N, C) => N + (C.data[w] ?? 0), 0)), v = ye(s ? Math.max(0, ...g) : Math.max(0, ...t.flatMap((M) => M.data))), y = Ee, x = Math.max(0, o - y.left - y.right), $ = l - y.top - y.bottom, _ = y.top + $, p = u ? x / u : 0, b = (M) => _ - M / v * $, S = Math.min(p * 0.72, f * 40), k = s ? Math.min(p * 0.5, 44) : S / f;
|
|
4862
4865
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: d, children: [
|
|
4863
4866
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: l, className: "select-chart", children: [
|
|
4864
4867
|
/* @__PURE__ */ e("defs", { children: t.map((M, w) => {
|
|
@@ -4885,13 +4888,13 @@ function lo({ series: t, labels: n, height: l = 240, format: c = Y, stacked: s =
|
|
|
4885
4888
|
const N = y.left + p * w;
|
|
4886
4889
|
if (s) {
|
|
4887
4890
|
let L = 0;
|
|
4888
|
-
return /* @__PURE__ */ e("g", { children: t.map((
|
|
4889
|
-
const F = (
|
|
4891
|
+
return /* @__PURE__ */ e("g", { children: t.map((B, A) => {
|
|
4892
|
+
const F = (B.data[w] ?? 0) / v * $, E = _ - L - F;
|
|
4890
4893
|
return L += F, /* @__PURE__ */ e(
|
|
4891
4894
|
"rect",
|
|
4892
4895
|
{
|
|
4893
4896
|
x: N + p / 2 - k / 2,
|
|
4894
|
-
y:
|
|
4897
|
+
y: E,
|
|
4895
4898
|
width: k,
|
|
4896
4899
|
height: Math.max(0, F),
|
|
4897
4900
|
rx: 3,
|
|
@@ -4904,21 +4907,21 @@ function lo({ series: t, labels: n, height: l = 240, format: c = Y, stacked: s =
|
|
|
4904
4907
|
}) }, w);
|
|
4905
4908
|
}
|
|
4906
4909
|
const C = N + (p - S) / 2;
|
|
4907
|
-
return /* @__PURE__ */ e("g", { children: t.map((L,
|
|
4910
|
+
return /* @__PURE__ */ e("g", { children: t.map((L, B) => {
|
|
4908
4911
|
const A = (L.data[w] ?? 0) / v * $;
|
|
4909
4912
|
return /* @__PURE__ */ e(
|
|
4910
4913
|
"rect",
|
|
4911
4914
|
{
|
|
4912
|
-
x: C +
|
|
4915
|
+
x: C + B * k + k * 0.1,
|
|
4913
4916
|
y: _ - A,
|
|
4914
4917
|
width: k * 0.8,
|
|
4915
4918
|
height: Math.max(0, A),
|
|
4916
4919
|
rx: 3,
|
|
4917
|
-
fill: `url(#${h}-c${
|
|
4920
|
+
fill: `url(#${h}-c${B})`,
|
|
4918
4921
|
className: "select-chart__bar",
|
|
4919
|
-
style: { animationDelay: `${(w * f +
|
|
4922
|
+
style: { animationDelay: `${(w * f + B) * 25}ms` }
|
|
4920
4923
|
},
|
|
4921
|
-
|
|
4924
|
+
B
|
|
4922
4925
|
);
|
|
4923
4926
|
}) }, w);
|
|
4924
4927
|
}),
|
|
@@ -4949,7 +4952,7 @@ function lo({ series: t, labels: n, height: l = 240, format: c = Y, stacked: s =
|
|
|
4949
4952
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
4950
4953
|
] });
|
|
4951
4954
|
}
|
|
4952
|
-
const
|
|
4955
|
+
const so = R(function({ stages: n, format: l = Y, className: c, ...s }, a) {
|
|
4953
4956
|
const r = Math.max(1, ...n.map((d) => d.value));
|
|
4954
4957
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-funnel${c ? " " + c : ""}`, children: n.map((d, o) => {
|
|
4955
4958
|
const i = o > 0 ? n[o - 1].value || 1 : d.value || 1, h = o > 0 ? d.value / i * 100 : 100, u = j(o);
|
|
@@ -4975,7 +4978,7 @@ const co = R(function({ stages: n, format: l = Y, className: c, ...s }, a) {
|
|
|
4975
4978
|
] }, o);
|
|
4976
4979
|
}) });
|
|
4977
4980
|
});
|
|
4978
|
-
function
|
|
4981
|
+
function Ls(t) {
|
|
4979
4982
|
return Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0;
|
|
4980
4983
|
}
|
|
4981
4984
|
function An(t, n, l, c) {
|
|
@@ -4986,8 +4989,8 @@ function Fn(t, n, l, c, s) {
|
|
|
4986
4989
|
const [a, r] = An(t, n, l, c), [d, o] = An(t, n, l, s);
|
|
4987
4990
|
return `M ${a.toFixed(2)} ${r.toFixed(2)} A ${l} ${l} 0 0 1 ${d.toFixed(2)} ${o.toFixed(2)}`;
|
|
4988
4991
|
}
|
|
4989
|
-
const
|
|
4990
|
-
const u =
|
|
4992
|
+
const As = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ? 1 : 0 })}%`, ao = R(function({ value: n, label: l, caption: c, size: s = 220, thickness: a, color: r, format: d = As, className: o, ...i }, h) {
|
|
4993
|
+
const u = Ls(n), f = te(), g = a ?? Math.max(8, Math.round(s * 0.075)), v = g / 2 + 2, y = s / 2 - v, x = s / 2, $ = s / 2, _ = $ + v, p = Tc({ value: u, format: d });
|
|
4991
4994
|
return /* @__PURE__ */ m("div", { ref: h, ...i, className: `select-gauge${o ? " " + o : ""}`, style: { width: `${s / 16}rem` }, children: [
|
|
4992
4995
|
/* @__PURE__ */ m("div", { className: "select-gauge__ring", style: { width: "100%", aspectRatio: `${s} / ${_}` }, children: [
|
|
4993
4996
|
/* @__PURE__ */ m("svg", { width: "100%", height: "100%", viewBox: `0 0 ${s} ${_}`, className: "select-chart", "aria-hidden": "true", children: [
|
|
@@ -5025,7 +5028,7 @@ const Ls = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5025
5028
|
] }),
|
|
5026
5029
|
c != null && /* @__PURE__ */ e("div", { className: "select-gauge__caption", children: c })
|
|
5027
5030
|
] });
|
|
5028
|
-
}),
|
|
5031
|
+
}), oo = R(function({ columns: n, rows: l, format: c = Y, formatValue: s, color: a = "var(--select-chart-1)", showValues: r = !0, min: d, max: o, cellSize: i = 40, maxCellSize: h = 96, cellHeight: u = 30, className: f, ...g }, v) {
|
|
5029
5032
|
const y = X(), x = l.flatMap((M) => M.values).filter((M) => M != null && Number.isFinite(M)), $ = d ?? (x.length ? Math.min(...x) : 0), p = (o ?? (x.length ? Math.max(...x) : 1)) - $ || 1, b = { "--heat-color": a }, S = {
|
|
5030
5033
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${n.length}, minmax(${i}px, ${Math.max(i, h)}px))`,
|
|
5031
5034
|
width: "fit-content",
|
|
@@ -5045,18 +5048,18 @@ const Ls = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5045
5048
|
const C = `${M.label}-${n[N] ?? N}`;
|
|
5046
5049
|
if (w == null || !Number.isFinite(w))
|
|
5047
5050
|
return /* @__PURE__ */ e("div", { className: "select-heatmap__cell select-heatmap__cell--empty", style: k }, C);
|
|
5048
|
-
const L = Math.max(0, Math.min(1, (w - $) / p)),
|
|
5051
|
+
const L = Math.max(0, Math.min(1, (w - $) / p)), B = Math.round((0.14 + L * 0.86) * 100), A = Math.max(6, B - 16);
|
|
5049
5052
|
return /* @__PURE__ */ e(
|
|
5050
5053
|
"div",
|
|
5051
5054
|
{
|
|
5052
5055
|
className: "select-heatmap__cell",
|
|
5053
5056
|
style: {
|
|
5054
5057
|
...k,
|
|
5055
|
-
background: `linear-gradient(150deg, color-mix(in srgb, ${a} ${A}%, transparent), color-mix(in srgb, ${a} ${
|
|
5058
|
+
background: `linear-gradient(150deg, color-mix(in srgb, ${a} ${A}%, transparent), color-mix(in srgb, ${a} ${B}%, transparent))`,
|
|
5056
5059
|
color: L > 0.55 ? "#fff" : "var(--select-text)"
|
|
5057
5060
|
},
|
|
5058
5061
|
onMouseEnter: (F) => {
|
|
5059
|
-
const
|
|
5062
|
+
const E = F.currentTarget.closest(".select-chart-wrap"), T = F.currentTarget.getBoundingClientRect(), I = E == null ? void 0 : E.getBoundingClientRect(), O = I ? T.top - I.top : 0, W = O < 64 ? "bottom" : "top", Z = (I ? T.left - I.left : 0) + T.width / 2, G = W === "bottom" ? I ? T.bottom - I.top : 0 : O;
|
|
5060
5063
|
y.show({
|
|
5061
5064
|
x: Z,
|
|
5062
5065
|
y: G,
|
|
@@ -5076,7 +5079,7 @@ const Ls = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5076
5079
|
/* @__PURE__ */ e(K, { tip: y.tip })
|
|
5077
5080
|
] });
|
|
5078
5081
|
});
|
|
5079
|
-
function
|
|
5082
|
+
function ro({
|
|
5080
5083
|
items: t,
|
|
5081
5084
|
format: n = Y,
|
|
5082
5085
|
color: l,
|
|
@@ -5110,7 +5113,7 @@ function oo({
|
|
|
5110
5113
|
] }, `${a.label}-${r}`);
|
|
5111
5114
|
}) });
|
|
5112
5115
|
}
|
|
5113
|
-
const Dt = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0,
|
|
5116
|
+
const Dt = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0, io = R(function({ series: n, size: l = 200, thickness: c = 14, gap: s = 8, format: a = (u) => `${Math.round(u)}%`, centerLabel: r, legend: d = !0, className: o, ...i }, h) {
|
|
5114
5117
|
const u = te(), f = l / 2, g = l / 2;
|
|
5115
5118
|
return /* @__PURE__ */ m("div", { ref: h, ...i, className: `select-donut-wrap${o ? " " + o : ""}`, children: [
|
|
5116
5119
|
/* @__PURE__ */ m("div", { className: "select-radial", style: { width: l, aspectRatio: "1" }, children: [
|
|
@@ -5155,36 +5158,36 @@ const Dt = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0, ro = R
|
|
|
5155
5158
|
/* @__PURE__ */ e("span", { className: "select-donut__legval", children: a(Dt(v.value)) })
|
|
5156
5159
|
] }, y)) })
|
|
5157
5160
|
] });
|
|
5158
|
-
}),
|
|
5159
|
-
function
|
|
5160
|
-
const g = n ?? t.length * 36 + 6 + 26, { ref: v, width: y } = ce(g), x = X(), $ = te(), _ = ye(Math.max(0, ...t.map((F) => F.value))), p = t.reduce((F,
|
|
5161
|
-
Math.max(
|
|
5162
|
-
Math.max(
|
|
5163
|
-
), S = r ?? b, k = Math.max(3, Math.floor((S - Tt) /
|
|
5161
|
+
}), Bn = 6.1, Tt = 12, En = 56, Fs = 0.4;
|
|
5162
|
+
function uo({ data: t, height: n, color: l, format: c = Y, formatValue: s, distributed: a = !0, labelWidth: r, className: d, ...o }) {
|
|
5163
|
+
const g = n ?? t.length * 36 + 6 + 26, { ref: v, width: y } = ce(g), x = X(), $ = te(), _ = ye(Math.max(0, ...t.map((F) => F.value))), p = t.reduce((F, E) => Math.max(F, E.label.length), 0), b = Math.min(
|
|
5164
|
+
Math.max(En, p * Bn + Tt),
|
|
5165
|
+
Math.max(En, y * Fs)
|
|
5166
|
+
), S = r ?? b, k = Math.max(3, Math.floor((S - Tt) / Bn)), M = (F) => F.length <= k ? F : `${F.slice(0, k - 1).trimEnd()}…`, w = Math.max(0, y - S - 28), N = g - 6 - 26, C = t.length ? N / t.length : 0, L = Math.min(C * 0.62, 22), B = (F) => S + F / _ * w, A = (F, E) => F.color ?? (a ? j(E) : l ?? j(0));
|
|
5164
5167
|
return /* @__PURE__ */ m("div", { ...o, className: `select-chart-wrap${d ? " " + d : ""}`, ref: v, children: [
|
|
5165
5168
|
y > 0 && /* @__PURE__ */ m("svg", { width: y, height: g, className: "select-chart", children: [
|
|
5166
|
-
/* @__PURE__ */ e("defs", { children: t.map((F,
|
|
5167
|
-
const T = A(F,
|
|
5168
|
-
return /* @__PURE__ */ m("linearGradient", { id: `${$}-h${
|
|
5169
|
+
/* @__PURE__ */ e("defs", { children: t.map((F, E) => {
|
|
5170
|
+
const T = A(F, E);
|
|
5171
|
+
return /* @__PURE__ */ m("linearGradient", { id: `${$}-h${E}`, x1: "0", y1: "0", x2: "1", y2: "0", children: [
|
|
5169
5172
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: T, stopOpacity: 1 }),
|
|
5170
5173
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: T, stopOpacity: 0.5 })
|
|
5171
|
-
] },
|
|
5174
|
+
] }, E);
|
|
5172
5175
|
}) }),
|
|
5173
|
-
we(_).map((F,
|
|
5176
|
+
we(_).map((F, E) => /* @__PURE__ */ m("g", { children: [
|
|
5174
5177
|
/* @__PURE__ */ e(
|
|
5175
5178
|
"line",
|
|
5176
5179
|
{
|
|
5177
|
-
x1:
|
|
5178
|
-
x2:
|
|
5180
|
+
x1: B(F),
|
|
5181
|
+
x2: B(F),
|
|
5179
5182
|
y1: 6,
|
|
5180
5183
|
y2: 6 + N,
|
|
5181
|
-
className:
|
|
5184
|
+
className: E === 0 ? "select-chart__axis" : "select-chart__grid"
|
|
5182
5185
|
}
|
|
5183
5186
|
),
|
|
5184
|
-
/* @__PURE__ */ e("text", { x:
|
|
5185
|
-
] },
|
|
5186
|
-
t.map((F,
|
|
5187
|
-
const T = 6 + C *
|
|
5187
|
+
/* @__PURE__ */ e("text", { x: B(F), y: g - 26 + 16, className: "select-chart__xlabel", textAnchor: "middle", children: c(F) })
|
|
5188
|
+
] }, E)),
|
|
5189
|
+
t.map((F, E) => {
|
|
5190
|
+
const T = 6 + C * E + C / 2, I = F.value / _ * w, O = A(F, E);
|
|
5188
5191
|
return /* @__PURE__ */ m("g", { children: [
|
|
5189
5192
|
/* @__PURE__ */ e("rect", { x: S, y: T - L / 2, width: w, height: L, rx: 5, className: "select-chart__track-bar" }),
|
|
5190
5193
|
/* @__PURE__ */ e(
|
|
@@ -5195,9 +5198,9 @@ function io({ data: t, height: n, color: l, format: c = Y, formatValue: s, distr
|
|
|
5195
5198
|
width: Math.max(0, I),
|
|
5196
5199
|
height: L,
|
|
5197
5200
|
rx: 5,
|
|
5198
|
-
fill: `url(#${$}-h${
|
|
5201
|
+
fill: `url(#${$}-h${E})`,
|
|
5199
5202
|
className: "select-chart__hbar",
|
|
5200
|
-
style: { animationDelay: `${
|
|
5203
|
+
style: { animationDelay: `${E * 40}ms` },
|
|
5201
5204
|
onMouseEnter: () => x.show({
|
|
5202
5205
|
x: S + I,
|
|
5203
5206
|
y: T - L / 2,
|
|
@@ -5221,13 +5224,13 @@ function io({ data: t, height: n, color: l, format: c = Y, formatValue: s, distr
|
|
|
5221
5224
|
]
|
|
5222
5225
|
}
|
|
5223
5226
|
)
|
|
5224
|
-
] },
|
|
5227
|
+
] }, E);
|
|
5225
5228
|
})
|
|
5226
5229
|
] }),
|
|
5227
5230
|
/* @__PURE__ */ e(K, { tip: x.tip })
|
|
5228
5231
|
] });
|
|
5229
5232
|
}
|
|
5230
|
-
function
|
|
5233
|
+
function ho({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
5231
5234
|
const { ref: a, width: r } = ce(n), d = X(), o = te();
|
|
5232
5235
|
let i = 0;
|
|
5233
5236
|
const h = t.map((k) => {
|
|
@@ -5235,7 +5238,7 @@ function uo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
5235
5238
|
return i = k.value, { ...k, start: 0, end: k.value };
|
|
5236
5239
|
const M = i;
|
|
5237
5240
|
return i += k.value, { ...k, start: M, end: i };
|
|
5238
|
-
}), u = ye(Math.max(0, ...h.map((k) => Math.max(k.start, k.end)))), f =
|
|
5241
|
+
}), u = ye(Math.max(0, ...h.map((k) => Math.max(k.start, k.end)))), f = Ee, g = Math.max(0, r - f.left - f.right), v = n - f.top - f.bottom, y = f.top + v, x = t.length, $ = x ? g / x : 0, _ = Math.min($ * 0.6, 46), p = (k) => y - k / u * v, b = {
|
|
5239
5242
|
total: "var(--select-chart-1)",
|
|
5240
5243
|
inc: "var(--select-chart-4)",
|
|
5241
5244
|
dec: "var(--select-chart-3)"
|
|
@@ -5297,7 +5300,7 @@ function uo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
5297
5300
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
5298
5301
|
] });
|
|
5299
5302
|
}
|
|
5300
|
-
const In = (t) => Math.max(0, Math.min(100, t)),
|
|
5303
|
+
const In = (t) => Math.max(0, Math.min(100, t)), po = R(function({ items: n, format: l = Y, className: c, ...s }, a) {
|
|
5301
5304
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-bullet${c ? " " + c : ""}`, children: n.map((r, d) => {
|
|
5302
5305
|
const o = r.color ?? j(d), i = r.max ?? (Math.max(r.value, r.target) * 1.25 || 1), h = r.value >= r.target;
|
|
5303
5306
|
return /* @__PURE__ */ m("div", { className: "select-bullet__row", children: [
|
|
@@ -5333,7 +5336,7 @@ const In = (t) => Math.max(0, Math.min(100, t)), ho = R(function({ items: n, for
|
|
|
5333
5336
|
] }, `${r.label}-${d}`);
|
|
5334
5337
|
}) });
|
|
5335
5338
|
});
|
|
5336
|
-
function
|
|
5339
|
+
function Bs(t, n, l) {
|
|
5337
5340
|
const c = [], s = (r, d) => {
|
|
5338
5341
|
const o = r.reduce((u, f) => u + f, 0), i = Math.max(...r), h = Math.min(...r);
|
|
5339
5342
|
return Math.max(d * d * i / (o * o), o * o / (d * d * h));
|
|
@@ -5376,8 +5379,8 @@ function Fs(t, n, l) {
|
|
|
5376
5379
|
l
|
|
5377
5380
|
), c;
|
|
5378
5381
|
}
|
|
5379
|
-
function
|
|
5380
|
-
const { ref: a, width: r } = ce(n), d = X(), o = te(), i = t.map((u, f) => f).sort((u, f) => t[f].value - t[u].value), h = r > 0 ?
|
|
5382
|
+
function mo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
5383
|
+
const { ref: a, width: r } = ce(n), d = X(), o = te(), i = t.map((u, f) => f).sort((u, f) => t[f].value - t[u].value), h = r > 0 ? Bs(i.map((u) => t[u].value), r, n) : [];
|
|
5381
5384
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap select-treemap${c ? " " + c : ""}`, ref: a, children: [
|
|
5382
5385
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: n, className: "select-chart", children: [
|
|
5383
5386
|
/* @__PURE__ */ e("defs", { children: t.map((u, f) => {
|
|
@@ -5418,8 +5421,8 @@ function po({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
5418
5421
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
5419
5422
|
] });
|
|
5420
5423
|
}
|
|
5421
|
-
function
|
|
5422
|
-
const { ref: i, width: h } = ce(n), u = X(), f = t.flatMap((M) => M.points), g = ye(s ?? Math.max(0, ...f.map((M) => M.x))), v = ye(a ?? Math.max(0, ...f.map((M) => M.y))), y = Math.max(1, ...f.map((M) => M.r ?? 0)), x =
|
|
5424
|
+
function fo({ series: t, height: n = 240, xFormat: l = Y, yFormat: c = Y, xMax: s, yMax: a, maxRadius: r = 18, className: d, ...o }) {
|
|
5425
|
+
const { ref: i, width: h } = ce(n), u = X(), f = t.flatMap((M) => M.points), g = ye(s ?? Math.max(0, ...f.map((M) => M.x))), v = ye(a ?? Math.max(0, ...f.map((M) => M.y))), y = Math.max(1, ...f.map((M) => M.r ?? 0)), x = Ee, $ = Math.max(0, h - x.left - x.right), _ = n - x.top - x.bottom, p = x.top + _, b = (M) => x.left + M / g * $, S = (M) => p - M / v * _, k = (M) => M.r ? 4 + Math.sqrt(M.r) / Math.sqrt(y) * (r - 4) : 4.5;
|
|
5423
5426
|
return /* @__PURE__ */ m("div", { ...o, className: `select-chart-wrap${d ? " " + d : ""}`, ref: i, children: [
|
|
5424
5427
|
h > 0 && /* @__PURE__ */ m("svg", { width: h, height: n, className: "select-chart", children: [
|
|
5425
5428
|
we(v).map((M, w) => /* @__PURE__ */ m("g", { children: [
|
|
@@ -5465,7 +5468,7 @@ function mo({ series: t, height: n = 240, xFormat: l = Y, yFormat: c = Y, xMax:
|
|
|
5465
5468
|
/* @__PURE__ */ e(K, { tip: u.tip })
|
|
5466
5469
|
] });
|
|
5467
5470
|
}
|
|
5468
|
-
const
|
|
5471
|
+
const _o = R(function({ axes: n, series: l, size: c = 240, max: s, format: a = Y, levels: r = 4, legend: d = !0, className: o, ...i }, h) {
|
|
5469
5472
|
const u = X(), f = te(), g = n.length, v = c / 2, y = c / 2, x = c / 2 - 30, $ = s ?? ye(Math.max(1, ...l.flatMap((S) => S.values))), _ = (S) => (-90 + S * 360 / g) * Math.PI / 180, p = (S, k) => [v + k * Math.cos(_(S)), y + k * Math.sin(_(S))], b = (S) => S.map((k, M) => `${M === 0 ? "M" : "L"}${p(M, k).map((w) => w.toFixed(2)).join(",")}`).join(" ") + " Z";
|
|
5470
5473
|
return /* @__PURE__ */ m("div", { ref: h, ...i, className: `select-donut-wrap${o ? " " + o : ""}`, children: [
|
|
5471
5474
|
/* @__PURE__ */ m("div", { className: "select-radar", style: { width: c, aspectRatio: "1" }, children: [
|
|
@@ -5503,19 +5506,19 @@ const fo = R(function({ axes: n, series: l, size: c = 240, max: s, format: a = Y
|
|
|
5503
5506
|
return /* @__PURE__ */ m("g", { children: [
|
|
5504
5507
|
/* @__PURE__ */ e("path", { d: b(w), fill: `url(#${f}-rd${k})`, stroke: M, strokeWidth: 2, strokeLinejoin: "round", className: "select-chart__area" }),
|
|
5505
5508
|
w.map((N, C) => {
|
|
5506
|
-
const [L,
|
|
5509
|
+
const [L, B] = p(C, N);
|
|
5507
5510
|
return /* @__PURE__ */ e(
|
|
5508
5511
|
"circle",
|
|
5509
5512
|
{
|
|
5510
5513
|
cx: L,
|
|
5511
|
-
cy:
|
|
5514
|
+
cy: B,
|
|
5512
5515
|
r: 3,
|
|
5513
5516
|
fill: M,
|
|
5514
5517
|
className: "select-chart__dot",
|
|
5515
5518
|
onMouseEnter: () => u.show({
|
|
5516
5519
|
x: L,
|
|
5517
|
-
y:
|
|
5518
|
-
place:
|
|
5520
|
+
y: B,
|
|
5521
|
+
place: B < 44 ? "bottom" : "top",
|
|
5519
5522
|
title: n[C],
|
|
5520
5523
|
rows: [{ label: S.name, value: a(S.values[C] ?? 0), color: M }]
|
|
5521
5524
|
}),
|
|
@@ -5535,24 +5538,24 @@ const fo = R(function({ axes: n, series: l, size: c = 240, max: s, format: a = Y
|
|
|
5535
5538
|
] }, k)) })
|
|
5536
5539
|
] });
|
|
5537
5540
|
});
|
|
5538
|
-
function
|
|
5541
|
+
function vo({ links: t, height: n = 260, format: l = Y, nodeWidth: c = 14, nodeGap: s = 14, className: a, ...r }) {
|
|
5539
5542
|
const { ref: d, width: o } = ce(n), i = X(), h = [], u = [];
|
|
5540
5543
|
for (const N of t)
|
|
5541
5544
|
h.includes(N.source) || h.push(N.source), u.includes(N.target) || u.push(N.target);
|
|
5542
|
-
const f = t.reduce((N, C) => N + C.value, 0) || 1, g = (N, C) => t.filter((L) => L[C] === N).reduce((L,
|
|
5543
|
-
const
|
|
5545
|
+
const f = t.reduce((N, C) => N + C.value, 0) || 1, g = (N, C) => t.filter((L) => L[C] === N).reduce((L, B) => L + B.value, 0), v = 6, y = n - v * 2, x = Math.max(h.length, u.length), $ = s * Math.max(0, x - 1), _ = (y - $) / f, p = (N, C, L) => {
|
|
5546
|
+
const B = /* @__PURE__ */ new Map();
|
|
5544
5547
|
let A = v;
|
|
5545
|
-
return N.forEach((F,
|
|
5548
|
+
return N.forEach((F, E) => {
|
|
5546
5549
|
const T = g(F, C) * _;
|
|
5547
|
-
|
|
5548
|
-
}),
|
|
5550
|
+
B.set(F, { name: F, y: A, h: T, cursor: A, color: j(E + L) }), A += T + s;
|
|
5551
|
+
}), B;
|
|
5549
5552
|
}, b = p(h, "source", 0), S = p(u, "target", h.length), k = c, M = o - c, w = (k + M) / 2;
|
|
5550
5553
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: d, children: [
|
|
5551
5554
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: n, className: "select-chart", children: [
|
|
5552
5555
|
t.map((N, C) => {
|
|
5553
|
-
const L = b.get(N.source),
|
|
5554
|
-
L.cursor += A,
|
|
5555
|
-
const T = `M${k},${F} C${w},${F} ${w},${
|
|
5556
|
+
const L = b.get(N.source), B = S.get(N.target), A = N.value * _, F = L.cursor, E = B.cursor;
|
|
5557
|
+
L.cursor += A, B.cursor += A;
|
|
5558
|
+
const T = `M${k},${F} C${w},${F} ${w},${E} ${M},${E} L${M},${E + A} C${w},${E + A} ${w},${F + A} ${k},${F + A} Z`;
|
|
5556
5559
|
return /* @__PURE__ */ e(
|
|
5557
5560
|
"path",
|
|
5558
5561
|
{
|
|
@@ -5561,7 +5564,7 @@ function _o({ links: t, height: n = 260, format: l = Y, nodeWidth: c = 14, nodeG
|
|
|
5561
5564
|
className: "select-sankey__link",
|
|
5562
5565
|
onMouseEnter: () => i.show({
|
|
5563
5566
|
x: w,
|
|
5564
|
-
y: (F +
|
|
5567
|
+
y: (F + E + A) / 2,
|
|
5565
5568
|
place: "top",
|
|
5566
5569
|
title: `${N.source} → ${N.target}`,
|
|
5567
5570
|
rows: [{ label: "Fluxo", value: l(N.value), color: L.color }]
|
|
@@ -5583,8 +5586,8 @@ function _o({ links: t, height: n = 260, format: l = Y, nodeWidth: c = 14, nodeG
|
|
|
5583
5586
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
5584
5587
|
] });
|
|
5585
5588
|
}
|
|
5586
|
-
function
|
|
5587
|
-
const { ref: d, width: o } = ce(n), i = X(), h =
|
|
5589
|
+
function go({ data: t, height: n = 240, format: l = Y, upColor: c = "var(--select-chart-4)", downColor: s = "var(--select-chart-3)", className: a, ...r }) {
|
|
5590
|
+
const { ref: d, width: o } = ce(n), i = X(), h = Ee, u = Math.max(0, o - h.left - h.right), f = n - h.top - h.bottom, g = h.top + f, v = Math.max(1, ...t.map((w) => w.high)), y = Math.min(v, ...t.map((w) => w.low)), x = (v - y) * 0.08 || 1, $ = y - x, _ = v + x, p = (w) => g - (w - $) / (_ - $) * f, b = t.length, S = b ? u / b : 0, k = Math.min(S * 0.5, 18), M = Array.from({ length: 5 }, (w, N) => $ + (_ - $) * N / 4);
|
|
5588
5591
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: d, children: [
|
|
5589
5592
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: n, className: "select-chart", children: [
|
|
5590
5593
|
M.map((w, N) => /* @__PURE__ */ m("g", { children: [
|
|
@@ -5601,10 +5604,10 @@ function vo({ data: t, height: n = 240, format: l = Y, upColor: c = "var(--selec
|
|
|
5601
5604
|
/* @__PURE__ */ e("text", { x: h.left - 8, y: p(w), className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: l(w) })
|
|
5602
5605
|
] }, N)),
|
|
5603
5606
|
t.map((w, N) => {
|
|
5604
|
-
const C = h.left + S * N + S / 2, L = w.close >= w.open,
|
|
5607
|
+
const C = h.left + S * N + S / 2, L = w.close >= w.open, B = L ? c : s, A = p(Math.max(w.open, w.close)), F = Math.max(1, Math.abs(p(w.open) - p(w.close)));
|
|
5605
5608
|
return /* @__PURE__ */ m("g", { children: [
|
|
5606
|
-
/* @__PURE__ */ e("line", { x1: C, x2: C, y1: p(w.high), y2: p(w.low), stroke:
|
|
5607
|
-
/* @__PURE__ */ e("rect", { x: C - k / 2, y: A, width: k, height: F, rx: 2, fill:
|
|
5609
|
+
/* @__PURE__ */ e("line", { x1: C, x2: C, y1: p(w.high), y2: p(w.low), stroke: B, strokeWidth: 1.5 }),
|
|
5610
|
+
/* @__PURE__ */ e("rect", { x: C - k / 2, y: A, width: k, height: F, rx: 2, fill: B, fillOpacity: L ? 0.9 : 0.78 }),
|
|
5608
5611
|
/* @__PURE__ */ e("text", { x: C, y: n - h.bottom + 16, className: "select-chart__xlabel", textAnchor: "middle", children: w.label }),
|
|
5609
5612
|
/* @__PURE__ */ e(
|
|
5610
5613
|
"rect",
|
|
@@ -5620,7 +5623,7 @@ function vo({ data: t, height: n = 240, format: l = Y, upColor: c = "var(--selec
|
|
|
5620
5623
|
place: p(w.high) < h.top + 64 ? "bottom" : "top",
|
|
5621
5624
|
title: w.label,
|
|
5622
5625
|
rows: [
|
|
5623
|
-
{ label: "Abertura", value: l(w.open), color:
|
|
5626
|
+
{ label: "Abertura", value: l(w.open), color: B },
|
|
5624
5627
|
{ label: "Máxima", value: l(w.high) },
|
|
5625
5628
|
{ label: "Mínima", value: l(w.low) },
|
|
5626
5629
|
{ label: "Fechamento", value: l(w.close) }
|
|
@@ -5635,8 +5638,8 @@ function vo({ data: t, height: n = 240, format: l = Y, upColor: c = "var(--selec
|
|
|
5635
5638
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
5636
5639
|
] });
|
|
5637
5640
|
}
|
|
5638
|
-
function
|
|
5639
|
-
const { ref: a, width: r } = ce(n), d = X(), o =
|
|
5641
|
+
function bo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
5642
|
+
const { ref: a, width: r } = ce(n), d = X(), o = Ee, i = Math.max(0, r - o.left - o.right), h = n - o.top - o.bottom, u = o.top + h, f = ye(Math.max(1, ...t.map(($) => $.max))), g = ($) => u - $ / f * h, v = t.length, y = v ? i / v : 0, x = Math.min(y * 0.5, 40);
|
|
5640
5643
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
5641
5644
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: n, className: "select-chart", children: [
|
|
5642
5645
|
we(f).map(($, _) => /* @__PURE__ */ m("g", { children: [
|
|
@@ -5691,18 +5694,18 @@ function go({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
5691
5694
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
5692
5695
|
] });
|
|
5693
5696
|
}
|
|
5694
|
-
function
|
|
5695
|
-
const f = n ?? t.length * 36 + 6 + 26, { ref: g, width: v } = ce(f), y = X(), x = te(), $ = l ?? Math.min(0, ...t.map((L) => L.start)), p = (c ?? Math.max(1, ...t.map((L) => L.end))) - $ || 1, b = a, S = Math.max(0, v - b - 14), k = f - 6 - 26, M = t.length ? k / t.length : 0, w = Math.min(M * 0.6, 22), N = (L) => b + (L - $) / p * S, C = Array.from({ length: 5 }, (L,
|
|
5697
|
+
function xo({ data: t, height: n, min: l, max: c, format: s = Y, labelWidth: a = 96, className: r, ...d }) {
|
|
5698
|
+
const f = n ?? t.length * 36 + 6 + 26, { ref: g, width: v } = ce(f), y = X(), x = te(), $ = l ?? Math.min(0, ...t.map((L) => L.start)), p = (c ?? Math.max(1, ...t.map((L) => L.end))) - $ || 1, b = a, S = Math.max(0, v - b - 14), k = f - 6 - 26, M = t.length ? k / t.length : 0, w = Math.min(M * 0.6, 22), N = (L) => b + (L - $) / p * S, C = Array.from({ length: 5 }, (L, B) => $ + p * B / 4);
|
|
5696
5699
|
return /* @__PURE__ */ m("div", { ...d, className: `select-chart-wrap${r ? " " + r : ""}`, ref: g, children: [
|
|
5697
5700
|
v > 0 && /* @__PURE__ */ m("svg", { width: v, height: f, className: "select-chart", children: [
|
|
5698
|
-
/* @__PURE__ */ e("defs", { children: t.map((L,
|
|
5699
|
-
const A = L.color ?? j(
|
|
5700
|
-
return /* @__PURE__ */ m("linearGradient", { id: `${x}-rg${
|
|
5701
|
+
/* @__PURE__ */ e("defs", { children: t.map((L, B) => {
|
|
5702
|
+
const A = L.color ?? j(B);
|
|
5703
|
+
return /* @__PURE__ */ m("linearGradient", { id: `${x}-rg${B}`, x1: "0", y1: "0", x2: "1", y2: "0", children: [
|
|
5701
5704
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: A, stopOpacity: 1 }),
|
|
5702
5705
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: A, stopOpacity: 0.55 })
|
|
5703
|
-
] },
|
|
5706
|
+
] }, B);
|
|
5704
5707
|
}) }),
|
|
5705
|
-
C.map((L,
|
|
5708
|
+
C.map((L, B) => /* @__PURE__ */ m("g", { children: [
|
|
5706
5709
|
/* @__PURE__ */ e(
|
|
5707
5710
|
"line",
|
|
5708
5711
|
{
|
|
@@ -5710,27 +5713,27 @@ function bo({ data: t, height: n, min: l, max: c, format: s = Y, labelWidth: a =
|
|
|
5710
5713
|
x2: N(L),
|
|
5711
5714
|
y1: 6,
|
|
5712
5715
|
y2: 6 + k,
|
|
5713
|
-
className:
|
|
5716
|
+
className: B === 0 ? "select-chart__axis" : "select-chart__grid"
|
|
5714
5717
|
}
|
|
5715
5718
|
),
|
|
5716
5719
|
/* @__PURE__ */ e("text", { x: N(L), y: f - 26 + 16, className: "select-chart__xlabel", textAnchor: "middle", children: s(L) })
|
|
5717
|
-
] },
|
|
5718
|
-
t.map((L,
|
|
5719
|
-
const A = 6 + M *
|
|
5720
|
+
] }, B)),
|
|
5721
|
+
t.map((L, B) => {
|
|
5722
|
+
const A = 6 + M * B + M / 2, F = N(L.start), E = Math.max(2, N(L.end) - N(L.start)), T = L.color ?? j(B);
|
|
5720
5723
|
return /* @__PURE__ */ m("g", { children: [
|
|
5721
5724
|
/* @__PURE__ */ e(
|
|
5722
5725
|
"rect",
|
|
5723
5726
|
{
|
|
5724
5727
|
x: F,
|
|
5725
5728
|
y: A - w / 2,
|
|
5726
|
-
width:
|
|
5729
|
+
width: E,
|
|
5727
5730
|
height: w,
|
|
5728
5731
|
rx: 5,
|
|
5729
|
-
fill: `url(#${x}-rg${
|
|
5732
|
+
fill: `url(#${x}-rg${B})`,
|
|
5730
5733
|
className: "select-chart__hbar",
|
|
5731
|
-
style: { animationDelay: `${
|
|
5734
|
+
style: { animationDelay: `${B * 40}ms` },
|
|
5732
5735
|
onMouseEnter: () => y.show({
|
|
5733
|
-
x: F +
|
|
5736
|
+
x: F + E / 2,
|
|
5734
5737
|
y: A - w / 2,
|
|
5735
5738
|
place: A - w / 2 < 50 ? "bottom" : "top",
|
|
5736
5739
|
title: L.label,
|
|
@@ -5740,13 +5743,13 @@ function bo({ data: t, height: n, min: l, max: c, format: s = Y, labelWidth: a =
|
|
|
5740
5743
|
}
|
|
5741
5744
|
),
|
|
5742
5745
|
/* @__PURE__ */ e("text", { x: b - 8, y: A, className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: L.label })
|
|
5743
|
-
] },
|
|
5746
|
+
] }, B);
|
|
5744
5747
|
})
|
|
5745
5748
|
] }),
|
|
5746
5749
|
/* @__PURE__ */ e(K, { tip: y.tip })
|
|
5747
5750
|
] });
|
|
5748
5751
|
}
|
|
5749
|
-
const
|
|
5752
|
+
const yo = R(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels: c = ["Seg", "", "Qua", "", "Sex", "", "Dom"], columnLabels: s, format: a = Y, cell: r = 14, gap: d = 3, min: o, max: i, className: h, ...u }, f) {
|
|
5750
5753
|
const g = X();
|
|
5751
5754
|
te();
|
|
5752
5755
|
const v = n.flat().filter((w) => w != null && Number.isFinite(w)), y = o ?? (v.length ? Math.min(...v) : 0), $ = (i ?? (v.length ? Math.max(...v) : 1)) - y || 1, _ = 30, p = s ? 16 : 4, b = r + d, S = _ + n.length * b, k = p + 7 * b, M = { "--heat-color": l };
|
|
@@ -5760,22 +5763,22 @@ const xo = R(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
5760
5763
|
),
|
|
5761
5764
|
n.map(
|
|
5762
5765
|
(w, N) => w.map((C, L) => {
|
|
5763
|
-
const
|
|
5766
|
+
const B = _ + N * b, A = p + L * b;
|
|
5764
5767
|
if (C == null || !Number.isFinite(C))
|
|
5765
|
-
return /* @__PURE__ */ e("rect", { x:
|
|
5766
|
-
const F = Math.max(0, Math.min(1, (C - y) / $)),
|
|
5768
|
+
return /* @__PURE__ */ e("rect", { x: B, y: A, width: r, height: r, rx: 3, className: "select-chart__calcell select-chart__calcell--empty" }, `${N}-${L}`);
|
|
5769
|
+
const F = Math.max(0, Math.min(1, (C - y) / $)), E = Math.round((0.14 + F * 0.86) * 100);
|
|
5767
5770
|
return /* @__PURE__ */ e(
|
|
5768
5771
|
"rect",
|
|
5769
5772
|
{
|
|
5770
|
-
x:
|
|
5773
|
+
x: B,
|
|
5771
5774
|
y: A,
|
|
5772
5775
|
width: r,
|
|
5773
5776
|
height: r,
|
|
5774
5777
|
rx: 3,
|
|
5775
5778
|
className: "select-chart__calcell",
|
|
5776
|
-
style: { fill: `color-mix(in srgb, ${l} ${
|
|
5779
|
+
style: { fill: `color-mix(in srgb, ${l} ${E}%, transparent)` },
|
|
5777
5780
|
onMouseEnter: () => g.show({
|
|
5778
|
-
x:
|
|
5781
|
+
x: B + r / 2,
|
|
5779
5782
|
y: A,
|
|
5780
5783
|
place: A < 44 ? "bottom" : "top",
|
|
5781
5784
|
title: `${c[L] || `Dia ${L + 1}`}${s != null && s[N] ? ` · ${s[N]}` : ` · sem ${N + 1}`}`,
|
|
@@ -5790,7 +5793,7 @@ const xo = R(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
5790
5793
|
] }),
|
|
5791
5794
|
/* @__PURE__ */ e(K, { tip: g.tip })
|
|
5792
5795
|
] });
|
|
5793
|
-
}),
|
|
5796
|
+
}), No = R(function({ segments: n, size: l = 200, format: c = Y, legend: s = !0, rose: a = !1, className: r, ...d }, o) {
|
|
5794
5797
|
const i = X(), h = l / 2, u = l / 2, f = l / 2 - 2, g = n.length || 1, v = ye(Math.max(1, ...n.map(($) => $.value))), y = ($) => a ? Math.max(0, $) / v * f : Math.sqrt(Math.max(0, $) / v) * f, x = 360 / g;
|
|
5795
5798
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-donut-wrap${r ? " " + r : ""}`, children: [
|
|
5796
5799
|
/* @__PURE__ */ m("div", { className: "select-radial", style: { width: l, aspectRatio: "1" }, children: [
|
|
@@ -5821,7 +5824,7 @@ const xo = R(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
5821
5824
|
] }, _)) })
|
|
5822
5825
|
] });
|
|
5823
5826
|
});
|
|
5824
|
-
function
|
|
5827
|
+
function Mo({ data: t, leftLabel: n, rightLabel: l, height: c = 240, format: s = Y, className: a, ...r }) {
|
|
5825
5828
|
const { ref: d, width: o } = ce(c), i = X(), h = { top: 24, right: 64, bottom: 12, left: 132 }, u = ye(Math.max(1, ...t.flatMap((x) => [x.left, x.right]))), f = c - h.top - h.bottom, g = (x) => h.top + f - x / u * f, v = h.left, y = o - h.right;
|
|
5826
5829
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: d, children: [
|
|
5827
5830
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: c, className: "select-chart", children: [
|
|
@@ -5868,7 +5871,7 @@ function No({ data: t, leftLabel: n, rightLabel: l, height: c = 240, format: s =
|
|
|
5868
5871
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
5869
5872
|
] });
|
|
5870
5873
|
}
|
|
5871
|
-
function
|
|
5874
|
+
function $o({ data: t, height: n, format: l = Y, fromLabel: c = "Antes", toLabel: s = "Depois", labelWidth: a = 96, className: r, ...d }) {
|
|
5872
5875
|
const f = n ?? t.length * 34 + 6 + 26, { ref: g, width: v } = ce(f), y = X(), x = "var(--select-chart-2)", $ = "var(--select-chart-1)", _ = ye(Math.max(1, ...t.flatMap((w) => [w.from, w.to]))), p = a, b = Math.max(0, v - p - 14), S = f - 6 - 26, k = t.length ? S / t.length : 0, M = (w) => p + w / _ * b;
|
|
5873
5876
|
return /* @__PURE__ */ m("div", { ...d, className: `select-chart-wrap${r ? " " + r : ""}`, ref: g, children: [
|
|
5874
5877
|
v > 0 && /* @__PURE__ */ m("svg", { width: v, height: f, className: "select-chart", children: [
|
|
@@ -5920,7 +5923,7 @@ function Mo({ data: t, height: n, format: l = Y, fromLabel: c = "Antes", toLabel
|
|
|
5920
5923
|
/* @__PURE__ */ e(K, { tip: y.tip })
|
|
5921
5924
|
] });
|
|
5922
5925
|
}
|
|
5923
|
-
function
|
|
5926
|
+
function ko({ columns: t, height: n = 240, format: l = Y, gap: c = 3, className: s, ...a }) {
|
|
5924
5927
|
const { ref: r, width: d } = ce(n), o = X(), i = { top: 6, right: 6, bottom: 24, left: 6 }, h = Math.max(0, d - i.left - i.right), u = n - i.top - i.bottom, f = t.map((p) => p.segments.reduce((b, S) => b + S.value, 0)), g = f.reduce((p, b) => p + b, 0) || 1, v = [];
|
|
5925
5928
|
t.forEach((p) => p.segments.forEach((b) => {
|
|
5926
5929
|
v.includes(b.key) || v.push(b.key);
|
|
@@ -5934,14 +5937,14 @@ function $o({ columns: t, height: n = 240, format: l = Y, gap: c = 3, className:
|
|
|
5934
5937
|
let w = i.top;
|
|
5935
5938
|
return /* @__PURE__ */ m("g", { children: [
|
|
5936
5939
|
p.segments.map((N, C) => {
|
|
5937
|
-
const L = N.value / S * u,
|
|
5940
|
+
const L = N.value / S * u, B = w;
|
|
5938
5941
|
w += L;
|
|
5939
5942
|
const A = y(N.key, N.color);
|
|
5940
5943
|
return /* @__PURE__ */ e(
|
|
5941
5944
|
"rect",
|
|
5942
5945
|
{
|
|
5943
5946
|
x: M,
|
|
5944
|
-
y:
|
|
5947
|
+
y: B,
|
|
5945
5948
|
width: Math.max(0, k),
|
|
5946
5949
|
height: Math.max(0, L - 1),
|
|
5947
5950
|
fill: A,
|
|
@@ -5949,8 +5952,8 @@ function $o({ columns: t, height: n = 240, format: l = Y, gap: c = 3, className:
|
|
|
5949
5952
|
className: "select-chart__seg",
|
|
5950
5953
|
onMouseEnter: () => o.show({
|
|
5951
5954
|
x: M + k / 2,
|
|
5952
|
-
y:
|
|
5953
|
-
place:
|
|
5955
|
+
y: B,
|
|
5956
|
+
place: B < i.top + 44 ? "bottom" : "top",
|
|
5954
5957
|
title: `${p.label} · ${N.key}`,
|
|
5955
5958
|
rows: [
|
|
5956
5959
|
{ label: "Valor", value: l(N.value), color: A },
|
|
@@ -5972,22 +5975,22 @@ function $o({ columns: t, height: n = 240, format: l = Y, gap: c = 3, className:
|
|
|
5972
5975
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
5973
5976
|
] });
|
|
5974
5977
|
}
|
|
5975
|
-
const
|
|
5978
|
+
const wo = R(function({ value: n, max: l = 100, bands: c, size: s = 220, thickness: a, label: r, format: d = (u) => `${Math.round(u)}`, className: o, ...i }, h) {
|
|
5976
5979
|
const u = a ?? Math.max(10, Math.round(s * 0.08)), f = u / 2 + 2, g = s / 2 - f, v = s / 2, y = s / 2, x = y + f, $ = (L) => Math.max(0, Math.min(l, L)), _ = (L) => {
|
|
5977
|
-
const
|
|
5978
|
-
return [v + g * Math.cos(
|
|
5979
|
-
}, p = (L,
|
|
5980
|
-
const [A, F] = _(L), [
|
|
5981
|
-
return `M ${A.toFixed(2)} ${F.toFixed(2)} A ${g} ${g} 0 0 1 ${
|
|
5980
|
+
const B = Math.PI + L * Math.PI;
|
|
5981
|
+
return [v + g * Math.cos(B), y + g * Math.sin(B)];
|
|
5982
|
+
}, p = (L, B) => {
|
|
5983
|
+
const [A, F] = _(L), [E, T] = _(B);
|
|
5984
|
+
return `M ${A.toFixed(2)} ${F.toFixed(2)} A ${g} ${g} 0 0 1 ${E.toFixed(2)} ${T.toFixed(2)}`;
|
|
5982
5985
|
};
|
|
5983
5986
|
let b = 0;
|
|
5984
5987
|
const S = c.map((L) => {
|
|
5985
|
-
const
|
|
5986
|
-
return b = L.upTo, { t0:
|
|
5988
|
+
const B = $(b) / l, A = $(L.upTo) / l;
|
|
5989
|
+
return b = L.upTo, { t0: B, t1: A, color: L.color };
|
|
5987
5990
|
}), k = $(n) / l, M = Math.PI + k * Math.PI, w = g * 0.82, N = v + w * Math.cos(M), C = y + w * Math.sin(M);
|
|
5988
5991
|
return /* @__PURE__ */ e("div", { ref: h, ...i, className: `select-gauge${o ? " " + o : ""}`, style: { width: `${s / 16}rem` }, children: /* @__PURE__ */ m("div", { className: "select-gauge__ring", style: { width: "100%", aspectRatio: `${s} / ${x}` }, children: [
|
|
5989
5992
|
/* @__PURE__ */ m("svg", { width: "100%", height: "100%", viewBox: `0 0 ${s} ${x}`, className: "select-chart", "aria-hidden": "true", children: [
|
|
5990
|
-
S.map((L,
|
|
5993
|
+
S.map((L, B) => /* @__PURE__ */ e("path", { d: p(L.t0, L.t1), fill: "none", stroke: L.color, strokeWidth: u, strokeLinecap: "butt" }, B)),
|
|
5991
5994
|
/* @__PURE__ */ e("line", { x1: v, y1: y, x2: N, y2: C, stroke: "var(--select-text)", strokeWidth: 3, strokeLinecap: "round", className: "select-gaugeband__needle" }),
|
|
5992
5995
|
/* @__PURE__ */ e("circle", { cx: v, cy: y, r: 5, fill: "var(--select-text)" })
|
|
5993
5996
|
] }),
|
|
@@ -5997,7 +6000,7 @@ const ko = R(function({ value: n, max: l = 100, bands: c, size: s = 220, thickne
|
|
|
5997
6000
|
] })
|
|
5998
6001
|
] }) });
|
|
5999
6002
|
});
|
|
6000
|
-
function
|
|
6003
|
+
function So({ series: t, labels: n, height: l = 240, format: c = Y, className: s, ...a }) {
|
|
6001
6004
|
const { ref: r, width: d } = ce(l), o = X(), i = te(), [h, u] = D(null), f = n.length, g = { top: 14, right: 14, bottom: 28, left: 14 }, v = Math.max(0, d - g.left - g.right), y = l - g.top - g.bottom, x = n.map((k, M) => t.reduce((w, N) => w + (N.data[M] ?? 0), 0)), $ = Math.max(1, ...x), _ = y / $, p = (k) => g.left + (f <= 1 ? v / 2 : k / (f - 1) * v), b = n.map(() => 0), S = t.map((k, M) => {
|
|
6002
6005
|
const w = [], N = [];
|
|
6003
6006
|
return n.forEach((C, L) => {
|
|
@@ -6043,7 +6046,7 @@ function wo({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
6043
6046
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
6044
6047
|
] });
|
|
6045
6048
|
}
|
|
6046
|
-
const
|
|
6049
|
+
const Co = R(function({ data: n, size: l = 220, format: c = Y, legend: s = !0, className: a, ...r }, d) {
|
|
6047
6050
|
const o = X(), i = l / 2, h = l / 2, u = l / 2 - 2, f = u * 0.62, g = u * 0.32, v = n.map(($) => {
|
|
6048
6051
|
var _;
|
|
6049
6052
|
return (_ = $.children) != null && _.length ? $.children.reduce((p, b) => p + b.value, 0) : $.value ?? 0;
|
|
@@ -6070,12 +6073,12 @@ const So = R(function({ data: n, size: l = 220, format: c = Y, legend: s = !0, c
|
|
|
6070
6073
|
($.children ?? []).map((w, N) => {
|
|
6071
6074
|
const C = M;
|
|
6072
6075
|
M += w.value / y * 360;
|
|
6073
|
-
const L = M,
|
|
6076
|
+
const L = M, B = w.color ?? k, A = 0.45 + N % 3 * 0.2, F = ((C + L) / 2 - 90) * (Math.PI / 180);
|
|
6074
6077
|
return /* @__PURE__ */ e(
|
|
6075
6078
|
"path",
|
|
6076
6079
|
{
|
|
6077
6080
|
d: it(i, h, u, f + 2, C + 0.5, Math.max(C + 0.6, L - 0.5)),
|
|
6078
|
-
fill:
|
|
6081
|
+
fill: B,
|
|
6079
6082
|
fillOpacity: A,
|
|
6080
6083
|
className: "select-chart__seg",
|
|
6081
6084
|
onMouseEnter: () => o.show({
|
|
@@ -6104,8 +6107,8 @@ const So = R(function({ data: n, size: l = 220, format: c = Y, legend: s = !0, c
|
|
|
6104
6107
|
] }, _)) })
|
|
6105
6108
|
] });
|
|
6106
6109
|
});
|
|
6107
|
-
function
|
|
6108
|
-
const { ref: a, width: r } = ce(n), d = X(), o =
|
|
6110
|
+
function Lo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
6111
|
+
const { ref: a, width: r } = ce(n), d = X(), o = Ee, i = Math.max(0, r - o.left - o.right), h = n - o.top - o.bottom, u = o.top + h, f = ye(Math.max(1, ...t.map((_) => _.max))), g = (_) => u - _ / f * h, v = t.length, y = v ? i / v : 0, x = Math.min(y * 0.42, 46), $ = Math.max(1, ...t.flatMap((_) => _.bins));
|
|
6109
6112
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
6110
6113
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: n, className: "select-chart", children: [
|
|
6111
6114
|
we(f).map((_, p) => /* @__PURE__ */ m("g", { children: [
|
|
@@ -6125,10 +6128,10 @@ function Co({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
6125
6128
|
const b = o.left + y * p + y / 2, S = _.color ?? j(p), k = _.bins.length, M = (A) => g(_.min + (_.max - _.min) * A / Math.max(1, k - 1)), w = (A) => _.bins[A] / $ * x, N = [], C = [];
|
|
6126
6129
|
for (let A = k - 1; A >= 0; A--) N.push([b + w(A), M(A)]);
|
|
6127
6130
|
for (let A = 0; A < k; A++) C.push([b - w(A), M(A)]);
|
|
6128
|
-
const L = `${Cn(N)} ${Cn(C).replace(/^M/, "L")} Z`,
|
|
6131
|
+
const L = `${Cn(N)} ${Cn(C).replace(/^M/, "L")} Z`, B = _.median != null ? g(_.median) : null;
|
|
6129
6132
|
return /* @__PURE__ */ m("g", { children: [
|
|
6130
6133
|
/* @__PURE__ */ e("path", { d: L, fill: S, fillOpacity: 0.32, stroke: S, strokeWidth: 1.5, strokeLinejoin: "round" }),
|
|
6131
|
-
|
|
6134
|
+
B != null && /* @__PURE__ */ e("line", { x1: b - x * 0.6, x2: b + x * 0.6, y1: B, y2: B, stroke: S, strokeWidth: 2 }),
|
|
6132
6135
|
/* @__PURE__ */ e("text", { x: b, y: n - o.bottom + 16, className: "select-chart__xlabel", textAnchor: "middle", children: _.label }),
|
|
6133
6136
|
/* @__PURE__ */ e(
|
|
6134
6137
|
"rect",
|
|
@@ -6158,7 +6161,7 @@ function Co({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
6158
6161
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
6159
6162
|
] });
|
|
6160
6163
|
}
|
|
6161
|
-
const
|
|
6164
|
+
const Ao = R(function({ matrix: n, labels: l, size: c = 240, format: s = Y, padAngle: a = 0.05, className: r, ...d }, o) {
|
|
6162
6165
|
const i = X(), h = l.length, u = c / 2, f = c / 2, g = c / 2 - 22, v = g - 9, y = n.map((N) => N.reduce((C, L) => C + L, 0)), x = y.reduce((N, C) => N + C, 0) || 1, $ = (2 * Math.PI - h * a) / x, _ = [];
|
|
6163
6166
|
let p = 0;
|
|
6164
6167
|
for (let N = 0; N < h; N++) {
|
|
@@ -6169,19 +6172,19 @@ const Lo = R(function({ matrix: n, labels: l, size: c = 240, format: s = Y, padA
|
|
|
6169
6172
|
for (let N = 0; N < h; N++) {
|
|
6170
6173
|
let C = _[N].a0;
|
|
6171
6174
|
for (let L = 0; L < h; L++) {
|
|
6172
|
-
const
|
|
6173
|
-
b[N][L] = [C, C +
|
|
6175
|
+
const B = n[N][L] * $;
|
|
6176
|
+
b[N][L] = [C, C + B], C += B;
|
|
6174
6177
|
}
|
|
6175
6178
|
}
|
|
6176
|
-
const S = (N, C) => [u + C * Math.cos(N - Math.PI / 2), f + C * Math.sin(N - Math.PI / 2)], k = (N, C, L,
|
|
6177
|
-
const [A, F] = S(N, v), [
|
|
6178
|
-
return `M${A.toFixed(2)},${F.toFixed(2)} A${v},${v} 0 0 1 ${
|
|
6179
|
+
const S = (N, C) => [u + C * Math.cos(N - Math.PI / 2), f + C * Math.sin(N - Math.PI / 2)], k = (N, C, L, B) => {
|
|
6180
|
+
const [A, F] = S(N, v), [E, T] = S(C, v), [I, O] = S(L, v), [W, Z] = S(B, v);
|
|
6181
|
+
return `M${A.toFixed(2)},${F.toFixed(2)} A${v},${v} 0 0 1 ${E.toFixed(2)},${T.toFixed(2)} Q${u},${f} ${I.toFixed(2)},${O.toFixed(2)} A${v},${v} 0 0 1 ${W.toFixed(2)},${Z.toFixed(2)} Q${u},${f} ${A.toFixed(2)},${F.toFixed(2)} Z`;
|
|
6179
6182
|
}, M = (N) => N * 180 / Math.PI, w = [];
|
|
6180
6183
|
for (let N = 0; N < h; N++)
|
|
6181
6184
|
for (let C = N; C < h; C++) {
|
|
6182
6185
|
if (N === C || n[N][C] + n[C][N] <= 0) continue;
|
|
6183
|
-
const [L,
|
|
6184
|
-
w.push({ d: k(L,
|
|
6186
|
+
const [L, B] = b[N][C], [A, F] = b[C][N];
|
|
6187
|
+
w.push({ d: k(L, B, A, F), color: j(N), i: N, j: C, value: n[N][C] + n[C][N] });
|
|
6185
6188
|
}
|
|
6186
6189
|
return /* @__PURE__ */ e("div", { ref: o, ...d, className: `select-donut-wrap${r ? " " + r : ""}`, children: /* @__PURE__ */ m("div", { className: "select-radial", style: { width: c, aspectRatio: "1" }, children: [
|
|
6187
6190
|
/* @__PURE__ */ m("svg", { width: c, height: c, viewBox: `0 0 ${c} ${c}`, className: "select-chart", "aria-hidden": "true", children: [
|
|
@@ -6203,17 +6206,17 @@ const Lo = R(function({ matrix: n, labels: l, size: c = 240, format: s = Y, padA
|
|
|
6203
6206
|
C
|
|
6204
6207
|
)),
|
|
6205
6208
|
_.map((N, C) => {
|
|
6206
|
-
const L = (N.a0 + N.a1) / 2, [
|
|
6209
|
+
const L = (N.a0 + N.a1) / 2, [B, A] = S(L, g + 12);
|
|
6207
6210
|
return /* @__PURE__ */ m("g", { children: [
|
|
6208
6211
|
/* @__PURE__ */ e("path", { d: it(u, f, g, v, M(N.a0), M(N.a1)), fill: j(C), className: "select-chord__arc" }),
|
|
6209
6212
|
/* @__PURE__ */ e(
|
|
6210
6213
|
"text",
|
|
6211
6214
|
{
|
|
6212
|
-
x:
|
|
6215
|
+
x: B,
|
|
6213
6216
|
y: A,
|
|
6214
6217
|
className: "select-chart__xlabel",
|
|
6215
6218
|
dominantBaseline: "middle",
|
|
6216
|
-
textAnchor: Math.abs(
|
|
6219
|
+
textAnchor: Math.abs(B - u) < 6 ? "middle" : B > u ? "start" : "end",
|
|
6217
6220
|
children: l[C]
|
|
6218
6221
|
}
|
|
6219
6222
|
)
|
|
@@ -6223,37 +6226,37 @@ const Lo = R(function({ matrix: n, labels: l, size: c = 240, format: s = Y, padA
|
|
|
6223
6226
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
6224
6227
|
] }) });
|
|
6225
6228
|
});
|
|
6226
|
-
function
|
|
6229
|
+
function Fo({ points: t, height: n = 240, radius: l = 16, color: c = "var(--select-chart-1)", xMax: s, yMax: a, format: r = Y, className: d, ...o }) {
|
|
6227
6230
|
const { ref: i, width: h } = ce(n), u = X(), f = 12, g = Math.max(0, h - f * 2), v = n - f * 2, y = s ?? Math.max(1, ...t.map((C) => C.x)), x = a ?? Math.max(1, ...t.map((C) => C.y)), $ = (C) => f + C / y * g, _ = (C) => f + v - C / x * v, p = l, b = Math.sqrt(3), S = (C, L) => {
|
|
6228
|
-
let
|
|
6229
|
-
const O = Math.abs(
|
|
6230
|
-
return O > W && O > Z ?
|
|
6231
|
+
let B = C, A = L, F = -B - A, E = Math.round(B), T = Math.round(F), I = Math.round(A);
|
|
6232
|
+
const O = Math.abs(E - B), W = Math.abs(T - F), Z = Math.abs(I - A);
|
|
6233
|
+
return O > W && O > Z ? E = -T - I : W > Z ? T = -E - I : I = -E - T, [E, I];
|
|
6231
6234
|
}, k = (C, L) => [p * b * (C + L / 2), p * (3 / 2) * L], M = (C, L) => {
|
|
6232
|
-
let
|
|
6235
|
+
let B = "";
|
|
6233
6236
|
for (let A = 0; A < 6; A++) {
|
|
6234
6237
|
const F = Math.PI / 180 * (60 * A - 30);
|
|
6235
|
-
|
|
6238
|
+
B += `${A === 0 ? "M" : "L"}${(C + p * Math.cos(F)).toFixed(1)},${(L + p * Math.sin(F)).toFixed(1)}`;
|
|
6236
6239
|
}
|
|
6237
|
-
return
|
|
6240
|
+
return B + "Z";
|
|
6238
6241
|
}, w = /* @__PURE__ */ new Map();
|
|
6239
6242
|
for (const C of t) {
|
|
6240
|
-
const L = $(C.x),
|
|
6243
|
+
const L = $(C.x), B = _(C.y), A = (b / 3 * L - 1 / 3 * B) / p, F = 2 / 3 * B / p, [E, T] = S(A, F), I = `${E},${T}`;
|
|
6241
6244
|
w.set(I, (w.get(I) ?? 0) + 1);
|
|
6242
6245
|
}
|
|
6243
6246
|
const N = Math.max(1, ...w.values());
|
|
6244
6247
|
return /* @__PURE__ */ m("div", { ...o, className: `select-chart-wrap${d ? " " + d : ""}`, ref: i, children: [
|
|
6245
6248
|
h > 0 && /* @__PURE__ */ e("svg", { width: h, height: n, className: "select-chart", children: [...w].map(([C, L]) => {
|
|
6246
|
-
const [
|
|
6249
|
+
const [B, A] = C.split(",").map(Number), [F, E] = k(B, A), T = L / N, I = Math.round((0.16 + T * 0.84) * 100);
|
|
6247
6250
|
return /* @__PURE__ */ e(
|
|
6248
6251
|
"path",
|
|
6249
6252
|
{
|
|
6250
|
-
d: M(F,
|
|
6253
|
+
d: M(F, E),
|
|
6251
6254
|
className: "select-chart__calcell",
|
|
6252
6255
|
style: { fill: `color-mix(in srgb, ${c} ${I}%, transparent)`, "--heat-color": c },
|
|
6253
6256
|
onMouseEnter: () => u.show({
|
|
6254
6257
|
x: F,
|
|
6255
|
-
y:
|
|
6256
|
-
place:
|
|
6258
|
+
y: E - p,
|
|
6259
|
+
place: E - p < f + 40 ? "bottom" : "top",
|
|
6257
6260
|
rows: [{ label: "Pontos", value: r(L), color: c }]
|
|
6258
6261
|
}),
|
|
6259
6262
|
onMouseLeave: u.hide
|
|
@@ -6264,7 +6267,7 @@ function Ao({ points: t, height: n = 240, radius: l = 16, color: c = "var(--sele
|
|
|
6264
6267
|
/* @__PURE__ */ e(K, { tip: u.tip })
|
|
6265
6268
|
] });
|
|
6266
6269
|
}
|
|
6267
|
-
const
|
|
6270
|
+
const Bo = R(function({ words: n, minSize: l = 14, maxSize: c = 46, className: s, ...a }, r) {
|
|
6268
6271
|
const d = n.map((f) => f.value), o = Math.max(1, ...d), i = Math.min(...d), h = o - i || 1, u = (f) => l + (f - i) / h * (c - l);
|
|
6269
6272
|
return /* @__PURE__ */ e("div", { ref: r, ...a, className: `select-wordcloud${s ? " " + s : ""}`, children: n.map((f, g) => /* @__PURE__ */ e(
|
|
6270
6273
|
"span",
|
|
@@ -6429,18 +6432,18 @@ const Rn = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
6429
6432
|
var Fe;
|
|
6430
6433
|
const x = te(), $ = X(), _ = q(null), p = Ct(_, c), b = n.length ? n.reduce((P, V) => P + V.lng, 0) / n.length : 0, S = q(
|
|
6431
6434
|
typeof window < "u" && !!((Fe = window.matchMedia) != null && Fe.call(window, "(prefers-reduced-motion: reduce)").matches)
|
|
6432
|
-
), k = q({ lng: -b, lat: s }), M = q({ lng: 0, lat: 0 }), w = q(1), N = q(null), C = q(null), L = q(!1),
|
|
6435
|
+
), k = q({ lng: -b, lat: s }), M = q({ lng: 0, lat: 0 }), w = q(1), N = q(null), C = q(null), L = q(!1), B = q(0), A = q(0), F = q(0), [, E] = D(0), [T, I] = D(!1), [O, W] = D(null), Z = () => {
|
|
6433
6436
|
A.current || (F.current = performance.now(), A.current = requestAnimationFrame(G));
|
|
6434
6437
|
};
|
|
6435
6438
|
function G(P) {
|
|
6436
6439
|
const V = Math.min(0.05, (P - F.current) / 1e3);
|
|
6437
|
-
F.current = P,
|
|
6440
|
+
F.current = P, B.current += V;
|
|
6438
6441
|
const U = M.current, oe = Math.abs(U.lng) + Math.abs(U.lat) > 0.02;
|
|
6439
6442
|
if (!C.current) if (N.current) {
|
|
6440
6443
|
const se = Math.min(1, V * 6);
|
|
6441
6444
|
k.current.lng += (N.current.lng - k.current.lng) * se, k.current.lat += (N.current.lat - k.current.lat) * se, Math.abs(N.current.lng - k.current.lng) < 0.2 && Math.abs(N.current.lat - k.current.lat) < 0.2 && (N.current = null);
|
|
6442
6445
|
} else oe ? (k.current.lng += U.lng * V * 60, k.current.lat = Math.max(-85, Math.min(85, k.current.lat + U.lat * V * 60)), U.lng *= 0.94, U.lat *= 0.94) : (U.lng = 0, U.lat = 0, a && !S.current && !L.current && (k.current.lng += r * V));
|
|
6443
|
-
|
|
6446
|
+
E((se) => (se + 1) % 1e6), !S.current || !!C.current || !!N.current || Math.abs(U.lng) + Math.abs(U.lat) > 0.02 ? A.current = requestAnimationFrame(G) : A.current = 0;
|
|
6444
6447
|
}
|
|
6445
6448
|
le(() => (S.current || Z(), () => {
|
|
6446
6449
|
A.current && cancelAnimationFrame(A.current), A.current = 0;
|
|
@@ -6453,7 +6456,7 @@ const Rn = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
6453
6456
|
var se;
|
|
6454
6457
|
U.preventDefault();
|
|
6455
6458
|
const oe = Math.max(-240, Math.min(240, U.deltaMode ? U.deltaY * 40 : U.deltaY)), ee = w.current * Math.exp(-oe * 12e-4);
|
|
6456
|
-
w.current = Math.max(0.8, Math.min(1.8, ee)), (se = J.current) == null || se.call(J, w.current), Z(),
|
|
6459
|
+
w.current = Math.max(0.8, Math.min(1.8, ee)), (se = J.current) == null || se.call(J, w.current), Z(), E((ue) => (ue + 1) % 1e6);
|
|
6457
6460
|
};
|
|
6458
6461
|
return P.addEventListener("wheel", V, { passive: !1 }), () => P.removeEventListener("wheel", V);
|
|
6459
6462
|
}, []);
|
|
@@ -6551,7 +6554,7 @@ const Rn = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
6551
6554
|
const mt = Ze / 40, ft = Pn(U, oe, mt), Pt = 1 + 0.34 * Math.sin(Math.PI * mt), $l = bt(ft, k.current.lng, k.current.lat), an = z([ft[0] * Pt, ft[1] * Pt, ft[2] * Pt]);
|
|
6552
6555
|
$l[2] > -0.05 ? (ee += `${se ? "L" : "M"}${an.x.toFixed(1)},${an.y.toFixed(1)}`, se = !0) : se = !1;
|
|
6553
6556
|
}
|
|
6554
|
-
const ue = S.current ? 0.5 : (
|
|
6557
|
+
const ue = S.current ? 0.5 : (B.current * Ie + V * 0.27) % 1, fe = Pn(U, oe, ue), Ve = 1 + 0.34 * Math.sin(Math.PI * ue), Pe = bt(fe, k.current.lng, k.current.lat), Je = z([fe[0] * Ve, fe[1] * Ve, fe[2] * Ve]), sn = Ne != null && (Rn(P.from, Ne) || Rn(P.to, Ne));
|
|
6555
6558
|
return { d: ee, col: P.color ?? d, i: V, flow: { ...Je, vis: Pe[2] > 0 }, active: sn };
|
|
6556
6559
|
}), Ue = Ne != null, je = i ? [...n].sort((P, V) => (V.value ?? 0) - (P.value ?? 0)).slice(0, 6) : [];
|
|
6557
6560
|
return /* @__PURE__ */ m("div", { ref: y, ...v, className: `select-globe${g ? " " + g : ""}`, children: [
|
|
@@ -6704,7 +6707,7 @@ const Rn = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
6704
6707
|
] }, V)) })
|
|
6705
6708
|
] });
|
|
6706
6709
|
});
|
|
6707
|
-
function
|
|
6710
|
+
function Io({ children: t, speed: n = 28, className: l, ...c }) {
|
|
6708
6711
|
const s = q(null), a = q(null), r = q(null), d = Ct(s, 0), o = Ct(r, 0), i = d > 0 && o > d + 1, h = q(0), u = q(null), f = q(!1);
|
|
6709
6712
|
le(() => {
|
|
6710
6713
|
var S;
|
|
@@ -6752,11 +6755,11 @@ function Bo({ children: t, speed: n = 28, className: l, ...c }) {
|
|
|
6752
6755
|
}
|
|
6753
6756
|
);
|
|
6754
6757
|
}
|
|
6755
|
-
function
|
|
6758
|
+
function Po({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
6756
6759
|
var A;
|
|
6757
|
-
const { ref: a, width: r } = ce(n), d = X(), o = te(), [i, h] = D(null), u = { ...
|
|
6760
|
+
const { ref: a, width: r } = ce(n), d = X(), o = te(), [i, h] = D(null), u = { ...Ee, right: 44 }, f = [...t].sort((F, E) => E.value - F.value), g = f.length, v = f.reduce((F, E) => F + E.value, 0) || 1;
|
|
6758
6761
|
let y = 0;
|
|
6759
|
-
const x = f.map((F) => (y += F.value, y / v * 100)), $ = Math.max(0, r - u.left - u.right), _ = n - u.top - u.bottom, p = ye(((A = f[0]) == null ? void 0 : A.value) ?? 1), b = g > 0 ? $ / g : 0, S = Math.min(b * 0.62, 46), k = u.top + _, M = (F) => k - F / p * _, w = (F) => k - F / 100 * _, N = (F) => u.left + b * F + b / 2, C = x.map((F,
|
|
6762
|
+
const x = f.map((F) => (y += F.value, y / v * 100)), $ = Math.max(0, r - u.left - u.right), _ = n - u.top - u.bottom, p = ye(((A = f[0]) == null ? void 0 : A.value) ?? 1), b = g > 0 ? $ / g : 0, S = Math.min(b * 0.62, 46), k = u.top + _, M = (F) => k - F / p * _, w = (F) => k - F / 100 * _, N = (F) => u.left + b * F + b / 2, C = x.map((F, E) => [N(E), w(F)]), L = j(0), B = j(1);
|
|
6760
6763
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
6761
6764
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: n, className: "select-chart", onMouseLeave: () => {
|
|
6762
6765
|
h(null), d.hide();
|
|
@@ -6765,21 +6768,21 @@ function Io({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
6765
6768
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: L, stopOpacity: 1 }),
|
|
6766
6769
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: L, stopOpacity: 0.55 })
|
|
6767
6770
|
] }) }),
|
|
6768
|
-
we(p).map((F,
|
|
6769
|
-
/* @__PURE__ */ e("line", { x1: u.left, x2: r - u.right, y1: M(F), y2: M(F), className:
|
|
6771
|
+
we(p).map((F, E) => /* @__PURE__ */ m("g", { children: [
|
|
6772
|
+
/* @__PURE__ */ e("line", { x1: u.left, x2: r - u.right, y1: M(F), y2: M(F), className: E === 0 ? "select-chart__axis" : "select-chart__grid" }),
|
|
6770
6773
|
/* @__PURE__ */ e("text", { x: u.left - 8, y: M(F), className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: l(F) })
|
|
6771
|
-
] },
|
|
6772
|
-
[0, 25, 50, 75, 100].map((F,
|
|
6774
|
+
] }, E)),
|
|
6775
|
+
[0, 25, 50, 75, 100].map((F, E) => /* @__PURE__ */ m("text", { x: r - 4, y: w(F), className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: [
|
|
6773
6776
|
F,
|
|
6774
6777
|
"%"
|
|
6775
|
-
] }, `r${
|
|
6778
|
+
] }, `r${E}`)),
|
|
6776
6779
|
/* @__PURE__ */ e("line", { x1: u.left, x2: r - u.right, y1: w(80), y2: w(80), className: "select-chart__crosshair" }),
|
|
6777
|
-
f.map((F,
|
|
6780
|
+
f.map((F, E) => {
|
|
6778
6781
|
const T = M(F.value);
|
|
6779
6782
|
return /* @__PURE__ */ e(
|
|
6780
6783
|
"rect",
|
|
6781
6784
|
{
|
|
6782
|
-
x: N(
|
|
6785
|
+
x: N(E) - S / 2,
|
|
6783
6786
|
y: T,
|
|
6784
6787
|
width: S,
|
|
6785
6788
|
height: Math.max(0, k - T),
|
|
@@ -6787,39 +6790,39 @@ function Io({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
6787
6790
|
fill: `url(#${o}-b)`,
|
|
6788
6791
|
className: "select-chart__bar",
|
|
6789
6792
|
onMouseEnter: () => d.show({
|
|
6790
|
-
x: N(
|
|
6793
|
+
x: N(E),
|
|
6791
6794
|
y: T,
|
|
6792
6795
|
place: T < u.top + 40 ? "bottom" : "top",
|
|
6793
6796
|
title: F.label,
|
|
6794
6797
|
rows: [
|
|
6795
6798
|
{ label: "Valor", value: l(F.value), color: L },
|
|
6796
|
-
{ label: "Acumulado", value: `${x[
|
|
6799
|
+
{ label: "Acumulado", value: `${x[E].toFixed(0)}%`, color: B }
|
|
6797
6800
|
]
|
|
6798
6801
|
}),
|
|
6799
6802
|
onMouseLeave: d.hide
|
|
6800
6803
|
},
|
|
6801
|
-
|
|
6804
|
+
E
|
|
6802
6805
|
);
|
|
6803
6806
|
}),
|
|
6804
|
-
/* @__PURE__ */ e("path", { d: Ge(C), fill: "none", stroke:
|
|
6805
|
-
C.map((F,
|
|
6807
|
+
/* @__PURE__ */ e("path", { d: Ge(C), fill: "none", stroke: B, strokeWidth: 2, pathLength: 1, className: "select-chart__line" }),
|
|
6808
|
+
C.map((F, E) => /* @__PURE__ */ e(
|
|
6806
6809
|
"circle",
|
|
6807
6810
|
{
|
|
6808
6811
|
cx: F[0],
|
|
6809
6812
|
cy: F[1],
|
|
6810
|
-
r: i ===
|
|
6811
|
-
fill:
|
|
6812
|
-
className: `select-chart__dot${i ===
|
|
6813
|
-
onMouseEnter: () => h(
|
|
6813
|
+
r: i === E ? 5 : 3.5,
|
|
6814
|
+
fill: B,
|
|
6815
|
+
className: `select-chart__dot${i === E ? " select-chart__dot--active" : ""}`,
|
|
6816
|
+
onMouseEnter: () => h(E)
|
|
6814
6817
|
},
|
|
6815
|
-
|
|
6818
|
+
E
|
|
6816
6819
|
)),
|
|
6817
|
-
f.map((F,
|
|
6820
|
+
f.map((F, E) => /* @__PURE__ */ e("text", { x: N(E), y: n - u.bottom + 16, className: "select-chart__xlabel", textAnchor: "middle", children: F.label }, E))
|
|
6818
6821
|
] }),
|
|
6819
6822
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
6820
6823
|
] });
|
|
6821
6824
|
}
|
|
6822
|
-
const
|
|
6825
|
+
const Ro = R(function({ segments: n, cols: l = 10, rows: c = 10, format: s = Y, className: a, ...r }, d) {
|
|
6823
6826
|
const o = n.reduce((y, x) => y + x.value, 0) || 1, i = l * c, h = n.map((y) => y.value / o * i), u = h.map(Math.floor);
|
|
6824
6827
|
let f = u.reduce((y, x) => y + x, 0);
|
|
6825
6828
|
const g = h.map((y, x) => ({ i: x, frac: y - u[x] })).sort((y, x) => x.frac - y.frac);
|
|
@@ -6838,7 +6841,7 @@ const Po = R(function({ segments: n, cols: l = 10, rows: c = 10, format: s = Y,
|
|
|
6838
6841
|
] }, x)) })
|
|
6839
6842
|
] });
|
|
6840
6843
|
});
|
|
6841
|
-
function
|
|
6844
|
+
function Do({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", height: c, format: s = Y, leftColor: a, rightColor: r, centerWidth: d = 84, className: o, ...i }) {
|
|
6842
6845
|
const h = c ?? Math.max(180, t.length * 40 + 36), { ref: u, width: f } = ce(h), g = X(), [v, y] = D(null), x = 8, $ = 26, _ = 8, p = Math.max(1, ...t.flatMap((L) => [L.left, L.right])), b = Math.max(0, (f - d - x * 2) / 2), S = t.length ? (h - $ - _) / t.length : 0, k = Math.min(S * 0.6, 26), M = x + b, w = x + b + d, N = a ?? j(1), C = r ?? j(0);
|
|
6843
6846
|
return /* @__PURE__ */ m("div", { ...i, className: `select-chart-wrap${o ? " " + o : ""}`, ref: u, children: [
|
|
6844
6847
|
f > 0 && /* @__PURE__ */ m("svg", { width: f, height: h, className: "select-chart", onMouseLeave: () => {
|
|
@@ -6846,8 +6849,8 @@ function Ro({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", hei
|
|
|
6846
6849
|
}, children: [
|
|
6847
6850
|
/* @__PURE__ */ e("text", { x, y: 14, className: "select-chart__xlabel", textAnchor: "start", style: { fill: N, fontWeight: 600 }, children: n }),
|
|
6848
6851
|
/* @__PURE__ */ e("text", { x: f - x, y: 14, className: "select-chart__xlabel", textAnchor: "end", style: { fill: C, fontWeight: 600 }, children: l }),
|
|
6849
|
-
t.map((L,
|
|
6850
|
-
const A = $ + S *
|
|
6852
|
+
t.map((L, B) => {
|
|
6853
|
+
const A = $ + S * B + S / 2, F = L.left / p * b, E = L.right / p * b, T = v === L.label;
|
|
6851
6854
|
return /* @__PURE__ */ m("g", { style: { opacity: v === null || T ? 1 : 0.5 }, children: [
|
|
6852
6855
|
/* @__PURE__ */ e(
|
|
6853
6856
|
"rect",
|
|
@@ -6872,13 +6875,13 @@ function Ro({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", hei
|
|
|
6872
6875
|
{
|
|
6873
6876
|
x: w,
|
|
6874
6877
|
y: A - k / 2,
|
|
6875
|
-
width:
|
|
6878
|
+
width: E,
|
|
6876
6879
|
height: k,
|
|
6877
6880
|
rx: 4,
|
|
6878
6881
|
fill: C,
|
|
6879
6882
|
className: "select-pyramid__bar select-pyramid__bar--r",
|
|
6880
6883
|
onMouseEnter: () => {
|
|
6881
|
-
y(L.label), g.show({ x: w +
|
|
6884
|
+
y(L.label), g.show({ x: w + E, y: A - k / 2, place: "top", title: L.label, rows: [{ label: l, value: s(L.right), color: C }] });
|
|
6882
6885
|
},
|
|
6883
6886
|
onMouseLeave: () => {
|
|
6884
6887
|
y(null), g.hide();
|
|
@@ -6892,7 +6895,7 @@ function Ro({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", hei
|
|
|
6892
6895
|
/* @__PURE__ */ e(K, { tip: g.tip })
|
|
6893
6896
|
] });
|
|
6894
6897
|
}
|
|
6895
|
-
function
|
|
6898
|
+
function To({ series: t, labels: n, height: l = 240, format: c = Y, className: s, ...a }) {
|
|
6896
6899
|
const { ref: r, width: d } = ce(l), o = X(), [i, h] = D(null), u = { top: 16, right: 78, bottom: 28, left: 28 }, f = n.length, g = t.length, v = Math.max(0, d - u.left - u.right), y = l - u.top - u.bottom, x = t.map(() => new Array(f).fill(0));
|
|
6897
6900
|
for (let p = 0; p < f; p++)
|
|
6898
6901
|
t.map((S, k) => ({ si: k, v: S.data[p] ?? 0 })).sort((S, k) => k.v - S.v).forEach((S, k) => {
|
|
@@ -6940,7 +6943,7 @@ function Do({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
6940
6943
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
6941
6944
|
] });
|
|
6942
6945
|
}
|
|
6943
|
-
function
|
|
6946
|
+
function Wo({ axes: t, data: n, height: l = 260, format: c = Y, className: s, ...a }) {
|
|
6944
6947
|
const { ref: r, width: d } = ce(l), o = X(), [i, h] = D(null), u = { top: 30, right: 28, bottom: 26, left: 28 }, f = Math.max(0, d - u.left - u.right), g = l - u.top - u.bottom, v = t.length, y = (_) => u.left + (v <= 1 ? f / 2 : f / (v - 1) * _), x = t.map((_) => {
|
|
6945
6948
|
const p = n.map((b) => b.values[_.key] ?? 0);
|
|
6946
6949
|
return { min: Math.min(...p), max: Math.max(...p) };
|
|
@@ -6997,7 +7000,7 @@ function Mt(t) {
|
|
|
6997
7000
|
function Nl(t, n = 0) {
|
|
6998
7001
|
return !t.children || !t.children.length ? n : Math.max(...t.children.map((l) => Nl(l, n + 1)));
|
|
6999
7002
|
}
|
|
7000
|
-
function
|
|
7003
|
+
function Oo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
7001
7004
|
const { ref: a, width: r } = ce(n), d = X(), [o, i] = D(null), h = Nl(t), u = n / (h + 1), f = [], g = (v, y, x, $, _) => {
|
|
7002
7005
|
if (f.push({ node: v, x0: y, x1: x, depth: $, color: v.color ?? j(_), value: Mt(v) }), v.children && v.children.length) {
|
|
7003
7006
|
const p = v.children.reduce((S, k) => S + Mt(k), 0) || 1;
|
|
@@ -7041,7 +7044,7 @@ function Wo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
7041
7044
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
7042
7045
|
] });
|
|
7043
7046
|
}
|
|
7044
|
-
function
|
|
7047
|
+
function Ho({ data: t, height: n = 260, className: l, ...c }) {
|
|
7045
7048
|
const { ref: s, width: a } = ce(n), r = X(), [d, o] = D(null), i = { top: 14, right: 96, bottom: 14, left: 16 };
|
|
7046
7049
|
let h = null;
|
|
7047
7050
|
if (a > 0) {
|
|
@@ -7111,7 +7114,7 @@ function Oo({ data: t, height: n = 260, className: l, ...c }) {
|
|
|
7111
7114
|
/* @__PURE__ */ e(K, { tip: r.tip })
|
|
7112
7115
|
] });
|
|
7113
7116
|
}
|
|
7114
|
-
const
|
|
7117
|
+
const jo = R(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
7115
7118
|
const r = Math.min(3, n.length), d = l / 2, o = l / 2, i = Math.max(1, ...n.slice(0, r).map((g) => g.size)), h = l * 0.26, u = (g) => h * 0.45 + h * 0.55 * Math.sqrt(g.size / i), f = r <= 2 ? [
|
|
7116
7119
|
[d - h * 0.42, o],
|
|
7117
7120
|
[d + h * 0.42, o]
|
|
@@ -7159,29 +7162,29 @@ const Ho = R(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
|
7159
7162
|
/* @__PURE__ */ e("span", { className: "select-donut__legval", children: g.size.toLocaleString("pt-BR") })
|
|
7160
7163
|
] }, v)) })
|
|
7161
7164
|
] });
|
|
7162
|
-
}),
|
|
7165
|
+
}), Vo = R(function({ data: n, size: l = 260, format: c = Y, className: s, ...a }, r) {
|
|
7163
7166
|
const d = X(), [o, i] = D(null), h = Math.max(1, ...n.map((N) => N.value)), u = n.map((N, C) => ({ d: N, i: C, r: 8 + Math.sqrt(N.value / h) * 40 })).sort((N, C) => C.r - N.r), f = [];
|
|
7164
7167
|
for (const N of u) {
|
|
7165
7168
|
if (f.length === 0) {
|
|
7166
7169
|
f.push({ d: N.d, i: N.i, x: 0, y: 0, r: N.r });
|
|
7167
7170
|
continue;
|
|
7168
7171
|
}
|
|
7169
|
-
let C = 0, L = 0,
|
|
7172
|
+
let C = 0, L = 0, B = null;
|
|
7170
7173
|
for (let A = 0; A < 8e3; A++) {
|
|
7171
|
-
const F = Math.cos(C) * L,
|
|
7174
|
+
const F = Math.cos(C) * L, E = Math.sin(C) * L;
|
|
7172
7175
|
let T = !0;
|
|
7173
7176
|
for (const I of f)
|
|
7174
|
-
if (Math.hypot(F - I.x,
|
|
7177
|
+
if (Math.hypot(F - I.x, E - I.y) < I.r + N.r + 2) {
|
|
7175
7178
|
T = !1;
|
|
7176
7179
|
break;
|
|
7177
7180
|
}
|
|
7178
7181
|
if (T) {
|
|
7179
|
-
|
|
7182
|
+
B = [F, E];
|
|
7180
7183
|
break;
|
|
7181
7184
|
}
|
|
7182
7185
|
C += 0.5, L += 0.7;
|
|
7183
7186
|
}
|
|
7184
|
-
|
|
7187
|
+
B && f.push({ d: N.d, i: N.i, x: B[0], y: B[1], r: N.r });
|
|
7185
7188
|
}
|
|
7186
7189
|
const g = Math.min(...f.map((N) => N.x - N.r)), v = Math.max(...f.map((N) => N.x + N.r)), y = Math.min(...f.map((N) => N.y - N.r)), x = Math.max(...f.map((N) => N.y + N.r)), $ = v - g || 1, _ = x - y || 1, p = 8, b = Math.min((l - p * 2) / $, (l - p * 2) / _), S = (l - $ * b) / 2 - g * b, k = (l - _ * b) / 2 - y * b, M = (N) => N * b + S, w = (N) => N * b + k;
|
|
7187
7190
|
return /* @__PURE__ */ m("div", { ref: r, ...a, className: `select-donut-wrap${s ? " " + s : ""}`, children: [
|
|
@@ -7215,7 +7218,7 @@ const Ho = R(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
|
7215
7218
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
7216
7219
|
] });
|
|
7217
7220
|
});
|
|
7218
|
-
function
|
|
7221
|
+
function Zo({ nodes: t, links: n, height: l = 300, format: c = Y, className: s, ...a }) {
|
|
7219
7222
|
const { ref: r, width: d } = ce(l), o = X(), [i, h] = D(null), u = xe(() => {
|
|
7220
7223
|
const v = d || l, y = l, x = t.length, $ = /* @__PURE__ */ new Map();
|
|
7221
7224
|
if (!x) return $;
|
|
@@ -7229,18 +7232,18 @@ function Vo({ nodes: t, links: n, height: l = 300, format: c = Y, className: s,
|
|
|
7229
7232
|
const M = _.map(() => ({ x: 0, y: 0 }));
|
|
7230
7233
|
for (let w = 0; w < x; w++)
|
|
7231
7234
|
for (let N = w + 1; N < x; N++) {
|
|
7232
|
-
const C = _[w].x - _[N].x, L = _[w].y - _[N].y,
|
|
7233
|
-
M[w].x += C /
|
|
7235
|
+
const C = _[w].x - _[N].x, L = _[w].y - _[N].y, B = Math.hypot(C, L) || 0.01, A = b * b / B;
|
|
7236
|
+
M[w].x += C / B * A, M[w].y += L / B * A, M[N].x -= C / B * A, M[N].y -= L / B * A;
|
|
7234
7237
|
}
|
|
7235
7238
|
for (const w of n) {
|
|
7236
7239
|
const N = p.get(w.source), C = p.get(w.target);
|
|
7237
7240
|
if (N == null || C == null) continue;
|
|
7238
|
-
const L = _[N].x - _[C].x,
|
|
7239
|
-
M[N].x -= L / A * F, M[N].y -=
|
|
7241
|
+
const L = _[N].x - _[C].x, B = _[N].y - _[C].y, A = Math.hypot(L, B) || 0.01, F = A * A / b;
|
|
7242
|
+
M[N].x -= L / A * F, M[N].y -= B / A * F, M[C].x += L / A * F, M[C].y += B / A * F;
|
|
7240
7243
|
}
|
|
7241
7244
|
for (let w = 0; w < x; w++) {
|
|
7242
|
-
const N = M[w].x, C = M[w].y, L = Math.hypot(N, C) || 0.01,
|
|
7243
|
-
_[w].x = Math.max(18, Math.min(v - 18, _[w].x + N / L *
|
|
7245
|
+
const N = M[w].x, C = M[w].y, L = Math.hypot(N, C) || 0.01, B = Math.min(L, S);
|
|
7246
|
+
_[w].x = Math.max(18, Math.min(v - 18, _[w].x + N / L * B)), _[w].y = Math.max(18, Math.min(y - 18, _[w].y + C / L * B));
|
|
7244
7247
|
}
|
|
7245
7248
|
S *= 0.97;
|
|
7246
7249
|
}
|
|
@@ -7300,21 +7303,21 @@ function Vo({ nodes: t, links: n, height: l = 300, format: c = Y, className: s,
|
|
|
7300
7303
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
7301
7304
|
] });
|
|
7302
7305
|
}
|
|
7303
|
-
function
|
|
7304
|
-
const n =
|
|
7306
|
+
function Is({ children: t }) {
|
|
7307
|
+
const n = Et({ selector: ".select-combobox__option", y: 6, duration: 0.3, stagger: 0.03 });
|
|
7305
7308
|
return /* @__PURE__ */ e("div", { className: "select-combobox__list", ref: n, children: t });
|
|
7306
7309
|
}
|
|
7307
|
-
const
|
|
7308
|
-
const _ = te(), [p, b] = D(!1), [S, k] = D(""), M = s.find((
|
|
7309
|
-
const
|
|
7310
|
-
return !v || !
|
|
7310
|
+
const Go = R(function({ label: n, value: l, onChange: c, options: s, placeholder: a = "Selecionar…", searchPlaceholder: r = "Buscar…", labelAction: d, hint: o, error: i, emptyText: h = "Nenhum resultado", disabled: u, required: f, size: g = "md", searchable: v = !0, className: y, ...x }, $) {
|
|
7311
|
+
const _ = te(), [p, b] = D(!1), [S, k] = D(""), M = s.find((B) => B.value === l), w = xe(() => {
|
|
7312
|
+
const B = S.trim().toLowerCase();
|
|
7313
|
+
return !v || !B ? s : s.filter((A) => {
|
|
7311
7314
|
var F;
|
|
7312
|
-
return A.label.toLowerCase().includes(
|
|
7315
|
+
return A.label.toLowerCase().includes(B) || ((F = A.secondary) == null ? void 0 : F.toLowerCase().includes(B));
|
|
7313
7316
|
});
|
|
7314
7317
|
}, [s, S, v]), N = () => {
|
|
7315
7318
|
b(!1), k("");
|
|
7316
|
-
}, C = (
|
|
7317
|
-
c(
|
|
7319
|
+
}, C = (B) => {
|
|
7320
|
+
c(B), N();
|
|
7318
7321
|
}, L = i ? `${_}-err` : o ? `${_}-hint` : void 0;
|
|
7319
7322
|
return /* @__PURE__ */ m("div", { ref: $, ...x, className: `select-field${g === "sm" ? " select-field--sm" : ""}${y ? " " + y : ""}`, children: [
|
|
7320
7323
|
n && /* @__PURE__ */ m("div", { className: "select-field__labelrow", children: [
|
|
@@ -7354,31 +7357,31 @@ const Zo = R(function({ label: n, value: l, onChange: c, options: s, placeholder
|
|
|
7354
7357
|
className: "select-combobox__searchinput",
|
|
7355
7358
|
type: "text",
|
|
7356
7359
|
value: S,
|
|
7357
|
-
onChange: (
|
|
7360
|
+
onChange: (B) => k(B.target.value),
|
|
7358
7361
|
placeholder: r,
|
|
7359
7362
|
autoFocus: !0
|
|
7360
7363
|
}
|
|
7361
7364
|
) }),
|
|
7362
|
-
/* @__PURE__ */ e(
|
|
7363
|
-
const A =
|
|
7365
|
+
/* @__PURE__ */ e(Is, { children: w.length === 0 ? /* @__PURE__ */ e("div", { className: "select-combobox__empty", children: h }) : w.map((B) => {
|
|
7366
|
+
const A = B.value === l;
|
|
7364
7367
|
return /* @__PURE__ */ m(
|
|
7365
7368
|
"button",
|
|
7366
7369
|
{
|
|
7367
7370
|
type: "button",
|
|
7368
7371
|
role: "option",
|
|
7369
7372
|
"aria-selected": A,
|
|
7370
|
-
disabled:
|
|
7373
|
+
disabled: B.disabled,
|
|
7371
7374
|
className: `select-combobox__option${A ? " is-selected" : ""}`,
|
|
7372
|
-
onClick: () => C(
|
|
7375
|
+
onClick: () => C(B.value),
|
|
7373
7376
|
children: [
|
|
7374
7377
|
/* @__PURE__ */ m("span", { className: "select-combobox__optiontext", children: [
|
|
7375
|
-
/* @__PURE__ */ e("span", { className: "select-combobox__optionlabel", children:
|
|
7376
|
-
|
|
7378
|
+
/* @__PURE__ */ e("span", { className: "select-combobox__optionlabel", children: B.label }),
|
|
7379
|
+
B.secondary && /* @__PURE__ */ e("span", { className: "select-combobox__optionsecondary", children: B.secondary })
|
|
7377
7380
|
] }),
|
|
7378
7381
|
A && /* @__PURE__ */ e("span", { className: "select-combobox__check", "aria-hidden": "true", children: /* @__PURE__ */ e(Ae, {}) })
|
|
7379
7382
|
]
|
|
7380
7383
|
},
|
|
7381
|
-
|
|
7384
|
+
B.value
|
|
7382
7385
|
);
|
|
7383
7386
|
}) })
|
|
7384
7387
|
] })
|
|
@@ -7391,11 +7394,11 @@ const Zo = R(function({ label: n, value: l, onChange: c, options: s, placeholder
|
|
|
7391
7394
|
{ value: "dark", label: "Escuro", icon: /* @__PURE__ */ e(Zl, {}) },
|
|
7392
7395
|
{ value: "system", label: "Sistema", icon: /* @__PURE__ */ e(Vn, {}) }
|
|
7393
7396
|
];
|
|
7394
|
-
function
|
|
7397
|
+
function Uo(t) {
|
|
7395
7398
|
var n;
|
|
7396
7399
|
return t === "system" ? (n = window.matchMedia) != null && n.call(window, "(prefers-color-scheme: dark)").matches ? "dark" : "light" : t;
|
|
7397
7400
|
}
|
|
7398
|
-
function
|
|
7401
|
+
function qo({ value: t, onChange: n, className: l, ...c }) {
|
|
7399
7402
|
const [s, a] = D(!1), r = q(null), d = Wt.find((o) => o.value === t) ?? Wt[2];
|
|
7400
7403
|
return le(() => {
|
|
7401
7404
|
if (!s) return;
|
|
@@ -7404,12 +7407,12 @@ function Uo({ value: t, onChange: n, className: l, ...c }) {
|
|
|
7404
7407
|
};
|
|
7405
7408
|
return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
|
|
7406
7409
|
}, [s]), /* @__PURE__ */ m("div", { ...c, className: `select-themeswitcher${l ? " " + l : ""}`, ref: r, children: [
|
|
7407
|
-
/* @__PURE__ */ e(
|
|
7410
|
+
/* @__PURE__ */ e(Qc, { active: s, onClick: () => a((o) => !o), children: /* @__PURE__ */ m("span", { className: "select-themeswitcher__current", children: [
|
|
7408
7411
|
d.icon,
|
|
7409
7412
|
d.label
|
|
7410
7413
|
] }) }),
|
|
7411
|
-
s && /* @__PURE__ */ e("div", { className: "select-themeswitcher__popover", children: /* @__PURE__ */ e(
|
|
7412
|
-
|
|
7414
|
+
s && /* @__PURE__ */ e("div", { className: "select-themeswitcher__popover", children: /* @__PURE__ */ e(Kc, { children: Wt.map((o) => /* @__PURE__ */ e(
|
|
7415
|
+
Jc,
|
|
7413
7416
|
{
|
|
7414
7417
|
icon: o.icon,
|
|
7415
7418
|
active: o.value === t,
|
|
@@ -7424,22 +7427,22 @@ function Uo({ value: t, onChange: n, className: l, ...c }) {
|
|
|
7424
7427
|
] });
|
|
7425
7428
|
}
|
|
7426
7429
|
const Ml = Xt(!1);
|
|
7427
|
-
function
|
|
7430
|
+
function Yo({
|
|
7428
7431
|
children: t,
|
|
7429
7432
|
stacked: n = !1,
|
|
7430
7433
|
loading: l = !1
|
|
7431
7434
|
}) {
|
|
7432
|
-
const c =
|
|
7435
|
+
const c = Et({ selector: ".select-detail", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 });
|
|
7433
7436
|
return /* @__PURE__ */ e(Ml.Provider, { value: l, children: /* @__PURE__ */ e("div", { className: `select-detaillist${n ? " select-detaillist--stacked" : ""}`, ref: c, children: t }) });
|
|
7434
7437
|
}
|
|
7435
|
-
const
|
|
7438
|
+
const zo = R(function({ label: n, children: l, action: c, align: s = "center", loading: a, className: r, ...d }, o) {
|
|
7436
7439
|
const i = zt(Ml), h = a ?? i;
|
|
7437
7440
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-detail select-detail--${s}${r ? " " + r : ""}`, children: [
|
|
7438
7441
|
/* @__PURE__ */ e("div", { className: "select-detail__label", children: n }),
|
|
7439
7442
|
/* @__PURE__ */ e("div", { className: "select-detail__value", children: h ? /* @__PURE__ */ e("span", { className: "select-skeleton select-detail__skel" }) : l }),
|
|
7440
7443
|
c && /* @__PURE__ */ e("div", { className: "select-detail__action", children: c })
|
|
7441
7444
|
] });
|
|
7442
|
-
}),
|
|
7445
|
+
}), Xo = R(function({ steps: n, current: l, onSelect: c, className: s, ...a }, r) {
|
|
7443
7446
|
return /* @__PURE__ */ e("ol", { ref: r, ...a, className: `select-steps${s ? " " + s : ""}`, children: n.map((d, o) => {
|
|
7444
7447
|
const i = o < l ? "done" : o === l ? "current" : "todo", h = !!c && o < l, u = /* @__PURE__ */ m(_e, { children: [
|
|
7445
7448
|
/* @__PURE__ */ e("span", { className: "select-steps__num", "aria-hidden": "true", children: i === "done" ? /* @__PURE__ */ e(Ae, {}) : o + 1 }),
|
|
@@ -7447,7 +7450,7 @@ const Yo = R(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
7447
7450
|
] });
|
|
7448
7451
|
return /* @__PURE__ */ e("li", { className: `select-steps__step select-steps__step--${i}`, "aria-current": i === "current" ? "step" : void 0, children: h ? /* @__PURE__ */ e("button", { type: "button", className: "select-steps__btn", onClick: () => c(o), children: u }) : u }, o);
|
|
7449
7452
|
}) });
|
|
7450
|
-
}),
|
|
7453
|
+
}), Ko = R(function({ name: n, price: l, priceSuffix: c, headerAction: s, summary: a, cta: r, featuresTitle: d, features: o, featured: i = !1, className: h, ...u }, f) {
|
|
7451
7454
|
return /* @__PURE__ */ m("div", { ref: f, ...u, className: `select-plan${i ? " select-plan--featured" : ""}${h ? " " + h : ""}`, children: [
|
|
7452
7455
|
/* @__PURE__ */ m("div", { className: "select-plan__top", children: [
|
|
7453
7456
|
/* @__PURE__ */ m("div", { className: "select-plan__head", children: [
|
|
@@ -7469,7 +7472,7 @@ const Yo = R(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
7469
7472
|
] }, v)) })
|
|
7470
7473
|
] })
|
|
7471
7474
|
] });
|
|
7472
|
-
}),
|
|
7475
|
+
}), Jo = R(function({ title: n, description: l, headerAction: c, footer: s, children: a, className: r, ...d }, o) {
|
|
7473
7476
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-listcard${r ? " " + r : ""}`, children: [
|
|
7474
7477
|
(n || c) && /* @__PURE__ */ m("div", { className: "select-listcard__head", children: [
|
|
7475
7478
|
/* @__PURE__ */ m("div", { className: "select-listcard__heading", children: [
|
|
@@ -7482,7 +7485,7 @@ const Yo = R(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
7482
7485
|
s && /* @__PURE__ */ e("div", { className: "select-listcard__footer", children: s })
|
|
7483
7486
|
] });
|
|
7484
7487
|
});
|
|
7485
|
-
function
|
|
7488
|
+
function Qo({
|
|
7486
7489
|
media: t,
|
|
7487
7490
|
title: n,
|
|
7488
7491
|
secondary: l,
|
|
@@ -7513,7 +7516,7 @@ const Dn = R(function({ src: n, alt: l = "", size: c = 40, className: s, ...a },
|
|
|
7513
7516
|
}
|
|
7514
7517
|
) : /* @__PURE__ */ e("span", { className: "select-thumb__ph", "aria-hidden": "true", children: /* @__PURE__ */ e(jl, {}) }) });
|
|
7515
7518
|
});
|
|
7516
|
-
function
|
|
7519
|
+
function Ps({
|
|
7517
7520
|
open: t,
|
|
7518
7521
|
onClose: n,
|
|
7519
7522
|
src: l,
|
|
@@ -7522,7 +7525,7 @@ function Is({
|
|
|
7522
7525
|
}) {
|
|
7523
7526
|
return /* @__PURE__ */ e(It, { open: t, onClose: n, title: s, size: "lg", theme: ht(), children: /* @__PURE__ */ e("div", { className: "select-imagezoom", children: /* @__PURE__ */ e("img", { src: l, alt: c ?? s ?? "", className: "select-imagezoom__img" }) }) });
|
|
7524
7527
|
}
|
|
7525
|
-
function
|
|
7528
|
+
function er({
|
|
7526
7529
|
src: t,
|
|
7527
7530
|
alt: n = "",
|
|
7528
7531
|
size: l = 40,
|
|
@@ -7542,10 +7545,10 @@ function Qo({
|
|
|
7542
7545
|
children: /* @__PURE__ */ e(Dn, { src: t, size: l, alt: n })
|
|
7543
7546
|
}
|
|
7544
7547
|
),
|
|
7545
|
-
s && /* @__PURE__ */ e(
|
|
7548
|
+
s && /* @__PURE__ */ e(Ps, { open: !0, onClose: () => a(!1), src: t, alt: n, title: c ?? n })
|
|
7546
7549
|
] }) : /* @__PURE__ */ e(Dn, { size: l, alt: n });
|
|
7547
7550
|
}
|
|
7548
|
-
const
|
|
7551
|
+
const tr = R(function({ media: n, title: l, secondary: c, className: s, ...a }, r) {
|
|
7549
7552
|
return /* @__PURE__ */ m("span", { ref: r, ...a, className: `select-mediacell${s ? " " + s : ""}`, children: [
|
|
7550
7553
|
n && /* @__PURE__ */ e("span", { className: "select-mediacell__media", children: n }),
|
|
7551
7554
|
/* @__PURE__ */ m("span", { className: "select-mediacell__text", children: [
|
|
@@ -7554,7 +7557,7 @@ const er = R(function({ media: n, title: l, secondary: c, className: s, ...a },
|
|
|
7554
7557
|
] })
|
|
7555
7558
|
] });
|
|
7556
7559
|
});
|
|
7557
|
-
function
|
|
7560
|
+
function nr() {
|
|
7558
7561
|
const [t, n] = D(
|
|
7559
7562
|
() => typeof navigator < "u" && navigator.onLine === !1
|
|
7560
7563
|
);
|
|
@@ -7578,7 +7581,7 @@ function tr() {
|
|
|
7578
7581
|
}
|
|
7579
7582
|
);
|
|
7580
7583
|
}
|
|
7581
|
-
function
|
|
7584
|
+
function Rs(t) {
|
|
7582
7585
|
return Array.isArray(t) ? t.filter((n) => n != null && typeof n == "object").map((n) => ({
|
|
7583
7586
|
name: String(n.name ?? n.key ?? ""),
|
|
7584
7587
|
value: n.value == null ? "" : String(n.value)
|
|
@@ -7587,8 +7590,8 @@ function Ps(t) {
|
|
|
7587
7590
|
value: l == null ? "" : String(l)
|
|
7588
7591
|
})) : [];
|
|
7589
7592
|
}
|
|
7590
|
-
const
|
|
7591
|
-
const f =
|
|
7593
|
+
const lr = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valuePlaceholder: s = "Valor", keyOptions: a, addLabel: r = "Adicionar", max: d, helpText: o = "Linhas vazias serão ignoradas.", className: i, ...h }, u) {
|
|
7594
|
+
const f = Rs(n), g = ($, _) => l(f.map((p, b) => b === $ ? { ...p, ..._ } : p)), v = ($) => l(f.filter((_, p) => p !== $)), y = () => l([...f, { name: "", value: "" }]), x = d == null || f.length < d;
|
|
7592
7595
|
return /* @__PURE__ */ m("div", { ref: u, ...h, className: `select-kv${i ? " " + i : ""}`, children: [
|
|
7593
7596
|
f.map(($, _) => /* @__PURE__ */ m("div", { className: "select-kv__row", children: [
|
|
7594
7597
|
/* @__PURE__ */ e("div", { className: "select-kv__field", children: a ? /* @__PURE__ */ e(
|
|
@@ -7627,7 +7630,7 @@ const nr = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7627
7630
|
] }) }),
|
|
7628
7631
|
o && /* @__PURE__ */ e("p", { className: "select-kv__hint", children: o })
|
|
7629
7632
|
] });
|
|
7630
|
-
}), Tn = (t) => String(t).padStart(2, "0"),
|
|
7633
|
+
}), Tn = (t) => String(t).padStart(2, "0"), Ds = {
|
|
7631
7634
|
"en-US": {
|
|
7632
7635
|
weekdays: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
7633
7636
|
months: [
|
|
@@ -7675,7 +7678,7 @@ const nr = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7675
7678
|
}, Re = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), xt = (t) => new Date(t.getFullYear(), t.getMonth(), 1), At = (t, n) => new Date(t.getFullYear(), t.getMonth(), t.getDate() + n), Wn = (t, n) => new Date(t.getFullYear(), t.getMonth() + n, 1), yt = (t, n) => t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate(), Nt = (t) => {
|
|
7676
7679
|
const n = /* @__PURE__ */ new Date();
|
|
7677
7680
|
return { from: new Date(n.getTime() - t * 6e4), to: n };
|
|
7678
|
-
},
|
|
7681
|
+
}, Ts = [
|
|
7679
7682
|
{ id: "15m", label: "Last 15 minutes", range: () => Nt(15) },
|
|
7680
7683
|
{ id: "1h", label: "Last 1 hour", range: () => Nt(60) },
|
|
7681
7684
|
{ id: "3h", label: "Last 3 hours", range: () => Nt(180) },
|
|
@@ -7686,12 +7689,12 @@ const nr = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7686
7689
|
], qe = (t) => {
|
|
7687
7690
|
const n = Re(/* @__PURE__ */ new Date());
|
|
7688
7691
|
return { from: At(n, -t), to: n };
|
|
7689
|
-
},
|
|
7692
|
+
}, Ws = (t) => {
|
|
7690
7693
|
const n = At(Re(/* @__PURE__ */ new Date()), -1);
|
|
7691
7694
|
return { from: n, to: n };
|
|
7692
|
-
},
|
|
7695
|
+
}, Os = [
|
|
7693
7696
|
{ id: "today", label: "Hoje", range: () => qe(0) },
|
|
7694
|
-
{ id: "yesterday", label: "Ontem", range: () =>
|
|
7697
|
+
{ id: "yesterday", label: "Ontem", range: () => Ws() },
|
|
7695
7698
|
{ id: "7d", label: "Últimos 7 dias", range: () => qe(6) },
|
|
7696
7699
|
{ id: "10d", label: "Últimos 10 dias", range: () => qe(9) },
|
|
7697
7700
|
{ id: "15d", label: "Últimos 15 dias", range: () => qe(14) },
|
|
@@ -7699,21 +7702,21 @@ const nr = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7699
7702
|
{ id: "30d", label: "Últimos 30 dias", range: () => qe(29) },
|
|
7700
7703
|
{ id: "90d", label: "Últimos 90 dias", range: () => qe(89) }
|
|
7701
7704
|
];
|
|
7702
|
-
function
|
|
7705
|
+
function Hs(t) {
|
|
7703
7706
|
if (!t) return "—";
|
|
7704
7707
|
let n = t.getHours();
|
|
7705
7708
|
const l = n < 12 ? "AM" : "PM";
|
|
7706
7709
|
return n = n % 12 || 12, `${n} : ${String(t.getMinutes()).padStart(2, "0")} ${l}`;
|
|
7707
7710
|
}
|
|
7708
|
-
const
|
|
7709
|
-
const g =
|
|
7711
|
+
const js = R(function({ value: n, presets: l = Ts, onApply: c, onCancel: s, accentVar: a, locale: r = "en-US", showTime: d = !0, maxDate: o, embedded: i = !1, className: h, ...u }, f) {
|
|
7712
|
+
const g = Ds[r], v = Re(/* @__PURE__ */ new Date()), y = o ? Re(o) : null, [x, $] = D(n ?? { from: v, to: v }), [_, p] = D(xt((n == null ? void 0 : n.from) ?? /* @__PURE__ */ new Date())), [b, S] = D(null), k = At(xt(_), -xt(_).getDay()), M = Array.from({ length: 42 }, (A, F) => At(k, F)), w = (A) => y ? Re(A) > y : !1, N = (A) => A ? g.formatDate(A) : /* @__PURE__ */ e("span", { className: "select-datepicker__placeholder", children: "— / — / ——" }), C = (A) => {
|
|
7710
7713
|
w(A) || (S(null), $((F) => !F.from || F.from && F.to ? { from: A, to: null } : A < Re(F.from) ? { from: A, to: null } : { from: F.from, to: A }));
|
|
7711
7714
|
}, L = (A) => {
|
|
7712
7715
|
if (A.disabled || !A.range) return;
|
|
7713
7716
|
const F = A.range();
|
|
7714
7717
|
$(F), S(A.id), F.from && p(xt(F.from));
|
|
7715
|
-
},
|
|
7716
|
-
return /* @__PURE__ */ e("div", { ref: f, ...u, className: `select select-datepicker${i ? " select-datepicker--bare" : ""}${h ? " " + h : ""}`, style:
|
|
7718
|
+
}, B = a ? { "--select-dp-accent": `var(${a})` } : void 0;
|
|
7719
|
+
return /* @__PURE__ */ e("div", { ref: f, ...u, className: `select select-datepicker${i ? " select-datepicker--bare" : ""}${h ? " " + h : ""}`, style: B, children: /* @__PURE__ */ m("div", { className: "select-datepicker__body", children: [
|
|
7717
7720
|
/* @__PURE__ */ e("div", { className: "select-datepicker__presets", role: "listbox", "aria-label": "Intervalos", children: l.map((A) => {
|
|
7718
7721
|
const F = b === A.id;
|
|
7719
7722
|
return /* @__PURE__ */ m(
|
|
@@ -7737,7 +7740,7 @@ const Hs = R(function({ value: n, presets: l = Ds, onApply: c, onCancel: s, acce
|
|
|
7737
7740
|
/* @__PURE__ */ e("div", { className: "select-datepicker__fields", children: ["from", "to"].map((A) => /* @__PURE__ */ m("div", { className: "select-datepicker__fieldrow", children: [
|
|
7738
7741
|
/* @__PURE__ */ e("span", { className: "select-datepicker__fieldlabel", children: A === "from" ? g.from : g.to }),
|
|
7739
7742
|
/* @__PURE__ */ e("span", { className: "select-datepicker__pill select-datepicker__pill--date", children: N(x[A]) }),
|
|
7740
|
-
d && /* @__PURE__ */ e("span", { className: "select-datepicker__pill select-datepicker__pill--time", children:
|
|
7743
|
+
d && /* @__PURE__ */ e("span", { className: "select-datepicker__pill select-datepicker__pill--time", children: Hs(x[A]) })
|
|
7741
7744
|
] }, A)) }),
|
|
7742
7745
|
/* @__PURE__ */ m("div", { className: "select-datepicker__calhead", children: [
|
|
7743
7746
|
/* @__PURE__ */ e(
|
|
@@ -7769,8 +7772,8 @@ const Hs = R(function({ value: n, presets: l = Ds, onApply: c, onCancel: s, acce
|
|
|
7769
7772
|
/* @__PURE__ */ m("div", { className: "select-datepicker__grid", role: "grid", children: [
|
|
7770
7773
|
g.weekdays.map((A, F) => /* @__PURE__ */ e("div", { className: "select-datepicker__weekday", children: A }, F)),
|
|
7771
7774
|
M.map((A) => {
|
|
7772
|
-
const F = A.getMonth() !== _.getMonth(),
|
|
7773
|
-
return /* @__PURE__ */ e("div", { className: G, children: /* @__PURE__ */ e("button", { type: "button", className: J, disabled:
|
|
7775
|
+
const F = A.getMonth() !== _.getMonth(), E = w(A), T = !!x.from && yt(A, x.from), I = !!x.to && yt(A, x.to), O = T || I, W = !!x.from && !!x.to && !yt(x.from, x.to), G = "select-datepicker__day" + (!!x.from && !!x.to && A > Re(x.from) && A < Re(x.to) ? " select-datepicker__day--in-range" : "") + (W && T ? " select-datepicker__day--range-start" : "") + (W && I ? " select-datepicker__day--range-end" : ""), J = "select-datepicker__daybtn" + (O ? " is-selected" : "") + (yt(A, v) && !O ? " is-today" : "") + (F ? " is-outside" : "");
|
|
7776
|
+
return /* @__PURE__ */ e("div", { className: G, children: /* @__PURE__ */ e("button", { type: "button", className: J, disabled: E, onClick: () => C(A), children: A.getDate() }) }, A.getTime());
|
|
7774
7777
|
})
|
|
7775
7778
|
] }),
|
|
7776
7779
|
/* @__PURE__ */ m("div", { className: "select-datepicker__footer", children: [
|
|
@@ -7780,7 +7783,7 @@ const Hs = R(function({ value: n, presets: l = Ds, onApply: c, onCancel: s, acce
|
|
|
7780
7783
|
] })
|
|
7781
7784
|
] }) });
|
|
7782
7785
|
}), Ot = (t) => new Date(t.getFullYear(), t.getMonth(), t.getDate()), Ht = (t, n) => t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate(), jt = (t) => `${String(t.getDate()).padStart(2, "0")}/${String(t.getMonth() + 1).padStart(2, "0")}/${t.getFullYear()}`;
|
|
7783
|
-
function
|
|
7786
|
+
function Vs(t, n) {
|
|
7784
7787
|
var l;
|
|
7785
7788
|
for (const c of n) {
|
|
7786
7789
|
const s = (l = c.range) == null ? void 0 : l.call(c);
|
|
@@ -7788,10 +7791,10 @@ function js(t, n) {
|
|
|
7788
7791
|
}
|
|
7789
7792
|
return Ht(t.start, t.end) ? jt(t.start) : `${jt(t.start)} – ${jt(t.end)}`;
|
|
7790
7793
|
}
|
|
7791
|
-
function
|
|
7794
|
+
function cr({
|
|
7792
7795
|
value: t,
|
|
7793
7796
|
onChange: n,
|
|
7794
|
-
presets: l =
|
|
7797
|
+
presets: l = Os,
|
|
7795
7798
|
maxDate: c,
|
|
7796
7799
|
placement: s = "bottom-end",
|
|
7797
7800
|
size: a = "md",
|
|
@@ -7816,11 +7819,11 @@ function lr({
|
|
|
7816
7819
|
icon: /* @__PURE__ */ e(qn, {}),
|
|
7817
7820
|
trailingIcon: /* @__PURE__ */ e(be, {}),
|
|
7818
7821
|
onClick: () => i((u) => !u),
|
|
7819
|
-
children:
|
|
7822
|
+
children: Vs(t, l)
|
|
7820
7823
|
}
|
|
7821
7824
|
),
|
|
7822
7825
|
children: /* @__PURE__ */ e(
|
|
7823
|
-
|
|
7826
|
+
js,
|
|
7824
7827
|
{
|
|
7825
7828
|
embedded: !0,
|
|
7826
7829
|
locale: "pt-BR",
|
|
@@ -7837,7 +7840,7 @@ function lr({
|
|
|
7837
7840
|
}
|
|
7838
7841
|
);
|
|
7839
7842
|
}
|
|
7840
|
-
function
|
|
7843
|
+
function Zs({ size: t }) {
|
|
7841
7844
|
return /* @__PURE__ */ e("svg", { width: t, height: t, viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
7842
7845
|
"path",
|
|
7843
7846
|
{
|
|
@@ -7846,10 +7849,10 @@ function Vs({ size: t }) {
|
|
|
7846
7849
|
}
|
|
7847
7850
|
) });
|
|
7848
7851
|
}
|
|
7849
|
-
const
|
|
7852
|
+
const sr = R(function({ value: n, max: l = 5, onChange: c, size: s = 20, label: a, disabled: r = !1, className: d, ...o }, i) {
|
|
7850
7853
|
const h = !!c && !r, [u, f] = D(null), g = u ?? n;
|
|
7851
7854
|
return /* @__PURE__ */ e("div", { ref: i, ...o, className: `select-rating${h ? " select-rating--interactive" : ""}${d ? " " + d : ""}`, role: h ? "slider" : "img", "aria-label": a ?? `Avaliação ${n} de ${l}`, "aria-valuenow": h ? n : void 0, "aria-valuemin": h ? 0 : void 0, "aria-valuemax": h ? l : void 0, onMouseLeave: () => h && f(null), children: Array.from({ length: l }, (v, y) => {
|
|
7852
|
-
const x = y < g, $ = /* @__PURE__ */ e("span", { className: `select-rating__star${x ? " is-filled" : ""}`, children: /* @__PURE__ */ e(
|
|
7855
|
+
const x = y < g, $ = /* @__PURE__ */ e("span", { className: `select-rating__star${x ? " is-filled" : ""}`, children: /* @__PURE__ */ e(Zs, { size: s }) });
|
|
7853
7856
|
return h ? /* @__PURE__ */ e(
|
|
7854
7857
|
"button",
|
|
7855
7858
|
{
|
|
@@ -7865,15 +7868,15 @@ const cr = R(function({ value: n, max: l = 5, onChange: c, size: s = 20, label:
|
|
|
7865
7868
|
y
|
|
7866
7869
|
) : /* @__PURE__ */ e("span", { children: $ }, y);
|
|
7867
7870
|
}) });
|
|
7868
|
-
}),
|
|
7869
|
-
const $ = te(), _ = (F) => Math.min(a ?? 1 / 0, Math.max(s ?? -1 / 0, F)), p = (F) => Math.round(F * 1e6) / 1e6, b = l ?? 0, S = s != null && b <= s, k = a != null && b >= a, [M, w] = D(!1), [N, C] = D(""), L = d && M ? N : l == null ? "" : String(l),
|
|
7870
|
-
const
|
|
7871
|
-
if (d && C(
|
|
7872
|
-
const T = Number(
|
|
7871
|
+
}), ar = R(function({ label: n, value: l, onChange: c, min: s, max: a, step: r = 1, decimal: d = !1, disabled: o = !1, hint: i, error: h, onBlur: u, placeholder: f, size: g = "md", className: v, ...y }, x) {
|
|
7872
|
+
const $ = te(), _ = (F) => Math.min(a ?? 1 / 0, Math.max(s ?? -1 / 0, F)), p = (F) => Math.round(F * 1e6) / 1e6, b = l ?? 0, S = s != null && b <= s, k = a != null && b >= a, [M, w] = D(!1), [N, C] = D(""), L = d && M ? N : l == null ? "" : String(l), B = (F) => {
|
|
7873
|
+
const E = d ? F.replace(/[^\d.,-]/g, "").replace(",", ".") : F.replace(/[^\d-]/g, "");
|
|
7874
|
+
if (d && C(E), E === "" || E === "-" || E === ".") return c(null);
|
|
7875
|
+
const T = Number(E);
|
|
7873
7876
|
Number.isFinite(T) && c(_(T));
|
|
7874
7877
|
}, A = (F) => {
|
|
7875
|
-
const
|
|
7876
|
-
d && C(String(
|
|
7878
|
+
const E = _(p(b + F));
|
|
7879
|
+
d && C(String(E)), c(E);
|
|
7877
7880
|
};
|
|
7878
7881
|
return /* @__PURE__ */ m("div", { ref: x, ...y, className: `select-field${g === "sm" ? " select-field--sm" : ""}${v ? " " + v : ""}`, children: [
|
|
7879
7882
|
n && /* @__PURE__ */ e(lt, { htmlFor: $, label: n }),
|
|
@@ -7900,7 +7903,7 @@ const cr = R(function({ value: n, max: l = 5, onChange: c, size: s = 20, label:
|
|
|
7900
7903
|
disabled: o,
|
|
7901
7904
|
placeholder: f,
|
|
7902
7905
|
value: L,
|
|
7903
|
-
onChange: (F) =>
|
|
7906
|
+
onChange: (F) => B(F.target.value),
|
|
7904
7907
|
onFocus: () => {
|
|
7905
7908
|
w(!0), C(l == null ? "" : String(l));
|
|
7906
7909
|
},
|
|
@@ -7925,7 +7928,7 @@ const cr = R(function({ value: n, max: l = 5, onChange: c, size: s = 20, label:
|
|
|
7925
7928
|
h ? /* @__PURE__ */ e("p", { className: "select-field__error", children: h }) : i ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: i }) : null
|
|
7926
7929
|
] });
|
|
7927
7930
|
});
|
|
7928
|
-
function
|
|
7931
|
+
function or({
|
|
7929
7932
|
items: t,
|
|
7930
7933
|
onChange: n,
|
|
7931
7934
|
renderRow: l,
|
|
@@ -7979,7 +7982,7 @@ function ar({
|
|
|
7979
7982
|
] })
|
|
7980
7983
|
] });
|
|
7981
7984
|
}
|
|
7982
|
-
function
|
|
7985
|
+
function rr({
|
|
7983
7986
|
title: t,
|
|
7984
7987
|
subtitle: n,
|
|
7985
7988
|
backTo: l,
|
|
@@ -8011,7 +8014,7 @@ function or({
|
|
|
8011
8014
|
}
|
|
8012
8015
|
);
|
|
8013
8016
|
}
|
|
8014
|
-
const
|
|
8017
|
+
const ir = R(function({ label: n, checked: l, onChange: c, disabled: s = !1, hint: a, className: r, ...d }, o) {
|
|
8015
8018
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-switchfield${s ? " is-disabled" : ""}${r ? " " + r : ""}`, children: [
|
|
8016
8019
|
/* @__PURE__ */ m("div", { className: "select-switchfield__row", children: [
|
|
8017
8020
|
/* @__PURE__ */ e(nn, { checked: l, onChange: c, disabled: s, label: n }),
|
|
@@ -8028,8 +8031,8 @@ const rr = R(function({ label: n, checked: l, onChange: c, disabled: s = !1, hin
|
|
|
8028
8031
|
] }),
|
|
8029
8032
|
a != null && /* @__PURE__ */ e("span", { className: "select-switchfield__hint", children: a })
|
|
8030
8033
|
] });
|
|
8031
|
-
}),
|
|
8032
|
-
function
|
|
8034
|
+
}), Gs = (t) => /^#[0-9a-fA-F]{6}$/.test(t);
|
|
8035
|
+
function dr({ label: t, value: n, onChange: l, disabled: c = !1, hint: s, error: a }) {
|
|
8033
8036
|
return /* @__PURE__ */ e(
|
|
8034
8037
|
We,
|
|
8035
8038
|
{
|
|
@@ -8051,7 +8054,7 @@ function ir({ label: t, value: n, onChange: l, disabled: c = !1, hint: s, error:
|
|
|
8051
8054
|
{
|
|
8052
8055
|
type: "color",
|
|
8053
8056
|
className: "select-color-swatch",
|
|
8054
|
-
value:
|
|
8057
|
+
value: Gs(n) ? n : "#000000",
|
|
8055
8058
|
onChange: (r) => l(r.target.value),
|
|
8056
8059
|
disabled: c,
|
|
8057
8060
|
"aria-label": t ? `${t} — escolher cor` : "Escolher cor"
|
|
@@ -8060,13 +8063,13 @@ function ir({ label: t, value: n, onChange: l, disabled: c = !1, hint: s, error:
|
|
|
8060
8063
|
}
|
|
8061
8064
|
);
|
|
8062
8065
|
}
|
|
8063
|
-
function
|
|
8066
|
+
function Us(t) {
|
|
8064
8067
|
return new Promise((n, l) => {
|
|
8065
8068
|
const c = new FileReader();
|
|
8066
8069
|
c.onload = () => n(String(c.result)), c.onerror = () => l(c.error), c.readAsDataURL(t);
|
|
8067
8070
|
});
|
|
8068
8071
|
}
|
|
8069
|
-
const
|
|
8072
|
+
const ur = R(function({ label: n, value: l, onChange: c, accept: s = "image/*", maxSizeMB: a = 3, urlPlaceholder: r, hint: d, uploadFile: o, className: i, ...h }, u) {
|
|
8070
8073
|
const [f, g] = D([]), [v, y] = D(null), x = l ? [l] : [], $ = async (_) => {
|
|
8071
8074
|
const p = _[0];
|
|
8072
8075
|
if (!p) {
|
|
@@ -8074,7 +8077,7 @@ const dr = R(function({ label: n, value: l, onChange: c, accept: s = "image/*",
|
|
|
8074
8077
|
return;
|
|
8075
8078
|
}
|
|
8076
8079
|
if (y(null), !o) {
|
|
8077
|
-
c(await
|
|
8080
|
+
c(await Us(p)), g([]);
|
|
8078
8081
|
return;
|
|
8079
8082
|
}
|
|
8080
8083
|
g([p]);
|
|
@@ -8104,7 +8107,7 @@ const dr = R(function({ label: n, value: l, onChange: c, accept: s = "image/*",
|
|
|
8104
8107
|
),
|
|
8105
8108
|
v && /* @__PURE__ */ e("span", { className: "select-imagefield__error", children: v })
|
|
8106
8109
|
] });
|
|
8107
|
-
}),
|
|
8110
|
+
}), hr = R(function({ items: n, multiple: l = !1, defaultOpenIds: c = [], className: s, ...a }, r) {
|
|
8108
8111
|
const [d, o] = D(() => new Set(c)), i = (h) => o((u) => {
|
|
8109
8112
|
const f = u.has(h), g = new Set(l ? u : []);
|
|
8110
8113
|
return f ? g.delete(h) : g.add(h), g;
|
|
@@ -8141,16 +8144,16 @@ const dr = R(function({ label: n, value: l, onChange: c, accept: s = "image/*",
|
|
|
8141
8144
|
}) });
|
|
8142
8145
|
});
|
|
8143
8146
|
export {
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
+
Qs as AUTH_FX_VARIANTS,
|
|
8148
|
+
va as AppleIcon,
|
|
8149
|
+
Pa as AppsIcon,
|
|
8147
8150
|
On as ArrowLeftIcon,
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8151
|
+
ba as ArrowRightIcon,
|
|
8152
|
+
ya as AtIcon,
|
|
8153
|
+
ma as AuthAppIcon,
|
|
8154
|
+
ua as BellIcon,
|
|
8155
|
+
oa as BookmarkIcon,
|
|
8156
|
+
Ma as BuildingIcon,
|
|
8154
8157
|
qn as CalendarIcon,
|
|
8155
8158
|
Ea as ChartLineIcon,
|
|
8156
8159
|
ql as CheckCircleIcon,
|
|
@@ -8160,243 +8163,243 @@ export {
|
|
|
8160
8163
|
dt as ChevronRightIcon,
|
|
8161
8164
|
Yn as ChevronUpIcon,
|
|
8162
8165
|
zl as ClipboardIcon,
|
|
8163
|
-
|
|
8166
|
+
aa as ClockIcon,
|
|
8164
8167
|
Ke as CloseIcon,
|
|
8165
8168
|
Qt as CopyIcon,
|
|
8166
|
-
|
|
8169
|
+
Sa as CreditCardIcon,
|
|
8167
8170
|
jl as CubeIcon,
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8171
|
+
Ba as DiscountIcon,
|
|
8172
|
+
sa as DotsHorizontalIcon,
|
|
8173
|
+
Ca as EditIcon,
|
|
8174
|
+
Fa as ExportIcon,
|
|
8172
8175
|
Hn as ExternalLinkIcon,
|
|
8173
8176
|
Zn as EyeIcon,
|
|
8174
8177
|
Gn as EyeOffIcon,
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
+
_a as FacebookIcon,
|
|
8179
|
+
ca as FilterIcon,
|
|
8180
|
+
la as GithubIcon,
|
|
8178
8181
|
Wl as GlobeIcon,
|
|
8179
|
-
|
|
8180
|
-
|
|
8182
|
+
na as GoogleIcon,
|
|
8183
|
+
ka as HomeIcon,
|
|
8181
8184
|
en as InfoIcon,
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8185
|
+
$a as KeyIcon,
|
|
8186
|
+
Aa as LockIcon,
|
|
8187
|
+
fa as MailIcon,
|
|
8188
|
+
Da as MenuIcon,
|
|
8189
|
+
Ra as MinusCircleIcon,
|
|
8187
8190
|
Gl as MobileIcon,
|
|
8188
8191
|
Vn as MonitorIcon,
|
|
8189
8192
|
Zl as MoonIcon,
|
|
8190
8193
|
Xl as NoteIcon,
|
|
8191
|
-
|
|
8192
|
-
|
|
8194
|
+
ga as PasskeyIcon,
|
|
8195
|
+
pa as PhoneIcon,
|
|
8193
8196
|
nt as PlusIcon,
|
|
8194
8197
|
Ul as RefreshIcon,
|
|
8195
|
-
|
|
8196
|
-
|
|
8198
|
+
ha as RocketIcon,
|
|
8199
|
+
D1 as SELECT_COL_DATETIME,
|
|
8197
8200
|
Zt as SELECT_COUNTRIES,
|
|
8198
|
-
|
|
8199
|
-
|
|
8201
|
+
Os as SELECT_DAILY_PRESETS,
|
|
8202
|
+
Ts as SELECT_DATE_PRESETS,
|
|
8200
8203
|
ze as SELECT_SPACE,
|
|
8201
8204
|
uc as SELECT_TRANSACTION_STATUS,
|
|
8202
8205
|
Jt as SearchIcon,
|
|
8203
|
-
|
|
8204
|
-
|
|
8206
|
+
hr as SelectAccordion,
|
|
8207
|
+
L1 as SelectActionCard,
|
|
8205
8208
|
cl as SelectActionList,
|
|
8206
|
-
|
|
8209
|
+
e1 as SelectActionMenu,
|
|
8207
8210
|
ec as SelectAddButton,
|
|
8208
8211
|
ut as SelectAlert,
|
|
8209
|
-
|
|
8210
|
-
|
|
8212
|
+
A1 as SelectAppTile,
|
|
8213
|
+
ea as SelectAuthFx,
|
|
8211
8214
|
Dc as SelectAvatar,
|
|
8212
|
-
|
|
8215
|
+
d1 as SelectBackLink,
|
|
8213
8216
|
nl as SelectBadge,
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
+
Y1 as SelectBalanceCard,
|
|
8218
|
+
Ua as SelectBankAccountField,
|
|
8219
|
+
Q1 as SelectBarChart,
|
|
8217
8220
|
_c as SelectBox,
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8221
|
+
bo as SelectBoxPlot,
|
|
8222
|
+
rr as SelectBuilderLayout,
|
|
8223
|
+
po as SelectBullet,
|
|
8224
|
+
To as SelectBump,
|
|
8222
8225
|
ve as SelectButton,
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
8244
|
-
|
|
8226
|
+
yo as SelectCalendarHeatmap,
|
|
8227
|
+
go as SelectCandlestick,
|
|
8228
|
+
ta as SelectCard,
|
|
8229
|
+
K1 as SelectChartCard,
|
|
8230
|
+
Wa as SelectCheckbox,
|
|
8231
|
+
Ao as SelectChord,
|
|
8232
|
+
Vo as SelectCirclePack,
|
|
8233
|
+
C1 as SelectCollapsible,
|
|
8234
|
+
dr as SelectColorField,
|
|
8235
|
+
co as SelectColumnChart,
|
|
8236
|
+
no as SelectComboChart,
|
|
8237
|
+
Go as SelectCombobox,
|
|
8238
|
+
P1 as SelectConfirmModal,
|
|
8239
|
+
w1 as SelectCopyRow,
|
|
8240
|
+
S1 as SelectCopyableId,
|
|
8241
|
+
F1 as SelectCreateTile,
|
|
8242
|
+
W1 as SelectDataTable,
|
|
8243
|
+
us as SelectDateField,
|
|
8244
|
+
js as SelectDatePicker,
|
|
8245
|
+
cr as SelectDateRangeField,
|
|
8246
|
+
Yo as SelectDetailList,
|
|
8247
|
+
zo as SelectDetailRow,
|
|
8245
8248
|
gc as SelectDisclosureButton,
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8249
|
+
s1 as SelectDivider,
|
|
8250
|
+
Va as SelectDocumentField,
|
|
8251
|
+
lo as SelectDonut,
|
|
8252
|
+
Js as SelectDotField,
|
|
8253
|
+
$o as SelectDumbbell,
|
|
8254
|
+
z1 as SelectFeeBreakdown,
|
|
8252
8255
|
We as SelectField,
|
|
8253
8256
|
nc as SelectFieldGrid,
|
|
8254
|
-
|
|
8257
|
+
Za as SelectFileDropzone,
|
|
8255
8258
|
wt as SelectFileTile,
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8259
|
+
O1 as SelectFilterBar,
|
|
8260
|
+
k1 as SelectFilterChip,
|
|
8261
|
+
p1 as SelectFormLayout,
|
|
8262
|
+
R1 as SelectFormModal,
|
|
8263
|
+
so as SelectFunnel,
|
|
8264
|
+
ao as SelectGauge,
|
|
8265
|
+
wo as SelectGaugeBands,
|
|
8263
8266
|
Eo as SelectGlobe,
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8267
|
+
t1 as SelectGrid,
|
|
8268
|
+
oo as SelectHeatmap,
|
|
8269
|
+
Fo as SelectHexbin,
|
|
8270
|
+
q1 as SelectHideMoneyToggle,
|
|
8271
|
+
uo as SelectHorizontalBar,
|
|
8272
|
+
Oo as SelectIcicle,
|
|
8273
|
+
f1 as SelectIcon,
|
|
8271
8274
|
ge as SelectIconButton,
|
|
8272
|
-
|
|
8273
|
-
|
|
8275
|
+
r1 as SelectIdentityFooter,
|
|
8276
|
+
ur as SelectImageField,
|
|
8274
8277
|
tc as SelectImageUploadField,
|
|
8275
|
-
|
|
8276
|
-
|
|
8278
|
+
Ga as SelectImageUrlsField,
|
|
8279
|
+
Ps as SelectImageZoomModal,
|
|
8277
8280
|
st as SelectInline,
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
+
l1 as SelectJsonViewer,
|
|
8282
|
+
lr as SelectKeyValueEditor,
|
|
8283
|
+
X1 as SelectKpiCard,
|
|
8281
8284
|
lt as SelectLabelRow,
|
|
8282
|
-
|
|
8285
|
+
eo as SelectLineChart,
|
|
8283
8286
|
Rc as SelectLinkButton,
|
|
8284
|
-
|
|
8285
|
-
|
|
8287
|
+
Jo as SelectListCard,
|
|
8288
|
+
Qo as SelectListRow,
|
|
8286
8289
|
Oc as SelectLoader,
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8290
|
+
ko as SelectMarimekko,
|
|
8291
|
+
tr as SelectMediaCell,
|
|
8292
|
+
Kc as SelectMenu,
|
|
8293
|
+
Qc as SelectMenuButton,
|
|
8294
|
+
$1 as SelectMenuDivider,
|
|
8295
|
+
Jc as SelectMenuItem,
|
|
8296
|
+
ws as SelectMetricDelta,
|
|
8294
8297
|
It as SelectModal,
|
|
8295
8298
|
at as SelectMoney,
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8299
|
+
ja as SelectMoneyField,
|
|
8300
|
+
Zo as SelectNetwork,
|
|
8301
|
+
_1 as SelectNote,
|
|
8302
|
+
ar as SelectNumberField,
|
|
8303
|
+
nr as SelectOfflineModal,
|
|
8304
|
+
a1 as SelectOptionList,
|
|
8305
|
+
o1 as SelectOptionRow,
|
|
8306
|
+
i1 as SelectOtpInput,
|
|
8304
8307
|
Hc as SelectPage,
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8308
|
+
ls as SelectPagination,
|
|
8309
|
+
b1 as SelectPanel,
|
|
8310
|
+
Wo as SelectParallel,
|
|
8311
|
+
Po as SelectPareto,
|
|
8312
|
+
h1 as SelectPasswordStrength,
|
|
8313
|
+
n1 as SelectPaymentBrand,
|
|
8314
|
+
Xa as SelectPhoneField,
|
|
8315
|
+
Ko as SelectPlanCard,
|
|
8316
|
+
No as SelectPolarArea,
|
|
8314
8317
|
Oe as SelectPopover,
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8318
|
+
G1 as SelectPreviewFrame,
|
|
8319
|
+
ro as SelectProgressList,
|
|
8320
|
+
Do as SelectPyramid,
|
|
8321
|
+
_o as SelectRadar,
|
|
8322
|
+
io as SelectRadialBar,
|
|
8323
|
+
Ka as SelectRadioGroup,
|
|
8324
|
+
xo as SelectRangeBar,
|
|
8325
|
+
sr as SelectRating,
|
|
8326
|
+
or as SelectRepeatingFieldArray,
|
|
8327
|
+
u1 as SelectResendButton,
|
|
8328
|
+
I1 as SelectRowActions,
|
|
8329
|
+
vo as SelectSankey,
|
|
8330
|
+
fo as SelectScatter,
|
|
8328
8331
|
ml as SelectSearchInput,
|
|
8329
|
-
|
|
8330
|
-
|
|
8332
|
+
x1 as SelectSection,
|
|
8333
|
+
Ja as SelectSegmented,
|
|
8331
8334
|
Vt as SelectSelect,
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8335
|
+
$s as SelectSensitiveValue,
|
|
8336
|
+
v1 as SelectSettingList,
|
|
8337
|
+
g1 as SelectSettingRow,
|
|
8338
|
+
N1 as SelectSideNav,
|
|
8339
|
+
m1 as SelectSkeleton,
|
|
8340
|
+
Mo as SelectSlope,
|
|
8341
|
+
J1 as SelectSparkline,
|
|
8339
8342
|
Gt as SelectStack,
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8343
|
+
to as SelectStackedArea,
|
|
8344
|
+
Qa as SelectStatusBadge,
|
|
8345
|
+
Xo as SelectSteps,
|
|
8346
|
+
So as SelectStreamGraph,
|
|
8347
|
+
Co as SelectSunburst,
|
|
8348
|
+
j1 as SelectSurface,
|
|
8346
8349
|
nn as SelectSwitch,
|
|
8347
|
-
|
|
8348
|
-
|
|
8350
|
+
ir as SelectSwitchField,
|
|
8351
|
+
zc as SelectTable,
|
|
8349
8352
|
xn as SelectTableCell,
|
|
8350
|
-
|
|
8353
|
+
Xc as SelectTableEmpty,
|
|
8351
8354
|
bn as SelectTableRow,
|
|
8352
|
-
|
|
8353
|
-
|
|
8355
|
+
y1 as SelectTabs,
|
|
8356
|
+
H1 as SelectTagSelect,
|
|
8354
8357
|
Xe as SelectText,
|
|
8355
|
-
|
|
8356
|
-
|
|
8358
|
+
Oa as SelectTextarea,
|
|
8359
|
+
qo as SelectThemeSwitcher,
|
|
8357
8360
|
Dn as SelectThumbnail,
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8361
|
+
Io as SelectTicker,
|
|
8362
|
+
c1 as SelectTimeline,
|
|
8363
|
+
V1 as SelectToastProvider,
|
|
8364
|
+
qa as SelectToggleList,
|
|
8365
|
+
za as SelectTogglePanel,
|
|
8366
|
+
Ya as SelectToggleRow,
|
|
8364
8367
|
E1 as SelectTooltip,
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8368
|
+
Ho as SelectTree,
|
|
8369
|
+
mo as SelectTreemap,
|
|
8370
|
+
Ha as SelectUnitInput,
|
|
8371
|
+
M1 as SelectUserCell,
|
|
8372
|
+
U1 as SelectValueVisibilityProvider,
|
|
8373
|
+
jo as SelectVenn,
|
|
8374
|
+
Lo as SelectViolin,
|
|
8375
|
+
Ro as SelectWaffle,
|
|
8376
|
+
ho as SelectWaterfall,
|
|
8377
|
+
Bo as SelectWordCloud,
|
|
8378
|
+
B1 as SelectWorkspaceSwitcher,
|
|
8379
|
+
er as SelectZoomThumbnail,
|
|
8377
8380
|
jn as SelectorIcon,
|
|
8378
|
-
|
|
8381
|
+
La as SendIcon,
|
|
8379
8382
|
Tl as Setting4Icon,
|
|
8380
8383
|
Yl as SettingsIcon,
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8384
|
+
xa as ShieldIcon,
|
|
8385
|
+
ia as SplitIcon,
|
|
8386
|
+
ra as StarIcon,
|
|
8387
|
+
Ia as StoreIcon,
|
|
8388
|
+
Ta as StorefrontIcon,
|
|
8386
8389
|
Vl as SunIcon,
|
|
8387
8390
|
Hl as TerminalIcon,
|
|
8388
8391
|
Un as TrashIcon,
|
|
8389
8392
|
kt as UploadIcon,
|
|
8390
|
-
|
|
8391
|
-
|
|
8393
|
+
da as UserIcon,
|
|
8394
|
+
wa as WalletIcon,
|
|
8392
8395
|
Ol as WarningIcon,
|
|
8393
|
-
|
|
8396
|
+
Na as Web3Icon,
|
|
8394
8397
|
ht as detectSelectTheme,
|
|
8395
8398
|
dc as dialCodeOf,
|
|
8396
8399
|
Wc as passwordScore,
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
+
Uo as resolveSelectTheme,
|
|
8401
|
+
T1 as useSelectPageSize,
|
|
8402
|
+
Z1 as useSelectToast,
|
|
8400
8403
|
bl as useSelectValueVisibility
|
|
8401
8404
|
};
|
|
8402
8405
|
//# sourceMappingURL=index.js.map
|