@selectwin/kit 0.1.162 → 0.1.163
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/SelectSetupGuide.d.ts +8 -1
- package/dist/SelectTour.d.ts +17 -0
- package/dist/index.js +981 -804
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -501,22 +501,22 @@ var A = (e) => {
|
|
|
501
501
|
w(),
|
|
502
502
|
w(),
|
|
503
503
|
w()
|
|
504
|
-
], E = T[0], D = null, O = null, k = null, A = null, j = /* @__PURE__ */ new Float32Array(), M = 0, N = 0, P = 0, R = 0, V = 0,
|
|
505
|
-
function
|
|
504
|
+
], E = T[0], D = null, O = null, k = null, A = null, j = /* @__PURE__ */ new Float32Array(), M = 0, N = 0, P = 0, R = 0, V = 0, ne = 0;
|
|
505
|
+
function re() {
|
|
506
506
|
let t = Math.max(e.w(), 1), n = Math.max(e.h(), 1);
|
|
507
|
-
P = (t * Math.abs(m) + n * Math.abs(h)) / 2, R = (t * Math.abs(h) + n * Math.abs(m)) / 2, V = Math.min(1, Math.sqrt(42e4 / (4 * P * R))), M = Math.max(2, Math.round(2 * P * V)), N = Math.max(2, Math.round(2 * R * V)),
|
|
507
|
+
P = (t * Math.abs(m) + n * Math.abs(h)) / 2, R = (t * Math.abs(h) + n * Math.abs(m)) / 2, V = Math.min(1, Math.sqrt(42e4 / (4 * P * R))), M = Math.max(2, Math.round(2 * P * V)), N = Math.max(2, Math.round(2 * R * V)), ne = Math.min(2.6, Math.max(.7, .62 / V)), 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 H = 1, ie = 0, ae = 0, U = 0, W = 0, G = 1, K = 0, q = 0, oe = 0, se = 0, J = I.TENSION, ce = (e, t, r, i, a) => {
|
|
510
|
+
let o = e * H + t * ie, s = -e * ie + t * H - ae, c = r * H + i * ie, l = -r * ie + i * H;
|
|
511
511
|
l < 0 && (c = -c, l = -l);
|
|
512
512
|
let p = I.CAM - s;
|
|
513
513
|
if (p < n) {
|
|
514
|
-
E.x[
|
|
514
|
+
E.x[K] = NaN, E.z[K] = -1e9, E.a[K] = 0, E.lift[K] = 0, K++;
|
|
515
515
|
return;
|
|
516
516
|
}
|
|
517
517
|
let g = (p - n) * .5263157894736842;
|
|
518
518
|
g > 1 && (g = 1);
|
|
519
|
-
let y = g * g * (3 - 2 * g), b = o * I.FOCAL / p * se + M * .5, x = -o, S = -
|
|
519
|
+
let y = g * g * (3 - 2 * g), b = o * I.FOCAL / p * se + M * .5, x = -o, S = -U, C = p, 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,10 +528,10 @@ var A = (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), F = (c * A + l * N) * P, F < 0 && (F = 0);
|
|
529
529
|
let B = F * F, ee = B * B, te = ee * ee, V = (-(-x + 2 * T * c) * h - S * m + .2) * .8333333333333334;
|
|
530
530
|
V < 0 ? V = 0 : V > 1 && (V = 1);
|
|
531
|
-
let
|
|
532
|
-
|
|
531
|
+
let ne = V * V * (3 - 2 * V), re = z * .9 + te * .45, W = k * .55 + re;
|
|
532
|
+
W > 1 && (W = 1), E.lift[K] = W, E.a[K] = (u + d * k + f * re + ne * .06) * a * G * y, E.x[K] = b, E.z[K] = s, b < q && (q = b), b > oe && (oe = b), K++;
|
|
533
533
|
}, le = (e, t) => {
|
|
534
|
-
let n = e *
|
|
534
|
+
let n = e * W, r = Math.cos(n), i = -Math.sin(n) * J, a = 1 / Math.sqrt(J * J * r * r + 1), o = J * 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
|
ce(n + I.ROUND * (u - o), i + I.ROUND * (d - s), u, d, x[a]);
|
|
@@ -539,19 +539,19 @@ var A = (e) => {
|
|
|
539
539
|
};
|
|
540
540
|
function ue(t, n, r) {
|
|
541
541
|
let i = Math.max(e.h(), 1), a = r * I.TWIST_SPEED * .15, o = r * I.TWIST_SPEED * .2, s = -((t + .5) / N * 2 * R - R) / (i * I.ZOOM);
|
|
542
|
-
|
|
543
|
-
for (let e = 0; e < 2; e++)
|
|
544
|
-
|
|
545
|
-
let c =
|
|
546
|
-
|
|
547
|
-
let d = 2 *
|
|
542
|
+
U = s * I.CAM / I.FOCAL;
|
|
543
|
+
for (let e = 0; e < 2; e++) U = s * (I.CAM + Math.sin(U * 1.2 + a) * I.BILLOW) / I.FOCAL;
|
|
544
|
+
ae = Math.sin(U * 1.2 + a) * I.BILLOW;
|
|
545
|
+
let c = U < 0 ? -U : U, l = F(7, 1, c), u = U * S.twist * F(8, 0, c) - o;
|
|
546
|
+
H = Math.cos(u), ie = Math.sin(u), W = I.WIDTH * l, G = F(.06, .46, H < 0 ? -H : H) * F(0, .06, l), E = n, K = 0, q = 1e9, oe = -1e9, le(-1, !0);
|
|
547
|
+
let d = 2 * W / 107, f = Math.cos(d), p = Math.sin(d), m = Math.cos(-W), h = Math.sin(-W);
|
|
548
548
|
for (let e = 0; e < 108; e++) {
|
|
549
549
|
let t = 1 / Math.sqrt(J * J * m * m + 1);
|
|
550
|
-
ce(-
|
|
550
|
+
ce(-W + e * d, -h * J, J * m * t, t, 1);
|
|
551
551
|
let n = m * f - h * p;
|
|
552
552
|
h = h * f + m * p, m = n;
|
|
553
553
|
}
|
|
554
|
-
le(1, !1), n.minx =
|
|
554
|
+
le(1, !1), n.minx = q, n.maxx = oe;
|
|
555
555
|
}
|
|
556
556
|
function de(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,29 +561,29 @@ var A = (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, I = u.z, R = d.z, V = n.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, I = u.z, R = d.z, V = n.lift, ne = r.lift, re = u.lift, H = d.lift, ie = n.a, ae = r.a, U = u.a, W = d.a, G = C * D[0] + w * O[0] + T * k[0] + E * N[0], K = C * P[0] + w * F[0] + T * I[0] + E * R[0], q = C * V[0] + w * ne[0] + T * re[0] + E * H[0], oe = C * ie[0] + w * ae[0] + T * U[0] + E * W[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 * I[e] + E * R[e], r = C * V[e] + w *
|
|
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 * I[e] + E * R[e], r = C * V[e] + w * ne[e] + T * re[e] + E * H[e], u = C * ie[e] + w * ae[e] + T * U[e] + E * W[e];
|
|
567
|
+
if (!Number.isNaN(G) && !Number.isNaN(t)) {
|
|
568
|
+
let e = Math.max(v, Math.ceil((G < t ? G : t) - .5)), d = Math.min(y, Math.floor((G > t ? G : t) - .5));
|
|
569
569
|
if (d < e) {
|
|
570
|
-
let n = Math.floor((
|
|
570
|
+
let n = Math.floor((G + 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 - G, m = f === 0 ? 0 : 1 / f, h = n - K, g = r - q, _ = u - oe;
|
|
575
575
|
for (let t = e; t <= d; t++) {
|
|
576
|
-
let e = (t + .5 -
|
|
576
|
+
let e = (t + .5 - G) * m;
|
|
577
577
|
e < 0 ? e = 0 : e > 1 && (e = 1);
|
|
578
|
-
let n =
|
|
578
|
+
let n = K + h * e;
|
|
579
579
|
if (n <= j[t]) continue;
|
|
580
580
|
j[t] = n;
|
|
581
|
-
let r =
|
|
581
|
+
let r = q + g * e;
|
|
582
582
|
p[b + t] = L(i + s * r) << z | L(a + c * r) << B | L(o + l * r) << ee | L(oe + _ * e) << te;
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
|
|
586
|
+
G = t, K = n, q = r, oe = u;
|
|
587
587
|
}
|
|
588
588
|
let se = -1, J = -1;
|
|
589
589
|
for (let e = v; e <= y; e++) if ((p[b + e] >>> te & 255) > 0) {
|
|
@@ -621,10 +621,10 @@ var A = (e) => {
|
|
|
621
621
|
}
|
|
622
622
|
function pe(t) {
|
|
623
623
|
let { ctx: n } = e, r = e.w(), i = e.h();
|
|
624
|
-
n.clearRect(0, 0, r, i), !(!D || M < 2) && (fe(t), n.save(), n.translate(r / 2, i / 2), n.rotate(I.ROT), n.imageSmoothingEnabled = !0, n.imageSmoothingQuality = "high", n.filter = `blur(${
|
|
624
|
+
n.clearRect(0, 0, r, i), !(!D || M < 2) && (fe(t), n.save(), n.translate(r / 2, i / 2), n.rotate(I.ROT), n.imageSmoothingEnabled = !0, n.imageSmoothingQuality = "high", n.filter = `blur(${ne.toFixed(2)}px)`, n.drawImage(D, -P, -R, 2 * P, 2 * R), n.restore());
|
|
625
625
|
}
|
|
626
626
|
return {
|
|
627
|
-
build:
|
|
627
|
+
build: re,
|
|
628
628
|
interactive: !1,
|
|
629
629
|
frame(t) {
|
|
630
630
|
C || (C = p.timeline({
|
|
@@ -648,7 +648,7 @@ var A = (e) => {
|
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
650
|
};
|
|
651
|
-
function
|
|
651
|
+
function ne({ className: e, theme: t, glowTarget: n, variant: r }) {
|
|
652
652
|
let i = d(null);
|
|
653
653
|
return o(() => {
|
|
654
654
|
var e, a;
|
|
@@ -752,7 +752,7 @@ function H({ className: e, theme: t, glowTarget: n, variant: r }) {
|
|
|
752
752
|
}
|
|
753
753
|
//#endregion
|
|
754
754
|
//#region src/SelectCard.tsx
|
|
755
|
-
var
|
|
755
|
+
var re = r(function({ title: e, subtitle: t, logo: n, mark: r, banner: i, children: a, footer: o, className: s, ...c }, l) {
|
|
756
756
|
return /* @__PURE__ */ g("div", {
|
|
757
757
|
ref: l,
|
|
758
758
|
...c,
|
|
@@ -795,7 +795,7 @@ var ne = r(function({ title: e, subtitle: t, logo: n, mark: r, banner: i, childr
|
|
|
795
795
|
})
|
|
796
796
|
]
|
|
797
797
|
});
|
|
798
|
-
}),
|
|
798
|
+
}), H = r(function({ variant: e = "primary", type: t = "button", size: n = "md", loading: r = !1, icon: i, trailingIcon: a, inline: o = !1, tone: s, disabled: c, onPointerDown: l, children: u, ...p }, m) {
|
|
799
799
|
let [_, v] = f([]), y = d(0), b = (e) => {
|
|
800
800
|
var t, n;
|
|
801
801
|
if (l == null || l(e), c || r || typeof window < "u" && (t = (n = window).matchMedia) != null && t.call(n, "(prefers-reduced-motion: reduce)").matches) return;
|
|
@@ -841,7 +841,7 @@ var ne = r(function({ title: e, subtitle: t, logo: n, mark: r, banner: i, childr
|
|
|
841
841
|
});
|
|
842
842
|
//#endregion
|
|
843
843
|
//#region src/icons.tsx
|
|
844
|
-
function
|
|
844
|
+
function ie() {
|
|
845
845
|
return /* @__PURE__ */ g("svg", {
|
|
846
846
|
viewBox: "0 0 24 24",
|
|
847
847
|
"aria-hidden": "true",
|
|
@@ -865,7 +865,7 @@ function re() {
|
|
|
865
865
|
]
|
|
866
866
|
});
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function ae() {
|
|
869
869
|
return /* @__PURE__ */ h("svg", {
|
|
870
870
|
viewBox: "0 0 24 24",
|
|
871
871
|
"aria-hidden": "true",
|
|
@@ -875,7 +875,7 @@ function ie() {
|
|
|
875
875
|
})
|
|
876
876
|
});
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function U() {
|
|
879
879
|
return /* @__PURE__ */ h("svg", {
|
|
880
880
|
viewBox: "0 0 24 24",
|
|
881
881
|
fill: "none",
|
|
@@ -887,7 +887,7 @@ function W() {
|
|
|
887
887
|
children: /* @__PURE__ */ h("path", { d: "M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08" })
|
|
888
888
|
});
|
|
889
889
|
}
|
|
890
|
-
function
|
|
890
|
+
function W() {
|
|
891
891
|
return /* @__PURE__ */ h("svg", {
|
|
892
892
|
viewBox: "0 0 24 24",
|
|
893
893
|
fill: "none",
|
|
@@ -899,7 +899,7 @@ function G() {
|
|
|
899
899
|
children: /* @__PURE__ */ h("path", { d: "M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08" })
|
|
900
900
|
});
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function G() {
|
|
903
903
|
return /* @__PURE__ */ h("svg", {
|
|
904
904
|
viewBox: "0 0 24 24",
|
|
905
905
|
fill: "none",
|
|
@@ -911,7 +911,7 @@ function K() {
|
|
|
911
911
|
children: /* @__PURE__ */ h("path", { d: "M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95" })
|
|
912
912
|
});
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function K() {
|
|
915
915
|
return /* @__PURE__ */ h("svg", {
|
|
916
916
|
viewBox: "0 0 24 24",
|
|
917
917
|
fill: "none",
|
|
@@ -923,7 +923,7 @@ function q() {
|
|
|
923
923
|
children: /* @__PURE__ */ h("path", { d: "M9.57 5.93L3.5 12l6.07 6.07M20.5 12H3.67" })
|
|
924
924
|
});
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function q() {
|
|
927
927
|
return /* @__PURE__ */ h("svg", {
|
|
928
928
|
viewBox: "0 0 24 24",
|
|
929
929
|
fill: "none",
|
|
@@ -2698,11 +2698,11 @@ function wn(e, t) {
|
|
|
2698
2698
|
});
|
|
2699
2699
|
}
|
|
2700
2700
|
var Tn = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAction: i, help: a, info: o, description: c, hint: l, error: u, prefix: d, suffix: p, trailingAction: m, mono: _, autoComplete: v, placeholder: y, required: b, disabled: x, readOnly: S, name: C, id: w, minLength: T, maxLength: E, showCount: D = !1, min: O, max: k, step: A, inputMode: j, autoFocus: M, onBlur: N, onKeyDown: P, size: F = "md", className: I, ...L }, R) {
|
|
2701
|
-
let z = s(), B = w ?? z, [ee, te] = f(!1), V = r === "password",
|
|
2702
|
-
let t = Number(A ?? 1) || 1, r = (
|
|
2701
|
+
let z = s(), B = w ?? z, [ee, te] = f(!1), V = r === "password", ne = V && ee ? "text" : r, re = u ? `${B}-err` : l ? `${B}-hint` : void 0, H = d != null || p != null, ie = r === "number" && !H && !S, ae = t === "" ? null : Number(t), U = (e) => {
|
|
2702
|
+
let t = Number(A ?? 1) || 1, r = (ae != null && Number.isFinite(ae) ? ae : 0) + e * t;
|
|
2703
2703
|
O != null && (r = Math.max(Number(O), r)), k != null && (r = Math.min(Number(k), r)), n(String(r));
|
|
2704
|
-
},
|
|
2705
|
-
className: `select-input-wrap${
|
|
2704
|
+
}, W = O != null && ae != null && ae <= Number(O), K = k != null && ae != null && ae >= Number(k), q = /* @__PURE__ */ g("div", {
|
|
2705
|
+
className: `select-input-wrap${H ? " select-input-wrap--affixed" : ""}${u ? " select-input-wrap--error" : ""}`,
|
|
2706
2706
|
children: [
|
|
2707
2707
|
d != null && /* @__PURE__ */ h("span", {
|
|
2708
2708
|
className: "select-input__affix select-input__affix--prefix",
|
|
@@ -2710,8 +2710,8 @@ var Tn = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
|
|
|
2710
2710
|
}),
|
|
2711
2711
|
/* @__PURE__ */ h("input", {
|
|
2712
2712
|
id: B,
|
|
2713
|
-
className: `select-input${V ? " select-input--has-suffix" : ""}${
|
|
2714
|
-
type:
|
|
2713
|
+
className: `select-input${V ? " select-input--has-suffix" : ""}${ie ? " select-input--has-stepper" : ""}${_ ? " select-input--mono" : ""}${u ? " select-input--error" : ""}`,
|
|
2714
|
+
type: ne,
|
|
2715
2715
|
value: t,
|
|
2716
2716
|
onChange: (e) => n(e.target.value),
|
|
2717
2717
|
onBlur: N,
|
|
@@ -2730,7 +2730,7 @@ var Tn = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
|
|
|
2730
2730
|
inputMode: j,
|
|
2731
2731
|
autoFocus: M,
|
|
2732
2732
|
"aria-invalid": u ? !0 : void 0,
|
|
2733
|
-
"aria-describedby":
|
|
2733
|
+
"aria-describedby": re
|
|
2734
2734
|
}),
|
|
2735
2735
|
p != null && /* @__PURE__ */ h("span", {
|
|
2736
2736
|
className: "select-input__affix select-input__affix--suffix",
|
|
@@ -2743,24 +2743,24 @@ var Tn = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
|
|
|
2743
2743
|
"aria-label": ee ? "Ocultar senha" : "Mostrar senha",
|
|
2744
2744
|
children: h(ee ? Ue : He, {})
|
|
2745
2745
|
}),
|
|
2746
|
-
|
|
2746
|
+
ie && /* @__PURE__ */ g("span", {
|
|
2747
2747
|
className: "select-stepper",
|
|
2748
2748
|
children: [/* @__PURE__ */ h("button", {
|
|
2749
2749
|
type: "button",
|
|
2750
2750
|
tabIndex: -1,
|
|
2751
2751
|
className: "select-stepper__btn",
|
|
2752
2752
|
"aria-label": "Aumentar",
|
|
2753
|
-
disabled: x ||
|
|
2754
|
-
onClick: () =>
|
|
2753
|
+
disabled: x || K,
|
|
2754
|
+
onClick: () => U(1),
|
|
2755
2755
|
children: /* @__PURE__ */ h(it, {})
|
|
2756
2756
|
}), /* @__PURE__ */ h("button", {
|
|
2757
2757
|
type: "button",
|
|
2758
2758
|
tabIndex: -1,
|
|
2759
2759
|
className: "select-stepper__btn",
|
|
2760
2760
|
"aria-label": "Diminuir",
|
|
2761
|
-
disabled: x ||
|
|
2762
|
-
onClick: () =>
|
|
2763
|
-
children: /* @__PURE__ */ h(
|
|
2761
|
+
disabled: x || W,
|
|
2762
|
+
onClick: () => U(-1),
|
|
2763
|
+
children: /* @__PURE__ */ h(G, {})
|
|
2764
2764
|
})]
|
|
2765
2765
|
})
|
|
2766
2766
|
]
|
|
@@ -2781,9 +2781,9 @@ var Tn = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
|
|
|
2781
2781
|
className: "select-field__desc",
|
|
2782
2782
|
children: c
|
|
2783
2783
|
}),
|
|
2784
|
-
m == null ?
|
|
2784
|
+
m == null ? q : /* @__PURE__ */ g("div", {
|
|
2785
2785
|
className: "select-field__control",
|
|
2786
|
-
children: [
|
|
2786
|
+
children: [q, /* @__PURE__ */ h("span", {
|
|
2787
2787
|
className: "select-field__trailing",
|
|
2788
2788
|
children: m
|
|
2789
2789
|
})]
|
|
@@ -3179,13 +3179,13 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
3179
3179
|
}, z = () => {
|
|
3180
3180
|
var e;
|
|
3181
3181
|
return (e = w.current ?? C.current) == null ? void 0 : e.click();
|
|
3182
|
-
}, B = j ? "Preparando o arquivo…" : c ?? `Selecionar arquivo · até ${r} MB`, ee = (n) => t(e.filter((e, t) => t !== n)), te = s != null && e.length >= s, V = (a || e.length === 0) && !te,
|
|
3182
|
+
}, B = j ? "Preparando o arquivo…" : c ?? `Selecionar arquivo · até ${r} MB`, ee = (n) => t(e.filter((e, t) => t !== n)), te = s != null && e.length >= s, V = (a || e.length === 0) && !te, ne = e.length > 0;
|
|
3183
3183
|
return /* @__PURE__ */ g("div", {
|
|
3184
3184
|
ref: S,
|
|
3185
3185
|
...x,
|
|
3186
3186
|
className: `select-dropzone-wrap${b ? " " + b : ""}`,
|
|
3187
3187
|
children: [
|
|
3188
|
-
|
|
3188
|
+
ne && /* @__PURE__ */ g("div", {
|
|
3189
3189
|
className: "select-filetile-grid",
|
|
3190
3190
|
children: [e.map((e, t) => /* @__PURE__ */ h(zn, {
|
|
3191
3191
|
src: F[t] ?? void 0,
|
|
@@ -3201,18 +3201,18 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
3201
3201
|
children: [/* @__PURE__ */ h(se, {}), /* @__PURE__ */ h("span", { children: "Adicionar" })]
|
|
3202
3202
|
})]
|
|
3203
3203
|
}),
|
|
3204
|
-
!
|
|
3204
|
+
!ne && V && l && N && /* @__PURE__ */ g("div", {
|
|
3205
3205
|
className: "select-dropzone-capture",
|
|
3206
3206
|
children: [/* @__PURE__ */ g("div", {
|
|
3207
3207
|
className: "select-dropzone-capture__buttons",
|
|
3208
|
-
children: [/* @__PURE__ */ h(
|
|
3208
|
+
children: [/* @__PURE__ */ h(H, {
|
|
3209
3209
|
variant: "primary",
|
|
3210
3210
|
inline: !0,
|
|
3211
3211
|
icon: /* @__PURE__ */ h(Wt, {}),
|
|
3212
3212
|
onClick: z,
|
|
3213
3213
|
loading: j,
|
|
3214
3214
|
children: p
|
|
3215
|
-
}), /* @__PURE__ */ h(
|
|
3215
|
+
}), /* @__PURE__ */ h(H, {
|
|
3216
3216
|
variant: "secondary",
|
|
3217
3217
|
inline: !0,
|
|
3218
3218
|
icon: /* @__PURE__ */ h(se, {}),
|
|
@@ -3225,7 +3225,7 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
3225
3225
|
children: c
|
|
3226
3226
|
})]
|
|
3227
3227
|
}),
|
|
3228
|
-
!
|
|
3228
|
+
!ne && V && !(l && N) && /* @__PURE__ */ g("button", {
|
|
3229
3229
|
type: "button",
|
|
3230
3230
|
className: `select-dropzone${v === "vertical" ? " select-dropzone--vertical" : ""}${T ? " is-over" : ""}`,
|
|
3231
3231
|
onClick: R,
|
|
@@ -3378,10 +3378,10 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
3378
3378
|
}
|
|
3379
3379
|
}, te = (e) => {
|
|
3380
3380
|
e.key === "Enter" && (e.preventDefault(), ee());
|
|
3381
|
-
}, V = (e) => r(n.filter((t, n) => n !== e)),
|
|
3381
|
+
}, V = (e) => r(n.filter((t, n) => n !== e)), ne = (e) => a(i.filter((t, n) => n !== e)), re = () => {
|
|
3382
3382
|
var e;
|
|
3383
3383
|
return (e = C.current) == null ? void 0 : e.click();
|
|
3384
|
-
},
|
|
3384
|
+
}, ie = {
|
|
3385
3385
|
onDragOver: (e) => {
|
|
3386
3386
|
e.preventDefault(), T(!0);
|
|
3387
3387
|
},
|
|
@@ -3401,7 +3401,7 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
3401
3401
|
}),
|
|
3402
3402
|
/* @__PURE__ */ g("div", {
|
|
3403
3403
|
className: `select-uploadzone${w ? " is-over" : ""}`,
|
|
3404
|
-
...
|
|
3404
|
+
...ie,
|
|
3405
3405
|
children: [
|
|
3406
3406
|
L ? /* @__PURE__ */ g("div", {
|
|
3407
3407
|
className: `select-filetile-grid${P === 1 ? " select-filetile-grid--single" : ""}`,
|
|
@@ -3416,19 +3416,19 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
3416
3416
|
i.map((e, t) => /* @__PURE__ */ h(zn, {
|
|
3417
3417
|
src: e,
|
|
3418
3418
|
name: Gn(e),
|
|
3419
|
-
onRemove: () =>
|
|
3419
|
+
onRemove: () => ne(t)
|
|
3420
3420
|
}, `u-${e}-${t}`)),
|
|
3421
3421
|
F && /* @__PURE__ */ g("button", {
|
|
3422
3422
|
type: "button",
|
|
3423
3423
|
className: "select-dropzone select-dropzone--tile",
|
|
3424
|
-
onClick:
|
|
3424
|
+
onClick: re,
|
|
3425
3425
|
children: [/* @__PURE__ */ h(se, {}), /* @__PURE__ */ h("span", { children: "Adicionar" })]
|
|
3426
3426
|
})
|
|
3427
3427
|
]
|
|
3428
3428
|
}) : /* @__PURE__ */ g("button", {
|
|
3429
3429
|
type: "button",
|
|
3430
3430
|
className: "select-uploadzone__prompt",
|
|
3431
|
-
onClick:
|
|
3431
|
+
onClick: re,
|
|
3432
3432
|
children: [/* @__PURE__ */ h(se, {}), /* @__PURE__ */ h("span", { children: m ?? `Arraste ou selecione um arquivo · até ${c} MB` })]
|
|
3433
3433
|
}),
|
|
3434
3434
|
I && /* @__PURE__ */ g("div", {
|
|
@@ -3451,7 +3451,7 @@ var Kn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
3451
3451
|
autoComplete: "off"
|
|
3452
3452
|
})
|
|
3453
3453
|
}),
|
|
3454
|
-
/* @__PURE__ */ h(
|
|
3454
|
+
/* @__PURE__ */ h(H, {
|
|
3455
3455
|
variant: "secondary",
|
|
3456
3456
|
size: "sm",
|
|
3457
3457
|
inline: !0,
|
|
@@ -3510,44 +3510,44 @@ var er = (e) => {
|
|
|
3510
3510
|
var t;
|
|
3511
3511
|
return Array.from(((t = e.dataTransfer) == null ? void 0 : t.types) ?? []).includes("Files");
|
|
3512
3512
|
}, tr = r(function({ label: e, help: t, items: n, onChange: r, max: i = 10, accept: a = ".jpg,.jpeg,.png,.webp", maxSizeMB: c, hint: l, error: u, allowUrl: p = !0, tileSize: m = 88, addLabel: _ = "Adicionar", coverLabel: v = "Capa", disabled: y = !1, className: b, style: x, ...S }, C) {
|
|
3513
|
-
let w = s(), T = d(null), E = d(/* @__PURE__ */ new Map()), D = d(null), [O, k] = f(null), [A, j] = f(null), [M, N] = f(null), [P, F] = f(!1), [I, L] = f(null), [R, z] = f(!1), [B, ee] = f(""), [te, V] = f(),
|
|
3513
|
+
let w = s(), T = d(null), E = d(/* @__PURE__ */ new Map()), D = d(null), [O, k] = f(null), [A, j] = f(null), [M, N] = f(null), [P, F] = f(!1), [I, L] = f(null), [R, z] = f(!1), [B, ee] = f(""), [te, V] = f(), ne = d(/* @__PURE__ */ new Map()), re = (e) => {
|
|
3514
3514
|
if (e.url) return e.url;
|
|
3515
3515
|
if (!e.file) return;
|
|
3516
|
-
let t =
|
|
3517
|
-
return !t && typeof URL < "u" && typeof URL.createObjectURL == "function" && (t = URL.createObjectURL(e.file),
|
|
3516
|
+
let t = ne.current.get(e.file);
|
|
3517
|
+
return !t && typeof URL < "u" && typeof URL.createObjectURL == "function" && (t = URL.createObjectURL(e.file), ne.current.set(e.file, t)), t;
|
|
3518
3518
|
};
|
|
3519
3519
|
o(() => {
|
|
3520
3520
|
let e = new Set(n.map((e) => e.file).filter(Boolean));
|
|
3521
|
-
for (let [t, n] of
|
|
3521
|
+
for (let [t, n] of ne.current) e.has(t) || (URL.revokeObjectURL(n), ne.current.delete(t));
|
|
3522
3522
|
}, [n]), o(() => () => {
|
|
3523
|
-
for (let e of
|
|
3524
|
-
|
|
3523
|
+
for (let e of ne.current.values()) URL.revokeObjectURL(e);
|
|
3524
|
+
ne.current.clear();
|
|
3525
3525
|
}, []), o(() => {
|
|
3526
3526
|
if (!O) return;
|
|
3527
3527
|
let e = O === "__add" ? D.current : E.current.get(O);
|
|
3528
3528
|
e == null || e.focus(), k(null);
|
|
3529
3529
|
}, [O, n]);
|
|
3530
|
-
let
|
|
3530
|
+
let ie = Math.max(0, i - n.length), ae = ie === 0, U = c == null ? Infinity : c * 1024 * 1024, W = (e) => {
|
|
3531
3531
|
if (y || !e.length) return;
|
|
3532
3532
|
let t = [], o = [];
|
|
3533
|
-
for (let n of e) Vn(n, a) ? n.size >
|
|
3534
|
-
let s = o.slice(0,
|
|
3533
|
+
for (let n of e) Vn(n, a) ? n.size > U ? t.push(`${n.name}: maior que ${c} MB`) : o.push(n) : t.push(`${n.name}: formato não aceito`);
|
|
3534
|
+
let s = o.slice(0, ie);
|
|
3535
3535
|
if (o.length > s.length) {
|
|
3536
3536
|
let e = o.length - s.length;
|
|
3537
3537
|
t.push(`Limite de ${i} ${i === 1 ? "foto" : "fotos"} — ${e} ${e === 1 ? "ficou" : "ficaram"} de fora`);
|
|
3538
3538
|
}
|
|
3539
3539
|
L(t.length ? t.join(" · ") : null), s.length && r([...n, ...s.map(Zn)]);
|
|
3540
|
-
},
|
|
3540
|
+
}, G = (e) => {
|
|
3541
3541
|
let t = n.filter((t, n) => n !== e);
|
|
3542
3542
|
r(t), L(null);
|
|
3543
3543
|
let i = t[Math.min(e, t.length - 1)];
|
|
3544
3544
|
k(i ? i.key : "__add");
|
|
3545
|
-
},
|
|
3545
|
+
}, K = (e, t) => {
|
|
3546
3546
|
var i;
|
|
3547
3547
|
let a = $n(n, e, t);
|
|
3548
3548
|
a !== n && (r(a), k(((i = n[e]) == null ? void 0 : i.key) ?? null));
|
|
3549
|
-
},
|
|
3550
|
-
y || e.target !== e.currentTarget || (e.key === "ArrowLeft" || e.key === "ArrowUp" ? (e.preventDefault(),
|
|
3549
|
+
}, q = (e, t) => {
|
|
3550
|
+
y || e.target !== e.currentTarget || (e.key === "ArrowLeft" || e.key === "ArrowUp" ? (e.preventDefault(), K(t, t - 1)) : e.key === "ArrowRight" || e.key === "ArrowDown" ? (e.preventDefault(), K(t, t + 1)) : (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), G(t)));
|
|
3551
3551
|
}, oe = () => {
|
|
3552
3552
|
let e = B.trim();
|
|
3553
3553
|
if (!Wn.test(e) || !/^https:\/\//i.test(e)) {
|
|
@@ -3561,13 +3561,13 @@ var er = (e) => {
|
|
|
3561
3561
|
r([...n, Qn(e)]), ee(""), V(void 0), z(!1);
|
|
3562
3562
|
}, se = {
|
|
3563
3563
|
onDragOver: (e) => {
|
|
3564
|
-
y || A || !er(e) || (e.preventDefault(), e.dataTransfer.dropEffect =
|
|
3564
|
+
y || A || !er(e) || (e.preventDefault(), e.dataTransfer.dropEffect = ae ? "none" : "copy", F(!0));
|
|
3565
3565
|
},
|
|
3566
3566
|
onDragLeave: (e) => {
|
|
3567
3567
|
e.currentTarget.contains(e.relatedTarget) || F(!1);
|
|
3568
3568
|
},
|
|
3569
3569
|
onDrop: (e) => {
|
|
3570
|
-
y || A || !er(e) || (e.preventDefault(), F(!1),
|
|
3570
|
+
y || A || !er(e) || (e.preventDefault(), F(!1), W(Array.from(e.dataTransfer.files)));
|
|
3571
3571
|
}
|
|
3572
3572
|
}, J = u ?? I ?? void 0;
|
|
3573
3573
|
return /* @__PURE__ */ g("div", {
|
|
@@ -3604,7 +3604,7 @@ var er = (e) => {
|
|
|
3604
3604
|
...se,
|
|
3605
3605
|
children: [n.map((e, t) => {
|
|
3606
3606
|
var i;
|
|
3607
|
-
let a =
|
|
3607
|
+
let a = re(e), o = t === 0 && v != null, s = ((i = e.file) == null ? void 0 : i.name) ?? (e.url ? Gn(e.url) : "foto");
|
|
3608
3608
|
return /* @__PURE__ */ g("div", {
|
|
3609
3609
|
ref: (t) => {
|
|
3610
3610
|
t ? E.current.set(e.key, t) : E.current.delete(e.key);
|
|
@@ -3614,7 +3614,7 @@ var er = (e) => {
|
|
|
3614
3614
|
"aria-label": `Foto ${t + 1} de ${n.length}${o ? ` (${v == null ? void 0 : v.toLowerCase()})` : ""}: ${s}.${n.length > 1 ? " Setas movem a foto." : ""} Delete remove.`,
|
|
3615
3615
|
className: `select-gallery__tile${A === e.key ? " is-dragging" : ""}${M === t && A && A !== e.key ? " is-target" : ""}`,
|
|
3616
3616
|
draggable: !y && n.length > 1,
|
|
3617
|
-
onKeyDown: (e) =>
|
|
3617
|
+
onKeyDown: (e) => q(e, t),
|
|
3618
3618
|
onDragStart: (t) => {
|
|
3619
3619
|
j(e.key), t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e.key);
|
|
3620
3620
|
},
|
|
@@ -3648,20 +3648,20 @@ var er = (e) => {
|
|
|
3648
3648
|
className: "select-gallery__tool",
|
|
3649
3649
|
"aria-label": `Tornar ${v.toLowerCase()}`,
|
|
3650
3650
|
title: `Tornar ${v.toLowerCase()}`,
|
|
3651
|
-
onClick: () =>
|
|
3651
|
+
onClick: () => K(t, 0),
|
|
3652
3652
|
children: /* @__PURE__ */ h(he, {})
|
|
3653
3653
|
}), /* @__PURE__ */ h("button", {
|
|
3654
3654
|
type: "button",
|
|
3655
3655
|
className: "select-gallery__tool",
|
|
3656
3656
|
"aria-label": "Remover foto",
|
|
3657
3657
|
title: "Remover foto",
|
|
3658
|
-
onClick: () =>
|
|
3658
|
+
onClick: () => G(t),
|
|
3659
3659
|
children: /* @__PURE__ */ h(le, {})
|
|
3660
3660
|
})]
|
|
3661
3661
|
})
|
|
3662
3662
|
]
|
|
3663
3663
|
}, e.key);
|
|
3664
|
-
}), !
|
|
3664
|
+
}), !ae && !y && /* @__PURE__ */ g("button", {
|
|
3665
3665
|
ref: D,
|
|
3666
3666
|
type: "button",
|
|
3667
3667
|
className: `select-gallery__add${P ? " is-over" : ""}`,
|
|
@@ -3676,13 +3676,13 @@ var er = (e) => {
|
|
|
3676
3676
|
ref: T,
|
|
3677
3677
|
type: "file",
|
|
3678
3678
|
accept: a,
|
|
3679
|
-
multiple:
|
|
3679
|
+
multiple: ie > 1,
|
|
3680
3680
|
hidden: !0,
|
|
3681
3681
|
onChange: (e) => {
|
|
3682
|
-
|
|
3682
|
+
W(Array.from(e.target.files ?? [])), e.target.value = "";
|
|
3683
3683
|
}
|
|
3684
3684
|
}),
|
|
3685
|
-
p && !
|
|
3685
|
+
p && !ae && !y && (R ? /* @__PURE__ */ h(Tn, {
|
|
3686
3686
|
size: "sm",
|
|
3687
3687
|
value: B,
|
|
3688
3688
|
onChange: (e) => {
|
|
@@ -3695,7 +3695,7 @@ var er = (e) => {
|
|
|
3695
3695
|
onKeyDown: (e) => {
|
|
3696
3696
|
e.key === "Enter" ? (e.preventDefault(), oe()) : e.key === "Escape" && (z(!1), ee(""), V(void 0));
|
|
3697
3697
|
},
|
|
3698
|
-
trailingAction: /* @__PURE__ */ h(
|
|
3698
|
+
trailingAction: /* @__PURE__ */ h(H, {
|
|
3699
3699
|
variant: "secondary",
|
|
3700
3700
|
size: "sm",
|
|
3701
3701
|
inline: !0,
|
|
@@ -3770,7 +3770,7 @@ var er = (e) => {
|
|
|
3770
3770
|
}), /* @__PURE__ */ h("span", {
|
|
3771
3771
|
className: "select-select-caret",
|
|
3772
3772
|
"aria-hidden": "true",
|
|
3773
|
-
children: /* @__PURE__ */ h(
|
|
3773
|
+
children: /* @__PURE__ */ h(G, {})
|
|
3774
3774
|
})]
|
|
3775
3775
|
}),
|
|
3776
3776
|
u ? /* @__PURE__ */ h("p", {
|
|
@@ -4046,7 +4046,7 @@ var mr = r(function({ label: e, value: t, onChange: n, options: r, placeholder:
|
|
|
4046
4046
|
}), /* @__PURE__ */ h("span", {
|
|
4047
4047
|
className: "select-combobox__caret",
|
|
4048
4048
|
"aria-hidden": "true",
|
|
4049
|
-
children: /* @__PURE__ */ h(
|
|
4049
|
+
children: /* @__PURE__ */ h(G, {})
|
|
4050
4050
|
})]
|
|
4051
4051
|
}),
|
|
4052
4052
|
children: /* @__PURE__ */ g("div", {
|
|
@@ -4621,7 +4621,7 @@ var Ir = r(function({ label: e, value: t, onChange: n, labelAction: r, hint: i,
|
|
|
4621
4621
|
/* @__PURE__ */ h("span", {
|
|
4622
4622
|
className: "select-select-caret",
|
|
4623
4623
|
"aria-hidden": "true",
|
|
4624
|
-
children: /* @__PURE__ */ h(
|
|
4624
|
+
children: /* @__PURE__ */ h(G, {})
|
|
4625
4625
|
}),
|
|
4626
4626
|
/* @__PURE__ */ h("select", {
|
|
4627
4627
|
className: "select-phone__select",
|
|
@@ -4945,11 +4945,11 @@ function Ur({ items: e, label: t = "Ações", disabled: n }) {
|
|
|
4945
4945
|
active: r,
|
|
4946
4946
|
onClose: () => i(!1),
|
|
4947
4947
|
placement: "bottom-end",
|
|
4948
|
-
activator: /* @__PURE__ */ h(
|
|
4948
|
+
activator: /* @__PURE__ */ h(H, {
|
|
4949
4949
|
variant: "secondary",
|
|
4950
4950
|
size: "sm",
|
|
4951
4951
|
inline: !0,
|
|
4952
|
-
trailingIcon: /* @__PURE__ */ h(
|
|
4952
|
+
trailingIcon: /* @__PURE__ */ h(G, {}),
|
|
4953
4953
|
disabled: n,
|
|
4954
4954
|
onClick: () => i((e) => !e),
|
|
4955
4955
|
children: t
|
|
@@ -5330,13 +5330,13 @@ var Y = r(function({ icon: e, label: t, onClick: n, disabled: r = !1, size: i =
|
|
|
5330
5330
|
//#endregion
|
|
5331
5331
|
//#region src/SelectDisclosureButton.tsx
|
|
5332
5332
|
function hi({ open: e, onToggle: t, children: n, openLabel: r, disabled: i = !1, size: a = "sm", variant: o = "secondary" }) {
|
|
5333
|
-
return /* @__PURE__ */ h(
|
|
5333
|
+
return /* @__PURE__ */ h(H, {
|
|
5334
5334
|
variant: o,
|
|
5335
5335
|
size: a,
|
|
5336
5336
|
inline: !0,
|
|
5337
5337
|
trailingIcon: /* @__PURE__ */ h("span", {
|
|
5338
5338
|
className: `select-disclosure-caret${e ? " is-open" : ""}`,
|
|
5339
|
-
children: /* @__PURE__ */ h(
|
|
5339
|
+
children: /* @__PURE__ */ h(G, {})
|
|
5340
5340
|
}),
|
|
5341
5341
|
disabled: i,
|
|
5342
5342
|
"aria-expanded": e,
|
|
@@ -5585,7 +5585,7 @@ function Gi({ value: e, path: n, depth: r, ancestors: i, ctx: a }) {
|
|
|
5585
5585
|
"aria-expanded": p,
|
|
5586
5586
|
"aria-label": `${p ? "Recolher" : "Expandir"} ${e}`,
|
|
5587
5587
|
onClick: () => a.toggle(l),
|
|
5588
|
-
children: /* @__PURE__ */ h(
|
|
5588
|
+
children: /* @__PURE__ */ h(U, {})
|
|
5589
5589
|
}) : /* @__PURE__ */ h("span", {
|
|
5590
5590
|
className: "select-json__caret select-json__caret--empty",
|
|
5591
5591
|
"aria-hidden": "true"
|
|
@@ -6043,7 +6043,7 @@ function ra({ children: e, className: t, ...n }) {
|
|
|
6043
6043
|
});
|
|
6044
6044
|
}
|
|
6045
6045
|
function ia({ title: e, subtitle: t, leading: n, trailing: r, onClick: i, muted: a = !1 }) {
|
|
6046
|
-
let o = !!i, s = r === void 0 ? o ? /* @__PURE__ */ h(
|
|
6046
|
+
let o = !!i, s = r === void 0 ? o ? /* @__PURE__ */ h(U, {}) : null : r, c = /* @__PURE__ */ g(m, { children: [
|
|
6047
6047
|
n && /* @__PURE__ */ h("span", {
|
|
6048
6048
|
className: "select-optionrow__leading",
|
|
6049
6049
|
children: n
|
|
@@ -6168,7 +6168,7 @@ function ca(e) {
|
|
|
6168
6168
|
//#endregion
|
|
6169
6169
|
//#region src/SelectBackLink.tsx
|
|
6170
6170
|
function la({ children: e = "Voltar", onClick: t, href: n }) {
|
|
6171
|
-
let r = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(
|
|
6171
|
+
let r = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(K, {}), /* @__PURE__ */ h("span", { children: e })] }), i = ca(n);
|
|
6172
6172
|
return i ? /* @__PURE__ */ h("a", {
|
|
6173
6173
|
className: "select-backlink",
|
|
6174
6174
|
href: i,
|
|
@@ -6399,7 +6399,7 @@ var _a = r(function({ value: e, rules: t, showMeter: n = !0, columns: r = 1, cla
|
|
|
6399
6399
|
return /* @__PURE__ */ g(t, { children: [i > 0 && /* @__PURE__ */ h("li", {
|
|
6400
6400
|
className: "select-breadcrumb__sep",
|
|
6401
6401
|
"aria-hidden": "true",
|
|
6402
|
-
children: /* @__PURE__ */ h(
|
|
6402
|
+
children: /* @__PURE__ */ h(U, {})
|
|
6403
6403
|
}), /* @__PURE__ */ h("li", {
|
|
6404
6404
|
className: `select-breadcrumb__item${a ? " is-current" : ""}`,
|
|
6405
6405
|
children: o ? /* @__PURE__ */ h(v, {
|
|
@@ -6435,7 +6435,7 @@ var _a = r(function({ value: e, rules: t, showMeter: n = !0, columns: r = 1, cla
|
|
|
6435
6435
|
className: "select-page__back",
|
|
6436
6436
|
onClick: a.onAction,
|
|
6437
6437
|
"aria-label": a.content ?? "Voltar",
|
|
6438
|
-
children: /* @__PURE__ */ h(
|
|
6438
|
+
children: /* @__PURE__ */ h(K, {})
|
|
6439
6439
|
}), /* @__PURE__ */ g("div", {
|
|
6440
6440
|
className: "select-page__head",
|
|
6441
6441
|
children: [
|
|
@@ -6456,7 +6456,7 @@ var _a = r(function({ value: e, rules: t, showMeter: n = !0, columns: r = 1, cla
|
|
|
6456
6456
|
}), d && /* @__PURE__ */ g("div", {
|
|
6457
6457
|
className: "select-page__actions",
|
|
6458
6458
|
children: [
|
|
6459
|
-
r == null ? void 0 : r.map((e, t) => /* @__PURE__ */ h(
|
|
6459
|
+
r == null ? void 0 : r.map((e, t) => /* @__PURE__ */ h(H, {
|
|
6460
6460
|
variant: "secondary",
|
|
6461
6461
|
size: "sm",
|
|
6462
6462
|
inline: !0,
|
|
@@ -6466,7 +6466,7 @@ var _a = r(function({ value: e, rules: t, showMeter: n = !0, columns: r = 1, cla
|
|
|
6466
6466
|
onClick: e.onAction,
|
|
6467
6467
|
children: e.content
|
|
6468
6468
|
}, t)),
|
|
6469
|
-
n && /* @__PURE__ */ h(
|
|
6469
|
+
n && /* @__PURE__ */ h(H, {
|
|
6470
6470
|
variant: "primary",
|
|
6471
6471
|
size: "sm",
|
|
6472
6472
|
inline: !0,
|
|
@@ -6682,7 +6682,7 @@ var Na = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, icon:
|
|
|
6682
6682
|
}), /* @__PURE__ */ h("span", {
|
|
6683
6683
|
className: "select-section__chevron",
|
|
6684
6684
|
"aria-hidden": "true",
|
|
6685
|
-
children: /* @__PURE__ */ h(
|
|
6685
|
+
children: /* @__PURE__ */ h(G, {})
|
|
6686
6686
|
})]
|
|
6687
6687
|
}), /* @__PURE__ */ h("div", {
|
|
6688
6688
|
className: "select-section__collapse",
|
|
@@ -6885,7 +6885,7 @@ var Ga = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6885
6885
|
children: [/* @__PURE__ */ h("span", { children: e }), /* @__PURE__ */ h("span", {
|
|
6886
6886
|
className: "select-menubtn__caret",
|
|
6887
6887
|
"aria-hidden": "true",
|
|
6888
|
-
children: /* @__PURE__ */ h(
|
|
6888
|
+
children: /* @__PURE__ */ h(G, {})
|
|
6889
6889
|
})]
|
|
6890
6890
|
});
|
|
6891
6891
|
});
|
|
@@ -6929,7 +6929,7 @@ function qa({ item: e, active: t, onSelect: n }) {
|
|
|
6929
6929
|
!r && /* @__PURE__ */ h("span", {
|
|
6930
6930
|
className: "select-sidenav__chevron",
|
|
6931
6931
|
"aria-hidden": "true",
|
|
6932
|
-
children: /* @__PURE__ */ h(
|
|
6932
|
+
children: /* @__PURE__ */ h(G, {})
|
|
6933
6933
|
})
|
|
6934
6934
|
]
|
|
6935
6935
|
}), /* @__PURE__ */ h("div", {
|
|
@@ -7004,7 +7004,7 @@ function Ya({ item: e, active: t, onSelect: n, tabbable: r }) {
|
|
|
7004
7004
|
/* @__PURE__ */ h("span", {
|
|
7005
7005
|
className: "select-sidenav__chevron",
|
|
7006
7006
|
"aria-hidden": "true",
|
|
7007
|
-
children: /* @__PURE__ */ h(
|
|
7007
|
+
children: /* @__PURE__ */ h(G, {})
|
|
7008
7008
|
})
|
|
7009
7009
|
]
|
|
7010
7010
|
}), /* @__PURE__ */ h("div", {
|
|
@@ -7206,7 +7206,7 @@ var no = (e) => e.toLocaleString("pt-BR"), ro = r(function({ page: e, pageCount:
|
|
|
7206
7206
|
onClick: _,
|
|
7207
7207
|
disabled: !p || !_,
|
|
7208
7208
|
"aria-label": "Página anterior",
|
|
7209
|
-
children: /* @__PURE__ */ h(
|
|
7209
|
+
children: /* @__PURE__ */ h(W, {})
|
|
7210
7210
|
}),
|
|
7211
7211
|
y ? b.map((t, n) => t === "gap" ? /* @__PURE__ */ h("span", {
|
|
7212
7212
|
className: "select-pagination__gap",
|
|
@@ -7228,7 +7228,7 @@ var no = (e) => e.toLocaleString("pt-BR"), ro = r(function({ page: e, pageCount:
|
|
|
7228
7228
|
onClick: v,
|
|
7229
7229
|
disabled: !m || !v,
|
|
7230
7230
|
"aria-label": "Próxima página",
|
|
7231
|
-
children: /* @__PURE__ */ h(
|
|
7231
|
+
children: /* @__PURE__ */ h(U, {})
|
|
7232
7232
|
})
|
|
7233
7233
|
]
|
|
7234
7234
|
}), x.length > 0 && /* @__PURE__ */ h("p", {
|
|
@@ -7279,7 +7279,7 @@ function ao({ title: e, help: t, description: n, action: r, filters: i, tools: a
|
|
|
7279
7279
|
}), /* @__PURE__ */ h("span", {
|
|
7280
7280
|
className: "select-table__chevron",
|
|
7281
7281
|
"aria-hidden": "true",
|
|
7282
|
-
children: /* @__PURE__ */ h(
|
|
7282
|
+
children: /* @__PURE__ */ h(G, {})
|
|
7283
7283
|
})]
|
|
7284
7284
|
}) : l && /* @__PURE__ */ g("div", {
|
|
7285
7285
|
className: "select-table__heading",
|
|
@@ -7337,7 +7337,7 @@ function so({ pagination: e }) {
|
|
|
7337
7337
|
}), /* @__PURE__ */ h("span", {
|
|
7338
7338
|
className: `select-facet__caret${t ? " is-open" : ""}`,
|
|
7339
7339
|
"aria-hidden": "true",
|
|
7340
|
-
children: /* @__PURE__ */ h(
|
|
7340
|
+
children: /* @__PURE__ */ h(G, {})
|
|
7341
7341
|
})]
|
|
7342
7342
|
}),
|
|
7343
7343
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -7479,7 +7479,7 @@ var po = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
7479
7479
|
type: "button",
|
|
7480
7480
|
className: `select-table__sortbtn${e.sortDir === "asc" ? " select-table__sortbtn--asc" : ""}${e.sortDir == null ? "" : " select-table__sortbtn--active"}`,
|
|
7481
7481
|
onClick: e.onSort,
|
|
7482
|
-
children: [e.label, /* @__PURE__ */ h(
|
|
7482
|
+
children: [e.label, /* @__PURE__ */ h(G, {})]
|
|
7483
7483
|
}) : e.label, v && e.resizable !== !1 && n < t.length - 1 && /* @__PURE__ */ h("span", {
|
|
7484
7484
|
role: "separator",
|
|
7485
7485
|
"aria-orientation": "vertical",
|
|
@@ -7585,7 +7585,7 @@ var yo = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
7585
7585
|
children: [n ? /* @__PURE__ */ h("span", {
|
|
7586
7586
|
className: `select-table__disclosure${n === "open" ? " is-open" : ""}`,
|
|
7587
7587
|
"aria-hidden": "true",
|
|
7588
|
-
children: n !== "none" && /* @__PURE__ */ h(
|
|
7588
|
+
children: n !== "none" && /* @__PURE__ */ h(U, {})
|
|
7589
7589
|
}) : null, e]
|
|
7590
7590
|
});
|
|
7591
7591
|
}), bo = r(function({ icon: e, title: t, subtitle: n, action: r, className: i, ...a }, o) {
|
|
@@ -7665,7 +7665,7 @@ var yo = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
7665
7665
|
"aria-label": "Abrir",
|
|
7666
7666
|
title: "Abrir",
|
|
7667
7667
|
children: /* @__PURE__ */ h(ce, {})
|
|
7668
|
-
}), i ? /* @__PURE__ */ h(
|
|
7668
|
+
}), i ? /* @__PURE__ */ h(H, {
|
|
7669
7669
|
variant: "secondary",
|
|
7670
7670
|
size: "sm",
|
|
7671
7671
|
inline: !0,
|
|
@@ -7777,7 +7777,7 @@ var Eo = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
7777
7777
|
}), /* @__PURE__ */ h("span", {
|
|
7778
7778
|
className: "select-collapsible__chevron",
|
|
7779
7779
|
"aria-hidden": "true",
|
|
7780
|
-
children: /* @__PURE__ */ h(
|
|
7780
|
+
children: /* @__PURE__ */ h(G, {})
|
|
7781
7781
|
})]
|
|
7782
7782
|
}), /* @__PURE__ */ h("div", {
|
|
7783
7783
|
className: "select-collapsible__bodywrap",
|
|
@@ -8252,20 +8252,20 @@ function fs({ view: e, date: t, events: n, onViewChange: r, onDateChange: i, onE
|
|
|
8252
8252
|
className: "select-calendar__nav",
|
|
8253
8253
|
children: [i ? /* @__PURE__ */ g(m, { children: [
|
|
8254
8254
|
/* @__PURE__ */ h(Y, {
|
|
8255
|
-
icon: /* @__PURE__ */ h(
|
|
8255
|
+
icon: /* @__PURE__ */ h(W, {}),
|
|
8256
8256
|
label: e === "week" ? "Semana anterior" : "Mês anterior",
|
|
8257
8257
|
variant: "outline",
|
|
8258
8258
|
size: "sm",
|
|
8259
8259
|
onClick: () => x(-1)
|
|
8260
8260
|
}),
|
|
8261
8261
|
/* @__PURE__ */ h(Y, {
|
|
8262
|
-
icon: /* @__PURE__ */ h(
|
|
8262
|
+
icon: /* @__PURE__ */ h(U, {}),
|
|
8263
8263
|
label: e === "week" ? "Próxima semana" : "Próximo mês",
|
|
8264
8264
|
variant: "outline",
|
|
8265
8265
|
size: "sm",
|
|
8266
8266
|
onClick: () => x(1)
|
|
8267
8267
|
}),
|
|
8268
|
-
/* @__PURE__ */ h(
|
|
8268
|
+
/* @__PURE__ */ h(H, {
|
|
8269
8269
|
variant: "secondary",
|
|
8270
8270
|
size: "sm",
|
|
8271
8271
|
inline: !0,
|
|
@@ -8743,7 +8743,7 @@ function ks({ title: e, meta: t, actions: n, tools: r, onBack: i, children: a, f
|
|
|
8743
8743
|
i ? /* @__PURE__ */ h("span", {
|
|
8744
8744
|
className: "select-mailreader__back",
|
|
8745
8745
|
children: /* @__PURE__ */ h(Y, {
|
|
8746
|
-
icon: /* @__PURE__ */ h(
|
|
8746
|
+
icon: /* @__PURE__ */ h(K, {}),
|
|
8747
8747
|
label: "Voltar para a lista",
|
|
8748
8748
|
size: "sm",
|
|
8749
8749
|
onClick: i
|
|
@@ -9015,7 +9015,7 @@ function zs({ variant: e = "inline", title: t, minimized: n = !1, onToggleMinimi
|
|
|
9015
9015
|
children: t
|
|
9016
9016
|
}),
|
|
9017
9017
|
r ? /* @__PURE__ */ h(Y, {
|
|
9018
|
-
icon: h(n ? it :
|
|
9018
|
+
icon: h(n ? it : G, {}),
|
|
9019
9019
|
label: n ? "Abrir a janela" : "Minimizar",
|
|
9020
9020
|
size: "sm",
|
|
9021
9021
|
onClick: r
|
|
@@ -9721,14 +9721,14 @@ function gc({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
9721
9721
|
theme: l ?? ur(),
|
|
9722
9722
|
footer: /* @__PURE__ */ g("div", {
|
|
9723
9723
|
className: "select-modal__actions",
|
|
9724
|
-
children: [/* @__PURE__ */ h(
|
|
9724
|
+
children: [/* @__PURE__ */ h(H, {
|
|
9725
9725
|
variant: "secondary",
|
|
9726
9726
|
size: "sm",
|
|
9727
9727
|
inline: !0,
|
|
9728
9728
|
onClick: t,
|
|
9729
9729
|
disabled: c,
|
|
9730
9730
|
children: o
|
|
9731
|
-
}), /* @__PURE__ */ h(
|
|
9731
|
+
}), /* @__PURE__ */ h(H, {
|
|
9732
9732
|
variant: s ? "danger" : "primary",
|
|
9733
9733
|
size: "sm",
|
|
9734
9734
|
inline: !0,
|
|
@@ -9755,14 +9755,14 @@ function _c({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
9755
9755
|
theme: p ?? ur(),
|
|
9756
9756
|
footer: /* @__PURE__ */ g("div", {
|
|
9757
9757
|
className: "select-modal__actions",
|
|
9758
|
-
children: [/* @__PURE__ */ h(
|
|
9758
|
+
children: [/* @__PURE__ */ h(H, {
|
|
9759
9759
|
variant: "secondary",
|
|
9760
9760
|
size: "sm",
|
|
9761
9761
|
inline: !0,
|
|
9762
9762
|
onClick: t,
|
|
9763
9763
|
disabled: c,
|
|
9764
9764
|
children: s
|
|
9765
|
-
}), /* @__PURE__ */ h(
|
|
9765
|
+
}), /* @__PURE__ */ h(H, {
|
|
9766
9766
|
variant: u,
|
|
9767
9767
|
size: "sm",
|
|
9768
9768
|
inline: !0,
|
|
@@ -9854,15 +9854,15 @@ function Ac(e, t, n) {
|
|
|
9854
9854
|
});
|
|
9855
9855
|
}
|
|
9856
9856
|
function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pagination: a, onRowClick: o, title: s, help: c, description: l, action: d, filters: p, columnsKey: m, getChildren: _, defaultExpanded: v, compactRow: y, compactQuery: b = "(max-width: 40rem)", onCompactRowClick: x, listRow: S, footer: C }) {
|
|
9857
|
-
let [w, T] = f(() => m ? Sc(m) : []), [E, D] = f(!1), O = Ln(y && !S ? b : void 0) && y != null, k = S != null || O, A = S ?? y, j = S != null || e.some((e) => e.wrap), [M, N] = f(() => m ? Ec(m) : {}), P = u(() => new Set(w), [w]), F = e.filter(wc), I = F.length > 0 && F.every((e) => P.has(e.key)), L = (e) => !I && P.has(e.key) && wc(e), R = e.filter((e) => !L(e)), z = F.filter((e) => !L(e)), [B, ee] = f(null), [te, V] = f(() => /* @__PURE__ */ new Set()),
|
|
9857
|
+
let [w, T] = f(() => m ? Sc(m) : []), [E, D] = f(!1), O = Ln(y && !S ? b : void 0) && y != null, k = S != null || O, A = S ?? y, j = S != null || e.some((e) => e.wrap), [M, N] = f(() => m ? Ec(m) : {}), P = u(() => new Set(w), [w]), F = e.filter(wc), I = F.length > 0 && F.every((e) => P.has(e.key)), L = (e) => !I && P.has(e.key) && wc(e), R = e.filter((e) => !L(e)), z = F.filter((e) => !L(e)), [B, ee] = f(null), [te, V] = f(() => /* @__PURE__ */ new Set()), ne = (e) => ((v == null ? void 0 : v(e)) ?? !1) !== te.has(n(e)), re = (e) => V((t) => {
|
|
9858
9858
|
let r = new Set(t), i = n(e);
|
|
9859
9859
|
return r.delete(i) || r.add(i), r;
|
|
9860
|
-
}),
|
|
9860
|
+
}), H = (e) => {
|
|
9861
9861
|
T((t) => {
|
|
9862
9862
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
9863
9863
|
return m && Cc(m, r), n && ee((t) => t && t.key === e.key ? null : t), r;
|
|
9864
9864
|
});
|
|
9865
|
-
},
|
|
9865
|
+
}, ie = (e) => {
|
|
9866
9866
|
ee((t) => {
|
|
9867
9867
|
let n = e.sortDefault ?? "asc";
|
|
9868
9868
|
return !t || t.key !== e.key ? {
|
|
@@ -9873,12 +9873,12 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
9873
9873
|
dir: n === "asc" ? "desc" : "asc"
|
|
9874
9874
|
} : null;
|
|
9875
9875
|
});
|
|
9876
|
-
},
|
|
9877
|
-
let e =
|
|
9876
|
+
}, ae = B ? e.find((e) => e.key === B.key) : void 0, U = u(() => {
|
|
9877
|
+
let e = ae == null ? void 0 : ae.sortValue;
|
|
9878
9878
|
if (!B || !e) return (e) => e;
|
|
9879
9879
|
let t = B.dir === "asc" ? 1 : -1;
|
|
9880
9880
|
return (n) => [...n].sort((n, r) => Ac(e(n), e(r), t));
|
|
9881
|
-
}, [B,
|
|
9881
|
+
}, [B, ae]), W = u(() => U(t), [t, U]), G = (e) => (_ == null ? void 0 : _(e)) ?? [], K = !!_ && t.some((e) => G(e).length > 0), q = k ? [{
|
|
9882
9882
|
label: "",
|
|
9883
9883
|
grow: 1
|
|
9884
9884
|
}] : R.map((e) => ({
|
|
@@ -9889,7 +9889,7 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
9889
9889
|
grow: e.grow,
|
|
9890
9890
|
sortable: !!e.sortValue,
|
|
9891
9891
|
sortDir: (B == null ? void 0 : B.key) === e.key ? B.dir : null,
|
|
9892
|
-
onSort: e.sortValue ? () =>
|
|
9892
|
+
onSort: e.sortValue ? () => ie(e) : void 0,
|
|
9893
9893
|
resizable: !!e.title,
|
|
9894
9894
|
tone: e.tone
|
|
9895
9895
|
})), oe = (e, t) => {
|
|
@@ -9931,7 +9931,7 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
9931
9931
|
"aria-checked": t,
|
|
9932
9932
|
disabled: n,
|
|
9933
9933
|
className: "select-facet__opt",
|
|
9934
|
-
onClick: () =>
|
|
9934
|
+
onClick: () => H(e),
|
|
9935
9935
|
children: [/* @__PURE__ */ h("span", { children: e.title }), t && /* @__PURE__ */ h("span", {
|
|
9936
9936
|
className: "select-facet__check",
|
|
9937
9937
|
"aria-hidden": "true",
|
|
@@ -9957,7 +9957,7 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
9957
9957
|
return /* @__PURE__ */ g("div", {
|
|
9958
9958
|
className: "select-datatable",
|
|
9959
9959
|
children: [/* @__PURE__ */ h(po, {
|
|
9960
|
-
columns:
|
|
9960
|
+
columns: q,
|
|
9961
9961
|
empty: ce,
|
|
9962
9962
|
footer: C,
|
|
9963
9963
|
title: s,
|
|
@@ -9969,7 +9969,7 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
9969
9969
|
className: k ? "select-table--compact" : void 0,
|
|
9970
9970
|
onColumnResize: k ? void 0 : (e, t) => oe(e, t),
|
|
9971
9971
|
onColumnResizeReset: k ? void 0 : (e) => oe(e, null),
|
|
9972
|
-
children: k && A ? r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ h(go, { children: /* @__PURE__ */ h(yo, { children: /* @__PURE__ */ h("span", { className: "select-skeleton select-datatable__skel" }) }) }, `skeleton-${t}`)) :
|
|
9972
|
+
children: k && A ? r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ h(go, { children: /* @__PURE__ */ h(yo, { children: /* @__PURE__ */ h("span", { className: "select-skeleton select-datatable__skel" }) }) }, `skeleton-${t}`)) : W.map((e) => /* @__PURE__ */ h(go, {
|
|
9973
9973
|
onClick: x ?? o ? () => (x ?? o)(e) : void 0,
|
|
9974
9974
|
children: /* @__PURE__ */ h(yo, {
|
|
9975
9975
|
className: j ? "select-table__td--wrap" : void 0,
|
|
@@ -9979,21 +9979,21 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
9979
9979
|
align: e.align,
|
|
9980
9980
|
width: e.width,
|
|
9981
9981
|
children: /* @__PURE__ */ h("span", { className: "select-skeleton select-datatable__skel" })
|
|
9982
|
-
}, t)) }, `skeleton-${t}`)) :
|
|
9983
|
-
let t =
|
|
9982
|
+
}, t)) }, `skeleton-${t}`)) : W.flatMap((e) => {
|
|
9983
|
+
let t = G(e);
|
|
9984
9984
|
if (t.length === 0) return [/* @__PURE__ */ h(go, {
|
|
9985
9985
|
onClick: o ? () => o(e) : void 0,
|
|
9986
9986
|
children: R.map((t, n) => /* @__PURE__ */ h(yo, {
|
|
9987
9987
|
align: t.align,
|
|
9988
9988
|
width: t.width,
|
|
9989
9989
|
className: bc(t),
|
|
9990
|
-
disclosure:
|
|
9990
|
+
disclosure: K && n === 0 ? "none" : void 0,
|
|
9991
9991
|
children: t.render(e)
|
|
9992
9992
|
}, n))
|
|
9993
9993
|
}, n(e))];
|
|
9994
|
-
let r =
|
|
9994
|
+
let r = ne(e);
|
|
9995
9995
|
return [/* @__PURE__ */ h(go, {
|
|
9996
|
-
onClick: () =>
|
|
9996
|
+
onClick: () => re(e),
|
|
9997
9997
|
expanded: r,
|
|
9998
9998
|
children: R.map((t, n) => /* @__PURE__ */ h(yo, {
|
|
9999
9999
|
align: t.align,
|
|
@@ -10002,7 +10002,7 @@ function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10002
10002
|
disclosure: n === 0 ? r ? "open" : "closed" : void 0,
|
|
10003
10003
|
children: t.render(e)
|
|
10004
10004
|
}, n))
|
|
10005
|
-
}, n(e)), ...r ?
|
|
10005
|
+
}, n(e)), ...r ? U(t).map((t) => /* @__PURE__ */ h(go, {
|
|
10006
10006
|
nested: !0,
|
|
10007
10007
|
onClick: o ? () => o(t) : void 0,
|
|
10008
10008
|
children: R.map((e, n) => /* @__PURE__ */ h(yo, {
|
|
@@ -10583,7 +10583,7 @@ function $c({ label: e, options: t, value: n, onChange: r, help: i, hint: a, err
|
|
|
10583
10583
|
}), /* @__PURE__ */ h("span", {
|
|
10584
10584
|
className: "select-iconpicker__chevron",
|
|
10585
10585
|
"aria-hidden": "true",
|
|
10586
|
-
children: /* @__PURE__ */ h(
|
|
10586
|
+
children: /* @__PURE__ */ h(G, {})
|
|
10587
10587
|
})]
|
|
10588
10588
|
});
|
|
10589
10589
|
return /* @__PURE__ */ g("div", {
|
|
@@ -10976,12 +10976,12 @@ var Il = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
10976
10976
|
if (O(e)) return;
|
|
10977
10977
|
let t = new Date(e);
|
|
10978
10978
|
r && t.setHours((T == null ? void 0 : T.getHours()) ?? 0, (T == null ? void 0 : T.getMinutes()) ?? 0, 0, 0), n(Pl(t, r)), r || w(!1);
|
|
10979
|
-
},
|
|
10979
|
+
}, ne = (e) => {
|
|
10980
10980
|
let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(T ?? z);
|
|
10981
10981
|
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(Pl(o, !0));
|
|
10982
|
-
},
|
|
10982
|
+
}, re = () => {
|
|
10983
10983
|
n(""), w(!1);
|
|
10984
|
-
},
|
|
10984
|
+
}, ie = /* @__PURE__ */ g("div", {
|
|
10985
10985
|
className: `select-input-wrap${c ? " select-input-wrap--error" : ""}`,
|
|
10986
10986
|
children: [/* @__PURE__ */ h("button", {
|
|
10987
10987
|
id: S,
|
|
@@ -11018,7 +11018,7 @@ var Il = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11018
11018
|
onClose: () => w(!1),
|
|
11019
11019
|
placement: "bottom-start",
|
|
11020
11020
|
role: "dialog",
|
|
11021
|
-
activator:
|
|
11021
|
+
activator: ie,
|
|
11022
11022
|
children: /* @__PURE__ */ g("div", {
|
|
11023
11023
|
className: "select-datefield__pop",
|
|
11024
11024
|
children: [
|
|
@@ -11030,7 +11030,7 @@ var Il = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11030
11030
|
className: "select-datepicker__nav",
|
|
11031
11031
|
"aria-label": te[0],
|
|
11032
11032
|
onClick: () => ee(-1),
|
|
11033
|
-
children: /* @__PURE__ */ h(
|
|
11033
|
+
children: /* @__PURE__ */ h(W, {})
|
|
11034
11034
|
}),
|
|
11035
11035
|
M === "year" ? /* @__PURE__ */ g("span", {
|
|
11036
11036
|
className: "select-datepicker__monthlabel",
|
|
@@ -11044,14 +11044,14 @@ var Il = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11044
11044
|
className: "select-datepicker__monthlabel select-datefield__modebtn",
|
|
11045
11045
|
"aria-label": M === "day" ? "Escolher o ano e o mês" : "Escolher o ano",
|
|
11046
11046
|
onClick: () => N("year"),
|
|
11047
|
-
children: [M === "day" ? `${wl[A.getMonth()]} ${A.getFullYear()}` : A.getFullYear(), /* @__PURE__ */ h(
|
|
11047
|
+
children: [M === "day" ? `${wl[A.getMonth()]} ${A.getFullYear()}` : A.getFullYear(), /* @__PURE__ */ h(G, {})]
|
|
11048
11048
|
}),
|
|
11049
11049
|
/* @__PURE__ */ h("button", {
|
|
11050
11050
|
type: "button",
|
|
11051
11051
|
className: "select-datepicker__nav",
|
|
11052
11052
|
"aria-label": te[1],
|
|
11053
11053
|
onClick: () => ee(1),
|
|
11054
|
-
children: /* @__PURE__ */ h(
|
|
11054
|
+
children: /* @__PURE__ */ h(U, {})
|
|
11055
11055
|
})
|
|
11056
11056
|
]
|
|
11057
11057
|
}),
|
|
@@ -11120,24 +11120,24 @@ var Il = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11120
11120
|
className: "select-input select-datefield__time-input",
|
|
11121
11121
|
"aria-label": "Horário",
|
|
11122
11122
|
value: T ? `${Dl(T.getHours())}:${Dl(T.getMinutes())}` : "",
|
|
11123
|
-
onChange: (e) =>
|
|
11123
|
+
onChange: (e) => ne(e.target.value)
|
|
11124
11124
|
})]
|
|
11125
11125
|
}),
|
|
11126
11126
|
/* @__PURE__ */ g("div", {
|
|
11127
11127
|
className: "select-datefield__footer",
|
|
11128
|
-
children: [p && T ? /* @__PURE__ */ h(
|
|
11128
|
+
children: [p && T ? /* @__PURE__ */ h(H, {
|
|
11129
11129
|
variant: "secondary",
|
|
11130
11130
|
inline: !0,
|
|
11131
|
-
onClick:
|
|
11131
|
+
onClick: re,
|
|
11132
11132
|
children: "Limpar"
|
|
11133
11133
|
}) : /* @__PURE__ */ h("span", {}), /* @__PURE__ */ g("div", {
|
|
11134
11134
|
className: "select-datefield__footer-right",
|
|
11135
|
-
children: [!O(z) && /* @__PURE__ */ h(
|
|
11135
|
+
children: [!O(z) && /* @__PURE__ */ h(H, {
|
|
11136
11136
|
variant: "secondary",
|
|
11137
11137
|
inline: !0,
|
|
11138
11138
|
onClick: () => V(z),
|
|
11139
11139
|
children: "Hoje"
|
|
11140
|
-
}), r && /* @__PURE__ */ h(
|
|
11140
|
+
}), r && /* @__PURE__ */ h(H, {
|
|
11141
11141
|
variant: "primary",
|
|
11142
11142
|
inline: !0,
|
|
11143
11143
|
onClick: () => w(!1),
|
|
@@ -11197,7 +11197,7 @@ function Bl({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
11197
11197
|
}), /* @__PURE__ */ h("span", {
|
|
11198
11198
|
className: `select-facet__caret${r ? " is-open" : ""}`,
|
|
11199
11199
|
"aria-hidden": "true",
|
|
11200
|
-
children: /* @__PURE__ */ h(
|
|
11200
|
+
children: /* @__PURE__ */ h(G, {})
|
|
11201
11201
|
})]
|
|
11202
11202
|
}),
|
|
11203
11203
|
children: [
|
|
@@ -11447,7 +11447,7 @@ var Vl = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11447
11447
|
}, e.value)), /* @__PURE__ */ h("span", {
|
|
11448
11448
|
className: "select-tagselect__caret",
|
|
11449
11449
|
"aria-hidden": "true",
|
|
11450
|
-
children: /* @__PURE__ */ h(
|
|
11450
|
+
children: /* @__PURE__ */ h(G, {})
|
|
11451
11451
|
})]
|
|
11452
11452
|
}),
|
|
11453
11453
|
children: /* @__PURE__ */ g("div", {
|
|
@@ -11539,53 +11539,98 @@ var Vl = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11539
11539
|
})
|
|
11540
11540
|
]
|
|
11541
11541
|
});
|
|
11542
|
-
}), Wl = n(null), Gl = 220, Kl =
|
|
11543
|
-
function Xl({
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11542
|
+
}), Wl = n(null), Gl = 220, Kl = 6e3, ql = 8, Jl = .04, Yl = 5;
|
|
11543
|
+
function Xl({ variant: e }) {
|
|
11544
|
+
return e === "neutral" ? null : /* @__PURE__ */ g("svg", {
|
|
11545
|
+
className: "select-toast__icon",
|
|
11546
|
+
viewBox: "0 0 20 20",
|
|
11547
|
+
fill: "none",
|
|
11548
|
+
stroke: "currentColor",
|
|
11549
|
+
strokeWidth: "1.8",
|
|
11550
|
+
strokeLinecap: "round",
|
|
11551
|
+
strokeLinejoin: "round",
|
|
11552
|
+
"aria-hidden": "true",
|
|
11553
|
+
children: [
|
|
11554
|
+
/* @__PURE__ */ h("circle", {
|
|
11555
|
+
cx: "10",
|
|
11556
|
+
cy: "10",
|
|
11557
|
+
r: "8"
|
|
11558
|
+
}),
|
|
11559
|
+
e === "success" && /* @__PURE__ */ h("path", { d: "M6.5 10.2l2.3 2.3 4.7-4.9" }),
|
|
11560
|
+
e === "error" && /* @__PURE__ */ h("path", { d: "M10 6v4.6M10 13.6v.1" }),
|
|
11561
|
+
e === "info" && /* @__PURE__ */ h("path", { d: "M10 9v5M10 6.2v.1" })
|
|
11562
|
+
]
|
|
11563
|
+
});
|
|
11564
|
+
}
|
|
11565
|
+
function Zl({ children: e }) {
|
|
11566
|
+
let [t, n] = f([]), [r, a] = f(!1), s = d(0), c = d(/* @__PURE__ */ new Map()), l = i((e) => {
|
|
11567
|
+
n((t) => t.filter((t) => t.id !== e)), c.current.delete(e);
|
|
11568
|
+
}, []), p = i((e) => {
|
|
11569
|
+
let t = c.current.get(e);
|
|
11570
|
+
t != null && t.timer && clearTimeout(t.timer), n((t) => t.map((t) => t.id === e ? {
|
|
11549
11571
|
...t,
|
|
11550
11572
|
exiting: !0
|
|
11551
|
-
} : t)),
|
|
11552
|
-
|
|
11553
|
-
|
|
11573
|
+
} : t)), c.current.set(e, {
|
|
11574
|
+
remaining: 0,
|
|
11575
|
+
startedAt: null,
|
|
11576
|
+
timer: setTimeout(() => l(e), Gl)
|
|
11577
|
+
});
|
|
11578
|
+
}, [l]), m = i((e) => {
|
|
11579
|
+
let t = c.current.get(e);
|
|
11580
|
+
!t || t.startedAt !== null || t.remaining <= 0 || (t.startedAt = Date.now(), t.timer = setTimeout(() => p(e), t.remaining));
|
|
11581
|
+
}, [p]), v = i((e, t) => {
|
|
11582
|
+
let r = ++s.current, i = (t == null ? void 0 : t.duration) ?? Kl;
|
|
11554
11583
|
n((n) => [...n, {
|
|
11555
|
-
id:
|
|
11584
|
+
id: r,
|
|
11556
11585
|
content: e,
|
|
11557
11586
|
variant: (t == null ? void 0 : t.variant) ?? "neutral",
|
|
11558
|
-
action: t == null ? void 0 : t.action
|
|
11559
|
-
|
|
11560
|
-
|
|
11587
|
+
action: t == null ? void 0 : t.action,
|
|
11588
|
+
duration: i
|
|
11589
|
+
}]), i > 0 && (c.current.set(r, {
|
|
11590
|
+
remaining: i,
|
|
11591
|
+
startedAt: null
|
|
11592
|
+
}), m(r));
|
|
11593
|
+
}, [m]), y = i(() => {
|
|
11594
|
+
a(!0), c.current.forEach((e) => {
|
|
11595
|
+
e.startedAt !== null && e.timer && (clearTimeout(e.timer), e.remaining -= Date.now() - e.startedAt, e.startedAt = null);
|
|
11596
|
+
});
|
|
11597
|
+
}, []), b = i(() => {
|
|
11598
|
+
a(!1), t.forEach((e) => !e.exiting && m(e.id));
|
|
11599
|
+
}, [t, m]);
|
|
11561
11600
|
o(() => {
|
|
11562
|
-
let e =
|
|
11601
|
+
let e = c.current;
|
|
11563
11602
|
return () => {
|
|
11564
|
-
e.forEach((e) => clearTimeout(e)), e.clear();
|
|
11603
|
+
e.forEach((e) => e.timer && clearTimeout(e.timer)), e.clear();
|
|
11565
11604
|
};
|
|
11566
11605
|
}, []);
|
|
11567
|
-
let
|
|
11568
|
-
show:
|
|
11569
|
-
success: (e, t) =>
|
|
11606
|
+
let x = u(() => ({
|
|
11607
|
+
show: v,
|
|
11608
|
+
success: (e, t) => v(e, {
|
|
11570
11609
|
variant: "success",
|
|
11571
11610
|
duration: t
|
|
11572
11611
|
}),
|
|
11573
|
-
error: (e, t) =>
|
|
11612
|
+
error: (e, t) => v(e, {
|
|
11574
11613
|
variant: "error",
|
|
11575
11614
|
duration: t
|
|
11576
11615
|
}),
|
|
11577
|
-
info: (e, t) =>
|
|
11616
|
+
info: (e, t) => v(e, {
|
|
11578
11617
|
variant: "info",
|
|
11579
11618
|
duration: t
|
|
11580
11619
|
})
|
|
11581
|
-
}), [
|
|
11620
|
+
}), [v]);
|
|
11582
11621
|
return /* @__PURE__ */ g(Wl.Provider, {
|
|
11583
|
-
value:
|
|
11622
|
+
value: x,
|
|
11584
11623
|
children: [e, t.length > 0 && _(/* @__PURE__ */ h("div", {
|
|
11585
|
-
className:
|
|
11624
|
+
className: `select select-toasts${r ? " is-paused" : ""}`,
|
|
11586
11625
|
role: "region",
|
|
11587
11626
|
"aria-live": "polite",
|
|
11588
11627
|
"aria-label": "Notificações",
|
|
11628
|
+
onMouseEnter: y,
|
|
11629
|
+
onMouseLeave: b,
|
|
11630
|
+
onFocus: y,
|
|
11631
|
+
onBlur: (e) => {
|
|
11632
|
+
e.currentTarget.contains(e.relatedTarget) || b();
|
|
11633
|
+
},
|
|
11589
11634
|
children: t.map((e, n) => {
|
|
11590
11635
|
let r = t.length - 1 - n, i = e.exiting || r >= Yl, a = {
|
|
11591
11636
|
transform: `translate(-50%, ${-r * ql}px) scale(${1 - r * Jl})`,
|
|
@@ -11598,25 +11643,37 @@ function Xl({ children: e }) {
|
|
|
11598
11643
|
role: "status",
|
|
11599
11644
|
style: a,
|
|
11600
11645
|
children: [
|
|
11601
|
-
/* @__PURE__ */ h(
|
|
11646
|
+
/* @__PURE__ */ h(Xl, { variant: e.variant }),
|
|
11647
|
+
/* @__PURE__ */ g("span", {
|
|
11602
11648
|
className: "select-toast__content",
|
|
11603
|
-
children:
|
|
11649
|
+
children: [/* @__PURE__ */ h("span", {
|
|
11650
|
+
className: "select-toast__text",
|
|
11651
|
+
children: e.content
|
|
11652
|
+
}), e.action ? /* @__PURE__ */ h("span", {
|
|
11653
|
+
className: "select-toast__actions",
|
|
11654
|
+
children: /* @__PURE__ */ h(H, {
|
|
11655
|
+
variant: "secondary",
|
|
11656
|
+
size: "sm",
|
|
11657
|
+
inline: !0,
|
|
11658
|
+
onClick: () => {
|
|
11659
|
+
var t;
|
|
11660
|
+
(t = e.action) == null || t.onAction(), p(e.id);
|
|
11661
|
+
},
|
|
11662
|
+
children: e.action.label
|
|
11663
|
+
})
|
|
11664
|
+
}) : null]
|
|
11604
11665
|
}),
|
|
11605
|
-
e.action ? /* @__PURE__ */ h("button", {
|
|
11606
|
-
type: "button",
|
|
11607
|
-
className: "select-toast__action",
|
|
11608
|
-
onClick: () => {
|
|
11609
|
-
var t;
|
|
11610
|
-
(t = e.action) == null || t.onAction(), c(e.id);
|
|
11611
|
-
},
|
|
11612
|
-
children: e.action.label
|
|
11613
|
-
}) : null,
|
|
11614
11666
|
/* @__PURE__ */ h("button", {
|
|
11615
11667
|
type: "button",
|
|
11616
11668
|
className: "select-toast__close",
|
|
11617
11669
|
"aria-label": "Fechar",
|
|
11618
|
-
onClick: () =>
|
|
11670
|
+
onClick: () => p(e.id),
|
|
11619
11671
|
children: /* @__PURE__ */ h(le, {})
|
|
11672
|
+
}),
|
|
11673
|
+
e.duration > 0 && !e.exiting && /* @__PURE__ */ h("span", {
|
|
11674
|
+
className: "select-toast__time",
|
|
11675
|
+
"aria-hidden": "true",
|
|
11676
|
+
style: { animationDuration: `${e.duration}ms` }
|
|
11620
11677
|
})
|
|
11621
11678
|
]
|
|
11622
11679
|
}, e.id);
|
|
@@ -11624,14 +11681,14 @@ function Xl({ children: e }) {
|
|
|
11624
11681
|
}), document.body)]
|
|
11625
11682
|
});
|
|
11626
11683
|
}
|
|
11627
|
-
function
|
|
11684
|
+
function Ql() {
|
|
11628
11685
|
let e = a(Wl);
|
|
11629
11686
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
11630
11687
|
return e;
|
|
11631
11688
|
}
|
|
11632
11689
|
//#endregion
|
|
11633
11690
|
//#region src/SelectPreviewFrame.tsx
|
|
11634
|
-
var
|
|
11691
|
+
var $l = "allow-scripts allow-same-origin allow-forms", eu = 390, tu = 1280, nu = r(function({ src: e, sandbox: t = $l, title: n = "Pré-visualização", height: r = 560, fill: i = !1, initialDevice: a = "desktop", showDeviceToggle: o = !0, openLabel: s = "Abrir em nova aba", emptyLabel: c = "Salve para gerar a pré-visualização.", onReload: u, notice: p, iframeRef: _, desktopWidth: v = tu, className: y, ...b }, x) {
|
|
11635
11692
|
let S = ca(e), [C, w] = f(a), [T, E] = f(0), [D, O] = f(!0), k = d(null), [A, j] = f({
|
|
11636
11693
|
w: 0,
|
|
11637
11694
|
h: 0
|
|
@@ -11649,7 +11706,7 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
|
|
|
11649
11706
|
});
|
|
11650
11707
|
return t.observe(e), () => t.disconnect();
|
|
11651
11708
|
}, []);
|
|
11652
|
-
let M = C === "mobile" ?
|
|
11709
|
+
let M = C === "mobile" ? eu : v, N = A.w > 0 ? Math.min(1, A.w / M) : 1, P = S ? `${S}${S.includes("?") ? "&" : "?"}_pv=${T}` : "", F = () => {
|
|
11653
11710
|
if (O(!0), u) {
|
|
11654
11711
|
u();
|
|
11655
11712
|
return;
|
|
@@ -11738,7 +11795,7 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
|
|
|
11738
11795
|
})
|
|
11739
11796
|
})]
|
|
11740
11797
|
});
|
|
11741
|
-
}),
|
|
11798
|
+
}), ru = r(function({ availableCents: e, availableLabel: t = "Saldo disponível", delta: n, buckets: r = [], action: i, variant: a = "card", updatedLabel: o, meta: s = [], status: c, loading: l = !1, className: u, ...d }, f) {
|
|
11742
11799
|
if (a === "hero") {
|
|
11743
11800
|
let n = (e, t = "1em") => /* @__PURE__ */ h("span", {
|
|
11744
11801
|
className: "select-skeleton select-balance__skel",
|
|
@@ -11838,7 +11895,7 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
|
|
|
11838
11895
|
children: [/* @__PURE__ */ h("h3", {
|
|
11839
11896
|
className: "select-balance__title",
|
|
11840
11897
|
children: t
|
|
11841
|
-
}), i && /* @__PURE__ */ h(
|
|
11898
|
+
}), i && /* @__PURE__ */ h(H, {
|
|
11842
11899
|
variant: "primary",
|
|
11843
11900
|
size: "sm",
|
|
11844
11901
|
inline: !0,
|
|
@@ -11880,7 +11937,7 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
|
|
|
11880
11937
|
})]
|
|
11881
11938
|
})]
|
|
11882
11939
|
});
|
|
11883
|
-
}),
|
|
11940
|
+
}), iu = r(function({ grossCents: e, fees: t, netCents: n, grossLabel: r = "Valor bruto", netLabel: i = "Valor líquido", bar: a = !1, barLabel: o, className: s, ...c }, l) {
|
|
11884
11941
|
let u = n ?? e - t.reduce((e, t) => e + t.cents, 0), d = Math.max(0, e - u), f = a && e > 0 && u >= 0, p = e > 0 ? d / e * 100 : 0;
|
|
11885
11942
|
return /* @__PURE__ */ g("div", {
|
|
11886
11943
|
ref: l,
|
|
@@ -11959,7 +12016,7 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
|
|
|
11959
12016
|
})
|
|
11960
12017
|
]
|
|
11961
12018
|
});
|
|
11962
|
-
}),
|
|
12019
|
+
}), au = r(function({ label: e, value: t, caption: n, chart: r, help: i, tone: a, bare: o = !1, onClick: s, selected: c = !1, loading: l = !1, className: u, ...d }, f) {
|
|
11963
12020
|
let p = s != null, _ = p ? {
|
|
11964
12021
|
role: "button",
|
|
11965
12022
|
tabIndex: 0,
|
|
@@ -12004,7 +12061,7 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
|
|
|
12004
12061
|
})
|
|
12005
12062
|
] })]
|
|
12006
12063
|
});
|
|
12007
|
-
}),
|
|
12064
|
+
}), ou = {
|
|
12008
12065
|
"pt-BR": {
|
|
12009
12066
|
severity: {
|
|
12010
12067
|
info: "Para saber",
|
|
@@ -12153,42 +12210,42 @@ var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu
|
|
|
12153
12210
|
unread: "Nuevo"
|
|
12154
12211
|
}
|
|
12155
12212
|
};
|
|
12156
|
-
function
|
|
12213
|
+
function su(e) {
|
|
12157
12214
|
return e === "en" || e != null && e.startsWith("en-") ? "en" : e === "es" || e != null && e.startsWith("es-") ? "es" : "pt-BR";
|
|
12158
12215
|
}
|
|
12159
|
-
function
|
|
12160
|
-
let n =
|
|
12216
|
+
function cu(e, t) {
|
|
12217
|
+
let n = su(e);
|
|
12161
12218
|
return {
|
|
12162
12219
|
lang: n,
|
|
12163
12220
|
labels: {
|
|
12164
|
-
...
|
|
12221
|
+
...ou[n],
|
|
12165
12222
|
...t
|
|
12166
12223
|
}
|
|
12167
12224
|
};
|
|
12168
12225
|
}
|
|
12169
|
-
var
|
|
12226
|
+
var lu = {
|
|
12170
12227
|
info: "info",
|
|
12171
12228
|
opportunity: "success",
|
|
12172
12229
|
warning: "warning",
|
|
12173
12230
|
critical: "critical"
|
|
12174
12231
|
};
|
|
12175
|
-
function
|
|
12232
|
+
function uu(e, t, n) {
|
|
12176
12233
|
return new Intl.NumberFormat(n, {
|
|
12177
12234
|
style: "currency",
|
|
12178
12235
|
currency: t,
|
|
12179
12236
|
maximumFractionDigits: 0
|
|
12180
12237
|
}).format(e / 100);
|
|
12181
12238
|
}
|
|
12182
|
-
function
|
|
12183
|
-
let r =
|
|
12239
|
+
function du(e, t, n) {
|
|
12240
|
+
let r = uu(e.minCents, e.currency, t), i = uu(e.maxCents, e.currency, t);
|
|
12184
12241
|
return e.minCents === e.maxCents ? n.about(i) : `${r}${n.rangeJoin}${i}`;
|
|
12185
12242
|
}
|
|
12186
|
-
function
|
|
12187
|
-
let r =
|
|
12243
|
+
function fu(e, t = "pt-BR", n = ou[su(t)]) {
|
|
12244
|
+
let r = su(t), i = uu(e.minCents, e.currency, r), a = uu(e.maxCents, e.currency, r);
|
|
12188
12245
|
return e.minCents === e.maxCents ? n.impactAbout(a) : n.impact(`${i}${n.rangeJoin}${a}`);
|
|
12189
12246
|
}
|
|
12190
|
-
var
|
|
12191
|
-
function
|
|
12247
|
+
var pu = 864e5;
|
|
12248
|
+
function mu(e, t, n, r) {
|
|
12192
12249
|
let i = new Date(e.start), a = new Date(e.end);
|
|
12193
12250
|
if (Number.isNaN(i.getTime()) || Number.isNaN(a.getTime())) return null;
|
|
12194
12251
|
let o = new Intl.DateTimeFormat("en", {
|
|
@@ -12200,7 +12257,7 @@ function pu(e, t, n, r) {
|
|
|
12200
12257
|
...s ? {} : { year: "numeric" },
|
|
12201
12258
|
timeZone: n
|
|
12202
12259
|
});
|
|
12203
|
-
if (a.getTime() - i.getTime() <
|
|
12260
|
+
if (a.getTime() - i.getTime() < pu) {
|
|
12204
12261
|
let e = new Intl.DateTimeFormat(t, {
|
|
12205
12262
|
hour: "2-digit",
|
|
12206
12263
|
minute: "2-digit",
|
|
@@ -12211,8 +12268,8 @@ function pu(e, t, n, r) {
|
|
|
12211
12268
|
}
|
|
12212
12269
|
return r.periodRange(c.format(i), c.format(a));
|
|
12213
12270
|
}
|
|
12214
|
-
function
|
|
12215
|
-
let n =
|
|
12271
|
+
function hu({ severity: e, labels: t }) {
|
|
12272
|
+
let n = lu[e] ?? "info";
|
|
12216
12273
|
return /* @__PURE__ */ g("span", {
|
|
12217
12274
|
className: `select-insight__sev select-insight__sev--${n}`,
|
|
12218
12275
|
children: [/* @__PURE__ */ h("span", {
|
|
@@ -12221,7 +12278,7 @@ function mu({ severity: e, labels: t }) {
|
|
|
12221
12278
|
}), t.severity[e] ?? e]
|
|
12222
12279
|
});
|
|
12223
12280
|
}
|
|
12224
|
-
function
|
|
12281
|
+
function gu({ label: e }) {
|
|
12225
12282
|
return /* @__PURE__ */ g("span", {
|
|
12226
12283
|
className: "select-insight__new",
|
|
12227
12284
|
children: [/* @__PURE__ */ h("span", {
|
|
@@ -12230,10 +12287,10 @@ function hu({ label: e }) {
|
|
|
12230
12287
|
}), e]
|
|
12231
12288
|
});
|
|
12232
12289
|
}
|
|
12233
|
-
function
|
|
12290
|
+
function _u(e) {
|
|
12234
12291
|
return e != null && typeof e.raw == "number" && Number.isFinite(e.raw) && e.raw >= 0 ? e.raw : null;
|
|
12235
12292
|
}
|
|
12236
|
-
function
|
|
12293
|
+
function vu({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
12237
12294
|
let r = Math.max(0, Math.min(1, e)) * 100;
|
|
12238
12295
|
return /* @__PURE__ */ h("span", {
|
|
12239
12296
|
className: `select-insight__bar select-insight__bar--${t}${n === "sm" ? " select-insight__bar--sm" : ""}`,
|
|
@@ -12244,18 +12301,18 @@ function _u({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
|
12244
12301
|
})
|
|
12245
12302
|
});
|
|
12246
12303
|
}
|
|
12247
|
-
var
|
|
12304
|
+
var yu = /* @__PURE__ */ new Set([
|
|
12248
12305
|
"metric",
|
|
12249
12306
|
"comparison",
|
|
12250
12307
|
"table",
|
|
12251
12308
|
"items",
|
|
12252
12309
|
"text"
|
|
12253
12310
|
]);
|
|
12254
|
-
function
|
|
12255
|
-
return
|
|
12311
|
+
function bu(e) {
|
|
12312
|
+
return yu.has(e.type);
|
|
12256
12313
|
}
|
|
12257
|
-
function
|
|
12258
|
-
let t =
|
|
12314
|
+
function xu({ block: e }) {
|
|
12315
|
+
let t = _u(e.value), n = _u(e.baseline), r = t != null && n != null && Math.max(t, n) > 0 ? Math.max(t, n) / .9 : null, i = !!e.valueLabel;
|
|
12259
12316
|
return /* @__PURE__ */ g("div", {
|
|
12260
12317
|
className: `select-insight__tile select-insight__cmp${r == null ? " select-insight__cmp--plain" : ""}${!i && r != null ? " select-insight__cmp--stacked" : ""}`,
|
|
12261
12318
|
children: [
|
|
@@ -12272,7 +12329,7 @@ function bu({ block: e }) {
|
|
|
12272
12329
|
className: "select-insight__cmpname",
|
|
12273
12330
|
children: i ? e.valueLabel : e.label
|
|
12274
12331
|
}),
|
|
12275
|
-
r == null ? null : /* @__PURE__ */ h(
|
|
12332
|
+
r == null ? null : /* @__PURE__ */ h(vu, {
|
|
12276
12333
|
fraction: (t ?? 0) / r,
|
|
12277
12334
|
tone: "own"
|
|
12278
12335
|
}),
|
|
@@ -12288,7 +12345,7 @@ function bu({ block: e }) {
|
|
|
12288
12345
|
className: "select-insight__cmpname",
|
|
12289
12346
|
children: e.baselineLabel
|
|
12290
12347
|
}),
|
|
12291
|
-
r == null ? null : /* @__PURE__ */ h(
|
|
12348
|
+
r == null ? null : /* @__PURE__ */ h(vu, {
|
|
12292
12349
|
fraction: (n ?? 0) / r,
|
|
12293
12350
|
tone: "reference"
|
|
12294
12351
|
}),
|
|
@@ -12306,8 +12363,8 @@ function bu({ block: e }) {
|
|
|
12306
12363
|
]
|
|
12307
12364
|
});
|
|
12308
12365
|
}
|
|
12309
|
-
function
|
|
12310
|
-
let n = e.items.map((e) =>
|
|
12366
|
+
function Su({ block: e, renderItem: t }) {
|
|
12367
|
+
let n = e.items.map((e) => _u(e.value)), r = Math.max(0, ...n.map((e) => e ?? 0)), i = e.items.length > 0 && r > 0 && n.every((e) => e != null);
|
|
12311
12368
|
return /* @__PURE__ */ g("div", {
|
|
12312
12369
|
className: "select-insight__box",
|
|
12313
12370
|
children: [/* @__PURE__ */ h("h5", {
|
|
@@ -12320,7 +12377,7 @@ function xu({ block: e, renderItem: t }) {
|
|
|
12320
12377
|
className: "select-insight__itemlabel",
|
|
12321
12378
|
children: (t == null ? void 0 : t(e)) ?? e.label
|
|
12322
12379
|
}),
|
|
12323
|
-
i ? /* @__PURE__ */ h(
|
|
12380
|
+
i ? /* @__PURE__ */ h(vu, {
|
|
12324
12381
|
fraction: (n[a] ?? 0) / r,
|
|
12325
12382
|
size: "sm"
|
|
12326
12383
|
}) : null,
|
|
@@ -12332,14 +12389,14 @@ function xu({ block: e, renderItem: t }) {
|
|
|
12332
12389
|
})]
|
|
12333
12390
|
});
|
|
12334
12391
|
}
|
|
12335
|
-
function
|
|
12392
|
+
function Cu({ block: e }) {
|
|
12336
12393
|
let t = new Set(e.columns.filter((t) => e.rows.length > 0 && e.rows.every((e) => {
|
|
12337
12394
|
var n;
|
|
12338
|
-
return ((n = e[t.key]) == null ? void 0 : n.type) === "percent" && (
|
|
12395
|
+
return ((n = e[t.key]) == null ? void 0 : n.type) === "percent" && (_u(e[t.key]) ?? 2) <= 1;
|
|
12339
12396
|
})).map((e) => e.key)), n = (e, n) => n && t.has(e) ? /* @__PURE__ */ g("span", {
|
|
12340
12397
|
className: "select-insight__share",
|
|
12341
|
-
children: [/* @__PURE__ */ h(
|
|
12342
|
-
fraction:
|
|
12398
|
+
children: [/* @__PURE__ */ h(vu, {
|
|
12399
|
+
fraction: _u(n) ?? 0,
|
|
12343
12400
|
size: "sm"
|
|
12344
12401
|
}), /* @__PURE__ */ h("span", {
|
|
12345
12402
|
className: "select-insight__sharevalue",
|
|
@@ -12368,10 +12425,10 @@ function Su({ block: e }) {
|
|
|
12368
12425
|
})]
|
|
12369
12426
|
}) : null] });
|
|
12370
12427
|
}
|
|
12371
|
-
function
|
|
12428
|
+
function wu({ link: e, primary: t }) {
|
|
12372
12429
|
let n = ca(e.href);
|
|
12373
12430
|
if (!n && !e.onClick) return null;
|
|
12374
|
-
let r = t ? "select-btn select-btn--primary select-btn--auto select-insight__go" : "select-insight__golink", i = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", { children: e.label }), /* @__PURE__ */ h(
|
|
12431
|
+
let r = t ? "select-btn select-btn--primary select-btn--auto select-insight__go" : "select-insight__golink", i = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", { children: e.label }), /* @__PURE__ */ h(U, {})] });
|
|
12375
12432
|
if (!n) return /* @__PURE__ */ h("button", {
|
|
12376
12433
|
type: "button",
|
|
12377
12434
|
className: r,
|
|
@@ -12393,8 +12450,8 @@ function Cu({ link: e, primary: t }) {
|
|
|
12393
12450
|
children: i
|
|
12394
12451
|
});
|
|
12395
12452
|
}
|
|
12396
|
-
function
|
|
12397
|
-
let { lang: w, labels: T } =
|
|
12453
|
+
function Tu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo", locked: i = !1, lockedCta: a, position: o, unread: s = !1, badges: c, nav: l, triage: u, triageNote: d, footer: f, trend: p, outcome: _, renderItem: v, actionLink: y, renderAction: b, methodologyOpen: x = !1, bare: S = !1, className: C }) {
|
|
12454
|
+
let { lang: w, labels: T } = cu(t, n), E = lu[e.severity] ?? "info", D = e.period ? mu(e.period, w, r, T) : null, O = (e.blocks ?? []).filter(bu), k = e.actions ?? [], A = `select-insight select-insight--${E}` + (i ? " select-insight--locked" : "") + (S ? " select-insight--bare" : "") + (C ? " " + C : ""), j = /* @__PURE__ */ g("header", {
|
|
12398
12455
|
className: "select-insight__head",
|
|
12399
12456
|
children: [/* @__PURE__ */ g("div", {
|
|
12400
12457
|
className: "select-insight__meta",
|
|
@@ -12403,12 +12460,12 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12403
12460
|
className: "select-insight__position",
|
|
12404
12461
|
children: o
|
|
12405
12462
|
}) : null,
|
|
12406
|
-
/* @__PURE__ */ h(
|
|
12463
|
+
/* @__PURE__ */ h(hu, {
|
|
12407
12464
|
severity: e.severity,
|
|
12408
12465
|
labels: T
|
|
12409
12466
|
}),
|
|
12410
12467
|
e.domain ? /* @__PURE__ */ h("span", { children: T.domain[e.domain] ?? e.domain }) : null,
|
|
12411
|
-
s && !i ? /* @__PURE__ */ h(
|
|
12468
|
+
s && !i ? /* @__PURE__ */ h(gu, { label: T.unread }) : null,
|
|
12412
12469
|
i ? /* @__PURE__ */ h(zr, {
|
|
12413
12470
|
tone: "pro",
|
|
12414
12471
|
size: "sm",
|
|
@@ -12445,7 +12502,7 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12445
12502
|
}),
|
|
12446
12503
|
/* @__PURE__ */ h("strong", {
|
|
12447
12504
|
className: "select-insight__stakevalue",
|
|
12448
|
-
children:
|
|
12505
|
+
children: du(e.impact, w, T)
|
|
12449
12506
|
}),
|
|
12450
12507
|
/* @__PURE__ */ h("span", {
|
|
12451
12508
|
className: "select-insight__stakenote",
|
|
@@ -12494,7 +12551,7 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12494
12551
|
I || u ? /* @__PURE__ */ g("div", {
|
|
12495
12552
|
className: "select-insight__nowactions",
|
|
12496
12553
|
children: [
|
|
12497
|
-
I ? /* @__PURE__ */ h(
|
|
12554
|
+
I ? /* @__PURE__ */ h(wu, {
|
|
12498
12555
|
link: I,
|
|
12499
12556
|
primary: !0
|
|
12500
12557
|
}) : null,
|
|
@@ -12520,7 +12577,7 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12520
12577
|
return /* @__PURE__ */ h("li", { children: n ?? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", {
|
|
12521
12578
|
className: "select-insight__moretext",
|
|
12522
12579
|
children: e.label
|
|
12523
|
-
}), r ? /* @__PURE__ */ h(
|
|
12580
|
+
}), r ? /* @__PURE__ */ h(wu, {
|
|
12524
12581
|
link: r,
|
|
12525
12582
|
primary: !1
|
|
12526
12583
|
}) : null] }) }, `${e.target ?? "text"}:${t}`);
|
|
@@ -12558,7 +12615,7 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12558
12615
|
}),
|
|
12559
12616
|
/* @__PURE__ */ h("div", {
|
|
12560
12617
|
className: "select-insight__tilevalue",
|
|
12561
|
-
children:
|
|
12618
|
+
children: du(e.impact, w, T)
|
|
12562
12619
|
}),
|
|
12563
12620
|
/* @__PURE__ */ h("div", {
|
|
12564
12621
|
className: "select-insight__tilenote",
|
|
@@ -12569,7 +12626,7 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12569
12626
|
children: [/* @__PURE__ */ h("span", { children: z.label }), /* @__PURE__ */ h("strong", { children: z.value.display })]
|
|
12570
12627
|
}) : null
|
|
12571
12628
|
]
|
|
12572
|
-
}) : null, B.map((e, t) => e.type === "comparison" ? /* @__PURE__ */ h(
|
|
12629
|
+
}) : null, B.map((e, t) => e.type === "comparison" ? /* @__PURE__ */ h(xu, { block: e }, t) : /* @__PURE__ */ g("div", {
|
|
12573
12630
|
className: "select-insight__tile",
|
|
12574
12631
|
children: [
|
|
12575
12632
|
/* @__PURE__ */ h("div", {
|
|
@@ -12601,10 +12658,10 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12601
12658
|
p.content
|
|
12602
12659
|
]
|
|
12603
12660
|
}) : null,
|
|
12604
|
-
ee.map((e, t) => e.type === "items" ? /* @__PURE__ */ h(
|
|
12661
|
+
ee.map((e, t) => e.type === "items" ? /* @__PURE__ */ h(Su, {
|
|
12605
12662
|
block: e,
|
|
12606
12663
|
renderItem: v
|
|
12607
|
-
}, t) : e.type === "table" ? /* @__PURE__ */ h(
|
|
12664
|
+
}, t) : e.type === "table" ? /* @__PURE__ */ h(Cu, { block: e }, t) : e.type === "text" ? /* @__PURE__ */ g("div", {
|
|
12608
12665
|
className: "select-insight__text",
|
|
12609
12666
|
children: [/* @__PURE__ */ h(ye, {}), /* @__PURE__ */ h("span", { children: e.text })]
|
|
12610
12667
|
}, t) : null)
|
|
@@ -12613,7 +12670,7 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12613
12670
|
e.confidence ? T.confidence[e.confidence] ?? e.confidence : null,
|
|
12614
12671
|
e.sampleLabel ? e.sampleLabel : e.sampleSize == null ? null : T.sample(e.sampleSize.toLocaleString(w)),
|
|
12615
12672
|
D
|
|
12616
|
-
].filter((e) => !!e),
|
|
12673
|
+
].filter((e) => !!e), ne = /* @__PURE__ */ g("span", {
|
|
12617
12674
|
className: "select-insight__methodhead",
|
|
12618
12675
|
children: [/* @__PURE__ */ h("span", {
|
|
12619
12676
|
className: "select-insight__methodtitle",
|
|
@@ -12622,8 +12679,8 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12622
12679
|
className: "select-insight__methodsub",
|
|
12623
12680
|
children: V.join(" · ")
|
|
12624
12681
|
}) : null]
|
|
12625
|
-
}),
|
|
12626
|
-
title:
|
|
12682
|
+
}), re = e.methodology ? /* @__PURE__ */ h(Eo, {
|
|
12683
|
+
title: ne,
|
|
12627
12684
|
defaultOpen: x,
|
|
12628
12685
|
className: "select-insight__method",
|
|
12629
12686
|
children: /* @__PURE__ */ h("p", {
|
|
@@ -12632,8 +12689,8 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12632
12689
|
})
|
|
12633
12690
|
}) : V.length ? /* @__PURE__ */ h("div", {
|
|
12634
12691
|
className: "select-insight__method select-insight__method--static",
|
|
12635
|
-
children:
|
|
12636
|
-
}) : null,
|
|
12692
|
+
children: ne
|
|
12693
|
+
}) : null, H = _ ? /* @__PURE__ */ g("div", {
|
|
12637
12694
|
className: `select-insight__outcome select-insight__outcome--${_.tone}`,
|
|
12638
12695
|
children: [
|
|
12639
12696
|
/* @__PURE__ */ h("span", {
|
|
@@ -12669,10 +12726,10 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12669
12726
|
children: [
|
|
12670
12727
|
j,
|
|
12671
12728
|
M,
|
|
12672
|
-
|
|
12729
|
+
H,
|
|
12673
12730
|
L,
|
|
12674
12731
|
te,
|
|
12675
|
-
|
|
12732
|
+
re,
|
|
12676
12733
|
u ? /* @__PURE__ */ g("div", {
|
|
12677
12734
|
className: "select-insight__foot",
|
|
12678
12735
|
children: [/* @__PURE__ */ h("div", {
|
|
@@ -12687,25 +12744,25 @@ function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12687
12744
|
]
|
|
12688
12745
|
});
|
|
12689
12746
|
}
|
|
12690
|
-
function
|
|
12747
|
+
function Eu({ layout: e = "rows", children: t, className: n, ...r }) {
|
|
12691
12748
|
return /* @__PURE__ */ h("div", {
|
|
12692
12749
|
...r,
|
|
12693
12750
|
className: `select-insightlist${e === "cards" ? " select-insightlist--cards" : ""}${n ? " " + n : ""}`,
|
|
12694
12751
|
children: t
|
|
12695
12752
|
});
|
|
12696
12753
|
}
|
|
12697
|
-
function
|
|
12698
|
-
let { lang: _, labels: v } =
|
|
12754
|
+
function Du({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread: a = !1, selected: o = !1, layout: s = "row", cta: c, badge: l, href: u, onClick: d, className: f, ...p }) {
|
|
12755
|
+
let { lang: _, labels: v } = cu(t, n), y = e.domain ? v.domain[e.domain] ?? e.domain : null, b = e.impact ? uu(e.impact.maxCents, e.impact.currency, _) : null, x = e.impact && e.impact.minCents === e.impact.maxCents ? v.about("").trim() : v.upTo, S = s === "card", C = "select-insightrow" + (S ? " select-insightrow--card" : "") + (o ? " is-selected" : "") + (i ? " select-insightrow--locked" : "") + (f ? " " + f : ""), w = i ? /* @__PURE__ */ h("span", {
|
|
12699
12756
|
className: "select-insightrow__index select-insightrow__index--lock",
|
|
12700
12757
|
"aria-hidden": "true",
|
|
12701
12758
|
children: /* @__PURE__ */ h(nt, {})
|
|
12702
12759
|
}) : r == null ? null : /* @__PURE__ */ h("span", {
|
|
12703
12760
|
className: `select-insightrow__index${o || S && r === 1 ? " select-insightrow__index--strong" : ""}`,
|
|
12704
12761
|
children: r
|
|
12705
|
-
}), T = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(
|
|
12762
|
+
}), T = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(hu, {
|
|
12706
12763
|
severity: e.severity,
|
|
12707
12764
|
labels: v
|
|
12708
|
-
}), y && !i ? /* @__PURE__ */ h("span", { children: y }) : null] }), E = a && !i ? /* @__PURE__ */ h(
|
|
12765
|
+
}), y && !i ? /* @__PURE__ */ h("span", { children: y }) : null] }), E = a && !i ? /* @__PURE__ */ h(gu, { label: v.unread }) : null, D = S ? /* @__PURE__ */ g(m, { children: [
|
|
12709
12766
|
/* @__PURE__ */ g("span", {
|
|
12710
12767
|
className: "select-insightrow__top",
|
|
12711
12768
|
children: [
|
|
@@ -12733,7 +12790,7 @@ function Eu({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread
|
|
|
12733
12790
|
]
|
|
12734
12791
|
}) : null, c ? /* @__PURE__ */ g("span", {
|
|
12735
12792
|
className: "select-insightrow__cta",
|
|
12736
|
-
children: [c, /* @__PURE__ */ h(
|
|
12793
|
+
children: [c, /* @__PURE__ */ h(U, {})]
|
|
12737
12794
|
}) : null]
|
|
12738
12795
|
}) : null
|
|
12739
12796
|
] }) : /* @__PURE__ */ g(m, { children: [
|
|
@@ -12771,8 +12828,8 @@ function Eu({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread
|
|
|
12771
12828
|
}
|
|
12772
12829
|
//#endregion
|
|
12773
12830
|
//#region src/SelectAssistant.tsx
|
|
12774
|
-
var
|
|
12775
|
-
function
|
|
12831
|
+
var Ou = 240;
|
|
12832
|
+
function ku({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcherLabel: a, badge: c, children: l, scrollKey: u, suggestions: p, onSuggestion: m, onSend: _, placeholder: v, disabled: y = !1, typing: b = !1, headerAction: x, anchor: S = "viewport", closeLabel: C = "Fechar", sendLabel: w = "Enviar", inputLabel: T = "Sua pergunta", className: E }) {
|
|
12776
12833
|
let D = s(), O = d(null), k = d(null), A = d(null), [j, M] = f(""), N = d(0), P = b !== !1;
|
|
12777
12834
|
o(() => {
|
|
12778
12835
|
let t = O.current;
|
|
@@ -12790,7 +12847,7 @@ function Ou({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
12790
12847
|
let o = t.scrollHeight - t.clientHeight, s = a ? Math.min(o, a.getBoundingClientRect().top - t.getBoundingClientRect().top + t.scrollTop - 12) : o;
|
|
12791
12848
|
n ? t.scrollTop = s : s > t.scrollTop + 1 && (typeof t.scrollTo == "function" ? t.scrollTo({
|
|
12792
12849
|
top: s,
|
|
12793
|
-
behavior:
|
|
12850
|
+
behavior: Nu() ? "auto" : "smooth"
|
|
12794
12851
|
}) : t.scrollTop = s);
|
|
12795
12852
|
}, [
|
|
12796
12853
|
e,
|
|
@@ -12854,7 +12911,7 @@ function Ou({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
12854
12911
|
className: "select-assistant__body",
|
|
12855
12912
|
role: "log",
|
|
12856
12913
|
"aria-live": "polite",
|
|
12857
|
-
children: [l, P ? /* @__PURE__ */ h(
|
|
12914
|
+
children: [l, P ? /* @__PURE__ */ h(Mu, { label: typeof b == "string" ? b : void 0 }) : null]
|
|
12858
12915
|
}),
|
|
12859
12916
|
(_ || p && p.length > 0) && /* @__PURE__ */ g("footer", {
|
|
12860
12917
|
className: "select-assistant__foot",
|
|
@@ -12878,7 +12935,7 @@ function Ou({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
12878
12935
|
onChange: (e) => M(e.target.value),
|
|
12879
12936
|
placeholder: v,
|
|
12880
12937
|
"aria-label": T,
|
|
12881
|
-
maxLength:
|
|
12938
|
+
maxLength: Ou,
|
|
12882
12939
|
autoComplete: "off",
|
|
12883
12940
|
enterKeyHint: "send",
|
|
12884
12941
|
disabled: y
|
|
@@ -12910,7 +12967,7 @@ function Ou({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
12910
12967
|
})]
|
|
12911
12968
|
});
|
|
12912
12969
|
}
|
|
12913
|
-
function
|
|
12970
|
+
function Au({ from: e, bare: t = !1, children: n }) {
|
|
12914
12971
|
return /* @__PURE__ */ h("div", {
|
|
12915
12972
|
className: `select-chat__msg select-chat__msg--${e}${t ? " select-chat__msg--bare" : ""}`,
|
|
12916
12973
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -12919,13 +12976,13 @@ function ku({ from: e, bare: t = !1, children: n }) {
|
|
|
12919
12976
|
})
|
|
12920
12977
|
});
|
|
12921
12978
|
}
|
|
12922
|
-
function
|
|
12979
|
+
function ju({ children: e }) {
|
|
12923
12980
|
return /* @__PURE__ */ h("div", {
|
|
12924
12981
|
className: "select-chat__turn",
|
|
12925
12982
|
children: e
|
|
12926
12983
|
});
|
|
12927
12984
|
}
|
|
12928
|
-
function
|
|
12985
|
+
function Mu({ label: e = "Escrevendo…" }) {
|
|
12929
12986
|
return /* @__PURE__ */ h("div", {
|
|
12930
12987
|
className: "select-chat__msg select-chat__msg--assistant select-chat__msg--typing",
|
|
12931
12988
|
role: "status",
|
|
@@ -12941,19 +12998,19 @@ function ju({ label: e = "Escrevendo…" }) {
|
|
|
12941
12998
|
})
|
|
12942
12999
|
});
|
|
12943
13000
|
}
|
|
12944
|
-
function
|
|
13001
|
+
function Nu() {
|
|
12945
13002
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
12946
13003
|
}
|
|
12947
13004
|
//#endregion
|
|
12948
13005
|
//#region src/SelectNumberedList.tsx
|
|
12949
|
-
function
|
|
13006
|
+
function Pu({ children: e, className: t, ...n }) {
|
|
12950
13007
|
return /* @__PURE__ */ h("ol", {
|
|
12951
13008
|
...n,
|
|
12952
13009
|
className: `select-numlist${t ? " " + t : ""}`,
|
|
12953
13010
|
children: e
|
|
12954
13011
|
});
|
|
12955
13012
|
}
|
|
12956
|
-
function
|
|
13013
|
+
function Fu({ title: e, children: t, className: n, ...r }) {
|
|
12957
13014
|
return /* @__PURE__ */ h("li", {
|
|
12958
13015
|
...r,
|
|
12959
13016
|
className: `select-numlist__item${n ? " " + n : ""}`,
|
|
@@ -12971,7 +13028,7 @@ function Pu({ title: e, children: t, className: n, ...r }) {
|
|
|
12971
13028
|
}
|
|
12972
13029
|
//#endregion
|
|
12973
13030
|
//#region src/SelectChartCard.tsx
|
|
12974
|
-
var
|
|
13031
|
+
var Iu = 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) {
|
|
12975
13032
|
let m = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
12976
13033
|
return /* @__PURE__ */ g("div", {
|
|
12977
13034
|
ref: p,
|
|
@@ -13014,7 +13071,7 @@ var Fu = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1,
|
|
|
13014
13071
|
});
|
|
13015
13072
|
//#endregion
|
|
13016
13073
|
//#region src/chartUtils.ts
|
|
13017
|
-
function
|
|
13074
|
+
function Lu() {
|
|
13018
13075
|
let [e, t] = f(1);
|
|
13019
13076
|
return l(() => {
|
|
13020
13077
|
let e = () => {
|
|
@@ -13024,8 +13081,8 @@ function Iu() {
|
|
|
13024
13081
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
13025
13082
|
}, []), e;
|
|
13026
13083
|
}
|
|
13027
|
-
function
|
|
13028
|
-
let t = d(null), [n, r] = f(0), i =
|
|
13084
|
+
function Ru(e) {
|
|
13085
|
+
let t = d(null), [n, r] = f(0), i = Lu();
|
|
13029
13086
|
return l(() => {
|
|
13030
13087
|
let e = t.current;
|
|
13031
13088
|
if (!e) return;
|
|
@@ -13042,7 +13099,7 @@ function Lu(e) {
|
|
|
13042
13099
|
height: Math.round(e * i)
|
|
13043
13100
|
};
|
|
13044
13101
|
}
|
|
13045
|
-
function
|
|
13102
|
+
function zu(e, t) {
|
|
13046
13103
|
let [n, r] = f(t);
|
|
13047
13104
|
return l(() => {
|
|
13048
13105
|
let t = e.current;
|
|
@@ -13056,15 +13113,15 @@ function Ru(e, t) {
|
|
|
13056
13113
|
return i.observe(t), () => i.disconnect();
|
|
13057
13114
|
}, [e]), n;
|
|
13058
13115
|
}
|
|
13059
|
-
function
|
|
13116
|
+
function Bu(e) {
|
|
13060
13117
|
if (e <= 0) return 1;
|
|
13061
13118
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
13062
13119
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
13063
13120
|
}
|
|
13064
|
-
function
|
|
13121
|
+
function Vu(e, t = 4) {
|
|
13065
13122
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
13066
13123
|
}
|
|
13067
|
-
function
|
|
13124
|
+
function Hu(e, t = 5) {
|
|
13068
13125
|
if (!(e > 0)) return {
|
|
13069
13126
|
max: 1,
|
|
13070
13127
|
values: [0, 1]
|
|
@@ -13076,10 +13133,10 @@ function Vu(e, t = 5) {
|
|
|
13076
13133
|
values: s
|
|
13077
13134
|
};
|
|
13078
13135
|
}
|
|
13079
|
-
function
|
|
13136
|
+
function Uu(e) {
|
|
13080
13137
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
13081
13138
|
}
|
|
13082
|
-
function
|
|
13139
|
+
function Wu(e) {
|
|
13083
13140
|
let t = e.length;
|
|
13084
13141
|
if (t === 0) return "";
|
|
13085
13142
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -13103,23 +13160,23 @@ function Uu(e) {
|
|
|
13103
13160
|
}
|
|
13104
13161
|
return s;
|
|
13105
13162
|
}
|
|
13106
|
-
function
|
|
13163
|
+
function Gu(e, t) {
|
|
13107
13164
|
if (e.length === 0) return "";
|
|
13108
13165
|
let n = e[0], r = e[e.length - 1];
|
|
13109
|
-
return `${
|
|
13166
|
+
return `${Wu(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
13110
13167
|
}
|
|
13111
|
-
function
|
|
13112
|
-
return e.length === 0 || t.length === 0 ? "" : `${
|
|
13168
|
+
function Ku(e, t) {
|
|
13169
|
+
return e.length === 0 || t.length === 0 ? "" : `${Wu(e)} ${Wu([...t].reverse()).replace(/^M/, "L")} Z`;
|
|
13113
13170
|
}
|
|
13114
|
-
function
|
|
13171
|
+
function qu(e, t, n, r) {
|
|
13115
13172
|
let i = (r - 90) * Math.PI / 180;
|
|
13116
13173
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
13117
13174
|
}
|
|
13118
|
-
function
|
|
13119
|
-
let [o, s] =
|
|
13175
|
+
function Ju(e, t, n, r, i, a) {
|
|
13176
|
+
let [o, s] = qu(e, t, n, i), [c, l] = qu(e, t, n, a), [u, d] = qu(e, t, r, a), [f, p] = qu(e, t, r, i), m = +(a - i > 180);
|
|
13120
13177
|
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`;
|
|
13121
13178
|
}
|
|
13122
|
-
var
|
|
13179
|
+
var Yu = [
|
|
13123
13180
|
"var(--select-chart-1)",
|
|
13124
13181
|
"var(--select-chart-2)",
|
|
13125
13182
|
"var(--select-chart-3)",
|
|
@@ -13127,13 +13184,13 @@ var Ju = [
|
|
|
13127
13184
|
"var(--select-chart-5)"
|
|
13128
13185
|
];
|
|
13129
13186
|
function X(e) {
|
|
13130
|
-
return
|
|
13187
|
+
return Yu[e % Yu.length];
|
|
13131
13188
|
}
|
|
13132
13189
|
function Z(e) {
|
|
13133
13190
|
let t = Math.abs(e);
|
|
13134
13191
|
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));
|
|
13135
13192
|
}
|
|
13136
|
-
var
|
|
13193
|
+
var Xu = {
|
|
13137
13194
|
top: 16,
|
|
13138
13195
|
right: 22,
|
|
13139
13196
|
bottom: 32,
|
|
@@ -13141,8 +13198,8 @@ var Yu = {
|
|
|
13141
13198
|
};
|
|
13142
13199
|
//#endregion
|
|
13143
13200
|
//#region src/SelectSparkline.tsx
|
|
13144
|
-
function
|
|
13145
|
-
let { ref: a, width: o } =
|
|
13201
|
+
function Zu({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
13202
|
+
let { ref: a, width: o } = Ru(n), c = t ?? X(0), l = s(), u = null;
|
|
13146
13203
|
if (o > 0 && e.length > 1) {
|
|
13147
13204
|
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];
|
|
13148
13205
|
u = /* @__PURE__ */ g("svg", {
|
|
@@ -13168,11 +13225,11 @@ function Xu({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
13168
13225
|
})]
|
|
13169
13226
|
}) }),
|
|
13170
13227
|
/* @__PURE__ */ h("path", {
|
|
13171
|
-
d:
|
|
13228
|
+
d: Gu(a, n - 4),
|
|
13172
13229
|
fill: `url(#${l}-sa)`
|
|
13173
13230
|
}),
|
|
13174
13231
|
/* @__PURE__ */ h("path", {
|
|
13175
|
-
d:
|
|
13232
|
+
d: Wu(a),
|
|
13176
13233
|
fill: "none",
|
|
13177
13234
|
stroke: c,
|
|
13178
13235
|
strokeWidth: 2,
|
|
@@ -13251,7 +13308,7 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
13251
13308
|
}, t))]
|
|
13252
13309
|
});
|
|
13253
13310
|
}
|
|
13254
|
-
function
|
|
13311
|
+
function Qu({ tip: e, onDismiss: t }) {
|
|
13255
13312
|
return o(() => {
|
|
13256
13313
|
if (e) return window.addEventListener("scroll", t, !0), window.addEventListener("resize", t), () => {
|
|
13257
13314
|
window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", t);
|
|
@@ -13264,8 +13321,8 @@ function Zu({ tip: e, onDismiss: t }) {
|
|
|
13264
13321
|
}
|
|
13265
13322
|
//#endregion
|
|
13266
13323
|
//#region src/SelectBarChart.tsx
|
|
13267
|
-
function
|
|
13268
|
-
let { ref: o, width: c } =
|
|
13324
|
+
function $u({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
13325
|
+
let { ref: o, width: c } = Ru(t), l = Q(), u = s(), d = n ?? X(0), f = Bu(Math.max(0, ...e.map((e) => e.value))), p = Xu, m = Math.max(0, c - p.left - p.right), _ = t - p.top - p.bottom, v = e.length > 0 ? m / e.length : 0, y = Math.min(v * .62, 44), b = p.top + _, x = (e) => b - e / f * _;
|
|
13269
13326
|
return /* @__PURE__ */ g("div", {
|
|
13270
13327
|
...a,
|
|
13271
13328
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -13291,7 +13348,7 @@ function Qu({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
13291
13348
|
stopOpacity: .62
|
|
13292
13349
|
})]
|
|
13293
13350
|
}) }),
|
|
13294
|
-
|
|
13351
|
+
Vu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13295
13352
|
x1: p.left,
|
|
13296
13353
|
x2: c - p.right,
|
|
13297
13354
|
y1: x(e),
|
|
@@ -13341,14 +13398,14 @@ function Qu({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
13341
13398
|
}
|
|
13342
13399
|
//#endregion
|
|
13343
13400
|
//#region src/SelectLineChart.tsx
|
|
13344
|
-
var
|
|
13345
|
-
function
|
|
13401
|
+
var ed = (e) => e != null && Number.isFinite(e), td = 64;
|
|
13402
|
+
function nd(e, t) {
|
|
13346
13403
|
let n = [], r = [];
|
|
13347
|
-
for (let i = 0; i < t; i++)
|
|
13404
|
+
for (let i = 0; i < t; i++) ed(e[i]) ? r.push(i) : r.length && (n.push(r), r = []);
|
|
13348
13405
|
return r.length && n.push(r), n;
|
|
13349
13406
|
}
|
|
13350
|
-
function
|
|
13351
|
-
let { ref: l, width: u } =
|
|
13407
|
+
function rd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1, className: o, ...c }) {
|
|
13408
|
+
let { ref: l, width: u } = Ru(r), d = Q(), p = s(), [m, _] = f(null), { max: v, values: y } = Hu(Math.max(0, ...e.flatMap((e) => e.data.filter((e) => Number.isFinite(e))))), b = Xu, x = Math.max(0, u - b.left - b.right), S = r - b.top - b.bottom, C = n.length, w = (e) => b.left + (C <= 1 ? x / 2 : e / (C - 1) * x), T = (e) => b.top + S - e / v * S, E = C > 1 ? x / (C - 1) : x, D = Math.max(1, Math.ceil(C / 7), Math.ceil(td / Math.max(E, 1))), O = (e) => e === C - 1 || e % D === 0 && (C - 1 - e) * E >= td, k = b.top + S;
|
|
13352
13409
|
return /* @__PURE__ */ g("div", {
|
|
13353
13410
|
...c,
|
|
13354
13411
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -13403,7 +13460,7 @@ function nd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
13403
13460
|
si: t
|
|
13404
13461
|
})).sort((e, t) => Number(!!t.s.dashed) - Number(!!e.s.dashed)).map(({ s: e, si: n }) => {
|
|
13405
13462
|
let r = e.color ?? X(n);
|
|
13406
|
-
return /* @__PURE__ */ h("g", { children:
|
|
13463
|
+
return /* @__PURE__ */ h("g", { children: nd(e.data, C).map((i, o) => {
|
|
13407
13464
|
let s = i.map((t) => [w(t), T(e.data[t])]);
|
|
13408
13465
|
return s.length === 1 ? /* @__PURE__ */ h("circle", {
|
|
13409
13466
|
cx: s[0][0],
|
|
@@ -13412,11 +13469,11 @@ function nd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
13412
13469
|
fill: r,
|
|
13413
13470
|
className: "select-chart__dot select-chart__dot--lone"
|
|
13414
13471
|
}, o) : /* @__PURE__ */ g(t, { children: [a && !e.dashed && /* @__PURE__ */ h("path", {
|
|
13415
|
-
d:
|
|
13472
|
+
d: Gu(s, k),
|
|
13416
13473
|
fill: `url(#${p}-a${n})`,
|
|
13417
13474
|
className: "select-chart__area"
|
|
13418
13475
|
}), /* @__PURE__ */ h("path", {
|
|
13419
|
-
d:
|
|
13476
|
+
d: Wu(s),
|
|
13420
13477
|
fill: "none",
|
|
13421
13478
|
stroke: r,
|
|
13422
13479
|
strokeWidth: e.dashed ? 1.75 : 2.25,
|
|
@@ -13429,7 +13486,7 @@ function nd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
13429
13486
|
})] }, o);
|
|
13430
13487
|
}) }, n);
|
|
13431
13488
|
}),
|
|
13432
|
-
m != null && e.map((e, t) =>
|
|
13489
|
+
m != null && e.map((e, t) => ed(e.data[m]) ? /* @__PURE__ */ h("circle", {
|
|
13433
13490
|
cx: w(m),
|
|
13434
13491
|
cy: T(e.data[m] ?? 0),
|
|
13435
13492
|
r: 3.5,
|
|
@@ -13456,7 +13513,7 @@ function nd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
13456
13513
|
let r = e.map((e, t) => ({
|
|
13457
13514
|
s: e,
|
|
13458
13515
|
si: t
|
|
13459
|
-
})).filter(({ s: e }) =>
|
|
13516
|
+
})).filter(({ s: e }) => ed(e.data[n]));
|
|
13460
13517
|
if (!r.length) {
|
|
13461
13518
|
d.hide();
|
|
13462
13519
|
return;
|
|
@@ -13487,8 +13544,8 @@ function nd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
13487
13544
|
}
|
|
13488
13545
|
//#endregion
|
|
13489
13546
|
//#region src/SelectStackedArea.tsx
|
|
13490
|
-
function
|
|
13491
|
-
let { ref: o, width: c } =
|
|
13547
|
+
function id({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
13548
|
+
let { ref: o, width: c } = Ru(n), l = Q(), u = s(), [d, p] = f(null), m = t.length, _ = Array(m).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y = Bu(Math.max(0, ..._)), b = Xu, x = Math.max(0, c - b.left - b.right), S = n - b.top - b.bottom, C = (e) => b.left + (m <= 1 ? x / 2 : e / (m - 1) * x), w = (e) => b.top + S - e / y * S, T = m > 1 ? x / (m - 1) : x, E = Math.max(1, Math.ceil(m / 7)), D = b.top + S, O = v[v.length - 1];
|
|
13492
13549
|
return /* @__PURE__ */ g("div", {
|
|
13493
13550
|
...a,
|
|
13494
13551
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -13517,7 +13574,7 @@ function rd({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
13517
13574
|
})]
|
|
13518
13575
|
}, t);
|
|
13519
13576
|
}) }),
|
|
13520
|
-
|
|
13577
|
+
Vu(y).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13521
13578
|
x1: b.left,
|
|
13522
13579
|
x2: c - b.right,
|
|
13523
13580
|
y1: w(e),
|
|
@@ -13536,10 +13593,10 @@ function rd({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
13536
13593
|
return /* @__PURE__ */ g("g", {
|
|
13537
13594
|
className: "select-chart__area",
|
|
13538
13595
|
children: [/* @__PURE__ */ h("path", {
|
|
13539
|
-
d:
|
|
13596
|
+
d: Ku(i, a),
|
|
13540
13597
|
fill: `url(#${u}-b${n})`
|
|
13541
13598
|
}), /* @__PURE__ */ h("path", {
|
|
13542
|
-
d:
|
|
13599
|
+
d: Wu(i),
|
|
13543
13600
|
fill: "none",
|
|
13544
13601
|
stroke: r,
|
|
13545
13602
|
strokeWidth: 1.5,
|
|
@@ -13593,11 +13650,11 @@ function rd({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
13593
13650
|
}
|
|
13594
13651
|
//#endregion
|
|
13595
13652
|
//#region src/SelectComboChart.tsx
|
|
13596
|
-
function
|
|
13597
|
-
let { ref: l, width: u } =
|
|
13598
|
-
...
|
|
13653
|
+
function ad({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
|
|
13654
|
+
let { ref: l, width: u } = Ru(r), d = Q(), p = s(), [m, _] = f(null), v = {
|
|
13655
|
+
...Xu,
|
|
13599
13656
|
right: 58
|
|
13600
|
-
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S =
|
|
13657
|
+
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = Bu(Math.max(0, ...t.data)), C = Bu(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)]);
|
|
13601
13658
|
return /* @__PURE__ */ g("div", {
|
|
13602
13659
|
...c,
|
|
13603
13660
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -13623,7 +13680,7 @@ function id({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
13623
13680
|
stopOpacity: .55
|
|
13624
13681
|
})]
|
|
13625
13682
|
}) }),
|
|
13626
|
-
|
|
13683
|
+
Vu(S).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13627
13684
|
x1: v.left,
|
|
13628
13685
|
x2: u - v.right,
|
|
13629
13686
|
y1: A(e),
|
|
@@ -13637,7 +13694,7 @@ function id({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
13637
13694
|
textAnchor: "end",
|
|
13638
13695
|
children: i(e)
|
|
13639
13696
|
})] }, t)),
|
|
13640
|
-
|
|
13697
|
+
Vu(C).map((e, t) => /* @__PURE__ */ h("text", {
|
|
13641
13698
|
x: u - 4,
|
|
13642
13699
|
y: j(e),
|
|
13643
13700
|
className: "select-chart__ylabel",
|
|
@@ -13666,7 +13723,7 @@ function id({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
13666
13723
|
className: "select-chart__crosshair"
|
|
13667
13724
|
}),
|
|
13668
13725
|
/* @__PURE__ */ h("path", {
|
|
13669
|
-
d:
|
|
13726
|
+
d: Wu(N),
|
|
13670
13727
|
fill: "none",
|
|
13671
13728
|
stroke: O,
|
|
13672
13729
|
strokeWidth: 2.5,
|
|
@@ -13724,8 +13781,8 @@ function id({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
13724
13781
|
}
|
|
13725
13782
|
//#endregion
|
|
13726
13783
|
//#region src/SelectDonut.tsx
|
|
13727
|
-
var
|
|
13728
|
-
let p = Q(), m = s(), _ = d(null), v =
|
|
13784
|
+
var od = 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, ...u }, f) {
|
|
13785
|
+
let p = Q(), m = s(), _ = d(null), v = zu(_, 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;
|
|
13729
13786
|
return /* @__PURE__ */ g("div", {
|
|
13730
13787
|
ref: f,
|
|
13731
13788
|
...u,
|
|
@@ -13768,7 +13825,7 @@ var ad = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
13768
13825
|
w += e.value;
|
|
13769
13826
|
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);
|
|
13770
13827
|
return /* @__PURE__ */ h("path", {
|
|
13771
|
-
d:
|
|
13828
|
+
d: Ju(b, x, S, C, c, l),
|
|
13772
13829
|
fill: `url(#${m}-s${t})`,
|
|
13773
13830
|
className: "select-chart__seg",
|
|
13774
13831
|
onMouseEnter: () => {
|
|
@@ -13816,9 +13873,9 @@ var ad = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
13816
13873
|
/* @__PURE__ */ h($, { tip: p.tip })
|
|
13817
13874
|
]
|
|
13818
13875
|
});
|
|
13819
|
-
}),
|
|
13820
|
-
function
|
|
13821
|
-
let { ref: u, width: d } =
|
|
13876
|
+
}), sd = 6.4, cd = 12;
|
|
13877
|
+
function ld({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, marker: a, tooltip: o, className: c, ...l }) {
|
|
13878
|
+
let { ref: u, width: d } = Ru(n), f = Q(), p = s(), m = t.length, _ = e.length || 1, v = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), { max: y, values: b } = Hu(i ? Math.max(0, ...v) : Math.max(0, ...e.flatMap((e) => e.data)), 4), x = Xu, S = Math.max(0, d - x.left - x.right), C = n - x.top - x.bottom, w = x.top + C, T = m ? S / m : 0, E = (e) => w - e / y * C, D = Math.min(T * .72, _ * 40), O = i ? Math.min(T * .5, 44) : D / _, k = Math.min(30, 600 / Math.max(1, m)), A = (e, t) => e.pattern === "hatch" ? `url(#${p}-p${t})` : `url(#${p}-c${t})`, j = a && m > 0 ? Math.min(m - 1, Math.max(0, a.index)) : null, M = t.reduce((e, t) => Math.max(e, t.length), 0), N = T > 0 ? Math.max(1, Math.ceil((M * sd + cd) / T)) : 1, P = j ?? 0, F = (e) => N === 1 || ((e - P) % N + N) % N === 0, I = (t, n) => {
|
|
13822
13879
|
if (o) {
|
|
13823
13880
|
let e = o(t);
|
|
13824
13881
|
return e ? {
|
|
@@ -13985,7 +14042,7 @@ function cd({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
13985
14042
|
}
|
|
13986
14043
|
//#endregion
|
|
13987
14044
|
//#region src/SelectChartLegend.tsx
|
|
13988
|
-
function
|
|
14045
|
+
function ud({ items: e, className: t, ...n }) {
|
|
13989
14046
|
return /* @__PURE__ */ h("div", {
|
|
13990
14047
|
...n,
|
|
13991
14048
|
className: `select-chartlegend${t ? " " + t : ""}`,
|
|
@@ -14014,7 +14071,7 @@ function ld({ items: e, className: t, ...n }) {
|
|
|
14014
14071
|
}
|
|
14015
14072
|
//#endregion
|
|
14016
14073
|
//#region src/SelectShareBar.tsx
|
|
14017
|
-
function
|
|
14074
|
+
function dd({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm", onSelect: a, selected: o, hint: s, className: c, ...l }) {
|
|
14018
14075
|
let u = e.map((e, t) => ({
|
|
14019
14076
|
...e,
|
|
14020
14077
|
key: e.key ?? e.label,
|
|
@@ -14119,7 +14176,7 @@ function ud({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm",
|
|
|
14119
14176
|
}
|
|
14120
14177
|
//#endregion
|
|
14121
14178
|
//#region src/SelectRing.tsx
|
|
14122
|
-
var
|
|
14179
|
+
var fd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone: i = "brand", label: a, caption: o, inverse: s = !1, ariaLabel: c, className: l, style: u, ...d }, f) {
|
|
14123
14180
|
let p = t > 0 ? t : 100, m = Math.max(0, Math.min(1, (Number.isFinite(e) ? e : 0) / p)), _ = (r ?? Math.max(4, Math.round(n * .11))) / n * 100, v = 50 - _ / 2, y = 2 * Math.PI * v, b = {
|
|
14124
14181
|
"--select-ring-size": `${n / 16}rem`,
|
|
14125
14182
|
...u
|
|
@@ -14163,7 +14220,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14163
14220
|
})]
|
|
14164
14221
|
})]
|
|
14165
14222
|
});
|
|
14166
|
-
}),
|
|
14223
|
+
}), pd = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
|
|
14167
14224
|
let l = (t) => {
|
|
14168
14225
|
let n = e[t];
|
|
14169
14226
|
return n != null && n.state !== "upcoming";
|
|
@@ -14221,7 +14278,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14221
14278
|
})
|
|
14222
14279
|
})
|
|
14223
14280
|
});
|
|
14224
|
-
}),
|
|
14281
|
+
}), md = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
|
|
14225
14282
|
let s = Math.max(0, Math.floor(e)), c = Math.max(0, Math.min(s, Math.floor(t))), l = n === void 0 ? `${c} de ${s}` : n;
|
|
14226
14283
|
return /* @__PURE__ */ g("span", {
|
|
14227
14284
|
ref: o,
|
|
@@ -14237,7 +14294,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14237
14294
|
children: l
|
|
14238
14295
|
})]
|
|
14239
14296
|
});
|
|
14240
|
-
}),
|
|
14297
|
+
}), hd = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
|
|
14241
14298
|
return /* @__PURE__ */ h("span", {
|
|
14242
14299
|
ref: a,
|
|
14243
14300
|
"aria-hidden": "true",
|
|
@@ -14245,7 +14302,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14245
14302
|
className: `select-icontile select-icontile--${t} select-icontile--${n}${r ? " " + r : ""}`,
|
|
14246
14303
|
children: e
|
|
14247
14304
|
});
|
|
14248
|
-
}),
|
|
14305
|
+
}), gd = r(function({ tone: e = "neutral", media: t, eyebrow: n, title: r, description: i, actions: a, actionsPlacement: o = "below", aside: s, facts: c, asideSize: l = "half", size: u = "md", mediaInline: d = !1, children: f, className: p, ...m }, _) {
|
|
14249
14306
|
let v = a != null && o === "end";
|
|
14250
14307
|
return /* @__PURE__ */ h("section", {
|
|
14251
14308
|
ref: _,
|
|
@@ -14317,7 +14374,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14317
14374
|
]
|
|
14318
14375
|
})
|
|
14319
14376
|
});
|
|
14320
|
-
}),
|
|
14377
|
+
}), _d = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
|
|
14321
14378
|
return /* @__PURE__ */ g("article", {
|
|
14322
14379
|
ref: l,
|
|
14323
14380
|
...c,
|
|
@@ -14352,7 +14409,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14352
14409
|
})]
|
|
14353
14410
|
})]
|
|
14354
14411
|
});
|
|
14355
|
-
}),
|
|
14412
|
+
}), vd = r(function({ items: e, order: t = "label-first", columns: n, narrowColumns: r, loading: i = !1, className: a, ...o }, s) {
|
|
14356
14413
|
return /* @__PURE__ */ h("dl", {
|
|
14357
14414
|
ref: s,
|
|
14358
14415
|
"aria-busy": i || void 0,
|
|
@@ -14379,7 +14436,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14379
14436
|
]
|
|
14380
14437
|
}, e.key ?? t))
|
|
14381
14438
|
});
|
|
14382
|
-
}),
|
|
14439
|
+
}), yd = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
|
|
14383
14440
|
let o = (t ?? "").replace(/\D/g, "").slice(-4);
|
|
14384
14441
|
return /* @__PURE__ */ g("div", {
|
|
14385
14442
|
ref: a,
|
|
@@ -14422,7 +14479,7 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14422
14479
|
})
|
|
14423
14480
|
]
|
|
14424
14481
|
});
|
|
14425
|
-
}),
|
|
14482
|
+
}), bd = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
|
|
14426
14483
|
let s = Math.max(1, ...e.map((e) => e.value));
|
|
14427
14484
|
return /* @__PURE__ */ h("div", {
|
|
14428
14485
|
ref: o,
|
|
@@ -14464,19 +14521,19 @@ var dd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14464
14521
|
});
|
|
14465
14522
|
//#endregion
|
|
14466
14523
|
//#region src/SelectGauge.tsx
|
|
14467
|
-
function
|
|
14524
|
+
function xd(e) {
|
|
14468
14525
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
14469
14526
|
}
|
|
14470
|
-
function
|
|
14527
|
+
function Sd(e, t, n, r) {
|
|
14471
14528
|
let i = Math.PI + r * Math.PI;
|
|
14472
14529
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
14473
14530
|
}
|
|
14474
|
-
function
|
|
14475
|
-
let [a, o] =
|
|
14531
|
+
function Cd(e, t, n, r, i) {
|
|
14532
|
+
let [a, o] = Sd(e, t, n, r), [s, c] = Sd(e, t, n, i);
|
|
14476
14533
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
14477
14534
|
}
|
|
14478
|
-
var
|
|
14479
|
-
let u =
|
|
14535
|
+
var wd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, Td = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = wd, className: s, ...c }, l) {
|
|
14536
|
+
let u = xd(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, m = r / 2, _ = r / 2, v = _ + f, y = or({
|
|
14480
14537
|
value: u,
|
|
14481
14538
|
format: o
|
|
14482
14539
|
});
|
|
@@ -14499,13 +14556,13 @@ var Cd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
14499
14556
|
"aria-hidden": "true",
|
|
14500
14557
|
children: [/* @__PURE__ */ h("path", {
|
|
14501
14558
|
className: "select-gauge__track",
|
|
14502
|
-
d:
|
|
14559
|
+
d: Cd(m, _, p, 0, 1),
|
|
14503
14560
|
fill: "none",
|
|
14504
14561
|
strokeWidth: d,
|
|
14505
14562
|
strokeLinecap: "round"
|
|
14506
14563
|
}), u > 0 && /* @__PURE__ */ h("path", {
|
|
14507
14564
|
className: "select-gauge__arc",
|
|
14508
|
-
d:
|
|
14565
|
+
d: Cd(m, _, p, 0, u / 100),
|
|
14509
14566
|
fill: "none",
|
|
14510
14567
|
stroke: a ?? "var(--select-chart-1)",
|
|
14511
14568
|
strokeWidth: d,
|
|
@@ -14528,7 +14585,7 @@ var Cd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
14528
14585
|
children: n
|
|
14529
14586
|
})]
|
|
14530
14587
|
});
|
|
14531
|
-
}),
|
|
14588
|
+
}), Ed = 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 }, m) {
|
|
14532
14589
|
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 = {
|
|
14533
14590
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
14534
14591
|
width: "fit-content",
|
|
@@ -14588,12 +14645,12 @@ var Cd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
14588
14645
|
}, c);
|
|
14589
14646
|
})] }, n.label))
|
|
14590
14647
|
]
|
|
14591
|
-
}), /* @__PURE__ */ h(
|
|
14648
|
+
}), /* @__PURE__ */ h(Qu, {
|
|
14592
14649
|
tip: _.tip,
|
|
14593
14650
|
onDismiss: _.hide
|
|
14594
14651
|
})]
|
|
14595
14652
|
});
|
|
14596
|
-
}),
|
|
14653
|
+
}), Dd = r(function({ tiles: e, color: t = "var(--select-chart-1)", tileSize: n = 36, gap: r = 5, format: i = (e) => String(e), legend: a = !0, className: o, style: s, ...c }, l) {
|
|
14597
14654
|
let u = Q(), d = Math.max(0, ...e.map((e) => e.value ?? 0)), f = Math.max(0, ...e.map((e) => e.col)) + 1, p = Math.max(0, ...e.map((e) => e.row)) + 1, m = n + r, _ = {
|
|
14598
14655
|
width: f * m - r,
|
|
14599
14656
|
height: p * m - r
|
|
@@ -14655,13 +14712,13 @@ var Cd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
14655
14712
|
/* @__PURE__ */ h("span", { children: "mais" })
|
|
14656
14713
|
]
|
|
14657
14714
|
}),
|
|
14658
|
-
/* @__PURE__ */ h(
|
|
14715
|
+
/* @__PURE__ */ h(Qu, {
|
|
14659
14716
|
tip: u.tip,
|
|
14660
14717
|
onDismiss: u.hide
|
|
14661
14718
|
})
|
|
14662
14719
|
]
|
|
14663
14720
|
});
|
|
14664
|
-
}),
|
|
14721
|
+
}), Od = [
|
|
14665
14722
|
{
|
|
14666
14723
|
key: "RR",
|
|
14667
14724
|
label: "RR",
|
|
@@ -14854,7 +14911,7 @@ var Cd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
14854
14911
|
];
|
|
14855
14912
|
//#endregion
|
|
14856
14913
|
//#region src/SelectProgressList.tsx
|
|
14857
|
-
function
|
|
14914
|
+
function kd({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1, max: a }) {
|
|
14858
14915
|
if (e.length === 0) return /* @__PURE__ */ h("div", {
|
|
14859
14916
|
className: "select-progresslist__empty",
|
|
14860
14917
|
children: r
|
|
@@ -14905,7 +14962,7 @@ function Od({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
14905
14962
|
}
|
|
14906
14963
|
//#endregion
|
|
14907
14964
|
//#region src/SelectRadialBar.tsx
|
|
14908
|
-
var
|
|
14965
|
+
var Ad = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, jd = 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) {
|
|
14909
14966
|
let d = s(), f = t / 2, p = t / 2;
|
|
14910
14967
|
return /* @__PURE__ */ g("div", {
|
|
14911
14968
|
ref: u,
|
|
@@ -14945,7 +15002,7 @@ var kd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Ad = r(f
|
|
|
14945
15002
|
}) }), e.map((e, i) => {
|
|
14946
15003
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
14947
15004
|
if (a <= n / 2) return null;
|
|
14948
|
-
let o =
|
|
15005
|
+
let o = Ad(e.value);
|
|
14949
15006
|
return /* @__PURE__ */ g("g", {
|
|
14950
15007
|
transform: `rotate(-90 ${f} ${p})`,
|
|
14951
15008
|
children: [/* @__PURE__ */ h("circle", {
|
|
@@ -14974,7 +15031,7 @@ var kd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Ad = r(f
|
|
|
14974
15031
|
className: "select-radial__center",
|
|
14975
15032
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ h("strong", {
|
|
14976
15033
|
className: "select-radial__value",
|
|
14977
|
-
children: i(
|
|
15034
|
+
children: i(Ad(e[0].value))
|
|
14978
15035
|
}) : null)
|
|
14979
15036
|
})]
|
|
14980
15037
|
}), o && /* @__PURE__ */ h("ul", {
|
|
@@ -14992,15 +15049,15 @@ var kd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Ad = r(f
|
|
|
14992
15049
|
}),
|
|
14993
15050
|
/* @__PURE__ */ h("span", {
|
|
14994
15051
|
className: "select-donut__legval",
|
|
14995
|
-
children: i(
|
|
15052
|
+
children: i(Ad(e.value))
|
|
14996
15053
|
})
|
|
14997
15054
|
]
|
|
14998
15055
|
}, t))
|
|
14999
15056
|
})]
|
|
15000
15057
|
});
|
|
15001
|
-
}),
|
|
15002
|
-
function
|
|
15003
|
-
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } =
|
|
15058
|
+
}), Md = 6.1, Nd = 12, Pd = 56, Fd = .4;
|
|
15059
|
+
function Id({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
|
|
15060
|
+
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Ru(d), m = Q(), _ = s(), v = c && c > 0 ? c : Bu(Math.max(0, ...e.map((e) => e.value))), y = e.reduce((e, t) => Math.max(e, t.label.length), 0), b = Math.min(Math.max(Pd, y * Md + Nd), Math.max(Pd, p * Fd)), x = o ?? b, S = Math.max(3, Math.floor((x - Nd) / Md)), C = (e) => e.length <= S ? e : `${e.slice(0, S - 1).trimEnd()}…`, w = Math.max(0, p - x - 28), T = d - 6 - 26, E = e.length ? T / e.length : 0, D = Math.min(E * .62, 22), O = (e) => x + e / v * w, k = (e, t) => e.color ?? (a ? X(t) : n ?? X(0));
|
|
15004
15061
|
return /* @__PURE__ */ g("div", {
|
|
15005
15062
|
...u,
|
|
15006
15063
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -15029,7 +15086,7 @@ function Fd({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
15029
15086
|
})]
|
|
15030
15087
|
}, t);
|
|
15031
15088
|
}) }),
|
|
15032
|
-
|
|
15089
|
+
Vu(v).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
15033
15090
|
x1: O(e),
|
|
15034
15091
|
x2: O(e),
|
|
15035
15092
|
y1: 6,
|
|
@@ -15075,7 +15132,7 @@ function Fd({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
15075
15132
|
onMouseLeave: m.hide
|
|
15076
15133
|
}),
|
|
15077
15134
|
/* @__PURE__ */ g("text", {
|
|
15078
|
-
x: x -
|
|
15135
|
+
x: x - Nd / 2,
|
|
15079
15136
|
y: n,
|
|
15080
15137
|
className: "select-chart__ylabel",
|
|
15081
15138
|
dominantBaseline: "middle",
|
|
@@ -15090,8 +15147,8 @@ function Fd({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
15090
15147
|
}
|
|
15091
15148
|
//#endregion
|
|
15092
15149
|
//#region src/SelectWaterfall.tsx
|
|
15093
|
-
function
|
|
15094
|
-
let { ref: a, width: o } =
|
|
15150
|
+
function Ld({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
15151
|
+
let { ref: a, width: o } = Ru(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
15095
15152
|
if (e.total) return u = e.value, {
|
|
15096
15153
|
...e,
|
|
15097
15154
|
start: 0,
|
|
@@ -15103,7 +15160,7 @@ function Id({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15103
15160
|
start: t,
|
|
15104
15161
|
end: u
|
|
15105
15162
|
};
|
|
15106
|
-
}), f =
|
|
15163
|
+
}), f = Bu(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = Xu, m = Math.max(0, o - p.left - p.right), _ = t - p.top - p.bottom, v = p.top + _, y = e.length, b = y ? m / y : 0, x = Math.min(b * .6, 46), S = (e) => v - e / f * _, C = {
|
|
15107
15164
|
total: "var(--select-chart-1)",
|
|
15108
15165
|
inc: "var(--select-chart-4)",
|
|
15109
15166
|
dec: "var(--select-chart-3)"
|
|
@@ -15137,7 +15194,7 @@ function Id({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15137
15194
|
stopOpacity: .62
|
|
15138
15195
|
})]
|
|
15139
15196
|
}, e)) }),
|
|
15140
|
-
|
|
15197
|
+
Vu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
15141
15198
|
x1: p.left,
|
|
15142
15199
|
x2: o - p.right,
|
|
15143
15200
|
y1: S(e),
|
|
@@ -15205,7 +15262,7 @@ function Id({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15205
15262
|
}
|
|
15206
15263
|
//#endregion
|
|
15207
15264
|
//#region src/SelectBullet.tsx
|
|
15208
|
-
var
|
|
15265
|
+
var Rd = (e) => Math.max(0, Math.min(100, e)), zd = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
15209
15266
|
return /* @__PURE__ */ h("div", {
|
|
15210
15267
|
ref: i,
|
|
15211
15268
|
...r,
|
|
@@ -15243,12 +15300,12 @@ var Ld = (e) => Math.max(0, Math.min(100, e)), Rd = r(function({ items: e, forma
|
|
|
15243
15300
|
children: [/* @__PURE__ */ h("span", {
|
|
15244
15301
|
className: "select-bullet__fill",
|
|
15245
15302
|
style: {
|
|
15246
|
-
width: `${
|
|
15303
|
+
width: `${Rd(e.value / i * 100)}%`,
|
|
15247
15304
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
15248
15305
|
}
|
|
15249
15306
|
}), /* @__PURE__ */ h("span", {
|
|
15250
15307
|
className: "select-bullet__tick",
|
|
15251
|
-
style: { left: `${
|
|
15308
|
+
style: { left: `${Rd(e.target / i * 100)}%` }
|
|
15252
15309
|
})]
|
|
15253
15310
|
})]
|
|
15254
15311
|
}, `${e.label}-${n}`);
|
|
@@ -15257,7 +15314,7 @@ var Ld = (e) => Math.max(0, Math.min(100, e)), Rd = r(function({ items: e, forma
|
|
|
15257
15314
|
});
|
|
15258
15315
|
//#endregion
|
|
15259
15316
|
//#region src/SelectTreemap.tsx
|
|
15260
|
-
function
|
|
15317
|
+
function Bd(e, t, n) {
|
|
15261
15318
|
let r = [], i = (e, t) => {
|
|
15262
15319
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
15263
15320
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -15308,8 +15365,8 @@ function zd(e, t, n) {
|
|
|
15308
15365
|
};
|
|
15309
15366
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
15310
15367
|
}
|
|
15311
|
-
function
|
|
15312
|
-
let { ref: a, width: o } =
|
|
15368
|
+
function Vd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
15369
|
+
let { ref: a, width: o } = Ru(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? Bd(u.map((t) => e[t].value), o, t) : [];
|
|
15313
15370
|
return /* @__PURE__ */ g("div", {
|
|
15314
15371
|
...i,
|
|
15315
15372
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -15379,8 +15436,8 @@ function Bd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15379
15436
|
}
|
|
15380
15437
|
//#endregion
|
|
15381
15438
|
//#region src/SelectScatter.tsx
|
|
15382
|
-
function
|
|
15383
|
-
let { ref: l, width: u } =
|
|
15439
|
+
function Hd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
15440
|
+
let { ref: l, width: u } = Ru(t), d = Q(), f = e.flatMap((e) => e.points), p = Bu(i ?? Math.max(0, ...f.map((e) => e.x))), m = Bu(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = Xu, 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 / m * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(_) * (o - 4) : 4.5;
|
|
15384
15441
|
return /* @__PURE__ */ g("div", {
|
|
15385
15442
|
...c,
|
|
15386
15443
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -15390,7 +15447,7 @@ function Vd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
15390
15447
|
height: t,
|
|
15391
15448
|
className: "select-chart",
|
|
15392
15449
|
children: [
|
|
15393
|
-
|
|
15450
|
+
Vu(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
15394
15451
|
x1: v.left,
|
|
15395
15452
|
x2: u - v.right,
|
|
15396
15453
|
y1: C(e),
|
|
@@ -15404,7 +15461,7 @@ function Vd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
15404
15461
|
textAnchor: "end",
|
|
15405
15462
|
children: r(e)
|
|
15406
15463
|
})] }, `y${t}`)),
|
|
15407
|
-
|
|
15464
|
+
Vu(p).map((e, r, i) => /* @__PURE__ */ h("text", {
|
|
15408
15465
|
x: S(e),
|
|
15409
15466
|
y: t - v.bottom + 16,
|
|
15410
15467
|
className: "select-chart__xlabel",
|
|
@@ -15451,8 +15508,8 @@ function Vd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
15451
15508
|
}
|
|
15452
15509
|
//#endregion
|
|
15453
15510
|
//#region src/SelectRadar.tsx
|
|
15454
|
-
var
|
|
15455
|
-
let d = Q(), f = s(), p = e.length, m = n / 2, _ = n / 2, v = n / 2 - 30, y = r ??
|
|
15511
|
+
var Ud = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
|
|
15512
|
+
let d = Q(), f = s(), p = e.length, m = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? Bu(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [m + 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";
|
|
15456
15513
|
return /* @__PURE__ */ g("div", {
|
|
15457
15514
|
ref: u,
|
|
15458
15515
|
...l,
|
|
@@ -15561,8 +15618,8 @@ var Hd = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
15561
15618
|
});
|
|
15562
15619
|
//#endregion
|
|
15563
15620
|
//#region src/SelectSankey.tsx
|
|
15564
|
-
function
|
|
15565
|
-
let { ref: s, width: c } =
|
|
15621
|
+
function Wd({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
15622
|
+
let { ref: s, width: c } = Ru(t), l = Q(), u = [], d = [];
|
|
15566
15623
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
15567
15624
|
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), m = t - 12, _ = Math.max(u.length, d.length), v = (m - i * Math.max(0, _ - 1)) / f, y = (e, t, n) => {
|
|
15568
15625
|
let r = /* @__PURE__ */ new Map(), a = 6;
|
|
@@ -15646,8 +15703,8 @@ function Ud({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
15646
15703
|
}
|
|
15647
15704
|
//#endregion
|
|
15648
15705
|
//#region src/SelectCandlestick.tsx
|
|
15649
|
-
function
|
|
15650
|
-
let { ref: s, width: c } =
|
|
15706
|
+
function Gd({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
15707
|
+
let { ref: s, width: c } = Ru(t), l = Q(), u = Xu, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, m = Math.max(1, ...e.map((e) => e.high)), _ = Math.min(m, ...e.map((e) => e.low)), v = (m - _) * .08 || 1, y = _ - v, b = m + 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);
|
|
15651
15708
|
return /* @__PURE__ */ g("div", {
|
|
15652
15709
|
...o,
|
|
15653
15710
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -15736,8 +15793,8 @@ function Wd({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
15736
15793
|
}
|
|
15737
15794
|
//#endregion
|
|
15738
15795
|
//#region src/SelectBoxPlot.tsx
|
|
15739
|
-
function
|
|
15740
|
-
let { ref: a, width: o } =
|
|
15796
|
+
function Kd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
15797
|
+
let { ref: a, width: o } = Ru(t), s = Q(), c = Xu, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Bu(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, m = e.length, _ = m ? l / m : 0, v = Math.min(_ * .5, 40);
|
|
15741
15798
|
return /* @__PURE__ */ g("div", {
|
|
15742
15799
|
...i,
|
|
15743
15800
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -15746,7 +15803,7 @@ function Gd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15746
15803
|
width: o,
|
|
15747
15804
|
height: t,
|
|
15748
15805
|
className: "select-chart",
|
|
15749
|
-
children: [
|
|
15806
|
+
children: [Vu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
15750
15807
|
x1: c.left,
|
|
15751
15808
|
x2: o - c.right,
|
|
15752
15809
|
y1: p(e),
|
|
@@ -15856,8 +15913,8 @@ function Gd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15856
15913
|
}
|
|
15857
15914
|
//#endregion
|
|
15858
15915
|
//#region src/SelectRangeBar.tsx
|
|
15859
|
-
function
|
|
15860
|
-
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } =
|
|
15916
|
+
function qd({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
15917
|
+
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } = Ru(l), f = Q(), p = s(), m = n ?? Math.min(0, ...e.map((e) => e.start)), _ = (r ?? Math.max(1, ...e.map((e) => e.end))) - m || 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 - m) / _ * y, w = Array.from({ length: 5 }, (e, t) => m + _ * t / 4);
|
|
15861
15918
|
return /* @__PURE__ */ g("div", {
|
|
15862
15919
|
...c,
|
|
15863
15920
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -15937,7 +15994,7 @@ function Kd({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
15937
15994
|
}
|
|
15938
15995
|
//#endregion
|
|
15939
15996
|
//#region src/SelectCalendarHeatmap.tsx
|
|
15940
|
-
var
|
|
15997
|
+
var Jd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
15941
15998
|
"Seg",
|
|
15942
15999
|
"",
|
|
15943
16000
|
"Qua",
|
|
@@ -16010,8 +16067,8 @@ var qd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
16010
16067
|
]
|
|
16011
16068
|
}), /* @__PURE__ */ h($, { tip: p.tip })]
|
|
16012
16069
|
});
|
|
16013
|
-
}),
|
|
16014
|
-
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p =
|
|
16070
|
+
}), Yd = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
16071
|
+
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = Bu(Math.max(1, ...e.map((e) => e.value))), m = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, _ = 360 / f;
|
|
16015
16072
|
return /* @__PURE__ */ g("div", {
|
|
16016
16073
|
ref: s,
|
|
16017
16074
|
...o,
|
|
@@ -16041,7 +16098,7 @@ var qd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
16041
16098
|
}, t)), e.map((e, t) => {
|
|
16042
16099
|
let r = t * _, i = (t + 1) * _ - 1.5, a = e.color ?? X(t), o = Math.max(2, m(e.value)), s = ((r + i) / 2 - 90) * (Math.PI / 180), d = l + o * Math.cos(s), f = u + o * Math.sin(s);
|
|
16043
16100
|
return /* @__PURE__ */ h("path", {
|
|
16044
|
-
d:
|
|
16101
|
+
d: Ju(l, u, o, 0, r, i),
|
|
16045
16102
|
fill: a,
|
|
16046
16103
|
fillOpacity: .8,
|
|
16047
16104
|
className: "select-chart__seg",
|
|
@@ -16084,13 +16141,13 @@ var qd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
16084
16141
|
});
|
|
16085
16142
|
//#endregion
|
|
16086
16143
|
//#region src/SelectSlope.tsx
|
|
16087
|
-
function
|
|
16088
|
-
let { ref: s, width: c } =
|
|
16144
|
+
function Xd({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
16145
|
+
let { ref: s, width: c } = Ru(r), l = Q(), u = {
|
|
16089
16146
|
top: 24,
|
|
16090
16147
|
right: 64,
|
|
16091
16148
|
bottom: 12,
|
|
16092
16149
|
left: 132
|
|
16093
|
-
}, d =
|
|
16150
|
+
}, d = Bu(Math.max(1, ...e.flatMap((e) => [e.left, e.right]))), f = r - u.top - u.bottom, p = (e) => u.top + f - e / d * f, m = u.left, _ = c - u.right;
|
|
16094
16151
|
return /* @__PURE__ */ g("div", {
|
|
16095
16152
|
...o,
|
|
16096
16153
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -16206,8 +16263,8 @@ function Yd({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
16206
16263
|
}
|
|
16207
16264
|
//#endregion
|
|
16208
16265
|
//#region src/SelectDumbbell.tsx
|
|
16209
|
-
function
|
|
16210
|
-
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } =
|
|
16266
|
+
function Zd({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
16267
|
+
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Ru(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", m = Bu(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 / m * v;
|
|
16211
16268
|
return /* @__PURE__ */ g("div", {
|
|
16212
16269
|
...s,
|
|
16213
16270
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -16216,7 +16273,7 @@ function Xd({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
16216
16273
|
width: u,
|
|
16217
16274
|
height: c,
|
|
16218
16275
|
className: "select-chart",
|
|
16219
|
-
children: [
|
|
16276
|
+
children: [Vu(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
16220
16277
|
x1: x(e),
|
|
16221
16278
|
x2: x(e),
|
|
16222
16279
|
y1: 6,
|
|
@@ -16299,8 +16356,8 @@ function Xd({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
16299
16356
|
}
|
|
16300
16357
|
//#endregion
|
|
16301
16358
|
//#region src/SelectMarimekko.tsx
|
|
16302
|
-
function
|
|
16303
|
-
let { ref: o, width: s } =
|
|
16359
|
+
function Qd({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
16360
|
+
let { ref: o, width: s } = Ru(t), c = Q(), l = {
|
|
16304
16361
|
top: 6,
|
|
16305
16362
|
right: 6,
|
|
16306
16363
|
bottom: 24,
|
|
@@ -16379,7 +16436,7 @@ function Zd({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
16379
16436
|
}
|
|
16380
16437
|
//#endregion
|
|
16381
16438
|
//#region src/SelectGaugeBands.tsx
|
|
16382
|
-
var
|
|
16439
|
+
var $d = 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) {
|
|
16383
16440
|
let u = i ?? Math.max(10, Math.round(r * .08)), d = u / 2 + 2, f = r / 2 - d, p = r / 2, m = r / 2, _ = m + d, v = (e) => Math.max(0, Math.min(t, e)), y = (e) => {
|
|
16384
16441
|
let t = Math.PI + e * Math.PI;
|
|
16385
16442
|
return [p + f * Math.cos(t), m + f * Math.sin(t)];
|
|
@@ -16451,8 +16508,8 @@ var Qd = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
16451
16508
|
});
|
|
16452
16509
|
//#endregion
|
|
16453
16510
|
//#region src/SelectStreamGraph.tsx
|
|
16454
|
-
function
|
|
16455
|
-
let { ref: o, width: c } =
|
|
16511
|
+
function ef({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
16512
|
+
let { ref: o, width: c } = Ru(n), l = Q(), u = s(), [d, p] = f(null), m = t.length, _ = {
|
|
16456
16513
|
top: 14,
|
|
16457
16514
|
right: 14,
|
|
16458
16515
|
bottom: 28,
|
|
@@ -16495,7 +16552,7 @@ function $d({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
16495
16552
|
})]
|
|
16496
16553
|
}, t)) }),
|
|
16497
16554
|
w.map((e, t) => /* @__PURE__ */ h("path", {
|
|
16498
|
-
d:
|
|
16555
|
+
d: Ku(e.upper, e.lower),
|
|
16499
16556
|
fill: `url(#${u}-st${t})`,
|
|
16500
16557
|
className: "select-chart__area"
|
|
16501
16558
|
}, t)),
|
|
@@ -16542,7 +16599,7 @@ function $d({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
16542
16599
|
}
|
|
16543
16600
|
//#endregion
|
|
16544
16601
|
//#region src/SelectSunburst.tsx
|
|
16545
|
-
var
|
|
16602
|
+
var tf = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
16546
16603
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
16547
16604
|
var t;
|
|
16548
16605
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -16568,7 +16625,7 @@ var ef = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
16568
16625
|
_ += r;
|
|
16569
16626
|
let a = _ / m * 360, o = e.color ?? X(t), v = i;
|
|
16570
16627
|
return /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("path", {
|
|
16571
|
-
d:
|
|
16628
|
+
d: Ju(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
16572
16629
|
fill: o,
|
|
16573
16630
|
className: "select-chart__seg",
|
|
16574
16631
|
onMouseEnter: () => s.show({
|
|
@@ -16588,7 +16645,7 @@ var ef = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
16588
16645
|
v += t.value / m * 360;
|
|
16589
16646
|
let f = v, p = t.color ?? o, g = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
16590
16647
|
return /* @__PURE__ */ h("path", {
|
|
16591
|
-
d:
|
|
16648
|
+
d: Ju(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
16592
16649
|
fill: p,
|
|
16593
16650
|
fillOpacity: g,
|
|
16594
16651
|
className: "select-chart__seg",
|
|
@@ -16635,8 +16692,8 @@ var ef = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
16635
16692
|
});
|
|
16636
16693
|
//#endregion
|
|
16637
16694
|
//#region src/SelectViolin.tsx
|
|
16638
|
-
function
|
|
16639
|
-
let { ref: a, width: o } =
|
|
16695
|
+
function nf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
16696
|
+
let { ref: a, width: o } = Ru(t), s = Q(), c = Xu, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Bu(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, m = e.length, _ = m ? l / m : 0, v = Math.min(_ * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
|
|
16640
16697
|
return /* @__PURE__ */ g("div", {
|
|
16641
16698
|
...i,
|
|
16642
16699
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -16645,7 +16702,7 @@ function tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
16645
16702
|
width: o,
|
|
16646
16703
|
height: t,
|
|
16647
16704
|
className: "select-chart",
|
|
16648
|
-
children: [
|
|
16705
|
+
children: [Vu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
16649
16706
|
x1: c.left,
|
|
16650
16707
|
x2: o - c.right,
|
|
16651
16708
|
y1: p(e),
|
|
@@ -16662,7 +16719,7 @@ function tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
16662
16719
|
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 = [], m = [];
|
|
16663
16720
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
16664
16721
|
for (let e = 0; e < o; e++) m.push([i - d(e), l(e)]);
|
|
16665
|
-
let b = `${
|
|
16722
|
+
let b = `${Uu(f)} ${Uu(m).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
16666
16723
|
return /* @__PURE__ */ g("g", { children: [
|
|
16667
16724
|
/* @__PURE__ */ h("path", {
|
|
16668
16725
|
d: b,
|
|
@@ -16723,7 +16780,7 @@ function tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
16723
16780
|
}
|
|
16724
16781
|
//#endregion
|
|
16725
16782
|
//#region src/SelectChord.tsx
|
|
16726
|
-
var
|
|
16783
|
+
var rf = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
16727
16784
|
let c = Q(), l = t.length, u = n / 2, d = n / 2, f = n / 2 - 22, p = f - 9, m = e.map((e) => e.reduce((e, t) => e + t, 0)), _ = m.reduce((e, t) => e + t, 0) || 1, v = (2 * Math.PI - l * i) / _, y = [], b = 0;
|
|
16728
16785
|
for (let e = 0; e < l; e++) {
|
|
16729
16786
|
let t = b, n = b + m[e] * v;
|
|
@@ -16790,7 +16847,7 @@ var nf = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
16790
16847
|
}, n)), y.map((e, n) => {
|
|
16791
16848
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
16792
16849
|
return /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("path", {
|
|
16793
|
-
d:
|
|
16850
|
+
d: Ju(u, d, f, p, w(e.a0), w(e.a1)),
|
|
16794
16851
|
fill: X(n),
|
|
16795
16852
|
className: "select-chord__arc"
|
|
16796
16853
|
}), /* @__PURE__ */ h("text", {
|
|
@@ -16808,8 +16865,8 @@ var nf = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
16808
16865
|
});
|
|
16809
16866
|
//#endregion
|
|
16810
16867
|
//#region src/SelectHexbin.tsx
|
|
16811
|
-
function
|
|
16812
|
-
let { ref: l, width: u } =
|
|
16868
|
+
function af({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
16869
|
+
let { ref: l, width: u } = Ru(t), d = Q(), f = Math.max(0, u - 24), p = t - 24, m = i ?? Math.max(1, ...e.map((e) => e.x)), _ = a ?? Math.max(1, ...e.map((e) => e.y)), v = (e) => 12 + e / m * f, y = (e) => 12 + p - e / _ * p, b = n, x = Math.sqrt(3), S = (e, t) => {
|
|
16813
16870
|
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);
|
|
16814
16871
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
16815
16872
|
}, C = (e, t) => [b * x * (e + t / 2), 3 / 2 * b * t], w = (e, t) => {
|
|
@@ -16860,7 +16917,7 @@ function rf({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
16860
16917
|
}
|
|
16861
16918
|
//#endregion
|
|
16862
16919
|
//#region src/SelectWordCloud.tsx
|
|
16863
|
-
var
|
|
16920
|
+
var of = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
16864
16921
|
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);
|
|
16865
16922
|
return /* @__PURE__ */ h("div", {
|
|
16866
16923
|
ref: a,
|
|
@@ -16877,7 +16934,7 @@ var af = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
16877
16934
|
children: e.text
|
|
16878
16935
|
}, `${e.text}-${t}`))
|
|
16879
16936
|
});
|
|
16880
|
-
}),
|
|
16937
|
+
}), sf = [
|
|
16881
16938
|
[
|
|
16882
16939
|
-59.6,
|
|
16883
16940
|
-80,
|
|
@@ -27272,24 +27329,24 @@ var af = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
27272
27329
|
-27.1,
|
|
27273
27330
|
83.5
|
|
27274
27331
|
]
|
|
27275
|
-
],
|
|
27276
|
-
function
|
|
27277
|
-
let n = e *
|
|
27332
|
+
], cf = Math.PI / 180;
|
|
27333
|
+
function lf(e, t) {
|
|
27334
|
+
let n = e * cf, r = t * cf;
|
|
27278
27335
|
return [
|
|
27279
27336
|
Math.cos(n) * Math.sin(r),
|
|
27280
27337
|
Math.sin(n),
|
|
27281
27338
|
Math.cos(n) * Math.cos(r)
|
|
27282
27339
|
];
|
|
27283
27340
|
}
|
|
27284
|
-
function
|
|
27285
|
-
let a = r *
|
|
27341
|
+
function uf([e, t, n], r, i) {
|
|
27342
|
+
let a = r * cf, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * cf;
|
|
27286
27343
|
return [
|
|
27287
27344
|
o,
|
|
27288
27345
|
t * Math.cos(c) - s * Math.sin(c),
|
|
27289
27346
|
t * Math.sin(c) + s * Math.cos(c)
|
|
27290
27347
|
];
|
|
27291
27348
|
}
|
|
27292
|
-
function
|
|
27349
|
+
function df(e, t, n) {
|
|
27293
27350
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
27294
27351
|
r = Math.max(-1, Math.min(1, r));
|
|
27295
27352
|
let i = Math.acos(r);
|
|
@@ -27301,18 +27358,18 @@ function uf(e, t, n) {
|
|
|
27301
27358
|
e[2] * o + t[2] * s
|
|
27302
27359
|
];
|
|
27303
27360
|
}
|
|
27304
|
-
var
|
|
27361
|
+
var ff = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, pf = 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: l = Z, legend: p = !0, map: m = !0, fluid: _ = !1, onZoomChange: v, className: y, ...b }, x) {
|
|
27305
27362
|
var S, C;
|
|
27306
|
-
let w = s(), T = Q(), E = d(null), D =
|
|
27363
|
+
let w = s(), T = Q(), E = d(null), D = zu(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = d(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = d({
|
|
27307
27364
|
lng: -O,
|
|
27308
27365
|
lat: r
|
|
27309
27366
|
}), j = d({
|
|
27310
27367
|
lng: 0,
|
|
27311
27368
|
lat: 0
|
|
27312
|
-
}), M = d(1), N = d(null), P = d(null), F = d(!1), I = d(0), L = d(0), R = d(0), [, z] = f(0), [B, ee] = f(!1), [te, V] = f(null),
|
|
27313
|
-
L.current || (R.current = performance.now(), L.current = requestAnimationFrame(
|
|
27369
|
+
}), M = d(1), N = d(null), P = d(null), F = d(!1), I = d(0), L = d(0), R = d(0), [, z] = f(0), [B, ee] = f(!1), [te, V] = f(null), ne = () => {
|
|
27370
|
+
L.current || (R.current = performance.now(), L.current = requestAnimationFrame(re));
|
|
27314
27371
|
};
|
|
27315
|
-
function
|
|
27372
|
+
function re(e) {
|
|
27316
27373
|
let t = Math.min(.05, (e - R.current) / 1e3);
|
|
27317
27374
|
R.current = e, I.current += t;
|
|
27318
27375
|
let n = j.current, r = Math.abs(n.lng) + Math.abs(n.lat) > .02;
|
|
@@ -27322,24 +27379,24 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27322
27379
|
A.current.lng += (N.current.lng - A.current.lng) * e, A.current.lat += (N.current.lat - A.current.lat) * e, Math.abs(N.current.lng - A.current.lng) < .2 && Math.abs(N.current.lat - A.current.lat) < .2 && (N.current = null);
|
|
27323
27380
|
} else r ? (A.current.lng += n.lng * t * 60, A.current.lat = Math.max(-85, Math.min(85, A.current.lat + n.lat * t * 60)), n.lng *= .94, n.lat *= .94) : (n.lng = 0, n.lat = 0, i && !k.current && !F.current && (A.current.lng += a * t));
|
|
27324
27381
|
}
|
|
27325
|
-
z((e) => (e + 1) % 1e6), !k.current || P.current || N.current || Math.abs(n.lng) + Math.abs(n.lat) > .02 ? L.current = requestAnimationFrame(
|
|
27382
|
+
z((e) => (e + 1) % 1e6), !k.current || P.current || N.current || Math.abs(n.lng) + Math.abs(n.lat) > .02 ? L.current = requestAnimationFrame(re) : L.current = 0;
|
|
27326
27383
|
}
|
|
27327
|
-
o(() => (k.current ||
|
|
27384
|
+
o(() => (k.current || ne(), () => {
|
|
27328
27385
|
L.current && cancelAnimationFrame(L.current), L.current = 0;
|
|
27329
27386
|
}), []);
|
|
27330
|
-
let
|
|
27331
|
-
|
|
27387
|
+
let H = d(v);
|
|
27388
|
+
H.current = v, o(() => {
|
|
27332
27389
|
let e = E.current;
|
|
27333
27390
|
if (!e) return;
|
|
27334
27391
|
let t = (e) => {
|
|
27335
27392
|
var t;
|
|
27336
27393
|
e.preventDefault();
|
|
27337
27394
|
let n = Math.max(-240, Math.min(240, e.deltaMode ? e.deltaY * 40 : e.deltaY)), r = M.current * Math.exp(-n * .0012);
|
|
27338
|
-
M.current = Math.max(.8, Math.min(1.8, r)), (t =
|
|
27395
|
+
M.current = Math.max(.8, Math.min(1.8, r)), (t = H.current) == null || t.call(H, M.current), ne(), z((e) => (e + 1) % 1e6);
|
|
27339
27396
|
};
|
|
27340
27397
|
return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
|
|
27341
27398
|
}, []);
|
|
27342
|
-
let
|
|
27399
|
+
let ie = (e) => {
|
|
27343
27400
|
var t, n;
|
|
27344
27401
|
(t = (n = e.target).setPointerCapture) == null || t.call(n, e.pointerId), P.current = {
|
|
27345
27402
|
x: e.clientX,
|
|
@@ -27347,8 +27404,8 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27347
27404
|
}, j.current = {
|
|
27348
27405
|
lng: 0,
|
|
27349
27406
|
lat: 0
|
|
27350
|
-
}, N.current = null, ee(!0),
|
|
27351
|
-
},
|
|
27407
|
+
}, N.current = null, ee(!0), ne();
|
|
27408
|
+
}, ae = (e) => {
|
|
27352
27409
|
if (!P.current) return;
|
|
27353
27410
|
let t = .34 / M.current, n = e.clientX - P.current.x, r = e.clientY - P.current.y;
|
|
27354
27411
|
P.current = {
|
|
@@ -27358,39 +27415,39 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27358
27415
|
lng: n * t,
|
|
27359
27416
|
lat: r * t
|
|
27360
27417
|
};
|
|
27361
|
-
},
|
|
27418
|
+
}, U = (e) => {
|
|
27362
27419
|
var t, n;
|
|
27363
|
-
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ee(!1),
|
|
27364
|
-
},
|
|
27365
|
-
let t =
|
|
27420
|
+
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ee(!1), ne());
|
|
27421
|
+
}, W = (D / 2 - 6) * M.current, G = D / 2, K = D / 2, q = (e) => {
|
|
27422
|
+
let t = uf(e, A.current.lng, A.current.lat);
|
|
27366
27423
|
return {
|
|
27367
|
-
x:
|
|
27368
|
-
y:
|
|
27424
|
+
x: G + W * t[0],
|
|
27425
|
+
y: K - W * t[1],
|
|
27369
27426
|
z: t[2]
|
|
27370
27427
|
};
|
|
27371
27428
|
}, oe = u(() => {
|
|
27372
27429
|
let e = [];
|
|
27373
27430
|
for (let t = -180; t < 180; t += 30) {
|
|
27374
27431
|
let n = [];
|
|
27375
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
27432
|
+
for (let e = 0; e <= 48; e++) n.push(lf(-90 + 180 * e / 48, t));
|
|
27376
27433
|
e.push(n);
|
|
27377
27434
|
}
|
|
27378
27435
|
for (let t = -60; t <= 60; t += 30) {
|
|
27379
27436
|
let n = [];
|
|
27380
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
27437
|
+
for (let e = 0; e <= 48; e++) n.push(lf(t, -180 + 360 * e / 48));
|
|
27381
27438
|
e.push(n);
|
|
27382
27439
|
}
|
|
27383
27440
|
return e;
|
|
27384
|
-
}, []), se = u(() =>
|
|
27441
|
+
}, []), se = u(() => sf.map((e) => {
|
|
27385
27442
|
let t = [];
|
|
27386
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
27443
|
+
for (let n = 0; n < e.length; n += 2) t.push(lf(e[n + 1], e[n]));
|
|
27387
27444
|
return t;
|
|
27388
27445
|
}), []), J = (e) => ({
|
|
27389
|
-
x:
|
|
27390
|
-
y:
|
|
27446
|
+
x: G + W * e[0],
|
|
27447
|
+
y: K - W * e[1]
|
|
27391
27448
|
}), ce = "", le = "";
|
|
27392
27449
|
if (m) for (let e of se) {
|
|
27393
|
-
let t = e.map((e) =>
|
|
27450
|
+
let t = e.map((e) => uf(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
27394
27451
|
for (let e of t) if (e[2] > 0) {
|
|
27395
27452
|
let t = J(e);
|
|
27396
27453
|
le += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -27417,11 +27474,11 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27417
27474
|
let e = (e, t) => {
|
|
27418
27475
|
let n = J(t.v);
|
|
27419
27476
|
if (e.edge && t.edge) {
|
|
27420
|
-
let t = Math.atan2(J(e.v).y -
|
|
27477
|
+
let t = Math.atan2(J(e.v).y - K, J(e.v).x - G), r = Math.atan2(n.y - K, n.x - G) - t;
|
|
27421
27478
|
for (; r > Math.PI;) r -= 2 * Math.PI;
|
|
27422
27479
|
for (; r < -Math.PI;) r += 2 * Math.PI;
|
|
27423
27480
|
let i = +(r > 0);
|
|
27424
|
-
return `A${
|
|
27481
|
+
return `A${W.toFixed(1)},${W.toFixed(1)} 0 0 ${i} ${n.x.toFixed(1)},${n.y.toFixed(1)}`;
|
|
27425
27482
|
}
|
|
27426
27483
|
return `L${n.x.toFixed(1)},${n.y.toFixed(1)}`;
|
|
27427
27484
|
}, t = J(i[0].v);
|
|
@@ -27433,12 +27490,12 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27433
27490
|
let ue = (e) => {
|
|
27434
27491
|
let t = "", n = !1;
|
|
27435
27492
|
for (let r of e) {
|
|
27436
|
-
let e =
|
|
27493
|
+
let e = q(r);
|
|
27437
27494
|
e.z > 0 ? (t += `${n ? "L" : "M"}${e.x.toFixed(1)},${e.y.toFixed(1)}`, n = !0) : n = !1;
|
|
27438
27495
|
}
|
|
27439
27496
|
return t;
|
|
27440
27497
|
}, de = Math.max(1, ...e.map((e) => e.value ?? 0)), fe = e.map((e, t) => {
|
|
27441
|
-
let n =
|
|
27498
|
+
let n = q(lf(e.lat, e.lng));
|
|
27442
27499
|
return {
|
|
27443
27500
|
...e,
|
|
27444
27501
|
i: t,
|
|
@@ -27448,20 +27505,20 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27448
27505
|
col: e.color ?? c
|
|
27449
27506
|
};
|
|
27450
27507
|
}), pe = te == null ? null : e[te], me = t.map((e, t) => {
|
|
27451
|
-
let n =
|
|
27508
|
+
let n = lf(e.from.lat, e.from.lng), r = lf(e.to.lat, e.to.lng), i = "", a = !1;
|
|
27452
27509
|
for (let e = 0; e <= 40; e++) {
|
|
27453
|
-
let t = e / 40, o =
|
|
27510
|
+
let t = e / 40, o = df(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = uf(o, A.current.lng, A.current.lat), l = q([
|
|
27454
27511
|
o[0] * s,
|
|
27455
27512
|
o[1] * s,
|
|
27456
27513
|
o[2] * s
|
|
27457
27514
|
]);
|
|
27458
27515
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
27459
27516
|
}
|
|
27460
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
27517
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = df(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = uf(s, A.current.lng, A.current.lat), d = q([
|
|
27461
27518
|
s[0] * l,
|
|
27462
27519
|
s[1] * l,
|
|
27463
27520
|
s[2] * l
|
|
27464
|
-
]), f = pe != null && (
|
|
27521
|
+
]), f = pe != null && (ff(e.from, pe) || ff(e.to, pe));
|
|
27465
27522
|
return {
|
|
27466
27523
|
d: i,
|
|
27467
27524
|
col: e.color ?? c,
|
|
@@ -27488,11 +27545,11 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27488
27545
|
F.current = !0;
|
|
27489
27546
|
},
|
|
27490
27547
|
onPointerLeave: (e) => {
|
|
27491
|
-
F.current = !1,
|
|
27548
|
+
F.current = !1, U(e), V(null), T.hide(), ne();
|
|
27492
27549
|
},
|
|
27493
|
-
onPointerDown:
|
|
27494
|
-
onPointerMove:
|
|
27495
|
-
onPointerUp:
|
|
27550
|
+
onPointerDown: ie,
|
|
27551
|
+
onPointerMove: ae,
|
|
27552
|
+
onPointerUp: U,
|
|
27496
27553
|
children: [/* @__PURE__ */ g("svg", {
|
|
27497
27554
|
width: D,
|
|
27498
27555
|
height: D,
|
|
@@ -27587,36 +27644,36 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27587
27644
|
/* @__PURE__ */ h("clipPath", {
|
|
27588
27645
|
id: `${w}-clip`,
|
|
27589
27646
|
children: /* @__PURE__ */ h("circle", {
|
|
27590
|
-
cx:
|
|
27591
|
-
cy:
|
|
27592
|
-
r:
|
|
27647
|
+
cx: G,
|
|
27648
|
+
cy: K,
|
|
27649
|
+
r: W
|
|
27593
27650
|
})
|
|
27594
27651
|
})
|
|
27595
27652
|
] }),
|
|
27596
27653
|
/* @__PURE__ */ h("circle", {
|
|
27597
|
-
cx:
|
|
27598
|
-
cy:
|
|
27599
|
-
r:
|
|
27654
|
+
cx: G,
|
|
27655
|
+
cy: K,
|
|
27656
|
+
r: W + 24,
|
|
27600
27657
|
fill: `url(#${w}-atmo)`
|
|
27601
27658
|
}),
|
|
27602
27659
|
/* @__PURE__ */ h("circle", {
|
|
27603
|
-
cx:
|
|
27604
|
-
cy:
|
|
27605
|
-
r:
|
|
27660
|
+
cx: G,
|
|
27661
|
+
cy: K,
|
|
27662
|
+
r: W,
|
|
27606
27663
|
fill: `url(#${w}-sphere)`,
|
|
27607
27664
|
stroke: `color-mix(in srgb, ${c} 40%, transparent)`,
|
|
27608
27665
|
strokeWidth: 1
|
|
27609
27666
|
}),
|
|
27610
27667
|
/* @__PURE__ */ h("circle", {
|
|
27611
|
-
cx:
|
|
27612
|
-
cy:
|
|
27613
|
-
r:
|
|
27668
|
+
cx: G,
|
|
27669
|
+
cy: K,
|
|
27670
|
+
r: W,
|
|
27614
27671
|
fill: `url(#${w}-glow)`
|
|
27615
27672
|
}),
|
|
27616
27673
|
/* @__PURE__ */ h("circle", {
|
|
27617
|
-
cx:
|
|
27618
|
-
cy:
|
|
27619
|
-
r:
|
|
27674
|
+
cx: G,
|
|
27675
|
+
cy: K,
|
|
27676
|
+
r: W,
|
|
27620
27677
|
fill: `url(#${w}-spec)`
|
|
27621
27678
|
}),
|
|
27622
27679
|
/* @__PURE__ */ g("g", {
|
|
@@ -27687,7 +27744,7 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27687
27744
|
V(e.i), T.show({
|
|
27688
27745
|
x: e.p.x,
|
|
27689
27746
|
y: e.p.y - e.r - 4,
|
|
27690
|
-
place: e.p.y <
|
|
27747
|
+
place: e.p.y < K ? "bottom" : "top",
|
|
27691
27748
|
title: e.label,
|
|
27692
27749
|
rows: e.value == null ? [] : [{
|
|
27693
27750
|
label: "Volume",
|
|
@@ -27703,7 +27760,7 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27703
27760
|
N.current = {
|
|
27704
27761
|
lng: -e.lng,
|
|
27705
27762
|
lat: r
|
|
27706
|
-
},
|
|
27763
|
+
}, ne();
|
|
27707
27764
|
}
|
|
27708
27765
|
})
|
|
27709
27766
|
]
|
|
@@ -27735,8 +27792,8 @@ var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27735
27792
|
});
|
|
27736
27793
|
//#endregion
|
|
27737
27794
|
//#region src/SelectTicker.tsx
|
|
27738
|
-
function
|
|
27739
|
-
let i = d(null), a = d(null), s = d(null), c =
|
|
27795
|
+
function mf({ children: e, speed: t = 28, className: n, ...r }) {
|
|
27796
|
+
let i = d(null), a = d(null), s = d(null), c = zu(i, 0), l = zu(s, 0), u = c > 0 && l > c + 1, f = d(0), p = d(null), m = d(!1);
|
|
27740
27797
|
o(() => {
|
|
27741
27798
|
var e, n;
|
|
27742
27799
|
let r = a.current;
|
|
@@ -27797,12 +27854,12 @@ function pf({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
27797
27854
|
}
|
|
27798
27855
|
//#endregion
|
|
27799
27856
|
//#region src/SelectPareto.tsx
|
|
27800
|
-
function
|
|
27857
|
+
function hf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
27801
27858
|
var a;
|
|
27802
|
-
let { ref: o, width: c } =
|
|
27803
|
-
...
|
|
27859
|
+
let { ref: o, width: c } = Ru(t), l = Q(), u = s(), [d, p] = f(null), m = {
|
|
27860
|
+
...Xu,
|
|
27804
27861
|
right: 44
|
|
27805
|
-
}, _ = [...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 - m.left - m.right), C = t - m.top - m.bottom, w =
|
|
27862
|
+
}, _ = [...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 - m.left - m.right), C = t - m.top - m.bottom, w = Bu(((a = _[0]) == null ? void 0 : a.value) ?? 1), T = v > 0 ? S / v : 0, E = Math.min(T * .62, 46), D = m.top + C, O = (e) => D - e / w * C, k = (e) => D - e / 100 * C, A = (e) => m.left + T * e + T / 2, j = x.map((e, t) => [A(t), k(e)]), M = X(0), N = X(1);
|
|
27806
27863
|
return /* @__PURE__ */ g("div", {
|
|
27807
27864
|
...i,
|
|
27808
27865
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -27831,7 +27888,7 @@ function mf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
27831
27888
|
stopOpacity: .55
|
|
27832
27889
|
})]
|
|
27833
27890
|
}) }),
|
|
27834
|
-
|
|
27891
|
+
Vu(w).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
27835
27892
|
x1: m.left,
|
|
27836
27893
|
x2: c - m.right,
|
|
27837
27894
|
y1: O(e),
|
|
@@ -27895,7 +27952,7 @@ function mf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
27895
27952
|
}, t);
|
|
27896
27953
|
}),
|
|
27897
27954
|
/* @__PURE__ */ h("path", {
|
|
27898
|
-
d:
|
|
27955
|
+
d: Wu(j),
|
|
27899
27956
|
fill: "none",
|
|
27900
27957
|
stroke: N,
|
|
27901
27958
|
strokeWidth: 2,
|
|
@@ -27923,7 +27980,7 @@ function mf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
27923
27980
|
}
|
|
27924
27981
|
//#endregion
|
|
27925
27982
|
//#region src/SelectWaffle.tsx
|
|
27926
|
-
var
|
|
27983
|
+
var gf = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
27927
27984
|
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) => ({
|
|
27928
27985
|
i: t,
|
|
27929
27986
|
frac: e - u[t]
|
|
@@ -27972,8 +28029,8 @@ var hf = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
27972
28029
|
});
|
|
27973
28030
|
//#endregion
|
|
27974
28031
|
//#region src/SelectPyramid.tsx
|
|
27975
|
-
function
|
|
27976
|
-
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: d, width: p } =
|
|
28032
|
+
function _f({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
28033
|
+
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: d, width: p } = Ru(u), m = Q(), [_, v] = f(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);
|
|
27977
28034
|
return /* @__PURE__ */ g("div", {
|
|
27978
28035
|
...l,
|
|
27979
28036
|
className: `select-chart-wrap${c ? " " + c : ""}`,
|
|
@@ -28080,8 +28137,8 @@ function gf({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
28080
28137
|
}
|
|
28081
28138
|
//#endregion
|
|
28082
28139
|
//#region src/SelectBump.tsx
|
|
28083
|
-
function
|
|
28084
|
-
let { ref: o, width: s } =
|
|
28140
|
+
function vf({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
28141
|
+
let { ref: o, width: s } = Ru(n), c = Q(), [l, u] = f(null), d = {
|
|
28085
28142
|
top: 16,
|
|
28086
28143
|
right: 78,
|
|
28087
28144
|
bottom: 28,
|
|
@@ -28117,7 +28174,7 @@ function _f({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
28117
28174
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
28118
28175
|
children: [
|
|
28119
28176
|
/* @__PURE__ */ h("path", {
|
|
28120
|
-
d:
|
|
28177
|
+
d: Wu(a),
|
|
28121
28178
|
fill: "none",
|
|
28122
28179
|
stroke: i,
|
|
28123
28180
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -28165,8 +28222,8 @@ function _f({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
28165
28222
|
}
|
|
28166
28223
|
//#endregion
|
|
28167
28224
|
//#region src/SelectParallel.tsx
|
|
28168
|
-
function
|
|
28169
|
-
let { ref: o, width: s } =
|
|
28225
|
+
function yf({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
28226
|
+
let { ref: o, width: s } = Ru(n), c = Q(), [l, u] = f(null), d = {
|
|
28170
28227
|
top: 30,
|
|
28171
28228
|
right: 28,
|
|
28172
28229
|
bottom: 26,
|
|
@@ -28257,25 +28314,25 @@ function vf({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
28257
28314
|
}
|
|
28258
28315
|
//#endregion
|
|
28259
28316
|
//#region src/SelectIcicle.tsx
|
|
28260
|
-
function
|
|
28261
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
28317
|
+
function bf(e) {
|
|
28318
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + bf(t), 0) : e.value ?? 0;
|
|
28262
28319
|
}
|
|
28263
|
-
function
|
|
28264
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
28320
|
+
function xf(e, t = 0) {
|
|
28321
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => xf(e, t + 1)));
|
|
28265
28322
|
}
|
|
28266
|
-
function
|
|
28267
|
-
let { ref: a, width: o } =
|
|
28323
|
+
function Sf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
28324
|
+
let { ref: a, width: o } = Ru(t), s = Q(), [c, l] = f(null), u = xf(e), d = t / (u + 1), p = [], m = (e, t, n, r, i) => {
|
|
28268
28325
|
if (p.push({
|
|
28269
28326
|
node: e,
|
|
28270
28327
|
x0: t,
|
|
28271
28328
|
x1: n,
|
|
28272
28329
|
depth: r,
|
|
28273
28330
|
color: e.color ?? X(i),
|
|
28274
|
-
value:
|
|
28331
|
+
value: bf(e)
|
|
28275
28332
|
}), e.children && e.children.length) {
|
|
28276
|
-
let a = e.children.reduce((e, t) => e +
|
|
28333
|
+
let a = e.children.reduce((e, t) => e + bf(t), 0) || 1, o = t;
|
|
28277
28334
|
e.children.forEach((e, s) => {
|
|
28278
|
-
let c = (n - t) *
|
|
28335
|
+
let c = (n - t) * bf(e) / a;
|
|
28279
28336
|
m(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
28280
28337
|
});
|
|
28281
28338
|
}
|
|
@@ -28336,8 +28393,8 @@ function xf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
28336
28393
|
}
|
|
28337
28394
|
//#endregion
|
|
28338
28395
|
//#region src/SelectTree.tsx
|
|
28339
|
-
function
|
|
28340
|
-
let { ref: i, width: a } =
|
|
28396
|
+
function Cf({ data: e, height: t = 260, className: n, ...r }) {
|
|
28397
|
+
let { ref: i, width: a } = Ru(t), o = Q(), [s, c] = f(null), l = {
|
|
28341
28398
|
top: 14,
|
|
28342
28399
|
right: 96,
|
|
28343
28400
|
bottom: 14,
|
|
@@ -28414,7 +28471,7 @@ function Sf({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
28414
28471
|
}
|
|
28415
28472
|
//#endregion
|
|
28416
28473
|
//#region src/SelectVenn.tsx
|
|
28417
|
-
var
|
|
28474
|
+
var wf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
28418
28475
|
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]] : [
|
|
28419
28476
|
[o, s - l * .5],
|
|
28420
28477
|
[o - l * .5, s + l * .36],
|
|
@@ -28479,7 +28536,7 @@ var Cf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
28479
28536
|
}, t))
|
|
28480
28537
|
})]
|
|
28481
28538
|
});
|
|
28482
|
-
}),
|
|
28539
|
+
}), Tf = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
28483
28540
|
let o = Q(), [s, c] = f(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
28484
28541
|
d: e,
|
|
28485
28542
|
i: t,
|
|
@@ -28582,8 +28639,8 @@ var Cf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
28582
28639
|
});
|
|
28583
28640
|
//#endregion
|
|
28584
28641
|
//#region src/SelectNetwork.tsx
|
|
28585
|
-
function
|
|
28586
|
-
let { ref: o, width: s } =
|
|
28642
|
+
function Ef({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
28643
|
+
let { ref: o, width: s } = Ru(n), c = Q(), [l, d] = f(null), p = u(() => {
|
|
28587
28644
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
28588
28645
|
if (!a) return o;
|
|
28589
28646
|
let c = e.map((e, t) => ({
|
|
@@ -28696,8 +28753,8 @@ function Tf({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
28696
28753
|
}
|
|
28697
28754
|
//#endregion
|
|
28698
28755
|
//#region src/SelectSearchMenu.tsx
|
|
28699
|
-
var
|
|
28700
|
-
function
|
|
28756
|
+
var Df = "[role=\"option\"]:not([disabled])";
|
|
28757
|
+
function Of({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", autoFocus: s = !1, selectFirstOnEnter: c = !1, listMaxHeight: l, children: u }) {
|
|
28701
28758
|
let f = d(null);
|
|
28702
28759
|
return o(() => {
|
|
28703
28760
|
if (!s) return;
|
|
@@ -28713,7 +28770,7 @@ function Df({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
28713
28770
|
onKeyDown: (e) => {
|
|
28714
28771
|
let t = f.current;
|
|
28715
28772
|
if (!t) return;
|
|
28716
|
-
let n = t.querySelector("input"), r = Array.from(t.querySelectorAll(
|
|
28773
|
+
let n = t.querySelector("input"), r = Array.from(t.querySelectorAll(Df)), i = r.indexOf(document.activeElement);
|
|
28717
28774
|
if (e.key === "ArrowDown") {
|
|
28718
28775
|
var a;
|
|
28719
28776
|
if (r.length === 0) return;
|
|
@@ -28744,7 +28801,7 @@ function Df({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
28744
28801
|
className: "select-combobox__empty",
|
|
28745
28802
|
role: "status",
|
|
28746
28803
|
children: r
|
|
28747
|
-
}) : /* @__PURE__ */ h(
|
|
28804
|
+
}) : /* @__PURE__ */ h(kf, {
|
|
28748
28805
|
maxHeight: l,
|
|
28749
28806
|
children: u
|
|
28750
28807
|
}),
|
|
@@ -28755,7 +28812,7 @@ function Df({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
28755
28812
|
]
|
|
28756
28813
|
});
|
|
28757
28814
|
}
|
|
28758
|
-
function
|
|
28815
|
+
function kf({ children: e, maxHeight: t }) {
|
|
28759
28816
|
let n = ar({
|
|
28760
28817
|
selector: ".select-combobox__option",
|
|
28761
28818
|
y: 6,
|
|
@@ -28770,7 +28827,7 @@ function Of({ children: e, maxHeight: t }) {
|
|
|
28770
28827
|
children: e
|
|
28771
28828
|
});
|
|
28772
28829
|
}
|
|
28773
|
-
function
|
|
28830
|
+
function Af({ label: e, children: t }) {
|
|
28774
28831
|
return (Array.isArray(t) ? t.some((e) => e != null && e !== !1) : t != null && t !== !1) ? /* @__PURE__ */ g("div", {
|
|
28775
28832
|
role: "group",
|
|
28776
28833
|
className: "select-searchmenu__group",
|
|
@@ -28782,7 +28839,7 @@ function kf({ label: e, children: t }) {
|
|
|
28782
28839
|
}), t]
|
|
28783
28840
|
}) : null;
|
|
28784
28841
|
}
|
|
28785
|
-
function
|
|
28842
|
+
function jf({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i = !1, onSelect: a }) {
|
|
28786
28843
|
return /* @__PURE__ */ g("button", {
|
|
28787
28844
|
type: "button",
|
|
28788
28845
|
role: "option",
|
|
@@ -28815,14 +28872,14 @@ function Af({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i
|
|
|
28815
28872
|
}
|
|
28816
28873
|
//#endregion
|
|
28817
28874
|
//#region src/SelectKbd.tsx
|
|
28818
|
-
var
|
|
28875
|
+
var Mf = r(function({ children: e, className: t, ...n }, r) {
|
|
28819
28876
|
return /* @__PURE__ */ h("kbd", {
|
|
28820
28877
|
ref: r,
|
|
28821
28878
|
...n,
|
|
28822
28879
|
className: `select-kbd${t ? " " + t : ""}`,
|
|
28823
28880
|
children: e
|
|
28824
28881
|
});
|
|
28825
|
-
}),
|
|
28882
|
+
}), Nf = [
|
|
28826
28883
|
{
|
|
28827
28884
|
value: "light",
|
|
28828
28885
|
label: "Claro",
|
|
@@ -28839,15 +28896,15 @@ var jf = r(function({ children: e, className: t, ...n }, r) {
|
|
|
28839
28896
|
icon: /* @__PURE__ */ h(ke, {})
|
|
28840
28897
|
}
|
|
28841
28898
|
];
|
|
28842
|
-
function
|
|
28899
|
+
function Pf(e) {
|
|
28843
28900
|
if (e === "system") {
|
|
28844
28901
|
var t, n;
|
|
28845
28902
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
28846
28903
|
}
|
|
28847
28904
|
return e;
|
|
28848
28905
|
}
|
|
28849
|
-
function
|
|
28850
|
-
let [i, a] = f(!1), s = d(null), c =
|
|
28906
|
+
function Ff({ value: e, onChange: t, className: n, ...r }) {
|
|
28907
|
+
let [i, a] = f(!1), s = d(null), c = Nf.find((t) => t.value === e) ?? Nf[2];
|
|
28851
28908
|
return o(() => {
|
|
28852
28909
|
if (!i) return;
|
|
28853
28910
|
let e = (e) => {
|
|
@@ -28867,7 +28924,7 @@ function Pf({ value: e, onChange: t, className: n, ...r }) {
|
|
|
28867
28924
|
})
|
|
28868
28925
|
}), i && /* @__PURE__ */ h("div", {
|
|
28869
28926
|
className: "select-themeswitcher__popover",
|
|
28870
|
-
children: /* @__PURE__ */ h(za, { children:
|
|
28927
|
+
children: /* @__PURE__ */ h(za, { children: Nf.map((n) => /* @__PURE__ */ h(Va, {
|
|
28871
28928
|
icon: n.icon,
|
|
28872
28929
|
active: n.value === e,
|
|
28873
28930
|
trailing: n.value === e ? /* @__PURE__ */ h(Ve, {}) : null,
|
|
@@ -28881,8 +28938,8 @@ function Pf({ value: e, onChange: t, className: n, ...r }) {
|
|
|
28881
28938
|
}
|
|
28882
28939
|
//#endregion
|
|
28883
28940
|
//#region src/SelectDetail.tsx
|
|
28884
|
-
var
|
|
28885
|
-
function
|
|
28941
|
+
var If = n(!1);
|
|
28942
|
+
function Lf({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 }) {
|
|
28886
28943
|
let i = ar({
|
|
28887
28944
|
selector: ".select-detail",
|
|
28888
28945
|
y: 8,
|
|
@@ -28890,7 +28947,7 @@ function If({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
28890
28947
|
stagger: .05,
|
|
28891
28948
|
scroll: !0
|
|
28892
28949
|
});
|
|
28893
|
-
return /* @__PURE__ */ h(
|
|
28950
|
+
return /* @__PURE__ */ h(If.Provider, {
|
|
28894
28951
|
value: r,
|
|
28895
28952
|
children: /* @__PURE__ */ h("div", {
|
|
28896
28953
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}${n ? " select-detaillist--compact" : ""}`,
|
|
@@ -28899,8 +28956,8 @@ function If({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
28899
28956
|
})
|
|
28900
28957
|
});
|
|
28901
28958
|
}
|
|
28902
|
-
var
|
|
28903
|
-
let l = a(
|
|
28959
|
+
var Rf = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
28960
|
+
let l = a(If), u = i ?? l;
|
|
28904
28961
|
return /* @__PURE__ */ g("div", {
|
|
28905
28962
|
ref: c,
|
|
28906
28963
|
...s,
|
|
@@ -28920,7 +28977,7 @@ var Lf = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
28920
28977
|
})
|
|
28921
28978
|
]
|
|
28922
28979
|
});
|
|
28923
|
-
}),
|
|
28980
|
+
}), zf = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", connected: i = !1, className: a, ...o }, s) {
|
|
28924
28981
|
let c = r === "vertical";
|
|
28925
28982
|
return /* @__PURE__ */ h("ol", {
|
|
28926
28983
|
ref: s,
|
|
@@ -28963,7 +29020,7 @@ var Lf = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
28963
29020
|
});
|
|
28964
29021
|
//#endregion
|
|
28965
29022
|
//#region src/SelectSetupGuide.tsx
|
|
28966
|
-
function
|
|
29023
|
+
function Bf({ status: e }) {
|
|
28967
29024
|
return /* @__PURE__ */ h("span", {
|
|
28968
29025
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
28969
29026
|
"aria-hidden": "true",
|
|
@@ -28982,18 +29039,92 @@ function zf({ status: e }) {
|
|
|
28982
29039
|
})
|
|
28983
29040
|
});
|
|
28984
29041
|
}
|
|
28985
|
-
var
|
|
29042
|
+
var Vf = /* @__PURE__ */ h("svg", {
|
|
29043
|
+
viewBox: "0 0 20 20",
|
|
29044
|
+
width: "16",
|
|
29045
|
+
height: "16",
|
|
29046
|
+
fill: "none",
|
|
29047
|
+
stroke: "currentColor",
|
|
29048
|
+
strokeWidth: "1.8",
|
|
29049
|
+
strokeLinecap: "round",
|
|
29050
|
+
strokeLinejoin: "round",
|
|
29051
|
+
"aria-hidden": "true",
|
|
29052
|
+
children: /* @__PURE__ */ h("path", { d: "M8 5l5 5-5 5" })
|
|
29053
|
+
});
|
|
29054
|
+
function Hf({ group: e, justDone: t }) {
|
|
29055
|
+
let [n, r] = f(!!(e.collapsible && e.defaultCollapsed)), i = !e.collapsible || !n;
|
|
29056
|
+
return /* @__PURE__ */ g("div", {
|
|
29057
|
+
className: `select-setupguide__group${i ? "" : " is-collapsed"}`,
|
|
29058
|
+
children: [e.collapsible ? /* @__PURE__ */ g("button", {
|
|
29059
|
+
type: "button",
|
|
29060
|
+
className: "select-setupguide__grouptitle select-setupguide__grouptoggle",
|
|
29061
|
+
"aria-expanded": i,
|
|
29062
|
+
onClick: () => r((e) => !e),
|
|
29063
|
+
children: [/* @__PURE__ */ h("span", { children: e.title }), Vf]
|
|
29064
|
+
}) : /* @__PURE__ */ h("div", {
|
|
29065
|
+
className: "select-setupguide__grouptitle",
|
|
29066
|
+
children: e.title
|
|
29067
|
+
}), /* @__PURE__ */ h("div", {
|
|
29068
|
+
className: "select-setupguide__collapse",
|
|
29069
|
+
...i ? {} : {
|
|
29070
|
+
inert: "",
|
|
29071
|
+
"aria-hidden": !0
|
|
29072
|
+
},
|
|
29073
|
+
children: /* @__PURE__ */ h("ul", {
|
|
29074
|
+
className: "select-setupguide__list",
|
|
29075
|
+
children: e.steps.map((e) => /* @__PURE__ */ g("li", {
|
|
29076
|
+
className: `select-setupguide__step is-${e.status}${e.onSelect ? " is-link" : ""}${t.has(e.id) ? " is-just-done" : ""}`,
|
|
29077
|
+
children: [
|
|
29078
|
+
/* @__PURE__ */ h(Bf, { status: e.status }),
|
|
29079
|
+
/* @__PURE__ */ g("span", {
|
|
29080
|
+
className: "select-setupguide__text",
|
|
29081
|
+
children: [e.onSelect ? /* @__PURE__ */ g("button", {
|
|
29082
|
+
type: "button",
|
|
29083
|
+
className: "select-setupguide__steptitle select-setupguide__go",
|
|
29084
|
+
onClick: e.onSelect,
|
|
29085
|
+
children: [e.title, /* @__PURE__ */ g("span", {
|
|
29086
|
+
className: "select-setupguide__sr",
|
|
29087
|
+
children: [" — ", Uf[e.status]]
|
|
29088
|
+
})]
|
|
29089
|
+
}) : /* @__PURE__ */ g("span", {
|
|
29090
|
+
className: "select-setupguide__steptitle",
|
|
29091
|
+
children: [e.title, /* @__PURE__ */ g("span", {
|
|
29092
|
+
className: "select-setupguide__sr",
|
|
29093
|
+
children: [" — ", Uf[e.status]]
|
|
29094
|
+
})]
|
|
29095
|
+
}), e.description && /* @__PURE__ */ h("span", {
|
|
29096
|
+
className: "select-setupguide__stepdesc",
|
|
29097
|
+
children: e.description
|
|
29098
|
+
})]
|
|
29099
|
+
}),
|
|
29100
|
+
e.trailing ? /* @__PURE__ */ h("span", {
|
|
29101
|
+
className: "select-setupguide__trailing",
|
|
29102
|
+
children: e.trailing
|
|
29103
|
+
}) : e.onSelect && e.status !== "done" ? /* @__PURE__ */ h("span", {
|
|
29104
|
+
className: "select-setupguide__chevron",
|
|
29105
|
+
children: Vf
|
|
29106
|
+
}) : null
|
|
29107
|
+
]
|
|
29108
|
+
}, e.id))
|
|
29109
|
+
})
|
|
29110
|
+
})]
|
|
29111
|
+
});
|
|
29112
|
+
}
|
|
29113
|
+
var Uf = {
|
|
28986
29114
|
done: "feito",
|
|
28987
29115
|
todo: "a fazer",
|
|
28988
29116
|
next: "próximo passo",
|
|
28989
29117
|
skipped: "pulado",
|
|
28990
29118
|
waiting: "aguardando"
|
|
28991
|
-
},
|
|
28992
|
-
let
|
|
28993
|
-
|
|
28994
|
-
|
|
28995
|
-
|
|
28996
|
-
|
|
29119
|
+
}, Wf = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: s = !1, tone: c = "default", className: l, ...u }, f) {
|
|
29120
|
+
let p = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0, m = pi(), _ = d(null), v = /* @__PURE__ */ new Set(), y = a.flatMap((e) => e.steps);
|
|
29121
|
+
if (_.current) for (let e of y) e.status === "done" && _.current.get(e.id) !== "done" && v.add(e.id);
|
|
29122
|
+
return o(() => {
|
|
29123
|
+
_.current = new Map(y.map((e) => [e.id, e.status]));
|
|
29124
|
+
}), /* @__PURE__ */ g("section", {
|
|
29125
|
+
ref: f,
|
|
29126
|
+
...u,
|
|
29127
|
+
className: `select-setupguide${m ? " select-setupguide--nested" : ""}${s ? " is-minimized" : ""}${c === "sandbox" ? " select-setupguide--sandbox" : ""}${l ? " " + l : ""}`,
|
|
28997
29128
|
children: [/* @__PURE__ */ g("div", {
|
|
28998
29129
|
className: "select-setupguide__head",
|
|
28999
29130
|
children: [
|
|
@@ -29018,15 +29149,11 @@ var Bf = {
|
|
|
29018
29149
|
"aria-label": "Progresso",
|
|
29019
29150
|
children: /* @__PURE__ */ h("span", {
|
|
29020
29151
|
className: "select-setupguide__fill",
|
|
29021
|
-
style: { width: `${
|
|
29152
|
+
style: { width: `${Math.max(p, 3)}%` }
|
|
29022
29153
|
})
|
|
29023
|
-
}), /* @__PURE__ */
|
|
29154
|
+
}), /* @__PURE__ */ h("span", {
|
|
29024
29155
|
className: "select-setupguide__count",
|
|
29025
|
-
children:
|
|
29026
|
-
n.done,
|
|
29027
|
-
" de ",
|
|
29028
|
-
n.total
|
|
29029
|
-
]
|
|
29156
|
+
children: n.label ?? `${n.done} de ${n.total}`
|
|
29030
29157
|
})]
|
|
29031
29158
|
}),
|
|
29032
29159
|
r && /* @__PURE__ */ h("div", {
|
|
@@ -29034,123 +29161,153 @@ var Bf = {
|
|
|
29034
29161
|
children: r
|
|
29035
29162
|
})
|
|
29036
29163
|
]
|
|
29037
|
-
}),
|
|
29038
|
-
className:
|
|
29039
|
-
|
|
29040
|
-
|
|
29041
|
-
|
|
29042
|
-
}
|
|
29043
|
-
|
|
29044
|
-
|
|
29045
|
-
|
|
29046
|
-
|
|
29047
|
-
|
|
29048
|
-
|
|
29049
|
-
|
|
29050
|
-
|
|
29051
|
-
|
|
29052
|
-
|
|
29053
|
-
|
|
29054
|
-
|
|
29055
|
-
|
|
29056
|
-
className: "select-setupguide__text",
|
|
29057
|
-
children: [/* @__PURE__ */ g("span", {
|
|
29058
|
-
className: "select-setupguide__steptitle",
|
|
29059
|
-
children: [e.title, /* @__PURE__ */ g("span", {
|
|
29060
|
-
className: "select-setupguide__sr",
|
|
29061
|
-
children: [" — ", Bf[e.status]]
|
|
29062
|
-
})]
|
|
29063
|
-
}), e.description && /* @__PURE__ */ h("span", {
|
|
29064
|
-
className: "select-setupguide__stepdesc",
|
|
29065
|
-
children: e.description
|
|
29066
|
-
})]
|
|
29067
|
-
}),
|
|
29068
|
-
e.trailing && /* @__PURE__ */ h("span", {
|
|
29069
|
-
className: "select-setupguide__trailing",
|
|
29070
|
-
children: e.trailing
|
|
29071
|
-
})
|
|
29072
|
-
]
|
|
29073
|
-
}, e.id))
|
|
29074
|
-
})]
|
|
29075
|
-
}, t))
|
|
29076
|
-
})]
|
|
29164
|
+
}), /* @__PURE__ */ h("div", {
|
|
29165
|
+
className: "select-setupguide__fold",
|
|
29166
|
+
...s ? {
|
|
29167
|
+
inert: "",
|
|
29168
|
+
"aria-hidden": !0
|
|
29169
|
+
} : {},
|
|
29170
|
+
children: /* @__PURE__ */ g("div", {
|
|
29171
|
+
className: "select-setupguide__body",
|
|
29172
|
+
children: [i && /* @__PURE__ */ h("div", {
|
|
29173
|
+
className: "select-setupguide__next",
|
|
29174
|
+
children: i
|
|
29175
|
+
}), /* @__PURE__ */ h("div", {
|
|
29176
|
+
className: "select-setupguide__steps",
|
|
29177
|
+
children: a.map((e, t) => /* @__PURE__ */ h(Hf, {
|
|
29178
|
+
group: e,
|
|
29179
|
+
justDone: v
|
|
29180
|
+
}, t))
|
|
29181
|
+
})]
|
|
29182
|
+
})
|
|
29077
29183
|
})]
|
|
29078
29184
|
});
|
|
29079
29185
|
});
|
|
29080
|
-
function
|
|
29186
|
+
function Gf({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
29081
29187
|
return /* @__PURE__ */ g("div", {
|
|
29082
29188
|
className: "select-setupnext",
|
|
29083
|
-
children: [
|
|
29084
|
-
|
|
29085
|
-
|
|
29086
|
-
|
|
29087
|
-
|
|
29088
|
-
|
|
29089
|
-
|
|
29090
|
-
|
|
29091
|
-
|
|
29092
|
-
|
|
29093
|
-
|
|
29094
|
-
|
|
29095
|
-
|
|
29096
|
-
|
|
29097
|
-
|
|
29098
|
-
|
|
29099
|
-
|
|
29100
|
-
|
|
29189
|
+
children: [/* @__PURE__ */ g("div", {
|
|
29190
|
+
className: "select-setupnext__text",
|
|
29191
|
+
children: [
|
|
29192
|
+
e && /* @__PURE__ */ h("div", {
|
|
29193
|
+
className: "select-setupnext__eyebrow",
|
|
29194
|
+
children: e
|
|
29195
|
+
}),
|
|
29196
|
+
/* @__PURE__ */ h("h3", {
|
|
29197
|
+
className: "select-setupnext__title",
|
|
29198
|
+
children: t
|
|
29199
|
+
}),
|
|
29200
|
+
n && /* @__PURE__ */ h("div", {
|
|
29201
|
+
className: "select-setupnext__body",
|
|
29202
|
+
children: n
|
|
29203
|
+
})
|
|
29204
|
+
]
|
|
29205
|
+
}), r && /* @__PURE__ */ h("div", {
|
|
29206
|
+
className: "select-setupnext__actions",
|
|
29207
|
+
children: r
|
|
29208
|
+
})]
|
|
29101
29209
|
});
|
|
29102
29210
|
}
|
|
29103
29211
|
//#endregion
|
|
29104
29212
|
//#region src/SelectTour.tsx
|
|
29105
|
-
var
|
|
29106
|
-
function
|
|
29213
|
+
var Kf = 6, qf = 14, Jf = 8, Yf = 640;
|
|
29214
|
+
function Xf(e) {
|
|
29107
29215
|
let t = document.querySelector(e);
|
|
29108
29216
|
if (!t) return null;
|
|
29109
29217
|
let n = t.getBoundingClientRect();
|
|
29110
|
-
|
|
29111
|
-
|
|
29112
|
-
|
|
29218
|
+
if (n.width === 0 && n.height === 0) return null;
|
|
29219
|
+
let r = Math.min(parseFloat(getComputedStyle(t).borderTopLeftRadius) || 0, Math.min(n.width, n.height) / 2);
|
|
29220
|
+
return {
|
|
29221
|
+
top: n.top - Kf,
|
|
29222
|
+
left: n.left - Kf,
|
|
29113
29223
|
width: n.width + 12,
|
|
29114
|
-
height: n.height + 12
|
|
29224
|
+
height: n.height + 12,
|
|
29225
|
+
radius: r + Kf
|
|
29115
29226
|
};
|
|
29116
29227
|
}
|
|
29117
|
-
|
|
29228
|
+
var Zf = (e, t, n) => Math.min(Math.max(e, t), Math.max(t, n));
|
|
29229
|
+
function Qf(e, t, n, r, i) {
|
|
29230
|
+
if (r < Yf) return {
|
|
29231
|
+
side: "sheet",
|
|
29232
|
+
left: Jf,
|
|
29233
|
+
top: e.top + e.height / 2 > i / 2 ? Jf : i - n - Jf
|
|
29234
|
+
};
|
|
29235
|
+
let a = e.top + e.height / 2, o = e.left + e.width / 2, s = (e) => e >= Jf && e + n <= i - Jf, c = (e) => e >= Jf && e + t <= r - Jf, l = Zf(a - n / 2, Jf, i - n - Jf), u = Zf(o - t / 2, Jf, r - t - Jf), d = [
|
|
29236
|
+
{
|
|
29237
|
+
side: "right",
|
|
29238
|
+
left: e.left + e.width + qf,
|
|
29239
|
+
top: l,
|
|
29240
|
+
arrow: a - l
|
|
29241
|
+
},
|
|
29242
|
+
{
|
|
29243
|
+
side: "left",
|
|
29244
|
+
left: e.left - qf - t,
|
|
29245
|
+
top: l,
|
|
29246
|
+
arrow: a - l
|
|
29247
|
+
},
|
|
29248
|
+
{
|
|
29249
|
+
side: "bottom",
|
|
29250
|
+
left: u,
|
|
29251
|
+
top: e.top + e.height + qf,
|
|
29252
|
+
arrow: o - u
|
|
29253
|
+
},
|
|
29254
|
+
{
|
|
29255
|
+
side: "top",
|
|
29256
|
+
left: u,
|
|
29257
|
+
top: e.top - qf - n,
|
|
29258
|
+
arrow: o - u
|
|
29259
|
+
}
|
|
29260
|
+
];
|
|
29261
|
+
for (let r of d) {
|
|
29262
|
+
let o = r.side === "right" || r.side === "left";
|
|
29263
|
+
if (!(o && (e.height > i * .6 || a < Jf || a > i - Jf)) && c(r.left) && s(r.top)) return {
|
|
29264
|
+
...r,
|
|
29265
|
+
arrow: Zf(r.arrow ?? 0, 16, (o ? n : t) - 16)
|
|
29266
|
+
};
|
|
29267
|
+
}
|
|
29268
|
+
return {
|
|
29269
|
+
side: "sheet",
|
|
29270
|
+
left: u,
|
|
29271
|
+
top: i - n - Jf
|
|
29272
|
+
};
|
|
29273
|
+
}
|
|
29274
|
+
function $f(e) {
|
|
29118
29275
|
let t = document.querySelector(e);
|
|
29119
29276
|
if (!t) return !1;
|
|
29120
29277
|
let n = t.getBoundingClientRect();
|
|
29121
29278
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
29122
29279
|
}
|
|
29123
|
-
function
|
|
29124
|
-
let s = u(() => e ? t.filter((e) =>
|
|
29280
|
+
function ep({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
29281
|
+
let s = u(() => e ? t.filter((e) => $f(e.target)) : [], [e]), [c, p] = f(0), [m, v] = f(null), [y, b] = f(null), x = d(null), S = d(null);
|
|
29125
29282
|
o(() => {
|
|
29126
29283
|
e && p(0);
|
|
29127
29284
|
}, [e]);
|
|
29128
29285
|
let C = s[c], w = c === s.length - 1, T = i(() => {
|
|
29129
29286
|
if (!C) return;
|
|
29130
|
-
let e =
|
|
29287
|
+
let e = Xf(C.target);
|
|
29131
29288
|
v(e);
|
|
29132
29289
|
let t = x.current;
|
|
29133
|
-
|
|
29134
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + Wf, s = e.top;
|
|
29135
|
-
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + Wf, s + r > a - 8 && (s = e.top - r - Wf)), s = Math.min(Math.max(8, s), a - r - 8), b({
|
|
29136
|
-
top: s,
|
|
29137
|
-
left: o
|
|
29138
|
-
});
|
|
29290
|
+
e && t && b(Qf(e, t.offsetWidth, t.offsetHeight, window.innerWidth, window.innerHeight));
|
|
29139
29291
|
}, [C]);
|
|
29140
29292
|
return l(() => {
|
|
29141
29293
|
var t, n;
|
|
29142
|
-
|
|
29294
|
+
if (!e || !C) return;
|
|
29295
|
+
(t = document.querySelector(C.target)) == null || t.scrollIntoView({
|
|
29143
29296
|
block: "nearest",
|
|
29144
29297
|
inline: "nearest"
|
|
29145
|
-
}), T()
|
|
29298
|
+
}), T();
|
|
29299
|
+
let r = requestAnimationFrame(T);
|
|
29300
|
+
return (n = S.current) == null || n.focus({ preventScroll: !0 }), () => cancelAnimationFrame(r);
|
|
29146
29301
|
}, [
|
|
29147
29302
|
e,
|
|
29148
29303
|
C,
|
|
29149
29304
|
T
|
|
29150
29305
|
]), o(() => {
|
|
29306
|
+
if (e) return document.body.classList.add("select-tour-open"), () => document.body.classList.remove("select-tour-open");
|
|
29307
|
+
}, [e]), o(() => {
|
|
29151
29308
|
if (!e) return;
|
|
29152
29309
|
let t = (e) => {
|
|
29153
|
-
e.key === "Escape" && n("skip");
|
|
29310
|
+
e.key === "Escape" && n("skip"), e.key === "ArrowRight" && p((e) => Math.min(e + 1, s.length - 1)), e.key === "ArrowLeft" && p((e) => Math.max(e - 1, 0));
|
|
29154
29311
|
};
|
|
29155
29312
|
return window.addEventListener("keydown", t), window.addEventListener("resize", T), window.addEventListener("scroll", T, !0), () => {
|
|
29156
29313
|
window.removeEventListener("keydown", t), window.removeEventListener("resize", T), window.removeEventListener("scroll", T, !0);
|
|
@@ -29158,7 +29315,8 @@ function qf({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
29158
29315
|
}, [
|
|
29159
29316
|
e,
|
|
29160
29317
|
n,
|
|
29161
|
-
T
|
|
29318
|
+
T,
|
|
29319
|
+
s.length
|
|
29162
29320
|
]), !e || !C ? null : _(/* @__PURE__ */ g("div", {
|
|
29163
29321
|
className: "select select-tour",
|
|
29164
29322
|
"data-theme": a,
|
|
@@ -29174,12 +29332,13 @@ function qf({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
29174
29332
|
top: m.top,
|
|
29175
29333
|
left: m.left,
|
|
29176
29334
|
width: m.width,
|
|
29177
|
-
height: m.height
|
|
29335
|
+
height: m.height,
|
|
29336
|
+
borderRadius: m.radius
|
|
29178
29337
|
}
|
|
29179
29338
|
}),
|
|
29180
29339
|
/* @__PURE__ */ g("div", {
|
|
29181
29340
|
ref: x,
|
|
29182
|
-
className:
|
|
29341
|
+
className: `select-tour__pop${y ? ` select-tour__pop--${y.side}` : ""}`,
|
|
29183
29342
|
role: "dialog",
|
|
29184
29343
|
"aria-modal": "true",
|
|
29185
29344
|
"aria-labelledby": "select-tour-title",
|
|
@@ -29188,44 +29347,62 @@ function qf({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
29188
29347
|
left: y.left
|
|
29189
29348
|
} : { visibility: "hidden" },
|
|
29190
29349
|
children: [
|
|
29191
|
-
/* @__PURE__ */
|
|
29192
|
-
className: "select-
|
|
29350
|
+
(y == null ? void 0 : y.arrow) !== void 0 && /* @__PURE__ */ h("span", {
|
|
29351
|
+
className: "select-tour__arrow",
|
|
29352
|
+
"aria-hidden": "true",
|
|
29353
|
+
style: y.side === "right" || y.side === "left" ? { top: y.arrow } : { left: y.arrow }
|
|
29354
|
+
}),
|
|
29355
|
+
/* @__PURE__ */ g("div", {
|
|
29356
|
+
className: "select-tour__content",
|
|
29193
29357
|
children: [
|
|
29194
|
-
|
|
29195
|
-
|
|
29196
|
-
|
|
29358
|
+
/* @__PURE__ */ g("span", {
|
|
29359
|
+
className: "select-tour__count",
|
|
29360
|
+
children: [
|
|
29361
|
+
c + 1,
|
|
29362
|
+
" de ",
|
|
29363
|
+
s.length
|
|
29364
|
+
]
|
|
29365
|
+
}),
|
|
29366
|
+
/* @__PURE__ */ h("h2", {
|
|
29367
|
+
id: "select-tour-title",
|
|
29368
|
+
className: "select-tour__title",
|
|
29369
|
+
children: C.title
|
|
29370
|
+
}),
|
|
29371
|
+
/* @__PURE__ */ h("div", {
|
|
29372
|
+
className: "select-tour__body",
|
|
29373
|
+
children: C.body
|
|
29374
|
+
})
|
|
29197
29375
|
]
|
|
29198
|
-
}),
|
|
29199
|
-
/* @__PURE__ */ h("h2", {
|
|
29200
|
-
id: "select-tour-title",
|
|
29201
|
-
className: "select-tour__title",
|
|
29202
|
-
children: C.title
|
|
29203
|
-
}),
|
|
29204
|
-
/* @__PURE__ */ h("div", {
|
|
29205
|
-
className: "select-tour__body",
|
|
29206
|
-
children: C.body
|
|
29207
|
-
}),
|
|
29376
|
+
}, c),
|
|
29208
29377
|
/* @__PURE__ */ g("div", {
|
|
29209
29378
|
className: "select-tour__foot",
|
|
29210
|
-
children: [
|
|
29211
|
-
|
|
29212
|
-
|
|
29213
|
-
|
|
29214
|
-
|
|
29215
|
-
|
|
29216
|
-
|
|
29217
|
-
|
|
29218
|
-
|
|
29219
|
-
|
|
29220
|
-
|
|
29221
|
-
|
|
29222
|
-
|
|
29223
|
-
|
|
29224
|
-
|
|
29225
|
-
|
|
29226
|
-
|
|
29227
|
-
|
|
29228
|
-
|
|
29379
|
+
children: [
|
|
29380
|
+
/* @__PURE__ */ h("span", {
|
|
29381
|
+
className: "select-tour__dots",
|
|
29382
|
+
"aria-hidden": "true",
|
|
29383
|
+
children: s.map((e, t) => /* @__PURE__ */ h("i", { className: t === c ? "is-on" : void 0 }, t))
|
|
29384
|
+
}),
|
|
29385
|
+
/* @__PURE__ */ h(Zi, {
|
|
29386
|
+
onClick: () => n("skip"),
|
|
29387
|
+
children: r.skip ?? "Pular tour"
|
|
29388
|
+
}),
|
|
29389
|
+
/* @__PURE__ */ g("span", {
|
|
29390
|
+
className: "select-tour__nav",
|
|
29391
|
+
children: [c > 0 && /* @__PURE__ */ h(H, {
|
|
29392
|
+
variant: "secondary",
|
|
29393
|
+
size: "sm",
|
|
29394
|
+
inline: !0,
|
|
29395
|
+
onClick: () => p((e) => e - 1),
|
|
29396
|
+
children: r.prev ?? "Anterior"
|
|
29397
|
+
}), /* @__PURE__ */ h(H, {
|
|
29398
|
+
ref: S,
|
|
29399
|
+
size: "sm",
|
|
29400
|
+
inline: !0,
|
|
29401
|
+
onClick: () => w ? n("done") : p((e) => e + 1),
|
|
29402
|
+
children: w ? r.done ?? "Concluir" : r.next ?? "Próximo"
|
|
29403
|
+
})]
|
|
29404
|
+
})
|
|
29405
|
+
]
|
|
29229
29406
|
})
|
|
29230
29407
|
]
|
|
29231
29408
|
})
|
|
@@ -29234,7 +29411,7 @@ function qf({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
29234
29411
|
}
|
|
29235
29412
|
//#endregion
|
|
29236
29413
|
//#region src/SelectPlanCard.tsx
|
|
29237
|
-
var
|
|
29414
|
+
var tp = 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) {
|
|
29238
29415
|
return /* @__PURE__ */ g("div", {
|
|
29239
29416
|
ref: d,
|
|
29240
29417
|
...u,
|
|
@@ -29289,7 +29466,7 @@ var Jf = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
29289
29466
|
})]
|
|
29290
29467
|
})]
|
|
29291
29468
|
});
|
|
29292
|
-
}),
|
|
29469
|
+
}), np = r(function({ title: e, description: t, headerAction: n, footer: r, dense: i = !1, spread: a = !1, children: o, className: s, ...c }, l) {
|
|
29293
29470
|
return /* @__PURE__ */ g("div", {
|
|
29294
29471
|
ref: l,
|
|
29295
29472
|
...c,
|
|
@@ -29325,7 +29502,7 @@ var Jf = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
29325
29502
|
]
|
|
29326
29503
|
});
|
|
29327
29504
|
});
|
|
29328
|
-
function
|
|
29505
|
+
function rp({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, wrap: o = !1, onClick: s }) {
|
|
29329
29506
|
let c = /* @__PURE__ */ g(m, { children: [
|
|
29330
29507
|
e && /* @__PURE__ */ h("span", {
|
|
29331
29508
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
@@ -29357,7 +29534,7 @@ function Xf({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
29357
29534
|
children: c
|
|
29358
29535
|
});
|
|
29359
29536
|
}
|
|
29360
|
-
function
|
|
29537
|
+
function ip({ children: e }) {
|
|
29361
29538
|
return /* @__PURE__ */ h("div", {
|
|
29362
29539
|
className: "select-listlabel",
|
|
29363
29540
|
children: e
|
|
@@ -29365,7 +29542,7 @@ function Zf({ children: e }) {
|
|
|
29365
29542
|
}
|
|
29366
29543
|
//#endregion
|
|
29367
29544
|
//#region src/SelectThumbnail.tsx
|
|
29368
|
-
var
|
|
29545
|
+
var ap = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, s) {
|
|
29369
29546
|
let [c, l] = f(!1);
|
|
29370
29547
|
o(() => l(!1), [e]);
|
|
29371
29548
|
let u = /* @__PURE__ */ h("span", {
|
|
@@ -29399,7 +29576,7 @@ var Qf = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
|
|
|
29399
29576
|
});
|
|
29400
29577
|
//#endregion
|
|
29401
29578
|
//#region src/SelectImageZoomModal.tsx
|
|
29402
|
-
function
|
|
29579
|
+
function op({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
29403
29580
|
return /* @__PURE__ */ h(mc, {
|
|
29404
29581
|
open: e,
|
|
29405
29582
|
onClose: t,
|
|
@@ -29418,7 +29595,7 @@ function $f({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
29418
29595
|
}
|
|
29419
29596
|
//#endregion
|
|
29420
29597
|
//#region src/SelectZoomThumbnail.tsx
|
|
29421
|
-
function
|
|
29598
|
+
function sp({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
29422
29599
|
let [a, o] = f(!1);
|
|
29423
29600
|
return e ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("button", {
|
|
29424
29601
|
type: "button",
|
|
@@ -29431,19 +29608,19 @@ function ep({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
29431
29608
|
cursor: "zoom-in",
|
|
29432
29609
|
display: "inline-flex"
|
|
29433
29610
|
},
|
|
29434
|
-
children: /* @__PURE__ */ h(
|
|
29611
|
+
children: /* @__PURE__ */ h(ap, {
|
|
29435
29612
|
src: e,
|
|
29436
29613
|
size: n,
|
|
29437
29614
|
alt: t,
|
|
29438
29615
|
count: i
|
|
29439
29616
|
})
|
|
29440
|
-
}), a && /* @__PURE__ */ h(
|
|
29617
|
+
}), a && /* @__PURE__ */ h(op, {
|
|
29441
29618
|
open: !0,
|
|
29442
29619
|
onClose: () => o(!1),
|
|
29443
29620
|
src: e,
|
|
29444
29621
|
alt: t,
|
|
29445
29622
|
title: r ?? t
|
|
29446
|
-
})] }) : /* @__PURE__ */ h(
|
|
29623
|
+
})] }) : /* @__PURE__ */ h(ap, {
|
|
29447
29624
|
size: n,
|
|
29448
29625
|
alt: t,
|
|
29449
29626
|
count: i
|
|
@@ -29451,7 +29628,7 @@ function ep({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
29451
29628
|
}
|
|
29452
29629
|
//#endregion
|
|
29453
29630
|
//#region src/SelectMediaCell.tsx
|
|
29454
|
-
var
|
|
29631
|
+
var cp = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
29455
29632
|
return /* @__PURE__ */ g("span", {
|
|
29456
29633
|
ref: a,
|
|
29457
29634
|
...i,
|
|
@@ -29473,7 +29650,7 @@ var tp = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
29473
29650
|
});
|
|
29474
29651
|
//#endregion
|
|
29475
29652
|
//#region src/SelectOfflineModal.tsx
|
|
29476
|
-
function
|
|
29653
|
+
function lp() {
|
|
29477
29654
|
let [e, t] = f(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
29478
29655
|
return o(() => {
|
|
29479
29656
|
let e = () => t(!1), n = () => t(!0);
|
|
@@ -29496,7 +29673,7 @@ function np() {
|
|
|
29496
29673
|
}
|
|
29497
29674
|
//#endregion
|
|
29498
29675
|
//#region src/SelectKeyValueEditor.tsx
|
|
29499
|
-
function
|
|
29676
|
+
function up(e) {
|
|
29500
29677
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
29501
29678
|
name: String(e.name ?? e.key ?? ""),
|
|
29502
29679
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -29505,8 +29682,8 @@ function rp(e) {
|
|
|
29505
29682
|
value: t == null ? "" : String(t)
|
|
29506
29683
|
})) : [];
|
|
29507
29684
|
}
|
|
29508
|
-
var
|
|
29509
|
-
let d =
|
|
29685
|
+
var dp = 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) {
|
|
29686
|
+
let d = up(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
29510
29687
|
...t,
|
|
29511
29688
|
...n
|
|
29512
29689
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), m = () => t([...d, {
|
|
@@ -29570,7 +29747,7 @@ var ip = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
29570
29747
|
})
|
|
29571
29748
|
]
|
|
29572
29749
|
});
|
|
29573
|
-
}),
|
|
29750
|
+
}), fp = (e) => String(e).padStart(2, "0"), pp = {
|
|
29574
29751
|
"en-US": {
|
|
29575
29752
|
weekdays: [
|
|
29576
29753
|
"Su",
|
|
@@ -29629,34 +29806,34 @@ var ip = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
29629
29806
|
to: "Até",
|
|
29630
29807
|
cancel: "Cancelar",
|
|
29631
29808
|
apply: "Aplicar",
|
|
29632
|
-
formatDate: (e) => `${
|
|
29809
|
+
formatDate: (e) => `${fp(e.getDate())} / ${fp(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
29633
29810
|
}
|
|
29634
|
-
},
|
|
29811
|
+
}, mp = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), hp = (e) => new Date(e.getFullYear(), e.getMonth(), 1), gp = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), _p = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), vp = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), yp = (e) => {
|
|
29635
29812
|
let t = /* @__PURE__ */ new Date();
|
|
29636
29813
|
return {
|
|
29637
29814
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
29638
29815
|
to: t
|
|
29639
29816
|
};
|
|
29640
|
-
},
|
|
29817
|
+
}, bp = [
|
|
29641
29818
|
{
|
|
29642
29819
|
id: "15m",
|
|
29643
29820
|
label: "Last 15 minutes",
|
|
29644
|
-
range: () =>
|
|
29821
|
+
range: () => yp(15)
|
|
29645
29822
|
},
|
|
29646
29823
|
{
|
|
29647
29824
|
id: "1h",
|
|
29648
29825
|
label: "Last 1 hour",
|
|
29649
|
-
range: () =>
|
|
29826
|
+
range: () => yp(60)
|
|
29650
29827
|
},
|
|
29651
29828
|
{
|
|
29652
29829
|
id: "3h",
|
|
29653
29830
|
label: "Last 3 hours",
|
|
29654
|
-
range: () =>
|
|
29831
|
+
range: () => yp(180)
|
|
29655
29832
|
},
|
|
29656
29833
|
{
|
|
29657
29834
|
id: "24h",
|
|
29658
29835
|
label: "Last 24 hours",
|
|
29659
|
-
range: () =>
|
|
29836
|
+
range: () => yp(1440)
|
|
29660
29837
|
},
|
|
29661
29838
|
{
|
|
29662
29839
|
id: "3d",
|
|
@@ -29672,78 +29849,78 @@ var ip = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
29672
29849
|
id: "all",
|
|
29673
29850
|
label: "All",
|
|
29674
29851
|
range: () => ({
|
|
29675
|
-
from:
|
|
29676
|
-
to:
|
|
29852
|
+
from: mp(/* @__PURE__ */ new Date()),
|
|
29853
|
+
to: mp(/* @__PURE__ */ new Date())
|
|
29677
29854
|
})
|
|
29678
29855
|
}
|
|
29679
|
-
],
|
|
29680
|
-
let t =
|
|
29856
|
+
], xp = (e) => {
|
|
29857
|
+
let t = mp(/* @__PURE__ */ new Date());
|
|
29681
29858
|
return {
|
|
29682
|
-
from:
|
|
29859
|
+
from: gp(t, -e),
|
|
29683
29860
|
to: t
|
|
29684
29861
|
};
|
|
29685
|
-
},
|
|
29686
|
-
let t =
|
|
29862
|
+
}, Sp = (e) => {
|
|
29863
|
+
let t = gp(mp(/* @__PURE__ */ new Date()), -e);
|
|
29687
29864
|
return {
|
|
29688
29865
|
from: t,
|
|
29689
29866
|
to: t
|
|
29690
29867
|
};
|
|
29691
|
-
},
|
|
29868
|
+
}, Cp = [
|
|
29692
29869
|
{
|
|
29693
29870
|
id: "today",
|
|
29694
29871
|
label: "Hoje",
|
|
29695
|
-
range: () =>
|
|
29872
|
+
range: () => xp(0)
|
|
29696
29873
|
},
|
|
29697
29874
|
{
|
|
29698
29875
|
id: "yesterday",
|
|
29699
29876
|
label: "Ontem",
|
|
29700
|
-
range: () =>
|
|
29877
|
+
range: () => Sp(1)
|
|
29701
29878
|
},
|
|
29702
29879
|
{
|
|
29703
29880
|
id: "7d",
|
|
29704
29881
|
label: "Últimos 7 dias",
|
|
29705
|
-
range: () =>
|
|
29882
|
+
range: () => xp(6)
|
|
29706
29883
|
},
|
|
29707
29884
|
{
|
|
29708
29885
|
id: "10d",
|
|
29709
29886
|
label: "Últimos 10 dias",
|
|
29710
|
-
range: () =>
|
|
29887
|
+
range: () => xp(9)
|
|
29711
29888
|
},
|
|
29712
29889
|
{
|
|
29713
29890
|
id: "15d",
|
|
29714
29891
|
label: "Últimos 15 dias",
|
|
29715
|
-
range: () =>
|
|
29892
|
+
range: () => xp(14)
|
|
29716
29893
|
},
|
|
29717
29894
|
{
|
|
29718
29895
|
id: "20d",
|
|
29719
29896
|
label: "Últimos 20 dias",
|
|
29720
|
-
range: () =>
|
|
29897
|
+
range: () => xp(19)
|
|
29721
29898
|
},
|
|
29722
29899
|
{
|
|
29723
29900
|
id: "30d",
|
|
29724
29901
|
label: "Últimos 30 dias",
|
|
29725
|
-
range: () =>
|
|
29902
|
+
range: () => xp(29)
|
|
29726
29903
|
},
|
|
29727
29904
|
{
|
|
29728
29905
|
id: "90d",
|
|
29729
29906
|
label: "Últimos 90 dias",
|
|
29730
|
-
range: () =>
|
|
29907
|
+
range: () => xp(89)
|
|
29731
29908
|
}
|
|
29732
29909
|
];
|
|
29733
|
-
function
|
|
29910
|
+
function wp(e) {
|
|
29734
29911
|
if (!e) return "—";
|
|
29735
29912
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
29736
29913
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
29737
29914
|
}
|
|
29738
|
-
var
|
|
29739
|
-
let p =
|
|
29915
|
+
var Tp = r(function({ value: e, presets: t = bp, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, d) {
|
|
29916
|
+
let p = pp[a], m = mp(/* @__PURE__ */ new Date()), _ = s ? mp(s) : null, [v, y] = f(e ?? {
|
|
29740
29917
|
from: m,
|
|
29741
29918
|
to: m
|
|
29742
|
-
}), [b, x] = f(
|
|
29919
|
+
}), [b, x] = f(hp((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = f(null), w = gp(hp(b), -hp(b).getDay()), T = Array.from({ length: 42 }, (e, t) => gp(w, t)), E = (e) => _ ? mp(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ h("span", {
|
|
29743
29920
|
className: "select-datepicker__placeholder",
|
|
29744
29921
|
children: "— / — / ——"
|
|
29745
29922
|
}), O = (e) => {
|
|
29746
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
29923
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < mp(t.from) ? {
|
|
29747
29924
|
from: e,
|
|
29748
29925
|
to: null
|
|
29749
29926
|
} : {
|
|
@@ -29753,7 +29930,7 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
|
|
|
29753
29930
|
}, k = (e) => {
|
|
29754
29931
|
if (e.disabled || !e.range) return;
|
|
29755
29932
|
let t = e.range();
|
|
29756
|
-
y(t), C(e.id), t.from && x(
|
|
29933
|
+
y(t), C(e.id), t.from && x(hp(t.from));
|
|
29757
29934
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
29758
29935
|
return /* @__PURE__ */ h("div", {
|
|
29759
29936
|
ref: d,
|
|
@@ -29799,7 +29976,7 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
|
|
|
29799
29976
|
}),
|
|
29800
29977
|
o && /* @__PURE__ */ h("span", {
|
|
29801
29978
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
29802
|
-
children:
|
|
29979
|
+
children: wp(v[e])
|
|
29803
29980
|
})
|
|
29804
29981
|
]
|
|
29805
29982
|
}, e))
|
|
@@ -29811,8 +29988,8 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
|
|
|
29811
29988
|
type: "button",
|
|
29812
29989
|
className: "select-datepicker__nav",
|
|
29813
29990
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
29814
|
-
onClick: () => x((e) =>
|
|
29815
|
-
children: /* @__PURE__ */ h(
|
|
29991
|
+
onClick: () => x((e) => _p(e, -1)),
|
|
29992
|
+
children: /* @__PURE__ */ h(W, {})
|
|
29816
29993
|
}),
|
|
29817
29994
|
/* @__PURE__ */ g("span", {
|
|
29818
29995
|
className: "select-datepicker__monthlabel",
|
|
@@ -29826,8 +30003,8 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
|
|
|
29826
30003
|
type: "button",
|
|
29827
30004
|
className: "select-datepicker__nav",
|
|
29828
30005
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
29829
|
-
onClick: () => x((e) =>
|
|
29830
|
-
children: /* @__PURE__ */ h(
|
|
30006
|
+
onClick: () => x((e) => _p(e, 1)),
|
|
30007
|
+
children: /* @__PURE__ */ h(U, {})
|
|
29831
30008
|
})
|
|
29832
30009
|
]
|
|
29833
30010
|
}),
|
|
@@ -29838,7 +30015,7 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
|
|
|
29838
30015
|
className: "select-datepicker__weekday",
|
|
29839
30016
|
children: e
|
|
29840
30017
|
}, t)), T.map((e) => {
|
|
29841
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
30018
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && vp(e, v.from), i = !!v.to && vp(e, v.to), a = r || i, o = !!v.from && !!v.to && !vp(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > mp(v.from) && e < mp(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" : "") + (vp(e, m) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
29842
30019
|
return /* @__PURE__ */ h("div", {
|
|
29843
30020
|
className: s,
|
|
29844
30021
|
children: /* @__PURE__ */ h("button", {
|
|
@@ -29853,12 +30030,12 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
|
|
|
29853
30030
|
}),
|
|
29854
30031
|
/* @__PURE__ */ g("div", {
|
|
29855
30032
|
className: "select-datepicker__footer",
|
|
29856
|
-
children: [/* @__PURE__ */ h(
|
|
30033
|
+
children: [/* @__PURE__ */ h(H, {
|
|
29857
30034
|
variant: "secondary",
|
|
29858
30035
|
inline: !0,
|
|
29859
30036
|
onClick: r,
|
|
29860
30037
|
children: p.cancel
|
|
29861
|
-
}), /* @__PURE__ */ h(
|
|
30038
|
+
}), /* @__PURE__ */ h(H, {
|
|
29862
30039
|
variant: "primary",
|
|
29863
30040
|
inline: !0,
|
|
29864
30041
|
onClick: () => n == null ? void 0 : n(v),
|
|
@@ -29869,33 +30046,33 @@ var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accent
|
|
|
29869
30046
|
})]
|
|
29870
30047
|
})
|
|
29871
30048
|
});
|
|
29872
|
-
}),
|
|
29873
|
-
function
|
|
30049
|
+
}), Ep = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Dp = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Op = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
30050
|
+
function kp(e, t) {
|
|
29874
30051
|
for (let r of t) {
|
|
29875
30052
|
var n;
|
|
29876
30053
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
29877
|
-
if (t != null && t.from && t != null && t.to &&
|
|
30054
|
+
if (t != null && t.from && t != null && t.to && Dp(t.from, e.start) && Dp(t.to, e.end)) return r.label;
|
|
29878
30055
|
}
|
|
29879
|
-
return
|
|
30056
|
+
return Dp(e.start, e.end) ? Op(e.start) : `${Op(e.start)} – ${Op(e.end)}`;
|
|
29880
30057
|
}
|
|
29881
|
-
function
|
|
29882
|
-
let [c, l] = f(!1), u = r === null ? null : r ??
|
|
30058
|
+
function Ap({ value: e, onChange: t, presets: n = Cp, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
30059
|
+
let [c, l] = f(!1), u = r === null ? null : r ?? Ep(/* @__PURE__ */ new Date());
|
|
29883
30060
|
return /* @__PURE__ */ h(fr, {
|
|
29884
30061
|
active: c,
|
|
29885
30062
|
onClose: () => l(!1),
|
|
29886
30063
|
placement: i,
|
|
29887
30064
|
role: "dialog",
|
|
29888
|
-
activator: /* @__PURE__ */ h(
|
|
30065
|
+
activator: /* @__PURE__ */ h(H, {
|
|
29889
30066
|
variant: "secondary",
|
|
29890
30067
|
size: a,
|
|
29891
30068
|
inline: !s,
|
|
29892
30069
|
disabled: o,
|
|
29893
30070
|
icon: /* @__PURE__ */ h(rt, {}),
|
|
29894
|
-
trailingIcon: /* @__PURE__ */ h(
|
|
30071
|
+
trailingIcon: /* @__PURE__ */ h(G, {}),
|
|
29895
30072
|
onClick: () => l((e) => !e),
|
|
29896
|
-
children:
|
|
30073
|
+
children: kp(e, n)
|
|
29897
30074
|
}),
|
|
29898
|
-
children: /* @__PURE__ */ h(
|
|
30075
|
+
children: /* @__PURE__ */ h(Tp, {
|
|
29899
30076
|
embedded: !0,
|
|
29900
30077
|
locale: "pt-BR",
|
|
29901
30078
|
showTime: !1,
|
|
@@ -29908,8 +30085,8 @@ function Cp({ value: e, onChange: t, presets: n = gp, maxDate: r, placement: i =
|
|
|
29908
30085
|
onCancel: () => l(!1),
|
|
29909
30086
|
onApply: (e) => {
|
|
29910
30087
|
e.from && t({
|
|
29911
|
-
start:
|
|
29912
|
-
end:
|
|
30088
|
+
start: Ep(e.from),
|
|
30089
|
+
end: Ep(e.to ?? e.from)
|
|
29913
30090
|
}), l(!1);
|
|
29914
30091
|
}
|
|
29915
30092
|
})
|
|
@@ -29917,7 +30094,7 @@ function Cp({ value: e, onChange: t, presets: n = gp, maxDate: r, placement: i =
|
|
|
29917
30094
|
}
|
|
29918
30095
|
//#endregion
|
|
29919
30096
|
//#region src/SelectNumberField.tsx
|
|
29920
|
-
var
|
|
30097
|
+
var jp = 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: d, placeholder: p, size: m = "md", ariaLabel: _, className: v, ...y }, b) {
|
|
29921
30098
|
let x = s(), S = u ? `${x}-err` : l ? `${x}-hint` : void 0, C = (e) => Math.min(i ?? Infinity, Math.max(r ?? -Infinity, e)), w = (e) => Math.round(e * 1e6) / 1e6, T = t ?? 0, E = r != null && T <= r, D = i != null && T >= i, [O, k] = f(!1), [A, j] = f(""), M = o && O ? A : t == null ? "" : String(t), N = (e) => {
|
|
29922
30099
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
29923
30100
|
if (o && j(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -29995,7 +30172,7 @@ var wp = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
29995
30172
|
});
|
|
29996
30173
|
//#endregion
|
|
29997
30174
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
29998
|
-
function
|
|
30175
|
+
function Mp({ 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 }) {
|
|
29999
30176
|
let p = !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) => {
|
|
30000
30177
|
let i = n + r;
|
|
30001
30178
|
if (i < 0 || i >= e.length) return;
|
|
@@ -30050,7 +30227,7 @@ function Tp({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
30050
30227
|
onClick: r.moveUp
|
|
30051
30228
|
}), /* @__PURE__ */ h(Y, {
|
|
30052
30229
|
size: "sm",
|
|
30053
|
-
icon: /* @__PURE__ */ h(
|
|
30230
|
+
icon: /* @__PURE__ */ h(G, {}),
|
|
30054
30231
|
label: "Mover para baixo",
|
|
30055
30232
|
disabled: r.isLast,
|
|
30056
30233
|
onClick: r.moveDown
|
|
@@ -30070,7 +30247,7 @@ function Tp({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
30070
30247
|
align: "space-between",
|
|
30071
30248
|
blockAlign: "center",
|
|
30072
30249
|
gap: "200",
|
|
30073
|
-
children: [/* @__PURE__ */ h(
|
|
30250
|
+
children: [/* @__PURE__ */ h(H, {
|
|
30074
30251
|
variant: "secondary",
|
|
30075
30252
|
size: "sm",
|
|
30076
30253
|
inline: !0,
|
|
@@ -30090,7 +30267,7 @@ function Tp({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
30090
30267
|
}
|
|
30091
30268
|
//#endregion
|
|
30092
30269
|
//#region src/SelectBuilderLayout.tsx
|
|
30093
|
-
function
|
|
30270
|
+
function Np({ 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 }) {
|
|
30094
30271
|
let d = y();
|
|
30095
30272
|
return /* @__PURE__ */ h(ba, {
|
|
30096
30273
|
title: e,
|
|
@@ -30130,11 +30307,11 @@ function Ep({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
30130
30307
|
}
|
|
30131
30308
|
//#endregion
|
|
30132
30309
|
//#region src/SelectBuilderWorkspace.tsx
|
|
30133
|
-
function
|
|
30310
|
+
function Pp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a = !1, saveLabel: o = "Salvar", saveDisabled: s = !1, cancelTo: c, onDiscard: l, discardLabel: d = "Descartar", error: p, sections: _ = [], activeId: v, onActiveChange: b, searchable: x = !1, searchPlaceholder: S = "Buscar ajuste…", preview: C, previewLayout: w = "fill", toolbar: T, dirty: E = !1, dirtyLabel: D = "Alterações não salvas", savedLabel: O, reviewLabel: k, layout: A = "rail", panel: j, panelWidth: M, mobileTabs: N, mobileTab: P, onMobileTabChange: F, readOnly: I = !1 }) {
|
|
30134
30311
|
var L;
|
|
30135
|
-
let R = y(), z = A === "drill", [B, ee] = f(z ? null : ((L = _[0]) == null ? void 0 : L.id) ?? ""), [te, V] = f(""), [
|
|
30136
|
-
P === void 0 &&
|
|
30137
|
-
},
|
|
30312
|
+
let R = y(), z = A === "drill", [B, ee] = f(z ? null : ((L = _[0]) == null ? void 0 : L.id) ?? ""), [te, V] = f(""), [ne, re] = f("panel"), ie = P ?? ne, ae = (e) => {
|
|
30313
|
+
P === void 0 && re(e), F == null || F(e);
|
|
30314
|
+
}, G = v === void 0 ? B : v, q = z ? G == null ? void 0 : _.find((e) => e.id === G) : _.find((e) => e.id === G) ?? _[0], oe = (e) => {
|
|
30138
30315
|
v === void 0 && ee(e), b == null || b(e);
|
|
30139
30316
|
}, se = te.trim().toLowerCase(), J = u(() => {
|
|
30140
30317
|
let e = se ? _.filter((e) => (e.title + " " + (e.keywords ?? "") + " " + (e.group ?? "")).toLowerCase().includes(se)) : _, t = [];
|
|
@@ -30168,27 +30345,27 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
30168
30345
|
onChange: V,
|
|
30169
30346
|
placeholder: S
|
|
30170
30347
|
})
|
|
30171
|
-
}) : null, ue =
|
|
30348
|
+
}) : null, ue = q ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g("div", {
|
|
30172
30349
|
className: "select-bwork__panelhead",
|
|
30173
30350
|
children: [
|
|
30174
30351
|
z && /* @__PURE__ */ g("button", {
|
|
30175
30352
|
type: "button",
|
|
30176
30353
|
className: "select-bwork__backlink",
|
|
30177
30354
|
onClick: () => oe(null),
|
|
30178
|
-
children: [/* @__PURE__ */ h(
|
|
30355
|
+
children: [/* @__PURE__ */ h(W, {}), "Todas as seções"]
|
|
30179
30356
|
}),
|
|
30180
30357
|
/* @__PURE__ */ h("h2", {
|
|
30181
30358
|
className: "select-bwork__paneltitle",
|
|
30182
|
-
children:
|
|
30359
|
+
children: q.title
|
|
30183
30360
|
}),
|
|
30184
|
-
|
|
30361
|
+
q.description && /* @__PURE__ */ h("p", {
|
|
30185
30362
|
className: "select-bwork__paneldesc",
|
|
30186
|
-
children:
|
|
30363
|
+
children: q.description
|
|
30187
30364
|
})
|
|
30188
30365
|
]
|
|
30189
30366
|
}), /* @__PURE__ */ h("div", {
|
|
30190
30367
|
className: "select-bwork__panelbody",
|
|
30191
|
-
children:
|
|
30368
|
+
children: q.content
|
|
30192
30369
|
})] }) : null, de = /* @__PURE__ */ g("div", {
|
|
30193
30370
|
className: "select-bwork__seclist",
|
|
30194
30371
|
children: [
|
|
@@ -30227,7 +30404,7 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
30227
30404
|
/* @__PURE__ */ h("span", {
|
|
30228
30405
|
className: "select-bwork__secchev",
|
|
30229
30406
|
"aria-hidden": "true",
|
|
30230
|
-
children: /* @__PURE__ */ h(
|
|
30407
|
+
children: /* @__PURE__ */ h(U, {})
|
|
30231
30408
|
})
|
|
30232
30409
|
]
|
|
30233
30410
|
}, e.id))]
|
|
@@ -30246,14 +30423,14 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
30246
30423
|
}) : /* @__PURE__ */ h("div", {
|
|
30247
30424
|
className: "select-bwork__stage",
|
|
30248
30425
|
children: C
|
|
30249
|
-
}), pe = "select-bwork" + (A === "rail" ? "" : " select-bwork--split") + (N ? ` select-bwork--tabs select-bwork--tab-${
|
|
30426
|
+
}), pe = "select-bwork" + (A === "rail" ? "" : " select-bwork--split") + (N ? ` select-bwork--tabs select-bwork--tab-${ie}` : ""), me = M ? typeof M == "string" ? { "--select-bwork-left": M } : {
|
|
30250
30427
|
"--select-bwork-left": M.narrow,
|
|
30251
30428
|
"--select-bwork-left-wide": M.wide
|
|
30252
30429
|
} : void 0, he;
|
|
30253
30430
|
return he = A === "single" ? /* @__PURE__ */ h("div", {
|
|
30254
30431
|
className: "select-bwork__panelbody",
|
|
30255
30432
|
children: j
|
|
30256
|
-
}) : z && !
|
|
30433
|
+
}) : z && !q ? de : ue, /* @__PURE__ */ g("div", {
|
|
30257
30434
|
className: pe,
|
|
30258
30435
|
style: me,
|
|
30259
30436
|
children: [
|
|
@@ -30265,7 +30442,7 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
30265
30442
|
className: "select-page__back",
|
|
30266
30443
|
onClick: () => r ? r() : R(n || -1),
|
|
30267
30444
|
"aria-label": "Voltar",
|
|
30268
|
-
children: /* @__PURE__ */ h(
|
|
30445
|
+
children: /* @__PURE__ */ h(K, {})
|
|
30269
30446
|
}),
|
|
30270
30447
|
/* @__PURE__ */ g("div", {
|
|
30271
30448
|
className: "select-bwork__ident",
|
|
@@ -30285,14 +30462,14 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
30285
30462
|
className: "select-bwork__actions",
|
|
30286
30463
|
children: [
|
|
30287
30464
|
ce,
|
|
30288
|
-
I ? null : l ? E && /* @__PURE__ */ h(
|
|
30465
|
+
I ? null : l ? E && /* @__PURE__ */ h(H, {
|
|
30289
30466
|
inline: !0,
|
|
30290
30467
|
size: "sm",
|
|
30291
30468
|
variant: "secondary",
|
|
30292
30469
|
onClick: l,
|
|
30293
30470
|
disabled: a,
|
|
30294
30471
|
children: d
|
|
30295
|
-
}) : c && /* @__PURE__ */ h(
|
|
30472
|
+
}) : c && /* @__PURE__ */ h(H, {
|
|
30296
30473
|
inline: !0,
|
|
30297
30474
|
size: "sm",
|
|
30298
30475
|
variant: "secondary",
|
|
@@ -30300,7 +30477,7 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
30300
30477
|
disabled: a,
|
|
30301
30478
|
children: "Cancelar"
|
|
30302
30479
|
}),
|
|
30303
|
-
!I && /* @__PURE__ */ h(
|
|
30480
|
+
!I && /* @__PURE__ */ h(H, {
|
|
30304
30481
|
inline: !0,
|
|
30305
30482
|
size: "sm",
|
|
30306
30483
|
onClick: i,
|
|
@@ -30324,8 +30501,8 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
30324
30501
|
children: /* @__PURE__ */ h(Rr, {
|
|
30325
30502
|
fullWidth: !0,
|
|
30326
30503
|
ariaLabel: "O que ver",
|
|
30327
|
-
value:
|
|
30328
|
-
onChange: (e) =>
|
|
30504
|
+
value: ie,
|
|
30505
|
+
onChange: (e) => ae(e),
|
|
30329
30506
|
options: [{
|
|
30330
30507
|
value: "panel",
|
|
30331
30508
|
label: N[0]
|
|
@@ -30350,9 +30527,9 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
30350
30527
|
children: e.label
|
|
30351
30528
|
}), e.items.map((e) => /* @__PURE__ */ g("button", {
|
|
30352
30529
|
type: "button",
|
|
30353
|
-
className: "select-bwork__navitem" + (e.id === (
|
|
30530
|
+
className: "select-bwork__navitem" + (e.id === (q == null ? void 0 : q.id) ? " is-active" : "") + (e.tone === "critical" ? " is-critical" : ""),
|
|
30354
30531
|
onClick: () => oe(e.id),
|
|
30355
|
-
"aria-current": e.id === (
|
|
30532
|
+
"aria-current": e.id === (q == null ? void 0 : q.id) ? "true" : void 0,
|
|
30356
30533
|
children: [
|
|
30357
30534
|
e.icon && /* @__PURE__ */ h("span", {
|
|
30358
30535
|
className: "select-bwork__navicon",
|
|
@@ -30379,7 +30556,7 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
30379
30556
|
}),
|
|
30380
30557
|
/* @__PURE__ */ h("section", {
|
|
30381
30558
|
className: "select-bwork__panel",
|
|
30382
|
-
"aria-label": A === "single" ? e : (
|
|
30559
|
+
"aria-label": A === "single" ? e : (q == null ? void 0 : q.title) ?? "Seções",
|
|
30383
30560
|
children: he
|
|
30384
30561
|
}),
|
|
30385
30562
|
fe
|
|
@@ -30390,10 +30567,10 @@ function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
30390
30567
|
}
|
|
30391
30568
|
//#endregion
|
|
30392
30569
|
//#region src/SelectFlowCanvas.tsx
|
|
30393
|
-
var
|
|
30394
|
-
function
|
|
30570
|
+
var Fp = (e) => Math.round(e * 100) / 100;
|
|
30571
|
+
function Ip({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], children: a, zoom: o, defaultZoom: c = 1, onZoomChange: l, minZoom: u = .5, maxZoom: d = 1.3, onBackgroundClick: p, ariaLabel: m }) {
|
|
30395
30572
|
let _ = s().replace(/:/g, ""), [v, y] = f(c), b = o ?? v, x = (e) => {
|
|
30396
|
-
let t =
|
|
30573
|
+
let t = Fp(Math.min(d, Math.max(u, e)));
|
|
30397
30574
|
o === void 0 && y(t), l == null || l(t);
|
|
30398
30575
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
30399
30576
|
return /* @__PURE__ */ g("div", {
|
|
@@ -30509,7 +30686,7 @@ function kp({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
30509
30686
|
})]
|
|
30510
30687
|
});
|
|
30511
30688
|
}
|
|
30512
|
-
function
|
|
30689
|
+
function Lp({ 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: m = !1, muted: _ = !1, invalid: v = !1, onClick: y, ariaLabel: b }) {
|
|
30513
30690
|
let x = `${p ? " is-selected" : v ? " is-invalid" : m ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
30514
30691
|
left: e,
|
|
30515
30692
|
top: t,
|
|
@@ -30585,7 +30762,7 @@ function Ap({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
30585
30762
|
})]
|
|
30586
30763
|
});
|
|
30587
30764
|
}
|
|
30588
|
-
function
|
|
30765
|
+
function Rp({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
|
|
30589
30766
|
return /* @__PURE__ */ g("div", {
|
|
30590
30767
|
className: "select-flowpage",
|
|
30591
30768
|
children: [
|
|
@@ -30593,7 +30770,7 @@ function jp({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
30593
30770
|
className: "select-flowpage__bar",
|
|
30594
30771
|
children: [
|
|
30595
30772
|
n && /* @__PURE__ */ h(Y, {
|
|
30596
|
-
icon: /* @__PURE__ */ h(
|
|
30773
|
+
icon: /* @__PURE__ */ h(K, {}),
|
|
30597
30774
|
label: r,
|
|
30598
30775
|
variant: "outline",
|
|
30599
30776
|
onClick: n
|
|
@@ -30647,7 +30824,7 @@ function jp({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
30647
30824
|
}
|
|
30648
30825
|
//#endregion
|
|
30649
30826
|
//#region src/SelectSwitchField.tsx
|
|
30650
|
-
var
|
|
30827
|
+
var zp = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
30651
30828
|
return /* @__PURE__ */ g("div", {
|
|
30652
30829
|
ref: c,
|
|
30653
30830
|
...s,
|
|
@@ -30675,7 +30852,7 @@ var Mp = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
30675
30852
|
children: i
|
|
30676
30853
|
})]
|
|
30677
30854
|
});
|
|
30678
|
-
}),
|
|
30855
|
+
}), Bp = [
|
|
30679
30856
|
"#212529",
|
|
30680
30857
|
"#495057",
|
|
30681
30858
|
"#868E96",
|
|
@@ -30692,13 +30869,13 @@ var Mp = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
30692
30869
|
"#DB2777",
|
|
30693
30870
|
"#9333EA",
|
|
30694
30871
|
"#6D28D9"
|
|
30695
|
-
],
|
|
30696
|
-
function
|
|
30697
|
-
let t =
|
|
30872
|
+
], Vp = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
30873
|
+
function Hp(e) {
|
|
30874
|
+
let t = Vp.exec((e ?? "").trim());
|
|
30698
30875
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
30699
30876
|
}
|
|
30700
|
-
function
|
|
30701
|
-
let t =
|
|
30877
|
+
function Up(e) {
|
|
30878
|
+
let t = Hp(e);
|
|
30702
30879
|
if (!t) return 0;
|
|
30703
30880
|
let [n, r, i] = [
|
|
30704
30881
|
1,
|
|
@@ -30707,13 +30884,13 @@ function Ip(e) {
|
|
|
30707
30884
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
30708
30885
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
30709
30886
|
}
|
|
30710
|
-
function
|
|
30711
|
-
let [n, r] = [
|
|
30887
|
+
function Wp(e, t) {
|
|
30888
|
+
let [n, r] = [Up(e), Up(t)].sort((e, t) => t - e);
|
|
30712
30889
|
return (n + .05) / (r + .05);
|
|
30713
30890
|
}
|
|
30714
|
-
var
|
|
30715
|
-
function
|
|
30716
|
-
let t =
|
|
30891
|
+
var Gp = (e) => Math.min(1, Math.max(0, e));
|
|
30892
|
+
function Kp(e) {
|
|
30893
|
+
let t = Hp(e) ?? "#000000", [n, r, i] = [
|
|
30717
30894
|
1,
|
|
30718
30895
|
3,
|
|
30719
30896
|
5
|
|
@@ -30724,7 +30901,7 @@ function zp(e) {
|
|
|
30724
30901
|
v: a
|
|
30725
30902
|
};
|
|
30726
30903
|
}
|
|
30727
|
-
function
|
|
30904
|
+
function qp({ h: e, s: t, v: n }) {
|
|
30728
30905
|
let r = (r) => {
|
|
30729
30906
|
let i = (r + e / 60) % 6;
|
|
30730
30907
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -30735,26 +30912,26 @@ function Bp({ h: e, s: t, v: n }) {
|
|
|
30735
30912
|
r(1)
|
|
30736
30913
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
30737
30914
|
}
|
|
30738
|
-
function
|
|
30739
|
-
let [n, r] = f(() =>
|
|
30915
|
+
function Jp({ hex: e, onPick: t }) {
|
|
30916
|
+
let [n, r] = f(() => Kp(e ?? "#1D4ED8")), i = d(n), a = (e) => {
|
|
30740
30917
|
i.current = e, r(e);
|
|
30741
30918
|
};
|
|
30742
30919
|
o(() => {
|
|
30743
|
-
if (!e ||
|
|
30744
|
-
let t =
|
|
30920
|
+
if (!e || qp(i.current) === e) return;
|
|
30921
|
+
let t = Kp(e);
|
|
30745
30922
|
a(t.s === 0 || t.v === 0 ? {
|
|
30746
30923
|
...t,
|
|
30747
30924
|
h: i.current.h
|
|
30748
30925
|
} : t);
|
|
30749
30926
|
}, [e]);
|
|
30750
30927
|
let s = (e) => {
|
|
30751
|
-
a(e), t(
|
|
30928
|
+
a(e), t(qp(e));
|
|
30752
30929
|
}, c = (e, t, n) => {
|
|
30753
30930
|
var r;
|
|
30754
30931
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
30755
30932
|
let i = (t) => {
|
|
30756
30933
|
let r = e.getBoundingClientRect();
|
|
30757
|
-
n(
|
|
30934
|
+
n(Gp((t.clientX - r.left) / (r.width || 1)), Gp((t.clientY - r.top) / (r.height || 1)));
|
|
30758
30935
|
};
|
|
30759
30936
|
i(t);
|
|
30760
30937
|
let a = (e) => i(e), o = () => {
|
|
@@ -30764,20 +30941,20 @@ function Vp({ hex: e, onPick: t }) {
|
|
|
30764
30941
|
}, l = (e) => {
|
|
30765
30942
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, o = e.key === "ArrowLeft" ? {
|
|
30766
30943
|
h: n,
|
|
30767
|
-
s:
|
|
30944
|
+
s: Gp(r - t),
|
|
30768
30945
|
v: a
|
|
30769
30946
|
} : e.key === "ArrowRight" ? {
|
|
30770
30947
|
h: n,
|
|
30771
|
-
s:
|
|
30948
|
+
s: Gp(r + t),
|
|
30772
30949
|
v: a
|
|
30773
30950
|
} : e.key === "ArrowUp" ? {
|
|
30774
30951
|
h: n,
|
|
30775
30952
|
s: r,
|
|
30776
|
-
v:
|
|
30953
|
+
v: Gp(a + t)
|
|
30777
30954
|
} : e.key === "ArrowDown" ? {
|
|
30778
30955
|
h: n,
|
|
30779
30956
|
s: r,
|
|
30780
|
-
v:
|
|
30957
|
+
v: Gp(a - t)
|
|
30781
30958
|
} : null;
|
|
30782
30959
|
o && (e.preventDefault(), s(o));
|
|
30783
30960
|
}, u = (e) => {
|
|
@@ -30787,11 +30964,11 @@ function Vp({ hex: e, onPick: t }) {
|
|
|
30787
30964
|
s: r,
|
|
30788
30965
|
v: a
|
|
30789
30966
|
}));
|
|
30790
|
-
}, p =
|
|
30967
|
+
}, p = qp({
|
|
30791
30968
|
h: n.h,
|
|
30792
30969
|
s: 1,
|
|
30793
30970
|
v: 1
|
|
30794
|
-
}), _ =
|
|
30971
|
+
}), _ = qp(n);
|
|
30795
30972
|
return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
|
|
30796
30973
|
className: "select-colorfield__sv",
|
|
30797
30974
|
style: { backgroundColor: p },
|
|
@@ -30835,24 +31012,24 @@ function Vp({ hex: e, onPick: t }) {
|
|
|
30835
31012
|
})
|
|
30836
31013
|
})] });
|
|
30837
31014
|
}
|
|
30838
|
-
var
|
|
30839
|
-
function
|
|
31015
|
+
var Yp = (e) => e.toFixed(1).replace(".", ",");
|
|
31016
|
+
function Xp({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: c = Bp, disabled: l = !1, allowEmpty: u = !1, contrastWith: d, contrastLabel: p = "o texto", id: _ }) {
|
|
30840
31017
|
let v = s(), y = _ ?? `color-${v}`, [b, x] = f(!1), [S, C] = f(i ?? ""), [w, T] = f(null);
|
|
30841
31018
|
o(() => {
|
|
30842
31019
|
C(i ?? ""), T(null);
|
|
30843
31020
|
}, [i]);
|
|
30844
|
-
let E =
|
|
31021
|
+
let E = Hp(i ?? ""), D = (e) => {
|
|
30845
31022
|
if (!e.trim()) {
|
|
30846
31023
|
u ? (T(null), a("")) : C(i ?? "");
|
|
30847
31024
|
return;
|
|
30848
31025
|
}
|
|
30849
|
-
let t =
|
|
31026
|
+
let t = Hp(e);
|
|
30850
31027
|
if (!t) {
|
|
30851
31028
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
30852
31029
|
return;
|
|
30853
31030
|
}
|
|
30854
31031
|
T(null), C(t), t !== E && a(t);
|
|
30855
|
-
}, O = d ?
|
|
31032
|
+
}, O = d ? Hp(d) : null, k = E && O ? Wp(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
|
|
30856
31033
|
return /* @__PURE__ */ g("div", {
|
|
30857
31034
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
30858
31035
|
children: [
|
|
@@ -30880,7 +31057,7 @@ function Up({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
30880
31057
|
children: /* @__PURE__ */ g("div", {
|
|
30881
31058
|
className: "select-colorfield__panel",
|
|
30882
31059
|
children: [
|
|
30883
|
-
/* @__PURE__ */ h(
|
|
31060
|
+
/* @__PURE__ */ h(Jp, {
|
|
30884
31061
|
hex: E,
|
|
30885
31062
|
onPick: D
|
|
30886
31063
|
}),
|
|
@@ -30889,7 +31066,7 @@ function Up({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
30889
31066
|
role: "group",
|
|
30890
31067
|
"aria-label": "Cores prontas",
|
|
30891
31068
|
children: c.map((e) => {
|
|
30892
|
-
let t =
|
|
31069
|
+
let t = Hp(e) ?? e, n = t === E;
|
|
30893
31070
|
return /* @__PURE__ */ h("button", {
|
|
30894
31071
|
type: "button",
|
|
30895
31072
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -30920,7 +31097,7 @@ function Up({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
30920
31097
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
30921
31098
|
value: S,
|
|
30922
31099
|
onChange: (e) => {
|
|
30923
|
-
C(e.target.value), e.target.value.replace("#", "").length === 6 &&
|
|
31100
|
+
C(e.target.value), e.target.value.replace("#", "").length === 6 && Hp(e.target.value) && D(e.target.value);
|
|
30924
31101
|
},
|
|
30925
31102
|
onBlur: () => D(S),
|
|
30926
31103
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -30943,14 +31120,14 @@ function Up({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
30943
31120
|
}) : null : /* @__PURE__ */ g("p", {
|
|
30944
31121
|
id: `${y}-hint`,
|
|
30945
31122
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
30946
|
-
children: [k >= 4.5 ? `Contraste com ${p}: ${
|
|
31123
|
+
children: [k >= 4.5 ? `Contraste com ${p}: ${Yp(k)}:1 — legível.` : `Contraste com ${p}: ${Yp(k)}:1 — difícil de ler. Escolha uma cor ${Up(E) < Up(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ g(m, { children: [" ", n] }) : null]
|
|
30947
31124
|
})
|
|
30948
31125
|
]
|
|
30949
31126
|
});
|
|
30950
31127
|
}
|
|
30951
31128
|
//#endregion
|
|
30952
31129
|
//#region src/SelectProgressBar.tsx
|
|
30953
|
-
var
|
|
31130
|
+
var Zp = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "md", label: i, valueLabel: a, caption: o, indeterminate: s = !1, ariaLabel: c, loading: l = !1, className: u, ...d }, f) {
|
|
30954
31131
|
if (l) return /* @__PURE__ */ g("div", {
|
|
30955
31132
|
ref: f,
|
|
30956
31133
|
...d,
|
|
@@ -30995,7 +31172,7 @@ var Wp = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
30995
31172
|
})
|
|
30996
31173
|
]
|
|
30997
31174
|
});
|
|
30998
|
-
}),
|
|
31175
|
+
}), Qp = r(function({ icon: e, media: t, accent: n, title: r, description: i, badge: a, meta: o, cta: s, to: c, onClick: l, selected: u, disabled: d = !1, className: f, ...p }, _) {
|
|
30999
31176
|
let y = `select-choicecard${u ? " is-selected" : ""}${d ? " is-disabled" : ""}${f ? " " + f : ""}`, b = n ? { "--select-choice-accent": n } : void 0, x = /* @__PURE__ */ g(m, { children: [
|
|
31000
31177
|
t == null ? /* @__PURE__ */ g("span", {
|
|
31001
31178
|
className: "select-choicecard__top",
|
|
@@ -31063,7 +31240,7 @@ var Wp = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
31063
31240
|
children: x
|
|
31064
31241
|
});
|
|
31065
31242
|
});
|
|
31066
|
-
function
|
|
31243
|
+
function $p({ badge: e = !0 }) {
|
|
31067
31244
|
return /* @__PURE__ */ g("div", {
|
|
31068
31245
|
className: "select-choicecard select-choicecard--skeleton",
|
|
31069
31246
|
"aria-hidden": "true",
|
|
@@ -31084,7 +31261,7 @@ function Kp({ badge: e = !0 }) {
|
|
|
31084
31261
|
]
|
|
31085
31262
|
});
|
|
31086
31263
|
}
|
|
31087
|
-
var
|
|
31264
|
+
var em = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, listOnPhone: i = !1, className: a, style: o, ...s }, c) {
|
|
31088
31265
|
return /* @__PURE__ */ h("div", {
|
|
31089
31266
|
ref: c,
|
|
31090
31267
|
...s,
|
|
@@ -31094,16 +31271,16 @@ var qp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
31094
31271
|
"--select-choice-min": t,
|
|
31095
31272
|
...o
|
|
31096
31273
|
},
|
|
31097
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ h(
|
|
31274
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ h($p, {}, t)) : e
|
|
31098
31275
|
});
|
|
31099
|
-
}),
|
|
31276
|
+
}), tm = 960, nm = Math.round(tm * 210 / 297), rm = r(function({ side: e = "front", accent: t, courseTitle: n, subtitle: r, memberName: i = "Nome do aluno", body: a, signatures: s = [], issuedAt: c, verificationCode: l, eyebrow: u, className: p }, _) {
|
|
31100
31277
|
let v = d(null), [y, b] = f(.5);
|
|
31101
31278
|
o(() => {
|
|
31102
31279
|
let e = v.current;
|
|
31103
31280
|
if (!e) return;
|
|
31104
31281
|
let t = () => {
|
|
31105
31282
|
let t = e.clientWidth;
|
|
31106
|
-
t > 0 && b(Math.min(1, t /
|
|
31283
|
+
t > 0 && b(Math.min(1, t / tm));
|
|
31107
31284
|
};
|
|
31108
31285
|
if (t(), typeof ResizeObserver > "u") return;
|
|
31109
31286
|
let n = new ResizeObserver(t);
|
|
@@ -31111,7 +31288,7 @@ var qp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
31111
31288
|
}, []);
|
|
31112
31289
|
let x = e === "front", S = {
|
|
31113
31290
|
"--select-cert-accent": t || void 0,
|
|
31114
|
-
height:
|
|
31291
|
+
height: nm * y + 2
|
|
31115
31292
|
};
|
|
31116
31293
|
return /* @__PURE__ */ h("div", {
|
|
31117
31294
|
ref: (e) => {
|
|
@@ -31124,8 +31301,8 @@ var qp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
31124
31301
|
children: /* @__PURE__ */ h("div", {
|
|
31125
31302
|
className: "select-certpreview__sheet",
|
|
31126
31303
|
style: {
|
|
31127
|
-
width:
|
|
31128
|
-
height:
|
|
31304
|
+
width: tm,
|
|
31305
|
+
height: nm,
|
|
31129
31306
|
transform: `scale(${y})`
|
|
31130
31307
|
},
|
|
31131
31308
|
children: /* @__PURE__ */ g("div", {
|
|
@@ -31198,13 +31375,13 @@ var qp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
31198
31375
|
});
|
|
31199
31376
|
//#endregion
|
|
31200
31377
|
//#region src/SelectImageField.tsx
|
|
31201
|
-
function
|
|
31378
|
+
function im(e) {
|
|
31202
31379
|
return new Promise((t, n) => {
|
|
31203
31380
|
let r = new FileReader();
|
|
31204
31381
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
31205
31382
|
});
|
|
31206
31383
|
}
|
|
31207
|
-
var
|
|
31384
|
+
var am = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
|
|
31208
31385
|
let [d, p] = f([]), [m, _] = f(null), v = t ? [t] : [], y = async (e) => {
|
|
31209
31386
|
let t = e[0];
|
|
31210
31387
|
if (!t) {
|
|
@@ -31212,7 +31389,7 @@ var Qp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
31212
31389
|
return;
|
|
31213
31390
|
}
|
|
31214
31391
|
if (_(null), !s) {
|
|
31215
|
-
n(await
|
|
31392
|
+
n(await im(t)), p([]);
|
|
31216
31393
|
return;
|
|
31217
31394
|
}
|
|
31218
31395
|
p([t]);
|
|
@@ -31244,7 +31421,7 @@ var Qp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
31244
31421
|
children: m
|
|
31245
31422
|
})]
|
|
31246
31423
|
});
|
|
31247
|
-
}),
|
|
31424
|
+
}), om = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
31248
31425
|
let [o, s] = f(() => new Set(n)), c = (e) => s((n) => {
|
|
31249
31426
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
31250
31427
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -31270,7 +31447,7 @@ var Qp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
31270
31447
|
}), /* @__PURE__ */ h("span", {
|
|
31271
31448
|
className: `select-accordion__chevron${t ? " is-open" : ""}`,
|
|
31272
31449
|
"aria-hidden": "true",
|
|
31273
|
-
children: /* @__PURE__ */ h(
|
|
31450
|
+
children: /* @__PURE__ */ h(G, {})
|
|
31274
31451
|
})]
|
|
31275
31452
|
}), /* @__PURE__ */ h("div", {
|
|
31276
31453
|
id: `select-acc-${e.id}`,
|
|
@@ -31290,6 +31467,6 @@ var Qp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
31290
31467
|
});
|
|
31291
31468
|
});
|
|
31292
31469
|
//#endregion
|
|
31293
|
-
export { w as AUTH_FX_VARIANTS, Le as AppleIcon, vt as AppsIcon, sn as ArchiveIcon,
|
|
31470
|
+
export { w as AUTH_FX_VARIANTS, Le as AppleIcon, vt as AppsIcon, sn as ArchiveIcon, K as ArrowLeftIcon, ze as ArrowRightIcon, qt as ArrowUpRightIcon, Ge as AtIcon, Pe as AuthAppIcon, Et as AwardIcon, Jt as BagIcon, ot as BankIcon, Ce as BellIcon, wt as BookIcon, pe as BookmarkIcon, pt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, Wt as CameraIcon, bt as CartIcon, gt as ChartLineIcon, Nt as ChatIcon, We as CheckCircleIcon, Ve as CheckIcon, G as ChevronDownIcon, W as ChevronLeftIcon, U as ChevronRightIcon, it as ChevronUpIcon, gn as ClearFormatIcon, lt as ClipboardIcon, fe as ClockIcon, Lt as CloseCircleIcon, le as CloseIcon, J as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, Ut as DatabaseIcon, dt as DiscountIcon, zt as DocumentTextIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, ce as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, Tt as FileDownloadIcon, q as FilterIcon, Ft as FlagIcon, Rt as FlashIcon, Zt as GiftIcon, ae as GithubIcon, _e as GlobeIcon, ie as GoogleIcon, tn as GripIcon, Qt as HeadsetIcon, be as HelpIcon, Xe as HomeIcon, Gt as IdCardIcon, en as ImageIcon, ye as InfoIcon, Je as KeyIcon, Ht as LampIcon, Yt as LayoutIcon, Bt as LinceIcon, ht as LinkIcon, pn as ListBulletIcon, mn as ListNumberIcon, It as LocationIcon, nt as LockIcon, Fe as MailIcon, cn as MailUnreadIcon, xt as MenuIcon, yt as MinusCircleIcon, Ae as MobileIcon, ct as MoneyReceiveIcon, st as MoneySendIcon, ke as MonitorIcon, Oe as MoonIcon, ut as NoteIcon, Ot as PaletteIcon, an as PaperclipIcon, Re as PasskeyIcon, At as PauseIcon, Ne as PhoneIcon, me as PinIcon, Ct as PlayCircleIcon, Me as PlusIcon, Mt as ReceiptIcon, je as RefreshIcon, jt as RefundIcon, rn as ReplyAllIcon, nn as ReplyIcon, Te as RocketIcon, Od as SELECT_BR_UF_TILES, ti as SELECT_CARD_BRANDS, Bp as SELECT_COLOR_PRESETS, vc as SELECT_COL_DATETIME, yc as SELECT_COL_ID, Pr as SELECT_COUNTRIES, Cp as SELECT_DAILY_PRESETS, bp as SELECT_DATE_PRESETS, Wr as SELECT_SPACE, Vc as SELECT_TOKEN_PATTERN, Br as SELECT_TRANSACTION_STATUS, oe as SearchIcon, om as SelectAccordion, Do as SelectActionCard, Hr as SelectActionList, Ur as SelectActionMenu, qn as SelectAddButton, Mc as SelectAddCard, Rn as SelectAlert, Oo as SelectAppTile, ku as SelectAssistant, ne as SelectAuthFx, $i as SelectAvatar, la as SelectBackLink, zr as SelectBadge, ru as SelectBalanceCard, vr as SelectBankAccountField, $u as SelectBarChart, Qr as SelectBox, Kd as SelectBoxPlot, ya as SelectBreadcrumb, Np as SelectBuilderLayout, Pp as SelectBuilderWorkspace, zd as SelectBullet, vf as SelectBump, H as SelectButton, fs as SelectCalendar, Jd as SelectCalendarHeatmap, Gd as SelectCandlestick, re as SelectCard, Nc as SelectCardGrid, rm as SelectCertificatePreview, Iu as SelectChartCard, ud as SelectChartLegend, Au as SelectChatMessage, ju as SelectChatTurn, Mu as SelectChatTyping, En as SelectCheckbox, na as SelectChipInput, Qp as SelectChoiceCard, $p as SelectChoiceCardSkeleton, em as SelectChoiceGrid, rf as SelectChord, Tf as SelectCirclePack, wo as SelectCodeBlock, Eo as SelectCollapsible, Xp as SelectColorField, ld as SelectColumnChart, ad as SelectComboChart, mr as SelectCombobox, gc as SelectConfirmModal, tc as SelectConversation, ic as SelectConversationBubble, nc as SelectConversationDay, rc as SelectConversationEvent, So as SelectCopyRow, To as SelectCopyableId, ko as SelectCreateTile, jc as SelectDataTable, Il as SelectDateField, Tp as SelectDatePicker, Ap as SelectDateRangeField, Lf as SelectDetailList, Rf as SelectDetailRow, Yc as SelectDeviceFrame, hi as SelectDisclosureButton, Qi as SelectDivider, In as SelectDocumentField, od as SelectDonut, C as SelectDotField, zc as SelectDragHandle, Bc as SelectDragPreview, Zd as SelectDumbbell, Fc as SelectFactList, iu as SelectFeeBreakdown, Tn as SelectField, hr as SelectFieldGrid, Kn as SelectFileDropzone, zn as SelectFileTile, Vl as SelectFilterBar, xo as SelectFilterChip, Ip as SelectFlowCanvas, Rp as SelectFlowLayout, Lp as SelectFlowNode, Ca as SelectFormLayout, _c as SelectFormModal, bd as SelectFunnel, Td as SelectGauge, $d as SelectGaugeBands, pf as SelectGlobe, Yr as SelectGrid, Ed as SelectHeatmap, af as SelectHexbin, _l as SelectHideMoneyToggle, Id as SelectHorizontalBar, gs as SelectHtmlFrame, Sf as SelectIcicle, Ma as SelectIcon, Y as SelectIconButton, $c as SelectIconPicker, hd as SelectIconTile, aa as SelectIdentityFooter, am as SelectImageField, tr as SelectImageGalleryField, Yn as SelectImageUploadField, Jn as SelectImageUrlsField, op as SelectImageZoomModal, ys as SelectInbox, bs as SelectInboxBanner, Cs as SelectInboxEmpty, xs as SelectInboxToolbar, xn as SelectInfoTip, Jr as SelectInline, Tu as SelectInsight, Eu as SelectInsightList, Du as SelectInsightRow, pd as SelectJourney, qi as SelectJsonViewer, No as SelectKanban, Po as SelectKanbanCard, Mf as SelectKbd, dp as SelectKeyValueEditor, au as SelectKpiCard, Sn as SelectLabelRow, Lc as SelectLayoutThumb, Ls as SelectLeadChip, rd as SelectLineChart, Zi as SelectLinkButton, np as SelectListCard, ip as SelectListLabel, rp as SelectListRow, va as SelectLoader, Us as SelectMailAttachButton, Is as SelectMailAttachment, zs as SelectMailComposer, Ws as SelectMailComposerAttachments, Hs as SelectMailComposerBody, Ks as SelectMailComposerFooter, Vs as SelectMailComposerInput, Bs as SelectMailComposerRow, fc as SelectMailEditor, ws as SelectMailList, Ts as SelectMailListGroup, Es as SelectMailListItem, Os as SelectMailListNote, Ds as SelectMailListSkeleton, As as SelectMailMessage, js as SelectMailNotice, Zc as SelectMailPreview, ks as SelectMailReader, Gs as SelectMailUpload, Ss as SelectMailboxStatus, Qd as SelectMarimekko, Sl as SelectMarkStack, cp as SelectMediaCell, za as SelectMenu, Ga as SelectMenuButton, Wa as SelectMenuDivider, Ua as SelectMenuHeading, Va as SelectMenuItem, Ha as SelectMenuLink, Xc as SelectMessageBubble, gl as SelectMetricDelta, vd as SelectMiniStats, mc as SelectModal, ml as SelectMoney, Mn as SelectMoneyField, Ef as SelectNetwork, Na as SelectNote, jp as SelectNumberField, Fu as SelectNumberedItem, Pu as SelectNumberedList, vl as SelectOfferPrice, lp as SelectOfflineModal, ra as SelectOptionList, ia as SelectOptionRow, oa as SelectOtpInput, ba as SelectPage, ro as SelectPagination, Ia as SelectPanel, yf as SelectParallel, hf as SelectPareto, _a as SelectPasswordStrength, di as SelectPaymentBrand, yd as SelectPaymentCard, Ir as SelectPhoneField, md as SelectPips, tp as SelectPlanCard, Yd as SelectPolarArea, fr as SelectPopover, nu as SelectPreviewFrame, qc as SelectPreviewStage, Zp as SelectProgressBar, kd as SelectProgressList, _f as SelectPyramid, Ud as SelectRadar, jd as SelectRadialBar, Lr as SelectRadioGroup, qd as SelectRangeBar, bl as SelectRating, xl as SelectRatingQuote, Xs as SelectRecipientInput, Pc as SelectRecordCard, Mp as SelectRepeatingFieldArray, da as SelectResendButton, pa as SelectRetryStatus, fd as SelectRing, hc as SelectRowActions, Wd as SelectSankey, Hd as SelectScatter, $a as SelectSearchInput, Of as SelectSearchMenu, Af as SelectSearchMenuGroup, jf as SelectSearchMenuOption, La as SelectSection, Rr as SelectSegmented, nr as SelectSelect, pl as SelectSensitiveValue, Pa as SelectSettingList, Fa as SelectSettingRow, Wf as SelectSetupGuide, Gf as SelectSetupNext, dd as SelectShareBar, Qa as SelectSideNav, Aa as SelectSkeleton, Xd as SelectSlope, Rc as SelectSortableItem, Zu as SelectSparkline, nl as SelectSplitChain, gd as SelectSpotlight, qr as SelectStack, id as SelectStackedArea, Vr as SelectStatusBadge, zf as SelectSteps, ef as SelectStreamGraph, tf as SelectSunburst, Ul as SelectSurface, yr as SelectSwitch, zp as SelectSwitchField, po as SelectTable, yo as SelectTableCell, bo as SelectTableEmpty, go as SelectTableRow, Ra as SelectTabs, Hl as SelectTagSelect, _d as SelectTaskCard, Zs as SelectTemplateMenu, $r as SelectText, Dn as SelectTextarea, Ff as SelectThemeSwitcher, ap as SelectThumbnail, mf as SelectTicker, Dd as SelectTileMap, Xi as SelectTimeline, Zl as SelectToastProvider, br as SelectToggleList, Sr as SelectTogglePanel, xr as SelectToggleRow, Kc as SelectTokenTextarea, bn as SelectTooltip, ep as SelectTour, Cf as SelectTree, Vd as SelectTreemap, On as SelectUnitInput, ho as SelectUserCell, dl as SelectValueVisibilityProvider, wf as SelectVenn, nf as SelectViolin, gf as SelectWaffle, Ld as SelectWaterfall, of as SelectWordCloud, Ao as SelectWorkspaceSwitcher, sp as SelectZoomThumbnail, ve as SelectorIcon, tt as SendIcon, de as Setting4Icon, Ze as SettingsIcon, Be as ShieldIcon, Kt as ShieldTickIcon, on as SidebarIcon, Pt as SparkleIcon, ge as SplitIcon, he as StarIcon, _t as StoreIcon, St as StorefrontIcon, De as SunIcon, Xt as TargetIcon, we as TerminalIcon, ln as TextBoldIcon, un as TextItalicIcon, hn as TextQuoteIcon, fn as TextStrikeIcon, dn as TextUnderlineIcon, ft as TicketDiscountIcon, Ye as TrashIcon, Vt as TrendUpIcon, mt as TruckIcon, se as UploadIcon, Se as UserIcon, Dt as UsersIcon, Qe as WalletIcon, xe as WarningIcon, Ke as Web3Icon, $t as WhatsAppIcon, Ps as attachmentExt, ea as avatarInitials, es as calendarRange, Qo as calendarToday, Wp as contrastRatio, ur as detectSelectTheme, Fr as dialCodeOf, fu as formatInsightImpact, ua as formatResendWait, Zn as galleryItemFromFile, Qn as galleryItemFromUrl, Kp as hexToHsv, qp as hsvToHex, Ys as isMailAddress, sc as mailLinkHref, _s as mailName, oc as mailTextToHtml, Hp as normalizeHex, ga as passwordScore, Co as prettyCode, Gc as readTokenText, Pf as resolveSelectTheme, ii as selectCardBrand, ai as selectCardBrandLabel, kc as useSelectPageSize, Ql as useSelectToast, fl as useSelectValueVisibility };
|
|
31294
31471
|
|
|
31295
31472
|
//# sourceMappingURL=index.js.map
|