@selectwin/kit 0.1.27 → 0.1.29
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/SelectCopyableId.d.ts +5 -1
- package/dist/SelectSkeleton.d.ts +6 -0
- package/dist/index.js +753 -749
- 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,40 +3101,41 @@ 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,
|
|
3105
3108
|
label: c = "Copiar id",
|
|
3106
3109
|
fallback: s = "—",
|
|
3107
|
-
to: a
|
|
3110
|
+
to: a,
|
|
3111
|
+
reveal: r = "hover"
|
|
3108
3112
|
}) {
|
|
3109
|
-
const [
|
|
3113
|
+
const [d, o] = D(!1);
|
|
3110
3114
|
if (!t) return /* @__PURE__ */ e(_e, { children: s });
|
|
3111
|
-
const
|
|
3112
|
-
return /* @__PURE__ */ m("span", { className: "select-copyid"
|
|
3115
|
+
const i = n ?? (l ? t.slice(0, l) : t);
|
|
3116
|
+
return /* @__PURE__ */ m("span", { className: `select-copyid${r === "always" ? " select-copyid--always" : ""}`, children: [
|
|
3113
3117
|
a ? (
|
|
3114
3118
|
// Keep navigation isolated from any row handler; the text alone is the link target.
|
|
3115
|
-
/* @__PURE__ */ e(wl, { className: "select-copyid__text select-copyid__link", to: a, onClick: (
|
|
3116
|
-
) : /* @__PURE__ */ e("span", { className: "select-copyid__text", children:
|
|
3119
|
+
/* @__PURE__ */ e(wl, { className: "select-copyid__text select-copyid__link", to: a, onClick: (u) => u.stopPropagation(), children: i })
|
|
3120
|
+
) : /* @__PURE__ */ e("span", { className: "select-copyid__text", children: i }),
|
|
3117
3121
|
/* @__PURE__ */ e(
|
|
3118
3122
|
"button",
|
|
3119
3123
|
{
|
|
3120
3124
|
type: "button",
|
|
3121
|
-
className: `select-copyid__btn${
|
|
3122
|
-
onClick: (
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
+
className: `select-copyid__btn${d ? " is-copied" : ""}`,
|
|
3126
|
+
onClick: (u) => {
|
|
3127
|
+
u.stopPropagation(), u.preventDefault(), navigator.clipboard.writeText(t).then(() => {
|
|
3128
|
+
o(!0), setTimeout(() => o(!1), 1200);
|
|
3125
3129
|
});
|
|
3126
3130
|
},
|
|
3127
|
-
"aria-label":
|
|
3128
|
-
title:
|
|
3129
|
-
children:
|
|
3131
|
+
"aria-label": d ? "Copiado" : c,
|
|
3132
|
+
title: d ? "Copiado" : c,
|
|
3133
|
+
children: d ? /* @__PURE__ */ e(Ae, {}) : /* @__PURE__ */ e(Qt, {})
|
|
3130
3134
|
}
|
|
3131
3135
|
)
|
|
3132
3136
|
] });
|
|
3133
3137
|
}
|
|
3134
|
-
const
|
|
3138
|
+
const C1 = R(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !1, className: a, ...r }, d) {
|
|
3135
3139
|
const [o, i] = D(c);
|
|
3136
3140
|
return /* @__PURE__ */ m("div", { ref: d, ...r, className: `select-collapsible${s ? " select-collapsible--plain" : ""}${o ? " is-open" : ""}${a ? " " + a : ""}`, children: [
|
|
3137
3141
|
/* @__PURE__ */ m("button", { type: "button", className: "select-collapsible__header", onClick: () => i((h) => !h), "aria-expanded": o, children: [
|
|
@@ -3140,7 +3144,7 @@ const S1 = R(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3140
3144
|
] }),
|
|
3141
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 }) }) })
|
|
3142
3146
|
] });
|
|
3143
|
-
}),
|
|
3147
|
+
}), L1 = R(function({ icon: n, title: l, description: c, action: s, onDismiss: a, className: r, ...d }, o) {
|
|
3144
3148
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-actioncard${r ? " " + r : ""}`, children: [
|
|
3145
3149
|
a && /* @__PURE__ */ e("div", { className: "select-actioncard__dismiss", children: /* @__PURE__ */ e(ge, { size: "sm", icon: /* @__PURE__ */ e(Ke, {}), label: "Dispensar", onClick: a }) }),
|
|
3146
3150
|
n && /* @__PURE__ */ e("span", { className: "select-actioncard__icon", children: n }),
|
|
@@ -3150,7 +3154,7 @@ const S1 = R(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3150
3154
|
] }),
|
|
3151
3155
|
s && /* @__PURE__ */ e("div", { className: "select-actioncard__action", children: s })
|
|
3152
3156
|
] });
|
|
3153
|
-
}),
|
|
3157
|
+
}), A1 = R(function({ media: n, sublabel: l, title: c, badge: s, meta: a, accent: r = !0, onClick: d, className: o, ...i }, h) {
|
|
3154
3158
|
return /* @__PURE__ */ m("button", { ref: h, ...i, type: "button", className: `select-tile${o ? " " + o : ""}`, onClick: d, children: [
|
|
3155
3159
|
r && /* @__PURE__ */ e("span", { className: "select-tile__accent", "aria-hidden": "true" }),
|
|
3156
3160
|
/* @__PURE__ */ m("div", { className: "select-tile__main", children: [
|
|
@@ -3165,19 +3169,19 @@ const S1 = R(function({ title: n, children: l, defaultOpen: c = !1, plain: s = !
|
|
|
3165
3169
|
] }),
|
|
3166
3170
|
a && /* @__PURE__ */ e("div", { className: "select-tile__meta", children: a })
|
|
3167
3171
|
] });
|
|
3168
|
-
}),
|
|
3172
|
+
}), F1 = R(function({ label: n, onClick: l, className: c, ...s }, a) {
|
|
3169
3173
|
return /* @__PURE__ */ m("button", { ref: a, ...s, type: "button", className: `select-tile select-tile--create${c ? " " + c : ""}`, onClick: l, children: [
|
|
3170
3174
|
/* @__PURE__ */ e("span", { className: "select-tile__plus", "aria-hidden": "true", children: /* @__PURE__ */ e(nt, {}) }),
|
|
3171
3175
|
/* @__PURE__ */ e("span", { className: "select-tile__createlabel", children: n })
|
|
3172
3176
|
] });
|
|
3173
|
-
}),
|
|
3177
|
+
}), B1 = R(function({ avatar: n, name: l, badge: c, onClick: s, className: a, ...r }, d) {
|
|
3174
3178
|
return /* @__PURE__ */ m("button", { ref: d, ...r, type: "button", className: `select-wsswitcher${a ? " " + a : ""}`, onClick: s, "aria-haspopup": "menu", children: [
|
|
3175
3179
|
n && /* @__PURE__ */ e("span", { className: "select-wsswitcher__avatar", children: n }),
|
|
3176
3180
|
/* @__PURE__ */ e("span", { className: "select-wsswitcher__name", children: l }),
|
|
3177
3181
|
c,
|
|
3178
3182
|
/* @__PURE__ */ e("span", { className: "select-wsswitcher__selector", "aria-hidden": "true", children: /* @__PURE__ */ e(jn, {}) })
|
|
3179
3183
|
] });
|
|
3180
|
-
}),
|
|
3184
|
+
}), es = 220;
|
|
3181
3185
|
function It({
|
|
3182
3186
|
open: t,
|
|
3183
3187
|
onClose: n,
|
|
@@ -3200,7 +3204,7 @@ function It({
|
|
|
3200
3204
|
y(!0);
|
|
3201
3205
|
const _ = setTimeout(() => {
|
|
3202
3206
|
g(!1), y(!1);
|
|
3203
|
-
},
|
|
3207
|
+
}, es);
|
|
3204
3208
|
return () => clearTimeout(_);
|
|
3205
3209
|
}
|
|
3206
3210
|
}, [t, f]), le(() => {
|
|
@@ -3271,7 +3275,7 @@ function E1({
|
|
|
3271
3275
|
o.current && clearTimeout(o.current);
|
|
3272
3276
|
},
|
|
3273
3277
|
[]
|
|
3274
|
-
),
|
|
3278
|
+
), Be(() => {
|
|
3275
3279
|
var $;
|
|
3276
3280
|
if (!s) {
|
|
3277
3281
|
h(null);
|
|
@@ -3322,7 +3326,7 @@ function E1({
|
|
|
3322
3326
|
)
|
|
3323
3327
|
] });
|
|
3324
3328
|
}
|
|
3325
|
-
function
|
|
3329
|
+
function I1({ actions: t, label: n = "Ações" }) {
|
|
3326
3330
|
const [l, c] = D(!1);
|
|
3327
3331
|
return /* @__PURE__ */ e(
|
|
3328
3332
|
Oe,
|
|
@@ -3345,7 +3349,7 @@ function B1({ actions: t, label: n = "Ações" }) {
|
|
|
3345
3349
|
}
|
|
3346
3350
|
);
|
|
3347
3351
|
}
|
|
3348
|
-
function
|
|
3352
|
+
function P1({
|
|
3349
3353
|
open: t,
|
|
3350
3354
|
onClose: n,
|
|
3351
3355
|
onConfirm: l,
|
|
@@ -3383,7 +3387,7 @@ function I1({
|
|
|
3383
3387
|
}
|
|
3384
3388
|
);
|
|
3385
3389
|
}
|
|
3386
|
-
function
|
|
3390
|
+
function R1({
|
|
3387
3391
|
open: t,
|
|
3388
3392
|
onClose: n,
|
|
3389
3393
|
onSubmit: l,
|
|
@@ -3438,14 +3442,14 @@ function P1({
|
|
|
3438
3442
|
}
|
|
3439
3443
|
);
|
|
3440
3444
|
}
|
|
3441
|
-
function
|
|
3445
|
+
function ts(t, n) {
|
|
3442
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 = [];
|
|
3443
3447
|
let a = 0;
|
|
3444
3448
|
for (const r of c)
|
|
3445
3449
|
r - a > 1 && s.push("gap"), s.push(r), a = r;
|
|
3446
3450
|
return s;
|
|
3447
3451
|
}
|
|
3448
|
-
function
|
|
3452
|
+
function ns(t, n, l, c, s, a) {
|
|
3449
3453
|
const r = [];
|
|
3450
3454
|
if (t != null)
|
|
3451
3455
|
if (t === 0)
|
|
@@ -3457,8 +3461,8 @@ function ts(t, n, l, c, s, a) {
|
|
|
3457
3461
|
r.push(`${t} ${s}`);
|
|
3458
3462
|
return a && c != null && c > 0 && r.push(`Página ${l} de ${c}`), r.length > 0 ? r.join(" · ") : null;
|
|
3459
3463
|
}
|
|
3460
|
-
const
|
|
3461
|
-
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, _);
|
|
3462
3466
|
return /* @__PURE__ */ m("nav", { ref: g, ...f, className: `select-pagination${u ? " " + u : ""}`, "aria-label": "Paginação", children: [
|
|
3463
3467
|
/* @__PURE__ */ m("div", { className: "select-pagination__controls", children: [
|
|
3464
3468
|
/* @__PURE__ */ e(
|
|
@@ -3499,8 +3503,8 @@ const ns = R(function({ page: n, pageCount: l, total: c, pageSize: s, hasPreviou
|
|
|
3499
3503
|
] }),
|
|
3500
3504
|
b != null && /* @__PURE__ */ e("p", { className: "select-pagination__count", children: b })
|
|
3501
3505
|
] });
|
|
3502
|
-
}),
|
|
3503
|
-
function
|
|
3506
|
+
}), D1 = "9.5rem", qt = "select-datatable:hidden-cols:";
|
|
3507
|
+
function cs(t) {
|
|
3504
3508
|
try {
|
|
3505
3509
|
const n = localStorage.getItem(qt + t), l = n ? JSON.parse(n) : null;
|
|
3506
3510
|
return Array.isArray(l) ? l.filter((c) => typeof c == "string") : [];
|
|
@@ -3508,7 +3512,7 @@ function ls(t) {
|
|
|
3508
3512
|
return [];
|
|
3509
3513
|
}
|
|
3510
3514
|
}
|
|
3511
|
-
function
|
|
3515
|
+
function ss(t, n) {
|
|
3512
3516
|
try {
|
|
3513
3517
|
n.length === 0 ? localStorage.removeItem(qt + t) : localStorage.setItem(qt + t, JSON.stringify(n));
|
|
3514
3518
|
} catch {
|
|
@@ -3518,7 +3522,7 @@ function yn(t) {
|
|
|
3518
3522
|
return t.hideable ?? !!t.title;
|
|
3519
3523
|
}
|
|
3520
3524
|
const Nn = "select-datatable:page-size:";
|
|
3521
|
-
function
|
|
3525
|
+
function T1(t, n, l) {
|
|
3522
3526
|
const [c, s] = D(() => {
|
|
3523
3527
|
try {
|
|
3524
3528
|
const r = Number(localStorage.getItem(Nn + t));
|
|
@@ -3535,11 +3539,11 @@ function D1(t, n, l) {
|
|
|
3535
3539
|
}
|
|
3536
3540
|
}];
|
|
3537
3541
|
}
|
|
3538
|
-
function
|
|
3542
|
+
function as(t, n, l) {
|
|
3539
3543
|
const c = t == null || t === "", s = n == null || n === "";
|
|
3540
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" });
|
|
3541
3545
|
}
|
|
3542
|
-
function
|
|
3546
|
+
function W1({
|
|
3543
3547
|
columns: t,
|
|
3544
3548
|
items: n,
|
|
3545
3549
|
getId: l,
|
|
@@ -3552,21 +3556,21 @@ function T1({
|
|
|
3552
3556
|
filters: i,
|
|
3553
3557
|
columnsKey: h
|
|
3554
3558
|
}) {
|
|
3555
|
-
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) => {
|
|
3556
3560
|
f((O) => {
|
|
3557
3561
|
const W = !O.includes(I.key), Z = W ? [...O, I.key] : O.filter((G) => G !== I.key);
|
|
3558
|
-
return h &&
|
|
3562
|
+
return h && ss(h, Z), W && w((G) => G && G.key === I.key ? null : G), Z;
|
|
3559
3563
|
});
|
|
3560
3564
|
}, C = (I) => {
|
|
3561
3565
|
w((O) => {
|
|
3562
3566
|
const W = I.sortDefault ?? "asc";
|
|
3563
3567
|
return !O || O.key !== I.key ? { key: I.key, dir: W } : O.dir === W ? { key: I.key, dir: W === "asc" ? "desc" : "asc" } : null;
|
|
3564
3568
|
});
|
|
3565
|
-
}, 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(() => {
|
|
3566
3570
|
const I = L == null ? void 0 : L.sortValue;
|
|
3567
3571
|
if (!M || !I) return n;
|
|
3568
3572
|
const O = M.dir === "asc" ? 1 : -1;
|
|
3569
|
-
return [...n].sort((W, Z) =>
|
|
3573
|
+
return [...n].sort((W, Z) => as(I(W), I(Z), O));
|
|
3570
3574
|
}, [n, M, L]), A = S.map((I) => ({
|
|
3571
3575
|
label: I.title,
|
|
3572
3576
|
align: I.align,
|
|
@@ -3574,7 +3578,7 @@ function T1({
|
|
|
3574
3578
|
sortable: !!I.sortValue,
|
|
3575
3579
|
sortDir: (M == null ? void 0 : M.key) === I.key ? M.dir : null,
|
|
3576
3580
|
onSort: I.sortValue ? () => C(I) : void 0
|
|
3577
|
-
})), 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(
|
|
3578
3582
|
Oe,
|
|
3579
3583
|
{
|
|
3580
3584
|
active: g,
|
|
@@ -3614,10 +3618,10 @@ function T1({
|
|
|
3614
3618
|
}
|
|
3615
3619
|
) : null;
|
|
3616
3620
|
return /* @__PURE__ */ m("div", { className: "select-datatable", children: [
|
|
3617
|
-
/* @__PURE__ */ e(
|
|
3621
|
+
/* @__PURE__ */ e(zc, { columns: A, empty: F, title: d, filters: i, action: E ? /* @__PURE__ */ m("span", { className: "select-datatable__toolbar", children: [
|
|
3618
3622
|
o,
|
|
3619
|
-
|
|
3620
|
-
] }) : 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))) }),
|
|
3621
3625
|
a && /* @__PURE__ */ m("div", { className: "select-datatable__pagination", children: [
|
|
3622
3626
|
a.pageSizeOptions && a.pageSizeOptions.length > 1 && a.onPageSizeChange && /* @__PURE__ */ e("div", { className: "select-datatable__pagesize", children: /* @__PURE__ */ e(
|
|
3623
3627
|
Oe,
|
|
@@ -3670,7 +3674,7 @@ function T1({
|
|
|
3670
3674
|
}
|
|
3671
3675
|
) }),
|
|
3672
3676
|
/* @__PURE__ */ e(
|
|
3673
|
-
|
|
3677
|
+
ls,
|
|
3674
3678
|
{
|
|
3675
3679
|
page: a.page ?? 1,
|
|
3676
3680
|
pageCount: a.pageCount,
|
|
@@ -3687,7 +3691,7 @@ function T1({
|
|
|
3687
3691
|
] })
|
|
3688
3692
|
] });
|
|
3689
3693
|
}
|
|
3690
|
-
const
|
|
3694
|
+
const os = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"], rs = [
|
|
3691
3695
|
"Janeiro",
|
|
3692
3696
|
"Fevereiro",
|
|
3693
3697
|
"Março",
|
|
@@ -3701,7 +3705,7 @@ const as = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"], os = [
|
|
|
3701
3705
|
"Novembro",
|
|
3702
3706
|
"Dezembro"
|
|
3703
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();
|
|
3704
|
-
function
|
|
3708
|
+
function is(t) {
|
|
3705
3709
|
const n = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(t || "");
|
|
3706
3710
|
return n ? new Date(Number(n[1]), Number(n[2]) - 1, Number(n[3]), Number(n[4] ?? 0), Number(n[5] ?? 0)) : null;
|
|
3707
3711
|
}
|
|
@@ -3709,14 +3713,14 @@ function wn(t, n) {
|
|
|
3709
3713
|
const l = `${t.getFullYear()}-${De(t.getMonth() + 1)}-${De(t.getDate())}`;
|
|
3710
3714
|
return n ? `${l}T${De(t.getHours())}:${De(t.getMinutes())}` : l;
|
|
3711
3715
|
}
|
|
3712
|
-
function
|
|
3716
|
+
function ds(t, n) {
|
|
3713
3717
|
const l = `${De(t.getDate())}/${De(t.getMonth() + 1)}/${t.getFullYear()}`;
|
|
3714
3718
|
return n ? `${l} ${De(t.getHours())}:${De(t.getMinutes())}` : l;
|
|
3715
3719
|
}
|
|
3716
|
-
const
|
|
3717
|
-
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 = () => {
|
|
3718
3722
|
d || (M(vt(S ?? /* @__PURE__ */ new Date())), b((W) => !W));
|
|
3719
|
-
},
|
|
3723
|
+
}, E = (W) => {
|
|
3720
3724
|
if (C(W)) return;
|
|
3721
3725
|
const Z = new Date(W);
|
|
3722
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);
|
|
@@ -3737,7 +3741,7 @@ const ds = R(function({ label: n, value: l, onChange: c, showTime: s = !1, place
|
|
|
3737
3741
|
"aria-haspopup": "dialog",
|
|
3738
3742
|
"aria-expanded": p,
|
|
3739
3743
|
"aria-invalid": o ? !0 : void 0,
|
|
3740
|
-
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") })
|
|
3741
3745
|
}
|
|
3742
3746
|
),
|
|
3743
3747
|
/* @__PURE__ */ e("span", { className: "select-datefield__icon", "aria-hidden": "true", children: /* @__PURE__ */ e(qn, {}) })
|
|
@@ -3748,17 +3752,17 @@ const ds = R(function({ label: n, value: l, onChange: c, showTime: s = !1, place
|
|
|
3748
3752
|
/* @__PURE__ */ m("div", { className: "select-datepicker__calhead", children: [
|
|
3749
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, {}) }),
|
|
3750
3754
|
/* @__PURE__ */ m("span", { className: "select-datepicker__monthlabel", children: [
|
|
3751
|
-
|
|
3755
|
+
rs[k.getMonth()],
|
|
3752
3756
|
" ",
|
|
3753
3757
|
k.getFullYear()
|
|
3754
3758
|
] }),
|
|
3755
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, {}) })
|
|
3756
3760
|
] }),
|
|
3757
3761
|
/* @__PURE__ */ m("div", { className: "select-datepicker__grid", role: "grid", children: [
|
|
3758
|
-
|
|
3759
|
-
|
|
3762
|
+
os.map((W) => /* @__PURE__ */ e("div", { className: "select-datepicker__weekday", children: W }, W)),
|
|
3763
|
+
B.map((W) => {
|
|
3760
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" : "");
|
|
3761
|
-
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());
|
|
3762
3766
|
})
|
|
3763
3767
|
] }),
|
|
3764
3768
|
s && /* @__PURE__ */ m("div", { className: "select-datefield__time", children: [
|
|
@@ -3777,7 +3781,7 @@ const ds = R(function({ label: n, value: l, onChange: c, showTime: s = !1, place
|
|
|
3777
3781
|
/* @__PURE__ */ m("div", { className: "select-datefield__footer", children: [
|
|
3778
3782
|
f && S ? /* @__PURE__ */ e(ve, { variant: "secondary", inline: !0, onClick: I, children: "Limpar" }) : /* @__PURE__ */ e("span", {}),
|
|
3779
3783
|
/* @__PURE__ */ m("div", { className: "select-datefield__footer-right", children: [
|
|
3780
|
-
/* @__PURE__ */ e(ve, { variant: "secondary", inline: !0, onClick: () =>
|
|
3784
|
+
/* @__PURE__ */ e(ve, { variant: "secondary", inline: !0, onClick: () => E(A), children: "Hoje" }),
|
|
3781
3785
|
s && /* @__PURE__ */ e(ve, { variant: "primary", inline: !0, onClick: () => b(!1), children: "Concluir" })
|
|
3782
3786
|
] })
|
|
3783
3787
|
] })
|
|
@@ -3789,7 +3793,7 @@ function fl(t, n) {
|
|
|
3789
3793
|
var l, c;
|
|
3790
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;
|
|
3791
3795
|
}
|
|
3792
|
-
function
|
|
3796
|
+
function hs({
|
|
3793
3797
|
filter: t,
|
|
3794
3798
|
value: n,
|
|
3795
3799
|
onChange: l,
|
|
@@ -3846,7 +3850,7 @@ function us({
|
|
|
3846
3850
|
v.value
|
|
3847
3851
|
);
|
|
3848
3852
|
}) })
|
|
3849
|
-
] }) : 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(
|
|
3850
3854
|
"div",
|
|
3851
3855
|
{
|
|
3852
3856
|
className: "select-facet__field",
|
|
@@ -3871,7 +3875,7 @@ function us({
|
|
|
3871
3875
|
}
|
|
3872
3876
|
);
|
|
3873
3877
|
}
|
|
3874
|
-
const
|
|
3878
|
+
const O1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, search: a, disabled: r, className: d, ...o }, i) {
|
|
3875
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 = () => {
|
|
3876
3880
|
u([]), g(null), s();
|
|
3877
3881
|
}, k = (M) => {
|
|
@@ -3904,7 +3908,7 @@ const W1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
3904
3908
|
)
|
|
3905
3909
|
] }),
|
|
3906
3910
|
_.map((M) => /* @__PURE__ */ e(
|
|
3907
|
-
|
|
3911
|
+
hs,
|
|
3908
3912
|
{
|
|
3909
3913
|
filter: M,
|
|
3910
3914
|
value: l[M.key] ?? "",
|
|
@@ -3969,7 +3973,7 @@ const W1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
3969
3973
|
/* @__PURE__ */ e("button", { type: "button", className: "select-filterbar__clear", onClick: S, children: "Limpar tudo" })
|
|
3970
3974
|
] })
|
|
3971
3975
|
] });
|
|
3972
|
-
}),
|
|
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) {
|
|
3973
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);
|
|
3974
3978
|
return /* @__PURE__ */ m("div", { ref: f, ...u, className: `select-field${i === "sm" ? " select-field--sm" : ""}${h ? " " + h : ""}`, children: [
|
|
3975
3979
|
n && /* @__PURE__ */ e("div", { className: "select-field__labelrow", children: /* @__PURE__ */ e("span", { className: "select-field__label", children: n }) }),
|
|
@@ -4044,7 +4048,7 @@ const W1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4044
4048
|
),
|
|
4045
4049
|
d ? /* @__PURE__ */ e("p", { className: "select-field__error", children: d }) : r ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: r }) : null
|
|
4046
4050
|
] });
|
|
4047
|
-
}),
|
|
4051
|
+
}), j1 = R(function({ title: n, description: l, headerAction: c, footer: s, children: a, flush: r = !1, className: d, ...o }, i) {
|
|
4048
4052
|
return /* @__PURE__ */ m("div", { ref: i, ...o, className: `select-surface${d ? " " + d : ""}`, children: [
|
|
4049
4053
|
(n || l || c) && /* @__PURE__ */ m("div", { className: "select-surface__header", children: [
|
|
4050
4054
|
/* @__PURE__ */ m("div", { className: "select-surface__heading", children: [
|
|
@@ -4056,19 +4060,19 @@ const W1 = R(function({ filters: n, values: l, onChange: c, onClearAll: s, searc
|
|
|
4056
4060
|
/* @__PURE__ */ e("div", { className: `select-surface__body${r ? " select-surface__body--flush" : ""}`, children: a }),
|
|
4057
4061
|
s && /* @__PURE__ */ e("div", { className: "select-surface__footer", children: s })
|
|
4058
4062
|
] });
|
|
4059
|
-
}), _l = Xt(null),
|
|
4060
|
-
function
|
|
4063
|
+
}), _l = Xt(null), ps = 220, ms = 4e3, fs = 8, _s = 0.04, vs = 5;
|
|
4064
|
+
function V1({ children: t }) {
|
|
4061
4065
|
const [n, l] = D([]), c = q(0), s = q(/* @__PURE__ */ new Map()), a = Te((i) => {
|
|
4062
4066
|
l((h) => h.filter((u) => u.id !== i)), s.current.delete(i);
|
|
4063
4067
|
}, []), r = Te(
|
|
4064
4068
|
(i) => {
|
|
4065
4069
|
const h = s.current.get(i);
|
|
4066
|
-
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));
|
|
4067
4071
|
},
|
|
4068
4072
|
[a]
|
|
4069
4073
|
), d = Te(
|
|
4070
4074
|
(i, h) => {
|
|
4071
|
-
const u = ++c.current, f = (h == null ? void 0 : h.duration) ??
|
|
4075
|
+
const u = ++c.current, f = (h == null ? void 0 : h.duration) ?? ms;
|
|
4072
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));
|
|
4073
4077
|
},
|
|
4074
4078
|
[r]
|
|
@@ -4092,8 +4096,8 @@ function j1({ children: t }) {
|
|
|
4092
4096
|
t,
|
|
4093
4097
|
n.length > 0 && Ft(
|
|
4094
4098
|
/* @__PURE__ */ e("div", { className: "select select-toasts", role: "region", "aria-live": "polite", "aria-label": "Notificações", children: n.map((i, h) => {
|
|
4095
|
-
const u = n.length - 1 - h, f = i.exiting || u >=
|
|
4096
|
-
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})`,
|
|
4097
4101
|
opacity: f ? 0 : 1,
|
|
4098
4102
|
zIndex: 1e3 - u,
|
|
4099
4103
|
pointerEvents: u === 0 && !i.exiting ? "auto" : "none"
|
|
@@ -4107,12 +4111,12 @@ function j1({ children: t }) {
|
|
|
4107
4111
|
)
|
|
4108
4112
|
] });
|
|
4109
4113
|
}
|
|
4110
|
-
function
|
|
4114
|
+
function Z1() {
|
|
4111
4115
|
const t = zt(_l);
|
|
4112
4116
|
if (!t) throw new Error("useSelectToast must be used within a SelectToastProvider");
|
|
4113
4117
|
return t;
|
|
4114
4118
|
}
|
|
4115
|
-
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) {
|
|
4116
4120
|
const [h, u] = D(s), [f, g] = D(0), [v, y] = D(!0), x = n ? `${n}${n.includes("?") ? "&" : "?"}_pv=${f}` : "", $ = () => {
|
|
4117
4121
|
y(!0), g((_) => _ + 1);
|
|
4118
4122
|
};
|
|
@@ -4157,7 +4161,7 @@ const vs = { desktop: "100%", mobile: 390 }, Z1 = R(function({ src: n, title: l
|
|
|
4157
4161
|
)
|
|
4158
4162
|
] })
|
|
4159
4163
|
] }),
|
|
4160
|
-
/* @__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: [
|
|
4161
4165
|
v && /* @__PURE__ */ e("div", { className: "select-preview__loading", children: /* @__PURE__ */ e(Oc, {}) }),
|
|
4162
4166
|
/* @__PURE__ */ e(
|
|
4163
4167
|
"iframe",
|
|
@@ -4171,18 +4175,18 @@ const vs = { desktop: "100%", mobile: 390 }, Z1 = R(function({ src: n, title: l
|
|
|
4171
4175
|
)
|
|
4172
4176
|
] }) : /* @__PURE__ */ e("p", { className: "select-preview__empty", children: r }) })
|
|
4173
4177
|
] });
|
|
4174
|
-
}),
|
|
4175
|
-
function
|
|
4178
|
+
}), bs = new Intl.NumberFormat("pt-BR", { style: "currency", currency: "BRL" });
|
|
4179
|
+
function xs(t) {
|
|
4176
4180
|
const n = typeof t == "string" ? Number(t) : t;
|
|
4177
4181
|
return typeof n == "number" && Number.isFinite(n) ? n : 0;
|
|
4178
4182
|
}
|
|
4179
|
-
function
|
|
4180
|
-
return
|
|
4183
|
+
function ys(t) {
|
|
4184
|
+
return bs.format(xs(t) / 100);
|
|
4181
4185
|
}
|
|
4182
|
-
const vl = "sw:hide-money",
|
|
4186
|
+
const vl = "sw:hide-money", Ns = { hidden: !1, toggle: () => {
|
|
4183
4187
|
}, setHidden: () => {
|
|
4184
4188
|
} }, gl = Xt(null);
|
|
4185
|
-
function
|
|
4189
|
+
function Ms() {
|
|
4186
4190
|
try {
|
|
4187
4191
|
return localStorage.getItem(vl) === "1";
|
|
4188
4192
|
} catch {
|
|
@@ -4195,8 +4199,8 @@ function Sn(t) {
|
|
|
4195
4199
|
} catch {
|
|
4196
4200
|
}
|
|
4197
4201
|
}
|
|
4198
|
-
function
|
|
4199
|
-
const [n, l] = D(
|
|
4202
|
+
function U1({ children: t }) {
|
|
4203
|
+
const [n, l] = D(Ms), c = Te((r) => {
|
|
4200
4204
|
l(r), Sn(r);
|
|
4201
4205
|
}, []), s = Te(() => {
|
|
4202
4206
|
l((r) => {
|
|
@@ -4207,9 +4211,9 @@ function G1({ children: t }) {
|
|
|
4207
4211
|
return /* @__PURE__ */ e(gl.Provider, { value: a, children: t });
|
|
4208
4212
|
}
|
|
4209
4213
|
function bl() {
|
|
4210
|
-
return zt(gl) ??
|
|
4214
|
+
return zt(gl) ?? Ns;
|
|
4211
4215
|
}
|
|
4212
|
-
const
|
|
4216
|
+
const $s = R(function({ children: n, label: l = "valor oculto", className: c, ...s }, a) {
|
|
4213
4217
|
const { hidden: r } = bl();
|
|
4214
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 });
|
|
4215
4219
|
});
|
|
@@ -4217,14 +4221,14 @@ function at({
|
|
|
4217
4221
|
cents: t,
|
|
4218
4222
|
sensitive: n = !0
|
|
4219
4223
|
}) {
|
|
4220
|
-
const l =
|
|
4221
|
-
return n ? /* @__PURE__ */ e(
|
|
4224
|
+
const l = ys(t);
|
|
4225
|
+
return n ? /* @__PURE__ */ e($s, { children: l }) : /* @__PURE__ */ e(_e, { children: l });
|
|
4222
4226
|
}
|
|
4223
|
-
const
|
|
4227
|
+
const ks = new Intl.NumberFormat("pt-BR", {
|
|
4224
4228
|
signDisplay: "exceptZero",
|
|
4225
4229
|
minimumFractionDigits: 1,
|
|
4226
4230
|
maximumFractionDigits: 1
|
|
4227
|
-
}),
|
|
4231
|
+
}), ws = R(function({ value: n, invert: l = !1, caption: c, className: s, ...a }, r) {
|
|
4228
4232
|
if (n == null || !Number.isFinite(n))
|
|
4229
4233
|
return /* @__PURE__ */ m("span", { ref: r, ...a, className: `select-delta select-delta--muted${s ? " " + s : ""}`, children: [
|
|
4230
4234
|
"—",
|
|
@@ -4234,13 +4238,13 @@ const $s = new Intl.NumberFormat("pt-BR", {
|
|
|
4234
4238
|
return /* @__PURE__ */ m("span", { ref: r, ...a, className: `select-delta${s ? " " + s : ""}`, children: [
|
|
4235
4239
|
/* @__PURE__ */ m("span", { className: `select-delta__value select-delta__value--${h}`, children: [
|
|
4236
4240
|
u ? `${u} ` : "",
|
|
4237
|
-
|
|
4241
|
+
ks.format(n),
|
|
4238
4242
|
"%"
|
|
4239
4243
|
] }),
|
|
4240
4244
|
c != null && /* @__PURE__ */ e("span", { className: "select-delta__caption", children: c })
|
|
4241
4245
|
] });
|
|
4242
4246
|
});
|
|
4243
|
-
function
|
|
4247
|
+
function q1() {
|
|
4244
4248
|
const { hidden: t, toggle: n } = bl();
|
|
4245
4249
|
return /* @__PURE__ */ e(
|
|
4246
4250
|
ge,
|
|
@@ -4253,7 +4257,7 @@ function U1() {
|
|
|
4253
4257
|
}
|
|
4254
4258
|
);
|
|
4255
4259
|
}
|
|
4256
|
-
const
|
|
4260
|
+
const Y1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponível", delta: c, buckets: s = [], action: a, className: r, ...d }, o) {
|
|
4257
4261
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-balance${r ? " " + r : ""}`, children: [
|
|
4258
4262
|
/* @__PURE__ */ m("div", { className: "select-balance__head", children: [
|
|
4259
4263
|
/* @__PURE__ */ e("h3", { className: "select-balance__title", children: l }),
|
|
@@ -4273,7 +4277,7 @@ const q1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4273
4277
|
/* @__PURE__ */ m("div", { className: "select-balance__body", children: [
|
|
4274
4278
|
/* @__PURE__ */ m("div", { className: "select-balance__heromain", children: [
|
|
4275
4279
|
/* @__PURE__ */ e("span", { className: "select-balance__heroamount", children: /* @__PURE__ */ e(at, { cents: n }) }),
|
|
4276
|
-
c != null && /* @__PURE__ */ e(
|
|
4280
|
+
c != null && /* @__PURE__ */ e(ws, { value: c, caption: "vs. período anterior" })
|
|
4277
4281
|
] }),
|
|
4278
4282
|
s.length > 0 && /* @__PURE__ */ e("div", { className: "select-balance__buckets", children: s.map((i) => /* @__PURE__ */ m("div", { className: "select-balance__bucket", children: [
|
|
4279
4283
|
i.icon && /* @__PURE__ */ e("span", { className: "select-balance__bucketicon", children: i.icon }),
|
|
@@ -4284,7 +4288,7 @@ const q1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4284
4288
|
] }, i.label)) })
|
|
4285
4289
|
] })
|
|
4286
4290
|
] });
|
|
4287
|
-
}),
|
|
4291
|
+
}), z1 = R(function({ grossCents: n, fees: l, netCents: c, grossLabel: s = "Valor bruto", netLabel: a = "Valor líquido", className: r, ...d }, o) {
|
|
4288
4292
|
const i = c ?? n - l.reduce((h, u) => h + u.cents, 0);
|
|
4289
4293
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-fees${r ? " " + r : ""}`, children: [
|
|
4290
4294
|
/* @__PURE__ */ m("div", { className: "select-fees__row", children: [
|
|
@@ -4304,14 +4308,14 @@ const q1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4304
4308
|
/* @__PURE__ */ e("span", { className: "select-fees__netvalue", children: /* @__PURE__ */ e(at, { cents: i }) })
|
|
4305
4309
|
] })
|
|
4306
4310
|
] });
|
|
4307
|
-
}),
|
|
4311
|
+
}), X1 = R(function({ label: n, value: l, caption: c, chart: s, tone: a, bare: r = !1, className: d, ...o }, i) {
|
|
4308
4312
|
return /* @__PURE__ */ m("div", { ref: i, ...o, className: `select-kpi${r ? " select-kpi--bare" : ""}${d ? " " + d : ""}`, children: [
|
|
4309
4313
|
/* @__PURE__ */ e("span", { className: "select-kpi__label", children: n }),
|
|
4310
4314
|
/* @__PURE__ */ e("span", { className: `select-kpi__value${a ? ` select-kpi__value--${a}` : ""}`, children: l }),
|
|
4311
4315
|
s != null && /* @__PURE__ */ e("div", { className: "select-kpi__chart", children: s }),
|
|
4312
4316
|
c != null && /* @__PURE__ */ e("span", { className: "select-kpi__caption", children: c })
|
|
4313
4317
|
] });
|
|
4314
|
-
}),
|
|
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) {
|
|
4315
4319
|
const f = r === "auto" ? void 0 : `${r / 16}rem`, g = r === "auto" ? "10rem" : `${r / 16}rem`;
|
|
4316
4320
|
return /* @__PURE__ */ m("div", { ref: u, ...h, className: `select-chartcard${i ? " " + i : ""}`, children: [
|
|
4317
4321
|
(n || c || l) && /* @__PURE__ */ m("div", { className: "select-chartcard__head", children: [
|
|
@@ -4331,9 +4335,9 @@ const q1 = R(function({ availableCents: n, availableLabel: l = "Saldo disponíve
|
|
|
4331
4335
|
)
|
|
4332
4336
|
] });
|
|
4333
4337
|
});
|
|
4334
|
-
function
|
|
4338
|
+
function Ss() {
|
|
4335
4339
|
const [t, n] = D(1);
|
|
4336
|
-
return
|
|
4340
|
+
return Be(() => {
|
|
4337
4341
|
const l = () => {
|
|
4338
4342
|
const c = parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
4339
4343
|
c && n(c / 16);
|
|
@@ -4342,8 +4346,8 @@ function ws() {
|
|
|
4342
4346
|
}, []), t;
|
|
4343
4347
|
}
|
|
4344
4348
|
function ce(t) {
|
|
4345
|
-
const n = q(null), [l, c] = D(0), s =
|
|
4346
|
-
return
|
|
4349
|
+
const n = q(null), [l, c] = D(0), s = Ss();
|
|
4350
|
+
return Be(() => {
|
|
4347
4351
|
const a = n.current;
|
|
4348
4352
|
if (!a) return;
|
|
4349
4353
|
c(a.clientWidth);
|
|
@@ -4357,7 +4361,7 @@ function ce(t) {
|
|
|
4357
4361
|
}
|
|
4358
4362
|
function Ct(t, n) {
|
|
4359
4363
|
const [l, c] = D(n);
|
|
4360
|
-
return
|
|
4364
|
+
return Be(() => {
|
|
4361
4365
|
const s = t.current;
|
|
4362
4366
|
if (!s) return;
|
|
4363
4367
|
const a = () => {
|
|
@@ -4377,7 +4381,7 @@ function ye(t) {
|
|
|
4377
4381
|
function we(t, n = 4) {
|
|
4378
4382
|
return Array.from({ length: n + 1 }, (l, c) => t / n * c);
|
|
4379
4383
|
}
|
|
4380
|
-
function
|
|
4384
|
+
function Cs(t, n = 5) {
|
|
4381
4385
|
if (!(t > 0)) return { max: 1, values: [0, 1] };
|
|
4382
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 = [];
|
|
4383
4387
|
for (let o = 0; o <= r + a / 2; o += a) d.push(Math.round(o * 1e6) / 1e6);
|
|
@@ -4444,8 +4448,8 @@ function Y(t) {
|
|
|
4444
4448
|
const n = Math.abs(t);
|
|
4445
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));
|
|
4446
4450
|
}
|
|
4447
|
-
const
|
|
4448
|
-
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 }) {
|
|
4449
4453
|
const { ref: a, width: r } = ce(l), d = n ?? j(0), o = te(), i = 4;
|
|
4450
4454
|
let h = null;
|
|
4451
4455
|
if (r > 0 && t.length > 1) {
|
|
@@ -4483,7 +4487,7 @@ function X() {
|
|
|
4483
4487
|
}
|
|
4484
4488
|
function K({ tip: t, className: n, ...l }) {
|
|
4485
4489
|
const c = q(null), [s, a] = D(0);
|
|
4486
|
-
if (
|
|
4490
|
+
if (Be(() => {
|
|
4487
4491
|
if (!t) return;
|
|
4488
4492
|
const d = c.current, o = d == null ? void 0 : d.offsetParent;
|
|
4489
4493
|
if (!d || !o) return;
|
|
@@ -4505,8 +4509,8 @@ function K({ tip: t, className: n, ...l }) {
|
|
|
4505
4509
|
] }, o))
|
|
4506
4510
|
] });
|
|
4507
4511
|
}
|
|
4508
|
-
function
|
|
4509
|
-
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;
|
|
4510
4514
|
return /* @__PURE__ */ m("div", { ...a, className: `select-chart-wrap${s ? " " + s : ""}`, ref: r, children: [
|
|
4511
4515
|
d > 0 && /* @__PURE__ */ m("svg", { width: d, height: n, className: "select-chart", children: [
|
|
4512
4516
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ m("linearGradient", { id: `${i}-bar`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
@@ -4556,8 +4560,8 @@ function J1({ data: t, height: n = 240, color: l, format: c = Y, className: s, .
|
|
|
4556
4560
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
4557
4561
|
] });
|
|
4558
4562
|
}
|
|
4559
|
-
function
|
|
4560
|
-
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 + $;
|
|
4561
4565
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: d, children: [
|
|
4562
4566
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: l, className: "select-chart", children: [
|
|
4563
4567
|
/* @__PURE__ */ e("defs", { children: t.map((w, N) => {
|
|
@@ -4582,7 +4586,7 @@ function Q1({ series: t, labels: n, height: l = 240, format: c = Y, area: s = !1
|
|
|
4582
4586
|
] }, N)),
|
|
4583
4587
|
u != null && /* @__PURE__ */ e("line", { x1: p(u), x2: p(u), y1: y.top, y2: M, className: "select-chart__crosshair" }),
|
|
4584
4588
|
t.map((w, N) => {
|
|
4585
|
-
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)]);
|
|
4586
4590
|
return /* @__PURE__ */ m("g", { children: [
|
|
4587
4591
|
s && /* @__PURE__ */ e("path", { d: xl(L, M), fill: `url(#${h}-a${N})`, className: "select-chart__area" }),
|
|
4588
4592
|
/* @__PURE__ */ e(
|
|
@@ -4630,7 +4634,7 @@ function Q1({ series: t, labels: n, height: l = 240, format: c = Y, area: s = !1
|
|
|
4630
4634
|
y: C,
|
|
4631
4635
|
place: C < y.top + 52 ? "bottom" : "top",
|
|
4632
4636
|
title: w,
|
|
4633
|
-
rows: t.map((L,
|
|
4637
|
+
rows: t.map((L, B) => ({ label: L.name, value: c(L.data[N] ?? 0), color: L.color ?? j(B) }))
|
|
4634
4638
|
});
|
|
4635
4639
|
},
|
|
4636
4640
|
onMouseLeave: () => {
|
|
@@ -4643,10 +4647,10 @@ function Q1({ series: t, labels: n, height: l = 240, format: c = Y, area: s = !1
|
|
|
4643
4647
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
4644
4648
|
] });
|
|
4645
4649
|
}
|
|
4646
|
-
function
|
|
4650
|
+
function to({ series: t, labels: n, height: l = 240, format: c = Y, className: s, ...a }) {
|
|
4647
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(
|
|
4648
4652
|
(N) => N.data.map((C, L) => (g[L] = (g[L] ?? 0) + (C ?? 0), g[L]))
|
|
4649
|
-
), 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];
|
|
4650
4654
|
return /* @__PURE__ */ m("div", { ...a, className: `select-chart-wrap${s ? " " + s : ""}`, ref: r, children: [
|
|
4651
4655
|
d > 0 && /* @__PURE__ */ m("svg", { width: d, height: l, className: "select-chart", children: [
|
|
4652
4656
|
/* @__PURE__ */ e("defs", { children: t.map((N, C) => {
|
|
@@ -4670,10 +4674,10 @@ function eo({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
4670
4674
|
/* @__PURE__ */ e("text", { x: x.left - 8, y: b(N), className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: c(N) })
|
|
4671
4675
|
] }, C)),
|
|
4672
4676
|
t.map((N, C) => {
|
|
4673
|
-
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)]);
|
|
4674
4678
|
return /* @__PURE__ */ m("g", { className: "select-chart__area", children: [
|
|
4675
|
-
/* @__PURE__ */ e("path", { d: yl(
|
|
4676
|
-
/* @__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" })
|
|
4677
4681
|
] }, C);
|
|
4678
4682
|
}),
|
|
4679
4683
|
h != null && /* @__PURE__ */ e("line", { x1: p(h), x2: p(h), y1: x.top, y2: M, className: "select-chart__crosshair" }),
|
|
@@ -4696,7 +4700,7 @@ function eo({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
4696
4700
|
y: L,
|
|
4697
4701
|
place: L < x.top + 52 ? "bottom" : "top",
|
|
4698
4702
|
title: N,
|
|
4699
|
-
rows: t.map((
|
|
4703
|
+
rows: t.map((B, A) => ({ label: B.name, value: c(B.data[C] ?? 0), color: B.color ?? j(A) }))
|
|
4700
4704
|
});
|
|
4701
4705
|
},
|
|
4702
4706
|
onMouseLeave: () => {
|
|
@@ -4709,15 +4713,15 @@ function eo({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
4709
4713
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
4710
4714
|
] });
|
|
4711
4715
|
}
|
|
4712
|
-
function
|
|
4713
|
-
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)]);
|
|
4714
4718
|
return /* @__PURE__ */ m("div", { ...d, className: `select-chart-wrap${r ? " " + r : ""}`, ref: o, children: [
|
|
4715
4719
|
i > 0 && /* @__PURE__ */ m("svg", { width: i, height: c, className: "select-chart", children: [
|
|
4716
4720
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ m("linearGradient", { id: `${u}-bar`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
4717
4721
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: M, stopOpacity: 1 }),
|
|
4718
4722
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: M, stopOpacity: 0.55 })
|
|
4719
4723
|
] }) }),
|
|
4720
|
-
we(_).map((F,
|
|
4724
|
+
we(_).map((F, E) => /* @__PURE__ */ m("g", { children: [
|
|
4721
4725
|
/* @__PURE__ */ e(
|
|
4722
4726
|
"line",
|
|
4723
4727
|
{
|
|
@@ -4725,30 +4729,30 @@ function to({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = Y, fo
|
|
|
4725
4729
|
x2: i - v.right,
|
|
4726
4730
|
y1: C(F),
|
|
4727
4731
|
y2: C(F),
|
|
4728
|
-
className:
|
|
4732
|
+
className: E === 0 ? "select-chart__axis" : "select-chart__grid"
|
|
4729
4733
|
}
|
|
4730
4734
|
),
|
|
4731
4735
|
/* @__PURE__ */ e("text", { x: v.left - 8, y: C(F), className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: s(F) })
|
|
4732
|
-
] },
|
|
4733
|
-
we(p).map((F,
|
|
4734
|
-
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) => {
|
|
4735
4739
|
const T = F / _ * x;
|
|
4736
4740
|
return /* @__PURE__ */ e(
|
|
4737
4741
|
"rect",
|
|
4738
4742
|
{
|
|
4739
|
-
x: E
|
|
4743
|
+
x: B(E) - S / 2,
|
|
4740
4744
|
y: N - T,
|
|
4741
4745
|
width: S,
|
|
4742
4746
|
height: Math.max(0, T),
|
|
4743
4747
|
rx: 5,
|
|
4744
4748
|
fill: `url(#${u}-bar)`,
|
|
4745
4749
|
className: "select-chart__bar",
|
|
4746
|
-
style: { animationDelay: `${
|
|
4750
|
+
style: { animationDelay: `${E * 40}ms` }
|
|
4747
4751
|
},
|
|
4748
|
-
|
|
4752
|
+
E
|
|
4749
4753
|
);
|
|
4750
4754
|
}),
|
|
4751
|
-
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" }),
|
|
4752
4756
|
/* @__PURE__ */ e(
|
|
4753
4757
|
"path",
|
|
4754
4758
|
{
|
|
@@ -4765,7 +4769,7 @@ function to({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = Y, fo
|
|
|
4765
4769
|
f != null && /* @__PURE__ */ e(
|
|
4766
4770
|
"circle",
|
|
4767
4771
|
{
|
|
4768
|
-
cx:
|
|
4772
|
+
cx: B(f),
|
|
4769
4773
|
cy: L(l.data[f] ?? 0),
|
|
4770
4774
|
r: 4,
|
|
4771
4775
|
fill: w,
|
|
@@ -4773,27 +4777,27 @@ function to({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = Y, fo
|
|
|
4773
4777
|
}
|
|
4774
4778
|
),
|
|
4775
4779
|
t.map(
|
|
4776
|
-
(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
|
|
4777
4781
|
),
|
|
4778
|
-
t.map((F,
|
|
4782
|
+
t.map((F, E) => /* @__PURE__ */ e(
|
|
4779
4783
|
"rect",
|
|
4780
4784
|
{
|
|
4781
|
-
x: v.left + b *
|
|
4785
|
+
x: v.left + b * E,
|
|
4782
4786
|
y: v.top,
|
|
4783
4787
|
width: b,
|
|
4784
4788
|
height: x,
|
|
4785
4789
|
fill: "transparent",
|
|
4786
4790
|
onMouseEnter: () => {
|
|
4787
|
-
g(
|
|
4788
|
-
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));
|
|
4789
4793
|
h.show({
|
|
4790
|
-
x: E
|
|
4794
|
+
x: B(E),
|
|
4791
4795
|
y: T,
|
|
4792
4796
|
place: T < v.top + 52 ? "bottom" : "top",
|
|
4793
4797
|
title: F,
|
|
4794
4798
|
rows: [
|
|
4795
|
-
{ label: n.name, value: s(n.data[
|
|
4796
|
-
{ 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 }
|
|
4797
4801
|
]
|
|
4798
4802
|
});
|
|
4799
4803
|
},
|
|
@@ -4801,13 +4805,13 @@ function to({ labels: t, bars: n, line: l, height: c = 240, formatBar: s = Y, fo
|
|
|
4801
4805
|
g(null), h.hide();
|
|
4802
4806
|
}
|
|
4803
4807
|
},
|
|
4804
|
-
`h${
|
|
4808
|
+
`h${E}`
|
|
4805
4809
|
))
|
|
4806
4810
|
] }),
|
|
4807
4811
|
/* @__PURE__ */ e(K, { tip: h.tip })
|
|
4808
4812
|
] });
|
|
4809
4813
|
}
|
|
4810
|
-
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) {
|
|
4811
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;
|
|
4812
4816
|
let S = 0;
|
|
4813
4817
|
return /* @__PURE__ */ m("div", { ref: u, ...h, className: `select-donut-wrap${i ? " " + i : ""}`, children: [
|
|
@@ -4823,7 +4827,7 @@ const no = R(function({ segments: n, size: l = 200, thickness: c = 26, format: s
|
|
|
4823
4827
|
n.map((k, M) => {
|
|
4824
4828
|
const w = S / x * 360;
|
|
4825
4829
|
S += k.value;
|
|
4826
|
-
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);
|
|
4827
4831
|
return /* @__PURE__ */ e(
|
|
4828
4832
|
"path",
|
|
4829
4833
|
{
|
|
@@ -4831,7 +4835,7 @@ const no = R(function({ segments: n, size: l = 200, thickness: c = 26, format: s
|
|
|
4831
4835
|
fill: `url(#${g}-s${M})`,
|
|
4832
4836
|
className: "select-chart__seg",
|
|
4833
4837
|
onMouseEnter: () => {
|
|
4834
|
-
const
|
|
4838
|
+
const E = ((w + N) / 2 - 90) * Math.PI / 180, T = $ + (p + 6) * Math.cos(E), I = _ + (p + 6) * Math.sin(E);
|
|
4835
4839
|
f.show({
|
|
4836
4840
|
x: T,
|
|
4837
4841
|
y: I,
|
|
@@ -4856,8 +4860,8 @@ const no = R(function({ segments: n, size: l = 200, thickness: c = 26, format: s
|
|
|
4856
4860
|
/* @__PURE__ */ e(K, { tip: f.tip })
|
|
4857
4861
|
] });
|
|
4858
4862
|
});
|
|
4859
|
-
function
|
|
4860
|
-
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;
|
|
4861
4865
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: d, children: [
|
|
4862
4866
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: l, className: "select-chart", children: [
|
|
4863
4867
|
/* @__PURE__ */ e("defs", { children: t.map((M, w) => {
|
|
@@ -4884,13 +4888,13 @@ function lo({ series: t, labels: n, height: l = 240, format: c = Y, stacked: s =
|
|
|
4884
4888
|
const N = y.left + p * w;
|
|
4885
4889
|
if (s) {
|
|
4886
4890
|
let L = 0;
|
|
4887
|
-
return /* @__PURE__ */ e("g", { children: t.map((
|
|
4888
|
-
const F = (
|
|
4891
|
+
return /* @__PURE__ */ e("g", { children: t.map((B, A) => {
|
|
4892
|
+
const F = (B.data[w] ?? 0) / v * $, E = _ - L - F;
|
|
4889
4893
|
return L += F, /* @__PURE__ */ e(
|
|
4890
4894
|
"rect",
|
|
4891
4895
|
{
|
|
4892
4896
|
x: N + p / 2 - k / 2,
|
|
4893
|
-
y:
|
|
4897
|
+
y: E,
|
|
4894
4898
|
width: k,
|
|
4895
4899
|
height: Math.max(0, F),
|
|
4896
4900
|
rx: 3,
|
|
@@ -4903,21 +4907,21 @@ function lo({ series: t, labels: n, height: l = 240, format: c = Y, stacked: s =
|
|
|
4903
4907
|
}) }, w);
|
|
4904
4908
|
}
|
|
4905
4909
|
const C = N + (p - S) / 2;
|
|
4906
|
-
return /* @__PURE__ */ e("g", { children: t.map((L,
|
|
4910
|
+
return /* @__PURE__ */ e("g", { children: t.map((L, B) => {
|
|
4907
4911
|
const A = (L.data[w] ?? 0) / v * $;
|
|
4908
4912
|
return /* @__PURE__ */ e(
|
|
4909
4913
|
"rect",
|
|
4910
4914
|
{
|
|
4911
|
-
x: C +
|
|
4915
|
+
x: C + B * k + k * 0.1,
|
|
4912
4916
|
y: _ - A,
|
|
4913
4917
|
width: k * 0.8,
|
|
4914
4918
|
height: Math.max(0, A),
|
|
4915
4919
|
rx: 3,
|
|
4916
|
-
fill: `url(#${h}-c${
|
|
4920
|
+
fill: `url(#${h}-c${B})`,
|
|
4917
4921
|
className: "select-chart__bar",
|
|
4918
|
-
style: { animationDelay: `${(w * f +
|
|
4922
|
+
style: { animationDelay: `${(w * f + B) * 25}ms` }
|
|
4919
4923
|
},
|
|
4920
|
-
|
|
4924
|
+
B
|
|
4921
4925
|
);
|
|
4922
4926
|
}) }, w);
|
|
4923
4927
|
}),
|
|
@@ -4948,7 +4952,7 @@ function lo({ series: t, labels: n, height: l = 240, format: c = Y, stacked: s =
|
|
|
4948
4952
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
4949
4953
|
] });
|
|
4950
4954
|
}
|
|
4951
|
-
const
|
|
4955
|
+
const so = R(function({ stages: n, format: l = Y, className: c, ...s }, a) {
|
|
4952
4956
|
const r = Math.max(1, ...n.map((d) => d.value));
|
|
4953
4957
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-funnel${c ? " " + c : ""}`, children: n.map((d, o) => {
|
|
4954
4958
|
const i = o > 0 ? n[o - 1].value || 1 : d.value || 1, h = o > 0 ? d.value / i * 100 : 100, u = j(o);
|
|
@@ -4974,7 +4978,7 @@ const co = R(function({ stages: n, format: l = Y, className: c, ...s }, a) {
|
|
|
4974
4978
|
] }, o);
|
|
4975
4979
|
}) });
|
|
4976
4980
|
});
|
|
4977
|
-
function
|
|
4981
|
+
function Ls(t) {
|
|
4978
4982
|
return Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0;
|
|
4979
4983
|
}
|
|
4980
4984
|
function An(t, n, l, c) {
|
|
@@ -4985,8 +4989,8 @@ function Fn(t, n, l, c, s) {
|
|
|
4985
4989
|
const [a, r] = An(t, n, l, c), [d, o] = An(t, n, l, s);
|
|
4986
4990
|
return `M ${a.toFixed(2)} ${r.toFixed(2)} A ${l} ${l} 0 0 1 ${d.toFixed(2)} ${o.toFixed(2)}`;
|
|
4987
4991
|
}
|
|
4988
|
-
const
|
|
4989
|
-
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 });
|
|
4990
4994
|
return /* @__PURE__ */ m("div", { ref: h, ...i, className: `select-gauge${o ? " " + o : ""}`, style: { width: `${s / 16}rem` }, children: [
|
|
4991
4995
|
/* @__PURE__ */ m("div", { className: "select-gauge__ring", style: { width: "100%", aspectRatio: `${s} / ${_}` }, children: [
|
|
4992
4996
|
/* @__PURE__ */ m("svg", { width: "100%", height: "100%", viewBox: `0 0 ${s} ${_}`, className: "select-chart", "aria-hidden": "true", children: [
|
|
@@ -5024,7 +5028,7 @@ const Ls = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5024
5028
|
] }),
|
|
5025
5029
|
c != null && /* @__PURE__ */ e("div", { className: "select-gauge__caption", children: c })
|
|
5026
5030
|
] });
|
|
5027
|
-
}),
|
|
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) {
|
|
5028
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 = {
|
|
5029
5033
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${n.length}, minmax(${i}px, ${Math.max(i, h)}px))`,
|
|
5030
5034
|
width: "fit-content",
|
|
@@ -5044,18 +5048,18 @@ const Ls = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5044
5048
|
const C = `${M.label}-${n[N] ?? N}`;
|
|
5045
5049
|
if (w == null || !Number.isFinite(w))
|
|
5046
5050
|
return /* @__PURE__ */ e("div", { className: "select-heatmap__cell select-heatmap__cell--empty", style: k }, C);
|
|
5047
|
-
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);
|
|
5048
5052
|
return /* @__PURE__ */ e(
|
|
5049
5053
|
"div",
|
|
5050
5054
|
{
|
|
5051
5055
|
className: "select-heatmap__cell",
|
|
5052
5056
|
style: {
|
|
5053
5057
|
...k,
|
|
5054
|
-
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))`,
|
|
5055
5059
|
color: L > 0.55 ? "#fff" : "var(--select-text)"
|
|
5056
5060
|
},
|
|
5057
5061
|
onMouseEnter: (F) => {
|
|
5058
|
-
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;
|
|
5059
5063
|
y.show({
|
|
5060
5064
|
x: Z,
|
|
5061
5065
|
y: G,
|
|
@@ -5075,7 +5079,7 @@ const Ls = (t) => `${t.toLocaleString("pt-BR", { maximumFractionDigits: t < 10 ?
|
|
|
5075
5079
|
/* @__PURE__ */ e(K, { tip: y.tip })
|
|
5076
5080
|
] });
|
|
5077
5081
|
});
|
|
5078
|
-
function
|
|
5082
|
+
function ro({
|
|
5079
5083
|
items: t,
|
|
5080
5084
|
format: n = Y,
|
|
5081
5085
|
color: l,
|
|
@@ -5109,7 +5113,7 @@ function oo({
|
|
|
5109
5113
|
] }, `${a.label}-${r}`);
|
|
5110
5114
|
}) });
|
|
5111
5115
|
}
|
|
5112
|
-
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) {
|
|
5113
5117
|
const u = te(), f = l / 2, g = l / 2;
|
|
5114
5118
|
return /* @__PURE__ */ m("div", { ref: h, ...i, className: `select-donut-wrap${o ? " " + o : ""}`, children: [
|
|
5115
5119
|
/* @__PURE__ */ m("div", { className: "select-radial", style: { width: l, aspectRatio: "1" }, children: [
|
|
@@ -5154,36 +5158,36 @@ const Dt = (t) => Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0, ro = R
|
|
|
5154
5158
|
/* @__PURE__ */ e("span", { className: "select-donut__legval", children: a(Dt(v.value)) })
|
|
5155
5159
|
] }, y)) })
|
|
5156
5160
|
] });
|
|
5157
|
-
}),
|
|
5158
|
-
function
|
|
5159
|
-
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,
|
|
5160
|
-
Math.max(
|
|
5161
|
-
Math.max(
|
|
5162
|
-
), 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));
|
|
5163
5167
|
return /* @__PURE__ */ m("div", { ...o, className: `select-chart-wrap${d ? " " + d : ""}`, ref: v, children: [
|
|
5164
5168
|
y > 0 && /* @__PURE__ */ m("svg", { width: y, height: g, className: "select-chart", children: [
|
|
5165
|
-
/* @__PURE__ */ e("defs", { children: t.map((F,
|
|
5166
|
-
const T = A(F,
|
|
5167
|
-
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: [
|
|
5168
5172
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: T, stopOpacity: 1 }),
|
|
5169
5173
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: T, stopOpacity: 0.5 })
|
|
5170
|
-
] },
|
|
5174
|
+
] }, E);
|
|
5171
5175
|
}) }),
|
|
5172
|
-
we(_).map((F,
|
|
5176
|
+
we(_).map((F, E) => /* @__PURE__ */ m("g", { children: [
|
|
5173
5177
|
/* @__PURE__ */ e(
|
|
5174
5178
|
"line",
|
|
5175
5179
|
{
|
|
5176
|
-
x1:
|
|
5177
|
-
x2:
|
|
5180
|
+
x1: B(F),
|
|
5181
|
+
x2: B(F),
|
|
5178
5182
|
y1: 6,
|
|
5179
5183
|
y2: 6 + N,
|
|
5180
|
-
className:
|
|
5184
|
+
className: E === 0 ? "select-chart__axis" : "select-chart__grid"
|
|
5181
5185
|
}
|
|
5182
5186
|
),
|
|
5183
|
-
/* @__PURE__ */ e("text", { x:
|
|
5184
|
-
] },
|
|
5185
|
-
t.map((F,
|
|
5186
|
-
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);
|
|
5187
5191
|
return /* @__PURE__ */ m("g", { children: [
|
|
5188
5192
|
/* @__PURE__ */ e("rect", { x: S, y: T - L / 2, width: w, height: L, rx: 5, className: "select-chart__track-bar" }),
|
|
5189
5193
|
/* @__PURE__ */ e(
|
|
@@ -5194,9 +5198,9 @@ function io({ data: t, height: n, color: l, format: c = Y, formatValue: s, distr
|
|
|
5194
5198
|
width: Math.max(0, I),
|
|
5195
5199
|
height: L,
|
|
5196
5200
|
rx: 5,
|
|
5197
|
-
fill: `url(#${$}-h${
|
|
5201
|
+
fill: `url(#${$}-h${E})`,
|
|
5198
5202
|
className: "select-chart__hbar",
|
|
5199
|
-
style: { animationDelay: `${
|
|
5203
|
+
style: { animationDelay: `${E * 40}ms` },
|
|
5200
5204
|
onMouseEnter: () => x.show({
|
|
5201
5205
|
x: S + I,
|
|
5202
5206
|
y: T - L / 2,
|
|
@@ -5220,13 +5224,13 @@ function io({ data: t, height: n, color: l, format: c = Y, formatValue: s, distr
|
|
|
5220
5224
|
]
|
|
5221
5225
|
}
|
|
5222
5226
|
)
|
|
5223
|
-
] },
|
|
5227
|
+
] }, E);
|
|
5224
5228
|
})
|
|
5225
5229
|
] }),
|
|
5226
5230
|
/* @__PURE__ */ e(K, { tip: x.tip })
|
|
5227
5231
|
] });
|
|
5228
5232
|
}
|
|
5229
|
-
function
|
|
5233
|
+
function ho({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
5230
5234
|
const { ref: a, width: r } = ce(n), d = X(), o = te();
|
|
5231
5235
|
let i = 0;
|
|
5232
5236
|
const h = t.map((k) => {
|
|
@@ -5234,7 +5238,7 @@ function uo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
5234
5238
|
return i = k.value, { ...k, start: 0, end: k.value };
|
|
5235
5239
|
const M = i;
|
|
5236
5240
|
return i += k.value, { ...k, start: M, end: i };
|
|
5237
|
-
}), 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 = {
|
|
5238
5242
|
total: "var(--select-chart-1)",
|
|
5239
5243
|
inc: "var(--select-chart-4)",
|
|
5240
5244
|
dec: "var(--select-chart-3)"
|
|
@@ -5296,7 +5300,7 @@ function uo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
5296
5300
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
5297
5301
|
] });
|
|
5298
5302
|
}
|
|
5299
|
-
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) {
|
|
5300
5304
|
return /* @__PURE__ */ e("div", { ref: a, ...s, className: `select-bullet${c ? " " + c : ""}`, children: n.map((r, d) => {
|
|
5301
5305
|
const o = r.color ?? j(d), i = r.max ?? (Math.max(r.value, r.target) * 1.25 || 1), h = r.value >= r.target;
|
|
5302
5306
|
return /* @__PURE__ */ m("div", { className: "select-bullet__row", children: [
|
|
@@ -5332,7 +5336,7 @@ const In = (t) => Math.max(0, Math.min(100, t)), ho = R(function({ items: n, for
|
|
|
5332
5336
|
] }, `${r.label}-${d}`);
|
|
5333
5337
|
}) });
|
|
5334
5338
|
});
|
|
5335
|
-
function
|
|
5339
|
+
function Bs(t, n, l) {
|
|
5336
5340
|
const c = [], s = (r, d) => {
|
|
5337
5341
|
const o = r.reduce((u, f) => u + f, 0), i = Math.max(...r), h = Math.min(...r);
|
|
5338
5342
|
return Math.max(d * d * i / (o * o), o * o / (d * d * h));
|
|
@@ -5375,8 +5379,8 @@ function Fs(t, n, l) {
|
|
|
5375
5379
|
l
|
|
5376
5380
|
), c;
|
|
5377
5381
|
}
|
|
5378
|
-
function
|
|
5379
|
-
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) : [];
|
|
5380
5384
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap select-treemap${c ? " " + c : ""}`, ref: a, children: [
|
|
5381
5385
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: n, className: "select-chart", children: [
|
|
5382
5386
|
/* @__PURE__ */ e("defs", { children: t.map((u, f) => {
|
|
@@ -5417,8 +5421,8 @@ function po({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
5417
5421
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
5418
5422
|
] });
|
|
5419
5423
|
}
|
|
5420
|
-
function
|
|
5421
|
-
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;
|
|
5422
5426
|
return /* @__PURE__ */ m("div", { ...o, className: `select-chart-wrap${d ? " " + d : ""}`, ref: i, children: [
|
|
5423
5427
|
h > 0 && /* @__PURE__ */ m("svg", { width: h, height: n, className: "select-chart", children: [
|
|
5424
5428
|
we(v).map((M, w) => /* @__PURE__ */ m("g", { children: [
|
|
@@ -5464,7 +5468,7 @@ function mo({ series: t, height: n = 240, xFormat: l = Y, yFormat: c = Y, xMax:
|
|
|
5464
5468
|
/* @__PURE__ */ e(K, { tip: u.tip })
|
|
5465
5469
|
] });
|
|
5466
5470
|
}
|
|
5467
|
-
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) {
|
|
5468
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";
|
|
5469
5473
|
return /* @__PURE__ */ m("div", { ref: h, ...i, className: `select-donut-wrap${o ? " " + o : ""}`, children: [
|
|
5470
5474
|
/* @__PURE__ */ m("div", { className: "select-radar", style: { width: c, aspectRatio: "1" }, children: [
|
|
@@ -5502,19 +5506,19 @@ const fo = R(function({ axes: n, series: l, size: c = 240, max: s, format: a = Y
|
|
|
5502
5506
|
return /* @__PURE__ */ m("g", { children: [
|
|
5503
5507
|
/* @__PURE__ */ e("path", { d: b(w), fill: `url(#${f}-rd${k})`, stroke: M, strokeWidth: 2, strokeLinejoin: "round", className: "select-chart__area" }),
|
|
5504
5508
|
w.map((N, C) => {
|
|
5505
|
-
const [L,
|
|
5509
|
+
const [L, B] = p(C, N);
|
|
5506
5510
|
return /* @__PURE__ */ e(
|
|
5507
5511
|
"circle",
|
|
5508
5512
|
{
|
|
5509
5513
|
cx: L,
|
|
5510
|
-
cy:
|
|
5514
|
+
cy: B,
|
|
5511
5515
|
r: 3,
|
|
5512
5516
|
fill: M,
|
|
5513
5517
|
className: "select-chart__dot",
|
|
5514
5518
|
onMouseEnter: () => u.show({
|
|
5515
5519
|
x: L,
|
|
5516
|
-
y:
|
|
5517
|
-
place:
|
|
5520
|
+
y: B,
|
|
5521
|
+
place: B < 44 ? "bottom" : "top",
|
|
5518
5522
|
title: n[C],
|
|
5519
5523
|
rows: [{ label: S.name, value: a(S.values[C] ?? 0), color: M }]
|
|
5520
5524
|
}),
|
|
@@ -5534,24 +5538,24 @@ const fo = R(function({ axes: n, series: l, size: c = 240, max: s, format: a = Y
|
|
|
5534
5538
|
] }, k)) })
|
|
5535
5539
|
] });
|
|
5536
5540
|
});
|
|
5537
|
-
function
|
|
5541
|
+
function vo({ links: t, height: n = 260, format: l = Y, nodeWidth: c = 14, nodeGap: s = 14, className: a, ...r }) {
|
|
5538
5542
|
const { ref: d, width: o } = ce(n), i = X(), h = [], u = [];
|
|
5539
5543
|
for (const N of t)
|
|
5540
5544
|
h.includes(N.source) || h.push(N.source), u.includes(N.target) || u.push(N.target);
|
|
5541
|
-
const f = t.reduce((N, C) => N + C.value, 0) || 1, g = (N, C) => t.filter((L) => L[C] === N).reduce((L,
|
|
5542
|
-
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();
|
|
5543
5547
|
let A = v;
|
|
5544
|
-
return N.forEach((F,
|
|
5548
|
+
return N.forEach((F, E) => {
|
|
5545
5549
|
const T = g(F, C) * _;
|
|
5546
|
-
|
|
5547
|
-
}),
|
|
5550
|
+
B.set(F, { name: F, y: A, h: T, cursor: A, color: j(E + L) }), A += T + s;
|
|
5551
|
+
}), B;
|
|
5548
5552
|
}, b = p(h, "source", 0), S = p(u, "target", h.length), k = c, M = o - c, w = (k + M) / 2;
|
|
5549
5553
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: d, children: [
|
|
5550
5554
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: n, className: "select-chart", children: [
|
|
5551
5555
|
t.map((N, C) => {
|
|
5552
|
-
const L = b.get(N.source),
|
|
5553
|
-
L.cursor += A,
|
|
5554
|
-
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`;
|
|
5555
5559
|
return /* @__PURE__ */ e(
|
|
5556
5560
|
"path",
|
|
5557
5561
|
{
|
|
@@ -5560,7 +5564,7 @@ function _o({ links: t, height: n = 260, format: l = Y, nodeWidth: c = 14, nodeG
|
|
|
5560
5564
|
className: "select-sankey__link",
|
|
5561
5565
|
onMouseEnter: () => i.show({
|
|
5562
5566
|
x: w,
|
|
5563
|
-
y: (F +
|
|
5567
|
+
y: (F + E + A) / 2,
|
|
5564
5568
|
place: "top",
|
|
5565
5569
|
title: `${N.source} → ${N.target}`,
|
|
5566
5570
|
rows: [{ label: "Fluxo", value: l(N.value), color: L.color }]
|
|
@@ -5582,8 +5586,8 @@ function _o({ links: t, height: n = 260, format: l = Y, nodeWidth: c = 14, nodeG
|
|
|
5582
5586
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
5583
5587
|
] });
|
|
5584
5588
|
}
|
|
5585
|
-
function
|
|
5586
|
-
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);
|
|
5587
5591
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: d, children: [
|
|
5588
5592
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: n, className: "select-chart", children: [
|
|
5589
5593
|
M.map((w, N) => /* @__PURE__ */ m("g", { children: [
|
|
@@ -5600,10 +5604,10 @@ function vo({ data: t, height: n = 240, format: l = Y, upColor: c = "var(--selec
|
|
|
5600
5604
|
/* @__PURE__ */ e("text", { x: h.left - 8, y: p(w), className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: l(w) })
|
|
5601
5605
|
] }, N)),
|
|
5602
5606
|
t.map((w, N) => {
|
|
5603
|
-
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)));
|
|
5604
5608
|
return /* @__PURE__ */ m("g", { children: [
|
|
5605
|
-
/* @__PURE__ */ e("line", { x1: C, x2: C, y1: p(w.high), y2: p(w.low), stroke:
|
|
5606
|
-
/* @__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 }),
|
|
5607
5611
|
/* @__PURE__ */ e("text", { x: C, y: n - h.bottom + 16, className: "select-chart__xlabel", textAnchor: "middle", children: w.label }),
|
|
5608
5612
|
/* @__PURE__ */ e(
|
|
5609
5613
|
"rect",
|
|
@@ -5619,7 +5623,7 @@ function vo({ data: t, height: n = 240, format: l = Y, upColor: c = "var(--selec
|
|
|
5619
5623
|
place: p(w.high) < h.top + 64 ? "bottom" : "top",
|
|
5620
5624
|
title: w.label,
|
|
5621
5625
|
rows: [
|
|
5622
|
-
{ label: "Abertura", value: l(w.open), color:
|
|
5626
|
+
{ label: "Abertura", value: l(w.open), color: B },
|
|
5623
5627
|
{ label: "Máxima", value: l(w.high) },
|
|
5624
5628
|
{ label: "Mínima", value: l(w.low) },
|
|
5625
5629
|
{ label: "Fechamento", value: l(w.close) }
|
|
@@ -5634,8 +5638,8 @@ function vo({ data: t, height: n = 240, format: l = Y, upColor: c = "var(--selec
|
|
|
5634
5638
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
5635
5639
|
] });
|
|
5636
5640
|
}
|
|
5637
|
-
function
|
|
5638
|
-
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);
|
|
5639
5643
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
5640
5644
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: n, className: "select-chart", children: [
|
|
5641
5645
|
we(f).map(($, _) => /* @__PURE__ */ m("g", { children: [
|
|
@@ -5690,18 +5694,18 @@ function go({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
5690
5694
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
5691
5695
|
] });
|
|
5692
5696
|
}
|
|
5693
|
-
function
|
|
5694
|
-
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);
|
|
5695
5699
|
return /* @__PURE__ */ m("div", { ...d, className: `select-chart-wrap${r ? " " + r : ""}`, ref: g, children: [
|
|
5696
5700
|
v > 0 && /* @__PURE__ */ m("svg", { width: v, height: f, className: "select-chart", children: [
|
|
5697
|
-
/* @__PURE__ */ e("defs", { children: t.map((L,
|
|
5698
|
-
const A = L.color ?? j(
|
|
5699
|
-
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: [
|
|
5700
5704
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: A, stopOpacity: 1 }),
|
|
5701
5705
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: A, stopOpacity: 0.55 })
|
|
5702
|
-
] },
|
|
5706
|
+
] }, B);
|
|
5703
5707
|
}) }),
|
|
5704
|
-
C.map((L,
|
|
5708
|
+
C.map((L, B) => /* @__PURE__ */ m("g", { children: [
|
|
5705
5709
|
/* @__PURE__ */ e(
|
|
5706
5710
|
"line",
|
|
5707
5711
|
{
|
|
@@ -5709,27 +5713,27 @@ function bo({ data: t, height: n, min: l, max: c, format: s = Y, labelWidth: a =
|
|
|
5709
5713
|
x2: N(L),
|
|
5710
5714
|
y1: 6,
|
|
5711
5715
|
y2: 6 + k,
|
|
5712
|
-
className:
|
|
5716
|
+
className: B === 0 ? "select-chart__axis" : "select-chart__grid"
|
|
5713
5717
|
}
|
|
5714
5718
|
),
|
|
5715
5719
|
/* @__PURE__ */ e("text", { x: N(L), y: f - 26 + 16, className: "select-chart__xlabel", textAnchor: "middle", children: s(L) })
|
|
5716
|
-
] },
|
|
5717
|
-
t.map((L,
|
|
5718
|
-
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);
|
|
5719
5723
|
return /* @__PURE__ */ m("g", { children: [
|
|
5720
5724
|
/* @__PURE__ */ e(
|
|
5721
5725
|
"rect",
|
|
5722
5726
|
{
|
|
5723
5727
|
x: F,
|
|
5724
5728
|
y: A - w / 2,
|
|
5725
|
-
width:
|
|
5729
|
+
width: E,
|
|
5726
5730
|
height: w,
|
|
5727
5731
|
rx: 5,
|
|
5728
|
-
fill: `url(#${x}-rg${
|
|
5732
|
+
fill: `url(#${x}-rg${B})`,
|
|
5729
5733
|
className: "select-chart__hbar",
|
|
5730
|
-
style: { animationDelay: `${
|
|
5734
|
+
style: { animationDelay: `${B * 40}ms` },
|
|
5731
5735
|
onMouseEnter: () => y.show({
|
|
5732
|
-
x: F +
|
|
5736
|
+
x: F + E / 2,
|
|
5733
5737
|
y: A - w / 2,
|
|
5734
5738
|
place: A - w / 2 < 50 ? "bottom" : "top",
|
|
5735
5739
|
title: L.label,
|
|
@@ -5739,13 +5743,13 @@ function bo({ data: t, height: n, min: l, max: c, format: s = Y, labelWidth: a =
|
|
|
5739
5743
|
}
|
|
5740
5744
|
),
|
|
5741
5745
|
/* @__PURE__ */ e("text", { x: b - 8, y: A, className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: L.label })
|
|
5742
|
-
] },
|
|
5746
|
+
] }, B);
|
|
5743
5747
|
})
|
|
5744
5748
|
] }),
|
|
5745
5749
|
/* @__PURE__ */ e(K, { tip: y.tip })
|
|
5746
5750
|
] });
|
|
5747
5751
|
}
|
|
5748
|
-
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) {
|
|
5749
5753
|
const g = X();
|
|
5750
5754
|
te();
|
|
5751
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 };
|
|
@@ -5759,22 +5763,22 @@ const xo = R(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
5759
5763
|
),
|
|
5760
5764
|
n.map(
|
|
5761
5765
|
(w, N) => w.map((C, L) => {
|
|
5762
|
-
const
|
|
5766
|
+
const B = _ + N * b, A = p + L * b;
|
|
5763
5767
|
if (C == null || !Number.isFinite(C))
|
|
5764
|
-
return /* @__PURE__ */ e("rect", { x:
|
|
5765
|
-
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);
|
|
5766
5770
|
return /* @__PURE__ */ e(
|
|
5767
5771
|
"rect",
|
|
5768
5772
|
{
|
|
5769
|
-
x:
|
|
5773
|
+
x: B,
|
|
5770
5774
|
y: A,
|
|
5771
5775
|
width: r,
|
|
5772
5776
|
height: r,
|
|
5773
5777
|
rx: 3,
|
|
5774
5778
|
className: "select-chart__calcell",
|
|
5775
|
-
style: { fill: `color-mix(in srgb, ${l} ${
|
|
5779
|
+
style: { fill: `color-mix(in srgb, ${l} ${E}%, transparent)` },
|
|
5776
5780
|
onMouseEnter: () => g.show({
|
|
5777
|
-
x:
|
|
5781
|
+
x: B + r / 2,
|
|
5778
5782
|
y: A,
|
|
5779
5783
|
place: A < 44 ? "bottom" : "top",
|
|
5780
5784
|
title: `${c[L] || `Dia ${L + 1}`}${s != null && s[N] ? ` · ${s[N]}` : ` · sem ${N + 1}`}`,
|
|
@@ -5789,7 +5793,7 @@ const xo = R(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
5789
5793
|
] }),
|
|
5790
5794
|
/* @__PURE__ */ e(K, { tip: g.tip })
|
|
5791
5795
|
] });
|
|
5792
|
-
}),
|
|
5796
|
+
}), No = R(function({ segments: n, size: l = 200, format: c = Y, legend: s = !0, rose: a = !1, className: r, ...d }, o) {
|
|
5793
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;
|
|
5794
5798
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-donut-wrap${r ? " " + r : ""}`, children: [
|
|
5795
5799
|
/* @__PURE__ */ m("div", { className: "select-radial", style: { width: l, aspectRatio: "1" }, children: [
|
|
@@ -5820,7 +5824,7 @@ const xo = R(function({ weeks: n, color: l = "var(--select-chart-4)", dayLabels:
|
|
|
5820
5824
|
] }, _)) })
|
|
5821
5825
|
] });
|
|
5822
5826
|
});
|
|
5823
|
-
function
|
|
5827
|
+
function Mo({ data: t, leftLabel: n, rightLabel: l, height: c = 240, format: s = Y, className: a, ...r }) {
|
|
5824
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;
|
|
5825
5829
|
return /* @__PURE__ */ m("div", { ...r, className: `select-chart-wrap${a ? " " + a : ""}`, ref: d, children: [
|
|
5826
5830
|
o > 0 && /* @__PURE__ */ m("svg", { width: o, height: c, className: "select-chart", children: [
|
|
@@ -5867,7 +5871,7 @@ function No({ data: t, leftLabel: n, rightLabel: l, height: c = 240, format: s =
|
|
|
5867
5871
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
5868
5872
|
] });
|
|
5869
5873
|
}
|
|
5870
|
-
function
|
|
5874
|
+
function $o({ data: t, height: n, format: l = Y, fromLabel: c = "Antes", toLabel: s = "Depois", labelWidth: a = 96, className: r, ...d }) {
|
|
5871
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;
|
|
5872
5876
|
return /* @__PURE__ */ m("div", { ...d, className: `select-chart-wrap${r ? " " + r : ""}`, ref: g, children: [
|
|
5873
5877
|
v > 0 && /* @__PURE__ */ m("svg", { width: v, height: f, className: "select-chart", children: [
|
|
@@ -5919,7 +5923,7 @@ function Mo({ data: t, height: n, format: l = Y, fromLabel: c = "Antes", toLabel
|
|
|
5919
5923
|
/* @__PURE__ */ e(K, { tip: y.tip })
|
|
5920
5924
|
] });
|
|
5921
5925
|
}
|
|
5922
|
-
function
|
|
5926
|
+
function ko({ columns: t, height: n = 240, format: l = Y, gap: c = 3, className: s, ...a }) {
|
|
5923
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 = [];
|
|
5924
5928
|
t.forEach((p) => p.segments.forEach((b) => {
|
|
5925
5929
|
v.includes(b.key) || v.push(b.key);
|
|
@@ -5933,14 +5937,14 @@ function $o({ columns: t, height: n = 240, format: l = Y, gap: c = 3, className:
|
|
|
5933
5937
|
let w = i.top;
|
|
5934
5938
|
return /* @__PURE__ */ m("g", { children: [
|
|
5935
5939
|
p.segments.map((N, C) => {
|
|
5936
|
-
const L = N.value / S * u,
|
|
5940
|
+
const L = N.value / S * u, B = w;
|
|
5937
5941
|
w += L;
|
|
5938
5942
|
const A = y(N.key, N.color);
|
|
5939
5943
|
return /* @__PURE__ */ e(
|
|
5940
5944
|
"rect",
|
|
5941
5945
|
{
|
|
5942
5946
|
x: M,
|
|
5943
|
-
y:
|
|
5947
|
+
y: B,
|
|
5944
5948
|
width: Math.max(0, k),
|
|
5945
5949
|
height: Math.max(0, L - 1),
|
|
5946
5950
|
fill: A,
|
|
@@ -5948,8 +5952,8 @@ function $o({ columns: t, height: n = 240, format: l = Y, gap: c = 3, className:
|
|
|
5948
5952
|
className: "select-chart__seg",
|
|
5949
5953
|
onMouseEnter: () => o.show({
|
|
5950
5954
|
x: M + k / 2,
|
|
5951
|
-
y:
|
|
5952
|
-
place:
|
|
5955
|
+
y: B,
|
|
5956
|
+
place: B < i.top + 44 ? "bottom" : "top",
|
|
5953
5957
|
title: `${p.label} · ${N.key}`,
|
|
5954
5958
|
rows: [
|
|
5955
5959
|
{ label: "Valor", value: l(N.value), color: A },
|
|
@@ -5971,22 +5975,22 @@ function $o({ columns: t, height: n = 240, format: l = Y, gap: c = 3, className:
|
|
|
5971
5975
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
5972
5976
|
] });
|
|
5973
5977
|
}
|
|
5974
|
-
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) {
|
|
5975
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) => {
|
|
5976
|
-
const
|
|
5977
|
-
return [v + g * Math.cos(
|
|
5978
|
-
}, p = (L,
|
|
5979
|
-
const [A, F] = _(L), [
|
|
5980
|
-
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)}`;
|
|
5981
5985
|
};
|
|
5982
5986
|
let b = 0;
|
|
5983
5987
|
const S = c.map((L) => {
|
|
5984
|
-
const
|
|
5985
|
-
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 };
|
|
5986
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);
|
|
5987
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: [
|
|
5988
5992
|
/* @__PURE__ */ m("svg", { width: "100%", height: "100%", viewBox: `0 0 ${s} ${x}`, className: "select-chart", "aria-hidden": "true", children: [
|
|
5989
|
-
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)),
|
|
5990
5994
|
/* @__PURE__ */ e("line", { x1: v, y1: y, x2: N, y2: C, stroke: "var(--select-text)", strokeWidth: 3, strokeLinecap: "round", className: "select-gaugeband__needle" }),
|
|
5991
5995
|
/* @__PURE__ */ e("circle", { cx: v, cy: y, r: 5, fill: "var(--select-text)" })
|
|
5992
5996
|
] }),
|
|
@@ -5996,7 +6000,7 @@ const ko = R(function({ value: n, max: l = 100, bands: c, size: s = 220, thickne
|
|
|
5996
6000
|
] })
|
|
5997
6001
|
] }) });
|
|
5998
6002
|
});
|
|
5999
|
-
function
|
|
6003
|
+
function So({ series: t, labels: n, height: l = 240, format: c = Y, className: s, ...a }) {
|
|
6000
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) => {
|
|
6001
6005
|
const w = [], N = [];
|
|
6002
6006
|
return n.forEach((C, L) => {
|
|
@@ -6042,7 +6046,7 @@ function wo({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
6042
6046
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
6043
6047
|
] });
|
|
6044
6048
|
}
|
|
6045
|
-
const
|
|
6049
|
+
const Co = R(function({ data: n, size: l = 220, format: c = Y, legend: s = !0, className: a, ...r }, d) {
|
|
6046
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(($) => {
|
|
6047
6051
|
var _;
|
|
6048
6052
|
return (_ = $.children) != null && _.length ? $.children.reduce((p, b) => p + b.value, 0) : $.value ?? 0;
|
|
@@ -6069,12 +6073,12 @@ const So = R(function({ data: n, size: l = 220, format: c = Y, legend: s = !0, c
|
|
|
6069
6073
|
($.children ?? []).map((w, N) => {
|
|
6070
6074
|
const C = M;
|
|
6071
6075
|
M += w.value / y * 360;
|
|
6072
|
-
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);
|
|
6073
6077
|
return /* @__PURE__ */ e(
|
|
6074
6078
|
"path",
|
|
6075
6079
|
{
|
|
6076
6080
|
d: it(i, h, u, f + 2, C + 0.5, Math.max(C + 0.6, L - 0.5)),
|
|
6077
|
-
fill:
|
|
6081
|
+
fill: B,
|
|
6078
6082
|
fillOpacity: A,
|
|
6079
6083
|
className: "select-chart__seg",
|
|
6080
6084
|
onMouseEnter: () => o.show({
|
|
@@ -6103,8 +6107,8 @@ const So = R(function({ data: n, size: l = 220, format: c = Y, legend: s = !0, c
|
|
|
6103
6107
|
] }, _)) })
|
|
6104
6108
|
] });
|
|
6105
6109
|
});
|
|
6106
|
-
function
|
|
6107
|
-
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));
|
|
6108
6112
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
6109
6113
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: n, className: "select-chart", children: [
|
|
6110
6114
|
we(f).map((_, p) => /* @__PURE__ */ m("g", { children: [
|
|
@@ -6124,10 +6128,10 @@ function Co({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
6124
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 = [];
|
|
6125
6129
|
for (let A = k - 1; A >= 0; A--) N.push([b + w(A), M(A)]);
|
|
6126
6130
|
for (let A = 0; A < k; A++) C.push([b - w(A), M(A)]);
|
|
6127
|
-
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;
|
|
6128
6132
|
return /* @__PURE__ */ m("g", { children: [
|
|
6129
6133
|
/* @__PURE__ */ e("path", { d: L, fill: S, fillOpacity: 0.32, stroke: S, strokeWidth: 1.5, strokeLinejoin: "round" }),
|
|
6130
|
-
|
|
6134
|
+
B != null && /* @__PURE__ */ e("line", { x1: b - x * 0.6, x2: b + x * 0.6, y1: B, y2: B, stroke: S, strokeWidth: 2 }),
|
|
6131
6135
|
/* @__PURE__ */ e("text", { x: b, y: n - o.bottom + 16, className: "select-chart__xlabel", textAnchor: "middle", children: _.label }),
|
|
6132
6136
|
/* @__PURE__ */ e(
|
|
6133
6137
|
"rect",
|
|
@@ -6157,7 +6161,7 @@ function Co({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
6157
6161
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
6158
6162
|
] });
|
|
6159
6163
|
}
|
|
6160
|
-
const
|
|
6164
|
+
const Ao = R(function({ matrix: n, labels: l, size: c = 240, format: s = Y, padAngle: a = 0.05, className: r, ...d }, o) {
|
|
6161
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, _ = [];
|
|
6162
6166
|
let p = 0;
|
|
6163
6167
|
for (let N = 0; N < h; N++) {
|
|
@@ -6168,19 +6172,19 @@ const Lo = R(function({ matrix: n, labels: l, size: c = 240, format: s = Y, padA
|
|
|
6168
6172
|
for (let N = 0; N < h; N++) {
|
|
6169
6173
|
let C = _[N].a0;
|
|
6170
6174
|
for (let L = 0; L < h; L++) {
|
|
6171
|
-
const
|
|
6172
|
-
b[N][L] = [C, C +
|
|
6175
|
+
const B = n[N][L] * $;
|
|
6176
|
+
b[N][L] = [C, C + B], C += B;
|
|
6173
6177
|
}
|
|
6174
6178
|
}
|
|
6175
|
-
const S = (N, C) => [u + C * Math.cos(N - Math.PI / 2), f + C * Math.sin(N - Math.PI / 2)], k = (N, C, L,
|
|
6176
|
-
const [A, F] = S(N, v), [
|
|
6177
|
-
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`;
|
|
6178
6182
|
}, M = (N) => N * 180 / Math.PI, w = [];
|
|
6179
6183
|
for (let N = 0; N < h; N++)
|
|
6180
6184
|
for (let C = N; C < h; C++) {
|
|
6181
6185
|
if (N === C || n[N][C] + n[C][N] <= 0) continue;
|
|
6182
|
-
const [L,
|
|
6183
|
-
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] });
|
|
6184
6188
|
}
|
|
6185
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: [
|
|
6186
6190
|
/* @__PURE__ */ m("svg", { width: c, height: c, viewBox: `0 0 ${c} ${c}`, className: "select-chart", "aria-hidden": "true", children: [
|
|
@@ -6202,17 +6206,17 @@ const Lo = R(function({ matrix: n, labels: l, size: c = 240, format: s = Y, padA
|
|
|
6202
6206
|
C
|
|
6203
6207
|
)),
|
|
6204
6208
|
_.map((N, C) => {
|
|
6205
|
-
const L = (N.a0 + N.a1) / 2, [
|
|
6209
|
+
const L = (N.a0 + N.a1) / 2, [B, A] = S(L, g + 12);
|
|
6206
6210
|
return /* @__PURE__ */ m("g", { children: [
|
|
6207
6211
|
/* @__PURE__ */ e("path", { d: it(u, f, g, v, M(N.a0), M(N.a1)), fill: j(C), className: "select-chord__arc" }),
|
|
6208
6212
|
/* @__PURE__ */ e(
|
|
6209
6213
|
"text",
|
|
6210
6214
|
{
|
|
6211
|
-
x:
|
|
6215
|
+
x: B,
|
|
6212
6216
|
y: A,
|
|
6213
6217
|
className: "select-chart__xlabel",
|
|
6214
6218
|
dominantBaseline: "middle",
|
|
6215
|
-
textAnchor: Math.abs(
|
|
6219
|
+
textAnchor: Math.abs(B - u) < 6 ? "middle" : B > u ? "start" : "end",
|
|
6216
6220
|
children: l[C]
|
|
6217
6221
|
}
|
|
6218
6222
|
)
|
|
@@ -6222,37 +6226,37 @@ const Lo = R(function({ matrix: n, labels: l, size: c = 240, format: s = Y, padA
|
|
|
6222
6226
|
/* @__PURE__ */ e(K, { tip: i.tip })
|
|
6223
6227
|
] }) });
|
|
6224
6228
|
});
|
|
6225
|
-
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 }) {
|
|
6226
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) => {
|
|
6227
|
-
let
|
|
6228
|
-
const O = Math.abs(
|
|
6229
|
-
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];
|
|
6230
6234
|
}, k = (C, L) => [p * b * (C + L / 2), p * (3 / 2) * L], M = (C, L) => {
|
|
6231
|
-
let
|
|
6235
|
+
let B = "";
|
|
6232
6236
|
for (let A = 0; A < 6; A++) {
|
|
6233
6237
|
const F = Math.PI / 180 * (60 * A - 30);
|
|
6234
|
-
|
|
6238
|
+
B += `${A === 0 ? "M" : "L"}${(C + p * Math.cos(F)).toFixed(1)},${(L + p * Math.sin(F)).toFixed(1)}`;
|
|
6235
6239
|
}
|
|
6236
|
-
return
|
|
6240
|
+
return B + "Z";
|
|
6237
6241
|
}, w = /* @__PURE__ */ new Map();
|
|
6238
6242
|
for (const C of t) {
|
|
6239
|
-
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}`;
|
|
6240
6244
|
w.set(I, (w.get(I) ?? 0) + 1);
|
|
6241
6245
|
}
|
|
6242
6246
|
const N = Math.max(1, ...w.values());
|
|
6243
6247
|
return /* @__PURE__ */ m("div", { ...o, className: `select-chart-wrap${d ? " " + d : ""}`, ref: i, children: [
|
|
6244
6248
|
h > 0 && /* @__PURE__ */ e("svg", { width: h, height: n, className: "select-chart", children: [...w].map(([C, L]) => {
|
|
6245
|
-
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);
|
|
6246
6250
|
return /* @__PURE__ */ e(
|
|
6247
6251
|
"path",
|
|
6248
6252
|
{
|
|
6249
|
-
d: M(F,
|
|
6253
|
+
d: M(F, E),
|
|
6250
6254
|
className: "select-chart__calcell",
|
|
6251
6255
|
style: { fill: `color-mix(in srgb, ${c} ${I}%, transparent)`, "--heat-color": c },
|
|
6252
6256
|
onMouseEnter: () => u.show({
|
|
6253
6257
|
x: F,
|
|
6254
|
-
y:
|
|
6255
|
-
place:
|
|
6258
|
+
y: E - p,
|
|
6259
|
+
place: E - p < f + 40 ? "bottom" : "top",
|
|
6256
6260
|
rows: [{ label: "Pontos", value: r(L), color: c }]
|
|
6257
6261
|
}),
|
|
6258
6262
|
onMouseLeave: u.hide
|
|
@@ -6263,7 +6267,7 @@ function Ao({ points: t, height: n = 240, radius: l = 16, color: c = "var(--sele
|
|
|
6263
6267
|
/* @__PURE__ */ e(K, { tip: u.tip })
|
|
6264
6268
|
] });
|
|
6265
6269
|
}
|
|
6266
|
-
const
|
|
6270
|
+
const Bo = R(function({ words: n, minSize: l = 14, maxSize: c = 46, className: s, ...a }, r) {
|
|
6267
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);
|
|
6268
6272
|
return /* @__PURE__ */ e("div", { ref: r, ...a, className: `select-wordcloud${s ? " " + s : ""}`, children: n.map((f, g) => /* @__PURE__ */ e(
|
|
6269
6273
|
"span",
|
|
@@ -6428,18 +6432,18 @@ const Rn = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
6428
6432
|
var Fe;
|
|
6429
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(
|
|
6430
6434
|
typeof window < "u" && !!((Fe = window.matchMedia) != null && Fe.call(window, "(prefers-reduced-motion: reduce)").matches)
|
|
6431
|
-
), 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 = () => {
|
|
6432
6436
|
A.current || (F.current = performance.now(), A.current = requestAnimationFrame(G));
|
|
6433
6437
|
};
|
|
6434
6438
|
function G(P) {
|
|
6435
6439
|
const V = Math.min(0.05, (P - F.current) / 1e3);
|
|
6436
|
-
F.current = P,
|
|
6440
|
+
F.current = P, B.current += V;
|
|
6437
6441
|
const U = M.current, oe = Math.abs(U.lng) + Math.abs(U.lat) > 0.02;
|
|
6438
6442
|
if (!C.current) if (N.current) {
|
|
6439
6443
|
const se = Math.min(1, V * 6);
|
|
6440
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);
|
|
6441
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));
|
|
6442
|
-
|
|
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;
|
|
6443
6447
|
}
|
|
6444
6448
|
le(() => (S.current || Z(), () => {
|
|
6445
6449
|
A.current && cancelAnimationFrame(A.current), A.current = 0;
|
|
@@ -6452,7 +6456,7 @@ const Rn = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
6452
6456
|
var se;
|
|
6453
6457
|
U.preventDefault();
|
|
6454
6458
|
const oe = Math.max(-240, Math.min(240, U.deltaMode ? U.deltaY * 40 : U.deltaY)), ee = w.current * Math.exp(-oe * 12e-4);
|
|
6455
|
-
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);
|
|
6456
6460
|
};
|
|
6457
6461
|
return P.addEventListener("wheel", V, { passive: !1 }), () => P.removeEventListener("wheel", V);
|
|
6458
6462
|
}, []);
|
|
@@ -6550,7 +6554,7 @@ const Rn = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
6550
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]);
|
|
6551
6555
|
$l[2] > -0.05 ? (ee += `${se ? "L" : "M"}${an.x.toFixed(1)},${an.y.toFixed(1)}`, se = !0) : se = !1;
|
|
6552
6556
|
}
|
|
6553
|
-
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));
|
|
6554
6558
|
return { d: ee, col: P.color ?? d, i: V, flow: { ...Je, vis: Pe[2] > 0 }, active: sn };
|
|
6555
6559
|
}), Ue = Ne != null, je = i ? [...n].sort((P, V) => (V.value ?? 0) - (P.value ?? 0)).slice(0, 6) : [];
|
|
6556
6560
|
return /* @__PURE__ */ m("div", { ref: y, ...v, className: `select-globe${g ? " " + g : ""}`, children: [
|
|
@@ -6703,7 +6707,7 @@ const Rn = (t, n) => Math.abs(t.lat - n.lat) < 1e-6 && Math.abs(t.lng - n.lng) <
|
|
|
6703
6707
|
] }, V)) })
|
|
6704
6708
|
] });
|
|
6705
6709
|
});
|
|
6706
|
-
function
|
|
6710
|
+
function Io({ children: t, speed: n = 28, className: l, ...c }) {
|
|
6707
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);
|
|
6708
6712
|
le(() => {
|
|
6709
6713
|
var S;
|
|
@@ -6751,11 +6755,11 @@ function Bo({ children: t, speed: n = 28, className: l, ...c }) {
|
|
|
6751
6755
|
}
|
|
6752
6756
|
);
|
|
6753
6757
|
}
|
|
6754
|
-
function
|
|
6758
|
+
function Po({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
6755
6759
|
var A;
|
|
6756
|
-
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;
|
|
6757
6761
|
let y = 0;
|
|
6758
|
-
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);
|
|
6759
6763
|
return /* @__PURE__ */ m("div", { ...s, className: `select-chart-wrap${c ? " " + c : ""}`, ref: a, children: [
|
|
6760
6764
|
r > 0 && /* @__PURE__ */ m("svg", { width: r, height: n, className: "select-chart", onMouseLeave: () => {
|
|
6761
6765
|
h(null), d.hide();
|
|
@@ -6764,21 +6768,21 @@ function Io({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
6764
6768
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: L, stopOpacity: 1 }),
|
|
6765
6769
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: L, stopOpacity: 0.55 })
|
|
6766
6770
|
] }) }),
|
|
6767
|
-
we(p).map((F,
|
|
6768
|
-
/* @__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" }),
|
|
6769
6773
|
/* @__PURE__ */ e("text", { x: u.left - 8, y: M(F), className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: l(F) })
|
|
6770
|
-
] },
|
|
6771
|
-
[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: [
|
|
6772
6776
|
F,
|
|
6773
6777
|
"%"
|
|
6774
|
-
] }, `r${
|
|
6778
|
+
] }, `r${E}`)),
|
|
6775
6779
|
/* @__PURE__ */ e("line", { x1: u.left, x2: r - u.right, y1: w(80), y2: w(80), className: "select-chart__crosshair" }),
|
|
6776
|
-
f.map((F,
|
|
6780
|
+
f.map((F, E) => {
|
|
6777
6781
|
const T = M(F.value);
|
|
6778
6782
|
return /* @__PURE__ */ e(
|
|
6779
6783
|
"rect",
|
|
6780
6784
|
{
|
|
6781
|
-
x: N(
|
|
6785
|
+
x: N(E) - S / 2,
|
|
6782
6786
|
y: T,
|
|
6783
6787
|
width: S,
|
|
6784
6788
|
height: Math.max(0, k - T),
|
|
@@ -6786,39 +6790,39 @@ function Io({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
6786
6790
|
fill: `url(#${o}-b)`,
|
|
6787
6791
|
className: "select-chart__bar",
|
|
6788
6792
|
onMouseEnter: () => d.show({
|
|
6789
|
-
x: N(
|
|
6793
|
+
x: N(E),
|
|
6790
6794
|
y: T,
|
|
6791
6795
|
place: T < u.top + 40 ? "bottom" : "top",
|
|
6792
6796
|
title: F.label,
|
|
6793
6797
|
rows: [
|
|
6794
6798
|
{ label: "Valor", value: l(F.value), color: L },
|
|
6795
|
-
{ label: "Acumulado", value: `${x[
|
|
6799
|
+
{ label: "Acumulado", value: `${x[E].toFixed(0)}%`, color: B }
|
|
6796
6800
|
]
|
|
6797
6801
|
}),
|
|
6798
6802
|
onMouseLeave: d.hide
|
|
6799
6803
|
},
|
|
6800
|
-
|
|
6804
|
+
E
|
|
6801
6805
|
);
|
|
6802
6806
|
}),
|
|
6803
|
-
/* @__PURE__ */ e("path", { d: Ge(C), fill: "none", stroke:
|
|
6804
|
-
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(
|
|
6805
6809
|
"circle",
|
|
6806
6810
|
{
|
|
6807
6811
|
cx: F[0],
|
|
6808
6812
|
cy: F[1],
|
|
6809
|
-
r: i ===
|
|
6810
|
-
fill:
|
|
6811
|
-
className: `select-chart__dot${i ===
|
|
6812
|
-
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)
|
|
6813
6817
|
},
|
|
6814
|
-
|
|
6818
|
+
E
|
|
6815
6819
|
)),
|
|
6816
|
-
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))
|
|
6817
6821
|
] }),
|
|
6818
6822
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
6819
6823
|
] });
|
|
6820
6824
|
}
|
|
6821
|
-
const
|
|
6825
|
+
const Ro = R(function({ segments: n, cols: l = 10, rows: c = 10, format: s = Y, className: a, ...r }, d) {
|
|
6822
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);
|
|
6823
6827
|
let f = u.reduce((y, x) => y + x, 0);
|
|
6824
6828
|
const g = h.map((y, x) => ({ i: x, frac: y - u[x] })).sort((y, x) => x.frac - y.frac);
|
|
@@ -6837,7 +6841,7 @@ const Po = R(function({ segments: n, cols: l = 10, rows: c = 10, format: s = Y,
|
|
|
6837
6841
|
] }, x)) })
|
|
6838
6842
|
] });
|
|
6839
6843
|
});
|
|
6840
|
-
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 }) {
|
|
6841
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);
|
|
6842
6846
|
return /* @__PURE__ */ m("div", { ...i, className: `select-chart-wrap${o ? " " + o : ""}`, ref: u, children: [
|
|
6843
6847
|
f > 0 && /* @__PURE__ */ m("svg", { width: f, height: h, className: "select-chart", onMouseLeave: () => {
|
|
@@ -6845,8 +6849,8 @@ function Ro({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", hei
|
|
|
6845
6849
|
}, children: [
|
|
6846
6850
|
/* @__PURE__ */ e("text", { x, y: 14, className: "select-chart__xlabel", textAnchor: "start", style: { fill: N, fontWeight: 600 }, children: n }),
|
|
6847
6851
|
/* @__PURE__ */ e("text", { x: f - x, y: 14, className: "select-chart__xlabel", textAnchor: "end", style: { fill: C, fontWeight: 600 }, children: l }),
|
|
6848
|
-
t.map((L,
|
|
6849
|
-
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;
|
|
6850
6854
|
return /* @__PURE__ */ m("g", { style: { opacity: v === null || T ? 1 : 0.5 }, children: [
|
|
6851
6855
|
/* @__PURE__ */ e(
|
|
6852
6856
|
"rect",
|
|
@@ -6871,13 +6875,13 @@ function Ro({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", hei
|
|
|
6871
6875
|
{
|
|
6872
6876
|
x: w,
|
|
6873
6877
|
y: A - k / 2,
|
|
6874
|
-
width:
|
|
6878
|
+
width: E,
|
|
6875
6879
|
height: k,
|
|
6876
6880
|
rx: 4,
|
|
6877
6881
|
fill: C,
|
|
6878
6882
|
className: "select-pyramid__bar select-pyramid__bar--r",
|
|
6879
6883
|
onMouseEnter: () => {
|
|
6880
|
-
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 }] });
|
|
6881
6885
|
},
|
|
6882
6886
|
onMouseLeave: () => {
|
|
6883
6887
|
y(null), g.hide();
|
|
@@ -6891,7 +6895,7 @@ function Ro({ data: t, leftLabel: n = "Esquerda", rightLabel: l = "Direita", hei
|
|
|
6891
6895
|
/* @__PURE__ */ e(K, { tip: g.tip })
|
|
6892
6896
|
] });
|
|
6893
6897
|
}
|
|
6894
|
-
function
|
|
6898
|
+
function To({ series: t, labels: n, height: l = 240, format: c = Y, className: s, ...a }) {
|
|
6895
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));
|
|
6896
6900
|
for (let p = 0; p < f; p++)
|
|
6897
6901
|
t.map((S, k) => ({ si: k, v: S.data[p] ?? 0 })).sort((S, k) => k.v - S.v).forEach((S, k) => {
|
|
@@ -6939,7 +6943,7 @@ function Do({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
6939
6943
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
6940
6944
|
] });
|
|
6941
6945
|
}
|
|
6942
|
-
function
|
|
6946
|
+
function Wo({ axes: t, data: n, height: l = 260, format: c = Y, className: s, ...a }) {
|
|
6943
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((_) => {
|
|
6944
6948
|
const p = n.map((b) => b.values[_.key] ?? 0);
|
|
6945
6949
|
return { min: Math.min(...p), max: Math.max(...p) };
|
|
@@ -6996,7 +7000,7 @@ function Mt(t) {
|
|
|
6996
7000
|
function Nl(t, n = 0) {
|
|
6997
7001
|
return !t.children || !t.children.length ? n : Math.max(...t.children.map((l) => Nl(l, n + 1)));
|
|
6998
7002
|
}
|
|
6999
|
-
function
|
|
7003
|
+
function Oo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
7000
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, $, _) => {
|
|
7001
7005
|
if (f.push({ node: v, x0: y, x1: x, depth: $, color: v.color ?? j(_), value: Mt(v) }), v.children && v.children.length) {
|
|
7002
7006
|
const p = v.children.reduce((S, k) => S + Mt(k), 0) || 1;
|
|
@@ -7040,7 +7044,7 @@ function Wo({ data: t, height: n = 240, format: l = Y, className: c, ...s }) {
|
|
|
7040
7044
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
7041
7045
|
] });
|
|
7042
7046
|
}
|
|
7043
|
-
function
|
|
7047
|
+
function Ho({ data: t, height: n = 260, className: l, ...c }) {
|
|
7044
7048
|
const { ref: s, width: a } = ce(n), r = X(), [d, o] = D(null), i = { top: 14, right: 96, bottom: 14, left: 16 };
|
|
7045
7049
|
let h = null;
|
|
7046
7050
|
if (a > 0) {
|
|
@@ -7110,7 +7114,7 @@ function Oo({ data: t, height: n = 260, className: l, ...c }) {
|
|
|
7110
7114
|
/* @__PURE__ */ e(K, { tip: r.tip })
|
|
7111
7115
|
] });
|
|
7112
7116
|
}
|
|
7113
|
-
const
|
|
7117
|
+
const jo = R(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
7114
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 ? [
|
|
7115
7119
|
[d - h * 0.42, o],
|
|
7116
7120
|
[d + h * 0.42, o]
|
|
@@ -7158,29 +7162,29 @@ const Ho = R(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
|
7158
7162
|
/* @__PURE__ */ e("span", { className: "select-donut__legval", children: g.size.toLocaleString("pt-BR") })
|
|
7159
7163
|
] }, v)) })
|
|
7160
7164
|
] });
|
|
7161
|
-
}),
|
|
7165
|
+
}), Vo = R(function({ data: n, size: l = 260, format: c = Y, className: s, ...a }, r) {
|
|
7162
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 = [];
|
|
7163
7167
|
for (const N of u) {
|
|
7164
7168
|
if (f.length === 0) {
|
|
7165
7169
|
f.push({ d: N.d, i: N.i, x: 0, y: 0, r: N.r });
|
|
7166
7170
|
continue;
|
|
7167
7171
|
}
|
|
7168
|
-
let C = 0, L = 0,
|
|
7172
|
+
let C = 0, L = 0, B = null;
|
|
7169
7173
|
for (let A = 0; A < 8e3; A++) {
|
|
7170
|
-
const F = Math.cos(C) * L,
|
|
7174
|
+
const F = Math.cos(C) * L, E = Math.sin(C) * L;
|
|
7171
7175
|
let T = !0;
|
|
7172
7176
|
for (const I of f)
|
|
7173
|
-
if (Math.hypot(F - I.x,
|
|
7177
|
+
if (Math.hypot(F - I.x, E - I.y) < I.r + N.r + 2) {
|
|
7174
7178
|
T = !1;
|
|
7175
7179
|
break;
|
|
7176
7180
|
}
|
|
7177
7181
|
if (T) {
|
|
7178
|
-
|
|
7182
|
+
B = [F, E];
|
|
7179
7183
|
break;
|
|
7180
7184
|
}
|
|
7181
7185
|
C += 0.5, L += 0.7;
|
|
7182
7186
|
}
|
|
7183
|
-
|
|
7187
|
+
B && f.push({ d: N.d, i: N.i, x: B[0], y: B[1], r: N.r });
|
|
7184
7188
|
}
|
|
7185
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;
|
|
7186
7190
|
return /* @__PURE__ */ m("div", { ref: r, ...a, className: `select-donut-wrap${s ? " " + s : ""}`, children: [
|
|
@@ -7214,7 +7218,7 @@ const Ho = R(function({ sets: n, size: l = 240, className: c, ...s }, a) {
|
|
|
7214
7218
|
/* @__PURE__ */ e(K, { tip: d.tip })
|
|
7215
7219
|
] });
|
|
7216
7220
|
});
|
|
7217
|
-
function
|
|
7221
|
+
function Zo({ nodes: t, links: n, height: l = 300, format: c = Y, className: s, ...a }) {
|
|
7218
7222
|
const { ref: r, width: d } = ce(l), o = X(), [i, h] = D(null), u = xe(() => {
|
|
7219
7223
|
const v = d || l, y = l, x = t.length, $ = /* @__PURE__ */ new Map();
|
|
7220
7224
|
if (!x) return $;
|
|
@@ -7228,18 +7232,18 @@ function Vo({ nodes: t, links: n, height: l = 300, format: c = Y, className: s,
|
|
|
7228
7232
|
const M = _.map(() => ({ x: 0, y: 0 }));
|
|
7229
7233
|
for (let w = 0; w < x; w++)
|
|
7230
7234
|
for (let N = w + 1; N < x; N++) {
|
|
7231
|
-
const C = _[w].x - _[N].x, L = _[w].y - _[N].y,
|
|
7232
|
-
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;
|
|
7233
7237
|
}
|
|
7234
7238
|
for (const w of n) {
|
|
7235
7239
|
const N = p.get(w.source), C = p.get(w.target);
|
|
7236
7240
|
if (N == null || C == null) continue;
|
|
7237
|
-
const L = _[N].x - _[C].x,
|
|
7238
|
-
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;
|
|
7239
7243
|
}
|
|
7240
7244
|
for (let w = 0; w < x; w++) {
|
|
7241
|
-
const N = M[w].x, C = M[w].y, L = Math.hypot(N, C) || 0.01,
|
|
7242
|
-
_[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));
|
|
7243
7247
|
}
|
|
7244
7248
|
S *= 0.97;
|
|
7245
7249
|
}
|
|
@@ -7299,21 +7303,21 @@ function Vo({ nodes: t, links: n, height: l = 300, format: c = Y, className: s,
|
|
|
7299
7303
|
/* @__PURE__ */ e(K, { tip: o.tip })
|
|
7300
7304
|
] });
|
|
7301
7305
|
}
|
|
7302
|
-
function
|
|
7303
|
-
const n =
|
|
7306
|
+
function Is({ children: t }) {
|
|
7307
|
+
const n = Et({ selector: ".select-combobox__option", y: 6, duration: 0.3, stagger: 0.03 });
|
|
7304
7308
|
return /* @__PURE__ */ e("div", { className: "select-combobox__list", ref: n, children: t });
|
|
7305
7309
|
}
|
|
7306
|
-
const
|
|
7307
|
-
const _ = te(), [p, b] = D(!1), [S, k] = D(""), M = s.find((
|
|
7308
|
-
const
|
|
7309
|
-
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) => {
|
|
7310
7314
|
var F;
|
|
7311
|
-
return A.label.toLowerCase().includes(
|
|
7315
|
+
return A.label.toLowerCase().includes(B) || ((F = A.secondary) == null ? void 0 : F.toLowerCase().includes(B));
|
|
7312
7316
|
});
|
|
7313
7317
|
}, [s, S, v]), N = () => {
|
|
7314
7318
|
b(!1), k("");
|
|
7315
|
-
}, C = (
|
|
7316
|
-
c(
|
|
7319
|
+
}, C = (B) => {
|
|
7320
|
+
c(B), N();
|
|
7317
7321
|
}, L = i ? `${_}-err` : o ? `${_}-hint` : void 0;
|
|
7318
7322
|
return /* @__PURE__ */ m("div", { ref: $, ...x, className: `select-field${g === "sm" ? " select-field--sm" : ""}${y ? " " + y : ""}`, children: [
|
|
7319
7323
|
n && /* @__PURE__ */ m("div", { className: "select-field__labelrow", children: [
|
|
@@ -7353,31 +7357,31 @@ const Zo = R(function({ label: n, value: l, onChange: c, options: s, placeholder
|
|
|
7353
7357
|
className: "select-combobox__searchinput",
|
|
7354
7358
|
type: "text",
|
|
7355
7359
|
value: S,
|
|
7356
|
-
onChange: (
|
|
7360
|
+
onChange: (B) => k(B.target.value),
|
|
7357
7361
|
placeholder: r,
|
|
7358
7362
|
autoFocus: !0
|
|
7359
7363
|
}
|
|
7360
7364
|
) }),
|
|
7361
|
-
/* @__PURE__ */ e(
|
|
7362
|
-
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;
|
|
7363
7367
|
return /* @__PURE__ */ m(
|
|
7364
7368
|
"button",
|
|
7365
7369
|
{
|
|
7366
7370
|
type: "button",
|
|
7367
7371
|
role: "option",
|
|
7368
7372
|
"aria-selected": A,
|
|
7369
|
-
disabled:
|
|
7373
|
+
disabled: B.disabled,
|
|
7370
7374
|
className: `select-combobox__option${A ? " is-selected" : ""}`,
|
|
7371
|
-
onClick: () => C(
|
|
7375
|
+
onClick: () => C(B.value),
|
|
7372
7376
|
children: [
|
|
7373
7377
|
/* @__PURE__ */ m("span", { className: "select-combobox__optiontext", children: [
|
|
7374
|
-
/* @__PURE__ */ e("span", { className: "select-combobox__optionlabel", children:
|
|
7375
|
-
|
|
7378
|
+
/* @__PURE__ */ e("span", { className: "select-combobox__optionlabel", children: B.label }),
|
|
7379
|
+
B.secondary && /* @__PURE__ */ e("span", { className: "select-combobox__optionsecondary", children: B.secondary })
|
|
7376
7380
|
] }),
|
|
7377
7381
|
A && /* @__PURE__ */ e("span", { className: "select-combobox__check", "aria-hidden": "true", children: /* @__PURE__ */ e(Ae, {}) })
|
|
7378
7382
|
]
|
|
7379
7383
|
},
|
|
7380
|
-
|
|
7384
|
+
B.value
|
|
7381
7385
|
);
|
|
7382
7386
|
}) })
|
|
7383
7387
|
] })
|
|
@@ -7390,11 +7394,11 @@ const Zo = R(function({ label: n, value: l, onChange: c, options: s, placeholder
|
|
|
7390
7394
|
{ value: "dark", label: "Escuro", icon: /* @__PURE__ */ e(Zl, {}) },
|
|
7391
7395
|
{ value: "system", label: "Sistema", icon: /* @__PURE__ */ e(Vn, {}) }
|
|
7392
7396
|
];
|
|
7393
|
-
function
|
|
7397
|
+
function Uo(t) {
|
|
7394
7398
|
var n;
|
|
7395
7399
|
return t === "system" ? (n = window.matchMedia) != null && n.call(window, "(prefers-color-scheme: dark)").matches ? "dark" : "light" : t;
|
|
7396
7400
|
}
|
|
7397
|
-
function
|
|
7401
|
+
function qo({ value: t, onChange: n, className: l, ...c }) {
|
|
7398
7402
|
const [s, a] = D(!1), r = q(null), d = Wt.find((o) => o.value === t) ?? Wt[2];
|
|
7399
7403
|
return le(() => {
|
|
7400
7404
|
if (!s) return;
|
|
@@ -7403,12 +7407,12 @@ function Uo({ value: t, onChange: n, className: l, ...c }) {
|
|
|
7403
7407
|
};
|
|
7404
7408
|
return document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
|
|
7405
7409
|
}, [s]), /* @__PURE__ */ m("div", { ...c, className: `select-themeswitcher${l ? " " + l : ""}`, ref: r, children: [
|
|
7406
|
-
/* @__PURE__ */ e(
|
|
7410
|
+
/* @__PURE__ */ e(Qc, { active: s, onClick: () => a((o) => !o), children: /* @__PURE__ */ m("span", { className: "select-themeswitcher__current", children: [
|
|
7407
7411
|
d.icon,
|
|
7408
7412
|
d.label
|
|
7409
7413
|
] }) }),
|
|
7410
|
-
s && /* @__PURE__ */ e("div", { className: "select-themeswitcher__popover", children: /* @__PURE__ */ e(
|
|
7411
|
-
|
|
7414
|
+
s && /* @__PURE__ */ e("div", { className: "select-themeswitcher__popover", children: /* @__PURE__ */ e(Kc, { children: Wt.map((o) => /* @__PURE__ */ e(
|
|
7415
|
+
Jc,
|
|
7412
7416
|
{
|
|
7413
7417
|
icon: o.icon,
|
|
7414
7418
|
active: o.value === t,
|
|
@@ -7423,22 +7427,22 @@ function Uo({ value: t, onChange: n, className: l, ...c }) {
|
|
|
7423
7427
|
] });
|
|
7424
7428
|
}
|
|
7425
7429
|
const Ml = Xt(!1);
|
|
7426
|
-
function
|
|
7430
|
+
function Yo({
|
|
7427
7431
|
children: t,
|
|
7428
7432
|
stacked: n = !1,
|
|
7429
7433
|
loading: l = !1
|
|
7430
7434
|
}) {
|
|
7431
|
-
const c =
|
|
7435
|
+
const c = Et({ selector: ".select-detail", y: 8, duration: 0.45, stagger: 0.05, scroll: !0 });
|
|
7432
7436
|
return /* @__PURE__ */ e(Ml.Provider, { value: l, children: /* @__PURE__ */ e("div", { className: `select-detaillist${n ? " select-detaillist--stacked" : ""}`, ref: c, children: t }) });
|
|
7433
7437
|
}
|
|
7434
|
-
const
|
|
7438
|
+
const zo = R(function({ label: n, children: l, action: c, align: s = "center", loading: a, className: r, ...d }, o) {
|
|
7435
7439
|
const i = zt(Ml), h = a ?? i;
|
|
7436
7440
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-detail select-detail--${s}${r ? " " + r : ""}`, children: [
|
|
7437
7441
|
/* @__PURE__ */ e("div", { className: "select-detail__label", children: n }),
|
|
7438
7442
|
/* @__PURE__ */ e("div", { className: "select-detail__value", children: h ? /* @__PURE__ */ e("span", { className: "select-skeleton select-detail__skel" }) : l }),
|
|
7439
7443
|
c && /* @__PURE__ */ e("div", { className: "select-detail__action", children: c })
|
|
7440
7444
|
] });
|
|
7441
|
-
}),
|
|
7445
|
+
}), Xo = R(function({ steps: n, current: l, onSelect: c, className: s, ...a }, r) {
|
|
7442
7446
|
return /* @__PURE__ */ e("ol", { ref: r, ...a, className: `select-steps${s ? " " + s : ""}`, children: n.map((d, o) => {
|
|
7443
7447
|
const i = o < l ? "done" : o === l ? "current" : "todo", h = !!c && o < l, u = /* @__PURE__ */ m(_e, { children: [
|
|
7444
7448
|
/* @__PURE__ */ e("span", { className: "select-steps__num", "aria-hidden": "true", children: i === "done" ? /* @__PURE__ */ e(Ae, {}) : o + 1 }),
|
|
@@ -7446,7 +7450,7 @@ const Yo = R(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
7446
7450
|
] });
|
|
7447
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);
|
|
7448
7452
|
}) });
|
|
7449
|
-
}),
|
|
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) {
|
|
7450
7454
|
return /* @__PURE__ */ m("div", { ref: f, ...u, className: `select-plan${i ? " select-plan--featured" : ""}${h ? " " + h : ""}`, children: [
|
|
7451
7455
|
/* @__PURE__ */ m("div", { className: "select-plan__top", children: [
|
|
7452
7456
|
/* @__PURE__ */ m("div", { className: "select-plan__head", children: [
|
|
@@ -7468,7 +7472,7 @@ const Yo = R(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
7468
7472
|
] }, v)) })
|
|
7469
7473
|
] })
|
|
7470
7474
|
] });
|
|
7471
|
-
}),
|
|
7475
|
+
}), Jo = R(function({ title: n, description: l, headerAction: c, footer: s, children: a, className: r, ...d }, o) {
|
|
7472
7476
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-listcard${r ? " " + r : ""}`, children: [
|
|
7473
7477
|
(n || c) && /* @__PURE__ */ m("div", { className: "select-listcard__head", children: [
|
|
7474
7478
|
/* @__PURE__ */ m("div", { className: "select-listcard__heading", children: [
|
|
@@ -7481,7 +7485,7 @@ const Yo = R(function({ label: n, children: l, action: c, align: s = "center", l
|
|
|
7481
7485
|
s && /* @__PURE__ */ e("div", { className: "select-listcard__footer", children: s })
|
|
7482
7486
|
] });
|
|
7483
7487
|
});
|
|
7484
|
-
function
|
|
7488
|
+
function Qo({
|
|
7485
7489
|
media: t,
|
|
7486
7490
|
title: n,
|
|
7487
7491
|
secondary: l,
|
|
@@ -7512,7 +7516,7 @@ const Dn = R(function({ src: n, alt: l = "", size: c = 40, className: s, ...a },
|
|
|
7512
7516
|
}
|
|
7513
7517
|
) : /* @__PURE__ */ e("span", { className: "select-thumb__ph", "aria-hidden": "true", children: /* @__PURE__ */ e(jl, {}) }) });
|
|
7514
7518
|
});
|
|
7515
|
-
function
|
|
7519
|
+
function Ps({
|
|
7516
7520
|
open: t,
|
|
7517
7521
|
onClose: n,
|
|
7518
7522
|
src: l,
|
|
@@ -7521,7 +7525,7 @@ function Is({
|
|
|
7521
7525
|
}) {
|
|
7522
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" }) }) });
|
|
7523
7527
|
}
|
|
7524
|
-
function
|
|
7528
|
+
function er({
|
|
7525
7529
|
src: t,
|
|
7526
7530
|
alt: n = "",
|
|
7527
7531
|
size: l = 40,
|
|
@@ -7541,10 +7545,10 @@ function Qo({
|
|
|
7541
7545
|
children: /* @__PURE__ */ e(Dn, { src: t, size: l, alt: n })
|
|
7542
7546
|
}
|
|
7543
7547
|
),
|
|
7544
|
-
s && /* @__PURE__ */ e(
|
|
7548
|
+
s && /* @__PURE__ */ e(Ps, { open: !0, onClose: () => a(!1), src: t, alt: n, title: c ?? n })
|
|
7545
7549
|
] }) : /* @__PURE__ */ e(Dn, { size: l, alt: n });
|
|
7546
7550
|
}
|
|
7547
|
-
const
|
|
7551
|
+
const tr = R(function({ media: n, title: l, secondary: c, className: s, ...a }, r) {
|
|
7548
7552
|
return /* @__PURE__ */ m("span", { ref: r, ...a, className: `select-mediacell${s ? " " + s : ""}`, children: [
|
|
7549
7553
|
n && /* @__PURE__ */ e("span", { className: "select-mediacell__media", children: n }),
|
|
7550
7554
|
/* @__PURE__ */ m("span", { className: "select-mediacell__text", children: [
|
|
@@ -7553,7 +7557,7 @@ const er = R(function({ media: n, title: l, secondary: c, className: s, ...a },
|
|
|
7553
7557
|
] })
|
|
7554
7558
|
] });
|
|
7555
7559
|
});
|
|
7556
|
-
function
|
|
7560
|
+
function nr() {
|
|
7557
7561
|
const [t, n] = D(
|
|
7558
7562
|
() => typeof navigator < "u" && navigator.onLine === !1
|
|
7559
7563
|
);
|
|
@@ -7577,7 +7581,7 @@ function tr() {
|
|
|
7577
7581
|
}
|
|
7578
7582
|
);
|
|
7579
7583
|
}
|
|
7580
|
-
function
|
|
7584
|
+
function Rs(t) {
|
|
7581
7585
|
return Array.isArray(t) ? t.filter((n) => n != null && typeof n == "object").map((n) => ({
|
|
7582
7586
|
name: String(n.name ?? n.key ?? ""),
|
|
7583
7587
|
value: n.value == null ? "" : String(n.value)
|
|
@@ -7586,8 +7590,8 @@ function Ps(t) {
|
|
|
7586
7590
|
value: l == null ? "" : String(l)
|
|
7587
7591
|
})) : [];
|
|
7588
7592
|
}
|
|
7589
|
-
const
|
|
7590
|
-
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;
|
|
7591
7595
|
return /* @__PURE__ */ m("div", { ref: u, ...h, className: `select-kv${i ? " " + i : ""}`, children: [
|
|
7592
7596
|
f.map(($, _) => /* @__PURE__ */ m("div", { className: "select-kv__row", children: [
|
|
7593
7597
|
/* @__PURE__ */ e("div", { className: "select-kv__field", children: a ? /* @__PURE__ */ e(
|
|
@@ -7626,7 +7630,7 @@ const nr = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7626
7630
|
] }) }),
|
|
7627
7631
|
o && /* @__PURE__ */ e("p", { className: "select-kv__hint", children: o })
|
|
7628
7632
|
] });
|
|
7629
|
-
}), Tn = (t) => String(t).padStart(2, "0"),
|
|
7633
|
+
}), Tn = (t) => String(t).padStart(2, "0"), Ds = {
|
|
7630
7634
|
"en-US": {
|
|
7631
7635
|
weekdays: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
7632
7636
|
months: [
|
|
@@ -7674,7 +7678,7 @@ const nr = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7674
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) => {
|
|
7675
7679
|
const n = /* @__PURE__ */ new Date();
|
|
7676
7680
|
return { from: new Date(n.getTime() - t * 6e4), to: n };
|
|
7677
|
-
},
|
|
7681
|
+
}, Ts = [
|
|
7678
7682
|
{ id: "15m", label: "Last 15 minutes", range: () => Nt(15) },
|
|
7679
7683
|
{ id: "1h", label: "Last 1 hour", range: () => Nt(60) },
|
|
7680
7684
|
{ id: "3h", label: "Last 3 hours", range: () => Nt(180) },
|
|
@@ -7685,12 +7689,12 @@ const nr = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7685
7689
|
], qe = (t) => {
|
|
7686
7690
|
const n = Re(/* @__PURE__ */ new Date());
|
|
7687
7691
|
return { from: At(n, -t), to: n };
|
|
7688
|
-
},
|
|
7692
|
+
}, Ws = (t) => {
|
|
7689
7693
|
const n = At(Re(/* @__PURE__ */ new Date()), -1);
|
|
7690
7694
|
return { from: n, to: n };
|
|
7691
|
-
},
|
|
7695
|
+
}, Os = [
|
|
7692
7696
|
{ id: "today", label: "Hoje", range: () => qe(0) },
|
|
7693
|
-
{ id: "yesterday", label: "Ontem", range: () =>
|
|
7697
|
+
{ id: "yesterday", label: "Ontem", range: () => Ws() },
|
|
7694
7698
|
{ id: "7d", label: "Últimos 7 dias", range: () => qe(6) },
|
|
7695
7699
|
{ id: "10d", label: "Últimos 10 dias", range: () => qe(9) },
|
|
7696
7700
|
{ id: "15d", label: "Últimos 15 dias", range: () => qe(14) },
|
|
@@ -7698,21 +7702,21 @@ const nr = R(function({ pairs: n, onChange: l, keyPlaceholder: c = "Chave", valu
|
|
|
7698
7702
|
{ id: "30d", label: "Últimos 30 dias", range: () => qe(29) },
|
|
7699
7703
|
{ id: "90d", label: "Últimos 90 dias", range: () => qe(89) }
|
|
7700
7704
|
];
|
|
7701
|
-
function
|
|
7705
|
+
function Hs(t) {
|
|
7702
7706
|
if (!t) return "—";
|
|
7703
7707
|
let n = t.getHours();
|
|
7704
7708
|
const l = n < 12 ? "AM" : "PM";
|
|
7705
7709
|
return n = n % 12 || 12, `${n} : ${String(t.getMinutes()).padStart(2, "0")} ${l}`;
|
|
7706
7710
|
}
|
|
7707
|
-
const
|
|
7708
|
-
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) => {
|
|
7709
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 }));
|
|
7710
7714
|
}, L = (A) => {
|
|
7711
7715
|
if (A.disabled || !A.range) return;
|
|
7712
7716
|
const F = A.range();
|
|
7713
7717
|
$(F), S(A.id), F.from && p(xt(F.from));
|
|
7714
|
-
},
|
|
7715
|
-
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: [
|
|
7716
7720
|
/* @__PURE__ */ e("div", { className: "select-datepicker__presets", role: "listbox", "aria-label": "Intervalos", children: l.map((A) => {
|
|
7717
7721
|
const F = b === A.id;
|
|
7718
7722
|
return /* @__PURE__ */ m(
|
|
@@ -7736,7 +7740,7 @@ const Hs = R(function({ value: n, presets: l = Ds, onApply: c, onCancel: s, acce
|
|
|
7736
7740
|
/* @__PURE__ */ e("div", { className: "select-datepicker__fields", children: ["from", "to"].map((A) => /* @__PURE__ */ m("div", { className: "select-datepicker__fieldrow", children: [
|
|
7737
7741
|
/* @__PURE__ */ e("span", { className: "select-datepicker__fieldlabel", children: A === "from" ? g.from : g.to }),
|
|
7738
7742
|
/* @__PURE__ */ e("span", { className: "select-datepicker__pill select-datepicker__pill--date", children: N(x[A]) }),
|
|
7739
|
-
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]) })
|
|
7740
7744
|
] }, A)) }),
|
|
7741
7745
|
/* @__PURE__ */ m("div", { className: "select-datepicker__calhead", children: [
|
|
7742
7746
|
/* @__PURE__ */ e(
|
|
@@ -7768,8 +7772,8 @@ const Hs = R(function({ value: n, presets: l = Ds, onApply: c, onCancel: s, acce
|
|
|
7768
7772
|
/* @__PURE__ */ m("div", { className: "select-datepicker__grid", role: "grid", children: [
|
|
7769
7773
|
g.weekdays.map((A, F) => /* @__PURE__ */ e("div", { className: "select-datepicker__weekday", children: A }, F)),
|
|
7770
7774
|
M.map((A) => {
|
|
7771
|
-
const F = A.getMonth() !== _.getMonth(),
|
|
7772
|
-
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());
|
|
7773
7777
|
})
|
|
7774
7778
|
] }),
|
|
7775
7779
|
/* @__PURE__ */ m("div", { className: "select-datepicker__footer", children: [
|
|
@@ -7779,7 +7783,7 @@ const Hs = R(function({ value: n, presets: l = Ds, onApply: c, onCancel: s, acce
|
|
|
7779
7783
|
] })
|
|
7780
7784
|
] }) });
|
|
7781
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()}`;
|
|
7782
|
-
function
|
|
7786
|
+
function Vs(t, n) {
|
|
7783
7787
|
var l;
|
|
7784
7788
|
for (const c of n) {
|
|
7785
7789
|
const s = (l = c.range) == null ? void 0 : l.call(c);
|
|
@@ -7787,10 +7791,10 @@ function js(t, n) {
|
|
|
7787
7791
|
}
|
|
7788
7792
|
return Ht(t.start, t.end) ? jt(t.start) : `${jt(t.start)} – ${jt(t.end)}`;
|
|
7789
7793
|
}
|
|
7790
|
-
function
|
|
7794
|
+
function cr({
|
|
7791
7795
|
value: t,
|
|
7792
7796
|
onChange: n,
|
|
7793
|
-
presets: l =
|
|
7797
|
+
presets: l = Os,
|
|
7794
7798
|
maxDate: c,
|
|
7795
7799
|
placement: s = "bottom-end",
|
|
7796
7800
|
size: a = "md",
|
|
@@ -7815,11 +7819,11 @@ function lr({
|
|
|
7815
7819
|
icon: /* @__PURE__ */ e(qn, {}),
|
|
7816
7820
|
trailingIcon: /* @__PURE__ */ e(be, {}),
|
|
7817
7821
|
onClick: () => i((u) => !u),
|
|
7818
|
-
children:
|
|
7822
|
+
children: Vs(t, l)
|
|
7819
7823
|
}
|
|
7820
7824
|
),
|
|
7821
7825
|
children: /* @__PURE__ */ e(
|
|
7822
|
-
|
|
7826
|
+
js,
|
|
7823
7827
|
{
|
|
7824
7828
|
embedded: !0,
|
|
7825
7829
|
locale: "pt-BR",
|
|
@@ -7836,7 +7840,7 @@ function lr({
|
|
|
7836
7840
|
}
|
|
7837
7841
|
);
|
|
7838
7842
|
}
|
|
7839
|
-
function
|
|
7843
|
+
function Zs({ size: t }) {
|
|
7840
7844
|
return /* @__PURE__ */ e("svg", { width: t, height: t, viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
7841
7845
|
"path",
|
|
7842
7846
|
{
|
|
@@ -7845,10 +7849,10 @@ function Vs({ size: t }) {
|
|
|
7845
7849
|
}
|
|
7846
7850
|
) });
|
|
7847
7851
|
}
|
|
7848
|
-
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) {
|
|
7849
7853
|
const h = !!c && !r, [u, f] = D(null), g = u ?? n;
|
|
7850
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) => {
|
|
7851
|
-
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 }) });
|
|
7852
7856
|
return h ? /* @__PURE__ */ e(
|
|
7853
7857
|
"button",
|
|
7854
7858
|
{
|
|
@@ -7864,15 +7868,15 @@ const cr = R(function({ value: n, max: l = 5, onChange: c, size: s = 20, label:
|
|
|
7864
7868
|
y
|
|
7865
7869
|
) : /* @__PURE__ */ e("span", { children: $ }, y);
|
|
7866
7870
|
}) });
|
|
7867
|
-
}),
|
|
7868
|
-
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),
|
|
7869
|
-
const
|
|
7870
|
-
if (d && C(
|
|
7871
|
-
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);
|
|
7872
7876
|
Number.isFinite(T) && c(_(T));
|
|
7873
7877
|
}, A = (F) => {
|
|
7874
|
-
const
|
|
7875
|
-
d && C(String(
|
|
7878
|
+
const E = _(p(b + F));
|
|
7879
|
+
d && C(String(E)), c(E);
|
|
7876
7880
|
};
|
|
7877
7881
|
return /* @__PURE__ */ m("div", { ref: x, ...y, className: `select-field${g === "sm" ? " select-field--sm" : ""}${v ? " " + v : ""}`, children: [
|
|
7878
7882
|
n && /* @__PURE__ */ e(lt, { htmlFor: $, label: n }),
|
|
@@ -7899,7 +7903,7 @@ const cr = R(function({ value: n, max: l = 5, onChange: c, size: s = 20, label:
|
|
|
7899
7903
|
disabled: o,
|
|
7900
7904
|
placeholder: f,
|
|
7901
7905
|
value: L,
|
|
7902
|
-
onChange: (F) =>
|
|
7906
|
+
onChange: (F) => B(F.target.value),
|
|
7903
7907
|
onFocus: () => {
|
|
7904
7908
|
w(!0), C(l == null ? "" : String(l));
|
|
7905
7909
|
},
|
|
@@ -7924,7 +7928,7 @@ const cr = R(function({ value: n, max: l = 5, onChange: c, size: s = 20, label:
|
|
|
7924
7928
|
h ? /* @__PURE__ */ e("p", { className: "select-field__error", children: h }) : i ? /* @__PURE__ */ e("p", { className: "select-field__hint", children: i }) : null
|
|
7925
7929
|
] });
|
|
7926
7930
|
});
|
|
7927
|
-
function
|
|
7931
|
+
function or({
|
|
7928
7932
|
items: t,
|
|
7929
7933
|
onChange: n,
|
|
7930
7934
|
renderRow: l,
|
|
@@ -7978,7 +7982,7 @@ function ar({
|
|
|
7978
7982
|
] })
|
|
7979
7983
|
] });
|
|
7980
7984
|
}
|
|
7981
|
-
function
|
|
7985
|
+
function rr({
|
|
7982
7986
|
title: t,
|
|
7983
7987
|
subtitle: n,
|
|
7984
7988
|
backTo: l,
|
|
@@ -8010,7 +8014,7 @@ function or({
|
|
|
8010
8014
|
}
|
|
8011
8015
|
);
|
|
8012
8016
|
}
|
|
8013
|
-
const
|
|
8017
|
+
const ir = R(function({ label: n, checked: l, onChange: c, disabled: s = !1, hint: a, className: r, ...d }, o) {
|
|
8014
8018
|
return /* @__PURE__ */ m("div", { ref: o, ...d, className: `select-switchfield${s ? " is-disabled" : ""}${r ? " " + r : ""}`, children: [
|
|
8015
8019
|
/* @__PURE__ */ m("div", { className: "select-switchfield__row", children: [
|
|
8016
8020
|
/* @__PURE__ */ e(nn, { checked: l, onChange: c, disabled: s, label: n }),
|
|
@@ -8027,8 +8031,8 @@ const rr = R(function({ label: n, checked: l, onChange: c, disabled: s = !1, hin
|
|
|
8027
8031
|
] }),
|
|
8028
8032
|
a != null && /* @__PURE__ */ e("span", { className: "select-switchfield__hint", children: a })
|
|
8029
8033
|
] });
|
|
8030
|
-
}),
|
|
8031
|
-
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 }) {
|
|
8032
8036
|
return /* @__PURE__ */ e(
|
|
8033
8037
|
We,
|
|
8034
8038
|
{
|
|
@@ -8050,7 +8054,7 @@ function ir({ label: t, value: n, onChange: l, disabled: c = !1, hint: s, error:
|
|
|
8050
8054
|
{
|
|
8051
8055
|
type: "color",
|
|
8052
8056
|
className: "select-color-swatch",
|
|
8053
|
-
value:
|
|
8057
|
+
value: Gs(n) ? n : "#000000",
|
|
8054
8058
|
onChange: (r) => l(r.target.value),
|
|
8055
8059
|
disabled: c,
|
|
8056
8060
|
"aria-label": t ? `${t} — escolher cor` : "Escolher cor"
|
|
@@ -8059,13 +8063,13 @@ function ir({ label: t, value: n, onChange: l, disabled: c = !1, hint: s, error:
|
|
|
8059
8063
|
}
|
|
8060
8064
|
);
|
|
8061
8065
|
}
|
|
8062
|
-
function
|
|
8066
|
+
function Us(t) {
|
|
8063
8067
|
return new Promise((n, l) => {
|
|
8064
8068
|
const c = new FileReader();
|
|
8065
8069
|
c.onload = () => n(String(c.result)), c.onerror = () => l(c.error), c.readAsDataURL(t);
|
|
8066
8070
|
});
|
|
8067
8071
|
}
|
|
8068
|
-
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) {
|
|
8069
8073
|
const [f, g] = D([]), [v, y] = D(null), x = l ? [l] : [], $ = async (_) => {
|
|
8070
8074
|
const p = _[0];
|
|
8071
8075
|
if (!p) {
|
|
@@ -8073,7 +8077,7 @@ const dr = R(function({ label: n, value: l, onChange: c, accept: s = "image/*",
|
|
|
8073
8077
|
return;
|
|
8074
8078
|
}
|
|
8075
8079
|
if (y(null), !o) {
|
|
8076
|
-
c(await
|
|
8080
|
+
c(await Us(p)), g([]);
|
|
8077
8081
|
return;
|
|
8078
8082
|
}
|
|
8079
8083
|
g([p]);
|
|
@@ -8103,7 +8107,7 @@ const dr = R(function({ label: n, value: l, onChange: c, accept: s = "image/*",
|
|
|
8103
8107
|
),
|
|
8104
8108
|
v && /* @__PURE__ */ e("span", { className: "select-imagefield__error", children: v })
|
|
8105
8109
|
] });
|
|
8106
|
-
}),
|
|
8110
|
+
}), hr = R(function({ items: n, multiple: l = !1, defaultOpenIds: c = [], className: s, ...a }, r) {
|
|
8107
8111
|
const [d, o] = D(() => new Set(c)), i = (h) => o((u) => {
|
|
8108
8112
|
const f = u.has(h), g = new Set(l ? u : []);
|
|
8109
8113
|
return f ? g.delete(h) : g.add(h), g;
|
|
@@ -8140,16 +8144,16 @@ const dr = R(function({ label: n, value: l, onChange: c, accept: s = "image/*",
|
|
|
8140
8144
|
}) });
|
|
8141
8145
|
});
|
|
8142
8146
|
export {
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8147
|
+
Qs as AUTH_FX_VARIANTS,
|
|
8148
|
+
va as AppleIcon,
|
|
8149
|
+
Pa as AppsIcon,
|
|
8146
8150
|
On as ArrowLeftIcon,
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8151
|
+
ba as ArrowRightIcon,
|
|
8152
|
+
ya as AtIcon,
|
|
8153
|
+
ma as AuthAppIcon,
|
|
8154
|
+
ua as BellIcon,
|
|
8155
|
+
oa as BookmarkIcon,
|
|
8156
|
+
Ma as BuildingIcon,
|
|
8153
8157
|
qn as CalendarIcon,
|
|
8154
8158
|
Ea as ChartLineIcon,
|
|
8155
8159
|
ql as CheckCircleIcon,
|
|
@@ -8159,243 +8163,243 @@ export {
|
|
|
8159
8163
|
dt as ChevronRightIcon,
|
|
8160
8164
|
Yn as ChevronUpIcon,
|
|
8161
8165
|
zl as ClipboardIcon,
|
|
8162
|
-
|
|
8166
|
+
aa as ClockIcon,
|
|
8163
8167
|
Ke as CloseIcon,
|
|
8164
8168
|
Qt as CopyIcon,
|
|
8165
|
-
|
|
8169
|
+
Sa as CreditCardIcon,
|
|
8166
8170
|
jl as CubeIcon,
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
+
Ba as DiscountIcon,
|
|
8172
|
+
sa as DotsHorizontalIcon,
|
|
8173
|
+
Ca as EditIcon,
|
|
8174
|
+
Fa as ExportIcon,
|
|
8171
8175
|
Hn as ExternalLinkIcon,
|
|
8172
8176
|
Zn as EyeIcon,
|
|
8173
8177
|
Gn as EyeOffIcon,
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8178
|
+
_a as FacebookIcon,
|
|
8179
|
+
ca as FilterIcon,
|
|
8180
|
+
la as GithubIcon,
|
|
8177
8181
|
Wl as GlobeIcon,
|
|
8178
|
-
|
|
8179
|
-
|
|
8182
|
+
na as GoogleIcon,
|
|
8183
|
+
ka as HomeIcon,
|
|
8180
8184
|
en as InfoIcon,
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8185
|
+
$a as KeyIcon,
|
|
8186
|
+
Aa as LockIcon,
|
|
8187
|
+
fa as MailIcon,
|
|
8188
|
+
Da as MenuIcon,
|
|
8189
|
+
Ra as MinusCircleIcon,
|
|
8186
8190
|
Gl as MobileIcon,
|
|
8187
8191
|
Vn as MonitorIcon,
|
|
8188
8192
|
Zl as MoonIcon,
|
|
8189
8193
|
Xl as NoteIcon,
|
|
8190
|
-
|
|
8191
|
-
|
|
8194
|
+
ga as PasskeyIcon,
|
|
8195
|
+
pa as PhoneIcon,
|
|
8192
8196
|
nt as PlusIcon,
|
|
8193
8197
|
Ul as RefreshIcon,
|
|
8194
|
-
|
|
8195
|
-
|
|
8198
|
+
ha as RocketIcon,
|
|
8199
|
+
D1 as SELECT_COL_DATETIME,
|
|
8196
8200
|
Zt as SELECT_COUNTRIES,
|
|
8197
|
-
|
|
8198
|
-
|
|
8201
|
+
Os as SELECT_DAILY_PRESETS,
|
|
8202
|
+
Ts as SELECT_DATE_PRESETS,
|
|
8199
8203
|
ze as SELECT_SPACE,
|
|
8200
8204
|
uc as SELECT_TRANSACTION_STATUS,
|
|
8201
8205
|
Jt as SearchIcon,
|
|
8202
|
-
|
|
8203
|
-
|
|
8206
|
+
hr as SelectAccordion,
|
|
8207
|
+
L1 as SelectActionCard,
|
|
8204
8208
|
cl as SelectActionList,
|
|
8205
|
-
|
|
8209
|
+
e1 as SelectActionMenu,
|
|
8206
8210
|
ec as SelectAddButton,
|
|
8207
8211
|
ut as SelectAlert,
|
|
8208
|
-
|
|
8209
|
-
|
|
8212
|
+
A1 as SelectAppTile,
|
|
8213
|
+
ea as SelectAuthFx,
|
|
8210
8214
|
Dc as SelectAvatar,
|
|
8211
|
-
|
|
8215
|
+
d1 as SelectBackLink,
|
|
8212
8216
|
nl as SelectBadge,
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8217
|
+
Y1 as SelectBalanceCard,
|
|
8218
|
+
Ua as SelectBankAccountField,
|
|
8219
|
+
Q1 as SelectBarChart,
|
|
8216
8220
|
_c as SelectBox,
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
+
bo as SelectBoxPlot,
|
|
8222
|
+
rr as SelectBuilderLayout,
|
|
8223
|
+
po as SelectBullet,
|
|
8224
|
+
To as SelectBump,
|
|
8221
8225
|
ve as SelectButton,
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
|
|
8229
|
-
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
8243
|
-
|
|
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,
|
|
8244
8248
|
gc as SelectDisclosureButton,
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8250
|
-
|
|
8249
|
+
s1 as SelectDivider,
|
|
8250
|
+
Va as SelectDocumentField,
|
|
8251
|
+
lo as SelectDonut,
|
|
8252
|
+
Js as SelectDotField,
|
|
8253
|
+
$o as SelectDumbbell,
|
|
8254
|
+
z1 as SelectFeeBreakdown,
|
|
8251
8255
|
We as SelectField,
|
|
8252
8256
|
nc as SelectFieldGrid,
|
|
8253
|
-
|
|
8257
|
+
Za as SelectFileDropzone,
|
|
8254
8258
|
wt as SelectFileTile,
|
|
8255
|
-
|
|
8256
|
-
|
|
8257
|
-
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
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,
|
|
8262
8266
|
Eo as SelectGlobe,
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
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,
|
|
8270
8274
|
ge as SelectIconButton,
|
|
8271
|
-
|
|
8272
|
-
|
|
8275
|
+
r1 as SelectIdentityFooter,
|
|
8276
|
+
ur as SelectImageField,
|
|
8273
8277
|
tc as SelectImageUploadField,
|
|
8274
|
-
|
|
8275
|
-
|
|
8278
|
+
Ga as SelectImageUrlsField,
|
|
8279
|
+
Ps as SelectImageZoomModal,
|
|
8276
8280
|
st as SelectInline,
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8281
|
+
l1 as SelectJsonViewer,
|
|
8282
|
+
lr as SelectKeyValueEditor,
|
|
8283
|
+
X1 as SelectKpiCard,
|
|
8280
8284
|
lt as SelectLabelRow,
|
|
8281
|
-
|
|
8285
|
+
eo as SelectLineChart,
|
|
8282
8286
|
Rc as SelectLinkButton,
|
|
8283
|
-
|
|
8284
|
-
|
|
8287
|
+
Jo as SelectListCard,
|
|
8288
|
+
Qo as SelectListRow,
|
|
8285
8289
|
Oc as SelectLoader,
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
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,
|
|
8293
8297
|
It as SelectModal,
|
|
8294
8298
|
at as SelectMoney,
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
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,
|
|
8303
8307
|
Hc as SelectPage,
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
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,
|
|
8313
8317
|
Oe as SelectPopover,
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
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,
|
|
8327
8331
|
ml as SelectSearchInput,
|
|
8328
|
-
|
|
8329
|
-
|
|
8332
|
+
x1 as SelectSection,
|
|
8333
|
+
Ja as SelectSegmented,
|
|
8330
8334
|
Vt as SelectSelect,
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
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,
|
|
8338
8342
|
Gt as SelectStack,
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8343
|
+
to as SelectStackedArea,
|
|
8344
|
+
Qa as SelectStatusBadge,
|
|
8345
|
+
Xo as SelectSteps,
|
|
8346
|
+
So as SelectStreamGraph,
|
|
8347
|
+
Co as SelectSunburst,
|
|
8348
|
+
j1 as SelectSurface,
|
|
8345
8349
|
nn as SelectSwitch,
|
|
8346
|
-
|
|
8347
|
-
|
|
8350
|
+
ir as SelectSwitchField,
|
|
8351
|
+
zc as SelectTable,
|
|
8348
8352
|
xn as SelectTableCell,
|
|
8349
|
-
|
|
8353
|
+
Xc as SelectTableEmpty,
|
|
8350
8354
|
bn as SelectTableRow,
|
|
8351
|
-
|
|
8352
|
-
|
|
8355
|
+
y1 as SelectTabs,
|
|
8356
|
+
H1 as SelectTagSelect,
|
|
8353
8357
|
Xe as SelectText,
|
|
8354
|
-
|
|
8355
|
-
|
|
8358
|
+
Oa as SelectTextarea,
|
|
8359
|
+
qo as SelectThemeSwitcher,
|
|
8356
8360
|
Dn as SelectThumbnail,
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8361
|
+
Io as SelectTicker,
|
|
8362
|
+
c1 as SelectTimeline,
|
|
8363
|
+
V1 as SelectToastProvider,
|
|
8364
|
+
qa as SelectToggleList,
|
|
8365
|
+
za as SelectTogglePanel,
|
|
8366
|
+
Ya as SelectToggleRow,
|
|
8363
8367
|
E1 as SelectTooltip,
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
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,
|
|
8376
8380
|
jn as SelectorIcon,
|
|
8377
|
-
|
|
8381
|
+
La as SendIcon,
|
|
8378
8382
|
Tl as Setting4Icon,
|
|
8379
8383
|
Yl as SettingsIcon,
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8384
|
+
xa as ShieldIcon,
|
|
8385
|
+
ia as SplitIcon,
|
|
8386
|
+
ra as StarIcon,
|
|
8387
|
+
Ia as StoreIcon,
|
|
8388
|
+
Ta as StorefrontIcon,
|
|
8385
8389
|
Vl as SunIcon,
|
|
8386
8390
|
Hl as TerminalIcon,
|
|
8387
8391
|
Un as TrashIcon,
|
|
8388
8392
|
kt as UploadIcon,
|
|
8389
|
-
|
|
8390
|
-
|
|
8393
|
+
da as UserIcon,
|
|
8394
|
+
wa as WalletIcon,
|
|
8391
8395
|
Ol as WarningIcon,
|
|
8392
|
-
|
|
8396
|
+
Na as Web3Icon,
|
|
8393
8397
|
ht as detectSelectTheme,
|
|
8394
8398
|
dc as dialCodeOf,
|
|
8395
8399
|
Wc as passwordScore,
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8400
|
+
Uo as resolveSelectTheme,
|
|
8401
|
+
T1 as useSelectPageSize,
|
|
8402
|
+
Z1 as useSelectToast,
|
|
8399
8403
|
bl as useSelectValueVisibility
|
|
8400
8404
|
};
|
|
8401
8405
|
//# sourceMappingURL=index.js.map
|