@lax-wp/design-system 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as r, jsxs as w, Fragment as PA } from "react/jsx-runtime";
2
2
  import { AnimatePresence as le, motion as zA } from "framer-motion";
3
- import cA, { forwardRef as CA, useRef as aA, useState as F, useEffect as $, useMemo as mA, createElement as pi, useCallback as vA, createContext as St, useContext as Ve, useLayoutEffect as hi, useImperativeHandle as mi, Suspense as Pl, Fragment as Cl, memo as vi } from "react";
3
+ import cA, { forwardRef as CA, useRef as aA, useState as F, useEffect as $, useMemo as mA, createElement as pi, useCallback as bA, createContext as St, useContext as Ve, useLayoutEffect as hi, useImperativeHandle as mi, Suspense as Pl, Fragment as Cl, memo as vi } from "react";
4
4
  import { useTranslation as XA } from "react-i18next";
5
- import { Tooltip as RA, Select as kl, Skeleton as en, Checkbox as bi, Dropdown as Se, DatePicker as tn, Modal as Hl, Upload as gi, Popover as kn, Drawer as Dl } from "antd";
5
+ import { Tooltip as QA, Select as kl, Skeleton as en, Checkbox as bi, Dropdown as Se, DatePicker as tn, Modal as Hl, Upload as gi, Popover as kn, Drawer as Dl } from "antd";
6
6
  import * as wr from "@mui/icons-material";
7
7
  import { BoltOutlined as ge, NoteAddOutlined as Le, CloseRounded as Hn, TableChartRounded as xi, ChevronLeftRounded as Sl, ChevronRightRounded as Nl, OpenInFull as Ll, DescriptionRounded as zl, ArrowUpwardRounded as Tl, ArrowDownwardRounded as Ml, Timer as Xl, DoDisturbRounded as Ol, Pending as Ul, PlayArrowRounded as Vl, RemoveCircleOutline as ql, SearchRounded as la, KeyboardArrowUpRounded as Wl, KeyboardArrowDownRounded as Fl, AddRounded as El, RemoveRounded as jl, ZoomOutMapRounded as Rl, ChevronLeft as Ql, Lock as Kl, Close as Yl, GroupsOutlined as Zl, Numbers as Il, LocalOfferOutlined as Gl, SubjectOutlined as Bl, Schedule as Jl, AttachMoney as $l, MailOutline as _l, CalendarMonth as As, FormatListBulleted as es, Rule as ts, VpnKeyOffOutlined as rs, VisibilityOutlined as yi, VisibilityOffOutlined as wi, Search as ns, SwapVertOutlined as as, TagOutlined as is, RemoveRedEyeOutlined as os, LockOutlined as sa, LockOpenRounded as ls, Tune as ss, FormatListBulletedOutlined as ds } from "@mui/icons-material";
8
8
  import cs, { createPortal as qe } from "react-dom";
@@ -14,7 +14,7 @@ import { DebounceInput as Dn } from "react-debounce-input";
14
14
  import * as Nt from "country-flag-icons/react/1x1";
15
15
  import { BiCalendar as Ur } from "react-icons/bi";
16
16
  import { BsDash as da, BsFiletypePdf as ms, BsThreeDotsVertical as vs, BsPinAngle as Qt } from "react-icons/bs";
17
- import { toast as KA, ToastContainer as bs, Slide as gs } from "react-toastify";
17
+ import { toast as jA, ToastContainer as bs, Slide as gs } from "react-toastify";
18
18
  import "antd/es/menu/interface";
19
19
  import { CgSpinner as Sn } from "react-icons/cg";
20
20
  import { CodeiumEditor as xs } from "@codeium/react-code-editor";
@@ -605,7 +605,7 @@ const Me = {
605
605
  default:
606
606
  return "text-xs px-1.5 py-0.5";
607
607
  }
