@selectwin/kit 0.1.122 → 0.1.123
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/SelectProgressList.d.ts +7 -1
- package/dist/SelectSpotlight.d.ts +1 -1
- package/dist/chartTip.d.ts +11 -0
- package/dist/index.js +465 -447
- 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))
|
|
@@ -6703,7 +6707,7 @@ var ya = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6703
6707
|
children: [n ? /* @__PURE__ */ m("span", {
|
|
6704
6708
|
className: `select-table__disclosure${n === "open" ? " is-open" : ""}`,
|
|
6705
6709
|
"aria-hidden": "true",
|
|
6706
|
-
children: n !== "none" && /* @__PURE__ */ m(
|
|
6710
|
+
children: n !== "none" && /* @__PURE__ */ m(U, {})
|
|
6707
6711
|
}) : null, e]
|
|
6708
6712
|
});
|
|
6709
6713
|
}), ba = r(function({ icon: e, title: t, subtitle: n, action: r, className: i, ...a }, o) {
|
|
@@ -7177,14 +7181,14 @@ function za({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
7177
7181
|
theme: l ?? Mn(),
|
|
7178
7182
|
footer: /* @__PURE__ */ h("div", {
|
|
7179
7183
|
className: "select-modal__actions",
|
|
7180
|
-
children: [/* @__PURE__ */ m(
|
|
7184
|
+
children: [/* @__PURE__ */ m(H, {
|
|
7181
7185
|
variant: "secondary",
|
|
7182
7186
|
size: "sm",
|
|
7183
7187
|
inline: !0,
|
|
7184
7188
|
onClick: t,
|
|
7185
7189
|
disabled: c,
|
|
7186
7190
|
children: o
|
|
7187
|
-
}), /* @__PURE__ */ m(
|
|
7191
|
+
}), /* @__PURE__ */ m(H, {
|
|
7188
7192
|
variant: s ? "danger" : "primary",
|
|
7189
7193
|
size: "sm",
|
|
7190
7194
|
inline: !0,
|
|
@@ -7208,14 +7212,14 @@ function Ba({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
7208
7212
|
theme: p ?? Mn(),
|
|
7209
7213
|
footer: /* @__PURE__ */ h("div", {
|
|
7210
7214
|
className: "select-modal__actions",
|
|
7211
|
-
children: [/* @__PURE__ */ m(
|
|
7215
|
+
children: [/* @__PURE__ */ m(H, {
|
|
7212
7216
|
variant: "secondary",
|
|
7213
7217
|
size: "sm",
|
|
7214
7218
|
inline: !0,
|
|
7215
7219
|
onClick: t,
|
|
7216
7220
|
disabled: c,
|
|
7217
7221
|
children: s
|
|
7218
|
-
}), /* @__PURE__ */ m(
|
|
7222
|
+
}), /* @__PURE__ */ m(H, {
|
|
7219
7223
|
variant: u,
|
|
7220
7224
|
size: "sm",
|
|
7221
7225
|
inline: !0,
|
|
@@ -7317,15 +7321,15 @@ function $a(e, t, n) {
|
|
|
7317
7321
|
});
|
|
7318
7322
|
}
|
|
7319
7323
|
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)),
|
|
7324
|
+
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
7325
|
let r = new Set(t), i = n(e);
|
|
7322
7326
|
return r.delete(i) || r.add(i), r;
|
|
7323
|
-
}),
|
|
7327
|
+
}), R = (e) => {
|
|
7324
7328
|
C((t) => {
|
|
7325
7329
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
7326
7330
|
return g && Ka(g, r), n && I((t) => t && t.key === e.key ? null : t), r;
|
|
7327
7331
|
});
|
|
7328
|
-
},
|
|
7332
|
+
}, z = (e) => {
|
|
7329
7333
|
I((t) => {
|
|
7330
7334
|
let n = e.sortDefault ?? "asc";
|
|
7331
7335
|
return !t || t.key !== e.key ? {
|
|
@@ -7336,12 +7340,12 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7336
7340
|
dir: n === "asc" ? "desc" : "asc"
|
|
7337
7341
|
} : null;
|
|
7338
7342
|
});
|
|
7339
|
-
},
|
|
7340
|
-
let e =
|
|
7343
|
+
}, B = F ? e.find((e) => e.key === F.key) : void 0, V = l(() => {
|
|
7344
|
+
let e = B == null ? void 0 : B.sortValue;
|
|
7341
7345
|
if (!F || !e) return (e) => e;
|
|
7342
7346
|
let t = F.dir === "asc" ? 1 : -1;
|
|
7343
7347
|
return (n) => [...n].sort((n, r) => $a(e(n), e(r), t));
|
|
7344
|
-
}, [F,
|
|
7348
|
+
}, [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
7349
|
label: "",
|
|
7346
7350
|
grow: 1
|
|
7347
7351
|
}] : N.map((e) => ({
|
|
@@ -7352,9 +7356,9 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7352
7356
|
grow: e.grow,
|
|
7353
7357
|
sortable: !!e.sortValue,
|
|
7354
7358
|
sortDir: (F == null ? void 0 : F.key) === e.key ? F.dir : null,
|
|
7355
|
-
onSort: e.sortValue ? () =>
|
|
7359
|
+
onSort: e.sortValue ? () => z(e) : void 0,
|
|
7356
7360
|
resizable: !!e.title
|
|
7357
|
-
})),
|
|
7361
|
+
})), W = (e, t) => {
|
|
7358
7362
|
let n = N[e];
|
|
7359
7363
|
n && O((e) => {
|
|
7360
7364
|
let r = { ...e };
|
|
@@ -7393,7 +7397,7 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7393
7397
|
"aria-checked": t,
|
|
7394
7398
|
disabled: n,
|
|
7395
7399
|
className: "select-facet__opt",
|
|
7396
|
-
onClick: () =>
|
|
7400
|
+
onClick: () => R(e),
|
|
7397
7401
|
children: [/* @__PURE__ */ m("span", { children: e.title }), t && /* @__PURE__ */ m("span", {
|
|
7398
7402
|
className: "select-facet__check",
|
|
7399
7403
|
"aria-hidden": "true",
|
|
@@ -7419,7 +7423,7 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7419
7423
|
return /* @__PURE__ */ h("div", {
|
|
7420
7424
|
className: "select-datatable",
|
|
7421
7425
|
children: [/* @__PURE__ */ m(ha, {
|
|
7422
|
-
columns:
|
|
7426
|
+
columns: U,
|
|
7423
7427
|
empty: q,
|
|
7424
7428
|
title: s,
|
|
7425
7429
|
help: c,
|
|
@@ -7428,29 +7432,29 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7428
7432
|
action: f,
|
|
7429
7433
|
tools: E ? null : ae,
|
|
7430
7434
|
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}`)) :
|
|
7435
|
+
onColumnResize: E ? void 0 : (e, t) => W(e, t),
|
|
7436
|
+
onColumnResizeReset: E ? void 0 : (e) => W(e, null),
|
|
7437
|
+
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
7438
|
onClick: x ?? o ? () => (x ?? o)(e) : void 0,
|
|
7435
7439
|
children: /* @__PURE__ */ m(ya, { children: y(e) })
|
|
7436
7440
|
}, n(e))) : r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(va, { children: N.map((e, t) => /* @__PURE__ */ m(ya, {
|
|
7437
7441
|
align: e.align,
|
|
7438
7442
|
width: e.width,
|
|
7439
7443
|
children: /* @__PURE__ */ m("span", { className: "select-skeleton select-datatable__skel" })
|
|
7440
|
-
}, t)) }, `skeleton-${t}`)) :
|
|
7441
|
-
let t =
|
|
7444
|
+
}, t)) }, `skeleton-${t}`)) : H.flatMap((e) => {
|
|
7445
|
+
let t = re(e);
|
|
7442
7446
|
if (t.length === 0) return [/* @__PURE__ */ m(va, {
|
|
7443
7447
|
onClick: o ? () => o(e) : void 0,
|
|
7444
7448
|
children: N.map((t, n) => /* @__PURE__ */ m(ya, {
|
|
7445
7449
|
align: t.align,
|
|
7446
7450
|
width: t.width,
|
|
7447
|
-
disclosure:
|
|
7451
|
+
disclosure: ie && n === 0 ? "none" : void 0,
|
|
7448
7452
|
children: t.render(e)
|
|
7449
7453
|
}, n))
|
|
7450
7454
|
}, n(e))];
|
|
7451
7455
|
let r = te(e);
|
|
7452
7456
|
return [/* @__PURE__ */ m(va, {
|
|
7453
|
-
onClick: () =>
|
|
7457
|
+
onClick: () => ne(e),
|
|
7454
7458
|
expanded: r,
|
|
7455
7459
|
children: N.map((t, n) => /* @__PURE__ */ m(ya, {
|
|
7456
7460
|
align: t.align,
|
|
@@ -7458,7 +7462,7 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7458
7462
|
disclosure: n === 0 ? r ? "open" : "closed" : void 0,
|
|
7459
7463
|
children: t.render(e)
|
|
7460
7464
|
}, n))
|
|
7461
|
-
}, n(e)), ...r ?
|
|
7465
|
+
}, n(e)), ...r ? V(t).map((t) => /* @__PURE__ */ m(va, {
|
|
7462
7466
|
nested: !0,
|
|
7463
7467
|
onClick: o ? () => o(t) : void 0,
|
|
7464
7468
|
children: N.map((e, n) => /* @__PURE__ */ m(ya, {
|
|
@@ -8049,7 +8053,7 @@ var Vo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8049
8053
|
className: "select-datepicker__nav",
|
|
8050
8054
|
"aria-label": "Mês anterior",
|
|
8051
8055
|
onClick: () => E((e) => Io(e, -1)),
|
|
8052
|
-
children: /* @__PURE__ */ m(
|
|
8056
|
+
children: /* @__PURE__ */ m(W, {})
|
|
8053
8057
|
}),
|
|
8054
8058
|
/* @__PURE__ */ h("span", {
|
|
8055
8059
|
className: "select-datepicker__monthlabel",
|
|
@@ -8064,7 +8068,7 @@ var Vo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8064
8068
|
className: "select-datepicker__nav",
|
|
8065
8069
|
"aria-label": "Próximo mês",
|
|
8066
8070
|
onClick: () => E((e) => Io(e, 1)),
|
|
8067
|
-
children: /* @__PURE__ */ m(
|
|
8071
|
+
children: /* @__PURE__ */ m(U, {})
|
|
8068
8072
|
})
|
|
8069
8073
|
]
|
|
8070
8074
|
}),
|
|
@@ -8103,19 +8107,19 @@ var Vo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8103
8107
|
}),
|
|
8104
8108
|
/* @__PURE__ */ h("div", {
|
|
8105
8109
|
className: "select-datefield__footer",
|
|
8106
|
-
children: [p && w ? /* @__PURE__ */ m(
|
|
8110
|
+
children: [p && w ? /* @__PURE__ */ m(H, {
|
|
8107
8111
|
variant: "secondary",
|
|
8108
8112
|
inline: !0,
|
|
8109
8113
|
onClick: I,
|
|
8110
8114
|
children: "Limpar"
|
|
8111
8115
|
}) : /* @__PURE__ */ m("span", {}), /* @__PURE__ */ h("div", {
|
|
8112
8116
|
className: "select-datefield__footer-right",
|
|
8113
|
-
children: [/* @__PURE__ */ m(
|
|
8117
|
+
children: [/* @__PURE__ */ m(H, {
|
|
8114
8118
|
variant: "secondary",
|
|
8115
8119
|
inline: !0,
|
|
8116
8120
|
onClick: () => P(M),
|
|
8117
8121
|
children: "Hoje"
|
|
8118
|
-
}), r && /* @__PURE__ */ m(
|
|
8122
|
+
}), r && /* @__PURE__ */ m(H, {
|
|
8119
8123
|
variant: "primary",
|
|
8120
8124
|
inline: !0,
|
|
8121
8125
|
onClick: () => C(!1),
|
|
@@ -8785,7 +8789,7 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8785
8789
|
children: [/* @__PURE__ */ m("h3", {
|
|
8786
8790
|
className: "select-balance__title",
|
|
8787
8791
|
children: t
|
|
8788
|
-
}), i && /* @__PURE__ */ m(
|
|
8792
|
+
}), i && /* @__PURE__ */ m(H, {
|
|
8789
8793
|
variant: "primary",
|
|
8790
8794
|
size: "sm",
|
|
8791
8795
|
inline: !0,
|
|
@@ -9521,8 +9525,8 @@ function Q() {
|
|
|
9521
9525
|
let [e, t] = d(null);
|
|
9522
9526
|
return {
|
|
9523
9527
|
tip: e,
|
|
9524
|
-
show: (e) => t(e),
|
|
9525
|
-
hide: () => t(null)
|
|
9528
|
+
show: i((e) => t(e), []),
|
|
9529
|
+
hide: i(() => t(null), [])
|
|
9526
9530
|
};
|
|
9527
9531
|
}
|
|
9528
9532
|
function $({ tip: e, className: t, ...n }) {
|
|
@@ -9568,9 +9572,20 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
9568
9572
|
}, t))]
|
|
9569
9573
|
});
|
|
9570
9574
|
}
|
|
9575
|
+
function Is({ tip: e, onDismiss: t }) {
|
|
9576
|
+
return o(() => {
|
|
9577
|
+
if (e) return window.addEventListener("scroll", t, !0), window.addEventListener("resize", t), () => {
|
|
9578
|
+
window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", t);
|
|
9579
|
+
};
|
|
9580
|
+
}, [e, t]), !e || typeof document > "u" ? null : g(/* @__PURE__ */ m("div", {
|
|
9581
|
+
className: "select select-chart-tiplayer",
|
|
9582
|
+
"aria-hidden": "true",
|
|
9583
|
+
children: /* @__PURE__ */ m($, { tip: e })
|
|
9584
|
+
}), document.body);
|
|
9585
|
+
}
|
|
9571
9586
|
//#endregion
|
|
9572
9587
|
//#region src/SelectBarChart.tsx
|
|
9573
|
-
function
|
|
9588
|
+
function Ls({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
9574
9589
|
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
9590
|
return /* @__PURE__ */ h("div", {
|
|
9576
9591
|
...a,
|
|
@@ -9647,7 +9662,7 @@ function Is({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
9647
9662
|
}
|
|
9648
9663
|
//#endregion
|
|
9649
9664
|
//#region src/SelectLineChart.tsx
|
|
9650
|
-
function
|
|
9665
|
+
function Rs({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1, className: a, ...o }) {
|
|
9651
9666
|
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
9667
|
return /* @__PURE__ */ h("div", {
|
|
9653
9668
|
...o,
|
|
@@ -9760,7 +9775,7 @@ function Ls({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
9760
9775
|
}
|
|
9761
9776
|
//#endregion
|
|
9762
9777
|
//#region src/SelectStackedArea.tsx
|
|
9763
|
-
function
|
|
9778
|
+
function zs({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
9764
9779
|
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
9780
|
return /* @__PURE__ */ h("div", {
|
|
9766
9781
|
...a,
|
|
@@ -9866,7 +9881,7 @@ function Rs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
9866
9881
|
}
|
|
9867
9882
|
//#endregion
|
|
9868
9883
|
//#region src/SelectComboChart.tsx
|
|
9869
|
-
function
|
|
9884
|
+
function Bs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
|
|
9870
9885
|
let { ref: l, width: u } = Y(r), f = Q(), p = s(), [g, _] = d(null), v = {
|
|
9871
9886
|
...Ps,
|
|
9872
9887
|
right: 58
|
|
@@ -9997,7 +10012,7 @@ function zs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
9997
10012
|
}
|
|
9998
10013
|
//#endregion
|
|
9999
10014
|
//#region src/SelectDonut.tsx
|
|
10000
|
-
var
|
|
10015
|
+
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
10016
|
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
10017
|
return /* @__PURE__ */ h("div", {
|
|
10003
10018
|
ref: f,
|
|
@@ -10089,9 +10104,9 @@ var Bs = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
10089
10104
|
/* @__PURE__ */ m($, { tip: p.tip })
|
|
10090
10105
|
]
|
|
10091
10106
|
});
|
|
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 *
|
|
10107
|
+
}), Hs = 6.4, Us = 12;
|
|
10108
|
+
function Ws({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, marker: a, tooltip: o, className: c, ...l }) {
|
|
10109
|
+
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
10110
|
if (o) {
|
|
10096
10111
|
let e = o(t);
|
|
10097
10112
|
return e ? {
|
|
@@ -10258,7 +10273,7 @@ function Us({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
10258
10273
|
}
|
|
10259
10274
|
//#endregion
|
|
10260
10275
|
//#region src/SelectChartLegend.tsx
|
|
10261
|
-
function
|
|
10276
|
+
function Gs({ items: e, className: t, ...n }) {
|
|
10262
10277
|
return /* @__PURE__ */ m("div", {
|
|
10263
10278
|
...n,
|
|
10264
10279
|
className: `select-chartlegend${t ? " " + t : ""}`,
|
|
@@ -10287,7 +10302,7 @@ function Ws({ items: e, className: t, ...n }) {
|
|
|
10287
10302
|
}
|
|
10288
10303
|
//#endregion
|
|
10289
10304
|
//#region src/SelectShareBar.tsx
|
|
10290
|
-
function
|
|
10305
|
+
function Ks({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm", onSelect: a, selected: o, hint: s, className: c, ...l }) {
|
|
10291
10306
|
let u = e.map((e, t) => ({
|
|
10292
10307
|
...e,
|
|
10293
10308
|
key: e.key ?? e.label,
|
|
@@ -10392,7 +10407,7 @@ function Gs({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm",
|
|
|
10392
10407
|
}
|
|
10393
10408
|
//#endregion
|
|
10394
10409
|
//#region src/SelectRing.tsx
|
|
10395
|
-
var
|
|
10410
|
+
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
10411
|
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
10412
|
"--select-ring-size": `${n / 16}rem`,
|
|
10398
10413
|
...u
|
|
@@ -10436,7 +10451,7 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10436
10451
|
})]
|
|
10437
10452
|
})]
|
|
10438
10453
|
});
|
|
10439
|
-
}),
|
|
10454
|
+
}), Js = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
|
|
10440
10455
|
let l = (t) => {
|
|
10441
10456
|
let n = e[t];
|
|
10442
10457
|
return n != null && n.state !== "upcoming";
|
|
@@ -10494,7 +10509,7 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10494
10509
|
})
|
|
10495
10510
|
})
|
|
10496
10511
|
});
|
|
10497
|
-
}),
|
|
10512
|
+
}), Ys = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
|
|
10498
10513
|
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
10514
|
return /* @__PURE__ */ h("span", {
|
|
10500
10515
|
ref: o,
|
|
@@ -10510,7 +10525,7 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10510
10525
|
children: l
|
|
10511
10526
|
})]
|
|
10512
10527
|
});
|
|
10513
|
-
}),
|
|
10528
|
+
}), Xs = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
|
|
10514
10529
|
return /* @__PURE__ */ m("span", {
|
|
10515
10530
|
ref: a,
|
|
10516
10531
|
"aria-hidden": "true",
|
|
@@ -10518,7 +10533,7 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10518
10533
|
className: `select-icontile select-icontile--${t} select-icontile--${n}${r ? " " + r : ""}`,
|
|
10519
10534
|
children: e
|
|
10520
10535
|
});
|
|
10521
|
-
}),
|
|
10536
|
+
}), 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
10537
|
let f = a != null && o === "end";
|
|
10523
10538
|
return /* @__PURE__ */ m("section", {
|
|
10524
10539
|
ref: d,
|
|
@@ -10566,7 +10581,7 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10566
10581
|
})]
|
|
10567
10582
|
})
|
|
10568
10583
|
});
|
|
10569
|
-
}),
|
|
10584
|
+
}), Qs = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
|
|
10570
10585
|
return /* @__PURE__ */ h("article", {
|
|
10571
10586
|
ref: l,
|
|
10572
10587
|
...c,
|
|
@@ -10601,7 +10616,7 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10601
10616
|
})]
|
|
10602
10617
|
})]
|
|
10603
10618
|
});
|
|
10604
|
-
}),
|
|
10619
|
+
}), $s = r(function({ items: e, order: t = "label-first", className: n, ...r }, i) {
|
|
10605
10620
|
return /* @__PURE__ */ m("dl", {
|
|
10606
10621
|
ref: i,
|
|
10607
10622
|
...r,
|
|
@@ -10617,7 +10632,7 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10617
10632
|
})]
|
|
10618
10633
|
}, e.key ?? t))
|
|
10619
10634
|
});
|
|
10620
|
-
}),
|
|
10635
|
+
}), ec = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
|
|
10621
10636
|
let o = (t ?? "").replace(/\D/g, "").slice(-4);
|
|
10622
10637
|
return /* @__PURE__ */ h("div", {
|
|
10623
10638
|
ref: a,
|
|
@@ -10660,14 +10675,14 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10660
10675
|
})
|
|
10661
10676
|
]
|
|
10662
10677
|
});
|
|
10663
|
-
}),
|
|
10678
|
+
}), tc = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
|
|
10664
10679
|
let s = Math.max(1, ...e.map((e) => e.value));
|
|
10665
10680
|
return /* @__PURE__ */ m("div", {
|
|
10666
10681
|
ref: o,
|
|
10667
10682
|
...a,
|
|
10668
10683
|
className: `select-funnel select-funnel--${n}${i ? " " + i : ""}`,
|
|
10669
10684
|
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-
|
|
10685
|
+
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
10686
|
return /* @__PURE__ */ h("div", {
|
|
10672
10687
|
className: "select-funnel__row",
|
|
10673
10688
|
children: [
|
|
@@ -10702,19 +10717,19 @@ var Ks = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10702
10717
|
});
|
|
10703
10718
|
//#endregion
|
|
10704
10719
|
//#region src/SelectGauge.tsx
|
|
10705
|
-
function
|
|
10720
|
+
function nc(e) {
|
|
10706
10721
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
10707
10722
|
}
|
|
10708
|
-
function
|
|
10723
|
+
function rc(e, t, n, r) {
|
|
10709
10724
|
let i = Math.PI + r * Math.PI;
|
|
10710
10725
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
10711
10726
|
}
|
|
10712
|
-
function
|
|
10713
|
-
let [a, o] =
|
|
10727
|
+
function ic(e, t, n, r, i) {
|
|
10728
|
+
let [a, o] = rc(e, t, n, r), [s, c] = rc(e, t, n, i);
|
|
10714
10729
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
10715
10730
|
}
|
|
10716
|
-
var
|
|
10717
|
-
let u =
|
|
10731
|
+
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) {
|
|
10732
|
+
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
10733
|
value: u,
|
|
10719
10734
|
format: o
|
|
10720
10735
|
});
|
|
@@ -10737,13 +10752,13 @@ var ic = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10737
10752
|
"aria-hidden": "true",
|
|
10738
10753
|
children: [/* @__PURE__ */ m("path", {
|
|
10739
10754
|
className: "select-gauge__track",
|
|
10740
|
-
d:
|
|
10755
|
+
d: ic(g, _, p, 0, 1),
|
|
10741
10756
|
fill: "none",
|
|
10742
10757
|
strokeWidth: d,
|
|
10743
10758
|
strokeLinecap: "round"
|
|
10744
10759
|
}), u > 0 && /* @__PURE__ */ m("path", {
|
|
10745
10760
|
className: "select-gauge__arc",
|
|
10746
|
-
d:
|
|
10761
|
+
d: ic(g, _, p, 0, u / 100),
|
|
10747
10762
|
fill: "none",
|
|
10748
10763
|
stroke: a ?? "var(--select-chart-1)",
|
|
10749
10764
|
strokeWidth: d,
|
|
@@ -10766,7 +10781,7 @@ var ic = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10766
10781
|
children: n
|
|
10767
10782
|
})]
|
|
10768
10783
|
});
|
|
10769
|
-
}),
|
|
10784
|
+
}), 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
10785
|
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
10786
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
10772
10787
|
width: "fit-content",
|
|
@@ -10808,11 +10823,11 @@ var ic = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10808
10823
|
color: l > .55 ? "#fff" : "var(--select-text)"
|
|
10809
10824
|
},
|
|
10810
10825
|
onMouseEnter: (o) => {
|
|
10811
|
-
let c = o.currentTarget.
|
|
10826
|
+
let c = o.currentTarget.getBoundingClientRect(), l = c.top < 72 ? "bottom" : "top";
|
|
10812
10827
|
_.show({
|
|
10813
|
-
x:
|
|
10814
|
-
y:
|
|
10815
|
-
place:
|
|
10828
|
+
x: c.left + c.width / 2,
|
|
10829
|
+
y: l === "bottom" ? c.bottom : c.top,
|
|
10830
|
+
place: l,
|
|
10816
10831
|
title: `${n.label} · ${e[s] ?? ""}`,
|
|
10817
10832
|
rows: [{
|
|
10818
10833
|
label: "Valor",
|
|
@@ -10826,21 +10841,24 @@ var ic = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10826
10841
|
}, c);
|
|
10827
10842
|
})] }, n.label))
|
|
10828
10843
|
]
|
|
10829
|
-
}), /* @__PURE__ */ m(
|
|
10844
|
+
}), /* @__PURE__ */ m(Is, {
|
|
10845
|
+
tip: _.tip,
|
|
10846
|
+
onDismiss: _.hide
|
|
10847
|
+
})]
|
|
10830
10848
|
});
|
|
10831
10849
|
});
|
|
10832
10850
|
//#endregion
|
|
10833
10851
|
//#region src/SelectProgressList.tsx
|
|
10834
|
-
function
|
|
10852
|
+
function cc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1 }) {
|
|
10835
10853
|
if (e.length === 0) return /* @__PURE__ */ m("div", {
|
|
10836
10854
|
className: "select-progresslist__empty",
|
|
10837
10855
|
children: r
|
|
10838
10856
|
});
|
|
10839
|
-
let
|
|
10857
|
+
let a = Math.max(...e.map((e) => e.value), 1);
|
|
10840
10858
|
return /* @__PURE__ */ m("ul", {
|
|
10841
|
-
className: "select-progresslist"
|
|
10859
|
+
className: `select-progresslist${i ? " select-progresslist--spread" : ""}`,
|
|
10842
10860
|
children: e.map((e, r) => {
|
|
10843
|
-
let
|
|
10861
|
+
let i = e.color ?? n ?? X(r);
|
|
10844
10862
|
return /* @__PURE__ */ h("li", {
|
|
10845
10863
|
className: "select-progresslist__row",
|
|
10846
10864
|
children: [
|
|
@@ -10865,8 +10883,8 @@ function sc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
10865
10883
|
children: /* @__PURE__ */ m("span", {
|
|
10866
10884
|
className: "select-progresslist__bar",
|
|
10867
10885
|
style: {
|
|
10868
|
-
width: `${e.value /
|
|
10869
|
-
background: `linear-gradient(90deg, ${
|
|
10886
|
+
width: `${e.value / a * 100}%`,
|
|
10887
|
+
background: `linear-gradient(90deg, ${i}, color-mix(in srgb, ${i} 55%, transparent))`,
|
|
10870
10888
|
animationDelay: `${r * 40}ms`
|
|
10871
10889
|
}
|
|
10872
10890
|
})
|
|
@@ -10882,7 +10900,7 @@ function sc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
10882
10900
|
}
|
|
10883
10901
|
//#endregion
|
|
10884
10902
|
//#region src/SelectRadialBar.tsx
|
|
10885
|
-
var
|
|
10903
|
+
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
10904
|
let d = s(), f = t / 2, p = t / 2;
|
|
10887
10905
|
return /* @__PURE__ */ h("div", {
|
|
10888
10906
|
ref: u,
|
|
@@ -10922,7 +10940,7 @@ var cc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, lc = r(f
|
|
|
10922
10940
|
}) }), e.map((e, i) => {
|
|
10923
10941
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
10924
10942
|
if (a <= n / 2) return null;
|
|
10925
|
-
let o =
|
|
10943
|
+
let o = lc(e.value);
|
|
10926
10944
|
return /* @__PURE__ */ h("g", {
|
|
10927
10945
|
transform: `rotate(-90 ${f} ${p})`,
|
|
10928
10946
|
children: [/* @__PURE__ */ m("circle", {
|
|
@@ -10951,7 +10969,7 @@ var cc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, lc = r(f
|
|
|
10951
10969
|
className: "select-radial__center",
|
|
10952
10970
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ m("strong", {
|
|
10953
10971
|
className: "select-radial__value",
|
|
10954
|
-
children: i(
|
|
10972
|
+
children: i(lc(e[0].value))
|
|
10955
10973
|
}) : null)
|
|
10956
10974
|
})]
|
|
10957
10975
|
}), o && /* @__PURE__ */ m("ul", {
|
|
@@ -10969,15 +10987,15 @@ var cc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, lc = r(f
|
|
|
10969
10987
|
}),
|
|
10970
10988
|
/* @__PURE__ */ m("span", {
|
|
10971
10989
|
className: "select-donut__legval",
|
|
10972
|
-
children: i(
|
|
10990
|
+
children: i(lc(e.value))
|
|
10973
10991
|
})
|
|
10974
10992
|
]
|
|
10975
10993
|
}, t))
|
|
10976
10994
|
})]
|
|
10977
10995
|
});
|
|
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(
|
|
10996
|
+
}), dc = 6.1, fc = 12, pc = 56, mc = .4;
|
|
10997
|
+
function hc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
|
|
10998
|
+
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
10999
|
return /* @__PURE__ */ h("div", {
|
|
10982
11000
|
...u,
|
|
10983
11001
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -11052,7 +11070,7 @@ function mc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
11052
11070
|
onMouseLeave: g.hide
|
|
11053
11071
|
}),
|
|
11054
11072
|
/* @__PURE__ */ h("text", {
|
|
11055
|
-
x: x -
|
|
11073
|
+
x: x - fc / 2,
|
|
11056
11074
|
y: n,
|
|
11057
11075
|
className: "select-chart__ylabel",
|
|
11058
11076
|
dominantBaseline: "middle",
|
|
@@ -11067,7 +11085,7 @@ function mc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
11067
11085
|
}
|
|
11068
11086
|
//#endregion
|
|
11069
11087
|
//#region src/SelectWaterfall.tsx
|
|
11070
|
-
function
|
|
11088
|
+
function gc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11071
11089
|
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
11072
11090
|
if (e.total) return u = e.value, {
|
|
11073
11091
|
...e,
|
|
@@ -11182,7 +11200,7 @@ function hc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11182
11200
|
}
|
|
11183
11201
|
//#endregion
|
|
11184
11202
|
//#region src/SelectBullet.tsx
|
|
11185
|
-
var
|
|
11203
|
+
var _c = (e) => Math.max(0, Math.min(100, e)), vc = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
11186
11204
|
return /* @__PURE__ */ m("div", {
|
|
11187
11205
|
ref: i,
|
|
11188
11206
|
...r,
|
|
@@ -11220,12 +11238,12 @@ var gc = (e) => Math.max(0, Math.min(100, e)), _c = r(function({ items: e, forma
|
|
|
11220
11238
|
children: [/* @__PURE__ */ m("span", {
|
|
11221
11239
|
className: "select-bullet__fill",
|
|
11222
11240
|
style: {
|
|
11223
|
-
width: `${
|
|
11241
|
+
width: `${_c(e.value / i * 100)}%`,
|
|
11224
11242
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
11225
11243
|
}
|
|
11226
11244
|
}), /* @__PURE__ */ m("span", {
|
|
11227
11245
|
className: "select-bullet__tick",
|
|
11228
|
-
style: { left: `${
|
|
11246
|
+
style: { left: `${_c(e.target / i * 100)}%` }
|
|
11229
11247
|
})]
|
|
11230
11248
|
})]
|
|
11231
11249
|
}, `${e.label}-${n}`);
|
|
@@ -11234,7 +11252,7 @@ var gc = (e) => Math.max(0, Math.min(100, e)), _c = r(function({ items: e, forma
|
|
|
11234
11252
|
});
|
|
11235
11253
|
//#endregion
|
|
11236
11254
|
//#region src/SelectTreemap.tsx
|
|
11237
|
-
function
|
|
11255
|
+
function yc(e, t, n) {
|
|
11238
11256
|
let r = [], i = (e, t) => {
|
|
11239
11257
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
11240
11258
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -11285,8 +11303,8 @@ function vc(e, t, n) {
|
|
|
11285
11303
|
};
|
|
11286
11304
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
11287
11305
|
}
|
|
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 ?
|
|
11306
|
+
function bc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11307
|
+
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
11308
|
return /* @__PURE__ */ h("div", {
|
|
11291
11309
|
...i,
|
|
11292
11310
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -11356,7 +11374,7 @@ function yc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11356
11374
|
}
|
|
11357
11375
|
//#endregion
|
|
11358
11376
|
//#region src/SelectScatter.tsx
|
|
11359
|
-
function
|
|
11377
|
+
function xc({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
11360
11378
|
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
11379
|
return /* @__PURE__ */ h("div", {
|
|
11362
11380
|
...c,
|
|
@@ -11428,7 +11446,7 @@ function bc({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
11428
11446
|
}
|
|
11429
11447
|
//#endregion
|
|
11430
11448
|
//#region src/SelectRadar.tsx
|
|
11431
|
-
var
|
|
11449
|
+
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
11450
|
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
11451
|
return /* @__PURE__ */ h("div", {
|
|
11434
11452
|
ref: u,
|
|
@@ -11538,7 +11556,7 @@ var xc = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
11538
11556
|
});
|
|
11539
11557
|
//#endregion
|
|
11540
11558
|
//#region src/SelectSankey.tsx
|
|
11541
|
-
function
|
|
11559
|
+
function Cc({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
11542
11560
|
let { ref: s, width: c } = Y(t), l = Q(), u = [], d = [];
|
|
11543
11561
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
11544
11562
|
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 +11641,7 @@ function Sc({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
11623
11641
|
}
|
|
11624
11642
|
//#endregion
|
|
11625
11643
|
//#region src/SelectCandlestick.tsx
|
|
11626
|
-
function
|
|
11644
|
+
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
11645
|
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
11646
|
return /* @__PURE__ */ h("div", {
|
|
11629
11647
|
...o,
|
|
@@ -11713,7 +11731,7 @@ function Cc({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
11713
11731
|
}
|
|
11714
11732
|
//#endregion
|
|
11715
11733
|
//#region src/SelectBoxPlot.tsx
|
|
11716
|
-
function
|
|
11734
|
+
function Tc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11717
11735
|
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
11736
|
return /* @__PURE__ */ h("div", {
|
|
11719
11737
|
...i,
|
|
@@ -11833,7 +11851,7 @@ function wc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11833
11851
|
}
|
|
11834
11852
|
//#endregion
|
|
11835
11853
|
//#region src/SelectRangeBar.tsx
|
|
11836
|
-
function
|
|
11854
|
+
function Ec({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
11837
11855
|
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
11856
|
return /* @__PURE__ */ h("div", {
|
|
11839
11857
|
...c,
|
|
@@ -11914,7 +11932,7 @@ function Tc({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
11914
11932
|
}
|
|
11915
11933
|
//#endregion
|
|
11916
11934
|
//#region src/SelectCalendarHeatmap.tsx
|
|
11917
|
-
var
|
|
11935
|
+
var Dc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
11918
11936
|
"Seg",
|
|
11919
11937
|
"",
|
|
11920
11938
|
"Qua",
|
|
@@ -11987,7 +12005,7 @@ var Ec = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
11987
12005
|
]
|
|
11988
12006
|
}), /* @__PURE__ */ m($, { tip: p.tip })]
|
|
11989
12007
|
});
|
|
11990
|
-
}),
|
|
12008
|
+
}), Oc = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
11991
12009
|
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
12010
|
return /* @__PURE__ */ h("div", {
|
|
11993
12011
|
ref: s,
|
|
@@ -12061,7 +12079,7 @@ var Ec = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
12061
12079
|
});
|
|
12062
12080
|
//#endregion
|
|
12063
12081
|
//#region src/SelectSlope.tsx
|
|
12064
|
-
function
|
|
12082
|
+
function kc({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
12065
12083
|
let { ref: s, width: c } = Y(r), l = Q(), u = {
|
|
12066
12084
|
top: 24,
|
|
12067
12085
|
right: 64,
|
|
@@ -12183,7 +12201,7 @@ function Oc({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
12183
12201
|
}
|
|
12184
12202
|
//#endregion
|
|
12185
12203
|
//#region src/SelectDumbbell.tsx
|
|
12186
|
-
function
|
|
12204
|
+
function Ac({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
12187
12205
|
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
12206
|
return /* @__PURE__ */ h("div", {
|
|
12189
12207
|
...s,
|
|
@@ -12276,7 +12294,7 @@ function kc({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
12276
12294
|
}
|
|
12277
12295
|
//#endregion
|
|
12278
12296
|
//#region src/SelectMarimekko.tsx
|
|
12279
|
-
function
|
|
12297
|
+
function jc({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
12280
12298
|
let { ref: o, width: s } = Y(t), c = Q(), l = {
|
|
12281
12299
|
top: 6,
|
|
12282
12300
|
right: 6,
|
|
@@ -12356,7 +12374,7 @@ function Ac({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
12356
12374
|
}
|
|
12357
12375
|
//#endregion
|
|
12358
12376
|
//#region src/SelectGaugeBands.tsx
|
|
12359
|
-
var
|
|
12377
|
+
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
12378
|
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
12379
|
let t = Math.PI + e * Math.PI;
|
|
12362
12380
|
return [p + f * Math.cos(t), g + f * Math.sin(t)];
|
|
@@ -12428,7 +12446,7 @@ var jc = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
12428
12446
|
});
|
|
12429
12447
|
//#endregion
|
|
12430
12448
|
//#region src/SelectStreamGraph.tsx
|
|
12431
|
-
function
|
|
12449
|
+
function Nc({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
12432
12450
|
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = {
|
|
12433
12451
|
top: 14,
|
|
12434
12452
|
right: 14,
|
|
@@ -12519,7 +12537,7 @@ function Mc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
12519
12537
|
}
|
|
12520
12538
|
//#endregion
|
|
12521
12539
|
//#region src/SelectSunburst.tsx
|
|
12522
|
-
var
|
|
12540
|
+
var Pc = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
12523
12541
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
12524
12542
|
var t;
|
|
12525
12543
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -12612,7 +12630,7 @@ var Nc = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
12612
12630
|
});
|
|
12613
12631
|
//#endregion
|
|
12614
12632
|
//#region src/SelectViolin.tsx
|
|
12615
|
-
function
|
|
12633
|
+
function Fc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
12616
12634
|
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
12635
|
return /* @__PURE__ */ h("div", {
|
|
12618
12636
|
...i,
|
|
@@ -12700,7 +12718,7 @@ function Pc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
12700
12718
|
}
|
|
12701
12719
|
//#endregion
|
|
12702
12720
|
//#region src/SelectChord.tsx
|
|
12703
|
-
var
|
|
12721
|
+
var Ic = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
12704
12722
|
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
12723
|
for (let e = 0; e < l; e++) {
|
|
12706
12724
|
let t = b, n = b + g[e] * v;
|
|
@@ -12785,7 +12803,7 @@ var Fc = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
12785
12803
|
});
|
|
12786
12804
|
//#endregion
|
|
12787
12805
|
//#region src/SelectHexbin.tsx
|
|
12788
|
-
function
|
|
12806
|
+
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
12807
|
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
12808
|
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
12809
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
@@ -12837,7 +12855,7 @@ function Ic({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
12837
12855
|
}
|
|
12838
12856
|
//#endregion
|
|
12839
12857
|
//#region src/SelectWordCloud.tsx
|
|
12840
|
-
var
|
|
12858
|
+
var Rc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
12841
12859
|
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
12860
|
return /* @__PURE__ */ m("div", {
|
|
12843
12861
|
ref: a,
|
|
@@ -12854,7 +12872,7 @@ var Lc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
12854
12872
|
children: e.text
|
|
12855
12873
|
}, `${e.text}-${t}`))
|
|
12856
12874
|
});
|
|
12857
|
-
}),
|
|
12875
|
+
}), zc = [
|
|
12858
12876
|
[
|
|
12859
12877
|
-59.6,
|
|
12860
12878
|
-80,
|
|
@@ -23249,24 +23267,24 @@ var Lc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
23249
23267
|
-27.1,
|
|
23250
23268
|
83.5
|
|
23251
23269
|
]
|
|
23252
|
-
],
|
|
23253
|
-
function
|
|
23254
|
-
let n = e *
|
|
23270
|
+
], Bc = Math.PI / 180;
|
|
23271
|
+
function Vc(e, t) {
|
|
23272
|
+
let n = e * Bc, r = t * Bc;
|
|
23255
23273
|
return [
|
|
23256
23274
|
Math.cos(n) * Math.sin(r),
|
|
23257
23275
|
Math.sin(n),
|
|
23258
23276
|
Math.cos(n) * Math.cos(r)
|
|
23259
23277
|
];
|
|
23260
23278
|
}
|
|
23261
|
-
function
|
|
23262
|
-
let a = r *
|
|
23279
|
+
function Hc([e, t, n], r, i) {
|
|
23280
|
+
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
23281
|
return [
|
|
23264
23282
|
o,
|
|
23265
23283
|
t * Math.cos(c) - s * Math.sin(c),
|
|
23266
23284
|
t * Math.sin(c) + s * Math.cos(c)
|
|
23267
23285
|
];
|
|
23268
23286
|
}
|
|
23269
|
-
function
|
|
23287
|
+
function Uc(e, t, n) {
|
|
23270
23288
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
23271
23289
|
r = Math.max(-1, Math.min(1, r));
|
|
23272
23290
|
let i = Math.acos(r);
|
|
@@ -23278,7 +23296,7 @@ function Hc(e, t, n) {
|
|
|
23278
23296
|
e[2] * o + t[2] * s
|
|
23279
23297
|
];
|
|
23280
23298
|
}
|
|
23281
|
-
var
|
|
23299
|
+
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
23300
|
var S, C;
|
|
23283
23301
|
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
23302
|
lng: -O,
|
|
@@ -23286,10 +23304,10 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23286
23304
|
}), j = u({
|
|
23287
23305
|
lng: 0,
|
|
23288
23306
|
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(
|
|
23307
|
+
}), 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 = () => {
|
|
23308
|
+
L.current || (ee.current = performance.now(), L.current = requestAnimationFrame(H));
|
|
23291
23309
|
};
|
|
23292
|
-
function
|
|
23310
|
+
function H(e) {
|
|
23293
23311
|
let t = Math.min(.05, (e - ee.current) / 1e3);
|
|
23294
23312
|
ee.current = e, I.current += t;
|
|
23295
23313
|
let n = j.current, r = Math.abs(n.lng) + Math.abs(n.lat) > .02;
|
|
@@ -23299,24 +23317,24 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23299
23317
|
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
23318
|
} 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
23319
|
}
|
|
23302
|
-
te((e) => (e + 1) % 1e6), !k.current || P.current || N.current || Math.abs(n.lng) + Math.abs(n.lat) > .02 ? L.current = requestAnimationFrame(
|
|
23320
|
+
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
23321
|
}
|
|
23304
|
-
o(() => (k.current ||
|
|
23322
|
+
o(() => (k.current || V(), () => {
|
|
23305
23323
|
L.current && cancelAnimationFrame(L.current), L.current = 0;
|
|
23306
23324
|
}), []);
|
|
23307
|
-
let
|
|
23308
|
-
|
|
23325
|
+
let re = u(v);
|
|
23326
|
+
re.current = v, o(() => {
|
|
23309
23327
|
let e = E.current;
|
|
23310
23328
|
if (!e) return;
|
|
23311
23329
|
let t = (e) => {
|
|
23312
23330
|
var t;
|
|
23313
23331
|
e.preventDefault();
|
|
23314
23332
|
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 =
|
|
23333
|
+
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
23334
|
};
|
|
23317
23335
|
return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
|
|
23318
23336
|
}, []);
|
|
23319
|
-
let
|
|
23337
|
+
let ie = (e) => {
|
|
23320
23338
|
var t, n;
|
|
23321
23339
|
(t = (n = e.target).setPointerCapture) == null || t.call(n, e.pointerId), P.current = {
|
|
23322
23340
|
x: e.clientX,
|
|
@@ -23324,8 +23342,8 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23324
23342
|
}, j.current = {
|
|
23325
23343
|
lng: 0,
|
|
23326
23344
|
lat: 0
|
|
23327
|
-
}, N.current = null,
|
|
23328
|
-
},
|
|
23345
|
+
}, N.current = null, R(!0), V();
|
|
23346
|
+
}, U = (e) => {
|
|
23329
23347
|
if (!P.current) return;
|
|
23330
23348
|
let t = .34 / M.current, n = e.clientX - P.current.x, r = e.clientY - P.current.y;
|
|
23331
23349
|
P.current = {
|
|
@@ -23335,11 +23353,11 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23335
23353
|
lng: n * t,
|
|
23336
23354
|
lat: r * t
|
|
23337
23355
|
};
|
|
23338
|
-
},
|
|
23356
|
+
}, W = (e) => {
|
|
23339
23357
|
var t, n;
|
|
23340
|
-
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null,
|
|
23358
|
+
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, R(!1), V());
|
|
23341
23359
|
}, G = (D / 2 - 6) * M.current, K = D / 2, q = D / 2, ae = (e) => {
|
|
23342
|
-
let t =
|
|
23360
|
+
let t = Hc(e, A.current.lng, A.current.lat);
|
|
23343
23361
|
return {
|
|
23344
23362
|
x: K + G * t[0],
|
|
23345
23363
|
y: q - G * t[1],
|
|
@@ -23349,25 +23367,25 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23349
23367
|
let e = [];
|
|
23350
23368
|
for (let t = -180; t < 180; t += 30) {
|
|
23351
23369
|
let n = [];
|
|
23352
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
23370
|
+
for (let e = 0; e <= 48; e++) n.push(Vc(-90 + 180 * e / 48, t));
|
|
23353
23371
|
e.push(n);
|
|
23354
23372
|
}
|
|
23355
23373
|
for (let t = -60; t <= 60; t += 30) {
|
|
23356
23374
|
let n = [];
|
|
23357
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
23375
|
+
for (let e = 0; e <= 48; e++) n.push(Vc(t, -180 + 360 * e / 48));
|
|
23358
23376
|
e.push(n);
|
|
23359
23377
|
}
|
|
23360
23378
|
return e;
|
|
23361
|
-
}, []), se = l(() =>
|
|
23379
|
+
}, []), se = l(() => zc.map((e) => {
|
|
23362
23380
|
let t = [];
|
|
23363
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
23381
|
+
for (let n = 0; n < e.length; n += 2) t.push(Vc(e[n + 1], e[n]));
|
|
23364
23382
|
return t;
|
|
23365
23383
|
}), []), J = (e) => ({
|
|
23366
23384
|
x: K + G * e[0],
|
|
23367
23385
|
y: q - G * e[1]
|
|
23368
23386
|
}), ce = "", le = "";
|
|
23369
23387
|
if (g) for (let e of se) {
|
|
23370
|
-
let t = e.map((e) =>
|
|
23388
|
+
let t = e.map((e) => Hc(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
23371
23389
|
for (let e of t) if (e[2] > 0) {
|
|
23372
23390
|
let t = J(e);
|
|
23373
23391
|
le += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -23415,7 +23433,7 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23415
23433
|
}
|
|
23416
23434
|
return t;
|
|
23417
23435
|
}, de = Math.max(1, ...e.map((e) => e.value ?? 0)), fe = e.map((e, t) => {
|
|
23418
|
-
let n = ae(
|
|
23436
|
+
let n = ae(Vc(e.lat, e.lng));
|
|
23419
23437
|
return {
|
|
23420
23438
|
...e,
|
|
23421
23439
|
i: t,
|
|
@@ -23424,21 +23442,21 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23424
23442
|
r: 3 + Math.max(0, e.value ?? 0) / de * 6,
|
|
23425
23443
|
col: e.color ?? c
|
|
23426
23444
|
};
|
|
23427
|
-
}), pe =
|
|
23428
|
-
let n =
|
|
23445
|
+
}), pe = z == null ? null : e[z], me = t.map((e, t) => {
|
|
23446
|
+
let n = Vc(e.from.lat, e.from.lng), r = Vc(e.to.lat, e.to.lng), i = "", a = !1;
|
|
23429
23447
|
for (let e = 0; e <= 40; e++) {
|
|
23430
|
-
let t = e / 40, o =
|
|
23448
|
+
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
23449
|
o[0] * s,
|
|
23432
23450
|
o[1] * s,
|
|
23433
23451
|
o[2] * s
|
|
23434
23452
|
]);
|
|
23435
23453
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
23436
23454
|
}
|
|
23437
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
23455
|
+
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
23456
|
s[0] * l,
|
|
23439
23457
|
s[1] * l,
|
|
23440
23458
|
s[2] * l
|
|
23441
|
-
]), f = pe != null && (
|
|
23459
|
+
]), f = pe != null && (Wc(e.from, pe) || Wc(e.to, pe));
|
|
23442
23460
|
return {
|
|
23443
23461
|
d: i,
|
|
23444
23462
|
col: e.color ?? c,
|
|
@@ -23456,7 +23474,7 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23456
23474
|
className: `select-globe${y ? " " + y : ""}`,
|
|
23457
23475
|
children: [/* @__PURE__ */ h("div", {
|
|
23458
23476
|
ref: E,
|
|
23459
|
-
className: `select-globe__stage${
|
|
23477
|
+
className: `select-globe__stage${ne ? " is-grabbing" : ""}`,
|
|
23460
23478
|
style: {
|
|
23461
23479
|
width: _ ? "100%" : `${n / 16}rem`,
|
|
23462
23480
|
aspectRatio: "1"
|
|
@@ -23465,11 +23483,11 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23465
23483
|
F.current = !0;
|
|
23466
23484
|
},
|
|
23467
23485
|
onPointerLeave: (e) => {
|
|
23468
|
-
F.current = !1,
|
|
23486
|
+
F.current = !1, W(e), B(null), T.hide(), V();
|
|
23469
23487
|
},
|
|
23470
|
-
onPointerDown:
|
|
23471
|
-
onPointerMove:
|
|
23472
|
-
onPointerUp:
|
|
23488
|
+
onPointerDown: ie,
|
|
23489
|
+
onPointerMove: U,
|
|
23490
|
+
onPointerUp: W,
|
|
23473
23491
|
children: [/* @__PURE__ */ h("svg", {
|
|
23474
23492
|
width: D,
|
|
23475
23493
|
height: D,
|
|
@@ -23634,7 +23652,7 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23634
23652
|
]
|
|
23635
23653
|
}),
|
|
23636
23654
|
fe.filter((e) => e.vis).map((e) => {
|
|
23637
|
-
let t =
|
|
23655
|
+
let t = z === e.i;
|
|
23638
23656
|
return /* @__PURE__ */ h("g", {
|
|
23639
23657
|
style: { opacity: he && !t ? .45 : 1 },
|
|
23640
23658
|
children: [
|
|
@@ -23661,7 +23679,7 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23661
23679
|
fill: e.col,
|
|
23662
23680
|
className: "select-globe__point",
|
|
23663
23681
|
onPointerEnter: () => {
|
|
23664
|
-
|
|
23682
|
+
B(e.i), T.show({
|
|
23665
23683
|
x: e.p.x,
|
|
23666
23684
|
y: e.p.y - e.r - 4,
|
|
23667
23685
|
place: e.p.y < q ? "bottom" : "top",
|
|
@@ -23674,13 +23692,13 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23674
23692
|
});
|
|
23675
23693
|
},
|
|
23676
23694
|
onPointerLeave: () => {
|
|
23677
|
-
|
|
23695
|
+
B(null), T.hide();
|
|
23678
23696
|
},
|
|
23679
23697
|
onClick: () => {
|
|
23680
23698
|
N.current = {
|
|
23681
23699
|
lng: -e.lng,
|
|
23682
23700
|
lat: r
|
|
23683
|
-
},
|
|
23701
|
+
}, V();
|
|
23684
23702
|
}
|
|
23685
23703
|
})
|
|
23686
23704
|
]
|
|
@@ -23712,7 +23730,7 @@ var Uc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23712
23730
|
});
|
|
23713
23731
|
//#endregion
|
|
23714
23732
|
//#region src/SelectTicker.tsx
|
|
23715
|
-
function
|
|
23733
|
+
function Kc({ children: e, speed: t = 28, className: n, ...r }) {
|
|
23716
23734
|
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
23735
|
o(() => {
|
|
23718
23736
|
var e, n;
|
|
@@ -23774,7 +23792,7 @@ function Gc({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
23774
23792
|
}
|
|
23775
23793
|
//#endregion
|
|
23776
23794
|
//#region src/SelectPareto.tsx
|
|
23777
|
-
function
|
|
23795
|
+
function qc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
23778
23796
|
var a;
|
|
23779
23797
|
let { ref: o, width: c } = Y(t), l = Q(), u = s(), [f, p] = d(null), g = {
|
|
23780
23798
|
...Ps,
|
|
@@ -23900,7 +23918,7 @@ function Kc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
23900
23918
|
}
|
|
23901
23919
|
//#endregion
|
|
23902
23920
|
//#region src/SelectWaffle.tsx
|
|
23903
|
-
var
|
|
23921
|
+
var Jc = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
23904
23922
|
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
23923
|
i: t,
|
|
23906
23924
|
frac: e - u[t]
|
|
@@ -23949,7 +23967,7 @@ var qc = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
23949
23967
|
});
|
|
23950
23968
|
//#endregion
|
|
23951
23969
|
//#region src/SelectPyramid.tsx
|
|
23952
|
-
function
|
|
23970
|
+
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
23971
|
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
23972
|
return /* @__PURE__ */ h("div", {
|
|
23955
23973
|
...l,
|
|
@@ -24057,7 +24075,7 @@ function Jc({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
24057
24075
|
}
|
|
24058
24076
|
//#endregion
|
|
24059
24077
|
//#region src/SelectBump.tsx
|
|
24060
|
-
function
|
|
24078
|
+
function Xc({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
24061
24079
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
24062
24080
|
top: 16,
|
|
24063
24081
|
right: 78,
|
|
@@ -24142,7 +24160,7 @@ function Yc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
24142
24160
|
}
|
|
24143
24161
|
//#endregion
|
|
24144
24162
|
//#region src/SelectParallel.tsx
|
|
24145
|
-
function
|
|
24163
|
+
function Zc({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
24146
24164
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
24147
24165
|
top: 30,
|
|
24148
24166
|
right: 28,
|
|
@@ -24234,25 +24252,25 @@ function Xc({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
24234
24252
|
}
|
|
24235
24253
|
//#endregion
|
|
24236
24254
|
//#region src/SelectIcicle.tsx
|
|
24237
|
-
function
|
|
24238
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
24255
|
+
function Qc(e) {
|
|
24256
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + Qc(t), 0) : e.value ?? 0;
|
|
24239
24257
|
}
|
|
24240
|
-
function
|
|
24241
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
24258
|
+
function $c(e, t = 0) {
|
|
24259
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => $c(e, t + 1)));
|
|
24242
24260
|
}
|
|
24243
|
-
function
|
|
24244
|
-
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u =
|
|
24261
|
+
function el({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
24262
|
+
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
24263
|
if (p.push({
|
|
24246
24264
|
node: e,
|
|
24247
24265
|
x0: t,
|
|
24248
24266
|
x1: n,
|
|
24249
24267
|
depth: r,
|
|
24250
24268
|
color: e.color ?? X(i),
|
|
24251
|
-
value:
|
|
24269
|
+
value: Qc(e)
|
|
24252
24270
|
}), e.children && e.children.length) {
|
|
24253
|
-
let a = e.children.reduce((e, t) => e +
|
|
24271
|
+
let a = e.children.reduce((e, t) => e + Qc(t), 0) || 1, o = t;
|
|
24254
24272
|
e.children.forEach((e, s) => {
|
|
24255
|
-
let c = (n - t) *
|
|
24273
|
+
let c = (n - t) * Qc(e) / a;
|
|
24256
24274
|
g(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
24257
24275
|
});
|
|
24258
24276
|
}
|
|
@@ -24313,7 +24331,7 @@ function $c({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
24313
24331
|
}
|
|
24314
24332
|
//#endregion
|
|
24315
24333
|
//#region src/SelectTree.tsx
|
|
24316
|
-
function
|
|
24334
|
+
function tl({ data: e, height: t = 260, className: n, ...r }) {
|
|
24317
24335
|
let { ref: i, width: a } = Y(t), o = Q(), [s, c] = d(null), l = {
|
|
24318
24336
|
top: 14,
|
|
24319
24337
|
right: 96,
|
|
@@ -24391,7 +24409,7 @@ function el({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
24391
24409
|
}
|
|
24392
24410
|
//#endregion
|
|
24393
24411
|
//#region src/SelectVenn.tsx
|
|
24394
|
-
var
|
|
24412
|
+
var nl = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
24395
24413
|
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
24414
|
[o, s - l * .5],
|
|
24397
24415
|
[o - l * .5, s + l * .36],
|
|
@@ -24456,7 +24474,7 @@ var tl = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
24456
24474
|
}, t))
|
|
24457
24475
|
})]
|
|
24458
24476
|
});
|
|
24459
|
-
}),
|
|
24477
|
+
}), rl = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
24460
24478
|
let o = Q(), [s, c] = d(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
24461
24479
|
d: e,
|
|
24462
24480
|
i: t,
|
|
@@ -24559,7 +24577,7 @@ var tl = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
24559
24577
|
});
|
|
24560
24578
|
//#endregion
|
|
24561
24579
|
//#region src/SelectNetwork.tsx
|
|
24562
|
-
function
|
|
24580
|
+
function il({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
24563
24581
|
let { ref: o, width: s } = Y(n), c = Q(), [u, f] = d(null), p = l(() => {
|
|
24564
24582
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
24565
24583
|
if (!a) return o;
|
|
@@ -24673,7 +24691,7 @@ function rl({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
24673
24691
|
}
|
|
24674
24692
|
//#endregion
|
|
24675
24693
|
//#region src/SelectSearchMenu.tsx
|
|
24676
|
-
function
|
|
24694
|
+
function al({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", children: o }) {
|
|
24677
24695
|
return /* @__PURE__ */ h("div", {
|
|
24678
24696
|
className: "select-combobox__panel select-searchmenu",
|
|
24679
24697
|
style: { width: a },
|
|
@@ -24690,7 +24708,7 @@ function il({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
24690
24708
|
className: "select-combobox__empty",
|
|
24691
24709
|
role: "status",
|
|
24692
24710
|
children: r
|
|
24693
|
-
}) : /* @__PURE__ */ m(
|
|
24711
|
+
}) : /* @__PURE__ */ m(ol, { children: o }),
|
|
24694
24712
|
i != null && i !== !1 ? /* @__PURE__ */ m("div", {
|
|
24695
24713
|
className: "select-searchmenu__footer",
|
|
24696
24714
|
children: i
|
|
@@ -24698,7 +24716,7 @@ function il({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
24698
24716
|
]
|
|
24699
24717
|
});
|
|
24700
24718
|
}
|
|
24701
|
-
function
|
|
24719
|
+
function ol({ children: e }) {
|
|
24702
24720
|
let t = Dn({
|
|
24703
24721
|
selector: ".select-combobox__option",
|
|
24704
24722
|
y: 6,
|
|
@@ -24712,7 +24730,7 @@ function al({ children: e }) {
|
|
|
24712
24730
|
children: e
|
|
24713
24731
|
});
|
|
24714
24732
|
}
|
|
24715
|
-
function
|
|
24733
|
+
function sl({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSelect: i }) {
|
|
24716
24734
|
return /* @__PURE__ */ h("button", {
|
|
24717
24735
|
type: "button",
|
|
24718
24736
|
role: "option",
|
|
@@ -24738,7 +24756,7 @@ function ol({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSele
|
|
|
24738
24756
|
}
|
|
24739
24757
|
//#endregion
|
|
24740
24758
|
//#region src/SelectThemeSwitcher.tsx
|
|
24741
|
-
var
|
|
24759
|
+
var cl = [
|
|
24742
24760
|
{
|
|
24743
24761
|
value: "light",
|
|
24744
24762
|
label: "Claro",
|
|
@@ -24755,15 +24773,15 @@ var sl = [
|
|
|
24755
24773
|
icon: /* @__PURE__ */ m(Oe, {})
|
|
24756
24774
|
}
|
|
24757
24775
|
];
|
|
24758
|
-
function
|
|
24776
|
+
function ll(e) {
|
|
24759
24777
|
if (e === "system") {
|
|
24760
24778
|
var t, n;
|
|
24761
24779
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
24762
24780
|
}
|
|
24763
24781
|
return e;
|
|
24764
24782
|
}
|
|
24765
|
-
function
|
|
24766
|
-
let [i, a] = d(!1), s = u(null), c =
|
|
24783
|
+
function ul({ value: e, onChange: t, className: n, ...r }) {
|
|
24784
|
+
let [i, a] = d(!1), s = u(null), c = cl.find((t) => t.value === e) ?? cl[2];
|
|
24767
24785
|
return o(() => {
|
|
24768
24786
|
if (!i) return;
|
|
24769
24787
|
let e = (e) => {
|
|
@@ -24783,7 +24801,7 @@ function ll({ value: e, onChange: t, className: n, ...r }) {
|
|
|
24783
24801
|
})
|
|
24784
24802
|
}), i && /* @__PURE__ */ m("div", {
|
|
24785
24803
|
className: "select-themeswitcher__popover",
|
|
24786
|
-
children: /* @__PURE__ */ m(xa, { children:
|
|
24804
|
+
children: /* @__PURE__ */ m(xa, { children: cl.map((n) => /* @__PURE__ */ m(Ca, {
|
|
24787
24805
|
icon: n.icon,
|
|
24788
24806
|
active: n.value === e,
|
|
24789
24807
|
trailing: n.value === e ? /* @__PURE__ */ m(Be, {}) : null,
|
|
@@ -24797,8 +24815,8 @@ function ll({ value: e, onChange: t, className: n, ...r }) {
|
|
|
24797
24815
|
}
|
|
24798
24816
|
//#endregion
|
|
24799
24817
|
//#region src/SelectDetail.tsx
|
|
24800
|
-
var
|
|
24801
|
-
function
|
|
24818
|
+
var dl = n(!1);
|
|
24819
|
+
function fl({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
24802
24820
|
let r = Dn({
|
|
24803
24821
|
selector: ".select-detail",
|
|
24804
24822
|
y: 8,
|
|
@@ -24806,7 +24824,7 @@ function dl({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
24806
24824
|
stagger: .05,
|
|
24807
24825
|
scroll: !0
|
|
24808
24826
|
});
|
|
24809
|
-
return /* @__PURE__ */ m(
|
|
24827
|
+
return /* @__PURE__ */ m(dl.Provider, {
|
|
24810
24828
|
value: n,
|
|
24811
24829
|
children: /* @__PURE__ */ m("div", {
|
|
24812
24830
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}`,
|
|
@@ -24815,8 +24833,8 @@ function dl({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
24815
24833
|
})
|
|
24816
24834
|
});
|
|
24817
24835
|
}
|
|
24818
|
-
var
|
|
24819
|
-
let l = a(
|
|
24836
|
+
var pl = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
24837
|
+
let l = a(dl), u = i ?? l;
|
|
24820
24838
|
return /* @__PURE__ */ h("div", {
|
|
24821
24839
|
ref: c,
|
|
24822
24840
|
...s,
|
|
@@ -24836,7 +24854,7 @@ var fl = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
24836
24854
|
})
|
|
24837
24855
|
]
|
|
24838
24856
|
});
|
|
24839
|
-
}),
|
|
24857
|
+
}), ml = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
|
|
24840
24858
|
let s = r === "vertical";
|
|
24841
24859
|
return /* @__PURE__ */ m("ol", {
|
|
24842
24860
|
ref: o,
|
|
@@ -24875,7 +24893,7 @@ var fl = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
24875
24893
|
});
|
|
24876
24894
|
//#endregion
|
|
24877
24895
|
//#region src/SelectSetupGuide.tsx
|
|
24878
|
-
function
|
|
24896
|
+
function hl({ status: e }) {
|
|
24879
24897
|
return /* @__PURE__ */ m("span", {
|
|
24880
24898
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
24881
24899
|
"aria-hidden": "true",
|
|
@@ -24894,13 +24912,13 @@ function ml({ status: e }) {
|
|
|
24894
24912
|
})
|
|
24895
24913
|
});
|
|
24896
24914
|
}
|
|
24897
|
-
var
|
|
24915
|
+
var gl = {
|
|
24898
24916
|
done: "feito",
|
|
24899
24917
|
todo: "a fazer",
|
|
24900
24918
|
next: "próximo passo",
|
|
24901
24919
|
skipped: "pulado",
|
|
24902
24920
|
waiting: "aguardando"
|
|
24903
|
-
},
|
|
24921
|
+
}, _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
24922
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0;
|
|
24905
24923
|
return /* @__PURE__ */ h("section", {
|
|
24906
24924
|
ref: u,
|
|
@@ -24963,14 +24981,14 @@ var hl = {
|
|
|
24963
24981
|
children: e.steps.map((e) => /* @__PURE__ */ h("li", {
|
|
24964
24982
|
className: `select-setupguide__step is-${e.status}`,
|
|
24965
24983
|
children: [
|
|
24966
|
-
/* @__PURE__ */ m(
|
|
24984
|
+
/* @__PURE__ */ m(hl, { status: e.status }),
|
|
24967
24985
|
/* @__PURE__ */ h("span", {
|
|
24968
24986
|
className: "select-setupguide__text",
|
|
24969
24987
|
children: [/* @__PURE__ */ h("span", {
|
|
24970
24988
|
className: "select-setupguide__steptitle",
|
|
24971
24989
|
children: [e.title, /* @__PURE__ */ h("span", {
|
|
24972
24990
|
className: "select-setupguide__sr",
|
|
24973
|
-
children: [" — ",
|
|
24991
|
+
children: [" — ", gl[e.status]]
|
|
24974
24992
|
})]
|
|
24975
24993
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
24976
24994
|
className: "select-setupguide__stepdesc",
|
|
@@ -24989,7 +25007,7 @@ var hl = {
|
|
|
24989
25007
|
})]
|
|
24990
25008
|
});
|
|
24991
25009
|
});
|
|
24992
|
-
function
|
|
25010
|
+
function vl({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
24993
25011
|
return /* @__PURE__ */ h("div", {
|
|
24994
25012
|
className: "select-setupnext",
|
|
24995
25013
|
children: [
|
|
@@ -25014,37 +25032,37 @@ function _l({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
25014
25032
|
}
|
|
25015
25033
|
//#endregion
|
|
25016
25034
|
//#region src/SelectTour.tsx
|
|
25017
|
-
var
|
|
25018
|
-
function
|
|
25035
|
+
var yl = 6, bl = 12;
|
|
25036
|
+
function xl(e) {
|
|
25019
25037
|
let t = document.querySelector(e);
|
|
25020
25038
|
if (!t) return null;
|
|
25021
25039
|
let n = t.getBoundingClientRect();
|
|
25022
25040
|
return n.width === 0 && n.height === 0 ? null : {
|
|
25023
|
-
top: n.top -
|
|
25024
|
-
left: n.left -
|
|
25041
|
+
top: n.top - yl,
|
|
25042
|
+
left: n.left - yl,
|
|
25025
25043
|
width: n.width + 12,
|
|
25026
25044
|
height: n.height + 12
|
|
25027
25045
|
};
|
|
25028
25046
|
}
|
|
25029
|
-
function
|
|
25047
|
+
function Sl(e) {
|
|
25030
25048
|
let t = document.querySelector(e);
|
|
25031
25049
|
if (!t) return !1;
|
|
25032
25050
|
let n = t.getBoundingClientRect();
|
|
25033
25051
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
25034
25052
|
}
|
|
25035
|
-
function
|
|
25036
|
-
let s = l(() => e ? t.filter((e) =>
|
|
25053
|
+
function Cl({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
25054
|
+
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
25055
|
o(() => {
|
|
25038
25056
|
e && p(0);
|
|
25039
25057
|
}, [e]);
|
|
25040
25058
|
let C = s[f], w = f === s.length - 1, T = i(() => {
|
|
25041
25059
|
if (!C) return;
|
|
25042
|
-
let e =
|
|
25060
|
+
let e = xl(C.target);
|
|
25043
25061
|
v(e);
|
|
25044
25062
|
let t = x.current;
|
|
25045
25063
|
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 +
|
|
25064
|
+
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + bl, s = e.top;
|
|
25065
|
+
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
25066
|
top: s,
|
|
25049
25067
|
left: o
|
|
25050
25068
|
});
|
|
@@ -25124,13 +25142,13 @@ function Sl({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
25124
25142
|
children: r.skip ?? "Pular tour"
|
|
25125
25143
|
}), /* @__PURE__ */ h("span", {
|
|
25126
25144
|
className: "select-tour__nav",
|
|
25127
|
-
children: [f > 0 && /* @__PURE__ */ m(
|
|
25145
|
+
children: [f > 0 && /* @__PURE__ */ m(H, {
|
|
25128
25146
|
variant: "secondary",
|
|
25129
25147
|
size: "sm",
|
|
25130
25148
|
inline: !0,
|
|
25131
25149
|
onClick: () => p((e) => e - 1),
|
|
25132
25150
|
children: r.prev ?? "Anterior"
|
|
25133
|
-
}), /* @__PURE__ */ m(
|
|
25151
|
+
}), /* @__PURE__ */ m(H, {
|
|
25134
25152
|
ref: S,
|
|
25135
25153
|
size: "sm",
|
|
25136
25154
|
inline: !0,
|
|
@@ -25146,7 +25164,7 @@ function Sl({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
25146
25164
|
}
|
|
25147
25165
|
//#endregion
|
|
25148
25166
|
//#region src/SelectPlanCard.tsx
|
|
25149
|
-
var
|
|
25167
|
+
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
25168
|
return /* @__PURE__ */ h("div", {
|
|
25151
25169
|
ref: d,
|
|
25152
25170
|
...u,
|
|
@@ -25201,7 +25219,7 @@ var Cl = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25201
25219
|
})]
|
|
25202
25220
|
})]
|
|
25203
25221
|
});
|
|
25204
|
-
}),
|
|
25222
|
+
}), Tl = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, className: a, ...o }, s) {
|
|
25205
25223
|
return /* @__PURE__ */ h("div", {
|
|
25206
25224
|
ref: s,
|
|
25207
25225
|
...o,
|
|
@@ -25237,7 +25255,7 @@ var Cl = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25237
25255
|
]
|
|
25238
25256
|
});
|
|
25239
25257
|
});
|
|
25240
|
-
function
|
|
25258
|
+
function El({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, onClick: o }) {
|
|
25241
25259
|
let s = /* @__PURE__ */ h(p, { children: [
|
|
25242
25260
|
e && /* @__PURE__ */ m("span", {
|
|
25243
25261
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
@@ -25269,7 +25287,7 @@ function Tl({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
25269
25287
|
children: s
|
|
25270
25288
|
});
|
|
25271
25289
|
}
|
|
25272
|
-
function
|
|
25290
|
+
function Dl({ children: e }) {
|
|
25273
25291
|
return /* @__PURE__ */ m("div", {
|
|
25274
25292
|
className: "select-listlabel",
|
|
25275
25293
|
children: e
|
|
@@ -25277,7 +25295,7 @@ function El({ children: e }) {
|
|
|
25277
25295
|
}
|
|
25278
25296
|
//#endregion
|
|
25279
25297
|
//#region src/SelectThumbnail.tsx
|
|
25280
|
-
var
|
|
25298
|
+
var Ol = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, s) {
|
|
25281
25299
|
let [c, l] = d(!1);
|
|
25282
25300
|
o(() => l(!1), [e]);
|
|
25283
25301
|
let u = /* @__PURE__ */ m("span", {
|
|
@@ -25311,7 +25329,7 @@ var Dl = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
|
|
|
25311
25329
|
});
|
|
25312
25330
|
//#endregion
|
|
25313
25331
|
//#region src/SelectImageZoomModal.tsx
|
|
25314
|
-
function
|
|
25332
|
+
function kl({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
25315
25333
|
return /* @__PURE__ */ m(La, {
|
|
25316
25334
|
open: e,
|
|
25317
25335
|
onClose: t,
|
|
@@ -25330,7 +25348,7 @@ function Ol({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
25330
25348
|
}
|
|
25331
25349
|
//#endregion
|
|
25332
25350
|
//#region src/SelectZoomThumbnail.tsx
|
|
25333
|
-
function
|
|
25351
|
+
function Al({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
25334
25352
|
let [a, o] = d(!1);
|
|
25335
25353
|
return e ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
25336
25354
|
type: "button",
|
|
@@ -25343,19 +25361,19 @@ function kl({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
25343
25361
|
cursor: "zoom-in",
|
|
25344
25362
|
display: "inline-flex"
|
|
25345
25363
|
},
|
|
25346
|
-
children: /* @__PURE__ */ m(
|
|
25364
|
+
children: /* @__PURE__ */ m(Ol, {
|
|
25347
25365
|
src: e,
|
|
25348
25366
|
size: n,
|
|
25349
25367
|
alt: t,
|
|
25350
25368
|
count: i
|
|
25351
25369
|
})
|
|
25352
|
-
}), a && /* @__PURE__ */ m(
|
|
25370
|
+
}), a && /* @__PURE__ */ m(kl, {
|
|
25353
25371
|
open: !0,
|
|
25354
25372
|
onClose: () => o(!1),
|
|
25355
25373
|
src: e,
|
|
25356
25374
|
alt: t,
|
|
25357
25375
|
title: r ?? t
|
|
25358
|
-
})] }) : /* @__PURE__ */ m(
|
|
25376
|
+
})] }) : /* @__PURE__ */ m(Ol, {
|
|
25359
25377
|
size: n,
|
|
25360
25378
|
alt: t,
|
|
25361
25379
|
count: i
|
|
@@ -25363,7 +25381,7 @@ function kl({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
25363
25381
|
}
|
|
25364
25382
|
//#endregion
|
|
25365
25383
|
//#region src/SelectMediaCell.tsx
|
|
25366
|
-
var
|
|
25384
|
+
var jl = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
25367
25385
|
return /* @__PURE__ */ h("span", {
|
|
25368
25386
|
ref: a,
|
|
25369
25387
|
...i,
|
|
@@ -25385,7 +25403,7 @@ var Al = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
25385
25403
|
});
|
|
25386
25404
|
//#endregion
|
|
25387
25405
|
//#region src/SelectOfflineModal.tsx
|
|
25388
|
-
function
|
|
25406
|
+
function Ml() {
|
|
25389
25407
|
let [e, t] = d(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
25390
25408
|
return o(() => {
|
|
25391
25409
|
let e = () => t(!1), n = () => t(!0);
|
|
@@ -25408,7 +25426,7 @@ function jl() {
|
|
|
25408
25426
|
}
|
|
25409
25427
|
//#endregion
|
|
25410
25428
|
//#region src/SelectKeyValueEditor.tsx
|
|
25411
|
-
function
|
|
25429
|
+
function Nl(e) {
|
|
25412
25430
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
25413
25431
|
name: String(e.name ?? e.key ?? ""),
|
|
25414
25432
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -25417,8 +25435,8 @@ function Ml(e) {
|
|
|
25417
25435
|
value: t == null ? "" : String(t)
|
|
25418
25436
|
})) : [];
|
|
25419
25437
|
}
|
|
25420
|
-
var
|
|
25421
|
-
let d =
|
|
25438
|
+
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) {
|
|
25439
|
+
let d = Nl(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
25422
25440
|
...t,
|
|
25423
25441
|
...n
|
|
25424
25442
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), g = () => t([...d, {
|
|
@@ -25482,7 +25500,7 @@ var Nl = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25482
25500
|
})
|
|
25483
25501
|
]
|
|
25484
25502
|
});
|
|
25485
|
-
}),
|
|
25503
|
+
}), Fl = (e) => String(e).padStart(2, "0"), Il = {
|
|
25486
25504
|
"en-US": {
|
|
25487
25505
|
weekdays: [
|
|
25488
25506
|
"Su",
|
|
@@ -25541,34 +25559,34 @@ var Nl = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25541
25559
|
to: "Até",
|
|
25542
25560
|
cancel: "Cancelar",
|
|
25543
25561
|
apply: "Aplicar",
|
|
25544
|
-
formatDate: (e) => `${
|
|
25562
|
+
formatDate: (e) => `${Fl(e.getDate())} / ${Fl(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
25545
25563
|
}
|
|
25546
|
-
},
|
|
25564
|
+
}, 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
25565
|
let t = /* @__PURE__ */ new Date();
|
|
25548
25566
|
return {
|
|
25549
25567
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
25550
25568
|
to: t
|
|
25551
25569
|
};
|
|
25552
|
-
},
|
|
25570
|
+
}, Ul = [
|
|
25553
25571
|
{
|
|
25554
25572
|
id: "15m",
|
|
25555
25573
|
label: "Last 15 minutes",
|
|
25556
|
-
range: () =>
|
|
25574
|
+
range: () => Hl(15)
|
|
25557
25575
|
},
|
|
25558
25576
|
{
|
|
25559
25577
|
id: "1h",
|
|
25560
25578
|
label: "Last 1 hour",
|
|
25561
|
-
range: () =>
|
|
25579
|
+
range: () => Hl(60)
|
|
25562
25580
|
},
|
|
25563
25581
|
{
|
|
25564
25582
|
id: "3h",
|
|
25565
25583
|
label: "Last 3 hours",
|
|
25566
|
-
range: () =>
|
|
25584
|
+
range: () => Hl(180)
|
|
25567
25585
|
},
|
|
25568
25586
|
{
|
|
25569
25587
|
id: "24h",
|
|
25570
25588
|
label: "Last 24 hours",
|
|
25571
|
-
range: () =>
|
|
25589
|
+
range: () => Hl(1440)
|
|
25572
25590
|
},
|
|
25573
25591
|
{
|
|
25574
25592
|
id: "3d",
|
|
@@ -25584,78 +25602,78 @@ var Nl = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25584
25602
|
id: "all",
|
|
25585
25603
|
label: "All",
|
|
25586
25604
|
range: () => ({
|
|
25587
|
-
from:
|
|
25588
|
-
to:
|
|
25605
|
+
from: Ll(/* @__PURE__ */ new Date()),
|
|
25606
|
+
to: Ll(/* @__PURE__ */ new Date())
|
|
25589
25607
|
})
|
|
25590
25608
|
}
|
|
25591
|
-
],
|
|
25592
|
-
let t =
|
|
25609
|
+
], Wl = (e) => {
|
|
25610
|
+
let t = Ll(/* @__PURE__ */ new Date());
|
|
25593
25611
|
return {
|
|
25594
|
-
from:
|
|
25612
|
+
from: zl(t, -e),
|
|
25595
25613
|
to: t
|
|
25596
25614
|
};
|
|
25597
|
-
},
|
|
25598
|
-
let t =
|
|
25615
|
+
}, Gl = (e) => {
|
|
25616
|
+
let t = zl(Ll(/* @__PURE__ */ new Date()), -e);
|
|
25599
25617
|
return {
|
|
25600
25618
|
from: t,
|
|
25601
25619
|
to: t
|
|
25602
25620
|
};
|
|
25603
|
-
},
|
|
25621
|
+
}, Kl = [
|
|
25604
25622
|
{
|
|
25605
25623
|
id: "today",
|
|
25606
25624
|
label: "Hoje",
|
|
25607
|
-
range: () =>
|
|
25625
|
+
range: () => Wl(0)
|
|
25608
25626
|
},
|
|
25609
25627
|
{
|
|
25610
25628
|
id: "yesterday",
|
|
25611
25629
|
label: "Ontem",
|
|
25612
|
-
range: () =>
|
|
25630
|
+
range: () => Gl(1)
|
|
25613
25631
|
},
|
|
25614
25632
|
{
|
|
25615
25633
|
id: "7d",
|
|
25616
25634
|
label: "Últimos 7 dias",
|
|
25617
|
-
range: () =>
|
|
25635
|
+
range: () => Wl(6)
|
|
25618
25636
|
},
|
|
25619
25637
|
{
|
|
25620
25638
|
id: "10d",
|
|
25621
25639
|
label: "Últimos 10 dias",
|
|
25622
|
-
range: () =>
|
|
25640
|
+
range: () => Wl(9)
|
|
25623
25641
|
},
|
|
25624
25642
|
{
|
|
25625
25643
|
id: "15d",
|
|
25626
25644
|
label: "Últimos 15 dias",
|
|
25627
|
-
range: () =>
|
|
25645
|
+
range: () => Wl(14)
|
|
25628
25646
|
},
|
|
25629
25647
|
{
|
|
25630
25648
|
id: "20d",
|
|
25631
25649
|
label: "Últimos 20 dias",
|
|
25632
|
-
range: () =>
|
|
25650
|
+
range: () => Wl(19)
|
|
25633
25651
|
},
|
|
25634
25652
|
{
|
|
25635
25653
|
id: "30d",
|
|
25636
25654
|
label: "Últimos 30 dias",
|
|
25637
|
-
range: () =>
|
|
25655
|
+
range: () => Wl(29)
|
|
25638
25656
|
},
|
|
25639
25657
|
{
|
|
25640
25658
|
id: "90d",
|
|
25641
25659
|
label: "Últimos 90 dias",
|
|
25642
|
-
range: () =>
|
|
25660
|
+
range: () => Wl(89)
|
|
25643
25661
|
}
|
|
25644
25662
|
];
|
|
25645
|
-
function
|
|
25663
|
+
function ql(e) {
|
|
25646
25664
|
if (!e) return "—";
|
|
25647
25665
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
25648
25666
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
25649
25667
|
}
|
|
25650
|
-
var
|
|
25651
|
-
let p =
|
|
25668
|
+
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) {
|
|
25669
|
+
let p = Il[a], g = Ll(/* @__PURE__ */ new Date()), _ = s ? Ll(s) : null, [v, y] = d(e ?? {
|
|
25652
25670
|
from: g,
|
|
25653
25671
|
to: g
|
|
25654
|
-
}), [b, x] = d(
|
|
25672
|
+
}), [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
25673
|
className: "select-datepicker__placeholder",
|
|
25656
25674
|
children: "— / — / ——"
|
|
25657
25675
|
}), O = (e) => {
|
|
25658
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
25676
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < Ll(t.from) ? {
|
|
25659
25677
|
from: e,
|
|
25660
25678
|
to: null
|
|
25661
25679
|
} : {
|
|
@@ -25665,7 +25683,7 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25665
25683
|
}, k = (e) => {
|
|
25666
25684
|
if (e.disabled || !e.range) return;
|
|
25667
25685
|
let t = e.range();
|
|
25668
|
-
y(t), C(e.id), t.from && x(
|
|
25686
|
+
y(t), C(e.id), t.from && x(Rl(t.from));
|
|
25669
25687
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
25670
25688
|
return /* @__PURE__ */ m("div", {
|
|
25671
25689
|
ref: f,
|
|
@@ -25711,7 +25729,7 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25711
25729
|
}),
|
|
25712
25730
|
o && /* @__PURE__ */ m("span", {
|
|
25713
25731
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
25714
|
-
children:
|
|
25732
|
+
children: ql(v[e])
|
|
25715
25733
|
})
|
|
25716
25734
|
]
|
|
25717
25735
|
}, e))
|
|
@@ -25723,8 +25741,8 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25723
25741
|
type: "button",
|
|
25724
25742
|
className: "select-datepicker__nav",
|
|
25725
25743
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
25726
|
-
onClick: () => x((e) =>
|
|
25727
|
-
children: /* @__PURE__ */ m(
|
|
25744
|
+
onClick: () => x((e) => Bl(e, -1)),
|
|
25745
|
+
children: /* @__PURE__ */ m(W, {})
|
|
25728
25746
|
}),
|
|
25729
25747
|
/* @__PURE__ */ h("span", {
|
|
25730
25748
|
className: "select-datepicker__monthlabel",
|
|
@@ -25738,8 +25756,8 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25738
25756
|
type: "button",
|
|
25739
25757
|
className: "select-datepicker__nav",
|
|
25740
25758
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
25741
|
-
onClick: () => x((e) =>
|
|
25742
|
-
children: /* @__PURE__ */ m(
|
|
25759
|
+
onClick: () => x((e) => Bl(e, 1)),
|
|
25760
|
+
children: /* @__PURE__ */ m(U, {})
|
|
25743
25761
|
})
|
|
25744
25762
|
]
|
|
25745
25763
|
}),
|
|
@@ -25750,7 +25768,7 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25750
25768
|
className: "select-datepicker__weekday",
|
|
25751
25769
|
children: e
|
|
25752
25770
|
}, t)), T.map((e) => {
|
|
25753
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
25771
|
+
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
25772
|
return /* @__PURE__ */ m("div", {
|
|
25755
25773
|
className: s,
|
|
25756
25774
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -25765,12 +25783,12 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25765
25783
|
}),
|
|
25766
25784
|
/* @__PURE__ */ h("div", {
|
|
25767
25785
|
className: "select-datepicker__footer",
|
|
25768
|
-
children: [/* @__PURE__ */ m(
|
|
25786
|
+
children: [/* @__PURE__ */ m(H, {
|
|
25769
25787
|
variant: "secondary",
|
|
25770
25788
|
inline: !0,
|
|
25771
25789
|
onClick: r,
|
|
25772
25790
|
children: p.cancel
|
|
25773
|
-
}), /* @__PURE__ */ m(
|
|
25791
|
+
}), /* @__PURE__ */ m(H, {
|
|
25774
25792
|
variant: "primary",
|
|
25775
25793
|
inline: !0,
|
|
25776
25794
|
onClick: () => n == null ? void 0 : n(v),
|
|
@@ -25781,23 +25799,23 @@ var ql = r(function({ value: e, presets: t = Hl, onApply: n, onCancel: r, accent
|
|
|
25781
25799
|
})]
|
|
25782
25800
|
})
|
|
25783
25801
|
});
|
|
25784
|
-
}),
|
|
25785
|
-
function
|
|
25802
|
+
}), 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()}`;
|
|
25803
|
+
function Ql(e, t) {
|
|
25786
25804
|
for (let r of t) {
|
|
25787
25805
|
var n;
|
|
25788
25806
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
25789
|
-
if (t != null && t.from && t != null && t.to &&
|
|
25807
|
+
if (t != null && t.from && t != null && t.to && Xl(t.from, e.start) && Xl(t.to, e.end)) return r.label;
|
|
25790
25808
|
}
|
|
25791
|
-
return
|
|
25809
|
+
return Xl(e.start, e.end) ? Zl(e.start) : `${Zl(e.start)} – ${Zl(e.end)}`;
|
|
25792
25810
|
}
|
|
25793
|
-
function
|
|
25794
|
-
let [c, l] = d(!1), u = r === null ? null : r ??
|
|
25811
|
+
function $l({ value: e, onChange: t, presets: n = Kl, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
25812
|
+
let [c, l] = d(!1), u = r === null ? null : r ?? Yl(/* @__PURE__ */ new Date());
|
|
25795
25813
|
return /* @__PURE__ */ m(Pn, {
|
|
25796
25814
|
active: c,
|
|
25797
25815
|
onClose: () => l(!1),
|
|
25798
25816
|
placement: i,
|
|
25799
25817
|
role: "dialog",
|
|
25800
|
-
activator: /* @__PURE__ */ m(
|
|
25818
|
+
activator: /* @__PURE__ */ m(H, {
|
|
25801
25819
|
variant: "secondary",
|
|
25802
25820
|
size: a,
|
|
25803
25821
|
inline: !s,
|
|
@@ -25805,9 +25823,9 @@ function Ql({ value: e, onChange: t, presets: n = Gl, maxDate: r, placement: i =
|
|
|
25805
25823
|
icon: /* @__PURE__ */ m(nt, {}),
|
|
25806
25824
|
trailingIcon: /* @__PURE__ */ m(G, {}),
|
|
25807
25825
|
onClick: () => l((e) => !e),
|
|
25808
|
-
children:
|
|
25826
|
+
children: Ql(e, n)
|
|
25809
25827
|
}),
|
|
25810
|
-
children: /* @__PURE__ */ m(
|
|
25828
|
+
children: /* @__PURE__ */ m(Jl, {
|
|
25811
25829
|
embedded: !0,
|
|
25812
25830
|
locale: "pt-BR",
|
|
25813
25831
|
showTime: !1,
|
|
@@ -25820,8 +25838,8 @@ function Ql({ value: e, onChange: t, presets: n = Gl, maxDate: r, placement: i =
|
|
|
25820
25838
|
onCancel: () => l(!1),
|
|
25821
25839
|
onApply: (e) => {
|
|
25822
25840
|
e.from && t({
|
|
25823
|
-
start:
|
|
25824
|
-
end:
|
|
25841
|
+
start: Yl(e.from),
|
|
25842
|
+
end: Yl(e.to ?? e.from)
|
|
25825
25843
|
}), l(!1);
|
|
25826
25844
|
}
|
|
25827
25845
|
})
|
|
@@ -25829,7 +25847,7 @@ function Ql({ value: e, onChange: t, presets: n = Gl, maxDate: r, placement: i =
|
|
|
25829
25847
|
}
|
|
25830
25848
|
//#endregion
|
|
25831
25849
|
//#region src/SelectNumberField.tsx
|
|
25832
|
-
var
|
|
25850
|
+
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
25851
|
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
25852
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
25835
25853
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -25903,7 +25921,7 @@ var $l = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
25903
25921
|
});
|
|
25904
25922
|
//#endregion
|
|
25905
25923
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
25906
|
-
function
|
|
25924
|
+
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
25925
|
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
25926
|
let i = n + r;
|
|
25909
25927
|
if (i < 0 || i >= e.length) return;
|
|
@@ -25978,7 +25996,7 @@ function eu({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
25978
25996
|
align: "space-between",
|
|
25979
25997
|
blockAlign: "center",
|
|
25980
25998
|
gap: "200",
|
|
25981
|
-
children: [/* @__PURE__ */ m(
|
|
25999
|
+
children: [/* @__PURE__ */ m(H, {
|
|
25982
26000
|
variant: "secondary",
|
|
25983
26001
|
size: "sm",
|
|
25984
26002
|
inline: !0,
|
|
@@ -25998,7 +26016,7 @@ function eu({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
25998
26016
|
}
|
|
25999
26017
|
//#endregion
|
|
26000
26018
|
//#region src/SelectBuilderLayout.tsx
|
|
26001
|
-
function
|
|
26019
|
+
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
26020
|
let d = v();
|
|
26003
26021
|
return /* @__PURE__ */ m(Ni, {
|
|
26004
26022
|
title: e,
|
|
@@ -26038,7 +26056,7 @@ function tu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26038
26056
|
}
|
|
26039
26057
|
//#endregion
|
|
26040
26058
|
//#region src/SelectBuilderWorkspace.tsx
|
|
26041
|
-
function
|
|
26059
|
+
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
26060
|
var w;
|
|
26043
26061
|
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
26062
|
f === void 0 && D(e), g == null || g(e);
|
|
@@ -26088,7 +26106,7 @@ function nu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26088
26106
|
role: "status",
|
|
26089
26107
|
children: C
|
|
26090
26108
|
}),
|
|
26091
|
-
s && /* @__PURE__ */ m(
|
|
26109
|
+
s && /* @__PURE__ */ m(H, {
|
|
26092
26110
|
inline: !0,
|
|
26093
26111
|
size: "sm",
|
|
26094
26112
|
variant: "secondary",
|
|
@@ -26096,7 +26114,7 @@ function nu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26096
26114
|
disabled: i,
|
|
26097
26115
|
children: "Cancelar"
|
|
26098
26116
|
}),
|
|
26099
|
-
/* @__PURE__ */ m(
|
|
26117
|
+
/* @__PURE__ */ m(H, {
|
|
26100
26118
|
inline: !0,
|
|
26101
26119
|
size: "sm",
|
|
26102
26120
|
onClick: r,
|
|
@@ -26198,10 +26216,10 @@ function nu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26198
26216
|
}
|
|
26199
26217
|
//#endregion
|
|
26200
26218
|
//#region src/SelectFlowCanvas.tsx
|
|
26201
|
-
var
|
|
26202
|
-
function
|
|
26219
|
+
var iu = (e) => Math.round(e * 100) / 100;
|
|
26220
|
+
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
26221
|
let _ = s().replace(/:/g, ""), [v, y] = d(c), b = o ?? v, x = (e) => {
|
|
26204
|
-
let t =
|
|
26222
|
+
let t = iu(Math.min(f, Math.max(u, e)));
|
|
26205
26223
|
o === void 0 && y(t), l == null || l(t);
|
|
26206
26224
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
26207
26225
|
return /* @__PURE__ */ h("div", {
|
|
@@ -26317,7 +26335,7 @@ function iu({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
26317
26335
|
})]
|
|
26318
26336
|
});
|
|
26319
26337
|
}
|
|
26320
|
-
function
|
|
26338
|
+
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
26339
|
let x = `${p ? " is-selected" : v ? " is-invalid" : g ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
26322
26340
|
left: e,
|
|
26323
26341
|
top: t,
|
|
@@ -26393,7 +26411,7 @@ function au({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
26393
26411
|
})]
|
|
26394
26412
|
});
|
|
26395
26413
|
}
|
|
26396
|
-
function
|
|
26414
|
+
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
26415
|
return /* @__PURE__ */ h("div", {
|
|
26398
26416
|
className: "select-flowpage",
|
|
26399
26417
|
children: [
|
|
@@ -26455,7 +26473,7 @@ function ou({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
26455
26473
|
}
|
|
26456
26474
|
//#endregion
|
|
26457
26475
|
//#region src/SelectSwitchField.tsx
|
|
26458
|
-
var
|
|
26476
|
+
var cu = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
26459
26477
|
return /* @__PURE__ */ h("div", {
|
|
26460
26478
|
ref: c,
|
|
26461
26479
|
...s,
|
|
@@ -26483,7 +26501,7 @@ var su = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
26483
26501
|
children: i
|
|
26484
26502
|
})]
|
|
26485
26503
|
});
|
|
26486
|
-
}),
|
|
26504
|
+
}), lu = [
|
|
26487
26505
|
"#212529",
|
|
26488
26506
|
"#495057",
|
|
26489
26507
|
"#868E96",
|
|
@@ -26500,13 +26518,13 @@ var su = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
26500
26518
|
"#DB2777",
|
|
26501
26519
|
"#9333EA",
|
|
26502
26520
|
"#6D28D9"
|
|
26503
|
-
],
|
|
26504
|
-
function
|
|
26505
|
-
let t =
|
|
26521
|
+
], uu = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
26522
|
+
function du(e) {
|
|
26523
|
+
let t = uu.exec((e ?? "").trim());
|
|
26506
26524
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
26507
26525
|
}
|
|
26508
|
-
function
|
|
26509
|
-
let t =
|
|
26526
|
+
function fu(e) {
|
|
26527
|
+
let t = du(e);
|
|
26510
26528
|
if (!t) return 0;
|
|
26511
26529
|
let [n, r, i] = [
|
|
26512
26530
|
1,
|
|
@@ -26515,13 +26533,13 @@ function du(e) {
|
|
|
26515
26533
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
26516
26534
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
26517
26535
|
}
|
|
26518
|
-
function
|
|
26519
|
-
let [n, r] = [
|
|
26536
|
+
function pu(e, t) {
|
|
26537
|
+
let [n, r] = [fu(e), fu(t)].sort((e, t) => t - e);
|
|
26520
26538
|
return (n + .05) / (r + .05);
|
|
26521
26539
|
}
|
|
26522
|
-
var
|
|
26523
|
-
function
|
|
26524
|
-
let t =
|
|
26540
|
+
var mu = (e) => Math.min(1, Math.max(0, e));
|
|
26541
|
+
function hu(e) {
|
|
26542
|
+
let t = du(e) ?? "#000000", [n, r, i] = [
|
|
26525
26543
|
1,
|
|
26526
26544
|
3,
|
|
26527
26545
|
5
|
|
@@ -26532,7 +26550,7 @@ function mu(e) {
|
|
|
26532
26550
|
v: a
|
|
26533
26551
|
};
|
|
26534
26552
|
}
|
|
26535
|
-
function
|
|
26553
|
+
function gu({ h: e, s: t, v: n }) {
|
|
26536
26554
|
let r = (r) => {
|
|
26537
26555
|
let i = (r + e / 60) % 6;
|
|
26538
26556
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -26543,26 +26561,26 @@ function hu({ h: e, s: t, v: n }) {
|
|
|
26543
26561
|
r(1)
|
|
26544
26562
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
26545
26563
|
}
|
|
26546
|
-
function
|
|
26547
|
-
let [n, r] = d(() =>
|
|
26564
|
+
function _u({ hex: e, onPick: t }) {
|
|
26565
|
+
let [n, r] = d(() => hu(e ?? "#1D4ED8")), i = u(n), a = (e) => {
|
|
26548
26566
|
i.current = e, r(e);
|
|
26549
26567
|
};
|
|
26550
26568
|
o(() => {
|
|
26551
|
-
if (!e ||
|
|
26552
|
-
let t =
|
|
26569
|
+
if (!e || gu(i.current) === e) return;
|
|
26570
|
+
let t = hu(e);
|
|
26553
26571
|
a(t.s === 0 || t.v === 0 ? {
|
|
26554
26572
|
...t,
|
|
26555
26573
|
h: i.current.h
|
|
26556
26574
|
} : t);
|
|
26557
26575
|
}, [e]);
|
|
26558
26576
|
let s = (e) => {
|
|
26559
|
-
a(e), t(
|
|
26577
|
+
a(e), t(gu(e));
|
|
26560
26578
|
}, c = (e, t, n) => {
|
|
26561
26579
|
var r;
|
|
26562
26580
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
26563
26581
|
let i = (t) => {
|
|
26564
26582
|
let r = e.getBoundingClientRect();
|
|
26565
|
-
n(
|
|
26583
|
+
n(mu((t.clientX - r.left) / (r.width || 1)), mu((t.clientY - r.top) / (r.height || 1)));
|
|
26566
26584
|
};
|
|
26567
26585
|
i(t);
|
|
26568
26586
|
let a = (e) => i(e), o = () => {
|
|
@@ -26572,20 +26590,20 @@ function gu({ hex: e, onPick: t }) {
|
|
|
26572
26590
|
}, l = (e) => {
|
|
26573
26591
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, o = e.key === "ArrowLeft" ? {
|
|
26574
26592
|
h: n,
|
|
26575
|
-
s:
|
|
26593
|
+
s: mu(r - t),
|
|
26576
26594
|
v: a
|
|
26577
26595
|
} : e.key === "ArrowRight" ? {
|
|
26578
26596
|
h: n,
|
|
26579
|
-
s:
|
|
26597
|
+
s: mu(r + t),
|
|
26580
26598
|
v: a
|
|
26581
26599
|
} : e.key === "ArrowUp" ? {
|
|
26582
26600
|
h: n,
|
|
26583
26601
|
s: r,
|
|
26584
|
-
v:
|
|
26602
|
+
v: mu(a + t)
|
|
26585
26603
|
} : e.key === "ArrowDown" ? {
|
|
26586
26604
|
h: n,
|
|
26587
26605
|
s: r,
|
|
26588
|
-
v:
|
|
26606
|
+
v: mu(a - t)
|
|
26589
26607
|
} : null;
|
|
26590
26608
|
o && (e.preventDefault(), s(o));
|
|
26591
26609
|
}, f = (e) => {
|
|
@@ -26595,11 +26613,11 @@ function gu({ hex: e, onPick: t }) {
|
|
|
26595
26613
|
s: r,
|
|
26596
26614
|
v: a
|
|
26597
26615
|
}));
|
|
26598
|
-
}, g =
|
|
26616
|
+
}, g = gu({
|
|
26599
26617
|
h: n.h,
|
|
26600
26618
|
s: 1,
|
|
26601
26619
|
v: 1
|
|
26602
|
-
}), _ =
|
|
26620
|
+
}), _ = gu(n);
|
|
26603
26621
|
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
|
|
26604
26622
|
className: "select-colorfield__sv",
|
|
26605
26623
|
style: { backgroundColor: g },
|
|
@@ -26643,24 +26661,24 @@ function gu({ hex: e, onPick: t }) {
|
|
|
26643
26661
|
})
|
|
26644
26662
|
})] });
|
|
26645
26663
|
}
|
|
26646
|
-
var
|
|
26647
|
-
function
|
|
26664
|
+
var vu = (e) => e.toFixed(1).replace(".", ",");
|
|
26665
|
+
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
26666
|
let v = s(), y = _ ?? `color-${v}`, [b, x] = d(!1), [S, C] = d(i ?? ""), [w, T] = d(null);
|
|
26649
26667
|
o(() => {
|
|
26650
26668
|
C(i ?? ""), T(null);
|
|
26651
26669
|
}, [i]);
|
|
26652
|
-
let E =
|
|
26670
|
+
let E = du(i ?? ""), D = (e) => {
|
|
26653
26671
|
if (!e.trim()) {
|
|
26654
26672
|
u ? (T(null), a("")) : C(i ?? "");
|
|
26655
26673
|
return;
|
|
26656
26674
|
}
|
|
26657
|
-
let t =
|
|
26675
|
+
let t = du(e);
|
|
26658
26676
|
if (!t) {
|
|
26659
26677
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
26660
26678
|
return;
|
|
26661
26679
|
}
|
|
26662
26680
|
T(null), C(t), t !== E && a(t);
|
|
26663
|
-
}, O = f ?
|
|
26681
|
+
}, 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
26682
|
return /* @__PURE__ */ h("div", {
|
|
26665
26683
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
26666
26684
|
children: [
|
|
@@ -26688,7 +26706,7 @@ function vu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26688
26706
|
children: /* @__PURE__ */ h("div", {
|
|
26689
26707
|
className: "select-colorfield__panel",
|
|
26690
26708
|
children: [
|
|
26691
|
-
/* @__PURE__ */ m(
|
|
26709
|
+
/* @__PURE__ */ m(_u, {
|
|
26692
26710
|
hex: E,
|
|
26693
26711
|
onPick: D
|
|
26694
26712
|
}),
|
|
@@ -26697,7 +26715,7 @@ function vu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26697
26715
|
role: "group",
|
|
26698
26716
|
"aria-label": "Cores prontas",
|
|
26699
26717
|
children: c.map((e) => {
|
|
26700
|
-
let t =
|
|
26718
|
+
let t = du(e) ?? e, n = t === E;
|
|
26701
26719
|
return /* @__PURE__ */ m("button", {
|
|
26702
26720
|
type: "button",
|
|
26703
26721
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -26728,7 +26746,7 @@ function vu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26728
26746
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
26729
26747
|
value: S,
|
|
26730
26748
|
onChange: (e) => {
|
|
26731
|
-
C(e.target.value), e.target.value.replace("#", "").length === 6 &&
|
|
26749
|
+
C(e.target.value), e.target.value.replace("#", "").length === 6 && du(e.target.value) && D(e.target.value);
|
|
26732
26750
|
},
|
|
26733
26751
|
onBlur: () => D(S),
|
|
26734
26752
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -26751,14 +26769,14 @@ function vu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26751
26769
|
}) : null : /* @__PURE__ */ h("p", {
|
|
26752
26770
|
id: `${y}-hint`,
|
|
26753
26771
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
26754
|
-
children: [k >= 4.5 ? `Contraste com ${g}: ${
|
|
26772
|
+
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
26773
|
})
|
|
26756
26774
|
]
|
|
26757
26775
|
});
|
|
26758
26776
|
}
|
|
26759
26777
|
//#endregion
|
|
26760
26778
|
//#region src/SelectProgressBar.tsx
|
|
26761
|
-
var
|
|
26779
|
+
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
26780
|
if (l) return /* @__PURE__ */ h("div", {
|
|
26763
26781
|
ref: f,
|
|
26764
26782
|
...d,
|
|
@@ -26803,7 +26821,7 @@ var yu = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
26803
26821
|
})
|
|
26804
26822
|
]
|
|
26805
26823
|
});
|
|
26806
|
-
}),
|
|
26824
|
+
}), 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
26825
|
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
26826
|
/* @__PURE__ */ h("span", {
|
|
26809
26827
|
className: "select-choicecard__top",
|
|
@@ -26864,7 +26882,7 @@ var yu = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
26864
26882
|
children: b
|
|
26865
26883
|
});
|
|
26866
26884
|
});
|
|
26867
|
-
function
|
|
26885
|
+
function Su({ badge: e = !0 }) {
|
|
26868
26886
|
return /* @__PURE__ */ h("div", {
|
|
26869
26887
|
className: "select-choicecard select-choicecard--skeleton",
|
|
26870
26888
|
"aria-hidden": "true",
|
|
@@ -26885,7 +26903,7 @@ function xu({ badge: e = !0 }) {
|
|
|
26885
26903
|
]
|
|
26886
26904
|
});
|
|
26887
26905
|
}
|
|
26888
|
-
var
|
|
26906
|
+
var Cu = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, className: i, style: a, ...o }, s) {
|
|
26889
26907
|
return /* @__PURE__ */ m("div", {
|
|
26890
26908
|
ref: s,
|
|
26891
26909
|
...o,
|
|
@@ -26895,16 +26913,16 @@ var Su = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
26895
26913
|
"--select-choice-min": t,
|
|
26896
26914
|
...a
|
|
26897
26915
|
},
|
|
26898
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(
|
|
26916
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(Su, {}, t)) : e
|
|
26899
26917
|
});
|
|
26900
|
-
}),
|
|
26918
|
+
}), 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
26919
|
let v = u(null), [y, b] = d(.5);
|
|
26902
26920
|
o(() => {
|
|
26903
26921
|
let e = v.current;
|
|
26904
26922
|
if (!e) return;
|
|
26905
26923
|
let t = () => {
|
|
26906
26924
|
let t = e.clientWidth;
|
|
26907
|
-
t > 0 && b(Math.min(1, t /
|
|
26925
|
+
t > 0 && b(Math.min(1, t / wu));
|
|
26908
26926
|
};
|
|
26909
26927
|
if (t(), typeof ResizeObserver > "u") return;
|
|
26910
26928
|
let n = new ResizeObserver(t);
|
|
@@ -26912,7 +26930,7 @@ var Su = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
26912
26930
|
}, []);
|
|
26913
26931
|
let x = e === "front", S = {
|
|
26914
26932
|
"--select-cert-accent": t || void 0,
|
|
26915
|
-
height:
|
|
26933
|
+
height: Tu * y + 2
|
|
26916
26934
|
};
|
|
26917
26935
|
return /* @__PURE__ */ m("div", {
|
|
26918
26936
|
ref: (e) => {
|
|
@@ -26925,8 +26943,8 @@ var Su = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
26925
26943
|
children: /* @__PURE__ */ m("div", {
|
|
26926
26944
|
className: "select-certpreview__sheet",
|
|
26927
26945
|
style: {
|
|
26928
|
-
width:
|
|
26929
|
-
height:
|
|
26946
|
+
width: wu,
|
|
26947
|
+
height: Tu,
|
|
26930
26948
|
transform: `scale(${y})`
|
|
26931
26949
|
},
|
|
26932
26950
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -26999,13 +27017,13 @@ var Su = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
26999
27017
|
});
|
|
27000
27018
|
//#endregion
|
|
27001
27019
|
//#region src/SelectImageField.tsx
|
|
27002
|
-
function
|
|
27020
|
+
function Du(e) {
|
|
27003
27021
|
return new Promise((t, n) => {
|
|
27004
27022
|
let r = new FileReader();
|
|
27005
27023
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
27006
27024
|
});
|
|
27007
27025
|
}
|
|
27008
|
-
var
|
|
27026
|
+
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
27027
|
let [f, p] = d([]), [g, _] = d(null), v = t ? [t] : [], y = async (e) => {
|
|
27010
27028
|
let t = e[0];
|
|
27011
27029
|
if (!t) {
|
|
@@ -27013,7 +27031,7 @@ var Du = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27013
27031
|
return;
|
|
27014
27032
|
}
|
|
27015
27033
|
if (_(null), !s) {
|
|
27016
|
-
n(await
|
|
27034
|
+
n(await Du(t)), p([]);
|
|
27017
27035
|
return;
|
|
27018
27036
|
}
|
|
27019
27037
|
p([t]);
|
|
@@ -27045,7 +27063,7 @@ var Du = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27045
27063
|
children: g
|
|
27046
27064
|
})]
|
|
27047
27065
|
});
|
|
27048
|
-
}),
|
|
27066
|
+
}), ku = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
27049
27067
|
let [o, s] = d(() => new Set(n)), c = (e) => s((n) => {
|
|
27050
27068
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
27051
27069
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -27091,6 +27109,6 @@ var Du = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27091
27109
|
});
|
|
27092
27110
|
});
|
|
27093
27111
|
//#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,
|
|
27112
|
+
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
27113
|
|
|
27096
27114
|
//# sourceMappingURL=index.js.map
|