@selectwin/kit 0.1.101 → 0.1.103
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/SelectSearchMenu.d.ts +20 -0
- package/dist/SelectTable.d.ts +22 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +893 -705
- package/dist/internal/listChrome.d.ts +8 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -506,17 +506,17 @@ var k = (e) => {
|
|
|
506
506
|
let t = Math.max(e.w(), 1), n = Math.max(e.h(), 1);
|
|
507
507
|
L = (t * Math.abs(m) + n * Math.abs(h)) / 2, z = (t * Math.abs(h) + n * Math.abs(m)) / 2, B = Math.min(1, Math.sqrt(42e4 / (4 * L * z))), M = Math.max(2, Math.round(2 * L * B)), N = Math.max(2, Math.round(2 * z * B)), re = Math.min(2.6, Math.max(.7, .62 / B)), D || (D = document.createElement("canvas")), D.width = M, D.height = N, O = D.getContext("2d"), k = (O == null ? void 0 : O.createImageData(M, N)) ?? null, A = k ? new Uint32Array(k.data.buffer) : null, j = new Float32Array(M);
|
|
508
508
|
}
|
|
509
|
-
let
|
|
510
|
-
let o = e *
|
|
509
|
+
let ie = 1, ae = 0, oe = 0, H = 0, U = 0, W = 1, G = 0, se = 0, ce = 0, le = 0, K = F.TENSION, q = (e, t, r, i, a) => {
|
|
510
|
+
let o = e * ie + t * ae, s = -e * ae + t * ie - oe, c = r * ie + i * ae, l = -r * ae + i * ie;
|
|
511
511
|
l < 0 && (c = -c, l = -l);
|
|
512
512
|
let f = F.CAM - s;
|
|
513
513
|
if (f < n) {
|
|
514
|
-
E.x[
|
|
514
|
+
E.x[G] = NaN, E.z[G] = -1e9, E.a[G] = 0, E.lift[G] = 0, G++;
|
|
515
515
|
return;
|
|
516
516
|
}
|
|
517
517
|
let g = (f - n) * .5263157894736842;
|
|
518
518
|
g > 1 && (g = 1);
|
|
519
|
-
let y = g * g * (3 - 2 * g), b = o * F.FOCAL / f *
|
|
519
|
+
let y = g * g * (3 - 2 * g), b = o * F.FOCAL / f * le + M * .5, x = -o, S = -H, C = f, w = 1 / Math.sqrt(x * x + S * S + C * C);
|
|
520
520
|
x *= w, S *= w, C *= w;
|
|
521
521
|
let T = c * x + l * C;
|
|
522
522
|
T < 0 && (T = 0);
|
|
@@ -528,30 +528,30 @@ var k = (e) => {
|
|
|
528
528
|
A = v[0] + x, j = v[1] + S, N = v[2] + C, P = 1 / Math.sqrt(A * A + j * j + N * N), I = (c * A + l * N) * P, I < 0 && (I = 0);
|
|
529
529
|
let te = I * I, ne = te * te, z = ne * ne, B = (-(-x + 2 * T * c) * h - S * m + .2) * .8333333333333334;
|
|
530
530
|
B < 0 ? B = 0 : B > 1 && (B = 1);
|
|
531
|
-
let re = B * B * (3 - 2 * B), V = R * .9 + z * .45,
|
|
532
|
-
|
|
531
|
+
let re = B * B * (3 - 2 * B), V = R * .9 + z * .45, U = k * .55 + V;
|
|
532
|
+
U > 1 && (U = 1), E.lift[G] = U, E.a[G] = (u + d * k + p * V + re * .06) * a * W * y, E.x[G] = b, E.z[G] = s, b < se && (se = b), b > ce && (ce = b), G++;
|
|
533
533
|
}, ue = (e, t) => {
|
|
534
|
-
let n = e *
|
|
534
|
+
let n = e * U, r = Math.cos(n), i = -Math.sin(n) * K, a = 1 / Math.sqrt(K * K * r * r + 1), o = K * r * a, s = a;
|
|
535
535
|
for (let r = 0; r < 14; r++) {
|
|
536
536
|
let a = t ? 13 - r : r, c = y[a], l = b[a], u = o * c + e * s * l, d = -e * o * l + s * c;
|
|
537
|
-
|
|
537
|
+
q(n + F.ROUND * (u - o), i + F.ROUND * (d - s), u, d, x[a]);
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
function de(t, n, r) {
|
|
541
541
|
let i = Math.max(e.h(), 1), a = r * F.TWIST_SPEED * .15, o = r * F.TWIST_SPEED * .2, s = -((t + .5) / N * 2 * z - z) / (i * F.ZOOM);
|
|
542
|
-
|
|
543
|
-
for (let e = 0; e < 2; e++)
|
|
544
|
-
|
|
545
|
-
let c =
|
|
546
|
-
|
|
547
|
-
let d = 2 *
|
|
542
|
+
H = s * F.CAM / F.FOCAL;
|
|
543
|
+
for (let e = 0; e < 2; e++) H = s * (F.CAM + Math.sin(H * 1.2 + a) * F.BILLOW) / F.FOCAL;
|
|
544
|
+
oe = Math.sin(H * 1.2 + a) * F.BILLOW;
|
|
545
|
+
let c = H < 0 ? -H : H, l = P(7, 1, c), u = H * S.twist * P(8, 0, c) - o;
|
|
546
|
+
ie = Math.cos(u), ae = Math.sin(u), U = F.WIDTH * l, W = P(.06, .46, ie < 0 ? -ie : ie) * P(0, .06, l), E = n, G = 0, se = 1e9, ce = -1e9, ue(-1, !0);
|
|
547
|
+
let d = 2 * U / 107, f = Math.cos(d), p = Math.sin(d), m = Math.cos(-U), h = Math.sin(-U);
|
|
548
548
|
for (let e = 0; e < 108; e++) {
|
|
549
|
-
let t = 1 / Math.sqrt(
|
|
550
|
-
|
|
549
|
+
let t = 1 / Math.sqrt(K * K * m * m + 1);
|
|
550
|
+
q(-U + e * d, -h * K, K * m * t, t, 1);
|
|
551
551
|
let n = m * f - h * p;
|
|
552
552
|
h = h * f + m * p, m = n;
|
|
553
553
|
}
|
|
554
|
-
ue(1, !1), n.minx =
|
|
554
|
+
ue(1, !1), n.minx = se, n.maxx = ce;
|
|
555
555
|
}
|
|
556
556
|
function fe(e, n, r, u, d, f) {
|
|
557
557
|
let p = A, m = n.minx < r.minx ? n.minx : r.minx, h = u.minx < d.minx ? u.minx : d.minx;
|
|
@@ -561,52 +561,52 @@ var k = (e) => {
|
|
|
561
561
|
let v = Math.floor(m), y = Math.ceil(g);
|
|
562
562
|
if (y < 0 || v > M - 1) return;
|
|
563
563
|
v < 0 && (v = 0), y > M - 1 && (y = M - 1), j.fill(-1e9, v, y + 1);
|
|
564
|
-
let b = e * M, x = f * f, S = x * f, C = -.5 * S + x - .5 * f, w = 1.5 * S - 2.5 * x + 1, T = -1.5 * S + 2 * x + .5 * f, E = .5 * S - .5 * x, D = n.x, O = r.x, k = u.x, N = d.x, P = n.z, F = r.z, L = u.z, z = d.z, B = n.lift, re = r.lift, V = u.lift,
|
|
564
|
+
let b = e * M, x = f * f, S = x * f, C = -.5 * S + x - .5 * f, w = 1.5 * S - 2.5 * x + 1, T = -1.5 * S + 2 * x + .5 * f, E = .5 * S - .5 * x, D = n.x, O = r.x, k = u.x, N = d.x, P = n.z, F = r.z, L = u.z, z = d.z, B = n.lift, re = r.lift, V = u.lift, ie = d.lift, ae = n.a, oe = r.a, H = u.a, U = d.a, W = C * D[0] + w * O[0] + T * k[0] + E * N[0], G = C * P[0] + w * F[0] + T * L[0] + E * z[0], se = C * B[0] + w * re[0] + T * V[0] + E * ie[0], ce = C * ae[0] + w * oe[0] + T * H[0] + E * U[0];
|
|
565
565
|
for (let e = 1; e < 136; e++) {
|
|
566
|
-
let t = C * D[e] + w * O[e] + T * k[e] + E * N[e], n = C * P[e] + w * F[e] + T * L[e] + E * z[e], r = C * B[e] + w * re[e] + T * V[e] + E *
|
|
567
|
-
if (!Number.isNaN(
|
|
568
|
-
let e = Math.max(v, Math.ceil((
|
|
566
|
+
let t = C * D[e] + w * O[e] + T * k[e] + E * N[e], n = C * P[e] + w * F[e] + T * L[e] + E * z[e], r = C * B[e] + w * re[e] + T * V[e] + E * ie[e], u = C * ae[e] + w * oe[e] + T * H[e] + E * U[e];
|
|
567
|
+
if (!Number.isNaN(W) && !Number.isNaN(t)) {
|
|
568
|
+
let e = Math.max(v, Math.ceil((W < t ? W : t) - .5)), d = Math.min(y, Math.floor((W > t ? W : t) - .5));
|
|
569
569
|
if (d < e) {
|
|
570
|
-
let n = Math.floor((
|
|
570
|
+
let n = Math.floor((W + t) * .5);
|
|
571
571
|
n >= v && n <= y && (e = n, d = n);
|
|
572
572
|
}
|
|
573
573
|
if (d >= e) {
|
|
574
|
-
let f = t -
|
|
574
|
+
let f = t - W, m = f === 0 ? 0 : 1 / f, h = n - G, g = r - se, _ = u - ce;
|
|
575
575
|
for (let t = e; t <= d; t++) {
|
|
576
|
-
let e = (t + .5 -
|
|
576
|
+
let e = (t + .5 - W) * m;
|
|
577
577
|
e < 0 ? e = 0 : e > 1 && (e = 1);
|
|
578
|
-
let n =
|
|
578
|
+
let n = G + h * e;
|
|
579
579
|
if (n <= j[t]) continue;
|
|
580
580
|
j[t] = n;
|
|
581
|
-
let r =
|
|
582
|
-
p[b + t] = I(i + s * r) << ee | I(a + c * r) << R | I(o + l * r) << te | I(
|
|
581
|
+
let r = se + g * e;
|
|
582
|
+
p[b + t] = I(i + s * r) << ee | I(a + c * r) << R | I(o + l * r) << te | I(ce + _ * e) << ne;
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
|
|
586
|
+
W = t, G = n, se = r, ce = u;
|
|
587
587
|
}
|
|
588
|
-
let
|
|
588
|
+
let le = -1, K = -1;
|
|
589
589
|
for (let e = v; e <= y; e++) if ((p[b + e] >>> ne & 255) > 0) {
|
|
590
|
-
|
|
590
|
+
le = e;
|
|
591
591
|
break;
|
|
592
592
|
}
|
|
593
|
-
if (
|
|
594
|
-
for (let e = y; e >=
|
|
595
|
-
|
|
593
|
+
if (le < 0) return;
|
|
594
|
+
for (let e = y; e >= le; e--) if ((p[b + e] >>> ne & 255) > 0) {
|
|
595
|
+
K = e;
|
|
596
596
|
break;
|
|
597
597
|
}
|
|
598
|
-
if (
|
|
599
|
-
let
|
|
598
|
+
if (K - le <= 2 * t.length) return;
|
|
599
|
+
let q = ~(255 << ne);
|
|
600
600
|
for (let e = 0; e < t.length; e++) {
|
|
601
|
-
let n = t[e], r = b +
|
|
602
|
-
p[r] = i &
|
|
603
|
-
let a = b +
|
|
604
|
-
p[a] = o &
|
|
601
|
+
let n = t[e], r = b + le + e, i = p[r];
|
|
602
|
+
p[r] = i & q | ((i >>> ne & 255) * n | 0) << ne;
|
|
603
|
+
let a = b + K - e, o = p[a];
|
|
604
|
+
p[a] = o & q | ((o >>> ne & 255) * n | 0) << ne;
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
function pe(t) {
|
|
608
608
|
if (!k || !O || !A) return;
|
|
609
|
-
A.fill(0),
|
|
609
|
+
A.fill(0), K = S.tension, le = F.ZOOM * Math.max(e.h(), 1) * B;
|
|
610
610
|
let n = Math.max(1, Math.ceil((N - 1) / 3)), r = (e) => Math.min(e * 3, N - 1), i = 0;
|
|
611
611
|
de(r(0), T[0], t);
|
|
612
612
|
let a = 0, o = r(0), s = r(1);
|
|
@@ -834,7 +834,7 @@ var re = r(function({ title: e, subtitle: t, logo: n, mark: r, children: i, foot
|
|
|
834
834
|
});
|
|
835
835
|
//#endregion
|
|
836
836
|
//#region src/icons.tsx
|
|
837
|
-
function
|
|
837
|
+
function ie() {
|
|
838
838
|
return /* @__PURE__ */ h("svg", {
|
|
839
839
|
viewBox: "0 0 24 24",
|
|
840
840
|
"aria-hidden": "true",
|
|
@@ -858,7 +858,7 @@ function H() {
|
|
|
858
858
|
]
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function ae() {
|
|
862
862
|
return /* @__PURE__ */ m("svg", {
|
|
863
863
|
viewBox: "0 0 24 24",
|
|
864
864
|
"aria-hidden": "true",
|
|
@@ -868,7 +868,7 @@ function ie() {
|
|
|
868
868
|
})
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function oe() {
|
|
872
872
|
return /* @__PURE__ */ m("svg", {
|
|
873
873
|
viewBox: "0 0 24 24",
|
|
874
874
|
fill: "none",
|
|
@@ -880,7 +880,7 @@ function ae() {
|
|
|
880
880
|
children: /* @__PURE__ */ m("path", { d: "M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08" })
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function H() {
|
|
884
884
|
return /* @__PURE__ */ m("svg", {
|
|
885
885
|
viewBox: "0 0 24 24",
|
|
886
886
|
fill: "none",
|
|
@@ -892,7 +892,7 @@ function U() {
|
|
|
892
892
|
children: /* @__PURE__ */ m("path", { d: "M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08" })
|
|
893
893
|
});
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function U() {
|
|
896
896
|
return /* @__PURE__ */ m("svg", {
|
|
897
897
|
viewBox: "0 0 24 24",
|
|
898
898
|
fill: "none",
|
|
@@ -904,7 +904,7 @@ function W() {
|
|
|
904
904
|
children: /* @__PURE__ */ m("path", { d: "M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95" })
|
|
905
905
|
});
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function W() {
|
|
908
908
|
return /* @__PURE__ */ m("svg", {
|
|
909
909
|
viewBox: "0 0 24 24",
|
|
910
910
|
fill: "none",
|
|
@@ -916,7 +916,7 @@ function G() {
|
|
|
916
916
|
children: /* @__PURE__ */ m("path", { d: "M9.57 5.93L3.5 12l6.07 6.07M20.5 12H3.67" })
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function G() {
|
|
920
920
|
return /* @__PURE__ */ m("svg", {
|
|
921
921
|
viewBox: "0 0 24 24",
|
|
922
922
|
fill: "none",
|
|
@@ -928,7 +928,7 @@ function K() {
|
|
|
928
928
|
children: /* @__PURE__ */ m("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" })
|
|
929
929
|
});
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function se() {
|
|
932
932
|
return /* @__PURE__ */ m("svg", {
|
|
933
933
|
viewBox: "0 0 24 24",
|
|
934
934
|
fill: "none",
|
|
@@ -940,7 +940,7 @@ function oe() {
|
|
|
940
940
|
children: /* @__PURE__ */ m("path", { d: "M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2" })
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function ce() {
|
|
944
944
|
return /* @__PURE__ */ h("svg", {
|
|
945
945
|
viewBox: "0 0 24 24",
|
|
946
946
|
fill: "none",
|
|
@@ -956,7 +956,7 @@ function se() {
|
|
|
956
956
|
]
|
|
957
957
|
});
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function le() {
|
|
960
960
|
return /* @__PURE__ */ h("svg", {
|
|
961
961
|
viewBox: "0 0 24 24",
|
|
962
962
|
fill: "none",
|
|
@@ -968,7 +968,7 @@ function ce() {
|
|
|
968
968
|
children: [/* @__PURE__ */ m("path", { d: "M16 12.9v4.2c0 3.5-1.4 4.9-4.9 4.9H6.9C3.4 22 2 20.6 2 17.1v-4.2C2 9.4 3.4 8 6.9 8h4.2c3.5 0 4.9 1.4 4.9 4.9z" }), /* @__PURE__ */ m("path", { d: "M22 6.9v4.2c0 3.5-1.4 4.9-4.9 4.9H16v-3.1C16 9.4 14.6 8 11.1 8H8V6.9C8 3.4 9.4 2 12.9 2h4.2C20.6 2 22 3.4 22 6.9z" })]
|
|
969
969
|
});
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function K() {
|
|
972
972
|
return /* @__PURE__ */ m("svg", {
|
|
973
973
|
viewBox: "0 0 24 24",
|
|
974
974
|
fill: "none",
|
|
@@ -980,7 +980,7 @@ function q() {
|
|
|
980
980
|
children: /* @__PURE__ */ m("path", { d: "M13 11l8.2-8.2M22 6.8V2h-4.8M11 2H9C4 2 2 4 2 9v6c0 5 2 7 7 7h6c5 0 7-2 7-7v-2" })
|
|
981
981
|
});
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function q() {
|
|
984
984
|
return /* @__PURE__ */ m("svg", {
|
|
985
985
|
viewBox: "0 0 24 24",
|
|
986
986
|
fill: "none",
|
|
@@ -2087,10 +2087,10 @@ var Ct = r(function({ content: e, title: t, label: n = "Mais informações", pla
|
|
|
2087
2087
|
}), i]
|
|
2088
2088
|
});
|
|
2089
2089
|
}), Tt = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAction: i, help: a, info: o, description: c, hint: l, error: u, prefix: f, suffix: p, trailingAction: g, mono: _, autoComplete: v, placeholder: y, required: b, disabled: x, readOnly: S, name: C, id: w, minLength: T, maxLength: E, min: D, max: O, step: k, inputMode: A, autoFocus: j, onBlur: M, onKeyDown: N, size: P = "md", className: F, ...I }, L) {
|
|
2090
|
-
let ee = s(), R = w ?? ee, [te, ne] = d(!1), z = r === "password", B = z && te ? "text" : r, re = u ? `${R}-err` : l ? `${R}-hint` : void 0, V = f != null || p != null,
|
|
2091
|
-
let t = Number(k ?? 1) || 1, r = (
|
|
2090
|
+
let ee = s(), R = w ?? ee, [te, ne] = d(!1), z = r === "password", B = z && te ? "text" : r, re = u ? `${R}-err` : l ? `${R}-hint` : void 0, V = f != null || p != null, ie = r === "number" && !V && !S, ae = t === "" ? null : Number(t), oe = (e) => {
|
|
2091
|
+
let t = Number(k ?? 1) || 1, r = (ae != null && Number.isFinite(ae) ? ae : 0) + e * t;
|
|
2092
2092
|
D != null && (r = Math.max(Number(D), r)), O != null && (r = Math.min(Number(O), r)), n(String(r));
|
|
2093
|
-
},
|
|
2093
|
+
}, H = D != null && ae != null && ae <= Number(D), W = O != null && ae != null && ae >= Number(O), G = /* @__PURE__ */ h("div", {
|
|
2094
2094
|
className: `select-input-wrap${V ? " select-input-wrap--affixed" : ""}${u ? " select-input-wrap--error" : ""}`,
|
|
2095
2095
|
children: [
|
|
2096
2096
|
f != null && /* @__PURE__ */ m("span", {
|
|
@@ -2099,7 +2099,7 @@ var Ct = r(function({ content: e, title: t, label: n = "Mais informações", pla
|
|
|
2099
2099
|
}),
|
|
2100
2100
|
/* @__PURE__ */ m("input", {
|
|
2101
2101
|
id: R,
|
|
2102
|
-
className: `select-input${z ? " select-input--has-suffix" : ""}${
|
|
2102
|
+
className: `select-input${z ? " select-input--has-suffix" : ""}${ie ? " select-input--has-stepper" : ""}${_ ? " select-input--mono" : ""}${u ? " select-input--error" : ""}`,
|
|
2103
2103
|
type: B,
|
|
2104
2104
|
value: t,
|
|
2105
2105
|
onChange: (e) => n(e.target.value),
|
|
@@ -2132,24 +2132,24 @@ var Ct = r(function({ content: e, title: t, label: n = "Mais informações", pla
|
|
|
2132
2132
|
"aria-label": te ? "Ocultar senha" : "Mostrar senha",
|
|
2133
2133
|
children: m(te ? Ue : He, {})
|
|
2134
2134
|
}),
|
|
2135
|
-
|
|
2135
|
+
ie && /* @__PURE__ */ h("span", {
|
|
2136
2136
|
className: "select-stepper",
|
|
2137
2137
|
children: [/* @__PURE__ */ m("button", {
|
|
2138
2138
|
type: "button",
|
|
2139
2139
|
tabIndex: -1,
|
|
2140
2140
|
className: "select-stepper__btn",
|
|
2141
2141
|
"aria-label": "Aumentar",
|
|
2142
|
-
disabled: x ||
|
|
2143
|
-
onClick: () =>
|
|
2142
|
+
disabled: x || W,
|
|
2143
|
+
onClick: () => oe(1),
|
|
2144
2144
|
children: /* @__PURE__ */ m(it, {})
|
|
2145
2145
|
}), /* @__PURE__ */ m("button", {
|
|
2146
2146
|
type: "button",
|
|
2147
2147
|
tabIndex: -1,
|
|
2148
2148
|
className: "select-stepper__btn",
|
|
2149
2149
|
"aria-label": "Diminuir",
|
|
2150
|
-
disabled: x ||
|
|
2151
|
-
onClick: () =>
|
|
2152
|
-
children: /* @__PURE__ */ m(
|
|
2150
|
+
disabled: x || H,
|
|
2151
|
+
onClick: () => oe(-1),
|
|
2152
|
+
children: /* @__PURE__ */ m(U, {})
|
|
2153
2153
|
})]
|
|
2154
2154
|
})
|
|
2155
2155
|
]
|
|
@@ -2170,9 +2170,9 @@ var Ct = r(function({ content: e, title: t, label: n = "Mais informações", pla
|
|
|
2170
2170
|
className: "select-field__desc",
|
|
2171
2171
|
children: c
|
|
2172
2172
|
}),
|
|
2173
|
-
g == null ?
|
|
2173
|
+
g == null ? G : /* @__PURE__ */ h("div", {
|
|
2174
2174
|
className: "select-field__control",
|
|
2175
|
-
children: [
|
|
2175
|
+
children: [G, /* @__PURE__ */ m("span", {
|
|
2176
2176
|
className: "select-field__trailing",
|
|
2177
2177
|
children: g
|
|
2178
2178
|
})]
|
|
@@ -2458,7 +2458,7 @@ var Lt = r(function({ children: e, tone: t = "critical", title: n, action: r, cl
|
|
|
2458
2458
|
className: "select-filetile__remove",
|
|
2459
2459
|
"aria-label": `Remover ${n}`,
|
|
2460
2460
|
onClick: a,
|
|
2461
|
-
children: /* @__PURE__ */ m(
|
|
2461
|
+
children: /* @__PURE__ */ m(q, {})
|
|
2462
2462
|
})
|
|
2463
2463
|
]
|
|
2464
2464
|
}),
|
|
@@ -2552,7 +2552,7 @@ var Gt = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2552
2552
|
className: `select-dropzone select-dropzone--tile${v ? " is-over" : ""}`,
|
|
2553
2553
|
onClick: E,
|
|
2554
2554
|
...T,
|
|
2555
|
-
children: [/* @__PURE__ */ m(
|
|
2555
|
+
children: [/* @__PURE__ */ m(ce, {}), /* @__PURE__ */ m("span", { children: "Adicionar" })]
|
|
2556
2556
|
})]
|
|
2557
2557
|
}),
|
|
2558
2558
|
!A && k && /* @__PURE__ */ h("button", {
|
|
@@ -2560,7 +2560,7 @@ var Gt = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2560
2560
|
className: `select-dropzone${v ? " is-over" : ""}`,
|
|
2561
2561
|
onClick: E,
|
|
2562
2562
|
...T,
|
|
2563
|
-
children: [/* @__PURE__ */ m(
|
|
2563
|
+
children: [/* @__PURE__ */ m(ce, {}), /* @__PURE__ */ m("span", { children: c ?? `Selecionar arquivo · até ${r} MB` })]
|
|
2564
2564
|
}),
|
|
2565
2565
|
/* @__PURE__ */ m("input", {
|
|
2566
2566
|
ref: _,
|
|
@@ -2683,10 +2683,10 @@ var Gt = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2683
2683
|
}
|
|
2684
2684
|
}, z = (e) => {
|
|
2685
2685
|
e.key === "Enter" && (e.preventDefault(), ne());
|
|
2686
|
-
}, B = (e) => r(n.filter((t, n) => n !== e)), re = (e) => a(i.filter((t, n) => n !== e)),
|
|
2686
|
+
}, B = (e) => r(n.filter((t, n) => n !== e)), re = (e) => a(i.filter((t, n) => n !== e)), ie = () => {
|
|
2687
2687
|
var e;
|
|
2688
2688
|
return (e = C.current) == null ? void 0 : e.click();
|
|
2689
|
-
},
|
|
2689
|
+
}, ae = {
|
|
2690
2690
|
onDragOver: (e) => {
|
|
2691
2691
|
e.preventDefault(), T(!0);
|
|
2692
2692
|
},
|
|
@@ -2706,7 +2706,7 @@ var Gt = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2706
2706
|
}),
|
|
2707
2707
|
/* @__PURE__ */ h("div", {
|
|
2708
2708
|
className: `select-uploadzone${w ? " is-over" : ""}`,
|
|
2709
|
-
...
|
|
2709
|
+
...ae,
|
|
2710
2710
|
children: [
|
|
2711
2711
|
L ? /* @__PURE__ */ h("div", {
|
|
2712
2712
|
className: `select-filetile-grid${P === 1 ? " select-filetile-grid--single" : ""}`,
|
|
@@ -2726,15 +2726,15 @@ var Gt = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2726
2726
|
F && /* @__PURE__ */ h("button", {
|
|
2727
2727
|
type: "button",
|
|
2728
2728
|
className: "select-dropzone select-dropzone--tile",
|
|
2729
|
-
onClick:
|
|
2730
|
-
children: [/* @__PURE__ */ m(
|
|
2729
|
+
onClick: ie,
|
|
2730
|
+
children: [/* @__PURE__ */ m(ce, {}), /* @__PURE__ */ m("span", { children: "Adicionar" })]
|
|
2731
2731
|
})
|
|
2732
2732
|
]
|
|
2733
2733
|
}) : /* @__PURE__ */ h("button", {
|
|
2734
2734
|
type: "button",
|
|
2735
2735
|
className: "select-uploadzone__prompt",
|
|
2736
|
-
onClick:
|
|
2737
|
-
children: [/* @__PURE__ */ m(
|
|
2736
|
+
onClick: ie,
|
|
2737
|
+
children: [/* @__PURE__ */ m(ce, {}), /* @__PURE__ */ m("span", { children: g ?? `Arraste ou selecione um arquivo · até ${c} MB` })]
|
|
2738
2738
|
}),
|
|
2739
2739
|
I && /* @__PURE__ */ h("div", {
|
|
2740
2740
|
className: "select-uploadzone__url",
|
|
@@ -2844,7 +2844,7 @@ var Gt = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2844
2844
|
}), /* @__PURE__ */ m("span", {
|
|
2845
2845
|
className: "select-select-caret",
|
|
2846
2846
|
"aria-hidden": "true",
|
|
2847
|
-
children: /* @__PURE__ */ m(
|
|
2847
|
+
children: /* @__PURE__ */ m(U, {})
|
|
2848
2848
|
})]
|
|
2849
2849
|
}),
|
|
2850
2850
|
u ? /* @__PURE__ */ m("p", {
|
|
@@ -3120,7 +3120,7 @@ var cn = r(function({ label: e, value: t, onChange: n, options: r, placeholder:
|
|
|
3120
3120
|
}), /* @__PURE__ */ m("span", {
|
|
3121
3121
|
className: "select-combobox__caret",
|
|
3122
3122
|
"aria-hidden": "true",
|
|
3123
|
-
children: /* @__PURE__ */ m(
|
|
3123
|
+
children: /* @__PURE__ */ m(U, {})
|
|
3124
3124
|
})]
|
|
3125
3125
|
}),
|
|
3126
3126
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -3637,7 +3637,7 @@ var An = r(function({ label: e, value: t, onChange: n, labelAction: r, hint: i,
|
|
|
3637
3637
|
/* @__PURE__ */ m("span", {
|
|
3638
3638
|
className: "select-select-caret",
|
|
3639
3639
|
"aria-hidden": "true",
|
|
3640
|
-
children: /* @__PURE__ */ m(
|
|
3640
|
+
children: /* @__PURE__ */ m(U, {})
|
|
3641
3641
|
}),
|
|
3642
3642
|
/* @__PURE__ */ m("select", {
|
|
3643
3643
|
className: "select-phone__select",
|
|
@@ -3919,7 +3919,7 @@ function Ln({ items: e, label: t = "Ações", disabled: n }) {
|
|
|
3919
3919
|
variant: "secondary",
|
|
3920
3920
|
size: "sm",
|
|
3921
3921
|
inline: !0,
|
|
3922
|
-
trailingIcon: /* @__PURE__ */ m(
|
|
3922
|
+
trailingIcon: /* @__PURE__ */ m(U, {}),
|
|
3923
3923
|
disabled: n,
|
|
3924
3924
|
onClick: () => i((e) => !e),
|
|
3925
3925
|
children: t
|
|
@@ -4260,7 +4260,7 @@ function ir({ open: e, onToggle: t, children: n, openLabel: r, disabled: i = !1,
|
|
|
4260
4260
|
inline: !0,
|
|
4261
4261
|
trailingIcon: /* @__PURE__ */ m("span", {
|
|
4262
4262
|
className: `select-disclosure-caret${e ? " is-open" : ""}`,
|
|
4263
|
-
children: /* @__PURE__ */ m(
|
|
4263
|
+
children: /* @__PURE__ */ m(U, {})
|
|
4264
4264
|
}),
|
|
4265
4265
|
disabled: i,
|
|
4266
4266
|
"aria-expanded": e,
|
|
@@ -4509,7 +4509,7 @@ function Pr({ value: e, path: n, depth: r, ancestors: i, ctx: a }) {
|
|
|
4509
4509
|
"aria-expanded": p,
|
|
4510
4510
|
"aria-label": `${p ? "Recolher" : "Expandir"} ${e}`,
|
|
4511
4511
|
onClick: () => a.toggle(l),
|
|
4512
|
-
children: /* @__PURE__ */ m(
|
|
4512
|
+
children: /* @__PURE__ */ m(oe, {})
|
|
4513
4513
|
}) : /* @__PURE__ */ m("span", {
|
|
4514
4514
|
className: "select-json__caret select-json__caret--empty",
|
|
4515
4515
|
"aria-hidden": "true"
|
|
@@ -4553,7 +4553,7 @@ function Pr({ value: e, path: n, depth: r, ancestors: i, ctx: a }) {
|
|
|
4553
4553
|
"aria-label": `Copiar ${e}`,
|
|
4554
4554
|
title: a.copied === _ ? "Copiado!" : "Copiar valor",
|
|
4555
4555
|
onClick: () => a.copy(_, d ? _r(c) : pr(c)),
|
|
4556
|
-
children: a.copied === _ ? /* @__PURE__ */ m(Ve, {}) : /* @__PURE__ */ m(
|
|
4556
|
+
children: a.copied === _ ? /* @__PURE__ */ m(Ve, {}) : /* @__PURE__ */ m(le, {})
|
|
4557
4557
|
})
|
|
4558
4558
|
]
|
|
4559
4559
|
}), f && p && /* @__PURE__ */ m(Pr, {
|
|
@@ -4646,7 +4646,7 @@ var Ir = r(function({ value: e, title: t = "Metadados", maxHeight: n = 360, defa
|
|
|
4646
4646
|
/* @__PURE__ */ m("span", {
|
|
4647
4647
|
className: "select-json__searchicon",
|
|
4648
4648
|
"aria-hidden": "true",
|
|
4649
|
-
children: /* @__PURE__ */ m(
|
|
4649
|
+
children: /* @__PURE__ */ m(se, {})
|
|
4650
4650
|
}),
|
|
4651
4651
|
/* @__PURE__ */ m("input", {
|
|
4652
4652
|
className: "select-json__searchinput",
|
|
@@ -4836,7 +4836,7 @@ function Hr({ children: e, className: t, ...n }) {
|
|
|
4836
4836
|
});
|
|
4837
4837
|
}
|
|
4838
4838
|
function Ur({ title: e, subtitle: t, leading: n, trailing: r, onClick: i, muted: a = !1 }) {
|
|
4839
|
-
let o = !!i, s = r === void 0 ? o ? /* @__PURE__ */ m(
|
|
4839
|
+
let o = !!i, s = r === void 0 ? o ? /* @__PURE__ */ m(oe, {}) : null : r, c = /* @__PURE__ */ h(p, { children: [
|
|
4840
4840
|
n && /* @__PURE__ */ m("span", {
|
|
4841
4841
|
className: "select-optionrow__leading",
|
|
4842
4842
|
children: n
|
|
@@ -4960,7 +4960,7 @@ function qr(e) {
|
|
|
4960
4960
|
//#endregion
|
|
4961
4961
|
//#region src/SelectBackLink.tsx
|
|
4962
4962
|
function Jr({ children: e = "Voltar", onClick: t, href: n }) {
|
|
4963
|
-
let r = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(
|
|
4963
|
+
let r = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(W, {}), /* @__PURE__ */ m("span", { children: e })] }), i = qr(n);
|
|
4964
4964
|
return i ? /* @__PURE__ */ m("a", {
|
|
4965
4965
|
className: "select-backlink",
|
|
4966
4966
|
href: i,
|
|
@@ -5180,7 +5180,7 @@ var ti = r(function({ value: e, rules: t, className: n, ...r }, i) {
|
|
|
5180
5180
|
className: "select-page__back",
|
|
5181
5181
|
onClick: a.onAction,
|
|
5182
5182
|
"aria-label": a.content ?? "Voltar",
|
|
5183
|
-
children: /* @__PURE__ */ m(
|
|
5183
|
+
children: /* @__PURE__ */ m(W, {})
|
|
5184
5184
|
}), /* @__PURE__ */ h("div", {
|
|
5185
5185
|
className: "select-page__head",
|
|
5186
5186
|
children: [e && /* @__PURE__ */ m("h1", {
|
|
@@ -5388,7 +5388,7 @@ var mi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, classN
|
|
|
5388
5388
|
}), /* @__PURE__ */ m("span", {
|
|
5389
5389
|
className: "select-section__chevron",
|
|
5390
5390
|
"aria-hidden": "true",
|
|
5391
|
-
children: /* @__PURE__ */ m(
|
|
5391
|
+
children: /* @__PURE__ */ m(U, {})
|
|
5392
5392
|
})]
|
|
5393
5393
|
}), /* @__PURE__ */ m("div", {
|
|
5394
5394
|
className: "select-section__collapse",
|
|
@@ -5493,12 +5493,16 @@ function xi({ item: e, active: t, onSelect: n }) {
|
|
|
5493
5493
|
o(() => {
|
|
5494
5494
|
s(i);
|
|
5495
5495
|
}, [i]);
|
|
5496
|
-
let l = r || a, f = u(null), [p, g] = d(null);
|
|
5496
|
+
let l = r || a, f = u(null), [p, g] = d(null), [_, v] = d(0);
|
|
5497
5497
|
return c(() => {
|
|
5498
5498
|
var e;
|
|
5499
|
-
let t =
|
|
5500
|
-
|
|
5501
|
-
}, [
|
|
5499
|
+
let t = f.current, n = (t == null ? void 0 : t.querySelector(".select-sidenav__item--child.is-active")) ?? null, r = n == null ? void 0 : n.closest(".select-sidenav__subgroup .select-sidenav__collapse[data-open=\"false\"]");
|
|
5500
|
+
n && r && (n = ((e = r.parentElement) == null ? void 0 : e.querySelector(":scope > .select-sidenav__item")) ?? null), g(n && l ? Si(n, t) : null);
|
|
5501
|
+
}, [
|
|
5502
|
+
t,
|
|
5503
|
+
l,
|
|
5504
|
+
_
|
|
5505
|
+
]), /* @__PURE__ */ h("div", {
|
|
5502
5506
|
className: "select-sidenav__group",
|
|
5503
5507
|
children: [/* @__PURE__ */ h("button", {
|
|
5504
5508
|
type: "button",
|
|
@@ -5518,7 +5522,7 @@ function xi({ item: e, active: t, onSelect: n }) {
|
|
|
5518
5522
|
!r && /* @__PURE__ */ m("span", {
|
|
5519
5523
|
className: "select-sidenav__chevron",
|
|
5520
5524
|
"aria-hidden": "true",
|
|
5521
|
-
children: /* @__PURE__ */ m(
|
|
5525
|
+
children: /* @__PURE__ */ m(U, {})
|
|
5522
5526
|
})
|
|
5523
5527
|
]
|
|
5524
5528
|
}), /* @__PURE__ */ m("div", {
|
|
@@ -5528,6 +5532,9 @@ function xi({ item: e, active: t, onSelect: n }) {
|
|
|
5528
5532
|
children: /* @__PURE__ */ h("div", {
|
|
5529
5533
|
className: "select-sidenav__children",
|
|
5530
5534
|
ref: f,
|
|
5535
|
+
onTransitionEnd: (e) => {
|
|
5536
|
+
e.propertyName === "grid-template-rows" && v((e) => e + 1);
|
|
5537
|
+
},
|
|
5531
5538
|
children: [/* @__PURE__ */ m("span", {
|
|
5532
5539
|
className: "select-sidenav__rail-active",
|
|
5533
5540
|
"aria-hidden": "true",
|
|
@@ -5535,11 +5542,75 @@ function xi({ item: e, active: t, onSelect: n }) {
|
|
|
5535
5542
|
top: p ?? 0,
|
|
5536
5543
|
opacity: p == null ? 0 : 1
|
|
5537
5544
|
}
|
|
5538
|
-
}), e.children.map((e) =>
|
|
5545
|
+
}), e.children.map((e) => {
|
|
5546
|
+
var r;
|
|
5547
|
+
return (r = e.children) != null && r.length ? /* @__PURE__ */ m(Ci, {
|
|
5548
|
+
item: e,
|
|
5549
|
+
active: t,
|
|
5550
|
+
onSelect: n,
|
|
5551
|
+
tabbable: l
|
|
5552
|
+
}, e.id) : /* @__PURE__ */ h("button", {
|
|
5553
|
+
type: "button",
|
|
5554
|
+
className: `select-sidenav__item select-sidenav__item--child${e.id === t ? " is-active" : ""}`,
|
|
5555
|
+
onClick: () => n(e.id),
|
|
5556
|
+
tabIndex: l ? void 0 : -1,
|
|
5557
|
+
"data-nav-id": e.id,
|
|
5558
|
+
children: [e.icon && /* @__PURE__ */ m("span", {
|
|
5559
|
+
className: "select-sidenav__icon",
|
|
5560
|
+
children: e.icon
|
|
5561
|
+
}), /* @__PURE__ */ m("span", {
|
|
5562
|
+
className: "select-sidenav__label",
|
|
5563
|
+
children: e.label
|
|
5564
|
+
})]
|
|
5565
|
+
}, e.id);
|
|
5566
|
+
})]
|
|
5567
|
+
})
|
|
5568
|
+
})]
|
|
5569
|
+
});
|
|
5570
|
+
}
|
|
5571
|
+
function Si(e, t) {
|
|
5572
|
+
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
5573
|
+
return n.top - r.top + t.scrollTop + n.height / 2;
|
|
5574
|
+
}
|
|
5575
|
+
function Ci({ item: e, active: t, onSelect: n, tabbable: r }) {
|
|
5576
|
+
let i = bi(e, t), [a, s] = d(i);
|
|
5577
|
+
return o(() => {
|
|
5578
|
+
i && s(!0);
|
|
5579
|
+
}, [i]), /* @__PURE__ */ h("div", {
|
|
5580
|
+
className: "select-sidenav__subgroup",
|
|
5581
|
+
children: [/* @__PURE__ */ h("button", {
|
|
5582
|
+
type: "button",
|
|
5583
|
+
className: `select-sidenav__item select-sidenav__item--child select-sidenav__item--subparent${a ? " is-open" : ""}${i && !a ? " is-active" : ""}`,
|
|
5584
|
+
onClick: () => s((e) => !e),
|
|
5585
|
+
"aria-expanded": a,
|
|
5586
|
+
tabIndex: r ? void 0 : -1,
|
|
5587
|
+
"data-nav-id": e.id,
|
|
5588
|
+
children: [
|
|
5589
|
+
e.icon && /* @__PURE__ */ m("span", {
|
|
5590
|
+
className: "select-sidenav__icon",
|
|
5591
|
+
children: e.icon
|
|
5592
|
+
}),
|
|
5593
|
+
/* @__PURE__ */ m("span", {
|
|
5594
|
+
className: "select-sidenav__label",
|
|
5595
|
+
children: e.label
|
|
5596
|
+
}),
|
|
5597
|
+
/* @__PURE__ */ m("span", {
|
|
5598
|
+
className: "select-sidenav__chevron",
|
|
5599
|
+
"aria-hidden": "true",
|
|
5600
|
+
children: /* @__PURE__ */ m(U, {})
|
|
5601
|
+
})
|
|
5602
|
+
]
|
|
5603
|
+
}), /* @__PURE__ */ m("div", {
|
|
5604
|
+
className: "select-sidenav__collapse",
|
|
5605
|
+
"data-open": a,
|
|
5606
|
+
"aria-hidden": !a,
|
|
5607
|
+
children: /* @__PURE__ */ m("div", {
|
|
5608
|
+
className: "select-sidenav__subchildren",
|
|
5609
|
+
children: e.children.map((e) => /* @__PURE__ */ h("button", {
|
|
5539
5610
|
type: "button",
|
|
5540
|
-
className: `select-sidenav__item select-sidenav__item--child${e.id === t ? " is-active" : ""}`,
|
|
5611
|
+
className: `select-sidenav__item select-sidenav__item--child select-sidenav__item--grandchild${e.id === t ? " is-active" : ""}`,
|
|
5541
5612
|
onClick: () => n(e.id),
|
|
5542
|
-
tabIndex:
|
|
5613
|
+
tabIndex: r && a ? void 0 : -1,
|
|
5543
5614
|
"data-nav-id": e.id,
|
|
5544
5615
|
children: [e.icon && /* @__PURE__ */ m("span", {
|
|
5545
5616
|
className: "select-sidenav__icon",
|
|
@@ -5548,12 +5619,12 @@ function xi({ item: e, active: t, onSelect: n }) {
|
|
|
5548
5619
|
className: "select-sidenav__label",
|
|
5549
5620
|
children: e.label
|
|
5550
5621
|
})]
|
|
5551
|
-
}, e.id))
|
|
5622
|
+
}, e.id))
|
|
5552
5623
|
})
|
|
5553
5624
|
})]
|
|
5554
5625
|
});
|
|
5555
5626
|
}
|
|
5556
|
-
var
|
|
5627
|
+
var wi = r(function({ sections: e, active: t, onSelect: n, header: r, className: i, ...a }, o) {
|
|
5557
5628
|
return /* @__PURE__ */ h("nav", {
|
|
5558
5629
|
ref: o,
|
|
5559
5630
|
...a,
|
|
@@ -5585,7 +5656,7 @@ var Si = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
5585
5656
|
}, e.id))]
|
|
5586
5657
|
}, r))]
|
|
5587
5658
|
});
|
|
5588
|
-
}),
|
|
5659
|
+
}), Ti = r(function({ value: e, onChange: t, placeholder: n = "Buscar…", shortcut: r, className: i, ...a }, o) {
|
|
5589
5660
|
return /* @__PURE__ */ h("div", {
|
|
5590
5661
|
ref: o,
|
|
5591
5662
|
...a,
|
|
@@ -5594,7 +5665,7 @@ var Si = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
5594
5665
|
/* @__PURE__ */ m("span", {
|
|
5595
5666
|
className: "select-search__icon",
|
|
5596
5667
|
"aria-hidden": "true",
|
|
5597
|
-
children: /* @__PURE__ */ m(
|
|
5668
|
+
children: /* @__PURE__ */ m(se, {})
|
|
5598
5669
|
}),
|
|
5599
5670
|
/* @__PURE__ */ m("input", {
|
|
5600
5671
|
className: "select-search__input",
|
|
@@ -5612,7 +5683,7 @@ var Si = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
5612
5683
|
});
|
|
5613
5684
|
//#endregion
|
|
5614
5685
|
//#region src/SelectPagination.tsx
|
|
5615
|
-
function
|
|
5686
|
+
function Ei(e, t) {
|
|
5616
5687
|
let n = [.../* @__PURE__ */ new Set([
|
|
5617
5688
|
1,
|
|
5618
5689
|
t,
|
|
@@ -5623,7 +5694,7 @@ function wi(e, t) {
|
|
|
5623
5694
|
for (let e of n) e - i > 1 && r.push("gap"), r.push(e), i = e;
|
|
5624
5695
|
return r;
|
|
5625
5696
|
}
|
|
5626
|
-
function
|
|
5697
|
+
function Di(e, t, n, r, i, a) {
|
|
5627
5698
|
let o = [];
|
|
5628
5699
|
if (e != null) {
|
|
5629
5700
|
if (e === 0) o.push(`0 ${i}`);
|
|
@@ -5634,8 +5705,8 @@ function Ti(e, t, n, r, i, a) {
|
|
|
5634
5705
|
}
|
|
5635
5706
|
return a && r != null && r > 0 && o.push(`Página ${n} de ${r}`), o.length > 0 ? o.join(" · ") : null;
|
|
5636
5707
|
}
|
|
5637
|
-
var
|
|
5638
|
-
let p = i ?? e > 1, g = a ?? (t == null || e < t), _ = o ?? (c ? () => c(e - 1) : void 0), v = s ?? (c ? () => c(e + 1) : void 0), y = t != null && t > 1 && c != null, b = y ?
|
|
5708
|
+
var Oi = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious: i, hasNext: a, onPrevious: o, onNext: s, onPage: c, noun: l = "resultados", className: u, ...d }, f) {
|
|
5709
|
+
let p = i ?? e > 1, g = a ?? (t == null || e < t), _ = o ?? (c ? () => c(e - 1) : void 0), v = s ?? (c ? () => c(e + 1) : void 0), y = t != null && t > 1 && c != null, b = y ? Ei(e, t) : [], x = Di(n, r, e, t, l, y);
|
|
5639
5710
|
return /* @__PURE__ */ h("nav", {
|
|
5640
5711
|
ref: f,
|
|
5641
5712
|
...d,
|
|
@@ -5650,7 +5721,7 @@ var Ei = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious:
|
|
|
5650
5721
|
onClick: _,
|
|
5651
5722
|
disabled: !p || !_,
|
|
5652
5723
|
"aria-label": "Página anterior",
|
|
5653
|
-
children: /* @__PURE__ */ m(
|
|
5724
|
+
children: /* @__PURE__ */ m(H, {})
|
|
5654
5725
|
}),
|
|
5655
5726
|
y ? b.map((t, n) => t === "gap" ? /* @__PURE__ */ m("span", {
|
|
5656
5727
|
className: "select-pagination__gap",
|
|
@@ -5672,7 +5743,7 @@ var Ei = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious:
|
|
|
5672
5743
|
onClick: v,
|
|
5673
5744
|
disabled: !g || !v,
|
|
5674
5745
|
"aria-label": "Próxima página",
|
|
5675
|
-
children: /* @__PURE__ */ m(
|
|
5746
|
+
children: /* @__PURE__ */ m(oe, {})
|
|
5676
5747
|
})
|
|
5677
5748
|
]
|
|
5678
5749
|
}), x != null && /* @__PURE__ */ m("p", {
|
|
@@ -5683,7 +5754,7 @@ var Ei = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious:
|
|
|
5683
5754
|
});
|
|
5684
5755
|
//#endregion
|
|
5685
5756
|
//#region src/internal/listChrome.tsx
|
|
5686
|
-
function
|
|
5757
|
+
function ki({ title: e, description: t, action: n, filters: r, tools: i }) {
|
|
5687
5758
|
let a = r != null, o = a ? null : i, s = e != null || t != null;
|
|
5688
5759
|
return {
|
|
5689
5760
|
hasFilters: a,
|
|
@@ -5692,17 +5763,37 @@ function Di({ title: e, description: t, action: n, filters: r, tools: i }) {
|
|
|
5692
5763
|
hasTitleRow: s || n != null || o != null
|
|
5693
5764
|
};
|
|
5694
5765
|
}
|
|
5695
|
-
function
|
|
5696
|
-
let { hasFilters:
|
|
5766
|
+
function Ai({ title: e, help: t, description: n, action: r, filters: i, tools: a, toggle: o }) {
|
|
5767
|
+
let { hasFilters: s, inlineTools: c, hasIdentity: l, hasTitleRow: u } = ki({
|
|
5697
5768
|
title: e,
|
|
5698
5769
|
description: n,
|
|
5699
5770
|
action: r,
|
|
5700
5771
|
filters: i,
|
|
5701
5772
|
tools: a
|
|
5702
5773
|
});
|
|
5703
|
-
return /* @__PURE__ */ h(p, { children: [
|
|
5774
|
+
return /* @__PURE__ */ h(p, { children: [u && /* @__PURE__ */ h("div", {
|
|
5704
5775
|
className: "select-table__title",
|
|
5705
|
-
children: [
|
|
5776
|
+
children: [o ? /* @__PURE__ */ h("button", {
|
|
5777
|
+
type: "button",
|
|
5778
|
+
className: "select-table__toggle",
|
|
5779
|
+
"aria-expanded": o.open,
|
|
5780
|
+
"aria-controls": o.controls,
|
|
5781
|
+
onClick: o.onToggle,
|
|
5782
|
+
children: [/* @__PURE__ */ h("span", {
|
|
5783
|
+
className: "select-table__heading",
|
|
5784
|
+
children: [e != null && /* @__PURE__ */ m("span", {
|
|
5785
|
+
className: "select-table__titletext",
|
|
5786
|
+
children: e
|
|
5787
|
+
}), n != null && /* @__PURE__ */ m("span", {
|
|
5788
|
+
className: "select-table__desc",
|
|
5789
|
+
children: n
|
|
5790
|
+
})]
|
|
5791
|
+
}), /* @__PURE__ */ m("span", {
|
|
5792
|
+
className: "select-table__chevron",
|
|
5793
|
+
"aria-hidden": "true",
|
|
5794
|
+
children: /* @__PURE__ */ m(U, {})
|
|
5795
|
+
})]
|
|
5796
|
+
}) : l && /* @__PURE__ */ h("div", {
|
|
5706
5797
|
className: "select-table__heading",
|
|
5707
5798
|
children: [e != null && /* @__PURE__ */ h("h3", {
|
|
5708
5799
|
className: `select-table__titletext${t == null ? "" : " select-table__titletext--help"}`,
|
|
@@ -5711,11 +5802,11 @@ function Oi({ title: e, help: t, description: n, action: r, filters: i, tools: a
|
|
|
5711
5802
|
className: "select-table__desc",
|
|
5712
5803
|
children: n
|
|
5713
5804
|
})]
|
|
5714
|
-
}), (r != null ||
|
|
5805
|
+
}), (r != null || c != null) && /* @__PURE__ */ h("div", {
|
|
5715
5806
|
className: "select-table__actions",
|
|
5716
|
-
children: [r,
|
|
5807
|
+
children: [r, c]
|
|
5717
5808
|
})]
|
|
5718
|
-
}),
|
|
5809
|
+
}), s && /* @__PURE__ */ h("div", {
|
|
5719
5810
|
className: "select-table__toolbar",
|
|
5720
5811
|
children: [/* @__PURE__ */ m("div", {
|
|
5721
5812
|
className: "select-table__filters",
|
|
@@ -5726,7 +5817,7 @@ function Oi({ title: e, help: t, description: n, action: r, filters: i, tools: a
|
|
|
5726
5817
|
})]
|
|
5727
5818
|
})] });
|
|
5728
5819
|
}
|
|
5729
|
-
function
|
|
5820
|
+
function ji(e, t, n) {
|
|
5730
5821
|
if (!e || e.length === 0) return [];
|
|
5731
5822
|
let r = [...e].sort((e, t) => e - t);
|
|
5732
5823
|
if (t == null) return r;
|
|
@@ -5735,8 +5826,8 @@ function ki(e, t, n) {
|
|
|
5735
5826
|
for (let e of r) if (i.push(e), e >= t) break;
|
|
5736
5827
|
return n != null && r.includes(n) && !i.includes(n) && (i.push(n), i.sort((e, t) => e - t)), i;
|
|
5737
5828
|
}
|
|
5738
|
-
function
|
|
5739
|
-
let [t, n] = d(!1), r =
|
|
5829
|
+
function Mi({ pagination: e }) {
|
|
5830
|
+
let [t, n] = d(!1), r = ji(e.pageSizeOptions, e.total, e.pageSize), i = r.length > 1 && e.onPageSizeChange != null;
|
|
5740
5831
|
return !i && !e.hasPrevious && !e.hasNext ? null : /* @__PURE__ */ h("div", {
|
|
5741
5832
|
className: "select-datatable__pagination",
|
|
5742
5833
|
children: [i && e.onPageSizeChange && /* @__PURE__ */ m("div", {
|
|
@@ -5758,7 +5849,7 @@ function Ai({ pagination: e }) {
|
|
|
5758
5849
|
}), /* @__PURE__ */ m("span", {
|
|
5759
5850
|
className: `select-facet__caret${t ? " is-open" : ""}`,
|
|
5760
5851
|
"aria-hidden": "true",
|
|
5761
|
-
children: /* @__PURE__ */ m(
|
|
5852
|
+
children: /* @__PURE__ */ m(U, {})
|
|
5762
5853
|
})]
|
|
5763
5854
|
}),
|
|
5764
5855
|
children: /* @__PURE__ */ m("div", {
|
|
@@ -5787,7 +5878,7 @@ function Ai({ pagination: e }) {
|
|
|
5787
5878
|
})
|
|
5788
5879
|
})
|
|
5789
5880
|
})
|
|
5790
|
-
}), /* @__PURE__ */ m(
|
|
5881
|
+
}), /* @__PURE__ */ m(Oi, {
|
|
5791
5882
|
page: e.page ?? 1,
|
|
5792
5883
|
pageCount: e.pageCount,
|
|
5793
5884
|
total: e.total,
|
|
@@ -5803,123 +5894,149 @@ function Ai({ pagination: e }) {
|
|
|
5803
5894
|
}
|
|
5804
5895
|
//#endregion
|
|
5805
5896
|
//#region src/SelectTable.tsx
|
|
5806
|
-
var
|
|
5807
|
-
function
|
|
5897
|
+
var Ni = 40, Pi = 1200, Fi = 8;
|
|
5898
|
+
function Ii(e) {
|
|
5808
5899
|
let t = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
5809
5900
|
return `${Math.round(e / t * 1e3) / 1e3}rem`;
|
|
5810
5901
|
}
|
|
5811
|
-
var
|
|
5812
|
-
let
|
|
5902
|
+
var Li = r(function({ columns: t, children: n, empty: r, footer: a, title: o, help: l, description: f, action: p, filters: g, tools: _, onColumnResize: v, onColumnResizeReset: y, collapsible: b = !1, defaultOpen: x = !0, className: S, ...C }, w) {
|
|
5903
|
+
let [T, E] = d(x), D = s(), O = b && o != null ? {
|
|
5904
|
+
open: T,
|
|
5905
|
+
onToggle: () => E((e) => !e),
|
|
5906
|
+
controls: D
|
|
5907
|
+
} : void 0, k = e.count(n) === 0, A = k && !!r, { hasFilters: j, hasTitleRow: M } = ki({
|
|
5813
5908
|
title: o,
|
|
5814
|
-
description:
|
|
5815
|
-
action:
|
|
5816
|
-
filters:
|
|
5817
|
-
tools:
|
|
5818
|
-
}),
|
|
5909
|
+
description: f,
|
|
5910
|
+
action: p,
|
|
5911
|
+
filters: g,
|
|
5912
|
+
tools: _
|
|
5913
|
+
}), N = A && !M && !j, P = Qt({
|
|
5819
5914
|
selector: ".select-table__row",
|
|
5820
5915
|
y: 8,
|
|
5821
5916
|
duration: .45,
|
|
5822
5917
|
stagger: .05,
|
|
5823
5918
|
scroll: !0
|
|
5824
|
-
}),
|
|
5825
|
-
|
|
5826
|
-
}, [
|
|
5919
|
+
}), F = t.length ? t.map((e) => e.width ?? `minmax(${e.minWidth ?? "var(--select-table-col-min, 6.5rem)"}, ${e.grow ?? 1}fr)`).join(" ") : "1fr", I = u(null), L = i((e) => {
|
|
5920
|
+
I.current = e, typeof w == "function" ? w(e) : w && (w.current = e);
|
|
5921
|
+
}, [w]);
|
|
5827
5922
|
c(() => {
|
|
5828
5923
|
var e;
|
|
5829
|
-
(e =
|
|
5830
|
-
}, [
|
|
5831
|
-
let
|
|
5832
|
-
let r =
|
|
5924
|
+
(e = I.current) == null || e.style.setProperty("--select-table-cols", F);
|
|
5925
|
+
}, [F]);
|
|
5926
|
+
let ee = (e, n) => {
|
|
5927
|
+
let r = I.current;
|
|
5833
5928
|
if (!r) return;
|
|
5834
5929
|
let i = t.map((t, r) => r === e ? `${n}px` : t.width ?? `minmax(${t.minWidth ?? "var(--select-table-col-min, 6.5rem)"}, ${t.grow ?? 1}fr)`);
|
|
5835
5930
|
r.style.setProperty("--select-table-cols", i.join(" "));
|
|
5836
|
-
},
|
|
5931
|
+
}, R = (e) => (t) => {
|
|
5837
5932
|
var n;
|
|
5838
|
-
if (!
|
|
5933
|
+
if (!v || t.button !== 0) return;
|
|
5839
5934
|
let r = (n = t.currentTarget.parentElement) == null ? void 0 : n.getBoundingClientRect();
|
|
5840
5935
|
if (!r) return;
|
|
5841
5936
|
let i = t.clientX, a = r.width;
|
|
5842
5937
|
t.preventDefault(), t.stopPropagation(), t.currentTarget.setPointerCapture(t.pointerId);
|
|
5843
|
-
let o =
|
|
5938
|
+
let o = I.current;
|
|
5844
5939
|
o == null || o.classList.add("select-table--resizing");
|
|
5845
5940
|
let s = a, c = (t) => {
|
|
5846
|
-
s = Math.min(
|
|
5941
|
+
s = Math.min(Pi, Math.max(Ni, a + (t.clientX - i))), ee(e, s);
|
|
5847
5942
|
}, l = () => {
|
|
5848
|
-
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"),
|
|
5943
|
+
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"), v(e, Ii(s));
|
|
5849
5944
|
};
|
|
5850
5945
|
window.addEventListener("pointermove", c), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", l);
|
|
5851
|
-
},
|
|
5946
|
+
}, te = (e) => (t) => {
|
|
5852
5947
|
var n;
|
|
5853
|
-
if (!
|
|
5948
|
+
if (!v) return;
|
|
5854
5949
|
let r = t.key === "ArrowRight" ? 1 : t.key === "ArrowLeft" ? -1 : 0;
|
|
5855
5950
|
if (r === 0) return;
|
|
5856
5951
|
let i = (n = t.currentTarget.parentElement) == null ? void 0 : n.getBoundingClientRect();
|
|
5857
5952
|
if (!i) return;
|
|
5858
5953
|
t.preventDefault();
|
|
5859
|
-
let a =
|
|
5860
|
-
|
|
5954
|
+
let a = Fi * (t.shiftKey ? 10 : 1), o = Math.min(Pi, Math.max(Ni, i.width + r * a));
|
|
5955
|
+
ee(e, o), v(e, Ii(o));
|
|
5861
5956
|
};
|
|
5862
5957
|
return /* @__PURE__ */ h("div", {
|
|
5863
|
-
ref:
|
|
5864
|
-
...
|
|
5865
|
-
className: `select-table${
|
|
5866
|
-
style: { "--select-table-cols":
|
|
5867
|
-
children: [
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5958
|
+
ref: L,
|
|
5959
|
+
...C,
|
|
5960
|
+
className: `select-table${N ? " select-table--empty" : ""}${O ? ` select-table--collapsible${T ? " is-open" : ""}` : ""}${S ? " " + S : ""}`,
|
|
5961
|
+
style: { "--select-table-cols": F },
|
|
5962
|
+
children: [/* @__PURE__ */ m(Ai, {
|
|
5963
|
+
title: o,
|
|
5964
|
+
help: O ? void 0 : l,
|
|
5965
|
+
description: f,
|
|
5966
|
+
action: p,
|
|
5967
|
+
filters: O ? void 0 : g,
|
|
5968
|
+
tools: O ? void 0 : _,
|
|
5969
|
+
toggle: O
|
|
5970
|
+
}), /* @__PURE__ */ h(Ri, {
|
|
5971
|
+
enabled: !!O,
|
|
5972
|
+
open: T,
|
|
5973
|
+
id: D,
|
|
5974
|
+
children: [
|
|
5975
|
+
O && (g != null || _ != null) ? /* @__PURE__ */ m(Ai, {
|
|
5976
|
+
filters: g,
|
|
5977
|
+
tools: _
|
|
5978
|
+
}) : null,
|
|
5979
|
+
/* @__PURE__ */ m("div", {
|
|
5980
|
+
className: `select-table__scroll${A ? " select-table__scroll--empty" : ""}`,
|
|
5981
|
+
children: /* @__PURE__ */ h("div", {
|
|
5982
|
+
className: "select-table__scrollinner",
|
|
5983
|
+
children: [!A && /* @__PURE__ */ m("div", {
|
|
5984
|
+
className: "select-table__head",
|
|
5985
|
+
role: "row",
|
|
5986
|
+
children: t.map((e, n) => /* @__PURE__ */ h("div", {
|
|
5987
|
+
role: "columnheader",
|
|
5988
|
+
"aria-sort": e.sortable ? e.sortDir === "asc" ? "ascending" : e.sortDir === "desc" ? "descending" : "none" : void 0,
|
|
5989
|
+
className: `select-table__th select-table__cell--${e.align ?? "start"}`,
|
|
5990
|
+
children: [e.sortable ? /* @__PURE__ */ h("button", {
|
|
5991
|
+
type: "button",
|
|
5992
|
+
className: `select-table__sortbtn${e.sortDir === "asc" ? " select-table__sortbtn--asc" : ""}${e.sortDir == null ? "" : " select-table__sortbtn--active"}`,
|
|
5993
|
+
onClick: e.onSort,
|
|
5994
|
+
children: [e.label, /* @__PURE__ */ m(U, {})]
|
|
5995
|
+
}) : e.label, v && e.resizable !== !1 && n < t.length - 1 && /* @__PURE__ */ m("span", {
|
|
5996
|
+
role: "separator",
|
|
5997
|
+
"aria-orientation": "vertical",
|
|
5998
|
+
"aria-label": "Ajustar a largura da coluna",
|
|
5999
|
+
tabIndex: 0,
|
|
6000
|
+
className: "select-table__resizer",
|
|
6001
|
+
onPointerDown: R(n),
|
|
6002
|
+
onKeyDown: te(n),
|
|
6003
|
+
onDoubleClick: y ? () => y(n) : void 0
|
|
6004
|
+
})]
|
|
6005
|
+
}, n))
|
|
6006
|
+
}), /* @__PURE__ */ m("div", {
|
|
6007
|
+
className: "select-table__body",
|
|
6008
|
+
children: /* @__PURE__ */ m("div", {
|
|
6009
|
+
className: "select-table__rows",
|
|
6010
|
+
ref: P,
|
|
6011
|
+
children: k && r ? /* @__PURE__ */ m("div", {
|
|
6012
|
+
className: "select-table__empty",
|
|
6013
|
+
children: r
|
|
6014
|
+
}) : n
|
|
6015
|
+
})
|
|
6016
|
+
})]
|
|
6017
|
+
})
|
|
6018
|
+
}),
|
|
6019
|
+
a && /* @__PURE__ */ m("div", {
|
|
6020
|
+
className: "select-table__footer",
|
|
6021
|
+
children: a
|
|
5914
6022
|
})
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
className: "select-table__footer",
|
|
5918
|
-
children: a
|
|
5919
|
-
})
|
|
5920
|
-
]
|
|
6023
|
+
]
|
|
6024
|
+
})]
|
|
5921
6025
|
});
|
|
5922
|
-
})
|
|
6026
|
+
});
|
|
6027
|
+
function Ri({ enabled: e, open: t, id: n, children: r }) {
|
|
6028
|
+
return e ? /* @__PURE__ */ m("div", {
|
|
6029
|
+
className: "select-table__collapse",
|
|
6030
|
+
id: n,
|
|
6031
|
+
"data-open": t,
|
|
6032
|
+
"aria-hidden": !t,
|
|
6033
|
+
children: /* @__PURE__ */ m("div", {
|
|
6034
|
+
className: "select-table__collapsewrap",
|
|
6035
|
+
children: r
|
|
6036
|
+
})
|
|
6037
|
+
}) : /* @__PURE__ */ m(p, { children: r });
|
|
6038
|
+
}
|
|
6039
|
+
var zi = r(function({ name: e, secondary: t, src: n, className: r, ...i }, a) {
|
|
5923
6040
|
return /* @__PURE__ */ h("span", {
|
|
5924
6041
|
ref: a,
|
|
5925
6042
|
...i,
|
|
@@ -5939,27 +6056,33 @@ var Fi = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
5939
6056
|
})]
|
|
5940
6057
|
});
|
|
5941
6058
|
});
|
|
5942
|
-
function
|
|
6059
|
+
function Bi({ children: e, onClick: t, expanded: n, nested: r = !1 }) {
|
|
6060
|
+
let i = `select-table__row${t ? " select-table__row--clickable" : ""}${r ? " select-table__row--nested" : ""}${n ? " is-expanded" : ""}`;
|
|
5943
6061
|
return t ? /* @__PURE__ */ m("button", {
|
|
5944
6062
|
type: "button",
|
|
5945
|
-
className:
|
|
6063
|
+
className: i,
|
|
5946
6064
|
onClick: t,
|
|
6065
|
+
"aria-expanded": n,
|
|
5947
6066
|
children: e
|
|
5948
6067
|
}) : /* @__PURE__ */ m("div", {
|
|
5949
|
-
className:
|
|
6068
|
+
className: i,
|
|
5950
6069
|
role: "row",
|
|
5951
6070
|
children: e
|
|
5952
6071
|
});
|
|
5953
6072
|
}
|
|
5954
|
-
var
|
|
5955
|
-
return /* @__PURE__ */
|
|
5956
|
-
ref:
|
|
5957
|
-
...
|
|
6073
|
+
var Vi = r(function({ children: e, align: t = "start", disclosure: n, className: r, ...i }, a) {
|
|
6074
|
+
return /* @__PURE__ */ h("div", {
|
|
6075
|
+
ref: a,
|
|
6076
|
+
...i,
|
|
5958
6077
|
role: "cell",
|
|
5959
|
-
className: `select-table__td select-table__cell--${t}${
|
|
5960
|
-
children:
|
|
6078
|
+
className: `select-table__td select-table__cell--${t}${r ? " " + r : ""}`,
|
|
6079
|
+
children: [n ? /* @__PURE__ */ m("span", {
|
|
6080
|
+
className: `select-table__disclosure${n === "open" ? " is-open" : ""}`,
|
|
6081
|
+
"aria-hidden": "true",
|
|
6082
|
+
children: n !== "none" && /* @__PURE__ */ m(oe, {})
|
|
6083
|
+
}) : null, e]
|
|
5961
6084
|
});
|
|
5962
|
-
}),
|
|
6085
|
+
}), Hi = r(function({ icon: e, title: t, subtitle: n, action: r, className: i, ...a }, o) {
|
|
5963
6086
|
return /* @__PURE__ */ h("div", {
|
|
5964
6087
|
ref: o,
|
|
5965
6088
|
...a,
|
|
@@ -5983,7 +6106,7 @@ var Ri = r(function({ children: e, align: t = "start", className: n, ...r }, i)
|
|
|
5983
6106
|
})
|
|
5984
6107
|
]
|
|
5985
6108
|
});
|
|
5986
|
-
}),
|
|
6109
|
+
}), Ui = r(function({ children: e, className: t, ...n }, r) {
|
|
5987
6110
|
return /* @__PURE__ */ m("div", {
|
|
5988
6111
|
ref: r,
|
|
5989
6112
|
...n,
|
|
@@ -5991,7 +6114,7 @@ var Ri = r(function({ children: e, align: t = "start", className: n, ...r }, i)
|
|
|
5991
6114
|
role: "menu",
|
|
5992
6115
|
children: e
|
|
5993
6116
|
});
|
|
5994
|
-
}),
|
|
6117
|
+
}), Wi = r(function({ children: e, icon: t, trailing: n, onClick: r, active: i = !1, tone: a = "default", className: o, ...s }, c) {
|
|
5995
6118
|
return /* @__PURE__ */ h("button", {
|
|
5996
6119
|
ref: c,
|
|
5997
6120
|
...s,
|
|
@@ -6014,8 +6137,8 @@ var Ri = r(function({ children: e, align: t = "start", className: n, ...r }, i)
|
|
|
6014
6137
|
})
|
|
6015
6138
|
]
|
|
6016
6139
|
});
|
|
6017
|
-
}),
|
|
6018
|
-
let l = qr(t), u = i ?? /^(https?:|mailto:|tel:)/i.test(l ?? ""), d = r ?? (u ? /* @__PURE__ */ m(
|
|
6140
|
+
}), Gi = r(function({ children: e, href: t, icon: n, trailing: r, external: i, tone: a = "default", className: o, ...s }, c) {
|
|
6141
|
+
let l = qr(t), u = i ?? /^(https?:|mailto:|tel:)/i.test(l ?? ""), d = r ?? (u ? /* @__PURE__ */ m(K, {}) : void 0);
|
|
6019
6142
|
return /* @__PURE__ */ h("a", {
|
|
6020
6143
|
ref: c,
|
|
6021
6144
|
...s,
|
|
@@ -6040,19 +6163,19 @@ var Ri = r(function({ children: e, align: t = "start", className: n, ...r }, i)
|
|
|
6040
6163
|
]
|
|
6041
6164
|
});
|
|
6042
6165
|
});
|
|
6043
|
-
function
|
|
6166
|
+
function Ki({ children: e }) {
|
|
6044
6167
|
return /* @__PURE__ */ m("div", {
|
|
6045
6168
|
className: "select-menu__heading",
|
|
6046
6169
|
children: e
|
|
6047
6170
|
});
|
|
6048
6171
|
}
|
|
6049
|
-
function
|
|
6172
|
+
function qi() {
|
|
6050
6173
|
return /* @__PURE__ */ m("div", {
|
|
6051
6174
|
className: "select-menu__divider",
|
|
6052
6175
|
role: "separator"
|
|
6053
6176
|
});
|
|
6054
6177
|
}
|
|
6055
|
-
var
|
|
6178
|
+
var Ji = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
|
|
6056
6179
|
return /* @__PURE__ */ h("button", {
|
|
6057
6180
|
ref: a,
|
|
6058
6181
|
...i,
|
|
@@ -6064,10 +6187,10 @@ var Gi = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6064
6187
|
children: [/* @__PURE__ */ m("span", { children: e }), /* @__PURE__ */ m("span", {
|
|
6065
6188
|
className: "select-menubtn__caret",
|
|
6066
6189
|
"aria-hidden": "true",
|
|
6067
|
-
children: /* @__PURE__ */ m(
|
|
6190
|
+
children: /* @__PURE__ */ m(U, {})
|
|
6068
6191
|
})]
|
|
6069
6192
|
});
|
|
6070
|
-
}),
|
|
6193
|
+
}), Yi = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
|
|
6071
6194
|
return /* @__PURE__ */ h("button", {
|
|
6072
6195
|
ref: a,
|
|
6073
6196
|
...i,
|
|
@@ -6080,7 +6203,7 @@ var Gi = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6080
6203
|
children: /* @__PURE__ */ m(Me, {})
|
|
6081
6204
|
}), e]
|
|
6082
6205
|
});
|
|
6083
|
-
}),
|
|
6206
|
+
}), Xi = r(function({ label: e, value: t, href: n, onCopy: r, className: i, ...a }, o) {
|
|
6084
6207
|
let [s, c] = d(!1), l = qr(n), u = () => {
|
|
6085
6208
|
navigator.clipboard.writeText(t).then(() => {
|
|
6086
6209
|
c(!0), setTimeout(() => c(!1), 1200), r == null || r(t);
|
|
@@ -6107,10 +6230,10 @@ var Gi = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6107
6230
|
rel: "noreferrer",
|
|
6108
6231
|
"aria-label": "Abrir",
|
|
6109
6232
|
title: "Abrir",
|
|
6110
|
-
children: /* @__PURE__ */ m(
|
|
6233
|
+
children: /* @__PURE__ */ m(K, {})
|
|
6111
6234
|
}), /* @__PURE__ */ m(J, {
|
|
6112
6235
|
size: "sm",
|
|
6113
|
-
icon: m(s ? Ve :
|
|
6236
|
+
icon: m(s ? Ve : le, {}),
|
|
6114
6237
|
label: s ? "Copiado" : "Copiar",
|
|
6115
6238
|
onClick: u
|
|
6116
6239
|
})]
|
|
@@ -6120,7 +6243,7 @@ var Gi = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6120
6243
|
});
|
|
6121
6244
|
//#endregion
|
|
6122
6245
|
//#region src/SelectCopyableId.tsx
|
|
6123
|
-
function
|
|
6246
|
+
function Zi({ value: e, children: t, truncate: n, label: r = "Copiar id", fallback: i = "—", to: a, reveal: o = "hover" }) {
|
|
6124
6247
|
let [s, c] = d(!1);
|
|
6125
6248
|
if (!e) return /* @__PURE__ */ m(p, { children: i });
|
|
6126
6249
|
let l = t ?? (n ? e.slice(0, n) : e), u = qr(a);
|
|
@@ -6145,14 +6268,14 @@ function Ji({ value: e, children: t, truncate: n, label: r = "Copiar id", fallba
|
|
|
6145
6268
|
});
|
|
6146
6269
|
},
|
|
6147
6270
|
"aria-label": s ? "Copiado" : r,
|
|
6148
|
-
children: m(s ? Ve :
|
|
6271
|
+
children: m(s ? Ve : le, {})
|
|
6149
6272
|
})
|
|
6150
6273
|
})]
|
|
6151
6274
|
});
|
|
6152
6275
|
}
|
|
6153
6276
|
//#endregion
|
|
6154
6277
|
//#region src/SelectCollapsible.tsx
|
|
6155
|
-
var
|
|
6278
|
+
var Qi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1, className: i, ...a }, o) {
|
|
6156
6279
|
let [s, c] = d(n);
|
|
6157
6280
|
return /* @__PURE__ */ h("div", {
|
|
6158
6281
|
ref: o,
|
|
@@ -6169,7 +6292,7 @@ var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6169
6292
|
}), /* @__PURE__ */ m("span", {
|
|
6170
6293
|
className: "select-collapsible__chevron",
|
|
6171
6294
|
"aria-hidden": "true",
|
|
6172
|
-
children: /* @__PURE__ */ m(
|
|
6295
|
+
children: /* @__PURE__ */ m(U, {})
|
|
6173
6296
|
})]
|
|
6174
6297
|
}), /* @__PURE__ */ m("div", {
|
|
6175
6298
|
className: "select-collapsible__bodywrap",
|
|
@@ -6183,7 +6306,7 @@ var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6183
6306
|
})
|
|
6184
6307
|
})]
|
|
6185
6308
|
});
|
|
6186
|
-
}),
|
|
6309
|
+
}), $i = r(function({ icon: e, title: t, description: n, action: r, onDismiss: i, className: a, ...o }, s) {
|
|
6187
6310
|
return /* @__PURE__ */ h("div", {
|
|
6188
6311
|
ref: s,
|
|
6189
6312
|
...o,
|
|
@@ -6193,7 +6316,7 @@ var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6193
6316
|
className: "select-actioncard__dismiss",
|
|
6194
6317
|
children: /* @__PURE__ */ m(J, {
|
|
6195
6318
|
size: "sm",
|
|
6196
|
-
icon: /* @__PURE__ */ m(
|
|
6319
|
+
icon: /* @__PURE__ */ m(q, {}),
|
|
6197
6320
|
label: "Dispensar",
|
|
6198
6321
|
onClick: i
|
|
6199
6322
|
})
|
|
@@ -6218,7 +6341,7 @@ var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6218
6341
|
})
|
|
6219
6342
|
]
|
|
6220
6343
|
});
|
|
6221
|
-
}),
|
|
6344
|
+
}), ea = r(function({ media: e, sublabel: t, title: n, badge: r, meta: i, accent: a = !0, onClick: o, className: s, ...c }, l) {
|
|
6222
6345
|
return /* @__PURE__ */ h("button", {
|
|
6223
6346
|
ref: l,
|
|
6224
6347
|
...c,
|
|
@@ -6255,7 +6378,7 @@ var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6255
6378
|
})
|
|
6256
6379
|
]
|
|
6257
6380
|
});
|
|
6258
|
-
}),
|
|
6381
|
+
}), ta = r(function({ label: e, onClick: t, className: n, ...r }, i) {
|
|
6259
6382
|
return /* @__PURE__ */ h("button", {
|
|
6260
6383
|
ref: i,
|
|
6261
6384
|
...r,
|
|
@@ -6271,7 +6394,7 @@ var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6271
6394
|
children: e
|
|
6272
6395
|
})]
|
|
6273
6396
|
});
|
|
6274
|
-
}),
|
|
6397
|
+
}), na = r(function({ avatar: e, name: t, badge: n, onClick: r, className: i, ...a }, o) {
|
|
6275
6398
|
return /* @__PURE__ */ h("button", {
|
|
6276
6399
|
ref: o,
|
|
6277
6400
|
...a,
|
|
@@ -6296,8 +6419,8 @@ var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6296
6419
|
})
|
|
6297
6420
|
]
|
|
6298
6421
|
});
|
|
6299
|
-
}),
|
|
6300
|
-
function
|
|
6422
|
+
}), ra = 220;
|
|
6423
|
+
function ia({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a, aside: s, size: c = "md", showClose: l = !0, noise: u = !0, dividedHeader: f = !1, backdrop: _ = "dim", theme: v = "light" }) {
|
|
6301
6424
|
let [y, b] = d(e), [x, S] = d(!1);
|
|
6302
6425
|
if (o(() => {
|
|
6303
6426
|
if (e) b(!0), S(!1);
|
|
@@ -6305,7 +6428,7 @@ function ta({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6305
6428
|
S(!0);
|
|
6306
6429
|
let e = setTimeout(() => {
|
|
6307
6430
|
b(!1), S(!1);
|
|
6308
|
-
},
|
|
6431
|
+
}, ra);
|
|
6309
6432
|
return () => clearTimeout(e);
|
|
6310
6433
|
}
|
|
6311
6434
|
}, [e, y]), o(() => {
|
|
@@ -6324,7 +6447,7 @@ function ta({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6324
6447
|
className: "select-modal__close",
|
|
6325
6448
|
"aria-label": "Fechar",
|
|
6326
6449
|
onClick: t,
|
|
6327
|
-
children: /* @__PURE__ */ m(
|
|
6450
|
+
children: /* @__PURE__ */ m(q, {})
|
|
6328
6451
|
}), w = `select-modal__header${f ? " select-modal__header--divided" : ""}`;
|
|
6329
6452
|
return g(/* @__PURE__ */ m("div", {
|
|
6330
6453
|
className: `select select-modal__overlay${u ? " select-modal__overlay--noise" : ""}${_ === "blur" ? " select-modal__overlay--blur" : ""}${x ? " select-modal__overlay--closing" : ""}`,
|
|
@@ -6383,7 +6506,7 @@ function ta({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6383
6506
|
}
|
|
6384
6507
|
//#endregion
|
|
6385
6508
|
//#region src/SelectRowActions.tsx
|
|
6386
|
-
function
|
|
6509
|
+
function aa({ actions: e, label: t = "Ações" }) {
|
|
6387
6510
|
let [n, r] = d(!1);
|
|
6388
6511
|
return /* @__PURE__ */ m(on, {
|
|
6389
6512
|
active: n,
|
|
@@ -6405,8 +6528,8 @@ function na({ actions: e, label: t = "Ações" }) {
|
|
|
6405
6528
|
}
|
|
6406
6529
|
//#endregion
|
|
6407
6530
|
//#region src/SelectConfirmModal.tsx
|
|
6408
|
-
function
|
|
6409
|
-
return /* @__PURE__ */ m(
|
|
6531
|
+
function oa({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmLabel: a = "Confirmar", cancelLabel: o = "Cancelar", destructive: s = !1, loading: c = !1, theme: l }) {
|
|
6532
|
+
return /* @__PURE__ */ m(ia, {
|
|
6410
6533
|
open: e,
|
|
6411
6534
|
onClose: t,
|
|
6412
6535
|
title: r,
|
|
@@ -6435,8 +6558,8 @@ function ra({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
6435
6558
|
}
|
|
6436
6559
|
//#endregion
|
|
6437
6560
|
//#region src/SelectFormModal.tsx
|
|
6438
|
-
function
|
|
6439
|
-
return /* @__PURE__ */ h(
|
|
6561
|
+
function sa({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children: a, submitLabel: o = "Salvar", cancelLabel: s = "Cancelar", submitting: c = !1, submitDisabled: l = !1, submitVariant: u = "primary", error: d, size: f = "md", theme: p }) {
|
|
6562
|
+
return /* @__PURE__ */ h(ia, {
|
|
6440
6563
|
open: e,
|
|
6441
6564
|
onClose: t,
|
|
6442
6565
|
title: r,
|
|
@@ -6478,30 +6601,30 @@ function ia({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
6478
6601
|
}
|
|
6479
6602
|
//#endregion
|
|
6480
6603
|
//#region src/SelectDataTable.tsx
|
|
6481
|
-
var
|
|
6604
|
+
var ca = "9.5rem", la = {
|
|
6482
6605
|
minWidth: "9.5rem",
|
|
6483
6606
|
grow: 2
|
|
6484
|
-
},
|
|
6485
|
-
function
|
|
6607
|
+
}, ua = "select-datatable:hidden-cols:";
|
|
6608
|
+
function da(e) {
|
|
6486
6609
|
try {
|
|
6487
|
-
let t = localStorage.getItem(
|
|
6610
|
+
let t = localStorage.getItem(ua + e), n = t ? JSON.parse(t) : null;
|
|
6488
6611
|
return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
|
|
6489
6612
|
} catch {
|
|
6490
6613
|
return [];
|
|
6491
6614
|
}
|
|
6492
6615
|
}
|
|
6493
|
-
function
|
|
6616
|
+
function fa(e, t) {
|
|
6494
6617
|
try {
|
|
6495
|
-
t.length === 0 ? localStorage.removeItem(
|
|
6618
|
+
t.length === 0 ? localStorage.removeItem(ua + e) : localStorage.setItem(ua + e, JSON.stringify(t));
|
|
6496
6619
|
} catch {}
|
|
6497
6620
|
}
|
|
6498
|
-
function
|
|
6621
|
+
function pa(e) {
|
|
6499
6622
|
return e.hideable ?? !!e.title;
|
|
6500
6623
|
}
|
|
6501
|
-
var
|
|
6502
|
-
function
|
|
6624
|
+
var ma = "select-datatable:col-widths:";
|
|
6625
|
+
function ha(e) {
|
|
6503
6626
|
try {
|
|
6504
|
-
let t = localStorage.getItem(
|
|
6627
|
+
let t = localStorage.getItem(ma + e), n = t ? JSON.parse(t) : null;
|
|
6505
6628
|
if (!n || typeof n != "object" || Array.isArray(n)) return {};
|
|
6506
6629
|
let r = {};
|
|
6507
6630
|
for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
|
|
@@ -6510,16 +6633,16 @@ function fa(e) {
|
|
|
6510
6633
|
return {};
|
|
6511
6634
|
}
|
|
6512
6635
|
}
|
|
6513
|
-
function
|
|
6636
|
+
function ga(e, t) {
|
|
6514
6637
|
try {
|
|
6515
|
-
Object.keys(t).length === 0 ? localStorage.removeItem(
|
|
6638
|
+
Object.keys(t).length === 0 ? localStorage.removeItem(ma + e) : localStorage.setItem(ma + e, JSON.stringify(t));
|
|
6516
6639
|
} catch {}
|
|
6517
6640
|
}
|
|
6518
|
-
var
|
|
6519
|
-
function
|
|
6641
|
+
var _a = "select-datatable:page-size:";
|
|
6642
|
+
function va(e, t, n) {
|
|
6520
6643
|
let [r, i] = d(() => {
|
|
6521
6644
|
try {
|
|
6522
|
-
let r = Number(localStorage.getItem(
|
|
6645
|
+
let r = Number(localStorage.getItem(_a + e));
|
|
6523
6646
|
return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
|
|
6524
6647
|
} catch {
|
|
6525
6648
|
return t;
|
|
@@ -6528,22 +6651,22 @@ function ha(e, t, n) {
|
|
|
6528
6651
|
return [r, (t) => {
|
|
6529
6652
|
i(t);
|
|
6530
6653
|
try {
|
|
6531
|
-
localStorage.setItem(
|
|
6654
|
+
localStorage.setItem(_a + e, String(t));
|
|
6532
6655
|
} catch {}
|
|
6533
6656
|
}];
|
|
6534
6657
|
}
|
|
6535
|
-
function
|
|
6658
|
+
function ya(e, t, n) {
|
|
6536
6659
|
let r = e == null || e === "", i = t == null || t === "";
|
|
6537
6660
|
return r || i ? r && i ? 0 : r ? 1 : -1 : typeof e == "number" && typeof t == "number" ? n * (e - t) : n * String(e).localeCompare(String(t), "pt-BR", {
|
|
6538
6661
|
numeric: !0,
|
|
6539
6662
|
sensitivity: "base"
|
|
6540
6663
|
});
|
|
6541
6664
|
}
|
|
6542
|
-
function
|
|
6543
|
-
let [_, v] = d(() => g ?
|
|
6665
|
+
function ba({ columns: e, items: t, getId: n, loading: r = !1, empty: i, pagination: a, onRowClick: o, title: s, help: c, description: u, action: f, filters: p, columnsKey: g }) {
|
|
6666
|
+
let [_, v] = d(() => g ? da(g) : []), [y, b] = d(!1), [x, S] = d(() => g ? ha(g) : {}), C = l(() => new Set(_), [_]), w = e.filter(pa), T = w.length > 0 && w.every((e) => C.has(e.key)), E = (e) => !T && C.has(e.key) && pa(e), D = e.filter((e) => !E(e)), O = w.filter((e) => !E(e)), [k, A] = d(null), j = (e) => {
|
|
6544
6667
|
v((t) => {
|
|
6545
6668
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
6546
|
-
return g &&
|
|
6669
|
+
return g && fa(g, r), n && A((t) => t && t.key === e.key ? null : t), r;
|
|
6547
6670
|
});
|
|
6548
6671
|
}, M = (e) => {
|
|
6549
6672
|
A((t) => {
|
|
@@ -6560,7 +6683,7 @@ function _a({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6560
6683
|
let e = N == null ? void 0 : N.sortValue;
|
|
6561
6684
|
if (!k || !e) return t;
|
|
6562
6685
|
let n = k.dir === "asc" ? 1 : -1;
|
|
6563
|
-
return [...t].sort((t, r) =>
|
|
6686
|
+
return [...t].sort((t, r) => ya(e(t), e(r), n));
|
|
6564
6687
|
}, [
|
|
6565
6688
|
t,
|
|
6566
6689
|
k,
|
|
@@ -6579,11 +6702,11 @@ function _a({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6579
6702
|
let n = D[e];
|
|
6580
6703
|
n && S((e) => {
|
|
6581
6704
|
let r = { ...e };
|
|
6582
|
-
return t ? r[n.key] = t : delete r[n.key], g &&
|
|
6705
|
+
return t ? r[n.key] = t : delete r[n.key], g && ga(g, r), r;
|
|
6583
6706
|
});
|
|
6584
6707
|
}, L = () => {
|
|
6585
|
-
S({}), g &&
|
|
6586
|
-
}, ee = Object.keys(x).length > 0, R = !r && i ? /* @__PURE__ */ m(
|
|
6708
|
+
S({}), g && ga(g, {});
|
|
6709
|
+
}, ee = Object.keys(x).length > 0, R = !r && i ? /* @__PURE__ */ m(Hi, {
|
|
6587
6710
|
icon: i.icon,
|
|
6588
6711
|
title: i.heading,
|
|
6589
6712
|
subtitle: i.text,
|
|
@@ -6639,7 +6762,7 @@ function _a({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6639
6762
|
}) : null;
|
|
6640
6763
|
return /* @__PURE__ */ h("div", {
|
|
6641
6764
|
className: "select-datatable",
|
|
6642
|
-
children: [/* @__PURE__ */ m(
|
|
6765
|
+
children: [/* @__PURE__ */ m(Li, {
|
|
6643
6766
|
columns: F,
|
|
6644
6767
|
empty: R,
|
|
6645
6768
|
title: s,
|
|
@@ -6650,24 +6773,24 @@ function _a({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6650
6773
|
tools: te,
|
|
6651
6774
|
onColumnResize: (e, t) => I(e, t),
|
|
6652
6775
|
onColumnResizeReset: (e) => I(e, null),
|
|
6653
|
-
children: r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(
|
|
6776
|
+
children: r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(Bi, { children: D.map((e, t) => /* @__PURE__ */ m(Vi, {
|
|
6654
6777
|
align: e.align,
|
|
6655
6778
|
width: e.width,
|
|
6656
6779
|
children: /* @__PURE__ */ m("span", { className: "select-skeleton select-datatable__skel" })
|
|
6657
|
-
}, t)) }, `skeleton-${t}`)) : P.map((e) => /* @__PURE__ */ m(
|
|
6780
|
+
}, t)) }, `skeleton-${t}`)) : P.map((e) => /* @__PURE__ */ m(Bi, {
|
|
6658
6781
|
onClick: o ? () => o(e) : void 0,
|
|
6659
|
-
children: D.map((t, n) => /* @__PURE__ */ m(
|
|
6782
|
+
children: D.map((t, n) => /* @__PURE__ */ m(Vi, {
|
|
6660
6783
|
align: t.align,
|
|
6661
6784
|
width: t.width,
|
|
6662
6785
|
children: t.render(e)
|
|
6663
6786
|
}, n))
|
|
6664
6787
|
}, n(e)))
|
|
6665
|
-
}), a && /* @__PURE__ */ m(
|
|
6788
|
+
}), a && /* @__PURE__ */ m(Mi, { pagination: a })]
|
|
6666
6789
|
});
|
|
6667
6790
|
}
|
|
6668
6791
|
//#endregion
|
|
6669
6792
|
//#region src/SelectAddCard.tsx
|
|
6670
|
-
var
|
|
6793
|
+
var xa = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
|
|
6671
6794
|
return /* @__PURE__ */ h("button", {
|
|
6672
6795
|
ref: o,
|
|
6673
6796
|
...a,
|
|
@@ -6693,8 +6816,8 @@ var va = r(function({ label: e, description: t, onClick: n, icon: r, className:
|
|
|
6693
6816
|
});
|
|
6694
6817
|
//#endregion
|
|
6695
6818
|
//#region src/SelectCardGrid.tsx
|
|
6696
|
-
function
|
|
6697
|
-
let _ = !r && e.length === 0 && a != null, { hasTitleRow: v, hasFilters: y } =
|
|
6819
|
+
function Sa({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount: i = 6, empty: a, pagination: o, create: s, minCardWidth: c = "16rem", title: l, help: u, description: d, action: f, filters: p, tools: g }) {
|
|
6820
|
+
let _ = !r && e.length === 0 && a != null, { hasTitleRow: v, hasFilters: y } = ki({
|
|
6698
6821
|
title: l,
|
|
6699
6822
|
description: d,
|
|
6700
6823
|
action: f,
|
|
@@ -6706,7 +6829,7 @@ function ya({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
6706
6829
|
children: [
|
|
6707
6830
|
(v || y) && /* @__PURE__ */ m("div", {
|
|
6708
6831
|
className: "select-cardgrid__chrome",
|
|
6709
|
-
children: /* @__PURE__ */ m(
|
|
6832
|
+
children: /* @__PURE__ */ m(Ai, {
|
|
6710
6833
|
title: l,
|
|
6711
6834
|
help: u,
|
|
6712
6835
|
description: d,
|
|
@@ -6717,7 +6840,7 @@ function ya({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
6717
6840
|
}),
|
|
6718
6841
|
_ ? /* @__PURE__ */ m("div", {
|
|
6719
6842
|
className: "select-cardgrid__empty",
|
|
6720
|
-
children: /* @__PURE__ */ m(
|
|
6843
|
+
children: /* @__PURE__ */ m(Hi, {
|
|
6721
6844
|
icon: a.icon,
|
|
6722
6845
|
title: a.heading,
|
|
6723
6846
|
subtitle: a.text,
|
|
@@ -6735,19 +6858,19 @@ function ya({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
6735
6858
|
}, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ m("div", {
|
|
6736
6859
|
className: "select-cardgrid__item",
|
|
6737
6860
|
children: n(e)
|
|
6738
|
-
}, t(e))), !r && s && /* @__PURE__ */ m(
|
|
6861
|
+
}, t(e))), !r && s && /* @__PURE__ */ m(xa, {
|
|
6739
6862
|
label: s.label,
|
|
6740
6863
|
description: s.description,
|
|
6741
6864
|
onClick: s.onAction
|
|
6742
6865
|
})]
|
|
6743
6866
|
}),
|
|
6744
|
-
o && /* @__PURE__ */ m(
|
|
6867
|
+
o && /* @__PURE__ */ m(Mi, { pagination: o })
|
|
6745
6868
|
]
|
|
6746
6869
|
});
|
|
6747
6870
|
}
|
|
6748
6871
|
//#endregion
|
|
6749
6872
|
//#region src/SelectRecordCard.tsx
|
|
6750
|
-
var
|
|
6873
|
+
var Ca = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags: a, status: o, meta: s, to: c, accent: l = !1, className: u, ...d }, f) {
|
|
6751
6874
|
let p = o != null || s != null, g = qr(c);
|
|
6752
6875
|
return /* @__PURE__ */ h("div", {
|
|
6753
6876
|
ref: f,
|
|
@@ -6813,7 +6936,7 @@ var ba = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
|
|
|
6813
6936
|
})
|
|
6814
6937
|
]
|
|
6815
6938
|
});
|
|
6816
|
-
}),
|
|
6939
|
+
}), wa = r(function({ kind: e, className: t, ...n }, r) {
|
|
6817
6940
|
return /* @__PURE__ */ h("span", {
|
|
6818
6941
|
ref: r,
|
|
6819
6942
|
...n,
|
|
@@ -6831,18 +6954,18 @@ var ba = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
|
|
|
6831
6954
|
});
|
|
6832
6955
|
//#endregion
|
|
6833
6956
|
//#region src/SelectSplitChain.tsx
|
|
6834
|
-
function
|
|
6957
|
+
function Ta(e) {
|
|
6835
6958
|
var t;
|
|
6836
6959
|
return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
|
|
6837
6960
|
}
|
|
6838
|
-
function
|
|
6961
|
+
function Ea({ node: e, origin: t = !1 }) {
|
|
6839
6962
|
return /* @__PURE__ */ h("span", {
|
|
6840
6963
|
className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
|
|
6841
6964
|
children: [
|
|
6842
6965
|
/* @__PURE__ */ m("span", {
|
|
6843
6966
|
className: "select-chain__dot",
|
|
6844
6967
|
"aria-hidden": "true",
|
|
6845
|
-
children:
|
|
6968
|
+
children: Ta(e)
|
|
6846
6969
|
}),
|
|
6847
6970
|
/* @__PURE__ */ m("span", {
|
|
6848
6971
|
className: "select-chain__label",
|
|
@@ -6856,16 +6979,16 @@ function Ca({ node: e, origin: t = !1 }) {
|
|
|
6856
6979
|
]
|
|
6857
6980
|
});
|
|
6858
6981
|
}
|
|
6859
|
-
var
|
|
6982
|
+
var Da = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
|
|
6860
6983
|
let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ m("span", {
|
|
6861
6984
|
className: "select-chain__link",
|
|
6862
6985
|
"aria-hidden": "true"
|
|
6863
6986
|
}, e);
|
|
6864
|
-
t && c.push(/* @__PURE__ */ m(
|
|
6987
|
+
t && c.push(/* @__PURE__ */ m(Ea, {
|
|
6865
6988
|
node: t,
|
|
6866
6989
|
origin: !0
|
|
6867
6990
|
}, "__origin"));
|
|
6868
|
-
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ m(
|
|
6991
|
+
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ m(Ea, { node: e }, e.id));
|
|
6869
6992
|
return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ h("span", {
|
|
6870
6993
|
className: "select-chain__more",
|
|
6871
6994
|
children: ["+", s]
|
|
@@ -6875,43 +6998,43 @@ var wa = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
|
|
|
6875
6998
|
className: `select-chain${r ? " " + r : ""}`,
|
|
6876
6999
|
children: c
|
|
6877
7000
|
});
|
|
6878
|
-
}),
|
|
7001
|
+
}), Oa = new Intl.NumberFormat("pt-BR", {
|
|
6879
7002
|
style: "currency",
|
|
6880
7003
|
currency: "BRL"
|
|
6881
7004
|
});
|
|
6882
|
-
function
|
|
7005
|
+
function ka(e) {
|
|
6883
7006
|
let t = typeof e == "string" ? Number(e) : e;
|
|
6884
7007
|
return typeof t == "number" && Number.isFinite(t) ? t : 0;
|
|
6885
7008
|
}
|
|
6886
|
-
function
|
|
6887
|
-
return
|
|
7009
|
+
function Aa(e) {
|
|
7010
|
+
return Oa.format(ka(e) / 100);
|
|
6888
7011
|
}
|
|
6889
7012
|
//#endregion
|
|
6890
7013
|
//#region src/SelectMoney.tsx
|
|
6891
|
-
var
|
|
7014
|
+
var ja = "sw:hide-money", Ma = {
|
|
6892
7015
|
hidden: !1,
|
|
6893
7016
|
toggle: () => {},
|
|
6894
7017
|
setHidden: () => {}
|
|
6895
|
-
},
|
|
6896
|
-
function
|
|
7018
|
+
}, Na = n(null);
|
|
7019
|
+
function Pa() {
|
|
6897
7020
|
try {
|
|
6898
|
-
return localStorage.getItem(
|
|
7021
|
+
return localStorage.getItem(ja) === "1";
|
|
6899
7022
|
} catch {
|
|
6900
7023
|
return !1;
|
|
6901
7024
|
}
|
|
6902
7025
|
}
|
|
6903
|
-
function
|
|
7026
|
+
function Fa(e) {
|
|
6904
7027
|
try {
|
|
6905
|
-
localStorage.setItem(
|
|
7028
|
+
localStorage.setItem(ja, e ? "1" : "0");
|
|
6906
7029
|
} catch {}
|
|
6907
7030
|
}
|
|
6908
|
-
function
|
|
6909
|
-
let [t, n] = d(
|
|
6910
|
-
n(e),
|
|
7031
|
+
function Ia({ children: e }) {
|
|
7032
|
+
let [t, n] = d(Pa), r = i((e) => {
|
|
7033
|
+
n(e), Fa(e);
|
|
6911
7034
|
}, []), a = i(() => {
|
|
6912
7035
|
n((e) => {
|
|
6913
7036
|
let t = !e;
|
|
6914
|
-
return
|
|
7037
|
+
return Fa(t), t;
|
|
6915
7038
|
});
|
|
6916
7039
|
}, []), o = l(() => ({
|
|
6917
7040
|
hidden: t,
|
|
@@ -6922,16 +7045,16 @@ function Na({ children: e }) {
|
|
|
6922
7045
|
a,
|
|
6923
7046
|
r
|
|
6924
7047
|
]);
|
|
6925
|
-
return /* @__PURE__ */ m(
|
|
7048
|
+
return /* @__PURE__ */ m(Na.Provider, {
|
|
6926
7049
|
value: o,
|
|
6927
7050
|
children: e
|
|
6928
7051
|
});
|
|
6929
7052
|
}
|
|
6930
|
-
function
|
|
6931
|
-
return a(
|
|
7053
|
+
function La() {
|
|
7054
|
+
return a(Na) ?? Ma;
|
|
6932
7055
|
}
|
|
6933
|
-
var
|
|
6934
|
-
let { hidden: a } =
|
|
7056
|
+
var Ra = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
|
|
7057
|
+
let { hidden: a } = La();
|
|
6935
7058
|
return /* @__PURE__ */ m("span", {
|
|
6936
7059
|
ref: i,
|
|
6937
7060
|
...r,
|
|
@@ -6940,15 +7063,15 @@ var Fa = r(function({ children: e, label: t = "valor oculto", className: n, ...r
|
|
|
6940
7063
|
children: e
|
|
6941
7064
|
});
|
|
6942
7065
|
});
|
|
6943
|
-
function
|
|
6944
|
-
let n =
|
|
6945
|
-
return m(t ?
|
|
7066
|
+
function za({ cents: e, sensitive: t = !0 }) {
|
|
7067
|
+
let n = Aa(e);
|
|
7068
|
+
return m(t ? Ra : p, { children: n });
|
|
6946
7069
|
}
|
|
6947
|
-
var
|
|
7070
|
+
var Ba = new Intl.NumberFormat("pt-BR", {
|
|
6948
7071
|
signDisplay: "exceptZero",
|
|
6949
7072
|
minimumFractionDigits: 1,
|
|
6950
7073
|
maximumFractionDigits: 1
|
|
6951
|
-
}),
|
|
7074
|
+
}), Va = r(function({ value: e, invert: t = !1, caption: n, className: r, ...i }, a) {
|
|
6952
7075
|
if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ h("span", {
|
|
6953
7076
|
ref: a,
|
|
6954
7077
|
...i,
|
|
@@ -6964,7 +7087,7 @@ var La = new Intl.NumberFormat("pt-BR", {
|
|
|
6964
7087
|
className: `select-delta__value select-delta__value--${l}`,
|
|
6965
7088
|
children: [
|
|
6966
7089
|
u ? `${u} ` : "",
|
|
6967
|
-
|
|
7090
|
+
Ba.format(e),
|
|
6968
7091
|
"%"
|
|
6969
7092
|
]
|
|
6970
7093
|
}), n != null && /* @__PURE__ */ m("span", {
|
|
@@ -6973,8 +7096,8 @@ var La = new Intl.NumberFormat("pt-BR", {
|
|
|
6973
7096
|
})]
|
|
6974
7097
|
});
|
|
6975
7098
|
});
|
|
6976
|
-
function
|
|
6977
|
-
let { hidden: e, toggle: t } =
|
|
7099
|
+
function Ha() {
|
|
7100
|
+
let { hidden: e, toggle: t } = La();
|
|
6978
7101
|
return /* @__PURE__ */ m(J, {
|
|
6979
7102
|
variant: "outline",
|
|
6980
7103
|
icon: m(e ? Ue : He, {}),
|
|
@@ -6985,7 +7108,7 @@ function za() {
|
|
|
6985
7108
|
}
|
|
6986
7109
|
//#endregion
|
|
6987
7110
|
//#region src/SelectOfferPrice.tsx
|
|
6988
|
-
var
|
|
7111
|
+
var Ua = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note: i, className: a, ...o }, s) {
|
|
6989
7112
|
let c = Number(e);
|
|
6990
7113
|
if (!Number.isFinite(c)) return null;
|
|
6991
7114
|
let l = Number(t), u = Number.isFinite(l) && l > c, d = u ? Math.round((l - c) / l * 100) : 0;
|
|
@@ -6996,11 +7119,11 @@ var Ba = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
6996
7119
|
children: [
|
|
6997
7120
|
/* @__PURE__ */ m("span", {
|
|
6998
7121
|
className: "select-offerprice__now",
|
|
6999
|
-
children: c === 0 && r != null ? r : /* @__PURE__ */ m(
|
|
7122
|
+
children: c === 0 && r != null ? r : /* @__PURE__ */ m(za, { cents: c })
|
|
7000
7123
|
}),
|
|
7001
7124
|
u && /* @__PURE__ */ m("s", {
|
|
7002
7125
|
className: "select-offerprice__was",
|
|
7003
|
-
children: /* @__PURE__ */ m(
|
|
7126
|
+
children: /* @__PURE__ */ m(za, { cents: l })
|
|
7004
7127
|
}),
|
|
7005
7128
|
u && !n && d > 0 && /* @__PURE__ */ h("span", {
|
|
7006
7129
|
className: "select-offerprice__off",
|
|
@@ -7019,7 +7142,7 @@ var Ba = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
7019
7142
|
});
|
|
7020
7143
|
//#endregion
|
|
7021
7144
|
//#region src/SelectRating.tsx
|
|
7022
|
-
function
|
|
7145
|
+
function Wa({ size: e }) {
|
|
7023
7146
|
return /* @__PURE__ */ m("svg", {
|
|
7024
7147
|
width: e,
|
|
7025
7148
|
height: e,
|
|
@@ -7031,7 +7154,7 @@ function Va({ size: e }) {
|
|
|
7031
7154
|
})
|
|
7032
7155
|
});
|
|
7033
7156
|
}
|
|
7034
|
-
var
|
|
7157
|
+
var Ga = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i, disabled: a = !1, className: o, ...s }, c) {
|
|
7035
7158
|
let l = !!n && !a, [u, f] = d(null), p = u ?? e;
|
|
7036
7159
|
return /* @__PURE__ */ m("div", {
|
|
7037
7160
|
ref: c,
|
|
@@ -7046,7 +7169,7 @@ var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7046
7169
|
children: Array.from({ length: t }, (e, t) => {
|
|
7047
7170
|
let i = /* @__PURE__ */ m("span", {
|
|
7048
7171
|
className: `select-rating__star${t < p ? " is-filled" : ""}`,
|
|
7049
|
-
children: /* @__PURE__ */ m(
|
|
7172
|
+
children: /* @__PURE__ */ m(Wa, { size: r })
|
|
7050
7173
|
});
|
|
7051
7174
|
return l ? /* @__PURE__ */ m("button", {
|
|
7052
7175
|
type: "button",
|
|
@@ -7060,14 +7183,14 @@ var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7060
7183
|
}, t) : /* @__PURE__ */ m("span", { children: i }, t);
|
|
7061
7184
|
})
|
|
7062
7185
|
});
|
|
7063
|
-
}),
|
|
7186
|
+
}), Ka = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
|
|
7064
7187
|
let s = Number(e), c = Number.isFinite(s) && s > 0;
|
|
7065
7188
|
return /* @__PURE__ */ h("div", {
|
|
7066
7189
|
ref: o,
|
|
7067
7190
|
...a,
|
|
7068
7191
|
className: `select-quote${i ? " " + i : ""}`,
|
|
7069
7192
|
children: [
|
|
7070
|
-
c && /* @__PURE__ */ m(
|
|
7193
|
+
c && /* @__PURE__ */ m(Ga, {
|
|
7071
7194
|
value: s,
|
|
7072
7195
|
max: t,
|
|
7073
7196
|
size: 13
|
|
@@ -7082,7 +7205,7 @@ var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7082
7205
|
})
|
|
7083
7206
|
]
|
|
7084
7207
|
});
|
|
7085
|
-
}),
|
|
7208
|
+
}), qa = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
|
|
7086
7209
|
let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
|
|
7087
7210
|
return /* @__PURE__ */ h("div", {
|
|
7088
7211
|
ref: i,
|
|
@@ -7104,7 +7227,7 @@ var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7104
7227
|
children: ["+", o]
|
|
7105
7228
|
})]
|
|
7106
7229
|
});
|
|
7107
|
-
}),
|
|
7230
|
+
}), Ja = [
|
|
7108
7231
|
"Dom",
|
|
7109
7232
|
"Seg",
|
|
7110
7233
|
"Ter",
|
|
@@ -7112,7 +7235,7 @@ var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7112
7235
|
"Qui",
|
|
7113
7236
|
"Sex",
|
|
7114
7237
|
"Sáb"
|
|
7115
|
-
],
|
|
7238
|
+
], Ya = [
|
|
7116
7239
|
"Janeiro",
|
|
7117
7240
|
"Fevereiro",
|
|
7118
7241
|
"Março",
|
|
@@ -7125,29 +7248,29 @@ var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7125
7248
|
"Outubro",
|
|
7126
7249
|
"Novembro",
|
|
7127
7250
|
"Dezembro"
|
|
7128
|
-
],
|
|
7129
|
-
function
|
|
7251
|
+
], Xa = (e) => String(e).padStart(2, "0"), Za = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Qa = (e) => new Date(e.getFullYear(), e.getMonth(), 1), $a = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), eo = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), to = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
7252
|
+
function no(e) {
|
|
7130
7253
|
let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
|
|
7131
7254
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
|
|
7132
7255
|
}
|
|
7133
|
-
function
|
|
7134
|
-
let n = `${e.getFullYear()}-${
|
|
7135
|
-
return t ? `${n}T${
|
|
7256
|
+
function ro(e, t) {
|
|
7257
|
+
let n = `${e.getFullYear()}-${Xa(e.getMonth() + 1)}-${Xa(e.getDate())}`;
|
|
7258
|
+
return t ? `${n}T${Xa(e.getHours())}:${Xa(e.getMinutes())}` : n;
|
|
7136
7259
|
}
|
|
7137
|
-
function
|
|
7138
|
-
let n = `${
|
|
7139
|
-
return t ? `${n} ${
|
|
7260
|
+
function io(e, t) {
|
|
7261
|
+
let n = `${Xa(e.getDate())}/${Xa(e.getMonth() + 1)}/${e.getFullYear()}`;
|
|
7262
|
+
return t ? `${n} ${Xa(e.getHours())}:${Xa(e.getMinutes())}` : n;
|
|
7140
7263
|
}
|
|
7141
|
-
var
|
|
7142
|
-
let b = s(), x = g ?? b, [S, C] = d(!1), w =
|
|
7143
|
-
o || (E(
|
|
7264
|
+
var ao = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeholder: i, required: a, disabled: o, error: c, hint: l, minDate: u, maxDate: f, clearable: p = !0, id: g, className: _, ...v }, y) {
|
|
7265
|
+
let b = s(), x = g ?? b, [S, C] = d(!1), w = no(t), [T, E] = d(() => Qa(w ?? /* @__PURE__ */ new Date())), D = u ? Za(u) : null, O = f ? Za(f) : null, k = (e) => !!D && Za(e) < D || !!O && Za(e) > O, A = $a(Qa(T), -Qa(T).getDay()), j = Array.from({ length: 42 }, (e, t) => $a(A, t)), M = Za(/* @__PURE__ */ new Date()), N = () => {
|
|
7266
|
+
o || (E(Qa(w ?? /* @__PURE__ */ new Date())), C((e) => !e));
|
|
7144
7267
|
}, P = (e) => {
|
|
7145
7268
|
if (k(e)) return;
|
|
7146
7269
|
let t = new Date(e);
|
|
7147
|
-
r && t.setHours((w == null ? void 0 : w.getHours()) ?? 0, (w == null ? void 0 : w.getMinutes()) ?? 0, 0, 0), n(
|
|
7270
|
+
r && t.setHours((w == null ? void 0 : w.getHours()) ?? 0, (w == null ? void 0 : w.getMinutes()) ?? 0, 0, 0), n(ro(t, r)), r || C(!1);
|
|
7148
7271
|
}, F = (e) => {
|
|
7149
7272
|
let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(w ?? M);
|
|
7150
|
-
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(
|
|
7273
|
+
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(ro(o, !0));
|
|
7151
7274
|
}, I = () => {
|
|
7152
7275
|
n(""), C(!1);
|
|
7153
7276
|
}, L = /* @__PURE__ */ h("div", {
|
|
@@ -7161,7 +7284,7 @@ var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7161
7284
|
"aria-haspopup": "dialog",
|
|
7162
7285
|
"aria-expanded": S,
|
|
7163
7286
|
"aria-invalid": c ? !0 : void 0,
|
|
7164
|
-
children: w ?
|
|
7287
|
+
children: w ? io(w, r) : /* @__PURE__ */ m("span", {
|
|
7165
7288
|
className: "select-datefield__ph",
|
|
7166
7289
|
children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
|
|
7167
7290
|
})
|
|
@@ -7198,13 +7321,13 @@ var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7198
7321
|
type: "button",
|
|
7199
7322
|
className: "select-datepicker__nav",
|
|
7200
7323
|
"aria-label": "Mês anterior",
|
|
7201
|
-
onClick: () => E((e) =>
|
|
7202
|
-
children: /* @__PURE__ */ m(
|
|
7324
|
+
onClick: () => E((e) => eo(e, -1)),
|
|
7325
|
+
children: /* @__PURE__ */ m(H, {})
|
|
7203
7326
|
}),
|
|
7204
7327
|
/* @__PURE__ */ h("span", {
|
|
7205
7328
|
className: "select-datepicker__monthlabel",
|
|
7206
7329
|
children: [
|
|
7207
|
-
|
|
7330
|
+
Ya[T.getMonth()],
|
|
7208
7331
|
" ",
|
|
7209
7332
|
T.getFullYear()
|
|
7210
7333
|
]
|
|
@@ -7213,19 +7336,19 @@ var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7213
7336
|
type: "button",
|
|
7214
7337
|
className: "select-datepicker__nav",
|
|
7215
7338
|
"aria-label": "Próximo mês",
|
|
7216
|
-
onClick: () => E((e) =>
|
|
7217
|
-
children: /* @__PURE__ */ m(
|
|
7339
|
+
onClick: () => E((e) => eo(e, 1)),
|
|
7340
|
+
children: /* @__PURE__ */ m(oe, {})
|
|
7218
7341
|
})
|
|
7219
7342
|
]
|
|
7220
7343
|
}),
|
|
7221
7344
|
/* @__PURE__ */ h("div", {
|
|
7222
7345
|
className: "select-datepicker__grid",
|
|
7223
7346
|
role: "grid",
|
|
7224
|
-
children: [
|
|
7347
|
+
children: [Ja.map((e) => /* @__PURE__ */ m("div", {
|
|
7225
7348
|
className: "select-datepicker__weekday",
|
|
7226
7349
|
children: e
|
|
7227
7350
|
}, e)), j.map((e) => {
|
|
7228
|
-
let t = e.getMonth() !== T.getMonth(), n = !!w &&
|
|
7351
|
+
let t = e.getMonth() !== T.getMonth(), n = !!w && to(e, w), r = "select-datepicker__daybtn" + (n ? " is-selected" : "") + (to(e, M) && !n ? " is-today" : "") + (t ? " is-outside" : "");
|
|
7229
7352
|
return /* @__PURE__ */ m("div", {
|
|
7230
7353
|
className: "select-datepicker__day",
|
|
7231
7354
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -7247,7 +7370,7 @@ var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7247
7370
|
type: "time",
|
|
7248
7371
|
className: "select-input select-datefield__time-input",
|
|
7249
7372
|
"aria-label": "Horário",
|
|
7250
|
-
value: w ? `${
|
|
7373
|
+
value: w ? `${Xa(w.getHours())}:${Xa(w.getMinutes())}` : "",
|
|
7251
7374
|
onChange: (e) => F(e.target.value)
|
|
7252
7375
|
})]
|
|
7253
7376
|
}),
|
|
@@ -7288,25 +7411,25 @@ var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7288
7411
|
}) : null
|
|
7289
7412
|
]
|
|
7290
7413
|
});
|
|
7291
|
-
}),
|
|
7292
|
-
function
|
|
7293
|
-
let t =
|
|
7414
|
+
}), oo = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?$/;
|
|
7415
|
+
function so(e) {
|
|
7416
|
+
let t = oo.exec(e ?? "");
|
|
7294
7417
|
if (!t) return null;
|
|
7295
7418
|
let n = `${t[3]}/${t[2]}/${t[1]}`;
|
|
7296
7419
|
return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
|
|
7297
7420
|
}
|
|
7298
7421
|
//#endregion
|
|
7299
7422
|
//#region src/SelectFilterBar.tsx
|
|
7300
|
-
function
|
|
7423
|
+
function co(e, t) {
|
|
7301
7424
|
var n;
|
|
7302
|
-
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ?
|
|
7425
|
+
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ? so(t) ?? t : t;
|
|
7303
7426
|
}
|
|
7304
|
-
function
|
|
7427
|
+
function lo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: s }) {
|
|
7305
7428
|
let [c, l] = d("");
|
|
7306
7429
|
o(() => {
|
|
7307
7430
|
r || l("");
|
|
7308
7431
|
}, [r]);
|
|
7309
|
-
let u = t.trim() !== "", f = u ?
|
|
7432
|
+
let u = t.trim() !== "", f = u ? co(e, t) : null, p = u && !!e.error, g = e.options ?? [], _ = g.length > 7, v = _ ? g.filter((e) => e.label.toLowerCase().includes(c.trim().toLowerCase())) : g;
|
|
7310
7433
|
return /* @__PURE__ */ h(on, {
|
|
7311
7434
|
active: r,
|
|
7312
7435
|
onClose: a,
|
|
@@ -7325,7 +7448,7 @@ function oo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7325
7448
|
}), /* @__PURE__ */ m("span", {
|
|
7326
7449
|
className: `select-facet__caret${r ? " is-open" : ""}`,
|
|
7327
7450
|
"aria-hidden": "true",
|
|
7328
|
-
children: /* @__PURE__ */ m(
|
|
7451
|
+
children: /* @__PURE__ */ m(U, {})
|
|
7329
7452
|
})]
|
|
7330
7453
|
}),
|
|
7331
7454
|
children: [
|
|
@@ -7333,7 +7456,7 @@ function oo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7333
7456
|
className: "select-facet__panel",
|
|
7334
7457
|
children: [_ && /* @__PURE__ */ m("div", {
|
|
7335
7458
|
className: "select-facet__search",
|
|
7336
|
-
children: /* @__PURE__ */ m(
|
|
7459
|
+
children: /* @__PURE__ */ m(Ti, {
|
|
7337
7460
|
value: c,
|
|
7338
7461
|
onChange: l,
|
|
7339
7462
|
placeholder: "Buscar opção…"
|
|
@@ -7364,7 +7487,7 @@ function oo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7364
7487
|
})]
|
|
7365
7488
|
}) : e.type === "date" ? /* @__PURE__ */ m("div", {
|
|
7366
7489
|
className: "select-facet__field",
|
|
7367
|
-
children: /* @__PURE__ */ m(
|
|
7490
|
+
children: /* @__PURE__ */ m(ao, {
|
|
7368
7491
|
value: t,
|
|
7369
7492
|
onChange: n,
|
|
7370
7493
|
placeholder: e.placeholder,
|
|
@@ -7402,7 +7525,7 @@ function oo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7402
7525
|
]
|
|
7403
7526
|
});
|
|
7404
7527
|
}
|
|
7405
|
-
var
|
|
7528
|
+
var uo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, disabled: a, className: o, ...s }, c) {
|
|
7406
7529
|
let [l, u] = d([]), [f, p] = d(null), [g, _] = d(!1), v = (e) => (t[e.key] ?? "").trim() !== "", y = (e) => !!e.pinned || v(e) || l.includes(e.key), b = e.filter(y), x = e.filter((e) => !y(e)), S = e.filter(v), C = () => {
|
|
7407
7530
|
u([]), p(null), r();
|
|
7408
7531
|
}, w = (e) => {
|
|
@@ -7421,7 +7544,7 @@ var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7421
7544
|
/* @__PURE__ */ m("span", {
|
|
7422
7545
|
className: "select-filterbar__query-icon",
|
|
7423
7546
|
"aria-hidden": "true",
|
|
7424
|
-
children: /* @__PURE__ */ m(
|
|
7547
|
+
children: /* @__PURE__ */ m(se, {})
|
|
7425
7548
|
}),
|
|
7426
7549
|
/* @__PURE__ */ m("input", {
|
|
7427
7550
|
className: "select-filterbar__query-input",
|
|
@@ -7436,11 +7559,11 @@ var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7436
7559
|
className: "select-filterbar__query-clear",
|
|
7437
7560
|
"aria-label": "Limpar busca",
|
|
7438
7561
|
onClick: () => i.onChange(""),
|
|
7439
|
-
children: /* @__PURE__ */ m(
|
|
7562
|
+
children: /* @__PURE__ */ m(q, {})
|
|
7440
7563
|
})
|
|
7441
7564
|
]
|
|
7442
7565
|
}),
|
|
7443
|
-
b.map((e) => /* @__PURE__ */ m(
|
|
7566
|
+
b.map((e) => /* @__PURE__ */ m(lo, {
|
|
7444
7567
|
filter: e,
|
|
7445
7568
|
value: t[e.key] ?? "",
|
|
7446
7569
|
onChange: (t) => n(e.key, t),
|
|
@@ -7486,13 +7609,13 @@ var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7486
7609
|
children: [
|
|
7487
7610
|
e.label,
|
|
7488
7611
|
": ",
|
|
7489
|
-
|
|
7612
|
+
co(e, t[e.key] ?? ""),
|
|
7490
7613
|
/* @__PURE__ */ m("button", {
|
|
7491
7614
|
type: "button",
|
|
7492
7615
|
className: "select-filterbar__tagx",
|
|
7493
7616
|
"aria-label": `Remover filtro ${e.label}`,
|
|
7494
7617
|
onClick: () => n(e.key, ""),
|
|
7495
|
-
children: /* @__PURE__ */ m(
|
|
7618
|
+
children: /* @__PURE__ */ m(q, {})
|
|
7496
7619
|
})
|
|
7497
7620
|
]
|
|
7498
7621
|
}, e.key)), /* @__PURE__ */ m("button", {
|
|
@@ -7503,7 +7626,7 @@ var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7503
7626
|
})]
|
|
7504
7627
|
})]
|
|
7505
7628
|
});
|
|
7506
|
-
}),
|
|
7629
|
+
}), fo = r(function({ label: e, options: t, selected: n, onChange: r, placeholder: i = "Selecionar…", hint: a, help: o, error: s, onBlur: c, size: l = "md", className: u, ...f }, p) {
|
|
7507
7630
|
let [g, _] = d(!1), [v, y] = d(""), b = t.filter((e) => e.label.toLowerCase().includes(v.trim().toLowerCase())), x = (e) => r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]), S = n.map((e) => t.find((t) => t.value === e)).filter((e) => e != null);
|
|
7508
7631
|
return /* @__PURE__ */ h("div", {
|
|
7509
7632
|
ref: p,
|
|
@@ -7551,19 +7674,19 @@ var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7551
7674
|
onClick: (t) => {
|
|
7552
7675
|
t.stopPropagation(), x(e.value);
|
|
7553
7676
|
},
|
|
7554
|
-
children: /* @__PURE__ */ m(
|
|
7677
|
+
children: /* @__PURE__ */ m(q, {})
|
|
7555
7678
|
})]
|
|
7556
7679
|
}, e.value)), /* @__PURE__ */ m("span", {
|
|
7557
7680
|
className: "select-tagselect__caret",
|
|
7558
7681
|
"aria-hidden": "true",
|
|
7559
|
-
children: /* @__PURE__ */ m(
|
|
7682
|
+
children: /* @__PURE__ */ m(U, {})
|
|
7560
7683
|
})]
|
|
7561
7684
|
}),
|
|
7562
7685
|
children: /* @__PURE__ */ h("div", {
|
|
7563
7686
|
className: "select-tagselect__menu",
|
|
7564
7687
|
children: [/* @__PURE__ */ m("div", {
|
|
7565
7688
|
className: "select-tagselect__search",
|
|
7566
|
-
children: /* @__PURE__ */ m(
|
|
7689
|
+
children: /* @__PURE__ */ m(Ti, {
|
|
7567
7690
|
value: v,
|
|
7568
7691
|
onChange: y,
|
|
7569
7692
|
placeholder: "Buscar…"
|
|
@@ -7616,7 +7739,7 @@ var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7616
7739
|
}) : null
|
|
7617
7740
|
]
|
|
7618
7741
|
});
|
|
7619
|
-
}),
|
|
7742
|
+
}), po = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
|
|
7620
7743
|
return /* @__PURE__ */ h("div", {
|
|
7621
7744
|
ref: c,
|
|
7622
7745
|
...s,
|
|
@@ -7648,8 +7771,8 @@ var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7648
7771
|
})
|
|
7649
7772
|
]
|
|
7650
7773
|
});
|
|
7651
|
-
}),
|
|
7652
|
-
function
|
|
7774
|
+
}), mo = n(null), ho = 220, go = 4e3, _o = 8, vo = .04, yo = 5;
|
|
7775
|
+
function bo({ children: e }) {
|
|
7653
7776
|
let [t, n] = d([]), r = u(0), a = u(/* @__PURE__ */ new Map()), s = i((e) => {
|
|
7654
7777
|
n((t) => t.filter((t) => t.id !== e)), a.current.delete(e);
|
|
7655
7778
|
}, []), c = i((e) => {
|
|
@@ -7657,9 +7780,9 @@ function _o({ children: e }) {
|
|
|
7657
7780
|
t && clearTimeout(t), n((t) => t.map((t) => t.id === e ? {
|
|
7658
7781
|
...t,
|
|
7659
7782
|
exiting: !0
|
|
7660
|
-
} : t)), a.current.set(e, setTimeout(() => s(e),
|
|
7783
|
+
} : t)), a.current.set(e, setTimeout(() => s(e), ho));
|
|
7661
7784
|
}, [s]), f = i((e, t) => {
|
|
7662
|
-
let i = ++r.current, o = (t == null ? void 0 : t.duration) ??
|
|
7785
|
+
let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? go;
|
|
7663
7786
|
n((n) => [...n, {
|
|
7664
7787
|
id: i,
|
|
7665
7788
|
content: e,
|
|
@@ -7687,7 +7810,7 @@ function _o({ children: e }) {
|
|
|
7687
7810
|
duration: t
|
|
7688
7811
|
})
|
|
7689
7812
|
}), [f]);
|
|
7690
|
-
return /* @__PURE__ */ h(
|
|
7813
|
+
return /* @__PURE__ */ h(mo.Provider, {
|
|
7691
7814
|
value: p,
|
|
7692
7815
|
children: [e, t.length > 0 && g(/* @__PURE__ */ m("div", {
|
|
7693
7816
|
className: "select select-toasts",
|
|
@@ -7695,8 +7818,8 @@ function _o({ children: e }) {
|
|
|
7695
7818
|
"aria-live": "polite",
|
|
7696
7819
|
"aria-label": "Notificações",
|
|
7697
7820
|
children: t.map((e, n) => {
|
|
7698
|
-
let r = t.length - 1 - n, i = e.exiting || r >=
|
|
7699
|
-
transform: `translate(-50%, ${-r *
|
|
7821
|
+
let r = t.length - 1 - n, i = e.exiting || r >= yo, a = {
|
|
7822
|
+
transform: `translate(-50%, ${-r * _o}px) scale(${1 - r * vo})`,
|
|
7700
7823
|
opacity: +!i,
|
|
7701
7824
|
zIndex: 1e3 - r,
|
|
7702
7825
|
pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
|
|
@@ -7713,21 +7836,21 @@ function _o({ children: e }) {
|
|
|
7713
7836
|
className: "select-toast__close",
|
|
7714
7837
|
"aria-label": "Fechar",
|
|
7715
7838
|
onClick: () => c(e.id),
|
|
7716
|
-
children: /* @__PURE__ */ m(
|
|
7839
|
+
children: /* @__PURE__ */ m(q, {})
|
|
7717
7840
|
})]
|
|
7718
7841
|
}, e.id);
|
|
7719
7842
|
})
|
|
7720
7843
|
}), document.body)]
|
|
7721
7844
|
});
|
|
7722
7845
|
}
|
|
7723
|
-
function
|
|
7724
|
-
let e = a(
|
|
7846
|
+
function xo() {
|
|
7847
|
+
let e = a(mo);
|
|
7725
7848
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
7726
7849
|
return e;
|
|
7727
7850
|
}
|
|
7728
7851
|
//#endregion
|
|
7729
7852
|
//#region src/SelectPreviewFrame.tsx
|
|
7730
|
-
var
|
|
7853
|
+
var So = "allow-scripts allow-same-origin allow-forms", Co = 390, wo = 1280, To = r(function({ src: e, sandbox: t = So, title: n = "Pré-visualização", height: r = 560, fill: i = !1, initialDevice: a = "desktop", showDeviceToggle: o = !0, emptyLabel: s = "Salve para gerar a pré-visualização.", onReload: l, notice: f, iframeRef: g, desktopWidth: _ = wo, className: v, ...y }, b) {
|
|
7731
7854
|
let x = qr(e), [S, C] = d(a), [w, T] = d(0), [E, D] = d(!0), O = u(null), [k, A] = d({
|
|
7732
7855
|
w: 0,
|
|
7733
7856
|
h: 0
|
|
@@ -7745,7 +7868,7 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
|
|
|
7745
7868
|
});
|
|
7746
7869
|
return t.observe(e), () => t.disconnect();
|
|
7747
7870
|
}, []);
|
|
7748
|
-
let j = S === "mobile" ?
|
|
7871
|
+
let j = S === "mobile" ? Co : _, M = k.w > 0 ? Math.min(1, k.w / j) : 1, N = x ? `${x}${x.includes("?") ? "&" : "?"}_pv=${w}` : "", P = () => {
|
|
7749
7872
|
if (D(!0), l) {
|
|
7750
7873
|
l();
|
|
7751
7874
|
return;
|
|
@@ -7797,7 +7920,7 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
|
|
|
7797
7920
|
rel: "noreferrer",
|
|
7798
7921
|
"aria-label": "Abrir em nova aba",
|
|
7799
7922
|
title: "Abrir em nova aba",
|
|
7800
|
-
children: /* @__PURE__ */ m(
|
|
7923
|
+
children: /* @__PURE__ */ m(K, {})
|
|
7801
7924
|
})
|
|
7802
7925
|
]
|
|
7803
7926
|
})
|
|
@@ -7834,7 +7957,7 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
|
|
|
7834
7957
|
})
|
|
7835
7958
|
})]
|
|
7836
7959
|
});
|
|
7837
|
-
}),
|
|
7960
|
+
}), Eo = r(function({ availableCents: e, availableLabel: t = "Saldo disponível", delta: n, buckets: r = [], action: i, className: a, ...o }, s) {
|
|
7838
7961
|
return /* @__PURE__ */ h("div", {
|
|
7839
7962
|
ref: s,
|
|
7840
7963
|
...o,
|
|
@@ -7859,8 +7982,8 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
|
|
|
7859
7982
|
className: "select-balance__heromain",
|
|
7860
7983
|
children: [/* @__PURE__ */ m("span", {
|
|
7861
7984
|
className: "select-balance__heroamount",
|
|
7862
|
-
children: /* @__PURE__ */ m(
|
|
7863
|
-
}), n != null && /* @__PURE__ */ m(
|
|
7985
|
+
children: /* @__PURE__ */ m(za, { cents: e })
|
|
7986
|
+
}), n != null && /* @__PURE__ */ m(Va, {
|
|
7864
7987
|
value: n,
|
|
7865
7988
|
caption: "vs. período anterior"
|
|
7866
7989
|
})]
|
|
@@ -7879,14 +8002,14 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
|
|
|
7879
8002
|
children: e.label
|
|
7880
8003
|
}), /* @__PURE__ */ m("span", {
|
|
7881
8004
|
className: "select-balance__bucketamount",
|
|
7882
|
-
children: /* @__PURE__ */ m(
|
|
8005
|
+
children: /* @__PURE__ */ m(za, { cents: e.cents })
|
|
7883
8006
|
})]
|
|
7884
8007
|
})]
|
|
7885
8008
|
}, e.label))
|
|
7886
8009
|
})]
|
|
7887
8010
|
})]
|
|
7888
8011
|
});
|
|
7889
|
-
}),
|
|
8012
|
+
}), Do = r(function({ grossCents: e, fees: t, netCents: n, grossLabel: r = "Valor bruto", netLabel: i = "Valor líquido", className: a, ...o }, s) {
|
|
7890
8013
|
let c = n ?? e - t.reduce((e, t) => e + t.cents, 0);
|
|
7891
8014
|
return /* @__PURE__ */ h("div", {
|
|
7892
8015
|
ref: s,
|
|
@@ -7895,13 +8018,13 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
|
|
|
7895
8018
|
children: [
|
|
7896
8019
|
/* @__PURE__ */ h("div", {
|
|
7897
8020
|
className: "select-fees__row",
|
|
7898
|
-
children: [/* @__PURE__ */ m("span", { children: r }), /* @__PURE__ */ m("span", { children: /* @__PURE__ */ m(
|
|
8021
|
+
children: [/* @__PURE__ */ m("span", { children: r }), /* @__PURE__ */ m("span", { children: /* @__PURE__ */ m(za, { cents: e }) })]
|
|
7899
8022
|
}),
|
|
7900
8023
|
t.map((e) => /* @__PURE__ */ h("div", {
|
|
7901
8024
|
className: "select-fees__row",
|
|
7902
8025
|
children: [/* @__PURE__ */ m("span", { children: e.label }), /* @__PURE__ */ h("span", {
|
|
7903
8026
|
className: "select-fees__neg",
|
|
7904
|
-
children: ["−\xA0", /* @__PURE__ */ m(
|
|
8027
|
+
children: ["−\xA0", /* @__PURE__ */ m(za, { cents: e.cents })]
|
|
7905
8028
|
})]
|
|
7906
8029
|
}, e.label)),
|
|
7907
8030
|
/* @__PURE__ */ m("div", { className: "select-fees__divider" }),
|
|
@@ -7909,12 +8032,12 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
|
|
|
7909
8032
|
className: "select-fees__row select-fees__row--net",
|
|
7910
8033
|
children: [/* @__PURE__ */ m("span", { children: i }), /* @__PURE__ */ m("span", {
|
|
7911
8034
|
className: "select-fees__netvalue",
|
|
7912
|
-
children: /* @__PURE__ */ m(
|
|
8035
|
+
children: /* @__PURE__ */ m(za, { cents: c })
|
|
7913
8036
|
})]
|
|
7914
8037
|
})
|
|
7915
8038
|
]
|
|
7916
8039
|
});
|
|
7917
|
-
}),
|
|
8040
|
+
}), Oo = r(function({ label: e, value: t, caption: n, chart: r, help: i, tone: a, bare: o = !1, onClick: s, selected: c = !1, className: l, ...u }, d) {
|
|
7918
8041
|
let f = s != null, p = f ? {
|
|
7919
8042
|
role: "button",
|
|
7920
8043
|
tabIndex: 0,
|
|
@@ -7954,7 +8077,7 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
|
|
|
7954
8077
|
})
|
|
7955
8078
|
]
|
|
7956
8079
|
});
|
|
7957
|
-
}),
|
|
8080
|
+
}), ko = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1, hideValues: a = !1, height: o = 260, flush: s = !1, insight: c, insightTone: l = "neutral", children: u, className: d, ...f }, p) {
|
|
7958
8081
|
let g = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
7959
8082
|
return /* @__PURE__ */ h("div", {
|
|
7960
8083
|
ref: p,
|
|
@@ -7997,7 +8120,7 @@ var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So
|
|
|
7997
8120
|
});
|
|
7998
8121
|
//#endregion
|
|
7999
8122
|
//#region src/chartUtils.ts
|
|
8000
|
-
function
|
|
8123
|
+
function Ao() {
|
|
8001
8124
|
let [e, t] = d(1);
|
|
8002
8125
|
return c(() => {
|
|
8003
8126
|
let e = () => {
|
|
@@ -8008,7 +8131,7 @@ function Do() {
|
|
|
8008
8131
|
}, []), e;
|
|
8009
8132
|
}
|
|
8010
8133
|
function Y(e) {
|
|
8011
|
-
let t = u(null), [n, r] = d(0), i =
|
|
8134
|
+
let t = u(null), [n, r] = d(0), i = Ao();
|
|
8012
8135
|
return c(() => {
|
|
8013
8136
|
let e = t.current;
|
|
8014
8137
|
if (!e) return;
|
|
@@ -8025,7 +8148,7 @@ function Y(e) {
|
|
|
8025
8148
|
height: Math.round(e * i)
|
|
8026
8149
|
};
|
|
8027
8150
|
}
|
|
8028
|
-
function
|
|
8151
|
+
function jo(e, t) {
|
|
8029
8152
|
let [n, r] = d(t);
|
|
8030
8153
|
return c(() => {
|
|
8031
8154
|
let t = e.current;
|
|
@@ -8039,15 +8162,15 @@ function Oo(e, t) {
|
|
|
8039
8162
|
return i.observe(t), () => i.disconnect();
|
|
8040
8163
|
}, [e]), n;
|
|
8041
8164
|
}
|
|
8042
|
-
function
|
|
8165
|
+
function Mo(e) {
|
|
8043
8166
|
if (e <= 0) return 1;
|
|
8044
8167
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
8045
8168
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
8046
8169
|
}
|
|
8047
|
-
function
|
|
8170
|
+
function No(e, t = 4) {
|
|
8048
8171
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
8049
8172
|
}
|
|
8050
|
-
function
|
|
8173
|
+
function Po(e, t = 5) {
|
|
8051
8174
|
if (!(e > 0)) return {
|
|
8052
8175
|
max: 1,
|
|
8053
8176
|
values: [0, 1]
|
|
@@ -8059,10 +8182,10 @@ function jo(e, t = 5) {
|
|
|
8059
8182
|
values: s
|
|
8060
8183
|
};
|
|
8061
8184
|
}
|
|
8062
|
-
function
|
|
8185
|
+
function Fo(e) {
|
|
8063
8186
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
8064
8187
|
}
|
|
8065
|
-
function
|
|
8188
|
+
function Io(e) {
|
|
8066
8189
|
let t = e.length;
|
|
8067
8190
|
if (t === 0) return "";
|
|
8068
8191
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -8086,23 +8209,23 @@ function No(e) {
|
|
|
8086
8209
|
}
|
|
8087
8210
|
return s;
|
|
8088
8211
|
}
|
|
8089
|
-
function
|
|
8212
|
+
function Lo(e, t) {
|
|
8090
8213
|
if (e.length === 0) return "";
|
|
8091
8214
|
let n = e[0], r = e[e.length - 1];
|
|
8092
|
-
return `${
|
|
8215
|
+
return `${Io(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
8093
8216
|
}
|
|
8094
|
-
function
|
|
8095
|
-
return e.length === 0 || t.length === 0 ? "" : `${
|
|
8217
|
+
function Ro(e, t) {
|
|
8218
|
+
return e.length === 0 || t.length === 0 ? "" : `${Io(e)} ${Io([...t].reverse()).replace(/^M/, "L")} Z`;
|
|
8096
8219
|
}
|
|
8097
|
-
function
|
|
8220
|
+
function zo(e, t, n, r) {
|
|
8098
8221
|
let i = (r - 90) * Math.PI / 180;
|
|
8099
8222
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
8100
8223
|
}
|
|
8101
|
-
function
|
|
8102
|
-
let [o, s] =
|
|
8224
|
+
function Bo(e, t, n, r, i, a) {
|
|
8225
|
+
let [o, s] = zo(e, t, n, i), [c, l] = zo(e, t, n, a), [u, d] = zo(e, t, r, a), [f, p] = zo(e, t, r, i), m = +(a - i > 180);
|
|
8103
8226
|
return `M${o.toFixed(2)},${s.toFixed(2)} A${n},${n} 0 ${m} 1 ${c.toFixed(2)},${l.toFixed(2)} L${u.toFixed(2)},${d.toFixed(2)} A${r},${r} 0 ${m} 0 ${f.toFixed(2)},${p.toFixed(2)} Z`;
|
|
8104
8227
|
}
|
|
8105
|
-
var
|
|
8228
|
+
var Vo = [
|
|
8106
8229
|
"var(--select-chart-1)",
|
|
8107
8230
|
"var(--select-chart-2)",
|
|
8108
8231
|
"var(--select-chart-3)",
|
|
@@ -8110,13 +8233,13 @@ var Ro = [
|
|
|
8110
8233
|
"var(--select-chart-5)"
|
|
8111
8234
|
];
|
|
8112
8235
|
function X(e) {
|
|
8113
|
-
return
|
|
8236
|
+
return Vo[e % Vo.length];
|
|
8114
8237
|
}
|
|
8115
8238
|
function Z(e) {
|
|
8116
8239
|
let t = Math.abs(e);
|
|
8117
8240
|
return t >= 1e9 ? (e / 1e9).toFixed(1).replace(/\.0$/, "") + "B" : t >= 1e6 ? (e / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : t >= 1e3 ? (e / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : String(Math.round(e));
|
|
8118
8241
|
}
|
|
8119
|
-
var
|
|
8242
|
+
var Ho = {
|
|
8120
8243
|
top: 16,
|
|
8121
8244
|
right: 22,
|
|
8122
8245
|
bottom: 32,
|
|
@@ -8124,7 +8247,7 @@ var zo = {
|
|
|
8124
8247
|
};
|
|
8125
8248
|
//#endregion
|
|
8126
8249
|
//#region src/SelectSparkline.tsx
|
|
8127
|
-
function
|
|
8250
|
+
function Uo({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
8128
8251
|
let { ref: a, width: o } = Y(n), c = t ?? X(0), l = s(), u = null;
|
|
8129
8252
|
if (o > 0 && e.length > 1) {
|
|
8130
8253
|
let t = Math.max(...e), r = Math.min(...e), i = t - r || 1, a = e.map((t, a) => [4 + a / (e.length - 1) * (o - 8), n - 4 - (t - r) / i * (n - 8)]), s = a[a.length - 1];
|
|
@@ -8151,11 +8274,11 @@ function Bo({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
8151
8274
|
})]
|
|
8152
8275
|
}) }),
|
|
8153
8276
|
/* @__PURE__ */ m("path", {
|
|
8154
|
-
d:
|
|
8277
|
+
d: Lo(a, n - 4),
|
|
8155
8278
|
fill: `url(#${l}-sa)`
|
|
8156
8279
|
}),
|
|
8157
8280
|
/* @__PURE__ */ m("path", {
|
|
8158
|
-
d:
|
|
8281
|
+
d: Io(a),
|
|
8159
8282
|
fill: "none",
|
|
8160
8283
|
stroke: c,
|
|
8161
8284
|
strokeWidth: 2,
|
|
@@ -8236,8 +8359,8 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
8236
8359
|
}
|
|
8237
8360
|
//#endregion
|
|
8238
8361
|
//#region src/SelectBarChart.tsx
|
|
8239
|
-
function
|
|
8240
|
-
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f =
|
|
8362
|
+
function Wo({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
8363
|
+
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f = Mo(Math.max(0, ...e.map((e) => e.value))), p = Ho, g = Math.max(0, c - p.left - p.right), _ = t - p.top - p.bottom, v = e.length > 0 ? g / e.length : 0, y = Math.min(v * .62, 44), b = p.top + _, x = (e) => b - e / f * _;
|
|
8241
8364
|
return /* @__PURE__ */ h("div", {
|
|
8242
8365
|
...a,
|
|
8243
8366
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -8263,7 +8386,7 @@ function Vo({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
8263
8386
|
stopOpacity: .62
|
|
8264
8387
|
})]
|
|
8265
8388
|
}) }),
|
|
8266
|
-
|
|
8389
|
+
No(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8267
8390
|
x1: p.left,
|
|
8268
8391
|
x2: c - p.right,
|
|
8269
8392
|
y1: x(e),
|
|
@@ -8313,8 +8436,8 @@ function Vo({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
8313
8436
|
}
|
|
8314
8437
|
//#endregion
|
|
8315
8438
|
//#region src/SelectLineChart.tsx
|
|
8316
|
-
function
|
|
8317
|
-
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } =
|
|
8439
|
+
function Go({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1, className: a, ...o }) {
|
|
8440
|
+
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } = Po(Math.max(0, ...e.flatMap((e) => e.data))), y = Ho, b = Math.max(0, l - y.left - y.right), x = n - y.top - y.bottom, S = t.length, C = (e) => y.left + (S <= 1 ? b / 2 : e / (S - 1) * b), w = (e) => y.top + x - e / _ * x, T = S > 1 ? b / (S - 1) : b, E = Math.max(1, Math.ceil(S / 7)), D = y.top + x;
|
|
8318
8441
|
return /* @__PURE__ */ h("div", {
|
|
8319
8442
|
...o,
|
|
8320
8443
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -8367,11 +8490,11 @@ function Ho({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
8367
8490
|
e.map((e, t) => {
|
|
8368
8491
|
let n = e.color ?? X(t), r = e.data.map((e, t) => [C(t), w(e)]);
|
|
8369
8492
|
return /* @__PURE__ */ h("g", { children: [i && /* @__PURE__ */ m("path", {
|
|
8370
|
-
d:
|
|
8493
|
+
d: Lo(r, D),
|
|
8371
8494
|
fill: `url(#${f}-a${t})`,
|
|
8372
8495
|
className: "select-chart__area"
|
|
8373
8496
|
}), /* @__PURE__ */ m("path", {
|
|
8374
|
-
d:
|
|
8497
|
+
d: Io(r),
|
|
8375
8498
|
fill: "none",
|
|
8376
8499
|
stroke: n,
|
|
8377
8500
|
strokeWidth: 2.25,
|
|
@@ -8426,8 +8549,8 @@ function Ho({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
8426
8549
|
}
|
|
8427
8550
|
//#endregion
|
|
8428
8551
|
//#region src/SelectStackedArea.tsx
|
|
8429
|
-
function
|
|
8430
|
-
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = Array(g).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y =
|
|
8552
|
+
function Ko({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
8553
|
+
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = Array(g).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y = Mo(Math.max(0, ..._)), b = Ho, x = Math.max(0, c - b.left - b.right), S = n - b.top - b.bottom, C = (e) => b.left + (g <= 1 ? x / 2 : e / (g - 1) * x), w = (e) => b.top + S - e / y * S, T = g > 1 ? x / (g - 1) : x, E = Math.max(1, Math.ceil(g / 7)), D = b.top + S, O = v[v.length - 1];
|
|
8431
8554
|
return /* @__PURE__ */ h("div", {
|
|
8432
8555
|
...a,
|
|
8433
8556
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -8456,7 +8579,7 @@ function Uo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8456
8579
|
})]
|
|
8457
8580
|
}, t);
|
|
8458
8581
|
}) }),
|
|
8459
|
-
|
|
8582
|
+
No(y).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8460
8583
|
x1: b.left,
|
|
8461
8584
|
x2: c - b.right,
|
|
8462
8585
|
y1: w(e),
|
|
@@ -8475,10 +8598,10 @@ function Uo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8475
8598
|
return /* @__PURE__ */ h("g", {
|
|
8476
8599
|
className: "select-chart__area",
|
|
8477
8600
|
children: [/* @__PURE__ */ m("path", {
|
|
8478
|
-
d:
|
|
8601
|
+
d: Ro(i, a),
|
|
8479
8602
|
fill: `url(#${u}-b${n})`
|
|
8480
8603
|
}), /* @__PURE__ */ m("path", {
|
|
8481
|
-
d:
|
|
8604
|
+
d: Io(i),
|
|
8482
8605
|
fill: "none",
|
|
8483
8606
|
stroke: r,
|
|
8484
8607
|
strokeWidth: 1.5,
|
|
@@ -8532,11 +8655,11 @@ function Uo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8532
8655
|
}
|
|
8533
8656
|
//#endregion
|
|
8534
8657
|
//#region src/SelectComboChart.tsx
|
|
8535
|
-
function
|
|
8658
|
+
function qo({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
|
|
8536
8659
|
let { ref: l, width: u } = Y(r), f = Q(), p = s(), [g, _] = d(null), v = {
|
|
8537
|
-
...
|
|
8660
|
+
...Ho,
|
|
8538
8661
|
right: 58
|
|
8539
|
-
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S =
|
|
8662
|
+
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = Mo(Math.max(0, ...t.data)), C = Mo(Math.max(0, ...n.data)), w = x > 0 ? y / x : 0, T = Math.min(w * .5, 36), E = Math.max(1, Math.ceil(x / 8)), D = t.color ?? X(0), O = n.color ?? X(1), k = v.top + b, A = (e) => k - e / S * b, j = (e) => k - e / C * b, M = (e) => v.left + w * e + w / 2, N = n.data.map((e, t) => [M(t), j(e)]);
|
|
8540
8663
|
return /* @__PURE__ */ h("div", {
|
|
8541
8664
|
...c,
|
|
8542
8665
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -8562,7 +8685,7 @@ function Wo({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8562
8685
|
stopOpacity: .55
|
|
8563
8686
|
})]
|
|
8564
8687
|
}) }),
|
|
8565
|
-
|
|
8688
|
+
No(S).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8566
8689
|
x1: v.left,
|
|
8567
8690
|
x2: u - v.right,
|
|
8568
8691
|
y1: A(e),
|
|
@@ -8576,7 +8699,7 @@ function Wo({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8576
8699
|
textAnchor: "end",
|
|
8577
8700
|
children: i(e)
|
|
8578
8701
|
})] }, t)),
|
|
8579
|
-
|
|
8702
|
+
No(C).map((e, t) => /* @__PURE__ */ m("text", {
|
|
8580
8703
|
x: u - 4,
|
|
8581
8704
|
y: j(e),
|
|
8582
8705
|
className: "select-chart__ylabel",
|
|
@@ -8605,7 +8728,7 @@ function Wo({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8605
8728
|
className: "select-chart__crosshair"
|
|
8606
8729
|
}),
|
|
8607
8730
|
/* @__PURE__ */ m("path", {
|
|
8608
|
-
d:
|
|
8731
|
+
d: Io(N),
|
|
8609
8732
|
fill: "none",
|
|
8610
8733
|
stroke: O,
|
|
8611
8734
|
strokeWidth: 2.5,
|
|
@@ -8663,8 +8786,8 @@ function Wo({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8663
8786
|
}
|
|
8664
8787
|
//#endregion
|
|
8665
8788
|
//#region src/SelectDonut.tsx
|
|
8666
|
-
var
|
|
8667
|
-
let p = Q(), g = s(), _ = u(null), v =
|
|
8789
|
+
var Jo = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r = Z, centerLabel: i, legend: a = !0, gap: o = 2, pie: c = !1, className: l, ...d }, f) {
|
|
8790
|
+
let p = Q(), g = s(), _ = u(null), v = jo(_, t), y = e.reduce((e, t) => e + t.value, 0) || 1, b = v / 2, x = v / 2, S = v / 2 - 2, C = c ? 0 : S - n, w = 0;
|
|
8668
8791
|
return /* @__PURE__ */ h("div", {
|
|
8669
8792
|
ref: f,
|
|
8670
8793
|
...d,
|
|
@@ -8707,7 +8830,7 @@ var Go = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
8707
8830
|
w += e.value;
|
|
8708
8831
|
let i = w / y * 360, a = e.color ?? X(t), s = i - n > o * 1.5 ? o / 2 : 0, c = n + s, l = Math.max(c + .01, i - s);
|
|
8709
8832
|
return /* @__PURE__ */ m("path", {
|
|
8710
|
-
d:
|
|
8833
|
+
d: Bo(b, x, S, C, c, l),
|
|
8711
8834
|
fill: `url(#${g}-s${t})`,
|
|
8712
8835
|
className: "select-chart__seg",
|
|
8713
8836
|
onMouseEnter: () => {
|
|
@@ -8758,8 +8881,8 @@ var Go = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
8758
8881
|
});
|
|
8759
8882
|
//#endregion
|
|
8760
8883
|
//#region src/SelectColumnChart.tsx
|
|
8761
|
-
function
|
|
8762
|
-
let { ref: c, width: l } = Y(n), u = Q(), d = s(), f = t.length, p = e.length || 1, g = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), _ =
|
|
8884
|
+
function Yo({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, className: a, ...o }) {
|
|
8885
|
+
let { ref: c, width: l } = Y(n), u = Q(), d = s(), f = t.length, p = e.length || 1, g = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), _ = Mo(i ? Math.max(0, ...g) : Math.max(0, ...e.flatMap((e) => e.data))), v = Ho, y = Math.max(0, l - v.left - v.right), b = n - v.top - v.bottom, x = v.top + b, S = f ? y / f : 0, C = (e) => x - e / _ * b, w = Math.min(S * .72, p * 40), T = i ? Math.min(S * .5, 44) : w / p;
|
|
8763
8886
|
return /* @__PURE__ */ h("div", {
|
|
8764
8887
|
...o,
|
|
8765
8888
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -8788,7 +8911,7 @@ function Ko({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
8788
8911
|
})]
|
|
8789
8912
|
}, t);
|
|
8790
8913
|
}) }),
|
|
8791
|
-
|
|
8914
|
+
No(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8792
8915
|
x1: v.left,
|
|
8793
8916
|
x2: l - v.right,
|
|
8794
8917
|
y1: C(e),
|
|
@@ -8870,7 +8993,7 @@ function Ko({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
8870
8993
|
}
|
|
8871
8994
|
//#endregion
|
|
8872
8995
|
//#region src/SelectFunnel.tsx
|
|
8873
|
-
var
|
|
8996
|
+
var Xo = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
|
|
8874
8997
|
let a = Math.max(1, ...e.map((e) => e.value));
|
|
8875
8998
|
return /* @__PURE__ */ m("div", {
|
|
8876
8999
|
ref: i,
|
|
@@ -8912,19 +9035,19 @@ var qo = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
|
|
|
8912
9035
|
});
|
|
8913
9036
|
//#endregion
|
|
8914
9037
|
//#region src/SelectGauge.tsx
|
|
8915
|
-
function
|
|
9038
|
+
function Zo(e) {
|
|
8916
9039
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
8917
9040
|
}
|
|
8918
|
-
function
|
|
9041
|
+
function Qo(e, t, n, r) {
|
|
8919
9042
|
let i = Math.PI + r * Math.PI;
|
|
8920
9043
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
8921
9044
|
}
|
|
8922
|
-
function
|
|
8923
|
-
let [a, o] =
|
|
9045
|
+
function $o(e, t, n, r, i) {
|
|
9046
|
+
let [a, o] = Qo(e, t, n, r), [s, c] = Qo(e, t, n, i);
|
|
8924
9047
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
8925
9048
|
}
|
|
8926
|
-
var
|
|
8927
|
-
let u =
|
|
9049
|
+
var es = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, ts = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = es, className: s, ...c }, l) {
|
|
9050
|
+
let u = Zo(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, g = r / 2, _ = r / 2, v = _ + f, y = $t({
|
|
8928
9051
|
value: u,
|
|
8929
9052
|
format: o
|
|
8930
9053
|
});
|
|
@@ -8947,13 +9070,13 @@ var Zo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
8947
9070
|
"aria-hidden": "true",
|
|
8948
9071
|
children: [/* @__PURE__ */ m("path", {
|
|
8949
9072
|
className: "select-gauge__track",
|
|
8950
|
-
d:
|
|
9073
|
+
d: $o(g, _, p, 0, 1),
|
|
8951
9074
|
fill: "none",
|
|
8952
9075
|
strokeWidth: d,
|
|
8953
9076
|
strokeLinecap: "round"
|
|
8954
9077
|
}), u > 0 && /* @__PURE__ */ m("path", {
|
|
8955
9078
|
className: "select-gauge__arc",
|
|
8956
|
-
d:
|
|
9079
|
+
d: $o(g, _, p, 0, u / 100),
|
|
8957
9080
|
fill: "none",
|
|
8958
9081
|
stroke: a ?? "var(--select-chart-1)",
|
|
8959
9082
|
strokeWidth: d,
|
|
@@ -8976,7 +9099,7 @@ var Zo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
8976
9099
|
children: n
|
|
8977
9100
|
})]
|
|
8978
9101
|
});
|
|
8979
|
-
}),
|
|
9102
|
+
}), ns = r(function({ columns: e, rows: n, format: r = Z, formatValue: i, color: a = "var(--select-chart-1)", showValues: o = !0, min: s, max: c, cellSize: l = 40, maxCellSize: u = 96, cellHeight: d = 30, className: f, ...p }, g) {
|
|
8980
9103
|
let _ = Q(), v = n.flatMap((e) => e.values).filter((e) => e != null && Number.isFinite(e)), y = s ?? (v.length ? Math.min(...v) : 0), b = (c ?? (v.length ? Math.max(...v) : 1)) - y || 1, x = { "--heat-color": a }, S = {
|
|
8981
9104
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
8982
9105
|
width: "fit-content",
|
|
@@ -9041,7 +9164,7 @@ var Zo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
9041
9164
|
});
|
|
9042
9165
|
//#endregion
|
|
9043
9166
|
//#region src/SelectProgressList.tsx
|
|
9044
|
-
function
|
|
9167
|
+
function rs({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período." }) {
|
|
9045
9168
|
if (e.length === 0) return /* @__PURE__ */ m("div", {
|
|
9046
9169
|
className: "select-progresslist__empty",
|
|
9047
9170
|
children: r
|
|
@@ -9092,7 +9215,7 @@ function es({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
9092
9215
|
}
|
|
9093
9216
|
//#endregion
|
|
9094
9217
|
//#region src/SelectRadialBar.tsx
|
|
9095
|
-
var
|
|
9218
|
+
var is = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, as = r(function({ series: e, size: t = 200, thickness: n = 14, gap: r = 8, format: i = (e) => `${Math.round(e)}%`, centerLabel: a, legend: o = !0, className: c, ...l }, u) {
|
|
9096
9219
|
let d = s(), f = t / 2, p = t / 2;
|
|
9097
9220
|
return /* @__PURE__ */ h("div", {
|
|
9098
9221
|
ref: u,
|
|
@@ -9132,7 +9255,7 @@ var ts = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, ns = r(f
|
|
|
9132
9255
|
}) }), e.map((e, i) => {
|
|
9133
9256
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
9134
9257
|
if (a <= n / 2) return null;
|
|
9135
|
-
let o =
|
|
9258
|
+
let o = is(e.value);
|
|
9136
9259
|
return /* @__PURE__ */ h("g", {
|
|
9137
9260
|
transform: `rotate(-90 ${f} ${p})`,
|
|
9138
9261
|
children: [/* @__PURE__ */ m("circle", {
|
|
@@ -9161,7 +9284,7 @@ var ts = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, ns = r(f
|
|
|
9161
9284
|
className: "select-radial__center",
|
|
9162
9285
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ m("strong", {
|
|
9163
9286
|
className: "select-radial__value",
|
|
9164
|
-
children: i(
|
|
9287
|
+
children: i(is(e[0].value))
|
|
9165
9288
|
}) : null)
|
|
9166
9289
|
})]
|
|
9167
9290
|
}), o && /* @__PURE__ */ m("ul", {
|
|
@@ -9179,15 +9302,15 @@ var ts = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, ns = r(f
|
|
|
9179
9302
|
}),
|
|
9180
9303
|
/* @__PURE__ */ m("span", {
|
|
9181
9304
|
className: "select-donut__legval",
|
|
9182
|
-
children: i(
|
|
9305
|
+
children: i(is(e.value))
|
|
9183
9306
|
})
|
|
9184
9307
|
]
|
|
9185
9308
|
}, t))
|
|
9186
9309
|
})]
|
|
9187
9310
|
});
|
|
9188
|
-
}),
|
|
9189
|
-
function
|
|
9190
|
-
let u = t ?? e.length * 36 + 6 + 26, { ref: d, width: f } = Y(u), p = Q(), g = s(), _ =
|
|
9311
|
+
}), os = 6.1, ss = 12, cs = 56, ls = .4;
|
|
9312
|
+
function us({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, className: c, ...l }) {
|
|
9313
|
+
let u = t ?? e.length * 36 + 6 + 26, { ref: d, width: f } = Y(u), p = Q(), g = s(), _ = Mo(Math.max(0, ...e.map((e) => e.value))), v = e.reduce((e, t) => Math.max(e, t.label.length), 0), y = Math.min(Math.max(cs, v * os + ss), Math.max(cs, f * ls)), b = o ?? y, x = Math.max(3, Math.floor((b - ss) / os)), S = (e) => e.length <= x ? e : `${e.slice(0, x - 1).trimEnd()}…`, C = Math.max(0, f - b - 28), w = u - 6 - 26, T = e.length ? w / e.length : 0, E = Math.min(T * .62, 22), D = (e) => b + e / _ * C, O = (e, t) => e.color ?? (a ? X(t) : n ?? X(0));
|
|
9191
9314
|
return /* @__PURE__ */ h("div", {
|
|
9192
9315
|
...l,
|
|
9193
9316
|
className: `select-chart-wrap${c ? " " + c : ""}`,
|
|
@@ -9216,7 +9339,7 @@ function ss({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9216
9339
|
})]
|
|
9217
9340
|
}, t);
|
|
9218
9341
|
}) }),
|
|
9219
|
-
|
|
9342
|
+
No(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9220
9343
|
x1: D(e),
|
|
9221
9344
|
x2: D(e),
|
|
9222
9345
|
y1: 6,
|
|
@@ -9262,7 +9385,7 @@ function ss({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9262
9385
|
onMouseLeave: p.hide
|
|
9263
9386
|
}),
|
|
9264
9387
|
/* @__PURE__ */ h("text", {
|
|
9265
|
-
x: b -
|
|
9388
|
+
x: b - ss / 2,
|
|
9266
9389
|
y: n,
|
|
9267
9390
|
className: "select-chart__ylabel",
|
|
9268
9391
|
dominantBaseline: "middle",
|
|
@@ -9277,7 +9400,7 @@ function ss({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9277
9400
|
}
|
|
9278
9401
|
//#endregion
|
|
9279
9402
|
//#region src/SelectWaterfall.tsx
|
|
9280
|
-
function
|
|
9403
|
+
function ds({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
9281
9404
|
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
9282
9405
|
if (e.total) return u = e.value, {
|
|
9283
9406
|
...e,
|
|
@@ -9290,7 +9413,7 @@ function cs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9290
9413
|
start: t,
|
|
9291
9414
|
end: u
|
|
9292
9415
|
};
|
|
9293
|
-
}), f =
|
|
9416
|
+
}), f = Mo(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = Ho, g = Math.max(0, o - p.left - p.right), _ = t - p.top - p.bottom, v = p.top + _, y = e.length, b = y ? g / y : 0, x = Math.min(b * .6, 46), S = (e) => v - e / f * _, C = {
|
|
9294
9417
|
total: "var(--select-chart-1)",
|
|
9295
9418
|
inc: "var(--select-chart-4)",
|
|
9296
9419
|
dec: "var(--select-chart-3)"
|
|
@@ -9324,7 +9447,7 @@ function cs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9324
9447
|
stopOpacity: .62
|
|
9325
9448
|
})]
|
|
9326
9449
|
}, e)) }),
|
|
9327
|
-
|
|
9450
|
+
No(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9328
9451
|
x1: p.left,
|
|
9329
9452
|
x2: o - p.right,
|
|
9330
9453
|
y1: S(e),
|
|
@@ -9392,7 +9515,7 @@ function cs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9392
9515
|
}
|
|
9393
9516
|
//#endregion
|
|
9394
9517
|
//#region src/SelectBullet.tsx
|
|
9395
|
-
var
|
|
9518
|
+
var fs = (e) => Math.max(0, Math.min(100, e)), ps = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
9396
9519
|
return /* @__PURE__ */ m("div", {
|
|
9397
9520
|
ref: i,
|
|
9398
9521
|
...r,
|
|
@@ -9430,12 +9553,12 @@ var ls = (e) => Math.max(0, Math.min(100, e)), us = r(function({ items: e, forma
|
|
|
9430
9553
|
children: [/* @__PURE__ */ m("span", {
|
|
9431
9554
|
className: "select-bullet__fill",
|
|
9432
9555
|
style: {
|
|
9433
|
-
width: `${
|
|
9556
|
+
width: `${fs(e.value / i * 100)}%`,
|
|
9434
9557
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
9435
9558
|
}
|
|
9436
9559
|
}), /* @__PURE__ */ m("span", {
|
|
9437
9560
|
className: "select-bullet__tick",
|
|
9438
|
-
style: { left: `${
|
|
9561
|
+
style: { left: `${fs(e.target / i * 100)}%` }
|
|
9439
9562
|
})]
|
|
9440
9563
|
})]
|
|
9441
9564
|
}, `${e.label}-${n}`);
|
|
@@ -9444,7 +9567,7 @@ var ls = (e) => Math.max(0, Math.min(100, e)), us = r(function({ items: e, forma
|
|
|
9444
9567
|
});
|
|
9445
9568
|
//#endregion
|
|
9446
9569
|
//#region src/SelectTreemap.tsx
|
|
9447
|
-
function
|
|
9570
|
+
function ms(e, t, n) {
|
|
9448
9571
|
let r = [], i = (e, t) => {
|
|
9449
9572
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
9450
9573
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -9495,8 +9618,8 @@ function ds(e, t, n) {
|
|
|
9495
9618
|
};
|
|
9496
9619
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
9497
9620
|
}
|
|
9498
|
-
function
|
|
9499
|
-
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ?
|
|
9621
|
+
function hs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
9622
|
+
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? ms(u.map((t) => e[t].value), o, t) : [];
|
|
9500
9623
|
return /* @__PURE__ */ h("div", {
|
|
9501
9624
|
...i,
|
|
9502
9625
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -9566,8 +9689,8 @@ function fs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9566
9689
|
}
|
|
9567
9690
|
//#endregion
|
|
9568
9691
|
//#region src/SelectScatter.tsx
|
|
9569
|
-
function
|
|
9570
|
-
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p =
|
|
9692
|
+
function gs({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
9693
|
+
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p = Mo(i ?? Math.max(0, ...f.map((e) => e.x))), g = Mo(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = Ho, y = Math.max(0, u - v.left - v.right), b = t - v.top - v.bottom, x = v.top + b, S = (e) => v.left + e / p * y, C = (e) => x - e / g * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(_) * (o - 4) : 4.5;
|
|
9571
9694
|
return /* @__PURE__ */ h("div", {
|
|
9572
9695
|
...c,
|
|
9573
9696
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -9577,7 +9700,7 @@ function ps({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9577
9700
|
height: t,
|
|
9578
9701
|
className: "select-chart",
|
|
9579
9702
|
children: [
|
|
9580
|
-
|
|
9703
|
+
No(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9581
9704
|
x1: v.left,
|
|
9582
9705
|
x2: u - v.right,
|
|
9583
9706
|
y1: C(e),
|
|
@@ -9591,7 +9714,7 @@ function ps({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9591
9714
|
textAnchor: "end",
|
|
9592
9715
|
children: r(e)
|
|
9593
9716
|
})] }, `y${t}`)),
|
|
9594
|
-
|
|
9717
|
+
No(p).map((e, r, i) => /* @__PURE__ */ m("text", {
|
|
9595
9718
|
x: S(e),
|
|
9596
9719
|
y: t - v.bottom + 16,
|
|
9597
9720
|
className: "select-chart__xlabel",
|
|
@@ -9638,8 +9761,8 @@ function ps({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9638
9761
|
}
|
|
9639
9762
|
//#endregion
|
|
9640
9763
|
//#region src/SelectRadar.tsx
|
|
9641
|
-
var
|
|
9642
|
-
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ??
|
|
9764
|
+
var _s = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
|
|
9765
|
+
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? Mo(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [g + t * Math.cos(b(e)), _ + t * Math.sin(b(e))], S = (e) => e.map((e, t) => `${t === 0 ? "M" : "L"}${x(t, e).map((e) => e.toFixed(2)).join(",")}`).join(" ") + " Z";
|
|
9643
9766
|
return /* @__PURE__ */ h("div", {
|
|
9644
9767
|
ref: u,
|
|
9645
9768
|
...l,
|
|
@@ -9748,7 +9871,7 @@ var ms = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
9748
9871
|
});
|
|
9749
9872
|
//#endregion
|
|
9750
9873
|
//#region src/SelectSankey.tsx
|
|
9751
|
-
function
|
|
9874
|
+
function vs({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
9752
9875
|
let { ref: s, width: c } = Y(t), l = Q(), u = [], d = [];
|
|
9753
9876
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
9754
9877
|
let f = e.reduce((e, t) => e + t.value, 0) || 1, p = (t, n) => e.filter((e) => e[n] === t).reduce((e, t) => e + t.value, 0), g = t - 12, _ = Math.max(u.length, d.length), v = (g - i * Math.max(0, _ - 1)) / f, y = (e, t, n) => {
|
|
@@ -9833,8 +9956,8 @@ function hs({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
9833
9956
|
}
|
|
9834
9957
|
//#endregion
|
|
9835
9958
|
//#region src/SelectCandlestick.tsx
|
|
9836
|
-
function
|
|
9837
|
-
let { ref: s, width: c } = Y(t), l = Q(), u =
|
|
9959
|
+
function ys({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
9960
|
+
let { ref: s, width: c } = Y(t), l = Q(), u = Ho, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, g = Math.max(1, ...e.map((e) => e.high)), _ = Math.min(g, ...e.map((e) => e.low)), v = (g - _) * .08 || 1, y = _ - v, b = g + v, x = (e) => p - (e - y) / (b - y) * f, S = e.length, C = S ? d / S : 0, w = Math.min(C * .5, 18), T = Array.from({ length: 5 }, (e, t) => y + (b - y) * t / 4);
|
|
9838
9961
|
return /* @__PURE__ */ h("div", {
|
|
9839
9962
|
...o,
|
|
9840
9963
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -9923,8 +10046,8 @@ function gs({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
9923
10046
|
}
|
|
9924
10047
|
//#endregion
|
|
9925
10048
|
//#region src/SelectBoxPlot.tsx
|
|
9926
|
-
function
|
|
9927
|
-
let { ref: a, width: o } = Y(t), s = Q(), c =
|
|
10049
|
+
function bs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
10050
|
+
let { ref: a, width: o } = Y(t), s = Q(), c = Ho, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Mo(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .5, 40);
|
|
9928
10051
|
return /* @__PURE__ */ h("div", {
|
|
9929
10052
|
...i,
|
|
9930
10053
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -9933,7 +10056,7 @@ function _s({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9933
10056
|
width: o,
|
|
9934
10057
|
height: t,
|
|
9935
10058
|
className: "select-chart",
|
|
9936
|
-
children: [
|
|
10059
|
+
children: [No(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9937
10060
|
x1: c.left,
|
|
9938
10061
|
x2: o - c.right,
|
|
9939
10062
|
y1: p(e),
|
|
@@ -10043,7 +10166,7 @@ function _s({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10043
10166
|
}
|
|
10044
10167
|
//#endregion
|
|
10045
10168
|
//#region src/SelectRangeBar.tsx
|
|
10046
|
-
function
|
|
10169
|
+
function xs({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
10047
10170
|
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } = Y(l), f = Q(), p = s(), g = n ?? Math.min(0, ...e.map((e) => e.start)), _ = (r ?? Math.max(1, ...e.map((e) => e.end))) - g || 1, v = a, y = Math.max(0, d - v - 14), b = l - 6 - 26, x = e.length ? b / e.length : 0, S = Math.min(x * .6, 22), C = (e) => v + (e - g) / _ * y, w = Array.from({ length: 5 }, (e, t) => g + _ * t / 4);
|
|
10048
10171
|
return /* @__PURE__ */ h("div", {
|
|
10049
10172
|
...c,
|
|
@@ -10124,7 +10247,7 @@ function vs({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
10124
10247
|
}
|
|
10125
10248
|
//#endregion
|
|
10126
10249
|
//#region src/SelectCalendarHeatmap.tsx
|
|
10127
|
-
var
|
|
10250
|
+
var Ss = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
10128
10251
|
"Seg",
|
|
10129
10252
|
"",
|
|
10130
10253
|
"Qua",
|
|
@@ -10197,8 +10320,8 @@ var ys = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10197
10320
|
]
|
|
10198
10321
|
}), /* @__PURE__ */ m($, { tip: p.tip })]
|
|
10199
10322
|
});
|
|
10200
|
-
}),
|
|
10201
|
-
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p =
|
|
10323
|
+
}), Cs = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
10324
|
+
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = Mo(Math.max(1, ...e.map((e) => e.value))), g = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, _ = 360 / f;
|
|
10202
10325
|
return /* @__PURE__ */ h("div", {
|
|
10203
10326
|
ref: s,
|
|
10204
10327
|
...o,
|
|
@@ -10228,7 +10351,7 @@ var ys = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10228
10351
|
}, t)), e.map((e, t) => {
|
|
10229
10352
|
let r = t * _, i = (t + 1) * _ - 1.5, a = e.color ?? X(t), o = Math.max(2, g(e.value)), s = ((r + i) / 2 - 90) * (Math.PI / 180), d = l + o * Math.cos(s), f = u + o * Math.sin(s);
|
|
10230
10353
|
return /* @__PURE__ */ m("path", {
|
|
10231
|
-
d:
|
|
10354
|
+
d: Bo(l, u, o, 0, r, i),
|
|
10232
10355
|
fill: a,
|
|
10233
10356
|
fillOpacity: .8,
|
|
10234
10357
|
className: "select-chart__seg",
|
|
@@ -10271,13 +10394,13 @@ var ys = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10271
10394
|
});
|
|
10272
10395
|
//#endregion
|
|
10273
10396
|
//#region src/SelectSlope.tsx
|
|
10274
|
-
function
|
|
10397
|
+
function ws({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
10275
10398
|
let { ref: s, width: c } = Y(r), l = Q(), u = {
|
|
10276
10399
|
top: 24,
|
|
10277
10400
|
right: 64,
|
|
10278
10401
|
bottom: 12,
|
|
10279
10402
|
left: 132
|
|
10280
|
-
}, d =
|
|
10403
|
+
}, d = Mo(Math.max(1, ...e.flatMap((e) => [e.left, e.right]))), f = r - u.top - u.bottom, p = (e) => u.top + f - e / d * f, g = u.left, _ = c - u.right;
|
|
10281
10404
|
return /* @__PURE__ */ h("div", {
|
|
10282
10405
|
...o,
|
|
10283
10406
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -10393,8 +10516,8 @@ function xs({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
10393
10516
|
}
|
|
10394
10517
|
//#endregion
|
|
10395
10518
|
//#region src/SelectDumbbell.tsx
|
|
10396
|
-
function
|
|
10397
|
-
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Y(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", g =
|
|
10519
|
+
function Ts({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
10520
|
+
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Y(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", g = Mo(Math.max(1, ...e.flatMap((e) => [e.from, e.to]))), _ = a, v = Math.max(0, u - _ - 14), y = c - 6 - 26, b = e.length ? y / e.length : 0, x = (e) => _ + e / g * v;
|
|
10398
10521
|
return /* @__PURE__ */ h("div", {
|
|
10399
10522
|
...s,
|
|
10400
10523
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -10403,7 +10526,7 @@ function Ss({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
10403
10526
|
width: u,
|
|
10404
10527
|
height: c,
|
|
10405
10528
|
className: "select-chart",
|
|
10406
|
-
children: [
|
|
10529
|
+
children: [No(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
10407
10530
|
x1: x(e),
|
|
10408
10531
|
x2: x(e),
|
|
10409
10532
|
y1: 6,
|
|
@@ -10486,7 +10609,7 @@ function Ss({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
10486
10609
|
}
|
|
10487
10610
|
//#endregion
|
|
10488
10611
|
//#region src/SelectMarimekko.tsx
|
|
10489
|
-
function
|
|
10612
|
+
function Es({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
10490
10613
|
let { ref: o, width: s } = Y(t), c = Q(), l = {
|
|
10491
10614
|
top: 6,
|
|
10492
10615
|
right: 6,
|
|
@@ -10566,7 +10689,7 @@ function Cs({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
10566
10689
|
}
|
|
10567
10690
|
//#endregion
|
|
10568
10691
|
//#region src/SelectGaugeBands.tsx
|
|
10569
|
-
var
|
|
10692
|
+
var Ds = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness: i, label: a, format: o = (e) => `${Math.round(e)}`, className: s, ...c }, l) {
|
|
10570
10693
|
let u = i ?? Math.max(10, Math.round(r * .08)), d = u / 2 + 2, f = r / 2 - d, p = r / 2, g = r / 2, _ = g + d, v = (e) => Math.max(0, Math.min(t, e)), y = (e) => {
|
|
10571
10694
|
let t = Math.PI + e * Math.PI;
|
|
10572
10695
|
return [p + f * Math.cos(t), g + f * Math.sin(t)];
|
|
@@ -10638,7 +10761,7 @@ var ws = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
10638
10761
|
});
|
|
10639
10762
|
//#endregion
|
|
10640
10763
|
//#region src/SelectStreamGraph.tsx
|
|
10641
|
-
function
|
|
10764
|
+
function Os({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
10642
10765
|
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = {
|
|
10643
10766
|
top: 14,
|
|
10644
10767
|
right: 14,
|
|
@@ -10682,7 +10805,7 @@ function Ts({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
10682
10805
|
})]
|
|
10683
10806
|
}, t)) }),
|
|
10684
10807
|
w.map((e, t) => /* @__PURE__ */ m("path", {
|
|
10685
|
-
d:
|
|
10808
|
+
d: Ro(e.upper, e.lower),
|
|
10686
10809
|
fill: `url(#${u}-st${t})`,
|
|
10687
10810
|
className: "select-chart__area"
|
|
10688
10811
|
}, t)),
|
|
@@ -10729,7 +10852,7 @@ function Ts({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
10729
10852
|
}
|
|
10730
10853
|
//#endregion
|
|
10731
10854
|
//#region src/SelectSunburst.tsx
|
|
10732
|
-
var
|
|
10855
|
+
var ks = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
10733
10856
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
10734
10857
|
var t;
|
|
10735
10858
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -10755,7 +10878,7 @@ var Es = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10755
10878
|
_ += r;
|
|
10756
10879
|
let a = _ / g * 360, o = e.color ?? X(t), v = i;
|
|
10757
10880
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
10758
|
-
d:
|
|
10881
|
+
d: Bo(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
10759
10882
|
fill: o,
|
|
10760
10883
|
className: "select-chart__seg",
|
|
10761
10884
|
onMouseEnter: () => s.show({
|
|
@@ -10775,7 +10898,7 @@ var Es = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10775
10898
|
v += t.value / g * 360;
|
|
10776
10899
|
let f = v, p = t.color ?? o, h = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
10777
10900
|
return /* @__PURE__ */ m("path", {
|
|
10778
|
-
d:
|
|
10901
|
+
d: Bo(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
10779
10902
|
fill: p,
|
|
10780
10903
|
fillOpacity: h,
|
|
10781
10904
|
className: "select-chart__seg",
|
|
@@ -10822,8 +10945,8 @@ var Es = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10822
10945
|
});
|
|
10823
10946
|
//#endregion
|
|
10824
10947
|
//#region src/SelectViolin.tsx
|
|
10825
|
-
function
|
|
10826
|
-
let { ref: a, width: o } = Y(t), s = Q(), c =
|
|
10948
|
+
function As({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
10949
|
+
let { ref: a, width: o } = Y(t), s = Q(), c = Ho, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Mo(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
|
|
10827
10950
|
return /* @__PURE__ */ h("div", {
|
|
10828
10951
|
...i,
|
|
10829
10952
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -10832,7 +10955,7 @@ function Ds({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10832
10955
|
width: o,
|
|
10833
10956
|
height: t,
|
|
10834
10957
|
className: "select-chart",
|
|
10835
|
-
children: [
|
|
10958
|
+
children: [No(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
10836
10959
|
x1: c.left,
|
|
10837
10960
|
x2: o - c.right,
|
|
10838
10961
|
y1: p(e),
|
|
@@ -10849,7 +10972,7 @@ function Ds({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10849
10972
|
let i = c.left + _ * r + _ / 2, a = e.color ?? X(r), o = e.bins.length, l = (t) => p(e.min + (e.max - e.min) * t / Math.max(1, o - 1)), d = (t) => e.bins[t] / y * v, f = [], g = [];
|
|
10850
10973
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
10851
10974
|
for (let e = 0; e < o; e++) g.push([i - d(e), l(e)]);
|
|
10852
|
-
let b = `${
|
|
10975
|
+
let b = `${Fo(f)} ${Fo(g).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
10853
10976
|
return /* @__PURE__ */ h("g", { children: [
|
|
10854
10977
|
/* @__PURE__ */ m("path", {
|
|
10855
10978
|
d: b,
|
|
@@ -10910,7 +11033,7 @@ function Ds({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10910
11033
|
}
|
|
10911
11034
|
//#endregion
|
|
10912
11035
|
//#region src/SelectChord.tsx
|
|
10913
|
-
var
|
|
11036
|
+
var js = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
10914
11037
|
let c = Q(), l = t.length, u = n / 2, d = n / 2, f = n / 2 - 22, p = f - 9, g = e.map((e) => e.reduce((e, t) => e + t, 0)), _ = g.reduce((e, t) => e + t, 0) || 1, v = (2 * Math.PI - l * i) / _, y = [], b = 0;
|
|
10915
11038
|
for (let e = 0; e < l; e++) {
|
|
10916
11039
|
let t = b, n = b + g[e] * v;
|
|
@@ -10977,7 +11100,7 @@ var Os = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
10977
11100
|
}, n)), y.map((e, n) => {
|
|
10978
11101
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
10979
11102
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
10980
|
-
d:
|
|
11103
|
+
d: Bo(u, d, f, p, w(e.a0), w(e.a1)),
|
|
10981
11104
|
fill: X(n),
|
|
10982
11105
|
className: "select-chord__arc"
|
|
10983
11106
|
}), /* @__PURE__ */ m("text", {
|
|
@@ -10995,7 +11118,7 @@ var Os = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
10995
11118
|
});
|
|
10996
11119
|
//#endregion
|
|
10997
11120
|
//#region src/SelectHexbin.tsx
|
|
10998
|
-
function
|
|
11121
|
+
function Ms({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
10999
11122
|
let { ref: l, width: u } = Y(t), d = Q(), f = Math.max(0, u - 24), p = t - 24, g = i ?? Math.max(1, ...e.map((e) => e.x)), _ = a ?? Math.max(1, ...e.map((e) => e.y)), v = (e) => 12 + e / g * f, y = (e) => 12 + p - e / _ * p, b = n, x = Math.sqrt(3), S = (e, t) => {
|
|
11000
11123
|
let n = e, r = t, i = -n - r, a = Math.round(n), o = Math.round(i), s = Math.round(r), c = Math.abs(a - n), l = Math.abs(o - i), u = Math.abs(s - r);
|
|
11001
11124
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
@@ -11047,7 +11170,7 @@ function ks({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
11047
11170
|
}
|
|
11048
11171
|
//#endregion
|
|
11049
11172
|
//#region src/SelectWordCloud.tsx
|
|
11050
|
-
var
|
|
11173
|
+
var Ns = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
11051
11174
|
let o = e.map((e) => e.value), s = Math.max(1, ...o), c = Math.min(...o), l = s - c || 1, u = (e) => t + (e - c) / l * (n - t);
|
|
11052
11175
|
return /* @__PURE__ */ m("div", {
|
|
11053
11176
|
ref: a,
|
|
@@ -11064,7 +11187,7 @@ var As = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
11064
11187
|
children: e.text
|
|
11065
11188
|
}, `${e.text}-${t}`))
|
|
11066
11189
|
});
|
|
11067
|
-
}),
|
|
11190
|
+
}), Ps = [
|
|
11068
11191
|
[
|
|
11069
11192
|
-59.6,
|
|
11070
11193
|
-80,
|
|
@@ -21459,24 +21582,24 @@ var As = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
21459
21582
|
-27.1,
|
|
21460
21583
|
83.5
|
|
21461
21584
|
]
|
|
21462
|
-
],
|
|
21463
|
-
function
|
|
21464
|
-
let n = e *
|
|
21585
|
+
], Fs = Math.PI / 180;
|
|
21586
|
+
function Is(e, t) {
|
|
21587
|
+
let n = e * Fs, r = t * Fs;
|
|
21465
21588
|
return [
|
|
21466
21589
|
Math.cos(n) * Math.sin(r),
|
|
21467
21590
|
Math.sin(n),
|
|
21468
21591
|
Math.cos(n) * Math.cos(r)
|
|
21469
21592
|
];
|
|
21470
21593
|
}
|
|
21471
|
-
function
|
|
21472
|
-
let a = r *
|
|
21594
|
+
function Ls([e, t, n], r, i) {
|
|
21595
|
+
let a = r * Fs, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * Fs;
|
|
21473
21596
|
return [
|
|
21474
21597
|
o,
|
|
21475
21598
|
t * Math.cos(c) - s * Math.sin(c),
|
|
21476
21599
|
t * Math.sin(c) + s * Math.cos(c)
|
|
21477
21600
|
];
|
|
21478
21601
|
}
|
|
21479
|
-
function
|
|
21602
|
+
function Rs(e, t, n) {
|
|
21480
21603
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
21481
21604
|
r = Math.max(-1, Math.min(1, r));
|
|
21482
21605
|
let i = Math.acos(r);
|
|
@@ -21488,9 +21611,9 @@ function Fs(e, t, n) {
|
|
|
21488
21611
|
e[2] * o + t[2] * s
|
|
21489
21612
|
];
|
|
21490
21613
|
}
|
|
21491
|
-
var
|
|
21614
|
+
var zs = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, Bs = r(function({ points: e = [], arcs: t = [], size: n = 320, tilt: r = -18, spin: i = !0, speed: a = 7, color: c = "var(--select-chart-1)", format: f = Z, legend: p = !0, map: g = !0, fluid: _ = !1, onZoomChange: v, className: y, ...b }, x) {
|
|
21492
21615
|
var S, C;
|
|
21493
|
-
let w = s(), T = Q(), E = u(null), D =
|
|
21616
|
+
let w = s(), T = Q(), E = u(null), D = jo(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = u(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = u({
|
|
21494
21617
|
lng: -O,
|
|
21495
21618
|
lat: r
|
|
21496
21619
|
}), j = u({
|
|
@@ -21514,19 +21637,19 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21514
21637
|
o(() => (k.current || re(), () => {
|
|
21515
21638
|
L.current && cancelAnimationFrame(L.current), L.current = 0;
|
|
21516
21639
|
}), []);
|
|
21517
|
-
let
|
|
21518
|
-
|
|
21640
|
+
let ie = u(v);
|
|
21641
|
+
ie.current = v, o(() => {
|
|
21519
21642
|
let e = E.current;
|
|
21520
21643
|
if (!e) return;
|
|
21521
21644
|
let t = (e) => {
|
|
21522
21645
|
var t;
|
|
21523
21646
|
e.preventDefault();
|
|
21524
21647
|
let n = Math.max(-240, Math.min(240, e.deltaMode ? e.deltaY * 40 : e.deltaY)), r = M.current * Math.exp(-n * .0012);
|
|
21525
|
-
M.current = Math.max(.8, Math.min(1.8, r)), (t =
|
|
21648
|
+
M.current = Math.max(.8, Math.min(1.8, r)), (t = ie.current) == null || t.call(ie, M.current), re(), R((e) => (e + 1) % 1e6);
|
|
21526
21649
|
};
|
|
21527
21650
|
return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
|
|
21528
21651
|
}, []);
|
|
21529
|
-
let
|
|
21652
|
+
let ae = (e) => {
|
|
21530
21653
|
var t, n;
|
|
21531
21654
|
(t = (n = e.target).setPointerCapture) == null || t.call(n, e.pointerId), P.current = {
|
|
21532
21655
|
x: e.clientX,
|
|
@@ -21535,7 +21658,7 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21535
21658
|
lng: 0,
|
|
21536
21659
|
lat: 0
|
|
21537
21660
|
}, N.current = null, ne(!0), re();
|
|
21538
|
-
},
|
|
21661
|
+
}, oe = (e) => {
|
|
21539
21662
|
if (!P.current) return;
|
|
21540
21663
|
let t = .34 / M.current, n = e.clientX - P.current.x, r = e.clientY - P.current.y;
|
|
21541
21664
|
P.current = {
|
|
@@ -21545,41 +21668,41 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21545
21668
|
lng: n * t,
|
|
21546
21669
|
lat: r * t
|
|
21547
21670
|
};
|
|
21548
|
-
},
|
|
21671
|
+
}, H = (e) => {
|
|
21549
21672
|
var t, n;
|
|
21550
21673
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ne(!1), re());
|
|
21551
|
-
},
|
|
21552
|
-
let t =
|
|
21674
|
+
}, U = (D / 2 - 6) * M.current, W = D / 2, G = D / 2, se = (e) => {
|
|
21675
|
+
let t = Ls(e, A.current.lng, A.current.lat);
|
|
21553
21676
|
return {
|
|
21554
|
-
x:
|
|
21555
|
-
y:
|
|
21677
|
+
x: W + U * t[0],
|
|
21678
|
+
y: G - U * t[1],
|
|
21556
21679
|
z: t[2]
|
|
21557
21680
|
};
|
|
21558
|
-
},
|
|
21681
|
+
}, ce = l(() => {
|
|
21559
21682
|
let e = [];
|
|
21560
21683
|
for (let t = -180; t < 180; t += 30) {
|
|
21561
21684
|
let n = [];
|
|
21562
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
21685
|
+
for (let e = 0; e <= 48; e++) n.push(Is(-90 + 180 * e / 48, t));
|
|
21563
21686
|
e.push(n);
|
|
21564
21687
|
}
|
|
21565
21688
|
for (let t = -60; t <= 60; t += 30) {
|
|
21566
21689
|
let n = [];
|
|
21567
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
21690
|
+
for (let e = 0; e <= 48; e++) n.push(Is(t, -180 + 360 * e / 48));
|
|
21568
21691
|
e.push(n);
|
|
21569
21692
|
}
|
|
21570
21693
|
return e;
|
|
21571
|
-
}, []),
|
|
21694
|
+
}, []), le = l(() => Ps.map((e) => {
|
|
21572
21695
|
let t = [];
|
|
21573
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
21696
|
+
for (let n = 0; n < e.length; n += 2) t.push(Is(e[n + 1], e[n]));
|
|
21574
21697
|
return t;
|
|
21575
|
-
}), []),
|
|
21576
|
-
x:
|
|
21577
|
-
y:
|
|
21578
|
-
}),
|
|
21579
|
-
if (g) for (let e of
|
|
21580
|
-
let t = e.map((e) =>
|
|
21698
|
+
}), []), K = (e) => ({
|
|
21699
|
+
x: W + U * e[0],
|
|
21700
|
+
y: G - U * e[1]
|
|
21701
|
+
}), q = "", ue = "";
|
|
21702
|
+
if (g) for (let e of le) {
|
|
21703
|
+
let t = e.map((e) => Ls(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
21581
21704
|
for (let e of t) if (e[2] > 0) {
|
|
21582
|
-
let t =
|
|
21705
|
+
let t = K(e);
|
|
21583
21706
|
ue += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
21584
21707
|
} else r = !1;
|
|
21585
21708
|
let i = [];
|
|
@@ -21602,30 +21725,30 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21602
21725
|
}
|
|
21603
21726
|
if (i.length >= 3) {
|
|
21604
21727
|
let e = (e, t) => {
|
|
21605
|
-
let n =
|
|
21728
|
+
let n = K(t.v);
|
|
21606
21729
|
if (e.edge && t.edge) {
|
|
21607
|
-
let t = Math.atan2(
|
|
21730
|
+
let t = Math.atan2(K(e.v).y - G, K(e.v).x - W), r = Math.atan2(n.y - G, n.x - W) - t;
|
|
21608
21731
|
for (; r > Math.PI;) r -= 2 * Math.PI;
|
|
21609
21732
|
for (; r < -Math.PI;) r += 2 * Math.PI;
|
|
21610
21733
|
let i = +(r > 0);
|
|
21611
|
-
return `A${
|
|
21734
|
+
return `A${U.toFixed(1)},${U.toFixed(1)} 0 0 ${i} ${n.x.toFixed(1)},${n.y.toFixed(1)}`;
|
|
21612
21735
|
}
|
|
21613
21736
|
return `L${n.x.toFixed(1)},${n.y.toFixed(1)}`;
|
|
21614
|
-
}, t =
|
|
21615
|
-
|
|
21616
|
-
for (let t = 1; t < i.length; t++)
|
|
21617
|
-
|
|
21737
|
+
}, t = K(i[0].v);
|
|
21738
|
+
q += `M${t.x.toFixed(1)},${t.y.toFixed(1)}`;
|
|
21739
|
+
for (let t = 1; t < i.length; t++) q += e(i[t - 1], i[t]);
|
|
21740
|
+
q += e(i[i.length - 1], i[0]), q += "Z";
|
|
21618
21741
|
}
|
|
21619
21742
|
}
|
|
21620
21743
|
let de = (e) => {
|
|
21621
21744
|
let t = "", n = !1;
|
|
21622
21745
|
for (let r of e) {
|
|
21623
|
-
let e =
|
|
21746
|
+
let e = se(r);
|
|
21624
21747
|
e.z > 0 ? (t += `${n ? "L" : "M"}${e.x.toFixed(1)},${e.y.toFixed(1)}`, n = !0) : n = !1;
|
|
21625
21748
|
}
|
|
21626
21749
|
return t;
|
|
21627
21750
|
}, fe = Math.max(1, ...e.map((e) => e.value ?? 0)), pe = e.map((e, t) => {
|
|
21628
|
-
let n =
|
|
21751
|
+
let n = se(Is(e.lat, e.lng));
|
|
21629
21752
|
return {
|
|
21630
21753
|
...e,
|
|
21631
21754
|
i: t,
|
|
@@ -21635,20 +21758,20 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21635
21758
|
col: e.color ?? c
|
|
21636
21759
|
};
|
|
21637
21760
|
}), me = z == null ? null : e[z], he = t.map((e, t) => {
|
|
21638
|
-
let n =
|
|
21761
|
+
let n = Is(e.from.lat, e.from.lng), r = Is(e.to.lat, e.to.lng), i = "", a = !1;
|
|
21639
21762
|
for (let e = 0; e <= 40; e++) {
|
|
21640
|
-
let t = e / 40, o =
|
|
21763
|
+
let t = e / 40, o = Rs(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = Ls(o, A.current.lng, A.current.lat), l = se([
|
|
21641
21764
|
o[0] * s,
|
|
21642
21765
|
o[1] * s,
|
|
21643
21766
|
o[2] * s
|
|
21644
21767
|
]);
|
|
21645
21768
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
21646
21769
|
}
|
|
21647
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
21770
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = Rs(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = Ls(s, A.current.lng, A.current.lat), d = se([
|
|
21648
21771
|
s[0] * l,
|
|
21649
21772
|
s[1] * l,
|
|
21650
21773
|
s[2] * l
|
|
21651
|
-
]), f = me != null && (
|
|
21774
|
+
]), f = me != null && (zs(e.from, me) || zs(e.to, me));
|
|
21652
21775
|
return {
|
|
21653
21776
|
d: i,
|
|
21654
21777
|
col: e.color ?? c,
|
|
@@ -21675,11 +21798,11 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21675
21798
|
F.current = !0;
|
|
21676
21799
|
},
|
|
21677
21800
|
onPointerLeave: (e) => {
|
|
21678
|
-
F.current = !1,
|
|
21801
|
+
F.current = !1, H(e), B(null), T.hide(), re();
|
|
21679
21802
|
},
|
|
21680
|
-
onPointerDown:
|
|
21681
|
-
onPointerMove:
|
|
21682
|
-
onPointerUp:
|
|
21803
|
+
onPointerDown: ae,
|
|
21804
|
+
onPointerMove: oe,
|
|
21805
|
+
onPointerUp: H,
|
|
21683
21806
|
children: [/* @__PURE__ */ h("svg", {
|
|
21684
21807
|
width: D,
|
|
21685
21808
|
height: D,
|
|
@@ -21774,43 +21897,43 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21774
21897
|
/* @__PURE__ */ m("clipPath", {
|
|
21775
21898
|
id: `${w}-clip`,
|
|
21776
21899
|
children: /* @__PURE__ */ m("circle", {
|
|
21777
|
-
cx:
|
|
21778
|
-
cy:
|
|
21779
|
-
r:
|
|
21900
|
+
cx: W,
|
|
21901
|
+
cy: G,
|
|
21902
|
+
r: U
|
|
21780
21903
|
})
|
|
21781
21904
|
})
|
|
21782
21905
|
] }),
|
|
21783
21906
|
/* @__PURE__ */ m("circle", {
|
|
21784
|
-
cx:
|
|
21785
|
-
cy:
|
|
21786
|
-
r:
|
|
21907
|
+
cx: W,
|
|
21908
|
+
cy: G,
|
|
21909
|
+
r: U + 24,
|
|
21787
21910
|
fill: `url(#${w}-atmo)`
|
|
21788
21911
|
}),
|
|
21789
21912
|
/* @__PURE__ */ m("circle", {
|
|
21790
|
-
cx:
|
|
21791
|
-
cy:
|
|
21792
|
-
r:
|
|
21913
|
+
cx: W,
|
|
21914
|
+
cy: G,
|
|
21915
|
+
r: U,
|
|
21793
21916
|
fill: `url(#${w}-sphere)`,
|
|
21794
21917
|
stroke: `color-mix(in srgb, ${c} 40%, transparent)`,
|
|
21795
21918
|
strokeWidth: 1
|
|
21796
21919
|
}),
|
|
21797
21920
|
/* @__PURE__ */ m("circle", {
|
|
21798
|
-
cx:
|
|
21799
|
-
cy:
|
|
21800
|
-
r:
|
|
21921
|
+
cx: W,
|
|
21922
|
+
cy: G,
|
|
21923
|
+
r: U,
|
|
21801
21924
|
fill: `url(#${w}-glow)`
|
|
21802
21925
|
}),
|
|
21803
21926
|
/* @__PURE__ */ m("circle", {
|
|
21804
|
-
cx:
|
|
21805
|
-
cy:
|
|
21806
|
-
r:
|
|
21927
|
+
cx: W,
|
|
21928
|
+
cy: G,
|
|
21929
|
+
r: U,
|
|
21807
21930
|
fill: `url(#${w}-spec)`
|
|
21808
21931
|
}),
|
|
21809
21932
|
/* @__PURE__ */ h("g", {
|
|
21810
21933
|
clipPath: `url(#${w}-clip)`,
|
|
21811
21934
|
children: [
|
|
21812
|
-
g &&
|
|
21813
|
-
d:
|
|
21935
|
+
g && q && /* @__PURE__ */ m("path", {
|
|
21936
|
+
d: q,
|
|
21814
21937
|
className: "select-globe__land",
|
|
21815
21938
|
fill: `color-mix(in srgb, ${c} 38%, transparent)`
|
|
21816
21939
|
}),
|
|
@@ -21820,7 +21943,7 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21820
21943
|
fill: "none",
|
|
21821
21944
|
stroke: `color-mix(in srgb, ${c} 68%, transparent)`
|
|
21822
21945
|
}),
|
|
21823
|
-
|
|
21946
|
+
ce.map((e, t) => /* @__PURE__ */ m("path", {
|
|
21824
21947
|
d: de(e),
|
|
21825
21948
|
className: "select-globe__grid"
|
|
21826
21949
|
}, `g${t}`)),
|
|
@@ -21874,7 +21997,7 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21874
21997
|
B(e.i), T.show({
|
|
21875
21998
|
x: e.p.x,
|
|
21876
21999
|
y: e.p.y - e.r - 4,
|
|
21877
|
-
place: e.p.y <
|
|
22000
|
+
place: e.p.y < G ? "bottom" : "top",
|
|
21878
22001
|
title: e.label,
|
|
21879
22002
|
rows: e.value == null ? [] : [{
|
|
21880
22003
|
label: "Volume",
|
|
@@ -21922,8 +22045,8 @@ var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21922
22045
|
});
|
|
21923
22046
|
//#endregion
|
|
21924
22047
|
//#region src/SelectTicker.tsx
|
|
21925
|
-
function
|
|
21926
|
-
let i = u(null), a = u(null), s = u(null), c =
|
|
22048
|
+
function Vs({ children: e, speed: t = 28, className: n, ...r }) {
|
|
22049
|
+
let i = u(null), a = u(null), s = u(null), c = jo(i, 0), l = jo(s, 0), d = c > 0 && l > c + 1, f = u(0), p = u(null), g = u(!1);
|
|
21927
22050
|
o(() => {
|
|
21928
22051
|
var e, n;
|
|
21929
22052
|
let r = a.current;
|
|
@@ -21984,12 +22107,12 @@ function Rs({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
21984
22107
|
}
|
|
21985
22108
|
//#endregion
|
|
21986
22109
|
//#region src/SelectPareto.tsx
|
|
21987
|
-
function
|
|
22110
|
+
function Hs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
21988
22111
|
var a;
|
|
21989
22112
|
let { ref: o, width: c } = Y(t), l = Q(), u = s(), [f, p] = d(null), g = {
|
|
21990
|
-
...
|
|
22113
|
+
...Ho,
|
|
21991
22114
|
right: 44
|
|
21992
|
-
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - g.left - g.right), C = t - g.top - g.bottom, w =
|
|
22115
|
+
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - g.left - g.right), C = t - g.top - g.bottom, w = Mo(((a = _[0]) == null ? void 0 : a.value) ?? 1), T = v > 0 ? S / v : 0, E = Math.min(T * .62, 46), D = g.top + C, O = (e) => D - e / w * C, k = (e) => D - e / 100 * C, A = (e) => g.left + T * e + T / 2, j = x.map((e, t) => [A(t), k(e)]), M = X(0), N = X(1);
|
|
21993
22116
|
return /* @__PURE__ */ h("div", {
|
|
21994
22117
|
...i,
|
|
21995
22118
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -22018,7 +22141,7 @@ function zs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22018
22141
|
stopOpacity: .55
|
|
22019
22142
|
})]
|
|
22020
22143
|
}) }),
|
|
22021
|
-
|
|
22144
|
+
No(w).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
22022
22145
|
x1: g.left,
|
|
22023
22146
|
x2: c - g.right,
|
|
22024
22147
|
y1: O(e),
|
|
@@ -22082,7 +22205,7 @@ function zs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22082
22205
|
}, t);
|
|
22083
22206
|
}),
|
|
22084
22207
|
/* @__PURE__ */ m("path", {
|
|
22085
|
-
d:
|
|
22208
|
+
d: Io(j),
|
|
22086
22209
|
fill: "none",
|
|
22087
22210
|
stroke: N,
|
|
22088
22211
|
strokeWidth: 2,
|
|
@@ -22110,7 +22233,7 @@ function zs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22110
22233
|
}
|
|
22111
22234
|
//#endregion
|
|
22112
22235
|
//#region src/SelectWaffle.tsx
|
|
22113
|
-
var
|
|
22236
|
+
var Us = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
22114
22237
|
let s = e.reduce((e, t) => e + t.value, 0) || 1, c = t * n, l = e.map((e) => e.value / s * c), u = l.map(Math.floor), d = u.reduce((e, t) => e + t, 0), f = l.map((e, t) => ({
|
|
22115
22238
|
i: t,
|
|
22116
22239
|
frac: e - u[t]
|
|
@@ -22159,7 +22282,7 @@ var Bs = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
22159
22282
|
});
|
|
22160
22283
|
//#endregion
|
|
22161
22284
|
//#region src/SelectPyramid.tsx
|
|
22162
|
-
function
|
|
22285
|
+
function Ws({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
22163
22286
|
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: f, width: p } = Y(u), g = Q(), [_, v] = d(null), y = Math.max(1, ...e.flatMap((e) => [e.left, e.right])), b = Math.max(0, (p - s - 16) / 2), x = e.length ? (u - 26 - 8) / e.length : 0, S = Math.min(x * .6, 26), C = 8 + b, w = 8 + b + s, T = a ?? X(1), E = o ?? X(0);
|
|
22164
22287
|
return /* @__PURE__ */ h("div", {
|
|
22165
22288
|
...l,
|
|
@@ -22267,7 +22390,7 @@ function Vs({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
22267
22390
|
}
|
|
22268
22391
|
//#endregion
|
|
22269
22392
|
//#region src/SelectBump.tsx
|
|
22270
|
-
function
|
|
22393
|
+
function Gs({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
22271
22394
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
22272
22395
|
top: 16,
|
|
22273
22396
|
right: 78,
|
|
@@ -22304,7 +22427,7 @@ function Hs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
22304
22427
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
22305
22428
|
children: [
|
|
22306
22429
|
/* @__PURE__ */ m("path", {
|
|
22307
|
-
d:
|
|
22430
|
+
d: Io(a),
|
|
22308
22431
|
fill: "none",
|
|
22309
22432
|
stroke: i,
|
|
22310
22433
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -22352,7 +22475,7 @@ function Hs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
22352
22475
|
}
|
|
22353
22476
|
//#endregion
|
|
22354
22477
|
//#region src/SelectParallel.tsx
|
|
22355
|
-
function
|
|
22478
|
+
function Ks({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
22356
22479
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
22357
22480
|
top: 30,
|
|
22358
22481
|
right: 28,
|
|
@@ -22444,25 +22567,25 @@ function Us({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
22444
22567
|
}
|
|
22445
22568
|
//#endregion
|
|
22446
22569
|
//#region src/SelectIcicle.tsx
|
|
22447
|
-
function
|
|
22448
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
22570
|
+
function qs(e) {
|
|
22571
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + qs(t), 0) : e.value ?? 0;
|
|
22449
22572
|
}
|
|
22450
|
-
function
|
|
22451
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
22573
|
+
function Js(e, t = 0) {
|
|
22574
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => Js(e, t + 1)));
|
|
22452
22575
|
}
|
|
22453
|
-
function
|
|
22454
|
-
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u =
|
|
22576
|
+
function Ys({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
22577
|
+
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u = Js(e), f = t / (u + 1), p = [], g = (e, t, n, r, i) => {
|
|
22455
22578
|
if (p.push({
|
|
22456
22579
|
node: e,
|
|
22457
22580
|
x0: t,
|
|
22458
22581
|
x1: n,
|
|
22459
22582
|
depth: r,
|
|
22460
22583
|
color: e.color ?? X(i),
|
|
22461
|
-
value:
|
|
22584
|
+
value: qs(e)
|
|
22462
22585
|
}), e.children && e.children.length) {
|
|
22463
|
-
let a = e.children.reduce((e, t) => e +
|
|
22586
|
+
let a = e.children.reduce((e, t) => e + qs(t), 0) || 1, o = t;
|
|
22464
22587
|
e.children.forEach((e, s) => {
|
|
22465
|
-
let c = (n - t) *
|
|
22588
|
+
let c = (n - t) * qs(e) / a;
|
|
22466
22589
|
g(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
22467
22590
|
});
|
|
22468
22591
|
}
|
|
@@ -22523,7 +22646,7 @@ function Ks({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22523
22646
|
}
|
|
22524
22647
|
//#endregion
|
|
22525
22648
|
//#region src/SelectTree.tsx
|
|
22526
|
-
function
|
|
22649
|
+
function Xs({ data: e, height: t = 260, className: n, ...r }) {
|
|
22527
22650
|
let { ref: i, width: a } = Y(t), o = Q(), [s, c] = d(null), l = {
|
|
22528
22651
|
top: 14,
|
|
22529
22652
|
right: 96,
|
|
@@ -22601,7 +22724,7 @@ function qs({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
22601
22724
|
}
|
|
22602
22725
|
//#endregion
|
|
22603
22726
|
//#region src/SelectVenn.tsx
|
|
22604
|
-
var
|
|
22727
|
+
var Zs = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
22605
22728
|
let a = Math.min(3, e.length), o = t / 2, s = t / 2, c = Math.max(1, ...e.slice(0, a).map((e) => e.size)), l = t * .26, u = (e) => l * .45 + l * .55 * Math.sqrt(e.size / c), d = a <= 2 ? [[o - l * .42, s], [o + l * .42, s]] : [
|
|
22606
22729
|
[o, s - l * .5],
|
|
22607
22730
|
[o - l * .5, s + l * .36],
|
|
@@ -22666,7 +22789,7 @@ var Js = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
22666
22789
|
}, t))
|
|
22667
22790
|
})]
|
|
22668
22791
|
});
|
|
22669
|
-
}),
|
|
22792
|
+
}), Qs = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
22670
22793
|
let o = Q(), [s, c] = d(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
22671
22794
|
d: e,
|
|
22672
22795
|
i: t,
|
|
@@ -22769,7 +22892,7 @@ var Js = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
22769
22892
|
});
|
|
22770
22893
|
//#endregion
|
|
22771
22894
|
//#region src/SelectNetwork.tsx
|
|
22772
|
-
function
|
|
22895
|
+
function $s({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
22773
22896
|
let { ref: o, width: s } = Y(n), c = Q(), [u, f] = d(null), p = l(() => {
|
|
22774
22897
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
22775
22898
|
if (!a) return o;
|
|
@@ -22882,8 +23005,73 @@ function Xs({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
22882
23005
|
});
|
|
22883
23006
|
}
|
|
22884
23007
|
//#endregion
|
|
23008
|
+
//#region src/SelectSearchMenu.tsx
|
|
23009
|
+
function ec({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", children: o }) {
|
|
23010
|
+
return /* @__PURE__ */ h("div", {
|
|
23011
|
+
className: "select-combobox__panel select-searchmenu",
|
|
23012
|
+
style: { width: a },
|
|
23013
|
+
children: [
|
|
23014
|
+
/* @__PURE__ */ m("div", {
|
|
23015
|
+
className: "select-combobox__search",
|
|
23016
|
+
children: /* @__PURE__ */ m(Ti, {
|
|
23017
|
+
value: e,
|
|
23018
|
+
onChange: t,
|
|
23019
|
+
placeholder: n
|
|
23020
|
+
})
|
|
23021
|
+
}),
|
|
23022
|
+
r != null && r !== !1 ? /* @__PURE__ */ m("div", {
|
|
23023
|
+
className: "select-combobox__empty",
|
|
23024
|
+
role: "status",
|
|
23025
|
+
children: r
|
|
23026
|
+
}) : /* @__PURE__ */ m(tc, { children: o }),
|
|
23027
|
+
i != null && i !== !1 ? /* @__PURE__ */ m("div", {
|
|
23028
|
+
className: "select-searchmenu__footer",
|
|
23029
|
+
children: i
|
|
23030
|
+
}) : null
|
|
23031
|
+
]
|
|
23032
|
+
});
|
|
23033
|
+
}
|
|
23034
|
+
function tc({ children: e }) {
|
|
23035
|
+
let t = Qt({
|
|
23036
|
+
selector: ".select-combobox__option",
|
|
23037
|
+
y: 6,
|
|
23038
|
+
duration: .3,
|
|
23039
|
+
stagger: .02
|
|
23040
|
+
});
|
|
23041
|
+
return /* @__PURE__ */ m("div", {
|
|
23042
|
+
className: "select-combobox__list",
|
|
23043
|
+
role: "listbox",
|
|
23044
|
+
ref: t,
|
|
23045
|
+
children: e
|
|
23046
|
+
});
|
|
23047
|
+
}
|
|
23048
|
+
function nc({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSelect: i }) {
|
|
23049
|
+
return /* @__PURE__ */ h("button", {
|
|
23050
|
+
type: "button",
|
|
23051
|
+
role: "option",
|
|
23052
|
+
"aria-selected": n,
|
|
23053
|
+
disabled: r,
|
|
23054
|
+
className: `select-combobox__option${n ? " is-selected" : ""}`,
|
|
23055
|
+
onClick: i,
|
|
23056
|
+
children: [/* @__PURE__ */ h("span", {
|
|
23057
|
+
className: "select-combobox__optiontext",
|
|
23058
|
+
children: [/* @__PURE__ */ m("span", {
|
|
23059
|
+
className: "select-combobox__optionlabel",
|
|
23060
|
+
children: e
|
|
23061
|
+
}), t != null && t !== "" ? /* @__PURE__ */ m("span", {
|
|
23062
|
+
className: "select-combobox__optionsecondary",
|
|
23063
|
+
children: t
|
|
23064
|
+
}) : null]
|
|
23065
|
+
}), n ? /* @__PURE__ */ m("span", {
|
|
23066
|
+
className: "select-combobox__check",
|
|
23067
|
+
"aria-hidden": "true",
|
|
23068
|
+
children: /* @__PURE__ */ m(Ve, {})
|
|
23069
|
+
}) : null]
|
|
23070
|
+
});
|
|
23071
|
+
}
|
|
23072
|
+
//#endregion
|
|
22885
23073
|
//#region src/SelectThemeSwitcher.tsx
|
|
22886
|
-
var
|
|
23074
|
+
var rc = [
|
|
22887
23075
|
{
|
|
22888
23076
|
value: "light",
|
|
22889
23077
|
label: "Claro",
|
|
@@ -22900,15 +23088,15 @@ var Zs = [
|
|
|
22900
23088
|
icon: /* @__PURE__ */ m(ke, {})
|
|
22901
23089
|
}
|
|
22902
23090
|
];
|
|
22903
|
-
function
|
|
23091
|
+
function ic(e) {
|
|
22904
23092
|
if (e === "system") {
|
|
22905
23093
|
var t, n;
|
|
22906
23094
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
22907
23095
|
}
|
|
22908
23096
|
return e;
|
|
22909
23097
|
}
|
|
22910
|
-
function
|
|
22911
|
-
let [i, a] = d(!1), s = u(null), c =
|
|
23098
|
+
function ac({ value: e, onChange: t, className: n, ...r }) {
|
|
23099
|
+
let [i, a] = d(!1), s = u(null), c = rc.find((t) => t.value === e) ?? rc[2];
|
|
22912
23100
|
return o(() => {
|
|
22913
23101
|
if (!i) return;
|
|
22914
23102
|
let e = (e) => {
|
|
@@ -22919,7 +23107,7 @@ function $s({ value: e, onChange: t, className: n, ...r }) {
|
|
|
22919
23107
|
...r,
|
|
22920
23108
|
className: `select-themeswitcher${n ? " " + n : ""}`,
|
|
22921
23109
|
ref: s,
|
|
22922
|
-
children: [/* @__PURE__ */ m(
|
|
23110
|
+
children: [/* @__PURE__ */ m(Ji, {
|
|
22923
23111
|
active: i,
|
|
22924
23112
|
onClick: () => a((e) => !e),
|
|
22925
23113
|
children: /* @__PURE__ */ h("span", {
|
|
@@ -22928,7 +23116,7 @@ function $s({ value: e, onChange: t, className: n, ...r }) {
|
|
|
22928
23116
|
})
|
|
22929
23117
|
}), i && /* @__PURE__ */ m("div", {
|
|
22930
23118
|
className: "select-themeswitcher__popover",
|
|
22931
|
-
children: /* @__PURE__ */ m(
|
|
23119
|
+
children: /* @__PURE__ */ m(Ui, { children: rc.map((n) => /* @__PURE__ */ m(Wi, {
|
|
22932
23120
|
icon: n.icon,
|
|
22933
23121
|
active: n.value === e,
|
|
22934
23122
|
trailing: n.value === e ? /* @__PURE__ */ m(Ve, {}) : null,
|
|
@@ -22942,8 +23130,8 @@ function $s({ value: e, onChange: t, className: n, ...r }) {
|
|
|
22942
23130
|
}
|
|
22943
23131
|
//#endregion
|
|
22944
23132
|
//#region src/SelectDetail.tsx
|
|
22945
|
-
var
|
|
22946
|
-
function
|
|
23133
|
+
var oc = n(!1);
|
|
23134
|
+
function sc({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
22947
23135
|
let r = Qt({
|
|
22948
23136
|
selector: ".select-detail",
|
|
22949
23137
|
y: 8,
|
|
@@ -22951,7 +23139,7 @@ function tc({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
22951
23139
|
stagger: .05,
|
|
22952
23140
|
scroll: !0
|
|
22953
23141
|
});
|
|
22954
|
-
return /* @__PURE__ */ m(
|
|
23142
|
+
return /* @__PURE__ */ m(oc.Provider, {
|
|
22955
23143
|
value: n,
|
|
22956
23144
|
children: /* @__PURE__ */ m("div", {
|
|
22957
23145
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}`,
|
|
@@ -22960,8 +23148,8 @@ function tc({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
22960
23148
|
})
|
|
22961
23149
|
});
|
|
22962
23150
|
}
|
|
22963
|
-
var
|
|
22964
|
-
let l = a(
|
|
23151
|
+
var cc = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
23152
|
+
let l = a(oc), u = i ?? l;
|
|
22965
23153
|
return /* @__PURE__ */ h("div", {
|
|
22966
23154
|
ref: c,
|
|
22967
23155
|
...s,
|
|
@@ -22981,7 +23169,7 @@ var nc = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
22981
23169
|
})
|
|
22982
23170
|
]
|
|
22983
23171
|
});
|
|
22984
|
-
}),
|
|
23172
|
+
}), lc = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
|
|
22985
23173
|
let s = r === "vertical";
|
|
22986
23174
|
return /* @__PURE__ */ m("ol", {
|
|
22987
23175
|
ref: o,
|
|
@@ -23020,7 +23208,7 @@ var nc = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
23020
23208
|
});
|
|
23021
23209
|
//#endregion
|
|
23022
23210
|
//#region src/SelectSetupGuide.tsx
|
|
23023
|
-
function
|
|
23211
|
+
function uc({ status: e }) {
|
|
23024
23212
|
return /* @__PURE__ */ m("span", {
|
|
23025
23213
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
23026
23214
|
"aria-hidden": "true",
|
|
@@ -23039,13 +23227,13 @@ function ic({ status: e }) {
|
|
|
23039
23227
|
})
|
|
23040
23228
|
});
|
|
23041
23229
|
}
|
|
23042
|
-
var
|
|
23230
|
+
var dc = {
|
|
23043
23231
|
done: "feito",
|
|
23044
23232
|
todo: "a fazer",
|
|
23045
23233
|
next: "próximo passo",
|
|
23046
23234
|
skipped: "pulado",
|
|
23047
23235
|
waiting: "aguardando"
|
|
23048
|
-
},
|
|
23236
|
+
}, fc = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
|
|
23049
23237
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0;
|
|
23050
23238
|
return /* @__PURE__ */ h("section", {
|
|
23051
23239
|
ref: u,
|
|
@@ -23108,14 +23296,14 @@ var ac = {
|
|
|
23108
23296
|
children: e.steps.map((e) => /* @__PURE__ */ h("li", {
|
|
23109
23297
|
className: `select-setupguide__step is-${e.status}`,
|
|
23110
23298
|
children: [
|
|
23111
|
-
/* @__PURE__ */ m(
|
|
23299
|
+
/* @__PURE__ */ m(uc, { status: e.status }),
|
|
23112
23300
|
/* @__PURE__ */ h("span", {
|
|
23113
23301
|
className: "select-setupguide__text",
|
|
23114
23302
|
children: [/* @__PURE__ */ h("span", {
|
|
23115
23303
|
className: "select-setupguide__steptitle",
|
|
23116
23304
|
children: [e.title, /* @__PURE__ */ h("span", {
|
|
23117
23305
|
className: "select-setupguide__sr",
|
|
23118
|
-
children: [" — ",
|
|
23306
|
+
children: [" — ", dc[e.status]]
|
|
23119
23307
|
})]
|
|
23120
23308
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
23121
23309
|
className: "select-setupguide__stepdesc",
|
|
@@ -23134,7 +23322,7 @@ var ac = {
|
|
|
23134
23322
|
})]
|
|
23135
23323
|
});
|
|
23136
23324
|
});
|
|
23137
|
-
function
|
|
23325
|
+
function pc({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
23138
23326
|
return /* @__PURE__ */ h("div", {
|
|
23139
23327
|
className: "select-setupnext",
|
|
23140
23328
|
children: [
|
|
@@ -23159,37 +23347,37 @@ function sc({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
23159
23347
|
}
|
|
23160
23348
|
//#endregion
|
|
23161
23349
|
//#region src/SelectTour.tsx
|
|
23162
|
-
var
|
|
23163
|
-
function
|
|
23350
|
+
var mc = 6, hc = 12;
|
|
23351
|
+
function gc(e) {
|
|
23164
23352
|
let t = document.querySelector(e);
|
|
23165
23353
|
if (!t) return null;
|
|
23166
23354
|
let n = t.getBoundingClientRect();
|
|
23167
23355
|
return n.width === 0 && n.height === 0 ? null : {
|
|
23168
|
-
top: n.top -
|
|
23169
|
-
left: n.left -
|
|
23356
|
+
top: n.top - mc,
|
|
23357
|
+
left: n.left - mc,
|
|
23170
23358
|
width: n.width + 12,
|
|
23171
23359
|
height: n.height + 12
|
|
23172
23360
|
};
|
|
23173
23361
|
}
|
|
23174
|
-
function
|
|
23362
|
+
function _c(e) {
|
|
23175
23363
|
let t = document.querySelector(e);
|
|
23176
23364
|
if (!t) return !1;
|
|
23177
23365
|
let n = t.getBoundingClientRect();
|
|
23178
23366
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
23179
23367
|
}
|
|
23180
|
-
function
|
|
23181
|
-
let s = l(() => e ? t.filter((e) =>
|
|
23368
|
+
function vc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
23369
|
+
let s = l(() => e ? t.filter((e) => _c(e.target)) : [], [e]), [f, p] = d(0), [_, v] = d(null), [y, b] = d(null), x = u(null), S = u(null);
|
|
23182
23370
|
o(() => {
|
|
23183
23371
|
e && p(0);
|
|
23184
23372
|
}, [e]);
|
|
23185
23373
|
let C = s[f], w = f === s.length - 1, T = i(() => {
|
|
23186
23374
|
if (!C) return;
|
|
23187
|
-
let e =
|
|
23375
|
+
let e = gc(C.target);
|
|
23188
23376
|
v(e);
|
|
23189
23377
|
let t = x.current;
|
|
23190
23378
|
if (!e || !t) return;
|
|
23191
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
23192
|
-
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height +
|
|
23379
|
+
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + hc, s = e.top;
|
|
23380
|
+
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + hc, s + r > a - 8 && (s = e.top - r - hc)), s = Math.min(Math.max(8, s), a - r - 8), b({
|
|
23193
23381
|
top: s,
|
|
23194
23382
|
left: o
|
|
23195
23383
|
});
|
|
@@ -23291,7 +23479,7 @@ function fc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
23291
23479
|
}
|
|
23292
23480
|
//#endregion
|
|
23293
23481
|
//#region src/SelectPlanCard.tsx
|
|
23294
|
-
var
|
|
23482
|
+
var yc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summary: i, cta: a, featuresTitle: o, features: s, featured: c = !1, className: l, ...u }, d) {
|
|
23295
23483
|
return /* @__PURE__ */ h("div", {
|
|
23296
23484
|
ref: d,
|
|
23297
23485
|
...u,
|
|
@@ -23346,7 +23534,7 @@ var pc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
23346
23534
|
})]
|
|
23347
23535
|
})]
|
|
23348
23536
|
});
|
|
23349
|
-
}),
|
|
23537
|
+
}), bc = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, className: a, ...o }, s) {
|
|
23350
23538
|
return /* @__PURE__ */ h("div", {
|
|
23351
23539
|
ref: s,
|
|
23352
23540
|
...o,
|
|
@@ -23382,7 +23570,7 @@ var pc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
23382
23570
|
]
|
|
23383
23571
|
});
|
|
23384
23572
|
});
|
|
23385
|
-
function
|
|
23573
|
+
function xc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClick: a }) {
|
|
23386
23574
|
let o = /* @__PURE__ */ h(p, { children: [
|
|
23387
23575
|
e && /* @__PURE__ */ m("span", {
|
|
23388
23576
|
className: "select-listrow__media",
|
|
@@ -23416,7 +23604,7 @@ function hc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClic
|
|
|
23416
23604
|
}
|
|
23417
23605
|
//#endregion
|
|
23418
23606
|
//#region src/SelectThumbnail.tsx
|
|
23419
|
-
var
|
|
23607
|
+
var Sc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a) {
|
|
23420
23608
|
let [s, c] = d(!1);
|
|
23421
23609
|
return o(() => c(!1), [e]), /* @__PURE__ */ m("span", {
|
|
23422
23610
|
ref: a,
|
|
@@ -23441,8 +23629,8 @@ var gc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a
|
|
|
23441
23629
|
});
|
|
23442
23630
|
//#endregion
|
|
23443
23631
|
//#region src/SelectImageZoomModal.tsx
|
|
23444
|
-
function
|
|
23445
|
-
return /* @__PURE__ */ m(
|
|
23632
|
+
function Cc({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
23633
|
+
return /* @__PURE__ */ m(ia, {
|
|
23446
23634
|
open: e,
|
|
23447
23635
|
onClose: t,
|
|
23448
23636
|
title: i,
|
|
@@ -23460,7 +23648,7 @@ function _c({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
23460
23648
|
}
|
|
23461
23649
|
//#endregion
|
|
23462
23650
|
//#region src/SelectZoomThumbnail.tsx
|
|
23463
|
-
function
|
|
23651
|
+
function wc({ src: e, alt: t = "", size: n = 40, title: r }) {
|
|
23464
23652
|
let [i, a] = d(!1);
|
|
23465
23653
|
return e ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
23466
23654
|
type: "button",
|
|
@@ -23473,25 +23661,25 @@ function vc({ src: e, alt: t = "", size: n = 40, title: r }) {
|
|
|
23473
23661
|
cursor: "zoom-in",
|
|
23474
23662
|
display: "inline-flex"
|
|
23475
23663
|
},
|
|
23476
|
-
children: /* @__PURE__ */ m(
|
|
23664
|
+
children: /* @__PURE__ */ m(Sc, {
|
|
23477
23665
|
src: e,
|
|
23478
23666
|
size: n,
|
|
23479
23667
|
alt: t
|
|
23480
23668
|
})
|
|
23481
|
-
}), i && /* @__PURE__ */ m(
|
|
23669
|
+
}), i && /* @__PURE__ */ m(Cc, {
|
|
23482
23670
|
open: !0,
|
|
23483
23671
|
onClose: () => a(!1),
|
|
23484
23672
|
src: e,
|
|
23485
23673
|
alt: t,
|
|
23486
23674
|
title: r ?? t
|
|
23487
|
-
})] }) : /* @__PURE__ */ m(
|
|
23675
|
+
})] }) : /* @__PURE__ */ m(Sc, {
|
|
23488
23676
|
size: n,
|
|
23489
23677
|
alt: t
|
|
23490
23678
|
});
|
|
23491
23679
|
}
|
|
23492
23680
|
//#endregion
|
|
23493
23681
|
//#region src/SelectMediaCell.tsx
|
|
23494
|
-
var
|
|
23682
|
+
var Tc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
23495
23683
|
return /* @__PURE__ */ h("span", {
|
|
23496
23684
|
ref: a,
|
|
23497
23685
|
...i,
|
|
@@ -23513,14 +23701,14 @@ var yc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
23513
23701
|
});
|
|
23514
23702
|
//#endregion
|
|
23515
23703
|
//#region src/SelectOfflineModal.tsx
|
|
23516
|
-
function
|
|
23704
|
+
function Ec() {
|
|
23517
23705
|
let [e, t] = d(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
23518
23706
|
return o(() => {
|
|
23519
23707
|
let e = () => t(!1), n = () => t(!0);
|
|
23520
23708
|
return window.addEventListener("online", e), window.addEventListener("offline", n), () => {
|
|
23521
23709
|
window.removeEventListener("online", e), window.removeEventListener("offline", n);
|
|
23522
23710
|
};
|
|
23523
|
-
}, []), /* @__PURE__ */ m(
|
|
23711
|
+
}, []), /* @__PURE__ */ m(ia, {
|
|
23524
23712
|
open: e,
|
|
23525
23713
|
onClose: () => {},
|
|
23526
23714
|
showClose: !1,
|
|
@@ -23536,7 +23724,7 @@ function bc() {
|
|
|
23536
23724
|
}
|
|
23537
23725
|
//#endregion
|
|
23538
23726
|
//#region src/SelectKeyValueEditor.tsx
|
|
23539
|
-
function
|
|
23727
|
+
function Dc(e) {
|
|
23540
23728
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
23541
23729
|
name: String(e.name ?? e.key ?? ""),
|
|
23542
23730
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -23545,8 +23733,8 @@ function xc(e) {
|
|
|
23545
23733
|
value: t == null ? "" : String(t)
|
|
23546
23734
|
})) : [];
|
|
23547
23735
|
}
|
|
23548
|
-
var
|
|
23549
|
-
let d =
|
|
23736
|
+
var Oc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valuePlaceholder: r = "Valor", keyOptions: i, addLabel: a = "Adicionar", max: o, helpText: s = "Linhas vazias serão ignoradas.", className: c, ...l }, u) {
|
|
23737
|
+
let d = Dc(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
23550
23738
|
...t,
|
|
23551
23739
|
...n
|
|
23552
23740
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), g = () => t([...d, {
|
|
@@ -23610,7 +23798,7 @@ var Sc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23610
23798
|
})
|
|
23611
23799
|
]
|
|
23612
23800
|
});
|
|
23613
|
-
}),
|
|
23801
|
+
}), kc = (e) => String(e).padStart(2, "0"), Ac = {
|
|
23614
23802
|
"en-US": {
|
|
23615
23803
|
weekdays: [
|
|
23616
23804
|
"Su",
|
|
@@ -23669,34 +23857,34 @@ var Sc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23669
23857
|
to: "Até",
|
|
23670
23858
|
cancel: "Cancelar",
|
|
23671
23859
|
apply: "Aplicar",
|
|
23672
|
-
formatDate: (e) => `${
|
|
23860
|
+
formatDate: (e) => `${kc(e.getDate())} / ${kc(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
23673
23861
|
}
|
|
23674
|
-
},
|
|
23862
|
+
}, jc = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Mc = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Nc = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Pc = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Fc = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Ic = (e) => {
|
|
23675
23863
|
let t = /* @__PURE__ */ new Date();
|
|
23676
23864
|
return {
|
|
23677
23865
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
23678
23866
|
to: t
|
|
23679
23867
|
};
|
|
23680
|
-
},
|
|
23868
|
+
}, Lc = [
|
|
23681
23869
|
{
|
|
23682
23870
|
id: "15m",
|
|
23683
23871
|
label: "Last 15 minutes",
|
|
23684
|
-
range: () =>
|
|
23872
|
+
range: () => Ic(15)
|
|
23685
23873
|
},
|
|
23686
23874
|
{
|
|
23687
23875
|
id: "1h",
|
|
23688
23876
|
label: "Last 1 hour",
|
|
23689
|
-
range: () =>
|
|
23877
|
+
range: () => Ic(60)
|
|
23690
23878
|
},
|
|
23691
23879
|
{
|
|
23692
23880
|
id: "3h",
|
|
23693
23881
|
label: "Last 3 hours",
|
|
23694
|
-
range: () =>
|
|
23882
|
+
range: () => Ic(180)
|
|
23695
23883
|
},
|
|
23696
23884
|
{
|
|
23697
23885
|
id: "24h",
|
|
23698
23886
|
label: "Last 24 hours",
|
|
23699
|
-
range: () =>
|
|
23887
|
+
range: () => Ic(1440)
|
|
23700
23888
|
},
|
|
23701
23889
|
{
|
|
23702
23890
|
id: "3d",
|
|
@@ -23712,78 +23900,78 @@ var Sc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23712
23900
|
id: "all",
|
|
23713
23901
|
label: "All",
|
|
23714
23902
|
range: () => ({
|
|
23715
|
-
from:
|
|
23716
|
-
to:
|
|
23903
|
+
from: jc(/* @__PURE__ */ new Date()),
|
|
23904
|
+
to: jc(/* @__PURE__ */ new Date())
|
|
23717
23905
|
})
|
|
23718
23906
|
}
|
|
23719
|
-
],
|
|
23720
|
-
let t =
|
|
23907
|
+
], Rc = (e) => {
|
|
23908
|
+
let t = jc(/* @__PURE__ */ new Date());
|
|
23721
23909
|
return {
|
|
23722
|
-
from:
|
|
23910
|
+
from: Nc(t, -e),
|
|
23723
23911
|
to: t
|
|
23724
23912
|
};
|
|
23725
|
-
},
|
|
23726
|
-
let t =
|
|
23913
|
+
}, zc = (e) => {
|
|
23914
|
+
let t = Nc(jc(/* @__PURE__ */ new Date()), -e);
|
|
23727
23915
|
return {
|
|
23728
23916
|
from: t,
|
|
23729
23917
|
to: t
|
|
23730
23918
|
};
|
|
23731
|
-
},
|
|
23919
|
+
}, Bc = [
|
|
23732
23920
|
{
|
|
23733
23921
|
id: "today",
|
|
23734
23922
|
label: "Hoje",
|
|
23735
|
-
range: () =>
|
|
23923
|
+
range: () => Rc(0)
|
|
23736
23924
|
},
|
|
23737
23925
|
{
|
|
23738
23926
|
id: "yesterday",
|
|
23739
23927
|
label: "Ontem",
|
|
23740
|
-
range: () =>
|
|
23928
|
+
range: () => zc(1)
|
|
23741
23929
|
},
|
|
23742
23930
|
{
|
|
23743
23931
|
id: "7d",
|
|
23744
23932
|
label: "Últimos 7 dias",
|
|
23745
|
-
range: () =>
|
|
23933
|
+
range: () => Rc(6)
|
|
23746
23934
|
},
|
|
23747
23935
|
{
|
|
23748
23936
|
id: "10d",
|
|
23749
23937
|
label: "Últimos 10 dias",
|
|
23750
|
-
range: () =>
|
|
23938
|
+
range: () => Rc(9)
|
|
23751
23939
|
},
|
|
23752
23940
|
{
|
|
23753
23941
|
id: "15d",
|
|
23754
23942
|
label: "Últimos 15 dias",
|
|
23755
|
-
range: () =>
|
|
23943
|
+
range: () => Rc(14)
|
|
23756
23944
|
},
|
|
23757
23945
|
{
|
|
23758
23946
|
id: "20d",
|
|
23759
23947
|
label: "Últimos 20 dias",
|
|
23760
|
-
range: () =>
|
|
23948
|
+
range: () => Rc(19)
|
|
23761
23949
|
},
|
|
23762
23950
|
{
|
|
23763
23951
|
id: "30d",
|
|
23764
23952
|
label: "Últimos 30 dias",
|
|
23765
|
-
range: () =>
|
|
23953
|
+
range: () => Rc(29)
|
|
23766
23954
|
},
|
|
23767
23955
|
{
|
|
23768
23956
|
id: "90d",
|
|
23769
23957
|
label: "Últimos 90 dias",
|
|
23770
|
-
range: () =>
|
|
23958
|
+
range: () => Rc(89)
|
|
23771
23959
|
}
|
|
23772
23960
|
];
|
|
23773
|
-
function
|
|
23961
|
+
function Vc(e) {
|
|
23774
23962
|
if (!e) return "—";
|
|
23775
23963
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
23776
23964
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
23777
23965
|
}
|
|
23778
|
-
var
|
|
23779
|
-
let p =
|
|
23966
|
+
var Hc = r(function({ value: e, presets: t = Lc, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, f) {
|
|
23967
|
+
let p = Ac[a], g = jc(/* @__PURE__ */ new Date()), _ = s ? jc(s) : null, [v, y] = d(e ?? {
|
|
23780
23968
|
from: g,
|
|
23781
23969
|
to: g
|
|
23782
|
-
}), [b, x] = d(
|
|
23970
|
+
}), [b, x] = d(Mc((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = d(null), w = Nc(Mc(b), -Mc(b).getDay()), T = Array.from({ length: 42 }, (e, t) => Nc(w, t)), E = (e) => _ ? jc(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ m("span", {
|
|
23783
23971
|
className: "select-datepicker__placeholder",
|
|
23784
23972
|
children: "— / — / ——"
|
|
23785
23973
|
}), O = (e) => {
|
|
23786
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
23974
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < jc(t.from) ? {
|
|
23787
23975
|
from: e,
|
|
23788
23976
|
to: null
|
|
23789
23977
|
} : {
|
|
@@ -23793,7 +23981,7 @@ var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accent
|
|
|
23793
23981
|
}, k = (e) => {
|
|
23794
23982
|
if (e.disabled || !e.range) return;
|
|
23795
23983
|
let t = e.range();
|
|
23796
|
-
y(t), C(e.id), t.from && x(
|
|
23984
|
+
y(t), C(e.id), t.from && x(Mc(t.from));
|
|
23797
23985
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
23798
23986
|
return /* @__PURE__ */ m("div", {
|
|
23799
23987
|
ref: f,
|
|
@@ -23839,7 +24027,7 @@ var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accent
|
|
|
23839
24027
|
}),
|
|
23840
24028
|
o && /* @__PURE__ */ m("span", {
|
|
23841
24029
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
23842
|
-
children:
|
|
24030
|
+
children: Vc(v[e])
|
|
23843
24031
|
})
|
|
23844
24032
|
]
|
|
23845
24033
|
}, e))
|
|
@@ -23851,8 +24039,8 @@ var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accent
|
|
|
23851
24039
|
type: "button",
|
|
23852
24040
|
className: "select-datepicker__nav",
|
|
23853
24041
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
23854
|
-
onClick: () => x((e) =>
|
|
23855
|
-
children: /* @__PURE__ */ m(
|
|
24042
|
+
onClick: () => x((e) => Pc(e, -1)),
|
|
24043
|
+
children: /* @__PURE__ */ m(H, {})
|
|
23856
24044
|
}),
|
|
23857
24045
|
/* @__PURE__ */ h("span", {
|
|
23858
24046
|
className: "select-datepicker__monthlabel",
|
|
@@ -23866,8 +24054,8 @@ var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accent
|
|
|
23866
24054
|
type: "button",
|
|
23867
24055
|
className: "select-datepicker__nav",
|
|
23868
24056
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
23869
|
-
onClick: () => x((e) =>
|
|
23870
|
-
children: /* @__PURE__ */ m(
|
|
24057
|
+
onClick: () => x((e) => Pc(e, 1)),
|
|
24058
|
+
children: /* @__PURE__ */ m(oe, {})
|
|
23871
24059
|
})
|
|
23872
24060
|
]
|
|
23873
24061
|
}),
|
|
@@ -23878,7 +24066,7 @@ var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accent
|
|
|
23878
24066
|
className: "select-datepicker__weekday",
|
|
23879
24067
|
children: e
|
|
23880
24068
|
}, t)), T.map((e) => {
|
|
23881
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
24069
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && Fc(e, v.from), i = !!v.to && Fc(e, v.to), a = r || i, o = !!v.from && !!v.to && !Fc(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > jc(v.from) && e < jc(v.to) ? " select-datepicker__day--in-range" : "") + (o && r ? " select-datepicker__day--range-start" : "") + (o && i ? " select-datepicker__day--range-end" : ""), c = "select-datepicker__daybtn" + (a ? " is-selected" : "") + (Fc(e, g) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
23882
24070
|
return /* @__PURE__ */ m("div", {
|
|
23883
24071
|
className: s,
|
|
23884
24072
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -23909,17 +24097,17 @@ var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accent
|
|
|
23909
24097
|
})]
|
|
23910
24098
|
})
|
|
23911
24099
|
});
|
|
23912
|
-
}),
|
|
23913
|
-
function
|
|
24100
|
+
}), Uc = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Wc = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Gc = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
24101
|
+
function Kc(e, t) {
|
|
23914
24102
|
for (let r of t) {
|
|
23915
24103
|
var n;
|
|
23916
24104
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
23917
|
-
if (t != null && t.from && t != null && t.to &&
|
|
24105
|
+
if (t != null && t.from && t != null && t.to && Wc(t.from, e.start) && Wc(t.to, e.end)) return r.label;
|
|
23918
24106
|
}
|
|
23919
|
-
return
|
|
24107
|
+
return Wc(e.start, e.end) ? Gc(e.start) : `${Gc(e.start)} – ${Gc(e.end)}`;
|
|
23920
24108
|
}
|
|
23921
|
-
function
|
|
23922
|
-
let [c, l] = d(!1), u = r === null ? null : r ??
|
|
24109
|
+
function qc({ value: e, onChange: t, presets: n = Bc, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
24110
|
+
let [c, l] = d(!1), u = r === null ? null : r ?? Uc(/* @__PURE__ */ new Date());
|
|
23923
24111
|
return /* @__PURE__ */ m(on, {
|
|
23924
24112
|
active: c,
|
|
23925
24113
|
onClose: () => l(!1),
|
|
@@ -23931,11 +24119,11 @@ function Vc({ value: e, onChange: t, presets: n = Pc, maxDate: r, placement: i =
|
|
|
23931
24119
|
inline: !s,
|
|
23932
24120
|
disabled: o,
|
|
23933
24121
|
icon: /* @__PURE__ */ m(rt, {}),
|
|
23934
|
-
trailingIcon: /* @__PURE__ */ m(
|
|
24122
|
+
trailingIcon: /* @__PURE__ */ m(U, {}),
|
|
23935
24123
|
onClick: () => l((e) => !e),
|
|
23936
|
-
children:
|
|
24124
|
+
children: Kc(e, n)
|
|
23937
24125
|
}),
|
|
23938
|
-
children: /* @__PURE__ */ m(
|
|
24126
|
+
children: /* @__PURE__ */ m(Hc, {
|
|
23939
24127
|
embedded: !0,
|
|
23940
24128
|
locale: "pt-BR",
|
|
23941
24129
|
showTime: !1,
|
|
@@ -23948,8 +24136,8 @@ function Vc({ value: e, onChange: t, presets: n = Pc, maxDate: r, placement: i =
|
|
|
23948
24136
|
onCancel: () => l(!1),
|
|
23949
24137
|
onApply: (e) => {
|
|
23950
24138
|
e.from && t({
|
|
23951
|
-
start:
|
|
23952
|
-
end:
|
|
24139
|
+
start: Uc(e.from),
|
|
24140
|
+
end: Uc(e.to ?? e.from)
|
|
23953
24141
|
}), l(!1);
|
|
23954
24142
|
}
|
|
23955
24143
|
})
|
|
@@ -23957,7 +24145,7 @@ function Vc({ value: e, onChange: t, presets: n = Pc, maxDate: r, placement: i =
|
|
|
23957
24145
|
}
|
|
23958
24146
|
//#endregion
|
|
23959
24147
|
//#region src/SelectNumberField.tsx
|
|
23960
|
-
var
|
|
24148
|
+
var Jc = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a = 1, decimal: o = !1, disabled: c = !1, hint: l, error: u, onBlur: f, placeholder: p, size: g = "md", className: _, ...v }, y) {
|
|
23961
24149
|
let b = s(), x = (e) => Math.min(i ?? Infinity, Math.max(r ?? -Infinity, e)), S = (e) => Math.round(e * 1e6) / 1e6, C = t ?? 0, w = r != null && C <= r, T = i != null && C >= i, [E, D] = d(!1), [O, k] = d(""), A = o && E ? O : t == null ? "" : String(t), j = (e) => {
|
|
23962
24150
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
23963
24151
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -24031,7 +24219,7 @@ var Hc = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
24031
24219
|
});
|
|
24032
24220
|
//#endregion
|
|
24033
24221
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
24034
|
-
function
|
|
24222
|
+
function Yc({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Adicionar", rowLabel: a, min: o = 0, max: s, addDisabled: c = !1, reorderable: l = !1, chrome: u = "card", emptyState: d, helpText: f }) {
|
|
24035
24223
|
let g = !c && (s == null || e.length < s), _ = e.length > o, v = (n, r) => t(e.map((e, t) => t === n ? r : e)), y = (n) => t(e.filter((e, t) => t !== n)), b = (n, r) => {
|
|
24036
24224
|
let i = n + r;
|
|
24037
24225
|
if (i < 0 || i >= e.length) return;
|
|
@@ -24086,7 +24274,7 @@ function Uc({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
24086
24274
|
onClick: r.moveUp
|
|
24087
24275
|
}), /* @__PURE__ */ m(J, {
|
|
24088
24276
|
size: "sm",
|
|
24089
|
-
icon: /* @__PURE__ */ m(
|
|
24277
|
+
icon: /* @__PURE__ */ m(U, {}),
|
|
24090
24278
|
label: "Mover para baixo",
|
|
24091
24279
|
disabled: r.isLast,
|
|
24092
24280
|
onClick: r.moveDown
|
|
@@ -24126,7 +24314,7 @@ function Uc({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
24126
24314
|
}
|
|
24127
24315
|
//#endregion
|
|
24128
24316
|
//#region src/SelectBuilderLayout.tsx
|
|
24129
|
-
function
|
|
24317
|
+
function Xc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveLabel: a = "Salvar", saveDisabled: o = !1, cancelTo: s, error: c, preview: l, children: u }) {
|
|
24130
24318
|
let d = v();
|
|
24131
24319
|
return /* @__PURE__ */ m(ri, {
|
|
24132
24320
|
title: e,
|
|
@@ -24166,7 +24354,7 @@ function Wc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24166
24354
|
}
|
|
24167
24355
|
//#endregion
|
|
24168
24356
|
//#region src/SelectBuilderWorkspace.tsx
|
|
24169
|
-
function
|
|
24357
|
+
function Zc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveLabel: a = "Salvar", saveDisabled: o = !1, cancelTo: s, error: c, sections: u, activeId: f, onActiveChange: g, searchable: _ = !1, preview: y, previewLayout: b = "fill", toolbar: x, dirty: S = !1, dirtyLabel: C = "Alterações não salvas" }) {
|
|
24170
24358
|
var w;
|
|
24171
24359
|
let T = v(), [E, D] = d(((w = u[0]) == null ? void 0 : w.id) ?? ""), [O, k] = d(""), A = f ?? E, j = u.find((e) => e.id === A) ?? u[0], M = (e) => {
|
|
24172
24360
|
f === void 0 && D(e), g == null || g(e);
|
|
@@ -24192,7 +24380,7 @@ function Gc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24192
24380
|
className: "select-page__back",
|
|
24193
24381
|
onClick: () => T(n || -1),
|
|
24194
24382
|
"aria-label": "Voltar",
|
|
24195
|
-
children: /* @__PURE__ */ m(
|
|
24383
|
+
children: /* @__PURE__ */ m(W, {})
|
|
24196
24384
|
}),
|
|
24197
24385
|
/* @__PURE__ */ h("div", {
|
|
24198
24386
|
className: "select-bwork__ident",
|
|
@@ -24251,7 +24439,7 @@ function Gc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24251
24439
|
"aria-label": "Seções de configuração",
|
|
24252
24440
|
children: [_ && /* @__PURE__ */ m("div", {
|
|
24253
24441
|
className: "select-bwork__search",
|
|
24254
|
-
children: /* @__PURE__ */ m(
|
|
24442
|
+
children: /* @__PURE__ */ m(Ti, {
|
|
24255
24443
|
value: O,
|
|
24256
24444
|
onChange: k,
|
|
24257
24445
|
placeholder: "Buscar ajuste…"
|
|
@@ -24326,10 +24514,10 @@ function Gc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24326
24514
|
}
|
|
24327
24515
|
//#endregion
|
|
24328
24516
|
//#region src/SelectFlowCanvas.tsx
|
|
24329
|
-
var
|
|
24330
|
-
function
|
|
24517
|
+
var Qc = (e) => Math.round(e * 100) / 100;
|
|
24518
|
+
function $c({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], children: a, zoom: o, defaultZoom: c = 1, onZoomChange: l, minZoom: u = .5, maxZoom: f = 1.3, onBackgroundClick: p, ariaLabel: g }) {
|
|
24331
24519
|
let _ = s().replace(/:/g, ""), [v, y] = d(c), b = o ?? v, x = (e) => {
|
|
24332
|
-
let t =
|
|
24520
|
+
let t = Qc(Math.min(f, Math.max(u, e)));
|
|
24333
24521
|
o === void 0 && y(t), l == null || l(t);
|
|
24334
24522
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
24335
24523
|
return /* @__PURE__ */ h("div", {
|
|
@@ -24445,7 +24633,7 @@ function qc({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
24445
24633
|
})]
|
|
24446
24634
|
});
|
|
24447
24635
|
}
|
|
24448
|
-
function
|
|
24636
|
+
function el({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neutral", icon: o, order: s, eyebrow: c, title: l, subtitle: u, tags: d, titleTone: f = "default", selected: p = !1, active: g = !1, muted: _ = !1, invalid: v = !1, onClick: y, ariaLabel: b }) {
|
|
24449
24637
|
let x = `${p ? " is-selected" : v ? " is-invalid" : g ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
24450
24638
|
left: e,
|
|
24451
24639
|
top: t,
|
|
@@ -24521,7 +24709,7 @@ function Jc({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
24521
24709
|
})]
|
|
24522
24710
|
});
|
|
24523
24711
|
}
|
|
24524
|
-
function
|
|
24712
|
+
function tl({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
|
|
24525
24713
|
return /* @__PURE__ */ h("div", {
|
|
24526
24714
|
className: "select-flowpage",
|
|
24527
24715
|
children: [
|
|
@@ -24529,7 +24717,7 @@ function Yc({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
24529
24717
|
className: "select-flowpage__bar",
|
|
24530
24718
|
children: [
|
|
24531
24719
|
n && /* @__PURE__ */ m(J, {
|
|
24532
|
-
icon: /* @__PURE__ */ m(
|
|
24720
|
+
icon: /* @__PURE__ */ m(W, {}),
|
|
24533
24721
|
label: r,
|
|
24534
24722
|
variant: "outline",
|
|
24535
24723
|
onClick: n
|
|
@@ -24583,7 +24771,7 @@ function Yc({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
24583
24771
|
}
|
|
24584
24772
|
//#endregion
|
|
24585
24773
|
//#region src/SelectSwitchField.tsx
|
|
24586
|
-
var
|
|
24774
|
+
var nl = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
24587
24775
|
return /* @__PURE__ */ h("div", {
|
|
24588
24776
|
ref: c,
|
|
24589
24777
|
...s,
|
|
@@ -24611,8 +24799,8 @@ var Xc = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
24611
24799
|
children: i
|
|
24612
24800
|
})]
|
|
24613
24801
|
});
|
|
24614
|
-
}),
|
|
24615
|
-
function
|
|
24802
|
+
}), rl = (e) => /^#[0-9a-fA-F]{6}$/.test(e);
|
|
24803
|
+
function il({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error: a }) {
|
|
24616
24804
|
return /* @__PURE__ */ m(Tt, {
|
|
24617
24805
|
label: e,
|
|
24618
24806
|
value: t,
|
|
@@ -24630,7 +24818,7 @@ function Qc({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error:
|
|
|
24630
24818
|
prefix: /* @__PURE__ */ m("input", {
|
|
24631
24819
|
type: "color",
|
|
24632
24820
|
className: "select-color-swatch",
|
|
24633
|
-
value:
|
|
24821
|
+
value: rl(t) ? t : "#000000",
|
|
24634
24822
|
onChange: (e) => n(e.target.value),
|
|
24635
24823
|
disabled: r,
|
|
24636
24824
|
"aria-label": e ? `${e} — escolher cor` : "Escolher cor"
|
|
@@ -24639,13 +24827,13 @@ function Qc({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error:
|
|
|
24639
24827
|
}
|
|
24640
24828
|
//#endregion
|
|
24641
24829
|
//#region src/SelectImageField.tsx
|
|
24642
|
-
function
|
|
24830
|
+
function al(e) {
|
|
24643
24831
|
return new Promise((t, n) => {
|
|
24644
24832
|
let r = new FileReader();
|
|
24645
24833
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
24646
24834
|
});
|
|
24647
24835
|
}
|
|
24648
|
-
var
|
|
24836
|
+
var ol = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
|
|
24649
24837
|
let [f, p] = d([]), [g, _] = d(null), v = t ? [t] : [], y = async (e) => {
|
|
24650
24838
|
let t = e[0];
|
|
24651
24839
|
if (!t) {
|
|
@@ -24653,7 +24841,7 @@ var el = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24653
24841
|
return;
|
|
24654
24842
|
}
|
|
24655
24843
|
if (_(null), !s) {
|
|
24656
|
-
n(await
|
|
24844
|
+
n(await al(t)), p([]);
|
|
24657
24845
|
return;
|
|
24658
24846
|
}
|
|
24659
24847
|
p([t]);
|
|
@@ -24685,7 +24873,7 @@ var el = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24685
24873
|
children: g
|
|
24686
24874
|
})]
|
|
24687
24875
|
});
|
|
24688
|
-
}),
|
|
24876
|
+
}), sl = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
24689
24877
|
let [o, s] = d(() => new Set(n)), c = (e) => s((n) => {
|
|
24690
24878
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
24691
24879
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -24711,7 +24899,7 @@ var el = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24711
24899
|
}), /* @__PURE__ */ m("span", {
|
|
24712
24900
|
className: `select-accordion__chevron${t ? " is-open" : ""}`,
|
|
24713
24901
|
"aria-hidden": "true",
|
|
24714
|
-
children: /* @__PURE__ */ m(
|
|
24902
|
+
children: /* @__PURE__ */ m(U, {})
|
|
24715
24903
|
})]
|
|
24716
24904
|
}), /* @__PURE__ */ m("div", {
|
|
24717
24905
|
id: `select-acc-${e.id}`,
|
|
@@ -24731,6 +24919,6 @@ var el = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24731
24919
|
});
|
|
24732
24920
|
});
|
|
24733
24921
|
//#endregion
|
|
24734
|
-
export { C as AUTH_FX_VARIANTS, Le as AppleIcon, mt as AppsIcon,
|
|
24922
|
+
export { C as AUTH_FX_VARIANTS, Le as AppleIcon, mt as AppsIcon, W as ArrowLeftIcon, ze as ArrowRightIcon, Ge as AtIcon, Pe as AuthAppIcon, Ce as BellIcon, pe as BookmarkIcon, lt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, gt as CartIcon, ft as ChartLineIcon, We as CheckCircleIcon, Ve as CheckIcon, U as ChevronDownIcon, H as ChevronLeftIcon, oe as ChevronRightIcon, it as ChevronUpIcon, ot as ClipboardIcon, fe as ClockIcon, q as CloseIcon, le as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, ct as DiscountIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, K as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, G as FilterIcon, ae as GithubIcon, _e as GlobeIcon, ie as GoogleIcon, be as HelpIcon, Xe as HomeIcon, ye as InfoIcon, Je as KeyIcon, dt as LinkIcon, nt as LockIcon, Fe as MailIcon, _t as MenuIcon, ht as MinusCircleIcon, Ae as MobileIcon, ke as MonitorIcon, Oe as MoonIcon, st as NoteIcon, Re as PasskeyIcon, Ne as PhoneIcon, me as PinIcon, Me as PlusIcon, je as RefreshIcon, Te as RocketIcon, Yn as SELECT_CARD_BRANDS, ca as SELECT_COL_DATETIME, la as SELECT_COL_ID, On as SELECT_COUNTRIES, Bc as SELECT_DAILY_PRESETS, Lc as SELECT_DATE_PRESETS, Rn as SELECT_SPACE, Pn as SELECT_TRANSACTION_STATUS, se as SearchIcon, sl as SelectAccordion, $i as SelectActionCard, In as SelectActionList, Ln as SelectActionMenu, Kt as SelectAddButton, xa as SelectAddCard, Lt as SelectAlert, ea as SelectAppTile, B as SelectAuthFx, Vr as SelectAvatar, Jr as SelectBackLink, Nn as SelectBadge, Eo as SelectBalanceCard, fn as SelectBankAccountField, Wo as SelectBarChart, Kn as SelectBox, bs as SelectBoxPlot, Xc as SelectBuilderLayout, Zc as SelectBuilderWorkspace, ps as SelectBullet, Gs as SelectBump, V as SelectButton, Ss as SelectCalendarHeatmap, ys as SelectCandlestick, re as SelectCard, Sa as SelectCardGrid, ko as SelectChartCard, Et as SelectCheckbox, js as SelectChord, Qs as SelectCirclePack, Qi as SelectCollapsible, il as SelectColorField, Yo as SelectColumnChart, qo as SelectComboChart, cn as SelectCombobox, oa as SelectConfirmModal, Xi as SelectCopyRow, Zi as SelectCopyableId, ta as SelectCreateTile, ba as SelectDataTable, ao as SelectDateField, Hc as SelectDatePicker, qc as SelectDateRangeField, sc as SelectDetailList, cc as SelectDetailRow, ir as SelectDisclosureButton, Br as SelectDivider, It as SelectDocumentField, Jo as SelectDonut, S as SelectDotField, Ts as SelectDumbbell, Do as SelectFeeBreakdown, Tt as SelectField, ln as SelectFieldGrid, Gt as SelectFileDropzone, Rt as SelectFileTile, uo as SelectFilterBar, Yi as SelectFilterChip, $c as SelectFlowCanvas, tl as SelectFlowLayout, el as SelectFlowNode, oi as SelectFormLayout, sa as SelectFormModal, Xo as SelectFunnel, ts as SelectGauge, Ds as SelectGaugeBands, Bs as SelectGlobe, Un as SelectGrid, ns as SelectHeatmap, Ms as SelectHexbin, Ha as SelectHideMoneyToggle, us as SelectHorizontalBar, Ys as SelectIcicle, pi as SelectIcon, J as SelectIconButton, Wr as SelectIdentityFooter, ol as SelectImageField, Jt as SelectImageUploadField, qt as SelectImageUrlsField, Cc as SelectImageZoomModal, Ct as SelectInfoTip, Hn as SelectInline, Ir as SelectJsonViewer, Oc as SelectKeyValueEditor, Oo as SelectKpiCard, wt as SelectLabelRow, wa as SelectLayoutThumb, Go as SelectLineChart, zr as SelectLinkButton, bc as SelectListCard, xc as SelectListRow, ni as SelectLoader, Es as SelectMarimekko, qa as SelectMarkStack, Tc as SelectMediaCell, Ui as SelectMenu, Ji as SelectMenuButton, qi as SelectMenuDivider, Ki as SelectMenuHeading, Wi as SelectMenuItem, Gi as SelectMenuLink, Va as SelectMetricDelta, ia as SelectModal, za as SelectMoney, Mt as SelectMoneyField, $s as SelectNetwork, mi as SelectNote, Jc as SelectNumberField, Ua as SelectOfferPrice, Ec as SelectOfflineModal, Hr as SelectOptionList, Ur as SelectOptionRow, Gr as SelectOtpInput, ri as SelectPage, Oi as SelectPagination, _i as SelectPanel, Ks as SelectParallel, Hs as SelectPareto, ti as SelectPasswordStrength, rr as SelectPaymentBrand, An as SelectPhoneField, yc as SelectPlanCard, Cs as SelectPolarArea, on as SelectPopover, To as SelectPreviewFrame, rs as SelectProgressList, Ws as SelectPyramid, _s as SelectRadar, as as SelectRadialBar, jn as SelectRadioGroup, xs as SelectRangeBar, Ga as SelectRating, Ka as SelectRatingQuote, Ca as SelectRecordCard, Yc as SelectRepeatingFieldArray, Yr as SelectResendButton, Zr as SelectRetryStatus, aa as SelectRowActions, vs as SelectSankey, gs as SelectScatter, Ti as SelectSearchInput, ec as SelectSearchMenu, nc as SelectSearchMenuOption, vi as SelectSection, Mn as SelectSegmented, Yt as SelectSelect, Ra as SelectSensitiveValue, hi as SelectSettingList, gi as SelectSettingRow, fc as SelectSetupGuide, pc as SelectSetupNext, wi as SelectSideNav, di as SelectSkeleton, ws as SelectSlope, Uo as SelectSparkline, Da as SelectSplitChain, Vn as SelectStack, Ko as SelectStackedArea, Fn as SelectStatusBadge, lc as SelectSteps, Os as SelectStreamGraph, ks as SelectSunburst, po as SelectSurface, pn as SelectSwitch, nl as SelectSwitchField, Li as SelectTable, Vi as SelectTableCell, Hi as SelectTableEmpty, Bi as SelectTableRow, yi as SelectTabs, fo as SelectTagSelect, qn as SelectText, Dt as SelectTextarea, ac as SelectThemeSwitcher, Sc as SelectThumbnail, Vs as SelectTicker, Rr as SelectTimeline, bo as SelectToastProvider, mn as SelectToggleList, gn as SelectTogglePanel, hn as SelectToggleRow, St as SelectTooltip, vc as SelectTour, Xs as SelectTree, hs as SelectTreemap, Ot as SelectUnitInput, zi as SelectUserCell, Ia as SelectValueVisibilityProvider, Zs as SelectVenn, As as SelectViolin, Us as SelectWaffle, ds as SelectWaterfall, Ns as SelectWordCloud, na as SelectWorkspaceSwitcher, wc as SelectZoomThumbnail, ve as SelectorIcon, tt as SendIcon, de as Setting4Icon, Ze as SettingsIcon, Be as ShieldIcon, ge as SplitIcon, he as StarIcon, pt as StoreIcon, vt as StorefrontIcon, De as SunIcon, we as TerminalIcon, Ye as TrashIcon, ut as TruckIcon, ce as UploadIcon, Se as UserIcon, Qe as WalletIcon, xe as WarningIcon, Ke as Web3Icon, rn as detectSelectTheme, kn as dialCodeOf, ei as passwordScore, ic as resolveSelectTheme, Qn as selectCardBrand, $n as selectCardBrandLabel, va as useSelectPageSize, xo as useSelectToast, La as useSelectValueVisibility };
|
|
24735
24923
|
|
|
24736
24924
|
//# sourceMappingURL=index.js.map
|