@selectwin/kit 0.1.145 → 0.1.146
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/SelectHtmlFrame.d.ts +14 -0
- package/dist/SelectMail.d.ts +45 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +718 -587
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7714,9 +7714,140 @@ function _o({ id: e, title: t, subtitle: n, meta: r, actions: i, onOpen: o, lock
|
|
|
7714
7714
|
});
|
|
7715
7715
|
}
|
|
7716
7716
|
//#endregion
|
|
7717
|
+
//#region src/SelectHtmlFrame.tsx
|
|
7718
|
+
function vo(e) {
|
|
7719
|
+
let t = e.trim();
|
|
7720
|
+
if (t.startsWith("/") && !t.startsWith("//") && !t.startsWith("/\\")) return !0;
|
|
7721
|
+
try {
|
|
7722
|
+
return new URL(t).protocol === "https:";
|
|
7723
|
+
} catch {
|
|
7724
|
+
return !1;
|
|
7725
|
+
}
|
|
7726
|
+
}
|
|
7727
|
+
function yo({ src: e, title: t, height: n = "28rem", allowLinks: r = !1, className: i }) {
|
|
7728
|
+
let a = vo(e);
|
|
7729
|
+
return /* @__PURE__ */ h("div", {
|
|
7730
|
+
className: `select-htmlframe${i ? " " + i : ""}`,
|
|
7731
|
+
children: a ? /* @__PURE__ */ h("iframe", {
|
|
7732
|
+
className: "select-htmlframe__frame",
|
|
7733
|
+
title: t,
|
|
7734
|
+
src: e,
|
|
7735
|
+
sandbox: r ? "allow-popups allow-popups-to-escape-sandbox" : "",
|
|
7736
|
+
referrerPolicy: "no-referrer",
|
|
7737
|
+
style: { height: n }
|
|
7738
|
+
}) : null
|
|
7739
|
+
});
|
|
7740
|
+
}
|
|
7741
|
+
//#endregion
|
|
7742
|
+
//#region src/SelectMail.tsx
|
|
7743
|
+
function bo(e) {
|
|
7744
|
+
var t;
|
|
7745
|
+
return e ? ((t = e.name) == null ? void 0 : t.trim()) || e.address : "Remetente desconhecido";
|
|
7746
|
+
}
|
|
7747
|
+
function xo({ children: e, "aria-label": t }) {
|
|
7748
|
+
return /* @__PURE__ */ h("ul", {
|
|
7749
|
+
className: "select-maillist",
|
|
7750
|
+
"aria-label": t,
|
|
7751
|
+
children: e
|
|
7752
|
+
});
|
|
7753
|
+
}
|
|
7754
|
+
function So({ from: e, subject: t, snippet: n, date: r, count: i, attachments: a, active: o = !1, onClick: s }) {
|
|
7755
|
+
return /* @__PURE__ */ h("li", {
|
|
7756
|
+
className: "select-maillist__item",
|
|
7757
|
+
children: /* @__PURE__ */ g("button", {
|
|
7758
|
+
type: "button",
|
|
7759
|
+
className: `select-maillist__row${o ? " is-active" : ""}`,
|
|
7760
|
+
"aria-current": o || void 0,
|
|
7761
|
+
onClick: s,
|
|
7762
|
+
children: [
|
|
7763
|
+
/* @__PURE__ */ g("span", {
|
|
7764
|
+
className: "select-maillist__line",
|
|
7765
|
+
children: [/* @__PURE__ */ h("span", {
|
|
7766
|
+
className: "select-maillist__from",
|
|
7767
|
+
children: e
|
|
7768
|
+
}), /* @__PURE__ */ h("span", {
|
|
7769
|
+
className: "select-maillist__date",
|
|
7770
|
+
children: r
|
|
7771
|
+
})]
|
|
7772
|
+
}),
|
|
7773
|
+
/* @__PURE__ */ g("span", {
|
|
7774
|
+
className: "select-maillist__line",
|
|
7775
|
+
children: [/* @__PURE__ */ h("span", {
|
|
7776
|
+
className: "select-maillist__subject",
|
|
7777
|
+
children: t
|
|
7778
|
+
}), i && i > 1 ? /* @__PURE__ */ h(wr, {
|
|
7779
|
+
size: "sm",
|
|
7780
|
+
tone: "neutral",
|
|
7781
|
+
children: i
|
|
7782
|
+
}) : null]
|
|
7783
|
+
}),
|
|
7784
|
+
n || a ? /* @__PURE__ */ g("span", {
|
|
7785
|
+
className: "select-maillist__line",
|
|
7786
|
+
children: [/* @__PURE__ */ h("span", {
|
|
7787
|
+
className: "select-maillist__snippet",
|
|
7788
|
+
children: n
|
|
7789
|
+
}), a ? /* @__PURE__ */ h("span", {
|
|
7790
|
+
className: "select-maillist__meta",
|
|
7791
|
+
children: a === 1 ? "1 anexo" : `${a} anexos`
|
|
7792
|
+
}) : null]
|
|
7793
|
+
}) : null
|
|
7794
|
+
]
|
|
7795
|
+
})
|
|
7796
|
+
});
|
|
7797
|
+
}
|
|
7798
|
+
var Co = (e) => (e ?? []).map(bo).join(", ");
|
|
7799
|
+
function wo({ from: e, to: t, cc: n, date: r, actions: i, notice: a, text: o, children: s, attachments: c }) {
|
|
7800
|
+
return /* @__PURE__ */ g("article", {
|
|
7801
|
+
className: "select-mailmsg",
|
|
7802
|
+
children: [
|
|
7803
|
+
/* @__PURE__ */ g("header", {
|
|
7804
|
+
className: "select-mailmsg__head",
|
|
7805
|
+
children: [/* @__PURE__ */ g("div", {
|
|
7806
|
+
className: "select-mailmsg__who",
|
|
7807
|
+
children: [
|
|
7808
|
+
/* @__PURE__ */ g("span", {
|
|
7809
|
+
className: "select-mailmsg__from",
|
|
7810
|
+
children: [bo(e), e != null && e.name ? /* @__PURE__ */ h("span", {
|
|
7811
|
+
className: "select-mailmsg__address",
|
|
7812
|
+
children: `<${e.address}>`
|
|
7813
|
+
}) : null]
|
|
7814
|
+
}),
|
|
7815
|
+
t != null && t.length ? /* @__PURE__ */ h("span", {
|
|
7816
|
+
className: "select-mailmsg__to",
|
|
7817
|
+
children: `para ${Co(t)}`
|
|
7818
|
+
}) : null,
|
|
7819
|
+
n != null && n.length ? /* @__PURE__ */ h("span", {
|
|
7820
|
+
className: "select-mailmsg__to",
|
|
7821
|
+
children: `cópia ${Co(n)}`
|
|
7822
|
+
}) : null
|
|
7823
|
+
]
|
|
7824
|
+
}), /* @__PURE__ */ g("div", {
|
|
7825
|
+
className: "select-mailmsg__side",
|
|
7826
|
+
children: [/* @__PURE__ */ h("span", {
|
|
7827
|
+
className: "select-mailmsg__date",
|
|
7828
|
+
children: r
|
|
7829
|
+
}), i]
|
|
7830
|
+
})]
|
|
7831
|
+
}),
|
|
7832
|
+
a ? /* @__PURE__ */ h("div", {
|
|
7833
|
+
className: "select-mailmsg__notice",
|
|
7834
|
+
children: a
|
|
7835
|
+
}) : null,
|
|
7836
|
+
s ?? (o ? /* @__PURE__ */ h("div", {
|
|
7837
|
+
className: "select-mailmsg__text",
|
|
7838
|
+
children: o
|
|
7839
|
+
}) : null),
|
|
7840
|
+
c ? /* @__PURE__ */ h("div", {
|
|
7841
|
+
className: "select-mailmsg__attachments",
|
|
7842
|
+
children: c
|
|
7843
|
+
}) : null
|
|
7844
|
+
]
|
|
7845
|
+
});
|
|
7846
|
+
}
|
|
7847
|
+
//#endregion
|
|
7717
7848
|
//#region src/SelectModal.tsx
|
|
7718
|
-
var
|
|
7719
|
-
function
|
|
7849
|
+
var To = 220;
|
|
7850
|
+
function Eo({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children: a, footer: s, aside: c, size: l = "md", showClose: u = !0, noise: d = !0, dividedHeader: p = !1, backdrop: v = "dim", theme: y = "light", placement: b = "center" }) {
|
|
7720
7851
|
let [x, S] = f(e), [C, w] = f(!1);
|
|
7721
7852
|
if (o(() => {
|
|
7722
7853
|
if (e) S(!0), w(!1);
|
|
@@ -7724,7 +7855,7 @@ function yo({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
7724
7855
|
w(!0);
|
|
7725
7856
|
let e = setTimeout(() => {
|
|
7726
7857
|
S(!1), w(!1);
|
|
7727
|
-
},
|
|
7858
|
+
}, To);
|
|
7728
7859
|
return () => clearTimeout(e);
|
|
7729
7860
|
}
|
|
7730
7861
|
}, [e, x]), o(() => {
|
|
@@ -7816,7 +7947,7 @@ function yo({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
7816
7947
|
}
|
|
7817
7948
|
//#endregion
|
|
7818
7949
|
//#region src/SelectRowActions.tsx
|
|
7819
|
-
function
|
|
7950
|
+
function Do({ actions: e, label: t = "Ações" }) {
|
|
7820
7951
|
let [n, r] = f(!1);
|
|
7821
7952
|
return /* @__PURE__ */ h(Zn, {
|
|
7822
7953
|
active: n,
|
|
@@ -7838,8 +7969,8 @@ function bo({ actions: e, label: t = "Ações" }) {
|
|
|
7838
7969
|
}
|
|
7839
7970
|
//#endregion
|
|
7840
7971
|
//#region src/SelectConfirmModal.tsx
|
|
7841
|
-
function
|
|
7842
|
-
return /* @__PURE__ */ h(
|
|
7972
|
+
function Oo({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmLabel: a = "Confirmar", cancelLabel: o = "Cancelar", destructive: s = !1, loading: c = !1, theme: l }) {
|
|
7973
|
+
return /* @__PURE__ */ h(Eo, {
|
|
7843
7974
|
open: e,
|
|
7844
7975
|
onClose: t,
|
|
7845
7976
|
title: r,
|
|
@@ -7871,8 +8002,8 @@ function xo({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
7871
8002
|
}
|
|
7872
8003
|
//#endregion
|
|
7873
8004
|
//#region src/SelectFormModal.tsx
|
|
7874
|
-
function
|
|
7875
|
-
return /* @__PURE__ */ g(
|
|
8005
|
+
function ko({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children: a, submitLabel: o = "Salvar", cancelLabel: s = "Cancelar", submitting: c = !1, submitDisabled: l = !1, submitVariant: u = "primary", error: d, size: f = "md", theme: p }) {
|
|
8006
|
+
return /* @__PURE__ */ g(Eo, {
|
|
7876
8007
|
open: e,
|
|
7877
8008
|
onClose: t,
|
|
7878
8009
|
title: r,
|
|
@@ -7914,34 +8045,34 @@ function So({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
7914
8045
|
}
|
|
7915
8046
|
//#endregion
|
|
7916
8047
|
//#region src/SelectDataTable.tsx
|
|
7917
|
-
var
|
|
8048
|
+
var Ao = "9.5rem", jo = {
|
|
7918
8049
|
minWidth: "9.5rem",
|
|
7919
8050
|
grow: 2
|
|
7920
8051
|
};
|
|
7921
|
-
function
|
|
8052
|
+
function Mo(e) {
|
|
7922
8053
|
return [e.wrap ? "select-table__td--wrap" : "", e.tone ? `select-table__td--${e.tone}` : ""].filter(Boolean).join(" ") || void 0;
|
|
7923
8054
|
}
|
|
7924
|
-
var
|
|
7925
|
-
function
|
|
8055
|
+
var No = "select-datatable:hidden-cols:";
|
|
8056
|
+
function Po(e) {
|
|
7926
8057
|
try {
|
|
7927
|
-
let t = localStorage.getItem(
|
|
8058
|
+
let t = localStorage.getItem(No + e), n = t ? JSON.parse(t) : null;
|
|
7928
8059
|
return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
|
|
7929
8060
|
} catch {
|
|
7930
8061
|
return [];
|
|
7931
8062
|
}
|
|
7932
8063
|
}
|
|
7933
|
-
function
|
|
8064
|
+
function Fo(e, t) {
|
|
7934
8065
|
try {
|
|
7935
|
-
t.length === 0 ? localStorage.removeItem(
|
|
8066
|
+
t.length === 0 ? localStorage.removeItem(No + e) : localStorage.setItem(No + e, JSON.stringify(t));
|
|
7936
8067
|
} catch {}
|
|
7937
8068
|
}
|
|
7938
|
-
function
|
|
8069
|
+
function Io(e) {
|
|
7939
8070
|
return e.hideable ?? !!e.title;
|
|
7940
8071
|
}
|
|
7941
|
-
var
|
|
7942
|
-
function
|
|
8072
|
+
var Lo = "select-datatable:col-widths:";
|
|
8073
|
+
function Ro(e) {
|
|
7943
8074
|
try {
|
|
7944
|
-
let t = localStorage.getItem(
|
|
8075
|
+
let t = localStorage.getItem(Lo + e), n = t ? JSON.parse(t) : null;
|
|
7945
8076
|
if (!n || typeof n != "object" || Array.isArray(n)) return {};
|
|
7946
8077
|
let r = {};
|
|
7947
8078
|
for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
|
|
@@ -7950,16 +8081,16 @@ function jo(e) {
|
|
|
7950
8081
|
return {};
|
|
7951
8082
|
}
|
|
7952
8083
|
}
|
|
7953
|
-
function
|
|
8084
|
+
function zo(e, t) {
|
|
7954
8085
|
try {
|
|
7955
|
-
Object.keys(t).length === 0 ? localStorage.removeItem(
|
|
8086
|
+
Object.keys(t).length === 0 ? localStorage.removeItem(Lo + e) : localStorage.setItem(Lo + e, JSON.stringify(t));
|
|
7956
8087
|
} catch {}
|
|
7957
8088
|
}
|
|
7958
|
-
var
|
|
7959
|
-
function
|
|
8089
|
+
var Bo = "select-datatable:page-size:";
|
|
8090
|
+
function Vo(e, t, n) {
|
|
7960
8091
|
let [r, i] = f(() => {
|
|
7961
8092
|
try {
|
|
7962
|
-
let r = Number(localStorage.getItem(
|
|
8093
|
+
let r = Number(localStorage.getItem(Bo + e));
|
|
7963
8094
|
return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
|
|
7964
8095
|
} catch {
|
|
7965
8096
|
return t;
|
|
@@ -7968,25 +8099,25 @@ function Po(e, t, n) {
|
|
|
7968
8099
|
return [r, (t) => {
|
|
7969
8100
|
i(t);
|
|
7970
8101
|
try {
|
|
7971
|
-
localStorage.setItem(
|
|
8102
|
+
localStorage.setItem(Bo + e, String(t));
|
|
7972
8103
|
} catch {}
|
|
7973
8104
|
}];
|
|
7974
8105
|
}
|
|
7975
|
-
function
|
|
8106
|
+
function Ho(e, t, n) {
|
|
7976
8107
|
let r = e == null || e === "", i = t == null || t === "";
|
|
7977
8108
|
return r || i ? r && i ? 0 : r ? 1 : -1 : typeof e == "number" && typeof t == "number" ? n * (e - t) : n * String(e).localeCompare(String(t), "pt-BR", {
|
|
7978
8109
|
numeric: !0,
|
|
7979
8110
|
sensitivity: "base"
|
|
7980
8111
|
});
|
|
7981
8112
|
}
|
|
7982
|
-
function
|
|
7983
|
-
let [w, T] = f(() => m ?
|
|
8113
|
+
function Uo({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pagination: a, onRowClick: o, title: s, help: c, description: l, action: d, filters: p, columnsKey: m, getChildren: _, defaultExpanded: v, compactRow: y, compactQuery: b = "(max-width: 40rem)", onCompactRowClick: x, listRow: S, footer: C }) {
|
|
8114
|
+
let [w, T] = f(() => m ? Po(m) : []), [E, D] = f(!1), O = Sn(y && !S ? b : void 0) && y != null, k = S != null || O, A = S ?? y, j = S != null || e.some((e) => e.wrap), [M, N] = f(() => m ? Ro(m) : {}), P = u(() => new Set(w), [w]), F = e.filter(Io), I = F.length > 0 && F.every((e) => P.has(e.key)), L = (e) => !I && P.has(e.key) && Io(e), R = e.filter((e) => !L(e)), z = F.filter((e) => !L(e)), [B, ee] = f(null), [te, V] = f(() => /* @__PURE__ */ new Set()), H = (e) => ((v == null ? void 0 : v(e)) ?? !1) !== te.has(n(e)), ne = (e) => V((t) => {
|
|
7984
8115
|
let r = new Set(t), i = n(e);
|
|
7985
8116
|
return r.delete(i) || r.add(i), r;
|
|
7986
8117
|
}), U = (e) => {
|
|
7987
8118
|
T((t) => {
|
|
7988
8119
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
7989
|
-
return m &&
|
|
8120
|
+
return m && Fo(m, r), n && ee((t) => t && t.key === e.key ? null : t), r;
|
|
7990
8121
|
});
|
|
7991
8122
|
}, re = (e) => {
|
|
7992
8123
|
ee((t) => {
|
|
@@ -8003,7 +8134,7 @@ function Io({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8003
8134
|
let e = ie == null ? void 0 : ie.sortValue;
|
|
8004
8135
|
if (!B || !e) return (e) => e;
|
|
8005
8136
|
let t = B.dir === "asc" ? 1 : -1;
|
|
8006
|
-
return (n) => [...n].sort((n, r) =>
|
|
8137
|
+
return (n) => [...n].sort((n, r) => Ho(e(n), e(r), t));
|
|
8007
8138
|
}, [B, ie]), G = u(() => W(t), [t, W]), K = (e) => (_ == null ? void 0 : _(e)) ?? [], q = !!_ && t.some((e) => K(e).length > 0), J = k ? [{
|
|
8008
8139
|
label: "",
|
|
8009
8140
|
grow: 1
|
|
@@ -8022,10 +8153,10 @@ function Io({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8022
8153
|
let n = R[e];
|
|
8023
8154
|
n && N((e) => {
|
|
8024
8155
|
let r = { ...e };
|
|
8025
|
-
return t ? r[n.key] = t : delete r[n.key], m &&
|
|
8156
|
+
return t ? r[n.key] = t : delete r[n.key], m && zo(m, r), r;
|
|
8026
8157
|
});
|
|
8027
8158
|
}, oe = () => {
|
|
8028
|
-
N({}), m &&
|
|
8159
|
+
N({}), m && zo(m, {});
|
|
8029
8160
|
}, Y = Object.keys(M).length > 0, se = !r && i ? /* @__PURE__ */ h(Ya, {
|
|
8030
8161
|
icon: i.icon,
|
|
8031
8162
|
title: i.heading,
|
|
@@ -8112,7 +8243,7 @@ function Io({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8112
8243
|
children: R.map((t, n) => /* @__PURE__ */ h(Ja, {
|
|
8113
8244
|
align: t.align,
|
|
8114
8245
|
width: t.width,
|
|
8115
|
-
className:
|
|
8246
|
+
className: Mo(t),
|
|
8116
8247
|
disclosure: q && n === 0 ? "none" : void 0,
|
|
8117
8248
|
children: t.render(e)
|
|
8118
8249
|
}, n))
|
|
@@ -8124,7 +8255,7 @@ function Io({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8124
8255
|
children: R.map((t, n) => /* @__PURE__ */ h(Ja, {
|
|
8125
8256
|
align: t.align,
|
|
8126
8257
|
width: t.width,
|
|
8127
|
-
className:
|
|
8258
|
+
className: Mo(t),
|
|
8128
8259
|
disclosure: n === 0 ? r ? "open" : "closed" : void 0,
|
|
8129
8260
|
children: t.render(e)
|
|
8130
8261
|
}, n))
|
|
@@ -8134,7 +8265,7 @@ function Io({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8134
8265
|
children: R.map((e, n) => /* @__PURE__ */ h(Ja, {
|
|
8135
8266
|
align: e.align,
|
|
8136
8267
|
width: e.width,
|
|
8137
|
-
className:
|
|
8268
|
+
className: Mo(e),
|
|
8138
8269
|
children: e.render(t)
|
|
8139
8270
|
}, n))
|
|
8140
8271
|
}, `${n(e)}/${n(t)}`)) : []];
|
|
@@ -8144,7 +8275,7 @@ function Io({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8144
8275
|
}
|
|
8145
8276
|
//#endregion
|
|
8146
8277
|
//#region src/SelectAddCard.tsx
|
|
8147
|
-
var
|
|
8278
|
+
var Wo = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
|
|
8148
8279
|
return /* @__PURE__ */ g("button", {
|
|
8149
8280
|
ref: o,
|
|
8150
8281
|
...a,
|
|
@@ -8170,7 +8301,7 @@ var Lo = r(function({ label: e, description: t, onClick: n, icon: r, className:
|
|
|
8170
8301
|
});
|
|
8171
8302
|
//#endregion
|
|
8172
8303
|
//#region src/SelectCardGrid.tsx
|
|
8173
|
-
function
|
|
8304
|
+
function Go({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount: i = 6, empty: a, pagination: o, create: s, minCardWidth: c = "16rem", skeletonCover: l = !1, title: u, help: d, description: f, action: p, filters: m, tools: _ }) {
|
|
8174
8305
|
let v = !r && e.length === 0 && a != null, { hasTitleRow: y, hasFilters: b } = Pa({
|
|
8175
8306
|
title: u,
|
|
8176
8307
|
description: f,
|
|
@@ -8226,7 +8357,7 @@ function Ro({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
8226
8357
|
}, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ h("div", {
|
|
8227
8358
|
className: "select-cardgrid__item",
|
|
8228
8359
|
children: n(e)
|
|
8229
|
-
}, t(e))), !r && s && /* @__PURE__ */ h(
|
|
8360
|
+
}, t(e))), !r && s && /* @__PURE__ */ h(Wo, {
|
|
8230
8361
|
label: s.label,
|
|
8231
8362
|
description: s.description,
|
|
8232
8363
|
onClick: s.onAction,
|
|
@@ -8239,7 +8370,7 @@ function Ro({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
8239
8370
|
}
|
|
8240
8371
|
//#endregion
|
|
8241
8372
|
//#region src/SelectRecordCard.tsx
|
|
8242
|
-
var
|
|
8373
|
+
var Ko = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, facts: a, tags: o, status: s, meta: c, to: l, accent: u = !1, cover: d, coverFallback: f, preview: p, className: m, ..._ }, y) {
|
|
8243
8374
|
let b = s != null || c != null, x = Ji(l);
|
|
8244
8375
|
return /* @__PURE__ */ g("div", {
|
|
8245
8376
|
ref: y,
|
|
@@ -8254,7 +8385,7 @@ var zo = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
8254
8385
|
className: "select-rcard__preview",
|
|
8255
8386
|
"aria-hidden": "true",
|
|
8256
8387
|
children: p
|
|
8257
|
-
}) : null : /* @__PURE__ */ h(
|
|
8388
|
+
}) : null : /* @__PURE__ */ h(Jo, {
|
|
8258
8389
|
src: d,
|
|
8259
8390
|
fallback: f
|
|
8260
8391
|
}),
|
|
@@ -8294,7 +8425,7 @@ var zo = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
8294
8425
|
}),
|
|
8295
8426
|
a && a.length > 0 && /* @__PURE__ */ h("div", {
|
|
8296
8427
|
className: "select-rcard__body",
|
|
8297
|
-
children: /* @__PURE__ */ h(
|
|
8428
|
+
children: /* @__PURE__ */ h(qo, { items: a })
|
|
8298
8429
|
}),
|
|
8299
8430
|
o && /* @__PURE__ */ h("div", {
|
|
8300
8431
|
className: "select-rcard__tags",
|
|
@@ -8318,7 +8449,7 @@ var zo = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
8318
8449
|
]
|
|
8319
8450
|
});
|
|
8320
8451
|
});
|
|
8321
|
-
function
|
|
8452
|
+
function qo({ items: e }) {
|
|
8322
8453
|
return e.length ? /* @__PURE__ */ h("ul", {
|
|
8323
8454
|
className: "select-facts",
|
|
8324
8455
|
children: e.map((e, t) => /* @__PURE__ */ g("li", {
|
|
@@ -8334,7 +8465,7 @@ function Bo({ items: e }) {
|
|
|
8334
8465
|
}, e.key ?? t))
|
|
8335
8466
|
}) : null;
|
|
8336
8467
|
}
|
|
8337
|
-
function
|
|
8468
|
+
function Jo({ src: e, fallback: t }) {
|
|
8338
8469
|
let [n, r] = f(!1);
|
|
8339
8470
|
return o(() => r(!1), [e]), /* @__PURE__ */ h("span", {
|
|
8340
8471
|
className: "select-rcard__cover",
|
|
@@ -8350,7 +8481,7 @@ function Vo({ src: e, fallback: t }) {
|
|
|
8350
8481
|
})
|
|
8351
8482
|
});
|
|
8352
8483
|
}
|
|
8353
|
-
var
|
|
8484
|
+
var Yo = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i, ...a }, o) {
|
|
8354
8485
|
let s = t ? {
|
|
8355
8486
|
...i,
|
|
8356
8487
|
"--select-rcard-thumb-accent": t
|
|
@@ -8373,13 +8504,13 @@ var Ho = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i,
|
|
|
8373
8504
|
children: [/* @__PURE__ */ h("span", { className: "select-rcard__thumbcol" }), /* @__PURE__ */ h("span", { className: "select-rcard__thumbcol" })]
|
|
8374
8505
|
})]
|
|
8375
8506
|
});
|
|
8376
|
-
}),
|
|
8507
|
+
}), Xo = r(function({ dragging: e = !1, ghost: t = !1, className: n, ...r }, i) {
|
|
8377
8508
|
return /* @__PURE__ */ h("div", {
|
|
8378
8509
|
ref: i,
|
|
8379
8510
|
...r,
|
|
8380
8511
|
className: `select-sortitem${e && !t ? " is-dragging" : ""}${t ? " is-ghost" : ""}${n ? " " + n : ""}`
|
|
8381
8512
|
});
|
|
8382
|
-
}),
|
|
8513
|
+
}), Zo = r(function({ dragging: e = !1, variant: t = "inline", label: n = "Arrastar para reordenar", className: r, ...i }, a) {
|
|
8383
8514
|
return /* @__PURE__ */ h("button", {
|
|
8384
8515
|
ref: a,
|
|
8385
8516
|
type: "button",
|
|
@@ -8390,7 +8521,7 @@ var Ho = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i,
|
|
|
8390
8521
|
children: /* @__PURE__ */ h(en, {})
|
|
8391
8522
|
});
|
|
8392
8523
|
});
|
|
8393
|
-
function
|
|
8524
|
+
function Qo({ children: e }) {
|
|
8394
8525
|
return /* @__PURE__ */ g("span", {
|
|
8395
8526
|
className: "select-dragpreview",
|
|
8396
8527
|
children: [/* @__PURE__ */ h(en, {}), e]
|
|
@@ -8398,20 +8529,20 @@ function Go({ children: e }) {
|
|
|
8398
8529
|
}
|
|
8399
8530
|
//#endregion
|
|
8400
8531
|
//#region src/SelectTokenTextarea.tsx
|
|
8401
|
-
var
|
|
8402
|
-
function
|
|
8532
|
+
var $o = /\{\{?\s*([a-zA-Z_][a-zA-Z0-9_.[\]]*)\s*\}?\}/g, es = "data-select-sentinel";
|
|
8533
|
+
function ts(e, t, n) {
|
|
8403
8534
|
let r = document.createElement("span");
|
|
8404
8535
|
return r.className = "select-token", r.setAttribute("contenteditable", "false"), r.dataset.token = t, r.dataset.raw = e, r.textContent = n(t), r;
|
|
8405
8536
|
}
|
|
8406
|
-
function
|
|
8537
|
+
function ns(e, t, n) {
|
|
8407
8538
|
let r = [], i = new RegExp(t.source, t.flags.includes("g") ? t.flags : t.flags + "g"), a = 0;
|
|
8408
8539
|
for (let t of e.matchAll(i)) {
|
|
8409
8540
|
let i = t.index ?? 0;
|
|
8410
|
-
i > a && r.push(document.createTextNode(e.slice(a, i))), r.push(
|
|
8541
|
+
i > a && r.push(document.createTextNode(e.slice(a, i))), r.push(ts(t[0], t[1] ?? "", n)), a = i + t[0].length;
|
|
8411
8542
|
}
|
|
8412
8543
|
return a < e.length && r.push(document.createTextNode(e.slice(a))), r;
|
|
8413
8544
|
}
|
|
8414
|
-
function
|
|
8545
|
+
function rs(e) {
|
|
8415
8546
|
let t = "", n = (e) => {
|
|
8416
8547
|
e.childNodes.forEach((e) => {
|
|
8417
8548
|
if (e.nodeType === Node.TEXT_NODE) {
|
|
@@ -8424,7 +8555,7 @@ function Xo(e) {
|
|
|
8424
8555
|
return;
|
|
8425
8556
|
}
|
|
8426
8557
|
if (e.tagName === "BR") {
|
|
8427
|
-
e.hasAttribute(
|
|
8558
|
+
e.hasAttribute(es) || (t += "\n");
|
|
8428
8559
|
return;
|
|
8429
8560
|
}
|
|
8430
8561
|
(e.tagName === "DIV" || e.tagName === "P") && t && !t.endsWith("\n") && (t += "\n"), n(e);
|
|
@@ -8433,15 +8564,15 @@ function Xo(e) {
|
|
|
8433
8564
|
};
|
|
8434
8565
|
return n(e), t.replace(//g, "");
|
|
8435
8566
|
}
|
|
8436
|
-
var
|
|
8567
|
+
var is = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a = $o, labelAction: u, help: f, hint: p, error: m, placeholder: _, rows: v = 4, disabled: y = !1, onBlur: b, size: x = "md", className: S }, C) {
|
|
8437
8568
|
let w = s(), T = d(null), E = d(null), D = d(null), O = d(r);
|
|
8438
8569
|
O.current = r;
|
|
8439
8570
|
let k = i((e) => {
|
|
8440
8571
|
let t = T.current;
|
|
8441
8572
|
if (!t) return;
|
|
8442
|
-
t.replaceChildren(...
|
|
8573
|
+
t.replaceChildren(...ns(e, a, O.current));
|
|
8443
8574
|
let n = document.createElement("br");
|
|
8444
|
-
n.setAttribute(
|
|
8575
|
+
n.setAttribute(es, ""), t.appendChild(n), E.current = e;
|
|
8445
8576
|
}, [a]);
|
|
8446
8577
|
l(() => {
|
|
8447
8578
|
t !== E.current && k(t);
|
|
@@ -8454,11 +8585,11 @@ var Zo = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
8454
8585
|
let A = () => {
|
|
8455
8586
|
let e = T.current;
|
|
8456
8587
|
if (!e) return;
|
|
8457
|
-
if (!e.lastChild || !(e.lastChild instanceof HTMLElement && e.lastChild.hasAttribute(
|
|
8588
|
+
if (!e.lastChild || !(e.lastChild instanceof HTMLElement && e.lastChild.hasAttribute(es))) {
|
|
8458
8589
|
let t = document.createElement("br");
|
|
8459
|
-
t.setAttribute(
|
|
8590
|
+
t.setAttribute(es, ""), e.appendChild(t);
|
|
8460
8591
|
}
|
|
8461
|
-
let t =
|
|
8592
|
+
let t = rs(e);
|
|
8462
8593
|
E.current = t, n(t);
|
|
8463
8594
|
}, j = () => {
|
|
8464
8595
|
let e = window.getSelection(), t = T.current;
|
|
@@ -8492,7 +8623,7 @@ var Zo = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
8492
8623
|
c(C, () => ({
|
|
8493
8624
|
insertToken: (e) => {
|
|
8494
8625
|
var t, n;
|
|
8495
|
-
M([
|
|
8626
|
+
M([ts(`{${e}}`, e, O.current)], D.current), N(), window.setTimeout(N, 0), (t = (n = window).requestAnimationFrame) == null || t.call(n, () => N());
|
|
8496
8627
|
},
|
|
8497
8628
|
focus: N
|
|
8498
8629
|
}));
|
|
@@ -8507,12 +8638,12 @@ var Zo = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
8507
8638
|
let t = e.clipboardData.getData("text/plain");
|
|
8508
8639
|
if (!t) return;
|
|
8509
8640
|
let n = window.getSelection();
|
|
8510
|
-
M(
|
|
8641
|
+
M(ns(t.replace(/\r\n?/g, "\n"), a, O.current), n && n.rangeCount ? n.getRangeAt(0) : null);
|
|
8511
8642
|
}, I = (e, t) => {
|
|
8512
8643
|
let n = window.getSelection();
|
|
8513
8644
|
if (!n || !n.rangeCount || n.isCollapsed) return;
|
|
8514
8645
|
let r = n.getRangeAt(0), i = document.createElement("div");
|
|
8515
|
-
i.appendChild(r.cloneContents()), e.preventDefault(), e.clipboardData.setData("text/plain",
|
|
8646
|
+
i.appendChild(r.cloneContents()), e.preventDefault(), e.clipboardData.setData("text/plain", rs(i)), t && (r.deleteContents(), A());
|
|
8516
8647
|
}, L = m ? `${w}-err` : p ? `${w}-hint` : void 0;
|
|
8517
8648
|
return /* @__PURE__ */ g("div", {
|
|
8518
8649
|
className: `select-field${x === "sm" ? " select-field--sm" : ""}${S ? " " + S : ""}`,
|
|
@@ -8565,18 +8696,18 @@ var Zo = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
8565
8696
|
});
|
|
8566
8697
|
//#endregion
|
|
8567
8698
|
//#region src/SelectChannelPreview.tsx
|
|
8568
|
-
function
|
|
8699
|
+
function as({ children: e }) {
|
|
8569
8700
|
return /* @__PURE__ */ h("div", {
|
|
8570
8701
|
className: "select-previewstage",
|
|
8571
8702
|
children: e
|
|
8572
8703
|
});
|
|
8573
8704
|
}
|
|
8574
|
-
function
|
|
8705
|
+
function os(e) {
|
|
8575
8706
|
var t, n;
|
|
8576
8707
|
let r = e.trim().split(/\s+/).filter(Boolean);
|
|
8577
8708
|
return (r.length > 1 ? (((t = r[0]) == null ? void 0 : t[0]) ?? "") + (((n = r[1]) == null ? void 0 : n[0]) ?? "") : e.slice(0, 2)).toUpperCase();
|
|
8578
8709
|
}
|
|
8579
|
-
function
|
|
8710
|
+
function ss({ variant: e, title: t, subtitle: n, children: r }) {
|
|
8580
8711
|
return /* @__PURE__ */ g("div", {
|
|
8581
8712
|
className: `select-device select-device--${e}`,
|
|
8582
8713
|
children: [/* @__PURE__ */ g("div", {
|
|
@@ -8584,7 +8715,7 @@ function es({ variant: e, title: t, subtitle: n, children: r }) {
|
|
|
8584
8715
|
children: [/* @__PURE__ */ h("span", {
|
|
8585
8716
|
className: "select-device__avatar",
|
|
8586
8717
|
"aria-hidden": "true",
|
|
8587
|
-
children: e === "whatsapp" && t ?
|
|
8718
|
+
children: e === "whatsapp" && t ? os(t) : null
|
|
8588
8719
|
}), (t || n) && /* @__PURE__ */ g("span", {
|
|
8589
8720
|
className: "select-device__who",
|
|
8590
8721
|
children: [t && /* @__PURE__ */ h("span", {
|
|
@@ -8601,7 +8732,7 @@ function es({ variant: e, title: t, subtitle: n, children: r }) {
|
|
|
8601
8732
|
})]
|
|
8602
8733
|
});
|
|
8603
8734
|
}
|
|
8604
|
-
function
|
|
8735
|
+
function cs({ variant: e, media: t, buttons: n, empty: r = !1, backdrop: i = !1, children: a }) {
|
|
8605
8736
|
let o = /* @__PURE__ */ g("div", {
|
|
8606
8737
|
className: `select-bubble select-bubble--${e}`,
|
|
8607
8738
|
children: [
|
|
@@ -8627,7 +8758,7 @@ function ts({ variant: e, media: t, buttons: n, empty: r = !1, backdrop: i = !1,
|
|
|
8627
8758
|
children: o
|
|
8628
8759
|
}) : o;
|
|
8629
8760
|
}
|
|
8630
|
-
function
|
|
8761
|
+
function ls({ from: e, subject: t, emptySubject: n = "Sem assunto", device: r = "desktop", srcDoc: i, loading: a = !1, frameTitle: o = "O e-mail" }) {
|
|
8631
8762
|
let s = t != null && t !== "" && t !== !1;
|
|
8632
8763
|
return /* @__PURE__ */ g("div", {
|
|
8633
8764
|
className: `select-mailpreview${r === "mobile" ? " select-mailpreview--mobile" : ""}`,
|
|
@@ -8648,13 +8779,13 @@ function ns({ from: e, subject: t, emptySubject: n = "Sem assunto", device: r =
|
|
|
8648
8779
|
className: `select-mailpreview__subject${s ? "" : " select-mailpreview__subject--empty"}`,
|
|
8649
8780
|
children: s ? t : n
|
|
8650
8781
|
})]
|
|
8651
|
-
}), a ? /* @__PURE__ */ h("span", { className: "select-skeleton select-mailpreview__loading" }) : i == null ? null : /* @__PURE__ */ h(
|
|
8782
|
+
}), a ? /* @__PURE__ */ h("span", { className: "select-skeleton select-mailpreview__loading" }) : i == null ? null : /* @__PURE__ */ h(us, {
|
|
8652
8783
|
srcDoc: i,
|
|
8653
8784
|
title: o
|
|
8654
8785
|
})]
|
|
8655
8786
|
});
|
|
8656
8787
|
}
|
|
8657
|
-
function
|
|
8788
|
+
function us({ srcDoc: e, title: t }) {
|
|
8658
8789
|
let n = d(null), [r, i] = f(null), a = d(null);
|
|
8659
8790
|
o(() => () => {
|
|
8660
8791
|
var e;
|
|
@@ -8684,7 +8815,7 @@ function rs({ srcDoc: e, title: t }) {
|
|
|
8684
8815
|
}
|
|
8685
8816
|
//#endregion
|
|
8686
8817
|
//#region src/SelectIconPicker.tsx
|
|
8687
|
-
function
|
|
8818
|
+
function ds({ label: e, options: t, value: n, onChange: r, help: i, hint: a, error: o, disabled: c = !1, unknownLabel: l = "Outro ícone", placeholder: u = "Escolha um ícone", columns: d = 6 }) {
|
|
8688
8819
|
let p = s(), [_, v] = f(!1), y = t.find((e) => e.value === n), b = (e) => {
|
|
8689
8820
|
r(e), v(!1);
|
|
8690
8821
|
}, x = /* @__PURE__ */ g("button", {
|
|
@@ -8755,18 +8886,18 @@ function is({ label: e, options: t, value: n, onChange: r, help: i, hint: a, err
|
|
|
8755
8886
|
}
|
|
8756
8887
|
//#endregion
|
|
8757
8888
|
//#region src/SelectSplitChain.tsx
|
|
8758
|
-
function
|
|
8889
|
+
function fs(e) {
|
|
8759
8890
|
var t;
|
|
8760
8891
|
return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
|
|
8761
8892
|
}
|
|
8762
|
-
function
|
|
8893
|
+
function ps({ node: e, origin: t = !1 }) {
|
|
8763
8894
|
return /* @__PURE__ */ g("span", {
|
|
8764
8895
|
className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
|
|
8765
8896
|
children: [
|
|
8766
8897
|
/* @__PURE__ */ h("span", {
|
|
8767
8898
|
className: "select-chain__dot",
|
|
8768
8899
|
"aria-hidden": "true",
|
|
8769
|
-
children:
|
|
8900
|
+
children: fs(e)
|
|
8770
8901
|
}),
|
|
8771
8902
|
/* @__PURE__ */ h("span", {
|
|
8772
8903
|
className: "select-chain__label",
|
|
@@ -8780,16 +8911,16 @@ function os({ node: e, origin: t = !1 }) {
|
|
|
8780
8911
|
]
|
|
8781
8912
|
});
|
|
8782
8913
|
}
|
|
8783
|
-
var
|
|
8914
|
+
var ms = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
|
|
8784
8915
|
let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ h("span", {
|
|
8785
8916
|
className: "select-chain__link",
|
|
8786
8917
|
"aria-hidden": "true"
|
|
8787
8918
|
}, e);
|
|
8788
|
-
t && c.push(/* @__PURE__ */ h(
|
|
8919
|
+
t && c.push(/* @__PURE__ */ h(ps, {
|
|
8789
8920
|
node: t,
|
|
8790
8921
|
origin: !0
|
|
8791
8922
|
}, "__origin"));
|
|
8792
|
-
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ h(
|
|
8923
|
+
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ h(ps, { node: e }, e.id));
|
|
8793
8924
|
return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ g("span", {
|
|
8794
8925
|
className: "select-chain__more",
|
|
8795
8926
|
children: ["+", s]
|
|
@@ -8799,43 +8930,43 @@ var ss = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
|
|
|
8799
8930
|
className: `select-chain${r ? " " + r : ""}`,
|
|
8800
8931
|
children: c
|
|
8801
8932
|
});
|
|
8802
|
-
}),
|
|
8933
|
+
}), hs = new Intl.NumberFormat("pt-BR", {
|
|
8803
8934
|
style: "currency",
|
|
8804
8935
|
currency: "BRL"
|
|
8805
8936
|
});
|
|
8806
|
-
function
|
|
8937
|
+
function gs(e) {
|
|
8807
8938
|
let t = typeof e == "string" ? Number(e) : e;
|
|
8808
8939
|
return typeof t == "number" && Number.isFinite(t) ? t : 0;
|
|
8809
8940
|
}
|
|
8810
|
-
function
|
|
8811
|
-
return
|
|
8941
|
+
function _s(e) {
|
|
8942
|
+
return hs.format(gs(e) / 100);
|
|
8812
8943
|
}
|
|
8813
8944
|
//#endregion
|
|
8814
8945
|
//#region src/SelectMoney.tsx
|
|
8815
|
-
var
|
|
8946
|
+
var vs = "sw:hide-money", ys = {
|
|
8816
8947
|
hidden: !1,
|
|
8817
8948
|
toggle: () => {},
|
|
8818
8949
|
setHidden: () => {}
|
|
8819
|
-
},
|
|
8820
|
-
function
|
|
8950
|
+
}, bs = n(null);
|
|
8951
|
+
function xs() {
|
|
8821
8952
|
try {
|
|
8822
|
-
return localStorage.getItem(
|
|
8953
|
+
return localStorage.getItem(vs) === "1";
|
|
8823
8954
|
} catch {
|
|
8824
8955
|
return !1;
|
|
8825
8956
|
}
|
|
8826
8957
|
}
|
|
8827
|
-
function
|
|
8958
|
+
function Ss(e) {
|
|
8828
8959
|
try {
|
|
8829
|
-
localStorage.setItem(
|
|
8960
|
+
localStorage.setItem(vs, e ? "1" : "0");
|
|
8830
8961
|
} catch {}
|
|
8831
8962
|
}
|
|
8832
|
-
function
|
|
8833
|
-
let [t, n] = f(
|
|
8834
|
-
n(e),
|
|
8963
|
+
function Cs({ children: e }) {
|
|
8964
|
+
let [t, n] = f(xs), r = i((e) => {
|
|
8965
|
+
n(e), Ss(e);
|
|
8835
8966
|
}, []), a = i(() => {
|
|
8836
8967
|
n((e) => {
|
|
8837
8968
|
let t = !e;
|
|
8838
|
-
return
|
|
8969
|
+
return Ss(t), t;
|
|
8839
8970
|
});
|
|
8840
8971
|
}, []), o = u(() => ({
|
|
8841
8972
|
hidden: t,
|
|
@@ -8846,16 +8977,16 @@ function gs({ children: e }) {
|
|
|
8846
8977
|
a,
|
|
8847
8978
|
r
|
|
8848
8979
|
]);
|
|
8849
|
-
return /* @__PURE__ */ h(
|
|
8980
|
+
return /* @__PURE__ */ h(bs.Provider, {
|
|
8850
8981
|
value: o,
|
|
8851
8982
|
children: e
|
|
8852
8983
|
});
|
|
8853
8984
|
}
|
|
8854
|
-
function
|
|
8855
|
-
return a(
|
|
8985
|
+
function ws() {
|
|
8986
|
+
return a(bs) ?? ys;
|
|
8856
8987
|
}
|
|
8857
|
-
var
|
|
8858
|
-
let { hidden: a } =
|
|
8988
|
+
var Ts = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
|
|
8989
|
+
let { hidden: a } = ws();
|
|
8859
8990
|
return /* @__PURE__ */ h("span", {
|
|
8860
8991
|
ref: i,
|
|
8861
8992
|
...r,
|
|
@@ -8864,15 +8995,15 @@ var vs = r(function({ children: e, label: t = "valor oculto", className: n, ...r
|
|
|
8864
8995
|
children: e
|
|
8865
8996
|
});
|
|
8866
8997
|
});
|
|
8867
|
-
function
|
|
8868
|
-
let n =
|
|
8869
|
-
return h(t ?
|
|
8998
|
+
function Es({ cents: e, sensitive: t = !0 }) {
|
|
8999
|
+
let n = _s(e);
|
|
9000
|
+
return h(t ? Ts : m, { children: n });
|
|
8870
9001
|
}
|
|
8871
|
-
var
|
|
9002
|
+
var Ds = new Intl.NumberFormat("pt-BR", {
|
|
8872
9003
|
signDisplay: "exceptZero",
|
|
8873
9004
|
minimumFractionDigits: 1,
|
|
8874
9005
|
maximumFractionDigits: 1
|
|
8875
|
-
}),
|
|
9006
|
+
}), Os = r(function({ value: e, invert: t = !1, caption: n, unit: r = "percent", className: i, ...a }, o) {
|
|
8876
9007
|
if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ g("span", {
|
|
8877
9008
|
ref: o,
|
|
8878
9009
|
...a,
|
|
@@ -8888,7 +9019,7 @@ var bs = new Intl.NumberFormat("pt-BR", {
|
|
|
8888
9019
|
className: `select-delta__value select-delta__value--${u}`,
|
|
8889
9020
|
children: [
|
|
8890
9021
|
d ? `${d} ` : "",
|
|
8891
|
-
|
|
9022
|
+
Ds.format(e),
|
|
8892
9023
|
r === "points" ? " p.p." : "%"
|
|
8893
9024
|
]
|
|
8894
9025
|
}), n != null && /* @__PURE__ */ h("span", {
|
|
@@ -8897,8 +9028,8 @@ var bs = new Intl.NumberFormat("pt-BR", {
|
|
|
8897
9028
|
})]
|
|
8898
9029
|
});
|
|
8899
9030
|
});
|
|
8900
|
-
function
|
|
8901
|
-
let { hidden: e, toggle: t } =
|
|
9031
|
+
function ks() {
|
|
9032
|
+
let { hidden: e, toggle: t } = ws();
|
|
8902
9033
|
return /* @__PURE__ */ h(ei, {
|
|
8903
9034
|
variant: "outline",
|
|
8904
9035
|
icon: h(e ? He : Ve, {}),
|
|
@@ -8909,7 +9040,7 @@ function Ss() {
|
|
|
8909
9040
|
}
|
|
8910
9041
|
//#endregion
|
|
8911
9042
|
//#region src/SelectOfferPrice.tsx
|
|
8912
|
-
var
|
|
9043
|
+
var As = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note: i, prefix: a, suffix: o, className: s, ...c }, l) {
|
|
8913
9044
|
let u = Number(e);
|
|
8914
9045
|
if (!Number.isFinite(u)) return null;
|
|
8915
9046
|
let d = Number(t), f = Number.isFinite(d) && d > u, p = f ? Math.round((d - u) / d * 100) : 0;
|
|
@@ -8924,7 +9055,7 @@ var Cs = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
8924
9055
|
}),
|
|
8925
9056
|
/* @__PURE__ */ h("span", {
|
|
8926
9057
|
className: "select-offerprice__now",
|
|
8927
|
-
children: u === 0 && r != null ? r : /* @__PURE__ */ h(
|
|
9058
|
+
children: u === 0 && r != null ? r : /* @__PURE__ */ h(Es, { cents: u })
|
|
8928
9059
|
}),
|
|
8929
9060
|
o != null && /* @__PURE__ */ h("span", {
|
|
8930
9061
|
className: "select-offerprice__per",
|
|
@@ -8932,7 +9063,7 @@ var Cs = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
8932
9063
|
}),
|
|
8933
9064
|
f && /* @__PURE__ */ h("s", {
|
|
8934
9065
|
className: "select-offerprice__was",
|
|
8935
|
-
children: /* @__PURE__ */ h(
|
|
9066
|
+
children: /* @__PURE__ */ h(Es, { cents: d })
|
|
8936
9067
|
}),
|
|
8937
9068
|
f && !n && p > 0 && /* @__PURE__ */ g("span", {
|
|
8938
9069
|
className: "select-offerprice__off",
|
|
@@ -8951,7 +9082,7 @@ var Cs = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
8951
9082
|
});
|
|
8952
9083
|
//#endregion
|
|
8953
9084
|
//#region src/SelectRating.tsx
|
|
8954
|
-
function
|
|
9085
|
+
function js({ size: e }) {
|
|
8955
9086
|
return /* @__PURE__ */ h("svg", {
|
|
8956
9087
|
width: e,
|
|
8957
9088
|
height: e,
|
|
@@ -8963,7 +9094,7 @@ function ws({ size: e }) {
|
|
|
8963
9094
|
})
|
|
8964
9095
|
});
|
|
8965
9096
|
}
|
|
8966
|
-
var
|
|
9097
|
+
var Ms = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i, disabled: a = !1, className: o, ...s }, c) {
|
|
8967
9098
|
let l = !!n && !a, [u, d] = f(null), p = u ?? e;
|
|
8968
9099
|
return /* @__PURE__ */ h("div", {
|
|
8969
9100
|
ref: c,
|
|
@@ -8978,7 +9109,7 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
8978
9109
|
children: Array.from({ length: t }, (e, t) => {
|
|
8979
9110
|
let i = /* @__PURE__ */ h("span", {
|
|
8980
9111
|
className: `select-rating__star${t < p ? " is-filled" : ""}`,
|
|
8981
|
-
children: /* @__PURE__ */ h(
|
|
9112
|
+
children: /* @__PURE__ */ h(js, { size: r })
|
|
8982
9113
|
});
|
|
8983
9114
|
return l ? /* @__PURE__ */ h("button", {
|
|
8984
9115
|
type: "button",
|
|
@@ -8992,14 +9123,14 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
8992
9123
|
}, t) : /* @__PURE__ */ h("span", { children: i }, t);
|
|
8993
9124
|
})
|
|
8994
9125
|
});
|
|
8995
|
-
}),
|
|
9126
|
+
}), Ns = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
|
|
8996
9127
|
let s = Number(e), c = Number.isFinite(s) && s > 0;
|
|
8997
9128
|
return /* @__PURE__ */ g("div", {
|
|
8998
9129
|
ref: o,
|
|
8999
9130
|
...a,
|
|
9000
9131
|
className: `select-quote${i ? " " + i : ""}`,
|
|
9001
9132
|
children: [
|
|
9002
|
-
c && /* @__PURE__ */ h(
|
|
9133
|
+
c && /* @__PURE__ */ h(Ms, {
|
|
9003
9134
|
value: s,
|
|
9004
9135
|
max: t,
|
|
9005
9136
|
size: 13
|
|
@@ -9014,7 +9145,7 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9014
9145
|
})
|
|
9015
9146
|
]
|
|
9016
9147
|
});
|
|
9017
|
-
}),
|
|
9148
|
+
}), Ps = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
|
|
9018
9149
|
let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
|
|
9019
9150
|
return /* @__PURE__ */ g("div", {
|
|
9020
9151
|
ref: i,
|
|
@@ -9036,7 +9167,7 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9036
9167
|
children: ["+", o]
|
|
9037
9168
|
})]
|
|
9038
9169
|
});
|
|
9039
|
-
}),
|
|
9170
|
+
}), Fs = [
|
|
9040
9171
|
"Dom",
|
|
9041
9172
|
"Seg",
|
|
9042
9173
|
"Ter",
|
|
@@ -9044,7 +9175,7 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9044
9175
|
"Qui",
|
|
9045
9176
|
"Sex",
|
|
9046
9177
|
"Sáb"
|
|
9047
|
-
],
|
|
9178
|
+
], Is = [
|
|
9048
9179
|
"Janeiro",
|
|
9049
9180
|
"Fevereiro",
|
|
9050
9181
|
"Março",
|
|
@@ -9057,7 +9188,7 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9057
9188
|
"Outubro",
|
|
9058
9189
|
"Novembro",
|
|
9059
9190
|
"Dezembro"
|
|
9060
|
-
],
|
|
9191
|
+
], Ls = [
|
|
9061
9192
|
"Jan",
|
|
9062
9193
|
"Fev",
|
|
9063
9194
|
"Mar",
|
|
@@ -9070,33 +9201,33 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9070
9201
|
"Out",
|
|
9071
9202
|
"Nov",
|
|
9072
9203
|
"Dez"
|
|
9073
|
-
],
|
|
9074
|
-
function
|
|
9204
|
+
], Rs = 12, zs = (e) => String(e).padStart(2, "0"), Bs = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Vs = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Hs = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Us = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Ws = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
9205
|
+
function Gs(e) {
|
|
9075
9206
|
let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
|
|
9076
9207
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
|
|
9077
9208
|
}
|
|
9078
|
-
function
|
|
9079
|
-
let n = `${e.getFullYear()}-${
|
|
9080
|
-
return t ? `${n}T${
|
|
9209
|
+
function Ks(e, t) {
|
|
9210
|
+
let n = `${e.getFullYear()}-${zs(e.getMonth() + 1)}-${zs(e.getDate())}`;
|
|
9211
|
+
return t ? `${n}T${zs(e.getHours())}:${zs(e.getMinutes())}` : n;
|
|
9081
9212
|
}
|
|
9082
|
-
function
|
|
9083
|
-
let n = `${
|
|
9084
|
-
return t ? `${n} ${
|
|
9213
|
+
function qs(e, t) {
|
|
9214
|
+
let n = `${zs(e.getDate())}/${zs(e.getMonth() + 1)}/${e.getFullYear()}`;
|
|
9215
|
+
return t ? `${n} ${zs(e.getHours())}:${zs(e.getMinutes())}` : n;
|
|
9085
9216
|
}
|
|
9086
|
-
var
|
|
9087
|
-
let x = s(), S = _ ?? x, [C, w] = f(!1), T =
|
|
9217
|
+
var Js = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeholder: i, required: a, disabled: o, error: c, hint: l, minDate: u, maxDate: d, clearable: p = !0, openTo: m = "day", id: _, className: v, ...y }, b) {
|
|
9218
|
+
let x = s(), S = _ ?? x, [C, w] = f(!1), T = Gs(t), E = u ? Bs(u) : null, D = d ? Bs(d) : null, O = (e) => !!E && Bs(e) < E || !!D && Bs(e) > D, k = () => {
|
|
9088
9219
|
if (T) return T;
|
|
9089
9220
|
let e = /* @__PURE__ */ new Date();
|
|
9090
9221
|
return D && e > D ? D : E && e < E ? E : e;
|
|
9091
|
-
}, [A, j] = f(() =>
|
|
9092
|
-
o || (j(
|
|
9093
|
-
}, ee = (e) => j((t) => M === "day" ?
|
|
9222
|
+
}, [A, j] = f(() => Vs(k())), [M, N] = f("day"), P = (e) => !!E && e < E.getFullYear() || !!D && e > D.getFullYear(), F = (e, t) => !!E && new Date(e, t + 1, 0) < E || !!D && new Date(e, t, 1) > D, I = A.getFullYear() - A.getFullYear() % Rs, L = Hs(Vs(A), -Vs(A).getDay()), R = Array.from({ length: 42 }, (e, t) => Hs(L, t)), z = Bs(/* @__PURE__ */ new Date()), B = () => {
|
|
9223
|
+
o || (j(Vs(k())), N(!T && m === "year" ? "year" : "day"), w((e) => !e));
|
|
9224
|
+
}, ee = (e) => j((t) => M === "day" ? Us(t, e) : new Date(t.getFullYear() + e * (M === "year" ? Rs : 1), t.getMonth(), 1)), te = M === "day" ? ["Mês anterior", "Próximo mês"] : M === "month" ? ["Ano anterior", "Próximo ano"] : ["Anos anteriores", "Próximos anos"], V = (e) => {
|
|
9094
9225
|
if (O(e)) return;
|
|
9095
9226
|
let t = new Date(e);
|
|
9096
|
-
r && t.setHours((T == null ? void 0 : T.getHours()) ?? 0, (T == null ? void 0 : T.getMinutes()) ?? 0, 0, 0), n(
|
|
9227
|
+
r && t.setHours((T == null ? void 0 : T.getHours()) ?? 0, (T == null ? void 0 : T.getMinutes()) ?? 0, 0, 0), n(Ks(t, r)), r || w(!1);
|
|
9097
9228
|
}, H = (e) => {
|
|
9098
9229
|
let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(T ?? z);
|
|
9099
|
-
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(
|
|
9230
|
+
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(Ks(o, !0));
|
|
9100
9231
|
}, ne = () => {
|
|
9101
9232
|
n(""), w(!1);
|
|
9102
9233
|
}, re = /* @__PURE__ */ g("div", {
|
|
@@ -9110,7 +9241,7 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9110
9241
|
"aria-haspopup": "dialog",
|
|
9111
9242
|
"aria-expanded": C,
|
|
9112
9243
|
"aria-invalid": c ? !0 : void 0,
|
|
9113
|
-
children: T ?
|
|
9244
|
+
children: T ? qs(T, r) : /* @__PURE__ */ h("span", {
|
|
9114
9245
|
className: "select-datefield__ph",
|
|
9115
9246
|
children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
|
|
9116
9247
|
})
|
|
@@ -9155,14 +9286,14 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9155
9286
|
children: [
|
|
9156
9287
|
I,
|
|
9157
9288
|
" – ",
|
|
9158
|
-
I +
|
|
9289
|
+
I + Rs - 1
|
|
9159
9290
|
]
|
|
9160
9291
|
}) : /* @__PURE__ */ g("button", {
|
|
9161
9292
|
type: "button",
|
|
9162
9293
|
className: "select-datepicker__monthlabel select-datefield__modebtn",
|
|
9163
9294
|
"aria-label": M === "day" ? "Escolher o ano e o mês" : "Escolher o ano",
|
|
9164
9295
|
onClick: () => N("year"),
|
|
9165
|
-
children: [M === "day" ? `${
|
|
9296
|
+
children: [M === "day" ? `${Is[A.getMonth()]} ${A.getFullYear()}` : A.getFullYear(), /* @__PURE__ */ h(K, {})]
|
|
9166
9297
|
}),
|
|
9167
9298
|
/* @__PURE__ */ h("button", {
|
|
9168
9299
|
type: "button",
|
|
@@ -9177,7 +9308,7 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9177
9308
|
className: "select-datefield__cells",
|
|
9178
9309
|
role: "grid",
|
|
9179
9310
|
"aria-label": "Anos",
|
|
9180
|
-
children: Array.from({ length:
|
|
9311
|
+
children: Array.from({ length: Rs }, (e, t) => I + t).map((e) => {
|
|
9181
9312
|
let t = (T == null ? void 0 : T.getFullYear()) === e;
|
|
9182
9313
|
return /* @__PURE__ */ h("button", {
|
|
9183
9314
|
type: "button",
|
|
@@ -9194,11 +9325,11 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9194
9325
|
className: "select-datefield__cells",
|
|
9195
9326
|
role: "grid",
|
|
9196
9327
|
"aria-label": `Meses de ${A.getFullYear()}`,
|
|
9197
|
-
children:
|
|
9328
|
+
children: Ls.map((e, t) => {
|
|
9198
9329
|
let n = A.getFullYear(), r = !!T && T.getFullYear() === n && T.getMonth() === t;
|
|
9199
9330
|
return /* @__PURE__ */ h("button", {
|
|
9200
9331
|
type: "button",
|
|
9201
|
-
"aria-label": `${
|
|
9332
|
+
"aria-label": `${Is[t]} de ${n}`,
|
|
9202
9333
|
className: `select-datefield__cell${r ? " is-selected" : ""}`,
|
|
9203
9334
|
disabled: F(n, t),
|
|
9204
9335
|
onClick: () => {
|
|
@@ -9211,11 +9342,11 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9211
9342
|
M === "day" && /* @__PURE__ */ g("div", {
|
|
9212
9343
|
className: "select-datepicker__grid",
|
|
9213
9344
|
role: "grid",
|
|
9214
|
-
children: [
|
|
9345
|
+
children: [Fs.map((e) => /* @__PURE__ */ h("div", {
|
|
9215
9346
|
className: "select-datepicker__weekday",
|
|
9216
9347
|
children: e
|
|
9217
9348
|
}, e)), R.map((e) => {
|
|
9218
|
-
let t = e.getMonth() !== A.getMonth(), n = !!T &&
|
|
9349
|
+
let t = e.getMonth() !== A.getMonth(), n = !!T && Ws(e, T), r = "select-datepicker__daybtn" + (n ? " is-selected" : "") + (Ws(e, z) && !n ? " is-today" : "") + (t ? " is-outside" : "");
|
|
9219
9350
|
return /* @__PURE__ */ h("div", {
|
|
9220
9351
|
className: "select-datepicker__day",
|
|
9221
9352
|
children: /* @__PURE__ */ h("button", {
|
|
@@ -9237,7 +9368,7 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9237
9368
|
type: "time",
|
|
9238
9369
|
className: "select-input select-datefield__time-input",
|
|
9239
9370
|
"aria-label": "Horário",
|
|
9240
|
-
value: T ? `${
|
|
9371
|
+
value: T ? `${zs(T.getHours())}:${zs(T.getMinutes())}` : "",
|
|
9241
9372
|
onChange: (e) => H(e.target.value)
|
|
9242
9373
|
})]
|
|
9243
9374
|
}),
|
|
@@ -9278,25 +9409,25 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9278
9409
|
}) : null
|
|
9279
9410
|
]
|
|
9280
9411
|
});
|
|
9281
|
-
}),
|
|
9282
|
-
function
|
|
9283
|
-
let t =
|
|
9412
|
+
}), Ys = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?$/;
|
|
9413
|
+
function Xs(e) {
|
|
9414
|
+
let t = Ys.exec(e ?? "");
|
|
9284
9415
|
if (!t) return null;
|
|
9285
9416
|
let n = `${t[3]}/${t[2]}/${t[1]}`;
|
|
9286
9417
|
return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
|
|
9287
9418
|
}
|
|
9288
9419
|
//#endregion
|
|
9289
9420
|
//#region src/SelectFilterBar.tsx
|
|
9290
|
-
function
|
|
9421
|
+
function Zs(e, t) {
|
|
9291
9422
|
var n;
|
|
9292
|
-
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ?
|
|
9423
|
+
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ? Xs(t) ?? t : t;
|
|
9293
9424
|
}
|
|
9294
|
-
function
|
|
9425
|
+
function Qs({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: s }) {
|
|
9295
9426
|
let [c, l] = f("");
|
|
9296
9427
|
o(() => {
|
|
9297
9428
|
r || l("");
|
|
9298
9429
|
}, [r]);
|
|
9299
|
-
let u = t.trim() !== "", d = u ?
|
|
9430
|
+
let u = t.trim() !== "", d = u ? Zs(e, t) : null, p = u && !!e.error, m = e.options ?? [], _ = m.length > 7, v = _ ? m.filter((e) => e.label.toLowerCase().includes(c.trim().toLowerCase())) : m;
|
|
9300
9431
|
return /* @__PURE__ */ g(Zn, {
|
|
9301
9432
|
active: r,
|
|
9302
9433
|
onClose: a,
|
|
@@ -9354,7 +9485,7 @@ function Gs({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
9354
9485
|
})]
|
|
9355
9486
|
}) : e.type === "date" ? /* @__PURE__ */ h("div", {
|
|
9356
9487
|
className: "select-facet__field",
|
|
9357
|
-
children: /* @__PURE__ */ h(
|
|
9488
|
+
children: /* @__PURE__ */ h(Js, {
|
|
9358
9489
|
value: t,
|
|
9359
9490
|
onChange: n,
|
|
9360
9491
|
placeholder: e.placeholder,
|
|
@@ -9392,7 +9523,7 @@ function Gs({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
9392
9523
|
]
|
|
9393
9524
|
});
|
|
9394
9525
|
}
|
|
9395
|
-
var
|
|
9526
|
+
var $s = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, leading: a, disabled: o, className: s, ...c }, l) {
|
|
9396
9527
|
let [u, d] = f([]), [p, m] = f(null), [_, v] = f(!1), y = (e) => (t[e.key] ?? "").trim() !== "", b = (e) => !!e.pinned || y(e) || u.includes(e.key), x = e.filter(b), S = e.filter((e) => !b(e)), C = e.filter(y), w = () => {
|
|
9397
9528
|
d([]), m(null), r();
|
|
9398
9529
|
}, T = (e) => {
|
|
@@ -9431,7 +9562,7 @@ var Ks = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9431
9562
|
})
|
|
9432
9563
|
]
|
|
9433
9564
|
}),
|
|
9434
|
-
x.map((e) => /* @__PURE__ */ h(
|
|
9565
|
+
x.map((e) => /* @__PURE__ */ h(Qs, {
|
|
9435
9566
|
filter: e,
|
|
9436
9567
|
value: t[e.key] ?? "",
|
|
9437
9568
|
onChange: (t) => n(e.key, t),
|
|
@@ -9477,7 +9608,7 @@ var Ks = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9477
9608
|
children: [
|
|
9478
9609
|
e.label,
|
|
9479
9610
|
": ",
|
|
9480
|
-
|
|
9611
|
+
Zs(e, t[e.key] ?? ""),
|
|
9481
9612
|
/* @__PURE__ */ h("button", {
|
|
9482
9613
|
type: "button",
|
|
9483
9614
|
className: "select-filterbar__tagx",
|
|
@@ -9494,7 +9625,7 @@ var Ks = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9494
9625
|
})]
|
|
9495
9626
|
})]
|
|
9496
9627
|
});
|
|
9497
|
-
}),
|
|
9628
|
+
}), ec = r(function({ label: e, options: t, selected: n, onChange: r, placeholder: i = "Selecionar…", hint: a, help: o, error: s, onBlur: c, size: l = "md", unknownLabel: u, loading: d = !1, loadingLabel: p = "Carregando…", disabled: m = !1, className: _, ...v }, y) {
|
|
9498
9629
|
let [b, x] = f(!1), S = d || m, [C, w] = f(""), T = t.filter((e) => e.label.toLowerCase().includes(C.trim().toLowerCase())), E = (e) => r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]), D = n.map((e) => {
|
|
9499
9630
|
let n = t.find((t) => t.value === e);
|
|
9500
9631
|
return n ? {
|
|
@@ -9625,7 +9756,7 @@ var Ks = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9625
9756
|
}) : null
|
|
9626
9757
|
]
|
|
9627
9758
|
});
|
|
9628
|
-
}),
|
|
9759
|
+
}), tc = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
|
|
9629
9760
|
return /* @__PURE__ */ g("div", {
|
|
9630
9761
|
ref: c,
|
|
9631
9762
|
...s,
|
|
@@ -9657,8 +9788,8 @@ var Ks = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9657
9788
|
})
|
|
9658
9789
|
]
|
|
9659
9790
|
});
|
|
9660
|
-
}),
|
|
9661
|
-
function
|
|
9791
|
+
}), nc = n(null), rc = 220, ic = 4e3, ac = 8, oc = .04, sc = 5;
|
|
9792
|
+
function cc({ children: e }) {
|
|
9662
9793
|
let [t, n] = f([]), r = d(0), a = d(/* @__PURE__ */ new Map()), s = i((e) => {
|
|
9663
9794
|
n((t) => t.filter((t) => t.id !== e)), a.current.delete(e);
|
|
9664
9795
|
}, []), c = i((e) => {
|
|
@@ -9666,9 +9797,9 @@ function tc({ children: e }) {
|
|
|
9666
9797
|
t && clearTimeout(t), n((t) => t.map((t) => t.id === e ? {
|
|
9667
9798
|
...t,
|
|
9668
9799
|
exiting: !0
|
|
9669
|
-
} : t)), a.current.set(e, setTimeout(() => s(e),
|
|
9800
|
+
} : t)), a.current.set(e, setTimeout(() => s(e), rc));
|
|
9670
9801
|
}, [s]), l = i((e, t) => {
|
|
9671
|
-
let i = ++r.current, o = (t == null ? void 0 : t.duration) ??
|
|
9802
|
+
let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? ic;
|
|
9672
9803
|
n((n) => [...n, {
|
|
9673
9804
|
id: i,
|
|
9674
9805
|
content: e,
|
|
@@ -9696,7 +9827,7 @@ function tc({ children: e }) {
|
|
|
9696
9827
|
duration: t
|
|
9697
9828
|
})
|
|
9698
9829
|
}), [l]);
|
|
9699
|
-
return /* @__PURE__ */ g(
|
|
9830
|
+
return /* @__PURE__ */ g(nc.Provider, {
|
|
9700
9831
|
value: p,
|
|
9701
9832
|
children: [e, t.length > 0 && _(/* @__PURE__ */ h("div", {
|
|
9702
9833
|
className: "select select-toasts",
|
|
@@ -9704,8 +9835,8 @@ function tc({ children: e }) {
|
|
|
9704
9835
|
"aria-live": "polite",
|
|
9705
9836
|
"aria-label": "Notificações",
|
|
9706
9837
|
children: t.map((e, n) => {
|
|
9707
|
-
let r = t.length - 1 - n, i = e.exiting || r >=
|
|
9708
|
-
transform: `translate(-50%, ${-r *
|
|
9838
|
+
let r = t.length - 1 - n, i = e.exiting || r >= sc, a = {
|
|
9839
|
+
transform: `translate(-50%, ${-r * ac}px) scale(${1 - r * oc})`,
|
|
9709
9840
|
opacity: +!i,
|
|
9710
9841
|
zIndex: 1e3 - r,
|
|
9711
9842
|
pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
|
|
@@ -9729,14 +9860,14 @@ function tc({ children: e }) {
|
|
|
9729
9860
|
}), document.body)]
|
|
9730
9861
|
});
|
|
9731
9862
|
}
|
|
9732
|
-
function
|
|
9733
|
-
let e = a(
|
|
9863
|
+
function lc() {
|
|
9864
|
+
let e = a(nc);
|
|
9734
9865
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
9735
9866
|
return e;
|
|
9736
9867
|
}
|
|
9737
9868
|
//#endregion
|
|
9738
9869
|
//#region src/SelectPreviewFrame.tsx
|
|
9739
|
-
var
|
|
9870
|
+
var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc = r(function({ src: e, sandbox: t = uc, title: n = "Pré-visualização", height: r = 560, fill: i = !1, initialDevice: a = "desktop", showDeviceToggle: o = !0, openLabel: s = "Abrir em nova aba", emptyLabel: c = "Salve para gerar a pré-visualização.", onReload: u, notice: p, iframeRef: _, desktopWidth: v = fc, className: y, ...b }, x) {
|
|
9740
9871
|
let S = Ji(e), [C, w] = f(a), [T, E] = f(0), [D, O] = f(!0), k = d(null), [A, j] = f({
|
|
9741
9872
|
w: 0,
|
|
9742
9873
|
h: 0
|
|
@@ -9754,7 +9885,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
9754
9885
|
});
|
|
9755
9886
|
return t.observe(e), () => t.disconnect();
|
|
9756
9887
|
}, []);
|
|
9757
|
-
let M = C === "mobile" ?
|
|
9888
|
+
let M = C === "mobile" ? dc : v, N = A.w > 0 ? Math.min(1, A.w / M) : 1, P = S ? `${S}${S.includes("?") ? "&" : "?"}_pv=${T}` : "", F = () => {
|
|
9758
9889
|
if (O(!0), u) {
|
|
9759
9890
|
u();
|
|
9760
9891
|
return;
|
|
@@ -9843,7 +9974,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
9843
9974
|
})
|
|
9844
9975
|
})]
|
|
9845
9976
|
});
|
|
9846
|
-
}),
|
|
9977
|
+
}), mc = r(function({ availableCents: e, availableLabel: t = "Saldo disponível", delta: n, buckets: r = [], action: i, variant: a = "card", updatedLabel: o, meta: s = [], status: c, loading: l = !1, className: u, ...d }, f) {
|
|
9847
9978
|
if (a === "hero") {
|
|
9848
9979
|
let n = (e, t = "1em") => /* @__PURE__ */ h("span", {
|
|
9849
9980
|
className: "select-skeleton select-balance__skel",
|
|
@@ -9851,7 +9982,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
9851
9982
|
width: e,
|
|
9852
9983
|
height: t
|
|
9853
9984
|
}
|
|
9854
|
-
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ h(
|
|
9985
|
+
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ h(Es, { cents: e });
|
|
9855
9986
|
return /* @__PURE__ */ h("div", {
|
|
9856
9987
|
ref: f,
|
|
9857
9988
|
...d,
|
|
@@ -9883,7 +10014,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
9883
10014
|
className: "select-balance-hero__meta",
|
|
9884
10015
|
children: s.map((e, t) => /* @__PURE__ */ g("div", {
|
|
9885
10016
|
className: "select-balance-hero__metaitem",
|
|
9886
|
-
children: [/* @__PURE__ */ h("dt", { children: e.label }), /* @__PURE__ */ h("dd", { children: l ? n("7ch") : e.cents != null && e.cents !== "" ? /* @__PURE__ */ g(m, { children: [e.prefix, /* @__PURE__ */ h(
|
|
10017
|
+
children: [/* @__PURE__ */ h("dt", { children: e.label }), /* @__PURE__ */ h("dd", { children: l ? n("7ch") : e.cents != null && e.cents !== "" ? /* @__PURE__ */ g(m, { children: [e.prefix, /* @__PURE__ */ h(Es, { cents: e.cents })] }) : e.value ?? "—" })]
|
|
9887
10018
|
}, t))
|
|
9888
10019
|
}),
|
|
9889
10020
|
(i || c) && /* @__PURE__ */ g("div", {
|
|
@@ -9958,8 +10089,8 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
9958
10089
|
className: "select-balance__heromain",
|
|
9959
10090
|
children: [/* @__PURE__ */ h("span", {
|
|
9960
10091
|
className: "select-balance__heroamount",
|
|
9961
|
-
children: /* @__PURE__ */ h(
|
|
9962
|
-
}), n != null && /* @__PURE__ */ h(
|
|
10092
|
+
children: /* @__PURE__ */ h(Es, { cents: e })
|
|
10093
|
+
}), n != null && /* @__PURE__ */ h(Os, {
|
|
9963
10094
|
value: n,
|
|
9964
10095
|
caption: "vs. período anterior"
|
|
9965
10096
|
})]
|
|
@@ -9978,14 +10109,14 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
9978
10109
|
children: e.label
|
|
9979
10110
|
}), /* @__PURE__ */ h("span", {
|
|
9980
10111
|
className: "select-balance__bucketamount",
|
|
9981
|
-
children: /* @__PURE__ */ h(
|
|
10112
|
+
children: /* @__PURE__ */ h(Es, { cents: e.cents })
|
|
9982
10113
|
})]
|
|
9983
10114
|
})]
|
|
9984
10115
|
}, e.label))
|
|
9985
10116
|
})]
|
|
9986
10117
|
})]
|
|
9987
10118
|
});
|
|
9988
|
-
}),
|
|
10119
|
+
}), hc = r(function({ grossCents: e, fees: t, netCents: n, grossLabel: r = "Valor bruto", netLabel: i = "Valor líquido", bar: a = !1, barLabel: o, className: s, ...c }, l) {
|
|
9989
10120
|
let u = n ?? e - t.reduce((e, t) => e + t.cents, 0), d = Math.max(0, e - u), f = a && e > 0 && u >= 0, p = e > 0 ? d / e * 100 : 0;
|
|
9990
10121
|
return /* @__PURE__ */ g("div", {
|
|
9991
10122
|
ref: l,
|
|
@@ -10005,7 +10136,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
10005
10136
|
children: o ?? /* @__PURE__ */ g(m, { children: [
|
|
10006
10137
|
i,
|
|
10007
10138
|
" · ",
|
|
10008
|
-
/* @__PURE__ */ h(
|
|
10139
|
+
/* @__PURE__ */ h(Es, { cents: u })
|
|
10009
10140
|
] })
|
|
10010
10141
|
})
|
|
10011
10142
|
}), d > 0 && /* @__PURE__ */ h("span", {
|
|
@@ -10022,7 +10153,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
10022
10153
|
"aria-hidden": "true"
|
|
10023
10154
|
}),
|
|
10024
10155
|
"Taxas ",
|
|
10025
|
-
/* @__PURE__ */ h(
|
|
10156
|
+
/* @__PURE__ */ h(Es, { cents: d }),
|
|
10026
10157
|
" (",
|
|
10027
10158
|
p.toLocaleString("pt-BR", {
|
|
10028
10159
|
maximumFractionDigits: 1,
|
|
@@ -10038,20 +10169,20 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
10038
10169
|
"aria-hidden": "true"
|
|
10039
10170
|
}),
|
|
10040
10171
|
"Líquido ",
|
|
10041
|
-
/* @__PURE__ */ h(
|
|
10172
|
+
/* @__PURE__ */ h(Es, { cents: u })
|
|
10042
10173
|
]
|
|
10043
10174
|
})]
|
|
10044
10175
|
})]
|
|
10045
10176
|
}),
|
|
10046
10177
|
/* @__PURE__ */ g("div", {
|
|
10047
10178
|
className: "select-fees__row",
|
|
10048
|
-
children: [/* @__PURE__ */ h("span", { children: r }), /* @__PURE__ */ h("span", { children: /* @__PURE__ */ h(
|
|
10179
|
+
children: [/* @__PURE__ */ h("span", { children: r }), /* @__PURE__ */ h("span", { children: /* @__PURE__ */ h(Es, { cents: e }) })]
|
|
10049
10180
|
}),
|
|
10050
10181
|
t.map((e) => /* @__PURE__ */ g("div", {
|
|
10051
10182
|
className: "select-fees__row",
|
|
10052
10183
|
children: [/* @__PURE__ */ h("span", { children: e.label }), /* @__PURE__ */ g("span", {
|
|
10053
10184
|
className: "select-fees__neg",
|
|
10054
|
-
children: ["−\xA0", /* @__PURE__ */ h(
|
|
10185
|
+
children: ["−\xA0", /* @__PURE__ */ h(Es, { cents: e.cents })]
|
|
10055
10186
|
})]
|
|
10056
10187
|
}, e.label)),
|
|
10057
10188
|
/* @__PURE__ */ h("div", { className: "select-fees__divider" }),
|
|
@@ -10059,12 +10190,12 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
10059
10190
|
className: "select-fees__row select-fees__row--net",
|
|
10060
10191
|
children: [/* @__PURE__ */ h("span", { children: i }), /* @__PURE__ */ h("span", {
|
|
10061
10192
|
className: "select-fees__netvalue",
|
|
10062
|
-
children: /* @__PURE__ */ h(
|
|
10193
|
+
children: /* @__PURE__ */ h(Es, { cents: u })
|
|
10063
10194
|
})]
|
|
10064
10195
|
})
|
|
10065
10196
|
]
|
|
10066
10197
|
});
|
|
10067
|
-
}),
|
|
10198
|
+
}), gc = r(function({ label: e, value: t, caption: n, chart: r, help: i, tone: a, bare: o = !1, onClick: s, selected: c = !1, loading: l = !1, className: u, ...d }, f) {
|
|
10068
10199
|
let p = s != null, _ = p ? {
|
|
10069
10200
|
role: "button",
|
|
10070
10201
|
tabIndex: 0,
|
|
@@ -10109,7 +10240,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
10109
10240
|
})
|
|
10110
10241
|
] })]
|
|
10111
10242
|
});
|
|
10112
|
-
}),
|
|
10243
|
+
}), _c = {
|
|
10113
10244
|
"pt-BR": {
|
|
10114
10245
|
severity: {
|
|
10115
10246
|
info: "Para saber",
|
|
@@ -10258,42 +10389,42 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
10258
10389
|
unread: "Nuevo"
|
|
10259
10390
|
}
|
|
10260
10391
|
};
|
|
10261
|
-
function
|
|
10392
|
+
function vc(e) {
|
|
10262
10393
|
return e === "en" || e != null && e.startsWith("en-") ? "en" : e === "es" || e != null && e.startsWith("es-") ? "es" : "pt-BR";
|
|
10263
10394
|
}
|
|
10264
|
-
function
|
|
10265
|
-
let n =
|
|
10395
|
+
function yc(e, t) {
|
|
10396
|
+
let n = vc(e);
|
|
10266
10397
|
return {
|
|
10267
10398
|
lang: n,
|
|
10268
10399
|
labels: {
|
|
10269
|
-
...
|
|
10400
|
+
..._c[n],
|
|
10270
10401
|
...t
|
|
10271
10402
|
}
|
|
10272
10403
|
};
|
|
10273
10404
|
}
|
|
10274
|
-
var
|
|
10405
|
+
var bc = {
|
|
10275
10406
|
info: "info",
|
|
10276
10407
|
opportunity: "success",
|
|
10277
10408
|
warning: "warning",
|
|
10278
10409
|
critical: "critical"
|
|
10279
10410
|
};
|
|
10280
|
-
function
|
|
10411
|
+
function xc(e, t, n) {
|
|
10281
10412
|
return new Intl.NumberFormat(n, {
|
|
10282
10413
|
style: "currency",
|
|
10283
10414
|
currency: t,
|
|
10284
10415
|
maximumFractionDigits: 0
|
|
10285
10416
|
}).format(e / 100);
|
|
10286
10417
|
}
|
|
10287
|
-
function
|
|
10288
|
-
let r =
|
|
10418
|
+
function Sc(e, t, n) {
|
|
10419
|
+
let r = xc(e.minCents, e.currency, t), i = xc(e.maxCents, e.currency, t);
|
|
10289
10420
|
return e.minCents === e.maxCents ? n.about(i) : `${r}${n.rangeJoin}${i}`;
|
|
10290
10421
|
}
|
|
10291
|
-
function
|
|
10292
|
-
let r =
|
|
10422
|
+
function Cc(e, t = "pt-BR", n = _c[vc(t)]) {
|
|
10423
|
+
let r = vc(t), i = xc(e.minCents, e.currency, r), a = xc(e.maxCents, e.currency, r);
|
|
10293
10424
|
return e.minCents === e.maxCents ? n.impactAbout(a) : n.impact(`${i}${n.rangeJoin}${a}`);
|
|
10294
10425
|
}
|
|
10295
|
-
var
|
|
10296
|
-
function
|
|
10426
|
+
var wc = 864e5;
|
|
10427
|
+
function Tc(e, t, n, r) {
|
|
10297
10428
|
let i = new Date(e.start), a = new Date(e.end);
|
|
10298
10429
|
if (Number.isNaN(i.getTime()) || Number.isNaN(a.getTime())) return null;
|
|
10299
10430
|
let o = new Intl.DateTimeFormat("en", {
|
|
@@ -10305,7 +10436,7 @@ function vc(e, t, n, r) {
|
|
|
10305
10436
|
...s ? {} : { year: "numeric" },
|
|
10306
10437
|
timeZone: n
|
|
10307
10438
|
});
|
|
10308
|
-
if (a.getTime() - i.getTime() <
|
|
10439
|
+
if (a.getTime() - i.getTime() < wc) {
|
|
10309
10440
|
let e = new Intl.DateTimeFormat(t, {
|
|
10310
10441
|
hour: "2-digit",
|
|
10311
10442
|
minute: "2-digit",
|
|
@@ -10316,8 +10447,8 @@ function vc(e, t, n, r) {
|
|
|
10316
10447
|
}
|
|
10317
10448
|
return r.periodRange(c.format(i), c.format(a));
|
|
10318
10449
|
}
|
|
10319
|
-
function
|
|
10320
|
-
let n =
|
|
10450
|
+
function Ec({ severity: e, labels: t }) {
|
|
10451
|
+
let n = bc[e] ?? "info";
|
|
10321
10452
|
return /* @__PURE__ */ g("span", {
|
|
10322
10453
|
className: `select-insight__sev select-insight__sev--${n}`,
|
|
10323
10454
|
children: [/* @__PURE__ */ h("span", {
|
|
@@ -10326,7 +10457,7 @@ function yc({ severity: e, labels: t }) {
|
|
|
10326
10457
|
}), t.severity[e] ?? e]
|
|
10327
10458
|
});
|
|
10328
10459
|
}
|
|
10329
|
-
function
|
|
10460
|
+
function Dc({ label: e }) {
|
|
10330
10461
|
return /* @__PURE__ */ g("span", {
|
|
10331
10462
|
className: "select-insight__new",
|
|
10332
10463
|
children: [/* @__PURE__ */ h("span", {
|
|
@@ -10335,10 +10466,10 @@ function bc({ label: e }) {
|
|
|
10335
10466
|
}), e]
|
|
10336
10467
|
});
|
|
10337
10468
|
}
|
|
10338
|
-
function
|
|
10469
|
+
function Oc(e) {
|
|
10339
10470
|
return e != null && typeof e.raw == "number" && Number.isFinite(e.raw) && e.raw >= 0 ? e.raw : null;
|
|
10340
10471
|
}
|
|
10341
|
-
function
|
|
10472
|
+
function kc({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
10342
10473
|
let r = Math.max(0, Math.min(1, e)) * 100;
|
|
10343
10474
|
return /* @__PURE__ */ h("span", {
|
|
10344
10475
|
className: `select-insight__bar select-insight__bar--${t}${n === "sm" ? " select-insight__bar--sm" : ""}`,
|
|
@@ -10349,18 +10480,18 @@ function Sc({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
|
10349
10480
|
})
|
|
10350
10481
|
});
|
|
10351
10482
|
}
|
|
10352
|
-
var
|
|
10483
|
+
var Ac = /* @__PURE__ */ new Set([
|
|
10353
10484
|
"metric",
|
|
10354
10485
|
"comparison",
|
|
10355
10486
|
"table",
|
|
10356
10487
|
"items",
|
|
10357
10488
|
"text"
|
|
10358
10489
|
]);
|
|
10359
|
-
function
|
|
10360
|
-
return
|
|
10490
|
+
function jc(e) {
|
|
10491
|
+
return Ac.has(e.type);
|
|
10361
10492
|
}
|
|
10362
|
-
function
|
|
10363
|
-
let t =
|
|
10493
|
+
function Mc({ block: e }) {
|
|
10494
|
+
let t = Oc(e.value), n = Oc(e.baseline), r = t != null && n != null && Math.max(t, n) > 0 ? Math.max(t, n) / .9 : null, i = !!e.valueLabel;
|
|
10364
10495
|
return /* @__PURE__ */ g("div", {
|
|
10365
10496
|
className: `select-insight__tile select-insight__cmp${r == null ? " select-insight__cmp--plain" : ""}${!i && r != null ? " select-insight__cmp--stacked" : ""}`,
|
|
10366
10497
|
children: [
|
|
@@ -10377,7 +10508,7 @@ function Tc({ block: e }) {
|
|
|
10377
10508
|
className: "select-insight__cmpname",
|
|
10378
10509
|
children: i ? e.valueLabel : e.label
|
|
10379
10510
|
}),
|
|
10380
|
-
r == null ? null : /* @__PURE__ */ h(
|
|
10511
|
+
r == null ? null : /* @__PURE__ */ h(kc, {
|
|
10381
10512
|
fraction: (t ?? 0) / r,
|
|
10382
10513
|
tone: "own"
|
|
10383
10514
|
}),
|
|
@@ -10393,7 +10524,7 @@ function Tc({ block: e }) {
|
|
|
10393
10524
|
className: "select-insight__cmpname",
|
|
10394
10525
|
children: e.baselineLabel
|
|
10395
10526
|
}),
|
|
10396
|
-
r == null ? null : /* @__PURE__ */ h(
|
|
10527
|
+
r == null ? null : /* @__PURE__ */ h(kc, {
|
|
10397
10528
|
fraction: (n ?? 0) / r,
|
|
10398
10529
|
tone: "reference"
|
|
10399
10530
|
}),
|
|
@@ -10411,8 +10542,8 @@ function Tc({ block: e }) {
|
|
|
10411
10542
|
]
|
|
10412
10543
|
});
|
|
10413
10544
|
}
|
|
10414
|
-
function
|
|
10415
|
-
let n = e.items.map((e) =>
|
|
10545
|
+
function Nc({ block: e, renderItem: t }) {
|
|
10546
|
+
let n = e.items.map((e) => Oc(e.value)), r = Math.max(0, ...n.map((e) => e ?? 0)), i = e.items.length > 0 && r > 0 && n.every((e) => e != null);
|
|
10416
10547
|
return /* @__PURE__ */ g("div", {
|
|
10417
10548
|
className: "select-insight__box",
|
|
10418
10549
|
children: [/* @__PURE__ */ h("h5", {
|
|
@@ -10425,7 +10556,7 @@ function Ec({ block: e, renderItem: t }) {
|
|
|
10425
10556
|
className: "select-insight__itemlabel",
|
|
10426
10557
|
children: (t == null ? void 0 : t(e)) ?? e.label
|
|
10427
10558
|
}),
|
|
10428
|
-
i ? /* @__PURE__ */ h(
|
|
10559
|
+
i ? /* @__PURE__ */ h(kc, {
|
|
10429
10560
|
fraction: (n[a] ?? 0) / r,
|
|
10430
10561
|
size: "sm"
|
|
10431
10562
|
}) : null,
|
|
@@ -10437,14 +10568,14 @@ function Ec({ block: e, renderItem: t }) {
|
|
|
10437
10568
|
})]
|
|
10438
10569
|
});
|
|
10439
10570
|
}
|
|
10440
|
-
function
|
|
10571
|
+
function Pc({ block: e }) {
|
|
10441
10572
|
let t = new Set(e.columns.filter((t) => e.rows.length > 0 && e.rows.every((e) => {
|
|
10442
10573
|
var n;
|
|
10443
|
-
return ((n = e[t.key]) == null ? void 0 : n.type) === "percent" && (
|
|
10574
|
+
return ((n = e[t.key]) == null ? void 0 : n.type) === "percent" && (Oc(e[t.key]) ?? 2) <= 1;
|
|
10444
10575
|
})).map((e) => e.key)), n = (e, n) => n && t.has(e) ? /* @__PURE__ */ g("span", {
|
|
10445
10576
|
className: "select-insight__share",
|
|
10446
|
-
children: [/* @__PURE__ */ h(
|
|
10447
|
-
fraction:
|
|
10577
|
+
children: [/* @__PURE__ */ h(kc, {
|
|
10578
|
+
fraction: Oc(n) ?? 0,
|
|
10448
10579
|
size: "sm"
|
|
10449
10580
|
}), /* @__PURE__ */ h("span", {
|
|
10450
10581
|
className: "select-insight__sharevalue",
|
|
@@ -10473,7 +10604,7 @@ function Dc({ block: e }) {
|
|
|
10473
10604
|
})]
|
|
10474
10605
|
}) : null] });
|
|
10475
10606
|
}
|
|
10476
|
-
function
|
|
10607
|
+
function Fc({ link: e, primary: t }) {
|
|
10477
10608
|
let n = Ji(e.href);
|
|
10478
10609
|
if (!n && !e.onClick) return null;
|
|
10479
10610
|
let r = t ? "select-btn select-btn--primary select-btn--auto select-insight__go" : "select-insight__golink", i = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", { children: e.label }), /* @__PURE__ */ h(W, {})] });
|
|
@@ -10498,8 +10629,8 @@ function Oc({ link: e, primary: t }) {
|
|
|
10498
10629
|
children: i
|
|
10499
10630
|
});
|
|
10500
10631
|
}
|
|
10501
|
-
function
|
|
10502
|
-
let { lang: w, labels: T } =
|
|
10632
|
+
function Ic({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo", locked: i = !1, lockedCta: a, position: o, unread: s = !1, badges: c, nav: l, triage: u, triageNote: d, footer: f, trend: p, outcome: _, renderItem: v, actionLink: y, renderAction: b, methodologyOpen: x = !1, bare: S = !1, className: C }) {
|
|
10633
|
+
let { lang: w, labels: T } = yc(t, n), E = bc[e.severity] ?? "info", D = e.period ? Tc(e.period, w, r, T) : null, O = (e.blocks ?? []).filter(jc), k = e.actions ?? [], A = `select-insight select-insight--${E}` + (i ? " select-insight--locked" : "") + (S ? " select-insight--bare" : "") + (C ? " " + C : ""), j = /* @__PURE__ */ g("header", {
|
|
10503
10634
|
className: "select-insight__head",
|
|
10504
10635
|
children: [/* @__PURE__ */ g("div", {
|
|
10505
10636
|
className: "select-insight__meta",
|
|
@@ -10508,12 +10639,12 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10508
10639
|
className: "select-insight__position",
|
|
10509
10640
|
children: o
|
|
10510
10641
|
}) : null,
|
|
10511
|
-
/* @__PURE__ */ h(
|
|
10642
|
+
/* @__PURE__ */ h(Ec, {
|
|
10512
10643
|
severity: e.severity,
|
|
10513
10644
|
labels: T
|
|
10514
10645
|
}),
|
|
10515
10646
|
e.domain ? /* @__PURE__ */ h("span", { children: T.domain[e.domain] ?? e.domain }) : null,
|
|
10516
|
-
s && !i ? /* @__PURE__ */ h(
|
|
10647
|
+
s && !i ? /* @__PURE__ */ h(Dc, { label: T.unread }) : null,
|
|
10517
10648
|
i ? /* @__PURE__ */ h(wr, {
|
|
10518
10649
|
tone: "pro",
|
|
10519
10650
|
size: "sm",
|
|
@@ -10550,7 +10681,7 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10550
10681
|
}),
|
|
10551
10682
|
/* @__PURE__ */ h("strong", {
|
|
10552
10683
|
className: "select-insight__stakevalue",
|
|
10553
|
-
children:
|
|
10684
|
+
children: Sc(e.impact, w, T)
|
|
10554
10685
|
}),
|
|
10555
10686
|
/* @__PURE__ */ h("span", {
|
|
10556
10687
|
className: "select-insight__stakenote",
|
|
@@ -10599,7 +10730,7 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10599
10730
|
I || u ? /* @__PURE__ */ g("div", {
|
|
10600
10731
|
className: "select-insight__nowactions",
|
|
10601
10732
|
children: [
|
|
10602
|
-
I ? /* @__PURE__ */ h(
|
|
10733
|
+
I ? /* @__PURE__ */ h(Fc, {
|
|
10603
10734
|
link: I,
|
|
10604
10735
|
primary: !0
|
|
10605
10736
|
}) : null,
|
|
@@ -10625,7 +10756,7 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10625
10756
|
return /* @__PURE__ */ h("li", { children: n ?? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", {
|
|
10626
10757
|
className: "select-insight__moretext",
|
|
10627
10758
|
children: e.label
|
|
10628
|
-
}), r ? /* @__PURE__ */ h(
|
|
10759
|
+
}), r ? /* @__PURE__ */ h(Fc, {
|
|
10629
10760
|
link: r,
|
|
10630
10761
|
primary: !1
|
|
10631
10762
|
}) : null] }) }, `${e.target ?? "text"}:${t}`);
|
|
@@ -10663,7 +10794,7 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10663
10794
|
}),
|
|
10664
10795
|
/* @__PURE__ */ h("div", {
|
|
10665
10796
|
className: "select-insight__tilevalue",
|
|
10666
|
-
children:
|
|
10797
|
+
children: Sc(e.impact, w, T)
|
|
10667
10798
|
}),
|
|
10668
10799
|
/* @__PURE__ */ h("div", {
|
|
10669
10800
|
className: "select-insight__tilenote",
|
|
@@ -10674,7 +10805,7 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10674
10805
|
children: [/* @__PURE__ */ h("span", { children: z.label }), /* @__PURE__ */ h("strong", { children: z.value.display })]
|
|
10675
10806
|
}) : null
|
|
10676
10807
|
]
|
|
10677
|
-
}) : null, B.map((e, t) => e.type === "comparison" ? /* @__PURE__ */ h(
|
|
10808
|
+
}) : null, B.map((e, t) => e.type === "comparison" ? /* @__PURE__ */ h(Mc, { block: e }, t) : /* @__PURE__ */ g("div", {
|
|
10678
10809
|
className: "select-insight__tile",
|
|
10679
10810
|
children: [
|
|
10680
10811
|
/* @__PURE__ */ h("div", {
|
|
@@ -10706,10 +10837,10 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10706
10837
|
p.content
|
|
10707
10838
|
]
|
|
10708
10839
|
}) : null,
|
|
10709
|
-
ee.map((e, t) => e.type === "items" ? /* @__PURE__ */ h(
|
|
10840
|
+
ee.map((e, t) => e.type === "items" ? /* @__PURE__ */ h(Nc, {
|
|
10710
10841
|
block: e,
|
|
10711
10842
|
renderItem: v
|
|
10712
|
-
}, t) : e.type === "table" ? /* @__PURE__ */ h(
|
|
10843
|
+
}, t) : e.type === "table" ? /* @__PURE__ */ h(Pc, { block: e }, t) : e.type === "text" ? /* @__PURE__ */ g("div", {
|
|
10713
10844
|
className: "select-insight__text",
|
|
10714
10845
|
children: [/* @__PURE__ */ h(ve, {}), /* @__PURE__ */ h("span", { children: e.text })]
|
|
10715
10846
|
}, t) : null)
|
|
@@ -10792,25 +10923,25 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10792
10923
|
]
|
|
10793
10924
|
});
|
|
10794
10925
|
}
|
|
10795
|
-
function
|
|
10926
|
+
function Lc({ layout: e = "rows", children: t, className: n, ...r }) {
|
|
10796
10927
|
return /* @__PURE__ */ h("div", {
|
|
10797
10928
|
...r,
|
|
10798
10929
|
className: `select-insightlist${e === "cards" ? " select-insightlist--cards" : ""}${n ? " " + n : ""}`,
|
|
10799
10930
|
children: t
|
|
10800
10931
|
});
|
|
10801
10932
|
}
|
|
10802
|
-
function
|
|
10803
|
-
let { lang: _, labels: v } =
|
|
10933
|
+
function Rc({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread: a = !1, selected: o = !1, layout: s = "row", cta: c, badge: l, href: u, onClick: d, className: f, ...p }) {
|
|
10934
|
+
let { lang: _, labels: v } = yc(t, n), y = e.domain ? v.domain[e.domain] ?? e.domain : null, b = e.impact ? xc(e.impact.maxCents, e.impact.currency, _) : null, x = s === "card", S = "select-insightrow" + (x ? " select-insightrow--card" : "") + (o ? " is-selected" : "") + (i ? " select-insightrow--locked" : "") + (f ? " " + f : ""), C = i ? /* @__PURE__ */ h("span", {
|
|
10804
10935
|
className: "select-insightrow__index select-insightrow__index--lock",
|
|
10805
10936
|
"aria-hidden": "true",
|
|
10806
10937
|
children: /* @__PURE__ */ h(tt, {})
|
|
10807
10938
|
}) : r == null ? null : /* @__PURE__ */ h("span", {
|
|
10808
10939
|
className: `select-insightrow__index${o || x && r === 1 ? " select-insightrow__index--strong" : ""}`,
|
|
10809
10940
|
children: r
|
|
10810
|
-
}), w = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(
|
|
10941
|
+
}), w = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(Ec, {
|
|
10811
10942
|
severity: e.severity,
|
|
10812
10943
|
labels: v
|
|
10813
|
-
}), y && !i ? /* @__PURE__ */ h("span", { children: y }) : null] }), T = a && !i ? /* @__PURE__ */ h(
|
|
10944
|
+
}), y && !i ? /* @__PURE__ */ h("span", { children: y }) : null] }), T = a && !i ? /* @__PURE__ */ h(Dc, { label: v.unread }) : null, E = x ? /* @__PURE__ */ g(m, { children: [
|
|
10814
10945
|
/* @__PURE__ */ g("span", {
|
|
10815
10946
|
className: "select-insightrow__top",
|
|
10816
10947
|
children: [
|
|
@@ -10876,8 +11007,8 @@ function jc({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread
|
|
|
10876
11007
|
}
|
|
10877
11008
|
//#endregion
|
|
10878
11009
|
//#region src/SelectAssistant.tsx
|
|
10879
|
-
var
|
|
10880
|
-
function
|
|
11010
|
+
var zc = 240;
|
|
11011
|
+
function Bc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcherLabel: a, badge: c, children: l, scrollKey: u, suggestions: p, onSuggestion: m, onSend: _, placeholder: v, disabled: y = !1, typing: b = !1, headerAction: x, anchor: S = "viewport", closeLabel: C = "Fechar", sendLabel: w = "Enviar", inputLabel: T = "Sua pergunta", className: E }) {
|
|
10881
11012
|
let D = s(), O = d(null), k = d(null), A = d(null), [j, M] = f(""), N = d(0), P = b !== !1;
|
|
10882
11013
|
o(() => {
|
|
10883
11014
|
let t = O.current;
|
|
@@ -10895,7 +11026,7 @@ function Nc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
10895
11026
|
let o = t.scrollHeight - t.clientHeight, s = a ? Math.min(o, a.getBoundingClientRect().top - t.getBoundingClientRect().top + t.scrollTop - 12) : o;
|
|
10896
11027
|
n ? t.scrollTop = s : s > t.scrollTop + 1 && (typeof t.scrollTo == "function" ? t.scrollTo({
|
|
10897
11028
|
top: s,
|
|
10898
|
-
behavior:
|
|
11029
|
+
behavior: Wc() ? "auto" : "smooth"
|
|
10899
11030
|
}) : t.scrollTop = s);
|
|
10900
11031
|
}, [
|
|
10901
11032
|
e,
|
|
@@ -10959,7 +11090,7 @@ function Nc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
10959
11090
|
className: "select-assistant__body",
|
|
10960
11091
|
role: "log",
|
|
10961
11092
|
"aria-live": "polite",
|
|
10962
|
-
children: [l, P ? /* @__PURE__ */ h(
|
|
11093
|
+
children: [l, P ? /* @__PURE__ */ h(Uc, { label: typeof b == "string" ? b : void 0 }) : null]
|
|
10963
11094
|
}),
|
|
10964
11095
|
(_ || p && p.length > 0) && /* @__PURE__ */ g("footer", {
|
|
10965
11096
|
className: "select-assistant__foot",
|
|
@@ -10983,7 +11114,7 @@ function Nc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
10983
11114
|
onChange: (e) => M(e.target.value),
|
|
10984
11115
|
placeholder: v,
|
|
10985
11116
|
"aria-label": T,
|
|
10986
|
-
maxLength:
|
|
11117
|
+
maxLength: zc,
|
|
10987
11118
|
autoComplete: "off",
|
|
10988
11119
|
enterKeyHint: "send",
|
|
10989
11120
|
disabled: y
|
|
@@ -11015,7 +11146,7 @@ function Nc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
11015
11146
|
})]
|
|
11016
11147
|
});
|
|
11017
11148
|
}
|
|
11018
|
-
function
|
|
11149
|
+
function Vc({ from: e, bare: t = !1, children: n }) {
|
|
11019
11150
|
return /* @__PURE__ */ h("div", {
|
|
11020
11151
|
className: `select-chat__msg select-chat__msg--${e}${t ? " select-chat__msg--bare" : ""}`,
|
|
11021
11152
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -11024,13 +11155,13 @@ function Pc({ from: e, bare: t = !1, children: n }) {
|
|
|
11024
11155
|
})
|
|
11025
11156
|
});
|
|
11026
11157
|
}
|
|
11027
|
-
function
|
|
11158
|
+
function Hc({ children: e }) {
|
|
11028
11159
|
return /* @__PURE__ */ h("div", {
|
|
11029
11160
|
className: "select-chat__turn",
|
|
11030
11161
|
children: e
|
|
11031
11162
|
});
|
|
11032
11163
|
}
|
|
11033
|
-
function
|
|
11164
|
+
function Uc({ label: e = "Escrevendo…" }) {
|
|
11034
11165
|
return /* @__PURE__ */ h("div", {
|
|
11035
11166
|
className: "select-chat__msg select-chat__msg--assistant select-chat__msg--typing",
|
|
11036
11167
|
role: "status",
|
|
@@ -11046,19 +11177,19 @@ function Ic({ label: e = "Escrevendo…" }) {
|
|
|
11046
11177
|
})
|
|
11047
11178
|
});
|
|
11048
11179
|
}
|
|
11049
|
-
function
|
|
11180
|
+
function Wc() {
|
|
11050
11181
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
11051
11182
|
}
|
|
11052
11183
|
//#endregion
|
|
11053
11184
|
//#region src/SelectNumberedList.tsx
|
|
11054
|
-
function
|
|
11185
|
+
function Gc({ children: e, className: t, ...n }) {
|
|
11055
11186
|
return /* @__PURE__ */ h("ol", {
|
|
11056
11187
|
...n,
|
|
11057
11188
|
className: `select-numlist${t ? " " + t : ""}`,
|
|
11058
11189
|
children: e
|
|
11059
11190
|
});
|
|
11060
11191
|
}
|
|
11061
|
-
function
|
|
11192
|
+
function Kc({ title: e, children: t, className: n, ...r }) {
|
|
11062
11193
|
return /* @__PURE__ */ h("li", {
|
|
11063
11194
|
...r,
|
|
11064
11195
|
className: `select-numlist__item${n ? " " + n : ""}`,
|
|
@@ -11076,7 +11207,7 @@ function zc({ title: e, children: t, className: n, ...r }) {
|
|
|
11076
11207
|
}
|
|
11077
11208
|
//#endregion
|
|
11078
11209
|
//#region src/SelectChartCard.tsx
|
|
11079
|
-
var
|
|
11210
|
+
var qc = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1, hideValues: a = !1, height: o = 260, flush: s = !1, insight: c, insightTone: l = "neutral", children: u, className: d, ...f }, p) {
|
|
11080
11211
|
let m = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
11081
11212
|
return /* @__PURE__ */ g("div", {
|
|
11082
11213
|
ref: p,
|
|
@@ -11119,7 +11250,7 @@ var Bc = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1,
|
|
|
11119
11250
|
});
|
|
11120
11251
|
//#endregion
|
|
11121
11252
|
//#region src/chartUtils.ts
|
|
11122
|
-
function
|
|
11253
|
+
function Jc() {
|
|
11123
11254
|
let [e, t] = f(1);
|
|
11124
11255
|
return l(() => {
|
|
11125
11256
|
let e = () => {
|
|
@@ -11129,8 +11260,8 @@ function Vc() {
|
|
|
11129
11260
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
11130
11261
|
}, []), e;
|
|
11131
11262
|
}
|
|
11132
|
-
function
|
|
11133
|
-
let t = d(null), [n, r] = f(0), i =
|
|
11263
|
+
function Yc(e) {
|
|
11264
|
+
let t = d(null), [n, r] = f(0), i = Jc();
|
|
11134
11265
|
return l(() => {
|
|
11135
11266
|
let e = t.current;
|
|
11136
11267
|
if (!e) return;
|
|
@@ -11147,7 +11278,7 @@ function Hc(e) {
|
|
|
11147
11278
|
height: Math.round(e * i)
|
|
11148
11279
|
};
|
|
11149
11280
|
}
|
|
11150
|
-
function
|
|
11281
|
+
function Xc(e, t) {
|
|
11151
11282
|
let [n, r] = f(t);
|
|
11152
11283
|
return l(() => {
|
|
11153
11284
|
let t = e.current;
|
|
@@ -11161,15 +11292,15 @@ function Uc(e, t) {
|
|
|
11161
11292
|
return i.observe(t), () => i.disconnect();
|
|
11162
11293
|
}, [e]), n;
|
|
11163
11294
|
}
|
|
11164
|
-
function
|
|
11295
|
+
function Zc(e) {
|
|
11165
11296
|
if (e <= 0) return 1;
|
|
11166
11297
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
11167
11298
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
11168
11299
|
}
|
|
11169
|
-
function
|
|
11300
|
+
function Qc(e, t = 4) {
|
|
11170
11301
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
11171
11302
|
}
|
|
11172
|
-
function
|
|
11303
|
+
function $c(e, t = 5) {
|
|
11173
11304
|
if (!(e > 0)) return {
|
|
11174
11305
|
max: 1,
|
|
11175
11306
|
values: [0, 1]
|
|
@@ -11181,10 +11312,10 @@ function Kc(e, t = 5) {
|
|
|
11181
11312
|
values: s
|
|
11182
11313
|
};
|
|
11183
11314
|
}
|
|
11184
|
-
function
|
|
11315
|
+
function el(e) {
|
|
11185
11316
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
11186
11317
|
}
|
|
11187
|
-
function
|
|
11318
|
+
function tl(e) {
|
|
11188
11319
|
let t = e.length;
|
|
11189
11320
|
if (t === 0) return "";
|
|
11190
11321
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -11208,23 +11339,23 @@ function Jc(e) {
|
|
|
11208
11339
|
}
|
|
11209
11340
|
return s;
|
|
11210
11341
|
}
|
|
11211
|
-
function
|
|
11342
|
+
function nl(e, t) {
|
|
11212
11343
|
if (e.length === 0) return "";
|
|
11213
11344
|
let n = e[0], r = e[e.length - 1];
|
|
11214
|
-
return `${
|
|
11345
|
+
return `${tl(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
11215
11346
|
}
|
|
11216
|
-
function
|
|
11217
|
-
return e.length === 0 || t.length === 0 ? "" : `${
|
|
11347
|
+
function rl(e, t) {
|
|
11348
|
+
return e.length === 0 || t.length === 0 ? "" : `${tl(e)} ${tl([...t].reverse()).replace(/^M/, "L")} Z`;
|
|
11218
11349
|
}
|
|
11219
|
-
function
|
|
11350
|
+
function il(e, t, n, r) {
|
|
11220
11351
|
let i = (r - 90) * Math.PI / 180;
|
|
11221
11352
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
11222
11353
|
}
|
|
11223
|
-
function
|
|
11224
|
-
let [o, s] =
|
|
11354
|
+
function al(e, t, n, r, i, a) {
|
|
11355
|
+
let [o, s] = il(e, t, n, i), [c, l] = il(e, t, n, a), [u, d] = il(e, t, r, a), [f, p] = il(e, t, r, i), m = +(a - i > 180);
|
|
11225
11356
|
return `M${o.toFixed(2)},${s.toFixed(2)} A${n},${n} 0 ${m} 1 ${c.toFixed(2)},${l.toFixed(2)} L${u.toFixed(2)},${d.toFixed(2)} A${r},${r} 0 ${m} 0 ${f.toFixed(2)},${p.toFixed(2)} Z`;
|
|
11226
11357
|
}
|
|
11227
|
-
var
|
|
11358
|
+
var ol = [
|
|
11228
11359
|
"var(--select-chart-1)",
|
|
11229
11360
|
"var(--select-chart-2)",
|
|
11230
11361
|
"var(--select-chart-3)",
|
|
@@ -11232,13 +11363,13 @@ var $c = [
|
|
|
11232
11363
|
"var(--select-chart-5)"
|
|
11233
11364
|
];
|
|
11234
11365
|
function X(e) {
|
|
11235
|
-
return
|
|
11366
|
+
return ol[e % ol.length];
|
|
11236
11367
|
}
|
|
11237
11368
|
function Z(e) {
|
|
11238
11369
|
let t = Math.abs(e);
|
|
11239
11370
|
return t >= 1e9 ? (e / 1e9).toFixed(1).replace(/\.0$/, "") + "B" : t >= 1e6 ? (e / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : t >= 1e3 ? (e / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : String(Math.round(e));
|
|
11240
11371
|
}
|
|
11241
|
-
var
|
|
11372
|
+
var sl = {
|
|
11242
11373
|
top: 16,
|
|
11243
11374
|
right: 22,
|
|
11244
11375
|
bottom: 32,
|
|
@@ -11246,8 +11377,8 @@ var el = {
|
|
|
11246
11377
|
};
|
|
11247
11378
|
//#endregion
|
|
11248
11379
|
//#region src/SelectSparkline.tsx
|
|
11249
|
-
function
|
|
11250
|
-
let { ref: a, width: o } =
|
|
11380
|
+
function cl({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
11381
|
+
let { ref: a, width: o } = Yc(n), c = t ?? X(0), l = s(), u = null;
|
|
11251
11382
|
if (o > 0 && e.length > 1) {
|
|
11252
11383
|
let t = Math.max(...e), r = Math.min(...e), i = t - r || 1, a = e.map((t, a) => [4 + a / (e.length - 1) * (o - 8), n - 4 - (t - r) / i * (n - 8)]), s = a[a.length - 1];
|
|
11253
11384
|
u = /* @__PURE__ */ g("svg", {
|
|
@@ -11273,11 +11404,11 @@ function tl({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
11273
11404
|
})]
|
|
11274
11405
|
}) }),
|
|
11275
11406
|
/* @__PURE__ */ h("path", {
|
|
11276
|
-
d:
|
|
11407
|
+
d: nl(a, n - 4),
|
|
11277
11408
|
fill: `url(#${l}-sa)`
|
|
11278
11409
|
}),
|
|
11279
11410
|
/* @__PURE__ */ h("path", {
|
|
11280
|
-
d:
|
|
11411
|
+
d: tl(a),
|
|
11281
11412
|
fill: "none",
|
|
11282
11413
|
stroke: c,
|
|
11283
11414
|
strokeWidth: 2,
|
|
@@ -11356,7 +11487,7 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
11356
11487
|
}, t))]
|
|
11357
11488
|
});
|
|
11358
11489
|
}
|
|
11359
|
-
function
|
|
11490
|
+
function ll({ tip: e, onDismiss: t }) {
|
|
11360
11491
|
return o(() => {
|
|
11361
11492
|
if (e) return window.addEventListener("scroll", t, !0), window.addEventListener("resize", t), () => {
|
|
11362
11493
|
window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", t);
|
|
@@ -11369,8 +11500,8 @@ function nl({ tip: e, onDismiss: t }) {
|
|
|
11369
11500
|
}
|
|
11370
11501
|
//#endregion
|
|
11371
11502
|
//#region src/SelectBarChart.tsx
|
|
11372
|
-
function
|
|
11373
|
-
let { ref: o, width: c } =
|
|
11503
|
+
function ul({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
11504
|
+
let { ref: o, width: c } = Yc(t), l = Q(), u = s(), d = n ?? X(0), f = Zc(Math.max(0, ...e.map((e) => e.value))), p = sl, m = Math.max(0, c - p.left - p.right), _ = t - p.top - p.bottom, v = e.length > 0 ? m / e.length : 0, y = Math.min(v * .62, 44), b = p.top + _, x = (e) => b - e / f * _;
|
|
11374
11505
|
return /* @__PURE__ */ g("div", {
|
|
11375
11506
|
...a,
|
|
11376
11507
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -11396,7 +11527,7 @@ function rl({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
11396
11527
|
stopOpacity: .62
|
|
11397
11528
|
})]
|
|
11398
11529
|
}) }),
|
|
11399
|
-
|
|
11530
|
+
Qc(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
11400
11531
|
x1: p.left,
|
|
11401
11532
|
x2: c - p.right,
|
|
11402
11533
|
y1: x(e),
|
|
@@ -11446,14 +11577,14 @@ function rl({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
11446
11577
|
}
|
|
11447
11578
|
//#endregion
|
|
11448
11579
|
//#region src/SelectLineChart.tsx
|
|
11449
|
-
var
|
|
11450
|
-
function
|
|
11580
|
+
var dl = (e) => e != null && Number.isFinite(e), fl = 64;
|
|
11581
|
+
function pl(e, t) {
|
|
11451
11582
|
let n = [], r = [];
|
|
11452
|
-
for (let i = 0; i < t; i++)
|
|
11583
|
+
for (let i = 0; i < t; i++) dl(e[i]) ? r.push(i) : r.length && (n.push(r), r = []);
|
|
11453
11584
|
return r.length && n.push(r), n;
|
|
11454
11585
|
}
|
|
11455
|
-
function
|
|
11456
|
-
let { ref: l, width: u } =
|
|
11586
|
+
function ml({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1, className: o, ...c }) {
|
|
11587
|
+
let { ref: l, width: u } = Yc(r), d = Q(), p = s(), [m, _] = f(null), { max: v, values: y } = $c(Math.max(0, ...e.flatMap((e) => e.data.filter((e) => Number.isFinite(e))))), b = sl, x = Math.max(0, u - b.left - b.right), S = r - b.top - b.bottom, C = n.length, w = (e) => b.left + (C <= 1 ? x / 2 : e / (C - 1) * x), T = (e) => b.top + S - e / v * S, E = C > 1 ? x / (C - 1) : x, D = Math.max(1, Math.ceil(C / 7), Math.ceil(fl / Math.max(E, 1))), O = (e) => e === C - 1 || e % D === 0 && (C - 1 - e) * E >= fl, k = b.top + S;
|
|
11457
11588
|
return /* @__PURE__ */ g("div", {
|
|
11458
11589
|
...c,
|
|
11459
11590
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -11508,7 +11639,7 @@ function sl({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11508
11639
|
si: t
|
|
11509
11640
|
})).sort((e, t) => Number(!!t.s.dashed) - Number(!!e.s.dashed)).map(({ s: e, si: n }) => {
|
|
11510
11641
|
let r = e.color ?? X(n);
|
|
11511
|
-
return /* @__PURE__ */ h("g", { children:
|
|
11642
|
+
return /* @__PURE__ */ h("g", { children: pl(e.data, C).map((i, o) => {
|
|
11512
11643
|
let s = i.map((t) => [w(t), T(e.data[t])]);
|
|
11513
11644
|
return s.length === 1 ? /* @__PURE__ */ h("circle", {
|
|
11514
11645
|
cx: s[0][0],
|
|
@@ -11517,11 +11648,11 @@ function sl({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11517
11648
|
fill: r,
|
|
11518
11649
|
className: "select-chart__dot select-chart__dot--lone"
|
|
11519
11650
|
}, o) : /* @__PURE__ */ g(t, { children: [a && !e.dashed && /* @__PURE__ */ h("path", {
|
|
11520
|
-
d:
|
|
11651
|
+
d: nl(s, k),
|
|
11521
11652
|
fill: `url(#${p}-a${n})`,
|
|
11522
11653
|
className: "select-chart__area"
|
|
11523
11654
|
}), /* @__PURE__ */ h("path", {
|
|
11524
|
-
d:
|
|
11655
|
+
d: tl(s),
|
|
11525
11656
|
fill: "none",
|
|
11526
11657
|
stroke: r,
|
|
11527
11658
|
strokeWidth: e.dashed ? 1.75 : 2.25,
|
|
@@ -11534,7 +11665,7 @@ function sl({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11534
11665
|
})] }, o);
|
|
11535
11666
|
}) }, n);
|
|
11536
11667
|
}),
|
|
11537
|
-
m != null && e.map((e, t) =>
|
|
11668
|
+
m != null && e.map((e, t) => dl(e.data[m]) ? /* @__PURE__ */ h("circle", {
|
|
11538
11669
|
cx: w(m),
|
|
11539
11670
|
cy: T(e.data[m] ?? 0),
|
|
11540
11671
|
r: 3.5,
|
|
@@ -11561,7 +11692,7 @@ function sl({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11561
11692
|
let r = e.map((e, t) => ({
|
|
11562
11693
|
s: e,
|
|
11563
11694
|
si: t
|
|
11564
|
-
})).filter(({ s: e }) =>
|
|
11695
|
+
})).filter(({ s: e }) => dl(e.data[n]));
|
|
11565
11696
|
if (!r.length) {
|
|
11566
11697
|
d.hide();
|
|
11567
11698
|
return;
|
|
@@ -11592,8 +11723,8 @@ function sl({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11592
11723
|
}
|
|
11593
11724
|
//#endregion
|
|
11594
11725
|
//#region src/SelectStackedArea.tsx
|
|
11595
|
-
function
|
|
11596
|
-
let { ref: o, width: c } =
|
|
11726
|
+
function hl({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
11727
|
+
let { ref: o, width: c } = Yc(n), l = Q(), u = s(), [d, p] = f(null), m = t.length, _ = Array(m).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y = Zc(Math.max(0, ..._)), b = sl, x = Math.max(0, c - b.left - b.right), S = n - b.top - b.bottom, C = (e) => b.left + (m <= 1 ? x / 2 : e / (m - 1) * x), w = (e) => b.top + S - e / y * S, T = m > 1 ? x / (m - 1) : x, E = Math.max(1, Math.ceil(m / 7)), D = b.top + S, O = v[v.length - 1];
|
|
11597
11728
|
return /* @__PURE__ */ g("div", {
|
|
11598
11729
|
...a,
|
|
11599
11730
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -11622,7 +11753,7 @@ function cl({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
11622
11753
|
})]
|
|
11623
11754
|
}, t);
|
|
11624
11755
|
}) }),
|
|
11625
|
-
|
|
11756
|
+
Qc(y).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
11626
11757
|
x1: b.left,
|
|
11627
11758
|
x2: c - b.right,
|
|
11628
11759
|
y1: w(e),
|
|
@@ -11641,10 +11772,10 @@ function cl({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
11641
11772
|
return /* @__PURE__ */ g("g", {
|
|
11642
11773
|
className: "select-chart__area",
|
|
11643
11774
|
children: [/* @__PURE__ */ h("path", {
|
|
11644
|
-
d:
|
|
11775
|
+
d: rl(i, a),
|
|
11645
11776
|
fill: `url(#${u}-b${n})`
|
|
11646
11777
|
}), /* @__PURE__ */ h("path", {
|
|
11647
|
-
d:
|
|
11778
|
+
d: tl(i),
|
|
11648
11779
|
fill: "none",
|
|
11649
11780
|
stroke: r,
|
|
11650
11781
|
strokeWidth: 1.5,
|
|
@@ -11698,11 +11829,11 @@ function cl({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
11698
11829
|
}
|
|
11699
11830
|
//#endregion
|
|
11700
11831
|
//#region src/SelectComboChart.tsx
|
|
11701
|
-
function
|
|
11702
|
-
let { ref: l, width: u } =
|
|
11703
|
-
...
|
|
11832
|
+
function gl({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
|
|
11833
|
+
let { ref: l, width: u } = Yc(r), d = Q(), p = s(), [m, _] = f(null), v = {
|
|
11834
|
+
...sl,
|
|
11704
11835
|
right: 58
|
|
11705
|
-
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S =
|
|
11836
|
+
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = Zc(Math.max(0, ...t.data)), C = Zc(Math.max(0, ...n.data)), w = x > 0 ? y / x : 0, T = Math.min(w * .5, 36), E = Math.max(1, Math.ceil(x / 8)), D = t.color ?? X(0), O = n.color ?? X(1), k = v.top + b, A = (e) => k - e / S * b, j = (e) => k - e / C * b, M = (e) => v.left + w * e + w / 2, N = n.data.map((e, t) => [M(t), j(e)]);
|
|
11706
11837
|
return /* @__PURE__ */ g("div", {
|
|
11707
11838
|
...c,
|
|
11708
11839
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -11728,7 +11859,7 @@ function ll({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
11728
11859
|
stopOpacity: .55
|
|
11729
11860
|
})]
|
|
11730
11861
|
}) }),
|
|
11731
|
-
|
|
11862
|
+
Qc(S).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
11732
11863
|
x1: v.left,
|
|
11733
11864
|
x2: u - v.right,
|
|
11734
11865
|
y1: A(e),
|
|
@@ -11742,7 +11873,7 @@ function ll({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
11742
11873
|
textAnchor: "end",
|
|
11743
11874
|
children: i(e)
|
|
11744
11875
|
})] }, t)),
|
|
11745
|
-
|
|
11876
|
+
Qc(C).map((e, t) => /* @__PURE__ */ h("text", {
|
|
11746
11877
|
x: u - 4,
|
|
11747
11878
|
y: j(e),
|
|
11748
11879
|
className: "select-chart__ylabel",
|
|
@@ -11771,7 +11902,7 @@ function ll({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
11771
11902
|
className: "select-chart__crosshair"
|
|
11772
11903
|
}),
|
|
11773
11904
|
/* @__PURE__ */ h("path", {
|
|
11774
|
-
d:
|
|
11905
|
+
d: tl(N),
|
|
11775
11906
|
fill: "none",
|
|
11776
11907
|
stroke: O,
|
|
11777
11908
|
strokeWidth: 2.5,
|
|
@@ -11829,8 +11960,8 @@ function ll({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
11829
11960
|
}
|
|
11830
11961
|
//#endregion
|
|
11831
11962
|
//#region src/SelectDonut.tsx
|
|
11832
|
-
var
|
|
11833
|
-
let p = Q(), m = s(), _ = d(null), v =
|
|
11963
|
+
var _l = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r = Z, centerLabel: i, legend: a = !0, gap: o = 2, pie: c = !1, className: l, ...u }, f) {
|
|
11964
|
+
let p = Q(), m = s(), _ = d(null), v = Xc(_, t), y = e.reduce((e, t) => e + t.value, 0) || 1, b = v / 2, x = v / 2, S = v / 2 - 2, C = c ? 0 : S - n, w = 0;
|
|
11834
11965
|
return /* @__PURE__ */ g("div", {
|
|
11835
11966
|
ref: f,
|
|
11836
11967
|
...u,
|
|
@@ -11873,7 +12004,7 @@ var ul = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
11873
12004
|
w += e.value;
|
|
11874
12005
|
let i = w / y * 360, a = e.color ?? X(t), s = i - n > o * 1.5 ? o / 2 : 0, c = n + s, l = Math.max(c + .01, i - s);
|
|
11875
12006
|
return /* @__PURE__ */ h("path", {
|
|
11876
|
-
d:
|
|
12007
|
+
d: al(b, x, S, C, c, l),
|
|
11877
12008
|
fill: `url(#${m}-s${t})`,
|
|
11878
12009
|
className: "select-chart__seg",
|
|
11879
12010
|
onMouseEnter: () => {
|
|
@@ -11921,9 +12052,9 @@ var ul = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
11921
12052
|
/* @__PURE__ */ h($, { tip: p.tip })
|
|
11922
12053
|
]
|
|
11923
12054
|
});
|
|
11924
|
-
}),
|
|
11925
|
-
function
|
|
11926
|
-
let { ref: u, width: d } =
|
|
12055
|
+
}), vl = 6.4, yl = 12;
|
|
12056
|
+
function bl({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, marker: a, tooltip: o, className: c, ...l }) {
|
|
12057
|
+
let { ref: u, width: d } = Yc(n), f = Q(), p = s(), m = t.length, _ = e.length || 1, v = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), { max: y, values: b } = $c(i ? Math.max(0, ...v) : Math.max(0, ...e.flatMap((e) => e.data)), 4), x = sl, S = Math.max(0, d - x.left - x.right), C = n - x.top - x.bottom, w = x.top + C, T = m ? S / m : 0, E = (e) => w - e / y * C, D = Math.min(T * .72, _ * 40), O = i ? Math.min(T * .5, 44) : D / _, k = Math.min(30, 600 / Math.max(1, m)), A = (e, t) => e.pattern === "hatch" ? `url(#${p}-p${t})` : `url(#${p}-c${t})`, j = a && m > 0 ? Math.min(m - 1, Math.max(0, a.index)) : null, M = t.reduce((e, t) => Math.max(e, t.length), 0), N = T > 0 ? Math.max(1, Math.ceil((M * vl + yl) / T)) : 1, P = j ?? 0, F = (e) => N === 1 || ((e - P) % N + N) % N === 0, I = (t, n) => {
|
|
11927
12058
|
if (o) {
|
|
11928
12059
|
let e = o(t);
|
|
11929
12060
|
return e ? {
|
|
@@ -12090,7 +12221,7 @@ function pl({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
12090
12221
|
}
|
|
12091
12222
|
//#endregion
|
|
12092
12223
|
//#region src/SelectChartLegend.tsx
|
|
12093
|
-
function
|
|
12224
|
+
function xl({ items: e, className: t, ...n }) {
|
|
12094
12225
|
return /* @__PURE__ */ h("div", {
|
|
12095
12226
|
...n,
|
|
12096
12227
|
className: `select-chartlegend${t ? " " + t : ""}`,
|
|
@@ -12119,7 +12250,7 @@ function ml({ items: e, className: t, ...n }) {
|
|
|
12119
12250
|
}
|
|
12120
12251
|
//#endregion
|
|
12121
12252
|
//#region src/SelectShareBar.tsx
|
|
12122
|
-
function
|
|
12253
|
+
function Sl({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm", onSelect: a, selected: o, hint: s, className: c, ...l }) {
|
|
12123
12254
|
let u = e.map((e, t) => ({
|
|
12124
12255
|
...e,
|
|
12125
12256
|
key: e.key ?? e.label,
|
|
@@ -12224,7 +12355,7 @@ function hl({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm",
|
|
|
12224
12355
|
}
|
|
12225
12356
|
//#endregion
|
|
12226
12357
|
//#region src/SelectRing.tsx
|
|
12227
|
-
var
|
|
12358
|
+
var Cl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone: i = "brand", label: a, caption: o, inverse: s = !1, ariaLabel: c, className: l, style: u, ...d }, f) {
|
|
12228
12359
|
let p = t > 0 ? t : 100, m = Math.max(0, Math.min(1, (Number.isFinite(e) ? e : 0) / p)), _ = (r ?? Math.max(4, Math.round(n * .11))) / n * 100, v = 50 - _ / 2, y = 2 * Math.PI * v, b = {
|
|
12229
12360
|
"--select-ring-size": `${n / 16}rem`,
|
|
12230
12361
|
...u
|
|
@@ -12268,7 +12399,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12268
12399
|
})]
|
|
12269
12400
|
})]
|
|
12270
12401
|
});
|
|
12271
|
-
}),
|
|
12402
|
+
}), wl = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
|
|
12272
12403
|
let l = (t) => {
|
|
12273
12404
|
let n = e[t];
|
|
12274
12405
|
return n != null && n.state !== "upcoming";
|
|
@@ -12326,7 +12457,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12326
12457
|
})
|
|
12327
12458
|
})
|
|
12328
12459
|
});
|
|
12329
|
-
}),
|
|
12460
|
+
}), Tl = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
|
|
12330
12461
|
let s = Math.max(0, Math.floor(e)), c = Math.max(0, Math.min(s, Math.floor(t))), l = n === void 0 ? `${c} de ${s}` : n;
|
|
12331
12462
|
return /* @__PURE__ */ g("span", {
|
|
12332
12463
|
ref: o,
|
|
@@ -12342,7 +12473,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12342
12473
|
children: l
|
|
12343
12474
|
})]
|
|
12344
12475
|
});
|
|
12345
|
-
}),
|
|
12476
|
+
}), El = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
|
|
12346
12477
|
return /* @__PURE__ */ h("span", {
|
|
12347
12478
|
ref: a,
|
|
12348
12479
|
"aria-hidden": "true",
|
|
@@ -12350,7 +12481,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12350
12481
|
className: `select-icontile select-icontile--${t} select-icontile--${n}${r ? " " + r : ""}`,
|
|
12351
12482
|
children: e
|
|
12352
12483
|
});
|
|
12353
|
-
}),
|
|
12484
|
+
}), Dl = r(function({ tone: e = "neutral", media: t, eyebrow: n, title: r, description: i, actions: a, actionsPlacement: o = "below", aside: s, facts: c, asideSize: l = "half", size: u = "md", mediaInline: d = !1, children: f, className: p, ...m }, _) {
|
|
12354
12485
|
let v = a != null && o === "end";
|
|
12355
12486
|
return /* @__PURE__ */ h("section", {
|
|
12356
12487
|
ref: _,
|
|
@@ -12422,7 +12553,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12422
12553
|
]
|
|
12423
12554
|
})
|
|
12424
12555
|
});
|
|
12425
|
-
}),
|
|
12556
|
+
}), Ol = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
|
|
12426
12557
|
return /* @__PURE__ */ g("article", {
|
|
12427
12558
|
ref: l,
|
|
12428
12559
|
...c,
|
|
@@ -12457,7 +12588,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12457
12588
|
})]
|
|
12458
12589
|
})]
|
|
12459
12590
|
});
|
|
12460
|
-
}),
|
|
12591
|
+
}), kl = r(function({ items: e, order: t = "label-first", columns: n, narrowColumns: r, loading: i = !1, className: a, ...o }, s) {
|
|
12461
12592
|
return /* @__PURE__ */ h("dl", {
|
|
12462
12593
|
ref: s,
|
|
12463
12594
|
"aria-busy": i || void 0,
|
|
@@ -12484,7 +12615,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12484
12615
|
]
|
|
12485
12616
|
}, e.key ?? t))
|
|
12486
12617
|
});
|
|
12487
|
-
}),
|
|
12618
|
+
}), Al = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
|
|
12488
12619
|
let o = (t ?? "").replace(/\D/g, "").slice(-4);
|
|
12489
12620
|
return /* @__PURE__ */ g("div", {
|
|
12490
12621
|
ref: a,
|
|
@@ -12527,7 +12658,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12527
12658
|
})
|
|
12528
12659
|
]
|
|
12529
12660
|
});
|
|
12530
|
-
}),
|
|
12661
|
+
}), jl = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
|
|
12531
12662
|
let s = Math.max(1, ...e.map((e) => e.value));
|
|
12532
12663
|
return /* @__PURE__ */ h("div", {
|
|
12533
12664
|
ref: o,
|
|
@@ -12569,19 +12700,19 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12569
12700
|
});
|
|
12570
12701
|
//#endregion
|
|
12571
12702
|
//#region src/SelectGauge.tsx
|
|
12572
|
-
function
|
|
12703
|
+
function Ml(e) {
|
|
12573
12704
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
12574
12705
|
}
|
|
12575
|
-
function
|
|
12706
|
+
function Nl(e, t, n, r) {
|
|
12576
12707
|
let i = Math.PI + r * Math.PI;
|
|
12577
12708
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
12578
12709
|
}
|
|
12579
|
-
function
|
|
12580
|
-
let [a, o] =
|
|
12710
|
+
function Pl(e, t, n, r, i) {
|
|
12711
|
+
let [a, o] = Nl(e, t, n, r), [s, c] = Nl(e, t, n, i);
|
|
12581
12712
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
12582
12713
|
}
|
|
12583
|
-
var
|
|
12584
|
-
let u =
|
|
12714
|
+
var Fl = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, Il = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = Fl, className: s, ...c }, l) {
|
|
12715
|
+
let u = Ml(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, m = r / 2, _ = r / 2, v = _ + f, y = Gn({
|
|
12585
12716
|
value: u,
|
|
12586
12717
|
format: o
|
|
12587
12718
|
});
|
|
@@ -12604,13 +12735,13 @@ var Ol = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12604
12735
|
"aria-hidden": "true",
|
|
12605
12736
|
children: [/* @__PURE__ */ h("path", {
|
|
12606
12737
|
className: "select-gauge__track",
|
|
12607
|
-
d:
|
|
12738
|
+
d: Pl(m, _, p, 0, 1),
|
|
12608
12739
|
fill: "none",
|
|
12609
12740
|
strokeWidth: d,
|
|
12610
12741
|
strokeLinecap: "round"
|
|
12611
12742
|
}), u > 0 && /* @__PURE__ */ h("path", {
|
|
12612
12743
|
className: "select-gauge__arc",
|
|
12613
|
-
d:
|
|
12744
|
+
d: Pl(m, _, p, 0, u / 100),
|
|
12614
12745
|
fill: "none",
|
|
12615
12746
|
stroke: a ?? "var(--select-chart-1)",
|
|
12616
12747
|
strokeWidth: d,
|
|
@@ -12633,7 +12764,7 @@ var Ol = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12633
12764
|
children: n
|
|
12634
12765
|
})]
|
|
12635
12766
|
});
|
|
12636
|
-
}),
|
|
12767
|
+
}), Ll = r(function({ columns: e, rows: n, format: r = Z, formatValue: i, color: a = "var(--select-chart-1)", showValues: o = !0, min: s, max: c, cellSize: l = 40, maxCellSize: u = 96, cellHeight: d = 30, className: f, ...p }, m) {
|
|
12637
12768
|
let _ = Q(), v = n.flatMap((e) => e.values).filter((e) => e != null && Number.isFinite(e)), y = s ?? (v.length ? Math.min(...v) : 0), b = (c ?? (v.length ? Math.max(...v) : 1)) - y || 1, x = { "--heat-color": a }, S = {
|
|
12638
12769
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
12639
12770
|
width: "fit-content",
|
|
@@ -12693,12 +12824,12 @@ var Ol = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12693
12824
|
}, c);
|
|
12694
12825
|
})] }, n.label))
|
|
12695
12826
|
]
|
|
12696
|
-
}), /* @__PURE__ */ h(
|
|
12827
|
+
}), /* @__PURE__ */ h(ll, {
|
|
12697
12828
|
tip: _.tip,
|
|
12698
12829
|
onDismiss: _.hide
|
|
12699
12830
|
})]
|
|
12700
12831
|
});
|
|
12701
|
-
}),
|
|
12832
|
+
}), Rl = 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) {
|
|
12702
12833
|
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, m = n + r, _ = {
|
|
12703
12834
|
width: f * m - r,
|
|
12704
12835
|
height: p * m - r
|
|
@@ -12760,13 +12891,13 @@ var Ol = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12760
12891
|
/* @__PURE__ */ h("span", { children: "mais" })
|
|
12761
12892
|
]
|
|
12762
12893
|
}),
|
|
12763
|
-
/* @__PURE__ */ h(
|
|
12894
|
+
/* @__PURE__ */ h(ll, {
|
|
12764
12895
|
tip: u.tip,
|
|
12765
12896
|
onDismiss: u.hide
|
|
12766
12897
|
})
|
|
12767
12898
|
]
|
|
12768
12899
|
});
|
|
12769
|
-
}),
|
|
12900
|
+
}), zl = [
|
|
12770
12901
|
{
|
|
12771
12902
|
key: "RR",
|
|
12772
12903
|
label: "RR",
|
|
@@ -12959,7 +13090,7 @@ var Ol = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12959
13090
|
];
|
|
12960
13091
|
//#endregion
|
|
12961
13092
|
//#region src/SelectProgressList.tsx
|
|
12962
|
-
function
|
|
13093
|
+
function Bl({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1, max: a }) {
|
|
12963
13094
|
if (e.length === 0) return /* @__PURE__ */ h("div", {
|
|
12964
13095
|
className: "select-progresslist__empty",
|
|
12965
13096
|
children: r
|
|
@@ -13010,7 +13141,7 @@ function Nl({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
13010
13141
|
}
|
|
13011
13142
|
//#endregion
|
|
13012
13143
|
//#region src/SelectRadialBar.tsx
|
|
13013
|
-
var
|
|
13144
|
+
var Vl = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Hl = 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) {
|
|
13014
13145
|
let d = s(), f = t / 2, p = t / 2;
|
|
13015
13146
|
return /* @__PURE__ */ g("div", {
|
|
13016
13147
|
ref: u,
|
|
@@ -13050,7 +13181,7 @@ var Pl = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Fl = r(f
|
|
|
13050
13181
|
}) }), e.map((e, i) => {
|
|
13051
13182
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
13052
13183
|
if (a <= n / 2) return null;
|
|
13053
|
-
let o =
|
|
13184
|
+
let o = Vl(e.value);
|
|
13054
13185
|
return /* @__PURE__ */ g("g", {
|
|
13055
13186
|
transform: `rotate(-90 ${f} ${p})`,
|
|
13056
13187
|
children: [/* @__PURE__ */ h("circle", {
|
|
@@ -13079,7 +13210,7 @@ var Pl = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Fl = r(f
|
|
|
13079
13210
|
className: "select-radial__center",
|
|
13080
13211
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ h("strong", {
|
|
13081
13212
|
className: "select-radial__value",
|
|
13082
|
-
children: i(
|
|
13213
|
+
children: i(Vl(e[0].value))
|
|
13083
13214
|
}) : null)
|
|
13084
13215
|
})]
|
|
13085
13216
|
}), o && /* @__PURE__ */ h("ul", {
|
|
@@ -13097,15 +13228,15 @@ var Pl = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Fl = r(f
|
|
|
13097
13228
|
}),
|
|
13098
13229
|
/* @__PURE__ */ h("span", {
|
|
13099
13230
|
className: "select-donut__legval",
|
|
13100
|
-
children: i(
|
|
13231
|
+
children: i(Vl(e.value))
|
|
13101
13232
|
})
|
|
13102
13233
|
]
|
|
13103
13234
|
}, t))
|
|
13104
13235
|
})]
|
|
13105
13236
|
});
|
|
13106
|
-
}),
|
|
13107
|
-
function
|
|
13108
|
-
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } =
|
|
13237
|
+
}), Ul = 6.1, Wl = 12, Gl = 56, Kl = .4;
|
|
13238
|
+
function ql({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
|
|
13239
|
+
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Yc(d), m = Q(), _ = s(), v = c && c > 0 ? c : Zc(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(Gl, y * Ul + Wl), Math.max(Gl, p * Kl)), x = o ?? b, S = Math.max(3, Math.floor((x - Wl) / Ul)), 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));
|
|
13109
13240
|
return /* @__PURE__ */ g("div", {
|
|
13110
13241
|
...u,
|
|
13111
13242
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -13134,7 +13265,7 @@ function Bl({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
13134
13265
|
})]
|
|
13135
13266
|
}, t);
|
|
13136
13267
|
}) }),
|
|
13137
|
-
|
|
13268
|
+
Qc(v).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13138
13269
|
x1: O(e),
|
|
13139
13270
|
x2: O(e),
|
|
13140
13271
|
y1: 6,
|
|
@@ -13180,7 +13311,7 @@ function Bl({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
13180
13311
|
onMouseLeave: m.hide
|
|
13181
13312
|
}),
|
|
13182
13313
|
/* @__PURE__ */ g("text", {
|
|
13183
|
-
x: x -
|
|
13314
|
+
x: x - Wl / 2,
|
|
13184
13315
|
y: n,
|
|
13185
13316
|
className: "select-chart__ylabel",
|
|
13186
13317
|
dominantBaseline: "middle",
|
|
@@ -13195,8 +13326,8 @@ function Bl({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
13195
13326
|
}
|
|
13196
13327
|
//#endregion
|
|
13197
13328
|
//#region src/SelectWaterfall.tsx
|
|
13198
|
-
function
|
|
13199
|
-
let { ref: a, width: o } =
|
|
13329
|
+
function Jl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
13330
|
+
let { ref: a, width: o } = Yc(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
13200
13331
|
if (e.total) return u = e.value, {
|
|
13201
13332
|
...e,
|
|
13202
13333
|
start: 0,
|
|
@@ -13208,7 +13339,7 @@ function Vl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13208
13339
|
start: t,
|
|
13209
13340
|
end: u
|
|
13210
13341
|
};
|
|
13211
|
-
}), f =
|
|
13342
|
+
}), f = Zc(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = sl, m = Math.max(0, o - p.left - p.right), _ = t - p.top - p.bottom, v = p.top + _, y = e.length, b = y ? m / y : 0, x = Math.min(b * .6, 46), S = (e) => v - e / f * _, C = {
|
|
13212
13343
|
total: "var(--select-chart-1)",
|
|
13213
13344
|
inc: "var(--select-chart-4)",
|
|
13214
13345
|
dec: "var(--select-chart-3)"
|
|
@@ -13242,7 +13373,7 @@ function Vl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13242
13373
|
stopOpacity: .62
|
|
13243
13374
|
})]
|
|
13244
13375
|
}, e)) }),
|
|
13245
|
-
|
|
13376
|
+
Qc(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13246
13377
|
x1: p.left,
|
|
13247
13378
|
x2: o - p.right,
|
|
13248
13379
|
y1: S(e),
|
|
@@ -13310,7 +13441,7 @@ function Vl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13310
13441
|
}
|
|
13311
13442
|
//#endregion
|
|
13312
13443
|
//#region src/SelectBullet.tsx
|
|
13313
|
-
var
|
|
13444
|
+
var Yl = (e) => Math.max(0, Math.min(100, e)), Xl = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
13314
13445
|
return /* @__PURE__ */ h("div", {
|
|
13315
13446
|
ref: i,
|
|
13316
13447
|
...r,
|
|
@@ -13348,12 +13479,12 @@ var Hl = (e) => Math.max(0, Math.min(100, e)), Ul = r(function({ items: e, forma
|
|
|
13348
13479
|
children: [/* @__PURE__ */ h("span", {
|
|
13349
13480
|
className: "select-bullet__fill",
|
|
13350
13481
|
style: {
|
|
13351
|
-
width: `${
|
|
13482
|
+
width: `${Yl(e.value / i * 100)}%`,
|
|
13352
13483
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
13353
13484
|
}
|
|
13354
13485
|
}), /* @__PURE__ */ h("span", {
|
|
13355
13486
|
className: "select-bullet__tick",
|
|
13356
|
-
style: { left: `${
|
|
13487
|
+
style: { left: `${Yl(e.target / i * 100)}%` }
|
|
13357
13488
|
})]
|
|
13358
13489
|
})]
|
|
13359
13490
|
}, `${e.label}-${n}`);
|
|
@@ -13362,7 +13493,7 @@ var Hl = (e) => Math.max(0, Math.min(100, e)), Ul = r(function({ items: e, forma
|
|
|
13362
13493
|
});
|
|
13363
13494
|
//#endregion
|
|
13364
13495
|
//#region src/SelectTreemap.tsx
|
|
13365
|
-
function
|
|
13496
|
+
function Zl(e, t, n) {
|
|
13366
13497
|
let r = [], i = (e, t) => {
|
|
13367
13498
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
13368
13499
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -13413,8 +13544,8 @@ function Wl(e, t, n) {
|
|
|
13413
13544
|
};
|
|
13414
13545
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
13415
13546
|
}
|
|
13416
|
-
function
|
|
13417
|
-
let { ref: a, width: o } =
|
|
13547
|
+
function Ql({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
13548
|
+
let { ref: a, width: o } = Yc(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? Zl(u.map((t) => e[t].value), o, t) : [];
|
|
13418
13549
|
return /* @__PURE__ */ g("div", {
|
|
13419
13550
|
...i,
|
|
13420
13551
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -13484,8 +13615,8 @@ function Gl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13484
13615
|
}
|
|
13485
13616
|
//#endregion
|
|
13486
13617
|
//#region src/SelectScatter.tsx
|
|
13487
|
-
function
|
|
13488
|
-
let { ref: l, width: u } =
|
|
13618
|
+
function $l({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
13619
|
+
let { ref: l, width: u } = Yc(t), d = Q(), f = e.flatMap((e) => e.points), p = Zc(i ?? Math.max(0, ...f.map((e) => e.x))), m = Zc(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = sl, 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 / m * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(_) * (o - 4) : 4.5;
|
|
13489
13620
|
return /* @__PURE__ */ g("div", {
|
|
13490
13621
|
...c,
|
|
13491
13622
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -13495,7 +13626,7 @@ function Kl({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
13495
13626
|
height: t,
|
|
13496
13627
|
className: "select-chart",
|
|
13497
13628
|
children: [
|
|
13498
|
-
|
|
13629
|
+
Qc(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13499
13630
|
x1: v.left,
|
|
13500
13631
|
x2: u - v.right,
|
|
13501
13632
|
y1: C(e),
|
|
@@ -13509,7 +13640,7 @@ function Kl({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
13509
13640
|
textAnchor: "end",
|
|
13510
13641
|
children: r(e)
|
|
13511
13642
|
})] }, `y${t}`)),
|
|
13512
|
-
|
|
13643
|
+
Qc(p).map((e, r, i) => /* @__PURE__ */ h("text", {
|
|
13513
13644
|
x: S(e),
|
|
13514
13645
|
y: t - v.bottom + 16,
|
|
13515
13646
|
className: "select-chart__xlabel",
|
|
@@ -13556,8 +13687,8 @@ function Kl({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
13556
13687
|
}
|
|
13557
13688
|
//#endregion
|
|
13558
13689
|
//#region src/SelectRadar.tsx
|
|
13559
|
-
var
|
|
13560
|
-
let d = Q(), f = s(), p = e.length, m = n / 2, _ = n / 2, v = n / 2 - 30, y = r ??
|
|
13690
|
+
var eu = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
|
|
13691
|
+
let d = Q(), f = s(), p = e.length, m = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? Zc(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [m + 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";
|
|
13561
13692
|
return /* @__PURE__ */ g("div", {
|
|
13562
13693
|
ref: u,
|
|
13563
13694
|
...l,
|
|
@@ -13666,8 +13797,8 @@ var ql = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
13666
13797
|
});
|
|
13667
13798
|
//#endregion
|
|
13668
13799
|
//#region src/SelectSankey.tsx
|
|
13669
|
-
function
|
|
13670
|
-
let { ref: s, width: c } =
|
|
13800
|
+
function tu({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
13801
|
+
let { ref: s, width: c } = Yc(t), l = Q(), u = [], d = [];
|
|
13671
13802
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
13672
13803
|
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), m = t - 12, _ = Math.max(u.length, d.length), v = (m - i * Math.max(0, _ - 1)) / f, y = (e, t, n) => {
|
|
13673
13804
|
let r = /* @__PURE__ */ new Map(), a = 6;
|
|
@@ -13751,8 +13882,8 @@ function Jl({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
13751
13882
|
}
|
|
13752
13883
|
//#endregion
|
|
13753
13884
|
//#region src/SelectCandlestick.tsx
|
|
13754
|
-
function
|
|
13755
|
-
let { ref: s, width: c } =
|
|
13885
|
+
function nu({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
13886
|
+
let { ref: s, width: c } = Yc(t), l = Q(), u = sl, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, m = Math.max(1, ...e.map((e) => e.high)), _ = Math.min(m, ...e.map((e) => e.low)), v = (m - _) * .08 || 1, y = _ - v, b = m + 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);
|
|
13756
13887
|
return /* @__PURE__ */ g("div", {
|
|
13757
13888
|
...o,
|
|
13758
13889
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -13841,8 +13972,8 @@ function Yl({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
13841
13972
|
}
|
|
13842
13973
|
//#endregion
|
|
13843
13974
|
//#region src/SelectBoxPlot.tsx
|
|
13844
|
-
function
|
|
13845
|
-
let { ref: a, width: o } =
|
|
13975
|
+
function ru({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
13976
|
+
let { ref: a, width: o } = Yc(t), s = Q(), c = sl, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Zc(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, m = e.length, _ = m ? l / m : 0, v = Math.min(_ * .5, 40);
|
|
13846
13977
|
return /* @__PURE__ */ g("div", {
|
|
13847
13978
|
...i,
|
|
13848
13979
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -13851,7 +13982,7 @@ function Xl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13851
13982
|
width: o,
|
|
13852
13983
|
height: t,
|
|
13853
13984
|
className: "select-chart",
|
|
13854
|
-
children: [
|
|
13985
|
+
children: [Qc(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13855
13986
|
x1: c.left,
|
|
13856
13987
|
x2: o - c.right,
|
|
13857
13988
|
y1: p(e),
|
|
@@ -13961,8 +14092,8 @@ function Xl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13961
14092
|
}
|
|
13962
14093
|
//#endregion
|
|
13963
14094
|
//#region src/SelectRangeBar.tsx
|
|
13964
|
-
function
|
|
13965
|
-
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } =
|
|
14095
|
+
function iu({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
14096
|
+
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } = Yc(l), f = Q(), p = s(), m = n ?? Math.min(0, ...e.map((e) => e.start)), _ = (r ?? Math.max(1, ...e.map((e) => e.end))) - m || 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 - m) / _ * y, w = Array.from({ length: 5 }, (e, t) => m + _ * t / 4);
|
|
13966
14097
|
return /* @__PURE__ */ g("div", {
|
|
13967
14098
|
...c,
|
|
13968
14099
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -14042,7 +14173,7 @@ function Zl({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
14042
14173
|
}
|
|
14043
14174
|
//#endregion
|
|
14044
14175
|
//#region src/SelectCalendarHeatmap.tsx
|
|
14045
|
-
var
|
|
14176
|
+
var au = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
14046
14177
|
"Seg",
|
|
14047
14178
|
"",
|
|
14048
14179
|
"Qua",
|
|
@@ -14115,8 +14246,8 @@ var Ql = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
14115
14246
|
]
|
|
14116
14247
|
}), /* @__PURE__ */ h($, { tip: p.tip })]
|
|
14117
14248
|
});
|
|
14118
|
-
}),
|
|
14119
|
-
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p =
|
|
14249
|
+
}), ou = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
14250
|
+
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = Zc(Math.max(1, ...e.map((e) => e.value))), m = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, _ = 360 / f;
|
|
14120
14251
|
return /* @__PURE__ */ g("div", {
|
|
14121
14252
|
ref: s,
|
|
14122
14253
|
...o,
|
|
@@ -14146,7 +14277,7 @@ var Ql = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
14146
14277
|
}, t)), e.map((e, t) => {
|
|
14147
14278
|
let r = t * _, i = (t + 1) * _ - 1.5, a = e.color ?? X(t), o = Math.max(2, m(e.value)), s = ((r + i) / 2 - 90) * (Math.PI / 180), d = l + o * Math.cos(s), f = u + o * Math.sin(s);
|
|
14148
14279
|
return /* @__PURE__ */ h("path", {
|
|
14149
|
-
d:
|
|
14280
|
+
d: al(l, u, o, 0, r, i),
|
|
14150
14281
|
fill: a,
|
|
14151
14282
|
fillOpacity: .8,
|
|
14152
14283
|
className: "select-chart__seg",
|
|
@@ -14189,13 +14320,13 @@ var Ql = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
14189
14320
|
});
|
|
14190
14321
|
//#endregion
|
|
14191
14322
|
//#region src/SelectSlope.tsx
|
|
14192
|
-
function
|
|
14193
|
-
let { ref: s, width: c } =
|
|
14323
|
+
function su({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
14324
|
+
let { ref: s, width: c } = Yc(r), l = Q(), u = {
|
|
14194
14325
|
top: 24,
|
|
14195
14326
|
right: 64,
|
|
14196
14327
|
bottom: 12,
|
|
14197
14328
|
left: 132
|
|
14198
|
-
}, d =
|
|
14329
|
+
}, d = Zc(Math.max(1, ...e.flatMap((e) => [e.left, e.right]))), f = r - u.top - u.bottom, p = (e) => u.top + f - e / d * f, m = u.left, _ = c - u.right;
|
|
14199
14330
|
return /* @__PURE__ */ g("div", {
|
|
14200
14331
|
...o,
|
|
14201
14332
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -14311,8 +14442,8 @@ function eu({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
14311
14442
|
}
|
|
14312
14443
|
//#endregion
|
|
14313
14444
|
//#region src/SelectDumbbell.tsx
|
|
14314
|
-
function
|
|
14315
|
-
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } =
|
|
14445
|
+
function cu({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
14446
|
+
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Yc(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", m = Zc(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 / m * v;
|
|
14316
14447
|
return /* @__PURE__ */ g("div", {
|
|
14317
14448
|
...s,
|
|
14318
14449
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -14321,7 +14452,7 @@ function tu({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
14321
14452
|
width: u,
|
|
14322
14453
|
height: c,
|
|
14323
14454
|
className: "select-chart",
|
|
14324
|
-
children: [
|
|
14455
|
+
children: [Qc(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
14325
14456
|
x1: x(e),
|
|
14326
14457
|
x2: x(e),
|
|
14327
14458
|
y1: 6,
|
|
@@ -14404,8 +14535,8 @@ function tu({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
14404
14535
|
}
|
|
14405
14536
|
//#endregion
|
|
14406
14537
|
//#region src/SelectMarimekko.tsx
|
|
14407
|
-
function
|
|
14408
|
-
let { ref: o, width: s } =
|
|
14538
|
+
function lu({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
14539
|
+
let { ref: o, width: s } = Yc(t), c = Q(), l = {
|
|
14409
14540
|
top: 6,
|
|
14410
14541
|
right: 6,
|
|
14411
14542
|
bottom: 24,
|
|
@@ -14484,7 +14615,7 @@ function nu({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
14484
14615
|
}
|
|
14485
14616
|
//#endregion
|
|
14486
14617
|
//#region src/SelectGaugeBands.tsx
|
|
14487
|
-
var
|
|
14618
|
+
var uu = 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) {
|
|
14488
14619
|
let u = i ?? Math.max(10, Math.round(r * .08)), d = u / 2 + 2, f = r / 2 - d, p = r / 2, m = r / 2, _ = m + d, v = (e) => Math.max(0, Math.min(t, e)), y = (e) => {
|
|
14489
14620
|
let t = Math.PI + e * Math.PI;
|
|
14490
14621
|
return [p + f * Math.cos(t), m + f * Math.sin(t)];
|
|
@@ -14556,8 +14687,8 @@ var ru = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
14556
14687
|
});
|
|
14557
14688
|
//#endregion
|
|
14558
14689
|
//#region src/SelectStreamGraph.tsx
|
|
14559
|
-
function
|
|
14560
|
-
let { ref: o, width: c } =
|
|
14690
|
+
function du({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
14691
|
+
let { ref: o, width: c } = Yc(n), l = Q(), u = s(), [d, p] = f(null), m = t.length, _ = {
|
|
14561
14692
|
top: 14,
|
|
14562
14693
|
right: 14,
|
|
14563
14694
|
bottom: 28,
|
|
@@ -14600,7 +14731,7 @@ function iu({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
14600
14731
|
})]
|
|
14601
14732
|
}, t)) }),
|
|
14602
14733
|
w.map((e, t) => /* @__PURE__ */ h("path", {
|
|
14603
|
-
d:
|
|
14734
|
+
d: rl(e.upper, e.lower),
|
|
14604
14735
|
fill: `url(#${u}-st${t})`,
|
|
14605
14736
|
className: "select-chart__area"
|
|
14606
14737
|
}, t)),
|
|
@@ -14647,7 +14778,7 @@ function iu({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
14647
14778
|
}
|
|
14648
14779
|
//#endregion
|
|
14649
14780
|
//#region src/SelectSunburst.tsx
|
|
14650
|
-
var
|
|
14781
|
+
var fu = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
14651
14782
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
14652
14783
|
var t;
|
|
14653
14784
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -14673,7 +14804,7 @@ var au = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
14673
14804
|
_ += r;
|
|
14674
14805
|
let a = _ / m * 360, o = e.color ?? X(t), v = i;
|
|
14675
14806
|
return /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("path", {
|
|
14676
|
-
d:
|
|
14807
|
+
d: al(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
14677
14808
|
fill: o,
|
|
14678
14809
|
className: "select-chart__seg",
|
|
14679
14810
|
onMouseEnter: () => s.show({
|
|
@@ -14693,7 +14824,7 @@ var au = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
14693
14824
|
v += t.value / m * 360;
|
|
14694
14825
|
let f = v, p = t.color ?? o, g = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
14695
14826
|
return /* @__PURE__ */ h("path", {
|
|
14696
|
-
d:
|
|
14827
|
+
d: al(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
14697
14828
|
fill: p,
|
|
14698
14829
|
fillOpacity: g,
|
|
14699
14830
|
className: "select-chart__seg",
|
|
@@ -14740,8 +14871,8 @@ var au = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
14740
14871
|
});
|
|
14741
14872
|
//#endregion
|
|
14742
14873
|
//#region src/SelectViolin.tsx
|
|
14743
|
-
function
|
|
14744
|
-
let { ref: a, width: o } =
|
|
14874
|
+
function pu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
14875
|
+
let { ref: a, width: o } = Yc(t), s = Q(), c = sl, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Zc(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, m = e.length, _ = m ? l / m : 0, v = Math.min(_ * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
|
|
14745
14876
|
return /* @__PURE__ */ g("div", {
|
|
14746
14877
|
...i,
|
|
14747
14878
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -14750,7 +14881,7 @@ function ou({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
14750
14881
|
width: o,
|
|
14751
14882
|
height: t,
|
|
14752
14883
|
className: "select-chart",
|
|
14753
|
-
children: [
|
|
14884
|
+
children: [Qc(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
14754
14885
|
x1: c.left,
|
|
14755
14886
|
x2: o - c.right,
|
|
14756
14887
|
y1: p(e),
|
|
@@ -14767,7 +14898,7 @@ function ou({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
14767
14898
|
let i = c.left + _ * r + _ / 2, a = e.color ?? X(r), o = e.bins.length, l = (t) => p(e.min + (e.max - e.min) * t / Math.max(1, o - 1)), d = (t) => e.bins[t] / y * v, f = [], m = [];
|
|
14768
14899
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
14769
14900
|
for (let e = 0; e < o; e++) m.push([i - d(e), l(e)]);
|
|
14770
|
-
let b = `${
|
|
14901
|
+
let b = `${el(f)} ${el(m).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
14771
14902
|
return /* @__PURE__ */ g("g", { children: [
|
|
14772
14903
|
/* @__PURE__ */ h("path", {
|
|
14773
14904
|
d: b,
|
|
@@ -14828,7 +14959,7 @@ function ou({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
14828
14959
|
}
|
|
14829
14960
|
//#endregion
|
|
14830
14961
|
//#region src/SelectChord.tsx
|
|
14831
|
-
var
|
|
14962
|
+
var mu = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
14832
14963
|
let c = Q(), l = t.length, u = n / 2, d = n / 2, f = n / 2 - 22, p = f - 9, m = e.map((e) => e.reduce((e, t) => e + t, 0)), _ = m.reduce((e, t) => e + t, 0) || 1, v = (2 * Math.PI - l * i) / _, y = [], b = 0;
|
|
14833
14964
|
for (let e = 0; e < l; e++) {
|
|
14834
14965
|
let t = b, n = b + m[e] * v;
|
|
@@ -14895,7 +15026,7 @@ var su = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
14895
15026
|
}, n)), y.map((e, n) => {
|
|
14896
15027
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
14897
15028
|
return /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("path", {
|
|
14898
|
-
d:
|
|
15029
|
+
d: al(u, d, f, p, w(e.a0), w(e.a1)),
|
|
14899
15030
|
fill: X(n),
|
|
14900
15031
|
className: "select-chord__arc"
|
|
14901
15032
|
}), /* @__PURE__ */ h("text", {
|
|
@@ -14913,8 +15044,8 @@ var su = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
14913
15044
|
});
|
|
14914
15045
|
//#endregion
|
|
14915
15046
|
//#region src/SelectHexbin.tsx
|
|
14916
|
-
function
|
|
14917
|
-
let { ref: l, width: u } =
|
|
15047
|
+
function hu({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
15048
|
+
let { ref: l, width: u } = Yc(t), d = Q(), f = Math.max(0, u - 24), p = t - 24, m = i ?? Math.max(1, ...e.map((e) => e.x)), _ = a ?? Math.max(1, ...e.map((e) => e.y)), v = (e) => 12 + e / m * f, y = (e) => 12 + p - e / _ * p, b = n, x = Math.sqrt(3), S = (e, t) => {
|
|
14918
15049
|
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);
|
|
14919
15050
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
14920
15051
|
}, C = (e, t) => [b * x * (e + t / 2), 3 / 2 * b * t], w = (e, t) => {
|
|
@@ -14965,7 +15096,7 @@ function cu({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
14965
15096
|
}
|
|
14966
15097
|
//#endregion
|
|
14967
15098
|
//#region src/SelectWordCloud.tsx
|
|
14968
|
-
var
|
|
15099
|
+
var gu = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
14969
15100
|
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);
|
|
14970
15101
|
return /* @__PURE__ */ h("div", {
|
|
14971
15102
|
ref: a,
|
|
@@ -14982,7 +15113,7 @@ var lu = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
14982
15113
|
children: e.text
|
|
14983
15114
|
}, `${e.text}-${t}`))
|
|
14984
15115
|
});
|
|
14985
|
-
}),
|
|
15116
|
+
}), _u = [
|
|
14986
15117
|
[
|
|
14987
15118
|
-59.6,
|
|
14988
15119
|
-80,
|
|
@@ -25377,24 +25508,24 @@ var lu = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
25377
25508
|
-27.1,
|
|
25378
25509
|
83.5
|
|
25379
25510
|
]
|
|
25380
|
-
],
|
|
25381
|
-
function
|
|
25382
|
-
let n = e *
|
|
25511
|
+
], vu = Math.PI / 180;
|
|
25512
|
+
function yu(e, t) {
|
|
25513
|
+
let n = e * vu, r = t * vu;
|
|
25383
25514
|
return [
|
|
25384
25515
|
Math.cos(n) * Math.sin(r),
|
|
25385
25516
|
Math.sin(n),
|
|
25386
25517
|
Math.cos(n) * Math.cos(r)
|
|
25387
25518
|
];
|
|
25388
25519
|
}
|
|
25389
|
-
function
|
|
25390
|
-
let a = r *
|
|
25520
|
+
function bu([e, t, n], r, i) {
|
|
25521
|
+
let a = r * vu, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * vu;
|
|
25391
25522
|
return [
|
|
25392
25523
|
o,
|
|
25393
25524
|
t * Math.cos(c) - s * Math.sin(c),
|
|
25394
25525
|
t * Math.sin(c) + s * Math.cos(c)
|
|
25395
25526
|
];
|
|
25396
25527
|
}
|
|
25397
|
-
function
|
|
25528
|
+
function xu(e, t, n) {
|
|
25398
25529
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
25399
25530
|
r = Math.max(-1, Math.min(1, r));
|
|
25400
25531
|
let i = Math.acos(r);
|
|
@@ -25406,9 +25537,9 @@ function mu(e, t, n) {
|
|
|
25406
25537
|
e[2] * o + t[2] * s
|
|
25407
25538
|
];
|
|
25408
25539
|
}
|
|
25409
|
-
var
|
|
25540
|
+
var Su = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, Cu = 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: l = Z, legend: p = !0, map: m = !0, fluid: _ = !1, onZoomChange: v, className: y, ...b }, x) {
|
|
25410
25541
|
var S, C;
|
|
25411
|
-
let w = s(), T = Q(), E = d(null), D =
|
|
25542
|
+
let w = s(), T = Q(), E = d(null), D = Xc(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = d(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = d({
|
|
25412
25543
|
lng: -O,
|
|
25413
25544
|
lat: r
|
|
25414
25545
|
}), j = d({
|
|
@@ -25467,7 +25598,7 @@ var hu = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25467
25598
|
var t, n;
|
|
25468
25599
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ee(!1), H());
|
|
25469
25600
|
}, G = (D / 2 - 6) * M.current, K = D / 2, q = D / 2, J = (e) => {
|
|
25470
|
-
let t =
|
|
25601
|
+
let t = bu(e, A.current.lng, A.current.lat);
|
|
25471
25602
|
return {
|
|
25472
25603
|
x: K + G * t[0],
|
|
25473
25604
|
y: q - G * t[1],
|
|
@@ -25477,25 +25608,25 @@ var hu = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25477
25608
|
let e = [];
|
|
25478
25609
|
for (let t = -180; t < 180; t += 30) {
|
|
25479
25610
|
let n = [];
|
|
25480
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
25611
|
+
for (let e = 0; e <= 48; e++) n.push(yu(-90 + 180 * e / 48, t));
|
|
25481
25612
|
e.push(n);
|
|
25482
25613
|
}
|
|
25483
25614
|
for (let t = -60; t <= 60; t += 30) {
|
|
25484
25615
|
let n = [];
|
|
25485
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
25616
|
+
for (let e = 0; e <= 48; e++) n.push(yu(t, -180 + 360 * e / 48));
|
|
25486
25617
|
e.push(n);
|
|
25487
25618
|
}
|
|
25488
25619
|
return e;
|
|
25489
|
-
}, []), oe = u(() =>
|
|
25620
|
+
}, []), oe = u(() => _u.map((e) => {
|
|
25490
25621
|
let t = [];
|
|
25491
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
25622
|
+
for (let n = 0; n < e.length; n += 2) t.push(yu(e[n + 1], e[n]));
|
|
25492
25623
|
return t;
|
|
25493
25624
|
}), []), Y = (e) => ({
|
|
25494
25625
|
x: K + G * e[0],
|
|
25495
25626
|
y: q - G * e[1]
|
|
25496
25627
|
}), se = "", ce = "";
|
|
25497
25628
|
if (m) for (let e of oe) {
|
|
25498
|
-
let t = e.map((e) =>
|
|
25629
|
+
let t = e.map((e) => bu(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
25499
25630
|
for (let e of t) if (e[2] > 0) {
|
|
25500
25631
|
let t = Y(e);
|
|
25501
25632
|
ce += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -25543,7 +25674,7 @@ var hu = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25543
25674
|
}
|
|
25544
25675
|
return t;
|
|
25545
25676
|
}, ue = Math.max(1, ...e.map((e) => e.value ?? 0)), de = e.map((e, t) => {
|
|
25546
|
-
let n = J(
|
|
25677
|
+
let n = J(yu(e.lat, e.lng));
|
|
25547
25678
|
return {
|
|
25548
25679
|
...e,
|
|
25549
25680
|
i: t,
|
|
@@ -25553,20 +25684,20 @@ var hu = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25553
25684
|
col: e.color ?? c
|
|
25554
25685
|
};
|
|
25555
25686
|
}), fe = te == null ? null : e[te], pe = t.map((e, t) => {
|
|
25556
|
-
let n =
|
|
25687
|
+
let n = yu(e.from.lat, e.from.lng), r = yu(e.to.lat, e.to.lng), i = "", a = !1;
|
|
25557
25688
|
for (let e = 0; e <= 40; e++) {
|
|
25558
|
-
let t = e / 40, o =
|
|
25689
|
+
let t = e / 40, o = xu(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = bu(o, A.current.lng, A.current.lat), l = J([
|
|
25559
25690
|
o[0] * s,
|
|
25560
25691
|
o[1] * s,
|
|
25561
25692
|
o[2] * s
|
|
25562
25693
|
]);
|
|
25563
25694
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
25564
25695
|
}
|
|
25565
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
25696
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = xu(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = bu(s, A.current.lng, A.current.lat), d = J([
|
|
25566
25697
|
s[0] * l,
|
|
25567
25698
|
s[1] * l,
|
|
25568
25699
|
s[2] * l
|
|
25569
|
-
]), f = fe != null && (
|
|
25700
|
+
]), f = fe != null && (Su(e.from, fe) || Su(e.to, fe));
|
|
25570
25701
|
return {
|
|
25571
25702
|
d: i,
|
|
25572
25703
|
col: e.color ?? c,
|
|
@@ -25840,8 +25971,8 @@ var hu = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25840
25971
|
});
|
|
25841
25972
|
//#endregion
|
|
25842
25973
|
//#region src/SelectTicker.tsx
|
|
25843
|
-
function
|
|
25844
|
-
let i = d(null), a = d(null), s = d(null), c =
|
|
25974
|
+
function wu({ children: e, speed: t = 28, className: n, ...r }) {
|
|
25975
|
+
let i = d(null), a = d(null), s = d(null), c = Xc(i, 0), l = Xc(s, 0), u = c > 0 && l > c + 1, f = d(0), p = d(null), m = d(!1);
|
|
25845
25976
|
o(() => {
|
|
25846
25977
|
var e, n;
|
|
25847
25978
|
let r = a.current;
|
|
@@ -25902,12 +26033,12 @@ function _u({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
25902
26033
|
}
|
|
25903
26034
|
//#endregion
|
|
25904
26035
|
//#region src/SelectPareto.tsx
|
|
25905
|
-
function
|
|
26036
|
+
function Tu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
25906
26037
|
var a;
|
|
25907
|
-
let { ref: o, width: c } =
|
|
25908
|
-
...
|
|
26038
|
+
let { ref: o, width: c } = Yc(t), l = Q(), u = s(), [d, p] = f(null), m = {
|
|
26039
|
+
...sl,
|
|
25909
26040
|
right: 44
|
|
25910
|
-
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - m.left - m.right), C = t - m.top - m.bottom, w =
|
|
26041
|
+
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - m.left - m.right), C = t - m.top - m.bottom, w = Zc(((a = _[0]) == null ? void 0 : a.value) ?? 1), T = v > 0 ? S / v : 0, E = Math.min(T * .62, 46), D = m.top + C, O = (e) => D - e / w * C, k = (e) => D - e / 100 * C, A = (e) => m.left + T * e + T / 2, j = x.map((e, t) => [A(t), k(e)]), M = X(0), N = X(1);
|
|
25911
26042
|
return /* @__PURE__ */ g("div", {
|
|
25912
26043
|
...i,
|
|
25913
26044
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -25936,7 +26067,7 @@ function vu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
25936
26067
|
stopOpacity: .55
|
|
25937
26068
|
})]
|
|
25938
26069
|
}) }),
|
|
25939
|
-
|
|
26070
|
+
Qc(w).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
25940
26071
|
x1: m.left,
|
|
25941
26072
|
x2: c - m.right,
|
|
25942
26073
|
y1: O(e),
|
|
@@ -26000,7 +26131,7 @@ function vu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
26000
26131
|
}, t);
|
|
26001
26132
|
}),
|
|
26002
26133
|
/* @__PURE__ */ h("path", {
|
|
26003
|
-
d:
|
|
26134
|
+
d: tl(j),
|
|
26004
26135
|
fill: "none",
|
|
26005
26136
|
stroke: N,
|
|
26006
26137
|
strokeWidth: 2,
|
|
@@ -26028,7 +26159,7 @@ function vu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
26028
26159
|
}
|
|
26029
26160
|
//#endregion
|
|
26030
26161
|
//#region src/SelectWaffle.tsx
|
|
26031
|
-
var
|
|
26162
|
+
var Eu = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
26032
26163
|
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) => ({
|
|
26033
26164
|
i: t,
|
|
26034
26165
|
frac: e - u[t]
|
|
@@ -26077,8 +26208,8 @@ var yu = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
26077
26208
|
});
|
|
26078
26209
|
//#endregion
|
|
26079
26210
|
//#region src/SelectPyramid.tsx
|
|
26080
|
-
function
|
|
26081
|
-
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: d, width: p } =
|
|
26211
|
+
function Du({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
26212
|
+
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: d, width: p } = Yc(u), m = Q(), [_, v] = f(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);
|
|
26082
26213
|
return /* @__PURE__ */ g("div", {
|
|
26083
26214
|
...l,
|
|
26084
26215
|
className: `select-chart-wrap${c ? " " + c : ""}`,
|
|
@@ -26185,8 +26316,8 @@ function bu({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
26185
26316
|
}
|
|
26186
26317
|
//#endregion
|
|
26187
26318
|
//#region src/SelectBump.tsx
|
|
26188
|
-
function
|
|
26189
|
-
let { ref: o, width: s } =
|
|
26319
|
+
function Ou({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
26320
|
+
let { ref: o, width: s } = Yc(n), c = Q(), [l, u] = f(null), d = {
|
|
26190
26321
|
top: 16,
|
|
26191
26322
|
right: 78,
|
|
26192
26323
|
bottom: 28,
|
|
@@ -26222,7 +26353,7 @@ function xu({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
26222
26353
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
26223
26354
|
children: [
|
|
26224
26355
|
/* @__PURE__ */ h("path", {
|
|
26225
|
-
d:
|
|
26356
|
+
d: tl(a),
|
|
26226
26357
|
fill: "none",
|
|
26227
26358
|
stroke: i,
|
|
26228
26359
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -26270,8 +26401,8 @@ function xu({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
26270
26401
|
}
|
|
26271
26402
|
//#endregion
|
|
26272
26403
|
//#region src/SelectParallel.tsx
|
|
26273
|
-
function
|
|
26274
|
-
let { ref: o, width: s } =
|
|
26404
|
+
function ku({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
26405
|
+
let { ref: o, width: s } = Yc(n), c = Q(), [l, u] = f(null), d = {
|
|
26275
26406
|
top: 30,
|
|
26276
26407
|
right: 28,
|
|
26277
26408
|
bottom: 26,
|
|
@@ -26362,25 +26493,25 @@ function Su({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
26362
26493
|
}
|
|
26363
26494
|
//#endregion
|
|
26364
26495
|
//#region src/SelectIcicle.tsx
|
|
26365
|
-
function
|
|
26366
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
26496
|
+
function Au(e) {
|
|
26497
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + Au(t), 0) : e.value ?? 0;
|
|
26367
26498
|
}
|
|
26368
|
-
function
|
|
26369
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
26499
|
+
function ju(e, t = 0) {
|
|
26500
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => ju(e, t + 1)));
|
|
26370
26501
|
}
|
|
26371
|
-
function
|
|
26372
|
-
let { ref: a, width: o } =
|
|
26502
|
+
function Mu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
26503
|
+
let { ref: a, width: o } = Yc(t), s = Q(), [c, l] = f(null), u = ju(e), d = t / (u + 1), p = [], m = (e, t, n, r, i) => {
|
|
26373
26504
|
if (p.push({
|
|
26374
26505
|
node: e,
|
|
26375
26506
|
x0: t,
|
|
26376
26507
|
x1: n,
|
|
26377
26508
|
depth: r,
|
|
26378
26509
|
color: e.color ?? X(i),
|
|
26379
|
-
value:
|
|
26510
|
+
value: Au(e)
|
|
26380
26511
|
}), e.children && e.children.length) {
|
|
26381
|
-
let a = e.children.reduce((e, t) => e +
|
|
26512
|
+
let a = e.children.reduce((e, t) => e + Au(t), 0) || 1, o = t;
|
|
26382
26513
|
e.children.forEach((e, s) => {
|
|
26383
|
-
let c = (n - t) *
|
|
26514
|
+
let c = (n - t) * Au(e) / a;
|
|
26384
26515
|
m(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
26385
26516
|
});
|
|
26386
26517
|
}
|
|
@@ -26441,8 +26572,8 @@ function Tu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
26441
26572
|
}
|
|
26442
26573
|
//#endregion
|
|
26443
26574
|
//#region src/SelectTree.tsx
|
|
26444
|
-
function
|
|
26445
|
-
let { ref: i, width: a } =
|
|
26575
|
+
function Nu({ data: e, height: t = 260, className: n, ...r }) {
|
|
26576
|
+
let { ref: i, width: a } = Yc(t), o = Q(), [s, c] = f(null), l = {
|
|
26446
26577
|
top: 14,
|
|
26447
26578
|
right: 96,
|
|
26448
26579
|
bottom: 14,
|
|
@@ -26519,7 +26650,7 @@ function Eu({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
26519
26650
|
}
|
|
26520
26651
|
//#endregion
|
|
26521
26652
|
//#region src/SelectVenn.tsx
|
|
26522
|
-
var
|
|
26653
|
+
var Pu = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
26523
26654
|
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]] : [
|
|
26524
26655
|
[o, s - l * .5],
|
|
26525
26656
|
[o - l * .5, s + l * .36],
|
|
@@ -26584,7 +26715,7 @@ var Du = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
26584
26715
|
}, t))
|
|
26585
26716
|
})]
|
|
26586
26717
|
});
|
|
26587
|
-
}),
|
|
26718
|
+
}), Fu = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
26588
26719
|
let o = Q(), [s, c] = f(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
26589
26720
|
d: e,
|
|
26590
26721
|
i: t,
|
|
@@ -26687,8 +26818,8 @@ var Du = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
26687
26818
|
});
|
|
26688
26819
|
//#endregion
|
|
26689
26820
|
//#region src/SelectNetwork.tsx
|
|
26690
|
-
function
|
|
26691
|
-
let { ref: o, width: s } =
|
|
26821
|
+
function Iu({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
26822
|
+
let { ref: o, width: s } = Yc(n), c = Q(), [l, d] = f(null), p = u(() => {
|
|
26692
26823
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
26693
26824
|
if (!a) return o;
|
|
26694
26825
|
let c = e.map((e, t) => ({
|
|
@@ -26801,8 +26932,8 @@ function ku({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
26801
26932
|
}
|
|
26802
26933
|
//#endregion
|
|
26803
26934
|
//#region src/SelectSearchMenu.tsx
|
|
26804
|
-
var
|
|
26805
|
-
function
|
|
26935
|
+
var Lu = "[role=\"option\"]:not([disabled])";
|
|
26936
|
+
function Ru({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", autoFocus: s = !1, selectFirstOnEnter: c = !1, listMaxHeight: l, children: u }) {
|
|
26806
26937
|
let f = d(null);
|
|
26807
26938
|
return o(() => {
|
|
26808
26939
|
if (!s) return;
|
|
@@ -26818,7 +26949,7 @@ function ju({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
26818
26949
|
onKeyDown: (e) => {
|
|
26819
26950
|
let t = f.current;
|
|
26820
26951
|
if (!t) return;
|
|
26821
|
-
let n = t.querySelector("input"), r = Array.from(t.querySelectorAll(
|
|
26952
|
+
let n = t.querySelector("input"), r = Array.from(t.querySelectorAll(Lu)), i = r.indexOf(document.activeElement);
|
|
26822
26953
|
if (e.key === "ArrowDown") {
|
|
26823
26954
|
var a;
|
|
26824
26955
|
if (r.length === 0) return;
|
|
@@ -26849,7 +26980,7 @@ function ju({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
26849
26980
|
className: "select-combobox__empty",
|
|
26850
26981
|
role: "status",
|
|
26851
26982
|
children: r
|
|
26852
|
-
}) : /* @__PURE__ */ h(
|
|
26983
|
+
}) : /* @__PURE__ */ h(zu, {
|
|
26853
26984
|
maxHeight: l,
|
|
26854
26985
|
children: u
|
|
26855
26986
|
}),
|
|
@@ -26860,7 +26991,7 @@ function ju({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
26860
26991
|
]
|
|
26861
26992
|
});
|
|
26862
26993
|
}
|
|
26863
|
-
function
|
|
26994
|
+
function zu({ children: e, maxHeight: t }) {
|
|
26864
26995
|
let n = Wn({
|
|
26865
26996
|
selector: ".select-combobox__option",
|
|
26866
26997
|
y: 6,
|
|
@@ -26875,7 +27006,7 @@ function Mu({ children: e, maxHeight: t }) {
|
|
|
26875
27006
|
children: e
|
|
26876
27007
|
});
|
|
26877
27008
|
}
|
|
26878
|
-
function
|
|
27009
|
+
function Bu({ label: e, children: t }) {
|
|
26879
27010
|
return (Array.isArray(t) ? t.some((e) => e != null && e !== !1) : t != null && t !== !1) ? /* @__PURE__ */ g("div", {
|
|
26880
27011
|
role: "group",
|
|
26881
27012
|
className: "select-searchmenu__group",
|
|
@@ -26887,7 +27018,7 @@ function Nu({ label: e, children: t }) {
|
|
|
26887
27018
|
}), t]
|
|
26888
27019
|
}) : null;
|
|
26889
27020
|
}
|
|
26890
|
-
function
|
|
27021
|
+
function Vu({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i = !1, onSelect: a }) {
|
|
26891
27022
|
return /* @__PURE__ */ g("button", {
|
|
26892
27023
|
type: "button",
|
|
26893
27024
|
role: "option",
|
|
@@ -26920,14 +27051,14 @@ function Pu({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i
|
|
|
26920
27051
|
}
|
|
26921
27052
|
//#endregion
|
|
26922
27053
|
//#region src/SelectKbd.tsx
|
|
26923
|
-
var
|
|
27054
|
+
var Hu = r(function({ children: e, className: t, ...n }, r) {
|
|
26924
27055
|
return /* @__PURE__ */ h("kbd", {
|
|
26925
27056
|
ref: r,
|
|
26926
27057
|
...n,
|
|
26927
27058
|
className: `select-kbd${t ? " " + t : ""}`,
|
|
26928
27059
|
children: e
|
|
26929
27060
|
});
|
|
26930
|
-
}),
|
|
27061
|
+
}), Uu = [
|
|
26931
27062
|
{
|
|
26932
27063
|
value: "light",
|
|
26933
27064
|
label: "Claro",
|
|
@@ -26944,15 +27075,15 @@ var Fu = r(function({ children: e, className: t, ...n }, r) {
|
|
|
26944
27075
|
icon: /* @__PURE__ */ h(Oe, {})
|
|
26945
27076
|
}
|
|
26946
27077
|
];
|
|
26947
|
-
function
|
|
27078
|
+
function Wu(e) {
|
|
26948
27079
|
if (e === "system") {
|
|
26949
27080
|
var t, n;
|
|
26950
27081
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
26951
27082
|
}
|
|
26952
27083
|
return e;
|
|
26953
27084
|
}
|
|
26954
|
-
function
|
|
26955
|
-
let [i, a] = f(!1), s = d(null), c =
|
|
27085
|
+
function Gu({ value: e, onChange: t, className: n, ...r }) {
|
|
27086
|
+
let [i, a] = f(!1), s = d(null), c = Uu.find((t) => t.value === e) ?? Uu[2];
|
|
26956
27087
|
return o(() => {
|
|
26957
27088
|
if (!i) return;
|
|
26958
27089
|
let e = (e) => {
|
|
@@ -26972,7 +27103,7 @@ function Ru({ value: e, onChange: t, className: n, ...r }) {
|
|
|
26972
27103
|
})
|
|
26973
27104
|
}), i && /* @__PURE__ */ h("div", {
|
|
26974
27105
|
className: "select-themeswitcher__popover",
|
|
26975
|
-
children: /* @__PURE__ */ h(Xa, { children:
|
|
27106
|
+
children: /* @__PURE__ */ h(Xa, { children: Uu.map((n) => /* @__PURE__ */ h(Qa, {
|
|
26976
27107
|
icon: n.icon,
|
|
26977
27108
|
active: n.value === e,
|
|
26978
27109
|
trailing: n.value === e ? /* @__PURE__ */ h(Be, {}) : null,
|
|
@@ -26986,8 +27117,8 @@ function Ru({ value: e, onChange: t, className: n, ...r }) {
|
|
|
26986
27117
|
}
|
|
26987
27118
|
//#endregion
|
|
26988
27119
|
//#region src/SelectDetail.tsx
|
|
26989
|
-
var
|
|
26990
|
-
function
|
|
27120
|
+
var Ku = n(!1);
|
|
27121
|
+
function qu({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 }) {
|
|
26991
27122
|
let i = Wn({
|
|
26992
27123
|
selector: ".select-detail",
|
|
26993
27124
|
y: 8,
|
|
@@ -26995,7 +27126,7 @@ function Bu({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
26995
27126
|
stagger: .05,
|
|
26996
27127
|
scroll: !0
|
|
26997
27128
|
});
|
|
26998
|
-
return /* @__PURE__ */ h(
|
|
27129
|
+
return /* @__PURE__ */ h(Ku.Provider, {
|
|
26999
27130
|
value: r,
|
|
27000
27131
|
children: /* @__PURE__ */ h("div", {
|
|
27001
27132
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}${n ? " select-detaillist--compact" : ""}`,
|
|
@@ -27004,8 +27135,8 @@ function Bu({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
27004
27135
|
})
|
|
27005
27136
|
});
|
|
27006
27137
|
}
|
|
27007
|
-
var
|
|
27008
|
-
let l = a(
|
|
27138
|
+
var Ju = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
27139
|
+
let l = a(Ku), u = i ?? l;
|
|
27009
27140
|
return /* @__PURE__ */ g("div", {
|
|
27010
27141
|
ref: c,
|
|
27011
27142
|
...s,
|
|
@@ -27025,7 +27156,7 @@ var Vu = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
27025
27156
|
})
|
|
27026
27157
|
]
|
|
27027
27158
|
});
|
|
27028
|
-
}),
|
|
27159
|
+
}), Yu = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", connected: i = !1, className: a, ...o }, s) {
|
|
27029
27160
|
let c = r === "vertical";
|
|
27030
27161
|
return /* @__PURE__ */ h("ol", {
|
|
27031
27162
|
ref: s,
|
|
@@ -27068,7 +27199,7 @@ var Vu = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
27068
27199
|
});
|
|
27069
27200
|
//#endregion
|
|
27070
27201
|
//#region src/SelectSetupGuide.tsx
|
|
27071
|
-
function
|
|
27202
|
+
function Xu({ status: e }) {
|
|
27072
27203
|
return /* @__PURE__ */ h("span", {
|
|
27073
27204
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
27074
27205
|
"aria-hidden": "true",
|
|
@@ -27087,13 +27218,13 @@ function Uu({ status: e }) {
|
|
|
27087
27218
|
})
|
|
27088
27219
|
});
|
|
27089
27220
|
}
|
|
27090
|
-
var
|
|
27221
|
+
var Zu = {
|
|
27091
27222
|
done: "feito",
|
|
27092
27223
|
todo: "a fazer",
|
|
27093
27224
|
next: "próximo passo",
|
|
27094
27225
|
skipped: "pulado",
|
|
27095
27226
|
waiting: "aguardando"
|
|
27096
|
-
},
|
|
27227
|
+
}, Qu = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
|
|
27097
27228
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0, f = Qr();
|
|
27098
27229
|
return /* @__PURE__ */ g("section", {
|
|
27099
27230
|
ref: u,
|
|
@@ -27156,14 +27287,14 @@ var Wu = {
|
|
|
27156
27287
|
children: e.steps.map((e) => /* @__PURE__ */ g("li", {
|
|
27157
27288
|
className: `select-setupguide__step is-${e.status}`,
|
|
27158
27289
|
children: [
|
|
27159
|
-
/* @__PURE__ */ h(
|
|
27290
|
+
/* @__PURE__ */ h(Xu, { status: e.status }),
|
|
27160
27291
|
/* @__PURE__ */ g("span", {
|
|
27161
27292
|
className: "select-setupguide__text",
|
|
27162
27293
|
children: [/* @__PURE__ */ g("span", {
|
|
27163
27294
|
className: "select-setupguide__steptitle",
|
|
27164
27295
|
children: [e.title, /* @__PURE__ */ g("span", {
|
|
27165
27296
|
className: "select-setupguide__sr",
|
|
27166
|
-
children: [" — ",
|
|
27297
|
+
children: [" — ", Zu[e.status]]
|
|
27167
27298
|
})]
|
|
27168
27299
|
}), e.description && /* @__PURE__ */ h("span", {
|
|
27169
27300
|
className: "select-setupguide__stepdesc",
|
|
@@ -27182,7 +27313,7 @@ var Wu = {
|
|
|
27182
27313
|
})]
|
|
27183
27314
|
});
|
|
27184
27315
|
});
|
|
27185
|
-
function
|
|
27316
|
+
function $u({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
27186
27317
|
return /* @__PURE__ */ g("div", {
|
|
27187
27318
|
className: "select-setupnext",
|
|
27188
27319
|
children: [
|
|
@@ -27207,37 +27338,37 @@ function Ku({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
27207
27338
|
}
|
|
27208
27339
|
//#endregion
|
|
27209
27340
|
//#region src/SelectTour.tsx
|
|
27210
|
-
var
|
|
27211
|
-
function
|
|
27341
|
+
var ed = 6, td = 12;
|
|
27342
|
+
function nd(e) {
|
|
27212
27343
|
let t = document.querySelector(e);
|
|
27213
27344
|
if (!t) return null;
|
|
27214
27345
|
let n = t.getBoundingClientRect();
|
|
27215
27346
|
return n.width === 0 && n.height === 0 ? null : {
|
|
27216
|
-
top: n.top -
|
|
27217
|
-
left: n.left -
|
|
27347
|
+
top: n.top - ed,
|
|
27348
|
+
left: n.left - ed,
|
|
27218
27349
|
width: n.width + 12,
|
|
27219
27350
|
height: n.height + 12
|
|
27220
27351
|
};
|
|
27221
27352
|
}
|
|
27222
|
-
function
|
|
27353
|
+
function rd(e) {
|
|
27223
27354
|
let t = document.querySelector(e);
|
|
27224
27355
|
if (!t) return !1;
|
|
27225
27356
|
let n = t.getBoundingClientRect();
|
|
27226
27357
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
27227
27358
|
}
|
|
27228
|
-
function
|
|
27229
|
-
let s = u(() => e ? t.filter((e) =>
|
|
27359
|
+
function id({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
27360
|
+
let s = u(() => e ? t.filter((e) => rd(e.target)) : [], [e]), [c, p] = f(0), [m, v] = f(null), [y, b] = f(null), x = d(null), S = d(null);
|
|
27230
27361
|
o(() => {
|
|
27231
27362
|
e && p(0);
|
|
27232
27363
|
}, [e]);
|
|
27233
27364
|
let C = s[c], w = c === s.length - 1, T = i(() => {
|
|
27234
27365
|
if (!C) return;
|
|
27235
|
-
let e =
|
|
27366
|
+
let e = nd(C.target);
|
|
27236
27367
|
v(e);
|
|
27237
27368
|
let t = x.current;
|
|
27238
27369
|
if (!e || !t) return;
|
|
27239
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
27240
|
-
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height +
|
|
27370
|
+
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + td, s = e.top;
|
|
27371
|
+
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + td, s + r > a - 8 && (s = e.top - r - td)), s = Math.min(Math.max(8, s), a - r - 8), b({
|
|
27241
27372
|
top: s,
|
|
27242
27373
|
left: o
|
|
27243
27374
|
});
|
|
@@ -27339,7 +27470,7 @@ function Zu({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
27339
27470
|
}
|
|
27340
27471
|
//#endregion
|
|
27341
27472
|
//#region src/SelectPlanCard.tsx
|
|
27342
|
-
var
|
|
27473
|
+
var ad = 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) {
|
|
27343
27474
|
return /* @__PURE__ */ g("div", {
|
|
27344
27475
|
ref: d,
|
|
27345
27476
|
...u,
|
|
@@ -27394,7 +27525,7 @@ var Qu = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
27394
27525
|
})]
|
|
27395
27526
|
})]
|
|
27396
27527
|
});
|
|
27397
|
-
}),
|
|
27528
|
+
}), od = r(function({ title: e, description: t, headerAction: n, footer: r, dense: i = !1, spread: a = !1, children: o, className: s, ...c }, l) {
|
|
27398
27529
|
return /* @__PURE__ */ g("div", {
|
|
27399
27530
|
ref: l,
|
|
27400
27531
|
...c,
|
|
@@ -27430,7 +27561,7 @@ var Qu = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
27430
27561
|
]
|
|
27431
27562
|
});
|
|
27432
27563
|
});
|
|
27433
|
-
function
|
|
27564
|
+
function sd({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, wrap: o = !1, onClick: s }) {
|
|
27434
27565
|
let c = /* @__PURE__ */ g(m, { children: [
|
|
27435
27566
|
e && /* @__PURE__ */ h("span", {
|
|
27436
27567
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
@@ -27462,7 +27593,7 @@ function ed({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
27462
27593
|
children: c
|
|
27463
27594
|
});
|
|
27464
27595
|
}
|
|
27465
|
-
function
|
|
27596
|
+
function cd({ children: e }) {
|
|
27466
27597
|
return /* @__PURE__ */ h("div", {
|
|
27467
27598
|
className: "select-listlabel",
|
|
27468
27599
|
children: e
|
|
@@ -27470,7 +27601,7 @@ function td({ children: e }) {
|
|
|
27470
27601
|
}
|
|
27471
27602
|
//#endregion
|
|
27472
27603
|
//#region src/SelectThumbnail.tsx
|
|
27473
|
-
var
|
|
27604
|
+
var ld = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, s) {
|
|
27474
27605
|
let [c, l] = f(!1);
|
|
27475
27606
|
o(() => l(!1), [e]);
|
|
27476
27607
|
let u = /* @__PURE__ */ h("span", {
|
|
@@ -27504,8 +27635,8 @@ var nd = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
|
|
|
27504
27635
|
});
|
|
27505
27636
|
//#endregion
|
|
27506
27637
|
//#region src/SelectImageZoomModal.tsx
|
|
27507
|
-
function
|
|
27508
|
-
return /* @__PURE__ */ h(
|
|
27638
|
+
function ud({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
27639
|
+
return /* @__PURE__ */ h(Eo, {
|
|
27509
27640
|
open: e,
|
|
27510
27641
|
onClose: t,
|
|
27511
27642
|
title: i,
|
|
@@ -27523,7 +27654,7 @@ function rd({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
27523
27654
|
}
|
|
27524
27655
|
//#endregion
|
|
27525
27656
|
//#region src/SelectZoomThumbnail.tsx
|
|
27526
|
-
function
|
|
27657
|
+
function dd({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
27527
27658
|
let [a, o] = f(!1);
|
|
27528
27659
|
return e ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("button", {
|
|
27529
27660
|
type: "button",
|
|
@@ -27536,19 +27667,19 @@ function id({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
27536
27667
|
cursor: "zoom-in",
|
|
27537
27668
|
display: "inline-flex"
|
|
27538
27669
|
},
|
|
27539
|
-
children: /* @__PURE__ */ h(
|
|
27670
|
+
children: /* @__PURE__ */ h(ld, {
|
|
27540
27671
|
src: e,
|
|
27541
27672
|
size: n,
|
|
27542
27673
|
alt: t,
|
|
27543
27674
|
count: i
|
|
27544
27675
|
})
|
|
27545
|
-
}), a && /* @__PURE__ */ h(
|
|
27676
|
+
}), a && /* @__PURE__ */ h(ud, {
|
|
27546
27677
|
open: !0,
|
|
27547
27678
|
onClose: () => o(!1),
|
|
27548
27679
|
src: e,
|
|
27549
27680
|
alt: t,
|
|
27550
27681
|
title: r ?? t
|
|
27551
|
-
})] }) : /* @__PURE__ */ h(
|
|
27682
|
+
})] }) : /* @__PURE__ */ h(ld, {
|
|
27552
27683
|
size: n,
|
|
27553
27684
|
alt: t,
|
|
27554
27685
|
count: i
|
|
@@ -27556,7 +27687,7 @@ function id({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
27556
27687
|
}
|
|
27557
27688
|
//#endregion
|
|
27558
27689
|
//#region src/SelectMediaCell.tsx
|
|
27559
|
-
var
|
|
27690
|
+
var fd = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
27560
27691
|
return /* @__PURE__ */ g("span", {
|
|
27561
27692
|
ref: a,
|
|
27562
27693
|
...i,
|
|
@@ -27578,14 +27709,14 @@ var ad = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
27578
27709
|
});
|
|
27579
27710
|
//#endregion
|
|
27580
27711
|
//#region src/SelectOfflineModal.tsx
|
|
27581
|
-
function
|
|
27712
|
+
function pd() {
|
|
27582
27713
|
let [e, t] = f(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
27583
27714
|
return o(() => {
|
|
27584
27715
|
let e = () => t(!1), n = () => t(!0);
|
|
27585
27716
|
return window.addEventListener("online", e), window.addEventListener("offline", n), () => {
|
|
27586
27717
|
window.removeEventListener("online", e), window.removeEventListener("offline", n);
|
|
27587
27718
|
};
|
|
27588
|
-
}, []), /* @__PURE__ */ h(
|
|
27719
|
+
}, []), /* @__PURE__ */ h(Eo, {
|
|
27589
27720
|
open: e,
|
|
27590
27721
|
onClose: () => {},
|
|
27591
27722
|
showClose: !1,
|
|
@@ -27601,7 +27732,7 @@ function od() {
|
|
|
27601
27732
|
}
|
|
27602
27733
|
//#endregion
|
|
27603
27734
|
//#region src/SelectKeyValueEditor.tsx
|
|
27604
|
-
function
|
|
27735
|
+
function md(e) {
|
|
27605
27736
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
27606
27737
|
name: String(e.name ?? e.key ?? ""),
|
|
27607
27738
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -27610,8 +27741,8 @@ function sd(e) {
|
|
|
27610
27741
|
value: t == null ? "" : String(t)
|
|
27611
27742
|
})) : [];
|
|
27612
27743
|
}
|
|
27613
|
-
var
|
|
27614
|
-
let d =
|
|
27744
|
+
var hd = 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) {
|
|
27745
|
+
let d = md(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
27615
27746
|
...t,
|
|
27616
27747
|
...n
|
|
27617
27748
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), m = () => t([...d, {
|
|
@@ -27675,7 +27806,7 @@ var cd = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
27675
27806
|
})
|
|
27676
27807
|
]
|
|
27677
27808
|
});
|
|
27678
|
-
}),
|
|
27809
|
+
}), gd = (e) => String(e).padStart(2, "0"), _d = {
|
|
27679
27810
|
"en-US": {
|
|
27680
27811
|
weekdays: [
|
|
27681
27812
|
"Su",
|
|
@@ -27734,34 +27865,34 @@ var cd = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
27734
27865
|
to: "Até",
|
|
27735
27866
|
cancel: "Cancelar",
|
|
27736
27867
|
apply: "Aplicar",
|
|
27737
|
-
formatDate: (e) => `${
|
|
27868
|
+
formatDate: (e) => `${gd(e.getDate())} / ${gd(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
27738
27869
|
}
|
|
27739
|
-
},
|
|
27870
|
+
}, vd = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), yd = (e) => new Date(e.getFullYear(), e.getMonth(), 1), bd = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), xd = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Sd = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Cd = (e) => {
|
|
27740
27871
|
let t = /* @__PURE__ */ new Date();
|
|
27741
27872
|
return {
|
|
27742
27873
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
27743
27874
|
to: t
|
|
27744
27875
|
};
|
|
27745
|
-
},
|
|
27876
|
+
}, wd = [
|
|
27746
27877
|
{
|
|
27747
27878
|
id: "15m",
|
|
27748
27879
|
label: "Last 15 minutes",
|
|
27749
|
-
range: () =>
|
|
27880
|
+
range: () => Cd(15)
|
|
27750
27881
|
},
|
|
27751
27882
|
{
|
|
27752
27883
|
id: "1h",
|
|
27753
27884
|
label: "Last 1 hour",
|
|
27754
|
-
range: () =>
|
|
27885
|
+
range: () => Cd(60)
|
|
27755
27886
|
},
|
|
27756
27887
|
{
|
|
27757
27888
|
id: "3h",
|
|
27758
27889
|
label: "Last 3 hours",
|
|
27759
|
-
range: () =>
|
|
27890
|
+
range: () => Cd(180)
|
|
27760
27891
|
},
|
|
27761
27892
|
{
|
|
27762
27893
|
id: "24h",
|
|
27763
27894
|
label: "Last 24 hours",
|
|
27764
|
-
range: () =>
|
|
27895
|
+
range: () => Cd(1440)
|
|
27765
27896
|
},
|
|
27766
27897
|
{
|
|
27767
27898
|
id: "3d",
|
|
@@ -27777,78 +27908,78 @@ var cd = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
27777
27908
|
id: "all",
|
|
27778
27909
|
label: "All",
|
|
27779
27910
|
range: () => ({
|
|
27780
|
-
from:
|
|
27781
|
-
to:
|
|
27911
|
+
from: vd(/* @__PURE__ */ new Date()),
|
|
27912
|
+
to: vd(/* @__PURE__ */ new Date())
|
|
27782
27913
|
})
|
|
27783
27914
|
}
|
|
27784
|
-
],
|
|
27785
|
-
let t =
|
|
27915
|
+
], Td = (e) => {
|
|
27916
|
+
let t = vd(/* @__PURE__ */ new Date());
|
|
27786
27917
|
return {
|
|
27787
|
-
from:
|
|
27918
|
+
from: bd(t, -e),
|
|
27788
27919
|
to: t
|
|
27789
27920
|
};
|
|
27790
|
-
},
|
|
27791
|
-
let t =
|
|
27921
|
+
}, Ed = (e) => {
|
|
27922
|
+
let t = bd(vd(/* @__PURE__ */ new Date()), -e);
|
|
27792
27923
|
return {
|
|
27793
27924
|
from: t,
|
|
27794
27925
|
to: t
|
|
27795
27926
|
};
|
|
27796
|
-
},
|
|
27927
|
+
}, Dd = [
|
|
27797
27928
|
{
|
|
27798
27929
|
id: "today",
|
|
27799
27930
|
label: "Hoje",
|
|
27800
|
-
range: () =>
|
|
27931
|
+
range: () => Td(0)
|
|
27801
27932
|
},
|
|
27802
27933
|
{
|
|
27803
27934
|
id: "yesterday",
|
|
27804
27935
|
label: "Ontem",
|
|
27805
|
-
range: () =>
|
|
27936
|
+
range: () => Ed(1)
|
|
27806
27937
|
},
|
|
27807
27938
|
{
|
|
27808
27939
|
id: "7d",
|
|
27809
27940
|
label: "Últimos 7 dias",
|
|
27810
|
-
range: () =>
|
|
27941
|
+
range: () => Td(6)
|
|
27811
27942
|
},
|
|
27812
27943
|
{
|
|
27813
27944
|
id: "10d",
|
|
27814
27945
|
label: "Últimos 10 dias",
|
|
27815
|
-
range: () =>
|
|
27946
|
+
range: () => Td(9)
|
|
27816
27947
|
},
|
|
27817
27948
|
{
|
|
27818
27949
|
id: "15d",
|
|
27819
27950
|
label: "Últimos 15 dias",
|
|
27820
|
-
range: () =>
|
|
27951
|
+
range: () => Td(14)
|
|
27821
27952
|
},
|
|
27822
27953
|
{
|
|
27823
27954
|
id: "20d",
|
|
27824
27955
|
label: "Últimos 20 dias",
|
|
27825
|
-
range: () =>
|
|
27956
|
+
range: () => Td(19)
|
|
27826
27957
|
},
|
|
27827
27958
|
{
|
|
27828
27959
|
id: "30d",
|
|
27829
27960
|
label: "Últimos 30 dias",
|
|
27830
|
-
range: () =>
|
|
27961
|
+
range: () => Td(29)
|
|
27831
27962
|
},
|
|
27832
27963
|
{
|
|
27833
27964
|
id: "90d",
|
|
27834
27965
|
label: "Últimos 90 dias",
|
|
27835
|
-
range: () =>
|
|
27966
|
+
range: () => Td(89)
|
|
27836
27967
|
}
|
|
27837
27968
|
];
|
|
27838
|
-
function
|
|
27969
|
+
function Od(e) {
|
|
27839
27970
|
if (!e) return "—";
|
|
27840
27971
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
27841
27972
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
27842
27973
|
}
|
|
27843
|
-
var
|
|
27844
|
-
let p =
|
|
27974
|
+
var kd = r(function({ value: e, presets: t = wd, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, d) {
|
|
27975
|
+
let p = _d[a], m = vd(/* @__PURE__ */ new Date()), _ = s ? vd(s) : null, [v, y] = f(e ?? {
|
|
27845
27976
|
from: m,
|
|
27846
27977
|
to: m
|
|
27847
|
-
}), [b, x] = f(
|
|
27978
|
+
}), [b, x] = f(yd((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = f(null), w = bd(yd(b), -yd(b).getDay()), T = Array.from({ length: 42 }, (e, t) => bd(w, t)), E = (e) => _ ? vd(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ h("span", {
|
|
27848
27979
|
className: "select-datepicker__placeholder",
|
|
27849
27980
|
children: "— / — / ——"
|
|
27850
27981
|
}), O = (e) => {
|
|
27851
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
27982
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < vd(t.from) ? {
|
|
27852
27983
|
from: e,
|
|
27853
27984
|
to: null
|
|
27854
27985
|
} : {
|
|
@@ -27858,7 +27989,7 @@ var Sd = r(function({ value: e, presets: t = _d, onApply: n, onCancel: r, accent
|
|
|
27858
27989
|
}, k = (e) => {
|
|
27859
27990
|
if (e.disabled || !e.range) return;
|
|
27860
27991
|
let t = e.range();
|
|
27861
|
-
y(t), C(e.id), t.from && x(
|
|
27992
|
+
y(t), C(e.id), t.from && x(yd(t.from));
|
|
27862
27993
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
27863
27994
|
return /* @__PURE__ */ h("div", {
|
|
27864
27995
|
ref: d,
|
|
@@ -27904,7 +28035,7 @@ var Sd = r(function({ value: e, presets: t = _d, onApply: n, onCancel: r, accent
|
|
|
27904
28035
|
}),
|
|
27905
28036
|
o && /* @__PURE__ */ h("span", {
|
|
27906
28037
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
27907
|
-
children:
|
|
28038
|
+
children: Od(v[e])
|
|
27908
28039
|
})
|
|
27909
28040
|
]
|
|
27910
28041
|
}, e))
|
|
@@ -27916,7 +28047,7 @@ var Sd = r(function({ value: e, presets: t = _d, onApply: n, onCancel: r, accent
|
|
|
27916
28047
|
type: "button",
|
|
27917
28048
|
className: "select-datepicker__nav",
|
|
27918
28049
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
27919
|
-
onClick: () => x((e) =>
|
|
28050
|
+
onClick: () => x((e) => xd(e, -1)),
|
|
27920
28051
|
children: /* @__PURE__ */ h(G, {})
|
|
27921
28052
|
}),
|
|
27922
28053
|
/* @__PURE__ */ g("span", {
|
|
@@ -27931,7 +28062,7 @@ var Sd = r(function({ value: e, presets: t = _d, onApply: n, onCancel: r, accent
|
|
|
27931
28062
|
type: "button",
|
|
27932
28063
|
className: "select-datepicker__nav",
|
|
27933
28064
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
27934
|
-
onClick: () => x((e) =>
|
|
28065
|
+
onClick: () => x((e) => xd(e, 1)),
|
|
27935
28066
|
children: /* @__PURE__ */ h(W, {})
|
|
27936
28067
|
})
|
|
27937
28068
|
]
|
|
@@ -27943,7 +28074,7 @@ var Sd = r(function({ value: e, presets: t = _d, onApply: n, onCancel: r, accent
|
|
|
27943
28074
|
className: "select-datepicker__weekday",
|
|
27944
28075
|
children: e
|
|
27945
28076
|
}, t)), T.map((e) => {
|
|
27946
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
28077
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && Sd(e, v.from), i = !!v.to && Sd(e, v.to), a = r || i, o = !!v.from && !!v.to && !Sd(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > vd(v.from) && e < vd(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" : "") + (Sd(e, m) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
27947
28078
|
return /* @__PURE__ */ h("div", {
|
|
27948
28079
|
className: s,
|
|
27949
28080
|
children: /* @__PURE__ */ h("button", {
|
|
@@ -27974,17 +28105,17 @@ var Sd = r(function({ value: e, presets: t = _d, onApply: n, onCancel: r, accent
|
|
|
27974
28105
|
})]
|
|
27975
28106
|
})
|
|
27976
28107
|
});
|
|
27977
|
-
}),
|
|
27978
|
-
function
|
|
28108
|
+
}), Ad = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), jd = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Md = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
28109
|
+
function Nd(e, t) {
|
|
27979
28110
|
for (let r of t) {
|
|
27980
28111
|
var n;
|
|
27981
28112
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
27982
|
-
if (t != null && t.from && t != null && t.to &&
|
|
28113
|
+
if (t != null && t.from && t != null && t.to && jd(t.from, e.start) && jd(t.to, e.end)) return r.label;
|
|
27983
28114
|
}
|
|
27984
|
-
return
|
|
28115
|
+
return jd(e.start, e.end) ? Md(e.start) : `${Md(e.start)} – ${Md(e.end)}`;
|
|
27985
28116
|
}
|
|
27986
|
-
function
|
|
27987
|
-
let [c, l] = f(!1), u = r === null ? null : r ??
|
|
28117
|
+
function Pd({ value: e, onChange: t, presets: n = Dd, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
28118
|
+
let [c, l] = f(!1), u = r === null ? null : r ?? Ad(/* @__PURE__ */ new Date());
|
|
27988
28119
|
return /* @__PURE__ */ h(Zn, {
|
|
27989
28120
|
active: c,
|
|
27990
28121
|
onClose: () => l(!1),
|
|
@@ -27998,9 +28129,9 @@ function Dd({ value: e, onChange: t, presets: n = bd, maxDate: r, placement: i =
|
|
|
27998
28129
|
icon: /* @__PURE__ */ h(nt, {}),
|
|
27999
28130
|
trailingIcon: /* @__PURE__ */ h(K, {}),
|
|
28000
28131
|
onClick: () => l((e) => !e),
|
|
28001
|
-
children:
|
|
28132
|
+
children: Nd(e, n)
|
|
28002
28133
|
}),
|
|
28003
|
-
children: /* @__PURE__ */ h(
|
|
28134
|
+
children: /* @__PURE__ */ h(kd, {
|
|
28004
28135
|
embedded: !0,
|
|
28005
28136
|
locale: "pt-BR",
|
|
28006
28137
|
showTime: !1,
|
|
@@ -28013,8 +28144,8 @@ function Dd({ value: e, onChange: t, presets: n = bd, maxDate: r, placement: i =
|
|
|
28013
28144
|
onCancel: () => l(!1),
|
|
28014
28145
|
onApply: (e) => {
|
|
28015
28146
|
e.from && t({
|
|
28016
|
-
start:
|
|
28017
|
-
end:
|
|
28147
|
+
start: Ad(e.from),
|
|
28148
|
+
end: Ad(e.to ?? e.from)
|
|
28018
28149
|
}), l(!1);
|
|
28019
28150
|
}
|
|
28020
28151
|
})
|
|
@@ -28022,7 +28153,7 @@ function Dd({ value: e, onChange: t, presets: n = bd, maxDate: r, placement: i =
|
|
|
28022
28153
|
}
|
|
28023
28154
|
//#endregion
|
|
28024
28155
|
//#region src/SelectNumberField.tsx
|
|
28025
|
-
var
|
|
28156
|
+
var Fd = 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: d, placeholder: p, size: m = "md", className: _, ...v }, y) {
|
|
28026
28157
|
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] = f(!1), [O, k] = f(""), A = o && E ? O : t == null ? "" : String(t), j = (e) => {
|
|
28027
28158
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
28028
28159
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -28096,7 +28227,7 @@ var Od = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
28096
28227
|
});
|
|
28097
28228
|
//#endregion
|
|
28098
28229
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
28099
|
-
function
|
|
28230
|
+
function Id({ 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 }) {
|
|
28100
28231
|
let p = !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) => {
|
|
28101
28232
|
let i = n + r;
|
|
28102
28233
|
if (i < 0 || i >= e.length) return;
|
|
@@ -28191,7 +28322,7 @@ function kd({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
28191
28322
|
}
|
|
28192
28323
|
//#endregion
|
|
28193
28324
|
//#region src/SelectBuilderLayout.tsx
|
|
28194
|
-
function
|
|
28325
|
+
function Ld({ 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 }) {
|
|
28195
28326
|
let d = y();
|
|
28196
28327
|
return /* @__PURE__ */ h(oa, {
|
|
28197
28328
|
title: e,
|
|
@@ -28231,7 +28362,7 @@ function Ad({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
28231
28362
|
}
|
|
28232
28363
|
//#endregion
|
|
28233
28364
|
//#region src/SelectBuilderWorkspace.tsx
|
|
28234
|
-
function
|
|
28365
|
+
function Rd({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a = !1, saveLabel: o = "Salvar", saveDisabled: s = !1, cancelTo: c, onDiscard: l, discardLabel: d = "Descartar", error: p, sections: _ = [], activeId: v, onActiveChange: b, searchable: x = !1, searchPlaceholder: S = "Buscar ajuste…", preview: C, previewLayout: w = "fill", toolbar: T, dirty: E = !1, dirtyLabel: D = "Alterações não salvas", savedLabel: O, reviewLabel: k, layout: A = "rail", panel: j, panelWidth: M, mobileTabs: N, mobileTab: P, onMobileTabChange: F, readOnly: I = !1 }) {
|
|
28235
28366
|
var L;
|
|
28236
28367
|
let R = y(), z = A === "drill", [B, ee] = f(z ? null : ((L = _[0]) == null ? void 0 : L.id) ?? ""), [te, V] = f(""), [H, ne] = f("panel"), re = P ?? H, ie = (e) => {
|
|
28237
28368
|
P === void 0 && ne(e), F == null || F(e);
|
|
@@ -28491,10 +28622,10 @@ function jd({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
28491
28622
|
}
|
|
28492
28623
|
//#endregion
|
|
28493
28624
|
//#region src/SelectFlowCanvas.tsx
|
|
28494
|
-
var
|
|
28495
|
-
function
|
|
28625
|
+
var zd = (e) => Math.round(e * 100) / 100;
|
|
28626
|
+
function Bd({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], children: a, zoom: o, defaultZoom: c = 1, onZoomChange: l, minZoom: u = .5, maxZoom: d = 1.3, onBackgroundClick: p, ariaLabel: m }) {
|
|
28496
28627
|
let _ = s().replace(/:/g, ""), [v, y] = f(c), b = o ?? v, x = (e) => {
|
|
28497
|
-
let t =
|
|
28628
|
+
let t = zd(Math.min(d, Math.max(u, e)));
|
|
28498
28629
|
o === void 0 && y(t), l == null || l(t);
|
|
28499
28630
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
28500
28631
|
return /* @__PURE__ */ g("div", {
|
|
@@ -28610,7 +28741,7 @@ function Nd({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
28610
28741
|
})]
|
|
28611
28742
|
});
|
|
28612
28743
|
}
|
|
28613
|
-
function
|
|
28744
|
+
function Vd({ 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: m = !1, muted: _ = !1, invalid: v = !1, onClick: y, ariaLabel: b }) {
|
|
28614
28745
|
let x = `${p ? " is-selected" : v ? " is-invalid" : m ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
28615
28746
|
left: e,
|
|
28616
28747
|
top: t,
|
|
@@ -28686,7 +28817,7 @@ function Pd({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
28686
28817
|
})]
|
|
28687
28818
|
});
|
|
28688
28819
|
}
|
|
28689
|
-
function
|
|
28820
|
+
function Hd({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
|
|
28690
28821
|
return /* @__PURE__ */ g("div", {
|
|
28691
28822
|
className: "select-flowpage",
|
|
28692
28823
|
children: [
|
|
@@ -28748,7 +28879,7 @@ function Fd({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
28748
28879
|
}
|
|
28749
28880
|
//#endregion
|
|
28750
28881
|
//#region src/SelectSwitchField.tsx
|
|
28751
|
-
var
|
|
28882
|
+
var Ud = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
28752
28883
|
return /* @__PURE__ */ g("div", {
|
|
28753
28884
|
ref: c,
|
|
28754
28885
|
...s,
|
|
@@ -28776,7 +28907,7 @@ var Id = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
28776
28907
|
children: i
|
|
28777
28908
|
})]
|
|
28778
28909
|
});
|
|
28779
|
-
}),
|
|
28910
|
+
}), Wd = [
|
|
28780
28911
|
"#212529",
|
|
28781
28912
|
"#495057",
|
|
28782
28913
|
"#868E96",
|
|
@@ -28793,13 +28924,13 @@ var Id = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
28793
28924
|
"#DB2777",
|
|
28794
28925
|
"#9333EA",
|
|
28795
28926
|
"#6D28D9"
|
|
28796
|
-
],
|
|
28797
|
-
function
|
|
28798
|
-
let t =
|
|
28927
|
+
], Gd = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
28928
|
+
function Kd(e) {
|
|
28929
|
+
let t = Gd.exec((e ?? "").trim());
|
|
28799
28930
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
28800
28931
|
}
|
|
28801
|
-
function
|
|
28802
|
-
let t =
|
|
28932
|
+
function qd(e) {
|
|
28933
|
+
let t = Kd(e);
|
|
28803
28934
|
if (!t) return 0;
|
|
28804
28935
|
let [n, r, i] = [
|
|
28805
28936
|
1,
|
|
@@ -28808,13 +28939,13 @@ function Bd(e) {
|
|
|
28808
28939
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
28809
28940
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
28810
28941
|
}
|
|
28811
|
-
function
|
|
28812
|
-
let [n, r] = [
|
|
28942
|
+
function Jd(e, t) {
|
|
28943
|
+
let [n, r] = [qd(e), qd(t)].sort((e, t) => t - e);
|
|
28813
28944
|
return (n + .05) / (r + .05);
|
|
28814
28945
|
}
|
|
28815
|
-
var
|
|
28816
|
-
function
|
|
28817
|
-
let t =
|
|
28946
|
+
var Yd = (e) => Math.min(1, Math.max(0, e));
|
|
28947
|
+
function Xd(e) {
|
|
28948
|
+
let t = Kd(e) ?? "#000000", [n, r, i] = [
|
|
28818
28949
|
1,
|
|
28819
28950
|
3,
|
|
28820
28951
|
5
|
|
@@ -28825,7 +28956,7 @@ function Ud(e) {
|
|
|
28825
28956
|
v: a
|
|
28826
28957
|
};
|
|
28827
28958
|
}
|
|
28828
|
-
function
|
|
28959
|
+
function Zd({ h: e, s: t, v: n }) {
|
|
28829
28960
|
let r = (r) => {
|
|
28830
28961
|
let i = (r + e / 60) % 6;
|
|
28831
28962
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -28836,26 +28967,26 @@ function Wd({ h: e, s: t, v: n }) {
|
|
|
28836
28967
|
r(1)
|
|
28837
28968
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
28838
28969
|
}
|
|
28839
|
-
function
|
|
28840
|
-
let [n, r] = f(() =>
|
|
28970
|
+
function Qd({ hex: e, onPick: t }) {
|
|
28971
|
+
let [n, r] = f(() => Xd(e ?? "#1D4ED8")), i = d(n), a = (e) => {
|
|
28841
28972
|
i.current = e, r(e);
|
|
28842
28973
|
};
|
|
28843
28974
|
o(() => {
|
|
28844
|
-
if (!e ||
|
|
28845
|
-
let t =
|
|
28975
|
+
if (!e || Zd(i.current) === e) return;
|
|
28976
|
+
let t = Xd(e);
|
|
28846
28977
|
a(t.s === 0 || t.v === 0 ? {
|
|
28847
28978
|
...t,
|
|
28848
28979
|
h: i.current.h
|
|
28849
28980
|
} : t);
|
|
28850
28981
|
}, [e]);
|
|
28851
28982
|
let s = (e) => {
|
|
28852
|
-
a(e), t(
|
|
28983
|
+
a(e), t(Zd(e));
|
|
28853
28984
|
}, c = (e, t, n) => {
|
|
28854
28985
|
var r;
|
|
28855
28986
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
28856
28987
|
let i = (t) => {
|
|
28857
28988
|
let r = e.getBoundingClientRect();
|
|
28858
|
-
n(
|
|
28989
|
+
n(Yd((t.clientX - r.left) / (r.width || 1)), Yd((t.clientY - r.top) / (r.height || 1)));
|
|
28859
28990
|
};
|
|
28860
28991
|
i(t);
|
|
28861
28992
|
let a = (e) => i(e), o = () => {
|
|
@@ -28865,20 +28996,20 @@ function Gd({ hex: e, onPick: t }) {
|
|
|
28865
28996
|
}, l = (e) => {
|
|
28866
28997
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, o = e.key === "ArrowLeft" ? {
|
|
28867
28998
|
h: n,
|
|
28868
|
-
s:
|
|
28999
|
+
s: Yd(r - t),
|
|
28869
29000
|
v: a
|
|
28870
29001
|
} : e.key === "ArrowRight" ? {
|
|
28871
29002
|
h: n,
|
|
28872
|
-
s:
|
|
29003
|
+
s: Yd(r + t),
|
|
28873
29004
|
v: a
|
|
28874
29005
|
} : e.key === "ArrowUp" ? {
|
|
28875
29006
|
h: n,
|
|
28876
29007
|
s: r,
|
|
28877
|
-
v:
|
|
29008
|
+
v: Yd(a + t)
|
|
28878
29009
|
} : e.key === "ArrowDown" ? {
|
|
28879
29010
|
h: n,
|
|
28880
29011
|
s: r,
|
|
28881
|
-
v:
|
|
29012
|
+
v: Yd(a - t)
|
|
28882
29013
|
} : null;
|
|
28883
29014
|
o && (e.preventDefault(), s(o));
|
|
28884
29015
|
}, u = (e) => {
|
|
@@ -28888,11 +29019,11 @@ function Gd({ hex: e, onPick: t }) {
|
|
|
28888
29019
|
s: r,
|
|
28889
29020
|
v: a
|
|
28890
29021
|
}));
|
|
28891
|
-
}, p =
|
|
29022
|
+
}, p = Zd({
|
|
28892
29023
|
h: n.h,
|
|
28893
29024
|
s: 1,
|
|
28894
29025
|
v: 1
|
|
28895
|
-
}), _ =
|
|
29026
|
+
}), _ = Zd(n);
|
|
28896
29027
|
return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
|
|
28897
29028
|
className: "select-colorfield__sv",
|
|
28898
29029
|
style: { backgroundColor: p },
|
|
@@ -28936,24 +29067,24 @@ function Gd({ hex: e, onPick: t }) {
|
|
|
28936
29067
|
})
|
|
28937
29068
|
})] });
|
|
28938
29069
|
}
|
|
28939
|
-
var
|
|
28940
|
-
function
|
|
29070
|
+
var $d = (e) => e.toFixed(1).replace(".", ",");
|
|
29071
|
+
function ef({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: c = Wd, disabled: l = !1, allowEmpty: u = !1, contrastWith: d, contrastLabel: p = "o texto", id: _ }) {
|
|
28941
29072
|
let v = s(), y = _ ?? `color-${v}`, [b, x] = f(!1), [S, C] = f(i ?? ""), [w, T] = f(null);
|
|
28942
29073
|
o(() => {
|
|
28943
29074
|
C(i ?? ""), T(null);
|
|
28944
29075
|
}, [i]);
|
|
28945
|
-
let E =
|
|
29076
|
+
let E = Kd(i ?? ""), D = (e) => {
|
|
28946
29077
|
if (!e.trim()) {
|
|
28947
29078
|
u ? (T(null), a("")) : C(i ?? "");
|
|
28948
29079
|
return;
|
|
28949
29080
|
}
|
|
28950
|
-
let t =
|
|
29081
|
+
let t = Kd(e);
|
|
28951
29082
|
if (!t) {
|
|
28952
29083
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
28953
29084
|
return;
|
|
28954
29085
|
}
|
|
28955
29086
|
T(null), C(t), t !== E && a(t);
|
|
28956
|
-
}, O = d ?
|
|
29087
|
+
}, O = d ? Kd(d) : null, k = E && O ? Jd(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
|
|
28957
29088
|
return /* @__PURE__ */ g("div", {
|
|
28958
29089
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
28959
29090
|
children: [
|
|
@@ -28981,7 +29112,7 @@ function qd({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
28981
29112
|
children: /* @__PURE__ */ g("div", {
|
|
28982
29113
|
className: "select-colorfield__panel",
|
|
28983
29114
|
children: [
|
|
28984
|
-
/* @__PURE__ */ h(
|
|
29115
|
+
/* @__PURE__ */ h(Qd, {
|
|
28985
29116
|
hex: E,
|
|
28986
29117
|
onPick: D
|
|
28987
29118
|
}),
|
|
@@ -28990,7 +29121,7 @@ function qd({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
28990
29121
|
role: "group",
|
|
28991
29122
|
"aria-label": "Cores prontas",
|
|
28992
29123
|
children: c.map((e) => {
|
|
28993
|
-
let t =
|
|
29124
|
+
let t = Kd(e) ?? e, n = t === E;
|
|
28994
29125
|
return /* @__PURE__ */ h("button", {
|
|
28995
29126
|
type: "button",
|
|
28996
29127
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -29021,7 +29152,7 @@ function qd({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
29021
29152
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
29022
29153
|
value: S,
|
|
29023
29154
|
onChange: (e) => {
|
|
29024
|
-
C(e.target.value), e.target.value.replace("#", "").length === 6 &&
|
|
29155
|
+
C(e.target.value), e.target.value.replace("#", "").length === 6 && Kd(e.target.value) && D(e.target.value);
|
|
29025
29156
|
},
|
|
29026
29157
|
onBlur: () => D(S),
|
|
29027
29158
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -29044,14 +29175,14 @@ function qd({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
29044
29175
|
}) : null : /* @__PURE__ */ g("p", {
|
|
29045
29176
|
id: `${y}-hint`,
|
|
29046
29177
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
29047
|
-
children: [k >= 4.5 ? `Contraste com ${p}: ${
|
|
29178
|
+
children: [k >= 4.5 ? `Contraste com ${p}: ${$d(k)}:1 — legível.` : `Contraste com ${p}: ${$d(k)}:1 — difícil de ler. Escolha uma cor ${qd(E) < qd(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ g(m, { children: [" ", n] }) : null]
|
|
29048
29179
|
})
|
|
29049
29180
|
]
|
|
29050
29181
|
});
|
|
29051
29182
|
}
|
|
29052
29183
|
//#endregion
|
|
29053
29184
|
//#region src/SelectProgressBar.tsx
|
|
29054
|
-
var
|
|
29185
|
+
var tf = 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) {
|
|
29055
29186
|
if (l) return /* @__PURE__ */ g("div", {
|
|
29056
29187
|
ref: f,
|
|
29057
29188
|
...d,
|
|
@@ -29096,7 +29227,7 @@ var Jd = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
29096
29227
|
})
|
|
29097
29228
|
]
|
|
29098
29229
|
});
|
|
29099
|
-
}),
|
|
29230
|
+
}), nf = r(function({ icon: e, media: t, accent: n, title: r, description: i, badge: a, meta: o, cta: s, to: c, onClick: l, selected: u, disabled: d = !1, className: f, ...p }, _) {
|
|
29100
29231
|
let y = `select-choicecard${u ? " is-selected" : ""}${d ? " is-disabled" : ""}${f ? " " + f : ""}`, b = n ? { "--select-choice-accent": n } : void 0, x = /* @__PURE__ */ g(m, { children: [
|
|
29101
29232
|
t == null ? /* @__PURE__ */ g("span", {
|
|
29102
29233
|
className: "select-choicecard__top",
|
|
@@ -29164,7 +29295,7 @@ var Jd = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
29164
29295
|
children: x
|
|
29165
29296
|
});
|
|
29166
29297
|
});
|
|
29167
|
-
function
|
|
29298
|
+
function rf({ badge: e = !0 }) {
|
|
29168
29299
|
return /* @__PURE__ */ g("div", {
|
|
29169
29300
|
className: "select-choicecard select-choicecard--skeleton",
|
|
29170
29301
|
"aria-hidden": "true",
|
|
@@ -29185,7 +29316,7 @@ function Xd({ badge: e = !0 }) {
|
|
|
29185
29316
|
]
|
|
29186
29317
|
});
|
|
29187
29318
|
}
|
|
29188
|
-
var
|
|
29319
|
+
var af = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, listOnPhone: i = !1, className: a, style: o, ...s }, c) {
|
|
29189
29320
|
return /* @__PURE__ */ h("div", {
|
|
29190
29321
|
ref: c,
|
|
29191
29322
|
...s,
|
|
@@ -29195,16 +29326,16 @@ var Zd = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
29195
29326
|
"--select-choice-min": t,
|
|
29196
29327
|
...o
|
|
29197
29328
|
},
|
|
29198
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ h(
|
|
29329
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ h(rf, {}, t)) : e
|
|
29199
29330
|
});
|
|
29200
|
-
}),
|
|
29331
|
+
}), of = 960, sf = Math.round(of * 210 / 297), cf = 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: u, className: p }, _) {
|
|
29201
29332
|
let v = d(null), [y, b] = f(.5);
|
|
29202
29333
|
o(() => {
|
|
29203
29334
|
let e = v.current;
|
|
29204
29335
|
if (!e) return;
|
|
29205
29336
|
let t = () => {
|
|
29206
29337
|
let t = e.clientWidth;
|
|
29207
|
-
t > 0 && b(Math.min(1, t /
|
|
29338
|
+
t > 0 && b(Math.min(1, t / of));
|
|
29208
29339
|
};
|
|
29209
29340
|
if (t(), typeof ResizeObserver > "u") return;
|
|
29210
29341
|
let n = new ResizeObserver(t);
|
|
@@ -29212,7 +29343,7 @@ var Zd = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
29212
29343
|
}, []);
|
|
29213
29344
|
let x = e === "front", S = {
|
|
29214
29345
|
"--select-cert-accent": t || void 0,
|
|
29215
|
-
height:
|
|
29346
|
+
height: sf * y + 2
|
|
29216
29347
|
};
|
|
29217
29348
|
return /* @__PURE__ */ h("div", {
|
|
29218
29349
|
ref: (e) => {
|
|
@@ -29225,8 +29356,8 @@ var Zd = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
29225
29356
|
children: /* @__PURE__ */ h("div", {
|
|
29226
29357
|
className: "select-certpreview__sheet",
|
|
29227
29358
|
style: {
|
|
29228
|
-
width:
|
|
29229
|
-
height:
|
|
29359
|
+
width: of,
|
|
29360
|
+
height: sf,
|
|
29230
29361
|
transform: `scale(${y})`
|
|
29231
29362
|
},
|
|
29232
29363
|
children: /* @__PURE__ */ g("div", {
|
|
@@ -29299,13 +29430,13 @@ var Zd = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
29299
29430
|
});
|
|
29300
29431
|
//#endregion
|
|
29301
29432
|
//#region src/SelectImageField.tsx
|
|
29302
|
-
function
|
|
29433
|
+
function lf(e) {
|
|
29303
29434
|
return new Promise((t, n) => {
|
|
29304
29435
|
let r = new FileReader();
|
|
29305
29436
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
29306
29437
|
});
|
|
29307
29438
|
}
|
|
29308
|
-
var
|
|
29439
|
+
var uf = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
|
|
29309
29440
|
let [d, p] = f([]), [m, _] = f(null), v = t ? [t] : [], y = async (e) => {
|
|
29310
29441
|
let t = e[0];
|
|
29311
29442
|
if (!t) {
|
|
@@ -29313,7 +29444,7 @@ var nf = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
29313
29444
|
return;
|
|
29314
29445
|
}
|
|
29315
29446
|
if (_(null), !s) {
|
|
29316
|
-
n(await
|
|
29447
|
+
n(await lf(t)), p([]);
|
|
29317
29448
|
return;
|
|
29318
29449
|
}
|
|
29319
29450
|
p([t]);
|
|
@@ -29345,7 +29476,7 @@ var nf = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
29345
29476
|
children: m
|
|
29346
29477
|
})]
|
|
29347
29478
|
});
|
|
29348
|
-
}),
|
|
29479
|
+
}), df = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
29349
29480
|
let [o, s] = f(() => new Set(n)), c = (e) => s((n) => {
|
|
29350
29481
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
29351
29482
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -29391,6 +29522,6 @@ var nf = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
29391
29522
|
});
|
|
29392
29523
|
});
|
|
29393
29524
|
//#endregion
|
|
29394
|
-
export { w as AUTH_FX_VARIANTS, Ie as AppleIcon, _t as AppsIcon, q as ArrowLeftIcon, Re as ArrowRightIcon, Kt as ArrowUpRightIcon, We as AtIcon, Ne as AuthAppIcon, Tt as AwardIcon, qt as BagIcon, at as BankIcon, Se as BellIcon, Ct as BookIcon, fe as BookmarkIcon, ft as BroadcastIcon, Ke as BuildingIcon, nt as CalendarIcon, Ut as CameraIcon, yt as CartIcon, ht as ChartLineIcon, Mt as ChatIcon, Ue as CheckCircleIcon, Be as CheckIcon, K as ChevronDownIcon, G as ChevronLeftIcon, W as ChevronRightIcon, rt as ChevronUpIcon, ct as ClipboardIcon, de as ClockIcon, It as CloseCircleIcon, ce as CloseIcon, Y as CopyIcon, Qe as CreditCardIcon, Te as CubeIcon, Ht as DatabaseIcon, ut as DiscountIcon, Rt as DocumentTextIcon, le as DotsHorizontalIcon, $e as EditIcon, it as ExportIcon, se as ExternalLinkIcon, Ve as EyeIcon, He as EyeOffIcon, Fe as FacebookIcon, wt as FileDownloadIcon, J as FilterIcon, Pt as FlagIcon, Lt as FlashIcon, Xt as GiftIcon, ie as GithubIcon, ge as GlobeIcon, re as GoogleIcon, en as GripIcon, Zt as HeadsetIcon, ye as HelpIcon, Ye as HomeIcon, Wt as IdCardIcon, $t as ImageIcon, ve as InfoIcon, qe as KeyIcon, Vt as LampIcon, Jt as LayoutIcon, zt as LinceIcon, 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,
|
|
29525
|
+
export { w as AUTH_FX_VARIANTS, Ie as AppleIcon, _t as AppsIcon, q as ArrowLeftIcon, Re as ArrowRightIcon, Kt as ArrowUpRightIcon, We as AtIcon, Ne as AuthAppIcon, Tt as AwardIcon, qt as BagIcon, at as BankIcon, Se as BellIcon, Ct as BookIcon, fe as BookmarkIcon, ft as BroadcastIcon, Ke as BuildingIcon, nt as CalendarIcon, Ut as CameraIcon, yt as CartIcon, ht as ChartLineIcon, Mt as ChatIcon, Ue as CheckCircleIcon, Be as CheckIcon, K as ChevronDownIcon, G as ChevronLeftIcon, W as ChevronRightIcon, rt as ChevronUpIcon, ct as ClipboardIcon, de as ClockIcon, It as CloseCircleIcon, ce as CloseIcon, Y as CopyIcon, Qe as CreditCardIcon, Te as CubeIcon, Ht as DatabaseIcon, ut as DiscountIcon, Rt as DocumentTextIcon, le as DotsHorizontalIcon, $e as EditIcon, it as ExportIcon, se as ExternalLinkIcon, Ve as EyeIcon, He as EyeOffIcon, Fe as FacebookIcon, wt as FileDownloadIcon, J as FilterIcon, Pt as FlagIcon, Lt as FlashIcon, Xt as GiftIcon, ie as GithubIcon, ge as GlobeIcon, re as GoogleIcon, en as GripIcon, Zt as HeadsetIcon, ye as HelpIcon, Ye as HomeIcon, Wt as IdCardIcon, $t as ImageIcon, ve as InfoIcon, qe as KeyIcon, Vt as LampIcon, Jt as LayoutIcon, zt as LinceIcon, 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, zl as SELECT_BR_UF_TILES, Br as SELECT_CARD_BRANDS, Wd as SELECT_COLOR_PRESETS, Ao as SELECT_COL_DATETIME, jo as SELECT_COL_ID, yr as SELECT_COUNTRIES, Dd as SELECT_DAILY_PRESETS, wd as SELECT_DATE_PRESETS, kr as SELECT_SPACE, $o as SELECT_TOKEN_PATTERN, Tr as SELECT_TRANSACTION_STATUS, ae as SearchIcon, df as SelectAccordion, lo as SelectActionCard, Dr as SelectActionList, Or as SelectActionMenu, Mn as SelectAddButton, Wo as SelectAddCard, Cn as SelectAlert, uo as SelectAppTile, Bc as SelectAssistant, H as SelectAuthFx, zi as SelectAvatar, Yi as SelectBackLink, wr as SelectBadge, mc as SelectBalanceCard, rr as SelectBankAccountField, ul as SelectBarChart, Lr as SelectBox, ru as SelectBoxPlot, aa as SelectBreadcrumb, Ld as SelectBuilderLayout, Rd as SelectBuilderWorkspace, Xl as SelectBullet, Ou as SelectBump, U as SelectButton, au as SelectCalendarHeatmap, nu as SelectCandlestick, ne as SelectCard, Go as SelectCardGrid, cf as SelectCertificatePreview, qc as SelectChartCard, xl as SelectChartLegend, Vc as SelectChatMessage, Hc as SelectChatTurn, Uc as SelectChatTyping, dn as SelectCheckbox, Hi as SelectChipInput, nf as SelectChoiceCard, rf as SelectChoiceCardSkeleton, af as SelectChoiceGrid, mu as SelectChord, Fu as SelectCirclePack, oo as SelectCodeBlock, co as SelectCollapsible, ef as SelectColorField, bl as SelectColumnChart, gl as SelectComboChart, $n as SelectCombobox, Oo as SelectConfirmModal, io as SelectCopyRow, so as SelectCopyableId, fo as SelectCreateTile, Uo as SelectDataTable, Js as SelectDateField, kd as SelectDatePicker, Pd as SelectDateRangeField, qu as SelectDetailList, Ju as SelectDetailRow, ss as SelectDeviceFrame, ti as SelectDisclosureButton, Ri as SelectDivider, xn as SelectDocumentField, _l as SelectDonut, C as SelectDotField, Zo as SelectDragHandle, Qo as SelectDragPreview, cu as SelectDumbbell, qo as SelectFactList, hc as SelectFeeBreakdown, un as SelectField, er as SelectFieldGrid, jn as SelectFileDropzone, wn as SelectFileTile, $s as SelectFilterBar, ro as SelectFilterChip, Bd as SelectFlowCanvas, Hd as SelectFlowLayout, Vd as SelectFlowNode, la as SelectFormLayout, ko as SelectFormModal, jl as SelectFunnel, Il as SelectGauge, uu as SelectGaugeBands, Cu as SelectGlobe, Pr as SelectGrid, Ll as SelectHeatmap, hu as SelectHexbin, ks as SelectHideMoneyToggle, ql as SelectHorizontalBar, yo as SelectHtmlFrame, Mu as SelectIcicle, va as SelectIcon, ei as SelectIconButton, ds as SelectIconPicker, El as SelectIconTile, Gi as SelectIdentityFooter, uf as SelectImageField, Bn as SelectImageGalleryField, Pn as SelectImageUploadField, Nn as SelectImageUrlsField, ud as SelectImageZoomModal, on as SelectInfoTip, Nr as SelectInline, Ic as SelectInsight, Lc as SelectInsightList, Rc as SelectInsightRow, wl as SelectJourney, Ni as SelectJsonViewer, go as SelectKanban, _o as SelectKanbanCard, Hu as SelectKbd, hd as SelectKeyValueEditor, gc as SelectKpiCard, sn as SelectLabelRow, Yo as SelectLayoutThumb, ml as SelectLineChart, Li as SelectLinkButton, od as SelectListCard, cd as SelectListLabel, sd as SelectListRow, ia as SelectLoader, xo as SelectMailList, So as SelectMailListItem, wo as SelectMailMessage, ls as SelectMailPreview, lu as SelectMarimekko, Ps as SelectMarkStack, fd as SelectMediaCell, Xa as SelectMenu, no as SelectMenuButton, to as SelectMenuDivider, eo as SelectMenuHeading, Qa as SelectMenuItem, $a as SelectMenuLink, cs as SelectMessageBubble, Os as SelectMetricDelta, kl as SelectMiniStats, Eo as SelectModal, Es as SelectMoney, _n as SelectMoneyField, Iu as SelectNetwork, ya as SelectNote, Fd as SelectNumberField, Kc as SelectNumberedItem, Gc as SelectNumberedList, As as SelectOfferPrice, pd as SelectOfflineModal, Ui as SelectOptionList, Wi as SelectOptionRow, Ki as SelectOtpInput, oa as SelectPage, Na as SelectPagination, Sa as SelectPanel, ku as SelectParallel, Tu as SelectPareto, ra as SelectPasswordStrength, Xr as SelectPaymentBrand, Al as SelectPaymentCard, xr as SelectPhoneField, Tl as SelectPips, ad as SelectPlanCard, ou as SelectPolarArea, Zn as SelectPopover, pc as SelectPreviewFrame, as as SelectPreviewStage, tf as SelectProgressBar, Bl as SelectProgressList, Du as SelectPyramid, eu as SelectRadar, Hl as SelectRadialBar, Sr as SelectRadioGroup, iu as SelectRangeBar, Ms as SelectRating, Ns as SelectRatingQuote, Ko as SelectRecordCard, Id as SelectRepeatingFieldArray, Zi as SelectResendButton, $i as SelectRetryStatus, Cl as SelectRing, Do as SelectRowActions, tu as SelectSankey, $l as SelectScatter, Aa as SelectSearchInput, Ru as SelectSearchMenu, Bu as SelectSearchMenuGroup, Vu as SelectSearchMenuOption, Ca as SelectSection, Cr as SelectSegmented, Vn as SelectSelect, Ts as SelectSensitiveValue, ba as SelectSettingList, xa as SelectSettingRow, Qu as SelectSetupGuide, $u as SelectSetupNext, Sl as SelectShareBar, ka as SelectSideNav, ga as SelectSkeleton, su as SelectSlope, Xo as SelectSortableItem, cl as SelectSparkline, ms as SelectSplitChain, Dl as SelectSpotlight, Mr as SelectStack, hl as SelectStackedArea, Er as SelectStatusBadge, Yu as SelectSteps, du as SelectStreamGraph, fu as SelectSunburst, tc as SelectSurface, ir as SelectSwitch, Ud as SelectSwitchField, Ha as SelectTable, Ja as SelectTableCell, Ya as SelectTableEmpty, Ga as SelectTableRow, wa as SelectTabs, ec as SelectTagSelect, Ol as SelectTaskCard, Rr as SelectText, fn as SelectTextarea, Gu as SelectThemeSwitcher, ld as SelectThumbnail, wu as SelectTicker, Rl as SelectTileMap, Ii as SelectTimeline, cc as SelectToastProvider, ar as SelectToggleList, sr as SelectTogglePanel, or as SelectToggleRow, is as SelectTokenTextarea, an as SelectTooltip, id as SelectTour, Nu as SelectTree, Ql as SelectTreemap, pn as SelectUnitInput, Wa as SelectUserCell, Cs as SelectValueVisibilityProvider, Pu as SelectVenn, pu as SelectViolin, Eu as SelectWaffle, Jl as SelectWaterfall, gu as SelectWordCloud, po as SelectWorkspaceSwitcher, dd as SelectZoomThumbnail, _e as SelectorIcon, et as SendIcon, ue as Setting4Icon, Xe as SettingsIcon, ze as ShieldIcon, Gt as ShieldTickIcon, Nt as SparkleIcon, he as SplitIcon, me as StarIcon, gt as StoreIcon, xt as StorefrontIcon, Ee as SunIcon, Yt as TargetIcon, Ce as TerminalIcon, dt as TicketDiscountIcon, Je as TrashIcon, Bt as TrendUpIcon, pt as TruckIcon, oe as UploadIcon, xe as UserIcon, Et as UsersIcon, Ze as WalletIcon, be as WarningIcon, Ge as Web3Icon, Qt as WhatsAppIcon, Bi as avatarInitials, Jd as contrastRatio, Yn as detectSelectTheme, br as dialCodeOf, Cc as formatInsightImpact, Xi as formatResendWait, In as galleryItemFromFile, Ln as galleryItemFromUrl, Xd as hexToHsv, Zd as hsvToHex, bo as mailName, Kd as normalizeHex, na as passwordScore, ao as prettyCode, rs as readTokenText, Wu as resolveSelectTheme, Ur as selectCardBrand, Wr as selectCardBrandLabel, Vo as useSelectPageSize, lc as useSelectToast, ws as useSelectValueVisibility };
|
|
29395
29526
|
|
|
29396
29527
|
//# sourceMappingURL=index.js.map
|