@selectwin/kit 0.1.127 → 0.1.128
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/SelectCodeBlock.d.ts +20 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +534 -492
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6892,8 +6892,50 @@ var Da = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6892
6892
|
});
|
|
6893
6893
|
});
|
|
6894
6894
|
//#endregion
|
|
6895
|
+
//#region src/SelectCodeBlock.tsx
|
|
6896
|
+
function Aa(e) {
|
|
6897
|
+
try {
|
|
6898
|
+
return JSON.stringify(JSON.parse(e), null, 2);
|
|
6899
|
+
} catch {
|
|
6900
|
+
return e;
|
|
6901
|
+
}
|
|
6902
|
+
}
|
|
6903
|
+
var ja = r(function({ value: e, label: t, pretty: n = !1, maxHeight: r = 14, copyable: i = !0, tone: a = "neutral", className: o, style: s, ...c }, l) {
|
|
6904
|
+
let [u, f] = d(!1), p = n ? Aa(e) : e, g = () => {
|
|
6905
|
+
var e;
|
|
6906
|
+
(e = navigator.clipboard) == null || e.writeText(p).then(() => {
|
|
6907
|
+
f(!0), setTimeout(() => f(!1), 1200);
|
|
6908
|
+
});
|
|
6909
|
+
};
|
|
6910
|
+
return /* @__PURE__ */ h("div", {
|
|
6911
|
+
ref: l,
|
|
6912
|
+
...c,
|
|
6913
|
+
className: `select-codeblock${a === "critical" ? " select-codeblock--critical" : ""}${o ? " " + o : ""}`,
|
|
6914
|
+
style: s,
|
|
6915
|
+
children: [t != null && /* @__PURE__ */ m("span", {
|
|
6916
|
+
className: "select-codeblock__label",
|
|
6917
|
+
children: t
|
|
6918
|
+
}), /* @__PURE__ */ h("div", {
|
|
6919
|
+
className: "select-codeblock__box",
|
|
6920
|
+
children: [/* @__PURE__ */ m("pre", {
|
|
6921
|
+
className: "select-codeblock__pre",
|
|
6922
|
+
style: { maxHeight: `${r}rem` },
|
|
6923
|
+
children: p
|
|
6924
|
+
}), i && /* @__PURE__ */ m("span", {
|
|
6925
|
+
className: "select-codeblock__copy",
|
|
6926
|
+
children: /* @__PURE__ */ m(Mr, {
|
|
6927
|
+
size: "sm",
|
|
6928
|
+
icon: m(u ? Be : se, {}),
|
|
6929
|
+
label: u ? "Copiado" : "Copiar",
|
|
6930
|
+
onClick: g
|
|
6931
|
+
})
|
|
6932
|
+
})]
|
|
6933
|
+
})]
|
|
6934
|
+
});
|
|
6935
|
+
});
|
|
6936
|
+
//#endregion
|
|
6895
6937
|
//#region src/SelectCopyableId.tsx
|
|
6896
|
-
function
|
|
6938
|
+
function Ma({ value: e, children: t, truncate: n, label: r, fallback: i = "—", to: a, reveal: o = "hover", variant: s = "inline" }) {
|
|
6897
6939
|
let c = s === "code", l = r ?? (c ? "Copiar código" : "Copiar id"), [u, f] = d(!1);
|
|
6898
6940
|
if (!e) return /* @__PURE__ */ m(p, { children: i });
|
|
6899
6941
|
let g = t ?? (n ? e.slice(0, n) : e), v = Ci(a);
|
|
@@ -6925,7 +6967,7 @@ function Aa({ value: e, children: t, truncate: n, label: r, fallback: i = "—",
|
|
|
6925
6967
|
}
|
|
6926
6968
|
//#endregion
|
|
6927
6969
|
//#region src/SelectCollapsible.tsx
|
|
6928
|
-
var
|
|
6970
|
+
var Na = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1, className: i, ...a }, o) {
|
|
6929
6971
|
let [s, c] = d(n);
|
|
6930
6972
|
return /* @__PURE__ */ h("div", {
|
|
6931
6973
|
ref: o,
|
|
@@ -6956,7 +6998,7 @@ var ja = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6956
6998
|
})
|
|
6957
6999
|
})]
|
|
6958
7000
|
});
|
|
6959
|
-
}),
|
|
7001
|
+
}), Pa = r(function({ icon: e, title: t, description: n, action: r, onDismiss: i, className: a, ...o }, s) {
|
|
6960
7002
|
return /* @__PURE__ */ h("div", {
|
|
6961
7003
|
ref: s,
|
|
6962
7004
|
...o,
|
|
@@ -6991,7 +7033,7 @@ var ja = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6991
7033
|
})
|
|
6992
7034
|
]
|
|
6993
7035
|
});
|
|
6994
|
-
}),
|
|
7036
|
+
}), Fa = r(function({ media: e, sublabel: t, title: n, badge: r, meta: i, accent: a = !0, onClick: o, className: s, ...c }, l) {
|
|
6995
7037
|
return /* @__PURE__ */ h("button", {
|
|
6996
7038
|
ref: l,
|
|
6997
7039
|
...c,
|
|
@@ -7028,7 +7070,7 @@ var ja = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
7028
7070
|
})
|
|
7029
7071
|
]
|
|
7030
7072
|
});
|
|
7031
|
-
}),
|
|
7073
|
+
}), Ia = r(function({ label: e, onClick: t, className: n, ...r }, i) {
|
|
7032
7074
|
return /* @__PURE__ */ h("button", {
|
|
7033
7075
|
ref: i,
|
|
7034
7076
|
...r,
|
|
@@ -7044,7 +7086,7 @@ var ja = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
7044
7086
|
children: e
|
|
7045
7087
|
})]
|
|
7046
7088
|
});
|
|
7047
|
-
}),
|
|
7089
|
+
}), La = r(function({ avatar: e, name: t, badge: n, onClick: r, className: i, ...a }, o) {
|
|
7048
7090
|
return /* @__PURE__ */ h("button", {
|
|
7049
7091
|
ref: o,
|
|
7050
7092
|
...a,
|
|
@@ -7069,8 +7111,8 @@ var ja = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
7069
7111
|
})
|
|
7070
7112
|
]
|
|
7071
7113
|
});
|
|
7072
|
-
}),
|
|
7073
|
-
function
|
|
7114
|
+
}), Ra = 220;
|
|
7115
|
+
function za({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a, aside: s, size: c = "md", showClose: l = !0, noise: u = !0, dividedHeader: f = !1, backdrop: _ = "dim", theme: v = "light", placement: y = "center" }) {
|
|
7074
7116
|
let [b, x] = d(e), [S, C] = d(!1);
|
|
7075
7117
|
if (o(() => {
|
|
7076
7118
|
if (e) x(!0), C(!1);
|
|
@@ -7078,7 +7120,7 @@ function La({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
7078
7120
|
C(!0);
|
|
7079
7121
|
let e = setTimeout(() => {
|
|
7080
7122
|
x(!1), C(!1);
|
|
7081
|
-
},
|
|
7123
|
+
}, Ra);
|
|
7082
7124
|
return () => clearTimeout(e);
|
|
7083
7125
|
}
|
|
7084
7126
|
}, [e, b]), o(() => {
|
|
@@ -7156,7 +7198,7 @@ function La({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
7156
7198
|
}
|
|
7157
7199
|
//#endregion
|
|
7158
7200
|
//#region src/SelectRowActions.tsx
|
|
7159
|
-
function
|
|
7201
|
+
function Ba({ actions: e, label: t = "Ações" }) {
|
|
7160
7202
|
let [n, r] = d(!1);
|
|
7161
7203
|
return /* @__PURE__ */ m(Pn, {
|
|
7162
7204
|
active: n,
|
|
@@ -7178,8 +7220,8 @@ function Ra({ actions: e, label: t = "Ações" }) {
|
|
|
7178
7220
|
}
|
|
7179
7221
|
//#endregion
|
|
7180
7222
|
//#region src/SelectConfirmModal.tsx
|
|
7181
|
-
function
|
|
7182
|
-
return /* @__PURE__ */ m(
|
|
7223
|
+
function Va({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmLabel: a = "Confirmar", cancelLabel: o = "Cancelar", destructive: s = !1, loading: c = !1, theme: l }) {
|
|
7224
|
+
return /* @__PURE__ */ m(za, {
|
|
7183
7225
|
open: e,
|
|
7184
7226
|
onClose: t,
|
|
7185
7227
|
title: r,
|
|
@@ -7208,8 +7250,8 @@ function za({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
7208
7250
|
}
|
|
7209
7251
|
//#endregion
|
|
7210
7252
|
//#region src/SelectFormModal.tsx
|
|
7211
|
-
function
|
|
7212
|
-
return /* @__PURE__ */ h(
|
|
7253
|
+
function Ha({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children: a, submitLabel: o = "Salvar", cancelLabel: s = "Cancelar", submitting: c = !1, submitDisabled: l = !1, submitVariant: u = "primary", error: d, size: f = "md", theme: p }) {
|
|
7254
|
+
return /* @__PURE__ */ h(za, {
|
|
7213
7255
|
open: e,
|
|
7214
7256
|
onClose: t,
|
|
7215
7257
|
title: r,
|
|
@@ -7251,7 +7293,7 @@ function Ba({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
7251
7293
|
}
|
|
7252
7294
|
//#endregion
|
|
7253
7295
|
//#region src/internal/useMatchMedia.ts
|
|
7254
|
-
function
|
|
7296
|
+
function Ua(e) {
|
|
7255
7297
|
let [t, n] = d(() => e && typeof window < "u" && window.matchMedia ? window.matchMedia(e).matches : !1);
|
|
7256
7298
|
return o(() => {
|
|
7257
7299
|
var t;
|
|
@@ -7265,30 +7307,30 @@ function Va(e) {
|
|
|
7265
7307
|
}
|
|
7266
7308
|
//#endregion
|
|
7267
7309
|
//#region src/SelectDataTable.tsx
|
|
7268
|
-
var
|
|
7310
|
+
var Wa = "9.5rem", Ga = {
|
|
7269
7311
|
minWidth: "9.5rem",
|
|
7270
7312
|
grow: 2
|
|
7271
|
-
},
|
|
7272
|
-
function
|
|
7313
|
+
}, Ka = "select-datatable:hidden-cols:";
|
|
7314
|
+
function qa(e) {
|
|
7273
7315
|
try {
|
|
7274
|
-
let t = localStorage.getItem(
|
|
7316
|
+
let t = localStorage.getItem(Ka + e), n = t ? JSON.parse(t) : null;
|
|
7275
7317
|
return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
|
|
7276
7318
|
} catch {
|
|
7277
7319
|
return [];
|
|
7278
7320
|
}
|
|
7279
7321
|
}
|
|
7280
|
-
function
|
|
7322
|
+
function Ja(e, t) {
|
|
7281
7323
|
try {
|
|
7282
|
-
t.length === 0 ? localStorage.removeItem(
|
|
7324
|
+
t.length === 0 ? localStorage.removeItem(Ka + e) : localStorage.setItem(Ka + e, JSON.stringify(t));
|
|
7283
7325
|
} catch {}
|
|
7284
7326
|
}
|
|
7285
|
-
function
|
|
7327
|
+
function Ya(e) {
|
|
7286
7328
|
return e.hideable ?? !!e.title;
|
|
7287
7329
|
}
|
|
7288
|
-
var
|
|
7289
|
-
function
|
|
7330
|
+
var Xa = "select-datatable:col-widths:";
|
|
7331
|
+
function Za(e) {
|
|
7290
7332
|
try {
|
|
7291
|
-
let t = localStorage.getItem(
|
|
7333
|
+
let t = localStorage.getItem(Xa + e), n = t ? JSON.parse(t) : null;
|
|
7292
7334
|
if (!n || typeof n != "object" || Array.isArray(n)) return {};
|
|
7293
7335
|
let r = {};
|
|
7294
7336
|
for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
|
|
@@ -7297,16 +7339,16 @@ function Ya(e) {
|
|
|
7297
7339
|
return {};
|
|
7298
7340
|
}
|
|
7299
7341
|
}
|
|
7300
|
-
function
|
|
7342
|
+
function Qa(e, t) {
|
|
7301
7343
|
try {
|
|
7302
|
-
Object.keys(t).length === 0 ? localStorage.removeItem(
|
|
7344
|
+
Object.keys(t).length === 0 ? localStorage.removeItem(Xa + e) : localStorage.setItem(Xa + e, JSON.stringify(t));
|
|
7303
7345
|
} catch {}
|
|
7304
7346
|
}
|
|
7305
|
-
var
|
|
7306
|
-
function
|
|
7347
|
+
var $a = "select-datatable:page-size:";
|
|
7348
|
+
function eo(e, t, n) {
|
|
7307
7349
|
let [r, i] = d(() => {
|
|
7308
7350
|
try {
|
|
7309
|
-
let r = Number(localStorage.getItem(
|
|
7351
|
+
let r = Number(localStorage.getItem($a + e));
|
|
7310
7352
|
return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
|
|
7311
7353
|
} catch {
|
|
7312
7354
|
return t;
|
|
@@ -7315,25 +7357,25 @@ function Qa(e, t, n) {
|
|
|
7315
7357
|
return [r, (t) => {
|
|
7316
7358
|
i(t);
|
|
7317
7359
|
try {
|
|
7318
|
-
localStorage.setItem(
|
|
7360
|
+
localStorage.setItem($a + e, String(t));
|
|
7319
7361
|
} catch {}
|
|
7320
7362
|
}];
|
|
7321
7363
|
}
|
|
7322
|
-
function
|
|
7364
|
+
function to(e, t, n) {
|
|
7323
7365
|
let r = e == null || e === "", i = t == null || t === "";
|
|
7324
7366
|
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", {
|
|
7325
7367
|
numeric: !0,
|
|
7326
7368
|
sensitivity: "base"
|
|
7327
7369
|
});
|
|
7328
7370
|
}
|
|
7329
|
-
function
|
|
7330
|
-
let [S, C] = d(() => g ?
|
|
7371
|
+
function no({ columns: e, items: t, getId: n, loading: r = !1, empty: i, pagination: a, onRowClick: o, title: s, help: c, description: u, action: f, filters: p, columnsKey: g, getChildren: _, defaultExpanded: v, compactRow: y, compactQuery: b = "(max-width: 40rem)", onCompactRowClick: x }) {
|
|
7372
|
+
let [S, C] = d(() => g ? qa(g) : []), [w, T] = d(!1), E = Ua(y ? b : void 0) && y != null, [D, O] = d(() => g ? Za(g) : {}), k = l(() => new Set(S), [S]), A = e.filter(Ya), j = A.length > 0 && A.every((e) => k.has(e.key)), M = (e) => !j && k.has(e.key) && Ya(e), N = e.filter((e) => !M(e)), P = A.filter((e) => !M(e)), [F, I] = d(null), [L, ee] = d(() => /* @__PURE__ */ new Set()), te = (e) => ((v == null ? void 0 : v(e)) ?? !1) !== L.has(n(e)), ne = (e) => ee((t) => {
|
|
7331
7373
|
let r = new Set(t), i = n(e);
|
|
7332
7374
|
return r.delete(i) || r.add(i), r;
|
|
7333
7375
|
}), R = (e) => {
|
|
7334
7376
|
C((t) => {
|
|
7335
7377
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
7336
|
-
return g &&
|
|
7378
|
+
return g && Ja(g, r), n && I((t) => t && t.key === e.key ? null : t), r;
|
|
7337
7379
|
});
|
|
7338
7380
|
}, z = (e) => {
|
|
7339
7381
|
I((t) => {
|
|
@@ -7350,7 +7392,7 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7350
7392
|
let e = B == null ? void 0 : B.sortValue;
|
|
7351
7393
|
if (!F || !e) return (e) => e;
|
|
7352
7394
|
let t = F.dir === "asc" ? 1 : -1;
|
|
7353
|
-
return (n) => [...n].sort((n, r) =>
|
|
7395
|
+
return (n) => [...n].sort((n, r) => to(e(n), e(r), t));
|
|
7354
7396
|
}, [F, B]), H = l(() => V(t), [t, V]), re = (e) => (_ == null ? void 0 : _(e)) ?? [], ie = !!_ && t.some((e) => re(e).length > 0), U = E ? [{
|
|
7355
7397
|
label: "",
|
|
7356
7398
|
grow: 1
|
|
@@ -7368,10 +7410,10 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7368
7410
|
let n = N[e];
|
|
7369
7411
|
n && O((e) => {
|
|
7370
7412
|
let r = { ...e };
|
|
7371
|
-
return t ? r[n.key] = t : delete r[n.key], g &&
|
|
7413
|
+
return t ? r[n.key] = t : delete r[n.key], g && Qa(g, r), r;
|
|
7372
7414
|
});
|
|
7373
7415
|
}, G = () => {
|
|
7374
|
-
O({}), g &&
|
|
7416
|
+
O({}), g && Qa(g, {});
|
|
7375
7417
|
}, K = Object.keys(D).length > 0, q = !r && i ? /* @__PURE__ */ m(ba, {
|
|
7376
7418
|
icon: i.icon,
|
|
7377
7419
|
title: i.heading,
|
|
@@ -7483,7 +7525,7 @@ function eo({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
7483
7525
|
}
|
|
7484
7526
|
//#endregion
|
|
7485
7527
|
//#region src/SelectAddCard.tsx
|
|
7486
|
-
var
|
|
7528
|
+
var ro = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
|
|
7487
7529
|
return /* @__PURE__ */ h("button", {
|
|
7488
7530
|
ref: o,
|
|
7489
7531
|
...a,
|
|
@@ -7509,7 +7551,7 @@ var to = r(function({ label: e, description: t, onClick: n, icon: r, className:
|
|
|
7509
7551
|
});
|
|
7510
7552
|
//#endregion
|
|
7511
7553
|
//#region src/SelectCardGrid.tsx
|
|
7512
|
-
function
|
|
7554
|
+
function io({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount: i = 6, empty: a, pagination: o, create: s, minCardWidth: c = "16rem", skeletonCover: l = !1, title: u, help: d, description: f, action: p, filters: g, tools: _ }) {
|
|
7513
7555
|
let v = !r && e.length === 0 && a != null, { hasTitleRow: y, hasFilters: b } = sa({
|
|
7514
7556
|
title: u,
|
|
7515
7557
|
description: f,
|
|
@@ -7565,7 +7607,7 @@ function no({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
7565
7607
|
}, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ m("div", {
|
|
7566
7608
|
className: "select-cardgrid__item",
|
|
7567
7609
|
children: n(e)
|
|
7568
|
-
}, t(e))), !r && s && /* @__PURE__ */ m(
|
|
7610
|
+
}, t(e))), !r && s && /* @__PURE__ */ m(ro, {
|
|
7569
7611
|
label: s.label,
|
|
7570
7612
|
description: s.description,
|
|
7571
7613
|
onClick: s.onAction,
|
|
@@ -7578,7 +7620,7 @@ function no({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
7578
7620
|
}
|
|
7579
7621
|
//#endregion
|
|
7580
7622
|
//#region src/SelectRecordCard.tsx
|
|
7581
|
-
var
|
|
7623
|
+
var ao = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags: a, status: o, meta: s, to: c, accent: l = !1, cover: u, coverFallback: d, className: f, ...p }, g) {
|
|
7582
7624
|
let v = o != null || s != null, y = Ci(c);
|
|
7583
7625
|
return /* @__PURE__ */ h("div", {
|
|
7584
7626
|
ref: g,
|
|
@@ -7589,7 +7631,7 @@ var ro = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
|
|
|
7589
7631
|
className: "select-rcard__accent",
|
|
7590
7632
|
"aria-hidden": "true"
|
|
7591
7633
|
}),
|
|
7592
|
-
u !== void 0 && /* @__PURE__ */ m(
|
|
7634
|
+
u !== void 0 && /* @__PURE__ */ m(oo, {
|
|
7593
7635
|
src: u,
|
|
7594
7636
|
fallback: d
|
|
7595
7637
|
}),
|
|
@@ -7649,7 +7691,7 @@ var ro = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
|
|
|
7649
7691
|
]
|
|
7650
7692
|
});
|
|
7651
7693
|
});
|
|
7652
|
-
function
|
|
7694
|
+
function oo({ src: e, fallback: t }) {
|
|
7653
7695
|
let [n, r] = d(!1);
|
|
7654
7696
|
return o(() => r(!1), [e]), /* @__PURE__ */ m("span", {
|
|
7655
7697
|
className: "select-rcard__cover",
|
|
@@ -7665,7 +7707,7 @@ function io({ src: e, fallback: t }) {
|
|
|
7665
7707
|
})
|
|
7666
7708
|
});
|
|
7667
7709
|
}
|
|
7668
|
-
var
|
|
7710
|
+
var so = r(function({ kind: e, className: t, ...n }, r) {
|
|
7669
7711
|
return /* @__PURE__ */ h("span", {
|
|
7670
7712
|
ref: r,
|
|
7671
7713
|
...n,
|
|
@@ -7683,18 +7725,18 @@ var ao = r(function({ kind: e, className: t, ...n }, r) {
|
|
|
7683
7725
|
});
|
|
7684
7726
|
//#endregion
|
|
7685
7727
|
//#region src/SelectSplitChain.tsx
|
|
7686
|
-
function
|
|
7728
|
+
function co(e) {
|
|
7687
7729
|
var t;
|
|
7688
7730
|
return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
|
|
7689
7731
|
}
|
|
7690
|
-
function
|
|
7732
|
+
function lo({ node: e, origin: t = !1 }) {
|
|
7691
7733
|
return /* @__PURE__ */ h("span", {
|
|
7692
7734
|
className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
|
|
7693
7735
|
children: [
|
|
7694
7736
|
/* @__PURE__ */ m("span", {
|
|
7695
7737
|
className: "select-chain__dot",
|
|
7696
7738
|
"aria-hidden": "true",
|
|
7697
|
-
children:
|
|
7739
|
+
children: co(e)
|
|
7698
7740
|
}),
|
|
7699
7741
|
/* @__PURE__ */ m("span", {
|
|
7700
7742
|
className: "select-chain__label",
|
|
@@ -7708,16 +7750,16 @@ function so({ node: e, origin: t = !1 }) {
|
|
|
7708
7750
|
]
|
|
7709
7751
|
});
|
|
7710
7752
|
}
|
|
7711
|
-
var
|
|
7753
|
+
var uo = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
|
|
7712
7754
|
let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ m("span", {
|
|
7713
7755
|
className: "select-chain__link",
|
|
7714
7756
|
"aria-hidden": "true"
|
|
7715
7757
|
}, e);
|
|
7716
|
-
t && c.push(/* @__PURE__ */ m(
|
|
7758
|
+
t && c.push(/* @__PURE__ */ m(lo, {
|
|
7717
7759
|
node: t,
|
|
7718
7760
|
origin: !0
|
|
7719
7761
|
}, "__origin"));
|
|
7720
|
-
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ m(
|
|
7762
|
+
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ m(lo, { node: e }, e.id));
|
|
7721
7763
|
return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ h("span", {
|
|
7722
7764
|
className: "select-chain__more",
|
|
7723
7765
|
children: ["+", s]
|
|
@@ -7727,43 +7769,43 @@ var co = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
|
|
|
7727
7769
|
className: `select-chain${r ? " " + r : ""}`,
|
|
7728
7770
|
children: c
|
|
7729
7771
|
});
|
|
7730
|
-
}),
|
|
7772
|
+
}), fo = new Intl.NumberFormat("pt-BR", {
|
|
7731
7773
|
style: "currency",
|
|
7732
7774
|
currency: "BRL"
|
|
7733
7775
|
});
|
|
7734
|
-
function
|
|
7776
|
+
function po(e) {
|
|
7735
7777
|
let t = typeof e == "string" ? Number(e) : e;
|
|
7736
7778
|
return typeof t == "number" && Number.isFinite(t) ? t : 0;
|
|
7737
7779
|
}
|
|
7738
|
-
function
|
|
7739
|
-
return
|
|
7780
|
+
function mo(e) {
|
|
7781
|
+
return fo.format(po(e) / 100);
|
|
7740
7782
|
}
|
|
7741
7783
|
//#endregion
|
|
7742
7784
|
//#region src/SelectMoney.tsx
|
|
7743
|
-
var
|
|
7785
|
+
var ho = "sw:hide-money", go = {
|
|
7744
7786
|
hidden: !1,
|
|
7745
7787
|
toggle: () => {},
|
|
7746
7788
|
setHidden: () => {}
|
|
7747
|
-
},
|
|
7748
|
-
function
|
|
7789
|
+
}, _o = n(null);
|
|
7790
|
+
function vo() {
|
|
7749
7791
|
try {
|
|
7750
|
-
return localStorage.getItem(
|
|
7792
|
+
return localStorage.getItem(ho) === "1";
|
|
7751
7793
|
} catch {
|
|
7752
7794
|
return !1;
|
|
7753
7795
|
}
|
|
7754
7796
|
}
|
|
7755
|
-
function
|
|
7797
|
+
function yo(e) {
|
|
7756
7798
|
try {
|
|
7757
|
-
localStorage.setItem(
|
|
7799
|
+
localStorage.setItem(ho, e ? "1" : "0");
|
|
7758
7800
|
} catch {}
|
|
7759
7801
|
}
|
|
7760
|
-
function
|
|
7761
|
-
let [t, n] = d(
|
|
7762
|
-
n(e),
|
|
7802
|
+
function bo({ children: e }) {
|
|
7803
|
+
let [t, n] = d(vo), r = i((e) => {
|
|
7804
|
+
n(e), yo(e);
|
|
7763
7805
|
}, []), a = i(() => {
|
|
7764
7806
|
n((e) => {
|
|
7765
7807
|
let t = !e;
|
|
7766
|
-
return
|
|
7808
|
+
return yo(t), t;
|
|
7767
7809
|
});
|
|
7768
7810
|
}, []), o = l(() => ({
|
|
7769
7811
|
hidden: t,
|
|
@@ -7774,16 +7816,16 @@ function vo({ children: e }) {
|
|
|
7774
7816
|
a,
|
|
7775
7817
|
r
|
|
7776
7818
|
]);
|
|
7777
|
-
return /* @__PURE__ */ m(
|
|
7819
|
+
return /* @__PURE__ */ m(_o.Provider, {
|
|
7778
7820
|
value: o,
|
|
7779
7821
|
children: e
|
|
7780
7822
|
});
|
|
7781
7823
|
}
|
|
7782
|
-
function
|
|
7783
|
-
return a(
|
|
7824
|
+
function xo() {
|
|
7825
|
+
return a(_o) ?? go;
|
|
7784
7826
|
}
|
|
7785
|
-
var
|
|
7786
|
-
let { hidden: a } =
|
|
7827
|
+
var So = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
|
|
7828
|
+
let { hidden: a } = xo();
|
|
7787
7829
|
return /* @__PURE__ */ m("span", {
|
|
7788
7830
|
ref: i,
|
|
7789
7831
|
...r,
|
|
@@ -7792,15 +7834,15 @@ var bo = r(function({ children: e, label: t = "valor oculto", className: n, ...r
|
|
|
7792
7834
|
children: e
|
|
7793
7835
|
});
|
|
7794
7836
|
});
|
|
7795
|
-
function
|
|
7796
|
-
let n =
|
|
7797
|
-
return m(t ?
|
|
7837
|
+
function Co({ cents: e, sensitive: t = !0 }) {
|
|
7838
|
+
let n = mo(e);
|
|
7839
|
+
return m(t ? So : p, { children: n });
|
|
7798
7840
|
}
|
|
7799
|
-
var
|
|
7841
|
+
var wo = new Intl.NumberFormat("pt-BR", {
|
|
7800
7842
|
signDisplay: "exceptZero",
|
|
7801
7843
|
minimumFractionDigits: 1,
|
|
7802
7844
|
maximumFractionDigits: 1
|
|
7803
|
-
}),
|
|
7845
|
+
}), To = r(function({ value: e, invert: t = !1, caption: n, unit: r = "percent", className: i, ...a }, o) {
|
|
7804
7846
|
if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ h("span", {
|
|
7805
7847
|
ref: o,
|
|
7806
7848
|
...a,
|
|
@@ -7816,7 +7858,7 @@ var So = new Intl.NumberFormat("pt-BR", {
|
|
|
7816
7858
|
className: `select-delta__value select-delta__value--${u}`,
|
|
7817
7859
|
children: [
|
|
7818
7860
|
d ? `${d} ` : "",
|
|
7819
|
-
|
|
7861
|
+
wo.format(e),
|
|
7820
7862
|
r === "points" ? " p.p." : "%"
|
|
7821
7863
|
]
|
|
7822
7864
|
}), n != null && /* @__PURE__ */ m("span", {
|
|
@@ -7825,8 +7867,8 @@ var So = new Intl.NumberFormat("pt-BR", {
|
|
|
7825
7867
|
})]
|
|
7826
7868
|
});
|
|
7827
7869
|
});
|
|
7828
|
-
function
|
|
7829
|
-
let { hidden: e, toggle: t } =
|
|
7870
|
+
function Eo() {
|
|
7871
|
+
let { hidden: e, toggle: t } = xo();
|
|
7830
7872
|
return /* @__PURE__ */ m(Mr, {
|
|
7831
7873
|
variant: "outline",
|
|
7832
7874
|
icon: m(e ? He : Ve, {}),
|
|
@@ -7837,7 +7879,7 @@ function wo() {
|
|
|
7837
7879
|
}
|
|
7838
7880
|
//#endregion
|
|
7839
7881
|
//#region src/SelectOfferPrice.tsx
|
|
7840
|
-
var
|
|
7882
|
+
var Do = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note: i, prefix: a, suffix: o, className: s, ...c }, l) {
|
|
7841
7883
|
let u = Number(e);
|
|
7842
7884
|
if (!Number.isFinite(u)) return null;
|
|
7843
7885
|
let d = Number(t), f = Number.isFinite(d) && d > u, p = f ? Math.round((d - u) / d * 100) : 0;
|
|
@@ -7852,7 +7894,7 @@ var To = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
7852
7894
|
}),
|
|
7853
7895
|
/* @__PURE__ */ m("span", {
|
|
7854
7896
|
className: "select-offerprice__now",
|
|
7855
|
-
children: u === 0 && r != null ? r : /* @__PURE__ */ m(
|
|
7897
|
+
children: u === 0 && r != null ? r : /* @__PURE__ */ m(Co, { cents: u })
|
|
7856
7898
|
}),
|
|
7857
7899
|
o != null && /* @__PURE__ */ m("span", {
|
|
7858
7900
|
className: "select-offerprice__per",
|
|
@@ -7860,7 +7902,7 @@ var To = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
7860
7902
|
}),
|
|
7861
7903
|
f && /* @__PURE__ */ m("s", {
|
|
7862
7904
|
className: "select-offerprice__was",
|
|
7863
|
-
children: /* @__PURE__ */ m(
|
|
7905
|
+
children: /* @__PURE__ */ m(Co, { cents: d })
|
|
7864
7906
|
}),
|
|
7865
7907
|
f && !n && p > 0 && /* @__PURE__ */ h("span", {
|
|
7866
7908
|
className: "select-offerprice__off",
|
|
@@ -7879,7 +7921,7 @@ var To = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
7879
7921
|
});
|
|
7880
7922
|
//#endregion
|
|
7881
7923
|
//#region src/SelectRating.tsx
|
|
7882
|
-
function
|
|
7924
|
+
function Oo({ size: e }) {
|
|
7883
7925
|
return /* @__PURE__ */ m("svg", {
|
|
7884
7926
|
width: e,
|
|
7885
7927
|
height: e,
|
|
@@ -7891,7 +7933,7 @@ function Eo({ size: e }) {
|
|
|
7891
7933
|
})
|
|
7892
7934
|
});
|
|
7893
7935
|
}
|
|
7894
|
-
var
|
|
7936
|
+
var ko = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i, disabled: a = !1, className: o, ...s }, c) {
|
|
7895
7937
|
let l = !!n && !a, [u, f] = d(null), p = u ?? e;
|
|
7896
7938
|
return /* @__PURE__ */ m("div", {
|
|
7897
7939
|
ref: c,
|
|
@@ -7906,7 +7948,7 @@ var Do = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7906
7948
|
children: Array.from({ length: t }, (e, t) => {
|
|
7907
7949
|
let i = /* @__PURE__ */ m("span", {
|
|
7908
7950
|
className: `select-rating__star${t < p ? " is-filled" : ""}`,
|
|
7909
|
-
children: /* @__PURE__ */ m(
|
|
7951
|
+
children: /* @__PURE__ */ m(Oo, { size: r })
|
|
7910
7952
|
});
|
|
7911
7953
|
return l ? /* @__PURE__ */ m("button", {
|
|
7912
7954
|
type: "button",
|
|
@@ -7920,14 +7962,14 @@ var Do = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7920
7962
|
}, t) : /* @__PURE__ */ m("span", { children: i }, t);
|
|
7921
7963
|
})
|
|
7922
7964
|
});
|
|
7923
|
-
}),
|
|
7965
|
+
}), Ao = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
|
|
7924
7966
|
let s = Number(e), c = Number.isFinite(s) && s > 0;
|
|
7925
7967
|
return /* @__PURE__ */ h("div", {
|
|
7926
7968
|
ref: o,
|
|
7927
7969
|
...a,
|
|
7928
7970
|
className: `select-quote${i ? " " + i : ""}`,
|
|
7929
7971
|
children: [
|
|
7930
|
-
c && /* @__PURE__ */ m(
|
|
7972
|
+
c && /* @__PURE__ */ m(ko, {
|
|
7931
7973
|
value: s,
|
|
7932
7974
|
max: t,
|
|
7933
7975
|
size: 13
|
|
@@ -7942,7 +7984,7 @@ var Do = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7942
7984
|
})
|
|
7943
7985
|
]
|
|
7944
7986
|
});
|
|
7945
|
-
}),
|
|
7987
|
+
}), jo = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
|
|
7946
7988
|
let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
|
|
7947
7989
|
return /* @__PURE__ */ h("div", {
|
|
7948
7990
|
ref: i,
|
|
@@ -7964,7 +8006,7 @@ var Do = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7964
8006
|
children: ["+", o]
|
|
7965
8007
|
})]
|
|
7966
8008
|
});
|
|
7967
|
-
}),
|
|
8009
|
+
}), Mo = [
|
|
7968
8010
|
"Dom",
|
|
7969
8011
|
"Seg",
|
|
7970
8012
|
"Ter",
|
|
@@ -7972,7 +8014,7 @@ var Do = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7972
8014
|
"Qui",
|
|
7973
8015
|
"Sex",
|
|
7974
8016
|
"Sáb"
|
|
7975
|
-
],
|
|
8017
|
+
], No = [
|
|
7976
8018
|
"Janeiro",
|
|
7977
8019
|
"Fevereiro",
|
|
7978
8020
|
"Março",
|
|
@@ -7985,29 +8027,29 @@ var Do = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7985
8027
|
"Outubro",
|
|
7986
8028
|
"Novembro",
|
|
7987
8029
|
"Dezembro"
|
|
7988
|
-
],
|
|
7989
|
-
function
|
|
8030
|
+
], Po = (e) => String(e).padStart(2, "0"), Fo = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Io = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Lo = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Ro = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), zo = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
8031
|
+
function Bo(e) {
|
|
7990
8032
|
let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
|
|
7991
8033
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
|
|
7992
8034
|
}
|
|
7993
|
-
function
|
|
7994
|
-
let n = `${e.getFullYear()}-${
|
|
7995
|
-
return t ? `${n}T${
|
|
8035
|
+
function Vo(e, t) {
|
|
8036
|
+
let n = `${e.getFullYear()}-${Po(e.getMonth() + 1)}-${Po(e.getDate())}`;
|
|
8037
|
+
return t ? `${n}T${Po(e.getHours())}:${Po(e.getMinutes())}` : n;
|
|
7996
8038
|
}
|
|
7997
|
-
function
|
|
7998
|
-
let n = `${
|
|
7999
|
-
return t ? `${n} ${
|
|
8039
|
+
function Ho(e, t) {
|
|
8040
|
+
let n = `${Po(e.getDate())}/${Po(e.getMonth() + 1)}/${e.getFullYear()}`;
|
|
8041
|
+
return t ? `${n} ${Po(e.getHours())}:${Po(e.getMinutes())}` : n;
|
|
8000
8042
|
}
|
|
8001
|
-
var
|
|
8002
|
-
let b = s(), x = g ?? b, [S, C] = d(!1), w =
|
|
8003
|
-
o || (E(
|
|
8043
|
+
var Uo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeholder: i, required: a, disabled: o, error: c, hint: l, minDate: u, maxDate: f, clearable: p = !0, id: g, className: _, ...v }, y) {
|
|
8044
|
+
let b = s(), x = g ?? b, [S, C] = d(!1), w = Bo(t), [T, E] = d(() => Io(w ?? /* @__PURE__ */ new Date())), D = u ? Fo(u) : null, O = f ? Fo(f) : null, k = (e) => !!D && Fo(e) < D || !!O && Fo(e) > O, A = Lo(Io(T), -Io(T).getDay()), j = Array.from({ length: 42 }, (e, t) => Lo(A, t)), M = Fo(/* @__PURE__ */ new Date()), N = () => {
|
|
8045
|
+
o || (E(Io(w ?? /* @__PURE__ */ new Date())), C((e) => !e));
|
|
8004
8046
|
}, P = (e) => {
|
|
8005
8047
|
if (k(e)) return;
|
|
8006
8048
|
let t = new Date(e);
|
|
8007
|
-
r && t.setHours((w == null ? void 0 : w.getHours()) ?? 0, (w == null ? void 0 : w.getMinutes()) ?? 0, 0, 0), n(
|
|
8049
|
+
r && t.setHours((w == null ? void 0 : w.getHours()) ?? 0, (w == null ? void 0 : w.getMinutes()) ?? 0, 0, 0), n(Vo(t, r)), r || C(!1);
|
|
8008
8050
|
}, F = (e) => {
|
|
8009
8051
|
let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(w ?? M);
|
|
8010
|
-
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(
|
|
8052
|
+
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(Vo(o, !0));
|
|
8011
8053
|
}, I = () => {
|
|
8012
8054
|
n(""), C(!1);
|
|
8013
8055
|
}, L = /* @__PURE__ */ h("div", {
|
|
@@ -8021,7 +8063,7 @@ var Vo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8021
8063
|
"aria-haspopup": "dialog",
|
|
8022
8064
|
"aria-expanded": S,
|
|
8023
8065
|
"aria-invalid": c ? !0 : void 0,
|
|
8024
|
-
children: w ?
|
|
8066
|
+
children: w ? Ho(w, r) : /* @__PURE__ */ m("span", {
|
|
8025
8067
|
className: "select-datefield__ph",
|
|
8026
8068
|
children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
|
|
8027
8069
|
})
|
|
@@ -8058,13 +8100,13 @@ var Vo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8058
8100
|
type: "button",
|
|
8059
8101
|
className: "select-datepicker__nav",
|
|
8060
8102
|
"aria-label": "Mês anterior",
|
|
8061
|
-
onClick: () => E((e) =>
|
|
8103
|
+
onClick: () => E((e) => Ro(e, -1)),
|
|
8062
8104
|
children: /* @__PURE__ */ m(W, {})
|
|
8063
8105
|
}),
|
|
8064
8106
|
/* @__PURE__ */ h("span", {
|
|
8065
8107
|
className: "select-datepicker__monthlabel",
|
|
8066
8108
|
children: [
|
|
8067
|
-
|
|
8109
|
+
No[T.getMonth()],
|
|
8068
8110
|
" ",
|
|
8069
8111
|
T.getFullYear()
|
|
8070
8112
|
]
|
|
@@ -8073,7 +8115,7 @@ var Vo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8073
8115
|
type: "button",
|
|
8074
8116
|
className: "select-datepicker__nav",
|
|
8075
8117
|
"aria-label": "Próximo mês",
|
|
8076
|
-
onClick: () => E((e) =>
|
|
8118
|
+
onClick: () => E((e) => Ro(e, 1)),
|
|
8077
8119
|
children: /* @__PURE__ */ m(U, {})
|
|
8078
8120
|
})
|
|
8079
8121
|
]
|
|
@@ -8081,11 +8123,11 @@ var Vo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8081
8123
|
/* @__PURE__ */ h("div", {
|
|
8082
8124
|
className: "select-datepicker__grid",
|
|
8083
8125
|
role: "grid",
|
|
8084
|
-
children: [
|
|
8126
|
+
children: [Mo.map((e) => /* @__PURE__ */ m("div", {
|
|
8085
8127
|
className: "select-datepicker__weekday",
|
|
8086
8128
|
children: e
|
|
8087
8129
|
}, e)), j.map((e) => {
|
|
8088
|
-
let t = e.getMonth() !== T.getMonth(), n = !!w &&
|
|
8130
|
+
let t = e.getMonth() !== T.getMonth(), n = !!w && zo(e, w), r = "select-datepicker__daybtn" + (n ? " is-selected" : "") + (zo(e, M) && !n ? " is-today" : "") + (t ? " is-outside" : "");
|
|
8089
8131
|
return /* @__PURE__ */ m("div", {
|
|
8090
8132
|
className: "select-datepicker__day",
|
|
8091
8133
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -8107,7 +8149,7 @@ var Vo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8107
8149
|
type: "time",
|
|
8108
8150
|
className: "select-input select-datefield__time-input",
|
|
8109
8151
|
"aria-label": "Horário",
|
|
8110
|
-
value: w ? `${
|
|
8152
|
+
value: w ? `${Po(w.getHours())}:${Po(w.getMinutes())}` : "",
|
|
8111
8153
|
onChange: (e) => F(e.target.value)
|
|
8112
8154
|
})]
|
|
8113
8155
|
}),
|
|
@@ -8148,25 +8190,25 @@ var Vo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
8148
8190
|
}) : null
|
|
8149
8191
|
]
|
|
8150
8192
|
});
|
|
8151
|
-
}),
|
|
8152
|
-
function
|
|
8153
|
-
let t =
|
|
8193
|
+
}), Wo = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?$/;
|
|
8194
|
+
function Go(e) {
|
|
8195
|
+
let t = Wo.exec(e ?? "");
|
|
8154
8196
|
if (!t) return null;
|
|
8155
8197
|
let n = `${t[3]}/${t[2]}/${t[1]}`;
|
|
8156
8198
|
return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
|
|
8157
8199
|
}
|
|
8158
8200
|
//#endregion
|
|
8159
8201
|
//#region src/SelectFilterBar.tsx
|
|
8160
|
-
function
|
|
8202
|
+
function Ko(e, t) {
|
|
8161
8203
|
var n;
|
|
8162
|
-
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ?
|
|
8204
|
+
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ? Go(t) ?? t : t;
|
|
8163
8205
|
}
|
|
8164
|
-
function
|
|
8206
|
+
function qo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: s }) {
|
|
8165
8207
|
let [c, l] = d("");
|
|
8166
8208
|
o(() => {
|
|
8167
8209
|
r || l("");
|
|
8168
8210
|
}, [r]);
|
|
8169
|
-
let u = t.trim() !== "", f = u ?
|
|
8211
|
+
let u = t.trim() !== "", f = u ? Ko(e, t) : null, p = u && !!e.error, g = e.options ?? [], _ = g.length > 7, v = _ ? g.filter((e) => e.label.toLowerCase().includes(c.trim().toLowerCase())) : g;
|
|
8170
8212
|
return /* @__PURE__ */ h(Pn, {
|
|
8171
8213
|
active: r,
|
|
8172
8214
|
onClose: a,
|
|
@@ -8224,7 +8266,7 @@ function Go({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
8224
8266
|
})]
|
|
8225
8267
|
}) : e.type === "date" ? /* @__PURE__ */ m("div", {
|
|
8226
8268
|
className: "select-facet__field",
|
|
8227
|
-
children: /* @__PURE__ */ m(
|
|
8269
|
+
children: /* @__PURE__ */ m(Uo, {
|
|
8228
8270
|
value: t,
|
|
8229
8271
|
onChange: n,
|
|
8230
8272
|
placeholder: e.placeholder,
|
|
@@ -8262,7 +8304,7 @@ function Go({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
8262
8304
|
]
|
|
8263
8305
|
});
|
|
8264
8306
|
}
|
|
8265
|
-
var
|
|
8307
|
+
var Jo = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, leading: a, disabled: o, className: s, ...c }, l) {
|
|
8266
8308
|
let [u, f] = d([]), [p, g] = d(null), [_, v] = d(!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 = () => {
|
|
8267
8309
|
f([]), g(null), r();
|
|
8268
8310
|
}, T = (e) => {
|
|
@@ -8301,7 +8343,7 @@ var Ko = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
8301
8343
|
})
|
|
8302
8344
|
]
|
|
8303
8345
|
}),
|
|
8304
|
-
x.map((e) => /* @__PURE__ */ m(
|
|
8346
|
+
x.map((e) => /* @__PURE__ */ m(qo, {
|
|
8305
8347
|
filter: e,
|
|
8306
8348
|
value: t[e.key] ?? "",
|
|
8307
8349
|
onChange: (t) => n(e.key, t),
|
|
@@ -8347,7 +8389,7 @@ var Ko = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
8347
8389
|
children: [
|
|
8348
8390
|
e.label,
|
|
8349
8391
|
": ",
|
|
8350
|
-
|
|
8392
|
+
Ko(e, t[e.key] ?? ""),
|
|
8351
8393
|
/* @__PURE__ */ m("button", {
|
|
8352
8394
|
type: "button",
|
|
8353
8395
|
className: "select-filterbar__tagx",
|
|
@@ -8364,7 +8406,7 @@ var Ko = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
8364
8406
|
})]
|
|
8365
8407
|
})]
|
|
8366
8408
|
});
|
|
8367
|
-
}),
|
|
8409
|
+
}), Yo = r(function({ label: e, options: t, selected: n, onChange: r, placeholder: i = "Selecionar…", hint: a, help: o, error: s, onBlur: c, size: l = "md", className: u, ...f }, p) {
|
|
8368
8410
|
let [g, _] = d(!1), [v, y] = d(""), b = t.filter((e) => e.label.toLowerCase().includes(v.trim().toLowerCase())), x = (e) => r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]), S = n.map((e) => t.find((t) => t.value === e)).filter((e) => e != null);
|
|
8369
8411
|
return /* @__PURE__ */ h("div", {
|
|
8370
8412
|
ref: p,
|
|
@@ -8477,7 +8519,7 @@ var Ko = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
8477
8519
|
}) : null
|
|
8478
8520
|
]
|
|
8479
8521
|
});
|
|
8480
|
-
}),
|
|
8522
|
+
}), Xo = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
|
|
8481
8523
|
return /* @__PURE__ */ h("div", {
|
|
8482
8524
|
ref: c,
|
|
8483
8525
|
...s,
|
|
@@ -8509,8 +8551,8 @@ var Ko = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
8509
8551
|
})
|
|
8510
8552
|
]
|
|
8511
8553
|
});
|
|
8512
|
-
}),
|
|
8513
|
-
function
|
|
8554
|
+
}), Zo = n(null), Qo = 220, $o = 4e3, es = 8, ts = .04, ns = 5;
|
|
8555
|
+
function rs({ children: e }) {
|
|
8514
8556
|
let [t, n] = d([]), r = u(0), a = u(/* @__PURE__ */ new Map()), s = i((e) => {
|
|
8515
8557
|
n((t) => t.filter((t) => t.id !== e)), a.current.delete(e);
|
|
8516
8558
|
}, []), c = i((e) => {
|
|
@@ -8518,9 +8560,9 @@ function ts({ children: e }) {
|
|
|
8518
8560
|
t && clearTimeout(t), n((t) => t.map((t) => t.id === e ? {
|
|
8519
8561
|
...t,
|
|
8520
8562
|
exiting: !0
|
|
8521
|
-
} : t)), a.current.set(e, setTimeout(() => s(e),
|
|
8563
|
+
} : t)), a.current.set(e, setTimeout(() => s(e), Qo));
|
|
8522
8564
|
}, [s]), f = i((e, t) => {
|
|
8523
|
-
let i = ++r.current, o = (t == null ? void 0 : t.duration) ??
|
|
8565
|
+
let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? $o;
|
|
8524
8566
|
n((n) => [...n, {
|
|
8525
8567
|
id: i,
|
|
8526
8568
|
content: e,
|
|
@@ -8548,7 +8590,7 @@ function ts({ children: e }) {
|
|
|
8548
8590
|
duration: t
|
|
8549
8591
|
})
|
|
8550
8592
|
}), [f]);
|
|
8551
|
-
return /* @__PURE__ */ h(
|
|
8593
|
+
return /* @__PURE__ */ h(Zo.Provider, {
|
|
8552
8594
|
value: p,
|
|
8553
8595
|
children: [e, t.length > 0 && g(/* @__PURE__ */ m("div", {
|
|
8554
8596
|
className: "select select-toasts",
|
|
@@ -8556,8 +8598,8 @@ function ts({ children: e }) {
|
|
|
8556
8598
|
"aria-live": "polite",
|
|
8557
8599
|
"aria-label": "Notificações",
|
|
8558
8600
|
children: t.map((e, n) => {
|
|
8559
|
-
let r = t.length - 1 - n, i = e.exiting || r >=
|
|
8560
|
-
transform: `translate(-50%, ${-r *
|
|
8601
|
+
let r = t.length - 1 - n, i = e.exiting || r >= ns, a = {
|
|
8602
|
+
transform: `translate(-50%, ${-r * es}px) scale(${1 - r * ts})`,
|
|
8561
8603
|
opacity: +!i,
|
|
8562
8604
|
zIndex: 1e3 - r,
|
|
8563
8605
|
pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
|
|
@@ -8581,14 +8623,14 @@ function ts({ children: e }) {
|
|
|
8581
8623
|
}), document.body)]
|
|
8582
8624
|
});
|
|
8583
8625
|
}
|
|
8584
|
-
function
|
|
8585
|
-
let e = a(
|
|
8626
|
+
function is() {
|
|
8627
|
+
let e = a(Zo);
|
|
8586
8628
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
8587
8629
|
return e;
|
|
8588
8630
|
}
|
|
8589
8631
|
//#endregion
|
|
8590
8632
|
//#region src/SelectPreviewFrame.tsx
|
|
8591
|
-
var
|
|
8633
|
+
var as = "allow-scripts allow-same-origin allow-forms", os = 390, ss = 1280, cs = r(function({ src: e, sandbox: t = as, title: n = "Pré-visualização", height: r = 560, fill: i = !1, initialDevice: a = "desktop", showDeviceToggle: o = !0, emptyLabel: s = "Salve para gerar a pré-visualização.", onReload: l, notice: f, iframeRef: g, desktopWidth: _ = ss, className: v, ...y }, b) {
|
|
8592
8634
|
let x = Ci(e), [S, C] = d(a), [w, T] = d(0), [E, D] = d(!0), O = u(null), [k, A] = d({
|
|
8593
8635
|
w: 0,
|
|
8594
8636
|
h: 0
|
|
@@ -8606,7 +8648,7 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8606
8648
|
});
|
|
8607
8649
|
return t.observe(e), () => t.disconnect();
|
|
8608
8650
|
}, []);
|
|
8609
|
-
let j = S === "mobile" ?
|
|
8651
|
+
let j = S === "mobile" ? os : _, M = k.w > 0 ? Math.min(1, k.w / j) : 1, N = x ? `${x}${x.includes("?") ? "&" : "?"}_pv=${w}` : "", P = () => {
|
|
8610
8652
|
if (D(!0), l) {
|
|
8611
8653
|
l();
|
|
8612
8654
|
return;
|
|
@@ -8695,7 +8737,7 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8695
8737
|
})
|
|
8696
8738
|
})]
|
|
8697
8739
|
});
|
|
8698
|
-
}),
|
|
8740
|
+
}), ls = 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) {
|
|
8699
8741
|
if (a === "hero") {
|
|
8700
8742
|
let n = (e, t = "1em") => /* @__PURE__ */ m("span", {
|
|
8701
8743
|
className: "select-skeleton select-balance__skel",
|
|
@@ -8703,7 +8745,7 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8703
8745
|
width: e,
|
|
8704
8746
|
height: t
|
|
8705
8747
|
}
|
|
8706
|
-
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ m(
|
|
8748
|
+
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ m(Co, { cents: e });
|
|
8707
8749
|
return /* @__PURE__ */ m("div", {
|
|
8708
8750
|
ref: f,
|
|
8709
8751
|
...d,
|
|
@@ -8735,7 +8777,7 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8735
8777
|
className: "select-balance-hero__meta",
|
|
8736
8778
|
children: s.map((e, t) => /* @__PURE__ */ h("div", {
|
|
8737
8779
|
className: "select-balance-hero__metaitem",
|
|
8738
|
-
children: [/* @__PURE__ */ m("dt", { children: e.label }), /* @__PURE__ */ m("dd", { children: l ? n("7ch") : e.cents != null && e.cents !== "" ? /* @__PURE__ */ h(p, { children: [e.prefix, /* @__PURE__ */ m(
|
|
8780
|
+
children: [/* @__PURE__ */ m("dt", { children: e.label }), /* @__PURE__ */ m("dd", { children: l ? n("7ch") : e.cents != null && e.cents !== "" ? /* @__PURE__ */ h(p, { children: [e.prefix, /* @__PURE__ */ m(Co, { cents: e.cents })] }) : e.value ?? "—" })]
|
|
8739
8781
|
}, t))
|
|
8740
8782
|
}),
|
|
8741
8783
|
(i || c) && /* @__PURE__ */ h("div", {
|
|
@@ -8810,8 +8852,8 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8810
8852
|
className: "select-balance__heromain",
|
|
8811
8853
|
children: [/* @__PURE__ */ m("span", {
|
|
8812
8854
|
className: "select-balance__heroamount",
|
|
8813
|
-
children: /* @__PURE__ */ m(
|
|
8814
|
-
}), n != null && /* @__PURE__ */ m(
|
|
8855
|
+
children: /* @__PURE__ */ m(Co, { cents: e })
|
|
8856
|
+
}), n != null && /* @__PURE__ */ m(To, {
|
|
8815
8857
|
value: n,
|
|
8816
8858
|
caption: "vs. período anterior"
|
|
8817
8859
|
})]
|
|
@@ -8830,14 +8872,14 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8830
8872
|
children: e.label
|
|
8831
8873
|
}), /* @__PURE__ */ m("span", {
|
|
8832
8874
|
className: "select-balance__bucketamount",
|
|
8833
|
-
children: /* @__PURE__ */ m(
|
|
8875
|
+
children: /* @__PURE__ */ m(Co, { cents: e.cents })
|
|
8834
8876
|
})]
|
|
8835
8877
|
})]
|
|
8836
8878
|
}, e.label))
|
|
8837
8879
|
})]
|
|
8838
8880
|
})]
|
|
8839
8881
|
});
|
|
8840
|
-
}),
|
|
8882
|
+
}), us = 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) {
|
|
8841
8883
|
let u = n ?? e - t.reduce((e, t) => e + t.cents, 0), d = Math.max(0, e - u), f = a && e > 0 && u >= 0, g = e > 0 ? d / e * 100 : 0;
|
|
8842
8884
|
return /* @__PURE__ */ h("div", {
|
|
8843
8885
|
ref: l,
|
|
@@ -8857,7 +8899,7 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8857
8899
|
children: o ?? /* @__PURE__ */ h(p, { children: [
|
|
8858
8900
|
i,
|
|
8859
8901
|
" · ",
|
|
8860
|
-
/* @__PURE__ */ m(
|
|
8902
|
+
/* @__PURE__ */ m(Co, { cents: u })
|
|
8861
8903
|
] })
|
|
8862
8904
|
})
|
|
8863
8905
|
}), d > 0 && /* @__PURE__ */ m("span", {
|
|
@@ -8874,7 +8916,7 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8874
8916
|
"aria-hidden": "true"
|
|
8875
8917
|
}),
|
|
8876
8918
|
"Taxas ",
|
|
8877
|
-
/* @__PURE__ */ m(
|
|
8919
|
+
/* @__PURE__ */ m(Co, { cents: d }),
|
|
8878
8920
|
" (",
|
|
8879
8921
|
g.toLocaleString("pt-BR", {
|
|
8880
8922
|
maximumFractionDigits: 1,
|
|
@@ -8890,20 +8932,20 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8890
8932
|
"aria-hidden": "true"
|
|
8891
8933
|
}),
|
|
8892
8934
|
"Líquido ",
|
|
8893
|
-
/* @__PURE__ */ m(
|
|
8935
|
+
/* @__PURE__ */ m(Co, { cents: u })
|
|
8894
8936
|
]
|
|
8895
8937
|
})]
|
|
8896
8938
|
})]
|
|
8897
8939
|
}),
|
|
8898
8940
|
/* @__PURE__ */ h("div", {
|
|
8899
8941
|
className: "select-fees__row",
|
|
8900
|
-
children: [/* @__PURE__ */ m("span", { children: r }), /* @__PURE__ */ m("span", { children: /* @__PURE__ */ m(
|
|
8942
|
+
children: [/* @__PURE__ */ m("span", { children: r }), /* @__PURE__ */ m("span", { children: /* @__PURE__ */ m(Co, { cents: e }) })]
|
|
8901
8943
|
}),
|
|
8902
8944
|
t.map((e) => /* @__PURE__ */ h("div", {
|
|
8903
8945
|
className: "select-fees__row",
|
|
8904
8946
|
children: [/* @__PURE__ */ m("span", { children: e.label }), /* @__PURE__ */ h("span", {
|
|
8905
8947
|
className: "select-fees__neg",
|
|
8906
|
-
children: ["−\xA0", /* @__PURE__ */ m(
|
|
8948
|
+
children: ["−\xA0", /* @__PURE__ */ m(Co, { cents: e.cents })]
|
|
8907
8949
|
})]
|
|
8908
8950
|
}, e.label)),
|
|
8909
8951
|
/* @__PURE__ */ m("div", { className: "select-fees__divider" }),
|
|
@@ -8911,12 +8953,12 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8911
8953
|
className: "select-fees__row select-fees__row--net",
|
|
8912
8954
|
children: [/* @__PURE__ */ m("span", { children: i }), /* @__PURE__ */ m("span", {
|
|
8913
8955
|
className: "select-fees__netvalue",
|
|
8914
|
-
children: /* @__PURE__ */ m(
|
|
8956
|
+
children: /* @__PURE__ */ m(Co, { cents: u })
|
|
8915
8957
|
})]
|
|
8916
8958
|
})
|
|
8917
8959
|
]
|
|
8918
8960
|
});
|
|
8919
|
-
}),
|
|
8961
|
+
}), ds = 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) {
|
|
8920
8962
|
let g = s != null, _ = g ? {
|
|
8921
8963
|
role: "button",
|
|
8922
8964
|
tabIndex: 0,
|
|
@@ -8961,7 +9003,7 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
8961
9003
|
})
|
|
8962
9004
|
] })]
|
|
8963
9005
|
});
|
|
8964
|
-
}),
|
|
9006
|
+
}), fs = {
|
|
8965
9007
|
"pt-BR": {
|
|
8966
9008
|
severity: {
|
|
8967
9009
|
info: "Informativo",
|
|
@@ -9071,24 +9113,24 @@ var rs = "allow-scripts allow-same-origin allow-forms", is = 390, as = 1280, os
|
|
|
9071
9113
|
locked: "Disponible en un plan superior"
|
|
9072
9114
|
}
|
|
9073
9115
|
};
|
|
9074
|
-
function
|
|
9116
|
+
function ps(e) {
|
|
9075
9117
|
return e === "en" || e != null && e.startsWith("en-") ? "en" : e === "es" || e != null && e.startsWith("es-") ? "es" : "pt-BR";
|
|
9076
9118
|
}
|
|
9077
|
-
var
|
|
9119
|
+
var ms = {
|
|
9078
9120
|
info: "info",
|
|
9079
9121
|
opportunity: "success",
|
|
9080
9122
|
warning: "warning",
|
|
9081
9123
|
critical: "critical"
|
|
9082
9124
|
};
|
|
9083
|
-
function
|
|
9084
|
-
let r = new Intl.NumberFormat(
|
|
9125
|
+
function hs(e, t = "pt-BR", n = fs[ps(t)]) {
|
|
9126
|
+
let r = new Intl.NumberFormat(ps(t), {
|
|
9085
9127
|
style: "currency",
|
|
9086
9128
|
currency: e.currency,
|
|
9087
9129
|
maximumFractionDigits: 0
|
|
9088
9130
|
}), i = r.format(e.minCents / 100), a = r.format(e.maxCents / 100);
|
|
9089
9131
|
return e.minCents === e.maxCents ? n.impactAbout(a) : n.impact(`${i}${n.rangeJoin}${a}`);
|
|
9090
9132
|
}
|
|
9091
|
-
function
|
|
9133
|
+
function gs(e, t, n) {
|
|
9092
9134
|
let r = new Date(e.start), i = new Date(e.end);
|
|
9093
9135
|
if (Number.isNaN(r.getTime()) || Number.isNaN(i.getTime())) return null;
|
|
9094
9136
|
let a = new Intl.DateTimeFormat(t, {
|
|
@@ -9099,20 +9141,20 @@ function ms(e, t, n) {
|
|
|
9099
9141
|
});
|
|
9100
9142
|
return `${a.format(r)} – ${a.format(i)}`;
|
|
9101
9143
|
}
|
|
9102
|
-
var
|
|
9144
|
+
var _s = /* @__PURE__ */ new Set([
|
|
9103
9145
|
"metric",
|
|
9104
9146
|
"comparison",
|
|
9105
9147
|
"table",
|
|
9106
9148
|
"items",
|
|
9107
9149
|
"text"
|
|
9108
9150
|
]);
|
|
9109
|
-
function
|
|
9110
|
-
return
|
|
9151
|
+
function vs(e) {
|
|
9152
|
+
return _s.has(e.type);
|
|
9111
9153
|
}
|
|
9112
|
-
function
|
|
9154
|
+
function ys(e) {
|
|
9113
9155
|
return e.type === "table" || e.type === "items" || e.type === "text";
|
|
9114
9156
|
}
|
|
9115
|
-
function
|
|
9157
|
+
function bs({ children: e }) {
|
|
9116
9158
|
return /* @__PURE__ */ m(br, {
|
|
9117
9159
|
background: "surface-secondary",
|
|
9118
9160
|
borderRadius: "lg",
|
|
@@ -9120,15 +9162,15 @@ function vs({ children: e }) {
|
|
|
9120
9162
|
children: e
|
|
9121
9163
|
});
|
|
9122
9164
|
}
|
|
9123
|
-
function
|
|
9165
|
+
function xs({ block: e, renderItem: t }) {
|
|
9124
9166
|
switch (e.type) {
|
|
9125
|
-
case "metric": return /* @__PURE__ */ m(
|
|
9167
|
+
case "metric": return /* @__PURE__ */ m(bs, { children: /* @__PURE__ */ m(ds, {
|
|
9126
9168
|
bare: !0,
|
|
9127
9169
|
label: e.label,
|
|
9128
9170
|
value: e.value.display,
|
|
9129
9171
|
caption: e.hint ?? void 0
|
|
9130
9172
|
}) });
|
|
9131
|
-
case "comparison": return /* @__PURE__ */ m(
|
|
9173
|
+
case "comparison": return /* @__PURE__ */ m(bs, { children: /* @__PURE__ */ m(ds, {
|
|
9132
9174
|
bare: !0,
|
|
9133
9175
|
label: e.label,
|
|
9134
9176
|
value: e.value.display,
|
|
@@ -9181,15 +9223,15 @@ function ys({ block: e, renderItem: t }) {
|
|
|
9181
9223
|
});
|
|
9182
9224
|
}
|
|
9183
9225
|
}
|
|
9184
|
-
function
|
|
9185
|
-
let f =
|
|
9186
|
-
...
|
|
9226
|
+
function Ss({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo", locked: i = !1, lockedCta: a, badges: o, footer: s, renderItem: c, renderAction: l, methodologyOpen: u = !1, className: d }) {
|
|
9227
|
+
let f = ps(t), g = {
|
|
9228
|
+
...fs[f],
|
|
9187
9229
|
...n
|
|
9188
|
-
}, _ =
|
|
9230
|
+
}, _ = ms[e.severity] ?? "info", v = e.period ? gs(e.period, f, r) : null, y = [
|
|
9189
9231
|
e.confidence ? g.confidence[e.confidence] ?? e.confidence : null,
|
|
9190
9232
|
e.sampleSize == null ? null : g.sample(e.sampleSize.toLocaleString(f)),
|
|
9191
9233
|
v
|
|
9192
|
-
].filter((e) => !!e), b = (e.blocks ?? []).filter(
|
|
9234
|
+
].filter((e) => !!e), b = (e.blocks ?? []).filter(vs), x = e.actions ?? [];
|
|
9193
9235
|
return /* @__PURE__ */ m(br, {
|
|
9194
9236
|
as: "article",
|
|
9195
9237
|
background: "surface",
|
|
@@ -9243,7 +9285,7 @@ function bs({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
9243
9285
|
e.impact ? /* @__PURE__ */ m(xr, {
|
|
9244
9286
|
variant: "headingSm",
|
|
9245
9287
|
className: "select-insight__impact",
|
|
9246
|
-
children:
|
|
9288
|
+
children: hs(e.impact, f, g)
|
|
9247
9289
|
}) : null,
|
|
9248
9290
|
y.length && !i ? /* @__PURE__ */ m(xr, {
|
|
9249
9291
|
variant: "bodyXs",
|
|
@@ -9257,8 +9299,8 @@ function bs({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
9257
9299
|
columns: "repeat(auto-fill, minmax(12rem, 1fr))",
|
|
9258
9300
|
gap: "300",
|
|
9259
9301
|
children: b.map((e, t) => /* @__PURE__ */ m("div", {
|
|
9260
|
-
className:
|
|
9261
|
-
children: /* @__PURE__ */ m(
|
|
9302
|
+
className: ys(e) ? "select-insight__wide" : void 0,
|
|
9303
|
+
children: /* @__PURE__ */ m(xs, {
|
|
9262
9304
|
block: e,
|
|
9263
9305
|
renderItem: c
|
|
9264
9306
|
})
|
|
@@ -9280,7 +9322,7 @@ function bs({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
9280
9322
|
}) }, `${e.target ?? "text"}:${t}`))
|
|
9281
9323
|
})]
|
|
9282
9324
|
}) : null,
|
|
9283
|
-
e.methodology ? /* @__PURE__ */ m(
|
|
9325
|
+
e.methodology ? /* @__PURE__ */ m(Na, {
|
|
9284
9326
|
plain: !0,
|
|
9285
9327
|
title: g.methodology,
|
|
9286
9328
|
defaultOpen: u,
|
|
@@ -9298,7 +9340,7 @@ function bs({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
9298
9340
|
}
|
|
9299
9341
|
//#endregion
|
|
9300
9342
|
//#region src/SelectChartCard.tsx
|
|
9301
|
-
var
|
|
9343
|
+
var Cs = 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) {
|
|
9302
9344
|
let g = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
9303
9345
|
return /* @__PURE__ */ h("div", {
|
|
9304
9346
|
ref: p,
|
|
@@ -9341,7 +9383,7 @@ var xs = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1,
|
|
|
9341
9383
|
});
|
|
9342
9384
|
//#endregion
|
|
9343
9385
|
//#region src/chartUtils.ts
|
|
9344
|
-
function
|
|
9386
|
+
function ws() {
|
|
9345
9387
|
let [e, t] = d(1);
|
|
9346
9388
|
return c(() => {
|
|
9347
9389
|
let e = () => {
|
|
@@ -9352,7 +9394,7 @@ function Ss() {
|
|
|
9352
9394
|
}, []), e;
|
|
9353
9395
|
}
|
|
9354
9396
|
function Y(e) {
|
|
9355
|
-
let t = u(null), [n, r] = d(0), i =
|
|
9397
|
+
let t = u(null), [n, r] = d(0), i = ws();
|
|
9356
9398
|
return c(() => {
|
|
9357
9399
|
let e = t.current;
|
|
9358
9400
|
if (!e) return;
|
|
@@ -9369,7 +9411,7 @@ function Y(e) {
|
|
|
9369
9411
|
height: Math.round(e * i)
|
|
9370
9412
|
};
|
|
9371
9413
|
}
|
|
9372
|
-
function
|
|
9414
|
+
function Ts(e, t) {
|
|
9373
9415
|
let [n, r] = d(t);
|
|
9374
9416
|
return c(() => {
|
|
9375
9417
|
let t = e.current;
|
|
@@ -9383,15 +9425,15 @@ function Cs(e, t) {
|
|
|
9383
9425
|
return i.observe(t), () => i.disconnect();
|
|
9384
9426
|
}, [e]), n;
|
|
9385
9427
|
}
|
|
9386
|
-
function
|
|
9428
|
+
function Es(e) {
|
|
9387
9429
|
if (e <= 0) return 1;
|
|
9388
9430
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
9389
9431
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
9390
9432
|
}
|
|
9391
|
-
function
|
|
9433
|
+
function Ds(e, t = 4) {
|
|
9392
9434
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
9393
9435
|
}
|
|
9394
|
-
function
|
|
9436
|
+
function Os(e, t = 5) {
|
|
9395
9437
|
if (!(e > 0)) return {
|
|
9396
9438
|
max: 1,
|
|
9397
9439
|
values: [0, 1]
|
|
@@ -9403,10 +9445,10 @@ function Es(e, t = 5) {
|
|
|
9403
9445
|
values: s
|
|
9404
9446
|
};
|
|
9405
9447
|
}
|
|
9406
|
-
function
|
|
9448
|
+
function ks(e) {
|
|
9407
9449
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
9408
9450
|
}
|
|
9409
|
-
function
|
|
9451
|
+
function As(e) {
|
|
9410
9452
|
let t = e.length;
|
|
9411
9453
|
if (t === 0) return "";
|
|
9412
9454
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -9430,23 +9472,23 @@ function Os(e) {
|
|
|
9430
9472
|
}
|
|
9431
9473
|
return s;
|
|
9432
9474
|
}
|
|
9433
|
-
function
|
|
9475
|
+
function js(e, t) {
|
|
9434
9476
|
if (e.length === 0) return "";
|
|
9435
9477
|
let n = e[0], r = e[e.length - 1];
|
|
9436
|
-
return `${
|
|
9478
|
+
return `${As(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
9437
9479
|
}
|
|
9438
|
-
function
|
|
9439
|
-
return e.length === 0 || t.length === 0 ? "" : `${
|
|
9480
|
+
function Ms(e, t) {
|
|
9481
|
+
return e.length === 0 || t.length === 0 ? "" : `${As(e)} ${As([...t].reverse()).replace(/^M/, "L")} Z`;
|
|
9440
9482
|
}
|
|
9441
|
-
function
|
|
9483
|
+
function Ns(e, t, n, r) {
|
|
9442
9484
|
let i = (r - 90) * Math.PI / 180;
|
|
9443
9485
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
9444
9486
|
}
|
|
9445
|
-
function
|
|
9446
|
-
let [o, s] =
|
|
9487
|
+
function Ps(e, t, n, r, i, a) {
|
|
9488
|
+
let [o, s] = Ns(e, t, n, i), [c, l] = Ns(e, t, n, a), [u, d] = Ns(e, t, r, a), [f, p] = Ns(e, t, r, i), m = +(a - i > 180);
|
|
9447
9489
|
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`;
|
|
9448
9490
|
}
|
|
9449
|
-
var
|
|
9491
|
+
var Fs = [
|
|
9450
9492
|
"var(--select-chart-1)",
|
|
9451
9493
|
"var(--select-chart-2)",
|
|
9452
9494
|
"var(--select-chart-3)",
|
|
@@ -9454,13 +9496,13 @@ var Ns = [
|
|
|
9454
9496
|
"var(--select-chart-5)"
|
|
9455
9497
|
];
|
|
9456
9498
|
function X(e) {
|
|
9457
|
-
return
|
|
9499
|
+
return Fs[e % Fs.length];
|
|
9458
9500
|
}
|
|
9459
9501
|
function Z(e) {
|
|
9460
9502
|
let t = Math.abs(e);
|
|
9461
9503
|
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));
|
|
9462
9504
|
}
|
|
9463
|
-
var
|
|
9505
|
+
var Is = {
|
|
9464
9506
|
top: 16,
|
|
9465
9507
|
right: 22,
|
|
9466
9508
|
bottom: 32,
|
|
@@ -9468,7 +9510,7 @@ var Ps = {
|
|
|
9468
9510
|
};
|
|
9469
9511
|
//#endregion
|
|
9470
9512
|
//#region src/SelectSparkline.tsx
|
|
9471
|
-
function
|
|
9513
|
+
function Ls({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
9472
9514
|
let { ref: a, width: o } = Y(n), c = t ?? X(0), l = s(), u = null;
|
|
9473
9515
|
if (o > 0 && e.length > 1) {
|
|
9474
9516
|
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];
|
|
@@ -9495,11 +9537,11 @@ function Fs({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
9495
9537
|
})]
|
|
9496
9538
|
}) }),
|
|
9497
9539
|
/* @__PURE__ */ m("path", {
|
|
9498
|
-
d:
|
|
9540
|
+
d: js(a, n - 4),
|
|
9499
9541
|
fill: `url(#${l}-sa)`
|
|
9500
9542
|
}),
|
|
9501
9543
|
/* @__PURE__ */ m("path", {
|
|
9502
|
-
d:
|
|
9544
|
+
d: As(a),
|
|
9503
9545
|
fill: "none",
|
|
9504
9546
|
stroke: c,
|
|
9505
9547
|
strokeWidth: 2,
|
|
@@ -9578,7 +9620,7 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
9578
9620
|
}, t))]
|
|
9579
9621
|
});
|
|
9580
9622
|
}
|
|
9581
|
-
function
|
|
9623
|
+
function Rs({ tip: e, onDismiss: t }) {
|
|
9582
9624
|
return o(() => {
|
|
9583
9625
|
if (e) return window.addEventListener("scroll", t, !0), window.addEventListener("resize", t), () => {
|
|
9584
9626
|
window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", t);
|
|
@@ -9591,8 +9633,8 @@ function Is({ tip: e, onDismiss: t }) {
|
|
|
9591
9633
|
}
|
|
9592
9634
|
//#endregion
|
|
9593
9635
|
//#region src/SelectBarChart.tsx
|
|
9594
|
-
function
|
|
9595
|
-
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f =
|
|
9636
|
+
function zs({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
9637
|
+
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f = Es(Math.max(0, ...e.map((e) => e.value))), p = Is, g = Math.max(0, c - p.left - p.right), _ = t - p.top - p.bottom, v = e.length > 0 ? g / e.length : 0, y = Math.min(v * .62, 44), b = p.top + _, x = (e) => b - e / f * _;
|
|
9596
9638
|
return /* @__PURE__ */ h("div", {
|
|
9597
9639
|
...a,
|
|
9598
9640
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -9618,7 +9660,7 @@ function Ls({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
9618
9660
|
stopOpacity: .62
|
|
9619
9661
|
})]
|
|
9620
9662
|
}) }),
|
|
9621
|
-
|
|
9663
|
+
Ds(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9622
9664
|
x1: p.left,
|
|
9623
9665
|
x2: c - p.right,
|
|
9624
9666
|
y1: x(e),
|
|
@@ -9668,8 +9710,8 @@ function Ls({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
9668
9710
|
}
|
|
9669
9711
|
//#endregion
|
|
9670
9712
|
//#region src/SelectLineChart.tsx
|
|
9671
|
-
function
|
|
9672
|
-
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } =
|
|
9713
|
+
function Bs({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1, className: a, ...o }) {
|
|
9714
|
+
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } = Os(Math.max(0, ...e.flatMap((e) => e.data.filter((e) => Number.isFinite(e))))), y = Is, b = Math.max(0, l - y.left - y.right), x = n - y.top - y.bottom, S = t.length, C = (e) => y.left + (S <= 1 ? b / 2 : e / (S - 1) * b), w = (e) => y.top + x - e / _ * x, T = S > 1 ? b / (S - 1) : b, E = Math.max(1, Math.ceil(S / 7)), D = y.top + x;
|
|
9673
9715
|
return /* @__PURE__ */ h("div", {
|
|
9674
9716
|
...o,
|
|
9675
9717
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -9725,11 +9767,11 @@ function Rs({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
9725
9767
|
})).sort((e, t) => Number(!!t.s.dashed) - Number(!!e.s.dashed)).map(({ s: e, si: t }) => {
|
|
9726
9768
|
let n = e.color ?? X(t), r = e.data.slice(0, S).map((e, t) => [C(t), w(e)]);
|
|
9727
9769
|
return /* @__PURE__ */ h("g", { children: [i && !e.dashed && /* @__PURE__ */ m("path", {
|
|
9728
|
-
d:
|
|
9770
|
+
d: js(r, D),
|
|
9729
9771
|
fill: `url(#${f}-a${t})`,
|
|
9730
9772
|
className: "select-chart__area"
|
|
9731
9773
|
}), /* @__PURE__ */ m("path", {
|
|
9732
|
-
d:
|
|
9774
|
+
d: As(r),
|
|
9733
9775
|
fill: "none",
|
|
9734
9776
|
stroke: n,
|
|
9735
9777
|
strokeWidth: e.dashed ? 1.75 : 2.25,
|
|
@@ -9791,8 +9833,8 @@ function Rs({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
9791
9833
|
}
|
|
9792
9834
|
//#endregion
|
|
9793
9835
|
//#region src/SelectStackedArea.tsx
|
|
9794
|
-
function
|
|
9795
|
-
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = Array(g).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y =
|
|
9836
|
+
function Vs({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
9837
|
+
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = Array(g).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y = Es(Math.max(0, ..._)), b = Is, x = Math.max(0, c - b.left - b.right), S = n - b.top - b.bottom, C = (e) => b.left + (g <= 1 ? x / 2 : e / (g - 1) * x), w = (e) => b.top + S - e / y * S, T = g > 1 ? x / (g - 1) : x, E = Math.max(1, Math.ceil(g / 7)), D = b.top + S, O = v[v.length - 1];
|
|
9796
9838
|
return /* @__PURE__ */ h("div", {
|
|
9797
9839
|
...a,
|
|
9798
9840
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -9821,7 +9863,7 @@ function zs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
9821
9863
|
})]
|
|
9822
9864
|
}, t);
|
|
9823
9865
|
}) }),
|
|
9824
|
-
|
|
9866
|
+
Ds(y).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9825
9867
|
x1: b.left,
|
|
9826
9868
|
x2: c - b.right,
|
|
9827
9869
|
y1: w(e),
|
|
@@ -9840,10 +9882,10 @@ function zs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
9840
9882
|
return /* @__PURE__ */ h("g", {
|
|
9841
9883
|
className: "select-chart__area",
|
|
9842
9884
|
children: [/* @__PURE__ */ m("path", {
|
|
9843
|
-
d:
|
|
9885
|
+
d: Ms(i, a),
|
|
9844
9886
|
fill: `url(#${u}-b${n})`
|
|
9845
9887
|
}), /* @__PURE__ */ m("path", {
|
|
9846
|
-
d:
|
|
9888
|
+
d: As(i),
|
|
9847
9889
|
fill: "none",
|
|
9848
9890
|
stroke: r,
|
|
9849
9891
|
strokeWidth: 1.5,
|
|
@@ -9897,11 +9939,11 @@ function zs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
9897
9939
|
}
|
|
9898
9940
|
//#endregion
|
|
9899
9941
|
//#region src/SelectComboChart.tsx
|
|
9900
|
-
function
|
|
9942
|
+
function Hs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
|
|
9901
9943
|
let { ref: l, width: u } = Y(r), f = Q(), p = s(), [g, _] = d(null), v = {
|
|
9902
|
-
...
|
|
9944
|
+
...Is,
|
|
9903
9945
|
right: 58
|
|
9904
|
-
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S =
|
|
9946
|
+
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = Es(Math.max(0, ...t.data)), C = Es(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)]);
|
|
9905
9947
|
return /* @__PURE__ */ h("div", {
|
|
9906
9948
|
...c,
|
|
9907
9949
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -9927,7 +9969,7 @@ function Bs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
9927
9969
|
stopOpacity: .55
|
|
9928
9970
|
})]
|
|
9929
9971
|
}) }),
|
|
9930
|
-
|
|
9972
|
+
Ds(S).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9931
9973
|
x1: v.left,
|
|
9932
9974
|
x2: u - v.right,
|
|
9933
9975
|
y1: A(e),
|
|
@@ -9941,7 +9983,7 @@ function Bs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
9941
9983
|
textAnchor: "end",
|
|
9942
9984
|
children: i(e)
|
|
9943
9985
|
})] }, t)),
|
|
9944
|
-
|
|
9986
|
+
Ds(C).map((e, t) => /* @__PURE__ */ m("text", {
|
|
9945
9987
|
x: u - 4,
|
|
9946
9988
|
y: j(e),
|
|
9947
9989
|
className: "select-chart__ylabel",
|
|
@@ -9970,7 +10012,7 @@ function Bs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
9970
10012
|
className: "select-chart__crosshair"
|
|
9971
10013
|
}),
|
|
9972
10014
|
/* @__PURE__ */ m("path", {
|
|
9973
|
-
d:
|
|
10015
|
+
d: As(N),
|
|
9974
10016
|
fill: "none",
|
|
9975
10017
|
stroke: O,
|
|
9976
10018
|
strokeWidth: 2.5,
|
|
@@ -10028,8 +10070,8 @@ function Bs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
10028
10070
|
}
|
|
10029
10071
|
//#endregion
|
|
10030
10072
|
//#region src/SelectDonut.tsx
|
|
10031
|
-
var
|
|
10032
|
-
let p = Q(), g = s(), _ = u(null), v =
|
|
10073
|
+
var Us = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r = Z, centerLabel: i, legend: a = !0, gap: o = 2, pie: c = !1, className: l, ...d }, f) {
|
|
10074
|
+
let p = Q(), g = s(), _ = u(null), v = Ts(_, 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;
|
|
10033
10075
|
return /* @__PURE__ */ h("div", {
|
|
10034
10076
|
ref: f,
|
|
10035
10077
|
...d,
|
|
@@ -10072,7 +10114,7 @@ var Vs = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
10072
10114
|
w += e.value;
|
|
10073
10115
|
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);
|
|
10074
10116
|
return /* @__PURE__ */ m("path", {
|
|
10075
|
-
d:
|
|
10117
|
+
d: Ps(b, x, S, C, c, l),
|
|
10076
10118
|
fill: `url(#${g}-s${t})`,
|
|
10077
10119
|
className: "select-chart__seg",
|
|
10078
10120
|
onMouseEnter: () => {
|
|
@@ -10120,9 +10162,9 @@ var Vs = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
10120
10162
|
/* @__PURE__ */ m($, { tip: p.tip })
|
|
10121
10163
|
]
|
|
10122
10164
|
});
|
|
10123
|
-
}),
|
|
10124
|
-
function
|
|
10125
|
-
let { ref: u, width: d } = Y(n), f = Q(), p = s(), g = t.length, _ = e.length || 1, v = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), { max: y, values: b } =
|
|
10165
|
+
}), Ws = 6.4, Gs = 12;
|
|
10166
|
+
function Ks({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, marker: a, tooltip: o, className: c, ...l }) {
|
|
10167
|
+
let { ref: u, width: d } = Y(n), f = Q(), p = s(), g = t.length, _ = e.length || 1, v = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), { max: y, values: b } = Os(i ? Math.max(0, ...v) : Math.max(0, ...e.flatMap((e) => e.data)), 4), x = Is, S = Math.max(0, d - x.left - x.right), C = n - x.top - x.bottom, w = x.top + C, T = g ? S / g : 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, g)), A = (e, t) => e.pattern === "hatch" ? `url(#${p}-p${t})` : `url(#${p}-c${t})`, j = a && g > 0 ? Math.min(g - 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 * Ws + Gs) / T)) : 1, P = j ?? 0, F = (e) => N === 1 || ((e - P) % N + N) % N === 0, I = (t, n) => {
|
|
10126
10168
|
if (o) {
|
|
10127
10169
|
let e = o(t);
|
|
10128
10170
|
return e ? {
|
|
@@ -10289,7 +10331,7 @@ function Ws({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
10289
10331
|
}
|
|
10290
10332
|
//#endregion
|
|
10291
10333
|
//#region src/SelectChartLegend.tsx
|
|
10292
|
-
function
|
|
10334
|
+
function qs({ items: e, className: t, ...n }) {
|
|
10293
10335
|
return /* @__PURE__ */ m("div", {
|
|
10294
10336
|
...n,
|
|
10295
10337
|
className: `select-chartlegend${t ? " " + t : ""}`,
|
|
@@ -10318,7 +10360,7 @@ function Gs({ items: e, className: t, ...n }) {
|
|
|
10318
10360
|
}
|
|
10319
10361
|
//#endregion
|
|
10320
10362
|
//#region src/SelectShareBar.tsx
|
|
10321
|
-
function
|
|
10363
|
+
function Js({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm", onSelect: a, selected: o, hint: s, className: c, ...l }) {
|
|
10322
10364
|
let u = e.map((e, t) => ({
|
|
10323
10365
|
...e,
|
|
10324
10366
|
key: e.key ?? e.label,
|
|
@@ -10423,7 +10465,7 @@ function Ks({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm",
|
|
|
10423
10465
|
}
|
|
10424
10466
|
//#endregion
|
|
10425
10467
|
//#region src/SelectRing.tsx
|
|
10426
|
-
var
|
|
10468
|
+
var Ys = 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) {
|
|
10427
10469
|
let p = t > 0 ? t : 100, g = 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 = {
|
|
10428
10470
|
"--select-ring-size": `${n / 16}rem`,
|
|
10429
10471
|
...u
|
|
@@ -10467,7 +10509,7 @@ var qs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10467
10509
|
})]
|
|
10468
10510
|
})]
|
|
10469
10511
|
});
|
|
10470
|
-
}),
|
|
10512
|
+
}), Xs = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
|
|
10471
10513
|
let l = (t) => {
|
|
10472
10514
|
let n = e[t];
|
|
10473
10515
|
return n != null && n.state !== "upcoming";
|
|
@@ -10525,7 +10567,7 @@ var qs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10525
10567
|
})
|
|
10526
10568
|
})
|
|
10527
10569
|
});
|
|
10528
|
-
}),
|
|
10570
|
+
}), Zs = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
|
|
10529
10571
|
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;
|
|
10530
10572
|
return /* @__PURE__ */ h("span", {
|
|
10531
10573
|
ref: o,
|
|
@@ -10541,7 +10583,7 @@ var qs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10541
10583
|
children: l
|
|
10542
10584
|
})]
|
|
10543
10585
|
});
|
|
10544
|
-
}),
|
|
10586
|
+
}), Qs = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
|
|
10545
10587
|
return /* @__PURE__ */ m("span", {
|
|
10546
10588
|
ref: a,
|
|
10547
10589
|
"aria-hidden": "true",
|
|
@@ -10549,7 +10591,7 @@ var qs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10549
10591
|
className: `select-icontile select-icontile--${t} select-icontile--${n}${r ? " " + r : ""}`,
|
|
10550
10592
|
children: e
|
|
10551
10593
|
});
|
|
10552
|
-
}),
|
|
10594
|
+
}), $s = r(function({ tone: e = "neutral", media: t, eyebrow: n, title: r, description: i, actions: a, actionsPlacement: o = "below", aside: s, children: c, className: l, ...u }, d) {
|
|
10553
10595
|
let f = a != null && o === "end";
|
|
10554
10596
|
return /* @__PURE__ */ m("section", {
|
|
10555
10597
|
ref: d,
|
|
@@ -10597,7 +10639,7 @@ var qs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10597
10639
|
})]
|
|
10598
10640
|
})
|
|
10599
10641
|
});
|
|
10600
|
-
}),
|
|
10642
|
+
}), ec = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
|
|
10601
10643
|
return /* @__PURE__ */ h("article", {
|
|
10602
10644
|
ref: l,
|
|
10603
10645
|
...c,
|
|
@@ -10632,7 +10674,7 @@ var qs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10632
10674
|
})]
|
|
10633
10675
|
})]
|
|
10634
10676
|
});
|
|
10635
|
-
}),
|
|
10677
|
+
}), tc = r(function({ items: e, order: t = "label-first", columns: n, className: r, ...i }, a) {
|
|
10636
10678
|
return /* @__PURE__ */ m("dl", {
|
|
10637
10679
|
ref: a,
|
|
10638
10680
|
...i,
|
|
@@ -10655,7 +10697,7 @@ var qs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10655
10697
|
]
|
|
10656
10698
|
}, e.key ?? t))
|
|
10657
10699
|
});
|
|
10658
|
-
}),
|
|
10700
|
+
}), nc = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
|
|
10659
10701
|
let o = (t ?? "").replace(/\D/g, "").slice(-4);
|
|
10660
10702
|
return /* @__PURE__ */ h("div", {
|
|
10661
10703
|
ref: a,
|
|
@@ -10698,7 +10740,7 @@ var qs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10698
10740
|
})
|
|
10699
10741
|
]
|
|
10700
10742
|
});
|
|
10701
|
-
}),
|
|
10743
|
+
}), rc = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
|
|
10702
10744
|
let s = Math.max(1, ...e.map((e) => e.value));
|
|
10703
10745
|
return /* @__PURE__ */ m("div", {
|
|
10704
10746
|
ref: o,
|
|
@@ -10740,19 +10782,19 @@ var qs = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
10740
10782
|
});
|
|
10741
10783
|
//#endregion
|
|
10742
10784
|
//#region src/SelectGauge.tsx
|
|
10743
|
-
function
|
|
10785
|
+
function ic(e) {
|
|
10744
10786
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
10745
10787
|
}
|
|
10746
|
-
function
|
|
10788
|
+
function ac(e, t, n, r) {
|
|
10747
10789
|
let i = Math.PI + r * Math.PI;
|
|
10748
10790
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
10749
10791
|
}
|
|
10750
|
-
function
|
|
10751
|
-
let [a, o] =
|
|
10792
|
+
function oc(e, t, n, r, i) {
|
|
10793
|
+
let [a, o] = ac(e, t, n, r), [s, c] = ac(e, t, n, i);
|
|
10752
10794
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
10753
10795
|
}
|
|
10754
|
-
var
|
|
10755
|
-
let u =
|
|
10796
|
+
var sc = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, cc = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = sc, className: s, ...c }, l) {
|
|
10797
|
+
let u = ic(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, g = r / 2, _ = r / 2, v = _ + f, y = On({
|
|
10756
10798
|
value: u,
|
|
10757
10799
|
format: o
|
|
10758
10800
|
});
|
|
@@ -10775,13 +10817,13 @@ var ac = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10775
10817
|
"aria-hidden": "true",
|
|
10776
10818
|
children: [/* @__PURE__ */ m("path", {
|
|
10777
10819
|
className: "select-gauge__track",
|
|
10778
|
-
d:
|
|
10820
|
+
d: oc(g, _, p, 0, 1),
|
|
10779
10821
|
fill: "none",
|
|
10780
10822
|
strokeWidth: d,
|
|
10781
10823
|
strokeLinecap: "round"
|
|
10782
10824
|
}), u > 0 && /* @__PURE__ */ m("path", {
|
|
10783
10825
|
className: "select-gauge__arc",
|
|
10784
|
-
d:
|
|
10826
|
+
d: oc(g, _, p, 0, u / 100),
|
|
10785
10827
|
fill: "none",
|
|
10786
10828
|
stroke: a ?? "var(--select-chart-1)",
|
|
10787
10829
|
strokeWidth: d,
|
|
@@ -10804,7 +10846,7 @@ var ac = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10804
10846
|
children: n
|
|
10805
10847
|
})]
|
|
10806
10848
|
});
|
|
10807
|
-
}),
|
|
10849
|
+
}), lc = r(function({ columns: e, rows: n, format: r = Z, formatValue: i, color: a = "var(--select-chart-1)", showValues: o = !0, min: s, max: c, cellSize: l = 40, maxCellSize: u = 96, cellHeight: d = 30, className: f, ...p }, g) {
|
|
10808
10850
|
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 = {
|
|
10809
10851
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
10810
10852
|
width: "fit-content",
|
|
@@ -10864,12 +10906,12 @@ var ac = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10864
10906
|
}, c);
|
|
10865
10907
|
})] }, n.label))
|
|
10866
10908
|
]
|
|
10867
|
-
}), /* @__PURE__ */ m(
|
|
10909
|
+
}), /* @__PURE__ */ m(Rs, {
|
|
10868
10910
|
tip: _.tip,
|
|
10869
10911
|
onDismiss: _.hide
|
|
10870
10912
|
})]
|
|
10871
10913
|
});
|
|
10872
|
-
}),
|
|
10914
|
+
}), uc = r(function({ tiles: e, color: t = "var(--select-chart-1)", tileSize: n = 36, gap: r = 5, format: i = (e) => String(e), legend: a = !0, className: o, style: s, ...c }, l) {
|
|
10873
10915
|
let u = Q(), d = Math.max(0, ...e.map((e) => e.value ?? 0)), f = Math.max(0, ...e.map((e) => e.col)) + 1, p = Math.max(0, ...e.map((e) => e.row)) + 1, g = n + r, _ = {
|
|
10874
10916
|
width: f * g - r,
|
|
10875
10917
|
height: p * g - r
|
|
@@ -10931,13 +10973,13 @@ var ac = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
10931
10973
|
/* @__PURE__ */ m("span", { children: "mais" })
|
|
10932
10974
|
]
|
|
10933
10975
|
}),
|
|
10934
|
-
/* @__PURE__ */ m(
|
|
10976
|
+
/* @__PURE__ */ m(Rs, {
|
|
10935
10977
|
tip: u.tip,
|
|
10936
10978
|
onDismiss: u.hide
|
|
10937
10979
|
})
|
|
10938
10980
|
]
|
|
10939
10981
|
});
|
|
10940
|
-
}),
|
|
10982
|
+
}), dc = [
|
|
10941
10983
|
{
|
|
10942
10984
|
key: "RR",
|
|
10943
10985
|
label: "RR",
|
|
@@ -11130,7 +11172,7 @@ var ac = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
11130
11172
|
];
|
|
11131
11173
|
//#endregion
|
|
11132
11174
|
//#region src/SelectProgressList.tsx
|
|
11133
|
-
function
|
|
11175
|
+
function fc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1, max: a }) {
|
|
11134
11176
|
if (e.length === 0) return /* @__PURE__ */ m("div", {
|
|
11135
11177
|
className: "select-progresslist__empty",
|
|
11136
11178
|
children: r
|
|
@@ -11181,7 +11223,7 @@ function uc({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
11181
11223
|
}
|
|
11182
11224
|
//#endregion
|
|
11183
11225
|
//#region src/SelectRadialBar.tsx
|
|
11184
|
-
var
|
|
11226
|
+
var pc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, mc = 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) {
|
|
11185
11227
|
let d = s(), f = t / 2, p = t / 2;
|
|
11186
11228
|
return /* @__PURE__ */ h("div", {
|
|
11187
11229
|
ref: u,
|
|
@@ -11221,7 +11263,7 @@ var dc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, fc = r(f
|
|
|
11221
11263
|
}) }), e.map((e, i) => {
|
|
11222
11264
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
11223
11265
|
if (a <= n / 2) return null;
|
|
11224
|
-
let o =
|
|
11266
|
+
let o = pc(e.value);
|
|
11225
11267
|
return /* @__PURE__ */ h("g", {
|
|
11226
11268
|
transform: `rotate(-90 ${f} ${p})`,
|
|
11227
11269
|
children: [/* @__PURE__ */ m("circle", {
|
|
@@ -11250,7 +11292,7 @@ var dc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, fc = r(f
|
|
|
11250
11292
|
className: "select-radial__center",
|
|
11251
11293
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ m("strong", {
|
|
11252
11294
|
className: "select-radial__value",
|
|
11253
|
-
children: i(
|
|
11295
|
+
children: i(pc(e[0].value))
|
|
11254
11296
|
}) : null)
|
|
11255
11297
|
})]
|
|
11256
11298
|
}), o && /* @__PURE__ */ m("ul", {
|
|
@@ -11268,15 +11310,15 @@ var dc = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, fc = r(f
|
|
|
11268
11310
|
}),
|
|
11269
11311
|
/* @__PURE__ */ m("span", {
|
|
11270
11312
|
className: "select-donut__legval",
|
|
11271
|
-
children: i(
|
|
11313
|
+
children: i(pc(e.value))
|
|
11272
11314
|
})
|
|
11273
11315
|
]
|
|
11274
11316
|
}, t))
|
|
11275
11317
|
})]
|
|
11276
11318
|
});
|
|
11277
|
-
}),
|
|
11278
|
-
function
|
|
11279
|
-
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Y(d), g = Q(), _ = s(), v = c && c > 0 ? c :
|
|
11319
|
+
}), hc = 6.1, gc = 12, _c = 56, vc = .4;
|
|
11320
|
+
function yc({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
|
|
11321
|
+
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Y(d), g = Q(), _ = s(), v = c && c > 0 ? c : Es(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(_c, y * hc + gc), Math.max(_c, p * vc)), x = o ?? b, S = Math.max(3, Math.floor((x - gc) / hc)), 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));
|
|
11280
11322
|
return /* @__PURE__ */ h("div", {
|
|
11281
11323
|
...u,
|
|
11282
11324
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -11305,7 +11347,7 @@ function _c({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
11305
11347
|
})]
|
|
11306
11348
|
}, t);
|
|
11307
11349
|
}) }),
|
|
11308
|
-
|
|
11350
|
+
Ds(v).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
11309
11351
|
x1: O(e),
|
|
11310
11352
|
x2: O(e),
|
|
11311
11353
|
y1: 6,
|
|
@@ -11351,7 +11393,7 @@ function _c({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
11351
11393
|
onMouseLeave: g.hide
|
|
11352
11394
|
}),
|
|
11353
11395
|
/* @__PURE__ */ h("text", {
|
|
11354
|
-
x: x -
|
|
11396
|
+
x: x - gc / 2,
|
|
11355
11397
|
y: n,
|
|
11356
11398
|
className: "select-chart__ylabel",
|
|
11357
11399
|
dominantBaseline: "middle",
|
|
@@ -11366,7 +11408,7 @@ function _c({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
11366
11408
|
}
|
|
11367
11409
|
//#endregion
|
|
11368
11410
|
//#region src/SelectWaterfall.tsx
|
|
11369
|
-
function
|
|
11411
|
+
function bc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11370
11412
|
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
11371
11413
|
if (e.total) return u = e.value, {
|
|
11372
11414
|
...e,
|
|
@@ -11379,7 +11421,7 @@ function vc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11379
11421
|
start: t,
|
|
11380
11422
|
end: u
|
|
11381
11423
|
};
|
|
11382
|
-
}), f =
|
|
11424
|
+
}), f = Es(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = Is, g = Math.max(0, o - p.left - p.right), _ = t - p.top - p.bottom, v = p.top + _, y = e.length, b = y ? g / y : 0, x = Math.min(b * .6, 46), S = (e) => v - e / f * _, C = {
|
|
11383
11425
|
total: "var(--select-chart-1)",
|
|
11384
11426
|
inc: "var(--select-chart-4)",
|
|
11385
11427
|
dec: "var(--select-chart-3)"
|
|
@@ -11413,7 +11455,7 @@ function vc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11413
11455
|
stopOpacity: .62
|
|
11414
11456
|
})]
|
|
11415
11457
|
}, e)) }),
|
|
11416
|
-
|
|
11458
|
+
Ds(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
11417
11459
|
x1: p.left,
|
|
11418
11460
|
x2: o - p.right,
|
|
11419
11461
|
y1: S(e),
|
|
@@ -11481,7 +11523,7 @@ function vc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11481
11523
|
}
|
|
11482
11524
|
//#endregion
|
|
11483
11525
|
//#region src/SelectBullet.tsx
|
|
11484
|
-
var
|
|
11526
|
+
var xc = (e) => Math.max(0, Math.min(100, e)), Sc = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
11485
11527
|
return /* @__PURE__ */ m("div", {
|
|
11486
11528
|
ref: i,
|
|
11487
11529
|
...r,
|
|
@@ -11519,12 +11561,12 @@ var yc = (e) => Math.max(0, Math.min(100, e)), bc = r(function({ items: e, forma
|
|
|
11519
11561
|
children: [/* @__PURE__ */ m("span", {
|
|
11520
11562
|
className: "select-bullet__fill",
|
|
11521
11563
|
style: {
|
|
11522
|
-
width: `${
|
|
11564
|
+
width: `${xc(e.value / i * 100)}%`,
|
|
11523
11565
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
11524
11566
|
}
|
|
11525
11567
|
}), /* @__PURE__ */ m("span", {
|
|
11526
11568
|
className: "select-bullet__tick",
|
|
11527
|
-
style: { left: `${
|
|
11569
|
+
style: { left: `${xc(e.target / i * 100)}%` }
|
|
11528
11570
|
})]
|
|
11529
11571
|
})]
|
|
11530
11572
|
}, `${e.label}-${n}`);
|
|
@@ -11533,7 +11575,7 @@ var yc = (e) => Math.max(0, Math.min(100, e)), bc = r(function({ items: e, forma
|
|
|
11533
11575
|
});
|
|
11534
11576
|
//#endregion
|
|
11535
11577
|
//#region src/SelectTreemap.tsx
|
|
11536
|
-
function
|
|
11578
|
+
function Cc(e, t, n) {
|
|
11537
11579
|
let r = [], i = (e, t) => {
|
|
11538
11580
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
11539
11581
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -11584,8 +11626,8 @@ function xc(e, t, n) {
|
|
|
11584
11626
|
};
|
|
11585
11627
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
11586
11628
|
}
|
|
11587
|
-
function
|
|
11588
|
-
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ?
|
|
11629
|
+
function wc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11630
|
+
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? Cc(u.map((t) => e[t].value), o, t) : [];
|
|
11589
11631
|
return /* @__PURE__ */ h("div", {
|
|
11590
11632
|
...i,
|
|
11591
11633
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -11655,8 +11697,8 @@ function Sc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11655
11697
|
}
|
|
11656
11698
|
//#endregion
|
|
11657
11699
|
//#region src/SelectScatter.tsx
|
|
11658
|
-
function
|
|
11659
|
-
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p =
|
|
11700
|
+
function Tc({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
11701
|
+
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p = Es(i ?? Math.max(0, ...f.map((e) => e.x))), g = Es(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = Is, y = Math.max(0, u - v.left - v.right), b = t - v.top - v.bottom, x = v.top + b, S = (e) => v.left + e / p * y, C = (e) => x - e / g * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(_) * (o - 4) : 4.5;
|
|
11660
11702
|
return /* @__PURE__ */ h("div", {
|
|
11661
11703
|
...c,
|
|
11662
11704
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -11666,7 +11708,7 @@ function Cc({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
11666
11708
|
height: t,
|
|
11667
11709
|
className: "select-chart",
|
|
11668
11710
|
children: [
|
|
11669
|
-
|
|
11711
|
+
Ds(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
11670
11712
|
x1: v.left,
|
|
11671
11713
|
x2: u - v.right,
|
|
11672
11714
|
y1: C(e),
|
|
@@ -11680,7 +11722,7 @@ function Cc({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
11680
11722
|
textAnchor: "end",
|
|
11681
11723
|
children: r(e)
|
|
11682
11724
|
})] }, `y${t}`)),
|
|
11683
|
-
|
|
11725
|
+
Ds(p).map((e, r, i) => /* @__PURE__ */ m("text", {
|
|
11684
11726
|
x: S(e),
|
|
11685
11727
|
y: t - v.bottom + 16,
|
|
11686
11728
|
className: "select-chart__xlabel",
|
|
@@ -11727,8 +11769,8 @@ function Cc({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
11727
11769
|
}
|
|
11728
11770
|
//#endregion
|
|
11729
11771
|
//#region src/SelectRadar.tsx
|
|
11730
|
-
var
|
|
11731
|
-
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ??
|
|
11772
|
+
var Ec = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
|
|
11773
|
+
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? Es(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [g + t * Math.cos(b(e)), _ + t * Math.sin(b(e))], S = (e) => e.map((e, t) => `${t === 0 ? "M" : "L"}${x(t, e).map((e) => e.toFixed(2)).join(",")}`).join(" ") + " Z";
|
|
11732
11774
|
return /* @__PURE__ */ h("div", {
|
|
11733
11775
|
ref: u,
|
|
11734
11776
|
...l,
|
|
@@ -11837,7 +11879,7 @@ var wc = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
11837
11879
|
});
|
|
11838
11880
|
//#endregion
|
|
11839
11881
|
//#region src/SelectSankey.tsx
|
|
11840
|
-
function
|
|
11882
|
+
function Dc({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
11841
11883
|
let { ref: s, width: c } = Y(t), l = Q(), u = [], d = [];
|
|
11842
11884
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
11843
11885
|
let f = e.reduce((e, t) => e + t.value, 0) || 1, p = (t, n) => e.filter((e) => e[n] === t).reduce((e, t) => e + t.value, 0), g = t - 12, _ = Math.max(u.length, d.length), v = (g - i * Math.max(0, _ - 1)) / f, y = (e, t, n) => {
|
|
@@ -11922,8 +11964,8 @@ function Tc({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
11922
11964
|
}
|
|
11923
11965
|
//#endregion
|
|
11924
11966
|
//#region src/SelectCandlestick.tsx
|
|
11925
|
-
function
|
|
11926
|
-
let { ref: s, width: c } = Y(t), l = Q(), u =
|
|
11967
|
+
function Oc({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
11968
|
+
let { ref: s, width: c } = Y(t), l = Q(), u = Is, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, g = Math.max(1, ...e.map((e) => e.high)), _ = Math.min(g, ...e.map((e) => e.low)), v = (g - _) * .08 || 1, y = _ - v, b = g + v, x = (e) => p - (e - y) / (b - y) * f, S = e.length, C = S ? d / S : 0, w = Math.min(C * .5, 18), T = Array.from({ length: 5 }, (e, t) => y + (b - y) * t / 4);
|
|
11927
11969
|
return /* @__PURE__ */ h("div", {
|
|
11928
11970
|
...o,
|
|
11929
11971
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -12012,8 +12054,8 @@ function Ec({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
12012
12054
|
}
|
|
12013
12055
|
//#endregion
|
|
12014
12056
|
//#region src/SelectBoxPlot.tsx
|
|
12015
|
-
function
|
|
12016
|
-
let { ref: a, width: o } = Y(t), s = Q(), c =
|
|
12057
|
+
function kc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
12058
|
+
let { ref: a, width: o } = Y(t), s = Q(), c = Is, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Es(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .5, 40);
|
|
12017
12059
|
return /* @__PURE__ */ h("div", {
|
|
12018
12060
|
...i,
|
|
12019
12061
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -12022,7 +12064,7 @@ function Dc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
12022
12064
|
width: o,
|
|
12023
12065
|
height: t,
|
|
12024
12066
|
className: "select-chart",
|
|
12025
|
-
children: [
|
|
12067
|
+
children: [Ds(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
12026
12068
|
x1: c.left,
|
|
12027
12069
|
x2: o - c.right,
|
|
12028
12070
|
y1: p(e),
|
|
@@ -12132,7 +12174,7 @@ function Dc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
12132
12174
|
}
|
|
12133
12175
|
//#endregion
|
|
12134
12176
|
//#region src/SelectRangeBar.tsx
|
|
12135
|
-
function
|
|
12177
|
+
function Ac({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
12136
12178
|
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } = Y(l), f = Q(), p = s(), g = n ?? Math.min(0, ...e.map((e) => e.start)), _ = (r ?? Math.max(1, ...e.map((e) => e.end))) - g || 1, v = a, y = Math.max(0, d - v - 14), b = l - 6 - 26, x = e.length ? b / e.length : 0, S = Math.min(x * .6, 22), C = (e) => v + (e - g) / _ * y, w = Array.from({ length: 5 }, (e, t) => g + _ * t / 4);
|
|
12137
12179
|
return /* @__PURE__ */ h("div", {
|
|
12138
12180
|
...c,
|
|
@@ -12213,7 +12255,7 @@ function Oc({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
12213
12255
|
}
|
|
12214
12256
|
//#endregion
|
|
12215
12257
|
//#region src/SelectCalendarHeatmap.tsx
|
|
12216
|
-
var
|
|
12258
|
+
var jc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
12217
12259
|
"Seg",
|
|
12218
12260
|
"",
|
|
12219
12261
|
"Qua",
|
|
@@ -12286,8 +12328,8 @@ var kc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
12286
12328
|
]
|
|
12287
12329
|
}), /* @__PURE__ */ m($, { tip: p.tip })]
|
|
12288
12330
|
});
|
|
12289
|
-
}),
|
|
12290
|
-
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p =
|
|
12331
|
+
}), Mc = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
12332
|
+
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = Es(Math.max(1, ...e.map((e) => e.value))), g = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, _ = 360 / f;
|
|
12291
12333
|
return /* @__PURE__ */ h("div", {
|
|
12292
12334
|
ref: s,
|
|
12293
12335
|
...o,
|
|
@@ -12317,7 +12359,7 @@ var kc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
12317
12359
|
}, t)), e.map((e, t) => {
|
|
12318
12360
|
let r = t * _, i = (t + 1) * _ - 1.5, a = e.color ?? X(t), o = Math.max(2, g(e.value)), s = ((r + i) / 2 - 90) * (Math.PI / 180), d = l + o * Math.cos(s), f = u + o * Math.sin(s);
|
|
12319
12361
|
return /* @__PURE__ */ m("path", {
|
|
12320
|
-
d:
|
|
12362
|
+
d: Ps(l, u, o, 0, r, i),
|
|
12321
12363
|
fill: a,
|
|
12322
12364
|
fillOpacity: .8,
|
|
12323
12365
|
className: "select-chart__seg",
|
|
@@ -12360,13 +12402,13 @@ var kc = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
12360
12402
|
});
|
|
12361
12403
|
//#endregion
|
|
12362
12404
|
//#region src/SelectSlope.tsx
|
|
12363
|
-
function
|
|
12405
|
+
function Nc({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
12364
12406
|
let { ref: s, width: c } = Y(r), l = Q(), u = {
|
|
12365
12407
|
top: 24,
|
|
12366
12408
|
right: 64,
|
|
12367
12409
|
bottom: 12,
|
|
12368
12410
|
left: 132
|
|
12369
|
-
}, d =
|
|
12411
|
+
}, d = Es(Math.max(1, ...e.flatMap((e) => [e.left, e.right]))), f = r - u.top - u.bottom, p = (e) => u.top + f - e / d * f, g = u.left, _ = c - u.right;
|
|
12370
12412
|
return /* @__PURE__ */ h("div", {
|
|
12371
12413
|
...o,
|
|
12372
12414
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -12482,8 +12524,8 @@ function jc({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
12482
12524
|
}
|
|
12483
12525
|
//#endregion
|
|
12484
12526
|
//#region src/SelectDumbbell.tsx
|
|
12485
|
-
function
|
|
12486
|
-
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Y(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", g =
|
|
12527
|
+
function Pc({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
12528
|
+
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Y(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", g = Es(Math.max(1, ...e.flatMap((e) => [e.from, e.to]))), _ = a, v = Math.max(0, u - _ - 14), y = c - 6 - 26, b = e.length ? y / e.length : 0, x = (e) => _ + e / g * v;
|
|
12487
12529
|
return /* @__PURE__ */ h("div", {
|
|
12488
12530
|
...s,
|
|
12489
12531
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -12492,7 +12534,7 @@ function Mc({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
12492
12534
|
width: u,
|
|
12493
12535
|
height: c,
|
|
12494
12536
|
className: "select-chart",
|
|
12495
|
-
children: [
|
|
12537
|
+
children: [Ds(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
12496
12538
|
x1: x(e),
|
|
12497
12539
|
x2: x(e),
|
|
12498
12540
|
y1: 6,
|
|
@@ -12575,7 +12617,7 @@ function Mc({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
12575
12617
|
}
|
|
12576
12618
|
//#endregion
|
|
12577
12619
|
//#region src/SelectMarimekko.tsx
|
|
12578
|
-
function
|
|
12620
|
+
function Fc({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
12579
12621
|
let { ref: o, width: s } = Y(t), c = Q(), l = {
|
|
12580
12622
|
top: 6,
|
|
12581
12623
|
right: 6,
|
|
@@ -12655,7 +12697,7 @@ function Nc({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
12655
12697
|
}
|
|
12656
12698
|
//#endregion
|
|
12657
12699
|
//#region src/SelectGaugeBands.tsx
|
|
12658
|
-
var
|
|
12700
|
+
var Ic = 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) {
|
|
12659
12701
|
let u = i ?? Math.max(10, Math.round(r * .08)), d = u / 2 + 2, f = r / 2 - d, p = r / 2, g = r / 2, _ = g + d, v = (e) => Math.max(0, Math.min(t, e)), y = (e) => {
|
|
12660
12702
|
let t = Math.PI + e * Math.PI;
|
|
12661
12703
|
return [p + f * Math.cos(t), g + f * Math.sin(t)];
|
|
@@ -12727,7 +12769,7 @@ var Pc = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
12727
12769
|
});
|
|
12728
12770
|
//#endregion
|
|
12729
12771
|
//#region src/SelectStreamGraph.tsx
|
|
12730
|
-
function
|
|
12772
|
+
function Lc({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
12731
12773
|
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = {
|
|
12732
12774
|
top: 14,
|
|
12733
12775
|
right: 14,
|
|
@@ -12771,7 +12813,7 @@ function Fc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
12771
12813
|
})]
|
|
12772
12814
|
}, t)) }),
|
|
12773
12815
|
w.map((e, t) => /* @__PURE__ */ m("path", {
|
|
12774
|
-
d:
|
|
12816
|
+
d: Ms(e.upper, e.lower),
|
|
12775
12817
|
fill: `url(#${u}-st${t})`,
|
|
12776
12818
|
className: "select-chart__area"
|
|
12777
12819
|
}, t)),
|
|
@@ -12818,7 +12860,7 @@ function Fc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
12818
12860
|
}
|
|
12819
12861
|
//#endregion
|
|
12820
12862
|
//#region src/SelectSunburst.tsx
|
|
12821
|
-
var
|
|
12863
|
+
var Rc = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
12822
12864
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
12823
12865
|
var t;
|
|
12824
12866
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -12844,7 +12886,7 @@ var Ic = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
12844
12886
|
_ += r;
|
|
12845
12887
|
let a = _ / g * 360, o = e.color ?? X(t), v = i;
|
|
12846
12888
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
12847
|
-
d:
|
|
12889
|
+
d: Ps(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
12848
12890
|
fill: o,
|
|
12849
12891
|
className: "select-chart__seg",
|
|
12850
12892
|
onMouseEnter: () => s.show({
|
|
@@ -12864,7 +12906,7 @@ var Ic = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
12864
12906
|
v += t.value / g * 360;
|
|
12865
12907
|
let f = v, p = t.color ?? o, h = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
12866
12908
|
return /* @__PURE__ */ m("path", {
|
|
12867
|
-
d:
|
|
12909
|
+
d: Ps(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
12868
12910
|
fill: p,
|
|
12869
12911
|
fillOpacity: h,
|
|
12870
12912
|
className: "select-chart__seg",
|
|
@@ -12911,8 +12953,8 @@ var Ic = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
12911
12953
|
});
|
|
12912
12954
|
//#endregion
|
|
12913
12955
|
//#region src/SelectViolin.tsx
|
|
12914
|
-
function
|
|
12915
|
-
let { ref: a, width: o } = Y(t), s = Q(), c =
|
|
12956
|
+
function zc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
12957
|
+
let { ref: a, width: o } = Y(t), s = Q(), c = Is, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = Es(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
|
|
12916
12958
|
return /* @__PURE__ */ h("div", {
|
|
12917
12959
|
...i,
|
|
12918
12960
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -12921,7 +12963,7 @@ function Lc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
12921
12963
|
width: o,
|
|
12922
12964
|
height: t,
|
|
12923
12965
|
className: "select-chart",
|
|
12924
|
-
children: [
|
|
12966
|
+
children: [Ds(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
12925
12967
|
x1: c.left,
|
|
12926
12968
|
x2: o - c.right,
|
|
12927
12969
|
y1: p(e),
|
|
@@ -12938,7 +12980,7 @@ function Lc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
12938
12980
|
let i = c.left + _ * r + _ / 2, a = e.color ?? X(r), o = e.bins.length, l = (t) => p(e.min + (e.max - e.min) * t / Math.max(1, o - 1)), d = (t) => e.bins[t] / y * v, f = [], g = [];
|
|
12939
12981
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
12940
12982
|
for (let e = 0; e < o; e++) g.push([i - d(e), l(e)]);
|
|
12941
|
-
let b = `${
|
|
12983
|
+
let b = `${ks(f)} ${ks(g).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
12942
12984
|
return /* @__PURE__ */ h("g", { children: [
|
|
12943
12985
|
/* @__PURE__ */ m("path", {
|
|
12944
12986
|
d: b,
|
|
@@ -12999,7 +13041,7 @@ function Lc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
12999
13041
|
}
|
|
13000
13042
|
//#endregion
|
|
13001
13043
|
//#region src/SelectChord.tsx
|
|
13002
|
-
var
|
|
13044
|
+
var Bc = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
13003
13045
|
let c = Q(), l = t.length, u = n / 2, d = n / 2, f = n / 2 - 22, p = f - 9, g = e.map((e) => e.reduce((e, t) => e + t, 0)), _ = g.reduce((e, t) => e + t, 0) || 1, v = (2 * Math.PI - l * i) / _, y = [], b = 0;
|
|
13004
13046
|
for (let e = 0; e < l; e++) {
|
|
13005
13047
|
let t = b, n = b + g[e] * v;
|
|
@@ -13066,7 +13108,7 @@ var Rc = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
13066
13108
|
}, n)), y.map((e, n) => {
|
|
13067
13109
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
13068
13110
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
13069
|
-
d:
|
|
13111
|
+
d: Ps(u, d, f, p, w(e.a0), w(e.a1)),
|
|
13070
13112
|
fill: X(n),
|
|
13071
13113
|
className: "select-chord__arc"
|
|
13072
13114
|
}), /* @__PURE__ */ m("text", {
|
|
@@ -13084,7 +13126,7 @@ var Rc = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
13084
13126
|
});
|
|
13085
13127
|
//#endregion
|
|
13086
13128
|
//#region src/SelectHexbin.tsx
|
|
13087
|
-
function
|
|
13129
|
+
function Vc({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
13088
13130
|
let { ref: l, width: u } = Y(t), d = Q(), f = Math.max(0, u - 24), p = t - 24, g = i ?? Math.max(1, ...e.map((e) => e.x)), _ = a ?? Math.max(1, ...e.map((e) => e.y)), v = (e) => 12 + e / g * f, y = (e) => 12 + p - e / _ * p, b = n, x = Math.sqrt(3), S = (e, t) => {
|
|
13089
13131
|
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);
|
|
13090
13132
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
@@ -13136,7 +13178,7 @@ function zc({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
13136
13178
|
}
|
|
13137
13179
|
//#endregion
|
|
13138
13180
|
//#region src/SelectWordCloud.tsx
|
|
13139
|
-
var
|
|
13181
|
+
var Hc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
13140
13182
|
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);
|
|
13141
13183
|
return /* @__PURE__ */ m("div", {
|
|
13142
13184
|
ref: a,
|
|
@@ -13153,7 +13195,7 @@ var Bc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
13153
13195
|
children: e.text
|
|
13154
13196
|
}, `${e.text}-${t}`))
|
|
13155
13197
|
});
|
|
13156
|
-
}),
|
|
13198
|
+
}), Uc = [
|
|
13157
13199
|
[
|
|
13158
13200
|
-59.6,
|
|
13159
13201
|
-80,
|
|
@@ -23548,24 +23590,24 @@ var Bc = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
23548
23590
|
-27.1,
|
|
23549
23591
|
83.5
|
|
23550
23592
|
]
|
|
23551
|
-
],
|
|
23552
|
-
function
|
|
23553
|
-
let n = e *
|
|
23593
|
+
], Wc = Math.PI / 180;
|
|
23594
|
+
function Gc(e, t) {
|
|
23595
|
+
let n = e * Wc, r = t * Wc;
|
|
23554
23596
|
return [
|
|
23555
23597
|
Math.cos(n) * Math.sin(r),
|
|
23556
23598
|
Math.sin(n),
|
|
23557
23599
|
Math.cos(n) * Math.cos(r)
|
|
23558
23600
|
];
|
|
23559
23601
|
}
|
|
23560
|
-
function
|
|
23561
|
-
let a = r *
|
|
23602
|
+
function Kc([e, t, n], r, i) {
|
|
23603
|
+
let a = r * Wc, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * Wc;
|
|
23562
23604
|
return [
|
|
23563
23605
|
o,
|
|
23564
23606
|
t * Math.cos(c) - s * Math.sin(c),
|
|
23565
23607
|
t * Math.sin(c) + s * Math.cos(c)
|
|
23566
23608
|
];
|
|
23567
23609
|
}
|
|
23568
|
-
function
|
|
23610
|
+
function qc(e, t, n) {
|
|
23569
23611
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
23570
23612
|
r = Math.max(-1, Math.min(1, r));
|
|
23571
23613
|
let i = Math.acos(r);
|
|
@@ -23577,9 +23619,9 @@ function Gc(e, t, n) {
|
|
|
23577
23619
|
e[2] * o + t[2] * s
|
|
23578
23620
|
];
|
|
23579
23621
|
}
|
|
23580
|
-
var
|
|
23622
|
+
var Jc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, Yc = r(function({ points: e = [], arcs: t = [], size: n = 320, tilt: r = -18, spin: i = !0, speed: a = 7, color: c = "var(--select-chart-1)", format: f = Z, legend: p = !0, map: g = !0, fluid: _ = !1, onZoomChange: v, className: y, ...b }, x) {
|
|
23581
23623
|
var S, C;
|
|
23582
|
-
let w = s(), T = Q(), E = u(null), D =
|
|
23624
|
+
let w = s(), T = Q(), E = u(null), D = Ts(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = u(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = u({
|
|
23583
23625
|
lng: -O,
|
|
23584
23626
|
lat: r
|
|
23585
23627
|
}), j = u({
|
|
@@ -23638,7 +23680,7 @@ var Kc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23638
23680
|
var t, n;
|
|
23639
23681
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, R(!1), V());
|
|
23640
23682
|
}, G = (D / 2 - 6) * M.current, K = D / 2, q = D / 2, ae = (e) => {
|
|
23641
|
-
let t =
|
|
23683
|
+
let t = Kc(e, A.current.lng, A.current.lat);
|
|
23642
23684
|
return {
|
|
23643
23685
|
x: K + G * t[0],
|
|
23644
23686
|
y: q - G * t[1],
|
|
@@ -23648,25 +23690,25 @@ var Kc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23648
23690
|
let e = [];
|
|
23649
23691
|
for (let t = -180; t < 180; t += 30) {
|
|
23650
23692
|
let n = [];
|
|
23651
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
23693
|
+
for (let e = 0; e <= 48; e++) n.push(Gc(-90 + 180 * e / 48, t));
|
|
23652
23694
|
e.push(n);
|
|
23653
23695
|
}
|
|
23654
23696
|
for (let t = -60; t <= 60; t += 30) {
|
|
23655
23697
|
let n = [];
|
|
23656
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
23698
|
+
for (let e = 0; e <= 48; e++) n.push(Gc(t, -180 + 360 * e / 48));
|
|
23657
23699
|
e.push(n);
|
|
23658
23700
|
}
|
|
23659
23701
|
return e;
|
|
23660
|
-
}, []), se = l(() =>
|
|
23702
|
+
}, []), se = l(() => Uc.map((e) => {
|
|
23661
23703
|
let t = [];
|
|
23662
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
23704
|
+
for (let n = 0; n < e.length; n += 2) t.push(Gc(e[n + 1], e[n]));
|
|
23663
23705
|
return t;
|
|
23664
23706
|
}), []), J = (e) => ({
|
|
23665
23707
|
x: K + G * e[0],
|
|
23666
23708
|
y: q - G * e[1]
|
|
23667
23709
|
}), ce = "", le = "";
|
|
23668
23710
|
if (g) for (let e of se) {
|
|
23669
|
-
let t = e.map((e) =>
|
|
23711
|
+
let t = e.map((e) => Kc(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
23670
23712
|
for (let e of t) if (e[2] > 0) {
|
|
23671
23713
|
let t = J(e);
|
|
23672
23714
|
le += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -23714,7 +23756,7 @@ var Kc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23714
23756
|
}
|
|
23715
23757
|
return t;
|
|
23716
23758
|
}, de = Math.max(1, ...e.map((e) => e.value ?? 0)), fe = e.map((e, t) => {
|
|
23717
|
-
let n = ae(
|
|
23759
|
+
let n = ae(Gc(e.lat, e.lng));
|
|
23718
23760
|
return {
|
|
23719
23761
|
...e,
|
|
23720
23762
|
i: t,
|
|
@@ -23724,20 +23766,20 @@ var Kc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
23724
23766
|
col: e.color ?? c
|
|
23725
23767
|
};
|
|
23726
23768
|
}), pe = z == null ? null : e[z], me = t.map((e, t) => {
|
|
23727
|
-
let n =
|
|
23769
|
+
let n = Gc(e.from.lat, e.from.lng), r = Gc(e.to.lat, e.to.lng), i = "", a = !1;
|
|
23728
23770
|
for (let e = 0; e <= 40; e++) {
|
|
23729
|
-
let t = e / 40, o =
|
|
23771
|
+
let t = e / 40, o = qc(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = Kc(o, A.current.lng, A.current.lat), l = ae([
|
|
23730
23772
|
o[0] * s,
|
|
23731
23773
|
o[1] * s,
|
|
23732
23774
|
o[2] * s
|
|
23733
23775
|
]);
|
|
23734
23776
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
23735
23777
|
}
|
|
23736
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
23778
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = qc(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = Kc(s, A.current.lng, A.current.lat), d = ae([
|
|
23737
23779
|
s[0] * l,
|
|
23738
23780
|
s[1] * l,
|
|
23739
23781
|
s[2] * l
|
|
23740
|
-
]), f = pe != null && (
|
|
23782
|
+
]), f = pe != null && (Jc(e.from, pe) || Jc(e.to, pe));
|
|
23741
23783
|
return {
|
|
23742
23784
|
d: i,
|
|
23743
23785
|
col: e.color ?? c,
|
|
@@ -24011,8 +24053,8 @@ var Kc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
24011
24053
|
});
|
|
24012
24054
|
//#endregion
|
|
24013
24055
|
//#region src/SelectTicker.tsx
|
|
24014
|
-
function
|
|
24015
|
-
let i = u(null), a = u(null), s = u(null), c =
|
|
24056
|
+
function Xc({ children: e, speed: t = 28, className: n, ...r }) {
|
|
24057
|
+
let i = u(null), a = u(null), s = u(null), c = Ts(i, 0), l = Ts(s, 0), d = c > 0 && l > c + 1, f = u(0), p = u(null), g = u(!1);
|
|
24016
24058
|
o(() => {
|
|
24017
24059
|
var e, n;
|
|
24018
24060
|
let r = a.current;
|
|
@@ -24073,12 +24115,12 @@ function Jc({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
24073
24115
|
}
|
|
24074
24116
|
//#endregion
|
|
24075
24117
|
//#region src/SelectPareto.tsx
|
|
24076
|
-
function
|
|
24118
|
+
function Zc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
24077
24119
|
var a;
|
|
24078
24120
|
let { ref: o, width: c } = Y(t), l = Q(), u = s(), [f, p] = d(null), g = {
|
|
24079
|
-
...
|
|
24121
|
+
...Is,
|
|
24080
24122
|
right: 44
|
|
24081
|
-
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - g.left - g.right), C = t - g.top - g.bottom, w =
|
|
24123
|
+
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - g.left - g.right), C = t - g.top - g.bottom, w = Es(((a = _[0]) == null ? void 0 : a.value) ?? 1), T = v > 0 ? S / v : 0, E = Math.min(T * .62, 46), D = g.top + C, O = (e) => D - e / w * C, k = (e) => D - e / 100 * C, A = (e) => g.left + T * e + T / 2, j = x.map((e, t) => [A(t), k(e)]), M = X(0), N = X(1);
|
|
24082
24124
|
return /* @__PURE__ */ h("div", {
|
|
24083
24125
|
...i,
|
|
24084
24126
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -24107,7 +24149,7 @@ function Yc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
24107
24149
|
stopOpacity: .55
|
|
24108
24150
|
})]
|
|
24109
24151
|
}) }),
|
|
24110
|
-
|
|
24152
|
+
Ds(w).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
24111
24153
|
x1: g.left,
|
|
24112
24154
|
x2: c - g.right,
|
|
24113
24155
|
y1: O(e),
|
|
@@ -24171,7 +24213,7 @@ function Yc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
24171
24213
|
}, t);
|
|
24172
24214
|
}),
|
|
24173
24215
|
/* @__PURE__ */ m("path", {
|
|
24174
|
-
d:
|
|
24216
|
+
d: As(j),
|
|
24175
24217
|
fill: "none",
|
|
24176
24218
|
stroke: N,
|
|
24177
24219
|
strokeWidth: 2,
|
|
@@ -24199,7 +24241,7 @@ function Yc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
24199
24241
|
}
|
|
24200
24242
|
//#endregion
|
|
24201
24243
|
//#region src/SelectWaffle.tsx
|
|
24202
|
-
var
|
|
24244
|
+
var Qc = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
24203
24245
|
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) => ({
|
|
24204
24246
|
i: t,
|
|
24205
24247
|
frac: e - u[t]
|
|
@@ -24248,7 +24290,7 @@ var Xc = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
24248
24290
|
});
|
|
24249
24291
|
//#endregion
|
|
24250
24292
|
//#region src/SelectPyramid.tsx
|
|
24251
|
-
function
|
|
24293
|
+
function $c({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
24252
24294
|
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: f, width: p } = Y(u), g = Q(), [_, v] = d(null), y = Math.max(1, ...e.flatMap((e) => [e.left, e.right])), b = Math.max(0, (p - s - 16) / 2), x = e.length ? (u - 26 - 8) / e.length : 0, S = Math.min(x * .6, 26), C = 8 + b, w = 8 + b + s, T = a ?? X(1), E = o ?? X(0);
|
|
24253
24295
|
return /* @__PURE__ */ h("div", {
|
|
24254
24296
|
...l,
|
|
@@ -24356,7 +24398,7 @@ function Zc({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
24356
24398
|
}
|
|
24357
24399
|
//#endregion
|
|
24358
24400
|
//#region src/SelectBump.tsx
|
|
24359
|
-
function
|
|
24401
|
+
function el({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
24360
24402
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
24361
24403
|
top: 16,
|
|
24362
24404
|
right: 78,
|
|
@@ -24393,7 +24435,7 @@ function Qc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
24393
24435
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
24394
24436
|
children: [
|
|
24395
24437
|
/* @__PURE__ */ m("path", {
|
|
24396
|
-
d:
|
|
24438
|
+
d: As(a),
|
|
24397
24439
|
fill: "none",
|
|
24398
24440
|
stroke: i,
|
|
24399
24441
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -24441,7 +24483,7 @@ function Qc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
24441
24483
|
}
|
|
24442
24484
|
//#endregion
|
|
24443
24485
|
//#region src/SelectParallel.tsx
|
|
24444
|
-
function
|
|
24486
|
+
function tl({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
24445
24487
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
24446
24488
|
top: 30,
|
|
24447
24489
|
right: 28,
|
|
@@ -24533,25 +24575,25 @@ function $c({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
24533
24575
|
}
|
|
24534
24576
|
//#endregion
|
|
24535
24577
|
//#region src/SelectIcicle.tsx
|
|
24536
|
-
function
|
|
24537
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
24578
|
+
function nl(e) {
|
|
24579
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + nl(t), 0) : e.value ?? 0;
|
|
24538
24580
|
}
|
|
24539
|
-
function
|
|
24540
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
24581
|
+
function rl(e, t = 0) {
|
|
24582
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => rl(e, t + 1)));
|
|
24541
24583
|
}
|
|
24542
|
-
function
|
|
24543
|
-
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u =
|
|
24584
|
+
function il({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
24585
|
+
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u = rl(e), f = t / (u + 1), p = [], g = (e, t, n, r, i) => {
|
|
24544
24586
|
if (p.push({
|
|
24545
24587
|
node: e,
|
|
24546
24588
|
x0: t,
|
|
24547
24589
|
x1: n,
|
|
24548
24590
|
depth: r,
|
|
24549
24591
|
color: e.color ?? X(i),
|
|
24550
|
-
value:
|
|
24592
|
+
value: nl(e)
|
|
24551
24593
|
}), e.children && e.children.length) {
|
|
24552
|
-
let a = e.children.reduce((e, t) => e +
|
|
24594
|
+
let a = e.children.reduce((e, t) => e + nl(t), 0) || 1, o = t;
|
|
24553
24595
|
e.children.forEach((e, s) => {
|
|
24554
|
-
let c = (n - t) *
|
|
24596
|
+
let c = (n - t) * nl(e) / a;
|
|
24555
24597
|
g(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
24556
24598
|
});
|
|
24557
24599
|
}
|
|
@@ -24612,7 +24654,7 @@ function nl({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
24612
24654
|
}
|
|
24613
24655
|
//#endregion
|
|
24614
24656
|
//#region src/SelectTree.tsx
|
|
24615
|
-
function
|
|
24657
|
+
function al({ data: e, height: t = 260, className: n, ...r }) {
|
|
24616
24658
|
let { ref: i, width: a } = Y(t), o = Q(), [s, c] = d(null), l = {
|
|
24617
24659
|
top: 14,
|
|
24618
24660
|
right: 96,
|
|
@@ -24690,7 +24732,7 @@ function rl({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
24690
24732
|
}
|
|
24691
24733
|
//#endregion
|
|
24692
24734
|
//#region src/SelectVenn.tsx
|
|
24693
|
-
var
|
|
24735
|
+
var ol = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
24694
24736
|
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]] : [
|
|
24695
24737
|
[o, s - l * .5],
|
|
24696
24738
|
[o - l * .5, s + l * .36],
|
|
@@ -24755,7 +24797,7 @@ var il = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
24755
24797
|
}, t))
|
|
24756
24798
|
})]
|
|
24757
24799
|
});
|
|
24758
|
-
}),
|
|
24800
|
+
}), sl = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
24759
24801
|
let o = Q(), [s, c] = d(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
24760
24802
|
d: e,
|
|
24761
24803
|
i: t,
|
|
@@ -24858,7 +24900,7 @@ var il = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
24858
24900
|
});
|
|
24859
24901
|
//#endregion
|
|
24860
24902
|
//#region src/SelectNetwork.tsx
|
|
24861
|
-
function
|
|
24903
|
+
function cl({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
24862
24904
|
let { ref: o, width: s } = Y(n), c = Q(), [u, f] = d(null), p = l(() => {
|
|
24863
24905
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
24864
24906
|
if (!a) return o;
|
|
@@ -24972,7 +25014,7 @@ function ol({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
24972
25014
|
}
|
|
24973
25015
|
//#endregion
|
|
24974
25016
|
//#region src/SelectSearchMenu.tsx
|
|
24975
|
-
function
|
|
25017
|
+
function ll({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", children: o }) {
|
|
24976
25018
|
return /* @__PURE__ */ h("div", {
|
|
24977
25019
|
className: "select-combobox__panel select-searchmenu",
|
|
24978
25020
|
style: { width: a },
|
|
@@ -24989,7 +25031,7 @@ function sl({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
24989
25031
|
className: "select-combobox__empty",
|
|
24990
25032
|
role: "status",
|
|
24991
25033
|
children: r
|
|
24992
|
-
}) : /* @__PURE__ */ m(
|
|
25034
|
+
}) : /* @__PURE__ */ m(ul, { children: o }),
|
|
24993
25035
|
i != null && i !== !1 ? /* @__PURE__ */ m("div", {
|
|
24994
25036
|
className: "select-searchmenu__footer",
|
|
24995
25037
|
children: i
|
|
@@ -24997,7 +25039,7 @@ function sl({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
24997
25039
|
]
|
|
24998
25040
|
});
|
|
24999
25041
|
}
|
|
25000
|
-
function
|
|
25042
|
+
function ul({ children: e }) {
|
|
25001
25043
|
let t = Dn({
|
|
25002
25044
|
selector: ".select-combobox__option",
|
|
25003
25045
|
y: 6,
|
|
@@ -25011,7 +25053,7 @@ function cl({ children: e }) {
|
|
|
25011
25053
|
children: e
|
|
25012
25054
|
});
|
|
25013
25055
|
}
|
|
25014
|
-
function
|
|
25056
|
+
function dl({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSelect: i }) {
|
|
25015
25057
|
return /* @__PURE__ */ h("button", {
|
|
25016
25058
|
type: "button",
|
|
25017
25059
|
role: "option",
|
|
@@ -25037,7 +25079,7 @@ function ll({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSele
|
|
|
25037
25079
|
}
|
|
25038
25080
|
//#endregion
|
|
25039
25081
|
//#region src/SelectThemeSwitcher.tsx
|
|
25040
|
-
var
|
|
25082
|
+
var fl = [
|
|
25041
25083
|
{
|
|
25042
25084
|
value: "light",
|
|
25043
25085
|
label: "Claro",
|
|
@@ -25054,15 +25096,15 @@ var ul = [
|
|
|
25054
25096
|
icon: /* @__PURE__ */ m(Oe, {})
|
|
25055
25097
|
}
|
|
25056
25098
|
];
|
|
25057
|
-
function
|
|
25099
|
+
function pl(e) {
|
|
25058
25100
|
if (e === "system") {
|
|
25059
25101
|
var t, n;
|
|
25060
25102
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
25061
25103
|
}
|
|
25062
25104
|
return e;
|
|
25063
25105
|
}
|
|
25064
|
-
function
|
|
25065
|
-
let [i, a] = d(!1), s = u(null), c =
|
|
25106
|
+
function ml({ value: e, onChange: t, className: n, ...r }) {
|
|
25107
|
+
let [i, a] = d(!1), s = u(null), c = fl.find((t) => t.value === e) ?? fl[2];
|
|
25066
25108
|
return o(() => {
|
|
25067
25109
|
if (!i) return;
|
|
25068
25110
|
let e = (e) => {
|
|
@@ -25082,7 +25124,7 @@ function fl({ value: e, onChange: t, className: n, ...r }) {
|
|
|
25082
25124
|
})
|
|
25083
25125
|
}), i && /* @__PURE__ */ m("div", {
|
|
25084
25126
|
className: "select-themeswitcher__popover",
|
|
25085
|
-
children: /* @__PURE__ */ m(xa, { children:
|
|
25127
|
+
children: /* @__PURE__ */ m(xa, { children: fl.map((n) => /* @__PURE__ */ m(Ca, {
|
|
25086
25128
|
icon: n.icon,
|
|
25087
25129
|
active: n.value === e,
|
|
25088
25130
|
trailing: n.value === e ? /* @__PURE__ */ m(Be, {}) : null,
|
|
@@ -25096,8 +25138,8 @@ function fl({ value: e, onChange: t, className: n, ...r }) {
|
|
|
25096
25138
|
}
|
|
25097
25139
|
//#endregion
|
|
25098
25140
|
//#region src/SelectDetail.tsx
|
|
25099
|
-
var
|
|
25100
|
-
function
|
|
25141
|
+
var hl = n(!1);
|
|
25142
|
+
function gl({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
25101
25143
|
let r = Dn({
|
|
25102
25144
|
selector: ".select-detail",
|
|
25103
25145
|
y: 8,
|
|
@@ -25105,7 +25147,7 @@ function ml({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
25105
25147
|
stagger: .05,
|
|
25106
25148
|
scroll: !0
|
|
25107
25149
|
});
|
|
25108
|
-
return /* @__PURE__ */ m(
|
|
25150
|
+
return /* @__PURE__ */ m(hl.Provider, {
|
|
25109
25151
|
value: n,
|
|
25110
25152
|
children: /* @__PURE__ */ m("div", {
|
|
25111
25153
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}`,
|
|
@@ -25114,8 +25156,8 @@ function ml({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
25114
25156
|
})
|
|
25115
25157
|
});
|
|
25116
25158
|
}
|
|
25117
|
-
var
|
|
25118
|
-
let l = a(
|
|
25159
|
+
var _l = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
25160
|
+
let l = a(hl), u = i ?? l;
|
|
25119
25161
|
return /* @__PURE__ */ h("div", {
|
|
25120
25162
|
ref: c,
|
|
25121
25163
|
...s,
|
|
@@ -25135,7 +25177,7 @@ var hl = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
25135
25177
|
})
|
|
25136
25178
|
]
|
|
25137
25179
|
});
|
|
25138
|
-
}),
|
|
25180
|
+
}), vl = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
|
|
25139
25181
|
let s = r === "vertical";
|
|
25140
25182
|
return /* @__PURE__ */ m("ol", {
|
|
25141
25183
|
ref: o,
|
|
@@ -25174,7 +25216,7 @@ var hl = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
25174
25216
|
});
|
|
25175
25217
|
//#endregion
|
|
25176
25218
|
//#region src/SelectSetupGuide.tsx
|
|
25177
|
-
function
|
|
25219
|
+
function yl({ status: e }) {
|
|
25178
25220
|
return /* @__PURE__ */ m("span", {
|
|
25179
25221
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
25180
25222
|
"aria-hidden": "true",
|
|
@@ -25193,13 +25235,13 @@ function _l({ status: e }) {
|
|
|
25193
25235
|
})
|
|
25194
25236
|
});
|
|
25195
25237
|
}
|
|
25196
|
-
var
|
|
25238
|
+
var bl = {
|
|
25197
25239
|
done: "feito",
|
|
25198
25240
|
todo: "a fazer",
|
|
25199
25241
|
next: "próximo passo",
|
|
25200
25242
|
skipped: "pulado",
|
|
25201
25243
|
waiting: "aguardando"
|
|
25202
|
-
},
|
|
25244
|
+
}, xl = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
|
|
25203
25245
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0;
|
|
25204
25246
|
return /* @__PURE__ */ h("section", {
|
|
25205
25247
|
ref: u,
|
|
@@ -25262,14 +25304,14 @@ var vl = {
|
|
|
25262
25304
|
children: e.steps.map((e) => /* @__PURE__ */ h("li", {
|
|
25263
25305
|
className: `select-setupguide__step is-${e.status}`,
|
|
25264
25306
|
children: [
|
|
25265
|
-
/* @__PURE__ */ m(
|
|
25307
|
+
/* @__PURE__ */ m(yl, { status: e.status }),
|
|
25266
25308
|
/* @__PURE__ */ h("span", {
|
|
25267
25309
|
className: "select-setupguide__text",
|
|
25268
25310
|
children: [/* @__PURE__ */ h("span", {
|
|
25269
25311
|
className: "select-setupguide__steptitle",
|
|
25270
25312
|
children: [e.title, /* @__PURE__ */ h("span", {
|
|
25271
25313
|
className: "select-setupguide__sr",
|
|
25272
|
-
children: [" — ",
|
|
25314
|
+
children: [" — ", bl[e.status]]
|
|
25273
25315
|
})]
|
|
25274
25316
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
25275
25317
|
className: "select-setupguide__stepdesc",
|
|
@@ -25288,7 +25330,7 @@ var vl = {
|
|
|
25288
25330
|
})]
|
|
25289
25331
|
});
|
|
25290
25332
|
});
|
|
25291
|
-
function
|
|
25333
|
+
function Sl({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
25292
25334
|
return /* @__PURE__ */ h("div", {
|
|
25293
25335
|
className: "select-setupnext",
|
|
25294
25336
|
children: [
|
|
@@ -25313,37 +25355,37 @@ function bl({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
25313
25355
|
}
|
|
25314
25356
|
//#endregion
|
|
25315
25357
|
//#region src/SelectTour.tsx
|
|
25316
|
-
var
|
|
25317
|
-
function
|
|
25358
|
+
var Cl = 6, wl = 12;
|
|
25359
|
+
function Tl(e) {
|
|
25318
25360
|
let t = document.querySelector(e);
|
|
25319
25361
|
if (!t) return null;
|
|
25320
25362
|
let n = t.getBoundingClientRect();
|
|
25321
25363
|
return n.width === 0 && n.height === 0 ? null : {
|
|
25322
|
-
top: n.top -
|
|
25323
|
-
left: n.left -
|
|
25364
|
+
top: n.top - Cl,
|
|
25365
|
+
left: n.left - Cl,
|
|
25324
25366
|
width: n.width + 12,
|
|
25325
25367
|
height: n.height + 12
|
|
25326
25368
|
};
|
|
25327
25369
|
}
|
|
25328
|
-
function
|
|
25370
|
+
function El(e) {
|
|
25329
25371
|
let t = document.querySelector(e);
|
|
25330
25372
|
if (!t) return !1;
|
|
25331
25373
|
let n = t.getBoundingClientRect();
|
|
25332
25374
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
25333
25375
|
}
|
|
25334
|
-
function
|
|
25335
|
-
let s = l(() => e ? t.filter((e) =>
|
|
25376
|
+
function Dl({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
25377
|
+
let s = l(() => e ? t.filter((e) => El(e.target)) : [], [e]), [f, p] = d(0), [_, v] = d(null), [y, b] = d(null), x = u(null), S = u(null);
|
|
25336
25378
|
o(() => {
|
|
25337
25379
|
e && p(0);
|
|
25338
25380
|
}, [e]);
|
|
25339
25381
|
let C = s[f], w = f === s.length - 1, T = i(() => {
|
|
25340
25382
|
if (!C) return;
|
|
25341
|
-
let e =
|
|
25383
|
+
let e = Tl(C.target);
|
|
25342
25384
|
v(e);
|
|
25343
25385
|
let t = x.current;
|
|
25344
25386
|
if (!e || !t) return;
|
|
25345
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
25346
|
-
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height +
|
|
25387
|
+
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + wl, s = e.top;
|
|
25388
|
+
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + wl, s + r > a - 8 && (s = e.top - r - wl)), s = Math.min(Math.max(8, s), a - r - 8), b({
|
|
25347
25389
|
top: s,
|
|
25348
25390
|
left: o
|
|
25349
25391
|
});
|
|
@@ -25445,7 +25487,7 @@ function Tl({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
25445
25487
|
}
|
|
25446
25488
|
//#endregion
|
|
25447
25489
|
//#region src/SelectPlanCard.tsx
|
|
25448
|
-
var
|
|
25490
|
+
var Ol = 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) {
|
|
25449
25491
|
return /* @__PURE__ */ h("div", {
|
|
25450
25492
|
ref: d,
|
|
25451
25493
|
...u,
|
|
@@ -25500,7 +25542,7 @@ var El = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25500
25542
|
})]
|
|
25501
25543
|
})]
|
|
25502
25544
|
});
|
|
25503
|
-
}),
|
|
25545
|
+
}), kl = r(function({ title: e, description: t, headerAction: n, footer: r, dense: i = !1, spread: a = !1, children: o, className: s, ...c }, l) {
|
|
25504
25546
|
return /* @__PURE__ */ h("div", {
|
|
25505
25547
|
ref: l,
|
|
25506
25548
|
...c,
|
|
@@ -25536,7 +25578,7 @@ var El = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
25536
25578
|
]
|
|
25537
25579
|
});
|
|
25538
25580
|
});
|
|
25539
|
-
function
|
|
25581
|
+
function Al({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, onClick: o }) {
|
|
25540
25582
|
let s = /* @__PURE__ */ h(p, { children: [
|
|
25541
25583
|
e && /* @__PURE__ */ m("span", {
|
|
25542
25584
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
@@ -25568,7 +25610,7 @@ function Ol({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
25568
25610
|
children: s
|
|
25569
25611
|
});
|
|
25570
25612
|
}
|
|
25571
|
-
function
|
|
25613
|
+
function jl({ children: e }) {
|
|
25572
25614
|
return /* @__PURE__ */ m("div", {
|
|
25573
25615
|
className: "select-listlabel",
|
|
25574
25616
|
children: e
|
|
@@ -25576,7 +25618,7 @@ function kl({ children: e }) {
|
|
|
25576
25618
|
}
|
|
25577
25619
|
//#endregion
|
|
25578
25620
|
//#region src/SelectThumbnail.tsx
|
|
25579
|
-
var
|
|
25621
|
+
var Ml = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, s) {
|
|
25580
25622
|
let [c, l] = d(!1);
|
|
25581
25623
|
o(() => l(!1), [e]);
|
|
25582
25624
|
let u = /* @__PURE__ */ m("span", {
|
|
@@ -25610,8 +25652,8 @@ var Al = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
|
|
|
25610
25652
|
});
|
|
25611
25653
|
//#endregion
|
|
25612
25654
|
//#region src/SelectImageZoomModal.tsx
|
|
25613
|
-
function
|
|
25614
|
-
return /* @__PURE__ */ m(
|
|
25655
|
+
function Nl({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
25656
|
+
return /* @__PURE__ */ m(za, {
|
|
25615
25657
|
open: e,
|
|
25616
25658
|
onClose: t,
|
|
25617
25659
|
title: i,
|
|
@@ -25629,7 +25671,7 @@ function jl({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
25629
25671
|
}
|
|
25630
25672
|
//#endregion
|
|
25631
25673
|
//#region src/SelectZoomThumbnail.tsx
|
|
25632
|
-
function
|
|
25674
|
+
function Pl({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
25633
25675
|
let [a, o] = d(!1);
|
|
25634
25676
|
return e ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
25635
25677
|
type: "button",
|
|
@@ -25642,19 +25684,19 @@ function Ml({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
25642
25684
|
cursor: "zoom-in",
|
|
25643
25685
|
display: "inline-flex"
|
|
25644
25686
|
},
|
|
25645
|
-
children: /* @__PURE__ */ m(
|
|
25687
|
+
children: /* @__PURE__ */ m(Ml, {
|
|
25646
25688
|
src: e,
|
|
25647
25689
|
size: n,
|
|
25648
25690
|
alt: t,
|
|
25649
25691
|
count: i
|
|
25650
25692
|
})
|
|
25651
|
-
}), a && /* @__PURE__ */ m(
|
|
25693
|
+
}), a && /* @__PURE__ */ m(Nl, {
|
|
25652
25694
|
open: !0,
|
|
25653
25695
|
onClose: () => o(!1),
|
|
25654
25696
|
src: e,
|
|
25655
25697
|
alt: t,
|
|
25656
25698
|
title: r ?? t
|
|
25657
|
-
})] }) : /* @__PURE__ */ m(
|
|
25699
|
+
})] }) : /* @__PURE__ */ m(Ml, {
|
|
25658
25700
|
size: n,
|
|
25659
25701
|
alt: t,
|
|
25660
25702
|
count: i
|
|
@@ -25662,7 +25704,7 @@ function Ml({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
25662
25704
|
}
|
|
25663
25705
|
//#endregion
|
|
25664
25706
|
//#region src/SelectMediaCell.tsx
|
|
25665
|
-
var
|
|
25707
|
+
var Fl = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
25666
25708
|
return /* @__PURE__ */ h("span", {
|
|
25667
25709
|
ref: a,
|
|
25668
25710
|
...i,
|
|
@@ -25684,14 +25726,14 @@ var Nl = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
25684
25726
|
});
|
|
25685
25727
|
//#endregion
|
|
25686
25728
|
//#region src/SelectOfflineModal.tsx
|
|
25687
|
-
function
|
|
25729
|
+
function Il() {
|
|
25688
25730
|
let [e, t] = d(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
25689
25731
|
return o(() => {
|
|
25690
25732
|
let e = () => t(!1), n = () => t(!0);
|
|
25691
25733
|
return window.addEventListener("online", e), window.addEventListener("offline", n), () => {
|
|
25692
25734
|
window.removeEventListener("online", e), window.removeEventListener("offline", n);
|
|
25693
25735
|
};
|
|
25694
|
-
}, []), /* @__PURE__ */ m(
|
|
25736
|
+
}, []), /* @__PURE__ */ m(za, {
|
|
25695
25737
|
open: e,
|
|
25696
25738
|
onClose: () => {},
|
|
25697
25739
|
showClose: !1,
|
|
@@ -25707,7 +25749,7 @@ function Pl() {
|
|
|
25707
25749
|
}
|
|
25708
25750
|
//#endregion
|
|
25709
25751
|
//#region src/SelectKeyValueEditor.tsx
|
|
25710
|
-
function
|
|
25752
|
+
function Ll(e) {
|
|
25711
25753
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
25712
25754
|
name: String(e.name ?? e.key ?? ""),
|
|
25713
25755
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -25716,8 +25758,8 @@ function Fl(e) {
|
|
|
25716
25758
|
value: t == null ? "" : String(t)
|
|
25717
25759
|
})) : [];
|
|
25718
25760
|
}
|
|
25719
|
-
var
|
|
25720
|
-
let d =
|
|
25761
|
+
var Rl = 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) {
|
|
25762
|
+
let d = Ll(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
25721
25763
|
...t,
|
|
25722
25764
|
...n
|
|
25723
25765
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), g = () => t([...d, {
|
|
@@ -25781,7 +25823,7 @@ var Il = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25781
25823
|
})
|
|
25782
25824
|
]
|
|
25783
25825
|
});
|
|
25784
|
-
}),
|
|
25826
|
+
}), zl = (e) => String(e).padStart(2, "0"), Bl = {
|
|
25785
25827
|
"en-US": {
|
|
25786
25828
|
weekdays: [
|
|
25787
25829
|
"Su",
|
|
@@ -25840,34 +25882,34 @@ var Il = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25840
25882
|
to: "Até",
|
|
25841
25883
|
cancel: "Cancelar",
|
|
25842
25884
|
apply: "Aplicar",
|
|
25843
|
-
formatDate: (e) => `${
|
|
25885
|
+
formatDate: (e) => `${zl(e.getDate())} / ${zl(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
25844
25886
|
}
|
|
25845
|
-
},
|
|
25887
|
+
}, Vl = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Hl = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Ul = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Wl = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Gl = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Kl = (e) => {
|
|
25846
25888
|
let t = /* @__PURE__ */ new Date();
|
|
25847
25889
|
return {
|
|
25848
25890
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
25849
25891
|
to: t
|
|
25850
25892
|
};
|
|
25851
|
-
},
|
|
25893
|
+
}, ql = [
|
|
25852
25894
|
{
|
|
25853
25895
|
id: "15m",
|
|
25854
25896
|
label: "Last 15 minutes",
|
|
25855
|
-
range: () =>
|
|
25897
|
+
range: () => Kl(15)
|
|
25856
25898
|
},
|
|
25857
25899
|
{
|
|
25858
25900
|
id: "1h",
|
|
25859
25901
|
label: "Last 1 hour",
|
|
25860
|
-
range: () =>
|
|
25902
|
+
range: () => Kl(60)
|
|
25861
25903
|
},
|
|
25862
25904
|
{
|
|
25863
25905
|
id: "3h",
|
|
25864
25906
|
label: "Last 3 hours",
|
|
25865
|
-
range: () =>
|
|
25907
|
+
range: () => Kl(180)
|
|
25866
25908
|
},
|
|
25867
25909
|
{
|
|
25868
25910
|
id: "24h",
|
|
25869
25911
|
label: "Last 24 hours",
|
|
25870
|
-
range: () =>
|
|
25912
|
+
range: () => Kl(1440)
|
|
25871
25913
|
},
|
|
25872
25914
|
{
|
|
25873
25915
|
id: "3d",
|
|
@@ -25883,78 +25925,78 @@ var Il = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
25883
25925
|
id: "all",
|
|
25884
25926
|
label: "All",
|
|
25885
25927
|
range: () => ({
|
|
25886
|
-
from:
|
|
25887
|
-
to:
|
|
25928
|
+
from: Vl(/* @__PURE__ */ new Date()),
|
|
25929
|
+
to: Vl(/* @__PURE__ */ new Date())
|
|
25888
25930
|
})
|
|
25889
25931
|
}
|
|
25890
|
-
],
|
|
25891
|
-
let t =
|
|
25932
|
+
], Jl = (e) => {
|
|
25933
|
+
let t = Vl(/* @__PURE__ */ new Date());
|
|
25892
25934
|
return {
|
|
25893
|
-
from:
|
|
25935
|
+
from: Ul(t, -e),
|
|
25894
25936
|
to: t
|
|
25895
25937
|
};
|
|
25896
|
-
},
|
|
25897
|
-
let t = Vl(
|
|
25938
|
+
}, Yl = (e) => {
|
|
25939
|
+
let t = Ul(Vl(/* @__PURE__ */ new Date()), -e);
|
|
25898
25940
|
return {
|
|
25899
25941
|
from: t,
|
|
25900
25942
|
to: t
|
|
25901
25943
|
};
|
|
25902
|
-
},
|
|
25944
|
+
}, Xl = [
|
|
25903
25945
|
{
|
|
25904
25946
|
id: "today",
|
|
25905
25947
|
label: "Hoje",
|
|
25906
|
-
range: () =>
|
|
25948
|
+
range: () => Jl(0)
|
|
25907
25949
|
},
|
|
25908
25950
|
{
|
|
25909
25951
|
id: "yesterday",
|
|
25910
25952
|
label: "Ontem",
|
|
25911
|
-
range: () =>
|
|
25953
|
+
range: () => Yl(1)
|
|
25912
25954
|
},
|
|
25913
25955
|
{
|
|
25914
25956
|
id: "7d",
|
|
25915
25957
|
label: "Últimos 7 dias",
|
|
25916
|
-
range: () =>
|
|
25958
|
+
range: () => Jl(6)
|
|
25917
25959
|
},
|
|
25918
25960
|
{
|
|
25919
25961
|
id: "10d",
|
|
25920
25962
|
label: "Últimos 10 dias",
|
|
25921
|
-
range: () =>
|
|
25963
|
+
range: () => Jl(9)
|
|
25922
25964
|
},
|
|
25923
25965
|
{
|
|
25924
25966
|
id: "15d",
|
|
25925
25967
|
label: "Últimos 15 dias",
|
|
25926
|
-
range: () =>
|
|
25968
|
+
range: () => Jl(14)
|
|
25927
25969
|
},
|
|
25928
25970
|
{
|
|
25929
25971
|
id: "20d",
|
|
25930
25972
|
label: "Últimos 20 dias",
|
|
25931
|
-
range: () =>
|
|
25973
|
+
range: () => Jl(19)
|
|
25932
25974
|
},
|
|
25933
25975
|
{
|
|
25934
25976
|
id: "30d",
|
|
25935
25977
|
label: "Últimos 30 dias",
|
|
25936
|
-
range: () =>
|
|
25978
|
+
range: () => Jl(29)
|
|
25937
25979
|
},
|
|
25938
25980
|
{
|
|
25939
25981
|
id: "90d",
|
|
25940
25982
|
label: "Últimos 90 dias",
|
|
25941
|
-
range: () =>
|
|
25983
|
+
range: () => Jl(89)
|
|
25942
25984
|
}
|
|
25943
25985
|
];
|
|
25944
|
-
function
|
|
25986
|
+
function Zl(e) {
|
|
25945
25987
|
if (!e) return "—";
|
|
25946
25988
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
25947
25989
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
25948
25990
|
}
|
|
25949
|
-
var
|
|
25950
|
-
let p =
|
|
25991
|
+
var Ql = r(function({ value: e, presets: t = ql, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, f) {
|
|
25992
|
+
let p = Bl[a], g = Vl(/* @__PURE__ */ new Date()), _ = s ? Vl(s) : null, [v, y] = d(e ?? {
|
|
25951
25993
|
from: g,
|
|
25952
25994
|
to: g
|
|
25953
|
-
}), [b, x] = d(
|
|
25995
|
+
}), [b, x] = d(Hl((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = d(null), w = Ul(Hl(b), -Hl(b).getDay()), T = Array.from({ length: 42 }, (e, t) => Ul(w, t)), E = (e) => _ ? Vl(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ m("span", {
|
|
25954
25996
|
className: "select-datepicker__placeholder",
|
|
25955
25997
|
children: "— / — / ——"
|
|
25956
25998
|
}), O = (e) => {
|
|
25957
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
25999
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < Vl(t.from) ? {
|
|
25958
26000
|
from: e,
|
|
25959
26001
|
to: null
|
|
25960
26002
|
} : {
|
|
@@ -25964,7 +26006,7 @@ var Xl = r(function({ value: e, presets: t = Gl, onApply: n, onCancel: r, accent
|
|
|
25964
26006
|
}, k = (e) => {
|
|
25965
26007
|
if (e.disabled || !e.range) return;
|
|
25966
26008
|
let t = e.range();
|
|
25967
|
-
y(t), C(e.id), t.from && x(
|
|
26009
|
+
y(t), C(e.id), t.from && x(Hl(t.from));
|
|
25968
26010
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
25969
26011
|
return /* @__PURE__ */ m("div", {
|
|
25970
26012
|
ref: f,
|
|
@@ -26010,7 +26052,7 @@ var Xl = r(function({ value: e, presets: t = Gl, onApply: n, onCancel: r, accent
|
|
|
26010
26052
|
}),
|
|
26011
26053
|
o && /* @__PURE__ */ m("span", {
|
|
26012
26054
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
26013
|
-
children:
|
|
26055
|
+
children: Zl(v[e])
|
|
26014
26056
|
})
|
|
26015
26057
|
]
|
|
26016
26058
|
}, e))
|
|
@@ -26022,7 +26064,7 @@ var Xl = r(function({ value: e, presets: t = Gl, onApply: n, onCancel: r, accent
|
|
|
26022
26064
|
type: "button",
|
|
26023
26065
|
className: "select-datepicker__nav",
|
|
26024
26066
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
26025
|
-
onClick: () => x((e) =>
|
|
26067
|
+
onClick: () => x((e) => Wl(e, -1)),
|
|
26026
26068
|
children: /* @__PURE__ */ m(W, {})
|
|
26027
26069
|
}),
|
|
26028
26070
|
/* @__PURE__ */ h("span", {
|
|
@@ -26037,7 +26079,7 @@ var Xl = r(function({ value: e, presets: t = Gl, onApply: n, onCancel: r, accent
|
|
|
26037
26079
|
type: "button",
|
|
26038
26080
|
className: "select-datepicker__nav",
|
|
26039
26081
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
26040
|
-
onClick: () => x((e) =>
|
|
26082
|
+
onClick: () => x((e) => Wl(e, 1)),
|
|
26041
26083
|
children: /* @__PURE__ */ m(U, {})
|
|
26042
26084
|
})
|
|
26043
26085
|
]
|
|
@@ -26049,7 +26091,7 @@ var Xl = r(function({ value: e, presets: t = Gl, onApply: n, onCancel: r, accent
|
|
|
26049
26091
|
className: "select-datepicker__weekday",
|
|
26050
26092
|
children: e
|
|
26051
26093
|
}, t)), T.map((e) => {
|
|
26052
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
26094
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && Gl(e, v.from), i = !!v.to && Gl(e, v.to), a = r || i, o = !!v.from && !!v.to && !Gl(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > Vl(v.from) && e < Vl(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" : "") + (Gl(e, g) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
26053
26095
|
return /* @__PURE__ */ m("div", {
|
|
26054
26096
|
className: s,
|
|
26055
26097
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -26080,17 +26122,17 @@ var Xl = r(function({ value: e, presets: t = Gl, onApply: n, onCancel: r, accent
|
|
|
26080
26122
|
})]
|
|
26081
26123
|
})
|
|
26082
26124
|
});
|
|
26083
|
-
}),
|
|
26084
|
-
function
|
|
26125
|
+
}), $l = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), eu = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), tu = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
26126
|
+
function nu(e, t) {
|
|
26085
26127
|
for (let r of t) {
|
|
26086
26128
|
var n;
|
|
26087
26129
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
26088
|
-
if (t != null && t.from && t != null && t.to &&
|
|
26130
|
+
if (t != null && t.from && t != null && t.to && eu(t.from, e.start) && eu(t.to, e.end)) return r.label;
|
|
26089
26131
|
}
|
|
26090
|
-
return
|
|
26132
|
+
return eu(e.start, e.end) ? tu(e.start) : `${tu(e.start)} – ${tu(e.end)}`;
|
|
26091
26133
|
}
|
|
26092
|
-
function
|
|
26093
|
-
let [c, l] = d(!1), u = r === null ? null : r ??
|
|
26134
|
+
function ru({ value: e, onChange: t, presets: n = Xl, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
26135
|
+
let [c, l] = d(!1), u = r === null ? null : r ?? $l(/* @__PURE__ */ new Date());
|
|
26094
26136
|
return /* @__PURE__ */ m(Pn, {
|
|
26095
26137
|
active: c,
|
|
26096
26138
|
onClose: () => l(!1),
|
|
@@ -26104,9 +26146,9 @@ function tu({ value: e, onChange: t, presets: n = Jl, maxDate: r, placement: i =
|
|
|
26104
26146
|
icon: /* @__PURE__ */ m(nt, {}),
|
|
26105
26147
|
trailingIcon: /* @__PURE__ */ m(G, {}),
|
|
26106
26148
|
onClick: () => l((e) => !e),
|
|
26107
|
-
children:
|
|
26149
|
+
children: nu(e, n)
|
|
26108
26150
|
}),
|
|
26109
|
-
children: /* @__PURE__ */ m(
|
|
26151
|
+
children: /* @__PURE__ */ m(Ql, {
|
|
26110
26152
|
embedded: !0,
|
|
26111
26153
|
locale: "pt-BR",
|
|
26112
26154
|
showTime: !1,
|
|
@@ -26119,8 +26161,8 @@ function tu({ value: e, onChange: t, presets: n = Jl, maxDate: r, placement: i =
|
|
|
26119
26161
|
onCancel: () => l(!1),
|
|
26120
26162
|
onApply: (e) => {
|
|
26121
26163
|
e.from && t({
|
|
26122
|
-
start:
|
|
26123
|
-
end:
|
|
26164
|
+
start: $l(e.from),
|
|
26165
|
+
end: $l(e.to ?? e.from)
|
|
26124
26166
|
}), l(!1);
|
|
26125
26167
|
}
|
|
26126
26168
|
})
|
|
@@ -26128,7 +26170,7 @@ function tu({ value: e, onChange: t, presets: n = Jl, maxDate: r, placement: i =
|
|
|
26128
26170
|
}
|
|
26129
26171
|
//#endregion
|
|
26130
26172
|
//#region src/SelectNumberField.tsx
|
|
26131
|
-
var
|
|
26173
|
+
var iu = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a = 1, decimal: o = !1, disabled: c = !1, hint: l, error: u, onBlur: f, placeholder: p, size: g = "md", className: _, ...v }, y) {
|
|
26132
26174
|
let b = s(), x = (e) => Math.min(i ?? Infinity, Math.max(r ?? -Infinity, e)), S = (e) => Math.round(e * 1e6) / 1e6, C = t ?? 0, w = r != null && C <= r, T = i != null && C >= i, [E, D] = d(!1), [O, k] = d(""), A = o && E ? O : t == null ? "" : String(t), j = (e) => {
|
|
26133
26175
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
26134
26176
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -26202,7 +26244,7 @@ var nu = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
26202
26244
|
});
|
|
26203
26245
|
//#endregion
|
|
26204
26246
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
26205
|
-
function
|
|
26247
|
+
function au({ 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 }) {
|
|
26206
26248
|
let g = !c && (s == null || e.length < s), _ = e.length > o, v = (n, r) => t(e.map((e, t) => t === n ? r : e)), y = (n) => t(e.filter((e, t) => t !== n)), b = (n, r) => {
|
|
26207
26249
|
let i = n + r;
|
|
26208
26250
|
if (i < 0 || i >= e.length) return;
|
|
@@ -26297,7 +26339,7 @@ function ru({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
26297
26339
|
}
|
|
26298
26340
|
//#endregion
|
|
26299
26341
|
//#region src/SelectBuilderLayout.tsx
|
|
26300
|
-
function
|
|
26342
|
+
function ou({ 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 }) {
|
|
26301
26343
|
let d = v();
|
|
26302
26344
|
return /* @__PURE__ */ m(Ni, {
|
|
26303
26345
|
title: e,
|
|
@@ -26337,7 +26379,7 @@ function iu({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26337
26379
|
}
|
|
26338
26380
|
//#endregion
|
|
26339
26381
|
//#region src/SelectBuilderWorkspace.tsx
|
|
26340
|
-
function
|
|
26382
|
+
function su({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveLabel: a = "Salvar", saveDisabled: o = !1, cancelTo: s, error: c, sections: u, activeId: f, onActiveChange: g, searchable: _ = !1, preview: y, previewLayout: b = "fill", toolbar: x, dirty: S = !1, dirtyLabel: C = "Alterações não salvas" }) {
|
|
26341
26383
|
var w;
|
|
26342
26384
|
let T = v(), [E, D] = d(((w = u[0]) == null ? void 0 : w.id) ?? ""), [O, k] = d(""), A = f ?? E, j = u.find((e) => e.id === A) ?? u[0], M = (e) => {
|
|
26343
26385
|
f === void 0 && D(e), g == null || g(e);
|
|
@@ -26497,10 +26539,10 @@ function au({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
26497
26539
|
}
|
|
26498
26540
|
//#endregion
|
|
26499
26541
|
//#region src/SelectFlowCanvas.tsx
|
|
26500
|
-
var
|
|
26501
|
-
function
|
|
26542
|
+
var cu = (e) => Math.round(e * 100) / 100;
|
|
26543
|
+
function lu({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], children: a, zoom: o, defaultZoom: c = 1, onZoomChange: l, minZoom: u = .5, maxZoom: f = 1.3, onBackgroundClick: p, ariaLabel: g }) {
|
|
26502
26544
|
let _ = s().replace(/:/g, ""), [v, y] = d(c), b = o ?? v, x = (e) => {
|
|
26503
|
-
let t =
|
|
26545
|
+
let t = cu(Math.min(f, Math.max(u, e)));
|
|
26504
26546
|
o === void 0 && y(t), l == null || l(t);
|
|
26505
26547
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
26506
26548
|
return /* @__PURE__ */ h("div", {
|
|
@@ -26616,7 +26658,7 @@ function su({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
26616
26658
|
})]
|
|
26617
26659
|
});
|
|
26618
26660
|
}
|
|
26619
|
-
function
|
|
26661
|
+
function uu({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neutral", icon: o, order: s, eyebrow: c, title: l, subtitle: u, tags: d, titleTone: f = "default", selected: p = !1, active: g = !1, muted: _ = !1, invalid: v = !1, onClick: y, ariaLabel: b }) {
|
|
26620
26662
|
let x = `${p ? " is-selected" : v ? " is-invalid" : g ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
26621
26663
|
left: e,
|
|
26622
26664
|
top: t,
|
|
@@ -26692,7 +26734,7 @@ function cu({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
26692
26734
|
})]
|
|
26693
26735
|
});
|
|
26694
26736
|
}
|
|
26695
|
-
function
|
|
26737
|
+
function du({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
|
|
26696
26738
|
return /* @__PURE__ */ h("div", {
|
|
26697
26739
|
className: "select-flowpage",
|
|
26698
26740
|
children: [
|
|
@@ -26754,7 +26796,7 @@ function lu({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
26754
26796
|
}
|
|
26755
26797
|
//#endregion
|
|
26756
26798
|
//#region src/SelectSwitchField.tsx
|
|
26757
|
-
var
|
|
26799
|
+
var fu = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
26758
26800
|
return /* @__PURE__ */ h("div", {
|
|
26759
26801
|
ref: c,
|
|
26760
26802
|
...s,
|
|
@@ -26782,7 +26824,7 @@ var uu = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
26782
26824
|
children: i
|
|
26783
26825
|
})]
|
|
26784
26826
|
});
|
|
26785
|
-
}),
|
|
26827
|
+
}), pu = [
|
|
26786
26828
|
"#212529",
|
|
26787
26829
|
"#495057",
|
|
26788
26830
|
"#868E96",
|
|
@@ -26799,13 +26841,13 @@ var uu = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
26799
26841
|
"#DB2777",
|
|
26800
26842
|
"#9333EA",
|
|
26801
26843
|
"#6D28D9"
|
|
26802
|
-
],
|
|
26803
|
-
function
|
|
26804
|
-
let t =
|
|
26844
|
+
], mu = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
26845
|
+
function hu(e) {
|
|
26846
|
+
let t = mu.exec((e ?? "").trim());
|
|
26805
26847
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
26806
26848
|
}
|
|
26807
|
-
function
|
|
26808
|
-
let t =
|
|
26849
|
+
function gu(e) {
|
|
26850
|
+
let t = hu(e);
|
|
26809
26851
|
if (!t) return 0;
|
|
26810
26852
|
let [n, r, i] = [
|
|
26811
26853
|
1,
|
|
@@ -26814,13 +26856,13 @@ function mu(e) {
|
|
|
26814
26856
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
26815
26857
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
26816
26858
|
}
|
|
26817
|
-
function
|
|
26818
|
-
let [n, r] = [
|
|
26859
|
+
function _u(e, t) {
|
|
26860
|
+
let [n, r] = [gu(e), gu(t)].sort((e, t) => t - e);
|
|
26819
26861
|
return (n + .05) / (r + .05);
|
|
26820
26862
|
}
|
|
26821
|
-
var
|
|
26822
|
-
function
|
|
26823
|
-
let t =
|
|
26863
|
+
var vu = (e) => Math.min(1, Math.max(0, e));
|
|
26864
|
+
function yu(e) {
|
|
26865
|
+
let t = hu(e) ?? "#000000", [n, r, i] = [
|
|
26824
26866
|
1,
|
|
26825
26867
|
3,
|
|
26826
26868
|
5
|
|
@@ -26831,7 +26873,7 @@ function _u(e) {
|
|
|
26831
26873
|
v: a
|
|
26832
26874
|
};
|
|
26833
26875
|
}
|
|
26834
|
-
function
|
|
26876
|
+
function bu({ h: e, s: t, v: n }) {
|
|
26835
26877
|
let r = (r) => {
|
|
26836
26878
|
let i = (r + e / 60) % 6;
|
|
26837
26879
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -26842,26 +26884,26 @@ function vu({ h: e, s: t, v: n }) {
|
|
|
26842
26884
|
r(1)
|
|
26843
26885
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
26844
26886
|
}
|
|
26845
|
-
function
|
|
26846
|
-
let [n, r] = d(() =>
|
|
26887
|
+
function xu({ hex: e, onPick: t }) {
|
|
26888
|
+
let [n, r] = d(() => yu(e ?? "#1D4ED8")), i = u(n), a = (e) => {
|
|
26847
26889
|
i.current = e, r(e);
|
|
26848
26890
|
};
|
|
26849
26891
|
o(() => {
|
|
26850
|
-
if (!e ||
|
|
26851
|
-
let t =
|
|
26892
|
+
if (!e || bu(i.current) === e) return;
|
|
26893
|
+
let t = yu(e);
|
|
26852
26894
|
a(t.s === 0 || t.v === 0 ? {
|
|
26853
26895
|
...t,
|
|
26854
26896
|
h: i.current.h
|
|
26855
26897
|
} : t);
|
|
26856
26898
|
}, [e]);
|
|
26857
26899
|
let s = (e) => {
|
|
26858
|
-
a(e), t(
|
|
26900
|
+
a(e), t(bu(e));
|
|
26859
26901
|
}, c = (e, t, n) => {
|
|
26860
26902
|
var r;
|
|
26861
26903
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
26862
26904
|
let i = (t) => {
|
|
26863
26905
|
let r = e.getBoundingClientRect();
|
|
26864
|
-
n(
|
|
26906
|
+
n(vu((t.clientX - r.left) / (r.width || 1)), vu((t.clientY - r.top) / (r.height || 1)));
|
|
26865
26907
|
};
|
|
26866
26908
|
i(t);
|
|
26867
26909
|
let a = (e) => i(e), o = () => {
|
|
@@ -26871,20 +26913,20 @@ function yu({ hex: e, onPick: t }) {
|
|
|
26871
26913
|
}, l = (e) => {
|
|
26872
26914
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, o = e.key === "ArrowLeft" ? {
|
|
26873
26915
|
h: n,
|
|
26874
|
-
s:
|
|
26916
|
+
s: vu(r - t),
|
|
26875
26917
|
v: a
|
|
26876
26918
|
} : e.key === "ArrowRight" ? {
|
|
26877
26919
|
h: n,
|
|
26878
|
-
s:
|
|
26920
|
+
s: vu(r + t),
|
|
26879
26921
|
v: a
|
|
26880
26922
|
} : e.key === "ArrowUp" ? {
|
|
26881
26923
|
h: n,
|
|
26882
26924
|
s: r,
|
|
26883
|
-
v:
|
|
26925
|
+
v: vu(a + t)
|
|
26884
26926
|
} : e.key === "ArrowDown" ? {
|
|
26885
26927
|
h: n,
|
|
26886
26928
|
s: r,
|
|
26887
|
-
v:
|
|
26929
|
+
v: vu(a - t)
|
|
26888
26930
|
} : null;
|
|
26889
26931
|
o && (e.preventDefault(), s(o));
|
|
26890
26932
|
}, f = (e) => {
|
|
@@ -26894,11 +26936,11 @@ function yu({ hex: e, onPick: t }) {
|
|
|
26894
26936
|
s: r,
|
|
26895
26937
|
v: a
|
|
26896
26938
|
}));
|
|
26897
|
-
}, g =
|
|
26939
|
+
}, g = bu({
|
|
26898
26940
|
h: n.h,
|
|
26899
26941
|
s: 1,
|
|
26900
26942
|
v: 1
|
|
26901
|
-
}), _ =
|
|
26943
|
+
}), _ = bu(n);
|
|
26902
26944
|
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
|
|
26903
26945
|
className: "select-colorfield__sv",
|
|
26904
26946
|
style: { backgroundColor: g },
|
|
@@ -26942,24 +26984,24 @@ function yu({ hex: e, onPick: t }) {
|
|
|
26942
26984
|
})
|
|
26943
26985
|
})] });
|
|
26944
26986
|
}
|
|
26945
|
-
var
|
|
26946
|
-
function
|
|
26987
|
+
var Su = (e) => e.toFixed(1).replace(".", ",");
|
|
26988
|
+
function Cu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: c = pu, disabled: l = !1, allowEmpty: u = !1, contrastWith: f, contrastLabel: g = "o texto", id: _ }) {
|
|
26947
26989
|
let v = s(), y = _ ?? `color-${v}`, [b, x] = d(!1), [S, C] = d(i ?? ""), [w, T] = d(null);
|
|
26948
26990
|
o(() => {
|
|
26949
26991
|
C(i ?? ""), T(null);
|
|
26950
26992
|
}, [i]);
|
|
26951
|
-
let E =
|
|
26993
|
+
let E = hu(i ?? ""), D = (e) => {
|
|
26952
26994
|
if (!e.trim()) {
|
|
26953
26995
|
u ? (T(null), a("")) : C(i ?? "");
|
|
26954
26996
|
return;
|
|
26955
26997
|
}
|
|
26956
|
-
let t =
|
|
26998
|
+
let t = hu(e);
|
|
26957
26999
|
if (!t) {
|
|
26958
27000
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
26959
27001
|
return;
|
|
26960
27002
|
}
|
|
26961
27003
|
T(null), C(t), t !== E && a(t);
|
|
26962
|
-
}, O = f ?
|
|
27004
|
+
}, O = f ? hu(f) : null, k = E && O ? _u(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
|
|
26963
27005
|
return /* @__PURE__ */ h("div", {
|
|
26964
27006
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
26965
27007
|
children: [
|
|
@@ -26987,7 +27029,7 @@ function xu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26987
27029
|
children: /* @__PURE__ */ h("div", {
|
|
26988
27030
|
className: "select-colorfield__panel",
|
|
26989
27031
|
children: [
|
|
26990
|
-
/* @__PURE__ */ m(
|
|
27032
|
+
/* @__PURE__ */ m(xu, {
|
|
26991
27033
|
hex: E,
|
|
26992
27034
|
onPick: D
|
|
26993
27035
|
}),
|
|
@@ -26996,7 +27038,7 @@ function xu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
26996
27038
|
role: "group",
|
|
26997
27039
|
"aria-label": "Cores prontas",
|
|
26998
27040
|
children: c.map((e) => {
|
|
26999
|
-
let t =
|
|
27041
|
+
let t = hu(e) ?? e, n = t === E;
|
|
27000
27042
|
return /* @__PURE__ */ m("button", {
|
|
27001
27043
|
type: "button",
|
|
27002
27044
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -27027,7 +27069,7 @@ function xu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
27027
27069
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
27028
27070
|
value: S,
|
|
27029
27071
|
onChange: (e) => {
|
|
27030
|
-
C(e.target.value), e.target.value.replace("#", "").length === 6 &&
|
|
27072
|
+
C(e.target.value), e.target.value.replace("#", "").length === 6 && hu(e.target.value) && D(e.target.value);
|
|
27031
27073
|
},
|
|
27032
27074
|
onBlur: () => D(S),
|
|
27033
27075
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -27050,14 +27092,14 @@ function xu({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
27050
27092
|
}) : null : /* @__PURE__ */ h("p", {
|
|
27051
27093
|
id: `${y}-hint`,
|
|
27052
27094
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
27053
|
-
children: [k >= 4.5 ? `Contraste com ${g}: ${
|
|
27095
|
+
children: [k >= 4.5 ? `Contraste com ${g}: ${Su(k)}:1 — legível.` : `Contraste com ${g}: ${Su(k)}:1 — difícil de ler. Escolha uma cor ${gu(E) < gu(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ h(p, { children: [" ", n] }) : null]
|
|
27054
27096
|
})
|
|
27055
27097
|
]
|
|
27056
27098
|
});
|
|
27057
27099
|
}
|
|
27058
27100
|
//#endregion
|
|
27059
27101
|
//#region src/SelectProgressBar.tsx
|
|
27060
|
-
var
|
|
27102
|
+
var wu = 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) {
|
|
27061
27103
|
if (l) return /* @__PURE__ */ h("div", {
|
|
27062
27104
|
ref: f,
|
|
27063
27105
|
...d,
|
|
@@ -27102,7 +27144,7 @@ var Su = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
27102
27144
|
})
|
|
27103
27145
|
]
|
|
27104
27146
|
});
|
|
27105
|
-
}),
|
|
27147
|
+
}), Tu = r(function({ icon: e, accent: t, title: n, description: r, badge: i, meta: a, cta: o, to: s, onClick: c, selected: l, disabled: u = !1, className: d, ...f }, g) {
|
|
27106
27148
|
let v = `select-choicecard${l ? " is-selected" : ""}${u ? " is-disabled" : ""}${d ? " " + d : ""}`, y = t ? { "--select-choice-accent": t } : void 0, b = /* @__PURE__ */ h(p, { children: [
|
|
27107
27149
|
/* @__PURE__ */ h("span", {
|
|
27108
27150
|
className: "select-choicecard__top",
|
|
@@ -27163,7 +27205,7 @@ var Su = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
27163
27205
|
children: b
|
|
27164
27206
|
});
|
|
27165
27207
|
});
|
|
27166
|
-
function
|
|
27208
|
+
function Eu({ badge: e = !0 }) {
|
|
27167
27209
|
return /* @__PURE__ */ h("div", {
|
|
27168
27210
|
className: "select-choicecard select-choicecard--skeleton",
|
|
27169
27211
|
"aria-hidden": "true",
|
|
@@ -27184,7 +27226,7 @@ function wu({ badge: e = !0 }) {
|
|
|
27184
27226
|
]
|
|
27185
27227
|
});
|
|
27186
27228
|
}
|
|
27187
|
-
var
|
|
27229
|
+
var Du = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, listOnPhone: i = !1, className: a, style: o, ...s }, c) {
|
|
27188
27230
|
return /* @__PURE__ */ m("div", {
|
|
27189
27231
|
ref: c,
|
|
27190
27232
|
...s,
|
|
@@ -27194,16 +27236,16 @@ var Tu = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
27194
27236
|
"--select-choice-min": t,
|
|
27195
27237
|
...o
|
|
27196
27238
|
},
|
|
27197
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(
|
|
27239
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(Eu, {}, t)) : e
|
|
27198
27240
|
});
|
|
27199
|
-
}),
|
|
27241
|
+
}), Ou = 960, ku = Math.round(Ou * 210 / 297), Au = r(function({ side: e = "front", accent: t, courseTitle: n, subtitle: r, memberName: i = "Nome do aluno", body: a, signatures: s = [], issuedAt: c, verificationCode: l, eyebrow: f, className: g }, _) {
|
|
27200
27242
|
let v = u(null), [y, b] = d(.5);
|
|
27201
27243
|
o(() => {
|
|
27202
27244
|
let e = v.current;
|
|
27203
27245
|
if (!e) return;
|
|
27204
27246
|
let t = () => {
|
|
27205
27247
|
let t = e.clientWidth;
|
|
27206
|
-
t > 0 && b(Math.min(1, t /
|
|
27248
|
+
t > 0 && b(Math.min(1, t / Ou));
|
|
27207
27249
|
};
|
|
27208
27250
|
if (t(), typeof ResizeObserver > "u") return;
|
|
27209
27251
|
let n = new ResizeObserver(t);
|
|
@@ -27211,7 +27253,7 @@ var Tu = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
27211
27253
|
}, []);
|
|
27212
27254
|
let x = e === "front", S = {
|
|
27213
27255
|
"--select-cert-accent": t || void 0,
|
|
27214
|
-
height:
|
|
27256
|
+
height: ku * y + 2
|
|
27215
27257
|
};
|
|
27216
27258
|
return /* @__PURE__ */ m("div", {
|
|
27217
27259
|
ref: (e) => {
|
|
@@ -27224,8 +27266,8 @@ var Tu = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
27224
27266
|
children: /* @__PURE__ */ m("div", {
|
|
27225
27267
|
className: "select-certpreview__sheet",
|
|
27226
27268
|
style: {
|
|
27227
|
-
width:
|
|
27228
|
-
height:
|
|
27269
|
+
width: Ou,
|
|
27270
|
+
height: ku,
|
|
27229
27271
|
transform: `scale(${y})`
|
|
27230
27272
|
},
|
|
27231
27273
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -27298,13 +27340,13 @@ var Tu = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
27298
27340
|
});
|
|
27299
27341
|
//#endregion
|
|
27300
27342
|
//#region src/SelectImageField.tsx
|
|
27301
|
-
function
|
|
27343
|
+
function ju(e) {
|
|
27302
27344
|
return new Promise((t, n) => {
|
|
27303
27345
|
let r = new FileReader();
|
|
27304
27346
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
27305
27347
|
});
|
|
27306
27348
|
}
|
|
27307
|
-
var
|
|
27349
|
+
var Mu = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
|
|
27308
27350
|
let [f, p] = d([]), [g, _] = d(null), v = t ? [t] : [], y = async (e) => {
|
|
27309
27351
|
let t = e[0];
|
|
27310
27352
|
if (!t) {
|
|
@@ -27312,7 +27354,7 @@ var Au = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27312
27354
|
return;
|
|
27313
27355
|
}
|
|
27314
27356
|
if (_(null), !s) {
|
|
27315
|
-
n(await
|
|
27357
|
+
n(await ju(t)), p([]);
|
|
27316
27358
|
return;
|
|
27317
27359
|
}
|
|
27318
27360
|
p([t]);
|
|
@@ -27344,7 +27386,7 @@ var Au = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27344
27386
|
children: g
|
|
27345
27387
|
})]
|
|
27346
27388
|
});
|
|
27347
|
-
}),
|
|
27389
|
+
}), Nu = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
27348
27390
|
let [o, s] = d(() => new Set(n)), c = (e) => s((n) => {
|
|
27349
27391
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
27350
27392
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -27390,6 +27432,6 @@ var Au = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
27390
27432
|
});
|
|
27391
27433
|
});
|
|
27392
27434
|
//#endregion
|
|
27393
|
-
export { C as AUTH_FX_VARIANTS, Ie as AppleIcon, _t as AppsIcon, K as ArrowLeftIcon, Re as ArrowRightIcon, We as AtIcon, Ne as AuthAppIcon, Tt as AwardIcon, at as BankIcon, Se as BellIcon, Ct as BookIcon, fe as BookmarkIcon, ft as BroadcastIcon, Ke as BuildingIcon, nt as CalendarIcon, yt as CartIcon, ht as ChartLineIcon, Mt as ChatIcon, Ue as CheckCircleIcon, Be as CheckIcon, G as ChevronDownIcon, W as ChevronLeftIcon, U as ChevronRightIcon, rt as ChevronUpIcon, ct as ClipboardIcon, de as ClockIcon, It as CloseCircleIcon, ce as CloseIcon, se as CopyIcon, Qe as CreditCardIcon, Te as CubeIcon, ut as DiscountIcon, Rt as DocumentTextIcon, le as DotsHorizontalIcon, $e as EditIcon, it as ExportIcon, J as ExternalLinkIcon, Ve as EyeIcon, He as EyeOffIcon, Fe as FacebookIcon, wt as FileDownloadIcon, q as FilterIcon, Pt as FlagIcon, Lt as FlashIcon, ie as GithubIcon, ge as GlobeIcon, re as GoogleIcon, ye as HelpIcon, Ye as HomeIcon, ve as InfoIcon, qe as KeyIcon, mt as LinkIcon, Ft as LocationIcon, tt as LockIcon, Pe as MailIcon, bt as MenuIcon, vt as MinusCircleIcon, ke as MobileIcon, st as MoneyReceiveIcon, ot as MoneySendIcon, Oe as MonitorIcon, De as MoonIcon, lt as NoteIcon, Dt as PaletteIcon, Le as PasskeyIcon, kt as PauseIcon, Me as PhoneIcon, pe as PinIcon, St as PlayCircleIcon, je as PlusIcon, jt as ReceiptIcon, Ae as RefreshIcon, At as RefundIcon, we as RocketIcon,
|
|
27435
|
+
export { C as AUTH_FX_VARIANTS, Ie as AppleIcon, _t as AppsIcon, K as ArrowLeftIcon, Re as ArrowRightIcon, We as AtIcon, Ne as AuthAppIcon, Tt as AwardIcon, at as BankIcon, Se as BellIcon, Ct as BookIcon, fe as BookmarkIcon, ft as BroadcastIcon, Ke as BuildingIcon, nt as CalendarIcon, yt as CartIcon, ht as ChartLineIcon, Mt as ChatIcon, Ue as CheckCircleIcon, Be as CheckIcon, G as ChevronDownIcon, W as ChevronLeftIcon, U as ChevronRightIcon, rt as ChevronUpIcon, ct as ClipboardIcon, de as ClockIcon, It as CloseCircleIcon, ce as CloseIcon, se as CopyIcon, Qe as CreditCardIcon, Te as CubeIcon, ut as DiscountIcon, Rt as DocumentTextIcon, le as DotsHorizontalIcon, $e as EditIcon, it as ExportIcon, J as ExternalLinkIcon, Ve as EyeIcon, He as EyeOffIcon, Fe as FacebookIcon, wt as FileDownloadIcon, q as FilterIcon, Pt as FlagIcon, Lt as FlashIcon, ie as GithubIcon, ge as GlobeIcon, re as GoogleIcon, ye as HelpIcon, Ye as HomeIcon, ve as InfoIcon, qe as KeyIcon, mt as LinkIcon, Ft as LocationIcon, tt as LockIcon, Pe as MailIcon, bt as MenuIcon, vt as MinusCircleIcon, ke as MobileIcon, st as MoneyReceiveIcon, ot as MoneySendIcon, Oe as MonitorIcon, De as MoonIcon, lt as NoteIcon, Dt as PaletteIcon, Le as PasskeyIcon, kt as PauseIcon, Me as PhoneIcon, pe as PinIcon, St as PlayCircleIcon, je as PlusIcon, jt as ReceiptIcon, Ae as RefreshIcon, At as RefundIcon, we as RocketIcon, dc as SELECT_BR_UF_TILES, Cr as SELECT_CARD_BRANDS, pu as SELECT_COLOR_PRESETS, Wa as SELECT_COL_DATETIME, Ga as SELECT_COL_ID, nr as SELECT_COUNTRIES, Xl as SELECT_DAILY_PRESETS, ql as SELECT_DATE_PRESETS, fr as SELECT_SPACE, cr as SELECT_TRANSACTION_STATUS, ae as SearchIcon, Nu as SelectAccordion, Pa as SelectActionCard, ur as SelectActionList, dr as SelectActionMenu, hn as SelectAddButton, ro as SelectAddCard, on as SelectAlert, Fa as SelectAppTile, B as SelectAuthFx, _i as SelectAvatar, wi as SelectBackLink, sr as SelectBadge, ls as SelectBalanceCard, Bn as SelectBankAccountField, zs as SelectBarChart, br as SelectBox, kc as SelectBoxPlot, ou as SelectBuilderLayout, su as SelectBuilderWorkspace, Sc as SelectBullet, el as SelectBump, H as SelectButton, jc as SelectCalendarHeatmap, Oc as SelectCandlestick, V as SelectCard, io as SelectCardGrid, Au as SelectCertificatePreview, Cs as SelectChartCard, qs as SelectChartLegend, Jt as SelectCheckbox, Tu as SelectChoiceCard, Eu as SelectChoiceCardSkeleton, Du as SelectChoiceGrid, Bc as SelectChord, sl as SelectCirclePack, ja as SelectCodeBlock, Na as SelectCollapsible, Cu as SelectColorField, Ks as SelectColumnChart, Hs as SelectComboChart, In as SelectCombobox, Va as SelectConfirmModal, ka as SelectCopyRow, Ma as SelectCopyableId, Ia as SelectCreateTile, no as SelectDataTable, Uo as SelectDateField, Ql as SelectDatePicker, ru as SelectDateRangeField, gl as SelectDetailList, _l as SelectDetailRow, Nr as SelectDisclosureButton, gi as SelectDivider, an as SelectDocumentField, Us as SelectDonut, S as SelectDotField, Pc as SelectDumbbell, us as SelectFeeBreakdown, qt as SelectField, Ln as SelectFieldGrid, mn as SelectFileDropzone, sn as SelectFileTile, Jo as SelectFilterBar, Oa as SelectFilterChip, lu as SelectFlowCanvas, du as SelectFlowLayout, uu as SelectFlowNode, Ii as SelectFormLayout, Ha as SelectFormModal, rc as SelectFunnel, cc as SelectGauge, Ic as SelectGaugeBands, Yc as SelectGlobe, _r as SelectGrid, lc as SelectHeatmap, Vc as SelectHexbin, Eo as SelectHideMoneyToggle, yc as SelectHorizontalBar, il as SelectIcicle, Gi as SelectIcon, Mr as SelectIconButton, Qs as SelectIconTile, bi as SelectIdentityFooter, Mu as SelectImageField, Cn as SelectImageGalleryField, _n as SelectImageUploadField, gn as SelectImageUrlsField, Nl as SelectImageZoomModal, Ut as SelectInfoTip, gr as SelectInline, Ss as SelectInsight, Xs as SelectJourney, di as SelectJsonViewer, Rl as SelectKeyValueEditor, ds as SelectKpiCard, Wt as SelectLabelRow, so as SelectLayoutThumb, Bs as SelectLineChart, hi as SelectLinkButton, kl as SelectListCard, jl as SelectListLabel, Al as SelectListRow, Mi as SelectLoader, Fc as SelectMarimekko, jo as SelectMarkStack, Fl as SelectMediaCell, xa as SelectMenu, Da as SelectMenuButton, Ea as SelectMenuDivider, Ta as SelectMenuHeading, Ca as SelectMenuItem, wa as SelectMenuLink, To as SelectMetricDelta, tc as SelectMiniStats, za as SelectModal, Co as SelectMoney, en as SelectMoneyField, cl as SelectNetwork, Ki as SelectNote, iu as SelectNumberField, Do as SelectOfferPrice, Il as SelectOfflineModal, vi as SelectOptionList, yi as SelectOptionRow, xi as SelectOtpInput, Ni as SelectPage, oa as SelectPagination, Yi as SelectPanel, tl as SelectParallel, Zc as SelectPareto, ji as SelectPasswordStrength, jr as SelectPaymentBrand, nc as SelectPaymentCard, ir as SelectPhoneField, Zs as SelectPips, Ol as SelectPlanCard, Mc as SelectPolarArea, Pn as SelectPopover, cs as SelectPreviewFrame, wu as SelectProgressBar, fc as SelectProgressList, $c as SelectPyramid, Ec as SelectRadar, mc as SelectRadialBar, ar as SelectRadioGroup, Ac as SelectRangeBar, ko as SelectRating, Ao as SelectRatingQuote, ao as SelectRecordCard, au as SelectRepeatingFieldArray, Ti as SelectResendButton, Di as SelectRetryStatus, Ys as SelectRing, Ba as SelectRowActions, Dc as SelectSankey, Tc as SelectScatter, ra as SelectSearchInput, ll as SelectSearchMenu, dl as SelectSearchMenuOption, Xi as SelectSection, or as SelectSegmented, wn as SelectSelect, So as SelectSensitiveValue, qi as SelectSettingList, Ji as SelectSettingRow, xl as SelectSetupGuide, Sl as SelectSetupNext, Js as SelectShareBar, na as SelectSideNav, Ui as SelectSkeleton, Nc as SelectSlope, Ls as SelectSparkline, uo as SelectSplitChain, $s as SelectSpotlight, hr as SelectStack, Vs as SelectStackedArea, lr as SelectStatusBadge, vl as SelectSteps, Lc as SelectStreamGraph, Rc as SelectSunburst, Xo as SelectSurface, Vn as SelectSwitch, fu as SelectSwitchField, ha as SelectTable, ya as SelectTableCell, ba as SelectTableEmpty, va as SelectTableRow, Zi as SelectTabs, Yo as SelectTagSelect, ec as SelectTaskCard, xr as SelectText, Yt as SelectTextarea, ml as SelectThemeSwitcher, Ml as SelectThumbnail, Xc as SelectTicker, uc as SelectTileMap, mi as SelectTimeline, rs as SelectToastProvider, Hn as SelectToggleList, Wn as SelectTogglePanel, Un as SelectToggleRow, Ht as SelectTooltip, Dl as SelectTour, al as SelectTree, wc as SelectTreemap, Xt as SelectUnitInput, _a as SelectUserCell, bo as SelectValueVisibilityProvider, ol as SelectVenn, zc as SelectViolin, Qc as SelectWaffle, bc as SelectWaterfall, Hc as SelectWordCloud, La as SelectWorkspaceSwitcher, Pl as SelectZoomThumbnail, _e as SelectorIcon, et as SendIcon, ue as Setting4Icon, Xe as SettingsIcon, ze as ShieldIcon, Nt as SparkleIcon, he as SplitIcon, me as StarIcon, gt as StoreIcon, xt as StorefrontIcon, Ee as SunIcon, Ce as TerminalIcon, dt as TicketDiscountIcon, Je as TrashIcon, pt as TruckIcon, oe as UploadIcon, xe as UserIcon, Et as UsersIcon, Ze as WalletIcon, be as WarningIcon, Ge as Web3Icon, _u as contrastRatio, Mn as detectSelectTheme, rr as dialCodeOf, hs as formatInsightImpact, yn as galleryItemFromFile, bn as galleryItemFromUrl, yu as hexToHsv, bu as hsvToHex, hu as normalizeHex, Ai as passwordScore, Aa as prettyCode, pl as resolveSelectTheme, Er as selectCardBrand, Dr as selectCardBrandLabel, eo as useSelectPageSize, is as useSelectToast, xo as useSelectValueVisibility };
|
|
27394
27436
|
|
|
27395
27437
|
//# sourceMappingURL=index.js.map
|