@selectwin/kit 0.1.146 → 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/index.d.ts +2 -0
- package/dist/index.js +1039 -598
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7714,8 +7714,449 @@ 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
|
|
7717
8158
|
//#region src/SelectHtmlFrame.tsx
|
|
7718
|
-
function
|
|
8159
|
+
function Qo(e) {
|
|
7719
8160
|
let t = e.trim();
|
|
7720
8161
|
if (t.startsWith("/") && !t.startsWith("//") && !t.startsWith("/\\")) return !0;
|
|
7721
8162
|
try {
|
|
@@ -7724,8 +8165,8 @@ function vo(e) {
|
|
|
7724
8165
|
return !1;
|
|
7725
8166
|
}
|
|
7726
8167
|
}
|
|
7727
|
-
function
|
|
7728
|
-
let a =
|
|
8168
|
+
function $o({ src: e, title: t, height: n = "28rem", allowLinks: r = !1, className: i }) {
|
|
8169
|
+
let a = Qo(e);
|
|
7729
8170
|
return /* @__PURE__ */ h("div", {
|
|
7730
8171
|
className: `select-htmlframe${i ? " " + i : ""}`,
|
|
7731
8172
|
children: a ? /* @__PURE__ */ h("iframe", {
|
|
@@ -7740,18 +8181,18 @@ function yo({ src: e, title: t, height: n = "28rem", allowLinks: r = !1, classNa
|
|
|
7740
8181
|
}
|
|
7741
8182
|
//#endregion
|
|
7742
8183
|
//#region src/SelectMail.tsx
|
|
7743
|
-
function
|
|
8184
|
+
function es(e) {
|
|
7744
8185
|
var t;
|
|
7745
8186
|
return e ? ((t = e.name) == null ? void 0 : t.trim()) || e.address : "Remetente desconhecido";
|
|
7746
8187
|
}
|
|
7747
|
-
function
|
|
8188
|
+
function ts({ children: e, "aria-label": t }) {
|
|
7748
8189
|
return /* @__PURE__ */ h("ul", {
|
|
7749
8190
|
className: "select-maillist",
|
|
7750
8191
|
"aria-label": t,
|
|
7751
8192
|
children: e
|
|
7752
8193
|
});
|
|
7753
8194
|
}
|
|
7754
|
-
function
|
|
8195
|
+
function ns({ from: e, subject: t, snippet: n, date: r, count: i, attachments: a, active: o = !1, onClick: s }) {
|
|
7755
8196
|
return /* @__PURE__ */ h("li", {
|
|
7756
8197
|
className: "select-maillist__item",
|
|
7757
8198
|
children: /* @__PURE__ */ g("button", {
|
|
@@ -7795,8 +8236,8 @@ function So({ from: e, subject: t, snippet: n, date: r, count: i, attachments: a
|
|
|
7795
8236
|
})
|
|
7796
8237
|
});
|
|
7797
8238
|
}
|
|
7798
|
-
var
|
|
7799
|
-
function
|
|
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 }) {
|
|
7800
8241
|
return /* @__PURE__ */ g("article", {
|
|
7801
8242
|
className: "select-mailmsg",
|
|
7802
8243
|
children: [
|
|
@@ -7807,18 +8248,18 @@ function wo({ from: e, to: t, cc: n, date: r, actions: i, notice: a, text: o, ch
|
|
|
7807
8248
|
children: [
|
|
7808
8249
|
/* @__PURE__ */ g("span", {
|
|
7809
8250
|
className: "select-mailmsg__from",
|
|
7810
|
-
children: [
|
|
8251
|
+
children: [es(e), e != null && e.name ? /* @__PURE__ */ h("span", {
|
|
7811
8252
|
className: "select-mailmsg__address",
|
|
7812
8253
|
children: `<${e.address}>`
|
|
7813
8254
|
}) : null]
|
|
7814
8255
|
}),
|
|
7815
8256
|
t != null && t.length ? /* @__PURE__ */ h("span", {
|
|
7816
8257
|
className: "select-mailmsg__to",
|
|
7817
|
-
children: `para ${
|
|
8258
|
+
children: `para ${rs(t)}`
|
|
7818
8259
|
}) : null,
|
|
7819
8260
|
n != null && n.length ? /* @__PURE__ */ h("span", {
|
|
7820
8261
|
className: "select-mailmsg__to",
|
|
7821
|
-
children: `cópia ${
|
|
8262
|
+
children: `cópia ${rs(n)}`
|
|
7822
8263
|
}) : null
|
|
7823
8264
|
]
|
|
7824
8265
|
}), /* @__PURE__ */ g("div", {
|
|
@@ -7846,8 +8287,8 @@ function wo({ from: e, to: t, cc: n, date: r, actions: i, notice: a, text: o, ch
|
|
|
7846
8287
|
}
|
|
7847
8288
|
//#endregion
|
|
7848
8289
|
//#region src/SelectModal.tsx
|
|
7849
|
-
var
|
|
7850
|
-
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" }) {
|
|
7851
8292
|
let [x, S] = f(e), [C, w] = f(!1);
|
|
7852
8293
|
if (o(() => {
|
|
7853
8294
|
if (e) S(!0), w(!1);
|
|
@@ -7855,7 +8296,7 @@ function Eo({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
7855
8296
|
w(!0);
|
|
7856
8297
|
let e = setTimeout(() => {
|
|
7857
8298
|
S(!1), w(!1);
|
|
7858
|
-
},
|
|
8299
|
+
}, as);
|
|
7859
8300
|
return () => clearTimeout(e);
|
|
7860
8301
|
}
|
|
7861
8302
|
}, [e, x]), o(() => {
|
|
@@ -7947,7 +8388,7 @@ function Eo({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
7947
8388
|
}
|
|
7948
8389
|
//#endregion
|
|
7949
8390
|
//#region src/SelectRowActions.tsx
|
|
7950
|
-
function
|
|
8391
|
+
function ss({ actions: e, label: t = "Ações" }) {
|
|
7951
8392
|
let [n, r] = f(!1);
|
|
7952
8393
|
return /* @__PURE__ */ h(Zn, {
|
|
7953
8394
|
active: n,
|
|
@@ -7969,8 +8410,8 @@ function Do({ actions: e, label: t = "Ações" }) {
|
|
|
7969
8410
|
}
|
|
7970
8411
|
//#endregion
|
|
7971
8412
|
//#region src/SelectConfirmModal.tsx
|
|
7972
|
-
function
|
|
7973
|
-
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, {
|
|
7974
8415
|
open: e,
|
|
7975
8416
|
onClose: t,
|
|
7976
8417
|
title: r,
|
|
@@ -8002,8 +8443,8 @@ function Oo({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
8002
8443
|
}
|
|
8003
8444
|
//#endregion
|
|
8004
8445
|
//#region src/SelectFormModal.tsx
|
|
8005
|
-
function
|
|
8006
|
-
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, {
|
|
8007
8448
|
open: e,
|
|
8008
8449
|
onClose: t,
|
|
8009
8450
|
title: r,
|
|
@@ -8045,34 +8486,34 @@ function ko({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
8045
8486
|
}
|
|
8046
8487
|
//#endregion
|
|
8047
8488
|
//#region src/SelectDataTable.tsx
|
|
8048
|
-
var
|
|
8489
|
+
var us = "9.5rem", ds = {
|
|
8049
8490
|
minWidth: "9.5rem",
|
|
8050
8491
|
grow: 2
|
|
8051
8492
|
};
|
|
8052
|
-
function
|
|
8493
|
+
function fs(e) {
|
|
8053
8494
|
return [e.wrap ? "select-table__td--wrap" : "", e.tone ? `select-table__td--${e.tone}` : ""].filter(Boolean).join(" ") || void 0;
|
|
8054
8495
|
}
|
|
8055
|
-
var
|
|
8056
|
-
function
|
|
8496
|
+
var ps = "select-datatable:hidden-cols:";
|
|
8497
|
+
function ms(e) {
|
|
8057
8498
|
try {
|
|
8058
|
-
let t = localStorage.getItem(
|
|
8499
|
+
let t = localStorage.getItem(ps + e), n = t ? JSON.parse(t) : null;
|
|
8059
8500
|
return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
|
|
8060
8501
|
} catch {
|
|
8061
8502
|
return [];
|
|
8062
8503
|
}
|
|
8063
8504
|
}
|
|
8064
|
-
function
|
|
8505
|
+
function hs(e, t) {
|
|
8065
8506
|
try {
|
|
8066
|
-
t.length === 0 ? localStorage.removeItem(
|
|
8507
|
+
t.length === 0 ? localStorage.removeItem(ps + e) : localStorage.setItem(ps + e, JSON.stringify(t));
|
|
8067
8508
|
} catch {}
|
|
8068
8509
|
}
|
|
8069
|
-
function
|
|
8510
|
+
function gs(e) {
|
|
8070
8511
|
return e.hideable ?? !!e.title;
|
|
8071
8512
|
}
|
|
8072
|
-
var
|
|
8073
|
-
function
|
|
8513
|
+
var _s = "select-datatable:col-widths:";
|
|
8514
|
+
function vs(e) {
|
|
8074
8515
|
try {
|
|
8075
|
-
let t = localStorage.getItem(
|
|
8516
|
+
let t = localStorage.getItem(_s + e), n = t ? JSON.parse(t) : null;
|
|
8076
8517
|
if (!n || typeof n != "object" || Array.isArray(n)) return {};
|
|
8077
8518
|
let r = {};
|
|
8078
8519
|
for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
|
|
@@ -8081,16 +8522,16 @@ function Ro(e) {
|
|
|
8081
8522
|
return {};
|
|
8082
8523
|
}
|
|
8083
8524
|
}
|
|
8084
|
-
function
|
|
8525
|
+
function ys(e, t) {
|
|
8085
8526
|
try {
|
|
8086
|
-
Object.keys(t).length === 0 ? localStorage.removeItem(
|
|
8527
|
+
Object.keys(t).length === 0 ? localStorage.removeItem(_s + e) : localStorage.setItem(_s + e, JSON.stringify(t));
|
|
8087
8528
|
} catch {}
|
|
8088
8529
|
}
|
|
8089
|
-
var
|
|
8090
|
-
function
|
|
8530
|
+
var bs = "select-datatable:page-size:";
|
|
8531
|
+
function xs(e, t, n) {
|
|
8091
8532
|
let [r, i] = f(() => {
|
|
8092
8533
|
try {
|
|
8093
|
-
let r = Number(localStorage.getItem(
|
|
8534
|
+
let r = Number(localStorage.getItem(bs + e));
|
|
8094
8535
|
return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
|
|
8095
8536
|
} catch {
|
|
8096
8537
|
return t;
|
|
@@ -8099,25 +8540,25 @@ function Vo(e, t, n) {
|
|
|
8099
8540
|
return [r, (t) => {
|
|
8100
8541
|
i(t);
|
|
8101
8542
|
try {
|
|
8102
|
-
localStorage.setItem(
|
|
8543
|
+
localStorage.setItem(bs + e, String(t));
|
|
8103
8544
|
} catch {}
|
|
8104
8545
|
}];
|
|
8105
8546
|
}
|
|
8106
|
-
function
|
|
8547
|
+
function Ss(e, t, n) {
|
|
8107
8548
|
let r = e == null || e === "", i = t == null || t === "";
|
|
8108
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", {
|
|
8109
8550
|
numeric: !0,
|
|
8110
8551
|
sensitivity: "base"
|
|
8111
8552
|
});
|
|
8112
8553
|
}
|
|
8113
|
-
function
|
|
8114
|
-
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) => {
|
|
8115
8556
|
let r = new Set(t), i = n(e);
|
|
8116
8557
|
return r.delete(i) || r.add(i), r;
|
|
8117
8558
|
}), U = (e) => {
|
|
8118
8559
|
T((t) => {
|
|
8119
8560
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
8120
|
-
return m &&
|
|
8561
|
+
return m && hs(m, r), n && ee((t) => t && t.key === e.key ? null : t), r;
|
|
8121
8562
|
});
|
|
8122
8563
|
}, re = (e) => {
|
|
8123
8564
|
ee((t) => {
|
|
@@ -8134,7 +8575,7 @@ function Uo({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8134
8575
|
let e = ie == null ? void 0 : ie.sortValue;
|
|
8135
8576
|
if (!B || !e) return (e) => e;
|
|
8136
8577
|
let t = B.dir === "asc" ? 1 : -1;
|
|
8137
|
-
return (n) => [...n].sort((n, r) =>
|
|
8578
|
+
return (n) => [...n].sort((n, r) => Ss(e(n), e(r), t));
|
|
8138
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 ? [{
|
|
8139
8580
|
label: "",
|
|
8140
8581
|
grow: 1
|
|
@@ -8153,10 +8594,10 @@ function Uo({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8153
8594
|
let n = R[e];
|
|
8154
8595
|
n && N((e) => {
|
|
8155
8596
|
let r = { ...e };
|
|
8156
|
-
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;
|
|
8157
8598
|
});
|
|
8158
8599
|
}, oe = () => {
|
|
8159
|
-
N({}), m &&
|
|
8600
|
+
N({}), m && ys(m, {});
|
|
8160
8601
|
}, Y = Object.keys(M).length > 0, se = !r && i ? /* @__PURE__ */ h(Ya, {
|
|
8161
8602
|
icon: i.icon,
|
|
8162
8603
|
title: i.heading,
|
|
@@ -8243,7 +8684,7 @@ function Uo({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8243
8684
|
children: R.map((t, n) => /* @__PURE__ */ h(Ja, {
|
|
8244
8685
|
align: t.align,
|
|
8245
8686
|
width: t.width,
|
|
8246
|
-
className:
|
|
8687
|
+
className: fs(t),
|
|
8247
8688
|
disclosure: q && n === 0 ? "none" : void 0,
|
|
8248
8689
|
children: t.render(e)
|
|
8249
8690
|
}, n))
|
|
@@ -8255,7 +8696,7 @@ function Uo({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8255
8696
|
children: R.map((t, n) => /* @__PURE__ */ h(Ja, {
|
|
8256
8697
|
align: t.align,
|
|
8257
8698
|
width: t.width,
|
|
8258
|
-
className:
|
|
8699
|
+
className: fs(t),
|
|
8259
8700
|
disclosure: n === 0 ? r ? "open" : "closed" : void 0,
|
|
8260
8701
|
children: t.render(e)
|
|
8261
8702
|
}, n))
|
|
@@ -8265,7 +8706,7 @@ function Uo({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8265
8706
|
children: R.map((e, n) => /* @__PURE__ */ h(Ja, {
|
|
8266
8707
|
align: e.align,
|
|
8267
8708
|
width: e.width,
|
|
8268
|
-
className:
|
|
8709
|
+
className: fs(e),
|
|
8269
8710
|
children: e.render(t)
|
|
8270
8711
|
}, n))
|
|
8271
8712
|
}, `${n(e)}/${n(t)}`)) : []];
|
|
@@ -8275,7 +8716,7 @@ function Uo({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
8275
8716
|
}
|
|
8276
8717
|
//#endregion
|
|
8277
8718
|
//#region src/SelectAddCard.tsx
|
|
8278
|
-
var
|
|
8719
|
+
var ws = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
|
|
8279
8720
|
return /* @__PURE__ */ g("button", {
|
|
8280
8721
|
ref: o,
|
|
8281
8722
|
...a,
|
|
@@ -8301,7 +8742,7 @@ var Wo = r(function({ label: e, description: t, onClick: n, icon: r, className:
|
|
|
8301
8742
|
});
|
|
8302
8743
|
//#endregion
|
|
8303
8744
|
//#region src/SelectCardGrid.tsx
|
|
8304
|
-
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: _ }) {
|
|
8305
8746
|
let v = !r && e.length === 0 && a != null, { hasTitleRow: y, hasFilters: b } = Pa({
|
|
8306
8747
|
title: u,
|
|
8307
8748
|
description: f,
|
|
@@ -8357,7 +8798,7 @@ function Go({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
8357
8798
|
}, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ h("div", {
|
|
8358
8799
|
className: "select-cardgrid__item",
|
|
8359
8800
|
children: n(e)
|
|
8360
|
-
}, t(e))), !r && s && /* @__PURE__ */ h(
|
|
8801
|
+
}, t(e))), !r && s && /* @__PURE__ */ h(ws, {
|
|
8361
8802
|
label: s.label,
|
|
8362
8803
|
description: s.description,
|
|
8363
8804
|
onClick: s.onAction,
|
|
@@ -8370,7 +8811,7 @@ function Go({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
8370
8811
|
}
|
|
8371
8812
|
//#endregion
|
|
8372
8813
|
//#region src/SelectRecordCard.tsx
|
|
8373
|
-
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) {
|
|
8374
8815
|
let b = s != null || c != null, x = Ji(l);
|
|
8375
8816
|
return /* @__PURE__ */ g("div", {
|
|
8376
8817
|
ref: y,
|
|
@@ -8385,7 +8826,7 @@ var Ko = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
8385
8826
|
className: "select-rcard__preview",
|
|
8386
8827
|
"aria-hidden": "true",
|
|
8387
8828
|
children: p
|
|
8388
|
-
}) : null : /* @__PURE__ */ h(
|
|
8829
|
+
}) : null : /* @__PURE__ */ h(Os, {
|
|
8389
8830
|
src: d,
|
|
8390
8831
|
fallback: f
|
|
8391
8832
|
}),
|
|
@@ -8425,7 +8866,7 @@ var Ko = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
8425
8866
|
}),
|
|
8426
8867
|
a && a.length > 0 && /* @__PURE__ */ h("div", {
|
|
8427
8868
|
className: "select-rcard__body",
|
|
8428
|
-
children: /* @__PURE__ */ h(
|
|
8869
|
+
children: /* @__PURE__ */ h(Ds, { items: a })
|
|
8429
8870
|
}),
|
|
8430
8871
|
o && /* @__PURE__ */ h("div", {
|
|
8431
8872
|
className: "select-rcard__tags",
|
|
@@ -8449,7 +8890,7 @@ var Ko = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
8449
8890
|
]
|
|
8450
8891
|
});
|
|
8451
8892
|
});
|
|
8452
|
-
function
|
|
8893
|
+
function Ds({ items: e }) {
|
|
8453
8894
|
return e.length ? /* @__PURE__ */ h("ul", {
|
|
8454
8895
|
className: "select-facts",
|
|
8455
8896
|
children: e.map((e, t) => /* @__PURE__ */ g("li", {
|
|
@@ -8465,7 +8906,7 @@ function qo({ items: e }) {
|
|
|
8465
8906
|
}, e.key ?? t))
|
|
8466
8907
|
}) : null;
|
|
8467
8908
|
}
|
|
8468
|
-
function
|
|
8909
|
+
function Os({ src: e, fallback: t }) {
|
|
8469
8910
|
let [n, r] = f(!1);
|
|
8470
8911
|
return o(() => r(!1), [e]), /* @__PURE__ */ h("span", {
|
|
8471
8912
|
className: "select-rcard__cover",
|
|
@@ -8481,7 +8922,7 @@ function Jo({ src: e, fallback: t }) {
|
|
|
8481
8922
|
})
|
|
8482
8923
|
});
|
|
8483
8924
|
}
|
|
8484
|
-
var
|
|
8925
|
+
var ks = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i, ...a }, o) {
|
|
8485
8926
|
let s = t ? {
|
|
8486
8927
|
...i,
|
|
8487
8928
|
"--select-rcard-thumb-accent": t
|
|
@@ -8504,13 +8945,13 @@ var Yo = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i,
|
|
|
8504
8945
|
children: [/* @__PURE__ */ h("span", { className: "select-rcard__thumbcol" }), /* @__PURE__ */ h("span", { className: "select-rcard__thumbcol" })]
|
|
8505
8946
|
})]
|
|
8506
8947
|
});
|
|
8507
|
-
}),
|
|
8948
|
+
}), As = r(function({ dragging: e = !1, ghost: t = !1, className: n, ...r }, i) {
|
|
8508
8949
|
return /* @__PURE__ */ h("div", {
|
|
8509
8950
|
ref: i,
|
|
8510
8951
|
...r,
|
|
8511
8952
|
className: `select-sortitem${e && !t ? " is-dragging" : ""}${t ? " is-ghost" : ""}${n ? " " + n : ""}`
|
|
8512
8953
|
});
|
|
8513
|
-
}),
|
|
8954
|
+
}), js = r(function({ dragging: e = !1, variant: t = "inline", label: n = "Arrastar para reordenar", className: r, ...i }, a) {
|
|
8514
8955
|
return /* @__PURE__ */ h("button", {
|
|
8515
8956
|
ref: a,
|
|
8516
8957
|
type: "button",
|
|
@@ -8521,7 +8962,7 @@ var Yo = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i,
|
|
|
8521
8962
|
children: /* @__PURE__ */ h(en, {})
|
|
8522
8963
|
});
|
|
8523
8964
|
});
|
|
8524
|
-
function
|
|
8965
|
+
function Ms({ children: e }) {
|
|
8525
8966
|
return /* @__PURE__ */ g("span", {
|
|
8526
8967
|
className: "select-dragpreview",
|
|
8527
8968
|
children: [/* @__PURE__ */ h(en, {}), e]
|
|
@@ -8529,20 +8970,20 @@ function Qo({ children: e }) {
|
|
|
8529
8970
|
}
|
|
8530
8971
|
//#endregion
|
|
8531
8972
|
//#region src/SelectTokenTextarea.tsx
|
|
8532
|
-
var
|
|
8533
|
-
function
|
|
8973
|
+
var Ns = /\{\{?\s*([a-zA-Z_][a-zA-Z0-9_.[\]]*)\s*\}?\}/g, Ps = "data-select-sentinel";
|
|
8974
|
+
function Fs(e, t, n) {
|
|
8534
8975
|
let r = document.createElement("span");
|
|
8535
8976
|
return r.className = "select-token", r.setAttribute("contenteditable", "false"), r.dataset.token = t, r.dataset.raw = e, r.textContent = n(t), r;
|
|
8536
8977
|
}
|
|
8537
|
-
function
|
|
8978
|
+
function Is(e, t, n) {
|
|
8538
8979
|
let r = [], i = new RegExp(t.source, t.flags.includes("g") ? t.flags : t.flags + "g"), a = 0;
|
|
8539
8980
|
for (let t of e.matchAll(i)) {
|
|
8540
8981
|
let i = t.index ?? 0;
|
|
8541
|
-
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;
|
|
8542
8983
|
}
|
|
8543
8984
|
return a < e.length && r.push(document.createTextNode(e.slice(a))), r;
|
|
8544
8985
|
}
|
|
8545
|
-
function
|
|
8986
|
+
function Ls(e) {
|
|
8546
8987
|
let t = "", n = (e) => {
|
|
8547
8988
|
e.childNodes.forEach((e) => {
|
|
8548
8989
|
if (e.nodeType === Node.TEXT_NODE) {
|
|
@@ -8555,7 +8996,7 @@ function rs(e) {
|
|
|
8555
8996
|
return;
|
|
8556
8997
|
}
|
|
8557
8998
|
if (e.tagName === "BR") {
|
|
8558
|
-
e.hasAttribute(
|
|
8999
|
+
e.hasAttribute(Ps) || (t += "\n");
|
|
8559
9000
|
return;
|
|
8560
9001
|
}
|
|
8561
9002
|
(e.tagName === "DIV" || e.tagName === "P") && t && !t.endsWith("\n") && (t += "\n"), n(e);
|
|
@@ -8564,15 +9005,15 @@ function rs(e) {
|
|
|
8564
9005
|
};
|
|
8565
9006
|
return n(e), t.replace(//g, "");
|
|
8566
9007
|
}
|
|
8567
|
-
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) {
|
|
8568
9009
|
let w = s(), T = d(null), E = d(null), D = d(null), O = d(r);
|
|
8569
9010
|
O.current = r;
|
|
8570
9011
|
let k = i((e) => {
|
|
8571
9012
|
let t = T.current;
|
|
8572
9013
|
if (!t) return;
|
|
8573
|
-
t.replaceChildren(...
|
|
9014
|
+
t.replaceChildren(...Is(e, a, O.current));
|
|
8574
9015
|
let n = document.createElement("br");
|
|
8575
|
-
n.setAttribute(
|
|
9016
|
+
n.setAttribute(Ps, ""), t.appendChild(n), E.current = e;
|
|
8576
9017
|
}, [a]);
|
|
8577
9018
|
l(() => {
|
|
8578
9019
|
t !== E.current && k(t);
|
|
@@ -8585,11 +9026,11 @@ var is = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
8585
9026
|
let A = () => {
|
|
8586
9027
|
let e = T.current;
|
|
8587
9028
|
if (!e) return;
|
|
8588
|
-
if (!e.lastChild || !(e.lastChild instanceof HTMLElement && e.lastChild.hasAttribute(
|
|
9029
|
+
if (!e.lastChild || !(e.lastChild instanceof HTMLElement && e.lastChild.hasAttribute(Ps))) {
|
|
8589
9030
|
let t = document.createElement("br");
|
|
8590
|
-
t.setAttribute(
|
|
9031
|
+
t.setAttribute(Ps, ""), e.appendChild(t);
|
|
8591
9032
|
}
|
|
8592
|
-
let t =
|
|
9033
|
+
let t = Ls(e);
|
|
8593
9034
|
E.current = t, n(t);
|
|
8594
9035
|
}, j = () => {
|
|
8595
9036
|
let e = window.getSelection(), t = T.current;
|
|
@@ -8623,7 +9064,7 @@ var is = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
8623
9064
|
c(C, () => ({
|
|
8624
9065
|
insertToken: (e) => {
|
|
8625
9066
|
var t, n;
|
|
8626
|
-
M([
|
|
9067
|
+
M([Fs(`{${e}}`, e, O.current)], D.current), N(), window.setTimeout(N, 0), (t = (n = window).requestAnimationFrame) == null || t.call(n, () => N());
|
|
8627
9068
|
},
|
|
8628
9069
|
focus: N
|
|
8629
9070
|
}));
|
|
@@ -8638,12 +9079,12 @@ var is = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
8638
9079
|
let t = e.clipboardData.getData("text/plain");
|
|
8639
9080
|
if (!t) return;
|
|
8640
9081
|
let n = window.getSelection();
|
|
8641
|
-
M(
|
|
9082
|
+
M(Is(t.replace(/\r\n?/g, "\n"), a, O.current), n && n.rangeCount ? n.getRangeAt(0) : null);
|
|
8642
9083
|
}, I = (e, t) => {
|
|
8643
9084
|
let n = window.getSelection();
|
|
8644
9085
|
if (!n || !n.rangeCount || n.isCollapsed) return;
|
|
8645
9086
|
let r = n.getRangeAt(0), i = document.createElement("div");
|
|
8646
|
-
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());
|
|
8647
9088
|
}, L = m ? `${w}-err` : p ? `${w}-hint` : void 0;
|
|
8648
9089
|
return /* @__PURE__ */ g("div", {
|
|
8649
9090
|
className: `select-field${x === "sm" ? " select-field--sm" : ""}${S ? " " + S : ""}`,
|
|
@@ -8696,18 +9137,18 @@ var is = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
8696
9137
|
});
|
|
8697
9138
|
//#endregion
|
|
8698
9139
|
//#region src/SelectChannelPreview.tsx
|
|
8699
|
-
function
|
|
9140
|
+
function zs({ children: e }) {
|
|
8700
9141
|
return /* @__PURE__ */ h("div", {
|
|
8701
9142
|
className: "select-previewstage",
|
|
8702
9143
|
children: e
|
|
8703
9144
|
});
|
|
8704
9145
|
}
|
|
8705
|
-
function
|
|
9146
|
+
function Bs(e) {
|
|
8706
9147
|
var t, n;
|
|
8707
9148
|
let r = e.trim().split(/\s+/).filter(Boolean);
|
|
8708
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();
|
|
8709
9150
|
}
|
|
8710
|
-
function
|
|
9151
|
+
function Vs({ variant: e, title: t, subtitle: n, children: r }) {
|
|
8711
9152
|
return /* @__PURE__ */ g("div", {
|
|
8712
9153
|
className: `select-device select-device--${e}`,
|
|
8713
9154
|
children: [/* @__PURE__ */ g("div", {
|
|
@@ -8715,7 +9156,7 @@ function ss({ variant: e, title: t, subtitle: n, children: r }) {
|
|
|
8715
9156
|
children: [/* @__PURE__ */ h("span", {
|
|
8716
9157
|
className: "select-device__avatar",
|
|
8717
9158
|
"aria-hidden": "true",
|
|
8718
|
-
children: e === "whatsapp" && t ?
|
|
9159
|
+
children: e === "whatsapp" && t ? Bs(t) : null
|
|
8719
9160
|
}), (t || n) && /* @__PURE__ */ g("span", {
|
|
8720
9161
|
className: "select-device__who",
|
|
8721
9162
|
children: [t && /* @__PURE__ */ h("span", {
|
|
@@ -8732,7 +9173,7 @@ function ss({ variant: e, title: t, subtitle: n, children: r }) {
|
|
|
8732
9173
|
})]
|
|
8733
9174
|
});
|
|
8734
9175
|
}
|
|
8735
|
-
function
|
|
9176
|
+
function Hs({ variant: e, media: t, buttons: n, empty: r = !1, backdrop: i = !1, children: a }) {
|
|
8736
9177
|
let o = /* @__PURE__ */ g("div", {
|
|
8737
9178
|
className: `select-bubble select-bubble--${e}`,
|
|
8738
9179
|
children: [
|
|
@@ -8758,7 +9199,7 @@ function cs({ variant: e, media: t, buttons: n, empty: r = !1, backdrop: i = !1,
|
|
|
8758
9199
|
children: o
|
|
8759
9200
|
}) : o;
|
|
8760
9201
|
}
|
|
8761
|
-
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" }) {
|
|
8762
9203
|
let s = t != null && t !== "" && t !== !1;
|
|
8763
9204
|
return /* @__PURE__ */ g("div", {
|
|
8764
9205
|
className: `select-mailpreview${r === "mobile" ? " select-mailpreview--mobile" : ""}`,
|
|
@@ -8779,13 +9220,13 @@ function ls({ from: e, subject: t, emptySubject: n = "Sem assunto", device: r =
|
|
|
8779
9220
|
className: `select-mailpreview__subject${s ? "" : " select-mailpreview__subject--empty"}`,
|
|
8780
9221
|
children: s ? t : n
|
|
8781
9222
|
})]
|
|
8782
|
-
}), 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, {
|
|
8783
9224
|
srcDoc: i,
|
|
8784
9225
|
title: o
|
|
8785
9226
|
})]
|
|
8786
9227
|
});
|
|
8787
9228
|
}
|
|
8788
|
-
function
|
|
9229
|
+
function Ws({ srcDoc: e, title: t }) {
|
|
8789
9230
|
let n = d(null), [r, i] = f(null), a = d(null);
|
|
8790
9231
|
o(() => () => {
|
|
8791
9232
|
var e;
|
|
@@ -8815,7 +9256,7 @@ function us({ srcDoc: e, title: t }) {
|
|
|
8815
9256
|
}
|
|
8816
9257
|
//#endregion
|
|
8817
9258
|
//#region src/SelectIconPicker.tsx
|
|
8818
|
-
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 }) {
|
|
8819
9260
|
let p = s(), [_, v] = f(!1), y = t.find((e) => e.value === n), b = (e) => {
|
|
8820
9261
|
r(e), v(!1);
|
|
8821
9262
|
}, x = /* @__PURE__ */ g("button", {
|
|
@@ -8886,18 +9327,18 @@ function ds({ label: e, options: t, value: n, onChange: r, help: i, hint: a, err
|
|
|
8886
9327
|
}
|
|
8887
9328
|
//#endregion
|
|
8888
9329
|
//#region src/SelectSplitChain.tsx
|
|
8889
|
-
function
|
|
9330
|
+
function Ks(e) {
|
|
8890
9331
|
var t;
|
|
8891
9332
|
return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
|
|
8892
9333
|
}
|
|
8893
|
-
function
|
|
9334
|
+
function qs({ node: e, origin: t = !1 }) {
|
|
8894
9335
|
return /* @__PURE__ */ g("span", {
|
|
8895
9336
|
className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
|
|
8896
9337
|
children: [
|
|
8897
9338
|
/* @__PURE__ */ h("span", {
|
|
8898
9339
|
className: "select-chain__dot",
|
|
8899
9340
|
"aria-hidden": "true",
|
|
8900
|
-
children:
|
|
9341
|
+
children: Ks(e)
|
|
8901
9342
|
}),
|
|
8902
9343
|
/* @__PURE__ */ h("span", {
|
|
8903
9344
|
className: "select-chain__label",
|
|
@@ -8911,16 +9352,16 @@ function ps({ node: e, origin: t = !1 }) {
|
|
|
8911
9352
|
]
|
|
8912
9353
|
});
|
|
8913
9354
|
}
|
|
8914
|
-
var
|
|
9355
|
+
var Js = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
|
|
8915
9356
|
let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ h("span", {
|
|
8916
9357
|
className: "select-chain__link",
|
|
8917
9358
|
"aria-hidden": "true"
|
|
8918
9359
|
}, e);
|
|
8919
|
-
t && c.push(/* @__PURE__ */ h(
|
|
9360
|
+
t && c.push(/* @__PURE__ */ h(qs, {
|
|
8920
9361
|
node: t,
|
|
8921
9362
|
origin: !0
|
|
8922
9363
|
}, "__origin"));
|
|
8923
|
-
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));
|
|
8924
9365
|
return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ g("span", {
|
|
8925
9366
|
className: "select-chain__more",
|
|
8926
9367
|
children: ["+", s]
|
|
@@ -8930,43 +9371,43 @@ var ms = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
|
|
|
8930
9371
|
className: `select-chain${r ? " " + r : ""}`,
|
|
8931
9372
|
children: c
|
|
8932
9373
|
});
|
|
8933
|
-
}),
|
|
9374
|
+
}), Ys = new Intl.NumberFormat("pt-BR", {
|
|
8934
9375
|
style: "currency",
|
|
8935
9376
|
currency: "BRL"
|
|
8936
9377
|
});
|
|
8937
|
-
function
|
|
9378
|
+
function Xs(e) {
|
|
8938
9379
|
let t = typeof e == "string" ? Number(e) : e;
|
|
8939
9380
|
return typeof t == "number" && Number.isFinite(t) ? t : 0;
|
|
8940
9381
|
}
|
|
8941
|
-
function
|
|
8942
|
-
return
|
|
9382
|
+
function Zs(e) {
|
|
9383
|
+
return Ys.format(Xs(e) / 100);
|
|
8943
9384
|
}
|
|
8944
9385
|
//#endregion
|
|
8945
9386
|
//#region src/SelectMoney.tsx
|
|
8946
|
-
var
|
|
9387
|
+
var Qs = "sw:hide-money", $s = {
|
|
8947
9388
|
hidden: !1,
|
|
8948
9389
|
toggle: () => {},
|
|
8949
9390
|
setHidden: () => {}
|
|
8950
|
-
},
|
|
8951
|
-
function
|
|
9391
|
+
}, ec = n(null);
|
|
9392
|
+
function tc() {
|
|
8952
9393
|
try {
|
|
8953
|
-
return localStorage.getItem(
|
|
9394
|
+
return localStorage.getItem(Qs) === "1";
|
|
8954
9395
|
} catch {
|
|
8955
9396
|
return !1;
|
|
8956
9397
|
}
|
|
8957
9398
|
}
|
|
8958
|
-
function
|
|
9399
|
+
function nc(e) {
|
|
8959
9400
|
try {
|
|
8960
|
-
localStorage.setItem(
|
|
9401
|
+
localStorage.setItem(Qs, e ? "1" : "0");
|
|
8961
9402
|
} catch {}
|
|
8962
9403
|
}
|
|
8963
|
-
function
|
|
8964
|
-
let [t, n] = f(
|
|
8965
|
-
n(e),
|
|
9404
|
+
function rc({ children: e }) {
|
|
9405
|
+
let [t, n] = f(tc), r = i((e) => {
|
|
9406
|
+
n(e), nc(e);
|
|
8966
9407
|
}, []), a = i(() => {
|
|
8967
9408
|
n((e) => {
|
|
8968
9409
|
let t = !e;
|
|
8969
|
-
return
|
|
9410
|
+
return nc(t), t;
|
|
8970
9411
|
});
|
|
8971
9412
|
}, []), o = u(() => ({
|
|
8972
9413
|
hidden: t,
|
|
@@ -8977,16 +9418,16 @@ function Cs({ children: e }) {
|
|
|
8977
9418
|
a,
|
|
8978
9419
|
r
|
|
8979
9420
|
]);
|
|
8980
|
-
return /* @__PURE__ */ h(
|
|
9421
|
+
return /* @__PURE__ */ h(ec.Provider, {
|
|
8981
9422
|
value: o,
|
|
8982
9423
|
children: e
|
|
8983
9424
|
});
|
|
8984
9425
|
}
|
|
8985
|
-
function
|
|
8986
|
-
return a(
|
|
9426
|
+
function ic() {
|
|
9427
|
+
return a(ec) ?? $s;
|
|
8987
9428
|
}
|
|
8988
|
-
var
|
|
8989
|
-
let { hidden: a } =
|
|
9429
|
+
var ac = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
|
|
9430
|
+
let { hidden: a } = ic();
|
|
8990
9431
|
return /* @__PURE__ */ h("span", {
|
|
8991
9432
|
ref: i,
|
|
8992
9433
|
...r,
|
|
@@ -8995,15 +9436,15 @@ var Ts = r(function({ children: e, label: t = "valor oculto", className: n, ...r
|
|
|
8995
9436
|
children: e
|
|
8996
9437
|
});
|
|
8997
9438
|
});
|
|
8998
|
-
function
|
|
8999
|
-
let n =
|
|
9000
|
-
return h(t ?
|
|
9439
|
+
function oc({ cents: e, sensitive: t = !0 }) {
|
|
9440
|
+
let n = Zs(e);
|
|
9441
|
+
return h(t ? ac : m, { children: n });
|
|
9001
9442
|
}
|
|
9002
|
-
var
|
|
9443
|
+
var sc = new Intl.NumberFormat("pt-BR", {
|
|
9003
9444
|
signDisplay: "exceptZero",
|
|
9004
9445
|
minimumFractionDigits: 1,
|
|
9005
9446
|
maximumFractionDigits: 1
|
|
9006
|
-
}),
|
|
9447
|
+
}), cc = r(function({ value: e, invert: t = !1, caption: n, unit: r = "percent", className: i, ...a }, o) {
|
|
9007
9448
|
if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ g("span", {
|
|
9008
9449
|
ref: o,
|
|
9009
9450
|
...a,
|
|
@@ -9019,7 +9460,7 @@ var Ds = new Intl.NumberFormat("pt-BR", {
|
|
|
9019
9460
|
className: `select-delta__value select-delta__value--${u}`,
|
|
9020
9461
|
children: [
|
|
9021
9462
|
d ? `${d} ` : "",
|
|
9022
|
-
|
|
9463
|
+
sc.format(e),
|
|
9023
9464
|
r === "points" ? " p.p." : "%"
|
|
9024
9465
|
]
|
|
9025
9466
|
}), n != null && /* @__PURE__ */ h("span", {
|
|
@@ -9028,8 +9469,8 @@ var Ds = new Intl.NumberFormat("pt-BR", {
|
|
|
9028
9469
|
})]
|
|
9029
9470
|
});
|
|
9030
9471
|
});
|
|
9031
|
-
function
|
|
9032
|
-
let { hidden: e, toggle: t } =
|
|
9472
|
+
function lc() {
|
|
9473
|
+
let { hidden: e, toggle: t } = ic();
|
|
9033
9474
|
return /* @__PURE__ */ h(ei, {
|
|
9034
9475
|
variant: "outline",
|
|
9035
9476
|
icon: h(e ? He : Ve, {}),
|
|
@@ -9040,7 +9481,7 @@ function ks() {
|
|
|
9040
9481
|
}
|
|
9041
9482
|
//#endregion
|
|
9042
9483
|
//#region src/SelectOfferPrice.tsx
|
|
9043
|
-
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) {
|
|
9044
9485
|
let u = Number(e);
|
|
9045
9486
|
if (!Number.isFinite(u)) return null;
|
|
9046
9487
|
let d = Number(t), f = Number.isFinite(d) && d > u, p = f ? Math.round((d - u) / d * 100) : 0;
|
|
@@ -9055,7 +9496,7 @@ var As = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
9055
9496
|
}),
|
|
9056
9497
|
/* @__PURE__ */ h("span", {
|
|
9057
9498
|
className: "select-offerprice__now",
|
|
9058
|
-
children: u === 0 && r != null ? r : /* @__PURE__ */ h(
|
|
9499
|
+
children: u === 0 && r != null ? r : /* @__PURE__ */ h(oc, { cents: u })
|
|
9059
9500
|
}),
|
|
9060
9501
|
o != null && /* @__PURE__ */ h("span", {
|
|
9061
9502
|
className: "select-offerprice__per",
|
|
@@ -9063,7 +9504,7 @@ var As = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
9063
9504
|
}),
|
|
9064
9505
|
f && /* @__PURE__ */ h("s", {
|
|
9065
9506
|
className: "select-offerprice__was",
|
|
9066
|
-
children: /* @__PURE__ */ h(
|
|
9507
|
+
children: /* @__PURE__ */ h(oc, { cents: d })
|
|
9067
9508
|
}),
|
|
9068
9509
|
f && !n && p > 0 && /* @__PURE__ */ g("span", {
|
|
9069
9510
|
className: "select-offerprice__off",
|
|
@@ -9082,7 +9523,7 @@ var As = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
9082
9523
|
});
|
|
9083
9524
|
//#endregion
|
|
9084
9525
|
//#region src/SelectRating.tsx
|
|
9085
|
-
function
|
|
9526
|
+
function dc({ size: e }) {
|
|
9086
9527
|
return /* @__PURE__ */ h("svg", {
|
|
9087
9528
|
width: e,
|
|
9088
9529
|
height: e,
|
|
@@ -9094,7 +9535,7 @@ function js({ size: e }) {
|
|
|
9094
9535
|
})
|
|
9095
9536
|
});
|
|
9096
9537
|
}
|
|
9097
|
-
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) {
|
|
9098
9539
|
let l = !!n && !a, [u, d] = f(null), p = u ?? e;
|
|
9099
9540
|
return /* @__PURE__ */ h("div", {
|
|
9100
9541
|
ref: c,
|
|
@@ -9109,7 +9550,7 @@ var Ms = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9109
9550
|
children: Array.from({ length: t }, (e, t) => {
|
|
9110
9551
|
let i = /* @__PURE__ */ h("span", {
|
|
9111
9552
|
className: `select-rating__star${t < p ? " is-filled" : ""}`,
|
|
9112
|
-
children: /* @__PURE__ */ h(
|
|
9553
|
+
children: /* @__PURE__ */ h(dc, { size: r })
|
|
9113
9554
|
});
|
|
9114
9555
|
return l ? /* @__PURE__ */ h("button", {
|
|
9115
9556
|
type: "button",
|
|
@@ -9123,14 +9564,14 @@ var Ms = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9123
9564
|
}, t) : /* @__PURE__ */ h("span", { children: i }, t);
|
|
9124
9565
|
})
|
|
9125
9566
|
});
|
|
9126
|
-
}),
|
|
9567
|
+
}), pc = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
|
|
9127
9568
|
let s = Number(e), c = Number.isFinite(s) && s > 0;
|
|
9128
9569
|
return /* @__PURE__ */ g("div", {
|
|
9129
9570
|
ref: o,
|
|
9130
9571
|
...a,
|
|
9131
9572
|
className: `select-quote${i ? " " + i : ""}`,
|
|
9132
9573
|
children: [
|
|
9133
|
-
c && /* @__PURE__ */ h(
|
|
9574
|
+
c && /* @__PURE__ */ h(fc, {
|
|
9134
9575
|
value: s,
|
|
9135
9576
|
max: t,
|
|
9136
9577
|
size: 13
|
|
@@ -9145,7 +9586,7 @@ var Ms = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9145
9586
|
})
|
|
9146
9587
|
]
|
|
9147
9588
|
});
|
|
9148
|
-
}),
|
|
9589
|
+
}), mc = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
|
|
9149
9590
|
let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
|
|
9150
9591
|
return /* @__PURE__ */ g("div", {
|
|
9151
9592
|
ref: i,
|
|
@@ -9167,7 +9608,7 @@ var Ms = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9167
9608
|
children: ["+", o]
|
|
9168
9609
|
})]
|
|
9169
9610
|
});
|
|
9170
|
-
}),
|
|
9611
|
+
}), hc = [
|
|
9171
9612
|
"Dom",
|
|
9172
9613
|
"Seg",
|
|
9173
9614
|
"Ter",
|
|
@@ -9175,7 +9616,7 @@ var Ms = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9175
9616
|
"Qui",
|
|
9176
9617
|
"Sex",
|
|
9177
9618
|
"Sáb"
|
|
9178
|
-
],
|
|
9619
|
+
], gc = [
|
|
9179
9620
|
"Janeiro",
|
|
9180
9621
|
"Fevereiro",
|
|
9181
9622
|
"Março",
|
|
@@ -9188,7 +9629,7 @@ var Ms = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9188
9629
|
"Outubro",
|
|
9189
9630
|
"Novembro",
|
|
9190
9631
|
"Dezembro"
|
|
9191
|
-
],
|
|
9632
|
+
], _c = [
|
|
9192
9633
|
"Jan",
|
|
9193
9634
|
"Fev",
|
|
9194
9635
|
"Mar",
|
|
@@ -9201,33 +9642,33 @@ var Ms = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
9201
9642
|
"Out",
|
|
9202
9643
|
"Nov",
|
|
9203
9644
|
"Dez"
|
|
9204
|
-
],
|
|
9205
|
-
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) {
|
|
9206
9647
|
let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
|
|
9207
9648
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
|
|
9208
9649
|
}
|
|
9209
|
-
function
|
|
9210
|
-
let n = `${e.getFullYear()}-${
|
|
9211
|
-
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;
|
|
9212
9653
|
}
|
|
9213
|
-
function
|
|
9214
|
-
let n = `${
|
|
9215
|
-
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;
|
|
9216
9657
|
}
|
|
9217
|
-
var
|
|
9218
|
-
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 = () => {
|
|
9219
9660
|
if (T) return T;
|
|
9220
9661
|
let e = /* @__PURE__ */ new Date();
|
|
9221
9662
|
return D && e > D ? D : E && e < E ? E : e;
|
|
9222
|
-
}, [A, j] = f(() =>
|
|
9223
|
-
o || (j(
|
|
9224
|
-
}, 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) => {
|
|
9225
9666
|
if (O(e)) return;
|
|
9226
9667
|
let t = new Date(e);
|
|
9227
|
-
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);
|
|
9228
9669
|
}, H = (e) => {
|
|
9229
9670
|
let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(T ?? z);
|
|
9230
|
-
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));
|
|
9231
9672
|
}, ne = () => {
|
|
9232
9673
|
n(""), w(!1);
|
|
9233
9674
|
}, re = /* @__PURE__ */ g("div", {
|
|
@@ -9241,7 +9682,7 @@ var Js = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9241
9682
|
"aria-haspopup": "dialog",
|
|
9242
9683
|
"aria-expanded": C,
|
|
9243
9684
|
"aria-invalid": c ? !0 : void 0,
|
|
9244
|
-
children: T ?
|
|
9685
|
+
children: T ? Dc(T, r) : /* @__PURE__ */ h("span", {
|
|
9245
9686
|
className: "select-datefield__ph",
|
|
9246
9687
|
children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
|
|
9247
9688
|
})
|
|
@@ -9286,14 +9727,14 @@ var Js = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9286
9727
|
children: [
|
|
9287
9728
|
I,
|
|
9288
9729
|
" – ",
|
|
9289
|
-
I +
|
|
9730
|
+
I + vc - 1
|
|
9290
9731
|
]
|
|
9291
9732
|
}) : /* @__PURE__ */ g("button", {
|
|
9292
9733
|
type: "button",
|
|
9293
9734
|
className: "select-datepicker__monthlabel select-datefield__modebtn",
|
|
9294
9735
|
"aria-label": M === "day" ? "Escolher o ano e o mês" : "Escolher o ano",
|
|
9295
9736
|
onClick: () => N("year"),
|
|
9296
|
-
children: [M === "day" ? `${
|
|
9737
|
+
children: [M === "day" ? `${gc[A.getMonth()]} ${A.getFullYear()}` : A.getFullYear(), /* @__PURE__ */ h(K, {})]
|
|
9297
9738
|
}),
|
|
9298
9739
|
/* @__PURE__ */ h("button", {
|
|
9299
9740
|
type: "button",
|
|
@@ -9308,7 +9749,7 @@ var Js = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9308
9749
|
className: "select-datefield__cells",
|
|
9309
9750
|
role: "grid",
|
|
9310
9751
|
"aria-label": "Anos",
|
|
9311
|
-
children: Array.from({ length:
|
|
9752
|
+
children: Array.from({ length: vc }, (e, t) => I + t).map((e) => {
|
|
9312
9753
|
let t = (T == null ? void 0 : T.getFullYear()) === e;
|
|
9313
9754
|
return /* @__PURE__ */ h("button", {
|
|
9314
9755
|
type: "button",
|
|
@@ -9325,11 +9766,11 @@ var Js = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9325
9766
|
className: "select-datefield__cells",
|
|
9326
9767
|
role: "grid",
|
|
9327
9768
|
"aria-label": `Meses de ${A.getFullYear()}`,
|
|
9328
|
-
children:
|
|
9769
|
+
children: _c.map((e, t) => {
|
|
9329
9770
|
let n = A.getFullYear(), r = !!T && T.getFullYear() === n && T.getMonth() === t;
|
|
9330
9771
|
return /* @__PURE__ */ h("button", {
|
|
9331
9772
|
type: "button",
|
|
9332
|
-
"aria-label": `${
|
|
9773
|
+
"aria-label": `${gc[t]} de ${n}`,
|
|
9333
9774
|
className: `select-datefield__cell${r ? " is-selected" : ""}`,
|
|
9334
9775
|
disabled: F(n, t),
|
|
9335
9776
|
onClick: () => {
|
|
@@ -9342,11 +9783,11 @@ var Js = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9342
9783
|
M === "day" && /* @__PURE__ */ g("div", {
|
|
9343
9784
|
className: "select-datepicker__grid",
|
|
9344
9785
|
role: "grid",
|
|
9345
|
-
children: [
|
|
9786
|
+
children: [hc.map((e) => /* @__PURE__ */ h("div", {
|
|
9346
9787
|
className: "select-datepicker__weekday",
|
|
9347
9788
|
children: e
|
|
9348
9789
|
}, e)), R.map((e) => {
|
|
9349
|
-
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" : "");
|
|
9350
9791
|
return /* @__PURE__ */ h("div", {
|
|
9351
9792
|
className: "select-datepicker__day",
|
|
9352
9793
|
children: /* @__PURE__ */ h("button", {
|
|
@@ -9368,7 +9809,7 @@ var Js = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9368
9809
|
type: "time",
|
|
9369
9810
|
className: "select-input select-datefield__time-input",
|
|
9370
9811
|
"aria-label": "Horário",
|
|
9371
|
-
value: T ? `${
|
|
9812
|
+
value: T ? `${yc(T.getHours())}:${yc(T.getMinutes())}` : "",
|
|
9372
9813
|
onChange: (e) => H(e.target.value)
|
|
9373
9814
|
})]
|
|
9374
9815
|
}),
|
|
@@ -9409,25 +9850,25 @@ var Js = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
9409
9850
|
}) : null
|
|
9410
9851
|
]
|
|
9411
9852
|
});
|
|
9412
|
-
}),
|
|
9413
|
-
function
|
|
9414
|
-
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 ?? "");
|
|
9415
9856
|
if (!t) return null;
|
|
9416
9857
|
let n = `${t[3]}/${t[2]}/${t[1]}`;
|
|
9417
9858
|
return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
|
|
9418
9859
|
}
|
|
9419
9860
|
//#endregion
|
|
9420
9861
|
//#region src/SelectFilterBar.tsx
|
|
9421
|
-
function
|
|
9862
|
+
function jc(e, t) {
|
|
9422
9863
|
var n;
|
|
9423
|
-
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ?
|
|
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;
|
|
9424
9865
|
}
|
|
9425
|
-
function
|
|
9866
|
+
function Mc({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: s }) {
|
|
9426
9867
|
let [c, l] = f("");
|
|
9427
9868
|
o(() => {
|
|
9428
9869
|
r || l("");
|
|
9429
9870
|
}, [r]);
|
|
9430
|
-
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;
|
|
9431
9872
|
return /* @__PURE__ */ g(Zn, {
|
|
9432
9873
|
active: r,
|
|
9433
9874
|
onClose: a,
|
|
@@ -9485,7 +9926,7 @@ function Qs({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
9485
9926
|
})]
|
|
9486
9927
|
}) : e.type === "date" ? /* @__PURE__ */ h("div", {
|
|
9487
9928
|
className: "select-facet__field",
|
|
9488
|
-
children: /* @__PURE__ */ h(
|
|
9929
|
+
children: /* @__PURE__ */ h(Oc, {
|
|
9489
9930
|
value: t,
|
|
9490
9931
|
onChange: n,
|
|
9491
9932
|
placeholder: e.placeholder,
|
|
@@ -9523,7 +9964,7 @@ function Qs({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
9523
9964
|
]
|
|
9524
9965
|
});
|
|
9525
9966
|
}
|
|
9526
|
-
var
|
|
9967
|
+
var Nc = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, leading: a, disabled: o, className: s, ...c }, l) {
|
|
9527
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 = () => {
|
|
9528
9969
|
d([]), m(null), r();
|
|
9529
9970
|
}, T = (e) => {
|
|
@@ -9562,7 +10003,7 @@ var $s = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9562
10003
|
})
|
|
9563
10004
|
]
|
|
9564
10005
|
}),
|
|
9565
|
-
x.map((e) => /* @__PURE__ */ h(
|
|
10006
|
+
x.map((e) => /* @__PURE__ */ h(Mc, {
|
|
9566
10007
|
filter: e,
|
|
9567
10008
|
value: t[e.key] ?? "",
|
|
9568
10009
|
onChange: (t) => n(e.key, t),
|
|
@@ -9608,7 +10049,7 @@ var $s = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9608
10049
|
children: [
|
|
9609
10050
|
e.label,
|
|
9610
10051
|
": ",
|
|
9611
|
-
|
|
10052
|
+
jc(e, t[e.key] ?? ""),
|
|
9612
10053
|
/* @__PURE__ */ h("button", {
|
|
9613
10054
|
type: "button",
|
|
9614
10055
|
className: "select-filterbar__tagx",
|
|
@@ -9625,7 +10066,7 @@ var $s = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9625
10066
|
})]
|
|
9626
10067
|
})]
|
|
9627
10068
|
});
|
|
9628
|
-
}),
|
|
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) {
|
|
9629
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) => {
|
|
9630
10071
|
let n = t.find((t) => t.value === e);
|
|
9631
10072
|
return n ? {
|
|
@@ -9756,7 +10197,7 @@ var $s = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9756
10197
|
}) : null
|
|
9757
10198
|
]
|
|
9758
10199
|
});
|
|
9759
|
-
}),
|
|
10200
|
+
}), Fc = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
|
|
9760
10201
|
return /* @__PURE__ */ g("div", {
|
|
9761
10202
|
ref: c,
|
|
9762
10203
|
...s,
|
|
@@ -9788,8 +10229,8 @@ var $s = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
9788
10229
|
})
|
|
9789
10230
|
]
|
|
9790
10231
|
});
|
|
9791
|
-
}),
|
|
9792
|
-
function
|
|
10232
|
+
}), Ic = n(null), Lc = 220, Rc = 4e3, zc = 8, Bc = .04, Vc = 5;
|
|
10233
|
+
function Hc({ children: e }) {
|
|
9793
10234
|
let [t, n] = f([]), r = d(0), a = d(/* @__PURE__ */ new Map()), s = i((e) => {
|
|
9794
10235
|
n((t) => t.filter((t) => t.id !== e)), a.current.delete(e);
|
|
9795
10236
|
}, []), c = i((e) => {
|
|
@@ -9797,9 +10238,9 @@ function cc({ children: e }) {
|
|
|
9797
10238
|
t && clearTimeout(t), n((t) => t.map((t) => t.id === e ? {
|
|
9798
10239
|
...t,
|
|
9799
10240
|
exiting: !0
|
|
9800
|
-
} : t)), a.current.set(e, setTimeout(() => s(e),
|
|
10241
|
+
} : t)), a.current.set(e, setTimeout(() => s(e), Lc));
|
|
9801
10242
|
}, [s]), l = i((e, t) => {
|
|
9802
|
-
let i = ++r.current, o = (t == null ? void 0 : t.duration) ??
|
|
10243
|
+
let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? Rc;
|
|
9803
10244
|
n((n) => [...n, {
|
|
9804
10245
|
id: i,
|
|
9805
10246
|
content: e,
|
|
@@ -9827,7 +10268,7 @@ function cc({ children: e }) {
|
|
|
9827
10268
|
duration: t
|
|
9828
10269
|
})
|
|
9829
10270
|
}), [l]);
|
|
9830
|
-
return /* @__PURE__ */ g(
|
|
10271
|
+
return /* @__PURE__ */ g(Ic.Provider, {
|
|
9831
10272
|
value: p,
|
|
9832
10273
|
children: [e, t.length > 0 && _(/* @__PURE__ */ h("div", {
|
|
9833
10274
|
className: "select select-toasts",
|
|
@@ -9835,8 +10276,8 @@ function cc({ children: e }) {
|
|
|
9835
10276
|
"aria-live": "polite",
|
|
9836
10277
|
"aria-label": "Notificações",
|
|
9837
10278
|
children: t.map((e, n) => {
|
|
9838
|
-
let r = t.length - 1 - n, i = e.exiting || r >=
|
|
9839
|
-
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})`,
|
|
9840
10281
|
opacity: +!i,
|
|
9841
10282
|
zIndex: 1e3 - r,
|
|
9842
10283
|
pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
|
|
@@ -9860,14 +10301,14 @@ function cc({ children: e }) {
|
|
|
9860
10301
|
}), document.body)]
|
|
9861
10302
|
});
|
|
9862
10303
|
}
|
|
9863
|
-
function
|
|
9864
|
-
let e = a(
|
|
10304
|
+
function Uc() {
|
|
10305
|
+
let e = a(Ic);
|
|
9865
10306
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
9866
10307
|
return e;
|
|
9867
10308
|
}
|
|
9868
10309
|
//#endregion
|
|
9869
10310
|
//#region src/SelectPreviewFrame.tsx
|
|
9870
|
-
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) {
|
|
9871
10312
|
let S = Ji(e), [C, w] = f(a), [T, E] = f(0), [D, O] = f(!0), k = d(null), [A, j] = f({
|
|
9872
10313
|
w: 0,
|
|
9873
10314
|
h: 0
|
|
@@ -9885,7 +10326,7 @@ var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc
|
|
|
9885
10326
|
});
|
|
9886
10327
|
return t.observe(e), () => t.disconnect();
|
|
9887
10328
|
}, []);
|
|
9888
|
-
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 = () => {
|
|
9889
10330
|
if (O(!0), u) {
|
|
9890
10331
|
u();
|
|
9891
10332
|
return;
|
|
@@ -9974,7 +10415,7 @@ var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc
|
|
|
9974
10415
|
})
|
|
9975
10416
|
})]
|
|
9976
10417
|
});
|
|
9977
|
-
}),
|
|
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) {
|
|
9978
10419
|
if (a === "hero") {
|
|
9979
10420
|
let n = (e, t = "1em") => /* @__PURE__ */ h("span", {
|
|
9980
10421
|
className: "select-skeleton select-balance__skel",
|
|
@@ -9982,7 +10423,7 @@ var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc
|
|
|
9982
10423
|
width: e,
|
|
9983
10424
|
height: t
|
|
9984
10425
|
}
|
|
9985
|
-
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ h(
|
|
10426
|
+
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ h(oc, { cents: e });
|
|
9986
10427
|
return /* @__PURE__ */ h("div", {
|
|
9987
10428
|
ref: f,
|
|
9988
10429
|
...d,
|
|
@@ -10014,7 +10455,7 @@ var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc
|
|
|
10014
10455
|
className: "select-balance-hero__meta",
|
|
10015
10456
|
children: s.map((e, t) => /* @__PURE__ */ g("div", {
|
|
10016
10457
|
className: "select-balance-hero__metaitem",
|
|
10017
|
-
children: [/* @__PURE__ */ h("dt", { children: e.label }), /* @__PURE__ */ h("dd", { children: l ? n("7ch") : e.cents != null && e.cents !== "" ? /* @__PURE__ */ g(m, { children: [e.prefix, /* @__PURE__ */ h(
|
|
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 ?? "—" })]
|
|
10018
10459
|
}, t))
|
|
10019
10460
|
}),
|
|
10020
10461
|
(i || c) && /* @__PURE__ */ g("div", {
|
|
@@ -10089,8 +10530,8 @@ var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc
|
|
|
10089
10530
|
className: "select-balance__heromain",
|
|
10090
10531
|
children: [/* @__PURE__ */ h("span", {
|
|
10091
10532
|
className: "select-balance__heroamount",
|
|
10092
|
-
children: /* @__PURE__ */ h(
|
|
10093
|
-
}), n != null && /* @__PURE__ */ h(
|
|
10533
|
+
children: /* @__PURE__ */ h(oc, { cents: e })
|
|
10534
|
+
}), n != null && /* @__PURE__ */ h(cc, {
|
|
10094
10535
|
value: n,
|
|
10095
10536
|
caption: "vs. período anterior"
|
|
10096
10537
|
})]
|
|
@@ -10109,14 +10550,14 @@ var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc
|
|
|
10109
10550
|
children: e.label
|
|
10110
10551
|
}), /* @__PURE__ */ h("span", {
|
|
10111
10552
|
className: "select-balance__bucketamount",
|
|
10112
|
-
children: /* @__PURE__ */ h(
|
|
10553
|
+
children: /* @__PURE__ */ h(oc, { cents: e.cents })
|
|
10113
10554
|
})]
|
|
10114
10555
|
})]
|
|
10115
10556
|
}, e.label))
|
|
10116
10557
|
})]
|
|
10117
10558
|
})]
|
|
10118
10559
|
});
|
|
10119
|
-
}),
|
|
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) {
|
|
10120
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;
|
|
10121
10562
|
return /* @__PURE__ */ g("div", {
|
|
10122
10563
|
ref: l,
|
|
@@ -10136,7 +10577,7 @@ var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc
|
|
|
10136
10577
|
children: o ?? /* @__PURE__ */ g(m, { children: [
|
|
10137
10578
|
i,
|
|
10138
10579
|
" · ",
|
|
10139
|
-
/* @__PURE__ */ h(
|
|
10580
|
+
/* @__PURE__ */ h(oc, { cents: u })
|
|
10140
10581
|
] })
|
|
10141
10582
|
})
|
|
10142
10583
|
}), d > 0 && /* @__PURE__ */ h("span", {
|
|
@@ -10153,7 +10594,7 @@ var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc
|
|
|
10153
10594
|
"aria-hidden": "true"
|
|
10154
10595
|
}),
|
|
10155
10596
|
"Taxas ",
|
|
10156
|
-
/* @__PURE__ */ h(
|
|
10597
|
+
/* @__PURE__ */ h(oc, { cents: d }),
|
|
10157
10598
|
" (",
|
|
10158
10599
|
p.toLocaleString("pt-BR", {
|
|
10159
10600
|
maximumFractionDigits: 1,
|
|
@@ -10169,20 +10610,20 @@ var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc
|
|
|
10169
10610
|
"aria-hidden": "true"
|
|
10170
10611
|
}),
|
|
10171
10612
|
"Líquido ",
|
|
10172
|
-
/* @__PURE__ */ h(
|
|
10613
|
+
/* @__PURE__ */ h(oc, { cents: u })
|
|
10173
10614
|
]
|
|
10174
10615
|
})]
|
|
10175
10616
|
})]
|
|
10176
10617
|
}),
|
|
10177
10618
|
/* @__PURE__ */ g("div", {
|
|
10178
10619
|
className: "select-fees__row",
|
|
10179
|
-
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 }) })]
|
|
10180
10621
|
}),
|
|
10181
10622
|
t.map((e) => /* @__PURE__ */ g("div", {
|
|
10182
10623
|
className: "select-fees__row",
|
|
10183
10624
|
children: [/* @__PURE__ */ h("span", { children: e.label }), /* @__PURE__ */ g("span", {
|
|
10184
10625
|
className: "select-fees__neg",
|
|
10185
|
-
children: ["−\xA0", /* @__PURE__ */ h(
|
|
10626
|
+
children: ["−\xA0", /* @__PURE__ */ h(oc, { cents: e.cents })]
|
|
10186
10627
|
})]
|
|
10187
10628
|
}, e.label)),
|
|
10188
10629
|
/* @__PURE__ */ h("div", { className: "select-fees__divider" }),
|
|
@@ -10190,12 +10631,12 @@ var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc
|
|
|
10190
10631
|
className: "select-fees__row select-fees__row--net",
|
|
10191
10632
|
children: [/* @__PURE__ */ h("span", { children: i }), /* @__PURE__ */ h("span", {
|
|
10192
10633
|
className: "select-fees__netvalue",
|
|
10193
|
-
children: /* @__PURE__ */ h(
|
|
10634
|
+
children: /* @__PURE__ */ h(oc, { cents: u })
|
|
10194
10635
|
})]
|
|
10195
10636
|
})
|
|
10196
10637
|
]
|
|
10197
10638
|
});
|
|
10198
|
-
}),
|
|
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) {
|
|
10199
10640
|
let p = s != null, _ = p ? {
|
|
10200
10641
|
role: "button",
|
|
10201
10642
|
tabIndex: 0,
|
|
@@ -10240,7 +10681,7 @@ var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc
|
|
|
10240
10681
|
})
|
|
10241
10682
|
] })]
|
|
10242
10683
|
});
|
|
10243
|
-
}),
|
|
10684
|
+
}), Zc = {
|
|
10244
10685
|
"pt-BR": {
|
|
10245
10686
|
severity: {
|
|
10246
10687
|
info: "Para saber",
|
|
@@ -10389,42 +10830,42 @@ var uc = "allow-scripts allow-same-origin allow-forms", dc = 390, fc = 1280, pc
|
|
|
10389
10830
|
unread: "Nuevo"
|
|
10390
10831
|
}
|
|
10391
10832
|
};
|
|
10392
|
-
function
|
|
10833
|
+
function Qc(e) {
|
|
10393
10834
|
return e === "en" || e != null && e.startsWith("en-") ? "en" : e === "es" || e != null && e.startsWith("es-") ? "es" : "pt-BR";
|
|
10394
10835
|
}
|
|
10395
|
-
function
|
|
10396
|
-
let n =
|
|
10836
|
+
function $c(e, t) {
|
|
10837
|
+
let n = Qc(e);
|
|
10397
10838
|
return {
|
|
10398
10839
|
lang: n,
|
|
10399
10840
|
labels: {
|
|
10400
|
-
...
|
|
10841
|
+
...Zc[n],
|
|
10401
10842
|
...t
|
|
10402
10843
|
}
|
|
10403
10844
|
};
|
|
10404
10845
|
}
|
|
10405
|
-
var
|
|
10846
|
+
var el = {
|
|
10406
10847
|
info: "info",
|
|
10407
10848
|
opportunity: "success",
|
|
10408
10849
|
warning: "warning",
|
|
10409
10850
|
critical: "critical"
|
|
10410
10851
|
};
|
|
10411
|
-
function
|
|
10852
|
+
function tl(e, t, n) {
|
|
10412
10853
|
return new Intl.NumberFormat(n, {
|
|
10413
10854
|
style: "currency",
|
|
10414
10855
|
currency: t,
|
|
10415
10856
|
maximumFractionDigits: 0
|
|
10416
10857
|
}).format(e / 100);
|
|
10417
10858
|
}
|
|
10418
|
-
function
|
|
10419
|
-
let r =
|
|
10859
|
+
function nl(e, t, n) {
|
|
10860
|
+
let r = tl(e.minCents, e.currency, t), i = tl(e.maxCents, e.currency, t);
|
|
10420
10861
|
return e.minCents === e.maxCents ? n.about(i) : `${r}${n.rangeJoin}${i}`;
|
|
10421
10862
|
}
|
|
10422
|
-
function
|
|
10423
|
-
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);
|
|
10424
10865
|
return e.minCents === e.maxCents ? n.impactAbout(a) : n.impact(`${i}${n.rangeJoin}${a}`);
|
|
10425
10866
|
}
|
|
10426
|
-
var
|
|
10427
|
-
function
|
|
10867
|
+
var il = 864e5;
|
|
10868
|
+
function al(e, t, n, r) {
|
|
10428
10869
|
let i = new Date(e.start), a = new Date(e.end);
|
|
10429
10870
|
if (Number.isNaN(i.getTime()) || Number.isNaN(a.getTime())) return null;
|
|
10430
10871
|
let o = new Intl.DateTimeFormat("en", {
|
|
@@ -10436,7 +10877,7 @@ function Tc(e, t, n, r) {
|
|
|
10436
10877
|
...s ? {} : { year: "numeric" },
|
|
10437
10878
|
timeZone: n
|
|
10438
10879
|
});
|
|
10439
|
-
if (a.getTime() - i.getTime() <
|
|
10880
|
+
if (a.getTime() - i.getTime() < il) {
|
|
10440
10881
|
let e = new Intl.DateTimeFormat(t, {
|
|
10441
10882
|
hour: "2-digit",
|
|
10442
10883
|
minute: "2-digit",
|
|
@@ -10447,8 +10888,8 @@ function Tc(e, t, n, r) {
|
|
|
10447
10888
|
}
|
|
10448
10889
|
return r.periodRange(c.format(i), c.format(a));
|
|
10449
10890
|
}
|
|
10450
|
-
function
|
|
10451
|
-
let n =
|
|
10891
|
+
function ol({ severity: e, labels: t }) {
|
|
10892
|
+
let n = el[e] ?? "info";
|
|
10452
10893
|
return /* @__PURE__ */ g("span", {
|
|
10453
10894
|
className: `select-insight__sev select-insight__sev--${n}`,
|
|
10454
10895
|
children: [/* @__PURE__ */ h("span", {
|
|
@@ -10457,7 +10898,7 @@ function Ec({ severity: e, labels: t }) {
|
|
|
10457
10898
|
}), t.severity[e] ?? e]
|
|
10458
10899
|
});
|
|
10459
10900
|
}
|
|
10460
|
-
function
|
|
10901
|
+
function sl({ label: e }) {
|
|
10461
10902
|
return /* @__PURE__ */ g("span", {
|
|
10462
10903
|
className: "select-insight__new",
|
|
10463
10904
|
children: [/* @__PURE__ */ h("span", {
|
|
@@ -10466,10 +10907,10 @@ function Dc({ label: e }) {
|
|
|
10466
10907
|
}), e]
|
|
10467
10908
|
});
|
|
10468
10909
|
}
|
|
10469
|
-
function
|
|
10910
|
+
function cl(e) {
|
|
10470
10911
|
return e != null && typeof e.raw == "number" && Number.isFinite(e.raw) && e.raw >= 0 ? e.raw : null;
|
|
10471
10912
|
}
|
|
10472
|
-
function
|
|
10913
|
+
function ll({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
10473
10914
|
let r = Math.max(0, Math.min(1, e)) * 100;
|
|
10474
10915
|
return /* @__PURE__ */ h("span", {
|
|
10475
10916
|
className: `select-insight__bar select-insight__bar--${t}${n === "sm" ? " select-insight__bar--sm" : ""}`,
|
|
@@ -10480,18 +10921,18 @@ function kc({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
|
10480
10921
|
})
|
|
10481
10922
|
});
|
|
10482
10923
|
}
|
|
10483
|
-
var
|
|
10924
|
+
var ul = /* @__PURE__ */ new Set([
|
|
10484
10925
|
"metric",
|
|
10485
10926
|
"comparison",
|
|
10486
10927
|
"table",
|
|
10487
10928
|
"items",
|
|
10488
10929
|
"text"
|
|
10489
10930
|
]);
|
|
10490
|
-
function
|
|
10491
|
-
return
|
|
10931
|
+
function dl(e) {
|
|
10932
|
+
return ul.has(e.type);
|
|
10492
10933
|
}
|
|
10493
|
-
function
|
|
10494
|
-
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;
|
|
10495
10936
|
return /* @__PURE__ */ g("div", {
|
|
10496
10937
|
className: `select-insight__tile select-insight__cmp${r == null ? " select-insight__cmp--plain" : ""}${!i && r != null ? " select-insight__cmp--stacked" : ""}`,
|
|
10497
10938
|
children: [
|
|
@@ -10508,7 +10949,7 @@ function Mc({ block: e }) {
|
|
|
10508
10949
|
className: "select-insight__cmpname",
|
|
10509
10950
|
children: i ? e.valueLabel : e.label
|
|
10510
10951
|
}),
|
|
10511
|
-
r == null ? null : /* @__PURE__ */ h(
|
|
10952
|
+
r == null ? null : /* @__PURE__ */ h(ll, {
|
|
10512
10953
|
fraction: (t ?? 0) / r,
|
|
10513
10954
|
tone: "own"
|
|
10514
10955
|
}),
|
|
@@ -10524,7 +10965,7 @@ function Mc({ block: e }) {
|
|
|
10524
10965
|
className: "select-insight__cmpname",
|
|
10525
10966
|
children: e.baselineLabel
|
|
10526
10967
|
}),
|
|
10527
|
-
r == null ? null : /* @__PURE__ */ h(
|
|
10968
|
+
r == null ? null : /* @__PURE__ */ h(ll, {
|
|
10528
10969
|
fraction: (n ?? 0) / r,
|
|
10529
10970
|
tone: "reference"
|
|
10530
10971
|
}),
|
|
@@ -10542,8 +10983,8 @@ function Mc({ block: e }) {
|
|
|
10542
10983
|
]
|
|
10543
10984
|
});
|
|
10544
10985
|
}
|
|
10545
|
-
function
|
|
10546
|
-
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);
|
|
10547
10988
|
return /* @__PURE__ */ g("div", {
|
|
10548
10989
|
className: "select-insight__box",
|
|
10549
10990
|
children: [/* @__PURE__ */ h("h5", {
|
|
@@ -10556,7 +10997,7 @@ function Nc({ block: e, renderItem: t }) {
|
|
|
10556
10997
|
className: "select-insight__itemlabel",
|
|
10557
10998
|
children: (t == null ? void 0 : t(e)) ?? e.label
|
|
10558
10999
|
}),
|
|
10559
|
-
i ? /* @__PURE__ */ h(
|
|
11000
|
+
i ? /* @__PURE__ */ h(ll, {
|
|
10560
11001
|
fraction: (n[a] ?? 0) / r,
|
|
10561
11002
|
size: "sm"
|
|
10562
11003
|
}) : null,
|
|
@@ -10568,14 +11009,14 @@ function Nc({ block: e, renderItem: t }) {
|
|
|
10568
11009
|
})]
|
|
10569
11010
|
});
|
|
10570
11011
|
}
|
|
10571
|
-
function
|
|
11012
|
+
function ml({ block: e }) {
|
|
10572
11013
|
let t = new Set(e.columns.filter((t) => e.rows.length > 0 && e.rows.every((e) => {
|
|
10573
11014
|
var n;
|
|
10574
|
-
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;
|
|
10575
11016
|
})).map((e) => e.key)), n = (e, n) => n && t.has(e) ? /* @__PURE__ */ g("span", {
|
|
10576
11017
|
className: "select-insight__share",
|
|
10577
|
-
children: [/* @__PURE__ */ h(
|
|
10578
|
-
fraction:
|
|
11018
|
+
children: [/* @__PURE__ */ h(ll, {
|
|
11019
|
+
fraction: cl(n) ?? 0,
|
|
10579
11020
|
size: "sm"
|
|
10580
11021
|
}), /* @__PURE__ */ h("span", {
|
|
10581
11022
|
className: "select-insight__sharevalue",
|
|
@@ -10604,7 +11045,7 @@ function Pc({ block: e }) {
|
|
|
10604
11045
|
})]
|
|
10605
11046
|
}) : null] });
|
|
10606
11047
|
}
|
|
10607
|
-
function
|
|
11048
|
+
function hl({ link: e, primary: t }) {
|
|
10608
11049
|
let n = Ji(e.href);
|
|
10609
11050
|
if (!n && !e.onClick) return null;
|
|
10610
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, {})] });
|
|
@@ -10629,8 +11070,8 @@ function Fc({ link: e, primary: t }) {
|
|
|
10629
11070
|
children: i
|
|
10630
11071
|
});
|
|
10631
11072
|
}
|
|
10632
|
-
function
|
|
10633
|
-
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", {
|
|
10634
11075
|
className: "select-insight__head",
|
|
10635
11076
|
children: [/* @__PURE__ */ g("div", {
|
|
10636
11077
|
className: "select-insight__meta",
|
|
@@ -10639,12 +11080,12 @@ function Ic({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10639
11080
|
className: "select-insight__position",
|
|
10640
11081
|
children: o
|
|
10641
11082
|
}) : null,
|
|
10642
|
-
/* @__PURE__ */ h(
|
|
11083
|
+
/* @__PURE__ */ h(ol, {
|
|
10643
11084
|
severity: e.severity,
|
|
10644
11085
|
labels: T
|
|
10645
11086
|
}),
|
|
10646
11087
|
e.domain ? /* @__PURE__ */ h("span", { children: T.domain[e.domain] ?? e.domain }) : null,
|
|
10647
|
-
s && !i ? /* @__PURE__ */ h(
|
|
11088
|
+
s && !i ? /* @__PURE__ */ h(sl, { label: T.unread }) : null,
|
|
10648
11089
|
i ? /* @__PURE__ */ h(wr, {
|
|
10649
11090
|
tone: "pro",
|
|
10650
11091
|
size: "sm",
|
|
@@ -10681,7 +11122,7 @@ function Ic({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10681
11122
|
}),
|
|
10682
11123
|
/* @__PURE__ */ h("strong", {
|
|
10683
11124
|
className: "select-insight__stakevalue",
|
|
10684
|
-
children:
|
|
11125
|
+
children: nl(e.impact, w, T)
|
|
10685
11126
|
}),
|
|
10686
11127
|
/* @__PURE__ */ h("span", {
|
|
10687
11128
|
className: "select-insight__stakenote",
|
|
@@ -10730,7 +11171,7 @@ function Ic({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10730
11171
|
I || u ? /* @__PURE__ */ g("div", {
|
|
10731
11172
|
className: "select-insight__nowactions",
|
|
10732
11173
|
children: [
|
|
10733
|
-
I ? /* @__PURE__ */ h(
|
|
11174
|
+
I ? /* @__PURE__ */ h(hl, {
|
|
10734
11175
|
link: I,
|
|
10735
11176
|
primary: !0
|
|
10736
11177
|
}) : null,
|
|
@@ -10756,7 +11197,7 @@ function Ic({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10756
11197
|
return /* @__PURE__ */ h("li", { children: n ?? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", {
|
|
10757
11198
|
className: "select-insight__moretext",
|
|
10758
11199
|
children: e.label
|
|
10759
|
-
}), r ? /* @__PURE__ */ h(
|
|
11200
|
+
}), r ? /* @__PURE__ */ h(hl, {
|
|
10760
11201
|
link: r,
|
|
10761
11202
|
primary: !1
|
|
10762
11203
|
}) : null] }) }, `${e.target ?? "text"}:${t}`);
|
|
@@ -10794,7 +11235,7 @@ function Ic({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10794
11235
|
}),
|
|
10795
11236
|
/* @__PURE__ */ h("div", {
|
|
10796
11237
|
className: "select-insight__tilevalue",
|
|
10797
|
-
children:
|
|
11238
|
+
children: nl(e.impact, w, T)
|
|
10798
11239
|
}),
|
|
10799
11240
|
/* @__PURE__ */ h("div", {
|
|
10800
11241
|
className: "select-insight__tilenote",
|
|
@@ -10805,7 +11246,7 @@ function Ic({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10805
11246
|
children: [/* @__PURE__ */ h("span", { children: z.label }), /* @__PURE__ */ h("strong", { children: z.value.display })]
|
|
10806
11247
|
}) : null
|
|
10807
11248
|
]
|
|
10808
|
-
}) : 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", {
|
|
10809
11250
|
className: "select-insight__tile",
|
|
10810
11251
|
children: [
|
|
10811
11252
|
/* @__PURE__ */ h("div", {
|
|
@@ -10837,10 +11278,10 @@ function Ic({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10837
11278
|
p.content
|
|
10838
11279
|
]
|
|
10839
11280
|
}) : null,
|
|
10840
|
-
ee.map((e, t) => e.type === "items" ? /* @__PURE__ */ h(
|
|
11281
|
+
ee.map((e, t) => e.type === "items" ? /* @__PURE__ */ h(pl, {
|
|
10841
11282
|
block: e,
|
|
10842
11283
|
renderItem: v
|
|
10843
|
-
}, t) : e.type === "table" ? /* @__PURE__ */ h(
|
|
11284
|
+
}, t) : e.type === "table" ? /* @__PURE__ */ h(ml, { block: e }, t) : e.type === "text" ? /* @__PURE__ */ g("div", {
|
|
10844
11285
|
className: "select-insight__text",
|
|
10845
11286
|
children: [/* @__PURE__ */ h(ve, {}), /* @__PURE__ */ h("span", { children: e.text })]
|
|
10846
11287
|
}, t) : null)
|
|
@@ -10923,25 +11364,25 @@ function Ic({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
10923
11364
|
]
|
|
10924
11365
|
});
|
|
10925
11366
|
}
|
|
10926
|
-
function
|
|
11367
|
+
function _l({ layout: e = "rows", children: t, className: n, ...r }) {
|
|
10927
11368
|
return /* @__PURE__ */ h("div", {
|
|
10928
11369
|
...r,
|
|
10929
11370
|
className: `select-insightlist${e === "cards" ? " select-insightlist--cards" : ""}${n ? " " + n : ""}`,
|
|
10930
11371
|
children: t
|
|
10931
11372
|
});
|
|
10932
11373
|
}
|
|
10933
|
-
function
|
|
10934
|
-
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", {
|
|
10935
11376
|
className: "select-insightrow__index select-insightrow__index--lock",
|
|
10936
11377
|
"aria-hidden": "true",
|
|
10937
11378
|
children: /* @__PURE__ */ h(tt, {})
|
|
10938
11379
|
}) : r == null ? null : /* @__PURE__ */ h("span", {
|
|
10939
11380
|
className: `select-insightrow__index${o || x && r === 1 ? " select-insightrow__index--strong" : ""}`,
|
|
10940
11381
|
children: r
|
|
10941
|
-
}), w = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(
|
|
11382
|
+
}), w = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(ol, {
|
|
10942
11383
|
severity: e.severity,
|
|
10943
11384
|
labels: v
|
|
10944
|
-
}), 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: [
|
|
10945
11386
|
/* @__PURE__ */ g("span", {
|
|
10946
11387
|
className: "select-insightrow__top",
|
|
10947
11388
|
children: [
|
|
@@ -11007,8 +11448,8 @@ function Rc({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread
|
|
|
11007
11448
|
}
|
|
11008
11449
|
//#endregion
|
|
11009
11450
|
//#region src/SelectAssistant.tsx
|
|
11010
|
-
var
|
|
11011
|
-
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 }) {
|
|
11012
11453
|
let D = s(), O = d(null), k = d(null), A = d(null), [j, M] = f(""), N = d(0), P = b !== !1;
|
|
11013
11454
|
o(() => {
|
|
11014
11455
|
let t = O.current;
|
|
@@ -11026,7 +11467,7 @@ function Bc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
11026
11467
|
let o = t.scrollHeight - t.clientHeight, s = a ? Math.min(o, a.getBoundingClientRect().top - t.getBoundingClientRect().top + t.scrollTop - 12) : o;
|
|
11027
11468
|
n ? t.scrollTop = s : s > t.scrollTop + 1 && (typeof t.scrollTo == "function" ? t.scrollTo({
|
|
11028
11469
|
top: s,
|
|
11029
|
-
behavior:
|
|
11470
|
+
behavior: wl() ? "auto" : "smooth"
|
|
11030
11471
|
}) : t.scrollTop = s);
|
|
11031
11472
|
}, [
|
|
11032
11473
|
e,
|
|
@@ -11090,7 +11531,7 @@ function Bc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
11090
11531
|
className: "select-assistant__body",
|
|
11091
11532
|
role: "log",
|
|
11092
11533
|
"aria-live": "polite",
|
|
11093
|
-
children: [l, P ? /* @__PURE__ */ h(
|
|
11534
|
+
children: [l, P ? /* @__PURE__ */ h(Cl, { label: typeof b == "string" ? b : void 0 }) : null]
|
|
11094
11535
|
}),
|
|
11095
11536
|
(_ || p && p.length > 0) && /* @__PURE__ */ g("footer", {
|
|
11096
11537
|
className: "select-assistant__foot",
|
|
@@ -11114,7 +11555,7 @@ function Bc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
11114
11555
|
onChange: (e) => M(e.target.value),
|
|
11115
11556
|
placeholder: v,
|
|
11116
11557
|
"aria-label": T,
|
|
11117
|
-
maxLength:
|
|
11558
|
+
maxLength: yl,
|
|
11118
11559
|
autoComplete: "off",
|
|
11119
11560
|
enterKeyHint: "send",
|
|
11120
11561
|
disabled: y
|
|
@@ -11146,7 +11587,7 @@ function Bc({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
11146
11587
|
})]
|
|
11147
11588
|
});
|
|
11148
11589
|
}
|
|
11149
|
-
function
|
|
11590
|
+
function xl({ from: e, bare: t = !1, children: n }) {
|
|
11150
11591
|
return /* @__PURE__ */ h("div", {
|
|
11151
11592
|
className: `select-chat__msg select-chat__msg--${e}${t ? " select-chat__msg--bare" : ""}`,
|
|
11152
11593
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -11155,13 +11596,13 @@ function Vc({ from: e, bare: t = !1, children: n }) {
|
|
|
11155
11596
|
})
|
|
11156
11597
|
});
|
|
11157
11598
|
}
|
|
11158
|
-
function
|
|
11599
|
+
function Sl({ children: e }) {
|
|
11159
11600
|
return /* @__PURE__ */ h("div", {
|
|
11160
11601
|
className: "select-chat__turn",
|
|
11161
11602
|
children: e
|
|
11162
11603
|
});
|
|
11163
11604
|
}
|
|
11164
|
-
function
|
|
11605
|
+
function Cl({ label: e = "Escrevendo…" }) {
|
|
11165
11606
|
return /* @__PURE__ */ h("div", {
|
|
11166
11607
|
className: "select-chat__msg select-chat__msg--assistant select-chat__msg--typing",
|
|
11167
11608
|
role: "status",
|
|
@@ -11177,19 +11618,19 @@ function Uc({ label: e = "Escrevendo…" }) {
|
|
|
11177
11618
|
})
|
|
11178
11619
|
});
|
|
11179
11620
|
}
|
|
11180
|
-
function
|
|
11621
|
+
function wl() {
|
|
11181
11622
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
11182
11623
|
}
|
|
11183
11624
|
//#endregion
|
|
11184
11625
|
//#region src/SelectNumberedList.tsx
|
|
11185
|
-
function
|
|
11626
|
+
function Tl({ children: e, className: t, ...n }) {
|
|
11186
11627
|
return /* @__PURE__ */ h("ol", {
|
|
11187
11628
|
...n,
|
|
11188
11629
|
className: `select-numlist${t ? " " + t : ""}`,
|
|
11189
11630
|
children: e
|
|
11190
11631
|
});
|
|
11191
11632
|
}
|
|
11192
|
-
function
|
|
11633
|
+
function El({ title: e, children: t, className: n, ...r }) {
|
|
11193
11634
|
return /* @__PURE__ */ h("li", {
|
|
11194
11635
|
...r,
|
|
11195
11636
|
className: `select-numlist__item${n ? " " + n : ""}`,
|
|
@@ -11207,7 +11648,7 @@ function Kc({ title: e, children: t, className: n, ...r }) {
|
|
|
11207
11648
|
}
|
|
11208
11649
|
//#endregion
|
|
11209
11650
|
//#region src/SelectChartCard.tsx
|
|
11210
|
-
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) {
|
|
11211
11652
|
let m = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
11212
11653
|
return /* @__PURE__ */ g("div", {
|
|
11213
11654
|
ref: p,
|
|
@@ -11250,7 +11691,7 @@ var qc = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1,
|
|
|
11250
11691
|
});
|
|
11251
11692
|
//#endregion
|
|
11252
11693
|
//#region src/chartUtils.ts
|
|
11253
|
-
function
|
|
11694
|
+
function Ol() {
|
|
11254
11695
|
let [e, t] = f(1);
|
|
11255
11696
|
return l(() => {
|
|
11256
11697
|
let e = () => {
|
|
@@ -11260,8 +11701,8 @@ function Jc() {
|
|
|
11260
11701
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
11261
11702
|
}, []), e;
|
|
11262
11703
|
}
|
|
11263
|
-
function
|
|
11264
|
-
let t = d(null), [n, r] = f(0), i =
|
|
11704
|
+
function kl(e) {
|
|
11705
|
+
let t = d(null), [n, r] = f(0), i = Ol();
|
|
11265
11706
|
return l(() => {
|
|
11266
11707
|
let e = t.current;
|
|
11267
11708
|
if (!e) return;
|
|
@@ -11278,7 +11719,7 @@ function Yc(e) {
|
|
|
11278
11719
|
height: Math.round(e * i)
|
|
11279
11720
|
};
|
|
11280
11721
|
}
|
|
11281
|
-
function
|
|
11722
|
+
function Al(e, t) {
|
|
11282
11723
|
let [n, r] = f(t);
|
|
11283
11724
|
return l(() => {
|
|
11284
11725
|
let t = e.current;
|
|
@@ -11292,15 +11733,15 @@ function Xc(e, t) {
|
|
|
11292
11733
|
return i.observe(t), () => i.disconnect();
|
|
11293
11734
|
}, [e]), n;
|
|
11294
11735
|
}
|
|
11295
|
-
function
|
|
11736
|
+
function jl(e) {
|
|
11296
11737
|
if (e <= 0) return 1;
|
|
11297
11738
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
11298
11739
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
11299
11740
|
}
|
|
11300
|
-
function
|
|
11741
|
+
function Ml(e, t = 4) {
|
|
11301
11742
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
11302
11743
|
}
|
|
11303
|
-
function
|
|
11744
|
+
function Nl(e, t = 5) {
|
|
11304
11745
|
if (!(e > 0)) return {
|
|
11305
11746
|
max: 1,
|
|
11306
11747
|
values: [0, 1]
|
|
@@ -11312,10 +11753,10 @@ function $c(e, t = 5) {
|
|
|
11312
11753
|
values: s
|
|
11313
11754
|
};
|
|
11314
11755
|
}
|
|
11315
|
-
function
|
|
11756
|
+
function Pl(e) {
|
|
11316
11757
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
11317
11758
|
}
|
|
11318
|
-
function
|
|
11759
|
+
function Fl(e) {
|
|
11319
11760
|
let t = e.length;
|
|
11320
11761
|
if (t === 0) return "";
|
|
11321
11762
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -11339,23 +11780,23 @@ function tl(e) {
|
|
|
11339
11780
|
}
|
|
11340
11781
|
return s;
|
|
11341
11782
|
}
|
|
11342
|
-
function
|
|
11783
|
+
function Il(e, t) {
|
|
11343
11784
|
if (e.length === 0) return "";
|
|
11344
11785
|
let n = e[0], r = e[e.length - 1];
|
|
11345
|
-
return `${
|
|
11786
|
+
return `${Fl(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
11346
11787
|
}
|
|
11347
|
-
function
|
|
11348
|
-
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`;
|
|
11349
11790
|
}
|
|
11350
|
-
function
|
|
11791
|
+
function Rl(e, t, n, r) {
|
|
11351
11792
|
let i = (r - 90) * Math.PI / 180;
|
|
11352
11793
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
11353
11794
|
}
|
|
11354
|
-
function
|
|
11355
|
-
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);
|
|
11356
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`;
|
|
11357
11798
|
}
|
|
11358
|
-
var
|
|
11799
|
+
var Bl = [
|
|
11359
11800
|
"var(--select-chart-1)",
|
|
11360
11801
|
"var(--select-chart-2)",
|
|
11361
11802
|
"var(--select-chart-3)",
|
|
@@ -11363,13 +11804,13 @@ var ol = [
|
|
|
11363
11804
|
"var(--select-chart-5)"
|
|
11364
11805
|
];
|
|
11365
11806
|
function X(e) {
|
|
11366
|
-
return
|
|
11807
|
+
return Bl[e % Bl.length];
|
|
11367
11808
|
}
|
|
11368
11809
|
function Z(e) {
|
|
11369
11810
|
let t = Math.abs(e);
|
|
11370
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));
|
|
11371
11812
|
}
|
|
11372
|
-
var
|
|
11813
|
+
var Vl = {
|
|
11373
11814
|
top: 16,
|
|
11374
11815
|
right: 22,
|
|
11375
11816
|
bottom: 32,
|
|
@@ -11377,8 +11818,8 @@ var sl = {
|
|
|
11377
11818
|
};
|
|
11378
11819
|
//#endregion
|
|
11379
11820
|
//#region src/SelectSparkline.tsx
|
|
11380
|
-
function
|
|
11381
|
-
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;
|
|
11382
11823
|
if (o > 0 && e.length > 1) {
|
|
11383
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];
|
|
11384
11825
|
u = /* @__PURE__ */ g("svg", {
|
|
@@ -11404,11 +11845,11 @@ function cl({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
11404
11845
|
})]
|
|
11405
11846
|
}) }),
|
|
11406
11847
|
/* @__PURE__ */ h("path", {
|
|
11407
|
-
d:
|
|
11848
|
+
d: Il(a, n - 4),
|
|
11408
11849
|
fill: `url(#${l}-sa)`
|
|
11409
11850
|
}),
|
|
11410
11851
|
/* @__PURE__ */ h("path", {
|
|
11411
|
-
d:
|
|
11852
|
+
d: Fl(a),
|
|
11412
11853
|
fill: "none",
|
|
11413
11854
|
stroke: c,
|
|
11414
11855
|
strokeWidth: 2,
|
|
@@ -11487,7 +11928,7 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
11487
11928
|
}, t))]
|
|
11488
11929
|
});
|
|
11489
11930
|
}
|
|
11490
|
-
function
|
|
11931
|
+
function Ul({ tip: e, onDismiss: t }) {
|
|
11491
11932
|
return o(() => {
|
|
11492
11933
|
if (e) return window.addEventListener("scroll", t, !0), window.addEventListener("resize", t), () => {
|
|
11493
11934
|
window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", t);
|
|
@@ -11500,8 +11941,8 @@ function ll({ tip: e, onDismiss: t }) {
|
|
|
11500
11941
|
}
|
|
11501
11942
|
//#endregion
|
|
11502
11943
|
//#region src/SelectBarChart.tsx
|
|
11503
|
-
function
|
|
11504
|
-
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 * _;
|
|
11505
11946
|
return /* @__PURE__ */ g("div", {
|
|
11506
11947
|
...a,
|
|
11507
11948
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -11527,7 +11968,7 @@ function ul({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
11527
11968
|
stopOpacity: .62
|
|
11528
11969
|
})]
|
|
11529
11970
|
}) }),
|
|
11530
|
-
|
|
11971
|
+
Ml(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
11531
11972
|
x1: p.left,
|
|
11532
11973
|
x2: c - p.right,
|
|
11533
11974
|
y1: x(e),
|
|
@@ -11577,14 +12018,14 @@ function ul({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
11577
12018
|
}
|
|
11578
12019
|
//#endregion
|
|
11579
12020
|
//#region src/SelectLineChart.tsx
|
|
11580
|
-
var
|
|
11581
|
-
function
|
|
12021
|
+
var Gl = (e) => e != null && Number.isFinite(e), Kl = 64;
|
|
12022
|
+
function ql(e, t) {
|
|
11582
12023
|
let n = [], r = [];
|
|
11583
|
-
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 = []);
|
|
11584
12025
|
return r.length && n.push(r), n;
|
|
11585
12026
|
}
|
|
11586
|
-
function
|
|
11587
|
-
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;
|
|
11588
12029
|
return /* @__PURE__ */ g("div", {
|
|
11589
12030
|
...c,
|
|
11590
12031
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -11639,7 +12080,7 @@ function ml({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11639
12080
|
si: t
|
|
11640
12081
|
})).sort((e, t) => Number(!!t.s.dashed) - Number(!!e.s.dashed)).map(({ s: e, si: n }) => {
|
|
11641
12082
|
let r = e.color ?? X(n);
|
|
11642
|
-
return /* @__PURE__ */ h("g", { children:
|
|
12083
|
+
return /* @__PURE__ */ h("g", { children: ql(e.data, C).map((i, o) => {
|
|
11643
12084
|
let s = i.map((t) => [w(t), T(e.data[t])]);
|
|
11644
12085
|
return s.length === 1 ? /* @__PURE__ */ h("circle", {
|
|
11645
12086
|
cx: s[0][0],
|
|
@@ -11648,11 +12089,11 @@ function ml({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11648
12089
|
fill: r,
|
|
11649
12090
|
className: "select-chart__dot select-chart__dot--lone"
|
|
11650
12091
|
}, o) : /* @__PURE__ */ g(t, { children: [a && !e.dashed && /* @__PURE__ */ h("path", {
|
|
11651
|
-
d:
|
|
12092
|
+
d: Il(s, k),
|
|
11652
12093
|
fill: `url(#${p}-a${n})`,
|
|
11653
12094
|
className: "select-chart__area"
|
|
11654
12095
|
}), /* @__PURE__ */ h("path", {
|
|
11655
|
-
d:
|
|
12096
|
+
d: Fl(s),
|
|
11656
12097
|
fill: "none",
|
|
11657
12098
|
stroke: r,
|
|
11658
12099
|
strokeWidth: e.dashed ? 1.75 : 2.25,
|
|
@@ -11665,7 +12106,7 @@ function ml({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11665
12106
|
})] }, o);
|
|
11666
12107
|
}) }, n);
|
|
11667
12108
|
}),
|
|
11668
|
-
m != null && e.map((e, t) =>
|
|
12109
|
+
m != null && e.map((e, t) => Gl(e.data[m]) ? /* @__PURE__ */ h("circle", {
|
|
11669
12110
|
cx: w(m),
|
|
11670
12111
|
cy: T(e.data[m] ?? 0),
|
|
11671
12112
|
r: 3.5,
|
|
@@ -11692,7 +12133,7 @@ function ml({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11692
12133
|
let r = e.map((e, t) => ({
|
|
11693
12134
|
s: e,
|
|
11694
12135
|
si: t
|
|
11695
|
-
})).filter(({ s: e }) =>
|
|
12136
|
+
})).filter(({ s: e }) => Gl(e.data[n]));
|
|
11696
12137
|
if (!r.length) {
|
|
11697
12138
|
d.hide();
|
|
11698
12139
|
return;
|
|
@@ -11723,8 +12164,8 @@ function ml({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
11723
12164
|
}
|
|
11724
12165
|
//#endregion
|
|
11725
12166
|
//#region src/SelectStackedArea.tsx
|
|
11726
|
-
function
|
|
11727
|
-
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];
|
|
11728
12169
|
return /* @__PURE__ */ g("div", {
|
|
11729
12170
|
...a,
|
|
11730
12171
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -11753,7 +12194,7 @@ function hl({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
11753
12194
|
})]
|
|
11754
12195
|
}, t);
|
|
11755
12196
|
}) }),
|
|
11756
|
-
|
|
12197
|
+
Ml(y).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
11757
12198
|
x1: b.left,
|
|
11758
12199
|
x2: c - b.right,
|
|
11759
12200
|
y1: w(e),
|
|
@@ -11772,10 +12213,10 @@ function hl({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
11772
12213
|
return /* @__PURE__ */ g("g", {
|
|
11773
12214
|
className: "select-chart__area",
|
|
11774
12215
|
children: [/* @__PURE__ */ h("path", {
|
|
11775
|
-
d:
|
|
12216
|
+
d: Ll(i, a),
|
|
11776
12217
|
fill: `url(#${u}-b${n})`
|
|
11777
12218
|
}), /* @__PURE__ */ h("path", {
|
|
11778
|
-
d:
|
|
12219
|
+
d: Fl(i),
|
|
11779
12220
|
fill: "none",
|
|
11780
12221
|
stroke: r,
|
|
11781
12222
|
strokeWidth: 1.5,
|
|
@@ -11829,11 +12270,11 @@ function hl({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
11829
12270
|
}
|
|
11830
12271
|
//#endregion
|
|
11831
12272
|
//#region src/SelectComboChart.tsx
|
|
11832
|
-
function
|
|
11833
|
-
let { ref: l, width: u } =
|
|
11834
|
-
...
|
|
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,
|
|
11835
12276
|
right: 58
|
|
11836
|
-
}, 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)]);
|
|
11837
12278
|
return /* @__PURE__ */ g("div", {
|
|
11838
12279
|
...c,
|
|
11839
12280
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -11859,7 +12300,7 @@ function gl({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
11859
12300
|
stopOpacity: .55
|
|
11860
12301
|
})]
|
|
11861
12302
|
}) }),
|
|
11862
|
-
|
|
12303
|
+
Ml(S).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
11863
12304
|
x1: v.left,
|
|
11864
12305
|
x2: u - v.right,
|
|
11865
12306
|
y1: A(e),
|
|
@@ -11873,7 +12314,7 @@ function gl({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
11873
12314
|
textAnchor: "end",
|
|
11874
12315
|
children: i(e)
|
|
11875
12316
|
})] }, t)),
|
|
11876
|
-
|
|
12317
|
+
Ml(C).map((e, t) => /* @__PURE__ */ h("text", {
|
|
11877
12318
|
x: u - 4,
|
|
11878
12319
|
y: j(e),
|
|
11879
12320
|
className: "select-chart__ylabel",
|
|
@@ -11902,7 +12343,7 @@ function gl({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
11902
12343
|
className: "select-chart__crosshair"
|
|
11903
12344
|
}),
|
|
11904
12345
|
/* @__PURE__ */ h("path", {
|
|
11905
|
-
d:
|
|
12346
|
+
d: Fl(N),
|
|
11906
12347
|
fill: "none",
|
|
11907
12348
|
stroke: O,
|
|
11908
12349
|
strokeWidth: 2.5,
|
|
@@ -11960,8 +12401,8 @@ function gl({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
11960
12401
|
}
|
|
11961
12402
|
//#endregion
|
|
11962
12403
|
//#region src/SelectDonut.tsx
|
|
11963
|
-
var
|
|
11964
|
-
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;
|
|
11965
12406
|
return /* @__PURE__ */ g("div", {
|
|
11966
12407
|
ref: f,
|
|
11967
12408
|
...u,
|
|
@@ -12004,7 +12445,7 @@ var _l = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
12004
12445
|
w += e.value;
|
|
12005
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);
|
|
12006
12447
|
return /* @__PURE__ */ h("path", {
|
|
12007
|
-
d:
|
|
12448
|
+
d: zl(b, x, S, C, c, l),
|
|
12008
12449
|
fill: `url(#${m}-s${t})`,
|
|
12009
12450
|
className: "select-chart__seg",
|
|
12010
12451
|
onMouseEnter: () => {
|
|
@@ -12052,9 +12493,9 @@ var _l = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
12052
12493
|
/* @__PURE__ */ h($, { tip: p.tip })
|
|
12053
12494
|
]
|
|
12054
12495
|
});
|
|
12055
|
-
}),
|
|
12056
|
-
function
|
|
12057
|
-
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) => {
|
|
12058
12499
|
if (o) {
|
|
12059
12500
|
let e = o(t);
|
|
12060
12501
|
return e ? {
|
|
@@ -12221,7 +12662,7 @@ function bl({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
12221
12662
|
}
|
|
12222
12663
|
//#endregion
|
|
12223
12664
|
//#region src/SelectChartLegend.tsx
|
|
12224
|
-
function
|
|
12665
|
+
function tu({ items: e, className: t, ...n }) {
|
|
12225
12666
|
return /* @__PURE__ */ h("div", {
|
|
12226
12667
|
...n,
|
|
12227
12668
|
className: `select-chartlegend${t ? " " + t : ""}`,
|
|
@@ -12250,7 +12691,7 @@ function xl({ items: e, className: t, ...n }) {
|
|
|
12250
12691
|
}
|
|
12251
12692
|
//#endregion
|
|
12252
12693
|
//#region src/SelectShareBar.tsx
|
|
12253
|
-
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 }) {
|
|
12254
12695
|
let u = e.map((e, t) => ({
|
|
12255
12696
|
...e,
|
|
12256
12697
|
key: e.key ?? e.label,
|
|
@@ -12355,7 +12796,7 @@ function Sl({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm",
|
|
|
12355
12796
|
}
|
|
12356
12797
|
//#endregion
|
|
12357
12798
|
//#region src/SelectRing.tsx
|
|
12358
|
-
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) {
|
|
12359
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 = {
|
|
12360
12801
|
"--select-ring-size": `${n / 16}rem`,
|
|
12361
12802
|
...u
|
|
@@ -12399,7 +12840,7 @@ var Cl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12399
12840
|
})]
|
|
12400
12841
|
})]
|
|
12401
12842
|
});
|
|
12402
|
-
}),
|
|
12843
|
+
}), iu = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
|
|
12403
12844
|
let l = (t) => {
|
|
12404
12845
|
let n = e[t];
|
|
12405
12846
|
return n != null && n.state !== "upcoming";
|
|
@@ -12457,7 +12898,7 @@ var Cl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12457
12898
|
})
|
|
12458
12899
|
})
|
|
12459
12900
|
});
|
|
12460
|
-
}),
|
|
12901
|
+
}), au = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
|
|
12461
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;
|
|
12462
12903
|
return /* @__PURE__ */ g("span", {
|
|
12463
12904
|
ref: o,
|
|
@@ -12473,7 +12914,7 @@ var Cl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12473
12914
|
children: l
|
|
12474
12915
|
})]
|
|
12475
12916
|
});
|
|
12476
|
-
}),
|
|
12917
|
+
}), ou = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
|
|
12477
12918
|
return /* @__PURE__ */ h("span", {
|
|
12478
12919
|
ref: a,
|
|
12479
12920
|
"aria-hidden": "true",
|
|
@@ -12481,7 +12922,7 @@ var Cl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12481
12922
|
className: `select-icontile select-icontile--${t} select-icontile--${n}${r ? " " + r : ""}`,
|
|
12482
12923
|
children: e
|
|
12483
12924
|
});
|
|
12484
|
-
}),
|
|
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 }, _) {
|
|
12485
12926
|
let v = a != null && o === "end";
|
|
12486
12927
|
return /* @__PURE__ */ h("section", {
|
|
12487
12928
|
ref: _,
|
|
@@ -12553,7 +12994,7 @@ var Cl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12553
12994
|
]
|
|
12554
12995
|
})
|
|
12555
12996
|
});
|
|
12556
|
-
}),
|
|
12997
|
+
}), cu = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
|
|
12557
12998
|
return /* @__PURE__ */ g("article", {
|
|
12558
12999
|
ref: l,
|
|
12559
13000
|
...c,
|
|
@@ -12588,7 +13029,7 @@ var Cl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12588
13029
|
})]
|
|
12589
13030
|
})]
|
|
12590
13031
|
});
|
|
12591
|
-
}),
|
|
13032
|
+
}), lu = r(function({ items: e, order: t = "label-first", columns: n, narrowColumns: r, loading: i = !1, className: a, ...o }, s) {
|
|
12592
13033
|
return /* @__PURE__ */ h("dl", {
|
|
12593
13034
|
ref: s,
|
|
12594
13035
|
"aria-busy": i || void 0,
|
|
@@ -12615,7 +13056,7 @@ var Cl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12615
13056
|
]
|
|
12616
13057
|
}, e.key ?? t))
|
|
12617
13058
|
});
|
|
12618
|
-
}),
|
|
13059
|
+
}), uu = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
|
|
12619
13060
|
let o = (t ?? "").replace(/\D/g, "").slice(-4);
|
|
12620
13061
|
return /* @__PURE__ */ g("div", {
|
|
12621
13062
|
ref: a,
|
|
@@ -12658,7 +13099,7 @@ var Cl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12658
13099
|
})
|
|
12659
13100
|
]
|
|
12660
13101
|
});
|
|
12661
|
-
}),
|
|
13102
|
+
}), du = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
|
|
12662
13103
|
let s = Math.max(1, ...e.map((e) => e.value));
|
|
12663
13104
|
return /* @__PURE__ */ h("div", {
|
|
12664
13105
|
ref: o,
|
|
@@ -12700,19 +13141,19 @@ var Cl = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
12700
13141
|
});
|
|
12701
13142
|
//#endregion
|
|
12702
13143
|
//#region src/SelectGauge.tsx
|
|
12703
|
-
function
|
|
13144
|
+
function fu(e) {
|
|
12704
13145
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
12705
13146
|
}
|
|
12706
|
-
function
|
|
13147
|
+
function pu(e, t, n, r) {
|
|
12707
13148
|
let i = Math.PI + r * Math.PI;
|
|
12708
13149
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
12709
13150
|
}
|
|
12710
|
-
function
|
|
12711
|
-
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);
|
|
12712
13153
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
12713
13154
|
}
|
|
12714
|
-
var
|
|
12715
|
-
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({
|
|
12716
13157
|
value: u,
|
|
12717
13158
|
format: o
|
|
12718
13159
|
});
|
|
@@ -12735,13 +13176,13 @@ var Fl = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12735
13176
|
"aria-hidden": "true",
|
|
12736
13177
|
children: [/* @__PURE__ */ h("path", {
|
|
12737
13178
|
className: "select-gauge__track",
|
|
12738
|
-
d:
|
|
13179
|
+
d: mu(m, _, p, 0, 1),
|
|
12739
13180
|
fill: "none",
|
|
12740
13181
|
strokeWidth: d,
|
|
12741
13182
|
strokeLinecap: "round"
|
|
12742
13183
|
}), u > 0 && /* @__PURE__ */ h("path", {
|
|
12743
13184
|
className: "select-gauge__arc",
|
|
12744
|
-
d:
|
|
13185
|
+
d: mu(m, _, p, 0, u / 100),
|
|
12745
13186
|
fill: "none",
|
|
12746
13187
|
stroke: a ?? "var(--select-chart-1)",
|
|
12747
13188
|
strokeWidth: d,
|
|
@@ -12764,7 +13205,7 @@ var Fl = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12764
13205
|
children: n
|
|
12765
13206
|
})]
|
|
12766
13207
|
});
|
|
12767
|
-
}),
|
|
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) {
|
|
12768
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 = {
|
|
12769
13210
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
12770
13211
|
width: "fit-content",
|
|
@@ -12824,12 +13265,12 @@ var Fl = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12824
13265
|
}, c);
|
|
12825
13266
|
})] }, n.label))
|
|
12826
13267
|
]
|
|
12827
|
-
}), /* @__PURE__ */ h(
|
|
13268
|
+
}), /* @__PURE__ */ h(Ul, {
|
|
12828
13269
|
tip: _.tip,
|
|
12829
13270
|
onDismiss: _.hide
|
|
12830
13271
|
})]
|
|
12831
13272
|
});
|
|
12832
|
-
}),
|
|
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) {
|
|
12833
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, _ = {
|
|
12834
13275
|
width: f * m - r,
|
|
12835
13276
|
height: p * m - r
|
|
@@ -12891,13 +13332,13 @@ var Fl = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
12891
13332
|
/* @__PURE__ */ h("span", { children: "mais" })
|
|
12892
13333
|
]
|
|
12893
13334
|
}),
|
|
12894
|
-
/* @__PURE__ */ h(
|
|
13335
|
+
/* @__PURE__ */ h(Ul, {
|
|
12895
13336
|
tip: u.tip,
|
|
12896
13337
|
onDismiss: u.hide
|
|
12897
13338
|
})
|
|
12898
13339
|
]
|
|
12899
13340
|
});
|
|
12900
|
-
}),
|
|
13341
|
+
}), yu = [
|
|
12901
13342
|
{
|
|
12902
13343
|
key: "RR",
|
|
12903
13344
|
label: "RR",
|
|
@@ -13090,7 +13531,7 @@ var Fl = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
13090
13531
|
];
|
|
13091
13532
|
//#endregion
|
|
13092
13533
|
//#region src/SelectProgressList.tsx
|
|
13093
|
-
function
|
|
13534
|
+
function bu({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1, max: a }) {
|
|
13094
13535
|
if (e.length === 0) return /* @__PURE__ */ h("div", {
|
|
13095
13536
|
className: "select-progresslist__empty",
|
|
13096
13537
|
children: r
|
|
@@ -13141,7 +13582,7 @@ function Bl({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
13141
13582
|
}
|
|
13142
13583
|
//#endregion
|
|
13143
13584
|
//#region src/SelectRadialBar.tsx
|
|
13144
|
-
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) {
|
|
13145
13586
|
let d = s(), f = t / 2, p = t / 2;
|
|
13146
13587
|
return /* @__PURE__ */ g("div", {
|
|
13147
13588
|
ref: u,
|
|
@@ -13181,7 +13622,7 @@ var Vl = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Hl = r(f
|
|
|
13181
13622
|
}) }), e.map((e, i) => {
|
|
13182
13623
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
13183
13624
|
if (a <= n / 2) return null;
|
|
13184
|
-
let o =
|
|
13625
|
+
let o = xu(e.value);
|
|
13185
13626
|
return /* @__PURE__ */ g("g", {
|
|
13186
13627
|
transform: `rotate(-90 ${f} ${p})`,
|
|
13187
13628
|
children: [/* @__PURE__ */ h("circle", {
|
|
@@ -13210,7 +13651,7 @@ var Vl = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Hl = r(f
|
|
|
13210
13651
|
className: "select-radial__center",
|
|
13211
13652
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ h("strong", {
|
|
13212
13653
|
className: "select-radial__value",
|
|
13213
|
-
children: i(
|
|
13654
|
+
children: i(xu(e[0].value))
|
|
13214
13655
|
}) : null)
|
|
13215
13656
|
})]
|
|
13216
13657
|
}), o && /* @__PURE__ */ h("ul", {
|
|
@@ -13228,15 +13669,15 @@ var Vl = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Hl = r(f
|
|
|
13228
13669
|
}),
|
|
13229
13670
|
/* @__PURE__ */ h("span", {
|
|
13230
13671
|
className: "select-donut__legval",
|
|
13231
|
-
children: i(
|
|
13672
|
+
children: i(xu(e.value))
|
|
13232
13673
|
})
|
|
13233
13674
|
]
|
|
13234
13675
|
}, t))
|
|
13235
13676
|
})]
|
|
13236
13677
|
});
|
|
13237
|
-
}),
|
|
13238
|
-
function
|
|
13239
|
-
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));
|
|
13240
13681
|
return /* @__PURE__ */ g("div", {
|
|
13241
13682
|
...u,
|
|
13242
13683
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -13265,7 +13706,7 @@ function ql({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
13265
13706
|
})]
|
|
13266
13707
|
}, t);
|
|
13267
13708
|
}) }),
|
|
13268
|
-
|
|
13709
|
+
Ml(v).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13269
13710
|
x1: O(e),
|
|
13270
13711
|
x2: O(e),
|
|
13271
13712
|
y1: 6,
|
|
@@ -13311,7 +13752,7 @@ function ql({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
13311
13752
|
onMouseLeave: m.hide
|
|
13312
13753
|
}),
|
|
13313
13754
|
/* @__PURE__ */ g("text", {
|
|
13314
|
-
x: x -
|
|
13755
|
+
x: x - wu / 2,
|
|
13315
13756
|
y: n,
|
|
13316
13757
|
className: "select-chart__ylabel",
|
|
13317
13758
|
dominantBaseline: "middle",
|
|
@@ -13326,8 +13767,8 @@ function ql({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
13326
13767
|
}
|
|
13327
13768
|
//#endregion
|
|
13328
13769
|
//#region src/SelectWaterfall.tsx
|
|
13329
|
-
function
|
|
13330
|
-
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) => {
|
|
13331
13772
|
if (e.total) return u = e.value, {
|
|
13332
13773
|
...e,
|
|
13333
13774
|
start: 0,
|
|
@@ -13339,7 +13780,7 @@ function Jl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13339
13780
|
start: t,
|
|
13340
13781
|
end: u
|
|
13341
13782
|
};
|
|
13342
|
-
}), 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 = {
|
|
13343
13784
|
total: "var(--select-chart-1)",
|
|
13344
13785
|
inc: "var(--select-chart-4)",
|
|
13345
13786
|
dec: "var(--select-chart-3)"
|
|
@@ -13373,7 +13814,7 @@ function Jl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13373
13814
|
stopOpacity: .62
|
|
13374
13815
|
})]
|
|
13375
13816
|
}, e)) }),
|
|
13376
|
-
|
|
13817
|
+
Ml(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13377
13818
|
x1: p.left,
|
|
13378
13819
|
x2: o - p.right,
|
|
13379
13820
|
y1: S(e),
|
|
@@ -13441,7 +13882,7 @@ function Jl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13441
13882
|
}
|
|
13442
13883
|
//#endregion
|
|
13443
13884
|
//#region src/SelectBullet.tsx
|
|
13444
|
-
var
|
|
13885
|
+
var ku = (e) => Math.max(0, Math.min(100, e)), Au = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
13445
13886
|
return /* @__PURE__ */ h("div", {
|
|
13446
13887
|
ref: i,
|
|
13447
13888
|
...r,
|
|
@@ -13479,12 +13920,12 @@ var Yl = (e) => Math.max(0, Math.min(100, e)), Xl = r(function({ items: e, forma
|
|
|
13479
13920
|
children: [/* @__PURE__ */ h("span", {
|
|
13480
13921
|
className: "select-bullet__fill",
|
|
13481
13922
|
style: {
|
|
13482
|
-
width: `${
|
|
13923
|
+
width: `${ku(e.value / i * 100)}%`,
|
|
13483
13924
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
13484
13925
|
}
|
|
13485
13926
|
}), /* @__PURE__ */ h("span", {
|
|
13486
13927
|
className: "select-bullet__tick",
|
|
13487
|
-
style: { left: `${
|
|
13928
|
+
style: { left: `${ku(e.target / i * 100)}%` }
|
|
13488
13929
|
})]
|
|
13489
13930
|
})]
|
|
13490
13931
|
}, `${e.label}-${n}`);
|
|
@@ -13493,7 +13934,7 @@ var Yl = (e) => Math.max(0, Math.min(100, e)), Xl = r(function({ items: e, forma
|
|
|
13493
13934
|
});
|
|
13494
13935
|
//#endregion
|
|
13495
13936
|
//#region src/SelectTreemap.tsx
|
|
13496
|
-
function
|
|
13937
|
+
function ju(e, t, n) {
|
|
13497
13938
|
let r = [], i = (e, t) => {
|
|
13498
13939
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
13499
13940
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -13544,8 +13985,8 @@ function Zl(e, t, n) {
|
|
|
13544
13985
|
};
|
|
13545
13986
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
13546
13987
|
}
|
|
13547
|
-
function
|
|
13548
|
-
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) : [];
|
|
13549
13990
|
return /* @__PURE__ */ g("div", {
|
|
13550
13991
|
...i,
|
|
13551
13992
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -13615,8 +14056,8 @@ function Ql({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13615
14056
|
}
|
|
13616
14057
|
//#endregion
|
|
13617
14058
|
//#region src/SelectScatter.tsx
|
|
13618
|
-
function
|
|
13619
|
-
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;
|
|
13620
14061
|
return /* @__PURE__ */ g("div", {
|
|
13621
14062
|
...c,
|
|
13622
14063
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -13626,7 +14067,7 @@ function $l({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
13626
14067
|
height: t,
|
|
13627
14068
|
className: "select-chart",
|
|
13628
14069
|
children: [
|
|
13629
|
-
|
|
14070
|
+
Ml(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13630
14071
|
x1: v.left,
|
|
13631
14072
|
x2: u - v.right,
|
|
13632
14073
|
y1: C(e),
|
|
@@ -13640,7 +14081,7 @@ function $l({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
13640
14081
|
textAnchor: "end",
|
|
13641
14082
|
children: r(e)
|
|
13642
14083
|
})] }, `y${t}`)),
|
|
13643
|
-
|
|
14084
|
+
Ml(p).map((e, r, i) => /* @__PURE__ */ h("text", {
|
|
13644
14085
|
x: S(e),
|
|
13645
14086
|
y: t - v.bottom + 16,
|
|
13646
14087
|
className: "select-chart__xlabel",
|
|
@@ -13687,8 +14128,8 @@ function $l({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
13687
14128
|
}
|
|
13688
14129
|
//#endregion
|
|
13689
14130
|
//#region src/SelectRadar.tsx
|
|
13690
|
-
var
|
|
13691
|
-
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";
|
|
13692
14133
|
return /* @__PURE__ */ g("div", {
|
|
13693
14134
|
ref: u,
|
|
13694
14135
|
...l,
|
|
@@ -13797,8 +14238,8 @@ var eu = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
13797
14238
|
});
|
|
13798
14239
|
//#endregion
|
|
13799
14240
|
//#region src/SelectSankey.tsx
|
|
13800
|
-
function
|
|
13801
|
-
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 = [];
|
|
13802
14243
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
13803
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) => {
|
|
13804
14245
|
let r = /* @__PURE__ */ new Map(), a = 6;
|
|
@@ -13882,8 +14323,8 @@ function tu({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
13882
14323
|
}
|
|
13883
14324
|
//#endregion
|
|
13884
14325
|
//#region src/SelectCandlestick.tsx
|
|
13885
|
-
function
|
|
13886
|
-
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);
|
|
13887
14328
|
return /* @__PURE__ */ g("div", {
|
|
13888
14329
|
...o,
|
|
13889
14330
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -13972,8 +14413,8 @@ function nu({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
13972
14413
|
}
|
|
13973
14414
|
//#endregion
|
|
13974
14415
|
//#region src/SelectBoxPlot.tsx
|
|
13975
|
-
function
|
|
13976
|
-
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);
|
|
13977
14418
|
return /* @__PURE__ */ g("div", {
|
|
13978
14419
|
...i,
|
|
13979
14420
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -13982,7 +14423,7 @@ function ru({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
13982
14423
|
width: o,
|
|
13983
14424
|
height: t,
|
|
13984
14425
|
className: "select-chart",
|
|
13985
|
-
children: [
|
|
14426
|
+
children: [Ml(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13986
14427
|
x1: c.left,
|
|
13987
14428
|
x2: o - c.right,
|
|
13988
14429
|
y1: p(e),
|
|
@@ -14092,8 +14533,8 @@ function ru({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
14092
14533
|
}
|
|
14093
14534
|
//#endregion
|
|
14094
14535
|
//#region src/SelectRangeBar.tsx
|
|
14095
|
-
function
|
|
14096
|
-
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);
|
|
14097
14538
|
return /* @__PURE__ */ g("div", {
|
|
14098
14539
|
...c,
|
|
14099
14540
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -14173,7 +14614,7 @@ function iu({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
14173
14614
|
}
|
|
14174
14615
|
//#endregion
|
|
14175
14616
|
//#region src/SelectCalendarHeatmap.tsx
|
|
14176
|
-
var
|
|
14617
|
+
var zu = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
14177
14618
|
"Seg",
|
|
14178
14619
|
"",
|
|
14179
14620
|
"Qua",
|
|
@@ -14246,8 +14687,8 @@ var au = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
14246
14687
|
]
|
|
14247
14688
|
}), /* @__PURE__ */ h($, { tip: p.tip })]
|
|
14248
14689
|
});
|
|
14249
|
-
}),
|
|
14250
|
-
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;
|
|
14251
14692
|
return /* @__PURE__ */ g("div", {
|
|
14252
14693
|
ref: s,
|
|
14253
14694
|
...o,
|
|
@@ -14277,7 +14718,7 @@ var au = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
14277
14718
|
}, t)), e.map((e, t) => {
|
|
14278
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);
|
|
14279
14720
|
return /* @__PURE__ */ h("path", {
|
|
14280
|
-
d:
|
|
14721
|
+
d: zl(l, u, o, 0, r, i),
|
|
14281
14722
|
fill: a,
|
|
14282
14723
|
fillOpacity: .8,
|
|
14283
14724
|
className: "select-chart__seg",
|
|
@@ -14320,13 +14761,13 @@ var au = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
14320
14761
|
});
|
|
14321
14762
|
//#endregion
|
|
14322
14763
|
//#region src/SelectSlope.tsx
|
|
14323
|
-
function
|
|
14324
|
-
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 = {
|
|
14325
14766
|
top: 24,
|
|
14326
14767
|
right: 64,
|
|
14327
14768
|
bottom: 12,
|
|
14328
14769
|
left: 132
|
|
14329
|
-
}, 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;
|
|
14330
14771
|
return /* @__PURE__ */ g("div", {
|
|
14331
14772
|
...o,
|
|
14332
14773
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -14442,8 +14883,8 @@ function su({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
14442
14883
|
}
|
|
14443
14884
|
//#endregion
|
|
14444
14885
|
//#region src/SelectDumbbell.tsx
|
|
14445
|
-
function
|
|
14446
|
-
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;
|
|
14447
14888
|
return /* @__PURE__ */ g("div", {
|
|
14448
14889
|
...s,
|
|
14449
14890
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -14452,7 +14893,7 @@ function cu({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
14452
14893
|
width: u,
|
|
14453
14894
|
height: c,
|
|
14454
14895
|
className: "select-chart",
|
|
14455
|
-
children: [
|
|
14896
|
+
children: [Ml(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
14456
14897
|
x1: x(e),
|
|
14457
14898
|
x2: x(e),
|
|
14458
14899
|
y1: 6,
|
|
@@ -14535,8 +14976,8 @@ function cu({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
14535
14976
|
}
|
|
14536
14977
|
//#endregion
|
|
14537
14978
|
//#region src/SelectMarimekko.tsx
|
|
14538
|
-
function
|
|
14539
|
-
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 = {
|
|
14540
14981
|
top: 6,
|
|
14541
14982
|
right: 6,
|
|
14542
14983
|
bottom: 24,
|
|
@@ -14615,7 +15056,7 @@ function lu({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
14615
15056
|
}
|
|
14616
15057
|
//#endregion
|
|
14617
15058
|
//#region src/SelectGaugeBands.tsx
|
|
14618
|
-
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) {
|
|
14619
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) => {
|
|
14620
15061
|
let t = Math.PI + e * Math.PI;
|
|
14621
15062
|
return [p + f * Math.cos(t), m + f * Math.sin(t)];
|
|
@@ -14687,8 +15128,8 @@ var uu = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
14687
15128
|
});
|
|
14688
15129
|
//#endregion
|
|
14689
15130
|
//#region src/SelectStreamGraph.tsx
|
|
14690
|
-
function
|
|
14691
|
-
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, _ = {
|
|
14692
15133
|
top: 14,
|
|
14693
15134
|
right: 14,
|
|
14694
15135
|
bottom: 28,
|
|
@@ -14731,7 +15172,7 @@ function du({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
14731
15172
|
})]
|
|
14732
15173
|
}, t)) }),
|
|
14733
15174
|
w.map((e, t) => /* @__PURE__ */ h("path", {
|
|
14734
|
-
d:
|
|
15175
|
+
d: Ll(e.upper, e.lower),
|
|
14735
15176
|
fill: `url(#${u}-st${t})`,
|
|
14736
15177
|
className: "select-chart__area"
|
|
14737
15178
|
}, t)),
|
|
@@ -14778,7 +15219,7 @@ function du({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
14778
15219
|
}
|
|
14779
15220
|
//#endregion
|
|
14780
15221
|
//#region src/SelectSunburst.tsx
|
|
14781
|
-
var
|
|
15222
|
+
var Ku = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
14782
15223
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
14783
15224
|
var t;
|
|
14784
15225
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -14804,7 +15245,7 @@ var fu = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
14804
15245
|
_ += r;
|
|
14805
15246
|
let a = _ / m * 360, o = e.color ?? X(t), v = i;
|
|
14806
15247
|
return /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("path", {
|
|
14807
|
-
d:
|
|
15248
|
+
d: zl(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
14808
15249
|
fill: o,
|
|
14809
15250
|
className: "select-chart__seg",
|
|
14810
15251
|
onMouseEnter: () => s.show({
|
|
@@ -14824,7 +15265,7 @@ var fu = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
14824
15265
|
v += t.value / m * 360;
|
|
14825
15266
|
let f = v, p = t.color ?? o, g = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
14826
15267
|
return /* @__PURE__ */ h("path", {
|
|
14827
|
-
d:
|
|
15268
|
+
d: zl(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
14828
15269
|
fill: p,
|
|
14829
15270
|
fillOpacity: g,
|
|
14830
15271
|
className: "select-chart__seg",
|
|
@@ -14871,8 +15312,8 @@ var fu = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
14871
15312
|
});
|
|
14872
15313
|
//#endregion
|
|
14873
15314
|
//#region src/SelectViolin.tsx
|
|
14874
|
-
function
|
|
14875
|
-
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));
|
|
14876
15317
|
return /* @__PURE__ */ g("div", {
|
|
14877
15318
|
...i,
|
|
14878
15319
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -14881,7 +15322,7 @@ function pu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
14881
15322
|
width: o,
|
|
14882
15323
|
height: t,
|
|
14883
15324
|
className: "select-chart",
|
|
14884
|
-
children: [
|
|
15325
|
+
children: [Ml(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
14885
15326
|
x1: c.left,
|
|
14886
15327
|
x2: o - c.right,
|
|
14887
15328
|
y1: p(e),
|
|
@@ -14898,7 +15339,7 @@ function pu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
14898
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 = [];
|
|
14899
15340
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
14900
15341
|
for (let e = 0; e < o; e++) m.push([i - d(e), l(e)]);
|
|
14901
|
-
let b = `${
|
|
15342
|
+
let b = `${Pl(f)} ${Pl(m).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
14902
15343
|
return /* @__PURE__ */ g("g", { children: [
|
|
14903
15344
|
/* @__PURE__ */ h("path", {
|
|
14904
15345
|
d: b,
|
|
@@ -14959,7 +15400,7 @@ function pu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
14959
15400
|
}
|
|
14960
15401
|
//#endregion
|
|
14961
15402
|
//#region src/SelectChord.tsx
|
|
14962
|
-
var
|
|
15403
|
+
var Ju = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
14963
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;
|
|
14964
15405
|
for (let e = 0; e < l; e++) {
|
|
14965
15406
|
let t = b, n = b + m[e] * v;
|
|
@@ -15026,7 +15467,7 @@ var mu = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
15026
15467
|
}, n)), y.map((e, n) => {
|
|
15027
15468
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
15028
15469
|
return /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("path", {
|
|
15029
|
-
d:
|
|
15470
|
+
d: zl(u, d, f, p, w(e.a0), w(e.a1)),
|
|
15030
15471
|
fill: X(n),
|
|
15031
15472
|
className: "select-chord__arc"
|
|
15032
15473
|
}), /* @__PURE__ */ h("text", {
|
|
@@ -15044,8 +15485,8 @@ var mu = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
15044
15485
|
});
|
|
15045
15486
|
//#endregion
|
|
15046
15487
|
//#region src/SelectHexbin.tsx
|
|
15047
|
-
function
|
|
15048
|
-
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) => {
|
|
15049
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);
|
|
15050
15491
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
15051
15492
|
}, C = (e, t) => [b * x * (e + t / 2), 3 / 2 * b * t], w = (e, t) => {
|
|
@@ -15096,7 +15537,7 @@ function hu({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
15096
15537
|
}
|
|
15097
15538
|
//#endregion
|
|
15098
15539
|
//#region src/SelectWordCloud.tsx
|
|
15099
|
-
var
|
|
15540
|
+
var Xu = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
15100
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);
|
|
15101
15542
|
return /* @__PURE__ */ h("div", {
|
|
15102
15543
|
ref: a,
|
|
@@ -15113,7 +15554,7 @@ var gu = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
15113
15554
|
children: e.text
|
|
15114
15555
|
}, `${e.text}-${t}`))
|
|
15115
15556
|
});
|
|
15116
|
-
}),
|
|
15557
|
+
}), Zu = [
|
|
15117
15558
|
[
|
|
15118
15559
|
-59.6,
|
|
15119
15560
|
-80,
|
|
@@ -25508,24 +25949,24 @@ var gu = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
25508
25949
|
-27.1,
|
|
25509
25950
|
83.5
|
|
25510
25951
|
]
|
|
25511
|
-
],
|
|
25512
|
-
function
|
|
25513
|
-
let n = e *
|
|
25952
|
+
], Qu = Math.PI / 180;
|
|
25953
|
+
function $u(e, t) {
|
|
25954
|
+
let n = e * Qu, r = t * Qu;
|
|
25514
25955
|
return [
|
|
25515
25956
|
Math.cos(n) * Math.sin(r),
|
|
25516
25957
|
Math.sin(n),
|
|
25517
25958
|
Math.cos(n) * Math.cos(r)
|
|
25518
25959
|
];
|
|
25519
25960
|
}
|
|
25520
|
-
function
|
|
25521
|
-
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;
|
|
25522
25963
|
return [
|
|
25523
25964
|
o,
|
|
25524
25965
|
t * Math.cos(c) - s * Math.sin(c),
|
|
25525
25966
|
t * Math.sin(c) + s * Math.cos(c)
|
|
25526
25967
|
];
|
|
25527
25968
|
}
|
|
25528
|
-
function
|
|
25969
|
+
function td(e, t, n) {
|
|
25529
25970
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
25530
25971
|
r = Math.max(-1, Math.min(1, r));
|
|
25531
25972
|
let i = Math.acos(r);
|
|
@@ -25537,9 +25978,9 @@ function xu(e, t, n) {
|
|
|
25537
25978
|
e[2] * o + t[2] * s
|
|
25538
25979
|
];
|
|
25539
25980
|
}
|
|
25540
|
-
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) {
|
|
25541
25982
|
var S, C;
|
|
25542
|
-
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({
|
|
25543
25984
|
lng: -O,
|
|
25544
25985
|
lat: r
|
|
25545
25986
|
}), j = d({
|
|
@@ -25598,7 +26039,7 @@ var Su = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25598
26039
|
var t, n;
|
|
25599
26040
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ee(!1), H());
|
|
25600
26041
|
}, G = (D / 2 - 6) * M.current, K = D / 2, q = D / 2, J = (e) => {
|
|
25601
|
-
let t =
|
|
26042
|
+
let t = ed(e, A.current.lng, A.current.lat);
|
|
25602
26043
|
return {
|
|
25603
26044
|
x: K + G * t[0],
|
|
25604
26045
|
y: q - G * t[1],
|
|
@@ -25608,25 +26049,25 @@ var Su = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25608
26049
|
let e = [];
|
|
25609
26050
|
for (let t = -180; t < 180; t += 30) {
|
|
25610
26051
|
let n = [];
|
|
25611
|
-
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));
|
|
25612
26053
|
e.push(n);
|
|
25613
26054
|
}
|
|
25614
26055
|
for (let t = -60; t <= 60; t += 30) {
|
|
25615
26056
|
let n = [];
|
|
25616
|
-
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));
|
|
25617
26058
|
e.push(n);
|
|
25618
26059
|
}
|
|
25619
26060
|
return e;
|
|
25620
|
-
}, []), oe = u(() =>
|
|
26061
|
+
}, []), oe = u(() => Zu.map((e) => {
|
|
25621
26062
|
let t = [];
|
|
25622
|
-
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]));
|
|
25623
26064
|
return t;
|
|
25624
26065
|
}), []), Y = (e) => ({
|
|
25625
26066
|
x: K + G * e[0],
|
|
25626
26067
|
y: q - G * e[1]
|
|
25627
26068
|
}), se = "", ce = "";
|
|
25628
26069
|
if (m) for (let e of oe) {
|
|
25629
|
-
let t = e.map((e) =>
|
|
26070
|
+
let t = e.map((e) => ed(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
25630
26071
|
for (let e of t) if (e[2] > 0) {
|
|
25631
26072
|
let t = Y(e);
|
|
25632
26073
|
ce += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -25674,7 +26115,7 @@ var Su = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25674
26115
|
}
|
|
25675
26116
|
return t;
|
|
25676
26117
|
}, ue = Math.max(1, ...e.map((e) => e.value ?? 0)), de = e.map((e, t) => {
|
|
25677
|
-
let n = J(
|
|
26118
|
+
let n = J($u(e.lat, e.lng));
|
|
25678
26119
|
return {
|
|
25679
26120
|
...e,
|
|
25680
26121
|
i: t,
|
|
@@ -25684,20 +26125,20 @@ var Su = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25684
26125
|
col: e.color ?? c
|
|
25685
26126
|
};
|
|
25686
26127
|
}), fe = te == null ? null : e[te], pe = t.map((e, t) => {
|
|
25687
|
-
let n =
|
|
26128
|
+
let n = $u(e.from.lat, e.from.lng), r = $u(e.to.lat, e.to.lng), i = "", a = !1;
|
|
25688
26129
|
for (let e = 0; e <= 40; e++) {
|
|
25689
|
-
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([
|
|
25690
26131
|
o[0] * s,
|
|
25691
26132
|
o[1] * s,
|
|
25692
26133
|
o[2] * s
|
|
25693
26134
|
]);
|
|
25694
26135
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
25695
26136
|
}
|
|
25696
|
-
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([
|
|
25697
26138
|
s[0] * l,
|
|
25698
26139
|
s[1] * l,
|
|
25699
26140
|
s[2] * l
|
|
25700
|
-
]), f = fe != null && (
|
|
26141
|
+
]), f = fe != null && (nd(e.from, fe) || nd(e.to, fe));
|
|
25701
26142
|
return {
|
|
25702
26143
|
d: i,
|
|
25703
26144
|
col: e.color ?? c,
|
|
@@ -25971,8 +26412,8 @@ var Su = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
25971
26412
|
});
|
|
25972
26413
|
//#endregion
|
|
25973
26414
|
//#region src/SelectTicker.tsx
|
|
25974
|
-
function
|
|
25975
|
-
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);
|
|
25976
26417
|
o(() => {
|
|
25977
26418
|
var e, n;
|
|
25978
26419
|
let r = a.current;
|
|
@@ -26033,12 +26474,12 @@ function wu({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
26033
26474
|
}
|
|
26034
26475
|
//#endregion
|
|
26035
26476
|
//#region src/SelectPareto.tsx
|
|
26036
|
-
function
|
|
26477
|
+
function ad({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
26037
26478
|
var a;
|
|
26038
|
-
let { ref: o, width: c } =
|
|
26039
|
-
...
|
|
26479
|
+
let { ref: o, width: c } = kl(t), l = Q(), u = s(), [d, p] = f(null), m = {
|
|
26480
|
+
...Vl,
|
|
26040
26481
|
right: 44
|
|
26041
|
-
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - m.left - m.right), C = t - m.top - m.bottom, w =
|
|
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);
|
|
26042
26483
|
return /* @__PURE__ */ g("div", {
|
|
26043
26484
|
...i,
|
|
26044
26485
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -26067,7 +26508,7 @@ function Tu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
26067
26508
|
stopOpacity: .55
|
|
26068
26509
|
})]
|
|
26069
26510
|
}) }),
|
|
26070
|
-
|
|
26511
|
+
Ml(w).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
26071
26512
|
x1: m.left,
|
|
26072
26513
|
x2: c - m.right,
|
|
26073
26514
|
y1: O(e),
|
|
@@ -26131,7 +26572,7 @@ function Tu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
26131
26572
|
}, t);
|
|
26132
26573
|
}),
|
|
26133
26574
|
/* @__PURE__ */ h("path", {
|
|
26134
|
-
d:
|
|
26575
|
+
d: Fl(j),
|
|
26135
26576
|
fill: "none",
|
|
26136
26577
|
stroke: N,
|
|
26137
26578
|
strokeWidth: 2,
|
|
@@ -26159,7 +26600,7 @@ function Tu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
26159
26600
|
}
|
|
26160
26601
|
//#endregion
|
|
26161
26602
|
//#region src/SelectWaffle.tsx
|
|
26162
|
-
var
|
|
26603
|
+
var od = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
26163
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) => ({
|
|
26164
26605
|
i: t,
|
|
26165
26606
|
frac: e - u[t]
|
|
@@ -26208,8 +26649,8 @@ var Eu = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
26208
26649
|
});
|
|
26209
26650
|
//#endregion
|
|
26210
26651
|
//#region src/SelectPyramid.tsx
|
|
26211
|
-
function
|
|
26212
|
-
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);
|
|
26213
26654
|
return /* @__PURE__ */ g("div", {
|
|
26214
26655
|
...l,
|
|
26215
26656
|
className: `select-chart-wrap${c ? " " + c : ""}`,
|
|
@@ -26316,8 +26757,8 @@ function Du({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
26316
26757
|
}
|
|
26317
26758
|
//#endregion
|
|
26318
26759
|
//#region src/SelectBump.tsx
|
|
26319
|
-
function
|
|
26320
|
-
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 = {
|
|
26321
26762
|
top: 16,
|
|
26322
26763
|
right: 78,
|
|
26323
26764
|
bottom: 28,
|
|
@@ -26353,7 +26794,7 @@ function Ou({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
26353
26794
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
26354
26795
|
children: [
|
|
26355
26796
|
/* @__PURE__ */ h("path", {
|
|
26356
|
-
d:
|
|
26797
|
+
d: Fl(a),
|
|
26357
26798
|
fill: "none",
|
|
26358
26799
|
stroke: i,
|
|
26359
26800
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -26401,8 +26842,8 @@ function Ou({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
26401
26842
|
}
|
|
26402
26843
|
//#endregion
|
|
26403
26844
|
//#region src/SelectParallel.tsx
|
|
26404
|
-
function
|
|
26405
|
-
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 = {
|
|
26406
26847
|
top: 30,
|
|
26407
26848
|
right: 28,
|
|
26408
26849
|
bottom: 26,
|
|
@@ -26493,25 +26934,25 @@ function ku({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
26493
26934
|
}
|
|
26494
26935
|
//#endregion
|
|
26495
26936
|
//#region src/SelectIcicle.tsx
|
|
26496
|
-
function
|
|
26497
|
-
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;
|
|
26498
26939
|
}
|
|
26499
|
-
function
|
|
26500
|
-
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)));
|
|
26501
26942
|
}
|
|
26502
|
-
function
|
|
26503
|
-
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) => {
|
|
26504
26945
|
if (p.push({
|
|
26505
26946
|
node: e,
|
|
26506
26947
|
x0: t,
|
|
26507
26948
|
x1: n,
|
|
26508
26949
|
depth: r,
|
|
26509
26950
|
color: e.color ?? X(i),
|
|
26510
|
-
value:
|
|
26951
|
+
value: ud(e)
|
|
26511
26952
|
}), e.children && e.children.length) {
|
|
26512
|
-
let a = e.children.reduce((e, t) => e +
|
|
26953
|
+
let a = e.children.reduce((e, t) => e + ud(t), 0) || 1, o = t;
|
|
26513
26954
|
e.children.forEach((e, s) => {
|
|
26514
|
-
let c = (n - t) *
|
|
26955
|
+
let c = (n - t) * ud(e) / a;
|
|
26515
26956
|
m(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
26516
26957
|
});
|
|
26517
26958
|
}
|
|
@@ -26572,8 +27013,8 @@ function Mu({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
26572
27013
|
}
|
|
26573
27014
|
//#endregion
|
|
26574
27015
|
//#region src/SelectTree.tsx
|
|
26575
|
-
function
|
|
26576
|
-
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 = {
|
|
26577
27018
|
top: 14,
|
|
26578
27019
|
right: 96,
|
|
26579
27020
|
bottom: 14,
|
|
@@ -26650,7 +27091,7 @@ function Nu({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
26650
27091
|
}
|
|
26651
27092
|
//#endregion
|
|
26652
27093
|
//#region src/SelectVenn.tsx
|
|
26653
|
-
var
|
|
27094
|
+
var md = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
26654
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]] : [
|
|
26655
27096
|
[o, s - l * .5],
|
|
26656
27097
|
[o - l * .5, s + l * .36],
|
|
@@ -26715,7 +27156,7 @@ var Pu = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
26715
27156
|
}, t))
|
|
26716
27157
|
})]
|
|
26717
27158
|
});
|
|
26718
|
-
}),
|
|
27159
|
+
}), hd = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
26719
27160
|
let o = Q(), [s, c] = f(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
26720
27161
|
d: e,
|
|
26721
27162
|
i: t,
|
|
@@ -26818,8 +27259,8 @@ var Pu = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
26818
27259
|
});
|
|
26819
27260
|
//#endregion
|
|
26820
27261
|
//#region src/SelectNetwork.tsx
|
|
26821
|
-
function
|
|
26822
|
-
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(() => {
|
|
26823
27264
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
26824
27265
|
if (!a) return o;
|
|
26825
27266
|
let c = e.map((e, t) => ({
|
|
@@ -26932,8 +27373,8 @@ function Iu({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
26932
27373
|
}
|
|
26933
27374
|
//#endregion
|
|
26934
27375
|
//#region src/SelectSearchMenu.tsx
|
|
26935
|
-
var
|
|
26936
|
-
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 }) {
|
|
26937
27378
|
let f = d(null);
|
|
26938
27379
|
return o(() => {
|
|
26939
27380
|
if (!s) return;
|
|
@@ -26949,7 +27390,7 @@ function Ru({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
26949
27390
|
onKeyDown: (e) => {
|
|
26950
27391
|
let t = f.current;
|
|
26951
27392
|
if (!t) return;
|
|
26952
|
-
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);
|
|
26953
27394
|
if (e.key === "ArrowDown") {
|
|
26954
27395
|
var a;
|
|
26955
27396
|
if (r.length === 0) return;
|
|
@@ -26980,7 +27421,7 @@ function Ru({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
26980
27421
|
className: "select-combobox__empty",
|
|
26981
27422
|
role: "status",
|
|
26982
27423
|
children: r
|
|
26983
|
-
}) : /* @__PURE__ */ h(
|
|
27424
|
+
}) : /* @__PURE__ */ h(yd, {
|
|
26984
27425
|
maxHeight: l,
|
|
26985
27426
|
children: u
|
|
26986
27427
|
}),
|
|
@@ -26991,7 +27432,7 @@ function Ru({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
26991
27432
|
]
|
|
26992
27433
|
});
|
|
26993
27434
|
}
|
|
26994
|
-
function
|
|
27435
|
+
function yd({ children: e, maxHeight: t }) {
|
|
26995
27436
|
let n = Wn({
|
|
26996
27437
|
selector: ".select-combobox__option",
|
|
26997
27438
|
y: 6,
|
|
@@ -27006,7 +27447,7 @@ function zu({ children: e, maxHeight: t }) {
|
|
|
27006
27447
|
children: e
|
|
27007
27448
|
});
|
|
27008
27449
|
}
|
|
27009
|
-
function
|
|
27450
|
+
function bd({ label: e, children: t }) {
|
|
27010
27451
|
return (Array.isArray(t) ? t.some((e) => e != null && e !== !1) : t != null && t !== !1) ? /* @__PURE__ */ g("div", {
|
|
27011
27452
|
role: "group",
|
|
27012
27453
|
className: "select-searchmenu__group",
|
|
@@ -27018,7 +27459,7 @@ function Bu({ label: e, children: t }) {
|
|
|
27018
27459
|
}), t]
|
|
27019
27460
|
}) : null;
|
|
27020
27461
|
}
|
|
27021
|
-
function
|
|
27462
|
+
function xd({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i = !1, onSelect: a }) {
|
|
27022
27463
|
return /* @__PURE__ */ g("button", {
|
|
27023
27464
|
type: "button",
|
|
27024
27465
|
role: "option",
|
|
@@ -27051,14 +27492,14 @@ function Vu({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i
|
|
|
27051
27492
|
}
|
|
27052
27493
|
//#endregion
|
|
27053
27494
|
//#region src/SelectKbd.tsx
|
|
27054
|
-
var
|
|
27495
|
+
var Sd = r(function({ children: e, className: t, ...n }, r) {
|
|
27055
27496
|
return /* @__PURE__ */ h("kbd", {
|
|
27056
27497
|
ref: r,
|
|
27057
27498
|
...n,
|
|
27058
27499
|
className: `select-kbd${t ? " " + t : ""}`,
|
|
27059
27500
|
children: e
|
|
27060
27501
|
});
|
|
27061
|
-
}),
|
|
27502
|
+
}), Cd = [
|
|
27062
27503
|
{
|
|
27063
27504
|
value: "light",
|
|
27064
27505
|
label: "Claro",
|
|
@@ -27075,15 +27516,15 @@ var Hu = r(function({ children: e, className: t, ...n }, r) {
|
|
|
27075
27516
|
icon: /* @__PURE__ */ h(Oe, {})
|
|
27076
27517
|
}
|
|
27077
27518
|
];
|
|
27078
|
-
function
|
|
27519
|
+
function wd(e) {
|
|
27079
27520
|
if (e === "system") {
|
|
27080
27521
|
var t, n;
|
|
27081
27522
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
27082
27523
|
}
|
|
27083
27524
|
return e;
|
|
27084
27525
|
}
|
|
27085
|
-
function
|
|
27086
|
-
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];
|
|
27087
27528
|
return o(() => {
|
|
27088
27529
|
if (!i) return;
|
|
27089
27530
|
let e = (e) => {
|
|
@@ -27103,7 +27544,7 @@ function Gu({ value: e, onChange: t, className: n, ...r }) {
|
|
|
27103
27544
|
})
|
|
27104
27545
|
}), i && /* @__PURE__ */ h("div", {
|
|
27105
27546
|
className: "select-themeswitcher__popover",
|
|
27106
|
-
children: /* @__PURE__ */ h(Xa, { children:
|
|
27547
|
+
children: /* @__PURE__ */ h(Xa, { children: Cd.map((n) => /* @__PURE__ */ h(Qa, {
|
|
27107
27548
|
icon: n.icon,
|
|
27108
27549
|
active: n.value === e,
|
|
27109
27550
|
trailing: n.value === e ? /* @__PURE__ */ h(Be, {}) : null,
|
|
@@ -27117,8 +27558,8 @@ function Gu({ value: e, onChange: t, className: n, ...r }) {
|
|
|
27117
27558
|
}
|
|
27118
27559
|
//#endregion
|
|
27119
27560
|
//#region src/SelectDetail.tsx
|
|
27120
|
-
var
|
|
27121
|
-
function
|
|
27561
|
+
var Ed = n(!1);
|
|
27562
|
+
function Dd({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 }) {
|
|
27122
27563
|
let i = Wn({
|
|
27123
27564
|
selector: ".select-detail",
|
|
27124
27565
|
y: 8,
|
|
@@ -27126,7 +27567,7 @@ function qu({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
27126
27567
|
stagger: .05,
|
|
27127
27568
|
scroll: !0
|
|
27128
27569
|
});
|
|
27129
|
-
return /* @__PURE__ */ h(
|
|
27570
|
+
return /* @__PURE__ */ h(Ed.Provider, {
|
|
27130
27571
|
value: r,
|
|
27131
27572
|
children: /* @__PURE__ */ h("div", {
|
|
27132
27573
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}${n ? " select-detaillist--compact" : ""}`,
|
|
@@ -27135,8 +27576,8 @@ function qu({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
27135
27576
|
})
|
|
27136
27577
|
});
|
|
27137
27578
|
}
|
|
27138
|
-
var
|
|
27139
|
-
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;
|
|
27140
27581
|
return /* @__PURE__ */ g("div", {
|
|
27141
27582
|
ref: c,
|
|
27142
27583
|
...s,
|
|
@@ -27156,7 +27597,7 @@ var Ju = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
27156
27597
|
})
|
|
27157
27598
|
]
|
|
27158
27599
|
});
|
|
27159
|
-
}),
|
|
27600
|
+
}), kd = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", connected: i = !1, className: a, ...o }, s) {
|
|
27160
27601
|
let c = r === "vertical";
|
|
27161
27602
|
return /* @__PURE__ */ h("ol", {
|
|
27162
27603
|
ref: s,
|
|
@@ -27199,7 +27640,7 @@ var Ju = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
27199
27640
|
});
|
|
27200
27641
|
//#endregion
|
|
27201
27642
|
//#region src/SelectSetupGuide.tsx
|
|
27202
|
-
function
|
|
27643
|
+
function Ad({ status: e }) {
|
|
27203
27644
|
return /* @__PURE__ */ h("span", {
|
|
27204
27645
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
27205
27646
|
"aria-hidden": "true",
|
|
@@ -27218,13 +27659,13 @@ function Xu({ status: e }) {
|
|
|
27218
27659
|
})
|
|
27219
27660
|
});
|
|
27220
27661
|
}
|
|
27221
|
-
var
|
|
27662
|
+
var jd = {
|
|
27222
27663
|
done: "feito",
|
|
27223
27664
|
todo: "a fazer",
|
|
27224
27665
|
next: "próximo passo",
|
|
27225
27666
|
skipped: "pulado",
|
|
27226
27667
|
waiting: "aguardando"
|
|
27227
|
-
},
|
|
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) {
|
|
27228
27669
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0, f = Qr();
|
|
27229
27670
|
return /* @__PURE__ */ g("section", {
|
|
27230
27671
|
ref: u,
|
|
@@ -27287,14 +27728,14 @@ var Zu = {
|
|
|
27287
27728
|
children: e.steps.map((e) => /* @__PURE__ */ g("li", {
|
|
27288
27729
|
className: `select-setupguide__step is-${e.status}`,
|
|
27289
27730
|
children: [
|
|
27290
|
-
/* @__PURE__ */ h(
|
|
27731
|
+
/* @__PURE__ */ h(Ad, { status: e.status }),
|
|
27291
27732
|
/* @__PURE__ */ g("span", {
|
|
27292
27733
|
className: "select-setupguide__text",
|
|
27293
27734
|
children: [/* @__PURE__ */ g("span", {
|
|
27294
27735
|
className: "select-setupguide__steptitle",
|
|
27295
27736
|
children: [e.title, /* @__PURE__ */ g("span", {
|
|
27296
27737
|
className: "select-setupguide__sr",
|
|
27297
|
-
children: [" — ",
|
|
27738
|
+
children: [" — ", jd[e.status]]
|
|
27298
27739
|
})]
|
|
27299
27740
|
}), e.description && /* @__PURE__ */ h("span", {
|
|
27300
27741
|
className: "select-setupguide__stepdesc",
|
|
@@ -27313,7 +27754,7 @@ var Zu = {
|
|
|
27313
27754
|
})]
|
|
27314
27755
|
});
|
|
27315
27756
|
});
|
|
27316
|
-
function
|
|
27757
|
+
function Nd({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
27317
27758
|
return /* @__PURE__ */ g("div", {
|
|
27318
27759
|
className: "select-setupnext",
|
|
27319
27760
|
children: [
|
|
@@ -27338,37 +27779,37 @@ function $u({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
27338
27779
|
}
|
|
27339
27780
|
//#endregion
|
|
27340
27781
|
//#region src/SelectTour.tsx
|
|
27341
|
-
var
|
|
27342
|
-
function
|
|
27782
|
+
var Pd = 6, Fd = 12;
|
|
27783
|
+
function Id(e) {
|
|
27343
27784
|
let t = document.querySelector(e);
|
|
27344
27785
|
if (!t) return null;
|
|
27345
27786
|
let n = t.getBoundingClientRect();
|
|
27346
27787
|
return n.width === 0 && n.height === 0 ? null : {
|
|
27347
|
-
top: n.top -
|
|
27348
|
-
left: n.left -
|
|
27788
|
+
top: n.top - Pd,
|
|
27789
|
+
left: n.left - Pd,
|
|
27349
27790
|
width: n.width + 12,
|
|
27350
27791
|
height: n.height + 12
|
|
27351
27792
|
};
|
|
27352
27793
|
}
|
|
27353
|
-
function
|
|
27794
|
+
function Ld(e) {
|
|
27354
27795
|
let t = document.querySelector(e);
|
|
27355
27796
|
if (!t) return !1;
|
|
27356
27797
|
let n = t.getBoundingClientRect();
|
|
27357
27798
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
27358
27799
|
}
|
|
27359
|
-
function
|
|
27360
|
-
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);
|
|
27361
27802
|
o(() => {
|
|
27362
27803
|
e && p(0);
|
|
27363
27804
|
}, [e]);
|
|
27364
27805
|
let C = s[c], w = c === s.length - 1, T = i(() => {
|
|
27365
27806
|
if (!C) return;
|
|
27366
|
-
let e =
|
|
27807
|
+
let e = Id(C.target);
|
|
27367
27808
|
v(e);
|
|
27368
27809
|
let t = x.current;
|
|
27369
27810
|
if (!e || !t) return;
|
|
27370
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
27371
|
-
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({
|
|
27372
27813
|
top: s,
|
|
27373
27814
|
left: o
|
|
27374
27815
|
});
|
|
@@ -27470,7 +27911,7 @@ function id({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
27470
27911
|
}
|
|
27471
27912
|
//#endregion
|
|
27472
27913
|
//#region src/SelectPlanCard.tsx
|
|
27473
|
-
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) {
|
|
27474
27915
|
return /* @__PURE__ */ g("div", {
|
|
27475
27916
|
ref: d,
|
|
27476
27917
|
...u,
|
|
@@ -27525,7 +27966,7 @@ var ad = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
27525
27966
|
})]
|
|
27526
27967
|
})]
|
|
27527
27968
|
});
|
|
27528
|
-
}),
|
|
27969
|
+
}), Bd = r(function({ title: e, description: t, headerAction: n, footer: r, dense: i = !1, spread: a = !1, children: o, className: s, ...c }, l) {
|
|
27529
27970
|
return /* @__PURE__ */ g("div", {
|
|
27530
27971
|
ref: l,
|
|
27531
27972
|
...c,
|
|
@@ -27561,7 +28002,7 @@ var ad = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
27561
28002
|
]
|
|
27562
28003
|
});
|
|
27563
28004
|
});
|
|
27564
|
-
function
|
|
28005
|
+
function Vd({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, wrap: o = !1, onClick: s }) {
|
|
27565
28006
|
let c = /* @__PURE__ */ g(m, { children: [
|
|
27566
28007
|
e && /* @__PURE__ */ h("span", {
|
|
27567
28008
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
@@ -27593,7 +28034,7 @@ function sd({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
27593
28034
|
children: c
|
|
27594
28035
|
});
|
|
27595
28036
|
}
|
|
27596
|
-
function
|
|
28037
|
+
function Hd({ children: e }) {
|
|
27597
28038
|
return /* @__PURE__ */ h("div", {
|
|
27598
28039
|
className: "select-listlabel",
|
|
27599
28040
|
children: e
|
|
@@ -27601,7 +28042,7 @@ function cd({ children: e }) {
|
|
|
27601
28042
|
}
|
|
27602
28043
|
//#endregion
|
|
27603
28044
|
//#region src/SelectThumbnail.tsx
|
|
27604
|
-
var
|
|
28045
|
+
var Ud = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, s) {
|
|
27605
28046
|
let [c, l] = f(!1);
|
|
27606
28047
|
o(() => l(!1), [e]);
|
|
27607
28048
|
let u = /* @__PURE__ */ h("span", {
|
|
@@ -27635,8 +28076,8 @@ var ld = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
|
|
|
27635
28076
|
});
|
|
27636
28077
|
//#endregion
|
|
27637
28078
|
//#region src/SelectImageZoomModal.tsx
|
|
27638
|
-
function
|
|
27639
|
-
return /* @__PURE__ */ h(
|
|
28079
|
+
function Wd({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
28080
|
+
return /* @__PURE__ */ h(os, {
|
|
27640
28081
|
open: e,
|
|
27641
28082
|
onClose: t,
|
|
27642
28083
|
title: i,
|
|
@@ -27654,7 +28095,7 @@ function ud({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
27654
28095
|
}
|
|
27655
28096
|
//#endregion
|
|
27656
28097
|
//#region src/SelectZoomThumbnail.tsx
|
|
27657
|
-
function
|
|
28098
|
+
function Gd({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
27658
28099
|
let [a, o] = f(!1);
|
|
27659
28100
|
return e ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("button", {
|
|
27660
28101
|
type: "button",
|
|
@@ -27667,19 +28108,19 @@ function dd({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
27667
28108
|
cursor: "zoom-in",
|
|
27668
28109
|
display: "inline-flex"
|
|
27669
28110
|
},
|
|
27670
|
-
children: /* @__PURE__ */ h(
|
|
28111
|
+
children: /* @__PURE__ */ h(Ud, {
|
|
27671
28112
|
src: e,
|
|
27672
28113
|
size: n,
|
|
27673
28114
|
alt: t,
|
|
27674
28115
|
count: i
|
|
27675
28116
|
})
|
|
27676
|
-
}), a && /* @__PURE__ */ h(
|
|
28117
|
+
}), a && /* @__PURE__ */ h(Wd, {
|
|
27677
28118
|
open: !0,
|
|
27678
28119
|
onClose: () => o(!1),
|
|
27679
28120
|
src: e,
|
|
27680
28121
|
alt: t,
|
|
27681
28122
|
title: r ?? t
|
|
27682
|
-
})] }) : /* @__PURE__ */ h(
|
|
28123
|
+
})] }) : /* @__PURE__ */ h(Ud, {
|
|
27683
28124
|
size: n,
|
|
27684
28125
|
alt: t,
|
|
27685
28126
|
count: i
|
|
@@ -27687,7 +28128,7 @@ function dd({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
27687
28128
|
}
|
|
27688
28129
|
//#endregion
|
|
27689
28130
|
//#region src/SelectMediaCell.tsx
|
|
27690
|
-
var
|
|
28131
|
+
var Kd = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
27691
28132
|
return /* @__PURE__ */ g("span", {
|
|
27692
28133
|
ref: a,
|
|
27693
28134
|
...i,
|
|
@@ -27709,14 +28150,14 @@ var fd = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
27709
28150
|
});
|
|
27710
28151
|
//#endregion
|
|
27711
28152
|
//#region src/SelectOfflineModal.tsx
|
|
27712
|
-
function
|
|
28153
|
+
function qd() {
|
|
27713
28154
|
let [e, t] = f(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
27714
28155
|
return o(() => {
|
|
27715
28156
|
let e = () => t(!1), n = () => t(!0);
|
|
27716
28157
|
return window.addEventListener("online", e), window.addEventListener("offline", n), () => {
|
|
27717
28158
|
window.removeEventListener("online", e), window.removeEventListener("offline", n);
|
|
27718
28159
|
};
|
|
27719
|
-
}, []), /* @__PURE__ */ h(
|
|
28160
|
+
}, []), /* @__PURE__ */ h(os, {
|
|
27720
28161
|
open: e,
|
|
27721
28162
|
onClose: () => {},
|
|
27722
28163
|
showClose: !1,
|
|
@@ -27732,7 +28173,7 @@ function pd() {
|
|
|
27732
28173
|
}
|
|
27733
28174
|
//#endregion
|
|
27734
28175
|
//#region src/SelectKeyValueEditor.tsx
|
|
27735
|
-
function
|
|
28176
|
+
function Jd(e) {
|
|
27736
28177
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
27737
28178
|
name: String(e.name ?? e.key ?? ""),
|
|
27738
28179
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -27741,8 +28182,8 @@ function md(e) {
|
|
|
27741
28182
|
value: t == null ? "" : String(t)
|
|
27742
28183
|
})) : [];
|
|
27743
28184
|
}
|
|
27744
|
-
var
|
|
27745
|
-
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 ? {
|
|
27746
28187
|
...t,
|
|
27747
28188
|
...n
|
|
27748
28189
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), m = () => t([...d, {
|
|
@@ -27806,7 +28247,7 @@ var hd = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
27806
28247
|
})
|
|
27807
28248
|
]
|
|
27808
28249
|
});
|
|
27809
|
-
}),
|
|
28250
|
+
}), Xd = (e) => String(e).padStart(2, "0"), Zd = {
|
|
27810
28251
|
"en-US": {
|
|
27811
28252
|
weekdays: [
|
|
27812
28253
|
"Su",
|
|
@@ -27865,34 +28306,34 @@ var hd = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
27865
28306
|
to: "Até",
|
|
27866
28307
|
cancel: "Cancelar",
|
|
27867
28308
|
apply: "Aplicar",
|
|
27868
|
-
formatDate: (e) => `${
|
|
28309
|
+
formatDate: (e) => `${Xd(e.getDate())} / ${Xd(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
27869
28310
|
}
|
|
27870
|
-
},
|
|
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) => {
|
|
27871
28312
|
let t = /* @__PURE__ */ new Date();
|
|
27872
28313
|
return {
|
|
27873
28314
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
27874
28315
|
to: t
|
|
27875
28316
|
};
|
|
27876
|
-
},
|
|
28317
|
+
}, af = [
|
|
27877
28318
|
{
|
|
27878
28319
|
id: "15m",
|
|
27879
28320
|
label: "Last 15 minutes",
|
|
27880
|
-
range: () =>
|
|
28321
|
+
range: () => rf(15)
|
|
27881
28322
|
},
|
|
27882
28323
|
{
|
|
27883
28324
|
id: "1h",
|
|
27884
28325
|
label: "Last 1 hour",
|
|
27885
|
-
range: () =>
|
|
28326
|
+
range: () => rf(60)
|
|
27886
28327
|
},
|
|
27887
28328
|
{
|
|
27888
28329
|
id: "3h",
|
|
27889
28330
|
label: "Last 3 hours",
|
|
27890
|
-
range: () =>
|
|
28331
|
+
range: () => rf(180)
|
|
27891
28332
|
},
|
|
27892
28333
|
{
|
|
27893
28334
|
id: "24h",
|
|
27894
28335
|
label: "Last 24 hours",
|
|
27895
|
-
range: () =>
|
|
28336
|
+
range: () => rf(1440)
|
|
27896
28337
|
},
|
|
27897
28338
|
{
|
|
27898
28339
|
id: "3d",
|
|
@@ -27908,78 +28349,78 @@ var hd = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
27908
28349
|
id: "all",
|
|
27909
28350
|
label: "All",
|
|
27910
28351
|
range: () => ({
|
|
27911
|
-
from:
|
|
27912
|
-
to:
|
|
28352
|
+
from: Qd(/* @__PURE__ */ new Date()),
|
|
28353
|
+
to: Qd(/* @__PURE__ */ new Date())
|
|
27913
28354
|
})
|
|
27914
28355
|
}
|
|
27915
|
-
],
|
|
27916
|
-
let t =
|
|
28356
|
+
], of = (e) => {
|
|
28357
|
+
let t = Qd(/* @__PURE__ */ new Date());
|
|
27917
28358
|
return {
|
|
27918
|
-
from:
|
|
28359
|
+
from: ef(t, -e),
|
|
27919
28360
|
to: t
|
|
27920
28361
|
};
|
|
27921
|
-
},
|
|
27922
|
-
let t =
|
|
28362
|
+
}, sf = (e) => {
|
|
28363
|
+
let t = ef(Qd(/* @__PURE__ */ new Date()), -e);
|
|
27923
28364
|
return {
|
|
27924
28365
|
from: t,
|
|
27925
28366
|
to: t
|
|
27926
28367
|
};
|
|
27927
|
-
},
|
|
28368
|
+
}, cf = [
|
|
27928
28369
|
{
|
|
27929
28370
|
id: "today",
|
|
27930
28371
|
label: "Hoje",
|
|
27931
|
-
range: () =>
|
|
28372
|
+
range: () => of(0)
|
|
27932
28373
|
},
|
|
27933
28374
|
{
|
|
27934
28375
|
id: "yesterday",
|
|
27935
28376
|
label: "Ontem",
|
|
27936
|
-
range: () =>
|
|
28377
|
+
range: () => sf(1)
|
|
27937
28378
|
},
|
|
27938
28379
|
{
|
|
27939
28380
|
id: "7d",
|
|
27940
28381
|
label: "Últimos 7 dias",
|
|
27941
|
-
range: () =>
|
|
28382
|
+
range: () => of(6)
|
|
27942
28383
|
},
|
|
27943
28384
|
{
|
|
27944
28385
|
id: "10d",
|
|
27945
28386
|
label: "Últimos 10 dias",
|
|
27946
|
-
range: () =>
|
|
28387
|
+
range: () => of(9)
|
|
27947
28388
|
},
|
|
27948
28389
|
{
|
|
27949
28390
|
id: "15d",
|
|
27950
28391
|
label: "Últimos 15 dias",
|
|
27951
|
-
range: () =>
|
|
28392
|
+
range: () => of(14)
|
|
27952
28393
|
},
|
|
27953
28394
|
{
|
|
27954
28395
|
id: "20d",
|
|
27955
28396
|
label: "Últimos 20 dias",
|
|
27956
|
-
range: () =>
|
|
28397
|
+
range: () => of(19)
|
|
27957
28398
|
},
|
|
27958
28399
|
{
|
|
27959
28400
|
id: "30d",
|
|
27960
28401
|
label: "Últimos 30 dias",
|
|
27961
|
-
range: () =>
|
|
28402
|
+
range: () => of(29)
|
|
27962
28403
|
},
|
|
27963
28404
|
{
|
|
27964
28405
|
id: "90d",
|
|
27965
28406
|
label: "Últimos 90 dias",
|
|
27966
|
-
range: () =>
|
|
28407
|
+
range: () => of(89)
|
|
27967
28408
|
}
|
|
27968
28409
|
];
|
|
27969
|
-
function
|
|
28410
|
+
function lf(e) {
|
|
27970
28411
|
if (!e) return "—";
|
|
27971
28412
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
27972
28413
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
27973
28414
|
}
|
|
27974
|
-
var
|
|
27975
|
-
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 ?? {
|
|
27976
28417
|
from: m,
|
|
27977
28418
|
to: m
|
|
27978
|
-
}), [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", {
|
|
27979
28420
|
className: "select-datepicker__placeholder",
|
|
27980
28421
|
children: "— / — / ——"
|
|
27981
28422
|
}), O = (e) => {
|
|
27982
|
-
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) ? {
|
|
27983
28424
|
from: e,
|
|
27984
28425
|
to: null
|
|
27985
28426
|
} : {
|
|
@@ -27989,7 +28430,7 @@ var kd = r(function({ value: e, presets: t = wd, onApply: n, onCancel: r, accent
|
|
|
27989
28430
|
}, k = (e) => {
|
|
27990
28431
|
if (e.disabled || !e.range) return;
|
|
27991
28432
|
let t = e.range();
|
|
27992
|
-
y(t), C(e.id), t.from && x(
|
|
28433
|
+
y(t), C(e.id), t.from && x($d(t.from));
|
|
27993
28434
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
27994
28435
|
return /* @__PURE__ */ h("div", {
|
|
27995
28436
|
ref: d,
|
|
@@ -28035,7 +28476,7 @@ var kd = r(function({ value: e, presets: t = wd, onApply: n, onCancel: r, accent
|
|
|
28035
28476
|
}),
|
|
28036
28477
|
o && /* @__PURE__ */ h("span", {
|
|
28037
28478
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
28038
|
-
children:
|
|
28479
|
+
children: lf(v[e])
|
|
28039
28480
|
})
|
|
28040
28481
|
]
|
|
28041
28482
|
}, e))
|
|
@@ -28047,7 +28488,7 @@ var kd = r(function({ value: e, presets: t = wd, onApply: n, onCancel: r, accent
|
|
|
28047
28488
|
type: "button",
|
|
28048
28489
|
className: "select-datepicker__nav",
|
|
28049
28490
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
28050
|
-
onClick: () => x((e) =>
|
|
28491
|
+
onClick: () => x((e) => tf(e, -1)),
|
|
28051
28492
|
children: /* @__PURE__ */ h(G, {})
|
|
28052
28493
|
}),
|
|
28053
28494
|
/* @__PURE__ */ g("span", {
|
|
@@ -28062,7 +28503,7 @@ var kd = r(function({ value: e, presets: t = wd, onApply: n, onCancel: r, accent
|
|
|
28062
28503
|
type: "button",
|
|
28063
28504
|
className: "select-datepicker__nav",
|
|
28064
28505
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
28065
|
-
onClick: () => x((e) =>
|
|
28506
|
+
onClick: () => x((e) => tf(e, 1)),
|
|
28066
28507
|
children: /* @__PURE__ */ h(W, {})
|
|
28067
28508
|
})
|
|
28068
28509
|
]
|
|
@@ -28074,7 +28515,7 @@ var kd = r(function({ value: e, presets: t = wd, onApply: n, onCancel: r, accent
|
|
|
28074
28515
|
className: "select-datepicker__weekday",
|
|
28075
28516
|
children: e
|
|
28076
28517
|
}, t)), T.map((e) => {
|
|
28077
|
-
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" : "");
|
|
28078
28519
|
return /* @__PURE__ */ h("div", {
|
|
28079
28520
|
className: s,
|
|
28080
28521
|
children: /* @__PURE__ */ h("button", {
|
|
@@ -28105,17 +28546,17 @@ var kd = r(function({ value: e, presets: t = wd, onApply: n, onCancel: r, accent
|
|
|
28105
28546
|
})]
|
|
28106
28547
|
})
|
|
28107
28548
|
});
|
|
28108
|
-
}),
|
|
28109
|
-
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) {
|
|
28110
28551
|
for (let r of t) {
|
|
28111
28552
|
var n;
|
|
28112
28553
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
28113
|
-
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;
|
|
28114
28555
|
}
|
|
28115
|
-
return
|
|
28556
|
+
return ff(e.start, e.end) ? pf(e.start) : `${pf(e.start)} – ${pf(e.end)}`;
|
|
28116
28557
|
}
|
|
28117
|
-
function
|
|
28118
|
-
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());
|
|
28119
28560
|
return /* @__PURE__ */ h(Zn, {
|
|
28120
28561
|
active: c,
|
|
28121
28562
|
onClose: () => l(!1),
|
|
@@ -28129,9 +28570,9 @@ function Pd({ value: e, onChange: t, presets: n = Dd, maxDate: r, placement: i =
|
|
|
28129
28570
|
icon: /* @__PURE__ */ h(nt, {}),
|
|
28130
28571
|
trailingIcon: /* @__PURE__ */ h(K, {}),
|
|
28131
28572
|
onClick: () => l((e) => !e),
|
|
28132
|
-
children:
|
|
28573
|
+
children: mf(e, n)
|
|
28133
28574
|
}),
|
|
28134
|
-
children: /* @__PURE__ */ h(
|
|
28575
|
+
children: /* @__PURE__ */ h(uf, {
|
|
28135
28576
|
embedded: !0,
|
|
28136
28577
|
locale: "pt-BR",
|
|
28137
28578
|
showTime: !1,
|
|
@@ -28144,8 +28585,8 @@ function Pd({ value: e, onChange: t, presets: n = Dd, maxDate: r, placement: i =
|
|
|
28144
28585
|
onCancel: () => l(!1),
|
|
28145
28586
|
onApply: (e) => {
|
|
28146
28587
|
e.from && t({
|
|
28147
|
-
start:
|
|
28148
|
-
end:
|
|
28588
|
+
start: df(e.from),
|
|
28589
|
+
end: df(e.to ?? e.from)
|
|
28149
28590
|
}), l(!1);
|
|
28150
28591
|
}
|
|
28151
28592
|
})
|
|
@@ -28153,7 +28594,7 @@ function Pd({ value: e, onChange: t, presets: n = Dd, maxDate: r, placement: i =
|
|
|
28153
28594
|
}
|
|
28154
28595
|
//#endregion
|
|
28155
28596
|
//#region src/SelectNumberField.tsx
|
|
28156
|
-
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) {
|
|
28157
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) => {
|
|
28158
28599
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
28159
28600
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -28227,7 +28668,7 @@ var Fd = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
28227
28668
|
});
|
|
28228
28669
|
//#endregion
|
|
28229
28670
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
28230
|
-
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 }) {
|
|
28231
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) => {
|
|
28232
28673
|
let i = n + r;
|
|
28233
28674
|
if (i < 0 || i >= e.length) return;
|
|
@@ -28322,7 +28763,7 @@ function Id({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
28322
28763
|
}
|
|
28323
28764
|
//#endregion
|
|
28324
28765
|
//#region src/SelectBuilderLayout.tsx
|
|
28325
|
-
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 }) {
|
|
28326
28767
|
let d = y();
|
|
28327
28768
|
return /* @__PURE__ */ h(oa, {
|
|
28328
28769
|
title: e,
|
|
@@ -28362,7 +28803,7 @@ function Ld({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
28362
28803
|
}
|
|
28363
28804
|
//#endregion
|
|
28364
28805
|
//#region src/SelectBuilderWorkspace.tsx
|
|
28365
|
-
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 }) {
|
|
28366
28807
|
var L;
|
|
28367
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) => {
|
|
28368
28809
|
P === void 0 && ne(e), F == null || F(e);
|
|
@@ -28622,10 +29063,10 @@ function Rd({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
28622
29063
|
}
|
|
28623
29064
|
//#endregion
|
|
28624
29065
|
//#region src/SelectFlowCanvas.tsx
|
|
28625
|
-
var
|
|
28626
|
-
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 }) {
|
|
28627
29068
|
let _ = s().replace(/:/g, ""), [v, y] = f(c), b = o ?? v, x = (e) => {
|
|
28628
|
-
let t =
|
|
29069
|
+
let t = bf(Math.min(d, Math.max(u, e)));
|
|
28629
29070
|
o === void 0 && y(t), l == null || l(t);
|
|
28630
29071
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
28631
29072
|
return /* @__PURE__ */ g("div", {
|
|
@@ -28741,7 +29182,7 @@ function Bd({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
28741
29182
|
})]
|
|
28742
29183
|
});
|
|
28743
29184
|
}
|
|
28744
|
-
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 }) {
|
|
28745
29186
|
let x = `${p ? " is-selected" : v ? " is-invalid" : m ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
28746
29187
|
left: e,
|
|
28747
29188
|
top: t,
|
|
@@ -28817,7 +29258,7 @@ function Vd({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
28817
29258
|
})]
|
|
28818
29259
|
});
|
|
28819
29260
|
}
|
|
28820
|
-
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" }) {
|
|
28821
29262
|
return /* @__PURE__ */ g("div", {
|
|
28822
29263
|
className: "select-flowpage",
|
|
28823
29264
|
children: [
|
|
@@ -28879,7 +29320,7 @@ function Hd({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
28879
29320
|
}
|
|
28880
29321
|
//#endregion
|
|
28881
29322
|
//#region src/SelectSwitchField.tsx
|
|
28882
|
-
var
|
|
29323
|
+
var wf = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
28883
29324
|
return /* @__PURE__ */ g("div", {
|
|
28884
29325
|
ref: c,
|
|
28885
29326
|
...s,
|
|
@@ -28907,7 +29348,7 @@ var Ud = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
28907
29348
|
children: i
|
|
28908
29349
|
})]
|
|
28909
29350
|
});
|
|
28910
|
-
}),
|
|
29351
|
+
}), Tf = [
|
|
28911
29352
|
"#212529",
|
|
28912
29353
|
"#495057",
|
|
28913
29354
|
"#868E96",
|
|
@@ -28924,13 +29365,13 @@ var Ud = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
28924
29365
|
"#DB2777",
|
|
28925
29366
|
"#9333EA",
|
|
28926
29367
|
"#6D28D9"
|
|
28927
|
-
],
|
|
28928
|
-
function
|
|
28929
|
-
let t =
|
|
29368
|
+
], Ef = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
29369
|
+
function Df(e) {
|
|
29370
|
+
let t = Ef.exec((e ?? "").trim());
|
|
28930
29371
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
28931
29372
|
}
|
|
28932
|
-
function
|
|
28933
|
-
let t =
|
|
29373
|
+
function Of(e) {
|
|
29374
|
+
let t = Df(e);
|
|
28934
29375
|
if (!t) return 0;
|
|
28935
29376
|
let [n, r, i] = [
|
|
28936
29377
|
1,
|
|
@@ -28939,13 +29380,13 @@ function qd(e) {
|
|
|
28939
29380
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
28940
29381
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
28941
29382
|
}
|
|
28942
|
-
function
|
|
28943
|
-
let [n, r] = [
|
|
29383
|
+
function kf(e, t) {
|
|
29384
|
+
let [n, r] = [Of(e), Of(t)].sort((e, t) => t - e);
|
|
28944
29385
|
return (n + .05) / (r + .05);
|
|
28945
29386
|
}
|
|
28946
|
-
var
|
|
28947
|
-
function
|
|
28948
|
-
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] = [
|
|
28949
29390
|
1,
|
|
28950
29391
|
3,
|
|
28951
29392
|
5
|
|
@@ -28956,7 +29397,7 @@ function Xd(e) {
|
|
|
28956
29397
|
v: a
|
|
28957
29398
|
};
|
|
28958
29399
|
}
|
|
28959
|
-
function
|
|
29400
|
+
function Mf({ h: e, s: t, v: n }) {
|
|
28960
29401
|
let r = (r) => {
|
|
28961
29402
|
let i = (r + e / 60) % 6;
|
|
28962
29403
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -28967,26 +29408,26 @@ function Zd({ h: e, s: t, v: n }) {
|
|
|
28967
29408
|
r(1)
|
|
28968
29409
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
28969
29410
|
}
|
|
28970
|
-
function
|
|
28971
|
-
let [n, r] = f(() =>
|
|
29411
|
+
function Nf({ hex: e, onPick: t }) {
|
|
29412
|
+
let [n, r] = f(() => jf(e ?? "#1D4ED8")), i = d(n), a = (e) => {
|
|
28972
29413
|
i.current = e, r(e);
|
|
28973
29414
|
};
|
|
28974
29415
|
o(() => {
|
|
28975
|
-
if (!e ||
|
|
28976
|
-
let t =
|
|
29416
|
+
if (!e || Mf(i.current) === e) return;
|
|
29417
|
+
let t = jf(e);
|
|
28977
29418
|
a(t.s === 0 || t.v === 0 ? {
|
|
28978
29419
|
...t,
|
|
28979
29420
|
h: i.current.h
|
|
28980
29421
|
} : t);
|
|
28981
29422
|
}, [e]);
|
|
28982
29423
|
let s = (e) => {
|
|
28983
|
-
a(e), t(
|
|
29424
|
+
a(e), t(Mf(e));
|
|
28984
29425
|
}, c = (e, t, n) => {
|
|
28985
29426
|
var r;
|
|
28986
29427
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
28987
29428
|
let i = (t) => {
|
|
28988
29429
|
let r = e.getBoundingClientRect();
|
|
28989
|
-
n(
|
|
29430
|
+
n(Af((t.clientX - r.left) / (r.width || 1)), Af((t.clientY - r.top) / (r.height || 1)));
|
|
28990
29431
|
};
|
|
28991
29432
|
i(t);
|
|
28992
29433
|
let a = (e) => i(e), o = () => {
|
|
@@ -28996,20 +29437,20 @@ function Qd({ hex: e, onPick: t }) {
|
|
|
28996
29437
|
}, l = (e) => {
|
|
28997
29438
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, o = e.key === "ArrowLeft" ? {
|
|
28998
29439
|
h: n,
|
|
28999
|
-
s:
|
|
29440
|
+
s: Af(r - t),
|
|
29000
29441
|
v: a
|
|
29001
29442
|
} : e.key === "ArrowRight" ? {
|
|
29002
29443
|
h: n,
|
|
29003
|
-
s:
|
|
29444
|
+
s: Af(r + t),
|
|
29004
29445
|
v: a
|
|
29005
29446
|
} : e.key === "ArrowUp" ? {
|
|
29006
29447
|
h: n,
|
|
29007
29448
|
s: r,
|
|
29008
|
-
v:
|
|
29449
|
+
v: Af(a + t)
|
|
29009
29450
|
} : e.key === "ArrowDown" ? {
|
|
29010
29451
|
h: n,
|
|
29011
29452
|
s: r,
|
|
29012
|
-
v:
|
|
29453
|
+
v: Af(a - t)
|
|
29013
29454
|
} : null;
|
|
29014
29455
|
o && (e.preventDefault(), s(o));
|
|
29015
29456
|
}, u = (e) => {
|
|
@@ -29019,11 +29460,11 @@ function Qd({ hex: e, onPick: t }) {
|
|
|
29019
29460
|
s: r,
|
|
29020
29461
|
v: a
|
|
29021
29462
|
}));
|
|
29022
|
-
}, p =
|
|
29463
|
+
}, p = Mf({
|
|
29023
29464
|
h: n.h,
|
|
29024
29465
|
s: 1,
|
|
29025
29466
|
v: 1
|
|
29026
|
-
}), _ =
|
|
29467
|
+
}), _ = Mf(n);
|
|
29027
29468
|
return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
|
|
29028
29469
|
className: "select-colorfield__sv",
|
|
29029
29470
|
style: { backgroundColor: p },
|
|
@@ -29067,24 +29508,24 @@ function Qd({ hex: e, onPick: t }) {
|
|
|
29067
29508
|
})
|
|
29068
29509
|
})] });
|
|
29069
29510
|
}
|
|
29070
|
-
var
|
|
29071
|
-
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: _ }) {
|
|
29072
29513
|
let v = s(), y = _ ?? `color-${v}`, [b, x] = f(!1), [S, C] = f(i ?? ""), [w, T] = f(null);
|
|
29073
29514
|
o(() => {
|
|
29074
29515
|
C(i ?? ""), T(null);
|
|
29075
29516
|
}, [i]);
|
|
29076
|
-
let E =
|
|
29517
|
+
let E = Df(i ?? ""), D = (e) => {
|
|
29077
29518
|
if (!e.trim()) {
|
|
29078
29519
|
u ? (T(null), a("")) : C(i ?? "");
|
|
29079
29520
|
return;
|
|
29080
29521
|
}
|
|
29081
|
-
let t =
|
|
29522
|
+
let t = Df(e);
|
|
29082
29523
|
if (!t) {
|
|
29083
29524
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
29084
29525
|
return;
|
|
29085
29526
|
}
|
|
29086
29527
|
T(null), C(t), t !== E && a(t);
|
|
29087
|
-
}, 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;
|
|
29088
29529
|
return /* @__PURE__ */ g("div", {
|
|
29089
29530
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
29090
29531
|
children: [
|
|
@@ -29112,7 +29553,7 @@ function ef({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
29112
29553
|
children: /* @__PURE__ */ g("div", {
|
|
29113
29554
|
className: "select-colorfield__panel",
|
|
29114
29555
|
children: [
|
|
29115
|
-
/* @__PURE__ */ h(
|
|
29556
|
+
/* @__PURE__ */ h(Nf, {
|
|
29116
29557
|
hex: E,
|
|
29117
29558
|
onPick: D
|
|
29118
29559
|
}),
|
|
@@ -29121,7 +29562,7 @@ function ef({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
29121
29562
|
role: "group",
|
|
29122
29563
|
"aria-label": "Cores prontas",
|
|
29123
29564
|
children: c.map((e) => {
|
|
29124
|
-
let t =
|
|
29565
|
+
let t = Df(e) ?? e, n = t === E;
|
|
29125
29566
|
return /* @__PURE__ */ h("button", {
|
|
29126
29567
|
type: "button",
|
|
29127
29568
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -29152,7 +29593,7 @@ function ef({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
29152
29593
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
29153
29594
|
value: S,
|
|
29154
29595
|
onChange: (e) => {
|
|
29155
|
-
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);
|
|
29156
29597
|
},
|
|
29157
29598
|
onBlur: () => D(S),
|
|
29158
29599
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -29175,14 +29616,14 @@ function ef({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
29175
29616
|
}) : null : /* @__PURE__ */ g("p", {
|
|
29176
29617
|
id: `${y}-hint`,
|
|
29177
29618
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
29178
|
-
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]
|
|
29179
29620
|
})
|
|
29180
29621
|
]
|
|
29181
29622
|
});
|
|
29182
29623
|
}
|
|
29183
29624
|
//#endregion
|
|
29184
29625
|
//#region src/SelectProgressBar.tsx
|
|
29185
|
-
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) {
|
|
29186
29627
|
if (l) return /* @__PURE__ */ g("div", {
|
|
29187
29628
|
ref: f,
|
|
29188
29629
|
...d,
|
|
@@ -29227,7 +29668,7 @@ var tf = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
29227
29668
|
})
|
|
29228
29669
|
]
|
|
29229
29670
|
});
|
|
29230
|
-
}),
|
|
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 }, _) {
|
|
29231
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: [
|
|
29232
29673
|
t == null ? /* @__PURE__ */ g("span", {
|
|
29233
29674
|
className: "select-choicecard__top",
|
|
@@ -29295,7 +29736,7 @@ var tf = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
29295
29736
|
children: x
|
|
29296
29737
|
});
|
|
29297
29738
|
});
|
|
29298
|
-
function
|
|
29739
|
+
function Rf({ badge: e = !0 }) {
|
|
29299
29740
|
return /* @__PURE__ */ g("div", {
|
|
29300
29741
|
className: "select-choicecard select-choicecard--skeleton",
|
|
29301
29742
|
"aria-hidden": "true",
|
|
@@ -29316,7 +29757,7 @@ function rf({ badge: e = !0 }) {
|
|
|
29316
29757
|
]
|
|
29317
29758
|
});
|
|
29318
29759
|
}
|
|
29319
|
-
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) {
|
|
29320
29761
|
return /* @__PURE__ */ h("div", {
|
|
29321
29762
|
ref: c,
|
|
29322
29763
|
...s,
|
|
@@ -29326,16 +29767,16 @@ var af = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
29326
29767
|
"--select-choice-min": t,
|
|
29327
29768
|
...o
|
|
29328
29769
|
},
|
|
29329
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ h(
|
|
29770
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ h(Rf, {}, t)) : e
|
|
29330
29771
|
});
|
|
29331
|
-
}),
|
|
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 }, _) {
|
|
29332
29773
|
let v = d(null), [y, b] = f(.5);
|
|
29333
29774
|
o(() => {
|
|
29334
29775
|
let e = v.current;
|
|
29335
29776
|
if (!e) return;
|
|
29336
29777
|
let t = () => {
|
|
29337
29778
|
let t = e.clientWidth;
|
|
29338
|
-
t > 0 && b(Math.min(1, t /
|
|
29779
|
+
t > 0 && b(Math.min(1, t / Bf));
|
|
29339
29780
|
};
|
|
29340
29781
|
if (t(), typeof ResizeObserver > "u") return;
|
|
29341
29782
|
let n = new ResizeObserver(t);
|
|
@@ -29343,7 +29784,7 @@ var af = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
29343
29784
|
}, []);
|
|
29344
29785
|
let x = e === "front", S = {
|
|
29345
29786
|
"--select-cert-accent": t || void 0,
|
|
29346
|
-
height:
|
|
29787
|
+
height: Vf * y + 2
|
|
29347
29788
|
};
|
|
29348
29789
|
return /* @__PURE__ */ h("div", {
|
|
29349
29790
|
ref: (e) => {
|
|
@@ -29356,8 +29797,8 @@ var af = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
29356
29797
|
children: /* @__PURE__ */ h("div", {
|
|
29357
29798
|
className: "select-certpreview__sheet",
|
|
29358
29799
|
style: {
|
|
29359
|
-
width:
|
|
29360
|
-
height:
|
|
29800
|
+
width: Bf,
|
|
29801
|
+
height: Vf,
|
|
29361
29802
|
transform: `scale(${y})`
|
|
29362
29803
|
},
|
|
29363
29804
|
children: /* @__PURE__ */ g("div", {
|
|
@@ -29430,13 +29871,13 @@ var af = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
29430
29871
|
});
|
|
29431
29872
|
//#endregion
|
|
29432
29873
|
//#region src/SelectImageField.tsx
|
|
29433
|
-
function
|
|
29874
|
+
function Uf(e) {
|
|
29434
29875
|
return new Promise((t, n) => {
|
|
29435
29876
|
let r = new FileReader();
|
|
29436
29877
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
29437
29878
|
});
|
|
29438
29879
|
}
|
|
29439
|
-
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) {
|
|
29440
29881
|
let [d, p] = f([]), [m, _] = f(null), v = t ? [t] : [], y = async (e) => {
|
|
29441
29882
|
let t = e[0];
|
|
29442
29883
|
if (!t) {
|
|
@@ -29444,7 +29885,7 @@ var uf = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
29444
29885
|
return;
|
|
29445
29886
|
}
|
|
29446
29887
|
if (_(null), !s) {
|
|
29447
|
-
n(await
|
|
29888
|
+
n(await Uf(t)), p([]);
|
|
29448
29889
|
return;
|
|
29449
29890
|
}
|
|
29450
29891
|
p([t]);
|
|
@@ -29476,7 +29917,7 @@ var uf = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
29476
29917
|
children: m
|
|
29477
29918
|
})]
|
|
29478
29919
|
});
|
|
29479
|
-
}),
|
|
29920
|
+
}), Gf = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
29480
29921
|
let [o, s] = f(() => new Set(n)), c = (e) => s((n) => {
|
|
29481
29922
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
29482
29923
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -29522,6 +29963,6 @@ var uf = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
29522
29963
|
});
|
|
29523
29964
|
});
|
|
29524
29965
|
//#endregion
|
|
29525
|
-
export { w as AUTH_FX_VARIANTS, Ie as AppleIcon, _t as AppsIcon, q as ArrowLeftIcon, Re as ArrowRightIcon, Kt as ArrowUpRightIcon, We as AtIcon, Ne as AuthAppIcon, Tt as AwardIcon, qt as BagIcon, at as BankIcon, Se as BellIcon, Ct as BookIcon, fe as BookmarkIcon, ft as BroadcastIcon, Ke as BuildingIcon, nt as CalendarIcon, Ut as CameraIcon, yt as CartIcon, ht as ChartLineIcon, Mt as ChatIcon, Ue as CheckCircleIcon, Be as CheckIcon, K as ChevronDownIcon, G as ChevronLeftIcon, W as ChevronRightIcon, rt as ChevronUpIcon, ct as ClipboardIcon, de as ClockIcon, It as CloseCircleIcon, ce as CloseIcon, Y as CopyIcon, Qe as CreditCardIcon, Te as CubeIcon, Ht as DatabaseIcon, ut as DiscountIcon, Rt as DocumentTextIcon, le as DotsHorizontalIcon, $e as EditIcon, it as ExportIcon, se as ExternalLinkIcon, Ve as EyeIcon, He as EyeOffIcon, Fe as FacebookIcon, wt as FileDownloadIcon, J as FilterIcon, Pt as FlagIcon, Lt as FlashIcon, Xt as GiftIcon, ie as GithubIcon, ge as GlobeIcon, re as GoogleIcon, en as GripIcon, Zt as HeadsetIcon, ye as HelpIcon, Ye as HomeIcon, Wt as IdCardIcon, $t as ImageIcon, ve as InfoIcon, qe as KeyIcon, Vt as LampIcon, Jt as LayoutIcon, zt as LinceIcon, mt as LinkIcon, Ft as LocationIcon, tt as LockIcon, Pe as MailIcon, bt as MenuIcon, vt as MinusCircleIcon, ke as MobileIcon, st as MoneyReceiveIcon, ot as MoneySendIcon, Oe as MonitorIcon, De as MoonIcon, lt as NoteIcon, Dt as PaletteIcon, Le as PasskeyIcon, kt as PauseIcon, Me as PhoneIcon, pe as PinIcon, St as PlayCircleIcon, je as PlusIcon, jt as ReceiptIcon, Ae as RefreshIcon, At as RefundIcon, we as RocketIcon,
|
|
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 };
|
|
29526
29967
|
|
|
29527
29968
|
//# sourceMappingURL=index.js.map
|