@selectwin/kit 0.1.124 → 0.1.126
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/SelectChartLegend.d.ts +2 -0
- package/dist/SelectLayout.d.ts +7 -1
- package/dist/SelectListCard.d.ts +5 -0
- package/dist/SelectMiniStats.d.ts +5 -0
- package/dist/SelectProgressList.d.ts +6 -1
- package/dist/SelectTileMap.d.ts +31 -0
- package/dist/chartUtils.d.ts +3 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +519 -251
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4529,8 +4529,8 @@ var fr = {
|
|
|
4529
4529
|
function mr(...e) {
|
|
4530
4530
|
return e.filter(Boolean).join(" ");
|
|
4531
4531
|
}
|
|
4532
|
-
function hr({ children: e, gap: t, align: n, inlineAlign: r, as: i = "div", className: a, fill: o = !1,
|
|
4533
|
-
let
|
|
4532
|
+
function hr({ children: e, gap: t, align: n, inlineAlign: r, as: i = "div", className: a, fill: o = !1, growLast: s = !1, ...c }) {
|
|
4533
|
+
let l = i, u = {
|
|
4534
4534
|
rowGap: t ? fr[t] : void 0,
|
|
4535
4535
|
justifyContent: n ? pr[n] : void 0,
|
|
4536
4536
|
alignItems: r ? pr[r] : void 0,
|
|
@@ -4539,10 +4539,10 @@ function hr({ children: e, gap: t, align: n, inlineAlign: r, as: i = "div", clas
|
|
|
4539
4539
|
flex: "1 1 auto"
|
|
4540
4540
|
} : null
|
|
4541
4541
|
};
|
|
4542
|
-
return /* @__PURE__ */ m(
|
|
4543
|
-
...
|
|
4544
|
-
className: mr("select-stack", a),
|
|
4545
|
-
style:
|
|
4542
|
+
return /* @__PURE__ */ m(l, {
|
|
4543
|
+
...c,
|
|
4544
|
+
className: mr("select-stack", s && "select-stack--grow-last", a),
|
|
4545
|
+
style: u,
|
|
4546
4546
|
children: e
|
|
4547
4547
|
});
|
|
4548
4548
|
}
|
|
@@ -9669,7 +9669,7 @@ function Ls({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
9669
9669
|
//#endregion
|
|
9670
9670
|
//#region src/SelectLineChart.tsx
|
|
9671
9671
|
function Rs({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1, className: a, ...o }) {
|
|
9672
|
-
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } = Es(Math.max(0, ...e.flatMap((e) => e.data))), y = Ps, b = Math.max(0, l - y.left - y.right), x = n - y.top - y.bottom, S = t.length, C = (e) => y.left + (S <= 1 ? b / 2 : e / (S - 1) * b), w = (e) => y.top + x - e / _ * x, T = S > 1 ? b / (S - 1) : b, E = Math.max(1, Math.ceil(S / 7)), D = y.top + x;
|
|
9672
|
+
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } = Es(Math.max(0, ...e.flatMap((e) => e.data.filter((e) => Number.isFinite(e))))), y = Ps, b = Math.max(0, l - y.left - y.right), x = n - y.top - y.bottom, S = t.length, C = (e) => y.left + (S <= 1 ? b / 2 : e / (S - 1) * b), w = (e) => y.top + x - e / _ * x, T = S > 1 ? b / (S - 1) : b, E = Math.max(1, Math.ceil(S / 7)), D = y.top + x;
|
|
9673
9673
|
return /* @__PURE__ */ h("div", {
|
|
9674
9674
|
...o,
|
|
9675
9675
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -9719,9 +9719,12 @@ function Rs({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
9719
9719
|
y2: D,
|
|
9720
9720
|
className: "select-chart__crosshair"
|
|
9721
9721
|
}),
|
|
9722
|
-
e.map((e, t) => {
|
|
9723
|
-
|
|
9724
|
-
|
|
9722
|
+
e.map((e, t) => ({
|
|
9723
|
+
s: e,
|
|
9724
|
+
si: t
|
|
9725
|
+
})).sort((e, t) => Number(!!t.s.dashed) - Number(!!e.s.dashed)).map(({ s: e, si: t }) => {
|
|
9726
|
+
let n = e.color ?? X(t), r = e.data.slice(0, S).map((e, t) => [C(t), w(e)]);
|
|
9727
|
+
return /* @__PURE__ */ h("g", { children: [i && !e.dashed && /* @__PURE__ */ m("path", {
|
|
9725
9728
|
d: ks(r, D),
|
|
9726
9729
|
fill: `url(#${f}-a${t})`,
|
|
9727
9730
|
className: "select-chart__area"
|
|
@@ -9729,18 +9732,22 @@ function Rs({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
9729
9732
|
d: Os(r),
|
|
9730
9733
|
fill: "none",
|
|
9731
9734
|
stroke: n,
|
|
9732
|
-
strokeWidth: 2.25,
|
|
9735
|
+
strokeWidth: e.dashed ? 1.75 : 2.25,
|
|
9733
9736
|
strokeLinecap: "round",
|
|
9734
9737
|
strokeLinejoin: "round",
|
|
9735
|
-
|
|
9736
|
-
|
|
9738
|
+
strokeOpacity: e.dashed ? .55 : void 0,
|
|
9739
|
+
strokeDasharray: e.dashed ? "5 4" : void 0,
|
|
9740
|
+
pathLength: e.dashed ? void 0 : 1,
|
|
9741
|
+
className: e.dashed ? "select-chart__line select-chart__line--dashed" : "select-chart__line"
|
|
9737
9742
|
})] }, t);
|
|
9738
9743
|
}),
|
|
9739
|
-
p != null && e.map((e, t) => /* @__PURE__ */ m("circle", {
|
|
9744
|
+
p != null && e.map((e, t) => e.data[p] == null ? null : /* @__PURE__ */ m("circle", {
|
|
9740
9745
|
cx: C(p),
|
|
9741
9746
|
cy: w(e.data[p] ?? 0),
|
|
9742
9747
|
r: 3.5,
|
|
9743
|
-
fill: e.color ?? X(t),
|
|
9748
|
+
fill: e.dashed ? "var(--select-surface)" : e.color ?? X(t),
|
|
9749
|
+
stroke: e.dashed ? e.color ?? X(t) : void 0,
|
|
9750
|
+
strokeWidth: e.dashed ? 2 : void 0,
|
|
9744
9751
|
className: "select-chart__dot select-chart__dot--active"
|
|
9745
9752
|
}, t)),
|
|
9746
9753
|
t.map((e, t) => t % E === 0 || t === S - 1 ? /* @__PURE__ */ m("text", {
|
|
@@ -9758,13 +9765,16 @@ function Rs({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
9758
9765
|
fill: "transparent",
|
|
9759
9766
|
onMouseEnter: () => {
|
|
9760
9767
|
g(n);
|
|
9761
|
-
let i =
|
|
9768
|
+
let i = e.map((e, t) => ({
|
|
9769
|
+
s: e,
|
|
9770
|
+
si: t
|
|
9771
|
+
})).filter(({ s: e }) => e.data[n] != null), a = Math.min(...i.map(({ s: e }) => w(e.data[n] ?? 0)));
|
|
9762
9772
|
u.show({
|
|
9763
9773
|
x: C(n),
|
|
9764
|
-
y:
|
|
9765
|
-
place:
|
|
9774
|
+
y: a,
|
|
9775
|
+
place: a < y.top + 52 ? "bottom" : "top",
|
|
9766
9776
|
title: t,
|
|
9767
|
-
rows:
|
|
9777
|
+
rows: i.map(({ s: e, si: t }) => ({
|
|
9768
9778
|
label: e.name,
|
|
9769
9779
|
value: r(e.data[n] ?? 0),
|
|
9770
9780
|
color: e.color ?? X(t)
|
|
@@ -10294,7 +10304,7 @@ function Gs({ items: e, className: t, ...n }) {
|
|
|
10294
10304
|
"aria-hidden": "true",
|
|
10295
10305
|
children: e.icon
|
|
10296
10306
|
}) : /* @__PURE__ */ m("span", {
|
|
10297
|
-
className: `select-chartlegend__swatch${e.pattern === "hatch" ? " select-chartlegend__swatch--hatch" : ""}`,
|
|
10307
|
+
className: `select-chartlegend__swatch${e.pattern === "hatch" ? " select-chartlegend__swatch--hatch" : ""}${e.line ? ` select-chartlegend__swatch--line select-chartlegend__swatch--${e.line}` : ""}`,
|
|
10298
10308
|
style: { "--swatch": e.color ?? "var(--select-chart-1)" },
|
|
10299
10309
|
"aria-hidden": "true"
|
|
10300
10310
|
}), e.label]
|
|
@@ -10622,11 +10632,11 @@ var qs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10622
10632
|
})]
|
|
10623
10633
|
})]
|
|
10624
10634
|
});
|
|
10625
|
-
}), $s = r(function({ items: e, order: t = "label-first",
|
|
10635
|
+
}), $s = r(function({ items: e, order: t = "label-first", columns: n, className: r, ...i }, a) {
|
|
10626
10636
|
return /* @__PURE__ */ m("dl", {
|
|
10627
|
-
ref:
|
|
10628
|
-
...
|
|
10629
|
-
className: `select-ministats select-ministats--${t}${n ? " " +
|
|
10637
|
+
ref: a,
|
|
10638
|
+
...i,
|
|
10639
|
+
className: `select-ministats select-ministats--${t}${n ? ` select-ministats--cols-${n}` : ""}${r ? " " + r : ""}`,
|
|
10630
10640
|
children: e.map((e, t) => /* @__PURE__ */ h("div", {
|
|
10631
10641
|
className: "select-ministats__item",
|
|
10632
10642
|
children: [
|
|
@@ -10859,15 +10869,273 @@ var ac = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10859
10869
|
onDismiss: _.hide
|
|
10860
10870
|
})]
|
|
10861
10871
|
});
|
|
10862
|
-
})
|
|
10872
|
+
}), cc = r(function({ tiles: e, color: t = "var(--select-chart-1)", tileSize: n = 36, gap: r = 5, format: i = (e) => String(e), legend: a = !0, className: o, style: s, ...c }, l) {
|
|
10873
|
+
let u = Q(), d = Math.max(0, ...e.map((e) => e.value ?? 0)), f = Math.max(0, ...e.map((e) => e.col)) + 1, p = Math.max(0, ...e.map((e) => e.row)) + 1, g = n + r, _ = {
|
|
10874
|
+
width: f * g - r,
|
|
10875
|
+
height: p * g - r
|
|
10876
|
+
};
|
|
10877
|
+
return /* @__PURE__ */ h("div", {
|
|
10878
|
+
ref: l,
|
|
10879
|
+
...c,
|
|
10880
|
+
className: `select-tilemap${o ? " " + o : ""}`,
|
|
10881
|
+
style: {
|
|
10882
|
+
...s,
|
|
10883
|
+
"--tile-color": t
|
|
10884
|
+
},
|
|
10885
|
+
children: [
|
|
10886
|
+
/* @__PURE__ */ m("div", {
|
|
10887
|
+
className: "select-tilemap__grid",
|
|
10888
|
+
style: _,
|
|
10889
|
+
role: "list",
|
|
10890
|
+
children: e.map((e) => {
|
|
10891
|
+
let r = e.value ?? 0, a = d > 0 && r > 0 ? Math.sqrt(r / d) : 0, o = Math.round(10 + a * 88);
|
|
10892
|
+
return /* @__PURE__ */ m("div", {
|
|
10893
|
+
role: "listitem",
|
|
10894
|
+
"aria-label": `${e.title ?? e.label}${r > 0 ? `: ${String(i(r))}` : ""}`,
|
|
10895
|
+
className: `select-tilemap__tile${r > 0 ? "" : " select-tilemap__tile--empty"}`,
|
|
10896
|
+
style: {
|
|
10897
|
+
left: e.col * g,
|
|
10898
|
+
top: e.row * g,
|
|
10899
|
+
width: n,
|
|
10900
|
+
height: n,
|
|
10901
|
+
...r > 0 ? {
|
|
10902
|
+
background: `color-mix(in srgb, var(--tile-color) ${o}%, var(--select-surface))`,
|
|
10903
|
+
color: a > .55 ? "#fff" : "var(--select-text)"
|
|
10904
|
+
} : null
|
|
10905
|
+
},
|
|
10906
|
+
onMouseEnter: (n) => {
|
|
10907
|
+
let a = n.currentTarget.getBoundingClientRect(), o = a.top < 72 ? "bottom" : "top";
|
|
10908
|
+
u.show({
|
|
10909
|
+
x: a.left + a.width / 2,
|
|
10910
|
+
y: o === "bottom" ? a.bottom : a.top,
|
|
10911
|
+
place: o,
|
|
10912
|
+
title: e.title ?? e.label,
|
|
10913
|
+
rows: [{
|
|
10914
|
+
label: e.label,
|
|
10915
|
+
value: r > 0 ? i(r) : "—",
|
|
10916
|
+
color: t
|
|
10917
|
+
}]
|
|
10918
|
+
});
|
|
10919
|
+
},
|
|
10920
|
+
onMouseLeave: u.hide,
|
|
10921
|
+
children: e.label
|
|
10922
|
+
}, e.key);
|
|
10923
|
+
})
|
|
10924
|
+
}),
|
|
10925
|
+
a && /* @__PURE__ */ h("div", {
|
|
10926
|
+
className: "select-tilemap__legend",
|
|
10927
|
+
"aria-hidden": "true",
|
|
10928
|
+
children: [
|
|
10929
|
+
/* @__PURE__ */ m("span", { children: "menos" }),
|
|
10930
|
+
/* @__PURE__ */ m("span", { className: "select-tilemap__scale" }),
|
|
10931
|
+
/* @__PURE__ */ m("span", { children: "mais" })
|
|
10932
|
+
]
|
|
10933
|
+
}),
|
|
10934
|
+
/* @__PURE__ */ m(Is, {
|
|
10935
|
+
tip: u.tip,
|
|
10936
|
+
onDismiss: u.hide
|
|
10937
|
+
})
|
|
10938
|
+
]
|
|
10939
|
+
});
|
|
10940
|
+
}), lc = [
|
|
10941
|
+
{
|
|
10942
|
+
key: "RR",
|
|
10943
|
+
label: "RR",
|
|
10944
|
+
title: "Roraima",
|
|
10945
|
+
col: 1,
|
|
10946
|
+
row: 0
|
|
10947
|
+
},
|
|
10948
|
+
{
|
|
10949
|
+
key: "AP",
|
|
10950
|
+
label: "AP",
|
|
10951
|
+
title: "Amapá",
|
|
10952
|
+
col: 3,
|
|
10953
|
+
row: 0
|
|
10954
|
+
},
|
|
10955
|
+
{
|
|
10956
|
+
key: "AM",
|
|
10957
|
+
label: "AM",
|
|
10958
|
+
title: "Amazonas",
|
|
10959
|
+
col: 1,
|
|
10960
|
+
row: 1
|
|
10961
|
+
},
|
|
10962
|
+
{
|
|
10963
|
+
key: "PA",
|
|
10964
|
+
label: "PA",
|
|
10965
|
+
title: "Pará",
|
|
10966
|
+
col: 2,
|
|
10967
|
+
row: 1
|
|
10968
|
+
},
|
|
10969
|
+
{
|
|
10970
|
+
key: "MA",
|
|
10971
|
+
label: "MA",
|
|
10972
|
+
title: "Maranhão",
|
|
10973
|
+
col: 3,
|
|
10974
|
+
row: 1
|
|
10975
|
+
},
|
|
10976
|
+
{
|
|
10977
|
+
key: "CE",
|
|
10978
|
+
label: "CE",
|
|
10979
|
+
title: "Ceará",
|
|
10980
|
+
col: 4,
|
|
10981
|
+
row: 1
|
|
10982
|
+
},
|
|
10983
|
+
{
|
|
10984
|
+
key: "RN",
|
|
10985
|
+
label: "RN",
|
|
10986
|
+
title: "Rio Grande do Norte",
|
|
10987
|
+
col: 5,
|
|
10988
|
+
row: 1
|
|
10989
|
+
},
|
|
10990
|
+
{
|
|
10991
|
+
key: "AC",
|
|
10992
|
+
label: "AC",
|
|
10993
|
+
title: "Acre",
|
|
10994
|
+
col: 0,
|
|
10995
|
+
row: 2
|
|
10996
|
+
},
|
|
10997
|
+
{
|
|
10998
|
+
key: "RO",
|
|
10999
|
+
label: "RO",
|
|
11000
|
+
title: "Rondônia",
|
|
11001
|
+
col: 1,
|
|
11002
|
+
row: 2
|
|
11003
|
+
},
|
|
11004
|
+
{
|
|
11005
|
+
key: "TO",
|
|
11006
|
+
label: "TO",
|
|
11007
|
+
title: "Tocantins",
|
|
11008
|
+
col: 2,
|
|
11009
|
+
row: 2
|
|
11010
|
+
},
|
|
11011
|
+
{
|
|
11012
|
+
key: "PI",
|
|
11013
|
+
label: "PI",
|
|
11014
|
+
title: "Piauí",
|
|
11015
|
+
col: 3,
|
|
11016
|
+
row: 2
|
|
11017
|
+
},
|
|
11018
|
+
{
|
|
11019
|
+
key: "PE",
|
|
11020
|
+
label: "PE",
|
|
11021
|
+
title: "Pernambuco",
|
|
11022
|
+
col: 4,
|
|
11023
|
+
row: 2
|
|
11024
|
+
},
|
|
11025
|
+
{
|
|
11026
|
+
key: "PB",
|
|
11027
|
+
label: "PB",
|
|
11028
|
+
title: "Paraíba",
|
|
11029
|
+
col: 5,
|
|
11030
|
+
row: 2
|
|
11031
|
+
},
|
|
11032
|
+
{
|
|
11033
|
+
key: "MT",
|
|
11034
|
+
label: "MT",
|
|
11035
|
+
title: "Mato Grosso",
|
|
11036
|
+
col: 1,
|
|
11037
|
+
row: 3
|
|
11038
|
+
},
|
|
11039
|
+
{
|
|
11040
|
+
key: "GO",
|
|
11041
|
+
label: "GO",
|
|
11042
|
+
title: "Goiás",
|
|
11043
|
+
col: 2,
|
|
11044
|
+
row: 3
|
|
11045
|
+
},
|
|
11046
|
+
{
|
|
11047
|
+
key: "BA",
|
|
11048
|
+
label: "BA",
|
|
11049
|
+
title: "Bahia",
|
|
11050
|
+
col: 3,
|
|
11051
|
+
row: 3
|
|
11052
|
+
},
|
|
11053
|
+
{
|
|
11054
|
+
key: "SE",
|
|
11055
|
+
label: "SE",
|
|
11056
|
+
title: "Sergipe",
|
|
11057
|
+
col: 4,
|
|
11058
|
+
row: 3
|
|
11059
|
+
},
|
|
11060
|
+
{
|
|
11061
|
+
key: "AL",
|
|
11062
|
+
label: "AL",
|
|
11063
|
+
title: "Alagoas",
|
|
11064
|
+
col: 5,
|
|
11065
|
+
row: 3
|
|
11066
|
+
},
|
|
11067
|
+
{
|
|
11068
|
+
key: "MS",
|
|
11069
|
+
label: "MS",
|
|
11070
|
+
title: "Mato Grosso do Sul",
|
|
11071
|
+
col: 1,
|
|
11072
|
+
row: 4
|
|
11073
|
+
},
|
|
11074
|
+
{
|
|
11075
|
+
key: "DF",
|
|
11076
|
+
label: "DF",
|
|
11077
|
+
title: "Distrito Federal",
|
|
11078
|
+
col: 2,
|
|
11079
|
+
row: 4
|
|
11080
|
+
},
|
|
11081
|
+
{
|
|
11082
|
+
key: "MG",
|
|
11083
|
+
label: "MG",
|
|
11084
|
+
title: "Minas Gerais",
|
|
11085
|
+
col: 3,
|
|
11086
|
+
row: 4
|
|
11087
|
+
},
|
|
11088
|
+
{
|
|
11089
|
+
key: "ES",
|
|
11090
|
+
label: "ES",
|
|
11091
|
+
title: "Espírito Santo",
|
|
11092
|
+
col: 4,
|
|
11093
|
+
row: 4
|
|
11094
|
+
},
|
|
11095
|
+
{
|
|
11096
|
+
key: "PR",
|
|
11097
|
+
label: "PR",
|
|
11098
|
+
title: "Paraná",
|
|
11099
|
+
col: 2,
|
|
11100
|
+
row: 5
|
|
11101
|
+
},
|
|
11102
|
+
{
|
|
11103
|
+
key: "SP",
|
|
11104
|
+
label: "SP",
|
|
11105
|
+
title: "São Paulo",
|
|
11106
|
+
col: 3,
|
|
11107
|
+
row: 5
|
|
11108
|
+
},
|
|
11109
|
+
{
|
|
11110
|
+
key: "RJ",
|
|
11111
|
+
label: "RJ",
|
|
11112
|
+
title: "Rio de Janeiro",
|
|
11113
|
+
col: 4,
|
|
11114
|
+
row: 5
|
|
11115
|
+
},
|
|
11116
|
+
{
|
|
11117
|
+
key: "SC",
|
|
11118
|
+
label: "SC",
|
|
11119
|
+
title: "Santa Catarina",
|
|
11120
|
+
col: 2,
|
|
11121
|
+
row: 6
|
|
11122
|
+
},
|
|
11123
|
+
{
|
|
11124
|
+
key: "RS",
|
|
11125
|
+
label: "RS",
|
|
11126
|
+
title: "Rio Grande do Sul",
|
|
11127
|
+
col: 2,
|
|
11128
|
+
row: 7
|
|
11129
|
+
}
|
|
11130
|
+
];
|
|
10863
11131
|
//#endregion
|
|
10864
11132
|
//#region src/SelectProgressList.tsx
|
|
10865
|
-
function
|
|
11133
|
+
function uc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1, max: a }) {
|
|
10866
11134
|
if (e.length === 0) return /* @__PURE__ */ m("div", {
|
|
10867
11135
|
className: "select-progresslist__empty",
|
|
10868
11136
|
children: r
|
|
10869
11137
|
});
|
|
10870
|
-
let
|
|
11138
|
+
let o = a != null && a > 0 ? a : Math.max(...e.map((e) => e.value), 1);
|
|
10871
11139
|
return /* @__PURE__ */ m("ul", {
|
|
10872
11140
|
className: `select-progresslist${i ? " select-progresslist--spread" : ""}`,
|
|
10873
11141
|
children: e.map((e, r) => {
|
|
@@ -10896,7 +11164,7 @@ function cc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
10896
11164
|
children: /* @__PURE__ */ m("span", {
|
|
10897
11165
|
className: "select-progresslist__bar",
|
|
10898
11166
|
style: {
|
|
10899
|
-
width: `${e.value /
|
|
11167
|
+
width: `${Math.min(100, Math.max(0, e.value / o * 100))}%`,
|
|
10900
11168
|
background: `linear-gradient(90deg, ${i}, color-mix(in srgb, ${i} 55%, transparent))`,
|
|
10901
11169
|
animationDelay: `${r * 40}ms`
|
|
10902
11170
|
}
|
|
@@ -10913,7 +11181,7 @@ function cc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
10913
11181
|
}
|
|
10914
11182
|
//#endregion
|
|
10915
11183
|
//#region src/SelectRadialBar.tsx
|
|
10916
|
-
var
|
|
11184
|
+
var dc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, fc = 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) {
|
|
10917
11185
|
let d = s(), f = t / 2, p = t / 2;
|
|
10918
11186
|
return /* @__PURE__ */ h("div", {
|
|
10919
11187
|
ref: u,
|
|
@@ -10953,7 +11221,7 @@ var lc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, uc = r(f
|
|
|
10953
11221
|
}) }), e.map((e, i) => {
|
|
10954
11222
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
10955
11223
|
if (a <= n / 2) return null;
|
|
10956
|
-
let o =
|
|
11224
|
+
let o = dc(e.value);
|
|
10957
11225
|
return /* @__PURE__ */ h("g", {
|
|
10958
11226
|
transform: `rotate(-90 ${f} ${p})`,
|
|
10959
11227
|
children: [/* @__PURE__ */ m("circle", {
|
|
@@ -10982,7 +11250,7 @@ var lc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, uc = r(f
|
|
|
10982
11250
|
className: "select-radial__center",
|
|
10983
11251
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ m("strong", {
|
|
10984
11252
|
className: "select-radial__value",
|
|
10985
|
-
children: i(
|
|
11253
|
+
children: i(dc(e[0].value))
|
|
10986
11254
|
}) : null)
|
|
10987
11255
|
})]
|
|
10988
11256
|
}), o && /* @__PURE__ */ m("ul", {
|
|
@@ -11000,15 +11268,15 @@ var lc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, uc = r(f
|
|
|
11000
11268
|
}),
|
|
11001
11269
|
/* @__PURE__ */ m("span", {
|
|
11002
11270
|
className: "select-donut__legval",
|
|
11003
|
-
children: i(
|
|
11271
|
+
children: i(dc(e.value))
|
|
11004
11272
|
})
|
|
11005
11273
|
]
|
|
11006
11274
|
}, t))
|
|
11007
11275
|
})]
|
|
11008
11276
|
});
|
|
11009
|
-
}),
|
|
11010
|
-
function
|
|
11011
|
-
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Y(d), g = Q(), _ = s(), v = c && c > 0 ? c : ws(Math.max(0, ...e.map((e) => e.value))), y = e.reduce((e, t) => Math.max(e, t.label.length), 0), b = Math.min(Math.max(
|
|
11277
|
+
}), pc = 6.1, mc = 12, hc = 56, gc = .4;
|
|
11278
|
+
function _c({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
|
|
11279
|
+
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Y(d), g = Q(), _ = s(), v = c && c > 0 ? c : ws(Math.max(0, ...e.map((e) => e.value))), y = e.reduce((e, t) => Math.max(e, t.label.length), 0), b = Math.min(Math.max(hc, y * pc + mc), Math.max(hc, p * gc)), x = o ?? b, S = Math.max(3, Math.floor((x - mc) / pc)), 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));
|
|
11012
11280
|
return /* @__PURE__ */ h("div", {
|
|
11013
11281
|
...u,
|
|
11014
11282
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -11083,7 +11351,7 @@ function hc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
11083
11351
|
onMouseLeave: g.hide
|
|
11084
11352
|
}),
|
|
11085
11353
|
/* @__PURE__ */ h("text", {
|
|
11086
|
-
x: x -
|
|
11354
|
+
x: x - mc / 2,
|
|
11087
11355
|
y: n,
|
|
11088
11356
|
className: "select-chart__ylabel",
|
|
11089
11357
|
dominantBaseline: "middle",
|
|
@@ -11098,7 +11366,7 @@ function hc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
11098
11366
|
}
|
|
11099
11367
|
//#endregion
|
|
11100
11368
|
//#region src/SelectWaterfall.tsx
|
|
11101
|
-
function
|
|
11369
|
+
function vc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11102
11370
|
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
11103
11371
|
if (e.total) return u = e.value, {
|
|
11104
11372
|
...e,
|
|
@@ -11213,7 +11481,7 @@ function gc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11213
11481
|
}
|
|
11214
11482
|
//#endregion
|
|
11215
11483
|
//#region src/SelectBullet.tsx
|
|
11216
|
-
var
|
|
11484
|
+
var yc = (e) => Math.max(0, Math.min(100, e)), bc = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
11217
11485
|
return /* @__PURE__ */ m("div", {
|
|
11218
11486
|
ref: i,
|
|
11219
11487
|
...r,
|
|
@@ -11251,12 +11519,12 @@ var _c = (e) => Math.max(0, Math.min(100, e)), vc = r(function({ items: e, forma
|
|
|
11251
11519
|
children: [/* @__PURE__ */ m("span", {
|
|
11252
11520
|
className: "select-bullet__fill",
|
|
11253
11521
|
style: {
|
|
11254
|
-
width: `${
|
|
11522
|
+
width: `${yc(e.value / i * 100)}%`,
|
|
11255
11523
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
11256
11524
|
}
|
|
11257
11525
|
}), /* @__PURE__ */ m("span", {
|
|
11258
11526
|
className: "select-bullet__tick",
|
|
11259
|
-
style: { left: `${
|
|
11527
|
+
style: { left: `${yc(e.target / i * 100)}%` }
|
|
11260
11528
|
})]
|
|
11261
11529
|
})]
|
|
11262
11530
|
}, `${e.label}-${n}`);
|
|
@@ -11265,7 +11533,7 @@ var _c = (e) => Math.max(0, Math.min(100, e)), vc = r(function({ items: e, forma
|
|
|
11265
11533
|
});
|
|
11266
11534
|
//#endregion
|
|
11267
11535
|
//#region src/SelectTreemap.tsx
|
|
11268
|
-
function
|
|
11536
|
+
function xc(e, t, n) {
|
|
11269
11537
|
let r = [], i = (e, t) => {
|
|
11270
11538
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
11271
11539
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -11316,8 +11584,8 @@ function yc(e, t, n) {
|
|
|
11316
11584
|
};
|
|
11317
11585
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
11318
11586
|
}
|
|
11319
|
-
function
|
|
11320
|
-
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ?
|
|
11587
|
+
function Sc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11588
|
+
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 ? xc(u.map((t) => e[t].value), o, t) : [];
|
|
11321
11589
|
return /* @__PURE__ */ h("div", {
|
|
11322
11590
|
...i,
|
|
11323
11591
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -11387,7 +11655,7 @@ function bc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11387
11655
|
}
|
|
11388
11656
|
//#endregion
|
|
11389
11657
|
//#region src/SelectScatter.tsx
|
|
11390
|
-
function
|
|
11658
|
+
function Cc({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
11391
11659
|
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p = ws(i ?? Math.max(0, ...f.map((e) => e.x))), g = ws(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = Ps, y = Math.max(0, u - v.left - v.right), b = t - v.top - v.bottom, x = v.top + b, S = (e) => v.left + e / p * y, C = (e) => x - e / g * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(_) * (o - 4) : 4.5;
|
|
11392
11660
|
return /* @__PURE__ */ h("div", {
|
|
11393
11661
|
...c,
|
|
@@ -11459,7 +11727,7 @@ function xc({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
11459
11727
|
}
|
|
11460
11728
|
//#endregion
|
|
11461
11729
|
//#region src/SelectRadar.tsx
|
|
11462
|
-
var
|
|
11730
|
+
var wc = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
|
|
11463
11731
|
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? ws(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [g + t * Math.cos(b(e)), _ + t * Math.sin(b(e))], S = (e) => e.map((e, t) => `${t === 0 ? "M" : "L"}${x(t, e).map((e) => e.toFixed(2)).join(",")}`).join(" ") + " Z";
|
|
11464
11732
|
return /* @__PURE__ */ h("div", {
|
|
11465
11733
|
ref: u,
|
|
@@ -11569,7 +11837,7 @@ var Sc = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
11569
11837
|
});
|
|
11570
11838
|
//#endregion
|
|
11571
11839
|
//#region src/SelectSankey.tsx
|
|
11572
|
-
function
|
|
11840
|
+
function Tc({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
11573
11841
|
let { ref: s, width: c } = Y(t), l = Q(), u = [], d = [];
|
|
11574
11842
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
11575
11843
|
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) => {
|
|
@@ -11654,7 +11922,7 @@ function Cc({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
11654
11922
|
}
|
|
11655
11923
|
//#endregion
|
|
11656
11924
|
//#region src/SelectCandlestick.tsx
|
|
11657
|
-
function
|
|
11925
|
+
function Ec({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
11658
11926
|
let { ref: s, width: c } = Y(t), l = Q(), u = Ps, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, g = Math.max(1, ...e.map((e) => e.high)), _ = Math.min(g, ...e.map((e) => e.low)), v = (g - _) * .08 || 1, y = _ - v, b = g + v, x = (e) => p - (e - y) / (b - y) * f, S = e.length, C = S ? d / S : 0, w = Math.min(C * .5, 18), T = Array.from({ length: 5 }, (e, t) => y + (b - y) * t / 4);
|
|
11659
11927
|
return /* @__PURE__ */ h("div", {
|
|
11660
11928
|
...o,
|
|
@@ -11744,7 +12012,7 @@ function wc({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
11744
12012
|
}
|
|
11745
12013
|
//#endregion
|
|
11746
12014
|
//#region src/SelectBoxPlot.tsx
|
|
11747
|
-
function
|
|
12015
|
+
function Dc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11748
12016
|
let { ref: a, width: o } = Y(t), s = Q(), c = Ps, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = ws(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .5, 40);
|
|
11749
12017
|
return /* @__PURE__ */ h("div", {
|
|
11750
12018
|
...i,
|
|
@@ -11864,7 +12132,7 @@ function Tc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11864
12132
|
}
|
|
11865
12133
|
//#endregion
|
|
11866
12134
|
//#region src/SelectRangeBar.tsx
|
|
11867
|
-
function
|
|
12135
|
+
function Oc({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
11868
12136
|
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);
|
|
11869
12137
|
return /* @__PURE__ */ h("div", {
|
|
11870
12138
|
...c,
|
|
@@ -11945,7 +12213,7 @@ function Ec({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
11945
12213
|
}
|
|
11946
12214
|
//#endregion
|
|
11947
12215
|
//#region src/SelectCalendarHeatmap.tsx
|
|
11948
|
-
var
|
|
12216
|
+
var kc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
11949
12217
|
"Seg",
|
|
11950
12218
|
"",
|
|
11951
12219
|
"Qua",
|
|
@@ -12018,7 +12286,7 @@ var Dc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
12018
12286
|
]
|
|
12019
12287
|
}), /* @__PURE__ */ m($, { tip: p.tip })]
|
|
12020
12288
|
});
|
|
12021
|
-
}),
|
|
12289
|
+
}), Ac = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
12022
12290
|
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = ws(Math.max(1, ...e.map((e) => e.value))), g = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, _ = 360 / f;
|
|
12023
12291
|
return /* @__PURE__ */ h("div", {
|
|
12024
12292
|
ref: s,
|
|
@@ -12092,7 +12360,7 @@ var Dc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
12092
12360
|
});
|
|
12093
12361
|
//#endregion
|
|
12094
12362
|
//#region src/SelectSlope.tsx
|
|
12095
|
-
function
|
|
12363
|
+
function jc({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
12096
12364
|
let { ref: s, width: c } = Y(r), l = Q(), u = {
|
|
12097
12365
|
top: 24,
|
|
12098
12366
|
right: 64,
|
|
@@ -12214,7 +12482,7 @@ function kc({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
12214
12482
|
}
|
|
12215
12483
|
//#endregion
|
|
12216
12484
|
//#region src/SelectDumbbell.tsx
|
|
12217
|
-
function
|
|
12485
|
+
function Mc({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
12218
12486
|
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Y(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", g = ws(Math.max(1, ...e.flatMap((e) => [e.from, e.to]))), _ = a, v = Math.max(0, u - _ - 14), y = c - 6 - 26, b = e.length ? y / e.length : 0, x = (e) => _ + e / g * v;
|
|
12219
12487
|
return /* @__PURE__ */ h("div", {
|
|
12220
12488
|
...s,
|
|
@@ -12307,7 +12575,7 @@ function Ac({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
12307
12575
|
}
|
|
12308
12576
|
//#endregion
|
|
12309
12577
|
//#region src/SelectMarimekko.tsx
|
|
12310
|
-
function
|
|
12578
|
+
function Nc({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
12311
12579
|
let { ref: o, width: s } = Y(t), c = Q(), l = {
|
|
12312
12580
|
top: 6,
|
|
12313
12581
|
right: 6,
|
|
@@ -12387,7 +12655,7 @@ function jc({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
12387
12655
|
}
|
|
12388
12656
|
//#endregion
|
|
12389
12657
|
//#region src/SelectGaugeBands.tsx
|
|
12390
|
-
var
|
|
12658
|
+
var Pc = 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) {
|
|
12391
12659
|
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) => {
|
|
12392
12660
|
let t = Math.PI + e * Math.PI;
|
|
12393
12661
|
return [p + f * Math.cos(t), g + f * Math.sin(t)];
|
|
@@ -12459,7 +12727,7 @@ var Mc = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
12459
12727
|
});
|
|
12460
12728
|
//#endregion
|
|
12461
12729
|
//#region src/SelectStreamGraph.tsx
|
|
12462
|
-
function
|
|
12730
|
+
function Fc({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
12463
12731
|
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = {
|
|
12464
12732
|
top: 14,
|
|
12465
12733
|
right: 14,
|
|
@@ -12550,7 +12818,7 @@ function Nc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
12550
12818
|
}
|
|
12551
12819
|
//#endregion
|
|
12552
12820
|
//#region src/SelectSunburst.tsx
|
|
12553
|
-
var
|
|
12821
|
+
var Ic = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
12554
12822
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
12555
12823
|
var t;
|
|
12556
12824
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -12643,7 +12911,7 @@ var Pc = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
12643
12911
|
});
|
|
12644
12912
|
//#endregion
|
|
12645
12913
|
//#region src/SelectViolin.tsx
|
|
12646
|
-
function
|
|
12914
|
+
function Lc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
12647
12915
|
let { ref: a, width: o } = Y(t), s = Q(), c = Ps, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = ws(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
|
|
12648
12916
|
return /* @__PURE__ */ h("div", {
|
|
12649
12917
|
...i,
|
|
@@ -12731,7 +12999,7 @@ function Fc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
12731
12999
|
}
|
|
12732
13000
|
//#endregion
|
|
12733
13001
|
//#region src/SelectChord.tsx
|
|
12734
|
-
var
|
|
13002
|
+
var Rc = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
12735
13003
|
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;
|
|
12736
13004
|
for (let e = 0; e < l; e++) {
|
|
12737
13005
|
let t = b, n = b + g[e] * v;
|
|
@@ -12816,7 +13084,7 @@ var Ic = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
12816
13084
|
});
|
|
12817
13085
|
//#endregion
|
|
12818
13086
|
//#region src/SelectHexbin.tsx
|
|
12819
|
-
function
|
|
13087
|
+
function zc({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
12820
13088
|
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) => {
|
|
12821
13089
|
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);
|
|
12822
13090
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
@@ -12868,7 +13136,7 @@ function Lc({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
12868
13136
|
}
|
|
12869
13137
|
//#endregion
|
|
12870
13138
|
//#region src/SelectWordCloud.tsx
|
|
12871
|
-
var
|
|
13139
|
+
var Bc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
12872
13140
|
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);
|
|
12873
13141
|
return /* @__PURE__ */ m("div", {
|
|
12874
13142
|
ref: a,
|
|
@@ -12885,7 +13153,7 @@ var Rc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
12885
13153
|
children: e.text
|
|
12886
13154
|
}, `${e.text}-${t}`))
|
|
12887
13155
|
});
|
|
12888
|
-
}),
|
|
13156
|
+
}), Vc = [
|
|
12889
13157
|
[
|
|
12890
13158
|
-59.6,
|
|
12891
13159
|
-80,
|
|
@@ -23280,24 +23548,24 @@ var Rc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
23280
23548
|
-27.1,
|
|
23281
23549
|
83.5
|
|
23282
23550
|
]
|
|
23283
|
-
],
|
|
23284
|
-
function
|
|
23285
|
-
let n = e *
|
|
23551
|
+
], Hc = Math.PI / 180;
|
|
23552
|
+
function Uc(e, t) {
|
|
23553
|
+
let n = e * Hc, r = t * Hc;
|
|
23286
23554
|
return [
|
|
23287
23555
|
Math.cos(n) * Math.sin(r),
|
|
23288
23556
|
Math.sin(n),
|
|
23289
23557
|
Math.cos(n) * Math.cos(r)
|
|
23290
23558
|
];
|
|
23291
23559
|
}
|
|
23292
|
-
function
|
|
23293
|
-
let a = r *
|
|
23560
|
+
function Wc([e, t, n], r, i) {
|
|
23561
|
+
let a = r * Hc, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * Hc;
|
|
23294
23562
|
return [
|
|
23295
23563
|
o,
|
|
23296
23564
|
t * Math.cos(c) - s * Math.sin(c),
|
|
23297
23565
|
t * Math.sin(c) + s * Math.cos(c)
|
|
23298
23566
|
];
|
|
23299
23567
|
}
|
|
23300
|
-
function
|
|
23568
|
+
function Gc(e, t, n) {
|
|
23301
23569
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
23302
23570
|
r = Math.max(-1, Math.min(1, r));
|
|
23303
23571
|
let i = Math.acos(r);
|
|
@@ -23309,7 +23577,7 @@ function Uc(e, t, n) {
|
|
|
23309
23577
|
e[2] * o + t[2] * s
|
|
23310
23578
|
];
|
|
23311
23579
|
}
|
|
23312
|
-
var
|
|
23580
|
+
var Kc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, qc = r(function({ points: e = [], arcs: t = [], size: n = 320, tilt: r = -18, spin: i = !0, speed: a = 7, color: c = "var(--select-chart-1)", format: f = Z, legend: p = !0, map: g = !0, fluid: _ = !1, onZoomChange: v, className: y, ...b }, x) {
|
|
23313
23581
|
var S, C;
|
|
23314
23582
|
let w = s(), T = Q(), E = u(null), D = Cs(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = u(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = u({
|
|
23315
23583
|
lng: -O,
|
|
@@ -23370,7 +23638,7 @@ var Wc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23370
23638
|
var t, n;
|
|
23371
23639
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, R(!1), V());
|
|
23372
23640
|
}, G = (D / 2 - 6) * M.current, K = D / 2, q = D / 2, ae = (e) => {
|
|
23373
|
-
let t =
|
|
23641
|
+
let t = Wc(e, A.current.lng, A.current.lat);
|
|
23374
23642
|
return {
|
|
23375
23643
|
x: K + G * t[0],
|
|
23376
23644
|
y: q - G * t[1],
|
|
@@ -23380,25 +23648,25 @@ var Wc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23380
23648
|
let e = [];
|
|
23381
23649
|
for (let t = -180; t < 180; t += 30) {
|
|
23382
23650
|
let n = [];
|
|
23383
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
23651
|
+
for (let e = 0; e <= 48; e++) n.push(Uc(-90 + 180 * e / 48, t));
|
|
23384
23652
|
e.push(n);
|
|
23385
23653
|
}
|
|
23386
23654
|
for (let t = -60; t <= 60; t += 30) {
|
|
23387
23655
|
let n = [];
|
|
23388
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
23656
|
+
for (let e = 0; e <= 48; e++) n.push(Uc(t, -180 + 360 * e / 48));
|
|
23389
23657
|
e.push(n);
|
|
23390
23658
|
}
|
|
23391
23659
|
return e;
|
|
23392
|
-
}, []), se = l(() =>
|
|
23660
|
+
}, []), se = l(() => Vc.map((e) => {
|
|
23393
23661
|
let t = [];
|
|
23394
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
23662
|
+
for (let n = 0; n < e.length; n += 2) t.push(Uc(e[n + 1], e[n]));
|
|
23395
23663
|
return t;
|
|
23396
23664
|
}), []), J = (e) => ({
|
|
23397
23665
|
x: K + G * e[0],
|
|
23398
23666
|
y: q - G * e[1]
|
|
23399
23667
|
}), ce = "", le = "";
|
|
23400
23668
|
if (g) for (let e of se) {
|
|
23401
|
-
let t = e.map((e) =>
|
|
23669
|
+
let t = e.map((e) => Wc(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
23402
23670
|
for (let e of t) if (e[2] > 0) {
|
|
23403
23671
|
let t = J(e);
|
|
23404
23672
|
le += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -23446,7 +23714,7 @@ var Wc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23446
23714
|
}
|
|
23447
23715
|
return t;
|
|
23448
23716
|
}, de = Math.max(1, ...e.map((e) => e.value ?? 0)), fe = e.map((e, t) => {
|
|
23449
|
-
let n = ae(
|
|
23717
|
+
let n = ae(Uc(e.lat, e.lng));
|
|
23450
23718
|
return {
|
|
23451
23719
|
...e,
|
|
23452
23720
|
i: t,
|
|
@@ -23456,20 +23724,20 @@ var Wc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23456
23724
|
col: e.color ?? c
|
|
23457
23725
|
};
|
|
23458
23726
|
}), pe = z == null ? null : e[z], me = t.map((e, t) => {
|
|
23459
|
-
let n =
|
|
23727
|
+
let n = Uc(e.from.lat, e.from.lng), r = Uc(e.to.lat, e.to.lng), i = "", a = !1;
|
|
23460
23728
|
for (let e = 0; e <= 40; e++) {
|
|
23461
|
-
let t = e / 40, o =
|
|
23729
|
+
let t = e / 40, o = Gc(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = Wc(o, A.current.lng, A.current.lat), l = ae([
|
|
23462
23730
|
o[0] * s,
|
|
23463
23731
|
o[1] * s,
|
|
23464
23732
|
o[2] * s
|
|
23465
23733
|
]);
|
|
23466
23734
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
23467
23735
|
}
|
|
23468
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
23736
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = Gc(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = Wc(s, A.current.lng, A.current.lat), d = ae([
|
|
23469
23737
|
s[0] * l,
|
|
23470
23738
|
s[1] * l,
|
|
23471
23739
|
s[2] * l
|
|
23472
|
-
]), f = pe != null && (
|
|
23740
|
+
]), f = pe != null && (Kc(e.from, pe) || Kc(e.to, pe));
|
|
23473
23741
|
return {
|
|
23474
23742
|
d: i,
|
|
23475
23743
|
col: e.color ?? c,
|
|
@@ -23743,7 +24011,7 @@ var Wc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23743
24011
|
});
|
|
23744
24012
|
//#endregion
|
|
23745
24013
|
//#region src/SelectTicker.tsx
|
|
23746
|
-
function
|
|
24014
|
+
function Jc({ children: e, speed: t = 28, className: n, ...r }) {
|
|
23747
24015
|
let i = u(null), a = u(null), s = u(null), c = Cs(i, 0), l = Cs(s, 0), d = c > 0 && l > c + 1, f = u(0), p = u(null), g = u(!1);
|
|
23748
24016
|
o(() => {
|
|
23749
24017
|
var e, n;
|
|
@@ -23805,7 +24073,7 @@ function Kc({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
23805
24073
|
}
|
|
23806
24074
|
//#endregion
|
|
23807
24075
|
//#region src/SelectPareto.tsx
|
|
23808
|
-
function
|
|
24076
|
+
function Yc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
23809
24077
|
var a;
|
|
23810
24078
|
let { ref: o, width: c } = Y(t), l = Q(), u = s(), [f, p] = d(null), g = {
|
|
23811
24079
|
...Ps,
|
|
@@ -23931,7 +24199,7 @@ function qc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
23931
24199
|
}
|
|
23932
24200
|
//#endregion
|
|
23933
24201
|
//#region src/SelectWaffle.tsx
|
|
23934
|
-
var
|
|
24202
|
+
var Xc = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
23935
24203
|
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) => ({
|
|
23936
24204
|
i: t,
|
|
23937
24205
|
frac: e - u[t]
|
|
@@ -23980,7 +24248,7 @@ var Jc = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
23980
24248
|
});
|
|
23981
24249
|
//#endregion
|
|
23982
24250
|
//#region src/SelectPyramid.tsx
|
|
23983
|
-
function
|
|
24251
|
+
function Zc({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
23984
24252
|
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);
|
|
23985
24253
|
return /* @__PURE__ */ h("div", {
|
|
23986
24254
|
...l,
|
|
@@ -24088,7 +24356,7 @@ function Yc({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
24088
24356
|
}
|
|
24089
24357
|
//#endregion
|
|
24090
24358
|
//#region src/SelectBump.tsx
|
|
24091
|
-
function
|
|
24359
|
+
function Qc({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
24092
24360
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
24093
24361
|
top: 16,
|
|
24094
24362
|
right: 78,
|
|
@@ -24173,7 +24441,7 @@ function Xc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
24173
24441
|
}
|
|
24174
24442
|
//#endregion
|
|
24175
24443
|
//#region src/SelectParallel.tsx
|
|
24176
|
-
function
|
|
24444
|
+
function $c({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
24177
24445
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
24178
24446
|
top: 30,
|
|
24179
24447
|
right: 28,
|
|
@@ -24265,25 +24533,25 @@ function Zc({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
24265
24533
|
}
|
|
24266
24534
|
//#endregion
|
|
24267
24535
|
//#region src/SelectIcicle.tsx
|
|
24268
|
-
function
|
|
24269
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
24536
|
+
function el(e) {
|
|
24537
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + el(t), 0) : e.value ?? 0;
|
|
24270
24538
|
}
|
|
24271
|
-
function
|
|
24272
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
24539
|
+
function tl(e, t = 0) {
|
|
24540
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => tl(e, t + 1)));
|
|
24273
24541
|
}
|
|
24274
|
-
function
|
|
24275
|
-
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u =
|
|
24542
|
+
function nl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
24543
|
+
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u = tl(e), f = t / (u + 1), p = [], g = (e, t, n, r, i) => {
|
|
24276
24544
|
if (p.push({
|
|
24277
24545
|
node: e,
|
|
24278
24546
|
x0: t,
|
|
24279
24547
|
x1: n,
|
|
24280
24548
|
depth: r,
|
|
24281
24549
|
color: e.color ?? X(i),
|
|
24282
|
-
value:
|
|
24550
|
+
value: el(e)
|
|
24283
24551
|
}), e.children && e.children.length) {
|
|
24284
|
-
let a = e.children.reduce((e, t) => e +
|
|
24552
|
+
let a = e.children.reduce((e, t) => e + el(t), 0) || 1, o = t;
|
|
24285
24553
|
e.children.forEach((e, s) => {
|
|
24286
|
-
let c = (n - t) *
|
|
24554
|
+
let c = (n - t) * el(e) / a;
|
|
24287
24555
|
g(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
24288
24556
|
});
|
|
24289
24557
|
}
|
|
@@ -24344,7 +24612,7 @@ function el({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
24344
24612
|
}
|
|
24345
24613
|
//#endregion
|
|
24346
24614
|
//#region src/SelectTree.tsx
|
|
24347
|
-
function
|
|
24615
|
+
function rl({ data: e, height: t = 260, className: n, ...r }) {
|
|
24348
24616
|
let { ref: i, width: a } = Y(t), o = Q(), [s, c] = d(null), l = {
|
|
24349
24617
|
top: 14,
|
|
24350
24618
|
right: 96,
|
|
@@ -24422,7 +24690,7 @@ function tl({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
24422
24690
|
}
|
|
24423
24691
|
//#endregion
|
|
24424
24692
|
//#region src/SelectVenn.tsx
|
|
24425
|
-
var
|
|
24693
|
+
var il = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
24426
24694
|
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]] : [
|
|
24427
24695
|
[o, s - l * .5],
|
|
24428
24696
|
[o - l * .5, s + l * .36],
|
|
@@ -24487,7 +24755,7 @@ var nl = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
24487
24755
|
}, t))
|
|
24488
24756
|
})]
|
|
24489
24757
|
});
|
|
24490
|
-
}),
|
|
24758
|
+
}), al = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
24491
24759
|
let o = Q(), [s, c] = d(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
24492
24760
|
d: e,
|
|
24493
24761
|
i: t,
|
|
@@ -24590,7 +24858,7 @@ var nl = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
24590
24858
|
});
|
|
24591
24859
|
//#endregion
|
|
24592
24860
|
//#region src/SelectNetwork.tsx
|
|
24593
|
-
function
|
|
24861
|
+
function ol({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
24594
24862
|
let { ref: o, width: s } = Y(n), c = Q(), [u, f] = d(null), p = l(() => {
|
|
24595
24863
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
24596
24864
|
if (!a) return o;
|
|
@@ -24704,7 +24972,7 @@ function il({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
24704
24972
|
}
|
|
24705
24973
|
//#endregion
|
|
24706
24974
|
//#region src/SelectSearchMenu.tsx
|
|
24707
|
-
function
|
|
24975
|
+
function sl({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", children: o }) {
|
|
24708
24976
|
return /* @__PURE__ */ h("div", {
|
|
24709
24977
|
className: "select-combobox__panel select-searchmenu",
|
|
24710
24978
|
style: { width: a },
|
|
@@ -24721,7 +24989,7 @@ function al({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
24721
24989
|
className: "select-combobox__empty",
|
|
24722
24990
|
role: "status",
|
|
24723
24991
|
children: r
|
|
24724
|
-
}) : /* @__PURE__ */ m(
|
|
24992
|
+
}) : /* @__PURE__ */ m(cl, { children: o }),
|
|
24725
24993
|
i != null && i !== !1 ? /* @__PURE__ */ m("div", {
|
|
24726
24994
|
className: "select-searchmenu__footer",
|
|
24727
24995
|
children: i
|
|
@@ -24729,7 +24997,7 @@ function al({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
24729
24997
|
]
|
|
24730
24998
|
});
|
|
24731
24999
|
}
|
|
24732
|
-
function
|
|
25000
|
+
function cl({ children: e }) {
|
|
24733
25001
|
let t = Dn({
|
|
24734
25002
|
selector: ".select-combobox__option",
|
|
24735
25003
|
y: 6,
|
|
@@ -24743,7 +25011,7 @@ function ol({ children: e }) {
|
|
|
24743
25011
|
children: e
|
|
24744
25012
|
});
|
|
24745
25013
|
}
|
|
24746
|
-
function
|
|
25014
|
+
function ll({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSelect: i }) {
|
|
24747
25015
|
return /* @__PURE__ */ h("button", {
|
|
24748
25016
|
type: "button",
|
|
24749
25017
|
role: "option",
|
|
@@ -24769,7 +25037,7 @@ function sl({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSele
|
|
|
24769
25037
|
}
|
|
24770
25038
|
//#endregion
|
|
24771
25039
|
//#region src/SelectThemeSwitcher.tsx
|
|
24772
|
-
var
|
|
25040
|
+
var ul = [
|
|
24773
25041
|
{
|
|
24774
25042
|
value: "light",
|
|
24775
25043
|
label: "Claro",
|
|
@@ -24786,15 +25054,15 @@ var cl = [
|
|
|
24786
25054
|
icon: /* @__PURE__ */ m(Oe, {})
|
|
24787
25055
|
}
|
|
24788
25056
|
];
|
|
24789
|
-
function
|
|
25057
|
+
function dl(e) {
|
|
24790
25058
|
if (e === "system") {
|
|
24791
25059
|
var t, n;
|
|
24792
25060
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
24793
25061
|
}
|
|
24794
25062
|
return e;
|
|
24795
25063
|
}
|
|
24796
|
-
function
|
|
24797
|
-
let [i, a] = d(!1), s = u(null), c =
|
|
25064
|
+
function fl({ value: e, onChange: t, className: n, ...r }) {
|
|
25065
|
+
let [i, a] = d(!1), s = u(null), c = ul.find((t) => t.value === e) ?? ul[2];
|
|
24798
25066
|
return o(() => {
|
|
24799
25067
|
if (!i) return;
|
|
24800
25068
|
let e = (e) => {
|
|
@@ -24814,7 +25082,7 @@ function ul({ value: e, onChange: t, className: n, ...r }) {
|
|
|
24814
25082
|
})
|
|
24815
25083
|
}), i && /* @__PURE__ */ m("div", {
|
|
24816
25084
|
className: "select-themeswitcher__popover",
|
|
24817
|
-
children: /* @__PURE__ */ m(xa, { children:
|
|
25085
|
+
children: /* @__PURE__ */ m(xa, { children: ul.map((n) => /* @__PURE__ */ m(Ca, {
|
|
24818
25086
|
icon: n.icon,
|
|
24819
25087
|
active: n.value === e,
|
|
24820
25088
|
trailing: n.value === e ? /* @__PURE__ */ m(Be, {}) : null,
|
|
@@ -24828,8 +25096,8 @@ function ul({ value: e, onChange: t, className: n, ...r }) {
|
|
|
24828
25096
|
}
|
|
24829
25097
|
//#endregion
|
|
24830
25098
|
//#region src/SelectDetail.tsx
|
|
24831
|
-
var
|
|
24832
|
-
function
|
|
25099
|
+
var pl = n(!1);
|
|
25100
|
+
function ml({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
24833
25101
|
let r = Dn({
|
|
24834
25102
|
selector: ".select-detail",
|
|
24835
25103
|
y: 8,
|
|
@@ -24837,7 +25105,7 @@ function fl({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
24837
25105
|
stagger: .05,
|
|
24838
25106
|
scroll: !0
|
|
24839
25107
|
});
|
|
24840
|
-
return /* @__PURE__ */ m(
|
|
25108
|
+
return /* @__PURE__ */ m(pl.Provider, {
|
|
24841
25109
|
value: n,
|
|
24842
25110
|
children: /* @__PURE__ */ m("div", {
|
|
24843
25111
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}`,
|
|
@@ -24846,8 +25114,8 @@ function fl({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
24846
25114
|
})
|
|
24847
25115
|
});
|
|
24848
25116
|
}
|
|
24849
|
-
var
|
|
24850
|
-
let l = a(
|
|
25117
|
+
var hl = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
25118
|
+
let l = a(pl), u = i ?? l;
|
|
24851
25119
|
return /* @__PURE__ */ h("div", {
|
|
24852
25120
|
ref: c,
|
|
24853
25121
|
...s,
|
|
@@ -24867,7 +25135,7 @@ var pl = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
24867
25135
|
})
|
|
24868
25136
|
]
|
|
24869
25137
|
});
|
|
24870
|
-
}),
|
|
25138
|
+
}), gl = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
|
|
24871
25139
|
let s = r === "vertical";
|
|
24872
25140
|
return /* @__PURE__ */ m("ol", {
|
|
24873
25141
|
ref: o,
|
|
@@ -24906,7 +25174,7 @@ var pl = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
24906
25174
|
});
|
|
24907
25175
|
//#endregion
|
|
24908
25176
|
//#region src/SelectSetupGuide.tsx
|
|
24909
|
-
function
|
|
25177
|
+
function _l({ status: e }) {
|
|
24910
25178
|
return /* @__PURE__ */ m("span", {
|
|
24911
25179
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
24912
25180
|
"aria-hidden": "true",
|
|
@@ -24925,13 +25193,13 @@ function hl({ status: e }) {
|
|
|
24925
25193
|
})
|
|
24926
25194
|
});
|
|
24927
25195
|
}
|
|
24928
|
-
var
|
|
25196
|
+
var vl = {
|
|
24929
25197
|
done: "feito",
|
|
24930
25198
|
todo: "a fazer",
|
|
24931
25199
|
next: "próximo passo",
|
|
24932
25200
|
skipped: "pulado",
|
|
24933
25201
|
waiting: "aguardando"
|
|
24934
|
-
},
|
|
25202
|
+
}, yl = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
|
|
24935
25203
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0;
|
|
24936
25204
|
return /* @__PURE__ */ h("section", {
|
|
24937
25205
|
ref: u,
|
|
@@ -24994,14 +25262,14 @@ var gl = {
|
|
|
24994
25262
|
children: e.steps.map((e) => /* @__PURE__ */ h("li", {
|
|
24995
25263
|
className: `select-setupguide__step is-${e.status}`,
|
|
24996
25264
|
children: [
|
|
24997
|
-
/* @__PURE__ */ m(
|
|
25265
|
+
/* @__PURE__ */ m(_l, { status: e.status }),
|
|
24998
25266
|
/* @__PURE__ */ h("span", {
|
|
24999
25267
|
className: "select-setupguide__text",
|
|
25000
25268
|
children: [/* @__PURE__ */ h("span", {
|
|
25001
25269
|
className: "select-setupguide__steptitle",
|
|
25002
25270
|
children: [e.title, /* @__PURE__ */ h("span", {
|
|
25003
25271
|
className: "select-setupguide__sr",
|
|
25004
|
-
children: [" — ",
|
|
25272
|
+
children: [" — ", vl[e.status]]
|
|
25005
25273
|
})]
|
|
25006
25274
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
25007
25275
|
className: "select-setupguide__stepdesc",
|
|
@@ -25020,7 +25288,7 @@ var gl = {
|
|
|
25020
25288
|
})]
|
|
25021
25289
|
});
|
|
25022
25290
|
});
|
|
25023
|
-
function
|
|
25291
|
+
function bl({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
25024
25292
|
return /* @__PURE__ */ h("div", {
|
|
25025
25293
|
className: "select-setupnext",
|
|
25026
25294
|
children: [
|
|
@@ -25045,37 +25313,37 @@ function vl({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
25045
25313
|
}
|
|
25046
25314
|
//#endregion
|
|
25047
25315
|
//#region src/SelectTour.tsx
|
|
25048
|
-
var
|
|
25049
|
-
function
|
|
25316
|
+
var xl = 6, Sl = 12;
|
|
25317
|
+
function Cl(e) {
|
|
25050
25318
|
let t = document.querySelector(e);
|
|
25051
25319
|
if (!t) return null;
|
|
25052
25320
|
let n = t.getBoundingClientRect();
|
|
25053
25321
|
return n.width === 0 && n.height === 0 ? null : {
|
|
25054
|
-
top: n.top -
|
|
25055
|
-
left: n.left -
|
|
25322
|
+
top: n.top - xl,
|
|
25323
|
+
left: n.left - xl,
|
|
25056
25324
|
width: n.width + 12,
|
|
25057
25325
|
height: n.height + 12
|
|
25058
25326
|
};
|
|
25059
25327
|
}
|
|
25060
|
-
function
|
|
25328
|
+
function wl(e) {
|
|
25061
25329
|
let t = document.querySelector(e);
|
|
25062
25330
|
if (!t) return !1;
|
|
25063
25331
|
let n = t.getBoundingClientRect();
|
|
25064
25332
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
25065
25333
|
}
|
|
25066
|
-
function
|
|
25067
|
-
let s = l(() => e ? t.filter((e) =>
|
|
25334
|
+
function Tl({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
25335
|
+
let s = l(() => e ? t.filter((e) => wl(e.target)) : [], [e]), [f, p] = d(0), [_, v] = d(null), [y, b] = d(null), x = u(null), S = u(null);
|
|
25068
25336
|
o(() => {
|
|
25069
25337
|
e && p(0);
|
|
25070
25338
|
}, [e]);
|
|
25071
25339
|
let C = s[f], w = f === s.length - 1, T = i(() => {
|
|
25072
25340
|
if (!C) return;
|
|
25073
|
-
let e =
|
|
25341
|
+
let e = Cl(C.target);
|
|
25074
25342
|
v(e);
|
|
25075
25343
|
let t = x.current;
|
|
25076
25344
|
if (!e || !t) return;
|
|
25077
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
25078
|
-
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height +
|
|
25345
|
+
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + Sl, s = e.top;
|
|
25346
|
+
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + Sl, s + r > a - 8 && (s = e.top - r - Sl)), s = Math.min(Math.max(8, s), a - r - 8), b({
|
|
25079
25347
|
top: s,
|
|
25080
25348
|
left: o
|
|
25081
25349
|
});
|
|
@@ -25177,7 +25445,7 @@ function Cl({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
25177
25445
|
}
|
|
25178
25446
|
//#endregion
|
|
25179
25447
|
//#region src/SelectPlanCard.tsx
|
|
25180
|
-
var
|
|
25448
|
+
var El = 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) {
|
|
25181
25449
|
return /* @__PURE__ */ h("div", {
|
|
25182
25450
|
ref: d,
|
|
25183
25451
|
...u,
|
|
@@ -25232,11 +25500,11 @@ var wl = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25232
25500
|
})]
|
|
25233
25501
|
})]
|
|
25234
25502
|
});
|
|
25235
|
-
}),
|
|
25503
|
+
}), Dl = r(function({ title: e, description: t, headerAction: n, footer: r, dense: i = !1, spread: a = !1, children: o, className: s, ...c }, l) {
|
|
25236
25504
|
return /* @__PURE__ */ h("div", {
|
|
25237
|
-
ref:
|
|
25238
|
-
...
|
|
25239
|
-
className: `select-listcard${i ? " select-listcard--dense" : ""}${
|
|
25505
|
+
ref: l,
|
|
25506
|
+
...c,
|
|
25507
|
+
className: `select-listcard${i ? " select-listcard--dense" : ""}${a ? " select-listcard--spread" : ""}${s ? " " + s : ""}`,
|
|
25240
25508
|
children: [
|
|
25241
25509
|
(e || n) && /* @__PURE__ */ h("div", {
|
|
25242
25510
|
className: "select-listcard__head",
|
|
@@ -25258,7 +25526,7 @@ var wl = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25258
25526
|
className: "select-listcard__body",
|
|
25259
25527
|
children: /* @__PURE__ */ m("div", {
|
|
25260
25528
|
className: "select-listcard__rows",
|
|
25261
|
-
children:
|
|
25529
|
+
children: o
|
|
25262
25530
|
})
|
|
25263
25531
|
}),
|
|
25264
25532
|
r && /* @__PURE__ */ m("div", {
|
|
@@ -25268,7 +25536,7 @@ var wl = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25268
25536
|
]
|
|
25269
25537
|
});
|
|
25270
25538
|
});
|
|
25271
|
-
function
|
|
25539
|
+
function Ol({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, onClick: o }) {
|
|
25272
25540
|
let s = /* @__PURE__ */ h(p, { children: [
|
|
25273
25541
|
e && /* @__PURE__ */ m("span", {
|
|
25274
25542
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
@@ -25300,7 +25568,7 @@ function El({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
25300
25568
|
children: s
|
|
25301
25569
|
});
|
|
25302
25570
|
}
|
|
25303
|
-
function
|
|
25571
|
+
function kl({ children: e }) {
|
|
25304
25572
|
return /* @__PURE__ */ m("div", {
|
|
25305
25573
|
className: "select-listlabel",
|
|
25306
25574
|
children: e
|
|
@@ -25308,7 +25576,7 @@ function Dl({ children: e }) {
|
|
|
25308
25576
|
}
|
|
25309
25577
|
//#endregion
|
|
25310
25578
|
//#region src/SelectThumbnail.tsx
|
|
25311
|
-
var
|
|
25579
|
+
var Al = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, s) {
|
|
25312
25580
|
let [c, l] = d(!1);
|
|
25313
25581
|
o(() => l(!1), [e]);
|
|
25314
25582
|
let u = /* @__PURE__ */ m("span", {
|
|
@@ -25342,7 +25610,7 @@ var Ol = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
|
|
|
25342
25610
|
});
|
|
25343
25611
|
//#endregion
|
|
25344
25612
|
//#region src/SelectImageZoomModal.tsx
|
|
25345
|
-
function
|
|
25613
|
+
function jl({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
25346
25614
|
return /* @__PURE__ */ m(La, {
|
|
25347
25615
|
open: e,
|
|
25348
25616
|
onClose: t,
|
|
@@ -25361,7 +25629,7 @@ function kl({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
25361
25629
|
}
|
|
25362
25630
|
//#endregion
|
|
25363
25631
|
//#region src/SelectZoomThumbnail.tsx
|
|
25364
|
-
function
|
|
25632
|
+
function Ml({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
25365
25633
|
let [a, o] = d(!1);
|
|
25366
25634
|
return e ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
25367
25635
|
type: "button",
|
|
@@ -25374,19 +25642,19 @@ function Al({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
25374
25642
|
cursor: "zoom-in",
|
|
25375
25643
|
display: "inline-flex"
|
|
25376
25644
|
},
|
|
25377
|
-
children: /* @__PURE__ */ m(
|
|
25645
|
+
children: /* @__PURE__ */ m(Al, {
|
|
25378
25646
|
src: e,
|
|
25379
25647
|
size: n,
|
|
25380
25648
|
alt: t,
|
|
25381
25649
|
count: i
|
|
25382
25650
|
})
|
|
25383
|
-
}), a && /* @__PURE__ */ m(
|
|
25651
|
+
}), a && /* @__PURE__ */ m(jl, {
|
|
25384
25652
|
open: !0,
|
|
25385
25653
|
onClose: () => o(!1),
|
|
25386
25654
|
src: e,
|
|
25387
25655
|
alt: t,
|
|
25388
25656
|
title: r ?? t
|
|
25389
|
-
})] }) : /* @__PURE__ */ m(
|
|
25657
|
+
})] }) : /* @__PURE__ */ m(Al, {
|
|
25390
25658
|
size: n,
|
|
25391
25659
|
alt: t,
|
|
25392
25660
|
count: i
|
|
@@ -25394,7 +25662,7 @@ function Al({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
25394
25662
|
}
|
|
25395
25663
|
//#endregion
|
|
25396
25664
|
//#region src/SelectMediaCell.tsx
|
|
25397
|
-
var
|
|
25665
|
+
var Nl = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
25398
25666
|
return /* @__PURE__ */ h("span", {
|
|
25399
25667
|
ref: a,
|
|
25400
25668
|
...i,
|
|
@@ -25416,7 +25684,7 @@ var jl = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
25416
25684
|
});
|
|
25417
25685
|
//#endregion
|
|
25418
25686
|
//#region src/SelectOfflineModal.tsx
|
|
25419
|
-
function
|
|
25687
|
+
function Pl() {
|
|
25420
25688
|
let [e, t] = d(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
25421
25689
|
return o(() => {
|
|
25422
25690
|
let e = () => t(!1), n = () => t(!0);
|
|
@@ -25439,7 +25707,7 @@ function Ml() {
|
|
|
25439
25707
|
}
|
|
25440
25708
|
//#endregion
|
|
25441
25709
|
//#region src/SelectKeyValueEditor.tsx
|
|
25442
|
-
function
|
|
25710
|
+
function Fl(e) {
|
|
25443
25711
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
25444
25712
|
name: String(e.name ?? e.key ?? ""),
|
|
25445
25713
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -25448,8 +25716,8 @@ function Nl(e) {
|
|
|
25448
25716
|
value: t == null ? "" : String(t)
|
|
25449
25717
|
})) : [];
|
|
25450
25718
|
}
|
|
25451
|
-
var
|
|
25452
|
-
let d =
|
|
25719
|
+
var Il = 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) {
|
|
25720
|
+
let d = Fl(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
25453
25721
|
...t,
|
|
25454
25722
|
...n
|
|
25455
25723
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), g = () => t([...d, {
|
|
@@ -25513,7 +25781,7 @@ var Pl = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25513
25781
|
})
|
|
25514
25782
|
]
|
|
25515
25783
|
});
|
|
25516
|
-
}),
|
|
25784
|
+
}), Ll = (e) => String(e).padStart(2, "0"), Rl = {
|
|
25517
25785
|
"en-US": {
|
|
25518
25786
|
weekdays: [
|
|
25519
25787
|
"Su",
|
|
@@ -25572,34 +25840,34 @@ var Pl = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25572
25840
|
to: "Até",
|
|
25573
25841
|
cancel: "Cancelar",
|
|
25574
25842
|
apply: "Aplicar",
|
|
25575
|
-
formatDate: (e) => `${
|
|
25843
|
+
formatDate: (e) => `${Ll(e.getDate())} / ${Ll(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
25576
25844
|
}
|
|
25577
|
-
},
|
|
25845
|
+
}, zl = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Bl = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Vl = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Hl = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Ul = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Wl = (e) => {
|
|
25578
25846
|
let t = /* @__PURE__ */ new Date();
|
|
25579
25847
|
return {
|
|
25580
25848
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
25581
25849
|
to: t
|
|
25582
25850
|
};
|
|
25583
|
-
},
|
|
25851
|
+
}, Gl = [
|
|
25584
25852
|
{
|
|
25585
25853
|
id: "15m",
|
|
25586
25854
|
label: "Last 15 minutes",
|
|
25587
|
-
range: () =>
|
|
25855
|
+
range: () => Wl(15)
|
|
25588
25856
|
},
|
|
25589
25857
|
{
|
|
25590
25858
|
id: "1h",
|
|
25591
25859
|
label: "Last 1 hour",
|
|
25592
|
-
range: () =>
|
|
25860
|
+
range: () => Wl(60)
|
|
25593
25861
|
},
|
|
25594
25862
|
{
|
|
25595
25863
|
id: "3h",
|
|
25596
25864
|
label: "Last 3 hours",
|
|
25597
|
-
range: () =>
|
|
25865
|
+
range: () => Wl(180)
|
|
25598
25866
|
},
|
|
25599
25867
|
{
|
|
25600
25868
|
id: "24h",
|
|
25601
25869
|
label: "Last 24 hours",
|
|
25602
|
-
range: () =>
|
|
25870
|
+
range: () => Wl(1440)
|
|
25603
25871
|
},
|
|
25604
25872
|
{
|
|
25605
25873
|
id: "3d",
|
|
@@ -25615,78 +25883,78 @@ var Pl = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25615
25883
|
id: "all",
|
|
25616
25884
|
label: "All",
|
|
25617
25885
|
range: () => ({
|
|
25618
|
-
from:
|
|
25619
|
-
to:
|
|
25886
|
+
from: zl(/* @__PURE__ */ new Date()),
|
|
25887
|
+
to: zl(/* @__PURE__ */ new Date())
|
|
25620
25888
|
})
|
|
25621
25889
|
}
|
|
25622
|
-
],
|
|
25623
|
-
let t =
|
|
25890
|
+
], Kl = (e) => {
|
|
25891
|
+
let t = zl(/* @__PURE__ */ new Date());
|
|
25624
25892
|
return {
|
|
25625
|
-
from:
|
|
25893
|
+
from: Vl(t, -e),
|
|
25626
25894
|
to: t
|
|
25627
25895
|
};
|
|
25628
|
-
},
|
|
25629
|
-
let t = zl(
|
|
25896
|
+
}, ql = (e) => {
|
|
25897
|
+
let t = Vl(zl(/* @__PURE__ */ new Date()), -e);
|
|
25630
25898
|
return {
|
|
25631
25899
|
from: t,
|
|
25632
25900
|
to: t
|
|
25633
25901
|
};
|
|
25634
|
-
},
|
|
25902
|
+
}, Jl = [
|
|
25635
25903
|
{
|
|
25636
25904
|
id: "today",
|
|
25637
25905
|
label: "Hoje",
|
|
25638
|
-
range: () =>
|
|
25906
|
+
range: () => Kl(0)
|
|
25639
25907
|
},
|
|
25640
25908
|
{
|
|
25641
25909
|
id: "yesterday",
|
|
25642
25910
|
label: "Ontem",
|
|
25643
|
-
range: () =>
|
|
25911
|
+
range: () => ql(1)
|
|
25644
25912
|
},
|
|
25645
25913
|
{
|
|
25646
25914
|
id: "7d",
|
|
25647
25915
|
label: "Últimos 7 dias",
|
|
25648
|
-
range: () =>
|
|
25916
|
+
range: () => Kl(6)
|
|
25649
25917
|
},
|
|
25650
25918
|
{
|
|
25651
25919
|
id: "10d",
|
|
25652
25920
|
label: "Últimos 10 dias",
|
|
25653
|
-
range: () =>
|
|
25921
|
+
range: () => Kl(9)
|
|
25654
25922
|
},
|
|
25655
25923
|
{
|
|
25656
25924
|
id: "15d",
|
|
25657
25925
|
label: "Últimos 15 dias",
|
|
25658
|
-
range: () =>
|
|
25926
|
+
range: () => Kl(14)
|
|
25659
25927
|
},
|
|
25660
25928
|
{
|
|
25661
25929
|
id: "20d",
|
|
25662
25930
|
label: "Últimos 20 dias",
|
|
25663
|
-
range: () =>
|
|
25931
|
+
range: () => Kl(19)
|
|
25664
25932
|
},
|
|
25665
25933
|
{
|
|
25666
25934
|
id: "30d",
|
|
25667
25935
|
label: "Últimos 30 dias",
|
|
25668
|
-
range: () =>
|
|
25936
|
+
range: () => Kl(29)
|
|
25669
25937
|
},
|
|
25670
25938
|
{
|
|
25671
25939
|
id: "90d",
|
|
25672
25940
|
label: "Últimos 90 dias",
|
|
25673
|
-
range: () =>
|
|
25941
|
+
range: () => Kl(89)
|
|
25674
25942
|
}
|
|
25675
25943
|
];
|
|
25676
|
-
function
|
|
25944
|
+
function Yl(e) {
|
|
25677
25945
|
if (!e) return "—";
|
|
25678
25946
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
25679
25947
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
25680
25948
|
}
|
|
25681
|
-
var
|
|
25682
|
-
let p =
|
|
25949
|
+
var Xl = r(function({ value: e, presets: t = Gl, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, f) {
|
|
25950
|
+
let p = Rl[a], g = zl(/* @__PURE__ */ new Date()), _ = s ? zl(s) : null, [v, y] = d(e ?? {
|
|
25683
25951
|
from: g,
|
|
25684
25952
|
to: g
|
|
25685
|
-
}), [b, x] = d(
|
|
25953
|
+
}), [b, x] = d(Bl((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = d(null), w = Vl(Bl(b), -Bl(b).getDay()), T = Array.from({ length: 42 }, (e, t) => Vl(w, t)), E = (e) => _ ? zl(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ m("span", {
|
|
25686
25954
|
className: "select-datepicker__placeholder",
|
|
25687
25955
|
children: "— / — / ——"
|
|
25688
25956
|
}), O = (e) => {
|
|
25689
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
25957
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < zl(t.from) ? {
|
|
25690
25958
|
from: e,
|
|
25691
25959
|
to: null
|
|
25692
25960
|
} : {
|
|
@@ -25696,7 +25964,7 @@ var Jl = r(function({ value: e, presets: t = Ul, onApply: n, onCancel: r, accent
|
|
|
25696
25964
|
}, k = (e) => {
|
|
25697
25965
|
if (e.disabled || !e.range) return;
|
|
25698
25966
|
let t = e.range();
|
|
25699
|
-
y(t), C(e.id), t.from && x(
|
|
25967
|
+
y(t), C(e.id), t.from && x(Bl(t.from));
|
|
25700
25968
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
25701
25969
|
return /* @__PURE__ */ m("div", {
|
|
25702
25970
|
ref: f,
|
|
@@ -25742,7 +26010,7 @@ var Jl = r(function({ value: e, presets: t = Ul, onApply: n, onCancel: r, accent
|
|
|
25742
26010
|
}),
|
|
25743
26011
|
o && /* @__PURE__ */ m("span", {
|
|
25744
26012
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
25745
|
-
children:
|
|
26013
|
+
children: Yl(v[e])
|
|
25746
26014
|
})
|
|
25747
26015
|
]
|
|
25748
26016
|
}, e))
|
|
@@ -25754,7 +26022,7 @@ var Jl = r(function({ value: e, presets: t = Ul, onApply: n, onCancel: r, accent
|
|
|
25754
26022
|
type: "button",
|
|
25755
26023
|
className: "select-datepicker__nav",
|
|
25756
26024
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
25757
|
-
onClick: () => x((e) =>
|
|
26025
|
+
onClick: () => x((e) => Hl(e, -1)),
|
|
25758
26026
|
children: /* @__PURE__ */ m(W, {})
|
|
25759
26027
|
}),
|
|
25760
26028
|
/* @__PURE__ */ h("span", {
|
|
@@ -25769,7 +26037,7 @@ var Jl = r(function({ value: e, presets: t = Ul, onApply: n, onCancel: r, accent
|
|
|
25769
26037
|
type: "button",
|
|
25770
26038
|
className: "select-datepicker__nav",
|
|
25771
26039
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
25772
|
-
onClick: () => x((e) =>
|
|
26040
|
+
onClick: () => x((e) => Hl(e, 1)),
|
|
25773
26041
|
children: /* @__PURE__ */ m(U, {})
|
|
25774
26042
|
})
|
|
25775
26043
|
]
|
|
@@ -25781,7 +26049,7 @@ var Jl = r(function({ value: e, presets: t = Ul, onApply: n, onCancel: r, accent
|
|
|
25781
26049
|
className: "select-datepicker__weekday",
|
|
25782
26050
|
children: e
|
|
25783
26051
|
}, t)), T.map((e) => {
|
|
25784
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
26052
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && Ul(e, v.from), i = !!v.to && Ul(e, v.to), a = r || i, o = !!v.from && !!v.to && !Ul(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > zl(v.from) && e < zl(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" : "") + (Ul(e, g) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
25785
26053
|
return /* @__PURE__ */ m("div", {
|
|
25786
26054
|
className: s,
|
|
25787
26055
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -25812,17 +26080,17 @@ var Jl = r(function({ value: e, presets: t = Ul, onApply: n, onCancel: r, accent
|
|
|
25812
26080
|
})]
|
|
25813
26081
|
})
|
|
25814
26082
|
});
|
|
25815
|
-
}),
|
|
25816
|
-
function
|
|
26083
|
+
}), Zl = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Ql = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), $l = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
26084
|
+
function eu(e, t) {
|
|
25817
26085
|
for (let r of t) {
|
|
25818
26086
|
var n;
|
|
25819
26087
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
25820
|
-
if (t != null && t.from && t != null && t.to &&
|
|
26088
|
+
if (t != null && t.from && t != null && t.to && Ql(t.from, e.start) && Ql(t.to, e.end)) return r.label;
|
|
25821
26089
|
}
|
|
25822
|
-
return
|
|
26090
|
+
return Ql(e.start, e.end) ? $l(e.start) : `${$l(e.start)} – ${$l(e.end)}`;
|
|
25823
26091
|
}
|
|
25824
|
-
function
|
|
25825
|
-
let [c, l] = d(!1), u = r === null ? null : r ??
|
|
26092
|
+
function tu({ value: e, onChange: t, presets: n = Jl, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
26093
|
+
let [c, l] = d(!1), u = r === null ? null : r ?? Zl(/* @__PURE__ */ new Date());
|
|
25826
26094
|
return /* @__PURE__ */ m(Pn, {
|
|
25827
26095
|
active: c,
|
|
25828
26096
|
onClose: () => l(!1),
|
|
@@ -25836,9 +26104,9 @@ function $l({ value: e, onChange: t, presets: n = Kl, maxDate: r, placement: i =
|
|
|
25836
26104
|
icon: /* @__PURE__ */ m(nt, {}),
|
|
25837
26105
|
trailingIcon: /* @__PURE__ */ m(G, {}),
|
|
25838
26106
|
onClick: () => l((e) => !e),
|
|
25839
|
-
children:
|
|
26107
|
+
children: eu(e, n)
|
|
25840
26108
|
}),
|
|
25841
|
-
children: /* @__PURE__ */ m(
|
|
26109
|
+
children: /* @__PURE__ */ m(Xl, {
|
|
25842
26110
|
embedded: !0,
|
|
25843
26111
|
locale: "pt-BR",
|
|
25844
26112
|
showTime: !1,
|
|
@@ -25851,8 +26119,8 @@ function $l({ value: e, onChange: t, presets: n = Kl, maxDate: r, placement: i =
|
|
|
25851
26119
|
onCancel: () => l(!1),
|
|
25852
26120
|
onApply: (e) => {
|
|
25853
26121
|
e.from && t({
|
|
25854
|
-
start:
|
|
25855
|
-
end:
|
|
26122
|
+
start: Zl(e.from),
|
|
26123
|
+
end: Zl(e.to ?? e.from)
|
|
25856
26124
|
}), l(!1);
|
|
25857
26125
|
}
|
|
25858
26126
|
})
|
|
@@ -25860,7 +26128,7 @@ function $l({ value: e, onChange: t, presets: n = Kl, maxDate: r, placement: i =
|
|
|
25860
26128
|
}
|
|
25861
26129
|
//#endregion
|
|
25862
26130
|
//#region src/SelectNumberField.tsx
|
|
25863
|
-
var
|
|
26131
|
+
var nu = 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) {
|
|
25864
26132
|
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) => {
|
|
25865
26133
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
25866
26134
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -25934,7 +26202,7 @@ var eu = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
25934
26202
|
});
|
|
25935
26203
|
//#endregion
|
|
25936
26204
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
25937
|
-
function
|
|
26205
|
+
function ru({ 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 }) {
|
|
25938
26206
|
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) => {
|
|
25939
26207
|
let i = n + r;
|
|
25940
26208
|
if (i < 0 || i >= e.length) return;
|
|
@@ -26029,7 +26297,7 @@ function tu({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
26029
26297
|
}
|
|
26030
26298
|
//#endregion
|
|
26031
26299
|
//#region src/SelectBuilderLayout.tsx
|
|
26032
|
-
function
|
|
26300
|
+
function iu({ 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 }) {
|
|
26033
26301
|
let d = v();
|
|
26034
26302
|
return /* @__PURE__ */ m(Ni, {
|
|
26035
26303
|
title: e,
|
|
@@ -26069,7 +26337,7 @@ function nu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26069
26337
|
}
|
|
26070
26338
|
//#endregion
|
|
26071
26339
|
//#region src/SelectBuilderWorkspace.tsx
|
|
26072
|
-
function
|
|
26340
|
+
function au({ 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" }) {
|
|
26073
26341
|
var w;
|
|
26074
26342
|
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) => {
|
|
26075
26343
|
f === void 0 && D(e), g == null || g(e);
|
|
@@ -26229,10 +26497,10 @@ function ru({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26229
26497
|
}
|
|
26230
26498
|
//#endregion
|
|
26231
26499
|
//#region src/SelectFlowCanvas.tsx
|
|
26232
|
-
var
|
|
26233
|
-
function
|
|
26500
|
+
var ou = (e) => Math.round(e * 100) / 100;
|
|
26501
|
+
function su({ 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 }) {
|
|
26234
26502
|
let _ = s().replace(/:/g, ""), [v, y] = d(c), b = o ?? v, x = (e) => {
|
|
26235
|
-
let t =
|
|
26503
|
+
let t = ou(Math.min(f, Math.max(u, e)));
|
|
26236
26504
|
o === void 0 && y(t), l == null || l(t);
|
|
26237
26505
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
26238
26506
|
return /* @__PURE__ */ h("div", {
|
|
@@ -26348,7 +26616,7 @@ function au({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
26348
26616
|
})]
|
|
26349
26617
|
});
|
|
26350
26618
|
}
|
|
26351
|
-
function
|
|
26619
|
+
function cu({ 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 }) {
|
|
26352
26620
|
let x = `${p ? " is-selected" : v ? " is-invalid" : g ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
26353
26621
|
left: e,
|
|
26354
26622
|
top: t,
|
|
@@ -26424,7 +26692,7 @@ function ou({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
26424
26692
|
})]
|
|
26425
26693
|
});
|
|
26426
26694
|
}
|
|
26427
|
-
function
|
|
26695
|
+
function lu({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
|
|
26428
26696
|
return /* @__PURE__ */ h("div", {
|
|
26429
26697
|
className: "select-flowpage",
|
|
26430
26698
|
children: [
|
|
@@ -26486,7 +26754,7 @@ function su({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
26486
26754
|
}
|
|
26487
26755
|
//#endregion
|
|
26488
26756
|
//#region src/SelectSwitchField.tsx
|
|
26489
|
-
var
|
|
26757
|
+
var uu = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
26490
26758
|
return /* @__PURE__ */ h("div", {
|
|
26491
26759
|
ref: c,
|
|
26492
26760
|
...s,
|
|
@@ -26514,7 +26782,7 @@ var cu = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
26514
26782
|
children: i
|
|
26515
26783
|
})]
|
|
26516
26784
|
});
|
|
26517
|
-
}),
|
|
26785
|
+
}), du = [
|
|
26518
26786
|
"#212529",
|
|
26519
26787
|
"#495057",
|
|
26520
26788
|
"#868E96",
|
|
@@ -26531,13 +26799,13 @@ var cu = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
26531
26799
|
"#DB2777",
|
|
26532
26800
|
"#9333EA",
|
|
26533
26801
|
"#6D28D9"
|
|
26534
|
-
],
|
|
26535
|
-
function
|
|
26536
|
-
let t =
|
|
26802
|
+
], fu = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
26803
|
+
function pu(e) {
|
|
26804
|
+
let t = fu.exec((e ?? "").trim());
|
|
26537
26805
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
26538
26806
|
}
|
|
26539
|
-
function
|
|
26540
|
-
let t =
|
|
26807
|
+
function mu(e) {
|
|
26808
|
+
let t = pu(e);
|
|
26541
26809
|
if (!t) return 0;
|
|
26542
26810
|
let [n, r, i] = [
|
|
26543
26811
|
1,
|
|
@@ -26546,13 +26814,13 @@ function fu(e) {
|
|
|
26546
26814
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
26547
26815
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
26548
26816
|
}
|
|
26549
|
-
function
|
|
26550
|
-
let [n, r] = [
|
|
26817
|
+
function hu(e, t) {
|
|
26818
|
+
let [n, r] = [mu(e), mu(t)].sort((e, t) => t - e);
|
|
26551
26819
|
return (n + .05) / (r + .05);
|
|
26552
26820
|
}
|
|
26553
|
-
var
|
|
26554
|
-
function
|
|
26555
|
-
let t =
|
|
26821
|
+
var gu = (e) => Math.min(1, Math.max(0, e));
|
|
26822
|
+
function _u(e) {
|
|
26823
|
+
let t = pu(e) ?? "#000000", [n, r, i] = [
|
|
26556
26824
|
1,
|
|
26557
26825
|
3,
|
|
26558
26826
|
5
|
|
@@ -26563,7 +26831,7 @@ function hu(e) {
|
|
|
26563
26831
|
v: a
|
|
26564
26832
|
};
|
|
26565
26833
|
}
|
|
26566
|
-
function
|
|
26834
|
+
function vu({ h: e, s: t, v: n }) {
|
|
26567
26835
|
let r = (r) => {
|
|
26568
26836
|
let i = (r + e / 60) % 6;
|
|
26569
26837
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -26574,26 +26842,26 @@ function gu({ h: e, s: t, v: n }) {
|
|
|
26574
26842
|
r(1)
|
|
26575
26843
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
26576
26844
|
}
|
|
26577
|
-
function
|
|
26578
|
-
let [n, r] = d(() =>
|
|
26845
|
+
function yu({ hex: e, onPick: t }) {
|
|
26846
|
+
let [n, r] = d(() => _u(e ?? "#1D4ED8")), i = u(n), a = (e) => {
|
|
26579
26847
|
i.current = e, r(e);
|
|
26580
26848
|
};
|
|
26581
26849
|
o(() => {
|
|
26582
|
-
if (!e ||
|
|
26583
|
-
let t =
|
|
26850
|
+
if (!e || vu(i.current) === e) return;
|
|
26851
|
+
let t = _u(e);
|
|
26584
26852
|
a(t.s === 0 || t.v === 0 ? {
|
|
26585
26853
|
...t,
|
|
26586
26854
|
h: i.current.h
|
|
26587
26855
|
} : t);
|
|
26588
26856
|
}, [e]);
|
|
26589
26857
|
let s = (e) => {
|
|
26590
|
-
a(e), t(
|
|
26858
|
+
a(e), t(vu(e));
|
|
26591
26859
|
}, c = (e, t, n) => {
|
|
26592
26860
|
var r;
|
|
26593
26861
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
26594
26862
|
let i = (t) => {
|
|
26595
26863
|
let r = e.getBoundingClientRect();
|
|
26596
|
-
n(
|
|
26864
|
+
n(gu((t.clientX - r.left) / (r.width || 1)), gu((t.clientY - r.top) / (r.height || 1)));
|
|
26597
26865
|
};
|
|
26598
26866
|
i(t);
|
|
26599
26867
|
let a = (e) => i(e), o = () => {
|
|
@@ -26603,20 +26871,20 @@ function _u({ hex: e, onPick: t }) {
|
|
|
26603
26871
|
}, l = (e) => {
|
|
26604
26872
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, o = e.key === "ArrowLeft" ? {
|
|
26605
26873
|
h: n,
|
|
26606
|
-
s:
|
|
26874
|
+
s: gu(r - t),
|
|
26607
26875
|
v: a
|
|
26608
26876
|
} : e.key === "ArrowRight" ? {
|
|
26609
26877
|
h: n,
|
|
26610
|
-
s:
|
|
26878
|
+
s: gu(r + t),
|
|
26611
26879
|
v: a
|
|
26612
26880
|
} : e.key === "ArrowUp" ? {
|
|
26613
26881
|
h: n,
|
|
26614
26882
|
s: r,
|
|
26615
|
-
v:
|
|
26883
|
+
v: gu(a + t)
|
|
26616
26884
|
} : e.key === "ArrowDown" ? {
|
|
26617
26885
|
h: n,
|
|
26618
26886
|
s: r,
|
|
26619
|
-
v:
|
|
26887
|
+
v: gu(a - t)
|
|
26620
26888
|
} : null;
|
|
26621
26889
|
o && (e.preventDefault(), s(o));
|
|
26622
26890
|
}, f = (e) => {
|
|
@@ -26626,11 +26894,11 @@ function _u({ hex: e, onPick: t }) {
|
|
|
26626
26894
|
s: r,
|
|
26627
26895
|
v: a
|
|
26628
26896
|
}));
|
|
26629
|
-
}, g =
|
|
26897
|
+
}, g = vu({
|
|
26630
26898
|
h: n.h,
|
|
26631
26899
|
s: 1,
|
|
26632
26900
|
v: 1
|
|
26633
|
-
}), _ =
|
|
26901
|
+
}), _ = vu(n);
|
|
26634
26902
|
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
|
|
26635
26903
|
className: "select-colorfield__sv",
|
|
26636
26904
|
style: { backgroundColor: g },
|
|
@@ -26674,24 +26942,24 @@ function _u({ hex: e, onPick: t }) {
|
|
|
26674
26942
|
})
|
|
26675
26943
|
})] });
|
|
26676
26944
|
}
|
|
26677
|
-
var
|
|
26678
|
-
function
|
|
26945
|
+
var bu = (e) => e.toFixed(1).replace(".", ",");
|
|
26946
|
+
function xu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: c = du, disabled: l = !1, allowEmpty: u = !1, contrastWith: f, contrastLabel: g = "o texto", id: _ }) {
|
|
26679
26947
|
let v = s(), y = _ ?? `color-${v}`, [b, x] = d(!1), [S, C] = d(i ?? ""), [w, T] = d(null);
|
|
26680
26948
|
o(() => {
|
|
26681
26949
|
C(i ?? ""), T(null);
|
|
26682
26950
|
}, [i]);
|
|
26683
|
-
let E =
|
|
26951
|
+
let E = pu(i ?? ""), D = (e) => {
|
|
26684
26952
|
if (!e.trim()) {
|
|
26685
26953
|
u ? (T(null), a("")) : C(i ?? "");
|
|
26686
26954
|
return;
|
|
26687
26955
|
}
|
|
26688
|
-
let t =
|
|
26956
|
+
let t = pu(e);
|
|
26689
26957
|
if (!t) {
|
|
26690
26958
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
26691
26959
|
return;
|
|
26692
26960
|
}
|
|
26693
26961
|
T(null), C(t), t !== E && a(t);
|
|
26694
|
-
}, O = f ?
|
|
26962
|
+
}, O = f ? pu(f) : null, k = E && O ? hu(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
|
|
26695
26963
|
return /* @__PURE__ */ h("div", {
|
|
26696
26964
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
26697
26965
|
children: [
|
|
@@ -26719,7 +26987,7 @@ function yu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26719
26987
|
children: /* @__PURE__ */ h("div", {
|
|
26720
26988
|
className: "select-colorfield__panel",
|
|
26721
26989
|
children: [
|
|
26722
|
-
/* @__PURE__ */ m(
|
|
26990
|
+
/* @__PURE__ */ m(yu, {
|
|
26723
26991
|
hex: E,
|
|
26724
26992
|
onPick: D
|
|
26725
26993
|
}),
|
|
@@ -26728,7 +26996,7 @@ function yu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26728
26996
|
role: "group",
|
|
26729
26997
|
"aria-label": "Cores prontas",
|
|
26730
26998
|
children: c.map((e) => {
|
|
26731
|
-
let t =
|
|
26999
|
+
let t = pu(e) ?? e, n = t === E;
|
|
26732
27000
|
return /* @__PURE__ */ m("button", {
|
|
26733
27001
|
type: "button",
|
|
26734
27002
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -26759,7 +27027,7 @@ function yu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26759
27027
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
26760
27028
|
value: S,
|
|
26761
27029
|
onChange: (e) => {
|
|
26762
|
-
C(e.target.value), e.target.value.replace("#", "").length === 6 &&
|
|
27030
|
+
C(e.target.value), e.target.value.replace("#", "").length === 6 && pu(e.target.value) && D(e.target.value);
|
|
26763
27031
|
},
|
|
26764
27032
|
onBlur: () => D(S),
|
|
26765
27033
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -26782,14 +27050,14 @@ function yu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26782
27050
|
}) : null : /* @__PURE__ */ h("p", {
|
|
26783
27051
|
id: `${y}-hint`,
|
|
26784
27052
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
26785
|
-
children: [k >= 4.5 ? `Contraste com ${g}: ${
|
|
27053
|
+
children: [k >= 4.5 ? `Contraste com ${g}: ${bu(k)}:1 — legível.` : `Contraste com ${g}: ${bu(k)}:1 — difícil de ler. Escolha uma cor ${mu(E) < mu(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ h(p, { children: [" ", n] }) : null]
|
|
26786
27054
|
})
|
|
26787
27055
|
]
|
|
26788
27056
|
});
|
|
26789
27057
|
}
|
|
26790
27058
|
//#endregion
|
|
26791
27059
|
//#region src/SelectProgressBar.tsx
|
|
26792
|
-
var
|
|
27060
|
+
var Su = 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) {
|
|
26793
27061
|
if (l) return /* @__PURE__ */ h("div", {
|
|
26794
27062
|
ref: f,
|
|
26795
27063
|
...d,
|
|
@@ -26834,7 +27102,7 @@ var bu = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
26834
27102
|
})
|
|
26835
27103
|
]
|
|
26836
27104
|
});
|
|
26837
|
-
}),
|
|
27105
|
+
}), Cu = 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) {
|
|
26838
27106
|
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: [
|
|
26839
27107
|
/* @__PURE__ */ h("span", {
|
|
26840
27108
|
className: "select-choicecard__top",
|
|
@@ -26895,7 +27163,7 @@ var bu = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
26895
27163
|
children: b
|
|
26896
27164
|
});
|
|
26897
27165
|
});
|
|
26898
|
-
function
|
|
27166
|
+
function wu({ badge: e = !0 }) {
|
|
26899
27167
|
return /* @__PURE__ */ h("div", {
|
|
26900
27168
|
className: "select-choicecard select-choicecard--skeleton",
|
|
26901
27169
|
"aria-hidden": "true",
|
|
@@ -26916,7 +27184,7 @@ function Su({ badge: e = !0 }) {
|
|
|
26916
27184
|
]
|
|
26917
27185
|
});
|
|
26918
27186
|
}
|
|
26919
|
-
var
|
|
27187
|
+
var Tu = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, className: i, style: a, ...o }, s) {
|
|
26920
27188
|
return /* @__PURE__ */ m("div", {
|
|
26921
27189
|
ref: s,
|
|
26922
27190
|
...o,
|
|
@@ -26926,16 +27194,16 @@ var Cu = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
26926
27194
|
"--select-choice-min": t,
|
|
26927
27195
|
...a
|
|
26928
27196
|
},
|
|
26929
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(
|
|
27197
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(wu, {}, t)) : e
|
|
26930
27198
|
});
|
|
26931
|
-
}),
|
|
27199
|
+
}), Eu = 960, Du = Math.round(Eu * 210 / 297), Ou = 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 }, _) {
|
|
26932
27200
|
let v = u(null), [y, b] = d(.5);
|
|
26933
27201
|
o(() => {
|
|
26934
27202
|
let e = v.current;
|
|
26935
27203
|
if (!e) return;
|
|
26936
27204
|
let t = () => {
|
|
26937
27205
|
let t = e.clientWidth;
|
|
26938
|
-
t > 0 && b(Math.min(1, t /
|
|
27206
|
+
t > 0 && b(Math.min(1, t / Eu));
|
|
26939
27207
|
};
|
|
26940
27208
|
if (t(), typeof ResizeObserver > "u") return;
|
|
26941
27209
|
let n = new ResizeObserver(t);
|
|
@@ -26943,7 +27211,7 @@ var Cu = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
26943
27211
|
}, []);
|
|
26944
27212
|
let x = e === "front", S = {
|
|
26945
27213
|
"--select-cert-accent": t || void 0,
|
|
26946
|
-
height:
|
|
27214
|
+
height: Du * y + 2
|
|
26947
27215
|
};
|
|
26948
27216
|
return /* @__PURE__ */ m("div", {
|
|
26949
27217
|
ref: (e) => {
|
|
@@ -26956,8 +27224,8 @@ var Cu = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
26956
27224
|
children: /* @__PURE__ */ m("div", {
|
|
26957
27225
|
className: "select-certpreview__sheet",
|
|
26958
27226
|
style: {
|
|
26959
|
-
width:
|
|
26960
|
-
height:
|
|
27227
|
+
width: Eu,
|
|
27228
|
+
height: Du,
|
|
26961
27229
|
transform: `scale(${y})`
|
|
26962
27230
|
},
|
|
26963
27231
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -27030,13 +27298,13 @@ var Cu = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
27030
27298
|
});
|
|
27031
27299
|
//#endregion
|
|
27032
27300
|
//#region src/SelectImageField.tsx
|
|
27033
|
-
function
|
|
27301
|
+
function ku(e) {
|
|
27034
27302
|
return new Promise((t, n) => {
|
|
27035
27303
|
let r = new FileReader();
|
|
27036
27304
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
27037
27305
|
});
|
|
27038
27306
|
}
|
|
27039
|
-
var
|
|
27307
|
+
var Au = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
|
|
27040
27308
|
let [f, p] = d([]), [g, _] = d(null), v = t ? [t] : [], y = async (e) => {
|
|
27041
27309
|
let t = e[0];
|
|
27042
27310
|
if (!t) {
|
|
@@ -27044,7 +27312,7 @@ var Ou = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27044
27312
|
return;
|
|
27045
27313
|
}
|
|
27046
27314
|
if (_(null), !s) {
|
|
27047
|
-
n(await
|
|
27315
|
+
n(await ku(t)), p([]);
|
|
27048
27316
|
return;
|
|
27049
27317
|
}
|
|
27050
27318
|
p([t]);
|
|
@@ -27076,7 +27344,7 @@ var Ou = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27076
27344
|
children: g
|
|
27077
27345
|
})]
|
|
27078
27346
|
});
|
|
27079
|
-
}),
|
|
27347
|
+
}), ju = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
27080
27348
|
let [o, s] = d(() => new Set(n)), c = (e) => s((n) => {
|
|
27081
27349
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
27082
27350
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -27122,6 +27390,6 @@ var Ou = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27122
27390
|
});
|
|
27123
27391
|
});
|
|
27124
27392
|
//#endregion
|
|
27125
|
-
export { C as AUTH_FX_VARIANTS, Ie as AppleIcon, _t as AppsIcon, K as ArrowLeftIcon, Re as ArrowRightIcon, We as AtIcon, Ne as AuthAppIcon, Tt as AwardIcon, at as BankIcon, Se as BellIcon, Ct as BookIcon, fe as BookmarkIcon, ft as BroadcastIcon, Ke as BuildingIcon, nt as CalendarIcon, yt as CartIcon, ht as ChartLineIcon, Mt as ChatIcon, Ue as CheckCircleIcon, Be as CheckIcon, G as ChevronDownIcon, W as ChevronLeftIcon, U as ChevronRightIcon, rt as ChevronUpIcon, ct as ClipboardIcon, de as ClockIcon, It as CloseCircleIcon, ce as CloseIcon, se as CopyIcon, Qe as CreditCardIcon, Te as CubeIcon, ut as DiscountIcon, Rt as DocumentTextIcon, le as DotsHorizontalIcon, $e as EditIcon, it as ExportIcon, J as ExternalLinkIcon, Ve as EyeIcon, He as EyeOffIcon, Fe as FacebookIcon, wt as FileDownloadIcon, q as FilterIcon, Pt as FlagIcon, Lt as FlashIcon, ie as GithubIcon, ge as GlobeIcon, re as GoogleIcon, ye as HelpIcon, Ye as HomeIcon, ve as InfoIcon, qe as KeyIcon, mt as LinkIcon, Ft as LocationIcon, tt as LockIcon, Pe as MailIcon, bt as MenuIcon, vt as MinusCircleIcon, ke as MobileIcon, st as MoneyReceiveIcon, ot as MoneySendIcon, Oe as MonitorIcon, De as MoonIcon, lt as NoteIcon, Dt as PaletteIcon, Le as PasskeyIcon, kt as PauseIcon, Me as PhoneIcon, pe as PinIcon, St as PlayCircleIcon, je as PlusIcon, jt as ReceiptIcon, Ae as RefreshIcon, At as RefundIcon, we as RocketIcon, Cr as SELECT_CARD_BRANDS,
|
|
27393
|
+
export { C as AUTH_FX_VARIANTS, Ie as AppleIcon, _t as AppsIcon, K as ArrowLeftIcon, Re as ArrowRightIcon, We as AtIcon, Ne as AuthAppIcon, Tt as AwardIcon, at as BankIcon, Se as BellIcon, Ct as BookIcon, fe as BookmarkIcon, ft as BroadcastIcon, Ke as BuildingIcon, nt as CalendarIcon, yt as CartIcon, ht as ChartLineIcon, Mt as ChatIcon, Ue as CheckCircleIcon, Be as CheckIcon, G as ChevronDownIcon, W as ChevronLeftIcon, U as ChevronRightIcon, rt as ChevronUpIcon, ct as ClipboardIcon, de as ClockIcon, It as CloseCircleIcon, ce as CloseIcon, se as CopyIcon, Qe as CreditCardIcon, Te as CubeIcon, ut as DiscountIcon, Rt as DocumentTextIcon, le as DotsHorizontalIcon, $e as EditIcon, it as ExportIcon, J as ExternalLinkIcon, Ve as EyeIcon, He as EyeOffIcon, Fe as FacebookIcon, wt as FileDownloadIcon, q as FilterIcon, Pt as FlagIcon, Lt as FlashIcon, ie as GithubIcon, ge as GlobeIcon, re as GoogleIcon, ye as HelpIcon, Ye as HomeIcon, ve as InfoIcon, qe as KeyIcon, mt as LinkIcon, Ft as LocationIcon, tt as LockIcon, Pe as MailIcon, bt as MenuIcon, vt as MinusCircleIcon, ke as MobileIcon, st as MoneyReceiveIcon, ot as MoneySendIcon, Oe as MonitorIcon, De as MoonIcon, lt as NoteIcon, Dt as PaletteIcon, Le as PasskeyIcon, kt as PauseIcon, Me as PhoneIcon, pe as PinIcon, St as PlayCircleIcon, je as PlusIcon, jt as ReceiptIcon, Ae as RefreshIcon, At as RefundIcon, we as RocketIcon, lc as SELECT_BR_UF_TILES, Cr as SELECT_CARD_BRANDS, du as SELECT_COLOR_PRESETS, Ha as SELECT_COL_DATETIME, Ua as SELECT_COL_ID, nr as SELECT_COUNTRIES, Jl as SELECT_DAILY_PRESETS, Gl as SELECT_DATE_PRESETS, fr as SELECT_SPACE, cr as SELECT_TRANSACTION_STATUS, ae as SearchIcon, ju as SelectAccordion, Ma as SelectActionCard, ur as SelectActionList, dr as SelectActionMenu, hn as SelectAddButton, to as SelectAddCard, on as SelectAlert, Na as SelectAppTile, B as SelectAuthFx, _i as SelectAvatar, wi as SelectBackLink, sr as SelectBadge, ss as SelectBalanceCard, Bn as SelectBankAccountField, Ls as SelectBarChart, br as SelectBox, Dc as SelectBoxPlot, iu as SelectBuilderLayout, au as SelectBuilderWorkspace, bc as SelectBullet, Qc as SelectBump, H as SelectButton, kc as SelectCalendarHeatmap, Ec as SelectCandlestick, V as SelectCard, no as SelectCardGrid, Ou as SelectCertificatePreview, xs as SelectChartCard, Gs as SelectChartLegend, Jt as SelectCheckbox, Cu as SelectChoiceCard, wu as SelectChoiceCardSkeleton, Tu as SelectChoiceGrid, Rc as SelectChord, al as SelectCirclePack, ja as SelectCollapsible, xu as SelectColorField, Ws as SelectColumnChart, Bs as SelectComboChart, In as SelectCombobox, za as SelectConfirmModal, ka as SelectCopyRow, Aa as SelectCopyableId, Pa as SelectCreateTile, eo as SelectDataTable, Vo as SelectDateField, Xl as SelectDatePicker, tu as SelectDateRangeField, ml as SelectDetailList, hl as SelectDetailRow, Nr as SelectDisclosureButton, gi as SelectDivider, an as SelectDocumentField, Vs as SelectDonut, S as SelectDotField, Mc as SelectDumbbell, cs as SelectFeeBreakdown, qt as SelectField, Ln as SelectFieldGrid, mn as SelectFileDropzone, sn as SelectFileTile, Ko as SelectFilterBar, Oa as SelectFilterChip, su as SelectFlowCanvas, lu as SelectFlowLayout, cu as SelectFlowNode, Ii as SelectFormLayout, Ba as SelectFormModal, tc as SelectFunnel, oc as SelectGauge, Pc as SelectGaugeBands, qc as SelectGlobe, _r as SelectGrid, sc as SelectHeatmap, zc as SelectHexbin, wo as SelectHideMoneyToggle, _c as SelectHorizontalBar, nl as SelectIcicle, Gi as SelectIcon, Mr as SelectIconButton, Xs as SelectIconTile, bi as SelectIdentityFooter, Au as SelectImageField, Cn as SelectImageGalleryField, _n as SelectImageUploadField, gn as SelectImageUrlsField, jl as SelectImageZoomModal, Ut as SelectInfoTip, gr as SelectInline, bs as SelectInsight, Js as SelectJourney, di as SelectJsonViewer, Il as SelectKeyValueEditor, ls as SelectKpiCard, Wt as SelectLabelRow, ao as SelectLayoutThumb, Rs as SelectLineChart, hi as SelectLinkButton, Dl as SelectListCard, kl as SelectListLabel, Ol as SelectListRow, Mi as SelectLoader, Nc as SelectMarimekko, ko as SelectMarkStack, Nl as SelectMediaCell, xa as SelectMenu, Da as SelectMenuButton, Ea as SelectMenuDivider, Ta as SelectMenuHeading, Ca as SelectMenuItem, wa as SelectMenuLink, Co as SelectMetricDelta, $s as SelectMiniStats, La as SelectModal, xo as SelectMoney, en as SelectMoneyField, ol as SelectNetwork, Ki as SelectNote, nu as SelectNumberField, To as SelectOfferPrice, Pl as SelectOfflineModal, vi as SelectOptionList, yi as SelectOptionRow, xi as SelectOtpInput, Ni as SelectPage, oa as SelectPagination, Yi as SelectPanel, $c as SelectParallel, Yc as SelectPareto, ji as SelectPasswordStrength, jr as SelectPaymentBrand, ec as SelectPaymentCard, ir as SelectPhoneField, Ys as SelectPips, El as SelectPlanCard, Ac as SelectPolarArea, Pn as SelectPopover, os as SelectPreviewFrame, Su as SelectProgressBar, uc as SelectProgressList, Zc as SelectPyramid, wc as SelectRadar, fc as SelectRadialBar, ar as SelectRadioGroup, Oc as SelectRangeBar, Do as SelectRating, Oo as SelectRatingQuote, ro as SelectRecordCard, ru as SelectRepeatingFieldArray, Ti as SelectResendButton, Di as SelectRetryStatus, qs as SelectRing, Ra as SelectRowActions, Tc as SelectSankey, Cc as SelectScatter, ra as SelectSearchInput, sl as SelectSearchMenu, ll as SelectSearchMenuOption, Xi as SelectSection, or as SelectSegmented, wn as SelectSelect, bo as SelectSensitiveValue, qi as SelectSettingList, Ji as SelectSettingRow, yl as SelectSetupGuide, bl as SelectSetupNext, Ks as SelectShareBar, na as SelectSideNav, Ui as SelectSkeleton, jc as SelectSlope, Fs as SelectSparkline, co as SelectSplitChain, Zs as SelectSpotlight, hr as SelectStack, zs as SelectStackedArea, lr as SelectStatusBadge, gl as SelectSteps, Fc as SelectStreamGraph, Ic as SelectSunburst, Jo as SelectSurface, Vn as SelectSwitch, uu as SelectSwitchField, ha as SelectTable, ya as SelectTableCell, ba as SelectTableEmpty, va as SelectTableRow, Zi as SelectTabs, qo as SelectTagSelect, Qs as SelectTaskCard, xr as SelectText, Yt as SelectTextarea, fl as SelectThemeSwitcher, Al as SelectThumbnail, Jc as SelectTicker, cc as SelectTileMap, mi as SelectTimeline, ts as SelectToastProvider, Hn as SelectToggleList, Wn as SelectTogglePanel, Un as SelectToggleRow, Ht as SelectTooltip, Tl as SelectTour, rl as SelectTree, Sc as SelectTreemap, Xt as SelectUnitInput, _a as SelectUserCell, vo as SelectValueVisibilityProvider, il as SelectVenn, Lc as SelectViolin, Xc as SelectWaffle, vc as SelectWaterfall, Bc as SelectWordCloud, Fa as SelectWorkspaceSwitcher, Ml as SelectZoomThumbnail, _e as SelectorIcon, et as SendIcon, ue as Setting4Icon, Xe as SettingsIcon, ze as ShieldIcon, Nt as SparkleIcon, he as SplitIcon, me as StarIcon, gt as StoreIcon, xt as StorefrontIcon, Ee as SunIcon, Ce as TerminalIcon, dt as TicketDiscountIcon, Je as TrashIcon, pt as TruckIcon, oe as UploadIcon, xe as UserIcon, Et as UsersIcon, Ze as WalletIcon, be as WarningIcon, Ge as Web3Icon, hu as contrastRatio, Mn as detectSelectTheme, rr as dialCodeOf, ps as formatInsightImpact, yn as galleryItemFromFile, bn as galleryItemFromUrl, _u as hexToHsv, vu as hsvToHex, pu as normalizeHex, Ai as passwordScore, dl as resolveSelectTheme, Er as selectCardBrand, Dr as selectCardBrandLabel, Qa as useSelectPageSize, ns as useSelectToast, yo as useSelectValueVisibility };
|
|
27126
27394
|
|
|
27127
27395
|
//# sourceMappingURL=index.js.map
|