@selectwin/kit 0.1.122 → 0.1.124
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/SelectLayout.d.ts +7 -1
- package/dist/SelectListCard.d.ts +5 -0
- package/dist/SelectMiniStats.d.ts +2 -0
- package/dist/SelectProgressList.d.ts +7 -1
- package/dist/SelectSpotlight.d.ts +1 -1
- package/dist/SelectTable.d.ts +2 -0
- package/dist/chartTip.d.ts +11 -0
- package/dist/index.js +494 -463
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -110,19 +110,19 @@ function S({ className: e, theme: t, glowTarget: n }) {
|
|
|
110
110
|
}
|
|
111
111
|
o.shadowBlur = 0, L(r, i, _, v, S);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function ne(e) {
|
|
114
114
|
j = e.clientX - E, M = e.clientY - D, N = f.ticker.time;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function R() {
|
|
117
117
|
let e = a.getBoundingClientRect();
|
|
118
118
|
E = e.left, D = e.top;
|
|
119
119
|
}
|
|
120
120
|
I();
|
|
121
|
-
let
|
|
121
|
+
let z = new ResizeObserver(() => {
|
|
122
122
|
I(), s && ee();
|
|
123
123
|
});
|
|
124
|
-
return
|
|
125
|
-
f.ticker.remove(te), f.killTweensOf(A), window.removeEventListener("pointermove",
|
|
124
|
+
return z.observe(a), s ? (ee(), () => z.disconnect()) : (window.addEventListener("pointermove", ne, { passive: !0 }), window.addEventListener("scroll", R, { passive: !0 }), f.ticker.add(te), () => {
|
|
125
|
+
f.ticker.remove(te), f.killTweensOf(A), window.removeEventListener("pointermove", ne), window.removeEventListener("scroll", R), z.disconnect(), O == null || O.style.removeProperty("--select-card-glow");
|
|
126
126
|
});
|
|
127
127
|
}, [t, n]), /* @__PURE__ */ m("canvas", {
|
|
128
128
|
ref: r,
|
|
@@ -459,7 +459,7 @@ var k = (e) => {
|
|
|
459
459
|
}, I = (e) => e <= 0 ? 0 : e >= 1 ? 255 : e * 255 | 0, L = (() => {
|
|
460
460
|
let e = /* @__PURE__ */ new Uint32Array(1);
|
|
461
461
|
return e[0] = 1, new Uint8Array(e.buffer)[0] === 1;
|
|
462
|
-
})(), ee = L ? 0 : 24, te = L ? 8 : 16,
|
|
462
|
+
})(), ee = L ? 0 : 24, te = L ? 8 : 16, ne = L ? 16 : 8, R = L ? 24 : 0, z = {
|
|
463
463
|
dots: k,
|
|
464
464
|
plexus: A,
|
|
465
465
|
grid: j,
|
|
@@ -501,13 +501,13 @@ var k = (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, L = 0,
|
|
505
|
-
function
|
|
504
|
+
], E = T[0], D = null, O = null, k = null, A = null, j = /* @__PURE__ */ new Float32Array(), M = 0, N = 0, L = 0, z = 0, B = 0, V = 0;
|
|
505
|
+
function H() {
|
|
506
506
|
let t = Math.max(e.w(), 1), n = Math.max(e.h(), 1);
|
|
507
|
-
L = (t * Math.abs(m) + n * Math.abs(h)) / 2,
|
|
507
|
+
L = (t * Math.abs(m) + n * Math.abs(h)) / 2, z = (t * Math.abs(h) + n * Math.abs(m)) / 2, B = Math.min(1, Math.sqrt(42e4 / (4 * L * z))), M = Math.max(2, Math.round(2 * L * B)), N = Math.max(2, Math.round(2 * z * B)), V = Math.min(2.6, Math.max(.7, .62 / B)), D || (D = document.createElement("canvas")), D.width = M, D.height = N, O = D.getContext("2d"), k = (O == null ? void 0 : O.createImageData(M, N)) ?? null, A = k ? new Uint32Array(k.data.buffer) : null, j = new Float32Array(M);
|
|
508
508
|
}
|
|
509
|
-
let
|
|
510
|
-
let o = e *
|
|
509
|
+
let re = 1, ie = 0, U = 0, W = 0, G = 0, K = 1, q = 0, ae = 0, oe = 0, se = 0, J = F.TENSION, ce = (e, t, r, i, a) => {
|
|
510
|
+
let o = e * re + t * ie, s = -e * ie + t * re - U, c = r * re + i * ie, l = -r * ie + i * re;
|
|
511
511
|
l < 0 && (c = -c, l = -l);
|
|
512
512
|
let f = F.CAM - s;
|
|
513
513
|
if (f < n) {
|
|
@@ -516,7 +516,7 @@ var k = (e) => {
|
|
|
516
516
|
}
|
|
517
517
|
let g = (f - n) * .5263157894736842;
|
|
518
518
|
g > 1 && (g = 1);
|
|
519
|
-
let y = g * g * (3 - 2 * g), b = o * F.FOCAL / f * se + M * .5, x = -o, S = -
|
|
519
|
+
let y = g * g * (3 - 2 * g), b = o * F.FOCAL / f * se + M * .5, x = -o, S = -W, C = f, w = 1 / Math.sqrt(x * x + S * S + C * C);
|
|
520
520
|
x *= w, S *= w, C *= w;
|
|
521
521
|
let T = c * x + l * C;
|
|
522
522
|
T < 0 && (T = 0);
|
|
@@ -526,10 +526,10 @@ var k = (e) => {
|
|
|
526
526
|
I < 0 && (I = 0);
|
|
527
527
|
let L = I * I, ee = L * L, te = ee * ee * ee;
|
|
528
528
|
A = v[0] + x, j = v[1] + S, N = v[2] + C, P = 1 / Math.sqrt(A * A + j * j + N * N), I = (c * A + l * N) * P, I < 0 && (I = 0);
|
|
529
|
-
let
|
|
530
|
-
|
|
531
|
-
let
|
|
532
|
-
G > 1 && (G = 1), E.lift[q] = G, E.a[q] = (u + d * k + p *
|
|
529
|
+
let ne = I * I, R = ne * ne, z = R * R, B = (-(-x + 2 * T * c) * h - S * m + .2) * .8333333333333334;
|
|
530
|
+
B < 0 ? B = 0 : B > 1 && (B = 1);
|
|
531
|
+
let V = B * B * (3 - 2 * B), H = te * .9 + z * .45, G = k * .55 + H;
|
|
532
|
+
G > 1 && (G = 1), E.lift[q] = G, E.a[q] = (u + d * k + p * H + V * .06) * a * K * y, E.x[q] = b, E.z[q] = s, b < ae && (ae = b), b > oe && (oe = b), q++;
|
|
533
533
|
}, le = (e, t) => {
|
|
534
534
|
let n = e * G, 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++) {
|
|
@@ -538,12 +538,12 @@ var k = (e) => {
|
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
function ue(t, n, r) {
|
|
541
|
-
let i = Math.max(e.h(), 1), a = r * F.TWIST_SPEED * .15, o = r * F.TWIST_SPEED * .2, s = -((t + .5) / N * 2 *
|
|
542
|
-
|
|
543
|
-
for (let e = 0; e < 2; e++)
|
|
544
|
-
|
|
545
|
-
let c =
|
|
546
|
-
|
|
541
|
+
let i = Math.max(e.h(), 1), a = r * F.TWIST_SPEED * .15, o = r * F.TWIST_SPEED * .2, s = -((t + .5) / N * 2 * z - z) / (i * F.ZOOM);
|
|
542
|
+
W = s * F.CAM / F.FOCAL;
|
|
543
|
+
for (let e = 0; e < 2; e++) W = s * (F.CAM + Math.sin(W * 1.2 + a) * F.BILLOW) / F.FOCAL;
|
|
544
|
+
U = Math.sin(W * 1.2 + a) * F.BILLOW;
|
|
545
|
+
let c = W < 0 ? -W : W, l = P(7, 1, c), u = W * S.twist * P(8, 0, c) - o;
|
|
546
|
+
re = Math.cos(u), ie = Math.sin(u), G = F.WIDTH * l, K = P(.06, .46, re < 0 ? -re : re) * P(0, .06, l), E = n, q = 0, ae = 1e9, oe = -1e9, le(-1, !0);
|
|
547
547
|
let d = 2 * G / 107, f = Math.cos(d), p = Math.sin(d), m = Math.cos(-G), h = Math.sin(-G);
|
|
548
548
|
for (let e = 0; e < 108; e++) {
|
|
549
549
|
let t = 1 / Math.sqrt(J * J * m * m + 1);
|
|
@@ -561,9 +561,9 @@ var k = (e) => {
|
|
|
561
561
|
let v = Math.floor(m), y = Math.ceil(g);
|
|
562
562
|
if (y < 0 || v > M - 1) return;
|
|
563
563
|
v < 0 && (v = 0), y > M - 1 && (y = M - 1), j.fill(-1e9, v, y + 1);
|
|
564
|
-
let b = e * M, x = f * f, S = x * f, C = -.5 * S + x - .5 * f, w = 1.5 * S - 2.5 * x + 1, T = -1.5 * S + 2 * x + .5 * f, E = .5 * S - .5 * x, D = n.x, O = r.x, k = u.x, N = d.x, P = n.z, F = r.z, L = u.z,
|
|
564
|
+
let b = e * M, x = f * f, S = x * f, C = -.5 * S + x - .5 * f, w = 1.5 * S - 2.5 * x + 1, T = -1.5 * S + 2 * x + .5 * f, E = .5 * S - .5 * x, D = n.x, O = r.x, k = u.x, N = d.x, P = n.z, F = r.z, L = u.z, z = d.z, B = n.lift, V = r.lift, H = u.lift, re = d.lift, ie = n.a, U = r.a, W = u.a, G = d.a, K = C * D[0] + w * O[0] + T * k[0] + E * N[0], q = C * P[0] + w * F[0] + T * L[0] + E * z[0], ae = C * B[0] + w * V[0] + T * H[0] + E * re[0], oe = C * ie[0] + w * U[0] + T * W[0] + E * G[0];
|
|
565
565
|
for (let e = 1; e < 136; e++) {
|
|
566
|
-
let t = C * D[e] + w * O[e] + T * k[e] + E * N[e], n = C * P[e] + w * F[e] + T * L[e] + E *
|
|
566
|
+
let t = C * D[e] + w * O[e] + T * k[e] + E * N[e], n = C * P[e] + w * F[e] + T * L[e] + E * z[e], r = C * B[e] + w * V[e] + T * H[e] + E * re[e], u = C * ie[e] + w * U[e] + T * W[e] + E * G[e];
|
|
567
567
|
if (!Number.isNaN(K) && !Number.isNaN(t)) {
|
|
568
568
|
let e = Math.max(v, Math.ceil((K < t ? K : t) - .5)), d = Math.min(y, Math.floor((K > t ? K : t) - .5));
|
|
569
569
|
if (d < e) {
|
|
@@ -579,34 +579,34 @@ var k = (e) => {
|
|
|
579
579
|
if (n <= j[t]) continue;
|
|
580
580
|
j[t] = n;
|
|
581
581
|
let r = ae + g * e;
|
|
582
|
-
p[b + t] = I(i + s * r) << ee | I(a + c * r) << te | I(o + l * r) <<
|
|
582
|
+
p[b + t] = I(i + s * r) << ee | I(a + c * r) << te | I(o + l * r) << ne | I(oe + _ * e) << R;
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
K = t, q = n, ae = r, oe = u;
|
|
587
587
|
}
|
|
588
588
|
let se = -1, J = -1;
|
|
589
|
-
for (let e = v; e <= y; e++) if ((p[b + e] >>>
|
|
589
|
+
for (let e = v; e <= y; e++) if ((p[b + e] >>> R & 255) > 0) {
|
|
590
590
|
se = e;
|
|
591
591
|
break;
|
|
592
592
|
}
|
|
593
593
|
if (se < 0) return;
|
|
594
|
-
for (let e = y; e >= se; e--) if ((p[b + e] >>>
|
|
594
|
+
for (let e = y; e >= se; e--) if ((p[b + e] >>> R & 255) > 0) {
|
|
595
595
|
J = e;
|
|
596
596
|
break;
|
|
597
597
|
}
|
|
598
598
|
if (J - se <= 2 * t.length) return;
|
|
599
|
-
let ce = ~(255 <<
|
|
599
|
+
let ce = ~(255 << R);
|
|
600
600
|
for (let e = 0; e < t.length; e++) {
|
|
601
601
|
let n = t[e], r = b + se + e, i = p[r];
|
|
602
|
-
p[r] = i & ce | ((i >>>
|
|
602
|
+
p[r] = i & ce | ((i >>> R & 255) * n | 0) << R;
|
|
603
603
|
let a = b + J - e, o = p[a];
|
|
604
|
-
p[a] = o & ce | ((o >>>
|
|
604
|
+
p[a] = o & ce | ((o >>> R & 255) * n | 0) << R;
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
function fe(t) {
|
|
608
608
|
if (!k || !O || !A) return;
|
|
609
|
-
A.fill(0), J = S.tension, se = F.ZOOM * Math.max(e.h(), 1) *
|
|
609
|
+
A.fill(0), J = S.tension, se = F.ZOOM * Math.max(e.h(), 1) * B;
|
|
610
610
|
let n = Math.max(1, Math.ceil((N - 1) / 3)), r = (e) => Math.min(e * 3, N - 1), i = 0;
|
|
611
611
|
ue(r(0), T[0], t);
|
|
612
612
|
let a = 0, o = r(0), s = r(1);
|
|
@@ -621,10 +621,10 @@ var k = (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(F.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(F.ROT), n.imageSmoothingEnabled = !0, n.imageSmoothingQuality = "high", n.filter = `blur(${V.toFixed(2)}px)`, n.drawImage(D, -L, -z, 2 * L, 2 * z), n.restore());
|
|
625
625
|
}
|
|
626
626
|
return {
|
|
627
|
-
build:
|
|
627
|
+
build: H,
|
|
628
628
|
interactive: !1,
|
|
629
629
|
frame(t) {
|
|
630
630
|
C || (C = f.timeline({
|
|
@@ -648,7 +648,7 @@ var k = (e) => {
|
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
650
|
};
|
|
651
|
-
function
|
|
651
|
+
function B({ className: e, theme: t, glowTarget: n, variant: r }) {
|
|
652
652
|
let i = u(null);
|
|
653
653
|
return o(() => {
|
|
654
654
|
var e, a;
|
|
@@ -708,7 +708,7 @@ function V({ className: e, theme: t, glowTarget: n, variant: r }) {
|
|
|
708
708
|
pointer: x,
|
|
709
709
|
cardGlow: A,
|
|
710
710
|
clearGlow: j
|
|
711
|
-
}, N =
|
|
711
|
+
}, N = z[r](M), P = N.interactive !== !1;
|
|
712
712
|
function F() {
|
|
713
713
|
let e = o.getBoundingClientRect();
|
|
714
714
|
g = e.left, _ = e.top, m = e.width, h = e.height;
|
|
@@ -730,15 +730,15 @@ function V({ className: e, theme: t, glowTarget: n, variant: r }) {
|
|
|
730
730
|
g = e.left, _ = e.top;
|
|
731
731
|
}
|
|
732
732
|
F();
|
|
733
|
-
let
|
|
733
|
+
let ne = new ResizeObserver(() => {
|
|
734
734
|
F(), c && N.paintStatic();
|
|
735
735
|
});
|
|
736
|
-
return
|
|
736
|
+
return ne.observe(o), c ? (N.paintStatic(), () => {
|
|
737
737
|
var e;
|
|
738
|
-
|
|
738
|
+
ne.disconnect(), (e = N.dispose) == null || e.call(N);
|
|
739
739
|
}) : (P && (window.addEventListener("pointermove", ee, { passive: !0 }), window.addEventListener("scroll", te, { passive: !0 })), f.ticker.add(L), () => {
|
|
740
740
|
var e;
|
|
741
|
-
f.ticker.remove(L), f.killTweensOf(b), window.removeEventListener("pointermove", ee), window.removeEventListener("scroll", te),
|
|
741
|
+
f.ticker.remove(L), f.killTweensOf(b), window.removeEventListener("pointermove", ee), window.removeEventListener("scroll", te), ne.disconnect(), (e = N.dispose) == null || e.call(N), v == null || v.style.removeProperty("--select-card-glow");
|
|
742
742
|
});
|
|
743
743
|
}, [
|
|
744
744
|
t,
|
|
@@ -752,7 +752,7 @@ function V({ className: e, theme: t, glowTarget: n, variant: r }) {
|
|
|
752
752
|
}
|
|
753
753
|
//#endregion
|
|
754
754
|
//#region src/SelectCard.tsx
|
|
755
|
-
var
|
|
755
|
+
var V = r(function({ title: e, subtitle: t, logo: n, mark: r, children: i, footer: a, className: o, ...s }, c) {
|
|
756
756
|
return /* @__PURE__ */ h("div", {
|
|
757
757
|
ref: c,
|
|
758
758
|
...s,
|
|
@@ -788,7 +788,7 @@ var H = r(function({ title: e, subtitle: t, logo: n, mark: r, children: i, foote
|
|
|
788
788
|
children: a
|
|
789
789
|
})]
|
|
790
790
|
});
|
|
791
|
-
}),
|
|
791
|
+
}), 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: f, ...p }, g) {
|
|
792
792
|
let [_, v] = d([]), y = u(0), b = (e) => {
|
|
793
793
|
var t, n;
|
|
794
794
|
if (l == null || l(e), c || r || typeof window < "u" && (t = (n = window).matchMedia) != null && t.call(n, "(prefers-reduced-motion: reduce)").matches) return;
|
|
@@ -834,7 +834,7 @@ var H = r(function({ title: e, subtitle: t, logo: n, mark: r, children: i, foote
|
|
|
834
834
|
});
|
|
835
835
|
//#endregion
|
|
836
836
|
//#region src/icons.tsx
|
|
837
|
-
function
|
|
837
|
+
function re() {
|
|
838
838
|
return /* @__PURE__ */ h("svg", {
|
|
839
839
|
viewBox: "0 0 24 24",
|
|
840
840
|
"aria-hidden": "true",
|
|
@@ -858,7 +858,7 @@ function ne() {
|
|
|
858
858
|
]
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function ie() {
|
|
862
862
|
return /* @__PURE__ */ m("svg", {
|
|
863
863
|
viewBox: "0 0 24 24",
|
|
864
864
|
"aria-hidden": "true",
|
|
@@ -868,7 +868,7 @@ function re() {
|
|
|
868
868
|
})
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function U() {
|
|
872
872
|
return /* @__PURE__ */ m("svg", {
|
|
873
873
|
viewBox: "0 0 24 24",
|
|
874
874
|
fill: "none",
|
|
@@ -880,7 +880,7 @@ function W() {
|
|
|
880
880
|
children: /* @__PURE__ */ m("path", { d: "M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08" })
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function W() {
|
|
884
884
|
return /* @__PURE__ */ m("svg", {
|
|
885
885
|
viewBox: "0 0 24 24",
|
|
886
886
|
fill: "none",
|
|
@@ -2345,20 +2345,20 @@ function Kt(e, t) {
|
|
|
2345
2345
|
});
|
|
2346
2346
|
}
|
|
2347
2347
|
var qt = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAction: i, help: a, info: o, description: c, hint: l, error: u, prefix: f, suffix: p, trailingAction: g, mono: _, autoComplete: v, placeholder: y, required: b, disabled: x, readOnly: S, name: C, id: w, minLength: T, maxLength: E, showCount: D = !1, min: O, max: k, step: A, inputMode: j, autoFocus: M, onBlur: N, onKeyDown: P, size: F = "md", className: I, ...L }, ee) {
|
|
2348
|
-
let te = s(),
|
|
2349
|
-
let t = Number(A ?? 1) || 1, r = (
|
|
2348
|
+
let te = s(), ne = w ?? te, [R, z] = d(!1), B = r === "password", V = B && R ? "text" : r, H = u ? `${ne}-err` : l ? `${ne}-hint` : void 0, re = f != null || p != null, ie = r === "number" && !re && !S, U = t === "" ? null : Number(t), W = (e) => {
|
|
2349
|
+
let t = Number(A ?? 1) || 1, r = (U != null && Number.isFinite(U) ? U : 0) + e * t;
|
|
2350
2350
|
O != null && (r = Math.max(Number(O), r)), k != null && (r = Math.min(Number(k), r)), n(String(r));
|
|
2351
|
-
}, K = O != null &&
|
|
2352
|
-
className: `select-input-wrap${
|
|
2351
|
+
}, K = O != null && U != null && U <= Number(O), q = k != null && U != null && U >= Number(k), ae = /* @__PURE__ */ h("div", {
|
|
2352
|
+
className: `select-input-wrap${re ? " select-input-wrap--affixed" : ""}${u ? " select-input-wrap--error" : ""}`,
|
|
2353
2353
|
children: [
|
|
2354
2354
|
f != null && /* @__PURE__ */ m("span", {
|
|
2355
2355
|
className: "select-input__affix select-input__affix--prefix",
|
|
2356
2356
|
children: f
|
|
2357
2357
|
}),
|
|
2358
2358
|
/* @__PURE__ */ m("input", {
|
|
2359
|
-
id:
|
|
2360
|
-
className: `select-input${
|
|
2361
|
-
type:
|
|
2359
|
+
id: ne,
|
|
2360
|
+
className: `select-input${B ? " select-input--has-suffix" : ""}${ie ? " select-input--has-stepper" : ""}${_ ? " select-input--mono" : ""}${u ? " select-input--error" : ""}`,
|
|
2361
|
+
type: V,
|
|
2362
2362
|
value: t,
|
|
2363
2363
|
onChange: (e) => n(e.target.value),
|
|
2364
2364
|
onBlur: N,
|
|
@@ -2377,20 +2377,20 @@ var qt = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
|
|
|
2377
2377
|
inputMode: j,
|
|
2378
2378
|
autoFocus: M,
|
|
2379
2379
|
"aria-invalid": u ? !0 : void 0,
|
|
2380
|
-
"aria-describedby":
|
|
2380
|
+
"aria-describedby": H
|
|
2381
2381
|
}),
|
|
2382
2382
|
p != null && /* @__PURE__ */ m("span", {
|
|
2383
2383
|
className: "select-input__affix select-input__affix--suffix",
|
|
2384
2384
|
children: p
|
|
2385
2385
|
}),
|
|
2386
|
-
|
|
2386
|
+
B && /* @__PURE__ */ m("button", {
|
|
2387
2387
|
type: "button",
|
|
2388
2388
|
className: "select-input__reveal",
|
|
2389
|
-
onClick: () =>
|
|
2390
|
-
"aria-label":
|
|
2391
|
-
children: m(
|
|
2389
|
+
onClick: () => z((e) => !e),
|
|
2390
|
+
"aria-label": R ? "Ocultar senha" : "Mostrar senha",
|
|
2391
|
+
children: m(R ? He : Ve, {})
|
|
2392
2392
|
}),
|
|
2393
|
-
|
|
2393
|
+
ie && /* @__PURE__ */ h("span", {
|
|
2394
2394
|
className: "select-stepper",
|
|
2395
2395
|
children: [/* @__PURE__ */ m("button", {
|
|
2396
2396
|
type: "button",
|
|
@@ -2398,7 +2398,7 @@ var qt = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
|
|
|
2398
2398
|
className: "select-stepper__btn",
|
|
2399
2399
|
"aria-label": "Aumentar",
|
|
2400
2400
|
disabled: x || q,
|
|
2401
|
-
onClick: () =>
|
|
2401
|
+
onClick: () => W(1),
|
|
2402
2402
|
children: /* @__PURE__ */ m(rt, {})
|
|
2403
2403
|
}), /* @__PURE__ */ m("button", {
|
|
2404
2404
|
type: "button",
|
|
@@ -2406,7 +2406,7 @@ var qt = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
|
|
|
2406
2406
|
className: "select-stepper__btn",
|
|
2407
2407
|
"aria-label": "Diminuir",
|
|
2408
2408
|
disabled: x || K,
|
|
2409
|
-
onClick: () =>
|
|
2409
|
+
onClick: () => W(-1),
|
|
2410
2410
|
children: /* @__PURE__ */ m(G, {})
|
|
2411
2411
|
})]
|
|
2412
2412
|
})
|
|
@@ -2418,7 +2418,7 @@ var qt = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
|
|
|
2418
2418
|
className: `select-field${F === "sm" ? " select-field--sm" : ""}${I ? " " + I : ""}`,
|
|
2419
2419
|
children: [
|
|
2420
2420
|
(e || a || o || oe) && /* @__PURE__ */ m(Wt, {
|
|
2421
|
-
htmlFor:
|
|
2421
|
+
htmlFor: ne,
|
|
2422
2422
|
label: e,
|
|
2423
2423
|
help: a,
|
|
2424
2424
|
info: o,
|
|
@@ -2436,11 +2436,11 @@ var qt = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAc
|
|
|
2436
2436
|
})]
|
|
2437
2437
|
}),
|
|
2438
2438
|
u ? /* @__PURE__ */ m("p", {
|
|
2439
|
-
id: `${
|
|
2439
|
+
id: `${ne}-err`,
|
|
2440
2440
|
className: "select-field__error",
|
|
2441
2441
|
children: u
|
|
2442
2442
|
}) : l ? /* @__PURE__ */ m("p", {
|
|
2443
|
-
id: `${
|
|
2443
|
+
id: `${ne}-hint`,
|
|
2444
2444
|
className: "select-field__hint",
|
|
2445
2445
|
children: l
|
|
2446
2446
|
}) : null
|
|
@@ -2917,7 +2917,7 @@ var mn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2917
2917
|
e && URL.revokeObjectURL(e);
|
|
2918
2918
|
});
|
|
2919
2919
|
}, [te]);
|
|
2920
|
-
let
|
|
2920
|
+
let ne = (e) => {
|
|
2921
2921
|
let t = e.filter((e) => e.size <= ee && ln(e, s));
|
|
2922
2922
|
if (D(e.length - t.length), !t.length) return;
|
|
2923
2923
|
if (S) {
|
|
@@ -2926,7 +2926,7 @@ var mn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2926
2926
|
}
|
|
2927
2927
|
let i = Math.min(N - n.length, M - P);
|
|
2928
2928
|
r([...n, ...t.slice(0, Math.max(0, i))]);
|
|
2929
|
-
},
|
|
2929
|
+
}, R = () => {
|
|
2930
2930
|
let e = O.trim();
|
|
2931
2931
|
if (e) {
|
|
2932
2932
|
if (!fn.test(e)) {
|
|
@@ -2939,18 +2939,18 @@ var mn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2939
2939
|
}
|
|
2940
2940
|
S ? (r([]), a([e])) : a([...i, e].slice(0, M)), k(""), j(null);
|
|
2941
2941
|
}
|
|
2942
|
-
},
|
|
2943
|
-
e.key === "Enter" && (e.preventDefault(),
|
|
2944
|
-
},
|
|
2942
|
+
}, z = (e) => {
|
|
2943
|
+
e.key === "Enter" && (e.preventDefault(), R());
|
|
2944
|
+
}, B = (e) => r(n.filter((t, n) => n !== e)), V = (e) => a(i.filter((t, n) => n !== e)), re = () => {
|
|
2945
2945
|
var e;
|
|
2946
2946
|
return (e = C.current) == null ? void 0 : e.click();
|
|
2947
|
-
},
|
|
2947
|
+
}, ie = {
|
|
2948
2948
|
onDragOver: (e) => {
|
|
2949
2949
|
e.preventDefault(), T(!0);
|
|
2950
2950
|
},
|
|
2951
2951
|
onDragLeave: () => T(!1),
|
|
2952
2952
|
onDrop: (e) => {
|
|
2953
|
-
e.preventDefault(), T(!1),
|
|
2953
|
+
e.preventDefault(), T(!1), ne(Array.from(e.dataTransfer.files));
|
|
2954
2954
|
}
|
|
2955
2955
|
};
|
|
2956
2956
|
return /* @__PURE__ */ h("div", {
|
|
@@ -2964,7 +2964,7 @@ var mn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2964
2964
|
}),
|
|
2965
2965
|
/* @__PURE__ */ h("div", {
|
|
2966
2966
|
className: `select-uploadzone${w ? " is-over" : ""}`,
|
|
2967
|
-
...
|
|
2967
|
+
...ie,
|
|
2968
2968
|
children: [
|
|
2969
2969
|
L ? /* @__PURE__ */ h("div", {
|
|
2970
2970
|
className: `select-filetile-grid${P === 1 ? " select-filetile-grid--single" : ""}`,
|
|
@@ -2974,24 +2974,24 @@ var mn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2974
2974
|
docExt: dn(e.name),
|
|
2975
2975
|
name: e.name,
|
|
2976
2976
|
sub: cn(e.size),
|
|
2977
|
-
onRemove: () =>
|
|
2977
|
+
onRemove: () => B(t)
|
|
2978
2978
|
}, `f-${e.name}-${t}`)),
|
|
2979
2979
|
i.map((e, t) => /* @__PURE__ */ m(sn, {
|
|
2980
2980
|
src: e,
|
|
2981
2981
|
name: pn(e),
|
|
2982
|
-
onRemove: () =>
|
|
2982
|
+
onRemove: () => V(t)
|
|
2983
2983
|
}, `u-${e}-${t}`)),
|
|
2984
2984
|
F && /* @__PURE__ */ h("button", {
|
|
2985
2985
|
type: "button",
|
|
2986
2986
|
className: "select-dropzone select-dropzone--tile",
|
|
2987
|
-
onClick:
|
|
2987
|
+
onClick: re,
|
|
2988
2988
|
children: [/* @__PURE__ */ m(oe, {}), /* @__PURE__ */ m("span", { children: "Adicionar" })]
|
|
2989
2989
|
})
|
|
2990
2990
|
]
|
|
2991
2991
|
}) : /* @__PURE__ */ h("button", {
|
|
2992
2992
|
type: "button",
|
|
2993
2993
|
className: "select-uploadzone__prompt",
|
|
2994
|
-
onClick:
|
|
2994
|
+
onClick: re,
|
|
2995
2995
|
children: [/* @__PURE__ */ m(oe, {}), /* @__PURE__ */ m("span", { children: g ?? `Arraste ou selecione um arquivo · até ${c} MB` })]
|
|
2996
2996
|
}),
|
|
2997
2997
|
I && /* @__PURE__ */ h("div", {
|
|
@@ -3006,7 +3006,7 @@ var mn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
3006
3006
|
onChange: (e) => {
|
|
3007
3007
|
k(e), A && j(null);
|
|
3008
3008
|
},
|
|
3009
|
-
onKeyDown:
|
|
3009
|
+
onKeyDown: z,
|
|
3010
3010
|
type: "url",
|
|
3011
3011
|
inputMode: "url",
|
|
3012
3012
|
placeholder: _ ?? "ou cole uma URL (https://…)",
|
|
@@ -3014,11 +3014,11 @@ var mn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
3014
3014
|
autoComplete: "off"
|
|
3015
3015
|
})
|
|
3016
3016
|
}),
|
|
3017
|
-
/* @__PURE__ */ m(
|
|
3017
|
+
/* @__PURE__ */ m(H, {
|
|
3018
3018
|
variant: "secondary",
|
|
3019
3019
|
size: "sm",
|
|
3020
3020
|
inline: !0,
|
|
3021
|
-
onClick:
|
|
3021
|
+
onClick: R,
|
|
3022
3022
|
disabled: !O.trim(),
|
|
3023
3023
|
children: "Adicionar"
|
|
3024
3024
|
})
|
|
@@ -3031,7 +3031,7 @@ var mn = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
3031
3031
|
multiple: !S,
|
|
3032
3032
|
hidden: !0,
|
|
3033
3033
|
onChange: (e) => {
|
|
3034
|
-
|
|
3034
|
+
ne(Array.from(e.target.files ?? [])), e.target.value = "";
|
|
3035
3035
|
}
|
|
3036
3036
|
})
|
|
3037
3037
|
]
|
|
@@ -3073,28 +3073,28 @@ var Sn = (e) => {
|
|
|
3073
3073
|
var t;
|
|
3074
3074
|
return Array.from(((t = e.dataTransfer) == null ? void 0 : t.types) ?? []).includes("Files");
|
|
3075
3075
|
}, Cn = r(function({ label: e, help: t, items: n, onChange: r, max: i = 10, accept: a = ".jpg,.jpeg,.png,.webp", maxSizeMB: c, hint: l, error: f, allowUrl: p = !0, tileSize: g = 88, addLabel: _ = "Adicionar", coverLabel: v = "Capa", disabled: y = !1, className: b, style: x, ...S }, C) {
|
|
3076
|
-
let w = s(), T = u(null), E = u(/* @__PURE__ */ new Map()), D = u(null), [O, k] = d(null), [A, j] = d(null), [M, N] = d(null), [P, F] = d(!1), [I, L] = d(null), [ee, te] = d(!1), [
|
|
3076
|
+
let w = s(), T = u(null), E = u(/* @__PURE__ */ new Map()), D = u(null), [O, k] = d(null), [A, j] = d(null), [M, N] = d(null), [P, F] = d(!1), [I, L] = d(null), [ee, te] = d(!1), [ne, R] = d(""), [z, B] = d(), V = u(/* @__PURE__ */ new Map()), re = (e) => {
|
|
3077
3077
|
if (e.url) return e.url;
|
|
3078
3078
|
if (!e.file) return;
|
|
3079
|
-
let t =
|
|
3080
|
-
return !t && typeof URL < "u" && typeof URL.createObjectURL == "function" && (t = URL.createObjectURL(e.file),
|
|
3079
|
+
let t = V.current.get(e.file);
|
|
3080
|
+
return !t && typeof URL < "u" && typeof URL.createObjectURL == "function" && (t = URL.createObjectURL(e.file), V.current.set(e.file, t)), t;
|
|
3081
3081
|
};
|
|
3082
3082
|
o(() => {
|
|
3083
3083
|
let e = new Set(n.map((e) => e.file).filter(Boolean));
|
|
3084
|
-
for (let [t, n] of
|
|
3084
|
+
for (let [t, n] of V.current) e.has(t) || (URL.revokeObjectURL(n), V.current.delete(t));
|
|
3085
3085
|
}, [n]), o(() => () => {
|
|
3086
|
-
for (let e of
|
|
3087
|
-
|
|
3086
|
+
for (let e of V.current.values()) URL.revokeObjectURL(e);
|
|
3087
|
+
V.current.clear();
|
|
3088
3088
|
}, []), o(() => {
|
|
3089
3089
|
if (!O) return;
|
|
3090
3090
|
let e = O === "__add" ? D.current : E.current.get(O);
|
|
3091
3091
|
e == null || e.focus(), k(null);
|
|
3092
3092
|
}, [O, n]);
|
|
3093
|
-
let
|
|
3093
|
+
let ie = Math.max(0, i - n.length), U = ie === 0, W = c == null ? Infinity : c * 1024 * 1024, G = (e) => {
|
|
3094
3094
|
if (y || !e.length) return;
|
|
3095
3095
|
let t = [], o = [];
|
|
3096
|
-
for (let n of e) ln(n, a) ? n.size >
|
|
3097
|
-
let s = o.slice(0,
|
|
3096
|
+
for (let n of e) ln(n, a) ? n.size > W ? t.push(`${n.name}: maior que ${c} MB`) : o.push(n) : t.push(`${n.name}: formato não aceito`);
|
|
3097
|
+
let s = o.slice(0, ie);
|
|
3098
3098
|
if (o.length > s.length) {
|
|
3099
3099
|
let e = o.length - s.length;
|
|
3100
3100
|
t.push(`Limite de ${i} ${i === 1 ? "foto" : "fotos"} — ${e} ${e === 1 ? "ficou" : "ficaram"} de fora`);
|
|
@@ -3112,19 +3112,19 @@ var Sn = (e) => {
|
|
|
3112
3112
|
}, ae = (e, t) => {
|
|
3113
3113
|
y || e.target !== e.currentTarget || (e.key === "ArrowLeft" || e.key === "ArrowUp" ? (e.preventDefault(), q(t, t - 1)) : e.key === "ArrowRight" || e.key === "ArrowDown" ? (e.preventDefault(), q(t, t + 1)) : (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), K(t)));
|
|
3114
3114
|
}, oe = () => {
|
|
3115
|
-
let e =
|
|
3115
|
+
let e = ne.trim();
|
|
3116
3116
|
if (!fn.test(e) || !/^https:\/\//i.test(e)) {
|
|
3117
|
-
|
|
3117
|
+
B("Use um link https://…");
|
|
3118
3118
|
return;
|
|
3119
3119
|
}
|
|
3120
3120
|
if (n.some((t) => t.url === e)) {
|
|
3121
|
-
|
|
3121
|
+
B("Essa imagem já está na galeria.");
|
|
3122
3122
|
return;
|
|
3123
3123
|
}
|
|
3124
|
-
r([...n, bn(e)]),
|
|
3124
|
+
r([...n, bn(e)]), R(""), B(void 0), te(!1);
|
|
3125
3125
|
}, se = {
|
|
3126
3126
|
onDragOver: (e) => {
|
|
3127
|
-
y || A || !Sn(e) || (e.preventDefault(), e.dataTransfer.dropEffect =
|
|
3127
|
+
y || A || !Sn(e) || (e.preventDefault(), e.dataTransfer.dropEffect = U ? "none" : "copy", F(!0));
|
|
3128
3128
|
},
|
|
3129
3129
|
onDragLeave: (e) => {
|
|
3130
3130
|
e.currentTarget.contains(e.relatedTarget) || F(!1);
|
|
@@ -3167,7 +3167,7 @@ var Sn = (e) => {
|
|
|
3167
3167
|
...se,
|
|
3168
3168
|
children: [n.map((e, t) => {
|
|
3169
3169
|
var i;
|
|
3170
|
-
let a =
|
|
3170
|
+
let a = re(e), o = t === 0 && v != null, s = ((i = e.file) == null ? void 0 : i.name) ?? (e.url ? pn(e.url) : "foto");
|
|
3171
3171
|
return /* @__PURE__ */ h("div", {
|
|
3172
3172
|
ref: (t) => {
|
|
3173
3173
|
t ? E.current.set(e.key, t) : E.current.delete(e.key);
|
|
@@ -3224,7 +3224,7 @@ var Sn = (e) => {
|
|
|
3224
3224
|
})
|
|
3225
3225
|
]
|
|
3226
3226
|
}, e.key);
|
|
3227
|
-
}), !
|
|
3227
|
+
}), !U && !y && /* @__PURE__ */ h("button", {
|
|
3228
3228
|
ref: D,
|
|
3229
3229
|
type: "button",
|
|
3230
3230
|
className: `select-gallery__add${P ? " is-over" : ""}`,
|
|
@@ -3239,26 +3239,26 @@ var Sn = (e) => {
|
|
|
3239
3239
|
ref: T,
|
|
3240
3240
|
type: "file",
|
|
3241
3241
|
accept: a,
|
|
3242
|
-
multiple:
|
|
3242
|
+
multiple: ie > 1,
|
|
3243
3243
|
hidden: !0,
|
|
3244
3244
|
onChange: (e) => {
|
|
3245
3245
|
G(Array.from(e.target.files ?? [])), e.target.value = "";
|
|
3246
3246
|
}
|
|
3247
3247
|
}),
|
|
3248
|
-
p && !
|
|
3248
|
+
p && !U && !y && (ee ? /* @__PURE__ */ m(qt, {
|
|
3249
3249
|
size: "sm",
|
|
3250
|
-
value:
|
|
3250
|
+
value: ne,
|
|
3251
3251
|
onChange: (e) => {
|
|
3252
|
-
|
|
3252
|
+
R(e), B(void 0);
|
|
3253
3253
|
},
|
|
3254
3254
|
placeholder: "https://…",
|
|
3255
3255
|
type: "url",
|
|
3256
3256
|
autoFocus: !0,
|
|
3257
|
-
error:
|
|
3257
|
+
error: z,
|
|
3258
3258
|
onKeyDown: (e) => {
|
|
3259
|
-
e.key === "Enter" ? (e.preventDefault(), oe()) : e.key === "Escape" && (te(!1),
|
|
3259
|
+
e.key === "Enter" ? (e.preventDefault(), oe()) : e.key === "Escape" && (te(!1), R(""), B(void 0));
|
|
3260
3260
|
},
|
|
3261
|
-
trailingAction: /* @__PURE__ */ m(
|
|
3261
|
+
trailingAction: /* @__PURE__ */ m(H, {
|
|
3262
3262
|
variant: "secondary",
|
|
3263
3263
|
size: "sm",
|
|
3264
3264
|
inline: !0,
|
|
@@ -4483,7 +4483,7 @@ function dr({ items: e, label: t = "Ações", disabled: n }) {
|
|
|
4483
4483
|
active: r,
|
|
4484
4484
|
onClose: () => i(!1),
|
|
4485
4485
|
placement: "bottom-end",
|
|
4486
|
-
activator: /* @__PURE__ */ m(
|
|
4486
|
+
activator: /* @__PURE__ */ m(H, {
|
|
4487
4487
|
variant: "secondary",
|
|
4488
4488
|
size: "sm",
|
|
4489
4489
|
inline: !0,
|
|
@@ -4529,16 +4529,20 @@ var fr = {
|
|
|
4529
4529
|
function mr(...e) {
|
|
4530
4530
|
return e.filter(Boolean).join(" ");
|
|
4531
4531
|
}
|
|
4532
|
-
function hr({ children: e, gap: t, align: n, inlineAlign: r, as: i = "div", className: a,
|
|
4533
|
-
let
|
|
4532
|
+
function hr({ children: e, gap: t, align: n, inlineAlign: r, as: i = "div", className: a, fill: o = !1, ...s }) {
|
|
4533
|
+
let c = i, l = {
|
|
4534
4534
|
rowGap: t ? fr[t] : void 0,
|
|
4535
4535
|
justifyContent: n ? pr[n] : void 0,
|
|
4536
|
-
alignItems: r ? pr[r] : void 0
|
|
4536
|
+
alignItems: r ? pr[r] : void 0,
|
|
4537
|
+
...o ? {
|
|
4538
|
+
height: "100%",
|
|
4539
|
+
flex: "1 1 auto"
|
|
4540
|
+
} : null
|
|
4537
4541
|
};
|
|
4538
|
-
return /* @__PURE__ */ m(
|
|
4539
|
-
...
|
|
4542
|
+
return /* @__PURE__ */ m(c, {
|
|
4543
|
+
...s,
|
|
4540
4544
|
className: mr("select-stack", a),
|
|
4541
|
-
style:
|
|
4545
|
+
style: l,
|
|
4542
4546
|
children: e
|
|
4543
4547
|
});
|
|
4544
4548
|
}
|
|
@@ -4823,7 +4827,7 @@ var Mr = r(function({ icon: e, label: t, onClick: n, disabled: r = !1, size: i =
|
|
|
4823
4827
|
//#endregion
|
|
4824
4828
|
//#region src/SelectDisclosureButton.tsx
|
|
4825
4829
|
function Nr({ open: e, onToggle: t, children: n, openLabel: r, disabled: i = !1, size: a = "sm", variant: o = "secondary" }) {
|
|
4826
|
-
return /* @__PURE__ */ m(
|
|
4830
|
+
return /* @__PURE__ */ m(H, {
|
|
4827
4831
|
variant: o,
|
|
4828
4832
|
size: a,
|
|
4829
4833
|
inline: !0,
|
|
@@ -5078,7 +5082,7 @@ function li({ value: e, path: n, depth: r, ancestors: i, ctx: a }) {
|
|
|
5078
5082
|
"aria-expanded": p,
|
|
5079
5083
|
"aria-label": `${p ? "Recolher" : "Expandir"} ${e}`,
|
|
5080
5084
|
onClick: () => a.toggle(l),
|
|
5081
|
-
children: /* @__PURE__ */ m(
|
|
5085
|
+
children: /* @__PURE__ */ m(U, {})
|
|
5082
5086
|
}) : /* @__PURE__ */ m("span", {
|
|
5083
5087
|
className: "select-json__caret select-json__caret--empty",
|
|
5084
5088
|
"aria-hidden": "true"
|
|
@@ -5181,14 +5185,14 @@ var di = r(function({ value: e, title: t = "Metadados", maxHeight: n = 360, defa
|
|
|
5181
5185
|
let n = new Set(t);
|
|
5182
5186
|
return n.delete(e) || n.add(e), n;
|
|
5183
5187
|
});
|
|
5184
|
-
}, []), te = P.length > 0 && P.every((e) => w.has(e)),
|
|
5188
|
+
}, []), te = P.length > 0 && P.every((e) => w.has(e)), ne = () => T(te ? /* @__PURE__ */ new Set() : new Set(P)), R = {
|
|
5185
5189
|
expanded: w,
|
|
5186
5190
|
toggle: ee,
|
|
5187
5191
|
search: S,
|
|
5188
5192
|
result: F,
|
|
5189
5193
|
copied: E,
|
|
5190
5194
|
copy: D
|
|
5191
|
-
},
|
|
5195
|
+
}, z = v && !A;
|
|
5192
5196
|
return /* @__PURE__ */ h("div", {
|
|
5193
5197
|
ref: _,
|
|
5194
5198
|
...g,
|
|
@@ -5200,13 +5204,13 @@ var di = r(function({ value: e, title: t = "Metadados", maxHeight: n = 360, defa
|
|
|
5200
5204
|
variant: "headingSm",
|
|
5201
5205
|
children: t
|
|
5202
5206
|
}), /* @__PURE__ */ m(Nr, {
|
|
5203
|
-
open:
|
|
5207
|
+
open: z,
|
|
5204
5208
|
onToggle: () => y((e) => !e),
|
|
5205
5209
|
openLabel: "Ocultar",
|
|
5206
5210
|
disabled: A,
|
|
5207
5211
|
children: A ? c : "Mostrar"
|
|
5208
5212
|
})]
|
|
5209
|
-
}),
|
|
5213
|
+
}), z && /* @__PURE__ */ h("div", {
|
|
5210
5214
|
className: "select-json__body",
|
|
5211
5215
|
children: [/* @__PURE__ */ h("div", {
|
|
5212
5216
|
className: "select-json__toolbar",
|
|
@@ -5235,7 +5239,7 @@ var di = r(function({ value: e, title: t = "Metadados", maxHeight: n = 360, defa
|
|
|
5235
5239
|
label: te ? "Recolher tudo" : "Expandir tudo",
|
|
5236
5240
|
size: "sm",
|
|
5237
5241
|
active: te,
|
|
5238
|
-
onClick:
|
|
5242
|
+
onClick: ne
|
|
5239
5243
|
}),
|
|
5240
5244
|
/* @__PURE__ */ m(Mr, {
|
|
5241
5245
|
icon: /* @__PURE__ */ m(Ce, {}),
|
|
@@ -5276,7 +5280,7 @@ var di = r(function({ value: e, title: t = "Metadados", maxHeight: n = 360, defa
|
|
|
5276
5280
|
path: "",
|
|
5277
5281
|
depth: 0,
|
|
5278
5282
|
ancestors: [k],
|
|
5279
|
-
ctx:
|
|
5283
|
+
ctx: R
|
|
5280
5284
|
}) : /* @__PURE__ */ h("div", {
|
|
5281
5285
|
className: "select-json__row",
|
|
5282
5286
|
style: { "--json-depth": 0 },
|
|
@@ -5428,7 +5432,7 @@ function vi({ children: e, className: t, ...n }) {
|
|
|
5428
5432
|
});
|
|
5429
5433
|
}
|
|
5430
5434
|
function yi({ title: e, subtitle: t, leading: n, trailing: r, onClick: i, muted: a = !1 }) {
|
|
5431
|
-
let o = !!i, s = r === void 0 ? o ? /* @__PURE__ */ m(
|
|
5435
|
+
let o = !!i, s = r === void 0 ? o ? /* @__PURE__ */ m(U, {}) : null : r, c = /* @__PURE__ */ h(p, { children: [
|
|
5432
5436
|
n && /* @__PURE__ */ m("span", {
|
|
5433
5437
|
className: "select-optionrow__leading",
|
|
5434
5438
|
children: n
|
|
@@ -5786,7 +5790,7 @@ var ji = r(function({ value: e, rules: t, className: n, ...r }, i) {
|
|
|
5786
5790
|
}), u && /* @__PURE__ */ h("div", {
|
|
5787
5791
|
className: "select-page__actions",
|
|
5788
5792
|
children: [
|
|
5789
|
-
r == null ? void 0 : r.map((e, t) => /* @__PURE__ */ m(
|
|
5793
|
+
r == null ? void 0 : r.map((e, t) => /* @__PURE__ */ m(H, {
|
|
5790
5794
|
variant: "secondary",
|
|
5791
5795
|
size: "sm",
|
|
5792
5796
|
inline: !0,
|
|
@@ -5796,7 +5800,7 @@ var ji = r(function({ value: e, rules: t, className: n, ...r }, i) {
|
|
|
5796
5800
|
onClick: e.onAction,
|
|
5797
5801
|
children: e.content
|
|
5798
5802
|
}, t)),
|
|
5799
|
-
n && /* @__PURE__ */ m(
|
|
5803
|
+
n && /* @__PURE__ */ m(H, {
|
|
5800
5804
|
variant: "primary",
|
|
5801
5805
|
size: "sm",
|
|
5802
5806
|
inline: !0,
|
|
@@ -6345,7 +6349,7 @@ var oa = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious:
|
|
|
6345
6349
|
onClick: _,
|
|
6346
6350
|
disabled: !p || !_,
|
|
6347
6351
|
"aria-label": "Página anterior",
|
|
6348
|
-
children: /* @__PURE__ */ m(
|
|
6352
|
+
children: /* @__PURE__ */ m(W, {})
|
|
6349
6353
|
}),
|
|
6350
6354
|
y ? b.map((t, n) => t === "gap" ? /* @__PURE__ */ m("span", {
|
|
6351
6355
|
className: "select-pagination__gap",
|
|
@@ -6367,7 +6371,7 @@ var oa = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious:
|
|
|
6367
6371
|
onClick: v,
|
|
6368
6372
|
disabled: !g || !v,
|
|
6369
6373
|
"aria-label": "Próxima página",
|
|
6370
|
-
children: /* @__PURE__ */ m(
|
|
6374
|
+
children: /* @__PURE__ */ m(U, {})
|
|
6371
6375
|
})
|
|
6372
6376
|
]
|
|
6373
6377
|
}), x != null && /* @__PURE__ */ m("p", {
|
|
@@ -6567,7 +6571,7 @@ var ha = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
6567
6571
|
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"), v(e, ma(s));
|
|
6568
6572
|
};
|
|
6569
6573
|
window.addEventListener("pointermove", c), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", l);
|
|
6570
|
-
},
|
|
6574
|
+
}, ne = (e) => (t) => {
|
|
6571
6575
|
var n;
|
|
6572
6576
|
if (!v) return;
|
|
6573
6577
|
let r = t.key === "ArrowRight" ? 1 : t.key === "ArrowLeft" ? -1 : 0;
|
|
@@ -6623,7 +6627,7 @@ var ha = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
6623
6627
|
tabIndex: 0,
|
|
6624
6628
|
className: "select-table__resizer",
|
|
6625
6629
|
onPointerDown: te(n),
|
|
6626
|
-
onKeyDown:
|
|
6630
|
+
onKeyDown: ne(n),
|
|
6627
6631
|
onDoubleClick: y ? () => y(n) : void 0
|
|
6628
6632
|
})]
|
|
6629
6633
|
}, n))
|
|
@@ -6660,17 +6664,23 @@ function ga({ enabled: e, open: t, id: n, children: r }) {
|
|
|
6660
6664
|
})
|
|
6661
6665
|
}) : /* @__PURE__ */ m(p, { children: r });
|
|
6662
6666
|
}
|
|
6663
|
-
var _a = r(function({ name: e, secondary: t, src: n,
|
|
6667
|
+
var _a = r(function({ name: e, secondary: t, src: n, badge: r, className: i, ...a }, o) {
|
|
6664
6668
|
return /* @__PURE__ */ h("span", {
|
|
6665
|
-
ref:
|
|
6666
|
-
...
|
|
6667
|
-
className: `select-usercell${
|
|
6669
|
+
ref: o,
|
|
6670
|
+
...a,
|
|
6671
|
+
className: `select-usercell${i ? " " + i : ""}`,
|
|
6668
6672
|
children: [/* @__PURE__ */ m(_i, {
|
|
6669
6673
|
name: typeof e == "string" ? e : void 0,
|
|
6670
6674
|
src: n
|
|
6671
6675
|
}), /* @__PURE__ */ h("span", {
|
|
6672
6676
|
className: "select-usercell__text",
|
|
6673
|
-
children: [/* @__PURE__ */
|
|
6677
|
+
children: [r ? /* @__PURE__ */ h("span", {
|
|
6678
|
+
className: "select-usercell__line",
|
|
6679
|
+
children: [/* @__PURE__ */ m("span", {
|
|
6680
|
+
className: "select-usercell__name",
|
|
6681
|
+
children: e
|
|
6682
|
+
}), r]
|
|
6683
|
+
}) : /* @__PURE__ */ m("span", {
|
|
6674
6684
|
className: "select-usercell__name",
|
|
6675
6685
|
children: e
|
|
6676
6686
|
}), t && /* @__PURE__ */ m("span", {
|
|
@@ -6703,7 +6713,7 @@ var ya = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6703
6713
|
children: [n ? /* @__PURE__ */ m("span", {
|
|
6704
6714
|
className: `select-table__disclosure${n === "open" ? " is-open" : ""}`,
|
|
6705
6715
|
"aria-hidden": "true",
|
|
6706
|
-
children: n !== "none" && /* @__PURE__ */ m(
|
|
6716
|
+
children: n !== "none" && /* @__PURE__ */ m(U, {})
|
|
6707
6717
|
}) : null, e]
|
|
6708
6718
|
});
|
|
6709
6719
|
}), ba = r(function({ icon: e, title: t, subtitle: n, action: r, className: i, ...a }, o) {
|
|
@@ -7177,14 +7187,14 @@ function za({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
7177
7187
|
theme: l ?? Mn(),
|
|
7178
7188
|
footer: /* @__PURE__ */ h("div", {
|
|
7179
7189
|
className: "select-modal__actions",
|
|
7180
|
-
children: [/* @__PURE__ */ m(
|
|
7190
|
+
children: [/* @__PURE__ */ m(H, {
|
|
7181
7191
|
variant: "secondary",
|
|
7182
7192
|
size: "sm",
|
|
7183
7193
|
inline: !0,
|
|
7184
7194
|
onClick: t,
|
|
7185
7195
|
disabled: c,
|
|
7186
7196
|
children: o
|
|
7187
|
-
}), /* @__PURE__ */ m(
|
|
7197
|
+
}), /* @__PURE__ */ m(H, {
|
|
7188
7198
|
variant: s ? "danger" : "primary",
|
|
7189
7199
|
size: "sm",
|
|
7190
7200
|
inline: !0,
|
|
@@ -7208,14 +7218,14 @@ function Ba({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
7208
7218
|
theme: p ?? Mn(),
|
|
7209
7219
|
footer: /* @__PURE__ */ h("div", {
|
|
7210
7220
|
className: "select-modal__actions",
|
|
7211
|
-
children: [/* @__PURE__ */ m(
|
|
7221
|
+
children: [/* @__PURE__ */ m(H, {
|
|
7212
7222
|
variant: "secondary",
|
|
7213
7223
|
size: "sm",
|
|
7214
7224
|
inline: !0,
|
|
7215
7225
|
onClick: t,
|
|
7216
7226
|
disabled: c,
|
|
7217
7227
|
children: s
|
|
7218
|
-
}), /* @__PURE__ */ m(
|
|
7228
|
+
}), /* @__PURE__ */ m(H, {
|
|
7219
7229
|
variant: u,
|
|
7220
7230
|
size: "sm",
|
|
7221
7231
|
inline: !0,
|
|
@@ -7317,15 +7327,15 @@ function $a(e, t, n) {
|
|
|
7317
7327
|
});
|
|
7318
7328
|
}
|
|
7319
7329
|
function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, pagination: a, onRowClick: o, title: s, help: c, description: u, action: f, filters: p, columnsKey: g, getChildren: _, defaultExpanded: v, compactRow: y, compactQuery: b = "(max-width: 40rem)", onCompactRowClick: x }) {
|
|
7320
|
-
let [S, C] = d(() => g ? Ga(g) : []), [w, T] = d(!1), E = Va(y ? b : void 0) && y != null, [D, O] = d(() => g ? Ya(g) : {}), k = l(() => new Set(S), [S]), A = e.filter(qa), j = A.length > 0 && A.every((e) => k.has(e.key)), M = (e) => !j && k.has(e.key) && qa(e), N = e.filter((e) => !M(e)), P = A.filter((e) => !M(e)), [F, I] = d(null), [L, ee] = d(() => /* @__PURE__ */ new Set()), te = (e) => ((v == null ? void 0 : v(e)) ?? !1) !== L.has(n(e)),
|
|
7330
|
+
let [S, C] = d(() => g ? Ga(g) : []), [w, T] = d(!1), E = Va(y ? b : void 0) && y != null, [D, O] = d(() => g ? Ya(g) : {}), k = l(() => new Set(S), [S]), A = e.filter(qa), j = A.length > 0 && A.every((e) => k.has(e.key)), M = (e) => !j && k.has(e.key) && qa(e), N = e.filter((e) => !M(e)), P = A.filter((e) => !M(e)), [F, I] = d(null), [L, ee] = d(() => /* @__PURE__ */ new Set()), te = (e) => ((v == null ? void 0 : v(e)) ?? !1) !== L.has(n(e)), ne = (e) => ee((t) => {
|
|
7321
7331
|
let r = new Set(t), i = n(e);
|
|
7322
7332
|
return r.delete(i) || r.add(i), r;
|
|
7323
|
-
}),
|
|
7333
|
+
}), R = (e) => {
|
|
7324
7334
|
C((t) => {
|
|
7325
7335
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
7326
7336
|
return g && Ka(g, r), n && I((t) => t && t.key === e.key ? null : t), r;
|
|
7327
7337
|
});
|
|
7328
|
-
},
|
|
7338
|
+
}, z = (e) => {
|
|
7329
7339
|
I((t) => {
|
|
7330
7340
|
let n = e.sortDefault ?? "asc";
|
|
7331
7341
|
return !t || t.key !== e.key ? {
|
|
@@ -7336,12 +7346,12 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7336
7346
|
dir: n === "asc" ? "desc" : "asc"
|
|
7337
7347
|
} : null;
|
|
7338
7348
|
});
|
|
7339
|
-
},
|
|
7340
|
-
let e =
|
|
7349
|
+
}, B = F ? e.find((e) => e.key === F.key) : void 0, V = l(() => {
|
|
7350
|
+
let e = B == null ? void 0 : B.sortValue;
|
|
7341
7351
|
if (!F || !e) return (e) => e;
|
|
7342
7352
|
let t = F.dir === "asc" ? 1 : -1;
|
|
7343
7353
|
return (n) => [...n].sort((n, r) => $a(e(n), e(r), t));
|
|
7344
|
-
}, [F,
|
|
7354
|
+
}, [F, B]), H = l(() => V(t), [t, V]), re = (e) => (_ == null ? void 0 : _(e)) ?? [], ie = !!_ && t.some((e) => re(e).length > 0), U = E ? [{
|
|
7345
7355
|
label: "",
|
|
7346
7356
|
grow: 1
|
|
7347
7357
|
}] : N.map((e) => ({
|
|
@@ -7352,9 +7362,9 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7352
7362
|
grow: e.grow,
|
|
7353
7363
|
sortable: !!e.sortValue,
|
|
7354
7364
|
sortDir: (F == null ? void 0 : F.key) === e.key ? F.dir : null,
|
|
7355
|
-
onSort: e.sortValue ? () =>
|
|
7365
|
+
onSort: e.sortValue ? () => z(e) : void 0,
|
|
7356
7366
|
resizable: !!e.title
|
|
7357
|
-
})),
|
|
7367
|
+
})), W = (e, t) => {
|
|
7358
7368
|
let n = N[e];
|
|
7359
7369
|
n && O((e) => {
|
|
7360
7370
|
let r = { ...e };
|
|
@@ -7393,7 +7403,7 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7393
7403
|
"aria-checked": t,
|
|
7394
7404
|
disabled: n,
|
|
7395
7405
|
className: "select-facet__opt",
|
|
7396
|
-
onClick: () =>
|
|
7406
|
+
onClick: () => R(e),
|
|
7397
7407
|
children: [/* @__PURE__ */ m("span", { children: e.title }), t && /* @__PURE__ */ m("span", {
|
|
7398
7408
|
className: "select-facet__check",
|
|
7399
7409
|
"aria-hidden": "true",
|
|
@@ -7419,7 +7429,7 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7419
7429
|
return /* @__PURE__ */ h("div", {
|
|
7420
7430
|
className: "select-datatable",
|
|
7421
7431
|
children: [/* @__PURE__ */ m(ha, {
|
|
7422
|
-
columns:
|
|
7432
|
+
columns: U,
|
|
7423
7433
|
empty: q,
|
|
7424
7434
|
title: s,
|
|
7425
7435
|
help: c,
|
|
@@ -7428,29 +7438,29 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7428
7438
|
action: f,
|
|
7429
7439
|
tools: E ? null : ae,
|
|
7430
7440
|
className: E ? "select-table--compact" : void 0,
|
|
7431
|
-
onColumnResize: E ? void 0 : (e, t) =>
|
|
7432
|
-
onColumnResizeReset: E ? void 0 : (e) =>
|
|
7433
|
-
children: E && y ? r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(va, { children: /* @__PURE__ */ m(ya, { children: /* @__PURE__ */ m("span", { className: "select-skeleton select-datatable__skel" }) }) }, `skeleton-${t}`)) :
|
|
7441
|
+
onColumnResize: E ? void 0 : (e, t) => W(e, t),
|
|
7442
|
+
onColumnResizeReset: E ? void 0 : (e) => W(e, null),
|
|
7443
|
+
children: E && y ? r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(va, { children: /* @__PURE__ */ m(ya, { children: /* @__PURE__ */ m("span", { className: "select-skeleton select-datatable__skel" }) }) }, `skeleton-${t}`)) : H.map((e) => /* @__PURE__ */ m(va, {
|
|
7434
7444
|
onClick: x ?? o ? () => (x ?? o)(e) : void 0,
|
|
7435
7445
|
children: /* @__PURE__ */ m(ya, { children: y(e) })
|
|
7436
7446
|
}, n(e))) : r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(va, { children: N.map((e, t) => /* @__PURE__ */ m(ya, {
|
|
7437
7447
|
align: e.align,
|
|
7438
7448
|
width: e.width,
|
|
7439
7449
|
children: /* @__PURE__ */ m("span", { className: "select-skeleton select-datatable__skel" })
|
|
7440
|
-
}, t)) }, `skeleton-${t}`)) :
|
|
7441
|
-
let t =
|
|
7450
|
+
}, t)) }, `skeleton-${t}`)) : H.flatMap((e) => {
|
|
7451
|
+
let t = re(e);
|
|
7442
7452
|
if (t.length === 0) return [/* @__PURE__ */ m(va, {
|
|
7443
7453
|
onClick: o ? () => o(e) : void 0,
|
|
7444
7454
|
children: N.map((t, n) => /* @__PURE__ */ m(ya, {
|
|
7445
7455
|
align: t.align,
|
|
7446
7456
|
width: t.width,
|
|
7447
|
-
disclosure:
|
|
7457
|
+
disclosure: ie && n === 0 ? "none" : void 0,
|
|
7448
7458
|
children: t.render(e)
|
|
7449
7459
|
}, n))
|
|
7450
7460
|
}, n(e))];
|
|
7451
7461
|
let r = te(e);
|
|
7452
7462
|
return [/* @__PURE__ */ m(va, {
|
|
7453
|
-
onClick: () =>
|
|
7463
|
+
onClick: () => ne(e),
|
|
7454
7464
|
expanded: r,
|
|
7455
7465
|
children: N.map((t, n) => /* @__PURE__ */ m(ya, {
|
|
7456
7466
|
align: t.align,
|
|
@@ -7458,7 +7468,7 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7458
7468
|
disclosure: n === 0 ? r ? "open" : "closed" : void 0,
|
|
7459
7469
|
children: t.render(e)
|
|
7460
7470
|
}, n))
|
|
7461
|
-
}, n(e)), ...r ?
|
|
7471
|
+
}, n(e)), ...r ? V(t).map((t) => /* @__PURE__ */ m(va, {
|
|
7462
7472
|
nested: !0,
|
|
7463
7473
|
onClick: o ? () => o(t) : void 0,
|
|
7464
7474
|
children: N.map((e, n) => /* @__PURE__ */ m(ya, {
|
|
@@ -8049,7 +8059,7 @@ var Vo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8049
8059
|
className: "select-datepicker__nav",
|
|
8050
8060
|
"aria-label": "Mês anterior",
|
|
8051
8061
|
onClick: () => E((e) => Io(e, -1)),
|
|
8052
|
-
children: /* @__PURE__ */ m(
|
|
8062
|
+
children: /* @__PURE__ */ m(W, {})
|
|
8053
8063
|
}),
|
|
8054
8064
|
/* @__PURE__ */ h("span", {
|
|
8055
8065
|
className: "select-datepicker__monthlabel",
|
|
@@ -8064,7 +8074,7 @@ var Vo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8064
8074
|
className: "select-datepicker__nav",
|
|
8065
8075
|
"aria-label": "Próximo mês",
|
|
8066
8076
|
onClick: () => E((e) => Io(e, 1)),
|
|
8067
|
-
children: /* @__PURE__ */ m(
|
|
8077
|
+
children: /* @__PURE__ */ m(U, {})
|
|
8068
8078
|
})
|
|
8069
8079
|
]
|
|
8070
8080
|
}),
|
|
@@ -8103,19 +8113,19 @@ var Vo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8103
8113
|
}),
|
|
8104
8114
|
/* @__PURE__ */ h("div", {
|
|
8105
8115
|
className: "select-datefield__footer",
|
|
8106
|
-
children: [p && w ? /* @__PURE__ */ m(
|
|
8116
|
+
children: [p && w ? /* @__PURE__ */ m(H, {
|
|
8107
8117
|
variant: "secondary",
|
|
8108
8118
|
inline: !0,
|
|
8109
8119
|
onClick: I,
|
|
8110
8120
|
children: "Limpar"
|
|
8111
8121
|
}) : /* @__PURE__ */ m("span", {}), /* @__PURE__ */ h("div", {
|
|
8112
8122
|
className: "select-datefield__footer-right",
|
|
8113
|
-
children: [/* @__PURE__ */ m(
|
|
8123
|
+
children: [/* @__PURE__ */ m(H, {
|
|
8114
8124
|
variant: "secondary",
|
|
8115
8125
|
inline: !0,
|
|
8116
8126
|
onClick: () => P(M),
|
|
8117
8127
|
children: "Hoje"
|
|
8118
|
-
}), r && /* @__PURE__ */ m(
|
|
8128
|
+
}), r && /* @__PURE__ */ m(H, {
|
|
8119
8129
|
variant: "primary",
|
|
8120
8130
|
inline: !0,
|
|
8121
8131
|
onClick: () => C(!1),
|
|
@@ -8785,7 +8795,7 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8785
8795
|
children: [/* @__PURE__ */ m("h3", {
|
|
8786
8796
|
className: "select-balance__title",
|
|
8787
8797
|
children: t
|
|
8788
|
-
}), i && /* @__PURE__ */ m(
|
|
8798
|
+
}), i && /* @__PURE__ */ m(H, {
|
|
8789
8799
|
variant: "primary",
|
|
8790
8800
|
size: "sm",
|
|
8791
8801
|
inline: !0,
|
|
@@ -9521,8 +9531,8 @@ function Q() {
|
|
|
9521
9531
|
let [e, t] = d(null);
|
|
9522
9532
|
return {
|
|
9523
9533
|
tip: e,
|
|
9524
|
-
show: (e) => t(e),
|
|
9525
|
-
hide: () => t(null)
|
|
9534
|
+
show: i((e) => t(e), []),
|
|
9535
|
+
hide: i(() => t(null), [])
|
|
9526
9536
|
};
|
|
9527
9537
|
}
|
|
9528
9538
|
function $({ tip: e, className: t, ...n }) {
|
|
@@ -9568,9 +9578,20 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
9568
9578
|
}, t))]
|
|
9569
9579
|
});
|
|
9570
9580
|
}
|
|
9581
|
+
function Is({ tip: e, onDismiss: t }) {
|
|
9582
|
+
return o(() => {
|
|
9583
|
+
if (e) return window.addEventListener("scroll", t, !0), window.addEventListener("resize", t), () => {
|
|
9584
|
+
window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", t);
|
|
9585
|
+
};
|
|
9586
|
+
}, [e, t]), !e || typeof document > "u" ? null : g(/* @__PURE__ */ m("div", {
|
|
9587
|
+
className: "select select-chart-tiplayer",
|
|
9588
|
+
"aria-hidden": "true",
|
|
9589
|
+
children: /* @__PURE__ */ m($, { tip: e })
|
|
9590
|
+
}), document.body);
|
|
9591
|
+
}
|
|
9571
9592
|
//#endregion
|
|
9572
9593
|
//#region src/SelectBarChart.tsx
|
|
9573
|
-
function
|
|
9594
|
+
function Ls({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
9574
9595
|
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f = ws(Math.max(0, ...e.map((e) => e.value))), p = Ps, g = Math.max(0, c - p.left - p.right), _ = t - p.top - p.bottom, v = e.length > 0 ? g / e.length : 0, y = Math.min(v * .62, 44), b = p.top + _, x = (e) => b - e / f * _;
|
|
9575
9596
|
return /* @__PURE__ */ h("div", {
|
|
9576
9597
|
...a,
|
|
@@ -9647,7 +9668,7 @@ function Is({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
9647
9668
|
}
|
|
9648
9669
|
//#endregion
|
|
9649
9670
|
//#region src/SelectLineChart.tsx
|
|
9650
|
-
function
|
|
9671
|
+
function Rs({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1, className: a, ...o }) {
|
|
9651
9672
|
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } = Es(Math.max(0, ...e.flatMap((e) => e.data))), y = Ps, b = Math.max(0, l - y.left - y.right), x = n - y.top - y.bottom, S = t.length, C = (e) => y.left + (S <= 1 ? b / 2 : e / (S - 1) * b), w = (e) => y.top + x - e / _ * x, T = S > 1 ? b / (S - 1) : b, E = Math.max(1, Math.ceil(S / 7)), D = y.top + x;
|
|
9652
9673
|
return /* @__PURE__ */ h("div", {
|
|
9653
9674
|
...o,
|
|
@@ -9760,7 +9781,7 @@ function Ls({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
9760
9781
|
}
|
|
9761
9782
|
//#endregion
|
|
9762
9783
|
//#region src/SelectStackedArea.tsx
|
|
9763
|
-
function
|
|
9784
|
+
function zs({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
9764
9785
|
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = Array(g).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y = ws(Math.max(0, ..._)), b = Ps, x = Math.max(0, c - b.left - b.right), S = n - b.top - b.bottom, C = (e) => b.left + (g <= 1 ? x / 2 : e / (g - 1) * x), w = (e) => b.top + S - e / y * S, T = g > 1 ? x / (g - 1) : x, E = Math.max(1, Math.ceil(g / 7)), D = b.top + S, O = v[v.length - 1];
|
|
9765
9786
|
return /* @__PURE__ */ h("div", {
|
|
9766
9787
|
...a,
|
|
@@ -9866,7 +9887,7 @@ function Rs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
9866
9887
|
}
|
|
9867
9888
|
//#endregion
|
|
9868
9889
|
//#region src/SelectComboChart.tsx
|
|
9869
|
-
function
|
|
9890
|
+
function Bs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
|
|
9870
9891
|
let { ref: l, width: u } = Y(r), f = Q(), p = s(), [g, _] = d(null), v = {
|
|
9871
9892
|
...Ps,
|
|
9872
9893
|
right: 58
|
|
@@ -9997,7 +10018,7 @@ function zs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
9997
10018
|
}
|
|
9998
10019
|
//#endregion
|
|
9999
10020
|
//#region src/SelectDonut.tsx
|
|
10000
|
-
var
|
|
10021
|
+
var Vs = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r = Z, centerLabel: i, legend: a = !0, gap: o = 2, pie: c = !1, className: l, ...d }, f) {
|
|
10001
10022
|
let p = Q(), g = s(), _ = u(null), v = Cs(_, 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;
|
|
10002
10023
|
return /* @__PURE__ */ h("div", {
|
|
10003
10024
|
ref: f,
|
|
@@ -10089,9 +10110,9 @@ var Bs = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
10089
10110
|
/* @__PURE__ */ m($, { tip: p.tip })
|
|
10090
10111
|
]
|
|
10091
10112
|
});
|
|
10092
|
-
}),
|
|
10093
|
-
function
|
|
10094
|
-
let { ref: u, width: d } = Y(n), f = Q(), p = s(), g = t.length, _ = e.length || 1, v = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), { max: y, values: b } = Es(i ? Math.max(0, ...v) : Math.max(0, ...e.flatMap((e) => e.data)), 4), x = Ps, S = Math.max(0, d - x.left - x.right), C = n - x.top - x.bottom, w = x.top + C, T = g ? S / g : 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, g)), A = (e, t) => e.pattern === "hatch" ? `url(#${p}-p${t})` : `url(#${p}-c${t})`, j = a && g > 0 ? Math.min(g - 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 *
|
|
10113
|
+
}), Hs = 6.4, Us = 12;
|
|
10114
|
+
function Ws({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, marker: a, tooltip: o, className: c, ...l }) {
|
|
10115
|
+
let { ref: u, width: d } = Y(n), f = Q(), p = s(), g = t.length, _ = e.length || 1, v = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), { max: y, values: b } = Es(i ? Math.max(0, ...v) : Math.max(0, ...e.flatMap((e) => e.data)), 4), x = Ps, S = Math.max(0, d - x.left - x.right), C = n - x.top - x.bottom, w = x.top + C, T = g ? S / g : 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, g)), A = (e, t) => e.pattern === "hatch" ? `url(#${p}-p${t})` : `url(#${p}-c${t})`, j = a && g > 0 ? Math.min(g - 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 * Hs + Us) / T)) : 1, P = j ?? 0, F = (e) => N === 1 || ((e - P) % N + N) % N === 0, I = (t, n) => {
|
|
10095
10116
|
if (o) {
|
|
10096
10117
|
let e = o(t);
|
|
10097
10118
|
return e ? {
|
|
@@ -10258,7 +10279,7 @@ function Us({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
10258
10279
|
}
|
|
10259
10280
|
//#endregion
|
|
10260
10281
|
//#region src/SelectChartLegend.tsx
|
|
10261
|
-
function
|
|
10282
|
+
function Gs({ items: e, className: t, ...n }) {
|
|
10262
10283
|
return /* @__PURE__ */ m("div", {
|
|
10263
10284
|
...n,
|
|
10264
10285
|
className: `select-chartlegend${t ? " " + t : ""}`,
|
|
@@ -10287,7 +10308,7 @@ function Ws({ items: e, className: t, ...n }) {
|
|
|
10287
10308
|
}
|
|
10288
10309
|
//#endregion
|
|
10289
10310
|
//#region src/SelectShareBar.tsx
|
|
10290
|
-
function
|
|
10311
|
+
function Ks({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm", onSelect: a, selected: o, hint: s, className: c, ...l }) {
|
|
10291
10312
|
let u = e.map((e, t) => ({
|
|
10292
10313
|
...e,
|
|
10293
10314
|
key: e.key ?? e.label,
|
|
@@ -10392,7 +10413,7 @@ function Gs({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm",
|
|
|
10392
10413
|
}
|
|
10393
10414
|
//#endregion
|
|
10394
10415
|
//#region src/SelectRing.tsx
|
|
10395
|
-
var
|
|
10416
|
+
var qs = 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) {
|
|
10396
10417
|
let p = t > 0 ? t : 100, g = 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 = {
|
|
10397
10418
|
"--select-ring-size": `${n / 16}rem`,
|
|
10398
10419
|
...u
|
|
@@ -10436,7 +10457,7 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10436
10457
|
})]
|
|
10437
10458
|
})]
|
|
10438
10459
|
});
|
|
10439
|
-
}),
|
|
10460
|
+
}), Js = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
|
|
10440
10461
|
let l = (t) => {
|
|
10441
10462
|
let n = e[t];
|
|
10442
10463
|
return n != null && n.state !== "upcoming";
|
|
@@ -10494,7 +10515,7 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10494
10515
|
})
|
|
10495
10516
|
})
|
|
10496
10517
|
});
|
|
10497
|
-
}),
|
|
10518
|
+
}), Ys = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
|
|
10498
10519
|
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;
|
|
10499
10520
|
return /* @__PURE__ */ h("span", {
|
|
10500
10521
|
ref: o,
|
|
@@ -10510,7 +10531,7 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10510
10531
|
children: l
|
|
10511
10532
|
})]
|
|
10512
10533
|
});
|
|
10513
|
-
}),
|
|
10534
|
+
}), Xs = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
|
|
10514
10535
|
return /* @__PURE__ */ m("span", {
|
|
10515
10536
|
ref: a,
|
|
10516
10537
|
"aria-hidden": "true",
|
|
@@ -10518,7 +10539,7 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10518
10539
|
className: `select-icontile select-icontile--${t} select-icontile--${n}${r ? " " + r : ""}`,
|
|
10519
10540
|
children: e
|
|
10520
10541
|
});
|
|
10521
|
-
}),
|
|
10542
|
+
}), Zs = r(function({ tone: e = "neutral", media: t, eyebrow: n, title: r, description: i, actions: a, actionsPlacement: o = "below", aside: s, children: c, className: l, ...u }, d) {
|
|
10522
10543
|
let f = a != null && o === "end";
|
|
10523
10544
|
return /* @__PURE__ */ m("section", {
|
|
10524
10545
|
ref: d,
|
|
@@ -10566,7 +10587,7 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10566
10587
|
})]
|
|
10567
10588
|
})
|
|
10568
10589
|
});
|
|
10569
|
-
}),
|
|
10590
|
+
}), Qs = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
|
|
10570
10591
|
return /* @__PURE__ */ h("article", {
|
|
10571
10592
|
ref: l,
|
|
10572
10593
|
...c,
|
|
@@ -10601,23 +10622,30 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10601
10622
|
})]
|
|
10602
10623
|
})]
|
|
10603
10624
|
});
|
|
10604
|
-
}),
|
|
10625
|
+
}), $s = r(function({ items: e, order: t = "label-first", className: n, ...r }, i) {
|
|
10605
10626
|
return /* @__PURE__ */ m("dl", {
|
|
10606
10627
|
ref: i,
|
|
10607
10628
|
...r,
|
|
10608
10629
|
className: `select-ministats select-ministats--${t}${n ? " " + n : ""}`,
|
|
10609
10630
|
children: e.map((e, t) => /* @__PURE__ */ h("div", {
|
|
10610
10631
|
className: "select-ministats__item",
|
|
10611
|
-
children: [
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10632
|
+
children: [
|
|
10633
|
+
/* @__PURE__ */ m("dt", {
|
|
10634
|
+
className: "select-ministats__label",
|
|
10635
|
+
children: e.label
|
|
10636
|
+
}),
|
|
10637
|
+
/* @__PURE__ */ m("dd", {
|
|
10638
|
+
className: "select-ministats__value",
|
|
10639
|
+
children: e.value
|
|
10640
|
+
}),
|
|
10641
|
+
e.hint != null && /* @__PURE__ */ m("dd", {
|
|
10642
|
+
className: "select-ministats__hint",
|
|
10643
|
+
children: e.hint
|
|
10644
|
+
})
|
|
10645
|
+
]
|
|
10618
10646
|
}, e.key ?? t))
|
|
10619
10647
|
});
|
|
10620
|
-
}),
|
|
10648
|
+
}), ec = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
|
|
10621
10649
|
let o = (t ?? "").replace(/\D/g, "").slice(-4);
|
|
10622
10650
|
return /* @__PURE__ */ h("div", {
|
|
10623
10651
|
ref: a,
|
|
@@ -10660,14 +10688,14 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10660
10688
|
})
|
|
10661
10689
|
]
|
|
10662
10690
|
});
|
|
10663
|
-
}),
|
|
10691
|
+
}), tc = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
|
|
10664
10692
|
let s = Math.max(1, ...e.map((e) => e.value));
|
|
10665
10693
|
return /* @__PURE__ */ m("div", {
|
|
10666
10694
|
ref: o,
|
|
10667
10695
|
...a,
|
|
10668
10696
|
className: `select-funnel select-funnel--${n}${i ? " " + i : ""}`,
|
|
10669
10697
|
children: e.map((i, a) => {
|
|
10670
|
-
let o = a > 0 ? e[a - 1].value || 1 : i.value || 1, c = a > 0 ? i.value / o * 100 : 100, l = n === "mono", u = i.color ?? (l ? a === e.length - 1 ? "var(--select-chart-paid)" : "var(--select-chart-
|
|
10698
|
+
let o = a > 0 ? e[a - 1].value || 1 : i.value || 1, c = a > 0 ? i.value / o * 100 : 100, l = n === "mono", u = i.color ?? (l ? a === e.length - 1 ? "var(--select-chart-paid)" : "var(--select-chart-1)" : X(a));
|
|
10671
10699
|
return /* @__PURE__ */ h("div", {
|
|
10672
10700
|
className: "select-funnel__row",
|
|
10673
10701
|
children: [
|
|
@@ -10702,19 +10730,19 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10702
10730
|
});
|
|
10703
10731
|
//#endregion
|
|
10704
10732
|
//#region src/SelectGauge.tsx
|
|
10705
|
-
function
|
|
10733
|
+
function nc(e) {
|
|
10706
10734
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
10707
10735
|
}
|
|
10708
|
-
function
|
|
10736
|
+
function rc(e, t, n, r) {
|
|
10709
10737
|
let i = Math.PI + r * Math.PI;
|
|
10710
10738
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
10711
10739
|
}
|
|
10712
|
-
function
|
|
10713
|
-
let [a, o] =
|
|
10740
|
+
function ic(e, t, n, r, i) {
|
|
10741
|
+
let [a, o] = rc(e, t, n, r), [s, c] = rc(e, t, n, i);
|
|
10714
10742
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
10715
10743
|
}
|
|
10716
|
-
var
|
|
10717
|
-
let u =
|
|
10744
|
+
var ac = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, oc = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = ac, className: s, ...c }, l) {
|
|
10745
|
+
let u = nc(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, g = r / 2, _ = r / 2, v = _ + f, y = On({
|
|
10718
10746
|
value: u,
|
|
10719
10747
|
format: o
|
|
10720
10748
|
});
|
|
@@ -10737,13 +10765,13 @@ var ic = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10737
10765
|
"aria-hidden": "true",
|
|
10738
10766
|
children: [/* @__PURE__ */ m("path", {
|
|
10739
10767
|
className: "select-gauge__track",
|
|
10740
|
-
d:
|
|
10768
|
+
d: ic(g, _, p, 0, 1),
|
|
10741
10769
|
fill: "none",
|
|
10742
10770
|
strokeWidth: d,
|
|
10743
10771
|
strokeLinecap: "round"
|
|
10744
10772
|
}), u > 0 && /* @__PURE__ */ m("path", {
|
|
10745
10773
|
className: "select-gauge__arc",
|
|
10746
|
-
d:
|
|
10774
|
+
d: ic(g, _, p, 0, u / 100),
|
|
10747
10775
|
fill: "none",
|
|
10748
10776
|
stroke: a ?? "var(--select-chart-1)",
|
|
10749
10777
|
strokeWidth: d,
|
|
@@ -10766,7 +10794,7 @@ var ic = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10766
10794
|
children: n
|
|
10767
10795
|
})]
|
|
10768
10796
|
});
|
|
10769
|
-
}),
|
|
10797
|
+
}), sc = r(function({ columns: e, rows: n, format: r = Z, formatValue: i, color: a = "var(--select-chart-1)", showValues: o = !0, min: s, max: c, cellSize: l = 40, maxCellSize: u = 96, cellHeight: d = 30, className: f, ...p }, g) {
|
|
10770
10798
|
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 = {
|
|
10771
10799
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
10772
10800
|
width: "fit-content",
|
|
@@ -10808,11 +10836,11 @@ var ic = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10808
10836
|
color: l > .55 ? "#fff" : "var(--select-text)"
|
|
10809
10837
|
},
|
|
10810
10838
|
onMouseEnter: (o) => {
|
|
10811
|
-
let c = o.currentTarget.
|
|
10839
|
+
let c = o.currentTarget.getBoundingClientRect(), l = c.top < 72 ? "bottom" : "top";
|
|
10812
10840
|
_.show({
|
|
10813
|
-
x:
|
|
10814
|
-
y:
|
|
10815
|
-
place:
|
|
10841
|
+
x: c.left + c.width / 2,
|
|
10842
|
+
y: l === "bottom" ? c.bottom : c.top,
|
|
10843
|
+
place: l,
|
|
10816
10844
|
title: `${n.label} · ${e[s] ?? ""}`,
|
|
10817
10845
|
rows: [{
|
|
10818
10846
|
label: "Valor",
|
|
@@ -10826,21 +10854,24 @@ var ic = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10826
10854
|
}, c);
|
|
10827
10855
|
})] }, n.label))
|
|
10828
10856
|
]
|
|
10829
|
-
}), /* @__PURE__ */ m(
|
|
10857
|
+
}), /* @__PURE__ */ m(Is, {
|
|
10858
|
+
tip: _.tip,
|
|
10859
|
+
onDismiss: _.hide
|
|
10860
|
+
})]
|
|
10830
10861
|
});
|
|
10831
10862
|
});
|
|
10832
10863
|
//#endregion
|
|
10833
10864
|
//#region src/SelectProgressList.tsx
|
|
10834
|
-
function
|
|
10865
|
+
function cc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1 }) {
|
|
10835
10866
|
if (e.length === 0) return /* @__PURE__ */ m("div", {
|
|
10836
10867
|
className: "select-progresslist__empty",
|
|
10837
10868
|
children: r
|
|
10838
10869
|
});
|
|
10839
|
-
let
|
|
10870
|
+
let a = Math.max(...e.map((e) => e.value), 1);
|
|
10840
10871
|
return /* @__PURE__ */ m("ul", {
|
|
10841
|
-
className: "select-progresslist"
|
|
10872
|
+
className: `select-progresslist${i ? " select-progresslist--spread" : ""}`,
|
|
10842
10873
|
children: e.map((e, r) => {
|
|
10843
|
-
let
|
|
10874
|
+
let i = e.color ?? n ?? X(r);
|
|
10844
10875
|
return /* @__PURE__ */ h("li", {
|
|
10845
10876
|
className: "select-progresslist__row",
|
|
10846
10877
|
children: [
|
|
@@ -10865,8 +10896,8 @@ function sc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
10865
10896
|
children: /* @__PURE__ */ m("span", {
|
|
10866
10897
|
className: "select-progresslist__bar",
|
|
10867
10898
|
style: {
|
|
10868
|
-
width: `${e.value /
|
|
10869
|
-
background: `linear-gradient(90deg, ${
|
|
10899
|
+
width: `${e.value / a * 100}%`,
|
|
10900
|
+
background: `linear-gradient(90deg, ${i}, color-mix(in srgb, ${i} 55%, transparent))`,
|
|
10870
10901
|
animationDelay: `${r * 40}ms`
|
|
10871
10902
|
}
|
|
10872
10903
|
})
|
|
@@ -10882,7 +10913,7 @@ function sc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
10882
10913
|
}
|
|
10883
10914
|
//#endregion
|
|
10884
10915
|
//#region src/SelectRadialBar.tsx
|
|
10885
|
-
var
|
|
10916
|
+
var lc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, uc = 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) {
|
|
10886
10917
|
let d = s(), f = t / 2, p = t / 2;
|
|
10887
10918
|
return /* @__PURE__ */ h("div", {
|
|
10888
10919
|
ref: u,
|
|
@@ -10922,7 +10953,7 @@ var cc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, lc = r(f
|
|
|
10922
10953
|
}) }), e.map((e, i) => {
|
|
10923
10954
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
10924
10955
|
if (a <= n / 2) return null;
|
|
10925
|
-
let o =
|
|
10956
|
+
let o = lc(e.value);
|
|
10926
10957
|
return /* @__PURE__ */ h("g", {
|
|
10927
10958
|
transform: `rotate(-90 ${f} ${p})`,
|
|
10928
10959
|
children: [/* @__PURE__ */ m("circle", {
|
|
@@ -10951,7 +10982,7 @@ var cc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, lc = r(f
|
|
|
10951
10982
|
className: "select-radial__center",
|
|
10952
10983
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ m("strong", {
|
|
10953
10984
|
className: "select-radial__value",
|
|
10954
|
-
children: i(
|
|
10985
|
+
children: i(lc(e[0].value))
|
|
10955
10986
|
}) : null)
|
|
10956
10987
|
})]
|
|
10957
10988
|
}), o && /* @__PURE__ */ m("ul", {
|
|
@@ -10969,15 +11000,15 @@ var cc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, lc = r(f
|
|
|
10969
11000
|
}),
|
|
10970
11001
|
/* @__PURE__ */ m("span", {
|
|
10971
11002
|
className: "select-donut__legval",
|
|
10972
|
-
children: i(
|
|
11003
|
+
children: i(lc(e.value))
|
|
10973
11004
|
})
|
|
10974
11005
|
]
|
|
10975
11006
|
}, t))
|
|
10976
11007
|
})]
|
|
10977
11008
|
});
|
|
10978
|
-
}),
|
|
10979
|
-
function
|
|
10980
|
-
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Y(d), g = Q(), _ = s(), v = c && c > 0 ? c : ws(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(
|
|
11009
|
+
}), dc = 6.1, fc = 12, pc = 56, mc = .4;
|
|
11010
|
+
function hc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
|
|
11011
|
+
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Y(d), g = Q(), _ = s(), v = c && c > 0 ? c : ws(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(pc, y * dc + fc), Math.max(pc, p * mc)), x = o ?? b, S = Math.max(3, Math.floor((x - fc) / dc)), 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));
|
|
10981
11012
|
return /* @__PURE__ */ h("div", {
|
|
10982
11013
|
...u,
|
|
10983
11014
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -11052,7 +11083,7 @@ function mc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
11052
11083
|
onMouseLeave: g.hide
|
|
11053
11084
|
}),
|
|
11054
11085
|
/* @__PURE__ */ h("text", {
|
|
11055
|
-
x: x -
|
|
11086
|
+
x: x - fc / 2,
|
|
11056
11087
|
y: n,
|
|
11057
11088
|
className: "select-chart__ylabel",
|
|
11058
11089
|
dominantBaseline: "middle",
|
|
@@ -11067,7 +11098,7 @@ function mc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
11067
11098
|
}
|
|
11068
11099
|
//#endregion
|
|
11069
11100
|
//#region src/SelectWaterfall.tsx
|
|
11070
|
-
function
|
|
11101
|
+
function gc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11071
11102
|
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
11072
11103
|
if (e.total) return u = e.value, {
|
|
11073
11104
|
...e,
|
|
@@ -11182,7 +11213,7 @@ function hc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11182
11213
|
}
|
|
11183
11214
|
//#endregion
|
|
11184
11215
|
//#region src/SelectBullet.tsx
|
|
11185
|
-
var
|
|
11216
|
+
var _c = (e) => Math.max(0, Math.min(100, e)), vc = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
11186
11217
|
return /* @__PURE__ */ m("div", {
|
|
11187
11218
|
ref: i,
|
|
11188
11219
|
...r,
|
|
@@ -11220,12 +11251,12 @@ var gc = (e) => Math.max(0, Math.min(100, e)), _c = r(function({ items: e, forma
|
|
|
11220
11251
|
children: [/* @__PURE__ */ m("span", {
|
|
11221
11252
|
className: "select-bullet__fill",
|
|
11222
11253
|
style: {
|
|
11223
|
-
width: `${
|
|
11254
|
+
width: `${_c(e.value / i * 100)}%`,
|
|
11224
11255
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
11225
11256
|
}
|
|
11226
11257
|
}), /* @__PURE__ */ m("span", {
|
|
11227
11258
|
className: "select-bullet__tick",
|
|
11228
|
-
style: { left: `${
|
|
11259
|
+
style: { left: `${_c(e.target / i * 100)}%` }
|
|
11229
11260
|
})]
|
|
11230
11261
|
})]
|
|
11231
11262
|
}, `${e.label}-${n}`);
|
|
@@ -11234,7 +11265,7 @@ var gc = (e) => Math.max(0, Math.min(100, e)), _c = r(function({ items: e, forma
|
|
|
11234
11265
|
});
|
|
11235
11266
|
//#endregion
|
|
11236
11267
|
//#region src/SelectTreemap.tsx
|
|
11237
|
-
function
|
|
11268
|
+
function yc(e, t, n) {
|
|
11238
11269
|
let r = [], i = (e, t) => {
|
|
11239
11270
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
11240
11271
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -11285,8 +11316,8 @@ function vc(e, t, n) {
|
|
|
11285
11316
|
};
|
|
11286
11317
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
11287
11318
|
}
|
|
11288
|
-
function
|
|
11289
|
-
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ?
|
|
11319
|
+
function bc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11320
|
+
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? yc(u.map((t) => e[t].value), o, t) : [];
|
|
11290
11321
|
return /* @__PURE__ */ h("div", {
|
|
11291
11322
|
...i,
|
|
11292
11323
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -11356,7 +11387,7 @@ function yc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11356
11387
|
}
|
|
11357
11388
|
//#endregion
|
|
11358
11389
|
//#region src/SelectScatter.tsx
|
|
11359
|
-
function
|
|
11390
|
+
function xc({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
11360
11391
|
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p = ws(i ?? Math.max(0, ...f.map((e) => e.x))), g = ws(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = Ps, y = Math.max(0, u - v.left - v.right), b = t - v.top - v.bottom, x = v.top + b, S = (e) => v.left + e / p * y, C = (e) => x - e / g * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(_) * (o - 4) : 4.5;
|
|
11361
11392
|
return /* @__PURE__ */ h("div", {
|
|
11362
11393
|
...c,
|
|
@@ -11428,7 +11459,7 @@ function bc({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
11428
11459
|
}
|
|
11429
11460
|
//#endregion
|
|
11430
11461
|
//#region src/SelectRadar.tsx
|
|
11431
|
-
var
|
|
11462
|
+
var Sc = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
|
|
11432
11463
|
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? ws(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [g + t * Math.cos(b(e)), _ + t * Math.sin(b(e))], S = (e) => e.map((e, t) => `${t === 0 ? "M" : "L"}${x(t, e).map((e) => e.toFixed(2)).join(",")}`).join(" ") + " Z";
|
|
11433
11464
|
return /* @__PURE__ */ h("div", {
|
|
11434
11465
|
ref: u,
|
|
@@ -11538,7 +11569,7 @@ var xc = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
11538
11569
|
});
|
|
11539
11570
|
//#endregion
|
|
11540
11571
|
//#region src/SelectSankey.tsx
|
|
11541
|
-
function
|
|
11572
|
+
function Cc({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
11542
11573
|
let { ref: s, width: c } = Y(t), l = Q(), u = [], d = [];
|
|
11543
11574
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
11544
11575
|
let f = e.reduce((e, t) => e + t.value, 0) || 1, p = (t, n) => e.filter((e) => e[n] === t).reduce((e, t) => e + t.value, 0), g = t - 12, _ = Math.max(u.length, d.length), v = (g - i * Math.max(0, _ - 1)) / f, y = (e, t, n) => {
|
|
@@ -11623,7 +11654,7 @@ function Sc({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
11623
11654
|
}
|
|
11624
11655
|
//#endregion
|
|
11625
11656
|
//#region src/SelectCandlestick.tsx
|
|
11626
|
-
function
|
|
11657
|
+
function wc({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
11627
11658
|
let { ref: s, width: c } = Y(t), l = Q(), u = Ps, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, g = Math.max(1, ...e.map((e) => e.high)), _ = Math.min(g, ...e.map((e) => e.low)), v = (g - _) * .08 || 1, y = _ - v, b = g + v, x = (e) => p - (e - y) / (b - y) * f, S = e.length, C = S ? d / S : 0, w = Math.min(C * .5, 18), T = Array.from({ length: 5 }, (e, t) => y + (b - y) * t / 4);
|
|
11628
11659
|
return /* @__PURE__ */ h("div", {
|
|
11629
11660
|
...o,
|
|
@@ -11713,7 +11744,7 @@ function Cc({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
11713
11744
|
}
|
|
11714
11745
|
//#endregion
|
|
11715
11746
|
//#region src/SelectBoxPlot.tsx
|
|
11716
|
-
function
|
|
11747
|
+
function Tc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11717
11748
|
let { ref: a, width: o } = Y(t), s = Q(), c = Ps, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = ws(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .5, 40);
|
|
11718
11749
|
return /* @__PURE__ */ h("div", {
|
|
11719
11750
|
...i,
|
|
@@ -11833,7 +11864,7 @@ function wc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11833
11864
|
}
|
|
11834
11865
|
//#endregion
|
|
11835
11866
|
//#region src/SelectRangeBar.tsx
|
|
11836
|
-
function
|
|
11867
|
+
function Ec({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
11837
11868
|
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } = Y(l), f = Q(), p = s(), g = n ?? Math.min(0, ...e.map((e) => e.start)), _ = (r ?? Math.max(1, ...e.map((e) => e.end))) - g || 1, v = a, y = Math.max(0, d - v - 14), b = l - 6 - 26, x = e.length ? b / e.length : 0, S = Math.min(x * .6, 22), C = (e) => v + (e - g) / _ * y, w = Array.from({ length: 5 }, (e, t) => g + _ * t / 4);
|
|
11838
11869
|
return /* @__PURE__ */ h("div", {
|
|
11839
11870
|
...c,
|
|
@@ -11914,7 +11945,7 @@ function Tc({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
11914
11945
|
}
|
|
11915
11946
|
//#endregion
|
|
11916
11947
|
//#region src/SelectCalendarHeatmap.tsx
|
|
11917
|
-
var
|
|
11948
|
+
var Dc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
11918
11949
|
"Seg",
|
|
11919
11950
|
"",
|
|
11920
11951
|
"Qua",
|
|
@@ -11987,7 +12018,7 @@ var Ec = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
11987
12018
|
]
|
|
11988
12019
|
}), /* @__PURE__ */ m($, { tip: p.tip })]
|
|
11989
12020
|
});
|
|
11990
|
-
}),
|
|
12021
|
+
}), Oc = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
11991
12022
|
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = ws(Math.max(1, ...e.map((e) => e.value))), g = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, _ = 360 / f;
|
|
11992
12023
|
return /* @__PURE__ */ h("div", {
|
|
11993
12024
|
ref: s,
|
|
@@ -12061,7 +12092,7 @@ var Ec = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
12061
12092
|
});
|
|
12062
12093
|
//#endregion
|
|
12063
12094
|
//#region src/SelectSlope.tsx
|
|
12064
|
-
function
|
|
12095
|
+
function kc({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
12065
12096
|
let { ref: s, width: c } = Y(r), l = Q(), u = {
|
|
12066
12097
|
top: 24,
|
|
12067
12098
|
right: 64,
|
|
@@ -12183,7 +12214,7 @@ function Oc({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
12183
12214
|
}
|
|
12184
12215
|
//#endregion
|
|
12185
12216
|
//#region src/SelectDumbbell.tsx
|
|
12186
|
-
function
|
|
12217
|
+
function Ac({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
12187
12218
|
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Y(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", g = ws(Math.max(1, ...e.flatMap((e) => [e.from, e.to]))), _ = a, v = Math.max(0, u - _ - 14), y = c - 6 - 26, b = e.length ? y / e.length : 0, x = (e) => _ + e / g * v;
|
|
12188
12219
|
return /* @__PURE__ */ h("div", {
|
|
12189
12220
|
...s,
|
|
@@ -12276,7 +12307,7 @@ function kc({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
12276
12307
|
}
|
|
12277
12308
|
//#endregion
|
|
12278
12309
|
//#region src/SelectMarimekko.tsx
|
|
12279
|
-
function
|
|
12310
|
+
function jc({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
12280
12311
|
let { ref: o, width: s } = Y(t), c = Q(), l = {
|
|
12281
12312
|
top: 6,
|
|
12282
12313
|
right: 6,
|
|
@@ -12356,7 +12387,7 @@ function Ac({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
12356
12387
|
}
|
|
12357
12388
|
//#endregion
|
|
12358
12389
|
//#region src/SelectGaugeBands.tsx
|
|
12359
|
-
var
|
|
12390
|
+
var Mc = 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) {
|
|
12360
12391
|
let u = i ?? Math.max(10, Math.round(r * .08)), d = u / 2 + 2, f = r / 2 - d, p = r / 2, g = r / 2, _ = g + d, v = (e) => Math.max(0, Math.min(t, e)), y = (e) => {
|
|
12361
12392
|
let t = Math.PI + e * Math.PI;
|
|
12362
12393
|
return [p + f * Math.cos(t), g + f * Math.sin(t)];
|
|
@@ -12428,7 +12459,7 @@ var jc = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
12428
12459
|
});
|
|
12429
12460
|
//#endregion
|
|
12430
12461
|
//#region src/SelectStreamGraph.tsx
|
|
12431
|
-
function
|
|
12462
|
+
function Nc({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
12432
12463
|
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = {
|
|
12433
12464
|
top: 14,
|
|
12434
12465
|
right: 14,
|
|
@@ -12519,7 +12550,7 @@ function Mc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
12519
12550
|
}
|
|
12520
12551
|
//#endregion
|
|
12521
12552
|
//#region src/SelectSunburst.tsx
|
|
12522
|
-
var
|
|
12553
|
+
var Pc = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
12523
12554
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
12524
12555
|
var t;
|
|
12525
12556
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -12612,7 +12643,7 @@ var Nc = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
12612
12643
|
});
|
|
12613
12644
|
//#endregion
|
|
12614
12645
|
//#region src/SelectViolin.tsx
|
|
12615
|
-
function
|
|
12646
|
+
function Fc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
12616
12647
|
let { ref: a, width: o } = Y(t), s = Q(), c = Ps, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = ws(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
|
|
12617
12648
|
return /* @__PURE__ */ h("div", {
|
|
12618
12649
|
...i,
|
|
@@ -12700,7 +12731,7 @@ function Pc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
12700
12731
|
}
|
|
12701
12732
|
//#endregion
|
|
12702
12733
|
//#region src/SelectChord.tsx
|
|
12703
|
-
var
|
|
12734
|
+
var Ic = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
12704
12735
|
let c = Q(), l = t.length, u = n / 2, d = n / 2, f = n / 2 - 22, p = f - 9, g = e.map((e) => e.reduce((e, t) => e + t, 0)), _ = g.reduce((e, t) => e + t, 0) || 1, v = (2 * Math.PI - l * i) / _, y = [], b = 0;
|
|
12705
12736
|
for (let e = 0; e < l; e++) {
|
|
12706
12737
|
let t = b, n = b + g[e] * v;
|
|
@@ -12785,7 +12816,7 @@ var Fc = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
12785
12816
|
});
|
|
12786
12817
|
//#endregion
|
|
12787
12818
|
//#region src/SelectHexbin.tsx
|
|
12788
|
-
function
|
|
12819
|
+
function Lc({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
12789
12820
|
let { ref: l, width: u } = Y(t), d = Q(), f = Math.max(0, u - 24), p = t - 24, g = i ?? Math.max(1, ...e.map((e) => e.x)), _ = a ?? Math.max(1, ...e.map((e) => e.y)), v = (e) => 12 + e / g * f, y = (e) => 12 + p - e / _ * p, b = n, x = Math.sqrt(3), S = (e, t) => {
|
|
12790
12821
|
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);
|
|
12791
12822
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
@@ -12837,7 +12868,7 @@ function Ic({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
12837
12868
|
}
|
|
12838
12869
|
//#endregion
|
|
12839
12870
|
//#region src/SelectWordCloud.tsx
|
|
12840
|
-
var
|
|
12871
|
+
var Rc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
12841
12872
|
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);
|
|
12842
12873
|
return /* @__PURE__ */ m("div", {
|
|
12843
12874
|
ref: a,
|
|
@@ -12854,7 +12885,7 @@ var Lc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
12854
12885
|
children: e.text
|
|
12855
12886
|
}, `${e.text}-${t}`))
|
|
12856
12887
|
});
|
|
12857
|
-
}),
|
|
12888
|
+
}), zc = [
|
|
12858
12889
|
[
|
|
12859
12890
|
-59.6,
|
|
12860
12891
|
-80,
|
|
@@ -23249,24 +23280,24 @@ var Lc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
23249
23280
|
-27.1,
|
|
23250
23281
|
83.5
|
|
23251
23282
|
]
|
|
23252
|
-
],
|
|
23253
|
-
function
|
|
23254
|
-
let n = e *
|
|
23283
|
+
], Bc = Math.PI / 180;
|
|
23284
|
+
function Vc(e, t) {
|
|
23285
|
+
let n = e * Bc, r = t * Bc;
|
|
23255
23286
|
return [
|
|
23256
23287
|
Math.cos(n) * Math.sin(r),
|
|
23257
23288
|
Math.sin(n),
|
|
23258
23289
|
Math.cos(n) * Math.cos(r)
|
|
23259
23290
|
];
|
|
23260
23291
|
}
|
|
23261
|
-
function
|
|
23262
|
-
let a = r *
|
|
23292
|
+
function Hc([e, t, n], r, i) {
|
|
23293
|
+
let a = r * Bc, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * Bc;
|
|
23263
23294
|
return [
|
|
23264
23295
|
o,
|
|
23265
23296
|
t * Math.cos(c) - s * Math.sin(c),
|
|
23266
23297
|
t * Math.sin(c) + s * Math.cos(c)
|
|
23267
23298
|
];
|
|
23268
23299
|
}
|
|
23269
|
-
function
|
|
23300
|
+
function Uc(e, t, n) {
|
|
23270
23301
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
23271
23302
|
r = Math.max(-1, Math.min(1, r));
|
|
23272
23303
|
let i = Math.acos(r);
|
|
@@ -23278,7 +23309,7 @@ function Hc(e, t, n) {
|
|
|
23278
23309
|
e[2] * o + t[2] * s
|
|
23279
23310
|
];
|
|
23280
23311
|
}
|
|
23281
|
-
var
|
|
23312
|
+
var Wc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, Gc = r(function({ points: e = [], arcs: t = [], size: n = 320, tilt: r = -18, spin: i = !0, speed: a = 7, color: c = "var(--select-chart-1)", format: f = Z, legend: p = !0, map: g = !0, fluid: _ = !1, onZoomChange: v, className: y, ...b }, x) {
|
|
23282
23313
|
var S, C;
|
|
23283
23314
|
let w = s(), T = Q(), E = u(null), D = Cs(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = u(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = u({
|
|
23284
23315
|
lng: -O,
|
|
@@ -23286,10 +23317,10 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23286
23317
|
}), j = u({
|
|
23287
23318
|
lng: 0,
|
|
23288
23319
|
lat: 0
|
|
23289
|
-
}), M = u(1), N = u(null), P = u(null), F = u(!1), I = u(0), L = u(0), ee = u(0), [, te] = d(0), [
|
|
23290
|
-
L.current || (ee.current = performance.now(), L.current = requestAnimationFrame(
|
|
23320
|
+
}), M = u(1), N = u(null), P = u(null), F = u(!1), I = u(0), L = u(0), ee = u(0), [, te] = d(0), [ne, R] = d(!1), [z, B] = d(null), V = () => {
|
|
23321
|
+
L.current || (ee.current = performance.now(), L.current = requestAnimationFrame(H));
|
|
23291
23322
|
};
|
|
23292
|
-
function
|
|
23323
|
+
function H(e) {
|
|
23293
23324
|
let t = Math.min(.05, (e - ee.current) / 1e3);
|
|
23294
23325
|
ee.current = e, I.current += t;
|
|
23295
23326
|
let n = j.current, r = Math.abs(n.lng) + Math.abs(n.lat) > .02;
|
|
@@ -23299,24 +23330,24 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23299
23330
|
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);
|
|
23300
23331
|
} 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));
|
|
23301
23332
|
}
|
|
23302
|
-
te((e) => (e + 1) % 1e6), !k.current || P.current || N.current || Math.abs(n.lng) + Math.abs(n.lat) > .02 ? L.current = requestAnimationFrame(
|
|
23333
|
+
te((e) => (e + 1) % 1e6), !k.current || P.current || N.current || Math.abs(n.lng) + Math.abs(n.lat) > .02 ? L.current = requestAnimationFrame(H) : L.current = 0;
|
|
23303
23334
|
}
|
|
23304
|
-
o(() => (k.current ||
|
|
23335
|
+
o(() => (k.current || V(), () => {
|
|
23305
23336
|
L.current && cancelAnimationFrame(L.current), L.current = 0;
|
|
23306
23337
|
}), []);
|
|
23307
|
-
let
|
|
23308
|
-
|
|
23338
|
+
let re = u(v);
|
|
23339
|
+
re.current = v, o(() => {
|
|
23309
23340
|
let e = E.current;
|
|
23310
23341
|
if (!e) return;
|
|
23311
23342
|
let t = (e) => {
|
|
23312
23343
|
var t;
|
|
23313
23344
|
e.preventDefault();
|
|
23314
23345
|
let n = Math.max(-240, Math.min(240, e.deltaMode ? e.deltaY * 40 : e.deltaY)), r = M.current * Math.exp(-n * .0012);
|
|
23315
|
-
M.current = Math.max(.8, Math.min(1.8, r)), (t =
|
|
23346
|
+
M.current = Math.max(.8, Math.min(1.8, r)), (t = re.current) == null || t.call(re, M.current), V(), te((e) => (e + 1) % 1e6);
|
|
23316
23347
|
};
|
|
23317
23348
|
return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
|
|
23318
23349
|
}, []);
|
|
23319
|
-
let
|
|
23350
|
+
let ie = (e) => {
|
|
23320
23351
|
var t, n;
|
|
23321
23352
|
(t = (n = e.target).setPointerCapture) == null || t.call(n, e.pointerId), P.current = {
|
|
23322
23353
|
x: e.clientX,
|
|
@@ -23324,8 +23355,8 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23324
23355
|
}, j.current = {
|
|
23325
23356
|
lng: 0,
|
|
23326
23357
|
lat: 0
|
|
23327
|
-
}, N.current = null,
|
|
23328
|
-
},
|
|
23358
|
+
}, N.current = null, R(!0), V();
|
|
23359
|
+
}, U = (e) => {
|
|
23329
23360
|
if (!P.current) return;
|
|
23330
23361
|
let t = .34 / M.current, n = e.clientX - P.current.x, r = e.clientY - P.current.y;
|
|
23331
23362
|
P.current = {
|
|
@@ -23335,11 +23366,11 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23335
23366
|
lng: n * t,
|
|
23336
23367
|
lat: r * t
|
|
23337
23368
|
};
|
|
23338
|
-
},
|
|
23369
|
+
}, W = (e) => {
|
|
23339
23370
|
var t, n;
|
|
23340
|
-
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null,
|
|
23371
|
+
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, R(!1), V());
|
|
23341
23372
|
}, G = (D / 2 - 6) * M.current, K = D / 2, q = D / 2, ae = (e) => {
|
|
23342
|
-
let t =
|
|
23373
|
+
let t = Hc(e, A.current.lng, A.current.lat);
|
|
23343
23374
|
return {
|
|
23344
23375
|
x: K + G * t[0],
|
|
23345
23376
|
y: q - G * t[1],
|
|
@@ -23349,25 +23380,25 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23349
23380
|
let e = [];
|
|
23350
23381
|
for (let t = -180; t < 180; t += 30) {
|
|
23351
23382
|
let n = [];
|
|
23352
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
23383
|
+
for (let e = 0; e <= 48; e++) n.push(Vc(-90 + 180 * e / 48, t));
|
|
23353
23384
|
e.push(n);
|
|
23354
23385
|
}
|
|
23355
23386
|
for (let t = -60; t <= 60; t += 30) {
|
|
23356
23387
|
let n = [];
|
|
23357
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
23388
|
+
for (let e = 0; e <= 48; e++) n.push(Vc(t, -180 + 360 * e / 48));
|
|
23358
23389
|
e.push(n);
|
|
23359
23390
|
}
|
|
23360
23391
|
return e;
|
|
23361
|
-
}, []), se = l(() =>
|
|
23392
|
+
}, []), se = l(() => zc.map((e) => {
|
|
23362
23393
|
let t = [];
|
|
23363
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
23394
|
+
for (let n = 0; n < e.length; n += 2) t.push(Vc(e[n + 1], e[n]));
|
|
23364
23395
|
return t;
|
|
23365
23396
|
}), []), J = (e) => ({
|
|
23366
23397
|
x: K + G * e[0],
|
|
23367
23398
|
y: q - G * e[1]
|
|
23368
23399
|
}), ce = "", le = "";
|
|
23369
23400
|
if (g) for (let e of se) {
|
|
23370
|
-
let t = e.map((e) =>
|
|
23401
|
+
let t = e.map((e) => Hc(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
23371
23402
|
for (let e of t) if (e[2] > 0) {
|
|
23372
23403
|
let t = J(e);
|
|
23373
23404
|
le += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -23415,7 +23446,7 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23415
23446
|
}
|
|
23416
23447
|
return t;
|
|
23417
23448
|
}, de = Math.max(1, ...e.map((e) => e.value ?? 0)), fe = e.map((e, t) => {
|
|
23418
|
-
let n = ae(
|
|
23449
|
+
let n = ae(Vc(e.lat, e.lng));
|
|
23419
23450
|
return {
|
|
23420
23451
|
...e,
|
|
23421
23452
|
i: t,
|
|
@@ -23424,21 +23455,21 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23424
23455
|
r: 3 + Math.max(0, e.value ?? 0) / de * 6,
|
|
23425
23456
|
col: e.color ?? c
|
|
23426
23457
|
};
|
|
23427
|
-
}), pe =
|
|
23428
|
-
let n =
|
|
23458
|
+
}), pe = z == null ? null : e[z], me = t.map((e, t) => {
|
|
23459
|
+
let n = Vc(e.from.lat, e.from.lng), r = Vc(e.to.lat, e.to.lng), i = "", a = !1;
|
|
23429
23460
|
for (let e = 0; e <= 40; e++) {
|
|
23430
|
-
let t = e / 40, o =
|
|
23461
|
+
let t = e / 40, o = Uc(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = Hc(o, A.current.lng, A.current.lat), l = ae([
|
|
23431
23462
|
o[0] * s,
|
|
23432
23463
|
o[1] * s,
|
|
23433
23464
|
o[2] * s
|
|
23434
23465
|
]);
|
|
23435
23466
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
23436
23467
|
}
|
|
23437
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
23468
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = Uc(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = Hc(s, A.current.lng, A.current.lat), d = ae([
|
|
23438
23469
|
s[0] * l,
|
|
23439
23470
|
s[1] * l,
|
|
23440
23471
|
s[2] * l
|
|
23441
|
-
]), f = pe != null && (
|
|
23472
|
+
]), f = pe != null && (Wc(e.from, pe) || Wc(e.to, pe));
|
|
23442
23473
|
return {
|
|
23443
23474
|
d: i,
|
|
23444
23475
|
col: e.color ?? c,
|
|
@@ -23456,7 +23487,7 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23456
23487
|
className: `select-globe${y ? " " + y : ""}`,
|
|
23457
23488
|
children: [/* @__PURE__ */ h("div", {
|
|
23458
23489
|
ref: E,
|
|
23459
|
-
className: `select-globe__stage${
|
|
23490
|
+
className: `select-globe__stage${ne ? " is-grabbing" : ""}`,
|
|
23460
23491
|
style: {
|
|
23461
23492
|
width: _ ? "100%" : `${n / 16}rem`,
|
|
23462
23493
|
aspectRatio: "1"
|
|
@@ -23465,11 +23496,11 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23465
23496
|
F.current = !0;
|
|
23466
23497
|
},
|
|
23467
23498
|
onPointerLeave: (e) => {
|
|
23468
|
-
F.current = !1,
|
|
23499
|
+
F.current = !1, W(e), B(null), T.hide(), V();
|
|
23469
23500
|
},
|
|
23470
|
-
onPointerDown:
|
|
23471
|
-
onPointerMove:
|
|
23472
|
-
onPointerUp:
|
|
23501
|
+
onPointerDown: ie,
|
|
23502
|
+
onPointerMove: U,
|
|
23503
|
+
onPointerUp: W,
|
|
23473
23504
|
children: [/* @__PURE__ */ h("svg", {
|
|
23474
23505
|
width: D,
|
|
23475
23506
|
height: D,
|
|
@@ -23634,7 +23665,7 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23634
23665
|
]
|
|
23635
23666
|
}),
|
|
23636
23667
|
fe.filter((e) => e.vis).map((e) => {
|
|
23637
|
-
let t =
|
|
23668
|
+
let t = z === e.i;
|
|
23638
23669
|
return /* @__PURE__ */ h("g", {
|
|
23639
23670
|
style: { opacity: he && !t ? .45 : 1 },
|
|
23640
23671
|
children: [
|
|
@@ -23661,7 +23692,7 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23661
23692
|
fill: e.col,
|
|
23662
23693
|
className: "select-globe__point",
|
|
23663
23694
|
onPointerEnter: () => {
|
|
23664
|
-
|
|
23695
|
+
B(e.i), T.show({
|
|
23665
23696
|
x: e.p.x,
|
|
23666
23697
|
y: e.p.y - e.r - 4,
|
|
23667
23698
|
place: e.p.y < q ? "bottom" : "top",
|
|
@@ -23674,13 +23705,13 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23674
23705
|
});
|
|
23675
23706
|
},
|
|
23676
23707
|
onPointerLeave: () => {
|
|
23677
|
-
|
|
23708
|
+
B(null), T.hide();
|
|
23678
23709
|
},
|
|
23679
23710
|
onClick: () => {
|
|
23680
23711
|
N.current = {
|
|
23681
23712
|
lng: -e.lng,
|
|
23682
23713
|
lat: r
|
|
23683
|
-
},
|
|
23714
|
+
}, V();
|
|
23684
23715
|
}
|
|
23685
23716
|
})
|
|
23686
23717
|
]
|
|
@@ -23712,7 +23743,7 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23712
23743
|
});
|
|
23713
23744
|
//#endregion
|
|
23714
23745
|
//#region src/SelectTicker.tsx
|
|
23715
|
-
function
|
|
23746
|
+
function Kc({ children: e, speed: t = 28, className: n, ...r }) {
|
|
23716
23747
|
let i = u(null), a = u(null), s = u(null), c = Cs(i, 0), l = Cs(s, 0), d = c > 0 && l > c + 1, f = u(0), p = u(null), g = u(!1);
|
|
23717
23748
|
o(() => {
|
|
23718
23749
|
var e, n;
|
|
@@ -23774,7 +23805,7 @@ function Gc({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
23774
23805
|
}
|
|
23775
23806
|
//#endregion
|
|
23776
23807
|
//#region src/SelectPareto.tsx
|
|
23777
|
-
function
|
|
23808
|
+
function qc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
23778
23809
|
var a;
|
|
23779
23810
|
let { ref: o, width: c } = Y(t), l = Q(), u = s(), [f, p] = d(null), g = {
|
|
23780
23811
|
...Ps,
|
|
@@ -23900,7 +23931,7 @@ function Kc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
23900
23931
|
}
|
|
23901
23932
|
//#endregion
|
|
23902
23933
|
//#region src/SelectWaffle.tsx
|
|
23903
|
-
var
|
|
23934
|
+
var Jc = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
23904
23935
|
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) => ({
|
|
23905
23936
|
i: t,
|
|
23906
23937
|
frac: e - u[t]
|
|
@@ -23949,7 +23980,7 @@ var qc = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
23949
23980
|
});
|
|
23950
23981
|
//#endregion
|
|
23951
23982
|
//#region src/SelectPyramid.tsx
|
|
23952
|
-
function
|
|
23983
|
+
function Yc({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
23953
23984
|
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: f, width: p } = Y(u), g = Q(), [_, v] = d(null), y = Math.max(1, ...e.flatMap((e) => [e.left, e.right])), b = Math.max(0, (p - s - 16) / 2), x = e.length ? (u - 26 - 8) / e.length : 0, S = Math.min(x * .6, 26), C = 8 + b, w = 8 + b + s, T = a ?? X(1), E = o ?? X(0);
|
|
23954
23985
|
return /* @__PURE__ */ h("div", {
|
|
23955
23986
|
...l,
|
|
@@ -24057,7 +24088,7 @@ function Jc({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
24057
24088
|
}
|
|
24058
24089
|
//#endregion
|
|
24059
24090
|
//#region src/SelectBump.tsx
|
|
24060
|
-
function
|
|
24091
|
+
function Xc({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
24061
24092
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
24062
24093
|
top: 16,
|
|
24063
24094
|
right: 78,
|
|
@@ -24142,7 +24173,7 @@ function Yc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
24142
24173
|
}
|
|
24143
24174
|
//#endregion
|
|
24144
24175
|
//#region src/SelectParallel.tsx
|
|
24145
|
-
function
|
|
24176
|
+
function Zc({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
24146
24177
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
24147
24178
|
top: 30,
|
|
24148
24179
|
right: 28,
|
|
@@ -24234,25 +24265,25 @@ function Xc({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
24234
24265
|
}
|
|
24235
24266
|
//#endregion
|
|
24236
24267
|
//#region src/SelectIcicle.tsx
|
|
24237
|
-
function
|
|
24238
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
24268
|
+
function Qc(e) {
|
|
24269
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + Qc(t), 0) : e.value ?? 0;
|
|
24239
24270
|
}
|
|
24240
|
-
function
|
|
24241
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
24271
|
+
function $c(e, t = 0) {
|
|
24272
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => $c(e, t + 1)));
|
|
24242
24273
|
}
|
|
24243
|
-
function
|
|
24244
|
-
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u =
|
|
24274
|
+
function el({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
24275
|
+
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u = $c(e), f = t / (u + 1), p = [], g = (e, t, n, r, i) => {
|
|
24245
24276
|
if (p.push({
|
|
24246
24277
|
node: e,
|
|
24247
24278
|
x0: t,
|
|
24248
24279
|
x1: n,
|
|
24249
24280
|
depth: r,
|
|
24250
24281
|
color: e.color ?? X(i),
|
|
24251
|
-
value:
|
|
24282
|
+
value: Qc(e)
|
|
24252
24283
|
}), e.children && e.children.length) {
|
|
24253
|
-
let a = e.children.reduce((e, t) => e +
|
|
24284
|
+
let a = e.children.reduce((e, t) => e + Qc(t), 0) || 1, o = t;
|
|
24254
24285
|
e.children.forEach((e, s) => {
|
|
24255
|
-
let c = (n - t) *
|
|
24286
|
+
let c = (n - t) * Qc(e) / a;
|
|
24256
24287
|
g(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
24257
24288
|
});
|
|
24258
24289
|
}
|
|
@@ -24313,7 +24344,7 @@ function $c({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
24313
24344
|
}
|
|
24314
24345
|
//#endregion
|
|
24315
24346
|
//#region src/SelectTree.tsx
|
|
24316
|
-
function
|
|
24347
|
+
function tl({ data: e, height: t = 260, className: n, ...r }) {
|
|
24317
24348
|
let { ref: i, width: a } = Y(t), o = Q(), [s, c] = d(null), l = {
|
|
24318
24349
|
top: 14,
|
|
24319
24350
|
right: 96,
|
|
@@ -24391,7 +24422,7 @@ function el({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
24391
24422
|
}
|
|
24392
24423
|
//#endregion
|
|
24393
24424
|
//#region src/SelectVenn.tsx
|
|
24394
|
-
var
|
|
24425
|
+
var nl = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
24395
24426
|
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]] : [
|
|
24396
24427
|
[o, s - l * .5],
|
|
24397
24428
|
[o - l * .5, s + l * .36],
|
|
@@ -24456,7 +24487,7 @@ var tl = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
24456
24487
|
}, t))
|
|
24457
24488
|
})]
|
|
24458
24489
|
});
|
|
24459
|
-
}),
|
|
24490
|
+
}), rl = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
24460
24491
|
let o = Q(), [s, c] = d(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
24461
24492
|
d: e,
|
|
24462
24493
|
i: t,
|
|
@@ -24559,7 +24590,7 @@ var tl = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
24559
24590
|
});
|
|
24560
24591
|
//#endregion
|
|
24561
24592
|
//#region src/SelectNetwork.tsx
|
|
24562
|
-
function
|
|
24593
|
+
function il({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
24563
24594
|
let { ref: o, width: s } = Y(n), c = Q(), [u, f] = d(null), p = l(() => {
|
|
24564
24595
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
24565
24596
|
if (!a) return o;
|
|
@@ -24673,7 +24704,7 @@ function rl({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
24673
24704
|
}
|
|
24674
24705
|
//#endregion
|
|
24675
24706
|
//#region src/SelectSearchMenu.tsx
|
|
24676
|
-
function
|
|
24707
|
+
function al({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", children: o }) {
|
|
24677
24708
|
return /* @__PURE__ */ h("div", {
|
|
24678
24709
|
className: "select-combobox__panel select-searchmenu",
|
|
24679
24710
|
style: { width: a },
|
|
@@ -24690,7 +24721,7 @@ function il({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
24690
24721
|
className: "select-combobox__empty",
|
|
24691
24722
|
role: "status",
|
|
24692
24723
|
children: r
|
|
24693
|
-
}) : /* @__PURE__ */ m(
|
|
24724
|
+
}) : /* @__PURE__ */ m(ol, { children: o }),
|
|
24694
24725
|
i != null && i !== !1 ? /* @__PURE__ */ m("div", {
|
|
24695
24726
|
className: "select-searchmenu__footer",
|
|
24696
24727
|
children: i
|
|
@@ -24698,7 +24729,7 @@ function il({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
24698
24729
|
]
|
|
24699
24730
|
});
|
|
24700
24731
|
}
|
|
24701
|
-
function
|
|
24732
|
+
function ol({ children: e }) {
|
|
24702
24733
|
let t = Dn({
|
|
24703
24734
|
selector: ".select-combobox__option",
|
|
24704
24735
|
y: 6,
|
|
@@ -24712,7 +24743,7 @@ function al({ children: e }) {
|
|
|
24712
24743
|
children: e
|
|
24713
24744
|
});
|
|
24714
24745
|
}
|
|
24715
|
-
function
|
|
24746
|
+
function sl({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSelect: i }) {
|
|
24716
24747
|
return /* @__PURE__ */ h("button", {
|
|
24717
24748
|
type: "button",
|
|
24718
24749
|
role: "option",
|
|
@@ -24738,7 +24769,7 @@ function ol({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSele
|
|
|
24738
24769
|
}
|
|
24739
24770
|
//#endregion
|
|
24740
24771
|
//#region src/SelectThemeSwitcher.tsx
|
|
24741
|
-
var
|
|
24772
|
+
var cl = [
|
|
24742
24773
|
{
|
|
24743
24774
|
value: "light",
|
|
24744
24775
|
label: "Claro",
|
|
@@ -24755,15 +24786,15 @@ var sl = [
|
|
|
24755
24786
|
icon: /* @__PURE__ */ m(Oe, {})
|
|
24756
24787
|
}
|
|
24757
24788
|
];
|
|
24758
|
-
function
|
|
24789
|
+
function ll(e) {
|
|
24759
24790
|
if (e === "system") {
|
|
24760
24791
|
var t, n;
|
|
24761
24792
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
24762
24793
|
}
|
|
24763
24794
|
return e;
|
|
24764
24795
|
}
|
|
24765
|
-
function
|
|
24766
|
-
let [i, a] = d(!1), s = u(null), c =
|
|
24796
|
+
function ul({ value: e, onChange: t, className: n, ...r }) {
|
|
24797
|
+
let [i, a] = d(!1), s = u(null), c = cl.find((t) => t.value === e) ?? cl[2];
|
|
24767
24798
|
return o(() => {
|
|
24768
24799
|
if (!i) return;
|
|
24769
24800
|
let e = (e) => {
|
|
@@ -24783,7 +24814,7 @@ function ll({ value: e, onChange: t, className: n, ...r }) {
|
|
|
24783
24814
|
})
|
|
24784
24815
|
}), i && /* @__PURE__ */ m("div", {
|
|
24785
24816
|
className: "select-themeswitcher__popover",
|
|
24786
|
-
children: /* @__PURE__ */ m(xa, { children:
|
|
24817
|
+
children: /* @__PURE__ */ m(xa, { children: cl.map((n) => /* @__PURE__ */ m(Ca, {
|
|
24787
24818
|
icon: n.icon,
|
|
24788
24819
|
active: n.value === e,
|
|
24789
24820
|
trailing: n.value === e ? /* @__PURE__ */ m(Be, {}) : null,
|
|
@@ -24797,8 +24828,8 @@ function ll({ value: e, onChange: t, className: n, ...r }) {
|
|
|
24797
24828
|
}
|
|
24798
24829
|
//#endregion
|
|
24799
24830
|
//#region src/SelectDetail.tsx
|
|
24800
|
-
var
|
|
24801
|
-
function
|
|
24831
|
+
var dl = n(!1);
|
|
24832
|
+
function fl({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
24802
24833
|
let r = Dn({
|
|
24803
24834
|
selector: ".select-detail",
|
|
24804
24835
|
y: 8,
|
|
@@ -24806,7 +24837,7 @@ function dl({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
24806
24837
|
stagger: .05,
|
|
24807
24838
|
scroll: !0
|
|
24808
24839
|
});
|
|
24809
|
-
return /* @__PURE__ */ m(
|
|
24840
|
+
return /* @__PURE__ */ m(dl.Provider, {
|
|
24810
24841
|
value: n,
|
|
24811
24842
|
children: /* @__PURE__ */ m("div", {
|
|
24812
24843
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}`,
|
|
@@ -24815,8 +24846,8 @@ function dl({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
24815
24846
|
})
|
|
24816
24847
|
});
|
|
24817
24848
|
}
|
|
24818
|
-
var
|
|
24819
|
-
let l = a(
|
|
24849
|
+
var pl = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
24850
|
+
let l = a(dl), u = i ?? l;
|
|
24820
24851
|
return /* @__PURE__ */ h("div", {
|
|
24821
24852
|
ref: c,
|
|
24822
24853
|
...s,
|
|
@@ -24836,7 +24867,7 @@ var fl = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
24836
24867
|
})
|
|
24837
24868
|
]
|
|
24838
24869
|
});
|
|
24839
|
-
}),
|
|
24870
|
+
}), ml = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
|
|
24840
24871
|
let s = r === "vertical";
|
|
24841
24872
|
return /* @__PURE__ */ m("ol", {
|
|
24842
24873
|
ref: o,
|
|
@@ -24875,7 +24906,7 @@ var fl = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
24875
24906
|
});
|
|
24876
24907
|
//#endregion
|
|
24877
24908
|
//#region src/SelectSetupGuide.tsx
|
|
24878
|
-
function
|
|
24909
|
+
function hl({ status: e }) {
|
|
24879
24910
|
return /* @__PURE__ */ m("span", {
|
|
24880
24911
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
24881
24912
|
"aria-hidden": "true",
|
|
@@ -24894,13 +24925,13 @@ function ml({ status: e }) {
|
|
|
24894
24925
|
})
|
|
24895
24926
|
});
|
|
24896
24927
|
}
|
|
24897
|
-
var
|
|
24928
|
+
var gl = {
|
|
24898
24929
|
done: "feito",
|
|
24899
24930
|
todo: "a fazer",
|
|
24900
24931
|
next: "próximo passo",
|
|
24901
24932
|
skipped: "pulado",
|
|
24902
24933
|
waiting: "aguardando"
|
|
24903
|
-
},
|
|
24934
|
+
}, _l = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
|
|
24904
24935
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0;
|
|
24905
24936
|
return /* @__PURE__ */ h("section", {
|
|
24906
24937
|
ref: u,
|
|
@@ -24963,14 +24994,14 @@ var hl = {
|
|
|
24963
24994
|
children: e.steps.map((e) => /* @__PURE__ */ h("li", {
|
|
24964
24995
|
className: `select-setupguide__step is-${e.status}`,
|
|
24965
24996
|
children: [
|
|
24966
|
-
/* @__PURE__ */ m(
|
|
24997
|
+
/* @__PURE__ */ m(hl, { status: e.status }),
|
|
24967
24998
|
/* @__PURE__ */ h("span", {
|
|
24968
24999
|
className: "select-setupguide__text",
|
|
24969
25000
|
children: [/* @__PURE__ */ h("span", {
|
|
24970
25001
|
className: "select-setupguide__steptitle",
|
|
24971
25002
|
children: [e.title, /* @__PURE__ */ h("span", {
|
|
24972
25003
|
className: "select-setupguide__sr",
|
|
24973
|
-
children: [" — ",
|
|
25004
|
+
children: [" — ", gl[e.status]]
|
|
24974
25005
|
})]
|
|
24975
25006
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
24976
25007
|
className: "select-setupguide__stepdesc",
|
|
@@ -24989,7 +25020,7 @@ var hl = {
|
|
|
24989
25020
|
})]
|
|
24990
25021
|
});
|
|
24991
25022
|
});
|
|
24992
|
-
function
|
|
25023
|
+
function vl({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
24993
25024
|
return /* @__PURE__ */ h("div", {
|
|
24994
25025
|
className: "select-setupnext",
|
|
24995
25026
|
children: [
|
|
@@ -25014,37 +25045,37 @@ function _l({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
25014
25045
|
}
|
|
25015
25046
|
//#endregion
|
|
25016
25047
|
//#region src/SelectTour.tsx
|
|
25017
|
-
var
|
|
25018
|
-
function
|
|
25048
|
+
var yl = 6, bl = 12;
|
|
25049
|
+
function xl(e) {
|
|
25019
25050
|
let t = document.querySelector(e);
|
|
25020
25051
|
if (!t) return null;
|
|
25021
25052
|
let n = t.getBoundingClientRect();
|
|
25022
25053
|
return n.width === 0 && n.height === 0 ? null : {
|
|
25023
|
-
top: n.top -
|
|
25024
|
-
left: n.left -
|
|
25054
|
+
top: n.top - yl,
|
|
25055
|
+
left: n.left - yl,
|
|
25025
25056
|
width: n.width + 12,
|
|
25026
25057
|
height: n.height + 12
|
|
25027
25058
|
};
|
|
25028
25059
|
}
|
|
25029
|
-
function
|
|
25060
|
+
function Sl(e) {
|
|
25030
25061
|
let t = document.querySelector(e);
|
|
25031
25062
|
if (!t) return !1;
|
|
25032
25063
|
let n = t.getBoundingClientRect();
|
|
25033
25064
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
25034
25065
|
}
|
|
25035
|
-
function
|
|
25036
|
-
let s = l(() => e ? t.filter((e) =>
|
|
25066
|
+
function Cl({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
25067
|
+
let s = l(() => e ? t.filter((e) => Sl(e.target)) : [], [e]), [f, p] = d(0), [_, v] = d(null), [y, b] = d(null), x = u(null), S = u(null);
|
|
25037
25068
|
o(() => {
|
|
25038
25069
|
e && p(0);
|
|
25039
25070
|
}, [e]);
|
|
25040
25071
|
let C = s[f], w = f === s.length - 1, T = i(() => {
|
|
25041
25072
|
if (!C) return;
|
|
25042
|
-
let e =
|
|
25073
|
+
let e = xl(C.target);
|
|
25043
25074
|
v(e);
|
|
25044
25075
|
let t = x.current;
|
|
25045
25076
|
if (!e || !t) return;
|
|
25046
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
25047
|
-
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height +
|
|
25077
|
+
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + bl, s = e.top;
|
|
25078
|
+
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + bl, s + r > a - 8 && (s = e.top - r - bl)), s = Math.min(Math.max(8, s), a - r - 8), b({
|
|
25048
25079
|
top: s,
|
|
25049
25080
|
left: o
|
|
25050
25081
|
});
|
|
@@ -25124,13 +25155,13 @@ function Sl({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
25124
25155
|
children: r.skip ?? "Pular tour"
|
|
25125
25156
|
}), /* @__PURE__ */ h("span", {
|
|
25126
25157
|
className: "select-tour__nav",
|
|
25127
|
-
children: [f > 0 && /* @__PURE__ */ m(
|
|
25158
|
+
children: [f > 0 && /* @__PURE__ */ m(H, {
|
|
25128
25159
|
variant: "secondary",
|
|
25129
25160
|
size: "sm",
|
|
25130
25161
|
inline: !0,
|
|
25131
25162
|
onClick: () => p((e) => e - 1),
|
|
25132
25163
|
children: r.prev ?? "Anterior"
|
|
25133
|
-
}), /* @__PURE__ */ m(
|
|
25164
|
+
}), /* @__PURE__ */ m(H, {
|
|
25134
25165
|
ref: S,
|
|
25135
25166
|
size: "sm",
|
|
25136
25167
|
inline: !0,
|
|
@@ -25146,7 +25177,7 @@ function Sl({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
25146
25177
|
}
|
|
25147
25178
|
//#endregion
|
|
25148
25179
|
//#region src/SelectPlanCard.tsx
|
|
25149
|
-
var
|
|
25180
|
+
var wl = 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) {
|
|
25150
25181
|
return /* @__PURE__ */ h("div", {
|
|
25151
25182
|
ref: d,
|
|
25152
25183
|
...u,
|
|
@@ -25201,11 +25232,11 @@ var Cl = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25201
25232
|
})]
|
|
25202
25233
|
})]
|
|
25203
25234
|
});
|
|
25204
|
-
}),
|
|
25235
|
+
}), Tl = r(function({ title: e, description: t, headerAction: n, footer: r, dense: i = !1, children: a, className: o, ...s }, c) {
|
|
25205
25236
|
return /* @__PURE__ */ h("div", {
|
|
25206
|
-
ref:
|
|
25207
|
-
...
|
|
25208
|
-
className: `select-listcard${
|
|
25237
|
+
ref: c,
|
|
25238
|
+
...s,
|
|
25239
|
+
className: `select-listcard${i ? " select-listcard--dense" : ""}${o ? " " + o : ""}`,
|
|
25209
25240
|
children: [
|
|
25210
25241
|
(e || n) && /* @__PURE__ */ h("div", {
|
|
25211
25242
|
className: "select-listcard__head",
|
|
@@ -25227,7 +25258,7 @@ var Cl = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25227
25258
|
className: "select-listcard__body",
|
|
25228
25259
|
children: /* @__PURE__ */ m("div", {
|
|
25229
25260
|
className: "select-listcard__rows",
|
|
25230
|
-
children:
|
|
25261
|
+
children: a
|
|
25231
25262
|
})
|
|
25232
25263
|
}),
|
|
25233
25264
|
r && /* @__PURE__ */ m("div", {
|
|
@@ -25237,7 +25268,7 @@ var Cl = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25237
25268
|
]
|
|
25238
25269
|
});
|
|
25239
25270
|
});
|
|
25240
|
-
function
|
|
25271
|
+
function El({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, onClick: o }) {
|
|
25241
25272
|
let s = /* @__PURE__ */ h(p, { children: [
|
|
25242
25273
|
e && /* @__PURE__ */ m("span", {
|
|
25243
25274
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
@@ -25269,7 +25300,7 @@ function Tl({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
25269
25300
|
children: s
|
|
25270
25301
|
});
|
|
25271
25302
|
}
|
|
25272
|
-
function
|
|
25303
|
+
function Dl({ children: e }) {
|
|
25273
25304
|
return /* @__PURE__ */ m("div", {
|
|
25274
25305
|
className: "select-listlabel",
|
|
25275
25306
|
children: e
|
|
@@ -25277,7 +25308,7 @@ function El({ children: e }) {
|
|
|
25277
25308
|
}
|
|
25278
25309
|
//#endregion
|
|
25279
25310
|
//#region src/SelectThumbnail.tsx
|
|
25280
|
-
var
|
|
25311
|
+
var Ol = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, s) {
|
|
25281
25312
|
let [c, l] = d(!1);
|
|
25282
25313
|
o(() => l(!1), [e]);
|
|
25283
25314
|
let u = /* @__PURE__ */ m("span", {
|
|
@@ -25311,7 +25342,7 @@ var Dl = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
|
|
|
25311
25342
|
});
|
|
25312
25343
|
//#endregion
|
|
25313
25344
|
//#region src/SelectImageZoomModal.tsx
|
|
25314
|
-
function
|
|
25345
|
+
function kl({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
25315
25346
|
return /* @__PURE__ */ m(La, {
|
|
25316
25347
|
open: e,
|
|
25317
25348
|
onClose: t,
|
|
@@ -25330,7 +25361,7 @@ function Ol({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
25330
25361
|
}
|
|
25331
25362
|
//#endregion
|
|
25332
25363
|
//#region src/SelectZoomThumbnail.tsx
|
|
25333
|
-
function
|
|
25364
|
+
function Al({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
25334
25365
|
let [a, o] = d(!1);
|
|
25335
25366
|
return e ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
25336
25367
|
type: "button",
|
|
@@ -25343,19 +25374,19 @@ function kl({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
25343
25374
|
cursor: "zoom-in",
|
|
25344
25375
|
display: "inline-flex"
|
|
25345
25376
|
},
|
|
25346
|
-
children: /* @__PURE__ */ m(
|
|
25377
|
+
children: /* @__PURE__ */ m(Ol, {
|
|
25347
25378
|
src: e,
|
|
25348
25379
|
size: n,
|
|
25349
25380
|
alt: t,
|
|
25350
25381
|
count: i
|
|
25351
25382
|
})
|
|
25352
|
-
}), a && /* @__PURE__ */ m(
|
|
25383
|
+
}), a && /* @__PURE__ */ m(kl, {
|
|
25353
25384
|
open: !0,
|
|
25354
25385
|
onClose: () => o(!1),
|
|
25355
25386
|
src: e,
|
|
25356
25387
|
alt: t,
|
|
25357
25388
|
title: r ?? t
|
|
25358
|
-
})] }) : /* @__PURE__ */ m(
|
|
25389
|
+
})] }) : /* @__PURE__ */ m(Ol, {
|
|
25359
25390
|
size: n,
|
|
25360
25391
|
alt: t,
|
|
25361
25392
|
count: i
|
|
@@ -25363,7 +25394,7 @@ function kl({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
25363
25394
|
}
|
|
25364
25395
|
//#endregion
|
|
25365
25396
|
//#region src/SelectMediaCell.tsx
|
|
25366
|
-
var
|
|
25397
|
+
var jl = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
25367
25398
|
return /* @__PURE__ */ h("span", {
|
|
25368
25399
|
ref: a,
|
|
25369
25400
|
...i,
|
|
@@ -25385,7 +25416,7 @@ var Al = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
25385
25416
|
});
|
|
25386
25417
|
//#endregion
|
|
25387
25418
|
//#region src/SelectOfflineModal.tsx
|
|
25388
|
-
function
|
|
25419
|
+
function Ml() {
|
|
25389
25420
|
let [e, t] = d(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
25390
25421
|
return o(() => {
|
|
25391
25422
|
let e = () => t(!1), n = () => t(!0);
|
|
@@ -25408,7 +25439,7 @@ function jl() {
|
|
|
25408
25439
|
}
|
|
25409
25440
|
//#endregion
|
|
25410
25441
|
//#region src/SelectKeyValueEditor.tsx
|
|
25411
|
-
function
|
|
25442
|
+
function Nl(e) {
|
|
25412
25443
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
25413
25444
|
name: String(e.name ?? e.key ?? ""),
|
|
25414
25445
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -25417,8 +25448,8 @@ function Ml(e) {
|
|
|
25417
25448
|
value: t == null ? "" : String(t)
|
|
25418
25449
|
})) : [];
|
|
25419
25450
|
}
|
|
25420
|
-
var
|
|
25421
|
-
let d =
|
|
25451
|
+
var Pl = 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) {
|
|
25452
|
+
let d = Nl(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
25422
25453
|
...t,
|
|
25423
25454
|
...n
|
|
25424
25455
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), g = () => t([...d, {
|
|
@@ -25482,7 +25513,7 @@ var Nl = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25482
25513
|
})
|
|
25483
25514
|
]
|
|
25484
25515
|
});
|
|
25485
|
-
}),
|
|
25516
|
+
}), Fl = (e) => String(e).padStart(2, "0"), Il = {
|
|
25486
25517
|
"en-US": {
|
|
25487
25518
|
weekdays: [
|
|
25488
25519
|
"Su",
|
|
@@ -25541,34 +25572,34 @@ var Nl = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25541
25572
|
to: "Até",
|
|
25542
25573
|
cancel: "Cancelar",
|
|
25543
25574
|
apply: "Aplicar",
|
|
25544
|
-
formatDate: (e) => `${
|
|
25575
|
+
formatDate: (e) => `${Fl(e.getDate())} / ${Fl(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
25545
25576
|
}
|
|
25546
|
-
},
|
|
25577
|
+
}, Ll = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Rl = (e) => new Date(e.getFullYear(), e.getMonth(), 1), zl = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Bl = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Vl = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Hl = (e) => {
|
|
25547
25578
|
let t = /* @__PURE__ */ new Date();
|
|
25548
25579
|
return {
|
|
25549
25580
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
25550
25581
|
to: t
|
|
25551
25582
|
};
|
|
25552
|
-
},
|
|
25583
|
+
}, Ul = [
|
|
25553
25584
|
{
|
|
25554
25585
|
id: "15m",
|
|
25555
25586
|
label: "Last 15 minutes",
|
|
25556
|
-
range: () =>
|
|
25587
|
+
range: () => Hl(15)
|
|
25557
25588
|
},
|
|
25558
25589
|
{
|
|
25559
25590
|
id: "1h",
|
|
25560
25591
|
label: "Last 1 hour",
|
|
25561
|
-
range: () =>
|
|
25592
|
+
range: () => Hl(60)
|
|
25562
25593
|
},
|
|
25563
25594
|
{
|
|
25564
25595
|
id: "3h",
|
|
25565
25596
|
label: "Last 3 hours",
|
|
25566
|
-
range: () =>
|
|
25597
|
+
range: () => Hl(180)
|
|
25567
25598
|
},
|
|
25568
25599
|
{
|
|
25569
25600
|
id: "24h",
|
|
25570
25601
|
label: "Last 24 hours",
|
|
25571
|
-
range: () =>
|
|
25602
|
+
range: () => Hl(1440)
|
|
25572
25603
|
},
|
|
25573
25604
|
{
|
|
25574
25605
|
id: "3d",
|
|
@@ -25584,78 +25615,78 @@ var Nl = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25584
25615
|
id: "all",
|
|
25585
25616
|
label: "All",
|
|
25586
25617
|
range: () => ({
|
|
25587
|
-
from:
|
|
25588
|
-
to:
|
|
25618
|
+
from: Ll(/* @__PURE__ */ new Date()),
|
|
25619
|
+
to: Ll(/* @__PURE__ */ new Date())
|
|
25589
25620
|
})
|
|
25590
25621
|
}
|
|
25591
|
-
],
|
|
25592
|
-
let t =
|
|
25622
|
+
], Wl = (e) => {
|
|
25623
|
+
let t = Ll(/* @__PURE__ */ new Date());
|
|
25593
25624
|
return {
|
|
25594
|
-
from:
|
|
25625
|
+
from: zl(t, -e),
|
|
25595
25626
|
to: t
|
|
25596
25627
|
};
|
|
25597
|
-
},
|
|
25598
|
-
let t =
|
|
25628
|
+
}, Gl = (e) => {
|
|
25629
|
+
let t = zl(Ll(/* @__PURE__ */ new Date()), -e);
|
|
25599
25630
|
return {
|
|
25600
25631
|
from: t,
|
|
25601
25632
|
to: t
|
|
25602
25633
|
};
|
|
25603
|
-
},
|
|
25634
|
+
}, Kl = [
|
|
25604
25635
|
{
|
|
25605
25636
|
id: "today",
|
|
25606
25637
|
label: "Hoje",
|
|
25607
|
-
range: () =>
|
|
25638
|
+
range: () => Wl(0)
|
|
25608
25639
|
},
|
|
25609
25640
|
{
|
|
25610
25641
|
id: "yesterday",
|
|
25611
25642
|
label: "Ontem",
|
|
25612
|
-
range: () =>
|
|
25643
|
+
range: () => Gl(1)
|
|
25613
25644
|
},
|
|
25614
25645
|
{
|
|
25615
25646
|
id: "7d",
|
|
25616
25647
|
label: "Últimos 7 dias",
|
|
25617
|
-
range: () =>
|
|
25648
|
+
range: () => Wl(6)
|
|
25618
25649
|
},
|
|
25619
25650
|
{
|
|
25620
25651
|
id: "10d",
|
|
25621
25652
|
label: "Últimos 10 dias",
|
|
25622
|
-
range: () =>
|
|
25653
|
+
range: () => Wl(9)
|
|
25623
25654
|
},
|
|
25624
25655
|
{
|
|
25625
25656
|
id: "15d",
|
|
25626
25657
|
label: "Últimos 15 dias",
|
|
25627
|
-
range: () =>
|
|
25658
|
+
range: () => Wl(14)
|
|
25628
25659
|
},
|
|
25629
25660
|
{
|
|
25630
25661
|
id: "20d",
|
|
25631
25662
|
label: "Últimos 20 dias",
|
|
25632
|
-
range: () =>
|
|
25663
|
+
range: () => Wl(19)
|
|
25633
25664
|
},
|
|
25634
25665
|
{
|
|
25635
25666
|
id: "30d",
|
|
25636
25667
|
label: "Últimos 30 dias",
|
|
25637
|
-
range: () =>
|
|
25668
|
+
range: () => Wl(29)
|
|
25638
25669
|
},
|
|
25639
25670
|
{
|
|
25640
25671
|
id: "90d",
|
|
25641
25672
|
label: "Últimos 90 dias",
|
|
25642
|
-
range: () =>
|
|
25673
|
+
range: () => Wl(89)
|
|
25643
25674
|
}
|
|
25644
25675
|
];
|
|
25645
|
-
function
|
|
25676
|
+
function ql(e) {
|
|
25646
25677
|
if (!e) return "—";
|
|
25647
25678
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
25648
25679
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
25649
25680
|
}
|
|
25650
|
-
var
|
|
25651
|
-
let p =
|
|
25681
|
+
var Jl = r(function({ value: e, presets: t = Ul, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, f) {
|
|
25682
|
+
let p = Il[a], g = Ll(/* @__PURE__ */ new Date()), _ = s ? Ll(s) : null, [v, y] = d(e ?? {
|
|
25652
25683
|
from: g,
|
|
25653
25684
|
to: g
|
|
25654
|
-
}), [b, x] = d(
|
|
25685
|
+
}), [b, x] = d(Rl((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = d(null), w = zl(Rl(b), -Rl(b).getDay()), T = Array.from({ length: 42 }, (e, t) => zl(w, t)), E = (e) => _ ? Ll(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ m("span", {
|
|
25655
25686
|
className: "select-datepicker__placeholder",
|
|
25656
25687
|
children: "— / — / ——"
|
|
25657
25688
|
}), O = (e) => {
|
|
25658
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
25689
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < Ll(t.from) ? {
|
|
25659
25690
|
from: e,
|
|
25660
25691
|
to: null
|
|
25661
25692
|
} : {
|
|
@@ -25665,7 +25696,7 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25665
25696
|
}, k = (e) => {
|
|
25666
25697
|
if (e.disabled || !e.range) return;
|
|
25667
25698
|
let t = e.range();
|
|
25668
|
-
y(t), C(e.id), t.from && x(
|
|
25699
|
+
y(t), C(e.id), t.from && x(Rl(t.from));
|
|
25669
25700
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
25670
25701
|
return /* @__PURE__ */ m("div", {
|
|
25671
25702
|
ref: f,
|
|
@@ -25711,7 +25742,7 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25711
25742
|
}),
|
|
25712
25743
|
o && /* @__PURE__ */ m("span", {
|
|
25713
25744
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
25714
|
-
children:
|
|
25745
|
+
children: ql(v[e])
|
|
25715
25746
|
})
|
|
25716
25747
|
]
|
|
25717
25748
|
}, e))
|
|
@@ -25723,8 +25754,8 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25723
25754
|
type: "button",
|
|
25724
25755
|
className: "select-datepicker__nav",
|
|
25725
25756
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
25726
|
-
onClick: () => x((e) =>
|
|
25727
|
-
children: /* @__PURE__ */ m(
|
|
25757
|
+
onClick: () => x((e) => Bl(e, -1)),
|
|
25758
|
+
children: /* @__PURE__ */ m(W, {})
|
|
25728
25759
|
}),
|
|
25729
25760
|
/* @__PURE__ */ h("span", {
|
|
25730
25761
|
className: "select-datepicker__monthlabel",
|
|
@@ -25738,8 +25769,8 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25738
25769
|
type: "button",
|
|
25739
25770
|
className: "select-datepicker__nav",
|
|
25740
25771
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
25741
|
-
onClick: () => x((e) =>
|
|
25742
|
-
children: /* @__PURE__ */ m(
|
|
25772
|
+
onClick: () => x((e) => Bl(e, 1)),
|
|
25773
|
+
children: /* @__PURE__ */ m(U, {})
|
|
25743
25774
|
})
|
|
25744
25775
|
]
|
|
25745
25776
|
}),
|
|
@@ -25750,7 +25781,7 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25750
25781
|
className: "select-datepicker__weekday",
|
|
25751
25782
|
children: e
|
|
25752
25783
|
}, t)), T.map((e) => {
|
|
25753
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
25784
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && Vl(e, v.from), i = !!v.to && Vl(e, v.to), a = r || i, o = !!v.from && !!v.to && !Vl(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > Ll(v.from) && e < Ll(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" : "") + (Vl(e, g) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
25754
25785
|
return /* @__PURE__ */ m("div", {
|
|
25755
25786
|
className: s,
|
|
25756
25787
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -25765,12 +25796,12 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25765
25796
|
}),
|
|
25766
25797
|
/* @__PURE__ */ h("div", {
|
|
25767
25798
|
className: "select-datepicker__footer",
|
|
25768
|
-
children: [/* @__PURE__ */ m(
|
|
25799
|
+
children: [/* @__PURE__ */ m(H, {
|
|
25769
25800
|
variant: "secondary",
|
|
25770
25801
|
inline: !0,
|
|
25771
25802
|
onClick: r,
|
|
25772
25803
|
children: p.cancel
|
|
25773
|
-
}), /* @__PURE__ */ m(
|
|
25804
|
+
}), /* @__PURE__ */ m(H, {
|
|
25774
25805
|
variant: "primary",
|
|
25775
25806
|
inline: !0,
|
|
25776
25807
|
onClick: () => n == null ? void 0 : n(v),
|
|
@@ -25781,23 +25812,23 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25781
25812
|
})]
|
|
25782
25813
|
})
|
|
25783
25814
|
});
|
|
25784
|
-
}),
|
|
25785
|
-
function
|
|
25815
|
+
}), Yl = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Xl = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Zl = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
25816
|
+
function Ql(e, t) {
|
|
25786
25817
|
for (let r of t) {
|
|
25787
25818
|
var n;
|
|
25788
25819
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
25789
|
-
if (t != null && t.from && t != null && t.to &&
|
|
25820
|
+
if (t != null && t.from && t != null && t.to && Xl(t.from, e.start) && Xl(t.to, e.end)) return r.label;
|
|
25790
25821
|
}
|
|
25791
|
-
return
|
|
25822
|
+
return Xl(e.start, e.end) ? Zl(e.start) : `${Zl(e.start)} – ${Zl(e.end)}`;
|
|
25792
25823
|
}
|
|
25793
|
-
function
|
|
25794
|
-
let [c, l] = d(!1), u = r === null ? null : r ??
|
|
25824
|
+
function $l({ value: e, onChange: t, presets: n = Kl, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
25825
|
+
let [c, l] = d(!1), u = r === null ? null : r ?? Yl(/* @__PURE__ */ new Date());
|
|
25795
25826
|
return /* @__PURE__ */ m(Pn, {
|
|
25796
25827
|
active: c,
|
|
25797
25828
|
onClose: () => l(!1),
|
|
25798
25829
|
placement: i,
|
|
25799
25830
|
role: "dialog",
|
|
25800
|
-
activator: /* @__PURE__ */ m(
|
|
25831
|
+
activator: /* @__PURE__ */ m(H, {
|
|
25801
25832
|
variant: "secondary",
|
|
25802
25833
|
size: a,
|
|
25803
25834
|
inline: !s,
|
|
@@ -25805,9 +25836,9 @@ function Ql({ value: e, onChange: t, presets: n = Gl, maxDate: r, placement: i =
|
|
|
25805
25836
|
icon: /* @__PURE__ */ m(nt, {}),
|
|
25806
25837
|
trailingIcon: /* @__PURE__ */ m(G, {}),
|
|
25807
25838
|
onClick: () => l((e) => !e),
|
|
25808
|
-
children:
|
|
25839
|
+
children: Ql(e, n)
|
|
25809
25840
|
}),
|
|
25810
|
-
children: /* @__PURE__ */ m(
|
|
25841
|
+
children: /* @__PURE__ */ m(Jl, {
|
|
25811
25842
|
embedded: !0,
|
|
25812
25843
|
locale: "pt-BR",
|
|
25813
25844
|
showTime: !1,
|
|
@@ -25820,8 +25851,8 @@ function Ql({ value: e, onChange: t, presets: n = Gl, maxDate: r, placement: i =
|
|
|
25820
25851
|
onCancel: () => l(!1),
|
|
25821
25852
|
onApply: (e) => {
|
|
25822
25853
|
e.from && t({
|
|
25823
|
-
start:
|
|
25824
|
-
end:
|
|
25854
|
+
start: Yl(e.from),
|
|
25855
|
+
end: Yl(e.to ?? e.from)
|
|
25825
25856
|
}), l(!1);
|
|
25826
25857
|
}
|
|
25827
25858
|
})
|
|
@@ -25829,7 +25860,7 @@ function Ql({ value: e, onChange: t, presets: n = Gl, maxDate: r, placement: i =
|
|
|
25829
25860
|
}
|
|
25830
25861
|
//#endregion
|
|
25831
25862
|
//#region src/SelectNumberField.tsx
|
|
25832
|
-
var
|
|
25863
|
+
var eu = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a = 1, decimal: o = !1, disabled: c = !1, hint: l, error: u, onBlur: f, placeholder: p, size: g = "md", className: _, ...v }, y) {
|
|
25833
25864
|
let b = s(), x = (e) => Math.min(i ?? Infinity, Math.max(r ?? -Infinity, e)), S = (e) => Math.round(e * 1e6) / 1e6, C = t ?? 0, w = r != null && C <= r, T = i != null && C >= i, [E, D] = d(!1), [O, k] = d(""), A = o && E ? O : t == null ? "" : String(t), j = (e) => {
|
|
25834
25865
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
25835
25866
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -25903,7 +25934,7 @@ var $l = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
25903
25934
|
});
|
|
25904
25935
|
//#endregion
|
|
25905
25936
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
25906
|
-
function
|
|
25937
|
+
function tu({ 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 }) {
|
|
25907
25938
|
let g = !c && (s == null || e.length < s), _ = e.length > o, v = (n, r) => t(e.map((e, t) => t === n ? r : e)), y = (n) => t(e.filter((e, t) => t !== n)), b = (n, r) => {
|
|
25908
25939
|
let i = n + r;
|
|
25909
25940
|
if (i < 0 || i >= e.length) return;
|
|
@@ -25978,7 +26009,7 @@ function eu({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
25978
26009
|
align: "space-between",
|
|
25979
26010
|
blockAlign: "center",
|
|
25980
26011
|
gap: "200",
|
|
25981
|
-
children: [/* @__PURE__ */ m(
|
|
26012
|
+
children: [/* @__PURE__ */ m(H, {
|
|
25982
26013
|
variant: "secondary",
|
|
25983
26014
|
size: "sm",
|
|
25984
26015
|
inline: !0,
|
|
@@ -25998,7 +26029,7 @@ function eu({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
25998
26029
|
}
|
|
25999
26030
|
//#endregion
|
|
26000
26031
|
//#region src/SelectBuilderLayout.tsx
|
|
26001
|
-
function
|
|
26032
|
+
function nu({ 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 }) {
|
|
26002
26033
|
let d = v();
|
|
26003
26034
|
return /* @__PURE__ */ m(Ni, {
|
|
26004
26035
|
title: e,
|
|
@@ -26038,7 +26069,7 @@ function tu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26038
26069
|
}
|
|
26039
26070
|
//#endregion
|
|
26040
26071
|
//#region src/SelectBuilderWorkspace.tsx
|
|
26041
|
-
function
|
|
26072
|
+
function ru({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveLabel: a = "Salvar", saveDisabled: o = !1, cancelTo: s, error: c, sections: u, activeId: f, onActiveChange: g, searchable: _ = !1, preview: y, previewLayout: b = "fill", toolbar: x, dirty: S = !1, dirtyLabel: C = "Alterações não salvas" }) {
|
|
26042
26073
|
var w;
|
|
26043
26074
|
let T = v(), [E, D] = d(((w = u[0]) == null ? void 0 : w.id) ?? ""), [O, k] = d(""), A = f ?? E, j = u.find((e) => e.id === A) ?? u[0], M = (e) => {
|
|
26044
26075
|
f === void 0 && D(e), g == null || g(e);
|
|
@@ -26088,7 +26119,7 @@ function nu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26088
26119
|
role: "status",
|
|
26089
26120
|
children: C
|
|
26090
26121
|
}),
|
|
26091
|
-
s && /* @__PURE__ */ m(
|
|
26122
|
+
s && /* @__PURE__ */ m(H, {
|
|
26092
26123
|
inline: !0,
|
|
26093
26124
|
size: "sm",
|
|
26094
26125
|
variant: "secondary",
|
|
@@ -26096,7 +26127,7 @@ function nu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26096
26127
|
disabled: i,
|
|
26097
26128
|
children: "Cancelar"
|
|
26098
26129
|
}),
|
|
26099
|
-
/* @__PURE__ */ m(
|
|
26130
|
+
/* @__PURE__ */ m(H, {
|
|
26100
26131
|
inline: !0,
|
|
26101
26132
|
size: "sm",
|
|
26102
26133
|
onClick: r,
|
|
@@ -26198,10 +26229,10 @@ function nu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26198
26229
|
}
|
|
26199
26230
|
//#endregion
|
|
26200
26231
|
//#region src/SelectFlowCanvas.tsx
|
|
26201
|
-
var
|
|
26202
|
-
function
|
|
26232
|
+
var iu = (e) => Math.round(e * 100) / 100;
|
|
26233
|
+
function au({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], children: a, zoom: o, defaultZoom: c = 1, onZoomChange: l, minZoom: u = .5, maxZoom: f = 1.3, onBackgroundClick: p, ariaLabel: g }) {
|
|
26203
26234
|
let _ = s().replace(/:/g, ""), [v, y] = d(c), b = o ?? v, x = (e) => {
|
|
26204
|
-
let t =
|
|
26235
|
+
let t = iu(Math.min(f, Math.max(u, e)));
|
|
26205
26236
|
o === void 0 && y(t), l == null || l(t);
|
|
26206
26237
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
26207
26238
|
return /* @__PURE__ */ h("div", {
|
|
@@ -26317,7 +26348,7 @@ function iu({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
26317
26348
|
})]
|
|
26318
26349
|
});
|
|
26319
26350
|
}
|
|
26320
|
-
function
|
|
26351
|
+
function ou({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neutral", icon: o, order: s, eyebrow: c, title: l, subtitle: u, tags: d, titleTone: f = "default", selected: p = !1, active: g = !1, muted: _ = !1, invalid: v = !1, onClick: y, ariaLabel: b }) {
|
|
26321
26352
|
let x = `${p ? " is-selected" : v ? " is-invalid" : g ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
26322
26353
|
left: e,
|
|
26323
26354
|
top: t,
|
|
@@ -26393,7 +26424,7 @@ function au({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
26393
26424
|
})]
|
|
26394
26425
|
});
|
|
26395
26426
|
}
|
|
26396
|
-
function
|
|
26427
|
+
function su({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
|
|
26397
26428
|
return /* @__PURE__ */ h("div", {
|
|
26398
26429
|
className: "select-flowpage",
|
|
26399
26430
|
children: [
|
|
@@ -26455,7 +26486,7 @@ function ou({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
26455
26486
|
}
|
|
26456
26487
|
//#endregion
|
|
26457
26488
|
//#region src/SelectSwitchField.tsx
|
|
26458
|
-
var
|
|
26489
|
+
var cu = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
26459
26490
|
return /* @__PURE__ */ h("div", {
|
|
26460
26491
|
ref: c,
|
|
26461
26492
|
...s,
|
|
@@ -26483,7 +26514,7 @@ var su = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
26483
26514
|
children: i
|
|
26484
26515
|
})]
|
|
26485
26516
|
});
|
|
26486
|
-
}),
|
|
26517
|
+
}), lu = [
|
|
26487
26518
|
"#212529",
|
|
26488
26519
|
"#495057",
|
|
26489
26520
|
"#868E96",
|
|
@@ -26500,13 +26531,13 @@ var su = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
26500
26531
|
"#DB2777",
|
|
26501
26532
|
"#9333EA",
|
|
26502
26533
|
"#6D28D9"
|
|
26503
|
-
],
|
|
26504
|
-
function
|
|
26505
|
-
let t =
|
|
26534
|
+
], uu = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
26535
|
+
function du(e) {
|
|
26536
|
+
let t = uu.exec((e ?? "").trim());
|
|
26506
26537
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
26507
26538
|
}
|
|
26508
|
-
function
|
|
26509
|
-
let t =
|
|
26539
|
+
function fu(e) {
|
|
26540
|
+
let t = du(e);
|
|
26510
26541
|
if (!t) return 0;
|
|
26511
26542
|
let [n, r, i] = [
|
|
26512
26543
|
1,
|
|
@@ -26515,13 +26546,13 @@ function du(e) {
|
|
|
26515
26546
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
26516
26547
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
26517
26548
|
}
|
|
26518
|
-
function
|
|
26519
|
-
let [n, r] = [
|
|
26549
|
+
function pu(e, t) {
|
|
26550
|
+
let [n, r] = [fu(e), fu(t)].sort((e, t) => t - e);
|
|
26520
26551
|
return (n + .05) / (r + .05);
|
|
26521
26552
|
}
|
|
26522
|
-
var
|
|
26523
|
-
function
|
|
26524
|
-
let t =
|
|
26553
|
+
var mu = (e) => Math.min(1, Math.max(0, e));
|
|
26554
|
+
function hu(e) {
|
|
26555
|
+
let t = du(e) ?? "#000000", [n, r, i] = [
|
|
26525
26556
|
1,
|
|
26526
26557
|
3,
|
|
26527
26558
|
5
|
|
@@ -26532,7 +26563,7 @@ function mu(e) {
|
|
|
26532
26563
|
v: a
|
|
26533
26564
|
};
|
|
26534
26565
|
}
|
|
26535
|
-
function
|
|
26566
|
+
function gu({ h: e, s: t, v: n }) {
|
|
26536
26567
|
let r = (r) => {
|
|
26537
26568
|
let i = (r + e / 60) % 6;
|
|
26538
26569
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -26543,26 +26574,26 @@ function hu({ h: e, s: t, v: n }) {
|
|
|
26543
26574
|
r(1)
|
|
26544
26575
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
26545
26576
|
}
|
|
26546
|
-
function
|
|
26547
|
-
let [n, r] = d(() =>
|
|
26577
|
+
function _u({ hex: e, onPick: t }) {
|
|
26578
|
+
let [n, r] = d(() => hu(e ?? "#1D4ED8")), i = u(n), a = (e) => {
|
|
26548
26579
|
i.current = e, r(e);
|
|
26549
26580
|
};
|
|
26550
26581
|
o(() => {
|
|
26551
|
-
if (!e ||
|
|
26552
|
-
let t =
|
|
26582
|
+
if (!e || gu(i.current) === e) return;
|
|
26583
|
+
let t = hu(e);
|
|
26553
26584
|
a(t.s === 0 || t.v === 0 ? {
|
|
26554
26585
|
...t,
|
|
26555
26586
|
h: i.current.h
|
|
26556
26587
|
} : t);
|
|
26557
26588
|
}, [e]);
|
|
26558
26589
|
let s = (e) => {
|
|
26559
|
-
a(e), t(
|
|
26590
|
+
a(e), t(gu(e));
|
|
26560
26591
|
}, c = (e, t, n) => {
|
|
26561
26592
|
var r;
|
|
26562
26593
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
26563
26594
|
let i = (t) => {
|
|
26564
26595
|
let r = e.getBoundingClientRect();
|
|
26565
|
-
n(
|
|
26596
|
+
n(mu((t.clientX - r.left) / (r.width || 1)), mu((t.clientY - r.top) / (r.height || 1)));
|
|
26566
26597
|
};
|
|
26567
26598
|
i(t);
|
|
26568
26599
|
let a = (e) => i(e), o = () => {
|
|
@@ -26572,20 +26603,20 @@ function gu({ hex: e, onPick: t }) {
|
|
|
26572
26603
|
}, l = (e) => {
|
|
26573
26604
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, o = e.key === "ArrowLeft" ? {
|
|
26574
26605
|
h: n,
|
|
26575
|
-
s:
|
|
26606
|
+
s: mu(r - t),
|
|
26576
26607
|
v: a
|
|
26577
26608
|
} : e.key === "ArrowRight" ? {
|
|
26578
26609
|
h: n,
|
|
26579
|
-
s:
|
|
26610
|
+
s: mu(r + t),
|
|
26580
26611
|
v: a
|
|
26581
26612
|
} : e.key === "ArrowUp" ? {
|
|
26582
26613
|
h: n,
|
|
26583
26614
|
s: r,
|
|
26584
|
-
v:
|
|
26615
|
+
v: mu(a + t)
|
|
26585
26616
|
} : e.key === "ArrowDown" ? {
|
|
26586
26617
|
h: n,
|
|
26587
26618
|
s: r,
|
|
26588
|
-
v:
|
|
26619
|
+
v: mu(a - t)
|
|
26589
26620
|
} : null;
|
|
26590
26621
|
o && (e.preventDefault(), s(o));
|
|
26591
26622
|
}, f = (e) => {
|
|
@@ -26595,11 +26626,11 @@ function gu({ hex: e, onPick: t }) {
|
|
|
26595
26626
|
s: r,
|
|
26596
26627
|
v: a
|
|
26597
26628
|
}));
|
|
26598
|
-
}, g =
|
|
26629
|
+
}, g = gu({
|
|
26599
26630
|
h: n.h,
|
|
26600
26631
|
s: 1,
|
|
26601
26632
|
v: 1
|
|
26602
|
-
}), _ =
|
|
26633
|
+
}), _ = gu(n);
|
|
26603
26634
|
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
|
|
26604
26635
|
className: "select-colorfield__sv",
|
|
26605
26636
|
style: { backgroundColor: g },
|
|
@@ -26643,24 +26674,24 @@ function gu({ hex: e, onPick: t }) {
|
|
|
26643
26674
|
})
|
|
26644
26675
|
})] });
|
|
26645
26676
|
}
|
|
26646
|
-
var
|
|
26647
|
-
function
|
|
26677
|
+
var vu = (e) => e.toFixed(1).replace(".", ",");
|
|
26678
|
+
function yu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: c = lu, disabled: l = !1, allowEmpty: u = !1, contrastWith: f, contrastLabel: g = "o texto", id: _ }) {
|
|
26648
26679
|
let v = s(), y = _ ?? `color-${v}`, [b, x] = d(!1), [S, C] = d(i ?? ""), [w, T] = d(null);
|
|
26649
26680
|
o(() => {
|
|
26650
26681
|
C(i ?? ""), T(null);
|
|
26651
26682
|
}, [i]);
|
|
26652
|
-
let E =
|
|
26683
|
+
let E = du(i ?? ""), D = (e) => {
|
|
26653
26684
|
if (!e.trim()) {
|
|
26654
26685
|
u ? (T(null), a("")) : C(i ?? "");
|
|
26655
26686
|
return;
|
|
26656
26687
|
}
|
|
26657
|
-
let t =
|
|
26688
|
+
let t = du(e);
|
|
26658
26689
|
if (!t) {
|
|
26659
26690
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
26660
26691
|
return;
|
|
26661
26692
|
}
|
|
26662
26693
|
T(null), C(t), t !== E && a(t);
|
|
26663
|
-
}, O = f ?
|
|
26694
|
+
}, O = f ? du(f) : null, k = E && O ? pu(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
|
|
26664
26695
|
return /* @__PURE__ */ h("div", {
|
|
26665
26696
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
26666
26697
|
children: [
|
|
@@ -26688,7 +26719,7 @@ function vu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26688
26719
|
children: /* @__PURE__ */ h("div", {
|
|
26689
26720
|
className: "select-colorfield__panel",
|
|
26690
26721
|
children: [
|
|
26691
|
-
/* @__PURE__ */ m(
|
|
26722
|
+
/* @__PURE__ */ m(_u, {
|
|
26692
26723
|
hex: E,
|
|
26693
26724
|
onPick: D
|
|
26694
26725
|
}),
|
|
@@ -26697,7 +26728,7 @@ function vu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26697
26728
|
role: "group",
|
|
26698
26729
|
"aria-label": "Cores prontas",
|
|
26699
26730
|
children: c.map((e) => {
|
|
26700
|
-
let t =
|
|
26731
|
+
let t = du(e) ?? e, n = t === E;
|
|
26701
26732
|
return /* @__PURE__ */ m("button", {
|
|
26702
26733
|
type: "button",
|
|
26703
26734
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -26728,7 +26759,7 @@ function vu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26728
26759
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
26729
26760
|
value: S,
|
|
26730
26761
|
onChange: (e) => {
|
|
26731
|
-
C(e.target.value), e.target.value.replace("#", "").length === 6 &&
|
|
26762
|
+
C(e.target.value), e.target.value.replace("#", "").length === 6 && du(e.target.value) && D(e.target.value);
|
|
26732
26763
|
},
|
|
26733
26764
|
onBlur: () => D(S),
|
|
26734
26765
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -26751,14 +26782,14 @@ function vu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26751
26782
|
}) : null : /* @__PURE__ */ h("p", {
|
|
26752
26783
|
id: `${y}-hint`,
|
|
26753
26784
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
26754
|
-
children: [k >= 4.5 ? `Contraste com ${g}: ${
|
|
26785
|
+
children: [k >= 4.5 ? `Contraste com ${g}: ${vu(k)}:1 — legível.` : `Contraste com ${g}: ${vu(k)}:1 — difícil de ler. Escolha uma cor ${fu(E) < fu(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ h(p, { children: [" ", n] }) : null]
|
|
26755
26786
|
})
|
|
26756
26787
|
]
|
|
26757
26788
|
});
|
|
26758
26789
|
}
|
|
26759
26790
|
//#endregion
|
|
26760
26791
|
//#region src/SelectProgressBar.tsx
|
|
26761
|
-
var
|
|
26792
|
+
var bu = 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) {
|
|
26762
26793
|
if (l) return /* @__PURE__ */ h("div", {
|
|
26763
26794
|
ref: f,
|
|
26764
26795
|
...d,
|
|
@@ -26803,7 +26834,7 @@ var yu = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
26803
26834
|
})
|
|
26804
26835
|
]
|
|
26805
26836
|
});
|
|
26806
|
-
}),
|
|
26837
|
+
}), xu = r(function({ icon: e, accent: t, title: n, description: r, badge: i, meta: a, cta: o, to: s, onClick: c, selected: l, disabled: u = !1, className: d, ...f }, g) {
|
|
26807
26838
|
let v = `select-choicecard${l ? " is-selected" : ""}${u ? " is-disabled" : ""}${d ? " " + d : ""}`, y = t ? { "--select-choice-accent": t } : void 0, b = /* @__PURE__ */ h(p, { children: [
|
|
26808
26839
|
/* @__PURE__ */ h("span", {
|
|
26809
26840
|
className: "select-choicecard__top",
|
|
@@ -26864,7 +26895,7 @@ var yu = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
26864
26895
|
children: b
|
|
26865
26896
|
});
|
|
26866
26897
|
});
|
|
26867
|
-
function
|
|
26898
|
+
function Su({ badge: e = !0 }) {
|
|
26868
26899
|
return /* @__PURE__ */ h("div", {
|
|
26869
26900
|
className: "select-choicecard select-choicecard--skeleton",
|
|
26870
26901
|
"aria-hidden": "true",
|
|
@@ -26885,7 +26916,7 @@ function xu({ badge: e = !0 }) {
|
|
|
26885
26916
|
]
|
|
26886
26917
|
});
|
|
26887
26918
|
}
|
|
26888
|
-
var
|
|
26919
|
+
var Cu = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, className: i, style: a, ...o }, s) {
|
|
26889
26920
|
return /* @__PURE__ */ m("div", {
|
|
26890
26921
|
ref: s,
|
|
26891
26922
|
...o,
|
|
@@ -26895,16 +26926,16 @@ var Su = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
26895
26926
|
"--select-choice-min": t,
|
|
26896
26927
|
...a
|
|
26897
26928
|
},
|
|
26898
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(
|
|
26929
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(Su, {}, t)) : e
|
|
26899
26930
|
});
|
|
26900
|
-
}),
|
|
26931
|
+
}), wu = 960, Tu = Math.round(wu * 210 / 297), Eu = 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: f, className: g }, _) {
|
|
26901
26932
|
let v = u(null), [y, b] = d(.5);
|
|
26902
26933
|
o(() => {
|
|
26903
26934
|
let e = v.current;
|
|
26904
26935
|
if (!e) return;
|
|
26905
26936
|
let t = () => {
|
|
26906
26937
|
let t = e.clientWidth;
|
|
26907
|
-
t > 0 && b(Math.min(1, t /
|
|
26938
|
+
t > 0 && b(Math.min(1, t / wu));
|
|
26908
26939
|
};
|
|
26909
26940
|
if (t(), typeof ResizeObserver > "u") return;
|
|
26910
26941
|
let n = new ResizeObserver(t);
|
|
@@ -26912,7 +26943,7 @@ var Su = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
26912
26943
|
}, []);
|
|
26913
26944
|
let x = e === "front", S = {
|
|
26914
26945
|
"--select-cert-accent": t || void 0,
|
|
26915
|
-
height:
|
|
26946
|
+
height: Tu * y + 2
|
|
26916
26947
|
};
|
|
26917
26948
|
return /* @__PURE__ */ m("div", {
|
|
26918
26949
|
ref: (e) => {
|
|
@@ -26925,8 +26956,8 @@ var Su = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
26925
26956
|
children: /* @__PURE__ */ m("div", {
|
|
26926
26957
|
className: "select-certpreview__sheet",
|
|
26927
26958
|
style: {
|
|
26928
|
-
width:
|
|
26929
|
-
height:
|
|
26959
|
+
width: wu,
|
|
26960
|
+
height: Tu,
|
|
26930
26961
|
transform: `scale(${y})`
|
|
26931
26962
|
},
|
|
26932
26963
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -26999,13 +27030,13 @@ var Su = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
26999
27030
|
});
|
|
27000
27031
|
//#endregion
|
|
27001
27032
|
//#region src/SelectImageField.tsx
|
|
27002
|
-
function
|
|
27033
|
+
function Du(e) {
|
|
27003
27034
|
return new Promise((t, n) => {
|
|
27004
27035
|
let r = new FileReader();
|
|
27005
27036
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
27006
27037
|
});
|
|
27007
27038
|
}
|
|
27008
|
-
var
|
|
27039
|
+
var Ou = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
|
|
27009
27040
|
let [f, p] = d([]), [g, _] = d(null), v = t ? [t] : [], y = async (e) => {
|
|
27010
27041
|
let t = e[0];
|
|
27011
27042
|
if (!t) {
|
|
@@ -27013,7 +27044,7 @@ var Du = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27013
27044
|
return;
|
|
27014
27045
|
}
|
|
27015
27046
|
if (_(null), !s) {
|
|
27016
|
-
n(await
|
|
27047
|
+
n(await Du(t)), p([]);
|
|
27017
27048
|
return;
|
|
27018
27049
|
}
|
|
27019
27050
|
p([t]);
|
|
@@ -27045,7 +27076,7 @@ var Du = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27045
27076
|
children: g
|
|
27046
27077
|
})]
|
|
27047
27078
|
});
|
|
27048
|
-
}),
|
|
27079
|
+
}), ku = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
27049
27080
|
let [o, s] = d(() => new Set(n)), c = (e) => s((n) => {
|
|
27050
27081
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
27051
27082
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -27091,6 +27122,6 @@ var Du = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27091
27122
|
});
|
|
27092
27123
|
});
|
|
27093
27124
|
//#endregion
|
|
27094
|
-
export { C as AUTH_FX_VARIANTS, Ie as AppleIcon, _t as AppsIcon, K as ArrowLeftIcon, Re as ArrowRightIcon, We as AtIcon, Ne as AuthAppIcon, Tt as AwardIcon, at as BankIcon, Se as BellIcon, Ct as BookIcon, fe as BookmarkIcon, ft as BroadcastIcon, Ke as BuildingIcon, nt as CalendarIcon, yt as CartIcon, ht as ChartLineIcon, Mt as ChatIcon, Ue as CheckCircleIcon, Be as CheckIcon, G as ChevronDownIcon,
|
|
27125
|
+
export { C as AUTH_FX_VARIANTS, Ie as AppleIcon, _t as AppsIcon, K as ArrowLeftIcon, Re as ArrowRightIcon, We as AtIcon, Ne as AuthAppIcon, Tt as AwardIcon, at as BankIcon, Se as BellIcon, Ct as BookIcon, fe as BookmarkIcon, ft as BroadcastIcon, Ke as BuildingIcon, nt as CalendarIcon, yt as CartIcon, ht as ChartLineIcon, Mt as ChatIcon, Ue as CheckCircleIcon, Be as CheckIcon, G as ChevronDownIcon, W as ChevronLeftIcon, U as ChevronRightIcon, rt as ChevronUpIcon, ct as ClipboardIcon, de as ClockIcon, It as CloseCircleIcon, ce as CloseIcon, se as CopyIcon, Qe as CreditCardIcon, Te as CubeIcon, ut as DiscountIcon, Rt as DocumentTextIcon, le as DotsHorizontalIcon, $e as EditIcon, it as ExportIcon, J as ExternalLinkIcon, Ve as EyeIcon, He as EyeOffIcon, Fe as FacebookIcon, wt as FileDownloadIcon, q as FilterIcon, Pt as FlagIcon, Lt as FlashIcon, ie as GithubIcon, ge as GlobeIcon, re as GoogleIcon, ye as HelpIcon, Ye as HomeIcon, ve as InfoIcon, qe as KeyIcon, mt as LinkIcon, Ft as LocationIcon, tt as LockIcon, Pe as MailIcon, bt as MenuIcon, vt as MinusCircleIcon, ke as MobileIcon, st as MoneyReceiveIcon, ot as MoneySendIcon, Oe as MonitorIcon, De as MoonIcon, lt as NoteIcon, Dt as PaletteIcon, Le as PasskeyIcon, kt as PauseIcon, Me as PhoneIcon, pe as PinIcon, St as PlayCircleIcon, je as PlusIcon, jt as ReceiptIcon, Ae as RefreshIcon, At as RefundIcon, we as RocketIcon, Cr as SELECT_CARD_BRANDS, lu as SELECT_COLOR_PRESETS, Ha as SELECT_COL_DATETIME, Ua as SELECT_COL_ID, nr as SELECT_COUNTRIES, Kl as SELECT_DAILY_PRESETS, Ul as SELECT_DATE_PRESETS, fr as SELECT_SPACE, cr as SELECT_TRANSACTION_STATUS, ae as SearchIcon, ku as SelectAccordion, Ma as SelectActionCard, ur as SelectActionList, dr as SelectActionMenu, hn as SelectAddButton, to as SelectAddCard, on as SelectAlert, Na as SelectAppTile, B as SelectAuthFx, _i as SelectAvatar, wi as SelectBackLink, sr as SelectBadge, ss as SelectBalanceCard, Bn as SelectBankAccountField, Ls as SelectBarChart, br as SelectBox, Tc as SelectBoxPlot, nu as SelectBuilderLayout, ru as SelectBuilderWorkspace, vc as SelectBullet, Xc as SelectBump, H as SelectButton, Dc as SelectCalendarHeatmap, wc as SelectCandlestick, V as SelectCard, no as SelectCardGrid, Eu as SelectCertificatePreview, xs as SelectChartCard, Gs as SelectChartLegend, Jt as SelectCheckbox, xu as SelectChoiceCard, Su as SelectChoiceCardSkeleton, Cu as SelectChoiceGrid, Ic as SelectChord, rl as SelectCirclePack, ja as SelectCollapsible, yu as SelectColorField, Ws as SelectColumnChart, Bs as SelectComboChart, In as SelectCombobox, za as SelectConfirmModal, ka as SelectCopyRow, Aa as SelectCopyableId, Pa as SelectCreateTile, eo as SelectDataTable, Vo as SelectDateField, Jl as SelectDatePicker, $l as SelectDateRangeField, fl as SelectDetailList, pl as SelectDetailRow, Nr as SelectDisclosureButton, gi as SelectDivider, an as SelectDocumentField, Vs as SelectDonut, S as SelectDotField, Ac as SelectDumbbell, cs as SelectFeeBreakdown, qt as SelectField, Ln as SelectFieldGrid, mn as SelectFileDropzone, sn as SelectFileTile, Ko as SelectFilterBar, Oa as SelectFilterChip, au as SelectFlowCanvas, su as SelectFlowLayout, ou as SelectFlowNode, Ii as SelectFormLayout, Ba as SelectFormModal, tc as SelectFunnel, oc as SelectGauge, Mc as SelectGaugeBands, Gc as SelectGlobe, _r as SelectGrid, sc as SelectHeatmap, Lc as SelectHexbin, wo as SelectHideMoneyToggle, hc as SelectHorizontalBar, el as SelectIcicle, Gi as SelectIcon, Mr as SelectIconButton, Xs as SelectIconTile, bi as SelectIdentityFooter, Ou as SelectImageField, Cn as SelectImageGalleryField, _n as SelectImageUploadField, gn as SelectImageUrlsField, kl as SelectImageZoomModal, Ut as SelectInfoTip, gr as SelectInline, bs as SelectInsight, Js as SelectJourney, di as SelectJsonViewer, Pl as SelectKeyValueEditor, ls as SelectKpiCard, Wt as SelectLabelRow, ao as SelectLayoutThumb, Rs as SelectLineChart, hi as SelectLinkButton, Tl as SelectListCard, Dl as SelectListLabel, El as SelectListRow, Mi as SelectLoader, jc as SelectMarimekko, ko as SelectMarkStack, jl as SelectMediaCell, xa as SelectMenu, Da as SelectMenuButton, Ea as SelectMenuDivider, Ta as SelectMenuHeading, Ca as SelectMenuItem, wa as SelectMenuLink, Co as SelectMetricDelta, $s as SelectMiniStats, La as SelectModal, xo as SelectMoney, en as SelectMoneyField, il as SelectNetwork, Ki as SelectNote, eu as SelectNumberField, To as SelectOfferPrice, Ml as SelectOfflineModal, vi as SelectOptionList, yi as SelectOptionRow, xi as SelectOtpInput, Ni as SelectPage, oa as SelectPagination, Yi as SelectPanel, Zc as SelectParallel, qc as SelectPareto, ji as SelectPasswordStrength, jr as SelectPaymentBrand, ec as SelectPaymentCard, ir as SelectPhoneField, Ys as SelectPips, wl as SelectPlanCard, Oc as SelectPolarArea, Pn as SelectPopover, os as SelectPreviewFrame, bu as SelectProgressBar, cc as SelectProgressList, Yc as SelectPyramid, Sc as SelectRadar, uc as SelectRadialBar, ar as SelectRadioGroup, Ec as SelectRangeBar, Do as SelectRating, Oo as SelectRatingQuote, ro as SelectRecordCard, tu as SelectRepeatingFieldArray, Ti as SelectResendButton, Di as SelectRetryStatus, qs as SelectRing, Ra as SelectRowActions, Cc as SelectSankey, xc as SelectScatter, ra as SelectSearchInput, al as SelectSearchMenu, sl as SelectSearchMenuOption, Xi as SelectSection, or as SelectSegmented, wn as SelectSelect, bo as SelectSensitiveValue, qi as SelectSettingList, Ji as SelectSettingRow, _l as SelectSetupGuide, vl as SelectSetupNext, Ks as SelectShareBar, na as SelectSideNav, Ui as SelectSkeleton, kc as SelectSlope, Fs as SelectSparkline, co as SelectSplitChain, Zs as SelectSpotlight, hr as SelectStack, zs as SelectStackedArea, lr as SelectStatusBadge, ml as SelectSteps, Nc as SelectStreamGraph, Pc as SelectSunburst, Jo as SelectSurface, Vn as SelectSwitch, cu as SelectSwitchField, ha as SelectTable, ya as SelectTableCell, ba as SelectTableEmpty, va as SelectTableRow, Zi as SelectTabs, qo as SelectTagSelect, Qs as SelectTaskCard, xr as SelectText, Yt as SelectTextarea, ul as SelectThemeSwitcher, Ol as SelectThumbnail, Kc as SelectTicker, mi as SelectTimeline, ts as SelectToastProvider, Hn as SelectToggleList, Wn as SelectTogglePanel, Un as SelectToggleRow, Ht as SelectTooltip, Cl as SelectTour, tl as SelectTree, bc as SelectTreemap, Xt as SelectUnitInput, _a as SelectUserCell, vo as SelectValueVisibilityProvider, nl as SelectVenn, Fc as SelectViolin, Jc as SelectWaffle, gc as SelectWaterfall, Rc as SelectWordCloud, Fa as SelectWorkspaceSwitcher, Al as SelectZoomThumbnail, _e as SelectorIcon, et as SendIcon, ue as Setting4Icon, Xe as SettingsIcon, ze as ShieldIcon, Nt as SparkleIcon, he as SplitIcon, me as StarIcon, gt as StoreIcon, xt as StorefrontIcon, Ee as SunIcon, Ce as TerminalIcon, dt as TicketDiscountIcon, Je as TrashIcon, pt as TruckIcon, oe as UploadIcon, xe as UserIcon, Et as UsersIcon, Ze as WalletIcon, be as WarningIcon, Ge as Web3Icon, pu as contrastRatio, Mn as detectSelectTheme, rr as dialCodeOf, ps as formatInsightImpact, yn as galleryItemFromFile, bn as galleryItemFromUrl, hu as hexToHsv, gu as hsvToHex, du as normalizeHex, Ai as passwordScore, ll as resolveSelectTheme, Er as selectCardBrand, Dr as selectCardBrandLabel, Qa as useSelectPageSize, ns as useSelectToast, yo as useSelectValueVisibility };
|
|
27095
27126
|
|
|
27096
27127
|
//# sourceMappingURL=index.js.map
|