@selectwin/kit 0.1.158 → 0.1.160
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/SelectConversation.d.ts +31 -0
- package/dist/SelectMail.d.ts +11 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +717 -630
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8483,10 +8483,10 @@ function _s(e) {
|
|
|
8483
8483
|
return e ? ((t = e.name) == null ? void 0 : t.trim()) || e.address : "Remetente desconhecido";
|
|
8484
8484
|
}
|
|
8485
8485
|
var vs = (...e) => e.filter(Boolean).join(" ");
|
|
8486
|
-
function ys({ toolbar: e, banner: t, list: n, reader: r, readerOpen: i = !1, children: a, fullBody: o, "aria-label":
|
|
8486
|
+
function ys({ toolbar: e, banner: t, list: n, reader: r, readerOpen: i = !1, children: a, fullBody: o, aside: s, asideLabel: c = "Sobre a conversa", "aria-label": l }) {
|
|
8487
8487
|
return /* @__PURE__ */ g("div", {
|
|
8488
8488
|
className: vs("select-inbox", i && "is-reading"),
|
|
8489
|
-
"aria-label":
|
|
8489
|
+
"aria-label": l,
|
|
8490
8490
|
children: [
|
|
8491
8491
|
/* @__PURE__ */ h("div", {
|
|
8492
8492
|
className: "select-inbox__toolbar",
|
|
@@ -8498,15 +8498,23 @@ function ys({ toolbar: e, banner: t, list: n, reader: r, readerOpen: i = !1, chi
|
|
|
8498
8498
|
children: o
|
|
8499
8499
|
}) : /* @__PURE__ */ g("div", {
|
|
8500
8500
|
className: "select-inbox__body",
|
|
8501
|
-
children: [
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8501
|
+
children: [
|
|
8502
|
+
/* @__PURE__ */ h("section", {
|
|
8503
|
+
className: "select-inbox__list",
|
|
8504
|
+
"aria-label": "Conversas",
|
|
8505
|
+
children: n
|
|
8506
|
+
}),
|
|
8507
|
+
/* @__PURE__ */ h("section", {
|
|
8508
|
+
className: "select-inbox__reader",
|
|
8509
|
+
"aria-label": "Conversa aberta",
|
|
8510
|
+
children: r
|
|
8511
|
+
}),
|
|
8512
|
+
s ? /* @__PURE__ */ h("aside", {
|
|
8513
|
+
className: "select-inbox__aside",
|
|
8514
|
+
"aria-label": c,
|
|
8515
|
+
children: s
|
|
8516
|
+
}) : null
|
|
8517
|
+
]
|
|
8510
8518
|
}),
|
|
8511
8519
|
a
|
|
8512
8520
|
]
|
|
@@ -8703,9 +8711,9 @@ function Os({ children: e, tone: t = "muted" }) {
|
|
|
8703
8711
|
children: e
|
|
8704
8712
|
});
|
|
8705
8713
|
}
|
|
8706
|
-
function ks({ title: e, meta: t, actions: n, tools: r, onBack: i, children: a, footer: o }) {
|
|
8714
|
+
function ks({ title: e, meta: t, actions: n, tools: r, onBack: i, children: a, footer: o, variant: s = "mail" }) {
|
|
8707
8715
|
return /* @__PURE__ */ g("div", {
|
|
8708
|
-
className: "select-mailreader",
|
|
8716
|
+
className: vs("select-mailreader", s === "chat" && "select-mailreader--chat"),
|
|
8709
8717
|
children: [
|
|
8710
8718
|
/* @__PURE__ */ g("header", {
|
|
8711
8719
|
className: "select-mailreader__head",
|
|
@@ -9260,12 +9268,91 @@ function Zs({ open: e, onClose: t, activator: n, templates: r, onPick: i, hint:
|
|
|
9260
9268
|
});
|
|
9261
9269
|
}
|
|
9262
9270
|
//#endregion
|
|
9271
|
+
//#region src/SelectConversation.tsx
|
|
9272
|
+
var Qs = (...e) => e.filter(Boolean).join(" "), $s = 48;
|
|
9273
|
+
function ec(e) {
|
|
9274
|
+
for (let t = (e == null ? void 0 : e.parentElement) ?? null; t; t = t.parentElement) {
|
|
9275
|
+
let { overflowY: e } = getComputedStyle(t);
|
|
9276
|
+
if (e === "auto" || e === "scroll") return t;
|
|
9277
|
+
}
|
|
9278
|
+
return null;
|
|
9279
|
+
}
|
|
9280
|
+
function tc({ children: e, "aria-label": t }) {
|
|
9281
|
+
let n = d(null), r = d(!0);
|
|
9282
|
+
return o(() => {
|
|
9283
|
+
let e = ec(n.current);
|
|
9284
|
+
if (!e) return;
|
|
9285
|
+
let t = () => {
|
|
9286
|
+
r.current = e.scrollHeight - e.scrollTop - e.clientHeight <= $s;
|
|
9287
|
+
};
|
|
9288
|
+
return e.addEventListener("scroll", t, { passive: !0 }), () => e.removeEventListener("scroll", t);
|
|
9289
|
+
}, []), l(() => {
|
|
9290
|
+
if (!r.current) return;
|
|
9291
|
+
let e = ec(n.current);
|
|
9292
|
+
e && (e.scrollTop = e.scrollHeight);
|
|
9293
|
+
}), /* @__PURE__ */ h("div", {
|
|
9294
|
+
ref: n,
|
|
9295
|
+
className: "select-convo",
|
|
9296
|
+
role: "log",
|
|
9297
|
+
"aria-live": "polite",
|
|
9298
|
+
"aria-label": t,
|
|
9299
|
+
children: e
|
|
9300
|
+
});
|
|
9301
|
+
}
|
|
9302
|
+
function nc({ children: e }) {
|
|
9303
|
+
return /* @__PURE__ */ h("div", {
|
|
9304
|
+
className: "select-convo__day",
|
|
9305
|
+
role: "separator",
|
|
9306
|
+
"aria-label": typeof e == "string" ? e : void 0,
|
|
9307
|
+
children: e
|
|
9308
|
+
});
|
|
9309
|
+
}
|
|
9310
|
+
function rc({ children: e, time: t }) {
|
|
9311
|
+
return /* @__PURE__ */ g("div", {
|
|
9312
|
+
className: "select-convo__event",
|
|
9313
|
+
children: [e, t ? /* @__PURE__ */ g("span", {
|
|
9314
|
+
className: "select-convo__event-time",
|
|
9315
|
+
children: [" · ", t]
|
|
9316
|
+
}) : null]
|
|
9317
|
+
});
|
|
9318
|
+
}
|
|
9319
|
+
function ic({ direction: e, author: t, label: n, attachment: r, meta: i, metaTone: a, children: o }) {
|
|
9320
|
+
let s = o != null && o !== "", c = s || !!n;
|
|
9321
|
+
return /* @__PURE__ */ g("div", {
|
|
9322
|
+
className: Qs("select-convo__msg", `select-convo__msg--${e}`),
|
|
9323
|
+
children: [
|
|
9324
|
+
t ? /* @__PURE__ */ h("span", {
|
|
9325
|
+
className: "select-convo__author",
|
|
9326
|
+
children: t
|
|
9327
|
+
}) : null,
|
|
9328
|
+
c ? /* @__PURE__ */ g("div", {
|
|
9329
|
+
className: "select-convo__bubble",
|
|
9330
|
+
children: [n ? /* @__PURE__ */ h("span", {
|
|
9331
|
+
className: "select-convo__label",
|
|
9332
|
+
children: n
|
|
9333
|
+
}) : null, s ? /* @__PURE__ */ h("div", {
|
|
9334
|
+
className: "select-convo__text",
|
|
9335
|
+
children: o
|
|
9336
|
+
}) : null]
|
|
9337
|
+
}) : null,
|
|
9338
|
+
r ? /* @__PURE__ */ h("div", {
|
|
9339
|
+
className: "select-convo__attachment",
|
|
9340
|
+
children: r
|
|
9341
|
+
}) : null,
|
|
9342
|
+
i ? /* @__PURE__ */ h("span", {
|
|
9343
|
+
className: Qs("select-convo__meta", a && `select-convo__meta--${a}`),
|
|
9344
|
+
children: i
|
|
9345
|
+
}) : null
|
|
9346
|
+
]
|
|
9347
|
+
});
|
|
9348
|
+
}
|
|
9349
|
+
//#endregion
|
|
9263
9350
|
//#region src/SelectMailEditor.tsx
|
|
9264
|
-
var
|
|
9265
|
-
function
|
|
9266
|
-
return e.replace(/\r\n?/g, "\n").split(/\n{2,}/).filter((e, t) => e.length > 0 || t === 0).map((e) => `<p>${e ?
|
|
9351
|
+
var ac = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
9352
|
+
function oc(e) {
|
|
9353
|
+
return e.replace(/\r\n?/g, "\n").split(/\n{2,}/).filter((e, t) => e.length > 0 || t === 0).map((e) => `<p>${e ? ac(e).replace(/\n/g, "<br>") : "<br>"}</p>`).join("");
|
|
9267
9354
|
}
|
|
9268
|
-
function
|
|
9355
|
+
function sc(e) {
|
|
9269
9356
|
let t = e.trim();
|
|
9270
9357
|
if (!t || /\s/.test(t)) return null;
|
|
9271
9358
|
if (/^(https?:\/\/|mailto:)/i.test(t)) try {
|
|
@@ -9276,22 +9363,22 @@ function ec(e) {
|
|
|
9276
9363
|
}
|
|
9277
9364
|
return /^[^@/:]+@[^@/:]+\.[a-z]{2,}$/i.test(t) ? `mailto:${t}` : /^[a-z0-9-]+(\.[a-z0-9-]+)+(\/\S*)?$/i.test(t) ? `https://${t}` : null;
|
|
9278
9365
|
}
|
|
9279
|
-
function
|
|
9366
|
+
function cc(e, t) {
|
|
9280
9367
|
try {
|
|
9281
9368
|
typeof document.execCommand == "function" && document.execCommand(e, !1, t);
|
|
9282
9369
|
} catch {}
|
|
9283
9370
|
}
|
|
9284
|
-
function
|
|
9371
|
+
function lc(e) {
|
|
9285
9372
|
try {
|
|
9286
9373
|
return typeof document.queryCommandState == "function" && document.queryCommandState(e);
|
|
9287
9374
|
} catch {
|
|
9288
9375
|
return !1;
|
|
9289
9376
|
}
|
|
9290
9377
|
}
|
|
9291
|
-
function
|
|
9378
|
+
function uc(e) {
|
|
9292
9379
|
return (typeof e.innerText == "string" && e.innerText !== "" ? e.innerText : e.textContent ?? "").replace(/ /g, " ").replace(/\n{3,}/g, "\n\n").trim();
|
|
9293
9380
|
}
|
|
9294
|
-
function
|
|
9381
|
+
function dc(e, t) {
|
|
9295
9382
|
let n = document.getSelection(), r = n && n.rangeCount ? n.getRangeAt(0).startContainer : null;
|
|
9296
9383
|
for (; r && r !== e;) {
|
|
9297
9384
|
if (r instanceof HTMLElement && r.tagName.toLowerCase() === t) return r;
|
|
@@ -9299,30 +9386,30 @@ function ic(e, t) {
|
|
|
9299
9386
|
}
|
|
9300
9387
|
return null;
|
|
9301
9388
|
}
|
|
9302
|
-
function
|
|
9389
|
+
function fc({ value: e, onChange: t, placeholder: n, "aria-label": r = "Mensagem", size: i = "inline" }) {
|
|
9303
9390
|
let a = d(null), s = d(null), c = d(null), [u, p] = f(!0), [m, _] = f({}), [v, y] = f(!1), [b, x] = f(""), [S, C] = f("");
|
|
9304
9391
|
l(() => {
|
|
9305
9392
|
let t = a.current;
|
|
9306
|
-
t && e !== s.current && (t.innerHTML = e, s.current = e, p(
|
|
9393
|
+
t && e !== s.current && (t.innerHTML = e, s.current = e, p(uc(t) === "" && !t.querySelector("li, blockquote")));
|
|
9307
9394
|
}, [e]);
|
|
9308
9395
|
let w = () => {
|
|
9309
9396
|
let e = a.current;
|
|
9310
9397
|
if (!e) return;
|
|
9311
9398
|
let n = e.innerHTML;
|
|
9312
9399
|
s.current = n;
|
|
9313
|
-
let r =
|
|
9400
|
+
let r = uc(e);
|
|
9314
9401
|
p(r === "" && !e.querySelector("li, blockquote")), t(n, r);
|
|
9315
9402
|
}, T = () => {
|
|
9316
9403
|
let e = a.current;
|
|
9317
9404
|
e && _({
|
|
9318
|
-
bold:
|
|
9319
|
-
italic:
|
|
9320
|
-
underline:
|
|
9321
|
-
strikeThrough:
|
|
9322
|
-
insertUnorderedList:
|
|
9323
|
-
insertOrderedList:
|
|
9324
|
-
quote: !!
|
|
9325
|
-
link: !!
|
|
9405
|
+
bold: lc("bold"),
|
|
9406
|
+
italic: lc("italic"),
|
|
9407
|
+
underline: lc("underline"),
|
|
9408
|
+
strikeThrough: lc("strikeThrough"),
|
|
9409
|
+
insertUnorderedList: lc("insertUnorderedList"),
|
|
9410
|
+
insertOrderedList: lc("insertOrderedList"),
|
|
9411
|
+
quote: !!dc(e, "blockquote"),
|
|
9412
|
+
link: !!dc(e, "a")
|
|
9326
9413
|
});
|
|
9327
9414
|
};
|
|
9328
9415
|
o(() => {
|
|
@@ -9334,12 +9421,12 @@ function ac({ value: e, onChange: t, placeholder: n, "aria-label": r = "Mensagem
|
|
|
9334
9421
|
}, []);
|
|
9335
9422
|
let E = (e, t) => {
|
|
9336
9423
|
var n;
|
|
9337
|
-
(n = a.current) == null || n.focus(),
|
|
9424
|
+
(n = a.current) == null || n.focus(), cc("defaultParagraphSeparator", "p"), cc(e, t), w(), T();
|
|
9338
9425
|
}, D = () => {
|
|
9339
9426
|
let e = a.current;
|
|
9340
|
-
e && (e.focus(), E("formatBlock",
|
|
9427
|
+
e && (e.focus(), E("formatBlock", dc(e, "blockquote") ? "p" : "blockquote"));
|
|
9341
9428
|
}, O = (e) => {
|
|
9342
|
-
e && (
|
|
9429
|
+
e && (cc("insertText", e), w());
|
|
9343
9430
|
}, k = (e) => {
|
|
9344
9431
|
e.preventDefault(), O(e.clipboardData.getData("text/plain"));
|
|
9345
9432
|
}, A = (e) => {
|
|
@@ -9348,7 +9435,7 @@ function ac({ value: e, onChange: t, placeholder: n, "aria-label": r = "Mensagem
|
|
|
9348
9435
|
}, j = () => {
|
|
9349
9436
|
let e = a.current, t = document.getSelection();
|
|
9350
9437
|
c.current = e && t && t.rangeCount && e.contains(t.getRangeAt(0).startContainer) ? t.getRangeAt(0).cloneRange() : null;
|
|
9351
|
-
let n = e ?
|
|
9438
|
+
let n = e ? dc(e, "a") : null;
|
|
9352
9439
|
x((n == null ? void 0 : n.getAttribute("href")) ?? ""), C(""), y(!0);
|
|
9353
9440
|
}, M = () => {
|
|
9354
9441
|
let e = a.current;
|
|
@@ -9357,7 +9444,7 @@ function ac({ value: e, onChange: t, placeholder: n, "aria-label": r = "Mensagem
|
|
|
9357
9444
|
let t = document.getSelection();
|
|
9358
9445
|
c.current && t && (t.removeAllRanges(), t.addRange(c.current));
|
|
9359
9446
|
}, N = () => {
|
|
9360
|
-
let e =
|
|
9447
|
+
let e = sc(b);
|
|
9361
9448
|
if (!e) {
|
|
9362
9449
|
C("Use um endereço como https://site.com.br ou nome@empresa.com.");
|
|
9363
9450
|
return;
|
|
@@ -9366,11 +9453,11 @@ function ac({ value: e, onChange: t, placeholder: n, "aria-label": r = "Mensagem
|
|
|
9366
9453
|
let t = document.getSelection();
|
|
9367
9454
|
if (!t || !t.rangeCount || t.getRangeAt(0).collapsed) {
|
|
9368
9455
|
let t = e.replace(/^mailto:/i, "");
|
|
9369
|
-
|
|
9370
|
-
} else
|
|
9456
|
+
cc("insertHTML", `<a href="${ac(e)}">${ac(t)}</a> `);
|
|
9457
|
+
} else cc("createLink", e);
|
|
9371
9458
|
y(!1), w(), T();
|
|
9372
9459
|
}, P = () => {
|
|
9373
|
-
M(),
|
|
9460
|
+
M(), cc("unlink"), y(!1), w(), T();
|
|
9374
9461
|
}, F = (e, t, n, r) => /* @__PURE__ */ h(bn, {
|
|
9375
9462
|
content: t,
|
|
9376
9463
|
children: /* @__PURE__ */ h("button", {
|
|
@@ -9468,7 +9555,7 @@ function ac({ value: e, onChange: t, placeholder: n, "aria-label": r = "Mensagem
|
|
|
9468
9555
|
})
|
|
9469
9556
|
}),
|
|
9470
9557
|
F(null, "Limpar a formatação", /* @__PURE__ */ h(gn, {}), () => {
|
|
9471
|
-
E("removeFormat"),
|
|
9558
|
+
E("removeFormat"), cc("unlink"), w();
|
|
9472
9559
|
})
|
|
9473
9560
|
]
|
|
9474
9561
|
})]
|
|
@@ -9476,8 +9563,8 @@ function ac({ value: e, onChange: t, placeholder: n, "aria-label": r = "Mensagem
|
|
|
9476
9563
|
}
|
|
9477
9564
|
//#endregion
|
|
9478
9565
|
//#region src/SelectModal.tsx
|
|
9479
|
-
var
|
|
9480
|
-
function
|
|
9566
|
+
var pc = 220;
|
|
9567
|
+
function mc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children: a, footer: s, aside: c, size: l = "md", showClose: u = !0, noise: d = !0, dividedHeader: p = !1, backdrop: v = "dim", theme: y = "light", placement: b = "center" }) {
|
|
9481
9568
|
let [x, S] = f(e), [C, w] = f(!1);
|
|
9482
9569
|
if (o(() => {
|
|
9483
9570
|
if (e) S(!0), w(!1);
|
|
@@ -9485,7 +9572,7 @@ function sc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
9485
9572
|
w(!0);
|
|
9486
9573
|
let e = setTimeout(() => {
|
|
9487
9574
|
S(!1), w(!1);
|
|
9488
|
-
},
|
|
9575
|
+
}, pc);
|
|
9489
9576
|
return () => clearTimeout(e);
|
|
9490
9577
|
}
|
|
9491
9578
|
}, [e, x]), o(() => {
|
|
@@ -9577,7 +9664,7 @@ function sc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
9577
9664
|
}
|
|
9578
9665
|
//#endregion
|
|
9579
9666
|
//#region src/SelectRowActions.tsx
|
|
9580
|
-
function
|
|
9667
|
+
function hc({ actions: e, label: t = "Ações" }) {
|
|
9581
9668
|
let [n, r] = f(!1);
|
|
9582
9669
|
return /* @__PURE__ */ h(fr, {
|
|
9583
9670
|
active: n,
|
|
@@ -9599,8 +9686,8 @@ function cc({ actions: e, label: t = "Ações" }) {
|
|
|
9599
9686
|
}
|
|
9600
9687
|
//#endregion
|
|
9601
9688
|
//#region src/SelectConfirmModal.tsx
|
|
9602
|
-
function
|
|
9603
|
-
return /* @__PURE__ */ h(
|
|
9689
|
+
function gc({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmLabel: a = "Confirmar", cancelLabel: o = "Cancelar", destructive: s = !1, loading: c = !1, theme: l }) {
|
|
9690
|
+
return /* @__PURE__ */ h(mc, {
|
|
9604
9691
|
open: e,
|
|
9605
9692
|
onClose: t,
|
|
9606
9693
|
title: r,
|
|
@@ -9632,8 +9719,8 @@ function lc({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
9632
9719
|
}
|
|
9633
9720
|
//#endregion
|
|
9634
9721
|
//#region src/SelectFormModal.tsx
|
|
9635
|
-
function
|
|
9636
|
-
return /* @__PURE__ */ g(
|
|
9722
|
+
function _c({ 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 }) {
|
|
9723
|
+
return /* @__PURE__ */ g(mc, {
|
|
9637
9724
|
open: e,
|
|
9638
9725
|
onClose: t,
|
|
9639
9726
|
title: r,
|
|
@@ -9675,34 +9762,34 @@ function uc({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
9675
9762
|
}
|
|
9676
9763
|
//#endregion
|
|
9677
9764
|
//#region src/SelectDataTable.tsx
|
|
9678
|
-
var
|
|
9765
|
+
var vc = "9.5rem", yc = {
|
|
9679
9766
|
minWidth: "9.5rem",
|
|
9680
9767
|
grow: 2
|
|
9681
9768
|
};
|
|
9682
|
-
function
|
|
9769
|
+
function bc(e) {
|
|
9683
9770
|
return [e.wrap ? "select-table__td--wrap" : "", e.tone ? `select-table__td--${e.tone}` : ""].filter(Boolean).join(" ") || void 0;
|
|
9684
9771
|
}
|
|
9685
|
-
var
|
|
9686
|
-
function
|
|
9772
|
+
var xc = "select-datatable:hidden-cols:";
|
|
9773
|
+
function Sc(e) {
|
|
9687
9774
|
try {
|
|
9688
|
-
let t = localStorage.getItem(
|
|
9775
|
+
let t = localStorage.getItem(xc + e), n = t ? JSON.parse(t) : null;
|
|
9689
9776
|
return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
|
|
9690
9777
|
} catch {
|
|
9691
9778
|
return [];
|
|
9692
9779
|
}
|
|
9693
9780
|
}
|
|
9694
|
-
function
|
|
9781
|
+
function Cc(e, t) {
|
|
9695
9782
|
try {
|
|
9696
|
-
t.length === 0 ? localStorage.removeItem(
|
|
9783
|
+
t.length === 0 ? localStorage.removeItem(xc + e) : localStorage.setItem(xc + e, JSON.stringify(t));
|
|
9697
9784
|
} catch {}
|
|
9698
9785
|
}
|
|
9699
|
-
function
|
|
9786
|
+
function wc(e) {
|
|
9700
9787
|
return e.hideable ?? !!e.title;
|
|
9701
9788
|
}
|
|
9702
|
-
var
|
|
9703
|
-
function
|
|
9789
|
+
var Tc = "select-datatable:col-widths:";
|
|
9790
|
+
function Ec(e) {
|
|
9704
9791
|
try {
|
|
9705
|
-
let t = localStorage.getItem(
|
|
9792
|
+
let t = localStorage.getItem(Tc + e), n = t ? JSON.parse(t) : null;
|
|
9706
9793
|
if (!n || typeof n != "object" || Array.isArray(n)) return {};
|
|
9707
9794
|
let r = {};
|
|
9708
9795
|
for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
|
|
@@ -9711,16 +9798,16 @@ function yc(e) {
|
|
|
9711
9798
|
return {};
|
|
9712
9799
|
}
|
|
9713
9800
|
}
|
|
9714
|
-
function
|
|
9801
|
+
function Dc(e, t) {
|
|
9715
9802
|
try {
|
|
9716
|
-
Object.keys(t).length === 0 ? localStorage.removeItem(
|
|
9803
|
+
Object.keys(t).length === 0 ? localStorage.removeItem(Tc + e) : localStorage.setItem(Tc + e, JSON.stringify(t));
|
|
9717
9804
|
} catch {}
|
|
9718
9805
|
}
|
|
9719
|
-
var
|
|
9720
|
-
function
|
|
9806
|
+
var Oc = "select-datatable:page-size:";
|
|
9807
|
+
function kc(e, t, n) {
|
|
9721
9808
|
let [r, i] = f(() => {
|
|
9722
9809
|
try {
|
|
9723
|
-
let r = Number(localStorage.getItem(
|
|
9810
|
+
let r = Number(localStorage.getItem(Oc + e));
|
|
9724
9811
|
return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
|
|
9725
9812
|
} catch {
|
|
9726
9813
|
return t;
|
|
@@ -9729,25 +9816,25 @@ function Sc(e, t, n) {
|
|
|
9729
9816
|
return [r, (t) => {
|
|
9730
9817
|
i(t);
|
|
9731
9818
|
try {
|
|
9732
|
-
localStorage.setItem(
|
|
9819
|
+
localStorage.setItem(Oc + e, String(t));
|
|
9733
9820
|
} catch {}
|
|
9734
9821
|
}];
|
|
9735
9822
|
}
|
|
9736
|
-
function
|
|
9823
|
+
function Ac(e, t, n) {
|
|
9737
9824
|
let r = e == null || e === "", i = t == null || t === "";
|
|
9738
9825
|
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", {
|
|
9739
9826
|
numeric: !0,
|
|
9740
9827
|
sensitivity: "base"
|
|
9741
9828
|
});
|
|
9742
9829
|
}
|
|
9743
|
-
function
|
|
9744
|
-
let [w, T] = f(() => m ?
|
|
9830
|
+
function jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pagination: a, onRowClick: o, title: s, help: c, description: l, action: d, filters: p, columnsKey: m, getChildren: _, defaultExpanded: v, compactRow: y, compactQuery: b = "(max-width: 40rem)", onCompactRowClick: x, listRow: S, footer: C }) {
|
|
9831
|
+
let [w, T] = f(() => m ? Sc(m) : []), [E, D] = f(!1), O = Ln(y && !S ? b : void 0) && y != null, k = S != null || O, A = S ?? y, j = S != null || e.some((e) => e.wrap), [M, N] = f(() => m ? Ec(m) : {}), P = u(() => new Set(w), [w]), F = e.filter(wc), I = F.length > 0 && F.every((e) => P.has(e.key)), L = (e) => !I && P.has(e.key) && wc(e), R = e.filter((e) => !L(e)), z = F.filter((e) => !L(e)), [B, ee] = f(null), [te, V] = f(() => /* @__PURE__ */ new Set()), H = (e) => ((v == null ? void 0 : v(e)) ?? !1) !== te.has(n(e)), ne = (e) => V((t) => {
|
|
9745
9832
|
let r = new Set(t), i = n(e);
|
|
9746
9833
|
return r.delete(i) || r.add(i), r;
|
|
9747
9834
|
}), U = (e) => {
|
|
9748
9835
|
T((t) => {
|
|
9749
9836
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
9750
|
-
return m &&
|
|
9837
|
+
return m && Cc(m, r), n && ee((t) => t && t.key === e.key ? null : t), r;
|
|
9751
9838
|
});
|
|
9752
9839
|
}, re = (e) => {
|
|
9753
9840
|
ee((t) => {
|
|
@@ -9764,7 +9851,7 @@ function wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
9764
9851
|
let e = ie == null ? void 0 : ie.sortValue;
|
|
9765
9852
|
if (!B || !e) return (e) => e;
|
|
9766
9853
|
let t = B.dir === "asc" ? 1 : -1;
|
|
9767
|
-
return (n) => [...n].sort((n, r) =>
|
|
9854
|
+
return (n) => [...n].sort((n, r) => Ac(e(n), e(r), t));
|
|
9768
9855
|
}, [B, ie]), G = u(() => W(t), [t, W]), K = (e) => (_ == null ? void 0 : _(e)) ?? [], q = !!_ && t.some((e) => K(e).length > 0), ae = k ? [{
|
|
9769
9856
|
label: "",
|
|
9770
9857
|
grow: 1
|
|
@@ -9783,10 +9870,10 @@ function wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
9783
9870
|
let n = R[e];
|
|
9784
9871
|
n && N((e) => {
|
|
9785
9872
|
let r = { ...e };
|
|
9786
|
-
return t ? r[n.key] = t : delete r[n.key], m &&
|
|
9873
|
+
return t ? r[n.key] = t : delete r[n.key], m && Dc(m, r), r;
|
|
9787
9874
|
});
|
|
9788
9875
|
}, se = () => {
|
|
9789
|
-
N({}), m &&
|
|
9876
|
+
N({}), m && Dc(m, {});
|
|
9790
9877
|
}, J = Object.keys(M).length > 0, ce = !r && i ? /* @__PURE__ */ h(bo, {
|
|
9791
9878
|
icon: i.icon,
|
|
9792
9879
|
title: i.heading,
|
|
@@ -9873,7 +9960,7 @@ function wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
9873
9960
|
children: R.map((t, n) => /* @__PURE__ */ h(yo, {
|
|
9874
9961
|
align: t.align,
|
|
9875
9962
|
width: t.width,
|
|
9876
|
-
className:
|
|
9963
|
+
className: bc(t),
|
|
9877
9964
|
disclosure: q && n === 0 ? "none" : void 0,
|
|
9878
9965
|
children: t.render(e)
|
|
9879
9966
|
}, n))
|
|
@@ -9885,7 +9972,7 @@ function wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
9885
9972
|
children: R.map((t, n) => /* @__PURE__ */ h(yo, {
|
|
9886
9973
|
align: t.align,
|
|
9887
9974
|
width: t.width,
|
|
9888
|
-
className:
|
|
9975
|
+
className: bc(t),
|
|
9889
9976
|
disclosure: n === 0 ? r ? "open" : "closed" : void 0,
|
|
9890
9977
|
children: t.render(e)
|
|
9891
9978
|
}, n))
|
|
@@ -9895,7 +9982,7 @@ function wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
9895
9982
|
children: R.map((e, n) => /* @__PURE__ */ h(yo, {
|
|
9896
9983
|
align: e.align,
|
|
9897
9984
|
width: e.width,
|
|
9898
|
-
className:
|
|
9985
|
+
className: bc(e),
|
|
9899
9986
|
children: e.render(t)
|
|
9900
9987
|
}, n))
|
|
9901
9988
|
}, `${n(e)}/${n(t)}`)) : []];
|
|
@@ -9905,7 +9992,7 @@ function wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
9905
9992
|
}
|
|
9906
9993
|
//#endregion
|
|
9907
9994
|
//#region src/SelectAddCard.tsx
|
|
9908
|
-
var
|
|
9995
|
+
var Mc = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
|
|
9909
9996
|
return /* @__PURE__ */ g("button", {
|
|
9910
9997
|
ref: o,
|
|
9911
9998
|
...a,
|
|
@@ -9931,7 +10018,7 @@ var Tc = r(function({ label: e, description: t, onClick: n, icon: r, className:
|
|
|
9931
10018
|
});
|
|
9932
10019
|
//#endregion
|
|
9933
10020
|
//#region src/SelectCardGrid.tsx
|
|
9934
|
-
function
|
|
10021
|
+
function Nc({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount: i = 6, empty: a, pagination: o, create: s, minCardWidth: c = "16rem", skeletonCover: l = !1, title: u, help: d, description: f, action: p, filters: m, tools: _ }) {
|
|
9935
10022
|
let v = !r && e.length === 0 && a != null, { hasTitleRow: y, hasFilters: b } = io({
|
|
9936
10023
|
title: u,
|
|
9937
10024
|
description: f,
|
|
@@ -9987,7 +10074,7 @@ function Ec({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
9987
10074
|
}, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ h("div", {
|
|
9988
10075
|
className: "select-cardgrid__item",
|
|
9989
10076
|
children: n(e)
|
|
9990
|
-
}, t(e))), !r && s && /* @__PURE__ */ h(
|
|
10077
|
+
}, t(e))), !r && s && /* @__PURE__ */ h(Mc, {
|
|
9991
10078
|
label: s.label,
|
|
9992
10079
|
description: s.description,
|
|
9993
10080
|
onClick: s.onAction,
|
|
@@ -10000,7 +10087,7 @@ function Ec({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
10000
10087
|
}
|
|
10001
10088
|
//#endregion
|
|
10002
10089
|
//#region src/SelectRecordCard.tsx
|
|
10003
|
-
var
|
|
10090
|
+
var Pc = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, facts: a, tags: o, status: s, meta: c, to: l, accent: u = !1, cover: d, coverFallback: f, preview: p, className: m, ..._ }, y) {
|
|
10004
10091
|
let b = s != null || c != null, x = ca(l);
|
|
10005
10092
|
return /* @__PURE__ */ g("div", {
|
|
10006
10093
|
ref: y,
|
|
@@ -10015,7 +10102,7 @@ var Dc = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
10015
10102
|
className: "select-rcard__preview",
|
|
10016
10103
|
"aria-hidden": "true",
|
|
10017
10104
|
children: p
|
|
10018
|
-
}) : null : /* @__PURE__ */ h(
|
|
10105
|
+
}) : null : /* @__PURE__ */ h(Ic, {
|
|
10019
10106
|
src: d,
|
|
10020
10107
|
fallback: f
|
|
10021
10108
|
}),
|
|
@@ -10055,7 +10142,7 @@ var Dc = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
10055
10142
|
}),
|
|
10056
10143
|
a && a.length > 0 && /* @__PURE__ */ h("div", {
|
|
10057
10144
|
className: "select-rcard__body",
|
|
10058
|
-
children: /* @__PURE__ */ h(
|
|
10145
|
+
children: /* @__PURE__ */ h(Fc, { items: a })
|
|
10059
10146
|
}),
|
|
10060
10147
|
o && /* @__PURE__ */ h("div", {
|
|
10061
10148
|
className: "select-rcard__tags",
|
|
@@ -10079,7 +10166,7 @@ var Dc = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
10079
10166
|
]
|
|
10080
10167
|
});
|
|
10081
10168
|
});
|
|
10082
|
-
function
|
|
10169
|
+
function Fc({ items: e }) {
|
|
10083
10170
|
return e.length ? /* @__PURE__ */ h("ul", {
|
|
10084
10171
|
className: "select-facts",
|
|
10085
10172
|
children: e.map((e, t) => /* @__PURE__ */ g("li", {
|
|
@@ -10095,7 +10182,7 @@ function Oc({ items: e }) {
|
|
|
10095
10182
|
}, e.key ?? t))
|
|
10096
10183
|
}) : null;
|
|
10097
10184
|
}
|
|
10098
|
-
function
|
|
10185
|
+
function Ic({ src: e, fallback: t }) {
|
|
10099
10186
|
let [n, r] = f(!1);
|
|
10100
10187
|
return o(() => r(!1), [e]), /* @__PURE__ */ h("span", {
|
|
10101
10188
|
className: "select-rcard__cover",
|
|
@@ -10111,7 +10198,7 @@ function kc({ src: e, fallback: t }) {
|
|
|
10111
10198
|
})
|
|
10112
10199
|
});
|
|
10113
10200
|
}
|
|
10114
|
-
var
|
|
10201
|
+
var Lc = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i, ...a }, o) {
|
|
10115
10202
|
let s = t ? {
|
|
10116
10203
|
...i,
|
|
10117
10204
|
"--select-rcard-thumb-accent": t
|
|
@@ -10134,13 +10221,13 @@ var Ac = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i,
|
|
|
10134
10221
|
children: [/* @__PURE__ */ h("span", { className: "select-rcard__thumbcol" }), /* @__PURE__ */ h("span", { className: "select-rcard__thumbcol" })]
|
|
10135
10222
|
})]
|
|
10136
10223
|
});
|
|
10137
|
-
}),
|
|
10224
|
+
}), Rc = r(function({ dragging: e = !1, ghost: t = !1, className: n, ...r }, i) {
|
|
10138
10225
|
return /* @__PURE__ */ h("div", {
|
|
10139
10226
|
ref: i,
|
|
10140
10227
|
...r,
|
|
10141
10228
|
className: `select-sortitem${e && !t ? " is-dragging" : ""}${t ? " is-ghost" : ""}${n ? " " + n : ""}`
|
|
10142
10229
|
});
|
|
10143
|
-
}),
|
|
10230
|
+
}), zc = r(function({ dragging: e = !1, variant: t = "inline", label: n = "Arrastar para reordenar", className: r, ...i }, a) {
|
|
10144
10231
|
return /* @__PURE__ */ h("button", {
|
|
10145
10232
|
ref: a,
|
|
10146
10233
|
type: "button",
|
|
@@ -10151,7 +10238,7 @@ var Ac = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i,
|
|
|
10151
10238
|
children: /* @__PURE__ */ h(tn, {})
|
|
10152
10239
|
});
|
|
10153
10240
|
});
|
|
10154
|
-
function
|
|
10241
|
+
function Bc({ children: e }) {
|
|
10155
10242
|
return /* @__PURE__ */ g("span", {
|
|
10156
10243
|
className: "select-dragpreview",
|
|
10157
10244
|
children: [/* @__PURE__ */ h(tn, {}), e]
|
|
@@ -10159,20 +10246,20 @@ function Nc({ children: e }) {
|
|
|
10159
10246
|
}
|
|
10160
10247
|
//#endregion
|
|
10161
10248
|
//#region src/SelectTokenTextarea.tsx
|
|
10162
|
-
var
|
|
10163
|
-
function
|
|
10249
|
+
var Vc = /\{\{?\s*([a-zA-Z_][a-zA-Z0-9_.[\]]*)\s*\}?\}/g, Hc = "data-select-sentinel";
|
|
10250
|
+
function Uc(e, t, n) {
|
|
10164
10251
|
let r = document.createElement("span");
|
|
10165
10252
|
return r.className = "select-token", r.setAttribute("contenteditable", "false"), r.dataset.token = t, r.dataset.raw = e, r.textContent = n(t), r;
|
|
10166
10253
|
}
|
|
10167
|
-
function
|
|
10254
|
+
function Wc(e, t, n) {
|
|
10168
10255
|
let r = [], i = new RegExp(t.source, t.flags.includes("g") ? t.flags : t.flags + "g"), a = 0;
|
|
10169
10256
|
for (let t of e.matchAll(i)) {
|
|
10170
10257
|
let i = t.index ?? 0;
|
|
10171
|
-
i > a && r.push(document.createTextNode(e.slice(a, i))), r.push(
|
|
10258
|
+
i > a && r.push(document.createTextNode(e.slice(a, i))), r.push(Uc(t[0], t[1] ?? "", n)), a = i + t[0].length;
|
|
10172
10259
|
}
|
|
10173
10260
|
return a < e.length && r.push(document.createTextNode(e.slice(a))), r;
|
|
10174
10261
|
}
|
|
10175
|
-
function
|
|
10262
|
+
function Gc(e) {
|
|
10176
10263
|
let t = "", n = (e) => {
|
|
10177
10264
|
e.childNodes.forEach((e) => {
|
|
10178
10265
|
if (e.nodeType === Node.TEXT_NODE) {
|
|
@@ -10185,7 +10272,7 @@ function Rc(e) {
|
|
|
10185
10272
|
return;
|
|
10186
10273
|
}
|
|
10187
10274
|
if (e.tagName === "BR") {
|
|
10188
|
-
e.hasAttribute(
|
|
10275
|
+
e.hasAttribute(Hc) || (t += "\n");
|
|
10189
10276
|
return;
|
|
10190
10277
|
}
|
|
10191
10278
|
(e.tagName === "DIV" || e.tagName === "P") && t && !t.endsWith("\n") && (t += "\n"), n(e);
|
|
@@ -10194,15 +10281,15 @@ function Rc(e) {
|
|
|
10194
10281
|
};
|
|
10195
10282
|
return n(e), t.replace(//g, "");
|
|
10196
10283
|
}
|
|
10197
|
-
var
|
|
10284
|
+
var Kc = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a = Vc, labelAction: u, help: f, hint: p, error: m, placeholder: _, rows: v = 4, disabled: y = !1, onBlur: b, size: x = "md", className: S }, C) {
|
|
10198
10285
|
let w = s(), T = d(null), E = d(null), D = d(null), O = d(r);
|
|
10199
10286
|
O.current = r;
|
|
10200
10287
|
let k = i((e) => {
|
|
10201
10288
|
let t = T.current;
|
|
10202
10289
|
if (!t) return;
|
|
10203
|
-
t.replaceChildren(...
|
|
10290
|
+
t.replaceChildren(...Wc(e, a, O.current));
|
|
10204
10291
|
let n = document.createElement("br");
|
|
10205
|
-
n.setAttribute(
|
|
10292
|
+
n.setAttribute(Hc, ""), t.appendChild(n), E.current = e;
|
|
10206
10293
|
}, [a]);
|
|
10207
10294
|
l(() => {
|
|
10208
10295
|
t !== E.current && k(t);
|
|
@@ -10215,11 +10302,11 @@ var zc = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
10215
10302
|
let A = () => {
|
|
10216
10303
|
let e = T.current;
|
|
10217
10304
|
if (!e) return;
|
|
10218
|
-
if (!e.lastChild || !(e.lastChild instanceof HTMLElement && e.lastChild.hasAttribute(
|
|
10305
|
+
if (!e.lastChild || !(e.lastChild instanceof HTMLElement && e.lastChild.hasAttribute(Hc))) {
|
|
10219
10306
|
let t = document.createElement("br");
|
|
10220
|
-
t.setAttribute(
|
|
10307
|
+
t.setAttribute(Hc, ""), e.appendChild(t);
|
|
10221
10308
|
}
|
|
10222
|
-
let t =
|
|
10309
|
+
let t = Gc(e);
|
|
10223
10310
|
E.current = t, n(t);
|
|
10224
10311
|
}, j = () => {
|
|
10225
10312
|
let e = window.getSelection(), t = T.current;
|
|
@@ -10253,7 +10340,7 @@ var zc = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
10253
10340
|
c(C, () => ({
|
|
10254
10341
|
insertToken: (e) => {
|
|
10255
10342
|
var t, n;
|
|
10256
|
-
M([
|
|
10343
|
+
M([Uc(`{${e}}`, e, O.current)], D.current), N(), window.setTimeout(N, 0), (t = (n = window).requestAnimationFrame) == null || t.call(n, () => N());
|
|
10257
10344
|
},
|
|
10258
10345
|
focus: N
|
|
10259
10346
|
}));
|
|
@@ -10268,12 +10355,12 @@ var zc = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
10268
10355
|
let t = e.clipboardData.getData("text/plain");
|
|
10269
10356
|
if (!t) return;
|
|
10270
10357
|
let n = window.getSelection();
|
|
10271
|
-
M(
|
|
10358
|
+
M(Wc(t.replace(/\r\n?/g, "\n"), a, O.current), n && n.rangeCount ? n.getRangeAt(0) : null);
|
|
10272
10359
|
}, I = (e, t) => {
|
|
10273
10360
|
let n = window.getSelection();
|
|
10274
10361
|
if (!n || !n.rangeCount || n.isCollapsed) return;
|
|
10275
10362
|
let r = n.getRangeAt(0), i = document.createElement("div");
|
|
10276
|
-
i.appendChild(r.cloneContents()), e.preventDefault(), e.clipboardData.setData("text/plain",
|
|
10363
|
+
i.appendChild(r.cloneContents()), e.preventDefault(), e.clipboardData.setData("text/plain", Gc(i)), t && (r.deleteContents(), A());
|
|
10277
10364
|
}, L = m ? `${w}-err` : p ? `${w}-hint` : void 0;
|
|
10278
10365
|
return /* @__PURE__ */ g("div", {
|
|
10279
10366
|
className: `select-field${x === "sm" ? " select-field--sm" : ""}${S ? " " + S : ""}`,
|
|
@@ -10326,18 +10413,18 @@ var zc = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: a =
|
|
|
10326
10413
|
});
|
|
10327
10414
|
//#endregion
|
|
10328
10415
|
//#region src/SelectChannelPreview.tsx
|
|
10329
|
-
function
|
|
10416
|
+
function qc({ children: e }) {
|
|
10330
10417
|
return /* @__PURE__ */ h("div", {
|
|
10331
10418
|
className: "select-previewstage",
|
|
10332
10419
|
children: e
|
|
10333
10420
|
});
|
|
10334
10421
|
}
|
|
10335
|
-
function
|
|
10422
|
+
function Jc(e) {
|
|
10336
10423
|
var t, n;
|
|
10337
10424
|
let r = e.trim().split(/\s+/).filter(Boolean);
|
|
10338
10425
|
return (r.length > 1 ? (((t = r[0]) == null ? void 0 : t[0]) ?? "") + (((n = r[1]) == null ? void 0 : n[0]) ?? "") : e.slice(0, 2)).toUpperCase();
|
|
10339
10426
|
}
|
|
10340
|
-
function
|
|
10427
|
+
function Yc({ variant: e, title: t, subtitle: n, children: r }) {
|
|
10341
10428
|
return /* @__PURE__ */ g("div", {
|
|
10342
10429
|
className: `select-device select-device--${e}`,
|
|
10343
10430
|
children: [/* @__PURE__ */ g("div", {
|
|
@@ -10345,7 +10432,7 @@ function Hc({ variant: e, title: t, subtitle: n, children: r }) {
|
|
|
10345
10432
|
children: [/* @__PURE__ */ h("span", {
|
|
10346
10433
|
className: "select-device__avatar",
|
|
10347
10434
|
"aria-hidden": "true",
|
|
10348
|
-
children: e === "whatsapp" && t ?
|
|
10435
|
+
children: e === "whatsapp" && t ? Jc(t) : null
|
|
10349
10436
|
}), (t || n) && /* @__PURE__ */ g("span", {
|
|
10350
10437
|
className: "select-device__who",
|
|
10351
10438
|
children: [t && /* @__PURE__ */ h("span", {
|
|
@@ -10362,7 +10449,7 @@ function Hc({ variant: e, title: t, subtitle: n, children: r }) {
|
|
|
10362
10449
|
})]
|
|
10363
10450
|
});
|
|
10364
10451
|
}
|
|
10365
|
-
function
|
|
10452
|
+
function Xc({ variant: e, media: t, buttons: n, empty: r = !1, backdrop: i = !1, children: a }) {
|
|
10366
10453
|
let o = /* @__PURE__ */ g("div", {
|
|
10367
10454
|
className: `select-bubble select-bubble--${e}`,
|
|
10368
10455
|
children: [
|
|
@@ -10388,7 +10475,7 @@ function Uc({ variant: e, media: t, buttons: n, empty: r = !1, backdrop: i = !1,
|
|
|
10388
10475
|
children: o
|
|
10389
10476
|
}) : o;
|
|
10390
10477
|
}
|
|
10391
|
-
function
|
|
10478
|
+
function Zc({ from: e, subject: t, emptySubject: n = "Sem assunto", device: r = "desktop", srcDoc: i, loading: a = !1, frameTitle: o = "O e-mail" }) {
|
|
10392
10479
|
let s = t != null && t !== "" && t !== !1;
|
|
10393
10480
|
return /* @__PURE__ */ g("div", {
|
|
10394
10481
|
className: `select-mailpreview${r === "mobile" ? " select-mailpreview--mobile" : ""}`,
|
|
@@ -10409,13 +10496,13 @@ function Wc({ from: e, subject: t, emptySubject: n = "Sem assunto", device: r =
|
|
|
10409
10496
|
className: `select-mailpreview__subject${s ? "" : " select-mailpreview__subject--empty"}`,
|
|
10410
10497
|
children: s ? t : n
|
|
10411
10498
|
})]
|
|
10412
|
-
}), a ? /* @__PURE__ */ h("span", { className: "select-skeleton select-mailpreview__loading" }) : i == null ? null : /* @__PURE__ */ h(
|
|
10499
|
+
}), a ? /* @__PURE__ */ h("span", { className: "select-skeleton select-mailpreview__loading" }) : i == null ? null : /* @__PURE__ */ h(Qc, {
|
|
10413
10500
|
srcDoc: i,
|
|
10414
10501
|
title: o
|
|
10415
10502
|
})]
|
|
10416
10503
|
});
|
|
10417
10504
|
}
|
|
10418
|
-
function
|
|
10505
|
+
function Qc({ srcDoc: e, title: t }) {
|
|
10419
10506
|
let n = d(null), [r, i] = f(null), a = d(null);
|
|
10420
10507
|
o(() => () => {
|
|
10421
10508
|
var e;
|
|
@@ -10445,7 +10532,7 @@ function Gc({ srcDoc: e, title: t }) {
|
|
|
10445
10532
|
}
|
|
10446
10533
|
//#endregion
|
|
10447
10534
|
//#region src/SelectIconPicker.tsx
|
|
10448
|
-
function
|
|
10535
|
+
function $c({ label: e, options: t, value: n, onChange: r, help: i, hint: a, error: o, disabled: c = !1, unknownLabel: l = "Outro ícone", placeholder: u = "Escolha um ícone", columns: d = 6 }) {
|
|
10449
10536
|
let p = s(), [_, v] = f(!1), y = t.find((e) => e.value === n), b = (e) => {
|
|
10450
10537
|
r(e), v(!1);
|
|
10451
10538
|
}, x = /* @__PURE__ */ g("button", {
|
|
@@ -10516,18 +10603,18 @@ function Kc({ label: e, options: t, value: n, onChange: r, help: i, hint: a, err
|
|
|
10516
10603
|
}
|
|
10517
10604
|
//#endregion
|
|
10518
10605
|
//#region src/SelectSplitChain.tsx
|
|
10519
|
-
function
|
|
10606
|
+
function el(e) {
|
|
10520
10607
|
var t;
|
|
10521
10608
|
return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
|
|
10522
10609
|
}
|
|
10523
|
-
function
|
|
10610
|
+
function tl({ node: e, origin: t = !1 }) {
|
|
10524
10611
|
return /* @__PURE__ */ g("span", {
|
|
10525
10612
|
className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
|
|
10526
10613
|
children: [
|
|
10527
10614
|
/* @__PURE__ */ h("span", {
|
|
10528
10615
|
className: "select-chain__dot",
|
|
10529
10616
|
"aria-hidden": "true",
|
|
10530
|
-
children:
|
|
10617
|
+
children: el(e)
|
|
10531
10618
|
}),
|
|
10532
10619
|
/* @__PURE__ */ h("span", {
|
|
10533
10620
|
className: "select-chain__label",
|
|
@@ -10541,16 +10628,16 @@ function Jc({ node: e, origin: t = !1 }) {
|
|
|
10541
10628
|
]
|
|
10542
10629
|
});
|
|
10543
10630
|
}
|
|
10544
|
-
var
|
|
10631
|
+
var nl = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
|
|
10545
10632
|
let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ h("span", {
|
|
10546
10633
|
className: "select-chain__link",
|
|
10547
10634
|
"aria-hidden": "true"
|
|
10548
10635
|
}, e);
|
|
10549
|
-
t && c.push(/* @__PURE__ */ h(
|
|
10636
|
+
t && c.push(/* @__PURE__ */ h(tl, {
|
|
10550
10637
|
node: t,
|
|
10551
10638
|
origin: !0
|
|
10552
10639
|
}, "__origin"));
|
|
10553
|
-
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ h(
|
|
10640
|
+
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ h(tl, { node: e }, e.id));
|
|
10554
10641
|
return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ g("span", {
|
|
10555
10642
|
className: "select-chain__more",
|
|
10556
10643
|
children: ["+", s]
|
|
@@ -10560,43 +10647,43 @@ var Yc = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
|
|
|
10560
10647
|
className: `select-chain${r ? " " + r : ""}`,
|
|
10561
10648
|
children: c
|
|
10562
10649
|
});
|
|
10563
|
-
}),
|
|
10650
|
+
}), rl = new Intl.NumberFormat("pt-BR", {
|
|
10564
10651
|
style: "currency",
|
|
10565
10652
|
currency: "BRL"
|
|
10566
10653
|
});
|
|
10567
|
-
function
|
|
10654
|
+
function il(e) {
|
|
10568
10655
|
let t = typeof e == "string" ? Number(e) : e;
|
|
10569
10656
|
return typeof t == "number" && Number.isFinite(t) ? t : 0;
|
|
10570
10657
|
}
|
|
10571
|
-
function
|
|
10572
|
-
return
|
|
10658
|
+
function al(e) {
|
|
10659
|
+
return rl.format(il(e) / 100);
|
|
10573
10660
|
}
|
|
10574
10661
|
//#endregion
|
|
10575
10662
|
//#region src/SelectMoney.tsx
|
|
10576
|
-
var
|
|
10663
|
+
var ol = "sw:hide-money", sl = {
|
|
10577
10664
|
hidden: !1,
|
|
10578
10665
|
toggle: () => {},
|
|
10579
10666
|
setHidden: () => {}
|
|
10580
|
-
},
|
|
10581
|
-
function
|
|
10667
|
+
}, cl = n(null);
|
|
10668
|
+
function ll() {
|
|
10582
10669
|
try {
|
|
10583
|
-
return localStorage.getItem(
|
|
10670
|
+
return localStorage.getItem(ol) === "1";
|
|
10584
10671
|
} catch {
|
|
10585
10672
|
return !1;
|
|
10586
10673
|
}
|
|
10587
10674
|
}
|
|
10588
|
-
function
|
|
10675
|
+
function ul(e) {
|
|
10589
10676
|
try {
|
|
10590
|
-
localStorage.setItem(
|
|
10677
|
+
localStorage.setItem(ol, e ? "1" : "0");
|
|
10591
10678
|
} catch {}
|
|
10592
10679
|
}
|
|
10593
|
-
function
|
|
10594
|
-
let [t, n] = f(
|
|
10595
|
-
n(e),
|
|
10680
|
+
function dl({ children: e }) {
|
|
10681
|
+
let [t, n] = f(ll), r = i((e) => {
|
|
10682
|
+
n(e), ul(e);
|
|
10596
10683
|
}, []), a = i(() => {
|
|
10597
10684
|
n((e) => {
|
|
10598
10685
|
let t = !e;
|
|
10599
|
-
return
|
|
10686
|
+
return ul(t), t;
|
|
10600
10687
|
});
|
|
10601
10688
|
}, []), o = u(() => ({
|
|
10602
10689
|
hidden: t,
|
|
@@ -10607,16 +10694,16 @@ function il({ children: e }) {
|
|
|
10607
10694
|
a,
|
|
10608
10695
|
r
|
|
10609
10696
|
]);
|
|
10610
|
-
return /* @__PURE__ */ h(
|
|
10697
|
+
return /* @__PURE__ */ h(cl.Provider, {
|
|
10611
10698
|
value: o,
|
|
10612
10699
|
children: e
|
|
10613
10700
|
});
|
|
10614
10701
|
}
|
|
10615
|
-
function
|
|
10616
|
-
return a(
|
|
10702
|
+
function fl() {
|
|
10703
|
+
return a(cl) ?? sl;
|
|
10617
10704
|
}
|
|
10618
|
-
var
|
|
10619
|
-
let { hidden: a } =
|
|
10705
|
+
var pl = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
|
|
10706
|
+
let { hidden: a } = fl();
|
|
10620
10707
|
return /* @__PURE__ */ h("span", {
|
|
10621
10708
|
ref: i,
|
|
10622
10709
|
...r,
|
|
@@ -10625,15 +10712,15 @@ var ol = r(function({ children: e, label: t = "valor oculto", className: n, ...r
|
|
|
10625
10712
|
children: e
|
|
10626
10713
|
});
|
|
10627
10714
|
});
|
|
10628
|
-
function
|
|
10629
|
-
let n =
|
|
10630
|
-
return h(t ?
|
|
10715
|
+
function ml({ cents: e, sensitive: t = !0 }) {
|
|
10716
|
+
let n = al(e);
|
|
10717
|
+
return h(t ? pl : m, { children: n });
|
|
10631
10718
|
}
|
|
10632
|
-
var
|
|
10719
|
+
var hl = new Intl.NumberFormat("pt-BR", {
|
|
10633
10720
|
signDisplay: "exceptZero",
|
|
10634
10721
|
minimumFractionDigits: 1,
|
|
10635
10722
|
maximumFractionDigits: 1
|
|
10636
|
-
}),
|
|
10723
|
+
}), gl = r(function({ value: e, invert: t = !1, caption: n, unit: r = "percent", className: i, ...a }, o) {
|
|
10637
10724
|
if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ g("span", {
|
|
10638
10725
|
ref: o,
|
|
10639
10726
|
...a,
|
|
@@ -10649,7 +10736,7 @@ var cl = new Intl.NumberFormat("pt-BR", {
|
|
|
10649
10736
|
className: `select-delta__value select-delta__value--${u}`,
|
|
10650
10737
|
children: [
|
|
10651
10738
|
d ? `${d} ` : "",
|
|
10652
|
-
|
|
10739
|
+
hl.format(e),
|
|
10653
10740
|
r === "points" ? " p.p." : "%"
|
|
10654
10741
|
]
|
|
10655
10742
|
}), n != null && /* @__PURE__ */ h("span", {
|
|
@@ -10658,8 +10745,8 @@ var cl = new Intl.NumberFormat("pt-BR", {
|
|
|
10658
10745
|
})]
|
|
10659
10746
|
});
|
|
10660
10747
|
});
|
|
10661
|
-
function
|
|
10662
|
-
let { hidden: e, toggle: t } =
|
|
10748
|
+
function _l() {
|
|
10749
|
+
let { hidden: e, toggle: t } = fl();
|
|
10663
10750
|
return /* @__PURE__ */ h(Y, {
|
|
10664
10751
|
variant: "outline",
|
|
10665
10752
|
icon: h(e ? Ue : He, {}),
|
|
@@ -10670,7 +10757,7 @@ function ul() {
|
|
|
10670
10757
|
}
|
|
10671
10758
|
//#endregion
|
|
10672
10759
|
//#region src/SelectOfferPrice.tsx
|
|
10673
|
-
var
|
|
10760
|
+
var vl = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note: i, prefix: a, suffix: o, className: s, ...c }, l) {
|
|
10674
10761
|
let u = Number(e);
|
|
10675
10762
|
if (!Number.isFinite(u)) return null;
|
|
10676
10763
|
let d = Number(t), f = Number.isFinite(d) && d > u, p = f ? Math.round((d - u) / d * 100) : 0;
|
|
@@ -10685,7 +10772,7 @@ var dl = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
10685
10772
|
}),
|
|
10686
10773
|
/* @__PURE__ */ h("span", {
|
|
10687
10774
|
className: "select-offerprice__now",
|
|
10688
|
-
children: u === 0 && r != null ? r : /* @__PURE__ */ h(
|
|
10775
|
+
children: u === 0 && r != null ? r : /* @__PURE__ */ h(ml, { cents: u })
|
|
10689
10776
|
}),
|
|
10690
10777
|
o != null && /* @__PURE__ */ h("span", {
|
|
10691
10778
|
className: "select-offerprice__per",
|
|
@@ -10693,7 +10780,7 @@ var dl = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
10693
10780
|
}),
|
|
10694
10781
|
f && /* @__PURE__ */ h("s", {
|
|
10695
10782
|
className: "select-offerprice__was",
|
|
10696
|
-
children: /* @__PURE__ */ h(
|
|
10783
|
+
children: /* @__PURE__ */ h(ml, { cents: d })
|
|
10697
10784
|
}),
|
|
10698
10785
|
f && !n && p > 0 && /* @__PURE__ */ g("span", {
|
|
10699
10786
|
className: "select-offerprice__off",
|
|
@@ -10712,7 +10799,7 @@ var dl = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
10712
10799
|
});
|
|
10713
10800
|
//#endregion
|
|
10714
10801
|
//#region src/SelectRating.tsx
|
|
10715
|
-
function
|
|
10802
|
+
function yl({ size: e }) {
|
|
10716
10803
|
return /* @__PURE__ */ h("svg", {
|
|
10717
10804
|
width: e,
|
|
10718
10805
|
height: e,
|
|
@@ -10724,7 +10811,7 @@ function fl({ size: e }) {
|
|
|
10724
10811
|
})
|
|
10725
10812
|
});
|
|
10726
10813
|
}
|
|
10727
|
-
var
|
|
10814
|
+
var bl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i, disabled: a = !1, className: o, ...s }, c) {
|
|
10728
10815
|
let l = !!n && !a, [u, d] = f(null), p = u ?? e;
|
|
10729
10816
|
return /* @__PURE__ */ h("div", {
|
|
10730
10817
|
ref: c,
|
|
@@ -10740,14 +10827,14 @@ var pl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
10740
10827
|
let i = l ? +(t < p) : Math.max(0, Math.min(1, p - t)), a = i >= .95 ? 1 : i <= .05 ? 0 : i, o = a > 0 && a < 1 ? /* @__PURE__ */ g("span", {
|
|
10741
10828
|
className: "select-rating__star select-rating__star--part",
|
|
10742
10829
|
style: { "--select-rating-fill": `${Math.round(a * 100)}%` },
|
|
10743
|
-
children: [/* @__PURE__ */ h(
|
|
10830
|
+
children: [/* @__PURE__ */ h(yl, { size: r }), /* @__PURE__ */ h("span", {
|
|
10744
10831
|
className: "select-rating__fill",
|
|
10745
10832
|
"aria-hidden": "true",
|
|
10746
|
-
children: /* @__PURE__ */ h(
|
|
10833
|
+
children: /* @__PURE__ */ h(yl, { size: r })
|
|
10747
10834
|
})]
|
|
10748
10835
|
}) : /* @__PURE__ */ h("span", {
|
|
10749
10836
|
className: `select-rating__star${a === 1 ? " is-filled" : ""}`,
|
|
10750
|
-
children: /* @__PURE__ */ h(
|
|
10837
|
+
children: /* @__PURE__ */ h(yl, { size: r })
|
|
10751
10838
|
});
|
|
10752
10839
|
return l ? /* @__PURE__ */ h("button", {
|
|
10753
10840
|
type: "button",
|
|
@@ -10761,14 +10848,14 @@ var pl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
10761
10848
|
}, t) : /* @__PURE__ */ h("span", { children: o }, t);
|
|
10762
10849
|
})
|
|
10763
10850
|
});
|
|
10764
|
-
}),
|
|
10851
|
+
}), xl = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
|
|
10765
10852
|
let s = Number(e), c = Number.isFinite(s) && s > 0;
|
|
10766
10853
|
return /* @__PURE__ */ g("div", {
|
|
10767
10854
|
ref: o,
|
|
10768
10855
|
...a,
|
|
10769
10856
|
className: `select-quote${i ? " " + i : ""}`,
|
|
10770
10857
|
children: [
|
|
10771
|
-
c && /* @__PURE__ */ h(
|
|
10858
|
+
c && /* @__PURE__ */ h(bl, {
|
|
10772
10859
|
value: s,
|
|
10773
10860
|
max: t,
|
|
10774
10861
|
size: 13
|
|
@@ -10783,7 +10870,7 @@ var pl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
10783
10870
|
})
|
|
10784
10871
|
]
|
|
10785
10872
|
});
|
|
10786
|
-
}),
|
|
10873
|
+
}), Sl = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
|
|
10787
10874
|
let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
|
|
10788
10875
|
return /* @__PURE__ */ g("div", {
|
|
10789
10876
|
ref: i,
|
|
@@ -10805,7 +10892,7 @@ var pl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
10805
10892
|
children: ["+", o]
|
|
10806
10893
|
})]
|
|
10807
10894
|
});
|
|
10808
|
-
}),
|
|
10895
|
+
}), Cl = [
|
|
10809
10896
|
"Dom",
|
|
10810
10897
|
"Seg",
|
|
10811
10898
|
"Ter",
|
|
@@ -10813,7 +10900,7 @@ var pl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
10813
10900
|
"Qui",
|
|
10814
10901
|
"Sex",
|
|
10815
10902
|
"Sáb"
|
|
10816
|
-
],
|
|
10903
|
+
], wl = [
|
|
10817
10904
|
"Janeiro",
|
|
10818
10905
|
"Fevereiro",
|
|
10819
10906
|
"Março",
|
|
@@ -10826,7 +10913,7 @@ var pl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
10826
10913
|
"Outubro",
|
|
10827
10914
|
"Novembro",
|
|
10828
10915
|
"Dezembro"
|
|
10829
|
-
],
|
|
10916
|
+
], Tl = [
|
|
10830
10917
|
"Jan",
|
|
10831
10918
|
"Fev",
|
|
10832
10919
|
"Mar",
|
|
@@ -10839,33 +10926,33 @@ var pl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
10839
10926
|
"Out",
|
|
10840
10927
|
"Nov",
|
|
10841
10928
|
"Dez"
|
|
10842
|
-
],
|
|
10843
|
-
function
|
|
10929
|
+
], El = 12, Dl = (e) => String(e).padStart(2, "0"), Ol = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), kl = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Al = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), jl = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Ml = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
10930
|
+
function Nl(e) {
|
|
10844
10931
|
let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
|
|
10845
10932
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
|
|
10846
10933
|
}
|
|
10847
|
-
function
|
|
10848
|
-
let n = `${e.getFullYear()}-${
|
|
10849
|
-
return t ? `${n}T${
|
|
10934
|
+
function Pl(e, t) {
|
|
10935
|
+
let n = `${e.getFullYear()}-${Dl(e.getMonth() + 1)}-${Dl(e.getDate())}`;
|
|
10936
|
+
return t ? `${n}T${Dl(e.getHours())}:${Dl(e.getMinutes())}` : n;
|
|
10850
10937
|
}
|
|
10851
|
-
function
|
|
10852
|
-
let n = `${
|
|
10853
|
-
return t ? `${n} ${
|
|
10938
|
+
function Fl(e, t) {
|
|
10939
|
+
let n = `${Dl(e.getDate())}/${Dl(e.getMonth() + 1)}/${e.getFullYear()}`;
|
|
10940
|
+
return t ? `${n} ${Dl(e.getHours())}:${Dl(e.getMinutes())}` : n;
|
|
10854
10941
|
}
|
|
10855
|
-
var
|
|
10856
|
-
let x = s(), S = _ ?? x, [C, w] = f(!1), T =
|
|
10942
|
+
var Il = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeholder: i, required: a, disabled: o, error: c, hint: l, minDate: u, maxDate: d, clearable: p = !0, openTo: m = "day", id: _, className: v, ...y }, b) {
|
|
10943
|
+
let x = s(), S = _ ?? x, [C, w] = f(!1), T = Nl(t), E = u ? Ol(u) : null, D = d ? Ol(d) : null, O = (e) => !!E && Ol(e) < E || !!D && Ol(e) > D, k = () => {
|
|
10857
10944
|
if (T) return T;
|
|
10858
10945
|
let e = /* @__PURE__ */ new Date();
|
|
10859
10946
|
return D && e > D ? D : E && e < E ? E : e;
|
|
10860
|
-
}, [A, j] = f(() =>
|
|
10861
|
-
o || (j(
|
|
10862
|
-
}, ee = (e) => j((t) => M === "day" ?
|
|
10947
|
+
}, [A, j] = f(() => kl(k())), [M, N] = f("day"), P = (e) => !!E && e < E.getFullYear() || !!D && e > D.getFullYear(), F = (e, t) => !!E && new Date(e, t + 1, 0) < E || !!D && new Date(e, t, 1) > D, I = A.getFullYear() - A.getFullYear() % El, L = Al(kl(A), -kl(A).getDay()), R = Array.from({ length: 42 }, (e, t) => Al(L, t)), z = Ol(/* @__PURE__ */ new Date()), B = () => {
|
|
10948
|
+
o || (j(kl(k())), N(!T && m === "year" ? "year" : "day"), w((e) => !e));
|
|
10949
|
+
}, ee = (e) => j((t) => M === "day" ? jl(t, e) : new Date(t.getFullYear() + e * (M === "year" ? El : 1), t.getMonth(), 1)), te = M === "day" ? ["Mês anterior", "Próximo mês"] : M === "month" ? ["Ano anterior", "Próximo ano"] : ["Anos anteriores", "Próximos anos"], V = (e) => {
|
|
10863
10950
|
if (O(e)) return;
|
|
10864
10951
|
let t = new Date(e);
|
|
10865
|
-
r && t.setHours((T == null ? void 0 : T.getHours()) ?? 0, (T == null ? void 0 : T.getMinutes()) ?? 0, 0, 0), n(
|
|
10952
|
+
r && t.setHours((T == null ? void 0 : T.getHours()) ?? 0, (T == null ? void 0 : T.getMinutes()) ?? 0, 0, 0), n(Pl(t, r)), r || w(!1);
|
|
10866
10953
|
}, H = (e) => {
|
|
10867
10954
|
let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(T ?? z);
|
|
10868
|
-
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(
|
|
10955
|
+
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(Pl(o, !0));
|
|
10869
10956
|
}, ne = () => {
|
|
10870
10957
|
n(""), w(!1);
|
|
10871
10958
|
}, re = /* @__PURE__ */ g("div", {
|
|
@@ -10879,7 +10966,7 @@ var kl = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
10879
10966
|
"aria-haspopup": "dialog",
|
|
10880
10967
|
"aria-expanded": C,
|
|
10881
10968
|
"aria-invalid": c ? !0 : void 0,
|
|
10882
|
-
children: T ?
|
|
10969
|
+
children: T ? Fl(T, r) : /* @__PURE__ */ h("span", {
|
|
10883
10970
|
className: "select-datefield__ph",
|
|
10884
10971
|
children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
|
|
10885
10972
|
})
|
|
@@ -10924,14 +11011,14 @@ var kl = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
10924
11011
|
children: [
|
|
10925
11012
|
I,
|
|
10926
11013
|
" – ",
|
|
10927
|
-
I +
|
|
11014
|
+
I + El - 1
|
|
10928
11015
|
]
|
|
10929
11016
|
}) : /* @__PURE__ */ g("button", {
|
|
10930
11017
|
type: "button",
|
|
10931
11018
|
className: "select-datepicker__monthlabel select-datefield__modebtn",
|
|
10932
11019
|
"aria-label": M === "day" ? "Escolher o ano e o mês" : "Escolher o ano",
|
|
10933
11020
|
onClick: () => N("year"),
|
|
10934
|
-
children: [M === "day" ? `${
|
|
11021
|
+
children: [M === "day" ? `${wl[A.getMonth()]} ${A.getFullYear()}` : A.getFullYear(), /* @__PURE__ */ h(K, {})]
|
|
10935
11022
|
}),
|
|
10936
11023
|
/* @__PURE__ */ h("button", {
|
|
10937
11024
|
type: "button",
|
|
@@ -10946,7 +11033,7 @@ var kl = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
10946
11033
|
className: "select-datefield__cells",
|
|
10947
11034
|
role: "grid",
|
|
10948
11035
|
"aria-label": "Anos",
|
|
10949
|
-
children: Array.from({ length:
|
|
11036
|
+
children: Array.from({ length: El }, (e, t) => I + t).map((e) => {
|
|
10950
11037
|
let t = (T == null ? void 0 : T.getFullYear()) === e;
|
|
10951
11038
|
return /* @__PURE__ */ h("button", {
|
|
10952
11039
|
type: "button",
|
|
@@ -10963,11 +11050,11 @@ var kl = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
10963
11050
|
className: "select-datefield__cells",
|
|
10964
11051
|
role: "grid",
|
|
10965
11052
|
"aria-label": `Meses de ${A.getFullYear()}`,
|
|
10966
|
-
children:
|
|
11053
|
+
children: Tl.map((e, t) => {
|
|
10967
11054
|
let n = A.getFullYear(), r = !!T && T.getFullYear() === n && T.getMonth() === t;
|
|
10968
11055
|
return /* @__PURE__ */ h("button", {
|
|
10969
11056
|
type: "button",
|
|
10970
|
-
"aria-label": `${
|
|
11057
|
+
"aria-label": `${wl[t]} de ${n}`,
|
|
10971
11058
|
className: `select-datefield__cell${r ? " is-selected" : ""}`,
|
|
10972
11059
|
disabled: F(n, t),
|
|
10973
11060
|
onClick: () => {
|
|
@@ -10980,11 +11067,11 @@ var kl = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
10980
11067
|
M === "day" && /* @__PURE__ */ g("div", {
|
|
10981
11068
|
className: "select-datepicker__grid",
|
|
10982
11069
|
role: "grid",
|
|
10983
|
-
children: [
|
|
11070
|
+
children: [Cl.map((e) => /* @__PURE__ */ h("div", {
|
|
10984
11071
|
className: "select-datepicker__weekday",
|
|
10985
11072
|
children: e
|
|
10986
11073
|
}, e)), R.map((e) => {
|
|
10987
|
-
let t = e.getMonth() !== A.getMonth(), n = !!T &&
|
|
11074
|
+
let t = e.getMonth() !== A.getMonth(), n = !!T && Ml(e, T), r = "select-datepicker__daybtn" + (n ? " is-selected" : "") + (Ml(e, z) && !n ? " is-today" : "") + (t ? " is-outside" : "");
|
|
10988
11075
|
return /* @__PURE__ */ h("div", {
|
|
10989
11076
|
className: "select-datepicker__day",
|
|
10990
11077
|
children: /* @__PURE__ */ h("button", {
|
|
@@ -11006,7 +11093,7 @@ var kl = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11006
11093
|
type: "time",
|
|
11007
11094
|
className: "select-input select-datefield__time-input",
|
|
11008
11095
|
"aria-label": "Horário",
|
|
11009
|
-
value: T ? `${
|
|
11096
|
+
value: T ? `${Dl(T.getHours())}:${Dl(T.getMinutes())}` : "",
|
|
11010
11097
|
onChange: (e) => H(e.target.value)
|
|
11011
11098
|
})]
|
|
11012
11099
|
}),
|
|
@@ -11047,25 +11134,25 @@ var kl = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11047
11134
|
}) : null
|
|
11048
11135
|
]
|
|
11049
11136
|
});
|
|
11050
|
-
}),
|
|
11051
|
-
function
|
|
11052
|
-
let t =
|
|
11137
|
+
}), Ll = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?$/;
|
|
11138
|
+
function Rl(e) {
|
|
11139
|
+
let t = Ll.exec(e ?? "");
|
|
11053
11140
|
if (!t) return null;
|
|
11054
11141
|
let n = `${t[3]}/${t[2]}/${t[1]}`;
|
|
11055
11142
|
return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
|
|
11056
11143
|
}
|
|
11057
11144
|
//#endregion
|
|
11058
11145
|
//#region src/SelectFilterBar.tsx
|
|
11059
|
-
function
|
|
11146
|
+
function zl(e, t) {
|
|
11060
11147
|
var n;
|
|
11061
|
-
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ?
|
|
11148
|
+
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ? Rl(t) ?? t : t;
|
|
11062
11149
|
}
|
|
11063
|
-
function
|
|
11150
|
+
function Bl({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: s }) {
|
|
11064
11151
|
let [c, l] = f("");
|
|
11065
11152
|
o(() => {
|
|
11066
11153
|
r || l("");
|
|
11067
11154
|
}, [r]);
|
|
11068
|
-
let u = t.trim() !== "", d = u ?
|
|
11155
|
+
let u = t.trim() !== "", d = u ? zl(e, t) : null, p = u && !!e.error, m = e.options ?? [], _ = m.length > 7, v = _ ? m.filter((e) => e.label.toLowerCase().includes(c.trim().toLowerCase())) : m;
|
|
11069
11156
|
return /* @__PURE__ */ g(fr, {
|
|
11070
11157
|
active: r,
|
|
11071
11158
|
onClose: a,
|
|
@@ -11123,7 +11210,7 @@ function Nl({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
11123
11210
|
})]
|
|
11124
11211
|
}) : e.type === "date" ? /* @__PURE__ */ h("div", {
|
|
11125
11212
|
className: "select-facet__field",
|
|
11126
|
-
children: /* @__PURE__ */ h(
|
|
11213
|
+
children: /* @__PURE__ */ h(Il, {
|
|
11127
11214
|
value: t,
|
|
11128
11215
|
onChange: n,
|
|
11129
11216
|
placeholder: e.placeholder,
|
|
@@ -11161,7 +11248,7 @@ function Nl({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
11161
11248
|
]
|
|
11162
11249
|
});
|
|
11163
11250
|
}
|
|
11164
|
-
var
|
|
11251
|
+
var Vl = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, leading: a, disabled: o, className: s, ...c }, l) {
|
|
11165
11252
|
let [u, d] = f([]), [p, m] = f(null), [_, v] = f(!1), y = (e) => (t[e.key] ?? "").trim() !== "", b = (e) => !!e.pinned || y(e) || u.includes(e.key), x = e.filter(b), S = e.filter((e) => !b(e)), C = e.filter(y), w = () => {
|
|
11166
11253
|
d([]), m(null), r();
|
|
11167
11254
|
}, T = (e) => {
|
|
@@ -11200,7 +11287,7 @@ var Pl = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11200
11287
|
})
|
|
11201
11288
|
]
|
|
11202
11289
|
}),
|
|
11203
|
-
x.map((e) => /* @__PURE__ */ h(
|
|
11290
|
+
x.map((e) => /* @__PURE__ */ h(Bl, {
|
|
11204
11291
|
filter: e,
|
|
11205
11292
|
value: t[e.key] ?? "",
|
|
11206
11293
|
onChange: (t) => n(e.key, t),
|
|
@@ -11246,7 +11333,7 @@ var Pl = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11246
11333
|
children: [
|
|
11247
11334
|
e.label,
|
|
11248
11335
|
": ",
|
|
11249
|
-
|
|
11336
|
+
zl(e, t[e.key] ?? ""),
|
|
11250
11337
|
/* @__PURE__ */ h("button", {
|
|
11251
11338
|
type: "button",
|
|
11252
11339
|
className: "select-filterbar__tagx",
|
|
@@ -11263,7 +11350,7 @@ var Pl = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11263
11350
|
})]
|
|
11264
11351
|
})]
|
|
11265
11352
|
});
|
|
11266
|
-
}),
|
|
11353
|
+
}), Hl = r(function({ label: e, options: t, selected: n, onChange: r, placeholder: i = "Selecionar…", hint: a, help: o, error: s, onBlur: c, size: l = "md", unknownLabel: u, loading: d = !1, loadingLabel: p = "Carregando…", disabled: m = !1, className: _, ...v }, y) {
|
|
11267
11354
|
let [b, x] = f(!1), S = d || m, [C, w] = f(""), T = t.filter((e) => e.label.toLowerCase().includes(C.trim().toLowerCase())), E = (e) => r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]), D = n.map((e) => {
|
|
11268
11355
|
let n = t.find((t) => t.value === e);
|
|
11269
11356
|
return n ? {
|
|
@@ -11394,7 +11481,7 @@ var Pl = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11394
11481
|
}) : null
|
|
11395
11482
|
]
|
|
11396
11483
|
});
|
|
11397
|
-
}),
|
|
11484
|
+
}), Ul = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
|
|
11398
11485
|
return /* @__PURE__ */ g("div", {
|
|
11399
11486
|
ref: c,
|
|
11400
11487
|
...s,
|
|
@@ -11426,8 +11513,8 @@ var Pl = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11426
11513
|
})
|
|
11427
11514
|
]
|
|
11428
11515
|
});
|
|
11429
|
-
}),
|
|
11430
|
-
function
|
|
11516
|
+
}), Wl = n(null), Gl = 220, Kl = 4e3, ql = 8, Jl = .04, Yl = 5;
|
|
11517
|
+
function Xl({ children: e }) {
|
|
11431
11518
|
let [t, n] = f([]), r = d(0), a = d(/* @__PURE__ */ new Map()), s = i((e) => {
|
|
11432
11519
|
n((t) => t.filter((t) => t.id !== e)), a.current.delete(e);
|
|
11433
11520
|
}, []), c = i((e) => {
|
|
@@ -11435,9 +11522,9 @@ function Ul({ children: e }) {
|
|
|
11435
11522
|
t && clearTimeout(t), n((t) => t.map((t) => t.id === e ? {
|
|
11436
11523
|
...t,
|
|
11437
11524
|
exiting: !0
|
|
11438
|
-
} : t)), a.current.set(e, setTimeout(() => s(e),
|
|
11525
|
+
} : t)), a.current.set(e, setTimeout(() => s(e), Gl));
|
|
11439
11526
|
}, [s]), l = i((e, t) => {
|
|
11440
|
-
let i = ++r.current, o = (t == null ? void 0 : t.duration) ??
|
|
11527
|
+
let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? Kl;
|
|
11441
11528
|
n((n) => [...n, {
|
|
11442
11529
|
id: i,
|
|
11443
11530
|
content: e,
|
|
@@ -11466,7 +11553,7 @@ function Ul({ children: e }) {
|
|
|
11466
11553
|
duration: t
|
|
11467
11554
|
})
|
|
11468
11555
|
}), [l]);
|
|
11469
|
-
return /* @__PURE__ */ g(
|
|
11556
|
+
return /* @__PURE__ */ g(Wl.Provider, {
|
|
11470
11557
|
value: p,
|
|
11471
11558
|
children: [e, t.length > 0 && _(/* @__PURE__ */ h("div", {
|
|
11472
11559
|
className: "select select-toasts",
|
|
@@ -11474,8 +11561,8 @@ function Ul({ children: e }) {
|
|
|
11474
11561
|
"aria-live": "polite",
|
|
11475
11562
|
"aria-label": "Notificações",
|
|
11476
11563
|
children: t.map((e, n) => {
|
|
11477
|
-
let r = t.length - 1 - n, i = e.exiting || r >=
|
|
11478
|
-
transform: `translate(-50%, ${-r *
|
|
11564
|
+
let r = t.length - 1 - n, i = e.exiting || r >= Yl, a = {
|
|
11565
|
+
transform: `translate(-50%, ${-r * ql}px) scale(${1 - r * Jl})`,
|
|
11479
11566
|
opacity: +!i,
|
|
11480
11567
|
zIndex: 1e3 - r,
|
|
11481
11568
|
pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
|
|
@@ -11511,14 +11598,14 @@ function Ul({ children: e }) {
|
|
|
11511
11598
|
}), document.body)]
|
|
11512
11599
|
});
|
|
11513
11600
|
}
|
|
11514
|
-
function
|
|
11515
|
-
let e = a(
|
|
11601
|
+
function Zl() {
|
|
11602
|
+
let e = a(Wl);
|
|
11516
11603
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
11517
11604
|
return e;
|
|
11518
11605
|
}
|
|
11519
11606
|
//#endregion
|
|
11520
11607
|
//#region src/SelectPreviewFrame.tsx
|
|
11521
|
-
var
|
|
11608
|
+
var Ql = "allow-scripts allow-same-origin allow-forms", $l = 390, eu = 1280, tu = r(function({ src: e, sandbox: t = Ql, title: n = "Pré-visualização", height: r = 560, fill: i = !1, initialDevice: a = "desktop", showDeviceToggle: o = !0, openLabel: s = "Abrir em nova aba", emptyLabel: c = "Salve para gerar a pré-visualização.", onReload: u, notice: p, iframeRef: _, desktopWidth: v = eu, className: y, ...b }, x) {
|
|
11522
11609
|
let S = ca(e), [C, w] = f(a), [T, E] = f(0), [D, O] = f(!0), k = d(null), [A, j] = f({
|
|
11523
11610
|
w: 0,
|
|
11524
11611
|
h: 0
|
|
@@ -11536,7 +11623,7 @@ var Gl = "allow-scripts allow-same-origin allow-forms", Kl = 390, ql = 1280, Jl
|
|
|
11536
11623
|
});
|
|
11537
11624
|
return t.observe(e), () => t.disconnect();
|
|
11538
11625
|
}, []);
|
|
11539
|
-
let M = C === "mobile" ?
|
|
11626
|
+
let M = C === "mobile" ? $l : v, N = A.w > 0 ? Math.min(1, A.w / M) : 1, P = S ? `${S}${S.includes("?") ? "&" : "?"}_pv=${T}` : "", F = () => {
|
|
11540
11627
|
if (O(!0), u) {
|
|
11541
11628
|
u();
|
|
11542
11629
|
return;
|
|
@@ -11625,7 +11712,7 @@ var Gl = "allow-scripts allow-same-origin allow-forms", Kl = 390, ql = 1280, Jl
|
|
|
11625
11712
|
})
|
|
11626
11713
|
})]
|
|
11627
11714
|
});
|
|
11628
|
-
}),
|
|
11715
|
+
}), nu = 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) {
|
|
11629
11716
|
if (a === "hero") {
|
|
11630
11717
|
let n = (e, t = "1em") => /* @__PURE__ */ h("span", {
|
|
11631
11718
|
className: "select-skeleton select-balance__skel",
|
|
@@ -11633,7 +11720,7 @@ var Gl = "allow-scripts allow-same-origin allow-forms", Kl = 390, ql = 1280, Jl
|
|
|
11633
11720
|
width: e,
|
|
11634
11721
|
height: t
|
|
11635
11722
|
}
|
|
11636
|
-
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ h(
|
|
11723
|
+
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ h(ml, { cents: e });
|
|
11637
11724
|
return /* @__PURE__ */ h("div", {
|
|
11638
11725
|
ref: f,
|
|
11639
11726
|
...d,
|
|
@@ -11665,7 +11752,7 @@ var Gl = "allow-scripts allow-same-origin allow-forms", Kl = 390, ql = 1280, Jl
|
|
|
11665
11752
|
className: "select-balance-hero__meta",
|
|
11666
11753
|
children: s.map((e, t) => /* @__PURE__ */ g("div", {
|
|
11667
11754
|
className: "select-balance-hero__metaitem",
|
|
11668
|
-
children: [/* @__PURE__ */ h("dt", { children: e.label }), /* @__PURE__ */ h("dd", { children: l ? n("7ch") : e.cents != null && e.cents !== "" ? /* @__PURE__ */ g(m, { children: [e.prefix, /* @__PURE__ */ h(
|
|
11755
|
+
children: [/* @__PURE__ */ h("dt", { children: e.label }), /* @__PURE__ */ h("dd", { children: l ? n("7ch") : e.cents != null && e.cents !== "" ? /* @__PURE__ */ g(m, { children: [e.prefix, /* @__PURE__ */ h(ml, { cents: e.cents })] }) : e.value ?? "—" })]
|
|
11669
11756
|
}, t))
|
|
11670
11757
|
}),
|
|
11671
11758
|
(i || c) && /* @__PURE__ */ g("div", {
|
|
@@ -11740,8 +11827,8 @@ var Gl = "allow-scripts allow-same-origin allow-forms", Kl = 390, ql = 1280, Jl
|
|
|
11740
11827
|
className: "select-balance__heromain",
|
|
11741
11828
|
children: [/* @__PURE__ */ h("span", {
|
|
11742
11829
|
className: "select-balance__heroamount",
|
|
11743
|
-
children: /* @__PURE__ */ h(
|
|
11744
|
-
}), n != null && /* @__PURE__ */ h(
|
|
11830
|
+
children: /* @__PURE__ */ h(ml, { cents: e })
|
|
11831
|
+
}), n != null && /* @__PURE__ */ h(gl, {
|
|
11745
11832
|
value: n,
|
|
11746
11833
|
caption: "vs. período anterior"
|
|
11747
11834
|
})]
|
|
@@ -11760,14 +11847,14 @@ var Gl = "allow-scripts allow-same-origin allow-forms", Kl = 390, ql = 1280, Jl
|
|
|
11760
11847
|
children: e.label
|
|
11761
11848
|
}), /* @__PURE__ */ h("span", {
|
|
11762
11849
|
className: "select-balance__bucketamount",
|
|
11763
|
-
children: /* @__PURE__ */ h(
|
|
11850
|
+
children: /* @__PURE__ */ h(ml, { cents: e.cents })
|
|
11764
11851
|
})]
|
|
11765
11852
|
})]
|
|
11766
11853
|
}, e.label))
|
|
11767
11854
|
})]
|
|
11768
11855
|
})]
|
|
11769
11856
|
});
|
|
11770
|
-
}),
|
|
11857
|
+
}), ru = 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) {
|
|
11771
11858
|
let u = n ?? e - t.reduce((e, t) => e + t.cents, 0), d = Math.max(0, e - u), f = a && e > 0 && u >= 0, p = e > 0 ? d / e * 100 : 0;
|
|
11772
11859
|
return /* @__PURE__ */ g("div", {
|
|
11773
11860
|
ref: l,
|
|
@@ -11787,7 +11874,7 @@ var Gl = "allow-scripts allow-same-origin allow-forms", Kl = 390, ql = 1280, Jl
|
|
|
11787
11874
|
children: o ?? /* @__PURE__ */ g(m, { children: [
|
|
11788
11875
|
i,
|
|
11789
11876
|
" · ",
|
|
11790
|
-
/* @__PURE__ */ h(
|
|
11877
|
+
/* @__PURE__ */ h(ml, { cents: u })
|
|
11791
11878
|
] })
|
|
11792
11879
|
})
|
|
11793
11880
|
}), d > 0 && /* @__PURE__ */ h("span", {
|
|
@@ -11804,7 +11891,7 @@ var Gl = "allow-scripts allow-same-origin allow-forms", Kl = 390, ql = 1280, Jl
|
|
|
11804
11891
|
"aria-hidden": "true"
|
|
11805
11892
|
}),
|
|
11806
11893
|
"Taxas ",
|
|
11807
|
-
/* @__PURE__ */ h(
|
|
11894
|
+
/* @__PURE__ */ h(ml, { cents: d }),
|
|
11808
11895
|
" (",
|
|
11809
11896
|
p.toLocaleString("pt-BR", {
|
|
11810
11897
|
maximumFractionDigits: 1,
|
|
@@ -11820,20 +11907,20 @@ var Gl = "allow-scripts allow-same-origin allow-forms", Kl = 390, ql = 1280, Jl
|
|
|
11820
11907
|
"aria-hidden": "true"
|
|
11821
11908
|
}),
|
|
11822
11909
|
"Líquido ",
|
|
11823
|
-
/* @__PURE__ */ h(
|
|
11910
|
+
/* @__PURE__ */ h(ml, { cents: u })
|
|
11824
11911
|
]
|
|
11825
11912
|
})]
|
|
11826
11913
|
})]
|
|
11827
11914
|
}),
|
|
11828
11915
|
/* @__PURE__ */ g("div", {
|
|
11829
11916
|
className: "select-fees__row",
|
|
11830
|
-
children: [/* @__PURE__ */ h("span", { children: r }), /* @__PURE__ */ h("span", { children: /* @__PURE__ */ h(
|
|
11917
|
+
children: [/* @__PURE__ */ h("span", { children: r }), /* @__PURE__ */ h("span", { children: /* @__PURE__ */ h(ml, { cents: e }) })]
|
|
11831
11918
|
}),
|
|
11832
11919
|
t.map((e) => /* @__PURE__ */ g("div", {
|
|
11833
11920
|
className: "select-fees__row",
|
|
11834
11921
|
children: [/* @__PURE__ */ h("span", { children: e.label }), /* @__PURE__ */ g("span", {
|
|
11835
11922
|
className: "select-fees__neg",
|
|
11836
|
-
children: ["−\xA0", /* @__PURE__ */ h(
|
|
11923
|
+
children: ["−\xA0", /* @__PURE__ */ h(ml, { cents: e.cents })]
|
|
11837
11924
|
})]
|
|
11838
11925
|
}, e.label)),
|
|
11839
11926
|
/* @__PURE__ */ h("div", { className: "select-fees__divider" }),
|
|
@@ -11841,12 +11928,12 @@ var Gl = "allow-scripts allow-same-origin allow-forms", Kl = 390, ql = 1280, Jl
|
|
|
11841
11928
|
className: "select-fees__row select-fees__row--net",
|
|
11842
11929
|
children: [/* @__PURE__ */ h("span", { children: i }), /* @__PURE__ */ h("span", {
|
|
11843
11930
|
className: "select-fees__netvalue",
|
|
11844
|
-
children: /* @__PURE__ */ h(
|
|
11931
|
+
children: /* @__PURE__ */ h(ml, { cents: u })
|
|
11845
11932
|
})]
|
|
11846
11933
|
})
|
|
11847
11934
|
]
|
|
11848
11935
|
});
|
|
11849
|
-
}),
|
|
11936
|
+
}), iu = 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) {
|
|
11850
11937
|
let p = s != null, _ = p ? {
|
|
11851
11938
|
role: "button",
|
|
11852
11939
|
tabIndex: 0,
|
|
@@ -11891,7 +11978,7 @@ var Gl = "allow-scripts allow-same-origin allow-forms", Kl = 390, ql = 1280, Jl
|
|
|
11891
11978
|
})
|
|
11892
11979
|
] })]
|
|
11893
11980
|
});
|
|
11894
|
-
}),
|
|
11981
|
+
}), au = {
|
|
11895
11982
|
"pt-BR": {
|
|
11896
11983
|
severity: {
|
|
11897
11984
|
info: "Para saber",
|
|
@@ -12040,42 +12127,42 @@ var Gl = "allow-scripts allow-same-origin allow-forms", Kl = 390, ql = 1280, Jl
|
|
|
12040
12127
|
unread: "Nuevo"
|
|
12041
12128
|
}
|
|
12042
12129
|
};
|
|
12043
|
-
function
|
|
12130
|
+
function ou(e) {
|
|
12044
12131
|
return e === "en" || e != null && e.startsWith("en-") ? "en" : e === "es" || e != null && e.startsWith("es-") ? "es" : "pt-BR";
|
|
12045
12132
|
}
|
|
12046
|
-
function
|
|
12047
|
-
let n =
|
|
12133
|
+
function su(e, t) {
|
|
12134
|
+
let n = ou(e);
|
|
12048
12135
|
return {
|
|
12049
12136
|
lang: n,
|
|
12050
12137
|
labels: {
|
|
12051
|
-
...
|
|
12138
|
+
...au[n],
|
|
12052
12139
|
...t
|
|
12053
12140
|
}
|
|
12054
12141
|
};
|
|
12055
12142
|
}
|
|
12056
|
-
var
|
|
12143
|
+
var cu = {
|
|
12057
12144
|
info: "info",
|
|
12058
12145
|
opportunity: "success",
|
|
12059
12146
|
warning: "warning",
|
|
12060
12147
|
critical: "critical"
|
|
12061
12148
|
};
|
|
12062
|
-
function
|
|
12149
|
+
function lu(e, t, n) {
|
|
12063
12150
|
return new Intl.NumberFormat(n, {
|
|
12064
12151
|
style: "currency",
|
|
12065
12152
|
currency: t,
|
|
12066
12153
|
maximumFractionDigits: 0
|
|
12067
12154
|
}).format(e / 100);
|
|
12068
12155
|
}
|
|
12069
|
-
function
|
|
12070
|
-
let r =
|
|
12156
|
+
function uu(e, t, n) {
|
|
12157
|
+
let r = lu(e.minCents, e.currency, t), i = lu(e.maxCents, e.currency, t);
|
|
12071
12158
|
return e.minCents === e.maxCents ? n.about(i) : `${r}${n.rangeJoin}${i}`;
|
|
12072
12159
|
}
|
|
12073
|
-
function
|
|
12074
|
-
let r =
|
|
12160
|
+
function du(e, t = "pt-BR", n = au[ou(t)]) {
|
|
12161
|
+
let r = ou(t), i = lu(e.minCents, e.currency, r), a = lu(e.maxCents, e.currency, r);
|
|
12075
12162
|
return e.minCents === e.maxCents ? n.impactAbout(a) : n.impact(`${i}${n.rangeJoin}${a}`);
|
|
12076
12163
|
}
|
|
12077
|
-
var
|
|
12078
|
-
function
|
|
12164
|
+
var fu = 864e5;
|
|
12165
|
+
function pu(e, t, n, r) {
|
|
12079
12166
|
let i = new Date(e.start), a = new Date(e.end);
|
|
12080
12167
|
if (Number.isNaN(i.getTime()) || Number.isNaN(a.getTime())) return null;
|
|
12081
12168
|
let o = new Intl.DateTimeFormat("en", {
|
|
@@ -12087,7 +12174,7 @@ function ou(e, t, n, r) {
|
|
|
12087
12174
|
...s ? {} : { year: "numeric" },
|
|
12088
12175
|
timeZone: n
|
|
12089
12176
|
});
|
|
12090
|
-
if (a.getTime() - i.getTime() <
|
|
12177
|
+
if (a.getTime() - i.getTime() < fu) {
|
|
12091
12178
|
let e = new Intl.DateTimeFormat(t, {
|
|
12092
12179
|
hour: "2-digit",
|
|
12093
12180
|
minute: "2-digit",
|
|
@@ -12098,8 +12185,8 @@ function ou(e, t, n, r) {
|
|
|
12098
12185
|
}
|
|
12099
12186
|
return r.periodRange(c.format(i), c.format(a));
|
|
12100
12187
|
}
|
|
12101
|
-
function
|
|
12102
|
-
let n =
|
|
12188
|
+
function mu({ severity: e, labels: t }) {
|
|
12189
|
+
let n = cu[e] ?? "info";
|
|
12103
12190
|
return /* @__PURE__ */ g("span", {
|
|
12104
12191
|
className: `select-insight__sev select-insight__sev--${n}`,
|
|
12105
12192
|
children: [/* @__PURE__ */ h("span", {
|
|
@@ -12108,7 +12195,7 @@ function su({ severity: e, labels: t }) {
|
|
|
12108
12195
|
}), t.severity[e] ?? e]
|
|
12109
12196
|
});
|
|
12110
12197
|
}
|
|
12111
|
-
function
|
|
12198
|
+
function hu({ label: e }) {
|
|
12112
12199
|
return /* @__PURE__ */ g("span", {
|
|
12113
12200
|
className: "select-insight__new",
|
|
12114
12201
|
children: [/* @__PURE__ */ h("span", {
|
|
@@ -12117,10 +12204,10 @@ function cu({ label: e }) {
|
|
|
12117
12204
|
}), e]
|
|
12118
12205
|
});
|
|
12119
12206
|
}
|
|
12120
|
-
function
|
|
12207
|
+
function gu(e) {
|
|
12121
12208
|
return e != null && typeof e.raw == "number" && Number.isFinite(e.raw) && e.raw >= 0 ? e.raw : null;
|
|
12122
12209
|
}
|
|
12123
|
-
function
|
|
12210
|
+
function _u({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
12124
12211
|
let r = Math.max(0, Math.min(1, e)) * 100;
|
|
12125
12212
|
return /* @__PURE__ */ h("span", {
|
|
12126
12213
|
className: `select-insight__bar select-insight__bar--${t}${n === "sm" ? " select-insight__bar--sm" : ""}`,
|
|
@@ -12131,18 +12218,18 @@ function uu({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
|
12131
12218
|
})
|
|
12132
12219
|
});
|
|
12133
12220
|
}
|
|
12134
|
-
var
|
|
12221
|
+
var vu = /* @__PURE__ */ new Set([
|
|
12135
12222
|
"metric",
|
|
12136
12223
|
"comparison",
|
|
12137
12224
|
"table",
|
|
12138
12225
|
"items",
|
|
12139
12226
|
"text"
|
|
12140
12227
|
]);
|
|
12141
|
-
function
|
|
12142
|
-
return
|
|
12228
|
+
function yu(e) {
|
|
12229
|
+
return vu.has(e.type);
|
|
12143
12230
|
}
|
|
12144
|
-
function
|
|
12145
|
-
let t =
|
|
12231
|
+
function bu({ block: e }) {
|
|
12232
|
+
let t = gu(e.value), n = gu(e.baseline), r = t != null && n != null && Math.max(t, n) > 0 ? Math.max(t, n) / .9 : null, i = !!e.valueLabel;
|
|
12146
12233
|
return /* @__PURE__ */ g("div", {
|
|
12147
12234
|
className: `select-insight__tile select-insight__cmp${r == null ? " select-insight__cmp--plain" : ""}${!i && r != null ? " select-insight__cmp--stacked" : ""}`,
|
|
12148
12235
|
children: [
|
|
@@ -12159,7 +12246,7 @@ function pu({ block: e }) {
|
|
|
12159
12246
|
className: "select-insight__cmpname",
|
|
12160
12247
|
children: i ? e.valueLabel : e.label
|
|
12161
12248
|
}),
|
|
12162
|
-
r == null ? null : /* @__PURE__ */ h(
|
|
12249
|
+
r == null ? null : /* @__PURE__ */ h(_u, {
|
|
12163
12250
|
fraction: (t ?? 0) / r,
|
|
12164
12251
|
tone: "own"
|
|
12165
12252
|
}),
|
|
@@ -12175,7 +12262,7 @@ function pu({ block: e }) {
|
|
|
12175
12262
|
className: "select-insight__cmpname",
|
|
12176
12263
|
children: e.baselineLabel
|
|
12177
12264
|
}),
|
|
12178
|
-
r == null ? null : /* @__PURE__ */ h(
|
|
12265
|
+
r == null ? null : /* @__PURE__ */ h(_u, {
|
|
12179
12266
|
fraction: (n ?? 0) / r,
|
|
12180
12267
|
tone: "reference"
|
|
12181
12268
|
}),
|
|
@@ -12193,8 +12280,8 @@ function pu({ block: e }) {
|
|
|
12193
12280
|
]
|
|
12194
12281
|
});
|
|
12195
12282
|
}
|
|
12196
|
-
function
|
|
12197
|
-
let n = e.items.map((e) =>
|
|
12283
|
+
function xu({ block: e, renderItem: t }) {
|
|
12284
|
+
let n = e.items.map((e) => gu(e.value)), r = Math.max(0, ...n.map((e) => e ?? 0)), i = e.items.length > 0 && r > 0 && n.every((e) => e != null);
|
|
12198
12285
|
return /* @__PURE__ */ g("div", {
|
|
12199
12286
|
className: "select-insight__box",
|
|
12200
12287
|
children: [/* @__PURE__ */ h("h5", {
|
|
@@ -12207,7 +12294,7 @@ function mu({ block: e, renderItem: t }) {
|
|
|
12207
12294
|
className: "select-insight__itemlabel",
|
|
12208
12295
|
children: (t == null ? void 0 : t(e)) ?? e.label
|
|
12209
12296
|
}),
|
|
12210
|
-
i ? /* @__PURE__ */ h(
|
|
12297
|
+
i ? /* @__PURE__ */ h(_u, {
|
|
12211
12298
|
fraction: (n[a] ?? 0) / r,
|
|
12212
12299
|
size: "sm"
|
|
12213
12300
|
}) : null,
|
|
@@ -12219,14 +12306,14 @@ function mu({ block: e, renderItem: t }) {
|
|
|
12219
12306
|
})]
|
|
12220
12307
|
});
|
|
12221
12308
|
}
|
|
12222
|
-
function
|
|
12309
|
+
function Su({ block: e }) {
|
|
12223
12310
|
let t = new Set(e.columns.filter((t) => e.rows.length > 0 && e.rows.every((e) => {
|
|
12224
12311
|
var n;
|
|
12225
|
-
return ((n = e[t.key]) == null ? void 0 : n.type) === "percent" && (
|
|
12312
|
+
return ((n = e[t.key]) == null ? void 0 : n.type) === "percent" && (gu(e[t.key]) ?? 2) <= 1;
|
|
12226
12313
|
})).map((e) => e.key)), n = (e, n) => n && t.has(e) ? /* @__PURE__ */ g("span", {
|
|
12227
12314
|
className: "select-insight__share",
|
|
12228
|
-
children: [/* @__PURE__ */ h(
|
|
12229
|
-
fraction:
|
|
12315
|
+
children: [/* @__PURE__ */ h(_u, {
|
|
12316
|
+
fraction: gu(n) ?? 0,
|
|
12230
12317
|
size: "sm"
|
|
12231
12318
|
}), /* @__PURE__ */ h("span", {
|
|
12232
12319
|
className: "select-insight__sharevalue",
|
|
@@ -12255,7 +12342,7 @@ function hu({ block: e }) {
|
|
|
12255
12342
|
})]
|
|
12256
12343
|
}) : null] });
|
|
12257
12344
|
}
|
|
12258
|
-
function
|
|
12345
|
+
function Cu({ link: e, primary: t }) {
|
|
12259
12346
|
let n = ca(e.href);
|
|
12260
12347
|
if (!n && !e.onClick) return null;
|
|
12261
12348
|
let r = t ? "select-btn select-btn--primary select-btn--auto select-insight__go" : "select-insight__golink", i = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", { children: e.label }), /* @__PURE__ */ h(W, {})] });
|
|
@@ -12280,8 +12367,8 @@ function gu({ link: e, primary: t }) {
|
|
|
12280
12367
|
children: i
|
|
12281
12368
|
});
|
|
12282
12369
|
}
|
|
12283
|
-
function
|
|
12284
|
-
let { lang: w, labels: T } =
|
|
12370
|
+
function wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo", locked: i = !1, lockedCta: a, position: o, unread: s = !1, badges: c, nav: l, triage: u, triageNote: d, footer: f, trend: p, outcome: _, renderItem: v, actionLink: y, renderAction: b, methodologyOpen: x = !1, bare: S = !1, className: C }) {
|
|
12371
|
+
let { lang: w, labels: T } = su(t, n), E = cu[e.severity] ?? "info", D = e.period ? pu(e.period, w, r, T) : null, O = (e.blocks ?? []).filter(yu), k = e.actions ?? [], A = `select-insight select-insight--${E}` + (i ? " select-insight--locked" : "") + (S ? " select-insight--bare" : "") + (C ? " " + C : ""), j = /* @__PURE__ */ g("header", {
|
|
12285
12372
|
className: "select-insight__head",
|
|
12286
12373
|
children: [/* @__PURE__ */ g("div", {
|
|
12287
12374
|
className: "select-insight__meta",
|
|
@@ -12290,12 +12377,12 @@ function _u({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12290
12377
|
className: "select-insight__position",
|
|
12291
12378
|
children: o
|
|
12292
12379
|
}) : null,
|
|
12293
|
-
/* @__PURE__ */ h(
|
|
12380
|
+
/* @__PURE__ */ h(mu, {
|
|
12294
12381
|
severity: e.severity,
|
|
12295
12382
|
labels: T
|
|
12296
12383
|
}),
|
|
12297
12384
|
e.domain ? /* @__PURE__ */ h("span", { children: T.domain[e.domain] ?? e.domain }) : null,
|
|
12298
|
-
s && !i ? /* @__PURE__ */ h(
|
|
12385
|
+
s && !i ? /* @__PURE__ */ h(hu, { label: T.unread }) : null,
|
|
12299
12386
|
i ? /* @__PURE__ */ h(zr, {
|
|
12300
12387
|
tone: "pro",
|
|
12301
12388
|
size: "sm",
|
|
@@ -12332,7 +12419,7 @@ function _u({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12332
12419
|
}),
|
|
12333
12420
|
/* @__PURE__ */ h("strong", {
|
|
12334
12421
|
className: "select-insight__stakevalue",
|
|
12335
|
-
children:
|
|
12422
|
+
children: uu(e.impact, w, T)
|
|
12336
12423
|
}),
|
|
12337
12424
|
/* @__PURE__ */ h("span", {
|
|
12338
12425
|
className: "select-insight__stakenote",
|
|
@@ -12381,7 +12468,7 @@ function _u({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12381
12468
|
I || u ? /* @__PURE__ */ g("div", {
|
|
12382
12469
|
className: "select-insight__nowactions",
|
|
12383
12470
|
children: [
|
|
12384
|
-
I ? /* @__PURE__ */ h(
|
|
12471
|
+
I ? /* @__PURE__ */ h(Cu, {
|
|
12385
12472
|
link: I,
|
|
12386
12473
|
primary: !0
|
|
12387
12474
|
}) : null,
|
|
@@ -12407,7 +12494,7 @@ function _u({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12407
12494
|
return /* @__PURE__ */ h("li", { children: n ?? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("span", {
|
|
12408
12495
|
className: "select-insight__moretext",
|
|
12409
12496
|
children: e.label
|
|
12410
|
-
}), r ? /* @__PURE__ */ h(
|
|
12497
|
+
}), r ? /* @__PURE__ */ h(Cu, {
|
|
12411
12498
|
link: r,
|
|
12412
12499
|
primary: !1
|
|
12413
12500
|
}) : null] }) }, `${e.target ?? "text"}:${t}`);
|
|
@@ -12445,7 +12532,7 @@ function _u({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12445
12532
|
}),
|
|
12446
12533
|
/* @__PURE__ */ h("div", {
|
|
12447
12534
|
className: "select-insight__tilevalue",
|
|
12448
|
-
children:
|
|
12535
|
+
children: uu(e.impact, w, T)
|
|
12449
12536
|
}),
|
|
12450
12537
|
/* @__PURE__ */ h("div", {
|
|
12451
12538
|
className: "select-insight__tilenote",
|
|
@@ -12456,7 +12543,7 @@ function _u({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12456
12543
|
children: [/* @__PURE__ */ h("span", { children: z.label }), /* @__PURE__ */ h("strong", { children: z.value.display })]
|
|
12457
12544
|
}) : null
|
|
12458
12545
|
]
|
|
12459
|
-
}) : null, B.map((e, t) => e.type === "comparison" ? /* @__PURE__ */ h(
|
|
12546
|
+
}) : null, B.map((e, t) => e.type === "comparison" ? /* @__PURE__ */ h(bu, { block: e }, t) : /* @__PURE__ */ g("div", {
|
|
12460
12547
|
className: "select-insight__tile",
|
|
12461
12548
|
children: [
|
|
12462
12549
|
/* @__PURE__ */ h("div", {
|
|
@@ -12488,10 +12575,10 @@ function _u({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12488
12575
|
p.content
|
|
12489
12576
|
]
|
|
12490
12577
|
}) : null,
|
|
12491
|
-
ee.map((e, t) => e.type === "items" ? /* @__PURE__ */ h(
|
|
12578
|
+
ee.map((e, t) => e.type === "items" ? /* @__PURE__ */ h(xu, {
|
|
12492
12579
|
block: e,
|
|
12493
12580
|
renderItem: v
|
|
12494
|
-
}, t) : e.type === "table" ? /* @__PURE__ */ h(
|
|
12581
|
+
}, t) : e.type === "table" ? /* @__PURE__ */ h(Su, { block: e }, t) : e.type === "text" ? /* @__PURE__ */ g("div", {
|
|
12495
12582
|
className: "select-insight__text",
|
|
12496
12583
|
children: [/* @__PURE__ */ h(ye, {}), /* @__PURE__ */ h("span", { children: e.text })]
|
|
12497
12584
|
}, t) : null)
|
|
@@ -12574,25 +12661,25 @@ function _u({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12574
12661
|
]
|
|
12575
12662
|
});
|
|
12576
12663
|
}
|
|
12577
|
-
function
|
|
12664
|
+
function Tu({ layout: e = "rows", children: t, className: n, ...r }) {
|
|
12578
12665
|
return /* @__PURE__ */ h("div", {
|
|
12579
12666
|
...r,
|
|
12580
12667
|
className: `select-insightlist${e === "cards" ? " select-insightlist--cards" : ""}${n ? " " + n : ""}`,
|
|
12581
12668
|
children: t
|
|
12582
12669
|
});
|
|
12583
12670
|
}
|
|
12584
|
-
function
|
|
12585
|
-
let { lang: _, labels: v } =
|
|
12671
|
+
function Eu({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread: a = !1, selected: o = !1, layout: s = "row", cta: c, badge: l, href: u, onClick: d, className: f, ...p }) {
|
|
12672
|
+
let { lang: _, labels: v } = su(t, n), y = e.domain ? v.domain[e.domain] ?? e.domain : null, b = e.impact ? lu(e.impact.maxCents, e.impact.currency, _) : null, x = e.impact && e.impact.minCents === e.impact.maxCents ? v.about("").trim() : v.upTo, S = s === "card", C = "select-insightrow" + (S ? " select-insightrow--card" : "") + (o ? " is-selected" : "") + (i ? " select-insightrow--locked" : "") + (f ? " " + f : ""), w = i ? /* @__PURE__ */ h("span", {
|
|
12586
12673
|
className: "select-insightrow__index select-insightrow__index--lock",
|
|
12587
12674
|
"aria-hidden": "true",
|
|
12588
12675
|
children: /* @__PURE__ */ h(nt, {})
|
|
12589
12676
|
}) : r == null ? null : /* @__PURE__ */ h("span", {
|
|
12590
12677
|
className: `select-insightrow__index${o || S && r === 1 ? " select-insightrow__index--strong" : ""}`,
|
|
12591
12678
|
children: r
|
|
12592
|
-
}), T = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(
|
|
12679
|
+
}), T = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(mu, {
|
|
12593
12680
|
severity: e.severity,
|
|
12594
12681
|
labels: v
|
|
12595
|
-
}), y && !i ? /* @__PURE__ */ h("span", { children: y }) : null] }), E = a && !i ? /* @__PURE__ */ h(
|
|
12682
|
+
}), y && !i ? /* @__PURE__ */ h("span", { children: y }) : null] }), E = a && !i ? /* @__PURE__ */ h(hu, { label: v.unread }) : null, D = S ? /* @__PURE__ */ g(m, { children: [
|
|
12596
12683
|
/* @__PURE__ */ g("span", {
|
|
12597
12684
|
className: "select-insightrow__top",
|
|
12598
12685
|
children: [
|
|
@@ -12658,8 +12745,8 @@ function yu({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread
|
|
|
12658
12745
|
}
|
|
12659
12746
|
//#endregion
|
|
12660
12747
|
//#region src/SelectAssistant.tsx
|
|
12661
|
-
var
|
|
12662
|
-
function
|
|
12748
|
+
var Du = 240;
|
|
12749
|
+
function Ou({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcherLabel: a, badge: c, children: l, scrollKey: u, suggestions: p, onSuggestion: m, onSend: _, placeholder: v, disabled: y = !1, typing: b = !1, headerAction: x, anchor: S = "viewport", closeLabel: C = "Fechar", sendLabel: w = "Enviar", inputLabel: T = "Sua pergunta", className: E }) {
|
|
12663
12750
|
let D = s(), O = d(null), k = d(null), A = d(null), [j, M] = f(""), N = d(0), P = b !== !1;
|
|
12664
12751
|
o(() => {
|
|
12665
12752
|
let t = O.current;
|
|
@@ -12677,7 +12764,7 @@ function xu({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
12677
12764
|
let o = t.scrollHeight - t.clientHeight, s = a ? Math.min(o, a.getBoundingClientRect().top - t.getBoundingClientRect().top + t.scrollTop - 12) : o;
|
|
12678
12765
|
n ? t.scrollTop = s : s > t.scrollTop + 1 && (typeof t.scrollTo == "function" ? t.scrollTo({
|
|
12679
12766
|
top: s,
|
|
12680
|
-
behavior:
|
|
12767
|
+
behavior: Mu() ? "auto" : "smooth"
|
|
12681
12768
|
}) : t.scrollTop = s);
|
|
12682
12769
|
}, [
|
|
12683
12770
|
e,
|
|
@@ -12741,7 +12828,7 @@ function xu({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
12741
12828
|
className: "select-assistant__body",
|
|
12742
12829
|
role: "log",
|
|
12743
12830
|
"aria-live": "polite",
|
|
12744
|
-
children: [l, P ? /* @__PURE__ */ h(
|
|
12831
|
+
children: [l, P ? /* @__PURE__ */ h(ju, { label: typeof b == "string" ? b : void 0 }) : null]
|
|
12745
12832
|
}),
|
|
12746
12833
|
(_ || p && p.length > 0) && /* @__PURE__ */ g("footer", {
|
|
12747
12834
|
className: "select-assistant__foot",
|
|
@@ -12765,7 +12852,7 @@ function xu({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
12765
12852
|
onChange: (e) => M(e.target.value),
|
|
12766
12853
|
placeholder: v,
|
|
12767
12854
|
"aria-label": T,
|
|
12768
|
-
maxLength:
|
|
12855
|
+
maxLength: Du,
|
|
12769
12856
|
autoComplete: "off",
|
|
12770
12857
|
enterKeyHint: "send",
|
|
12771
12858
|
disabled: y
|
|
@@ -12797,7 +12884,7 @@ function xu({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
12797
12884
|
})]
|
|
12798
12885
|
});
|
|
12799
12886
|
}
|
|
12800
|
-
function
|
|
12887
|
+
function ku({ from: e, bare: t = !1, children: n }) {
|
|
12801
12888
|
return /* @__PURE__ */ h("div", {
|
|
12802
12889
|
className: `select-chat__msg select-chat__msg--${e}${t ? " select-chat__msg--bare" : ""}`,
|
|
12803
12890
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -12806,13 +12893,13 @@ function Su({ from: e, bare: t = !1, children: n }) {
|
|
|
12806
12893
|
})
|
|
12807
12894
|
});
|
|
12808
12895
|
}
|
|
12809
|
-
function
|
|
12896
|
+
function Au({ children: e }) {
|
|
12810
12897
|
return /* @__PURE__ */ h("div", {
|
|
12811
12898
|
className: "select-chat__turn",
|
|
12812
12899
|
children: e
|
|
12813
12900
|
});
|
|
12814
12901
|
}
|
|
12815
|
-
function
|
|
12902
|
+
function ju({ label: e = "Escrevendo…" }) {
|
|
12816
12903
|
return /* @__PURE__ */ h("div", {
|
|
12817
12904
|
className: "select-chat__msg select-chat__msg--assistant select-chat__msg--typing",
|
|
12818
12905
|
role: "status",
|
|
@@ -12828,19 +12915,19 @@ function wu({ label: e = "Escrevendo…" }) {
|
|
|
12828
12915
|
})
|
|
12829
12916
|
});
|
|
12830
12917
|
}
|
|
12831
|
-
function
|
|
12918
|
+
function Mu() {
|
|
12832
12919
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
12833
12920
|
}
|
|
12834
12921
|
//#endregion
|
|
12835
12922
|
//#region src/SelectNumberedList.tsx
|
|
12836
|
-
function
|
|
12923
|
+
function Nu({ children: e, className: t, ...n }) {
|
|
12837
12924
|
return /* @__PURE__ */ h("ol", {
|
|
12838
12925
|
...n,
|
|
12839
12926
|
className: `select-numlist${t ? " " + t : ""}`,
|
|
12840
12927
|
children: e
|
|
12841
12928
|
});
|
|
12842
12929
|
}
|
|
12843
|
-
function
|
|
12930
|
+
function Pu({ title: e, children: t, className: n, ...r }) {
|
|
12844
12931
|
return /* @__PURE__ */ h("li", {
|
|
12845
12932
|
...r,
|
|
12846
12933
|
className: `select-numlist__item${n ? " " + n : ""}`,
|
|
@@ -12858,7 +12945,7 @@ function Du({ title: e, children: t, className: n, ...r }) {
|
|
|
12858
12945
|
}
|
|
12859
12946
|
//#endregion
|
|
12860
12947
|
//#region src/SelectChartCard.tsx
|
|
12861
|
-
var
|
|
12948
|
+
var Fu = 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) {
|
|
12862
12949
|
let m = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
12863
12950
|
return /* @__PURE__ */ g("div", {
|
|
12864
12951
|
ref: p,
|
|
@@ -12901,7 +12988,7 @@ var Ou = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1,
|
|
|
12901
12988
|
});
|
|
12902
12989
|
//#endregion
|
|
12903
12990
|
//#region src/chartUtils.ts
|
|
12904
|
-
function
|
|
12991
|
+
function Iu() {
|
|
12905
12992
|
let [e, t] = f(1);
|
|
12906
12993
|
return l(() => {
|
|
12907
12994
|
let e = () => {
|
|
@@ -12911,8 +12998,8 @@ function ku() {
|
|
|
12911
12998
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
12912
12999
|
}, []), e;
|
|
12913
13000
|
}
|
|
12914
|
-
function
|
|
12915
|
-
let t = d(null), [n, r] = f(0), i =
|
|
13001
|
+
function Lu(e) {
|
|
13002
|
+
let t = d(null), [n, r] = f(0), i = Iu();
|
|
12916
13003
|
return l(() => {
|
|
12917
13004
|
let e = t.current;
|
|
12918
13005
|
if (!e) return;
|
|
@@ -12929,7 +13016,7 @@ function Au(e) {
|
|
|
12929
13016
|
height: Math.round(e * i)
|
|
12930
13017
|
};
|
|
12931
13018
|
}
|
|
12932
|
-
function
|
|
13019
|
+
function Ru(e, t) {
|
|
12933
13020
|
let [n, r] = f(t);
|
|
12934
13021
|
return l(() => {
|
|
12935
13022
|
let t = e.current;
|
|
@@ -12943,15 +13030,15 @@ function ju(e, t) {
|
|
|
12943
13030
|
return i.observe(t), () => i.disconnect();
|
|
12944
13031
|
}, [e]), n;
|
|
12945
13032
|
}
|
|
12946
|
-
function
|
|
13033
|
+
function zu(e) {
|
|
12947
13034
|
if (e <= 0) return 1;
|
|
12948
13035
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
12949
13036
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
12950
13037
|
}
|
|
12951
|
-
function
|
|
13038
|
+
function Bu(e, t = 4) {
|
|
12952
13039
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
12953
13040
|
}
|
|
12954
|
-
function
|
|
13041
|
+
function Vu(e, t = 5) {
|
|
12955
13042
|
if (!(e > 0)) return {
|
|
12956
13043
|
max: 1,
|
|
12957
13044
|
values: [0, 1]
|
|
@@ -12963,10 +13050,10 @@ function Pu(e, t = 5) {
|
|
|
12963
13050
|
values: s
|
|
12964
13051
|
};
|
|
12965
13052
|
}
|
|
12966
|
-
function
|
|
13053
|
+
function Hu(e) {
|
|
12967
13054
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
12968
13055
|
}
|
|
12969
|
-
function
|
|
13056
|
+
function Uu(e) {
|
|
12970
13057
|
let t = e.length;
|
|
12971
13058
|
if (t === 0) return "";
|
|
12972
13059
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -12990,23 +13077,23 @@ function Iu(e) {
|
|
|
12990
13077
|
}
|
|
12991
13078
|
return s;
|
|
12992
13079
|
}
|
|
12993
|
-
function
|
|
13080
|
+
function Wu(e, t) {
|
|
12994
13081
|
if (e.length === 0) return "";
|
|
12995
13082
|
let n = e[0], r = e[e.length - 1];
|
|
12996
|
-
return `${
|
|
13083
|
+
return `${Uu(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
12997
13084
|
}
|
|
12998
|
-
function
|
|
12999
|
-
return e.length === 0 || t.length === 0 ? "" : `${
|
|
13085
|
+
function Gu(e, t) {
|
|
13086
|
+
return e.length === 0 || t.length === 0 ? "" : `${Uu(e)} ${Uu([...t].reverse()).replace(/^M/, "L")} Z`;
|
|
13000
13087
|
}
|
|
13001
|
-
function
|
|
13088
|
+
function Ku(e, t, n, r) {
|
|
13002
13089
|
let i = (r - 90) * Math.PI / 180;
|
|
13003
13090
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
13004
13091
|
}
|
|
13005
|
-
function
|
|
13006
|
-
let [o, s] =
|
|
13092
|
+
function qu(e, t, n, r, i, a) {
|
|
13093
|
+
let [o, s] = Ku(e, t, n, i), [c, l] = Ku(e, t, n, a), [u, d] = Ku(e, t, r, a), [f, p] = Ku(e, t, r, i), m = +(a - i > 180);
|
|
13007
13094
|
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`;
|
|
13008
13095
|
}
|
|
13009
|
-
var
|
|
13096
|
+
var Ju = [
|
|
13010
13097
|
"var(--select-chart-1)",
|
|
13011
13098
|
"var(--select-chart-2)",
|
|
13012
13099
|
"var(--select-chart-3)",
|
|
@@ -13014,13 +13101,13 @@ var Vu = [
|
|
|
13014
13101
|
"var(--select-chart-5)"
|
|
13015
13102
|
];
|
|
13016
13103
|
function X(e) {
|
|
13017
|
-
return
|
|
13104
|
+
return Ju[e % Ju.length];
|
|
13018
13105
|
}
|
|
13019
13106
|
function Z(e) {
|
|
13020
13107
|
let t = Math.abs(e);
|
|
13021
13108
|
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));
|
|
13022
13109
|
}
|
|
13023
|
-
var
|
|
13110
|
+
var Yu = {
|
|
13024
13111
|
top: 16,
|
|
13025
13112
|
right: 22,
|
|
13026
13113
|
bottom: 32,
|
|
@@ -13028,8 +13115,8 @@ var Hu = {
|
|
|
13028
13115
|
};
|
|
13029
13116
|
//#endregion
|
|
13030
13117
|
//#region src/SelectSparkline.tsx
|
|
13031
|
-
function
|
|
13032
|
-
let { ref: a, width: o } =
|
|
13118
|
+
function Xu({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
13119
|
+
let { ref: a, width: o } = Lu(n), c = t ?? X(0), l = s(), u = null;
|
|
13033
13120
|
if (o > 0 && e.length > 1) {
|
|
13034
13121
|
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];
|
|
13035
13122
|
u = /* @__PURE__ */ g("svg", {
|
|
@@ -13055,11 +13142,11 @@ function Uu({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
13055
13142
|
})]
|
|
13056
13143
|
}) }),
|
|
13057
13144
|
/* @__PURE__ */ h("path", {
|
|
13058
|
-
d:
|
|
13145
|
+
d: Wu(a, n - 4),
|
|
13059
13146
|
fill: `url(#${l}-sa)`
|
|
13060
13147
|
}),
|
|
13061
13148
|
/* @__PURE__ */ h("path", {
|
|
13062
|
-
d:
|
|
13149
|
+
d: Uu(a),
|
|
13063
13150
|
fill: "none",
|
|
13064
13151
|
stroke: c,
|
|
13065
13152
|
strokeWidth: 2,
|
|
@@ -13138,7 +13225,7 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
13138
13225
|
}, t))]
|
|
13139
13226
|
});
|
|
13140
13227
|
}
|
|
13141
|
-
function
|
|
13228
|
+
function Zu({ tip: e, onDismiss: t }) {
|
|
13142
13229
|
return o(() => {
|
|
13143
13230
|
if (e) return window.addEventListener("scroll", t, !0), window.addEventListener("resize", t), () => {
|
|
13144
13231
|
window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", t);
|
|
@@ -13151,8 +13238,8 @@ function Wu({ tip: e, onDismiss: t }) {
|
|
|
13151
13238
|
}
|
|
13152
13239
|
//#endregion
|
|
13153
13240
|
//#region src/SelectBarChart.tsx
|
|
13154
|
-
function
|
|
13155
|
-
let { ref: o, width: c } =
|
|
13241
|
+
function Qu({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
13242
|
+
let { ref: o, width: c } = Lu(t), l = Q(), u = s(), d = n ?? X(0), f = zu(Math.max(0, ...e.map((e) => e.value))), p = Yu, m = Math.max(0, c - p.left - p.right), _ = t - p.top - p.bottom, v = e.length > 0 ? m / e.length : 0, y = Math.min(v * .62, 44), b = p.top + _, x = (e) => b - e / f * _;
|
|
13156
13243
|
return /* @__PURE__ */ g("div", {
|
|
13157
13244
|
...a,
|
|
13158
13245
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -13178,7 +13265,7 @@ function Gu({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
13178
13265
|
stopOpacity: .62
|
|
13179
13266
|
})]
|
|
13180
13267
|
}) }),
|
|
13181
|
-
|
|
13268
|
+
Bu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13182
13269
|
x1: p.left,
|
|
13183
13270
|
x2: c - p.right,
|
|
13184
13271
|
y1: x(e),
|
|
@@ -13228,14 +13315,14 @@ function Gu({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
13228
13315
|
}
|
|
13229
13316
|
//#endregion
|
|
13230
13317
|
//#region src/SelectLineChart.tsx
|
|
13231
|
-
var
|
|
13232
|
-
function
|
|
13318
|
+
var $u = (e) => e != null && Number.isFinite(e), ed = 64;
|
|
13319
|
+
function td(e, t) {
|
|
13233
13320
|
let n = [], r = [];
|
|
13234
|
-
for (let i = 0; i < t; i++)
|
|
13321
|
+
for (let i = 0; i < t; i++) $u(e[i]) ? r.push(i) : r.length && (n.push(r), r = []);
|
|
13235
13322
|
return r.length && n.push(r), n;
|
|
13236
13323
|
}
|
|
13237
|
-
function
|
|
13238
|
-
let { ref: l, width: u } =
|
|
13324
|
+
function nd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1, className: o, ...c }) {
|
|
13325
|
+
let { ref: l, width: u } = Lu(r), d = Q(), p = s(), [m, _] = f(null), { max: v, values: y } = Vu(Math.max(0, ...e.flatMap((e) => e.data.filter((e) => Number.isFinite(e))))), b = Yu, x = Math.max(0, u - b.left - b.right), S = r - b.top - b.bottom, C = n.length, w = (e) => b.left + (C <= 1 ? x / 2 : e / (C - 1) * x), T = (e) => b.top + S - e / v * S, E = C > 1 ? x / (C - 1) : x, D = Math.max(1, Math.ceil(C / 7), Math.ceil(ed / Math.max(E, 1))), O = (e) => e === C - 1 || e % D === 0 && (C - 1 - e) * E >= ed, k = b.top + S;
|
|
13239
13326
|
return /* @__PURE__ */ g("div", {
|
|
13240
13327
|
...c,
|
|
13241
13328
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -13290,7 +13377,7 @@ function Yu({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
13290
13377
|
si: t
|
|
13291
13378
|
})).sort((e, t) => Number(!!t.s.dashed) - Number(!!e.s.dashed)).map(({ s: e, si: n }) => {
|
|
13292
13379
|
let r = e.color ?? X(n);
|
|
13293
|
-
return /* @__PURE__ */ h("g", { children:
|
|
13380
|
+
return /* @__PURE__ */ h("g", { children: td(e.data, C).map((i, o) => {
|
|
13294
13381
|
let s = i.map((t) => [w(t), T(e.data[t])]);
|
|
13295
13382
|
return s.length === 1 ? /* @__PURE__ */ h("circle", {
|
|
13296
13383
|
cx: s[0][0],
|
|
@@ -13299,11 +13386,11 @@ function Yu({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
13299
13386
|
fill: r,
|
|
13300
13387
|
className: "select-chart__dot select-chart__dot--lone"
|
|
13301
13388
|
}, o) : /* @__PURE__ */ g(t, { children: [a && !e.dashed && /* @__PURE__ */ h("path", {
|
|
13302
|
-
d:
|
|
13389
|
+
d: Wu(s, k),
|
|
13303
13390
|
fill: `url(#${p}-a${n})`,
|
|
13304
13391
|
className: "select-chart__area"
|
|
13305
13392
|
}), /* @__PURE__ */ h("path", {
|
|
13306
|
-
d:
|
|
13393
|
+
d: Uu(s),
|
|
13307
13394
|
fill: "none",
|
|
13308
13395
|
stroke: r,
|
|
13309
13396
|
strokeWidth: e.dashed ? 1.75 : 2.25,
|
|
@@ -13316,7 +13403,7 @@ function Yu({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
13316
13403
|
})] }, o);
|
|
13317
13404
|
}) }, n);
|
|
13318
13405
|
}),
|
|
13319
|
-
m != null && e.map((e, t) =>
|
|
13406
|
+
m != null && e.map((e, t) => $u(e.data[m]) ? /* @__PURE__ */ h("circle", {
|
|
13320
13407
|
cx: w(m),
|
|
13321
13408
|
cy: T(e.data[m] ?? 0),
|
|
13322
13409
|
r: 3.5,
|
|
@@ -13343,7 +13430,7 @@ function Yu({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
13343
13430
|
let r = e.map((e, t) => ({
|
|
13344
13431
|
s: e,
|
|
13345
13432
|
si: t
|
|
13346
|
-
})).filter(({ s: e }) =>
|
|
13433
|
+
})).filter(({ s: e }) => $u(e.data[n]));
|
|
13347
13434
|
if (!r.length) {
|
|
13348
13435
|
d.hide();
|
|
13349
13436
|
return;
|
|
@@ -13374,8 +13461,8 @@ function Yu({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
13374
13461
|
}
|
|
13375
13462
|
//#endregion
|
|
13376
13463
|
//#region src/SelectStackedArea.tsx
|
|
13377
|
-
function
|
|
13378
|
-
let { ref: o, width: c } =
|
|
13464
|
+
function rd({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
13465
|
+
let { ref: o, width: c } = Lu(n), l = Q(), u = s(), [d, p] = f(null), m = t.length, _ = Array(m).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y = zu(Math.max(0, ..._)), b = Yu, x = Math.max(0, c - b.left - b.right), S = n - b.top - b.bottom, C = (e) => b.left + (m <= 1 ? x / 2 : e / (m - 1) * x), w = (e) => b.top + S - e / y * S, T = m > 1 ? x / (m - 1) : x, E = Math.max(1, Math.ceil(m / 7)), D = b.top + S, O = v[v.length - 1];
|
|
13379
13466
|
return /* @__PURE__ */ g("div", {
|
|
13380
13467
|
...a,
|
|
13381
13468
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -13404,7 +13491,7 @@ function Xu({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
13404
13491
|
})]
|
|
13405
13492
|
}, t);
|
|
13406
13493
|
}) }),
|
|
13407
|
-
|
|
13494
|
+
Bu(y).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13408
13495
|
x1: b.left,
|
|
13409
13496
|
x2: c - b.right,
|
|
13410
13497
|
y1: w(e),
|
|
@@ -13423,10 +13510,10 @@ function Xu({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
13423
13510
|
return /* @__PURE__ */ g("g", {
|
|
13424
13511
|
className: "select-chart__area",
|
|
13425
13512
|
children: [/* @__PURE__ */ h("path", {
|
|
13426
|
-
d:
|
|
13513
|
+
d: Gu(i, a),
|
|
13427
13514
|
fill: `url(#${u}-b${n})`
|
|
13428
13515
|
}), /* @__PURE__ */ h("path", {
|
|
13429
|
-
d:
|
|
13516
|
+
d: Uu(i),
|
|
13430
13517
|
fill: "none",
|
|
13431
13518
|
stroke: r,
|
|
13432
13519
|
strokeWidth: 1.5,
|
|
@@ -13480,11 +13567,11 @@ function Xu({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
13480
13567
|
}
|
|
13481
13568
|
//#endregion
|
|
13482
13569
|
//#region src/SelectComboChart.tsx
|
|
13483
|
-
function
|
|
13484
|
-
let { ref: l, width: u } =
|
|
13485
|
-
...
|
|
13570
|
+
function id({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
|
|
13571
|
+
let { ref: l, width: u } = Lu(r), d = Q(), p = s(), [m, _] = f(null), v = {
|
|
13572
|
+
...Yu,
|
|
13486
13573
|
right: 58
|
|
13487
|
-
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S =
|
|
13574
|
+
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = zu(Math.max(0, ...t.data)), C = zu(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)]);
|
|
13488
13575
|
return /* @__PURE__ */ g("div", {
|
|
13489
13576
|
...c,
|
|
13490
13577
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -13510,7 +13597,7 @@ function Zu({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
13510
13597
|
stopOpacity: .55
|
|
13511
13598
|
})]
|
|
13512
13599
|
}) }),
|
|
13513
|
-
|
|
13600
|
+
Bu(S).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
13514
13601
|
x1: v.left,
|
|
13515
13602
|
x2: u - v.right,
|
|
13516
13603
|
y1: A(e),
|
|
@@ -13524,7 +13611,7 @@ function Zu({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
13524
13611
|
textAnchor: "end",
|
|
13525
13612
|
children: i(e)
|
|
13526
13613
|
})] }, t)),
|
|
13527
|
-
|
|
13614
|
+
Bu(C).map((e, t) => /* @__PURE__ */ h("text", {
|
|
13528
13615
|
x: u - 4,
|
|
13529
13616
|
y: j(e),
|
|
13530
13617
|
className: "select-chart__ylabel",
|
|
@@ -13553,7 +13640,7 @@ function Zu({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
13553
13640
|
className: "select-chart__crosshair"
|
|
13554
13641
|
}),
|
|
13555
13642
|
/* @__PURE__ */ h("path", {
|
|
13556
|
-
d:
|
|
13643
|
+
d: Uu(N),
|
|
13557
13644
|
fill: "none",
|
|
13558
13645
|
stroke: O,
|
|
13559
13646
|
strokeWidth: 2.5,
|
|
@@ -13611,8 +13698,8 @@ function Zu({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
13611
13698
|
}
|
|
13612
13699
|
//#endregion
|
|
13613
13700
|
//#region src/SelectDonut.tsx
|
|
13614
|
-
var
|
|
13615
|
-
let p = Q(), m = s(), _ = d(null), v =
|
|
13701
|
+
var ad = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r = Z, centerLabel: i, legend: a = !0, gap: o = 2, pie: c = !1, className: l, ...u }, f) {
|
|
13702
|
+
let p = Q(), m = s(), _ = d(null), v = Ru(_, 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;
|
|
13616
13703
|
return /* @__PURE__ */ g("div", {
|
|
13617
13704
|
ref: f,
|
|
13618
13705
|
...u,
|
|
@@ -13655,7 +13742,7 @@ var Qu = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
13655
13742
|
w += e.value;
|
|
13656
13743
|
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);
|
|
13657
13744
|
return /* @__PURE__ */ h("path", {
|
|
13658
|
-
d:
|
|
13745
|
+
d: qu(b, x, S, C, c, l),
|
|
13659
13746
|
fill: `url(#${m}-s${t})`,
|
|
13660
13747
|
className: "select-chart__seg",
|
|
13661
13748
|
onMouseEnter: () => {
|
|
@@ -13703,9 +13790,9 @@ var Qu = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
13703
13790
|
/* @__PURE__ */ h($, { tip: p.tip })
|
|
13704
13791
|
]
|
|
13705
13792
|
});
|
|
13706
|
-
}),
|
|
13707
|
-
function
|
|
13708
|
-
let { ref: u, width: d } =
|
|
13793
|
+
}), od = 6.4, sd = 12;
|
|
13794
|
+
function cd({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, marker: a, tooltip: o, className: c, ...l }) {
|
|
13795
|
+
let { ref: u, width: d } = Lu(n), f = Q(), p = s(), m = t.length, _ = e.length || 1, v = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), { max: y, values: b } = Vu(i ? Math.max(0, ...v) : Math.max(0, ...e.flatMap((e) => e.data)), 4), x = Yu, S = Math.max(0, d - x.left - x.right), C = n - x.top - x.bottom, w = x.top + C, T = m ? S / m : 0, E = (e) => w - e / y * C, D = Math.min(T * .72, _ * 40), O = i ? Math.min(T * .5, 44) : D / _, k = Math.min(30, 600 / Math.max(1, m)), A = (e, t) => e.pattern === "hatch" ? `url(#${p}-p${t})` : `url(#${p}-c${t})`, j = a && m > 0 ? Math.min(m - 1, Math.max(0, a.index)) : null, M = t.reduce((e, t) => Math.max(e, t.length), 0), N = T > 0 ? Math.max(1, Math.ceil((M * od + sd) / T)) : 1, P = j ?? 0, F = (e) => N === 1 || ((e - P) % N + N) % N === 0, I = (t, n) => {
|
|
13709
13796
|
if (o) {
|
|
13710
13797
|
let e = o(t);
|
|
13711
13798
|
return e ? {
|
|
@@ -13872,7 +13959,7 @@ function td({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
13872
13959
|
}
|
|
13873
13960
|
//#endregion
|
|
13874
13961
|
//#region src/SelectChartLegend.tsx
|
|
13875
|
-
function
|
|
13962
|
+
function ld({ items: e, className: t, ...n }) {
|
|
13876
13963
|
return /* @__PURE__ */ h("div", {
|
|
13877
13964
|
...n,
|
|
13878
13965
|
className: `select-chartlegend${t ? " " + t : ""}`,
|
|
@@ -13901,7 +13988,7 @@ function nd({ items: e, className: t, ...n }) {
|
|
|
13901
13988
|
}
|
|
13902
13989
|
//#endregion
|
|
13903
13990
|
//#region src/SelectShareBar.tsx
|
|
13904
|
-
function
|
|
13991
|
+
function ud({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm", onSelect: a, selected: o, hint: s, className: c, ...l }) {
|
|
13905
13992
|
let u = e.map((e, t) => ({
|
|
13906
13993
|
...e,
|
|
13907
13994
|
key: e.key ?? e.label,
|
|
@@ -14006,7 +14093,7 @@ function rd({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm",
|
|
|
14006
14093
|
}
|
|
14007
14094
|
//#endregion
|
|
14008
14095
|
//#region src/SelectRing.tsx
|
|
14009
|
-
var
|
|
14096
|
+
var dd = 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) {
|
|
14010
14097
|
let p = t > 0 ? t : 100, m = Math.max(0, Math.min(1, (Number.isFinite(e) ? e : 0) / p)), _ = (r ?? Math.max(4, Math.round(n * .11))) / n * 100, v = 50 - _ / 2, y = 2 * Math.PI * v, b = {
|
|
14011
14098
|
"--select-ring-size": `${n / 16}rem`,
|
|
14012
14099
|
...u
|
|
@@ -14050,7 +14137,7 @@ var id = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14050
14137
|
})]
|
|
14051
14138
|
})]
|
|
14052
14139
|
});
|
|
14053
|
-
}),
|
|
14140
|
+
}), fd = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
|
|
14054
14141
|
let l = (t) => {
|
|
14055
14142
|
let n = e[t];
|
|
14056
14143
|
return n != null && n.state !== "upcoming";
|
|
@@ -14108,7 +14195,7 @@ var id = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14108
14195
|
})
|
|
14109
14196
|
})
|
|
14110
14197
|
});
|
|
14111
|
-
}),
|
|
14198
|
+
}), pd = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
|
|
14112
14199
|
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;
|
|
14113
14200
|
return /* @__PURE__ */ g("span", {
|
|
14114
14201
|
ref: o,
|
|
@@ -14124,7 +14211,7 @@ var id = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14124
14211
|
children: l
|
|
14125
14212
|
})]
|
|
14126
14213
|
});
|
|
14127
|
-
}),
|
|
14214
|
+
}), md = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
|
|
14128
14215
|
return /* @__PURE__ */ h("span", {
|
|
14129
14216
|
ref: a,
|
|
14130
14217
|
"aria-hidden": "true",
|
|
@@ -14132,7 +14219,7 @@ var id = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14132
14219
|
className: `select-icontile select-icontile--${t} select-icontile--${n}${r ? " " + r : ""}`,
|
|
14133
14220
|
children: e
|
|
14134
14221
|
});
|
|
14135
|
-
}),
|
|
14222
|
+
}), hd = r(function({ tone: e = "neutral", media: t, eyebrow: n, title: r, description: i, actions: a, actionsPlacement: o = "below", aside: s, facts: c, asideSize: l = "half", size: u = "md", mediaInline: d = !1, children: f, className: p, ...m }, _) {
|
|
14136
14223
|
let v = a != null && o === "end";
|
|
14137
14224
|
return /* @__PURE__ */ h("section", {
|
|
14138
14225
|
ref: _,
|
|
@@ -14204,7 +14291,7 @@ var id = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14204
14291
|
]
|
|
14205
14292
|
})
|
|
14206
14293
|
});
|
|
14207
|
-
}),
|
|
14294
|
+
}), gd = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
|
|
14208
14295
|
return /* @__PURE__ */ g("article", {
|
|
14209
14296
|
ref: l,
|
|
14210
14297
|
...c,
|
|
@@ -14239,7 +14326,7 @@ var id = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14239
14326
|
})]
|
|
14240
14327
|
})]
|
|
14241
14328
|
});
|
|
14242
|
-
}),
|
|
14329
|
+
}), _d = r(function({ items: e, order: t = "label-first", columns: n, narrowColumns: r, loading: i = !1, className: a, ...o }, s) {
|
|
14243
14330
|
return /* @__PURE__ */ h("dl", {
|
|
14244
14331
|
ref: s,
|
|
14245
14332
|
"aria-busy": i || void 0,
|
|
@@ -14266,7 +14353,7 @@ var id = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14266
14353
|
]
|
|
14267
14354
|
}, e.key ?? t))
|
|
14268
14355
|
});
|
|
14269
|
-
}),
|
|
14356
|
+
}), vd = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
|
|
14270
14357
|
let o = (t ?? "").replace(/\D/g, "").slice(-4);
|
|
14271
14358
|
return /* @__PURE__ */ g("div", {
|
|
14272
14359
|
ref: a,
|
|
@@ -14309,7 +14396,7 @@ var id = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14309
14396
|
})
|
|
14310
14397
|
]
|
|
14311
14398
|
});
|
|
14312
|
-
}),
|
|
14399
|
+
}), yd = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
|
|
14313
14400
|
let s = Math.max(1, ...e.map((e) => e.value));
|
|
14314
14401
|
return /* @__PURE__ */ h("div", {
|
|
14315
14402
|
ref: o,
|
|
@@ -14351,19 +14438,19 @@ var id = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14351
14438
|
});
|
|
14352
14439
|
//#endregion
|
|
14353
14440
|
//#region src/SelectGauge.tsx
|
|
14354
|
-
function
|
|
14441
|
+
function bd(e) {
|
|
14355
14442
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
14356
14443
|
}
|
|
14357
|
-
function
|
|
14444
|
+
function xd(e, t, n, r) {
|
|
14358
14445
|
let i = Math.PI + r * Math.PI;
|
|
14359
14446
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
14360
14447
|
}
|
|
14361
|
-
function
|
|
14362
|
-
let [a, o] =
|
|
14448
|
+
function Sd(e, t, n, r, i) {
|
|
14449
|
+
let [a, o] = xd(e, t, n, r), [s, c] = xd(e, t, n, i);
|
|
14363
14450
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
14364
14451
|
}
|
|
14365
|
-
var
|
|
14366
|
-
let u =
|
|
14452
|
+
var Cd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, wd = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = Cd, className: s, ...c }, l) {
|
|
14453
|
+
let u = bd(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, m = r / 2, _ = r / 2, v = _ + f, y = or({
|
|
14367
14454
|
value: u,
|
|
14368
14455
|
format: o
|
|
14369
14456
|
});
|
|
@@ -14386,13 +14473,13 @@ var gd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
14386
14473
|
"aria-hidden": "true",
|
|
14387
14474
|
children: [/* @__PURE__ */ h("path", {
|
|
14388
14475
|
className: "select-gauge__track",
|
|
14389
|
-
d:
|
|
14476
|
+
d: Sd(m, _, p, 0, 1),
|
|
14390
14477
|
fill: "none",
|
|
14391
14478
|
strokeWidth: d,
|
|
14392
14479
|
strokeLinecap: "round"
|
|
14393
14480
|
}), u > 0 && /* @__PURE__ */ h("path", {
|
|
14394
14481
|
className: "select-gauge__arc",
|
|
14395
|
-
d:
|
|
14482
|
+
d: Sd(m, _, p, 0, u / 100),
|
|
14396
14483
|
fill: "none",
|
|
14397
14484
|
stroke: a ?? "var(--select-chart-1)",
|
|
14398
14485
|
strokeWidth: d,
|
|
@@ -14415,7 +14502,7 @@ var gd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
14415
14502
|
children: n
|
|
14416
14503
|
})]
|
|
14417
14504
|
});
|
|
14418
|
-
}),
|
|
14505
|
+
}), Td = r(function({ columns: e, rows: n, format: r = Z, formatValue: i, color: a = "var(--select-chart-1)", showValues: o = !0, min: s, max: c, cellSize: l = 40, maxCellSize: u = 96, cellHeight: d = 30, className: f, ...p }, m) {
|
|
14419
14506
|
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 = {
|
|
14420
14507
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
14421
14508
|
width: "fit-content",
|
|
@@ -14475,12 +14562,12 @@ var gd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
14475
14562
|
}, c);
|
|
14476
14563
|
})] }, n.label))
|
|
14477
14564
|
]
|
|
14478
|
-
}), /* @__PURE__ */ h(
|
|
14565
|
+
}), /* @__PURE__ */ h(Zu, {
|
|
14479
14566
|
tip: _.tip,
|
|
14480
14567
|
onDismiss: _.hide
|
|
14481
14568
|
})]
|
|
14482
14569
|
});
|
|
14483
|
-
}),
|
|
14570
|
+
}), Ed = 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) {
|
|
14484
14571
|
let u = Q(), d = Math.max(0, ...e.map((e) => e.value ?? 0)), f = Math.max(0, ...e.map((e) => e.col)) + 1, p = Math.max(0, ...e.map((e) => e.row)) + 1, m = n + r, _ = {
|
|
14485
14572
|
width: f * m - r,
|
|
14486
14573
|
height: p * m - r
|
|
@@ -14542,13 +14629,13 @@ var gd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
14542
14629
|
/* @__PURE__ */ h("span", { children: "mais" })
|
|
14543
14630
|
]
|
|
14544
14631
|
}),
|
|
14545
|
-
/* @__PURE__ */ h(
|
|
14632
|
+
/* @__PURE__ */ h(Zu, {
|
|
14546
14633
|
tip: u.tip,
|
|
14547
14634
|
onDismiss: u.hide
|
|
14548
14635
|
})
|
|
14549
14636
|
]
|
|
14550
14637
|
});
|
|
14551
|
-
}),
|
|
14638
|
+
}), Dd = [
|
|
14552
14639
|
{
|
|
14553
14640
|
key: "RR",
|
|
14554
14641
|
label: "RR",
|
|
@@ -14741,7 +14828,7 @@ var gd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
14741
14828
|
];
|
|
14742
14829
|
//#endregion
|
|
14743
14830
|
//#region src/SelectProgressList.tsx
|
|
14744
|
-
function
|
|
14831
|
+
function Od({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1, max: a }) {
|
|
14745
14832
|
if (e.length === 0) return /* @__PURE__ */ h("div", {
|
|
14746
14833
|
className: "select-progresslist__empty",
|
|
14747
14834
|
children: r
|
|
@@ -14792,7 +14879,7 @@ function xd({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
14792
14879
|
}
|
|
14793
14880
|
//#endregion
|
|
14794
14881
|
//#region src/SelectRadialBar.tsx
|
|
14795
|
-
var
|
|
14882
|
+
var kd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Ad = 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) {
|
|
14796
14883
|
let d = s(), f = t / 2, p = t / 2;
|
|
14797
14884
|
return /* @__PURE__ */ g("div", {
|
|
14798
14885
|
ref: u,
|
|
@@ -14832,7 +14919,7 @@ var Sd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Cd = r(f
|
|
|
14832
14919
|
}) }), e.map((e, i) => {
|
|
14833
14920
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
14834
14921
|
if (a <= n / 2) return null;
|
|
14835
|
-
let o =
|
|
14922
|
+
let o = kd(e.value);
|
|
14836
14923
|
return /* @__PURE__ */ g("g", {
|
|
14837
14924
|
transform: `rotate(-90 ${f} ${p})`,
|
|
14838
14925
|
children: [/* @__PURE__ */ h("circle", {
|
|
@@ -14861,7 +14948,7 @@ var Sd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Cd = r(f
|
|
|
14861
14948
|
className: "select-radial__center",
|
|
14862
14949
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ h("strong", {
|
|
14863
14950
|
className: "select-radial__value",
|
|
14864
|
-
children: i(
|
|
14951
|
+
children: i(kd(e[0].value))
|
|
14865
14952
|
}) : null)
|
|
14866
14953
|
})]
|
|
14867
14954
|
}), o && /* @__PURE__ */ h("ul", {
|
|
@@ -14879,15 +14966,15 @@ var Sd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Cd = r(f
|
|
|
14879
14966
|
}),
|
|
14880
14967
|
/* @__PURE__ */ h("span", {
|
|
14881
14968
|
className: "select-donut__legval",
|
|
14882
|
-
children: i(
|
|
14969
|
+
children: i(kd(e.value))
|
|
14883
14970
|
})
|
|
14884
14971
|
]
|
|
14885
14972
|
}, t))
|
|
14886
14973
|
})]
|
|
14887
14974
|
});
|
|
14888
|
-
}),
|
|
14889
|
-
function
|
|
14890
|
-
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } =
|
|
14975
|
+
}), jd = 6.1, Md = 12, Nd = 56, Pd = .4;
|
|
14976
|
+
function Fd({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
|
|
14977
|
+
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Lu(d), m = Q(), _ = s(), v = c && c > 0 ? c : zu(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(Nd, y * jd + Md), Math.max(Nd, p * Pd)), x = o ?? b, S = Math.max(3, Math.floor((x - Md) / jd)), 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));
|
|
14891
14978
|
return /* @__PURE__ */ g("div", {
|
|
14892
14979
|
...u,
|
|
14893
14980
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -14916,7 +15003,7 @@ function Od({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
14916
15003
|
})]
|
|
14917
15004
|
}, t);
|
|
14918
15005
|
}) }),
|
|
14919
|
-
|
|
15006
|
+
Bu(v).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
14920
15007
|
x1: O(e),
|
|
14921
15008
|
x2: O(e),
|
|
14922
15009
|
y1: 6,
|
|
@@ -14962,7 +15049,7 @@ function Od({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
14962
15049
|
onMouseLeave: m.hide
|
|
14963
15050
|
}),
|
|
14964
15051
|
/* @__PURE__ */ g("text", {
|
|
14965
|
-
x: x -
|
|
15052
|
+
x: x - Md / 2,
|
|
14966
15053
|
y: n,
|
|
14967
15054
|
className: "select-chart__ylabel",
|
|
14968
15055
|
dominantBaseline: "middle",
|
|
@@ -14977,8 +15064,8 @@ function Od({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
14977
15064
|
}
|
|
14978
15065
|
//#endregion
|
|
14979
15066
|
//#region src/SelectWaterfall.tsx
|
|
14980
|
-
function
|
|
14981
|
-
let { ref: a, width: o } =
|
|
15067
|
+
function Id({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
15068
|
+
let { ref: a, width: o } = Lu(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
14982
15069
|
if (e.total) return u = e.value, {
|
|
14983
15070
|
...e,
|
|
14984
15071
|
start: 0,
|
|
@@ -14990,7 +15077,7 @@ function kd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
14990
15077
|
start: t,
|
|
14991
15078
|
end: u
|
|
14992
15079
|
};
|
|
14993
|
-
}), f =
|
|
15080
|
+
}), f = zu(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = Yu, m = Math.max(0, o - p.left - p.right), _ = t - p.top - p.bottom, v = p.top + _, y = e.length, b = y ? m / y : 0, x = Math.min(b * .6, 46), S = (e) => v - e / f * _, C = {
|
|
14994
15081
|
total: "var(--select-chart-1)",
|
|
14995
15082
|
inc: "var(--select-chart-4)",
|
|
14996
15083
|
dec: "var(--select-chart-3)"
|
|
@@ -15024,7 +15111,7 @@ function kd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15024
15111
|
stopOpacity: .62
|
|
15025
15112
|
})]
|
|
15026
15113
|
}, e)) }),
|
|
15027
|
-
|
|
15114
|
+
Bu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
15028
15115
|
x1: p.left,
|
|
15029
15116
|
x2: o - p.right,
|
|
15030
15117
|
y1: S(e),
|
|
@@ -15092,7 +15179,7 @@ function kd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15092
15179
|
}
|
|
15093
15180
|
//#endregion
|
|
15094
15181
|
//#region src/SelectBullet.tsx
|
|
15095
|
-
var
|
|
15182
|
+
var Ld = (e) => Math.max(0, Math.min(100, e)), Rd = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
15096
15183
|
return /* @__PURE__ */ h("div", {
|
|
15097
15184
|
ref: i,
|
|
15098
15185
|
...r,
|
|
@@ -15130,12 +15217,12 @@ var Ad = (e) => Math.max(0, Math.min(100, e)), jd = r(function({ items: e, forma
|
|
|
15130
15217
|
children: [/* @__PURE__ */ h("span", {
|
|
15131
15218
|
className: "select-bullet__fill",
|
|
15132
15219
|
style: {
|
|
15133
|
-
width: `${
|
|
15220
|
+
width: `${Ld(e.value / i * 100)}%`,
|
|
15134
15221
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
15135
15222
|
}
|
|
15136
15223
|
}), /* @__PURE__ */ h("span", {
|
|
15137
15224
|
className: "select-bullet__tick",
|
|
15138
|
-
style: { left: `${
|
|
15225
|
+
style: { left: `${Ld(e.target / i * 100)}%` }
|
|
15139
15226
|
})]
|
|
15140
15227
|
})]
|
|
15141
15228
|
}, `${e.label}-${n}`);
|
|
@@ -15144,7 +15231,7 @@ var Ad = (e) => Math.max(0, Math.min(100, e)), jd = r(function({ items: e, forma
|
|
|
15144
15231
|
});
|
|
15145
15232
|
//#endregion
|
|
15146
15233
|
//#region src/SelectTreemap.tsx
|
|
15147
|
-
function
|
|
15234
|
+
function zd(e, t, n) {
|
|
15148
15235
|
let r = [], i = (e, t) => {
|
|
15149
15236
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
15150
15237
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -15195,8 +15282,8 @@ function Md(e, t, n) {
|
|
|
15195
15282
|
};
|
|
15196
15283
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
15197
15284
|
}
|
|
15198
|
-
function
|
|
15199
|
-
let { ref: a, width: o } =
|
|
15285
|
+
function Bd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
15286
|
+
let { ref: a, width: o } = Lu(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? zd(u.map((t) => e[t].value), o, t) : [];
|
|
15200
15287
|
return /* @__PURE__ */ g("div", {
|
|
15201
15288
|
...i,
|
|
15202
15289
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -15266,8 +15353,8 @@ function Nd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15266
15353
|
}
|
|
15267
15354
|
//#endregion
|
|
15268
15355
|
//#region src/SelectScatter.tsx
|
|
15269
|
-
function
|
|
15270
|
-
let { ref: l, width: u } =
|
|
15356
|
+
function Vd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
15357
|
+
let { ref: l, width: u } = Lu(t), d = Q(), f = e.flatMap((e) => e.points), p = zu(i ?? Math.max(0, ...f.map((e) => e.x))), m = zu(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = Yu, y = Math.max(0, u - v.left - v.right), b = t - v.top - v.bottom, x = v.top + b, S = (e) => v.left + e / p * y, C = (e) => x - e / m * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(_) * (o - 4) : 4.5;
|
|
15271
15358
|
return /* @__PURE__ */ g("div", {
|
|
15272
15359
|
...c,
|
|
15273
15360
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -15277,7 +15364,7 @@ function Pd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
15277
15364
|
height: t,
|
|
15278
15365
|
className: "select-chart",
|
|
15279
15366
|
children: [
|
|
15280
|
-
|
|
15367
|
+
Bu(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
15281
15368
|
x1: v.left,
|
|
15282
15369
|
x2: u - v.right,
|
|
15283
15370
|
y1: C(e),
|
|
@@ -15291,7 +15378,7 @@ function Pd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
15291
15378
|
textAnchor: "end",
|
|
15292
15379
|
children: r(e)
|
|
15293
15380
|
})] }, `y${t}`)),
|
|
15294
|
-
|
|
15381
|
+
Bu(p).map((e, r, i) => /* @__PURE__ */ h("text", {
|
|
15295
15382
|
x: S(e),
|
|
15296
15383
|
y: t - v.bottom + 16,
|
|
15297
15384
|
className: "select-chart__xlabel",
|
|
@@ -15338,8 +15425,8 @@ function Pd({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
15338
15425
|
}
|
|
15339
15426
|
//#endregion
|
|
15340
15427
|
//#region src/SelectRadar.tsx
|
|
15341
|
-
var
|
|
15342
|
-
let d = Q(), f = s(), p = e.length, m = n / 2, _ = n / 2, v = n / 2 - 30, y = r ??
|
|
15428
|
+
var Hd = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
|
|
15429
|
+
let d = Q(), f = s(), p = e.length, m = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? zu(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [m + t * Math.cos(b(e)), _ + t * Math.sin(b(e))], S = (e) => e.map((e, t) => `${t === 0 ? "M" : "L"}${x(t, e).map((e) => e.toFixed(2)).join(",")}`).join(" ") + " Z";
|
|
15343
15430
|
return /* @__PURE__ */ g("div", {
|
|
15344
15431
|
ref: u,
|
|
15345
15432
|
...l,
|
|
@@ -15448,8 +15535,8 @@ var Fd = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
15448
15535
|
});
|
|
15449
15536
|
//#endregion
|
|
15450
15537
|
//#region src/SelectSankey.tsx
|
|
15451
|
-
function
|
|
15452
|
-
let { ref: s, width: c } =
|
|
15538
|
+
function Ud({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
15539
|
+
let { ref: s, width: c } = Lu(t), l = Q(), u = [], d = [];
|
|
15453
15540
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
15454
15541
|
let f = e.reduce((e, t) => e + t.value, 0) || 1, p = (t, n) => e.filter((e) => e[n] === t).reduce((e, t) => e + t.value, 0), m = t - 12, _ = Math.max(u.length, d.length), v = (m - i * Math.max(0, _ - 1)) / f, y = (e, t, n) => {
|
|
15455
15542
|
let r = /* @__PURE__ */ new Map(), a = 6;
|
|
@@ -15533,8 +15620,8 @@ function Id({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
15533
15620
|
}
|
|
15534
15621
|
//#endregion
|
|
15535
15622
|
//#region src/SelectCandlestick.tsx
|
|
15536
|
-
function
|
|
15537
|
-
let { ref: s, width: c } =
|
|
15623
|
+
function Wd({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
15624
|
+
let { ref: s, width: c } = Lu(t), l = Q(), u = Yu, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, m = Math.max(1, ...e.map((e) => e.high)), _ = Math.min(m, ...e.map((e) => e.low)), v = (m - _) * .08 || 1, y = _ - v, b = m + v, x = (e) => p - (e - y) / (b - y) * f, S = e.length, C = S ? d / S : 0, w = Math.min(C * .5, 18), T = Array.from({ length: 5 }, (e, t) => y + (b - y) * t / 4);
|
|
15538
15625
|
return /* @__PURE__ */ g("div", {
|
|
15539
15626
|
...o,
|
|
15540
15627
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -15623,8 +15710,8 @@ function Ld({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
15623
15710
|
}
|
|
15624
15711
|
//#endregion
|
|
15625
15712
|
//#region src/SelectBoxPlot.tsx
|
|
15626
|
-
function
|
|
15627
|
-
let { ref: a, width: o } =
|
|
15713
|
+
function Gd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
15714
|
+
let { ref: a, width: o } = Lu(t), s = Q(), c = Yu, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = zu(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, m = e.length, _ = m ? l / m : 0, v = Math.min(_ * .5, 40);
|
|
15628
15715
|
return /* @__PURE__ */ g("div", {
|
|
15629
15716
|
...i,
|
|
15630
15717
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -15633,7 +15720,7 @@ function Rd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15633
15720
|
width: o,
|
|
15634
15721
|
height: t,
|
|
15635
15722
|
className: "select-chart",
|
|
15636
|
-
children: [
|
|
15723
|
+
children: [Bu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
15637
15724
|
x1: c.left,
|
|
15638
15725
|
x2: o - c.right,
|
|
15639
15726
|
y1: p(e),
|
|
@@ -15743,8 +15830,8 @@ function Rd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15743
15830
|
}
|
|
15744
15831
|
//#endregion
|
|
15745
15832
|
//#region src/SelectRangeBar.tsx
|
|
15746
|
-
function
|
|
15747
|
-
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } =
|
|
15833
|
+
function Kd({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
15834
|
+
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } = Lu(l), f = Q(), p = s(), m = n ?? Math.min(0, ...e.map((e) => e.start)), _ = (r ?? Math.max(1, ...e.map((e) => e.end))) - m || 1, v = a, y = Math.max(0, d - v - 14), b = l - 6 - 26, x = e.length ? b / e.length : 0, S = Math.min(x * .6, 22), C = (e) => v + (e - m) / _ * y, w = Array.from({ length: 5 }, (e, t) => m + _ * t / 4);
|
|
15748
15835
|
return /* @__PURE__ */ g("div", {
|
|
15749
15836
|
...c,
|
|
15750
15837
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -15824,7 +15911,7 @@ function zd({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
15824
15911
|
}
|
|
15825
15912
|
//#endregion
|
|
15826
15913
|
//#region src/SelectCalendarHeatmap.tsx
|
|
15827
|
-
var
|
|
15914
|
+
var qd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
15828
15915
|
"Seg",
|
|
15829
15916
|
"",
|
|
15830
15917
|
"Qua",
|
|
@@ -15897,8 +15984,8 @@ var Bd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
15897
15984
|
]
|
|
15898
15985
|
}), /* @__PURE__ */ h($, { tip: p.tip })]
|
|
15899
15986
|
});
|
|
15900
|
-
}),
|
|
15901
|
-
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p =
|
|
15987
|
+
}), Jd = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
15988
|
+
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = zu(Math.max(1, ...e.map((e) => e.value))), m = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, _ = 360 / f;
|
|
15902
15989
|
return /* @__PURE__ */ g("div", {
|
|
15903
15990
|
ref: s,
|
|
15904
15991
|
...o,
|
|
@@ -15928,7 +16015,7 @@ var Bd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
15928
16015
|
}, t)), e.map((e, t) => {
|
|
15929
16016
|
let r = t * _, i = (t + 1) * _ - 1.5, a = e.color ?? X(t), o = Math.max(2, m(e.value)), s = ((r + i) / 2 - 90) * (Math.PI / 180), d = l + o * Math.cos(s), f = u + o * Math.sin(s);
|
|
15930
16017
|
return /* @__PURE__ */ h("path", {
|
|
15931
|
-
d:
|
|
16018
|
+
d: qu(l, u, o, 0, r, i),
|
|
15932
16019
|
fill: a,
|
|
15933
16020
|
fillOpacity: .8,
|
|
15934
16021
|
className: "select-chart__seg",
|
|
@@ -15971,13 +16058,13 @@ var Bd = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
15971
16058
|
});
|
|
15972
16059
|
//#endregion
|
|
15973
16060
|
//#region src/SelectSlope.tsx
|
|
15974
|
-
function
|
|
15975
|
-
let { ref: s, width: c } =
|
|
16061
|
+
function Yd({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
16062
|
+
let { ref: s, width: c } = Lu(r), l = Q(), u = {
|
|
15976
16063
|
top: 24,
|
|
15977
16064
|
right: 64,
|
|
15978
16065
|
bottom: 12,
|
|
15979
16066
|
left: 132
|
|
15980
|
-
}, d =
|
|
16067
|
+
}, d = zu(Math.max(1, ...e.flatMap((e) => [e.left, e.right]))), f = r - u.top - u.bottom, p = (e) => u.top + f - e / d * f, m = u.left, _ = c - u.right;
|
|
15981
16068
|
return /* @__PURE__ */ g("div", {
|
|
15982
16069
|
...o,
|
|
15983
16070
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -16093,8 +16180,8 @@ function Hd({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
16093
16180
|
}
|
|
16094
16181
|
//#endregion
|
|
16095
16182
|
//#region src/SelectDumbbell.tsx
|
|
16096
|
-
function
|
|
16097
|
-
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } =
|
|
16183
|
+
function Xd({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
16184
|
+
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Lu(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", m = zu(Math.max(1, ...e.flatMap((e) => [e.from, e.to]))), _ = a, v = Math.max(0, u - _ - 14), y = c - 6 - 26, b = e.length ? y / e.length : 0, x = (e) => _ + e / m * v;
|
|
16098
16185
|
return /* @__PURE__ */ g("div", {
|
|
16099
16186
|
...s,
|
|
16100
16187
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -16103,7 +16190,7 @@ function Ud({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
16103
16190
|
width: u,
|
|
16104
16191
|
height: c,
|
|
16105
16192
|
className: "select-chart",
|
|
16106
|
-
children: [
|
|
16193
|
+
children: [Bu(m).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
16107
16194
|
x1: x(e),
|
|
16108
16195
|
x2: x(e),
|
|
16109
16196
|
y1: 6,
|
|
@@ -16186,8 +16273,8 @@ function Ud({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
16186
16273
|
}
|
|
16187
16274
|
//#endregion
|
|
16188
16275
|
//#region src/SelectMarimekko.tsx
|
|
16189
|
-
function
|
|
16190
|
-
let { ref: o, width: s } =
|
|
16276
|
+
function Zd({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
16277
|
+
let { ref: o, width: s } = Lu(t), c = Q(), l = {
|
|
16191
16278
|
top: 6,
|
|
16192
16279
|
right: 6,
|
|
16193
16280
|
bottom: 24,
|
|
@@ -16266,7 +16353,7 @@ function Wd({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
16266
16353
|
}
|
|
16267
16354
|
//#endregion
|
|
16268
16355
|
//#region src/SelectGaugeBands.tsx
|
|
16269
|
-
var
|
|
16356
|
+
var Qd = 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) {
|
|
16270
16357
|
let u = i ?? Math.max(10, Math.round(r * .08)), d = u / 2 + 2, f = r / 2 - d, p = r / 2, m = r / 2, _ = m + d, v = (e) => Math.max(0, Math.min(t, e)), y = (e) => {
|
|
16271
16358
|
let t = Math.PI + e * Math.PI;
|
|
16272
16359
|
return [p + f * Math.cos(t), m + f * Math.sin(t)];
|
|
@@ -16338,8 +16425,8 @@ var Gd = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
16338
16425
|
});
|
|
16339
16426
|
//#endregion
|
|
16340
16427
|
//#region src/SelectStreamGraph.tsx
|
|
16341
|
-
function
|
|
16342
|
-
let { ref: o, width: c } =
|
|
16428
|
+
function $d({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
16429
|
+
let { ref: o, width: c } = Lu(n), l = Q(), u = s(), [d, p] = f(null), m = t.length, _ = {
|
|
16343
16430
|
top: 14,
|
|
16344
16431
|
right: 14,
|
|
16345
16432
|
bottom: 28,
|
|
@@ -16382,7 +16469,7 @@ function Kd({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
16382
16469
|
})]
|
|
16383
16470
|
}, t)) }),
|
|
16384
16471
|
w.map((e, t) => /* @__PURE__ */ h("path", {
|
|
16385
|
-
d:
|
|
16472
|
+
d: Gu(e.upper, e.lower),
|
|
16386
16473
|
fill: `url(#${u}-st${t})`,
|
|
16387
16474
|
className: "select-chart__area"
|
|
16388
16475
|
}, t)),
|
|
@@ -16429,7 +16516,7 @@ function Kd({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
16429
16516
|
}
|
|
16430
16517
|
//#endregion
|
|
16431
16518
|
//#region src/SelectSunburst.tsx
|
|
16432
|
-
var
|
|
16519
|
+
var ef = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
16433
16520
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
16434
16521
|
var t;
|
|
16435
16522
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -16455,7 +16542,7 @@ var qd = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
16455
16542
|
_ += r;
|
|
16456
16543
|
let a = _ / m * 360, o = e.color ?? X(t), v = i;
|
|
16457
16544
|
return /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("path", {
|
|
16458
|
-
d:
|
|
16545
|
+
d: qu(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
16459
16546
|
fill: o,
|
|
16460
16547
|
className: "select-chart__seg",
|
|
16461
16548
|
onMouseEnter: () => s.show({
|
|
@@ -16475,7 +16562,7 @@ var qd = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
16475
16562
|
v += t.value / m * 360;
|
|
16476
16563
|
let f = v, p = t.color ?? o, g = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
16477
16564
|
return /* @__PURE__ */ h("path", {
|
|
16478
|
-
d:
|
|
16565
|
+
d: qu(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
16479
16566
|
fill: p,
|
|
16480
16567
|
fillOpacity: g,
|
|
16481
16568
|
className: "select-chart__seg",
|
|
@@ -16522,8 +16609,8 @@ var qd = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
16522
16609
|
});
|
|
16523
16610
|
//#endregion
|
|
16524
16611
|
//#region src/SelectViolin.tsx
|
|
16525
|
-
function
|
|
16526
|
-
let { ref: a, width: o } =
|
|
16612
|
+
function tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
16613
|
+
let { ref: a, width: o } = Lu(t), s = Q(), c = Yu, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = zu(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, m = e.length, _ = m ? l / m : 0, v = Math.min(_ * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
|
|
16527
16614
|
return /* @__PURE__ */ g("div", {
|
|
16528
16615
|
...i,
|
|
16529
16616
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -16532,7 +16619,7 @@ function Jd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
16532
16619
|
width: o,
|
|
16533
16620
|
height: t,
|
|
16534
16621
|
className: "select-chart",
|
|
16535
|
-
children: [
|
|
16622
|
+
children: [Bu(f).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
16536
16623
|
x1: c.left,
|
|
16537
16624
|
x2: o - c.right,
|
|
16538
16625
|
y1: p(e),
|
|
@@ -16549,7 +16636,7 @@ function Jd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
16549
16636
|
let i = c.left + _ * r + _ / 2, a = e.color ?? X(r), o = e.bins.length, l = (t) => p(e.min + (e.max - e.min) * t / Math.max(1, o - 1)), d = (t) => e.bins[t] / y * v, f = [], m = [];
|
|
16550
16637
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
16551
16638
|
for (let e = 0; e < o; e++) m.push([i - d(e), l(e)]);
|
|
16552
|
-
let b = `${
|
|
16639
|
+
let b = `${Hu(f)} ${Hu(m).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
16553
16640
|
return /* @__PURE__ */ g("g", { children: [
|
|
16554
16641
|
/* @__PURE__ */ h("path", {
|
|
16555
16642
|
d: b,
|
|
@@ -16610,7 +16697,7 @@ function Jd({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
16610
16697
|
}
|
|
16611
16698
|
//#endregion
|
|
16612
16699
|
//#region src/SelectChord.tsx
|
|
16613
|
-
var
|
|
16700
|
+
var nf = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
16614
16701
|
let c = Q(), l = t.length, u = n / 2, d = n / 2, f = n / 2 - 22, p = f - 9, m = e.map((e) => e.reduce((e, t) => e + t, 0)), _ = m.reduce((e, t) => e + t, 0) || 1, v = (2 * Math.PI - l * i) / _, y = [], b = 0;
|
|
16615
16702
|
for (let e = 0; e < l; e++) {
|
|
16616
16703
|
let t = b, n = b + m[e] * v;
|
|
@@ -16677,7 +16764,7 @@ var Yd = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
16677
16764
|
}, n)), y.map((e, n) => {
|
|
16678
16765
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
16679
16766
|
return /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("path", {
|
|
16680
|
-
d:
|
|
16767
|
+
d: qu(u, d, f, p, w(e.a0), w(e.a1)),
|
|
16681
16768
|
fill: X(n),
|
|
16682
16769
|
className: "select-chord__arc"
|
|
16683
16770
|
}), /* @__PURE__ */ h("text", {
|
|
@@ -16695,8 +16782,8 @@ var Yd = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
16695
16782
|
});
|
|
16696
16783
|
//#endregion
|
|
16697
16784
|
//#region src/SelectHexbin.tsx
|
|
16698
|
-
function
|
|
16699
|
-
let { ref: l, width: u } =
|
|
16785
|
+
function rf({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
16786
|
+
let { ref: l, width: u } = Lu(t), d = Q(), f = Math.max(0, u - 24), p = t - 24, m = i ?? Math.max(1, ...e.map((e) => e.x)), _ = a ?? Math.max(1, ...e.map((e) => e.y)), v = (e) => 12 + e / m * f, y = (e) => 12 + p - e / _ * p, b = n, x = Math.sqrt(3), S = (e, t) => {
|
|
16700
16787
|
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);
|
|
16701
16788
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
16702
16789
|
}, C = (e, t) => [b * x * (e + t / 2), 3 / 2 * b * t], w = (e, t) => {
|
|
@@ -16747,7 +16834,7 @@ function Xd({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
16747
16834
|
}
|
|
16748
16835
|
//#endregion
|
|
16749
16836
|
//#region src/SelectWordCloud.tsx
|
|
16750
|
-
var
|
|
16837
|
+
var af = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
16751
16838
|
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);
|
|
16752
16839
|
return /* @__PURE__ */ h("div", {
|
|
16753
16840
|
ref: a,
|
|
@@ -16764,7 +16851,7 @@ var Zd = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
16764
16851
|
children: e.text
|
|
16765
16852
|
}, `${e.text}-${t}`))
|
|
16766
16853
|
});
|
|
16767
|
-
}),
|
|
16854
|
+
}), of = [
|
|
16768
16855
|
[
|
|
16769
16856
|
-59.6,
|
|
16770
16857
|
-80,
|
|
@@ -27159,24 +27246,24 @@ var Zd = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
27159
27246
|
-27.1,
|
|
27160
27247
|
83.5
|
|
27161
27248
|
]
|
|
27162
|
-
],
|
|
27163
|
-
function
|
|
27164
|
-
let n = e *
|
|
27249
|
+
], sf = Math.PI / 180;
|
|
27250
|
+
function cf(e, t) {
|
|
27251
|
+
let n = e * sf, r = t * sf;
|
|
27165
27252
|
return [
|
|
27166
27253
|
Math.cos(n) * Math.sin(r),
|
|
27167
27254
|
Math.sin(n),
|
|
27168
27255
|
Math.cos(n) * Math.cos(r)
|
|
27169
27256
|
];
|
|
27170
27257
|
}
|
|
27171
|
-
function
|
|
27172
|
-
let a = r *
|
|
27258
|
+
function lf([e, t, n], r, i) {
|
|
27259
|
+
let a = r * sf, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * sf;
|
|
27173
27260
|
return [
|
|
27174
27261
|
o,
|
|
27175
27262
|
t * Math.cos(c) - s * Math.sin(c),
|
|
27176
27263
|
t * Math.sin(c) + s * Math.cos(c)
|
|
27177
27264
|
];
|
|
27178
27265
|
}
|
|
27179
|
-
function
|
|
27266
|
+
function uf(e, t, n) {
|
|
27180
27267
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
27181
27268
|
r = Math.max(-1, Math.min(1, r));
|
|
27182
27269
|
let i = Math.acos(r);
|
|
@@ -27188,9 +27275,9 @@ function nf(e, t, n) {
|
|
|
27188
27275
|
e[2] * o + t[2] * s
|
|
27189
27276
|
];
|
|
27190
27277
|
}
|
|
27191
|
-
var
|
|
27278
|
+
var df = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, ff = r(function({ points: e = [], arcs: t = [], size: n = 320, tilt: r = -18, spin: i = !0, speed: a = 7, color: c = "var(--select-chart-1)", format: l = Z, legend: p = !0, map: m = !0, fluid: _ = !1, onZoomChange: v, className: y, ...b }, x) {
|
|
27192
27279
|
var S, C;
|
|
27193
|
-
let w = s(), T = Q(), E = d(null), D =
|
|
27280
|
+
let w = s(), T = Q(), E = d(null), D = Ru(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = d(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = d({
|
|
27194
27281
|
lng: -O,
|
|
27195
27282
|
lat: r
|
|
27196
27283
|
}), j = d({
|
|
@@ -27249,7 +27336,7 @@ var rf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27249
27336
|
var t, n;
|
|
27250
27337
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ee(!1), H());
|
|
27251
27338
|
}, G = (D / 2 - 6) * M.current, K = D / 2, q = D / 2, ae = (e) => {
|
|
27252
|
-
let t =
|
|
27339
|
+
let t = lf(e, A.current.lng, A.current.lat);
|
|
27253
27340
|
return {
|
|
27254
27341
|
x: K + G * t[0],
|
|
27255
27342
|
y: q - G * t[1],
|
|
@@ -27259,25 +27346,25 @@ var rf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27259
27346
|
let e = [];
|
|
27260
27347
|
for (let t = -180; t < 180; t += 30) {
|
|
27261
27348
|
let n = [];
|
|
27262
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
27349
|
+
for (let e = 0; e <= 48; e++) n.push(cf(-90 + 180 * e / 48, t));
|
|
27263
27350
|
e.push(n);
|
|
27264
27351
|
}
|
|
27265
27352
|
for (let t = -60; t <= 60; t += 30) {
|
|
27266
27353
|
let n = [];
|
|
27267
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
27354
|
+
for (let e = 0; e <= 48; e++) n.push(cf(t, -180 + 360 * e / 48));
|
|
27268
27355
|
e.push(n);
|
|
27269
27356
|
}
|
|
27270
27357
|
return e;
|
|
27271
|
-
}, []), se = u(() =>
|
|
27358
|
+
}, []), se = u(() => of.map((e) => {
|
|
27272
27359
|
let t = [];
|
|
27273
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
27360
|
+
for (let n = 0; n < e.length; n += 2) t.push(cf(e[n + 1], e[n]));
|
|
27274
27361
|
return t;
|
|
27275
27362
|
}), []), J = (e) => ({
|
|
27276
27363
|
x: K + G * e[0],
|
|
27277
27364
|
y: q - G * e[1]
|
|
27278
27365
|
}), ce = "", le = "";
|
|
27279
27366
|
if (m) for (let e of se) {
|
|
27280
|
-
let t = e.map((e) =>
|
|
27367
|
+
let t = e.map((e) => lf(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
27281
27368
|
for (let e of t) if (e[2] > 0) {
|
|
27282
27369
|
let t = J(e);
|
|
27283
27370
|
le += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -27325,7 +27412,7 @@ var rf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27325
27412
|
}
|
|
27326
27413
|
return t;
|
|
27327
27414
|
}, de = Math.max(1, ...e.map((e) => e.value ?? 0)), fe = e.map((e, t) => {
|
|
27328
|
-
let n = ae(
|
|
27415
|
+
let n = ae(cf(e.lat, e.lng));
|
|
27329
27416
|
return {
|
|
27330
27417
|
...e,
|
|
27331
27418
|
i: t,
|
|
@@ -27335,20 +27422,20 @@ var rf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27335
27422
|
col: e.color ?? c
|
|
27336
27423
|
};
|
|
27337
27424
|
}), pe = te == null ? null : e[te], me = t.map((e, t) => {
|
|
27338
|
-
let n =
|
|
27425
|
+
let n = cf(e.from.lat, e.from.lng), r = cf(e.to.lat, e.to.lng), i = "", a = !1;
|
|
27339
27426
|
for (let e = 0; e <= 40; e++) {
|
|
27340
|
-
let t = e / 40, o =
|
|
27427
|
+
let t = e / 40, o = uf(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = lf(o, A.current.lng, A.current.lat), l = ae([
|
|
27341
27428
|
o[0] * s,
|
|
27342
27429
|
o[1] * s,
|
|
27343
27430
|
o[2] * s
|
|
27344
27431
|
]);
|
|
27345
27432
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
27346
27433
|
}
|
|
27347
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
27434
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = uf(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = lf(s, A.current.lng, A.current.lat), d = ae([
|
|
27348
27435
|
s[0] * l,
|
|
27349
27436
|
s[1] * l,
|
|
27350
27437
|
s[2] * l
|
|
27351
|
-
]), f = pe != null && (
|
|
27438
|
+
]), f = pe != null && (df(e.from, pe) || df(e.to, pe));
|
|
27352
27439
|
return {
|
|
27353
27440
|
d: i,
|
|
27354
27441
|
col: e.color ?? c,
|
|
@@ -27622,8 +27709,8 @@ var rf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27622
27709
|
});
|
|
27623
27710
|
//#endregion
|
|
27624
27711
|
//#region src/SelectTicker.tsx
|
|
27625
|
-
function
|
|
27626
|
-
let i = d(null), a = d(null), s = d(null), c =
|
|
27712
|
+
function pf({ children: e, speed: t = 28, className: n, ...r }) {
|
|
27713
|
+
let i = d(null), a = d(null), s = d(null), c = Ru(i, 0), l = Ru(s, 0), u = c > 0 && l > c + 1, f = d(0), p = d(null), m = d(!1);
|
|
27627
27714
|
o(() => {
|
|
27628
27715
|
var e, n;
|
|
27629
27716
|
let r = a.current;
|
|
@@ -27684,12 +27771,12 @@ function of({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
27684
27771
|
}
|
|
27685
27772
|
//#endregion
|
|
27686
27773
|
//#region src/SelectPareto.tsx
|
|
27687
|
-
function
|
|
27774
|
+
function mf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
27688
27775
|
var a;
|
|
27689
|
-
let { ref: o, width: c } =
|
|
27690
|
-
...
|
|
27776
|
+
let { ref: o, width: c } = Lu(t), l = Q(), u = s(), [d, p] = f(null), m = {
|
|
27777
|
+
...Yu,
|
|
27691
27778
|
right: 44
|
|
27692
|
-
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - m.left - m.right), C = t - m.top - m.bottom, w =
|
|
27779
|
+
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - m.left - m.right), C = t - m.top - m.bottom, w = zu(((a = _[0]) == null ? void 0 : a.value) ?? 1), T = v > 0 ? S / v : 0, E = Math.min(T * .62, 46), D = m.top + C, O = (e) => D - e / w * C, k = (e) => D - e / 100 * C, A = (e) => m.left + T * e + T / 2, j = x.map((e, t) => [A(t), k(e)]), M = X(0), N = X(1);
|
|
27693
27780
|
return /* @__PURE__ */ g("div", {
|
|
27694
27781
|
...i,
|
|
27695
27782
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -27718,7 +27805,7 @@ function sf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
27718
27805
|
stopOpacity: .55
|
|
27719
27806
|
})]
|
|
27720
27807
|
}) }),
|
|
27721
|
-
|
|
27808
|
+
Bu(w).map((e, t) => /* @__PURE__ */ g("g", { children: [/* @__PURE__ */ h("line", {
|
|
27722
27809
|
x1: m.left,
|
|
27723
27810
|
x2: c - m.right,
|
|
27724
27811
|
y1: O(e),
|
|
@@ -27782,7 +27869,7 @@ function sf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
27782
27869
|
}, t);
|
|
27783
27870
|
}),
|
|
27784
27871
|
/* @__PURE__ */ h("path", {
|
|
27785
|
-
d:
|
|
27872
|
+
d: Uu(j),
|
|
27786
27873
|
fill: "none",
|
|
27787
27874
|
stroke: N,
|
|
27788
27875
|
strokeWidth: 2,
|
|
@@ -27810,7 +27897,7 @@ function sf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
27810
27897
|
}
|
|
27811
27898
|
//#endregion
|
|
27812
27899
|
//#region src/SelectWaffle.tsx
|
|
27813
|
-
var
|
|
27900
|
+
var hf = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
27814
27901
|
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) => ({
|
|
27815
27902
|
i: t,
|
|
27816
27903
|
frac: e - u[t]
|
|
@@ -27859,8 +27946,8 @@ var cf = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
27859
27946
|
});
|
|
27860
27947
|
//#endregion
|
|
27861
27948
|
//#region src/SelectPyramid.tsx
|
|
27862
|
-
function
|
|
27863
|
-
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: d, width: p } =
|
|
27949
|
+
function gf({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
27950
|
+
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: d, width: p } = Lu(u), m = Q(), [_, v] = f(null), y = Math.max(1, ...e.flatMap((e) => [e.left, e.right])), b = Math.max(0, (p - s - 16) / 2), x = e.length ? (u - 26 - 8) / e.length : 0, S = Math.min(x * .6, 26), C = 8 + b, w = 8 + b + s, T = a ?? X(1), E = o ?? X(0);
|
|
27864
27951
|
return /* @__PURE__ */ g("div", {
|
|
27865
27952
|
...l,
|
|
27866
27953
|
className: `select-chart-wrap${c ? " " + c : ""}`,
|
|
@@ -27967,8 +28054,8 @@ function lf({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
27967
28054
|
}
|
|
27968
28055
|
//#endregion
|
|
27969
28056
|
//#region src/SelectBump.tsx
|
|
27970
|
-
function
|
|
27971
|
-
let { ref: o, width: s } =
|
|
28057
|
+
function _f({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
28058
|
+
let { ref: o, width: s } = Lu(n), c = Q(), [l, u] = f(null), d = {
|
|
27972
28059
|
top: 16,
|
|
27973
28060
|
right: 78,
|
|
27974
28061
|
bottom: 28,
|
|
@@ -28004,7 +28091,7 @@ function uf({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
28004
28091
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
28005
28092
|
children: [
|
|
28006
28093
|
/* @__PURE__ */ h("path", {
|
|
28007
|
-
d:
|
|
28094
|
+
d: Uu(a),
|
|
28008
28095
|
fill: "none",
|
|
28009
28096
|
stroke: i,
|
|
28010
28097
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -28052,8 +28139,8 @@ function uf({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
28052
28139
|
}
|
|
28053
28140
|
//#endregion
|
|
28054
28141
|
//#region src/SelectParallel.tsx
|
|
28055
|
-
function
|
|
28056
|
-
let { ref: o, width: s } =
|
|
28142
|
+
function vf({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
28143
|
+
let { ref: o, width: s } = Lu(n), c = Q(), [l, u] = f(null), d = {
|
|
28057
28144
|
top: 30,
|
|
28058
28145
|
right: 28,
|
|
28059
28146
|
bottom: 26,
|
|
@@ -28144,25 +28231,25 @@ function df({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
28144
28231
|
}
|
|
28145
28232
|
//#endregion
|
|
28146
28233
|
//#region src/SelectIcicle.tsx
|
|
28147
|
-
function
|
|
28148
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
28234
|
+
function yf(e) {
|
|
28235
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + yf(t), 0) : e.value ?? 0;
|
|
28149
28236
|
}
|
|
28150
|
-
function
|
|
28151
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
28237
|
+
function bf(e, t = 0) {
|
|
28238
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => bf(e, t + 1)));
|
|
28152
28239
|
}
|
|
28153
|
-
function
|
|
28154
|
-
let { ref: a, width: o } =
|
|
28240
|
+
function xf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
28241
|
+
let { ref: a, width: o } = Lu(t), s = Q(), [c, l] = f(null), u = bf(e), d = t / (u + 1), p = [], m = (e, t, n, r, i) => {
|
|
28155
28242
|
if (p.push({
|
|
28156
28243
|
node: e,
|
|
28157
28244
|
x0: t,
|
|
28158
28245
|
x1: n,
|
|
28159
28246
|
depth: r,
|
|
28160
28247
|
color: e.color ?? X(i),
|
|
28161
|
-
value:
|
|
28248
|
+
value: yf(e)
|
|
28162
28249
|
}), e.children && e.children.length) {
|
|
28163
|
-
let a = e.children.reduce((e, t) => e +
|
|
28250
|
+
let a = e.children.reduce((e, t) => e + yf(t), 0) || 1, o = t;
|
|
28164
28251
|
e.children.forEach((e, s) => {
|
|
28165
|
-
let c = (n - t) *
|
|
28252
|
+
let c = (n - t) * yf(e) / a;
|
|
28166
28253
|
m(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
28167
28254
|
});
|
|
28168
28255
|
}
|
|
@@ -28223,8 +28310,8 @@ function mf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
28223
28310
|
}
|
|
28224
28311
|
//#endregion
|
|
28225
28312
|
//#region src/SelectTree.tsx
|
|
28226
|
-
function
|
|
28227
|
-
let { ref: i, width: a } =
|
|
28313
|
+
function Sf({ data: e, height: t = 260, className: n, ...r }) {
|
|
28314
|
+
let { ref: i, width: a } = Lu(t), o = Q(), [s, c] = f(null), l = {
|
|
28228
28315
|
top: 14,
|
|
28229
28316
|
right: 96,
|
|
28230
28317
|
bottom: 14,
|
|
@@ -28301,7 +28388,7 @@ function hf({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
28301
28388
|
}
|
|
28302
28389
|
//#endregion
|
|
28303
28390
|
//#region src/SelectVenn.tsx
|
|
28304
|
-
var
|
|
28391
|
+
var Cf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
28305
28392
|
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]] : [
|
|
28306
28393
|
[o, s - l * .5],
|
|
28307
28394
|
[o - l * .5, s + l * .36],
|
|
@@ -28366,7 +28453,7 @@ var gf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
28366
28453
|
}, t))
|
|
28367
28454
|
})]
|
|
28368
28455
|
});
|
|
28369
|
-
}),
|
|
28456
|
+
}), wf = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
28370
28457
|
let o = Q(), [s, c] = f(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
28371
28458
|
d: e,
|
|
28372
28459
|
i: t,
|
|
@@ -28469,8 +28556,8 @@ var gf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
28469
28556
|
});
|
|
28470
28557
|
//#endregion
|
|
28471
28558
|
//#region src/SelectNetwork.tsx
|
|
28472
|
-
function
|
|
28473
|
-
let { ref: o, width: s } =
|
|
28559
|
+
function Tf({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
28560
|
+
let { ref: o, width: s } = Lu(n), c = Q(), [l, d] = f(null), p = u(() => {
|
|
28474
28561
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
28475
28562
|
if (!a) return o;
|
|
28476
28563
|
let c = e.map((e, t) => ({
|
|
@@ -28583,8 +28670,8 @@ function vf({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
28583
28670
|
}
|
|
28584
28671
|
//#endregion
|
|
28585
28672
|
//#region src/SelectSearchMenu.tsx
|
|
28586
|
-
var
|
|
28587
|
-
function
|
|
28673
|
+
var Ef = "[role=\"option\"]:not([disabled])";
|
|
28674
|
+
function Df({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", autoFocus: s = !1, selectFirstOnEnter: c = !1, listMaxHeight: l, children: u }) {
|
|
28588
28675
|
let f = d(null);
|
|
28589
28676
|
return o(() => {
|
|
28590
28677
|
if (!s) return;
|
|
@@ -28600,7 +28687,7 @@ function bf({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
28600
28687
|
onKeyDown: (e) => {
|
|
28601
28688
|
let t = f.current;
|
|
28602
28689
|
if (!t) return;
|
|
28603
|
-
let n = t.querySelector("input"), r = Array.from(t.querySelectorAll(
|
|
28690
|
+
let n = t.querySelector("input"), r = Array.from(t.querySelectorAll(Ef)), i = r.indexOf(document.activeElement);
|
|
28604
28691
|
if (e.key === "ArrowDown") {
|
|
28605
28692
|
var a;
|
|
28606
28693
|
if (r.length === 0) return;
|
|
@@ -28631,7 +28718,7 @@ function bf({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
28631
28718
|
className: "select-combobox__empty",
|
|
28632
28719
|
role: "status",
|
|
28633
28720
|
children: r
|
|
28634
|
-
}) : /* @__PURE__ */ h(
|
|
28721
|
+
}) : /* @__PURE__ */ h(Of, {
|
|
28635
28722
|
maxHeight: l,
|
|
28636
28723
|
children: u
|
|
28637
28724
|
}),
|
|
@@ -28642,7 +28729,7 @@ function bf({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
28642
28729
|
]
|
|
28643
28730
|
});
|
|
28644
28731
|
}
|
|
28645
|
-
function
|
|
28732
|
+
function Of({ children: e, maxHeight: t }) {
|
|
28646
28733
|
let n = ar({
|
|
28647
28734
|
selector: ".select-combobox__option",
|
|
28648
28735
|
y: 6,
|
|
@@ -28657,7 +28744,7 @@ function xf({ children: e, maxHeight: t }) {
|
|
|
28657
28744
|
children: e
|
|
28658
28745
|
});
|
|
28659
28746
|
}
|
|
28660
|
-
function
|
|
28747
|
+
function kf({ label: e, children: t }) {
|
|
28661
28748
|
return (Array.isArray(t) ? t.some((e) => e != null && e !== !1) : t != null && t !== !1) ? /* @__PURE__ */ g("div", {
|
|
28662
28749
|
role: "group",
|
|
28663
28750
|
className: "select-searchmenu__group",
|
|
@@ -28669,7 +28756,7 @@ function Sf({ label: e, children: t }) {
|
|
|
28669
28756
|
}), t]
|
|
28670
28757
|
}) : null;
|
|
28671
28758
|
}
|
|
28672
|
-
function
|
|
28759
|
+
function Af({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i = !1, onSelect: a }) {
|
|
28673
28760
|
return /* @__PURE__ */ g("button", {
|
|
28674
28761
|
type: "button",
|
|
28675
28762
|
role: "option",
|
|
@@ -28702,14 +28789,14 @@ function Cf({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i
|
|
|
28702
28789
|
}
|
|
28703
28790
|
//#endregion
|
|
28704
28791
|
//#region src/SelectKbd.tsx
|
|
28705
|
-
var
|
|
28792
|
+
var jf = r(function({ children: e, className: t, ...n }, r) {
|
|
28706
28793
|
return /* @__PURE__ */ h("kbd", {
|
|
28707
28794
|
ref: r,
|
|
28708
28795
|
...n,
|
|
28709
28796
|
className: `select-kbd${t ? " " + t : ""}`,
|
|
28710
28797
|
children: e
|
|
28711
28798
|
});
|
|
28712
|
-
}),
|
|
28799
|
+
}), Mf = [
|
|
28713
28800
|
{
|
|
28714
28801
|
value: "light",
|
|
28715
28802
|
label: "Claro",
|
|
@@ -28726,15 +28813,15 @@ var wf = r(function({ children: e, className: t, ...n }, r) {
|
|
|
28726
28813
|
icon: /* @__PURE__ */ h(ke, {})
|
|
28727
28814
|
}
|
|
28728
28815
|
];
|
|
28729
|
-
function
|
|
28816
|
+
function Nf(e) {
|
|
28730
28817
|
if (e === "system") {
|
|
28731
28818
|
var t, n;
|
|
28732
28819
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
28733
28820
|
}
|
|
28734
28821
|
return e;
|
|
28735
28822
|
}
|
|
28736
|
-
function
|
|
28737
|
-
let [i, a] = f(!1), s = d(null), c =
|
|
28823
|
+
function Pf({ value: e, onChange: t, className: n, ...r }) {
|
|
28824
|
+
let [i, a] = f(!1), s = d(null), c = Mf.find((t) => t.value === e) ?? Mf[2];
|
|
28738
28825
|
return o(() => {
|
|
28739
28826
|
if (!i) return;
|
|
28740
28827
|
let e = (e) => {
|
|
@@ -28754,7 +28841,7 @@ function Df({ value: e, onChange: t, className: n, ...r }) {
|
|
|
28754
28841
|
})
|
|
28755
28842
|
}), i && /* @__PURE__ */ h("div", {
|
|
28756
28843
|
className: "select-themeswitcher__popover",
|
|
28757
|
-
children: /* @__PURE__ */ h(za, { children:
|
|
28844
|
+
children: /* @__PURE__ */ h(za, { children: Mf.map((n) => /* @__PURE__ */ h(Va, {
|
|
28758
28845
|
icon: n.icon,
|
|
28759
28846
|
active: n.value === e,
|
|
28760
28847
|
trailing: n.value === e ? /* @__PURE__ */ h(Ve, {}) : null,
|
|
@@ -28768,8 +28855,8 @@ function Df({ value: e, onChange: t, className: n, ...r }) {
|
|
|
28768
28855
|
}
|
|
28769
28856
|
//#endregion
|
|
28770
28857
|
//#region src/SelectDetail.tsx
|
|
28771
|
-
var
|
|
28772
|
-
function
|
|
28858
|
+
var Ff = n(!1);
|
|
28859
|
+
function If({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 }) {
|
|
28773
28860
|
let i = ar({
|
|
28774
28861
|
selector: ".select-detail",
|
|
28775
28862
|
y: 8,
|
|
@@ -28777,7 +28864,7 @@ function kf({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
28777
28864
|
stagger: .05,
|
|
28778
28865
|
scroll: !0
|
|
28779
28866
|
});
|
|
28780
|
-
return /* @__PURE__ */ h(
|
|
28867
|
+
return /* @__PURE__ */ h(Ff.Provider, {
|
|
28781
28868
|
value: r,
|
|
28782
28869
|
children: /* @__PURE__ */ h("div", {
|
|
28783
28870
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}${n ? " select-detaillist--compact" : ""}`,
|
|
@@ -28786,8 +28873,8 @@ function kf({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
28786
28873
|
})
|
|
28787
28874
|
});
|
|
28788
28875
|
}
|
|
28789
|
-
var
|
|
28790
|
-
let l = a(
|
|
28876
|
+
var Lf = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
28877
|
+
let l = a(Ff), u = i ?? l;
|
|
28791
28878
|
return /* @__PURE__ */ g("div", {
|
|
28792
28879
|
ref: c,
|
|
28793
28880
|
...s,
|
|
@@ -28807,7 +28894,7 @@ var Af = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
28807
28894
|
})
|
|
28808
28895
|
]
|
|
28809
28896
|
});
|
|
28810
|
-
}),
|
|
28897
|
+
}), Rf = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", connected: i = !1, className: a, ...o }, s) {
|
|
28811
28898
|
let c = r === "vertical";
|
|
28812
28899
|
return /* @__PURE__ */ h("ol", {
|
|
28813
28900
|
ref: s,
|
|
@@ -28850,7 +28937,7 @@ var Af = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
28850
28937
|
});
|
|
28851
28938
|
//#endregion
|
|
28852
28939
|
//#region src/SelectSetupGuide.tsx
|
|
28853
|
-
function
|
|
28940
|
+
function zf({ status: e }) {
|
|
28854
28941
|
return /* @__PURE__ */ h("span", {
|
|
28855
28942
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
28856
28943
|
"aria-hidden": "true",
|
|
@@ -28869,13 +28956,13 @@ function Mf({ status: e }) {
|
|
|
28869
28956
|
})
|
|
28870
28957
|
});
|
|
28871
28958
|
}
|
|
28872
|
-
var
|
|
28959
|
+
var Bf = {
|
|
28873
28960
|
done: "feito",
|
|
28874
28961
|
todo: "a fazer",
|
|
28875
28962
|
next: "próximo passo",
|
|
28876
28963
|
skipped: "pulado",
|
|
28877
28964
|
waiting: "aguardando"
|
|
28878
|
-
},
|
|
28965
|
+
}, Vf = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
|
|
28879
28966
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0, f = pi();
|
|
28880
28967
|
return /* @__PURE__ */ g("section", {
|
|
28881
28968
|
ref: u,
|
|
@@ -28938,14 +29025,14 @@ var Nf = {
|
|
|
28938
29025
|
children: e.steps.map((e) => /* @__PURE__ */ g("li", {
|
|
28939
29026
|
className: `select-setupguide__step is-${e.status}`,
|
|
28940
29027
|
children: [
|
|
28941
|
-
/* @__PURE__ */ h(
|
|
29028
|
+
/* @__PURE__ */ h(zf, { status: e.status }),
|
|
28942
29029
|
/* @__PURE__ */ g("span", {
|
|
28943
29030
|
className: "select-setupguide__text",
|
|
28944
29031
|
children: [/* @__PURE__ */ g("span", {
|
|
28945
29032
|
className: "select-setupguide__steptitle",
|
|
28946
29033
|
children: [e.title, /* @__PURE__ */ g("span", {
|
|
28947
29034
|
className: "select-setupguide__sr",
|
|
28948
|
-
children: [" — ",
|
|
29035
|
+
children: [" — ", Bf[e.status]]
|
|
28949
29036
|
})]
|
|
28950
29037
|
}), e.description && /* @__PURE__ */ h("span", {
|
|
28951
29038
|
className: "select-setupguide__stepdesc",
|
|
@@ -28964,7 +29051,7 @@ var Nf = {
|
|
|
28964
29051
|
})]
|
|
28965
29052
|
});
|
|
28966
29053
|
});
|
|
28967
|
-
function
|
|
29054
|
+
function Hf({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
28968
29055
|
return /* @__PURE__ */ g("div", {
|
|
28969
29056
|
className: "select-setupnext",
|
|
28970
29057
|
children: [
|
|
@@ -28989,37 +29076,37 @@ function Ff({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
28989
29076
|
}
|
|
28990
29077
|
//#endregion
|
|
28991
29078
|
//#region src/SelectTour.tsx
|
|
28992
|
-
var
|
|
28993
|
-
function
|
|
29079
|
+
var Uf = 6, Wf = 12;
|
|
29080
|
+
function Gf(e) {
|
|
28994
29081
|
let t = document.querySelector(e);
|
|
28995
29082
|
if (!t) return null;
|
|
28996
29083
|
let n = t.getBoundingClientRect();
|
|
28997
29084
|
return n.width === 0 && n.height === 0 ? null : {
|
|
28998
|
-
top: n.top -
|
|
28999
|
-
left: n.left -
|
|
29085
|
+
top: n.top - Uf,
|
|
29086
|
+
left: n.left - Uf,
|
|
29000
29087
|
width: n.width + 12,
|
|
29001
29088
|
height: n.height + 12
|
|
29002
29089
|
};
|
|
29003
29090
|
}
|
|
29004
|
-
function
|
|
29091
|
+
function Kf(e) {
|
|
29005
29092
|
let t = document.querySelector(e);
|
|
29006
29093
|
if (!t) return !1;
|
|
29007
29094
|
let n = t.getBoundingClientRect();
|
|
29008
29095
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
29009
29096
|
}
|
|
29010
|
-
function
|
|
29011
|
-
let s = u(() => e ? t.filter((e) =>
|
|
29097
|
+
function qf({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
29098
|
+
let s = u(() => e ? t.filter((e) => Kf(e.target)) : [], [e]), [c, p] = f(0), [m, v] = f(null), [y, b] = f(null), x = d(null), S = d(null);
|
|
29012
29099
|
o(() => {
|
|
29013
29100
|
e && p(0);
|
|
29014
29101
|
}, [e]);
|
|
29015
29102
|
let C = s[c], w = c === s.length - 1, T = i(() => {
|
|
29016
29103
|
if (!C) return;
|
|
29017
|
-
let e =
|
|
29104
|
+
let e = Gf(C.target);
|
|
29018
29105
|
v(e);
|
|
29019
29106
|
let t = x.current;
|
|
29020
29107
|
if (!e || !t) return;
|
|
29021
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
29022
|
-
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height +
|
|
29108
|
+
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + Wf, s = e.top;
|
|
29109
|
+
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + Wf, s + r > a - 8 && (s = e.top - r - Wf)), s = Math.min(Math.max(8, s), a - r - 8), b({
|
|
29023
29110
|
top: s,
|
|
29024
29111
|
left: o
|
|
29025
29112
|
});
|
|
@@ -29121,7 +29208,7 @@ function Bf({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
29121
29208
|
}
|
|
29122
29209
|
//#endregion
|
|
29123
29210
|
//#region src/SelectPlanCard.tsx
|
|
29124
|
-
var
|
|
29211
|
+
var Jf = 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) {
|
|
29125
29212
|
return /* @__PURE__ */ g("div", {
|
|
29126
29213
|
ref: d,
|
|
29127
29214
|
...u,
|
|
@@ -29176,7 +29263,7 @@ var Vf = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
29176
29263
|
})]
|
|
29177
29264
|
})]
|
|
29178
29265
|
});
|
|
29179
|
-
}),
|
|
29266
|
+
}), Yf = r(function({ title: e, description: t, headerAction: n, footer: r, dense: i = !1, spread: a = !1, children: o, className: s, ...c }, l) {
|
|
29180
29267
|
return /* @__PURE__ */ g("div", {
|
|
29181
29268
|
ref: l,
|
|
29182
29269
|
...c,
|
|
@@ -29212,7 +29299,7 @@ var Vf = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
29212
29299
|
]
|
|
29213
29300
|
});
|
|
29214
29301
|
});
|
|
29215
|
-
function
|
|
29302
|
+
function Xf({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, wrap: o = !1, onClick: s }) {
|
|
29216
29303
|
let c = /* @__PURE__ */ g(m, { children: [
|
|
29217
29304
|
e && /* @__PURE__ */ h("span", {
|
|
29218
29305
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
@@ -29244,7 +29331,7 @@ function Uf({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
29244
29331
|
children: c
|
|
29245
29332
|
});
|
|
29246
29333
|
}
|
|
29247
|
-
function
|
|
29334
|
+
function Zf({ children: e }) {
|
|
29248
29335
|
return /* @__PURE__ */ h("div", {
|
|
29249
29336
|
className: "select-listlabel",
|
|
29250
29337
|
children: e
|
|
@@ -29252,7 +29339,7 @@ function Wf({ children: e }) {
|
|
|
29252
29339
|
}
|
|
29253
29340
|
//#endregion
|
|
29254
29341
|
//#region src/SelectThumbnail.tsx
|
|
29255
|
-
var
|
|
29342
|
+
var Qf = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, s) {
|
|
29256
29343
|
let [c, l] = f(!1);
|
|
29257
29344
|
o(() => l(!1), [e]);
|
|
29258
29345
|
let u = /* @__PURE__ */ h("span", {
|
|
@@ -29286,8 +29373,8 @@ var Gf = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
|
|
|
29286
29373
|
});
|
|
29287
29374
|
//#endregion
|
|
29288
29375
|
//#region src/SelectImageZoomModal.tsx
|
|
29289
|
-
function
|
|
29290
|
-
return /* @__PURE__ */ h(
|
|
29376
|
+
function $f({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
29377
|
+
return /* @__PURE__ */ h(mc, {
|
|
29291
29378
|
open: e,
|
|
29292
29379
|
onClose: t,
|
|
29293
29380
|
title: i,
|
|
@@ -29305,7 +29392,7 @@ function Kf({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
29305
29392
|
}
|
|
29306
29393
|
//#endregion
|
|
29307
29394
|
//#region src/SelectZoomThumbnail.tsx
|
|
29308
|
-
function
|
|
29395
|
+
function ep({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
29309
29396
|
let [a, o] = f(!1);
|
|
29310
29397
|
return e ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("button", {
|
|
29311
29398
|
type: "button",
|
|
@@ -29318,19 +29405,19 @@ function qf({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
29318
29405
|
cursor: "zoom-in",
|
|
29319
29406
|
display: "inline-flex"
|
|
29320
29407
|
},
|
|
29321
|
-
children: /* @__PURE__ */ h(
|
|
29408
|
+
children: /* @__PURE__ */ h(Qf, {
|
|
29322
29409
|
src: e,
|
|
29323
29410
|
size: n,
|
|
29324
29411
|
alt: t,
|
|
29325
29412
|
count: i
|
|
29326
29413
|
})
|
|
29327
|
-
}), a && /* @__PURE__ */ h(
|
|
29414
|
+
}), a && /* @__PURE__ */ h($f, {
|
|
29328
29415
|
open: !0,
|
|
29329
29416
|
onClose: () => o(!1),
|
|
29330
29417
|
src: e,
|
|
29331
29418
|
alt: t,
|
|
29332
29419
|
title: r ?? t
|
|
29333
|
-
})] }) : /* @__PURE__ */ h(
|
|
29420
|
+
})] }) : /* @__PURE__ */ h(Qf, {
|
|
29334
29421
|
size: n,
|
|
29335
29422
|
alt: t,
|
|
29336
29423
|
count: i
|
|
@@ -29338,7 +29425,7 @@ function qf({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
29338
29425
|
}
|
|
29339
29426
|
//#endregion
|
|
29340
29427
|
//#region src/SelectMediaCell.tsx
|
|
29341
|
-
var
|
|
29428
|
+
var tp = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
29342
29429
|
return /* @__PURE__ */ g("span", {
|
|
29343
29430
|
ref: a,
|
|
29344
29431
|
...i,
|
|
@@ -29360,14 +29447,14 @@ var Jf = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
29360
29447
|
});
|
|
29361
29448
|
//#endregion
|
|
29362
29449
|
//#region src/SelectOfflineModal.tsx
|
|
29363
|
-
function
|
|
29450
|
+
function np() {
|
|
29364
29451
|
let [e, t] = f(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
29365
29452
|
return o(() => {
|
|
29366
29453
|
let e = () => t(!1), n = () => t(!0);
|
|
29367
29454
|
return window.addEventListener("online", e), window.addEventListener("offline", n), () => {
|
|
29368
29455
|
window.removeEventListener("online", e), window.removeEventListener("offline", n);
|
|
29369
29456
|
};
|
|
29370
|
-
}, []), /* @__PURE__ */ h(
|
|
29457
|
+
}, []), /* @__PURE__ */ h(mc, {
|
|
29371
29458
|
open: e,
|
|
29372
29459
|
onClose: () => {},
|
|
29373
29460
|
showClose: !1,
|
|
@@ -29383,7 +29470,7 @@ function Yf() {
|
|
|
29383
29470
|
}
|
|
29384
29471
|
//#endregion
|
|
29385
29472
|
//#region src/SelectKeyValueEditor.tsx
|
|
29386
|
-
function
|
|
29473
|
+
function rp(e) {
|
|
29387
29474
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
29388
29475
|
name: String(e.name ?? e.key ?? ""),
|
|
29389
29476
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -29392,8 +29479,8 @@ function Xf(e) {
|
|
|
29392
29479
|
value: t == null ? "" : String(t)
|
|
29393
29480
|
})) : [];
|
|
29394
29481
|
}
|
|
29395
|
-
var
|
|
29396
|
-
let d =
|
|
29482
|
+
var ip = 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) {
|
|
29483
|
+
let d = rp(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
29397
29484
|
...t,
|
|
29398
29485
|
...n
|
|
29399
29486
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), m = () => t([...d, {
|
|
@@ -29457,7 +29544,7 @@ var Zf = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
29457
29544
|
})
|
|
29458
29545
|
]
|
|
29459
29546
|
});
|
|
29460
|
-
}),
|
|
29547
|
+
}), ap = (e) => String(e).padStart(2, "0"), op = {
|
|
29461
29548
|
"en-US": {
|
|
29462
29549
|
weekdays: [
|
|
29463
29550
|
"Su",
|
|
@@ -29516,34 +29603,34 @@ var Zf = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
29516
29603
|
to: "Até",
|
|
29517
29604
|
cancel: "Cancelar",
|
|
29518
29605
|
apply: "Aplicar",
|
|
29519
|
-
formatDate: (e) => `${
|
|
29606
|
+
formatDate: (e) => `${ap(e.getDate())} / ${ap(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
29520
29607
|
}
|
|
29521
|
-
},
|
|
29608
|
+
}, sp = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), cp = (e) => new Date(e.getFullYear(), e.getMonth(), 1), lp = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), up = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), dp = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), fp = (e) => {
|
|
29522
29609
|
let t = /* @__PURE__ */ new Date();
|
|
29523
29610
|
return {
|
|
29524
29611
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
29525
29612
|
to: t
|
|
29526
29613
|
};
|
|
29527
|
-
},
|
|
29614
|
+
}, pp = [
|
|
29528
29615
|
{
|
|
29529
29616
|
id: "15m",
|
|
29530
29617
|
label: "Last 15 minutes",
|
|
29531
|
-
range: () =>
|
|
29618
|
+
range: () => fp(15)
|
|
29532
29619
|
},
|
|
29533
29620
|
{
|
|
29534
29621
|
id: "1h",
|
|
29535
29622
|
label: "Last 1 hour",
|
|
29536
|
-
range: () =>
|
|
29623
|
+
range: () => fp(60)
|
|
29537
29624
|
},
|
|
29538
29625
|
{
|
|
29539
29626
|
id: "3h",
|
|
29540
29627
|
label: "Last 3 hours",
|
|
29541
|
-
range: () =>
|
|
29628
|
+
range: () => fp(180)
|
|
29542
29629
|
},
|
|
29543
29630
|
{
|
|
29544
29631
|
id: "24h",
|
|
29545
29632
|
label: "Last 24 hours",
|
|
29546
|
-
range: () =>
|
|
29633
|
+
range: () => fp(1440)
|
|
29547
29634
|
},
|
|
29548
29635
|
{
|
|
29549
29636
|
id: "3d",
|
|
@@ -29559,78 +29646,78 @@ var Zf = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
29559
29646
|
id: "all",
|
|
29560
29647
|
label: "All",
|
|
29561
29648
|
range: () => ({
|
|
29562
|
-
from:
|
|
29563
|
-
to:
|
|
29649
|
+
from: sp(/* @__PURE__ */ new Date()),
|
|
29650
|
+
to: sp(/* @__PURE__ */ new Date())
|
|
29564
29651
|
})
|
|
29565
29652
|
}
|
|
29566
|
-
],
|
|
29567
|
-
let t =
|
|
29653
|
+
], mp = (e) => {
|
|
29654
|
+
let t = sp(/* @__PURE__ */ new Date());
|
|
29568
29655
|
return {
|
|
29569
|
-
from:
|
|
29656
|
+
from: lp(t, -e),
|
|
29570
29657
|
to: t
|
|
29571
29658
|
};
|
|
29572
|
-
},
|
|
29573
|
-
let t =
|
|
29659
|
+
}, hp = (e) => {
|
|
29660
|
+
let t = lp(sp(/* @__PURE__ */ new Date()), -e);
|
|
29574
29661
|
return {
|
|
29575
29662
|
from: t,
|
|
29576
29663
|
to: t
|
|
29577
29664
|
};
|
|
29578
|
-
},
|
|
29665
|
+
}, gp = [
|
|
29579
29666
|
{
|
|
29580
29667
|
id: "today",
|
|
29581
29668
|
label: "Hoje",
|
|
29582
|
-
range: () =>
|
|
29669
|
+
range: () => mp(0)
|
|
29583
29670
|
},
|
|
29584
29671
|
{
|
|
29585
29672
|
id: "yesterday",
|
|
29586
29673
|
label: "Ontem",
|
|
29587
|
-
range: () =>
|
|
29674
|
+
range: () => hp(1)
|
|
29588
29675
|
},
|
|
29589
29676
|
{
|
|
29590
29677
|
id: "7d",
|
|
29591
29678
|
label: "Últimos 7 dias",
|
|
29592
|
-
range: () =>
|
|
29679
|
+
range: () => mp(6)
|
|
29593
29680
|
},
|
|
29594
29681
|
{
|
|
29595
29682
|
id: "10d",
|
|
29596
29683
|
label: "Últimos 10 dias",
|
|
29597
|
-
range: () =>
|
|
29684
|
+
range: () => mp(9)
|
|
29598
29685
|
},
|
|
29599
29686
|
{
|
|
29600
29687
|
id: "15d",
|
|
29601
29688
|
label: "Últimos 15 dias",
|
|
29602
|
-
range: () =>
|
|
29689
|
+
range: () => mp(14)
|
|
29603
29690
|
},
|
|
29604
29691
|
{
|
|
29605
29692
|
id: "20d",
|
|
29606
29693
|
label: "Últimos 20 dias",
|
|
29607
|
-
range: () =>
|
|
29694
|
+
range: () => mp(19)
|
|
29608
29695
|
},
|
|
29609
29696
|
{
|
|
29610
29697
|
id: "30d",
|
|
29611
29698
|
label: "Últimos 30 dias",
|
|
29612
|
-
range: () =>
|
|
29699
|
+
range: () => mp(29)
|
|
29613
29700
|
},
|
|
29614
29701
|
{
|
|
29615
29702
|
id: "90d",
|
|
29616
29703
|
label: "Últimos 90 dias",
|
|
29617
|
-
range: () =>
|
|
29704
|
+
range: () => mp(89)
|
|
29618
29705
|
}
|
|
29619
29706
|
];
|
|
29620
|
-
function
|
|
29707
|
+
function _p(e) {
|
|
29621
29708
|
if (!e) return "—";
|
|
29622
29709
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
29623
29710
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
29624
29711
|
}
|
|
29625
|
-
var
|
|
29626
|
-
let p =
|
|
29712
|
+
var vp = r(function({ value: e, presets: t = pp, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, d) {
|
|
29713
|
+
let p = op[a], m = sp(/* @__PURE__ */ new Date()), _ = s ? sp(s) : null, [v, y] = f(e ?? {
|
|
29627
29714
|
from: m,
|
|
29628
29715
|
to: m
|
|
29629
|
-
}), [b, x] = f(
|
|
29716
|
+
}), [b, x] = f(cp((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = f(null), w = lp(cp(b), -cp(b).getDay()), T = Array.from({ length: 42 }, (e, t) => lp(w, t)), E = (e) => _ ? sp(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ h("span", {
|
|
29630
29717
|
className: "select-datepicker__placeholder",
|
|
29631
29718
|
children: "— / — / ——"
|
|
29632
29719
|
}), O = (e) => {
|
|
29633
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
29720
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < sp(t.from) ? {
|
|
29634
29721
|
from: e,
|
|
29635
29722
|
to: null
|
|
29636
29723
|
} : {
|
|
@@ -29640,7 +29727,7 @@ var dp = r(function({ value: e, presets: t = op, onApply: n, onCancel: r, accent
|
|
|
29640
29727
|
}, k = (e) => {
|
|
29641
29728
|
if (e.disabled || !e.range) return;
|
|
29642
29729
|
let t = e.range();
|
|
29643
|
-
y(t), C(e.id), t.from && x(
|
|
29730
|
+
y(t), C(e.id), t.from && x(cp(t.from));
|
|
29644
29731
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
29645
29732
|
return /* @__PURE__ */ h("div", {
|
|
29646
29733
|
ref: d,
|
|
@@ -29686,7 +29773,7 @@ var dp = r(function({ value: e, presets: t = op, onApply: n, onCancel: r, accent
|
|
|
29686
29773
|
}),
|
|
29687
29774
|
o && /* @__PURE__ */ h("span", {
|
|
29688
29775
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
29689
|
-
children:
|
|
29776
|
+
children: _p(v[e])
|
|
29690
29777
|
})
|
|
29691
29778
|
]
|
|
29692
29779
|
}, e))
|
|
@@ -29698,7 +29785,7 @@ var dp = r(function({ value: e, presets: t = op, onApply: n, onCancel: r, accent
|
|
|
29698
29785
|
type: "button",
|
|
29699
29786
|
className: "select-datepicker__nav",
|
|
29700
29787
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
29701
|
-
onClick: () => x((e) =>
|
|
29788
|
+
onClick: () => x((e) => up(e, -1)),
|
|
29702
29789
|
children: /* @__PURE__ */ h(G, {})
|
|
29703
29790
|
}),
|
|
29704
29791
|
/* @__PURE__ */ g("span", {
|
|
@@ -29713,7 +29800,7 @@ var dp = r(function({ value: e, presets: t = op, onApply: n, onCancel: r, accent
|
|
|
29713
29800
|
type: "button",
|
|
29714
29801
|
className: "select-datepicker__nav",
|
|
29715
29802
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
29716
|
-
onClick: () => x((e) =>
|
|
29803
|
+
onClick: () => x((e) => up(e, 1)),
|
|
29717
29804
|
children: /* @__PURE__ */ h(W, {})
|
|
29718
29805
|
})
|
|
29719
29806
|
]
|
|
@@ -29725,7 +29812,7 @@ var dp = r(function({ value: e, presets: t = op, onApply: n, onCancel: r, accent
|
|
|
29725
29812
|
className: "select-datepicker__weekday",
|
|
29726
29813
|
children: e
|
|
29727
29814
|
}, t)), T.map((e) => {
|
|
29728
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
29815
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && dp(e, v.from), i = !!v.to && dp(e, v.to), a = r || i, o = !!v.from && !!v.to && !dp(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > sp(v.from) && e < sp(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" : "") + (dp(e, m) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
29729
29816
|
return /* @__PURE__ */ h("div", {
|
|
29730
29817
|
className: s,
|
|
29731
29818
|
children: /* @__PURE__ */ h("button", {
|
|
@@ -29756,17 +29843,17 @@ var dp = r(function({ value: e, presets: t = op, onApply: n, onCancel: r, accent
|
|
|
29756
29843
|
})]
|
|
29757
29844
|
})
|
|
29758
29845
|
});
|
|
29759
|
-
}),
|
|
29760
|
-
function
|
|
29846
|
+
}), yp = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), bp = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), xp = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
29847
|
+
function Sp(e, t) {
|
|
29761
29848
|
for (let r of t) {
|
|
29762
29849
|
var n;
|
|
29763
29850
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
29764
|
-
if (t != null && t.from && t != null && t.to &&
|
|
29851
|
+
if (t != null && t.from && t != null && t.to && bp(t.from, e.start) && bp(t.to, e.end)) return r.label;
|
|
29765
29852
|
}
|
|
29766
|
-
return
|
|
29853
|
+
return bp(e.start, e.end) ? xp(e.start) : `${xp(e.start)} – ${xp(e.end)}`;
|
|
29767
29854
|
}
|
|
29768
|
-
function
|
|
29769
|
-
let [c, l] = f(!1), u = r === null ? null : r ??
|
|
29855
|
+
function Cp({ value: e, onChange: t, presets: n = gp, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
29856
|
+
let [c, l] = f(!1), u = r === null ? null : r ?? yp(/* @__PURE__ */ new Date());
|
|
29770
29857
|
return /* @__PURE__ */ h(fr, {
|
|
29771
29858
|
active: c,
|
|
29772
29859
|
onClose: () => l(!1),
|
|
@@ -29780,9 +29867,9 @@ function gp({ value: e, onChange: t, presets: n = lp, maxDate: r, placement: i =
|
|
|
29780
29867
|
icon: /* @__PURE__ */ h(rt, {}),
|
|
29781
29868
|
trailingIcon: /* @__PURE__ */ h(K, {}),
|
|
29782
29869
|
onClick: () => l((e) => !e),
|
|
29783
|
-
children:
|
|
29870
|
+
children: Sp(e, n)
|
|
29784
29871
|
}),
|
|
29785
|
-
children: /* @__PURE__ */ h(
|
|
29872
|
+
children: /* @__PURE__ */ h(vp, {
|
|
29786
29873
|
embedded: !0,
|
|
29787
29874
|
locale: "pt-BR",
|
|
29788
29875
|
showTime: !1,
|
|
@@ -29795,8 +29882,8 @@ function gp({ value: e, onChange: t, presets: n = lp, maxDate: r, placement: i =
|
|
|
29795
29882
|
onCancel: () => l(!1),
|
|
29796
29883
|
onApply: (e) => {
|
|
29797
29884
|
e.from && t({
|
|
29798
|
-
start:
|
|
29799
|
-
end:
|
|
29885
|
+
start: yp(e.from),
|
|
29886
|
+
end: yp(e.to ?? e.from)
|
|
29800
29887
|
}), l(!1);
|
|
29801
29888
|
}
|
|
29802
29889
|
})
|
|
@@ -29804,7 +29891,7 @@ function gp({ value: e, onChange: t, presets: n = lp, maxDate: r, placement: i =
|
|
|
29804
29891
|
}
|
|
29805
29892
|
//#endregion
|
|
29806
29893
|
//#region src/SelectNumberField.tsx
|
|
29807
|
-
var
|
|
29894
|
+
var wp = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a = 1, decimal: o = !1, disabled: c = !1, hint: l, error: u, onBlur: d, placeholder: p, size: m = "md", ariaLabel: _, className: v, ...y }, b) {
|
|
29808
29895
|
let x = s(), S = u ? `${x}-err` : l ? `${x}-hint` : void 0, C = (e) => Math.min(i ?? Infinity, Math.max(r ?? -Infinity, e)), w = (e) => Math.round(e * 1e6) / 1e6, T = t ?? 0, E = r != null && T <= r, D = i != null && T >= i, [O, k] = f(!1), [A, j] = f(""), M = o && O ? A : t == null ? "" : String(t), N = (e) => {
|
|
29809
29896
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
29810
29897
|
if (o && j(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -29882,7 +29969,7 @@ var _p = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
29882
29969
|
});
|
|
29883
29970
|
//#endregion
|
|
29884
29971
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
29885
|
-
function
|
|
29972
|
+
function Tp({ 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 }) {
|
|
29886
29973
|
let p = !c && (s == null || e.length < s), _ = e.length > o, v = (n, r) => t(e.map((e, t) => t === n ? r : e)), y = (n) => t(e.filter((e, t) => t !== n)), b = (n, r) => {
|
|
29887
29974
|
let i = n + r;
|
|
29888
29975
|
if (i < 0 || i >= e.length) return;
|
|
@@ -29977,7 +30064,7 @@ function vp({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
29977
30064
|
}
|
|
29978
30065
|
//#endregion
|
|
29979
30066
|
//#region src/SelectBuilderLayout.tsx
|
|
29980
|
-
function
|
|
30067
|
+
function Ep({ 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 }) {
|
|
29981
30068
|
let d = y();
|
|
29982
30069
|
return /* @__PURE__ */ h(ba, {
|
|
29983
30070
|
title: e,
|
|
@@ -30017,7 +30104,7 @@ function yp({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
30017
30104
|
}
|
|
30018
30105
|
//#endregion
|
|
30019
30106
|
//#region src/SelectBuilderWorkspace.tsx
|
|
30020
|
-
function
|
|
30107
|
+
function Dp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a = !1, saveLabel: o = "Salvar", saveDisabled: s = !1, cancelTo: c, onDiscard: l, discardLabel: d = "Descartar", error: p, sections: _ = [], activeId: v, onActiveChange: b, searchable: x = !1, searchPlaceholder: S = "Buscar ajuste…", preview: C, previewLayout: w = "fill", toolbar: T, dirty: E = !1, dirtyLabel: D = "Alterações não salvas", savedLabel: O, reviewLabel: k, layout: A = "rail", panel: j, panelWidth: M, mobileTabs: N, mobileTab: P, onMobileTabChange: F, readOnly: I = !1 }) {
|
|
30021
30108
|
var L;
|
|
30022
30109
|
let R = y(), z = A === "drill", [B, ee] = f(z ? null : ((L = _[0]) == null ? void 0 : L.id) ?? ""), [te, V] = f(""), [H, ne] = f("panel"), re = P ?? H, ie = (e) => {
|
|
30023
30110
|
P === void 0 && ne(e), F == null || F(e);
|
|
@@ -30277,10 +30364,10 @@ function bp({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
30277
30364
|
}
|
|
30278
30365
|
//#endregion
|
|
30279
30366
|
//#region src/SelectFlowCanvas.tsx
|
|
30280
|
-
var
|
|
30281
|
-
function
|
|
30367
|
+
var Op = (e) => Math.round(e * 100) / 100;
|
|
30368
|
+
function kp({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], children: a, zoom: o, defaultZoom: c = 1, onZoomChange: l, minZoom: u = .5, maxZoom: d = 1.3, onBackgroundClick: p, ariaLabel: m }) {
|
|
30282
30369
|
let _ = s().replace(/:/g, ""), [v, y] = f(c), b = o ?? v, x = (e) => {
|
|
30283
|
-
let t =
|
|
30370
|
+
let t = Op(Math.min(d, Math.max(u, e)));
|
|
30284
30371
|
o === void 0 && y(t), l == null || l(t);
|
|
30285
30372
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
30286
30373
|
return /* @__PURE__ */ g("div", {
|
|
@@ -30396,7 +30483,7 @@ function Sp({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
30396
30483
|
})]
|
|
30397
30484
|
});
|
|
30398
30485
|
}
|
|
30399
|
-
function
|
|
30486
|
+
function Ap({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neutral", icon: o, order: s, eyebrow: c, title: l, subtitle: u, tags: d, titleTone: f = "default", selected: p = !1, active: m = !1, muted: _ = !1, invalid: v = !1, onClick: y, ariaLabel: b }) {
|
|
30400
30487
|
let x = `${p ? " is-selected" : v ? " is-invalid" : m ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
30401
30488
|
left: e,
|
|
30402
30489
|
top: t,
|
|
@@ -30472,7 +30559,7 @@ function Cp({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
30472
30559
|
})]
|
|
30473
30560
|
});
|
|
30474
30561
|
}
|
|
30475
|
-
function
|
|
30562
|
+
function jp({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
|
|
30476
30563
|
return /* @__PURE__ */ g("div", {
|
|
30477
30564
|
className: "select-flowpage",
|
|
30478
30565
|
children: [
|
|
@@ -30534,7 +30621,7 @@ function wp({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
30534
30621
|
}
|
|
30535
30622
|
//#endregion
|
|
30536
30623
|
//#region src/SelectSwitchField.tsx
|
|
30537
|
-
var
|
|
30624
|
+
var Mp = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
30538
30625
|
return /* @__PURE__ */ g("div", {
|
|
30539
30626
|
ref: c,
|
|
30540
30627
|
...s,
|
|
@@ -30562,7 +30649,7 @@ var Tp = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
30562
30649
|
children: i
|
|
30563
30650
|
})]
|
|
30564
30651
|
});
|
|
30565
|
-
}),
|
|
30652
|
+
}), Np = [
|
|
30566
30653
|
"#212529",
|
|
30567
30654
|
"#495057",
|
|
30568
30655
|
"#868E96",
|
|
@@ -30579,13 +30666,13 @@ var Tp = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
30579
30666
|
"#DB2777",
|
|
30580
30667
|
"#9333EA",
|
|
30581
30668
|
"#6D28D9"
|
|
30582
|
-
],
|
|
30583
|
-
function
|
|
30584
|
-
let t =
|
|
30669
|
+
], Pp = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
30670
|
+
function Fp(e) {
|
|
30671
|
+
let t = Pp.exec((e ?? "").trim());
|
|
30585
30672
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
30586
30673
|
}
|
|
30587
|
-
function
|
|
30588
|
-
let t =
|
|
30674
|
+
function Ip(e) {
|
|
30675
|
+
let t = Fp(e);
|
|
30589
30676
|
if (!t) return 0;
|
|
30590
30677
|
let [n, r, i] = [
|
|
30591
30678
|
1,
|
|
@@ -30594,13 +30681,13 @@ function kp(e) {
|
|
|
30594
30681
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
30595
30682
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
30596
30683
|
}
|
|
30597
|
-
function
|
|
30598
|
-
let [n, r] = [
|
|
30684
|
+
function Lp(e, t) {
|
|
30685
|
+
let [n, r] = [Ip(e), Ip(t)].sort((e, t) => t - e);
|
|
30599
30686
|
return (n + .05) / (r + .05);
|
|
30600
30687
|
}
|
|
30601
|
-
var
|
|
30602
|
-
function
|
|
30603
|
-
let t =
|
|
30688
|
+
var Rp = (e) => Math.min(1, Math.max(0, e));
|
|
30689
|
+
function zp(e) {
|
|
30690
|
+
let t = Fp(e) ?? "#000000", [n, r, i] = [
|
|
30604
30691
|
1,
|
|
30605
30692
|
3,
|
|
30606
30693
|
5
|
|
@@ -30611,7 +30698,7 @@ function Mp(e) {
|
|
|
30611
30698
|
v: a
|
|
30612
30699
|
};
|
|
30613
30700
|
}
|
|
30614
|
-
function
|
|
30701
|
+
function Bp({ h: e, s: t, v: n }) {
|
|
30615
30702
|
let r = (r) => {
|
|
30616
30703
|
let i = (r + e / 60) % 6;
|
|
30617
30704
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -30622,26 +30709,26 @@ function Np({ h: e, s: t, v: n }) {
|
|
|
30622
30709
|
r(1)
|
|
30623
30710
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
30624
30711
|
}
|
|
30625
|
-
function
|
|
30626
|
-
let [n, r] = f(() =>
|
|
30712
|
+
function Vp({ hex: e, onPick: t }) {
|
|
30713
|
+
let [n, r] = f(() => zp(e ?? "#1D4ED8")), i = d(n), a = (e) => {
|
|
30627
30714
|
i.current = e, r(e);
|
|
30628
30715
|
};
|
|
30629
30716
|
o(() => {
|
|
30630
|
-
if (!e ||
|
|
30631
|
-
let t =
|
|
30717
|
+
if (!e || Bp(i.current) === e) return;
|
|
30718
|
+
let t = zp(e);
|
|
30632
30719
|
a(t.s === 0 || t.v === 0 ? {
|
|
30633
30720
|
...t,
|
|
30634
30721
|
h: i.current.h
|
|
30635
30722
|
} : t);
|
|
30636
30723
|
}, [e]);
|
|
30637
30724
|
let s = (e) => {
|
|
30638
|
-
a(e), t(
|
|
30725
|
+
a(e), t(Bp(e));
|
|
30639
30726
|
}, c = (e, t, n) => {
|
|
30640
30727
|
var r;
|
|
30641
30728
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
30642
30729
|
let i = (t) => {
|
|
30643
30730
|
let r = e.getBoundingClientRect();
|
|
30644
|
-
n(
|
|
30731
|
+
n(Rp((t.clientX - r.left) / (r.width || 1)), Rp((t.clientY - r.top) / (r.height || 1)));
|
|
30645
30732
|
};
|
|
30646
30733
|
i(t);
|
|
30647
30734
|
let a = (e) => i(e), o = () => {
|
|
@@ -30651,20 +30738,20 @@ function Pp({ hex: e, onPick: t }) {
|
|
|
30651
30738
|
}, l = (e) => {
|
|
30652
30739
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, o = e.key === "ArrowLeft" ? {
|
|
30653
30740
|
h: n,
|
|
30654
|
-
s:
|
|
30741
|
+
s: Rp(r - t),
|
|
30655
30742
|
v: a
|
|
30656
30743
|
} : e.key === "ArrowRight" ? {
|
|
30657
30744
|
h: n,
|
|
30658
|
-
s:
|
|
30745
|
+
s: Rp(r + t),
|
|
30659
30746
|
v: a
|
|
30660
30747
|
} : e.key === "ArrowUp" ? {
|
|
30661
30748
|
h: n,
|
|
30662
30749
|
s: r,
|
|
30663
|
-
v:
|
|
30750
|
+
v: Rp(a + t)
|
|
30664
30751
|
} : e.key === "ArrowDown" ? {
|
|
30665
30752
|
h: n,
|
|
30666
30753
|
s: r,
|
|
30667
|
-
v:
|
|
30754
|
+
v: Rp(a - t)
|
|
30668
30755
|
} : null;
|
|
30669
30756
|
o && (e.preventDefault(), s(o));
|
|
30670
30757
|
}, u = (e) => {
|
|
@@ -30674,11 +30761,11 @@ function Pp({ hex: e, onPick: t }) {
|
|
|
30674
30761
|
s: r,
|
|
30675
30762
|
v: a
|
|
30676
30763
|
}));
|
|
30677
|
-
}, p =
|
|
30764
|
+
}, p = Bp({
|
|
30678
30765
|
h: n.h,
|
|
30679
30766
|
s: 1,
|
|
30680
30767
|
v: 1
|
|
30681
|
-
}), _ =
|
|
30768
|
+
}), _ = Bp(n);
|
|
30682
30769
|
return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h("div", {
|
|
30683
30770
|
className: "select-colorfield__sv",
|
|
30684
30771
|
style: { backgroundColor: p },
|
|
@@ -30722,24 +30809,24 @@ function Pp({ hex: e, onPick: t }) {
|
|
|
30722
30809
|
})
|
|
30723
30810
|
})] });
|
|
30724
30811
|
}
|
|
30725
|
-
var
|
|
30726
|
-
function
|
|
30812
|
+
var Hp = (e) => e.toFixed(1).replace(".", ",");
|
|
30813
|
+
function Up({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: c = Np, disabled: l = !1, allowEmpty: u = !1, contrastWith: d, contrastLabel: p = "o texto", id: _ }) {
|
|
30727
30814
|
let v = s(), y = _ ?? `color-${v}`, [b, x] = f(!1), [S, C] = f(i ?? ""), [w, T] = f(null);
|
|
30728
30815
|
o(() => {
|
|
30729
30816
|
C(i ?? ""), T(null);
|
|
30730
30817
|
}, [i]);
|
|
30731
|
-
let E =
|
|
30818
|
+
let E = Fp(i ?? ""), D = (e) => {
|
|
30732
30819
|
if (!e.trim()) {
|
|
30733
30820
|
u ? (T(null), a("")) : C(i ?? "");
|
|
30734
30821
|
return;
|
|
30735
30822
|
}
|
|
30736
|
-
let t =
|
|
30823
|
+
let t = Fp(e);
|
|
30737
30824
|
if (!t) {
|
|
30738
30825
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
30739
30826
|
return;
|
|
30740
30827
|
}
|
|
30741
30828
|
T(null), C(t), t !== E && a(t);
|
|
30742
|
-
}, O = d ?
|
|
30829
|
+
}, O = d ? Fp(d) : null, k = E && O ? Lp(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
|
|
30743
30830
|
return /* @__PURE__ */ g("div", {
|
|
30744
30831
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
30745
30832
|
children: [
|
|
@@ -30767,7 +30854,7 @@ function Ip({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
30767
30854
|
children: /* @__PURE__ */ g("div", {
|
|
30768
30855
|
className: "select-colorfield__panel",
|
|
30769
30856
|
children: [
|
|
30770
|
-
/* @__PURE__ */ h(
|
|
30857
|
+
/* @__PURE__ */ h(Vp, {
|
|
30771
30858
|
hex: E,
|
|
30772
30859
|
onPick: D
|
|
30773
30860
|
}),
|
|
@@ -30776,7 +30863,7 @@ function Ip({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
30776
30863
|
role: "group",
|
|
30777
30864
|
"aria-label": "Cores prontas",
|
|
30778
30865
|
children: c.map((e) => {
|
|
30779
|
-
let t =
|
|
30866
|
+
let t = Fp(e) ?? e, n = t === E;
|
|
30780
30867
|
return /* @__PURE__ */ h("button", {
|
|
30781
30868
|
type: "button",
|
|
30782
30869
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -30807,7 +30894,7 @@ function Ip({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
30807
30894
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
30808
30895
|
value: S,
|
|
30809
30896
|
onChange: (e) => {
|
|
30810
|
-
C(e.target.value), e.target.value.replace("#", "").length === 6 &&
|
|
30897
|
+
C(e.target.value), e.target.value.replace("#", "").length === 6 && Fp(e.target.value) && D(e.target.value);
|
|
30811
30898
|
},
|
|
30812
30899
|
onBlur: () => D(S),
|
|
30813
30900
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -30830,14 +30917,14 @@ function Ip({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
30830
30917
|
}) : null : /* @__PURE__ */ g("p", {
|
|
30831
30918
|
id: `${y}-hint`,
|
|
30832
30919
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
30833
|
-
children: [k >= 4.5 ? `Contraste com ${p}: ${
|
|
30920
|
+
children: [k >= 4.5 ? `Contraste com ${p}: ${Hp(k)}:1 — legível.` : `Contraste com ${p}: ${Hp(k)}:1 — difícil de ler. Escolha uma cor ${Ip(E) < Ip(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ g(m, { children: [" ", n] }) : null]
|
|
30834
30921
|
})
|
|
30835
30922
|
]
|
|
30836
30923
|
});
|
|
30837
30924
|
}
|
|
30838
30925
|
//#endregion
|
|
30839
30926
|
//#region src/SelectProgressBar.tsx
|
|
30840
|
-
var
|
|
30927
|
+
var Wp = 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) {
|
|
30841
30928
|
if (l) return /* @__PURE__ */ g("div", {
|
|
30842
30929
|
ref: f,
|
|
30843
30930
|
...d,
|
|
@@ -30882,7 +30969,7 @@ var Lp = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
30882
30969
|
})
|
|
30883
30970
|
]
|
|
30884
30971
|
});
|
|
30885
|
-
}),
|
|
30972
|
+
}), Gp = r(function({ icon: e, media: t, accent: n, title: r, description: i, badge: a, meta: o, cta: s, to: c, onClick: l, selected: u, disabled: d = !1, className: f, ...p }, _) {
|
|
30886
30973
|
let y = `select-choicecard${u ? " is-selected" : ""}${d ? " is-disabled" : ""}${f ? " " + f : ""}`, b = n ? { "--select-choice-accent": n } : void 0, x = /* @__PURE__ */ g(m, { children: [
|
|
30887
30974
|
t == null ? /* @__PURE__ */ g("span", {
|
|
30888
30975
|
className: "select-choicecard__top",
|
|
@@ -30950,7 +31037,7 @@ var Lp = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
30950
31037
|
children: x
|
|
30951
31038
|
});
|
|
30952
31039
|
});
|
|
30953
|
-
function
|
|
31040
|
+
function Kp({ badge: e = !0 }) {
|
|
30954
31041
|
return /* @__PURE__ */ g("div", {
|
|
30955
31042
|
className: "select-choicecard select-choicecard--skeleton",
|
|
30956
31043
|
"aria-hidden": "true",
|
|
@@ -30971,7 +31058,7 @@ function zp({ badge: e = !0 }) {
|
|
|
30971
31058
|
]
|
|
30972
31059
|
});
|
|
30973
31060
|
}
|
|
30974
|
-
var
|
|
31061
|
+
var qp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, listOnPhone: i = !1, className: a, style: o, ...s }, c) {
|
|
30975
31062
|
return /* @__PURE__ */ h("div", {
|
|
30976
31063
|
ref: c,
|
|
30977
31064
|
...s,
|
|
@@ -30981,16 +31068,16 @@ var Bp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
30981
31068
|
"--select-choice-min": t,
|
|
30982
31069
|
...o
|
|
30983
31070
|
},
|
|
30984
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ h(
|
|
31071
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ h(Kp, {}, t)) : e
|
|
30985
31072
|
});
|
|
30986
|
-
}),
|
|
31073
|
+
}), Jp = 960, Yp = Math.round(Jp * 210 / 297), Xp = r(function({ side: e = "front", accent: t, courseTitle: n, subtitle: r, memberName: i = "Nome do aluno", body: a, signatures: s = [], issuedAt: c, verificationCode: l, eyebrow: u, className: p }, _) {
|
|
30987
31074
|
let v = d(null), [y, b] = f(.5);
|
|
30988
31075
|
o(() => {
|
|
30989
31076
|
let e = v.current;
|
|
30990
31077
|
if (!e) return;
|
|
30991
31078
|
let t = () => {
|
|
30992
31079
|
let t = e.clientWidth;
|
|
30993
|
-
t > 0 && b(Math.min(1, t /
|
|
31080
|
+
t > 0 && b(Math.min(1, t / Jp));
|
|
30994
31081
|
};
|
|
30995
31082
|
if (t(), typeof ResizeObserver > "u") return;
|
|
30996
31083
|
let n = new ResizeObserver(t);
|
|
@@ -30998,7 +31085,7 @@ var Bp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
30998
31085
|
}, []);
|
|
30999
31086
|
let x = e === "front", S = {
|
|
31000
31087
|
"--select-cert-accent": t || void 0,
|
|
31001
|
-
height:
|
|
31088
|
+
height: Yp * y + 2
|
|
31002
31089
|
};
|
|
31003
31090
|
return /* @__PURE__ */ h("div", {
|
|
31004
31091
|
ref: (e) => {
|
|
@@ -31011,8 +31098,8 @@ var Bp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
31011
31098
|
children: /* @__PURE__ */ h("div", {
|
|
31012
31099
|
className: "select-certpreview__sheet",
|
|
31013
31100
|
style: {
|
|
31014
|
-
width:
|
|
31015
|
-
height:
|
|
31101
|
+
width: Jp,
|
|
31102
|
+
height: Yp,
|
|
31016
31103
|
transform: `scale(${y})`
|
|
31017
31104
|
},
|
|
31018
31105
|
children: /* @__PURE__ */ g("div", {
|
|
@@ -31085,13 +31172,13 @@ var Bp = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
31085
31172
|
});
|
|
31086
31173
|
//#endregion
|
|
31087
31174
|
//#region src/SelectImageField.tsx
|
|
31088
|
-
function
|
|
31175
|
+
function Zp(e) {
|
|
31089
31176
|
return new Promise((t, n) => {
|
|
31090
31177
|
let r = new FileReader();
|
|
31091
31178
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
31092
31179
|
});
|
|
31093
31180
|
}
|
|
31094
|
-
var
|
|
31181
|
+
var Qp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
|
|
31095
31182
|
let [d, p] = f([]), [m, _] = f(null), v = t ? [t] : [], y = async (e) => {
|
|
31096
31183
|
let t = e[0];
|
|
31097
31184
|
if (!t) {
|
|
@@ -31099,7 +31186,7 @@ var Gp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
31099
31186
|
return;
|
|
31100
31187
|
}
|
|
31101
31188
|
if (_(null), !s) {
|
|
31102
|
-
n(await
|
|
31189
|
+
n(await Zp(t)), p([]);
|
|
31103
31190
|
return;
|
|
31104
31191
|
}
|
|
31105
31192
|
p([t]);
|
|
@@ -31131,7 +31218,7 @@ var Gp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
31131
31218
|
children: m
|
|
31132
31219
|
})]
|
|
31133
31220
|
});
|
|
31134
|
-
}),
|
|
31221
|
+
}), $p = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
31135
31222
|
let [o, s] = f(() => new Set(n)), c = (e) => s((n) => {
|
|
31136
31223
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
31137
31224
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -31177,6 +31264,6 @@ var Gp = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
31177
31264
|
});
|
|
31178
31265
|
});
|
|
31179
31266
|
//#endregion
|
|
31180
|
-
export { w as AUTH_FX_VARIANTS, Le as AppleIcon, vt as AppsIcon, sn as ArchiveIcon, q as ArrowLeftIcon, ze as ArrowRightIcon, qt as ArrowUpRightIcon, Ge as AtIcon, Pe as AuthAppIcon, Et as AwardIcon, Jt as BagIcon, ot as BankIcon, Ce as BellIcon, wt as BookIcon, pe as BookmarkIcon, pt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, Wt as CameraIcon, bt as CartIcon, gt as ChartLineIcon, Nt as ChatIcon, We as CheckCircleIcon, Ve as CheckIcon, K as ChevronDownIcon, G as ChevronLeftIcon, W as ChevronRightIcon, it as ChevronUpIcon, gn as ClearFormatIcon, lt as ClipboardIcon, fe as ClockIcon, Lt as CloseCircleIcon, le as CloseIcon, J as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, Ut as DatabaseIcon, dt as DiscountIcon, zt as DocumentTextIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, ce as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, Tt as FileDownloadIcon, ae as FilterIcon, Ft as FlagIcon, Rt as FlashIcon, Zt as GiftIcon, ie as GithubIcon, _e as GlobeIcon, re as GoogleIcon, tn as GripIcon, Qt as HeadsetIcon, be as HelpIcon, Xe as HomeIcon, Gt as IdCardIcon, en as ImageIcon, ye as InfoIcon, Je as KeyIcon, Ht as LampIcon, Yt as LayoutIcon, Bt as LinceIcon, ht as LinkIcon, pn as ListBulletIcon, mn as ListNumberIcon, It as LocationIcon, nt as LockIcon, Fe as MailIcon, cn as MailUnreadIcon, xt as MenuIcon, yt as MinusCircleIcon, Ae as MobileIcon, ct as MoneyReceiveIcon, st as MoneySendIcon, ke as MonitorIcon, Oe as MoonIcon, ut as NoteIcon, Ot as PaletteIcon, an as PaperclipIcon, Re as PasskeyIcon, At as PauseIcon, Ne as PhoneIcon, me as PinIcon, Ct as PlayCircleIcon, Me as PlusIcon, Mt as ReceiptIcon, je as RefreshIcon, jt as RefundIcon, rn as ReplyAllIcon, nn as ReplyIcon, Te as RocketIcon,
|
|
31267
|
+
export { w as AUTH_FX_VARIANTS, Le as AppleIcon, vt as AppsIcon, sn as ArchiveIcon, q as ArrowLeftIcon, ze as ArrowRightIcon, qt as ArrowUpRightIcon, Ge as AtIcon, Pe as AuthAppIcon, Et as AwardIcon, Jt as BagIcon, ot as BankIcon, Ce as BellIcon, wt as BookIcon, pe as BookmarkIcon, pt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, Wt as CameraIcon, bt as CartIcon, gt as ChartLineIcon, Nt as ChatIcon, We as CheckCircleIcon, Ve as CheckIcon, K as ChevronDownIcon, G as ChevronLeftIcon, W as ChevronRightIcon, it as ChevronUpIcon, gn as ClearFormatIcon, lt as ClipboardIcon, fe as ClockIcon, Lt as CloseCircleIcon, le as CloseIcon, J as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, Ut as DatabaseIcon, dt as DiscountIcon, zt as DocumentTextIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, ce as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, Tt as FileDownloadIcon, ae as FilterIcon, Ft as FlagIcon, Rt as FlashIcon, Zt as GiftIcon, ie as GithubIcon, _e as GlobeIcon, re as GoogleIcon, tn as GripIcon, Qt as HeadsetIcon, be as HelpIcon, Xe as HomeIcon, Gt as IdCardIcon, en as ImageIcon, ye as InfoIcon, Je as KeyIcon, Ht as LampIcon, Yt as LayoutIcon, Bt as LinceIcon, ht as LinkIcon, pn as ListBulletIcon, mn as ListNumberIcon, It as LocationIcon, nt as LockIcon, Fe as MailIcon, cn as MailUnreadIcon, xt as MenuIcon, yt as MinusCircleIcon, Ae as MobileIcon, ct as MoneyReceiveIcon, st as MoneySendIcon, ke as MonitorIcon, Oe as MoonIcon, ut as NoteIcon, Ot as PaletteIcon, an as PaperclipIcon, Re as PasskeyIcon, At as PauseIcon, Ne as PhoneIcon, me as PinIcon, Ct as PlayCircleIcon, Me as PlusIcon, Mt as ReceiptIcon, je as RefreshIcon, jt as RefundIcon, rn as ReplyAllIcon, nn as ReplyIcon, Te as RocketIcon, Dd as SELECT_BR_UF_TILES, ti as SELECT_CARD_BRANDS, Np as SELECT_COLOR_PRESETS, vc as SELECT_COL_DATETIME, yc as SELECT_COL_ID, Pr as SELECT_COUNTRIES, gp as SELECT_DAILY_PRESETS, pp as SELECT_DATE_PRESETS, Wr as SELECT_SPACE, Vc as SELECT_TOKEN_PATTERN, Br as SELECT_TRANSACTION_STATUS, oe as SearchIcon, $p as SelectAccordion, Do as SelectActionCard, Hr as SelectActionList, Ur as SelectActionMenu, qn as SelectAddButton, Mc as SelectAddCard, Rn as SelectAlert, Oo as SelectAppTile, Ou as SelectAssistant, H as SelectAuthFx, $i as SelectAvatar, la as SelectBackLink, zr as SelectBadge, nu as SelectBalanceCard, vr as SelectBankAccountField, Qu as SelectBarChart, Qr as SelectBox, Gd as SelectBoxPlot, ya as SelectBreadcrumb, Ep as SelectBuilderLayout, Dp as SelectBuilderWorkspace, Rd as SelectBullet, _f as SelectBump, U as SelectButton, fs as SelectCalendar, qd as SelectCalendarHeatmap, Wd as SelectCandlestick, ne as SelectCard, Nc as SelectCardGrid, Xp as SelectCertificatePreview, Fu as SelectChartCard, ld as SelectChartLegend, ku as SelectChatMessage, Au as SelectChatTurn, ju as SelectChatTyping, En as SelectCheckbox, na as SelectChipInput, Gp as SelectChoiceCard, Kp as SelectChoiceCardSkeleton, qp as SelectChoiceGrid, nf as SelectChord, wf as SelectCirclePack, wo as SelectCodeBlock, Eo as SelectCollapsible, Up as SelectColorField, cd as SelectColumnChart, id as SelectComboChart, mr as SelectCombobox, gc as SelectConfirmModal, tc as SelectConversation, ic as SelectConversationBubble, nc as SelectConversationDay, rc as SelectConversationEvent, So as SelectCopyRow, To as SelectCopyableId, ko as SelectCreateTile, jc as SelectDataTable, Il as SelectDateField, vp as SelectDatePicker, Cp as SelectDateRangeField, If as SelectDetailList, Lf as SelectDetailRow, Yc as SelectDeviceFrame, hi as SelectDisclosureButton, Qi as SelectDivider, In as SelectDocumentField, ad as SelectDonut, C as SelectDotField, zc as SelectDragHandle, Bc as SelectDragPreview, Xd as SelectDumbbell, Fc as SelectFactList, ru as SelectFeeBreakdown, Tn as SelectField, hr as SelectFieldGrid, Kn as SelectFileDropzone, zn as SelectFileTile, Vl as SelectFilterBar, xo as SelectFilterChip, kp as SelectFlowCanvas, jp as SelectFlowLayout, Ap as SelectFlowNode, Ca as SelectFormLayout, _c as SelectFormModal, yd as SelectFunnel, wd as SelectGauge, Qd as SelectGaugeBands, ff as SelectGlobe, Yr as SelectGrid, Td as SelectHeatmap, rf as SelectHexbin, _l as SelectHideMoneyToggle, Fd as SelectHorizontalBar, gs as SelectHtmlFrame, xf as SelectIcicle, Ma as SelectIcon, Y as SelectIconButton, $c as SelectIconPicker, md as SelectIconTile, aa as SelectIdentityFooter, Qp as SelectImageField, tr as SelectImageGalleryField, Yn as SelectImageUploadField, Jn as SelectImageUrlsField, $f as SelectImageZoomModal, ys as SelectInbox, bs as SelectInboxBanner, Cs as SelectInboxEmpty, xs as SelectInboxToolbar, xn as SelectInfoTip, Jr as SelectInline, wu as SelectInsight, Tu as SelectInsightList, Eu as SelectInsightRow, fd as SelectJourney, qi as SelectJsonViewer, No as SelectKanban, Po as SelectKanbanCard, jf as SelectKbd, ip as SelectKeyValueEditor, iu as SelectKpiCard, Sn as SelectLabelRow, Lc as SelectLayoutThumb, Ls as SelectLeadChip, nd as SelectLineChart, Zi as SelectLinkButton, Yf as SelectListCard, Zf as SelectListLabel, Xf as SelectListRow, va as SelectLoader, Us as SelectMailAttachButton, Is as SelectMailAttachment, zs as SelectMailComposer, Ws as SelectMailComposerAttachments, Hs as SelectMailComposerBody, Ks as SelectMailComposerFooter, Vs as SelectMailComposerInput, Bs as SelectMailComposerRow, fc as SelectMailEditor, ws as SelectMailList, Ts as SelectMailListGroup, Es as SelectMailListItem, Os as SelectMailListNote, Ds as SelectMailListSkeleton, As as SelectMailMessage, js as SelectMailNotice, Zc as SelectMailPreview, ks as SelectMailReader, Gs as SelectMailUpload, Ss as SelectMailboxStatus, Zd as SelectMarimekko, Sl as SelectMarkStack, tp as SelectMediaCell, za as SelectMenu, Ga as SelectMenuButton, Wa as SelectMenuDivider, Ua as SelectMenuHeading, Va as SelectMenuItem, Ha as SelectMenuLink, Xc as SelectMessageBubble, gl as SelectMetricDelta, _d as SelectMiniStats, mc as SelectModal, ml as SelectMoney, Mn as SelectMoneyField, Tf as SelectNetwork, Na as SelectNote, wp as SelectNumberField, Pu as SelectNumberedItem, Nu as SelectNumberedList, vl as SelectOfferPrice, np as SelectOfflineModal, ra as SelectOptionList, ia as SelectOptionRow, oa as SelectOtpInput, ba as SelectPage, ro as SelectPagination, Ia as SelectPanel, vf as SelectParallel, mf as SelectPareto, _a as SelectPasswordStrength, di as SelectPaymentBrand, vd as SelectPaymentCard, Ir as SelectPhoneField, pd as SelectPips, Jf as SelectPlanCard, Jd as SelectPolarArea, fr as SelectPopover, tu as SelectPreviewFrame, qc as SelectPreviewStage, Wp as SelectProgressBar, Od as SelectProgressList, gf as SelectPyramid, Hd as SelectRadar, Ad as SelectRadialBar, Lr as SelectRadioGroup, Kd as SelectRangeBar, bl as SelectRating, xl as SelectRatingQuote, Xs as SelectRecipientInput, Pc as SelectRecordCard, Tp as SelectRepeatingFieldArray, da as SelectResendButton, pa as SelectRetryStatus, dd as SelectRing, hc as SelectRowActions, Ud as SelectSankey, Vd as SelectScatter, $a as SelectSearchInput, Df as SelectSearchMenu, kf as SelectSearchMenuGroup, Af as SelectSearchMenuOption, La as SelectSection, Rr as SelectSegmented, nr as SelectSelect, pl as SelectSensitiveValue, Pa as SelectSettingList, Fa as SelectSettingRow, Vf as SelectSetupGuide, Hf as SelectSetupNext, ud as SelectShareBar, Qa as SelectSideNav, Aa as SelectSkeleton, Yd as SelectSlope, Rc as SelectSortableItem, Xu as SelectSparkline, nl as SelectSplitChain, hd as SelectSpotlight, qr as SelectStack, rd as SelectStackedArea, Vr as SelectStatusBadge, Rf as SelectSteps, $d as SelectStreamGraph, ef as SelectSunburst, Ul as SelectSurface, yr as SelectSwitch, Mp as SelectSwitchField, po as SelectTable, yo as SelectTableCell, bo as SelectTableEmpty, go as SelectTableRow, Ra as SelectTabs, Hl as SelectTagSelect, gd as SelectTaskCard, Zs as SelectTemplateMenu, $r as SelectText, Dn as SelectTextarea, Pf as SelectThemeSwitcher, Qf as SelectThumbnail, pf as SelectTicker, Ed as SelectTileMap, Xi as SelectTimeline, Xl as SelectToastProvider, br as SelectToggleList, Sr as SelectTogglePanel, xr as SelectToggleRow, Kc as SelectTokenTextarea, bn as SelectTooltip, qf as SelectTour, Sf as SelectTree, Bd as SelectTreemap, On as SelectUnitInput, ho as SelectUserCell, dl as SelectValueVisibilityProvider, Cf as SelectVenn, tf as SelectViolin, hf as SelectWaffle, Id as SelectWaterfall, af as SelectWordCloud, Ao as SelectWorkspaceSwitcher, ep as SelectZoomThumbnail, ve as SelectorIcon, tt as SendIcon, de as Setting4Icon, Ze as SettingsIcon, Be as ShieldIcon, Kt as ShieldTickIcon, on as SidebarIcon, Pt as SparkleIcon, ge as SplitIcon, he as StarIcon, _t as StoreIcon, St as StorefrontIcon, De as SunIcon, Xt as TargetIcon, we as TerminalIcon, ln as TextBoldIcon, un as TextItalicIcon, hn as TextQuoteIcon, fn as TextStrikeIcon, dn as TextUnderlineIcon, ft as TicketDiscountIcon, Ye as TrashIcon, Vt as TrendUpIcon, mt as TruckIcon, se as UploadIcon, Se as UserIcon, Dt as UsersIcon, Qe as WalletIcon, xe as WarningIcon, Ke as Web3Icon, $t as WhatsAppIcon, Ps as attachmentExt, ea as avatarInitials, es as calendarRange, Qo as calendarToday, Lp as contrastRatio, ur as detectSelectTheme, Fr as dialCodeOf, du as formatInsightImpact, ua as formatResendWait, Zn as galleryItemFromFile, Qn as galleryItemFromUrl, zp as hexToHsv, Bp as hsvToHex, Ys as isMailAddress, sc as mailLinkHref, _s as mailName, oc as mailTextToHtml, Fp as normalizeHex, ga as passwordScore, Co as prettyCode, Gc as readTokenText, Nf as resolveSelectTheme, ii as selectCardBrand, ai as selectCardBrandLabel, kc as useSelectPageSize, Zl as useSelectToast, fl as useSelectValueVisibility };
|
|
31181
31268
|
|
|
31182
31269
|
//# sourceMappingURL=index.js.map
|