608
- }, m1 = (A, e, t, n) => A ? t ? e.color : Me[A]?.[500] || e.color : n ? "#A0AEC0" : "#4A5568", jA = CA(
608
+ }, m1 = (A, e, t, n) => A ? t ? e.color : Me[A]?.[500] || e.color : n ? "#A0AEC0" : "#4A5568", RA = CA(
609
609
  ({
610
610
  label: A,
611
611
  color: e,
@@ -691,14 +691,14 @@ const Me = {
691
691
  );
692
692
  }
693
693
  );
694
- jA.displayName = "Tag";
694
+ RA.displayName = "Tag";
695
695
  const re = ({ labels: A = [] }) => {
696
696
  const e = [], t = [];
697
697
  return A.forEach((n) => {
698
698
  typeof n == "string" && !e.includes(n) ? e.push(n) : typeof n != "string" && !t.some((a) => a.label === n.label) && t.push(n);
699
699
  }), /* @__PURE__ */ w(PA, { children: [
700
- e?.map((n) => /* @__PURE__ */ r(jA, { size: "xs", label: n, color: "primary" }, n)),
701
- t?.map((n, a) => /* @__PURE__ */ r(jA, { size: "xs", label: n?.label, color: n?.color }, n?.id || a))
700
+ e?.map((n) => /* @__PURE__ */ r(RA, { size: "xs", label: n, color: "primary" }, n)),
701
+ t?.map((n, a) => /* @__PURE__ */ r(RA, { size: "xs", label: n?.label, color: n?.color }, n?.id || a))
702
702
  ] });
703
703
  }, Pr = () => {
704
704
  if (typeof window > "u" || typeof navigator > "u")
@@ -1072,7 +1072,7 @@ const re = ({ labels: A = [] }) => {
1072
1072
  children: /* @__PURE__ */ w("div", { className: "flex flex-wrap items-center justify-between w-full", children: [
1073
1073
  /* @__PURE__ */ w("div", { className: "inline-flex flex-wrap items-center gap-1", children: [
1074
1074
  /* @__PURE__ */ r(qA, { label: e || "", required: i || !1, isRequiredConditional: o || !1 }),
1075
- x?.length > 0 && x !== M.value && /* @__PURE__ */ r(RA, { placement: "top", title: x, children: /* @__PURE__ */ r(
1075
+ x?.length > 0 && x !== M.value && /* @__PURE__ */ r(QA, { placement: "top", title: x, children: /* @__PURE__ */ r(
1076
1076
  "button",
1077
1077
  {
1078
1078
  className: "cursor-pointer",
@@ -1099,7 +1099,7 @@ const re = ({ labels: A = [] }) => {
1099
1099
  ),
1100
1100
  v && /* @__PURE__ */ r(xe, {}),
1101
1101
  /* @__PURE__ */ r(re, { labels: s }),
1102
- b && /* @__PURE__ */ r(RA, { placement: "top", title: b, children: /* @__PURE__ */ r("div", { className: "cursor-pointer", children: /* @__PURE__ */ r(te, {}) }) })
1102
+ b && /* @__PURE__ */ r(QA, { placement: "top", title: b, children: /* @__PURE__ */ r("div", { className: "cursor-pointer", children: /* @__PURE__ */ r(te, {}) }) })
1103
1103
  ] }),
1104
1104
  y && j && X ? /* @__PURE__ */ r(
1105
1105
  "button",
@@ -1108,7 +1108,7 @@ const re = ({ labels: A = [] }) => {
1108
1108
  className: "cursor-pointer",
1109
1109
  onClick: () => K(M?.value),
1110
1110
  type: "button",
1111
- children: /* @__PURE__ */ r(RA, { placement: "top", title: L("Add to document"), children: /* @__PURE__ */ r(
1111
+ children: /* @__PURE__ */ r(QA, { placement: "top", title: L("Add to document"), children: /* @__PURE__ */ r(
1112
1112
  Le,
1113
1113
  {
1114
1114
  className: "text-primary-600",
@@ -1438,7 +1438,7 @@ const p7 = CA(
1438
1438
  ),
1439
1439
  x && /* @__PURE__ */ r(xe, {}),
1440
1440
  /* @__PURE__ */ r(re, { labels: c || [] }),
1441
- b && /* @__PURE__ */ r(RA, { placement: "top", title: b, children: /* @__PURE__ */ r(
1441
+ b && /* @__PURE__ */ r(QA, { placement: "top", title: b, children: /* @__PURE__ */ r(
1442
1442
  "div",
1443
1443
  {
1444
1444
  className: "cursor-pointer",
@@ -1458,7 +1458,7 @@ const p7 = CA(
1458
1458
  className: "cursor-pointer",
1459
1459
  onClick: L,
1460
1460
  type: "button",
1461
- children: /* @__PURE__ */ r(RA, { placement: "top", title: X("Add to document"), children: /* @__PURE__ */ r(
1461
+ children: /* @__PURE__ */ r(QA, { placement: "top", title: X("Add to document"), children: /* @__PURE__ */ r(
1462
1462
  Le,
1463
1463
  {
1464
1464
  className: "text-primary-600",
@@ -1707,7 +1707,7 @@ const YA = ({
1707
1707
  className: "cursor-pointer",
1708
1708
  onClick: () => kA(n?.toString() || ""),
1709
1709
  type: "button",
1710
- children: /* @__PURE__ */ r(RA, { placement: "top", title: W("Add to document"), children: /* @__PURE__ */ r(
1710
+ children: /* @__PURE__ */ r(QA, { placement: "top", title: W("Add to document"), children: /* @__PURE__ */ r(
1711
1711
  Le,
1712
1712
  {
1713
1713
  sx: {
@@ -1923,11 +1923,11 @@ const k1 = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
1923
1923
  value: iA
1924
1924
  });
1925
1925
  }
1926
- }, lA = k1(e), LA = mA(() => g ? fs(g, x) : null, [g, x]), hA = (iA, bA) => {
1926
+ }, lA = k1(e), LA = mA(() => g ? fs(g, x) : null, [g, x]), hA = (iA, vA) => {
1927
1927
  if (Z.current && E.id) {
1928
1928
  const wA = document.getElementById(E.id);
1929
1929
  if (wA) {
1930
- const NA = Array.isArray(bA) ? bA.map((Vt) => Vt.value) : bA?.value;
1930
+ const NA = Array.isArray(vA) ? vA.map((Vt) => Vt.value) : vA?.value;
1931
1931
  wA.dataset.selectedValue = JSON.stringify(NA);
1932
1932
  const ne = new Event("change", { bubbles: !0 });
1933
1933
  Object.defineProperty(ne, "target", {
@@ -1949,7 +1949,7 @@ const k1 = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
1949
1949
  const wA = Array.isArray(iA) ? iA : [iA];
1950
1950
  b?.(wA?.map((NA) => ({ label: NA, value: NA })));
1951
1951
  } else
1952
- b?.(bA);
1952
+ b?.(vA);
1953
1953
  }, dA = D1({
1954
1954
  options: a,
1955
1955
  value: e,
@@ -1964,25 +1964,25 @@ const k1 = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
1964
1964
  );
1965
1965
  }, [lA, dA, t]), gA = () => {
1966
1966
  !t || t !== "multiple" || !b || b(tA ? [] : dA);
1967
- }, fA = vA((iA) => {
1967
+ }, fA = bA((iA) => {
1968
1968
  if (!iA) return;
1969
- const bA = new Event("submit", { bubbles: !0, cancelable: !0 });
1970
- iA.dispatchEvent(bA);
1969
+ const vA = new Event("submit", { bubbles: !0, cancelable: !0 });
1970
+ iA.dispatchEvent(vA);
1971
1971
  const wA = iA.querySelector('button[type="submit"]');
1972
1972
  wA && wA.click();
1973
- }, []), OA = vA((iA) => {
1973
+ }, []), OA = bA((iA) => {
1974
1974
  if (iA.key === "Enter" && !_ && lA) {
1975
1975
  iA.preventDefault(), iA.stopPropagation();
1976
- const bA = iA.currentTarget.closest("form");
1977
- fA(bA);
1976
+ const vA = iA.currentTarget.closest("form");
1977
+ fA(vA);
1978
1978
  }
1979
- }, [_, lA, fA]), SA = vA(
1979
+ }, [_, lA, fA]), SA = bA(
1980
1980
  (iA) => {
1981
- const { label: bA, value: wA, onClose: NA } = iA, Pe = dA.find((Ee) => String(Ee.value) === String(wA))?.color || "blue";
1981
+ const { label: vA, value: wA, onClose: NA } = iA, Pe = dA.find((Ee) => String(Ee.value) === String(wA))?.color || "blue";
1982
1982
  return /* @__PURE__ */ r("div", { className: "cursor-pointer me-1 inline-flex", children: /* @__PURE__ */ r(
1983
- jA,
1983
+ RA,
1984
1984
  {
1985
- label: bA,
1985
+ label: vA,
1986
1986
  color: Pe,
1987
1987
  size: "sm",
1988
1988
  onMouseDown: (Ee) => {
@@ -1996,7 +1996,7 @@ const k1 = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
1996
1996
  ) });
1997
1997
  },
1998
1998
  [dA, D]
1999
- ), pe = vA((iA) => {
1999
+ ), pe = bA((iA) => {
2000
2000
  AA(iA), (s || LA)?.(iA);
2001
2001
  }, [s, LA]);
2002
2002
  return /* @__PURE__ */ w(
@@ -2091,7 +2091,7 @@ const k1 = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
2091
2091
  mode: t,
2092
2092
  value: lA,
2093
2093
  onChange: hA,
2094
- filterOption: g ? h : (iA, bA) => (bA?.label || "")?.toLowerCase()?.includes(iA?.toLowerCase()),
2094
+ filterOption: g ? h : (iA, vA) => (vA?.label || "")?.toLowerCase()?.includes(iA?.toLowerCase()),
2095
2095
  showSearch: !0,
2096
2096
  onSearch: pe || void 0,
2097
2097
  onPopupScroll: m,
@@ -2114,22 +2114,22 @@ const k1 = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
2114
2114
  options: dA.map(
2115
2115
  ({
2116
2116
  label: iA,
2117
- value: bA,
2117
+ value: vA,
2118
2118
  color: wA,
2119
2119
  ...NA
2120
2120
  }) => ({
2121
2121
  label: String(iA),
2122
- value: String(bA),
2123
- key: String(bA),
2124
- id: String(bA),
2122
+ value: String(vA),
2123
+ key: String(vA),
2124
+ id: String(vA),
2125
2125
  color: wA,
2126
2126
  ...NA
2127
2127
  })
2128
2128
  ),
2129
2129
  optionRender: (iA) => {
2130
- const bA = iA?.data?.fullname;
2131
- if (bA && L) {
2132
- const [wA, NA] = bA.split(" ");
2130
+ const vA = iA?.data?.fullname;
2131
+ if (vA && L) {
2132
+ const [wA, NA] = vA.split(" ");
2133
2133
  return /* @__PURE__ */ w("div", { className: "flex items-center justify-start gap-1", children: [
2134
2134
  /* @__PURE__ */ r(
2135
2135
  L,
@@ -2154,7 +2154,7 @@ const k1 = (A) => Array.isArray(A) ? A.map((e) => typeof e == "string" || typeof
2154
2154
  yA,
2155
2155
  {
2156
2156
  placement: "top",
2157
- title: iA.length > 3 ? iA.slice(0, 3).map(({ label: bA }) => bA).join(", ") + "..." : iA.map(({ label: bA }) => bA).join(", "),
2157
+ title: iA.length > 3 ? iA.slice(0, 3).map(({ label: vA }) => vA).join(", ") + "..." : iA.map(({ label: vA }) => vA).join(", "),
2158
2158
  children: /* @__PURE__ */ w("span", { children: [
2159
2159
  "+",
2160
2160
  iA.length,
@@ -2698,7 +2698,7 @@ const Un = () => {
2698
2698
  children: [
2699
2699
  /* @__PURE__ */ r(qA, { label: e || "", required: c || !1 }),
2700
2700
  /* @__PURE__ */ r(re, { labels: p }),
2701
- f && /* @__PURE__ */ r(RA, { placement: "top", title: f, children: /* @__PURE__ */ r("div", { className: "cursor-pointer", children: /* @__PURE__ */ r(te, {}) }) })
2701
+ f && /* @__PURE__ */ r(QA, { placement: "top", title: f, children: /* @__PURE__ */ r("div", { className: "cursor-pointer", children: /* @__PURE__ */ r(te, {}) }) })
2702
2702
  ]
2703
2703
  }
2704
2704
  ),
@@ -3640,7 +3640,7 @@ const q1 = (A, e, t, n = "medium") => {
3640
3640
  className: "cursor-pointer",
3641
3641
  onClick: W,
3642
3642
  type: "button",
3643
- children: /* @__PURE__ */ r(RA, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ r(Le, { className: "text-primary-600", sx: { fontSize: 16 } }) })
3643
+ children: /* @__PURE__ */ r(QA, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ r(Le, { className: "text-primary-600", sx: { fontSize: 16 } }) })
3644
3644
  }
3645
3645
  ) : null
3646
3646
  ] }),
@@ -3848,7 +3848,7 @@ const h7 = (A) => {
3848
3848
  isFlowAvailable: v = !0,
3849
3849
  shortcuts: y
3850
3850
  }) => {
3851
- const k = vA(
3851
+ const k = bA(
3852
3852
  (D) => {
3853
3853
  o && o(), D.preventDefault(), e?.(D), u && D.stopPropagation();
3854
3854
  },
@@ -3862,7 +3862,7 @@ const h7 = (A) => {
3862
3862
  /* @__PURE__ */ r("span", { className: "bg-yellow-300 dark:bg-primary-100 dark:text-black-900 rounded-sm", children: O[1] }),
3863
3863
  O?.slice(2)?.join("")
3864
3864
  ] });
3865
- }, z = vA(
3865
+ }, z = bA(
3866
3866
  (D) => {
3867
3867
  f?.(), D.stopPropagation();
3868
3868
  },
@@ -4250,7 +4250,7 @@ const nn = (A, e) => {
4250
4250
  className: "cursor-pointer",
4251
4251
  onClick: () => I(B(t)),
4252
4252
  type: "button",
4253
- children: /* @__PURE__ */ r(RA, { placement: "top", title: L("Add to document"), children: /* @__PURE__ */ r(
4253
+ children: /* @__PURE__ */ r(QA, { placement: "top", title: L("Add to document"), children: /* @__PURE__ */ r(
4254
4254
  Le,
4255
4255
  {
4256
4256
  className: "text-primary-600",
@@ -4968,7 +4968,7 @@ const MA = /* @__PURE__ */ Be(G1), { RangePicker: ba } = tn, B1 = {
4968
4968
  }
4969
4969
  }
4970
4970
  });
4971
- const P = vA(
4971
+ const P = bA(
4972
4972
  (S) => {
4973
4973
  const [T, O] = [z(a), z(i)];
4974
4974
  return p ? T ? S.isBefore(T.startOf("day")) || S.isAfter(T.add(p, "day").endOf("day")) : O ? S.isBefore(O.subtract(p, "day").startOf("day")) || S.isAfter(O.endOf("day")) : !1 : !1;
@@ -5457,7 +5457,7 @@ const h0 = "MM/DD/YYYY", Fr = "MM/DD/YYYY - hh:mm A", Ca = "YYYY-MM-DD", ka = "Y
5457
5457
  B && _(B);
5458
5458
  }
5459
5459
  });
5460
- const Y = vA(
5460
+ const Y = bA(
5461
5461
  (I) => {
5462
5462
  if (!D) return;
5463
5463
  let B = I || "";
@@ -5476,12 +5476,12 @@ const h0 = "MM/DD/YYYY", Fr = "MM/DD/YYYY - hh:mm A", Ca = "YYYY-MM-DD", ka = "Y
5476
5476
  });
5477
5477
  },
5478
5478
  [D, h, P, s, j]
5479
- ), Q = vA(() => {
5479
+ ), Q = bA(() => {
5480
5480
  const I = document.getElementsByClassName(
5481
5481
  "ant-picker-footer"
5482
5482
  )[0];
5483
5483
  I && (I.style.display = "none");
5484
- }, []), J = vA(
5484
+ }, []), J = bA(
5485
5485
  (I) => {
5486
5486
  if (!v) {
5487
5487
  const B = s ? ka : Ca;
@@ -5524,7 +5524,7 @@ const h0 = "MM/DD/YYYY", Fr = "MM/DD/YYYY - hh:mm A", Ca = "YYYY-MM-DD", ka = "Y
5524
5524
  l(null);
5525
5525
  },
5526
5526
  [v, l, s, E, j]
5527
- ), Z = vA(
5527
+ ), Z = bA(
5528
5528
  (I) => {
5529
5529
  if (!I) return null;
5530
5530
  if (!v)
@@ -5549,7 +5549,7 @@ const h0 = "MM/DD/YYYY", Fr = "MM/DD/YYYY - hh:mm A", Ca = "YYYY-MM-DD", ka = "Y
5549
5549
  }
5550
5550
  },
5551
5551
  [v, j, s]
5552
- ), _ = vA(
5552
+ ), _ = bA(
5553
5553
  (I) => {
5554
5554
  if (I?.isValid() || I === null) {
5555
5555
  L(I);
@@ -5680,7 +5680,7 @@ const h0 = "MM/DD/YYYY", Fr = "MM/DD/YYYY - hh:mm A", Ca = "YYYY-MM-DD", ka = "Y
5680
5680
  className: "cursor-pointer",
5681
5681
  onClick: () => Y(e),
5682
5682
  type: "button",
5683
- children: /* @__PURE__ */ r(RA, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ r(
5683
+ children: /* @__PURE__ */ r(QA, { placement: "top", title: O("Add to document"), children: /* @__PURE__ */ r(
5684
5684
  Le,
5685
5685
  {
5686
5686
  className: "text-primary-600",
@@ -5932,7 +5932,7 @@ const y0 = CA(
5932
5932
  className: "cursor-pointer",
5933
5933
  onClick: () => _(n?.toString() || ""),
5934
5934
  type: "button",
5935
- children: /* @__PURE__ */ r(RA, { placement: "top", title: M("Add to document"), children: /* @__PURE__ */ r(
5935
+ children: /* @__PURE__ */ r(QA, { placement: "top", title: M("Add to document"), children: /* @__PURE__ */ r(
5936
5936
  Le,
5937
5937
  {
5938
5938
  sx: {
@@ -6062,7 +6062,7 @@ const EA = ({
6062
6062
  tooltipShortcuts: x,
6063
6063
  theme: h = "light"
6064
6064
  }) => {
6065
- const m = vA(() => {
6065
+ const m = bA(() => {
6066
6066
  switch (e) {
6067
6067
  case "outline":
6068
6068
  return k();
@@ -6073,14 +6073,14 @@ const EA = ({
6073
6073
  default:
6074
6074
  return y();
6075
6075
  }
6076
- }, [e, A, n, h]), v = vA(() => {
6076
+ }, [e, A, n, h]), v = bA(() => {
6077
6077
  switch (e) {
6078
6078
  case "dashed":
6079
6079
  return C();
6080
6080
  default:
6081
6081
  return {};
6082
6082
  }
6083
- }, [e, A, n, h]), y = vA(() => {
6083
+ }, [e, A, n, h]), y = bA(() => {
6084
6084
  switch (A) {
6085
6085
  case "primary":
6086
6086
  return "bg-primary-600 text-white focus:border-primary-200 hover:bg-primary-700 disabled:opacity-60";
@@ -6103,7 +6103,7 @@ const EA = ({
6103
6103
  default:
6104
6104
  return "bg-white dark:bg-black-800 text-neutral-900 dark:text-white border-white border hover:bg-neutral-100 dark:hover:bg-black-600 disabled:opacity-60";
6105
6105
  }
6106
- }, [A, n, h]), k = vA(() => {
6106
+ }, [A, n, h]), k = bA(() => {
6107
6107
  switch (A) {
6108
6108
  case "primary":
6109
6109
  return "text-primary-700 dark:text-primary-600 border-primary-700 border dark:border-primary-600 hover:bg-primary-100 disabled:opacity-60";
@@ -6120,7 +6120,7 @@ const EA = ({
6120
6120
  default:
6121
6121
  return "bg-white dark:bg-black-800 text-neutral-900 dark:text-white border-neutral-300 dark:border-neutral-700 border hover:bg-neutral-100 dark:hover:bg-black-600 disabled:opacity-60";
6122
6122
  }
6123
- }, [A, h]), N = vA(() => {
6123
+ }, [A, h]), N = bA(() => {
6124
6124
  switch (A) {
6125
6125
  case "primary":
6126
6126
  return "text-primary-700 dark:text-primary-600 border border-transparent dark:border-transparent hover:text-primary-700 disabled:opacity-60";
@@ -6135,14 +6135,14 @@ const EA = ({
6135
6135
  default:
6136
6136
  return "text-neutral-900 dark:text-white border border-transparent dark:border-transparent hover:text-[#667085] disabled:opacity-60";
6137
6137
  }
6138
- }, [A, h]), z = vA(() => {
6138
+ }, [A, h]), z = bA(() => {
6139
6139
  switch (A) {
6140
6140
  case "primary":
6141
6141
  return "bg-primary-50 dark:bg-black-700 text-primary-600 dark:text-primary-600 disabled:text-primary-100 hover:bg-primary-100 dark:hover:bg-black-600";
6142
6142
  default:
6143
6143
  return "bg-primary-50 dark:bg-black-700 text-primary-600 dark:text-primary-600 disabled:text-primary-100 hover:bg-primary-100 dark:hover:bg-black-600";
6144
6144
  }
6145
- }, [A, h]), C = vA(() => {
6145
+ }, [A, h]), C = bA(() => {
6146
6146
  switch (A) {
6147
6147
  case "primary":
6148
6148
  return {
@@ -6154,7 +6154,7 @@ const EA = ({
6154
6154
  default:
6155
6155
  return {};
6156
6156
  }
6157
- }, [A, h]), H = vA(() => {
6157
+ }, [A, h]), H = bA(() => {
6158
6158
  if (!e || e === "filled")
6159
6159
  switch (A) {
6160
6160
  case "primary":
@@ -6682,7 +6682,7 @@ const EA = ({
6682
6682
  console.warn("No formatted code received from service");
6683
6683
  } catch (g) {
6684
6684
  const x = g?.message || ae.formatFailed;
6685
- console.warn("Code formatting failed:", x), KA.error(x, {
6685
+ console.warn("Code formatting failed:", x), jA.error(x, {
6686
6686
  toastId: x
6687
6687
  });
6688
6688
  } finally {
@@ -6977,7 +6977,7 @@ const Fi = St(null), H0 = Fi.Provider, Lt = () => {
6977
6977
  t.some((i) => n !== i && n.startsWith(i + ".")) || t.push(n);
6978
6978
  return t;
6979
6979
  }, N0 = (A) => !A || A.trim() === "" ? {} : JSON.parse(A), L0 = (A, e) => {
6980
- const t = vA(
6980
+ const t = bA(
6981
6981
  (i, o) => {
6982
6982
  const l = [], s = (c, d) => {
6983
6983
  Array.isArray(c) ? c.forEach((u, f) => {
@@ -6991,7 +6991,7 @@ const Fi = St(null), H0 = Fi.Provider, Lt = () => {
6991
6991
  return s(o, i), l;
6992
6992
  },
6993
6993
  []
6994
- ), n = vA(
6994
+ ), n = bA(
6995
6995
  (i, o, l, s) => {
6996
6996
  if (o) {
6997
6997
  const c = [i];
@@ -7010,7 +7010,7 @@ const Fi = St(null), H0 = Fi.Provider, Lt = () => {
7010
7010
  }
7011
7011
  },
7012
7012
  [A, e, t]
7013
- ), a = vA(
7013
+ ), a = bA(
7014
7014
  (i) => A?.includes(i) || !1,
7015
7015
  [A]
7016
7016
  );
@@ -10881,7 +10881,7 @@ const we = V(
10881
10881
  `), navigator?.clipboard?.writeText(tA).then(() => {
10882
10882
  }).catch((gA) => {
10883
10883
  const fA = gA;
10884
- KA.error(
10884
+ jA.error(
10885
10885
  fA?.message || ae.copyFailure("Python Code"),
10886
10886
  {
10887
10887
  toastId: ae.copyFailure("Python Code")
@@ -10890,7 +10890,7 @@ const we = V(
10890
10890
  });
10891
10891
  } catch (tA) {
10892
10892
  const gA = tA;
10893
- KA.error(
10893
+ jA.error(
10894
10894
  gA?.message || ae.copyFailure("Python Code"),
10895
10895
  {
10896
10896
  toastId: ae.copyFailure("Python Code")
@@ -10903,7 +10903,7 @@ const we = V(
10903
10903
  navigator?.clipboard?.writeText(gA);
10904
10904
  } catch (tA) {
10905
10905
  const gA = tA;
10906
- KA.error(gA?.message || ae.copyFailure("JSON Code"), {
10906
+ jA.error(gA?.message || ae.copyFailure("JSON Code"), {
10907
10907
  toastId: ae.copyFailure("JSON Code")
10908
10908
  });
10909
10909
  }
@@ -10929,7 +10929,7 @@ const we = V(
10929
10929
  ), document.body.appendChild(fA), fA.click(), document.body.removeChild(fA), URL.revokeObjectURL(gA);
10930
10930
  } catch (tA) {
10931
10931
  const gA = tA;
10932
- KA.error(
10932
+ jA.error(
10933
10933
  gA?.message || ae.copyFailure("Code download"),
10934
10934
  {
10935
10935
  toastId: ae.copyFailure("Code download")
@@ -11123,7 +11123,7 @@ const we = V(
11123
11123
  t(JSON.stringify(p)), e();
11124
11124
  } catch (p) {
11125
11125
  const b = p instanceof Error ? p.message : "Invalid JSON";
11126
- KA.error(b, {
11126
+ jA.error(b, {
11127
11127
  toastId: "Invalid JSON"
11128
11128
  });
11129
11129
  }
@@ -11400,7 +11400,7 @@ const Qd = CA(
11400
11400
  className: "cursor-pointer",
11401
11401
  onClick: () => j(t?.toString()),
11402
11402
  type: "button",
11403
- children: /* @__PURE__ */ r(RA, { placement: "top", title: L("Add to document"), children: /* @__PURE__ */ r(
11403
+ children: /* @__PURE__ */ r(QA, { placement: "top", title: L("Add to document"), children: /* @__PURE__ */ r(
11404
11404
  Le,
11405
11405
  {
11406
11406
  className: "text-primary-600",
@@ -11902,7 +11902,7 @@ const y7 = ({
11902
11902
  height: 240,
11903
11903
  children: ({ columnIndex: l, rowIndex: s, style: c }) => {
11904
11904
  const d = s * 5 + l, u = i?.[d];
11905
- return u ? /* @__PURE__ */ r("div", { style: { ...c, padding: "4px" }, children: /* @__PURE__ */ r(RA, { title: Bd(u), children: /* @__PURE__ */ r(
11905
+ return u ? /* @__PURE__ */ r("div", { style: { ...c, padding: "4px" }, children: /* @__PURE__ */ r(QA, { title: Bd(u), children: /* @__PURE__ */ r(
11906
11906
  Ms,
11907
11907
  {
11908
11908
  className: V(
@@ -12185,7 +12185,7 @@ const Wn = ({
12185
12185
  $(() => {
12186
12186
  v(l);
12187
12187
  }, [n, l]);
12188
- const y = vA(
12188
+ const y = bA(
12189
12189
  (z) => {
12190
12190
  if (h.current)
12191
12191
  if (s === "right") {
@@ -12195,7 +12195,7 @@ const Wn = ({
12195
12195
  z.clientX > 256 && v(z.clientX);
12196
12196
  },
12197
12197
  [s, v]
12198
- ), k = vA(() => {
12198
+ ), k = bA(() => {
12199
12199
  h.current && (h.current = !1);
12200
12200
  }, []);
12201
12201
  $(() => (document.addEventListener("mousemove", y), document.addEventListener("mouseup", k), () => {
@@ -12365,14 +12365,14 @@ const k7 = ({
12365
12365
  children: i
12366
12366
  }
12367
12367
  ),
12368
- g.map((m) => /* @__PURE__ */ r("div", { className: "flex items-center py-1 cursor-pointer", children: /* @__PURE__ */ r(jA, { label: m?.label, color: m?.color || "blue", size: e, icon: a }) }, m?.id || m.label))
12368
+ g.map((m) => /* @__PURE__ */ r("div", { className: "flex items-center py-1 cursor-pointer", children: /* @__PURE__ */ r(RA, { label: m?.label, color: m?.color || "blue", size: e, icon: a }) }, m?.id || m.label))
12369
12369
  ] })
12370
12370
  ] });
12371
12371
  return /* @__PURE__ */ r("div", { ref: s, className: `w-full ${t}`, children: /* @__PURE__ */ w("div", { className: `inline-flex ${l ? "flex-nowrap" : "flex-wrap"} gap-2 items-center`, children: [
12372
12372
  b.map((m, v) => {
12373
12373
  const y = x.get(v) || o;
12374
12374
  return /* @__PURE__ */ r(
12375
- jA,
12375
+ RA,
12376
12376
  {
12377
12377
  label: m?.label,
12378
12378
  color: m?.color || "blue",
@@ -12400,7 +12400,7 @@ const k7 = ({
12400
12400
  className: "cursor-pointer inline-flex items-center gap-1 border-0 bg-transparent p-0",
12401
12401
  onMouseDown: (m) => m.stopPropagation(),
12402
12402
  "aria-label": `Show ${g.length} more tags`,
12403
- children: /* @__PURE__ */ r(jA, { label: `+${g.length} more`, color: "green", size: e })
12403
+ children: /* @__PURE__ */ r(RA, { label: `+${g.length} more`, color: "green", size: e })
12404
12404
  }
12405
12405
  )
12406
12406
  }
@@ -12645,7 +12645,7 @@ const k7 = ({
12645
12645
  /* @__PURE__ */ r(re, { labels: i?.map((Z) => ({ ...Z, color: Z.color || "primary" })) }),
12646
12646
  h && /* @__PURE__ */ r(ge, { sx: { fontSize: 16, color: "var(--color-primary-600)", rotate: "15deg" } }),
12647
12647
  i && i.length > 0 && /* @__PURE__ */ r(PA, { children: i.map((Z) => /* @__PURE__ */ r(
12648
- jA,
12648
+ RA,
12649
12649
  {
12650
12650
  label: Z.label,
12651
12651
  color: Z.color,
@@ -13560,16 +13560,16 @@ const vc = ({ size: A = 24, fill: e = "#12B76A" }) => /* @__PURE__ */ r(
13560
13560
  ...u
13561
13561
  }
13562
13562
  ), D7 = {
13563
- success: (A, e) => KA.success(A, e),
13564
- error: (A, e) => KA.error(A, e),
13565
- warning: (A, e) => KA.warning(A, e),
13566
- info: (A, e) => KA.info(A, e),
13563
+ success: (A, e) => jA.success(A, e),
13564
+ error: (A, e) => jA.error(A, e),
13565
+ warning: (A, e) => jA.warning(A, e),
13566
+ info: (A, e) => jA.info(A, e),
13567
13567
  // Custom type for in-progress
13568
- inProgress: (A, e) => KA(A, { ...e, type: "in-progress" }),
13569
- dismiss: (A) => KA.dismiss(A),
13570
- isActive: (A) => KA.isActive(A)
13568
+ inProgress: (A, e) => jA(A, { ...e, type: "in-progress" }),
13569
+ dismiss: (A) => jA.dismiss(A),
13570
+ isActive: (A) => jA.isActive(A)
13571
13571
  }, S7 = () => {
13572
- const [A, e] = F("light"), [t, n] = F("vs"), a = vA((i) => {
13572
+ const [A, e] = F("light"), [t, n] = F("vs"), a = bA((i) => {
13573
13573
  n(i), e(i === "vs-dark" ? "dark" : "light");
13574
13574
  }, []);
13575
13575
  return {
@@ -13727,7 +13727,7 @@ const vc = ({ size: A = 24, fill: e = "#12B76A" }) => /* @__PURE__ */ r(
13727
13727
  u?.();
13728
13728
  return;
13729
13729
  }
13730
- KA.success(ae.deleteSuccess("Section"), {
13730
+ jA.success(ae.deleteSuccess("Section"), {
13731
13731
  toastId: ae.deleteSuccess("Section")
13732
13732
  }), t?.();
13733
13733
  }, N = () => {
@@ -15643,14 +15643,14 @@ const Au = ({
15643
15643
  }
15644
15644
  );
15645
15645
  return l?.link ? /* @__PURE__ */ r(
15646
- RA,
15646
+ QA,
15647
15647
  {
15648
15648
  title: a[s] ? l?.title : "",
15649
15649
  placement: "bottom",
15650
15650
  children: /* @__PURE__ */ r(Pi, { to: l.link, className: "block truncate", children: d })
15651
15651
  }
15652
15652
  ) : /* @__PURE__ */ r(
15653
- RA,
15653
+ QA,
15654
15654
  {
15655
15655
  title: a[s] ? l?.title : "",
15656
15656
  placement: "bottom",
@@ -15817,7 +15817,7 @@ const ja = (A, e) => {
15817
15817
  );
15818
15818
  };
15819
15819
  return /* @__PURE__ */ r("div", { style: e, children: i(A) });
15820
- }, QA = cA.memo(iu), ou = () => {
15820
+ }, KA = cA.memo(iu), ou = () => {
15821
15821
  const A = mA(
15822
15822
  () => ({
15823
15823
  direction: "column",
@@ -15997,7 +15997,7 @@ const ja = (A, e) => {
15997
15997
  }),
15998
15998
  []
15999
15999
  );
16000
- return /* @__PURE__ */ r(QA, { grid: A });
16000
+ return /* @__PURE__ */ r(KA, { grid: A });
16001
16001
  }, W7 = cA.memo(ou), lu = ({ rows: A = 3 }) => {
16002
16002
  const e = mA(
16003
16003
  () => ({
@@ -16032,7 +16032,7 @@ const ja = (A, e) => {
16032
16032
  }),
16033
16033
  []
16034
16034
  );
16035
- return /* @__PURE__ */ r(QA, { grid: e });
16035
+ return /* @__PURE__ */ r(KA, { grid: e });
16036
16036
  }, F7 = cA.memo(lu), su = () => {
16037
16037
  const A = mA(
16038
16038
  () => ({
@@ -16067,7 +16067,7 @@ const ja = (A, e) => {
16067
16067
  }),
16068
16068
  []
16069
16069
  );
16070
- return /* @__PURE__ */ r(QA, { grid: A });
16070
+ return /* @__PURE__ */ r(KA, { grid: A });
16071
16071
  }, E7 = cA.memo(su), du = ({
16072
16072
  repeat: A = 1,
16073
16073
  lineHeight: e = "30px"
@@ -16086,7 +16086,7 @@ const ja = (A, e) => {
16086
16086
  }),
16087
16087
  []
16088
16088
  );
16089
- return /* @__PURE__ */ r(QA, { grid: t });
16089
+ return /* @__PURE__ */ r(KA, { grid: t });
16090
16090
  }, j7 = cA.memo(du), cu = ({ rows: A = 2 }) => {
16091
16091
  const e = mA(
16092
16092
  () => ({
@@ -16103,7 +16103,7 @@ const ja = (A, e) => {
16103
16103
  }),
16104
16104
  [A]
16105
16105
  );
16106
- return /* @__PURE__ */ r(QA, { grid: e });
16106
+ return /* @__PURE__ */ r(KA, { grid: e });
16107
16107
  }, R7 = cA.memo(cu), uu = Mn`
16108
16108
  0% {
16109
16109
  opacity: 0.5;
@@ -16186,7 +16186,7 @@ const ja = (A, e) => {
16186
16186
  }),
16187
16187
  [A, e, n, a]
16188
16188
  );
16189
- return /* @__PURE__ */ r(fu, { children: /* @__PURE__ */ r(QA, { grid: i }) });
16189
+ return /* @__PURE__ */ r(fu, { children: /* @__PURE__ */ r(KA, { grid: i }) });
16190
16190
  }, Q7 = cA.memo(pu), hu = () => {
16191
16191
  const A = mA(
16192
16192
  () => ({
@@ -16224,7 +16224,7 @@ const ja = (A, e) => {
16224
16224
  }),
16225
16225
  []
16226
16226
  );
16227
- return /* @__PURE__ */ r(QA, { grid: A });
16227
+ return /* @__PURE__ */ r(KA, { grid: A });
16228
16228
  }, K7 = cA.memo(hu), mu = ({ count: A = 3 }) => {
16229
16229
  const e = mA(
16230
16230
  () => ({
@@ -16264,7 +16264,7 @@ const ja = (A, e) => {
16264
16264
  }),
16265
16265
  [A]
16266
16266
  );
16267
- return /* @__PURE__ */ r(QA, { grid: e });
16267
+ return /* @__PURE__ */ r(KA, { grid: e });
16268
16268
  }, Y7 = cA.memo(mu), vu = Mn`
16269
16269
  0% {
16270
16270
  opacity: 0.5;
@@ -16359,7 +16359,7 @@ const ja = (A, e) => {
16359
16359
  }),
16360
16360
  []
16361
16361
  );
16362
- return /* @__PURE__ */ r(bu, { style: { width: A }, children: /* @__PURE__ */ r(QA, { grid: e }) });
16362
+ return /* @__PURE__ */ r(bu, { style: { width: A }, children: /* @__PURE__ */ r(KA, { grid: e }) });
16363
16363
  }, Z7 = cA.memo(gu), xu = ({ count: A = 3 }) => {
16364
16364
  const e = mA(
16365
16365
  () => ({
@@ -16474,7 +16474,7 @@ const ja = (A, e) => {
16474
16474
  }),
16475
16475
  [A]
16476
16476
  );
16477
- return /* @__PURE__ */ r(QA, { grid: e });
16477
+ return /* @__PURE__ */ r(KA, { grid: e });
16478
16478
  }, I7 = cA.memo(xu), yu = 5, G7 = () => {
16479
16479
  const A = mA(
16480
16480
  () => ({
@@ -16513,7 +16513,7 @@ const ja = (A, e) => {
16513
16513
  }),
16514
16514
  []
16515
16515
  );
16516
- return /* @__PURE__ */ r(QA, { grid: A });
16516
+ return /* @__PURE__ */ r(KA, { grid: A });
16517
16517
  }, wu = Mn`
16518
16518
  0% {
16519
16519
  opacity: 0.5;
@@ -16544,7 +16544,7 @@ const ja = (A, e) => {
16544
16544
  }),
16545
16545
  []
16546
16546
  );
16547
- return /* @__PURE__ */ r(Pu, { children: /* @__PURE__ */ r(QA, { grid: t }) });
16547
+ return /* @__PURE__ */ r(Pu, { children: /* @__PURE__ */ r(KA, { grid: t }) });
16548
16548
  }, B7 = cA.memo(Cu), ku = () => {
16549
16549
  const A = mA(
16550
16550
  () => ({
@@ -16578,7 +16578,7 @@ const ja = (A, e) => {
16578
16578
  }),
16579
16579
  []
16580
16580
  );
16581
- return /* @__PURE__ */ r(QA, { grid: A });
16581
+ return /* @__PURE__ */ r(KA, { grid: A });
16582
16582
  }, J7 = cA.memo(ku), $7 = () => {
16583
16583
  const A = mA(
16584
16584
  () => ({
@@ -16912,7 +16912,7 @@ const ja = (A, e) => {
16912
16912
  }),
16913
16913
  []
16914
16914
  );
16915
- return /* @__PURE__ */ r(QA, { grid: A });
16915
+ return /* @__PURE__ */ r(KA, { grid: A });
16916
16916
  }, _7 = () => {
16917
16917
  const A = mA(
16918
16918
  () => ({
@@ -16952,7 +16952,7 @@ const ja = (A, e) => {
16952
16952
  }),
16953
16953
  []
16954
16954
  );
16955
- return /* @__PURE__ */ r(QA, { grid: A });
16955
+ return /* @__PURE__ */ r(KA, { grid: A });
16956
16956
  }, A8 = ({ index: A = 0 }) => {
16957
16957
  const e = {
16958
16958
  hidden: { opacity: 0, y: 50, scale: 0.95 },
@@ -17076,7 +17076,7 @@ const ja = (A, e) => {
17076
17076
  }),
17077
17077
  [A]
17078
17078
  );
17079
- return /* @__PURE__ */ r(QA, { grid: e });
17079
+ return /* @__PURE__ */ r(KA, { grid: e });
17080
17080
  }, t8 = cA.memo(Hu), ur = ({
17081
17081
  LText: A,
17082
17082
  RText: e,
@@ -17140,7 +17140,7 @@ const Lo = ({
17140
17140
  className: s = "w-full",
17141
17141
  containerWidth: c
17142
17142
  }) => {
17143
- const d = vA((h) => h ? h.length * 8 + 20 : 0, []), u = vA(() => {
17143
+ const d = bA((h) => h ? h.length * 8 + 20 : 0, []), u = bA(() => {
17144
17144
  if (!c || !A?.length) return 0;
17145
17145
  const h = c, m = d("+ XX more") + 10;
17146
17146
  let v = 0, y = 0;
@@ -17155,7 +17155,7 @@ const Lo = ({
17155
17155
  }
17156
17156
  return Math.max(1, v);
17157
17157
  }, [c, A, d, t]), f = mA(() => c ? u() : 0, [c, u]), p = mA(() => A?.slice(0, f) || [], [A, f]), b = mA(() => A?.length > f, [A?.length, f]), g = mA(() => A?.length > 0 && b ? /* @__PURE__ */ r("div", { className: "flex flex-col gap-2 p-2 max-h-[300px] overflow-y-auto dark:bg-neutral-800", children: A?.slice(f, A?.length).map((h, m) => /* @__PURE__ */ r("div", { className: "w-fit cursor-pointer", children: /* @__PURE__ */ r(
17158
- jA,
17158
+ RA,
17159
17159
  {
17160
17160
  label: t(h),
17161
17161
  color: n(h),
@@ -17163,9 +17163,9 @@ const Lo = ({
17163
17163
  isHashColor: o
17164
17164
  },
17165
17165
  `tooltip-tag-${f + m}`
17166
- ) }, `tooltip-${f + m}`)) }) : null, [A, b, f, t, n, o, e]), x = vA(
17166
+ ) }, `tooltip-${f + m}`)) }) : null, [A, b, f, t, n, o, e]), x = bA(
17167
17167
  (h, m) => h.map((v, y) => /* @__PURE__ */ r(
17168
- jA,
17168
+ RA,
17169
17169
  {
17170
17170
  label: t(v),
17171
17171
  color: n(v),
@@ -17177,7 +17177,7 @@ const Lo = ({
17177
17177
  [a, t, n, o, e]
17178
17178
  );
17179
17179
  return /* @__PURE__ */ r("div", { className: s, children: b ? /* @__PURE__ */ r(
17180
- RA,
17180
+ QA,
17181
17181
  {
17182
17182
  title: g,
17183
17183
  placement: l,
@@ -17190,7 +17190,7 @@ const Lo = ({
17190
17190
  children: /* @__PURE__ */ w("div", { className: "flex gap-2 items-center cursor-pointer", children: [
17191
17191
  x(p, "display"),
17192
17192
  /* @__PURE__ */ r(
17193
- jA,
17193
+ RA,
17194
17194
  {
17195
17195
  label: `+${A.length - f} more`,
17196
17196
  color: i,
@@ -18516,7 +18516,7 @@ function M3(A) {
18516
18516
  N[y] = dA, S[y] = dA - U;
18517
18517
  }
18518
18518
  if (l) {
18519
- var kA, tA = y === "x" ? GA : BA, gA = y === "x" ? se : de, fA = N[k], OA = k === "y" ? "height" : "width", SA = fA + x[tA], pe = fA - x[gA], iA = [GA, BA].indexOf(h) !== -1, bA = (kA = P?.[k]) != null ? kA : 0, wA = iA ? SA : fA - z[OA] - C[OA] - bA + D.altAxis, NA = iA ? fA + z[OA] + C[OA] - bA - D.altAxis : pe, ne = p && iA ? r3(wA, fA, NA) : wt(p ? wA : SA, fA, p ? NA : pe);
18519
+ var kA, tA = y === "x" ? GA : BA, gA = y === "x" ? se : de, fA = N[k], OA = k === "y" ? "height" : "width", SA = fA + x[tA], pe = fA - x[gA], iA = [GA, BA].indexOf(h) !== -1, vA = (kA = P?.[k]) != null ? kA : 0, wA = iA ? SA : fA - z[OA] - C[OA] - vA + D.altAxis, NA = iA ? fA + z[OA] + C[OA] - vA - D.altAxis : pe, ne = p && iA ? r3(wA, fA, NA) : wt(p ? wA : SA, fA, p ? NA : pe);
18520
18520
  N[k] = ne, S[k] = ne - fA;
18521
18521
  }
18522
18522
  e.modifiersData[n] = S;
@@ -19125,15 +19125,15 @@ const s5 = ({ isOpen: A, onClose: e, anchorEl: t, placement: n = "right-start",
19125
19125
  const A = aA(null), e = aA(null), [t, n] = F({
19126
19126
  vertical: "bottom",
19127
19127
  horizontal: "left"
19128
- }), [a, i] = F(!1), o = vA(() => {
19128
+ }), [a, i] = F(!1), o = bA(() => {
19129
19129
  if (!A.current || !e.current) return;
19130
19130
  const c = A.current.getBoundingClientRect(), d = e.current.getBoundingClientRect(), u = window.innerWidth, p = window.innerHeight - c.bottom, b = c.top, g = u - c.left, x = c.right, h = p >= d.height || p >= b ? "bottom" : "top", m = g >= d.width || g >= x ? "left" : "right";
19131
19131
  n({ vertical: h, horizontal: m });
19132
- }, []), l = vA(() => {
19132
+ }, []), l = bA(() => {
19133
19133
  i(!0), setTimeout(() => {
19134
19134
  o();
19135
19135
  }, 0);
19136
- }, [o]), s = vA(() => {
19136
+ }, [o]), s = bA(() => {
19137
19137
  i(!1);
19138
19138
  }, []);
19139
19139
  return {
@@ -19278,7 +19278,7 @@ const s5 = ({ isOpen: A, onClose: e, anchorEl: t, placement: n = "right-start",
19278
19278
  label: "Team",
19279
19279
  content: /* @__PURE__ */ w("div", { className: "flex gap-2", children: [
19280
19280
  p?.teams?.length > 0 && /* @__PURE__ */ r(
19281
- jA,
19281
+ RA,
19282
19282
  {
19283
19283
  label: p?.teams[0]?.name,
19284
19284
  color: p?.teams[0]?.color || "#e38715",
@@ -19296,7 +19296,7 @@ const s5 = ({ isOpen: A, onClose: e, anchorEl: t, placement: n = "right-start",
19296
19296
  onMouseLeave: P,
19297
19297
  onClick: (J) => J.stopPropagation(),
19298
19298
  children: [
19299
- /* @__PURE__ */ r(jA, { label: `+ ${p?.teams?.length - 1} More`, color: "#004f08", size: "sm", isHashColor: !0 }, 1),
19299
+ /* @__PURE__ */ r(RA, { label: `+ ${p?.teams?.length - 1} More`, color: "#004f08", size: "sm", isHashColor: !0 }, 1),
19300
19300
  H && /* @__PURE__ */ r(
19301
19301
  "div",
19302
19302
  {
@@ -19312,7 +19312,7 @@ const s5 = ({ isOpen: A, onClose: e, anchorEl: t, placement: n = "right-start",
19312
19312
  ),
19313
19313
  onMouseEnter: D,
19314
19314
  onMouseLeave: P,
19315
- children: p?.teams?.slice(1)?.map((J, Z) => /* @__PURE__ */ r("div", { className: "my-2", children: /* @__PURE__ */ r(jA, { label: J?.name, color: J?.color || "#4A5568", size: "sm", isHashColor: !0, className: "w-fit" }, J?.id) }, J?.id || Z))
19315
+ children: p?.teams?.slice(1)?.map((J, Z) => /* @__PURE__ */ r("div", { className: "my-2", children: /* @__PURE__ */ r(RA, { label: J?.name, color: J?.color || "#4A5568", size: "sm", isHashColor: !0, className: "w-fit" }, J?.id) }, J?.id || Z))
19316
19316
  }
19317
19317
  )
19318
19318
  ]
@@ -19325,7 +19325,7 @@ const s5 = ({ isOpen: A, onClose: e, anchorEl: t, placement: n = "right-start",
19325
19325
  Jt,
19326
19326
  {
19327
19327
  label: "Role",
19328
- content: /* @__PURE__ */ r(jA, { label: p?.group, color: "#004094", size: "sm", isHashColor: !0 }, p?.group)
19328
+ content: /* @__PURE__ */ r(RA, { label: p?.group, color: "#004094", size: "sm", isHashColor: !0 }, p?.group)
19329
19329
  }
19330
19330
  ),
19331
19331
  p?.clearanceLevel && /* @__PURE__ */ r(
@@ -19333,7 +19333,7 @@ const s5 = ({ isOpen: A, onClose: e, anchorEl: t, placement: n = "right-start",
19333
19333
  {
19334
19334
  label: "Clearance Level",
19335
19335
  content: /* @__PURE__ */ r(
19336
- jA,
19336
+ RA,
19337
19337
  {
19338
19338
  label: `Level ${p?.clearanceLevel}`,
19339
19339
  color: "#b30000",
@@ -19594,7 +19594,7 @@ const m5 = ({ fill: A = "currentColor", size: e = 20, ...t }) => /* @__PURE__ */
19594
19594
  beforeUpload: (Q, J) => {
19595
19595
  if (Q.size > v) {
19596
19596
  const Z = Math.round(v / 1048576), _ = ae?.fileSizeLimit(String(Z), "MB") || `File size must be less than ${Z}MB`;
19597
- return KA?.error(_, { toastId: _ }), !1;
19597
+ return jA?.error(_, { toastId: _ }), !1;
19598
19598
  }
19599
19599
  if (m || D(Q), u)
19600
19600
  f?.(e || "field-file-upload"), S(J);
@@ -22439,7 +22439,7 @@ const af = Ut(
22439
22439
  visible: !1
22440
22440
  } : g)
22441
22441
  ));
22442
- }, u = vA(
22442
+ }, u = bA(
22443
22443
  (f) => {
22444
22444
  const p = structuredClone(n), b = p.find((g) => g.id === f);
22445
22445
  b && (b.visible = !1, a(p));
@@ -22872,7 +22872,7 @@ const pf = cA.memo(Go), hf = () => {
22872
22872
  m.current && (m.current.destroy(), m.current = null);
22873
22873
  };
22874
22874
  }, [v]);
22875
- const M = vA(
22875
+ const M = bA(
22876
22876
  (K) => {
22877
22877
  const Y = Hf(K.target.value);
22878
22878
  e(Y);
@@ -22884,9 +22884,9 @@ const pf = cA.memo(Go), hf = () => {
22884
22884
  y(!1);
22885
22885
  },
22886
22886
  [e]
22887
- ), U = vA(() => {
22887
+ ), U = bA(() => {
22888
22888
  b.current && (b.current.isFocused = !0), t?.();
22889
- }, [t]), L = vA(
22889
+ }, [t]), L = bA(
22890
22890
  (K) => {
22891
22891
  b.current && (b.current.isFocused = !1);
22892
22892
  const Y = K.relatedTarget;
@@ -22895,7 +22895,7 @@ const pf = cA.memo(Go), hf = () => {
22895
22895
  }, 200), n?.());
22896
22896
  },
22897
22897
  [n]
22898
- ), q = vA(
22898
+ ), q = bA(
22899
22899
  (K) => {
22900
22900
  if (!b.current) return;
22901
22901
  const Y = O.current, Q = Y.lastIndexOf("@");
@@ -22910,7 +22910,7 @@ const pf = cA.memo(Go), hf = () => {
22910
22910
  }
22911
22911
  },
22912
22912
  [e]
22913
- ), W = vA(
22913
+ ), W = bA(
22914
22914
  (K) => {
22915
22915
  const Y = P.current, Q = S.current, J = T.current;
22916
22916
  if (K.key === "Enter") {
@@ -22937,7 +22937,7 @@ const pf = cA.memo(Go), hf = () => {
22937
22937
  }
22938
22938
  },
22939
22939
  [q]
22940
- ), j = vA((K) => {
22940
+ ), j = bA((K) => {
22941
22941
  K.preventDefault();
22942
22942
  const Y = K.clipboardData.getData("text/plain");
22943
22943
  document.execCommand("insertText", !1, Y);
@@ -26259,7 +26259,7 @@ const S8 = ({
26259
26259
  }) => {
26260
26260
  const M = l6(), U = O ? M?.getTabSettings(O) : void 0, L = H ?? U?.tab_items, q = D ?? U?.tab_options, [W, j] = F(""), [E, K] = F(!1), [Y, Q] = F(0), [J, Z] = F([]), [_, I] = F([]), [B, AA] = F(null), [uA, lA] = F(null), [LA, hA] = F(!1), [dA, kA] = F(
26261
26261
  q ?? Cn
26262
- ), [tA, gA] = F(""), [fA, OA] = F("contains"), { showCounts: SA, lockOrder: pe, sortOrder: iA } = dA, { t: bA } = XA(), wA = aA(null), NA = aA(null), { measureText: ne } = s6(), Pe = mA(() => d6(), []), Vt = Ln(
26262
+ ), [tA, gA] = F(""), [fA, OA] = F("contains"), { showCounts: SA, lockOrder: pe, sortOrder: iA } = dA, { t: vA } = XA(), wA = aA(null), NA = aA(null), { measureText: ne } = s6(), Pe = mA(() => d6(), []), Vt = Ln(
26263
26263
  Qe(Ci, { activationConstraint: { distance: 5 } }),
26264
26264
  Qe(ki, { activationConstraint: { delay: 300, tolerance: 5 } }),
26265
26265
  Qe(Si, {})
@@ -26273,17 +26273,17 @@ const S8 = ({
26273
26273
  ), FA = mA(
26274
26274
  () => [...Aa].sort((R, sA) => R.is_pinned && !sA.is_pinned ? -1 : !R.is_pinned && sA.is_pinned ? 1 : 0),
26275
26275
  [Aa]
26276
- ), qt = Y < FA.length, Wt = c ? FA.length : qt ? Y : FA.length, Ft = FA.findIndex((R) => R.name === t) >= Wt, ea = J.length - Wt - (Ft ? 1 : 0), ut = vA(
26276
+ ), qt = Y < FA.length, Wt = c ? FA.length : qt ? Y : FA.length, Ft = FA.findIndex((R) => R.name === t) >= Wt, ea = J.length - Wt - (Ft ? 1 : 0), ut = bA(
26277
26277
  (R) => {
26278
26278
  Z(R), S?.(R), O && M?.persistTabSettings && M.persistTabSettings({ tab_type: O, tab_items: R });
26279
26279
  },
26280
26280
  [S, O, M]
26281
- ), fl = vA(
26281
+ ), fl = bA(
26282
26282
  (R) => {
26283
26283
  kA(R), P?.(R), O && M?.persistTabSettings && M.persistTabSettings({ tab_type: O, tab_options: R });
26284
26284
  },
26285
26285
  [P, O, M]
26286
- ), ta = (R) => R.is_pinned ? 32 : 0, Lr = vA(
26286
+ ), ta = (R) => R.is_pinned ? 32 : 0, Lr = bA(
26287
26287
  (R) => {
26288
26288
  if (!R) return;
26289
26289
  const sA = s ? 30 : 0, pA = SA ? 190 : 84, TA = o === "sm" ? 4 : 8, IA = 32;
@@ -26337,19 +26337,21 @@ const S8 = ({
26337
26337
  Y,
26338
26338
  ne
26339
26339
  ]
26340
- ), ft = vA(
26340
+ ), ft = bA(
26341
26341
  (R) => {
26342
26342
  if (!X) return;
26343
26343
  const sA = new URLSearchParams(window.location.search);
26344
26344
  return R === X.defaultLink ? sA.delete(X.key) : sA.set(X.key, R), X.onResolve?.(sA), `?${sA.toString()}`;
26345
26345
  },
26346
26346
  [X]
26347
- ), pl = d || !!X, hl = vA(
26347
+ ), pl = d || !!X, hl = bA(
26348
26348
  async (R) => {
26349
26349
  const sA = ft(R), pA = sA ? `${window.location.origin}${window.location.pathname}${sA}` : `${window.location.origin}${window.location.pathname}`;
26350
- await navigator.clipboard.writeText(pA), k?.(R, pA);
26350
+ await navigator.clipboard.writeText(pA), jA.success(vA("Link copied to clipboard"), {
26351
+ toastId: "Link copied to clipboard"
26352
+ }), k?.(R, pA);
26351
26353
  },
26352
- [ft, k]
26354
+ [ft, vA, k]
26353
26355
  ), pt = (R) => {
26354
26356
  if (K(!1), n?.(R), X && M?.navigate) {
26355
26357
  const sA = new URLSearchParams(window.location.search);
@@ -26397,7 +26399,7 @@ const S8 = ({
26397
26399
  {
26398
26400
  onClick: () => pt(R),
26399
26401
  icon: /* @__PURE__ */ r(Ns, { size: 18 }),
26400
- text: bA("Select Tab"),
26402
+ text: vA("Select Tab"),
26401
26403
  stopPropagation: !0,
26402
26404
  className: "text-black-900 dark:text-white"
26403
26405
  }
@@ -26410,7 +26412,7 @@ const S8 = ({
26410
26412
  {
26411
26413
  onClick: () => na(R, "left"),
26412
26414
  icon: /* @__PURE__ */ r(Ls, { size: 18 }),
26413
- text: bA("Move Up"),
26415
+ text: vA("Move Up"),
26414
26416
  stopPropagation: !0,
26415
26417
  isDisabled: pe,
26416
26418
  className: "text-black-900 dark:text-white"
@@ -26424,7 +26426,7 @@ const S8 = ({
26424
26426
  {
26425
26427
  onClick: () => na(R, "right"),
26426
26428
  icon: /* @__PURE__ */ r(zs, { size: 18 }),
26427
- text: bA("Move Down"),
26429
+ text: vA("Move Down"),
26428
26430
  stopPropagation: !0,
26429
26431
  isDisabled: pe,
26430
26432
  className: "text-black-900 dark:text-white"
@@ -26438,7 +26440,7 @@ const S8 = ({
26438
26440
  {
26439
26441
  onClick: () => hl(R),
26440
26442
  icon: /* @__PURE__ */ r(Fs, { size: 18 }),
26441
- text: bA("Copy Link"),
26443
+ text: vA("Copy Link"),
26442
26444
  stopPropagation: !0,
26443
26445
  className: "text-black-900 dark:text-white"
26444
26446
  }
@@ -26451,7 +26453,7 @@ const S8 = ({
26451
26453
  {
26452
26454
  onClick: () => ra(R),
26453
26455
  icon: /* @__PURE__ */ r(fa, { size: 18 }),
26454
- text: bA("Hide"),
26456
+ text: vA("Hide"),
26455
26457
  stopPropagation: !0,
26456
26458
  className: "text-black-900 dark:text-white"
26457
26459
  }
@@ -26464,7 +26466,7 @@ const S8 = ({
26464
26466
  {
26465
26467
  onClick: () => ml(R),
26466
26468
  icon: /* @__PURE__ */ r(fa, { size: 18 }),
26467
- text: bA("Unhide"),
26469
+ text: vA("Unhide"),
26468
26470
  stopPropagation: !0,
26469
26471
  className: "text-black-900 dark:text-white"
26470
26472
  }
@@ -26477,7 +26479,7 @@ const S8 = ({
26477
26479
  {
26478
26480
  onClick: () => Et(R),
26479
26481
  icon: IA ? /* @__PURE__ */ r(o1, { size: 17 }) : /* @__PURE__ */ r(Qt, { size: 16, strokeWidth: 0.6 }),
26480
- text: bA(IA ? "Unpin" : "Pin"),
26482
+ text: vA(IA ? "Unpin" : "Pin"),
26481
26483
  className: "text-black-900 dark:text-white",
26482
26484
  notVisible: !N
26483
26485
  }
@@ -26489,11 +26491,10 @@ const S8 = ({
26489
26491
  _A,
26490
26492
  {
26491
26493
  onClick: () => v?.(R),
26494
+ className: "text-black-900 dark:text-white",
26492
26495
  icon: /* @__PURE__ */ r(sn, {}),
26493
- text: bA("Edit"),
26494
- notVisible: !v,
26495
- stopPropagation: !0,
26496
- className: "text-black-900 dark:text-white"
26496
+ text: vA("Edit"),
26497
+ notVisible: !v
26497
26498
  }
26498
26499
  ),
26499
26500
  key: VA.EDIT
@@ -26505,7 +26506,7 @@ const S8 = ({
26505
26506
  onClick: () => y?.(R),
26506
26507
  className: "text-error-600",
26507
26508
  icon: /* @__PURE__ */ r(o6, { width: 18, height: 18, className: "text-error-600" }),
26508
- text: bA("Delete"),
26509
+ text: vA("Delete"),
26509
26510
  notVisible: !y
26510
26511
  }
26511
26512
  ),
@@ -26671,7 +26672,7 @@ const S8 = ({
26671
26672
  children: /* @__PURE__ */ r(
26672
26673
  YA,
26673
26674
  {
26674
- tooltip: bA("More"),
26675
+ tooltip: vA("More"),
26675
26676
  variant: "ghost",
26676
26677
  className: "!text-primary-500 hover:!bg-primary-100 dark:hover:!bg-primary-900",
26677
26678
  children: /* @__PURE__ */ r(pa, { sx: { fontSize: 20 } })
@@ -26684,7 +26685,7 @@ const S8 = ({
26684
26685
  onClick: () => pt(R),
26685
26686
  suffixRecord: a,
26686
26687
  selectedId: Pe,
26687
- icon: TA ? /* @__PURE__ */ r(yA, { title: bA("Unpin"), children: /* @__PURE__ */ r("span", { onClick: () => Et(R), children: /* @__PURE__ */ r(Qt, { size: 14, strokeWidth: 0.5 }) }) }) : b?.[R] ?? null
26688
+ icon: TA ? /* @__PURE__ */ r(yA, { title: vA("Unpin"), children: /* @__PURE__ */ r("span", { onClick: () => Et(R), children: /* @__PURE__ */ r(Qt, { size: 14, strokeWidth: 0.5 }) }) }) : b?.[R] ?? null
26688
26689
  }
26689
26690
  ) }, R)
26690
26691
  },
@@ -26716,7 +26717,7 @@ const S8 = ({
26716
26717
  href: ft(t),
26717
26718
  suffixRecord: a,
26718
26719
  selectedId: Pe,
26719
- icon: N && J.find((R) => R.name === t)?.is_pinned ? /* @__PURE__ */ r(yA, { title: bA("Pinned"), children: /* @__PURE__ */ r("span", { onClick: () => Et(t), children: /* @__PURE__ */ r(Qt, { size: 14, strokeWidth: 0.7 }) }) }) : b?.[t] ?? null
26720
+ icon: N && J.find((R) => R.name === t)?.is_pinned ? /* @__PURE__ */ r(yA, { title: vA("Pinned"), children: /* @__PURE__ */ r("span", { onClick: () => Et(t), children: /* @__PURE__ */ r(Qt, { size: 14, strokeWidth: 0.7 }) }) }) : b?.[t] ?? null
26720
26721
  }
26721
26722
  ) }, t) }, t) : null,
26722
26723
  (Y < FA.length && !c || je.length > 0) && ea > 0 ? /* @__PURE__ */ r(c6, { id: "more-tabs", children: /* @__PURE__ */ r(
@@ -27375,14 +27376,14 @@ export {
27375
27376
  e8 as SingleAppCardSkeleton,
27376
27377
  j7 as SingleLineLoader,
27377
27378
  Po as Skeleton,
27378
- QA as SkeletonGrid,
27379
+ KA as SkeletonGrid,
27379
27380
  _d as StatusColorMapping,
27380
27381
  c5 as StatusInfoRow,
27381
27382
  zu as Stepper,
27382
27383
  yt as TOGGLE_LABEL_DIRECTION,
27383
27384
  Ou as TabContent,
27384
27385
  L8 as Tabs,
27385
- jA as Tag,
27386
+ RA as Tag,
27386
27387
  Q7 as TaskCardLoader,
27387
27388
  ur as Text,
27388
27389
  Oi as TextAreaField,