bonsaif-ui 0.1.146 → 0.1.148
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/bonsaif-ui.js +449 -413
- package/dist/bonsaif-ui.umd.cjs +22 -16
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/copy-to-clipboard.d.ts.map +1 -1
- package/dist/lib/rich-code-block-html.d.ts +6 -0
- package/dist/lib/rich-code-block-html.d.ts.map +1 -1
- package/package.json +5 -1
package/dist/bonsaif-ui.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createPortal as Et } from "react-dom";
|
|
|
6
6
|
import { Tooltip as _d, ReferenceArea as Fd, Brush as Hd, ResponsiveContainer as nn, LineChart as Pd, CartesianGrid as Rn, XAxis as Qr, YAxis as Jr, Legend as Ha, Line as ps, AreaChart as zd, Area as jd, BarChart as hs, Bar as Ca, PieChart as Wd, Pie as qd, Cell as gs, Sector as Ud, ComposedChart as Vd } from "recharts";
|
|
7
7
|
import { OverlayScrollbars as fo } from "overlayscrollbars";
|
|
8
8
|
import { toast as Yd, Toaster as Kd } from "sonner";
|
|
9
|
-
import { toast as
|
|
9
|
+
import { toast as Jh } from "sonner";
|
|
10
10
|
import { OverlayScrollbarsComponent as Yi } from "overlayscrollbars-react";
|
|
11
11
|
import { DayPicker as ei } from "react-day-picker";
|
|
12
12
|
import "react-day-picker/dist/style.css";
|
|
@@ -14,7 +14,7 @@ import { FiSave as Xd } from "react-icons/fi";
|
|
|
14
14
|
function Lr(...e) {
|
|
15
15
|
return e.filter(Boolean).join(" ");
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Lp({
|
|
18
18
|
variant: e = "primary",
|
|
19
19
|
className: t,
|
|
20
20
|
type: n = "button",
|
|
@@ -745,7 +745,7 @@ function fu(e, t) {
|
|
|
745
745
|
/* @__PURE__ */ r(tt, { className: "mt-4", height: 36, padding: "0 14px", onClick: t, children: "Reintentar" })
|
|
746
746
|
] }) });
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function Dp({
|
|
749
749
|
parentPanel: e,
|
|
750
750
|
parentPanelComponent: t,
|
|
751
751
|
renderParentPanel: n,
|
|
@@ -1016,7 +1016,7 @@ const bu = {
|
|
|
1016
1016
|
icon: /* @__PURE__ */ r(ka, { className: "h-5 w-5" })
|
|
1017
1017
|
}
|
|
1018
1018
|
};
|
|
1019
|
-
function
|
|
1019
|
+
function Rp({
|
|
1020
1020
|
variant: e = "info",
|
|
1021
1021
|
title: t,
|
|
1022
1022
|
children: n,
|
|
@@ -1100,7 +1100,7 @@ function xu(e) {
|
|
|
1100
1100
|
const { year: t, month: n, day: a } = Ns(e);
|
|
1101
1101
|
return !t || !n || !a ? "Seleccionar fecha" : `${String(a).padStart(2, "0")} ${ws[n - 1]} ${t}`;
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function Op({
|
|
1104
1104
|
value: e,
|
|
1105
1105
|
onChange: t,
|
|
1106
1106
|
minDate: n,
|
|
@@ -1779,7 +1779,7 @@ function ks(e) {
|
|
|
1779
1779
|
if (t)
|
|
1780
1780
|
return t.replace(/\/+$/, "");
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function Bp(e) {
|
|
1783
1783
|
if (!e || typeof e != "object" || !e.dataTable) return;
|
|
1784
1784
|
const t = ks(
|
|
1785
1785
|
e.dataTable.preferencesEndpoint
|
|
@@ -1793,7 +1793,7 @@ function Rp(e) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1796
|
+
function Ip() {
|
|
1797
1797
|
return {
|
|
1798
1798
|
dataTable: {
|
|
1799
1799
|
pageSizeOptions: [...jt.dataTable.pageSizeOptions]
|
|
@@ -1803,14 +1803,14 @@ function Op() {
|
|
|
1803
1803
|
function Nn() {
|
|
1804
1804
|
return [...jt.dataTable.pageSizeOptions];
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function _p() {
|
|
1807
1807
|
jt = {
|
|
1808
1808
|
dataTable: {
|
|
1809
1809
|
pageSizeOptions: [...$a]
|
|
1810
1810
|
}
|
|
1811
1811
|
};
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1813
|
+
function Fp(e) {
|
|
1814
1814
|
jt = {
|
|
1815
1815
|
...jt,
|
|
1816
1816
|
dataTable: {
|
|
@@ -4646,7 +4646,7 @@ function ri(e) {
|
|
|
4646
4646
|
function Hu(e) {
|
|
4647
4647
|
return ri($s(e));
|
|
4648
4648
|
}
|
|
4649
|
-
function
|
|
4649
|
+
function Hp(e) {
|
|
4650
4650
|
const t = tn(e), n = t.getDay();
|
|
4651
4651
|
return n === 6 ? vr(t, -1) : n === 0 ? vr(t, -2) : t;
|
|
4652
4652
|
}
|
|
@@ -4933,7 +4933,7 @@ function ul({
|
|
|
4933
4933
|
}
|
|
4934
4934
|
);
|
|
4935
4935
|
}
|
|
4936
|
-
function
|
|
4936
|
+
function Pp({
|
|
4937
4937
|
items: e,
|
|
4938
4938
|
cursorDate: t,
|
|
4939
4939
|
onCursorDateChange: n,
|
|
@@ -5717,16 +5717,16 @@ function Gu(e) {
|
|
|
5717
5717
|
async function Ms(e) {
|
|
5718
5718
|
var n;
|
|
5719
5719
|
const t = String(e ?? "");
|
|
5720
|
-
if (t)
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
} catch {
|
|
5720
|
+
if (!t.trim())
|
|
5721
|
+
throw new Error("empty_clipboard_text");
|
|
5722
|
+
try {
|
|
5723
|
+
if (typeof window < "u" && window.focus(), (n = navigator.clipboard) != null && n.writeText) {
|
|
5724
|
+
await navigator.clipboard.writeText(t);
|
|
5725
|
+
return;
|
|
5727
5726
|
}
|
|
5728
|
-
|
|
5727
|
+
} catch {
|
|
5729
5728
|
}
|
|
5729
|
+
Gu(t);
|
|
5730
5730
|
}
|
|
5731
5731
|
function Zu(e) {
|
|
5732
5732
|
return typeof e == "function" ? e() : e;
|
|
@@ -5800,7 +5800,7 @@ function As({
|
|
|
5800
5800
|
}
|
|
5801
5801
|
);
|
|
5802
5802
|
}
|
|
5803
|
-
function
|
|
5803
|
+
function zp({
|
|
5804
5804
|
code: e,
|
|
5805
5805
|
children: t,
|
|
5806
5806
|
title: n = "Codigo",
|
|
@@ -5874,7 +5874,7 @@ function va(e) {
|
|
|
5874
5874
|
if (e !== void 0)
|
|
5875
5875
|
return typeof e == "number" ? `${e}px` : e;
|
|
5876
5876
|
}
|
|
5877
|
-
function
|
|
5877
|
+
function jp({
|
|
5878
5878
|
value: e,
|
|
5879
5879
|
onChange: t,
|
|
5880
5880
|
placeholder: n = "Buscar...",
|
|
@@ -5904,7 +5904,7 @@ function Pp({
|
|
|
5904
5904
|
)
|
|
5905
5905
|
] });
|
|
5906
5906
|
}
|
|
5907
|
-
function
|
|
5907
|
+
function Wp({
|
|
5908
5908
|
value: e,
|
|
5909
5909
|
onChange: t,
|
|
5910
5910
|
options: n,
|
|
@@ -6114,7 +6114,7 @@ const em = {
|
|
|
6114
6114
|
btnColor: "#fff"
|
|
6115
6115
|
}
|
|
6116
6116
|
};
|
|
6117
|
-
function
|
|
6117
|
+
function qp({
|
|
6118
6118
|
open: e,
|
|
6119
6119
|
title: t,
|
|
6120
6120
|
description: n,
|
|
@@ -6233,7 +6233,7 @@ function nm(e, t, n, a = !1) {
|
|
|
6233
6233
|
const l = tm(n);
|
|
6234
6234
|
return l ? ml(i, l) : a && typeof window < "u" ? ml(i, window.location.origin) : i;
|
|
6235
6235
|
}
|
|
6236
|
-
function
|
|
6236
|
+
function Up({
|
|
6237
6237
|
url: e,
|
|
6238
6238
|
resolveUrl: t,
|
|
6239
6239
|
baseUrl: n,
|
|
@@ -6366,7 +6366,7 @@ const cm = {
|
|
|
6366
6366
|
outlineOffset: "-2px",
|
|
6367
6367
|
borderRadius: "4px"
|
|
6368
6368
|
};
|
|
6369
|
-
function
|
|
6369
|
+
function Vp({
|
|
6370
6370
|
columns: e,
|
|
6371
6371
|
data: t,
|
|
6372
6372
|
getRowId: n,
|
|
@@ -6831,7 +6831,7 @@ function bm({ day: e, modifiers: t, ...n }) {
|
|
|
6831
6831
|
}
|
|
6832
6832
|
);
|
|
6833
6833
|
}
|
|
6834
|
-
function
|
|
6834
|
+
function Yp({
|
|
6835
6835
|
startDate: e,
|
|
6836
6836
|
endDate: t,
|
|
6837
6837
|
onChange: n,
|
|
@@ -7151,7 +7151,7 @@ function bl(e, t) {
|
|
|
7151
7151
|
const n = new Date(e);
|
|
7152
7152
|
return n.setDate(n.getDate() + t), n;
|
|
7153
7153
|
}
|
|
7154
|
-
function
|
|
7154
|
+
function Kp({
|
|
7155
7155
|
value: e = [],
|
|
7156
7156
|
onChange: t,
|
|
7157
7157
|
minDate: n,
|
|
@@ -7407,7 +7407,7 @@ function Vp({
|
|
|
7407
7407
|
] });
|
|
7408
7408
|
}
|
|
7409
7409
|
const gm = Array.from({ length: 12 }, (e, t) => t);
|
|
7410
|
-
function
|
|
7410
|
+
function Xp({
|
|
7411
7411
|
value: e = [],
|
|
7412
7412
|
onChange: t,
|
|
7413
7413
|
year: n,
|
|
@@ -7585,7 +7585,7 @@ function vm(e) {
|
|
|
7585
7585
|
if (e !== void 0)
|
|
7586
7586
|
return typeof e == "number" ? `${e}px` : e;
|
|
7587
7587
|
}
|
|
7588
|
-
function
|
|
7588
|
+
function Gp({
|
|
7589
7589
|
trigger: e,
|
|
7590
7590
|
items: t,
|
|
7591
7591
|
align: n = "end",
|
|
@@ -7687,7 +7687,7 @@ function Kp({
|
|
|
7687
7687
|
);
|
|
7688
7688
|
}
|
|
7689
7689
|
const ym = 180, hl = "bg-[color-mix(in_srgb,var(--bg-main)_72%,transparent)] backdrop-blur-sm";
|
|
7690
|
-
function
|
|
7690
|
+
function Zp({
|
|
7691
7691
|
open: e,
|
|
7692
7692
|
onClose: t,
|
|
7693
7693
|
title: n,
|
|
@@ -7991,39 +7991,39 @@ function Hs(e) {
|
|
|
7991
7991
|
const t = String(e), n = t.replace(/\D/g, "");
|
|
7992
7992
|
return Nm.test(t) && n.length >= km && n.length <= Em;
|
|
7993
7993
|
}
|
|
7994
|
-
function
|
|
7994
|
+
function Qp(e = "Este campo es requerido.") {
|
|
7995
7995
|
return (t) => Qt(t) ? e : void 0;
|
|
7996
7996
|
}
|
|
7997
|
-
function
|
|
7997
|
+
function Jp(e = "Ingresa un correo valido.") {
|
|
7998
7998
|
return (t) => Qt(t) || Fs(t) ? void 0 : e;
|
|
7999
7999
|
}
|
|
8000
|
-
function
|
|
8000
|
+
function eh(e = "Ingresa un telefono valido.") {
|
|
8001
8001
|
return (t) => Qt(t) || Hs(t) ? void 0 : e;
|
|
8002
8002
|
}
|
|
8003
|
-
function
|
|
8003
|
+
function th(e, t) {
|
|
8004
8004
|
return (n) => Qt(n) || String(n).length >= e ? void 0 : t ?? `Debe tener al menos ${e} caracteres.`;
|
|
8005
8005
|
}
|
|
8006
|
-
function
|
|
8006
|
+
function rh(e, t) {
|
|
8007
8007
|
return (n) => Qt(n) || String(n).length <= e ? void 0 : t ?? `Debe tener ${e} caracteres o menos.`;
|
|
8008
8008
|
}
|
|
8009
|
-
function
|
|
8009
|
+
function nh(e, t) {
|
|
8010
8010
|
return (n) => {
|
|
8011
8011
|
if (Qt(n)) return;
|
|
8012
8012
|
const a = _s(n);
|
|
8013
8013
|
return Number.isFinite(a) && a >= e ? void 0 : t ?? `Debe ser mayor o igual a ${e}.`;
|
|
8014
8014
|
};
|
|
8015
8015
|
}
|
|
8016
|
-
function
|
|
8016
|
+
function ah(e, t) {
|
|
8017
8017
|
return (n) => {
|
|
8018
8018
|
if (Qt(n)) return;
|
|
8019
8019
|
const a = _s(n);
|
|
8020
8020
|
return Number.isFinite(a) && a <= e ? void 0 : t ?? `Debe ser menor o igual a ${e}.`;
|
|
8021
8021
|
};
|
|
8022
8022
|
}
|
|
8023
|
-
function
|
|
8023
|
+
function oh(e, t = "El formato no es valido.") {
|
|
8024
8024
|
return (n) => Qt(n) || e.test(String(n)) ? void 0 : t;
|
|
8025
8025
|
}
|
|
8026
|
-
function
|
|
8026
|
+
function ih(e, t) {
|
|
8027
8027
|
const n = {};
|
|
8028
8028
|
for (const a of Object.keys(t)) {
|
|
8029
8029
|
const o = t[a];
|
|
@@ -8359,7 +8359,7 @@ function Ws({
|
|
|
8359
8359
|
function vl(e) {
|
|
8360
8360
|
return e == null ? "" : String(e);
|
|
8361
8361
|
}
|
|
8362
|
-
function
|
|
8362
|
+
function lh({
|
|
8363
8363
|
autoComplete: e = "email",
|
|
8364
8364
|
inputMode: t = "email",
|
|
8365
8365
|
validate: n = !0,
|
|
@@ -8413,7 +8413,7 @@ function yl(e, t) {
|
|
|
8413
8413
|
function Im(e, t, n) {
|
|
8414
8414
|
return t ? n === void 0 ? e : e.slice(0, Math.max(0, n)) : e.slice(0, 1);
|
|
8415
8415
|
}
|
|
8416
|
-
function
|
|
8416
|
+
function sh({
|
|
8417
8417
|
label: e,
|
|
8418
8418
|
helperText: t,
|
|
8419
8419
|
helperDisplay: n = "inline",
|
|
@@ -8585,7 +8585,7 @@ const _m = [
|
|
|
8585
8585
|
{ value: "archivo", label: "archivo" },
|
|
8586
8586
|
{ value: "imagen", label: "imagen" }
|
|
8587
8587
|
];
|
|
8588
|
-
function
|
|
8588
|
+
function ch({
|
|
8589
8589
|
fields: e,
|
|
8590
8590
|
title: t = "Layout",
|
|
8591
8591
|
fieldTypes: n = _m,
|
|
@@ -9476,7 +9476,7 @@ function Ym({
|
|
|
9476
9476
|
document.body
|
|
9477
9477
|
);
|
|
9478
9478
|
}
|
|
9479
|
-
function
|
|
9479
|
+
function dh({
|
|
9480
9480
|
children: e,
|
|
9481
9481
|
className: t,
|
|
9482
9482
|
style: n,
|
|
@@ -9546,7 +9546,7 @@ function Km(e, t) {
|
|
|
9546
9546
|
const n = ko(t);
|
|
9547
9547
|
return ko(e.label).includes(n) || !!(e.sublabel && ko(e.sublabel).includes(n));
|
|
9548
9548
|
}
|
|
9549
|
-
function
|
|
9549
|
+
function uh({
|
|
9550
9550
|
value: e,
|
|
9551
9551
|
onChange: t,
|
|
9552
9552
|
options: n,
|
|
@@ -10016,7 +10016,7 @@ function ch({
|
|
|
10016
10016
|
}
|
|
10017
10017
|
);
|
|
10018
10018
|
}
|
|
10019
|
-
function
|
|
10019
|
+
function mh({
|
|
10020
10020
|
inputMode: e = "decimal",
|
|
10021
10021
|
...t
|
|
10022
10022
|
}) {
|
|
@@ -10028,7 +10028,7 @@ function Xm(e, t, n) {
|
|
|
10028
10028
|
for (let l = o; l <= i; l += 1) a.push(l);
|
|
10029
10029
|
return i < t - 1 && a.push("..."), t > 1 && a.push(t), a;
|
|
10030
10030
|
}
|
|
10031
|
-
function
|
|
10031
|
+
function fh({
|
|
10032
10032
|
page: e,
|
|
10033
10033
|
totalPages: t,
|
|
10034
10034
|
onPageChange: n,
|
|
@@ -10311,7 +10311,7 @@ function ma(e) {
|
|
|
10311
10311
|
function Zm(e) {
|
|
10312
10312
|
return typeof e == "number" ? `${e}px` : e;
|
|
10313
10313
|
}
|
|
10314
|
-
function
|
|
10314
|
+
function bh({
|
|
10315
10315
|
autoComplete: e = "tel",
|
|
10316
10316
|
inputMode: t = "tel",
|
|
10317
10317
|
validate: n = !0,
|
|
@@ -10451,7 +10451,7 @@ function mh({
|
|
|
10451
10451
|
)
|
|
10452
10452
|
] });
|
|
10453
10453
|
}
|
|
10454
|
-
function
|
|
10454
|
+
function ph({
|
|
10455
10455
|
value: e,
|
|
10456
10456
|
onChange: t,
|
|
10457
10457
|
options: n,
|
|
@@ -10517,22 +10517,57 @@ const Qm = '<svg stroke="currentColor" fill="currentColor" stroke-width="0" view
|
|
|
10517
10517
|
function ef() {
|
|
10518
10518
|
return `<button type="button" class="rich-code-copy" data-action="copy-code" title="Copiar" aria-label="Copiar">${Qm}${Jm}</button>`;
|
|
10519
10519
|
}
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10520
|
+
const tf = /* @__PURE__ */ new Set([
|
|
10521
|
+
"div",
|
|
10522
|
+
"p",
|
|
10523
|
+
"li",
|
|
10524
|
+
"tr",
|
|
10525
|
+
"pre",
|
|
10526
|
+
"h1",
|
|
10527
|
+
"h2",
|
|
10528
|
+
"h3",
|
|
10529
|
+
"h4",
|
|
10530
|
+
"h5",
|
|
10531
|
+
"h6"
|
|
10532
|
+
]);
|
|
10533
|
+
function rf(e) {
|
|
10534
|
+
const t = (n) => {
|
|
10535
|
+
if (n.nodeType === Node.TEXT_NODE)
|
|
10536
|
+
return (n.textContent ?? "").replace(/\u00a0/g, " ");
|
|
10537
|
+
if (n.nodeType !== Node.ELEMENT_NODE) return "";
|
|
10538
|
+
const a = n, o = a.tagName.toLowerCase();
|
|
10539
|
+
if (o === "br") return `
|
|
10540
|
+
`;
|
|
10541
|
+
if (o === "script" || o === "style") return "";
|
|
10542
|
+
let i = "";
|
|
10543
|
+
for (const l of Array.from(a.childNodes))
|
|
10544
|
+
i += t(l);
|
|
10545
|
+
return tf.has(o) && i.length > 0 && !i.endsWith(`
|
|
10546
|
+
`) && (i += `
|
|
10547
|
+
`), i;
|
|
10548
|
+
};
|
|
10549
|
+
return t(e).replace(/\r\n?/g, `
|
|
10550
|
+
`).replace(/\n{3,}/g, `
|
|
10551
|
+
|
|
10552
|
+
`).replace(/^\n+/, "").replace(/\n+$/, "");
|
|
10553
|
+
}
|
|
10554
|
+
async function nf(e) {
|
|
10555
|
+
const t = e.closest(".rich-code-wrap"), n = t == null ? void 0 : t.querySelector("pre"), a = (n == null ? void 0 : n.querySelector("code")) ?? n, o = a ? rf(a) : "";
|
|
10556
|
+
if (!o.trim())
|
|
10557
|
+
throw new Error("empty_code_block");
|
|
10558
|
+
await Ms(o), af(e);
|
|
10559
|
+
}
|
|
10560
|
+
function af(e, t = 2e3) {
|
|
10526
10561
|
e.setAttribute("data-copied", "true"), e.title = "Copiado", e.setAttribute("aria-label", "Copiado"), window.setTimeout(() => {
|
|
10527
10562
|
e.removeAttribute("data-copied"), e.title = "Copiar", e.setAttribute("aria-label", "Copiar");
|
|
10528
10563
|
}, t);
|
|
10529
10564
|
}
|
|
10530
|
-
function
|
|
10565
|
+
function of(e, t, n = !0) {
|
|
10531
10566
|
const a = e.replace(/\r\n?/g, `
|
|
10532
|
-
`), o = t(a), i = `<div class="rich-code-wrap"><div class="rich-code-header" contenteditable="false"><span class="rich-code-label">Código</span>${ef()}</div><pre class="rich-code-block"><code>${o
|
|
10567
|
+
`), o = t(a).replace(/\n/g, "<br>") || "<br>", i = `<div class="rich-code-wrap"><div class="rich-code-header" contenteditable="false"><span class="rich-code-label">Código</span>${ef()}</div><pre class="rich-code-block"><code>${o}</code></pre></div>`;
|
|
10533
10568
|
return n ? `${i}<p><br></p>` : i;
|
|
10534
10569
|
}
|
|
10535
|
-
const
|
|
10570
|
+
const lf = /* @__PURE__ */ new Set([
|
|
10536
10571
|
"table",
|
|
10537
10572
|
"thead",
|
|
10538
10573
|
"tbody",
|
|
@@ -10561,7 +10596,7 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10561
10596
|
return null;
|
|
10562
10597
|
const o = Array.from(a.rows).indexOf(n);
|
|
10563
10598
|
return Wo(a, o + 1, e);
|
|
10564
|
-
},
|
|
10599
|
+
}, sf = (e, t) => {
|
|
10565
10600
|
var o;
|
|
10566
10601
|
const n = e.rows[t];
|
|
10567
10602
|
if (!n) return !1;
|
|
@@ -10572,7 +10607,7 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10572
10607
|
a ? o.textContent = `Columna ${n.cells.length + 1}` : o.innerHTML = "<br>";
|
|
10573
10608
|
const i = n.cells[t];
|
|
10574
10609
|
i != null && i.nextSibling ? n.insertBefore(o, i.nextSibling) : n.appendChild(o);
|
|
10575
|
-
}), !0),
|
|
10610
|
+
}), !0), cf = (e, t) => za(e) <= 1 ? !1 : (e.querySelectorAll("tr").forEach((n) => {
|
|
10576
10611
|
var a;
|
|
10577
10612
|
(a = n.cells[t]) == null || a.remove();
|
|
10578
10613
|
}), !0), Vs = (e) => {
|
|
@@ -10586,7 +10621,7 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10586
10621
|
var o;
|
|
10587
10622
|
(o = a.cells[n]) == null || o.classList.add("rich-table-col-active");
|
|
10588
10623
|
}));
|
|
10589
|
-
},
|
|
10624
|
+
}, df = (e, t, n) => {
|
|
10590
10625
|
const a = e.getBoundingClientRect();
|
|
10591
10626
|
return {
|
|
10592
10627
|
rowIndex: Array.from(e.rows).indexOf(t),
|
|
@@ -10613,7 +10648,7 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10613
10648
|
}), e.querySelectorAll(".rich-table-ui").forEach((t) => t.remove()), e.querySelectorAll("table").forEach((t) => {
|
|
10614
10649
|
t.classList.add("rich-table");
|
|
10615
10650
|
});
|
|
10616
|
-
},
|
|
10651
|
+
}, uf = (e, t, n, a, o) => {
|
|
10617
10652
|
switch (e) {
|
|
10618
10653
|
case "table-delete":
|
|
10619
10654
|
return t.remove(), !0;
|
|
@@ -10622,11 +10657,11 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10622
10657
|
return i && ya(i, o, !0), !!i;
|
|
10623
10658
|
}
|
|
10624
10659
|
case "table-row-del":
|
|
10625
|
-
return Number.isFinite(n) ?
|
|
10660
|
+
return Number.isFinite(n) ? sf(t, n) : !1;
|
|
10626
10661
|
case "table-col-add":
|
|
10627
|
-
return Number.isFinite(a) ? Us(t, a) :
|
|
10662
|
+
return Number.isFinite(a) ? Us(t, a) : pf(t);
|
|
10628
10663
|
case "table-col-del":
|
|
10629
|
-
return Number.isFinite(a) ?
|
|
10664
|
+
return Number.isFinite(a) ? cf(t, a) : !1;
|
|
10630
10665
|
default:
|
|
10631
10666
|
return !1;
|
|
10632
10667
|
}
|
|
@@ -10635,20 +10670,20 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10635
10670
|
return e.querySelectorAll("tr").forEach((n) => {
|
|
10636
10671
|
t = Math.max(t, n.cells.length);
|
|
10637
10672
|
}), t || 1;
|
|
10638
|
-
},
|
|
10673
|
+
}, mf = (e) => {
|
|
10639
10674
|
const t = e.tBodies[0] ?? e.createTBody();
|
|
10640
10675
|
return Array.from(t.rows);
|
|
10641
10676
|
}, Cl = (e) => (e == null ? void 0 : e.closest("table")) ?? null, $l = (e) => {
|
|
10642
10677
|
if (!e) return null;
|
|
10643
10678
|
const t = e.nodeType === Node.ELEMENT_NODE ? e : e.parentElement;
|
|
10644
10679
|
return (t == null ? void 0 : t.closest("td, th")) ?? null;
|
|
10645
|
-
},
|
|
10680
|
+
}, ff = (e) => Array.from(e.querySelectorAll("th, td")), Tl = (e, t) => {
|
|
10646
10681
|
if (e.closest("thead")) return !1;
|
|
10647
10682
|
const n = e.closest("tbody") ?? t.tBodies[0];
|
|
10648
10683
|
if (!n) return !1;
|
|
10649
10684
|
const a = Array.from(n.rows), o = e.closest("tr");
|
|
10650
10685
|
return !o || o !== a[a.length - 1] ? !1 : e === o.cells[o.cells.length - 1];
|
|
10651
|
-
},
|
|
10686
|
+
}, bf = (e) => {
|
|
10652
10687
|
const t = window.getSelection();
|
|
10653
10688
|
if (!t || !t.isCollapsed || t.rangeCount === 0)
|
|
10654
10689
|
return !1;
|
|
@@ -10663,7 +10698,7 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10663
10698
|
const o = window.getSelection();
|
|
10664
10699
|
o == null || o.removeAllRanges(), o == null || o.addRange(a);
|
|
10665
10700
|
}, qo = (e) => {
|
|
10666
|
-
const t =
|
|
10701
|
+
const t = mf(e);
|
|
10667
10702
|
if (t.length >= rn) return null;
|
|
10668
10703
|
const n = t[t.length - 1];
|
|
10669
10704
|
if (!n) {
|
|
@@ -10674,12 +10709,12 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10674
10709
|
e,
|
|
10675
10710
|
Array.from(e.rows).indexOf(n)
|
|
10676
10711
|
);
|
|
10677
|
-
},
|
|
10712
|
+
}, pf = (e) => {
|
|
10678
10713
|
const t = za(e) - 1;
|
|
10679
10714
|
return t < 0 ? !1 : Us(e, t);
|
|
10680
10715
|
}, Eo = (e) => {
|
|
10681
10716
|
Ys(e);
|
|
10682
|
-
},
|
|
10717
|
+
}, hf = (e, t, n) => {
|
|
10683
10718
|
const a = Aa(e, 1, rn), o = Aa(t, 1, La), i = n ? `<thead><tr>${Array.from(
|
|
10684
10719
|
{ length: o },
|
|
10685
10720
|
(s, d) => `<th>Columna ${d + 1}</th>`
|
|
@@ -10691,7 +10726,7 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10691
10726
|
}, Ks = () => '<button type="button" class="rich-img-del" data-action="delete-img" title="Eliminar imagen"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M9 2a1 1 0 0 0-.894.553L7.382 4H4a1 1 0 0 0 0 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V6a1 1 0 0 0 0-2h-3.382l-.724-1.447A1 1 0 0 0 11 2H9zm-1 6a1 1 0 1 1 2 0v4a1 1 0 1 1-2 0V8zm4 0a1 1 0 1 1 2 0v4a1 1 0 1 1-2 0V8z" clip-rule="evenodd"/></svg></button>', Kr = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), Xs = (e) => e.toLocaleLowerCase().replace(
|
|
10692
10727
|
new RegExp("(^|[^\\p{L}\\p{N}])(\\p{L})", "gu"),
|
|
10693
10728
|
(t, n, a) => `${n}${a.toLocaleUpperCase()}`
|
|
10694
|
-
),
|
|
10729
|
+
), gf = (e) => e.replace(/[<>]/g, "").toLowerCase(), xf = /* @__PURE__ */ new Set([
|
|
10695
10730
|
"p",
|
|
10696
10731
|
"br",
|
|
10697
10732
|
"div",
|
|
@@ -10725,13 +10760,13 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10725
10760
|
"th",
|
|
10726
10761
|
"td",
|
|
10727
10762
|
"caption"
|
|
10728
|
-
]),
|
|
10763
|
+
]), vf = /^[\s\u00a0]*([•●○■▪▫◆◇►▶➢❖✓✔\-–—*])[\s\u00a0]+/, yf = (e) => {
|
|
10729
10764
|
const t = e.indexOf("<!--StartFragment-->"), n = e.indexOf("<!--EndFragment-->");
|
|
10730
10765
|
if (t !== -1 && n !== -1 && n > t)
|
|
10731
10766
|
return e.slice(t + 20, n);
|
|
10732
10767
|
const a = e.match(/<body[^>]*>([\s\S]*)<\/body>/i);
|
|
10733
10768
|
return a ? a[1] : e;
|
|
10734
|
-
}, ja = (e, t) => t.test(e),
|
|
10769
|
+
}, ja = (e, t) => t.test(e), wf = (e) => ja(e, /font-weight\s*:\s*(bold|[6-9]00)/i), Nf = (e) => ja(e, /font-style\s*:\s*italic/i), kf = (e) => ja(e, /text-decoration(?:-line)?\s*:[^;]*underline/i), Ef = (e) => ja(
|
|
10735
10770
|
e,
|
|
10736
10771
|
/text-decoration(?:-line)?\s*:[^;]*(line-through|linethrough)/i
|
|
10737
10772
|
), ba = (e, t) => {
|
|
@@ -10749,18 +10784,18 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10749
10784
|
}
|
|
10750
10785
|
for (; e.firstChild; ) t.insertBefore(e.firstChild, e);
|
|
10751
10786
|
t.removeChild(e);
|
|
10752
|
-
},
|
|
10787
|
+
}, Sf = (e) => {
|
|
10753
10788
|
const t = e.getAttribute("class") ?? "", n = e.getAttribute("style") ?? "";
|
|
10754
10789
|
return /mso-list/i.test(n) || /MsoListParagraph/i.test(t) || /MsoList/i.test(t);
|
|
10755
10790
|
}, Ml = (e) => {
|
|
10756
10791
|
const t = e.getAttribute("style") ?? "", n = e.textContent ?? "";
|
|
10757
10792
|
return /mso-level-number-format\s*:\s*(decimal|arabic|roman|alpha)/i.test(t) || /^\s*\d+[.)]\s/.test(n) || /^\s*[a-zA-Z][.)]\s/.test(n) ? "ol" : "ul";
|
|
10758
|
-
},
|
|
10793
|
+
}, Cf = (e) => {
|
|
10759
10794
|
const n = e.ownerDocument.createTreeWalker(e, NodeFilter.SHOW_TEXT).nextNode();
|
|
10760
10795
|
if (!n || !n.textContent) return;
|
|
10761
|
-
const a = n.textContent.replace(
|
|
10796
|
+
const a = n.textContent.replace(vf, "").replace(/^\s*\d+[.)]\s+/, "").replace(/^\s*[a-zA-Z][.)]\s+/, "");
|
|
10762
10797
|
a !== n.textContent && (n.textContent = a);
|
|
10763
|
-
},
|
|
10798
|
+
}, $f = (e) => {
|
|
10764
10799
|
const t = Array.from(
|
|
10765
10800
|
e.querySelectorAll(
|
|
10766
10801
|
"span, font, p, div, li, h1, h2, h3, h4"
|
|
@@ -10770,12 +10805,12 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10770
10805
|
(n, a) => a.querySelectorAll("*").length - n.querySelectorAll("*").length
|
|
10771
10806
|
), t.forEach((n) => {
|
|
10772
10807
|
const a = n.getAttribute("style") ?? "";
|
|
10773
|
-
a && (
|
|
10808
|
+
a && (wf(a) && ba(n, "strong"), Nf(a) && ba(n, "em"), kf(a) && ba(n, "u"), Ef(a) && ba(n, "s"));
|
|
10774
10809
|
});
|
|
10775
|
-
},
|
|
10810
|
+
}, Tf = (e) => {
|
|
10776
10811
|
const t = Array.from(
|
|
10777
10812
|
e.querySelectorAll("p, div")
|
|
10778
|
-
).filter(
|
|
10813
|
+
).filter(Sf);
|
|
10779
10814
|
if (!t.length) return;
|
|
10780
10815
|
let n = 0;
|
|
10781
10816
|
for (; n < t.length; ) {
|
|
@@ -10797,14 +10832,14 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10797
10832
|
}
|
|
10798
10833
|
const d = a.ownerDocument.createElement(o);
|
|
10799
10834
|
s.insertBefore(d, a), i.forEach((u) => {
|
|
10800
|
-
|
|
10835
|
+
Cf(u);
|
|
10801
10836
|
const b = u.ownerDocument.createElement("li");
|
|
10802
10837
|
for (; u.firstChild; ) b.appendChild(u.firstChild);
|
|
10803
10838
|
d.appendChild(b), u.remove();
|
|
10804
10839
|
}), n = l;
|
|
10805
10840
|
}
|
|
10806
|
-
},
|
|
10807
|
-
const t =
|
|
10841
|
+
}, Mf = (e) => e === "h1" ? "h2" : e === "h4" || e === "h5" || e === "h6" ? "h3" : e === "div" ? "p" : e, Af = (e) => {
|
|
10842
|
+
const t = yf(
|
|
10808
10843
|
e.replace(/<!--\[if[\s\S]*?<!\[endif\]-->/gi, "").replace(/<xml[\s\S]*?<\/xml>/gi, "").replace(/<style[\s\S]*?<\/style>/gi, "").replace(/<\/?o:[^>]*>/gi, "").replace(/<\/?w:[^>]*>/gi, "").replace(/<\/?m:[^>]*>/gi, "")
|
|
10809
10844
|
), a = new DOMParser().parseFromString(
|
|
10810
10845
|
`<!DOCTYPE html><html><body>${t}</body></html>`,
|
|
@@ -10812,7 +10847,7 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10812
10847
|
), o = a.body;
|
|
10813
10848
|
o.querySelectorAll(
|
|
10814
10849
|
"script, style, meta, link, xml, title, head, iframe, object, embed, form, input, textarea, select, noscript"
|
|
10815
|
-
).forEach((l) => l.remove()),
|
|
10850
|
+
).forEach((l) => l.remove()), $f(o), Tf(o);
|
|
10816
10851
|
const i = (l) => {
|
|
10817
10852
|
const s = Array.from(l.childNodes);
|
|
10818
10853
|
if (l.nodeType === Node.ELEMENT_NODE) {
|
|
@@ -10825,7 +10860,7 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10825
10860
|
pa(d), s.forEach(i);
|
|
10826
10861
|
return;
|
|
10827
10862
|
}
|
|
10828
|
-
if (!
|
|
10863
|
+
if (!xf.has(u)) {
|
|
10829
10864
|
pa(d), s.forEach(i);
|
|
10830
10865
|
return;
|
|
10831
10866
|
}
|
|
@@ -10876,14 +10911,14 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10876
10911
|
}), s.forEach(i);
|
|
10877
10912
|
return;
|
|
10878
10913
|
}
|
|
10879
|
-
const b =
|
|
10914
|
+
const b = Mf(u);
|
|
10880
10915
|
if (b !== u) {
|
|
10881
10916
|
const f = d.ownerDocument.createElement(b);
|
|
10882
10917
|
for (; d.firstChild; ) f.appendChild(d.firstChild);
|
|
10883
10918
|
d.replaceWith(f), i(f);
|
|
10884
10919
|
return;
|
|
10885
10920
|
}
|
|
10886
|
-
if (
|
|
10921
|
+
if (lf.has(u)) {
|
|
10887
10922
|
Array.from(d.attributes).forEach((f) => {
|
|
10888
10923
|
const m = f.name.toLowerCase();
|
|
10889
10924
|
if (u === "td" || u === "th") {
|
|
@@ -10956,7 +10991,7 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10956
10991
|
}
|
|
10957
10992
|
}), o.innerHTML.replace(/<!--[\s\S]*?-->/g, "").replace(/ /gi, " ").replace(/(<br\s*\/?>\s*){3,}/gi, "<br><br>").replace(/<p>(?:\s|<br\s*\/?>)*<\/p>/gi, "").trim();
|
|
10958
10993
|
}, So = (e) => Kr(e).replace(/\r\n?/g, `
|
|
10959
|
-
`).split(/\n{2,}/).map((t) => `<p>${t.replace(/\n/g, "<br>") || "<br>"}</p>`).join(""), ci = (e, t = !0) =>
|
|
10994
|
+
`).split(/\n{2,}/).map((t) => `<p>${t.replace(/\n/g, "<br>") || "<br>"}</p>`).join(""), ci = (e, t = !0) => of(e, Kr, t), $n = (e) => {
|
|
10960
10995
|
const t = e.replace(/\r\n?/g, `
|
|
10961
10996
|
`);
|
|
10962
10997
|
if (!/```/.test(t)) return So(e);
|
|
@@ -10965,7 +11000,7 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10965
11000
|
for (; (i = a.exec(t)) !== null; )
|
|
10966
11001
|
i.index > o && n.push(So(t.slice(o, i.index))), n.push(ci(i[1] ?? "")), o = a.lastIndex;
|
|
10967
11002
|
return o < t.length && n.push(So(t.slice(o))), n.join("");
|
|
10968
|
-
}, Al = /```[\s\S]+?```/,
|
|
11003
|
+
}, Al = /```[\s\S]+?```/, Lf = (e) => {
|
|
10969
11004
|
const t = (e.textContent ?? "").replace(/\u00a0/g, " ");
|
|
10970
11005
|
if (!e.querySelector(".rich-code-wrap") && t.includes("```") && Al.test(t)) {
|
|
10971
11006
|
const o = $n(t);
|
|
@@ -10992,9 +11027,9 @@ const af = /* @__PURE__ */ new Set([
|
|
|
10992
11027
|
}
|
|
10993
11028
|
}
|
|
10994
11029
|
return n;
|
|
10995
|
-
},
|
|
11030
|
+
}, Df = (e) => new RegExp("\\p{L}", "u").test(e), Co = (e, t) => {
|
|
10996
11031
|
const n = e.trim();
|
|
10997
|
-
return !n || !
|
|
11032
|
+
return !n || !Df(n) ? !1 : t === "uppercase" ? n === n.toLocaleUpperCase() : t === "lowercase" ? n === n.toLocaleLowerCase() : n === Xs(n);
|
|
10998
11033
|
}, Ll = (e) => {
|
|
10999
11034
|
const t = (a) => {
|
|
11000
11035
|
var o, i;
|
|
@@ -11113,7 +11148,7 @@ function Gs({
|
|
|
11113
11148
|
}
|
|
11114
11149
|
});
|
|
11115
11150
|
try {
|
|
11116
|
-
const he =
|
|
11151
|
+
const he = gf(
|
|
11117
11152
|
u().queryCommandValue("formatBlock")
|
|
11118
11153
|
);
|
|
11119
11154
|
he && V.add(`formatBlock:${he}`);
|
|
@@ -11131,7 +11166,7 @@ function Gs({
|
|
|
11131
11166
|
}, [te, u]), re = () => {
|
|
11132
11167
|
var V;
|
|
11133
11168
|
const B = N();
|
|
11134
|
-
B && (
|
|
11169
|
+
B && (Lf(B), k.current = fa(B), S.current = !0, g.current(k.current), O(((V = B.textContent) == null ? void 0 : V.trim()) === ""));
|
|
11135
11170
|
};
|
|
11136
11171
|
L.current = re;
|
|
11137
11172
|
const xe = be(() => {
|
|
@@ -11157,7 +11192,7 @@ function Gs({
|
|
|
11157
11192
|
return;
|
|
11158
11193
|
}
|
|
11159
11194
|
const ge = (W == null ? void 0 : W.rowIndex) ?? (E == null ? void 0 : E.rowIndex) ?? -1, he = (W == null ? void 0 : W.colIndex) ?? (E == null ? void 0 : E.colIndex) ?? -1;
|
|
11160
|
-
|
|
11195
|
+
uf(B, V, ge, he, N()), xe(), L.current(), me();
|
|
11161
11196
|
},
|
|
11162
11197
|
[N, xe, me, E, W]
|
|
11163
11198
|
), St = be(
|
|
@@ -11183,7 +11218,7 @@ function Gs({
|
|
|
11183
11218
|
Ne,
|
|
11184
11219
|
he.cellIndex
|
|
11185
11220
|
), ie(
|
|
11186
|
-
|
|
11221
|
+
df(
|
|
11187
11222
|
ke,
|
|
11188
11223
|
Ne,
|
|
11189
11224
|
he
|
|
@@ -11282,7 +11317,7 @@ function Gs({
|
|
|
11282
11317
|
Ye(), (B = N()) == null || B.focus(), u().execCommand(
|
|
11283
11318
|
"insertHTML",
|
|
11284
11319
|
!1,
|
|
11285
|
-
|
|
11320
|
+
hf(K, X, M)
|
|
11286
11321
|
), re(), w(null);
|
|
11287
11322
|
}, pe = () => {
|
|
11288
11323
|
var ge;
|
|
@@ -11342,7 +11377,7 @@ function Gs({
|
|
|
11342
11377
|
if (Ne || ke) {
|
|
11343
11378
|
ge.preventDefault(), ge.stopPropagation();
|
|
11344
11379
|
try {
|
|
11345
|
-
const et = Ne ?
|
|
11380
|
+
const et = Ne ? Af(Ne) : $n(ke);
|
|
11346
11381
|
if (!et) {
|
|
11347
11382
|
ke && Pe.current($n(ke));
|
|
11348
11383
|
return;
|
|
@@ -11423,7 +11458,7 @@ function Gs({
|
|
|
11423
11458
|
const he = window.getSelection(), Ne = $l((he == null ? void 0 : he.anchorNode) ?? null), ke = N(), Ie = Cl(Ne);
|
|
11424
11459
|
if (Ne && Ie && (ke != null && ke.contains(Ne))) {
|
|
11425
11460
|
B.preventDefault();
|
|
11426
|
-
const Be =
|
|
11461
|
+
const Be = ff(Ie), bt = Be.indexOf(Ne), et = bt >= 0 ? Be[bt + 1] : null;
|
|
11427
11462
|
if (et) ya(et, ke, !0);
|
|
11428
11463
|
else if (Tl(Ne, Ie)) {
|
|
11429
11464
|
const sr = qo(Ie);
|
|
@@ -11437,7 +11472,7 @@ function Gs({
|
|
|
11437
11472
|
}
|
|
11438
11473
|
if (B.key === "Enter" && !B.shiftKey && !(B.metaKey || B.ctrlKey)) {
|
|
11439
11474
|
const he = window.getSelection(), Ne = $l((he == null ? void 0 : he.anchorNode) ?? null), ke = N(), Ie = Cl(Ne);
|
|
11440
|
-
if (Ne && Ie && (ke != null && ke.contains(Ne)) && Tl(Ne, Ie) &&
|
|
11475
|
+
if (Ne && Ie && (ke != null && ke.contains(Ne)) && Tl(Ne, Ie) && bf(Ne)) {
|
|
11441
11476
|
B.preventDefault();
|
|
11442
11477
|
const Be = qo(Ie);
|
|
11443
11478
|
Be && ya(Be, ke, !0), re(), me();
|
|
@@ -11495,7 +11530,7 @@ function Gs({
|
|
|
11495
11530
|
return;
|
|
11496
11531
|
}
|
|
11497
11532
|
const ge = V.closest("[data-action='copy-code']");
|
|
11498
|
-
ge instanceof HTMLButtonElement && (B.preventDefault(),
|
|
11533
|
+
ge instanceof HTMLButtonElement && (B.preventDefault(), nf(ge).catch(() => {
|
|
11499
11534
|
}));
|
|
11500
11535
|
}, lr = () => {
|
|
11501
11536
|
Ce(), Q.current = !0;
|
|
@@ -12125,7 +12160,7 @@ function Gs({
|
|
|
12125
12160
|
)
|
|
12126
12161
|
] });
|
|
12127
12162
|
}
|
|
12128
|
-
const Zs = "[a-zA-Z0-9._@-]+", Uo = new RegExp(`@(${Zs})`, "g"),
|
|
12163
|
+
const Zs = "[a-zA-Z0-9._@-]+", Uo = new RegExp(`@(${Zs})`, "g"), Rf = /[a-zA-Z0-9._@-]/, Tn = /* @__PURE__ */ new Set([
|
|
12129
12164
|
" ",
|
|
12130
12165
|
`
|
|
12131
12166
|
`,
|
|
@@ -12162,13 +12197,13 @@ function Qs(e, t) {
|
|
|
12162
12197
|
const n = e[t - 1] ?? "";
|
|
12163
12198
|
return Tn.has(n);
|
|
12164
12199
|
}
|
|
12165
|
-
function
|
|
12200
|
+
function Of(e, t, n) {
|
|
12166
12201
|
var a;
|
|
12167
12202
|
if (t < 0 || t > e.length) return null;
|
|
12168
12203
|
for (let o = t - 1; o >= 0; o -= 1) {
|
|
12169
12204
|
if (e[o] !== "@") {
|
|
12170
12205
|
const s = e[o] ?? "";
|
|
12171
|
-
if (Tn.has(s) || !
|
|
12206
|
+
if (Tn.has(s) || !Rf.test(s))
|
|
12172
12207
|
return null;
|
|
12173
12208
|
continue;
|
|
12174
12209
|
}
|
|
@@ -12183,12 +12218,12 @@ function Df(e, t, n) {
|
|
|
12183
12218
|
}
|
|
12184
12219
|
return null;
|
|
12185
12220
|
}
|
|
12186
|
-
function
|
|
12221
|
+
function Bf(e, t) {
|
|
12187
12222
|
var a;
|
|
12188
12223
|
const n = Ln(e, t);
|
|
12189
12224
|
return n ? !!((a = n.node.parentElement) != null && a.closest(".mention-chip")) : !1;
|
|
12190
12225
|
}
|
|
12191
|
-
function
|
|
12226
|
+
function If(e, t) {
|
|
12192
12227
|
if (t <= 0) return !0;
|
|
12193
12228
|
const n = Ln(e, t);
|
|
12194
12229
|
if (!n) {
|
|
@@ -12225,15 +12260,15 @@ function Of(e, t) {
|
|
|
12225
12260
|
}
|
|
12226
12261
|
function Dl(e, t) {
|
|
12227
12262
|
const n = nc(e);
|
|
12228
|
-
return
|
|
12229
|
-
isTriggerBoundary: (a) =>
|
|
12230
|
-
isInsideExistingMention: (a) =>
|
|
12263
|
+
return Of(n, t, {
|
|
12264
|
+
isTriggerBoundary: (a) => If(e, a),
|
|
12265
|
+
isInsideExistingMention: (a) => Bf(e, a)
|
|
12231
12266
|
});
|
|
12232
12267
|
}
|
|
12233
12268
|
function Js(e) {
|
|
12234
12269
|
return e.toLowerCase().trim();
|
|
12235
12270
|
}
|
|
12236
|
-
function
|
|
12271
|
+
function _f(e) {
|
|
12237
12272
|
return e ? e.replace(/<style[^>]*>[\s\S]*?<\/style>/gi, " ").replace(/<script[^>]*>[\s\S]*?<\/script>/gi, " ").replace(/<br\s*\/?>/gi, `
|
|
12238
12273
|
`).replace(/<\/(p|div|li)>/gi, `
|
|
12239
12274
|
`).replace(/<[^>]+>/g, " ").replace(/ /g, " ").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, '"').replace(/'/g, "'").replace(/\s+/g, " ").trim() : "";
|
|
@@ -12247,18 +12282,18 @@ function ec(e) {
|
|
|
12247
12282
|
let i;
|
|
12248
12283
|
for (; (i = o.exec(e)) !== null; )
|
|
12249
12284
|
a(i[1] ?? "");
|
|
12250
|
-
const l =
|
|
12285
|
+
const l = _f(e);
|
|
12251
12286
|
Uo.lastIndex = 0;
|
|
12252
12287
|
let s;
|
|
12253
12288
|
for (; (s = Uo.exec(l)) !== null; )
|
|
12254
12289
|
a(s[1] ?? "");
|
|
12255
12290
|
return n;
|
|
12256
12291
|
}
|
|
12257
|
-
function
|
|
12292
|
+
function Ff(e) {
|
|
12258
12293
|
const t = String(e.name ?? "").trim();
|
|
12259
12294
|
return t || String(e.username ?? "").trim() || "usuario";
|
|
12260
12295
|
}
|
|
12261
|
-
function
|
|
12296
|
+
function hh(e, t) {
|
|
12262
12297
|
const n = ec(e);
|
|
12263
12298
|
if (!n.length) return [];
|
|
12264
12299
|
const a = /* @__PURE__ */ new Map();
|
|
@@ -12277,13 +12312,13 @@ function bh(e, t) {
|
|
|
12277
12312
|
}
|
|
12278
12313
|
return i;
|
|
12279
12314
|
}
|
|
12280
|
-
function
|
|
12315
|
+
function Hf(e) {
|
|
12281
12316
|
const t = /* @__PURE__ */ new Set(), n = [];
|
|
12282
12317
|
for (const a of e)
|
|
12283
12318
|
t.has(a.userId) || (t.add(a.userId), n.push(a));
|
|
12284
12319
|
return n;
|
|
12285
12320
|
}
|
|
12286
|
-
function
|
|
12321
|
+
function gh(e, t) {
|
|
12287
12322
|
return t ? e.filter((n) => n.userId !== t) : e;
|
|
12288
12323
|
}
|
|
12289
12324
|
function tc(e) {
|
|
@@ -12293,7 +12328,7 @@ function tc(e) {
|
|
|
12293
12328
|
t = t.nextSibling;
|
|
12294
12329
|
return t && t.nodeType === Node.ELEMENT_NODE && ((n = t.classList) != null && n.contains("mention-chip")) ? " " : !t || t.nodeType === Node.ELEMENT_NODE && t.tagName === "BR" ? " " : " ";
|
|
12295
12330
|
}
|
|
12296
|
-
function
|
|
12331
|
+
function Pf(e) {
|
|
12297
12332
|
return !e || !/@/.test(e) ? e : e.replace(Uo, (t, n, a, o) => {
|
|
12298
12333
|
const i = o.slice(0, a), l = i.lastIndexOf("<"), s = i.lastIndexOf(">");
|
|
12299
12334
|
if (l > s) return t;
|
|
@@ -12333,7 +12368,7 @@ function rc(e) {
|
|
|
12333
12368
|
const s = t.createRange();
|
|
12334
12369
|
s.setStart(i, ((d = i.textContent) == null ? void 0 : d.length) ?? 1), s.collapse(!0), l.removeAllRanges(), l.addRange(s);
|
|
12335
12370
|
}
|
|
12336
|
-
const
|
|
12371
|
+
const zf = /* @__PURE__ */ new Set([
|
|
12337
12372
|
"P",
|
|
12338
12373
|
"DIV",
|
|
12339
12374
|
"LI",
|
|
@@ -12346,7 +12381,7 @@ const Hf = /* @__PURE__ */ new Set([
|
|
|
12346
12381
|
"BLOCKQUOTE"
|
|
12347
12382
|
]);
|
|
12348
12383
|
function Rl(e, t) {
|
|
12349
|
-
return
|
|
12384
|
+
return zf.has(e.tagName) && e !== t;
|
|
12350
12385
|
}
|
|
12351
12386
|
function di(e, t) {
|
|
12352
12387
|
let n = "", a, o, i = !1;
|
|
@@ -12401,14 +12436,14 @@ function Ln(e, t) {
|
|
|
12401
12436
|
function Vo(e, t, n) {
|
|
12402
12437
|
return e !== t && !e.contains(t) ? -1 : di(e, { domPoint: { container: t, offset: n } }).domOffset ?? -1;
|
|
12403
12438
|
}
|
|
12404
|
-
function
|
|
12439
|
+
function jf(e, t) {
|
|
12405
12440
|
const { triggerIndex: n, caretIndex: a, username: o } = t;
|
|
12406
12441
|
if (a < n) return null;
|
|
12407
12442
|
const i = Ln(e, n), l = Ln(e, a);
|
|
12408
12443
|
if (!i || !l) return null;
|
|
12409
12444
|
const s = e.ownerDocument, d = s.createRange();
|
|
12410
12445
|
d.setStart(i.node, i.offset), d.setEnd(l.node, l.offset), d.deleteContents();
|
|
12411
|
-
const u =
|
|
12446
|
+
const u = Ff({
|
|
12412
12447
|
name: t.display,
|
|
12413
12448
|
username: o
|
|
12414
12449
|
}), b = s.createElement("span");
|
|
@@ -12424,7 +12459,7 @@ function Pf(e, t) {
|
|
|
12424
12459
|
caretPlainOffset: k >= 0 ? k : n + u.length + 1
|
|
12425
12460
|
};
|
|
12426
12461
|
}
|
|
12427
|
-
function
|
|
12462
|
+
function Wf(e, t) {
|
|
12428
12463
|
const n = e.ownerDocument, a = n.defaultView;
|
|
12429
12464
|
if (!a) return;
|
|
12430
12465
|
const o = a.getSelection();
|
|
@@ -12441,7 +12476,7 @@ function ac(e, t) {
|
|
|
12441
12476
|
n = t === "prev" ? n.previousSibling : n.nextSibling;
|
|
12442
12477
|
return n;
|
|
12443
12478
|
}
|
|
12444
|
-
function
|
|
12479
|
+
function qf(e) {
|
|
12445
12480
|
var o;
|
|
12446
12481
|
const t = e.ownerDocument, n = (o = t.defaultView) == null ? void 0 : o.getSelection();
|
|
12447
12482
|
if (!n) return;
|
|
@@ -12469,18 +12504,18 @@ function Yo(e) {
|
|
|
12469
12504
|
o.classList.toggle("is-selected", i);
|
|
12470
12505
|
});
|
|
12471
12506
|
}
|
|
12472
|
-
function
|
|
12507
|
+
function Uf(e) {
|
|
12473
12508
|
var o;
|
|
12474
12509
|
const t = e.ownerDocument, n = (o = t.defaultView) == null ? void 0 : o.getSelection();
|
|
12475
12510
|
if (!n) return;
|
|
12476
12511
|
const a = t.createRange();
|
|
12477
12512
|
a.selectNodeContents(e), n.removeAllRanges(), n.addRange(a), Yo(e);
|
|
12478
12513
|
}
|
|
12479
|
-
function
|
|
12514
|
+
function Vf(e) {
|
|
12480
12515
|
const t = e.cloneContents();
|
|
12481
12516
|
return t.querySelectorAll(".mention-chip").forEach((n) => n.remove()), (t.textContent ?? "").replace(/\u00a0/g, " ").trim().length > 0;
|
|
12482
12517
|
}
|
|
12483
|
-
function
|
|
12518
|
+
function Yf(e) {
|
|
12484
12519
|
var a;
|
|
12485
12520
|
const t = (a = e.ownerDocument.defaultView) == null ? void 0 : a.getSelection();
|
|
12486
12521
|
if (!t || t.isCollapsed || t.rangeCount === 0) return !1;
|
|
@@ -12520,7 +12555,7 @@ function $o(e) {
|
|
|
12520
12555
|
else l.childNodes[s] ? u.setStart(l, s) : (u.selectNodeContents(l), u.collapse(!1));
|
|
12521
12556
|
u.collapse(!0), d.removeAllRanges(), d.addRange(u);
|
|
12522
12557
|
}
|
|
12523
|
-
function
|
|
12558
|
+
function Kf(e) {
|
|
12524
12559
|
var i;
|
|
12525
12560
|
const t = (i = e.ownerDocument.defaultView) == null ? void 0 : i.getSelection();
|
|
12526
12561
|
if (!t || !t.isCollapsed || t.rangeCount === 0) return null;
|
|
@@ -12546,7 +12581,7 @@ function Vf(e) {
|
|
|
12546
12581
|
}
|
|
12547
12582
|
return null;
|
|
12548
12583
|
}
|
|
12549
|
-
function
|
|
12584
|
+
function Xf(e) {
|
|
12550
12585
|
var i;
|
|
12551
12586
|
const t = (i = e.ownerDocument.defaultView) == null ? void 0 : i.getSelection();
|
|
12552
12587
|
if (!t || !t.isCollapsed || t.rangeCount === 0) return null;
|
|
@@ -12591,13 +12626,13 @@ function Ol(e) {
|
|
|
12591
12626
|
}
|
|
12592
12627
|
}) : [];
|
|
12593
12628
|
}
|
|
12594
|
-
const To = 420, ha = 6, oc = 260,
|
|
12629
|
+
const To = 420, ha = 6, oc = 260, Gf = /* @__PURE__ */ new Set([
|
|
12595
12630
|
"ArrowDown",
|
|
12596
12631
|
"ArrowUp",
|
|
12597
12632
|
"Enter",
|
|
12598
12633
|
"Tab",
|
|
12599
12634
|
"Escape"
|
|
12600
|
-
]), Bl = 4,
|
|
12635
|
+
]), Bl = 4, Zf = { position: "relative" }, Qf = {
|
|
12601
12636
|
position: "fixed",
|
|
12602
12637
|
zIndex: 11050,
|
|
12603
12638
|
minWidth: oc,
|
|
@@ -12612,14 +12647,14 @@ const To = 420, ha = 6, oc = 260, Kf = /* @__PURE__ */ new Set([
|
|
|
12612
12647
|
fontSize: 12,
|
|
12613
12648
|
color: "var(--text-muted, #656d76)"
|
|
12614
12649
|
};
|
|
12615
|
-
function
|
|
12650
|
+
function Jf(e) {
|
|
12616
12651
|
return Array.from(
|
|
12617
12652
|
document.querySelectorAll(
|
|
12618
12653
|
`[data-bonsaif-rich-instance="${CSS.escape(e)}"]`
|
|
12619
12654
|
)
|
|
12620
12655
|
);
|
|
12621
12656
|
}
|
|
12622
|
-
function
|
|
12657
|
+
function eb(e) {
|
|
12623
12658
|
const t = Math.max(
|
|
12624
12659
|
8,
|
|
12625
12660
|
Math.min(e.left, window.innerWidth - oc - 8)
|
|
@@ -12640,7 +12675,7 @@ function Qf(e) {
|
|
|
12640
12675
|
)
|
|
12641
12676
|
};
|
|
12642
12677
|
}
|
|
12643
|
-
function
|
|
12678
|
+
function tb({
|
|
12644
12679
|
value: e,
|
|
12645
12680
|
onChange: t,
|
|
12646
12681
|
onSearchUsers: n,
|
|
@@ -12698,10 +12733,10 @@ function Jf({
|
|
|
12698
12733
|
const X = ae(a);
|
|
12699
12734
|
X.current = a, fe(() => {
|
|
12700
12735
|
var W;
|
|
12701
|
-
(W = X.current) == null || W.call(X,
|
|
12736
|
+
(W = X.current) == null || W.call(X, Hf(D));
|
|
12702
12737
|
}, [D]);
|
|
12703
12738
|
const se = be(() => {
|
|
12704
|
-
const W =
|
|
12739
|
+
const W = Jf(h);
|
|
12705
12740
|
if (W.length === 0) return null;
|
|
12706
12741
|
const ie = window.getSelection();
|
|
12707
12742
|
if (ie != null && ie.rangeCount) {
|
|
@@ -12749,7 +12784,7 @@ function Jf({
|
|
|
12749
12784
|
caretIndex: ee.caretIndex,
|
|
12750
12785
|
triggerIndex: ee.triggerIndex
|
|
12751
12786
|
};
|
|
12752
|
-
const N =
|
|
12787
|
+
const N = eb(v);
|
|
12753
12788
|
$((te) => {
|
|
12754
12789
|
const me = {
|
|
12755
12790
|
query: ee.query,
|
|
@@ -12765,7 +12800,7 @@ function Jf({
|
|
|
12765
12800
|
);
|
|
12766
12801
|
fe(() => {
|
|
12767
12802
|
const W = (ie) => {
|
|
12768
|
-
if (
|
|
12803
|
+
if (Gf.has(ie.key)) return;
|
|
12769
12804
|
const E = se(), J = ie.target;
|
|
12770
12805
|
!E || !J || !E.contains(J) || M();
|
|
12771
12806
|
};
|
|
@@ -12788,7 +12823,7 @@ function Jf({
|
|
|
12788
12823
|
if (E < 0 && S.current && (E = S.current.caretIndex), E < 0) return;
|
|
12789
12824
|
const ee = Dl(ie, E);
|
|
12790
12825
|
if (!ee) return;
|
|
12791
|
-
const Q =
|
|
12826
|
+
const Q = jf(ie, {
|
|
12792
12827
|
triggerIndex: ee.triggerIndex,
|
|
12793
12828
|
caretIndex: E,
|
|
12794
12829
|
username: W.username,
|
|
@@ -12824,7 +12859,7 @@ function Jf({
|
|
|
12824
12859
|
rc(re);
|
|
12825
12860
|
return;
|
|
12826
12861
|
}
|
|
12827
|
-
|
|
12862
|
+
Wf(te, Q.caretPlainOffset);
|
|
12828
12863
|
});
|
|
12829
12864
|
});
|
|
12830
12865
|
},
|
|
@@ -12885,15 +12920,15 @@ function Jf({
|
|
|
12885
12920
|
const N = se(), te = v.target;
|
|
12886
12921
|
if (!N || !te || !N.contains(te)) return;
|
|
12887
12922
|
if ((v.metaKey || v.ctrlKey) && v.key.toLowerCase() === "a") {
|
|
12888
|
-
v.preventDefault(), v.stopPropagation(), N.focus(),
|
|
12923
|
+
v.preventDefault(), v.stopPropagation(), N.focus(), Uf(N);
|
|
12889
12924
|
return;
|
|
12890
12925
|
}
|
|
12891
12926
|
if (v.key !== "Backspace" && v.key !== "Delete") return;
|
|
12892
12927
|
const me = window.getSelection();
|
|
12893
12928
|
if (me && !me.isCollapsed && me.rangeCount > 0) {
|
|
12894
12929
|
const Ce = me.getRangeAt(0);
|
|
12895
|
-
if (N.contains(Ce.commonAncestorContainer) && Ol(N).length > 0 &&
|
|
12896
|
-
v.preventDefault(), v.stopPropagation(),
|
|
12930
|
+
if (N.contains(Ce.commonAncestorContainer) && Ol(N).length > 0 && Vf(Ce)) {
|
|
12931
|
+
v.preventDefault(), v.stopPropagation(), Yf(N) && W(N);
|
|
12897
12932
|
return;
|
|
12898
12933
|
}
|
|
12899
12934
|
}
|
|
@@ -12905,12 +12940,12 @@ function Jf({
|
|
|
12905
12940
|
return;
|
|
12906
12941
|
}
|
|
12907
12942
|
if (v.key === "Backspace") {
|
|
12908
|
-
const Ce =
|
|
12943
|
+
const Ce = Kf(N);
|
|
12909
12944
|
if (!Ce) return;
|
|
12910
12945
|
v.preventDefault(), v.stopPropagation(), $o(Ce), En(N), W(N);
|
|
12911
12946
|
return;
|
|
12912
12947
|
}
|
|
12913
|
-
const xe =
|
|
12948
|
+
const xe = Xf(N);
|
|
12914
12949
|
xe && (v.preventDefault(), v.stopPropagation(), $o(xe), En(N), W(N));
|
|
12915
12950
|
}, E = (v) => {
|
|
12916
12951
|
const N = se();
|
|
@@ -12944,7 +12979,7 @@ function Jf({
|
|
|
12944
12979
|
Yo(N);
|
|
12945
12980
|
return;
|
|
12946
12981
|
}
|
|
12947
|
-
N.focus(),
|
|
12982
|
+
N.focus(), qf(te.chip);
|
|
12948
12983
|
}
|
|
12949
12984
|
}, Q = () => {
|
|
12950
12985
|
const v = se();
|
|
@@ -12962,13 +12997,13 @@ function Jf({
|
|
|
12962
12997
|
);
|
|
12963
12998
|
W == null || W.scrollIntoView({ block: "nearest" });
|
|
12964
12999
|
}, [j, y]);
|
|
12965
|
-
const oe = u ?
|
|
13000
|
+
const oe = u ? Pf(e) : e, Y = y && Z ? Et(
|
|
12966
13001
|
/* @__PURE__ */ c(
|
|
12967
13002
|
"ul",
|
|
12968
13003
|
{
|
|
12969
13004
|
ref: k,
|
|
12970
13005
|
style: {
|
|
12971
|
-
...
|
|
13006
|
+
...Qf,
|
|
12972
13007
|
left: y.left,
|
|
12973
13008
|
top: y.top,
|
|
12974
13009
|
bottom: y.bottom,
|
|
@@ -13027,7 +13062,7 @@ function Jf({
|
|
|
13027
13062
|
),
|
|
13028
13063
|
document.body
|
|
13029
13064
|
) : null;
|
|
13030
|
-
return /* @__PURE__ */ c("div", { ref: x, style:
|
|
13065
|
+
return /* @__PURE__ */ c("div", { ref: x, style: Zf, className: l, children: [
|
|
13031
13066
|
/* @__PURE__ */ r(
|
|
13032
13067
|
Gs,
|
|
13033
13068
|
{
|
|
@@ -13043,7 +13078,7 @@ function Jf({
|
|
|
13043
13078
|
Y
|
|
13044
13079
|
] });
|
|
13045
13080
|
}
|
|
13046
|
-
function
|
|
13081
|
+
function xh({
|
|
13047
13082
|
value: e,
|
|
13048
13083
|
onChange: t,
|
|
13049
13084
|
placeholder: n,
|
|
@@ -13059,7 +13094,7 @@ function hh({
|
|
|
13059
13094
|
focusModalZIndex: m
|
|
13060
13095
|
}) {
|
|
13061
13096
|
return o ? /* @__PURE__ */ r(
|
|
13062
|
-
|
|
13097
|
+
tb,
|
|
13063
13098
|
{
|
|
13064
13099
|
value: e,
|
|
13065
13100
|
onChange: t,
|
|
@@ -13087,7 +13122,7 @@ function hh({
|
|
|
13087
13122
|
}
|
|
13088
13123
|
);
|
|
13089
13124
|
}
|
|
13090
|
-
function
|
|
13125
|
+
function vh({
|
|
13091
13126
|
title: e,
|
|
13092
13127
|
subtitle: t,
|
|
13093
13128
|
icon: n,
|
|
@@ -13119,7 +13154,7 @@ function gh({
|
|
|
13119
13154
|
}
|
|
13120
13155
|
);
|
|
13121
13156
|
}
|
|
13122
|
-
const
|
|
13157
|
+
const rb = {
|
|
13123
13158
|
neutral: {
|
|
13124
13159
|
text: "var(--text-secondary)",
|
|
13125
13160
|
bg: "var(--bg-input)",
|
|
@@ -13150,12 +13185,12 @@ const eb = {
|
|
|
13150
13185
|
bg: "rgba(59, 130, 246, 0.11)",
|
|
13151
13186
|
border: "rgba(59, 130, 246, 0.24)"
|
|
13152
13187
|
}
|
|
13153
|
-
},
|
|
13188
|
+
}, nb = {
|
|
13154
13189
|
xs: "min-h-5 px-1.5 text-[10px]",
|
|
13155
13190
|
sm: "min-h-6 px-2 text-xs",
|
|
13156
13191
|
md: "min-h-7 px-2.5 text-sm"
|
|
13157
13192
|
};
|
|
13158
|
-
function
|
|
13193
|
+
function yh({
|
|
13159
13194
|
children: e,
|
|
13160
13195
|
tone: t = "neutral",
|
|
13161
13196
|
size: n = "sm",
|
|
@@ -13163,11 +13198,11 @@ function xh({
|
|
|
13163
13198
|
dot: o = !1,
|
|
13164
13199
|
className: i = ""
|
|
13165
13200
|
}) {
|
|
13166
|
-
const l =
|
|
13201
|
+
const l = rb[t];
|
|
13167
13202
|
return /* @__PURE__ */ c(
|
|
13168
13203
|
"span",
|
|
13169
13204
|
{
|
|
13170
|
-
className: `inline-flex max-w-full shrink-0 items-center gap-1.5 rounded-full border font-semibold leading-none ${
|
|
13205
|
+
className: `inline-flex max-w-full shrink-0 items-center gap-1.5 rounded-full border font-semibold leading-none ${nb[n]} ${i}`,
|
|
13171
13206
|
style: {
|
|
13172
13207
|
color: l.text,
|
|
13173
13208
|
background: l.bg,
|
|
@@ -13213,24 +13248,24 @@ const _l = {
|
|
|
13213
13248
|
color: "#2563eb",
|
|
13214
13249
|
background: "rgba(59, 130, 246, 0.11)"
|
|
13215
13250
|
}
|
|
13216
|
-
},
|
|
13251
|
+
}, ab = {
|
|
13217
13252
|
xs: "min-h-5 px-1.5 pr-6 text-[10px]",
|
|
13218
13253
|
sm: "min-h-6 px-2 pr-7 text-xs",
|
|
13219
13254
|
md: "min-h-7 px-2.5 pr-8 text-sm"
|
|
13220
|
-
},
|
|
13255
|
+
}, ob = {
|
|
13221
13256
|
xs: "right-1 h-3 w-3",
|
|
13222
13257
|
sm: "right-1.5 h-3 w-3",
|
|
13223
13258
|
md: "right-2 h-3.5 w-3.5"
|
|
13224
|
-
},
|
|
13259
|
+
}, ib = {
|
|
13225
13260
|
xs: 148,
|
|
13226
13261
|
sm: 164,
|
|
13227
13262
|
md: 184
|
|
13228
|
-
},
|
|
13263
|
+
}, lb = {
|
|
13229
13264
|
xs: "px-2.5 py-1.5 text-xs",
|
|
13230
13265
|
sm: "px-3 py-2 text-sm",
|
|
13231
13266
|
md: "px-3.5 py-2.5 text-sm"
|
|
13232
13267
|
};
|
|
13233
|
-
function
|
|
13268
|
+
function wh({
|
|
13234
13269
|
value: e,
|
|
13235
13270
|
options: t,
|
|
13236
13271
|
onChange: n,
|
|
@@ -13256,7 +13291,7 @@ function vh({
|
|
|
13256
13291
|
}, []), H = be(() => {
|
|
13257
13292
|
const P = y.current;
|
|
13258
13293
|
if (!P) return;
|
|
13259
|
-
const X = P.getBoundingClientRect(), se = Math.max(X.width,
|
|
13294
|
+
const X = P.getBoundingClientRect(), se = Math.max(X.width, ib[a]), M = Math.min(Math.max(t.length, 1) * 38 + 12, 260), I = window.innerHeight - X.bottom, de = I < M && X.top > I, R = Math.min(
|
|
13260
13295
|
Math.max(8, X.left + X.width / 2 - se / 2),
|
|
13261
13296
|
window.innerWidth - se - 8
|
|
13262
13297
|
);
|
|
@@ -13369,7 +13404,7 @@ function vh({
|
|
|
13369
13404
|
},
|
|
13370
13405
|
className: Lr(
|
|
13371
13406
|
"flex w-full items-center gap-2 rounded-lg font-medium text-left transition-colors disabled:cursor-not-allowed disabled:opacity-45",
|
|
13372
|
-
|
|
13407
|
+
lb[a],
|
|
13373
13408
|
se ? P.className : void 0,
|
|
13374
13409
|
m
|
|
13375
13410
|
),
|
|
@@ -13411,7 +13446,7 @@ function vh({
|
|
|
13411
13446
|
onClick: () => !q && k((P) => !P),
|
|
13412
13447
|
className: Lr(
|
|
13413
13448
|
"inline-flex items-center rounded-full border border-transparent font-medium leading-none outline-none transition-colors hover:border-current focus:border-current disabled:cursor-wait disabled:opacity-70",
|
|
13414
|
-
|
|
13449
|
+
ab[a],
|
|
13415
13450
|
_ == null ? void 0 : _.className,
|
|
13416
13451
|
b
|
|
13417
13452
|
),
|
|
@@ -13425,7 +13460,7 @@ function vh({
|
|
|
13425
13460
|
"aria-hidden": "true",
|
|
13426
13461
|
className: Lr(
|
|
13427
13462
|
"pointer-events-none absolute opacity-70 transition-transform",
|
|
13428
|
-
|
|
13463
|
+
ob[a],
|
|
13429
13464
|
x ? "rotate-180" : "rotate-0"
|
|
13430
13465
|
)
|
|
13431
13466
|
}
|
|
@@ -13445,7 +13480,7 @@ function vh({
|
|
|
13445
13480
|
}
|
|
13446
13481
|
);
|
|
13447
13482
|
}
|
|
13448
|
-
function
|
|
13483
|
+
function Nh({
|
|
13449
13484
|
tabs: e,
|
|
13450
13485
|
activeTabId: t,
|
|
13451
13486
|
defaultActiveTabId: n,
|
|
@@ -13521,7 +13556,7 @@ function yh({
|
|
|
13521
13556
|
function br(...e) {
|
|
13522
13557
|
return e.filter(Boolean).join(" ");
|
|
13523
13558
|
}
|
|
13524
|
-
function
|
|
13559
|
+
function kh({
|
|
13525
13560
|
steps: e,
|
|
13526
13561
|
activeStepId: t,
|
|
13527
13562
|
initialStepId: n,
|
|
@@ -13759,12 +13794,12 @@ function wh({
|
|
|
13759
13794
|
}
|
|
13760
13795
|
);
|
|
13761
13796
|
}
|
|
13762
|
-
const
|
|
13797
|
+
const sb = {
|
|
13763
13798
|
sm: "px-2.5 py-1.5 text-xs leading-5",
|
|
13764
13799
|
md: "px-2.5 py-1.5 text-sm leading-5",
|
|
13765
13800
|
lg: "px-3 py-2 text-sm leading-6"
|
|
13766
13801
|
};
|
|
13767
|
-
function
|
|
13802
|
+
function cb(e, t) {
|
|
13768
13803
|
if (e) {
|
|
13769
13804
|
if (typeof e == "function") {
|
|
13770
13805
|
e(t);
|
|
@@ -13773,7 +13808,7 @@ function lb(e, t) {
|
|
|
13773
13808
|
e.current = t;
|
|
13774
13809
|
}
|
|
13775
13810
|
}
|
|
13776
|
-
function
|
|
13811
|
+
function db(e) {
|
|
13777
13812
|
const t = getComputedStyle(e), n = Number.parseFloat(t.lineHeight), a = Number.parseFloat(t.paddingTop) + Number.parseFloat(t.paddingBottom), o = Number.parseFloat(t.borderTopWidth) + Number.parseFloat(t.borderBottomWidth);
|
|
13778
13813
|
return {
|
|
13779
13814
|
lineHeight: Number.isFinite(n) ? n : 20,
|
|
@@ -13782,10 +13817,10 @@ function sb(e) {
|
|
|
13782
13817
|
};
|
|
13783
13818
|
}
|
|
13784
13819
|
function Fl(e, t) {
|
|
13785
|
-
const { lineHeight: n, paddingY: a, borderY: o } =
|
|
13820
|
+
const { lineHeight: n, paddingY: a, borderY: o } = db(e);
|
|
13786
13821
|
return Math.ceil(t * n + a + o);
|
|
13787
13822
|
}
|
|
13788
|
-
const
|
|
13823
|
+
const ub = Go(
|
|
13789
13824
|
function({
|
|
13790
13825
|
className: t = "",
|
|
13791
13826
|
size: n = "md",
|
|
@@ -13818,7 +13853,7 @@ const cb = Go(
|
|
|
13818
13853
|
{
|
|
13819
13854
|
...f,
|
|
13820
13855
|
ref: (g) => {
|
|
13821
|
-
h.current = g,
|
|
13856
|
+
h.current = g, cb(m, g);
|
|
13822
13857
|
},
|
|
13823
13858
|
rows: l,
|
|
13824
13859
|
value: d,
|
|
@@ -13832,12 +13867,12 @@ const cb = Go(
|
|
|
13832
13867
|
borderColor: x,
|
|
13833
13868
|
minHeight: void 0
|
|
13834
13869
|
},
|
|
13835
|
-
className: `w-full resize-none overflow-hidden rounded-lg border bg-[var(--bg-input)] text-[var(--text-main)] outline-none placeholder:text-[var(--text-muted)] transition-colors focus:border-[var(--primary)] disabled:cursor-not-allowed disabled:opacity-60 ${
|
|
13870
|
+
className: `w-full resize-none overflow-hidden rounded-lg border bg-[var(--bg-input)] text-[var(--text-main)] outline-none placeholder:text-[var(--text-muted)] transition-colors focus:border-[var(--primary)] disabled:cursor-not-allowed disabled:opacity-60 ${sb[n]} ${t}`
|
|
13836
13871
|
}
|
|
13837
13872
|
);
|
|
13838
13873
|
}
|
|
13839
13874
|
);
|
|
13840
|
-
function
|
|
13875
|
+
function Eh({
|
|
13841
13876
|
label: e,
|
|
13842
13877
|
containerClassName: t = "",
|
|
13843
13878
|
helperText: n,
|
|
@@ -13860,7 +13895,7 @@ function Nh({
|
|
|
13860
13895
|
labelAction: i,
|
|
13861
13896
|
className: t,
|
|
13862
13897
|
children: /* @__PURE__ */ r(
|
|
13863
|
-
|
|
13898
|
+
ub,
|
|
13864
13899
|
{
|
|
13865
13900
|
...u,
|
|
13866
13901
|
required: l,
|
|
@@ -13871,17 +13906,17 @@ function Nh({
|
|
|
13871
13906
|
}
|
|
13872
13907
|
);
|
|
13873
13908
|
}
|
|
13874
|
-
const
|
|
13909
|
+
const mb = {
|
|
13875
13910
|
sm: "min-h-20 px-2.5 py-1.5 text-xs leading-5",
|
|
13876
13911
|
md: "min-h-24 px-2.5 py-2 text-sm leading-5",
|
|
13877
13912
|
lg: "min-h-32 px-3 py-2.5 text-sm leading-6"
|
|
13878
|
-
},
|
|
13913
|
+
}, fb = {
|
|
13879
13914
|
none: "resize-none",
|
|
13880
13915
|
vertical: "resize-y",
|
|
13881
13916
|
horizontal: "resize-x",
|
|
13882
13917
|
both: "resize"
|
|
13883
13918
|
};
|
|
13884
|
-
function
|
|
13919
|
+
function bb(e, t) {
|
|
13885
13920
|
if (e) {
|
|
13886
13921
|
if (typeof e == "function") {
|
|
13887
13922
|
e(t);
|
|
@@ -13890,10 +13925,10 @@ function mb(e, t) {
|
|
|
13890
13925
|
e.current = t;
|
|
13891
13926
|
}
|
|
13892
13927
|
}
|
|
13893
|
-
function
|
|
13928
|
+
function pb(e, t) {
|
|
13894
13929
|
return e !== void 0 ? String(e).length : t !== void 0 ? String(t).length : 0;
|
|
13895
13930
|
}
|
|
13896
|
-
const
|
|
13931
|
+
const hb = Go(
|
|
13897
13932
|
function({
|
|
13898
13933
|
className: t = "",
|
|
13899
13934
|
wrapperClassName: n = "",
|
|
@@ -13914,7 +13949,7 @@ const bb = Go(
|
|
|
13914
13949
|
onInput: L,
|
|
13915
13950
|
...S
|
|
13916
13951
|
}, T) {
|
|
13917
|
-
const O = ae(null), C =
|
|
13952
|
+
const O = ae(null), C = pb(x, k), y = u ?? g, $ = !!(f || m || d), w = b === "error" ? "var(--danger)" : b === "success" ? "#16a34a" : "var(--border)", _ = {
|
|
13918
13953
|
...h ?? {},
|
|
13919
13954
|
...l ? { minHeight: `${l * 24 + 18}px` } : null,
|
|
13920
13955
|
...s ? { maxHeight: `${s * 24 + 18}px` } : null
|
|
@@ -13928,7 +13963,7 @@ const bb = Go(
|
|
|
13928
13963
|
{
|
|
13929
13964
|
...S,
|
|
13930
13965
|
ref: (D) => {
|
|
13931
|
-
O.current = D,
|
|
13966
|
+
O.current = D, bb(T, D);
|
|
13932
13967
|
},
|
|
13933
13968
|
value: x,
|
|
13934
13969
|
defaultValue: k,
|
|
@@ -13938,7 +13973,7 @@ const bb = Go(
|
|
|
13938
13973
|
j(), L == null || L(D);
|
|
13939
13974
|
},
|
|
13940
13975
|
style: { ..._, borderColor: w },
|
|
13941
|
-
className: `w-full rounded-lg border bg-[var(--bg-input)] text-[var(--text-main)] outline-none placeholder:text-[var(--text-muted)] transition-colors focus:border-[var(--primary)] disabled:cursor-not-allowed disabled:opacity-60 ${
|
|
13976
|
+
className: `w-full rounded-lg border bg-[var(--bg-input)] text-[var(--text-main)] outline-none placeholder:text-[var(--text-muted)] transition-colors focus:border-[var(--primary)] disabled:cursor-not-allowed disabled:opacity-60 ${mb[a]} ${fb[i ? "none" : o]} ${f ? "pl-8" : ""} ${m ? "pr-10" : ""} ${t}`
|
|
13942
13977
|
}
|
|
13943
13978
|
);
|
|
13944
13979
|
return $ ? /* @__PURE__ */ c("span", { className: `relative block ${n}`, children: [
|
|
@@ -13952,7 +13987,7 @@ const bb = Go(
|
|
|
13952
13987
|
] }) : q;
|
|
13953
13988
|
}
|
|
13954
13989
|
);
|
|
13955
|
-
function
|
|
13990
|
+
function Sh({
|
|
13956
13991
|
label: e,
|
|
13957
13992
|
containerClassName: t = "",
|
|
13958
13993
|
helperText: n,
|
|
@@ -13975,7 +14010,7 @@ function kh({
|
|
|
13975
14010
|
labelAction: i,
|
|
13976
14011
|
className: t,
|
|
13977
14012
|
children: /* @__PURE__ */ r(
|
|
13978
|
-
|
|
14013
|
+
hb,
|
|
13979
14014
|
{
|
|
13980
14015
|
...u,
|
|
13981
14016
|
required: l,
|
|
@@ -14004,30 +14039,30 @@ const Hl = [
|
|
|
14004
14039
|
{ bg: "#f0fdf4", text: "#14532d", border: "#bbf7d0" }
|
|
14005
14040
|
// emerald
|
|
14006
14041
|
];
|
|
14007
|
-
function
|
|
14042
|
+
function gb(e) {
|
|
14008
14043
|
return Hl[e % Hl.length];
|
|
14009
14044
|
}
|
|
14010
|
-
let
|
|
14045
|
+
let xb = 0;
|
|
14011
14046
|
function Mo() {
|
|
14012
|
-
return ++
|
|
14047
|
+
return ++xb;
|
|
14013
14048
|
}
|
|
14014
14049
|
function Pl(e, t) {
|
|
14015
14050
|
return t ? t instanceof RegExp ? t.test(e) : t(e) : !0;
|
|
14016
14051
|
}
|
|
14017
|
-
function
|
|
14052
|
+
function vb(e) {
|
|
14018
14053
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
14019
14054
|
}
|
|
14020
|
-
function
|
|
14055
|
+
function yb(e, t) {
|
|
14021
14056
|
const n = t.filter(Boolean);
|
|
14022
14057
|
if (n.length === 0)
|
|
14023
14058
|
return [e.trim()].filter(Boolean);
|
|
14024
14059
|
const a = new RegExp(
|
|
14025
|
-
`${n.map((o) =>
|
|
14060
|
+
`${n.map((o) => vb(o)).join("|")}|\\r?\\n`,
|
|
14026
14061
|
"g"
|
|
14027
14062
|
);
|
|
14028
14063
|
return e.split(a).map((o) => o.trim()).filter(Boolean);
|
|
14029
14064
|
}
|
|
14030
|
-
function
|
|
14065
|
+
function Ch({
|
|
14031
14066
|
value: e,
|
|
14032
14067
|
defaultValue: t,
|
|
14033
14068
|
onChange: n,
|
|
@@ -14152,7 +14187,7 @@ function Eh({
|
|
|
14152
14187
|
if (!v || !(l.some((re) => re && v.includes(re)) || v.includes(`
|
|
14153
14188
|
`))) return;
|
|
14154
14189
|
Q.preventDefault();
|
|
14155
|
-
const te =
|
|
14190
|
+
const te = yb(v, l);
|
|
14156
14191
|
se(te) && y("");
|
|
14157
14192
|
}
|
|
14158
14193
|
function E() {
|
|
@@ -14194,7 +14229,7 @@ function Eh({
|
|
|
14194
14229
|
}
|
|
14195
14230
|
` }),
|
|
14196
14231
|
O.map((Q) => {
|
|
14197
|
-
const v =
|
|
14232
|
+
const v = gb(Q.colorIndex);
|
|
14198
14233
|
return $ === Q.id ? (
|
|
14199
14234
|
/* ── Inline edit ── */
|
|
14200
14235
|
/* @__PURE__ */ r(
|
|
@@ -14284,14 +14319,14 @@ function Eh({
|
|
|
14284
14319
|
)
|
|
14285
14320
|
] });
|
|
14286
14321
|
}
|
|
14287
|
-
const
|
|
14322
|
+
const wb = /^(\d{1,2}):(\d{2})(?::(\d{2}))?$/;
|
|
14288
14323
|
function at(e) {
|
|
14289
14324
|
return String(e).padStart(2, "0");
|
|
14290
14325
|
}
|
|
14291
14326
|
function Ko(e, t = Xr()) {
|
|
14292
14327
|
const n = e.trim();
|
|
14293
14328
|
if (!n) return t;
|
|
14294
|
-
const a = n.match(
|
|
14329
|
+
const a = n.match(wb);
|
|
14295
14330
|
if (!a) return t;
|
|
14296
14331
|
const o = Number(a[1]), i = Number(a[2]), l = a[3] ? Number(a[3]) : 0;
|
|
14297
14332
|
return !Number.isFinite(o) || !Number.isFinite(i) || !Number.isFinite(l) || o < 0 || o > 23 || i < 0 || i > 59 || l < 0 || l > 59 ? t : { hour24: o, minute: i, second: l };
|
|
@@ -14317,7 +14352,7 @@ function yn(e) {
|
|
|
14317
14352
|
second: Math.min(59, Math.max(0, e.second))
|
|
14318
14353
|
};
|
|
14319
14354
|
}
|
|
14320
|
-
function
|
|
14355
|
+
function Nb(e, t) {
|
|
14321
14356
|
const n = (t == null ? void 0 : t.use12Hour) ?? !1, a = (t == null ? void 0 : t.showSeconds) ?? !0, o = Ko(e);
|
|
14322
14357
|
if (n) {
|
|
14323
14358
|
const i = wa(o), l = `${i.hour12}:${at(i.minute)}`;
|
|
@@ -14333,7 +14368,7 @@ function Xr() {
|
|
|
14333
14368
|
second: e.getSeconds()
|
|
14334
14369
|
};
|
|
14335
14370
|
}
|
|
14336
|
-
function
|
|
14371
|
+
function kb(e = !0) {
|
|
14337
14372
|
return Mn(Xr(), e);
|
|
14338
14373
|
}
|
|
14339
14374
|
function Ao(e, t) {
|
|
@@ -14341,14 +14376,14 @@ function Ao(e, t) {
|
|
|
14341
14376
|
for (let a = e; a <= t; a += 1) n.push(a);
|
|
14342
14377
|
return n;
|
|
14343
14378
|
}
|
|
14344
|
-
const Dt = 36, ui = 5, zl = Math.floor(ui / 2),
|
|
14379
|
+
const Dt = 36, ui = 5, zl = Math.floor(ui / 2), Eb = 52, Sb = 48, ar = 18;
|
|
14345
14380
|
function jl(e) {
|
|
14346
14381
|
return e * Dt;
|
|
14347
14382
|
}
|
|
14348
14383
|
function Wl(e) {
|
|
14349
14384
|
return Math.round(e / Dt);
|
|
14350
14385
|
}
|
|
14351
|
-
function
|
|
14386
|
+
function Cb(e) {
|
|
14352
14387
|
return e.use12Hour ?? e.hour12 ?? !1;
|
|
14353
14388
|
}
|
|
14354
14389
|
function ga({
|
|
@@ -14357,7 +14392,7 @@ function ga({
|
|
|
14357
14392
|
onSelect: n,
|
|
14358
14393
|
syncEpochRef: a,
|
|
14359
14394
|
forceSyncAt: o = 0,
|
|
14360
|
-
width: i =
|
|
14395
|
+
width: i = Eb,
|
|
14361
14396
|
label: l,
|
|
14362
14397
|
maxNumeric: s = 59,
|
|
14363
14398
|
isMeridiem: d = !1,
|
|
@@ -14598,7 +14633,7 @@ function ql() {
|
|
|
14598
14633
|
}
|
|
14599
14634
|
);
|
|
14600
14635
|
}
|
|
14601
|
-
function
|
|
14636
|
+
function $b({
|
|
14602
14637
|
value: e,
|
|
14603
14638
|
onChange: t,
|
|
14604
14639
|
use12Hour: n,
|
|
@@ -14610,7 +14645,7 @@ function Sb({
|
|
|
14610
14645
|
onConfirm: d,
|
|
14611
14646
|
className: u = ""
|
|
14612
14647
|
}) {
|
|
14613
|
-
const b = l === "popover", f = b || !d, m =
|
|
14648
|
+
const b = l === "popover", f = b || !d, m = Cb({ use12Hour: n, hour12: a }), h = ae(e), x = Ko(e, Xr()), k = wa(x), [g, L] = z(
|
|
14614
14649
|
at(m ? k.hour12 : x.hour24)
|
|
14615
14650
|
), [S, T] = z(at(x.minute)), [O, C] = z(at(x.second)), [y, $] = z(k.meridiem), [w, _] = z(0), j = ae(0), q = ae(!1), D = ae({
|
|
14616
14651
|
hour: null,
|
|
@@ -14841,7 +14876,7 @@ function Sb({
|
|
|
14841
14876
|
values: se,
|
|
14842
14877
|
selected: y,
|
|
14843
14878
|
onSelect: (re) => W(re),
|
|
14844
|
-
width:
|
|
14879
|
+
width: Sb,
|
|
14845
14880
|
label: "AM o PM",
|
|
14846
14881
|
isMeridiem: !0,
|
|
14847
14882
|
isFocused: U === "meridiem",
|
|
@@ -14916,10 +14951,10 @@ function Sb({
|
|
|
14916
14951
|
}
|
|
14917
14952
|
);
|
|
14918
14953
|
}
|
|
14919
|
-
function
|
|
14954
|
+
function Tb(e) {
|
|
14920
14955
|
return e.use12Hour ?? e.hour12 ?? !1;
|
|
14921
14956
|
}
|
|
14922
|
-
function
|
|
14957
|
+
function $h({
|
|
14923
14958
|
label: e,
|
|
14924
14959
|
value: t,
|
|
14925
14960
|
onChange: n,
|
|
@@ -14941,8 +14976,8 @@ function Sh({
|
|
|
14941
14976
|
const L = u === "popover", [S, T] = z(!1), O = ae(null), [C, y] = z({
|
|
14942
14977
|
horizontal: "left",
|
|
14943
14978
|
vertical: "bottom"
|
|
14944
|
-
}), $ =
|
|
14945
|
-
() => t ?
|
|
14979
|
+
}), $ = Tb({ use12Hour: a, hour12: o }), w = Re(
|
|
14980
|
+
() => t ? Nb(t, { use12Hour: $, showSeconds: i }) : "",
|
|
14946
14981
|
[$, i, t]
|
|
14947
14982
|
);
|
|
14948
14983
|
fe(() => {
|
|
@@ -14993,10 +15028,10 @@ function Sh({
|
|
|
14993
15028
|
]
|
|
14994
15029
|
}
|
|
14995
15030
|
), j = /* @__PURE__ */ r(
|
|
14996
|
-
|
|
15031
|
+
$b,
|
|
14997
15032
|
{
|
|
14998
15033
|
variant: L ? "popover" : "panel",
|
|
14999
|
-
value: t ||
|
|
15034
|
+
value: t || kb(i),
|
|
15000
15035
|
onChange: n,
|
|
15001
15036
|
use12Hour: $,
|
|
15002
15037
|
showSeconds: i,
|
|
@@ -15034,7 +15069,7 @@ function Sh({
|
|
|
15034
15069
|
}
|
|
15035
15070
|
);
|
|
15036
15071
|
}
|
|
15037
|
-
const
|
|
15072
|
+
const Mb = {
|
|
15038
15073
|
xs: {
|
|
15039
15074
|
width: 28,
|
|
15040
15075
|
height: 16,
|
|
@@ -15048,7 +15083,7 @@ const $b = {
|
|
|
15048
15083
|
padding: 2
|
|
15049
15084
|
}
|
|
15050
15085
|
};
|
|
15051
|
-
function
|
|
15086
|
+
function Th({
|
|
15052
15087
|
checked: e,
|
|
15053
15088
|
disabled: t,
|
|
15054
15089
|
onCheckedChange: n,
|
|
@@ -15056,7 +15091,7 @@ function Ch({
|
|
|
15056
15091
|
className: o = "",
|
|
15057
15092
|
...i
|
|
15058
15093
|
}) {
|
|
15059
|
-
const l =
|
|
15094
|
+
const l = Mb[a], s = e ? l.width - l.thumb - l.padding * 2 : 0;
|
|
15060
15095
|
return /* @__PURE__ */ r(
|
|
15061
15096
|
"button",
|
|
15062
15097
|
{
|
|
@@ -15095,13 +15130,13 @@ const Ul = [
|
|
|
15095
15130
|
".app-scroll",
|
|
15096
15131
|
".showcase-nav-scroll",
|
|
15097
15132
|
"[data-overlay-scroll='true']"
|
|
15098
|
-
].join(","),
|
|
15133
|
+
].join(","), Ab = [
|
|
15099
15134
|
":scope > [data-overlayscrollbars-contents]",
|
|
15100
15135
|
":scope > .sidebar-scroll-body",
|
|
15101
15136
|
":scope > .showcase-nav-scroll-body",
|
|
15102
15137
|
":scope > .app-scroll-body"
|
|
15103
15138
|
].join(", ");
|
|
15104
|
-
function
|
|
15139
|
+
function Lb(e) {
|
|
15105
15140
|
if (!(e instanceof HTMLElement) || e.dataset.overlayScroll === "false" || e.matches("[data-overlayscrollbars]") || e.closest("[data-overlayscrollbars]") || e.matches("textarea,input,select,[contenteditable='true']"))
|
|
15106
15141
|
return !1;
|
|
15107
15142
|
const t = window.getComputedStyle(e);
|
|
@@ -15119,11 +15154,11 @@ function Vl(e) {
|
|
|
15119
15154
|
t.style.display = "none", t.style.height = "0", t.style.pointerEvents = "none";
|
|
15120
15155
|
});
|
|
15121
15156
|
}
|
|
15122
|
-
function
|
|
15123
|
-
const t = e.querySelector(
|
|
15157
|
+
function Db(e) {
|
|
15158
|
+
const t = e.querySelector(Ab);
|
|
15124
15159
|
return t instanceof HTMLElement ? t : null;
|
|
15125
15160
|
}
|
|
15126
|
-
function
|
|
15161
|
+
function Rb() {
|
|
15127
15162
|
return fe(() => {
|
|
15128
15163
|
const e = /* @__PURE__ */ new WeakMap();
|
|
15129
15164
|
let t = 0;
|
|
@@ -15134,14 +15169,14 @@ function Lb() {
|
|
|
15134
15169
|
Vl(i);
|
|
15135
15170
|
return;
|
|
15136
15171
|
}
|
|
15137
|
-
if (!
|
|
15172
|
+
if (!Lb(i)) return;
|
|
15138
15173
|
const s = {
|
|
15139
15174
|
overflow: ic(i) ? { x: "hidden", y: "scroll" } : void 0,
|
|
15140
15175
|
scrollbars: {
|
|
15141
15176
|
autoHide: "leave",
|
|
15142
15177
|
autoHideDelay: 180
|
|
15143
15178
|
}
|
|
15144
|
-
}, d =
|
|
15179
|
+
}, d = Db(i), u = d ? fo(
|
|
15145
15180
|
{
|
|
15146
15181
|
target: i,
|
|
15147
15182
|
elements: { viewport: d }
|
|
@@ -15180,7 +15215,7 @@ function Yl(e) {
|
|
|
15180
15215
|
return "";
|
|
15181
15216
|
}
|
|
15182
15217
|
}
|
|
15183
|
-
function
|
|
15218
|
+
function Ob(e) {
|
|
15184
15219
|
const t = gr(e);
|
|
15185
15220
|
if (!t) return "";
|
|
15186
15221
|
const n = t.match(/^\/apps\/[^/]+/i);
|
|
@@ -15220,7 +15255,7 @@ function Db(e) {
|
|
|
15220
15255
|
"chat-widget"
|
|
15221
15256
|
])).has(a[0].toLowerCase()) ? "" : gr(`/${a[0]}`);
|
|
15222
15257
|
}
|
|
15223
|
-
const Lo = "primeSuiteAppUrl",
|
|
15258
|
+
const Lo = "primeSuiteAppUrl", Bb = {
|
|
15224
15259
|
xs: { wh: "w-5 h-5", text: "text-[8px]" },
|
|
15225
15260
|
sm: { wh: "w-7 h-7", text: "text-[11px]" },
|
|
15226
15261
|
md: { wh: "w-9 h-9", text: "text-sm" },
|
|
@@ -15241,12 +15276,12 @@ const Lo = "primeSuiteAppUrl", Rb = {
|
|
|
15241
15276
|
"bg-teal-500",
|
|
15242
15277
|
"bg-rose-500",
|
|
15243
15278
|
"bg-cyan-500"
|
|
15244
|
-
],
|
|
15279
|
+
], Ib = {
|
|
15245
15280
|
xs: "text-xs",
|
|
15246
15281
|
sm: "text-sm",
|
|
15247
15282
|
md: "text-base",
|
|
15248
15283
|
lg: "text-lg"
|
|
15249
|
-
},
|
|
15284
|
+
}, _b = "bonsaif.bot", Fb = "Bonsaif Bot", Hb = {
|
|
15250
15285
|
xs: "p-0.5",
|
|
15251
15286
|
sm: "p-1",
|
|
15252
15287
|
md: "p-1.5",
|
|
@@ -15256,7 +15291,7 @@ const Lo = "primeSuiteAppUrl", Rb = {
|
|
|
15256
15291
|
function Gl(e) {
|
|
15257
15292
|
return typeof e == "string" ? e.trim() : "";
|
|
15258
15293
|
}
|
|
15259
|
-
function
|
|
15294
|
+
function Pb(e) {
|
|
15260
15295
|
var o;
|
|
15261
15296
|
if (e !== void 0)
|
|
15262
15297
|
return gr(e);
|
|
@@ -15280,24 +15315,24 @@ function Fb(e) {
|
|
|
15280
15315
|
const i = a.startsWith("http") ? Yl(a) : gr(a);
|
|
15281
15316
|
if (i && !/^\/admin(\/|$)/i.test(i)) return i;
|
|
15282
15317
|
}
|
|
15283
|
-
return
|
|
15318
|
+
return Ob(window.location.pathname);
|
|
15284
15319
|
}
|
|
15285
|
-
function
|
|
15320
|
+
function zb(e) {
|
|
15286
15321
|
const t = e.split(/\s+/).map((n) => n.trim()).filter(Boolean);
|
|
15287
15322
|
return t.length === 0 ? "?" : t.length === 1 ? t[0].slice(0, 1).toUpperCase() : `${t[0].slice(0, 1)}${t[1].slice(0, 1)}`.toUpperCase();
|
|
15288
15323
|
}
|
|
15289
|
-
function
|
|
15324
|
+
function jb(e) {
|
|
15290
15325
|
let t = 0;
|
|
15291
15326
|
for (const n of e) t = t * 31 + n.charCodeAt(0) & 65535;
|
|
15292
15327
|
return Xl[t % Xl.length];
|
|
15293
15328
|
}
|
|
15294
|
-
function
|
|
15295
|
-
return e ===
|
|
15329
|
+
function Wb(e, t) {
|
|
15330
|
+
return e === _b || t === Fb;
|
|
15296
15331
|
}
|
|
15297
|
-
function
|
|
15332
|
+
function qb(e, t) {
|
|
15298
15333
|
return `${e.replace(/\/$/, "")}${t}`;
|
|
15299
15334
|
}
|
|
15300
|
-
function
|
|
15335
|
+
function Ub({
|
|
15301
15336
|
userId: e,
|
|
15302
15337
|
username: t,
|
|
15303
15338
|
name: n,
|
|
@@ -15318,7 +15353,7 @@ function Wb({
|
|
|
15318
15353
|
fe(() => {
|
|
15319
15354
|
g(!1);
|
|
15320
15355
|
}, [L, m]);
|
|
15321
|
-
const { wh: S, text: T } =
|
|
15356
|
+
const { wh: S, text: T } = Bb[a], O = Gl(n) || Gl(t) || s, C = zb(O), y = Pb(d), $ = Wb(t, n), w = qb(y, "/favicon.svg"), _ = Re(() => {
|
|
15322
15357
|
if (!L) return "";
|
|
15323
15358
|
const H = new URLSearchParams();
|
|
15324
15359
|
H.set("size", String(Kl[a])), m && H.set("v", String(m));
|
|
@@ -15327,7 +15362,7 @@ function Wb({
|
|
|
15327
15362
|
}, [m, y, L, a]), j = Kl[a], q = $ ? /* @__PURE__ */ r(
|
|
15328
15363
|
"span",
|
|
15329
15364
|
{
|
|
15330
|
-
className: `${S} ${
|
|
15365
|
+
className: `${S} ${Hb[a]} rounded-full flex items-center justify-center bg-[#071f1a] ring-1 ring-emerald-400/35 shadow-[0_0_0_1px_rgba(255,255,255,0.06)] flex-shrink-0 ${h}`,
|
|
15331
15366
|
style: x,
|
|
15332
15367
|
children: /* @__PURE__ */ r(
|
|
15333
15368
|
"img",
|
|
@@ -15357,7 +15392,7 @@ function Wb({
|
|
|
15357
15392
|
) : /* @__PURE__ */ r(
|
|
15358
15393
|
"span",
|
|
15359
15394
|
{
|
|
15360
|
-
className: `${S} ${
|
|
15395
|
+
className: `${S} ${jb(O)} ${T} rounded-full flex items-center justify-center font-black text-white uppercase flex-shrink-0 ${h}`,
|
|
15361
15396
|
style: x,
|
|
15362
15397
|
title: O,
|
|
15363
15398
|
children: C
|
|
@@ -15373,7 +15408,7 @@ function Wb({
|
|
|
15373
15408
|
/* @__PURE__ */ r(
|
|
15374
15409
|
"span",
|
|
15375
15410
|
{
|
|
15376
|
-
className: `min-w-0 truncate ${
|
|
15411
|
+
className: `min-w-0 truncate ${Ib[f]} font-medium text-[var(--text-main)] ${b}`,
|
|
15377
15412
|
title: O,
|
|
15378
15413
|
children: O
|
|
15379
15414
|
}
|
|
@@ -15392,16 +15427,16 @@ function Wb({
|
|
|
15392
15427
|
}
|
|
15393
15428
|
) : q;
|
|
15394
15429
|
}
|
|
15395
|
-
function
|
|
15430
|
+
function Vb({ href: e, className: t, children: n }) {
|
|
15396
15431
|
return /* @__PURE__ */ r("a", { href: e, className: t, children: n });
|
|
15397
15432
|
}
|
|
15398
|
-
function
|
|
15433
|
+
function Yb(e) {
|
|
15399
15434
|
return e.reduce((t, n) => {
|
|
15400
15435
|
const a = n.section ?? "Principal";
|
|
15401
15436
|
return t[a] = [...t[a] ?? [], n], t;
|
|
15402
15437
|
}, {});
|
|
15403
15438
|
}
|
|
15404
|
-
function
|
|
15439
|
+
function Kb({
|
|
15405
15440
|
children: e,
|
|
15406
15441
|
navItems: t = [],
|
|
15407
15442
|
currentPath: n = typeof window > "u" ? "/" : window.location.pathname,
|
|
@@ -15411,11 +15446,11 @@ function Vb({
|
|
|
15411
15446
|
header: l,
|
|
15412
15447
|
footer: s,
|
|
15413
15448
|
onLogout: d,
|
|
15414
|
-
LinkComponent: u =
|
|
15449
|
+
LinkComponent: u = Vb
|
|
15415
15450
|
}) {
|
|
15416
|
-
const [b, f] = z(!1), m =
|
|
15451
|
+
const [b, f] = z(!1), m = Yb(t);
|
|
15417
15452
|
return /* @__PURE__ */ c("div", { className: "min-h-screen bg-[var(--bg-main)] text-[var(--text-main)]", children: [
|
|
15418
|
-
/* @__PURE__ */ r(
|
|
15453
|
+
/* @__PURE__ */ r(Rb, {}),
|
|
15419
15454
|
/* @__PURE__ */ r(
|
|
15420
15455
|
"button",
|
|
15421
15456
|
{
|
|
@@ -15485,7 +15520,7 @@ function Vb({
|
|
|
15485
15520
|
/* @__PURE__ */ c("div", { className: "border-t border-white/10 p-3", children: [
|
|
15486
15521
|
a && /* @__PURE__ */ c("div", { className: "mb-3 flex min-w-0 items-center gap-3 rounded-lg bg-white/[0.04] p-2", children: [
|
|
15487
15522
|
/* @__PURE__ */ r(
|
|
15488
|
-
|
|
15523
|
+
Ub,
|
|
15489
15524
|
{
|
|
15490
15525
|
name: a.initials ?? a.name ?? a.email ?? "Usuario",
|
|
15491
15526
|
size: "md"
|
|
@@ -15519,7 +15554,7 @@ function Vb({
|
|
|
15519
15554
|
] })
|
|
15520
15555
|
] });
|
|
15521
15556
|
}
|
|
15522
|
-
const Zl = "bonsaif-ui:prime-auth-sso",
|
|
15557
|
+
const Zl = "bonsaif-ui:prime-auth-sso", Xb = {
|
|
15523
15558
|
dashboard: "Dashboard",
|
|
15524
15559
|
tickets: "Tickets",
|
|
15525
15560
|
teams: "Equipos",
|
|
@@ -15565,17 +15600,17 @@ const Zl = "bonsaif-ui:prime-auth-sso", Yb = {
|
|
|
15565
15600
|
"email-inbox": /* @__PURE__ */ r(ds, { className: "h-5 w-5" }),
|
|
15566
15601
|
"security-incidents": /* @__PURE__ */ r(mo, { className: "h-5 w-5" })
|
|
15567
15602
|
};
|
|
15568
|
-
function
|
|
15603
|
+
function Gb(e) {
|
|
15569
15604
|
return e.split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" ");
|
|
15570
15605
|
}
|
|
15571
|
-
function
|
|
15606
|
+
function Zb(e) {
|
|
15572
15607
|
return /^\d+$/.test(e) || /^[a-f0-9]{8,}$/i.test(e);
|
|
15573
15608
|
}
|
|
15574
|
-
function
|
|
15609
|
+
function Qb(e) {
|
|
15575
15610
|
const t = e.split("/").filter(Boolean);
|
|
15576
15611
|
if (t.length === 0 || t.length === 1 && t[0] === "dashboard")
|
|
15577
15612
|
return [];
|
|
15578
|
-
const n = decodeURIComponent(t[t.length - 1]), a = t.length > 1 ? decodeURIComponent(t[t.length - 2]) : void 0, o =
|
|
15613
|
+
const n = decodeURIComponent(t[t.length - 1]), a = t.length > 1 ? decodeURIComponent(t[t.length - 2]) : void 0, o = Zb(n) && a ? a : n, i = Xb[o] ?? Gb(o);
|
|
15579
15614
|
return [{ label: "Inicio", href: "/" }, { label: i }];
|
|
15580
15615
|
}
|
|
15581
15616
|
function Ro(e) {
|
|
@@ -15583,19 +15618,19 @@ function Ro(e) {
|
|
|
15583
15618
|
":scope > [data-overlayscrollbars-viewport]"
|
|
15584
15619
|
));
|
|
15585
15620
|
}
|
|
15586
|
-
function
|
|
15621
|
+
function Jb(e) {
|
|
15587
15622
|
const t = e.split("/").filter(Boolean), n = t[t.length - 1];
|
|
15588
15623
|
if (!n) return /* @__PURE__ */ r(Sa, { className: "h-5 w-5" });
|
|
15589
15624
|
if (Do[n]) return Do[n];
|
|
15590
15625
|
const a = t.length > 1 ? t[t.length - 2] : "";
|
|
15591
15626
|
return Do[a] ?? /* @__PURE__ */ r(Sa, { className: "h-5 w-5" });
|
|
15592
15627
|
}
|
|
15593
|
-
function
|
|
15628
|
+
function ep(e) {
|
|
15594
15629
|
return e.includes("primeAuthOrigin") || e.includes("primeAuthProjectKey");
|
|
15595
15630
|
}
|
|
15596
15631
|
function Ql() {
|
|
15597
15632
|
if (typeof window > "u") return !1;
|
|
15598
|
-
if (
|
|
15633
|
+
if (ep(window.location.href)) {
|
|
15599
15634
|
try {
|
|
15600
15635
|
window.sessionStorage.setItem(Zl, "true");
|
|
15601
15636
|
} catch {
|
|
@@ -15608,7 +15643,7 @@ function Ql() {
|
|
|
15608
15643
|
return !1;
|
|
15609
15644
|
}
|
|
15610
15645
|
}
|
|
15611
|
-
function
|
|
15646
|
+
function Mh({
|
|
15612
15647
|
title: e,
|
|
15613
15648
|
subtitle: t,
|
|
15614
15649
|
action: n,
|
|
@@ -15621,7 +15656,7 @@ function $h({
|
|
|
15621
15656
|
showBreadcrumbs: u = !0,
|
|
15622
15657
|
contained: b = !1
|
|
15623
15658
|
}) {
|
|
15624
|
-
const f = ae(null), [m, h] = z(!1), [x, k] = z(d ?? "/"), [g, L] = z(() => Ql()), [S, T] = z(null), O = d ?? x, C = s ??
|
|
15659
|
+
const f = ae(null), [m, h] = z(!1), [x, k] = z(d ?? "/"), [g, L] = z(() => Ql()), [S, T] = z(null), O = d ?? x, C = s ?? Qb(O), y = o ?? Jb(O), $ = u && !g && C.length > 1, w = !$;
|
|
15625
15660
|
fe(() => {
|
|
15626
15661
|
d || k(window.location.pathname);
|
|
15627
15662
|
}, [d]), fe(() => {
|
|
@@ -15783,20 +15818,20 @@ function $h({
|
|
|
15783
15818
|
}
|
|
15784
15819
|
);
|
|
15785
15820
|
}
|
|
15786
|
-
function
|
|
15821
|
+
function Ah({
|
|
15787
15822
|
children: e,
|
|
15788
15823
|
currentPath: t = typeof window > "u" ? "/" : window.location.pathname,
|
|
15789
15824
|
publicRoutes: n = ["/", "/login", "/reset-password"],
|
|
15790
15825
|
...a
|
|
15791
15826
|
}) {
|
|
15792
|
-
return n.includes(t) ? /* @__PURE__ */ r(qe, { children: e }) : /* @__PURE__ */ r(
|
|
15827
|
+
return n.includes(t) ? /* @__PURE__ */ r(qe, { children: e }) : /* @__PURE__ */ r(Kb, { currentPath: t, ...a, children: e });
|
|
15793
15828
|
}
|
|
15794
15829
|
function Jl() {
|
|
15795
15830
|
if (typeof window > "u") return "system";
|
|
15796
15831
|
const e = localStorage.getItem("theme");
|
|
15797
15832
|
return e === "light" || e === "dark" ? e : e === "system" ? "system" : document.documentElement.classList.contains("dark") ? "dark" : "light";
|
|
15798
15833
|
}
|
|
15799
|
-
function
|
|
15834
|
+
function tp(e, t, n) {
|
|
15800
15835
|
try {
|
|
15801
15836
|
const a = new URL(e), o = a.searchParams.get("callbackUrl");
|
|
15802
15837
|
if (o) {
|
|
@@ -15811,7 +15846,7 @@ function Jb(e, t, n) {
|
|
|
15811
15846
|
return e;
|
|
15812
15847
|
}
|
|
15813
15848
|
}
|
|
15814
|
-
function
|
|
15849
|
+
function Lh({
|
|
15815
15850
|
name: e,
|
|
15816
15851
|
src: t,
|
|
15817
15852
|
projectKey: n
|
|
@@ -15828,7 +15863,7 @@ function Mh({
|
|
|
15828
15863
|
}), () => d.disconnect();
|
|
15829
15864
|
}, []);
|
|
15830
15865
|
const l = Re(
|
|
15831
|
-
() =>
|
|
15866
|
+
() => tp(t, a, n),
|
|
15832
15867
|
[n, t, a]
|
|
15833
15868
|
), s = Re(() => {
|
|
15834
15869
|
try {
|
|
@@ -15879,7 +15914,7 @@ function Mh({
|
|
|
15879
15914
|
}
|
|
15880
15915
|
) });
|
|
15881
15916
|
}
|
|
15882
|
-
function
|
|
15917
|
+
function Dh() {
|
|
15883
15918
|
const [e, t] = z(""), [n, a] = z(!1), [o, i] = z({ width: 96, height: 96 });
|
|
15884
15919
|
return fe(() => {
|
|
15885
15920
|
let l = !1;
|
|
@@ -15921,7 +15956,7 @@ function es(e, t, n) {
|
|
|
15921
15956
|
const a = typeof e == "number" && Number.isFinite(e) ? e : t;
|
|
15922
15957
|
return Math.max(t, Math.min(n, Math.ceil(a)));
|
|
15923
15958
|
}
|
|
15924
|
-
function
|
|
15959
|
+
function rp(e) {
|
|
15925
15960
|
const t = document.documentElement, n = new MutationObserver(e);
|
|
15926
15961
|
n.observe(t, { attributes: !0, attributeFilter: ["class"] });
|
|
15927
15962
|
const a = window.matchMedia("(prefers-color-scheme: dark)");
|
|
@@ -15929,24 +15964,24 @@ function ep(e) {
|
|
|
15929
15964
|
n.disconnect(), a.removeEventListener("change", e);
|
|
15930
15965
|
};
|
|
15931
15966
|
}
|
|
15932
|
-
function
|
|
15967
|
+
function np() {
|
|
15933
15968
|
const e = localStorage.getItem("theme") || "system", t = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
15934
15969
|
return document.documentElement.classList.contains("dark") || e === "dark" || e === "system" && t ? "dark" : "light";
|
|
15935
15970
|
}
|
|
15936
|
-
function
|
|
15971
|
+
function ap() {
|
|
15937
15972
|
return "light";
|
|
15938
15973
|
}
|
|
15939
|
-
function
|
|
15974
|
+
function Rh({
|
|
15940
15975
|
position: e = "bottom-center"
|
|
15941
15976
|
}) {
|
|
15942
15977
|
const t = td(
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
|
|
15978
|
+
rp,
|
|
15979
|
+
np,
|
|
15980
|
+
ap
|
|
15946
15981
|
);
|
|
15947
15982
|
return /* @__PURE__ */ r(Kd, { position: e, theme: t, richColors: !0, closeButton: !0 });
|
|
15948
15983
|
}
|
|
15949
|
-
function
|
|
15984
|
+
function Oh({
|
|
15950
15985
|
title: e,
|
|
15951
15986
|
subtitle: t,
|
|
15952
15987
|
actions: n,
|
|
@@ -15995,7 +16030,7 @@ const Oa = [
|
|
|
15995
16030
|
"#60a5fa",
|
|
15996
16031
|
"#94a3b8"
|
|
15997
16032
|
];
|
|
15998
|
-
function
|
|
16033
|
+
function op(e, t) {
|
|
15999
16034
|
return e.color ?? Oa[t % Oa.length];
|
|
16000
16035
|
}
|
|
16001
16036
|
function or(e = "primary") {
|
|
@@ -16047,7 +16082,7 @@ function wn(e, t = 1) {
|
|
|
16047
16082
|
const s = i >= 100 ? i.toFixed(0) : i.toFixed(t);
|
|
16048
16083
|
return `${n}${s.replace(/\.0$/, "")} ${o[l]}`;
|
|
16049
16084
|
}
|
|
16050
|
-
function
|
|
16085
|
+
function ip(e, t = "bytes", n = 1) {
|
|
16051
16086
|
if (!Number.isFinite(e)) return "—";
|
|
16052
16087
|
const a = e < 0 ? "-" : "", o = Math.abs(e), i = t === "bits" ? ["b/s", "Kb/s", "Mb/s", "Gb/s", "Tb/s"] : ["B/s", "KB/s", "MB/s", "GB/s", "TB/s"];
|
|
16053
16088
|
if (o < 1024) return `${a}${Math.round(o)} ${i[0]}`;
|
|
@@ -16098,19 +16133,19 @@ function Bt({
|
|
|
16098
16133
|
}
|
|
16099
16134
|
);
|
|
16100
16135
|
}
|
|
16101
|
-
const yr = 680, Or = "ease-out",
|
|
16136
|
+
const yr = 680, Or = "ease-out", lp = {
|
|
16102
16137
|
top: 18,
|
|
16103
16138
|
right: 8,
|
|
16104
16139
|
bottom: 12,
|
|
16105
16140
|
left: 0
|
|
16106
16141
|
};
|
|
16107
16142
|
function In(e) {
|
|
16108
|
-
return { ...
|
|
16143
|
+
return { ...lp, ...e };
|
|
16109
16144
|
}
|
|
16110
16145
|
function Dn(e) {
|
|
16111
16146
|
return e.map((t, n) => ({
|
|
16112
16147
|
...t,
|
|
16113
|
-
color:
|
|
16148
|
+
color: op(t, n),
|
|
16114
16149
|
label: t.label ?? t.key
|
|
16115
16150
|
}));
|
|
16116
16151
|
}
|
|
@@ -16144,7 +16179,7 @@ function qa() {
|
|
|
16144
16179
|
color: "var(--text-muted)"
|
|
16145
16180
|
};
|
|
16146
16181
|
}
|
|
16147
|
-
function
|
|
16182
|
+
function sp(e, t = Ut) {
|
|
16148
16183
|
if (e == null || e === "") return "—";
|
|
16149
16184
|
const n = typeof e == "number" ? e : Number(e);
|
|
16150
16185
|
return Number.isFinite(n) ? t(n) : String(e);
|
|
@@ -16152,7 +16187,7 @@ function ip(e, t = Ut) {
|
|
|
16152
16187
|
function ts(e) {
|
|
16153
16188
|
return `bonsaif-grad-${e.replace(/[^a-zA-Z0-9_-]/g, "")}`;
|
|
16154
16189
|
}
|
|
16155
|
-
function
|
|
16190
|
+
function cp({
|
|
16156
16191
|
active: e,
|
|
16157
16192
|
label: t,
|
|
16158
16193
|
payload: n,
|
|
@@ -16184,7 +16219,7 @@ function lp({
|
|
|
16184
16219
|
),
|
|
16185
16220
|
h.name ?? h.dataKey
|
|
16186
16221
|
] }),
|
|
16187
|
-
/* @__PURE__ */ r("span", { className: "bonsaif-chart-tooltip-value", children:
|
|
16222
|
+
/* @__PURE__ */ r("span", { className: "bonsaif-chart-tooltip-value", children: sp(g, a) })
|
|
16188
16223
|
]
|
|
16189
16224
|
},
|
|
16190
16225
|
String(h.dataKey ?? h.name ?? x)
|
|
@@ -16217,7 +16252,7 @@ function on({
|
|
|
16217
16252
|
overflow: "visible",
|
|
16218
16253
|
...o
|
|
16219
16254
|
},
|
|
16220
|
-
content: t ?? /* @__PURE__ */ r(
|
|
16255
|
+
content: t ?? /* @__PURE__ */ r(cp, { valueFormat: e })
|
|
16221
16256
|
}
|
|
16222
16257
|
);
|
|
16223
16258
|
}
|
|
@@ -16349,7 +16384,7 @@ function Va({
|
|
|
16349
16384
|
}
|
|
16350
16385
|
) : null;
|
|
16351
16386
|
}
|
|
16352
|
-
function
|
|
16387
|
+
function Bh({
|
|
16353
16388
|
data: e,
|
|
16354
16389
|
xKey: t,
|
|
16355
16390
|
series: n,
|
|
@@ -16620,7 +16655,7 @@ function fi({
|
|
|
16620
16655
|
}
|
|
16621
16656
|
);
|
|
16622
16657
|
}
|
|
16623
|
-
function
|
|
16658
|
+
function Ih({
|
|
16624
16659
|
data: e,
|
|
16625
16660
|
xKey: t,
|
|
16626
16661
|
series: n,
|
|
@@ -16770,10 +16805,10 @@ function Oh({
|
|
|
16770
16805
|
}
|
|
16771
16806
|
);
|
|
16772
16807
|
}
|
|
16773
|
-
function
|
|
16808
|
+
function _h(e) {
|
|
16774
16809
|
return /* @__PURE__ */ r(sc, { ...e, variant: "pie" });
|
|
16775
16810
|
}
|
|
16776
|
-
function
|
|
16811
|
+
function Fh(e) {
|
|
16777
16812
|
return /* @__PURE__ */ r(
|
|
16778
16813
|
sc,
|
|
16779
16814
|
{
|
|
@@ -16864,7 +16899,7 @@ function sc({
|
|
|
16864
16899
|
animationDuration: yr,
|
|
16865
16900
|
animationEasing: Or,
|
|
16866
16901
|
label: !1,
|
|
16867
|
-
activeShape:
|
|
16902
|
+
activeShape: dp,
|
|
16868
16903
|
children: L.map((D) => /* @__PURE__ */ r(gs, { fill: D.fill }, D.name))
|
|
16869
16904
|
}
|
|
16870
16905
|
),
|
|
@@ -16899,7 +16934,7 @@ function sc({
|
|
|
16899
16934
|
}
|
|
16900
16935
|
);
|
|
16901
16936
|
}
|
|
16902
|
-
function
|
|
16937
|
+
function dp(e) {
|
|
16903
16938
|
const { outerRadius: t = 0, ...n } = e;
|
|
16904
16939
|
return /* @__PURE__ */ r(
|
|
16905
16940
|
Ud,
|
|
@@ -16911,7 +16946,7 @@ function sp(e) {
|
|
|
16911
16946
|
}
|
|
16912
16947
|
);
|
|
16913
16948
|
}
|
|
16914
|
-
function
|
|
16949
|
+
function Hh({
|
|
16915
16950
|
data: e,
|
|
16916
16951
|
dataKey: t,
|
|
16917
16952
|
width: n = "100%",
|
|
@@ -16975,7 +17010,7 @@ function _h({
|
|
|
16975
17010
|
}
|
|
16976
17011
|
);
|
|
16977
17012
|
}
|
|
16978
|
-
function
|
|
17013
|
+
function Ph({
|
|
16979
17014
|
data: e,
|
|
16980
17015
|
xKey: t,
|
|
16981
17016
|
series: n,
|
|
@@ -17127,7 +17162,7 @@ function Fh({
|
|
|
17127
17162
|
}
|
|
17128
17163
|
);
|
|
17129
17164
|
}
|
|
17130
|
-
function
|
|
17165
|
+
function zh({
|
|
17131
17166
|
data: e,
|
|
17132
17167
|
xKey: t,
|
|
17133
17168
|
valueKey: n,
|
|
@@ -17146,7 +17181,7 @@ function Hh({
|
|
|
17146
17181
|
totalColor: k = "var(--primary)"
|
|
17147
17182
|
}) {
|
|
17148
17183
|
const g = Re(
|
|
17149
|
-
() =>
|
|
17184
|
+
() => up(e, {
|
|
17150
17185
|
xKey: t,
|
|
17151
17186
|
valueKey: n,
|
|
17152
17187
|
typeKey: a,
|
|
@@ -17232,7 +17267,7 @@ function Hh({
|
|
|
17232
17267
|
}
|
|
17233
17268
|
);
|
|
17234
17269
|
}
|
|
17235
|
-
function
|
|
17270
|
+
function up(e, t) {
|
|
17236
17271
|
let n = 0;
|
|
17237
17272
|
return e.map((a, o) => {
|
|
17238
17273
|
const i = an(a[t.valueKey]) ?? 0, l = t.typeKey ? String(a[t.typeKey] ?? "") : "", s = l === "total" || o === e.length - 1 && l !== "increase" && l !== "decrease";
|
|
@@ -17247,7 +17282,7 @@ function cp(e, t) {
|
|
|
17247
17282
|
};
|
|
17248
17283
|
});
|
|
17249
17284
|
}
|
|
17250
|
-
const os = "bonsaif-funnel-chart-keyframes",
|
|
17285
|
+
const os = "bonsaif-funnel-chart-keyframes", mp = `
|
|
17251
17286
|
@keyframes bonsaif-funnel-stage-in {
|
|
17252
17287
|
from {
|
|
17253
17288
|
opacity: 0;
|
|
@@ -17288,10 +17323,10 @@ const os = "bonsaif-funnel-chart-keyframes", dp = `
|
|
|
17288
17323
|
}
|
|
17289
17324
|
}
|
|
17290
17325
|
`;
|
|
17291
|
-
function
|
|
17326
|
+
function fp() {
|
|
17292
17327
|
if (typeof document > "u" || document.getElementById(os)) return;
|
|
17293
17328
|
const e = document.createElement("style");
|
|
17294
|
-
e.id = os, e.textContent =
|
|
17329
|
+
e.id = os, e.textContent = mp, document.head.appendChild(e);
|
|
17295
17330
|
}
|
|
17296
17331
|
function cc(e, t, n) {
|
|
17297
17332
|
return Math.min(n, Math.max(t, e));
|
|
@@ -17300,7 +17335,7 @@ function xa(e, t, n) {
|
|
|
17300
17335
|
const a = cc(n, 0, 1);
|
|
17301
17336
|
return `color-mix(in srgb, ${e} ${Math.round((1 - a) * 100)}%, ${t} ${Math.round(a * 100)}%)`;
|
|
17302
17337
|
}
|
|
17303
|
-
function
|
|
17338
|
+
function bp(e, t, n, a, o, i) {
|
|
17304
17339
|
const l = e.map((d, u) => {
|
|
17305
17340
|
const b = an(d[n]) ?? 0, f = String(d[t] ?? ""), m = a ? String(d[a] ?? "").trim() : "", h = o ? String(d[o] ?? "").trim() : "";
|
|
17306
17341
|
return {
|
|
@@ -17316,7 +17351,7 @@ function mp(e, t, n, a, o, i) {
|
|
|
17316
17351
|
pct: d.value / s
|
|
17317
17352
|
}));
|
|
17318
17353
|
}
|
|
17319
|
-
function
|
|
17354
|
+
function pp(e, t) {
|
|
17320
17355
|
const n = e.length;
|
|
17321
17356
|
if (n === 0) return [];
|
|
17322
17357
|
const a = t.gap * Math.max(0, n - 1), o = (t.plotH - a) / n, i = t.maxTopW, l = t.maxTopW * t.taper;
|
|
@@ -17333,7 +17368,7 @@ function fp(e, t) {
|
|
|
17333
17368
|
};
|
|
17334
17369
|
});
|
|
17335
17370
|
}
|
|
17336
|
-
function
|
|
17371
|
+
function hp({
|
|
17337
17372
|
stage: e,
|
|
17338
17373
|
hovered: t,
|
|
17339
17374
|
onHover: n
|
|
@@ -17398,7 +17433,7 @@ function bp({
|
|
|
17398
17433
|
}
|
|
17399
17434
|
);
|
|
17400
17435
|
}
|
|
17401
|
-
function
|
|
17436
|
+
function jh({
|
|
17402
17437
|
data: e,
|
|
17403
17438
|
nameKey: t,
|
|
17404
17439
|
valueKey: n,
|
|
@@ -17419,21 +17454,21 @@ function Ph({
|
|
|
17419
17454
|
ariaLabel: L = "Gráfico embudo"
|
|
17420
17455
|
}) {
|
|
17421
17456
|
const [S, T] = z(null), [O, C] = z(!1), y = Re(
|
|
17422
|
-
() =>
|
|
17457
|
+
() => bp(e, t, n, a, o, x),
|
|
17423
17458
|
[e, t, n, a, o, x]
|
|
17424
17459
|
), $ = Re(
|
|
17425
17460
|
() => y.map((Y) => `${Y.name}:${Y.value}`).join("|"),
|
|
17426
17461
|
[y]
|
|
17427
17462
|
);
|
|
17428
17463
|
if (fe(() => {
|
|
17429
|
-
if (
|
|
17464
|
+
if (fp(), typeof window > "u") return;
|
|
17430
17465
|
const Y = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
17431
17466
|
C(Y.matches);
|
|
17432
17467
|
const W = () => C(Y.matches);
|
|
17433
17468
|
return Y.addEventListener("change", W), () => Y.removeEventListener("change", W);
|
|
17434
17469
|
}, []), s) return /* @__PURE__ */ r(Ot, { height: i });
|
|
17435
17470
|
if (!y.length) return /* @__PURE__ */ r(Bt, { height: i, text: d });
|
|
17436
|
-
const w = k > 0 && !O, _ = k, j = Math.min(90, Math.max(40, Math.round(k / 8))), q = Math.round(_ * 0.15), D = y.length * j + Math.round(_ * 0.35), U = y.some((Y) => Y.title || Y.description), H = b ? 160 : 24, le = U ? 168 : 24, Z = m ? 36 : 8, K = H + 220 + le, P = i, X = 18, se = Math.max(120, P - X - Z - 8), M = H + 110, de =
|
|
17471
|
+
const w = k > 0 && !O, _ = k, j = Math.min(90, Math.max(40, Math.round(k / 8))), q = Math.round(_ * 0.15), D = y.length * j + Math.round(_ * 0.35), U = y.some((Y) => Y.title || Y.description), H = b ? 160 : 24, le = U ? 168 : 24, Z = m ? 36 : 8, K = H + 220 + le, P = i, X = 18, se = Math.max(120, P - X - Z - 8), M = H + 110, de = pp(y, {
|
|
17437
17472
|
cx: M,
|
|
17438
17473
|
topY: X,
|
|
17439
17474
|
plotH: se,
|
|
@@ -17481,7 +17516,7 @@ function Ph({
|
|
|
17481
17516
|
} : void 0;
|
|
17482
17517
|
return /* @__PURE__ */ c("g", { children: [
|
|
17483
17518
|
/* @__PURE__ */ r("g", { className: "bonsaif-funnel-stage", style: J, children: /* @__PURE__ */ r(
|
|
17484
|
-
|
|
17519
|
+
hp,
|
|
17485
17520
|
{
|
|
17486
17521
|
stage: Y,
|
|
17487
17522
|
hovered: S === Y.index,
|
|
@@ -17623,7 +17658,7 @@ function Ph({
|
|
|
17623
17658
|
);
|
|
17624
17659
|
}
|
|
17625
17660
|
const Vr = 135 * Math.PI / 180, Bo = 270 * Math.PI / 180;
|
|
17626
|
-
function
|
|
17661
|
+
function Wh({
|
|
17627
17662
|
value: e,
|
|
17628
17663
|
min: t = 0,
|
|
17629
17664
|
max: n = 100,
|
|
@@ -17664,7 +17699,7 @@ function zh({
|
|
|
17664
17699
|
return K = requestAnimationFrame(se), () => cancelAnimationFrame(K);
|
|
17665
17700
|
}, [T, x, i, l]), i) return /* @__PURE__ */ r(Ot, { height: a });
|
|
17666
17701
|
if (l) return /* @__PURE__ */ r(Bt, { height: a, text: s });
|
|
17667
|
-
const y = 100, $ = 108, w = 72, _ = f ??
|
|
17702
|
+
const y = 100, $ = 108, w = 72, _ = f ?? gp(e, n, b, m), j = t + O * S, q = is(y, $, w, Vr, Vr + Bo), D = Vr + Math.max(1e-3, O) * Bo, U = is(y, $, w, Vr, D), H = Ia(y, $, w, Vr), le = Ia(y, $, w, Vr + Bo);
|
|
17668
17703
|
return /* @__PURE__ */ r(
|
|
17669
17704
|
"div",
|
|
17670
17705
|
{
|
|
@@ -17773,7 +17808,7 @@ function zh({
|
|
|
17773
17808
|
}
|
|
17774
17809
|
);
|
|
17775
17810
|
}
|
|
17776
|
-
function
|
|
17811
|
+
function gp(e, t, n, a) {
|
|
17777
17812
|
if (a != null && a.length) {
|
|
17778
17813
|
const i = [...a].sort((s, d) => s.value - d.value);
|
|
17779
17814
|
let l = i[0].color;
|
|
@@ -17795,7 +17830,7 @@ function is(e, t, n, a, o) {
|
|
|
17795
17830
|
const i = Ia(e, t, n, a), l = Ia(e, t, n, o), s = o - a, d = Math.abs(s) > Math.PI ? 1 : 0;
|
|
17796
17831
|
return `M ${i.x} ${i.y} A ${n} ${n} 0 ${d} 1 ${l.x} ${l.y}`;
|
|
17797
17832
|
}
|
|
17798
|
-
function
|
|
17833
|
+
function qh({
|
|
17799
17834
|
value: e,
|
|
17800
17835
|
target: t,
|
|
17801
17836
|
max: n,
|
|
@@ -17977,7 +18012,7 @@ function jh({
|
|
|
17977
18012
|
w
|
|
17978
18013
|
] }) : w });
|
|
17979
18014
|
}
|
|
17980
|
-
function
|
|
18015
|
+
function Uh({
|
|
17981
18016
|
data: e,
|
|
17982
18017
|
value: t,
|
|
17983
18018
|
timeKey: n = "t",
|
|
@@ -18063,7 +18098,7 @@ function Wh({
|
|
|
18063
18098
|
}
|
|
18064
18099
|
);
|
|
18065
18100
|
}
|
|
18066
|
-
function
|
|
18101
|
+
function Vh({
|
|
18067
18102
|
used: e,
|
|
18068
18103
|
total: t,
|
|
18069
18104
|
cached: n,
|
|
@@ -18198,8 +18233,8 @@ function qh({
|
|
|
18198
18233
|
}
|
|
18199
18234
|
);
|
|
18200
18235
|
}
|
|
18201
|
-
const
|
|
18202
|
-
function
|
|
18236
|
+
const xp = "color-mix(in srgb, var(--primary) 25%, #38bdf8)", vp = "color-mix(in srgb, var(--primary) 20%, #2dd4bf)";
|
|
18237
|
+
function Yh({
|
|
18203
18238
|
data: e,
|
|
18204
18239
|
timeKey: t = "t",
|
|
18205
18240
|
inboundKey: n = "in",
|
|
@@ -18209,8 +18244,8 @@ function Uh({
|
|
|
18209
18244
|
unit: l = "bytes",
|
|
18210
18245
|
inboundLabel: s = "Entrada",
|
|
18211
18246
|
outboundLabel: d = "Salida",
|
|
18212
|
-
inboundColor: u =
|
|
18213
|
-
outboundColor: b =
|
|
18247
|
+
inboundColor: u = xp,
|
|
18248
|
+
outboundColor: b = vp,
|
|
18214
18249
|
height: f = 240,
|
|
18215
18250
|
className: m = "",
|
|
18216
18251
|
loading: h = !1,
|
|
@@ -18223,7 +18258,7 @@ function Uh({
|
|
|
18223
18258
|
const T = o ?? Zr(e, n) ?? 0, O = i ?? Zr(e, a) ?? 0, C = !h && e.length === 0;
|
|
18224
18259
|
if (h) return /* @__PURE__ */ r(Ot, { height: f });
|
|
18225
18260
|
if (C) return /* @__PURE__ */ r(Bt, { height: f, text: x });
|
|
18226
|
-
const y = (_) =>
|
|
18261
|
+
const y = (_) => ip(_, l), w = Math.max(140, f - 76);
|
|
18227
18262
|
return /* @__PURE__ */ c(
|
|
18228
18263
|
"div",
|
|
18229
18264
|
{
|
|
@@ -18331,7 +18366,7 @@ const dc = [
|
|
|
18331
18366
|
"primeSuiteOrigin",
|
|
18332
18367
|
"primeSuiteProjectKey"
|
|
18333
18368
|
];
|
|
18334
|
-
function
|
|
18369
|
+
function Kh() {
|
|
18335
18370
|
if (typeof window > "u") return "*";
|
|
18336
18371
|
try {
|
|
18337
18372
|
if (window.parent === window) return "*";
|
|
@@ -18366,7 +18401,7 @@ function Vh() {
|
|
|
18366
18401
|
return "*";
|
|
18367
18402
|
}
|
|
18368
18403
|
}
|
|
18369
|
-
function
|
|
18404
|
+
function Xh() {
|
|
18370
18405
|
if (typeof window > "u") return "self";
|
|
18371
18406
|
try {
|
|
18372
18407
|
if (window.parent === window) return "self";
|
|
@@ -18398,7 +18433,7 @@ function Na(e) {
|
|
|
18398
18433
|
return null;
|
|
18399
18434
|
}
|
|
18400
18435
|
}
|
|
18401
|
-
function
|
|
18436
|
+
function Gh(e) {
|
|
18402
18437
|
const [t, n] = z({}), [a, o] = z(!1), i = be(
|
|
18403
18438
|
(u) => a || t[u] ? e[u] : void 0,
|
|
18404
18439
|
[e, a, t]
|
|
@@ -18419,115 +18454,115 @@ function Kh(e) {
|
|
|
18419
18454
|
};
|
|
18420
18455
|
}
|
|
18421
18456
|
export {
|
|
18422
|
-
|
|
18457
|
+
Rp as Alert,
|
|
18423
18458
|
fi as AreaChart,
|
|
18424
|
-
|
|
18425
|
-
|
|
18426
|
-
|
|
18427
|
-
|
|
18428
|
-
|
|
18429
|
-
|
|
18430
|
-
|
|
18459
|
+
Kb as AuthShell,
|
|
18460
|
+
ub as AutoGrowTextarea,
|
|
18461
|
+
Eh as AutoGrowTextareaField,
|
|
18462
|
+
Ih as BarChart,
|
|
18463
|
+
Lp as BonsaifButton,
|
|
18464
|
+
Rh as BonsaifUIToaster,
|
|
18465
|
+
qh as BulletChart,
|
|
18431
18466
|
tt as Button,
|
|
18432
18467
|
Oa as CHART_PALETTE,
|
|
18433
|
-
|
|
18434
|
-
|
|
18468
|
+
Op as CalendarPicker,
|
|
18469
|
+
Oh as ChartCard,
|
|
18435
18470
|
Po as Checkbox,
|
|
18436
|
-
|
|
18437
|
-
|
|
18438
|
-
|
|
18439
|
-
|
|
18440
|
-
|
|
18471
|
+
zp as CodeBlock,
|
|
18472
|
+
Ph as ComboChart,
|
|
18473
|
+
Wp as CompactFilterSelect,
|
|
18474
|
+
jp as CompactSearchInput,
|
|
18475
|
+
qp as ConfirmDialog,
|
|
18441
18476
|
As as CopyButton,
|
|
18442
|
-
|
|
18443
|
-
|
|
18444
|
-
|
|
18477
|
+
Up as CopyLinkButton,
|
|
18478
|
+
Uh as CpuChart,
|
|
18479
|
+
Vp as DataSheets,
|
|
18445
18480
|
Ss as DataTable,
|
|
18446
|
-
|
|
18447
|
-
|
|
18448
|
-
|
|
18449
|
-
|
|
18450
|
-
|
|
18451
|
-
|
|
18481
|
+
Yp as DateRangePicker,
|
|
18482
|
+
Fh as DonutChart,
|
|
18483
|
+
Zp as Drawer,
|
|
18484
|
+
Gp as DropdownMenu,
|
|
18485
|
+
Dp as DynamicDetailTabs,
|
|
18486
|
+
lh as EmailField,
|
|
18452
18487
|
go as EmptyState,
|
|
18453
|
-
|
|
18488
|
+
Pp as EventCalendar,
|
|
18454
18489
|
Bn as FieldHelperFooter,
|
|
18455
18490
|
On as FieldLabelInfo,
|
|
18456
|
-
|
|
18457
|
-
|
|
18491
|
+
ch as FieldLayoutEditor,
|
|
18492
|
+
sh as FileUpload,
|
|
18458
18493
|
si as FormField,
|
|
18459
|
-
|
|
18460
|
-
|
|
18461
|
-
|
|
18494
|
+
jh as FunnelChart,
|
|
18495
|
+
Wh as GaugeChart,
|
|
18496
|
+
Rb as GlobalScrollbars,
|
|
18462
18497
|
Ym as ImageLightbox,
|
|
18463
|
-
|
|
18498
|
+
dh as ImageLightboxHost,
|
|
18464
18499
|
Ws as InputField,
|
|
18465
|
-
|
|
18500
|
+
Bh as LineChart,
|
|
18466
18501
|
su as LoadingState,
|
|
18467
|
-
|
|
18468
|
-
|
|
18502
|
+
tb as MentionTextEditor,
|
|
18503
|
+
Lh as MicroserviceFrame,
|
|
18469
18504
|
Ls as Modal,
|
|
18470
18505
|
ir as MouseTooltip,
|
|
18471
|
-
|
|
18472
|
-
|
|
18473
|
-
|
|
18474
|
-
|
|
18475
|
-
|
|
18506
|
+
Kp as MultiDateCalendar,
|
|
18507
|
+
uh as MultiSelect,
|
|
18508
|
+
Yh as NetworkChart,
|
|
18509
|
+
mh as NumberField,
|
|
18510
|
+
Mh as PageHeader,
|
|
18476
18511
|
Gd as PageSearchInput,
|
|
18477
|
-
|
|
18478
|
-
|
|
18479
|
-
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18483
|
-
|
|
18484
|
-
|
|
18512
|
+
fh as Pagination,
|
|
18513
|
+
bh as PhoneField,
|
|
18514
|
+
_h as PieChart,
|
|
18515
|
+
Ah as PrimeAuthRouteShell,
|
|
18516
|
+
Dh as PrimeSuiteChatFrame,
|
|
18517
|
+
ph as RadioGroup,
|
|
18518
|
+
Vh as RamChart,
|
|
18519
|
+
xh as RichTextEditor,
|
|
18485
18520
|
en as SearchableSelect,
|
|
18486
|
-
|
|
18487
|
-
|
|
18488
|
-
|
|
18489
|
-
|
|
18490
|
-
|
|
18521
|
+
vh as SectionPanel,
|
|
18522
|
+
Hh as Sparkline,
|
|
18523
|
+
yh as StatusBadge,
|
|
18524
|
+
wh as StatusSelect,
|
|
18525
|
+
kh as StepWizard,
|
|
18491
18526
|
ti as TableSkeleton,
|
|
18492
|
-
|
|
18493
|
-
|
|
18527
|
+
Nh as Tabs,
|
|
18528
|
+
Ch as TagInput,
|
|
18494
18529
|
vo as TextInput,
|
|
18495
|
-
|
|
18496
|
-
|
|
18497
|
-
|
|
18498
|
-
|
|
18499
|
-
|
|
18530
|
+
hb as Textarea,
|
|
18531
|
+
Sh as TextareaField,
|
|
18532
|
+
$h as TimeField,
|
|
18533
|
+
$b as TimePicker,
|
|
18534
|
+
Th as Toggle,
|
|
18500
18535
|
hr as TruncatedWithTooltip,
|
|
18501
|
-
|
|
18536
|
+
Ub as UserAvatar,
|
|
18502
18537
|
Vu as WORKDAY_LABELS,
|
|
18503
|
-
|
|
18504
|
-
|
|
18505
|
-
|
|
18538
|
+
zh as WaterfallChart,
|
|
18539
|
+
Xp as YearMultiDateCalendar,
|
|
18540
|
+
Of as buildMentionQueryRegex,
|
|
18506
18541
|
Ts as chunkMonthWeeks,
|
|
18507
18542
|
Pu as chunkMonthWorkWeeks,
|
|
18508
18543
|
En as clearMentionChipSelection,
|
|
18509
18544
|
Lr as cn,
|
|
18510
18545
|
ll as computeWeekBars,
|
|
18511
|
-
|
|
18512
|
-
|
|
18546
|
+
Bp as configureBonsaifUI,
|
|
18547
|
+
nf as copyRichCodeBlockFromButton,
|
|
18513
18548
|
Ms as copyTextToClipboard,
|
|
18514
|
-
|
|
18549
|
+
Hf as dedupeMentions,
|
|
18515
18550
|
Ut as defaultValueFormat,
|
|
18516
|
-
|
|
18517
|
-
|
|
18518
|
-
|
|
18551
|
+
Yf as deleteEditorSelection,
|
|
18552
|
+
Xh as describeParentTargetOrigin,
|
|
18553
|
+
Jp as emailFormat,
|
|
18519
18554
|
Da as ensureMentionChipTrailingSpaces,
|
|
18520
18555
|
ec as extractMentionUsernames,
|
|
18521
|
-
|
|
18556
|
+
gh as filterSelfMentions,
|
|
18522
18557
|
ri as filterWorkdays,
|
|
18523
|
-
|
|
18524
|
-
|
|
18558
|
+
Xf as findMentionChipAfterCaret,
|
|
18559
|
+
Kf as findMentionChipBeforeCaret,
|
|
18525
18560
|
Ol as findMentionChipsInSelection,
|
|
18526
18561
|
Dl as findMentionTriggerInEditor,
|
|
18527
18562
|
wn as formatBytes,
|
|
18528
18563
|
An as formatPercent,
|
|
18529
|
-
|
|
18530
|
-
|
|
18564
|
+
ip as formatRate,
|
|
18565
|
+
Ip as getBonsaifUIConfig,
|
|
18531
18566
|
Ji as getDataTablePreferencesEndpoint,
|
|
18532
18567
|
nc as getEditorPlainText,
|
|
18533
18568
|
il as getMonthGrid,
|
|
@@ -18535,48 +18570,49 @@ export {
|
|
|
18535
18570
|
$s as getWeekDays,
|
|
18536
18571
|
Hu as getWorkWeekDays,
|
|
18537
18572
|
ju as groupItemsByDay,
|
|
18538
|
-
|
|
18539
|
-
|
|
18540
|
-
|
|
18541
|
-
|
|
18542
|
-
|
|
18573
|
+
Pf as highlightMentions,
|
|
18574
|
+
_f as htmlToText,
|
|
18575
|
+
jf as insertMentionInEditor,
|
|
18576
|
+
If as isMentionTriggerBoundary,
|
|
18577
|
+
Bf as isPlainOffsetInsideMentionChip,
|
|
18543
18578
|
Fs as isValidEmail,
|
|
18544
18579
|
Hs as isValidPhone,
|
|
18545
18580
|
Fu as isWeekend,
|
|
18546
18581
|
Ln as locateTextOffset,
|
|
18547
|
-
|
|
18548
|
-
|
|
18549
|
-
|
|
18550
|
-
|
|
18551
|
-
|
|
18552
|
-
|
|
18553
|
-
|
|
18554
|
-
|
|
18582
|
+
of as makeRichCodeBlockHtml,
|
|
18583
|
+
af as markRichCodeCopyButtonCopied,
|
|
18584
|
+
oh as matches,
|
|
18585
|
+
rh as maxLength,
|
|
18586
|
+
ah as maxValue,
|
|
18587
|
+
Ff as mentionDisplayLabel,
|
|
18588
|
+
th as minLength,
|
|
18589
|
+
nh as minValue,
|
|
18555
18590
|
Js as normalizeUsername,
|
|
18556
18591
|
Hm as openImageLightboxFromEvent,
|
|
18557
18592
|
Gm as phoneCountryCodeOptions,
|
|
18558
|
-
|
|
18593
|
+
eh as phoneFormat,
|
|
18559
18594
|
rc as placeCaretAfterMentionChip,
|
|
18560
|
-
|
|
18595
|
+
Wf as placeCaretAtTextOffset,
|
|
18561
18596
|
tc as preferredMentionSpacer,
|
|
18562
18597
|
$o as removeMentionChip,
|
|
18563
|
-
|
|
18564
|
-
|
|
18565
|
-
|
|
18566
|
-
|
|
18598
|
+
Qp as required,
|
|
18599
|
+
_p as resetBonsaifUIConfig,
|
|
18600
|
+
hh as resolveMentions,
|
|
18601
|
+
Kh as resolveParentTargetOrigin,
|
|
18602
|
+
rf as richCodeBlockPlainText,
|
|
18567
18603
|
ef as richCodeCopyButtonHtml,
|
|
18568
|
-
|
|
18569
|
-
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
|
|
18604
|
+
Uf as selectAllEditorContents,
|
|
18605
|
+
qf as selectMentionChip,
|
|
18606
|
+
Vf as selectionIncludesNonChipText,
|
|
18607
|
+
op as seriesColor,
|
|
18608
|
+
Fp as setBonsaifDataTablePreferencesEndpoint,
|
|
18573
18609
|
Yo as syncMentionChipSelectionHighlight,
|
|
18574
18610
|
nr as toDateKey,
|
|
18575
|
-
|
|
18576
|
-
|
|
18611
|
+
Hp as toNearestWorkday,
|
|
18612
|
+
Jh as toast,
|
|
18577
18613
|
or as toneColor,
|
|
18578
18614
|
Ba as usageColor,
|
|
18579
18615
|
mi as usageTone,
|
|
18580
|
-
|
|
18581
|
-
|
|
18616
|
+
Gh as useValidationVisibility,
|
|
18617
|
+
ih as validateForm
|
|
18582
18618
|
};
|