@selectwin/kit 0.1.102 → 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/index.js +702 -631
- 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,8 +5763,8 @@ 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: s, inlineTools: c, hasIdentity: l, hasTitleRow: u } =
|
|
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,
|
|
@@ -5720,7 +5791,7 @@ function Oi({ title: e, help: t, description: n, action: r, filters: i, tools: a
|
|
|
5720
5791
|
}), /* @__PURE__ */ m("span", {
|
|
5721
5792
|
className: "select-table__chevron",
|
|
5722
5793
|
"aria-hidden": "true",
|
|
5723
|
-
children: /* @__PURE__ */ m(
|
|
5794
|
+
children: /* @__PURE__ */ m(U, {})
|
|
5724
5795
|
})]
|
|
5725
5796
|
}) : l && /* @__PURE__ */ h("div", {
|
|
5726
5797
|
className: "select-table__heading",
|
|
@@ -5746,7 +5817,7 @@ function Oi({ title: e, help: t, description: n, action: r, filters: i, tools: a
|
|
|
5746
5817
|
})]
|
|
5747
5818
|
})] });
|
|
5748
5819
|
}
|
|
5749
|
-
function
|
|
5820
|
+
function ji(e, t, n) {
|
|
5750
5821
|
if (!e || e.length === 0) return [];
|
|
5751
5822
|
let r = [...e].sort((e, t) => e - t);
|
|
5752
5823
|
if (t == null) return r;
|
|
@@ -5755,8 +5826,8 @@ function ki(e, t, n) {
|
|
|
5755
5826
|
for (let e of r) if (i.push(e), e >= t) break;
|
|
5756
5827
|
return n != null && r.includes(n) && !i.includes(n) && (i.push(n), i.sort((e, t) => e - t)), i;
|
|
5757
5828
|
}
|
|
5758
|
-
function
|
|
5759
|
-
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;
|
|
5760
5831
|
return !i && !e.hasPrevious && !e.hasNext ? null : /* @__PURE__ */ h("div", {
|
|
5761
5832
|
className: "select-datatable__pagination",
|
|
5762
5833
|
children: [i && e.onPageSizeChange && /* @__PURE__ */ m("div", {
|
|
@@ -5778,7 +5849,7 @@ function Ai({ pagination: e }) {
|
|
|
5778
5849
|
}), /* @__PURE__ */ m("span", {
|
|
5779
5850
|
className: `select-facet__caret${t ? " is-open" : ""}`,
|
|
5780
5851
|
"aria-hidden": "true",
|
|
5781
|
-
children: /* @__PURE__ */ m(
|
|
5852
|
+
children: /* @__PURE__ */ m(U, {})
|
|
5782
5853
|
})]
|
|
5783
5854
|
}),
|
|
5784
5855
|
children: /* @__PURE__ */ m("div", {
|
|
@@ -5807,7 +5878,7 @@ function Ai({ pagination: e }) {
|
|
|
5807
5878
|
})
|
|
5808
5879
|
})
|
|
5809
5880
|
})
|
|
5810
|
-
}), /* @__PURE__ */ m(
|
|
5881
|
+
}), /* @__PURE__ */ m(Oi, {
|
|
5811
5882
|
page: e.page ?? 1,
|
|
5812
5883
|
pageCount: e.pageCount,
|
|
5813
5884
|
total: e.total,
|
|
@@ -5823,17 +5894,17 @@ function Ai({ pagination: e }) {
|
|
|
5823
5894
|
}
|
|
5824
5895
|
//#endregion
|
|
5825
5896
|
//#region src/SelectTable.tsx
|
|
5826
|
-
var
|
|
5827
|
-
function
|
|
5897
|
+
var Ni = 40, Pi = 1200, Fi = 8;
|
|
5898
|
+
function Ii(e) {
|
|
5828
5899
|
let t = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
5829
5900
|
return `${Math.round(e / t * 1e3) / 1e3}rem`;
|
|
5830
5901
|
}
|
|
5831
|
-
var
|
|
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) {
|
|
5832
5903
|
let [T, E] = d(x), D = s(), O = b && o != null ? {
|
|
5833
5904
|
open: T,
|
|
5834
5905
|
onToggle: () => E((e) => !e),
|
|
5835
5906
|
controls: D
|
|
5836
|
-
} : void 0, k = e.count(n) === 0, A = k && !!r, { hasFilters: j, hasTitleRow: M } =
|
|
5907
|
+
} : void 0, k = e.count(n) === 0, A = k && !!r, { hasFilters: j, hasTitleRow: M } = ki({
|
|
5837
5908
|
title: o,
|
|
5838
5909
|
description: f,
|
|
5839
5910
|
action: p,
|
|
@@ -5867,9 +5938,9 @@ var Fi = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
5867
5938
|
let o = I.current;
|
|
5868
5939
|
o == null || o.classList.add("select-table--resizing");
|
|
5869
5940
|
let s = a, c = (t) => {
|
|
5870
|
-
s = Math.min(
|
|
5941
|
+
s = Math.min(Pi, Math.max(Ni, a + (t.clientX - i))), ee(e, s);
|
|
5871
5942
|
}, l = () => {
|
|
5872
|
-
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"), v(e,
|
|
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));
|
|
5873
5944
|
};
|
|
5874
5945
|
window.addEventListener("pointermove", c), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", l);
|
|
5875
5946
|
}, te = (e) => (t) => {
|
|
@@ -5880,15 +5951,15 @@ var Fi = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
5880
5951
|
let i = (n = t.currentTarget.parentElement) == null ? void 0 : n.getBoundingClientRect();
|
|
5881
5952
|
if (!i) return;
|
|
5882
5953
|
t.preventDefault();
|
|
5883
|
-
let a =
|
|
5884
|
-
ee(e, o), v(e,
|
|
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));
|
|
5885
5956
|
};
|
|
5886
5957
|
return /* @__PURE__ */ h("div", {
|
|
5887
5958
|
ref: L,
|
|
5888
5959
|
...C,
|
|
5889
5960
|
className: `select-table${N ? " select-table--empty" : ""}${O ? ` select-table--collapsible${T ? " is-open" : ""}` : ""}${S ? " " + S : ""}`,
|
|
5890
5961
|
style: { "--select-table-cols": F },
|
|
5891
|
-
children: [/* @__PURE__ */ m(
|
|
5962
|
+
children: [/* @__PURE__ */ m(Ai, {
|
|
5892
5963
|
title: o,
|
|
5893
5964
|
help: O ? void 0 : l,
|
|
5894
5965
|
description: f,
|
|
@@ -5896,12 +5967,12 @@ var Fi = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
5896
5967
|
filters: O ? void 0 : g,
|
|
5897
5968
|
tools: O ? void 0 : _,
|
|
5898
5969
|
toggle: O
|
|
5899
|
-
}), /* @__PURE__ */ h(
|
|
5970
|
+
}), /* @__PURE__ */ h(Ri, {
|
|
5900
5971
|
enabled: !!O,
|
|
5901
5972
|
open: T,
|
|
5902
5973
|
id: D,
|
|
5903
5974
|
children: [
|
|
5904
|
-
O && (g != null || _ != null) ? /* @__PURE__ */ m(
|
|
5975
|
+
O && (g != null || _ != null) ? /* @__PURE__ */ m(Ai, {
|
|
5905
5976
|
filters: g,
|
|
5906
5977
|
tools: _
|
|
5907
5978
|
}) : null,
|
|
@@ -5920,7 +5991,7 @@ var Fi = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
5920
5991
|
type: "button",
|
|
5921
5992
|
className: `select-table__sortbtn${e.sortDir === "asc" ? " select-table__sortbtn--asc" : ""}${e.sortDir == null ? "" : " select-table__sortbtn--active"}`,
|
|
5922
5993
|
onClick: e.onSort,
|
|
5923
|
-
children: [e.label, /* @__PURE__ */ m(
|
|
5994
|
+
children: [e.label, /* @__PURE__ */ m(U, {})]
|
|
5924
5995
|
}) : e.label, v && e.resizable !== !1 && n < t.length - 1 && /* @__PURE__ */ m("span", {
|
|
5925
5996
|
role: "separator",
|
|
5926
5997
|
"aria-orientation": "vertical",
|
|
@@ -5953,7 +6024,7 @@ var Fi = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
5953
6024
|
})]
|
|
5954
6025
|
});
|
|
5955
6026
|
});
|
|
5956
|
-
function
|
|
6027
|
+
function Ri({ enabled: e, open: t, id: n, children: r }) {
|
|
5957
6028
|
return e ? /* @__PURE__ */ m("div", {
|
|
5958
6029
|
className: "select-table__collapse",
|
|
5959
6030
|
id: n,
|
|
@@ -5965,7 +6036,7 @@ function Ii({ enabled: e, open: t, id: n, children: r }) {
|
|
|
5965
6036
|
})
|
|
5966
6037
|
}) : /* @__PURE__ */ m(p, { children: r });
|
|
5967
6038
|
}
|
|
5968
|
-
var
|
|
6039
|
+
var zi = r(function({ name: e, secondary: t, src: n, className: r, ...i }, a) {
|
|
5969
6040
|
return /* @__PURE__ */ h("span", {
|
|
5970
6041
|
ref: a,
|
|
5971
6042
|
...i,
|
|
@@ -5985,7 +6056,7 @@ var Li = r(function({ name: e, secondary: t, src: n, className: r, ...i }, a) {
|
|
|
5985
6056
|
})]
|
|
5986
6057
|
});
|
|
5987
6058
|
});
|
|
5988
|
-
function
|
|
6059
|
+
function Bi({ children: e, onClick: t, expanded: n, nested: r = !1 }) {
|
|
5989
6060
|
let i = `select-table__row${t ? " select-table__row--clickable" : ""}${r ? " select-table__row--nested" : ""}${n ? " is-expanded" : ""}`;
|
|
5990
6061
|
return t ? /* @__PURE__ */ m("button", {
|
|
5991
6062
|
type: "button",
|
|
@@ -5999,7 +6070,7 @@ function Ri({ children: e, onClick: t, expanded: n, nested: r = !1 }) {
|
|
|
5999
6070
|
children: e
|
|
6000
6071
|
});
|
|
6001
6072
|
}
|
|
6002
|
-
var
|
|
6073
|
+
var Vi = r(function({ children: e, align: t = "start", disclosure: n, className: r, ...i }, a) {
|
|
6003
6074
|
return /* @__PURE__ */ h("div", {
|
|
6004
6075
|
ref: a,
|
|
6005
6076
|
...i,
|
|
@@ -6008,10 +6079,10 @@ var zi = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6008
6079
|
children: [n ? /* @__PURE__ */ m("span", {
|
|
6009
6080
|
className: `select-table__disclosure${n === "open" ? " is-open" : ""}`,
|
|
6010
6081
|
"aria-hidden": "true",
|
|
6011
|
-
children: n !== "none" && /* @__PURE__ */ m(
|
|
6082
|
+
children: n !== "none" && /* @__PURE__ */ m(oe, {})
|
|
6012
6083
|
}) : null, e]
|
|
6013
6084
|
});
|
|
6014
|
-
}),
|
|
6085
|
+
}), Hi = r(function({ icon: e, title: t, subtitle: n, action: r, className: i, ...a }, o) {
|
|
6015
6086
|
return /* @__PURE__ */ h("div", {
|
|
6016
6087
|
ref: o,
|
|
6017
6088
|
...a,
|
|
@@ -6035,7 +6106,7 @@ var zi = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6035
6106
|
})
|
|
6036
6107
|
]
|
|
6037
6108
|
});
|
|
6038
|
-
}),
|
|
6109
|
+
}), Ui = r(function({ children: e, className: t, ...n }, r) {
|
|
6039
6110
|
return /* @__PURE__ */ m("div", {
|
|
6040
6111
|
ref: r,
|
|
6041
6112
|
...n,
|
|
@@ -6043,7 +6114,7 @@ var zi = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6043
6114
|
role: "menu",
|
|
6044
6115
|
children: e
|
|
6045
6116
|
});
|
|
6046
|
-
}),
|
|
6117
|
+
}), Wi = r(function({ children: e, icon: t, trailing: n, onClick: r, active: i = !1, tone: a = "default", className: o, ...s }, c) {
|
|
6047
6118
|
return /* @__PURE__ */ h("button", {
|
|
6048
6119
|
ref: c,
|
|
6049
6120
|
...s,
|
|
@@ -6066,8 +6137,8 @@ var zi = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6066
6137
|
})
|
|
6067
6138
|
]
|
|
6068
6139
|
});
|
|
6069
|
-
}),
|
|
6070
|
-
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);
|
|
6071
6142
|
return /* @__PURE__ */ h("a", {
|
|
6072
6143
|
ref: c,
|
|
6073
6144
|
...s,
|
|
@@ -6092,19 +6163,19 @@ var zi = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6092
6163
|
]
|
|
6093
6164
|
});
|
|
6094
6165
|
});
|
|
6095
|
-
function
|
|
6166
|
+
function Ki({ children: e }) {
|
|
6096
6167
|
return /* @__PURE__ */ m("div", {
|
|
6097
6168
|
className: "select-menu__heading",
|
|
6098
6169
|
children: e
|
|
6099
6170
|
});
|
|
6100
6171
|
}
|
|
6101
|
-
function
|
|
6172
|
+
function qi() {
|
|
6102
6173
|
return /* @__PURE__ */ m("div", {
|
|
6103
6174
|
className: "select-menu__divider",
|
|
6104
6175
|
role: "separator"
|
|
6105
6176
|
});
|
|
6106
6177
|
}
|
|
6107
|
-
var
|
|
6178
|
+
var Ji = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
|
|
6108
6179
|
return /* @__PURE__ */ h("button", {
|
|
6109
6180
|
ref: a,
|
|
6110
6181
|
...i,
|
|
@@ -6116,10 +6187,10 @@ var Ki = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6116
6187
|
children: [/* @__PURE__ */ m("span", { children: e }), /* @__PURE__ */ m("span", {
|
|
6117
6188
|
className: "select-menubtn__caret",
|
|
6118
6189
|
"aria-hidden": "true",
|
|
6119
|
-
children: /* @__PURE__ */ m(
|
|
6190
|
+
children: /* @__PURE__ */ m(U, {})
|
|
6120
6191
|
})]
|
|
6121
6192
|
});
|
|
6122
|
-
}),
|
|
6193
|
+
}), Yi = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
|
|
6123
6194
|
return /* @__PURE__ */ h("button", {
|
|
6124
6195
|
ref: a,
|
|
6125
6196
|
...i,
|
|
@@ -6132,7 +6203,7 @@ var Ki = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6132
6203
|
children: /* @__PURE__ */ m(Me, {})
|
|
6133
6204
|
}), e]
|
|
6134
6205
|
});
|
|
6135
|
-
}),
|
|
6206
|
+
}), Xi = r(function({ label: e, value: t, href: n, onCopy: r, className: i, ...a }, o) {
|
|
6136
6207
|
let [s, c] = d(!1), l = qr(n), u = () => {
|
|
6137
6208
|
navigator.clipboard.writeText(t).then(() => {
|
|
6138
6209
|
c(!0), setTimeout(() => c(!1), 1200), r == null || r(t);
|
|
@@ -6159,10 +6230,10 @@ var Ki = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6159
6230
|
rel: "noreferrer",
|
|
6160
6231
|
"aria-label": "Abrir",
|
|
6161
6232
|
title: "Abrir",
|
|
6162
|
-
children: /* @__PURE__ */ m(
|
|
6233
|
+
children: /* @__PURE__ */ m(K, {})
|
|
6163
6234
|
}), /* @__PURE__ */ m(J, {
|
|
6164
6235
|
size: "sm",
|
|
6165
|
-
icon: m(s ? Ve :
|
|
6236
|
+
icon: m(s ? Ve : le, {}),
|
|
6166
6237
|
label: s ? "Copiado" : "Copiar",
|
|
6167
6238
|
onClick: u
|
|
6168
6239
|
})]
|
|
@@ -6172,7 +6243,7 @@ var Ki = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6172
6243
|
});
|
|
6173
6244
|
//#endregion
|
|
6174
6245
|
//#region src/SelectCopyableId.tsx
|
|
6175
|
-
function
|
|
6246
|
+
function Zi({ value: e, children: t, truncate: n, label: r = "Copiar id", fallback: i = "—", to: a, reveal: o = "hover" }) {
|
|
6176
6247
|
let [s, c] = d(!1);
|
|
6177
6248
|
if (!e) return /* @__PURE__ */ m(p, { children: i });
|
|
6178
6249
|
let l = t ?? (n ? e.slice(0, n) : e), u = qr(a);
|
|
@@ -6197,14 +6268,14 @@ function Yi({ value: e, children: t, truncate: n, label: r = "Copiar id", fallba
|
|
|
6197
6268
|
});
|
|
6198
6269
|
},
|
|
6199
6270
|
"aria-label": s ? "Copiado" : r,
|
|
6200
|
-
children: m(s ? Ve :
|
|
6271
|
+
children: m(s ? Ve : le, {})
|
|
6201
6272
|
})
|
|
6202
6273
|
})]
|
|
6203
6274
|
});
|
|
6204
6275
|
}
|
|
6205
6276
|
//#endregion
|
|
6206
6277
|
//#region src/SelectCollapsible.tsx
|
|
6207
|
-
var
|
|
6278
|
+
var Qi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1, className: i, ...a }, o) {
|
|
6208
6279
|
let [s, c] = d(n);
|
|
6209
6280
|
return /* @__PURE__ */ h("div", {
|
|
6210
6281
|
ref: o,
|
|
@@ -6221,7 +6292,7 @@ var Xi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6221
6292
|
}), /* @__PURE__ */ m("span", {
|
|
6222
6293
|
className: "select-collapsible__chevron",
|
|
6223
6294
|
"aria-hidden": "true",
|
|
6224
|
-
children: /* @__PURE__ */ m(
|
|
6295
|
+
children: /* @__PURE__ */ m(U, {})
|
|
6225
6296
|
})]
|
|
6226
6297
|
}), /* @__PURE__ */ m("div", {
|
|
6227
6298
|
className: "select-collapsible__bodywrap",
|
|
@@ -6235,7 +6306,7 @@ var Xi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6235
6306
|
})
|
|
6236
6307
|
})]
|
|
6237
6308
|
});
|
|
6238
|
-
}),
|
|
6309
|
+
}), $i = r(function({ icon: e, title: t, description: n, action: r, onDismiss: i, className: a, ...o }, s) {
|
|
6239
6310
|
return /* @__PURE__ */ h("div", {
|
|
6240
6311
|
ref: s,
|
|
6241
6312
|
...o,
|
|
@@ -6245,7 +6316,7 @@ var Xi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6245
6316
|
className: "select-actioncard__dismiss",
|
|
6246
6317
|
children: /* @__PURE__ */ m(J, {
|
|
6247
6318
|
size: "sm",
|
|
6248
|
-
icon: /* @__PURE__ */ m(
|
|
6319
|
+
icon: /* @__PURE__ */ m(q, {}),
|
|
6249
6320
|
label: "Dispensar",
|
|
6250
6321
|
onClick: i
|
|
6251
6322
|
})
|
|
@@ -6270,7 +6341,7 @@ var Xi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6270
6341
|
})
|
|
6271
6342
|
]
|
|
6272
6343
|
});
|
|
6273
|
-
}),
|
|
6344
|
+
}), ea = r(function({ media: e, sublabel: t, title: n, badge: r, meta: i, accent: a = !0, onClick: o, className: s, ...c }, l) {
|
|
6274
6345
|
return /* @__PURE__ */ h("button", {
|
|
6275
6346
|
ref: l,
|
|
6276
6347
|
...c,
|
|
@@ -6307,7 +6378,7 @@ var Xi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6307
6378
|
})
|
|
6308
6379
|
]
|
|
6309
6380
|
});
|
|
6310
|
-
}),
|
|
6381
|
+
}), ta = r(function({ label: e, onClick: t, className: n, ...r }, i) {
|
|
6311
6382
|
return /* @__PURE__ */ h("button", {
|
|
6312
6383
|
ref: i,
|
|
6313
6384
|
...r,
|
|
@@ -6323,7 +6394,7 @@ var Xi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6323
6394
|
children: e
|
|
6324
6395
|
})]
|
|
6325
6396
|
});
|
|
6326
|
-
}),
|
|
6397
|
+
}), na = r(function({ avatar: e, name: t, badge: n, onClick: r, className: i, ...a }, o) {
|
|
6327
6398
|
return /* @__PURE__ */ h("button", {
|
|
6328
6399
|
ref: o,
|
|
6329
6400
|
...a,
|
|
@@ -6348,8 +6419,8 @@ var Xi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6348
6419
|
})
|
|
6349
6420
|
]
|
|
6350
6421
|
});
|
|
6351
|
-
}),
|
|
6352
|
-
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" }) {
|
|
6353
6424
|
let [y, b] = d(e), [x, S] = d(!1);
|
|
6354
6425
|
if (o(() => {
|
|
6355
6426
|
if (e) b(!0), S(!1);
|
|
@@ -6357,7 +6428,7 @@ function na({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6357
6428
|
S(!0);
|
|
6358
6429
|
let e = setTimeout(() => {
|
|
6359
6430
|
b(!1), S(!1);
|
|
6360
|
-
},
|
|
6431
|
+
}, ra);
|
|
6361
6432
|
return () => clearTimeout(e);
|
|
6362
6433
|
}
|
|
6363
6434
|
}, [e, y]), o(() => {
|
|
@@ -6376,7 +6447,7 @@ function na({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6376
6447
|
className: "select-modal__close",
|
|
6377
6448
|
"aria-label": "Fechar",
|
|
6378
6449
|
onClick: t,
|
|
6379
|
-
children: /* @__PURE__ */ m(
|
|
6450
|
+
children: /* @__PURE__ */ m(q, {})
|
|
6380
6451
|
}), w = `select-modal__header${f ? " select-modal__header--divided" : ""}`;
|
|
6381
6452
|
return g(/* @__PURE__ */ m("div", {
|
|
6382
6453
|
className: `select select-modal__overlay${u ? " select-modal__overlay--noise" : ""}${_ === "blur" ? " select-modal__overlay--blur" : ""}${x ? " select-modal__overlay--closing" : ""}`,
|
|
@@ -6435,7 +6506,7 @@ function na({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6435
6506
|
}
|
|
6436
6507
|
//#endregion
|
|
6437
6508
|
//#region src/SelectRowActions.tsx
|
|
6438
|
-
function
|
|
6509
|
+
function aa({ actions: e, label: t = "Ações" }) {
|
|
6439
6510
|
let [n, r] = d(!1);
|
|
6440
6511
|
return /* @__PURE__ */ m(on, {
|
|
6441
6512
|
active: n,
|
|
@@ -6457,8 +6528,8 @@ function ra({ actions: e, label: t = "Ações" }) {
|
|
|
6457
6528
|
}
|
|
6458
6529
|
//#endregion
|
|
6459
6530
|
//#region src/SelectConfirmModal.tsx
|
|
6460
|
-
function
|
|
6461
|
-
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, {
|
|
6462
6533
|
open: e,
|
|
6463
6534
|
onClose: t,
|
|
6464
6535
|
title: r,
|
|
@@ -6487,8 +6558,8 @@ function ia({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
6487
6558
|
}
|
|
6488
6559
|
//#endregion
|
|
6489
6560
|
//#region src/SelectFormModal.tsx
|
|
6490
|
-
function
|
|
6491
|
-
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, {
|
|
6492
6563
|
open: e,
|
|
6493
6564
|
onClose: t,
|
|
6494
6565
|
title: r,
|
|
@@ -6530,30 +6601,30 @@ function aa({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
6530
6601
|
}
|
|
6531
6602
|
//#endregion
|
|
6532
6603
|
//#region src/SelectDataTable.tsx
|
|
6533
|
-
var
|
|
6604
|
+
var ca = "9.5rem", la = {
|
|
6534
6605
|
minWidth: "9.5rem",
|
|
6535
6606
|
grow: 2
|
|
6536
|
-
},
|
|
6537
|
-
function
|
|
6607
|
+
}, ua = "select-datatable:hidden-cols:";
|
|
6608
|
+
function da(e) {
|
|
6538
6609
|
try {
|
|
6539
|
-
let t = localStorage.getItem(
|
|
6610
|
+
let t = localStorage.getItem(ua + e), n = t ? JSON.parse(t) : null;
|
|
6540
6611
|
return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
|
|
6541
6612
|
} catch {
|
|
6542
6613
|
return [];
|
|
6543
6614
|
}
|
|
6544
6615
|
}
|
|
6545
|
-
function
|
|
6616
|
+
function fa(e, t) {
|
|
6546
6617
|
try {
|
|
6547
|
-
t.length === 0 ? localStorage.removeItem(
|
|
6618
|
+
t.length === 0 ? localStorage.removeItem(ua + e) : localStorage.setItem(ua + e, JSON.stringify(t));
|
|
6548
6619
|
} catch {}
|
|
6549
6620
|
}
|
|
6550
|
-
function
|
|
6621
|
+
function pa(e) {
|
|
6551
6622
|
return e.hideable ?? !!e.title;
|
|
6552
6623
|
}
|
|
6553
|
-
var
|
|
6554
|
-
function
|
|
6624
|
+
var ma = "select-datatable:col-widths:";
|
|
6625
|
+
function ha(e) {
|
|
6555
6626
|
try {
|
|
6556
|
-
let t = localStorage.getItem(
|
|
6627
|
+
let t = localStorage.getItem(ma + e), n = t ? JSON.parse(t) : null;
|
|
6557
6628
|
if (!n || typeof n != "object" || Array.isArray(n)) return {};
|
|
6558
6629
|
let r = {};
|
|
6559
6630
|
for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
|
|
@@ -6562,16 +6633,16 @@ function pa(e) {
|
|
|
6562
6633
|
return {};
|
|
6563
6634
|
}
|
|
6564
6635
|
}
|
|
6565
|
-
function
|
|
6636
|
+
function ga(e, t) {
|
|
6566
6637
|
try {
|
|
6567
|
-
Object.keys(t).length === 0 ? localStorage.removeItem(
|
|
6638
|
+
Object.keys(t).length === 0 ? localStorage.removeItem(ma + e) : localStorage.setItem(ma + e, JSON.stringify(t));
|
|
6568
6639
|
} catch {}
|
|
6569
6640
|
}
|
|
6570
|
-
var
|
|
6571
|
-
function
|
|
6641
|
+
var _a = "select-datatable:page-size:";
|
|
6642
|
+
function va(e, t, n) {
|
|
6572
6643
|
let [r, i] = d(() => {
|
|
6573
6644
|
try {
|
|
6574
|
-
let r = Number(localStorage.getItem(
|
|
6645
|
+
let r = Number(localStorage.getItem(_a + e));
|
|
6575
6646
|
return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
|
|
6576
6647
|
} catch {
|
|
6577
6648
|
return t;
|
|
@@ -6580,22 +6651,22 @@ function ga(e, t, n) {
|
|
|
6580
6651
|
return [r, (t) => {
|
|
6581
6652
|
i(t);
|
|
6582
6653
|
try {
|
|
6583
|
-
localStorage.setItem(
|
|
6654
|
+
localStorage.setItem(_a + e, String(t));
|
|
6584
6655
|
} catch {}
|
|
6585
6656
|
}];
|
|
6586
6657
|
}
|
|
6587
|
-
function
|
|
6658
|
+
function ya(e, t, n) {
|
|
6588
6659
|
let r = e == null || e === "", i = t == null || t === "";
|
|
6589
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", {
|
|
6590
6661
|
numeric: !0,
|
|
6591
6662
|
sensitivity: "base"
|
|
6592
6663
|
});
|
|
6593
6664
|
}
|
|
6594
|
-
function
|
|
6595
|
-
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) => {
|
|
6596
6667
|
v((t) => {
|
|
6597
6668
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
6598
|
-
return g &&
|
|
6669
|
+
return g && fa(g, r), n && A((t) => t && t.key === e.key ? null : t), r;
|
|
6599
6670
|
});
|
|
6600
6671
|
}, M = (e) => {
|
|
6601
6672
|
A((t) => {
|
|
@@ -6612,7 +6683,7 @@ function va({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6612
6683
|
let e = N == null ? void 0 : N.sortValue;
|
|
6613
6684
|
if (!k || !e) return t;
|
|
6614
6685
|
let n = k.dir === "asc" ? 1 : -1;
|
|
6615
|
-
return [...t].sort((t, r) =>
|
|
6686
|
+
return [...t].sort((t, r) => ya(e(t), e(r), n));
|
|
6616
6687
|
}, [
|
|
6617
6688
|
t,
|
|
6618
6689
|
k,
|
|
@@ -6631,11 +6702,11 @@ function va({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6631
6702
|
let n = D[e];
|
|
6632
6703
|
n && S((e) => {
|
|
6633
6704
|
let r = { ...e };
|
|
6634
|
-
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;
|
|
6635
6706
|
});
|
|
6636
6707
|
}, L = () => {
|
|
6637
|
-
S({}), g &&
|
|
6638
|
-
}, 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, {
|
|
6639
6710
|
icon: i.icon,
|
|
6640
6711
|
title: i.heading,
|
|
6641
6712
|
subtitle: i.text,
|
|
@@ -6691,7 +6762,7 @@ function va({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6691
6762
|
}) : null;
|
|
6692
6763
|
return /* @__PURE__ */ h("div", {
|
|
6693
6764
|
className: "select-datatable",
|
|
6694
|
-
children: [/* @__PURE__ */ m(
|
|
6765
|
+
children: [/* @__PURE__ */ m(Li, {
|
|
6695
6766
|
columns: F,
|
|
6696
6767
|
empty: R,
|
|
6697
6768
|
title: s,
|
|
@@ -6702,24 +6773,24 @@ function va({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6702
6773
|
tools: te,
|
|
6703
6774
|
onColumnResize: (e, t) => I(e, t),
|
|
6704
6775
|
onColumnResizeReset: (e) => I(e, null),
|
|
6705
|
-
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, {
|
|
6706
6777
|
align: e.align,
|
|
6707
6778
|
width: e.width,
|
|
6708
6779
|
children: /* @__PURE__ */ m("span", { className: "select-skeleton select-datatable__skel" })
|
|
6709
|
-
}, t)) }, `skeleton-${t}`)) : P.map((e) => /* @__PURE__ */ m(
|
|
6780
|
+
}, t)) }, `skeleton-${t}`)) : P.map((e) => /* @__PURE__ */ m(Bi, {
|
|
6710
6781
|
onClick: o ? () => o(e) : void 0,
|
|
6711
|
-
children: D.map((t, n) => /* @__PURE__ */ m(
|
|
6782
|
+
children: D.map((t, n) => /* @__PURE__ */ m(Vi, {
|
|
6712
6783
|
align: t.align,
|
|
6713
6784
|
width: t.width,
|
|
6714
6785
|
children: t.render(e)
|
|
6715
6786
|
}, n))
|
|
6716
6787
|
}, n(e)))
|
|
6717
|
-
}), a && /* @__PURE__ */ m(
|
|
6788
|
+
}), a && /* @__PURE__ */ m(Mi, { pagination: a })]
|
|
6718
6789
|
});
|
|
6719
6790
|
}
|
|
6720
6791
|
//#endregion
|
|
6721
6792
|
//#region src/SelectAddCard.tsx
|
|
6722
|
-
var
|
|
6793
|
+
var xa = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
|
|
6723
6794
|
return /* @__PURE__ */ h("button", {
|
|
6724
6795
|
ref: o,
|
|
6725
6796
|
...a,
|
|
@@ -6745,8 +6816,8 @@ var ya = r(function({ label: e, description: t, onClick: n, icon: r, className:
|
|
|
6745
6816
|
});
|
|
6746
6817
|
//#endregion
|
|
6747
6818
|
//#region src/SelectCardGrid.tsx
|
|
6748
|
-
function
|
|
6749
|
-
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({
|
|
6750
6821
|
title: l,
|
|
6751
6822
|
description: d,
|
|
6752
6823
|
action: f,
|
|
@@ -6758,7 +6829,7 @@ function ba({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
6758
6829
|
children: [
|
|
6759
6830
|
(v || y) && /* @__PURE__ */ m("div", {
|
|
6760
6831
|
className: "select-cardgrid__chrome",
|
|
6761
|
-
children: /* @__PURE__ */ m(
|
|
6832
|
+
children: /* @__PURE__ */ m(Ai, {
|
|
6762
6833
|
title: l,
|
|
6763
6834
|
help: u,
|
|
6764
6835
|
description: d,
|
|
@@ -6769,7 +6840,7 @@ function ba({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
6769
6840
|
}),
|
|
6770
6841
|
_ ? /* @__PURE__ */ m("div", {
|
|
6771
6842
|
className: "select-cardgrid__empty",
|
|
6772
|
-
children: /* @__PURE__ */ m(
|
|
6843
|
+
children: /* @__PURE__ */ m(Hi, {
|
|
6773
6844
|
icon: a.icon,
|
|
6774
6845
|
title: a.heading,
|
|
6775
6846
|
subtitle: a.text,
|
|
@@ -6787,19 +6858,19 @@ function ba({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
6787
6858
|
}, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ m("div", {
|
|
6788
6859
|
className: "select-cardgrid__item",
|
|
6789
6860
|
children: n(e)
|
|
6790
|
-
}, t(e))), !r && s && /* @__PURE__ */ m(
|
|
6861
|
+
}, t(e))), !r && s && /* @__PURE__ */ m(xa, {
|
|
6791
6862
|
label: s.label,
|
|
6792
6863
|
description: s.description,
|
|
6793
6864
|
onClick: s.onAction
|
|
6794
6865
|
})]
|
|
6795
6866
|
}),
|
|
6796
|
-
o && /* @__PURE__ */ m(
|
|
6867
|
+
o && /* @__PURE__ */ m(Mi, { pagination: o })
|
|
6797
6868
|
]
|
|
6798
6869
|
});
|
|
6799
6870
|
}
|
|
6800
6871
|
//#endregion
|
|
6801
6872
|
//#region src/SelectRecordCard.tsx
|
|
6802
|
-
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) {
|
|
6803
6874
|
let p = o != null || s != null, g = qr(c);
|
|
6804
6875
|
return /* @__PURE__ */ h("div", {
|
|
6805
6876
|
ref: f,
|
|
@@ -6865,7 +6936,7 @@ var xa = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
|
|
|
6865
6936
|
})
|
|
6866
6937
|
]
|
|
6867
6938
|
});
|
|
6868
|
-
}),
|
|
6939
|
+
}), wa = r(function({ kind: e, className: t, ...n }, r) {
|
|
6869
6940
|
return /* @__PURE__ */ h("span", {
|
|
6870
6941
|
ref: r,
|
|
6871
6942
|
...n,
|
|
@@ -6883,18 +6954,18 @@ var xa = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
|
|
|
6883
6954
|
});
|
|
6884
6955
|
//#endregion
|
|
6885
6956
|
//#region src/SelectSplitChain.tsx
|
|
6886
|
-
function
|
|
6957
|
+
function Ta(e) {
|
|
6887
6958
|
var t;
|
|
6888
6959
|
return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
|
|
6889
6960
|
}
|
|
6890
|
-
function
|
|
6961
|
+
function Ea({ node: e, origin: t = !1 }) {
|
|
6891
6962
|
return /* @__PURE__ */ h("span", {
|
|
6892
6963
|
className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
|
|
6893
6964
|
children: [
|
|
6894
6965
|
/* @__PURE__ */ m("span", {
|
|
6895
6966
|
className: "select-chain__dot",
|
|
6896
6967
|
"aria-hidden": "true",
|
|
6897
|
-
children:
|
|
6968
|
+
children: Ta(e)
|
|
6898
6969
|
}),
|
|
6899
6970
|
/* @__PURE__ */ m("span", {
|
|
6900
6971
|
className: "select-chain__label",
|
|
@@ -6908,16 +6979,16 @@ function wa({ node: e, origin: t = !1 }) {
|
|
|
6908
6979
|
]
|
|
6909
6980
|
});
|
|
6910
6981
|
}
|
|
6911
|
-
var
|
|
6982
|
+
var Da = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
|
|
6912
6983
|
let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ m("span", {
|
|
6913
6984
|
className: "select-chain__link",
|
|
6914
6985
|
"aria-hidden": "true"
|
|
6915
6986
|
}, e);
|
|
6916
|
-
t && c.push(/* @__PURE__ */ m(
|
|
6987
|
+
t && c.push(/* @__PURE__ */ m(Ea, {
|
|
6917
6988
|
node: t,
|
|
6918
6989
|
origin: !0
|
|
6919
6990
|
}, "__origin"));
|
|
6920
|
-
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));
|
|
6921
6992
|
return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ h("span", {
|
|
6922
6993
|
className: "select-chain__more",
|
|
6923
6994
|
children: ["+", s]
|
|
@@ -6927,43 +6998,43 @@ var Ta = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
|
|
|
6927
6998
|
className: `select-chain${r ? " " + r : ""}`,
|
|
6928
6999
|
children: c
|
|
6929
7000
|
});
|
|
6930
|
-
}),
|
|
7001
|
+
}), Oa = new Intl.NumberFormat("pt-BR", {
|
|
6931
7002
|
style: "currency",
|
|
6932
7003
|
currency: "BRL"
|
|
6933
7004
|
});
|
|
6934
|
-
function
|
|
7005
|
+
function ka(e) {
|
|
6935
7006
|
let t = typeof e == "string" ? Number(e) : e;
|
|
6936
7007
|
return typeof t == "number" && Number.isFinite(t) ? t : 0;
|
|
6937
7008
|
}
|
|
6938
|
-
function
|
|
6939
|
-
return
|
|
7009
|
+
function Aa(e) {
|
|
7010
|
+
return Oa.format(ka(e) / 100);
|
|
6940
7011
|
}
|
|
6941
7012
|
//#endregion
|
|
6942
7013
|
//#region src/SelectMoney.tsx
|
|
6943
|
-
var
|
|
7014
|
+
var ja = "sw:hide-money", Ma = {
|
|
6944
7015
|
hidden: !1,
|
|
6945
7016
|
toggle: () => {},
|
|
6946
7017
|
setHidden: () => {}
|
|
6947
|
-
},
|
|
6948
|
-
function
|
|
7018
|
+
}, Na = n(null);
|
|
7019
|
+
function Pa() {
|
|
6949
7020
|
try {
|
|
6950
|
-
return localStorage.getItem(
|
|
7021
|
+
return localStorage.getItem(ja) === "1";
|
|
6951
7022
|
} catch {
|
|
6952
7023
|
return !1;
|
|
6953
7024
|
}
|
|
6954
7025
|
}
|
|
6955
|
-
function
|
|
7026
|
+
function Fa(e) {
|
|
6956
7027
|
try {
|
|
6957
|
-
localStorage.setItem(
|
|
7028
|
+
localStorage.setItem(ja, e ? "1" : "0");
|
|
6958
7029
|
} catch {}
|
|
6959
7030
|
}
|
|
6960
|
-
function
|
|
6961
|
-
let [t, n] = d(
|
|
6962
|
-
n(e),
|
|
7031
|
+
function Ia({ children: e }) {
|
|
7032
|
+
let [t, n] = d(Pa), r = i((e) => {
|
|
7033
|
+
n(e), Fa(e);
|
|
6963
7034
|
}, []), a = i(() => {
|
|
6964
7035
|
n((e) => {
|
|
6965
7036
|
let t = !e;
|
|
6966
|
-
return
|
|
7037
|
+
return Fa(t), t;
|
|
6967
7038
|
});
|
|
6968
7039
|
}, []), o = l(() => ({
|
|
6969
7040
|
hidden: t,
|
|
@@ -6974,16 +7045,16 @@ function Pa({ children: e }) {
|
|
|
6974
7045
|
a,
|
|
6975
7046
|
r
|
|
6976
7047
|
]);
|
|
6977
|
-
return /* @__PURE__ */ m(
|
|
7048
|
+
return /* @__PURE__ */ m(Na.Provider, {
|
|
6978
7049
|
value: o,
|
|
6979
7050
|
children: e
|
|
6980
7051
|
});
|
|
6981
7052
|
}
|
|
6982
|
-
function
|
|
6983
|
-
return a(
|
|
7053
|
+
function La() {
|
|
7054
|
+
return a(Na) ?? Ma;
|
|
6984
7055
|
}
|
|
6985
|
-
var
|
|
6986
|
-
let { hidden: a } =
|
|
7056
|
+
var Ra = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
|
|
7057
|
+
let { hidden: a } = La();
|
|
6987
7058
|
return /* @__PURE__ */ m("span", {
|
|
6988
7059
|
ref: i,
|
|
6989
7060
|
...r,
|
|
@@ -6992,15 +7063,15 @@ var Ia = r(function({ children: e, label: t = "valor oculto", className: n, ...r
|
|
|
6992
7063
|
children: e
|
|
6993
7064
|
});
|
|
6994
7065
|
});
|
|
6995
|
-
function
|
|
6996
|
-
let n =
|
|
6997
|
-
return m(t ?
|
|
7066
|
+
function za({ cents: e, sensitive: t = !0 }) {
|
|
7067
|
+
let n = Aa(e);
|
|
7068
|
+
return m(t ? Ra : p, { children: n });
|
|
6998
7069
|
}
|
|
6999
|
-
var
|
|
7070
|
+
var Ba = new Intl.NumberFormat("pt-BR", {
|
|
7000
7071
|
signDisplay: "exceptZero",
|
|
7001
7072
|
minimumFractionDigits: 1,
|
|
7002
7073
|
maximumFractionDigits: 1
|
|
7003
|
-
}),
|
|
7074
|
+
}), Va = r(function({ value: e, invert: t = !1, caption: n, className: r, ...i }, a) {
|
|
7004
7075
|
if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ h("span", {
|
|
7005
7076
|
ref: a,
|
|
7006
7077
|
...i,
|
|
@@ -7016,7 +7087,7 @@ var Ra = new Intl.NumberFormat("pt-BR", {
|
|
|
7016
7087
|
className: `select-delta__value select-delta__value--${l}`,
|
|
7017
7088
|
children: [
|
|
7018
7089
|
u ? `${u} ` : "",
|
|
7019
|
-
|
|
7090
|
+
Ba.format(e),
|
|
7020
7091
|
"%"
|
|
7021
7092
|
]
|
|
7022
7093
|
}), n != null && /* @__PURE__ */ m("span", {
|
|
@@ -7025,8 +7096,8 @@ var Ra = new Intl.NumberFormat("pt-BR", {
|
|
|
7025
7096
|
})]
|
|
7026
7097
|
});
|
|
7027
7098
|
});
|
|
7028
|
-
function
|
|
7029
|
-
let { hidden: e, toggle: t } =
|
|
7099
|
+
function Ha() {
|
|
7100
|
+
let { hidden: e, toggle: t } = La();
|
|
7030
7101
|
return /* @__PURE__ */ m(J, {
|
|
7031
7102
|
variant: "outline",
|
|
7032
7103
|
icon: m(e ? Ue : He, {}),
|
|
@@ -7037,7 +7108,7 @@ function Ba() {
|
|
|
7037
7108
|
}
|
|
7038
7109
|
//#endregion
|
|
7039
7110
|
//#region src/SelectOfferPrice.tsx
|
|
7040
|
-
var
|
|
7111
|
+
var Ua = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note: i, className: a, ...o }, s) {
|
|
7041
7112
|
let c = Number(e);
|
|
7042
7113
|
if (!Number.isFinite(c)) return null;
|
|
7043
7114
|
let l = Number(t), u = Number.isFinite(l) && l > c, d = u ? Math.round((l - c) / l * 100) : 0;
|
|
@@ -7048,11 +7119,11 @@ var Va = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
7048
7119
|
children: [
|
|
7049
7120
|
/* @__PURE__ */ m("span", {
|
|
7050
7121
|
className: "select-offerprice__now",
|
|
7051
|
-
children: c === 0 && r != null ? r : /* @__PURE__ */ m(
|
|
7122
|
+
children: c === 0 && r != null ? r : /* @__PURE__ */ m(za, { cents: c })
|
|
7052
7123
|
}),
|
|
7053
7124
|
u && /* @__PURE__ */ m("s", {
|
|
7054
7125
|
className: "select-offerprice__was",
|
|
7055
|
-
children: /* @__PURE__ */ m(
|
|
7126
|
+
children: /* @__PURE__ */ m(za, { cents: l })
|
|
7056
7127
|
}),
|
|
7057
7128
|
u && !n && d > 0 && /* @__PURE__ */ h("span", {
|
|
7058
7129
|
className: "select-offerprice__off",
|
|
@@ -7071,7 +7142,7 @@ var Va = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
7071
7142
|
});
|
|
7072
7143
|
//#endregion
|
|
7073
7144
|
//#region src/SelectRating.tsx
|
|
7074
|
-
function
|
|
7145
|
+
function Wa({ size: e }) {
|
|
7075
7146
|
return /* @__PURE__ */ m("svg", {
|
|
7076
7147
|
width: e,
|
|
7077
7148
|
height: e,
|
|
@@ -7083,7 +7154,7 @@ function Ha({ size: e }) {
|
|
|
7083
7154
|
})
|
|
7084
7155
|
});
|
|
7085
7156
|
}
|
|
7086
|
-
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) {
|
|
7087
7158
|
let l = !!n && !a, [u, f] = d(null), p = u ?? e;
|
|
7088
7159
|
return /* @__PURE__ */ m("div", {
|
|
7089
7160
|
ref: c,
|
|
@@ -7098,7 +7169,7 @@ var Ua = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7098
7169
|
children: Array.from({ length: t }, (e, t) => {
|
|
7099
7170
|
let i = /* @__PURE__ */ m("span", {
|
|
7100
7171
|
className: `select-rating__star${t < p ? " is-filled" : ""}`,
|
|
7101
|
-
children: /* @__PURE__ */ m(
|
|
7172
|
+
children: /* @__PURE__ */ m(Wa, { size: r })
|
|
7102
7173
|
});
|
|
7103
7174
|
return l ? /* @__PURE__ */ m("button", {
|
|
7104
7175
|
type: "button",
|
|
@@ -7112,14 +7183,14 @@ var Ua = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7112
7183
|
}, t) : /* @__PURE__ */ m("span", { children: i }, t);
|
|
7113
7184
|
})
|
|
7114
7185
|
});
|
|
7115
|
-
}),
|
|
7186
|
+
}), Ka = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
|
|
7116
7187
|
let s = Number(e), c = Number.isFinite(s) && s > 0;
|
|
7117
7188
|
return /* @__PURE__ */ h("div", {
|
|
7118
7189
|
ref: o,
|
|
7119
7190
|
...a,
|
|
7120
7191
|
className: `select-quote${i ? " " + i : ""}`,
|
|
7121
7192
|
children: [
|
|
7122
|
-
c && /* @__PURE__ */ m(
|
|
7193
|
+
c && /* @__PURE__ */ m(Ga, {
|
|
7123
7194
|
value: s,
|
|
7124
7195
|
max: t,
|
|
7125
7196
|
size: 13
|
|
@@ -7134,7 +7205,7 @@ var Ua = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7134
7205
|
})
|
|
7135
7206
|
]
|
|
7136
7207
|
});
|
|
7137
|
-
}),
|
|
7208
|
+
}), qa = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
|
|
7138
7209
|
let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
|
|
7139
7210
|
return /* @__PURE__ */ h("div", {
|
|
7140
7211
|
ref: i,
|
|
@@ -7156,7 +7227,7 @@ var Ua = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7156
7227
|
children: ["+", o]
|
|
7157
7228
|
})]
|
|
7158
7229
|
});
|
|
7159
|
-
}),
|
|
7230
|
+
}), Ja = [
|
|
7160
7231
|
"Dom",
|
|
7161
7232
|
"Seg",
|
|
7162
7233
|
"Ter",
|
|
@@ -7164,7 +7235,7 @@ var Ua = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7164
7235
|
"Qui",
|
|
7165
7236
|
"Sex",
|
|
7166
7237
|
"Sáb"
|
|
7167
|
-
],
|
|
7238
|
+
], Ya = [
|
|
7168
7239
|
"Janeiro",
|
|
7169
7240
|
"Fevereiro",
|
|
7170
7241
|
"Março",
|
|
@@ -7177,29 +7248,29 @@ var Ua = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7177
7248
|
"Outubro",
|
|
7178
7249
|
"Novembro",
|
|
7179
7250
|
"Dezembro"
|
|
7180
|
-
],
|
|
7181
|
-
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) {
|
|
7182
7253
|
let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
|
|
7183
7254
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
|
|
7184
7255
|
}
|
|
7185
|
-
function
|
|
7186
|
-
let n = `${e.getFullYear()}-${
|
|
7187
|
-
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;
|
|
7188
7259
|
}
|
|
7189
|
-
function
|
|
7190
|
-
let n = `${
|
|
7191
|
-
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;
|
|
7192
7263
|
}
|
|
7193
|
-
var
|
|
7194
|
-
let b = s(), x = g ?? b, [S, C] = d(!1), w =
|
|
7195
|
-
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));
|
|
7196
7267
|
}, P = (e) => {
|
|
7197
7268
|
if (k(e)) return;
|
|
7198
7269
|
let t = new Date(e);
|
|
7199
|
-
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);
|
|
7200
7271
|
}, F = (e) => {
|
|
7201
7272
|
let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(w ?? M);
|
|
7202
|
-
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));
|
|
7203
7274
|
}, I = () => {
|
|
7204
7275
|
n(""), C(!1);
|
|
7205
7276
|
}, L = /* @__PURE__ */ h("div", {
|
|
@@ -7213,7 +7284,7 @@ var ro = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7213
7284
|
"aria-haspopup": "dialog",
|
|
7214
7285
|
"aria-expanded": S,
|
|
7215
7286
|
"aria-invalid": c ? !0 : void 0,
|
|
7216
|
-
children: w ?
|
|
7287
|
+
children: w ? io(w, r) : /* @__PURE__ */ m("span", {
|
|
7217
7288
|
className: "select-datefield__ph",
|
|
7218
7289
|
children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
|
|
7219
7290
|
})
|
|
@@ -7250,13 +7321,13 @@ var ro = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7250
7321
|
type: "button",
|
|
7251
7322
|
className: "select-datepicker__nav",
|
|
7252
7323
|
"aria-label": "Mês anterior",
|
|
7253
|
-
onClick: () => E((e) =>
|
|
7254
|
-
children: /* @__PURE__ */ m(
|
|
7324
|
+
onClick: () => E((e) => eo(e, -1)),
|
|
7325
|
+
children: /* @__PURE__ */ m(H, {})
|
|
7255
7326
|
}),
|
|
7256
7327
|
/* @__PURE__ */ h("span", {
|
|
7257
7328
|
className: "select-datepicker__monthlabel",
|
|
7258
7329
|
children: [
|
|
7259
|
-
|
|
7330
|
+
Ya[T.getMonth()],
|
|
7260
7331
|
" ",
|
|
7261
7332
|
T.getFullYear()
|
|
7262
7333
|
]
|
|
@@ -7265,19 +7336,19 @@ var ro = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7265
7336
|
type: "button",
|
|
7266
7337
|
className: "select-datepicker__nav",
|
|
7267
7338
|
"aria-label": "Próximo mês",
|
|
7268
|
-
onClick: () => E((e) =>
|
|
7269
|
-
children: /* @__PURE__ */ m(
|
|
7339
|
+
onClick: () => E((e) => eo(e, 1)),
|
|
7340
|
+
children: /* @__PURE__ */ m(oe, {})
|
|
7270
7341
|
})
|
|
7271
7342
|
]
|
|
7272
7343
|
}),
|
|
7273
7344
|
/* @__PURE__ */ h("div", {
|
|
7274
7345
|
className: "select-datepicker__grid",
|
|
7275
7346
|
role: "grid",
|
|
7276
|
-
children: [
|
|
7347
|
+
children: [Ja.map((e) => /* @__PURE__ */ m("div", {
|
|
7277
7348
|
className: "select-datepicker__weekday",
|
|
7278
7349
|
children: e
|
|
7279
7350
|
}, e)), j.map((e) => {
|
|
7280
|
-
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" : "");
|
|
7281
7352
|
return /* @__PURE__ */ m("div", {
|
|
7282
7353
|
className: "select-datepicker__day",
|
|
7283
7354
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -7299,7 +7370,7 @@ var ro = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7299
7370
|
type: "time",
|
|
7300
7371
|
className: "select-input select-datefield__time-input",
|
|
7301
7372
|
"aria-label": "Horário",
|
|
7302
|
-
value: w ? `${
|
|
7373
|
+
value: w ? `${Xa(w.getHours())}:${Xa(w.getMinutes())}` : "",
|
|
7303
7374
|
onChange: (e) => F(e.target.value)
|
|
7304
7375
|
})]
|
|
7305
7376
|
}),
|
|
@@ -7340,25 +7411,25 @@ var ro = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7340
7411
|
}) : null
|
|
7341
7412
|
]
|
|
7342
7413
|
});
|
|
7343
|
-
}),
|
|
7344
|
-
function
|
|
7345
|
-
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 ?? "");
|
|
7346
7417
|
if (!t) return null;
|
|
7347
7418
|
let n = `${t[3]}/${t[2]}/${t[1]}`;
|
|
7348
7419
|
return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
|
|
7349
7420
|
}
|
|
7350
7421
|
//#endregion
|
|
7351
7422
|
//#region src/SelectFilterBar.tsx
|
|
7352
|
-
function
|
|
7423
|
+
function co(e, t) {
|
|
7353
7424
|
var n;
|
|
7354
|
-
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;
|
|
7355
7426
|
}
|
|
7356
|
-
function
|
|
7427
|
+
function lo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: s }) {
|
|
7357
7428
|
let [c, l] = d("");
|
|
7358
7429
|
o(() => {
|
|
7359
7430
|
r || l("");
|
|
7360
7431
|
}, [r]);
|
|
7361
|
-
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;
|
|
7362
7433
|
return /* @__PURE__ */ h(on, {
|
|
7363
7434
|
active: r,
|
|
7364
7435
|
onClose: a,
|
|
@@ -7377,7 +7448,7 @@ function so({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7377
7448
|
}), /* @__PURE__ */ m("span", {
|
|
7378
7449
|
className: `select-facet__caret${r ? " is-open" : ""}`,
|
|
7379
7450
|
"aria-hidden": "true",
|
|
7380
|
-
children: /* @__PURE__ */ m(
|
|
7451
|
+
children: /* @__PURE__ */ m(U, {})
|
|
7381
7452
|
})]
|
|
7382
7453
|
}),
|
|
7383
7454
|
children: [
|
|
@@ -7385,7 +7456,7 @@ function so({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7385
7456
|
className: "select-facet__panel",
|
|
7386
7457
|
children: [_ && /* @__PURE__ */ m("div", {
|
|
7387
7458
|
className: "select-facet__search",
|
|
7388
|
-
children: /* @__PURE__ */ m(
|
|
7459
|
+
children: /* @__PURE__ */ m(Ti, {
|
|
7389
7460
|
value: c,
|
|
7390
7461
|
onChange: l,
|
|
7391
7462
|
placeholder: "Buscar opção…"
|
|
@@ -7416,7 +7487,7 @@ function so({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7416
7487
|
})]
|
|
7417
7488
|
}) : e.type === "date" ? /* @__PURE__ */ m("div", {
|
|
7418
7489
|
className: "select-facet__field",
|
|
7419
|
-
children: /* @__PURE__ */ m(
|
|
7490
|
+
children: /* @__PURE__ */ m(ao, {
|
|
7420
7491
|
value: t,
|
|
7421
7492
|
onChange: n,
|
|
7422
7493
|
placeholder: e.placeholder,
|
|
@@ -7454,7 +7525,7 @@ function so({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7454
7525
|
]
|
|
7455
7526
|
});
|
|
7456
7527
|
}
|
|
7457
|
-
var
|
|
7528
|
+
var uo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, disabled: a, className: o, ...s }, c) {
|
|
7458
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 = () => {
|
|
7459
7530
|
u([]), p(null), r();
|
|
7460
7531
|
}, w = (e) => {
|
|
@@ -7473,7 +7544,7 @@ var co = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7473
7544
|
/* @__PURE__ */ m("span", {
|
|
7474
7545
|
className: "select-filterbar__query-icon",
|
|
7475
7546
|
"aria-hidden": "true",
|
|
7476
|
-
children: /* @__PURE__ */ m(
|
|
7547
|
+
children: /* @__PURE__ */ m(se, {})
|
|
7477
7548
|
}),
|
|
7478
7549
|
/* @__PURE__ */ m("input", {
|
|
7479
7550
|
className: "select-filterbar__query-input",
|
|
@@ -7488,11 +7559,11 @@ var co = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7488
7559
|
className: "select-filterbar__query-clear",
|
|
7489
7560
|
"aria-label": "Limpar busca",
|
|
7490
7561
|
onClick: () => i.onChange(""),
|
|
7491
|
-
children: /* @__PURE__ */ m(
|
|
7562
|
+
children: /* @__PURE__ */ m(q, {})
|
|
7492
7563
|
})
|
|
7493
7564
|
]
|
|
7494
7565
|
}),
|
|
7495
|
-
b.map((e) => /* @__PURE__ */ m(
|
|
7566
|
+
b.map((e) => /* @__PURE__ */ m(lo, {
|
|
7496
7567
|
filter: e,
|
|
7497
7568
|
value: t[e.key] ?? "",
|
|
7498
7569
|
onChange: (t) => n(e.key, t),
|
|
@@ -7538,13 +7609,13 @@ var co = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7538
7609
|
children: [
|
|
7539
7610
|
e.label,
|
|
7540
7611
|
": ",
|
|
7541
|
-
|
|
7612
|
+
co(e, t[e.key] ?? ""),
|
|
7542
7613
|
/* @__PURE__ */ m("button", {
|
|
7543
7614
|
type: "button",
|
|
7544
7615
|
className: "select-filterbar__tagx",
|
|
7545
7616
|
"aria-label": `Remover filtro ${e.label}`,
|
|
7546
7617
|
onClick: () => n(e.key, ""),
|
|
7547
|
-
children: /* @__PURE__ */ m(
|
|
7618
|
+
children: /* @__PURE__ */ m(q, {})
|
|
7548
7619
|
})
|
|
7549
7620
|
]
|
|
7550
7621
|
}, e.key)), /* @__PURE__ */ m("button", {
|
|
@@ -7555,7 +7626,7 @@ var co = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7555
7626
|
})]
|
|
7556
7627
|
})]
|
|
7557
7628
|
});
|
|
7558
|
-
}),
|
|
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) {
|
|
7559
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);
|
|
7560
7631
|
return /* @__PURE__ */ h("div", {
|
|
7561
7632
|
ref: p,
|
|
@@ -7603,19 +7674,19 @@ var co = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7603
7674
|
onClick: (t) => {
|
|
7604
7675
|
t.stopPropagation(), x(e.value);
|
|
7605
7676
|
},
|
|
7606
|
-
children: /* @__PURE__ */ m(
|
|
7677
|
+
children: /* @__PURE__ */ m(q, {})
|
|
7607
7678
|
})]
|
|
7608
7679
|
}, e.value)), /* @__PURE__ */ m("span", {
|
|
7609
7680
|
className: "select-tagselect__caret",
|
|
7610
7681
|
"aria-hidden": "true",
|
|
7611
|
-
children: /* @__PURE__ */ m(
|
|
7682
|
+
children: /* @__PURE__ */ m(U, {})
|
|
7612
7683
|
})]
|
|
7613
7684
|
}),
|
|
7614
7685
|
children: /* @__PURE__ */ h("div", {
|
|
7615
7686
|
className: "select-tagselect__menu",
|
|
7616
7687
|
children: [/* @__PURE__ */ m("div", {
|
|
7617
7688
|
className: "select-tagselect__search",
|
|
7618
|
-
children: /* @__PURE__ */ m(
|
|
7689
|
+
children: /* @__PURE__ */ m(Ti, {
|
|
7619
7690
|
value: v,
|
|
7620
7691
|
onChange: y,
|
|
7621
7692
|
placeholder: "Buscar…"
|
|
@@ -7668,7 +7739,7 @@ var co = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7668
7739
|
}) : null
|
|
7669
7740
|
]
|
|
7670
7741
|
});
|
|
7671
|
-
}),
|
|
7742
|
+
}), po = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
|
|
7672
7743
|
return /* @__PURE__ */ h("div", {
|
|
7673
7744
|
ref: c,
|
|
7674
7745
|
...s,
|
|
@@ -7700,8 +7771,8 @@ var co = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7700
7771
|
})
|
|
7701
7772
|
]
|
|
7702
7773
|
});
|
|
7703
|
-
}),
|
|
7704
|
-
function
|
|
7774
|
+
}), mo = n(null), ho = 220, go = 4e3, _o = 8, vo = .04, yo = 5;
|
|
7775
|
+
function bo({ children: e }) {
|
|
7705
7776
|
let [t, n] = d([]), r = u(0), a = u(/* @__PURE__ */ new Map()), s = i((e) => {
|
|
7706
7777
|
n((t) => t.filter((t) => t.id !== e)), a.current.delete(e);
|
|
7707
7778
|
}, []), c = i((e) => {
|
|
@@ -7709,9 +7780,9 @@ function vo({ children: e }) {
|
|
|
7709
7780
|
t && clearTimeout(t), n((t) => t.map((t) => t.id === e ? {
|
|
7710
7781
|
...t,
|
|
7711
7782
|
exiting: !0
|
|
7712
|
-
} : t)), a.current.set(e, setTimeout(() => s(e),
|
|
7783
|
+
} : t)), a.current.set(e, setTimeout(() => s(e), ho));
|
|
7713
7784
|
}, [s]), f = i((e, t) => {
|
|
7714
|
-
let i = ++r.current, o = (t == null ? void 0 : t.duration) ??
|
|
7785
|
+
let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? go;
|
|
7715
7786
|
n((n) => [...n, {
|
|
7716
7787
|
id: i,
|
|
7717
7788
|
content: e,
|
|
@@ -7739,7 +7810,7 @@ function vo({ children: e }) {
|
|
|
7739
7810
|
duration: t
|
|
7740
7811
|
})
|
|
7741
7812
|
}), [f]);
|
|
7742
|
-
return /* @__PURE__ */ h(
|
|
7813
|
+
return /* @__PURE__ */ h(mo.Provider, {
|
|
7743
7814
|
value: p,
|
|
7744
7815
|
children: [e, t.length > 0 && g(/* @__PURE__ */ m("div", {
|
|
7745
7816
|
className: "select select-toasts",
|
|
@@ -7747,8 +7818,8 @@ function vo({ children: e }) {
|
|
|
7747
7818
|
"aria-live": "polite",
|
|
7748
7819
|
"aria-label": "Notificações",
|
|
7749
7820
|
children: t.map((e, n) => {
|
|
7750
|
-
let r = t.length - 1 - n, i = e.exiting || r >=
|
|
7751
|
-
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})`,
|
|
7752
7823
|
opacity: +!i,
|
|
7753
7824
|
zIndex: 1e3 - r,
|
|
7754
7825
|
pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
|
|
@@ -7765,21 +7836,21 @@ function vo({ children: e }) {
|
|
|
7765
7836
|
className: "select-toast__close",
|
|
7766
7837
|
"aria-label": "Fechar",
|
|
7767
7838
|
onClick: () => c(e.id),
|
|
7768
|
-
children: /* @__PURE__ */ m(
|
|
7839
|
+
children: /* @__PURE__ */ m(q, {})
|
|
7769
7840
|
})]
|
|
7770
7841
|
}, e.id);
|
|
7771
7842
|
})
|
|
7772
7843
|
}), document.body)]
|
|
7773
7844
|
});
|
|
7774
7845
|
}
|
|
7775
|
-
function
|
|
7776
|
-
let e = a(
|
|
7846
|
+
function xo() {
|
|
7847
|
+
let e = a(mo);
|
|
7777
7848
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
7778
7849
|
return e;
|
|
7779
7850
|
}
|
|
7780
7851
|
//#endregion
|
|
7781
7852
|
//#region src/SelectPreviewFrame.tsx
|
|
7782
|
-
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) {
|
|
7783
7854
|
let x = qr(e), [S, C] = d(a), [w, T] = d(0), [E, D] = d(!0), O = u(null), [k, A] = d({
|
|
7784
7855
|
w: 0,
|
|
7785
7856
|
h: 0
|
|
@@ -7797,7 +7868,7 @@ var bo = "allow-scripts allow-same-origin allow-forms", xo = 390, So = 1280, Co
|
|
|
7797
7868
|
});
|
|
7798
7869
|
return t.observe(e), () => t.disconnect();
|
|
7799
7870
|
}, []);
|
|
7800
|
-
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 = () => {
|
|
7801
7872
|
if (D(!0), l) {
|
|
7802
7873
|
l();
|
|
7803
7874
|
return;
|
|
@@ -7849,7 +7920,7 @@ var bo = "allow-scripts allow-same-origin allow-forms", xo = 390, So = 1280, Co
|
|
|
7849
7920
|
rel: "noreferrer",
|
|
7850
7921
|
"aria-label": "Abrir em nova aba",
|
|
7851
7922
|
title: "Abrir em nova aba",
|
|
7852
|
-
children: /* @__PURE__ */ m(
|
|
7923
|
+
children: /* @__PURE__ */ m(K, {})
|
|
7853
7924
|
})
|
|
7854
7925
|
]
|
|
7855
7926
|
})
|
|
@@ -7886,7 +7957,7 @@ var bo = "allow-scripts allow-same-origin allow-forms", xo = 390, So = 1280, Co
|
|
|
7886
7957
|
})
|
|
7887
7958
|
})]
|
|
7888
7959
|
});
|
|
7889
|
-
}),
|
|
7960
|
+
}), Eo = r(function({ availableCents: e, availableLabel: t = "Saldo disponível", delta: n, buckets: r = [], action: i, className: a, ...o }, s) {
|
|
7890
7961
|
return /* @__PURE__ */ h("div", {
|
|
7891
7962
|
ref: s,
|
|
7892
7963
|
...o,
|
|
@@ -7911,8 +7982,8 @@ var bo = "allow-scripts allow-same-origin allow-forms", xo = 390, So = 1280, Co
|
|
|
7911
7982
|
className: "select-balance__heromain",
|
|
7912
7983
|
children: [/* @__PURE__ */ m("span", {
|
|
7913
7984
|
className: "select-balance__heroamount",
|
|
7914
|
-
children: /* @__PURE__ */ m(
|
|
7915
|
-
}), n != null && /* @__PURE__ */ m(
|
|
7985
|
+
children: /* @__PURE__ */ m(za, { cents: e })
|
|
7986
|
+
}), n != null && /* @__PURE__ */ m(Va, {
|
|
7916
7987
|
value: n,
|
|
7917
7988
|
caption: "vs. período anterior"
|
|
7918
7989
|
})]
|
|
@@ -7931,14 +8002,14 @@ var bo = "allow-scripts allow-same-origin allow-forms", xo = 390, So = 1280, Co
|
|
|
7931
8002
|
children: e.label
|
|
7932
8003
|
}), /* @__PURE__ */ m("span", {
|
|
7933
8004
|
className: "select-balance__bucketamount",
|
|
7934
|
-
children: /* @__PURE__ */ m(
|
|
8005
|
+
children: /* @__PURE__ */ m(za, { cents: e.cents })
|
|
7935
8006
|
})]
|
|
7936
8007
|
})]
|
|
7937
8008
|
}, e.label))
|
|
7938
8009
|
})]
|
|
7939
8010
|
})]
|
|
7940
8011
|
});
|
|
7941
|
-
}),
|
|
8012
|
+
}), Do = r(function({ grossCents: e, fees: t, netCents: n, grossLabel: r = "Valor bruto", netLabel: i = "Valor líquido", className: a, ...o }, s) {
|
|
7942
8013
|
let c = n ?? e - t.reduce((e, t) => e + t.cents, 0);
|
|
7943
8014
|
return /* @__PURE__ */ h("div", {
|
|
7944
8015
|
ref: s,
|
|
@@ -7947,13 +8018,13 @@ var bo = "allow-scripts allow-same-origin allow-forms", xo = 390, So = 1280, Co
|
|
|
7947
8018
|
children: [
|
|
7948
8019
|
/* @__PURE__ */ h("div", {
|
|
7949
8020
|
className: "select-fees__row",
|
|
7950
|
-
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 }) })]
|
|
7951
8022
|
}),
|
|
7952
8023
|
t.map((e) => /* @__PURE__ */ h("div", {
|
|
7953
8024
|
className: "select-fees__row",
|
|
7954
8025
|
children: [/* @__PURE__ */ m("span", { children: e.label }), /* @__PURE__ */ h("span", {
|
|
7955
8026
|
className: "select-fees__neg",
|
|
7956
|
-
children: ["−\xA0", /* @__PURE__ */ m(
|
|
8027
|
+
children: ["−\xA0", /* @__PURE__ */ m(za, { cents: e.cents })]
|
|
7957
8028
|
})]
|
|
7958
8029
|
}, e.label)),
|
|
7959
8030
|
/* @__PURE__ */ m("div", { className: "select-fees__divider" }),
|
|
@@ -7961,12 +8032,12 @@ var bo = "allow-scripts allow-same-origin allow-forms", xo = 390, So = 1280, Co
|
|
|
7961
8032
|
className: "select-fees__row select-fees__row--net",
|
|
7962
8033
|
children: [/* @__PURE__ */ m("span", { children: i }), /* @__PURE__ */ m("span", {
|
|
7963
8034
|
className: "select-fees__netvalue",
|
|
7964
|
-
children: /* @__PURE__ */ m(
|
|
8035
|
+
children: /* @__PURE__ */ m(za, { cents: c })
|
|
7965
8036
|
})]
|
|
7966
8037
|
})
|
|
7967
8038
|
]
|
|
7968
8039
|
});
|
|
7969
|
-
}),
|
|
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) {
|
|
7970
8041
|
let f = s != null, p = f ? {
|
|
7971
8042
|
role: "button",
|
|
7972
8043
|
tabIndex: 0,
|
|
@@ -8006,7 +8077,7 @@ var bo = "allow-scripts allow-same-origin allow-forms", xo = 390, So = 1280, Co
|
|
|
8006
8077
|
})
|
|
8007
8078
|
]
|
|
8008
8079
|
});
|
|
8009
|
-
}),
|
|
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) {
|
|
8010
8081
|
let g = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
8011
8082
|
return /* @__PURE__ */ h("div", {
|
|
8012
8083
|
ref: p,
|
|
@@ -8049,7 +8120,7 @@ var bo = "allow-scripts allow-same-origin allow-forms", xo = 390, So = 1280, Co
|
|
|
8049
8120
|
});
|
|
8050
8121
|
//#endregion
|
|
8051
8122
|
//#region src/chartUtils.ts
|
|
8052
|
-
function
|
|
8123
|
+
function Ao() {
|
|
8053
8124
|
let [e, t] = d(1);
|
|
8054
8125
|
return c(() => {
|
|
8055
8126
|
let e = () => {
|
|
@@ -8060,7 +8131,7 @@ function Oo() {
|
|
|
8060
8131
|
}, []), e;
|
|
8061
8132
|
}
|
|
8062
8133
|
function Y(e) {
|
|
8063
|
-
let t = u(null), [n, r] = d(0), i =
|
|
8134
|
+
let t = u(null), [n, r] = d(0), i = Ao();
|
|
8064
8135
|
return c(() => {
|
|
8065
8136
|
let e = t.current;
|
|
8066
8137
|
if (!e) return;
|
|
@@ -8077,7 +8148,7 @@ function Y(e) {
|
|
|
8077
8148
|
height: Math.round(e * i)
|
|
8078
8149
|
};
|
|
8079
8150
|
}
|
|
8080
|
-
function
|
|
8151
|
+
function jo(e, t) {
|
|
8081
8152
|
let [n, r] = d(t);
|
|
8082
8153
|
return c(() => {
|
|
8083
8154
|
let t = e.current;
|
|
@@ -8091,15 +8162,15 @@ function ko(e, t) {
|
|
|
8091
8162
|
return i.observe(t), () => i.disconnect();
|
|
8092
8163
|
}, [e]), n;
|
|
8093
8164
|
}
|
|
8094
|
-
function
|
|
8165
|
+
function Mo(e) {
|
|
8095
8166
|
if (e <= 0) return 1;
|
|
8096
8167
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
8097
8168
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
8098
8169
|
}
|
|
8099
|
-
function
|
|
8170
|
+
function No(e, t = 4) {
|
|
8100
8171
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
8101
8172
|
}
|
|
8102
|
-
function
|
|
8173
|
+
function Po(e, t = 5) {
|
|
8103
8174
|
if (!(e > 0)) return {
|
|
8104
8175
|
max: 1,
|
|
8105
8176
|
values: [0, 1]
|
|
@@ -8111,10 +8182,10 @@ function Mo(e, t = 5) {
|
|
|
8111
8182
|
values: s
|
|
8112
8183
|
};
|
|
8113
8184
|
}
|
|
8114
|
-
function
|
|
8185
|
+
function Fo(e) {
|
|
8115
8186
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
8116
8187
|
}
|
|
8117
|
-
function
|
|
8188
|
+
function Io(e) {
|
|
8118
8189
|
let t = e.length;
|
|
8119
8190
|
if (t === 0) return "";
|
|
8120
8191
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -8138,23 +8209,23 @@ function Po(e) {
|
|
|
8138
8209
|
}
|
|
8139
8210
|
return s;
|
|
8140
8211
|
}
|
|
8141
|
-
function
|
|
8212
|
+
function Lo(e, t) {
|
|
8142
8213
|
if (e.length === 0) return "";
|
|
8143
8214
|
let n = e[0], r = e[e.length - 1];
|
|
8144
|
-
return `${
|
|
8215
|
+
return `${Io(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
8145
8216
|
}
|
|
8146
|
-
function
|
|
8147
|
-
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`;
|
|
8148
8219
|
}
|
|
8149
|
-
function
|
|
8220
|
+
function zo(e, t, n, r) {
|
|
8150
8221
|
let i = (r - 90) * Math.PI / 180;
|
|
8151
8222
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
8152
8223
|
}
|
|
8153
|
-
function
|
|
8154
|
-
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);
|
|
8155
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`;
|
|
8156
8227
|
}
|
|
8157
|
-
var
|
|
8228
|
+
var Vo = [
|
|
8158
8229
|
"var(--select-chart-1)",
|
|
8159
8230
|
"var(--select-chart-2)",
|
|
8160
8231
|
"var(--select-chart-3)",
|
|
@@ -8162,13 +8233,13 @@ var zo = [
|
|
|
8162
8233
|
"var(--select-chart-5)"
|
|
8163
8234
|
];
|
|
8164
8235
|
function X(e) {
|
|
8165
|
-
return
|
|
8236
|
+
return Vo[e % Vo.length];
|
|
8166
8237
|
}
|
|
8167
8238
|
function Z(e) {
|
|
8168
8239
|
let t = Math.abs(e);
|
|
8169
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));
|
|
8170
8241
|
}
|
|
8171
|
-
var
|
|
8242
|
+
var Ho = {
|
|
8172
8243
|
top: 16,
|
|
8173
8244
|
right: 22,
|
|
8174
8245
|
bottom: 32,
|
|
@@ -8176,7 +8247,7 @@ var Bo = {
|
|
|
8176
8247
|
};
|
|
8177
8248
|
//#endregion
|
|
8178
8249
|
//#region src/SelectSparkline.tsx
|
|
8179
|
-
function
|
|
8250
|
+
function Uo({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
8180
8251
|
let { ref: a, width: o } = Y(n), c = t ?? X(0), l = s(), u = null;
|
|
8181
8252
|
if (o > 0 && e.length > 1) {
|
|
8182
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];
|
|
@@ -8203,11 +8274,11 @@ function Vo({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
8203
8274
|
})]
|
|
8204
8275
|
}) }),
|
|
8205
8276
|
/* @__PURE__ */ m("path", {
|
|
8206
|
-
d:
|
|
8277
|
+
d: Lo(a, n - 4),
|
|
8207
8278
|
fill: `url(#${l}-sa)`
|
|
8208
8279
|
}),
|
|
8209
8280
|
/* @__PURE__ */ m("path", {
|
|
8210
|
-
d:
|
|
8281
|
+
d: Io(a),
|
|
8211
8282
|
fill: "none",
|
|
8212
8283
|
stroke: c,
|
|
8213
8284
|
strokeWidth: 2,
|
|
@@ -8288,8 +8359,8 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
8288
8359
|
}
|
|
8289
8360
|
//#endregion
|
|
8290
8361
|
//#region src/SelectBarChart.tsx
|
|
8291
|
-
function
|
|
8292
|
-
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 * _;
|
|
8293
8364
|
return /* @__PURE__ */ h("div", {
|
|
8294
8365
|
...a,
|
|
8295
8366
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -8315,7 +8386,7 @@ function Ho({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
8315
8386
|
stopOpacity: .62
|
|
8316
8387
|
})]
|
|
8317
8388
|
}) }),
|
|
8318
|
-
|
|
8389
|
+
No(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8319
8390
|
x1: p.left,
|
|
8320
8391
|
x2: c - p.right,
|
|
8321
8392
|
y1: x(e),
|
|
@@ -8365,8 +8436,8 @@ function Ho({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
8365
8436
|
}
|
|
8366
8437
|
//#endregion
|
|
8367
8438
|
//#region src/SelectLineChart.tsx
|
|
8368
|
-
function
|
|
8369
|
-
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;
|
|
8370
8441
|
return /* @__PURE__ */ h("div", {
|
|
8371
8442
|
...o,
|
|
8372
8443
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -8419,11 +8490,11 @@ function Uo({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
8419
8490
|
e.map((e, t) => {
|
|
8420
8491
|
let n = e.color ?? X(t), r = e.data.map((e, t) => [C(t), w(e)]);
|
|
8421
8492
|
return /* @__PURE__ */ h("g", { children: [i && /* @__PURE__ */ m("path", {
|
|
8422
|
-
d:
|
|
8493
|
+
d: Lo(r, D),
|
|
8423
8494
|
fill: `url(#${f}-a${t})`,
|
|
8424
8495
|
className: "select-chart__area"
|
|
8425
8496
|
}), /* @__PURE__ */ m("path", {
|
|
8426
|
-
d:
|
|
8497
|
+
d: Io(r),
|
|
8427
8498
|
fill: "none",
|
|
8428
8499
|
stroke: n,
|
|
8429
8500
|
strokeWidth: 2.25,
|
|
@@ -8478,8 +8549,8 @@ function Uo({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
8478
8549
|
}
|
|
8479
8550
|
//#endregion
|
|
8480
8551
|
//#region src/SelectStackedArea.tsx
|
|
8481
|
-
function
|
|
8482
|
-
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];
|
|
8483
8554
|
return /* @__PURE__ */ h("div", {
|
|
8484
8555
|
...a,
|
|
8485
8556
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -8508,7 +8579,7 @@ function Wo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8508
8579
|
})]
|
|
8509
8580
|
}, t);
|
|
8510
8581
|
}) }),
|
|
8511
|
-
|
|
8582
|
+
No(y).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8512
8583
|
x1: b.left,
|
|
8513
8584
|
x2: c - b.right,
|
|
8514
8585
|
y1: w(e),
|
|
@@ -8527,10 +8598,10 @@ function Wo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8527
8598
|
return /* @__PURE__ */ h("g", {
|
|
8528
8599
|
className: "select-chart__area",
|
|
8529
8600
|
children: [/* @__PURE__ */ m("path", {
|
|
8530
|
-
d:
|
|
8601
|
+
d: Ro(i, a),
|
|
8531
8602
|
fill: `url(#${u}-b${n})`
|
|
8532
8603
|
}), /* @__PURE__ */ m("path", {
|
|
8533
|
-
d:
|
|
8604
|
+
d: Io(i),
|
|
8534
8605
|
fill: "none",
|
|
8535
8606
|
stroke: r,
|
|
8536
8607
|
strokeWidth: 1.5,
|
|
@@ -8584,11 +8655,11 @@ function Wo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8584
8655
|
}
|
|
8585
8656
|
//#endregion
|
|
8586
8657
|
//#region src/SelectComboChart.tsx
|
|
8587
|
-
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 }) {
|
|
8588
8659
|
let { ref: l, width: u } = Y(r), f = Q(), p = s(), [g, _] = d(null), v = {
|
|
8589
|
-
...
|
|
8660
|
+
...Ho,
|
|
8590
8661
|
right: 58
|
|
8591
|
-
}, 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)]);
|
|
8592
8663
|
return /* @__PURE__ */ h("div", {
|
|
8593
8664
|
...c,
|
|
8594
8665
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -8614,7 +8685,7 @@ function Go({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8614
8685
|
stopOpacity: .55
|
|
8615
8686
|
})]
|
|
8616
8687
|
}) }),
|
|
8617
|
-
|
|
8688
|
+
No(S).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8618
8689
|
x1: v.left,
|
|
8619
8690
|
x2: u - v.right,
|
|
8620
8691
|
y1: A(e),
|
|
@@ -8628,7 +8699,7 @@ function Go({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8628
8699
|
textAnchor: "end",
|
|
8629
8700
|
children: i(e)
|
|
8630
8701
|
})] }, t)),
|
|
8631
|
-
|
|
8702
|
+
No(C).map((e, t) => /* @__PURE__ */ m("text", {
|
|
8632
8703
|
x: u - 4,
|
|
8633
8704
|
y: j(e),
|
|
8634
8705
|
className: "select-chart__ylabel",
|
|
@@ -8657,7 +8728,7 @@ function Go({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8657
8728
|
className: "select-chart__crosshair"
|
|
8658
8729
|
}),
|
|
8659
8730
|
/* @__PURE__ */ m("path", {
|
|
8660
|
-
d:
|
|
8731
|
+
d: Io(N),
|
|
8661
8732
|
fill: "none",
|
|
8662
8733
|
stroke: O,
|
|
8663
8734
|
strokeWidth: 2.5,
|
|
@@ -8715,8 +8786,8 @@ function Go({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8715
8786
|
}
|
|
8716
8787
|
//#endregion
|
|
8717
8788
|
//#region src/SelectDonut.tsx
|
|
8718
|
-
var
|
|
8719
|
-
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;
|
|
8720
8791
|
return /* @__PURE__ */ h("div", {
|
|
8721
8792
|
ref: f,
|
|
8722
8793
|
...d,
|
|
@@ -8759,7 +8830,7 @@ var Ko = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
8759
8830
|
w += e.value;
|
|
8760
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);
|
|
8761
8832
|
return /* @__PURE__ */ m("path", {
|
|
8762
|
-
d:
|
|
8833
|
+
d: Bo(b, x, S, C, c, l),
|
|
8763
8834
|
fill: `url(#${g}-s${t})`,
|
|
8764
8835
|
className: "select-chart__seg",
|
|
8765
8836
|
onMouseEnter: () => {
|
|
@@ -8810,8 +8881,8 @@ var Ko = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
8810
8881
|
});
|
|
8811
8882
|
//#endregion
|
|
8812
8883
|
//#region src/SelectColumnChart.tsx
|
|
8813
|
-
function
|
|
8814
|
-
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;
|
|
8815
8886
|
return /* @__PURE__ */ h("div", {
|
|
8816
8887
|
...o,
|
|
8817
8888
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -8840,7 +8911,7 @@ function qo({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
8840
8911
|
})]
|
|
8841
8912
|
}, t);
|
|
8842
8913
|
}) }),
|
|
8843
|
-
|
|
8914
|
+
No(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8844
8915
|
x1: v.left,
|
|
8845
8916
|
x2: l - v.right,
|
|
8846
8917
|
y1: C(e),
|
|
@@ -8922,7 +8993,7 @@ function qo({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
8922
8993
|
}
|
|
8923
8994
|
//#endregion
|
|
8924
8995
|
//#region src/SelectFunnel.tsx
|
|
8925
|
-
var
|
|
8996
|
+
var Xo = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
|
|
8926
8997
|
let a = Math.max(1, ...e.map((e) => e.value));
|
|
8927
8998
|
return /* @__PURE__ */ m("div", {
|
|
8928
8999
|
ref: i,
|
|
@@ -8964,19 +9035,19 @@ var Jo = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
|
|
|
8964
9035
|
});
|
|
8965
9036
|
//#endregion
|
|
8966
9037
|
//#region src/SelectGauge.tsx
|
|
8967
|
-
function
|
|
9038
|
+
function Zo(e) {
|
|
8968
9039
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
8969
9040
|
}
|
|
8970
|
-
function
|
|
9041
|
+
function Qo(e, t, n, r) {
|
|
8971
9042
|
let i = Math.PI + r * Math.PI;
|
|
8972
9043
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
8973
9044
|
}
|
|
8974
|
-
function
|
|
8975
|
-
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);
|
|
8976
9047
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
8977
9048
|
}
|
|
8978
|
-
var
|
|
8979
|
-
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({
|
|
8980
9051
|
value: u,
|
|
8981
9052
|
format: o
|
|
8982
9053
|
});
|
|
@@ -8999,13 +9070,13 @@ var Qo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
8999
9070
|
"aria-hidden": "true",
|
|
9000
9071
|
children: [/* @__PURE__ */ m("path", {
|
|
9001
9072
|
className: "select-gauge__track",
|
|
9002
|
-
d:
|
|
9073
|
+
d: $o(g, _, p, 0, 1),
|
|
9003
9074
|
fill: "none",
|
|
9004
9075
|
strokeWidth: d,
|
|
9005
9076
|
strokeLinecap: "round"
|
|
9006
9077
|
}), u > 0 && /* @__PURE__ */ m("path", {
|
|
9007
9078
|
className: "select-gauge__arc",
|
|
9008
|
-
d:
|
|
9079
|
+
d: $o(g, _, p, 0, u / 100),
|
|
9009
9080
|
fill: "none",
|
|
9010
9081
|
stroke: a ?? "var(--select-chart-1)",
|
|
9011
9082
|
strokeWidth: d,
|
|
@@ -9028,7 +9099,7 @@ var Qo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
9028
9099
|
children: n
|
|
9029
9100
|
})]
|
|
9030
9101
|
});
|
|
9031
|
-
}),
|
|
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) {
|
|
9032
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 = {
|
|
9033
9104
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
9034
9105
|
width: "fit-content",
|
|
@@ -9093,7 +9164,7 @@ var Qo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
9093
9164
|
});
|
|
9094
9165
|
//#endregion
|
|
9095
9166
|
//#region src/SelectProgressList.tsx
|
|
9096
|
-
function
|
|
9167
|
+
function rs({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período." }) {
|
|
9097
9168
|
if (e.length === 0) return /* @__PURE__ */ m("div", {
|
|
9098
9169
|
className: "select-progresslist__empty",
|
|
9099
9170
|
children: r
|
|
@@ -9144,7 +9215,7 @@ function ts({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
9144
9215
|
}
|
|
9145
9216
|
//#endregion
|
|
9146
9217
|
//#region src/SelectRadialBar.tsx
|
|
9147
|
-
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) {
|
|
9148
9219
|
let d = s(), f = t / 2, p = t / 2;
|
|
9149
9220
|
return /* @__PURE__ */ h("div", {
|
|
9150
9221
|
ref: u,
|
|
@@ -9184,7 +9255,7 @@ var ns = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, rs = r(f
|
|
|
9184
9255
|
}) }), e.map((e, i) => {
|
|
9185
9256
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
9186
9257
|
if (a <= n / 2) return null;
|
|
9187
|
-
let o =
|
|
9258
|
+
let o = is(e.value);
|
|
9188
9259
|
return /* @__PURE__ */ h("g", {
|
|
9189
9260
|
transform: `rotate(-90 ${f} ${p})`,
|
|
9190
9261
|
children: [/* @__PURE__ */ m("circle", {
|
|
@@ -9213,7 +9284,7 @@ var ns = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, rs = r(f
|
|
|
9213
9284
|
className: "select-radial__center",
|
|
9214
9285
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ m("strong", {
|
|
9215
9286
|
className: "select-radial__value",
|
|
9216
|
-
children: i(
|
|
9287
|
+
children: i(is(e[0].value))
|
|
9217
9288
|
}) : null)
|
|
9218
9289
|
})]
|
|
9219
9290
|
}), o && /* @__PURE__ */ m("ul", {
|
|
@@ -9231,15 +9302,15 @@ var ns = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, rs = r(f
|
|
|
9231
9302
|
}),
|
|
9232
9303
|
/* @__PURE__ */ m("span", {
|
|
9233
9304
|
className: "select-donut__legval",
|
|
9234
|
-
children: i(
|
|
9305
|
+
children: i(is(e.value))
|
|
9235
9306
|
})
|
|
9236
9307
|
]
|
|
9237
9308
|
}, t))
|
|
9238
9309
|
})]
|
|
9239
9310
|
});
|
|
9240
|
-
}),
|
|
9241
|
-
function
|
|
9242
|
-
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));
|
|
9243
9314
|
return /* @__PURE__ */ h("div", {
|
|
9244
9315
|
...l,
|
|
9245
9316
|
className: `select-chart-wrap${c ? " " + c : ""}`,
|
|
@@ -9268,7 +9339,7 @@ function cs({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9268
9339
|
})]
|
|
9269
9340
|
}, t);
|
|
9270
9341
|
}) }),
|
|
9271
|
-
|
|
9342
|
+
No(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9272
9343
|
x1: D(e),
|
|
9273
9344
|
x2: D(e),
|
|
9274
9345
|
y1: 6,
|
|
@@ -9314,7 +9385,7 @@ function cs({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9314
9385
|
onMouseLeave: p.hide
|
|
9315
9386
|
}),
|
|
9316
9387
|
/* @__PURE__ */ h("text", {
|
|
9317
|
-
x: b -
|
|
9388
|
+
x: b - ss / 2,
|
|
9318
9389
|
y: n,
|
|
9319
9390
|
className: "select-chart__ylabel",
|
|
9320
9391
|
dominantBaseline: "middle",
|
|
@@ -9329,7 +9400,7 @@ function cs({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9329
9400
|
}
|
|
9330
9401
|
//#endregion
|
|
9331
9402
|
//#region src/SelectWaterfall.tsx
|
|
9332
|
-
function
|
|
9403
|
+
function ds({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
9333
9404
|
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
9334
9405
|
if (e.total) return u = e.value, {
|
|
9335
9406
|
...e,
|
|
@@ -9342,7 +9413,7 @@ function ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9342
9413
|
start: t,
|
|
9343
9414
|
end: u
|
|
9344
9415
|
};
|
|
9345
|
-
}), 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 = {
|
|
9346
9417
|
total: "var(--select-chart-1)",
|
|
9347
9418
|
inc: "var(--select-chart-4)",
|
|
9348
9419
|
dec: "var(--select-chart-3)"
|
|
@@ -9376,7 +9447,7 @@ function ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9376
9447
|
stopOpacity: .62
|
|
9377
9448
|
})]
|
|
9378
9449
|
}, e)) }),
|
|
9379
|
-
|
|
9450
|
+
No(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9380
9451
|
x1: p.left,
|
|
9381
9452
|
x2: o - p.right,
|
|
9382
9453
|
y1: S(e),
|
|
@@ -9444,7 +9515,7 @@ function ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9444
9515
|
}
|
|
9445
9516
|
//#endregion
|
|
9446
9517
|
//#region src/SelectBullet.tsx
|
|
9447
|
-
var
|
|
9518
|
+
var fs = (e) => Math.max(0, Math.min(100, e)), ps = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
9448
9519
|
return /* @__PURE__ */ m("div", {
|
|
9449
9520
|
ref: i,
|
|
9450
9521
|
...r,
|
|
@@ -9482,12 +9553,12 @@ var us = (e) => Math.max(0, Math.min(100, e)), ds = r(function({ items: e, forma
|
|
|
9482
9553
|
children: [/* @__PURE__ */ m("span", {
|
|
9483
9554
|
className: "select-bullet__fill",
|
|
9484
9555
|
style: {
|
|
9485
|
-
width: `${
|
|
9556
|
+
width: `${fs(e.value / i * 100)}%`,
|
|
9486
9557
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
9487
9558
|
}
|
|
9488
9559
|
}), /* @__PURE__ */ m("span", {
|
|
9489
9560
|
className: "select-bullet__tick",
|
|
9490
|
-
style: { left: `${
|
|
9561
|
+
style: { left: `${fs(e.target / i * 100)}%` }
|
|
9491
9562
|
})]
|
|
9492
9563
|
})]
|
|
9493
9564
|
}, `${e.label}-${n}`);
|
|
@@ -9496,7 +9567,7 @@ var us = (e) => Math.max(0, Math.min(100, e)), ds = r(function({ items: e, forma
|
|
|
9496
9567
|
});
|
|
9497
9568
|
//#endregion
|
|
9498
9569
|
//#region src/SelectTreemap.tsx
|
|
9499
|
-
function
|
|
9570
|
+
function ms(e, t, n) {
|
|
9500
9571
|
let r = [], i = (e, t) => {
|
|
9501
9572
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
9502
9573
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -9547,8 +9618,8 @@ function fs(e, t, n) {
|
|
|
9547
9618
|
};
|
|
9548
9619
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
9549
9620
|
}
|
|
9550
|
-
function
|
|
9551
|
-
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) : [];
|
|
9552
9623
|
return /* @__PURE__ */ h("div", {
|
|
9553
9624
|
...i,
|
|
9554
9625
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -9618,8 +9689,8 @@ function ps({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9618
9689
|
}
|
|
9619
9690
|
//#endregion
|
|
9620
9691
|
//#region src/SelectScatter.tsx
|
|
9621
|
-
function
|
|
9622
|
-
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;
|
|
9623
9694
|
return /* @__PURE__ */ h("div", {
|
|
9624
9695
|
...c,
|
|
9625
9696
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -9629,7 +9700,7 @@ function ms({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9629
9700
|
height: t,
|
|
9630
9701
|
className: "select-chart",
|
|
9631
9702
|
children: [
|
|
9632
|
-
|
|
9703
|
+
No(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9633
9704
|
x1: v.left,
|
|
9634
9705
|
x2: u - v.right,
|
|
9635
9706
|
y1: C(e),
|
|
@@ -9643,7 +9714,7 @@ function ms({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9643
9714
|
textAnchor: "end",
|
|
9644
9715
|
children: r(e)
|
|
9645
9716
|
})] }, `y${t}`)),
|
|
9646
|
-
|
|
9717
|
+
No(p).map((e, r, i) => /* @__PURE__ */ m("text", {
|
|
9647
9718
|
x: S(e),
|
|
9648
9719
|
y: t - v.bottom + 16,
|
|
9649
9720
|
className: "select-chart__xlabel",
|
|
@@ -9690,8 +9761,8 @@ function ms({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9690
9761
|
}
|
|
9691
9762
|
//#endregion
|
|
9692
9763
|
//#region src/SelectRadar.tsx
|
|
9693
|
-
var
|
|
9694
|
-
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";
|
|
9695
9766
|
return /* @__PURE__ */ h("div", {
|
|
9696
9767
|
ref: u,
|
|
9697
9768
|
...l,
|
|
@@ -9800,7 +9871,7 @@ var hs = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
9800
9871
|
});
|
|
9801
9872
|
//#endregion
|
|
9802
9873
|
//#region src/SelectSankey.tsx
|
|
9803
|
-
function
|
|
9874
|
+
function vs({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
9804
9875
|
let { ref: s, width: c } = Y(t), l = Q(), u = [], d = [];
|
|
9805
9876
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
9806
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) => {
|
|
@@ -9885,8 +9956,8 @@ function gs({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
9885
9956
|
}
|
|
9886
9957
|
//#endregion
|
|
9887
9958
|
//#region src/SelectCandlestick.tsx
|
|
9888
|
-
function
|
|
9889
|
-
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);
|
|
9890
9961
|
return /* @__PURE__ */ h("div", {
|
|
9891
9962
|
...o,
|
|
9892
9963
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -9975,8 +10046,8 @@ function _s({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
9975
10046
|
}
|
|
9976
10047
|
//#endregion
|
|
9977
10048
|
//#region src/SelectBoxPlot.tsx
|
|
9978
|
-
function
|
|
9979
|
-
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);
|
|
9980
10051
|
return /* @__PURE__ */ h("div", {
|
|
9981
10052
|
...i,
|
|
9982
10053
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -9985,7 +10056,7 @@ function vs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9985
10056
|
width: o,
|
|
9986
10057
|
height: t,
|
|
9987
10058
|
className: "select-chart",
|
|
9988
|
-
children: [
|
|
10059
|
+
children: [No(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9989
10060
|
x1: c.left,
|
|
9990
10061
|
x2: o - c.right,
|
|
9991
10062
|
y1: p(e),
|
|
@@ -10095,7 +10166,7 @@ function vs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10095
10166
|
}
|
|
10096
10167
|
//#endregion
|
|
10097
10168
|
//#region src/SelectRangeBar.tsx
|
|
10098
|
-
function
|
|
10169
|
+
function xs({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
10099
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);
|
|
10100
10171
|
return /* @__PURE__ */ h("div", {
|
|
10101
10172
|
...c,
|
|
@@ -10176,7 +10247,7 @@ function ys({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
10176
10247
|
}
|
|
10177
10248
|
//#endregion
|
|
10178
10249
|
//#region src/SelectCalendarHeatmap.tsx
|
|
10179
|
-
var
|
|
10250
|
+
var Ss = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
10180
10251
|
"Seg",
|
|
10181
10252
|
"",
|
|
10182
10253
|
"Qua",
|
|
@@ -10249,8 +10320,8 @@ var bs = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10249
10320
|
]
|
|
10250
10321
|
}), /* @__PURE__ */ m($, { tip: p.tip })]
|
|
10251
10322
|
});
|
|
10252
|
-
}),
|
|
10253
|
-
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;
|
|
10254
10325
|
return /* @__PURE__ */ h("div", {
|
|
10255
10326
|
ref: s,
|
|
10256
10327
|
...o,
|
|
@@ -10280,7 +10351,7 @@ var bs = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10280
10351
|
}, t)), e.map((e, t) => {
|
|
10281
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);
|
|
10282
10353
|
return /* @__PURE__ */ m("path", {
|
|
10283
|
-
d:
|
|
10354
|
+
d: Bo(l, u, o, 0, r, i),
|
|
10284
10355
|
fill: a,
|
|
10285
10356
|
fillOpacity: .8,
|
|
10286
10357
|
className: "select-chart__seg",
|
|
@@ -10323,13 +10394,13 @@ var bs = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10323
10394
|
});
|
|
10324
10395
|
//#endregion
|
|
10325
10396
|
//#region src/SelectSlope.tsx
|
|
10326
|
-
function
|
|
10397
|
+
function ws({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
10327
10398
|
let { ref: s, width: c } = Y(r), l = Q(), u = {
|
|
10328
10399
|
top: 24,
|
|
10329
10400
|
right: 64,
|
|
10330
10401
|
bottom: 12,
|
|
10331
10402
|
left: 132
|
|
10332
|
-
}, 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;
|
|
10333
10404
|
return /* @__PURE__ */ h("div", {
|
|
10334
10405
|
...o,
|
|
10335
10406
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -10445,8 +10516,8 @@ function Ss({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
10445
10516
|
}
|
|
10446
10517
|
//#endregion
|
|
10447
10518
|
//#region src/SelectDumbbell.tsx
|
|
10448
|
-
function
|
|
10449
|
-
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;
|
|
10450
10521
|
return /* @__PURE__ */ h("div", {
|
|
10451
10522
|
...s,
|
|
10452
10523
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -10455,7 +10526,7 @@ function Cs({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
10455
10526
|
width: u,
|
|
10456
10527
|
height: c,
|
|
10457
10528
|
className: "select-chart",
|
|
10458
|
-
children: [
|
|
10529
|
+
children: [No(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
10459
10530
|
x1: x(e),
|
|
10460
10531
|
x2: x(e),
|
|
10461
10532
|
y1: 6,
|
|
@@ -10538,7 +10609,7 @@ function Cs({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
10538
10609
|
}
|
|
10539
10610
|
//#endregion
|
|
10540
10611
|
//#region src/SelectMarimekko.tsx
|
|
10541
|
-
function
|
|
10612
|
+
function Es({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
10542
10613
|
let { ref: o, width: s } = Y(t), c = Q(), l = {
|
|
10543
10614
|
top: 6,
|
|
10544
10615
|
right: 6,
|
|
@@ -10618,7 +10689,7 @@ function ws({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
10618
10689
|
}
|
|
10619
10690
|
//#endregion
|
|
10620
10691
|
//#region src/SelectGaugeBands.tsx
|
|
10621
|
-
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) {
|
|
10622
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) => {
|
|
10623
10694
|
let t = Math.PI + e * Math.PI;
|
|
10624
10695
|
return [p + f * Math.cos(t), g + f * Math.sin(t)];
|
|
@@ -10690,7 +10761,7 @@ var Ts = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
10690
10761
|
});
|
|
10691
10762
|
//#endregion
|
|
10692
10763
|
//#region src/SelectStreamGraph.tsx
|
|
10693
|
-
function
|
|
10764
|
+
function Os({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
10694
10765
|
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = {
|
|
10695
10766
|
top: 14,
|
|
10696
10767
|
right: 14,
|
|
@@ -10734,7 +10805,7 @@ function Es({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
10734
10805
|
})]
|
|
10735
10806
|
}, t)) }),
|
|
10736
10807
|
w.map((e, t) => /* @__PURE__ */ m("path", {
|
|
10737
|
-
d:
|
|
10808
|
+
d: Ro(e.upper, e.lower),
|
|
10738
10809
|
fill: `url(#${u}-st${t})`,
|
|
10739
10810
|
className: "select-chart__area"
|
|
10740
10811
|
}, t)),
|
|
@@ -10781,7 +10852,7 @@ function Es({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
10781
10852
|
}
|
|
10782
10853
|
//#endregion
|
|
10783
10854
|
//#region src/SelectSunburst.tsx
|
|
10784
|
-
var
|
|
10855
|
+
var ks = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
10785
10856
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
10786
10857
|
var t;
|
|
10787
10858
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -10807,7 +10878,7 @@ var Ds = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10807
10878
|
_ += r;
|
|
10808
10879
|
let a = _ / g * 360, o = e.color ?? X(t), v = i;
|
|
10809
10880
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
10810
|
-
d:
|
|
10881
|
+
d: Bo(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
10811
10882
|
fill: o,
|
|
10812
10883
|
className: "select-chart__seg",
|
|
10813
10884
|
onMouseEnter: () => s.show({
|
|
@@ -10827,7 +10898,7 @@ var Ds = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10827
10898
|
v += t.value / g * 360;
|
|
10828
10899
|
let f = v, p = t.color ?? o, h = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
10829
10900
|
return /* @__PURE__ */ m("path", {
|
|
10830
|
-
d:
|
|
10901
|
+
d: Bo(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
10831
10902
|
fill: p,
|
|
10832
10903
|
fillOpacity: h,
|
|
10833
10904
|
className: "select-chart__seg",
|
|
@@ -10874,8 +10945,8 @@ var Ds = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10874
10945
|
});
|
|
10875
10946
|
//#endregion
|
|
10876
10947
|
//#region src/SelectViolin.tsx
|
|
10877
|
-
function
|
|
10878
|
-
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));
|
|
10879
10950
|
return /* @__PURE__ */ h("div", {
|
|
10880
10951
|
...i,
|
|
10881
10952
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -10884,7 +10955,7 @@ function Os({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10884
10955
|
width: o,
|
|
10885
10956
|
height: t,
|
|
10886
10957
|
className: "select-chart",
|
|
10887
|
-
children: [
|
|
10958
|
+
children: [No(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
10888
10959
|
x1: c.left,
|
|
10889
10960
|
x2: o - c.right,
|
|
10890
10961
|
y1: p(e),
|
|
@@ -10901,7 +10972,7 @@ function Os({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10901
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 = [];
|
|
10902
10973
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
10903
10974
|
for (let e = 0; e < o; e++) g.push([i - d(e), l(e)]);
|
|
10904
|
-
let b = `${
|
|
10975
|
+
let b = `${Fo(f)} ${Fo(g).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
10905
10976
|
return /* @__PURE__ */ h("g", { children: [
|
|
10906
10977
|
/* @__PURE__ */ m("path", {
|
|
10907
10978
|
d: b,
|
|
@@ -10962,7 +11033,7 @@ function Os({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10962
11033
|
}
|
|
10963
11034
|
//#endregion
|
|
10964
11035
|
//#region src/SelectChord.tsx
|
|
10965
|
-
var
|
|
11036
|
+
var js = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
10966
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;
|
|
10967
11038
|
for (let e = 0; e < l; e++) {
|
|
10968
11039
|
let t = b, n = b + g[e] * v;
|
|
@@ -11029,7 +11100,7 @@ var ks = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
11029
11100
|
}, n)), y.map((e, n) => {
|
|
11030
11101
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
11031
11102
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
11032
|
-
d:
|
|
11103
|
+
d: Bo(u, d, f, p, w(e.a0), w(e.a1)),
|
|
11033
11104
|
fill: X(n),
|
|
11034
11105
|
className: "select-chord__arc"
|
|
11035
11106
|
}), /* @__PURE__ */ m("text", {
|
|
@@ -11047,7 +11118,7 @@ var ks = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
11047
11118
|
});
|
|
11048
11119
|
//#endregion
|
|
11049
11120
|
//#region src/SelectHexbin.tsx
|
|
11050
|
-
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 }) {
|
|
11051
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) => {
|
|
11052
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);
|
|
11053
11124
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
@@ -11099,7 +11170,7 @@ function As({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
11099
11170
|
}
|
|
11100
11171
|
//#endregion
|
|
11101
11172
|
//#region src/SelectWordCloud.tsx
|
|
11102
|
-
var
|
|
11173
|
+
var Ns = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
11103
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);
|
|
11104
11175
|
return /* @__PURE__ */ m("div", {
|
|
11105
11176
|
ref: a,
|
|
@@ -11116,7 +11187,7 @@ var js = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
11116
11187
|
children: e.text
|
|
11117
11188
|
}, `${e.text}-${t}`))
|
|
11118
11189
|
});
|
|
11119
|
-
}),
|
|
11190
|
+
}), Ps = [
|
|
11120
11191
|
[
|
|
11121
11192
|
-59.6,
|
|
11122
11193
|
-80,
|
|
@@ -21511,24 +21582,24 @@ var js = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
21511
21582
|
-27.1,
|
|
21512
21583
|
83.5
|
|
21513
21584
|
]
|
|
21514
|
-
],
|
|
21515
|
-
function
|
|
21516
|
-
let n = e *
|
|
21585
|
+
], Fs = Math.PI / 180;
|
|
21586
|
+
function Is(e, t) {
|
|
21587
|
+
let n = e * Fs, r = t * Fs;
|
|
21517
21588
|
return [
|
|
21518
21589
|
Math.cos(n) * Math.sin(r),
|
|
21519
21590
|
Math.sin(n),
|
|
21520
21591
|
Math.cos(n) * Math.cos(r)
|
|
21521
21592
|
];
|
|
21522
21593
|
}
|
|
21523
|
-
function
|
|
21524
|
-
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;
|
|
21525
21596
|
return [
|
|
21526
21597
|
o,
|
|
21527
21598
|
t * Math.cos(c) - s * Math.sin(c),
|
|
21528
21599
|
t * Math.sin(c) + s * Math.cos(c)
|
|
21529
21600
|
];
|
|
21530
21601
|
}
|
|
21531
|
-
function
|
|
21602
|
+
function Rs(e, t, n) {
|
|
21532
21603
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
21533
21604
|
r = Math.max(-1, Math.min(1, r));
|
|
21534
21605
|
let i = Math.acos(r);
|
|
@@ -21540,9 +21611,9 @@ function Is(e, t, n) {
|
|
|
21540
21611
|
e[2] * o + t[2] * s
|
|
21541
21612
|
];
|
|
21542
21613
|
}
|
|
21543
|
-
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) {
|
|
21544
21615
|
var S, C;
|
|
21545
|
-
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({
|
|
21546
21617
|
lng: -O,
|
|
21547
21618
|
lat: r
|
|
21548
21619
|
}), j = u({
|
|
@@ -21566,19 +21637,19 @@ var Ls = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21566
21637
|
o(() => (k.current || re(), () => {
|
|
21567
21638
|
L.current && cancelAnimationFrame(L.current), L.current = 0;
|
|
21568
21639
|
}), []);
|
|
21569
|
-
let
|
|
21570
|
-
|
|
21640
|
+
let ie = u(v);
|
|
21641
|
+
ie.current = v, o(() => {
|
|
21571
21642
|
let e = E.current;
|
|
21572
21643
|
if (!e) return;
|
|
21573
21644
|
let t = (e) => {
|
|
21574
21645
|
var t;
|
|
21575
21646
|
e.preventDefault();
|
|
21576
21647
|
let n = Math.max(-240, Math.min(240, e.deltaMode ? e.deltaY * 40 : e.deltaY)), r = M.current * Math.exp(-n * .0012);
|
|
21577
|
-
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);
|
|
21578
21649
|
};
|
|
21579
21650
|
return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
|
|
21580
21651
|
}, []);
|
|
21581
|
-
let
|
|
21652
|
+
let ae = (e) => {
|
|
21582
21653
|
var t, n;
|
|
21583
21654
|
(t = (n = e.target).setPointerCapture) == null || t.call(n, e.pointerId), P.current = {
|
|
21584
21655
|
x: e.clientX,
|
|
@@ -21587,7 +21658,7 @@ var Ls = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21587
21658
|
lng: 0,
|
|
21588
21659
|
lat: 0
|
|
21589
21660
|
}, N.current = null, ne(!0), re();
|
|
21590
|
-
},
|
|
21661
|
+
}, oe = (e) => {
|
|
21591
21662
|
if (!P.current) return;
|
|
21592
21663
|
let t = .34 / M.current, n = e.clientX - P.current.x, r = e.clientY - P.current.y;
|
|
21593
21664
|
P.current = {
|
|
@@ -21597,41 +21668,41 @@ var Ls = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21597
21668
|
lng: n * t,
|
|
21598
21669
|
lat: r * t
|
|
21599
21670
|
};
|
|
21600
|
-
},
|
|
21671
|
+
}, H = (e) => {
|
|
21601
21672
|
var t, n;
|
|
21602
21673
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ne(!1), re());
|
|
21603
|
-
},
|
|
21604
|
-
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);
|
|
21605
21676
|
return {
|
|
21606
|
-
x:
|
|
21607
|
-
y:
|
|
21677
|
+
x: W + U * t[0],
|
|
21678
|
+
y: G - U * t[1],
|
|
21608
21679
|
z: t[2]
|
|
21609
21680
|
};
|
|
21610
|
-
},
|
|
21681
|
+
}, ce = l(() => {
|
|
21611
21682
|
let e = [];
|
|
21612
21683
|
for (let t = -180; t < 180; t += 30) {
|
|
21613
21684
|
let n = [];
|
|
21614
|
-
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));
|
|
21615
21686
|
e.push(n);
|
|
21616
21687
|
}
|
|
21617
21688
|
for (let t = -60; t <= 60; t += 30) {
|
|
21618
21689
|
let n = [];
|
|
21619
|
-
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));
|
|
21620
21691
|
e.push(n);
|
|
21621
21692
|
}
|
|
21622
21693
|
return e;
|
|
21623
|
-
}, []),
|
|
21694
|
+
}, []), le = l(() => Ps.map((e) => {
|
|
21624
21695
|
let t = [];
|
|
21625
|
-
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]));
|
|
21626
21697
|
return t;
|
|
21627
|
-
}), []),
|
|
21628
|
-
x:
|
|
21629
|
-
y:
|
|
21630
|
-
}),
|
|
21631
|
-
if (g) for (let e of
|
|
21632
|
-
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;
|
|
21633
21704
|
for (let e of t) if (e[2] > 0) {
|
|
21634
|
-
let t =
|
|
21705
|
+
let t = K(e);
|
|
21635
21706
|
ue += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
21636
21707
|
} else r = !1;
|
|
21637
21708
|
let i = [];
|
|
@@ -21654,30 +21725,30 @@ var Ls = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21654
21725
|
}
|
|
21655
21726
|
if (i.length >= 3) {
|
|
21656
21727
|
let e = (e, t) => {
|
|
21657
|
-
let n =
|
|
21728
|
+
let n = K(t.v);
|
|
21658
21729
|
if (e.edge && t.edge) {
|
|
21659
|
-
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;
|
|
21660
21731
|
for (; r > Math.PI;) r -= 2 * Math.PI;
|
|
21661
21732
|
for (; r < -Math.PI;) r += 2 * Math.PI;
|
|
21662
21733
|
let i = +(r > 0);
|
|
21663
|
-
return `A${
|
|
21734
|
+
return `A${U.toFixed(1)},${U.toFixed(1)} 0 0 ${i} ${n.x.toFixed(1)},${n.y.toFixed(1)}`;
|
|
21664
21735
|
}
|
|
21665
21736
|
return `L${n.x.toFixed(1)},${n.y.toFixed(1)}`;
|
|
21666
|
-
}, t =
|
|
21667
|
-
|
|
21668
|
-
for (let t = 1; t < i.length; t++)
|
|
21669
|
-
|
|
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";
|
|
21670
21741
|
}
|
|
21671
21742
|
}
|
|
21672
21743
|
let de = (e) => {
|
|
21673
21744
|
let t = "", n = !1;
|
|
21674
21745
|
for (let r of e) {
|
|
21675
|
-
let e =
|
|
21746
|
+
let e = se(r);
|
|
21676
21747
|
e.z > 0 ? (t += `${n ? "L" : "M"}${e.x.toFixed(1)},${e.y.toFixed(1)}`, n = !0) : n = !1;
|
|
21677
21748
|
}
|
|
21678
21749
|
return t;
|
|
21679
21750
|
}, fe = Math.max(1, ...e.map((e) => e.value ?? 0)), pe = e.map((e, t) => {
|
|
21680
|
-
let n =
|
|
21751
|
+
let n = se(Is(e.lat, e.lng));
|
|
21681
21752
|
return {
|
|
21682
21753
|
...e,
|
|
21683
21754
|
i: t,
|
|
@@ -21687,20 +21758,20 @@ var Ls = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21687
21758
|
col: e.color ?? c
|
|
21688
21759
|
};
|
|
21689
21760
|
}), me = z == null ? null : e[z], he = t.map((e, t) => {
|
|
21690
|
-
let n =
|
|
21761
|
+
let n = Is(e.from.lat, e.from.lng), r = Is(e.to.lat, e.to.lng), i = "", a = !1;
|
|
21691
21762
|
for (let e = 0; e <= 40; e++) {
|
|
21692
|
-
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([
|
|
21693
21764
|
o[0] * s,
|
|
21694
21765
|
o[1] * s,
|
|
21695
21766
|
o[2] * s
|
|
21696
21767
|
]);
|
|
21697
21768
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
21698
21769
|
}
|
|
21699
|
-
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([
|
|
21700
21771
|
s[0] * l,
|
|
21701
21772
|
s[1] * l,
|
|
21702
21773
|
s[2] * l
|
|
21703
|
-
]), f = me != null && (
|
|
21774
|
+
]), f = me != null && (zs(e.from, me) || zs(e.to, me));
|
|
21704
21775
|
return {
|
|
21705
21776
|
d: i,
|
|
21706
21777
|
col: e.color ?? c,
|
|
@@ -21727,11 +21798,11 @@ var Ls = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21727
21798
|
F.current = !0;
|
|
21728
21799
|
},
|
|
21729
21800
|
onPointerLeave: (e) => {
|
|
21730
|
-
F.current = !1,
|
|
21801
|
+
F.current = !1, H(e), B(null), T.hide(), re();
|
|
21731
21802
|
},
|
|
21732
|
-
onPointerDown:
|
|
21733
|
-
onPointerMove:
|
|
21734
|
-
onPointerUp:
|
|
21803
|
+
onPointerDown: ae,
|
|
21804
|
+
onPointerMove: oe,
|
|
21805
|
+
onPointerUp: H,
|
|
21735
21806
|
children: [/* @__PURE__ */ h("svg", {
|
|
21736
21807
|
width: D,
|
|
21737
21808
|
height: D,
|
|
@@ -21826,43 +21897,43 @@ var Ls = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21826
21897
|
/* @__PURE__ */ m("clipPath", {
|
|
21827
21898
|
id: `${w}-clip`,
|
|
21828
21899
|
children: /* @__PURE__ */ m("circle", {
|
|
21829
|
-
cx:
|
|
21830
|
-
cy:
|
|
21831
|
-
r:
|
|
21900
|
+
cx: W,
|
|
21901
|
+
cy: G,
|
|
21902
|
+
r: U
|
|
21832
21903
|
})
|
|
21833
21904
|
})
|
|
21834
21905
|
] }),
|
|
21835
21906
|
/* @__PURE__ */ m("circle", {
|
|
21836
|
-
cx:
|
|
21837
|
-
cy:
|
|
21838
|
-
r:
|
|
21907
|
+
cx: W,
|
|
21908
|
+
cy: G,
|
|
21909
|
+
r: U + 24,
|
|
21839
21910
|
fill: `url(#${w}-atmo)`
|
|
21840
21911
|
}),
|
|
21841
21912
|
/* @__PURE__ */ m("circle", {
|
|
21842
|
-
cx:
|
|
21843
|
-
cy:
|
|
21844
|
-
r:
|
|
21913
|
+
cx: W,
|
|
21914
|
+
cy: G,
|
|
21915
|
+
r: U,
|
|
21845
21916
|
fill: `url(#${w}-sphere)`,
|
|
21846
21917
|
stroke: `color-mix(in srgb, ${c} 40%, transparent)`,
|
|
21847
21918
|
strokeWidth: 1
|
|
21848
21919
|
}),
|
|
21849
21920
|
/* @__PURE__ */ m("circle", {
|
|
21850
|
-
cx:
|
|
21851
|
-
cy:
|
|
21852
|
-
r:
|
|
21921
|
+
cx: W,
|
|
21922
|
+
cy: G,
|
|
21923
|
+
r: U,
|
|
21853
21924
|
fill: `url(#${w}-glow)`
|
|
21854
21925
|
}),
|
|
21855
21926
|
/* @__PURE__ */ m("circle", {
|
|
21856
|
-
cx:
|
|
21857
|
-
cy:
|
|
21858
|
-
r:
|
|
21927
|
+
cx: W,
|
|
21928
|
+
cy: G,
|
|
21929
|
+
r: U,
|
|
21859
21930
|
fill: `url(#${w}-spec)`
|
|
21860
21931
|
}),
|
|
21861
21932
|
/* @__PURE__ */ h("g", {
|
|
21862
21933
|
clipPath: `url(#${w}-clip)`,
|
|
21863
21934
|
children: [
|
|
21864
|
-
g &&
|
|
21865
|
-
d:
|
|
21935
|
+
g && q && /* @__PURE__ */ m("path", {
|
|
21936
|
+
d: q,
|
|
21866
21937
|
className: "select-globe__land",
|
|
21867
21938
|
fill: `color-mix(in srgb, ${c} 38%, transparent)`
|
|
21868
21939
|
}),
|
|
@@ -21872,7 +21943,7 @@ var Ls = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21872
21943
|
fill: "none",
|
|
21873
21944
|
stroke: `color-mix(in srgb, ${c} 68%, transparent)`
|
|
21874
21945
|
}),
|
|
21875
|
-
|
|
21946
|
+
ce.map((e, t) => /* @__PURE__ */ m("path", {
|
|
21876
21947
|
d: de(e),
|
|
21877
21948
|
className: "select-globe__grid"
|
|
21878
21949
|
}, `g${t}`)),
|
|
@@ -21926,7 +21997,7 @@ var Ls = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21926
21997
|
B(e.i), T.show({
|
|
21927
21998
|
x: e.p.x,
|
|
21928
21999
|
y: e.p.y - e.r - 4,
|
|
21929
|
-
place: e.p.y <
|
|
22000
|
+
place: e.p.y < G ? "bottom" : "top",
|
|
21930
22001
|
title: e.label,
|
|
21931
22002
|
rows: e.value == null ? [] : [{
|
|
21932
22003
|
label: "Volume",
|
|
@@ -21974,8 +22045,8 @@ var Ls = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21974
22045
|
});
|
|
21975
22046
|
//#endregion
|
|
21976
22047
|
//#region src/SelectTicker.tsx
|
|
21977
|
-
function
|
|
21978
|
-
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);
|
|
21979
22050
|
o(() => {
|
|
21980
22051
|
var e, n;
|
|
21981
22052
|
let r = a.current;
|
|
@@ -22036,12 +22107,12 @@ function zs({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
22036
22107
|
}
|
|
22037
22108
|
//#endregion
|
|
22038
22109
|
//#region src/SelectPareto.tsx
|
|
22039
|
-
function
|
|
22110
|
+
function Hs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
22040
22111
|
var a;
|
|
22041
22112
|
let { ref: o, width: c } = Y(t), l = Q(), u = s(), [f, p] = d(null), g = {
|
|
22042
|
-
...
|
|
22113
|
+
...Ho,
|
|
22043
22114
|
right: 44
|
|
22044
|
-
}, _ = [...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);
|
|
22045
22116
|
return /* @__PURE__ */ h("div", {
|
|
22046
22117
|
...i,
|
|
22047
22118
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -22070,7 +22141,7 @@ function Bs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22070
22141
|
stopOpacity: .55
|
|
22071
22142
|
})]
|
|
22072
22143
|
}) }),
|
|
22073
|
-
|
|
22144
|
+
No(w).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
22074
22145
|
x1: g.left,
|
|
22075
22146
|
x2: c - g.right,
|
|
22076
22147
|
y1: O(e),
|
|
@@ -22134,7 +22205,7 @@ function Bs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22134
22205
|
}, t);
|
|
22135
22206
|
}),
|
|
22136
22207
|
/* @__PURE__ */ m("path", {
|
|
22137
|
-
d:
|
|
22208
|
+
d: Io(j),
|
|
22138
22209
|
fill: "none",
|
|
22139
22210
|
stroke: N,
|
|
22140
22211
|
strokeWidth: 2,
|
|
@@ -22162,7 +22233,7 @@ function Bs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22162
22233
|
}
|
|
22163
22234
|
//#endregion
|
|
22164
22235
|
//#region src/SelectWaffle.tsx
|
|
22165
|
-
var
|
|
22236
|
+
var Us = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
22166
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) => ({
|
|
22167
22238
|
i: t,
|
|
22168
22239
|
frac: e - u[t]
|
|
@@ -22211,7 +22282,7 @@ var Vs = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
22211
22282
|
});
|
|
22212
22283
|
//#endregion
|
|
22213
22284
|
//#region src/SelectPyramid.tsx
|
|
22214
|
-
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 }) {
|
|
22215
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);
|
|
22216
22287
|
return /* @__PURE__ */ h("div", {
|
|
22217
22288
|
...l,
|
|
@@ -22319,7 +22390,7 @@ function Hs({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
22319
22390
|
}
|
|
22320
22391
|
//#endregion
|
|
22321
22392
|
//#region src/SelectBump.tsx
|
|
22322
|
-
function
|
|
22393
|
+
function Gs({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
22323
22394
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
22324
22395
|
top: 16,
|
|
22325
22396
|
right: 78,
|
|
@@ -22356,7 +22427,7 @@ function Us({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
22356
22427
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
22357
22428
|
children: [
|
|
22358
22429
|
/* @__PURE__ */ m("path", {
|
|
22359
|
-
d:
|
|
22430
|
+
d: Io(a),
|
|
22360
22431
|
fill: "none",
|
|
22361
22432
|
stroke: i,
|
|
22362
22433
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -22404,7 +22475,7 @@ function Us({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
22404
22475
|
}
|
|
22405
22476
|
//#endregion
|
|
22406
22477
|
//#region src/SelectParallel.tsx
|
|
22407
|
-
function
|
|
22478
|
+
function Ks({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
22408
22479
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
22409
22480
|
top: 30,
|
|
22410
22481
|
right: 28,
|
|
@@ -22496,25 +22567,25 @@ function Ws({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
22496
22567
|
}
|
|
22497
22568
|
//#endregion
|
|
22498
22569
|
//#region src/SelectIcicle.tsx
|
|
22499
|
-
function
|
|
22500
|
-
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;
|
|
22501
22572
|
}
|
|
22502
|
-
function
|
|
22503
|
-
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)));
|
|
22504
22575
|
}
|
|
22505
|
-
function
|
|
22506
|
-
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) => {
|
|
22507
22578
|
if (p.push({
|
|
22508
22579
|
node: e,
|
|
22509
22580
|
x0: t,
|
|
22510
22581
|
x1: n,
|
|
22511
22582
|
depth: r,
|
|
22512
22583
|
color: e.color ?? X(i),
|
|
22513
|
-
value:
|
|
22584
|
+
value: qs(e)
|
|
22514
22585
|
}), e.children && e.children.length) {
|
|
22515
|
-
let a = e.children.reduce((e, t) => e +
|
|
22586
|
+
let a = e.children.reduce((e, t) => e + qs(t), 0) || 1, o = t;
|
|
22516
22587
|
e.children.forEach((e, s) => {
|
|
22517
|
-
let c = (n - t) *
|
|
22588
|
+
let c = (n - t) * qs(e) / a;
|
|
22518
22589
|
g(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
22519
22590
|
});
|
|
22520
22591
|
}
|
|
@@ -22575,7 +22646,7 @@ function qs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22575
22646
|
}
|
|
22576
22647
|
//#endregion
|
|
22577
22648
|
//#region src/SelectTree.tsx
|
|
22578
|
-
function
|
|
22649
|
+
function Xs({ data: e, height: t = 260, className: n, ...r }) {
|
|
22579
22650
|
let { ref: i, width: a } = Y(t), o = Q(), [s, c] = d(null), l = {
|
|
22580
22651
|
top: 14,
|
|
22581
22652
|
right: 96,
|
|
@@ -22653,7 +22724,7 @@ function Js({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
22653
22724
|
}
|
|
22654
22725
|
//#endregion
|
|
22655
22726
|
//#region src/SelectVenn.tsx
|
|
22656
|
-
var
|
|
22727
|
+
var Zs = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
22657
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]] : [
|
|
22658
22729
|
[o, s - l * .5],
|
|
22659
22730
|
[o - l * .5, s + l * .36],
|
|
@@ -22718,7 +22789,7 @@ var Ys = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
22718
22789
|
}, t))
|
|
22719
22790
|
})]
|
|
22720
22791
|
});
|
|
22721
|
-
}),
|
|
22792
|
+
}), Qs = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
22722
22793
|
let o = Q(), [s, c] = d(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
22723
22794
|
d: e,
|
|
22724
22795
|
i: t,
|
|
@@ -22821,7 +22892,7 @@ var Ys = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
22821
22892
|
});
|
|
22822
22893
|
//#endregion
|
|
22823
22894
|
//#region src/SelectNetwork.tsx
|
|
22824
|
-
function
|
|
22895
|
+
function $s({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
22825
22896
|
let { ref: o, width: s } = Y(n), c = Q(), [u, f] = d(null), p = l(() => {
|
|
22826
22897
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
22827
22898
|
if (!a) return o;
|
|
@@ -22935,14 +23006,14 @@ function Zs({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
22935
23006
|
}
|
|
22936
23007
|
//#endregion
|
|
22937
23008
|
//#region src/SelectSearchMenu.tsx
|
|
22938
|
-
function
|
|
23009
|
+
function ec({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", children: o }) {
|
|
22939
23010
|
return /* @__PURE__ */ h("div", {
|
|
22940
23011
|
className: "select-combobox__panel select-searchmenu",
|
|
22941
23012
|
style: { width: a },
|
|
22942
23013
|
children: [
|
|
22943
23014
|
/* @__PURE__ */ m("div", {
|
|
22944
23015
|
className: "select-combobox__search",
|
|
22945
|
-
children: /* @__PURE__ */ m(
|
|
23016
|
+
children: /* @__PURE__ */ m(Ti, {
|
|
22946
23017
|
value: e,
|
|
22947
23018
|
onChange: t,
|
|
22948
23019
|
placeholder: n
|
|
@@ -22952,7 +23023,7 @@ function Qs({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
22952
23023
|
className: "select-combobox__empty",
|
|
22953
23024
|
role: "status",
|
|
22954
23025
|
children: r
|
|
22955
|
-
}) : /* @__PURE__ */ m(
|
|
23026
|
+
}) : /* @__PURE__ */ m(tc, { children: o }),
|
|
22956
23027
|
i != null && i !== !1 ? /* @__PURE__ */ m("div", {
|
|
22957
23028
|
className: "select-searchmenu__footer",
|
|
22958
23029
|
children: i
|
|
@@ -22960,7 +23031,7 @@ function Qs({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
22960
23031
|
]
|
|
22961
23032
|
});
|
|
22962
23033
|
}
|
|
22963
|
-
function
|
|
23034
|
+
function tc({ children: e }) {
|
|
22964
23035
|
let t = Qt({
|
|
22965
23036
|
selector: ".select-combobox__option",
|
|
22966
23037
|
y: 6,
|
|
@@ -22974,7 +23045,7 @@ function $s({ children: e }) {
|
|
|
22974
23045
|
children: e
|
|
22975
23046
|
});
|
|
22976
23047
|
}
|
|
22977
|
-
function
|
|
23048
|
+
function nc({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSelect: i }) {
|
|
22978
23049
|
return /* @__PURE__ */ h("button", {
|
|
22979
23050
|
type: "button",
|
|
22980
23051
|
role: "option",
|
|
@@ -23000,7 +23071,7 @@ function ec({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSele
|
|
|
23000
23071
|
}
|
|
23001
23072
|
//#endregion
|
|
23002
23073
|
//#region src/SelectThemeSwitcher.tsx
|
|
23003
|
-
var
|
|
23074
|
+
var rc = [
|
|
23004
23075
|
{
|
|
23005
23076
|
value: "light",
|
|
23006
23077
|
label: "Claro",
|
|
@@ -23017,15 +23088,15 @@ var tc = [
|
|
|
23017
23088
|
icon: /* @__PURE__ */ m(ke, {})
|
|
23018
23089
|
}
|
|
23019
23090
|
];
|
|
23020
|
-
function
|
|
23091
|
+
function ic(e) {
|
|
23021
23092
|
if (e === "system") {
|
|
23022
23093
|
var t, n;
|
|
23023
23094
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
23024
23095
|
}
|
|
23025
23096
|
return e;
|
|
23026
23097
|
}
|
|
23027
|
-
function
|
|
23028
|
-
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];
|
|
23029
23100
|
return o(() => {
|
|
23030
23101
|
if (!i) return;
|
|
23031
23102
|
let e = (e) => {
|
|
@@ -23036,7 +23107,7 @@ function rc({ value: e, onChange: t, className: n, ...r }) {
|
|
|
23036
23107
|
...r,
|
|
23037
23108
|
className: `select-themeswitcher${n ? " " + n : ""}`,
|
|
23038
23109
|
ref: s,
|
|
23039
|
-
children: [/* @__PURE__ */ m(
|
|
23110
|
+
children: [/* @__PURE__ */ m(Ji, {
|
|
23040
23111
|
active: i,
|
|
23041
23112
|
onClick: () => a((e) => !e),
|
|
23042
23113
|
children: /* @__PURE__ */ h("span", {
|
|
@@ -23045,7 +23116,7 @@ function rc({ value: e, onChange: t, className: n, ...r }) {
|
|
|
23045
23116
|
})
|
|
23046
23117
|
}), i && /* @__PURE__ */ m("div", {
|
|
23047
23118
|
className: "select-themeswitcher__popover",
|
|
23048
|
-
children: /* @__PURE__ */ m(
|
|
23119
|
+
children: /* @__PURE__ */ m(Ui, { children: rc.map((n) => /* @__PURE__ */ m(Wi, {
|
|
23049
23120
|
icon: n.icon,
|
|
23050
23121
|
active: n.value === e,
|
|
23051
23122
|
trailing: n.value === e ? /* @__PURE__ */ m(Ve, {}) : null,
|
|
@@ -23059,8 +23130,8 @@ function rc({ value: e, onChange: t, className: n, ...r }) {
|
|
|
23059
23130
|
}
|
|
23060
23131
|
//#endregion
|
|
23061
23132
|
//#region src/SelectDetail.tsx
|
|
23062
|
-
var
|
|
23063
|
-
function
|
|
23133
|
+
var oc = n(!1);
|
|
23134
|
+
function sc({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
23064
23135
|
let r = Qt({
|
|
23065
23136
|
selector: ".select-detail",
|
|
23066
23137
|
y: 8,
|
|
@@ -23068,7 +23139,7 @@ function ac({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
23068
23139
|
stagger: .05,
|
|
23069
23140
|
scroll: !0
|
|
23070
23141
|
});
|
|
23071
|
-
return /* @__PURE__ */ m(
|
|
23142
|
+
return /* @__PURE__ */ m(oc.Provider, {
|
|
23072
23143
|
value: n,
|
|
23073
23144
|
children: /* @__PURE__ */ m("div", {
|
|
23074
23145
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}`,
|
|
@@ -23077,8 +23148,8 @@ function ac({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
23077
23148
|
})
|
|
23078
23149
|
});
|
|
23079
23150
|
}
|
|
23080
|
-
var
|
|
23081
|
-
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;
|
|
23082
23153
|
return /* @__PURE__ */ h("div", {
|
|
23083
23154
|
ref: c,
|
|
23084
23155
|
...s,
|
|
@@ -23098,7 +23169,7 @@ var oc = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
23098
23169
|
})
|
|
23099
23170
|
]
|
|
23100
23171
|
});
|
|
23101
|
-
}),
|
|
23172
|
+
}), lc = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
|
|
23102
23173
|
let s = r === "vertical";
|
|
23103
23174
|
return /* @__PURE__ */ m("ol", {
|
|
23104
23175
|
ref: o,
|
|
@@ -23137,7 +23208,7 @@ var oc = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
23137
23208
|
});
|
|
23138
23209
|
//#endregion
|
|
23139
23210
|
//#region src/SelectSetupGuide.tsx
|
|
23140
|
-
function
|
|
23211
|
+
function uc({ status: e }) {
|
|
23141
23212
|
return /* @__PURE__ */ m("span", {
|
|
23142
23213
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
23143
23214
|
"aria-hidden": "true",
|
|
@@ -23156,13 +23227,13 @@ function cc({ status: e }) {
|
|
|
23156
23227
|
})
|
|
23157
23228
|
});
|
|
23158
23229
|
}
|
|
23159
|
-
var
|
|
23230
|
+
var dc = {
|
|
23160
23231
|
done: "feito",
|
|
23161
23232
|
todo: "a fazer",
|
|
23162
23233
|
next: "próximo passo",
|
|
23163
23234
|
skipped: "pulado",
|
|
23164
23235
|
waiting: "aguardando"
|
|
23165
|
-
},
|
|
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) {
|
|
23166
23237
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0;
|
|
23167
23238
|
return /* @__PURE__ */ h("section", {
|
|
23168
23239
|
ref: u,
|
|
@@ -23225,14 +23296,14 @@ var lc = {
|
|
|
23225
23296
|
children: e.steps.map((e) => /* @__PURE__ */ h("li", {
|
|
23226
23297
|
className: `select-setupguide__step is-${e.status}`,
|
|
23227
23298
|
children: [
|
|
23228
|
-
/* @__PURE__ */ m(
|
|
23299
|
+
/* @__PURE__ */ m(uc, { status: e.status }),
|
|
23229
23300
|
/* @__PURE__ */ h("span", {
|
|
23230
23301
|
className: "select-setupguide__text",
|
|
23231
23302
|
children: [/* @__PURE__ */ h("span", {
|
|
23232
23303
|
className: "select-setupguide__steptitle",
|
|
23233
23304
|
children: [e.title, /* @__PURE__ */ h("span", {
|
|
23234
23305
|
className: "select-setupguide__sr",
|
|
23235
|
-
children: [" — ",
|
|
23306
|
+
children: [" — ", dc[e.status]]
|
|
23236
23307
|
})]
|
|
23237
23308
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
23238
23309
|
className: "select-setupguide__stepdesc",
|
|
@@ -23251,7 +23322,7 @@ var lc = {
|
|
|
23251
23322
|
})]
|
|
23252
23323
|
});
|
|
23253
23324
|
});
|
|
23254
|
-
function
|
|
23325
|
+
function pc({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
23255
23326
|
return /* @__PURE__ */ h("div", {
|
|
23256
23327
|
className: "select-setupnext",
|
|
23257
23328
|
children: [
|
|
@@ -23276,37 +23347,37 @@ function dc({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
23276
23347
|
}
|
|
23277
23348
|
//#endregion
|
|
23278
23349
|
//#region src/SelectTour.tsx
|
|
23279
|
-
var
|
|
23280
|
-
function
|
|
23350
|
+
var mc = 6, hc = 12;
|
|
23351
|
+
function gc(e) {
|
|
23281
23352
|
let t = document.querySelector(e);
|
|
23282
23353
|
if (!t) return null;
|
|
23283
23354
|
let n = t.getBoundingClientRect();
|
|
23284
23355
|
return n.width === 0 && n.height === 0 ? null : {
|
|
23285
|
-
top: n.top -
|
|
23286
|
-
left: n.left -
|
|
23356
|
+
top: n.top - mc,
|
|
23357
|
+
left: n.left - mc,
|
|
23287
23358
|
width: n.width + 12,
|
|
23288
23359
|
height: n.height + 12
|
|
23289
23360
|
};
|
|
23290
23361
|
}
|
|
23291
|
-
function
|
|
23362
|
+
function _c(e) {
|
|
23292
23363
|
let t = document.querySelector(e);
|
|
23293
23364
|
if (!t) return !1;
|
|
23294
23365
|
let n = t.getBoundingClientRect();
|
|
23295
23366
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
23296
23367
|
}
|
|
23297
|
-
function
|
|
23298
|
-
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);
|
|
23299
23370
|
o(() => {
|
|
23300
23371
|
e && p(0);
|
|
23301
23372
|
}, [e]);
|
|
23302
23373
|
let C = s[f], w = f === s.length - 1, T = i(() => {
|
|
23303
23374
|
if (!C) return;
|
|
23304
|
-
let e =
|
|
23375
|
+
let e = gc(C.target);
|
|
23305
23376
|
v(e);
|
|
23306
23377
|
let t = x.current;
|
|
23307
23378
|
if (!e || !t) return;
|
|
23308
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
23309
|
-
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({
|
|
23310
23381
|
top: s,
|
|
23311
23382
|
left: o
|
|
23312
23383
|
});
|
|
@@ -23408,7 +23479,7 @@ function gc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
23408
23479
|
}
|
|
23409
23480
|
//#endregion
|
|
23410
23481
|
//#region src/SelectPlanCard.tsx
|
|
23411
|
-
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) {
|
|
23412
23483
|
return /* @__PURE__ */ h("div", {
|
|
23413
23484
|
ref: d,
|
|
23414
23485
|
...u,
|
|
@@ -23463,7 +23534,7 @@ var _c = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
23463
23534
|
})]
|
|
23464
23535
|
})]
|
|
23465
23536
|
});
|
|
23466
|
-
}),
|
|
23537
|
+
}), bc = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, className: a, ...o }, s) {
|
|
23467
23538
|
return /* @__PURE__ */ h("div", {
|
|
23468
23539
|
ref: s,
|
|
23469
23540
|
...o,
|
|
@@ -23499,7 +23570,7 @@ var _c = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
23499
23570
|
]
|
|
23500
23571
|
});
|
|
23501
23572
|
});
|
|
23502
|
-
function
|
|
23573
|
+
function xc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClick: a }) {
|
|
23503
23574
|
let o = /* @__PURE__ */ h(p, { children: [
|
|
23504
23575
|
e && /* @__PURE__ */ m("span", {
|
|
23505
23576
|
className: "select-listrow__media",
|
|
@@ -23533,7 +23604,7 @@ function yc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClic
|
|
|
23533
23604
|
}
|
|
23534
23605
|
//#endregion
|
|
23535
23606
|
//#region src/SelectThumbnail.tsx
|
|
23536
|
-
var
|
|
23607
|
+
var Sc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a) {
|
|
23537
23608
|
let [s, c] = d(!1);
|
|
23538
23609
|
return o(() => c(!1), [e]), /* @__PURE__ */ m("span", {
|
|
23539
23610
|
ref: a,
|
|
@@ -23558,8 +23629,8 @@ var bc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a
|
|
|
23558
23629
|
});
|
|
23559
23630
|
//#endregion
|
|
23560
23631
|
//#region src/SelectImageZoomModal.tsx
|
|
23561
|
-
function
|
|
23562
|
-
return /* @__PURE__ */ m(
|
|
23632
|
+
function Cc({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
23633
|
+
return /* @__PURE__ */ m(ia, {
|
|
23563
23634
|
open: e,
|
|
23564
23635
|
onClose: t,
|
|
23565
23636
|
title: i,
|
|
@@ -23577,7 +23648,7 @@ function xc({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
23577
23648
|
}
|
|
23578
23649
|
//#endregion
|
|
23579
23650
|
//#region src/SelectZoomThumbnail.tsx
|
|
23580
|
-
function
|
|
23651
|
+
function wc({ src: e, alt: t = "", size: n = 40, title: r }) {
|
|
23581
23652
|
let [i, a] = d(!1);
|
|
23582
23653
|
return e ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
23583
23654
|
type: "button",
|
|
@@ -23590,25 +23661,25 @@ function Sc({ src: e, alt: t = "", size: n = 40, title: r }) {
|
|
|
23590
23661
|
cursor: "zoom-in",
|
|
23591
23662
|
display: "inline-flex"
|
|
23592
23663
|
},
|
|
23593
|
-
children: /* @__PURE__ */ m(
|
|
23664
|
+
children: /* @__PURE__ */ m(Sc, {
|
|
23594
23665
|
src: e,
|
|
23595
23666
|
size: n,
|
|
23596
23667
|
alt: t
|
|
23597
23668
|
})
|
|
23598
|
-
}), i && /* @__PURE__ */ m(
|
|
23669
|
+
}), i && /* @__PURE__ */ m(Cc, {
|
|
23599
23670
|
open: !0,
|
|
23600
23671
|
onClose: () => a(!1),
|
|
23601
23672
|
src: e,
|
|
23602
23673
|
alt: t,
|
|
23603
23674
|
title: r ?? t
|
|
23604
|
-
})] }) : /* @__PURE__ */ m(
|
|
23675
|
+
})] }) : /* @__PURE__ */ m(Sc, {
|
|
23605
23676
|
size: n,
|
|
23606
23677
|
alt: t
|
|
23607
23678
|
});
|
|
23608
23679
|
}
|
|
23609
23680
|
//#endregion
|
|
23610
23681
|
//#region src/SelectMediaCell.tsx
|
|
23611
|
-
var
|
|
23682
|
+
var Tc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
23612
23683
|
return /* @__PURE__ */ h("span", {
|
|
23613
23684
|
ref: a,
|
|
23614
23685
|
...i,
|
|
@@ -23630,14 +23701,14 @@ var Cc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
23630
23701
|
});
|
|
23631
23702
|
//#endregion
|
|
23632
23703
|
//#region src/SelectOfflineModal.tsx
|
|
23633
|
-
function
|
|
23704
|
+
function Ec() {
|
|
23634
23705
|
let [e, t] = d(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
23635
23706
|
return o(() => {
|
|
23636
23707
|
let e = () => t(!1), n = () => t(!0);
|
|
23637
23708
|
return window.addEventListener("online", e), window.addEventListener("offline", n), () => {
|
|
23638
23709
|
window.removeEventListener("online", e), window.removeEventListener("offline", n);
|
|
23639
23710
|
};
|
|
23640
|
-
}, []), /* @__PURE__ */ m(
|
|
23711
|
+
}, []), /* @__PURE__ */ m(ia, {
|
|
23641
23712
|
open: e,
|
|
23642
23713
|
onClose: () => {},
|
|
23643
23714
|
showClose: !1,
|
|
@@ -23653,7 +23724,7 @@ function wc() {
|
|
|
23653
23724
|
}
|
|
23654
23725
|
//#endregion
|
|
23655
23726
|
//#region src/SelectKeyValueEditor.tsx
|
|
23656
|
-
function
|
|
23727
|
+
function Dc(e) {
|
|
23657
23728
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
23658
23729
|
name: String(e.name ?? e.key ?? ""),
|
|
23659
23730
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -23662,8 +23733,8 @@ function Tc(e) {
|
|
|
23662
23733
|
value: t == null ? "" : String(t)
|
|
23663
23734
|
})) : [];
|
|
23664
23735
|
}
|
|
23665
|
-
var
|
|
23666
|
-
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 ? {
|
|
23667
23738
|
...t,
|
|
23668
23739
|
...n
|
|
23669
23740
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), g = () => t([...d, {
|
|
@@ -23727,7 +23798,7 @@ var Ec = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23727
23798
|
})
|
|
23728
23799
|
]
|
|
23729
23800
|
});
|
|
23730
|
-
}),
|
|
23801
|
+
}), kc = (e) => String(e).padStart(2, "0"), Ac = {
|
|
23731
23802
|
"en-US": {
|
|
23732
23803
|
weekdays: [
|
|
23733
23804
|
"Su",
|
|
@@ -23786,34 +23857,34 @@ var Ec = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23786
23857
|
to: "Até",
|
|
23787
23858
|
cancel: "Cancelar",
|
|
23788
23859
|
apply: "Aplicar",
|
|
23789
|
-
formatDate: (e) => `${
|
|
23860
|
+
formatDate: (e) => `${kc(e.getDate())} / ${kc(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
23790
23861
|
}
|
|
23791
|
-
},
|
|
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) => {
|
|
23792
23863
|
let t = /* @__PURE__ */ new Date();
|
|
23793
23864
|
return {
|
|
23794
23865
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
23795
23866
|
to: t
|
|
23796
23867
|
};
|
|
23797
|
-
},
|
|
23868
|
+
}, Lc = [
|
|
23798
23869
|
{
|
|
23799
23870
|
id: "15m",
|
|
23800
23871
|
label: "Last 15 minutes",
|
|
23801
|
-
range: () =>
|
|
23872
|
+
range: () => Ic(15)
|
|
23802
23873
|
},
|
|
23803
23874
|
{
|
|
23804
23875
|
id: "1h",
|
|
23805
23876
|
label: "Last 1 hour",
|
|
23806
|
-
range: () =>
|
|
23877
|
+
range: () => Ic(60)
|
|
23807
23878
|
},
|
|
23808
23879
|
{
|
|
23809
23880
|
id: "3h",
|
|
23810
23881
|
label: "Last 3 hours",
|
|
23811
|
-
range: () =>
|
|
23882
|
+
range: () => Ic(180)
|
|
23812
23883
|
},
|
|
23813
23884
|
{
|
|
23814
23885
|
id: "24h",
|
|
23815
23886
|
label: "Last 24 hours",
|
|
23816
|
-
range: () =>
|
|
23887
|
+
range: () => Ic(1440)
|
|
23817
23888
|
},
|
|
23818
23889
|
{
|
|
23819
23890
|
id: "3d",
|
|
@@ -23829,78 +23900,78 @@ var Ec = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23829
23900
|
id: "all",
|
|
23830
23901
|
label: "All",
|
|
23831
23902
|
range: () => ({
|
|
23832
|
-
from:
|
|
23833
|
-
to:
|
|
23903
|
+
from: jc(/* @__PURE__ */ new Date()),
|
|
23904
|
+
to: jc(/* @__PURE__ */ new Date())
|
|
23834
23905
|
})
|
|
23835
23906
|
}
|
|
23836
|
-
],
|
|
23837
|
-
let t =
|
|
23907
|
+
], Rc = (e) => {
|
|
23908
|
+
let t = jc(/* @__PURE__ */ new Date());
|
|
23838
23909
|
return {
|
|
23839
|
-
from:
|
|
23910
|
+
from: Nc(t, -e),
|
|
23840
23911
|
to: t
|
|
23841
23912
|
};
|
|
23842
|
-
},
|
|
23843
|
-
let t = jc(
|
|
23913
|
+
}, zc = (e) => {
|
|
23914
|
+
let t = Nc(jc(/* @__PURE__ */ new Date()), -e);
|
|
23844
23915
|
return {
|
|
23845
23916
|
from: t,
|
|
23846
23917
|
to: t
|
|
23847
23918
|
};
|
|
23848
|
-
},
|
|
23919
|
+
}, Bc = [
|
|
23849
23920
|
{
|
|
23850
23921
|
id: "today",
|
|
23851
23922
|
label: "Hoje",
|
|
23852
|
-
range: () =>
|
|
23923
|
+
range: () => Rc(0)
|
|
23853
23924
|
},
|
|
23854
23925
|
{
|
|
23855
23926
|
id: "yesterday",
|
|
23856
23927
|
label: "Ontem",
|
|
23857
|
-
range: () =>
|
|
23928
|
+
range: () => zc(1)
|
|
23858
23929
|
},
|
|
23859
23930
|
{
|
|
23860
23931
|
id: "7d",
|
|
23861
23932
|
label: "Últimos 7 dias",
|
|
23862
|
-
range: () =>
|
|
23933
|
+
range: () => Rc(6)
|
|
23863
23934
|
},
|
|
23864
23935
|
{
|
|
23865
23936
|
id: "10d",
|
|
23866
23937
|
label: "Últimos 10 dias",
|
|
23867
|
-
range: () =>
|
|
23938
|
+
range: () => Rc(9)
|
|
23868
23939
|
},
|
|
23869
23940
|
{
|
|
23870
23941
|
id: "15d",
|
|
23871
23942
|
label: "Últimos 15 dias",
|
|
23872
|
-
range: () =>
|
|
23943
|
+
range: () => Rc(14)
|
|
23873
23944
|
},
|
|
23874
23945
|
{
|
|
23875
23946
|
id: "20d",
|
|
23876
23947
|
label: "Últimos 20 dias",
|
|
23877
|
-
range: () =>
|
|
23948
|
+
range: () => Rc(19)
|
|
23878
23949
|
},
|
|
23879
23950
|
{
|
|
23880
23951
|
id: "30d",
|
|
23881
23952
|
label: "Últimos 30 dias",
|
|
23882
|
-
range: () =>
|
|
23953
|
+
range: () => Rc(29)
|
|
23883
23954
|
},
|
|
23884
23955
|
{
|
|
23885
23956
|
id: "90d",
|
|
23886
23957
|
label: "Últimos 90 dias",
|
|
23887
|
-
range: () =>
|
|
23958
|
+
range: () => Rc(89)
|
|
23888
23959
|
}
|
|
23889
23960
|
];
|
|
23890
|
-
function
|
|
23961
|
+
function Vc(e) {
|
|
23891
23962
|
if (!e) return "—";
|
|
23892
23963
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
23893
23964
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
23894
23965
|
}
|
|
23895
|
-
var
|
|
23896
|
-
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 ?? {
|
|
23897
23968
|
from: g,
|
|
23898
23969
|
to: g
|
|
23899
|
-
}), [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", {
|
|
23900
23971
|
className: "select-datepicker__placeholder",
|
|
23901
23972
|
children: "— / — / ——"
|
|
23902
23973
|
}), O = (e) => {
|
|
23903
|
-
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) ? {
|
|
23904
23975
|
from: e,
|
|
23905
23976
|
to: null
|
|
23906
23977
|
} : {
|
|
@@ -23910,7 +23981,7 @@ var Bc = r(function({ value: e, presets: t = Fc, onApply: n, onCancel: r, accent
|
|
|
23910
23981
|
}, k = (e) => {
|
|
23911
23982
|
if (e.disabled || !e.range) return;
|
|
23912
23983
|
let t = e.range();
|
|
23913
|
-
y(t), C(e.id), t.from && x(
|
|
23984
|
+
y(t), C(e.id), t.from && x(Mc(t.from));
|
|
23914
23985
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
23915
23986
|
return /* @__PURE__ */ m("div", {
|
|
23916
23987
|
ref: f,
|
|
@@ -23956,7 +24027,7 @@ var Bc = r(function({ value: e, presets: t = Fc, onApply: n, onCancel: r, accent
|
|
|
23956
24027
|
}),
|
|
23957
24028
|
o && /* @__PURE__ */ m("span", {
|
|
23958
24029
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
23959
|
-
children:
|
|
24030
|
+
children: Vc(v[e])
|
|
23960
24031
|
})
|
|
23961
24032
|
]
|
|
23962
24033
|
}, e))
|
|
@@ -23968,8 +24039,8 @@ var Bc = r(function({ value: e, presets: t = Fc, onApply: n, onCancel: r, accent
|
|
|
23968
24039
|
type: "button",
|
|
23969
24040
|
className: "select-datepicker__nav",
|
|
23970
24041
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
23971
|
-
onClick: () => x((e) =>
|
|
23972
|
-
children: /* @__PURE__ */ m(
|
|
24042
|
+
onClick: () => x((e) => Pc(e, -1)),
|
|
24043
|
+
children: /* @__PURE__ */ m(H, {})
|
|
23973
24044
|
}),
|
|
23974
24045
|
/* @__PURE__ */ h("span", {
|
|
23975
24046
|
className: "select-datepicker__monthlabel",
|
|
@@ -23983,8 +24054,8 @@ var Bc = r(function({ value: e, presets: t = Fc, onApply: n, onCancel: r, accent
|
|
|
23983
24054
|
type: "button",
|
|
23984
24055
|
className: "select-datepicker__nav",
|
|
23985
24056
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
23986
|
-
onClick: () => x((e) =>
|
|
23987
|
-
children: /* @__PURE__ */ m(
|
|
24057
|
+
onClick: () => x((e) => Pc(e, 1)),
|
|
24058
|
+
children: /* @__PURE__ */ m(oe, {})
|
|
23988
24059
|
})
|
|
23989
24060
|
]
|
|
23990
24061
|
}),
|
|
@@ -23995,7 +24066,7 @@ var Bc = r(function({ value: e, presets: t = Fc, onApply: n, onCancel: r, accent
|
|
|
23995
24066
|
className: "select-datepicker__weekday",
|
|
23996
24067
|
children: e
|
|
23997
24068
|
}, t)), T.map((e) => {
|
|
23998
|
-
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" : "");
|
|
23999
24070
|
return /* @__PURE__ */ m("div", {
|
|
24000
24071
|
className: s,
|
|
24001
24072
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -24026,17 +24097,17 @@ var Bc = r(function({ value: e, presets: t = Fc, onApply: n, onCancel: r, accent
|
|
|
24026
24097
|
})]
|
|
24027
24098
|
})
|
|
24028
24099
|
});
|
|
24029
|
-
}),
|
|
24030
|
-
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) {
|
|
24031
24102
|
for (let r of t) {
|
|
24032
24103
|
var n;
|
|
24033
24104
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
24034
|
-
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;
|
|
24035
24106
|
}
|
|
24036
|
-
return
|
|
24107
|
+
return Wc(e.start, e.end) ? Gc(e.start) : `${Gc(e.start)} – ${Gc(e.end)}`;
|
|
24037
24108
|
}
|
|
24038
|
-
function
|
|
24039
|
-
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());
|
|
24040
24111
|
return /* @__PURE__ */ m(on, {
|
|
24041
24112
|
active: c,
|
|
24042
24113
|
onClose: () => l(!1),
|
|
@@ -24048,11 +24119,11 @@ function Gc({ value: e, onChange: t, presets: n = Rc, maxDate: r, placement: i =
|
|
|
24048
24119
|
inline: !s,
|
|
24049
24120
|
disabled: o,
|
|
24050
24121
|
icon: /* @__PURE__ */ m(rt, {}),
|
|
24051
|
-
trailingIcon: /* @__PURE__ */ m(
|
|
24122
|
+
trailingIcon: /* @__PURE__ */ m(U, {}),
|
|
24052
24123
|
onClick: () => l((e) => !e),
|
|
24053
|
-
children:
|
|
24124
|
+
children: Kc(e, n)
|
|
24054
24125
|
}),
|
|
24055
|
-
children: /* @__PURE__ */ m(
|
|
24126
|
+
children: /* @__PURE__ */ m(Hc, {
|
|
24056
24127
|
embedded: !0,
|
|
24057
24128
|
locale: "pt-BR",
|
|
24058
24129
|
showTime: !1,
|
|
@@ -24065,8 +24136,8 @@ function Gc({ value: e, onChange: t, presets: n = Rc, maxDate: r, placement: i =
|
|
|
24065
24136
|
onCancel: () => l(!1),
|
|
24066
24137
|
onApply: (e) => {
|
|
24067
24138
|
e.from && t({
|
|
24068
|
-
start:
|
|
24069
|
-
end:
|
|
24139
|
+
start: Uc(e.from),
|
|
24140
|
+
end: Uc(e.to ?? e.from)
|
|
24070
24141
|
}), l(!1);
|
|
24071
24142
|
}
|
|
24072
24143
|
})
|
|
@@ -24074,7 +24145,7 @@ function Gc({ value: e, onChange: t, presets: n = Rc, maxDate: r, placement: i =
|
|
|
24074
24145
|
}
|
|
24075
24146
|
//#endregion
|
|
24076
24147
|
//#region src/SelectNumberField.tsx
|
|
24077
|
-
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) {
|
|
24078
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) => {
|
|
24079
24150
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
24080
24151
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -24148,7 +24219,7 @@ var Kc = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
24148
24219
|
});
|
|
24149
24220
|
//#endregion
|
|
24150
24221
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
24151
|
-
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 }) {
|
|
24152
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) => {
|
|
24153
24224
|
let i = n + r;
|
|
24154
24225
|
if (i < 0 || i >= e.length) return;
|
|
@@ -24203,7 +24274,7 @@ function qc({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
24203
24274
|
onClick: r.moveUp
|
|
24204
24275
|
}), /* @__PURE__ */ m(J, {
|
|
24205
24276
|
size: "sm",
|
|
24206
|
-
icon: /* @__PURE__ */ m(
|
|
24277
|
+
icon: /* @__PURE__ */ m(U, {}),
|
|
24207
24278
|
label: "Mover para baixo",
|
|
24208
24279
|
disabled: r.isLast,
|
|
24209
24280
|
onClick: r.moveDown
|
|
@@ -24243,7 +24314,7 @@ function qc({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
24243
24314
|
}
|
|
24244
24315
|
//#endregion
|
|
24245
24316
|
//#region src/SelectBuilderLayout.tsx
|
|
24246
|
-
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 }) {
|
|
24247
24318
|
let d = v();
|
|
24248
24319
|
return /* @__PURE__ */ m(ri, {
|
|
24249
24320
|
title: e,
|
|
@@ -24283,7 +24354,7 @@ function Jc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24283
24354
|
}
|
|
24284
24355
|
//#endregion
|
|
24285
24356
|
//#region src/SelectBuilderWorkspace.tsx
|
|
24286
|
-
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" }) {
|
|
24287
24358
|
var w;
|
|
24288
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) => {
|
|
24289
24360
|
f === void 0 && D(e), g == null || g(e);
|
|
@@ -24309,7 +24380,7 @@ function Yc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24309
24380
|
className: "select-page__back",
|
|
24310
24381
|
onClick: () => T(n || -1),
|
|
24311
24382
|
"aria-label": "Voltar",
|
|
24312
|
-
children: /* @__PURE__ */ m(
|
|
24383
|
+
children: /* @__PURE__ */ m(W, {})
|
|
24313
24384
|
}),
|
|
24314
24385
|
/* @__PURE__ */ h("div", {
|
|
24315
24386
|
className: "select-bwork__ident",
|
|
@@ -24368,7 +24439,7 @@ function Yc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24368
24439
|
"aria-label": "Seções de configuração",
|
|
24369
24440
|
children: [_ && /* @__PURE__ */ m("div", {
|
|
24370
24441
|
className: "select-bwork__search",
|
|
24371
|
-
children: /* @__PURE__ */ m(
|
|
24442
|
+
children: /* @__PURE__ */ m(Ti, {
|
|
24372
24443
|
value: O,
|
|
24373
24444
|
onChange: k,
|
|
24374
24445
|
placeholder: "Buscar ajuste…"
|
|
@@ -24443,10 +24514,10 @@ function Yc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24443
24514
|
}
|
|
24444
24515
|
//#endregion
|
|
24445
24516
|
//#region src/SelectFlowCanvas.tsx
|
|
24446
|
-
var
|
|
24447
|
-
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 }) {
|
|
24448
24519
|
let _ = s().replace(/:/g, ""), [v, y] = d(c), b = o ?? v, x = (e) => {
|
|
24449
|
-
let t =
|
|
24520
|
+
let t = Qc(Math.min(f, Math.max(u, e)));
|
|
24450
24521
|
o === void 0 && y(t), l == null || l(t);
|
|
24451
24522
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
24452
24523
|
return /* @__PURE__ */ h("div", {
|
|
@@ -24562,7 +24633,7 @@ function Zc({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
24562
24633
|
})]
|
|
24563
24634
|
});
|
|
24564
24635
|
}
|
|
24565
|
-
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 }) {
|
|
24566
24637
|
let x = `${p ? " is-selected" : v ? " is-invalid" : g ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
24567
24638
|
left: e,
|
|
24568
24639
|
top: t,
|
|
@@ -24638,7 +24709,7 @@ function Qc({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
24638
24709
|
})]
|
|
24639
24710
|
});
|
|
24640
24711
|
}
|
|
24641
|
-
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" }) {
|
|
24642
24713
|
return /* @__PURE__ */ h("div", {
|
|
24643
24714
|
className: "select-flowpage",
|
|
24644
24715
|
children: [
|
|
@@ -24646,7 +24717,7 @@ function $c({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
24646
24717
|
className: "select-flowpage__bar",
|
|
24647
24718
|
children: [
|
|
24648
24719
|
n && /* @__PURE__ */ m(J, {
|
|
24649
|
-
icon: /* @__PURE__ */ m(
|
|
24720
|
+
icon: /* @__PURE__ */ m(W, {}),
|
|
24650
24721
|
label: r,
|
|
24651
24722
|
variant: "outline",
|
|
24652
24723
|
onClick: n
|
|
@@ -24700,7 +24771,7 @@ function $c({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
24700
24771
|
}
|
|
24701
24772
|
//#endregion
|
|
24702
24773
|
//#region src/SelectSwitchField.tsx
|
|
24703
|
-
var
|
|
24774
|
+
var nl = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
24704
24775
|
return /* @__PURE__ */ h("div", {
|
|
24705
24776
|
ref: c,
|
|
24706
24777
|
...s,
|
|
@@ -24728,8 +24799,8 @@ var el = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
24728
24799
|
children: i
|
|
24729
24800
|
})]
|
|
24730
24801
|
});
|
|
24731
|
-
}),
|
|
24732
|
-
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 }) {
|
|
24733
24804
|
return /* @__PURE__ */ m(Tt, {
|
|
24734
24805
|
label: e,
|
|
24735
24806
|
value: t,
|
|
@@ -24747,7 +24818,7 @@ function nl({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error:
|
|
|
24747
24818
|
prefix: /* @__PURE__ */ m("input", {
|
|
24748
24819
|
type: "color",
|
|
24749
24820
|
className: "select-color-swatch",
|
|
24750
|
-
value:
|
|
24821
|
+
value: rl(t) ? t : "#000000",
|
|
24751
24822
|
onChange: (e) => n(e.target.value),
|
|
24752
24823
|
disabled: r,
|
|
24753
24824
|
"aria-label": e ? `${e} — escolher cor` : "Escolher cor"
|
|
@@ -24756,13 +24827,13 @@ function nl({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error:
|
|
|
24756
24827
|
}
|
|
24757
24828
|
//#endregion
|
|
24758
24829
|
//#region src/SelectImageField.tsx
|
|
24759
|
-
function
|
|
24830
|
+
function al(e) {
|
|
24760
24831
|
return new Promise((t, n) => {
|
|
24761
24832
|
let r = new FileReader();
|
|
24762
24833
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
24763
24834
|
});
|
|
24764
24835
|
}
|
|
24765
|
-
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) {
|
|
24766
24837
|
let [f, p] = d([]), [g, _] = d(null), v = t ? [t] : [], y = async (e) => {
|
|
24767
24838
|
let t = e[0];
|
|
24768
24839
|
if (!t) {
|
|
@@ -24770,7 +24841,7 @@ var il = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24770
24841
|
return;
|
|
24771
24842
|
}
|
|
24772
24843
|
if (_(null), !s) {
|
|
24773
|
-
n(await
|
|
24844
|
+
n(await al(t)), p([]);
|
|
24774
24845
|
return;
|
|
24775
24846
|
}
|
|
24776
24847
|
p([t]);
|
|
@@ -24802,7 +24873,7 @@ var il = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24802
24873
|
children: g
|
|
24803
24874
|
})]
|
|
24804
24875
|
});
|
|
24805
|
-
}),
|
|
24876
|
+
}), sl = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
24806
24877
|
let [o, s] = d(() => new Set(n)), c = (e) => s((n) => {
|
|
24807
24878
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
24808
24879
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -24828,7 +24899,7 @@ var il = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24828
24899
|
}), /* @__PURE__ */ m("span", {
|
|
24829
24900
|
className: `select-accordion__chevron${t ? " is-open" : ""}`,
|
|
24830
24901
|
"aria-hidden": "true",
|
|
24831
|
-
children: /* @__PURE__ */ m(
|
|
24902
|
+
children: /* @__PURE__ */ m(U, {})
|
|
24832
24903
|
})]
|
|
24833
24904
|
}), /* @__PURE__ */ m("div", {
|
|
24834
24905
|
id: `select-acc-${e.id}`,
|
|
@@ -24848,6 +24919,6 @@ var il = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24848
24919
|
});
|
|
24849
24920
|
});
|
|
24850
24921
|
//#endregion
|
|
24851
|
-
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 };
|
|
24852
24923
|
|
|
24853
24924
|
//# sourceMappingURL=index.js.map
|