@selectwin/kit 0.1.129 → 0.1.131
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/SelectChipInput.d.ts +22 -0
- package/dist/SelectListCard.d.ts +7 -1
- package/dist/SelectMiniStats.d.ts +3 -2
- package/dist/SelectText.d.ts +3 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +747 -643
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4610,20 +4610,21 @@ function xr({ children: e, padding: t, paddingInline: n, paddingBlock: r, backgr
|
|
|
4610
4610
|
}
|
|
4611
4611
|
//#endregion
|
|
4612
4612
|
//#region src/SelectText.tsx
|
|
4613
|
-
function Sr({ children: e, as: t = "p", variant: n = "bodyMd", tone: r, fontWeight: i, alignment: a, truncate: o = !1, numeric: s = !1,
|
|
4614
|
-
let
|
|
4613
|
+
function Sr({ children: e, as: t = "p", variant: n = "bodyMd", tone: r, fontWeight: i, alignment: a, truncate: o = !1, numeric: s = !1, mono: c = !1, className: l, ...u }) {
|
|
4614
|
+
let d = t, f = [
|
|
4615
4615
|
"select-text",
|
|
4616
4616
|
`select-text--${n}`,
|
|
4617
4617
|
r && r !== "base" ? `select-text--${r}` : "",
|
|
4618
4618
|
i ? `select-text--w-${i}` : "",
|
|
4619
4619
|
o ? "select-text--truncate" : "",
|
|
4620
4620
|
s ? "select-text--numeric" : "",
|
|
4621
|
-
c
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4621
|
+
c ? "select-text--mono" : "",
|
|
4622
|
+
l ?? ""
|
|
4623
|
+
].filter(Boolean).join(" "), p = a ? { textAlign: a } : void 0;
|
|
4624
|
+
return /* @__PURE__ */ m(d, {
|
|
4625
|
+
...u,
|
|
4626
|
+
className: f,
|
|
4627
|
+
style: p,
|
|
4627
4628
|
children: e
|
|
4628
4629
|
});
|
|
4629
4630
|
}
|
|
@@ -5420,8 +5421,111 @@ function vi(e, t = 1) {
|
|
|
5420
5421
|
return t === 1 || n.length === 1 ? r : r + n[n.length - 1][0].toUpperCase();
|
|
5421
5422
|
}
|
|
5422
5423
|
//#endregion
|
|
5424
|
+
//#region src/SelectChipInput.tsx
|
|
5425
|
+
var yi = /[\s,;]+/, bi = r(function({ label: e, value: t, onChange: n, placeholder: r, hint: i, error: a, disabled: o = !1, max: c, validate: l, mono: f = !1, ariaLabel: p, className: g, ..._ }, v) {
|
|
5426
|
+
let y = s(), b = s(), x = u(null), [S, C] = d(""), [w, T] = d(void 0), E = c != null && t.length >= c, D = (e) => {
|
|
5427
|
+
let r = e.split(yi).map((e) => e.trim()).filter(Boolean);
|
|
5428
|
+
if (r.length === 0) {
|
|
5429
|
+
C(""), T(void 0);
|
|
5430
|
+
return;
|
|
5431
|
+
}
|
|
5432
|
+
let i = [...t];
|
|
5433
|
+
for (let e = 0; e < r.length; e++) {
|
|
5434
|
+
let a = r[e];
|
|
5435
|
+
if (i.includes(a)) continue;
|
|
5436
|
+
if (c != null && i.length >= c) break;
|
|
5437
|
+
let o = l == null ? void 0 : l(a);
|
|
5438
|
+
if (o) {
|
|
5439
|
+
i.length !== t.length && n(i), C(r.slice(e).join(" ")), T(o);
|
|
5440
|
+
return;
|
|
5441
|
+
}
|
|
5442
|
+
i.push(a);
|
|
5443
|
+
}
|
|
5444
|
+
i.length !== t.length && n(i), C(""), T(void 0);
|
|
5445
|
+
}, O = (e) => {
|
|
5446
|
+
e.key === "Enter" || e.key === "," || e.key === ";" || e.key === " " ? S.trim() ? (e.preventDefault(), D(S)) : e.key !== "Enter" && e.preventDefault() : e.key === "Backspace" && S === "" && t.length > 0 && n(t.slice(0, -1));
|
|
5447
|
+
}, k = (e) => {
|
|
5448
|
+
var r;
|
|
5449
|
+
n(t.filter((t) => t !== e)), (r = x.current) == null || r.focus();
|
|
5450
|
+
}, A = w ?? a, j = E && c != null ? `Limite de ${c} atingido.` : i;
|
|
5451
|
+
return /* @__PURE__ */ h("div", {
|
|
5452
|
+
ref: v,
|
|
5453
|
+
..._,
|
|
5454
|
+
className: `select-field select-chipinput-field${g ? " " + g : ""}`,
|
|
5455
|
+
children: [
|
|
5456
|
+
e != null && /* @__PURE__ */ m("div", {
|
|
5457
|
+
className: "select-field__labelrow",
|
|
5458
|
+
children: /* @__PURE__ */ m("label", {
|
|
5459
|
+
className: "select-field__label",
|
|
5460
|
+
htmlFor: y,
|
|
5461
|
+
children: e
|
|
5462
|
+
})
|
|
5463
|
+
}),
|
|
5464
|
+
/* @__PURE__ */ h("div", {
|
|
5465
|
+
className: `select-chipinput${A ? " select-chipinput--error" : ""}${o ? " select-chipinput--disabled" : ""}`,
|
|
5466
|
+
onClick: () => {
|
|
5467
|
+
var e;
|
|
5468
|
+
return (e = x.current) == null ? void 0 : e.focus();
|
|
5469
|
+
},
|
|
5470
|
+
children: [t.map((e) => /* @__PURE__ */ h("span", {
|
|
5471
|
+
className: `select-chipinput__chip${f ? " select-chipinput__chip--mono" : ""}`,
|
|
5472
|
+
children: [e, !o && /* @__PURE__ */ m("button", {
|
|
5473
|
+
type: "button",
|
|
5474
|
+
className: "select-chipinput__remove",
|
|
5475
|
+
"aria-label": `Remover ${e}`,
|
|
5476
|
+
onClick: (t) => {
|
|
5477
|
+
t.stopPropagation(), k(e);
|
|
5478
|
+
},
|
|
5479
|
+
children: /* @__PURE__ */ m("svg", {
|
|
5480
|
+
viewBox: "0 0 24 24",
|
|
5481
|
+
width: "12",
|
|
5482
|
+
height: "12",
|
|
5483
|
+
fill: "none",
|
|
5484
|
+
stroke: "currentColor",
|
|
5485
|
+
strokeWidth: "2",
|
|
5486
|
+
strokeLinecap: "round",
|
|
5487
|
+
"aria-hidden": "true",
|
|
5488
|
+
children: /* @__PURE__ */ m("path", { d: "M7 7l10 10M17 7 7 17" })
|
|
5489
|
+
})
|
|
5490
|
+
})]
|
|
5491
|
+
}, e)), /* @__PURE__ */ m("input", {
|
|
5492
|
+
ref: x,
|
|
5493
|
+
id: y,
|
|
5494
|
+
className: `select-chipinput__input${f ? " select-chipinput__input--mono" : ""}`,
|
|
5495
|
+
value: S,
|
|
5496
|
+
placeholder: E ? "" : r,
|
|
5497
|
+
disabled: o || E,
|
|
5498
|
+
"aria-label": e == null ? p : void 0,
|
|
5499
|
+
"aria-invalid": A ? !0 : void 0,
|
|
5500
|
+
"aria-describedby": A || j ? b : void 0,
|
|
5501
|
+
onChange: (e) => {
|
|
5502
|
+
C(e.target.value), w && T(void 0);
|
|
5503
|
+
},
|
|
5504
|
+
onKeyDown: O,
|
|
5505
|
+
onBlur: () => S.trim() && D(S),
|
|
5506
|
+
onPaste: (e) => {
|
|
5507
|
+
let t = e.clipboardData.getData("text");
|
|
5508
|
+
yi.test(t.trim()) && (e.preventDefault(), D(`${S} ${t}`));
|
|
5509
|
+
},
|
|
5510
|
+
autoComplete: "off",
|
|
5511
|
+
spellCheck: !1
|
|
5512
|
+
})]
|
|
5513
|
+
}),
|
|
5514
|
+
A ? /* @__PURE__ */ m("p", {
|
|
5515
|
+
className: "select-field__error",
|
|
5516
|
+
id: b,
|
|
5517
|
+
children: A
|
|
5518
|
+
}) : j == null ? null : /* @__PURE__ */ m("p", {
|
|
5519
|
+
className: "select-field__hint",
|
|
5520
|
+
id: b,
|
|
5521
|
+
children: j
|
|
5522
|
+
})
|
|
5523
|
+
]
|
|
5524
|
+
});
|
|
5525
|
+
});
|
|
5526
|
+
//#endregion
|
|
5423
5527
|
//#region src/SelectOptionList.tsx
|
|
5424
|
-
function
|
|
5528
|
+
function xi({ children: e, className: t, ...n }) {
|
|
5425
5529
|
let r = On({
|
|
5426
5530
|
selector: ".select-optionrow",
|
|
5427
5531
|
y: 8,
|
|
@@ -5436,7 +5540,7 @@ function yi({ children: e, className: t, ...n }) {
|
|
|
5436
5540
|
children: e
|
|
5437
5541
|
});
|
|
5438
5542
|
}
|
|
5439
|
-
function
|
|
5543
|
+
function Si({ title: e, subtitle: t, leading: n, trailing: r, onClick: i, muted: a = !1 }) {
|
|
5440
5544
|
let o = !!i, s = r === void 0 ? o ? /* @__PURE__ */ m(U, {}) : null : r, c = /* @__PURE__ */ h(p, { children: [
|
|
5441
5545
|
n && /* @__PURE__ */ m("span", {
|
|
5442
5546
|
className: "select-optionrow__leading",
|
|
@@ -5469,7 +5573,7 @@ function bi({ title: e, subtitle: t, leading: n, trailing: r, onClick: i, muted:
|
|
|
5469
5573
|
}
|
|
5470
5574
|
//#endregion
|
|
5471
5575
|
//#region src/SelectIdentityFooter.tsx
|
|
5472
|
-
var
|
|
5576
|
+
var Ci = r(function({ email: e, onSignOut: t, signOutLabel: n = "Sair", prefix: r = "Conectado como", className: i, ...a }, o) {
|
|
5473
5577
|
return /* @__PURE__ */ h("span", {
|
|
5474
5578
|
ref: o,
|
|
5475
5579
|
...a,
|
|
@@ -5491,7 +5595,7 @@ var xi = r(function({ email: e, onSignOut: t, signOutLabel: n = "Sair", prefix:
|
|
|
5491
5595
|
children: n
|
|
5492
5596
|
})]
|
|
5493
5597
|
});
|
|
5494
|
-
}),
|
|
5598
|
+
}), wi = r(function({ value: e, onChange: t, length: n = 6, onComplete: r, autoFocus: i = !1, disabled: a = !1, className: o, ...s }, c) {
|
|
5495
5599
|
let l = u([]), d = Array.from({ length: n }, (t, n) => e[n] ?? ""), f = (e) => {
|
|
5496
5600
|
var t;
|
|
5497
5601
|
return (t = l.current[e]) == null ? void 0 : t.focus();
|
|
@@ -5546,22 +5650,22 @@ var xi = r(function({ email: e, onSignOut: t, signOutLabel: n = "Sair", prefix:
|
|
|
5546
5650
|
onPaste: (e) => v(t, e)
|
|
5547
5651
|
}, t))
|
|
5548
5652
|
});
|
|
5549
|
-
}),
|
|
5653
|
+
}), Ti = /* @__PURE__ */ new Set([
|
|
5550
5654
|
"http",
|
|
5551
5655
|
"https",
|
|
5552
5656
|
"mailto",
|
|
5553
5657
|
"tel"
|
|
5554
5658
|
]);
|
|
5555
|
-
function
|
|
5659
|
+
function Ei(e) {
|
|
5556
5660
|
var t;
|
|
5557
5661
|
if (!e) return;
|
|
5558
5662
|
let n = e.replace(/^[\x00-\x20]+|[\x00-\x20]+$/g, "").replace(/[\t\n\r]/g, ""), r = (t = /^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(n)) == null ? void 0 : t[1];
|
|
5559
|
-
return r === void 0 ? n ? e : void 0 :
|
|
5663
|
+
return r === void 0 ? n ? e : void 0 : Ti.has(r.toLowerCase()) ? e : void 0;
|
|
5560
5664
|
}
|
|
5561
5665
|
//#endregion
|
|
5562
5666
|
//#region src/SelectBackLink.tsx
|
|
5563
|
-
function
|
|
5564
|
-
let r = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(G, {}), /* @__PURE__ */ m("span", { children: e })] }), i =
|
|
5667
|
+
function Di({ children: e = "Voltar", onClick: t, href: n }) {
|
|
5668
|
+
let r = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(G, {}), /* @__PURE__ */ m("span", { children: e })] }), i = Ei(n);
|
|
5565
5669
|
return i ? /* @__PURE__ */ m("a", {
|
|
5566
5670
|
className: "select-backlink",
|
|
5567
5671
|
href: i,
|
|
@@ -5575,7 +5679,7 @@ function Ti({ children: e = "Voltar", onClick: t, href: n }) {
|
|
|
5575
5679
|
}
|
|
5576
5680
|
//#endregion
|
|
5577
5681
|
//#region src/SelectResendButton.tsx
|
|
5578
|
-
var
|
|
5682
|
+
var Oi = r(function({ onResend: e, seconds: t = 30, idleLabel: n = "Reenviar código", className: r, ...a }, s) {
|
|
5579
5683
|
let [c, l] = d(t);
|
|
5580
5684
|
o(() => {
|
|
5581
5685
|
if (c <= 0) return;
|
|
@@ -5601,17 +5705,17 @@ var Ei = r(function({ onResend: e, seconds: t = 30, idleLabel: n = "Reenviar có
|
|
|
5601
5705
|
});
|
|
5602
5706
|
//#endregion
|
|
5603
5707
|
//#region src/SelectRetryStatus.tsx
|
|
5604
|
-
function
|
|
5708
|
+
function ki(e) {
|
|
5605
5709
|
return e ? Math.max(0, Math.ceil((e - Date.now()) / 1e3)) : 0;
|
|
5606
5710
|
}
|
|
5607
|
-
function
|
|
5711
|
+
function Ai({ phase: e, nextAttemptAt: t, waitMs: n, attempt: r = 0, mark: i, action: a, waitingLabel: s = (e) => /* @__PURE__ */ h(p, { children: ["Nova tentativa em ", /* @__PURE__ */ h("span", {
|
|
5608
5712
|
className: "select-retry__num",
|
|
5609
5713
|
children: [e, "s"]
|
|
5610
5714
|
})] }), tryingLabel: c = "Reconectando…", doneLabel: l = "Conexão restabelecida", attemptLabel: u = (e) => e === 1 ? "1 tentativa sem resposta" : `${e} tentativas sem resposta`, firstLabel: f = "Primeira tentativa a caminho", doneCaption: g = "Atualizando seus dados", className: _ }) {
|
|
5611
|
-
let [v, y] = d(() =>
|
|
5715
|
+
let [v, y] = d(() => ki(t));
|
|
5612
5716
|
o(() => {
|
|
5613
|
-
if (y(
|
|
5614
|
-
let n = setInterval(() => y(
|
|
5717
|
+
if (y(ki(t)), e !== "waiting" || !t) return;
|
|
5718
|
+
let n = setInterval(() => y(ki(t)), 250);
|
|
5615
5719
|
return () => clearInterval(n);
|
|
5616
5720
|
}, [e, t]);
|
|
5617
5721
|
let b;
|
|
@@ -5674,7 +5778,7 @@ function Oi({ phase: e, nextAttemptAt: t, waitMs: n, attempt: r = 0, mark: i, ac
|
|
|
5674
5778
|
}
|
|
5675
5779
|
//#endregion
|
|
5676
5780
|
//#region src/SelectPasswordStrength.tsx
|
|
5677
|
-
var
|
|
5781
|
+
var ji = [
|
|
5678
5782
|
{
|
|
5679
5783
|
label: "Muito fraca",
|
|
5680
5784
|
cls: "is-0"
|
|
@@ -5695,14 +5799,14 @@ var ki = [
|
|
|
5695
5799
|
label: "Excelente",
|
|
5696
5800
|
cls: "is-4"
|
|
5697
5801
|
}
|
|
5698
|
-
],
|
|
5699
|
-
function
|
|
5802
|
+
], Mi = 2;
|
|
5803
|
+
function Ni(e) {
|
|
5700
5804
|
if (!e) return 0;
|
|
5701
5805
|
let t = 0;
|
|
5702
5806
|
return e.length >= 8 && t++, e.length >= 12 && t++, /[a-z]/.test(e) && /[A-Z]/.test(e) && t++, /\d/.test(e) && /[^A-Za-z0-9]/.test(e) && t++, Math.min(t, 4);
|
|
5703
5807
|
}
|
|
5704
|
-
var
|
|
5705
|
-
let a = t != null && t.length > 0, o =
|
|
5808
|
+
var Pi = r(function({ value: e, rules: t, className: n, ...r }, i) {
|
|
5809
|
+
let a = t != null && t.length > 0, o = Ni(e), s = a && t.some((e) => !e.met) ? Math.min(o, Mi) : o, c = ji[s] ?? ji[0], l = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
|
|
5706
5810
|
className: `select-strength__bars select-strength__bars--${c.cls}`,
|
|
5707
5811
|
children: [
|
|
5708
5812
|
0,
|
|
@@ -5747,7 +5851,7 @@ var Mi = r(function({ value: e, rules: t, className: n, ...r }, i) {
|
|
|
5747
5851
|
"aria-hidden": !e,
|
|
5748
5852
|
children: l
|
|
5749
5853
|
});
|
|
5750
|
-
}),
|
|
5854
|
+
}), Fi = r(function({ label: e, mark: t, className: n, ...r }, i) {
|
|
5751
5855
|
return /* @__PURE__ */ h("div", {
|
|
5752
5856
|
ref: i,
|
|
5753
5857
|
...r,
|
|
@@ -5766,7 +5870,7 @@ var Mi = r(function({ value: e, rules: t, className: n, ...r }, i) {
|
|
|
5766
5870
|
children: e
|
|
5767
5871
|
})]
|
|
5768
5872
|
});
|
|
5769
|
-
}),
|
|
5873
|
+
}), Ii = r(function({ title: e, subtitle: t, primaryAction: n, secondaryActions: r, headerActions: i, backAction: a, children: o, className: s, ...c }, l) {
|
|
5770
5874
|
let u = !!n || r && r.length > 0 || !!i, d = a || e || t || u;
|
|
5771
5875
|
return /* @__PURE__ */ h("div", {
|
|
5772
5876
|
ref: l,
|
|
@@ -5823,48 +5927,48 @@ var Mi = r(function({ value: e, rules: t, className: n, ...r }, i) {
|
|
|
5823
5927
|
});
|
|
5824
5928
|
//#endregion
|
|
5825
5929
|
//#region src/SelectFormLayout.tsx
|
|
5826
|
-
function
|
|
5930
|
+
function Li({ children: e }) {
|
|
5827
5931
|
return /* @__PURE__ */ m("div", {
|
|
5828
5932
|
className: "select-formlayout",
|
|
5829
5933
|
children: e
|
|
5830
5934
|
});
|
|
5831
5935
|
}
|
|
5832
|
-
function
|
|
5936
|
+
function Ri({ children: e, columns: t = 2 }) {
|
|
5833
5937
|
return /* @__PURE__ */ m("div", {
|
|
5834
5938
|
className: "select-formlayout__group",
|
|
5835
5939
|
style: { "--cols": String(t) },
|
|
5836
5940
|
children: e
|
|
5837
5941
|
});
|
|
5838
5942
|
}
|
|
5839
|
-
var
|
|
5943
|
+
var zi = Object.assign(Li, { Group: Ri });
|
|
5840
5944
|
//#endregion
|
|
5841
5945
|
//#region src/SelectSkeleton.tsx
|
|
5842
|
-
function
|
|
5946
|
+
function Bi({ lines: e = 3 }) {
|
|
5843
5947
|
return /* @__PURE__ */ m("div", {
|
|
5844
5948
|
className: "select-skel-body",
|
|
5845
5949
|
children: Array.from({ length: Math.max(1, e) }, (e, t) => /* @__PURE__ */ m("div", { className: "select-skeleton select-skel-line" }, t))
|
|
5846
5950
|
});
|
|
5847
5951
|
}
|
|
5848
|
-
function
|
|
5952
|
+
function Vi({ size: e = "medium" }) {
|
|
5849
5953
|
return /* @__PURE__ */ m("div", { className: `select-skeleton select-skel-display select-skel-display--${e}` });
|
|
5850
5954
|
}
|
|
5851
|
-
function
|
|
5955
|
+
function Hi({ size: e = "medium" }) {
|
|
5852
5956
|
return /* @__PURE__ */ m("div", { className: `select-skeleton select-skel-thumb select-skel-thumb--${e}` });
|
|
5853
5957
|
}
|
|
5854
|
-
function
|
|
5958
|
+
function Ui({ height: e = 240, aspectRatio: t }) {
|
|
5855
5959
|
return /* @__PURE__ */ m("div", {
|
|
5856
5960
|
className: "select-skeleton select-skel-block",
|
|
5857
5961
|
style: t ? { aspectRatio: t } : { height: e }
|
|
5858
5962
|
});
|
|
5859
5963
|
}
|
|
5860
|
-
function
|
|
5964
|
+
function Wi({ tall: e = !1 }) {
|
|
5861
5965
|
return /* @__PURE__ */ h("div", {
|
|
5862
5966
|
className: "select-skel-field",
|
|
5863
5967
|
"aria-hidden": "true",
|
|
5864
5968
|
children: [/* @__PURE__ */ m("div", { className: "select-skeleton select-skel-field__label" }), /* @__PURE__ */ m("div", { className: `select-skeleton select-skel-field__control${e ? " select-skel-field__control--tall" : ""}` })]
|
|
5865
5969
|
});
|
|
5866
5970
|
}
|
|
5867
|
-
function
|
|
5971
|
+
function Gi({ media: e = !0, action: t = !0, boxed: n = !1 }) {
|
|
5868
5972
|
return /* @__PURE__ */ h("div", {
|
|
5869
5973
|
className: `select-skel-row${n ? " select-skel-row--boxed" : ""}`,
|
|
5870
5974
|
"aria-hidden": "true",
|
|
@@ -5878,22 +5982,22 @@ function Ui({ media: e = !0, action: t = !0, boxed: n = !1 }) {
|
|
|
5878
5982
|
]
|
|
5879
5983
|
});
|
|
5880
5984
|
}
|
|
5881
|
-
var
|
|
5882
|
-
return /* @__PURE__ */ m(
|
|
5985
|
+
var Ki = Object.assign(function({ lines: e }) {
|
|
5986
|
+
return /* @__PURE__ */ m(Bi, { lines: e });
|
|
5883
5987
|
}, {
|
|
5884
|
-
Body:
|
|
5885
|
-
Display:
|
|
5886
|
-
Thumbnail:
|
|
5887
|
-
Block:
|
|
5888
|
-
Field:
|
|
5889
|
-
Row:
|
|
5890
|
-
}),
|
|
5988
|
+
Body: Bi,
|
|
5989
|
+
Display: Vi,
|
|
5990
|
+
Thumbnail: Hi,
|
|
5991
|
+
Block: Ui,
|
|
5992
|
+
Field: Wi,
|
|
5993
|
+
Row: Gi
|
|
5994
|
+
}), qi = {
|
|
5891
5995
|
sm: "1rem",
|
|
5892
5996
|
md: "1.25rem",
|
|
5893
5997
|
lg: "1.5rem"
|
|
5894
5998
|
};
|
|
5895
|
-
function
|
|
5896
|
-
let i = ["select-icon", n !== "inherit" && n !== "base" ? `select-icon--${n}` : ""].filter(Boolean).join(" "), a =
|
|
5999
|
+
function Ji({ source: e, children: t, tone: n = "inherit", size: r = "md" }) {
|
|
6000
|
+
let i = ["select-icon", n !== "inherit" && n !== "base" ? `select-icon--${n}` : ""].filter(Boolean).join(" "), a = qi[r] ?? r;
|
|
5897
6001
|
return /* @__PURE__ */ m("span", {
|
|
5898
6002
|
className: i,
|
|
5899
6003
|
style: { "--select-icon-size": a },
|
|
@@ -5903,7 +6007,7 @@ function Ki({ source: e, children: t, tone: n = "inherit", size: r = "md" }) {
|
|
|
5903
6007
|
}
|
|
5904
6008
|
//#endregion
|
|
5905
6009
|
//#region src/SelectNote.tsx
|
|
5906
|
-
var
|
|
6010
|
+
var Yi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, icon: r, title: i, className: a, ...o }, s) {
|
|
5907
6011
|
let c = r ?? m(t === "warning" || t === "critical" ? xe : ye, {});
|
|
5908
6012
|
return /* @__PURE__ */ h("div", {
|
|
5909
6013
|
ref: s,
|
|
@@ -5920,14 +6024,14 @@ var qi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, icon:
|
|
|
5920
6024
|
}), e]
|
|
5921
6025
|
})]
|
|
5922
6026
|
});
|
|
5923
|
-
}),
|
|
6027
|
+
}), Xi = r(function({ children: e, className: t, ...n }, r) {
|
|
5924
6028
|
return /* @__PURE__ */ m("div", {
|
|
5925
6029
|
ref: r,
|
|
5926
6030
|
...n,
|
|
5927
6031
|
className: `select-settinglist${t ? " " + t : ""}`,
|
|
5928
6032
|
children: e
|
|
5929
6033
|
});
|
|
5930
|
-
}),
|
|
6034
|
+
}), Zi = r(function({ control: e, title: t, badge: n, description: r, children: i, bodyOpen: a, className: o, ...s }, c) {
|
|
5931
6035
|
return /* @__PURE__ */ h("div", {
|
|
5932
6036
|
ref: c,
|
|
5933
6037
|
...s,
|
|
@@ -5966,7 +6070,7 @@ var qi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, icon:
|
|
|
5966
6070
|
]
|
|
5967
6071
|
})]
|
|
5968
6072
|
});
|
|
5969
|
-
}),
|
|
6073
|
+
}), Qi = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, tone: a = "default", flush: o = !1, className: s, ...c }, l) {
|
|
5970
6074
|
return /* @__PURE__ */ h("div", {
|
|
5971
6075
|
ref: l,
|
|
5972
6076
|
...c,
|
|
@@ -5998,7 +6102,7 @@ var qi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, icon:
|
|
|
5998
6102
|
})
|
|
5999
6103
|
]
|
|
6000
6104
|
});
|
|
6001
|
-
}),
|
|
6105
|
+
}), $i = r(function({ title: e, help: t, description: n, action: r, collapsible: i = !1, defaultOpen: a = !0, children: o, className: s, ...c }, l) {
|
|
6002
6106
|
let [u, f] = d(a);
|
|
6003
6107
|
return i ? /* @__PURE__ */ h("div", {
|
|
6004
6108
|
ref: l,
|
|
@@ -6059,7 +6163,7 @@ var qi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, icon:
|
|
|
6059
6163
|
});
|
|
6060
6164
|
//#endregion
|
|
6061
6165
|
//#region src/SelectTabs.tsx
|
|
6062
|
-
function
|
|
6166
|
+
function ea({ tabs: e, value: t, onChange: n, end: r, className: i, ...a }) {
|
|
6063
6167
|
let o = u(null), [s, l] = d({
|
|
6064
6168
|
left: 0,
|
|
6065
6169
|
width: 0
|
|
@@ -6117,12 +6221,12 @@ function Qi({ tabs: e, value: t, onChange: n, end: r, className: i, ...a }) {
|
|
|
6117
6221
|
}
|
|
6118
6222
|
//#endregion
|
|
6119
6223
|
//#region src/SelectSideNav.tsx
|
|
6120
|
-
function
|
|
6224
|
+
function ta(e, t) {
|
|
6121
6225
|
var n;
|
|
6122
|
-
return ((n = e.children) == null ? void 0 : n.some((e) => e.id === t ||
|
|
6226
|
+
return ((n = e.children) == null ? void 0 : n.some((e) => e.id === t || ta(e, t))) ?? !1;
|
|
6123
6227
|
}
|
|
6124
|
-
function
|
|
6125
|
-
let r = e.alwaysOpen === !0, i =
|
|
6228
|
+
function na({ item: e, active: t, onSelect: n }) {
|
|
6229
|
+
let r = e.alwaysOpen === !0, i = ta(e, t), [a, s] = d(i);
|
|
6126
6230
|
o(() => {
|
|
6127
6231
|
s(i);
|
|
6128
6232
|
}, [i]);
|
|
@@ -6130,7 +6234,7 @@ function ea({ item: e, active: t, onSelect: n }) {
|
|
|
6130
6234
|
return c(() => {
|
|
6131
6235
|
var e;
|
|
6132
6236
|
let t = f.current, n = (t == null ? void 0 : t.querySelector(".select-sidenav__item--child.is-active")) ?? null, r = n == null ? void 0 : n.closest(".select-sidenav__subgroup .select-sidenav__collapse[data-open=\"false\"]");
|
|
6133
|
-
n && r && (n = ((e = r.parentElement) == null ? void 0 : e.querySelector(":scope > .select-sidenav__item")) ?? null), g(n && l ?
|
|
6237
|
+
n && r && (n = ((e = r.parentElement) == null ? void 0 : e.querySelector(":scope > .select-sidenav__item")) ?? null), g(n && l ? ra(n, t) : null);
|
|
6134
6238
|
}, [
|
|
6135
6239
|
t,
|
|
6136
6240
|
l,
|
|
@@ -6177,7 +6281,7 @@ function ea({ item: e, active: t, onSelect: n }) {
|
|
|
6177
6281
|
}
|
|
6178
6282
|
}), e.children.map((e) => {
|
|
6179
6283
|
var r;
|
|
6180
|
-
return (r = e.children) != null && r.length ? /* @__PURE__ */ m(
|
|
6284
|
+
return (r = e.children) != null && r.length ? /* @__PURE__ */ m(ia, {
|
|
6181
6285
|
item: e,
|
|
6182
6286
|
active: t,
|
|
6183
6287
|
onSelect: n,
|
|
@@ -6201,12 +6305,12 @@ function ea({ item: e, active: t, onSelect: n }) {
|
|
|
6201
6305
|
})]
|
|
6202
6306
|
});
|
|
6203
6307
|
}
|
|
6204
|
-
function
|
|
6308
|
+
function ra(e, t) {
|
|
6205
6309
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
6206
6310
|
return n.top - r.top + t.scrollTop + n.height / 2;
|
|
6207
6311
|
}
|
|
6208
|
-
function
|
|
6209
|
-
let i =
|
|
6312
|
+
function ia({ item: e, active: t, onSelect: n, tabbable: r }) {
|
|
6313
|
+
let i = ta(e, t), [a, s] = d(i);
|
|
6210
6314
|
return o(() => {
|
|
6211
6315
|
i && s(!0);
|
|
6212
6316
|
}, [i]), /* @__PURE__ */ h("div", {
|
|
@@ -6257,7 +6361,7 @@ function na({ item: e, active: t, onSelect: n, tabbable: r }) {
|
|
|
6257
6361
|
})]
|
|
6258
6362
|
});
|
|
6259
6363
|
}
|
|
6260
|
-
var
|
|
6364
|
+
var aa = r(function({ sections: e, active: t, onSelect: n, header: r, className: i, ...a }, o) {
|
|
6261
6365
|
return /* @__PURE__ */ h("nav", {
|
|
6262
6366
|
ref: o,
|
|
6263
6367
|
...a,
|
|
@@ -6270,7 +6374,7 @@ var ra = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
6270
6374
|
children: [e.label && /* @__PURE__ */ m("div", {
|
|
6271
6375
|
className: "select-sidenav__sectionlabel",
|
|
6272
6376
|
children: e.label
|
|
6273
|
-
}), e.items.map((e) => e.children ? /* @__PURE__ */ m(
|
|
6377
|
+
}), e.items.map((e) => e.children ? /* @__PURE__ */ m(na, {
|
|
6274
6378
|
item: e,
|
|
6275
6379
|
active: t,
|
|
6276
6380
|
onSelect: n
|
|
@@ -6289,7 +6393,7 @@ var ra = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
6289
6393
|
}, e.id))]
|
|
6290
6394
|
}, r))]
|
|
6291
6395
|
});
|
|
6292
|
-
}),
|
|
6396
|
+
}), oa = r(function({ value: e, onChange: t, placeholder: n = "Buscar…", shortcut: r, className: i, ...a }, o) {
|
|
6293
6397
|
return /* @__PURE__ */ h("div", {
|
|
6294
6398
|
ref: o,
|
|
6295
6399
|
...a,
|
|
@@ -6316,7 +6420,7 @@ var ra = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
6316
6420
|
});
|
|
6317
6421
|
//#endregion
|
|
6318
6422
|
//#region src/SelectPagination.tsx
|
|
6319
|
-
function
|
|
6423
|
+
function sa(e, t) {
|
|
6320
6424
|
let n = [.../* @__PURE__ */ new Set([
|
|
6321
6425
|
1,
|
|
6322
6426
|
t,
|
|
@@ -6327,7 +6431,7 @@ function aa(e, t) {
|
|
|
6327
6431
|
for (let e of n) e - i > 1 && r.push("gap"), r.push(e), i = e;
|
|
6328
6432
|
return r;
|
|
6329
6433
|
}
|
|
6330
|
-
function
|
|
6434
|
+
function ca(e, t, n, r, i, a) {
|
|
6331
6435
|
let o = [];
|
|
6332
6436
|
if (e != null) {
|
|
6333
6437
|
if (e === 0) o.push(`0 ${i}`);
|
|
@@ -6338,8 +6442,8 @@ function oa(e, t, n, r, i, a) {
|
|
|
6338
6442
|
}
|
|
6339
6443
|
return a && r != null && r > 0 && o.push(`Página ${n} de ${r}`), o.length > 0 ? o.join(" · ") : null;
|
|
6340
6444
|
}
|
|
6341
|
-
var
|
|
6342
|
-
let p = i ?? e > 1, g = a ?? (t == null || e < t), _ = o ?? (c ? () => c(e - 1) : void 0), v = s ?? (c ? () => c(e + 1) : void 0), y = t != null && t > 1 && c != null, b = y ?
|
|
6445
|
+
var la = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious: i, hasNext: a, onPrevious: o, onNext: s, onPage: c, noun: l = "resultados", className: u, ...d }, f) {
|
|
6446
|
+
let p = i ?? e > 1, g = a ?? (t == null || e < t), _ = o ?? (c ? () => c(e - 1) : void 0), v = s ?? (c ? () => c(e + 1) : void 0), y = t != null && t > 1 && c != null, b = y ? sa(e, t) : [], x = ca(n, r, e, t, l, y);
|
|
6343
6447
|
return /* @__PURE__ */ h("nav", {
|
|
6344
6448
|
ref: f,
|
|
6345
6449
|
...d,
|
|
@@ -6387,7 +6491,7 @@ var sa = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious:
|
|
|
6387
6491
|
});
|
|
6388
6492
|
//#endregion
|
|
6389
6493
|
//#region src/internal/listChrome.tsx
|
|
6390
|
-
function
|
|
6494
|
+
function ua({ title: e, description: t, action: n, filters: r, tools: i }) {
|
|
6391
6495
|
let a = r != null, o = a ? null : i, s = e != null || t != null;
|
|
6392
6496
|
return {
|
|
6393
6497
|
hasFilters: a,
|
|
@@ -6396,8 +6500,8 @@ function ca({ title: e, description: t, action: n, filters: r, tools: i }) {
|
|
|
6396
6500
|
hasTitleRow: s || n != null || o != null
|
|
6397
6501
|
};
|
|
6398
6502
|
}
|
|
6399
|
-
function
|
|
6400
|
-
let { hasFilters: s, inlineTools: c, hasIdentity: l, hasTitleRow: u } =
|
|
6503
|
+
function da({ title: e, help: t, description: n, action: r, filters: i, tools: a, toggle: o }) {
|
|
6504
|
+
let { hasFilters: s, inlineTools: c, hasIdentity: l, hasTitleRow: u } = ua({
|
|
6401
6505
|
title: e,
|
|
6402
6506
|
description: n,
|
|
6403
6507
|
action: r,
|
|
@@ -6450,7 +6554,7 @@ function la({ title: e, help: t, description: n, action: r, filters: i, tools: a
|
|
|
6450
6554
|
})]
|
|
6451
6555
|
})] });
|
|
6452
6556
|
}
|
|
6453
|
-
function
|
|
6557
|
+
function fa(e, t, n) {
|
|
6454
6558
|
if (!e || e.length === 0) return [];
|
|
6455
6559
|
let r = [...e].sort((e, t) => e - t);
|
|
6456
6560
|
if (t == null) return r;
|
|
@@ -6459,8 +6563,8 @@ function ua(e, t, n) {
|
|
|
6459
6563
|
for (let e of r) if (i.push(e), e >= t) break;
|
|
6460
6564
|
return n != null && r.includes(n) && !i.includes(n) && (i.push(n), i.sort((e, t) => e - t)), i;
|
|
6461
6565
|
}
|
|
6462
|
-
function
|
|
6463
|
-
let [t, n] = d(!1), r =
|
|
6566
|
+
function pa({ pagination: e }) {
|
|
6567
|
+
let [t, n] = d(!1), r = fa(e.pageSizeOptions, e.total, e.pageSize), i = r.length > 1 && e.onPageSizeChange != null;
|
|
6464
6568
|
return !i && !e.hasPrevious && !e.hasNext ? null : /* @__PURE__ */ h("div", {
|
|
6465
6569
|
className: "select-datatable__pagination",
|
|
6466
6570
|
children: [i && e.onPageSizeChange && /* @__PURE__ */ m("div", {
|
|
@@ -6511,7 +6615,7 @@ function da({ pagination: e }) {
|
|
|
6511
6615
|
})
|
|
6512
6616
|
})
|
|
6513
6617
|
})
|
|
6514
|
-
}), /* @__PURE__ */ m(
|
|
6618
|
+
}), /* @__PURE__ */ m(la, {
|
|
6515
6619
|
page: e.page ?? 1,
|
|
6516
6620
|
pageCount: e.pageCount,
|
|
6517
6621
|
total: e.total,
|
|
@@ -6527,17 +6631,17 @@ function da({ pagination: e }) {
|
|
|
6527
6631
|
}
|
|
6528
6632
|
//#endregion
|
|
6529
6633
|
//#region src/SelectTable.tsx
|
|
6530
|
-
var
|
|
6531
|
-
function
|
|
6634
|
+
var ma = 40, ha = 1200, ga = 8;
|
|
6635
|
+
function _a(e) {
|
|
6532
6636
|
let t = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
6533
6637
|
return `${Math.round(e / t * 1e3) / 1e3}rem`;
|
|
6534
6638
|
}
|
|
6535
|
-
var
|
|
6639
|
+
var va = r(function({ columns: t, children: n, empty: r, footer: a, title: o, help: l, description: f, action: p, filters: g, tools: _, onColumnResize: v, onColumnResizeReset: y, collapsible: b = !1, defaultOpen: x = !0, className: S, ...C }, w) {
|
|
6536
6640
|
let [T, E] = d(x), D = s(), O = b && o != null ? {
|
|
6537
6641
|
open: T,
|
|
6538
6642
|
onToggle: () => E((e) => !e),
|
|
6539
6643
|
controls: D
|
|
6540
|
-
} : void 0, k = e.count(n) === 0, A = k && !!r, { hasFilters: j, hasTitleRow: M } =
|
|
6644
|
+
} : void 0, k = e.count(n) === 0, A = k && !!r, { hasFilters: j, hasTitleRow: M } = ua({
|
|
6541
6645
|
title: o,
|
|
6542
6646
|
description: f,
|
|
6543
6647
|
action: p,
|
|
@@ -6571,9 +6675,9 @@ var ga = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
6571
6675
|
let o = I.current;
|
|
6572
6676
|
o == null || o.classList.add("select-table--resizing");
|
|
6573
6677
|
let s = a, c = (t) => {
|
|
6574
|
-
s = Math.min(
|
|
6678
|
+
s = Math.min(ha, Math.max(ma, a + (t.clientX - i))), ee(e, s);
|
|
6575
6679
|
}, l = () => {
|
|
6576
|
-
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"), v(e,
|
|
6680
|
+
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"), v(e, _a(s));
|
|
6577
6681
|
};
|
|
6578
6682
|
window.addEventListener("pointermove", c), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", l);
|
|
6579
6683
|
}, ne = (e) => (t) => {
|
|
@@ -6584,15 +6688,15 @@ var ga = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
6584
6688
|
let i = (n = t.currentTarget.parentElement) == null ? void 0 : n.getBoundingClientRect();
|
|
6585
6689
|
if (!i) return;
|
|
6586
6690
|
t.preventDefault();
|
|
6587
|
-
let a =
|
|
6588
|
-
ee(e, o), v(e,
|
|
6691
|
+
let a = ga * (t.shiftKey ? 10 : 1), o = Math.min(ha, Math.max(ma, i.width + r * a));
|
|
6692
|
+
ee(e, o), v(e, _a(o));
|
|
6589
6693
|
};
|
|
6590
6694
|
return /* @__PURE__ */ h("div", {
|
|
6591
6695
|
ref: L,
|
|
6592
6696
|
...C,
|
|
6593
6697
|
className: `select-table${N ? " select-table--empty" : ""}${O ? ` select-table--collapsible${T ? " is-open" : ""}` : ""}${S ? " " + S : ""}`,
|
|
6594
6698
|
style: { "--select-table-cols": F },
|
|
6595
|
-
children: [/* @__PURE__ */ m(
|
|
6699
|
+
children: [/* @__PURE__ */ m(da, {
|
|
6596
6700
|
title: o,
|
|
6597
6701
|
help: O ? void 0 : l,
|
|
6598
6702
|
description: f,
|
|
@@ -6600,12 +6704,12 @@ var ga = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
6600
6704
|
filters: O ? void 0 : g,
|
|
6601
6705
|
tools: O ? void 0 : _,
|
|
6602
6706
|
toggle: O
|
|
6603
|
-
}), /* @__PURE__ */ h(
|
|
6707
|
+
}), /* @__PURE__ */ h(ya, {
|
|
6604
6708
|
enabled: !!O,
|
|
6605
6709
|
open: T,
|
|
6606
6710
|
id: D,
|
|
6607
6711
|
children: [
|
|
6608
|
-
O && (g != null || _ != null) ? /* @__PURE__ */ m(
|
|
6712
|
+
O && (g != null || _ != null) ? /* @__PURE__ */ m(da, {
|
|
6609
6713
|
filters: g,
|
|
6610
6714
|
tools: _
|
|
6611
6715
|
}) : null,
|
|
@@ -6657,7 +6761,7 @@ var ga = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
6657
6761
|
})]
|
|
6658
6762
|
});
|
|
6659
6763
|
});
|
|
6660
|
-
function
|
|
6764
|
+
function ya({ enabled: e, open: t, id: n, children: r }) {
|
|
6661
6765
|
return e ? /* @__PURE__ */ m("div", {
|
|
6662
6766
|
className: "select-table__collapse",
|
|
6663
6767
|
id: n,
|
|
@@ -6669,7 +6773,7 @@ function _a({ enabled: e, open: t, id: n, children: r }) {
|
|
|
6669
6773
|
})
|
|
6670
6774
|
}) : /* @__PURE__ */ m(p, { children: r });
|
|
6671
6775
|
}
|
|
6672
|
-
var
|
|
6776
|
+
var ba = r(function({ name: e, secondary: t, src: n, badge: r, className: i, ...a }, o) {
|
|
6673
6777
|
return /* @__PURE__ */ h("span", {
|
|
6674
6778
|
ref: o,
|
|
6675
6779
|
...a,
|
|
@@ -6695,7 +6799,7 @@ var va = r(function({ name: e, secondary: t, src: n, badge: r, className: i, ...
|
|
|
6695
6799
|
})]
|
|
6696
6800
|
});
|
|
6697
6801
|
});
|
|
6698
|
-
function
|
|
6802
|
+
function xa({ children: e, onClick: t, expanded: n, nested: r = !1 }) {
|
|
6699
6803
|
let i = `select-table__row${t ? " select-table__row--clickable" : ""}${r ? " select-table__row--nested" : ""}${n ? " is-expanded" : ""}`;
|
|
6700
6804
|
return t ? /* @__PURE__ */ m("button", {
|
|
6701
6805
|
type: "button",
|
|
@@ -6709,7 +6813,7 @@ function ya({ children: e, onClick: t, expanded: n, nested: r = !1 }) {
|
|
|
6709
6813
|
children: e
|
|
6710
6814
|
});
|
|
6711
6815
|
}
|
|
6712
|
-
var
|
|
6816
|
+
var Sa = r(function({ children: e, align: t = "start", disclosure: n, className: r, ...i }, a) {
|
|
6713
6817
|
return /* @__PURE__ */ h("div", {
|
|
6714
6818
|
ref: a,
|
|
6715
6819
|
...i,
|
|
@@ -6721,7 +6825,7 @@ var ba = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6721
6825
|
children: n !== "none" && /* @__PURE__ */ m(U, {})
|
|
6722
6826
|
}) : null, e]
|
|
6723
6827
|
});
|
|
6724
|
-
}),
|
|
6828
|
+
}), Ca = r(function({ icon: e, title: t, subtitle: n, action: r, className: i, ...a }, o) {
|
|
6725
6829
|
return /* @__PURE__ */ h("div", {
|
|
6726
6830
|
ref: o,
|
|
6727
6831
|
...a,
|
|
@@ -6745,7 +6849,7 @@ var ba = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6745
6849
|
})
|
|
6746
6850
|
]
|
|
6747
6851
|
});
|
|
6748
|
-
}),
|
|
6852
|
+
}), wa = r(function({ children: e, className: t, ...n }, r) {
|
|
6749
6853
|
return /* @__PURE__ */ m("div", {
|
|
6750
6854
|
ref: r,
|
|
6751
6855
|
...n,
|
|
@@ -6754,7 +6858,7 @@ var ba = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6754
6858
|
children: e
|
|
6755
6859
|
});
|
|
6756
6860
|
});
|
|
6757
|
-
function
|
|
6861
|
+
function Ta({ children: e, description: t }) {
|
|
6758
6862
|
return t == null || t === "" ? /* @__PURE__ */ m("span", {
|
|
6759
6863
|
className: "select-menu__label",
|
|
6760
6864
|
children: e
|
|
@@ -6769,7 +6873,7 @@ function Ca({ children: e, description: t }) {
|
|
|
6769
6873
|
})]
|
|
6770
6874
|
});
|
|
6771
6875
|
}
|
|
6772
|
-
var
|
|
6876
|
+
var Ea = r(function({ children: e, description: t, icon: n, trailing: r, onClick: i, active: a = !1, tone: o = "default", className: s, ...c }, l) {
|
|
6773
6877
|
return /* @__PURE__ */ h("button", {
|
|
6774
6878
|
ref: l,
|
|
6775
6879
|
...c,
|
|
@@ -6782,7 +6886,7 @@ var wa = r(function({ children: e, description: t, icon: n, trailing: r, onClick
|
|
|
6782
6886
|
className: "select-menu__icon",
|
|
6783
6887
|
children: n
|
|
6784
6888
|
}),
|
|
6785
|
-
/* @__PURE__ */ m(
|
|
6889
|
+
/* @__PURE__ */ m(Ta, {
|
|
6786
6890
|
description: t,
|
|
6787
6891
|
children: e
|
|
6788
6892
|
}),
|
|
@@ -6792,8 +6896,8 @@ var wa = r(function({ children: e, description: t, icon: n, trailing: r, onClick
|
|
|
6792
6896
|
})
|
|
6793
6897
|
]
|
|
6794
6898
|
});
|
|
6795
|
-
}),
|
|
6796
|
-
let u =
|
|
6899
|
+
}), Da = r(function({ children: e, description: t, href: n, icon: r, trailing: i, external: a, tone: o = "default", className: s, ...c }, l) {
|
|
6900
|
+
let u = Ei(n), d = a ?? /^(https?:|mailto:|tel:)/i.test(u ?? ""), f = i ?? (d ? /* @__PURE__ */ m(q, {}) : void 0);
|
|
6797
6901
|
return /* @__PURE__ */ h("a", {
|
|
6798
6902
|
ref: l,
|
|
6799
6903
|
...c,
|
|
@@ -6807,7 +6911,7 @@ var wa = r(function({ children: e, description: t, icon: n, trailing: r, onClick
|
|
|
6807
6911
|
className: "select-menu__icon",
|
|
6808
6912
|
children: r
|
|
6809
6913
|
}),
|
|
6810
|
-
/* @__PURE__ */ m(
|
|
6914
|
+
/* @__PURE__ */ m(Ta, {
|
|
6811
6915
|
description: t,
|
|
6812
6916
|
children: e
|
|
6813
6917
|
}),
|
|
@@ -6818,19 +6922,19 @@ var wa = r(function({ children: e, description: t, icon: n, trailing: r, onClick
|
|
|
6818
6922
|
]
|
|
6819
6923
|
});
|
|
6820
6924
|
});
|
|
6821
|
-
function
|
|
6925
|
+
function Oa({ children: e }) {
|
|
6822
6926
|
return /* @__PURE__ */ m("div", {
|
|
6823
6927
|
className: "select-menu__heading",
|
|
6824
6928
|
children: e
|
|
6825
6929
|
});
|
|
6826
6930
|
}
|
|
6827
|
-
function
|
|
6931
|
+
function ka() {
|
|
6828
6932
|
return /* @__PURE__ */ m("div", {
|
|
6829
6933
|
className: "select-menu__divider",
|
|
6830
6934
|
role: "separator"
|
|
6831
6935
|
});
|
|
6832
6936
|
}
|
|
6833
|
-
var
|
|
6937
|
+
var Aa = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
|
|
6834
6938
|
return /* @__PURE__ */ h("button", {
|
|
6835
6939
|
ref: a,
|
|
6836
6940
|
...i,
|
|
@@ -6845,7 +6949,7 @@ var Oa = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6845
6949
|
children: /* @__PURE__ */ m(W, {})
|
|
6846
6950
|
})]
|
|
6847
6951
|
});
|
|
6848
|
-
}),
|
|
6952
|
+
}), ja = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
|
|
6849
6953
|
return /* @__PURE__ */ h("button", {
|
|
6850
6954
|
ref: a,
|
|
6851
6955
|
...i,
|
|
@@ -6858,8 +6962,8 @@ var Oa = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6858
6962
|
children: /* @__PURE__ */ m(Me, {})
|
|
6859
6963
|
}), e]
|
|
6860
6964
|
});
|
|
6861
|
-
}),
|
|
6862
|
-
let [s, c] = d(!1), l =
|
|
6965
|
+
}), Ma = r(function({ label: e, value: t, href: n, onCopy: r, className: i, ...a }, o) {
|
|
6966
|
+
let [s, c] = d(!1), l = Ei(n), u = () => {
|
|
6863
6967
|
navigator.clipboard.writeText(t).then(() => {
|
|
6864
6968
|
c(!0), setTimeout(() => c(!1), 1200), r == null || r(t);
|
|
6865
6969
|
});
|
|
@@ -6898,15 +7002,15 @@ var Oa = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6898
7002
|
});
|
|
6899
7003
|
//#endregion
|
|
6900
7004
|
//#region src/SelectCodeBlock.tsx
|
|
6901
|
-
function
|
|
7005
|
+
function Na(e) {
|
|
6902
7006
|
try {
|
|
6903
7007
|
return JSON.stringify(JSON.parse(e), null, 2);
|
|
6904
7008
|
} catch {
|
|
6905
7009
|
return e;
|
|
6906
7010
|
}
|
|
6907
7011
|
}
|
|
6908
|
-
var
|
|
6909
|
-
let [u, f] = d(!1), p = n ?
|
|
7012
|
+
var Pa = r(function({ value: e, label: t, pretty: n = !1, maxHeight: r = 14, copyable: i = !0, tone: a = "neutral", className: o, style: s, ...c }, l) {
|
|
7013
|
+
let [u, f] = d(!1), p = n ? Na(e) : e, g = () => {
|
|
6910
7014
|
var e;
|
|
6911
7015
|
(e = navigator.clipboard) == null || e.writeText(p).then(() => {
|
|
6912
7016
|
f(!0), setTimeout(() => f(!1), 1200);
|
|
@@ -6940,10 +7044,10 @@ var Ma = r(function({ value: e, label: t, pretty: n = !1, maxHeight: r = 14, cop
|
|
|
6940
7044
|
});
|
|
6941
7045
|
//#endregion
|
|
6942
7046
|
//#region src/SelectCopyableId.tsx
|
|
6943
|
-
function
|
|
7047
|
+
function Fa({ value: e, children: t, truncate: n, label: r, fallback: i = "—", to: a, reveal: o = "hover", variant: s = "inline" }) {
|
|
6944
7048
|
let c = s === "code", l = r ?? (c ? "Copiar código" : "Copiar id"), [u, f] = d(!1);
|
|
6945
7049
|
if (!e) return /* @__PURE__ */ m(p, { children: i });
|
|
6946
|
-
let g = t ?? (n ? e.slice(0, n) : e), v =
|
|
7050
|
+
let g = t ?? (n ? e.slice(0, n) : e), v = Ei(a);
|
|
6947
7051
|
return /* @__PURE__ */ h("span", {
|
|
6948
7052
|
className: `select-copyid${o === "always" || c ? " select-copyid--always" : ""}${c ? " select-copyid--code" : ""}`,
|
|
6949
7053
|
children: [v ? /* @__PURE__ */ m(_, {
|
|
@@ -6972,7 +7076,7 @@ function Na({ value: e, children: t, truncate: n, label: r, fallback: i = "—",
|
|
|
6972
7076
|
}
|
|
6973
7077
|
//#endregion
|
|
6974
7078
|
//#region src/SelectCollapsible.tsx
|
|
6975
|
-
var
|
|
7079
|
+
var Ia = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1, className: i, ...a }, o) {
|
|
6976
7080
|
let [s, c] = d(n);
|
|
6977
7081
|
return /* @__PURE__ */ h("div", {
|
|
6978
7082
|
ref: o,
|
|
@@ -7003,7 +7107,7 @@ var Pa = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
7003
7107
|
})
|
|
7004
7108
|
})]
|
|
7005
7109
|
});
|
|
7006
|
-
}),
|
|
7110
|
+
}), La = r(function({ icon: e, title: t, description: n, action: r, onDismiss: i, className: a, ...o }, s) {
|
|
7007
7111
|
return /* @__PURE__ */ h("div", {
|
|
7008
7112
|
ref: s,
|
|
7009
7113
|
...o,
|
|
@@ -7038,7 +7142,7 @@ var Pa = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
7038
7142
|
})
|
|
7039
7143
|
]
|
|
7040
7144
|
});
|
|
7041
|
-
}),
|
|
7145
|
+
}), Ra = r(function({ media: e, sublabel: t, title: n, badge: r, meta: i, accent: a = !0, onClick: o, className: s, ...c }, l) {
|
|
7042
7146
|
return /* @__PURE__ */ h("button", {
|
|
7043
7147
|
ref: l,
|
|
7044
7148
|
...c,
|
|
@@ -7075,7 +7179,7 @@ var Pa = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
7075
7179
|
})
|
|
7076
7180
|
]
|
|
7077
7181
|
});
|
|
7078
|
-
}),
|
|
7182
|
+
}), za = r(function({ label: e, onClick: t, className: n, ...r }, i) {
|
|
7079
7183
|
return /* @__PURE__ */ h("button", {
|
|
7080
7184
|
ref: i,
|
|
7081
7185
|
...r,
|
|
@@ -7091,7 +7195,7 @@ var Pa = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
7091
7195
|
children: e
|
|
7092
7196
|
})]
|
|
7093
7197
|
});
|
|
7094
|
-
}),
|
|
7198
|
+
}), Ba = r(function({ avatar: e, name: t, badge: n, onClick: r, className: i, ...a }, o) {
|
|
7095
7199
|
return /* @__PURE__ */ h("button", {
|
|
7096
7200
|
ref: o,
|
|
7097
7201
|
...a,
|
|
@@ -7116,8 +7220,8 @@ var Pa = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
7116
7220
|
})
|
|
7117
7221
|
]
|
|
7118
7222
|
});
|
|
7119
|
-
}),
|
|
7120
|
-
function
|
|
7223
|
+
}), Va = 220;
|
|
7224
|
+
function Ha({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a, aside: s, size: c = "md", showClose: l = !0, noise: u = !0, dividedHeader: f = !1, backdrop: _ = "dim", theme: v = "light", placement: y = "center" }) {
|
|
7121
7225
|
let [b, x] = d(e), [S, C] = d(!1);
|
|
7122
7226
|
if (o(() => {
|
|
7123
7227
|
if (e) x(!0), C(!1);
|
|
@@ -7125,7 +7229,7 @@ function Ba({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
7125
7229
|
C(!0);
|
|
7126
7230
|
let e = setTimeout(() => {
|
|
7127
7231
|
x(!1), C(!1);
|
|
7128
|
-
},
|
|
7232
|
+
}, Va);
|
|
7129
7233
|
return () => clearTimeout(e);
|
|
7130
7234
|
}
|
|
7131
7235
|
}, [e, b]), o(() => {
|
|
@@ -7203,7 +7307,7 @@ function Ba({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
7203
7307
|
}
|
|
7204
7308
|
//#endregion
|
|
7205
7309
|
//#region src/SelectRowActions.tsx
|
|
7206
|
-
function
|
|
7310
|
+
function Ua({ actions: e, label: t = "Ações" }) {
|
|
7207
7311
|
let [n, r] = d(!1);
|
|
7208
7312
|
return /* @__PURE__ */ m(Fn, {
|
|
7209
7313
|
active: n,
|
|
@@ -7225,8 +7329,8 @@ function Va({ actions: e, label: t = "Ações" }) {
|
|
|
7225
7329
|
}
|
|
7226
7330
|
//#endregion
|
|
7227
7331
|
//#region src/SelectConfirmModal.tsx
|
|
7228
|
-
function
|
|
7229
|
-
return /* @__PURE__ */ m(
|
|
7332
|
+
function Wa({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmLabel: a = "Confirmar", cancelLabel: o = "Cancelar", destructive: s = !1, loading: c = !1, theme: l }) {
|
|
7333
|
+
return /* @__PURE__ */ m(Ha, {
|
|
7230
7334
|
open: e,
|
|
7231
7335
|
onClose: t,
|
|
7232
7336
|
title: r,
|
|
@@ -7255,8 +7359,8 @@ function Ha({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
7255
7359
|
}
|
|
7256
7360
|
//#endregion
|
|
7257
7361
|
//#region src/SelectFormModal.tsx
|
|
7258
|
-
function
|
|
7259
|
-
return /* @__PURE__ */ h(
|
|
7362
|
+
function Ga({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children: a, submitLabel: o = "Salvar", cancelLabel: s = "Cancelar", submitting: c = !1, submitDisabled: l = !1, submitVariant: u = "primary", error: d, size: f = "md", theme: p }) {
|
|
7363
|
+
return /* @__PURE__ */ h(Ha, {
|
|
7260
7364
|
open: e,
|
|
7261
7365
|
onClose: t,
|
|
7262
7366
|
title: r,
|
|
@@ -7298,7 +7402,7 @@ function Ua({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
7298
7402
|
}
|
|
7299
7403
|
//#endregion
|
|
7300
7404
|
//#region src/internal/useMatchMedia.ts
|
|
7301
|
-
function
|
|
7405
|
+
function Ka(e) {
|
|
7302
7406
|
let [t, n] = d(() => e && typeof window < "u" && window.matchMedia ? window.matchMedia(e).matches : !1);
|
|
7303
7407
|
return o(() => {
|
|
7304
7408
|
var t;
|
|
@@ -7312,30 +7416,30 @@ function Wa(e) {
|
|
|
7312
7416
|
}
|
|
7313
7417
|
//#endregion
|
|
7314
7418
|
//#region src/SelectDataTable.tsx
|
|
7315
|
-
var
|
|
7419
|
+
var qa = "9.5rem", Ja = {
|
|
7316
7420
|
minWidth: "9.5rem",
|
|
7317
7421
|
grow: 2
|
|
7318
|
-
},
|
|
7319
|
-
function
|
|
7422
|
+
}, Ya = "select-datatable:hidden-cols:";
|
|
7423
|
+
function Xa(e) {
|
|
7320
7424
|
try {
|
|
7321
|
-
let t = localStorage.getItem(
|
|
7425
|
+
let t = localStorage.getItem(Ya + e), n = t ? JSON.parse(t) : null;
|
|
7322
7426
|
return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
|
|
7323
7427
|
} catch {
|
|
7324
7428
|
return [];
|
|
7325
7429
|
}
|
|
7326
7430
|
}
|
|
7327
|
-
function
|
|
7431
|
+
function Za(e, t) {
|
|
7328
7432
|
try {
|
|
7329
|
-
t.length === 0 ? localStorage.removeItem(
|
|
7433
|
+
t.length === 0 ? localStorage.removeItem(Ya + e) : localStorage.setItem(Ya + e, JSON.stringify(t));
|
|
7330
7434
|
} catch {}
|
|
7331
7435
|
}
|
|
7332
|
-
function
|
|
7436
|
+
function Qa(e) {
|
|
7333
7437
|
return e.hideable ?? !!e.title;
|
|
7334
7438
|
}
|
|
7335
|
-
var
|
|
7336
|
-
function
|
|
7439
|
+
var $a = "select-datatable:col-widths:";
|
|
7440
|
+
function eo(e) {
|
|
7337
7441
|
try {
|
|
7338
|
-
let t = localStorage.getItem(
|
|
7442
|
+
let t = localStorage.getItem($a + e), n = t ? JSON.parse(t) : null;
|
|
7339
7443
|
if (!n || typeof n != "object" || Array.isArray(n)) return {};
|
|
7340
7444
|
let r = {};
|
|
7341
7445
|
for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
|
|
@@ -7344,16 +7448,16 @@ function Qa(e) {
|
|
|
7344
7448
|
return {};
|
|
7345
7449
|
}
|
|
7346
7450
|
}
|
|
7347
|
-
function
|
|
7451
|
+
function to(e, t) {
|
|
7348
7452
|
try {
|
|
7349
|
-
Object.keys(t).length === 0 ? localStorage.removeItem(
|
|
7453
|
+
Object.keys(t).length === 0 ? localStorage.removeItem($a + e) : localStorage.setItem($a + e, JSON.stringify(t));
|
|
7350
7454
|
} catch {}
|
|
7351
7455
|
}
|
|
7352
|
-
var
|
|
7353
|
-
function
|
|
7456
|
+
var no = "select-datatable:page-size:";
|
|
7457
|
+
function ro(e, t, n) {
|
|
7354
7458
|
let [r, i] = d(() => {
|
|
7355
7459
|
try {
|
|
7356
|
-
let r = Number(localStorage.getItem(
|
|
7460
|
+
let r = Number(localStorage.getItem(no + e));
|
|
7357
7461
|
return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
|
|
7358
7462
|
} catch {
|
|
7359
7463
|
return t;
|
|
@@ -7362,25 +7466,25 @@ function to(e, t, n) {
|
|
|
7362
7466
|
return [r, (t) => {
|
|
7363
7467
|
i(t);
|
|
7364
7468
|
try {
|
|
7365
|
-
localStorage.setItem(
|
|
7469
|
+
localStorage.setItem(no + e, String(t));
|
|
7366
7470
|
} catch {}
|
|
7367
7471
|
}];
|
|
7368
7472
|
}
|
|
7369
|
-
function
|
|
7473
|
+
function io(e, t, n) {
|
|
7370
7474
|
let r = e == null || e === "", i = t == null || t === "";
|
|
7371
7475
|
return r || i ? r && i ? 0 : r ? 1 : -1 : typeof e == "number" && typeof t == "number" ? n * (e - t) : n * String(e).localeCompare(String(t), "pt-BR", {
|
|
7372
7476
|
numeric: !0,
|
|
7373
7477
|
sensitivity: "base"
|
|
7374
7478
|
});
|
|
7375
7479
|
}
|
|
7376
|
-
function
|
|
7377
|
-
let [S, C] = d(() => g ?
|
|
7480
|
+
function ao({ 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 }) {
|
|
7481
|
+
let [S, C] = d(() => g ? Xa(g) : []), [w, T] = d(!1), E = Ka(y ? b : void 0) && y != null, D = e.some((e) => e.wrap), [O, k] = d(() => g ? eo(g) : {}), A = l(() => new Set(S), [S]), j = e.filter(Qa), M = j.length > 0 && j.every((e) => A.has(e.key)), N = (e) => !M && A.has(e.key) && Qa(e), P = e.filter((e) => !N(e)), F = j.filter((e) => !N(e)), [I, L] = d(null), [ee, te] = d(() => /* @__PURE__ */ new Set()), ne = (e) => ((v == null ? void 0 : v(e)) ?? !1) !== ee.has(n(e)), R = (e) => te((t) => {
|
|
7378
7482
|
let r = new Set(t), i = n(e);
|
|
7379
7483
|
return r.delete(i) || r.add(i), r;
|
|
7380
7484
|
}), z = (e) => {
|
|
7381
7485
|
C((t) => {
|
|
7382
7486
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
7383
|
-
return g &&
|
|
7487
|
+
return g && Za(g, r), n && L((t) => t && t.key === e.key ? null : t), r;
|
|
7384
7488
|
});
|
|
7385
7489
|
}, B = (e) => {
|
|
7386
7490
|
L((t) => {
|
|
@@ -7397,7 +7501,7 @@ function ro({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7397
7501
|
let e = V == null ? void 0 : V.sortValue;
|
|
7398
7502
|
if (!I || !e) return (e) => e;
|
|
7399
7503
|
let t = I.dir === "asc" ? 1 : -1;
|
|
7400
|
-
return (n) => [...n].sort((n, r) =>
|
|
7504
|
+
return (n) => [...n].sort((n, r) => io(e(n), e(r), t));
|
|
7401
7505
|
}, [I, V]), re = l(() => H(t), [t, H]), ie = (e) => (_ == null ? void 0 : _(e)) ?? [], U = !!_ && t.some((e) => ie(e).length > 0), ae = E ? [{
|
|
7402
7506
|
label: "",
|
|
7403
7507
|
grow: 1
|
|
@@ -7415,11 +7519,11 @@ function ro({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7415
7519
|
let n = P[e];
|
|
7416
7520
|
n && k((e) => {
|
|
7417
7521
|
let r = { ...e };
|
|
7418
|
-
return t ? r[n.key] = t : delete r[n.key], g &&
|
|
7522
|
+
return t ? r[n.key] = t : delete r[n.key], g && to(g, r), r;
|
|
7419
7523
|
});
|
|
7420
7524
|
}, G = () => {
|
|
7421
|
-
k({}), g &&
|
|
7422
|
-
}, K = Object.keys(O).length > 0, oe = !r && i ? /* @__PURE__ */ m(
|
|
7525
|
+
k({}), g && to(g, {});
|
|
7526
|
+
}, K = Object.keys(O).length > 0, oe = !r && i ? /* @__PURE__ */ m(Ca, {
|
|
7423
7527
|
icon: i.icon,
|
|
7424
7528
|
title: i.heading,
|
|
7425
7529
|
subtitle: i.text,
|
|
@@ -7475,7 +7579,7 @@ function ro({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7475
7579
|
}) : null;
|
|
7476
7580
|
return /* @__PURE__ */ h("div", {
|
|
7477
7581
|
className: "select-datatable",
|
|
7478
|
-
children: [/* @__PURE__ */ m(
|
|
7582
|
+
children: [/* @__PURE__ */ m(va, {
|
|
7479
7583
|
columns: ae,
|
|
7480
7584
|
empty: oe,
|
|
7481
7585
|
title: s,
|
|
@@ -7487,21 +7591,21 @@ function ro({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7487
7591
|
className: E ? "select-table--compact" : void 0,
|
|
7488
7592
|
onColumnResize: E ? void 0 : (e, t) => W(e, t),
|
|
7489
7593
|
onColumnResizeReset: E ? void 0 : (e) => W(e, null),
|
|
7490
|
-
children: E && y ? r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(
|
|
7594
|
+
children: E && y ? r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(xa, { children: /* @__PURE__ */ m(Sa, { children: /* @__PURE__ */ m("span", { className: "select-skeleton select-datatable__skel" }) }) }, `skeleton-${t}`)) : re.map((e) => /* @__PURE__ */ m(xa, {
|
|
7491
7595
|
onClick: x ?? o ? () => (x ?? o)(e) : void 0,
|
|
7492
|
-
children: /* @__PURE__ */ m(
|
|
7596
|
+
children: /* @__PURE__ */ m(Sa, {
|
|
7493
7597
|
className: D ? "select-table__td--wrap" : void 0,
|
|
7494
7598
|
children: y(e)
|
|
7495
7599
|
})
|
|
7496
|
-
}, n(e))) : r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(
|
|
7600
|
+
}, n(e))) : r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(xa, { children: P.map((e, t) => /* @__PURE__ */ m(Sa, {
|
|
7497
7601
|
align: e.align,
|
|
7498
7602
|
width: e.width,
|
|
7499
7603
|
children: /* @__PURE__ */ m("span", { className: "select-skeleton select-datatable__skel" })
|
|
7500
7604
|
}, t)) }, `skeleton-${t}`)) : re.flatMap((e) => {
|
|
7501
7605
|
let t = ie(e);
|
|
7502
|
-
if (t.length === 0) return [/* @__PURE__ */ m(
|
|
7606
|
+
if (t.length === 0) return [/* @__PURE__ */ m(xa, {
|
|
7503
7607
|
onClick: o ? () => o(e) : void 0,
|
|
7504
|
-
children: P.map((t, n) => /* @__PURE__ */ m(
|
|
7608
|
+
children: P.map((t, n) => /* @__PURE__ */ m(Sa, {
|
|
7505
7609
|
align: t.align,
|
|
7506
7610
|
width: t.width,
|
|
7507
7611
|
className: t.wrap ? "select-table__td--wrap" : void 0,
|
|
@@ -7510,32 +7614,32 @@ function ro({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7510
7614
|
}, n))
|
|
7511
7615
|
}, n(e))];
|
|
7512
7616
|
let r = ne(e);
|
|
7513
|
-
return [/* @__PURE__ */ m(
|
|
7617
|
+
return [/* @__PURE__ */ m(xa, {
|
|
7514
7618
|
onClick: () => R(e),
|
|
7515
7619
|
expanded: r,
|
|
7516
|
-
children: P.map((t, n) => /* @__PURE__ */ m(
|
|
7620
|
+
children: P.map((t, n) => /* @__PURE__ */ m(Sa, {
|
|
7517
7621
|
align: t.align,
|
|
7518
7622
|
width: t.width,
|
|
7519
7623
|
className: t.wrap ? "select-table__td--wrap" : void 0,
|
|
7520
7624
|
disclosure: n === 0 ? r ? "open" : "closed" : void 0,
|
|
7521
7625
|
children: t.render(e)
|
|
7522
7626
|
}, n))
|
|
7523
|
-
}, n(e)), ...r ? H(t).map((t) => /* @__PURE__ */ m(
|
|
7627
|
+
}, n(e)), ...r ? H(t).map((t) => /* @__PURE__ */ m(xa, {
|
|
7524
7628
|
nested: !0,
|
|
7525
7629
|
onClick: o ? () => o(t) : void 0,
|
|
7526
|
-
children: P.map((e, n) => /* @__PURE__ */ m(
|
|
7630
|
+
children: P.map((e, n) => /* @__PURE__ */ m(Sa, {
|
|
7527
7631
|
align: e.align,
|
|
7528
7632
|
width: e.width,
|
|
7529
7633
|
children: e.render(t)
|
|
7530
7634
|
}, n))
|
|
7531
7635
|
}, `${n(e)}/${n(t)}`)) : []];
|
|
7532
7636
|
})
|
|
7533
|
-
}), a && /* @__PURE__ */ m(
|
|
7637
|
+
}), a && /* @__PURE__ */ m(pa, { pagination: a })]
|
|
7534
7638
|
});
|
|
7535
7639
|
}
|
|
7536
7640
|
//#endregion
|
|
7537
7641
|
//#region src/SelectAddCard.tsx
|
|
7538
|
-
var
|
|
7642
|
+
var oo = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
|
|
7539
7643
|
return /* @__PURE__ */ h("button", {
|
|
7540
7644
|
ref: o,
|
|
7541
7645
|
...a,
|
|
@@ -7561,8 +7665,8 @@ var io = r(function({ label: e, description: t, onClick: n, icon: r, className:
|
|
|
7561
7665
|
});
|
|
7562
7666
|
//#endregion
|
|
7563
7667
|
//#region src/SelectCardGrid.tsx
|
|
7564
|
-
function
|
|
7565
|
-
let v = !r && e.length === 0 && a != null, { hasTitleRow: y, hasFilters: b } =
|
|
7668
|
+
function so({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount: i = 6, empty: a, pagination: o, create: s, minCardWidth: c = "16rem", skeletonCover: l = !1, title: u, help: d, description: f, action: p, filters: g, tools: _ }) {
|
|
7669
|
+
let v = !r && e.length === 0 && a != null, { hasTitleRow: y, hasFilters: b } = ua({
|
|
7566
7670
|
title: u,
|
|
7567
7671
|
description: f,
|
|
7568
7672
|
action: p,
|
|
@@ -7574,7 +7678,7 @@ function ao({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
7574
7678
|
children: [
|
|
7575
7679
|
(y || b) && /* @__PURE__ */ m("div", {
|
|
7576
7680
|
className: "select-cardgrid__chrome",
|
|
7577
|
-
children: /* @__PURE__ */ m(
|
|
7681
|
+
children: /* @__PURE__ */ m(da, {
|
|
7578
7682
|
title: u,
|
|
7579
7683
|
help: d,
|
|
7580
7684
|
description: f,
|
|
@@ -7585,7 +7689,7 @@ function ao({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
7585
7689
|
}),
|
|
7586
7690
|
v ? /* @__PURE__ */ m("div", {
|
|
7587
7691
|
className: "select-cardgrid__empty",
|
|
7588
|
-
children: /* @__PURE__ */ m(
|
|
7692
|
+
children: /* @__PURE__ */ m(Ca, {
|
|
7589
7693
|
icon: a.icon,
|
|
7590
7694
|
title: a.heading,
|
|
7591
7695
|
subtitle: a.text,
|
|
@@ -7617,21 +7721,21 @@ function ao({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
7617
7721
|
}, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ m("div", {
|
|
7618
7722
|
className: "select-cardgrid__item",
|
|
7619
7723
|
children: n(e)
|
|
7620
|
-
}, t(e))), !r && s && /* @__PURE__ */ m(
|
|
7724
|
+
}, t(e))), !r && s && /* @__PURE__ */ m(oo, {
|
|
7621
7725
|
label: s.label,
|
|
7622
7726
|
description: s.description,
|
|
7623
7727
|
onClick: s.onAction,
|
|
7624
7728
|
disabled: s.disabled
|
|
7625
7729
|
})]
|
|
7626
7730
|
}),
|
|
7627
|
-
o && /* @__PURE__ */ m(
|
|
7731
|
+
o && /* @__PURE__ */ m(pa, { pagination: o })
|
|
7628
7732
|
]
|
|
7629
7733
|
});
|
|
7630
7734
|
}
|
|
7631
7735
|
//#endregion
|
|
7632
7736
|
//#region src/SelectRecordCard.tsx
|
|
7633
|
-
var
|
|
7634
|
-
let v = o != null || s != null, y =
|
|
7737
|
+
var co = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags: a, status: o, meta: s, to: c, accent: l = !1, cover: u, coverFallback: d, className: f, ...p }, g) {
|
|
7738
|
+
let v = o != null || s != null, y = Ei(c);
|
|
7635
7739
|
return /* @__PURE__ */ h("div", {
|
|
7636
7740
|
ref: g,
|
|
7637
7741
|
...p,
|
|
@@ -7641,7 +7745,7 @@ var oo = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
|
|
|
7641
7745
|
className: "select-rcard__accent",
|
|
7642
7746
|
"aria-hidden": "true"
|
|
7643
7747
|
}),
|
|
7644
|
-
u !== void 0 && /* @__PURE__ */ m(
|
|
7748
|
+
u !== void 0 && /* @__PURE__ */ m(lo, {
|
|
7645
7749
|
src: u,
|
|
7646
7750
|
fallback: d
|
|
7647
7751
|
}),
|
|
@@ -7701,7 +7805,7 @@ var oo = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
|
|
|
7701
7805
|
]
|
|
7702
7806
|
});
|
|
7703
7807
|
});
|
|
7704
|
-
function
|
|
7808
|
+
function lo({ src: e, fallback: t }) {
|
|
7705
7809
|
let [n, r] = d(!1);
|
|
7706
7810
|
return o(() => r(!1), [e]), /* @__PURE__ */ m("span", {
|
|
7707
7811
|
className: "select-rcard__cover",
|
|
@@ -7717,7 +7821,7 @@ function so({ src: e, fallback: t }) {
|
|
|
7717
7821
|
})
|
|
7718
7822
|
});
|
|
7719
7823
|
}
|
|
7720
|
-
var
|
|
7824
|
+
var uo = r(function({ kind: e, className: t, ...n }, r) {
|
|
7721
7825
|
return /* @__PURE__ */ h("span", {
|
|
7722
7826
|
ref: r,
|
|
7723
7827
|
...n,
|
|
@@ -7735,18 +7839,18 @@ var co = r(function({ kind: e, className: t, ...n }, r) {
|
|
|
7735
7839
|
});
|
|
7736
7840
|
//#endregion
|
|
7737
7841
|
//#region src/SelectSplitChain.tsx
|
|
7738
|
-
function
|
|
7842
|
+
function fo(e) {
|
|
7739
7843
|
var t;
|
|
7740
7844
|
return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
|
|
7741
7845
|
}
|
|
7742
|
-
function
|
|
7846
|
+
function po({ node: e, origin: t = !1 }) {
|
|
7743
7847
|
return /* @__PURE__ */ h("span", {
|
|
7744
7848
|
className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
|
|
7745
7849
|
children: [
|
|
7746
7850
|
/* @__PURE__ */ m("span", {
|
|
7747
7851
|
className: "select-chain__dot",
|
|
7748
7852
|
"aria-hidden": "true",
|
|
7749
|
-
children:
|
|
7853
|
+
children: fo(e)
|
|
7750
7854
|
}),
|
|
7751
7855
|
/* @__PURE__ */ m("span", {
|
|
7752
7856
|
className: "select-chain__label",
|
|
@@ -7760,16 +7864,16 @@ function uo({ node: e, origin: t = !1 }) {
|
|
|
7760
7864
|
]
|
|
7761
7865
|
});
|
|
7762
7866
|
}
|
|
7763
|
-
var
|
|
7867
|
+
var mo = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
|
|
7764
7868
|
let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ m("span", {
|
|
7765
7869
|
className: "select-chain__link",
|
|
7766
7870
|
"aria-hidden": "true"
|
|
7767
7871
|
}, e);
|
|
7768
|
-
t && c.push(/* @__PURE__ */ m(
|
|
7872
|
+
t && c.push(/* @__PURE__ */ m(po, {
|
|
7769
7873
|
node: t,
|
|
7770
7874
|
origin: !0
|
|
7771
7875
|
}, "__origin"));
|
|
7772
|
-
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ m(
|
|
7876
|
+
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ m(po, { node: e }, e.id));
|
|
7773
7877
|
return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ h("span", {
|
|
7774
7878
|
className: "select-chain__more",
|
|
7775
7879
|
children: ["+", s]
|
|
@@ -7779,43 +7883,43 @@ var fo = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
|
|
|
7779
7883
|
className: `select-chain${r ? " " + r : ""}`,
|
|
7780
7884
|
children: c
|
|
7781
7885
|
});
|
|
7782
|
-
}),
|
|
7886
|
+
}), ho = new Intl.NumberFormat("pt-BR", {
|
|
7783
7887
|
style: "currency",
|
|
7784
7888
|
currency: "BRL"
|
|
7785
7889
|
});
|
|
7786
|
-
function
|
|
7890
|
+
function go(e) {
|
|
7787
7891
|
let t = typeof e == "string" ? Number(e) : e;
|
|
7788
7892
|
return typeof t == "number" && Number.isFinite(t) ? t : 0;
|
|
7789
7893
|
}
|
|
7790
|
-
function
|
|
7791
|
-
return
|
|
7894
|
+
function _o(e) {
|
|
7895
|
+
return ho.format(go(e) / 100);
|
|
7792
7896
|
}
|
|
7793
7897
|
//#endregion
|
|
7794
7898
|
//#region src/SelectMoney.tsx
|
|
7795
|
-
var
|
|
7899
|
+
var vo = "sw:hide-money", yo = {
|
|
7796
7900
|
hidden: !1,
|
|
7797
7901
|
toggle: () => {},
|
|
7798
7902
|
setHidden: () => {}
|
|
7799
|
-
},
|
|
7800
|
-
function
|
|
7903
|
+
}, bo = n(null);
|
|
7904
|
+
function xo() {
|
|
7801
7905
|
try {
|
|
7802
|
-
return localStorage.getItem(
|
|
7906
|
+
return localStorage.getItem(vo) === "1";
|
|
7803
7907
|
} catch {
|
|
7804
7908
|
return !1;
|
|
7805
7909
|
}
|
|
7806
7910
|
}
|
|
7807
|
-
function
|
|
7911
|
+
function So(e) {
|
|
7808
7912
|
try {
|
|
7809
|
-
localStorage.setItem(
|
|
7913
|
+
localStorage.setItem(vo, e ? "1" : "0");
|
|
7810
7914
|
} catch {}
|
|
7811
7915
|
}
|
|
7812
|
-
function
|
|
7813
|
-
let [t, n] = d(
|
|
7814
|
-
n(e),
|
|
7916
|
+
function Co({ children: e }) {
|
|
7917
|
+
let [t, n] = d(xo), r = i((e) => {
|
|
7918
|
+
n(e), So(e);
|
|
7815
7919
|
}, []), a = i(() => {
|
|
7816
7920
|
n((e) => {
|
|
7817
7921
|
let t = !e;
|
|
7818
|
-
return
|
|
7922
|
+
return So(t), t;
|
|
7819
7923
|
});
|
|
7820
7924
|
}, []), o = l(() => ({
|
|
7821
7925
|
hidden: t,
|
|
@@ -7826,16 +7930,16 @@ function xo({ children: e }) {
|
|
|
7826
7930
|
a,
|
|
7827
7931
|
r
|
|
7828
7932
|
]);
|
|
7829
|
-
return /* @__PURE__ */ m(
|
|
7933
|
+
return /* @__PURE__ */ m(bo.Provider, {
|
|
7830
7934
|
value: o,
|
|
7831
7935
|
children: e
|
|
7832
7936
|
});
|
|
7833
7937
|
}
|
|
7834
|
-
function
|
|
7835
|
-
return a(
|
|
7938
|
+
function wo() {
|
|
7939
|
+
return a(bo) ?? yo;
|
|
7836
7940
|
}
|
|
7837
|
-
var
|
|
7838
|
-
let { hidden: a } =
|
|
7941
|
+
var To = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
|
|
7942
|
+
let { hidden: a } = wo();
|
|
7839
7943
|
return /* @__PURE__ */ m("span", {
|
|
7840
7944
|
ref: i,
|
|
7841
7945
|
...r,
|
|
@@ -7844,15 +7948,15 @@ var Co = r(function({ children: e, label: t = "valor oculto", className: n, ...r
|
|
|
7844
7948
|
children: e
|
|
7845
7949
|
});
|
|
7846
7950
|
});
|
|
7847
|
-
function
|
|
7848
|
-
let n =
|
|
7849
|
-
return m(t ?
|
|
7951
|
+
function Eo({ cents: e, sensitive: t = !0 }) {
|
|
7952
|
+
let n = _o(e);
|
|
7953
|
+
return m(t ? To : p, { children: n });
|
|
7850
7954
|
}
|
|
7851
|
-
var
|
|
7955
|
+
var Do = new Intl.NumberFormat("pt-BR", {
|
|
7852
7956
|
signDisplay: "exceptZero",
|
|
7853
7957
|
minimumFractionDigits: 1,
|
|
7854
7958
|
maximumFractionDigits: 1
|
|
7855
|
-
}),
|
|
7959
|
+
}), Oo = r(function({ value: e, invert: t = !1, caption: n, unit: r = "percent", className: i, ...a }, o) {
|
|
7856
7960
|
if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ h("span", {
|
|
7857
7961
|
ref: o,
|
|
7858
7962
|
...a,
|
|
@@ -7868,7 +7972,7 @@ var To = new Intl.NumberFormat("pt-BR", {
|
|
|
7868
7972
|
className: `select-delta__value select-delta__value--${u}`,
|
|
7869
7973
|
children: [
|
|
7870
7974
|
d ? `${d} ` : "",
|
|
7871
|
-
|
|
7975
|
+
Do.format(e),
|
|
7872
7976
|
r === "points" ? " p.p." : "%"
|
|
7873
7977
|
]
|
|
7874
7978
|
}), n != null && /* @__PURE__ */ m("span", {
|
|
@@ -7877,8 +7981,8 @@ var To = new Intl.NumberFormat("pt-BR", {
|
|
|
7877
7981
|
})]
|
|
7878
7982
|
});
|
|
7879
7983
|
});
|
|
7880
|
-
function
|
|
7881
|
-
let { hidden: e, toggle: t } =
|
|
7984
|
+
function ko() {
|
|
7985
|
+
let { hidden: e, toggle: t } = wo();
|
|
7882
7986
|
return /* @__PURE__ */ m(J, {
|
|
7883
7987
|
variant: "outline",
|
|
7884
7988
|
icon: m(e ? Ue : He, {}),
|
|
@@ -7889,7 +7993,7 @@ function Do() {
|
|
|
7889
7993
|
}
|
|
7890
7994
|
//#endregion
|
|
7891
7995
|
//#region src/SelectOfferPrice.tsx
|
|
7892
|
-
var
|
|
7996
|
+
var Ao = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note: i, prefix: a, suffix: o, className: s, ...c }, l) {
|
|
7893
7997
|
let u = Number(e);
|
|
7894
7998
|
if (!Number.isFinite(u)) return null;
|
|
7895
7999
|
let d = Number(t), f = Number.isFinite(d) && d > u, p = f ? Math.round((d - u) / d * 100) : 0;
|
|
@@ -7904,7 +8008,7 @@ var Oo = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
7904
8008
|
}),
|
|
7905
8009
|
/* @__PURE__ */ m("span", {
|
|
7906
8010
|
className: "select-offerprice__now",
|
|
7907
|
-
children: u === 0 && r != null ? r : /* @__PURE__ */ m(
|
|
8011
|
+
children: u === 0 && r != null ? r : /* @__PURE__ */ m(Eo, { cents: u })
|
|
7908
8012
|
}),
|
|
7909
8013
|
o != null && /* @__PURE__ */ m("span", {
|
|
7910
8014
|
className: "select-offerprice__per",
|
|
@@ -7912,7 +8016,7 @@ var Oo = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
7912
8016
|
}),
|
|
7913
8017
|
f && /* @__PURE__ */ m("s", {
|
|
7914
8018
|
className: "select-offerprice__was",
|
|
7915
|
-
children: /* @__PURE__ */ m(
|
|
8019
|
+
children: /* @__PURE__ */ m(Eo, { cents: d })
|
|
7916
8020
|
}),
|
|
7917
8021
|
f && !n && p > 0 && /* @__PURE__ */ h("span", {
|
|
7918
8022
|
className: "select-offerprice__off",
|
|
@@ -7931,7 +8035,7 @@ var Oo = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
7931
8035
|
});
|
|
7932
8036
|
//#endregion
|
|
7933
8037
|
//#region src/SelectRating.tsx
|
|
7934
|
-
function
|
|
8038
|
+
function jo({ size: e }) {
|
|
7935
8039
|
return /* @__PURE__ */ m("svg", {
|
|
7936
8040
|
width: e,
|
|
7937
8041
|
height: e,
|
|
@@ -7943,7 +8047,7 @@ function ko({ size: e }) {
|
|
|
7943
8047
|
})
|
|
7944
8048
|
});
|
|
7945
8049
|
}
|
|
7946
|
-
var
|
|
8050
|
+
var Mo = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i, disabled: a = !1, className: o, ...s }, c) {
|
|
7947
8051
|
let l = !!n && !a, [u, f] = d(null), p = u ?? e;
|
|
7948
8052
|
return /* @__PURE__ */ m("div", {
|
|
7949
8053
|
ref: c,
|
|
@@ -7958,7 +8062,7 @@ var Ao = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7958
8062
|
children: Array.from({ length: t }, (e, t) => {
|
|
7959
8063
|
let i = /* @__PURE__ */ m("span", {
|
|
7960
8064
|
className: `select-rating__star${t < p ? " is-filled" : ""}`,
|
|
7961
|
-
children: /* @__PURE__ */ m(
|
|
8065
|
+
children: /* @__PURE__ */ m(jo, { size: r })
|
|
7962
8066
|
});
|
|
7963
8067
|
return l ? /* @__PURE__ */ m("button", {
|
|
7964
8068
|
type: "button",
|
|
@@ -7972,14 +8076,14 @@ var Ao = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7972
8076
|
}, t) : /* @__PURE__ */ m("span", { children: i }, t);
|
|
7973
8077
|
})
|
|
7974
8078
|
});
|
|
7975
|
-
}),
|
|
8079
|
+
}), No = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
|
|
7976
8080
|
let s = Number(e), c = Number.isFinite(s) && s > 0;
|
|
7977
8081
|
return /* @__PURE__ */ h("div", {
|
|
7978
8082
|
ref: o,
|
|
7979
8083
|
...a,
|
|
7980
8084
|
className: `select-quote${i ? " " + i : ""}`,
|
|
7981
8085
|
children: [
|
|
7982
|
-
c && /* @__PURE__ */ m(
|
|
8086
|
+
c && /* @__PURE__ */ m(Mo, {
|
|
7983
8087
|
value: s,
|
|
7984
8088
|
max: t,
|
|
7985
8089
|
size: 13
|
|
@@ -7994,7 +8098,7 @@ var Ao = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7994
8098
|
})
|
|
7995
8099
|
]
|
|
7996
8100
|
});
|
|
7997
|
-
}),
|
|
8101
|
+
}), Po = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
|
|
7998
8102
|
let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
|
|
7999
8103
|
return /* @__PURE__ */ h("div", {
|
|
8000
8104
|
ref: i,
|
|
@@ -8016,7 +8120,7 @@ var Ao = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
8016
8120
|
children: ["+", o]
|
|
8017
8121
|
})]
|
|
8018
8122
|
});
|
|
8019
|
-
}),
|
|
8123
|
+
}), Fo = [
|
|
8020
8124
|
"Dom",
|
|
8021
8125
|
"Seg",
|
|
8022
8126
|
"Ter",
|
|
@@ -8024,7 +8128,7 @@ var Ao = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
8024
8128
|
"Qui",
|
|
8025
8129
|
"Sex",
|
|
8026
8130
|
"Sáb"
|
|
8027
|
-
],
|
|
8131
|
+
], Io = [
|
|
8028
8132
|
"Janeiro",
|
|
8029
8133
|
"Fevereiro",
|
|
8030
8134
|
"Março",
|
|
@@ -8037,29 +8141,29 @@ var Ao = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
8037
8141
|
"Outubro",
|
|
8038
8142
|
"Novembro",
|
|
8039
8143
|
"Dezembro"
|
|
8040
|
-
],
|
|
8041
|
-
function
|
|
8144
|
+
], Lo = (e) => String(e).padStart(2, "0"), Ro = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), zo = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Bo = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Vo = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Ho = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
8145
|
+
function Uo(e) {
|
|
8042
8146
|
let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
|
|
8043
8147
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
|
|
8044
8148
|
}
|
|
8045
|
-
function
|
|
8046
|
-
let n = `${e.getFullYear()}-${
|
|
8047
|
-
return t ? `${n}T${
|
|
8149
|
+
function Wo(e, t) {
|
|
8150
|
+
let n = `${e.getFullYear()}-${Lo(e.getMonth() + 1)}-${Lo(e.getDate())}`;
|
|
8151
|
+
return t ? `${n}T${Lo(e.getHours())}:${Lo(e.getMinutes())}` : n;
|
|
8048
8152
|
}
|
|
8049
|
-
function
|
|
8050
|
-
let n = `${
|
|
8051
|
-
return t ? `${n} ${
|
|
8153
|
+
function Go(e, t) {
|
|
8154
|
+
let n = `${Lo(e.getDate())}/${Lo(e.getMonth() + 1)}/${e.getFullYear()}`;
|
|
8155
|
+
return t ? `${n} ${Lo(e.getHours())}:${Lo(e.getMinutes())}` : n;
|
|
8052
8156
|
}
|
|
8053
|
-
var
|
|
8054
|
-
let b = s(), x = g ?? b, [S, C] = d(!1), w =
|
|
8055
|
-
o || (E(
|
|
8157
|
+
var Ko = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeholder: i, required: a, disabled: o, error: c, hint: l, minDate: u, maxDate: f, clearable: p = !0, id: g, className: _, ...v }, y) {
|
|
8158
|
+
let b = s(), x = g ?? b, [S, C] = d(!1), w = Uo(t), [T, E] = d(() => zo(w ?? /* @__PURE__ */ new Date())), D = u ? Ro(u) : null, O = f ? Ro(f) : null, k = (e) => !!D && Ro(e) < D || !!O && Ro(e) > O, A = Bo(zo(T), -zo(T).getDay()), j = Array.from({ length: 42 }, (e, t) => Bo(A, t)), M = Ro(/* @__PURE__ */ new Date()), N = () => {
|
|
8159
|
+
o || (E(zo(w ?? /* @__PURE__ */ new Date())), C((e) => !e));
|
|
8056
8160
|
}, P = (e) => {
|
|
8057
8161
|
if (k(e)) return;
|
|
8058
8162
|
let t = new Date(e);
|
|
8059
|
-
r && t.setHours((w == null ? void 0 : w.getHours()) ?? 0, (w == null ? void 0 : w.getMinutes()) ?? 0, 0, 0), n(
|
|
8163
|
+
r && t.setHours((w == null ? void 0 : w.getHours()) ?? 0, (w == null ? void 0 : w.getMinutes()) ?? 0, 0, 0), n(Wo(t, r)), r || C(!1);
|
|
8060
8164
|
}, F = (e) => {
|
|
8061
8165
|
let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(w ?? M);
|
|
8062
|
-
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(
|
|
8166
|
+
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(Wo(o, !0));
|
|
8063
8167
|
}, I = () => {
|
|
8064
8168
|
n(""), C(!1);
|
|
8065
8169
|
}, L = /* @__PURE__ */ h("div", {
|
|
@@ -8073,7 +8177,7 @@ var Wo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8073
8177
|
"aria-haspopup": "dialog",
|
|
8074
8178
|
"aria-expanded": S,
|
|
8075
8179
|
"aria-invalid": c ? !0 : void 0,
|
|
8076
|
-
children: w ?
|
|
8180
|
+
children: w ? Go(w, r) : /* @__PURE__ */ m("span", {
|
|
8077
8181
|
className: "select-datefield__ph",
|
|
8078
8182
|
children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
|
|
8079
8183
|
})
|
|
@@ -8110,13 +8214,13 @@ var Wo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8110
8214
|
type: "button",
|
|
8111
8215
|
className: "select-datepicker__nav",
|
|
8112
8216
|
"aria-label": "Mês anterior",
|
|
8113
|
-
onClick: () => E((e) =>
|
|
8217
|
+
onClick: () => E((e) => Vo(e, -1)),
|
|
8114
8218
|
children: /* @__PURE__ */ m(ae, {})
|
|
8115
8219
|
}),
|
|
8116
8220
|
/* @__PURE__ */ h("span", {
|
|
8117
8221
|
className: "select-datepicker__monthlabel",
|
|
8118
8222
|
children: [
|
|
8119
|
-
|
|
8223
|
+
Io[T.getMonth()],
|
|
8120
8224
|
" ",
|
|
8121
8225
|
T.getFullYear()
|
|
8122
8226
|
]
|
|
@@ -8125,7 +8229,7 @@ var Wo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8125
8229
|
type: "button",
|
|
8126
8230
|
className: "select-datepicker__nav",
|
|
8127
8231
|
"aria-label": "Próximo mês",
|
|
8128
|
-
onClick: () => E((e) =>
|
|
8232
|
+
onClick: () => E((e) => Vo(e, 1)),
|
|
8129
8233
|
children: /* @__PURE__ */ m(U, {})
|
|
8130
8234
|
})
|
|
8131
8235
|
]
|
|
@@ -8133,11 +8237,11 @@ var Wo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8133
8237
|
/* @__PURE__ */ h("div", {
|
|
8134
8238
|
className: "select-datepicker__grid",
|
|
8135
8239
|
role: "grid",
|
|
8136
|
-
children: [
|
|
8240
|
+
children: [Fo.map((e) => /* @__PURE__ */ m("div", {
|
|
8137
8241
|
className: "select-datepicker__weekday",
|
|
8138
8242
|
children: e
|
|
8139
8243
|
}, e)), j.map((e) => {
|
|
8140
|
-
let t = e.getMonth() !== T.getMonth(), n = !!w &&
|
|
8244
|
+
let t = e.getMonth() !== T.getMonth(), n = !!w && Ho(e, w), r = "select-datepicker__daybtn" + (n ? " is-selected" : "") + (Ho(e, M) && !n ? " is-today" : "") + (t ? " is-outside" : "");
|
|
8141
8245
|
return /* @__PURE__ */ m("div", {
|
|
8142
8246
|
className: "select-datepicker__day",
|
|
8143
8247
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -8159,7 +8263,7 @@ var Wo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8159
8263
|
type: "time",
|
|
8160
8264
|
className: "select-input select-datefield__time-input",
|
|
8161
8265
|
"aria-label": "Horário",
|
|
8162
|
-
value: w ? `${
|
|
8266
|
+
value: w ? `${Lo(w.getHours())}:${Lo(w.getMinutes())}` : "",
|
|
8163
8267
|
onChange: (e) => F(e.target.value)
|
|
8164
8268
|
})]
|
|
8165
8269
|
}),
|
|
@@ -8200,25 +8304,25 @@ var Wo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8200
8304
|
}) : null
|
|
8201
8305
|
]
|
|
8202
8306
|
});
|
|
8203
|
-
}),
|
|
8204
|
-
function
|
|
8205
|
-
let t =
|
|
8307
|
+
}), qo = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?$/;
|
|
8308
|
+
function Jo(e) {
|
|
8309
|
+
let t = qo.exec(e ?? "");
|
|
8206
8310
|
if (!t) return null;
|
|
8207
8311
|
let n = `${t[3]}/${t[2]}/${t[1]}`;
|
|
8208
8312
|
return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
|
|
8209
8313
|
}
|
|
8210
8314
|
//#endregion
|
|
8211
8315
|
//#region src/SelectFilterBar.tsx
|
|
8212
|
-
function
|
|
8316
|
+
function Yo(e, t) {
|
|
8213
8317
|
var n;
|
|
8214
|
-
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ?
|
|
8318
|
+
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ? Jo(t) ?? t : t;
|
|
8215
8319
|
}
|
|
8216
|
-
function
|
|
8320
|
+
function Xo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: s }) {
|
|
8217
8321
|
let [c, l] = d("");
|
|
8218
8322
|
o(() => {
|
|
8219
8323
|
r || l("");
|
|
8220
8324
|
}, [r]);
|
|
8221
|
-
let u = t.trim() !== "", f = u ?
|
|
8325
|
+
let u = t.trim() !== "", f = u ? Yo(e, t) : null, p = u && !!e.error, g = e.options ?? [], _ = g.length > 7, v = _ ? g.filter((e) => e.label.toLowerCase().includes(c.trim().toLowerCase())) : g;
|
|
8222
8326
|
return /* @__PURE__ */ h(Fn, {
|
|
8223
8327
|
active: r,
|
|
8224
8328
|
onClose: a,
|
|
@@ -8245,7 +8349,7 @@ function Jo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
8245
8349
|
className: "select-facet__panel",
|
|
8246
8350
|
children: [_ && /* @__PURE__ */ m("div", {
|
|
8247
8351
|
className: "select-facet__search",
|
|
8248
|
-
children: /* @__PURE__ */ m(
|
|
8352
|
+
children: /* @__PURE__ */ m(oa, {
|
|
8249
8353
|
value: c,
|
|
8250
8354
|
onChange: l,
|
|
8251
8355
|
placeholder: "Buscar opção…"
|
|
@@ -8276,7 +8380,7 @@ function Jo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
8276
8380
|
})]
|
|
8277
8381
|
}) : e.type === "date" ? /* @__PURE__ */ m("div", {
|
|
8278
8382
|
className: "select-facet__field",
|
|
8279
|
-
children: /* @__PURE__ */ m(
|
|
8383
|
+
children: /* @__PURE__ */ m(Ko, {
|
|
8280
8384
|
value: t,
|
|
8281
8385
|
onChange: n,
|
|
8282
8386
|
placeholder: e.placeholder,
|
|
@@ -8314,7 +8418,7 @@ function Jo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
8314
8418
|
]
|
|
8315
8419
|
});
|
|
8316
8420
|
}
|
|
8317
|
-
var
|
|
8421
|
+
var Zo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, leading: a, disabled: o, className: s, ...c }, l) {
|
|
8318
8422
|
let [u, f] = d([]), [p, g] = d(null), [_, v] = d(!1), y = (e) => (t[e.key] ?? "").trim() !== "", b = (e) => !!e.pinned || y(e) || u.includes(e.key), x = e.filter(b), S = e.filter((e) => !b(e)), C = e.filter(y), w = () => {
|
|
8319
8423
|
f([]), g(null), r();
|
|
8320
8424
|
}, T = (e) => {
|
|
@@ -8353,7 +8457,7 @@ var Yo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
8353
8457
|
})
|
|
8354
8458
|
]
|
|
8355
8459
|
}),
|
|
8356
|
-
x.map((e) => /* @__PURE__ */ m(
|
|
8460
|
+
x.map((e) => /* @__PURE__ */ m(Xo, {
|
|
8357
8461
|
filter: e,
|
|
8358
8462
|
value: t[e.key] ?? "",
|
|
8359
8463
|
onChange: (t) => n(e.key, t),
|
|
@@ -8399,7 +8503,7 @@ var Yo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
8399
8503
|
children: [
|
|
8400
8504
|
e.label,
|
|
8401
8505
|
": ",
|
|
8402
|
-
|
|
8506
|
+
Yo(e, t[e.key] ?? ""),
|
|
8403
8507
|
/* @__PURE__ */ m("button", {
|
|
8404
8508
|
type: "button",
|
|
8405
8509
|
className: "select-filterbar__tagx",
|
|
@@ -8416,7 +8520,7 @@ var Yo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
8416
8520
|
})]
|
|
8417
8521
|
})]
|
|
8418
8522
|
});
|
|
8419
|
-
}),
|
|
8523
|
+
}), Qo = r(function({ label: e, options: t, selected: n, onChange: r, placeholder: i = "Selecionar…", hint: a, help: o, error: s, onBlur: c, size: l = "md", className: u, ...f }, p) {
|
|
8420
8524
|
let [g, _] = d(!1), [v, y] = d(""), b = t.filter((e) => e.label.toLowerCase().includes(v.trim().toLowerCase())), x = (e) => r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]), S = n.map((e) => t.find((t) => t.value === e)).filter((e) => e != null);
|
|
8421
8525
|
return /* @__PURE__ */ h("div", {
|
|
8422
8526
|
ref: p,
|
|
@@ -8476,7 +8580,7 @@ var Yo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
8476
8580
|
className: "select-tagselect__menu",
|
|
8477
8581
|
children: [/* @__PURE__ */ m("div", {
|
|
8478
8582
|
className: "select-tagselect__search",
|
|
8479
|
-
children: /* @__PURE__ */ m(
|
|
8583
|
+
children: /* @__PURE__ */ m(oa, {
|
|
8480
8584
|
value: v,
|
|
8481
8585
|
onChange: y,
|
|
8482
8586
|
placeholder: "Buscar…"
|
|
@@ -8529,7 +8633,7 @@ var Yo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
8529
8633
|
}) : null
|
|
8530
8634
|
]
|
|
8531
8635
|
});
|
|
8532
|
-
}),
|
|
8636
|
+
}), $o = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
|
|
8533
8637
|
return /* @__PURE__ */ h("div", {
|
|
8534
8638
|
ref: c,
|
|
8535
8639
|
...s,
|
|
@@ -8561,8 +8665,8 @@ var Yo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
8561
8665
|
})
|
|
8562
8666
|
]
|
|
8563
8667
|
});
|
|
8564
|
-
}),
|
|
8565
|
-
function
|
|
8668
|
+
}), es = n(null), ts = 220, ns = 4e3, rs = 8, is = .04, as = 5;
|
|
8669
|
+
function os({ children: e }) {
|
|
8566
8670
|
let [t, n] = d([]), r = u(0), a = u(/* @__PURE__ */ new Map()), s = i((e) => {
|
|
8567
8671
|
n((t) => t.filter((t) => t.id !== e)), a.current.delete(e);
|
|
8568
8672
|
}, []), c = i((e) => {
|
|
@@ -8570,9 +8674,9 @@ function is({ children: e }) {
|
|
|
8570
8674
|
t && clearTimeout(t), n((t) => t.map((t) => t.id === e ? {
|
|
8571
8675
|
...t,
|
|
8572
8676
|
exiting: !0
|
|
8573
|
-
} : t)), a.current.set(e, setTimeout(() => s(e),
|
|
8677
|
+
} : t)), a.current.set(e, setTimeout(() => s(e), ts));
|
|
8574
8678
|
}, [s]), f = i((e, t) => {
|
|
8575
|
-
let i = ++r.current, o = (t == null ? void 0 : t.duration) ??
|
|
8679
|
+
let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? ns;
|
|
8576
8680
|
n((n) => [...n, {
|
|
8577
8681
|
id: i,
|
|
8578
8682
|
content: e,
|
|
@@ -8600,7 +8704,7 @@ function is({ children: e }) {
|
|
|
8600
8704
|
duration: t
|
|
8601
8705
|
})
|
|
8602
8706
|
}), [f]);
|
|
8603
|
-
return /* @__PURE__ */ h(
|
|
8707
|
+
return /* @__PURE__ */ h(es.Provider, {
|
|
8604
8708
|
value: p,
|
|
8605
8709
|
children: [e, t.length > 0 && g(/* @__PURE__ */ m("div", {
|
|
8606
8710
|
className: "select select-toasts",
|
|
@@ -8608,8 +8712,8 @@ function is({ children: e }) {
|
|
|
8608
8712
|
"aria-live": "polite",
|
|
8609
8713
|
"aria-label": "Notificações",
|
|
8610
8714
|
children: t.map((e, n) => {
|
|
8611
|
-
let r = t.length - 1 - n, i = e.exiting || r >=
|
|
8612
|
-
transform: `translate(-50%, ${-r *
|
|
8715
|
+
let r = t.length - 1 - n, i = e.exiting || r >= as, a = {
|
|
8716
|
+
transform: `translate(-50%, ${-r * rs}px) scale(${1 - r * is})`,
|
|
8613
8717
|
opacity: +!i,
|
|
8614
8718
|
zIndex: 1e3 - r,
|
|
8615
8719
|
pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
|
|
@@ -8633,15 +8737,15 @@ function is({ children: e }) {
|
|
|
8633
8737
|
}), document.body)]
|
|
8634
8738
|
});
|
|
8635
8739
|
}
|
|
8636
|
-
function
|
|
8637
|
-
let e = a(
|
|
8740
|
+
function ss() {
|
|
8741
|
+
let e = a(es);
|
|
8638
8742
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
8639
8743
|
return e;
|
|
8640
8744
|
}
|
|
8641
8745
|
//#endregion
|
|
8642
8746
|
//#region src/SelectPreviewFrame.tsx
|
|
8643
|
-
var
|
|
8644
|
-
let x =
|
|
8747
|
+
var cs = "allow-scripts allow-same-origin allow-forms", ls = 390, us = 1280, ds = r(function({ src: e, sandbox: t = cs, title: n = "Pré-visualização", height: r = 560, fill: i = !1, initialDevice: a = "desktop", showDeviceToggle: o = !0, emptyLabel: s = "Salve para gerar a pré-visualização.", onReload: l, notice: f, iframeRef: g, desktopWidth: _ = us, className: v, ...y }, b) {
|
|
8748
|
+
let x = Ei(e), [S, C] = d(a), [w, T] = d(0), [E, D] = d(!0), O = u(null), [k, A] = d({
|
|
8645
8749
|
w: 0,
|
|
8646
8750
|
h: 0
|
|
8647
8751
|
});
|
|
@@ -8658,7 +8762,7 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
8658
8762
|
});
|
|
8659
8763
|
return t.observe(e), () => t.disconnect();
|
|
8660
8764
|
}, []);
|
|
8661
|
-
let j = S === "mobile" ?
|
|
8765
|
+
let j = S === "mobile" ? ls : _, M = k.w > 0 ? Math.min(1, k.w / j) : 1, N = x ? `${x}${x.includes("?") ? "&" : "?"}_pv=${w}` : "", P = () => {
|
|
8662
8766
|
if (D(!0), l) {
|
|
8663
8767
|
l();
|
|
8664
8768
|
return;
|
|
@@ -8724,7 +8828,7 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
8724
8828
|
style: { width: j * M },
|
|
8725
8829
|
children: [E && /* @__PURE__ */ m("div", {
|
|
8726
8830
|
className: "select-preview__loading",
|
|
8727
|
-
children: /* @__PURE__ */ m(
|
|
8831
|
+
children: /* @__PURE__ */ m(Fi, {})
|
|
8728
8832
|
}), /* @__PURE__ */ m("div", {
|
|
8729
8833
|
className: "select-preview__viewport",
|
|
8730
8834
|
style: {
|
|
@@ -8747,7 +8851,7 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
8747
8851
|
})
|
|
8748
8852
|
})]
|
|
8749
8853
|
});
|
|
8750
|
-
}),
|
|
8854
|
+
}), fs = r(function({ availableCents: e, availableLabel: t = "Saldo disponível", delta: n, buckets: r = [], action: i, variant: a = "card", updatedLabel: o, meta: s = [], status: c, loading: l = !1, className: u, ...d }, f) {
|
|
8751
8855
|
if (a === "hero") {
|
|
8752
8856
|
let n = (e, t = "1em") => /* @__PURE__ */ m("span", {
|
|
8753
8857
|
className: "select-skeleton select-balance__skel",
|
|
@@ -8755,7 +8859,7 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
8755
8859
|
width: e,
|
|
8756
8860
|
height: t
|
|
8757
8861
|
}
|
|
8758
|
-
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ m(
|
|
8862
|
+
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ m(Eo, { cents: e });
|
|
8759
8863
|
return /* @__PURE__ */ m("div", {
|
|
8760
8864
|
ref: f,
|
|
8761
8865
|
...d,
|
|
@@ -8787,7 +8891,7 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
8787
8891
|
className: "select-balance-hero__meta",
|
|
8788
8892
|
children: s.map((e, t) => /* @__PURE__ */ h("div", {
|
|
8789
8893
|
className: "select-balance-hero__metaitem",
|
|
8790
|
-
children: [/* @__PURE__ */ m("dt", { children: e.label }), /* @__PURE__ */ m("dd", { children: l ? n("7ch") : e.cents != null && e.cents !== "" ? /* @__PURE__ */ h(p, { children: [e.prefix, /* @__PURE__ */ m(
|
|
8894
|
+
children: [/* @__PURE__ */ m("dt", { children: e.label }), /* @__PURE__ */ m("dd", { children: l ? n("7ch") : e.cents != null && e.cents !== "" ? /* @__PURE__ */ h(p, { children: [e.prefix, /* @__PURE__ */ m(Eo, { cents: e.cents })] }) : e.value ?? "—" })]
|
|
8791
8895
|
}, t))
|
|
8792
8896
|
}),
|
|
8793
8897
|
(i || c) && /* @__PURE__ */ h("div", {
|
|
@@ -8862,8 +8966,8 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
8862
8966
|
className: "select-balance__heromain",
|
|
8863
8967
|
children: [/* @__PURE__ */ m("span", {
|
|
8864
8968
|
className: "select-balance__heroamount",
|
|
8865
|
-
children: /* @__PURE__ */ m(
|
|
8866
|
-
}), n != null && /* @__PURE__ */ m(
|
|
8969
|
+
children: /* @__PURE__ */ m(Eo, { cents: e })
|
|
8970
|
+
}), n != null && /* @__PURE__ */ m(Oo, {
|
|
8867
8971
|
value: n,
|
|
8868
8972
|
caption: "vs. período anterior"
|
|
8869
8973
|
})]
|
|
@@ -8882,14 +8986,14 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
8882
8986
|
children: e.label
|
|
8883
8987
|
}), /* @__PURE__ */ m("span", {
|
|
8884
8988
|
className: "select-balance__bucketamount",
|
|
8885
|
-
children: /* @__PURE__ */ m(
|
|
8989
|
+
children: /* @__PURE__ */ m(Eo, { cents: e.cents })
|
|
8886
8990
|
})]
|
|
8887
8991
|
})]
|
|
8888
8992
|
}, e.label))
|
|
8889
8993
|
})]
|
|
8890
8994
|
})]
|
|
8891
8995
|
});
|
|
8892
|
-
}),
|
|
8996
|
+
}), ps = r(function({ grossCents: e, fees: t, netCents: n, grossLabel: r = "Valor bruto", netLabel: i = "Valor líquido", bar: a = !1, barLabel: o, className: s, ...c }, l) {
|
|
8893
8997
|
let u = n ?? e - t.reduce((e, t) => e + t.cents, 0), d = Math.max(0, e - u), f = a && e > 0 && u >= 0, g = e > 0 ? d / e * 100 : 0;
|
|
8894
8998
|
return /* @__PURE__ */ h("div", {
|
|
8895
8999
|
ref: l,
|
|
@@ -8909,7 +9013,7 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
8909
9013
|
children: o ?? /* @__PURE__ */ h(p, { children: [
|
|
8910
9014
|
i,
|
|
8911
9015
|
" · ",
|
|
8912
|
-
/* @__PURE__ */ m(
|
|
9016
|
+
/* @__PURE__ */ m(Eo, { cents: u })
|
|
8913
9017
|
] })
|
|
8914
9018
|
})
|
|
8915
9019
|
}), d > 0 && /* @__PURE__ */ m("span", {
|
|
@@ -8926,7 +9030,7 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
8926
9030
|
"aria-hidden": "true"
|
|
8927
9031
|
}),
|
|
8928
9032
|
"Taxas ",
|
|
8929
|
-
/* @__PURE__ */ m(
|
|
9033
|
+
/* @__PURE__ */ m(Eo, { cents: d }),
|
|
8930
9034
|
" (",
|
|
8931
9035
|
g.toLocaleString("pt-BR", {
|
|
8932
9036
|
maximumFractionDigits: 1,
|
|
@@ -8942,20 +9046,20 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
8942
9046
|
"aria-hidden": "true"
|
|
8943
9047
|
}),
|
|
8944
9048
|
"Líquido ",
|
|
8945
|
-
/* @__PURE__ */ m(
|
|
9049
|
+
/* @__PURE__ */ m(Eo, { cents: u })
|
|
8946
9050
|
]
|
|
8947
9051
|
})]
|
|
8948
9052
|
})]
|
|
8949
9053
|
}),
|
|
8950
9054
|
/* @__PURE__ */ h("div", {
|
|
8951
9055
|
className: "select-fees__row",
|
|
8952
|
-
children: [/* @__PURE__ */ m("span", { children: r }), /* @__PURE__ */ m("span", { children: /* @__PURE__ */ m(
|
|
9056
|
+
children: [/* @__PURE__ */ m("span", { children: r }), /* @__PURE__ */ m("span", { children: /* @__PURE__ */ m(Eo, { cents: e }) })]
|
|
8953
9057
|
}),
|
|
8954
9058
|
t.map((e) => /* @__PURE__ */ h("div", {
|
|
8955
9059
|
className: "select-fees__row",
|
|
8956
9060
|
children: [/* @__PURE__ */ m("span", { children: e.label }), /* @__PURE__ */ h("span", {
|
|
8957
9061
|
className: "select-fees__neg",
|
|
8958
|
-
children: ["−\xA0", /* @__PURE__ */ m(
|
|
9062
|
+
children: ["−\xA0", /* @__PURE__ */ m(Eo, { cents: e.cents })]
|
|
8959
9063
|
})]
|
|
8960
9064
|
}, e.label)),
|
|
8961
9065
|
/* @__PURE__ */ m("div", { className: "select-fees__divider" }),
|
|
@@ -8963,12 +9067,12 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
8963
9067
|
className: "select-fees__row select-fees__row--net",
|
|
8964
9068
|
children: [/* @__PURE__ */ m("span", { children: i }), /* @__PURE__ */ m("span", {
|
|
8965
9069
|
className: "select-fees__netvalue",
|
|
8966
|
-
children: /* @__PURE__ */ m(
|
|
9070
|
+
children: /* @__PURE__ */ m(Eo, { cents: u })
|
|
8967
9071
|
})]
|
|
8968
9072
|
})
|
|
8969
9073
|
]
|
|
8970
9074
|
});
|
|
8971
|
-
}),
|
|
9075
|
+
}), ms = r(function({ label: e, value: t, caption: n, chart: r, help: i, tone: a, bare: o = !1, onClick: s, selected: c = !1, loading: l = !1, className: u, ...d }, f) {
|
|
8972
9076
|
let g = s != null, _ = g ? {
|
|
8973
9077
|
role: "button",
|
|
8974
9078
|
tabIndex: 0,
|
|
@@ -9013,7 +9117,7 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
9013
9117
|
})
|
|
9014
9118
|
] })]
|
|
9015
9119
|
});
|
|
9016
|
-
}),
|
|
9120
|
+
}), hs = {
|
|
9017
9121
|
"pt-BR": {
|
|
9018
9122
|
severity: {
|
|
9019
9123
|
info: "Informativo",
|
|
@@ -9123,24 +9227,24 @@ var os = "allow-scripts allow-same-origin allow-forms", ss = 390, cs = 1280, ls
|
|
|
9123
9227
|
locked: "Disponible en un plan superior"
|
|
9124
9228
|
}
|
|
9125
9229
|
};
|
|
9126
|
-
function
|
|
9230
|
+
function gs(e) {
|
|
9127
9231
|
return e === "en" || e != null && e.startsWith("en-") ? "en" : e === "es" || e != null && e.startsWith("es-") ? "es" : "pt-BR";
|
|
9128
9232
|
}
|
|
9129
|
-
var
|
|
9233
|
+
var _s = {
|
|
9130
9234
|
info: "info",
|
|
9131
9235
|
opportunity: "success",
|
|
9132
9236
|
warning: "warning",
|
|
9133
9237
|
critical: "critical"
|
|
9134
9238
|
};
|
|
9135
|
-
function
|
|
9136
|
-
let r = new Intl.NumberFormat(
|
|
9239
|
+
function vs(e, t = "pt-BR", n = hs[gs(t)]) {
|
|
9240
|
+
let r = new Intl.NumberFormat(gs(t), {
|
|
9137
9241
|
style: "currency",
|
|
9138
9242
|
currency: e.currency,
|
|
9139
9243
|
maximumFractionDigits: 0
|
|
9140
9244
|
}), i = r.format(e.minCents / 100), a = r.format(e.maxCents / 100);
|
|
9141
9245
|
return e.minCents === e.maxCents ? n.impactAbout(a) : n.impact(`${i}${n.rangeJoin}${a}`);
|
|
9142
9246
|
}
|
|
9143
|
-
function
|
|
9247
|
+
function ys(e, t, n) {
|
|
9144
9248
|
let r = new Date(e.start), i = new Date(e.end);
|
|
9145
9249
|
if (Number.isNaN(r.getTime()) || Number.isNaN(i.getTime())) return null;
|
|
9146
9250
|
let a = new Intl.DateTimeFormat(t, {
|
|
@@ -9151,20 +9255,20 @@ function _s(e, t, n) {
|
|
|
9151
9255
|
});
|
|
9152
9256
|
return `${a.format(r)} – ${a.format(i)}`;
|
|
9153
9257
|
}
|
|
9154
|
-
var
|
|
9258
|
+
var bs = /* @__PURE__ */ new Set([
|
|
9155
9259
|
"metric",
|
|
9156
9260
|
"comparison",
|
|
9157
9261
|
"table",
|
|
9158
9262
|
"items",
|
|
9159
9263
|
"text"
|
|
9160
9264
|
]);
|
|
9161
|
-
function
|
|
9162
|
-
return
|
|
9265
|
+
function xs(e) {
|
|
9266
|
+
return bs.has(e.type);
|
|
9163
9267
|
}
|
|
9164
|
-
function
|
|
9268
|
+
function Ss(e) {
|
|
9165
9269
|
return e.type === "table" || e.type === "items" || e.type === "text";
|
|
9166
9270
|
}
|
|
9167
|
-
function
|
|
9271
|
+
function Cs({ children: e }) {
|
|
9168
9272
|
return /* @__PURE__ */ m(xr, {
|
|
9169
9273
|
background: "surface-secondary",
|
|
9170
9274
|
borderRadius: "lg",
|
|
@@ -9172,15 +9276,15 @@ function xs({ children: e }) {
|
|
|
9172
9276
|
children: e
|
|
9173
9277
|
});
|
|
9174
9278
|
}
|
|
9175
|
-
function
|
|
9279
|
+
function ws({ block: e, renderItem: t }) {
|
|
9176
9280
|
switch (e.type) {
|
|
9177
|
-
case "metric": return /* @__PURE__ */ m(
|
|
9281
|
+
case "metric": return /* @__PURE__ */ m(Cs, { children: /* @__PURE__ */ m(ms, {
|
|
9178
9282
|
bare: !0,
|
|
9179
9283
|
label: e.label,
|
|
9180
9284
|
value: e.value.display,
|
|
9181
9285
|
caption: e.hint ?? void 0
|
|
9182
9286
|
}) });
|
|
9183
|
-
case "comparison": return /* @__PURE__ */ m(
|
|
9287
|
+
case "comparison": return /* @__PURE__ */ m(Cs, { children: /* @__PURE__ */ m(ms, {
|
|
9184
9288
|
bare: !0,
|
|
9185
9289
|
label: e.label,
|
|
9186
9290
|
value: e.value.display,
|
|
@@ -9191,12 +9295,12 @@ function Ss({ block: e, renderItem: t }) {
|
|
|
9191
9295
|
e.hint ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("br", {}), e.hint] }) : null
|
|
9192
9296
|
] })
|
|
9193
9297
|
}) });
|
|
9194
|
-
case "table": return /* @__PURE__ */ m(
|
|
9298
|
+
case "table": return /* @__PURE__ */ m(va, {
|
|
9195
9299
|
title: e.title,
|
|
9196
9300
|
columns: e.columns.map((e) => ({ label: e.label })),
|
|
9197
|
-
children: e.rows.map((t, n) => /* @__PURE__ */ m(
|
|
9301
|
+
children: e.rows.map((t, n) => /* @__PURE__ */ m(xa, { children: e.columns.map((e) => {
|
|
9198
9302
|
var n;
|
|
9199
|
-
return /* @__PURE__ */ m(
|
|
9303
|
+
return /* @__PURE__ */ m(Sa, { children: ((n = t[e.key]) == null ? void 0 : n.display) ?? "—" }, e.key);
|
|
9200
9304
|
}) }, n))
|
|
9201
9305
|
});
|
|
9202
9306
|
case "items": return /* @__PURE__ */ h(gr, {
|
|
@@ -9233,15 +9337,15 @@ function Ss({ block: e, renderItem: t }) {
|
|
|
9233
9337
|
});
|
|
9234
9338
|
}
|
|
9235
9339
|
}
|
|
9236
|
-
function
|
|
9237
|
-
let f =
|
|
9238
|
-
...
|
|
9340
|
+
function Ts({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo", locked: i = !1, lockedCta: a, badges: o, footer: s, renderItem: c, renderAction: l, methodologyOpen: u = !1, className: d }) {
|
|
9341
|
+
let f = gs(t), g = {
|
|
9342
|
+
...hs[f],
|
|
9239
9343
|
...n
|
|
9240
|
-
}, _ =
|
|
9344
|
+
}, _ = _s[e.severity] ?? "info", v = e.period ? ys(e.period, f, r) : null, y = [
|
|
9241
9345
|
e.confidence ? g.confidence[e.confidence] ?? e.confidence : null,
|
|
9242
9346
|
e.sampleSize == null ? null : g.sample(e.sampleSize.toLocaleString(f)),
|
|
9243
9347
|
v
|
|
9244
|
-
].filter((e) => !!e), b = (e.blocks ?? []).filter(
|
|
9348
|
+
].filter((e) => !!e), b = (e.blocks ?? []).filter(xs), x = e.actions ?? [];
|
|
9245
9349
|
return /* @__PURE__ */ m(xr, {
|
|
9246
9350
|
as: "article",
|
|
9247
9351
|
background: "surface",
|
|
@@ -9295,7 +9399,7 @@ function Cs({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
9295
9399
|
e.impact ? /* @__PURE__ */ m(Sr, {
|
|
9296
9400
|
variant: "headingSm",
|
|
9297
9401
|
className: "select-insight__impact",
|
|
9298
|
-
children:
|
|
9402
|
+
children: vs(e.impact, f, g)
|
|
9299
9403
|
}) : null,
|
|
9300
9404
|
y.length && !i ? /* @__PURE__ */ m(Sr, {
|
|
9301
9405
|
variant: "bodyXs",
|
|
@@ -9309,8 +9413,8 @@ function Cs({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
9309
9413
|
columns: "repeat(auto-fill, minmax(12rem, 1fr))",
|
|
9310
9414
|
gap: "300",
|
|
9311
9415
|
children: b.map((e, t) => /* @__PURE__ */ m("div", {
|
|
9312
|
-
className:
|
|
9313
|
-
children: /* @__PURE__ */ m(
|
|
9416
|
+
className: Ss(e) ? "select-insight__wide" : void 0,
|
|
9417
|
+
children: /* @__PURE__ */ m(ws, {
|
|
9314
9418
|
block: e,
|
|
9315
9419
|
renderItem: c
|
|
9316
9420
|
})
|
|
@@ -9332,7 +9436,7 @@ function Cs({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
9332
9436
|
}) }, `${e.target ?? "text"}:${t}`))
|
|
9333
9437
|
})]
|
|
9334
9438
|
}) : null,
|
|
9335
|
-
e.methodology ? /* @__PURE__ */ m(
|
|
9439
|
+
e.methodology ? /* @__PURE__ */ m(Ia, {
|
|
9336
9440
|
plain: !0,
|
|
9337
9441
|
title: g.methodology,
|
|
9338
9442
|
defaultOpen: u,
|
|
@@ -9350,7 +9454,7 @@ function Cs({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
9350
9454
|
}
|
|
9351
9455
|
//#endregion
|
|
9352
9456
|
//#region src/SelectChartCard.tsx
|
|
9353
|
-
var
|
|
9457
|
+
var Es = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1, hideValues: a = !1, height: o = 260, flush: s = !1, insight: c, insightTone: l = "neutral", children: u, className: d, ...f }, p) {
|
|
9354
9458
|
let g = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
9355
9459
|
return /* @__PURE__ */ h("div", {
|
|
9356
9460
|
ref: p,
|
|
@@ -9393,7 +9497,7 @@ var ws = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1,
|
|
|
9393
9497
|
});
|
|
9394
9498
|
//#endregion
|
|
9395
9499
|
//#region src/chartUtils.ts
|
|
9396
|
-
function
|
|
9500
|
+
function Ds() {
|
|
9397
9501
|
let [e, t] = d(1);
|
|
9398
9502
|
return c(() => {
|
|
9399
9503
|
let e = () => {
|
|
@@ -9404,7 +9508,7 @@ function Ts() {
|
|
|
9404
9508
|
}, []), e;
|
|
9405
9509
|
}
|
|
9406
9510
|
function Y(e) {
|
|
9407
|
-
let t = u(null), [n, r] = d(0), i =
|
|
9511
|
+
let t = u(null), [n, r] = d(0), i = Ds();
|
|
9408
9512
|
return c(() => {
|
|
9409
9513
|
let e = t.current;
|
|
9410
9514
|
if (!e) return;
|
|
@@ -9421,7 +9525,7 @@ function Y(e) {
|
|
|
9421
9525
|
height: Math.round(e * i)
|
|
9422
9526
|
};
|
|
9423
9527
|
}
|
|
9424
|
-
function
|
|
9528
|
+
function Os(e, t) {
|
|
9425
9529
|
let [n, r] = d(t);
|
|
9426
9530
|
return c(() => {
|
|
9427
9531
|
let t = e.current;
|
|
@@ -9435,15 +9539,15 @@ function Es(e, t) {
|
|
|
9435
9539
|
return i.observe(t), () => i.disconnect();
|
|
9436
9540
|
}, [e]), n;
|
|
9437
9541
|
}
|
|
9438
|
-
function
|
|
9542
|
+
function ks(e) {
|
|
9439
9543
|
if (e <= 0) return 1;
|
|
9440
9544
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
9441
9545
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
9442
9546
|
}
|
|
9443
|
-
function
|
|
9547
|
+
function As(e, t = 4) {
|
|
9444
9548
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
9445
9549
|
}
|
|
9446
|
-
function
|
|
9550
|
+
function js(e, t = 5) {
|
|
9447
9551
|
if (!(e > 0)) return {
|
|
9448
9552
|
max: 1,
|
|
9449
9553
|
values: [0, 1]
|
|
@@ -9455,10 +9559,10 @@ function ks(e, t = 5) {
|
|
|
9455
9559
|
values: s
|
|
9456
9560
|
};
|
|
9457
9561
|
}
|
|
9458
|
-
function
|
|
9562
|
+
function Ms(e) {
|
|
9459
9563
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
9460
9564
|
}
|
|
9461
|
-
function
|
|
9565
|
+
function Ns(e) {
|
|
9462
9566
|
let t = e.length;
|
|
9463
9567
|
if (t === 0) return "";
|
|
9464
9568
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -9482,23 +9586,23 @@ function js(e) {
|
|
|
9482
9586
|
}
|
|
9483
9587
|
return s;
|
|
9484
9588
|
}
|
|
9485
|
-
function
|
|
9589
|
+
function Ps(e, t) {
|
|
9486
9590
|
if (e.length === 0) return "";
|
|
9487
9591
|
let n = e[0], r = e[e.length - 1];
|
|
9488
|
-
return `${
|
|
9592
|
+
return `${Ns(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
9489
9593
|
}
|
|
9490
|
-
function
|
|
9491
|
-
return e.length === 0 || t.length === 0 ? "" : `${
|
|
9594
|
+
function Fs(e, t) {
|
|
9595
|
+
return e.length === 0 || t.length === 0 ? "" : `${Ns(e)} ${Ns([...t].reverse()).replace(/^M/, "L")} Z`;
|
|
9492
9596
|
}
|
|
9493
|
-
function
|
|
9597
|
+
function Is(e, t, n, r) {
|
|
9494
9598
|
let i = (r - 90) * Math.PI / 180;
|
|
9495
9599
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
9496
9600
|
}
|
|
9497
|
-
function
|
|
9498
|
-
let [o, s] =
|
|
9601
|
+
function Ls(e, t, n, r, i, a) {
|
|
9602
|
+
let [o, s] = Is(e, t, n, i), [c, l] = Is(e, t, n, a), [u, d] = Is(e, t, r, a), [f, p] = Is(e, t, r, i), m = +(a - i > 180);
|
|
9499
9603
|
return `M${o.toFixed(2)},${s.toFixed(2)} A${n},${n} 0 ${m} 1 ${c.toFixed(2)},${l.toFixed(2)} L${u.toFixed(2)},${d.toFixed(2)} A${r},${r} 0 ${m} 0 ${f.toFixed(2)},${p.toFixed(2)} Z`;
|
|
9500
9604
|
}
|
|
9501
|
-
var
|
|
9605
|
+
var Rs = [
|
|
9502
9606
|
"var(--select-chart-1)",
|
|
9503
9607
|
"var(--select-chart-2)",
|
|
9504
9608
|
"var(--select-chart-3)",
|
|
@@ -9506,13 +9610,13 @@ var Is = [
|
|
|
9506
9610
|
"var(--select-chart-5)"
|
|
9507
9611
|
];
|
|
9508
9612
|
function X(e) {
|
|
9509
|
-
return
|
|
9613
|
+
return Rs[e % Rs.length];
|
|
9510
9614
|
}
|
|
9511
9615
|
function Z(e) {
|
|
9512
9616
|
let t = Math.abs(e);
|
|
9513
9617
|
return t >= 1e9 ? (e / 1e9).toFixed(1).replace(/\.0$/, "") + "B" : t >= 1e6 ? (e / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : t >= 1e3 ? (e / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : String(Math.round(e));
|
|
9514
9618
|
}
|
|
9515
|
-
var
|
|
9619
|
+
var zs = {
|
|
9516
9620
|
top: 16,
|
|
9517
9621
|
right: 22,
|
|
9518
9622
|
bottom: 32,
|
|
@@ -9520,7 +9624,7 @@ var Ls = {
|
|
|
9520
9624
|
};
|
|
9521
9625
|
//#endregion
|
|
9522
9626
|
//#region src/SelectSparkline.tsx
|
|
9523
|
-
function
|
|
9627
|
+
function Bs({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
9524
9628
|
let { ref: a, width: o } = Y(n), c = t ?? X(0), l = s(), u = null;
|
|
9525
9629
|
if (o > 0 && e.length > 1) {
|
|
9526
9630
|
let t = Math.max(...e), r = Math.min(...e), i = t - r || 1, a = e.map((t, a) => [4 + a / (e.length - 1) * (o - 8), n - 4 - (t - r) / i * (n - 8)]), s = a[a.length - 1];
|
|
@@ -9547,11 +9651,11 @@ function Rs({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
9547
9651
|
})]
|
|
9548
9652
|
}) }),
|
|
9549
9653
|
/* @__PURE__ */ m("path", {
|
|
9550
|
-
d:
|
|
9654
|
+
d: Ps(a, n - 4),
|
|
9551
9655
|
fill: `url(#${l}-sa)`
|
|
9552
9656
|
}),
|
|
9553
9657
|
/* @__PURE__ */ m("path", {
|
|
9554
|
-
d:
|
|
9658
|
+
d: Ns(a),
|
|
9555
9659
|
fill: "none",
|
|
9556
9660
|
stroke: c,
|
|
9557
9661
|
strokeWidth: 2,
|
|
@@ -9630,7 +9734,7 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
9630
9734
|
}, t))]
|
|
9631
9735
|
});
|
|
9632
9736
|
}
|
|
9633
|
-
function
|
|
9737
|
+
function Vs({ tip: e, onDismiss: t }) {
|
|
9634
9738
|
return o(() => {
|
|
9635
9739
|
if (e) return window.addEventListener("scroll", t, !0), window.addEventListener("resize", t), () => {
|
|
9636
9740
|
window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", t);
|
|
@@ -9643,8 +9747,8 @@ function zs({ tip: e, onDismiss: t }) {
|
|
|
9643
9747
|
}
|
|
9644
9748
|
//#endregion
|
|
9645
9749
|
//#region src/SelectBarChart.tsx
|
|
9646
|
-
function
|
|
9647
|
-
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f =
|
|
9750
|
+
function Hs({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
9751
|
+
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f = ks(Math.max(0, ...e.map((e) => e.value))), p = zs, 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 * _;
|
|
9648
9752
|
return /* @__PURE__ */ h("div", {
|
|
9649
9753
|
...a,
|
|
9650
9754
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -9670,7 +9774,7 @@ function Bs({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
9670
9774
|
stopOpacity: .62
|
|
9671
9775
|
})]
|
|
9672
9776
|
}) }),
|
|
9673
|
-
|
|
9777
|
+
As(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9674
9778
|
x1: p.left,
|
|
9675
9779
|
x2: c - p.right,
|
|
9676
9780
|
y1: x(e),
|
|
@@ -9720,8 +9824,8 @@ function Bs({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
9720
9824
|
}
|
|
9721
9825
|
//#endregion
|
|
9722
9826
|
//#region src/SelectLineChart.tsx
|
|
9723
|
-
function
|
|
9724
|
-
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } =
|
|
9827
|
+
function Us({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1, className: a, ...o }) {
|
|
9828
|
+
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } = js(Math.max(0, ...e.flatMap((e) => e.data.filter((e) => Number.isFinite(e))))), y = zs, 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;
|
|
9725
9829
|
return /* @__PURE__ */ h("div", {
|
|
9726
9830
|
...o,
|
|
9727
9831
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -9777,11 +9881,11 @@ function Vs({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
9777
9881
|
})).sort((e, t) => Number(!!t.s.dashed) - Number(!!e.s.dashed)).map(({ s: e, si: t }) => {
|
|
9778
9882
|
let n = e.color ?? X(t), r = e.data.slice(0, S).map((e, t) => [C(t), w(e)]);
|
|
9779
9883
|
return /* @__PURE__ */ h("g", { children: [i && !e.dashed && /* @__PURE__ */ m("path", {
|
|
9780
|
-
d:
|
|
9884
|
+
d: Ps(r, D),
|
|
9781
9885
|
fill: `url(#${f}-a${t})`,
|
|
9782
9886
|
className: "select-chart__area"
|
|
9783
9887
|
}), /* @__PURE__ */ m("path", {
|
|
9784
|
-
d:
|
|
9888
|
+
d: Ns(r),
|
|
9785
9889
|
fill: "none",
|
|
9786
9890
|
stroke: n,
|
|
9787
9891
|
strokeWidth: e.dashed ? 1.75 : 2.25,
|
|
@@ -9843,8 +9947,8 @@ function Vs({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
9843
9947
|
}
|
|
9844
9948
|
//#endregion
|
|
9845
9949
|
//#region src/SelectStackedArea.tsx
|
|
9846
|
-
function
|
|
9847
|
-
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 =
|
|
9950
|
+
function Ws({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
9951
|
+
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 = ks(Math.max(0, ..._)), b = zs, 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];
|
|
9848
9952
|
return /* @__PURE__ */ h("div", {
|
|
9849
9953
|
...a,
|
|
9850
9954
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -9873,7 +9977,7 @@ function Hs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
9873
9977
|
})]
|
|
9874
9978
|
}, t);
|
|
9875
9979
|
}) }),
|
|
9876
|
-
|
|
9980
|
+
As(y).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9877
9981
|
x1: b.left,
|
|
9878
9982
|
x2: c - b.right,
|
|
9879
9983
|
y1: w(e),
|
|
@@ -9892,10 +9996,10 @@ function Hs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
9892
9996
|
return /* @__PURE__ */ h("g", {
|
|
9893
9997
|
className: "select-chart__area",
|
|
9894
9998
|
children: [/* @__PURE__ */ m("path", {
|
|
9895
|
-
d:
|
|
9999
|
+
d: Fs(i, a),
|
|
9896
10000
|
fill: `url(#${u}-b${n})`
|
|
9897
10001
|
}), /* @__PURE__ */ m("path", {
|
|
9898
|
-
d:
|
|
10002
|
+
d: Ns(i),
|
|
9899
10003
|
fill: "none",
|
|
9900
10004
|
stroke: r,
|
|
9901
10005
|
strokeWidth: 1.5,
|
|
@@ -9949,11 +10053,11 @@ function Hs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
9949
10053
|
}
|
|
9950
10054
|
//#endregion
|
|
9951
10055
|
//#region src/SelectComboChart.tsx
|
|
9952
|
-
function
|
|
10056
|
+
function Gs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
|
|
9953
10057
|
let { ref: l, width: u } = Y(r), f = Q(), p = s(), [g, _] = d(null), v = {
|
|
9954
|
-
...
|
|
10058
|
+
...zs,
|
|
9955
10059
|
right: 58
|
|
9956
|
-
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S =
|
|
10060
|
+
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = ks(Math.max(0, ...t.data)), C = ks(Math.max(0, ...n.data)), w = x > 0 ? y / x : 0, T = Math.min(w * .5, 36), E = Math.max(1, Math.ceil(x / 8)), D = t.color ?? X(0), O = n.color ?? X(1), k = v.top + b, A = (e) => k - e / S * b, j = (e) => k - e / C * b, M = (e) => v.left + w * e + w / 2, N = n.data.map((e, t) => [M(t), j(e)]);
|
|
9957
10061
|
return /* @__PURE__ */ h("div", {
|
|
9958
10062
|
...c,
|
|
9959
10063
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -9979,7 +10083,7 @@ function Us({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
9979
10083
|
stopOpacity: .55
|
|
9980
10084
|
})]
|
|
9981
10085
|
}) }),
|
|
9982
|
-
|
|
10086
|
+
As(S).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9983
10087
|
x1: v.left,
|
|
9984
10088
|
x2: u - v.right,
|
|
9985
10089
|
y1: A(e),
|
|
@@ -9993,7 +10097,7 @@ function Us({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
9993
10097
|
textAnchor: "end",
|
|
9994
10098
|
children: i(e)
|
|
9995
10099
|
})] }, t)),
|
|
9996
|
-
|
|
10100
|
+
As(C).map((e, t) => /* @__PURE__ */ m("text", {
|
|
9997
10101
|
x: u - 4,
|
|
9998
10102
|
y: j(e),
|
|
9999
10103
|
className: "select-chart__ylabel",
|
|
@@ -10022,7 +10126,7 @@ function Us({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
10022
10126
|
className: "select-chart__crosshair"
|
|
10023
10127
|
}),
|
|
10024
10128
|
/* @__PURE__ */ m("path", {
|
|
10025
|
-
d:
|
|
10129
|
+
d: Ns(N),
|
|
10026
10130
|
fill: "none",
|
|
10027
10131
|
stroke: O,
|
|
10028
10132
|
strokeWidth: 2.5,
|
|
@@ -10080,8 +10184,8 @@ function Us({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
10080
10184
|
}
|
|
10081
10185
|
//#endregion
|
|
10082
10186
|
//#region src/SelectDonut.tsx
|
|
10083
|
-
var
|
|
10084
|
-
let p = Q(), g = s(), _ = u(null), v =
|
|
10187
|
+
var Ks = 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) {
|
|
10188
|
+
let p = Q(), g = s(), _ = u(null), v = Os(_, 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;
|
|
10085
10189
|
return /* @__PURE__ */ h("div", {
|
|
10086
10190
|
ref: f,
|
|
10087
10191
|
...d,
|
|
@@ -10124,7 +10228,7 @@ var Ws = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
10124
10228
|
w += e.value;
|
|
10125
10229
|
let i = w / y * 360, a = e.color ?? X(t), s = i - n > o * 1.5 ? o / 2 : 0, c = n + s, l = Math.max(c + .01, i - s);
|
|
10126
10230
|
return /* @__PURE__ */ m("path", {
|
|
10127
|
-
d:
|
|
10231
|
+
d: Ls(b, x, S, C, c, l),
|
|
10128
10232
|
fill: `url(#${g}-s${t})`,
|
|
10129
10233
|
className: "select-chart__seg",
|
|
10130
10234
|
onMouseEnter: () => {
|
|
@@ -10172,9 +10276,9 @@ var Ws = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
10172
10276
|
/* @__PURE__ */ m($, { tip: p.tip })
|
|
10173
10277
|
]
|
|
10174
10278
|
});
|
|
10175
|
-
}),
|
|
10176
|
-
function
|
|
10177
|
-
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 } =
|
|
10279
|
+
}), qs = 6.4, Js = 12;
|
|
10280
|
+
function Ys({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, marker: a, tooltip: o, className: c, ...l }) {
|
|
10281
|
+
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 } = js(i ? Math.max(0, ...v) : Math.max(0, ...e.flatMap((e) => e.data)), 4), x = zs, 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 * qs + Js) / T)) : 1, P = j ?? 0, F = (e) => N === 1 || ((e - P) % N + N) % N === 0, I = (t, n) => {
|
|
10178
10282
|
if (o) {
|
|
10179
10283
|
let e = o(t);
|
|
10180
10284
|
return e ? {
|
|
@@ -10341,7 +10445,7 @@ function qs({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
10341
10445
|
}
|
|
10342
10446
|
//#endregion
|
|
10343
10447
|
//#region src/SelectChartLegend.tsx
|
|
10344
|
-
function
|
|
10448
|
+
function Xs({ items: e, className: t, ...n }) {
|
|
10345
10449
|
return /* @__PURE__ */ m("div", {
|
|
10346
10450
|
...n,
|
|
10347
10451
|
className: `select-chartlegend${t ? " " + t : ""}`,
|
|
@@ -10370,7 +10474,7 @@ function Js({ items: e, className: t, ...n }) {
|
|
|
10370
10474
|
}
|
|
10371
10475
|
//#endregion
|
|
10372
10476
|
//#region src/SelectShareBar.tsx
|
|
10373
|
-
function
|
|
10477
|
+
function Zs({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm", onSelect: a, selected: o, hint: s, className: c, ...l }) {
|
|
10374
10478
|
let u = e.map((e, t) => ({
|
|
10375
10479
|
...e,
|
|
10376
10480
|
key: e.key ?? e.label,
|
|
@@ -10475,7 +10579,7 @@ function Ys({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm",
|
|
|
10475
10579
|
}
|
|
10476
10580
|
//#endregion
|
|
10477
10581
|
//#region src/SelectRing.tsx
|
|
10478
|
-
var
|
|
10582
|
+
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) {
|
|
10479
10583
|
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 = {
|
|
10480
10584
|
"--select-ring-size": `${n / 16}rem`,
|
|
10481
10585
|
...u
|
|
@@ -10519,7 +10623,7 @@ var Xs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10519
10623
|
})]
|
|
10520
10624
|
})]
|
|
10521
10625
|
});
|
|
10522
|
-
}),
|
|
10626
|
+
}), $s = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
|
|
10523
10627
|
let l = (t) => {
|
|
10524
10628
|
let n = e[t];
|
|
10525
10629
|
return n != null && n.state !== "upcoming";
|
|
@@ -10577,7 +10681,7 @@ var Xs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10577
10681
|
})
|
|
10578
10682
|
})
|
|
10579
10683
|
});
|
|
10580
|
-
}),
|
|
10684
|
+
}), ec = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
|
|
10581
10685
|
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;
|
|
10582
10686
|
return /* @__PURE__ */ h("span", {
|
|
10583
10687
|
ref: o,
|
|
@@ -10593,7 +10697,7 @@ var Xs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10593
10697
|
children: l
|
|
10594
10698
|
})]
|
|
10595
10699
|
});
|
|
10596
|
-
}),
|
|
10700
|
+
}), tc = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
|
|
10597
10701
|
return /* @__PURE__ */ m("span", {
|
|
10598
10702
|
ref: a,
|
|
10599
10703
|
"aria-hidden": "true",
|
|
@@ -10601,7 +10705,7 @@ var Xs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10601
10705
|
className: `select-icontile select-icontile--${t} select-icontile--${n}${r ? " " + r : ""}`,
|
|
10602
10706
|
children: e
|
|
10603
10707
|
});
|
|
10604
|
-
}),
|
|
10708
|
+
}), nc = r(function({ tone: e = "neutral", media: t, eyebrow: n, title: r, description: i, actions: a, actionsPlacement: o = "below", aside: s, size: c = "md", mediaInline: l = !1, children: u, className: d, ...f }, p) {
|
|
10605
10709
|
let g = a != null && o === "end";
|
|
10606
10710
|
return /* @__PURE__ */ m("section", {
|
|
10607
10711
|
ref: p,
|
|
@@ -10649,7 +10753,7 @@ var Xs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10649
10753
|
})]
|
|
10650
10754
|
})
|
|
10651
10755
|
});
|
|
10652
|
-
}),
|
|
10756
|
+
}), rc = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
|
|
10653
10757
|
return /* @__PURE__ */ h("article", {
|
|
10654
10758
|
ref: l,
|
|
10655
10759
|
...c,
|
|
@@ -10684,7 +10788,7 @@ var Xs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10684
10788
|
})]
|
|
10685
10789
|
})]
|
|
10686
10790
|
});
|
|
10687
|
-
}),
|
|
10791
|
+
}), ic = r(function({ items: e, order: t = "label-first", columns: n, className: r, ...i }, a) {
|
|
10688
10792
|
return /* @__PURE__ */ m("dl", {
|
|
10689
10793
|
ref: a,
|
|
10690
10794
|
...i,
|
|
@@ -10707,7 +10811,7 @@ var Xs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10707
10811
|
]
|
|
10708
10812
|
}, e.key ?? t))
|
|
10709
10813
|
});
|
|
10710
|
-
}),
|
|
10814
|
+
}), ac = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
|
|
10711
10815
|
let o = (t ?? "").replace(/\D/g, "").slice(-4);
|
|
10712
10816
|
return /* @__PURE__ */ h("div", {
|
|
10713
10817
|
ref: a,
|
|
@@ -10750,7 +10854,7 @@ var Xs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10750
10854
|
})
|
|
10751
10855
|
]
|
|
10752
10856
|
});
|
|
10753
|
-
}),
|
|
10857
|
+
}), oc = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
|
|
10754
10858
|
let s = Math.max(1, ...e.map((e) => e.value));
|
|
10755
10859
|
return /* @__PURE__ */ m("div", {
|
|
10756
10860
|
ref: o,
|
|
@@ -10792,19 +10896,19 @@ var Xs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10792
10896
|
});
|
|
10793
10897
|
//#endregion
|
|
10794
10898
|
//#region src/SelectGauge.tsx
|
|
10795
|
-
function
|
|
10899
|
+
function sc(e) {
|
|
10796
10900
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
10797
10901
|
}
|
|
10798
|
-
function
|
|
10902
|
+
function cc(e, t, n, r) {
|
|
10799
10903
|
let i = Math.PI + r * Math.PI;
|
|
10800
10904
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
10801
10905
|
}
|
|
10802
|
-
function
|
|
10803
|
-
let [a, o] =
|
|
10906
|
+
function lc(e, t, n, r, i) {
|
|
10907
|
+
let [a, o] = cc(e, t, n, r), [s, c] = cc(e, t, n, i);
|
|
10804
10908
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
10805
10909
|
}
|
|
10806
|
-
var
|
|
10807
|
-
let u =
|
|
10910
|
+
var uc = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, dc = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = uc, className: s, ...c }, l) {
|
|
10911
|
+
let u = sc(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 = kn({
|
|
10808
10912
|
value: u,
|
|
10809
10913
|
format: o
|
|
10810
10914
|
});
|
|
@@ -10827,13 +10931,13 @@ var cc = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10827
10931
|
"aria-hidden": "true",
|
|
10828
10932
|
children: [/* @__PURE__ */ m("path", {
|
|
10829
10933
|
className: "select-gauge__track",
|
|
10830
|
-
d:
|
|
10934
|
+
d: lc(g, _, p, 0, 1),
|
|
10831
10935
|
fill: "none",
|
|
10832
10936
|
strokeWidth: d,
|
|
10833
10937
|
strokeLinecap: "round"
|
|
10834
10938
|
}), u > 0 && /* @__PURE__ */ m("path", {
|
|
10835
10939
|
className: "select-gauge__arc",
|
|
10836
|
-
d:
|
|
10940
|
+
d: lc(g, _, p, 0, u / 100),
|
|
10837
10941
|
fill: "none",
|
|
10838
10942
|
stroke: a ?? "var(--select-chart-1)",
|
|
10839
10943
|
strokeWidth: d,
|
|
@@ -10856,7 +10960,7 @@ var cc = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10856
10960
|
children: n
|
|
10857
10961
|
})]
|
|
10858
10962
|
});
|
|
10859
|
-
}),
|
|
10963
|
+
}), fc = 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) {
|
|
10860
10964
|
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 = {
|
|
10861
10965
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
10862
10966
|
width: "fit-content",
|
|
@@ -10916,12 +11020,12 @@ var cc = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10916
11020
|
}, c);
|
|
10917
11021
|
})] }, n.label))
|
|
10918
11022
|
]
|
|
10919
|
-
}), /* @__PURE__ */ m(
|
|
11023
|
+
}), /* @__PURE__ */ m(Vs, {
|
|
10920
11024
|
tip: _.tip,
|
|
10921
11025
|
onDismiss: _.hide
|
|
10922
11026
|
})]
|
|
10923
11027
|
});
|
|
10924
|
-
}),
|
|
11028
|
+
}), pc = r(function({ tiles: e, color: t = "var(--select-chart-1)", tileSize: n = 36, gap: r = 5, format: i = (e) => String(e), legend: a = !0, className: o, style: s, ...c }, l) {
|
|
10925
11029
|
let u = Q(), d = Math.max(0, ...e.map((e) => e.value ?? 0)), f = Math.max(0, ...e.map((e) => e.col)) + 1, p = Math.max(0, ...e.map((e) => e.row)) + 1, g = n + r, _ = {
|
|
10926
11030
|
width: f * g - r,
|
|
10927
11031
|
height: p * g - r
|
|
@@ -10983,13 +11087,13 @@ var cc = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10983
11087
|
/* @__PURE__ */ m("span", { children: "mais" })
|
|
10984
11088
|
]
|
|
10985
11089
|
}),
|
|
10986
|
-
/* @__PURE__ */ m(
|
|
11090
|
+
/* @__PURE__ */ m(Vs, {
|
|
10987
11091
|
tip: u.tip,
|
|
10988
11092
|
onDismiss: u.hide
|
|
10989
11093
|
})
|
|
10990
11094
|
]
|
|
10991
11095
|
});
|
|
10992
|
-
}),
|
|
11096
|
+
}), mc = [
|
|
10993
11097
|
{
|
|
10994
11098
|
key: "RR",
|
|
10995
11099
|
label: "RR",
|
|
@@ -11182,7 +11286,7 @@ var cc = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
11182
11286
|
];
|
|
11183
11287
|
//#endregion
|
|
11184
11288
|
//#region src/SelectProgressList.tsx
|
|
11185
|
-
function
|
|
11289
|
+
function hc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1, max: a }) {
|
|
11186
11290
|
if (e.length === 0) return /* @__PURE__ */ m("div", {
|
|
11187
11291
|
className: "select-progresslist__empty",
|
|
11188
11292
|
children: r
|
|
@@ -11233,7 +11337,7 @@ function pc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
11233
11337
|
}
|
|
11234
11338
|
//#endregion
|
|
11235
11339
|
//#region src/SelectRadialBar.tsx
|
|
11236
|
-
var
|
|
11340
|
+
var gc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, _c = 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) {
|
|
11237
11341
|
let d = s(), f = t / 2, p = t / 2;
|
|
11238
11342
|
return /* @__PURE__ */ h("div", {
|
|
11239
11343
|
ref: u,
|
|
@@ -11273,7 +11377,7 @@ var mc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, hc = r(f
|
|
|
11273
11377
|
}) }), e.map((e, i) => {
|
|
11274
11378
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
11275
11379
|
if (a <= n / 2) return null;
|
|
11276
|
-
let o =
|
|
11380
|
+
let o = gc(e.value);
|
|
11277
11381
|
return /* @__PURE__ */ h("g", {
|
|
11278
11382
|
transform: `rotate(-90 ${f} ${p})`,
|
|
11279
11383
|
children: [/* @__PURE__ */ m("circle", {
|
|
@@ -11302,7 +11406,7 @@ var mc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, hc = r(f
|
|
|
11302
11406
|
className: "select-radial__center",
|
|
11303
11407
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ m("strong", {
|
|
11304
11408
|
className: "select-radial__value",
|
|
11305
|
-
children: i(
|
|
11409
|
+
children: i(gc(e[0].value))
|
|
11306
11410
|
}) : null)
|
|
11307
11411
|
})]
|
|
11308
11412
|
}), o && /* @__PURE__ */ m("ul", {
|
|
@@ -11320,15 +11424,15 @@ var mc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, hc = r(f
|
|
|
11320
11424
|
}),
|
|
11321
11425
|
/* @__PURE__ */ m("span", {
|
|
11322
11426
|
className: "select-donut__legval",
|
|
11323
|
-
children: i(
|
|
11427
|
+
children: i(gc(e.value))
|
|
11324
11428
|
})
|
|
11325
11429
|
]
|
|
11326
11430
|
}, t))
|
|
11327
11431
|
})]
|
|
11328
11432
|
});
|
|
11329
|
-
}),
|
|
11330
|
-
function
|
|
11331
|
-
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Y(d), g = Q(), _ = s(), v = c && c > 0 ? c :
|
|
11433
|
+
}), vc = 6.1, yc = 12, bc = 56, xc = .4;
|
|
11434
|
+
function Sc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
|
|
11435
|
+
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Y(d), g = Q(), _ = s(), v = c && c > 0 ? c : ks(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(bc, y * vc + yc), Math.max(bc, p * xc)), x = o ?? b, S = Math.max(3, Math.floor((x - yc) / vc)), 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));
|
|
11332
11436
|
return /* @__PURE__ */ h("div", {
|
|
11333
11437
|
...u,
|
|
11334
11438
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -11357,7 +11461,7 @@ function bc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
11357
11461
|
})]
|
|
11358
11462
|
}, t);
|
|
11359
11463
|
}) }),
|
|
11360
|
-
|
|
11464
|
+
As(v).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
11361
11465
|
x1: O(e),
|
|
11362
11466
|
x2: O(e),
|
|
11363
11467
|
y1: 6,
|
|
@@ -11403,7 +11507,7 @@ function bc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
11403
11507
|
onMouseLeave: g.hide
|
|
11404
11508
|
}),
|
|
11405
11509
|
/* @__PURE__ */ h("text", {
|
|
11406
|
-
x: x -
|
|
11510
|
+
x: x - yc / 2,
|
|
11407
11511
|
y: n,
|
|
11408
11512
|
className: "select-chart__ylabel",
|
|
11409
11513
|
dominantBaseline: "middle",
|
|
@@ -11418,7 +11522,7 @@ function bc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
11418
11522
|
}
|
|
11419
11523
|
//#endregion
|
|
11420
11524
|
//#region src/SelectWaterfall.tsx
|
|
11421
|
-
function
|
|
11525
|
+
function Cc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11422
11526
|
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
11423
11527
|
if (e.total) return u = e.value, {
|
|
11424
11528
|
...e,
|
|
@@ -11431,7 +11535,7 @@ function xc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11431
11535
|
start: t,
|
|
11432
11536
|
end: u
|
|
11433
11537
|
};
|
|
11434
|
-
}), f =
|
|
11538
|
+
}), f = ks(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = zs, g = Math.max(0, o - p.left - p.right), _ = t - p.top - p.bottom, v = p.top + _, y = e.length, b = y ? g / y : 0, x = Math.min(b * .6, 46), S = (e) => v - e / f * _, C = {
|
|
11435
11539
|
total: "var(--select-chart-1)",
|
|
11436
11540
|
inc: "var(--select-chart-4)",
|
|
11437
11541
|
dec: "var(--select-chart-3)"
|
|
@@ -11465,7 +11569,7 @@ function xc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11465
11569
|
stopOpacity: .62
|
|
11466
11570
|
})]
|
|
11467
11571
|
}, e)) }),
|
|
11468
|
-
|
|
11572
|
+
As(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
11469
11573
|
x1: p.left,
|
|
11470
11574
|
x2: o - p.right,
|
|
11471
11575
|
y1: S(e),
|
|
@@ -11533,7 +11637,7 @@ function xc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11533
11637
|
}
|
|
11534
11638
|
//#endregion
|
|
11535
11639
|
//#region src/SelectBullet.tsx
|
|
11536
|
-
var
|
|
11640
|
+
var wc = (e) => Math.max(0, Math.min(100, e)), Tc = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
11537
11641
|
return /* @__PURE__ */ m("div", {
|
|
11538
11642
|
ref: i,
|
|
11539
11643
|
...r,
|
|
@@ -11571,12 +11675,12 @@ var Sc = (e) => Math.max(0, Math.min(100, e)), Cc = r(function({ items: e, forma
|
|
|
11571
11675
|
children: [/* @__PURE__ */ m("span", {
|
|
11572
11676
|
className: "select-bullet__fill",
|
|
11573
11677
|
style: {
|
|
11574
|
-
width: `${
|
|
11678
|
+
width: `${wc(e.value / i * 100)}%`,
|
|
11575
11679
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
11576
11680
|
}
|
|
11577
11681
|
}), /* @__PURE__ */ m("span", {
|
|
11578
11682
|
className: "select-bullet__tick",
|
|
11579
|
-
style: { left: `${
|
|
11683
|
+
style: { left: `${wc(e.target / i * 100)}%` }
|
|
11580
11684
|
})]
|
|
11581
11685
|
})]
|
|
11582
11686
|
}, `${e.label}-${n}`);
|
|
@@ -11585,7 +11689,7 @@ var Sc = (e) => Math.max(0, Math.min(100, e)), Cc = r(function({ items: e, forma
|
|
|
11585
11689
|
});
|
|
11586
11690
|
//#endregion
|
|
11587
11691
|
//#region src/SelectTreemap.tsx
|
|
11588
|
-
function
|
|
11692
|
+
function Ec(e, t, n) {
|
|
11589
11693
|
let r = [], i = (e, t) => {
|
|
11590
11694
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
11591
11695
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -11636,8 +11740,8 @@ function wc(e, t, n) {
|
|
|
11636
11740
|
};
|
|
11637
11741
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
11638
11742
|
}
|
|
11639
|
-
function
|
|
11640
|
-
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 ?
|
|
11743
|
+
function Dc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11744
|
+
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 ? Ec(u.map((t) => e[t].value), o, t) : [];
|
|
11641
11745
|
return /* @__PURE__ */ h("div", {
|
|
11642
11746
|
...i,
|
|
11643
11747
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -11707,8 +11811,8 @@ function Tc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11707
11811
|
}
|
|
11708
11812
|
//#endregion
|
|
11709
11813
|
//#region src/SelectScatter.tsx
|
|
11710
|
-
function
|
|
11711
|
-
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p =
|
|
11814
|
+
function Oc({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
11815
|
+
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p = ks(i ?? Math.max(0, ...f.map((e) => e.x))), g = ks(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = zs, 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;
|
|
11712
11816
|
return /* @__PURE__ */ h("div", {
|
|
11713
11817
|
...c,
|
|
11714
11818
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -11718,7 +11822,7 @@ function Ec({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
11718
11822
|
height: t,
|
|
11719
11823
|
className: "select-chart",
|
|
11720
11824
|
children: [
|
|
11721
|
-
|
|
11825
|
+
As(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
11722
11826
|
x1: v.left,
|
|
11723
11827
|
x2: u - v.right,
|
|
11724
11828
|
y1: C(e),
|
|
@@ -11732,7 +11836,7 @@ function Ec({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
11732
11836
|
textAnchor: "end",
|
|
11733
11837
|
children: r(e)
|
|
11734
11838
|
})] }, `y${t}`)),
|
|
11735
|
-
|
|
11839
|
+
As(p).map((e, r, i) => /* @__PURE__ */ m("text", {
|
|
11736
11840
|
x: S(e),
|
|
11737
11841
|
y: t - v.bottom + 16,
|
|
11738
11842
|
className: "select-chart__xlabel",
|
|
@@ -11779,8 +11883,8 @@ function Ec({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
11779
11883
|
}
|
|
11780
11884
|
//#endregion
|
|
11781
11885
|
//#region src/SelectRadar.tsx
|
|
11782
|
-
var
|
|
11783
|
-
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ??
|
|
11886
|
+
var kc = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
|
|
11887
|
+
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? ks(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";
|
|
11784
11888
|
return /* @__PURE__ */ h("div", {
|
|
11785
11889
|
ref: u,
|
|
11786
11890
|
...l,
|
|
@@ -11889,7 +11993,7 @@ var Dc = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
11889
11993
|
});
|
|
11890
11994
|
//#endregion
|
|
11891
11995
|
//#region src/SelectSankey.tsx
|
|
11892
|
-
function
|
|
11996
|
+
function Ac({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
11893
11997
|
let { ref: s, width: c } = Y(t), l = Q(), u = [], d = [];
|
|
11894
11998
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
11895
11999
|
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) => {
|
|
@@ -11974,8 +12078,8 @@ function Oc({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
11974
12078
|
}
|
|
11975
12079
|
//#endregion
|
|
11976
12080
|
//#region src/SelectCandlestick.tsx
|
|
11977
|
-
function
|
|
11978
|
-
let { ref: s, width: c } = Y(t), l = Q(), u =
|
|
12081
|
+
function jc({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
12082
|
+
let { ref: s, width: c } = Y(t), l = Q(), u = zs, 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);
|
|
11979
12083
|
return /* @__PURE__ */ h("div", {
|
|
11980
12084
|
...o,
|
|
11981
12085
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -12064,8 +12168,8 @@ function kc({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
12064
12168
|
}
|
|
12065
12169
|
//#endregion
|
|
12066
12170
|
//#region src/SelectBoxPlot.tsx
|
|
12067
|
-
function
|
|
12068
|
-
let { ref: a, width: o } = Y(t), s = Q(), c =
|
|
12171
|
+
function Mc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
12172
|
+
let { ref: a, width: o } = Y(t), s = Q(), c = zs, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = ks(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);
|
|
12069
12173
|
return /* @__PURE__ */ h("div", {
|
|
12070
12174
|
...i,
|
|
12071
12175
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -12074,7 +12178,7 @@ function Ac({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
12074
12178
|
width: o,
|
|
12075
12179
|
height: t,
|
|
12076
12180
|
className: "select-chart",
|
|
12077
|
-
children: [
|
|
12181
|
+
children: [As(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
12078
12182
|
x1: c.left,
|
|
12079
12183
|
x2: o - c.right,
|
|
12080
12184
|
y1: p(e),
|
|
@@ -12184,7 +12288,7 @@ function Ac({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
12184
12288
|
}
|
|
12185
12289
|
//#endregion
|
|
12186
12290
|
//#region src/SelectRangeBar.tsx
|
|
12187
|
-
function
|
|
12291
|
+
function Nc({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
12188
12292
|
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);
|
|
12189
12293
|
return /* @__PURE__ */ h("div", {
|
|
12190
12294
|
...c,
|
|
@@ -12265,7 +12369,7 @@ function jc({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
12265
12369
|
}
|
|
12266
12370
|
//#endregion
|
|
12267
12371
|
//#region src/SelectCalendarHeatmap.tsx
|
|
12268
|
-
var
|
|
12372
|
+
var Pc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
12269
12373
|
"Seg",
|
|
12270
12374
|
"",
|
|
12271
12375
|
"Qua",
|
|
@@ -12338,8 +12442,8 @@ var Mc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
12338
12442
|
]
|
|
12339
12443
|
}), /* @__PURE__ */ m($, { tip: p.tip })]
|
|
12340
12444
|
});
|
|
12341
|
-
}),
|
|
12342
|
-
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p =
|
|
12445
|
+
}), Fc = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
12446
|
+
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = ks(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;
|
|
12343
12447
|
return /* @__PURE__ */ h("div", {
|
|
12344
12448
|
ref: s,
|
|
12345
12449
|
...o,
|
|
@@ -12369,7 +12473,7 @@ var Mc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
12369
12473
|
}, t)), e.map((e, t) => {
|
|
12370
12474
|
let r = t * _, i = (t + 1) * _ - 1.5, a = e.color ?? X(t), o = Math.max(2, g(e.value)), s = ((r + i) / 2 - 90) * (Math.PI / 180), d = l + o * Math.cos(s), f = u + o * Math.sin(s);
|
|
12371
12475
|
return /* @__PURE__ */ m("path", {
|
|
12372
|
-
d:
|
|
12476
|
+
d: Ls(l, u, o, 0, r, i),
|
|
12373
12477
|
fill: a,
|
|
12374
12478
|
fillOpacity: .8,
|
|
12375
12479
|
className: "select-chart__seg",
|
|
@@ -12412,13 +12516,13 @@ var Mc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
12412
12516
|
});
|
|
12413
12517
|
//#endregion
|
|
12414
12518
|
//#region src/SelectSlope.tsx
|
|
12415
|
-
function
|
|
12519
|
+
function Ic({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
12416
12520
|
let { ref: s, width: c } = Y(r), l = Q(), u = {
|
|
12417
12521
|
top: 24,
|
|
12418
12522
|
right: 64,
|
|
12419
12523
|
bottom: 12,
|
|
12420
12524
|
left: 132
|
|
12421
|
-
}, d =
|
|
12525
|
+
}, d = ks(Math.max(1, ...e.flatMap((e) => [e.left, e.right]))), f = r - u.top - u.bottom, p = (e) => u.top + f - e / d * f, g = u.left, _ = c - u.right;
|
|
12422
12526
|
return /* @__PURE__ */ h("div", {
|
|
12423
12527
|
...o,
|
|
12424
12528
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -12534,8 +12638,8 @@ function Pc({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
12534
12638
|
}
|
|
12535
12639
|
//#endregion
|
|
12536
12640
|
//#region src/SelectDumbbell.tsx
|
|
12537
|
-
function
|
|
12538
|
-
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 =
|
|
12641
|
+
function Lc({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
12642
|
+
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 = ks(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;
|
|
12539
12643
|
return /* @__PURE__ */ h("div", {
|
|
12540
12644
|
...s,
|
|
12541
12645
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -12544,7 +12648,7 @@ function Fc({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
12544
12648
|
width: u,
|
|
12545
12649
|
height: c,
|
|
12546
12650
|
className: "select-chart",
|
|
12547
|
-
children: [
|
|
12651
|
+
children: [As(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
12548
12652
|
x1: x(e),
|
|
12549
12653
|
x2: x(e),
|
|
12550
12654
|
y1: 6,
|
|
@@ -12627,7 +12731,7 @@ function Fc({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
12627
12731
|
}
|
|
12628
12732
|
//#endregion
|
|
12629
12733
|
//#region src/SelectMarimekko.tsx
|
|
12630
|
-
function
|
|
12734
|
+
function Rc({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
12631
12735
|
let { ref: o, width: s } = Y(t), c = Q(), l = {
|
|
12632
12736
|
top: 6,
|
|
12633
12737
|
right: 6,
|
|
@@ -12707,7 +12811,7 @@ function Ic({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
12707
12811
|
}
|
|
12708
12812
|
//#endregion
|
|
12709
12813
|
//#region src/SelectGaugeBands.tsx
|
|
12710
|
-
var
|
|
12814
|
+
var zc = 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) {
|
|
12711
12815
|
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) => {
|
|
12712
12816
|
let t = Math.PI + e * Math.PI;
|
|
12713
12817
|
return [p + f * Math.cos(t), g + f * Math.sin(t)];
|
|
@@ -12779,7 +12883,7 @@ var Lc = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
12779
12883
|
});
|
|
12780
12884
|
//#endregion
|
|
12781
12885
|
//#region src/SelectStreamGraph.tsx
|
|
12782
|
-
function
|
|
12886
|
+
function Bc({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
12783
12887
|
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = {
|
|
12784
12888
|
top: 14,
|
|
12785
12889
|
right: 14,
|
|
@@ -12823,7 +12927,7 @@ function Rc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
12823
12927
|
})]
|
|
12824
12928
|
}, t)) }),
|
|
12825
12929
|
w.map((e, t) => /* @__PURE__ */ m("path", {
|
|
12826
|
-
d:
|
|
12930
|
+
d: Fs(e.upper, e.lower),
|
|
12827
12931
|
fill: `url(#${u}-st${t})`,
|
|
12828
12932
|
className: "select-chart__area"
|
|
12829
12933
|
}, t)),
|
|
@@ -12870,7 +12974,7 @@ function Rc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
12870
12974
|
}
|
|
12871
12975
|
//#endregion
|
|
12872
12976
|
//#region src/SelectSunburst.tsx
|
|
12873
|
-
var
|
|
12977
|
+
var Vc = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
12874
12978
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
12875
12979
|
var t;
|
|
12876
12980
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -12896,7 +13000,7 @@ var zc = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
12896
13000
|
_ += r;
|
|
12897
13001
|
let a = _ / g * 360, o = e.color ?? X(t), v = i;
|
|
12898
13002
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
12899
|
-
d:
|
|
13003
|
+
d: Ls(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
12900
13004
|
fill: o,
|
|
12901
13005
|
className: "select-chart__seg",
|
|
12902
13006
|
onMouseEnter: () => s.show({
|
|
@@ -12916,7 +13020,7 @@ var zc = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
12916
13020
|
v += t.value / g * 360;
|
|
12917
13021
|
let f = v, p = t.color ?? o, h = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
12918
13022
|
return /* @__PURE__ */ m("path", {
|
|
12919
|
-
d:
|
|
13023
|
+
d: Ls(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
12920
13024
|
fill: p,
|
|
12921
13025
|
fillOpacity: h,
|
|
12922
13026
|
className: "select-chart__seg",
|
|
@@ -12963,8 +13067,8 @@ var zc = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
12963
13067
|
});
|
|
12964
13068
|
//#endregion
|
|
12965
13069
|
//#region src/SelectViolin.tsx
|
|
12966
|
-
function
|
|
12967
|
-
let { ref: a, width: o } = Y(t), s = Q(), c =
|
|
13070
|
+
function Hc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
13071
|
+
let { ref: a, width: o } = Y(t), s = Q(), c = zs, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = ks(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));
|
|
12968
13072
|
return /* @__PURE__ */ h("div", {
|
|
12969
13073
|
...i,
|
|
12970
13074
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -12973,7 +13077,7 @@ function Bc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
12973
13077
|
width: o,
|
|
12974
13078
|
height: t,
|
|
12975
13079
|
className: "select-chart",
|
|
12976
|
-
children: [
|
|
13080
|
+
children: [As(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
12977
13081
|
x1: c.left,
|
|
12978
13082
|
x2: o - c.right,
|
|
12979
13083
|
y1: p(e),
|
|
@@ -12990,7 +13094,7 @@ function Bc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
12990
13094
|
let i = c.left + _ * r + _ / 2, a = e.color ?? X(r), o = e.bins.length, l = (t) => p(e.min + (e.max - e.min) * t / Math.max(1, o - 1)), d = (t) => e.bins[t] / y * v, f = [], g = [];
|
|
12991
13095
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
12992
13096
|
for (let e = 0; e < o; e++) g.push([i - d(e), l(e)]);
|
|
12993
|
-
let b = `${
|
|
13097
|
+
let b = `${Ms(f)} ${Ms(g).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
12994
13098
|
return /* @__PURE__ */ h("g", { children: [
|
|
12995
13099
|
/* @__PURE__ */ m("path", {
|
|
12996
13100
|
d: b,
|
|
@@ -13051,7 +13155,7 @@ function Bc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13051
13155
|
}
|
|
13052
13156
|
//#endregion
|
|
13053
13157
|
//#region src/SelectChord.tsx
|
|
13054
|
-
var
|
|
13158
|
+
var Uc = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
13055
13159
|
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;
|
|
13056
13160
|
for (let e = 0; e < l; e++) {
|
|
13057
13161
|
let t = b, n = b + g[e] * v;
|
|
@@ -13118,7 +13222,7 @@ var Vc = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
13118
13222
|
}, n)), y.map((e, n) => {
|
|
13119
13223
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
13120
13224
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
13121
|
-
d:
|
|
13225
|
+
d: Ls(u, d, f, p, w(e.a0), w(e.a1)),
|
|
13122
13226
|
fill: X(n),
|
|
13123
13227
|
className: "select-chord__arc"
|
|
13124
13228
|
}), /* @__PURE__ */ m("text", {
|
|
@@ -13136,7 +13240,7 @@ var Vc = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
13136
13240
|
});
|
|
13137
13241
|
//#endregion
|
|
13138
13242
|
//#region src/SelectHexbin.tsx
|
|
13139
|
-
function
|
|
13243
|
+
function Wc({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
13140
13244
|
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) => {
|
|
13141
13245
|
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);
|
|
13142
13246
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
@@ -13188,7 +13292,7 @@ function Hc({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
13188
13292
|
}
|
|
13189
13293
|
//#endregion
|
|
13190
13294
|
//#region src/SelectWordCloud.tsx
|
|
13191
|
-
var
|
|
13295
|
+
var Gc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
13192
13296
|
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);
|
|
13193
13297
|
return /* @__PURE__ */ m("div", {
|
|
13194
13298
|
ref: a,
|
|
@@ -13205,7 +13309,7 @@ var Uc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
13205
13309
|
children: e.text
|
|
13206
13310
|
}, `${e.text}-${t}`))
|
|
13207
13311
|
});
|
|
13208
|
-
}),
|
|
13312
|
+
}), Kc = [
|
|
13209
13313
|
[
|
|
13210
13314
|
-59.6,
|
|
13211
13315
|
-80,
|
|
@@ -23600,24 +23704,24 @@ var Uc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
23600
23704
|
-27.1,
|
|
23601
23705
|
83.5
|
|
23602
23706
|
]
|
|
23603
|
-
],
|
|
23604
|
-
function
|
|
23605
|
-
let n = e *
|
|
23707
|
+
], qc = Math.PI / 180;
|
|
23708
|
+
function Jc(e, t) {
|
|
23709
|
+
let n = e * qc, r = t * qc;
|
|
23606
23710
|
return [
|
|
23607
23711
|
Math.cos(n) * Math.sin(r),
|
|
23608
23712
|
Math.sin(n),
|
|
23609
23713
|
Math.cos(n) * Math.cos(r)
|
|
23610
23714
|
];
|
|
23611
23715
|
}
|
|
23612
|
-
function
|
|
23613
|
-
let a = r *
|
|
23716
|
+
function Yc([e, t, n], r, i) {
|
|
23717
|
+
let a = r * qc, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * qc;
|
|
23614
23718
|
return [
|
|
23615
23719
|
o,
|
|
23616
23720
|
t * Math.cos(c) - s * Math.sin(c),
|
|
23617
23721
|
t * Math.sin(c) + s * Math.cos(c)
|
|
23618
23722
|
];
|
|
23619
23723
|
}
|
|
23620
|
-
function
|
|
23724
|
+
function Xc(e, t, n) {
|
|
23621
23725
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
23622
23726
|
r = Math.max(-1, Math.min(1, r));
|
|
23623
23727
|
let i = Math.acos(r);
|
|
@@ -23629,9 +23733,9 @@ function Jc(e, t, n) {
|
|
|
23629
23733
|
e[2] * o + t[2] * s
|
|
23630
23734
|
];
|
|
23631
23735
|
}
|
|
23632
|
-
var
|
|
23736
|
+
var Zc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, Qc = 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) {
|
|
23633
23737
|
var S, C;
|
|
23634
|
-
let w = s(), T = Q(), E = u(null), D =
|
|
23738
|
+
let w = s(), T = Q(), E = u(null), D = Os(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({
|
|
23635
23739
|
lng: -O,
|
|
23636
23740
|
lat: r
|
|
23637
23741
|
}), j = u({
|
|
@@ -23690,7 +23794,7 @@ var Yc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23690
23794
|
var t, n;
|
|
23691
23795
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, R(!1), V());
|
|
23692
23796
|
}, W = (D / 2 - 6) * M.current, G = D / 2, K = D / 2, oe = (e) => {
|
|
23693
|
-
let t =
|
|
23797
|
+
let t = Yc(e, A.current.lng, A.current.lat);
|
|
23694
23798
|
return {
|
|
23695
23799
|
x: G + W * t[0],
|
|
23696
23800
|
y: K - W * t[1],
|
|
@@ -23700,25 +23804,25 @@ var Yc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23700
23804
|
let e = [];
|
|
23701
23805
|
for (let t = -180; t < 180; t += 30) {
|
|
23702
23806
|
let n = [];
|
|
23703
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
23807
|
+
for (let e = 0; e <= 48; e++) n.push(Jc(-90 + 180 * e / 48, t));
|
|
23704
23808
|
e.push(n);
|
|
23705
23809
|
}
|
|
23706
23810
|
for (let t = -60; t <= 60; t += 30) {
|
|
23707
23811
|
let n = [];
|
|
23708
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
23812
|
+
for (let e = 0; e <= 48; e++) n.push(Jc(t, -180 + 360 * e / 48));
|
|
23709
23813
|
e.push(n);
|
|
23710
23814
|
}
|
|
23711
23815
|
return e;
|
|
23712
|
-
}, []), ce = l(() =>
|
|
23816
|
+
}, []), ce = l(() => Kc.map((e) => {
|
|
23713
23817
|
let t = [];
|
|
23714
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
23818
|
+
for (let n = 0; n < e.length; n += 2) t.push(Jc(e[n + 1], e[n]));
|
|
23715
23819
|
return t;
|
|
23716
23820
|
}), []), q = (e) => ({
|
|
23717
23821
|
x: G + W * e[0],
|
|
23718
23822
|
y: K - W * e[1]
|
|
23719
23823
|
}), le = "", ue = "";
|
|
23720
23824
|
if (g) for (let e of ce) {
|
|
23721
|
-
let t = e.map((e) =>
|
|
23825
|
+
let t = e.map((e) => Yc(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
23722
23826
|
for (let e of t) if (e[2] > 0) {
|
|
23723
23827
|
let t = q(e);
|
|
23724
23828
|
ue += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -23766,7 +23870,7 @@ var Yc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23766
23870
|
}
|
|
23767
23871
|
return t;
|
|
23768
23872
|
}, fe = Math.max(1, ...e.map((e) => e.value ?? 0)), pe = e.map((e, t) => {
|
|
23769
|
-
let n = oe(
|
|
23873
|
+
let n = oe(Jc(e.lat, e.lng));
|
|
23770
23874
|
return {
|
|
23771
23875
|
...e,
|
|
23772
23876
|
i: t,
|
|
@@ -23776,20 +23880,20 @@ var Yc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23776
23880
|
col: e.color ?? c
|
|
23777
23881
|
};
|
|
23778
23882
|
}), me = z == null ? null : e[z], he = t.map((e, t) => {
|
|
23779
|
-
let n =
|
|
23883
|
+
let n = Jc(e.from.lat, e.from.lng), r = Jc(e.to.lat, e.to.lng), i = "", a = !1;
|
|
23780
23884
|
for (let e = 0; e <= 40; e++) {
|
|
23781
|
-
let t = e / 40, o =
|
|
23885
|
+
let t = e / 40, o = Xc(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = Yc(o, A.current.lng, A.current.lat), l = oe([
|
|
23782
23886
|
o[0] * s,
|
|
23783
23887
|
o[1] * s,
|
|
23784
23888
|
o[2] * s
|
|
23785
23889
|
]);
|
|
23786
23890
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
23787
23891
|
}
|
|
23788
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
23892
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = Xc(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = Yc(s, A.current.lng, A.current.lat), d = oe([
|
|
23789
23893
|
s[0] * l,
|
|
23790
23894
|
s[1] * l,
|
|
23791
23895
|
s[2] * l
|
|
23792
|
-
]), f = me != null && (
|
|
23896
|
+
]), f = me != null && (Zc(e.from, me) || Zc(e.to, me));
|
|
23793
23897
|
return {
|
|
23794
23898
|
d: i,
|
|
23795
23899
|
col: e.color ?? c,
|
|
@@ -24063,8 +24167,8 @@ var Yc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
24063
24167
|
});
|
|
24064
24168
|
//#endregion
|
|
24065
24169
|
//#region src/SelectTicker.tsx
|
|
24066
|
-
function
|
|
24067
|
-
let i = u(null), a = u(null), s = u(null), c =
|
|
24170
|
+
function $c({ children: e, speed: t = 28, className: n, ...r }) {
|
|
24171
|
+
let i = u(null), a = u(null), s = u(null), c = Os(i, 0), l = Os(s, 0), d = c > 0 && l > c + 1, f = u(0), p = u(null), g = u(!1);
|
|
24068
24172
|
o(() => {
|
|
24069
24173
|
var e, n;
|
|
24070
24174
|
let r = a.current;
|
|
@@ -24125,12 +24229,12 @@ function Zc({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
24125
24229
|
}
|
|
24126
24230
|
//#endregion
|
|
24127
24231
|
//#region src/SelectPareto.tsx
|
|
24128
|
-
function
|
|
24232
|
+
function el({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
24129
24233
|
var a;
|
|
24130
24234
|
let { ref: o, width: c } = Y(t), l = Q(), u = s(), [f, p] = d(null), g = {
|
|
24131
|
-
...
|
|
24235
|
+
...zs,
|
|
24132
24236
|
right: 44
|
|
24133
|
-
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - g.left - g.right), C = t - g.top - g.bottom, w =
|
|
24237
|
+
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - g.left - g.right), C = t - g.top - g.bottom, w = ks(((a = _[0]) == null ? void 0 : a.value) ?? 1), T = v > 0 ? S / v : 0, E = Math.min(T * .62, 46), D = g.top + C, O = (e) => D - e / w * C, k = (e) => D - e / 100 * C, A = (e) => g.left + T * e + T / 2, j = x.map((e, t) => [A(t), k(e)]), M = X(0), N = X(1);
|
|
24134
24238
|
return /* @__PURE__ */ h("div", {
|
|
24135
24239
|
...i,
|
|
24136
24240
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -24159,7 +24263,7 @@ function Qc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
24159
24263
|
stopOpacity: .55
|
|
24160
24264
|
})]
|
|
24161
24265
|
}) }),
|
|
24162
|
-
|
|
24266
|
+
As(w).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
24163
24267
|
x1: g.left,
|
|
24164
24268
|
x2: c - g.right,
|
|
24165
24269
|
y1: O(e),
|
|
@@ -24223,7 +24327,7 @@ function Qc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
24223
24327
|
}, t);
|
|
24224
24328
|
}),
|
|
24225
24329
|
/* @__PURE__ */ m("path", {
|
|
24226
|
-
d:
|
|
24330
|
+
d: Ns(j),
|
|
24227
24331
|
fill: "none",
|
|
24228
24332
|
stroke: N,
|
|
24229
24333
|
strokeWidth: 2,
|
|
@@ -24251,7 +24355,7 @@ function Qc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
24251
24355
|
}
|
|
24252
24356
|
//#endregion
|
|
24253
24357
|
//#region src/SelectWaffle.tsx
|
|
24254
|
-
var
|
|
24358
|
+
var tl = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
24255
24359
|
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) => ({
|
|
24256
24360
|
i: t,
|
|
24257
24361
|
frac: e - u[t]
|
|
@@ -24300,7 +24404,7 @@ var $c = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
24300
24404
|
});
|
|
24301
24405
|
//#endregion
|
|
24302
24406
|
//#region src/SelectPyramid.tsx
|
|
24303
|
-
function
|
|
24407
|
+
function nl({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
24304
24408
|
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);
|
|
24305
24409
|
return /* @__PURE__ */ h("div", {
|
|
24306
24410
|
...l,
|
|
@@ -24408,7 +24512,7 @@ function el({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
24408
24512
|
}
|
|
24409
24513
|
//#endregion
|
|
24410
24514
|
//#region src/SelectBump.tsx
|
|
24411
|
-
function
|
|
24515
|
+
function rl({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
24412
24516
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
24413
24517
|
top: 16,
|
|
24414
24518
|
right: 78,
|
|
@@ -24445,7 +24549,7 @@ function tl({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
24445
24549
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
24446
24550
|
children: [
|
|
24447
24551
|
/* @__PURE__ */ m("path", {
|
|
24448
|
-
d:
|
|
24552
|
+
d: Ns(a),
|
|
24449
24553
|
fill: "none",
|
|
24450
24554
|
stroke: i,
|
|
24451
24555
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -24493,7 +24597,7 @@ function tl({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
24493
24597
|
}
|
|
24494
24598
|
//#endregion
|
|
24495
24599
|
//#region src/SelectParallel.tsx
|
|
24496
|
-
function
|
|
24600
|
+
function il({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
24497
24601
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
24498
24602
|
top: 30,
|
|
24499
24603
|
right: 28,
|
|
@@ -24585,25 +24689,25 @@ function nl({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
24585
24689
|
}
|
|
24586
24690
|
//#endregion
|
|
24587
24691
|
//#region src/SelectIcicle.tsx
|
|
24588
|
-
function
|
|
24589
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
24692
|
+
function al(e) {
|
|
24693
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + al(t), 0) : e.value ?? 0;
|
|
24590
24694
|
}
|
|
24591
|
-
function
|
|
24592
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
24695
|
+
function ol(e, t = 0) {
|
|
24696
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => ol(e, t + 1)));
|
|
24593
24697
|
}
|
|
24594
|
-
function
|
|
24595
|
-
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u =
|
|
24698
|
+
function sl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
24699
|
+
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u = ol(e), f = t / (u + 1), p = [], g = (e, t, n, r, i) => {
|
|
24596
24700
|
if (p.push({
|
|
24597
24701
|
node: e,
|
|
24598
24702
|
x0: t,
|
|
24599
24703
|
x1: n,
|
|
24600
24704
|
depth: r,
|
|
24601
24705
|
color: e.color ?? X(i),
|
|
24602
|
-
value:
|
|
24706
|
+
value: al(e)
|
|
24603
24707
|
}), e.children && e.children.length) {
|
|
24604
|
-
let a = e.children.reduce((e, t) => e +
|
|
24708
|
+
let a = e.children.reduce((e, t) => e + al(t), 0) || 1, o = t;
|
|
24605
24709
|
e.children.forEach((e, s) => {
|
|
24606
|
-
let c = (n - t) *
|
|
24710
|
+
let c = (n - t) * al(e) / a;
|
|
24607
24711
|
g(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
24608
24712
|
});
|
|
24609
24713
|
}
|
|
@@ -24664,7 +24768,7 @@ function al({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
24664
24768
|
}
|
|
24665
24769
|
//#endregion
|
|
24666
24770
|
//#region src/SelectTree.tsx
|
|
24667
|
-
function
|
|
24771
|
+
function cl({ data: e, height: t = 260, className: n, ...r }) {
|
|
24668
24772
|
let { ref: i, width: a } = Y(t), o = Q(), [s, c] = d(null), l = {
|
|
24669
24773
|
top: 14,
|
|
24670
24774
|
right: 96,
|
|
@@ -24742,7 +24846,7 @@ function ol({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
24742
24846
|
}
|
|
24743
24847
|
//#endregion
|
|
24744
24848
|
//#region src/SelectVenn.tsx
|
|
24745
|
-
var
|
|
24849
|
+
var ll = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
24746
24850
|
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]] : [
|
|
24747
24851
|
[o, s - l * .5],
|
|
24748
24852
|
[o - l * .5, s + l * .36],
|
|
@@ -24807,7 +24911,7 @@ var sl = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
24807
24911
|
}, t))
|
|
24808
24912
|
})]
|
|
24809
24913
|
});
|
|
24810
|
-
}),
|
|
24914
|
+
}), ul = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
24811
24915
|
let o = Q(), [s, c] = d(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
24812
24916
|
d: e,
|
|
24813
24917
|
i: t,
|
|
@@ -24910,7 +25014,7 @@ var sl = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
24910
25014
|
});
|
|
24911
25015
|
//#endregion
|
|
24912
25016
|
//#region src/SelectNetwork.tsx
|
|
24913
|
-
function
|
|
25017
|
+
function dl({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
24914
25018
|
let { ref: o, width: s } = Y(n), c = Q(), [u, f] = d(null), p = l(() => {
|
|
24915
25019
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
24916
25020
|
if (!a) return o;
|
|
@@ -25024,14 +25128,14 @@ function ll({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
25024
25128
|
}
|
|
25025
25129
|
//#endregion
|
|
25026
25130
|
//#region src/SelectSearchMenu.tsx
|
|
25027
|
-
function
|
|
25131
|
+
function fl({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", children: o }) {
|
|
25028
25132
|
return /* @__PURE__ */ h("div", {
|
|
25029
25133
|
className: "select-combobox__panel select-searchmenu",
|
|
25030
25134
|
style: { width: a },
|
|
25031
25135
|
children: [
|
|
25032
25136
|
/* @__PURE__ */ m("div", {
|
|
25033
25137
|
className: "select-combobox__search",
|
|
25034
|
-
children: /* @__PURE__ */ m(
|
|
25138
|
+
children: /* @__PURE__ */ m(oa, {
|
|
25035
25139
|
value: e,
|
|
25036
25140
|
onChange: t,
|
|
25037
25141
|
placeholder: n
|
|
@@ -25041,7 +25145,7 @@ function ul({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
25041
25145
|
className: "select-combobox__empty",
|
|
25042
25146
|
role: "status",
|
|
25043
25147
|
children: r
|
|
25044
|
-
}) : /* @__PURE__ */ m(
|
|
25148
|
+
}) : /* @__PURE__ */ m(pl, { children: o }),
|
|
25045
25149
|
i != null && i !== !1 ? /* @__PURE__ */ m("div", {
|
|
25046
25150
|
className: "select-searchmenu__footer",
|
|
25047
25151
|
children: i
|
|
@@ -25049,7 +25153,7 @@ function ul({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
25049
25153
|
]
|
|
25050
25154
|
});
|
|
25051
25155
|
}
|
|
25052
|
-
function
|
|
25156
|
+
function pl({ children: e }) {
|
|
25053
25157
|
let t = On({
|
|
25054
25158
|
selector: ".select-combobox__option",
|
|
25055
25159
|
y: 6,
|
|
@@ -25063,7 +25167,7 @@ function dl({ children: e }) {
|
|
|
25063
25167
|
children: e
|
|
25064
25168
|
});
|
|
25065
25169
|
}
|
|
25066
|
-
function
|
|
25170
|
+
function ml({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSelect: i }) {
|
|
25067
25171
|
return /* @__PURE__ */ h("button", {
|
|
25068
25172
|
type: "button",
|
|
25069
25173
|
role: "option",
|
|
@@ -25089,7 +25193,7 @@ function fl({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSele
|
|
|
25089
25193
|
}
|
|
25090
25194
|
//#endregion
|
|
25091
25195
|
//#region src/SelectThemeSwitcher.tsx
|
|
25092
|
-
var
|
|
25196
|
+
var hl = [
|
|
25093
25197
|
{
|
|
25094
25198
|
value: "light",
|
|
25095
25199
|
label: "Claro",
|
|
@@ -25106,15 +25210,15 @@ var pl = [
|
|
|
25106
25210
|
icon: /* @__PURE__ */ m(ke, {})
|
|
25107
25211
|
}
|
|
25108
25212
|
];
|
|
25109
|
-
function
|
|
25213
|
+
function gl(e) {
|
|
25110
25214
|
if (e === "system") {
|
|
25111
25215
|
var t, n;
|
|
25112
25216
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
25113
25217
|
}
|
|
25114
25218
|
return e;
|
|
25115
25219
|
}
|
|
25116
|
-
function
|
|
25117
|
-
let [i, a] = d(!1), s = u(null), c =
|
|
25220
|
+
function _l({ value: e, onChange: t, className: n, ...r }) {
|
|
25221
|
+
let [i, a] = d(!1), s = u(null), c = hl.find((t) => t.value === e) ?? hl[2];
|
|
25118
25222
|
return o(() => {
|
|
25119
25223
|
if (!i) return;
|
|
25120
25224
|
let e = (e) => {
|
|
@@ -25125,7 +25229,7 @@ function hl({ value: e, onChange: t, className: n, ...r }) {
|
|
|
25125
25229
|
...r,
|
|
25126
25230
|
className: `select-themeswitcher${n ? " " + n : ""}`,
|
|
25127
25231
|
ref: s,
|
|
25128
|
-
children: [/* @__PURE__ */ m(
|
|
25232
|
+
children: [/* @__PURE__ */ m(Aa, {
|
|
25129
25233
|
active: i,
|
|
25130
25234
|
onClick: () => a((e) => !e),
|
|
25131
25235
|
children: /* @__PURE__ */ h("span", {
|
|
@@ -25134,7 +25238,7 @@ function hl({ value: e, onChange: t, className: n, ...r }) {
|
|
|
25134
25238
|
})
|
|
25135
25239
|
}), i && /* @__PURE__ */ m("div", {
|
|
25136
25240
|
className: "select-themeswitcher__popover",
|
|
25137
|
-
children: /* @__PURE__ */ m(
|
|
25241
|
+
children: /* @__PURE__ */ m(wa, { children: hl.map((n) => /* @__PURE__ */ m(Ea, {
|
|
25138
25242
|
icon: n.icon,
|
|
25139
25243
|
active: n.value === e,
|
|
25140
25244
|
trailing: n.value === e ? /* @__PURE__ */ m(Ve, {}) : null,
|
|
@@ -25148,8 +25252,8 @@ function hl({ value: e, onChange: t, className: n, ...r }) {
|
|
|
25148
25252
|
}
|
|
25149
25253
|
//#endregion
|
|
25150
25254
|
//#region src/SelectDetail.tsx
|
|
25151
|
-
var
|
|
25152
|
-
function
|
|
25255
|
+
var vl = n(!1);
|
|
25256
|
+
function yl({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
25153
25257
|
let r = On({
|
|
25154
25258
|
selector: ".select-detail",
|
|
25155
25259
|
y: 8,
|
|
@@ -25157,7 +25261,7 @@ function _l({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
25157
25261
|
stagger: .05,
|
|
25158
25262
|
scroll: !0
|
|
25159
25263
|
});
|
|
25160
|
-
return /* @__PURE__ */ m(
|
|
25264
|
+
return /* @__PURE__ */ m(vl.Provider, {
|
|
25161
25265
|
value: n,
|
|
25162
25266
|
children: /* @__PURE__ */ m("div", {
|
|
25163
25267
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}`,
|
|
@@ -25166,8 +25270,8 @@ function _l({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
25166
25270
|
})
|
|
25167
25271
|
});
|
|
25168
25272
|
}
|
|
25169
|
-
var
|
|
25170
|
-
let l = a(
|
|
25273
|
+
var bl = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
25274
|
+
let l = a(vl), u = i ?? l;
|
|
25171
25275
|
return /* @__PURE__ */ h("div", {
|
|
25172
25276
|
ref: c,
|
|
25173
25277
|
...s,
|
|
@@ -25187,7 +25291,7 @@ var vl = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
25187
25291
|
})
|
|
25188
25292
|
]
|
|
25189
25293
|
});
|
|
25190
|
-
}),
|
|
25294
|
+
}), xl = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
|
|
25191
25295
|
let s = r === "vertical";
|
|
25192
25296
|
return /* @__PURE__ */ m("ol", {
|
|
25193
25297
|
ref: o,
|
|
@@ -25226,7 +25330,7 @@ var vl = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
25226
25330
|
});
|
|
25227
25331
|
//#endregion
|
|
25228
25332
|
//#region src/SelectSetupGuide.tsx
|
|
25229
|
-
function
|
|
25333
|
+
function Sl({ status: e }) {
|
|
25230
25334
|
return /* @__PURE__ */ m("span", {
|
|
25231
25335
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
25232
25336
|
"aria-hidden": "true",
|
|
@@ -25245,13 +25349,13 @@ function bl({ status: e }) {
|
|
|
25245
25349
|
})
|
|
25246
25350
|
});
|
|
25247
25351
|
}
|
|
25248
|
-
var
|
|
25352
|
+
var Cl = {
|
|
25249
25353
|
done: "feito",
|
|
25250
25354
|
todo: "a fazer",
|
|
25251
25355
|
next: "próximo passo",
|
|
25252
25356
|
skipped: "pulado",
|
|
25253
25357
|
waiting: "aguardando"
|
|
25254
|
-
},
|
|
25358
|
+
}, wl = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
|
|
25255
25359
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0;
|
|
25256
25360
|
return /* @__PURE__ */ h("section", {
|
|
25257
25361
|
ref: u,
|
|
@@ -25314,14 +25418,14 @@ var xl = {
|
|
|
25314
25418
|
children: e.steps.map((e) => /* @__PURE__ */ h("li", {
|
|
25315
25419
|
className: `select-setupguide__step is-${e.status}`,
|
|
25316
25420
|
children: [
|
|
25317
|
-
/* @__PURE__ */ m(
|
|
25421
|
+
/* @__PURE__ */ m(Sl, { status: e.status }),
|
|
25318
25422
|
/* @__PURE__ */ h("span", {
|
|
25319
25423
|
className: "select-setupguide__text",
|
|
25320
25424
|
children: [/* @__PURE__ */ h("span", {
|
|
25321
25425
|
className: "select-setupguide__steptitle",
|
|
25322
25426
|
children: [e.title, /* @__PURE__ */ h("span", {
|
|
25323
25427
|
className: "select-setupguide__sr",
|
|
25324
|
-
children: [" — ",
|
|
25428
|
+
children: [" — ", Cl[e.status]]
|
|
25325
25429
|
})]
|
|
25326
25430
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
25327
25431
|
className: "select-setupguide__stepdesc",
|
|
@@ -25340,7 +25444,7 @@ var xl = {
|
|
|
25340
25444
|
})]
|
|
25341
25445
|
});
|
|
25342
25446
|
});
|
|
25343
|
-
function
|
|
25447
|
+
function Tl({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
25344
25448
|
return /* @__PURE__ */ h("div", {
|
|
25345
25449
|
className: "select-setupnext",
|
|
25346
25450
|
children: [
|
|
@@ -25365,37 +25469,37 @@ function Cl({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
25365
25469
|
}
|
|
25366
25470
|
//#endregion
|
|
25367
25471
|
//#region src/SelectTour.tsx
|
|
25368
|
-
var
|
|
25369
|
-
function
|
|
25472
|
+
var El = 6, Dl = 12;
|
|
25473
|
+
function Ol(e) {
|
|
25370
25474
|
let t = document.querySelector(e);
|
|
25371
25475
|
if (!t) return null;
|
|
25372
25476
|
let n = t.getBoundingClientRect();
|
|
25373
25477
|
return n.width === 0 && n.height === 0 ? null : {
|
|
25374
|
-
top: n.top -
|
|
25375
|
-
left: n.left -
|
|
25478
|
+
top: n.top - El,
|
|
25479
|
+
left: n.left - El,
|
|
25376
25480
|
width: n.width + 12,
|
|
25377
25481
|
height: n.height + 12
|
|
25378
25482
|
};
|
|
25379
25483
|
}
|
|
25380
|
-
function
|
|
25484
|
+
function kl(e) {
|
|
25381
25485
|
let t = document.querySelector(e);
|
|
25382
25486
|
if (!t) return !1;
|
|
25383
25487
|
let n = t.getBoundingClientRect();
|
|
25384
25488
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
25385
25489
|
}
|
|
25386
|
-
function
|
|
25387
|
-
let s = l(() => e ? t.filter((e) =>
|
|
25490
|
+
function Al({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
25491
|
+
let s = l(() => e ? t.filter((e) => kl(e.target)) : [], [e]), [f, p] = d(0), [_, v] = d(null), [y, b] = d(null), x = u(null), S = u(null);
|
|
25388
25492
|
o(() => {
|
|
25389
25493
|
e && p(0);
|
|
25390
25494
|
}, [e]);
|
|
25391
25495
|
let C = s[f], w = f === s.length - 1, T = i(() => {
|
|
25392
25496
|
if (!C) return;
|
|
25393
|
-
let e =
|
|
25497
|
+
let e = Ol(C.target);
|
|
25394
25498
|
v(e);
|
|
25395
25499
|
let t = x.current;
|
|
25396
25500
|
if (!e || !t) return;
|
|
25397
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
25398
|
-
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height +
|
|
25501
|
+
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + Dl, s = e.top;
|
|
25502
|
+
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + Dl, s + r > a - 8 && (s = e.top - r - Dl)), s = Math.min(Math.max(8, s), a - r - 8), b({
|
|
25399
25503
|
top: s,
|
|
25400
25504
|
left: o
|
|
25401
25505
|
});
|
|
@@ -25497,7 +25601,7 @@ function Ol({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
25497
25601
|
}
|
|
25498
25602
|
//#endregion
|
|
25499
25603
|
//#region src/SelectPlanCard.tsx
|
|
25500
|
-
var
|
|
25604
|
+
var jl = 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) {
|
|
25501
25605
|
return /* @__PURE__ */ h("div", {
|
|
25502
25606
|
ref: d,
|
|
25503
25607
|
...u,
|
|
@@ -25552,7 +25656,7 @@ var kl = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25552
25656
|
})]
|
|
25553
25657
|
})]
|
|
25554
25658
|
});
|
|
25555
|
-
}),
|
|
25659
|
+
}), Ml = r(function({ title: e, description: t, headerAction: n, footer: r, dense: i = !1, spread: a = !1, children: o, className: s, ...c }, l) {
|
|
25556
25660
|
return /* @__PURE__ */ h("div", {
|
|
25557
25661
|
ref: l,
|
|
25558
25662
|
...c,
|
|
@@ -25588,8 +25692,8 @@ var kl = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25588
25692
|
]
|
|
25589
25693
|
});
|
|
25590
25694
|
});
|
|
25591
|
-
function
|
|
25592
|
-
let
|
|
25695
|
+
function Nl({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, wrap: o = !1, onClick: s }) {
|
|
25696
|
+
let c = /* @__PURE__ */ h(p, { children: [
|
|
25593
25697
|
e && /* @__PURE__ */ m("span", {
|
|
25594
25698
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
25595
25699
|
"aria-hidden": "true",
|
|
@@ -25609,18 +25713,18 @@ function jl({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
25609
25713
|
className: "select-listrow__action",
|
|
25610
25714
|
children: i
|
|
25611
25715
|
})
|
|
25612
|
-
] }),
|
|
25613
|
-
return
|
|
25716
|
+
] }), l = `select-listrow${a ? " select-listrow--muted" : ""}${o ? " select-listrow--wrap" : ""}`;
|
|
25717
|
+
return s ? /* @__PURE__ */ m("button", {
|
|
25614
25718
|
type: "button",
|
|
25615
|
-
className: `${
|
|
25616
|
-
onClick:
|
|
25617
|
-
children:
|
|
25719
|
+
className: `${l} select-listrow--clickable`,
|
|
25720
|
+
onClick: s,
|
|
25721
|
+
children: c
|
|
25618
25722
|
}) : /* @__PURE__ */ m("div", {
|
|
25619
|
-
className:
|
|
25620
|
-
children:
|
|
25723
|
+
className: l,
|
|
25724
|
+
children: c
|
|
25621
25725
|
});
|
|
25622
25726
|
}
|
|
25623
|
-
function
|
|
25727
|
+
function Pl({ children: e }) {
|
|
25624
25728
|
return /* @__PURE__ */ m("div", {
|
|
25625
25729
|
className: "select-listlabel",
|
|
25626
25730
|
children: e
|
|
@@ -25628,7 +25732,7 @@ function Ml({ children: e }) {
|
|
|
25628
25732
|
}
|
|
25629
25733
|
//#endregion
|
|
25630
25734
|
//#region src/SelectThumbnail.tsx
|
|
25631
|
-
var
|
|
25735
|
+
var Fl = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, s) {
|
|
25632
25736
|
let [c, l] = d(!1);
|
|
25633
25737
|
o(() => l(!1), [e]);
|
|
25634
25738
|
let u = /* @__PURE__ */ m("span", {
|
|
@@ -25662,8 +25766,8 @@ var Nl = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
|
|
|
25662
25766
|
});
|
|
25663
25767
|
//#endregion
|
|
25664
25768
|
//#region src/SelectImageZoomModal.tsx
|
|
25665
|
-
function
|
|
25666
|
-
return /* @__PURE__ */ m(
|
|
25769
|
+
function Il({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
25770
|
+
return /* @__PURE__ */ m(Ha, {
|
|
25667
25771
|
open: e,
|
|
25668
25772
|
onClose: t,
|
|
25669
25773
|
title: i,
|
|
@@ -25681,7 +25785,7 @@ function Pl({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
25681
25785
|
}
|
|
25682
25786
|
//#endregion
|
|
25683
25787
|
//#region src/SelectZoomThumbnail.tsx
|
|
25684
|
-
function
|
|
25788
|
+
function Ll({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
25685
25789
|
let [a, o] = d(!1);
|
|
25686
25790
|
return e ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
25687
25791
|
type: "button",
|
|
@@ -25694,19 +25798,19 @@ function Fl({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
25694
25798
|
cursor: "zoom-in",
|
|
25695
25799
|
display: "inline-flex"
|
|
25696
25800
|
},
|
|
25697
|
-
children: /* @__PURE__ */ m(
|
|
25801
|
+
children: /* @__PURE__ */ m(Fl, {
|
|
25698
25802
|
src: e,
|
|
25699
25803
|
size: n,
|
|
25700
25804
|
alt: t,
|
|
25701
25805
|
count: i
|
|
25702
25806
|
})
|
|
25703
|
-
}), a && /* @__PURE__ */ m(
|
|
25807
|
+
}), a && /* @__PURE__ */ m(Il, {
|
|
25704
25808
|
open: !0,
|
|
25705
25809
|
onClose: () => o(!1),
|
|
25706
25810
|
src: e,
|
|
25707
25811
|
alt: t,
|
|
25708
25812
|
title: r ?? t
|
|
25709
|
-
})] }) : /* @__PURE__ */ m(
|
|
25813
|
+
})] }) : /* @__PURE__ */ m(Fl, {
|
|
25710
25814
|
size: n,
|
|
25711
25815
|
alt: t,
|
|
25712
25816
|
count: i
|
|
@@ -25714,7 +25818,7 @@ function Fl({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
25714
25818
|
}
|
|
25715
25819
|
//#endregion
|
|
25716
25820
|
//#region src/SelectMediaCell.tsx
|
|
25717
|
-
var
|
|
25821
|
+
var Rl = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
25718
25822
|
return /* @__PURE__ */ h("span", {
|
|
25719
25823
|
ref: a,
|
|
25720
25824
|
...i,
|
|
@@ -25736,14 +25840,14 @@ var Il = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
25736
25840
|
});
|
|
25737
25841
|
//#endregion
|
|
25738
25842
|
//#region src/SelectOfflineModal.tsx
|
|
25739
|
-
function
|
|
25843
|
+
function zl() {
|
|
25740
25844
|
let [e, t] = d(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
25741
25845
|
return o(() => {
|
|
25742
25846
|
let e = () => t(!1), n = () => t(!0);
|
|
25743
25847
|
return window.addEventListener("online", e), window.addEventListener("offline", n), () => {
|
|
25744
25848
|
window.removeEventListener("online", e), window.removeEventListener("offline", n);
|
|
25745
25849
|
};
|
|
25746
|
-
}, []), /* @__PURE__ */ m(
|
|
25850
|
+
}, []), /* @__PURE__ */ m(Ha, {
|
|
25747
25851
|
open: e,
|
|
25748
25852
|
onClose: () => {},
|
|
25749
25853
|
showClose: !1,
|
|
@@ -25759,7 +25863,7 @@ function Ll() {
|
|
|
25759
25863
|
}
|
|
25760
25864
|
//#endregion
|
|
25761
25865
|
//#region src/SelectKeyValueEditor.tsx
|
|
25762
|
-
function
|
|
25866
|
+
function Bl(e) {
|
|
25763
25867
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
25764
25868
|
name: String(e.name ?? e.key ?? ""),
|
|
25765
25869
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -25768,8 +25872,8 @@ function Rl(e) {
|
|
|
25768
25872
|
value: t == null ? "" : String(t)
|
|
25769
25873
|
})) : [];
|
|
25770
25874
|
}
|
|
25771
|
-
var
|
|
25772
|
-
let d =
|
|
25875
|
+
var Vl = 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) {
|
|
25876
|
+
let d = Bl(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
25773
25877
|
...t,
|
|
25774
25878
|
...n
|
|
25775
25879
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), g = () => t([...d, {
|
|
@@ -25833,7 +25937,7 @@ var zl = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25833
25937
|
})
|
|
25834
25938
|
]
|
|
25835
25939
|
});
|
|
25836
|
-
}),
|
|
25940
|
+
}), Hl = (e) => String(e).padStart(2, "0"), Ul = {
|
|
25837
25941
|
"en-US": {
|
|
25838
25942
|
weekdays: [
|
|
25839
25943
|
"Su",
|
|
@@ -25892,34 +25996,34 @@ var zl = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25892
25996
|
to: "Até",
|
|
25893
25997
|
cancel: "Cancelar",
|
|
25894
25998
|
apply: "Aplicar",
|
|
25895
|
-
formatDate: (e) => `${
|
|
25999
|
+
formatDate: (e) => `${Hl(e.getDate())} / ${Hl(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
25896
26000
|
}
|
|
25897
|
-
},
|
|
26001
|
+
}, Wl = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Gl = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Kl = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), ql = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Jl = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Yl = (e) => {
|
|
25898
26002
|
let t = /* @__PURE__ */ new Date();
|
|
25899
26003
|
return {
|
|
25900
26004
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
25901
26005
|
to: t
|
|
25902
26006
|
};
|
|
25903
|
-
},
|
|
26007
|
+
}, Xl = [
|
|
25904
26008
|
{
|
|
25905
26009
|
id: "15m",
|
|
25906
26010
|
label: "Last 15 minutes",
|
|
25907
|
-
range: () =>
|
|
26011
|
+
range: () => Yl(15)
|
|
25908
26012
|
},
|
|
25909
26013
|
{
|
|
25910
26014
|
id: "1h",
|
|
25911
26015
|
label: "Last 1 hour",
|
|
25912
|
-
range: () =>
|
|
26016
|
+
range: () => Yl(60)
|
|
25913
26017
|
},
|
|
25914
26018
|
{
|
|
25915
26019
|
id: "3h",
|
|
25916
26020
|
label: "Last 3 hours",
|
|
25917
|
-
range: () =>
|
|
26021
|
+
range: () => Yl(180)
|
|
25918
26022
|
},
|
|
25919
26023
|
{
|
|
25920
26024
|
id: "24h",
|
|
25921
26025
|
label: "Last 24 hours",
|
|
25922
|
-
range: () =>
|
|
26026
|
+
range: () => Yl(1440)
|
|
25923
26027
|
},
|
|
25924
26028
|
{
|
|
25925
26029
|
id: "3d",
|
|
@@ -25935,78 +26039,78 @@ var zl = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25935
26039
|
id: "all",
|
|
25936
26040
|
label: "All",
|
|
25937
26041
|
range: () => ({
|
|
25938
|
-
from:
|
|
25939
|
-
to:
|
|
26042
|
+
from: Wl(/* @__PURE__ */ new Date()),
|
|
26043
|
+
to: Wl(/* @__PURE__ */ new Date())
|
|
25940
26044
|
})
|
|
25941
26045
|
}
|
|
25942
|
-
],
|
|
25943
|
-
let t =
|
|
26046
|
+
], Zl = (e) => {
|
|
26047
|
+
let t = Wl(/* @__PURE__ */ new Date());
|
|
25944
26048
|
return {
|
|
25945
|
-
from:
|
|
26049
|
+
from: Kl(t, -e),
|
|
25946
26050
|
to: t
|
|
25947
26051
|
};
|
|
25948
|
-
},
|
|
25949
|
-
let t = Wl(
|
|
26052
|
+
}, Ql = (e) => {
|
|
26053
|
+
let t = Kl(Wl(/* @__PURE__ */ new Date()), -e);
|
|
25950
26054
|
return {
|
|
25951
26055
|
from: t,
|
|
25952
26056
|
to: t
|
|
25953
26057
|
};
|
|
25954
|
-
},
|
|
26058
|
+
}, $l = [
|
|
25955
26059
|
{
|
|
25956
26060
|
id: "today",
|
|
25957
26061
|
label: "Hoje",
|
|
25958
|
-
range: () =>
|
|
26062
|
+
range: () => Zl(0)
|
|
25959
26063
|
},
|
|
25960
26064
|
{
|
|
25961
26065
|
id: "yesterday",
|
|
25962
26066
|
label: "Ontem",
|
|
25963
|
-
range: () =>
|
|
26067
|
+
range: () => Ql(1)
|
|
25964
26068
|
},
|
|
25965
26069
|
{
|
|
25966
26070
|
id: "7d",
|
|
25967
26071
|
label: "Últimos 7 dias",
|
|
25968
|
-
range: () =>
|
|
26072
|
+
range: () => Zl(6)
|
|
25969
26073
|
},
|
|
25970
26074
|
{
|
|
25971
26075
|
id: "10d",
|
|
25972
26076
|
label: "Últimos 10 dias",
|
|
25973
|
-
range: () =>
|
|
26077
|
+
range: () => Zl(9)
|
|
25974
26078
|
},
|
|
25975
26079
|
{
|
|
25976
26080
|
id: "15d",
|
|
25977
26081
|
label: "Últimos 15 dias",
|
|
25978
|
-
range: () =>
|
|
26082
|
+
range: () => Zl(14)
|
|
25979
26083
|
},
|
|
25980
26084
|
{
|
|
25981
26085
|
id: "20d",
|
|
25982
26086
|
label: "Últimos 20 dias",
|
|
25983
|
-
range: () =>
|
|
26087
|
+
range: () => Zl(19)
|
|
25984
26088
|
},
|
|
25985
26089
|
{
|
|
25986
26090
|
id: "30d",
|
|
25987
26091
|
label: "Últimos 30 dias",
|
|
25988
|
-
range: () =>
|
|
26092
|
+
range: () => Zl(29)
|
|
25989
26093
|
},
|
|
25990
26094
|
{
|
|
25991
26095
|
id: "90d",
|
|
25992
26096
|
label: "Últimos 90 dias",
|
|
25993
|
-
range: () =>
|
|
26097
|
+
range: () => Zl(89)
|
|
25994
26098
|
}
|
|
25995
26099
|
];
|
|
25996
|
-
function
|
|
26100
|
+
function eu(e) {
|
|
25997
26101
|
if (!e) return "—";
|
|
25998
26102
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
25999
26103
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
26000
26104
|
}
|
|
26001
|
-
var
|
|
26002
|
-
let p =
|
|
26105
|
+
var tu = r(function({ value: e, presets: t = Xl, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, f) {
|
|
26106
|
+
let p = Ul[a], g = Wl(/* @__PURE__ */ new Date()), _ = s ? Wl(s) : null, [v, y] = d(e ?? {
|
|
26003
26107
|
from: g,
|
|
26004
26108
|
to: g
|
|
26005
|
-
}), [b, x] = d(
|
|
26109
|
+
}), [b, x] = d(Gl((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = d(null), w = Kl(Gl(b), -Gl(b).getDay()), T = Array.from({ length: 42 }, (e, t) => Kl(w, t)), E = (e) => _ ? Wl(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ m("span", {
|
|
26006
26110
|
className: "select-datepicker__placeholder",
|
|
26007
26111
|
children: "— / — / ——"
|
|
26008
26112
|
}), O = (e) => {
|
|
26009
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
26113
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < Wl(t.from) ? {
|
|
26010
26114
|
from: e,
|
|
26011
26115
|
to: null
|
|
26012
26116
|
} : {
|
|
@@ -26016,7 +26120,7 @@ var $l = r(function({ value: e, presets: t = Jl, onApply: n, onCancel: r, accent
|
|
|
26016
26120
|
}, k = (e) => {
|
|
26017
26121
|
if (e.disabled || !e.range) return;
|
|
26018
26122
|
let t = e.range();
|
|
26019
|
-
y(t), C(e.id), t.from && x(
|
|
26123
|
+
y(t), C(e.id), t.from && x(Gl(t.from));
|
|
26020
26124
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
26021
26125
|
return /* @__PURE__ */ m("div", {
|
|
26022
26126
|
ref: f,
|
|
@@ -26062,7 +26166,7 @@ var $l = r(function({ value: e, presets: t = Jl, onApply: n, onCancel: r, accent
|
|
|
26062
26166
|
}),
|
|
26063
26167
|
o && /* @__PURE__ */ m("span", {
|
|
26064
26168
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
26065
|
-
children:
|
|
26169
|
+
children: eu(v[e])
|
|
26066
26170
|
})
|
|
26067
26171
|
]
|
|
26068
26172
|
}, e))
|
|
@@ -26074,7 +26178,7 @@ var $l = r(function({ value: e, presets: t = Jl, onApply: n, onCancel: r, accent
|
|
|
26074
26178
|
type: "button",
|
|
26075
26179
|
className: "select-datepicker__nav",
|
|
26076
26180
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
26077
|
-
onClick: () => x((e) =>
|
|
26181
|
+
onClick: () => x((e) => ql(e, -1)),
|
|
26078
26182
|
children: /* @__PURE__ */ m(ae, {})
|
|
26079
26183
|
}),
|
|
26080
26184
|
/* @__PURE__ */ h("span", {
|
|
@@ -26089,7 +26193,7 @@ var $l = r(function({ value: e, presets: t = Jl, onApply: n, onCancel: r, accent
|
|
|
26089
26193
|
type: "button",
|
|
26090
26194
|
className: "select-datepicker__nav",
|
|
26091
26195
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
26092
|
-
onClick: () => x((e) =>
|
|
26196
|
+
onClick: () => x((e) => ql(e, 1)),
|
|
26093
26197
|
children: /* @__PURE__ */ m(U, {})
|
|
26094
26198
|
})
|
|
26095
26199
|
]
|
|
@@ -26101,7 +26205,7 @@ var $l = r(function({ value: e, presets: t = Jl, onApply: n, onCancel: r, accent
|
|
|
26101
26205
|
className: "select-datepicker__weekday",
|
|
26102
26206
|
children: e
|
|
26103
26207
|
}, t)), T.map((e) => {
|
|
26104
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
26208
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && Jl(e, v.from), i = !!v.to && Jl(e, v.to), a = r || i, o = !!v.from && !!v.to && !Jl(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > Wl(v.from) && e < Wl(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" : "") + (Jl(e, g) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
26105
26209
|
return /* @__PURE__ */ m("div", {
|
|
26106
26210
|
className: s,
|
|
26107
26211
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -26132,17 +26236,17 @@ var $l = r(function({ value: e, presets: t = Jl, onApply: n, onCancel: r, accent
|
|
|
26132
26236
|
})]
|
|
26133
26237
|
})
|
|
26134
26238
|
});
|
|
26135
|
-
}),
|
|
26136
|
-
function
|
|
26239
|
+
}), nu = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), ru = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), iu = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
26240
|
+
function au(e, t) {
|
|
26137
26241
|
for (let r of t) {
|
|
26138
26242
|
var n;
|
|
26139
26243
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
26140
|
-
if (t != null && t.from && t != null && t.to &&
|
|
26244
|
+
if (t != null && t.from && t != null && t.to && ru(t.from, e.start) && ru(t.to, e.end)) return r.label;
|
|
26141
26245
|
}
|
|
26142
|
-
return
|
|
26246
|
+
return ru(e.start, e.end) ? iu(e.start) : `${iu(e.start)} – ${iu(e.end)}`;
|
|
26143
26247
|
}
|
|
26144
|
-
function
|
|
26145
|
-
let [c, l] = d(!1), u = r === null ? null : r ??
|
|
26248
|
+
function ou({ value: e, onChange: t, presets: n = $l, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
26249
|
+
let [c, l] = d(!1), u = r === null ? null : r ?? nu(/* @__PURE__ */ new Date());
|
|
26146
26250
|
return /* @__PURE__ */ m(Fn, {
|
|
26147
26251
|
active: c,
|
|
26148
26252
|
onClose: () => l(!1),
|
|
@@ -26156,9 +26260,9 @@ function iu({ value: e, onChange: t, presets: n = Zl, maxDate: r, placement: i =
|
|
|
26156
26260
|
icon: /* @__PURE__ */ m(rt, {}),
|
|
26157
26261
|
trailingIcon: /* @__PURE__ */ m(W, {}),
|
|
26158
26262
|
onClick: () => l((e) => !e),
|
|
26159
|
-
children:
|
|
26263
|
+
children: au(e, n)
|
|
26160
26264
|
}),
|
|
26161
|
-
children: /* @__PURE__ */ m(
|
|
26265
|
+
children: /* @__PURE__ */ m(tu, {
|
|
26162
26266
|
embedded: !0,
|
|
26163
26267
|
locale: "pt-BR",
|
|
26164
26268
|
showTime: !1,
|
|
@@ -26171,8 +26275,8 @@ function iu({ value: e, onChange: t, presets: n = Zl, maxDate: r, placement: i =
|
|
|
26171
26275
|
onCancel: () => l(!1),
|
|
26172
26276
|
onApply: (e) => {
|
|
26173
26277
|
e.from && t({
|
|
26174
|
-
start:
|
|
26175
|
-
end:
|
|
26278
|
+
start: nu(e.from),
|
|
26279
|
+
end: nu(e.to ?? e.from)
|
|
26176
26280
|
}), l(!1);
|
|
26177
26281
|
}
|
|
26178
26282
|
})
|
|
@@ -26180,7 +26284,7 @@ function iu({ value: e, onChange: t, presets: n = Zl, maxDate: r, placement: i =
|
|
|
26180
26284
|
}
|
|
26181
26285
|
//#endregion
|
|
26182
26286
|
//#region src/SelectNumberField.tsx
|
|
26183
|
-
var
|
|
26287
|
+
var su = 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) {
|
|
26184
26288
|
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) => {
|
|
26185
26289
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
26186
26290
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -26254,7 +26358,7 @@ var au = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
26254
26358
|
});
|
|
26255
26359
|
//#endregion
|
|
26256
26360
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
26257
|
-
function
|
|
26361
|
+
function cu({ 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 }) {
|
|
26258
26362
|
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) => {
|
|
26259
26363
|
let i = n + r;
|
|
26260
26364
|
if (i < 0 || i >= e.length) return;
|
|
@@ -26349,9 +26453,9 @@ function ou({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
26349
26453
|
}
|
|
26350
26454
|
//#endregion
|
|
26351
26455
|
//#region src/SelectBuilderLayout.tsx
|
|
26352
|
-
function
|
|
26456
|
+
function lu({ 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 }) {
|
|
26353
26457
|
let d = v();
|
|
26354
|
-
return /* @__PURE__ */ m(
|
|
26458
|
+
return /* @__PURE__ */ m(Ii, {
|
|
26355
26459
|
title: e,
|
|
26356
26460
|
subtitle: t,
|
|
26357
26461
|
backAction: {
|
|
@@ -26389,7 +26493,7 @@ function su({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26389
26493
|
}
|
|
26390
26494
|
//#endregion
|
|
26391
26495
|
//#region src/SelectBuilderWorkspace.tsx
|
|
26392
|
-
function
|
|
26496
|
+
function uu({ 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" }) {
|
|
26393
26497
|
var w;
|
|
26394
26498
|
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) => {
|
|
26395
26499
|
f === void 0 && D(e), g == null || g(e);
|
|
@@ -26474,7 +26578,7 @@ function cu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26474
26578
|
"aria-label": "Seções de configuração",
|
|
26475
26579
|
children: [_ && /* @__PURE__ */ m("div", {
|
|
26476
26580
|
className: "select-bwork__search",
|
|
26477
|
-
children: /* @__PURE__ */ m(
|
|
26581
|
+
children: /* @__PURE__ */ m(oa, {
|
|
26478
26582
|
value: O,
|
|
26479
26583
|
onChange: k,
|
|
26480
26584
|
placeholder: "Buscar ajuste…"
|
|
@@ -26494,7 +26598,7 @@ function cu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26494
26598
|
children: [
|
|
26495
26599
|
e.icon && /* @__PURE__ */ m("span", {
|
|
26496
26600
|
className: "select-bwork__navicon",
|
|
26497
|
-
children: /* @__PURE__ */ m(
|
|
26601
|
+
children: /* @__PURE__ */ m(Ji, {
|
|
26498
26602
|
size: "1rem",
|
|
26499
26603
|
children: e.icon
|
|
26500
26604
|
})
|
|
@@ -26549,10 +26653,10 @@ function cu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26549
26653
|
}
|
|
26550
26654
|
//#endregion
|
|
26551
26655
|
//#region src/SelectFlowCanvas.tsx
|
|
26552
|
-
var
|
|
26553
|
-
function
|
|
26656
|
+
var du = (e) => Math.round(e * 100) / 100;
|
|
26657
|
+
function fu({ 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 }) {
|
|
26554
26658
|
let _ = s().replace(/:/g, ""), [v, y] = d(c), b = o ?? v, x = (e) => {
|
|
26555
|
-
let t =
|
|
26659
|
+
let t = du(Math.min(f, Math.max(u, e)));
|
|
26556
26660
|
o === void 0 && y(t), l == null || l(t);
|
|
26557
26661
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
26558
26662
|
return /* @__PURE__ */ h("div", {
|
|
@@ -26668,7 +26772,7 @@ function uu({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
26668
26772
|
})]
|
|
26669
26773
|
});
|
|
26670
26774
|
}
|
|
26671
|
-
function
|
|
26775
|
+
function pu({ 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 }) {
|
|
26672
26776
|
let x = `${p ? " is-selected" : v ? " is-invalid" : g ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
26673
26777
|
left: e,
|
|
26674
26778
|
top: t,
|
|
@@ -26744,7 +26848,7 @@ function du({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
26744
26848
|
})]
|
|
26745
26849
|
});
|
|
26746
26850
|
}
|
|
26747
|
-
function
|
|
26851
|
+
function mu({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
|
|
26748
26852
|
return /* @__PURE__ */ h("div", {
|
|
26749
26853
|
className: "select-flowpage",
|
|
26750
26854
|
children: [
|
|
@@ -26806,7 +26910,7 @@ function fu({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
26806
26910
|
}
|
|
26807
26911
|
//#endregion
|
|
26808
26912
|
//#region src/SelectSwitchField.tsx
|
|
26809
|
-
var
|
|
26913
|
+
var hu = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
26810
26914
|
return /* @__PURE__ */ h("div", {
|
|
26811
26915
|
ref: c,
|
|
26812
26916
|
...s,
|
|
@@ -26834,7 +26938,7 @@ var pu = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
26834
26938
|
children: i
|
|
26835
26939
|
})]
|
|
26836
26940
|
});
|
|
26837
|
-
}),
|
|
26941
|
+
}), gu = [
|
|
26838
26942
|
"#212529",
|
|
26839
26943
|
"#495057",
|
|
26840
26944
|
"#868E96",
|
|
@@ -26851,13 +26955,13 @@ var pu = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
26851
26955
|
"#DB2777",
|
|
26852
26956
|
"#9333EA",
|
|
26853
26957
|
"#6D28D9"
|
|
26854
|
-
],
|
|
26855
|
-
function
|
|
26856
|
-
let t =
|
|
26958
|
+
], _u = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
26959
|
+
function vu(e) {
|
|
26960
|
+
let t = _u.exec((e ?? "").trim());
|
|
26857
26961
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
26858
26962
|
}
|
|
26859
|
-
function
|
|
26860
|
-
let t =
|
|
26963
|
+
function yu(e) {
|
|
26964
|
+
let t = vu(e);
|
|
26861
26965
|
if (!t) return 0;
|
|
26862
26966
|
let [n, r, i] = [
|
|
26863
26967
|
1,
|
|
@@ -26866,13 +26970,13 @@ function _u(e) {
|
|
|
26866
26970
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
26867
26971
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
26868
26972
|
}
|
|
26869
|
-
function
|
|
26870
|
-
let [n, r] = [
|
|
26973
|
+
function bu(e, t) {
|
|
26974
|
+
let [n, r] = [yu(e), yu(t)].sort((e, t) => t - e);
|
|
26871
26975
|
return (n + .05) / (r + .05);
|
|
26872
26976
|
}
|
|
26873
|
-
var
|
|
26874
|
-
function
|
|
26875
|
-
let t =
|
|
26977
|
+
var xu = (e) => Math.min(1, Math.max(0, e));
|
|
26978
|
+
function Su(e) {
|
|
26979
|
+
let t = vu(e) ?? "#000000", [n, r, i] = [
|
|
26876
26980
|
1,
|
|
26877
26981
|
3,
|
|
26878
26982
|
5
|
|
@@ -26883,7 +26987,7 @@ function bu(e) {
|
|
|
26883
26987
|
v: a
|
|
26884
26988
|
};
|
|
26885
26989
|
}
|
|
26886
|
-
function
|
|
26990
|
+
function Cu({ h: e, s: t, v: n }) {
|
|
26887
26991
|
let r = (r) => {
|
|
26888
26992
|
let i = (r + e / 60) % 6;
|
|
26889
26993
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -26894,26 +26998,26 @@ function xu({ h: e, s: t, v: n }) {
|
|
|
26894
26998
|
r(1)
|
|
26895
26999
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
26896
27000
|
}
|
|
26897
|
-
function
|
|
26898
|
-
let [n, r] = d(() =>
|
|
27001
|
+
function wu({ hex: e, onPick: t }) {
|
|
27002
|
+
let [n, r] = d(() => Su(e ?? "#1D4ED8")), i = u(n), a = (e) => {
|
|
26899
27003
|
i.current = e, r(e);
|
|
26900
27004
|
};
|
|
26901
27005
|
o(() => {
|
|
26902
|
-
if (!e ||
|
|
26903
|
-
let t =
|
|
27006
|
+
if (!e || Cu(i.current) === e) return;
|
|
27007
|
+
let t = Su(e);
|
|
26904
27008
|
a(t.s === 0 || t.v === 0 ? {
|
|
26905
27009
|
...t,
|
|
26906
27010
|
h: i.current.h
|
|
26907
27011
|
} : t);
|
|
26908
27012
|
}, [e]);
|
|
26909
27013
|
let s = (e) => {
|
|
26910
|
-
a(e), t(
|
|
27014
|
+
a(e), t(Cu(e));
|
|
26911
27015
|
}, c = (e, t, n) => {
|
|
26912
27016
|
var r;
|
|
26913
27017
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
26914
27018
|
let i = (t) => {
|
|
26915
27019
|
let r = e.getBoundingClientRect();
|
|
26916
|
-
n(
|
|
27020
|
+
n(xu((t.clientX - r.left) / (r.width || 1)), xu((t.clientY - r.top) / (r.height || 1)));
|
|
26917
27021
|
};
|
|
26918
27022
|
i(t);
|
|
26919
27023
|
let a = (e) => i(e), o = () => {
|
|
@@ -26923,20 +27027,20 @@ function Su({ hex: e, onPick: t }) {
|
|
|
26923
27027
|
}, l = (e) => {
|
|
26924
27028
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, o = e.key === "ArrowLeft" ? {
|
|
26925
27029
|
h: n,
|
|
26926
|
-
s:
|
|
27030
|
+
s: xu(r - t),
|
|
26927
27031
|
v: a
|
|
26928
27032
|
} : e.key === "ArrowRight" ? {
|
|
26929
27033
|
h: n,
|
|
26930
|
-
s:
|
|
27034
|
+
s: xu(r + t),
|
|
26931
27035
|
v: a
|
|
26932
27036
|
} : e.key === "ArrowUp" ? {
|
|
26933
27037
|
h: n,
|
|
26934
27038
|
s: r,
|
|
26935
|
-
v:
|
|
27039
|
+
v: xu(a + t)
|
|
26936
27040
|
} : e.key === "ArrowDown" ? {
|
|
26937
27041
|
h: n,
|
|
26938
27042
|
s: r,
|
|
26939
|
-
v:
|
|
27043
|
+
v: xu(a - t)
|
|
26940
27044
|
} : null;
|
|
26941
27045
|
o && (e.preventDefault(), s(o));
|
|
26942
27046
|
}, f = (e) => {
|
|
@@ -26946,11 +27050,11 @@ function Su({ hex: e, onPick: t }) {
|
|
|
26946
27050
|
s: r,
|
|
26947
27051
|
v: a
|
|
26948
27052
|
}));
|
|
26949
|
-
}, g =
|
|
27053
|
+
}, g = Cu({
|
|
26950
27054
|
h: n.h,
|
|
26951
27055
|
s: 1,
|
|
26952
27056
|
v: 1
|
|
26953
|
-
}), _ =
|
|
27057
|
+
}), _ = Cu(n);
|
|
26954
27058
|
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
|
|
26955
27059
|
className: "select-colorfield__sv",
|
|
26956
27060
|
style: { backgroundColor: g },
|
|
@@ -26994,24 +27098,24 @@ function Su({ hex: e, onPick: t }) {
|
|
|
26994
27098
|
})
|
|
26995
27099
|
})] });
|
|
26996
27100
|
}
|
|
26997
|
-
var
|
|
26998
|
-
function
|
|
27101
|
+
var Tu = (e) => e.toFixed(1).replace(".", ",");
|
|
27102
|
+
function Eu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: c = gu, disabled: l = !1, allowEmpty: u = !1, contrastWith: f, contrastLabel: g = "o texto", id: _ }) {
|
|
26999
27103
|
let v = s(), y = _ ?? `color-${v}`, [b, x] = d(!1), [S, C] = d(i ?? ""), [w, T] = d(null);
|
|
27000
27104
|
o(() => {
|
|
27001
27105
|
C(i ?? ""), T(null);
|
|
27002
27106
|
}, [i]);
|
|
27003
|
-
let E =
|
|
27107
|
+
let E = vu(i ?? ""), D = (e) => {
|
|
27004
27108
|
if (!e.trim()) {
|
|
27005
27109
|
u ? (T(null), a("")) : C(i ?? "");
|
|
27006
27110
|
return;
|
|
27007
27111
|
}
|
|
27008
|
-
let t =
|
|
27112
|
+
let t = vu(e);
|
|
27009
27113
|
if (!t) {
|
|
27010
27114
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
27011
27115
|
return;
|
|
27012
27116
|
}
|
|
27013
27117
|
T(null), C(t), t !== E && a(t);
|
|
27014
|
-
}, O = f ?
|
|
27118
|
+
}, O = f ? vu(f) : null, k = E && O ? bu(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
|
|
27015
27119
|
return /* @__PURE__ */ h("div", {
|
|
27016
27120
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
27017
27121
|
children: [
|
|
@@ -27039,7 +27143,7 @@ function wu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
27039
27143
|
children: /* @__PURE__ */ h("div", {
|
|
27040
27144
|
className: "select-colorfield__panel",
|
|
27041
27145
|
children: [
|
|
27042
|
-
/* @__PURE__ */ m(
|
|
27146
|
+
/* @__PURE__ */ m(wu, {
|
|
27043
27147
|
hex: E,
|
|
27044
27148
|
onPick: D
|
|
27045
27149
|
}),
|
|
@@ -27048,7 +27152,7 @@ function wu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
27048
27152
|
role: "group",
|
|
27049
27153
|
"aria-label": "Cores prontas",
|
|
27050
27154
|
children: c.map((e) => {
|
|
27051
|
-
let t =
|
|
27155
|
+
let t = vu(e) ?? e, n = t === E;
|
|
27052
27156
|
return /* @__PURE__ */ m("button", {
|
|
27053
27157
|
type: "button",
|
|
27054
27158
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -27079,7 +27183,7 @@ function wu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
27079
27183
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
27080
27184
|
value: S,
|
|
27081
27185
|
onChange: (e) => {
|
|
27082
|
-
C(e.target.value), e.target.value.replace("#", "").length === 6 &&
|
|
27186
|
+
C(e.target.value), e.target.value.replace("#", "").length === 6 && vu(e.target.value) && D(e.target.value);
|
|
27083
27187
|
},
|
|
27084
27188
|
onBlur: () => D(S),
|
|
27085
27189
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -27102,14 +27206,14 @@ function wu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
27102
27206
|
}) : null : /* @__PURE__ */ h("p", {
|
|
27103
27207
|
id: `${y}-hint`,
|
|
27104
27208
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
27105
|
-
children: [k >= 4.5 ? `Contraste com ${g}: ${
|
|
27209
|
+
children: [k >= 4.5 ? `Contraste com ${g}: ${Tu(k)}:1 — legível.` : `Contraste com ${g}: ${Tu(k)}:1 — difícil de ler. Escolha uma cor ${yu(E) < yu(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ h(p, { children: [" ", n] }) : null]
|
|
27106
27210
|
})
|
|
27107
27211
|
]
|
|
27108
27212
|
});
|
|
27109
27213
|
}
|
|
27110
27214
|
//#endregion
|
|
27111
27215
|
//#region src/SelectProgressBar.tsx
|
|
27112
|
-
var
|
|
27216
|
+
var Du = 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) {
|
|
27113
27217
|
if (l) return /* @__PURE__ */ h("div", {
|
|
27114
27218
|
ref: f,
|
|
27115
27219
|
...d,
|
|
@@ -27154,14 +27258,14 @@ var Tu = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
27154
27258
|
})
|
|
27155
27259
|
]
|
|
27156
27260
|
});
|
|
27157
|
-
}),
|
|
27261
|
+
}), Ou = 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) {
|
|
27158
27262
|
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: [
|
|
27159
27263
|
/* @__PURE__ */ h("span", {
|
|
27160
27264
|
className: "select-choicecard__top",
|
|
27161
27265
|
children: [/* @__PURE__ */ m("span", {
|
|
27162
27266
|
className: "select-choicecard__icon",
|
|
27163
27267
|
"aria-hidden": "true",
|
|
27164
|
-
children: /* @__PURE__ */ m(
|
|
27268
|
+
children: /* @__PURE__ */ m(Ji, {
|
|
27165
27269
|
size: "1.375rem",
|
|
27166
27270
|
children: e
|
|
27167
27271
|
})
|
|
@@ -27195,7 +27299,7 @@ var Tu = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
27195
27299
|
]
|
|
27196
27300
|
})]
|
|
27197
27301
|
})
|
|
27198
|
-
] }), x = u ? void 0 :
|
|
27302
|
+
] }), x = u ? void 0 : Ei(s);
|
|
27199
27303
|
return x ? /* @__PURE__ */ m(_, {
|
|
27200
27304
|
ref: g,
|
|
27201
27305
|
to: x,
|
|
@@ -27215,7 +27319,7 @@ var Tu = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
27215
27319
|
children: b
|
|
27216
27320
|
});
|
|
27217
27321
|
});
|
|
27218
|
-
function
|
|
27322
|
+
function ku({ badge: e = !0 }) {
|
|
27219
27323
|
return /* @__PURE__ */ h("div", {
|
|
27220
27324
|
className: "select-choicecard select-choicecard--skeleton",
|
|
27221
27325
|
"aria-hidden": "true",
|
|
@@ -27236,7 +27340,7 @@ function Du({ badge: e = !0 }) {
|
|
|
27236
27340
|
]
|
|
27237
27341
|
});
|
|
27238
27342
|
}
|
|
27239
|
-
var
|
|
27343
|
+
var Au = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, listOnPhone: i = !1, className: a, style: o, ...s }, c) {
|
|
27240
27344
|
return /* @__PURE__ */ m("div", {
|
|
27241
27345
|
ref: c,
|
|
27242
27346
|
...s,
|
|
@@ -27246,16 +27350,16 @@ var Ou = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
27246
27350
|
"--select-choice-min": t,
|
|
27247
27351
|
...o
|
|
27248
27352
|
},
|
|
27249
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(
|
|
27353
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(ku, {}, t)) : e
|
|
27250
27354
|
});
|
|
27251
|
-
}),
|
|
27355
|
+
}), ju = 960, Mu = Math.round(ju * 210 / 297), Nu = 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 }, _) {
|
|
27252
27356
|
let v = u(null), [y, b] = d(.5);
|
|
27253
27357
|
o(() => {
|
|
27254
27358
|
let e = v.current;
|
|
27255
27359
|
if (!e) return;
|
|
27256
27360
|
let t = () => {
|
|
27257
27361
|
let t = e.clientWidth;
|
|
27258
|
-
t > 0 && b(Math.min(1, t /
|
|
27362
|
+
t > 0 && b(Math.min(1, t / ju));
|
|
27259
27363
|
};
|
|
27260
27364
|
if (t(), typeof ResizeObserver > "u") return;
|
|
27261
27365
|
let n = new ResizeObserver(t);
|
|
@@ -27263,7 +27367,7 @@ var Ou = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
27263
27367
|
}, []);
|
|
27264
27368
|
let x = e === "front", S = {
|
|
27265
27369
|
"--select-cert-accent": t || void 0,
|
|
27266
|
-
height:
|
|
27370
|
+
height: Mu * y + 2
|
|
27267
27371
|
};
|
|
27268
27372
|
return /* @__PURE__ */ m("div", {
|
|
27269
27373
|
ref: (e) => {
|
|
@@ -27276,8 +27380,8 @@ var Ou = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
27276
27380
|
children: /* @__PURE__ */ m("div", {
|
|
27277
27381
|
className: "select-certpreview__sheet",
|
|
27278
27382
|
style: {
|
|
27279
|
-
width:
|
|
27280
|
-
height:
|
|
27383
|
+
width: ju,
|
|
27384
|
+
height: Mu,
|
|
27281
27385
|
transform: `scale(${y})`
|
|
27282
27386
|
},
|
|
27283
27387
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -27350,13 +27454,13 @@ var Ou = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
27350
27454
|
});
|
|
27351
27455
|
//#endregion
|
|
27352
27456
|
//#region src/SelectImageField.tsx
|
|
27353
|
-
function
|
|
27457
|
+
function Pu(e) {
|
|
27354
27458
|
return new Promise((t, n) => {
|
|
27355
27459
|
let r = new FileReader();
|
|
27356
27460
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
27357
27461
|
});
|
|
27358
27462
|
}
|
|
27359
|
-
var
|
|
27463
|
+
var Fu = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
|
|
27360
27464
|
let [f, p] = d([]), [g, _] = d(null), v = t ? [t] : [], y = async (e) => {
|
|
27361
27465
|
let t = e[0];
|
|
27362
27466
|
if (!t) {
|
|
@@ -27364,7 +27468,7 @@ var Nu = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27364
27468
|
return;
|
|
27365
27469
|
}
|
|
27366
27470
|
if (_(null), !s) {
|
|
27367
|
-
n(await
|
|
27471
|
+
n(await Pu(t)), p([]);
|
|
27368
27472
|
return;
|
|
27369
27473
|
}
|
|
27370
27474
|
p([t]);
|
|
@@ -27396,7 +27500,7 @@ var Nu = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27396
27500
|
children: g
|
|
27397
27501
|
})]
|
|
27398
27502
|
});
|
|
27399
|
-
}),
|
|
27503
|
+
}), Iu = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
27400
27504
|
let [o, s] = d(() => new Set(n)), c = (e) => s((n) => {
|
|
27401
27505
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
27402
27506
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -27442,6 +27546,6 @@ var Nu = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27442
27546
|
});
|
|
27443
27547
|
});
|
|
27444
27548
|
//#endregion
|
|
27445
|
-
export { C as AUTH_FX_VARIANTS, Le as AppleIcon, vt as AppsIcon, G as ArrowLeftIcon, ze as ArrowRightIcon, Ge as AtIcon, Pe as AuthAppIcon, Et as AwardIcon, ot as BankIcon, Ce as BellIcon, wt as BookIcon, pe as BookmarkIcon, pt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, bt as CartIcon, gt as ChartLineIcon, Nt as ChatIcon, We as CheckCircleIcon, Ve as CheckIcon, W as ChevronDownIcon, ae as ChevronLeftIcon, U as ChevronRightIcon, it as ChevronUpIcon, lt as ClipboardIcon, fe as ClockIcon, Lt as CloseCircleIcon, le as CloseIcon, ce as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, dt as DiscountIcon, zt as DocumentTextIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, q as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, Tt as FileDownloadIcon, K as FilterIcon, Ft as FlagIcon, Rt as FlashIcon, ie as GithubIcon, _e as GlobeIcon, re as GoogleIcon, be as HelpIcon, Xe as HomeIcon, ye as InfoIcon, Je as KeyIcon, ht as LinkIcon, It as LocationIcon, nt as LockIcon, Fe as MailIcon, xt as MenuIcon, yt as MinusCircleIcon, Ae as MobileIcon, ct as MoneyReceiveIcon, st as MoneySendIcon, ke as MonitorIcon, Oe as MoonIcon, ut as NoteIcon, Ot as PaletteIcon, Re as PasskeyIcon, At as PauseIcon, Ne as PhoneIcon, me as PinIcon, Ct as PlayCircleIcon, Me as PlusIcon, Mt as ReceiptIcon, je as RefreshIcon, jt as RefundIcon, Te as RocketIcon,
|
|
27549
|
+
export { C as AUTH_FX_VARIANTS, Le as AppleIcon, vt as AppsIcon, G as ArrowLeftIcon, ze as ArrowRightIcon, Ge as AtIcon, Pe as AuthAppIcon, Et as AwardIcon, ot as BankIcon, Ce as BellIcon, wt as BookIcon, pe as BookmarkIcon, pt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, bt as CartIcon, gt as ChartLineIcon, Nt as ChatIcon, We as CheckCircleIcon, Ve as CheckIcon, W as ChevronDownIcon, ae as ChevronLeftIcon, U as ChevronRightIcon, it as ChevronUpIcon, lt as ClipboardIcon, fe as ClockIcon, Lt as CloseCircleIcon, le as CloseIcon, ce as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, dt as DiscountIcon, zt as DocumentTextIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, q as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, Tt as FileDownloadIcon, K as FilterIcon, Ft as FlagIcon, Rt as FlashIcon, ie as GithubIcon, _e as GlobeIcon, re as GoogleIcon, be as HelpIcon, Xe as HomeIcon, ye as InfoIcon, Je as KeyIcon, ht as LinkIcon, It as LocationIcon, nt as LockIcon, Fe as MailIcon, xt as MenuIcon, yt as MinusCircleIcon, Ae as MobileIcon, ct as MoneyReceiveIcon, st as MoneySendIcon, ke as MonitorIcon, Oe as MoonIcon, ut as NoteIcon, Ot as PaletteIcon, Re as PasskeyIcon, At as PauseIcon, Ne as PhoneIcon, me as PinIcon, Ct as PlayCircleIcon, Me as PlusIcon, Mt as ReceiptIcon, je as RefreshIcon, jt as RefundIcon, Te as RocketIcon, mc as SELECT_BR_UF_TILES, wr as SELECT_CARD_BRANDS, gu as SELECT_COLOR_PRESETS, qa as SELECT_COL_DATETIME, Ja as SELECT_COL_ID, rr as SELECT_COUNTRIES, $l as SELECT_DAILY_PRESETS, Xl as SELECT_DATE_PRESETS, pr as SELECT_SPACE, lr as SELECT_TRANSACTION_STATUS, oe as SearchIcon, Iu as SelectAccordion, La as SelectActionCard, dr as SelectActionList, fr as SelectActionMenu, gn as SelectAddButton, oo as SelectAddCard, sn as SelectAlert, Ra as SelectAppTile, B as SelectAuthFx, _i as SelectAvatar, Di as SelectBackLink, cr as SelectBadge, fs as SelectBalanceCard, Vn as SelectBankAccountField, Hs as SelectBarChart, xr as SelectBox, Mc as SelectBoxPlot, lu as SelectBuilderLayout, uu as SelectBuilderWorkspace, Tc as SelectBullet, rl as SelectBump, H as SelectButton, Pc as SelectCalendarHeatmap, jc as SelectCandlestick, V as SelectCard, so as SelectCardGrid, Nu as SelectCertificatePreview, Es as SelectChartCard, Xs as SelectChartLegend, Yt as SelectCheckbox, bi as SelectChipInput, Ou as SelectChoiceCard, ku as SelectChoiceCardSkeleton, Au as SelectChoiceGrid, Uc as SelectChord, ul as SelectCirclePack, Pa as SelectCodeBlock, Ia as SelectCollapsible, Eu as SelectColorField, Ys as SelectColumnChart, Gs as SelectComboChart, Ln as SelectCombobox, Wa as SelectConfirmModal, Ma as SelectCopyRow, Fa as SelectCopyableId, za as SelectCreateTile, ao as SelectDataTable, Ko as SelectDateField, tu as SelectDatePicker, ou as SelectDateRangeField, yl as SelectDetailList, bl as SelectDetailRow, Nr as SelectDisclosureButton, gi as SelectDivider, on as SelectDocumentField, Ks as SelectDonut, S as SelectDotField, Lc as SelectDumbbell, ps as SelectFeeBreakdown, Jt as SelectField, Rn as SelectFieldGrid, hn as SelectFileDropzone, cn as SelectFileTile, Zo as SelectFilterBar, ja as SelectFilterChip, fu as SelectFlowCanvas, mu as SelectFlowLayout, pu as SelectFlowNode, zi as SelectFormLayout, Ga as SelectFormModal, oc as SelectFunnel, dc as SelectGauge, zc as SelectGaugeBands, Qc as SelectGlobe, vr as SelectGrid, fc as SelectHeatmap, Wc as SelectHexbin, ko as SelectHideMoneyToggle, Sc as SelectHorizontalBar, sl as SelectIcicle, Ji as SelectIcon, J as SelectIconButton, tc as SelectIconTile, Ci as SelectIdentityFooter, Fu as SelectImageField, wn as SelectImageGalleryField, vn as SelectImageUploadField, _n as SelectImageUrlsField, Il as SelectImageZoomModal, Wt as SelectInfoTip, _r as SelectInline, Ts as SelectInsight, $s as SelectJourney, di as SelectJsonViewer, Vl as SelectKeyValueEditor, ms as SelectKpiCard, Gt as SelectLabelRow, uo as SelectLayoutThumb, Us as SelectLineChart, hi as SelectLinkButton, Ml as SelectListCard, Pl as SelectListLabel, Nl as SelectListRow, Fi as SelectLoader, Rc as SelectMarimekko, Po as SelectMarkStack, Rl as SelectMediaCell, wa as SelectMenu, Aa as SelectMenuButton, ka as SelectMenuDivider, Oa as SelectMenuHeading, Ea as SelectMenuItem, Da as SelectMenuLink, Oo as SelectMetricDelta, ic as SelectMiniStats, Ha as SelectModal, Eo as SelectMoney, tn as SelectMoneyField, dl as SelectNetwork, Yi as SelectNote, su as SelectNumberField, Ao as SelectOfferPrice, zl as SelectOfflineModal, xi as SelectOptionList, Si as SelectOptionRow, wi as SelectOtpInput, Ii as SelectPage, la as SelectPagination, Qi as SelectPanel, il as SelectParallel, el as SelectPareto, Pi as SelectPasswordStrength, Mr as SelectPaymentBrand, ac as SelectPaymentCard, ar as SelectPhoneField, ec as SelectPips, jl as SelectPlanCard, Fc as SelectPolarArea, Fn as SelectPopover, ds as SelectPreviewFrame, Du as SelectProgressBar, hc as SelectProgressList, nl as SelectPyramid, kc as SelectRadar, _c as SelectRadialBar, or as SelectRadioGroup, Nc as SelectRangeBar, Mo as SelectRating, No as SelectRatingQuote, co as SelectRecordCard, cu as SelectRepeatingFieldArray, Oi as SelectResendButton, Ai as SelectRetryStatus, Qs as SelectRing, Ua as SelectRowActions, Ac as SelectSankey, Oc as SelectScatter, oa as SelectSearchInput, fl as SelectSearchMenu, ml as SelectSearchMenuOption, $i as SelectSection, sr as SelectSegmented, Tn as SelectSelect, To as SelectSensitiveValue, Xi as SelectSettingList, Zi as SelectSettingRow, wl as SelectSetupGuide, Tl as SelectSetupNext, Zs as SelectShareBar, aa as SelectSideNav, Ki as SelectSkeleton, Ic as SelectSlope, Bs as SelectSparkline, mo as SelectSplitChain, nc as SelectSpotlight, gr as SelectStack, Ws as SelectStackedArea, ur as SelectStatusBadge, xl as SelectSteps, Bc as SelectStreamGraph, Vc as SelectSunburst, $o as SelectSurface, Hn as SelectSwitch, hu as SelectSwitchField, va as SelectTable, Sa as SelectTableCell, Ca as SelectTableEmpty, xa as SelectTableRow, ea as SelectTabs, Qo as SelectTagSelect, rc as SelectTaskCard, Sr as SelectText, Xt as SelectTextarea, _l as SelectThemeSwitcher, Fl as SelectThumbnail, $c as SelectTicker, pc as SelectTileMap, mi as SelectTimeline, os as SelectToastProvider, Un as SelectToggleList, Gn as SelectTogglePanel, Wn as SelectToggleRow, Ut as SelectTooltip, Al as SelectTour, cl as SelectTree, Dc as SelectTreemap, Zt as SelectUnitInput, ba as SelectUserCell, Co as SelectValueVisibilityProvider, ll as SelectVenn, Hc as SelectViolin, tl as SelectWaffle, Cc as SelectWaterfall, Gc as SelectWordCloud, Ba as SelectWorkspaceSwitcher, Ll as SelectZoomThumbnail, ve as SelectorIcon, tt as SendIcon, de as Setting4Icon, Ze as SettingsIcon, Be as ShieldIcon, Pt as SparkleIcon, ge as SplitIcon, he as StarIcon, _t as StoreIcon, St as StorefrontIcon, De as SunIcon, we as TerminalIcon, ft as TicketDiscountIcon, Ye as TrashIcon, mt as TruckIcon, se as UploadIcon, Se as UserIcon, Dt as UsersIcon, Qe as WalletIcon, xe as WarningIcon, Ke as Web3Icon, vi as avatarInitials, bu as contrastRatio, Nn as detectSelectTheme, ir as dialCodeOf, vs as formatInsightImpact, bn as galleryItemFromFile, xn as galleryItemFromUrl, Su as hexToHsv, Cu as hsvToHex, vu as normalizeHex, Ni as passwordScore, Na as prettyCode, gl as resolveSelectTheme, Dr as selectCardBrand, Or as selectCardBrandLabel, ro as useSelectPageSize, ss as useSelectToast, wo as useSelectValueVisibility };
|
|
27446
27550
|
|
|
27447
27551
|
//# sourceMappingURL=index.js.map
|