@selectwin/kit 0.1.109 → 0.1.111
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/SelectDataTable.d.ts +16 -1
- package/dist/index.js +244 -222
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -506,17 +506,17 @@ var k = (e) => {
|
|
|
506
506
|
let t = Math.max(e.w(), 1), n = Math.max(e.h(), 1);
|
|
507
507
|
L = (t * Math.abs(m) + n * Math.abs(h)) / 2, B = (t * Math.abs(h) + n * Math.abs(m)) / 2, V = Math.min(1, Math.sqrt(42e4 / (4 * L * B))), M = Math.max(2, Math.round(2 * L * V)), N = Math.max(2, Math.round(2 * B * V)), ne = Math.min(2.6, Math.max(.7, .62 / V)), D || (D = document.createElement("canvas")), D.width = M, D.height = N, O = D.getContext("2d"), k = (O == null ? void 0 : O.createImageData(M, N)) ?? null, A = k ? new Uint32Array(k.data.buffer) : null, j = new Float32Array(M);
|
|
508
508
|
}
|
|
509
|
-
let
|
|
510
|
-
let o = e *
|
|
509
|
+
let U = 1, re = 0, ie = 0, ae = 0, W = 0, G = 1, K = 0, oe = 0, se = 0, ce = 0, q = F.TENSION, le = (e, t, r, i, a) => {
|
|
510
|
+
let o = e * U + t * re, s = -e * re + t * U - ie, c = r * U + i * re, l = -r * re + i * U;
|
|
511
511
|
l < 0 && (c = -c, l = -l);
|
|
512
512
|
let f = F.CAM - s;
|
|
513
513
|
if (f < n) {
|
|
514
|
-
E.x[
|
|
514
|
+
E.x[K] = NaN, E.z[K] = -1e9, E.a[K] = 0, E.lift[K] = 0, K++;
|
|
515
515
|
return;
|
|
516
516
|
}
|
|
517
517
|
let g = (f - n) * .5263157894736842;
|
|
518
518
|
g > 1 && (g = 1);
|
|
519
|
-
let y = g * g * (3 - 2 * g), b = o * F.FOCAL / f *
|
|
519
|
+
let y = g * g * (3 - 2 * g), b = o * F.FOCAL / f * ce + M * .5, x = -o, S = -ae, C = f, w = 1 / Math.sqrt(x * x + S * S + C * C);
|
|
520
520
|
x *= w, S *= w, C *= w;
|
|
521
521
|
let T = c * x + l * C;
|
|
522
522
|
T < 0 && (T = 0);
|
|
@@ -528,30 +528,30 @@ var k = (e) => {
|
|
|
528
528
|
A = v[0] + x, j = v[1] + S, N = v[2] + C, P = 1 / Math.sqrt(A * A + j * j + N * N), I = (c * A + l * N) * P, I < 0 && (I = 0);
|
|
529
529
|
let te = I * I, z = te * te, B = z * z, V = (-(-x + 2 * T * c) * h - S * m + .2) * .8333333333333334;
|
|
530
530
|
V < 0 ? V = 0 : V > 1 && (V = 1);
|
|
531
|
-
let ne = V * V * (3 - 2 * V), H = R * .9 + B * .45,
|
|
532
|
-
|
|
531
|
+
let ne = V * V * (3 - 2 * V), H = R * .9 + B * .45, W = k * .55 + H;
|
|
532
|
+
W > 1 && (W = 1), E.lift[K] = W, E.a[K] = (u + d * k + p * H + ne * .06) * a * G * y, E.x[K] = b, E.z[K] = s, b < oe && (oe = b), b > se && (se = b), K++;
|
|
533
533
|
}, ue = (e, t) => {
|
|
534
|
-
let n = e *
|
|
534
|
+
let n = e * W, r = Math.cos(n), i = -Math.sin(n) * q, a = 1 / Math.sqrt(q * q * r * r + 1), o = q * r * a, s = a;
|
|
535
535
|
for (let r = 0; r < 14; r++) {
|
|
536
536
|
let a = t ? 13 - r : r, c = y[a], l = b[a], u = o * c + e * s * l, d = -e * o * l + s * c;
|
|
537
|
-
|
|
537
|
+
le(n + F.ROUND * (u - o), i + F.ROUND * (d - s), u, d, x[a]);
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
function de(t, n, r) {
|
|
541
541
|
let i = Math.max(e.h(), 1), a = r * F.TWIST_SPEED * .15, o = r * F.TWIST_SPEED * .2, s = -((t + .5) / N * 2 * B - B) / (i * F.ZOOM);
|
|
542
|
-
|
|
543
|
-
for (let e = 0; e < 2; e++)
|
|
544
|
-
|
|
545
|
-
let c =
|
|
546
|
-
|
|
547
|
-
let d = 2 *
|
|
542
|
+
ae = s * F.CAM / F.FOCAL;
|
|
543
|
+
for (let e = 0; e < 2; e++) ae = s * (F.CAM + Math.sin(ae * 1.2 + a) * F.BILLOW) / F.FOCAL;
|
|
544
|
+
ie = Math.sin(ae * 1.2 + a) * F.BILLOW;
|
|
545
|
+
let c = ae < 0 ? -ae : ae, l = P(7, 1, c), u = ae * S.twist * P(8, 0, c) - o;
|
|
546
|
+
U = Math.cos(u), re = Math.sin(u), W = F.WIDTH * l, G = P(.06, .46, U < 0 ? -U : U) * P(0, .06, l), E = n, K = 0, oe = 1e9, se = -1e9, ue(-1, !0);
|
|
547
|
+
let d = 2 * W / 107, f = Math.cos(d), p = Math.sin(d), m = Math.cos(-W), h = Math.sin(-W);
|
|
548
548
|
for (let e = 0; e < 108; e++) {
|
|
549
|
-
let t = 1 / Math.sqrt(
|
|
550
|
-
|
|
549
|
+
let t = 1 / Math.sqrt(q * q * m * m + 1);
|
|
550
|
+
le(-W + e * d, -h * q, q * m * t, t, 1);
|
|
551
551
|
let n = m * f - h * p;
|
|
552
552
|
h = h * f + m * p, m = n;
|
|
553
553
|
}
|
|
554
|
-
ue(1, !1), n.minx =
|
|
554
|
+
ue(1, !1), n.minx = oe, n.maxx = se;
|
|
555
555
|
}
|
|
556
556
|
function fe(e, n, r, u, d, f) {
|
|
557
557
|
let p = A, m = n.minx < r.minx ? n.minx : r.minx, h = u.minx < d.minx ? u.minx : d.minx;
|
|
@@ -561,52 +561,52 @@ var k = (e) => {
|
|
|
561
561
|
let v = Math.floor(m), y = Math.ceil(g);
|
|
562
562
|
if (y < 0 || v > M - 1) return;
|
|
563
563
|
v < 0 && (v = 0), y > M - 1 && (y = M - 1), j.fill(-1e9, v, y + 1);
|
|
564
|
-
let b = e * M, x = f * f, S = x * f, C = -.5 * S + x - .5 * f, w = 1.5 * S - 2.5 * x + 1, T = -1.5 * S + 2 * x + .5 * f, E = .5 * S - .5 * x, D = n.x, O = r.x, k = u.x, N = d.x, P = n.z, F = r.z, L = u.z, B = d.z, V = n.lift, ne = r.lift, H = u.lift,
|
|
564
|
+
let b = e * M, x = f * f, S = x * f, C = -.5 * S + x - .5 * f, w = 1.5 * S - 2.5 * x + 1, T = -1.5 * S + 2 * x + .5 * f, E = .5 * S - .5 * x, D = n.x, O = r.x, k = u.x, N = d.x, P = n.z, F = r.z, L = u.z, B = d.z, V = n.lift, ne = r.lift, H = u.lift, U = d.lift, re = n.a, ie = r.a, ae = u.a, W = d.a, G = C * D[0] + w * O[0] + T * k[0] + E * N[0], K = C * P[0] + w * F[0] + T * L[0] + E * B[0], oe = C * V[0] + w * ne[0] + T * H[0] + E * U[0], se = C * re[0] + w * ie[0] + T * ae[0] + E * W[0];
|
|
565
565
|
for (let e = 1; e < 136; e++) {
|
|
566
|
-
let t = C * D[e] + w * O[e] + T * k[e] + E * N[e], n = C * P[e] + w * F[e] + T * L[e] + E * B[e], r = C * V[e] + w * ne[e] + T * H[e] + E *
|
|
567
|
-
if (!Number.isNaN(
|
|
568
|
-
let e = Math.max(v, Math.ceil((
|
|
566
|
+
let t = C * D[e] + w * O[e] + T * k[e] + E * N[e], n = C * P[e] + w * F[e] + T * L[e] + E * B[e], r = C * V[e] + w * ne[e] + T * H[e] + E * U[e], u = C * re[e] + w * ie[e] + T * ae[e] + E * W[e];
|
|
567
|
+
if (!Number.isNaN(G) && !Number.isNaN(t)) {
|
|
568
|
+
let e = Math.max(v, Math.ceil((G < t ? G : t) - .5)), d = Math.min(y, Math.floor((G > t ? G : t) - .5));
|
|
569
569
|
if (d < e) {
|
|
570
|
-
let n = Math.floor((
|
|
570
|
+
let n = Math.floor((G + t) * .5);
|
|
571
571
|
n >= v && n <= y && (e = n, d = n);
|
|
572
572
|
}
|
|
573
573
|
if (d >= e) {
|
|
574
|
-
let f = t -
|
|
574
|
+
let f = t - G, m = f === 0 ? 0 : 1 / f, h = n - K, g = r - oe, _ = u - se;
|
|
575
575
|
for (let t = e; t <= d; t++) {
|
|
576
|
-
let e = (t + .5 -
|
|
576
|
+
let e = (t + .5 - G) * m;
|
|
577
577
|
e < 0 ? e = 0 : e > 1 && (e = 1);
|
|
578
|
-
let n =
|
|
578
|
+
let n = K + h * e;
|
|
579
579
|
if (n <= j[t]) continue;
|
|
580
580
|
j[t] = n;
|
|
581
|
-
let r =
|
|
582
|
-
p[b + t] = I(i + s * r) << ee | I(a + c * r) << R | I(o + l * r) << te | I(
|
|
581
|
+
let r = oe + g * e;
|
|
582
|
+
p[b + t] = I(i + s * r) << ee | I(a + c * r) << R | I(o + l * r) << te | I(se + _ * e) << z;
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
|
|
586
|
+
G = t, K = n, oe = r, se = u;
|
|
587
587
|
}
|
|
588
|
-
let
|
|
588
|
+
let ce = -1, q = -1;
|
|
589
589
|
for (let e = v; e <= y; e++) if ((p[b + e] >>> z & 255) > 0) {
|
|
590
|
-
|
|
590
|
+
ce = e;
|
|
591
591
|
break;
|
|
592
592
|
}
|
|
593
|
-
if (
|
|
594
|
-
for (let e = y; e >=
|
|
595
|
-
|
|
593
|
+
if (ce < 0) return;
|
|
594
|
+
for (let e = y; e >= ce; e--) if ((p[b + e] >>> z & 255) > 0) {
|
|
595
|
+
q = e;
|
|
596
596
|
break;
|
|
597
597
|
}
|
|
598
|
-
if (
|
|
599
|
-
let
|
|
598
|
+
if (q - ce <= 2 * t.length) return;
|
|
599
|
+
let le = ~(255 << z);
|
|
600
600
|
for (let e = 0; e < t.length; e++) {
|
|
601
|
-
let n = t[e], r = b +
|
|
602
|
-
p[r] = i &
|
|
603
|
-
let a = b +
|
|
604
|
-
p[a] = o &
|
|
601
|
+
let n = t[e], r = b + ce + e, i = p[r];
|
|
602
|
+
p[r] = i & le | ((i >>> z & 255) * n | 0) << z;
|
|
603
|
+
let a = b + q - e, o = p[a];
|
|
604
|
+
p[a] = o & le | ((o >>> z & 255) * n | 0) << z;
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
function pe(t) {
|
|
608
608
|
if (!k || !O || !A) return;
|
|
609
|
-
A.fill(0),
|
|
609
|
+
A.fill(0), q = S.tension, ce = F.ZOOM * Math.max(e.h(), 1) * V;
|
|
610
610
|
let n = Math.max(1, Math.ceil((N - 1) / 3)), r = (e) => Math.min(e * 3, N - 1), i = 0;
|
|
611
611
|
de(r(0), T[0], t);
|
|
612
612
|
let a = 0, o = r(0), s = r(1);
|
|
@@ -834,7 +834,7 @@ var ne = r(function({ title: e, subtitle: t, logo: n, mark: r, children: i, foot
|
|
|
834
834
|
});
|
|
835
835
|
//#endregion
|
|
836
836
|
//#region src/icons.tsx
|
|
837
|
-
function
|
|
837
|
+
function U() {
|
|
838
838
|
return /* @__PURE__ */ h("svg", {
|
|
839
839
|
viewBox: "0 0 24 24",
|
|
840
840
|
"aria-hidden": "true",
|
|
@@ -858,7 +858,7 @@ function re() {
|
|
|
858
858
|
]
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function re() {
|
|
862
862
|
return /* @__PURE__ */ m("svg", {
|
|
863
863
|
viewBox: "0 0 24 24",
|
|
864
864
|
"aria-hidden": "true",
|
|
@@ -868,7 +868,7 @@ function ie() {
|
|
|
868
868
|
})
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function ie() {
|
|
872
872
|
return /* @__PURE__ */ m("svg", {
|
|
873
873
|
viewBox: "0 0 24 24",
|
|
874
874
|
fill: "none",
|
|
@@ -880,7 +880,7 @@ function ae() {
|
|
|
880
880
|
children: /* @__PURE__ */ m("path", { d: "M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08" })
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function ae() {
|
|
884
884
|
return /* @__PURE__ */ m("svg", {
|
|
885
885
|
viewBox: "0 0 24 24",
|
|
886
886
|
fill: "none",
|
|
@@ -892,7 +892,7 @@ function oe() {
|
|
|
892
892
|
children: /* @__PURE__ */ m("path", { d: "M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08" })
|
|
893
893
|
});
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function W() {
|
|
896
896
|
return /* @__PURE__ */ m("svg", {
|
|
897
897
|
viewBox: "0 0 24 24",
|
|
898
898
|
fill: "none",
|
|
@@ -904,7 +904,7 @@ function U() {
|
|
|
904
904
|
children: /* @__PURE__ */ m("path", { d: "M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95" })
|
|
905
905
|
});
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function G() {
|
|
908
908
|
return /* @__PURE__ */ m("svg", {
|
|
909
909
|
viewBox: "0 0 24 24",
|
|
910
910
|
fill: "none",
|
|
@@ -916,7 +916,7 @@ function W() {
|
|
|
916
916
|
children: /* @__PURE__ */ m("path", { d: "M9.57 5.93L3.5 12l6.07 6.07M20.5 12H3.67" })
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function K() {
|
|
920
920
|
return /* @__PURE__ */ m("svg", {
|
|
921
921
|
viewBox: "0 0 24 24",
|
|
922
922
|
fill: "none",
|
|
@@ -928,7 +928,7 @@ function G() {
|
|
|
928
928
|
children: /* @__PURE__ */ m("path", { d: "M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10" })
|
|
929
929
|
});
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function oe() {
|
|
932
932
|
return /* @__PURE__ */ m("svg", {
|
|
933
933
|
viewBox: "0 0 24 24",
|
|
934
934
|
fill: "none",
|
|
@@ -940,7 +940,7 @@ function se() {
|
|
|
940
940
|
children: /* @__PURE__ */ m("path", { d: "M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2" })
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function se() {
|
|
944
944
|
return /* @__PURE__ */ h("svg", {
|
|
945
945
|
viewBox: "0 0 24 24",
|
|
946
946
|
fill: "none",
|
|
@@ -956,7 +956,7 @@ function ce() {
|
|
|
956
956
|
]
|
|
957
957
|
});
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function ce() {
|
|
960
960
|
return /* @__PURE__ */ h("svg", {
|
|
961
961
|
viewBox: "0 0 24 24",
|
|
962
962
|
fill: "none",
|
|
@@ -968,7 +968,7 @@ function le() {
|
|
|
968
968
|
children: [/* @__PURE__ */ m("path", { d: "M16 12.9v4.2c0 3.5-1.4 4.9-4.9 4.9H6.9C3.4 22 2 20.6 2 17.1v-4.2C2 9.4 3.4 8 6.9 8h4.2c3.5 0 4.9 1.4 4.9 4.9z" }), /* @__PURE__ */ m("path", { d: "M22 6.9v4.2c0 3.5-1.4 4.9-4.9 4.9H16v-3.1C16 9.4 14.6 8 11.1 8H8V6.9C8 3.4 9.4 2 12.9 2h4.2C20.6 2 22 3.4 22 6.9z" })]
|
|
969
969
|
});
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function q() {
|
|
972
972
|
return /* @__PURE__ */ m("svg", {
|
|
973
973
|
viewBox: "0 0 24 24",
|
|
974
974
|
fill: "none",
|
|
@@ -980,7 +980,7 @@ function K() {
|
|
|
980
980
|
children: /* @__PURE__ */ m("path", { d: "M13 11l8.2-8.2M22 6.8V2h-4.8M11 2H9C4 2 2 4 2 9v6c0 5 2 7 7 7h6c5 0 7-2 7-7v-2" })
|
|
981
981
|
});
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function le() {
|
|
984
984
|
return /* @__PURE__ */ m("svg", {
|
|
985
985
|
viewBox: "0 0 24 24",
|
|
986
986
|
fill: "none",
|
|
@@ -2172,10 +2172,10 @@ var kt = r(function({ content: e, title: t, label: n = "Mais informações", pla
|
|
|
2172
2172
|
}), i]
|
|
2173
2173
|
});
|
|
2174
2174
|
}), jt = r(function({ label: e, value: t, onChange: n, type: r = "text", labelAction: i, help: a, info: o, description: c, hint: l, error: u, prefix: f, suffix: p, trailingAction: g, mono: _, autoComplete: v, placeholder: y, required: b, disabled: x, readOnly: S, name: C, id: w, minLength: T, maxLength: E, min: D, max: O, step: k, inputMode: A, autoFocus: j, onBlur: M, onKeyDown: N, size: P = "md", className: F, ...I }, L) {
|
|
2175
|
-
let ee = s(), R = w ?? ee, [te, z] = d(!1), B = r === "password", V = B && te ? "text" : r, ne = u ? `${R}-err` : l ? `${R}-hint` : void 0, H = f != null || p != null,
|
|
2176
|
-
let t = Number(k ?? 1) || 1, r = (
|
|
2175
|
+
let ee = s(), R = w ?? ee, [te, z] = d(!1), B = r === "password", V = B && te ? "text" : r, ne = u ? `${R}-err` : l ? `${R}-hint` : void 0, H = f != null || p != null, U = r === "number" && !H && !S, re = t === "" ? null : Number(t), ie = (e) => {
|
|
2176
|
+
let t = Number(k ?? 1) || 1, r = (re != null && Number.isFinite(re) ? re : 0) + e * t;
|
|
2177
2177
|
D != null && (r = Math.max(Number(D), r)), O != null && (r = Math.min(Number(O), r)), n(String(r));
|
|
2178
|
-
},
|
|
2178
|
+
}, ae = D != null && re != null && re <= Number(D), G = O != null && re != null && re >= Number(O), K = /* @__PURE__ */ h("div", {
|
|
2179
2179
|
className: `select-input-wrap${H ? " select-input-wrap--affixed" : ""}${u ? " select-input-wrap--error" : ""}`,
|
|
2180
2180
|
children: [
|
|
2181
2181
|
f != null && /* @__PURE__ */ m("span", {
|
|
@@ -2184,7 +2184,7 @@ var kt = r(function({ content: e, title: t, label: n = "Mais informações", pla
|
|
|
2184
2184
|
}),
|
|
2185
2185
|
/* @__PURE__ */ m("input", {
|
|
2186
2186
|
id: R,
|
|
2187
|
-
className: `select-input${B ? " select-input--has-suffix" : ""}${
|
|
2187
|
+
className: `select-input${B ? " select-input--has-suffix" : ""}${U ? " select-input--has-stepper" : ""}${_ ? " select-input--mono" : ""}${u ? " select-input--error" : ""}`,
|
|
2188
2188
|
type: V,
|
|
2189
2189
|
value: t,
|
|
2190
2190
|
onChange: (e) => n(e.target.value),
|
|
@@ -2217,24 +2217,24 @@ var kt = r(function({ content: e, title: t, label: n = "Mais informações", pla
|
|
|
2217
2217
|
"aria-label": te ? "Ocultar senha" : "Mostrar senha",
|
|
2218
2218
|
children: m(te ? Ue : He, {})
|
|
2219
2219
|
}),
|
|
2220
|
-
|
|
2220
|
+
U && /* @__PURE__ */ h("span", {
|
|
2221
2221
|
className: "select-stepper",
|
|
2222
2222
|
children: [/* @__PURE__ */ m("button", {
|
|
2223
2223
|
type: "button",
|
|
2224
2224
|
tabIndex: -1,
|
|
2225
2225
|
className: "select-stepper__btn",
|
|
2226
2226
|
"aria-label": "Aumentar",
|
|
2227
|
-
disabled: x ||
|
|
2228
|
-
onClick: () =>
|
|
2227
|
+
disabled: x || G,
|
|
2228
|
+
onClick: () => ie(1),
|
|
2229
2229
|
children: /* @__PURE__ */ m(it, {})
|
|
2230
2230
|
}), /* @__PURE__ */ m("button", {
|
|
2231
2231
|
type: "button",
|
|
2232
2232
|
tabIndex: -1,
|
|
2233
2233
|
className: "select-stepper__btn",
|
|
2234
2234
|
"aria-label": "Diminuir",
|
|
2235
|
-
disabled: x ||
|
|
2236
|
-
onClick: () =>
|
|
2237
|
-
children: /* @__PURE__ */ m(
|
|
2235
|
+
disabled: x || ae,
|
|
2236
|
+
onClick: () => ie(-1),
|
|
2237
|
+
children: /* @__PURE__ */ m(W, {})
|
|
2238
2238
|
})]
|
|
2239
2239
|
})
|
|
2240
2240
|
]
|
|
@@ -2255,9 +2255,9 @@ var kt = r(function({ content: e, title: t, label: n = "Mais informações", pla
|
|
|
2255
2255
|
className: "select-field__desc",
|
|
2256
2256
|
children: c
|
|
2257
2257
|
}),
|
|
2258
|
-
g == null ?
|
|
2258
|
+
g == null ? K : /* @__PURE__ */ h("div", {
|
|
2259
2259
|
className: "select-field__control",
|
|
2260
|
-
children: [
|
|
2260
|
+
children: [K, /* @__PURE__ */ m("span", {
|
|
2261
2261
|
className: "select-field__trailing",
|
|
2262
2262
|
children: g
|
|
2263
2263
|
})]
|
|
@@ -2543,7 +2543,7 @@ var Ut = r(function({ children: e, tone: t = "critical", title: n, action: r, cl
|
|
|
2543
2543
|
className: "select-filetile__remove",
|
|
2544
2544
|
"aria-label": `Remover ${n}`,
|
|
2545
2545
|
onClick: a,
|
|
2546
|
-
children: /* @__PURE__ */ m(
|
|
2546
|
+
children: /* @__PURE__ */ m(le, {})
|
|
2547
2547
|
})
|
|
2548
2548
|
]
|
|
2549
2549
|
}),
|
|
@@ -2637,7 +2637,7 @@ var Zt = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2637
2637
|
className: `select-dropzone select-dropzone--tile${v ? " is-over" : ""}`,
|
|
2638
2638
|
onClick: E,
|
|
2639
2639
|
...T,
|
|
2640
|
-
children: [/* @__PURE__ */ m(
|
|
2640
|
+
children: [/* @__PURE__ */ m(se, {}), /* @__PURE__ */ m("span", { children: "Adicionar" })]
|
|
2641
2641
|
})]
|
|
2642
2642
|
}),
|
|
2643
2643
|
!A && k && /* @__PURE__ */ h("button", {
|
|
@@ -2645,7 +2645,7 @@ var Zt = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2645
2645
|
className: `select-dropzone${v ? " is-over" : ""}`,
|
|
2646
2646
|
onClick: E,
|
|
2647
2647
|
...T,
|
|
2648
|
-
children: [/* @__PURE__ */ m(
|
|
2648
|
+
children: [/* @__PURE__ */ m(se, {}), /* @__PURE__ */ m("span", { children: c ?? `Selecionar arquivo · até ${r} MB` })]
|
|
2649
2649
|
}),
|
|
2650
2650
|
/* @__PURE__ */ m("input", {
|
|
2651
2651
|
ref: _,
|
|
@@ -2768,10 +2768,10 @@ var Zt = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2768
2768
|
}
|
|
2769
2769
|
}, B = (e) => {
|
|
2770
2770
|
e.key === "Enter" && (e.preventDefault(), z());
|
|
2771
|
-
}, V = (e) => r(n.filter((t, n) => n !== e)), ne = (e) => a(i.filter((t, n) => n !== e)),
|
|
2771
|
+
}, V = (e) => r(n.filter((t, n) => n !== e)), ne = (e) => a(i.filter((t, n) => n !== e)), U = () => {
|
|
2772
2772
|
var e;
|
|
2773
2773
|
return (e = C.current) == null ? void 0 : e.click();
|
|
2774
|
-
},
|
|
2774
|
+
}, re = {
|
|
2775
2775
|
onDragOver: (e) => {
|
|
2776
2776
|
e.preventDefault(), T(!0);
|
|
2777
2777
|
},
|
|
@@ -2791,7 +2791,7 @@ var Zt = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2791
2791
|
}),
|
|
2792
2792
|
/* @__PURE__ */ h("div", {
|
|
2793
2793
|
className: `select-uploadzone${w ? " is-over" : ""}`,
|
|
2794
|
-
...
|
|
2794
|
+
...re,
|
|
2795
2795
|
children: [
|
|
2796
2796
|
L ? /* @__PURE__ */ h("div", {
|
|
2797
2797
|
className: `select-filetile-grid${P === 1 ? " select-filetile-grid--single" : ""}`,
|
|
@@ -2811,15 +2811,15 @@ var Zt = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2811
2811
|
F && /* @__PURE__ */ h("button", {
|
|
2812
2812
|
type: "button",
|
|
2813
2813
|
className: "select-dropzone select-dropzone--tile",
|
|
2814
|
-
onClick:
|
|
2815
|
-
children: [/* @__PURE__ */ m(
|
|
2814
|
+
onClick: U,
|
|
2815
|
+
children: [/* @__PURE__ */ m(se, {}), /* @__PURE__ */ m("span", { children: "Adicionar" })]
|
|
2816
2816
|
})
|
|
2817
2817
|
]
|
|
2818
2818
|
}) : /* @__PURE__ */ h("button", {
|
|
2819
2819
|
type: "button",
|
|
2820
2820
|
className: "select-uploadzone__prompt",
|
|
2821
|
-
onClick:
|
|
2822
|
-
children: [/* @__PURE__ */ m(
|
|
2821
|
+
onClick: U,
|
|
2822
|
+
children: [/* @__PURE__ */ m(se, {}), /* @__PURE__ */ m("span", { children: g ?? `Arraste ou selecione um arquivo · até ${c} MB` })]
|
|
2823
2823
|
}),
|
|
2824
2824
|
I && /* @__PURE__ */ h("div", {
|
|
2825
2825
|
className: "select-uploadzone__url",
|
|
@@ -2929,7 +2929,7 @@ var Zt = r(function({ files: e, onChange: t, accept: n, maxSizeMB: r = 10, allow
|
|
|
2929
2929
|
}), /* @__PURE__ */ m("span", {
|
|
2930
2930
|
className: "select-select-caret",
|
|
2931
2931
|
"aria-hidden": "true",
|
|
2932
|
-
children: /* @__PURE__ */ m(
|
|
2932
|
+
children: /* @__PURE__ */ m(W, {})
|
|
2933
2933
|
})]
|
|
2934
2934
|
}),
|
|
2935
2935
|
u ? /* @__PURE__ */ m("p", {
|
|
@@ -3205,7 +3205,7 @@ var mn = r(function({ label: e, value: t, onChange: n, options: r, placeholder:
|
|
|
3205
3205
|
}), /* @__PURE__ */ m("span", {
|
|
3206
3206
|
className: "select-combobox__caret",
|
|
3207
3207
|
"aria-hidden": "true",
|
|
3208
|
-
children: /* @__PURE__ */ m(
|
|
3208
|
+
children: /* @__PURE__ */ m(W, {})
|
|
3209
3209
|
})]
|
|
3210
3210
|
}),
|
|
3211
3211
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -3722,7 +3722,7 @@ var In = r(function({ label: e, value: t, onChange: n, labelAction: r, hint: i,
|
|
|
3722
3722
|
/* @__PURE__ */ m("span", {
|
|
3723
3723
|
className: "select-select-caret",
|
|
3724
3724
|
"aria-hidden": "true",
|
|
3725
|
-
children: /* @__PURE__ */ m(
|
|
3725
|
+
children: /* @__PURE__ */ m(W, {})
|
|
3726
3726
|
}),
|
|
3727
3727
|
/* @__PURE__ */ m("select", {
|
|
3728
3728
|
className: "select-phone__select",
|
|
@@ -4004,7 +4004,7 @@ function Un({ items: e, label: t = "Ações", disabled: n }) {
|
|
|
4004
4004
|
variant: "secondary",
|
|
4005
4005
|
size: "sm",
|
|
4006
4006
|
inline: !0,
|
|
4007
|
-
trailingIcon: /* @__PURE__ */ m(
|
|
4007
|
+
trailingIcon: /* @__PURE__ */ m(W, {}),
|
|
4008
4008
|
disabled: n,
|
|
4009
4009
|
onClick: () => i((e) => !e),
|
|
4010
4010
|
children: t
|
|
@@ -4346,7 +4346,7 @@ function ur({ open: e, onToggle: t, children: n, openLabel: r, disabled: i = !1,
|
|
|
4346
4346
|
inline: !0,
|
|
4347
4347
|
trailingIcon: /* @__PURE__ */ m("span", {
|
|
4348
4348
|
className: `select-disclosure-caret${e ? " is-open" : ""}`,
|
|
4349
|
-
children: /* @__PURE__ */ m(
|
|
4349
|
+
children: /* @__PURE__ */ m(W, {})
|
|
4350
4350
|
}),
|
|
4351
4351
|
disabled: i,
|
|
4352
4352
|
"aria-expanded": e,
|
|
@@ -4595,7 +4595,7 @@ function Br({ value: e, path: n, depth: r, ancestors: i, ctx: a }) {
|
|
|
4595
4595
|
"aria-expanded": p,
|
|
4596
4596
|
"aria-label": `${p ? "Recolher" : "Expandir"} ${e}`,
|
|
4597
4597
|
onClick: () => a.toggle(l),
|
|
4598
|
-
children: /* @__PURE__ */ m(
|
|
4598
|
+
children: /* @__PURE__ */ m(ie, {})
|
|
4599
4599
|
}) : /* @__PURE__ */ m("span", {
|
|
4600
4600
|
className: "select-json__caret select-json__caret--empty",
|
|
4601
4601
|
"aria-hidden": "true"
|
|
@@ -4639,7 +4639,7 @@ function Br({ value: e, path: n, depth: r, ancestors: i, ctx: a }) {
|
|
|
4639
4639
|
"aria-label": `Copiar ${e}`,
|
|
4640
4640
|
title: a.copied === _ ? "Copiado!" : "Copiar valor",
|
|
4641
4641
|
onClick: () => a.copy(_, d ? Cr(c) : yr(c)),
|
|
4642
|
-
children: a.copied === _ ? /* @__PURE__ */ m(Ve, {}) : /* @__PURE__ */ m(
|
|
4642
|
+
children: a.copied === _ ? /* @__PURE__ */ m(Ve, {}) : /* @__PURE__ */ m(ce, {})
|
|
4643
4643
|
})
|
|
4644
4644
|
]
|
|
4645
4645
|
}), f && p && /* @__PURE__ */ m(Br, {
|
|
@@ -4732,7 +4732,7 @@ var Hr = r(function({ value: e, title: t = "Metadados", maxHeight: n = 360, defa
|
|
|
4732
4732
|
/* @__PURE__ */ m("span", {
|
|
4733
4733
|
className: "select-json__searchicon",
|
|
4734
4734
|
"aria-hidden": "true",
|
|
4735
|
-
children: /* @__PURE__ */ m(
|
|
4735
|
+
children: /* @__PURE__ */ m(oe, {})
|
|
4736
4736
|
}),
|
|
4737
4737
|
/* @__PURE__ */ m("input", {
|
|
4738
4738
|
className: "select-json__searchinput",
|
|
@@ -4922,7 +4922,7 @@ function Jr({ children: e, className: t, ...n }) {
|
|
|
4922
4922
|
});
|
|
4923
4923
|
}
|
|
4924
4924
|
function Yr({ title: e, subtitle: t, leading: n, trailing: r, onClick: i, muted: a = !1 }) {
|
|
4925
|
-
let o = !!i, s = r === void 0 ? o ? /* @__PURE__ */ m(
|
|
4925
|
+
let o = !!i, s = r === void 0 ? o ? /* @__PURE__ */ m(ie, {}) : null : r, c = /* @__PURE__ */ h(p, { children: [
|
|
4926
4926
|
n && /* @__PURE__ */ m("span", {
|
|
4927
4927
|
className: "select-optionrow__leading",
|
|
4928
4928
|
children: n
|
|
@@ -5046,7 +5046,7 @@ function $r(e) {
|
|
|
5046
5046
|
//#endregion
|
|
5047
5047
|
//#region src/SelectBackLink.tsx
|
|
5048
5048
|
function ei({ children: e = "Voltar", onClick: t, href: n }) {
|
|
5049
|
-
let r = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(
|
|
5049
|
+
let r = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(G, {}), /* @__PURE__ */ m("span", { children: e })] }), i = $r(n);
|
|
5050
5050
|
return i ? /* @__PURE__ */ m("a", {
|
|
5051
5051
|
className: "select-backlink",
|
|
5052
5052
|
href: i,
|
|
@@ -5266,7 +5266,7 @@ var si = r(function({ value: e, rules: t, className: n, ...r }, i) {
|
|
|
5266
5266
|
className: "select-page__back",
|
|
5267
5267
|
onClick: a.onAction,
|
|
5268
5268
|
"aria-label": a.content ?? "Voltar",
|
|
5269
|
-
children: /* @__PURE__ */ m(
|
|
5269
|
+
children: /* @__PURE__ */ m(G, {})
|
|
5270
5270
|
}), /* @__PURE__ */ h("div", {
|
|
5271
5271
|
className: "select-page__head",
|
|
5272
5272
|
children: [e && /* @__PURE__ */ m("h1", {
|
|
@@ -5503,7 +5503,7 @@ var Si = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, classN
|
|
|
5503
5503
|
}), /* @__PURE__ */ m("span", {
|
|
5504
5504
|
className: "select-section__chevron",
|
|
5505
5505
|
"aria-hidden": "true",
|
|
5506
|
-
children: /* @__PURE__ */ m(
|
|
5506
|
+
children: /* @__PURE__ */ m(W, {})
|
|
5507
5507
|
})]
|
|
5508
5508
|
}), /* @__PURE__ */ m("div", {
|
|
5509
5509
|
className: "select-section__collapse",
|
|
@@ -5637,7 +5637,7 @@ function ki({ item: e, active: t, onSelect: n }) {
|
|
|
5637
5637
|
!r && /* @__PURE__ */ m("span", {
|
|
5638
5638
|
className: "select-sidenav__chevron",
|
|
5639
5639
|
"aria-hidden": "true",
|
|
5640
|
-
children: /* @__PURE__ */ m(
|
|
5640
|
+
children: /* @__PURE__ */ m(W, {})
|
|
5641
5641
|
})
|
|
5642
5642
|
]
|
|
5643
5643
|
}), /* @__PURE__ */ m("div", {
|
|
@@ -5712,7 +5712,7 @@ function ji({ item: e, active: t, onSelect: n, tabbable: r }) {
|
|
|
5712
5712
|
/* @__PURE__ */ m("span", {
|
|
5713
5713
|
className: "select-sidenav__chevron",
|
|
5714
5714
|
"aria-hidden": "true",
|
|
5715
|
-
children: /* @__PURE__ */ m(
|
|
5715
|
+
children: /* @__PURE__ */ m(W, {})
|
|
5716
5716
|
})
|
|
5717
5717
|
]
|
|
5718
5718
|
}), /* @__PURE__ */ m("div", {
|
|
@@ -5780,7 +5780,7 @@ var Mi = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
5780
5780
|
/* @__PURE__ */ m("span", {
|
|
5781
5781
|
className: "select-search__icon",
|
|
5782
5782
|
"aria-hidden": "true",
|
|
5783
|
-
children: /* @__PURE__ */ m(
|
|
5783
|
+
children: /* @__PURE__ */ m(oe, {})
|
|
5784
5784
|
}),
|
|
5785
5785
|
/* @__PURE__ */ m("input", {
|
|
5786
5786
|
className: "select-search__input",
|
|
@@ -5836,7 +5836,7 @@ var Ii = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious:
|
|
|
5836
5836
|
onClick: _,
|
|
5837
5837
|
disabled: !p || !_,
|
|
5838
5838
|
"aria-label": "Página anterior",
|
|
5839
|
-
children: /* @__PURE__ */ m(
|
|
5839
|
+
children: /* @__PURE__ */ m(ae, {})
|
|
5840
5840
|
}),
|
|
5841
5841
|
y ? b.map((t, n) => t === "gap" ? /* @__PURE__ */ m("span", {
|
|
5842
5842
|
className: "select-pagination__gap",
|
|
@@ -5858,7 +5858,7 @@ var Ii = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious:
|
|
|
5858
5858
|
onClick: v,
|
|
5859
5859
|
disabled: !g || !v,
|
|
5860
5860
|
"aria-label": "Próxima página",
|
|
5861
|
-
children: /* @__PURE__ */ m(
|
|
5861
|
+
children: /* @__PURE__ */ m(ie, {})
|
|
5862
5862
|
})
|
|
5863
5863
|
]
|
|
5864
5864
|
}), x != null && /* @__PURE__ */ m("p", {
|
|
@@ -5906,7 +5906,7 @@ function Ri({ title: e, help: t, description: n, action: r, filters: i, tools: a
|
|
|
5906
5906
|
}), /* @__PURE__ */ m("span", {
|
|
5907
5907
|
className: "select-table__chevron",
|
|
5908
5908
|
"aria-hidden": "true",
|
|
5909
|
-
children: /* @__PURE__ */ m(
|
|
5909
|
+
children: /* @__PURE__ */ m(W, {})
|
|
5910
5910
|
})]
|
|
5911
5911
|
}) : l && /* @__PURE__ */ h("div", {
|
|
5912
5912
|
className: "select-table__heading",
|
|
@@ -5964,7 +5964,7 @@ function Bi({ pagination: e }) {
|
|
|
5964
5964
|
}), /* @__PURE__ */ m("span", {
|
|
5965
5965
|
className: `select-facet__caret${t ? " is-open" : ""}`,
|
|
5966
5966
|
"aria-hidden": "true",
|
|
5967
|
-
children: /* @__PURE__ */ m(
|
|
5967
|
+
children: /* @__PURE__ */ m(W, {})
|
|
5968
5968
|
})]
|
|
5969
5969
|
}),
|
|
5970
5970
|
children: /* @__PURE__ */ m("div", {
|
|
@@ -6106,7 +6106,7 @@ var Gi = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
6106
6106
|
type: "button",
|
|
6107
6107
|
className: `select-table__sortbtn${e.sortDir === "asc" ? " select-table__sortbtn--asc" : ""}${e.sortDir == null ? "" : " select-table__sortbtn--active"}`,
|
|
6108
6108
|
onClick: e.onSort,
|
|
6109
|
-
children: [e.label, /* @__PURE__ */ m(
|
|
6109
|
+
children: [e.label, /* @__PURE__ */ m(W, {})]
|
|
6110
6110
|
}) : e.label, v && e.resizable !== !1 && n < t.length - 1 && /* @__PURE__ */ m("span", {
|
|
6111
6111
|
role: "separator",
|
|
6112
6112
|
"aria-orientation": "vertical",
|
|
@@ -6194,7 +6194,7 @@ var Yi = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6194
6194
|
children: [n ? /* @__PURE__ */ m("span", {
|
|
6195
6195
|
className: `select-table__disclosure${n === "open" ? " is-open" : ""}`,
|
|
6196
6196
|
"aria-hidden": "true",
|
|
6197
|
-
children: n !== "none" && /* @__PURE__ */ m(
|
|
6197
|
+
children: n !== "none" && /* @__PURE__ */ m(ie, {})
|
|
6198
6198
|
}) : null, e]
|
|
6199
6199
|
});
|
|
6200
6200
|
}), Xi = r(function({ icon: e, title: t, subtitle: n, action: r, className: i, ...a }, o) {
|
|
@@ -6253,7 +6253,7 @@ var Yi = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6253
6253
|
]
|
|
6254
6254
|
});
|
|
6255
6255
|
}), $i = r(function({ children: e, href: t, icon: n, trailing: r, external: i, tone: a = "default", className: o, ...s }, c) {
|
|
6256
|
-
let l = $r(t), u = i ?? /^(https?:|mailto:|tel:)/i.test(l ?? ""), d = r ?? (u ? /* @__PURE__ */ m(
|
|
6256
|
+
let l = $r(t), u = i ?? /^(https?:|mailto:|tel:)/i.test(l ?? ""), d = r ?? (u ? /* @__PURE__ */ m(q, {}) : void 0);
|
|
6257
6257
|
return /* @__PURE__ */ h("a", {
|
|
6258
6258
|
ref: c,
|
|
6259
6259
|
...s,
|
|
@@ -6302,7 +6302,7 @@ var na = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6302
6302
|
children: [/* @__PURE__ */ m("span", { children: e }), /* @__PURE__ */ m("span", {
|
|
6303
6303
|
className: "select-menubtn__caret",
|
|
6304
6304
|
"aria-hidden": "true",
|
|
6305
|
-
children: /* @__PURE__ */ m(
|
|
6305
|
+
children: /* @__PURE__ */ m(W, {})
|
|
6306
6306
|
})]
|
|
6307
6307
|
});
|
|
6308
6308
|
}), ra = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
|
|
@@ -6345,10 +6345,10 @@ var na = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6345
6345
|
rel: "noreferrer",
|
|
6346
6346
|
"aria-label": "Abrir",
|
|
6347
6347
|
title: "Abrir",
|
|
6348
|
-
children: /* @__PURE__ */ m(
|
|
6348
|
+
children: /* @__PURE__ */ m(q, {})
|
|
6349
6349
|
}), /* @__PURE__ */ m(J, {
|
|
6350
6350
|
size: "sm",
|
|
6351
|
-
icon: m(s ? Ve :
|
|
6351
|
+
icon: m(s ? Ve : ce, {}),
|
|
6352
6352
|
label: s ? "Copiado" : "Copiar",
|
|
6353
6353
|
onClick: u
|
|
6354
6354
|
})]
|
|
@@ -6383,7 +6383,7 @@ function aa({ value: e, children: t, truncate: n, label: r = "Copiar id", fallba
|
|
|
6383
6383
|
});
|
|
6384
6384
|
},
|
|
6385
6385
|
"aria-label": s ? "Copiado" : r,
|
|
6386
|
-
children: m(s ? Ve :
|
|
6386
|
+
children: m(s ? Ve : ce, {})
|
|
6387
6387
|
})
|
|
6388
6388
|
})]
|
|
6389
6389
|
});
|
|
@@ -6407,7 +6407,7 @@ var oa = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6407
6407
|
}), /* @__PURE__ */ m("span", {
|
|
6408
6408
|
className: "select-collapsible__chevron",
|
|
6409
6409
|
"aria-hidden": "true",
|
|
6410
|
-
children: /* @__PURE__ */ m(
|
|
6410
|
+
children: /* @__PURE__ */ m(W, {})
|
|
6411
6411
|
})]
|
|
6412
6412
|
}), /* @__PURE__ */ m("div", {
|
|
6413
6413
|
className: "select-collapsible__bodywrap",
|
|
@@ -6431,7 +6431,7 @@ var oa = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6431
6431
|
className: "select-actioncard__dismiss",
|
|
6432
6432
|
children: /* @__PURE__ */ m(J, {
|
|
6433
6433
|
size: "sm",
|
|
6434
|
-
icon: /* @__PURE__ */ m(
|
|
6434
|
+
icon: /* @__PURE__ */ m(le, {}),
|
|
6435
6435
|
label: "Dispensar",
|
|
6436
6436
|
onClick: i
|
|
6437
6437
|
})
|
|
@@ -6562,7 +6562,7 @@ function fa({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6562
6562
|
className: "select-modal__close",
|
|
6563
6563
|
"aria-label": "Fechar",
|
|
6564
6564
|
onClick: t,
|
|
6565
|
-
children: /* @__PURE__ */ m(
|
|
6565
|
+
children: /* @__PURE__ */ m(le, {})
|
|
6566
6566
|
}), w = `select-modal__header${f ? " select-modal__header--divided" : ""}`;
|
|
6567
6567
|
return g(/* @__PURE__ */ m("div", {
|
|
6568
6568
|
className: `select select-modal__overlay${u ? " select-modal__overlay--noise" : ""}${_ === "blur" ? " select-modal__overlay--blur" : ""}${x ? " select-modal__overlay--closing" : ""}`,
|
|
@@ -6777,14 +6777,17 @@ function Da(e, t, n) {
|
|
|
6777
6777
|
sensitivity: "base"
|
|
6778
6778
|
});
|
|
6779
6779
|
}
|
|
6780
|
-
function Oa({ 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 }) {
|
|
6781
|
-
let [
|
|
6782
|
-
|
|
6780
|
+
function Oa({ 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 }) {
|
|
6781
|
+
let [y, b] = d(() => g ? ya(g) : []), [x, S] = d(!1), [C, w] = d(() => g ? Ca(g) : {}), T = l(() => new Set(y), [y]), E = e.filter(xa), D = E.length > 0 && E.every((e) => T.has(e.key)), O = (e) => !D && T.has(e.key) && xa(e), k = e.filter((e) => !O(e)), A = E.filter((e) => !O(e)), [j, M] = d(null), [N, P] = d(() => /* @__PURE__ */ new Set()), F = (e) => ((v == null ? void 0 : v(e)) ?? !1) !== N.has(n(e)), I = (e) => P((t) => {
|
|
6782
|
+
let r = new Set(t), i = n(e);
|
|
6783
|
+
return r.delete(i) || r.add(i), r;
|
|
6784
|
+
}), L = (e) => {
|
|
6785
|
+
b((t) => {
|
|
6783
6786
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
6784
|
-
return g && ba(g, r), n &&
|
|
6787
|
+
return g && ba(g, r), n && M((t) => t && t.key === e.key ? null : t), r;
|
|
6785
6788
|
});
|
|
6786
|
-
},
|
|
6787
|
-
|
|
6789
|
+
}, ee = (e) => {
|
|
6790
|
+
M((t) => {
|
|
6788
6791
|
let n = e.sortDefault ?? "asc";
|
|
6789
6792
|
return !t || t.key !== e.key ? {
|
|
6790
6793
|
key: e.key,
|
|
@@ -6794,65 +6797,61 @@ function Oa({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6794
6797
|
dir: n === "asc" ? "desc" : "asc"
|
|
6795
6798
|
} : null;
|
|
6796
6799
|
});
|
|
6797
|
-
},
|
|
6798
|
-
let e =
|
|
6799
|
-
if (!
|
|
6800
|
-
let
|
|
6801
|
-
return [...
|
|
6802
|
-
}, [
|
|
6803
|
-
t,
|
|
6804
|
-
k,
|
|
6805
|
-
N
|
|
6806
|
-
]), F = D.map((e) => ({
|
|
6800
|
+
}, R = j ? e.find((e) => e.key === j.key) : void 0, te = l(() => {
|
|
6801
|
+
let e = R == null ? void 0 : R.sortValue;
|
|
6802
|
+
if (!j || !e) return (e) => e;
|
|
6803
|
+
let t = j.dir === "asc" ? 1 : -1;
|
|
6804
|
+
return (n) => [...n].sort((n, r) => Da(e(n), e(r), t));
|
|
6805
|
+
}, [j, R]), z = l(() => te(t), [t, te]), B = (e) => (_ == null ? void 0 : _(e)) ?? [], V = !!_ && t.some((e) => B(e).length > 0), ne = k.map((e) => ({
|
|
6807
6806
|
label: e.title,
|
|
6808
6807
|
align: e.align,
|
|
6809
|
-
width:
|
|
6808
|
+
width: C[e.key] ?? e.width,
|
|
6810
6809
|
minWidth: e.minWidth,
|
|
6811
6810
|
grow: e.grow,
|
|
6812
6811
|
sortable: !!e.sortValue,
|
|
6813
|
-
sortDir: (
|
|
6814
|
-
onSort: e.sortValue ? () =>
|
|
6812
|
+
sortDir: (j == null ? void 0 : j.key) === e.key ? j.dir : null,
|
|
6813
|
+
onSort: e.sortValue ? () => ee(e) : void 0,
|
|
6815
6814
|
resizable: !!e.title
|
|
6816
|
-
})),
|
|
6817
|
-
let n =
|
|
6818
|
-
n &&
|
|
6815
|
+
})), H = (e, t) => {
|
|
6816
|
+
let n = k[e];
|
|
6817
|
+
n && w((e) => {
|
|
6819
6818
|
let r = { ...e };
|
|
6820
6819
|
return t ? r[n.key] = t : delete r[n.key], g && wa(g, r), r;
|
|
6821
6820
|
});
|
|
6822
|
-
},
|
|
6823
|
-
|
|
6824
|
-
},
|
|
6821
|
+
}, U = () => {
|
|
6822
|
+
w({}), g && wa(g, {});
|
|
6823
|
+
}, re = Object.keys(C).length > 0, ie = !r && i ? /* @__PURE__ */ m(Xi, {
|
|
6825
6824
|
icon: i.icon,
|
|
6826
6825
|
title: i.heading,
|
|
6827
6826
|
subtitle: i.text,
|
|
6828
6827
|
action: i.action
|
|
6829
|
-
}) : void 0,
|
|
6830
|
-
active:
|
|
6831
|
-
onClose: () =>
|
|
6828
|
+
}) : void 0, ae = g && E.length > 0 ? /* @__PURE__ */ m(fn, {
|
|
6829
|
+
active: x,
|
|
6830
|
+
onClose: () => S(!1),
|
|
6832
6831
|
placement: "bottom-end",
|
|
6833
6832
|
role: "menu",
|
|
6834
6833
|
activator: /* @__PURE__ */ m(J, {
|
|
6835
6834
|
icon: /* @__PURE__ */ m(Ze, {}),
|
|
6836
6835
|
label: "Colunas",
|
|
6837
6836
|
size: "sm",
|
|
6838
|
-
active:
|
|
6839
|
-
"aria-expanded":
|
|
6840
|
-
onClick: () =>
|
|
6837
|
+
active: x,
|
|
6838
|
+
"aria-expanded": x,
|
|
6839
|
+
onClick: () => S((e) => !e)
|
|
6841
6840
|
}),
|
|
6842
6841
|
children: /* @__PURE__ */ h("div", {
|
|
6843
6842
|
className: "select-facet__panel",
|
|
6844
6843
|
children: [/* @__PURE__ */ m("div", {
|
|
6845
6844
|
className: "select-facet__options",
|
|
6846
6845
|
role: "menu",
|
|
6847
|
-
children:
|
|
6848
|
-
let t = !
|
|
6846
|
+
children: E.map((e) => {
|
|
6847
|
+
let t = !O(e), n = t && A.length === 1;
|
|
6849
6848
|
return /* @__PURE__ */ h("button", {
|
|
6850
6849
|
type: "button",
|
|
6851
6850
|
role: "menuitemcheckbox",
|
|
6852
6851
|
"aria-checked": t,
|
|
6853
6852
|
disabled: n,
|
|
6854
6853
|
className: "select-facet__opt",
|
|
6855
|
-
onClick: () =>
|
|
6854
|
+
onClick: () => L(e),
|
|
6856
6855
|
children: [/* @__PURE__ */ m("span", { children: e.title }), t && /* @__PURE__ */ m("span", {
|
|
6857
6856
|
className: "select-facet__check",
|
|
6858
6857
|
"aria-hidden": "true",
|
|
@@ -6860,7 +6859,7 @@ function Oa({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6860
6859
|
})]
|
|
6861
6860
|
}, e.key);
|
|
6862
6861
|
})
|
|
6863
|
-
}),
|
|
6862
|
+
}), re && /* @__PURE__ */ m("div", {
|
|
6864
6863
|
className: "select-facet__options select-facet__options--footer",
|
|
6865
6864
|
role: "menu",
|
|
6866
6865
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -6868,7 +6867,7 @@ function Oa({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6868
6867
|
role: "menuitem",
|
|
6869
6868
|
className: "select-facet__opt",
|
|
6870
6869
|
onClick: () => {
|
|
6871
|
-
|
|
6870
|
+
U(), S(!1);
|
|
6872
6871
|
},
|
|
6873
6872
|
children: /* @__PURE__ */ m("span", { children: "Restaurar larguras" })
|
|
6874
6873
|
})
|
|
@@ -6878,28 +6877,51 @@ function Oa({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6878
6877
|
return /* @__PURE__ */ h("div", {
|
|
6879
6878
|
className: "select-datatable",
|
|
6880
6879
|
children: [/* @__PURE__ */ m(Gi, {
|
|
6881
|
-
columns:
|
|
6882
|
-
empty:
|
|
6880
|
+
columns: ne,
|
|
6881
|
+
empty: ie,
|
|
6883
6882
|
title: s,
|
|
6884
6883
|
help: c,
|
|
6885
6884
|
description: u,
|
|
6886
6885
|
filters: p,
|
|
6887
6886
|
action: f,
|
|
6888
|
-
tools:
|
|
6889
|
-
onColumnResize: (e, t) =>
|
|
6890
|
-
onColumnResizeReset: (e) =>
|
|
6891
|
-
children: r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(Ji, { children:
|
|
6887
|
+
tools: ae,
|
|
6888
|
+
onColumnResize: (e, t) => H(e, t),
|
|
6889
|
+
onColumnResizeReset: (e) => H(e, null),
|
|
6890
|
+
children: r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(Ji, { children: k.map((e, t) => /* @__PURE__ */ m(Yi, {
|
|
6892
6891
|
align: e.align,
|
|
6893
6892
|
width: e.width,
|
|
6894
6893
|
children: /* @__PURE__ */ m("span", { className: "select-skeleton select-datatable__skel" })
|
|
6895
|
-
}, t)) }, `skeleton-${t}`)) :
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6894
|
+
}, t)) }, `skeleton-${t}`)) : z.flatMap((e) => {
|
|
6895
|
+
let t = B(e);
|
|
6896
|
+
if (t.length === 0) return [/* @__PURE__ */ m(Ji, {
|
|
6897
|
+
onClick: o ? () => o(e) : void 0,
|
|
6898
|
+
children: k.map((t, n) => /* @__PURE__ */ m(Yi, {
|
|
6899
|
+
align: t.align,
|
|
6900
|
+
width: t.width,
|
|
6901
|
+
disclosure: V && n === 0 ? "none" : void 0,
|
|
6902
|
+
children: t.render(e)
|
|
6903
|
+
}, n))
|
|
6904
|
+
}, n(e))];
|
|
6905
|
+
let r = F(e);
|
|
6906
|
+
return [/* @__PURE__ */ m(Ji, {
|
|
6907
|
+
onClick: () => I(e),
|
|
6908
|
+
expanded: r,
|
|
6909
|
+
children: k.map((t, n) => /* @__PURE__ */ m(Yi, {
|
|
6910
|
+
align: t.align,
|
|
6911
|
+
width: t.width,
|
|
6912
|
+
disclosure: n === 0 ? r ? "open" : "closed" : void 0,
|
|
6913
|
+
children: t.render(e)
|
|
6914
|
+
}, n))
|
|
6915
|
+
}, n(e)), ...r ? te(t).map((t) => /* @__PURE__ */ m(Ji, {
|
|
6916
|
+
nested: !0,
|
|
6917
|
+
onClick: o ? () => o(t) : void 0,
|
|
6918
|
+
children: k.map((e, n) => /* @__PURE__ */ m(Yi, {
|
|
6919
|
+
align: e.align,
|
|
6920
|
+
width: e.width,
|
|
6921
|
+
children: e.render(t)
|
|
6922
|
+
}, n))
|
|
6923
|
+
}, `${n(e)}/${n(t)}`)) : []];
|
|
6924
|
+
})
|
|
6903
6925
|
}), a && /* @__PURE__ */ m(Bi, { pagination: a })]
|
|
6904
6926
|
});
|
|
6905
6927
|
}
|
|
@@ -7472,7 +7494,7 @@ var ho = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7472
7494
|
className: "select-datepicker__nav",
|
|
7473
7495
|
"aria-label": "Mês anterior",
|
|
7474
7496
|
onClick: () => E((e) => lo(e, -1)),
|
|
7475
|
-
children: /* @__PURE__ */ m(
|
|
7497
|
+
children: /* @__PURE__ */ m(ae, {})
|
|
7476
7498
|
}),
|
|
7477
7499
|
/* @__PURE__ */ h("span", {
|
|
7478
7500
|
className: "select-datepicker__monthlabel",
|
|
@@ -7487,7 +7509,7 @@ var ho = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7487
7509
|
className: "select-datepicker__nav",
|
|
7488
7510
|
"aria-label": "Próximo mês",
|
|
7489
7511
|
onClick: () => E((e) => lo(e, 1)),
|
|
7490
|
-
children: /* @__PURE__ */ m(
|
|
7512
|
+
children: /* @__PURE__ */ m(ie, {})
|
|
7491
7513
|
})
|
|
7492
7514
|
]
|
|
7493
7515
|
}),
|
|
@@ -7598,7 +7620,7 @@ function yo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7598
7620
|
}), /* @__PURE__ */ m("span", {
|
|
7599
7621
|
className: `select-facet__caret${r ? " is-open" : ""}`,
|
|
7600
7622
|
"aria-hidden": "true",
|
|
7601
|
-
children: /* @__PURE__ */ m(
|
|
7623
|
+
children: /* @__PURE__ */ m(W, {})
|
|
7602
7624
|
})]
|
|
7603
7625
|
}),
|
|
7604
7626
|
children: [
|
|
@@ -7695,7 +7717,7 @@ var bo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7695
7717
|
/* @__PURE__ */ m("span", {
|
|
7696
7718
|
className: "select-filterbar__query-icon",
|
|
7697
7719
|
"aria-hidden": "true",
|
|
7698
|
-
children: /* @__PURE__ */ m(
|
|
7720
|
+
children: /* @__PURE__ */ m(oe, {})
|
|
7699
7721
|
}),
|
|
7700
7722
|
/* @__PURE__ */ m("input", {
|
|
7701
7723
|
className: "select-filterbar__query-input",
|
|
@@ -7710,7 +7732,7 @@ var bo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7710
7732
|
className: "select-filterbar__query-clear",
|
|
7711
7733
|
"aria-label": "Limpar busca",
|
|
7712
7734
|
onClick: () => i.onChange(""),
|
|
7713
|
-
children: /* @__PURE__ */ m(
|
|
7735
|
+
children: /* @__PURE__ */ m(le, {})
|
|
7714
7736
|
})
|
|
7715
7737
|
]
|
|
7716
7738
|
}),
|
|
@@ -7766,7 +7788,7 @@ var bo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7766
7788
|
className: "select-filterbar__tagx",
|
|
7767
7789
|
"aria-label": `Remover filtro ${e.label}`,
|
|
7768
7790
|
onClick: () => n(e.key, ""),
|
|
7769
|
-
children: /* @__PURE__ */ m(
|
|
7791
|
+
children: /* @__PURE__ */ m(le, {})
|
|
7770
7792
|
})
|
|
7771
7793
|
]
|
|
7772
7794
|
}, e.key)), /* @__PURE__ */ m("button", {
|
|
@@ -7825,12 +7847,12 @@ var bo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7825
7847
|
onClick: (t) => {
|
|
7826
7848
|
t.stopPropagation(), x(e.value);
|
|
7827
7849
|
},
|
|
7828
|
-
children: /* @__PURE__ */ m(
|
|
7850
|
+
children: /* @__PURE__ */ m(le, {})
|
|
7829
7851
|
})]
|
|
7830
7852
|
}, e.value)), /* @__PURE__ */ m("span", {
|
|
7831
7853
|
className: "select-tagselect__caret",
|
|
7832
7854
|
"aria-hidden": "true",
|
|
7833
|
-
children: /* @__PURE__ */ m(
|
|
7855
|
+
children: /* @__PURE__ */ m(W, {})
|
|
7834
7856
|
})]
|
|
7835
7857
|
}),
|
|
7836
7858
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -7987,7 +8009,7 @@ function ko({ children: e }) {
|
|
|
7987
8009
|
className: "select-toast__close",
|
|
7988
8010
|
"aria-label": "Fechar",
|
|
7989
8011
|
onClick: () => c(e.id),
|
|
7990
|
-
children: /* @__PURE__ */ m(
|
|
8012
|
+
children: /* @__PURE__ */ m(le, {})
|
|
7991
8013
|
})]
|
|
7992
8014
|
}, e.id);
|
|
7993
8015
|
})
|
|
@@ -8071,7 +8093,7 @@ var jo = "allow-scripts allow-same-origin allow-forms", Mo = 390, No = 1280, Po
|
|
|
8071
8093
|
rel: "noreferrer",
|
|
8072
8094
|
"aria-label": "Abrir em nova aba",
|
|
8073
8095
|
title: "Abrir em nova aba",
|
|
8074
|
-
children: /* @__PURE__ */ m(
|
|
8096
|
+
children: /* @__PURE__ */ m(q, {})
|
|
8075
8097
|
})
|
|
8076
8098
|
]
|
|
8077
8099
|
})
|
|
@@ -21793,19 +21815,19 @@ var Js = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21793
21815
|
o(() => (k.current || ne(), () => {
|
|
21794
21816
|
L.current && cancelAnimationFrame(L.current), L.current = 0;
|
|
21795
21817
|
}), []);
|
|
21796
|
-
let
|
|
21797
|
-
|
|
21818
|
+
let U = u(v);
|
|
21819
|
+
U.current = v, o(() => {
|
|
21798
21820
|
let e = E.current;
|
|
21799
21821
|
if (!e) return;
|
|
21800
21822
|
let t = (e) => {
|
|
21801
21823
|
var t;
|
|
21802
21824
|
e.preventDefault();
|
|
21803
21825
|
let n = Math.max(-240, Math.min(240, e.deltaMode ? e.deltaY * 40 : e.deltaY)), r = M.current * Math.exp(-n * .0012);
|
|
21804
|
-
M.current = Math.max(.8, Math.min(1.8, r)), (t =
|
|
21826
|
+
M.current = Math.max(.8, Math.min(1.8, r)), (t = U.current) == null || t.call(U, M.current), ne(), R((e) => (e + 1) % 1e6);
|
|
21805
21827
|
};
|
|
21806
21828
|
return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
|
|
21807
21829
|
}, []);
|
|
21808
|
-
let
|
|
21830
|
+
let re = (e) => {
|
|
21809
21831
|
var t, n;
|
|
21810
21832
|
(t = (n = e.target).setPointerCapture) == null || t.call(n, e.pointerId), P.current = {
|
|
21811
21833
|
x: e.clientX,
|
|
@@ -21814,7 +21836,7 @@ var Js = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21814
21836
|
lng: 0,
|
|
21815
21837
|
lat: 0
|
|
21816
21838
|
}, N.current = null, z(!0), ne();
|
|
21817
|
-
},
|
|
21839
|
+
}, ie = (e) => {
|
|
21818
21840
|
if (!P.current) return;
|
|
21819
21841
|
let t = .34 / M.current, n = e.clientX - P.current.x, r = e.clientY - P.current.y;
|
|
21820
21842
|
P.current = {
|
|
@@ -21824,17 +21846,17 @@ var Js = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21824
21846
|
lng: n * t,
|
|
21825
21847
|
lat: r * t
|
|
21826
21848
|
};
|
|
21827
|
-
},
|
|
21849
|
+
}, ae = (e) => {
|
|
21828
21850
|
var t, n;
|
|
21829
21851
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, z(!1), ne());
|
|
21830
|
-
},
|
|
21852
|
+
}, W = (D / 2 - 6) * M.current, G = D / 2, K = D / 2, oe = (e) => {
|
|
21831
21853
|
let t = Ks(e, A.current.lng, A.current.lat);
|
|
21832
21854
|
return {
|
|
21833
|
-
x:
|
|
21834
|
-
y:
|
|
21855
|
+
x: G + W * t[0],
|
|
21856
|
+
y: K - W * t[1],
|
|
21835
21857
|
z: t[2]
|
|
21836
21858
|
};
|
|
21837
|
-
},
|
|
21859
|
+
}, se = l(() => {
|
|
21838
21860
|
let e = [];
|
|
21839
21861
|
for (let t = -180; t < 180; t += 30) {
|
|
21840
21862
|
let n = [];
|
|
@@ -21847,18 +21869,18 @@ var Js = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21847
21869
|
e.push(n);
|
|
21848
21870
|
}
|
|
21849
21871
|
return e;
|
|
21850
|
-
}, []),
|
|
21872
|
+
}, []), ce = l(() => Us.map((e) => {
|
|
21851
21873
|
let t = [];
|
|
21852
21874
|
for (let n = 0; n < e.length; n += 2) t.push(Gs(e[n + 1], e[n]));
|
|
21853
21875
|
return t;
|
|
21854
|
-
}), []),
|
|
21855
|
-
x:
|
|
21856
|
-
y:
|
|
21857
|
-
}),
|
|
21858
|
-
if (g) for (let e of
|
|
21876
|
+
}), []), q = (e) => ({
|
|
21877
|
+
x: G + W * e[0],
|
|
21878
|
+
y: K - W * e[1]
|
|
21879
|
+
}), le = "", ue = "";
|
|
21880
|
+
if (g) for (let e of ce) {
|
|
21859
21881
|
let t = e.map((e) => Ks(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
21860
21882
|
for (let e of t) if (e[2] > 0) {
|
|
21861
|
-
let t =
|
|
21883
|
+
let t = q(e);
|
|
21862
21884
|
ue += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
21863
21885
|
} else r = !1;
|
|
21864
21886
|
let i = [];
|
|
@@ -21881,30 +21903,30 @@ var Js = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21881
21903
|
}
|
|
21882
21904
|
if (i.length >= 3) {
|
|
21883
21905
|
let e = (e, t) => {
|
|
21884
|
-
let n =
|
|
21906
|
+
let n = q(t.v);
|
|
21885
21907
|
if (e.edge && t.edge) {
|
|
21886
|
-
let t = Math.atan2(
|
|
21908
|
+
let t = Math.atan2(q(e.v).y - K, q(e.v).x - G), r = Math.atan2(n.y - K, n.x - G) - t;
|
|
21887
21909
|
for (; r > Math.PI;) r -= 2 * Math.PI;
|
|
21888
21910
|
for (; r < -Math.PI;) r += 2 * Math.PI;
|
|
21889
21911
|
let i = +(r > 0);
|
|
21890
|
-
return `A${
|
|
21912
|
+
return `A${W.toFixed(1)},${W.toFixed(1)} 0 0 ${i} ${n.x.toFixed(1)},${n.y.toFixed(1)}`;
|
|
21891
21913
|
}
|
|
21892
21914
|
return `L${n.x.toFixed(1)},${n.y.toFixed(1)}`;
|
|
21893
|
-
}, t =
|
|
21894
|
-
|
|
21895
|
-
for (let t = 1; t < i.length; t++)
|
|
21896
|
-
|
|
21915
|
+
}, t = q(i[0].v);
|
|
21916
|
+
le += `M${t.x.toFixed(1)},${t.y.toFixed(1)}`;
|
|
21917
|
+
for (let t = 1; t < i.length; t++) le += e(i[t - 1], i[t]);
|
|
21918
|
+
le += e(i[i.length - 1], i[0]), le += "Z";
|
|
21897
21919
|
}
|
|
21898
21920
|
}
|
|
21899
21921
|
let de = (e) => {
|
|
21900
21922
|
let t = "", n = !1;
|
|
21901
21923
|
for (let r of e) {
|
|
21902
|
-
let e =
|
|
21924
|
+
let e = oe(r);
|
|
21903
21925
|
e.z > 0 ? (t += `${n ? "L" : "M"}${e.x.toFixed(1)},${e.y.toFixed(1)}`, n = !0) : n = !1;
|
|
21904
21926
|
}
|
|
21905
21927
|
return t;
|
|
21906
21928
|
}, fe = Math.max(1, ...e.map((e) => e.value ?? 0)), pe = e.map((e, t) => {
|
|
21907
|
-
let n =
|
|
21929
|
+
let n = oe(Gs(e.lat, e.lng));
|
|
21908
21930
|
return {
|
|
21909
21931
|
...e,
|
|
21910
21932
|
i: t,
|
|
@@ -21916,14 +21938,14 @@ var Js = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21916
21938
|
}), me = B == null ? null : e[B], he = t.map((e, t) => {
|
|
21917
21939
|
let n = Gs(e.from.lat, e.from.lng), r = Gs(e.to.lat, e.to.lng), i = "", a = !1;
|
|
21918
21940
|
for (let e = 0; e <= 40; e++) {
|
|
21919
|
-
let t = e / 40, o = qs(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = Ks(o, A.current.lng, A.current.lat), l =
|
|
21941
|
+
let t = e / 40, o = qs(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = Ks(o, A.current.lng, A.current.lat), l = oe([
|
|
21920
21942
|
o[0] * s,
|
|
21921
21943
|
o[1] * s,
|
|
21922
21944
|
o[2] * s
|
|
21923
21945
|
]);
|
|
21924
21946
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
21925
21947
|
}
|
|
21926
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = qs(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = Ks(s, A.current.lng, A.current.lat), d =
|
|
21948
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = qs(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = Ks(s, A.current.lng, A.current.lat), d = oe([
|
|
21927
21949
|
s[0] * l,
|
|
21928
21950
|
s[1] * l,
|
|
21929
21951
|
s[2] * l
|
|
@@ -21954,11 +21976,11 @@ var Js = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21954
21976
|
F.current = !0;
|
|
21955
21977
|
},
|
|
21956
21978
|
onPointerLeave: (e) => {
|
|
21957
|
-
F.current = !1,
|
|
21979
|
+
F.current = !1, ae(e), V(null), T.hide(), ne();
|
|
21958
21980
|
},
|
|
21959
|
-
onPointerDown:
|
|
21960
|
-
onPointerMove:
|
|
21961
|
-
onPointerUp:
|
|
21981
|
+
onPointerDown: re,
|
|
21982
|
+
onPointerMove: ie,
|
|
21983
|
+
onPointerUp: ae,
|
|
21962
21984
|
children: [/* @__PURE__ */ h("svg", {
|
|
21963
21985
|
width: D,
|
|
21964
21986
|
height: D,
|
|
@@ -22053,43 +22075,43 @@ var Js = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
22053
22075
|
/* @__PURE__ */ m("clipPath", {
|
|
22054
22076
|
id: `${w}-clip`,
|
|
22055
22077
|
children: /* @__PURE__ */ m("circle", {
|
|
22056
|
-
cx:
|
|
22057
|
-
cy:
|
|
22058
|
-
r:
|
|
22078
|
+
cx: G,
|
|
22079
|
+
cy: K,
|
|
22080
|
+
r: W
|
|
22059
22081
|
})
|
|
22060
22082
|
})
|
|
22061
22083
|
] }),
|
|
22062
22084
|
/* @__PURE__ */ m("circle", {
|
|
22063
|
-
cx:
|
|
22064
|
-
cy:
|
|
22065
|
-
r:
|
|
22085
|
+
cx: G,
|
|
22086
|
+
cy: K,
|
|
22087
|
+
r: W + 24,
|
|
22066
22088
|
fill: `url(#${w}-atmo)`
|
|
22067
22089
|
}),
|
|
22068
22090
|
/* @__PURE__ */ m("circle", {
|
|
22069
|
-
cx:
|
|
22070
|
-
cy:
|
|
22071
|
-
r:
|
|
22091
|
+
cx: G,
|
|
22092
|
+
cy: K,
|
|
22093
|
+
r: W,
|
|
22072
22094
|
fill: `url(#${w}-sphere)`,
|
|
22073
22095
|
stroke: `color-mix(in srgb, ${c} 40%, transparent)`,
|
|
22074
22096
|
strokeWidth: 1
|
|
22075
22097
|
}),
|
|
22076
22098
|
/* @__PURE__ */ m("circle", {
|
|
22077
|
-
cx:
|
|
22078
|
-
cy:
|
|
22079
|
-
r:
|
|
22099
|
+
cx: G,
|
|
22100
|
+
cy: K,
|
|
22101
|
+
r: W,
|
|
22080
22102
|
fill: `url(#${w}-glow)`
|
|
22081
22103
|
}),
|
|
22082
22104
|
/* @__PURE__ */ m("circle", {
|
|
22083
|
-
cx:
|
|
22084
|
-
cy:
|
|
22085
|
-
r:
|
|
22105
|
+
cx: G,
|
|
22106
|
+
cy: K,
|
|
22107
|
+
r: W,
|
|
22086
22108
|
fill: `url(#${w}-spec)`
|
|
22087
22109
|
}),
|
|
22088
22110
|
/* @__PURE__ */ h("g", {
|
|
22089
22111
|
clipPath: `url(#${w}-clip)`,
|
|
22090
22112
|
children: [
|
|
22091
|
-
g &&
|
|
22092
|
-
d:
|
|
22113
|
+
g && le && /* @__PURE__ */ m("path", {
|
|
22114
|
+
d: le,
|
|
22093
22115
|
className: "select-globe__land",
|
|
22094
22116
|
fill: `color-mix(in srgb, ${c} 38%, transparent)`
|
|
22095
22117
|
}),
|
|
@@ -22099,7 +22121,7 @@ var Js = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
22099
22121
|
fill: "none",
|
|
22100
22122
|
stroke: `color-mix(in srgb, ${c} 68%, transparent)`
|
|
22101
22123
|
}),
|
|
22102
|
-
|
|
22124
|
+
se.map((e, t) => /* @__PURE__ */ m("path", {
|
|
22103
22125
|
d: de(e),
|
|
22104
22126
|
className: "select-globe__grid"
|
|
22105
22127
|
}, `g${t}`)),
|
|
@@ -22153,7 +22175,7 @@ var Js = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
22153
22175
|
V(e.i), T.show({
|
|
22154
22176
|
x: e.p.x,
|
|
22155
22177
|
y: e.p.y - e.r - 4,
|
|
22156
|
-
place: e.p.y <
|
|
22178
|
+
place: e.p.y < K ? "bottom" : "top",
|
|
22157
22179
|
title: e.label,
|
|
22158
22180
|
rows: e.value == null ? [] : [{
|
|
22159
22181
|
label: "Volume",
|
|
@@ -24196,7 +24218,7 @@ var Zc = r(function({ value: e, presets: t = Kc, onApply: n, onCancel: r, accent
|
|
|
24196
24218
|
className: "select-datepicker__nav",
|
|
24197
24219
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
24198
24220
|
onClick: () => x((e) => Uc(e, -1)),
|
|
24199
|
-
children: /* @__PURE__ */ m(
|
|
24221
|
+
children: /* @__PURE__ */ m(ae, {})
|
|
24200
24222
|
}),
|
|
24201
24223
|
/* @__PURE__ */ h("span", {
|
|
24202
24224
|
className: "select-datepicker__monthlabel",
|
|
@@ -24211,7 +24233,7 @@ var Zc = r(function({ value: e, presets: t = Kc, onApply: n, onCancel: r, accent
|
|
|
24211
24233
|
className: "select-datepicker__nav",
|
|
24212
24234
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
24213
24235
|
onClick: () => x((e) => Uc(e, 1)),
|
|
24214
|
-
children: /* @__PURE__ */ m(
|
|
24236
|
+
children: /* @__PURE__ */ m(ie, {})
|
|
24215
24237
|
})
|
|
24216
24238
|
]
|
|
24217
24239
|
}),
|
|
@@ -24275,7 +24297,7 @@ function nl({ value: e, onChange: t, presets: n = Yc, maxDate: r, placement: i =
|
|
|
24275
24297
|
inline: !s,
|
|
24276
24298
|
disabled: o,
|
|
24277
24299
|
icon: /* @__PURE__ */ m(rt, {}),
|
|
24278
|
-
trailingIcon: /* @__PURE__ */ m(
|
|
24300
|
+
trailingIcon: /* @__PURE__ */ m(W, {}),
|
|
24279
24301
|
onClick: () => l((e) => !e),
|
|
24280
24302
|
children: tl(e, n)
|
|
24281
24303
|
}),
|
|
@@ -24430,7 +24452,7 @@ function il({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
24430
24452
|
onClick: r.moveUp
|
|
24431
24453
|
}), /* @__PURE__ */ m(J, {
|
|
24432
24454
|
size: "sm",
|
|
24433
|
-
icon: /* @__PURE__ */ m(
|
|
24455
|
+
icon: /* @__PURE__ */ m(W, {}),
|
|
24434
24456
|
label: "Mover para baixo",
|
|
24435
24457
|
disabled: r.isLast,
|
|
24436
24458
|
onClick: r.moveDown
|
|
@@ -24536,7 +24558,7 @@ function ol({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24536
24558
|
className: "select-page__back",
|
|
24537
24559
|
onClick: () => T(n || -1),
|
|
24538
24560
|
"aria-label": "Voltar",
|
|
24539
|
-
children: /* @__PURE__ */ m(
|
|
24561
|
+
children: /* @__PURE__ */ m(G, {})
|
|
24540
24562
|
}),
|
|
24541
24563
|
/* @__PURE__ */ h("div", {
|
|
24542
24564
|
className: "select-bwork__ident",
|
|
@@ -24873,7 +24895,7 @@ function ul({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
24873
24895
|
className: "select-flowpage__bar",
|
|
24874
24896
|
children: [
|
|
24875
24897
|
n && /* @__PURE__ */ m(J, {
|
|
24876
|
-
icon: /* @__PURE__ */ m(
|
|
24898
|
+
icon: /* @__PURE__ */ m(G, {}),
|
|
24877
24899
|
label: r,
|
|
24878
24900
|
variant: "outline",
|
|
24879
24901
|
onClick: n
|
|
@@ -25543,7 +25565,7 @@ var jl = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
25543
25565
|
}), /* @__PURE__ */ m("span", {
|
|
25544
25566
|
className: `select-accordion__chevron${t ? " is-open" : ""}`,
|
|
25545
25567
|
"aria-hidden": "true",
|
|
25546
|
-
children: /* @__PURE__ */ m(
|
|
25568
|
+
children: /* @__PURE__ */ m(W, {})
|
|
25547
25569
|
})]
|
|
25548
25570
|
}), /* @__PURE__ */ m("div", {
|
|
25549
25571
|
id: `select-acc-${e.id}`,
|
|
@@ -25563,6 +25585,6 @@ var jl = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
25563
25585
|
});
|
|
25564
25586
|
});
|
|
25565
25587
|
//#endregion
|
|
25566
|
-
export { C as AUTH_FX_VARIANTS, Le as AppleIcon, mt as AppsIcon,
|
|
25588
|
+
export { C as AUTH_FX_VARIANTS, Le as AppleIcon, mt as AppsIcon, G as ArrowLeftIcon, ze as ArrowRightIcon, Ge as AtIcon, Pe as AuthAppIcon, St as AwardIcon, Ce as BellIcon, bt as BookIcon, pe as BookmarkIcon, lt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, gt as CartIcon, ft as ChartLineIcon, We as CheckCircleIcon, Ve as CheckIcon, W as ChevronDownIcon, ae as ChevronLeftIcon, ie as ChevronRightIcon, it as ChevronUpIcon, ot as ClipboardIcon, fe as ClockIcon, le as CloseIcon, ce as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, ct as DiscountIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, q as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, xt as FileDownloadIcon, K as FilterIcon, re as GithubIcon, _e as GlobeIcon, U as GoogleIcon, be as HelpIcon, Xe as HomeIcon, ye as InfoIcon, Je as KeyIcon, dt as LinkIcon, nt as LockIcon, Fe as MailIcon, _t as MenuIcon, ht as MinusCircleIcon, Ae as MobileIcon, ke as MonitorIcon, Oe as MoonIcon, st as NoteIcon, wt as PaletteIcon, Re as PasskeyIcon, Ne as PhoneIcon, me as PinIcon, yt as PlayCircleIcon, Me as PlusIcon, je as RefreshIcon, Te as RocketIcon, tr as SELECT_CARD_BRANDS, fl as SELECT_COLOR_PRESETS, ga as SELECT_COL_DATETIME, _a as SELECT_COL_ID, Pn as SELECT_COUNTRIES, Yc as SELECT_DAILY_PRESETS, Kc as SELECT_DATE_PRESETS, Wn as SELECT_SPACE, Bn as SELECT_TRANSACTION_STATUS, oe as SearchIcon, Ml as SelectAccordion, sa as SelectActionCard, Hn as SelectActionList, Un as SelectActionMenu, Qt as SelectAddButton, ka as SelectAddCard, Ut as SelectAlert, ca as SelectAppTile, V as SelectAuthFx, qr as SelectAvatar, ei as SelectBackLink, zn as SelectBadge, Fo as SelectBalanceCard, vn as SelectBankAccountField, $o as SelectBarChart, Qn as SelectBox, ks as SelectBoxPlot, al as SelectBuilderLayout, ol as SelectBuilderWorkspace, Ss as SelectBullet, ec as SelectBump, H as SelectButton, js as SelectCalendarHeatmap, Os as SelectCandlestick, ne as SelectCard, Aa as SelectCardGrid, kl as SelectCertificatePreview, Ro as SelectChartCard, Mt as SelectCheckbox, wl as SelectChoiceCard, Tl as SelectChoiceCardSkeleton, El as SelectChoiceGrid, Bs as SelectChord, sc as SelectCirclePack, oa as SelectCollapsible, Sl as SelectColorField, is as SelectColumnChart, ns as SelectComboChart, mn as SelectCombobox, ma as SelectConfirmModal, ia as SelectCopyRow, aa as SelectCopyableId, la as SelectCreateTile, Oa as SelectDataTable, ho as SelectDateField, Zc as SelectDatePicker, nl as SelectDateRangeField, gc as SelectDetailList, _c as SelectDetailRow, ur as SelectDisclosureButton, Kr as SelectDivider, Ht as SelectDocumentField, rs as SelectDonut, S as SelectDotField, Ps as SelectDumbbell, Io as SelectFeeBreakdown, jt as SelectField, hn as SelectFieldGrid, Zt as SelectFileDropzone, Wt as SelectFileTile, bo as SelectFilterBar, ra as SelectFilterChip, cl as SelectFlowCanvas, ul as SelectFlowLayout, ll as SelectFlowNode, fi as SelectFormLayout, ha as SelectFormModal, as as SelectFunnel, us as SelectGauge, Is as SelectGaugeBands, Ys as SelectGlobe, Yn as SelectGrid, ds as SelectHeatmap, Vs as SelectHexbin, Za as SelectHideMoneyToggle, ys as SelectHorizontalBar, ic as SelectIcicle, xi as SelectIcon, J as SelectIconButton, Xr as SelectIdentityFooter, jl as SelectImageField, en as SelectImageUploadField, $t as SelectImageUrlsField, Mc as SelectImageZoomModal, kt as SelectInfoTip, Jn as SelectInline, Hr as SelectJsonViewer, Lc as SelectKeyValueEditor, Lo as SelectKpiCard, At as SelectLabelRow, Na as SelectLayoutThumb, es as SelectLineChart, Gr as SelectLinkButton, kc as SelectListCard, Ac as SelectListRow, ci as SelectLoader, Fs as SelectMarimekko, no as SelectMarkStack, Pc as SelectMediaCell, Zi as SelectMenu, na as SelectMenuButton, ta as SelectMenuDivider, ea as SelectMenuHeading, Qi as SelectMenuItem, $i as SelectMenuLink, Xa as SelectMetricDelta, fa as SelectModal, Ja as SelectMoney, Rt as SelectMoneyField, cc as SelectNetwork, Si as SelectNote, rl as SelectNumberField, Qa as SelectOfferPrice, Fc as SelectOfflineModal, Jr as SelectOptionList, Yr as SelectOptionRow, Zr as SelectOtpInput, li as SelectPage, Ii as SelectPagination, Ti as SelectPanel, tc as SelectParallel, Zs as SelectPareto, si as SelectPasswordStrength, lr as SelectPaymentBrand, In as SelectPhoneField, Oc as SelectPlanCard, Ms as SelectPolarArea, fn as SelectPopover, Po as SelectPreviewFrame, Cl as SelectProgressBar, fs as SelectProgressList, $s as SelectPyramid, Es as SelectRadar, ms as SelectRadialBar, Ln as SelectRadioGroup, As as SelectRangeBar, eo as SelectRating, to as SelectRatingQuote, ja as SelectRecordCard, il as SelectRepeatingFieldArray, ti as SelectResendButton, ri as SelectRetryStatus, pa as SelectRowActions, Ds as SelectSankey, Ts as SelectScatter, Ni as SelectSearchInput, lc as SelectSearchMenu, dc as SelectSearchMenuOption, Ei as SelectSection, Rn as SelectSegmented, tn as SelectSelect, qa as SelectSensitiveValue, Ci as SelectSettingList, wi as SelectSettingRow, xc as SelectSetupGuide, Sc as SelectSetupNext, Mi as SelectSideNav, yi as SelectSkeleton, Ns as SelectSlope, Qo as SelectSparkline, Ia as SelectSplitChain, qn as SelectStack, ts as SelectStackedArea, Vn as SelectStatusBadge, vc as SelectSteps, Ls as SelectStreamGraph, Rs as SelectSunburst, So as SelectSurface, yn as SelectSwitch, dl as SelectSwitchField, Gi as SelectTable, Yi as SelectTableCell, Xi as SelectTableEmpty, Ji as SelectTableRow, Di as SelectTabs, xo as SelectTagSelect, $n as SelectText, Nt as SelectTextarea, mc as SelectThemeSwitcher, jc as SelectThumbnail, Xs as SelectTicker, Wr as SelectTimeline, ko as SelectToastProvider, bn as SelectToggleList, Sn as SelectTogglePanel, xn as SelectToggleRow, Ot as SelectTooltip, Dc as SelectTour, ac as SelectTree, ws as SelectTreemap, Pt as SelectUnitInput, qi as SelectUserCell, Ga as SelectValueVisibilityProvider, oc as SelectVenn, zs as SelectViolin, Qs as SelectWaffle, bs as SelectWaterfall, Hs as SelectWordCloud, ua as SelectWorkspaceSwitcher, Nc as SelectZoomThumbnail, ve as SelectorIcon, tt as SendIcon, de as Setting4Icon, Ze as SettingsIcon, Be as ShieldIcon, ge as SplitIcon, he as StarIcon, pt as StoreIcon, vt as StorefrontIcon, De as SunIcon, we as TerminalIcon, Ye as TrashIcon, ut as TruckIcon, se as UploadIcon, Se as UserIcon, Ct as UsersIcon, Qe as WalletIcon, xe as WarningIcon, Ke as Web3Icon, gl as contrastRatio, un as detectSelectTheme, Fn as dialCodeOf, vl as hexToHsv, yl as hsvToHex, ml as normalizeHex, oi as passwordScore, pc as resolveSelectTheme, ir as selectCardBrand, ar as selectCardBrandLabel, Ea as useSelectPageSize, Ao as useSelectToast, Ka as useSelectValueVisibility };
|
|
25567
25589
|
|
|
25568
25590
|
//# sourceMappingURL=index.js.map
|