bonsaif-ui 0.1.147 → 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.
@@ -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 Zh } from "sonner";
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 Mp({
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 Ap({
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 Lp({
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 Dp({
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 Rp(e) {
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 Op() {
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 Bp() {
1806
+ function _p() {
1807
1807
  jt = {
1808
1808
  dataTable: {
1809
1809
  pageSizeOptions: [...$a]
1810
1810
  }
1811
1811
  };
1812
1812
  }
1813
- function Ip(e) {
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 _p(e) {
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 Fp({
4936
+ function Pp({
4937
4937
  items: e,
4938
4938
  cursorDate: t,
4939
4939
  onCursorDateChange: n,
@@ -5800,7 +5800,7 @@ function As({
5800
5800
  }
5801
5801
  );
5802
5802
  }
5803
- function Hp({
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 Pp({
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 zp({
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 jp({
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 Wp({
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 qp({
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 Up({
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 Vp({
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 Yp({
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 Kp({
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 Xp({
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 Gp(e = "Este campo es requerido.") {
7994
+ function Qp(e = "Este campo es requerido.") {
7995
7995
  return (t) => Qt(t) ? e : void 0;
7996
7996
  }
7997
- function Zp(e = "Ingresa un correo valido.") {
7997
+ function Jp(e = "Ingresa un correo valido.") {
7998
7998
  return (t) => Qt(t) || Fs(t) ? void 0 : e;
7999
7999
  }
8000
- function Qp(e = "Ingresa un telefono valido.") {
8000
+ function eh(e = "Ingresa un telefono valido.") {
8001
8001
  return (t) => Qt(t) || Hs(t) ? void 0 : e;
8002
8002
  }
8003
- function Jp(e, t) {
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 eh(e, t) {
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 th(e, t) {
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 rh(e, t) {
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 nh(e, t = "El formato no es valido.") {
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 ah(e, t) {
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 oh({
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 ih({
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 lh({
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 sh({
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 ch({
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 dh({
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 uh({
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 mh({
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 fh({
10454
+ function ph({
10455
10455
  value: e,
10456
10456
  onChange: t,
10457
10457
  options: n,
@@ -10517,24 +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
- async function tf(e) {
10521
- var o;
10522
- const t = e.closest(".rich-code-wrap"), n = t == null ? void 0 : t.querySelector("pre"), a = (((o = n == null ? void 0 : n.querySelector("code")) == null ? void 0 : o.textContent) ?? (n == null ? void 0 : n.textContent) ?? "").replace(/\u00a0/g, " ");
10523
- if (!a.trim())
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())
10524
10557
  throw new Error("empty_code_block");
10525
- await Ms(a), rf(e);
10558
+ await Ms(o), af(e);
10526
10559
  }
10527
- function rf(e, t = 2e3) {
10560
+ function af(e, t = 2e3) {
10528
10561
  e.setAttribute("data-copied", "true"), e.title = "Copiado", e.setAttribute("aria-label", "Copiado"), window.setTimeout(() => {
10529
10562
  e.removeAttribute("data-copied"), e.title = "Copiar", e.setAttribute("aria-label", "Copiar");
10530
10563
  }, t);
10531
10564
  }
10532
- function nf(e, t, n = !0) {
10565
+ function of(e, t, n = !0) {
10533
10566
  const a = e.replace(/\r\n?/g, `
10534
- `), 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 || "<br>"}</code></pre></div>`;
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>`;
10535
10568
  return n ? `${i}<p><br></p>` : i;
10536
10569
  }
10537
- const af = /* @__PURE__ */ new Set([
10570
+ const lf = /* @__PURE__ */ new Set([
10538
10571
  "table",
10539
10572
  "thead",
10540
10573
  "tbody",
@@ -10563,7 +10596,7 @@ const af = /* @__PURE__ */ new Set([
10563
10596
  return null;
10564
10597
  const o = Array.from(a.rows).indexOf(n);
10565
10598
  return Wo(a, o + 1, e);
10566
- }, of = (e, t) => {
10599
+ }, sf = (e, t) => {
10567
10600
  var o;
10568
10601
  const n = e.rows[t];
10569
10602
  if (!n) return !1;
@@ -10574,7 +10607,7 @@ const af = /* @__PURE__ */ new Set([
10574
10607
  a ? o.textContent = `Columna ${n.cells.length + 1}` : o.innerHTML = "<br>";
10575
10608
  const i = n.cells[t];
10576
10609
  i != null && i.nextSibling ? n.insertBefore(o, i.nextSibling) : n.appendChild(o);
10577
- }), !0), lf = (e, t) => za(e) <= 1 ? !1 : (e.querySelectorAll("tr").forEach((n) => {
10610
+ }), !0), cf = (e, t) => za(e) <= 1 ? !1 : (e.querySelectorAll("tr").forEach((n) => {
10578
10611
  var a;
10579
10612
  (a = n.cells[t]) == null || a.remove();
10580
10613
  }), !0), Vs = (e) => {
@@ -10588,7 +10621,7 @@ const af = /* @__PURE__ */ new Set([
10588
10621
  var o;
10589
10622
  (o = a.cells[n]) == null || o.classList.add("rich-table-col-active");
10590
10623
  }));
10591
- }, sf = (e, t, n) => {
10624
+ }, df = (e, t, n) => {
10592
10625
  const a = e.getBoundingClientRect();
10593
10626
  return {
10594
10627
  rowIndex: Array.from(e.rows).indexOf(t),
@@ -10615,7 +10648,7 @@ const af = /* @__PURE__ */ new Set([
10615
10648
  }), e.querySelectorAll(".rich-table-ui").forEach((t) => t.remove()), e.querySelectorAll("table").forEach((t) => {
10616
10649
  t.classList.add("rich-table");
10617
10650
  });
10618
- }, cf = (e, t, n, a, o) => {
10651
+ }, uf = (e, t, n, a, o) => {
10619
10652
  switch (e) {
10620
10653
  case "table-delete":
10621
10654
  return t.remove(), !0;
@@ -10624,11 +10657,11 @@ const af = /* @__PURE__ */ new Set([
10624
10657
  return i && ya(i, o, !0), !!i;
10625
10658
  }
10626
10659
  case "table-row-del":
10627
- return Number.isFinite(n) ? of(t, n) : !1;
10660
+ return Number.isFinite(n) ? sf(t, n) : !1;
10628
10661
  case "table-col-add":
10629
- return Number.isFinite(a) ? Us(t, a) : ff(t);
10662
+ return Number.isFinite(a) ? Us(t, a) : pf(t);
10630
10663
  case "table-col-del":
10631
- return Number.isFinite(a) ? lf(t, a) : !1;
10664
+ return Number.isFinite(a) ? cf(t, a) : !1;
10632
10665
  default:
10633
10666
  return !1;
10634
10667
  }
@@ -10637,20 +10670,20 @@ const af = /* @__PURE__ */ new Set([
10637
10670
  return e.querySelectorAll("tr").forEach((n) => {
10638
10671
  t = Math.max(t, n.cells.length);
10639
10672
  }), t || 1;
10640
- }, df = (e) => {
10673
+ }, mf = (e) => {
10641
10674
  const t = e.tBodies[0] ?? e.createTBody();
10642
10675
  return Array.from(t.rows);
10643
10676
  }, Cl = (e) => (e == null ? void 0 : e.closest("table")) ?? null, $l = (e) => {
10644
10677
  if (!e) return null;
10645
10678
  const t = e.nodeType === Node.ELEMENT_NODE ? e : e.parentElement;
10646
10679
  return (t == null ? void 0 : t.closest("td, th")) ?? null;
10647
- }, uf = (e) => Array.from(e.querySelectorAll("th, td")), Tl = (e, t) => {
10680
+ }, ff = (e) => Array.from(e.querySelectorAll("th, td")), Tl = (e, t) => {
10648
10681
  if (e.closest("thead")) return !1;
10649
10682
  const n = e.closest("tbody") ?? t.tBodies[0];
10650
10683
  if (!n) return !1;
10651
10684
  const a = Array.from(n.rows), o = e.closest("tr");
10652
10685
  return !o || o !== a[a.length - 1] ? !1 : e === o.cells[o.cells.length - 1];
10653
- }, mf = (e) => {
10686
+ }, bf = (e) => {
10654
10687
  const t = window.getSelection();
10655
10688
  if (!t || !t.isCollapsed || t.rangeCount === 0)
10656
10689
  return !1;
@@ -10665,7 +10698,7 @@ const af = /* @__PURE__ */ new Set([
10665
10698
  const o = window.getSelection();
10666
10699
  o == null || o.removeAllRanges(), o == null || o.addRange(a);
10667
10700
  }, qo = (e) => {
10668
- const t = df(e);
10701
+ const t = mf(e);
10669
10702
  if (t.length >= rn) return null;
10670
10703
  const n = t[t.length - 1];
10671
10704
  if (!n) {
@@ -10676,12 +10709,12 @@ const af = /* @__PURE__ */ new Set([
10676
10709
  e,
10677
10710
  Array.from(e.rows).indexOf(n)
10678
10711
  );
10679
- }, ff = (e) => {
10712
+ }, pf = (e) => {
10680
10713
  const t = za(e) - 1;
10681
10714
  return t < 0 ? !1 : Us(e, t);
10682
10715
  }, Eo = (e) => {
10683
10716
  Ys(e);
10684
- }, bf = (e, t, n) => {
10717
+ }, hf = (e, t, n) => {
10685
10718
  const a = Aa(e, 1, rn), o = Aa(t, 1, La), i = n ? `<thead><tr>${Array.from(
10686
10719
  { length: o },
10687
10720
  (s, d) => `<th>Columna ${d + 1}</th>`
@@ -10693,7 +10726,7 @@ const af = /* @__PURE__ */ new Set([
10693
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, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), Xs = (e) => e.toLocaleLowerCase().replace(
10694
10727
  new RegExp("(^|[^\\p{L}\\p{N}])(\\p{L})", "gu"),
10695
10728
  (t, n, a) => `${n}${a.toLocaleUpperCase()}`
10696
- ), pf = (e) => e.replace(/[<>]/g, "").toLowerCase(), hf = /* @__PURE__ */ new Set([
10729
+ ), gf = (e) => e.replace(/[<>]/g, "").toLowerCase(), xf = /* @__PURE__ */ new Set([
10697
10730
  "p",
10698
10731
  "br",
10699
10732
  "div",
@@ -10727,13 +10760,13 @@ const af = /* @__PURE__ */ new Set([
10727
10760
  "th",
10728
10761
  "td",
10729
10762
  "caption"
10730
- ]), gf = /^[\s\u00a0]*([•●○■▪▫◆◇►▶➢❖✓✔\-–—*])[\s\u00a0]+/, xf = (e) => {
10763
+ ]), vf = /^[\s\u00a0]*([•●○■▪▫◆◇►▶➢❖✓✔\-–—*])[\s\u00a0]+/, yf = (e) => {
10731
10764
  const t = e.indexOf("<!--StartFragment-->"), n = e.indexOf("<!--EndFragment-->");
10732
10765
  if (t !== -1 && n !== -1 && n > t)
10733
10766
  return e.slice(t + 20, n);
10734
10767
  const a = e.match(/<body[^>]*>([\s\S]*)<\/body>/i);
10735
10768
  return a ? a[1] : e;
10736
- }, ja = (e, t) => t.test(e), vf = (e) => ja(e, /font-weight\s*:\s*(bold|[6-9]00)/i), yf = (e) => ja(e, /font-style\s*:\s*italic/i), wf = (e) => ja(e, /text-decoration(?:-line)?\s*:[^;]*underline/i), Nf = (e) => ja(
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(
10737
10770
  e,
10738
10771
  /text-decoration(?:-line)?\s*:[^;]*(line-through|linethrough)/i
10739
10772
  ), ba = (e, t) => {
@@ -10751,18 +10784,18 @@ const af = /* @__PURE__ */ new Set([
10751
10784
  }
10752
10785
  for (; e.firstChild; ) t.insertBefore(e.firstChild, e);
10753
10786
  t.removeChild(e);
10754
- }, kf = (e) => {
10787
+ }, Sf = (e) => {
10755
10788
  const t = e.getAttribute("class") ?? "", n = e.getAttribute("style") ?? "";
10756
10789
  return /mso-list/i.test(n) || /MsoListParagraph/i.test(t) || /MsoList/i.test(t);
10757
10790
  }, Ml = (e) => {
10758
10791
  const t = e.getAttribute("style") ?? "", n = e.textContent ?? "";
10759
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";
10760
- }, Ef = (e) => {
10793
+ }, Cf = (e) => {
10761
10794
  const n = e.ownerDocument.createTreeWalker(e, NodeFilter.SHOW_TEXT).nextNode();
10762
10795
  if (!n || !n.textContent) return;
10763
- const a = n.textContent.replace(gf, "").replace(/^\s*\d+[.)]\s+/, "").replace(/^\s*[a-zA-Z][.)]\s+/, "");
10796
+ const a = n.textContent.replace(vf, "").replace(/^\s*\d+[.)]\s+/, "").replace(/^\s*[a-zA-Z][.)]\s+/, "");
10764
10797
  a !== n.textContent && (n.textContent = a);
10765
- }, Sf = (e) => {
10798
+ }, $f = (e) => {
10766
10799
  const t = Array.from(
10767
10800
  e.querySelectorAll(
10768
10801
  "span, font, p, div, li, h1, h2, h3, h4"
@@ -10772,12 +10805,12 @@ const af = /* @__PURE__ */ new Set([
10772
10805
  (n, a) => a.querySelectorAll("*").length - n.querySelectorAll("*").length
10773
10806
  ), t.forEach((n) => {
10774
10807
  const a = n.getAttribute("style") ?? "";
10775
- a && (vf(a) && ba(n, "strong"), yf(a) && ba(n, "em"), wf(a) && ba(n, "u"), Nf(a) && ba(n, "s"));
10808
+ a && (wf(a) && ba(n, "strong"), Nf(a) && ba(n, "em"), kf(a) && ba(n, "u"), Ef(a) && ba(n, "s"));
10776
10809
  });
10777
- }, Cf = (e) => {
10810
+ }, Tf = (e) => {
10778
10811
  const t = Array.from(
10779
10812
  e.querySelectorAll("p, div")
10780
- ).filter(kf);
10813
+ ).filter(Sf);
10781
10814
  if (!t.length) return;
10782
10815
  let n = 0;
10783
10816
  for (; n < t.length; ) {
@@ -10799,14 +10832,14 @@ const af = /* @__PURE__ */ new Set([
10799
10832
  }
10800
10833
  const d = a.ownerDocument.createElement(o);
10801
10834
  s.insertBefore(d, a), i.forEach((u) => {
10802
- Ef(u);
10835
+ Cf(u);
10803
10836
  const b = u.ownerDocument.createElement("li");
10804
10837
  for (; u.firstChild; ) b.appendChild(u.firstChild);
10805
10838
  d.appendChild(b), u.remove();
10806
10839
  }), n = l;
10807
10840
  }
10808
- }, $f = (e) => e === "h1" ? "h2" : e === "h4" || e === "h5" || e === "h6" ? "h3" : e === "div" ? "p" : e, Tf = (e) => {
10809
- const t = xf(
10841
+ }, Mf = (e) => e === "h1" ? "h2" : e === "h4" || e === "h5" || e === "h6" ? "h3" : e === "div" ? "p" : e, Af = (e) => {
10842
+ const t = yf(
10810
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, "")
10811
10844
  ), a = new DOMParser().parseFromString(
10812
10845
  `<!DOCTYPE html><html><body>${t}</body></html>`,
@@ -10814,7 +10847,7 @@ const af = /* @__PURE__ */ new Set([
10814
10847
  ), o = a.body;
10815
10848
  o.querySelectorAll(
10816
10849
  "script, style, meta, link, xml, title, head, iframe, object, embed, form, input, textarea, select, noscript"
10817
- ).forEach((l) => l.remove()), Sf(o), Cf(o);
10850
+ ).forEach((l) => l.remove()), $f(o), Tf(o);
10818
10851
  const i = (l) => {
10819
10852
  const s = Array.from(l.childNodes);
10820
10853
  if (l.nodeType === Node.ELEMENT_NODE) {
@@ -10827,7 +10860,7 @@ const af = /* @__PURE__ */ new Set([
10827
10860
  pa(d), s.forEach(i);
10828
10861
  return;
10829
10862
  }
10830
- if (!hf.has(u)) {
10863
+ if (!xf.has(u)) {
10831
10864
  pa(d), s.forEach(i);
10832
10865
  return;
10833
10866
  }
@@ -10878,14 +10911,14 @@ const af = /* @__PURE__ */ new Set([
10878
10911
  }), s.forEach(i);
10879
10912
  return;
10880
10913
  }
10881
- const b = $f(u);
10914
+ const b = Mf(u);
10882
10915
  if (b !== u) {
10883
10916
  const f = d.ownerDocument.createElement(b);
10884
10917
  for (; d.firstChild; ) f.appendChild(d.firstChild);
10885
10918
  d.replaceWith(f), i(f);
10886
10919
  return;
10887
10920
  }
10888
- if (af.has(u)) {
10921
+ if (lf.has(u)) {
10889
10922
  Array.from(d.attributes).forEach((f) => {
10890
10923
  const m = f.name.toLowerCase();
10891
10924
  if (u === "td" || u === "th") {
@@ -10958,7 +10991,7 @@ const af = /* @__PURE__ */ new Set([
10958
10991
  }
10959
10992
  }), o.innerHTML.replace(/<!--[\s\S]*?-->/g, "").replace(/&nbsp;/gi, " ").replace(/(<br\s*\/?>\s*){3,}/gi, "<br><br>").replace(/<p>(?:\s|<br\s*\/?>)*<\/p>/gi, "").trim();
10960
10993
  }, So = (e) => Kr(e).replace(/\r\n?/g, `
10961
- `).split(/\n{2,}/).map((t) => `<p>${t.replace(/\n/g, "<br>") || "<br>"}</p>`).join(""), ci = (e, t = !0) => nf(e, Kr, t), $n = (e) => {
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) => {
10962
10995
  const t = e.replace(/\r\n?/g, `
10963
10996
  `);
10964
10997
  if (!/```/.test(t)) return So(e);
@@ -10967,7 +11000,7 @@ const af = /* @__PURE__ */ new Set([
10967
11000
  for (; (i = a.exec(t)) !== null; )
10968
11001
  i.index > o && n.push(So(t.slice(o, i.index))), n.push(ci(i[1] ?? "")), o = a.lastIndex;
10969
11002
  return o < t.length && n.push(So(t.slice(o))), n.join("");
10970
- }, Al = /```[\s\S]+?```/, Mf = (e) => {
11003
+ }, Al = /```[\s\S]+?```/, Lf = (e) => {
10971
11004
  const t = (e.textContent ?? "").replace(/\u00a0/g, " ");
10972
11005
  if (!e.querySelector(".rich-code-wrap") && t.includes("```") && Al.test(t)) {
10973
11006
  const o = $n(t);
@@ -10994,9 +11027,9 @@ const af = /* @__PURE__ */ new Set([
10994
11027
  }
10995
11028
  }
10996
11029
  return n;
10997
- }, Af = (e) => new RegExp("\\p{L}", "u").test(e), Co = (e, t) => {
11030
+ }, Df = (e) => new RegExp("\\p{L}", "u").test(e), Co = (e, t) => {
10998
11031
  const n = e.trim();
10999
- return !n || !Af(n) ? !1 : t === "uppercase" ? n === n.toLocaleUpperCase() : t === "lowercase" ? n === n.toLocaleLowerCase() : n === Xs(n);
11032
+ return !n || !Df(n) ? !1 : t === "uppercase" ? n === n.toLocaleUpperCase() : t === "lowercase" ? n === n.toLocaleLowerCase() : n === Xs(n);
11000
11033
  }, Ll = (e) => {
11001
11034
  const t = (a) => {
11002
11035
  var o, i;
@@ -11115,7 +11148,7 @@ function Gs({
11115
11148
  }
11116
11149
  });
11117
11150
  try {
11118
- const he = pf(
11151
+ const he = gf(
11119
11152
  u().queryCommandValue("formatBlock")
11120
11153
  );
11121
11154
  he && V.add(`formatBlock:${he}`);
@@ -11133,7 +11166,7 @@ function Gs({
11133
11166
  }, [te, u]), re = () => {
11134
11167
  var V;
11135
11168
  const B = N();
11136
- B && (Mf(B), k.current = fa(B), S.current = !0, g.current(k.current), O(((V = B.textContent) == null ? void 0 : V.trim()) === ""));
11169
+ B && (Lf(B), k.current = fa(B), S.current = !0, g.current(k.current), O(((V = B.textContent) == null ? void 0 : V.trim()) === ""));
11137
11170
  };
11138
11171
  L.current = re;
11139
11172
  const xe = be(() => {
@@ -11159,7 +11192,7 @@ function Gs({
11159
11192
  return;
11160
11193
  }
11161
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;
11162
- cf(B, V, ge, he, N()), xe(), L.current(), me();
11195
+ uf(B, V, ge, he, N()), xe(), L.current(), me();
11163
11196
  },
11164
11197
  [N, xe, me, E, W]
11165
11198
  ), St = be(
@@ -11185,7 +11218,7 @@ function Gs({
11185
11218
  Ne,
11186
11219
  he.cellIndex
11187
11220
  ), ie(
11188
- sf(
11221
+ df(
11189
11222
  ke,
11190
11223
  Ne,
11191
11224
  he
@@ -11284,7 +11317,7 @@ function Gs({
11284
11317
  Ye(), (B = N()) == null || B.focus(), u().execCommand(
11285
11318
  "insertHTML",
11286
11319
  !1,
11287
- bf(K, X, M)
11320
+ hf(K, X, M)
11288
11321
  ), re(), w(null);
11289
11322
  }, pe = () => {
11290
11323
  var ge;
@@ -11344,7 +11377,7 @@ function Gs({
11344
11377
  if (Ne || ke) {
11345
11378
  ge.preventDefault(), ge.stopPropagation();
11346
11379
  try {
11347
- const et = Ne ? Tf(Ne) : $n(ke);
11380
+ const et = Ne ? Af(Ne) : $n(ke);
11348
11381
  if (!et) {
11349
11382
  ke && Pe.current($n(ke));
11350
11383
  return;
@@ -11425,7 +11458,7 @@ function Gs({
11425
11458
  const he = window.getSelection(), Ne = $l((he == null ? void 0 : he.anchorNode) ?? null), ke = N(), Ie = Cl(Ne);
11426
11459
  if (Ne && Ie && (ke != null && ke.contains(Ne))) {
11427
11460
  B.preventDefault();
11428
- const Be = uf(Ie), bt = Be.indexOf(Ne), et = bt >= 0 ? Be[bt + 1] : null;
11461
+ const Be = ff(Ie), bt = Be.indexOf(Ne), et = bt >= 0 ? Be[bt + 1] : null;
11429
11462
  if (et) ya(et, ke, !0);
11430
11463
  else if (Tl(Ne, Ie)) {
11431
11464
  const sr = qo(Ie);
@@ -11439,7 +11472,7 @@ function Gs({
11439
11472
  }
11440
11473
  if (B.key === "Enter" && !B.shiftKey && !(B.metaKey || B.ctrlKey)) {
11441
11474
  const he = window.getSelection(), Ne = $l((he == null ? void 0 : he.anchorNode) ?? null), ke = N(), Ie = Cl(Ne);
11442
- if (Ne && Ie && (ke != null && ke.contains(Ne)) && Tl(Ne, Ie) && mf(Ne)) {
11475
+ if (Ne && Ie && (ke != null && ke.contains(Ne)) && Tl(Ne, Ie) && bf(Ne)) {
11443
11476
  B.preventDefault();
11444
11477
  const Be = qo(Ie);
11445
11478
  Be && ya(Be, ke, !0), re(), me();
@@ -11497,7 +11530,7 @@ function Gs({
11497
11530
  return;
11498
11531
  }
11499
11532
  const ge = V.closest("[data-action='copy-code']");
11500
- ge instanceof HTMLButtonElement && (B.preventDefault(), tf(ge).catch(() => {
11533
+ ge instanceof HTMLButtonElement && (B.preventDefault(), nf(ge).catch(() => {
11501
11534
  }));
11502
11535
  }, lr = () => {
11503
11536
  Ce(), Q.current = !0;
@@ -12127,7 +12160,7 @@ function Gs({
12127
12160
  )
12128
12161
  ] });
12129
12162
  }
12130
- const Zs = "[a-zA-Z0-9._@-]+", Uo = new RegExp(`@(${Zs})`, "g"), Lf = /[a-zA-Z0-9._@-]/, Tn = /* @__PURE__ */ new Set([
12163
+ const Zs = "[a-zA-Z0-9._@-]+", Uo = new RegExp(`@(${Zs})`, "g"), Rf = /[a-zA-Z0-9._@-]/, Tn = /* @__PURE__ */ new Set([
12131
12164
  " ",
12132
12165
  `
12133
12166
  `,
@@ -12164,13 +12197,13 @@ function Qs(e, t) {
12164
12197
  const n = e[t - 1] ?? "";
12165
12198
  return Tn.has(n);
12166
12199
  }
12167
- function Df(e, t, n) {
12200
+ function Of(e, t, n) {
12168
12201
  var a;
12169
12202
  if (t < 0 || t > e.length) return null;
12170
12203
  for (let o = t - 1; o >= 0; o -= 1) {
12171
12204
  if (e[o] !== "@") {
12172
12205
  const s = e[o] ?? "";
12173
- if (Tn.has(s) || !Lf.test(s))
12206
+ if (Tn.has(s) || !Rf.test(s))
12174
12207
  return null;
12175
12208
  continue;
12176
12209
  }
@@ -12185,12 +12218,12 @@ function Df(e, t, n) {
12185
12218
  }
12186
12219
  return null;
12187
12220
  }
12188
- function Rf(e, t) {
12221
+ function Bf(e, t) {
12189
12222
  var a;
12190
12223
  const n = Ln(e, t);
12191
12224
  return n ? !!((a = n.node.parentElement) != null && a.closest(".mention-chip")) : !1;
12192
12225
  }
12193
- function Of(e, t) {
12226
+ function If(e, t) {
12194
12227
  if (t <= 0) return !0;
12195
12228
  const n = Ln(e, t);
12196
12229
  if (!n) {
@@ -12227,15 +12260,15 @@ function Of(e, t) {
12227
12260
  }
12228
12261
  function Dl(e, t) {
12229
12262
  const n = nc(e);
12230
- return Df(n, t, {
12231
- isTriggerBoundary: (a) => Of(e, a),
12232
- isInsideExistingMention: (a) => Rf(e, a)
12263
+ return Of(n, t, {
12264
+ isTriggerBoundary: (a) => If(e, a),
12265
+ isInsideExistingMention: (a) => Bf(e, a)
12233
12266
  });
12234
12267
  }
12235
12268
  function Js(e) {
12236
12269
  return e.toLowerCase().trim();
12237
12270
  }
12238
- function Bf(e) {
12271
+ function _f(e) {
12239
12272
  return e ? e.replace(/<style[^>]*>[\s\S]*?<\/style>/gi, " ").replace(/<script[^>]*>[\s\S]*?<\/script>/gi, " ").replace(/<br\s*\/?>/gi, `
12240
12273
  `).replace(/<\/(p|div|li)>/gi, `
12241
12274
  `).replace(/<[^>]+>/g, " ").replace(/&nbsp;/g, " ").replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&#39;/g, "'").replace(/\s+/g, " ").trim() : "";
@@ -12249,18 +12282,18 @@ function ec(e) {
12249
12282
  let i;
12250
12283
  for (; (i = o.exec(e)) !== null; )
12251
12284
  a(i[1] ?? "");
12252
- const l = Bf(e);
12285
+ const l = _f(e);
12253
12286
  Uo.lastIndex = 0;
12254
12287
  let s;
12255
12288
  for (; (s = Uo.exec(l)) !== null; )
12256
12289
  a(s[1] ?? "");
12257
12290
  return n;
12258
12291
  }
12259
- function If(e) {
12292
+ function Ff(e) {
12260
12293
  const t = String(e.name ?? "").trim();
12261
12294
  return t || String(e.username ?? "").trim() || "usuario";
12262
12295
  }
12263
- function bh(e, t) {
12296
+ function hh(e, t) {
12264
12297
  const n = ec(e);
12265
12298
  if (!n.length) return [];
12266
12299
  const a = /* @__PURE__ */ new Map();
@@ -12279,13 +12312,13 @@ function bh(e, t) {
12279
12312
  }
12280
12313
  return i;
12281
12314
  }
12282
- function _f(e) {
12315
+ function Hf(e) {
12283
12316
  const t = /* @__PURE__ */ new Set(), n = [];
12284
12317
  for (const a of e)
12285
12318
  t.has(a.userId) || (t.add(a.userId), n.push(a));
12286
12319
  return n;
12287
12320
  }
12288
- function ph(e, t) {
12321
+ function gh(e, t) {
12289
12322
  return t ? e.filter((n) => n.userId !== t) : e;
12290
12323
  }
12291
12324
  function tc(e) {
@@ -12295,7 +12328,7 @@ function tc(e) {
12295
12328
  t = t.nextSibling;
12296
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" ? " " : " ";
12297
12330
  }
12298
- function Ff(e) {
12331
+ function Pf(e) {
12299
12332
  return !e || !/@/.test(e) ? e : e.replace(Uo, (t, n, a, o) => {
12300
12333
  const i = o.slice(0, a), l = i.lastIndexOf("<"), s = i.lastIndexOf(">");
12301
12334
  if (l > s) return t;
@@ -12335,7 +12368,7 @@ function rc(e) {
12335
12368
  const s = t.createRange();
12336
12369
  s.setStart(i, ((d = i.textContent) == null ? void 0 : d.length) ?? 1), s.collapse(!0), l.removeAllRanges(), l.addRange(s);
12337
12370
  }
12338
- const Hf = /* @__PURE__ */ new Set([
12371
+ const zf = /* @__PURE__ */ new Set([
12339
12372
  "P",
12340
12373
  "DIV",
12341
12374
  "LI",
@@ -12348,7 +12381,7 @@ const Hf = /* @__PURE__ */ new Set([
12348
12381
  "BLOCKQUOTE"
12349
12382
  ]);
12350
12383
  function Rl(e, t) {
12351
- return Hf.has(e.tagName) && e !== t;
12384
+ return zf.has(e.tagName) && e !== t;
12352
12385
  }
12353
12386
  function di(e, t) {
12354
12387
  let n = "", a, o, i = !1;
@@ -12403,14 +12436,14 @@ function Ln(e, t) {
12403
12436
  function Vo(e, t, n) {
12404
12437
  return e !== t && !e.contains(t) ? -1 : di(e, { domPoint: { container: t, offset: n } }).domOffset ?? -1;
12405
12438
  }
12406
- function Pf(e, t) {
12439
+ function jf(e, t) {
12407
12440
  const { triggerIndex: n, caretIndex: a, username: o } = t;
12408
12441
  if (a < n) return null;
12409
12442
  const i = Ln(e, n), l = Ln(e, a);
12410
12443
  if (!i || !l) return null;
12411
12444
  const s = e.ownerDocument, d = s.createRange();
12412
12445
  d.setStart(i.node, i.offset), d.setEnd(l.node, l.offset), d.deleteContents();
12413
- const u = If({
12446
+ const u = Ff({
12414
12447
  name: t.display,
12415
12448
  username: o
12416
12449
  }), b = s.createElement("span");
@@ -12426,7 +12459,7 @@ function Pf(e, t) {
12426
12459
  caretPlainOffset: k >= 0 ? k : n + u.length + 1
12427
12460
  };
12428
12461
  }
12429
- function zf(e, t) {
12462
+ function Wf(e, t) {
12430
12463
  const n = e.ownerDocument, a = n.defaultView;
12431
12464
  if (!a) return;
12432
12465
  const o = a.getSelection();
@@ -12443,7 +12476,7 @@ function ac(e, t) {
12443
12476
  n = t === "prev" ? n.previousSibling : n.nextSibling;
12444
12477
  return n;
12445
12478
  }
12446
- function jf(e) {
12479
+ function qf(e) {
12447
12480
  var o;
12448
12481
  const t = e.ownerDocument, n = (o = t.defaultView) == null ? void 0 : o.getSelection();
12449
12482
  if (!n) return;
@@ -12471,18 +12504,18 @@ function Yo(e) {
12471
12504
  o.classList.toggle("is-selected", i);
12472
12505
  });
12473
12506
  }
12474
- function Wf(e) {
12507
+ function Uf(e) {
12475
12508
  var o;
12476
12509
  const t = e.ownerDocument, n = (o = t.defaultView) == null ? void 0 : o.getSelection();
12477
12510
  if (!n) return;
12478
12511
  const a = t.createRange();
12479
12512
  a.selectNodeContents(e), n.removeAllRanges(), n.addRange(a), Yo(e);
12480
12513
  }
12481
- function qf(e) {
12514
+ function Vf(e) {
12482
12515
  const t = e.cloneContents();
12483
12516
  return t.querySelectorAll(".mention-chip").forEach((n) => n.remove()), (t.textContent ?? "").replace(/\u00a0/g, " ").trim().length > 0;
12484
12517
  }
12485
- function Uf(e) {
12518
+ function Yf(e) {
12486
12519
  var a;
12487
12520
  const t = (a = e.ownerDocument.defaultView) == null ? void 0 : a.getSelection();
12488
12521
  if (!t || t.isCollapsed || t.rangeCount === 0) return !1;
@@ -12522,7 +12555,7 @@ function $o(e) {
12522
12555
  else l.childNodes[s] ? u.setStart(l, s) : (u.selectNodeContents(l), u.collapse(!1));
12523
12556
  u.collapse(!0), d.removeAllRanges(), d.addRange(u);
12524
12557
  }
12525
- function Vf(e) {
12558
+ function Kf(e) {
12526
12559
  var i;
12527
12560
  const t = (i = e.ownerDocument.defaultView) == null ? void 0 : i.getSelection();
12528
12561
  if (!t || !t.isCollapsed || t.rangeCount === 0) return null;
@@ -12548,7 +12581,7 @@ function Vf(e) {
12548
12581
  }
12549
12582
  return null;
12550
12583
  }
12551
- function Yf(e) {
12584
+ function Xf(e) {
12552
12585
  var i;
12553
12586
  const t = (i = e.ownerDocument.defaultView) == null ? void 0 : i.getSelection();
12554
12587
  if (!t || !t.isCollapsed || t.rangeCount === 0) return null;
@@ -12593,13 +12626,13 @@ function Ol(e) {
12593
12626
  }
12594
12627
  }) : [];
12595
12628
  }
12596
- const To = 420, ha = 6, oc = 260, Kf = /* @__PURE__ */ new Set([
12629
+ const To = 420, ha = 6, oc = 260, Gf = /* @__PURE__ */ new Set([
12597
12630
  "ArrowDown",
12598
12631
  "ArrowUp",
12599
12632
  "Enter",
12600
12633
  "Tab",
12601
12634
  "Escape"
12602
- ]), Bl = 4, Xf = { position: "relative" }, Gf = {
12635
+ ]), Bl = 4, Zf = { position: "relative" }, Qf = {
12603
12636
  position: "fixed",
12604
12637
  zIndex: 11050,
12605
12638
  minWidth: oc,
@@ -12614,14 +12647,14 @@ const To = 420, ha = 6, oc = 260, Kf = /* @__PURE__ */ new Set([
12614
12647
  fontSize: 12,
12615
12648
  color: "var(--text-muted, #656d76)"
12616
12649
  };
12617
- function Zf(e) {
12650
+ function Jf(e) {
12618
12651
  return Array.from(
12619
12652
  document.querySelectorAll(
12620
12653
  `[data-bonsaif-rich-instance="${CSS.escape(e)}"]`
12621
12654
  )
12622
12655
  );
12623
12656
  }
12624
- function Qf(e) {
12657
+ function eb(e) {
12625
12658
  const t = Math.max(
12626
12659
  8,
12627
12660
  Math.min(e.left, window.innerWidth - oc - 8)
@@ -12642,7 +12675,7 @@ function Qf(e) {
12642
12675
  )
12643
12676
  };
12644
12677
  }
12645
- function Jf({
12678
+ function tb({
12646
12679
  value: e,
12647
12680
  onChange: t,
12648
12681
  onSearchUsers: n,
@@ -12700,10 +12733,10 @@ function Jf({
12700
12733
  const X = ae(a);
12701
12734
  X.current = a, fe(() => {
12702
12735
  var W;
12703
- (W = X.current) == null || W.call(X, _f(D));
12736
+ (W = X.current) == null || W.call(X, Hf(D));
12704
12737
  }, [D]);
12705
12738
  const se = be(() => {
12706
- const W = Zf(h);
12739
+ const W = Jf(h);
12707
12740
  if (W.length === 0) return null;
12708
12741
  const ie = window.getSelection();
12709
12742
  if (ie != null && ie.rangeCount) {
@@ -12751,7 +12784,7 @@ function Jf({
12751
12784
  caretIndex: ee.caretIndex,
12752
12785
  triggerIndex: ee.triggerIndex
12753
12786
  };
12754
- const N = Qf(v);
12787
+ const N = eb(v);
12755
12788
  $((te) => {
12756
12789
  const me = {
12757
12790
  query: ee.query,
@@ -12767,7 +12800,7 @@ function Jf({
12767
12800
  );
12768
12801
  fe(() => {
12769
12802
  const W = (ie) => {
12770
- if (Kf.has(ie.key)) return;
12803
+ if (Gf.has(ie.key)) return;
12771
12804
  const E = se(), J = ie.target;
12772
12805
  !E || !J || !E.contains(J) || M();
12773
12806
  };
@@ -12790,7 +12823,7 @@ function Jf({
12790
12823
  if (E < 0 && S.current && (E = S.current.caretIndex), E < 0) return;
12791
12824
  const ee = Dl(ie, E);
12792
12825
  if (!ee) return;
12793
- const Q = Pf(ie, {
12826
+ const Q = jf(ie, {
12794
12827
  triggerIndex: ee.triggerIndex,
12795
12828
  caretIndex: E,
12796
12829
  username: W.username,
@@ -12826,7 +12859,7 @@ function Jf({
12826
12859
  rc(re);
12827
12860
  return;
12828
12861
  }
12829
- zf(te, Q.caretPlainOffset);
12862
+ Wf(te, Q.caretPlainOffset);
12830
12863
  });
12831
12864
  });
12832
12865
  },
@@ -12887,15 +12920,15 @@ function Jf({
12887
12920
  const N = se(), te = v.target;
12888
12921
  if (!N || !te || !N.contains(te)) return;
12889
12922
  if ((v.metaKey || v.ctrlKey) && v.key.toLowerCase() === "a") {
12890
- v.preventDefault(), v.stopPropagation(), N.focus(), Wf(N);
12923
+ v.preventDefault(), v.stopPropagation(), N.focus(), Uf(N);
12891
12924
  return;
12892
12925
  }
12893
12926
  if (v.key !== "Backspace" && v.key !== "Delete") return;
12894
12927
  const me = window.getSelection();
12895
12928
  if (me && !me.isCollapsed && me.rangeCount > 0) {
12896
12929
  const Ce = me.getRangeAt(0);
12897
- if (N.contains(Ce.commonAncestorContainer) && Ol(N).length > 0 && qf(Ce)) {
12898
- v.preventDefault(), v.stopPropagation(), Uf(N) && W(N);
12930
+ if (N.contains(Ce.commonAncestorContainer) && Ol(N).length > 0 && Vf(Ce)) {
12931
+ v.preventDefault(), v.stopPropagation(), Yf(N) && W(N);
12899
12932
  return;
12900
12933
  }
12901
12934
  }
@@ -12907,12 +12940,12 @@ function Jf({
12907
12940
  return;
12908
12941
  }
12909
12942
  if (v.key === "Backspace") {
12910
- const Ce = Vf(N);
12943
+ const Ce = Kf(N);
12911
12944
  if (!Ce) return;
12912
12945
  v.preventDefault(), v.stopPropagation(), $o(Ce), En(N), W(N);
12913
12946
  return;
12914
12947
  }
12915
- const xe = Yf(N);
12948
+ const xe = Xf(N);
12916
12949
  xe && (v.preventDefault(), v.stopPropagation(), $o(xe), En(N), W(N));
12917
12950
  }, E = (v) => {
12918
12951
  const N = se();
@@ -12946,7 +12979,7 @@ function Jf({
12946
12979
  Yo(N);
12947
12980
  return;
12948
12981
  }
12949
- N.focus(), jf(te.chip);
12982
+ N.focus(), qf(te.chip);
12950
12983
  }
12951
12984
  }, Q = () => {
12952
12985
  const v = se();
@@ -12964,13 +12997,13 @@ function Jf({
12964
12997
  );
12965
12998
  W == null || W.scrollIntoView({ block: "nearest" });
12966
12999
  }, [j, y]);
12967
- const oe = u ? Ff(e) : e, Y = y && Z ? Et(
13000
+ const oe = u ? Pf(e) : e, Y = y && Z ? Et(
12968
13001
  /* @__PURE__ */ c(
12969
13002
  "ul",
12970
13003
  {
12971
13004
  ref: k,
12972
13005
  style: {
12973
- ...Gf,
13006
+ ...Qf,
12974
13007
  left: y.left,
12975
13008
  top: y.top,
12976
13009
  bottom: y.bottom,
@@ -13029,7 +13062,7 @@ function Jf({
13029
13062
  ),
13030
13063
  document.body
13031
13064
  ) : null;
13032
- return /* @__PURE__ */ c("div", { ref: x, style: Xf, className: l, children: [
13065
+ return /* @__PURE__ */ c("div", { ref: x, style: Zf, className: l, children: [
13033
13066
  /* @__PURE__ */ r(
13034
13067
  Gs,
13035
13068
  {
@@ -13045,7 +13078,7 @@ function Jf({
13045
13078
  Y
13046
13079
  ] });
13047
13080
  }
13048
- function hh({
13081
+ function xh({
13049
13082
  value: e,
13050
13083
  onChange: t,
13051
13084
  placeholder: n,
@@ -13061,7 +13094,7 @@ function hh({
13061
13094
  focusModalZIndex: m
13062
13095
  }) {
13063
13096
  return o ? /* @__PURE__ */ r(
13064
- Jf,
13097
+ tb,
13065
13098
  {
13066
13099
  value: e,
13067
13100
  onChange: t,
@@ -13089,7 +13122,7 @@ function hh({
13089
13122
  }
13090
13123
  );
13091
13124
  }
13092
- function gh({
13125
+ function vh({
13093
13126
  title: e,
13094
13127
  subtitle: t,
13095
13128
  icon: n,
@@ -13121,7 +13154,7 @@ function gh({
13121
13154
  }
13122
13155
  );
13123
13156
  }
13124
- const eb = {
13157
+ const rb = {
13125
13158
  neutral: {
13126
13159
  text: "var(--text-secondary)",
13127
13160
  bg: "var(--bg-input)",
@@ -13152,12 +13185,12 @@ const eb = {
13152
13185
  bg: "rgba(59, 130, 246, 0.11)",
13153
13186
  border: "rgba(59, 130, 246, 0.24)"
13154
13187
  }
13155
- }, tb = {
13188
+ }, nb = {
13156
13189
  xs: "min-h-5 px-1.5 text-[10px]",
13157
13190
  sm: "min-h-6 px-2 text-xs",
13158
13191
  md: "min-h-7 px-2.5 text-sm"
13159
13192
  };
13160
- function xh({
13193
+ function yh({
13161
13194
  children: e,
13162
13195
  tone: t = "neutral",
13163
13196
  size: n = "sm",
@@ -13165,11 +13198,11 @@ function xh({
13165
13198
  dot: o = !1,
13166
13199
  className: i = ""
13167
13200
  }) {
13168
- const l = eb[t];
13201
+ const l = rb[t];
13169
13202
  return /* @__PURE__ */ c(
13170
13203
  "span",
13171
13204
  {
13172
- className: `inline-flex max-w-full shrink-0 items-center gap-1.5 rounded-full border font-semibold leading-none ${tb[n]} ${i}`,
13205
+ className: `inline-flex max-w-full shrink-0 items-center gap-1.5 rounded-full border font-semibold leading-none ${nb[n]} ${i}`,
13173
13206
  style: {
13174
13207
  color: l.text,
13175
13208
  background: l.bg,
@@ -13215,24 +13248,24 @@ const _l = {
13215
13248
  color: "#2563eb",
13216
13249
  background: "rgba(59, 130, 246, 0.11)"
13217
13250
  }
13218
- }, rb = {
13251
+ }, ab = {
13219
13252
  xs: "min-h-5 px-1.5 pr-6 text-[10px]",
13220
13253
  sm: "min-h-6 px-2 pr-7 text-xs",
13221
13254
  md: "min-h-7 px-2.5 pr-8 text-sm"
13222
- }, nb = {
13255
+ }, ob = {
13223
13256
  xs: "right-1 h-3 w-3",
13224
13257
  sm: "right-1.5 h-3 w-3",
13225
13258
  md: "right-2 h-3.5 w-3.5"
13226
- }, ab = {
13259
+ }, ib = {
13227
13260
  xs: 148,
13228
13261
  sm: 164,
13229
13262
  md: 184
13230
- }, ob = {
13263
+ }, lb = {
13231
13264
  xs: "px-2.5 py-1.5 text-xs",
13232
13265
  sm: "px-3 py-2 text-sm",
13233
13266
  md: "px-3.5 py-2.5 text-sm"
13234
13267
  };
13235
- function vh({
13268
+ function wh({
13236
13269
  value: e,
13237
13270
  options: t,
13238
13271
  onChange: n,
@@ -13258,7 +13291,7 @@ function vh({
13258
13291
  }, []), H = be(() => {
13259
13292
  const P = y.current;
13260
13293
  if (!P) return;
13261
- const X = P.getBoundingClientRect(), se = Math.max(X.width, ab[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(
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(
13262
13295
  Math.max(8, X.left + X.width / 2 - se / 2),
13263
13296
  window.innerWidth - se - 8
13264
13297
  );
@@ -13371,7 +13404,7 @@ function vh({
13371
13404
  },
13372
13405
  className: Lr(
13373
13406
  "flex w-full items-center gap-2 rounded-lg font-medium text-left transition-colors disabled:cursor-not-allowed disabled:opacity-45",
13374
- ob[a],
13407
+ lb[a],
13375
13408
  se ? P.className : void 0,
13376
13409
  m
13377
13410
  ),
@@ -13413,7 +13446,7 @@ function vh({
13413
13446
  onClick: () => !q && k((P) => !P),
13414
13447
  className: Lr(
13415
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",
13416
- rb[a],
13449
+ ab[a],
13417
13450
  _ == null ? void 0 : _.className,
13418
13451
  b
13419
13452
  ),
@@ -13427,7 +13460,7 @@ function vh({
13427
13460
  "aria-hidden": "true",
13428
13461
  className: Lr(
13429
13462
  "pointer-events-none absolute opacity-70 transition-transform",
13430
- nb[a],
13463
+ ob[a],
13431
13464
  x ? "rotate-180" : "rotate-0"
13432
13465
  )
13433
13466
  }
@@ -13447,7 +13480,7 @@ function vh({
13447
13480
  }
13448
13481
  );
13449
13482
  }
13450
- function yh({
13483
+ function Nh({
13451
13484
  tabs: e,
13452
13485
  activeTabId: t,
13453
13486
  defaultActiveTabId: n,
@@ -13523,7 +13556,7 @@ function yh({
13523
13556
  function br(...e) {
13524
13557
  return e.filter(Boolean).join(" ");
13525
13558
  }
13526
- function wh({
13559
+ function kh({
13527
13560
  steps: e,
13528
13561
  activeStepId: t,
13529
13562
  initialStepId: n,
@@ -13761,12 +13794,12 @@ function wh({
13761
13794
  }
13762
13795
  );
13763
13796
  }
13764
- const ib = {
13797
+ const sb = {
13765
13798
  sm: "px-2.5 py-1.5 text-xs leading-5",
13766
13799
  md: "px-2.5 py-1.5 text-sm leading-5",
13767
13800
  lg: "px-3 py-2 text-sm leading-6"
13768
13801
  };
13769
- function lb(e, t) {
13802
+ function cb(e, t) {
13770
13803
  if (e) {
13771
13804
  if (typeof e == "function") {
13772
13805
  e(t);
@@ -13775,7 +13808,7 @@ function lb(e, t) {
13775
13808
  e.current = t;
13776
13809
  }
13777
13810
  }
13778
- function sb(e) {
13811
+ function db(e) {
13779
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);
13780
13813
  return {
13781
13814
  lineHeight: Number.isFinite(n) ? n : 20,
@@ -13784,10 +13817,10 @@ function sb(e) {
13784
13817
  };
13785
13818
  }
13786
13819
  function Fl(e, t) {
13787
- const { lineHeight: n, paddingY: a, borderY: o } = sb(e);
13820
+ const { lineHeight: n, paddingY: a, borderY: o } = db(e);
13788
13821
  return Math.ceil(t * n + a + o);
13789
13822
  }
13790
- const cb = Go(
13823
+ const ub = Go(
13791
13824
  function({
13792
13825
  className: t = "",
13793
13826
  size: n = "md",
@@ -13820,7 +13853,7 @@ const cb = Go(
13820
13853
  {
13821
13854
  ...f,
13822
13855
  ref: (g) => {
13823
- h.current = g, lb(m, g);
13856
+ h.current = g, cb(m, g);
13824
13857
  },
13825
13858
  rows: l,
13826
13859
  value: d,
@@ -13834,12 +13867,12 @@ const cb = Go(
13834
13867
  borderColor: x,
13835
13868
  minHeight: void 0
13836
13869
  },
13837
- 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 ${ib[n]} ${t}`
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}`
13838
13871
  }
13839
13872
  );
13840
13873
  }
13841
13874
  );
13842
- function Nh({
13875
+ function Eh({
13843
13876
  label: e,
13844
13877
  containerClassName: t = "",
13845
13878
  helperText: n,
@@ -13862,7 +13895,7 @@ function Nh({
13862
13895
  labelAction: i,
13863
13896
  className: t,
13864
13897
  children: /* @__PURE__ */ r(
13865
- cb,
13898
+ ub,
13866
13899
  {
13867
13900
  ...u,
13868
13901
  required: l,
@@ -13873,17 +13906,17 @@ function Nh({
13873
13906
  }
13874
13907
  );
13875
13908
  }
13876
- const db = {
13909
+ const mb = {
13877
13910
  sm: "min-h-20 px-2.5 py-1.5 text-xs leading-5",
13878
13911
  md: "min-h-24 px-2.5 py-2 text-sm leading-5",
13879
13912
  lg: "min-h-32 px-3 py-2.5 text-sm leading-6"
13880
- }, ub = {
13913
+ }, fb = {
13881
13914
  none: "resize-none",
13882
13915
  vertical: "resize-y",
13883
13916
  horizontal: "resize-x",
13884
13917
  both: "resize"
13885
13918
  };
13886
- function mb(e, t) {
13919
+ function bb(e, t) {
13887
13920
  if (e) {
13888
13921
  if (typeof e == "function") {
13889
13922
  e(t);
@@ -13892,10 +13925,10 @@ function mb(e, t) {
13892
13925
  e.current = t;
13893
13926
  }
13894
13927
  }
13895
- function fb(e, t) {
13928
+ function pb(e, t) {
13896
13929
  return e !== void 0 ? String(e).length : t !== void 0 ? String(t).length : 0;
13897
13930
  }
13898
- const bb = Go(
13931
+ const hb = Go(
13899
13932
  function({
13900
13933
  className: t = "",
13901
13934
  wrapperClassName: n = "",
@@ -13916,7 +13949,7 @@ const bb = Go(
13916
13949
  onInput: L,
13917
13950
  ...S
13918
13951
  }, T) {
13919
- const O = ae(null), C = fb(x, k), y = u ?? g, $ = !!(f || m || d), w = b === "error" ? "var(--danger)" : b === "success" ? "#16a34a" : "var(--border)", _ = {
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)", _ = {
13920
13953
  ...h ?? {},
13921
13954
  ...l ? { minHeight: `${l * 24 + 18}px` } : null,
13922
13955
  ...s ? { maxHeight: `${s * 24 + 18}px` } : null
@@ -13930,7 +13963,7 @@ const bb = Go(
13930
13963
  {
13931
13964
  ...S,
13932
13965
  ref: (D) => {
13933
- O.current = D, mb(T, D);
13966
+ O.current = D, bb(T, D);
13934
13967
  },
13935
13968
  value: x,
13936
13969
  defaultValue: k,
@@ -13940,7 +13973,7 @@ const bb = Go(
13940
13973
  j(), L == null || L(D);
13941
13974
  },
13942
13975
  style: { ..._, borderColor: w },
13943
- 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 ${db[a]} ${ub[i ? "none" : o]} ${f ? "pl-8" : ""} ${m ? "pr-10" : ""} ${t}`
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}`
13944
13977
  }
13945
13978
  );
13946
13979
  return $ ? /* @__PURE__ */ c("span", { className: `relative block ${n}`, children: [
@@ -13954,7 +13987,7 @@ const bb = Go(
13954
13987
  ] }) : q;
13955
13988
  }
13956
13989
  );
13957
- function kh({
13990
+ function Sh({
13958
13991
  label: e,
13959
13992
  containerClassName: t = "",
13960
13993
  helperText: n,
@@ -13977,7 +14010,7 @@ function kh({
13977
14010
  labelAction: i,
13978
14011
  className: t,
13979
14012
  children: /* @__PURE__ */ r(
13980
- bb,
14013
+ hb,
13981
14014
  {
13982
14015
  ...u,
13983
14016
  required: l,
@@ -14006,30 +14039,30 @@ const Hl = [
14006
14039
  { bg: "#f0fdf4", text: "#14532d", border: "#bbf7d0" }
14007
14040
  // emerald
14008
14041
  ];
14009
- function pb(e) {
14042
+ function gb(e) {
14010
14043
  return Hl[e % Hl.length];
14011
14044
  }
14012
- let hb = 0;
14045
+ let xb = 0;
14013
14046
  function Mo() {
14014
- return ++hb;
14047
+ return ++xb;
14015
14048
  }
14016
14049
  function Pl(e, t) {
14017
14050
  return t ? t instanceof RegExp ? t.test(e) : t(e) : !0;
14018
14051
  }
14019
- function gb(e) {
14052
+ function vb(e) {
14020
14053
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
14021
14054
  }
14022
- function xb(e, t) {
14055
+ function yb(e, t) {
14023
14056
  const n = t.filter(Boolean);
14024
14057
  if (n.length === 0)
14025
14058
  return [e.trim()].filter(Boolean);
14026
14059
  const a = new RegExp(
14027
- `${n.map((o) => gb(o)).join("|")}|\\r?\\n`,
14060
+ `${n.map((o) => vb(o)).join("|")}|\\r?\\n`,
14028
14061
  "g"
14029
14062
  );
14030
14063
  return e.split(a).map((o) => o.trim()).filter(Boolean);
14031
14064
  }
14032
- function Eh({
14065
+ function Ch({
14033
14066
  value: e,
14034
14067
  defaultValue: t,
14035
14068
  onChange: n,
@@ -14154,7 +14187,7 @@ function Eh({
14154
14187
  if (!v || !(l.some((re) => re && v.includes(re)) || v.includes(`
14155
14188
  `))) return;
14156
14189
  Q.preventDefault();
14157
- const te = xb(v, l);
14190
+ const te = yb(v, l);
14158
14191
  se(te) && y("");
14159
14192
  }
14160
14193
  function E() {
@@ -14196,7 +14229,7 @@ function Eh({
14196
14229
  }
14197
14230
  ` }),
14198
14231
  O.map((Q) => {
14199
- const v = pb(Q.colorIndex);
14232
+ const v = gb(Q.colorIndex);
14200
14233
  return $ === Q.id ? (
14201
14234
  /* ── Inline edit ── */
14202
14235
  /* @__PURE__ */ r(
@@ -14286,14 +14319,14 @@ function Eh({
14286
14319
  )
14287
14320
  ] });
14288
14321
  }
14289
- const vb = /^(\d{1,2}):(\d{2})(?::(\d{2}))?$/;
14322
+ const wb = /^(\d{1,2}):(\d{2})(?::(\d{2}))?$/;
14290
14323
  function at(e) {
14291
14324
  return String(e).padStart(2, "0");
14292
14325
  }
14293
14326
  function Ko(e, t = Xr()) {
14294
14327
  const n = e.trim();
14295
14328
  if (!n) return t;
14296
- const a = n.match(vb);
14329
+ const a = n.match(wb);
14297
14330
  if (!a) return t;
14298
14331
  const o = Number(a[1]), i = Number(a[2]), l = a[3] ? Number(a[3]) : 0;
14299
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 };
@@ -14319,7 +14352,7 @@ function yn(e) {
14319
14352
  second: Math.min(59, Math.max(0, e.second))
14320
14353
  };
14321
14354
  }
14322
- function yb(e, t) {
14355
+ function Nb(e, t) {
14323
14356
  const n = (t == null ? void 0 : t.use12Hour) ?? !1, a = (t == null ? void 0 : t.showSeconds) ?? !0, o = Ko(e);
14324
14357
  if (n) {
14325
14358
  const i = wa(o), l = `${i.hour12}:${at(i.minute)}`;
@@ -14335,7 +14368,7 @@ function Xr() {
14335
14368
  second: e.getSeconds()
14336
14369
  };
14337
14370
  }
14338
- function wb(e = !0) {
14371
+ function kb(e = !0) {
14339
14372
  return Mn(Xr(), e);
14340
14373
  }
14341
14374
  function Ao(e, t) {
@@ -14343,14 +14376,14 @@ function Ao(e, t) {
14343
14376
  for (let a = e; a <= t; a += 1) n.push(a);
14344
14377
  return n;
14345
14378
  }
14346
- const Dt = 36, ui = 5, zl = Math.floor(ui / 2), Nb = 52, kb = 48, ar = 18;
14379
+ const Dt = 36, ui = 5, zl = Math.floor(ui / 2), Eb = 52, Sb = 48, ar = 18;
14347
14380
  function jl(e) {
14348
14381
  return e * Dt;
14349
14382
  }
14350
14383
  function Wl(e) {
14351
14384
  return Math.round(e / Dt);
14352
14385
  }
14353
- function Eb(e) {
14386
+ function Cb(e) {
14354
14387
  return e.use12Hour ?? e.hour12 ?? !1;
14355
14388
  }
14356
14389
  function ga({
@@ -14359,7 +14392,7 @@ function ga({
14359
14392
  onSelect: n,
14360
14393
  syncEpochRef: a,
14361
14394
  forceSyncAt: o = 0,
14362
- width: i = Nb,
14395
+ width: i = Eb,
14363
14396
  label: l,
14364
14397
  maxNumeric: s = 59,
14365
14398
  isMeridiem: d = !1,
@@ -14600,7 +14633,7 @@ function ql() {
14600
14633
  }
14601
14634
  );
14602
14635
  }
14603
- function Sb({
14636
+ function $b({
14604
14637
  value: e,
14605
14638
  onChange: t,
14606
14639
  use12Hour: n,
@@ -14612,7 +14645,7 @@ function Sb({
14612
14645
  onConfirm: d,
14613
14646
  className: u = ""
14614
14647
  }) {
14615
- const b = l === "popover", f = b || !d, m = Eb({ use12Hour: n, hour12: a }), h = ae(e), x = Ko(e, Xr()), k = wa(x), [g, L] = z(
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(
14616
14649
  at(m ? k.hour12 : x.hour24)
14617
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({
14618
14651
  hour: null,
@@ -14843,7 +14876,7 @@ function Sb({
14843
14876
  values: se,
14844
14877
  selected: y,
14845
14878
  onSelect: (re) => W(re),
14846
- width: kb,
14879
+ width: Sb,
14847
14880
  label: "AM o PM",
14848
14881
  isMeridiem: !0,
14849
14882
  isFocused: U === "meridiem",
@@ -14918,10 +14951,10 @@ function Sb({
14918
14951
  }
14919
14952
  );
14920
14953
  }
14921
- function Cb(e) {
14954
+ function Tb(e) {
14922
14955
  return e.use12Hour ?? e.hour12 ?? !1;
14923
14956
  }
14924
- function Sh({
14957
+ function $h({
14925
14958
  label: e,
14926
14959
  value: t,
14927
14960
  onChange: n,
@@ -14943,8 +14976,8 @@ function Sh({
14943
14976
  const L = u === "popover", [S, T] = z(!1), O = ae(null), [C, y] = z({
14944
14977
  horizontal: "left",
14945
14978
  vertical: "bottom"
14946
- }), $ = Cb({ use12Hour: a, hour12: o }), w = Re(
14947
- () => t ? yb(t, { use12Hour: $, showSeconds: i }) : "",
14979
+ }), $ = Tb({ use12Hour: a, hour12: o }), w = Re(
14980
+ () => t ? Nb(t, { use12Hour: $, showSeconds: i }) : "",
14948
14981
  [$, i, t]
14949
14982
  );
14950
14983
  fe(() => {
@@ -14995,10 +15028,10 @@ function Sh({
14995
15028
  ]
14996
15029
  }
14997
15030
  ), j = /* @__PURE__ */ r(
14998
- Sb,
15031
+ $b,
14999
15032
  {
15000
15033
  variant: L ? "popover" : "panel",
15001
- value: t || wb(i),
15034
+ value: t || kb(i),
15002
15035
  onChange: n,
15003
15036
  use12Hour: $,
15004
15037
  showSeconds: i,
@@ -15036,7 +15069,7 @@ function Sh({
15036
15069
  }
15037
15070
  );
15038
15071
  }
15039
- const $b = {
15072
+ const Mb = {
15040
15073
  xs: {
15041
15074
  width: 28,
15042
15075
  height: 16,
@@ -15050,7 +15083,7 @@ const $b = {
15050
15083
  padding: 2
15051
15084
  }
15052
15085
  };
15053
- function Ch({
15086
+ function Th({
15054
15087
  checked: e,
15055
15088
  disabled: t,
15056
15089
  onCheckedChange: n,
@@ -15058,7 +15091,7 @@ function Ch({
15058
15091
  className: o = "",
15059
15092
  ...i
15060
15093
  }) {
15061
- const l = $b[a], s = e ? l.width - l.thumb - l.padding * 2 : 0;
15094
+ const l = Mb[a], s = e ? l.width - l.thumb - l.padding * 2 : 0;
15062
15095
  return /* @__PURE__ */ r(
15063
15096
  "button",
15064
15097
  {
@@ -15097,13 +15130,13 @@ const Ul = [
15097
15130
  ".app-scroll",
15098
15131
  ".showcase-nav-scroll",
15099
15132
  "[data-overlay-scroll='true']"
15100
- ].join(","), Tb = [
15133
+ ].join(","), Ab = [
15101
15134
  ":scope > [data-overlayscrollbars-contents]",
15102
15135
  ":scope > .sidebar-scroll-body",
15103
15136
  ":scope > .showcase-nav-scroll-body",
15104
15137
  ":scope > .app-scroll-body"
15105
15138
  ].join(", ");
15106
- function Mb(e) {
15139
+ function Lb(e) {
15107
15140
  if (!(e instanceof HTMLElement) || e.dataset.overlayScroll === "false" || e.matches("[data-overlayscrollbars]") || e.closest("[data-overlayscrollbars]") || e.matches("textarea,input,select,[contenteditable='true']"))
15108
15141
  return !1;
15109
15142
  const t = window.getComputedStyle(e);
@@ -15121,11 +15154,11 @@ function Vl(e) {
15121
15154
  t.style.display = "none", t.style.height = "0", t.style.pointerEvents = "none";
15122
15155
  });
15123
15156
  }
15124
- function Ab(e) {
15125
- const t = e.querySelector(Tb);
15157
+ function Db(e) {
15158
+ const t = e.querySelector(Ab);
15126
15159
  return t instanceof HTMLElement ? t : null;
15127
15160
  }
15128
- function Lb() {
15161
+ function Rb() {
15129
15162
  return fe(() => {
15130
15163
  const e = /* @__PURE__ */ new WeakMap();
15131
15164
  let t = 0;
@@ -15136,14 +15169,14 @@ function Lb() {
15136
15169
  Vl(i);
15137
15170
  return;
15138
15171
  }
15139
- if (!Mb(i)) return;
15172
+ if (!Lb(i)) return;
15140
15173
  const s = {
15141
15174
  overflow: ic(i) ? { x: "hidden", y: "scroll" } : void 0,
15142
15175
  scrollbars: {
15143
15176
  autoHide: "leave",
15144
15177
  autoHideDelay: 180
15145
15178
  }
15146
- }, d = Ab(i), u = d ? fo(
15179
+ }, d = Db(i), u = d ? fo(
15147
15180
  {
15148
15181
  target: i,
15149
15182
  elements: { viewport: d }
@@ -15182,7 +15215,7 @@ function Yl(e) {
15182
15215
  return "";
15183
15216
  }
15184
15217
  }
15185
- function Db(e) {
15218
+ function Ob(e) {
15186
15219
  const t = gr(e);
15187
15220
  if (!t) return "";
15188
15221
  const n = t.match(/^\/apps\/[^/]+/i);
@@ -15222,7 +15255,7 @@ function Db(e) {
15222
15255
  "chat-widget"
15223
15256
  ])).has(a[0].toLowerCase()) ? "" : gr(`/${a[0]}`);
15224
15257
  }
15225
- const Lo = "primeSuiteAppUrl", Rb = {
15258
+ const Lo = "primeSuiteAppUrl", Bb = {
15226
15259
  xs: { wh: "w-5 h-5", text: "text-[8px]" },
15227
15260
  sm: { wh: "w-7 h-7", text: "text-[11px]" },
15228
15261
  md: { wh: "w-9 h-9", text: "text-sm" },
@@ -15243,12 +15276,12 @@ const Lo = "primeSuiteAppUrl", Rb = {
15243
15276
  "bg-teal-500",
15244
15277
  "bg-rose-500",
15245
15278
  "bg-cyan-500"
15246
- ], Ob = {
15279
+ ], Ib = {
15247
15280
  xs: "text-xs",
15248
15281
  sm: "text-sm",
15249
15282
  md: "text-base",
15250
15283
  lg: "text-lg"
15251
- }, Bb = "bonsaif.bot", Ib = "Bonsaif Bot", _b = {
15284
+ }, _b = "bonsaif.bot", Fb = "Bonsaif Bot", Hb = {
15252
15285
  xs: "p-0.5",
15253
15286
  sm: "p-1",
15254
15287
  md: "p-1.5",
@@ -15258,7 +15291,7 @@ const Lo = "primeSuiteAppUrl", Rb = {
15258
15291
  function Gl(e) {
15259
15292
  return typeof e == "string" ? e.trim() : "";
15260
15293
  }
15261
- function Fb(e) {
15294
+ function Pb(e) {
15262
15295
  var o;
15263
15296
  if (e !== void 0)
15264
15297
  return gr(e);
@@ -15282,24 +15315,24 @@ function Fb(e) {
15282
15315
  const i = a.startsWith("http") ? Yl(a) : gr(a);
15283
15316
  if (i && !/^\/admin(\/|$)/i.test(i)) return i;
15284
15317
  }
15285
- return Db(window.location.pathname);
15318
+ return Ob(window.location.pathname);
15286
15319
  }
15287
- function Hb(e) {
15320
+ function zb(e) {
15288
15321
  const t = e.split(/\s+/).map((n) => n.trim()).filter(Boolean);
15289
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();
15290
15323
  }
15291
- function Pb(e) {
15324
+ function jb(e) {
15292
15325
  let t = 0;
15293
15326
  for (const n of e) t = t * 31 + n.charCodeAt(0) & 65535;
15294
15327
  return Xl[t % Xl.length];
15295
15328
  }
15296
- function zb(e, t) {
15297
- return e === Bb || t === Ib;
15329
+ function Wb(e, t) {
15330
+ return e === _b || t === Fb;
15298
15331
  }
15299
- function jb(e, t) {
15332
+ function qb(e, t) {
15300
15333
  return `${e.replace(/\/$/, "")}${t}`;
15301
15334
  }
15302
- function Wb({
15335
+ function Ub({
15303
15336
  userId: e,
15304
15337
  username: t,
15305
15338
  name: n,
@@ -15320,7 +15353,7 @@ function Wb({
15320
15353
  fe(() => {
15321
15354
  g(!1);
15322
15355
  }, [L, m]);
15323
- const { wh: S, text: T } = Rb[a], O = Gl(n) || Gl(t) || s, C = Hb(O), y = Fb(d), $ = zb(t, n), w = jb(y, "/favicon.svg"), _ = Re(() => {
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(() => {
15324
15357
  if (!L) return "";
15325
15358
  const H = new URLSearchParams();
15326
15359
  H.set("size", String(Kl[a])), m && H.set("v", String(m));
@@ -15329,7 +15362,7 @@ function Wb({
15329
15362
  }, [m, y, L, a]), j = Kl[a], q = $ ? /* @__PURE__ */ r(
15330
15363
  "span",
15331
15364
  {
15332
- className: `${S} ${_b[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}`,
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}`,
15333
15366
  style: x,
15334
15367
  children: /* @__PURE__ */ r(
15335
15368
  "img",
@@ -15359,7 +15392,7 @@ function Wb({
15359
15392
  ) : /* @__PURE__ */ r(
15360
15393
  "span",
15361
15394
  {
15362
- className: `${S} ${Pb(O)} ${T} rounded-full flex items-center justify-center font-black text-white uppercase flex-shrink-0 ${h}`,
15395
+ className: `${S} ${jb(O)} ${T} rounded-full flex items-center justify-center font-black text-white uppercase flex-shrink-0 ${h}`,
15363
15396
  style: x,
15364
15397
  title: O,
15365
15398
  children: C
@@ -15375,7 +15408,7 @@ function Wb({
15375
15408
  /* @__PURE__ */ r(
15376
15409
  "span",
15377
15410
  {
15378
- className: `min-w-0 truncate ${Ob[f]} font-medium text-[var(--text-main)] ${b}`,
15411
+ className: `min-w-0 truncate ${Ib[f]} font-medium text-[var(--text-main)] ${b}`,
15379
15412
  title: O,
15380
15413
  children: O
15381
15414
  }
@@ -15394,16 +15427,16 @@ function Wb({
15394
15427
  }
15395
15428
  ) : q;
15396
15429
  }
15397
- function qb({ href: e, className: t, children: n }) {
15430
+ function Vb({ href: e, className: t, children: n }) {
15398
15431
  return /* @__PURE__ */ r("a", { href: e, className: t, children: n });
15399
15432
  }
15400
- function Ub(e) {
15433
+ function Yb(e) {
15401
15434
  return e.reduce((t, n) => {
15402
15435
  const a = n.section ?? "Principal";
15403
15436
  return t[a] = [...t[a] ?? [], n], t;
15404
15437
  }, {});
15405
15438
  }
15406
- function Vb({
15439
+ function Kb({
15407
15440
  children: e,
15408
15441
  navItems: t = [],
15409
15442
  currentPath: n = typeof window > "u" ? "/" : window.location.pathname,
@@ -15413,11 +15446,11 @@ function Vb({
15413
15446
  header: l,
15414
15447
  footer: s,
15415
15448
  onLogout: d,
15416
- LinkComponent: u = qb
15449
+ LinkComponent: u = Vb
15417
15450
  }) {
15418
- const [b, f] = z(!1), m = Ub(t);
15451
+ const [b, f] = z(!1), m = Yb(t);
15419
15452
  return /* @__PURE__ */ c("div", { className: "min-h-screen bg-[var(--bg-main)] text-[var(--text-main)]", children: [
15420
- /* @__PURE__ */ r(Lb, {}),
15453
+ /* @__PURE__ */ r(Rb, {}),
15421
15454
  /* @__PURE__ */ r(
15422
15455
  "button",
15423
15456
  {
@@ -15487,7 +15520,7 @@ function Vb({
15487
15520
  /* @__PURE__ */ c("div", { className: "border-t border-white/10 p-3", children: [
15488
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: [
15489
15522
  /* @__PURE__ */ r(
15490
- Wb,
15523
+ Ub,
15491
15524
  {
15492
15525
  name: a.initials ?? a.name ?? a.email ?? "Usuario",
15493
15526
  size: "md"
@@ -15521,7 +15554,7 @@ function Vb({
15521
15554
  ] })
15522
15555
  ] });
15523
15556
  }
15524
- const Zl = "bonsaif-ui:prime-auth-sso", Yb = {
15557
+ const Zl = "bonsaif-ui:prime-auth-sso", Xb = {
15525
15558
  dashboard: "Dashboard",
15526
15559
  tickets: "Tickets",
15527
15560
  teams: "Equipos",
@@ -15567,17 +15600,17 @@ const Zl = "bonsaif-ui:prime-auth-sso", Yb = {
15567
15600
  "email-inbox": /* @__PURE__ */ r(ds, { className: "h-5 w-5" }),
15568
15601
  "security-incidents": /* @__PURE__ */ r(mo, { className: "h-5 w-5" })
15569
15602
  };
15570
- function Kb(e) {
15603
+ function Gb(e) {
15571
15604
  return e.split("-").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" ");
15572
15605
  }
15573
- function Xb(e) {
15606
+ function Zb(e) {
15574
15607
  return /^\d+$/.test(e) || /^[a-f0-9]{8,}$/i.test(e);
15575
15608
  }
15576
- function Gb(e) {
15609
+ function Qb(e) {
15577
15610
  const t = e.split("/").filter(Boolean);
15578
15611
  if (t.length === 0 || t.length === 1 && t[0] === "dashboard")
15579
15612
  return [];
15580
- const n = decodeURIComponent(t[t.length - 1]), a = t.length > 1 ? decodeURIComponent(t[t.length - 2]) : void 0, o = Xb(n) && a ? a : n, i = Yb[o] ?? Kb(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);
15581
15614
  return [{ label: "Inicio", href: "/" }, { label: i }];
15582
15615
  }
15583
15616
  function Ro(e) {
@@ -15585,19 +15618,19 @@ function Ro(e) {
15585
15618
  ":scope > [data-overlayscrollbars-viewport]"
15586
15619
  ));
15587
15620
  }
15588
- function Zb(e) {
15621
+ function Jb(e) {
15589
15622
  const t = e.split("/").filter(Boolean), n = t[t.length - 1];
15590
15623
  if (!n) return /* @__PURE__ */ r(Sa, { className: "h-5 w-5" });
15591
15624
  if (Do[n]) return Do[n];
15592
15625
  const a = t.length > 1 ? t[t.length - 2] : "";
15593
15626
  return Do[a] ?? /* @__PURE__ */ r(Sa, { className: "h-5 w-5" });
15594
15627
  }
15595
- function Qb(e) {
15628
+ function ep(e) {
15596
15629
  return e.includes("primeAuthOrigin") || e.includes("primeAuthProjectKey");
15597
15630
  }
15598
15631
  function Ql() {
15599
15632
  if (typeof window > "u") return !1;
15600
- if (Qb(window.location.href)) {
15633
+ if (ep(window.location.href)) {
15601
15634
  try {
15602
15635
  window.sessionStorage.setItem(Zl, "true");
15603
15636
  } catch {
@@ -15610,7 +15643,7 @@ function Ql() {
15610
15643
  return !1;
15611
15644
  }
15612
15645
  }
15613
- function $h({
15646
+ function Mh({
15614
15647
  title: e,
15615
15648
  subtitle: t,
15616
15649
  action: n,
@@ -15623,7 +15656,7 @@ function $h({
15623
15656
  showBreadcrumbs: u = !0,
15624
15657
  contained: b = !1
15625
15658
  }) {
15626
- 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 ?? Gb(O), y = o ?? Zb(O), $ = u && !g && C.length > 1, w = !$;
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 = !$;
15627
15660
  fe(() => {
15628
15661
  d || k(window.location.pathname);
15629
15662
  }, [d]), fe(() => {
@@ -15785,20 +15818,20 @@ function $h({
15785
15818
  }
15786
15819
  );
15787
15820
  }
15788
- function Th({
15821
+ function Ah({
15789
15822
  children: e,
15790
15823
  currentPath: t = typeof window > "u" ? "/" : window.location.pathname,
15791
15824
  publicRoutes: n = ["/", "/login", "/reset-password"],
15792
15825
  ...a
15793
15826
  }) {
15794
- return n.includes(t) ? /* @__PURE__ */ r(qe, { children: e }) : /* @__PURE__ */ r(Vb, { currentPath: t, ...a, children: e });
15827
+ return n.includes(t) ? /* @__PURE__ */ r(qe, { children: e }) : /* @__PURE__ */ r(Kb, { currentPath: t, ...a, children: e });
15795
15828
  }
15796
15829
  function Jl() {
15797
15830
  if (typeof window > "u") return "system";
15798
15831
  const e = localStorage.getItem("theme");
15799
15832
  return e === "light" || e === "dark" ? e : e === "system" ? "system" : document.documentElement.classList.contains("dark") ? "dark" : "light";
15800
15833
  }
15801
- function Jb(e, t, n) {
15834
+ function tp(e, t, n) {
15802
15835
  try {
15803
15836
  const a = new URL(e), o = a.searchParams.get("callbackUrl");
15804
15837
  if (o) {
@@ -15813,7 +15846,7 @@ function Jb(e, t, n) {
15813
15846
  return e;
15814
15847
  }
15815
15848
  }
15816
- function Mh({
15849
+ function Lh({
15817
15850
  name: e,
15818
15851
  src: t,
15819
15852
  projectKey: n
@@ -15830,7 +15863,7 @@ function Mh({
15830
15863
  }), () => d.disconnect();
15831
15864
  }, []);
15832
15865
  const l = Re(
15833
- () => Jb(t, a, n),
15866
+ () => tp(t, a, n),
15834
15867
  [n, t, a]
15835
15868
  ), s = Re(() => {
15836
15869
  try {
@@ -15881,7 +15914,7 @@ function Mh({
15881
15914
  }
15882
15915
  ) });
15883
15916
  }
15884
- function Ah() {
15917
+ function Dh() {
15885
15918
  const [e, t] = z(""), [n, a] = z(!1), [o, i] = z({ width: 96, height: 96 });
15886
15919
  return fe(() => {
15887
15920
  let l = !1;
@@ -15923,7 +15956,7 @@ function es(e, t, n) {
15923
15956
  const a = typeof e == "number" && Number.isFinite(e) ? e : t;
15924
15957
  return Math.max(t, Math.min(n, Math.ceil(a)));
15925
15958
  }
15926
- function ep(e) {
15959
+ function rp(e) {
15927
15960
  const t = document.documentElement, n = new MutationObserver(e);
15928
15961
  n.observe(t, { attributes: !0, attributeFilter: ["class"] });
15929
15962
  const a = window.matchMedia("(prefers-color-scheme: dark)");
@@ -15931,24 +15964,24 @@ function ep(e) {
15931
15964
  n.disconnect(), a.removeEventListener("change", e);
15932
15965
  };
15933
15966
  }
15934
- function tp() {
15967
+ function np() {
15935
15968
  const e = localStorage.getItem("theme") || "system", t = window.matchMedia("(prefers-color-scheme: dark)").matches;
15936
15969
  return document.documentElement.classList.contains("dark") || e === "dark" || e === "system" && t ? "dark" : "light";
15937
15970
  }
15938
- function rp() {
15971
+ function ap() {
15939
15972
  return "light";
15940
15973
  }
15941
- function Lh({
15974
+ function Rh({
15942
15975
  position: e = "bottom-center"
15943
15976
  }) {
15944
15977
  const t = td(
15945
- ep,
15946
- tp,
15947
- rp
15978
+ rp,
15979
+ np,
15980
+ ap
15948
15981
  );
15949
15982
  return /* @__PURE__ */ r(Kd, { position: e, theme: t, richColors: !0, closeButton: !0 });
15950
15983
  }
15951
- function Dh({
15984
+ function Oh({
15952
15985
  title: e,
15953
15986
  subtitle: t,
15954
15987
  actions: n,
@@ -15997,7 +16030,7 @@ const Oa = [
15997
16030
  "#60a5fa",
15998
16031
  "#94a3b8"
15999
16032
  ];
16000
- function np(e, t) {
16033
+ function op(e, t) {
16001
16034
  return e.color ?? Oa[t % Oa.length];
16002
16035
  }
16003
16036
  function or(e = "primary") {
@@ -16049,7 +16082,7 @@ function wn(e, t = 1) {
16049
16082
  const s = i >= 100 ? i.toFixed(0) : i.toFixed(t);
16050
16083
  return `${n}${s.replace(/\.0$/, "")} ${o[l]}`;
16051
16084
  }
16052
- function ap(e, t = "bytes", n = 1) {
16085
+ function ip(e, t = "bytes", n = 1) {
16053
16086
  if (!Number.isFinite(e)) return "—";
16054
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"];
16055
16088
  if (o < 1024) return `${a}${Math.round(o)} ${i[0]}`;
@@ -16100,19 +16133,19 @@ function Bt({
16100
16133
  }
16101
16134
  );
16102
16135
  }
16103
- const yr = 680, Or = "ease-out", op = {
16136
+ const yr = 680, Or = "ease-out", lp = {
16104
16137
  top: 18,
16105
16138
  right: 8,
16106
16139
  bottom: 12,
16107
16140
  left: 0
16108
16141
  };
16109
16142
  function In(e) {
16110
- return { ...op, ...e };
16143
+ return { ...lp, ...e };
16111
16144
  }
16112
16145
  function Dn(e) {
16113
16146
  return e.map((t, n) => ({
16114
16147
  ...t,
16115
- color: np(t, n),
16148
+ color: op(t, n),
16116
16149
  label: t.label ?? t.key
16117
16150
  }));
16118
16151
  }
@@ -16146,7 +16179,7 @@ function qa() {
16146
16179
  color: "var(--text-muted)"
16147
16180
  };
16148
16181
  }
16149
- function ip(e, t = Ut) {
16182
+ function sp(e, t = Ut) {
16150
16183
  if (e == null || e === "") return "—";
16151
16184
  const n = typeof e == "number" ? e : Number(e);
16152
16185
  return Number.isFinite(n) ? t(n) : String(e);
@@ -16154,7 +16187,7 @@ function ip(e, t = Ut) {
16154
16187
  function ts(e) {
16155
16188
  return `bonsaif-grad-${e.replace(/[^a-zA-Z0-9_-]/g, "")}`;
16156
16189
  }
16157
- function lp({
16190
+ function cp({
16158
16191
  active: e,
16159
16192
  label: t,
16160
16193
  payload: n,
@@ -16186,7 +16219,7 @@ function lp({
16186
16219
  ),
16187
16220
  h.name ?? h.dataKey
16188
16221
  ] }),
16189
- /* @__PURE__ */ r("span", { className: "bonsaif-chart-tooltip-value", children: ip(g, a) })
16222
+ /* @__PURE__ */ r("span", { className: "bonsaif-chart-tooltip-value", children: sp(g, a) })
16190
16223
  ]
16191
16224
  },
16192
16225
  String(h.dataKey ?? h.name ?? x)
@@ -16219,7 +16252,7 @@ function on({
16219
16252
  overflow: "visible",
16220
16253
  ...o
16221
16254
  },
16222
- content: t ?? /* @__PURE__ */ r(lp, { valueFormat: e })
16255
+ content: t ?? /* @__PURE__ */ r(cp, { valueFormat: e })
16223
16256
  }
16224
16257
  );
16225
16258
  }
@@ -16351,7 +16384,7 @@ function Va({
16351
16384
  }
16352
16385
  ) : null;
16353
16386
  }
16354
- function Rh({
16387
+ function Bh({
16355
16388
  data: e,
16356
16389
  xKey: t,
16357
16390
  series: n,
@@ -16622,7 +16655,7 @@ function fi({
16622
16655
  }
16623
16656
  );
16624
16657
  }
16625
- function Oh({
16658
+ function Ih({
16626
16659
  data: e,
16627
16660
  xKey: t,
16628
16661
  series: n,
@@ -16772,10 +16805,10 @@ function Oh({
16772
16805
  }
16773
16806
  );
16774
16807
  }
16775
- function Bh(e) {
16808
+ function _h(e) {
16776
16809
  return /* @__PURE__ */ r(sc, { ...e, variant: "pie" });
16777
16810
  }
16778
- function Ih(e) {
16811
+ function Fh(e) {
16779
16812
  return /* @__PURE__ */ r(
16780
16813
  sc,
16781
16814
  {
@@ -16866,7 +16899,7 @@ function sc({
16866
16899
  animationDuration: yr,
16867
16900
  animationEasing: Or,
16868
16901
  label: !1,
16869
- activeShape: sp,
16902
+ activeShape: dp,
16870
16903
  children: L.map((D) => /* @__PURE__ */ r(gs, { fill: D.fill }, D.name))
16871
16904
  }
16872
16905
  ),
@@ -16901,7 +16934,7 @@ function sc({
16901
16934
  }
16902
16935
  );
16903
16936
  }
16904
- function sp(e) {
16937
+ function dp(e) {
16905
16938
  const { outerRadius: t = 0, ...n } = e;
16906
16939
  return /* @__PURE__ */ r(
16907
16940
  Ud,
@@ -16913,7 +16946,7 @@ function sp(e) {
16913
16946
  }
16914
16947
  );
16915
16948
  }
16916
- function _h({
16949
+ function Hh({
16917
16950
  data: e,
16918
16951
  dataKey: t,
16919
16952
  width: n = "100%",
@@ -16977,7 +17010,7 @@ function _h({
16977
17010
  }
16978
17011
  );
16979
17012
  }
16980
- function Fh({
17013
+ function Ph({
16981
17014
  data: e,
16982
17015
  xKey: t,
16983
17016
  series: n,
@@ -17129,7 +17162,7 @@ function Fh({
17129
17162
  }
17130
17163
  );
17131
17164
  }
17132
- function Hh({
17165
+ function zh({
17133
17166
  data: e,
17134
17167
  xKey: t,
17135
17168
  valueKey: n,
@@ -17148,7 +17181,7 @@ function Hh({
17148
17181
  totalColor: k = "var(--primary)"
17149
17182
  }) {
17150
17183
  const g = Re(
17151
- () => cp(e, {
17184
+ () => up(e, {
17152
17185
  xKey: t,
17153
17186
  valueKey: n,
17154
17187
  typeKey: a,
@@ -17234,7 +17267,7 @@ function Hh({
17234
17267
  }
17235
17268
  );
17236
17269
  }
17237
- function cp(e, t) {
17270
+ function up(e, t) {
17238
17271
  let n = 0;
17239
17272
  return e.map((a, o) => {
17240
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";
@@ -17249,7 +17282,7 @@ function cp(e, t) {
17249
17282
  };
17250
17283
  });
17251
17284
  }
17252
- const os = "bonsaif-funnel-chart-keyframes", dp = `
17285
+ const os = "bonsaif-funnel-chart-keyframes", mp = `
17253
17286
  @keyframes bonsaif-funnel-stage-in {
17254
17287
  from {
17255
17288
  opacity: 0;
@@ -17290,10 +17323,10 @@ const os = "bonsaif-funnel-chart-keyframes", dp = `
17290
17323
  }
17291
17324
  }
17292
17325
  `;
17293
- function up() {
17326
+ function fp() {
17294
17327
  if (typeof document > "u" || document.getElementById(os)) return;
17295
17328
  const e = document.createElement("style");
17296
- e.id = os, e.textContent = dp, document.head.appendChild(e);
17329
+ e.id = os, e.textContent = mp, document.head.appendChild(e);
17297
17330
  }
17298
17331
  function cc(e, t, n) {
17299
17332
  return Math.min(n, Math.max(t, e));
@@ -17302,7 +17335,7 @@ function xa(e, t, n) {
17302
17335
  const a = cc(n, 0, 1);
17303
17336
  return `color-mix(in srgb, ${e} ${Math.round((1 - a) * 100)}%, ${t} ${Math.round(a * 100)}%)`;
17304
17337
  }
17305
- function mp(e, t, n, a, o, i) {
17338
+ function bp(e, t, n, a, o, i) {
17306
17339
  const l = e.map((d, u) => {
17307
17340
  const b = an(d[n]) ?? 0, f = String(d[t] ?? ""), m = a ? String(d[a] ?? "").trim() : "", h = o ? String(d[o] ?? "").trim() : "";
17308
17341
  return {
@@ -17318,7 +17351,7 @@ function mp(e, t, n, a, o, i) {
17318
17351
  pct: d.value / s
17319
17352
  }));
17320
17353
  }
17321
- function fp(e, t) {
17354
+ function pp(e, t) {
17322
17355
  const n = e.length;
17323
17356
  if (n === 0) return [];
17324
17357
  const a = t.gap * Math.max(0, n - 1), o = (t.plotH - a) / n, i = t.maxTopW, l = t.maxTopW * t.taper;
@@ -17335,7 +17368,7 @@ function fp(e, t) {
17335
17368
  };
17336
17369
  });
17337
17370
  }
17338
- function bp({
17371
+ function hp({
17339
17372
  stage: e,
17340
17373
  hovered: t,
17341
17374
  onHover: n
@@ -17400,7 +17433,7 @@ function bp({
17400
17433
  }
17401
17434
  );
17402
17435
  }
17403
- function Ph({
17436
+ function jh({
17404
17437
  data: e,
17405
17438
  nameKey: t,
17406
17439
  valueKey: n,
@@ -17421,21 +17454,21 @@ function Ph({
17421
17454
  ariaLabel: L = "Gráfico embudo"
17422
17455
  }) {
17423
17456
  const [S, T] = z(null), [O, C] = z(!1), y = Re(
17424
- () => mp(e, t, n, a, o, x),
17457
+ () => bp(e, t, n, a, o, x),
17425
17458
  [e, t, n, a, o, x]
17426
17459
  ), $ = Re(
17427
17460
  () => y.map((Y) => `${Y.name}:${Y.value}`).join("|"),
17428
17461
  [y]
17429
17462
  );
17430
17463
  if (fe(() => {
17431
- if (up(), typeof window > "u") return;
17464
+ if (fp(), typeof window > "u") return;
17432
17465
  const Y = window.matchMedia("(prefers-reduced-motion: reduce)");
17433
17466
  C(Y.matches);
17434
17467
  const W = () => C(Y.matches);
17435
17468
  return Y.addEventListener("change", W), () => Y.removeEventListener("change", W);
17436
17469
  }, []), s) return /* @__PURE__ */ r(Ot, { height: i });
17437
17470
  if (!y.length) return /* @__PURE__ */ r(Bt, { height: i, text: d });
17438
- 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 = fp(y, {
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, {
17439
17472
  cx: M,
17440
17473
  topY: X,
17441
17474
  plotH: se,
@@ -17483,7 +17516,7 @@ function Ph({
17483
17516
  } : void 0;
17484
17517
  return /* @__PURE__ */ c("g", { children: [
17485
17518
  /* @__PURE__ */ r("g", { className: "bonsaif-funnel-stage", style: J, children: /* @__PURE__ */ r(
17486
- bp,
17519
+ hp,
17487
17520
  {
17488
17521
  stage: Y,
17489
17522
  hovered: S === Y.index,
@@ -17625,7 +17658,7 @@ function Ph({
17625
17658
  );
17626
17659
  }
17627
17660
  const Vr = 135 * Math.PI / 180, Bo = 270 * Math.PI / 180;
17628
- function zh({
17661
+ function Wh({
17629
17662
  value: e,
17630
17663
  min: t = 0,
17631
17664
  max: n = 100,
@@ -17666,7 +17699,7 @@ function zh({
17666
17699
  return K = requestAnimationFrame(se), () => cancelAnimationFrame(K);
17667
17700
  }, [T, x, i, l]), i) return /* @__PURE__ */ r(Ot, { height: a });
17668
17701
  if (l) return /* @__PURE__ */ r(Bt, { height: a, text: s });
17669
- const y = 100, $ = 108, w = 72, _ = f ?? pp(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);
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);
17670
17703
  return /* @__PURE__ */ r(
17671
17704
  "div",
17672
17705
  {
@@ -17775,7 +17808,7 @@ function zh({
17775
17808
  }
17776
17809
  );
17777
17810
  }
17778
- function pp(e, t, n, a) {
17811
+ function gp(e, t, n, a) {
17779
17812
  if (a != null && a.length) {
17780
17813
  const i = [...a].sort((s, d) => s.value - d.value);
17781
17814
  let l = i[0].color;
@@ -17797,7 +17830,7 @@ function is(e, t, n, a, o) {
17797
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;
17798
17831
  return `M ${i.x} ${i.y} A ${n} ${n} 0 ${d} 1 ${l.x} ${l.y}`;
17799
17832
  }
17800
- function jh({
17833
+ function qh({
17801
17834
  value: e,
17802
17835
  target: t,
17803
17836
  max: n,
@@ -17979,7 +18012,7 @@ function jh({
17979
18012
  w
17980
18013
  ] }) : w });
17981
18014
  }
17982
- function Wh({
18015
+ function Uh({
17983
18016
  data: e,
17984
18017
  value: t,
17985
18018
  timeKey: n = "t",
@@ -18065,7 +18098,7 @@ function Wh({
18065
18098
  }
18066
18099
  );
18067
18100
  }
18068
- function qh({
18101
+ function Vh({
18069
18102
  used: e,
18070
18103
  total: t,
18071
18104
  cached: n,
@@ -18200,8 +18233,8 @@ function qh({
18200
18233
  }
18201
18234
  );
18202
18235
  }
18203
- const hp = "color-mix(in srgb, var(--primary) 25%, #38bdf8)", gp = "color-mix(in srgb, var(--primary) 20%, #2dd4bf)";
18204
- function Uh({
18236
+ const xp = "color-mix(in srgb, var(--primary) 25%, #38bdf8)", vp = "color-mix(in srgb, var(--primary) 20%, #2dd4bf)";
18237
+ function Yh({
18205
18238
  data: e,
18206
18239
  timeKey: t = "t",
18207
18240
  inboundKey: n = "in",
@@ -18211,8 +18244,8 @@ function Uh({
18211
18244
  unit: l = "bytes",
18212
18245
  inboundLabel: s = "Entrada",
18213
18246
  outboundLabel: d = "Salida",
18214
- inboundColor: u = hp,
18215
- outboundColor: b = gp,
18247
+ inboundColor: u = xp,
18248
+ outboundColor: b = vp,
18216
18249
  height: f = 240,
18217
18250
  className: m = "",
18218
18251
  loading: h = !1,
@@ -18225,7 +18258,7 @@ function Uh({
18225
18258
  const T = o ?? Zr(e, n) ?? 0, O = i ?? Zr(e, a) ?? 0, C = !h && e.length === 0;
18226
18259
  if (h) return /* @__PURE__ */ r(Ot, { height: f });
18227
18260
  if (C) return /* @__PURE__ */ r(Bt, { height: f, text: x });
18228
- const y = (_) => ap(_, l), w = Math.max(140, f - 76);
18261
+ const y = (_) => ip(_, l), w = Math.max(140, f - 76);
18229
18262
  return /* @__PURE__ */ c(
18230
18263
  "div",
18231
18264
  {
@@ -18333,7 +18366,7 @@ const dc = [
18333
18366
  "primeSuiteOrigin",
18334
18367
  "primeSuiteProjectKey"
18335
18368
  ];
18336
- function Vh() {
18369
+ function Kh() {
18337
18370
  if (typeof window > "u") return "*";
18338
18371
  try {
18339
18372
  if (window.parent === window) return "*";
@@ -18368,7 +18401,7 @@ function Vh() {
18368
18401
  return "*";
18369
18402
  }
18370
18403
  }
18371
- function Yh() {
18404
+ function Xh() {
18372
18405
  if (typeof window > "u") return "self";
18373
18406
  try {
18374
18407
  if (window.parent === window) return "self";
@@ -18400,7 +18433,7 @@ function Na(e) {
18400
18433
  return null;
18401
18434
  }
18402
18435
  }
18403
- function Kh(e) {
18436
+ function Gh(e) {
18404
18437
  const [t, n] = z({}), [a, o] = z(!1), i = be(
18405
18438
  (u) => a || t[u] ? e[u] : void 0,
18406
18439
  [e, a, t]
@@ -18421,115 +18454,115 @@ function Kh(e) {
18421
18454
  };
18422
18455
  }
18423
18456
  export {
18424
- Lp as Alert,
18457
+ Rp as Alert,
18425
18458
  fi as AreaChart,
18426
- Vb as AuthShell,
18427
- cb as AutoGrowTextarea,
18428
- Nh as AutoGrowTextareaField,
18429
- Oh as BarChart,
18430
- Mp as BonsaifButton,
18431
- Lh as BonsaifUIToaster,
18432
- jh as BulletChart,
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,
18433
18466
  tt as Button,
18434
18467
  Oa as CHART_PALETTE,
18435
- Dp as CalendarPicker,
18436
- Dh as ChartCard,
18468
+ Op as CalendarPicker,
18469
+ Oh as ChartCard,
18437
18470
  Po as Checkbox,
18438
- Hp as CodeBlock,
18439
- Fh as ComboChart,
18440
- zp as CompactFilterSelect,
18441
- Pp as CompactSearchInput,
18442
- jp as ConfirmDialog,
18471
+ zp as CodeBlock,
18472
+ Ph as ComboChart,
18473
+ Wp as CompactFilterSelect,
18474
+ jp as CompactSearchInput,
18475
+ qp as ConfirmDialog,
18443
18476
  As as CopyButton,
18444
- Wp as CopyLinkButton,
18445
- Wh as CpuChart,
18446
- qp as DataSheets,
18477
+ Up as CopyLinkButton,
18478
+ Uh as CpuChart,
18479
+ Vp as DataSheets,
18447
18480
  Ss as DataTable,
18448
- Up as DateRangePicker,
18449
- Ih as DonutChart,
18450
- Xp as Drawer,
18451
- Kp as DropdownMenu,
18452
- Ap as DynamicDetailTabs,
18453
- oh as EmailField,
18481
+ Yp as DateRangePicker,
18482
+ Fh as DonutChart,
18483
+ Zp as Drawer,
18484
+ Gp as DropdownMenu,
18485
+ Dp as DynamicDetailTabs,
18486
+ lh as EmailField,
18454
18487
  go as EmptyState,
18455
- Fp as EventCalendar,
18488
+ Pp as EventCalendar,
18456
18489
  Bn as FieldHelperFooter,
18457
18490
  On as FieldLabelInfo,
18458
- lh as FieldLayoutEditor,
18459
- ih as FileUpload,
18491
+ ch as FieldLayoutEditor,
18492
+ sh as FileUpload,
18460
18493
  si as FormField,
18461
- Ph as FunnelChart,
18462
- zh as GaugeChart,
18463
- Lb as GlobalScrollbars,
18494
+ jh as FunnelChart,
18495
+ Wh as GaugeChart,
18496
+ Rb as GlobalScrollbars,
18464
18497
  Ym as ImageLightbox,
18465
- sh as ImageLightboxHost,
18498
+ dh as ImageLightboxHost,
18466
18499
  Ws as InputField,
18467
- Rh as LineChart,
18500
+ Bh as LineChart,
18468
18501
  su as LoadingState,
18469
- Jf as MentionTextEditor,
18470
- Mh as MicroserviceFrame,
18502
+ tb as MentionTextEditor,
18503
+ Lh as MicroserviceFrame,
18471
18504
  Ls as Modal,
18472
18505
  ir as MouseTooltip,
18473
- Vp as MultiDateCalendar,
18474
- ch as MultiSelect,
18475
- Uh as NetworkChart,
18476
- dh as NumberField,
18477
- $h as PageHeader,
18506
+ Kp as MultiDateCalendar,
18507
+ uh as MultiSelect,
18508
+ Yh as NetworkChart,
18509
+ mh as NumberField,
18510
+ Mh as PageHeader,
18478
18511
  Gd as PageSearchInput,
18479
- uh as Pagination,
18480
- mh as PhoneField,
18481
- Bh as PieChart,
18482
- Th as PrimeAuthRouteShell,
18483
- Ah as PrimeSuiteChatFrame,
18484
- fh as RadioGroup,
18485
- qh as RamChart,
18486
- hh as RichTextEditor,
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,
18487
18520
  en as SearchableSelect,
18488
- gh as SectionPanel,
18489
- _h as Sparkline,
18490
- xh as StatusBadge,
18491
- vh as StatusSelect,
18492
- wh as StepWizard,
18521
+ vh as SectionPanel,
18522
+ Hh as Sparkline,
18523
+ yh as StatusBadge,
18524
+ wh as StatusSelect,
18525
+ kh as StepWizard,
18493
18526
  ti as TableSkeleton,
18494
- yh as Tabs,
18495
- Eh as TagInput,
18527
+ Nh as Tabs,
18528
+ Ch as TagInput,
18496
18529
  vo as TextInput,
18497
- bb as Textarea,
18498
- kh as TextareaField,
18499
- Sh as TimeField,
18500
- Sb as TimePicker,
18501
- Ch as Toggle,
18530
+ hb as Textarea,
18531
+ Sh as TextareaField,
18532
+ $h as TimeField,
18533
+ $b as TimePicker,
18534
+ Th as Toggle,
18502
18535
  hr as TruncatedWithTooltip,
18503
- Wb as UserAvatar,
18536
+ Ub as UserAvatar,
18504
18537
  Vu as WORKDAY_LABELS,
18505
- Hh as WaterfallChart,
18506
- Yp as YearMultiDateCalendar,
18507
- Df as buildMentionQueryRegex,
18538
+ zh as WaterfallChart,
18539
+ Xp as YearMultiDateCalendar,
18540
+ Of as buildMentionQueryRegex,
18508
18541
  Ts as chunkMonthWeeks,
18509
18542
  Pu as chunkMonthWorkWeeks,
18510
18543
  En as clearMentionChipSelection,
18511
18544
  Lr as cn,
18512
18545
  ll as computeWeekBars,
18513
- Rp as configureBonsaifUI,
18514
- tf as copyRichCodeBlockFromButton,
18546
+ Bp as configureBonsaifUI,
18547
+ nf as copyRichCodeBlockFromButton,
18515
18548
  Ms as copyTextToClipboard,
18516
- _f as dedupeMentions,
18549
+ Hf as dedupeMentions,
18517
18550
  Ut as defaultValueFormat,
18518
- Uf as deleteEditorSelection,
18519
- Yh as describeParentTargetOrigin,
18520
- Zp as emailFormat,
18551
+ Yf as deleteEditorSelection,
18552
+ Xh as describeParentTargetOrigin,
18553
+ Jp as emailFormat,
18521
18554
  Da as ensureMentionChipTrailingSpaces,
18522
18555
  ec as extractMentionUsernames,
18523
- ph as filterSelfMentions,
18556
+ gh as filterSelfMentions,
18524
18557
  ri as filterWorkdays,
18525
- Yf as findMentionChipAfterCaret,
18526
- Vf as findMentionChipBeforeCaret,
18558
+ Xf as findMentionChipAfterCaret,
18559
+ Kf as findMentionChipBeforeCaret,
18527
18560
  Ol as findMentionChipsInSelection,
18528
18561
  Dl as findMentionTriggerInEditor,
18529
18562
  wn as formatBytes,
18530
18563
  An as formatPercent,
18531
- ap as formatRate,
18532
- Op as getBonsaifUIConfig,
18564
+ ip as formatRate,
18565
+ Ip as getBonsaifUIConfig,
18533
18566
  Ji as getDataTablePreferencesEndpoint,
18534
18567
  nc as getEditorPlainText,
18535
18568
  il as getMonthGrid,
@@ -18537,48 +18570,49 @@ export {
18537
18570
  $s as getWeekDays,
18538
18571
  Hu as getWorkWeekDays,
18539
18572
  ju as groupItemsByDay,
18540
- Ff as highlightMentions,
18541
- Bf as htmlToText,
18542
- Pf as insertMentionInEditor,
18543
- Of as isMentionTriggerBoundary,
18544
- Rf as isPlainOffsetInsideMentionChip,
18573
+ Pf as highlightMentions,
18574
+ _f as htmlToText,
18575
+ jf as insertMentionInEditor,
18576
+ If as isMentionTriggerBoundary,
18577
+ Bf as isPlainOffsetInsideMentionChip,
18545
18578
  Fs as isValidEmail,
18546
18579
  Hs as isValidPhone,
18547
18580
  Fu as isWeekend,
18548
18581
  Ln as locateTextOffset,
18549
- nf as makeRichCodeBlockHtml,
18550
- rf as markRichCodeCopyButtonCopied,
18551
- nh as matches,
18552
- eh as maxLength,
18553
- rh as maxValue,
18554
- If as mentionDisplayLabel,
18555
- Jp as minLength,
18556
- th as minValue,
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,
18557
18590
  Js as normalizeUsername,
18558
18591
  Hm as openImageLightboxFromEvent,
18559
18592
  Gm as phoneCountryCodeOptions,
18560
- Qp as phoneFormat,
18593
+ eh as phoneFormat,
18561
18594
  rc as placeCaretAfterMentionChip,
18562
- zf as placeCaretAtTextOffset,
18595
+ Wf as placeCaretAtTextOffset,
18563
18596
  tc as preferredMentionSpacer,
18564
18597
  $o as removeMentionChip,
18565
- Gp as required,
18566
- Bp as resetBonsaifUIConfig,
18567
- bh as resolveMentions,
18568
- Vh as resolveParentTargetOrigin,
18598
+ Qp as required,
18599
+ _p as resetBonsaifUIConfig,
18600
+ hh as resolveMentions,
18601
+ Kh as resolveParentTargetOrigin,
18602
+ rf as richCodeBlockPlainText,
18569
18603
  ef as richCodeCopyButtonHtml,
18570
- Wf as selectAllEditorContents,
18571
- jf as selectMentionChip,
18572
- qf as selectionIncludesNonChipText,
18573
- np as seriesColor,
18574
- Ip as setBonsaifDataTablePreferencesEndpoint,
18604
+ Uf as selectAllEditorContents,
18605
+ qf as selectMentionChip,
18606
+ Vf as selectionIncludesNonChipText,
18607
+ op as seriesColor,
18608
+ Fp as setBonsaifDataTablePreferencesEndpoint,
18575
18609
  Yo as syncMentionChipSelectionHighlight,
18576
18610
  nr as toDateKey,
18577
- _p as toNearestWorkday,
18578
- Zh as toast,
18611
+ Hp as toNearestWorkday,
18612
+ Jh as toast,
18579
18613
  or as toneColor,
18580
18614
  Ba as usageColor,
18581
18615
  mi as usageTone,
18582
- Kh as useValidationVisibility,
18583
- ah as validateForm
18616
+ Gh as useValidationVisibility,
18617
+ ih as validateForm
18584
18618
  };