@selectwin/kit 0.1.145 → 0.1.147
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/SelectCalendar.d.ts +54 -0
- package/dist/SelectHtmlFrame.d.ts +14 -0
- package/dist/SelectMail.d.ts +45 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1159 -587
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7714,9 +7714,581 @@ 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/SelectCalendar.tsx
|
|
7718
|
+
var vo = "America/Sao_Paulo", yo = 864e5, bo = 3, xo = 3, So = [
|
|
7719
|
+
"dom",
|
|
7720
|
+
"seg",
|
|
7721
|
+
"ter",
|
|
7722
|
+
"qua",
|
|
7723
|
+
"qui",
|
|
7724
|
+
"sex",
|
|
7725
|
+
"sáb"
|
|
7726
|
+
], Co = [
|
|
7727
|
+
"janeiro",
|
|
7728
|
+
"fevereiro",
|
|
7729
|
+
"março",
|
|
7730
|
+
"abril",
|
|
7731
|
+
"maio",
|
|
7732
|
+
"junho",
|
|
7733
|
+
"julho",
|
|
7734
|
+
"agosto",
|
|
7735
|
+
"setembro",
|
|
7736
|
+
"outubro",
|
|
7737
|
+
"novembro",
|
|
7738
|
+
"dezembro"
|
|
7739
|
+
], wo = [
|
|
7740
|
+
"jan.",
|
|
7741
|
+
"fev.",
|
|
7742
|
+
"mar.",
|
|
7743
|
+
"abr.",
|
|
7744
|
+
"mai.",
|
|
7745
|
+
"jun.",
|
|
7746
|
+
"jul.",
|
|
7747
|
+
"ago.",
|
|
7748
|
+
"set.",
|
|
7749
|
+
"out.",
|
|
7750
|
+
"nov.",
|
|
7751
|
+
"dez."
|
|
7752
|
+
], To = (e) => String(e).padStart(2, "0"), Eo = (e, t, n) => {
|
|
7753
|
+
let r = new Date(Date.UTC(e, t - 1, n));
|
|
7754
|
+
return `${r.getUTCFullYear()}-${To(r.getUTCMonth() + 1)}-${To(r.getUTCDate())}`;
|
|
7755
|
+
}, Do = (e) => {
|
|
7756
|
+
let [t, n, r] = e.split("-").map(Number);
|
|
7757
|
+
return [
|
|
7758
|
+
t ?? 1970,
|
|
7759
|
+
n ?? 1,
|
|
7760
|
+
r ?? 1
|
|
7761
|
+
];
|
|
7762
|
+
}, Oo = (e, t) => {
|
|
7763
|
+
let [n, r, i] = Do(e);
|
|
7764
|
+
return Eo(n, r, i + t);
|
|
7765
|
+
}, ko = (e) => {
|
|
7766
|
+
let [t, n, r] = Do(e);
|
|
7767
|
+
return new Date(Date.UTC(t, n - 1, r)).getUTCDay();
|
|
7768
|
+
}, Ao = (e, t) => Oo(e, -((ko(e) - t + 7) % 7)), jo = (e, t) => {
|
|
7769
|
+
let [n, r, i] = Do(e), [a, o, s] = Do(t);
|
|
7770
|
+
return Math.round((Date.UTC(a, o - 1, s) - Date.UTC(n, r - 1, i)) / yo);
|
|
7771
|
+
}, Mo = /* @__PURE__ */ new Map();
|
|
7772
|
+
function No(e, t) {
|
|
7773
|
+
let n = Mo.get(t);
|
|
7774
|
+
n || (n = new Intl.DateTimeFormat("en-CA", {
|
|
7775
|
+
timeZone: t,
|
|
7776
|
+
year: "numeric",
|
|
7777
|
+
month: "2-digit",
|
|
7778
|
+
day: "2-digit",
|
|
7779
|
+
hour: "2-digit",
|
|
7780
|
+
minute: "2-digit",
|
|
7781
|
+
hourCycle: "h23"
|
|
7782
|
+
}), Mo.set(t, n));
|
|
7783
|
+
let r = {};
|
|
7784
|
+
for (let t of n.formatToParts(e)) r[t.type] = t.value;
|
|
7785
|
+
return {
|
|
7786
|
+
key: `${r.year}-${r.month}-${r.day}`,
|
|
7787
|
+
minutes: Number(r.hour) * 60 + Number(r.minute)
|
|
7788
|
+
};
|
|
7789
|
+
}
|
|
7790
|
+
function Po(e, t) {
|
|
7791
|
+
let [n, r, i] = Do(e), a = Date.UTC(n, r - 1, i), o = (e) => {
|
|
7792
|
+
let n = No(new Date(e), t), [r, i, a] = Do(n.key);
|
|
7793
|
+
return Date.UTC(r, i - 1, a) + n.minutes * 6e4 - e;
|
|
7794
|
+
}, s = a - o(a);
|
|
7795
|
+
return new Date(a - o(s));
|
|
7796
|
+
}
|
|
7797
|
+
function Fo(e = vo) {
|
|
7798
|
+
return No(/* @__PURE__ */ new Date(), e).key;
|
|
7799
|
+
}
|
|
7800
|
+
function Io(e, t, n) {
|
|
7801
|
+
if (e === "week") {
|
|
7802
|
+
let e = Ao(t, n);
|
|
7803
|
+
return Array.from({ length: 7 }, (t, n) => Oo(e, n));
|
|
7804
|
+
}
|
|
7805
|
+
let [r, i] = Do(t), a = Ao(Eo(r, i, 1), n), o = jo(a, Ao(Eo(r, i + 1, 0), n)) + 7;
|
|
7806
|
+
return Array.from({ length: o }, (e, t) => Oo(a, t));
|
|
7807
|
+
}
|
|
7808
|
+
function Lo(e, t, n = {}) {
|
|
7809
|
+
let r = n.timeZone ?? vo, i = Io(e, t, n.weekStartsOn ?? 0);
|
|
7810
|
+
return {
|
|
7811
|
+
from: Po(i[0], r).toISOString(),
|
|
7812
|
+
to: Po(Oo(i[i.length - 1], 1), r).toISOString(),
|
|
7813
|
+
days: i
|
|
7814
|
+
};
|
|
7815
|
+
}
|
|
7816
|
+
var Ro = (e) => typeof e == "string" ? e.slice(0, 10) : e.toISOString().slice(0, 10), zo = (e) => `${To(Math.floor(e / 60))}:${To(e % 60)}`;
|
|
7817
|
+
function Bo(e, t) {
|
|
7818
|
+
let n = /* @__PURE__ */ new Map(), r = (e) => {
|
|
7819
|
+
let t = n.get(e.day);
|
|
7820
|
+
t ? t.push(e) : n.set(e.day, [e]);
|
|
7821
|
+
};
|
|
7822
|
+
for (let n of e) {
|
|
7823
|
+
if (n.allDay) {
|
|
7824
|
+
let e = Ro(n.start), t = Math.max(1, Math.min(62, jo(e, Ro(n.end))));
|
|
7825
|
+
for (let i = 0; i < t; i++) r({
|
|
7826
|
+
event: n,
|
|
7827
|
+
day: Oo(e, i),
|
|
7828
|
+
allDay: !0,
|
|
7829
|
+
from: 0,
|
|
7830
|
+
to: 1440,
|
|
7831
|
+
label: "Dia inteiro"
|
|
7832
|
+
});
|
|
7833
|
+
continue;
|
|
7834
|
+
}
|
|
7835
|
+
let e = No(new Date(n.start), t), i = No(new Date(n.end), t);
|
|
7836
|
+
i.minutes === 0 && i.key !== e.key && (i = {
|
|
7837
|
+
key: Oo(i.key, -1),
|
|
7838
|
+
minutes: 1440
|
|
7839
|
+
});
|
|
7840
|
+
let a = e.key === i.key ? `${zo(e.minutes)} – ${zo(i.minutes)}` : `${zo(e.minutes)}`, o = Math.max(0, Math.min(62, jo(e.key, i.key)));
|
|
7841
|
+
for (let t = 0; t <= o; t++) r({
|
|
7842
|
+
event: n,
|
|
7843
|
+
day: Oo(e.key, t),
|
|
7844
|
+
allDay: !1,
|
|
7845
|
+
from: t === 0 ? e.minutes : 0,
|
|
7846
|
+
to: t === o ? Math.max(i.minutes, t === 0 ? e.minutes : 0) : 1440,
|
|
7847
|
+
label: a
|
|
7848
|
+
});
|
|
7849
|
+
}
|
|
7850
|
+
for (let e of n.values()) e.sort((e, t) => Number(t.allDay) - Number(e.allDay) || e.from - t.from || t.to - e.to);
|
|
7851
|
+
return n;
|
|
7852
|
+
}
|
|
7853
|
+
function Vo(e) {
|
|
7854
|
+
let t = e.filter((e) => !e.allDay), n = [], r = [], i = -1, a = () => {
|
|
7855
|
+
let e = r.reduce((e, t) => Math.max(e, t.col + 1), 1);
|
|
7856
|
+
for (let t of r) n.push({
|
|
7857
|
+
...t,
|
|
7858
|
+
cols: e
|
|
7859
|
+
});
|
|
7860
|
+
r = [];
|
|
7861
|
+
};
|
|
7862
|
+
for (let e of t) {
|
|
7863
|
+
let t = Math.max(e.to, e.from + 20);
|
|
7864
|
+
r.length && e.from >= i && a();
|
|
7865
|
+
let n = new Set(r.filter((t) => Math.max(t.piece.to, t.piece.from + 20) > e.from).map((e) => e.col)), o = 0;
|
|
7866
|
+
for (; n.has(o);) o++;
|
|
7867
|
+
r.push({
|
|
7868
|
+
piece: e,
|
|
7869
|
+
col: o
|
|
7870
|
+
}), i = Math.max(i, t);
|
|
7871
|
+
}
|
|
7872
|
+
return r.length && a(), n;
|
|
7873
|
+
}
|
|
7874
|
+
var Ho = (e) => e.color ? { "--select-cal-color": e.color } : void 0, Uo = (e) => e.status === "cancelled" ? " is-cancelled" : e.status === "tentative" ? " is-tentative" : "", Wo = (e) => `${e.event.title}, ${e.label}${e.event.status === "cancelled" ? ", cancelada" : e.event.status === "tentative" ? ", talvez" : ""}`;
|
|
7875
|
+
function Go({ event: e }) {
|
|
7876
|
+
return e.status === "tentative" ? /* @__PURE__ */ h("span", {
|
|
7877
|
+
className: "select-calendar__maybe",
|
|
7878
|
+
children: "talvez"
|
|
7879
|
+
}) : null;
|
|
7880
|
+
}
|
|
7881
|
+
function Ko({ piece: e, onClick: t }) {
|
|
7882
|
+
let n = e.event;
|
|
7883
|
+
return /* @__PURE__ */ g(t ? "button" : "div", {
|
|
7884
|
+
...t ? {
|
|
7885
|
+
type: "button",
|
|
7886
|
+
onClick: () => t(n.id)
|
|
7887
|
+
} : {},
|
|
7888
|
+
className: `select-calendar__chip${e.allDay ? " select-calendar__chip--allday" : ""}${Uo(n)}`,
|
|
7889
|
+
style: Ho(n),
|
|
7890
|
+
"aria-label": Wo(e),
|
|
7891
|
+
title: Wo(e),
|
|
7892
|
+
children: [
|
|
7893
|
+
e.allDay ? null : /* @__PURE__ */ h("span", {
|
|
7894
|
+
className: "select-calendar__chiptime",
|
|
7895
|
+
children: zo(e.from)
|
|
7896
|
+
}),
|
|
7897
|
+
/* @__PURE__ */ h("span", {
|
|
7898
|
+
className: "select-calendar__chiptitle",
|
|
7899
|
+
children: n.title
|
|
7900
|
+
}),
|
|
7901
|
+
/* @__PURE__ */ h(Go, { event: n })
|
|
7902
|
+
]
|
|
7903
|
+
});
|
|
7904
|
+
}
|
|
7905
|
+
function qo({ n: e }) {
|
|
7906
|
+
return /* @__PURE__ */ g(m, { children: [`+${e}`, /* @__PURE__ */ h("span", {
|
|
7907
|
+
className: "select-calendar__moreword",
|
|
7908
|
+
children: ` ${e === 1 ? "outro" : "outros"}`
|
|
7909
|
+
})] });
|
|
7910
|
+
}
|
|
7911
|
+
function Jo(e, t, n) {
|
|
7912
|
+
if (e === "month") {
|
|
7913
|
+
let [e, n] = Do(t);
|
|
7914
|
+
return `${Co[n - 1]} de ${e}`;
|
|
7915
|
+
}
|
|
7916
|
+
let [r, i, a] = Do(n[0]), [o, s, c] = Do(n[n.length - 1]);
|
|
7917
|
+
return r === o && i === s ? `${a} – ${c} de ${Co[i - 1]} de ${o}` : r === o ? `${a} de ${wo[i - 1]} – ${c} de ${wo[s - 1]} de ${o}` : `${a} de ${wo[i - 1]} de ${r} – ${c} de ${wo[s - 1]} de ${o}`;
|
|
7918
|
+
}
|
|
7919
|
+
function Yo({ view: e, date: t, events: n, onViewChange: r, onDateChange: i, onEventClick: a, onDayClick: o, timeZone: s = vo, weekStartsOn: c = 0, actions: l, loading: d = !1, scrollToHour: f = 8, className: p }) {
|
|
7920
|
+
let _ = u(() => Io(e, t, c), [
|
|
7921
|
+
e,
|
|
7922
|
+
t,
|
|
7923
|
+
c
|
|
7924
|
+
]), v = u(() => Bo(n, s), [n, s]), y = Fo(s), [, b] = Do(t), x = (n) => {
|
|
7925
|
+
if (i) {
|
|
7926
|
+
if (e === "week") i(Oo(t, 7 * n));
|
|
7927
|
+
else {
|
|
7928
|
+
let [e, r] = Do(t);
|
|
7929
|
+
i(Eo(e, r + n, 1));
|
|
7930
|
+
}
|
|
7931
|
+
}
|
|
7932
|
+
};
|
|
7933
|
+
return /* @__PURE__ */ g("div", {
|
|
7934
|
+
className: `select-calendar${d ? " is-loading" : ""}${p ? " " + p : ""}`,
|
|
7935
|
+
"aria-busy": d || void 0,
|
|
7936
|
+
children: [/* @__PURE__ */ g("div", {
|
|
7937
|
+
className: "select-calendar__bar",
|
|
7938
|
+
children: [/* @__PURE__ */ g("div", {
|
|
7939
|
+
className: "select-calendar__nav",
|
|
7940
|
+
children: [i ? /* @__PURE__ */ g(m, { children: [
|
|
7941
|
+
/* @__PURE__ */ h(ei, {
|
|
7942
|
+
icon: /* @__PURE__ */ h(G, {}),
|
|
7943
|
+
label: e === "week" ? "Semana anterior" : "Mês anterior",
|
|
7944
|
+
variant: "outline",
|
|
7945
|
+
size: "sm",
|
|
7946
|
+
onClick: () => x(-1)
|
|
7947
|
+
}),
|
|
7948
|
+
/* @__PURE__ */ h(ei, {
|
|
7949
|
+
icon: /* @__PURE__ */ h(W, {}),
|
|
7950
|
+
label: e === "week" ? "Próxima semana" : "Próximo mês",
|
|
7951
|
+
variant: "outline",
|
|
7952
|
+
size: "sm",
|
|
7953
|
+
onClick: () => x(1)
|
|
7954
|
+
}),
|
|
7955
|
+
/* @__PURE__ */ h(U, {
|
|
7956
|
+
variant: "secondary",
|
|
7957
|
+
size: "sm",
|
|
7958
|
+
inline: !0,
|
|
7959
|
+
onClick: () => i(y),
|
|
7960
|
+
children: "Hoje"
|
|
7961
|
+
})
|
|
7962
|
+
] }) : null, /* @__PURE__ */ h("h3", {
|
|
7963
|
+
className: "select-calendar__title",
|
|
7964
|
+
"aria-live": "polite",
|
|
7965
|
+
children: Jo(e, t, _)
|
|
7966
|
+
})]
|
|
7967
|
+
}), /* @__PURE__ */ g("div", {
|
|
7968
|
+
className: "select-calendar__tools",
|
|
7969
|
+
children: [l, r ? /* @__PURE__ */ h(Cr, {
|
|
7970
|
+
value: e,
|
|
7971
|
+
onChange: (e) => r(e),
|
|
7972
|
+
options: [{
|
|
7973
|
+
value: "month",
|
|
7974
|
+
label: "Mês"
|
|
7975
|
+
}, {
|
|
7976
|
+
value: "week",
|
|
7977
|
+
label: "Semana"
|
|
7978
|
+
}],
|
|
7979
|
+
ariaLabel: "Vista da agenda"
|
|
7980
|
+
}) : null]
|
|
7981
|
+
})]
|
|
7982
|
+
}), e === "month" ? /* @__PURE__ */ h(Xo, {
|
|
7983
|
+
days: _,
|
|
7984
|
+
month: b,
|
|
7985
|
+
today: y,
|
|
7986
|
+
pieces: v,
|
|
7987
|
+
onEventClick: a,
|
|
7988
|
+
onDayClick: o
|
|
7989
|
+
}) : /* @__PURE__ */ h(Zo, {
|
|
7990
|
+
days: _,
|
|
7991
|
+
today: y,
|
|
7992
|
+
pieces: v,
|
|
7993
|
+
timeZone: s,
|
|
7994
|
+
onEventClick: a,
|
|
7995
|
+
scrollToHour: f
|
|
7996
|
+
})]
|
|
7997
|
+
});
|
|
7998
|
+
}
|
|
7999
|
+
function Xo({ days: e, month: t, today: n, pieces: r, onEventClick: i, onDayClick: a }) {
|
|
8000
|
+
return /* @__PURE__ */ g("div", {
|
|
8001
|
+
className: "select-calendar__month",
|
|
8002
|
+
children: [/* @__PURE__ */ h("div", {
|
|
8003
|
+
className: "select-calendar__dows",
|
|
8004
|
+
"aria-hidden": "true",
|
|
8005
|
+
children: e.slice(0, 7).map((e) => /* @__PURE__ */ h("span", {
|
|
8006
|
+
className: "select-calendar__dow",
|
|
8007
|
+
children: So[ko(e)]
|
|
8008
|
+
}, e))
|
|
8009
|
+
}), /* @__PURE__ */ h("div", {
|
|
8010
|
+
className: "select-calendar__cells",
|
|
8011
|
+
role: "list",
|
|
8012
|
+
children: e.map((e) => {
|
|
8013
|
+
let o = r.get(e) ?? [], s = o.length > bo ? o.slice(0, 2) : o, c = o.length - s.length, [, l, u] = Do(e), d = `${u} de ${Co[l - 1]}${o.length ? `, ${o.length} ${o.length === 1 ? "evento" : "eventos"}` : ""}`;
|
|
8014
|
+
return /* @__PURE__ */ g("div", {
|
|
8015
|
+
role: "listitem",
|
|
8016
|
+
"aria-label": d,
|
|
8017
|
+
className: `select-calendar__cell${l === t ? "" : " select-calendar__cell--out"}${e === n ? " select-calendar__cell--today" : ""}`,
|
|
8018
|
+
children: [a ? /* @__PURE__ */ h("button", {
|
|
8019
|
+
type: "button",
|
|
8020
|
+
className: "select-calendar__daynum",
|
|
8021
|
+
onClick: () => a(e),
|
|
8022
|
+
"aria-label": `Ver a semana de ${u} de ${Co[l - 1]}`,
|
|
8023
|
+
children: u
|
|
8024
|
+
}) : /* @__PURE__ */ h("span", {
|
|
8025
|
+
className: "select-calendar__daynum",
|
|
8026
|
+
children: u
|
|
8027
|
+
}), /* @__PURE__ */ g("div", {
|
|
8028
|
+
className: "select-calendar__dayevents",
|
|
8029
|
+
children: [s.map((t) => /* @__PURE__ */ h(Ko, {
|
|
8030
|
+
piece: t,
|
|
8031
|
+
onClick: i
|
|
8032
|
+
}, `${t.event.id}:${e}`)), c > 0 ? a ? /* @__PURE__ */ h("button", {
|
|
8033
|
+
type: "button",
|
|
8034
|
+
className: "select-calendar__more",
|
|
8035
|
+
onClick: () => a(e),
|
|
8036
|
+
"aria-label": `Mais ${c} em ${u} de ${Co[l - 1]}`,
|
|
8037
|
+
children: /* @__PURE__ */ h(qo, { n: c })
|
|
8038
|
+
}) : /* @__PURE__ */ h("span", {
|
|
8039
|
+
className: "select-calendar__more",
|
|
8040
|
+
children: /* @__PURE__ */ h(qo, { n: c })
|
|
8041
|
+
}) : null]
|
|
8042
|
+
})]
|
|
8043
|
+
}, e);
|
|
8044
|
+
})
|
|
8045
|
+
})]
|
|
8046
|
+
});
|
|
8047
|
+
}
|
|
8048
|
+
function Zo({ days: e, today: t, pieces: n, timeZone: r, onEventClick: i, scrollToHour: a }) {
|
|
8049
|
+
let s = d(null), [c, l] = f(() => No(/* @__PURE__ */ new Date(), r).minutes);
|
|
8050
|
+
o(() => {
|
|
8051
|
+
let e = s.current;
|
|
8052
|
+
if (!e) return;
|
|
8053
|
+
let t = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
8054
|
+
e.scrollTop = Math.max(0, a * xo * t - t);
|
|
8055
|
+
}, [a]), o(() => {
|
|
8056
|
+
let e = setInterval(() => l(No(/* @__PURE__ */ new Date(), r).minutes), 6e4);
|
|
8057
|
+
return () => clearInterval(e);
|
|
8058
|
+
}, [r]);
|
|
8059
|
+
let u = e.some((e) => (n.get(e) ?? []).some((e) => e.allDay));
|
|
8060
|
+
return /* @__PURE__ */ g("div", {
|
|
8061
|
+
className: "select-calendar__week",
|
|
8062
|
+
children: [
|
|
8063
|
+
/* @__PURE__ */ g("div", {
|
|
8064
|
+
className: "select-calendar__weekhead",
|
|
8065
|
+
children: [/* @__PURE__ */ h("span", {
|
|
8066
|
+
className: "select-calendar__gutter",
|
|
8067
|
+
"aria-hidden": "true"
|
|
8068
|
+
}), e.map((e) => {
|
|
8069
|
+
let [, , n] = Do(e);
|
|
8070
|
+
return /* @__PURE__ */ g("span", {
|
|
8071
|
+
className: `select-calendar__weekday${e === t ? " select-calendar__weekday--today" : ""}`,
|
|
8072
|
+
children: [/* @__PURE__ */ h("span", {
|
|
8073
|
+
className: "select-calendar__weekdow",
|
|
8074
|
+
children: So[ko(e)]
|
|
8075
|
+
}), /* @__PURE__ */ h("span", {
|
|
8076
|
+
className: "select-calendar__weeknum",
|
|
8077
|
+
children: n
|
|
8078
|
+
})]
|
|
8079
|
+
}, e);
|
|
8080
|
+
})]
|
|
8081
|
+
}),
|
|
8082
|
+
u ? /* @__PURE__ */ g("div", {
|
|
8083
|
+
className: "select-calendar__alldayrow",
|
|
8084
|
+
children: [/* @__PURE__ */ h("span", {
|
|
8085
|
+
className: "select-calendar__gutter select-calendar__gutter--label",
|
|
8086
|
+
children: "dia inteiro"
|
|
8087
|
+
}), e.map((e) => /* @__PURE__ */ h("div", {
|
|
8088
|
+
className: "select-calendar__allday",
|
|
8089
|
+
children: (n.get(e) ?? []).filter((e) => e.allDay).map((e) => /* @__PURE__ */ h(Ko, {
|
|
8090
|
+
piece: e,
|
|
8091
|
+
onClick: i
|
|
8092
|
+
}, e.event.id))
|
|
8093
|
+
}, e))]
|
|
8094
|
+
}) : null,
|
|
8095
|
+
/* @__PURE__ */ h("div", {
|
|
8096
|
+
className: "select-calendar__scroll",
|
|
8097
|
+
ref: s,
|
|
8098
|
+
children: /* @__PURE__ */ g("div", {
|
|
8099
|
+
className: "select-calendar__timegrid",
|
|
8100
|
+
style: { height: "72rem" },
|
|
8101
|
+
children: [/* @__PURE__ */ h("div", {
|
|
8102
|
+
className: "select-calendar__gutter",
|
|
8103
|
+
"aria-hidden": "true",
|
|
8104
|
+
children: Array.from({ length: 24 }, (e, t) => /* @__PURE__ */ h("span", {
|
|
8105
|
+
className: "select-calendar__hour",
|
|
8106
|
+
style: { top: `${t * xo}rem` },
|
|
8107
|
+
children: t === 0 ? "" : `${To(t)}:00`
|
|
8108
|
+
}, t))
|
|
8109
|
+
}), e.map((e) => /* @__PURE__ */ g("div", {
|
|
8110
|
+
className: `select-calendar__col${e === t ? " select-calendar__col--today" : ""}`,
|
|
8111
|
+
children: [Vo(n.get(e) ?? []).map(({ piece: e, col: t, cols: n }) => {
|
|
8112
|
+
let r = e.event, a = Math.max(e.to - e.from, 20), o = {
|
|
8113
|
+
...Ho(r),
|
|
8114
|
+
top: `${e.from / 60 * xo}rem`,
|
|
8115
|
+
height: `${a / 60 * xo}rem`,
|
|
8116
|
+
left: `calc(${t / n * 100}% + 2px)`,
|
|
8117
|
+
width: `calc(${100 / n}% - 4px)`
|
|
8118
|
+
};
|
|
8119
|
+
return /* @__PURE__ */ g(i ? "button" : "div", {
|
|
8120
|
+
...i ? {
|
|
8121
|
+
type: "button",
|
|
8122
|
+
onClick: () => i(r.id)
|
|
8123
|
+
} : {},
|
|
8124
|
+
className: `select-calendar__block${a < 45 ? " select-calendar__block--short" : ""}${Uo(r)}`,
|
|
8125
|
+
style: o,
|
|
8126
|
+
"aria-label": Wo(e),
|
|
8127
|
+
title: Wo(e),
|
|
8128
|
+
children: [
|
|
8129
|
+
/* @__PURE__ */ g("span", {
|
|
8130
|
+
className: "select-calendar__blocktitle",
|
|
8131
|
+
children: [/* @__PURE__ */ h("span", {
|
|
8132
|
+
className: "select-calendar__blockname",
|
|
8133
|
+
children: r.title
|
|
8134
|
+
}), /* @__PURE__ */ h(Go, { event: r })]
|
|
8135
|
+
}),
|
|
8136
|
+
/* @__PURE__ */ h("span", {
|
|
8137
|
+
className: "select-calendar__blocktime",
|
|
8138
|
+
children: e.label
|
|
8139
|
+
}),
|
|
8140
|
+
r.detail && a >= 60 ? /* @__PURE__ */ h("span", {
|
|
8141
|
+
className: "select-calendar__blockdetail",
|
|
8142
|
+
children: r.detail
|
|
8143
|
+
}) : null
|
|
8144
|
+
]
|
|
8145
|
+
}, r.id);
|
|
8146
|
+
}), e === t ? /* @__PURE__ */ h("span", {
|
|
8147
|
+
className: "select-calendar__now",
|
|
8148
|
+
style: { top: `${c / 60 * xo}rem` },
|
|
8149
|
+
"aria-hidden": "true"
|
|
8150
|
+
}) : null]
|
|
8151
|
+
}, e))]
|
|
8152
|
+
})
|
|
8153
|
+
})
|
|
8154
|
+
]
|
|
8155
|
+
});
|
|
8156
|
+
}
|
|
8157
|
+
//#endregion
|
|
8158
|
+
//#region src/SelectHtmlFrame.tsx
|
|
8159
|
+
function Qo(e) {
|
|
8160
|
+
let t = e.trim();
|
|
8161
|
+
if (t.startsWith("/") && !t.startsWith("//") && !t.startsWith("/\\")) return !0;
|
|
8162
|
+
try {
|
|
8163
|
+
return new URL(t).protocol === "https:";
|
|
8164
|
+
} catch {
|
|
8165
|
+
return !1;
|
|
8166
|
+
}
|
|
8167
|
+
}
|
|
8168
|
+
function $o({ src: e, title: t, height: n = "28rem", allowLinks: r = !1, className: i }) {
|
|
8169
|
+
let a = Qo(e);
|
|
8170
|
+
return /* @__PURE__ */ h("div", {
|
|
8171
|
+
className: `select-htmlframe${i ? " " + i : ""}`,
|
|
8172
|
+
children: a ? /* @__PURE__ */ h("iframe", {
|
|
8173
|
+
className: "select-htmlframe__frame",
|
|
8174
|
+
title: t,
|
|
8175
|
+
src: e,
|
|
8176
|
+
sandbox: r ? "allow-popups allow-popups-to-escape-sandbox" : "",
|
|
8177
|
+
referrerPolicy: "no-referrer",
|
|
8178
|
+
style: { height: n }
|
|
8179
|
+
}) : null
|
|
8180
|
+
});
|
|
8181
|
+
}
|
|
8182
|
+
//#endregion
|
|
8183
|
+
//#region src/SelectMail.tsx
|
|
8184
|
+
function es(e) {
|
|
8185
|
+
var t;
|
|
8186
|
+
return e ? ((t = e.name) == null ? void 0 : t.trim()) || e.address : "Remetente desconhecido";
|
|
8187
|
+
}
|
|
8188
|
+
function ts({ children: e, "aria-label": t }) {
|
|
8189
|
+
return /* @__PURE__ */ h("ul", {
|
|
8190
|
+
className: "select-maillist",
|
|
8191
|
+
"aria-label": t,
|
|
8192
|
+
children: e
|
|
8193
|
+
});
|
|
8194
|
+
}
|
|
8195
|
+
function ns({ from: e, subject: t, snippet: n, date: r, count: i, attachments: a, active: o = !1, onClick: s }) {
|
|
8196
|
+
return /* @__PURE__ */ h("li", {
|
|
8197
|
+
className: "select-maillist__item",
|
|
8198
|
+
children: /* @__PURE__ */ g("button", {
|
|
8199
|
+
type: "button",
|
|
8200
|
+
className: `select-maillist__row${o ? " is-active" : ""}`,
|
|
8201
|
+
"aria-current": o || void 0,
|
|
8202
|
+
onClick: s,
|
|
8203
|
+
children: [
|
|
8204
|
+
/* @__PURE__ */ g("span", {
|
|
8205
|
+
className: "select-maillist__line",
|
|
8206
|
+
children: [/* @__PURE__ */ h("span", {
|
|
8207
|
+
className: "select-maillist__from",
|
|
8208
|
+
children: e
|
|
8209
|
+
}), /* @__PURE__ */ h("span", {
|
|
8210
|
+
className: "select-maillist__date",
|
|
8211
|
+
children: r
|
|
8212
|
+
})]
|
|
8213
|
+
}),
|
|
8214
|
+
/* @__PURE__ */ g("span", {
|
|
8215
|
+
className: "select-maillist__line",
|
|
8216
|
+
children: [/* @__PURE__ */ h("span", {
|
|
8217
|
+
className: "select-maillist__subject",
|
|
8218
|
+
children: t
|
|
8219
|
+
}), i && i > 1 ? /* @__PURE__ */ h(wr, {
|
|
8220
|
+
size: "sm",
|
|
8221
|
+
tone: "neutral",
|
|
8222
|
+
children: i
|
|
8223
|
+
}) : null]
|
|
8224
|
+
}),
|
|
8225
|
+
n || a ? /* @__PURE__ */ g("span", {
|
|
8226
|
+
className: "select-maillist__line",
|
|
8227
|
+
children: [/* @__PURE__ */ h("span", {
|
|
8228
|
+
className: "select-maillist__snippet",
|
|
8229
|
+
children: n
|
|
8230
|
+
}), a ? /* @__PURE__ */ h("span", {
|
|
8231
|
+
className: "select-maillist__meta",
|
|
8232
|
+
children: a === 1 ? "1 anexo" : `${a} anexos`
|
|
8233
|
+
}) : null]
|
|
8234
|
+
}) : null
|
|
8235
|
+
]
|
|
8236
|
+
})
|
|
8237
|
+
});
|
|
8238
|
+
}
|
|
8239
|
+
var rs = (e) => (e ?? []).map(es).join(", ");
|
|
8240
|
+
function is({ from: e, to: t, cc: n, date: r, actions: i, notice: a, text: o, children: s, attachments: c }) {
|
|
8241
|
+
return /* @__PURE__ */ g("article", {
|
|
8242
|
+
className: "select-mailmsg",
|
|
8243
|
+
children: [
|
|
8244
|
+
/* @__PURE__ */ g("header", {
|
|
8245
|
+
className: "select-mailmsg__head",
|
|
8246
|
+
children: [/* @__PURE__ */ g("div", {
|
|
8247
|
+
className: "select-mailmsg__who",
|
|
8248
|
+
children: [
|
|
8249
|
+
/* @__PURE__ */ g("span", {
|
|
8250
|
+
className: "select-mailmsg__from",
|
|
8251
|
+
children: [es(e), e != null && e.name ? /* @__PURE__ */ h("span", {
|
|
8252
|
+
className: "select-mailmsg__address",
|
|
8253
|
+
children: `<${e.address}>`
|
|
8254
|
+
}) : null]
|
|
8255
|
+
}),
|
|
8256
|
+
t != null && t.length ? /* @__PURE__ */ h("span", {
|
|
8257
|
+
className: "select-mailmsg__to",
|
|
8258
|
+
children: `para ${rs(t)}`
|
|
8259
|
+
}) : null,
|
|
8260
|
+
n != null && n.length ? /* @__PURE__ */ h("span", {
|
|
8261
|
+
className: "select-mailmsg__to",
|
|
8262
|
+
children: `cópia ${rs(n)}`
|
|
8263
|
+
}) : null
|
|
8264
|
+
]
|
|
8265
|
+
}), /* @__PURE__ */ g("div", {
|
|
8266
|
+
className: "select-mailmsg__side",
|
|
8267
|
+
children: [/* @__PURE__ */ h("span", {
|
|
8268
|
+
className: "select-mailmsg__date",
|
|
8269
|
+
children: r
|
|
8270
|
+
}), i]
|
|
8271
|
+
})]
|
|
8272
|
+
}),
|
|
8273
|
+
a ? /* @__PURE__ */ h("div", {
|
|
8274
|
+
className: "select-mailmsg__notice",
|
|
8275
|
+
children: a
|
|
8276
|
+
}) : null,
|
|
8277
|
+
s ?? (o ? /* @__PURE__ */ h("div", {
|
|
8278
|
+
className: "select-mailmsg__text",
|
|
8279
|
+
children: o
|
|
8280
|
+
}) : null),
|
|
8281
|
+
c ? /* @__PURE__ */ h("div", {
|
|
8282
|
+
className: "select-mailmsg__attachments",
|
|
8283
|
+
children: c
|
|
8284
|
+
}) : null
|
|
8285
|
+
]
|
|
8286
|
+
});
|
|
8287
|
+
}
|
|
8288
|
+
//#endregion
|
|
7717
8289
|
//#region src/SelectModal.tsx
|
|
7718
|
-
var
|
|
7719
|
-
function
|
|
8290
|
+
var as = 220;
|
|
8291
|
+
function os({ 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
8292
|
let [x, S] = f(e), [C, w] = f(!1);
|
|
7721
8293
|
if (o(() => {
|
|
7722
8294
|
if (e) S(!0), w(!1);
|
|
@@ -7724,7 +8296,7 @@ function yo({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
7724
8296
|
w(!0);
|
|
7725
8297
|
let e = setTimeout(() => {
|
|
7726
8298
|
S(!1), w(!1);
|
|
7727
|
-
},
|
|
8299
|
+
}, as);
|
|
7728
8300
|
return () => clearTimeout(e);
|
|
7729
8301
|
}
|
|
7730
8302
|
}, [e, x]), o(() => {
|
|
@@ -7816,7 +8388,7 @@ function yo({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
7816
8388
|
}
|
|
7817
8389
|
//#endregion
|
|
7818
8390
|
//#region src/SelectRowActions.tsx
|
|
7819
|
-
function
|
|
8391
|
+
function ss({ actions: e, label: t = "Ações" }) {
|
|
7820
8392
|
let [n, r] = f(!1);
|
|
7821
8393
|
return /* @__PURE__ */ h(Zn, {
|
|
7822
8394
|
active: n,
|
|
@@ -7838,8 +8410,8 @@ function bo({ actions: e, label: t = "Ações" }) {
|
|
|
7838
8410
|
}
|
|
7839
8411
|
//#endregion
|
|
7840
8412
|
//#region src/SelectConfirmModal.tsx
|
|
7841
|
-
function
|
|
7842
|
-
return /* @__PURE__ */ h(
|
|
8413
|
+
function cs({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmLabel: a = "Confirmar", cancelLabel: o = "Cancelar", destructive: s = !1, loading: c = !1, theme: l }) {
|
|
8414
|
+
return /* @__PURE__ */ h(os, {
|
|
7843
8415
|
open: e,
|
|
7844
8416
|
onClose: t,
|
|
7845
8417
|
title: r,
|
|
@@ -7871,8 +8443,8 @@ function xo({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
7871
8443
|
}
|
|
7872
8444
|
//#endregion
|
|
7873
8445
|
//#region src/SelectFormModal.tsx
|
|
7874
|
-
function
|
|
7875
|
-
return /* @__PURE__ */ g(
|
|
8446
|
+
function ls({ 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 }) {
|
|
8447
|
+
return /* @__PURE__ */ g(os, {
|
|
7876
8448
|
open: e,
|
|
7877
8449
|
onClose: t,
|
|
7878
8450
|
title: r,
|
|
@@ -7914,34 +8486,34 @@ function So({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
7914
8486
|
}
|
|
7915
8487
|
//#endregion
|
|
7916
8488
|
//#region src/SelectDataTable.tsx
|
|
7917
|
-
var
|
|
8489
|
+
var us = "9.5rem", ds = {
|
|
7918
8490
|
minWidth: "9.5rem",
|
|
7919
8491
|
grow: 2
|
|
7920
8492
|
};
|
|
7921
|
-
function
|
|
8493
|
+
function fs(e) {
|
|
7922
8494
|
return [e.wrap ? "select-table__td--wrap" : "", e.tone ? `select-table__td--${e.tone}` : ""].filter(Boolean).join(" ") || void 0;
|
|
7923
8495
|
}
|
|
7924
|
-
var
|
|
7925
|
-
function
|
|
8496
|
+
var ps = "select-datatable:hidden-cols:";
|
|
8497
|
+
function ms(e) {
|
|
7926
8498
|
try {
|
|
7927
|
-
let t = localStorage.getItem(
|
|
8499
|
+
let t = localStorage.getItem(ps + e), n = t ? JSON.parse(t) : null;
|
|
7928
8500
|
return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
|
|
7929
8501
|
} catch {
|
|
7930
8502
|
return [];
|
|
7931
8503
|
}
|
|
7932
8504
|
}
|
|
7933
|
-
function
|
|
8505
|
+
function hs(e, t) {
|
|
7934
8506
|
try {
|
|
7935
|
-
t.length === 0 ? localStorage.removeItem(
|
|
8507
|
+
t.length === 0 ? localStorage.removeItem(ps + e) : localStorage.setItem(ps + e, JSON.stringify(t));
|
|
7936
8508
|
} catch {}
|
|
7937
8509
|
}
|
|
7938
|
-
function
|
|
8510
|
+
function gs(e) {
|
|
7939
8511
|
return e.hideable ?? !!e.title;
|
|
7940
8512
|
}
|
|
7941
|
-
var
|
|
7942
|
-
function
|
|
8513
|
+
var _s = "select-datatable:col-widths:";
|
|
8514
|
+
function vs(e) {
|
|
7943
8515
|
try {
|
|
7944
|
-
let t = localStorage.getItem(
|
|
8516
|
+
let t = localStorage.getItem(_s + e), n = t ? JSON.parse(t) : null;
|
|
7945
8517
|
if (!n || typeof n != "object" || Array.isArray(n)) return {};
|
|
7946
8518
|
let r = {};
|
|
7947
8519
|
for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
|
|
@@ -7950,16 +8522,16 @@ function jo(e) {
|
|
|
7950
8522
|
return {};
|
|
7951
8523
|
}
|
|
7952
8524
|
}
|
|
7953
|
-
function
|
|
8525
|
+
function ys(e, t) {
|
|
7954
8526
|
try {
|
|
7955
|
-
Object.keys(t).length === 0 ? localStorage.removeItem(
|
|
8527
|
+
Object.keys(t).length === 0 ? localStorage.removeItem(_s + e) : localStorage.setItem(_s + e, JSON.stringify(t));
|
|
7956
8528
|
} catch {}
|
|
7957
8529
|
}
|
|
7958
|
-
var
|
|
7959
|
-
function
|
|
8530
|
+
var bs = "select-datatable:page-size:";
|
|
8531
|
+
function xs(e, t, n) {
|
|
7960
8532
|
let [r, i] = f(() => {
|
|
7961
8533
|
try {
|
|
7962
|
-
let r = Number(localStorage.getItem(
|
|
8534
|
+
let r = Number(localStorage.getItem(bs + e));
|
|
7963
8535
|
return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
|
|
7964
8536
|
} catch {
|
|
7965
8537
|
return t;
|
|
@@ -7968,25 +8540,25 @@ function Po(e, t, n) {
|
|
|
7968
8540
|
return [r, (t) => {
|
|
7969
8541
|
i(t);
|
|
7970
8542
|
try {
|
|
7971
|
-
localStorage.setItem(
|
|
8543
|
+
localStorage.setItem(bs + e, String(t));
|
|
7972
8544
|
} catch {}
|
|
7973
8545
|
}];
|
|
7974
8546
|
}
|
|
7975
|
-
function
|
|
8547
|
+
function Ss(e, t, n) {
|
|
7976
8548
|
let r = e == null || e === "", i = t == null || t === "";
|
|
7977
8549
|
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
8550
|
numeric: !0,
|
|
7979
8551
|
sensitivity: "base"
|
|
7980
8552
|
});
|
|
7981
8553
|
}
|
|
7982
|
-
function
|
|
7983
|
-
let [w, T] = f(() => m ?
|
|
8554
|
+
function Cs({ 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 }) {
|
|
8555
|
+
let [w, T] = f(() => m ? ms(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 ? vs(m) : {}), P = u(() => new Set(w), [w]), F = e.filter(gs), I = F.length > 0 && F.every((e) => P.has(e.key)), L = (e) => !I && P.has(e.key) && gs(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
8556
|
let r = new Set(t), i = n(e);
|
|
7985
8557
|
return r.delete(i) || r.add(i), r;
|
|
7986
8558
|
}), U = (e) => {
|
|
7987
8559
|
T((t) => {
|
|
7988
8560
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
7989
|
-
return m &&
|
|
8561
|
+
return m && hs(m, r), n && ee((t) => t && t.key === e.key ? null : t), r;
|
|
7990
8562
|
});
|
|
7991
8563
|
}, re = (e) => {
|
|
7992
8564
|
ee((t) => {
|
|
@@ -8003,7 +8575,7 @@ function Io({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8003
8575
|
let e = ie == null ? void 0 : ie.sortValue;
|
|
8004
8576
|
if (!B || !e) return (e) => e;
|
|
8005
8577
|
let t = B.dir === "asc" ? 1 : -1;
|
|
8006
|
-
return (n) => [...n].sort((n, r) =>
|
|
8578
|
+
return (n) => [...n].sort((n, r) => Ss(e(n), e(r), t));
|
|
8007
8579
|
}, [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
8580
|
label: "",
|
|
8009
8581
|
grow: 1
|
|
@@ -8022,10 +8594,10 @@ function Io({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8022
8594
|
let n = R[e];
|
|
8023
8595
|
n && N((e) => {
|
|
8024
8596
|
let r = { ...e };
|
|
8025
|
-
return t ? r[n.key] = t : delete r[n.key], m &&
|
|
8597
|
+
return t ? r[n.key] = t : delete r[n.key], m && ys(m, r), r;
|
|
8026
8598
|
});
|
|
8027
8599
|
}, oe = () => {
|
|
8028
|
-
N({}), m &&
|
|
8600
|
+
N({}), m && ys(m, {});
|
|
8029
8601
|
}, Y = Object.keys(M).length > 0, se = !r && i ? /* @__PURE__ */ h(Ya, {
|
|
8030
8602
|
icon: i.icon,
|
|
8031
8603
|
title: i.heading,
|
|
@@ -8112,7 +8684,7 @@ function Io({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8112
8684
|
children: R.map((t, n) => /* @__PURE__ */ h(Ja, {
|
|
8113
8685
|
align: t.align,
|
|
8114
8686
|
width: t.width,
|
|
8115
|
-
className:
|
|
8687
|
+
className: fs(t),
|
|
8116
8688
|
disclosure: q && n === 0 ? "none" : void 0,
|
|
8117
8689
|
children: t.render(e)
|
|
8118
8690
|
}, n))
|
|
@@ -8124,7 +8696,7 @@ function Io({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8124
8696
|
children: R.map((t, n) => /* @__PURE__ */ h(Ja, {
|
|
8125
8697
|
align: t.align,
|
|
8126
8698
|
width: t.width,
|
|
8127
|
-
className:
|
|
8699
|
+
className: fs(t),
|
|
8128
8700
|
disclosure: n === 0 ? r ? "open" : "closed" : void 0,
|
|
8129
8701
|
children: t.render(e)
|
|
8130
8702
|
}, n))
|
|
@@ -8134,7 +8706,7 @@ function Io({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8134
8706
|
children: R.map((e, n) => /* @__PURE__ */ h(Ja, {
|
|
8135
8707
|
align: e.align,
|
|
8136
8708
|
width: e.width,
|
|
8137
|
-
className:
|
|
8709
|
+
className: fs(e),
|
|
8138
8710
|
children: e.render(t)
|
|
8139
8711
|
}, n))
|
|
8140
8712
|
}, `${n(e)}/${n(t)}`)) : []];
|
|
@@ -8144,7 +8716,7 @@ function Io({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8144
8716
|
}
|
|
8145
8717
|
//#endregion
|
|
8146
8718
|
//#region src/SelectAddCard.tsx
|
|
8147
|
-
var
|
|
8719
|
+
var ws = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
|
|
8148
8720
|
return /* @__PURE__ */ g("button", {
|
|
8149
8721
|
ref: o,
|
|
8150
8722
|
...a,
|
|
@@ -8170,7 +8742,7 @@ var Lo = r(function({ label: e, description: t, onClick: n, icon: r, className:
|
|
|
8170
8742
|
});
|
|
8171
8743
|
//#endregion
|
|
8172
8744
|
//#region src/SelectCardGrid.tsx
|
|
8173
|
-
function
|
|
8745
|
+
function Ts({ 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
8746
|
let v = !r && e.length === 0 && a != null, { hasTitleRow: y, hasFilters: b } = Pa({
|
|
8175
8747
|
title: u,
|
|
8176
8748
|
description: f,
|
|
@@ -8226,7 +8798,7 @@ function Ro({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
8226
8798
|
}, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ h("div", {
|
|
8227
8799
|
className: "select-cardgrid__item",
|
|
8228
8800
|
children: n(e)
|
|
8229
|
-
}, t(e))), !r && s && /* @__PURE__ */ h(
|
|
8801
|
+
}, t(e))), !r && s && /* @__PURE__ */ h(ws, {
|
|
8230
8802
|
label: s.label,
|
|
8231
8803
|
description: s.description,
|
|
8232
8804
|
onClick: s.onAction,
|
|
@@ -8239,7 +8811,7 @@ function Ro({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
8239
8811
|
}
|
|
8240
8812
|
//#endregion
|
|
8241
8813
|
//#region src/SelectRecordCard.tsx
|
|
8242
|
-
var
|
|
8814
|
+
var Es = 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
8815
|
let b = s != null || c != null, x = Ji(l);
|
|
8244
8816
|
return /* @__PURE__ */ g("div", {
|
|
8245
8817
|
ref: y,
|
|
@@ -8254,7 +8826,7 @@ var zo = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
8254
8826
|
className: "select-rcard__preview",
|
|
8255
8827
|
"aria-hidden": "true",
|
|
8256
8828
|
children: p
|
|
8257
|
-
}) : null : /* @__PURE__ */ h(
|
|
8829
|
+
}) : null : /* @__PURE__ */ h(Os, {
|
|
8258
8830
|
src: d,
|
|
8259
8831
|
fallback: f
|
|
8260
8832
|
}),
|
|
@@ -8294,7 +8866,7 @@ var zo = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
8294
8866
|
}),
|
|
8295
8867
|
a && a.length > 0 && /* @__PURE__ */ h("div", {
|
|
8296
8868
|
className: "select-rcard__body",
|
|
8297
|
-
children: /* @__PURE__ */ h(
|
|
8869
|
+
children: /* @__PURE__ */ h(Ds, { items: a })
|
|
8298
8870
|
}),
|
|
8299
8871
|
o && /* @__PURE__ */ h("div", {
|
|
8300
8872
|
className: "select-rcard__tags",
|
|
@@ -8318,7 +8890,7 @@ var zo = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
8318
8890
|
]
|
|
8319
8891
|
});
|
|
8320
8892
|
});
|
|
8321
|
-
function
|
|
8893
|
+
function Ds({ items: e }) {
|
|
8322
8894
|
return e.length ? /* @__PURE__ */ h("ul", {
|
|
8323
8895
|
className: "select-facts",
|
|
8324
8896
|
children: e.map((e, t) => /* @__PURE__ */ g("li", {
|
|
@@ -8334,7 +8906,7 @@ function Bo({ items: e }) {
|
|
|
8334
8906
|
}, e.key ?? t))
|
|
8335
8907
|
}) : null;
|
|
8336
8908
|
}
|
|
8337
|
-
function
|
|
8909
|
+
function Os({ src: e, fallback: t }) {
|
|
8338
8910
|
let [n, r] = f(!1);
|
|
8339
8911
|
return o(() => r(!1), [e]), /* @__PURE__ */ h("span", {
|
|
8340
8912
|
className: "select-rcard__cover",
|
|
@@ -8350,7 +8922,7 @@ function Vo({ src: e, fallback: t }) {
|
|
|
8350
8922
|
})
|
|
8351
8923
|
});
|
|
8352
8924
|
}
|
|
8353
|
-
var
|
|
8925
|
+
var ks = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i, ...a }, o) {
|
|
8354
8926
|
let s = t ? {
|
|
8355
8927
|
...i,
|
|
8356
8928
|
"--select-rcard-thumb-accent": t
|
|
@@ -8373,13 +8945,13 @@ var Ho = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i,
|
|
|
8373
8945
|
children: [/* @__PURE__ */ h("span", { className: "select-rcard__thumbcol" }), /* @__PURE__ */ h("span", { className: "select-rcard__thumbcol" })]
|
|
8374
8946
|
})]
|
|
8375
8947
|
});
|
|
8376
|
-
}),
|
|
8948
|
+
}), As = r(function({ dragging: e = !1, ghost: t = !1, className: n, ...r }, i) {
|
|
8377
8949
|
return /* @__PURE__ */ h("div", {
|
|
8378
8950
|
ref: i,
|
|
8379
8951
|
...r,
|
|
8380
8952
|
className: `select-sortitem${e && !t ? " is-dragging" : ""}${t ? " is-ghost" : ""}${n ? " " + n : ""}`
|
|
8381
8953
|
});
|
|
8382
|
-
}),
|
|
8954
|
+
}), js = r(function({ dragging: e = !1, variant: t = "inline", label: n = "Arrastar para reordenar", className: r, ...i }, a) {
|
|
8383
8955
|
return /* @__PURE__ */ h("button", {
|
|
8384
8956
|
ref: a,
|
|
8385
8957
|
type: "button",
|
|
@@ -8390,7 +8962,7 @@ var Ho = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i,
|
|
|
8390
8962
|
children: /* @__PURE__ */ h(en, {})
|
|
8391
8963
|
});
|
|
8392
8964
|
});
|
|
8393
|
-
function
|
|
8965
|
+
function Ms({ children: e }) {
|
|
8394
8966
|
return /* @__PURE__ */ g("span", {
|
|
8395
8967
|
className: "select-dragpreview",
|
|
8396
8968
|
children: [/* @__PURE__ */ h(en, {}), e]
|
|
@@ -8398,20 +8970,20 @@ function Go({ children: e }) {
|
|
|
8398
8970
|
}
|
|
8399
8971
|
//#endregion
|
|
8400
8972
|
//#region src/SelectTokenTextarea.tsx
|
|
8401
|
-
var
|
|
8402
|
-
function
|
|
8973
|
+
var Ns = /\{\{?\s*([a-zA-Z_][a-zA-Z0-9_.[\]]*)\s*\}?\}/g, Ps = "data-select-sentinel";
|
|
8974
|
+
function Fs(e, t, n) {
|
|
8403
8975
|
let r = document.createElement("span");
|
|
8404
8976
|
return r.className = "select-token", r.setAttribute("contenteditable", "false"), r.dataset.token = t, r.dataset.raw = e, r.textContent = n(t), r;
|
|
8405
8977
|
}
|
|
8406
|
-
function
|
|
8978
|
+
function Is(e, t, n) {
|
|
8407
8979
|
let r = [], i = new RegExp(t.source, t.flags.includes("g") ? t.flags : t.flags + "g"), a = 0;
|
|
8408
8980
|
for (let t of e.matchAll(i)) {
|
|
8409
8981
|
let i = t.index ?? 0;
|
|
8410
|
-
i > a && r.push(document.createTextNode(e.slice(a, i))), r.push(
|
|
8982
|
+
i > a && r.push(document.createTextNode(e.slice(a, i))), r.push(Fs(t[0], t[1] ?? "", n)), a = i + t[0].length;
|
|
8411
8983
|
}
|
|
8412
8984
|
return a < e.length && r.push(document.createTextNode(e.slice(a))), r;
|
|
8413
8985
|
}
|
|
8414
|
-
function
|
|
8986
|
+
function Ls(e) {
|
|
8415
8987
|
let t = "", n = (e) => {
|
|
8416
8988
|
e.childNodes.forEach((e) => {
|
|
8417
8989
|
if (e.nodeType === Node.TEXT_NODE) {
|
|
@@ -8424,7 +8996,7 @@ function Xo(e) {
|
|
|
8424
8996
|
return;
|
|
8425
8997
|
}
|
|
8426
8998
|
if (e.tagName === "BR") {
|
|
8427
|
-
e.hasAttribute(
|
|
8999
|
+
e.hasAttribute(Ps) || (t += "\n");
|
|
8428
9000
|
return;
|
|
8429
9001
|
}
|
|
8430
9002
|
(e.tagName === "DIV" || e.tagName === "P") && t && !t.endsWith("\n") && (t += "\n"), n(e);
|
|
@@ -8433,15 +9005,15 @@ function Xo(e) {
|
|
|
8433
9005
|
};
|
|
8434
9006
|
return n(e), t.replace(//g, "");
|
|
8435
9007
|
}
|
|
8436
|
-
var
|
|
9008
|
+
var Rs = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a = Ns, labelAction: u, help: f, hint: p, error: m, placeholder: _, rows: v = 4, disabled: y = !1, onBlur: b, size: x = "md", className: S }, C) {
|
|
8437
9009
|
let w = s(), T = d(null), E = d(null), D = d(null), O = d(r);
|
|
8438
9010
|
O.current = r;
|
|
8439
9011
|
let k = i((e) => {
|
|
8440
9012
|
let t = T.current;
|
|
8441
9013
|
if (!t) return;
|
|
8442
|
-
t.replaceChildren(...
|
|
9014
|
+
t.replaceChildren(...Is(e, a, O.current));
|
|
8443
9015
|
let n = document.createElement("br");
|
|
8444
|
-
n.setAttribute(
|
|
9016
|
+
n.setAttribute(Ps, ""), t.appendChild(n), E.current = e;
|
|
8445
9017
|
}, [a]);
|
|
8446
9018
|
l(() => {
|
|
8447
9019
|
t !== E.current && k(t);
|
|
@@ -8454,11 +9026,11 @@ var Zo = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
8454
9026
|
let A = () => {
|
|
8455
9027
|
let e = T.current;
|
|
8456
9028
|
if (!e) return;
|
|
8457
|
-
if (!e.lastChild || !(e.lastChild instanceof HTMLElement && e.lastChild.hasAttribute(
|
|
9029
|
+
if (!e.lastChild || !(e.lastChild instanceof HTMLElement && e.lastChild.hasAttribute(Ps))) {
|
|
8458
9030
|
let t = document.createElement("br");
|
|
8459
|
-
t.setAttribute(
|
|
9031
|
+
t.setAttribute(Ps, ""), e.appendChild(t);
|
|
8460
9032
|
}
|
|
8461
|
-
let t =
|
|
9033
|
+
let t = Ls(e);
|
|
8462
9034
|
E.current = t, n(t);
|
|
8463
9035
|
}, j = () => {
|
|
8464
9036
|
let e = window.getSelection(), t = T.current;
|
|
@@ -8492,7 +9064,7 @@ var Zo = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
8492
9064
|
c(C, () => ({
|
|
8493
9065
|
insertToken: (e) => {
|
|
8494
9066
|
var t, n;
|
|
8495
|
-
M([
|
|
9067
|
+
M([Fs(`{${e}}`, e, O.current)], D.current), N(), window.setTimeout(N, 0), (t = (n = window).requestAnimationFrame) == null || t.call(n, () => N());
|
|
8496
9068
|
},
|
|
8497
9069
|
focus: N
|
|
8498
9070
|
}));
|
|
@@ -8507,12 +9079,12 @@ var Zo = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
8507
9079
|
let t = e.clipboardData.getData("text/plain");
|
|
8508
9080
|
if (!t) return;
|
|
8509
9081
|
let n = window.getSelection();
|
|
8510
|
-
M(
|
|
9082
|
+
M(Is(t.replace(/\r\n?/g, "\n"), a, O.current), n && n.rangeCount ? n.getRangeAt(0) : null);
|
|
8511
9083
|
}, I = (e, t) => {
|
|
8512
9084
|
let n = window.getSelection();
|
|
8513
9085
|
if (!n || !n.rangeCount || n.isCollapsed) return;
|
|
8514
9086
|
let r = n.getRangeAt(0), i = document.createElement("div");
|
|
8515
|
-
i.appendChild(r.cloneContents()), e.preventDefault(), e.clipboardData.setData("text/plain",
|
|
9087
|
+
i.appendChild(r.cloneContents()), e.preventDefault(), e.clipboardData.setData("text/plain", Ls(i)), t && (r.deleteContents(), A());
|
|
8516
9088
|
}, L = m ? `${w}-err` : p ? `${w}-hint` : void 0;
|
|
8517
9089
|
return /* @__PURE__ */ g("div", {
|
|
8518
9090
|
className: `select-field${x === "sm" ? " select-field--sm" : ""}${S ? " " + S : ""}`,
|
|
@@ -8565,18 +9137,18 @@ var Zo = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
8565
9137
|
});
|
|
8566
9138
|
//#endregion
|
|
8567
9139
|
//#region src/SelectChannelPreview.tsx
|
|
8568
|
-
function
|
|
9140
|
+
function zs({ children: e }) {
|
|
8569
9141
|
return /* @__PURE__ */ h("div", {
|
|
8570
9142
|
className: "select-previewstage",
|
|
8571
9143
|
children: e
|
|
8572
9144
|
});
|
|
8573
9145
|
}
|
|
8574
|
-
function
|
|
9146
|
+
function Bs(e) {
|
|
8575
9147
|
var t, n;
|
|
8576
9148
|
let r = e.trim().split(/\s+/).filter(Boolean);
|
|
8577
9149
|
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
9150
|
}
|
|
8579
|
-
function
|
|
9151
|
+
function Vs({ variant: e, title: t, subtitle: n, children: r }) {
|
|
8580
9152
|
return /* @__PURE__ */ g("div", {
|
|
8581
9153
|
className: `select-device select-device--${e}`,
|
|
8582
9154
|
children: [/* @__PURE__ */ g("div", {
|
|
@@ -8584,7 +9156,7 @@ function es({ variant: e, title: t, subtitle: n, children: r }) {
|
|
|
8584
9156
|
children: [/* @__PURE__ */ h("span", {
|
|
8585
9157
|
className: "select-device__avatar",
|
|
8586
9158
|
"aria-hidden": "true",
|
|
8587
|
-
children: e === "whatsapp" && t ?
|
|
9159
|
+
children: e === "whatsapp" && t ? Bs(t) : null
|
|
8588
9160
|
}), (t || n) && /* @__PURE__ */ g("span", {
|
|
8589
9161
|
className: "select-device__who",
|
|
8590
9162
|
children: [t && /* @__PURE__ */ h("span", {
|
|
@@ -8601,7 +9173,7 @@ function es({ variant: e, title: t, subtitle: n, children: r }) {
|
|
|
8601
9173
|
})]
|
|
8602
9174
|
});
|
|
8603
9175
|
}
|
|
8604
|
-
function
|
|
9176
|
+
function Hs({ variant: e, media: t, buttons: n, empty: r = !1, backdrop: i = !1, children: a }) {
|
|
8605
9177
|
let o = /* @__PURE__ */ g("div", {
|
|
8606
9178
|
className: `select-bubble select-bubble--${e}`,
|
|
8607
9179
|
children: [
|
|
@@ -8627,7 +9199,7 @@ function ts({ variant: e, media: t, buttons: n, empty: r = !1, backdrop: i = !1,
|
|
|
8627
9199
|
children: o
|
|
8628
9200
|
}) : o;
|
|
8629
9201
|
}
|
|
8630
|
-
function
|
|
9202
|
+
function Us({ from: e, subject: t, emptySubject: n = "Sem assunto", device: r = "desktop", srcDoc: i, loading: a = !1, frameTitle: o = "O e-mail" }) {
|
|
8631
9203
|
let s = t != null && t !== "" && t !== !1;
|
|
8632
9204
|
return /* @__PURE__ */ g("div", {
|
|
8633
9205
|
className: `select-mailpreview${r === "mobile" ? " select-mailpreview--mobile" : ""}`,
|
|
@@ -8648,13 +9220,13 @@ function ns({ from: e, subject: t, emptySubject: n = "Sem assunto", device: r =
|
|
|
8648
9220
|
className: `select-mailpreview__subject${s ? "" : " select-mailpreview__subject--empty"}`,
|
|
8649
9221
|
children: s ? t : n
|
|
8650
9222
|
})]
|
|
8651
|
-
}), a ? /* @__PURE__ */ h("span", { className: "select-skeleton select-mailpreview__loading" }) : i == null ? null : /* @__PURE__ */ h(
|
|
9223
|
+
}), a ? /* @__PURE__ */ h("span", { className: "select-skeleton select-mailpreview__loading" }) : i == null ? null : /* @__PURE__ */ h(Ws, {
|
|
8652
9224
|
srcDoc: i,
|
|
8653
9225
|
title: o
|
|
8654
9226
|
})]
|
|
8655
9227
|
});
|
|
8656
9228
|
}
|
|
8657
|
-
function
|
|
9229
|
+
function Ws({ srcDoc: e, title: t }) {
|
|
8658
9230
|
let n = d(null), [r, i] = f(null), a = d(null);
|
|
8659
9231
|
o(() => () => {
|
|
8660
9232
|
var e;
|
|
@@ -8684,7 +9256,7 @@ function rs({ srcDoc: e, title: t }) {
|
|
|
8684
9256
|
}
|
|
8685
9257
|
//#endregion
|
|
8686
9258
|
//#region src/SelectIconPicker.tsx
|
|
8687
|
-
function
|
|
9259
|
+
function Gs({ 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
9260
|
let p = s(), [_, v] = f(!1), y = t.find((e) => e.value === n), b = (e) => {
|
|
8689
9261
|
r(e), v(!1);
|
|
8690
9262
|
}, x = /* @__PURE__ */ g("button", {
|
|
@@ -8755,18 +9327,18 @@ function is({ label: e, options: t, value: n, onChange: r, help: i, hint: a, err
|
|
|
8755
9327
|
}
|
|
8756
9328
|
//#endregion
|
|
8757
9329
|
//#region src/SelectSplitChain.tsx
|
|
8758
|
-
function
|
|
9330
|
+
function Ks(e) {
|
|
8759
9331
|
var t;
|
|
8760
9332
|
return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
|
|
8761
9333
|
}
|
|
8762
|
-
function
|
|
9334
|
+
function qs({ node: e, origin: t = !1 }) {
|
|
8763
9335
|
return /* @__PURE__ */ g("span", {
|
|
8764
9336
|
className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
|
|
8765
9337
|
children: [
|
|
8766
9338
|
/* @__PURE__ */ h("span", {
|
|
8767
9339
|
className: "select-chain__dot",
|
|
8768
9340
|
"aria-hidden": "true",
|
|
8769
|
-
children:
|
|
9341
|
+
children: Ks(e)
|
|
8770
9342
|
}),
|
|
8771
9343
|
/* @__PURE__ */ h("span", {
|
|
8772
9344
|
className: "select-chain__label",
|
|
@@ -8780,16 +9352,16 @@ function os({ node: e, origin: t = !1 }) {
|
|
|
8780
9352
|
]
|
|
8781
9353
|
});
|
|
8782
9354
|
}
|
|
8783
|
-
var
|
|
9355
|
+
var Js = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
|
|
8784
9356
|
let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ h("span", {
|
|
8785
9357
|
className: "select-chain__link",
|
|
8786
9358
|
"aria-hidden": "true"
|
|
8787
9359
|
}, e);
|
|
8788
|
-
t && c.push(/* @__PURE__ */ h(
|
|
9360
|
+
t && c.push(/* @__PURE__ */ h(qs, {
|
|
8789
9361
|
node: t,
|
|
8790
9362
|
origin: !0
|
|
8791
9363
|
}, "__origin"));
|
|
8792
|
-
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ h(
|
|
9364
|
+
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ h(qs, { node: e }, e.id));
|
|
8793
9365
|
return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ g("span", {
|
|
8794
9366
|
className: "select-chain__more",
|
|
8795
9367
|
children: ["+", s]
|
|
@@ -8799,43 +9371,43 @@ var ss = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
|
|
|
8799
9371
|
className: `select-chain${r ? " " + r : ""}`,
|
|
8800
9372
|
children: c
|
|
8801
9373
|
});
|
|
8802
|
-
}),
|
|
9374
|
+
}), Ys = new Intl.NumberFormat("pt-BR", {
|
|
8803
9375
|
style: "currency",
|
|
8804
9376
|
currency: "BRL"
|
|
8805
9377
|
});
|
|
8806
|
-
function
|
|
9378
|
+
function Xs(e) {
|
|
8807
9379
|
let t = typeof e == "string" ? Number(e) : e;
|
|
8808
9380
|
return typeof t == "number" && Number.isFinite(t) ? t : 0;
|
|
8809
9381
|
}
|
|
8810
|
-
function
|
|
8811
|
-
return
|
|
9382
|
+
function Zs(e) {
|
|
9383
|
+
return Ys.format(Xs(e) / 100);
|
|
8812
9384
|
}
|
|
8813
9385
|
//#endregion
|
|
8814
9386
|
//#region src/SelectMoney.tsx
|
|
8815
|
-
var
|
|
9387
|
+
var Qs = "sw:hide-money", $s = {
|
|
8816
9388
|
hidden: !1,
|
|
8817
9389
|
toggle: () => {},
|
|
8818
9390
|
setHidden: () => {}
|
|
8819
|
-
},
|
|
8820
|
-
function
|
|
9391
|
+
}, ec = n(null);
|
|
9392
|
+
function tc() {
|
|
8821
9393
|
try {
|
|
8822
|
-
return localStorage.getItem(
|
|
9394
|
+
return localStorage.getItem(Qs) === "1";
|
|
8823
9395
|
} catch {
|
|
8824
9396
|
return !1;
|
|
8825
9397
|
}
|
|
8826
9398
|
}
|
|
8827
|
-
function
|
|
9399
|
+
function nc(e) {
|
|
8828
9400
|
try {
|
|
8829
|
-
localStorage.setItem(
|
|
9401
|
+
localStorage.setItem(Qs, e ? "1" : "0");
|
|
8830
9402
|
} catch {}
|
|
8831
9403
|
}
|
|
8832
|
-
function
|
|
8833
|
-
let [t, n] = f(
|
|
8834
|
-
n(e),
|
|
9404
|
+
function rc({ children: e }) {
|
|
9405
|
+
let [t, n] = f(tc), r = i((e) => {
|
|
9406
|
+
n(e), nc(e);
|
|
8835
9407
|
}, []), a = i(() => {
|
|
8836
9408
|
n((e) => {
|
|
8837
9409
|
let t = !e;
|
|
8838
|
-
return
|
|
9410
|
+
return nc(t), t;
|
|
8839
9411
|
});
|
|
8840
9412
|
}, []), o = u(() => ({
|
|
8841
9413
|
hidden: t,
|
|
@@ -8846,16 +9418,16 @@ function gs({ children: e }) {
|
|
|
8846
9418
|
a,
|
|
8847
9419
|
r
|
|
8848
9420
|
]);
|
|
8849
|
-
return /* @__PURE__ */ h(
|
|
9421
|
+
return /* @__PURE__ */ h(ec.Provider, {
|
|
8850
9422
|
value: o,
|
|
8851
9423
|
children: e
|
|
8852
9424
|
});
|
|
8853
9425
|
}
|
|
8854
|
-
function
|
|
8855
|
-
return a(
|
|
9426
|
+
function ic() {
|
|
9427
|
+
return a(ec) ?? $s;
|
|
8856
9428
|
}
|
|
8857
|
-
var
|
|
8858
|
-
let { hidden: a } =
|
|
9429
|
+
var ac = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
|
|
9430
|
+
let { hidden: a } = ic();
|
|
8859
9431
|
return /* @__PURE__ */ h("span", {
|
|
8860
9432
|
ref: i,
|
|
8861
9433
|
...r,
|
|
@@ -8864,15 +9436,15 @@ var vs = r(function({ children: e, label: t = "valor oculto", className: n, ...r
|
|
|
8864
9436
|
children: e
|
|
8865
9437
|
});
|
|
8866
9438
|
});
|
|
8867
|
-
function
|
|
8868
|
-
let n =
|
|
8869
|
-
return h(t ?
|
|
9439
|
+
function oc({ cents: e, sensitive: t = !0 }) {
|
|
9440
|
+
let n = Zs(e);
|
|
9441
|
+
return h(t ? ac : m, { children: n });
|
|
8870
9442
|
}
|
|
8871
|
-
var
|
|
9443
|
+
var sc = new Intl.NumberFormat("pt-BR", {
|
|
8872
9444
|
signDisplay: "exceptZero",
|
|
8873
9445
|
minimumFractionDigits: 1,
|
|
8874
9446
|
maximumFractionDigits: 1
|
|
8875
|
-
}),
|
|
9447
|
+
}), cc = r(function({ value: e, invert: t = !1, caption: n, unit: r = "percent", className: i, ...a }, o) {
|
|
8876
9448
|
if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ g("span", {
|
|
8877
9449
|
ref: o,
|
|
8878
9450
|
...a,
|
|
@@ -8888,7 +9460,7 @@ var bs = new Intl.NumberFormat("pt-BR", {
|
|
|
8888
9460
|
className: `select-delta__value select-delta__value--${u}`,
|
|
8889
9461
|
children: [
|
|
8890
9462
|
d ? `${d} ` : "",
|
|
8891
|
-
|
|
9463
|
+
sc.format(e),
|
|
8892
9464
|
r === "points" ? " p.p." : "%"
|
|
8893
9465
|
]
|
|
8894
9466
|
}), n != null && /* @__PURE__ */ h("span", {
|
|
@@ -8897,8 +9469,8 @@ var bs = new Intl.NumberFormat("pt-BR", {
|
|
|
8897
9469
|
})]
|
|
8898
9470
|
});
|
|
8899
9471
|
});
|
|
8900
|
-
function
|
|
8901
|
-
let { hidden: e, toggle: t } =
|
|
9472
|
+
function lc() {
|
|
9473
|
+
let { hidden: e, toggle: t } = ic();
|
|
8902
9474
|
return /* @__PURE__ */ h(ei, {
|
|
8903
9475
|
variant: "outline",
|
|
8904
9476
|
icon: h(e ? He : Ve, {}),
|
|
@@ -8909,7 +9481,7 @@ function Ss() {
|
|
|
8909
9481
|
}
|
|
8910
9482
|
//#endregion
|
|
8911
9483
|
//#region src/SelectOfferPrice.tsx
|
|
8912
|
-
var
|
|
9484
|
+
var uc = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note: i, prefix: a, suffix: o, className: s, ...c }, l) {
|
|
8913
9485
|
let u = Number(e);
|
|
8914
9486
|
if (!Number.isFinite(u)) return null;
|
|
8915
9487
|
let d = Number(t), f = Number.isFinite(d) && d > u, p = f ? Math.round((d - u) / d * 100) : 0;
|
|
@@ -8924,7 +9496,7 @@ var Cs = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
8924
9496
|
}),
|
|
8925
9497
|
/* @__PURE__ */ h("span", {
|
|
8926
9498
|
className: "select-offerprice__now",
|
|
8927
|
-
children: u === 0 && r != null ? r : /* @__PURE__ */ h(
|
|
9499
|
+
children: u === 0 && r != null ? r : /* @__PURE__ */ h(oc, { cents: u })
|
|
8928
9500
|
}),
|
|
8929
9501
|
o != null && /* @__PURE__ */ h("span", {
|
|
8930
9502
|
className: "select-offerprice__per",
|
|
@@ -8932,7 +9504,7 @@ var Cs = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
8932
9504
|
}),
|
|
8933
9505
|
f && /* @__PURE__ */ h("s", {
|
|
8934
9506
|
className: "select-offerprice__was",
|
|
8935
|
-
children: /* @__PURE__ */ h(
|
|
9507
|
+
children: /* @__PURE__ */ h(oc, { cents: d })
|
|
8936
9508
|
}),
|
|
8937
9509
|
f && !n && p > 0 && /* @__PURE__ */ g("span", {
|
|
8938
9510
|
className: "select-offerprice__off",
|
|
@@ -8951,7 +9523,7 @@ var Cs = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
8951
9523
|
});
|
|
8952
9524
|
//#endregion
|
|
8953
9525
|
//#region src/SelectRating.tsx
|
|
8954
|
-
function
|
|
9526
|
+
function dc({ size: e }) {
|
|
8955
9527
|
return /* @__PURE__ */ h("svg", {
|
|
8956
9528
|
width: e,
|
|
8957
9529
|
height: e,
|
|
@@ -8963,7 +9535,7 @@ function ws({ size: e }) {
|
|
|
8963
9535
|
})
|
|
8964
9536
|
});
|
|
8965
9537
|
}
|
|
8966
|
-
var
|
|
9538
|
+
var fc = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i, disabled: a = !1, className: o, ...s }, c) {
|
|
8967
9539
|
let l = !!n && !a, [u, d] = f(null), p = u ?? e;
|
|
8968
9540
|
return /* @__PURE__ */ h("div", {
|
|
8969
9541
|
ref: c,
|
|
@@ -8978,7 +9550,7 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
8978
9550
|
children: Array.from({ length: t }, (e, t) => {
|
|
8979
9551
|
let i = /* @__PURE__ */ h("span", {
|
|
8980
9552
|
className: `select-rating__star${t < p ? " is-filled" : ""}`,
|
|
8981
|
-
children: /* @__PURE__ */ h(
|
|
9553
|
+
children: /* @__PURE__ */ h(dc, { size: r })
|
|
8982
9554
|
});
|
|
8983
9555
|
return l ? /* @__PURE__ */ h("button", {
|
|
8984
9556
|
type: "button",
|
|
@@ -8992,14 +9564,14 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
8992
9564
|
}, t) : /* @__PURE__ */ h("span", { children: i }, t);
|
|
8993
9565
|
})
|
|
8994
9566
|
});
|
|
8995
|
-
}),
|
|
9567
|
+
}), pc = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
|
|
8996
9568
|
let s = Number(e), c = Number.isFinite(s) && s > 0;
|
|
8997
9569
|
return /* @__PURE__ */ g("div", {
|
|
8998
9570
|
ref: o,
|
|
8999
9571
|
...a,
|
|
9000
9572
|
className: `select-quote${i ? " " + i : ""}`,
|
|
9001
9573
|
children: [
|
|
9002
|
-
c && /* @__PURE__ */ h(
|
|
9574
|
+
c && /* @__PURE__ */ h(fc, {
|
|
9003
9575
|
value: s,
|
|
9004
9576
|
max: t,
|
|
9005
9577
|
size: 13
|
|
@@ -9014,7 +9586,7 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9014
9586
|
})
|
|
9015
9587
|
]
|
|
9016
9588
|
});
|
|
9017
|
-
}),
|
|
9589
|
+
}), mc = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
|
|
9018
9590
|
let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
|
|
9019
9591
|
return /* @__PURE__ */ g("div", {
|
|
9020
9592
|
ref: i,
|
|
@@ -9036,7 +9608,7 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9036
9608
|
children: ["+", o]
|
|
9037
9609
|
})]
|
|
9038
9610
|
});
|
|
9039
|
-
}),
|
|
9611
|
+
}), hc = [
|
|
9040
9612
|
"Dom",
|
|
9041
9613
|
"Seg",
|
|
9042
9614
|
"Ter",
|
|
@@ -9044,7 +9616,7 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9044
9616
|
"Qui",
|
|
9045
9617
|
"Sex",
|
|
9046
9618
|
"Sáb"
|
|
9047
|
-
],
|
|
9619
|
+
], gc = [
|
|
9048
9620
|
"Janeiro",
|
|
9049
9621
|
"Fevereiro",
|
|
9050
9622
|
"Março",
|
|
@@ -9057,7 +9629,7 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9057
9629
|
"Outubro",
|
|
9058
9630
|
"Novembro",
|
|
9059
9631
|
"Dezembro"
|
|
9060
|
-
],
|
|
9632
|
+
], _c = [
|
|
9061
9633
|
"Jan",
|
|
9062
9634
|
"Fev",
|
|
9063
9635
|
"Mar",
|
|
@@ -9070,33 +9642,33 @@ var Ts = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9070
9642
|
"Out",
|
|
9071
9643
|
"Nov",
|
|
9072
9644
|
"Dez"
|
|
9073
|
-
],
|
|
9074
|
-
function
|
|
9645
|
+
], vc = 12, yc = (e) => String(e).padStart(2, "0"), bc = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), xc = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Sc = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Cc = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), wc = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
9646
|
+
function Tc(e) {
|
|
9075
9647
|
let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
|
|
9076
9648
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
|
|
9077
9649
|
}
|
|
9078
|
-
function
|
|
9079
|
-
let n = `${e.getFullYear()}-${
|
|
9080
|
-
return t ? `${n}T${
|
|
9650
|
+
function Ec(e, t) {
|
|
9651
|
+
let n = `${e.getFullYear()}-${yc(e.getMonth() + 1)}-${yc(e.getDate())}`;
|
|
9652
|
+
return t ? `${n}T${yc(e.getHours())}:${yc(e.getMinutes())}` : n;
|
|
9081
9653
|
}
|
|
9082
|
-
function
|
|
9083
|
-
let n = `${
|
|
9084
|
-
return t ? `${n} ${
|
|
9654
|
+
function Dc(e, t) {
|
|
9655
|
+
let n = `${yc(e.getDate())}/${yc(e.getMonth() + 1)}/${e.getFullYear()}`;
|
|
9656
|
+
return t ? `${n} ${yc(e.getHours())}:${yc(e.getMinutes())}` : n;
|
|
9085
9657
|
}
|
|
9086
|
-
var
|
|
9087
|
-
let x = s(), S = _ ?? x, [C, w] = f(!1), T =
|
|
9658
|
+
var Oc = 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) {
|
|
9659
|
+
let x = s(), S = _ ?? x, [C, w] = f(!1), T = Tc(t), E = u ? bc(u) : null, D = d ? bc(d) : null, O = (e) => !!E && bc(e) < E || !!D && bc(e) > D, k = () => {
|
|
9088
9660
|
if (T) return T;
|
|
9089
9661
|
let e = /* @__PURE__ */ new Date();
|
|
9090
9662
|
return D && e > D ? D : E && e < E ? E : e;
|
|
9091
|
-
}, [A, j] = f(() =>
|
|
9092
|
-
o || (j(
|
|
9093
|
-
}, ee = (e) => j((t) => M === "day" ?
|
|
9663
|
+
}, [A, j] = f(() => xc(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() % vc, L = Sc(xc(A), -xc(A).getDay()), R = Array.from({ length: 42 }, (e, t) => Sc(L, t)), z = bc(/* @__PURE__ */ new Date()), B = () => {
|
|
9664
|
+
o || (j(xc(k())), N(!T && m === "year" ? "year" : "day"), w((e) => !e));
|
|
9665
|
+
}, ee = (e) => j((t) => M === "day" ? Cc(t, e) : new Date(t.getFullYear() + e * (M === "year" ? vc : 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
9666
|
if (O(e)) return;
|
|
9095
9667
|
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(
|
|
9668
|
+
r && t.setHours((T == null ? void 0 : T.getHours()) ?? 0, (T == null ? void 0 : T.getMinutes()) ?? 0, 0, 0), n(Ec(t, r)), r || w(!1);
|
|
9097
9669
|
}, H = (e) => {
|
|
9098
9670
|
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(
|
|
9671
|
+
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(Ec(o, !0));
|
|
9100
9672
|
}, ne = () => {
|
|
9101
9673
|
n(""), w(!1);
|
|
9102
9674
|
}, re = /* @__PURE__ */ g("div", {
|
|
@@ -9110,7 +9682,7 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9110
9682
|
"aria-haspopup": "dialog",
|
|
9111
9683
|
"aria-expanded": C,
|
|
9112
9684
|
"aria-invalid": c ? !0 : void 0,
|
|
9113
|
-
children: T ?
|
|
9685
|
+
children: T ? Dc(T, r) : /* @__PURE__ */ h("span", {
|
|
9114
9686
|
className: "select-datefield__ph",
|
|
9115
9687
|
children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
|
|
9116
9688
|
})
|
|
@@ -9155,14 +9727,14 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9155
9727
|
children: [
|
|
9156
9728
|
I,
|
|
9157
9729
|
" – ",
|
|
9158
|
-
I +
|
|
9730
|
+
I + vc - 1
|
|
9159
9731
|
]
|
|
9160
9732
|
}) : /* @__PURE__ */ g("button", {
|
|
9161
9733
|
type: "button",
|
|
9162
9734
|
className: "select-datepicker__monthlabel select-datefield__modebtn",
|
|
9163
9735
|
"aria-label": M === "day" ? "Escolher o ano e o mês" : "Escolher o ano",
|
|
9164
9736
|
onClick: () => N("year"),
|
|
9165
|
-
children: [M === "day" ? `${
|
|
9737
|
+
children: [M === "day" ? `${gc[A.getMonth()]} ${A.getFullYear()}` : A.getFullYear(), /* @__PURE__ */ h(K, {})]
|
|
9166
9738
|
}),
|
|
9167
9739
|
/* @__PURE__ */ h("button", {
|
|
9168
9740
|
type: "button",
|
|
@@ -9177,7 +9749,7 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9177
9749
|
className: "select-datefield__cells",
|
|
9178
9750
|
role: "grid",
|
|
9179
9751
|
"aria-label": "Anos",
|
|
9180
|
-
children: Array.from({ length:
|
|
9752
|
+
children: Array.from({ length: vc }, (e, t) => I + t).map((e) => {
|
|
9181
9753
|
let t = (T == null ? void 0 : T.getFullYear()) === e;
|
|
9182
9754
|
return /* @__PURE__ */ h("button", {
|
|
9183
9755
|
type: "button",
|
|
@@ -9194,11 +9766,11 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9194
9766
|
className: "select-datefield__cells",
|
|
9195
9767
|
role: "grid",
|
|
9196
9768
|
"aria-label": `Meses de ${A.getFullYear()}`,
|
|
9197
|
-
children:
|
|
9769
|
+
children: _c.map((e, t) => {
|
|
9198
9770
|
let n = A.getFullYear(), r = !!T && T.getFullYear() === n && T.getMonth() === t;
|
|
9199
9771
|
return /* @__PURE__ */ h("button", {
|
|
9200
9772
|
type: "button",
|
|
9201
|
-
"aria-label": `${
|
|
9773
|
+
"aria-label": `${gc[t]} de ${n}`,
|
|
9202
9774
|
className: `select-datefield__cell${r ? " is-selected" : ""}`,
|
|
9203
9775
|
disabled: F(n, t),
|
|
9204
9776
|
onClick: () => {
|
|
@@ -9211,11 +9783,11 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9211
9783
|
M === "day" && /* @__PURE__ */ g("div", {
|
|
9212
9784
|
className: "select-datepicker__grid",
|
|
9213
9785
|
role: "grid",
|
|
9214
|
-
children: [
|
|
9786
|
+
children: [hc.map((e) => /* @__PURE__ */ h("div", {
|
|
9215
9787
|
className: "select-datepicker__weekday",
|
|
9216
9788
|
children: e
|
|
9217
9789
|
}, e)), R.map((e) => {
|
|
9218
|
-
let t = e.getMonth() !== A.getMonth(), n = !!T &&
|
|
9790
|
+
let t = e.getMonth() !== A.getMonth(), n = !!T && wc(e, T), r = "select-datepicker__daybtn" + (n ? " is-selected" : "") + (wc(e, z) && !n ? " is-today" : "") + (t ? " is-outside" : "");
|
|
9219
9791
|
return /* @__PURE__ */ h("div", {
|
|
9220
9792
|
className: "select-datepicker__day",
|
|
9221
9793
|
children: /* @__PURE__ */ h("button", {
|
|
@@ -9237,7 +9809,7 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9237
9809
|
type: "time",
|
|
9238
9810
|
className: "select-input select-datefield__time-input",
|
|
9239
9811
|
"aria-label": "Horário",
|
|
9240
|
-
value: T ? `${
|
|
9812
|
+
value: T ? `${yc(T.getHours())}:${yc(T.getMinutes())}` : "",
|
|
9241
9813
|
onChange: (e) => H(e.target.value)
|
|
9242
9814
|
})]
|
|
9243
9815
|
}),
|
|
@@ -9278,25 +9850,25 @@ var Vs = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9278
9850
|
}) : null
|
|
9279
9851
|
]
|
|
9280
9852
|
});
|
|
9281
|
-
}),
|
|
9282
|
-
function
|
|
9283
|
-
let t =
|
|
9853
|
+
}), kc = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?$/;
|
|
9854
|
+
function Ac(e) {
|
|
9855
|
+
let t = kc.exec(e ?? "");
|
|
9284
9856
|
if (!t) return null;
|
|
9285
9857
|
let n = `${t[3]}/${t[2]}/${t[1]}`;
|
|
9286
9858
|
return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
|
|
9287
9859
|
}
|
|
9288
9860
|
//#endregion
|
|
9289
9861
|
//#region src/SelectFilterBar.tsx
|
|
9290
|
-
function
|
|
9862
|
+
function jc(e, t) {
|
|
9291
9863
|
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" ?
|
|
9864
|
+
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ? Ac(t) ?? t : t;
|
|
9293
9865
|
}
|
|
9294
|
-
function
|
|
9866
|
+
function Mc({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: s }) {
|
|
9295
9867
|
let [c, l] = f("");
|
|
9296
9868
|
o(() => {
|
|
9297
9869
|
r || l("");
|
|
9298
9870
|
}, [r]);
|
|
9299
|
-
let u = t.trim() !== "", d = u ?
|
|
9871
|
+
let u = t.trim() !== "", d = u ? jc(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
9872
|
return /* @__PURE__ */ g(Zn, {
|
|
9301
9873
|
active: r,
|
|
9302
9874
|
onClose: a,
|
|
@@ -9354,7 +9926,7 @@ function Gs({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
9354
9926
|
})]
|
|
9355
9927
|
}) : e.type === "date" ? /* @__PURE__ */ h("div", {
|
|
9356
9928
|
className: "select-facet__field",
|
|
9357
|
-
children: /* @__PURE__ */ h(
|
|
9929
|
+
children: /* @__PURE__ */ h(Oc, {
|
|
9358
9930
|
value: t,
|
|
9359
9931
|
onChange: n,
|
|
9360
9932
|
placeholder: e.placeholder,
|
|
@@ -9392,7 +9964,7 @@ function Gs({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
9392
9964
|
]
|
|
9393
9965
|
});
|
|
9394
9966
|
}
|
|
9395
|
-
var
|
|
9967
|
+
var Nc = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, leading: a, disabled: o, className: s, ...c }, l) {
|
|
9396
9968
|
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
9969
|
d([]), m(null), r();
|
|
9398
9970
|
}, T = (e) => {
|
|
@@ -9431,7 +10003,7 @@ var Ks = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9431
10003
|
})
|
|
9432
10004
|
]
|
|
9433
10005
|
}),
|
|
9434
|
-
x.map((e) => /* @__PURE__ */ h(
|
|
10006
|
+
x.map((e) => /* @__PURE__ */ h(Mc, {
|
|
9435
10007
|
filter: e,
|
|
9436
10008
|
value: t[e.key] ?? "",
|
|
9437
10009
|
onChange: (t) => n(e.key, t),
|
|
@@ -9477,7 +10049,7 @@ var Ks = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9477
10049
|
children: [
|
|
9478
10050
|
e.label,
|
|
9479
10051
|
": ",
|
|
9480
|
-
|
|
10052
|
+
jc(e, t[e.key] ?? ""),
|
|
9481
10053
|
/* @__PURE__ */ h("button", {
|
|
9482
10054
|
type: "button",
|
|
9483
10055
|
className: "select-filterbar__tagx",
|
|
@@ -9494,7 +10066,7 @@ var Ks = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9494
10066
|
})]
|
|
9495
10067
|
})]
|
|
9496
10068
|
});
|
|
9497
|
-
}),
|
|
10069
|
+
}), Pc = 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
10070
|
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
10071
|
let n = t.find((t) => t.value === e);
|
|
9500
10072
|
return n ? {
|
|
@@ -9625,7 +10197,7 @@ var Ks = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9625
10197
|
}) : null
|
|
9626
10198
|
]
|
|
9627
10199
|
});
|
|
9628
|
-
}),
|
|
10200
|
+
}), Fc = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
|
|
9629
10201
|
return /* @__PURE__ */ g("div", {
|
|
9630
10202
|
ref: c,
|
|
9631
10203
|
...s,
|
|
@@ -9657,8 +10229,8 @@ var Ks = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9657
10229
|
})
|
|
9658
10230
|
]
|
|
9659
10231
|
});
|
|
9660
|
-
}),
|
|
9661
|
-
function
|
|
10232
|
+
}), Ic = n(null), Lc = 220, Rc = 4e3, zc = 8, Bc = .04, Vc = 5;
|
|
10233
|
+
function Hc({ children: e }) {
|
|
9662
10234
|
let [t, n] = f([]), r = d(0), a = d(/* @__PURE__ */ new Map()), s = i((e) => {
|
|
9663
10235
|
n((t) => t.filter((t) => t.id !== e)), a.current.delete(e);
|
|
9664
10236
|
}, []), c = i((e) => {
|
|
@@ -9666,9 +10238,9 @@ function tc({ children: e }) {
|
|
|
9666
10238
|
t && clearTimeout(t), n((t) => t.map((t) => t.id === e ? {
|
|
9667
10239
|
...t,
|
|
9668
10240
|
exiting: !0
|
|
9669
|
-
} : t)), a.current.set(e, setTimeout(() => s(e),
|
|
10241
|
+
} : t)), a.current.set(e, setTimeout(() => s(e), Lc));
|
|
9670
10242
|
}, [s]), l = i((e, t) => {
|
|
9671
|
-
let i = ++r.current, o = (t == null ? void 0 : t.duration) ??
|
|
10243
|
+
let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? Rc;
|
|
9672
10244
|
n((n) => [...n, {
|
|
9673
10245
|
id: i,
|
|
9674
10246
|
content: e,
|
|
@@ -9696,7 +10268,7 @@ function tc({ children: e }) {
|
|
|
9696
10268
|
duration: t
|
|
9697
10269
|
})
|
|
9698
10270
|
}), [l]);
|
|
9699
|
-
return /* @__PURE__ */ g(
|
|
10271
|
+
return /* @__PURE__ */ g(Ic.Provider, {
|
|
9700
10272
|
value: p,
|
|
9701
10273
|
children: [e, t.length > 0 && _(/* @__PURE__ */ h("div", {
|
|
9702
10274
|
className: "select select-toasts",
|
|
@@ -9704,8 +10276,8 @@ function tc({ children: e }) {
|
|
|
9704
10276
|
"aria-live": "polite",
|
|
9705
10277
|
"aria-label": "Notificações",
|
|
9706
10278
|
children: t.map((e, n) => {
|
|
9707
|
-
let r = t.length - 1 - n, i = e.exiting || r >=
|
|
9708
|
-
transform: `translate(-50%, ${-r *
|
|
10279
|
+
let r = t.length - 1 - n, i = e.exiting || r >= Vc, a = {
|
|
10280
|
+
transform: `translate(-50%, ${-r * zc}px) scale(${1 - r * Bc})`,
|
|
9709
10281
|
opacity: +!i,
|
|
9710
10282
|
zIndex: 1e3 - r,
|
|
9711
10283
|
pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
|
|
@@ -9729,14 +10301,14 @@ function tc({ children: e }) {
|
|
|
9729
10301
|
}), document.body)]
|
|
9730
10302
|
});
|
|
9731
10303
|
}
|
|
9732
|
-
function
|
|
9733
|
-
let e = a(
|
|
10304
|
+
function Uc() {
|
|
10305
|
+
let e = a(Ic);
|
|
9734
10306
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
9735
10307
|
return e;
|
|
9736
10308
|
}
|
|
9737
10309
|
//#endregion
|
|
9738
10310
|
//#region src/SelectPreviewFrame.tsx
|
|
9739
|
-
var
|
|
10311
|
+
var Wc = "allow-scripts allow-same-origin allow-forms", Gc = 390, Kc = 1280, qc = r(function({ src: e, sandbox: t = Wc, 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 = Kc, className: y, ...b }, x) {
|
|
9740
10312
|
let S = Ji(e), [C, w] = f(a), [T, E] = f(0), [D, O] = f(!0), k = d(null), [A, j] = f({
|
|
9741
10313
|
w: 0,
|
|
9742
10314
|
h: 0
|
|
@@ -9754,7 +10326,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
9754
10326
|
});
|
|
9755
10327
|
return t.observe(e), () => t.disconnect();
|
|
9756
10328
|
}, []);
|
|
9757
|
-
let M = C === "mobile" ?
|
|
10329
|
+
let M = C === "mobile" ? Gc : v, N = A.w > 0 ? Math.min(1, A.w / M) : 1, P = S ? `${S}${S.includes("?") ? "&" : "?"}_pv=${T}` : "", F = () => {
|
|
9758
10330
|
if (O(!0), u) {
|
|
9759
10331
|
u();
|
|
9760
10332
|
return;
|
|
@@ -9843,7 +10415,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
9843
10415
|
})
|
|
9844
10416
|
})]
|
|
9845
10417
|
});
|
|
9846
|
-
}),
|
|
10418
|
+
}), Jc = 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
10419
|
if (a === "hero") {
|
|
9848
10420
|
let n = (e, t = "1em") => /* @__PURE__ */ h("span", {
|
|
9849
10421
|
className: "select-skeleton select-balance__skel",
|
|
@@ -9851,7 +10423,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
9851
10423
|
width: e,
|
|
9852
10424
|
height: t
|
|
9853
10425
|
}
|
|
9854
|
-
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ h(
|
|
10426
|
+
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ h(oc, { cents: e });
|
|
9855
10427
|
return /* @__PURE__ */ h("div", {
|
|
9856
10428
|
ref: f,
|
|
9857
10429
|
...d,
|
|
@@ -9883,7 +10455,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
9883
10455
|
className: "select-balance-hero__meta",
|
|
9884
10456
|
children: s.map((e, t) => /* @__PURE__ */ g("div", {
|
|
9885
10457
|
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(
|
|
10458
|
+
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(oc, { cents: e.cents })] }) : e.value ?? "—" })]
|
|
9887
10459
|
}, t))
|
|
9888
10460
|
}),
|
|
9889
10461
|
(i || c) && /* @__PURE__ */ g("div", {
|
|
@@ -9958,8 +10530,8 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
9958
10530
|
className: "select-balance__heromain",
|
|
9959
10531
|
children: [/* @__PURE__ */ h("span", {
|
|
9960
10532
|
className: "select-balance__heroamount",
|
|
9961
|
-
children: /* @__PURE__ */ h(
|
|
9962
|
-
}), n != null && /* @__PURE__ */ h(
|
|
10533
|
+
children: /* @__PURE__ */ h(oc, { cents: e })
|
|
10534
|
+
}), n != null && /* @__PURE__ */ h(cc, {
|
|
9963
10535
|
value: n,
|
|
9964
10536
|
caption: "vs. período anterior"
|
|
9965
10537
|
})]
|
|
@@ -9978,14 +10550,14 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
9978
10550
|
children: e.label
|
|
9979
10551
|
}), /* @__PURE__ */ h("span", {
|
|
9980
10552
|
className: "select-balance__bucketamount",
|
|
9981
|
-
children: /* @__PURE__ */ h(
|
|
10553
|
+
children: /* @__PURE__ */ h(oc, { cents: e.cents })
|
|
9982
10554
|
})]
|
|
9983
10555
|
})]
|
|
9984
10556
|
}, e.label))
|
|
9985
10557
|
})]
|
|
9986
10558
|
})]
|
|
9987
10559
|
});
|
|
9988
|
-
}),
|
|
10560
|
+
}), Yc = 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
10561
|
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
10562
|
return /* @__PURE__ */ g("div", {
|
|
9991
10563
|
ref: l,
|
|
@@ -10005,7 +10577,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
10005
10577
|
children: o ?? /* @__PURE__ */ g(m, { children: [
|
|
10006
10578
|
i,
|
|
10007
10579
|
" · ",
|
|
10008
|
-
/* @__PURE__ */ h(
|
|
10580
|
+
/* @__PURE__ */ h(oc, { cents: u })
|
|
10009
10581
|
] })
|
|
10010
10582
|
})
|
|
10011
10583
|
}), d > 0 && /* @__PURE__ */ h("span", {
|
|
@@ -10022,7 +10594,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
10022
10594
|
"aria-hidden": "true"
|
|
10023
10595
|
}),
|
|
10024
10596
|
"Taxas ",
|
|
10025
|
-
/* @__PURE__ */ h(
|
|
10597
|
+
/* @__PURE__ */ h(oc, { cents: d }),
|
|
10026
10598
|
" (",
|
|
10027
10599
|
p.toLocaleString("pt-BR", {
|
|
10028
10600
|
maximumFractionDigits: 1,
|
|
@@ -10038,20 +10610,20 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
10038
10610
|
"aria-hidden": "true"
|
|
10039
10611
|
}),
|
|
10040
10612
|
"Líquido ",
|
|
10041
|
-
/* @__PURE__ */ h(
|
|
10613
|
+
/* @__PURE__ */ h(oc, { cents: u })
|
|
10042
10614
|
]
|
|
10043
10615
|
})]
|
|
10044
10616
|
})]
|
|
10045
10617
|
}),
|
|
10046
10618
|
/* @__PURE__ */ g("div", {
|
|
10047
10619
|
className: "select-fees__row",
|
|
10048
|
-
children: [/* @__PURE__ */ h("span", { children: r }), /* @__PURE__ */ h("span", { children: /* @__PURE__ */ h(
|
|
10620
|
+
children: [/* @__PURE__ */ h("span", { children: r }), /* @__PURE__ */ h("span", { children: /* @__PURE__ */ h(oc, { cents: e }) })]
|
|
10049
10621
|
}),
|
|
10050
10622
|
t.map((e) => /* @__PURE__ */ g("div", {
|
|
10051
10623
|
className: "select-fees__row",
|
|
10052
10624
|
children: [/* @__PURE__ */ h("span", { children: e.label }), /* @__PURE__ */ g("span", {
|
|
10053
10625
|
className: "select-fees__neg",
|
|
10054
|
-
children: ["−\xA0", /* @__PURE__ */ h(
|
|
10626
|
+
children: ["−\xA0", /* @__PURE__ */ h(oc, { cents: e.cents })]
|
|
10055
10627
|
})]
|
|
10056
10628
|
}, e.label)),
|
|
10057
10629
|
/* @__PURE__ */ h("div", { className: "select-fees__divider" }),
|
|
@@ -10059,12 +10631,12 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
10059
10631
|
className: "select-fees__row select-fees__row--net",
|
|
10060
10632
|
children: [/* @__PURE__ */ h("span", { children: i }), /* @__PURE__ */ h("span", {
|
|
10061
10633
|
className: "select-fees__netvalue",
|
|
10062
|
-
children: /* @__PURE__ */ h(
|
|
10634
|
+
children: /* @__PURE__ */ h(oc, { cents: u })
|
|
10063
10635
|
})]
|
|
10064
10636
|
})
|
|
10065
10637
|
]
|
|
10066
10638
|
});
|
|
10067
|
-
}),
|
|
10639
|
+
}), Xc = 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
10640
|
let p = s != null, _ = p ? {
|
|
10069
10641
|
role: "button",
|
|
10070
10642
|
tabIndex: 0,
|
|
@@ -10109,7 +10681,7 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
10109
10681
|
})
|
|
10110
10682
|
] })]
|
|
10111
10683
|
});
|
|
10112
|
-
}),
|
|
10684
|
+
}), Zc = {
|
|
10113
10685
|
"pt-BR": {
|
|
10114
10686
|
severity: {
|
|
10115
10687
|
info: "Para saber",
|
|
@@ -10258,42 +10830,42 @@ var rc = "allow-scripts allow-same-origin allow-forms", ic = 390, ac = 1280, oc
|
|
|
10258
10830
|
unread: "Nuevo"
|
|
10259
10831
|
}
|
|
10260
10832
|
};
|
|
10261
|
-
function
|
|
10833
|
+
function Qc(e) {
|
|
10262
10834
|
return e === "en" || e != null && e.startsWith("en-") ? "en" : e === "es" || e != null && e.startsWith("es-") ? "es" : "pt-BR";
|
|
10263
10835
|
}
|
|
10264
|
-
function
|
|
10265
|
-
let n =
|
|
10836
|
+
function $c(e, t) {
|
|
10837
|
+
let n = Qc(e);
|
|
10266
10838
|
return {
|
|
10267
10839
|
lang: n,
|
|
10268
10840
|
labels: {
|
|
10269
|
-
...
|
|
10841
|
+
...Zc[n],
|
|
10270
10842
|
...t
|
|
10271
10843
|
}
|
|
10272
10844
|
};
|
|
10273
10845
|
}
|
|
10274
|
-
var
|
|
10846
|
+
var el = {
|
|
10275
10847
|
info: "info",
|
|
10276
10848
|
opportunity: "success",
|
|
10277
10849
|
warning: "warning",
|
|
10278
10850
|
critical: "critical"
|
|
10279
10851
|
};
|
|
10280
|
-
function
|
|
10852
|
+
function tl(e, t, n) {
|
|
10281
10853
|
return new Intl.NumberFormat(n, {
|
|
10282
10854
|
style: "currency",
|
|
10283
10855
|
currency: t,
|
|
10284
10856
|
maximumFractionDigits: 0
|
|
10285
10857
|
}).format(e / 100);
|
|
10286
10858
|
}
|
|
10287
|
-
function
|
|
10288
|
-
let r =
|
|
10859
|
+
function nl(e, t, n) {
|
|
10860
|
+
let r = tl(e.minCents, e.currency, t), i = tl(e.maxCents, e.currency, t);
|
|
10289
10861
|
return e.minCents === e.maxCents ? n.about(i) : `${r}${n.rangeJoin}${i}`;
|
|
10290
10862
|
}
|
|
10291
|
-
function
|
|
10292
|
-
let r =
|
|
10863
|
+
function rl(e, t = "pt-BR", n = Zc[Qc(t)]) {
|
|
10864
|
+
let r = Qc(t), i = tl(e.minCents, e.currency, r), a = tl(e.maxCents, e.currency, r);
|
|
10293
10865
|
return e.minCents === e.maxCents ? n.impactAbout(a) : n.impact(`${i}${n.rangeJoin}${a}`);
|
|
10294
10866
|
}
|
|
10295
|
-
var
|
|
10296
|
-
function
|
|
10867
|
+
var il = 864e5;
|
|
10868
|
+
function al(e, t, n, r) {
|
|
10297
10869
|
let i = new Date(e.start), a = new Date(e.end);
|
|
10298
10870
|
if (Number.isNaN(i.getTime()) || Number.isNaN(a.getTime())) return null;
|
|
10299
10871
|
let o = new Intl.DateTimeFormat("en", {
|
|
@@ -10305,7 +10877,7 @@ function vc(e, t, n, r) {
|
|
|
10305
10877
|
...s ? {} : { year: "numeric" },
|
|
10306
10878
|
timeZone: n
|
|
10307
10879
|
});
|
|
10308
|
-
if (a.getTime() - i.getTime() <
|
|
10880
|
+
if (a.getTime() - i.getTime() < il) {
|
|
10309
10881
|
let e = new Intl.DateTimeFormat(t, {
|
|
10310
10882
|
hour: "2-digit",
|
|
10311
10883
|
minute: "2-digit",
|
|
@@ -10316,8 +10888,8 @@ function vc(e, t, n, r) {
|
|
|
10316
10888
|
}
|
|
10317
10889
|
return r.periodRange(c.format(i), c.format(a));
|
|
10318
10890
|
}
|
|
10319
|
-
function
|
|
10320
|
-
let n =
|
|
10891
|
+
function ol({ severity: e, labels: t }) {
|
|
10892
|
+
let n = el[e] ?? "info";
|
|
10321
10893
|
return /* @__PURE__ */ g("span", {
|
|
10322
10894
|
className: `select-insight__sev select-insight__sev--${n}`,
|
|
10323
10895
|
children: [/* @__PURE__ */ h("span", {
|
|
@@ -10326,7 +10898,7 @@ function yc({ severity: e, labels: t }) {
|
|
|
10326
10898
|
}), t.severity[e] ?? e]
|
|
10327
10899
|
});
|
|
10328
10900
|
}
|
|
10329
|
-
function
|
|
10901
|
+
function sl({ label: e }) {
|
|
10330
10902
|
return /* @__PURE__ */ g("span", {
|
|
10331
10903
|
className: "select-insight__new",
|
|
10332
10904
|
children: [/* @__PURE__ */ h("span", {
|
|
@@ -10335,10 +10907,10 @@ function bc({ label: e }) {
|
|
|
10335
10907
|
}), e]
|
|
10336
10908
|
});
|
|
10337
10909
|
}
|
|
10338
|
-
function
|
|
10910
|
+
function cl(e) {
|
|
10339
10911
|
return e != null && typeof e.raw == "number" && Number.isFinite(e.raw) && e.raw >= 0 ? e.raw : null;
|
|
10340
10912
|
}
|
|
10341
|
-
function
|
|
10913
|
+
function ll({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
10342
10914
|
let r = Math.max(0, Math.min(1, e)) * 100;
|
|
10343
10915
|
return /* @__PURE__ */ h("span", {
|
|
10344
10916
|
className: `select-insight__bar select-insight__bar--${t}${n === "sm" ? " select-insight__bar--sm" : ""}`,
|
|
@@ -10349,18 +10921,18 @@ function Sc({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
|
10349
10921
|
})
|
|
10350
10922
|
});
|
|
10351
10923
|
}
|
|
10352
|
-
var
|
|
10924
|
+
var ul = /* @__PURE__ */ new Set([
|
|
10353
10925
|
"metric",
|
|
10354
10926
|
"comparison",
|
|
10355
10927
|
"table",
|
|
10356
10928
|
"items",
|
|
10357
10929
|
"text"
|
|
10358
10930
|
]);
|
|
10359
|
-
function
|
|
10360
|
-
return
|
|
10931
|
+
function dl(e) {
|
|
10932
|
+
return ul.has(e.type);
|
|
10361
10933
|
}
|
|
10362
|
-
function
|
|
10363
|
-
let t =
|
|
10934
|
+
function fl({ block: e }) {
|
|
10935
|
+
let t = cl(e.value), n = cl(e.baseline), r = t != null && n != null && Math.max(t, n) > 0 ? Math.max(t, n) / .9 : null, i = !!e.valueLabel;
|
|
10364
10936
|
return /* @__PURE__ */ g("div", {
|
|
10365
10937
|
className: `select-insight__tile select-insight__cmp${r == null ? " select-insight__cmp--plain" : ""}${!i && r != null ? " select-insight__cmp--stacked" : ""}`,
|
|
10366
10938
|
children: [
|
|
@@ -10377,7 +10949,7 @@ function Tc({ block: e }) {
|
|
|
10377
10949
|
className: "select-insight__cmpname",
|
|
10378
10950
|
children: i ? e.valueLabel : e.label
|
|
10379
10951
|
}),
|
|
10380
|
-
r == null ? null : /* @__PURE__ */ h(
|
|
10952
|
+
r == null ? null : /* @__PURE__ */ h(ll, {
|
|
10381
10953
|
fraction: (t ?? 0) / r,
|
|
10382
10954
|
tone: "own"
|
|
10383
10955
|
}),
|
|
@@ -10393,7 +10965,7 @@ function Tc({ block: e }) {
|
|
|
10393
10965
|
className: "select-insight__cmpname",
|
|
10394
10966
|
children: e.baselineLabel
|
|
10395
10967
|
}),
|
|
10396
|
-
r == null ? null : /* @__PURE__ */ h(
|
|
10968
|
+
r == null ? null : /* @__PURE__ */ h(ll, {
|
|
10397
10969
|
fraction: (n ?? 0) / r,
|
|
10398
10970
|
tone: "reference"
|
|
10399
10971
|
}),
|
|
@@ -10411,8 +10983,8 @@ function Tc({ block: e }) {
|
|
|
10411
10983
|
]
|
|
10412
10984
|
});
|
|
10413
10985
|
}
|
|
10414
|
-
function
|
|
10415
|
-
let n = e.items.map((e) =>
|
|
10986
|
+
function pl({ block: e, renderItem: t }) {
|
|
10987
|
+
let n = e.items.map((e) => cl(e.value)), r = Math.max(0, ...n.map((e) => e ?? 0)), i = e.items.length > 0 && r > 0 && n.every((e) => e != null);
|
|
10416
10988
|
return /* @__PURE__ */ g("div", {
|
|
10417
10989
|
className: "select-insight__box",
|
|
10418
10990
|
children: [/* @__PURE__ */ h("h5", {
|
|
@@ -10425,7 +10997,7 @@ function Ec({ block: e, renderItem: t }) {
|
|
|
10425
10997
|
className: "select-insight__itemlabel",
|
|
10426
10998
|
children: (t == null ? void 0 : t(e)) ?? e.label
|
|
10427
10999
|
}),
|
|
10428
|
-
i ? /* @__PURE__ */ h(
|
|
11000
|
+
i ? /* @__PURE__ */ h(ll, {
|
|
10429
11001
|
fraction: (n[a] ?? 0) / r,
|
|
10430
11002
|
size: "sm"
|
|
10431
11003
|
}) : null,
|
|
@@ -10437,14 +11009,14 @@ function Ec({ block: e, renderItem: t }) {
|
|
|
10437
11009
|
})]
|
|
10438
11010
|
});
|
|
10439
11011
|
}
|
|
10440
|
-
function
|
|
11012
|
+
function ml({ block: e }) {
|
|
10441
11013
|
let t = new Set(e.columns.filter((t) => e.rows.length > 0 && e.rows.every((e) => {
|
|
10442
11014
|
var n;
|
|
10443
|
-
return ((n = e[t.key]) == null ? void 0 : n.type) === "percent" && (
|
|
11015
|
+
return ((n = e[t.key]) == null ? void 0 : n.type) === "percent" && (cl(e[t.key]) ?? 2) <= 1;
|
|
10444
11016
|
})).map((e) => e.key)), n = (e, n) => n && t.has(e) ? /* @__PURE__ */ g("span", {
|
|
10445
11017
|
className: "select-insight__share",
|
|
10446
|
-
children: [/* @__PURE__ */ h(
|
|
10447
|
-
fraction:
|
|
11018
|
+
children: [/* @__PURE__ */ h(ll, {
|
|
11019
|
+
fraction: cl(n) ?? 0,
|
|
10448
11020
|
size: "sm"
|
|
10449
11021
|
}), /* @__PURE__ */ h("span", {
|
|
10450
11022
|
className: "select-insight__sharevalue",
|
|
@@ -10473,7 +11045,7 @@ function Dc({ block: e }) {
|
|
|
10473
11045
|
})]
|
|
10474
11046
|
}) : null] });
|
|
10475
11047
|
}
|
|
10476
|
-
function
|
|
11048
|
+
function hl({ link: e, primary: t }) {
|
|
10477
11049
|
let n = Ji(e.href);
|
|
10478
11050
|
if (!n && !e.onClick) return null;
|
|
10479
11051
|
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 +11070,8 @@ function Oc({ link: e, primary: t }) {
|
|
|
10498
11070
|
children: i
|
|
10499
11071
|
});
|
|
10500
11072
|
}
|
|
10501
|
-
function
|
|
10502
|
-
let { lang: w, labels: T } =
|
|
11073
|
+
function gl({ 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 }) {
|
|
11074
|
+
let { lang: w, labels: T } = $c(t, n), E = el[e.severity] ?? "info", D = e.period ? al(e.period, w, r, T) : null, O = (e.blocks ?? []).filter(dl), k = e.actions ?? [], A = `select-insight select-insight--${E}` + (i ? " select-insight--locked" : "") + (S ? " select-insight--bare" : "") + (C ? " " + C : ""), j = /* @__PURE__ */ g("header", {
|
|
10503
11075
|
className: "select-insight__head",
|
|
10504
11076
|
children: [/* @__PURE__ */ g("div", {
|
|
10505
11077
|
className: "select-insight__meta",
|
|
@@ -10508,12 +11080,12 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10508
11080
|
className: "select-insight__position",
|
|
10509
11081
|
children: o
|
|
10510
11082
|
}) : null,
|
|
10511
|
-
/* @__PURE__ */ h(
|
|
11083
|
+
/* @__PURE__ */ h(ol, {
|
|
10512
11084
|
severity: e.severity,
|
|
10513
11085
|
labels: T
|
|
10514
11086
|
}),
|
|
10515
11087
|
e.domain ? /* @__PURE__ */ h("span", { children: T.domain[e.domain] ?? e.domain }) : null,
|
|
10516
|
-
s && !i ? /* @__PURE__ */ h(
|
|
11088
|
+
s && !i ? /* @__PURE__ */ h(sl, { label: T.unread }) : null,
|
|
10517
11089
|
i ? /* @__PURE__ */ h(wr, {
|
|
10518
11090
|
tone: "pro",
|
|
10519
11091
|
size: "sm",
|
|
@@ -10550,7 +11122,7 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10550
11122
|
}),
|
|
10551
11123
|
/* @__PURE__ */ h("strong", {
|
|
10552
11124
|
className: "select-insight__stakevalue",
|
|
10553
|
-
children:
|
|
11125
|
+
children: nl(e.impact, w, T)
|
|
10554
11126
|
}),
|
|
10555
11127
|
/* @__PURE__ */ h("span", {
|
|
10556
11128
|
className: "select-insight__stakenote",
|
|
@@ -10599,7 +11171,7 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10599
11171
|
I || u ? /* @__PURE__ */ g("div", {
|
|
10600
11172
|
className: "select-insight__nowactions",
|
|
10601
11173
|
children: [
|
|
10602
|
-
I ? /* @__PURE__ */ h(
|
|
11174
|
+
I ? /* @__PURE__ */ h(hl, {
|
|
10603
11175
|
link: I,
|
|
10604
11176
|
primary: !0
|
|
10605
11177
|
}) : null,
|
|
@@ -10625,7 +11197,7 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10625
11197
|
return /* @__PURE__ */ h("li", { children: n ?? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", {
|
|
10626
11198
|
className: "select-insight__moretext",
|
|
10627
11199
|
children: e.label
|
|
10628
|
-
}), r ? /* @__PURE__ */ h(
|
|
11200
|
+
}), r ? /* @__PURE__ */ h(hl, {
|
|
10629
11201
|
link: r,
|
|
10630
11202
|
primary: !1
|
|
10631
11203
|
}) : null] }) }, `${e.target ?? "text"}:${t}`);
|
|
@@ -10663,7 +11235,7 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10663
11235
|
}),
|
|
10664
11236
|
/* @__PURE__ */ h("div", {
|
|
10665
11237
|
className: "select-insight__tilevalue",
|
|
10666
|
-
children:
|
|
11238
|
+
children: nl(e.impact, w, T)
|
|
10667
11239
|
}),
|
|
10668
11240
|
/* @__PURE__ */ h("div", {
|
|
10669
11241
|
className: "select-insight__tilenote",
|
|
@@ -10674,7 +11246,7 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10674
11246
|
children: [/* @__PURE__ */ h("span", { children: z.label }), /* @__PURE__ */ h("strong", { children: z.value.display })]
|
|
10675
11247
|
}) : null
|
|
10676
11248
|
]
|
|
10677
|
-
}) : null, B.map((e, t) => e.type === "comparison" ? /* @__PURE__ */ h(
|
|
11249
|
+
}) : null, B.map((e, t) => e.type === "comparison" ? /* @__PURE__ */ h(fl, { block: e }, t) : /* @__PURE__ */ g("div", {
|
|
10678
11250
|
className: "select-insight__tile",
|
|
10679
11251
|
children: [
|
|
10680
11252
|
/* @__PURE__ */ h("div", {
|
|
@@ -10706,10 +11278,10 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10706
11278
|
p.content
|
|
10707
11279
|
]
|
|
10708
11280
|
}) : null,
|
|
10709
|
-
ee.map((e, t) => e.type === "items" ? /* @__PURE__ */ h(
|
|
11281
|
+
ee.map((e, t) => e.type === "items" ? /* @__PURE__ */ h(pl, {
|
|
10710
11282
|
block: e,
|
|
10711
11283
|
renderItem: v
|
|
10712
|
-
}, t) : e.type === "table" ? /* @__PURE__ */ h(
|
|
11284
|
+
}, t) : e.type === "table" ? /* @__PURE__ */ h(ml, { block: e }, t) : e.type === "text" ? /* @__PURE__ */ g("div", {
|
|
10713
11285
|
className: "select-insight__text",
|
|
10714
11286
|
children: [/* @__PURE__ */ h(ve, {}), /* @__PURE__ */ h("span", { children: e.text })]
|
|
10715
11287
|
}, t) : null)
|
|
@@ -10792,25 +11364,25 @@ function kc({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10792
11364
|
]
|
|
10793
11365
|
});
|
|
10794
11366
|
}
|
|
10795
|
-
function
|
|
11367
|
+
function _l({ layout: e = "rows", children: t, className: n, ...r }) {
|
|
10796
11368
|
return /* @__PURE__ */ h("div", {
|
|
10797
11369
|
...r,
|
|
10798
11370
|
className: `select-insightlist${e === "cards" ? " select-insightlist--cards" : ""}${n ? " " + n : ""}`,
|
|
10799
11371
|
children: t
|
|
10800
11372
|
});
|
|
10801
11373
|
}
|
|
10802
|
-
function
|
|
10803
|
-
let { lang: _, labels: v } =
|
|
11374
|
+
function vl({ 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 }) {
|
|
11375
|
+
let { lang: _, labels: v } = $c(t, n), y = e.domain ? v.domain[e.domain] ?? e.domain : null, b = e.impact ? tl(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
11376
|
className: "select-insightrow__index select-insightrow__index--lock",
|
|
10805
11377
|
"aria-hidden": "true",
|
|
10806
11378
|
children: /* @__PURE__ */ h(tt, {})
|
|
10807
11379
|
}) : r == null ? null : /* @__PURE__ */ h("span", {
|
|
10808
11380
|
className: `select-insightrow__index${o || x && r === 1 ? " select-insightrow__index--strong" : ""}`,
|
|
10809
11381
|
children: r
|
|
10810
|
-
}), w = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(
|
|
11382
|
+
}), w = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(ol, {
|
|
10811
11383
|
severity: e.severity,
|
|
10812
11384
|
labels: v
|
|
10813
|
-
}), y && !i ? /* @__PURE__ */ h("span", { children: y }) : null] }), T = a && !i ? /* @__PURE__ */ h(
|
|
11385
|
+
}), y && !i ? /* @__PURE__ */ h("span", { children: y }) : null] }), T = a && !i ? /* @__PURE__ */ h(sl, { label: v.unread }) : null, E = x ? /* @__PURE__ */ g(m, { children: [
|
|
10814
11386
|
/* @__PURE__ */ g("span", {
|
|
10815
11387
|
className: "select-insightrow__top",
|
|
10816
11388
|
children: [
|
|
@@ -10876,8 +11448,8 @@ function jc({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread
|
|
|
10876
11448
|
}
|
|
10877
11449
|
//#endregion
|
|
10878
11450
|
//#region src/SelectAssistant.tsx
|
|
10879
|
-
var
|
|
10880
|
-
function
|
|
11451
|
+
var yl = 240;
|
|
11452
|
+
function bl({ 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
11453
|
let D = s(), O = d(null), k = d(null), A = d(null), [j, M] = f(""), N = d(0), P = b !== !1;
|
|
10882
11454
|
o(() => {
|
|
10883
11455
|
let t = O.current;
|
|
@@ -10895,7 +11467,7 @@ function Nc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
10895
11467
|
let o = t.scrollHeight - t.clientHeight, s = a ? Math.min(o, a.getBoundingClientRect().top - t.getBoundingClientRect().top + t.scrollTop - 12) : o;
|
|
10896
11468
|
n ? t.scrollTop = s : s > t.scrollTop + 1 && (typeof t.scrollTo == "function" ? t.scrollTo({
|
|
10897
11469
|
top: s,
|
|
10898
|
-
behavior:
|
|
11470
|
+
behavior: wl() ? "auto" : "smooth"
|
|
10899
11471
|
}) : t.scrollTop = s);
|
|
10900
11472
|
}, [
|
|
10901
11473
|
e,
|
|
@@ -10959,7 +11531,7 @@ function Nc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
10959
11531
|
className: "select-assistant__body",
|
|
10960
11532
|
role: "log",
|
|
10961
11533
|
"aria-live": "polite",
|
|
10962
|
-
children: [l, P ? /* @__PURE__ */ h(
|
|
11534
|
+
children: [l, P ? /* @__PURE__ */ h(Cl, { label: typeof b == "string" ? b : void 0 }) : null]
|
|
10963
11535
|
}),
|
|
10964
11536
|
(_ || p && p.length > 0) && /* @__PURE__ */ g("footer", {
|
|
10965
11537
|
className: "select-assistant__foot",
|
|
@@ -10983,7 +11555,7 @@ function Nc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
10983
11555
|
onChange: (e) => M(e.target.value),
|
|
10984
11556
|
placeholder: v,
|
|
10985
11557
|
"aria-label": T,
|
|
10986
|
-
maxLength:
|
|
11558
|
+
maxLength: yl,
|
|
10987
11559
|
autoComplete: "off",
|
|
10988
11560
|
enterKeyHint: "send",
|
|
10989
11561
|
disabled: y
|
|
@@ -11015,7 +11587,7 @@ function Nc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
11015
11587
|
})]
|
|
11016
11588
|
});
|
|
11017
11589
|
}
|
|
11018
|
-
function
|
|
11590
|
+
function xl({ from: e, bare: t = !1, children: n }) {
|
|
11019
11591
|
return /* @__PURE__ */ h("div", {
|
|
11020
11592
|
className: `select-chat__msg select-chat__msg--${e}${t ? " select-chat__msg--bare" : ""}`,
|
|
11021
11593
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -11024,13 +11596,13 @@ function Pc({ from: e, bare: t = !1, children: n }) {
|
|
|
11024
11596
|
})
|
|
11025
11597
|
});
|
|
11026
11598
|
}
|
|
11027
|
-
function
|
|
11599
|
+
function Sl({ children: e }) {
|
|
11028
11600
|
return /* @__PURE__ */ h("div", {
|
|
11029
11601
|
className: "select-chat__turn",
|
|
11030
11602
|
children: e
|
|
11031
11603
|
});
|
|
11032
11604
|
}
|
|
11033
|
-
function
|
|
11605
|
+
function Cl({ label: e = "Escrevendo…" }) {
|
|
11034
11606
|
return /* @__PURE__ */ h("div", {
|
|
11035
11607
|
className: "select-chat__msg select-chat__msg--assistant select-chat__msg--typing",
|
|
11036
11608
|
role: "status",
|
|
@@ -11046,19 +11618,19 @@ function Ic({ label: e = "Escrevendo…" }) {
|
|
|
11046
11618
|
})
|
|
11047
11619
|
});
|
|
11048
11620
|
}
|
|
11049
|
-
function
|
|
11621
|
+
function wl() {
|
|
11050
11622
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
11051
11623
|
}
|
|
11052
11624
|
//#endregion
|
|
11053
11625
|
//#region src/SelectNumberedList.tsx
|
|
11054
|
-
function
|
|
11626
|
+
function Tl({ children: e, className: t, ...n }) {
|
|
11055
11627
|
return /* @__PURE__ */ h("ol", {
|
|
11056
11628
|
...n,
|
|
11057
11629
|
className: `select-numlist${t ? " " + t : ""}`,
|
|
11058
11630
|
children: e
|
|
11059
11631
|
});
|
|
11060
11632
|
}
|
|
11061
|
-
function
|
|
11633
|
+
function El({ title: e, children: t, className: n, ...r }) {
|
|
11062
11634
|
return /* @__PURE__ */ h("li", {
|
|
11063
11635
|
...r,
|
|
11064
11636
|
className: `select-numlist__item${n ? " " + n : ""}`,
|
|
@@ -11076,7 +11648,7 @@ function zc({ title: e, children: t, className: n, ...r }) {
|
|
|
11076
11648
|
}
|
|
11077
11649
|
//#endregion
|
|
11078
11650
|
//#region src/SelectChartCard.tsx
|
|
11079
|
-
var
|
|
11651
|
+
var Dl = 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
11652
|
let m = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
11081
11653
|
return /* @__PURE__ */ g("div", {
|
|
11082
11654
|
ref: p,
|
|
@@ -11119,7 +11691,7 @@ var Bc = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1,
|
|
|
11119
11691
|
});
|
|
11120
11692
|
//#endregion
|
|
11121
11693
|
//#region src/chartUtils.ts
|
|
11122
|
-
function
|
|
11694
|
+
function Ol() {
|
|
11123
11695
|
let [e, t] = f(1);
|
|
11124
11696
|
return l(() => {
|
|
11125
11697
|
let e = () => {
|
|
@@ -11129,8 +11701,8 @@ function Vc() {
|
|
|
11129
11701
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
11130
11702
|
}, []), e;
|
|
11131
11703
|
}
|
|
11132
|
-
function
|
|
11133
|
-
let t = d(null), [n, r] = f(0), i =
|
|
11704
|
+
function kl(e) {
|
|
11705
|
+
let t = d(null), [n, r] = f(0), i = Ol();
|
|
11134
11706
|
return l(() => {
|
|
11135
11707
|
let e = t.current;
|
|
11136
11708
|
if (!e) return;
|
|
@@ -11147,7 +11719,7 @@ function Hc(e) {
|
|
|
11147
11719
|
height: Math.round(e * i)
|
|
11148
11720
|
};
|
|
11149
11721
|
}
|
|
11150
|
-
function
|
|
11722
|
+
function Al(e, t) {
|
|
11151
11723
|
let [n, r] = f(t);
|
|
11152
11724
|
return l(() => {
|
|
11153
11725
|
let t = e.current;
|
|
@@ -11161,15 +11733,15 @@ function Uc(e, t) {
|
|
|
11161
11733
|
return i.observe(t), () => i.disconnect();
|
|
11162
11734
|
}, [e]), n;
|
|
11163
11735
|
}
|
|
11164
|
-
function
|
|
11736
|
+
function jl(e) {
|
|
11165
11737
|
if (e <= 0) return 1;
|
|
11166
11738
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
11167
11739
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
11168
11740
|
}
|
|
11169
|
-
function
|
|
11741
|
+
function Ml(e, t = 4) {
|
|
11170
11742
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
11171
11743
|
}
|
|
11172
|
-
function
|
|
11744
|
+
function Nl(e, t = 5) {
|
|
11173
11745
|
if (!(e > 0)) return {
|
|
11174
11746
|
max: 1,
|
|
11175
11747
|
values: [0, 1]
|
|
@@ -11181,10 +11753,10 @@ function Kc(e, t = 5) {
|
|
|
11181
11753
|
values: s
|
|
11182
11754
|
};
|
|
11183
11755
|
}
|
|
11184
|
-
function
|
|
11756
|
+
function Pl(e) {
|
|
11185
11757
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
11186
11758
|
}
|
|
11187
|
-
function
|
|
11759
|
+
function Fl(e) {
|
|
11188
11760
|
let t = e.length;
|
|
11189
11761
|
if (t === 0) return "";
|
|
11190
11762
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -11208,23 +11780,23 @@ function Jc(e) {
|
|
|
11208
11780
|
}
|
|
11209
11781
|
return s;
|
|
11210
11782
|
}
|
|
11211
|
-
function
|
|
11783
|
+
function Il(e, t) {
|
|
11212
11784
|
if (e.length === 0) return "";
|
|
11213
11785
|
let n = e[0], r = e[e.length - 1];
|
|
11214
|
-
return `${
|
|
11786
|
+
return `${Fl(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
11215
11787
|
}
|
|
11216
|
-
function
|
|
11217
|
-
return e.length === 0 || t.length === 0 ? "" : `${
|
|
11788
|
+
function Ll(e, t) {
|
|
11789
|
+
return e.length === 0 || t.length === 0 ? "" : `${Fl(e)} ${Fl([...t].reverse()).replace(/^M/, "L")} Z`;
|
|
11218
11790
|
}
|
|
11219
|
-
function
|
|
11791
|
+
function Rl(e, t, n, r) {
|
|
11220
11792
|
let i = (r - 90) * Math.PI / 180;
|
|
11221
11793
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
11222
11794
|
}
|
|
11223
|
-
function
|
|
11224
|
-
let [o, s] =
|
|
11795
|
+
function zl(e, t, n, r, i, a) {
|
|
11796
|
+
let [o, s] = Rl(e, t, n, i), [c, l] = Rl(e, t, n, a), [u, d] = Rl(e, t, r, a), [f, p] = Rl(e, t, r, i), m = +(a - i > 180);
|
|
11225
11797
|
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
11798
|
}
|
|
11227
|
-
var
|
|
11799
|
+
var Bl = [
|
|
11228
11800
|
"var(--select-chart-1)",
|
|
11229
11801
|
"var(--select-chart-2)",
|
|
11230
11802
|
"var(--select-chart-3)",
|
|
@@ -11232,13 +11804,13 @@ var $c = [
|
|
|
11232
11804
|
"var(--select-chart-5)"
|
|
11233
11805
|
];
|
|
11234
11806
|
function X(e) {
|
|
11235
|
-
return
|
|
11807
|
+
return Bl[e % Bl.length];
|
|
11236
11808
|
}
|
|
11237
11809
|
function Z(e) {
|
|
11238
11810
|
let t = Math.abs(e);
|
|
11239
11811
|
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
11812
|
}
|
|
11241
|
-
var
|
|
11813
|
+
var Vl = {
|
|
11242
11814
|
top: 16,
|
|
11243
11815
|
right: 22,
|
|
11244
11816
|
bottom: 32,
|
|
@@ -11246,8 +11818,8 @@ var el = {
|
|
|
11246
11818
|
};
|
|
11247
11819
|
//#endregion
|
|
11248
11820
|
//#region src/SelectSparkline.tsx
|
|
11249
|
-
function
|
|
11250
|
-
let { ref: a, width: o } =
|
|
11821
|
+
function Hl({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
11822
|
+
let { ref: a, width: o } = kl(n), c = t ?? X(0), l = s(), u = null;
|
|
11251
11823
|
if (o > 0 && e.length > 1) {
|
|
11252
11824
|
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
11825
|
u = /* @__PURE__ */ g("svg", {
|
|
@@ -11273,11 +11845,11 @@ function tl({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
11273
11845
|
})]
|
|
11274
11846
|
}) }),
|
|
11275
11847
|
/* @__PURE__ */ h("path", {
|
|
11276
|
-
d:
|
|
11848
|
+
d: Il(a, n - 4),
|
|
11277
11849
|
fill: `url(#${l}-sa)`
|
|
11278
11850
|
}),
|
|
11279
11851
|
/* @__PURE__ */ h("path", {
|
|
11280
|
-
d:
|
|
11852
|
+
d: Fl(a),
|
|
11281
11853
|
fill: "none",
|
|
11282
11854
|
stroke: c,
|
|
11283
11855
|
strokeWidth: 2,
|
|
@@ -11356,7 +11928,7 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
11356
11928
|
}, t))]
|
|
11357
11929
|
});
|
|
11358
11930
|
}
|
|
11359
|
-
function
|
|
11931
|
+
function Ul({ tip: e, onDismiss: t }) {
|
|
11360
11932
|
return o(() => {
|
|
11361
11933
|
if (e) return window.addEventListener("scroll", t, !0), window.addEventListener("resize", t), () => {
|
|
11362
11934
|
window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", t);
|
|
@@ -11369,8 +11941,8 @@ function nl({ tip: e, onDismiss: t }) {
|
|
|
11369
11941
|
}
|
|
11370
11942
|
//#endregion
|
|
11371
11943
|
//#region src/SelectBarChart.tsx
|
|
11372
|
-
function
|
|
11373
|
-
let { ref: o, width: c } =
|
|
11944
|
+
function Wl({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
11945
|
+
let { ref: o, width: c } = kl(t), l = Q(), u = s(), d = n ?? X(0), f = jl(Math.max(0, ...e.map((e) => e.value))), p = Vl, 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
11946
|
return /* @__PURE__ */ g("div", {
|
|
11375
11947
|
...a,
|
|
11376
11948
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -11396,7 +11968,7 @@ function rl({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
11396
11968
|
stopOpacity: .62
|
|
11397
11969
|
})]
|
|
11398
11970
|
}) }),
|
|
11399
|
-
|
|
11971
|
+
Ml(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
11400
11972
|
x1: p.left,
|
|
11401
11973
|
x2: c - p.right,
|
|
11402
11974
|
y1: x(e),
|
|
@@ -11446,14 +12018,14 @@ function rl({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
11446
12018
|
}
|
|
11447
12019
|
//#endregion
|
|
11448
12020
|
//#region src/SelectLineChart.tsx
|
|
11449
|
-
var
|
|
11450
|
-
function
|
|
12021
|
+
var Gl = (e) => e != null && Number.isFinite(e), Kl = 64;
|
|
12022
|
+
function ql(e, t) {
|
|
11451
12023
|
let n = [], r = [];
|
|
11452
|
-
for (let i = 0; i < t; i++)
|
|
12024
|
+
for (let i = 0; i < t; i++) Gl(e[i]) ? r.push(i) : r.length && (n.push(r), r = []);
|
|
11453
12025
|
return r.length && n.push(r), n;
|
|
11454
12026
|
}
|
|
11455
|
-
function
|
|
11456
|
-
let { ref: l, width: u } =
|
|
12027
|
+
function Jl({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1, className: o, ...c }) {
|
|
12028
|
+
let { ref: l, width: u } = kl(r), d = Q(), p = s(), [m, _] = f(null), { max: v, values: y } = Nl(Math.max(0, ...e.flatMap((e) => e.data.filter((e) => Number.isFinite(e))))), b = Vl, 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(Kl / Math.max(E, 1))), O = (e) => e === C - 1 || e % D === 0 && (C - 1 - e) * E >= Kl, k = b.top + S;
|
|
11457
12029
|
return /* @__PURE__ */ g("div", {
|
|
11458
12030
|
...c,
|
|
11459
12031
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -11508,7 +12080,7 @@ function sl({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11508
12080
|
si: t
|
|
11509
12081
|
})).sort((e, t) => Number(!!t.s.dashed) - Number(!!e.s.dashed)).map(({ s: e, si: n }) => {
|
|
11510
12082
|
let r = e.color ?? X(n);
|
|
11511
|
-
return /* @__PURE__ */ h("g", { children:
|
|
12083
|
+
return /* @__PURE__ */ h("g", { children: ql(e.data, C).map((i, o) => {
|
|
11512
12084
|
let s = i.map((t) => [w(t), T(e.data[t])]);
|
|
11513
12085
|
return s.length === 1 ? /* @__PURE__ */ h("circle", {
|
|
11514
12086
|
cx: s[0][0],
|
|
@@ -11517,11 +12089,11 @@ function sl({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11517
12089
|
fill: r,
|
|
11518
12090
|
className: "select-chart__dot select-chart__dot--lone"
|
|
11519
12091
|
}, o) : /* @__PURE__ */ g(t, { children: [a && !e.dashed && /* @__PURE__ */ h("path", {
|
|
11520
|
-
d:
|
|
12092
|
+
d: Il(s, k),
|
|
11521
12093
|
fill: `url(#${p}-a${n})`,
|
|
11522
12094
|
className: "select-chart__area"
|
|
11523
12095
|
}), /* @__PURE__ */ h("path", {
|
|
11524
|
-
d:
|
|
12096
|
+
d: Fl(s),
|
|
11525
12097
|
fill: "none",
|
|
11526
12098
|
stroke: r,
|
|
11527
12099
|
strokeWidth: e.dashed ? 1.75 : 2.25,
|
|
@@ -11534,7 +12106,7 @@ function sl({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11534
12106
|
})] }, o);
|
|
11535
12107
|
}) }, n);
|
|
11536
12108
|
}),
|
|
11537
|
-
m != null && e.map((e, t) =>
|
|
12109
|
+
m != null && e.map((e, t) => Gl(e.data[m]) ? /* @__PURE__ */ h("circle", {
|
|
11538
12110
|
cx: w(m),
|
|
11539
12111
|
cy: T(e.data[m] ?? 0),
|
|
11540
12112
|
r: 3.5,
|
|
@@ -11561,7 +12133,7 @@ function sl({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11561
12133
|
let r = e.map((e, t) => ({
|
|
11562
12134
|
s: e,
|
|
11563
12135
|
si: t
|
|
11564
|
-
})).filter(({ s: e }) =>
|
|
12136
|
+
})).filter(({ s: e }) => Gl(e.data[n]));
|
|
11565
12137
|
if (!r.length) {
|
|
11566
12138
|
d.hide();
|
|
11567
12139
|
return;
|
|
@@ -11592,8 +12164,8 @@ function sl({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11592
12164
|
}
|
|
11593
12165
|
//#endregion
|
|
11594
12166
|
//#region src/SelectStackedArea.tsx
|
|
11595
|
-
function
|
|
11596
|
-
let { ref: o, width: c } =
|
|
12167
|
+
function Yl({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
12168
|
+
let { ref: o, width: c } = kl(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 = jl(Math.max(0, ..._)), b = Vl, 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
12169
|
return /* @__PURE__ */ g("div", {
|
|
11598
12170
|
...a,
|
|
11599
12171
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -11622,7 +12194,7 @@ function cl({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
11622
12194
|
})]
|
|
11623
12195
|
}, t);
|
|
11624
12196
|
}) }),
|
|
11625
|
-
|
|
12197
|
+
Ml(y).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
11626
12198
|
x1: b.left,
|
|
11627
12199
|
x2: c - b.right,
|
|
11628
12200
|
y1: w(e),
|
|
@@ -11641,10 +12213,10 @@ function cl({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
11641
12213
|
return /* @__PURE__ */ g("g", {
|
|
11642
12214
|
className: "select-chart__area",
|
|
11643
12215
|
children: [/* @__PURE__ */ h("path", {
|
|
11644
|
-
d:
|
|
12216
|
+
d: Ll(i, a),
|
|
11645
12217
|
fill: `url(#${u}-b${n})`
|
|
11646
12218
|
}), /* @__PURE__ */ h("path", {
|
|
11647
|
-
d:
|
|
12219
|
+
d: Fl(i),
|
|
11648
12220
|
fill: "none",
|
|
11649
12221
|
stroke: r,
|
|
11650
12222
|
strokeWidth: 1.5,
|
|
@@ -11698,11 +12270,11 @@ function cl({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
11698
12270
|
}
|
|
11699
12271
|
//#endregion
|
|
11700
12272
|
//#region src/SelectComboChart.tsx
|
|
11701
|
-
function
|
|
11702
|
-
let { ref: l, width: u } =
|
|
11703
|
-
...
|
|
12273
|
+
function Xl({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
|
|
12274
|
+
let { ref: l, width: u } = kl(r), d = Q(), p = s(), [m, _] = f(null), v = {
|
|
12275
|
+
...Vl,
|
|
11704
12276
|
right: 58
|
|
11705
|
-
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S =
|
|
12277
|
+
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = jl(Math.max(0, ...t.data)), C = jl(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
12278
|
return /* @__PURE__ */ g("div", {
|
|
11707
12279
|
...c,
|
|
11708
12280
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -11728,7 +12300,7 @@ function ll({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
11728
12300
|
stopOpacity: .55
|
|
11729
12301
|
})]
|
|
11730
12302
|
}) }),
|
|
11731
|
-
|
|
12303
|
+
Ml(S).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
11732
12304
|
x1: v.left,
|
|
11733
12305
|
x2: u - v.right,
|
|
11734
12306
|
y1: A(e),
|
|
@@ -11742,7 +12314,7 @@ function ll({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
11742
12314
|
textAnchor: "end",
|
|
11743
12315
|
children: i(e)
|
|
11744
12316
|
})] }, t)),
|
|
11745
|
-
|
|
12317
|
+
Ml(C).map((e, t) => /* @__PURE__ */ h("text", {
|
|
11746
12318
|
x: u - 4,
|
|
11747
12319
|
y: j(e),
|
|
11748
12320
|
className: "select-chart__ylabel",
|
|
@@ -11771,7 +12343,7 @@ function ll({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
11771
12343
|
className: "select-chart__crosshair"
|
|
11772
12344
|
}),
|
|
11773
12345
|
/* @__PURE__ */ h("path", {
|
|
11774
|
-
d:
|
|
12346
|
+
d: Fl(N),
|
|
11775
12347
|
fill: "none",
|
|
11776
12348
|
stroke: O,
|
|
11777
12349
|
strokeWidth: 2.5,
|
|
@@ -11829,8 +12401,8 @@ function ll({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
11829
12401
|
}
|
|
11830
12402
|
//#endregion
|
|
11831
12403
|
//#region src/SelectDonut.tsx
|
|
11832
|
-
var
|
|
11833
|
-
let p = Q(), m = s(), _ = d(null), v =
|
|
12404
|
+
var Zl = 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) {
|
|
12405
|
+
let p = Q(), m = s(), _ = d(null), v = Al(_, 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
12406
|
return /* @__PURE__ */ g("div", {
|
|
11835
12407
|
ref: f,
|
|
11836
12408
|
...u,
|
|
@@ -11873,7 +12445,7 @@ var ul = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
11873
12445
|
w += e.value;
|
|
11874
12446
|
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
12447
|
return /* @__PURE__ */ h("path", {
|
|
11876
|
-
d:
|
|
12448
|
+
d: zl(b, x, S, C, c, l),
|
|
11877
12449
|
fill: `url(#${m}-s${t})`,
|
|
11878
12450
|
className: "select-chart__seg",
|
|
11879
12451
|
onMouseEnter: () => {
|
|
@@ -11921,9 +12493,9 @@ var ul = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
11921
12493
|
/* @__PURE__ */ h($, { tip: p.tip })
|
|
11922
12494
|
]
|
|
11923
12495
|
});
|
|
11924
|
-
}),
|
|
11925
|
-
function
|
|
11926
|
-
let { ref: u, width: d } =
|
|
12496
|
+
}), Ql = 6.4, $l = 12;
|
|
12497
|
+
function eu({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, marker: a, tooltip: o, className: c, ...l }) {
|
|
12498
|
+
let { ref: u, width: d } = kl(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 } = Nl(i ? Math.max(0, ...v) : Math.max(0, ...e.flatMap((e) => e.data)), 4), x = Vl, 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 * Ql + $l) / T)) : 1, P = j ?? 0, F = (e) => N === 1 || ((e - P) % N + N) % N === 0, I = (t, n) => {
|
|
11927
12499
|
if (o) {
|
|
11928
12500
|
let e = o(t);
|
|
11929
12501
|
return e ? {
|
|
@@ -12090,7 +12662,7 @@ function pl({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
12090
12662
|
}
|
|
12091
12663
|
//#endregion
|
|
12092
12664
|
//#region src/SelectChartLegend.tsx
|
|
12093
|
-
function
|
|
12665
|
+
function tu({ items: e, className: t, ...n }) {
|
|
12094
12666
|
return /* @__PURE__ */ h("div", {
|
|
12095
12667
|
...n,
|
|
12096
12668
|
className: `select-chartlegend${t ? " " + t : ""}`,
|
|
@@ -12119,7 +12691,7 @@ function ml({ items: e, className: t, ...n }) {
|
|
|
12119
12691
|
}
|
|
12120
12692
|
//#endregion
|
|
12121
12693
|
//#region src/SelectShareBar.tsx
|
|
12122
|
-
function
|
|
12694
|
+
function nu({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm", onSelect: a, selected: o, hint: s, className: c, ...l }) {
|
|
12123
12695
|
let u = e.map((e, t) => ({
|
|
12124
12696
|
...e,
|
|
12125
12697
|
key: e.key ?? e.label,
|
|
@@ -12224,7 +12796,7 @@ function hl({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm",
|
|
|
12224
12796
|
}
|
|
12225
12797
|
//#endregion
|
|
12226
12798
|
//#region src/SelectRing.tsx
|
|
12227
|
-
var
|
|
12799
|
+
var ru = 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
12800
|
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
12801
|
"--select-ring-size": `${n / 16}rem`,
|
|
12230
12802
|
...u
|
|
@@ -12268,7 +12840,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12268
12840
|
})]
|
|
12269
12841
|
})]
|
|
12270
12842
|
});
|
|
12271
|
-
}),
|
|
12843
|
+
}), iu = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
|
|
12272
12844
|
let l = (t) => {
|
|
12273
12845
|
let n = e[t];
|
|
12274
12846
|
return n != null && n.state !== "upcoming";
|
|
@@ -12326,7 +12898,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12326
12898
|
})
|
|
12327
12899
|
})
|
|
12328
12900
|
});
|
|
12329
|
-
}),
|
|
12901
|
+
}), au = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
|
|
12330
12902
|
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
12903
|
return /* @__PURE__ */ g("span", {
|
|
12332
12904
|
ref: o,
|
|
@@ -12342,7 +12914,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12342
12914
|
children: l
|
|
12343
12915
|
})]
|
|
12344
12916
|
});
|
|
12345
|
-
}),
|
|
12917
|
+
}), ou = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
|
|
12346
12918
|
return /* @__PURE__ */ h("span", {
|
|
12347
12919
|
ref: a,
|
|
12348
12920
|
"aria-hidden": "true",
|
|
@@ -12350,7 +12922,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12350
12922
|
className: `select-icontile select-icontile--${t} select-icontile--${n}${r ? " " + r : ""}`,
|
|
12351
12923
|
children: e
|
|
12352
12924
|
});
|
|
12353
|
-
}),
|
|
12925
|
+
}), su = 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
12926
|
let v = a != null && o === "end";
|
|
12355
12927
|
return /* @__PURE__ */ h("section", {
|
|
12356
12928
|
ref: _,
|
|
@@ -12422,7 +12994,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12422
12994
|
]
|
|
12423
12995
|
})
|
|
12424
12996
|
});
|
|
12425
|
-
}),
|
|
12997
|
+
}), cu = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
|
|
12426
12998
|
return /* @__PURE__ */ g("article", {
|
|
12427
12999
|
ref: l,
|
|
12428
13000
|
...c,
|
|
@@ -12457,7 +13029,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12457
13029
|
})]
|
|
12458
13030
|
})]
|
|
12459
13031
|
});
|
|
12460
|
-
}),
|
|
13032
|
+
}), lu = r(function({ items: e, order: t = "label-first", columns: n, narrowColumns: r, loading: i = !1, className: a, ...o }, s) {
|
|
12461
13033
|
return /* @__PURE__ */ h("dl", {
|
|
12462
13034
|
ref: s,
|
|
12463
13035
|
"aria-busy": i || void 0,
|
|
@@ -12484,7 +13056,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12484
13056
|
]
|
|
12485
13057
|
}, e.key ?? t))
|
|
12486
13058
|
});
|
|
12487
|
-
}),
|
|
13059
|
+
}), uu = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
|
|
12488
13060
|
let o = (t ?? "").replace(/\D/g, "").slice(-4);
|
|
12489
13061
|
return /* @__PURE__ */ g("div", {
|
|
12490
13062
|
ref: a,
|
|
@@ -12527,7 +13099,7 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12527
13099
|
})
|
|
12528
13100
|
]
|
|
12529
13101
|
});
|
|
12530
|
-
}),
|
|
13102
|
+
}), du = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
|
|
12531
13103
|
let s = Math.max(1, ...e.map((e) => e.value));
|
|
12532
13104
|
return /* @__PURE__ */ h("div", {
|
|
12533
13105
|
ref: o,
|
|
@@ -12569,19 +13141,19 @@ var gl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12569
13141
|
});
|
|
12570
13142
|
//#endregion
|
|
12571
13143
|
//#region src/SelectGauge.tsx
|
|
12572
|
-
function
|
|
13144
|
+
function fu(e) {
|
|
12573
13145
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
12574
13146
|
}
|
|
12575
|
-
function
|
|
13147
|
+
function pu(e, t, n, r) {
|
|
12576
13148
|
let i = Math.PI + r * Math.PI;
|
|
12577
13149
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
12578
13150
|
}
|
|
12579
|
-
function
|
|
12580
|
-
let [a, o] =
|
|
13151
|
+
function mu(e, t, n, r, i) {
|
|
13152
|
+
let [a, o] = pu(e, t, n, r), [s, c] = pu(e, t, n, i);
|
|
12581
13153
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
12582
13154
|
}
|
|
12583
|
-
var
|
|
12584
|
-
let u =
|
|
13155
|
+
var hu = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, gu = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = hu, className: s, ...c }, l) {
|
|
13156
|
+
let u = fu(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
13157
|
value: u,
|
|
12586
13158
|
format: o
|
|
12587
13159
|
});
|
|
@@ -12604,13 +13176,13 @@ var Ol = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12604
13176
|
"aria-hidden": "true",
|
|
12605
13177
|
children: [/* @__PURE__ */ h("path", {
|
|
12606
13178
|
className: "select-gauge__track",
|
|
12607
|
-
d:
|
|
13179
|
+
d: mu(m, _, p, 0, 1),
|
|
12608
13180
|
fill: "none",
|
|
12609
13181
|
strokeWidth: d,
|
|
12610
13182
|
strokeLinecap: "round"
|
|
12611
13183
|
}), u > 0 && /* @__PURE__ */ h("path", {
|
|
12612
13184
|
className: "select-gauge__arc",
|
|
12613
|
-
d:
|
|
13185
|
+
d: mu(m, _, p, 0, u / 100),
|
|
12614
13186
|
fill: "none",
|
|
12615
13187
|
stroke: a ?? "var(--select-chart-1)",
|
|
12616
13188
|
strokeWidth: d,
|
|
@@ -12633,7 +13205,7 @@ var Ol = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12633
13205
|
children: n
|
|
12634
13206
|
})]
|
|
12635
13207
|
});
|
|
12636
|
-
}),
|
|
13208
|
+
}), _u = 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
13209
|
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
13210
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
12639
13211
|
width: "fit-content",
|
|
@@ -12693,12 +13265,12 @@ var Ol = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12693
13265
|
}, c);
|
|
12694
13266
|
})] }, n.label))
|
|
12695
13267
|
]
|
|
12696
|
-
}), /* @__PURE__ */ h(
|
|
13268
|
+
}), /* @__PURE__ */ h(Ul, {
|
|
12697
13269
|
tip: _.tip,
|
|
12698
13270
|
onDismiss: _.hide
|
|
12699
13271
|
})]
|
|
12700
13272
|
});
|
|
12701
|
-
}),
|
|
13273
|
+
}), vu = 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
13274
|
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
13275
|
width: f * m - r,
|
|
12704
13276
|
height: p * m - r
|
|
@@ -12760,13 +13332,13 @@ var Ol = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12760
13332
|
/* @__PURE__ */ h("span", { children: "mais" })
|
|
12761
13333
|
]
|
|
12762
13334
|
}),
|
|
12763
|
-
/* @__PURE__ */ h(
|
|
13335
|
+
/* @__PURE__ */ h(Ul, {
|
|
12764
13336
|
tip: u.tip,
|
|
12765
13337
|
onDismiss: u.hide
|
|
12766
13338
|
})
|
|
12767
13339
|
]
|
|
12768
13340
|
});
|
|
12769
|
-
}),
|
|
13341
|
+
}), yu = [
|
|
12770
13342
|
{
|
|
12771
13343
|
key: "RR",
|
|
12772
13344
|
label: "RR",
|
|
@@ -12959,7 +13531,7 @@ var Ol = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12959
13531
|
];
|
|
12960
13532
|
//#endregion
|
|
12961
13533
|
//#region src/SelectProgressList.tsx
|
|
12962
|
-
function
|
|
13534
|
+
function bu({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1, max: a }) {
|
|
12963
13535
|
if (e.length === 0) return /* @__PURE__ */ h("div", {
|
|
12964
13536
|
className: "select-progresslist__empty",
|
|
12965
13537
|
children: r
|
|
@@ -13010,7 +13582,7 @@ function Nl({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
13010
13582
|
}
|
|
13011
13583
|
//#endregion
|
|
13012
13584
|
//#region src/SelectRadialBar.tsx
|
|
13013
|
-
var
|
|
13585
|
+
var xu = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Su = 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
13586
|
let d = s(), f = t / 2, p = t / 2;
|
|
13015
13587
|
return /* @__PURE__ */ g("div", {
|
|
13016
13588
|
ref: u,
|
|
@@ -13050,7 +13622,7 @@ var Pl = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Fl = r(f
|
|
|
13050
13622
|
}) }), e.map((e, i) => {
|
|
13051
13623
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
13052
13624
|
if (a <= n / 2) return null;
|
|
13053
|
-
let o =
|
|
13625
|
+
let o = xu(e.value);
|
|
13054
13626
|
return /* @__PURE__ */ g("g", {
|
|
13055
13627
|
transform: `rotate(-90 ${f} ${p})`,
|
|
13056
13628
|
children: [/* @__PURE__ */ h("circle", {
|
|
@@ -13079,7 +13651,7 @@ var Pl = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Fl = r(f
|
|
|
13079
13651
|
className: "select-radial__center",
|
|
13080
13652
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ h("strong", {
|
|
13081
13653
|
className: "select-radial__value",
|
|
13082
|
-
children: i(
|
|
13654
|
+
children: i(xu(e[0].value))
|
|
13083
13655
|
}) : null)
|
|
13084
13656
|
})]
|
|
13085
13657
|
}), o && /* @__PURE__ */ h("ul", {
|
|
@@ -13097,15 +13669,15 @@ var Pl = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Fl = r(f
|
|
|
13097
13669
|
}),
|
|
13098
13670
|
/* @__PURE__ */ h("span", {
|
|
13099
13671
|
className: "select-donut__legval",
|
|
13100
|
-
children: i(
|
|
13672
|
+
children: i(xu(e.value))
|
|
13101
13673
|
})
|
|
13102
13674
|
]
|
|
13103
13675
|
}, t))
|
|
13104
13676
|
})]
|
|
13105
13677
|
});
|
|
13106
|
-
}),
|
|
13107
|
-
function
|
|
13108
|
-
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } =
|
|
13678
|
+
}), Cu = 6.1, wu = 12, Tu = 56, Eu = .4;
|
|
13679
|
+
function Du({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
|
|
13680
|
+
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = kl(d), m = Q(), _ = s(), v = c && c > 0 ? c : jl(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(Tu, y * Cu + wu), Math.max(Tu, p * Eu)), x = o ?? b, S = Math.max(3, Math.floor((x - wu) / Cu)), 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
13681
|
return /* @__PURE__ */ g("div", {
|
|
13110
13682
|
...u,
|
|
13111
13683
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -13134,7 +13706,7 @@ function Bl({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
13134
13706
|
})]
|
|
13135
13707
|
}, t);
|
|
13136
13708
|
}) }),
|
|
13137
|
-
|
|
13709
|
+
Ml(v).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13138
13710
|
x1: O(e),
|
|
13139
13711
|
x2: O(e),
|
|
13140
13712
|
y1: 6,
|
|
@@ -13180,7 +13752,7 @@ function Bl({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
13180
13752
|
onMouseLeave: m.hide
|
|
13181
13753
|
}),
|
|
13182
13754
|
/* @__PURE__ */ g("text", {
|
|
13183
|
-
x: x -
|
|
13755
|
+
x: x - wu / 2,
|
|
13184
13756
|
y: n,
|
|
13185
13757
|
className: "select-chart__ylabel",
|
|
13186
13758
|
dominantBaseline: "middle",
|
|
@@ -13195,8 +13767,8 @@ function Bl({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
13195
13767
|
}
|
|
13196
13768
|
//#endregion
|
|
13197
13769
|
//#region src/SelectWaterfall.tsx
|
|
13198
|
-
function
|
|
13199
|
-
let { ref: a, width: o } =
|
|
13770
|
+
function Ou({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
13771
|
+
let { ref: a, width: o } = kl(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
13200
13772
|
if (e.total) return u = e.value, {
|
|
13201
13773
|
...e,
|
|
13202
13774
|
start: 0,
|
|
@@ -13208,7 +13780,7 @@ function Vl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13208
13780
|
start: t,
|
|
13209
13781
|
end: u
|
|
13210
13782
|
};
|
|
13211
|
-
}), f =
|
|
13783
|
+
}), f = jl(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = Vl, 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
13784
|
total: "var(--select-chart-1)",
|
|
13213
13785
|
inc: "var(--select-chart-4)",
|
|
13214
13786
|
dec: "var(--select-chart-3)"
|
|
@@ -13242,7 +13814,7 @@ function Vl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13242
13814
|
stopOpacity: .62
|
|
13243
13815
|
})]
|
|
13244
13816
|
}, e)) }),
|
|
13245
|
-
|
|
13817
|
+
Ml(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13246
13818
|
x1: p.left,
|
|
13247
13819
|
x2: o - p.right,
|
|
13248
13820
|
y1: S(e),
|
|
@@ -13310,7 +13882,7 @@ function Vl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13310
13882
|
}
|
|
13311
13883
|
//#endregion
|
|
13312
13884
|
//#region src/SelectBullet.tsx
|
|
13313
|
-
var
|
|
13885
|
+
var ku = (e) => Math.max(0, Math.min(100, e)), Au = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
13314
13886
|
return /* @__PURE__ */ h("div", {
|
|
13315
13887
|
ref: i,
|
|
13316
13888
|
...r,
|
|
@@ -13348,12 +13920,12 @@ var Hl = (e) => Math.max(0, Math.min(100, e)), Ul = r(function({ items: e, forma
|
|
|
13348
13920
|
children: [/* @__PURE__ */ h("span", {
|
|
13349
13921
|
className: "select-bullet__fill",
|
|
13350
13922
|
style: {
|
|
13351
|
-
width: `${
|
|
13923
|
+
width: `${ku(e.value / i * 100)}%`,
|
|
13352
13924
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
13353
13925
|
}
|
|
13354
13926
|
}), /* @__PURE__ */ h("span", {
|
|
13355
13927
|
className: "select-bullet__tick",
|
|
13356
|
-
style: { left: `${
|
|
13928
|
+
style: { left: `${ku(e.target / i * 100)}%` }
|
|
13357
13929
|
})]
|
|
13358
13930
|
})]
|
|
13359
13931
|
}, `${e.label}-${n}`);
|
|
@@ -13362,7 +13934,7 @@ var Hl = (e) => Math.max(0, Math.min(100, e)), Ul = r(function({ items: e, forma
|
|
|
13362
13934
|
});
|
|
13363
13935
|
//#endregion
|
|
13364
13936
|
//#region src/SelectTreemap.tsx
|
|
13365
|
-
function
|
|
13937
|
+
function ju(e, t, n) {
|
|
13366
13938
|
let r = [], i = (e, t) => {
|
|
13367
13939
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
13368
13940
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -13413,8 +13985,8 @@ function Wl(e, t, n) {
|
|
|
13413
13985
|
};
|
|
13414
13986
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
13415
13987
|
}
|
|
13416
|
-
function
|
|
13417
|
-
let { ref: a, width: o } =
|
|
13988
|
+
function Mu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
13989
|
+
let { ref: a, width: o } = kl(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? ju(u.map((t) => e[t].value), o, t) : [];
|
|
13418
13990
|
return /* @__PURE__ */ g("div", {
|
|
13419
13991
|
...i,
|
|
13420
13992
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -13484,8 +14056,8 @@ function Gl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13484
14056
|
}
|
|
13485
14057
|
//#endregion
|
|
13486
14058
|
//#region src/SelectScatter.tsx
|
|
13487
|
-
function
|
|
13488
|
-
let { ref: l, width: u } =
|
|
14059
|
+
function Nu({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
14060
|
+
let { ref: l, width: u } = kl(t), d = Q(), f = e.flatMap((e) => e.points), p = jl(i ?? Math.max(0, ...f.map((e) => e.x))), m = jl(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = Vl, 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
14061
|
return /* @__PURE__ */ g("div", {
|
|
13490
14062
|
...c,
|
|
13491
14063
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -13495,7 +14067,7 @@ function Kl({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
13495
14067
|
height: t,
|
|
13496
14068
|
className: "select-chart",
|
|
13497
14069
|
children: [
|
|
13498
|
-
|
|
14070
|
+
Ml(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13499
14071
|
x1: v.left,
|
|
13500
14072
|
x2: u - v.right,
|
|
13501
14073
|
y1: C(e),
|
|
@@ -13509,7 +14081,7 @@ function Kl({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
13509
14081
|
textAnchor: "end",
|
|
13510
14082
|
children: r(e)
|
|
13511
14083
|
})] }, `y${t}`)),
|
|
13512
|
-
|
|
14084
|
+
Ml(p).map((e, r, i) => /* @__PURE__ */ h("text", {
|
|
13513
14085
|
x: S(e),
|
|
13514
14086
|
y: t - v.bottom + 16,
|
|
13515
14087
|
className: "select-chart__xlabel",
|
|
@@ -13556,8 +14128,8 @@ function Kl({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
13556
14128
|
}
|
|
13557
14129
|
//#endregion
|
|
13558
14130
|
//#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 ??
|
|
14131
|
+
var Pu = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
|
|
14132
|
+
let d = Q(), f = s(), p = e.length, m = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? jl(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
14133
|
return /* @__PURE__ */ g("div", {
|
|
13562
14134
|
ref: u,
|
|
13563
14135
|
...l,
|
|
@@ -13666,8 +14238,8 @@ var ql = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
13666
14238
|
});
|
|
13667
14239
|
//#endregion
|
|
13668
14240
|
//#region src/SelectSankey.tsx
|
|
13669
|
-
function
|
|
13670
|
-
let { ref: s, width: c } =
|
|
14241
|
+
function Fu({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
14242
|
+
let { ref: s, width: c } = kl(t), l = Q(), u = [], d = [];
|
|
13671
14243
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
13672
14244
|
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
14245
|
let r = /* @__PURE__ */ new Map(), a = 6;
|
|
@@ -13751,8 +14323,8 @@ function Jl({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
13751
14323
|
}
|
|
13752
14324
|
//#endregion
|
|
13753
14325
|
//#region src/SelectCandlestick.tsx
|
|
13754
|
-
function
|
|
13755
|
-
let { ref: s, width: c } =
|
|
14326
|
+
function Iu({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
14327
|
+
let { ref: s, width: c } = kl(t), l = Q(), u = Vl, 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
14328
|
return /* @__PURE__ */ g("div", {
|
|
13757
14329
|
...o,
|
|
13758
14330
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -13841,8 +14413,8 @@ function Yl({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
13841
14413
|
}
|
|
13842
14414
|
//#endregion
|
|
13843
14415
|
//#region src/SelectBoxPlot.tsx
|
|
13844
|
-
function
|
|
13845
|
-
let { ref: a, width: o } =
|
|
14416
|
+
function Lu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
14417
|
+
let { ref: a, width: o } = kl(t), s = Q(), c = Vl, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = jl(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
14418
|
return /* @__PURE__ */ g("div", {
|
|
13847
14419
|
...i,
|
|
13848
14420
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -13851,7 +14423,7 @@ function Xl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13851
14423
|
width: o,
|
|
13852
14424
|
height: t,
|
|
13853
14425
|
className: "select-chart",
|
|
13854
|
-
children: [
|
|
14426
|
+
children: [Ml(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13855
14427
|
x1: c.left,
|
|
13856
14428
|
x2: o - c.right,
|
|
13857
14429
|
y1: p(e),
|
|
@@ -13961,8 +14533,8 @@ function Xl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13961
14533
|
}
|
|
13962
14534
|
//#endregion
|
|
13963
14535
|
//#region src/SelectRangeBar.tsx
|
|
13964
|
-
function
|
|
13965
|
-
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } =
|
|
14536
|
+
function Ru({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
14537
|
+
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } = kl(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
14538
|
return /* @__PURE__ */ g("div", {
|
|
13967
14539
|
...c,
|
|
13968
14540
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -14042,7 +14614,7 @@ function Zl({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
14042
14614
|
}
|
|
14043
14615
|
//#endregion
|
|
14044
14616
|
//#region src/SelectCalendarHeatmap.tsx
|
|
14045
|
-
var
|
|
14617
|
+
var zu = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
14046
14618
|
"Seg",
|
|
14047
14619
|
"",
|
|
14048
14620
|
"Qua",
|
|
@@ -14115,8 +14687,8 @@ var Ql = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
14115
14687
|
]
|
|
14116
14688
|
}), /* @__PURE__ */ h($, { tip: p.tip })]
|
|
14117
14689
|
});
|
|
14118
|
-
}),
|
|
14119
|
-
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p =
|
|
14690
|
+
}), Bu = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
14691
|
+
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = jl(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
14692
|
return /* @__PURE__ */ g("div", {
|
|
14121
14693
|
ref: s,
|
|
14122
14694
|
...o,
|
|
@@ -14146,7 +14718,7 @@ var Ql = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
14146
14718
|
}, t)), e.map((e, t) => {
|
|
14147
14719
|
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
14720
|
return /* @__PURE__ */ h("path", {
|
|
14149
|
-
d:
|
|
14721
|
+
d: zl(l, u, o, 0, r, i),
|
|
14150
14722
|
fill: a,
|
|
14151
14723
|
fillOpacity: .8,
|
|
14152
14724
|
className: "select-chart__seg",
|
|
@@ -14189,13 +14761,13 @@ var Ql = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
14189
14761
|
});
|
|
14190
14762
|
//#endregion
|
|
14191
14763
|
//#region src/SelectSlope.tsx
|
|
14192
|
-
function
|
|
14193
|
-
let { ref: s, width: c } =
|
|
14764
|
+
function Vu({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
14765
|
+
let { ref: s, width: c } = kl(r), l = Q(), u = {
|
|
14194
14766
|
top: 24,
|
|
14195
14767
|
right: 64,
|
|
14196
14768
|
bottom: 12,
|
|
14197
14769
|
left: 132
|
|
14198
|
-
}, d =
|
|
14770
|
+
}, d = jl(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
14771
|
return /* @__PURE__ */ g("div", {
|
|
14200
14772
|
...o,
|
|
14201
14773
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -14311,8 +14883,8 @@ function eu({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
14311
14883
|
}
|
|
14312
14884
|
//#endregion
|
|
14313
14885
|
//#region src/SelectDumbbell.tsx
|
|
14314
|
-
function
|
|
14315
|
-
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } =
|
|
14886
|
+
function Hu({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
14887
|
+
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = kl(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", m = jl(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
14888
|
return /* @__PURE__ */ g("div", {
|
|
14317
14889
|
...s,
|
|
14318
14890
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -14321,7 +14893,7 @@ function tu({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
14321
14893
|
width: u,
|
|
14322
14894
|
height: c,
|
|
14323
14895
|
className: "select-chart",
|
|
14324
|
-
children: [
|
|
14896
|
+
children: [Ml(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
14325
14897
|
x1: x(e),
|
|
14326
14898
|
x2: x(e),
|
|
14327
14899
|
y1: 6,
|
|
@@ -14404,8 +14976,8 @@ function tu({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
14404
14976
|
}
|
|
14405
14977
|
//#endregion
|
|
14406
14978
|
//#region src/SelectMarimekko.tsx
|
|
14407
|
-
function
|
|
14408
|
-
let { ref: o, width: s } =
|
|
14979
|
+
function Uu({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
14980
|
+
let { ref: o, width: s } = kl(t), c = Q(), l = {
|
|
14409
14981
|
top: 6,
|
|
14410
14982
|
right: 6,
|
|
14411
14983
|
bottom: 24,
|
|
@@ -14484,7 +15056,7 @@ function nu({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
14484
15056
|
}
|
|
14485
15057
|
//#endregion
|
|
14486
15058
|
//#region src/SelectGaugeBands.tsx
|
|
14487
|
-
var
|
|
15059
|
+
var Wu = 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
15060
|
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
15061
|
let t = Math.PI + e * Math.PI;
|
|
14490
15062
|
return [p + f * Math.cos(t), m + f * Math.sin(t)];
|
|
@@ -14556,8 +15128,8 @@ var ru = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
14556
15128
|
});
|
|
14557
15129
|
//#endregion
|
|
14558
15130
|
//#region src/SelectStreamGraph.tsx
|
|
14559
|
-
function
|
|
14560
|
-
let { ref: o, width: c } =
|
|
15131
|
+
function Gu({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
15132
|
+
let { ref: o, width: c } = kl(n), l = Q(), u = s(), [d, p] = f(null), m = t.length, _ = {
|
|
14561
15133
|
top: 14,
|
|
14562
15134
|
right: 14,
|
|
14563
15135
|
bottom: 28,
|
|
@@ -14600,7 +15172,7 @@ function iu({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
14600
15172
|
})]
|
|
14601
15173
|
}, t)) }),
|
|
14602
15174
|
w.map((e, t) => /* @__PURE__ */ h("path", {
|
|
14603
|
-
d:
|
|
15175
|
+
d: Ll(e.upper, e.lower),
|
|
14604
15176
|
fill: `url(#${u}-st${t})`,
|
|
14605
15177
|
className: "select-chart__area"
|
|
14606
15178
|
}, t)),
|
|
@@ -14647,7 +15219,7 @@ function iu({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
14647
15219
|
}
|
|
14648
15220
|
//#endregion
|
|
14649
15221
|
//#region src/SelectSunburst.tsx
|
|
14650
|
-
var
|
|
15222
|
+
var Ku = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
14651
15223
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
14652
15224
|
var t;
|
|
14653
15225
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -14673,7 +15245,7 @@ var au = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
14673
15245
|
_ += r;
|
|
14674
15246
|
let a = _ / m * 360, o = e.color ?? X(t), v = i;
|
|
14675
15247
|
return /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("path", {
|
|
14676
|
-
d:
|
|
15248
|
+
d: zl(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
14677
15249
|
fill: o,
|
|
14678
15250
|
className: "select-chart__seg",
|
|
14679
15251
|
onMouseEnter: () => s.show({
|
|
@@ -14693,7 +15265,7 @@ var au = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
14693
15265
|
v += t.value / m * 360;
|
|
14694
15266
|
let f = v, p = t.color ?? o, g = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
14695
15267
|
return /* @__PURE__ */ h("path", {
|
|
14696
|
-
d:
|
|
15268
|
+
d: zl(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
14697
15269
|
fill: p,
|
|
14698
15270
|
fillOpacity: g,
|
|
14699
15271
|
className: "select-chart__seg",
|
|
@@ -14740,8 +15312,8 @@ var au = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
14740
15312
|
});
|
|
14741
15313
|
//#endregion
|
|
14742
15314
|
//#region src/SelectViolin.tsx
|
|
14743
|
-
function
|
|
14744
|
-
let { ref: a, width: o } =
|
|
15315
|
+
function qu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
15316
|
+
let { ref: a, width: o } = kl(t), s = Q(), c = Vl, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = jl(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
15317
|
return /* @__PURE__ */ g("div", {
|
|
14746
15318
|
...i,
|
|
14747
15319
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -14750,7 +15322,7 @@ function ou({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
14750
15322
|
width: o,
|
|
14751
15323
|
height: t,
|
|
14752
15324
|
className: "select-chart",
|
|
14753
|
-
children: [
|
|
15325
|
+
children: [Ml(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
14754
15326
|
x1: c.left,
|
|
14755
15327
|
x2: o - c.right,
|
|
14756
15328
|
y1: p(e),
|
|
@@ -14767,7 +15339,7 @@ function ou({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
14767
15339
|
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
15340
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
14769
15341
|
for (let e = 0; e < o; e++) m.push([i - d(e), l(e)]);
|
|
14770
|
-
let b = `${
|
|
15342
|
+
let b = `${Pl(f)} ${Pl(m).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
14771
15343
|
return /* @__PURE__ */ g("g", { children: [
|
|
14772
15344
|
/* @__PURE__ */ h("path", {
|
|
14773
15345
|
d: b,
|
|
@@ -14828,7 +15400,7 @@ function ou({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
14828
15400
|
}
|
|
14829
15401
|
//#endregion
|
|
14830
15402
|
//#region src/SelectChord.tsx
|
|
14831
|
-
var
|
|
15403
|
+
var Ju = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
14832
15404
|
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
15405
|
for (let e = 0; e < l; e++) {
|
|
14834
15406
|
let t = b, n = b + m[e] * v;
|
|
@@ -14895,7 +15467,7 @@ var su = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
14895
15467
|
}, n)), y.map((e, n) => {
|
|
14896
15468
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
14897
15469
|
return /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("path", {
|
|
14898
|
-
d:
|
|
15470
|
+
d: zl(u, d, f, p, w(e.a0), w(e.a1)),
|
|
14899
15471
|
fill: X(n),
|
|
14900
15472
|
className: "select-chord__arc"
|
|
14901
15473
|
}), /* @__PURE__ */ h("text", {
|
|
@@ -14913,8 +15485,8 @@ var su = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
14913
15485
|
});
|
|
14914
15486
|
//#endregion
|
|
14915
15487
|
//#region src/SelectHexbin.tsx
|
|
14916
|
-
function
|
|
14917
|
-
let { ref: l, width: u } =
|
|
15488
|
+
function Yu({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
15489
|
+
let { ref: l, width: u } = kl(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
15490
|
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
15491
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
14920
15492
|
}, C = (e, t) => [b * x * (e + t / 2), 3 / 2 * b * t], w = (e, t) => {
|
|
@@ -14965,7 +15537,7 @@ function cu({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
14965
15537
|
}
|
|
14966
15538
|
//#endregion
|
|
14967
15539
|
//#region src/SelectWordCloud.tsx
|
|
14968
|
-
var
|
|
15540
|
+
var Xu = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
14969
15541
|
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
15542
|
return /* @__PURE__ */ h("div", {
|
|
14971
15543
|
ref: a,
|
|
@@ -14982,7 +15554,7 @@ var lu = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
14982
15554
|
children: e.text
|
|
14983
15555
|
}, `${e.text}-${t}`))
|
|
14984
15556
|
});
|
|
14985
|
-
}),
|
|
15557
|
+
}), Zu = [
|
|
14986
15558
|
[
|
|
14987
15559
|
-59.6,
|
|
14988
15560
|
-80,
|
|
@@ -25377,24 +25949,24 @@ var lu = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
25377
25949
|
-27.1,
|
|
25378
25950
|
83.5
|
|
25379
25951
|
]
|
|
25380
|
-
],
|
|
25381
|
-
function
|
|
25382
|
-
let n = e *
|
|
25952
|
+
], Qu = Math.PI / 180;
|
|
25953
|
+
function $u(e, t) {
|
|
25954
|
+
let n = e * Qu, r = t * Qu;
|
|
25383
25955
|
return [
|
|
25384
25956
|
Math.cos(n) * Math.sin(r),
|
|
25385
25957
|
Math.sin(n),
|
|
25386
25958
|
Math.cos(n) * Math.cos(r)
|
|
25387
25959
|
];
|
|
25388
25960
|
}
|
|
25389
|
-
function
|
|
25390
|
-
let a = r *
|
|
25961
|
+
function ed([e, t, n], r, i) {
|
|
25962
|
+
let a = r * Qu, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * Qu;
|
|
25391
25963
|
return [
|
|
25392
25964
|
o,
|
|
25393
25965
|
t * Math.cos(c) - s * Math.sin(c),
|
|
25394
25966
|
t * Math.sin(c) + s * Math.cos(c)
|
|
25395
25967
|
];
|
|
25396
25968
|
}
|
|
25397
|
-
function
|
|
25969
|
+
function td(e, t, n) {
|
|
25398
25970
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
25399
25971
|
r = Math.max(-1, Math.min(1, r));
|
|
25400
25972
|
let i = Math.acos(r);
|
|
@@ -25406,9 +25978,9 @@ function mu(e, t, n) {
|
|
|
25406
25978
|
e[2] * o + t[2] * s
|
|
25407
25979
|
];
|
|
25408
25980
|
}
|
|
25409
|
-
var
|
|
25981
|
+
var nd = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, rd = 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
25982
|
var S, C;
|
|
25411
|
-
let w = s(), T = Q(), E = d(null), D =
|
|
25983
|
+
let w = s(), T = Q(), E = d(null), D = Al(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
25984
|
lng: -O,
|
|
25413
25985
|
lat: r
|
|
25414
25986
|
}), j = d({
|
|
@@ -25467,7 +26039,7 @@ var hu = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25467
26039
|
var t, n;
|
|
25468
26040
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ee(!1), H());
|
|
25469
26041
|
}, G = (D / 2 - 6) * M.current, K = D / 2, q = D / 2, J = (e) => {
|
|
25470
|
-
let t =
|
|
26042
|
+
let t = ed(e, A.current.lng, A.current.lat);
|
|
25471
26043
|
return {
|
|
25472
26044
|
x: K + G * t[0],
|
|
25473
26045
|
y: q - G * t[1],
|
|
@@ -25477,25 +26049,25 @@ var hu = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25477
26049
|
let e = [];
|
|
25478
26050
|
for (let t = -180; t < 180; t += 30) {
|
|
25479
26051
|
let n = [];
|
|
25480
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
26052
|
+
for (let e = 0; e <= 48; e++) n.push($u(-90 + 180 * e / 48, t));
|
|
25481
26053
|
e.push(n);
|
|
25482
26054
|
}
|
|
25483
26055
|
for (let t = -60; t <= 60; t += 30) {
|
|
25484
26056
|
let n = [];
|
|
25485
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
26057
|
+
for (let e = 0; e <= 48; e++) n.push($u(t, -180 + 360 * e / 48));
|
|
25486
26058
|
e.push(n);
|
|
25487
26059
|
}
|
|
25488
26060
|
return e;
|
|
25489
|
-
}, []), oe = u(() =>
|
|
26061
|
+
}, []), oe = u(() => Zu.map((e) => {
|
|
25490
26062
|
let t = [];
|
|
25491
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
26063
|
+
for (let n = 0; n < e.length; n += 2) t.push($u(e[n + 1], e[n]));
|
|
25492
26064
|
return t;
|
|
25493
26065
|
}), []), Y = (e) => ({
|
|
25494
26066
|
x: K + G * e[0],
|
|
25495
26067
|
y: q - G * e[1]
|
|
25496
26068
|
}), se = "", ce = "";
|
|
25497
26069
|
if (m) for (let e of oe) {
|
|
25498
|
-
let t = e.map((e) =>
|
|
26070
|
+
let t = e.map((e) => ed(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
25499
26071
|
for (let e of t) if (e[2] > 0) {
|
|
25500
26072
|
let t = Y(e);
|
|
25501
26073
|
ce += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -25543,7 +26115,7 @@ var hu = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25543
26115
|
}
|
|
25544
26116
|
return t;
|
|
25545
26117
|
}, ue = Math.max(1, ...e.map((e) => e.value ?? 0)), de = e.map((e, t) => {
|
|
25546
|
-
let n = J(
|
|
26118
|
+
let n = J($u(e.lat, e.lng));
|
|
25547
26119
|
return {
|
|
25548
26120
|
...e,
|
|
25549
26121
|
i: t,
|
|
@@ -25553,20 +26125,20 @@ var hu = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25553
26125
|
col: e.color ?? c
|
|
25554
26126
|
};
|
|
25555
26127
|
}), fe = te == null ? null : e[te], pe = t.map((e, t) => {
|
|
25556
|
-
let n =
|
|
26128
|
+
let n = $u(e.from.lat, e.from.lng), r = $u(e.to.lat, e.to.lng), i = "", a = !1;
|
|
25557
26129
|
for (let e = 0; e <= 40; e++) {
|
|
25558
|
-
let t = e / 40, o =
|
|
26130
|
+
let t = e / 40, o = td(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = ed(o, A.current.lng, A.current.lat), l = J([
|
|
25559
26131
|
o[0] * s,
|
|
25560
26132
|
o[1] * s,
|
|
25561
26133
|
o[2] * s
|
|
25562
26134
|
]);
|
|
25563
26135
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
25564
26136
|
}
|
|
25565
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
26137
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = td(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = ed(s, A.current.lng, A.current.lat), d = J([
|
|
25566
26138
|
s[0] * l,
|
|
25567
26139
|
s[1] * l,
|
|
25568
26140
|
s[2] * l
|
|
25569
|
-
]), f = fe != null && (
|
|
26141
|
+
]), f = fe != null && (nd(e.from, fe) || nd(e.to, fe));
|
|
25570
26142
|
return {
|
|
25571
26143
|
d: i,
|
|
25572
26144
|
col: e.color ?? c,
|
|
@@ -25840,8 +26412,8 @@ var hu = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25840
26412
|
});
|
|
25841
26413
|
//#endregion
|
|
25842
26414
|
//#region src/SelectTicker.tsx
|
|
25843
|
-
function
|
|
25844
|
-
let i = d(null), a = d(null), s = d(null), c =
|
|
26415
|
+
function id({ children: e, speed: t = 28, className: n, ...r }) {
|
|
26416
|
+
let i = d(null), a = d(null), s = d(null), c = Al(i, 0), l = Al(s, 0), u = c > 0 && l > c + 1, f = d(0), p = d(null), m = d(!1);
|
|
25845
26417
|
o(() => {
|
|
25846
26418
|
var e, n;
|
|
25847
26419
|
let r = a.current;
|
|
@@ -25902,12 +26474,12 @@ function _u({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
25902
26474
|
}
|
|
25903
26475
|
//#endregion
|
|
25904
26476
|
//#region src/SelectPareto.tsx
|
|
25905
|
-
function
|
|
26477
|
+
function ad({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
25906
26478
|
var a;
|
|
25907
|
-
let { ref: o, width: c } =
|
|
25908
|
-
...
|
|
26479
|
+
let { ref: o, width: c } = kl(t), l = Q(), u = s(), [d, p] = f(null), m = {
|
|
26480
|
+
...Vl,
|
|
25909
26481
|
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 =
|
|
26482
|
+
}, _ = [...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 = jl(((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
26483
|
return /* @__PURE__ */ g("div", {
|
|
25912
26484
|
...i,
|
|
25913
26485
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -25936,7 +26508,7 @@ function vu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
25936
26508
|
stopOpacity: .55
|
|
25937
26509
|
})]
|
|
25938
26510
|
}) }),
|
|
25939
|
-
|
|
26511
|
+
Ml(w).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
25940
26512
|
x1: m.left,
|
|
25941
26513
|
x2: c - m.right,
|
|
25942
26514
|
y1: O(e),
|
|
@@ -26000,7 +26572,7 @@ function vu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
26000
26572
|
}, t);
|
|
26001
26573
|
}),
|
|
26002
26574
|
/* @__PURE__ */ h("path", {
|
|
26003
|
-
d:
|
|
26575
|
+
d: Fl(j),
|
|
26004
26576
|
fill: "none",
|
|
26005
26577
|
stroke: N,
|
|
26006
26578
|
strokeWidth: 2,
|
|
@@ -26028,7 +26600,7 @@ function vu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
26028
26600
|
}
|
|
26029
26601
|
//#endregion
|
|
26030
26602
|
//#region src/SelectWaffle.tsx
|
|
26031
|
-
var
|
|
26603
|
+
var od = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
26032
26604
|
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
26605
|
i: t,
|
|
26034
26606
|
frac: e - u[t]
|
|
@@ -26077,8 +26649,8 @@ var yu = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
26077
26649
|
});
|
|
26078
26650
|
//#endregion
|
|
26079
26651
|
//#region src/SelectPyramid.tsx
|
|
26080
|
-
function
|
|
26081
|
-
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: d, width: p } =
|
|
26652
|
+
function sd({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
26653
|
+
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: d, width: p } = kl(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
26654
|
return /* @__PURE__ */ g("div", {
|
|
26083
26655
|
...l,
|
|
26084
26656
|
className: `select-chart-wrap${c ? " " + c : ""}`,
|
|
@@ -26185,8 +26757,8 @@ function bu({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
26185
26757
|
}
|
|
26186
26758
|
//#endregion
|
|
26187
26759
|
//#region src/SelectBump.tsx
|
|
26188
|
-
function
|
|
26189
|
-
let { ref: o, width: s } =
|
|
26760
|
+
function cd({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
26761
|
+
let { ref: o, width: s } = kl(n), c = Q(), [l, u] = f(null), d = {
|
|
26190
26762
|
top: 16,
|
|
26191
26763
|
right: 78,
|
|
26192
26764
|
bottom: 28,
|
|
@@ -26222,7 +26794,7 @@ function xu({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
26222
26794
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
26223
26795
|
children: [
|
|
26224
26796
|
/* @__PURE__ */ h("path", {
|
|
26225
|
-
d:
|
|
26797
|
+
d: Fl(a),
|
|
26226
26798
|
fill: "none",
|
|
26227
26799
|
stroke: i,
|
|
26228
26800
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -26270,8 +26842,8 @@ function xu({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
26270
26842
|
}
|
|
26271
26843
|
//#endregion
|
|
26272
26844
|
//#region src/SelectParallel.tsx
|
|
26273
|
-
function
|
|
26274
|
-
let { ref: o, width: s } =
|
|
26845
|
+
function ld({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
26846
|
+
let { ref: o, width: s } = kl(n), c = Q(), [l, u] = f(null), d = {
|
|
26275
26847
|
top: 30,
|
|
26276
26848
|
right: 28,
|
|
26277
26849
|
bottom: 26,
|
|
@@ -26362,25 +26934,25 @@ function Su({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
26362
26934
|
}
|
|
26363
26935
|
//#endregion
|
|
26364
26936
|
//#region src/SelectIcicle.tsx
|
|
26365
|
-
function
|
|
26366
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
26937
|
+
function ud(e) {
|
|
26938
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + ud(t), 0) : e.value ?? 0;
|
|
26367
26939
|
}
|
|
26368
|
-
function
|
|
26369
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
26940
|
+
function dd(e, t = 0) {
|
|
26941
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => dd(e, t + 1)));
|
|
26370
26942
|
}
|
|
26371
|
-
function
|
|
26372
|
-
let { ref: a, width: o } =
|
|
26943
|
+
function fd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
26944
|
+
let { ref: a, width: o } = kl(t), s = Q(), [c, l] = f(null), u = dd(e), d = t / (u + 1), p = [], m = (e, t, n, r, i) => {
|
|
26373
26945
|
if (p.push({
|
|
26374
26946
|
node: e,
|
|
26375
26947
|
x0: t,
|
|
26376
26948
|
x1: n,
|
|
26377
26949
|
depth: r,
|
|
26378
26950
|
color: e.color ?? X(i),
|
|
26379
|
-
value:
|
|
26951
|
+
value: ud(e)
|
|
26380
26952
|
}), e.children && e.children.length) {
|
|
26381
|
-
let a = e.children.reduce((e, t) => e +
|
|
26953
|
+
let a = e.children.reduce((e, t) => e + ud(t), 0) || 1, o = t;
|
|
26382
26954
|
e.children.forEach((e, s) => {
|
|
26383
|
-
let c = (n - t) *
|
|
26955
|
+
let c = (n - t) * ud(e) / a;
|
|
26384
26956
|
m(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
26385
26957
|
});
|
|
26386
26958
|
}
|
|
@@ -26441,8 +27013,8 @@ function Tu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
26441
27013
|
}
|
|
26442
27014
|
//#endregion
|
|
26443
27015
|
//#region src/SelectTree.tsx
|
|
26444
|
-
function
|
|
26445
|
-
let { ref: i, width: a } =
|
|
27016
|
+
function pd({ data: e, height: t = 260, className: n, ...r }) {
|
|
27017
|
+
let { ref: i, width: a } = kl(t), o = Q(), [s, c] = f(null), l = {
|
|
26446
27018
|
top: 14,
|
|
26447
27019
|
right: 96,
|
|
26448
27020
|
bottom: 14,
|
|
@@ -26519,7 +27091,7 @@ function Eu({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
26519
27091
|
}
|
|
26520
27092
|
//#endregion
|
|
26521
27093
|
//#region src/SelectVenn.tsx
|
|
26522
|
-
var
|
|
27094
|
+
var md = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
26523
27095
|
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
27096
|
[o, s - l * .5],
|
|
26525
27097
|
[o - l * .5, s + l * .36],
|
|
@@ -26584,7 +27156,7 @@ var Du = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
26584
27156
|
}, t))
|
|
26585
27157
|
})]
|
|
26586
27158
|
});
|
|
26587
|
-
}),
|
|
27159
|
+
}), hd = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
26588
27160
|
let o = Q(), [s, c] = f(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
26589
27161
|
d: e,
|
|
26590
27162
|
i: t,
|
|
@@ -26687,8 +27259,8 @@ var Du = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
26687
27259
|
});
|
|
26688
27260
|
//#endregion
|
|
26689
27261
|
//#region src/SelectNetwork.tsx
|
|
26690
|
-
function
|
|
26691
|
-
let { ref: o, width: s } =
|
|
27262
|
+
function gd({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
27263
|
+
let { ref: o, width: s } = kl(n), c = Q(), [l, d] = f(null), p = u(() => {
|
|
26692
27264
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
26693
27265
|
if (!a) return o;
|
|
26694
27266
|
let c = e.map((e, t) => ({
|
|
@@ -26801,8 +27373,8 @@ function ku({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
26801
27373
|
}
|
|
26802
27374
|
//#endregion
|
|
26803
27375
|
//#region src/SelectSearchMenu.tsx
|
|
26804
|
-
var
|
|
26805
|
-
function
|
|
27376
|
+
var _d = "[role=\"option\"]:not([disabled])";
|
|
27377
|
+
function vd({ 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
27378
|
let f = d(null);
|
|
26807
27379
|
return o(() => {
|
|
26808
27380
|
if (!s) return;
|
|
@@ -26818,7 +27390,7 @@ function ju({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
26818
27390
|
onKeyDown: (e) => {
|
|
26819
27391
|
let t = f.current;
|
|
26820
27392
|
if (!t) return;
|
|
26821
|
-
let n = t.querySelector("input"), r = Array.from(t.querySelectorAll(
|
|
27393
|
+
let n = t.querySelector("input"), r = Array.from(t.querySelectorAll(_d)), i = r.indexOf(document.activeElement);
|
|
26822
27394
|
if (e.key === "ArrowDown") {
|
|
26823
27395
|
var a;
|
|
26824
27396
|
if (r.length === 0) return;
|
|
@@ -26849,7 +27421,7 @@ function ju({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
26849
27421
|
className: "select-combobox__empty",
|
|
26850
27422
|
role: "status",
|
|
26851
27423
|
children: r
|
|
26852
|
-
}) : /* @__PURE__ */ h(
|
|
27424
|
+
}) : /* @__PURE__ */ h(yd, {
|
|
26853
27425
|
maxHeight: l,
|
|
26854
27426
|
children: u
|
|
26855
27427
|
}),
|
|
@@ -26860,7 +27432,7 @@ function ju({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
26860
27432
|
]
|
|
26861
27433
|
});
|
|
26862
27434
|
}
|
|
26863
|
-
function
|
|
27435
|
+
function yd({ children: e, maxHeight: t }) {
|
|
26864
27436
|
let n = Wn({
|
|
26865
27437
|
selector: ".select-combobox__option",
|
|
26866
27438
|
y: 6,
|
|
@@ -26875,7 +27447,7 @@ function Mu({ children: e, maxHeight: t }) {
|
|
|
26875
27447
|
children: e
|
|
26876
27448
|
});
|
|
26877
27449
|
}
|
|
26878
|
-
function
|
|
27450
|
+
function bd({ label: e, children: t }) {
|
|
26879
27451
|
return (Array.isArray(t) ? t.some((e) => e != null && e !== !1) : t != null && t !== !1) ? /* @__PURE__ */ g("div", {
|
|
26880
27452
|
role: "group",
|
|
26881
27453
|
className: "select-searchmenu__group",
|
|
@@ -26887,7 +27459,7 @@ function Nu({ label: e, children: t }) {
|
|
|
26887
27459
|
}), t]
|
|
26888
27460
|
}) : null;
|
|
26889
27461
|
}
|
|
26890
|
-
function
|
|
27462
|
+
function xd({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i = !1, onSelect: a }) {
|
|
26891
27463
|
return /* @__PURE__ */ g("button", {
|
|
26892
27464
|
type: "button",
|
|
26893
27465
|
role: "option",
|
|
@@ -26920,14 +27492,14 @@ function Pu({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i
|
|
|
26920
27492
|
}
|
|
26921
27493
|
//#endregion
|
|
26922
27494
|
//#region src/SelectKbd.tsx
|
|
26923
|
-
var
|
|
27495
|
+
var Sd = r(function({ children: e, className: t, ...n }, r) {
|
|
26924
27496
|
return /* @__PURE__ */ h("kbd", {
|
|
26925
27497
|
ref: r,
|
|
26926
27498
|
...n,
|
|
26927
27499
|
className: `select-kbd${t ? " " + t : ""}`,
|
|
26928
27500
|
children: e
|
|
26929
27501
|
});
|
|
26930
|
-
}),
|
|
27502
|
+
}), Cd = [
|
|
26931
27503
|
{
|
|
26932
27504
|
value: "light",
|
|
26933
27505
|
label: "Claro",
|
|
@@ -26944,15 +27516,15 @@ var Fu = r(function({ children: e, className: t, ...n }, r) {
|
|
|
26944
27516
|
icon: /* @__PURE__ */ h(Oe, {})
|
|
26945
27517
|
}
|
|
26946
27518
|
];
|
|
26947
|
-
function
|
|
27519
|
+
function wd(e) {
|
|
26948
27520
|
if (e === "system") {
|
|
26949
27521
|
var t, n;
|
|
26950
27522
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
26951
27523
|
}
|
|
26952
27524
|
return e;
|
|
26953
27525
|
}
|
|
26954
|
-
function
|
|
26955
|
-
let [i, a] = f(!1), s = d(null), c =
|
|
27526
|
+
function Td({ value: e, onChange: t, className: n, ...r }) {
|
|
27527
|
+
let [i, a] = f(!1), s = d(null), c = Cd.find((t) => t.value === e) ?? Cd[2];
|
|
26956
27528
|
return o(() => {
|
|
26957
27529
|
if (!i) return;
|
|
26958
27530
|
let e = (e) => {
|
|
@@ -26972,7 +27544,7 @@ function Ru({ value: e, onChange: t, className: n, ...r }) {
|
|
|
26972
27544
|
})
|
|
26973
27545
|
}), i && /* @__PURE__ */ h("div", {
|
|
26974
27546
|
className: "select-themeswitcher__popover",
|
|
26975
|
-
children: /* @__PURE__ */ h(Xa, { children:
|
|
27547
|
+
children: /* @__PURE__ */ h(Xa, { children: Cd.map((n) => /* @__PURE__ */ h(Qa, {
|
|
26976
27548
|
icon: n.icon,
|
|
26977
27549
|
active: n.value === e,
|
|
26978
27550
|
trailing: n.value === e ? /* @__PURE__ */ h(Be, {}) : null,
|
|
@@ -26986,8 +27558,8 @@ function Ru({ value: e, onChange: t, className: n, ...r }) {
|
|
|
26986
27558
|
}
|
|
26987
27559
|
//#endregion
|
|
26988
27560
|
//#region src/SelectDetail.tsx
|
|
26989
|
-
var
|
|
26990
|
-
function
|
|
27561
|
+
var Ed = n(!1);
|
|
27562
|
+
function Dd({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 }) {
|
|
26991
27563
|
let i = Wn({
|
|
26992
27564
|
selector: ".select-detail",
|
|
26993
27565
|
y: 8,
|
|
@@ -26995,7 +27567,7 @@ function Bu({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
26995
27567
|
stagger: .05,
|
|
26996
27568
|
scroll: !0
|
|
26997
27569
|
});
|
|
26998
|
-
return /* @__PURE__ */ h(
|
|
27570
|
+
return /* @__PURE__ */ h(Ed.Provider, {
|
|
26999
27571
|
value: r,
|
|
27000
27572
|
children: /* @__PURE__ */ h("div", {
|
|
27001
27573
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}${n ? " select-detaillist--compact" : ""}`,
|
|
@@ -27004,8 +27576,8 @@ function Bu({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
27004
27576
|
})
|
|
27005
27577
|
});
|
|
27006
27578
|
}
|
|
27007
|
-
var
|
|
27008
|
-
let l = a(
|
|
27579
|
+
var Od = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
27580
|
+
let l = a(Ed), u = i ?? l;
|
|
27009
27581
|
return /* @__PURE__ */ g("div", {
|
|
27010
27582
|
ref: c,
|
|
27011
27583
|
...s,
|
|
@@ -27025,7 +27597,7 @@ var Vu = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
27025
27597
|
})
|
|
27026
27598
|
]
|
|
27027
27599
|
});
|
|
27028
|
-
}),
|
|
27600
|
+
}), kd = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", connected: i = !1, className: a, ...o }, s) {
|
|
27029
27601
|
let c = r === "vertical";
|
|
27030
27602
|
return /* @__PURE__ */ h("ol", {
|
|
27031
27603
|
ref: s,
|
|
@@ -27068,7 +27640,7 @@ var Vu = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
27068
27640
|
});
|
|
27069
27641
|
//#endregion
|
|
27070
27642
|
//#region src/SelectSetupGuide.tsx
|
|
27071
|
-
function
|
|
27643
|
+
function Ad({ status: e }) {
|
|
27072
27644
|
return /* @__PURE__ */ h("span", {
|
|
27073
27645
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
27074
27646
|
"aria-hidden": "true",
|
|
@@ -27087,13 +27659,13 @@ function Uu({ status: e }) {
|
|
|
27087
27659
|
})
|
|
27088
27660
|
});
|
|
27089
27661
|
}
|
|
27090
|
-
var
|
|
27662
|
+
var jd = {
|
|
27091
27663
|
done: "feito",
|
|
27092
27664
|
todo: "a fazer",
|
|
27093
27665
|
next: "próximo passo",
|
|
27094
27666
|
skipped: "pulado",
|
|
27095
27667
|
waiting: "aguardando"
|
|
27096
|
-
},
|
|
27668
|
+
}, Md = 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
27669
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0, f = Qr();
|
|
27098
27670
|
return /* @__PURE__ */ g("section", {
|
|
27099
27671
|
ref: u,
|
|
@@ -27156,14 +27728,14 @@ var Wu = {
|
|
|
27156
27728
|
children: e.steps.map((e) => /* @__PURE__ */ g("li", {
|
|
27157
27729
|
className: `select-setupguide__step is-${e.status}`,
|
|
27158
27730
|
children: [
|
|
27159
|
-
/* @__PURE__ */ h(
|
|
27731
|
+
/* @__PURE__ */ h(Ad, { status: e.status }),
|
|
27160
27732
|
/* @__PURE__ */ g("span", {
|
|
27161
27733
|
className: "select-setupguide__text",
|
|
27162
27734
|
children: [/* @__PURE__ */ g("span", {
|
|
27163
27735
|
className: "select-setupguide__steptitle",
|
|
27164
27736
|
children: [e.title, /* @__PURE__ */ g("span", {
|
|
27165
27737
|
className: "select-setupguide__sr",
|
|
27166
|
-
children: [" — ",
|
|
27738
|
+
children: [" — ", jd[e.status]]
|
|
27167
27739
|
})]
|
|
27168
27740
|
}), e.description && /* @__PURE__ */ h("span", {
|
|
27169
27741
|
className: "select-setupguide__stepdesc",
|
|
@@ -27182,7 +27754,7 @@ var Wu = {
|
|
|
27182
27754
|
})]
|
|
27183
27755
|
});
|
|
27184
27756
|
});
|
|
27185
|
-
function
|
|
27757
|
+
function Nd({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
27186
27758
|
return /* @__PURE__ */ g("div", {
|
|
27187
27759
|
className: "select-setupnext",
|
|
27188
27760
|
children: [
|
|
@@ -27207,37 +27779,37 @@ function Ku({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
27207
27779
|
}
|
|
27208
27780
|
//#endregion
|
|
27209
27781
|
//#region src/SelectTour.tsx
|
|
27210
|
-
var
|
|
27211
|
-
function
|
|
27782
|
+
var Pd = 6, Fd = 12;
|
|
27783
|
+
function Id(e) {
|
|
27212
27784
|
let t = document.querySelector(e);
|
|
27213
27785
|
if (!t) return null;
|
|
27214
27786
|
let n = t.getBoundingClientRect();
|
|
27215
27787
|
return n.width === 0 && n.height === 0 ? null : {
|
|
27216
|
-
top: n.top -
|
|
27217
|
-
left: n.left -
|
|
27788
|
+
top: n.top - Pd,
|
|
27789
|
+
left: n.left - Pd,
|
|
27218
27790
|
width: n.width + 12,
|
|
27219
27791
|
height: n.height + 12
|
|
27220
27792
|
};
|
|
27221
27793
|
}
|
|
27222
|
-
function
|
|
27794
|
+
function Ld(e) {
|
|
27223
27795
|
let t = document.querySelector(e);
|
|
27224
27796
|
if (!t) return !1;
|
|
27225
27797
|
let n = t.getBoundingClientRect();
|
|
27226
27798
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
27227
27799
|
}
|
|
27228
|
-
function
|
|
27229
|
-
let s = u(() => e ? t.filter((e) =>
|
|
27800
|
+
function Rd({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
27801
|
+
let s = u(() => e ? t.filter((e) => Ld(e.target)) : [], [e]), [c, p] = f(0), [m, v] = f(null), [y, b] = f(null), x = d(null), S = d(null);
|
|
27230
27802
|
o(() => {
|
|
27231
27803
|
e && p(0);
|
|
27232
27804
|
}, [e]);
|
|
27233
27805
|
let C = s[c], w = c === s.length - 1, T = i(() => {
|
|
27234
27806
|
if (!C) return;
|
|
27235
|
-
let e =
|
|
27807
|
+
let e = Id(C.target);
|
|
27236
27808
|
v(e);
|
|
27237
27809
|
let t = x.current;
|
|
27238
27810
|
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 +
|
|
27811
|
+
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + Fd, s = e.top;
|
|
27812
|
+
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + Fd, s + r > a - 8 && (s = e.top - r - Fd)), s = Math.min(Math.max(8, s), a - r - 8), b({
|
|
27241
27813
|
top: s,
|
|
27242
27814
|
left: o
|
|
27243
27815
|
});
|
|
@@ -27339,7 +27911,7 @@ function Zu({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
27339
27911
|
}
|
|
27340
27912
|
//#endregion
|
|
27341
27913
|
//#region src/SelectPlanCard.tsx
|
|
27342
|
-
var
|
|
27914
|
+
var zd = 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
27915
|
return /* @__PURE__ */ g("div", {
|
|
27344
27916
|
ref: d,
|
|
27345
27917
|
...u,
|
|
@@ -27394,7 +27966,7 @@ var Qu = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
27394
27966
|
})]
|
|
27395
27967
|
})]
|
|
27396
27968
|
});
|
|
27397
|
-
}),
|
|
27969
|
+
}), Bd = r(function({ title: e, description: t, headerAction: n, footer: r, dense: i = !1, spread: a = !1, children: o, className: s, ...c }, l) {
|
|
27398
27970
|
return /* @__PURE__ */ g("div", {
|
|
27399
27971
|
ref: l,
|
|
27400
27972
|
...c,
|
|
@@ -27430,7 +28002,7 @@ var Qu = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
27430
28002
|
]
|
|
27431
28003
|
});
|
|
27432
28004
|
});
|
|
27433
|
-
function
|
|
28005
|
+
function Vd({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, wrap: o = !1, onClick: s }) {
|
|
27434
28006
|
let c = /* @__PURE__ */ g(m, { children: [
|
|
27435
28007
|
e && /* @__PURE__ */ h("span", {
|
|
27436
28008
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
@@ -27462,7 +28034,7 @@ function ed({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
27462
28034
|
children: c
|
|
27463
28035
|
});
|
|
27464
28036
|
}
|
|
27465
|
-
function
|
|
28037
|
+
function Hd({ children: e }) {
|
|
27466
28038
|
return /* @__PURE__ */ h("div", {
|
|
27467
28039
|
className: "select-listlabel",
|
|
27468
28040
|
children: e
|
|
@@ -27470,7 +28042,7 @@ function td({ children: e }) {
|
|
|
27470
28042
|
}
|
|
27471
28043
|
//#endregion
|
|
27472
28044
|
//#region src/SelectThumbnail.tsx
|
|
27473
|
-
var
|
|
28045
|
+
var Ud = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, s) {
|
|
27474
28046
|
let [c, l] = f(!1);
|
|
27475
28047
|
o(() => l(!1), [e]);
|
|
27476
28048
|
let u = /* @__PURE__ */ h("span", {
|
|
@@ -27504,8 +28076,8 @@ var nd = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
|
|
|
27504
28076
|
});
|
|
27505
28077
|
//#endregion
|
|
27506
28078
|
//#region src/SelectImageZoomModal.tsx
|
|
27507
|
-
function
|
|
27508
|
-
return /* @__PURE__ */ h(
|
|
28079
|
+
function Wd({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
28080
|
+
return /* @__PURE__ */ h(os, {
|
|
27509
28081
|
open: e,
|
|
27510
28082
|
onClose: t,
|
|
27511
28083
|
title: i,
|
|
@@ -27523,7 +28095,7 @@ function rd({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
27523
28095
|
}
|
|
27524
28096
|
//#endregion
|
|
27525
28097
|
//#region src/SelectZoomThumbnail.tsx
|
|
27526
|
-
function
|
|
28098
|
+
function Gd({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
27527
28099
|
let [a, o] = f(!1);
|
|
27528
28100
|
return e ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("button", {
|
|
27529
28101
|
type: "button",
|
|
@@ -27536,19 +28108,19 @@ function id({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
27536
28108
|
cursor: "zoom-in",
|
|
27537
28109
|
display: "inline-flex"
|
|
27538
28110
|
},
|
|
27539
|
-
children: /* @__PURE__ */ h(
|
|
28111
|
+
children: /* @__PURE__ */ h(Ud, {
|
|
27540
28112
|
src: e,
|
|
27541
28113
|
size: n,
|
|
27542
28114
|
alt: t,
|
|
27543
28115
|
count: i
|
|
27544
28116
|
})
|
|
27545
|
-
}), a && /* @__PURE__ */ h(
|
|
28117
|
+
}), a && /* @__PURE__ */ h(Wd, {
|
|
27546
28118
|
open: !0,
|
|
27547
28119
|
onClose: () => o(!1),
|
|
27548
28120
|
src: e,
|
|
27549
28121
|
alt: t,
|
|
27550
28122
|
title: r ?? t
|
|
27551
|
-
})] }) : /* @__PURE__ */ h(
|
|
28123
|
+
})] }) : /* @__PURE__ */ h(Ud, {
|
|
27552
28124
|
size: n,
|
|
27553
28125
|
alt: t,
|
|
27554
28126
|
count: i
|
|
@@ -27556,7 +28128,7 @@ function id({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
27556
28128
|
}
|
|
27557
28129
|
//#endregion
|
|
27558
28130
|
//#region src/SelectMediaCell.tsx
|
|
27559
|
-
var
|
|
28131
|
+
var Kd = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
27560
28132
|
return /* @__PURE__ */ g("span", {
|
|
27561
28133
|
ref: a,
|
|
27562
28134
|
...i,
|
|
@@ -27578,14 +28150,14 @@ var ad = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
27578
28150
|
});
|
|
27579
28151
|
//#endregion
|
|
27580
28152
|
//#region src/SelectOfflineModal.tsx
|
|
27581
|
-
function
|
|
28153
|
+
function qd() {
|
|
27582
28154
|
let [e, t] = f(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
27583
28155
|
return o(() => {
|
|
27584
28156
|
let e = () => t(!1), n = () => t(!0);
|
|
27585
28157
|
return window.addEventListener("online", e), window.addEventListener("offline", n), () => {
|
|
27586
28158
|
window.removeEventListener("online", e), window.removeEventListener("offline", n);
|
|
27587
28159
|
};
|
|
27588
|
-
}, []), /* @__PURE__ */ h(
|
|
28160
|
+
}, []), /* @__PURE__ */ h(os, {
|
|
27589
28161
|
open: e,
|
|
27590
28162
|
onClose: () => {},
|
|
27591
28163
|
showClose: !1,
|
|
@@ -27601,7 +28173,7 @@ function od() {
|
|
|
27601
28173
|
}
|
|
27602
28174
|
//#endregion
|
|
27603
28175
|
//#region src/SelectKeyValueEditor.tsx
|
|
27604
|
-
function
|
|
28176
|
+
function Jd(e) {
|
|
27605
28177
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
27606
28178
|
name: String(e.name ?? e.key ?? ""),
|
|
27607
28179
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -27610,8 +28182,8 @@ function sd(e) {
|
|
|
27610
28182
|
value: t == null ? "" : String(t)
|
|
27611
28183
|
})) : [];
|
|
27612
28184
|
}
|
|
27613
|
-
var
|
|
27614
|
-
let d =
|
|
28185
|
+
var Yd = 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) {
|
|
28186
|
+
let d = Jd(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
27615
28187
|
...t,
|
|
27616
28188
|
...n
|
|
27617
28189
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), m = () => t([...d, {
|
|
@@ -27675,7 +28247,7 @@ var cd = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
27675
28247
|
})
|
|
27676
28248
|
]
|
|
27677
28249
|
});
|
|
27678
|
-
}),
|
|
28250
|
+
}), Xd = (e) => String(e).padStart(2, "0"), Zd = {
|
|
27679
28251
|
"en-US": {
|
|
27680
28252
|
weekdays: [
|
|
27681
28253
|
"Su",
|
|
@@ -27734,34 +28306,34 @@ var cd = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
27734
28306
|
to: "Até",
|
|
27735
28307
|
cancel: "Cancelar",
|
|
27736
28308
|
apply: "Aplicar",
|
|
27737
|
-
formatDate: (e) => `${
|
|
28309
|
+
formatDate: (e) => `${Xd(e.getDate())} / ${Xd(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
27738
28310
|
}
|
|
27739
|
-
},
|
|
28311
|
+
}, Qd = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), $d = (e) => new Date(e.getFullYear(), e.getMonth(), 1), ef = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), tf = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), nf = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), rf = (e) => {
|
|
27740
28312
|
let t = /* @__PURE__ */ new Date();
|
|
27741
28313
|
return {
|
|
27742
28314
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
27743
28315
|
to: t
|
|
27744
28316
|
};
|
|
27745
|
-
},
|
|
28317
|
+
}, af = [
|
|
27746
28318
|
{
|
|
27747
28319
|
id: "15m",
|
|
27748
28320
|
label: "Last 15 minutes",
|
|
27749
|
-
range: () =>
|
|
28321
|
+
range: () => rf(15)
|
|
27750
28322
|
},
|
|
27751
28323
|
{
|
|
27752
28324
|
id: "1h",
|
|
27753
28325
|
label: "Last 1 hour",
|
|
27754
|
-
range: () =>
|
|
28326
|
+
range: () => rf(60)
|
|
27755
28327
|
},
|
|
27756
28328
|
{
|
|
27757
28329
|
id: "3h",
|
|
27758
28330
|
label: "Last 3 hours",
|
|
27759
|
-
range: () =>
|
|
28331
|
+
range: () => rf(180)
|
|
27760
28332
|
},
|
|
27761
28333
|
{
|
|
27762
28334
|
id: "24h",
|
|
27763
28335
|
label: "Last 24 hours",
|
|
27764
|
-
range: () =>
|
|
28336
|
+
range: () => rf(1440)
|
|
27765
28337
|
},
|
|
27766
28338
|
{
|
|
27767
28339
|
id: "3d",
|
|
@@ -27777,78 +28349,78 @@ var cd = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
27777
28349
|
id: "all",
|
|
27778
28350
|
label: "All",
|
|
27779
28351
|
range: () => ({
|
|
27780
|
-
from:
|
|
27781
|
-
to:
|
|
28352
|
+
from: Qd(/* @__PURE__ */ new Date()),
|
|
28353
|
+
to: Qd(/* @__PURE__ */ new Date())
|
|
27782
28354
|
})
|
|
27783
28355
|
}
|
|
27784
|
-
],
|
|
27785
|
-
let t =
|
|
28356
|
+
], of = (e) => {
|
|
28357
|
+
let t = Qd(/* @__PURE__ */ new Date());
|
|
27786
28358
|
return {
|
|
27787
|
-
from:
|
|
28359
|
+
from: ef(t, -e),
|
|
27788
28360
|
to: t
|
|
27789
28361
|
};
|
|
27790
|
-
},
|
|
27791
|
-
let t =
|
|
28362
|
+
}, sf = (e) => {
|
|
28363
|
+
let t = ef(Qd(/* @__PURE__ */ new Date()), -e);
|
|
27792
28364
|
return {
|
|
27793
28365
|
from: t,
|
|
27794
28366
|
to: t
|
|
27795
28367
|
};
|
|
27796
|
-
},
|
|
28368
|
+
}, cf = [
|
|
27797
28369
|
{
|
|
27798
28370
|
id: "today",
|
|
27799
28371
|
label: "Hoje",
|
|
27800
|
-
range: () =>
|
|
28372
|
+
range: () => of(0)
|
|
27801
28373
|
},
|
|
27802
28374
|
{
|
|
27803
28375
|
id: "yesterday",
|
|
27804
28376
|
label: "Ontem",
|
|
27805
|
-
range: () =>
|
|
28377
|
+
range: () => sf(1)
|
|
27806
28378
|
},
|
|
27807
28379
|
{
|
|
27808
28380
|
id: "7d",
|
|
27809
28381
|
label: "Últimos 7 dias",
|
|
27810
|
-
range: () =>
|
|
28382
|
+
range: () => of(6)
|
|
27811
28383
|
},
|
|
27812
28384
|
{
|
|
27813
28385
|
id: "10d",
|
|
27814
28386
|
label: "Últimos 10 dias",
|
|
27815
|
-
range: () =>
|
|
28387
|
+
range: () => of(9)
|
|
27816
28388
|
},
|
|
27817
28389
|
{
|
|
27818
28390
|
id: "15d",
|
|
27819
28391
|
label: "Últimos 15 dias",
|
|
27820
|
-
range: () =>
|
|
28392
|
+
range: () => of(14)
|
|
27821
28393
|
},
|
|
27822
28394
|
{
|
|
27823
28395
|
id: "20d",
|
|
27824
28396
|
label: "Últimos 20 dias",
|
|
27825
|
-
range: () =>
|
|
28397
|
+
range: () => of(19)
|
|
27826
28398
|
},
|
|
27827
28399
|
{
|
|
27828
28400
|
id: "30d",
|
|
27829
28401
|
label: "Últimos 30 dias",
|
|
27830
|
-
range: () =>
|
|
28402
|
+
range: () => of(29)
|
|
27831
28403
|
},
|
|
27832
28404
|
{
|
|
27833
28405
|
id: "90d",
|
|
27834
28406
|
label: "Últimos 90 dias",
|
|
27835
|
-
range: () =>
|
|
28407
|
+
range: () => of(89)
|
|
27836
28408
|
}
|
|
27837
28409
|
];
|
|
27838
|
-
function
|
|
28410
|
+
function lf(e) {
|
|
27839
28411
|
if (!e) return "—";
|
|
27840
28412
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
27841
28413
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
27842
28414
|
}
|
|
27843
|
-
var
|
|
27844
|
-
let p =
|
|
28415
|
+
var uf = r(function({ value: e, presets: t = af, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, d) {
|
|
28416
|
+
let p = Zd[a], m = Qd(/* @__PURE__ */ new Date()), _ = s ? Qd(s) : null, [v, y] = f(e ?? {
|
|
27845
28417
|
from: m,
|
|
27846
28418
|
to: m
|
|
27847
|
-
}), [b, x] = f(
|
|
28419
|
+
}), [b, x] = f($d((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = f(null), w = ef($d(b), -$d(b).getDay()), T = Array.from({ length: 42 }, (e, t) => ef(w, t)), E = (e) => _ ? Qd(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ h("span", {
|
|
27848
28420
|
className: "select-datepicker__placeholder",
|
|
27849
28421
|
children: "— / — / ——"
|
|
27850
28422
|
}), O = (e) => {
|
|
27851
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
28423
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < Qd(t.from) ? {
|
|
27852
28424
|
from: e,
|
|
27853
28425
|
to: null
|
|
27854
28426
|
} : {
|
|
@@ -27858,7 +28430,7 @@ var Sd = r(function({ value: e, presets: t = _d, onApply: n, onCancel: r, accent
|
|
|
27858
28430
|
}, k = (e) => {
|
|
27859
28431
|
if (e.disabled || !e.range) return;
|
|
27860
28432
|
let t = e.range();
|
|
27861
|
-
y(t), C(e.id), t.from && x(
|
|
28433
|
+
y(t), C(e.id), t.from && x($d(t.from));
|
|
27862
28434
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
27863
28435
|
return /* @__PURE__ */ h("div", {
|
|
27864
28436
|
ref: d,
|
|
@@ -27904,7 +28476,7 @@ var Sd = r(function({ value: e, presets: t = _d, onApply: n, onCancel: r, accent
|
|
|
27904
28476
|
}),
|
|
27905
28477
|
o && /* @__PURE__ */ h("span", {
|
|
27906
28478
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
27907
|
-
children:
|
|
28479
|
+
children: lf(v[e])
|
|
27908
28480
|
})
|
|
27909
28481
|
]
|
|
27910
28482
|
}, e))
|
|
@@ -27916,7 +28488,7 @@ var Sd = r(function({ value: e, presets: t = _d, onApply: n, onCancel: r, accent
|
|
|
27916
28488
|
type: "button",
|
|
27917
28489
|
className: "select-datepicker__nav",
|
|
27918
28490
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
27919
|
-
onClick: () => x((e) =>
|
|
28491
|
+
onClick: () => x((e) => tf(e, -1)),
|
|
27920
28492
|
children: /* @__PURE__ */ h(G, {})
|
|
27921
28493
|
}),
|
|
27922
28494
|
/* @__PURE__ */ g("span", {
|
|
@@ -27931,7 +28503,7 @@ var Sd = r(function({ value: e, presets: t = _d, onApply: n, onCancel: r, accent
|
|
|
27931
28503
|
type: "button",
|
|
27932
28504
|
className: "select-datepicker__nav",
|
|
27933
28505
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
27934
|
-
onClick: () => x((e) =>
|
|
28506
|
+
onClick: () => x((e) => tf(e, 1)),
|
|
27935
28507
|
children: /* @__PURE__ */ h(W, {})
|
|
27936
28508
|
})
|
|
27937
28509
|
]
|
|
@@ -27943,7 +28515,7 @@ var Sd = r(function({ value: e, presets: t = _d, onApply: n, onCancel: r, accent
|
|
|
27943
28515
|
className: "select-datepicker__weekday",
|
|
27944
28516
|
children: e
|
|
27945
28517
|
}, t)), T.map((e) => {
|
|
27946
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
28518
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && nf(e, v.from), i = !!v.to && nf(e, v.to), a = r || i, o = !!v.from && !!v.to && !nf(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > Qd(v.from) && e < Qd(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" : "") + (nf(e, m) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
27947
28519
|
return /* @__PURE__ */ h("div", {
|
|
27948
28520
|
className: s,
|
|
27949
28521
|
children: /* @__PURE__ */ h("button", {
|
|
@@ -27974,17 +28546,17 @@ var Sd = r(function({ value: e, presets: t = _d, onApply: n, onCancel: r, accent
|
|
|
27974
28546
|
})]
|
|
27975
28547
|
})
|
|
27976
28548
|
});
|
|
27977
|
-
}),
|
|
27978
|
-
function
|
|
28549
|
+
}), df = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), ff = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), pf = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
28550
|
+
function mf(e, t) {
|
|
27979
28551
|
for (let r of t) {
|
|
27980
28552
|
var n;
|
|
27981
28553
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
27982
|
-
if (t != null && t.from && t != null && t.to &&
|
|
28554
|
+
if (t != null && t.from && t != null && t.to && ff(t.from, e.start) && ff(t.to, e.end)) return r.label;
|
|
27983
28555
|
}
|
|
27984
|
-
return
|
|
28556
|
+
return ff(e.start, e.end) ? pf(e.start) : `${pf(e.start)} – ${pf(e.end)}`;
|
|
27985
28557
|
}
|
|
27986
|
-
function
|
|
27987
|
-
let [c, l] = f(!1), u = r === null ? null : r ??
|
|
28558
|
+
function hf({ value: e, onChange: t, presets: n = cf, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
28559
|
+
let [c, l] = f(!1), u = r === null ? null : r ?? df(/* @__PURE__ */ new Date());
|
|
27988
28560
|
return /* @__PURE__ */ h(Zn, {
|
|
27989
28561
|
active: c,
|
|
27990
28562
|
onClose: () => l(!1),
|
|
@@ -27998,9 +28570,9 @@ function Dd({ value: e, onChange: t, presets: n = bd, maxDate: r, placement: i =
|
|
|
27998
28570
|
icon: /* @__PURE__ */ h(nt, {}),
|
|
27999
28571
|
trailingIcon: /* @__PURE__ */ h(K, {}),
|
|
28000
28572
|
onClick: () => l((e) => !e),
|
|
28001
|
-
children:
|
|
28573
|
+
children: mf(e, n)
|
|
28002
28574
|
}),
|
|
28003
|
-
children: /* @__PURE__ */ h(
|
|
28575
|
+
children: /* @__PURE__ */ h(uf, {
|
|
28004
28576
|
embedded: !0,
|
|
28005
28577
|
locale: "pt-BR",
|
|
28006
28578
|
showTime: !1,
|
|
@@ -28013,8 +28585,8 @@ function Dd({ value: e, onChange: t, presets: n = bd, maxDate: r, placement: i =
|
|
|
28013
28585
|
onCancel: () => l(!1),
|
|
28014
28586
|
onApply: (e) => {
|
|
28015
28587
|
e.from && t({
|
|
28016
|
-
start:
|
|
28017
|
-
end:
|
|
28588
|
+
start: df(e.from),
|
|
28589
|
+
end: df(e.to ?? e.from)
|
|
28018
28590
|
}), l(!1);
|
|
28019
28591
|
}
|
|
28020
28592
|
})
|
|
@@ -28022,7 +28594,7 @@ function Dd({ value: e, onChange: t, presets: n = bd, maxDate: r, placement: i =
|
|
|
28022
28594
|
}
|
|
28023
28595
|
//#endregion
|
|
28024
28596
|
//#region src/SelectNumberField.tsx
|
|
28025
|
-
var
|
|
28597
|
+
var gf = 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
28598
|
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
28599
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
28028
28600
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -28096,7 +28668,7 @@ var Od = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
28096
28668
|
});
|
|
28097
28669
|
//#endregion
|
|
28098
28670
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
28099
|
-
function
|
|
28671
|
+
function _f({ 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
28672
|
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
28673
|
let i = n + r;
|
|
28102
28674
|
if (i < 0 || i >= e.length) return;
|
|
@@ -28191,7 +28763,7 @@ function kd({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
28191
28763
|
}
|
|
28192
28764
|
//#endregion
|
|
28193
28765
|
//#region src/SelectBuilderLayout.tsx
|
|
28194
|
-
function
|
|
28766
|
+
function vf({ 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
28767
|
let d = y();
|
|
28196
28768
|
return /* @__PURE__ */ h(oa, {
|
|
28197
28769
|
title: e,
|
|
@@ -28231,7 +28803,7 @@ function Ad({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
28231
28803
|
}
|
|
28232
28804
|
//#endregion
|
|
28233
28805
|
//#region src/SelectBuilderWorkspace.tsx
|
|
28234
|
-
function
|
|
28806
|
+
function yf({ 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
28807
|
var L;
|
|
28236
28808
|
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
28809
|
P === void 0 && ne(e), F == null || F(e);
|
|
@@ -28491,10 +29063,10 @@ function jd({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
28491
29063
|
}
|
|
28492
29064
|
//#endregion
|
|
28493
29065
|
//#region src/SelectFlowCanvas.tsx
|
|
28494
|
-
var
|
|
28495
|
-
function
|
|
29066
|
+
var bf = (e) => Math.round(e * 100) / 100;
|
|
29067
|
+
function xf({ 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
29068
|
let _ = s().replace(/:/g, ""), [v, y] = f(c), b = o ?? v, x = (e) => {
|
|
28497
|
-
let t =
|
|
29069
|
+
let t = bf(Math.min(d, Math.max(u, e)));
|
|
28498
29070
|
o === void 0 && y(t), l == null || l(t);
|
|
28499
29071
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
28500
29072
|
return /* @__PURE__ */ g("div", {
|
|
@@ -28610,7 +29182,7 @@ function Nd({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
28610
29182
|
})]
|
|
28611
29183
|
});
|
|
28612
29184
|
}
|
|
28613
|
-
function
|
|
29185
|
+
function Sf({ 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
29186
|
let x = `${p ? " is-selected" : v ? " is-invalid" : m ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
28615
29187
|
left: e,
|
|
28616
29188
|
top: t,
|
|
@@ -28686,7 +29258,7 @@ function Pd({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
28686
29258
|
})]
|
|
28687
29259
|
});
|
|
28688
29260
|
}
|
|
28689
|
-
function
|
|
29261
|
+
function Cf({ 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
29262
|
return /* @__PURE__ */ g("div", {
|
|
28691
29263
|
className: "select-flowpage",
|
|
28692
29264
|
children: [
|
|
@@ -28748,7 +29320,7 @@ function Fd({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
28748
29320
|
}
|
|
28749
29321
|
//#endregion
|
|
28750
29322
|
//#region src/SelectSwitchField.tsx
|
|
28751
|
-
var
|
|
29323
|
+
var wf = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
28752
29324
|
return /* @__PURE__ */ g("div", {
|
|
28753
29325
|
ref: c,
|
|
28754
29326
|
...s,
|
|
@@ -28776,7 +29348,7 @@ var Id = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
28776
29348
|
children: i
|
|
28777
29349
|
})]
|
|
28778
29350
|
});
|
|
28779
|
-
}),
|
|
29351
|
+
}), Tf = [
|
|
28780
29352
|
"#212529",
|
|
28781
29353
|
"#495057",
|
|
28782
29354
|
"#868E96",
|
|
@@ -28793,13 +29365,13 @@ var Id = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
28793
29365
|
"#DB2777",
|
|
28794
29366
|
"#9333EA",
|
|
28795
29367
|
"#6D28D9"
|
|
28796
|
-
],
|
|
28797
|
-
function
|
|
28798
|
-
let t =
|
|
29368
|
+
], Ef = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
29369
|
+
function Df(e) {
|
|
29370
|
+
let t = Ef.exec((e ?? "").trim());
|
|
28799
29371
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
28800
29372
|
}
|
|
28801
|
-
function
|
|
28802
|
-
let t =
|
|
29373
|
+
function Of(e) {
|
|
29374
|
+
let t = Df(e);
|
|
28803
29375
|
if (!t) return 0;
|
|
28804
29376
|
let [n, r, i] = [
|
|
28805
29377
|
1,
|
|
@@ -28808,13 +29380,13 @@ function Bd(e) {
|
|
|
28808
29380
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
28809
29381
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
28810
29382
|
}
|
|
28811
|
-
function
|
|
28812
|
-
let [n, r] = [
|
|
29383
|
+
function kf(e, t) {
|
|
29384
|
+
let [n, r] = [Of(e), Of(t)].sort((e, t) => t - e);
|
|
28813
29385
|
return (n + .05) / (r + .05);
|
|
28814
29386
|
}
|
|
28815
|
-
var
|
|
28816
|
-
function
|
|
28817
|
-
let t =
|
|
29387
|
+
var Af = (e) => Math.min(1, Math.max(0, e));
|
|
29388
|
+
function jf(e) {
|
|
29389
|
+
let t = Df(e) ?? "#000000", [n, r, i] = [
|
|
28818
29390
|
1,
|
|
28819
29391
|
3,
|
|
28820
29392
|
5
|
|
@@ -28825,7 +29397,7 @@ function Ud(e) {
|
|
|
28825
29397
|
v: a
|
|
28826
29398
|
};
|
|
28827
29399
|
}
|
|
28828
|
-
function
|
|
29400
|
+
function Mf({ h: e, s: t, v: n }) {
|
|
28829
29401
|
let r = (r) => {
|
|
28830
29402
|
let i = (r + e / 60) % 6;
|
|
28831
29403
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -28836,26 +29408,26 @@ function Wd({ h: e, s: t, v: n }) {
|
|
|
28836
29408
|
r(1)
|
|
28837
29409
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
28838
29410
|
}
|
|
28839
|
-
function
|
|
28840
|
-
let [n, r] = f(() =>
|
|
29411
|
+
function Nf({ hex: e, onPick: t }) {
|
|
29412
|
+
let [n, r] = f(() => jf(e ?? "#1D4ED8")), i = d(n), a = (e) => {
|
|
28841
29413
|
i.current = e, r(e);
|
|
28842
29414
|
};
|
|
28843
29415
|
o(() => {
|
|
28844
|
-
if (!e ||
|
|
28845
|
-
let t =
|
|
29416
|
+
if (!e || Mf(i.current) === e) return;
|
|
29417
|
+
let t = jf(e);
|
|
28846
29418
|
a(t.s === 0 || t.v === 0 ? {
|
|
28847
29419
|
...t,
|
|
28848
29420
|
h: i.current.h
|
|
28849
29421
|
} : t);
|
|
28850
29422
|
}, [e]);
|
|
28851
29423
|
let s = (e) => {
|
|
28852
|
-
a(e), t(
|
|
29424
|
+
a(e), t(Mf(e));
|
|
28853
29425
|
}, c = (e, t, n) => {
|
|
28854
29426
|
var r;
|
|
28855
29427
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
28856
29428
|
let i = (t) => {
|
|
28857
29429
|
let r = e.getBoundingClientRect();
|
|
28858
|
-
n(
|
|
29430
|
+
n(Af((t.clientX - r.left) / (r.width || 1)), Af((t.clientY - r.top) / (r.height || 1)));
|
|
28859
29431
|
};
|
|
28860
29432
|
i(t);
|
|
28861
29433
|
let a = (e) => i(e), o = () => {
|
|
@@ -28865,20 +29437,20 @@ function Gd({ hex: e, onPick: t }) {
|
|
|
28865
29437
|
}, l = (e) => {
|
|
28866
29438
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, o = e.key === "ArrowLeft" ? {
|
|
28867
29439
|
h: n,
|
|
28868
|
-
s:
|
|
29440
|
+
s: Af(r - t),
|
|
28869
29441
|
v: a
|
|
28870
29442
|
} : e.key === "ArrowRight" ? {
|
|
28871
29443
|
h: n,
|
|
28872
|
-
s:
|
|
29444
|
+
s: Af(r + t),
|
|
28873
29445
|
v: a
|
|
28874
29446
|
} : e.key === "ArrowUp" ? {
|
|
28875
29447
|
h: n,
|
|
28876
29448
|
s: r,
|
|
28877
|
-
v:
|
|
29449
|
+
v: Af(a + t)
|
|
28878
29450
|
} : e.key === "ArrowDown" ? {
|
|
28879
29451
|
h: n,
|
|
28880
29452
|
s: r,
|
|
28881
|
-
v:
|
|
29453
|
+
v: Af(a - t)
|
|
28882
29454
|
} : null;
|
|
28883
29455
|
o && (e.preventDefault(), s(o));
|
|
28884
29456
|
}, u = (e) => {
|
|
@@ -28888,11 +29460,11 @@ function Gd({ hex: e, onPick: t }) {
|
|
|
28888
29460
|
s: r,
|
|
28889
29461
|
v: a
|
|
28890
29462
|
}));
|
|
28891
|
-
}, p =
|
|
29463
|
+
}, p = Mf({
|
|
28892
29464
|
h: n.h,
|
|
28893
29465
|
s: 1,
|
|
28894
29466
|
v: 1
|
|
28895
|
-
}), _ =
|
|
29467
|
+
}), _ = Mf(n);
|
|
28896
29468
|
return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
|
|
28897
29469
|
className: "select-colorfield__sv",
|
|
28898
29470
|
style: { backgroundColor: p },
|
|
@@ -28936,24 +29508,24 @@ function Gd({ hex: e, onPick: t }) {
|
|
|
28936
29508
|
})
|
|
28937
29509
|
})] });
|
|
28938
29510
|
}
|
|
28939
|
-
var
|
|
28940
|
-
function
|
|
29511
|
+
var Pf = (e) => e.toFixed(1).replace(".", ",");
|
|
29512
|
+
function Ff({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: c = Tf, disabled: l = !1, allowEmpty: u = !1, contrastWith: d, contrastLabel: p = "o texto", id: _ }) {
|
|
28941
29513
|
let v = s(), y = _ ?? `color-${v}`, [b, x] = f(!1), [S, C] = f(i ?? ""), [w, T] = f(null);
|
|
28942
29514
|
o(() => {
|
|
28943
29515
|
C(i ?? ""), T(null);
|
|
28944
29516
|
}, [i]);
|
|
28945
|
-
let E =
|
|
29517
|
+
let E = Df(i ?? ""), D = (e) => {
|
|
28946
29518
|
if (!e.trim()) {
|
|
28947
29519
|
u ? (T(null), a("")) : C(i ?? "");
|
|
28948
29520
|
return;
|
|
28949
29521
|
}
|
|
28950
|
-
let t =
|
|
29522
|
+
let t = Df(e);
|
|
28951
29523
|
if (!t) {
|
|
28952
29524
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
28953
29525
|
return;
|
|
28954
29526
|
}
|
|
28955
29527
|
T(null), C(t), t !== E && a(t);
|
|
28956
|
-
}, O = d ?
|
|
29528
|
+
}, O = d ? Df(d) : null, k = E && O ? kf(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
|
|
28957
29529
|
return /* @__PURE__ */ g("div", {
|
|
28958
29530
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
28959
29531
|
children: [
|
|
@@ -28981,7 +29553,7 @@ function qd({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
28981
29553
|
children: /* @__PURE__ */ g("div", {
|
|
28982
29554
|
className: "select-colorfield__panel",
|
|
28983
29555
|
children: [
|
|
28984
|
-
/* @__PURE__ */ h(
|
|
29556
|
+
/* @__PURE__ */ h(Nf, {
|
|
28985
29557
|
hex: E,
|
|
28986
29558
|
onPick: D
|
|
28987
29559
|
}),
|
|
@@ -28990,7 +29562,7 @@ function qd({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
28990
29562
|
role: "group",
|
|
28991
29563
|
"aria-label": "Cores prontas",
|
|
28992
29564
|
children: c.map((e) => {
|
|
28993
|
-
let t =
|
|
29565
|
+
let t = Df(e) ?? e, n = t === E;
|
|
28994
29566
|
return /* @__PURE__ */ h("button", {
|
|
28995
29567
|
type: "button",
|
|
28996
29568
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -29021,7 +29593,7 @@ function qd({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
29021
29593
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
29022
29594
|
value: S,
|
|
29023
29595
|
onChange: (e) => {
|
|
29024
|
-
C(e.target.value), e.target.value.replace("#", "").length === 6 &&
|
|
29596
|
+
C(e.target.value), e.target.value.replace("#", "").length === 6 && Df(e.target.value) && D(e.target.value);
|
|
29025
29597
|
},
|
|
29026
29598
|
onBlur: () => D(S),
|
|
29027
29599
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -29044,14 +29616,14 @@ function qd({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
29044
29616
|
}) : null : /* @__PURE__ */ g("p", {
|
|
29045
29617
|
id: `${y}-hint`,
|
|
29046
29618
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
29047
|
-
children: [k >= 4.5 ? `Contraste com ${p}: ${
|
|
29619
|
+
children: [k >= 4.5 ? `Contraste com ${p}: ${Pf(k)}:1 — legível.` : `Contraste com ${p}: ${Pf(k)}:1 — difícil de ler. Escolha uma cor ${Of(E) < Of(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ g(m, { children: [" ", n] }) : null]
|
|
29048
29620
|
})
|
|
29049
29621
|
]
|
|
29050
29622
|
});
|
|
29051
29623
|
}
|
|
29052
29624
|
//#endregion
|
|
29053
29625
|
//#region src/SelectProgressBar.tsx
|
|
29054
|
-
var
|
|
29626
|
+
var If = 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
29627
|
if (l) return /* @__PURE__ */ g("div", {
|
|
29056
29628
|
ref: f,
|
|
29057
29629
|
...d,
|
|
@@ -29096,7 +29668,7 @@ var Jd = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
29096
29668
|
})
|
|
29097
29669
|
]
|
|
29098
29670
|
});
|
|
29099
|
-
}),
|
|
29671
|
+
}), Lf = 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
29672
|
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
29673
|
t == null ? /* @__PURE__ */ g("span", {
|
|
29102
29674
|
className: "select-choicecard__top",
|
|
@@ -29164,7 +29736,7 @@ var Jd = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
29164
29736
|
children: x
|
|
29165
29737
|
});
|
|
29166
29738
|
});
|
|
29167
|
-
function
|
|
29739
|
+
function Rf({ badge: e = !0 }) {
|
|
29168
29740
|
return /* @__PURE__ */ g("div", {
|
|
29169
29741
|
className: "select-choicecard select-choicecard--skeleton",
|
|
29170
29742
|
"aria-hidden": "true",
|
|
@@ -29185,7 +29757,7 @@ function Xd({ badge: e = !0 }) {
|
|
|
29185
29757
|
]
|
|
29186
29758
|
});
|
|
29187
29759
|
}
|
|
29188
|
-
var
|
|
29760
|
+
var zf = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, listOnPhone: i = !1, className: a, style: o, ...s }, c) {
|
|
29189
29761
|
return /* @__PURE__ */ h("div", {
|
|
29190
29762
|
ref: c,
|
|
29191
29763
|
...s,
|
|
@@ -29195,16 +29767,16 @@ var Zd = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
29195
29767
|
"--select-choice-min": t,
|
|
29196
29768
|
...o
|
|
29197
29769
|
},
|
|
29198
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ h(
|
|
29770
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ h(Rf, {}, t)) : e
|
|
29199
29771
|
});
|
|
29200
|
-
}),
|
|
29772
|
+
}), Bf = 960, Vf = Math.round(Bf * 210 / 297), Hf = 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
29773
|
let v = d(null), [y, b] = f(.5);
|
|
29202
29774
|
o(() => {
|
|
29203
29775
|
let e = v.current;
|
|
29204
29776
|
if (!e) return;
|
|
29205
29777
|
let t = () => {
|
|
29206
29778
|
let t = e.clientWidth;
|
|
29207
|
-
t > 0 && b(Math.min(1, t /
|
|
29779
|
+
t > 0 && b(Math.min(1, t / Bf));
|
|
29208
29780
|
};
|
|
29209
29781
|
if (t(), typeof ResizeObserver > "u") return;
|
|
29210
29782
|
let n = new ResizeObserver(t);
|
|
@@ -29212,7 +29784,7 @@ var Zd = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
29212
29784
|
}, []);
|
|
29213
29785
|
let x = e === "front", S = {
|
|
29214
29786
|
"--select-cert-accent": t || void 0,
|
|
29215
|
-
height:
|
|
29787
|
+
height: Vf * y + 2
|
|
29216
29788
|
};
|
|
29217
29789
|
return /* @__PURE__ */ h("div", {
|
|
29218
29790
|
ref: (e) => {
|
|
@@ -29225,8 +29797,8 @@ var Zd = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
29225
29797
|
children: /* @__PURE__ */ h("div", {
|
|
29226
29798
|
className: "select-certpreview__sheet",
|
|
29227
29799
|
style: {
|
|
29228
|
-
width:
|
|
29229
|
-
height:
|
|
29800
|
+
width: Bf,
|
|
29801
|
+
height: Vf,
|
|
29230
29802
|
transform: `scale(${y})`
|
|
29231
29803
|
},
|
|
29232
29804
|
children: /* @__PURE__ */ g("div", {
|
|
@@ -29299,13 +29871,13 @@ var Zd = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
29299
29871
|
});
|
|
29300
29872
|
//#endregion
|
|
29301
29873
|
//#region src/SelectImageField.tsx
|
|
29302
|
-
function
|
|
29874
|
+
function Uf(e) {
|
|
29303
29875
|
return new Promise((t, n) => {
|
|
29304
29876
|
let r = new FileReader();
|
|
29305
29877
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
29306
29878
|
});
|
|
29307
29879
|
}
|
|
29308
|
-
var
|
|
29880
|
+
var Wf = 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
29881
|
let [d, p] = f([]), [m, _] = f(null), v = t ? [t] : [], y = async (e) => {
|
|
29310
29882
|
let t = e[0];
|
|
29311
29883
|
if (!t) {
|
|
@@ -29313,7 +29885,7 @@ var nf = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
29313
29885
|
return;
|
|
29314
29886
|
}
|
|
29315
29887
|
if (_(null), !s) {
|
|
29316
|
-
n(await
|
|
29888
|
+
n(await Uf(t)), p([]);
|
|
29317
29889
|
return;
|
|
29318
29890
|
}
|
|
29319
29891
|
p([t]);
|
|
@@ -29345,7 +29917,7 @@ var nf = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
29345
29917
|
children: m
|
|
29346
29918
|
})]
|
|
29347
29919
|
});
|
|
29348
|
-
}),
|
|
29920
|
+
}), Gf = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
29349
29921
|
let [o, s] = f(() => new Set(n)), c = (e) => s((n) => {
|
|
29350
29922
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
29351
29923
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -29391,6 +29963,6 @@ var nf = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
29391
29963
|
});
|
|
29392
29964
|
});
|
|
29393
29965
|
//#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,
|
|
29966
|
+
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, yu as SELECT_BR_UF_TILES, Br as SELECT_CARD_BRANDS, Tf as SELECT_COLOR_PRESETS, us as SELECT_COL_DATETIME, ds as SELECT_COL_ID, yr as SELECT_COUNTRIES, cf as SELECT_DAILY_PRESETS, af as SELECT_DATE_PRESETS, kr as SELECT_SPACE, Ns as SELECT_TOKEN_PATTERN, Tr as SELECT_TRANSACTION_STATUS, ae as SearchIcon, Gf as SelectAccordion, lo as SelectActionCard, Dr as SelectActionList, Or as SelectActionMenu, Mn as SelectAddButton, ws as SelectAddCard, Cn as SelectAlert, uo as SelectAppTile, bl as SelectAssistant, H as SelectAuthFx, zi as SelectAvatar, Yi as SelectBackLink, wr as SelectBadge, Jc as SelectBalanceCard, rr as SelectBankAccountField, Wl as SelectBarChart, Lr as SelectBox, Lu as SelectBoxPlot, aa as SelectBreadcrumb, vf as SelectBuilderLayout, yf as SelectBuilderWorkspace, Au as SelectBullet, cd as SelectBump, U as SelectButton, Yo as SelectCalendar, zu as SelectCalendarHeatmap, Iu as SelectCandlestick, ne as SelectCard, Ts as SelectCardGrid, Hf as SelectCertificatePreview, Dl as SelectChartCard, tu as SelectChartLegend, xl as SelectChatMessage, Sl as SelectChatTurn, Cl as SelectChatTyping, dn as SelectCheckbox, Hi as SelectChipInput, Lf as SelectChoiceCard, Rf as SelectChoiceCardSkeleton, zf as SelectChoiceGrid, Ju as SelectChord, hd as SelectCirclePack, oo as SelectCodeBlock, co as SelectCollapsible, Ff as SelectColorField, eu as SelectColumnChart, Xl as SelectComboChart, $n as SelectCombobox, cs as SelectConfirmModal, io as SelectCopyRow, so as SelectCopyableId, fo as SelectCreateTile, Cs as SelectDataTable, Oc as SelectDateField, uf as SelectDatePicker, hf as SelectDateRangeField, Dd as SelectDetailList, Od as SelectDetailRow, Vs as SelectDeviceFrame, ti as SelectDisclosureButton, Ri as SelectDivider, xn as SelectDocumentField, Zl as SelectDonut, C as SelectDotField, js as SelectDragHandle, Ms as SelectDragPreview, Hu as SelectDumbbell, Ds as SelectFactList, Yc as SelectFeeBreakdown, un as SelectField, er as SelectFieldGrid, jn as SelectFileDropzone, wn as SelectFileTile, Nc as SelectFilterBar, ro as SelectFilterChip, xf as SelectFlowCanvas, Cf as SelectFlowLayout, Sf as SelectFlowNode, la as SelectFormLayout, ls as SelectFormModal, du as SelectFunnel, gu as SelectGauge, Wu as SelectGaugeBands, rd as SelectGlobe, Pr as SelectGrid, _u as SelectHeatmap, Yu as SelectHexbin, lc as SelectHideMoneyToggle, Du as SelectHorizontalBar, $o as SelectHtmlFrame, fd as SelectIcicle, va as SelectIcon, ei as SelectIconButton, Gs as SelectIconPicker, ou as SelectIconTile, Gi as SelectIdentityFooter, Wf as SelectImageField, Bn as SelectImageGalleryField, Pn as SelectImageUploadField, Nn as SelectImageUrlsField, Wd as SelectImageZoomModal, on as SelectInfoTip, Nr as SelectInline, gl as SelectInsight, _l as SelectInsightList, vl as SelectInsightRow, iu as SelectJourney, Ni as SelectJsonViewer, go as SelectKanban, _o as SelectKanbanCard, Sd as SelectKbd, Yd as SelectKeyValueEditor, Xc as SelectKpiCard, sn as SelectLabelRow, ks as SelectLayoutThumb, Jl as SelectLineChart, Li as SelectLinkButton, Bd as SelectListCard, Hd as SelectListLabel, Vd as SelectListRow, ia as SelectLoader, ts as SelectMailList, ns as SelectMailListItem, is as SelectMailMessage, Us as SelectMailPreview, Uu as SelectMarimekko, mc as SelectMarkStack, Kd as SelectMediaCell, Xa as SelectMenu, no as SelectMenuButton, to as SelectMenuDivider, eo as SelectMenuHeading, Qa as SelectMenuItem, $a as SelectMenuLink, Hs as SelectMessageBubble, cc as SelectMetricDelta, lu as SelectMiniStats, os as SelectModal, oc as SelectMoney, _n as SelectMoneyField, gd as SelectNetwork, ya as SelectNote, gf as SelectNumberField, El as SelectNumberedItem, Tl as SelectNumberedList, uc as SelectOfferPrice, qd as SelectOfflineModal, Ui as SelectOptionList, Wi as SelectOptionRow, Ki as SelectOtpInput, oa as SelectPage, Na as SelectPagination, Sa as SelectPanel, ld as SelectParallel, ad as SelectPareto, ra as SelectPasswordStrength, Xr as SelectPaymentBrand, uu as SelectPaymentCard, xr as SelectPhoneField, au as SelectPips, zd as SelectPlanCard, Bu as SelectPolarArea, Zn as SelectPopover, qc as SelectPreviewFrame, zs as SelectPreviewStage, If as SelectProgressBar, bu as SelectProgressList, sd as SelectPyramid, Pu as SelectRadar, Su as SelectRadialBar, Sr as SelectRadioGroup, Ru as SelectRangeBar, fc as SelectRating, pc as SelectRatingQuote, Es as SelectRecordCard, _f as SelectRepeatingFieldArray, Zi as SelectResendButton, $i as SelectRetryStatus, ru as SelectRing, ss as SelectRowActions, Fu as SelectSankey, Nu as SelectScatter, Aa as SelectSearchInput, vd as SelectSearchMenu, bd as SelectSearchMenuGroup, xd as SelectSearchMenuOption, Ca as SelectSection, Cr as SelectSegmented, Vn as SelectSelect, ac as SelectSensitiveValue, ba as SelectSettingList, xa as SelectSettingRow, Md as SelectSetupGuide, Nd as SelectSetupNext, nu as SelectShareBar, ka as SelectSideNav, ga as SelectSkeleton, Vu as SelectSlope, As as SelectSortableItem, Hl as SelectSparkline, Js as SelectSplitChain, su as SelectSpotlight, Mr as SelectStack, Yl as SelectStackedArea, Er as SelectStatusBadge, kd as SelectSteps, Gu as SelectStreamGraph, Ku as SelectSunburst, Fc as SelectSurface, ir as SelectSwitch, wf as SelectSwitchField, Ha as SelectTable, Ja as SelectTableCell, Ya as SelectTableEmpty, Ga as SelectTableRow, wa as SelectTabs, Pc as SelectTagSelect, cu as SelectTaskCard, Rr as SelectText, fn as SelectTextarea, Td as SelectThemeSwitcher, Ud as SelectThumbnail, id as SelectTicker, vu as SelectTileMap, Ii as SelectTimeline, Hc as SelectToastProvider, ar as SelectToggleList, sr as SelectTogglePanel, or as SelectToggleRow, Rs as SelectTokenTextarea, an as SelectTooltip, Rd as SelectTour, pd as SelectTree, Mu as SelectTreemap, pn as SelectUnitInput, Wa as SelectUserCell, rc as SelectValueVisibilityProvider, md as SelectVenn, qu as SelectViolin, od as SelectWaffle, Ou as SelectWaterfall, Xu as SelectWordCloud, po as SelectWorkspaceSwitcher, Gd 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, Lo as calendarRange, Fo as calendarToday, kf as contrastRatio, Yn as detectSelectTheme, br as dialCodeOf, rl as formatInsightImpact, Xi as formatResendWait, In as galleryItemFromFile, Ln as galleryItemFromUrl, jf as hexToHsv, Mf as hsvToHex, es as mailName, Df as normalizeHex, na as passwordScore, ao as prettyCode, Ls as readTokenText, wd as resolveSelectTheme, Ur as selectCardBrand, Wr as selectCardBrandLabel, xs as useSelectPageSize, Uc as useSelectToast, ic as useSelectValueVisibility };
|
|
29395
29967
|
|
|
29396
29968
|
//# sourceMappingURL=index.js.map
|