@selectwin/kit 0.1.104 → 0.1.106
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/SelectCardGrid.d.ts +4 -1
- package/dist/SelectChoiceCard.d.ts +9 -1
- package/dist/SelectKpiCard.d.ts +2 -0
- package/dist/SelectProgressBar.d.ts +2 -0
- package/dist/SelectSection.d.ts +3 -1
- package/dist/SelectSkeleton.d.ts +14 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +635 -553
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4115,6 +4115,7 @@ function Qn({ children: e, padding: t, paddingInline: n, paddingBlock: r, backgr
|
|
|
4115
4115
|
};
|
|
4116
4116
|
return /* @__PURE__ */ m(h, {
|
|
4117
4117
|
...p,
|
|
4118
|
+
"data-bg": i,
|
|
4118
4119
|
className: Kn("select-box", d),
|
|
4119
4120
|
style: g,
|
|
4120
4121
|
children: e
|
|
@@ -5335,26 +5336,49 @@ function mi({ size: e = "medium" }) {
|
|
|
5335
5336
|
function hi({ size: e = "medium" }) {
|
|
5336
5337
|
return /* @__PURE__ */ m("div", { className: `select-skeleton select-skel-thumb select-skel-thumb--${e}` });
|
|
5337
5338
|
}
|
|
5338
|
-
function gi({ height: e = 240 }) {
|
|
5339
|
+
function gi({ height: e = 240, aspectRatio: t }) {
|
|
5339
5340
|
return /* @__PURE__ */ m("div", {
|
|
5340
5341
|
className: "select-skeleton select-skel-block",
|
|
5341
|
-
style: { height: e }
|
|
5342
|
+
style: t ? { aspectRatio: t } : { height: e }
|
|
5342
5343
|
});
|
|
5343
5344
|
}
|
|
5344
|
-
|
|
5345
|
+
function _i({ tall: e = !1 }) {
|
|
5346
|
+
return /* @__PURE__ */ h("div", {
|
|
5347
|
+
className: "select-skel-field",
|
|
5348
|
+
"aria-hidden": "true",
|
|
5349
|
+
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" : ""}` })]
|
|
5350
|
+
});
|
|
5351
|
+
}
|
|
5352
|
+
function vi({ media: e = !0, action: t = !0, boxed: n = !1 }) {
|
|
5353
|
+
return /* @__PURE__ */ h("div", {
|
|
5354
|
+
className: `select-skel-row${n ? " select-skel-row--boxed" : ""}`,
|
|
5355
|
+
"aria-hidden": "true",
|
|
5356
|
+
children: [
|
|
5357
|
+
e && /* @__PURE__ */ m("div", { className: "select-skeleton select-skel-row__media" }),
|
|
5358
|
+
/* @__PURE__ */ h("div", {
|
|
5359
|
+
className: "select-skel-row__text",
|
|
5360
|
+
children: [/* @__PURE__ */ m("div", { className: "select-skeleton select-skel-row__title" }), /* @__PURE__ */ m("div", { className: "select-skeleton select-skel-row__sub" })]
|
|
5361
|
+
}),
|
|
5362
|
+
t && /* @__PURE__ */ m("div", { className: "select-skeleton select-skel-row__action" })
|
|
5363
|
+
]
|
|
5364
|
+
});
|
|
5365
|
+
}
|
|
5366
|
+
var yi = Object.assign(function({ lines: e }) {
|
|
5345
5367
|
return /* @__PURE__ */ m(pi, { lines: e });
|
|
5346
5368
|
}, {
|
|
5347
5369
|
Body: pi,
|
|
5348
5370
|
Display: mi,
|
|
5349
5371
|
Thumbnail: hi,
|
|
5350
|
-
Block: gi
|
|
5351
|
-
|
|
5372
|
+
Block: gi,
|
|
5373
|
+
Field: _i,
|
|
5374
|
+
Row: vi
|
|
5375
|
+
}), bi = {
|
|
5352
5376
|
sm: "1rem",
|
|
5353
5377
|
md: "1.25rem",
|
|
5354
5378
|
lg: "1.5rem"
|
|
5355
5379
|
};
|
|
5356
|
-
function
|
|
5357
|
-
let i = ["select-icon", n !== "inherit" && n !== "base" ? `select-icon--${n}` : ""].filter(Boolean).join(" "), a =
|
|
5380
|
+
function xi({ source: e, children: t, tone: n = "inherit", size: r = "md" }) {
|
|
5381
|
+
let i = ["select-icon", n !== "inherit" && n !== "base" ? `select-icon--${n}` : ""].filter(Boolean).join(" "), a = bi[r] ?? r;
|
|
5358
5382
|
return /* @__PURE__ */ m("span", {
|
|
5359
5383
|
className: i,
|
|
5360
5384
|
style: { "--select-icon-size": a },
|
|
@@ -5364,7 +5388,7 @@ function yi({ source: e, children: t, tone: n = "inherit", size: r = "md" }) {
|
|
|
5364
5388
|
}
|
|
5365
5389
|
//#endregion
|
|
5366
5390
|
//#region src/SelectNote.tsx
|
|
5367
|
-
var
|
|
5391
|
+
var Si = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, className: r, ...i }, a) {
|
|
5368
5392
|
let o = m(t === "warning" || t === "critical" ? xe : ye, {});
|
|
5369
5393
|
return /* @__PURE__ */ h("div", {
|
|
5370
5394
|
ref: a,
|
|
@@ -5378,14 +5402,14 @@ var bi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, classN
|
|
|
5378
5402
|
children: e
|
|
5379
5403
|
})]
|
|
5380
5404
|
});
|
|
5381
|
-
}),
|
|
5405
|
+
}), Ci = r(function({ children: e, className: t, ...n }, r) {
|
|
5382
5406
|
return /* @__PURE__ */ m("div", {
|
|
5383
5407
|
ref: r,
|
|
5384
5408
|
...n,
|
|
5385
5409
|
className: `select-settinglist${t ? " " + t : ""}`,
|
|
5386
5410
|
children: e
|
|
5387
5411
|
});
|
|
5388
|
-
}),
|
|
5412
|
+
}), wi = r(function({ control: e, title: t, badge: n, description: r, children: i, bodyOpen: a, className: o, ...s }, c) {
|
|
5389
5413
|
return /* @__PURE__ */ h("div", {
|
|
5390
5414
|
ref: c,
|
|
5391
5415
|
...s,
|
|
@@ -5424,7 +5448,7 @@ var bi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, classN
|
|
|
5424
5448
|
]
|
|
5425
5449
|
})]
|
|
5426
5450
|
});
|
|
5427
|
-
}),
|
|
5451
|
+
}), Ti = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, tone: a = "default", flush: o = !1, className: s, ...c }, l) {
|
|
5428
5452
|
return /* @__PURE__ */ h("div", {
|
|
5429
5453
|
ref: l,
|
|
5430
5454
|
...c,
|
|
@@ -5456,7 +5480,7 @@ var bi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, classN
|
|
|
5456
5480
|
})
|
|
5457
5481
|
]
|
|
5458
5482
|
});
|
|
5459
|
-
}),
|
|
5483
|
+
}), Ei = r(function({ title: e, help: t, description: n, action: r, collapsible: i = !1, defaultOpen: a = !0, children: o, className: s, ...c }, l) {
|
|
5460
5484
|
let [u, f] = d(a);
|
|
5461
5485
|
return i ? /* @__PURE__ */ h("div", {
|
|
5462
5486
|
ref: l,
|
|
@@ -5467,9 +5491,15 @@ var bi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, classN
|
|
|
5467
5491
|
className: "select-section__head select-section__head--toggle",
|
|
5468
5492
|
"aria-expanded": u,
|
|
5469
5493
|
onClick: () => f((e) => !e),
|
|
5470
|
-
children: [
|
|
5471
|
-
className: "select-
|
|
5472
|
-
children: e
|
|
5494
|
+
children: [/* @__PURE__ */ h("span", {
|
|
5495
|
+
className: "select-section__heading",
|
|
5496
|
+
children: [e && /* @__PURE__ */ m("span", {
|
|
5497
|
+
className: "select-section__title",
|
|
5498
|
+
children: e
|
|
5499
|
+
}), n && /* @__PURE__ */ m("span", {
|
|
5500
|
+
className: "select-section__desc",
|
|
5501
|
+
children: n
|
|
5502
|
+
})]
|
|
5473
5503
|
}), /* @__PURE__ */ m("span", {
|
|
5474
5504
|
className: "select-section__chevron",
|
|
5475
5505
|
"aria-hidden": "true",
|
|
@@ -5511,7 +5541,7 @@ var bi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, classN
|
|
|
5511
5541
|
});
|
|
5512
5542
|
//#endregion
|
|
5513
5543
|
//#region src/SelectTabs.tsx
|
|
5514
|
-
function
|
|
5544
|
+
function Di({ tabs: e, value: t, onChange: n, end: r, className: i, ...a }) {
|
|
5515
5545
|
let o = u(null), [s, l] = d({
|
|
5516
5546
|
left: 0,
|
|
5517
5547
|
width: 0
|
|
@@ -5569,12 +5599,12 @@ function Ti({ tabs: e, value: t, onChange: n, end: r, className: i, ...a }) {
|
|
|
5569
5599
|
}
|
|
5570
5600
|
//#endregion
|
|
5571
5601
|
//#region src/SelectSideNav.tsx
|
|
5572
|
-
function
|
|
5602
|
+
function Oi(e, t) {
|
|
5573
5603
|
var n;
|
|
5574
|
-
return ((n = e.children) == null ? void 0 : n.some((e) => e.id === t ||
|
|
5604
|
+
return ((n = e.children) == null ? void 0 : n.some((e) => e.id === t || Oi(e, t))) ?? !1;
|
|
5575
5605
|
}
|
|
5576
|
-
function
|
|
5577
|
-
let r = e.alwaysOpen === !0, i =
|
|
5606
|
+
function ki({ item: e, active: t, onSelect: n }) {
|
|
5607
|
+
let r = e.alwaysOpen === !0, i = Oi(e, t), [a, s] = d(i);
|
|
5578
5608
|
o(() => {
|
|
5579
5609
|
s(i);
|
|
5580
5610
|
}, [i]);
|
|
@@ -5582,7 +5612,7 @@ function Di({ item: e, active: t, onSelect: n }) {
|
|
|
5582
5612
|
return c(() => {
|
|
5583
5613
|
var e;
|
|
5584
5614
|
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\"]");
|
|
5585
|
-
n && r && (n = ((e = r.parentElement) == null ? void 0 : e.querySelector(":scope > .select-sidenav__item")) ?? null), g(n && l ?
|
|
5615
|
+
n && r && (n = ((e = r.parentElement) == null ? void 0 : e.querySelector(":scope > .select-sidenav__item")) ?? null), g(n && l ? Ai(n, t) : null);
|
|
5586
5616
|
}, [
|
|
5587
5617
|
t,
|
|
5588
5618
|
l,
|
|
@@ -5629,7 +5659,7 @@ function Di({ item: e, active: t, onSelect: n }) {
|
|
|
5629
5659
|
}
|
|
5630
5660
|
}), e.children.map((e) => {
|
|
5631
5661
|
var r;
|
|
5632
|
-
return (r = e.children) != null && r.length ? /* @__PURE__ */ m(
|
|
5662
|
+
return (r = e.children) != null && r.length ? /* @__PURE__ */ m(ji, {
|
|
5633
5663
|
item: e,
|
|
5634
5664
|
active: t,
|
|
5635
5665
|
onSelect: n,
|
|
@@ -5653,12 +5683,12 @@ function Di({ item: e, active: t, onSelect: n }) {
|
|
|
5653
5683
|
})]
|
|
5654
5684
|
});
|
|
5655
5685
|
}
|
|
5656
|
-
function
|
|
5686
|
+
function Ai(e, t) {
|
|
5657
5687
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
5658
5688
|
return n.top - r.top + t.scrollTop + n.height / 2;
|
|
5659
5689
|
}
|
|
5660
|
-
function
|
|
5661
|
-
let i =
|
|
5690
|
+
function ji({ item: e, active: t, onSelect: n, tabbable: r }) {
|
|
5691
|
+
let i = Oi(e, t), [a, s] = d(i);
|
|
5662
5692
|
return o(() => {
|
|
5663
5693
|
i && s(!0);
|
|
5664
5694
|
}, [i]), /* @__PURE__ */ h("div", {
|
|
@@ -5709,7 +5739,7 @@ function ki({ item: e, active: t, onSelect: n, tabbable: r }) {
|
|
|
5709
5739
|
})]
|
|
5710
5740
|
});
|
|
5711
5741
|
}
|
|
5712
|
-
var
|
|
5742
|
+
var Mi = r(function({ sections: e, active: t, onSelect: n, header: r, className: i, ...a }, o) {
|
|
5713
5743
|
return /* @__PURE__ */ h("nav", {
|
|
5714
5744
|
ref: o,
|
|
5715
5745
|
...a,
|
|
@@ -5722,7 +5752,7 @@ var Ai = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
5722
5752
|
children: [e.label && /* @__PURE__ */ m("div", {
|
|
5723
5753
|
className: "select-sidenav__sectionlabel",
|
|
5724
5754
|
children: e.label
|
|
5725
|
-
}), e.items.map((e) => e.children ? /* @__PURE__ */ m(
|
|
5755
|
+
}), e.items.map((e) => e.children ? /* @__PURE__ */ m(ki, {
|
|
5726
5756
|
item: e,
|
|
5727
5757
|
active: t,
|
|
5728
5758
|
onSelect: n
|
|
@@ -5741,7 +5771,7 @@ var Ai = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
5741
5771
|
}, e.id))]
|
|
5742
5772
|
}, r))]
|
|
5743
5773
|
});
|
|
5744
|
-
}),
|
|
5774
|
+
}), Ni = r(function({ value: e, onChange: t, placeholder: n = "Buscar…", shortcut: r, className: i, ...a }, o) {
|
|
5745
5775
|
return /* @__PURE__ */ h("div", {
|
|
5746
5776
|
ref: o,
|
|
5747
5777
|
...a,
|
|
@@ -5768,7 +5798,7 @@ var Ai = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
5768
5798
|
});
|
|
5769
5799
|
//#endregion
|
|
5770
5800
|
//#region src/SelectPagination.tsx
|
|
5771
|
-
function
|
|
5801
|
+
function Pi(e, t) {
|
|
5772
5802
|
let n = [.../* @__PURE__ */ new Set([
|
|
5773
5803
|
1,
|
|
5774
5804
|
t,
|
|
@@ -5779,7 +5809,7 @@ function Mi(e, t) {
|
|
|
5779
5809
|
for (let e of n) e - i > 1 && r.push("gap"), r.push(e), i = e;
|
|
5780
5810
|
return r;
|
|
5781
5811
|
}
|
|
5782
|
-
function
|
|
5812
|
+
function Fi(e, t, n, r, i, a) {
|
|
5783
5813
|
let o = [];
|
|
5784
5814
|
if (e != null) {
|
|
5785
5815
|
if (e === 0) o.push(`0 ${i}`);
|
|
@@ -5790,8 +5820,8 @@ function Ni(e, t, n, r, i, a) {
|
|
|
5790
5820
|
}
|
|
5791
5821
|
return a && r != null && r > 0 && o.push(`Página ${n} de ${r}`), o.length > 0 ? o.join(" · ") : null;
|
|
5792
5822
|
}
|
|
5793
|
-
var
|
|
5794
|
-
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 ?
|
|
5823
|
+
var Ii = 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) {
|
|
5824
|
+
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 ? Pi(e, t) : [], x = Fi(n, r, e, t, l, y);
|
|
5795
5825
|
return /* @__PURE__ */ h("nav", {
|
|
5796
5826
|
ref: f,
|
|
5797
5827
|
...d,
|
|
@@ -5839,7 +5869,7 @@ var Pi = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious:
|
|
|
5839
5869
|
});
|
|
5840
5870
|
//#endregion
|
|
5841
5871
|
//#region src/internal/listChrome.tsx
|
|
5842
|
-
function
|
|
5872
|
+
function Li({ title: e, description: t, action: n, filters: r, tools: i }) {
|
|
5843
5873
|
let a = r != null, o = a ? null : i, s = e != null || t != null;
|
|
5844
5874
|
return {
|
|
5845
5875
|
hasFilters: a,
|
|
@@ -5848,8 +5878,8 @@ function Fi({ title: e, description: t, action: n, filters: r, tools: i }) {
|
|
|
5848
5878
|
hasTitleRow: s || n != null || o != null
|
|
5849
5879
|
};
|
|
5850
5880
|
}
|
|
5851
|
-
function
|
|
5852
|
-
let { hasFilters: s, inlineTools: c, hasIdentity: l, hasTitleRow: u } =
|
|
5881
|
+
function Ri({ title: e, help: t, description: n, action: r, filters: i, tools: a, toggle: o }) {
|
|
5882
|
+
let { hasFilters: s, inlineTools: c, hasIdentity: l, hasTitleRow: u } = Li({
|
|
5853
5883
|
title: e,
|
|
5854
5884
|
description: n,
|
|
5855
5885
|
action: r,
|
|
@@ -5902,7 +5932,7 @@ function Ii({ title: e, help: t, description: n, action: r, filters: i, tools: a
|
|
|
5902
5932
|
})]
|
|
5903
5933
|
})] });
|
|
5904
5934
|
}
|
|
5905
|
-
function
|
|
5935
|
+
function zi(e, t, n) {
|
|
5906
5936
|
if (!e || e.length === 0) return [];
|
|
5907
5937
|
let r = [...e].sort((e, t) => e - t);
|
|
5908
5938
|
if (t == null) return r;
|
|
@@ -5911,8 +5941,8 @@ function Li(e, t, n) {
|
|
|
5911
5941
|
for (let e of r) if (i.push(e), e >= t) break;
|
|
5912
5942
|
return n != null && r.includes(n) && !i.includes(n) && (i.push(n), i.sort((e, t) => e - t)), i;
|
|
5913
5943
|
}
|
|
5914
|
-
function
|
|
5915
|
-
let [t, n] = d(!1), r =
|
|
5944
|
+
function Bi({ pagination: e }) {
|
|
5945
|
+
let [t, n] = d(!1), r = zi(e.pageSizeOptions, e.total, e.pageSize), i = r.length > 1 && e.onPageSizeChange != null;
|
|
5916
5946
|
return !i && !e.hasPrevious && !e.hasNext ? null : /* @__PURE__ */ h("div", {
|
|
5917
5947
|
className: "select-datatable__pagination",
|
|
5918
5948
|
children: [i && e.onPageSizeChange && /* @__PURE__ */ m("div", {
|
|
@@ -5963,7 +5993,7 @@ function Ri({ pagination: e }) {
|
|
|
5963
5993
|
})
|
|
5964
5994
|
})
|
|
5965
5995
|
})
|
|
5966
|
-
}), /* @__PURE__ */ m(
|
|
5996
|
+
}), /* @__PURE__ */ m(Ii, {
|
|
5967
5997
|
page: e.page ?? 1,
|
|
5968
5998
|
pageCount: e.pageCount,
|
|
5969
5999
|
total: e.total,
|
|
@@ -5979,17 +6009,17 @@ function Ri({ pagination: e }) {
|
|
|
5979
6009
|
}
|
|
5980
6010
|
//#endregion
|
|
5981
6011
|
//#region src/SelectTable.tsx
|
|
5982
|
-
var
|
|
5983
|
-
function
|
|
6012
|
+
var Vi = 40, Hi = 1200, Ui = 8;
|
|
6013
|
+
function Wi(e) {
|
|
5984
6014
|
let t = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
5985
6015
|
return `${Math.round(e / t * 1e3) / 1e3}rem`;
|
|
5986
6016
|
}
|
|
5987
|
-
var
|
|
6017
|
+
var Gi = 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) {
|
|
5988
6018
|
let [T, E] = d(x), D = s(), O = b && o != null ? {
|
|
5989
6019
|
open: T,
|
|
5990
6020
|
onToggle: () => E((e) => !e),
|
|
5991
6021
|
controls: D
|
|
5992
|
-
} : void 0, k = e.count(n) === 0, A = k && !!r, { hasFilters: j, hasTitleRow: M } =
|
|
6022
|
+
} : void 0, k = e.count(n) === 0, A = k && !!r, { hasFilters: j, hasTitleRow: M } = Li({
|
|
5993
6023
|
title: o,
|
|
5994
6024
|
description: f,
|
|
5995
6025
|
action: p,
|
|
@@ -6023,9 +6053,9 @@ var Ui = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
6023
6053
|
let o = I.current;
|
|
6024
6054
|
o == null || o.classList.add("select-table--resizing");
|
|
6025
6055
|
let s = a, c = (t) => {
|
|
6026
|
-
s = Math.min(
|
|
6056
|
+
s = Math.min(Hi, Math.max(Vi, a + (t.clientX - i))), ee(e, s);
|
|
6027
6057
|
}, l = () => {
|
|
6028
|
-
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"), v(e,
|
|
6058
|
+
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"), v(e, Wi(s));
|
|
6029
6059
|
};
|
|
6030
6060
|
window.addEventListener("pointermove", c), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", l);
|
|
6031
6061
|
}, te = (e) => (t) => {
|
|
@@ -6036,15 +6066,15 @@ var Ui = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
6036
6066
|
let i = (n = t.currentTarget.parentElement) == null ? void 0 : n.getBoundingClientRect();
|
|
6037
6067
|
if (!i) return;
|
|
6038
6068
|
t.preventDefault();
|
|
6039
|
-
let a =
|
|
6040
|
-
ee(e, o), v(e,
|
|
6069
|
+
let a = Ui * (t.shiftKey ? 10 : 1), o = Math.min(Hi, Math.max(Vi, i.width + r * a));
|
|
6070
|
+
ee(e, o), v(e, Wi(o));
|
|
6041
6071
|
};
|
|
6042
6072
|
return /* @__PURE__ */ h("div", {
|
|
6043
6073
|
ref: L,
|
|
6044
6074
|
...C,
|
|
6045
6075
|
className: `select-table${N ? " select-table--empty" : ""}${O ? ` select-table--collapsible${T ? " is-open" : ""}` : ""}${S ? " " + S : ""}`,
|
|
6046
6076
|
style: { "--select-table-cols": F },
|
|
6047
|
-
children: [/* @__PURE__ */ m(
|
|
6077
|
+
children: [/* @__PURE__ */ m(Ri, {
|
|
6048
6078
|
title: o,
|
|
6049
6079
|
help: O ? void 0 : l,
|
|
6050
6080
|
description: f,
|
|
@@ -6052,12 +6082,12 @@ var Ui = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
6052
6082
|
filters: O ? void 0 : g,
|
|
6053
6083
|
tools: O ? void 0 : _,
|
|
6054
6084
|
toggle: O
|
|
6055
|
-
}), /* @__PURE__ */ h(
|
|
6085
|
+
}), /* @__PURE__ */ h(Ki, {
|
|
6056
6086
|
enabled: !!O,
|
|
6057
6087
|
open: T,
|
|
6058
6088
|
id: D,
|
|
6059
6089
|
children: [
|
|
6060
|
-
O && (g != null || _ != null) ? /* @__PURE__ */ m(
|
|
6090
|
+
O && (g != null || _ != null) ? /* @__PURE__ */ m(Ri, {
|
|
6061
6091
|
filters: g,
|
|
6062
6092
|
tools: _
|
|
6063
6093
|
}) : null,
|
|
@@ -6109,7 +6139,7 @@ var Ui = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
6109
6139
|
})]
|
|
6110
6140
|
});
|
|
6111
6141
|
});
|
|
6112
|
-
function
|
|
6142
|
+
function Ki({ enabled: e, open: t, id: n, children: r }) {
|
|
6113
6143
|
return e ? /* @__PURE__ */ m("div", {
|
|
6114
6144
|
className: "select-table__collapse",
|
|
6115
6145
|
id: n,
|
|
@@ -6121,7 +6151,7 @@ function Wi({ enabled: e, open: t, id: n, children: r }) {
|
|
|
6121
6151
|
})
|
|
6122
6152
|
}) : /* @__PURE__ */ m(p, { children: r });
|
|
6123
6153
|
}
|
|
6124
|
-
var
|
|
6154
|
+
var qi = r(function({ name: e, secondary: t, src: n, className: r, ...i }, a) {
|
|
6125
6155
|
return /* @__PURE__ */ h("span", {
|
|
6126
6156
|
ref: a,
|
|
6127
6157
|
...i,
|
|
@@ -6141,7 +6171,7 @@ var Gi = r(function({ name: e, secondary: t, src: n, className: r, ...i }, a) {
|
|
|
6141
6171
|
})]
|
|
6142
6172
|
});
|
|
6143
6173
|
});
|
|
6144
|
-
function
|
|
6174
|
+
function Ji({ children: e, onClick: t, expanded: n, nested: r = !1 }) {
|
|
6145
6175
|
let i = `select-table__row${t ? " select-table__row--clickable" : ""}${r ? " select-table__row--nested" : ""}${n ? " is-expanded" : ""}`;
|
|
6146
6176
|
return t ? /* @__PURE__ */ m("button", {
|
|
6147
6177
|
type: "button",
|
|
@@ -6155,7 +6185,7 @@ function Ki({ children: e, onClick: t, expanded: n, nested: r = !1 }) {
|
|
|
6155
6185
|
children: e
|
|
6156
6186
|
});
|
|
6157
6187
|
}
|
|
6158
|
-
var
|
|
6188
|
+
var Yi = r(function({ children: e, align: t = "start", disclosure: n, className: r, ...i }, a) {
|
|
6159
6189
|
return /* @__PURE__ */ h("div", {
|
|
6160
6190
|
ref: a,
|
|
6161
6191
|
...i,
|
|
@@ -6167,7 +6197,7 @@ var qi = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6167
6197
|
children: n !== "none" && /* @__PURE__ */ m(ae, {})
|
|
6168
6198
|
}) : null, e]
|
|
6169
6199
|
});
|
|
6170
|
-
}),
|
|
6200
|
+
}), Xi = r(function({ icon: e, title: t, subtitle: n, action: r, className: i, ...a }, o) {
|
|
6171
6201
|
return /* @__PURE__ */ h("div", {
|
|
6172
6202
|
ref: o,
|
|
6173
6203
|
...a,
|
|
@@ -6191,7 +6221,7 @@ var qi = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6191
6221
|
})
|
|
6192
6222
|
]
|
|
6193
6223
|
});
|
|
6194
|
-
}),
|
|
6224
|
+
}), Zi = r(function({ children: e, className: t, ...n }, r) {
|
|
6195
6225
|
return /* @__PURE__ */ m("div", {
|
|
6196
6226
|
ref: r,
|
|
6197
6227
|
...n,
|
|
@@ -6199,7 +6229,7 @@ var qi = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6199
6229
|
role: "menu",
|
|
6200
6230
|
children: e
|
|
6201
6231
|
});
|
|
6202
|
-
}),
|
|
6232
|
+
}), Qi = r(function({ children: e, icon: t, trailing: n, onClick: r, active: i = !1, tone: a = "default", className: o, ...s }, c) {
|
|
6203
6233
|
return /* @__PURE__ */ h("button", {
|
|
6204
6234
|
ref: c,
|
|
6205
6235
|
...s,
|
|
@@ -6222,7 +6252,7 @@ var qi = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6222
6252
|
})
|
|
6223
6253
|
]
|
|
6224
6254
|
});
|
|
6225
|
-
}),
|
|
6255
|
+
}), $i = r(function({ children: e, href: t, icon: n, trailing: r, external: i, tone: a = "default", className: o, ...s }, c) {
|
|
6226
6256
|
let l = $r(t), u = i ?? /^(https?:|mailto:|tel:)/i.test(l ?? ""), d = r ?? (u ? /* @__PURE__ */ m(K, {}) : void 0);
|
|
6227
6257
|
return /* @__PURE__ */ h("a", {
|
|
6228
6258
|
ref: c,
|
|
@@ -6248,19 +6278,19 @@ var qi = r(function({ children: e, align: t = "start", disclosure: n, className:
|
|
|
6248
6278
|
]
|
|
6249
6279
|
});
|
|
6250
6280
|
});
|
|
6251
|
-
function
|
|
6281
|
+
function ea({ children: e }) {
|
|
6252
6282
|
return /* @__PURE__ */ m("div", {
|
|
6253
6283
|
className: "select-menu__heading",
|
|
6254
6284
|
children: e
|
|
6255
6285
|
});
|
|
6256
6286
|
}
|
|
6257
|
-
function
|
|
6287
|
+
function ta() {
|
|
6258
6288
|
return /* @__PURE__ */ m("div", {
|
|
6259
6289
|
className: "select-menu__divider",
|
|
6260
6290
|
role: "separator"
|
|
6261
6291
|
});
|
|
6262
6292
|
}
|
|
6263
|
-
var
|
|
6293
|
+
var na = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
|
|
6264
6294
|
return /* @__PURE__ */ h("button", {
|
|
6265
6295
|
ref: a,
|
|
6266
6296
|
...i,
|
|
@@ -6275,7 +6305,7 @@ var ea = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6275
6305
|
children: /* @__PURE__ */ m(U, {})
|
|
6276
6306
|
})]
|
|
6277
6307
|
});
|
|
6278
|
-
}),
|
|
6308
|
+
}), ra = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
|
|
6279
6309
|
return /* @__PURE__ */ h("button", {
|
|
6280
6310
|
ref: a,
|
|
6281
6311
|
...i,
|
|
@@ -6288,7 +6318,7 @@ var ea = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6288
6318
|
children: /* @__PURE__ */ m(Me, {})
|
|
6289
6319
|
}), e]
|
|
6290
6320
|
});
|
|
6291
|
-
}),
|
|
6321
|
+
}), ia = r(function({ label: e, value: t, href: n, onCopy: r, className: i, ...a }, o) {
|
|
6292
6322
|
let [s, c] = d(!1), l = $r(n), u = () => {
|
|
6293
6323
|
navigator.clipboard.writeText(t).then(() => {
|
|
6294
6324
|
c(!0), setTimeout(() => c(!1), 1200), r == null || r(t);
|
|
@@ -6328,7 +6358,7 @@ var ea = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6328
6358
|
});
|
|
6329
6359
|
//#endregion
|
|
6330
6360
|
//#region src/SelectCopyableId.tsx
|
|
6331
|
-
function
|
|
6361
|
+
function aa({ value: e, children: t, truncate: n, label: r = "Copiar id", fallback: i = "—", to: a, reveal: o = "hover" }) {
|
|
6332
6362
|
let [s, c] = d(!1);
|
|
6333
6363
|
if (!e) return /* @__PURE__ */ m(p, { children: i });
|
|
6334
6364
|
let l = t ?? (n ? e.slice(0, n) : e), u = $r(a);
|
|
@@ -6360,7 +6390,7 @@ function ra({ value: e, children: t, truncate: n, label: r = "Copiar id", fallba
|
|
|
6360
6390
|
}
|
|
6361
6391
|
//#endregion
|
|
6362
6392
|
//#region src/SelectCollapsible.tsx
|
|
6363
|
-
var
|
|
6393
|
+
var oa = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1, className: i, ...a }, o) {
|
|
6364
6394
|
let [s, c] = d(n);
|
|
6365
6395
|
return /* @__PURE__ */ h("div", {
|
|
6366
6396
|
ref: o,
|
|
@@ -6391,7 +6421,7 @@ var ia = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6391
6421
|
})
|
|
6392
6422
|
})]
|
|
6393
6423
|
});
|
|
6394
|
-
}),
|
|
6424
|
+
}), sa = r(function({ icon: e, title: t, description: n, action: r, onDismiss: i, className: a, ...o }, s) {
|
|
6395
6425
|
return /* @__PURE__ */ h("div", {
|
|
6396
6426
|
ref: s,
|
|
6397
6427
|
...o,
|
|
@@ -6426,7 +6456,7 @@ var ia = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6426
6456
|
})
|
|
6427
6457
|
]
|
|
6428
6458
|
});
|
|
6429
|
-
}),
|
|
6459
|
+
}), ca = r(function({ media: e, sublabel: t, title: n, badge: r, meta: i, accent: a = !0, onClick: o, className: s, ...c }, l) {
|
|
6430
6460
|
return /* @__PURE__ */ h("button", {
|
|
6431
6461
|
ref: l,
|
|
6432
6462
|
...c,
|
|
@@ -6463,7 +6493,7 @@ var ia = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6463
6493
|
})
|
|
6464
6494
|
]
|
|
6465
6495
|
});
|
|
6466
|
-
}),
|
|
6496
|
+
}), la = r(function({ label: e, onClick: t, className: n, ...r }, i) {
|
|
6467
6497
|
return /* @__PURE__ */ h("button", {
|
|
6468
6498
|
ref: i,
|
|
6469
6499
|
...r,
|
|
@@ -6479,7 +6509,7 @@ var ia = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6479
6509
|
children: e
|
|
6480
6510
|
})]
|
|
6481
6511
|
});
|
|
6482
|
-
}),
|
|
6512
|
+
}), ua = r(function({ avatar: e, name: t, badge: n, onClick: r, className: i, ...a }, o) {
|
|
6483
6513
|
return /* @__PURE__ */ h("button", {
|
|
6484
6514
|
ref: o,
|
|
6485
6515
|
...a,
|
|
@@ -6504,8 +6534,8 @@ var ia = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6504
6534
|
})
|
|
6505
6535
|
]
|
|
6506
6536
|
});
|
|
6507
|
-
}),
|
|
6508
|
-
function
|
|
6537
|
+
}), da = 220;
|
|
6538
|
+
function fa({ 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" }) {
|
|
6509
6539
|
let [y, b] = d(e), [x, S] = d(!1);
|
|
6510
6540
|
if (o(() => {
|
|
6511
6541
|
if (e) b(!0), S(!1);
|
|
@@ -6513,7 +6543,7 @@ function ua({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6513
6543
|
S(!0);
|
|
6514
6544
|
let e = setTimeout(() => {
|
|
6515
6545
|
b(!1), S(!1);
|
|
6516
|
-
},
|
|
6546
|
+
}, da);
|
|
6517
6547
|
return () => clearTimeout(e);
|
|
6518
6548
|
}
|
|
6519
6549
|
}, [e, y]), o(() => {
|
|
@@ -6591,7 +6621,7 @@ function ua({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6591
6621
|
}
|
|
6592
6622
|
//#endregion
|
|
6593
6623
|
//#region src/SelectRowActions.tsx
|
|
6594
|
-
function
|
|
6624
|
+
function pa({ actions: e, label: t = "Ações" }) {
|
|
6595
6625
|
let [n, r] = d(!1);
|
|
6596
6626
|
return /* @__PURE__ */ m(fn, {
|
|
6597
6627
|
active: n,
|
|
@@ -6613,8 +6643,8 @@ function da({ actions: e, label: t = "Ações" }) {
|
|
|
6613
6643
|
}
|
|
6614
6644
|
//#endregion
|
|
6615
6645
|
//#region src/SelectConfirmModal.tsx
|
|
6616
|
-
function
|
|
6617
|
-
return /* @__PURE__ */ m(
|
|
6646
|
+
function ma({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmLabel: a = "Confirmar", cancelLabel: o = "Cancelar", destructive: s = !1, loading: c = !1, theme: l }) {
|
|
6647
|
+
return /* @__PURE__ */ m(fa, {
|
|
6618
6648
|
open: e,
|
|
6619
6649
|
onClose: t,
|
|
6620
6650
|
title: r,
|
|
@@ -6643,8 +6673,8 @@ function fa({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
6643
6673
|
}
|
|
6644
6674
|
//#endregion
|
|
6645
6675
|
//#region src/SelectFormModal.tsx
|
|
6646
|
-
function
|
|
6647
|
-
return /* @__PURE__ */ h(
|
|
6676
|
+
function ha({ 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 }) {
|
|
6677
|
+
return /* @__PURE__ */ h(fa, {
|
|
6648
6678
|
open: e,
|
|
6649
6679
|
onClose: t,
|
|
6650
6680
|
title: r,
|
|
@@ -6686,30 +6716,30 @@ function pa({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
6686
6716
|
}
|
|
6687
6717
|
//#endregion
|
|
6688
6718
|
//#region src/SelectDataTable.tsx
|
|
6689
|
-
var
|
|
6719
|
+
var ga = "9.5rem", _a = {
|
|
6690
6720
|
minWidth: "9.5rem",
|
|
6691
6721
|
grow: 2
|
|
6692
|
-
},
|
|
6693
|
-
function
|
|
6722
|
+
}, va = "select-datatable:hidden-cols:";
|
|
6723
|
+
function ya(e) {
|
|
6694
6724
|
try {
|
|
6695
|
-
let t = localStorage.getItem(
|
|
6725
|
+
let t = localStorage.getItem(va + e), n = t ? JSON.parse(t) : null;
|
|
6696
6726
|
return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
|
|
6697
6727
|
} catch {
|
|
6698
6728
|
return [];
|
|
6699
6729
|
}
|
|
6700
6730
|
}
|
|
6701
|
-
function
|
|
6731
|
+
function ba(e, t) {
|
|
6702
6732
|
try {
|
|
6703
|
-
t.length === 0 ? localStorage.removeItem(
|
|
6733
|
+
t.length === 0 ? localStorage.removeItem(va + e) : localStorage.setItem(va + e, JSON.stringify(t));
|
|
6704
6734
|
} catch {}
|
|
6705
6735
|
}
|
|
6706
|
-
function
|
|
6736
|
+
function xa(e) {
|
|
6707
6737
|
return e.hideable ?? !!e.title;
|
|
6708
6738
|
}
|
|
6709
|
-
var
|
|
6710
|
-
function
|
|
6739
|
+
var Sa = "select-datatable:col-widths:";
|
|
6740
|
+
function Ca(e) {
|
|
6711
6741
|
try {
|
|
6712
|
-
let t = localStorage.getItem(
|
|
6742
|
+
let t = localStorage.getItem(Sa + e), n = t ? JSON.parse(t) : null;
|
|
6713
6743
|
if (!n || typeof n != "object" || Array.isArray(n)) return {};
|
|
6714
6744
|
let r = {};
|
|
6715
6745
|
for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
|
|
@@ -6718,16 +6748,16 @@ function xa(e) {
|
|
|
6718
6748
|
return {};
|
|
6719
6749
|
}
|
|
6720
6750
|
}
|
|
6721
|
-
function
|
|
6751
|
+
function wa(e, t) {
|
|
6722
6752
|
try {
|
|
6723
|
-
Object.keys(t).length === 0 ? localStorage.removeItem(
|
|
6753
|
+
Object.keys(t).length === 0 ? localStorage.removeItem(Sa + e) : localStorage.setItem(Sa + e, JSON.stringify(t));
|
|
6724
6754
|
} catch {}
|
|
6725
6755
|
}
|
|
6726
|
-
var
|
|
6727
|
-
function
|
|
6756
|
+
var Ta = "select-datatable:page-size:";
|
|
6757
|
+
function Ea(e, t, n) {
|
|
6728
6758
|
let [r, i] = d(() => {
|
|
6729
6759
|
try {
|
|
6730
|
-
let r = Number(localStorage.getItem(
|
|
6760
|
+
let r = Number(localStorage.getItem(Ta + e));
|
|
6731
6761
|
return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
|
|
6732
6762
|
} catch {
|
|
6733
6763
|
return t;
|
|
@@ -6736,22 +6766,22 @@ function wa(e, t, n) {
|
|
|
6736
6766
|
return [r, (t) => {
|
|
6737
6767
|
i(t);
|
|
6738
6768
|
try {
|
|
6739
|
-
localStorage.setItem(
|
|
6769
|
+
localStorage.setItem(Ta + e, String(t));
|
|
6740
6770
|
} catch {}
|
|
6741
6771
|
}];
|
|
6742
6772
|
}
|
|
6743
|
-
function
|
|
6773
|
+
function Da(e, t, n) {
|
|
6744
6774
|
let r = e == null || e === "", i = t == null || t === "";
|
|
6745
6775
|
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", {
|
|
6746
6776
|
numeric: !0,
|
|
6747
6777
|
sensitivity: "base"
|
|
6748
6778
|
});
|
|
6749
6779
|
}
|
|
6750
|
-
function
|
|
6751
|
-
let [_, v] = d(() => g ?
|
|
6780
|
+
function Oa({ columns: e, items: t, getId: n, loading: r = !1, empty: i, pagination: a, onRowClick: o, title: s, help: c, description: u, action: f, filters: p, columnsKey: g }) {
|
|
6781
|
+
let [_, v] = d(() => g ? ya(g) : []), [y, b] = d(!1), [x, S] = d(() => g ? Ca(g) : {}), C = l(() => new Set(_), [_]), w = e.filter(xa), T = w.length > 0 && w.every((e) => C.has(e.key)), E = (e) => !T && C.has(e.key) && xa(e), D = e.filter((e) => !E(e)), O = w.filter((e) => !E(e)), [k, A] = d(null), j = (e) => {
|
|
6752
6782
|
v((t) => {
|
|
6753
6783
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
6754
|
-
return g &&
|
|
6784
|
+
return g && ba(g, r), n && A((t) => t && t.key === e.key ? null : t), r;
|
|
6755
6785
|
});
|
|
6756
6786
|
}, M = (e) => {
|
|
6757
6787
|
A((t) => {
|
|
@@ -6768,7 +6798,7 @@ function Ea({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6768
6798
|
let e = N == null ? void 0 : N.sortValue;
|
|
6769
6799
|
if (!k || !e) return t;
|
|
6770
6800
|
let n = k.dir === "asc" ? 1 : -1;
|
|
6771
|
-
return [...t].sort((t, r) =>
|
|
6801
|
+
return [...t].sort((t, r) => Da(e(t), e(r), n));
|
|
6772
6802
|
}, [
|
|
6773
6803
|
t,
|
|
6774
6804
|
k,
|
|
@@ -6787,11 +6817,11 @@ function Ea({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6787
6817
|
let n = D[e];
|
|
6788
6818
|
n && S((e) => {
|
|
6789
6819
|
let r = { ...e };
|
|
6790
|
-
return t ? r[n.key] = t : delete r[n.key], g &&
|
|
6820
|
+
return t ? r[n.key] = t : delete r[n.key], g && wa(g, r), r;
|
|
6791
6821
|
});
|
|
6792
6822
|
}, L = () => {
|
|
6793
|
-
S({}), g &&
|
|
6794
|
-
}, ee = Object.keys(x).length > 0, R = !r && i ? /* @__PURE__ */ m(
|
|
6823
|
+
S({}), g && wa(g, {});
|
|
6824
|
+
}, ee = Object.keys(x).length > 0, R = !r && i ? /* @__PURE__ */ m(Xi, {
|
|
6795
6825
|
icon: i.icon,
|
|
6796
6826
|
title: i.heading,
|
|
6797
6827
|
subtitle: i.text,
|
|
@@ -6847,7 +6877,7 @@ function Ea({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6847
6877
|
}) : null;
|
|
6848
6878
|
return /* @__PURE__ */ h("div", {
|
|
6849
6879
|
className: "select-datatable",
|
|
6850
|
-
children: [/* @__PURE__ */ m(
|
|
6880
|
+
children: [/* @__PURE__ */ m(Gi, {
|
|
6851
6881
|
columns: F,
|
|
6852
6882
|
empty: R,
|
|
6853
6883
|
title: s,
|
|
@@ -6858,24 +6888,24 @@ function Ea({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6858
6888
|
tools: te,
|
|
6859
6889
|
onColumnResize: (e, t) => I(e, t),
|
|
6860
6890
|
onColumnResizeReset: (e) => I(e, null),
|
|
6861
|
-
children: r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(
|
|
6891
|
+
children: r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(Ji, { children: D.map((e, t) => /* @__PURE__ */ m(Yi, {
|
|
6862
6892
|
align: e.align,
|
|
6863
6893
|
width: e.width,
|
|
6864
6894
|
children: /* @__PURE__ */ m("span", { className: "select-skeleton select-datatable__skel" })
|
|
6865
|
-
}, t)) }, `skeleton-${t}`)) : P.map((e) => /* @__PURE__ */ m(
|
|
6895
|
+
}, t)) }, `skeleton-${t}`)) : P.map((e) => /* @__PURE__ */ m(Ji, {
|
|
6866
6896
|
onClick: o ? () => o(e) : void 0,
|
|
6867
|
-
children: D.map((t, n) => /* @__PURE__ */ m(
|
|
6897
|
+
children: D.map((t, n) => /* @__PURE__ */ m(Yi, {
|
|
6868
6898
|
align: t.align,
|
|
6869
6899
|
width: t.width,
|
|
6870
6900
|
children: t.render(e)
|
|
6871
6901
|
}, n))
|
|
6872
6902
|
}, n(e)))
|
|
6873
|
-
}), a && /* @__PURE__ */ m(
|
|
6903
|
+
}), a && /* @__PURE__ */ m(Bi, { pagination: a })]
|
|
6874
6904
|
});
|
|
6875
6905
|
}
|
|
6876
6906
|
//#endregion
|
|
6877
6907
|
//#region src/SelectAddCard.tsx
|
|
6878
|
-
var
|
|
6908
|
+
var ka = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
|
|
6879
6909
|
return /* @__PURE__ */ h("button", {
|
|
6880
6910
|
ref: o,
|
|
6881
6911
|
...a,
|
|
@@ -6901,31 +6931,31 @@ var Da = r(function({ label: e, description: t, onClick: n, icon: r, className:
|
|
|
6901
6931
|
});
|
|
6902
6932
|
//#endregion
|
|
6903
6933
|
//#region src/SelectCardGrid.tsx
|
|
6904
|
-
function
|
|
6905
|
-
let
|
|
6906
|
-
title:
|
|
6907
|
-
description:
|
|
6908
|
-
action:
|
|
6909
|
-
filters:
|
|
6910
|
-
tools:
|
|
6934
|
+
function Aa({ 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: _ }) {
|
|
6935
|
+
let v = !r && e.length === 0 && a != null, { hasTitleRow: y, hasFilters: b } = Li({
|
|
6936
|
+
title: u,
|
|
6937
|
+
description: f,
|
|
6938
|
+
action: p,
|
|
6939
|
+
filters: g,
|
|
6940
|
+
tools: _
|
|
6911
6941
|
});
|
|
6912
6942
|
return /* @__PURE__ */ h("div", {
|
|
6913
6943
|
className: "select-cardgrid",
|
|
6914
6944
|
children: [
|
|
6915
|
-
(
|
|
6945
|
+
(y || b) && /* @__PURE__ */ m("div", {
|
|
6916
6946
|
className: "select-cardgrid__chrome",
|
|
6917
|
-
children: /* @__PURE__ */ m(
|
|
6918
|
-
title:
|
|
6919
|
-
help:
|
|
6920
|
-
description:
|
|
6921
|
-
action:
|
|
6922
|
-
filters:
|
|
6923
|
-
tools:
|
|
6947
|
+
children: /* @__PURE__ */ m(Ri, {
|
|
6948
|
+
title: u,
|
|
6949
|
+
help: d,
|
|
6950
|
+
description: f,
|
|
6951
|
+
action: p,
|
|
6952
|
+
filters: g,
|
|
6953
|
+
tools: _
|
|
6924
6954
|
})
|
|
6925
6955
|
}),
|
|
6926
|
-
|
|
6956
|
+
v ? /* @__PURE__ */ m("div", {
|
|
6927
6957
|
className: "select-cardgrid__empty",
|
|
6928
|
-
children: /* @__PURE__ */ m(
|
|
6958
|
+
children: /* @__PURE__ */ m(Xi, {
|
|
6929
6959
|
icon: a.icon,
|
|
6930
6960
|
title: a.heading,
|
|
6931
6961
|
subtitle: a.text,
|
|
@@ -6934,7 +6964,21 @@ function Oa({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
6934
6964
|
}) : /* @__PURE__ */ h("div", {
|
|
6935
6965
|
className: "select-cardgrid__body",
|
|
6936
6966
|
style: { "--select-cardgrid-min": c },
|
|
6937
|
-
children: [r ? Array.from({ length: i }, (e, t) => /* @__PURE__ */ h("div", {
|
|
6967
|
+
children: [r ? Array.from({ length: i }, (e, t) => l ? /* @__PURE__ */ h("div", {
|
|
6968
|
+
className: "select-cardgrid__skel select-cardgrid__skel--cover",
|
|
6969
|
+
"aria-hidden": "true",
|
|
6970
|
+
children: [
|
|
6971
|
+
/* @__PURE__ */ m("span", { className: "select-skeleton select-cardgrid__skelcover" }),
|
|
6972
|
+
/* @__PURE__ */ h("span", {
|
|
6973
|
+
className: "select-cardgrid__skeltext select-cardgrid__skeltext--padded",
|
|
6974
|
+
children: [/* @__PURE__ */ m("span", { className: "select-skeleton select-cardgrid__skelline" }), /* @__PURE__ */ m("span", { className: "select-skeleton select-cardgrid__skelline select-cardgrid__skelline--short" })]
|
|
6975
|
+
}),
|
|
6976
|
+
/* @__PURE__ */ h("span", {
|
|
6977
|
+
className: "select-cardgrid__skelfoot",
|
|
6978
|
+
children: [/* @__PURE__ */ m("span", { className: "select-skeleton select-cardgrid__skelline select-cardgrid__skelline--tiny" }), /* @__PURE__ */ m("span", { className: "select-skeleton select-cardgrid__skelline select-cardgrid__skelline--tiny" })]
|
|
6979
|
+
})
|
|
6980
|
+
]
|
|
6981
|
+
}, `skeleton-${t}`) : /* @__PURE__ */ h("div", {
|
|
6938
6982
|
className: "select-cardgrid__skel",
|
|
6939
6983
|
children: [/* @__PURE__ */ m("span", { className: "select-skeleton select-cardgrid__skelthumb" }), /* @__PURE__ */ h("span", {
|
|
6940
6984
|
className: "select-cardgrid__skeltext",
|
|
@@ -6943,19 +6987,19 @@ function Oa({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
6943
6987
|
}, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ m("div", {
|
|
6944
6988
|
className: "select-cardgrid__item",
|
|
6945
6989
|
children: n(e)
|
|
6946
|
-
}, t(e))), !r && s && /* @__PURE__ */ m(
|
|
6990
|
+
}, t(e))), !r && s && /* @__PURE__ */ m(ka, {
|
|
6947
6991
|
label: s.label,
|
|
6948
6992
|
description: s.description,
|
|
6949
6993
|
onClick: s.onAction
|
|
6950
6994
|
})]
|
|
6951
6995
|
}),
|
|
6952
|
-
o && /* @__PURE__ */ m(
|
|
6996
|
+
o && /* @__PURE__ */ m(Bi, { pagination: o })
|
|
6953
6997
|
]
|
|
6954
6998
|
});
|
|
6955
6999
|
}
|
|
6956
7000
|
//#endregion
|
|
6957
7001
|
//#region src/SelectRecordCard.tsx
|
|
6958
|
-
var
|
|
7002
|
+
var ja = 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) {
|
|
6959
7003
|
let v = o != null || s != null, y = $r(c);
|
|
6960
7004
|
return /* @__PURE__ */ h("div", {
|
|
6961
7005
|
ref: g,
|
|
@@ -6966,7 +7010,7 @@ var ka = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
|
|
|
6966
7010
|
className: "select-rcard__accent",
|
|
6967
7011
|
"aria-hidden": "true"
|
|
6968
7012
|
}),
|
|
6969
|
-
u !== void 0 && /* @__PURE__ */ m(
|
|
7013
|
+
u !== void 0 && /* @__PURE__ */ m(Ma, {
|
|
6970
7014
|
src: u,
|
|
6971
7015
|
fallback: d
|
|
6972
7016
|
}),
|
|
@@ -7026,7 +7070,7 @@ var ka = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
|
|
|
7026
7070
|
]
|
|
7027
7071
|
});
|
|
7028
7072
|
});
|
|
7029
|
-
function
|
|
7073
|
+
function Ma({ src: e, fallback: t }) {
|
|
7030
7074
|
let [n, r] = d(!1);
|
|
7031
7075
|
return o(() => r(!1), [e]), /* @__PURE__ */ m("span", {
|
|
7032
7076
|
className: "select-rcard__cover",
|
|
@@ -7042,7 +7086,7 @@ function Aa({ src: e, fallback: t }) {
|
|
|
7042
7086
|
})
|
|
7043
7087
|
});
|
|
7044
7088
|
}
|
|
7045
|
-
var
|
|
7089
|
+
var Na = r(function({ kind: e, className: t, ...n }, r) {
|
|
7046
7090
|
return /* @__PURE__ */ h("span", {
|
|
7047
7091
|
ref: r,
|
|
7048
7092
|
...n,
|
|
@@ -7060,18 +7104,18 @@ var ja = r(function({ kind: e, className: t, ...n }, r) {
|
|
|
7060
7104
|
});
|
|
7061
7105
|
//#endregion
|
|
7062
7106
|
//#region src/SelectSplitChain.tsx
|
|
7063
|
-
function
|
|
7107
|
+
function Pa(e) {
|
|
7064
7108
|
var t;
|
|
7065
7109
|
return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
|
|
7066
7110
|
}
|
|
7067
|
-
function
|
|
7111
|
+
function Fa({ node: e, origin: t = !1 }) {
|
|
7068
7112
|
return /* @__PURE__ */ h("span", {
|
|
7069
7113
|
className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
|
|
7070
7114
|
children: [
|
|
7071
7115
|
/* @__PURE__ */ m("span", {
|
|
7072
7116
|
className: "select-chain__dot",
|
|
7073
7117
|
"aria-hidden": "true",
|
|
7074
|
-
children:
|
|
7118
|
+
children: Pa(e)
|
|
7075
7119
|
}),
|
|
7076
7120
|
/* @__PURE__ */ m("span", {
|
|
7077
7121
|
className: "select-chain__label",
|
|
@@ -7085,16 +7129,16 @@ function Na({ node: e, origin: t = !1 }) {
|
|
|
7085
7129
|
]
|
|
7086
7130
|
});
|
|
7087
7131
|
}
|
|
7088
|
-
var
|
|
7132
|
+
var Ia = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
|
|
7089
7133
|
let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ m("span", {
|
|
7090
7134
|
className: "select-chain__link",
|
|
7091
7135
|
"aria-hidden": "true"
|
|
7092
7136
|
}, e);
|
|
7093
|
-
t && c.push(/* @__PURE__ */ m(
|
|
7137
|
+
t && c.push(/* @__PURE__ */ m(Fa, {
|
|
7094
7138
|
node: t,
|
|
7095
7139
|
origin: !0
|
|
7096
7140
|
}, "__origin"));
|
|
7097
|
-
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ m(
|
|
7141
|
+
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ m(Fa, { node: e }, e.id));
|
|
7098
7142
|
return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ h("span", {
|
|
7099
7143
|
className: "select-chain__more",
|
|
7100
7144
|
children: ["+", s]
|
|
@@ -7104,43 +7148,43 @@ var Pa = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
|
|
|
7104
7148
|
className: `select-chain${r ? " " + r : ""}`,
|
|
7105
7149
|
children: c
|
|
7106
7150
|
});
|
|
7107
|
-
}),
|
|
7151
|
+
}), La = new Intl.NumberFormat("pt-BR", {
|
|
7108
7152
|
style: "currency",
|
|
7109
7153
|
currency: "BRL"
|
|
7110
7154
|
});
|
|
7111
|
-
function
|
|
7155
|
+
function Ra(e) {
|
|
7112
7156
|
let t = typeof e == "string" ? Number(e) : e;
|
|
7113
7157
|
return typeof t == "number" && Number.isFinite(t) ? t : 0;
|
|
7114
7158
|
}
|
|
7115
|
-
function
|
|
7116
|
-
return
|
|
7159
|
+
function za(e) {
|
|
7160
|
+
return La.format(Ra(e) / 100);
|
|
7117
7161
|
}
|
|
7118
7162
|
//#endregion
|
|
7119
7163
|
//#region src/SelectMoney.tsx
|
|
7120
|
-
var
|
|
7164
|
+
var Ba = "sw:hide-money", Va = {
|
|
7121
7165
|
hidden: !1,
|
|
7122
7166
|
toggle: () => {},
|
|
7123
7167
|
setHidden: () => {}
|
|
7124
|
-
},
|
|
7125
|
-
function
|
|
7168
|
+
}, Ha = n(null);
|
|
7169
|
+
function Ua() {
|
|
7126
7170
|
try {
|
|
7127
|
-
return localStorage.getItem(
|
|
7171
|
+
return localStorage.getItem(Ba) === "1";
|
|
7128
7172
|
} catch {
|
|
7129
7173
|
return !1;
|
|
7130
7174
|
}
|
|
7131
7175
|
}
|
|
7132
|
-
function
|
|
7176
|
+
function Wa(e) {
|
|
7133
7177
|
try {
|
|
7134
|
-
localStorage.setItem(
|
|
7178
|
+
localStorage.setItem(Ba, e ? "1" : "0");
|
|
7135
7179
|
} catch {}
|
|
7136
7180
|
}
|
|
7137
|
-
function
|
|
7138
|
-
let [t, n] = d(
|
|
7139
|
-
n(e),
|
|
7181
|
+
function Ga({ children: e }) {
|
|
7182
|
+
let [t, n] = d(Ua), r = i((e) => {
|
|
7183
|
+
n(e), Wa(e);
|
|
7140
7184
|
}, []), a = i(() => {
|
|
7141
7185
|
n((e) => {
|
|
7142
7186
|
let t = !e;
|
|
7143
|
-
return
|
|
7187
|
+
return Wa(t), t;
|
|
7144
7188
|
});
|
|
7145
7189
|
}, []), o = l(() => ({
|
|
7146
7190
|
hidden: t,
|
|
@@ -7151,16 +7195,16 @@ function Ua({ children: e }) {
|
|
|
7151
7195
|
a,
|
|
7152
7196
|
r
|
|
7153
7197
|
]);
|
|
7154
|
-
return /* @__PURE__ */ m(
|
|
7198
|
+
return /* @__PURE__ */ m(Ha.Provider, {
|
|
7155
7199
|
value: o,
|
|
7156
7200
|
children: e
|
|
7157
7201
|
});
|
|
7158
7202
|
}
|
|
7159
|
-
function
|
|
7160
|
-
return a(
|
|
7203
|
+
function Ka() {
|
|
7204
|
+
return a(Ha) ?? Va;
|
|
7161
7205
|
}
|
|
7162
|
-
var
|
|
7163
|
-
let { hidden: a } =
|
|
7206
|
+
var qa = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
|
|
7207
|
+
let { hidden: a } = Ka();
|
|
7164
7208
|
return /* @__PURE__ */ m("span", {
|
|
7165
7209
|
ref: i,
|
|
7166
7210
|
...r,
|
|
@@ -7169,15 +7213,15 @@ var Ga = r(function({ children: e, label: t = "valor oculto", className: n, ...r
|
|
|
7169
7213
|
children: e
|
|
7170
7214
|
});
|
|
7171
7215
|
});
|
|
7172
|
-
function
|
|
7173
|
-
let n =
|
|
7174
|
-
return m(t ?
|
|
7216
|
+
function Ja({ cents: e, sensitive: t = !0 }) {
|
|
7217
|
+
let n = za(e);
|
|
7218
|
+
return m(t ? qa : p, { children: n });
|
|
7175
7219
|
}
|
|
7176
|
-
var
|
|
7220
|
+
var Ya = new Intl.NumberFormat("pt-BR", {
|
|
7177
7221
|
signDisplay: "exceptZero",
|
|
7178
7222
|
minimumFractionDigits: 1,
|
|
7179
7223
|
maximumFractionDigits: 1
|
|
7180
|
-
}),
|
|
7224
|
+
}), Xa = r(function({ value: e, invert: t = !1, caption: n, className: r, ...i }, a) {
|
|
7181
7225
|
if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ h("span", {
|
|
7182
7226
|
ref: a,
|
|
7183
7227
|
...i,
|
|
@@ -7193,7 +7237,7 @@ var qa = new Intl.NumberFormat("pt-BR", {
|
|
|
7193
7237
|
className: `select-delta__value select-delta__value--${l}`,
|
|
7194
7238
|
children: [
|
|
7195
7239
|
u ? `${u} ` : "",
|
|
7196
|
-
|
|
7240
|
+
Ya.format(e),
|
|
7197
7241
|
"%"
|
|
7198
7242
|
]
|
|
7199
7243
|
}), n != null && /* @__PURE__ */ m("span", {
|
|
@@ -7202,8 +7246,8 @@ var qa = new Intl.NumberFormat("pt-BR", {
|
|
|
7202
7246
|
})]
|
|
7203
7247
|
});
|
|
7204
7248
|
});
|
|
7205
|
-
function
|
|
7206
|
-
let { hidden: e, toggle: t } =
|
|
7249
|
+
function Za() {
|
|
7250
|
+
let { hidden: e, toggle: t } = Ka();
|
|
7207
7251
|
return /* @__PURE__ */ m(J, {
|
|
7208
7252
|
variant: "outline",
|
|
7209
7253
|
icon: m(e ? Ue : He, {}),
|
|
@@ -7214,7 +7258,7 @@ function Ya() {
|
|
|
7214
7258
|
}
|
|
7215
7259
|
//#endregion
|
|
7216
7260
|
//#region src/SelectOfferPrice.tsx
|
|
7217
|
-
var
|
|
7261
|
+
var Qa = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note: i, className: a, ...o }, s) {
|
|
7218
7262
|
let c = Number(e);
|
|
7219
7263
|
if (!Number.isFinite(c)) return null;
|
|
7220
7264
|
let l = Number(t), u = Number.isFinite(l) && l > c, d = u ? Math.round((l - c) / l * 100) : 0;
|
|
@@ -7225,11 +7269,11 @@ var Xa = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
7225
7269
|
children: [
|
|
7226
7270
|
/* @__PURE__ */ m("span", {
|
|
7227
7271
|
className: "select-offerprice__now",
|
|
7228
|
-
children: c === 0 && r != null ? r : /* @__PURE__ */ m(
|
|
7272
|
+
children: c === 0 && r != null ? r : /* @__PURE__ */ m(Ja, { cents: c })
|
|
7229
7273
|
}),
|
|
7230
7274
|
u && /* @__PURE__ */ m("s", {
|
|
7231
7275
|
className: "select-offerprice__was",
|
|
7232
|
-
children: /* @__PURE__ */ m(
|
|
7276
|
+
children: /* @__PURE__ */ m(Ja, { cents: l })
|
|
7233
7277
|
}),
|
|
7234
7278
|
u && !n && d > 0 && /* @__PURE__ */ h("span", {
|
|
7235
7279
|
className: "select-offerprice__off",
|
|
@@ -7248,7 +7292,7 @@ var Xa = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
7248
7292
|
});
|
|
7249
7293
|
//#endregion
|
|
7250
7294
|
//#region src/SelectRating.tsx
|
|
7251
|
-
function
|
|
7295
|
+
function $a({ size: e }) {
|
|
7252
7296
|
return /* @__PURE__ */ m("svg", {
|
|
7253
7297
|
width: e,
|
|
7254
7298
|
height: e,
|
|
@@ -7260,7 +7304,7 @@ function Za({ size: e }) {
|
|
|
7260
7304
|
})
|
|
7261
7305
|
});
|
|
7262
7306
|
}
|
|
7263
|
-
var
|
|
7307
|
+
var eo = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i, disabled: a = !1, className: o, ...s }, c) {
|
|
7264
7308
|
let l = !!n && !a, [u, f] = d(null), p = u ?? e;
|
|
7265
7309
|
return /* @__PURE__ */ m("div", {
|
|
7266
7310
|
ref: c,
|
|
@@ -7275,7 +7319,7 @@ var Qa = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7275
7319
|
children: Array.from({ length: t }, (e, t) => {
|
|
7276
7320
|
let i = /* @__PURE__ */ m("span", {
|
|
7277
7321
|
className: `select-rating__star${t < p ? " is-filled" : ""}`,
|
|
7278
|
-
children: /* @__PURE__ */ m(
|
|
7322
|
+
children: /* @__PURE__ */ m($a, { size: r })
|
|
7279
7323
|
});
|
|
7280
7324
|
return l ? /* @__PURE__ */ m("button", {
|
|
7281
7325
|
type: "button",
|
|
@@ -7289,14 +7333,14 @@ var Qa = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7289
7333
|
}, t) : /* @__PURE__ */ m("span", { children: i }, t);
|
|
7290
7334
|
})
|
|
7291
7335
|
});
|
|
7292
|
-
}),
|
|
7336
|
+
}), to = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
|
|
7293
7337
|
let s = Number(e), c = Number.isFinite(s) && s > 0;
|
|
7294
7338
|
return /* @__PURE__ */ h("div", {
|
|
7295
7339
|
ref: o,
|
|
7296
7340
|
...a,
|
|
7297
7341
|
className: `select-quote${i ? " " + i : ""}`,
|
|
7298
7342
|
children: [
|
|
7299
|
-
c && /* @__PURE__ */ m(
|
|
7343
|
+
c && /* @__PURE__ */ m(eo, {
|
|
7300
7344
|
value: s,
|
|
7301
7345
|
max: t,
|
|
7302
7346
|
size: 13
|
|
@@ -7311,7 +7355,7 @@ var Qa = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7311
7355
|
})
|
|
7312
7356
|
]
|
|
7313
7357
|
});
|
|
7314
|
-
}),
|
|
7358
|
+
}), no = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
|
|
7315
7359
|
let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
|
|
7316
7360
|
return /* @__PURE__ */ h("div", {
|
|
7317
7361
|
ref: i,
|
|
@@ -7333,7 +7377,7 @@ var Qa = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7333
7377
|
children: ["+", o]
|
|
7334
7378
|
})]
|
|
7335
7379
|
});
|
|
7336
|
-
}),
|
|
7380
|
+
}), ro = [
|
|
7337
7381
|
"Dom",
|
|
7338
7382
|
"Seg",
|
|
7339
7383
|
"Ter",
|
|
@@ -7341,7 +7385,7 @@ var Qa = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7341
7385
|
"Qui",
|
|
7342
7386
|
"Sex",
|
|
7343
7387
|
"Sáb"
|
|
7344
|
-
],
|
|
7388
|
+
], io = [
|
|
7345
7389
|
"Janeiro",
|
|
7346
7390
|
"Fevereiro",
|
|
7347
7391
|
"Março",
|
|
@@ -7354,29 +7398,29 @@ var Qa = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7354
7398
|
"Outubro",
|
|
7355
7399
|
"Novembro",
|
|
7356
7400
|
"Dezembro"
|
|
7357
|
-
],
|
|
7358
|
-
function
|
|
7401
|
+
], ao = (e) => String(e).padStart(2, "0"), oo = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), so = (e) => new Date(e.getFullYear(), e.getMonth(), 1), co = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), lo = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), uo = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
7402
|
+
function fo(e) {
|
|
7359
7403
|
let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
|
|
7360
7404
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
|
|
7361
7405
|
}
|
|
7362
|
-
function
|
|
7363
|
-
let n = `${e.getFullYear()}-${
|
|
7364
|
-
return t ? `${n}T${
|
|
7406
|
+
function po(e, t) {
|
|
7407
|
+
let n = `${e.getFullYear()}-${ao(e.getMonth() + 1)}-${ao(e.getDate())}`;
|
|
7408
|
+
return t ? `${n}T${ao(e.getHours())}:${ao(e.getMinutes())}` : n;
|
|
7365
7409
|
}
|
|
7366
|
-
function
|
|
7367
|
-
let n = `${
|
|
7368
|
-
return t ? `${n} ${
|
|
7410
|
+
function mo(e, t) {
|
|
7411
|
+
let n = `${ao(e.getDate())}/${ao(e.getMonth() + 1)}/${e.getFullYear()}`;
|
|
7412
|
+
return t ? `${n} ${ao(e.getHours())}:${ao(e.getMinutes())}` : n;
|
|
7369
7413
|
}
|
|
7370
|
-
var
|
|
7371
|
-
let b = s(), x = g ?? b, [S, C] = d(!1), w =
|
|
7372
|
-
o || (E(
|
|
7414
|
+
var ho = 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) {
|
|
7415
|
+
let b = s(), x = g ?? b, [S, C] = d(!1), w = fo(t), [T, E] = d(() => so(w ?? /* @__PURE__ */ new Date())), D = u ? oo(u) : null, O = f ? oo(f) : null, k = (e) => !!D && oo(e) < D || !!O && oo(e) > O, A = co(so(T), -so(T).getDay()), j = Array.from({ length: 42 }, (e, t) => co(A, t)), M = oo(/* @__PURE__ */ new Date()), N = () => {
|
|
7416
|
+
o || (E(so(w ?? /* @__PURE__ */ new Date())), C((e) => !e));
|
|
7373
7417
|
}, P = (e) => {
|
|
7374
7418
|
if (k(e)) return;
|
|
7375
7419
|
let t = new Date(e);
|
|
7376
|
-
r && t.setHours((w == null ? void 0 : w.getHours()) ?? 0, (w == null ? void 0 : w.getMinutes()) ?? 0, 0, 0), n(
|
|
7420
|
+
r && t.setHours((w == null ? void 0 : w.getHours()) ?? 0, (w == null ? void 0 : w.getMinutes()) ?? 0, 0, 0), n(po(t, r)), r || C(!1);
|
|
7377
7421
|
}, F = (e) => {
|
|
7378
7422
|
let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(w ?? M);
|
|
7379
|
-
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(
|
|
7423
|
+
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(po(o, !0));
|
|
7380
7424
|
}, I = () => {
|
|
7381
7425
|
n(""), C(!1);
|
|
7382
7426
|
}, L = /* @__PURE__ */ h("div", {
|
|
@@ -7390,7 +7434,7 @@ var po = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7390
7434
|
"aria-haspopup": "dialog",
|
|
7391
7435
|
"aria-expanded": S,
|
|
7392
7436
|
"aria-invalid": c ? !0 : void 0,
|
|
7393
|
-
children: w ?
|
|
7437
|
+
children: w ? mo(w, r) : /* @__PURE__ */ m("span", {
|
|
7394
7438
|
className: "select-datefield__ph",
|
|
7395
7439
|
children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
|
|
7396
7440
|
})
|
|
@@ -7427,13 +7471,13 @@ var po = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7427
7471
|
type: "button",
|
|
7428
7472
|
className: "select-datepicker__nav",
|
|
7429
7473
|
"aria-label": "Mês anterior",
|
|
7430
|
-
onClick: () => E((e) =>
|
|
7474
|
+
onClick: () => E((e) => lo(e, -1)),
|
|
7431
7475
|
children: /* @__PURE__ */ m(oe, {})
|
|
7432
7476
|
}),
|
|
7433
7477
|
/* @__PURE__ */ h("span", {
|
|
7434
7478
|
className: "select-datepicker__monthlabel",
|
|
7435
7479
|
children: [
|
|
7436
|
-
|
|
7480
|
+
io[T.getMonth()],
|
|
7437
7481
|
" ",
|
|
7438
7482
|
T.getFullYear()
|
|
7439
7483
|
]
|
|
@@ -7442,7 +7486,7 @@ var po = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7442
7486
|
type: "button",
|
|
7443
7487
|
className: "select-datepicker__nav",
|
|
7444
7488
|
"aria-label": "Próximo mês",
|
|
7445
|
-
onClick: () => E((e) =>
|
|
7489
|
+
onClick: () => E((e) => lo(e, 1)),
|
|
7446
7490
|
children: /* @__PURE__ */ m(ae, {})
|
|
7447
7491
|
})
|
|
7448
7492
|
]
|
|
@@ -7450,11 +7494,11 @@ var po = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7450
7494
|
/* @__PURE__ */ h("div", {
|
|
7451
7495
|
className: "select-datepicker__grid",
|
|
7452
7496
|
role: "grid",
|
|
7453
|
-
children: [
|
|
7497
|
+
children: [ro.map((e) => /* @__PURE__ */ m("div", {
|
|
7454
7498
|
className: "select-datepicker__weekday",
|
|
7455
7499
|
children: e
|
|
7456
7500
|
}, e)), j.map((e) => {
|
|
7457
|
-
let t = e.getMonth() !== T.getMonth(), n = !!w &&
|
|
7501
|
+
let t = e.getMonth() !== T.getMonth(), n = !!w && uo(e, w), r = "select-datepicker__daybtn" + (n ? " is-selected" : "") + (uo(e, M) && !n ? " is-today" : "") + (t ? " is-outside" : "");
|
|
7458
7502
|
return /* @__PURE__ */ m("div", {
|
|
7459
7503
|
className: "select-datepicker__day",
|
|
7460
7504
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -7476,7 +7520,7 @@ var po = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7476
7520
|
type: "time",
|
|
7477
7521
|
className: "select-input select-datefield__time-input",
|
|
7478
7522
|
"aria-label": "Horário",
|
|
7479
|
-
value: w ? `${
|
|
7523
|
+
value: w ? `${ao(w.getHours())}:${ao(w.getMinutes())}` : "",
|
|
7480
7524
|
onChange: (e) => F(e.target.value)
|
|
7481
7525
|
})]
|
|
7482
7526
|
}),
|
|
@@ -7517,25 +7561,25 @@ var po = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7517
7561
|
}) : null
|
|
7518
7562
|
]
|
|
7519
7563
|
});
|
|
7520
|
-
}),
|
|
7521
|
-
function
|
|
7522
|
-
let t =
|
|
7564
|
+
}), go = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?$/;
|
|
7565
|
+
function _o(e) {
|
|
7566
|
+
let t = go.exec(e ?? "");
|
|
7523
7567
|
if (!t) return null;
|
|
7524
7568
|
let n = `${t[3]}/${t[2]}/${t[1]}`;
|
|
7525
7569
|
return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
|
|
7526
7570
|
}
|
|
7527
7571
|
//#endregion
|
|
7528
7572
|
//#region src/SelectFilterBar.tsx
|
|
7529
|
-
function
|
|
7573
|
+
function vo(e, t) {
|
|
7530
7574
|
var n;
|
|
7531
|
-
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ?
|
|
7575
|
+
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ? _o(t) ?? t : t;
|
|
7532
7576
|
}
|
|
7533
|
-
function
|
|
7577
|
+
function yo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: s }) {
|
|
7534
7578
|
let [c, l] = d("");
|
|
7535
7579
|
o(() => {
|
|
7536
7580
|
r || l("");
|
|
7537
7581
|
}, [r]);
|
|
7538
|
-
let u = t.trim() !== "", f = u ?
|
|
7582
|
+
let u = t.trim() !== "", f = u ? vo(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;
|
|
7539
7583
|
return /* @__PURE__ */ h(fn, {
|
|
7540
7584
|
active: r,
|
|
7541
7585
|
onClose: a,
|
|
@@ -7562,7 +7606,7 @@ function _o({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7562
7606
|
className: "select-facet__panel",
|
|
7563
7607
|
children: [_ && /* @__PURE__ */ m("div", {
|
|
7564
7608
|
className: "select-facet__search",
|
|
7565
|
-
children: /* @__PURE__ */ m(
|
|
7609
|
+
children: /* @__PURE__ */ m(Ni, {
|
|
7566
7610
|
value: c,
|
|
7567
7611
|
onChange: l,
|
|
7568
7612
|
placeholder: "Buscar opção…"
|
|
@@ -7593,7 +7637,7 @@ function _o({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7593
7637
|
})]
|
|
7594
7638
|
}) : e.type === "date" ? /* @__PURE__ */ m("div", {
|
|
7595
7639
|
className: "select-facet__field",
|
|
7596
|
-
children: /* @__PURE__ */ m(
|
|
7640
|
+
children: /* @__PURE__ */ m(ho, {
|
|
7597
7641
|
value: t,
|
|
7598
7642
|
onChange: n,
|
|
7599
7643
|
placeholder: e.placeholder,
|
|
@@ -7631,7 +7675,7 @@ function _o({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7631
7675
|
]
|
|
7632
7676
|
});
|
|
7633
7677
|
}
|
|
7634
|
-
var
|
|
7678
|
+
var bo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, disabled: a, className: o, ...s }, c) {
|
|
7635
7679
|
let [l, u] = d([]), [f, p] = d(null), [g, _] = d(!1), v = (e) => (t[e.key] ?? "").trim() !== "", y = (e) => !!e.pinned || v(e) || l.includes(e.key), b = e.filter(y), x = e.filter((e) => !y(e)), S = e.filter(v), C = () => {
|
|
7636
7680
|
u([]), p(null), r();
|
|
7637
7681
|
}, w = (e) => {
|
|
@@ -7669,7 +7713,7 @@ var vo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7669
7713
|
})
|
|
7670
7714
|
]
|
|
7671
7715
|
}),
|
|
7672
|
-
b.map((e) => /* @__PURE__ */ m(
|
|
7716
|
+
b.map((e) => /* @__PURE__ */ m(yo, {
|
|
7673
7717
|
filter: e,
|
|
7674
7718
|
value: t[e.key] ?? "",
|
|
7675
7719
|
onChange: (t) => n(e.key, t),
|
|
@@ -7715,7 +7759,7 @@ var vo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7715
7759
|
children: [
|
|
7716
7760
|
e.label,
|
|
7717
7761
|
": ",
|
|
7718
|
-
|
|
7762
|
+
vo(e, t[e.key] ?? ""),
|
|
7719
7763
|
/* @__PURE__ */ m("button", {
|
|
7720
7764
|
type: "button",
|
|
7721
7765
|
className: "select-filterbar__tagx",
|
|
@@ -7732,7 +7776,7 @@ var vo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7732
7776
|
})]
|
|
7733
7777
|
})]
|
|
7734
7778
|
});
|
|
7735
|
-
}),
|
|
7779
|
+
}), xo = 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) {
|
|
7736
7780
|
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);
|
|
7737
7781
|
return /* @__PURE__ */ h("div", {
|
|
7738
7782
|
ref: p,
|
|
@@ -7792,7 +7836,7 @@ var vo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7792
7836
|
className: "select-tagselect__menu",
|
|
7793
7837
|
children: [/* @__PURE__ */ m("div", {
|
|
7794
7838
|
className: "select-tagselect__search",
|
|
7795
|
-
children: /* @__PURE__ */ m(
|
|
7839
|
+
children: /* @__PURE__ */ m(Ni, {
|
|
7796
7840
|
value: v,
|
|
7797
7841
|
onChange: y,
|
|
7798
7842
|
placeholder: "Buscar…"
|
|
@@ -7845,7 +7889,7 @@ var vo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7845
7889
|
}) : null
|
|
7846
7890
|
]
|
|
7847
7891
|
});
|
|
7848
|
-
}),
|
|
7892
|
+
}), So = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
|
|
7849
7893
|
return /* @__PURE__ */ h("div", {
|
|
7850
7894
|
ref: c,
|
|
7851
7895
|
...s,
|
|
@@ -7877,8 +7921,8 @@ var vo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7877
7921
|
})
|
|
7878
7922
|
]
|
|
7879
7923
|
});
|
|
7880
|
-
}),
|
|
7881
|
-
function
|
|
7924
|
+
}), Co = n(null), wo = 220, To = 4e3, Eo = 8, Do = .04, Oo = 5;
|
|
7925
|
+
function ko({ children: e }) {
|
|
7882
7926
|
let [t, n] = d([]), r = u(0), a = u(/* @__PURE__ */ new Map()), s = i((e) => {
|
|
7883
7927
|
n((t) => t.filter((t) => t.id !== e)), a.current.delete(e);
|
|
7884
7928
|
}, []), c = i((e) => {
|
|
@@ -7886,9 +7930,9 @@ function Do({ children: e }) {
|
|
|
7886
7930
|
t && clearTimeout(t), n((t) => t.map((t) => t.id === e ? {
|
|
7887
7931
|
...t,
|
|
7888
7932
|
exiting: !0
|
|
7889
|
-
} : t)), a.current.set(e, setTimeout(() => s(e),
|
|
7933
|
+
} : t)), a.current.set(e, setTimeout(() => s(e), wo));
|
|
7890
7934
|
}, [s]), f = i((e, t) => {
|
|
7891
|
-
let i = ++r.current, o = (t == null ? void 0 : t.duration) ??
|
|
7935
|
+
let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? To;
|
|
7892
7936
|
n((n) => [...n, {
|
|
7893
7937
|
id: i,
|
|
7894
7938
|
content: e,
|
|
@@ -7916,7 +7960,7 @@ function Do({ children: e }) {
|
|
|
7916
7960
|
duration: t
|
|
7917
7961
|
})
|
|
7918
7962
|
}), [f]);
|
|
7919
|
-
return /* @__PURE__ */ h(
|
|
7963
|
+
return /* @__PURE__ */ h(Co.Provider, {
|
|
7920
7964
|
value: p,
|
|
7921
7965
|
children: [e, t.length > 0 && g(/* @__PURE__ */ m("div", {
|
|
7922
7966
|
className: "select select-toasts",
|
|
@@ -7924,8 +7968,8 @@ function Do({ children: e }) {
|
|
|
7924
7968
|
"aria-live": "polite",
|
|
7925
7969
|
"aria-label": "Notificações",
|
|
7926
7970
|
children: t.map((e, n) => {
|
|
7927
|
-
let r = t.length - 1 - n, i = e.exiting || r >=
|
|
7928
|
-
transform: `translate(-50%, ${-r *
|
|
7971
|
+
let r = t.length - 1 - n, i = e.exiting || r >= Oo, a = {
|
|
7972
|
+
transform: `translate(-50%, ${-r * Eo}px) scale(${1 - r * Do})`,
|
|
7929
7973
|
opacity: +!i,
|
|
7930
7974
|
zIndex: 1e3 - r,
|
|
7931
7975
|
pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
|
|
@@ -7949,14 +7993,14 @@ function Do({ children: e }) {
|
|
|
7949
7993
|
}), document.body)]
|
|
7950
7994
|
});
|
|
7951
7995
|
}
|
|
7952
|
-
function
|
|
7953
|
-
let e = a(
|
|
7996
|
+
function Ao() {
|
|
7997
|
+
let e = a(Co);
|
|
7954
7998
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
7955
7999
|
return e;
|
|
7956
8000
|
}
|
|
7957
8001
|
//#endregion
|
|
7958
8002
|
//#region src/SelectPreviewFrame.tsx
|
|
7959
|
-
var
|
|
8003
|
+
var jo = "allow-scripts allow-same-origin allow-forms", Mo = 390, No = 1280, Po = r(function({ src: e, sandbox: t = jo, 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: _ = No, className: v, ...y }, b) {
|
|
7960
8004
|
let x = $r(e), [S, C] = d(a), [w, T] = d(0), [E, D] = d(!0), O = u(null), [k, A] = d({
|
|
7961
8005
|
w: 0,
|
|
7962
8006
|
h: 0
|
|
@@ -7974,7 +8018,7 @@ var ko = "allow-scripts allow-same-origin allow-forms", Ao = 390, jo = 1280, Mo
|
|
|
7974
8018
|
});
|
|
7975
8019
|
return t.observe(e), () => t.disconnect();
|
|
7976
8020
|
}, []);
|
|
7977
|
-
let j = S === "mobile" ?
|
|
8021
|
+
let j = S === "mobile" ? Mo : _, M = k.w > 0 ? Math.min(1, k.w / j) : 1, N = x ? `${x}${x.includes("?") ? "&" : "?"}_pv=${w}` : "", P = () => {
|
|
7978
8022
|
if (D(!0), l) {
|
|
7979
8023
|
l();
|
|
7980
8024
|
return;
|
|
@@ -8063,7 +8107,7 @@ var ko = "allow-scripts allow-same-origin allow-forms", Ao = 390, jo = 1280, Mo
|
|
|
8063
8107
|
})
|
|
8064
8108
|
})]
|
|
8065
8109
|
});
|
|
8066
|
-
}),
|
|
8110
|
+
}), Fo = r(function({ availableCents: e, availableLabel: t = "Saldo disponível", delta: n, buckets: r = [], action: i, className: a, ...o }, s) {
|
|
8067
8111
|
return /* @__PURE__ */ h("div", {
|
|
8068
8112
|
ref: s,
|
|
8069
8113
|
...o,
|
|
@@ -8088,8 +8132,8 @@ var ko = "allow-scripts allow-same-origin allow-forms", Ao = 390, jo = 1280, Mo
|
|
|
8088
8132
|
className: "select-balance__heromain",
|
|
8089
8133
|
children: [/* @__PURE__ */ m("span", {
|
|
8090
8134
|
className: "select-balance__heroamount",
|
|
8091
|
-
children: /* @__PURE__ */ m(
|
|
8092
|
-
}), n != null && /* @__PURE__ */ m(
|
|
8135
|
+
children: /* @__PURE__ */ m(Ja, { cents: e })
|
|
8136
|
+
}), n != null && /* @__PURE__ */ m(Xa, {
|
|
8093
8137
|
value: n,
|
|
8094
8138
|
caption: "vs. período anterior"
|
|
8095
8139
|
})]
|
|
@@ -8108,14 +8152,14 @@ var ko = "allow-scripts allow-same-origin allow-forms", Ao = 390, jo = 1280, Mo
|
|
|
8108
8152
|
children: e.label
|
|
8109
8153
|
}), /* @__PURE__ */ m("span", {
|
|
8110
8154
|
className: "select-balance__bucketamount",
|
|
8111
|
-
children: /* @__PURE__ */ m(
|
|
8155
|
+
children: /* @__PURE__ */ m(Ja, { cents: e.cents })
|
|
8112
8156
|
})]
|
|
8113
8157
|
})]
|
|
8114
8158
|
}, e.label))
|
|
8115
8159
|
})]
|
|
8116
8160
|
})]
|
|
8117
8161
|
});
|
|
8118
|
-
}),
|
|
8162
|
+
}), Io = r(function({ grossCents: e, fees: t, netCents: n, grossLabel: r = "Valor bruto", netLabel: i = "Valor líquido", className: a, ...o }, s) {
|
|
8119
8163
|
let c = n ?? e - t.reduce((e, t) => e + t.cents, 0);
|
|
8120
8164
|
return /* @__PURE__ */ h("div", {
|
|
8121
8165
|
ref: s,
|
|
@@ -8124,13 +8168,13 @@ var ko = "allow-scripts allow-same-origin allow-forms", Ao = 390, jo = 1280, Mo
|
|
|
8124
8168
|
children: [
|
|
8125
8169
|
/* @__PURE__ */ h("div", {
|
|
8126
8170
|
className: "select-fees__row",
|
|
8127
|
-
children: [/* @__PURE__ */ m("span", { children: r }), /* @__PURE__ */ m("span", { children: /* @__PURE__ */ m(
|
|
8171
|
+
children: [/* @__PURE__ */ m("span", { children: r }), /* @__PURE__ */ m("span", { children: /* @__PURE__ */ m(Ja, { cents: e }) })]
|
|
8128
8172
|
}),
|
|
8129
8173
|
t.map((e) => /* @__PURE__ */ h("div", {
|
|
8130
8174
|
className: "select-fees__row",
|
|
8131
8175
|
children: [/* @__PURE__ */ m("span", { children: e.label }), /* @__PURE__ */ h("span", {
|
|
8132
8176
|
className: "select-fees__neg",
|
|
8133
|
-
children: ["−\xA0", /* @__PURE__ */ m(
|
|
8177
|
+
children: ["−\xA0", /* @__PURE__ */ m(Ja, { cents: e.cents })]
|
|
8134
8178
|
})]
|
|
8135
8179
|
}, e.label)),
|
|
8136
8180
|
/* @__PURE__ */ m("div", { className: "select-fees__divider" }),
|
|
@@ -8138,13 +8182,13 @@ var ko = "allow-scripts allow-same-origin allow-forms", Ao = 390, jo = 1280, Mo
|
|
|
8138
8182
|
className: "select-fees__row select-fees__row--net",
|
|
8139
8183
|
children: [/* @__PURE__ */ m("span", { children: i }), /* @__PURE__ */ m("span", {
|
|
8140
8184
|
className: "select-fees__netvalue",
|
|
8141
|
-
children: /* @__PURE__ */ m(
|
|
8185
|
+
children: /* @__PURE__ */ m(Ja, { cents: c })
|
|
8142
8186
|
})]
|
|
8143
8187
|
})
|
|
8144
8188
|
]
|
|
8145
8189
|
});
|
|
8146
|
-
}),
|
|
8147
|
-
let
|
|
8190
|
+
}), Lo = 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) {
|
|
8191
|
+
let g = s != null, _ = g ? {
|
|
8148
8192
|
role: "button",
|
|
8149
8193
|
tabIndex: 0,
|
|
8150
8194
|
"aria-pressed": c,
|
|
@@ -8152,23 +8196,28 @@ var ko = "allow-scripts allow-same-origin allow-forms", Ao = 390, jo = 1280, Mo
|
|
|
8152
8196
|
onKeyDown: (e) => {
|
|
8153
8197
|
e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), s());
|
|
8154
8198
|
}
|
|
8155
|
-
} : {},
|
|
8199
|
+
} : {}, v = "select-kpi" + (o ? " select-kpi--bare" : "") + (g ? " select-kpi--interactive" : "") + (g && c ? " select-kpi--selected" : "") + (u ? " " + u : "");
|
|
8156
8200
|
return /* @__PURE__ */ h("div", {
|
|
8157
|
-
ref:
|
|
8158
|
-
...
|
|
8159
|
-
...
|
|
8160
|
-
className:
|
|
8161
|
-
children: [
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8201
|
+
ref: f,
|
|
8202
|
+
...d,
|
|
8203
|
+
..._,
|
|
8204
|
+
className: v,
|
|
8205
|
+
children: [/* @__PURE__ */ h("span", {
|
|
8206
|
+
className: `select-kpi__label${i == null ? "" : " select-kpi__label--help"}`,
|
|
8207
|
+
children: [i == null ? e : /* @__PURE__ */ m("span", {
|
|
8208
|
+
className: "select-kpi__labeltext",
|
|
8209
|
+
children: e
|
|
8210
|
+
}), i != null && /* @__PURE__ */ m(kt, {
|
|
8211
|
+
content: i,
|
|
8212
|
+
placement: "top-end"
|
|
8213
|
+
})]
|
|
8214
|
+
}), l ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
|
|
8215
|
+
className: "select-skeleton select-kpi__skelvalue",
|
|
8216
|
+
"aria-hidden": "true"
|
|
8217
|
+
}), /* @__PURE__ */ m("span", {
|
|
8218
|
+
className: "select-skeleton select-kpi__skelcaption",
|
|
8219
|
+
"aria-hidden": "true"
|
|
8220
|
+
})] }) : /* @__PURE__ */ h(p, { children: [
|
|
8172
8221
|
/* @__PURE__ */ m("span", {
|
|
8173
8222
|
className: `select-kpi__value${a ? ` select-kpi__value--${a}` : ""}`,
|
|
8174
8223
|
children: t
|
|
@@ -8181,9 +8230,9 @@ var ko = "allow-scripts allow-same-origin allow-forms", Ao = 390, jo = 1280, Mo
|
|
|
8181
8230
|
className: "select-kpi__caption",
|
|
8182
8231
|
children: n
|
|
8183
8232
|
})
|
|
8184
|
-
]
|
|
8233
|
+
] })]
|
|
8185
8234
|
});
|
|
8186
|
-
}),
|
|
8235
|
+
}), Ro = 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) {
|
|
8187
8236
|
let g = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
8188
8237
|
return /* @__PURE__ */ h("div", {
|
|
8189
8238
|
ref: p,
|
|
@@ -8226,7 +8275,7 @@ var ko = "allow-scripts allow-same-origin allow-forms", Ao = 390, jo = 1280, Mo
|
|
|
8226
8275
|
});
|
|
8227
8276
|
//#endregion
|
|
8228
8277
|
//#region src/chartUtils.ts
|
|
8229
|
-
function
|
|
8278
|
+
function zo() {
|
|
8230
8279
|
let [e, t] = d(1);
|
|
8231
8280
|
return c(() => {
|
|
8232
8281
|
let e = () => {
|
|
@@ -8237,7 +8286,7 @@ function Lo() {
|
|
|
8237
8286
|
}, []), e;
|
|
8238
8287
|
}
|
|
8239
8288
|
function Y(e) {
|
|
8240
|
-
let t = u(null), [n, r] = d(0), i =
|
|
8289
|
+
let t = u(null), [n, r] = d(0), i = zo();
|
|
8241
8290
|
return c(() => {
|
|
8242
8291
|
let e = t.current;
|
|
8243
8292
|
if (!e) return;
|
|
@@ -8254,7 +8303,7 @@ function Y(e) {
|
|
|
8254
8303
|
height: Math.round(e * i)
|
|
8255
8304
|
};
|
|
8256
8305
|
}
|
|
8257
|
-
function
|
|
8306
|
+
function Bo(e, t) {
|
|
8258
8307
|
let [n, r] = d(t);
|
|
8259
8308
|
return c(() => {
|
|
8260
8309
|
let t = e.current;
|
|
@@ -8268,15 +8317,15 @@ function Ro(e, t) {
|
|
|
8268
8317
|
return i.observe(t), () => i.disconnect();
|
|
8269
8318
|
}, [e]), n;
|
|
8270
8319
|
}
|
|
8271
|
-
function
|
|
8320
|
+
function Vo(e) {
|
|
8272
8321
|
if (e <= 0) return 1;
|
|
8273
8322
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
8274
8323
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
8275
8324
|
}
|
|
8276
|
-
function
|
|
8325
|
+
function Ho(e, t = 4) {
|
|
8277
8326
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
8278
8327
|
}
|
|
8279
|
-
function
|
|
8328
|
+
function Uo(e, t = 5) {
|
|
8280
8329
|
if (!(e > 0)) return {
|
|
8281
8330
|
max: 1,
|
|
8282
8331
|
values: [0, 1]
|
|
@@ -8288,10 +8337,10 @@ function Vo(e, t = 5) {
|
|
|
8288
8337
|
values: s
|
|
8289
8338
|
};
|
|
8290
8339
|
}
|
|
8291
|
-
function
|
|
8340
|
+
function Wo(e) {
|
|
8292
8341
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
8293
8342
|
}
|
|
8294
|
-
function
|
|
8343
|
+
function Go(e) {
|
|
8295
8344
|
let t = e.length;
|
|
8296
8345
|
if (t === 0) return "";
|
|
8297
8346
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -8315,23 +8364,23 @@ function Uo(e) {
|
|
|
8315
8364
|
}
|
|
8316
8365
|
return s;
|
|
8317
8366
|
}
|
|
8318
|
-
function
|
|
8367
|
+
function Ko(e, t) {
|
|
8319
8368
|
if (e.length === 0) return "";
|
|
8320
8369
|
let n = e[0], r = e[e.length - 1];
|
|
8321
|
-
return `${
|
|
8370
|
+
return `${Go(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
8322
8371
|
}
|
|
8323
|
-
function
|
|
8324
|
-
return e.length === 0 || t.length === 0 ? "" : `${
|
|
8372
|
+
function qo(e, t) {
|
|
8373
|
+
return e.length === 0 || t.length === 0 ? "" : `${Go(e)} ${Go([...t].reverse()).replace(/^M/, "L")} Z`;
|
|
8325
8374
|
}
|
|
8326
|
-
function
|
|
8375
|
+
function Jo(e, t, n, r) {
|
|
8327
8376
|
let i = (r - 90) * Math.PI / 180;
|
|
8328
8377
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
8329
8378
|
}
|
|
8330
|
-
function
|
|
8331
|
-
let [o, s] =
|
|
8379
|
+
function Yo(e, t, n, r, i, a) {
|
|
8380
|
+
let [o, s] = Jo(e, t, n, i), [c, l] = Jo(e, t, n, a), [u, d] = Jo(e, t, r, a), [f, p] = Jo(e, t, r, i), m = +(a - i > 180);
|
|
8332
8381
|
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`;
|
|
8333
8382
|
}
|
|
8334
|
-
var
|
|
8383
|
+
var Xo = [
|
|
8335
8384
|
"var(--select-chart-1)",
|
|
8336
8385
|
"var(--select-chart-2)",
|
|
8337
8386
|
"var(--select-chart-3)",
|
|
@@ -8339,13 +8388,13 @@ var Jo = [
|
|
|
8339
8388
|
"var(--select-chart-5)"
|
|
8340
8389
|
];
|
|
8341
8390
|
function X(e) {
|
|
8342
|
-
return
|
|
8391
|
+
return Xo[e % Xo.length];
|
|
8343
8392
|
}
|
|
8344
8393
|
function Z(e) {
|
|
8345
8394
|
let t = Math.abs(e);
|
|
8346
8395
|
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));
|
|
8347
8396
|
}
|
|
8348
|
-
var
|
|
8397
|
+
var Zo = {
|
|
8349
8398
|
top: 16,
|
|
8350
8399
|
right: 22,
|
|
8351
8400
|
bottom: 32,
|
|
@@ -8353,7 +8402,7 @@ var Yo = {
|
|
|
8353
8402
|
};
|
|
8354
8403
|
//#endregion
|
|
8355
8404
|
//#region src/SelectSparkline.tsx
|
|
8356
|
-
function
|
|
8405
|
+
function Qo({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
8357
8406
|
let { ref: a, width: o } = Y(n), c = t ?? X(0), l = s(), u = null;
|
|
8358
8407
|
if (o > 0 && e.length > 1) {
|
|
8359
8408
|
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];
|
|
@@ -8380,11 +8429,11 @@ function Xo({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
8380
8429
|
})]
|
|
8381
8430
|
}) }),
|
|
8382
8431
|
/* @__PURE__ */ m("path", {
|
|
8383
|
-
d:
|
|
8432
|
+
d: Ko(a, n - 4),
|
|
8384
8433
|
fill: `url(#${l}-sa)`
|
|
8385
8434
|
}),
|
|
8386
8435
|
/* @__PURE__ */ m("path", {
|
|
8387
|
-
d:
|
|
8436
|
+
d: Go(a),
|
|
8388
8437
|
fill: "none",
|
|
8389
8438
|
stroke: c,
|
|
8390
8439
|
strokeWidth: 2,
|
|
@@ -8465,8 +8514,8 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
8465
8514
|
}
|
|
8466
8515
|
//#endregion
|
|
8467
8516
|
//#region src/SelectBarChart.tsx
|
|
8468
|
-
function
|
|
8469
|
-
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f =
|
|
8517
|
+
function $o({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
8518
|
+
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f = Vo(Math.max(0, ...e.map((e) => e.value))), p = Zo, 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 * _;
|
|
8470
8519
|
return /* @__PURE__ */ h("div", {
|
|
8471
8520
|
...a,
|
|
8472
8521
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -8492,7 +8541,7 @@ function Zo({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
8492
8541
|
stopOpacity: .62
|
|
8493
8542
|
})]
|
|
8494
8543
|
}) }),
|
|
8495
|
-
|
|
8544
|
+
Ho(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8496
8545
|
x1: p.left,
|
|
8497
8546
|
x2: c - p.right,
|
|
8498
8547
|
y1: x(e),
|
|
@@ -8542,8 +8591,8 @@ function Zo({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
8542
8591
|
}
|
|
8543
8592
|
//#endregion
|
|
8544
8593
|
//#region src/SelectLineChart.tsx
|
|
8545
|
-
function
|
|
8546
|
-
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } =
|
|
8594
|
+
function es({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1, className: a, ...o }) {
|
|
8595
|
+
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } = Uo(Math.max(0, ...e.flatMap((e) => e.data))), y = Zo, 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;
|
|
8547
8596
|
return /* @__PURE__ */ h("div", {
|
|
8548
8597
|
...o,
|
|
8549
8598
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -8596,11 +8645,11 @@ function Qo({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
8596
8645
|
e.map((e, t) => {
|
|
8597
8646
|
let n = e.color ?? X(t), r = e.data.map((e, t) => [C(t), w(e)]);
|
|
8598
8647
|
return /* @__PURE__ */ h("g", { children: [i && /* @__PURE__ */ m("path", {
|
|
8599
|
-
d:
|
|
8648
|
+
d: Ko(r, D),
|
|
8600
8649
|
fill: `url(#${f}-a${t})`,
|
|
8601
8650
|
className: "select-chart__area"
|
|
8602
8651
|
}), /* @__PURE__ */ m("path", {
|
|
8603
|
-
d:
|
|
8652
|
+
d: Go(r),
|
|
8604
8653
|
fill: "none",
|
|
8605
8654
|
stroke: n,
|
|
8606
8655
|
strokeWidth: 2.25,
|
|
@@ -8655,8 +8704,8 @@ function Qo({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
8655
8704
|
}
|
|
8656
8705
|
//#endregion
|
|
8657
8706
|
//#region src/SelectStackedArea.tsx
|
|
8658
|
-
function
|
|
8659
|
-
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 =
|
|
8707
|
+
function ts({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
8708
|
+
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 = Vo(Math.max(0, ..._)), b = Zo, 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];
|
|
8660
8709
|
return /* @__PURE__ */ h("div", {
|
|
8661
8710
|
...a,
|
|
8662
8711
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -8685,7 +8734,7 @@ function $o({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8685
8734
|
})]
|
|
8686
8735
|
}, t);
|
|
8687
8736
|
}) }),
|
|
8688
|
-
|
|
8737
|
+
Ho(y).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8689
8738
|
x1: b.left,
|
|
8690
8739
|
x2: c - b.right,
|
|
8691
8740
|
y1: w(e),
|
|
@@ -8704,10 +8753,10 @@ function $o({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8704
8753
|
return /* @__PURE__ */ h("g", {
|
|
8705
8754
|
className: "select-chart__area",
|
|
8706
8755
|
children: [/* @__PURE__ */ m("path", {
|
|
8707
|
-
d:
|
|
8756
|
+
d: qo(i, a),
|
|
8708
8757
|
fill: `url(#${u}-b${n})`
|
|
8709
8758
|
}), /* @__PURE__ */ m("path", {
|
|
8710
|
-
d:
|
|
8759
|
+
d: Go(i),
|
|
8711
8760
|
fill: "none",
|
|
8712
8761
|
stroke: r,
|
|
8713
8762
|
strokeWidth: 1.5,
|
|
@@ -8761,11 +8810,11 @@ function $o({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8761
8810
|
}
|
|
8762
8811
|
//#endregion
|
|
8763
8812
|
//#region src/SelectComboChart.tsx
|
|
8764
|
-
function
|
|
8813
|
+
function ns({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
|
|
8765
8814
|
let { ref: l, width: u } = Y(r), f = Q(), p = s(), [g, _] = d(null), v = {
|
|
8766
|
-
...
|
|
8815
|
+
...Zo,
|
|
8767
8816
|
right: 58
|
|
8768
|
-
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S =
|
|
8817
|
+
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = Vo(Math.max(0, ...t.data)), C = Vo(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)]);
|
|
8769
8818
|
return /* @__PURE__ */ h("div", {
|
|
8770
8819
|
...c,
|
|
8771
8820
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -8791,7 +8840,7 @@ function es({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8791
8840
|
stopOpacity: .55
|
|
8792
8841
|
})]
|
|
8793
8842
|
}) }),
|
|
8794
|
-
|
|
8843
|
+
Ho(S).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8795
8844
|
x1: v.left,
|
|
8796
8845
|
x2: u - v.right,
|
|
8797
8846
|
y1: A(e),
|
|
@@ -8805,7 +8854,7 @@ function es({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8805
8854
|
textAnchor: "end",
|
|
8806
8855
|
children: i(e)
|
|
8807
8856
|
})] }, t)),
|
|
8808
|
-
|
|
8857
|
+
Ho(C).map((e, t) => /* @__PURE__ */ m("text", {
|
|
8809
8858
|
x: u - 4,
|
|
8810
8859
|
y: j(e),
|
|
8811
8860
|
className: "select-chart__ylabel",
|
|
@@ -8834,7 +8883,7 @@ function es({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8834
8883
|
className: "select-chart__crosshair"
|
|
8835
8884
|
}),
|
|
8836
8885
|
/* @__PURE__ */ m("path", {
|
|
8837
|
-
d:
|
|
8886
|
+
d: Go(N),
|
|
8838
8887
|
fill: "none",
|
|
8839
8888
|
stroke: O,
|
|
8840
8889
|
strokeWidth: 2.5,
|
|
@@ -8892,8 +8941,8 @@ function es({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8892
8941
|
}
|
|
8893
8942
|
//#endregion
|
|
8894
8943
|
//#region src/SelectDonut.tsx
|
|
8895
|
-
var
|
|
8896
|
-
let p = Q(), g = s(), _ = u(null), v =
|
|
8944
|
+
var rs = 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) {
|
|
8945
|
+
let p = Q(), g = s(), _ = u(null), v = Bo(_, 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;
|
|
8897
8946
|
return /* @__PURE__ */ h("div", {
|
|
8898
8947
|
ref: f,
|
|
8899
8948
|
...d,
|
|
@@ -8936,7 +8985,7 @@ var ts = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
8936
8985
|
w += e.value;
|
|
8937
8986
|
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);
|
|
8938
8987
|
return /* @__PURE__ */ m("path", {
|
|
8939
|
-
d:
|
|
8988
|
+
d: Yo(b, x, S, C, c, l),
|
|
8940
8989
|
fill: `url(#${g}-s${t})`,
|
|
8941
8990
|
className: "select-chart__seg",
|
|
8942
8991
|
onMouseEnter: () => {
|
|
@@ -8987,8 +9036,8 @@ var ts = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
8987
9036
|
});
|
|
8988
9037
|
//#endregion
|
|
8989
9038
|
//#region src/SelectColumnChart.tsx
|
|
8990
|
-
function
|
|
8991
|
-
let { ref: c, width: l } = Y(n), u = Q(), d = s(), f = t.length, p = e.length || 1, g = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), _ =
|
|
9039
|
+
function is({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, className: a, ...o }) {
|
|
9040
|
+
let { ref: c, width: l } = Y(n), u = Q(), d = s(), f = t.length, p = e.length || 1, g = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), _ = Vo(i ? Math.max(0, ...g) : Math.max(0, ...e.flatMap((e) => e.data))), v = Zo, y = Math.max(0, l - v.left - v.right), b = n - v.top - v.bottom, x = v.top + b, S = f ? y / f : 0, C = (e) => x - e / _ * b, w = Math.min(S * .72, p * 40), T = i ? Math.min(S * .5, 44) : w / p;
|
|
8992
9041
|
return /* @__PURE__ */ h("div", {
|
|
8993
9042
|
...o,
|
|
8994
9043
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -9017,7 +9066,7 @@ function ns({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
9017
9066
|
})]
|
|
9018
9067
|
}, t);
|
|
9019
9068
|
}) }),
|
|
9020
|
-
|
|
9069
|
+
Ho(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9021
9070
|
x1: v.left,
|
|
9022
9071
|
x2: l - v.right,
|
|
9023
9072
|
y1: C(e),
|
|
@@ -9099,7 +9148,7 @@ function ns({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
9099
9148
|
}
|
|
9100
9149
|
//#endregion
|
|
9101
9150
|
//#region src/SelectFunnel.tsx
|
|
9102
|
-
var
|
|
9151
|
+
var as = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
|
|
9103
9152
|
let a = Math.max(1, ...e.map((e) => e.value));
|
|
9104
9153
|
return /* @__PURE__ */ m("div", {
|
|
9105
9154
|
ref: i,
|
|
@@ -9141,19 +9190,19 @@ var rs = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
|
|
|
9141
9190
|
});
|
|
9142
9191
|
//#endregion
|
|
9143
9192
|
//#region src/SelectGauge.tsx
|
|
9144
|
-
function
|
|
9193
|
+
function os(e) {
|
|
9145
9194
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
9146
9195
|
}
|
|
9147
|
-
function
|
|
9196
|
+
function ss(e, t, n, r) {
|
|
9148
9197
|
let i = Math.PI + r * Math.PI;
|
|
9149
9198
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
9150
9199
|
}
|
|
9151
|
-
function
|
|
9152
|
-
let [a, o] =
|
|
9200
|
+
function cs(e, t, n, r, i) {
|
|
9201
|
+
let [a, o] = ss(e, t, n, r), [s, c] = ss(e, t, n, i);
|
|
9153
9202
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
9154
9203
|
}
|
|
9155
|
-
var
|
|
9156
|
-
let u =
|
|
9204
|
+
var ls = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, us = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = ls, className: s, ...c }, l) {
|
|
9205
|
+
let u = os(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, g = r / 2, _ = r / 2, v = _ + f, y = on({
|
|
9157
9206
|
value: u,
|
|
9158
9207
|
format: o
|
|
9159
9208
|
});
|
|
@@ -9176,13 +9225,13 @@ var ss = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
9176
9225
|
"aria-hidden": "true",
|
|
9177
9226
|
children: [/* @__PURE__ */ m("path", {
|
|
9178
9227
|
className: "select-gauge__track",
|
|
9179
|
-
d:
|
|
9228
|
+
d: cs(g, _, p, 0, 1),
|
|
9180
9229
|
fill: "none",
|
|
9181
9230
|
strokeWidth: d,
|
|
9182
9231
|
strokeLinecap: "round"
|
|
9183
9232
|
}), u > 0 && /* @__PURE__ */ m("path", {
|
|
9184
9233
|
className: "select-gauge__arc",
|
|
9185
|
-
d:
|
|
9234
|
+
d: cs(g, _, p, 0, u / 100),
|
|
9186
9235
|
fill: "none",
|
|
9187
9236
|
stroke: a ?? "var(--select-chart-1)",
|
|
9188
9237
|
strokeWidth: d,
|
|
@@ -9205,7 +9254,7 @@ var ss = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
9205
9254
|
children: n
|
|
9206
9255
|
})]
|
|
9207
9256
|
});
|
|
9208
|
-
}),
|
|
9257
|
+
}), ds = 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) {
|
|
9209
9258
|
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 = {
|
|
9210
9259
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
9211
9260
|
width: "fit-content",
|
|
@@ -9270,7 +9319,7 @@ var ss = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
9270
9319
|
});
|
|
9271
9320
|
//#endregion
|
|
9272
9321
|
//#region src/SelectProgressList.tsx
|
|
9273
|
-
function
|
|
9322
|
+
function fs({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período." }) {
|
|
9274
9323
|
if (e.length === 0) return /* @__PURE__ */ m("div", {
|
|
9275
9324
|
className: "select-progresslist__empty",
|
|
9276
9325
|
children: r
|
|
@@ -9321,7 +9370,7 @@ function us({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
9321
9370
|
}
|
|
9322
9371
|
//#endregion
|
|
9323
9372
|
//#region src/SelectRadialBar.tsx
|
|
9324
|
-
var
|
|
9373
|
+
var ps = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, ms = 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) {
|
|
9325
9374
|
let d = s(), f = t / 2, p = t / 2;
|
|
9326
9375
|
return /* @__PURE__ */ h("div", {
|
|
9327
9376
|
ref: u,
|
|
@@ -9361,7 +9410,7 @@ var ds = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, fs = r(f
|
|
|
9361
9410
|
}) }), e.map((e, i) => {
|
|
9362
9411
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
9363
9412
|
if (a <= n / 2) return null;
|
|
9364
|
-
let o =
|
|
9413
|
+
let o = ps(e.value);
|
|
9365
9414
|
return /* @__PURE__ */ h("g", {
|
|
9366
9415
|
transform: `rotate(-90 ${f} ${p})`,
|
|
9367
9416
|
children: [/* @__PURE__ */ m("circle", {
|
|
@@ -9390,7 +9439,7 @@ var ds = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, fs = r(f
|
|
|
9390
9439
|
className: "select-radial__center",
|
|
9391
9440
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ m("strong", {
|
|
9392
9441
|
className: "select-radial__value",
|
|
9393
|
-
children: i(
|
|
9442
|
+
children: i(ps(e[0].value))
|
|
9394
9443
|
}) : null)
|
|
9395
9444
|
})]
|
|
9396
9445
|
}), o && /* @__PURE__ */ m("ul", {
|
|
@@ -9408,15 +9457,15 @@ var ds = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, fs = r(f
|
|
|
9408
9457
|
}),
|
|
9409
9458
|
/* @__PURE__ */ m("span", {
|
|
9410
9459
|
className: "select-donut__legval",
|
|
9411
|
-
children: i(
|
|
9460
|
+
children: i(ps(e.value))
|
|
9412
9461
|
})
|
|
9413
9462
|
]
|
|
9414
9463
|
}, t))
|
|
9415
9464
|
})]
|
|
9416
9465
|
});
|
|
9417
|
-
}),
|
|
9418
|
-
function
|
|
9419
|
-
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Y(d), g = Q(), _ = s(), v = c && c > 0 ? c :
|
|
9466
|
+
}), hs = 6.1, gs = 12, _s = 56, vs = .4;
|
|
9467
|
+
function ys({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
|
|
9468
|
+
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Y(d), g = Q(), _ = s(), v = c && c > 0 ? c : Vo(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(_s, y * hs + gs), Math.max(_s, p * vs)), x = o ?? b, S = Math.max(3, Math.floor((x - gs) / hs)), 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));
|
|
9420
9469
|
return /* @__PURE__ */ h("div", {
|
|
9421
9470
|
...u,
|
|
9422
9471
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -9445,7 +9494,7 @@ function _s({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9445
9494
|
})]
|
|
9446
9495
|
}, t);
|
|
9447
9496
|
}) }),
|
|
9448
|
-
|
|
9497
|
+
Ho(v).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9449
9498
|
x1: O(e),
|
|
9450
9499
|
x2: O(e),
|
|
9451
9500
|
y1: 6,
|
|
@@ -9491,7 +9540,7 @@ function _s({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9491
9540
|
onMouseLeave: g.hide
|
|
9492
9541
|
}),
|
|
9493
9542
|
/* @__PURE__ */ h("text", {
|
|
9494
|
-
x: x -
|
|
9543
|
+
x: x - gs / 2,
|
|
9495
9544
|
y: n,
|
|
9496
9545
|
className: "select-chart__ylabel",
|
|
9497
9546
|
dominantBaseline: "middle",
|
|
@@ -9506,7 +9555,7 @@ function _s({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9506
9555
|
}
|
|
9507
9556
|
//#endregion
|
|
9508
9557
|
//#region src/SelectWaterfall.tsx
|
|
9509
|
-
function
|
|
9558
|
+
function bs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
9510
9559
|
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
9511
9560
|
if (e.total) return u = e.value, {
|
|
9512
9561
|
...e,
|
|
@@ -9519,7 +9568,7 @@ function vs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9519
9568
|
start: t,
|
|
9520
9569
|
end: u
|
|
9521
9570
|
};
|
|
9522
|
-
}), f =
|
|
9571
|
+
}), f = Vo(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = Zo, 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 = {
|
|
9523
9572
|
total: "var(--select-chart-1)",
|
|
9524
9573
|
inc: "var(--select-chart-4)",
|
|
9525
9574
|
dec: "var(--select-chart-3)"
|
|
@@ -9553,7 +9602,7 @@ function vs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9553
9602
|
stopOpacity: .62
|
|
9554
9603
|
})]
|
|
9555
9604
|
}, e)) }),
|
|
9556
|
-
|
|
9605
|
+
Ho(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9557
9606
|
x1: p.left,
|
|
9558
9607
|
x2: o - p.right,
|
|
9559
9608
|
y1: S(e),
|
|
@@ -9621,7 +9670,7 @@ function vs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9621
9670
|
}
|
|
9622
9671
|
//#endregion
|
|
9623
9672
|
//#region src/SelectBullet.tsx
|
|
9624
|
-
var
|
|
9673
|
+
var xs = (e) => Math.max(0, Math.min(100, e)), Ss = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
9625
9674
|
return /* @__PURE__ */ m("div", {
|
|
9626
9675
|
ref: i,
|
|
9627
9676
|
...r,
|
|
@@ -9659,12 +9708,12 @@ var ys = (e) => Math.max(0, Math.min(100, e)), bs = r(function({ items: e, forma
|
|
|
9659
9708
|
children: [/* @__PURE__ */ m("span", {
|
|
9660
9709
|
className: "select-bullet__fill",
|
|
9661
9710
|
style: {
|
|
9662
|
-
width: `${
|
|
9711
|
+
width: `${xs(e.value / i * 100)}%`,
|
|
9663
9712
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
9664
9713
|
}
|
|
9665
9714
|
}), /* @__PURE__ */ m("span", {
|
|
9666
9715
|
className: "select-bullet__tick",
|
|
9667
|
-
style: { left: `${
|
|
9716
|
+
style: { left: `${xs(e.target / i * 100)}%` }
|
|
9668
9717
|
})]
|
|
9669
9718
|
})]
|
|
9670
9719
|
}, `${e.label}-${n}`);
|
|
@@ -9673,7 +9722,7 @@ var ys = (e) => Math.max(0, Math.min(100, e)), bs = r(function({ items: e, forma
|
|
|
9673
9722
|
});
|
|
9674
9723
|
//#endregion
|
|
9675
9724
|
//#region src/SelectTreemap.tsx
|
|
9676
|
-
function
|
|
9725
|
+
function Cs(e, t, n) {
|
|
9677
9726
|
let r = [], i = (e, t) => {
|
|
9678
9727
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
9679
9728
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -9724,8 +9773,8 @@ function xs(e, t, n) {
|
|
|
9724
9773
|
};
|
|
9725
9774
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
9726
9775
|
}
|
|
9727
|
-
function
|
|
9728
|
-
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 ?
|
|
9776
|
+
function ws({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
9777
|
+
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 ? Cs(u.map((t) => e[t].value), o, t) : [];
|
|
9729
9778
|
return /* @__PURE__ */ h("div", {
|
|
9730
9779
|
...i,
|
|
9731
9780
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -9795,8 +9844,8 @@ function Ss({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9795
9844
|
}
|
|
9796
9845
|
//#endregion
|
|
9797
9846
|
//#region src/SelectScatter.tsx
|
|
9798
|
-
function
|
|
9799
|
-
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p =
|
|
9847
|
+
function Ts({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
9848
|
+
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p = Vo(i ?? Math.max(0, ...f.map((e) => e.x))), g = Vo(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = Zo, 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;
|
|
9800
9849
|
return /* @__PURE__ */ h("div", {
|
|
9801
9850
|
...c,
|
|
9802
9851
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -9806,7 +9855,7 @@ function Cs({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9806
9855
|
height: t,
|
|
9807
9856
|
className: "select-chart",
|
|
9808
9857
|
children: [
|
|
9809
|
-
|
|
9858
|
+
Ho(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9810
9859
|
x1: v.left,
|
|
9811
9860
|
x2: u - v.right,
|
|
9812
9861
|
y1: C(e),
|
|
@@ -9820,7 +9869,7 @@ function Cs({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9820
9869
|
textAnchor: "end",
|
|
9821
9870
|
children: r(e)
|
|
9822
9871
|
})] }, `y${t}`)),
|
|
9823
|
-
|
|
9872
|
+
Ho(p).map((e, r, i) => /* @__PURE__ */ m("text", {
|
|
9824
9873
|
x: S(e),
|
|
9825
9874
|
y: t - v.bottom + 16,
|
|
9826
9875
|
className: "select-chart__xlabel",
|
|
@@ -9867,8 +9916,8 @@ function Cs({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9867
9916
|
}
|
|
9868
9917
|
//#endregion
|
|
9869
9918
|
//#region src/SelectRadar.tsx
|
|
9870
|
-
var
|
|
9871
|
-
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ??
|
|
9919
|
+
var Es = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
|
|
9920
|
+
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? Vo(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";
|
|
9872
9921
|
return /* @__PURE__ */ h("div", {
|
|
9873
9922
|
ref: u,
|
|
9874
9923
|
...l,
|
|
@@ -9977,7 +10026,7 @@ var ws = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
9977
10026
|
});
|
|
9978
10027
|
//#endregion
|
|
9979
10028
|
//#region src/SelectSankey.tsx
|
|
9980
|
-
function
|
|
10029
|
+
function Ds({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
9981
10030
|
let { ref: s, width: c } = Y(t), l = Q(), u = [], d = [];
|
|
9982
10031
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
9983
10032
|
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) => {
|
|
@@ -10062,8 +10111,8 @@ function Ts({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
10062
10111
|
}
|
|
10063
10112
|
//#endregion
|
|
10064
10113
|
//#region src/SelectCandlestick.tsx
|
|
10065
|
-
function
|
|
10066
|
-
let { ref: s, width: c } = Y(t), l = Q(), u =
|
|
10114
|
+
function Os({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
10115
|
+
let { ref: s, width: c } = Y(t), l = Q(), u = Zo, 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);
|
|
10067
10116
|
return /* @__PURE__ */ h("div", {
|
|
10068
10117
|
...o,
|
|
10069
10118
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -10152,8 +10201,8 @@ function Es({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
10152
10201
|
}
|
|
10153
10202
|
//#endregion
|
|
10154
10203
|
//#region src/SelectBoxPlot.tsx
|
|
10155
|
-
function
|
|
10156
|
-
let { ref: a, width: o } = Y(t), s = Q(), c =
|
|
10204
|
+
function ks({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
10205
|
+
let { ref: a, width: o } = Y(t), s = Q(), c = Zo, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Vo(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);
|
|
10157
10206
|
return /* @__PURE__ */ h("div", {
|
|
10158
10207
|
...i,
|
|
10159
10208
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -10162,7 +10211,7 @@ function Ds({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10162
10211
|
width: o,
|
|
10163
10212
|
height: t,
|
|
10164
10213
|
className: "select-chart",
|
|
10165
|
-
children: [
|
|
10214
|
+
children: [Ho(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
10166
10215
|
x1: c.left,
|
|
10167
10216
|
x2: o - c.right,
|
|
10168
10217
|
y1: p(e),
|
|
@@ -10272,7 +10321,7 @@ function Ds({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10272
10321
|
}
|
|
10273
10322
|
//#endregion
|
|
10274
10323
|
//#region src/SelectRangeBar.tsx
|
|
10275
|
-
function
|
|
10324
|
+
function As({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
10276
10325
|
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);
|
|
10277
10326
|
return /* @__PURE__ */ h("div", {
|
|
10278
10327
|
...c,
|
|
@@ -10353,7 +10402,7 @@ function Os({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
10353
10402
|
}
|
|
10354
10403
|
//#endregion
|
|
10355
10404
|
//#region src/SelectCalendarHeatmap.tsx
|
|
10356
|
-
var
|
|
10405
|
+
var js = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
10357
10406
|
"Seg",
|
|
10358
10407
|
"",
|
|
10359
10408
|
"Qua",
|
|
@@ -10426,8 +10475,8 @@ var ks = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10426
10475
|
]
|
|
10427
10476
|
}), /* @__PURE__ */ m($, { tip: p.tip })]
|
|
10428
10477
|
});
|
|
10429
|
-
}),
|
|
10430
|
-
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p =
|
|
10478
|
+
}), Ms = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
10479
|
+
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = Vo(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;
|
|
10431
10480
|
return /* @__PURE__ */ h("div", {
|
|
10432
10481
|
ref: s,
|
|
10433
10482
|
...o,
|
|
@@ -10457,7 +10506,7 @@ var ks = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10457
10506
|
}, t)), e.map((e, t) => {
|
|
10458
10507
|
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);
|
|
10459
10508
|
return /* @__PURE__ */ m("path", {
|
|
10460
|
-
d:
|
|
10509
|
+
d: Yo(l, u, o, 0, r, i),
|
|
10461
10510
|
fill: a,
|
|
10462
10511
|
fillOpacity: .8,
|
|
10463
10512
|
className: "select-chart__seg",
|
|
@@ -10500,13 +10549,13 @@ var ks = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10500
10549
|
});
|
|
10501
10550
|
//#endregion
|
|
10502
10551
|
//#region src/SelectSlope.tsx
|
|
10503
|
-
function
|
|
10552
|
+
function Ns({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
10504
10553
|
let { ref: s, width: c } = Y(r), l = Q(), u = {
|
|
10505
10554
|
top: 24,
|
|
10506
10555
|
right: 64,
|
|
10507
10556
|
bottom: 12,
|
|
10508
10557
|
left: 132
|
|
10509
|
-
}, d =
|
|
10558
|
+
}, d = Vo(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;
|
|
10510
10559
|
return /* @__PURE__ */ h("div", {
|
|
10511
10560
|
...o,
|
|
10512
10561
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -10622,8 +10671,8 @@ function js({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
10622
10671
|
}
|
|
10623
10672
|
//#endregion
|
|
10624
10673
|
//#region src/SelectDumbbell.tsx
|
|
10625
|
-
function
|
|
10626
|
-
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 =
|
|
10674
|
+
function Ps({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
10675
|
+
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 = Vo(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;
|
|
10627
10676
|
return /* @__PURE__ */ h("div", {
|
|
10628
10677
|
...s,
|
|
10629
10678
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -10632,7 +10681,7 @@ function Ms({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
10632
10681
|
width: u,
|
|
10633
10682
|
height: c,
|
|
10634
10683
|
className: "select-chart",
|
|
10635
|
-
children: [
|
|
10684
|
+
children: [Ho(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
10636
10685
|
x1: x(e),
|
|
10637
10686
|
x2: x(e),
|
|
10638
10687
|
y1: 6,
|
|
@@ -10715,7 +10764,7 @@ function Ms({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
10715
10764
|
}
|
|
10716
10765
|
//#endregion
|
|
10717
10766
|
//#region src/SelectMarimekko.tsx
|
|
10718
|
-
function
|
|
10767
|
+
function Fs({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
10719
10768
|
let { ref: o, width: s } = Y(t), c = Q(), l = {
|
|
10720
10769
|
top: 6,
|
|
10721
10770
|
right: 6,
|
|
@@ -10795,7 +10844,7 @@ function Ns({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
10795
10844
|
}
|
|
10796
10845
|
//#endregion
|
|
10797
10846
|
//#region src/SelectGaugeBands.tsx
|
|
10798
|
-
var
|
|
10847
|
+
var Is = 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) {
|
|
10799
10848
|
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) => {
|
|
10800
10849
|
let t = Math.PI + e * Math.PI;
|
|
10801
10850
|
return [p + f * Math.cos(t), g + f * Math.sin(t)];
|
|
@@ -10867,7 +10916,7 @@ var Ps = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
10867
10916
|
});
|
|
10868
10917
|
//#endregion
|
|
10869
10918
|
//#region src/SelectStreamGraph.tsx
|
|
10870
|
-
function
|
|
10919
|
+
function Ls({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
10871
10920
|
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = {
|
|
10872
10921
|
top: 14,
|
|
10873
10922
|
right: 14,
|
|
@@ -10911,7 +10960,7 @@ function Fs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
10911
10960
|
})]
|
|
10912
10961
|
}, t)) }),
|
|
10913
10962
|
w.map((e, t) => /* @__PURE__ */ m("path", {
|
|
10914
|
-
d:
|
|
10963
|
+
d: qo(e.upper, e.lower),
|
|
10915
10964
|
fill: `url(#${u}-st${t})`,
|
|
10916
10965
|
className: "select-chart__area"
|
|
10917
10966
|
}, t)),
|
|
@@ -10958,7 +11007,7 @@ function Fs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
10958
11007
|
}
|
|
10959
11008
|
//#endregion
|
|
10960
11009
|
//#region src/SelectSunburst.tsx
|
|
10961
|
-
var
|
|
11010
|
+
var Rs = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
10962
11011
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
10963
11012
|
var t;
|
|
10964
11013
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -10984,7 +11033,7 @@ var Is = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10984
11033
|
_ += r;
|
|
10985
11034
|
let a = _ / g * 360, o = e.color ?? X(t), v = i;
|
|
10986
11035
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
10987
|
-
d:
|
|
11036
|
+
d: Yo(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
10988
11037
|
fill: o,
|
|
10989
11038
|
className: "select-chart__seg",
|
|
10990
11039
|
onMouseEnter: () => s.show({
|
|
@@ -11004,7 +11053,7 @@ var Is = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
11004
11053
|
v += t.value / g * 360;
|
|
11005
11054
|
let f = v, p = t.color ?? o, h = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
11006
11055
|
return /* @__PURE__ */ m("path", {
|
|
11007
|
-
d:
|
|
11056
|
+
d: Yo(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
11008
11057
|
fill: p,
|
|
11009
11058
|
fillOpacity: h,
|
|
11010
11059
|
className: "select-chart__seg",
|
|
@@ -11051,8 +11100,8 @@ var Is = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
11051
11100
|
});
|
|
11052
11101
|
//#endregion
|
|
11053
11102
|
//#region src/SelectViolin.tsx
|
|
11054
|
-
function
|
|
11055
|
-
let { ref: a, width: o } = Y(t), s = Q(), c =
|
|
11103
|
+
function zs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11104
|
+
let { ref: a, width: o } = Y(t), s = Q(), c = Zo, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Vo(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));
|
|
11056
11105
|
return /* @__PURE__ */ h("div", {
|
|
11057
11106
|
...i,
|
|
11058
11107
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -11061,7 +11110,7 @@ function Ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11061
11110
|
width: o,
|
|
11062
11111
|
height: t,
|
|
11063
11112
|
className: "select-chart",
|
|
11064
|
-
children: [
|
|
11113
|
+
children: [Ho(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
11065
11114
|
x1: c.left,
|
|
11066
11115
|
x2: o - c.right,
|
|
11067
11116
|
y1: p(e),
|
|
@@ -11078,7 +11127,7 @@ function Ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11078
11127
|
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 = [];
|
|
11079
11128
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
11080
11129
|
for (let e = 0; e < o; e++) g.push([i - d(e), l(e)]);
|
|
11081
|
-
let b = `${
|
|
11130
|
+
let b = `${Wo(f)} ${Wo(g).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
11082
11131
|
return /* @__PURE__ */ h("g", { children: [
|
|
11083
11132
|
/* @__PURE__ */ m("path", {
|
|
11084
11133
|
d: b,
|
|
@@ -11139,7 +11188,7 @@ function Ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11139
11188
|
}
|
|
11140
11189
|
//#endregion
|
|
11141
11190
|
//#region src/SelectChord.tsx
|
|
11142
|
-
var
|
|
11191
|
+
var Bs = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
11143
11192
|
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;
|
|
11144
11193
|
for (let e = 0; e < l; e++) {
|
|
11145
11194
|
let t = b, n = b + g[e] * v;
|
|
@@ -11206,7 +11255,7 @@ var Rs = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
11206
11255
|
}, n)), y.map((e, n) => {
|
|
11207
11256
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
11208
11257
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
11209
|
-
d:
|
|
11258
|
+
d: Yo(u, d, f, p, w(e.a0), w(e.a1)),
|
|
11210
11259
|
fill: X(n),
|
|
11211
11260
|
className: "select-chord__arc"
|
|
11212
11261
|
}), /* @__PURE__ */ m("text", {
|
|
@@ -11224,7 +11273,7 @@ var Rs = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
11224
11273
|
});
|
|
11225
11274
|
//#endregion
|
|
11226
11275
|
//#region src/SelectHexbin.tsx
|
|
11227
|
-
function
|
|
11276
|
+
function Vs({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
11228
11277
|
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) => {
|
|
11229
11278
|
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);
|
|
11230
11279
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
@@ -11276,7 +11325,7 @@ function zs({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
11276
11325
|
}
|
|
11277
11326
|
//#endregion
|
|
11278
11327
|
//#region src/SelectWordCloud.tsx
|
|
11279
|
-
var
|
|
11328
|
+
var Hs = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
11280
11329
|
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);
|
|
11281
11330
|
return /* @__PURE__ */ m("div", {
|
|
11282
11331
|
ref: a,
|
|
@@ -11293,7 +11342,7 @@ var Bs = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
11293
11342
|
children: e.text
|
|
11294
11343
|
}, `${e.text}-${t}`))
|
|
11295
11344
|
});
|
|
11296
|
-
}),
|
|
11345
|
+
}), Us = [
|
|
11297
11346
|
[
|
|
11298
11347
|
-59.6,
|
|
11299
11348
|
-80,
|
|
@@ -21688,24 +21737,24 @@ var Bs = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
21688
21737
|
-27.1,
|
|
21689
21738
|
83.5
|
|
21690
21739
|
]
|
|
21691
|
-
],
|
|
21692
|
-
function
|
|
21693
|
-
let n = e *
|
|
21740
|
+
], Ws = Math.PI / 180;
|
|
21741
|
+
function Gs(e, t) {
|
|
21742
|
+
let n = e * Ws, r = t * Ws;
|
|
21694
21743
|
return [
|
|
21695
21744
|
Math.cos(n) * Math.sin(r),
|
|
21696
21745
|
Math.sin(n),
|
|
21697
21746
|
Math.cos(n) * Math.cos(r)
|
|
21698
21747
|
];
|
|
21699
21748
|
}
|
|
21700
|
-
function
|
|
21701
|
-
let a = r *
|
|
21749
|
+
function Ks([e, t, n], r, i) {
|
|
21750
|
+
let a = r * Ws, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * Ws;
|
|
21702
21751
|
return [
|
|
21703
21752
|
o,
|
|
21704
21753
|
t * Math.cos(c) - s * Math.sin(c),
|
|
21705
21754
|
t * Math.sin(c) + s * Math.cos(c)
|
|
21706
21755
|
];
|
|
21707
21756
|
}
|
|
21708
|
-
function
|
|
21757
|
+
function qs(e, t, n) {
|
|
21709
21758
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
21710
21759
|
r = Math.max(-1, Math.min(1, r));
|
|
21711
21760
|
let i = Math.acos(r);
|
|
@@ -21717,9 +21766,9 @@ function Gs(e, t, n) {
|
|
|
21717
21766
|
e[2] * o + t[2] * s
|
|
21718
21767
|
];
|
|
21719
21768
|
}
|
|
21720
|
-
var
|
|
21769
|
+
var Js = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, Ys = 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) {
|
|
21721
21770
|
var S, C;
|
|
21722
|
-
let w = s(), T = Q(), E = u(null), D =
|
|
21771
|
+
let w = s(), T = Q(), E = u(null), D = Bo(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({
|
|
21723
21772
|
lng: -O,
|
|
21724
21773
|
lat: r
|
|
21725
21774
|
}), j = u({
|
|
@@ -21778,7 +21827,7 @@ var Ks = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21778
21827
|
var t, n;
|
|
21779
21828
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, z(!1), ne());
|
|
21780
21829
|
}, U = (D / 2 - 6) * M.current, W = D / 2, G = D / 2, se = (e) => {
|
|
21781
|
-
let t =
|
|
21830
|
+
let t = Ks(e, A.current.lng, A.current.lat);
|
|
21782
21831
|
return {
|
|
21783
21832
|
x: W + U * t[0],
|
|
21784
21833
|
y: G - U * t[1],
|
|
@@ -21788,25 +21837,25 @@ var Ks = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21788
21837
|
let e = [];
|
|
21789
21838
|
for (let t = -180; t < 180; t += 30) {
|
|
21790
21839
|
let n = [];
|
|
21791
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
21840
|
+
for (let e = 0; e <= 48; e++) n.push(Gs(-90 + 180 * e / 48, t));
|
|
21792
21841
|
e.push(n);
|
|
21793
21842
|
}
|
|
21794
21843
|
for (let t = -60; t <= 60; t += 30) {
|
|
21795
21844
|
let n = [];
|
|
21796
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
21845
|
+
for (let e = 0; e <= 48; e++) n.push(Gs(t, -180 + 360 * e / 48));
|
|
21797
21846
|
e.push(n);
|
|
21798
21847
|
}
|
|
21799
21848
|
return e;
|
|
21800
|
-
}, []), le = l(() =>
|
|
21849
|
+
}, []), le = l(() => Us.map((e) => {
|
|
21801
21850
|
let t = [];
|
|
21802
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
21851
|
+
for (let n = 0; n < e.length; n += 2) t.push(Gs(e[n + 1], e[n]));
|
|
21803
21852
|
return t;
|
|
21804
21853
|
}), []), K = (e) => ({
|
|
21805
21854
|
x: W + U * e[0],
|
|
21806
21855
|
y: G - U * e[1]
|
|
21807
21856
|
}), q = "", ue = "";
|
|
21808
21857
|
if (g) for (let e of le) {
|
|
21809
|
-
let t = e.map((e) =>
|
|
21858
|
+
let t = e.map((e) => Ks(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
21810
21859
|
for (let e of t) if (e[2] > 0) {
|
|
21811
21860
|
let t = K(e);
|
|
21812
21861
|
ue += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -21854,7 +21903,7 @@ var Ks = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21854
21903
|
}
|
|
21855
21904
|
return t;
|
|
21856
21905
|
}, fe = Math.max(1, ...e.map((e) => e.value ?? 0)), pe = e.map((e, t) => {
|
|
21857
|
-
let n = se(
|
|
21906
|
+
let n = se(Gs(e.lat, e.lng));
|
|
21858
21907
|
return {
|
|
21859
21908
|
...e,
|
|
21860
21909
|
i: t,
|
|
@@ -21864,20 +21913,20 @@ var Ks = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21864
21913
|
col: e.color ?? c
|
|
21865
21914
|
};
|
|
21866
21915
|
}), me = B == null ? null : e[B], he = t.map((e, t) => {
|
|
21867
|
-
let n =
|
|
21916
|
+
let n = Gs(e.from.lat, e.from.lng), r = Gs(e.to.lat, e.to.lng), i = "", a = !1;
|
|
21868
21917
|
for (let e = 0; e <= 40; e++) {
|
|
21869
|
-
let t = e / 40, o =
|
|
21918
|
+
let t = e / 40, o = qs(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = Ks(o, A.current.lng, A.current.lat), l = se([
|
|
21870
21919
|
o[0] * s,
|
|
21871
21920
|
o[1] * s,
|
|
21872
21921
|
o[2] * s
|
|
21873
21922
|
]);
|
|
21874
21923
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
21875
21924
|
}
|
|
21876
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
21925
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = qs(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = Ks(s, A.current.lng, A.current.lat), d = se([
|
|
21877
21926
|
s[0] * l,
|
|
21878
21927
|
s[1] * l,
|
|
21879
21928
|
s[2] * l
|
|
21880
|
-
]), f = me != null && (
|
|
21929
|
+
]), f = me != null && (Js(e.from, me) || Js(e.to, me));
|
|
21881
21930
|
return {
|
|
21882
21931
|
d: i,
|
|
21883
21932
|
col: e.color ?? c,
|
|
@@ -22151,8 +22200,8 @@ var Ks = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
22151
22200
|
});
|
|
22152
22201
|
//#endregion
|
|
22153
22202
|
//#region src/SelectTicker.tsx
|
|
22154
|
-
function
|
|
22155
|
-
let i = u(null), a = u(null), s = u(null), c =
|
|
22203
|
+
function Xs({ children: e, speed: t = 28, className: n, ...r }) {
|
|
22204
|
+
let i = u(null), a = u(null), s = u(null), c = Bo(i, 0), l = Bo(s, 0), d = c > 0 && l > c + 1, f = u(0), p = u(null), g = u(!1);
|
|
22156
22205
|
o(() => {
|
|
22157
22206
|
var e, n;
|
|
22158
22207
|
let r = a.current;
|
|
@@ -22213,12 +22262,12 @@ function Js({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
22213
22262
|
}
|
|
22214
22263
|
//#endregion
|
|
22215
22264
|
//#region src/SelectPareto.tsx
|
|
22216
|
-
function
|
|
22265
|
+
function Zs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
22217
22266
|
var a;
|
|
22218
22267
|
let { ref: o, width: c } = Y(t), l = Q(), u = s(), [f, p] = d(null), g = {
|
|
22219
|
-
...
|
|
22268
|
+
...Zo,
|
|
22220
22269
|
right: 44
|
|
22221
|
-
}, _ = [...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 =
|
|
22270
|
+
}, _ = [...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 = Vo(((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);
|
|
22222
22271
|
return /* @__PURE__ */ h("div", {
|
|
22223
22272
|
...i,
|
|
22224
22273
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -22247,7 +22296,7 @@ function Ys({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22247
22296
|
stopOpacity: .55
|
|
22248
22297
|
})]
|
|
22249
22298
|
}) }),
|
|
22250
|
-
|
|
22299
|
+
Ho(w).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
22251
22300
|
x1: g.left,
|
|
22252
22301
|
x2: c - g.right,
|
|
22253
22302
|
y1: O(e),
|
|
@@ -22311,7 +22360,7 @@ function Ys({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22311
22360
|
}, t);
|
|
22312
22361
|
}),
|
|
22313
22362
|
/* @__PURE__ */ m("path", {
|
|
22314
|
-
d:
|
|
22363
|
+
d: Go(j),
|
|
22315
22364
|
fill: "none",
|
|
22316
22365
|
stroke: N,
|
|
22317
22366
|
strokeWidth: 2,
|
|
@@ -22339,7 +22388,7 @@ function Ys({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22339
22388
|
}
|
|
22340
22389
|
//#endregion
|
|
22341
22390
|
//#region src/SelectWaffle.tsx
|
|
22342
|
-
var
|
|
22391
|
+
var Qs = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
22343
22392
|
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) => ({
|
|
22344
22393
|
i: t,
|
|
22345
22394
|
frac: e - u[t]
|
|
@@ -22388,7 +22437,7 @@ var Xs = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
22388
22437
|
});
|
|
22389
22438
|
//#endregion
|
|
22390
22439
|
//#region src/SelectPyramid.tsx
|
|
22391
|
-
function
|
|
22440
|
+
function $s({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
22392
22441
|
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);
|
|
22393
22442
|
return /* @__PURE__ */ h("div", {
|
|
22394
22443
|
...l,
|
|
@@ -22496,7 +22545,7 @@ function Zs({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
22496
22545
|
}
|
|
22497
22546
|
//#endregion
|
|
22498
22547
|
//#region src/SelectBump.tsx
|
|
22499
|
-
function
|
|
22548
|
+
function ec({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
22500
22549
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
22501
22550
|
top: 16,
|
|
22502
22551
|
right: 78,
|
|
@@ -22533,7 +22582,7 @@ function Qs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
22533
22582
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
22534
22583
|
children: [
|
|
22535
22584
|
/* @__PURE__ */ m("path", {
|
|
22536
|
-
d:
|
|
22585
|
+
d: Go(a),
|
|
22537
22586
|
fill: "none",
|
|
22538
22587
|
stroke: i,
|
|
22539
22588
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -22581,7 +22630,7 @@ function Qs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
22581
22630
|
}
|
|
22582
22631
|
//#endregion
|
|
22583
22632
|
//#region src/SelectParallel.tsx
|
|
22584
|
-
function
|
|
22633
|
+
function tc({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
22585
22634
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
22586
22635
|
top: 30,
|
|
22587
22636
|
right: 28,
|
|
@@ -22673,25 +22722,25 @@ function $s({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
22673
22722
|
}
|
|
22674
22723
|
//#endregion
|
|
22675
22724
|
//#region src/SelectIcicle.tsx
|
|
22676
|
-
function
|
|
22677
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
22725
|
+
function nc(e) {
|
|
22726
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + nc(t), 0) : e.value ?? 0;
|
|
22678
22727
|
}
|
|
22679
|
-
function
|
|
22680
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
22728
|
+
function rc(e, t = 0) {
|
|
22729
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => rc(e, t + 1)));
|
|
22681
22730
|
}
|
|
22682
|
-
function
|
|
22683
|
-
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u =
|
|
22731
|
+
function ic({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
22732
|
+
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u = rc(e), f = t / (u + 1), p = [], g = (e, t, n, r, i) => {
|
|
22684
22733
|
if (p.push({
|
|
22685
22734
|
node: e,
|
|
22686
22735
|
x0: t,
|
|
22687
22736
|
x1: n,
|
|
22688
22737
|
depth: r,
|
|
22689
22738
|
color: e.color ?? X(i),
|
|
22690
|
-
value:
|
|
22739
|
+
value: nc(e)
|
|
22691
22740
|
}), e.children && e.children.length) {
|
|
22692
|
-
let a = e.children.reduce((e, t) => e +
|
|
22741
|
+
let a = e.children.reduce((e, t) => e + nc(t), 0) || 1, o = t;
|
|
22693
22742
|
e.children.forEach((e, s) => {
|
|
22694
|
-
let c = (n - t) *
|
|
22743
|
+
let c = (n - t) * nc(e) / a;
|
|
22695
22744
|
g(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
22696
22745
|
});
|
|
22697
22746
|
}
|
|
@@ -22752,7 +22801,7 @@ function nc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22752
22801
|
}
|
|
22753
22802
|
//#endregion
|
|
22754
22803
|
//#region src/SelectTree.tsx
|
|
22755
|
-
function
|
|
22804
|
+
function ac({ data: e, height: t = 260, className: n, ...r }) {
|
|
22756
22805
|
let { ref: i, width: a } = Y(t), o = Q(), [s, c] = d(null), l = {
|
|
22757
22806
|
top: 14,
|
|
22758
22807
|
right: 96,
|
|
@@ -22830,7 +22879,7 @@ function rc({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
22830
22879
|
}
|
|
22831
22880
|
//#endregion
|
|
22832
22881
|
//#region src/SelectVenn.tsx
|
|
22833
|
-
var
|
|
22882
|
+
var oc = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
22834
22883
|
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]] : [
|
|
22835
22884
|
[o, s - l * .5],
|
|
22836
22885
|
[o - l * .5, s + l * .36],
|
|
@@ -22895,7 +22944,7 @@ var ic = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
22895
22944
|
}, t))
|
|
22896
22945
|
})]
|
|
22897
22946
|
});
|
|
22898
|
-
}),
|
|
22947
|
+
}), sc = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
22899
22948
|
let o = Q(), [s, c] = d(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
22900
22949
|
d: e,
|
|
22901
22950
|
i: t,
|
|
@@ -22998,7 +23047,7 @@ var ic = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
22998
23047
|
});
|
|
22999
23048
|
//#endregion
|
|
23000
23049
|
//#region src/SelectNetwork.tsx
|
|
23001
|
-
function
|
|
23050
|
+
function cc({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
23002
23051
|
let { ref: o, width: s } = Y(n), c = Q(), [u, f] = d(null), p = l(() => {
|
|
23003
23052
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
23004
23053
|
if (!a) return o;
|
|
@@ -23112,14 +23161,14 @@ function oc({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
23112
23161
|
}
|
|
23113
23162
|
//#endregion
|
|
23114
23163
|
//#region src/SelectSearchMenu.tsx
|
|
23115
|
-
function
|
|
23164
|
+
function lc({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", children: o }) {
|
|
23116
23165
|
return /* @__PURE__ */ h("div", {
|
|
23117
23166
|
className: "select-combobox__panel select-searchmenu",
|
|
23118
23167
|
style: { width: a },
|
|
23119
23168
|
children: [
|
|
23120
23169
|
/* @__PURE__ */ m("div", {
|
|
23121
23170
|
className: "select-combobox__search",
|
|
23122
|
-
children: /* @__PURE__ */ m(
|
|
23171
|
+
children: /* @__PURE__ */ m(Ni, {
|
|
23123
23172
|
value: e,
|
|
23124
23173
|
onChange: t,
|
|
23125
23174
|
placeholder: n
|
|
@@ -23129,7 +23178,7 @@ function sc({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
23129
23178
|
className: "select-combobox__empty",
|
|
23130
23179
|
role: "status",
|
|
23131
23180
|
children: r
|
|
23132
|
-
}) : /* @__PURE__ */ m(
|
|
23181
|
+
}) : /* @__PURE__ */ m(uc, { children: o }),
|
|
23133
23182
|
i != null && i !== !1 ? /* @__PURE__ */ m("div", {
|
|
23134
23183
|
className: "select-searchmenu__footer",
|
|
23135
23184
|
children: i
|
|
@@ -23137,7 +23186,7 @@ function sc({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
23137
23186
|
]
|
|
23138
23187
|
});
|
|
23139
23188
|
}
|
|
23140
|
-
function
|
|
23189
|
+
function uc({ children: e }) {
|
|
23141
23190
|
let t = an({
|
|
23142
23191
|
selector: ".select-combobox__option",
|
|
23143
23192
|
y: 6,
|
|
@@ -23151,7 +23200,7 @@ function cc({ children: e }) {
|
|
|
23151
23200
|
children: e
|
|
23152
23201
|
});
|
|
23153
23202
|
}
|
|
23154
|
-
function
|
|
23203
|
+
function dc({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSelect: i }) {
|
|
23155
23204
|
return /* @__PURE__ */ h("button", {
|
|
23156
23205
|
type: "button",
|
|
23157
23206
|
role: "option",
|
|
@@ -23177,7 +23226,7 @@ function lc({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSele
|
|
|
23177
23226
|
}
|
|
23178
23227
|
//#endregion
|
|
23179
23228
|
//#region src/SelectThemeSwitcher.tsx
|
|
23180
|
-
var
|
|
23229
|
+
var fc = [
|
|
23181
23230
|
{
|
|
23182
23231
|
value: "light",
|
|
23183
23232
|
label: "Claro",
|
|
@@ -23194,15 +23243,15 @@ var uc = [
|
|
|
23194
23243
|
icon: /* @__PURE__ */ m(ke, {})
|
|
23195
23244
|
}
|
|
23196
23245
|
];
|
|
23197
|
-
function
|
|
23246
|
+
function pc(e) {
|
|
23198
23247
|
if (e === "system") {
|
|
23199
23248
|
var t, n;
|
|
23200
23249
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
23201
23250
|
}
|
|
23202
23251
|
return e;
|
|
23203
23252
|
}
|
|
23204
|
-
function
|
|
23205
|
-
let [i, a] = d(!1), s = u(null), c =
|
|
23253
|
+
function mc({ value: e, onChange: t, className: n, ...r }) {
|
|
23254
|
+
let [i, a] = d(!1), s = u(null), c = fc.find((t) => t.value === e) ?? fc[2];
|
|
23206
23255
|
return o(() => {
|
|
23207
23256
|
if (!i) return;
|
|
23208
23257
|
let e = (e) => {
|
|
@@ -23213,7 +23262,7 @@ function fc({ value: e, onChange: t, className: n, ...r }) {
|
|
|
23213
23262
|
...r,
|
|
23214
23263
|
className: `select-themeswitcher${n ? " " + n : ""}`,
|
|
23215
23264
|
ref: s,
|
|
23216
|
-
children: [/* @__PURE__ */ m(
|
|
23265
|
+
children: [/* @__PURE__ */ m(na, {
|
|
23217
23266
|
active: i,
|
|
23218
23267
|
onClick: () => a((e) => !e),
|
|
23219
23268
|
children: /* @__PURE__ */ h("span", {
|
|
@@ -23222,7 +23271,7 @@ function fc({ value: e, onChange: t, className: n, ...r }) {
|
|
|
23222
23271
|
})
|
|
23223
23272
|
}), i && /* @__PURE__ */ m("div", {
|
|
23224
23273
|
className: "select-themeswitcher__popover",
|
|
23225
|
-
children: /* @__PURE__ */ m(
|
|
23274
|
+
children: /* @__PURE__ */ m(Zi, { children: fc.map((n) => /* @__PURE__ */ m(Qi, {
|
|
23226
23275
|
icon: n.icon,
|
|
23227
23276
|
active: n.value === e,
|
|
23228
23277
|
trailing: n.value === e ? /* @__PURE__ */ m(Ve, {}) : null,
|
|
@@ -23236,8 +23285,8 @@ function fc({ value: e, onChange: t, className: n, ...r }) {
|
|
|
23236
23285
|
}
|
|
23237
23286
|
//#endregion
|
|
23238
23287
|
//#region src/SelectDetail.tsx
|
|
23239
|
-
var
|
|
23240
|
-
function
|
|
23288
|
+
var hc = n(!1);
|
|
23289
|
+
function gc({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
23241
23290
|
let r = an({
|
|
23242
23291
|
selector: ".select-detail",
|
|
23243
23292
|
y: 8,
|
|
@@ -23245,7 +23294,7 @@ function mc({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
23245
23294
|
stagger: .05,
|
|
23246
23295
|
scroll: !0
|
|
23247
23296
|
});
|
|
23248
|
-
return /* @__PURE__ */ m(
|
|
23297
|
+
return /* @__PURE__ */ m(hc.Provider, {
|
|
23249
23298
|
value: n,
|
|
23250
23299
|
children: /* @__PURE__ */ m("div", {
|
|
23251
23300
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}`,
|
|
@@ -23254,8 +23303,8 @@ function mc({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
23254
23303
|
})
|
|
23255
23304
|
});
|
|
23256
23305
|
}
|
|
23257
|
-
var
|
|
23258
|
-
let l = a(
|
|
23306
|
+
var _c = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
23307
|
+
let l = a(hc), u = i ?? l;
|
|
23259
23308
|
return /* @__PURE__ */ h("div", {
|
|
23260
23309
|
ref: c,
|
|
23261
23310
|
...s,
|
|
@@ -23275,7 +23324,7 @@ var hc = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
23275
23324
|
})
|
|
23276
23325
|
]
|
|
23277
23326
|
});
|
|
23278
|
-
}),
|
|
23327
|
+
}), vc = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
|
|
23279
23328
|
let s = r === "vertical";
|
|
23280
23329
|
return /* @__PURE__ */ m("ol", {
|
|
23281
23330
|
ref: o,
|
|
@@ -23314,7 +23363,7 @@ var hc = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
23314
23363
|
});
|
|
23315
23364
|
//#endregion
|
|
23316
23365
|
//#region src/SelectSetupGuide.tsx
|
|
23317
|
-
function
|
|
23366
|
+
function yc({ status: e }) {
|
|
23318
23367
|
return /* @__PURE__ */ m("span", {
|
|
23319
23368
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
23320
23369
|
"aria-hidden": "true",
|
|
@@ -23333,13 +23382,13 @@ function _c({ status: e }) {
|
|
|
23333
23382
|
})
|
|
23334
23383
|
});
|
|
23335
23384
|
}
|
|
23336
|
-
var
|
|
23385
|
+
var bc = {
|
|
23337
23386
|
done: "feito",
|
|
23338
23387
|
todo: "a fazer",
|
|
23339
23388
|
next: "próximo passo",
|
|
23340
23389
|
skipped: "pulado",
|
|
23341
23390
|
waiting: "aguardando"
|
|
23342
|
-
},
|
|
23391
|
+
}, xc = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
|
|
23343
23392
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0;
|
|
23344
23393
|
return /* @__PURE__ */ h("section", {
|
|
23345
23394
|
ref: u,
|
|
@@ -23402,14 +23451,14 @@ var vc = {
|
|
|
23402
23451
|
children: e.steps.map((e) => /* @__PURE__ */ h("li", {
|
|
23403
23452
|
className: `select-setupguide__step is-${e.status}`,
|
|
23404
23453
|
children: [
|
|
23405
|
-
/* @__PURE__ */ m(
|
|
23454
|
+
/* @__PURE__ */ m(yc, { status: e.status }),
|
|
23406
23455
|
/* @__PURE__ */ h("span", {
|
|
23407
23456
|
className: "select-setupguide__text",
|
|
23408
23457
|
children: [/* @__PURE__ */ h("span", {
|
|
23409
23458
|
className: "select-setupguide__steptitle",
|
|
23410
23459
|
children: [e.title, /* @__PURE__ */ h("span", {
|
|
23411
23460
|
className: "select-setupguide__sr",
|
|
23412
|
-
children: [" — ",
|
|
23461
|
+
children: [" — ", bc[e.status]]
|
|
23413
23462
|
})]
|
|
23414
23463
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
23415
23464
|
className: "select-setupguide__stepdesc",
|
|
@@ -23428,7 +23477,7 @@ var vc = {
|
|
|
23428
23477
|
})]
|
|
23429
23478
|
});
|
|
23430
23479
|
});
|
|
23431
|
-
function
|
|
23480
|
+
function Sc({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
23432
23481
|
return /* @__PURE__ */ h("div", {
|
|
23433
23482
|
className: "select-setupnext",
|
|
23434
23483
|
children: [
|
|
@@ -23453,37 +23502,37 @@ function bc({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
23453
23502
|
}
|
|
23454
23503
|
//#endregion
|
|
23455
23504
|
//#region src/SelectTour.tsx
|
|
23456
|
-
var
|
|
23457
|
-
function
|
|
23505
|
+
var Cc = 6, wc = 12;
|
|
23506
|
+
function Tc(e) {
|
|
23458
23507
|
let t = document.querySelector(e);
|
|
23459
23508
|
if (!t) return null;
|
|
23460
23509
|
let n = t.getBoundingClientRect();
|
|
23461
23510
|
return n.width === 0 && n.height === 0 ? null : {
|
|
23462
|
-
top: n.top -
|
|
23463
|
-
left: n.left -
|
|
23511
|
+
top: n.top - Cc,
|
|
23512
|
+
left: n.left - Cc,
|
|
23464
23513
|
width: n.width + 12,
|
|
23465
23514
|
height: n.height + 12
|
|
23466
23515
|
};
|
|
23467
23516
|
}
|
|
23468
|
-
function
|
|
23517
|
+
function Ec(e) {
|
|
23469
23518
|
let t = document.querySelector(e);
|
|
23470
23519
|
if (!t) return !1;
|
|
23471
23520
|
let n = t.getBoundingClientRect();
|
|
23472
23521
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
23473
23522
|
}
|
|
23474
|
-
function
|
|
23475
|
-
let s = l(() => e ? t.filter((e) =>
|
|
23523
|
+
function Dc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
23524
|
+
let s = l(() => e ? t.filter((e) => Ec(e.target)) : [], [e]), [f, p] = d(0), [_, v] = d(null), [y, b] = d(null), x = u(null), S = u(null);
|
|
23476
23525
|
o(() => {
|
|
23477
23526
|
e && p(0);
|
|
23478
23527
|
}, [e]);
|
|
23479
23528
|
let C = s[f], w = f === s.length - 1, T = i(() => {
|
|
23480
23529
|
if (!C) return;
|
|
23481
|
-
let e =
|
|
23530
|
+
let e = Tc(C.target);
|
|
23482
23531
|
v(e);
|
|
23483
23532
|
let t = x.current;
|
|
23484
23533
|
if (!e || !t) return;
|
|
23485
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
23486
|
-
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height +
|
|
23534
|
+
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + wc, s = e.top;
|
|
23535
|
+
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + wc, s + r > a - 8 && (s = e.top - r - wc)), s = Math.min(Math.max(8, s), a - r - 8), b({
|
|
23487
23536
|
top: s,
|
|
23488
23537
|
left: o
|
|
23489
23538
|
});
|
|
@@ -23585,7 +23634,7 @@ function Tc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
23585
23634
|
}
|
|
23586
23635
|
//#endregion
|
|
23587
23636
|
//#region src/SelectPlanCard.tsx
|
|
23588
|
-
var
|
|
23637
|
+
var Oc = 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) {
|
|
23589
23638
|
return /* @__PURE__ */ h("div", {
|
|
23590
23639
|
ref: d,
|
|
23591
23640
|
...u,
|
|
@@ -23640,7 +23689,7 @@ var Ec = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
23640
23689
|
})]
|
|
23641
23690
|
})]
|
|
23642
23691
|
});
|
|
23643
|
-
}),
|
|
23692
|
+
}), kc = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, className: a, ...o }, s) {
|
|
23644
23693
|
return /* @__PURE__ */ h("div", {
|
|
23645
23694
|
ref: s,
|
|
23646
23695
|
...o,
|
|
@@ -23676,7 +23725,7 @@ var Ec = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
23676
23725
|
]
|
|
23677
23726
|
});
|
|
23678
23727
|
});
|
|
23679
|
-
function
|
|
23728
|
+
function Ac({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClick: a }) {
|
|
23680
23729
|
let o = /* @__PURE__ */ h(p, { children: [
|
|
23681
23730
|
e && /* @__PURE__ */ m("span", {
|
|
23682
23731
|
className: "select-listrow__media",
|
|
@@ -23710,7 +23759,7 @@ function Oc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClic
|
|
|
23710
23759
|
}
|
|
23711
23760
|
//#endregion
|
|
23712
23761
|
//#region src/SelectThumbnail.tsx
|
|
23713
|
-
var
|
|
23762
|
+
var jc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a) {
|
|
23714
23763
|
let [s, c] = d(!1);
|
|
23715
23764
|
return o(() => c(!1), [e]), /* @__PURE__ */ m("span", {
|
|
23716
23765
|
ref: a,
|
|
@@ -23735,8 +23784,8 @@ var kc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a
|
|
|
23735
23784
|
});
|
|
23736
23785
|
//#endregion
|
|
23737
23786
|
//#region src/SelectImageZoomModal.tsx
|
|
23738
|
-
function
|
|
23739
|
-
return /* @__PURE__ */ m(
|
|
23787
|
+
function Mc({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
23788
|
+
return /* @__PURE__ */ m(fa, {
|
|
23740
23789
|
open: e,
|
|
23741
23790
|
onClose: t,
|
|
23742
23791
|
title: i,
|
|
@@ -23754,7 +23803,7 @@ function Ac({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
23754
23803
|
}
|
|
23755
23804
|
//#endregion
|
|
23756
23805
|
//#region src/SelectZoomThumbnail.tsx
|
|
23757
|
-
function
|
|
23806
|
+
function Nc({ src: e, alt: t = "", size: n = 40, title: r }) {
|
|
23758
23807
|
let [i, a] = d(!1);
|
|
23759
23808
|
return e ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
23760
23809
|
type: "button",
|
|
@@ -23767,25 +23816,25 @@ function jc({ src: e, alt: t = "", size: n = 40, title: r }) {
|
|
|
23767
23816
|
cursor: "zoom-in",
|
|
23768
23817
|
display: "inline-flex"
|
|
23769
23818
|
},
|
|
23770
|
-
children: /* @__PURE__ */ m(
|
|
23819
|
+
children: /* @__PURE__ */ m(jc, {
|
|
23771
23820
|
src: e,
|
|
23772
23821
|
size: n,
|
|
23773
23822
|
alt: t
|
|
23774
23823
|
})
|
|
23775
|
-
}), i && /* @__PURE__ */ m(
|
|
23824
|
+
}), i && /* @__PURE__ */ m(Mc, {
|
|
23776
23825
|
open: !0,
|
|
23777
23826
|
onClose: () => a(!1),
|
|
23778
23827
|
src: e,
|
|
23779
23828
|
alt: t,
|
|
23780
23829
|
title: r ?? t
|
|
23781
|
-
})] }) : /* @__PURE__ */ m(
|
|
23830
|
+
})] }) : /* @__PURE__ */ m(jc, {
|
|
23782
23831
|
size: n,
|
|
23783
23832
|
alt: t
|
|
23784
23833
|
});
|
|
23785
23834
|
}
|
|
23786
23835
|
//#endregion
|
|
23787
23836
|
//#region src/SelectMediaCell.tsx
|
|
23788
|
-
var
|
|
23837
|
+
var Pc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
23789
23838
|
return /* @__PURE__ */ h("span", {
|
|
23790
23839
|
ref: a,
|
|
23791
23840
|
...i,
|
|
@@ -23807,14 +23856,14 @@ var Mc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
23807
23856
|
});
|
|
23808
23857
|
//#endregion
|
|
23809
23858
|
//#region src/SelectOfflineModal.tsx
|
|
23810
|
-
function
|
|
23859
|
+
function Fc() {
|
|
23811
23860
|
let [e, t] = d(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
23812
23861
|
return o(() => {
|
|
23813
23862
|
let e = () => t(!1), n = () => t(!0);
|
|
23814
23863
|
return window.addEventListener("online", e), window.addEventListener("offline", n), () => {
|
|
23815
23864
|
window.removeEventListener("online", e), window.removeEventListener("offline", n);
|
|
23816
23865
|
};
|
|
23817
|
-
}, []), /* @__PURE__ */ m(
|
|
23866
|
+
}, []), /* @__PURE__ */ m(fa, {
|
|
23818
23867
|
open: e,
|
|
23819
23868
|
onClose: () => {},
|
|
23820
23869
|
showClose: !1,
|
|
@@ -23830,7 +23879,7 @@ function Nc() {
|
|
|
23830
23879
|
}
|
|
23831
23880
|
//#endregion
|
|
23832
23881
|
//#region src/SelectKeyValueEditor.tsx
|
|
23833
|
-
function
|
|
23882
|
+
function Ic(e) {
|
|
23834
23883
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
23835
23884
|
name: String(e.name ?? e.key ?? ""),
|
|
23836
23885
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -23839,8 +23888,8 @@ function Pc(e) {
|
|
|
23839
23888
|
value: t == null ? "" : String(t)
|
|
23840
23889
|
})) : [];
|
|
23841
23890
|
}
|
|
23842
|
-
var
|
|
23843
|
-
let d =
|
|
23891
|
+
var Lc = 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) {
|
|
23892
|
+
let d = Ic(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
23844
23893
|
...t,
|
|
23845
23894
|
...n
|
|
23846
23895
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), g = () => t([...d, {
|
|
@@ -23904,7 +23953,7 @@ var Fc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23904
23953
|
})
|
|
23905
23954
|
]
|
|
23906
23955
|
});
|
|
23907
|
-
}),
|
|
23956
|
+
}), Rc = (e) => String(e).padStart(2, "0"), zc = {
|
|
23908
23957
|
"en-US": {
|
|
23909
23958
|
weekdays: [
|
|
23910
23959
|
"Su",
|
|
@@ -23963,34 +24012,34 @@ var Fc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23963
24012
|
to: "Até",
|
|
23964
24013
|
cancel: "Cancelar",
|
|
23965
24014
|
apply: "Aplicar",
|
|
23966
|
-
formatDate: (e) => `${
|
|
24015
|
+
formatDate: (e) => `${Rc(e.getDate())} / ${Rc(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
23967
24016
|
}
|
|
23968
|
-
},
|
|
24017
|
+
}, Bc = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Vc = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Hc = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Uc = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Wc = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Gc = (e) => {
|
|
23969
24018
|
let t = /* @__PURE__ */ new Date();
|
|
23970
24019
|
return {
|
|
23971
24020
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
23972
24021
|
to: t
|
|
23973
24022
|
};
|
|
23974
|
-
},
|
|
24023
|
+
}, Kc = [
|
|
23975
24024
|
{
|
|
23976
24025
|
id: "15m",
|
|
23977
24026
|
label: "Last 15 minutes",
|
|
23978
|
-
range: () =>
|
|
24027
|
+
range: () => Gc(15)
|
|
23979
24028
|
},
|
|
23980
24029
|
{
|
|
23981
24030
|
id: "1h",
|
|
23982
24031
|
label: "Last 1 hour",
|
|
23983
|
-
range: () =>
|
|
24032
|
+
range: () => Gc(60)
|
|
23984
24033
|
},
|
|
23985
24034
|
{
|
|
23986
24035
|
id: "3h",
|
|
23987
24036
|
label: "Last 3 hours",
|
|
23988
|
-
range: () =>
|
|
24037
|
+
range: () => Gc(180)
|
|
23989
24038
|
},
|
|
23990
24039
|
{
|
|
23991
24040
|
id: "24h",
|
|
23992
24041
|
label: "Last 24 hours",
|
|
23993
|
-
range: () =>
|
|
24042
|
+
range: () => Gc(1440)
|
|
23994
24043
|
},
|
|
23995
24044
|
{
|
|
23996
24045
|
id: "3d",
|
|
@@ -24006,78 +24055,78 @@ var Fc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
24006
24055
|
id: "all",
|
|
24007
24056
|
label: "All",
|
|
24008
24057
|
range: () => ({
|
|
24009
|
-
from:
|
|
24010
|
-
to:
|
|
24058
|
+
from: Bc(/* @__PURE__ */ new Date()),
|
|
24059
|
+
to: Bc(/* @__PURE__ */ new Date())
|
|
24011
24060
|
})
|
|
24012
24061
|
}
|
|
24013
|
-
],
|
|
24014
|
-
let t =
|
|
24062
|
+
], qc = (e) => {
|
|
24063
|
+
let t = Bc(/* @__PURE__ */ new Date());
|
|
24015
24064
|
return {
|
|
24016
|
-
from:
|
|
24065
|
+
from: Hc(t, -e),
|
|
24017
24066
|
to: t
|
|
24018
24067
|
};
|
|
24019
|
-
},
|
|
24020
|
-
let t = Bc(
|
|
24068
|
+
}, Jc = (e) => {
|
|
24069
|
+
let t = Hc(Bc(/* @__PURE__ */ new Date()), -e);
|
|
24021
24070
|
return {
|
|
24022
24071
|
from: t,
|
|
24023
24072
|
to: t
|
|
24024
24073
|
};
|
|
24025
|
-
},
|
|
24074
|
+
}, Yc = [
|
|
24026
24075
|
{
|
|
24027
24076
|
id: "today",
|
|
24028
24077
|
label: "Hoje",
|
|
24029
|
-
range: () =>
|
|
24078
|
+
range: () => qc(0)
|
|
24030
24079
|
},
|
|
24031
24080
|
{
|
|
24032
24081
|
id: "yesterday",
|
|
24033
24082
|
label: "Ontem",
|
|
24034
|
-
range: () =>
|
|
24083
|
+
range: () => Jc(1)
|
|
24035
24084
|
},
|
|
24036
24085
|
{
|
|
24037
24086
|
id: "7d",
|
|
24038
24087
|
label: "Últimos 7 dias",
|
|
24039
|
-
range: () =>
|
|
24088
|
+
range: () => qc(6)
|
|
24040
24089
|
},
|
|
24041
24090
|
{
|
|
24042
24091
|
id: "10d",
|
|
24043
24092
|
label: "Últimos 10 dias",
|
|
24044
|
-
range: () =>
|
|
24093
|
+
range: () => qc(9)
|
|
24045
24094
|
},
|
|
24046
24095
|
{
|
|
24047
24096
|
id: "15d",
|
|
24048
24097
|
label: "Últimos 15 dias",
|
|
24049
|
-
range: () =>
|
|
24098
|
+
range: () => qc(14)
|
|
24050
24099
|
},
|
|
24051
24100
|
{
|
|
24052
24101
|
id: "20d",
|
|
24053
24102
|
label: "Últimos 20 dias",
|
|
24054
|
-
range: () =>
|
|
24103
|
+
range: () => qc(19)
|
|
24055
24104
|
},
|
|
24056
24105
|
{
|
|
24057
24106
|
id: "30d",
|
|
24058
24107
|
label: "Últimos 30 dias",
|
|
24059
|
-
range: () =>
|
|
24108
|
+
range: () => qc(29)
|
|
24060
24109
|
},
|
|
24061
24110
|
{
|
|
24062
24111
|
id: "90d",
|
|
24063
24112
|
label: "Últimos 90 dias",
|
|
24064
|
-
range: () =>
|
|
24113
|
+
range: () => qc(89)
|
|
24065
24114
|
}
|
|
24066
24115
|
];
|
|
24067
|
-
function
|
|
24116
|
+
function Xc(e) {
|
|
24068
24117
|
if (!e) return "—";
|
|
24069
24118
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
24070
24119
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
24071
24120
|
}
|
|
24072
|
-
var
|
|
24073
|
-
let p =
|
|
24121
|
+
var Zc = r(function({ value: e, presets: t = Kc, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, f) {
|
|
24122
|
+
let p = zc[a], g = Bc(/* @__PURE__ */ new Date()), _ = s ? Bc(s) : null, [v, y] = d(e ?? {
|
|
24074
24123
|
from: g,
|
|
24075
24124
|
to: g
|
|
24076
|
-
}), [b, x] = d(
|
|
24125
|
+
}), [b, x] = d(Vc((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = d(null), w = Hc(Vc(b), -Vc(b).getDay()), T = Array.from({ length: 42 }, (e, t) => Hc(w, t)), E = (e) => _ ? Bc(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ m("span", {
|
|
24077
24126
|
className: "select-datepicker__placeholder",
|
|
24078
24127
|
children: "— / — / ——"
|
|
24079
24128
|
}), O = (e) => {
|
|
24080
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
24129
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < Bc(t.from) ? {
|
|
24081
24130
|
from: e,
|
|
24082
24131
|
to: null
|
|
24083
24132
|
} : {
|
|
@@ -24087,7 +24136,7 @@ var Yc = r(function({ value: e, presets: t = Wc, onApply: n, onCancel: r, accent
|
|
|
24087
24136
|
}, k = (e) => {
|
|
24088
24137
|
if (e.disabled || !e.range) return;
|
|
24089
24138
|
let t = e.range();
|
|
24090
|
-
y(t), C(e.id), t.from && x(
|
|
24139
|
+
y(t), C(e.id), t.from && x(Vc(t.from));
|
|
24091
24140
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
24092
24141
|
return /* @__PURE__ */ m("div", {
|
|
24093
24142
|
ref: f,
|
|
@@ -24133,7 +24182,7 @@ var Yc = r(function({ value: e, presets: t = Wc, onApply: n, onCancel: r, accent
|
|
|
24133
24182
|
}),
|
|
24134
24183
|
o && /* @__PURE__ */ m("span", {
|
|
24135
24184
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
24136
|
-
children:
|
|
24185
|
+
children: Xc(v[e])
|
|
24137
24186
|
})
|
|
24138
24187
|
]
|
|
24139
24188
|
}, e))
|
|
@@ -24145,7 +24194,7 @@ var Yc = r(function({ value: e, presets: t = Wc, onApply: n, onCancel: r, accent
|
|
|
24145
24194
|
type: "button",
|
|
24146
24195
|
className: "select-datepicker__nav",
|
|
24147
24196
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
24148
|
-
onClick: () => x((e) =>
|
|
24197
|
+
onClick: () => x((e) => Uc(e, -1)),
|
|
24149
24198
|
children: /* @__PURE__ */ m(oe, {})
|
|
24150
24199
|
}),
|
|
24151
24200
|
/* @__PURE__ */ h("span", {
|
|
@@ -24160,7 +24209,7 @@ var Yc = r(function({ value: e, presets: t = Wc, onApply: n, onCancel: r, accent
|
|
|
24160
24209
|
type: "button",
|
|
24161
24210
|
className: "select-datepicker__nav",
|
|
24162
24211
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
24163
|
-
onClick: () => x((e) =>
|
|
24212
|
+
onClick: () => x((e) => Uc(e, 1)),
|
|
24164
24213
|
children: /* @__PURE__ */ m(ae, {})
|
|
24165
24214
|
})
|
|
24166
24215
|
]
|
|
@@ -24172,7 +24221,7 @@ var Yc = r(function({ value: e, presets: t = Wc, onApply: n, onCancel: r, accent
|
|
|
24172
24221
|
className: "select-datepicker__weekday",
|
|
24173
24222
|
children: e
|
|
24174
24223
|
}, t)), T.map((e) => {
|
|
24175
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
24224
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && Wc(e, v.from), i = !!v.to && Wc(e, v.to), a = r || i, o = !!v.from && !!v.to && !Wc(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > Bc(v.from) && e < Bc(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" : "") + (Wc(e, g) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
24176
24225
|
return /* @__PURE__ */ m("div", {
|
|
24177
24226
|
className: s,
|
|
24178
24227
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -24203,17 +24252,17 @@ var Yc = r(function({ value: e, presets: t = Wc, onApply: n, onCancel: r, accent
|
|
|
24203
24252
|
})]
|
|
24204
24253
|
})
|
|
24205
24254
|
});
|
|
24206
|
-
}),
|
|
24207
|
-
function
|
|
24255
|
+
}), Qc = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), $c = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), el = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
24256
|
+
function tl(e, t) {
|
|
24208
24257
|
for (let r of t) {
|
|
24209
24258
|
var n;
|
|
24210
24259
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
24211
|
-
if (t != null && t.from && t != null && t.to &&
|
|
24260
|
+
if (t != null && t.from && t != null && t.to && $c(t.from, e.start) && $c(t.to, e.end)) return r.label;
|
|
24212
24261
|
}
|
|
24213
|
-
return
|
|
24262
|
+
return $c(e.start, e.end) ? el(e.start) : `${el(e.start)} – ${el(e.end)}`;
|
|
24214
24263
|
}
|
|
24215
|
-
function
|
|
24216
|
-
let [c, l] = d(!1), u = r === null ? null : r ??
|
|
24264
|
+
function nl({ value: e, onChange: t, presets: n = Yc, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
24265
|
+
let [c, l] = d(!1), u = r === null ? null : r ?? Qc(/* @__PURE__ */ new Date());
|
|
24217
24266
|
return /* @__PURE__ */ m(fn, {
|
|
24218
24267
|
active: c,
|
|
24219
24268
|
onClose: () => l(!1),
|
|
@@ -24227,9 +24276,9 @@ function el({ value: e, onChange: t, presets: n = qc, maxDate: r, placement: i =
|
|
|
24227
24276
|
icon: /* @__PURE__ */ m(rt, {}),
|
|
24228
24277
|
trailingIcon: /* @__PURE__ */ m(U, {}),
|
|
24229
24278
|
onClick: () => l((e) => !e),
|
|
24230
|
-
children:
|
|
24279
|
+
children: tl(e, n)
|
|
24231
24280
|
}),
|
|
24232
|
-
children: /* @__PURE__ */ m(
|
|
24281
|
+
children: /* @__PURE__ */ m(Zc, {
|
|
24233
24282
|
embedded: !0,
|
|
24234
24283
|
locale: "pt-BR",
|
|
24235
24284
|
showTime: !1,
|
|
@@ -24242,8 +24291,8 @@ function el({ value: e, onChange: t, presets: n = qc, maxDate: r, placement: i =
|
|
|
24242
24291
|
onCancel: () => l(!1),
|
|
24243
24292
|
onApply: (e) => {
|
|
24244
24293
|
e.from && t({
|
|
24245
|
-
start:
|
|
24246
|
-
end:
|
|
24294
|
+
start: Qc(e.from),
|
|
24295
|
+
end: Qc(e.to ?? e.from)
|
|
24247
24296
|
}), l(!1);
|
|
24248
24297
|
}
|
|
24249
24298
|
})
|
|
@@ -24251,7 +24300,7 @@ function el({ value: e, onChange: t, presets: n = qc, maxDate: r, placement: i =
|
|
|
24251
24300
|
}
|
|
24252
24301
|
//#endregion
|
|
24253
24302
|
//#region src/SelectNumberField.tsx
|
|
24254
|
-
var
|
|
24303
|
+
var rl = 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) {
|
|
24255
24304
|
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) => {
|
|
24256
24305
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
24257
24306
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -24325,7 +24374,7 @@ var tl = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
24325
24374
|
});
|
|
24326
24375
|
//#endregion
|
|
24327
24376
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
24328
|
-
function
|
|
24377
|
+
function il({ 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 }) {
|
|
24329
24378
|
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) => {
|
|
24330
24379
|
let i = n + r;
|
|
24331
24380
|
if (i < 0 || i >= e.length) return;
|
|
@@ -24420,7 +24469,7 @@ function nl({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
24420
24469
|
}
|
|
24421
24470
|
//#endregion
|
|
24422
24471
|
//#region src/SelectBuilderLayout.tsx
|
|
24423
|
-
function
|
|
24472
|
+
function al({ 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 }) {
|
|
24424
24473
|
let d = v();
|
|
24425
24474
|
return /* @__PURE__ */ m(li, {
|
|
24426
24475
|
title: e,
|
|
@@ -24460,7 +24509,7 @@ function rl({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24460
24509
|
}
|
|
24461
24510
|
//#endregion
|
|
24462
24511
|
//#region src/SelectBuilderWorkspace.tsx
|
|
24463
|
-
function
|
|
24512
|
+
function ol({ 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" }) {
|
|
24464
24513
|
var w;
|
|
24465
24514
|
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) => {
|
|
24466
24515
|
f === void 0 && D(e), g == null || g(e);
|
|
@@ -24545,7 +24594,7 @@ function il({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24545
24594
|
"aria-label": "Seções de configuração",
|
|
24546
24595
|
children: [_ && /* @__PURE__ */ m("div", {
|
|
24547
24596
|
className: "select-bwork__search",
|
|
24548
|
-
children: /* @__PURE__ */ m(
|
|
24597
|
+
children: /* @__PURE__ */ m(Ni, {
|
|
24549
24598
|
value: O,
|
|
24550
24599
|
onChange: k,
|
|
24551
24600
|
placeholder: "Buscar ajuste…"
|
|
@@ -24565,7 +24614,7 @@ function il({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24565
24614
|
children: [
|
|
24566
24615
|
e.icon && /* @__PURE__ */ m("span", {
|
|
24567
24616
|
className: "select-bwork__navicon",
|
|
24568
|
-
children: /* @__PURE__ */ m(
|
|
24617
|
+
children: /* @__PURE__ */ m(xi, {
|
|
24569
24618
|
size: "1rem",
|
|
24570
24619
|
children: e.icon
|
|
24571
24620
|
})
|
|
@@ -24620,10 +24669,10 @@ function il({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24620
24669
|
}
|
|
24621
24670
|
//#endregion
|
|
24622
24671
|
//#region src/SelectFlowCanvas.tsx
|
|
24623
|
-
var
|
|
24624
|
-
function
|
|
24672
|
+
var sl = (e) => Math.round(e * 100) / 100;
|
|
24673
|
+
function cl({ 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 }) {
|
|
24625
24674
|
let _ = s().replace(/:/g, ""), [v, y] = d(c), b = o ?? v, x = (e) => {
|
|
24626
|
-
let t =
|
|
24675
|
+
let t = sl(Math.min(f, Math.max(u, e)));
|
|
24627
24676
|
o === void 0 && y(t), l == null || l(t);
|
|
24628
24677
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
24629
24678
|
return /* @__PURE__ */ h("div", {
|
|
@@ -24739,7 +24788,7 @@ function ol({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
24739
24788
|
})]
|
|
24740
24789
|
});
|
|
24741
24790
|
}
|
|
24742
|
-
function
|
|
24791
|
+
function ll({ 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 }) {
|
|
24743
24792
|
let x = `${p ? " is-selected" : v ? " is-invalid" : g ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
24744
24793
|
left: e,
|
|
24745
24794
|
top: t,
|
|
@@ -24815,7 +24864,7 @@ function sl({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
24815
24864
|
})]
|
|
24816
24865
|
});
|
|
24817
24866
|
}
|
|
24818
|
-
function
|
|
24867
|
+
function ul({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
|
|
24819
24868
|
return /* @__PURE__ */ h("div", {
|
|
24820
24869
|
className: "select-flowpage",
|
|
24821
24870
|
children: [
|
|
@@ -24877,7 +24926,7 @@ function cl({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
24877
24926
|
}
|
|
24878
24927
|
//#endregion
|
|
24879
24928
|
//#region src/SelectSwitchField.tsx
|
|
24880
|
-
var
|
|
24929
|
+
var dl = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
24881
24930
|
return /* @__PURE__ */ h("div", {
|
|
24882
24931
|
ref: c,
|
|
24883
24932
|
...s,
|
|
@@ -24905,7 +24954,7 @@ var ll = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
24905
24954
|
children: i
|
|
24906
24955
|
})]
|
|
24907
24956
|
});
|
|
24908
|
-
}),
|
|
24957
|
+
}), fl = [
|
|
24909
24958
|
"#212529",
|
|
24910
24959
|
"#495057",
|
|
24911
24960
|
"#868E96",
|
|
@@ -24922,13 +24971,13 @@ var ll = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
24922
24971
|
"#DB2777",
|
|
24923
24972
|
"#9333EA",
|
|
24924
24973
|
"#6D28D9"
|
|
24925
|
-
],
|
|
24926
|
-
function
|
|
24927
|
-
let t =
|
|
24974
|
+
], pl = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
24975
|
+
function ml(e) {
|
|
24976
|
+
let t = pl.exec((e ?? "").trim());
|
|
24928
24977
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
24929
24978
|
}
|
|
24930
|
-
function
|
|
24931
|
-
let t =
|
|
24979
|
+
function hl(e) {
|
|
24980
|
+
let t = ml(e);
|
|
24932
24981
|
if (!t) return 0;
|
|
24933
24982
|
let [n, r, i] = [
|
|
24934
24983
|
1,
|
|
@@ -24937,28 +24986,28 @@ function pl(e) {
|
|
|
24937
24986
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
24938
24987
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
24939
24988
|
}
|
|
24940
|
-
function
|
|
24941
|
-
let [n, r] = [
|
|
24989
|
+
function gl(e, t) {
|
|
24990
|
+
let [n, r] = [hl(e), hl(t)].sort((e, t) => t - e);
|
|
24942
24991
|
return (n + .05) / (r + .05);
|
|
24943
24992
|
}
|
|
24944
|
-
var
|
|
24945
|
-
function
|
|
24993
|
+
var _l = (e) => e.toFixed(1).replace(".", ",");
|
|
24994
|
+
function vl({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: c = fl, disabled: l = !1, allowEmpty: u = !1, contrastWith: f, contrastLabel: g = "o texto", id: _ }) {
|
|
24946
24995
|
let v = s(), y = _ ?? `color-${v}`, [b, x] = d(!1), [S, C] = d(i ?? ""), [w, T] = d(null);
|
|
24947
24996
|
o(() => {
|
|
24948
24997
|
C(i ?? ""), T(null);
|
|
24949
24998
|
}, [i]);
|
|
24950
|
-
let E =
|
|
24999
|
+
let E = ml(i ?? ""), D = (e) => {
|
|
24951
25000
|
if (!e.trim()) {
|
|
24952
25001
|
u ? (T(null), a("")) : C(i ?? "");
|
|
24953
25002
|
return;
|
|
24954
25003
|
}
|
|
24955
|
-
let t =
|
|
25004
|
+
let t = ml(e);
|
|
24956
25005
|
if (!t) {
|
|
24957
25006
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
24958
25007
|
return;
|
|
24959
25008
|
}
|
|
24960
25009
|
T(null), C(t), t !== E && a(t);
|
|
24961
|
-
}, O = f ?
|
|
25010
|
+
}, O = f ? ml(f) : null, k = E && O ? gl(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
|
|
24962
25011
|
return /* @__PURE__ */ h("div", {
|
|
24963
25012
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
24964
25013
|
children: [
|
|
@@ -24990,7 +25039,7 @@ function gl({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
24990
25039
|
role: "group",
|
|
24991
25040
|
"aria-label": "Cores prontas",
|
|
24992
25041
|
children: c.map((e) => {
|
|
24993
|
-
let t =
|
|
25042
|
+
let t = ml(e) ?? e, n = t === E;
|
|
24994
25043
|
return /* @__PURE__ */ m("button", {
|
|
24995
25044
|
type: "button",
|
|
24996
25045
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -25026,7 +25075,7 @@ function gl({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
25026
25075
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
25027
25076
|
value: S,
|
|
25028
25077
|
onChange: (e) => {
|
|
25029
|
-
C(e.target.value), e.target.value.replace("#", "").length === 6 &&
|
|
25078
|
+
C(e.target.value), e.target.value.replace("#", "").length === 6 && ml(e.target.value) && D(e.target.value);
|
|
25030
25079
|
},
|
|
25031
25080
|
onBlur: () => D(S),
|
|
25032
25081
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -25049,21 +25098,31 @@ function gl({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
25049
25098
|
}) : null : /* @__PURE__ */ h("p", {
|
|
25050
25099
|
id: `${y}-hint`,
|
|
25051
25100
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
25052
|
-
children: [k >= 4.5 ? `Contraste com ${g}: ${
|
|
25101
|
+
children: [k >= 4.5 ? `Contraste com ${g}: ${_l(k)}:1 — legível.` : `Contraste com ${g}: ${_l(k)}:1 — difícil de ler. Escolha uma cor ${hl(E) < hl(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ h(p, { children: [" ", n] }) : null]
|
|
25053
25102
|
})
|
|
25054
25103
|
]
|
|
25055
25104
|
});
|
|
25056
25105
|
}
|
|
25057
25106
|
//#endregion
|
|
25058
25107
|
//#region src/SelectProgressBar.tsx
|
|
25059
|
-
var
|
|
25060
|
-
|
|
25108
|
+
var yl = 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) {
|
|
25109
|
+
if (l) return /* @__PURE__ */ h("div", {
|
|
25110
|
+
ref: f,
|
|
25111
|
+
...d,
|
|
25112
|
+
"aria-hidden": "true",
|
|
25113
|
+
className: `select-progress select-progress--${r} is-loading${u ? " " + u : ""}`,
|
|
25114
|
+
children: [/* @__PURE__ */ h("div", {
|
|
25115
|
+
className: "select-progress__head",
|
|
25116
|
+
children: [/* @__PURE__ */ m("span", { className: "select-skeleton select-progress__skellabel" }), /* @__PURE__ */ m("span", { className: "select-skeleton select-progress__skelvalue" })]
|
|
25117
|
+
}), /* @__PURE__ */ m("div", { className: "select-skeleton select-progress__track" })]
|
|
25118
|
+
});
|
|
25119
|
+
let p = t > 0 ? t : 100, g = Math.max(0, Math.min(100, (Number.isFinite(e) ? e : 0) / p * 100)), _ = i != null || a != null;
|
|
25061
25120
|
return /* @__PURE__ */ h("div", {
|
|
25062
|
-
ref:
|
|
25063
|
-
...
|
|
25064
|
-
className: `select-progress select-progress--${n} select-progress--${r}${s ? " is-indeterminate" : ""}${
|
|
25121
|
+
ref: f,
|
|
25122
|
+
...d,
|
|
25123
|
+
className: `select-progress select-progress--${n} select-progress--${r}${s ? " is-indeterminate" : ""}${u ? " " + u : ""}`,
|
|
25065
25124
|
children: [
|
|
25066
|
-
|
|
25125
|
+
_ && /* @__PURE__ */ h("div", {
|
|
25067
25126
|
className: "select-progress__head",
|
|
25068
25127
|
children: [i != null && /* @__PURE__ */ m("span", {
|
|
25069
25128
|
className: "select-progress__label",
|
|
@@ -25077,12 +25136,12 @@ var _l = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
25077
25136
|
className: "select-progress__track",
|
|
25078
25137
|
role: "progressbar",
|
|
25079
25138
|
"aria-valuemin": s ? void 0 : 0,
|
|
25080
|
-
"aria-valuemax": s ? void 0 :
|
|
25081
|
-
"aria-valuenow": s ? void 0 : Math.min(e,
|
|
25139
|
+
"aria-valuemax": s ? void 0 : p,
|
|
25140
|
+
"aria-valuenow": s ? void 0 : Math.min(e, p),
|
|
25082
25141
|
"aria-label": c ?? (typeof i == "string" ? i : void 0),
|
|
25083
25142
|
children: /* @__PURE__ */ m("span", {
|
|
25084
25143
|
className: "select-progress__fill",
|
|
25085
|
-
style: s ? void 0 : { width: `${
|
|
25144
|
+
style: s ? void 0 : { width: `${g}%` }
|
|
25086
25145
|
})
|
|
25087
25146
|
}),
|
|
25088
25147
|
o != null && /* @__PURE__ */ m("p", {
|
|
@@ -25091,14 +25150,14 @@ var _l = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
25091
25150
|
})
|
|
25092
25151
|
]
|
|
25093
25152
|
});
|
|
25094
|
-
}),
|
|
25153
|
+
}), bl = 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) {
|
|
25095
25154
|
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: [
|
|
25096
25155
|
/* @__PURE__ */ h("span", {
|
|
25097
25156
|
className: "select-choicecard__top",
|
|
25098
25157
|
children: [/* @__PURE__ */ m("span", {
|
|
25099
25158
|
className: "select-choicecard__icon",
|
|
25100
25159
|
"aria-hidden": "true",
|
|
25101
|
-
children: /* @__PURE__ */ m(
|
|
25160
|
+
children: /* @__PURE__ */ m(xi, {
|
|
25102
25161
|
size: "1.375rem",
|
|
25103
25162
|
children: e
|
|
25104
25163
|
})
|
|
@@ -25151,25 +25210,48 @@ var _l = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
25151
25210
|
"data-tour": f["data-tour"],
|
|
25152
25211
|
children: b
|
|
25153
25212
|
});
|
|
25154
|
-
})
|
|
25213
|
+
});
|
|
25214
|
+
function xl({ badge: e = !0 }) {
|
|
25215
|
+
return /* @__PURE__ */ h("div", {
|
|
25216
|
+
className: "select-choicecard select-choicecard--skeleton",
|
|
25217
|
+
"aria-hidden": "true",
|
|
25218
|
+
children: [
|
|
25219
|
+
/* @__PURE__ */ h("span", {
|
|
25220
|
+
className: "select-choicecard__top",
|
|
25221
|
+
children: [/* @__PURE__ */ m("span", { className: "select-skeleton select-choicecard__skelicon" }), e && /* @__PURE__ */ m("span", { className: "select-skeleton select-choicecard__skelbadge" })]
|
|
25222
|
+
}),
|
|
25223
|
+
/* @__PURE__ */ m("span", { className: "select-skeleton select-choicecard__skeltitle" }),
|
|
25224
|
+
/* @__PURE__ */ h("span", {
|
|
25225
|
+
className: "select-choicecard__skeldesc",
|
|
25226
|
+
children: [/* @__PURE__ */ m("span", { className: "select-skeleton" }), /* @__PURE__ */ m("span", { className: "select-skeleton" })]
|
|
25227
|
+
}),
|
|
25228
|
+
/* @__PURE__ */ h("span", {
|
|
25229
|
+
className: "select-choicecard__foot",
|
|
25230
|
+
children: [/* @__PURE__ */ m("span", { className: "select-skeleton select-choicecard__skelmeta" }), /* @__PURE__ */ m("span", { className: "select-skeleton select-choicecard__skelcta" })]
|
|
25231
|
+
})
|
|
25232
|
+
]
|
|
25233
|
+
});
|
|
25234
|
+
}
|
|
25235
|
+
var Sl = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, className: i, style: a, ...o }, s) {
|
|
25155
25236
|
return /* @__PURE__ */ m("div", {
|
|
25156
|
-
ref:
|
|
25157
|
-
...
|
|
25158
|
-
|
|
25237
|
+
ref: s,
|
|
25238
|
+
...o,
|
|
25239
|
+
"aria-busy": n || void 0,
|
|
25240
|
+
className: `select-choicegrid${i ? " " + i : ""}`,
|
|
25159
25241
|
style: {
|
|
25160
25242
|
"--select-choice-min": t,
|
|
25161
|
-
...
|
|
25243
|
+
...a
|
|
25162
25244
|
},
|
|
25163
|
-
children: e
|
|
25245
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(xl, {}, t)) : e
|
|
25164
25246
|
});
|
|
25165
|
-
}),
|
|
25247
|
+
}), Cl = 960, wl = Math.round(Cl * 210 / 297), Tl = 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 }, _) {
|
|
25166
25248
|
let v = u(null), [y, b] = d(.5);
|
|
25167
25249
|
o(() => {
|
|
25168
25250
|
let e = v.current;
|
|
25169
25251
|
if (!e) return;
|
|
25170
25252
|
let t = () => {
|
|
25171
25253
|
let t = e.clientWidth;
|
|
25172
|
-
t > 0 && b(Math.min(1, t /
|
|
25254
|
+
t > 0 && b(Math.min(1, t / Cl));
|
|
25173
25255
|
};
|
|
25174
25256
|
if (t(), typeof ResizeObserver > "u") return;
|
|
25175
25257
|
let n = new ResizeObserver(t);
|
|
@@ -25177,7 +25259,7 @@ var _l = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
25177
25259
|
}, []);
|
|
25178
25260
|
let x = e === "front", S = {
|
|
25179
25261
|
"--select-cert-accent": t || void 0,
|
|
25180
|
-
height:
|
|
25262
|
+
height: wl * y + 2
|
|
25181
25263
|
};
|
|
25182
25264
|
return /* @__PURE__ */ m("div", {
|
|
25183
25265
|
ref: (e) => {
|
|
@@ -25190,8 +25272,8 @@ var _l = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
25190
25272
|
children: /* @__PURE__ */ m("div", {
|
|
25191
25273
|
className: "select-certpreview__sheet",
|
|
25192
25274
|
style: {
|
|
25193
|
-
width:
|
|
25194
|
-
height:
|
|
25275
|
+
width: Cl,
|
|
25276
|
+
height: wl,
|
|
25195
25277
|
transform: `scale(${y})`
|
|
25196
25278
|
},
|
|
25197
25279
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -25264,13 +25346,13 @@ var _l = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
25264
25346
|
});
|
|
25265
25347
|
//#endregion
|
|
25266
25348
|
//#region src/SelectImageField.tsx
|
|
25267
|
-
function
|
|
25349
|
+
function El(e) {
|
|
25268
25350
|
return new Promise((t, n) => {
|
|
25269
25351
|
let r = new FileReader();
|
|
25270
25352
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
25271
25353
|
});
|
|
25272
25354
|
}
|
|
25273
|
-
var
|
|
25355
|
+
var Dl = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
|
|
25274
25356
|
let [f, p] = d([]), [g, _] = d(null), v = t ? [t] : [], y = async (e) => {
|
|
25275
25357
|
let t = e[0];
|
|
25276
25358
|
if (!t) {
|
|
@@ -25278,7 +25360,7 @@ var wl = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
25278
25360
|
return;
|
|
25279
25361
|
}
|
|
25280
25362
|
if (_(null), !s) {
|
|
25281
|
-
n(await
|
|
25363
|
+
n(await El(t)), p([]);
|
|
25282
25364
|
return;
|
|
25283
25365
|
}
|
|
25284
25366
|
p([t]);
|
|
@@ -25310,7 +25392,7 @@ var wl = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
25310
25392
|
children: g
|
|
25311
25393
|
})]
|
|
25312
25394
|
});
|
|
25313
|
-
}),
|
|
25395
|
+
}), Ol = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
25314
25396
|
let [o, s] = d(() => new Set(n)), c = (e) => s((n) => {
|
|
25315
25397
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
25316
25398
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -25356,6 +25438,6 @@ var wl = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
25356
25438
|
});
|
|
25357
25439
|
});
|
|
25358
25440
|
//#endregion
|
|
25359
|
-
export { C as AUTH_FX_VARIANTS, Le as AppleIcon, mt as AppsIcon, W as ArrowLeftIcon, ze as ArrowRightIcon, Ge as AtIcon, Pe as AuthAppIcon, St as AwardIcon, Ce as BellIcon, bt as BookIcon, pe as BookmarkIcon, lt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, gt as CartIcon, ft as ChartLineIcon, We as CheckCircleIcon, Ve as CheckIcon, U as ChevronDownIcon, oe as ChevronLeftIcon, ae as ChevronRightIcon, it as ChevronUpIcon, ot as ClipboardIcon, fe as ClockIcon, q as CloseIcon, le as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, ct as DiscountIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, K as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, xt as FileDownloadIcon, G as FilterIcon, ie as GithubIcon, _e as GlobeIcon, re as GoogleIcon, be as HelpIcon, Xe as HomeIcon, ye as InfoIcon, Je as KeyIcon, dt as LinkIcon, nt as LockIcon, Fe as MailIcon, _t as MenuIcon, ht as MinusCircleIcon, Ae as MobileIcon, ke as MonitorIcon, Oe as MoonIcon, st as NoteIcon, wt as PaletteIcon, Re as PasskeyIcon, Ne as PhoneIcon, me as PinIcon, yt as PlayCircleIcon, Me as PlusIcon, je as RefreshIcon, Te as RocketIcon, tr as SELECT_CARD_BRANDS,
|
|
25441
|
+
export { C as AUTH_FX_VARIANTS, Le as AppleIcon, mt as AppsIcon, W as ArrowLeftIcon, ze as ArrowRightIcon, Ge as AtIcon, Pe as AuthAppIcon, St as AwardIcon, Ce as BellIcon, bt as BookIcon, pe as BookmarkIcon, lt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, gt as CartIcon, ft as ChartLineIcon, We as CheckCircleIcon, Ve as CheckIcon, U as ChevronDownIcon, oe as ChevronLeftIcon, ae as ChevronRightIcon, it as ChevronUpIcon, ot as ClipboardIcon, fe as ClockIcon, q as CloseIcon, le as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, ct as DiscountIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, K as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, xt as FileDownloadIcon, G as FilterIcon, ie as GithubIcon, _e as GlobeIcon, re as GoogleIcon, be as HelpIcon, Xe as HomeIcon, ye as InfoIcon, Je as KeyIcon, dt as LinkIcon, nt as LockIcon, Fe as MailIcon, _t as MenuIcon, ht as MinusCircleIcon, Ae as MobileIcon, ke as MonitorIcon, Oe as MoonIcon, st as NoteIcon, wt as PaletteIcon, Re as PasskeyIcon, Ne as PhoneIcon, me as PinIcon, yt as PlayCircleIcon, Me as PlusIcon, je as RefreshIcon, Te as RocketIcon, tr as SELECT_CARD_BRANDS, fl as SELECT_COLOR_PRESETS, ga as SELECT_COL_DATETIME, _a as SELECT_COL_ID, Pn as SELECT_COUNTRIES, Yc as SELECT_DAILY_PRESETS, Kc as SELECT_DATE_PRESETS, Wn as SELECT_SPACE, Bn as SELECT_TRANSACTION_STATUS, se as SearchIcon, Ol as SelectAccordion, sa as SelectActionCard, Hn as SelectActionList, Un as SelectActionMenu, Qt as SelectAddButton, ka as SelectAddCard, Ut as SelectAlert, ca as SelectAppTile, V as SelectAuthFx, qr as SelectAvatar, ei as SelectBackLink, zn as SelectBadge, Fo as SelectBalanceCard, vn as SelectBankAccountField, $o as SelectBarChart, Qn as SelectBox, ks as SelectBoxPlot, al as SelectBuilderLayout, ol as SelectBuilderWorkspace, Ss as SelectBullet, ec as SelectBump, H as SelectButton, js as SelectCalendarHeatmap, Os as SelectCandlestick, ne as SelectCard, Aa as SelectCardGrid, Tl as SelectCertificatePreview, Ro as SelectChartCard, Mt as SelectCheckbox, bl as SelectChoiceCard, xl as SelectChoiceCardSkeleton, Sl as SelectChoiceGrid, Bs as SelectChord, sc as SelectCirclePack, oa as SelectCollapsible, vl as SelectColorField, is as SelectColumnChart, ns as SelectComboChart, mn as SelectCombobox, ma as SelectConfirmModal, ia as SelectCopyRow, aa as SelectCopyableId, la as SelectCreateTile, Oa as SelectDataTable, ho as SelectDateField, Zc as SelectDatePicker, nl as SelectDateRangeField, gc as SelectDetailList, _c as SelectDetailRow, ur as SelectDisclosureButton, Kr as SelectDivider, Ht as SelectDocumentField, rs as SelectDonut, S as SelectDotField, Ps as SelectDumbbell, Io as SelectFeeBreakdown, jt as SelectField, hn as SelectFieldGrid, Zt as SelectFileDropzone, Wt as SelectFileTile, bo as SelectFilterBar, ra as SelectFilterChip, cl as SelectFlowCanvas, ul as SelectFlowLayout, ll as SelectFlowNode, fi as SelectFormLayout, ha as SelectFormModal, as as SelectFunnel, us as SelectGauge, Is as SelectGaugeBands, Ys as SelectGlobe, Yn as SelectGrid, ds as SelectHeatmap, Vs as SelectHexbin, Za as SelectHideMoneyToggle, ys as SelectHorizontalBar, ic as SelectIcicle, xi as SelectIcon, J as SelectIconButton, Xr as SelectIdentityFooter, Dl as SelectImageField, en as SelectImageUploadField, $t as SelectImageUrlsField, Mc as SelectImageZoomModal, kt as SelectInfoTip, Jn as SelectInline, Hr as SelectJsonViewer, Lc as SelectKeyValueEditor, Lo as SelectKpiCard, At as SelectLabelRow, Na as SelectLayoutThumb, es as SelectLineChart, Gr as SelectLinkButton, kc as SelectListCard, Ac as SelectListRow, ci as SelectLoader, Fs as SelectMarimekko, no as SelectMarkStack, Pc as SelectMediaCell, Zi as SelectMenu, na as SelectMenuButton, ta as SelectMenuDivider, ea as SelectMenuHeading, Qi as SelectMenuItem, $i as SelectMenuLink, Xa as SelectMetricDelta, fa as SelectModal, Ja as SelectMoney, Rt as SelectMoneyField, cc as SelectNetwork, Si as SelectNote, rl as SelectNumberField, Qa as SelectOfferPrice, Fc as SelectOfflineModal, Jr as SelectOptionList, Yr as SelectOptionRow, Zr as SelectOtpInput, li as SelectPage, Ii as SelectPagination, Ti as SelectPanel, tc as SelectParallel, Zs as SelectPareto, si as SelectPasswordStrength, lr as SelectPaymentBrand, In as SelectPhoneField, Oc as SelectPlanCard, Ms as SelectPolarArea, fn as SelectPopover, Po as SelectPreviewFrame, yl as SelectProgressBar, fs as SelectProgressList, $s as SelectPyramid, Es as SelectRadar, ms as SelectRadialBar, Ln as SelectRadioGroup, As as SelectRangeBar, eo as SelectRating, to as SelectRatingQuote, ja as SelectRecordCard, il as SelectRepeatingFieldArray, ti as SelectResendButton, ri as SelectRetryStatus, pa as SelectRowActions, Ds as SelectSankey, Ts as SelectScatter, Ni as SelectSearchInput, lc as SelectSearchMenu, dc as SelectSearchMenuOption, Ei as SelectSection, Rn as SelectSegmented, tn as SelectSelect, qa as SelectSensitiveValue, Ci as SelectSettingList, wi as SelectSettingRow, xc as SelectSetupGuide, Sc as SelectSetupNext, Mi as SelectSideNav, yi as SelectSkeleton, Ns as SelectSlope, Qo as SelectSparkline, Ia as SelectSplitChain, qn as SelectStack, ts as SelectStackedArea, Vn as SelectStatusBadge, vc as SelectSteps, Ls as SelectStreamGraph, Rs as SelectSunburst, So as SelectSurface, yn as SelectSwitch, dl as SelectSwitchField, Gi as SelectTable, Yi as SelectTableCell, Xi as SelectTableEmpty, Ji as SelectTableRow, Di as SelectTabs, xo as SelectTagSelect, $n as SelectText, Nt as SelectTextarea, mc as SelectThemeSwitcher, jc as SelectThumbnail, Xs as SelectTicker, Wr as SelectTimeline, ko as SelectToastProvider, bn as SelectToggleList, Sn as SelectTogglePanel, xn as SelectToggleRow, Ot as SelectTooltip, Dc as SelectTour, ac as SelectTree, ws as SelectTreemap, Pt as SelectUnitInput, qi as SelectUserCell, Ga as SelectValueVisibilityProvider, oc as SelectVenn, zs as SelectViolin, Qs as SelectWaffle, bs as SelectWaterfall, Hs as SelectWordCloud, ua as SelectWorkspaceSwitcher, Nc as SelectZoomThumbnail, ve as SelectorIcon, tt as SendIcon, de as Setting4Icon, Ze as SettingsIcon, Be as ShieldIcon, ge as SplitIcon, he as StarIcon, pt as StoreIcon, vt as StorefrontIcon, De as SunIcon, we as TerminalIcon, Ye as TrashIcon, ut as TruckIcon, ce as UploadIcon, Se as UserIcon, Ct as UsersIcon, Qe as WalletIcon, xe as WarningIcon, Ke as Web3Icon, gl as contrastRatio, un as detectSelectTheme, Fn as dialCodeOf, ml as normalizeHex, oi as passwordScore, pc as resolveSelectTheme, ir as selectCardBrand, ar as selectCardBrandLabel, Ea as useSelectPageSize, Ao as useSelectToast, Ka as useSelectValueVisibility };
|
|
25360
25442
|
|
|
25361
25443
|
//# sourceMappingURL=index.js.map
|