@lax-wp/design-system 0.11.44 → 0.11.45

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,6 +1,6 @@
1
1
  import { jsx as A, jsxs as T, Fragment as ot } from "react/jsx-runtime";
2
2
  import { AnimatePresence as Rr, motion as st } from "framer-motion";
3
- import ke, { forwardRef as ct, useRef as oe, useState as X, useEffect as ne, useMemo as Pe, createElement as Gu, useCallback as ue, memo as Al, createContext as Oo, useContext as fr, useLayoutEffect as ul, useImperativeHandle as Eb, Suspense as SC, Fragment as mS } from "react";
3
+ import ke, { forwardRef as ct, useRef as ae, useState as X, useEffect as re, useMemo as Pe, createElement as Gu, useCallback as ue, memo as Al, createContext as Oo, useContext as fr, useLayoutEffect as ul, useImperativeHandle as Eb, Suspense as SC, Fragment as mS } from "react";
4
4
  import { useTranslation as Kt } from "react-i18next";
5
5
  import { Tooltip as tr, Select as EC, Skeleton as G1, Checkbox as gS, Dropdown as On, DatePicker as Y1, Modal as wC, Upload as bS, Popover as cl, Drawer as kC } from "antd";
6
6
  import { Link as wb, useLocation as TC } from "react-router-dom";
@@ -92,7 +92,7 @@ function ID() {
92
92
  }($c)), $c.exports;
93
93
  }
94
94
  var MD = ID();
95
- const U = /* @__PURE__ */ Fb(MD), ae = ({
95
+ const U = /* @__PURE__ */ Fb(MD), oe = ({
96
96
  children: t,
97
97
  variant: e = "regular",
98
98
  size: r = "medium",
@@ -154,9 +154,9 @@ const U = /* @__PURE__ */ Fb(MD), ae = ({
154
154
  );
155
155
  return /* @__PURE__ */ A("div", { className: f, onClick: n, style: s, children: t });
156
156
  };
157
- ae.displayName = "Typography";
157
+ oe.displayName = "Typography";
158
158
  const HD = ({ isConditional: t }) => /* @__PURE__ */ A("span", { className: `${t ? "text-yellow-500" : "text-red-500"}`, children: "*" }), Zt = ({ label: t, required: e, isRequiredConditional: r }) => /* @__PURE__ */ T(
159
- ae,
159
+ oe,
160
160
  {
161
161
  variant: "medium",
162
162
  size: "extra-small",
@@ -189,8 +189,8 @@ const HD = ({ isConditional: t }) => /* @__PURE__ */ A("span", { className: `${t
189
189
  inputStyle: g = {},
190
190
  inputProps: _
191
191
  }, y) => {
192
- const x = oe(null), [E, S] = X(0), w = () => a === "error" ? "border-red-300 focus:border-red-500 focus:ring-red-200" : a === "success" ? "border-green-300 focus:border-green-500 focus:ring-green-200" : a === "info" ? "border-blue-300 focus:border-blue-500 focus:ring-blue-200" : "border-neutral-200 dark:border-black-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20", k = () => a === "error" ? "text-red-500 dark:text-red-400" : a === "success" ? "text-green-500 dark:text-green-400" : a === "info" ? "text-blue-500 dark:text-blue-400" : "text-neutral-500 dark:text-black-100", O = t || `input-${d?.replace(/\s+/g, "-").toLowerCase()}`;
193
- ne(() => {
192
+ const x = ae(null), [E, S] = X(0), w = () => a === "error" ? "border-red-300 focus:border-red-500 focus:ring-red-200" : a === "success" ? "border-green-300 focus:border-green-500 focus:ring-green-200" : a === "info" ? "border-blue-300 focus:border-blue-500 focus:ring-blue-200" : "border-neutral-200 dark:border-black-600 focus:border-primary-500 dark:focus:border-primary-400 focus:ring-primary-200 dark:focus:ring-primary-400/20", k = () => a === "error" ? "text-red-500 dark:text-red-400" : a === "success" ? "text-green-500 dark:text-green-400" : a === "info" ? "text-blue-500 dark:text-blue-400" : "text-neutral-500 dark:text-black-100", O = t || `input-${d?.replace(/\s+/g, "-").toLowerCase()}`;
193
+ re(() => {
194
194
  if (h && x.current) {
195
195
  const N = new ResizeObserver((L) => {
196
196
  const R = L[0];
@@ -290,7 +290,7 @@ const HD = ({ isConditional: t }) => /* @__PURE__ */ A("span", { className: `${t
290
290
  exit: { opacity: 0, y: -10 },
291
291
  transition: { duration: 0.2 },
292
292
  children: /* @__PURE__ */ A(
293
- ae,
293
+ oe,
294
294
  {
295
295
  className: U("mt-1", k()),
296
296
  appearance: "custom",
@@ -787,7 +787,7 @@ const nn = ({ labels: t = [] }) => {
787
787
  onConfidenceScoreClick: te,
788
788
  ...j
789
789
  }, q) => {
790
- const { t: K } = Kt(), ie = !!(I && F?.color), Y = Q === "modified" && !i && !a && !ie, [Z, re] = X(!1), [J, ce] = X(!1), ze = (Ee) => {
790
+ const { t: K } = Kt(), ie = !!(I && F?.color), Y = Q === "modified" && !i && !a && !ie, [Z, ne] = X(!1), [J, ce] = X(!1), ze = (Ee) => {
791
791
  B && B({
792
792
  key: O,
793
793
  value: Ee
@@ -966,7 +966,7 @@ const nn = ({ labels: t = [] }) => {
966
966
  {
967
967
  className: "absolute inset-y-0 flex items-center cursor-pointer right-2",
968
968
  onClick: () => {
969
- re(!Z), p?.(!Z);
969
+ ne(!Z), p?.(!Z);
970
970
  },
971
971
  type: "button",
972
972
  children: Z ? /* @__PURE__ */ A(GD, { className: "text-gray-400", size: 16 }) : /* @__PURE__ */ A(YD, { className: "text-gray-400", size: 16 })
@@ -998,7 +998,7 @@ const nn = ({ labels: t = [] }) => {
998
998
  exit: { opacity: 0, y: -10 },
999
999
  transition: { duration: 0.2 },
1000
1000
  children: /* @__PURE__ */ A(
1001
- ae,
1001
+ oe,
1002
1002
  {
1003
1003
  className: "mt-1 text-error-500",
1004
1004
  appearance: "custom",
@@ -1017,7 +1017,7 @@ const nn = ({ labels: t = [] }) => {
1017
1017
  exit: { opacity: 0, y: -10 },
1018
1018
  transition: { duration: 0.2 },
1019
1019
  children: /* @__PURE__ */ A(
1020
- ae,
1020
+ oe,
1021
1021
  {
1022
1022
  className: "mt-1 text-success-500 dark:text-success-300",
1023
1023
  appearance: "custom",
@@ -1139,7 +1139,7 @@ const Oue = ct(
1139
1139
  }
1140
1140
  ),
1141
1141
  f && /* @__PURE__ */ T(
1142
- ae,
1142
+ oe,
1143
1143
  {
1144
1144
  className: "mt-0.5 text-right text-gray-600 dark:text-gray-400",
1145
1145
  appearance: "custom",
@@ -1173,7 +1173,7 @@ const Oue = ct(
1173
1173
  id: `${x}-message`,
1174
1174
  role: o === "error" ? "alert" : void 0,
1175
1175
  children: /* @__PURE__ */ A(
1176
- ae,
1176
+ oe,
1177
1177
  {
1178
1178
  className: U("mt-1", O()),
1179
1179
  appearance: "custom",
@@ -1384,7 +1384,7 @@ const Oue = ct(
1384
1384
  }
1385
1385
  ),
1386
1386
  p ? /* @__PURE__ */ T(
1387
- ae,
1387
+ oe,
1388
1388
  {
1389
1389
  className: "mt-0.5 text-right text-neutral-900 dark:text-white",
1390
1390
  appearance: "custom",
@@ -1406,7 +1406,7 @@ const Oue = ct(
1406
1406
  }
1407
1407
  ) : null,
1408
1408
  a && /* @__PURE__ */ A(
1409
- ae,
1409
+ oe,
1410
1410
  {
1411
1411
  className: "text-error-500 mt-1",
1412
1412
  appearance: "custom",
@@ -1508,16 +1508,16 @@ const br = ({
1508
1508
  MasterDataModal: te,
1509
1509
  parseMasterDataFormula: j
1510
1510
  }, q) => {
1511
- const { t: K } = Kt(), [ie, Y] = X(!1), [Z, re] = X(null), [J, ce] = X(!1), [ze, Ee] = X(""), [_e, me] = X(null), [ge, we] = X(!1), Se = oe(null), pe = q || Se;
1512
- ne(() => {
1511
+ const { t: K } = Kt(), [ie, Y] = X(!1), [Z, ne] = X(null), [J, ce] = X(!1), [ze, Ee] = X(""), [_e, me] = X(null), [ge, we] = X(!1), Se = ae(null), pe = q || Se;
1512
+ re(() => {
1513
1513
  const Ne = () => {
1514
1514
  const Fe = pe.current || Se.current;
1515
1515
  Fe && we(Fe.scrollWidth > Fe.clientWidth);
1516
1516
  };
1517
1517
  return Ne(), window.addEventListener("resize", Ne), () => window.removeEventListener("resize", Ne);
1518
- }, [Z, n]), ne(() => {
1519
- re(n);
1520
- }, [h, n]), ne(() => {
1518
+ }, [Z, n]), re(() => {
1519
+ ne(n);
1520
+ }, [h, n]), re(() => {
1521
1521
  Z !== null && Z !== n && i(Z, _e);
1522
1522
  }, [Z, _e]);
1523
1523
  const G = () => {
@@ -1525,13 +1525,13 @@ const br = ({
1525
1525
  }, Ae = (Ne) => {
1526
1526
  if (Ne.keyCode === 9 || Ne.key === "Enter") {
1527
1527
  const Fe = pe.current || Se.current;
1528
- Fe && (re(ze), Fe.blur());
1528
+ Fe && (ne(ze), Fe.blur());
1529
1529
  }
1530
1530
  }, Ce = (Ne, Fe) => {
1531
1531
  let ve = Ne;
1532
- d && j && (ve = j(d, Fe)), Ee(""), re(ve), G(), me(Fe);
1532
+ d && j && (ve = j(d, Fe)), Ee(""), ne(ve), G(), me(Fe);
1533
1533
  }, Xe = () => {
1534
- re(""), me(null);
1534
+ ne(""), me(null);
1535
1535
  }, Ze = (Ne) => {
1536
1536
  D && x && D({
1537
1537
  key: x,
@@ -1541,7 +1541,7 @@ const br = ({
1541
1541
  const Ne = "border h-[32px] text-sm rounded-lg block w-full p-2.5 pr-16 font-inter font-medium", Fe = a ? "border-red-300" : I && F?.color ? `border-${F?.color}-300` : "border-gray-300 dark:border-black-600", ve = "placeholder:text-neutral-900 dark:placeholder:text-black-400", Me = `${I && F?.color ? `bg-${F?.color}-50` : "bg-gray-200 dark:bg-black-600 "} ${g || "text-neutral-900 dark:text-black-200"}`;
1542
1542
  return `${Ne} ${Fe} ${Me} ${ve}`;
1543
1543
  }, We = () => Z !== null ? Z : d && j ? j(d, P) : n;
1544
- return ne(() => {
1544
+ return re(() => {
1545
1545
  J && !u && (Q?.(), ce(!1));
1546
1546
  }, [J, u, Q]), /* @__PURE__ */ T(
1547
1547
  "div",
@@ -1655,7 +1655,7 @@ const br = ({
1655
1655
  placeholder: r,
1656
1656
  className: tt(),
1657
1657
  onChange: (Ne) => {
1658
- i(Ne.target.value, _e), re(Ne.target?.value);
1658
+ i(Ne.target.value, _e), ne(Ne.target?.value);
1659
1659
  },
1660
1660
  onKeyDown: Ae,
1661
1661
  value: We(),
@@ -1703,7 +1703,7 @@ const br = ({
1703
1703
  )
1704
1704
  ] }),
1705
1705
  a && /* @__PURE__ */ A(
1706
- ae,
1706
+ oe,
1707
1707
  {
1708
1708
  className: "text-error-500 mt-1",
1709
1709
  appearance: "custom",
@@ -1805,7 +1805,7 @@ const JD = (t) => Array.isArray(t) ? t.map(
1805
1805
  (c.key === "Enter" || c.key === " ") && (c.preventDefault(), i());
1806
1806
  },
1807
1807
  children: /* @__PURE__ */ A(
1808
- ae,
1808
+ oe,
1809
1809
  {
1810
1810
  size: "small",
1811
1811
  variant: "semibold",
@@ -1865,8 +1865,8 @@ const JD = (t) => Array.isArray(t) ? t.map(
1865
1865
  isLiveField: ie = !1,
1866
1866
  ...Y
1867
1867
  }, Z) => {
1868
- const { t: re } = Kt(), [J, ce] = X(!1), ze = oe(null), [Ee, _e] = X(!1), [me, ge] = X("");
1869
- ne(() => {
1868
+ const { t: ne } = Kt(), [J, ce] = X(!1), ze = ae(null), [Ee, _e] = X(!1), [me, ge] = X("");
1869
+ re(() => {
1870
1870
  const ve = "select-field-scrollbar-styles";
1871
1871
  if (document.getElementById(ve)) return;
1872
1872
  const Me = document.createElement("style");
@@ -2092,7 +2092,7 @@ const JD = (t) => Array.isArray(t) ? t.map(
2092
2092
  className: "cursor-pointer",
2093
2093
  onClick: we,
2094
2094
  type: "button",
2095
- children: /* @__PURE__ */ A(Re, { placement: "top", title: re("Add to document"), children: /* @__PURE__ */ A(
2095
+ children: /* @__PURE__ */ A(Re, { placement: "top", title: ne("Add to document"), children: /* @__PURE__ */ A(
2096
2096
  Ri,
2097
2097
  {
2098
2098
  className: "text-primary-600",
@@ -2142,7 +2142,7 @@ const JD = (t) => Array.isArray(t) ? t.map(
2142
2142
  menu: ve,
2143
2143
  isLoading: k,
2144
2144
  hasExistingData: Ce,
2145
- t: re
2145
+ t: ne
2146
2146
  }
2147
2147
  ),
2148
2148
  options: Ae.map(
@@ -2202,7 +2202,7 @@ const JD = (t) => Array.isArray(t) ? t.map(
2202
2202
  }
2203
2203
  ),
2204
2204
  n && /* @__PURE__ */ A(
2205
- ae,
2205
+ oe,
2206
2206
  {
2207
2207
  className: "text-error-500",
2208
2208
  appearance: "custom",
@@ -2323,7 +2323,7 @@ const iR = ct(
2323
2323
  h === "right" ? "ml-2" : "mr-2",
2324
2324
  d
2325
2325
  ),
2326
- children: /* @__PURE__ */ T(ae, { variant: "medium", size: E(), appearance: "body", children: [
2326
+ children: /* @__PURE__ */ T(oe, { variant: "medium", size: E(), appearance: "body", children: [
2327
2327
  e,
2328
2328
  o && /* @__PURE__ */ A("span", { className: "text-red-500 ml-1", children: "*" })
2329
2329
  ] })
@@ -2356,7 +2356,7 @@ const iR = ct(
2356
2356
  id: `${t}-message`,
2357
2357
  role: l === "error" ? "alert" : void 0,
2358
2358
  children: /* @__PURE__ */ A(
2359
- ae,
2359
+ oe,
2360
2360
  {
2361
2361
  className: U("mt-1", x()),
2362
2362
  appearance: "custom",
@@ -2412,7 +2412,7 @@ const aR = ({
2412
2412
  inputProps: v,
2413
2413
  helpText: g
2414
2414
  }, _) => {
2415
- const y = oe(null), x = _ || y, E = ue(() => {
2415
+ const y = ae(null), x = _ || y, E = ue(() => {
2416
2416
  requestAnimationFrame(() => {
2417
2417
  x.current?.focus();
2418
2418
  });
@@ -2496,7 +2496,7 @@ const aR = ({
2496
2496
  f
2497
2497
  ),
2498
2498
  children: /* @__PURE__ */ A("div", { className: "flex flex-wrap items-center justify-between w-full", children: /* @__PURE__ */ A("div", { className: "inline-flex flex-wrap items-center gap-1", children: /* @__PURE__ */ T(
2499
- ae,
2499
+ oe,
2500
2500
  {
2501
2501
  variant: "medium",
2502
2502
  size: N(),
@@ -2510,7 +2510,7 @@ const aR = ({
2510
2510
  }
2511
2511
  ),
2512
2512
  g && /* @__PURE__ */ A(
2513
- ae,
2513
+ oe,
2514
2514
  {
2515
2515
  className: "mb-2 text-neutral-600 dark:text-neutral-400",
2516
2516
  appearance: "custom",
@@ -2555,7 +2555,7 @@ const aR = ({
2555
2555
  }
2556
2556
  ) }),
2557
2557
  h && /* @__PURE__ */ A("div", { className: "flex-1", children: /* @__PURE__ */ A(
2558
- ae,
2558
+ oe,
2559
2559
  {
2560
2560
  variant: "medium",
2561
2561
  size: "small",
@@ -2575,7 +2575,7 @@ const aR = ({
2575
2575
  id: `${t}-description`,
2576
2576
  role: u === "error" ? "alert" : void 0,
2577
2577
  children: /* @__PURE__ */ A(
2578
- ae,
2578
+ oe,
2579
2579
  {
2580
2580
  className: U("mt-1", O()),
2581
2581
  appearance: "custom",
@@ -2593,7 +2593,7 @@ const aR = ({
2593
2593
  oR.displayName = "ColorPicker";
2594
2594
  const zb = () => {
2595
2595
  const [t, e] = X(!1);
2596
- return ne(() => {
2596
+ return re(() => {
2597
2597
  const r = () => {
2598
2598
  e(document.documentElement.classList.contains("dark"));
2599
2599
  };
@@ -2816,7 +2816,7 @@ const zb = () => {
2816
2816
  }
2817
2817
  ),
2818
2818
  r && /* @__PURE__ */ A(
2819
- ae,
2819
+ oe,
2820
2820
  {
2821
2821
  className: "text-error-500",
2822
2822
  appearance: "custom",
@@ -2835,7 +2835,7 @@ const Bb = ({
2835
2835
  handler: e,
2836
2836
  enabled: r = !0
2837
2837
  }) => {
2838
- ne(() => {
2838
+ re(() => {
2839
2839
  if (!r) return;
2840
2840
  const n = (i) => {
2841
2841
  t.current && !t.current.contains(i.target) && e();
@@ -2878,7 +2878,7 @@ const Bb = ({
2878
2878
  isDark: v = !1,
2879
2879
  primaryColorShades: g = lR
2880
2880
  }) => {
2881
- const _ = oe(null), [y, x] = X(null), [E, S] = X("");
2881
+ const _ = ae(null), [y, x] = X(null), [E, S] = X("");
2882
2882
  Bb({
2883
2883
  ref: _,
2884
2884
  handler: () => {
@@ -3110,7 +3110,7 @@ const Bb = ({
3110
3110
  }
3111
3111
  ),
3112
3112
  s && /* @__PURE__ */ A(
3113
- ae,
3113
+ oe,
3114
3114
  {
3115
3115
  className: U("mt-1", v ? "text-red-400" : "text-red-500"),
3116
3116
  appearance: "custom",
@@ -3527,7 +3527,7 @@ const MS = ({
3527
3527
  hideSearchIcon: m,
3528
3528
  allowAStarSearch: v = !1,
3529
3529
  ...g
3530
- } = t, { t: _ } = Kt(), [y, x] = X(!1), [E, S] = X("search"), w = oe(null), { searchCount: k, searchPointer: O, setSearchPointer: C } = h || {}, N = () => {
3530
+ } = t, { t: _ } = Kt(), [y, x] = X(!1), [E, S] = X("search"), w = ae(null), { searchCount: k, searchPointer: O, setSearchPointer: C } = h || {}, N = () => {
3531
3531
  const R = l && !!e, D = f && !!e;
3532
3532
  return R && D ? "pr-28" : D ? "pr-12" : R ? "pr-8" : "pr-7";
3533
3533
  }, P = () => {
@@ -3610,7 +3610,7 @@ const MS = ({
3610
3610
  ] })
3611
3611
  ] }),
3612
3612
  v && !(l && e) && !y && !e ? /* @__PURE__ */ T("div", { className: "absolute flex ml-6 items-center justify-center focus:outline-none gap-1 flex-wrap-none", children: [
3613
- /* @__PURE__ */ T(ae, { className: "text-[#98A2B3] dark:text-black-400 font-inter text-sm font-medium leading-5", children: [
3613
+ /* @__PURE__ */ T(oe, { className: "text-[#98A2B3] dark:text-black-400 font-inter text-sm font-medium leading-5", children: [
3614
3614
  _("Search"),
3615
3615
  " (use"
3616
3616
  ] }),
@@ -3623,56 +3623,56 @@ const MS = ({
3623
3623
  root: "custom-tooltip dark:!bg-black-800"
3624
3624
  },
3625
3625
  title: /* @__PURE__ */ T("div", { className: "flex flex-col items-start justify-center p-2 w-full h-full gap-2 dark:bg-black-800", children: [
3626
- /* @__PURE__ */ A(ae, { variant: "semibold", size: "extra-small", className: "text-white", children: _("Normal Search") }),
3627
- /* @__PURE__ */ A(ae, { variant: "medium", size: "extra-small", className: "text-primary-400 dark:text-primary-400", appearance: "custom", children: _("Examples") }),
3626
+ /* @__PURE__ */ A(oe, { variant: "semibold", size: "extra-small", className: "text-white", children: _("Normal Search") }),
3627
+ /* @__PURE__ */ A(oe, { variant: "medium", size: "extra-small", className: "text-primary-400 dark:text-primary-400", appearance: "custom", children: _("Examples") }),
3628
3628
  /* @__PURE__ */ T("div", { className: "flex flex-col items-start justify-center ", children: [
3629
3629
  /* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
3630
- /* @__PURE__ */ A(ae, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3631
- /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(ae, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "data" }) }),
3632
- /* @__PURE__ */ A(ae, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "data", "Data".' })
3630
+ /* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3631
+ /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "data" }) }),
3632
+ /* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "data", "Data".' })
3633
3633
  ] }),
3634
3634
  /* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
3635
- /* @__PURE__ */ A(ae, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3636
- /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(ae, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "text" }) }),
3637
- /* @__PURE__ */ A(ae, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "text", "context", "plaintext".' })
3635
+ /* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3636
+ /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "text" }) }),
3637
+ /* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "text", "context", "plaintext".' })
3638
3638
  ] }),
3639
3639
  /* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
3640
- /* @__PURE__ */ A(ae, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3641
- /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(ae, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "base" }) }),
3642
- /* @__PURE__ */ A(ae, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "database", "baseball", "basename".' })
3640
+ /* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3641
+ /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "base" }) }),
3642
+ /* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "database", "baseball", "basename".' })
3643
3643
  ] })
3644
3644
  ] }),
3645
3645
  /* @__PURE__ */ A("div", { className: "h-[1px] w-full bg-neutral-800 dark:bg-black-200 my-2" }),
3646
- /* @__PURE__ */ A(ae, { variant: "semibold", size: "extra-small", className: "text-white", children: "Wildcard Search" }),
3647
- /* @__PURE__ */ A(ae, { variant: "medium", size: "extra-small", className: "text-white dark:text-black-200", appearance: "custom", children: "Use * as a wildcard to refine your search." }),
3648
- /* @__PURE__ */ A(ae, { variant: "medium", size: "extra-small", className: "text-primary-400 dark:text-primary-400", appearance: "custom", children: "Examples:" }),
3646
+ /* @__PURE__ */ A(oe, { variant: "semibold", size: "extra-small", className: "text-white", children: "Wildcard Search" }),
3647
+ /* @__PURE__ */ A(oe, { variant: "medium", size: "extra-small", className: "text-white dark:text-black-200", appearance: "custom", children: "Use * as a wildcard to refine your search." }),
3648
+ /* @__PURE__ */ A(oe, { variant: "medium", size: "extra-small", className: "text-primary-400 dark:text-primary-400", appearance: "custom", children: "Examples:" }),
3649
3649
  /* @__PURE__ */ T("div", { className: "flex flex-col items-start justify-center ", children: [
3650
3650
  /* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
3651
- /* @__PURE__ */ A(ae, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3652
- /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(ae, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter ", appearance: "custom", children: "contract*" }) }),
3653
- /* @__PURE__ */ A(ae, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ "contracts", "contractor", "CONTRACTOR".' })
3651
+ /* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3652
+ /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter ", appearance: "custom", children: "contract*" }) }),
3653
+ /* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ "contracts", "contractor", "CONTRACTOR".' })
3654
3654
  ] }),
3655
3655
  /* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
3656
- /* @__PURE__ */ A(ae, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3657
- /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(ae, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter ", appearance: "custom", children: "*agreement" }) }),
3658
- /* @__PURE__ */ A(ae, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "service agreement", "legal agreement".' })
3656
+ /* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3657
+ /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter ", appearance: "custom", children: "*agreement" }) }),
3658
+ /* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "service agreement", "legal agreement".' })
3659
3659
  ] }),
3660
3660
  /* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
3661
- /* @__PURE__ */ A(ae, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3662
- /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(ae, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "*clause*" }) }),
3663
- /* @__PURE__ */ A(ae, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "clause", "subclause", "clauses".' })
3661
+ /* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3662
+ /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "*clause*" }) }),
3663
+ /* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "clause", "subclause", "clauses".' })
3664
3664
  ] }),
3665
3665
  /* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-1", children: [
3666
- /* @__PURE__ */ A(ae, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3667
- /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(ae, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "*l*s*" }) }),
3668
- /* @__PURE__ */ A(ae, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "clause", "clauses".' })
3666
+ /* @__PURE__ */ A(oe, { className: "flex-shrink-0", appearance: "custom", children: "•" }),
3667
+ /* @__PURE__ */ A("div", { className: "flex px-1 items-center justify-center bg-neutral-700 rounded-sm", children: /* @__PURE__ */ A(oe, { className: "text-neutral-300 dark:text-black-200 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: "*l*s*" }) }),
3668
+ /* @__PURE__ */ A(oe, { className: "text-white dark:text-black-100 text-xs font-medium leading-[18px] font-inter", appearance: "custom", children: '→ finds "clause", "clauses".' })
3669
3669
  ] })
3670
3670
  ] })
3671
3671
  ] }),
3672
3672
  children: /* @__PURE__ */ A("div", { className: "text-[#475467] dark:text-black-300 dark:bg-black-600", children: "*" })
3673
3673
  }
3674
3674
  ) }),
3675
- /* @__PURE__ */ A(ae, { className: "text-[#98A2B3] dark:text-black-400 font-inter text-sm font-medium leading-5", children: "as a wildcard)" })
3675
+ /* @__PURE__ */ A(oe, { className: "text-[#98A2B3] dark:text-black-400 font-inter text-sm font-medium leading-5", children: "as a wildcard)" })
3676
3676
  ] }) : l && e && /* @__PURE__ */ A("button", { id: "btn-search-bar-close", className: "absolute right-0 mr-2 focus:outline-none", onClick: () => n?.(""), children: /* @__PURE__ */ A(eu, { classValue: "text-neutral-200 dark:text-black-500", size: 16 }) })
3677
3677
  ]
3678
3678
  }
@@ -3750,7 +3750,7 @@ const uR = (t, e, r, n = "medium") => {
3750
3750
  renderGTNAddButton: I,
3751
3751
  onAddGTNToDocument: M
3752
3752
  }, B) => {
3753
- const { t: W } = Kt(), Q = x ?? E, te = !!Q, j = typeof Q == "string" ? Q : void 0, q = l === ls.TOP, K = l === ls.LEFT, ie = l === ls.RIGHT, [Y, Z] = X(!1), re = () => {
3753
+ const { t: W } = Kt(), Q = x ?? E, te = !!Q, j = typeof Q == "string" ? Q : void 0, q = l === ls.TOP, K = l === ls.LEFT, ie = l === ls.RIGHT, [Y, Z] = X(!1), ne = () => {
3754
3754
  M && M({
3755
3755
  key: k,
3756
3756
  value: e ? "Yes" : "No"
@@ -3823,12 +3823,12 @@ const uR = (t, e, r, n = "medium") => {
3823
3823
  )
3824
3824
  }
3825
3825
  ) : null,
3826
- t && Y ? I ? I(re) : /* @__PURE__ */ A(
3826
+ t && Y ? I ? I(ne) : /* @__PURE__ */ A(
3827
3827
  "button",
3828
3828
  {
3829
3829
  id: "btn-toggle-add-to-document",
3830
3830
  className: "cursor-pointer",
3831
- onClick: re,
3831
+ onClick: ne,
3832
3832
  type: "button",
3833
3833
  children: /* @__PURE__ */ A(tr, { placement: "top", title: W("Add to document"), children: /* @__PURE__ */ A(Ri, { className: "text-primary-600", sx: { fontSize: 16 } }) })
3834
3834
  }
@@ -3836,7 +3836,7 @@ const uR = (t, e, r, n = "medium") => {
3836
3836
  ] })
3837
3837
  ] }),
3838
3838
  D && /* @__PURE__ */ A(
3839
- ae,
3839
+ oe,
3840
3840
  {
3841
3841
  className: "mb-2 text-neutral-600 dark:text-neutral-400",
3842
3842
  appearance: "custom",
@@ -3847,7 +3847,7 @@ const uR = (t, e, r, n = "medium") => {
3847
3847
  ),
3848
3848
  /* @__PURE__ */ T("div", { className: "flex", children: [
3849
3849
  K && /* @__PURE__ */ A(
3850
- ae,
3850
+ oe,
3851
3851
  {
3852
3852
  size: "small",
3853
3853
  variant: "medium",
@@ -3901,7 +3901,7 @@ const uR = (t, e, r, n = "medium") => {
3901
3901
  F === "large" && "w-11"
3902
3902
  ) }) }),
3903
3903
  ie && /* @__PURE__ */ A(
3904
- ae,
3904
+ oe,
3905
3905
  {
3906
3906
  size: "small",
3907
3907
  variant: "medium",
@@ -3911,7 +3911,7 @@ const uR = (t, e, r, n = "medium") => {
3911
3911
  }
3912
3912
  ),
3913
3913
  s ? null : /* @__PURE__ */ A(
3914
- ae,
3914
+ oe,
3915
3915
  {
3916
3916
  size: "small",
3917
3917
  variant: "medium",
@@ -3934,7 +3934,7 @@ const uR = (t, e, r, n = "medium") => {
3934
3934
  id: `${r}-description`,
3935
3935
  role: L === "error" ? "alert" : void 0,
3936
3936
  children: /* @__PURE__ */ A(
3937
- ae,
3937
+ oe,
3938
3938
  {
3939
3939
  className: U("mt-1", J()),
3940
3940
  appearance: "custom",
@@ -4118,7 +4118,7 @@ const Cue = (t) => {
4118
4118
  className: U("flex-1 min-w-0", m && "max-w-[150px]"),
4119
4119
  style: { width: g },
4120
4120
  children: /* @__PURE__ */ A(
4121
- ae,
4121
+ oe,
4122
4122
  {
4123
4123
  className: U(
4124
4124
  "font-medium text-sm truncate transition-colors duration-300 ease-in-out",
@@ -4408,7 +4408,7 @@ const Is = (t, e) => {
4408
4408
  RiskDetailsCard: W,
4409
4409
  ...Q
4410
4410
  }, te) => {
4411
- const { t: j } = Kt(), [q, K] = X(!1), [ie, Y] = X([]), [Z, re] = X(""), [J, ce] = X(
4411
+ const { t: j } = Kt(), [q, K] = X(!1), [ie, Y] = X([]), [Z, ne] = X(""), [J, ce] = X(
4412
4412
  O || "USD"
4413
4413
  ), [ze, Ee] = X(!1), _e = (G) => {
4414
4414
  if (I) {
@@ -4459,9 +4459,9 @@ const Is = (t, e) => {
4459
4459
  const G = "pl-11 border h-[32px] text-sm rounded-lg block w-full p-2.5 font-inter font-medium text-neutral-900 dark:text-black-200 disabled:bg-neutral-50 dark:disabled:!bg-black-800 dark:disabled:placeholder:!text-black-400 focus:outline-none focus:ring-0 focus:border-[var(--color-primary-600)] dark:focus:border-[var(--color-primary-400)] focus:shadow-[0_0_0_1.5px_var(--color-primary-100)] dark:focus:shadow-[0_0_0_1.5px_var(--color-primary-950)]", Ae = i ? "border-red-300" : B && M?.color ? `border-${M.color}-300` : "border-gray-300 dark:border-black-600", Ce = `${B && M?.color ? `bg-${M.color}-50` : "bg-white dark:bg-black-600"}`;
4460
4460
  return `${G} ${Ae} ${Ce} ${p}`;
4461
4461
  };
4462
- return ne(() => {
4462
+ return re(() => {
4463
4463
  O && ce(O);
4464
- }, [O]), ne(() => {
4464
+ }, [O]), re(() => {
4465
4465
  if (J) {
4466
4466
  const G = r === "" || r === null || r === void 0 ? 0 : Number(r);
4467
4467
  O !== J && n(G, J);
@@ -4487,7 +4487,7 @@ const Is = (t, e) => {
4487
4487
  Ae.dispatchEvent(Ce);
4488
4488
  }
4489
4489
  }
4490
- }, [J]), ne(() => {
4490
+ }, [J]), re(() => {
4491
4491
  const G = eg.filter(
4492
4492
  (Ae) => (Ae.value + " - " + Ae.label).toLowerCase().includes(Z.toLowerCase())
4493
4493
  ).map((Ae) => ({
@@ -4504,8 +4504,8 @@ const Is = (t, e) => {
4504
4504
  key: Ae.value
4505
4505
  }));
4506
4506
  Y(G);
4507
- }, [Z, J]), ne(() => {
4508
- re("");
4507
+ }, [Z, J]), re(() => {
4508
+ ne("");
4509
4509
  }, [J]), f ? /* @__PURE__ */ T(
4510
4510
  "label",
4511
4511
  {
@@ -4684,7 +4684,7 @@ const Is = (t, e) => {
4684
4684
  {
4685
4685
  id: "search-bar-currency-input",
4686
4686
  value: Z,
4687
- onChange: (Ae) => re(Ae),
4687
+ onChange: (Ae) => ne(Ae),
4688
4688
  className: "mb-2"
4689
4689
  }
4690
4690
  ),
@@ -4703,7 +4703,7 @@ const Is = (t, e) => {
4703
4703
  )
4704
4704
  ] }),
4705
4705
  i && /* @__PURE__ */ A(
4706
- ae,
4706
+ oe,
4707
4707
  {
4708
4708
  className: "text-error-500 mt-1",
4709
4709
  appearance: "custom",
@@ -4819,7 +4819,7 @@ const SR = ct(
4819
4819
  d
4820
4820
  ),
4821
4821
  children: /* @__PURE__ */ A("div", { className: "flex flex-wrap items-center justify-between w-full", children: /* @__PURE__ */ A("div", { className: "inline-flex flex-wrap items-center gap-1", children: /* @__PURE__ */ T(
4822
- ae,
4822
+ oe,
4823
4823
  {
4824
4824
  variant: "medium",
4825
4825
  size: O(),
@@ -4833,7 +4833,7 @@ const SR = ct(
4833
4833
  }
4834
4834
  ),
4835
4835
  f && /* @__PURE__ */ A(
4836
- ae,
4836
+ oe,
4837
4837
  {
4838
4838
  className: "mb-2 text-neutral-600 dark:text-neutral-400",
4839
4839
  appearance: "custom",
@@ -4983,7 +4983,7 @@ const SR = ct(
4983
4983
  id: `${t}-description`,
4984
4984
  role: l === "error" ? "alert" : void 0,
4985
4985
  children: /* @__PURE__ */ A(
4986
- ae,
4986
+ oe,
4987
4987
  {
4988
4988
  className: U("mt-1", k()),
4989
4989
  appearance: "custom",
@@ -5002,10 +5002,10 @@ SR.displayName = "DateRange2";
5002
5002
  const { RangePicker: X3 } = Y1, j3 = {
5003
5003
  ENTER: "Enter"
5004
5004
  }, Q3 = () => Math.random().toString(36).substring(2, 9), ER = (t, e) => {
5005
- const r = oe(e);
5006
- ne(() => {
5005
+ const r = ae(e);
5006
+ re(() => {
5007
5007
  r.current = e;
5008
- }, [e]), ne(() => {
5008
+ }, [e]), re(() => {
5009
5009
  const n = (i) => r.current(i);
5010
5010
  return document.addEventListener(t, n), () => {
5011
5011
  document.removeEventListener(t, n);
@@ -5033,7 +5033,7 @@ const { RangePicker: X3 } = Y1, j3 = {
5033
5033
  iconButtonClassName: _,
5034
5034
  iconClassName: y
5035
5035
  }) => {
5036
- const [x, E] = X(!1), [S, w] = X(!1), k = oe(null), O = oe(null), C = oe(!1), N = oe(!1), P = (W) => W ? Ht(W) : null, L = `date-range-start-${Q3()}`, R = `date-range-end-${Q3()}`, D = () => {
5036
+ const [x, E] = X(!1), [S, w] = X(!1), k = ae(null), O = ae(null), C = ae(!1), N = ae(!1), P = (W) => W ? Ht(W) : null, L = `date-range-start-${Q3()}`, R = `date-range-end-${Q3()}`, D = () => {
5037
5037
  E(!0), setTimeout(() => {
5038
5038
  k.current && k.current.focus();
5039
5039
  }, 0);
@@ -5214,10 +5214,10 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
5214
5214
  const n = Ht(t);
5215
5215
  return n.isValid() ? n : null;
5216
5216
  }, Z3 = (t, e) => {
5217
- const r = oe(e);
5218
- ne(() => {
5217
+ const r = ae(e);
5218
+ re(() => {
5219
5219
  r.current = e;
5220
- }, [e]), ne(() => {
5220
+ }, [e]), re(() => {
5221
5221
  const n = (i) => r.current(i);
5222
5222
  return document.addEventListener(t, n), () => {
5223
5223
  document.removeEventListener(t, n);
@@ -5262,14 +5262,14 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
5262
5262
  }, M) => {
5263
5263
  const { t: B } = Kt(), [W, Q] = X(!1), [te, j] = X(null), [q, K] = X(
5264
5264
  null
5265
- ), [ie, Y] = X(!1), Z = p || (l ? ed : kR), re = I?.id || `date-picker-${OR()}`, J = oe(null), ce = oe(!1);
5265
+ ), [ie, Y] = X(!1), Z = p || (l ? ed : kR), ne = I?.id || `date-picker-${OR()}`, J = ae(null), ce = ae(!1);
5266
5266
  Z3("paste", (pe) => {
5267
- document.activeElement?.id === re && (pe.preventDefault(), navigator.clipboard.readText().then((G) => {
5267
+ document.activeElement?.id === ne && (pe.preventDefault(), navigator.clipboard.readText().then((G) => {
5268
5268
  const Ae = Go(G, l);
5269
5269
  Ae && ge(Ae);
5270
5270
  }));
5271
5271
  }), Z3("keydown", (pe) => {
5272
- if (pe.key === K3.ENTER && document.activeElement instanceof HTMLInputElement && document.activeElement.id === re) {
5272
+ if (pe.key === K3.ENTER && document.activeElement instanceof HTMLInputElement && document.activeElement.id === ne) {
5273
5273
  const G = Go(document?.activeElement?.value, l);
5274
5274
  G && ge(G);
5275
5275
  }
@@ -5303,15 +5303,15 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
5303
5303
  if (!k) {
5304
5304
  const G = l ? Y3 : G3;
5305
5305
  if (s(pe ? pe.format(G) : null), pe) {
5306
- const Ae = document.getElementById(re);
5306
+ const Ae = document.getElementById(ne);
5307
5307
  if (Ae) {
5308
5308
  const Ce = new CustomEvent("pilot-date-change", {
5309
5309
  bubbles: !0,
5310
5310
  detail: {
5311
- selector: `#${re}`,
5311
+ selector: `#${ne}`,
5312
5312
  value: pe.format ? pe.format(Z) : pe,
5313
5313
  type: "date-change",
5314
- elementId: re
5314
+ elementId: ne
5315
5315
  }
5316
5316
  });
5317
5317
  Ae.dispatchEvent(Ce);
@@ -5323,15 +5323,15 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
5323
5323
  let G;
5324
5324
  if (l ? G = Ht(pe).utc().toISOString() : G = Ht(pe).utc().add(Ht(pe).utcOffset(), "minute").startOf("day").toISOString(), G) {
5325
5325
  s(G);
5326
- const Ae = document.getElementById(re);
5326
+ const Ae = document.getElementById(ne);
5327
5327
  if (Ae) {
5328
5328
  const Ce = new CustomEvent("pilot-date-change", {
5329
5329
  bubbles: !0,
5330
5330
  detail: {
5331
- selector: `#${re}`,
5331
+ selector: `#${ne}`,
5332
5332
  value: pe.format(Z),
5333
5333
  type: "date-change",
5334
- elementId: re
5334
+ elementId: ne
5335
5335
  }
5336
5336
  });
5337
5337
  Ae.dispatchEvent(Ce);
@@ -5340,7 +5340,7 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
5340
5340
  } else
5341
5341
  s(null);
5342
5342
  },
5343
- [k, s, l, re, Z]
5343
+ [k, s, l, ne, Z]
5344
5344
  ), me = ue(
5345
5345
  (pe) => {
5346
5346
  if (!pe) return null;
@@ -5372,15 +5372,15 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
5372
5372
  j(pe);
5373
5373
  const G = l ? Y3 : G3, Ae = k ? pe?.toISOString() : pe ? pe.format(G) : "";
5374
5374
  if (s(Ae || null), pe?.isValid()) {
5375
- const Ce = document.getElementById(re);
5375
+ const Ce = document.getElementById(ne);
5376
5376
  if (Ce) {
5377
5377
  const Xe = new CustomEvent("pilot-date-change", {
5378
5378
  bubbles: !0,
5379
5379
  detail: {
5380
- selector: `#${re}`,
5380
+ selector: `#${ne}`,
5381
5381
  value: pe.format(Z),
5382
5382
  type: "date-change",
5383
- elementId: re
5383
+ elementId: ne
5384
5384
  }
5385
5385
  });
5386
5386
  Ce.dispatchEvent(Xe);
@@ -5388,14 +5388,14 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
5388
5388
  }
5389
5389
  }
5390
5390
  },
5391
- [k, Z, s, re, l]
5391
+ [k, Z, s, ne, l]
5392
5392
  );
5393
- ne(() => {
5393
+ re(() => {
5394
5394
  j(me(e));
5395
- }, [e, me]), ne(() => {
5395
+ }, [e, me]), re(() => {
5396
5396
  q && K(null);
5397
- }, [q]), ne(() => {
5398
- const pe = document.getElementById(re);
5397
+ }, [q]), re(() => {
5398
+ const pe = document.getElementById(ne);
5399
5399
  if (!pe) return;
5400
5400
  const G = (Ae) => {
5401
5401
  const { value: Ce, type: Xe } = Ae.detail;
@@ -5430,7 +5430,7 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
5430
5430
  G
5431
5431
  );
5432
5432
  };
5433
- }, [re, Z, _e, l]);
5433
+ }, [ne, Z, _e, l]);
5434
5434
  const we = ue((pe) => {
5435
5435
  if (pe.key === K3.ENTER && !ie) {
5436
5436
  pe.preventDefault(), pe.stopPropagation();
@@ -5477,7 +5477,7 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
5477
5477
  },
5478
5478
  ref: J,
5479
5479
  disabled: i,
5480
- id: re
5480
+ id: ne
5481
5481
  }
5482
5482
  ) }) : /* @__PURE__ */ T(
5483
5483
  "div",
@@ -5602,12 +5602,12 @@ const kR = "MM/DD/YYYY", ed = "MM/DD/YYYY - hh:mm A", G3 = "YYYY-MM-DD", Y3 = "Y
5602
5602
  inputReadOnly: !1,
5603
5603
  onOpenChange: Se,
5604
5604
  getPopupContainer: w ? (pe) => pe.parentElement : () => document.body,
5605
- id: re,
5605
+ id: ne,
5606
5606
  autoComplete: "off"
5607
5607
  }
5608
5608
  ),
5609
5609
  o && /* @__PURE__ */ A(
5610
- ae,
5610
+ oe,
5611
5611
  {
5612
5612
  className: "text-error-500 mt-1",
5613
5613
  appearance: "custom",
@@ -5698,7 +5698,7 @@ const CR = ({
5698
5698
  exit: { opacity: 0, y: -5 },
5699
5699
  transition: { duration: 0.15 },
5700
5700
  children: /* @__PURE__ */ A(
5701
- ae,
5701
+ oe,
5702
5702
  {
5703
5703
  className: "pt-1 text-error-500",
5704
5704
  appearance: "custom",
@@ -5751,11 +5751,11 @@ const NR = ct(
5751
5751
  showDeprecatedFieldWarning: M,
5752
5752
  DynamicDataModal: B
5753
5753
  }, W) => {
5754
- const { t: Q } = Kt(), [te, j] = X(!1), [q, K] = X(n), [ie, Y] = X(!1), Z = oe(null), re = W || Z, J = () => {
5754
+ const { t: Q } = Kt(), [te, j] = X(!1), [q, K] = X(n), [ie, Y] = X(!1), Z = ae(null), ne = W || Z, J = () => {
5755
5755
  I?.(!ie), Y(!ie);
5756
5756
  }, ce = (me) => {
5757
5757
  if (me.keyCode === 9 || me.key === "Enter") {
5758
- const ge = re.current || Z.current;
5758
+ const ge = ne.current || Z.current;
5759
5759
  ge && (q !== null && i(q), K(q), ge.blur());
5760
5760
  }
5761
5761
  }, ze = () => {
@@ -5769,9 +5769,9 @@ const NR = ct(
5769
5769
  const me = "border h-[32px] text-sm rounded-lg block w-full p-2.5 font-inter font-medium", ge = a ? "border-red-300" : P && N?.color ? `border-${N?.color}-300` : "border-gray-300 dark:border-black-600", we = "placeholder:text-neutral-900 dark:placeholder:text-black-400", Se = `${P && N?.color ? `bg-${N?.color}-50` : "bg-gray-200 dark:bg-black-600 "} ${h || "text-neutral-900 dark:text-black-200"}`;
5770
5770
  return `${me} ${ge} ${Se} ${we}`;
5771
5771
  };
5772
- return ne(() => {
5772
+ return re(() => {
5773
5773
  ie && !u && (M?.(), Y(!1));
5774
- }, [ie, u, M]), ne(() => {
5774
+ }, [ie, u, M]), re(() => {
5775
5775
  K(n);
5776
5776
  }, [n]), /* @__PURE__ */ T(
5777
5777
  "div",
@@ -5869,7 +5869,7 @@ const NR = ct(
5869
5869
  "input",
5870
5870
  {
5871
5871
  id: t,
5872
- ref: re,
5872
+ ref: ne,
5873
5873
  required: s,
5874
5874
  placeholder: r,
5875
5875
  className: _e(),
@@ -5918,7 +5918,7 @@ const NR = ct(
5918
5918
  )
5919
5919
  ] }),
5920
5920
  a && /* @__PURE__ */ A(
5921
- ae,
5921
+ oe,
5922
5922
  {
5923
5923
  className: "text-error-500 mt-1",
5924
5924
  appearance: "custom",
@@ -6162,7 +6162,7 @@ const DR = (t = {}) => {
6162
6162
  maxRetries: n = 10,
6163
6163
  retryDelay: i = 100
6164
6164
  } = t, [a, o] = X(null);
6165
- return ne(() => {
6165
+ return re(() => {
6166
6166
  let s = 0, l;
6167
6167
  const u = (d) => {
6168
6168
  if (typeof document < "u") {
@@ -6209,7 +6209,7 @@ const DR = (t = {}) => {
6209
6209
  fallbackContainerId: "full-screen-container"
6210
6210
  }), v = /* @__PURE__ */ T(ot, { children: [
6211
6211
  /* @__PURE__ */ T("div", { className: "flex justify-between items-center", children: [
6212
- f ? /* @__PURE__ */ A(ae, { size: "large", variant: "semibold", className: "tour__title", children: n }) : /* @__PURE__ */ A("div", { className: "flex flex-col w-full", children: n }),
6212
+ f ? /* @__PURE__ */ A(oe, { size: "large", variant: "semibold", className: "tour__title", children: n }) : /* @__PURE__ */ A("div", { className: "flex flex-col w-full", children: n }),
6213
6213
  s || f && /* @__PURE__ */ A("button", { id: "btn-modal-close", onClick: h.onCancel, className: "", type: "button", children: /* @__PURE__ */ A(Co, { sx: { fontSize: "20px" }, className: "cursor-pointer text-neutral-400 hover:text-neutral-600" }) })
6214
6214
  ] }),
6215
6215
  h.addLineAfterHeader && /* @__PURE__ */ A("hr", { className: "mt-2" })
@@ -6676,12 +6676,12 @@ function EP({ width: t, height: e, isEditorReady: r, loading: n, _ref: i, classN
6676
6676
  }
6677
6677
  var wP = EP, VS = Al(wP);
6678
6678
  function kP(t) {
6679
- ne(t, []);
6679
+ re(t, []);
6680
6680
  }
6681
6681
  var WS = kP;
6682
6682
  function TP(t, e, r = !0) {
6683
- let n = oe(!0);
6684
- ne(n.current || !r ? () => {
6683
+ let n = ae(!0);
6684
+ re(n.current || !r ? () => {
6685
6685
  n.current = !1;
6686
6686
  } : t, e);
6687
6687
  }
@@ -6701,7 +6701,7 @@ function XS(t, e) {
6701
6701
  return t.Uri.parse(e);
6702
6702
  }
6703
6703
  function NP({ original: t, modified: e, language: r, originalLanguage: n, modifiedLanguage: i, originalModelPath: a, modifiedModelPath: o, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: l = !1, theme: u = "light", loading: c = "Loading...", options: d = {}, height: f = "100%", width: p = "100%", className: h, wrapperProps: m = {}, beforeMount: v = hs, onMount: g = hs }) {
6704
- let [_, y] = X(!1), [x, E] = X(!0), S = oe(null), w = oe(null), k = oe(null), O = oe(g), C = oe(v), N = oe(!1);
6704
+ let [_, y] = X(!1), [x, E] = X(!0), S = ae(null), w = ae(null), k = ae(null), O = ae(g), C = ae(v), N = ae(!1);
6705
6705
  WS(() => {
6706
6706
  let D = ru.init();
6707
6707
  return D.then((F) => (w.current = F) && E(!1)).catch((F) => F?.type !== "cancelation" && console.error("Monaco initialization: error:", F)), () => S.current ? R() : D.cancel();
@@ -6736,9 +6736,9 @@ function NP({ original: t, modified: e, language: r, originalLanguage: n, modifi
6736
6736
  }, [r, e, i, t, n, a, o]), L = ue(() => {
6737
6737
  !N.current && k.current && (S.current = w.current.editor.createDiffEditor(k.current, { automaticLayout: !0, ...d }), P(), w.current?.editor.setTheme(u), y(!0), N.current = !0);
6738
6738
  }, [d, u, P]);
6739
- ne(() => {
6739
+ re(() => {
6740
6740
  _ && O.current(S.current, w.current);
6741
- }, [_]), ne(() => {
6741
+ }, [_]), re(() => {
6742
6742
  !x && !_ && L();
6743
6743
  }, [x, _, L]);
6744
6744
  function R() {
@@ -6750,14 +6750,14 @@ function NP({ original: t, modified: e, language: r, originalLanguage: n, modifi
6750
6750
  var DP = NP;
6751
6751
  Al(DP);
6752
6752
  function RP(t) {
6753
- let e = oe();
6754
- return ne(() => {
6753
+ let e = ae();
6754
+ return re(() => {
6755
6755
  e.current = t;
6756
6756
  }, [t]), e.current;
6757
6757
  }
6758
6758
  var PP = RP, Zl = /* @__PURE__ */ new Map();
6759
6759
  function LP({ defaultValue: t, defaultLanguage: e, defaultPath: r, value: n, language: i, path: a, theme: o = "light", line: s, loading: l = "Loading...", options: u = {}, overrideServices: c = {}, saveViewState: d = !0, keepCurrentModel: f = !1, width: p = "100%", height: h = "100%", className: m, wrapperProps: v = {}, beforeMount: g = hs, onMount: _ = hs, onChange: y, onValidate: x = hs }) {
6760
- let [E, S] = X(!1), [w, k] = X(!0), O = oe(null), C = oe(null), N = oe(null), P = oe(_), L = oe(g), R = oe(), D = oe(n), F = PP(a), I = oe(!1), M = oe(!1);
6760
+ let [E, S] = X(!1), [w, k] = X(!0), O = ae(null), C = ae(null), N = ae(null), P = ae(_), L = ae(g), R = ae(), D = ae(n), F = PP(a), I = ae(!1), M = ae(!1);
6761
6761
  WS(() => {
6762
6762
  let Q = ru.init();
6763
6763
  return Q.then((te) => (O.current = te) && k(!1)).catch((te) => te?.type !== "cancelation" && console.error("Monaco initialization: error:", te)), () => C.current ? W() : Q.cancel();
@@ -6783,15 +6783,15 @@ function LP({ defaultValue: t, defaultLanguage: e, defaultPath: r, value: n, lan
6783
6783
  C.current = O.current?.editor.create(N.current, { model: te, automaticLayout: !0, ...u }, c), d && C.current.restoreViewState(Zl.get(Q)), O.current.editor.setTheme(o), s !== void 0 && C.current.revealLine(s), S(!0), I.current = !0;
6784
6784
  }
6785
6785
  }, [t, e, r, n, i, a, u, c, d, o, s]);
6786
- ne(() => {
6786
+ re(() => {
6787
6787
  E && P.current(C.current, O.current);
6788
- }, [E]), ne(() => {
6788
+ }, [E]), re(() => {
6789
6789
  !w && !E && B();
6790
- }, [w, E, B]), D.current = n, ne(() => {
6790
+ }, [w, E, B]), D.current = n, re(() => {
6791
6791
  E && y && (R.current?.dispose(), R.current = C.current?.onDidChangeModelContent((Q) => {
6792
6792
  M.current || y(C.current.getValue(), Q);
6793
6793
  }));
6794
- }, [E, y]), ne(() => {
6794
+ }, [E, y]), re(() => {
6795
6795
  if (E) {
6796
6796
  let Q = O.current.editor.onDidChangeMarkers((te) => {
6797
6797
  let j = C.current.getModel()?.uri;
@@ -6876,7 +6876,7 @@ class Ka {
6876
6876
  }
6877
6877
  const i_ = Ka.getInstance(), FP = () => {
6878
6878
  const [t, e] = X(i_.getMonaco());
6879
- return ne(() => {
6879
+ return re(() => {
6880
6880
  if (t) return;
6881
6881
  let r = !1;
6882
6882
  return i_.initialize().then((n) => {
@@ -7189,7 +7189,7 @@ const i_ = Ka.getInstance(), FP = () => {
7189
7189
  c(!1);
7190
7190
  }
7191
7191
  };
7192
- return ne(() => {
7192
+ return re(() => {
7193
7193
  if (t && i && a) {
7194
7194
  const m = CS(p, 500);
7195
7195
  return m(), () => {
@@ -7467,7 +7467,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
7467
7467
  };
7468
7468
  }, jP = ({ value: t, path: e, onChange: r, isDarkMode: n = !1 }) => {
7469
7469
  const [i, a] = X(""), o = GS(t), { selectedPathForEdit: s, setSelectedPathForEdit: l } = pl();
7470
- ne(() => {
7470
+ re(() => {
7471
7471
  o === Be.STRING ? a(t) : o === Be.NUMBER || o === Be.BOOLEAN ? a(String(t)) : o === Be.NULL && a("null");
7472
7472
  }, [t, o]);
7473
7473
  const u = (d) => {
@@ -7542,7 +7542,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
7542
7542
  };
7543
7543
  return E(t, e), x;
7544
7544
  };
7545
- ne(() => {
7545
+ re(() => {
7546
7546
  t && a(o ? m() : []);
7547
7547
  }, [o, t, e]);
7548
7548
  const v = (x) => {
@@ -7763,8 +7763,8 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
7763
7763
  selectedItemsCount: a,
7764
7764
  deleteConfig: o,
7765
7765
  showActionBg: s
7766
- } = t, { t: l } = Kt(), [u, c] = X(!1), [d, f] = X(!0), p = oe(null), h = oe(null);
7767
- ne(() => {
7766
+ } = t, { t: l } = Kt(), [u, c] = X(!1), [d, f] = X(!0), p = ae(null), h = ae(null);
7767
+ re(() => {
7768
7768
  const g = new ResizeObserver(() => {
7769
7769
  if (p.current && h.current) {
7770
7770
  const _ = p.current.scrollWidth - 100;
@@ -7831,7 +7831,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
7831
7831
  /* @__PURE__ */ T("div", { className: "flex items-center gap-1.5 ml-2", children: [
7832
7832
  /* @__PURE__ */ A("span", { className: "text-primary-600 dark:text-black-100 bg-primary-50 dark:bg-black-800 border-primary-200 dark:border-black-800 text-xs leading-4 font-normal border rounded-full pr-2 pl-2", children: a || 0 }),
7833
7833
  /* @__PURE__ */ A(
7834
- ae,
7834
+ oe,
7835
7835
  {
7836
7836
  size: "extra-small",
7837
7837
  appearance: "custom",
@@ -7892,7 +7892,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
7892
7892
  }
7893
7893
  ),
7894
7894
  !g?.hideLabel && g.label && /* @__PURE__ */ A(
7895
- ae,
7895
+ oe,
7896
7896
  {
7897
7897
  size: "small",
7898
7898
  variant: "medium",
@@ -7928,7 +7928,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
7928
7928
  }
7929
7929
  ),
7930
7930
  !g?.hideLabel && g.label && /* @__PURE__ */ A(
7931
- ae,
7931
+ oe,
7932
7932
  {
7933
7933
  size: "small",
7934
7934
  variant: "medium",
@@ -7951,7 +7951,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
7951
7951
  children: [
7952
7952
  m.icon,
7953
7953
  /* @__PURE__ */ A(
7954
- ae,
7954
+ oe,
7955
7955
  {
7956
7956
  size: "small",
7957
7957
  variant: "medium",
@@ -7993,7 +7993,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
7993
7993
  className: "flex items-center gap-1.5 px-2 py-1 w-22 h-7 rounded-full bg-primary-700",
7994
7994
  type: "button",
7995
7995
  children: [
7996
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: "text-white", children: l("Actions") }),
7996
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "text-white", children: l("Actions") }),
7997
7997
  /* @__PURE__ */ A(JP, { fill: "#FFFFFF", className: "w-[16px] h-[16px]" })
7998
7998
  ]
7999
7999
  }
@@ -8011,7 +8011,7 @@ const QS = Oo(null), BP = QS.Provider, pl = () => {
8011
8011
  children: [
8012
8012
  m.icon,
8013
8013
  /* @__PURE__ */ A(
8014
- ae,
8014
+ oe,
8015
8015
  {
8016
8016
  size: "small",
8017
8017
  variant: "medium",
@@ -8102,13 +8102,13 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
8102
8102
  return {};
8103
8103
  }, oL = ({ isVisible: t, onClose: e, parentContainer: r }) => {
8104
8104
  const [n, i] = X(""), [a, o] = X(id[0]), [s, l] = X(null), [u, c] = X(""), [d, f] = X(null), { handleAddKey: p, selectedPathModification: h } = pl();
8105
- ne(() => {
8105
+ re(() => {
8106
8106
  a.value === Be.BOOLEAN ? l(!1) : a.value === Be.STRING ? l("") : a.value === Be.NUMBER ? l(0) : a.value === Be.NULL ? l(null) : a.value === Be.ARRAY ? (l([]), c("")) : a.value === Be.OBJECT && (l({}), c(""));
8107
8107
  }, [a]);
8108
8108
  const m = () => {
8109
8109
  i(""), o(id[0]), l(null), c(""), e(), f(null);
8110
8110
  };
8111
- ne(() => {
8111
+ re(() => {
8112
8112
  if (a.value === Be.ARRAY || a.value === Be.OBJECT) {
8113
8113
  if (u.trim() === "") {
8114
8114
  f(null);
@@ -8232,9 +8232,9 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
8232
8232
  isAddKeyModalOpen: u
8233
8233
  }) => {
8234
8234
  const [c, d] = X({}), [f, p] = X(null), [h, m] = X([]), [v, g] = X([]), [_, y] = X(null), [x, E] = X(null);
8235
- return ne(() => {
8235
+ return re(() => {
8236
8236
  g(VP(h));
8237
- }, [h]), ne(() => {
8237
+ }, [h]), re(() => {
8238
8238
  try {
8239
8239
  const C = WP(o);
8240
8240
  d(C), p(null);
@@ -8423,7 +8423,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
8423
8423
  focusBlock: y,
8424
8424
  focusBlockTopLevelOnly: x = !1
8425
8425
  }) => {
8426
- const E = oe(null), [S, w] = X("vs"), [k, O] = X("light"), C = f ?? S, N = h ?? k, P = p ?? ((G) => {
8426
+ const E = ae(null), [S, w] = X("vs"), [k, O] = X("light"), C = f ?? S, N = h ?? k, P = p ?? ((G) => {
8427
8427
  w(G), O(G === "vs-dark" ? "dark" : "light");
8428
8428
  }), [L, R] = X(!1), [D, F] = X(null), I = FP(), M = s || I, {
8429
8429
  handleFormatCode: B,
@@ -8437,11 +8437,11 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
8437
8437
  enable: i === !0 && o === "python"
8438
8438
  }), te = TS(), [j, q] = X("JSON"), [K, ie] = X(!1), Y = o === "json", Z = () => {
8439
8439
  te?.active ? te.exit() : te.enter();
8440
- }, re = oe(_);
8441
- re.current = _;
8440
+ }, ne = ae(_);
8441
+ ne.current = _;
8442
8442
  const J = ue(
8443
8443
  async (G, Ae, Ce) => {
8444
- if (!re.current) return;
8444
+ if (!ne.current) return;
8445
8445
  const Xe = G.getModel();
8446
8446
  if (!Xe) return;
8447
8447
  const Ze = (We, Ne) => Xe.getValueInRange({
@@ -8450,7 +8450,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
8450
8450
  endLineNumber: Ne,
8451
8451
  endColumn: Xe.getLineMaxColumn(Ne)
8452
8452
  }), tt = (We, Ne, Fe, ve, Me) => {
8453
- re.current({
8453
+ ne.current({
8454
8454
  startLine: We,
8455
8455
  endLine: Ne,
8456
8456
  text: Fe,
@@ -8510,7 +8510,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
8510
8510
  },
8511
8511
  []
8512
8512
  );
8513
- ne(() => {
8513
+ re(() => {
8514
8514
  if (!y || !E.current) return;
8515
8515
  const G = E.current, Ae = G.getModel();
8516
8516
  if (!Ae) return;
@@ -8610,7 +8610,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
8610
8610
  Ae(), Ce.dispose();
8611
8611
  });
8612
8612
  }
8613
- re.current && G.onMouseDown(() => {
8613
+ ne.current && G.onMouseDown(() => {
8614
8614
  requestAnimationFrame(() => {
8615
8615
  const Ce = G.getPosition();
8616
8616
  Ce && J(G, Ce.lineNumber, Ce.column);
@@ -8668,7 +8668,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
8668
8668
  }, _e = (G) => {
8669
8669
  typeof G == "string" && e(G);
8670
8670
  };
8671
- if (ne(() => {
8671
+ if (re(() => {
8672
8672
  c && c(W || Q);
8673
8673
  }, [W, Q, c]), !s && !I)
8674
8674
  return /* @__PURE__ */ A("div", { className: "flex items-center justify-center p-8 border border-neutral-200 dark:border-neutral-700 rounded-lg", children: /* @__PURE__ */ A("div", { className: "text-neutral-600 dark:text-neutral-400", children: "Loading editor..." }) });
@@ -8929,7 +8929,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
8929
8929
  width: o = 1040
8930
8930
  }) => {
8931
8931
  const [s, l] = X(n);
8932
- ne(() => {
8932
+ re(() => {
8933
8933
  l(n);
8934
8934
  }, [t, n]);
8935
8935
  const u = () => {
@@ -8996,10 +8996,10 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
8996
8996
  onConfidenceScoreClick: S,
8997
8997
  disabled: w = !1,
8998
8998
  ...k
8999
- } = t, [O, C] = X(null), [N, P] = X(!1), L = oe(null);
9000
- ne(() => {
8999
+ } = t, [O, C] = X(null), [N, P] = X(!1), L = ae(null);
9000
+ re(() => {
9001
9001
  C(null);
9002
- }, [f]), ne(() => {
9002
+ }, [f]), re(() => {
9003
9003
  O !== null && o(O);
9004
9004
  }, [O, o]);
9005
9005
  const R = () => {
@@ -9122,7 +9122,7 @@ const tL = () => /* @__PURE__ */ A("svg", { width: "16", height: "16", viewBox:
9122
9122
  )
9123
9123
  ] }),
9124
9124
  l && /* @__PURE__ */ A(
9125
- ae,
9125
+ oe,
9126
9126
  {
9127
9127
  className: "text-error-500 mt-1 ",
9128
9128
  appearance: "custom",
@@ -9338,7 +9338,7 @@ const _L = ct(
9338
9338
  /* @__PURE__ */ A("span", { className: "absolute inset-y-0 right-3 flex items-center z-[1000px] h-full dark:text-black-100", children: "%" })
9339
9339
  ] }),
9340
9340
  i && /* @__PURE__ */ A(
9341
- ae,
9341
+ oe,
9342
9342
  {
9343
9343
  className: "text-error-500 mt-1",
9344
9344
  appearance: "custom",
@@ -9379,12 +9379,12 @@ const vL = ct(({ onSubmit: t, ...e }, r) => /* @__PURE__ */ A(
9379
9379
  }
9380
9380
  ));
9381
9381
  vL.displayName = "Form";
9382
- const yL = typeof window < "u" ? ul : ne;
9382
+ const yL = typeof window < "u" ? ul : re;
9383
9383
  function ZS(t, e, r, n) {
9384
- const i = oe(e);
9384
+ const i = ae(e);
9385
9385
  yL(() => {
9386
9386
  i.current = e;
9387
- }, [e]), ne(() => {
9387
+ }, [e]), re(() => {
9388
9388
  const a = r?.current || window;
9389
9389
  if (!(a && a.addEventListener) || t === null)
9390
9390
  return;
@@ -9397,7 +9397,7 @@ function ZS(t, e, r, n) {
9397
9397
  const nu = ke.memo(
9398
9398
  ke.forwardRef(
9399
9399
  ({ adjustWithScreen: t, children: e, renderViewClassName: r, fullHeight: n, ...i }, a) => {
9400
- const [o, s] = X(window.innerHeight), l = oe(null);
9400
+ const [o, s] = X(window.innerHeight), l = ae(null);
9401
9401
  return ZS("resize", () => {
9402
9402
  t && s(window.innerHeight);
9403
9403
  }), Eb(
@@ -9485,7 +9485,7 @@ const Iue = ({
9485
9485
  onClick: () => h("markdown"),
9486
9486
  disabled: a,
9487
9487
  children: /* @__PURE__ */ A(
9488
- ae,
9488
+ oe,
9489
9489
  {
9490
9490
  variant: "semibold",
9491
9491
  size: "extra-small",
@@ -9508,7 +9508,7 @@ const Iue = ({
9508
9508
  onClick: () => h("preview"),
9509
9509
  disabled: a,
9510
9510
  children: /* @__PURE__ */ A(
9511
- ae,
9511
+ oe,
9512
9512
  {
9513
9513
  variant: "semibold",
9514
9514
  size: "extra-small",
@@ -9678,11 +9678,11 @@ const Iue = ({
9678
9678
  }
9679
9679
  _(null), x([]), t(""), m?.();
9680
9680
  };
9681
- ne(() => {
9681
+ re(() => {
9682
9682
  a?.name && _(a);
9683
- }, [a]), ne(() => {
9683
+ }, [a]), re(() => {
9684
9684
  S(n ? "#EF4444" : "#d9d9d9");
9685
- }, [n]), ne(() => {
9685
+ }, [n]), re(() => {
9686
9686
  y.length && N();
9687
9687
  }, [y]);
9688
9688
  const R = (D) => D ? D.length <= 20 ? D : D.slice(0, 14) + "...." + D.slice(-7) : "";
@@ -9708,8 +9708,8 @@ const Iue = ({
9708
9708
  }
9709
9709
  ) }),
9710
9710
  /* @__PURE__ */ T("div", { className: "text-left", children: [
9711
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: "font-inter text-md font-medium text-base", children: R(g?.name || a?.name) }),
9712
- d ? /* @__PURE__ */ A(ae, { size: "small", variant: "medium", appearance: "subtitle", children: "Uploading..." }) : g?.size > 0 ? /* @__PURE__ */ T(ae, { size: "small", variant: "medium", appearance: "subtitle", children: [
9711
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "font-inter text-md font-medium text-base", children: R(g?.name || a?.name) }),
9712
+ d ? /* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "subtitle", children: "Uploading..." }) : g?.size > 0 ? /* @__PURE__ */ T(oe, { size: "small", variant: "medium", appearance: "subtitle", children: [
9713
9713
  (g.size / 1e3).toFixed(2),
9714
9714
  " ",
9715
9715
  "KB"
@@ -9732,15 +9732,15 @@ const Iue = ({
9732
9732
  /* @__PURE__ */ A("div", { className: "mb-4 flex justify-center", children: /* @__PURE__ */ A(RN, { size: 24, className: "text-neutral-400 dark:text-neutral-400" }) }),
9733
9733
  /* @__PURE__ */ T("div", { children: [
9734
9734
  /* @__PURE__ */ T("div", { className: "flex items-center justify-center", children: [
9735
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: "text-primary-600 dark:text-primary-300", appearance: "custom", children: "Click to upload" }),
9736
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: "ml-1", appearance: "subtitle", children: "or drag and drop" })
9735
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "text-primary-600 dark:text-primary-300", appearance: "custom", children: "Click to upload" }),
9736
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "ml-1", appearance: "subtitle", children: "or drag and drop" })
9737
9737
  ] }),
9738
- r ? /* @__PURE__ */ A(ae, { size: "small", variant: "medium", appearance: "subtitle", children: r }) : null
9738
+ r ? /* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "subtitle", children: r }) : null
9739
9739
  ] })
9740
9740
  ] }) })
9741
9741
  }
9742
9742
  ) }),
9743
- n && /* @__PURE__ */ A(ae, { className: "text-error-500 mt-1", appearance: "custom", size: "extra-small", variant: "medium", children: n })
9743
+ n && /* @__PURE__ */ A(oe, { className: "text-error-500 mt-1", appearance: "custom", size: "extra-small", variant: "medium", children: n })
9744
9744
  ] });
9745
9745
  }, SL = Object.keys(Yu).filter(
9746
9746
  (t) => t?.endsWith("Rounded")
@@ -9859,8 +9859,8 @@ const Iue = ({
9859
9859
  errorMessage: o,
9860
9860
  dropdownPosition: s = "bottom"
9861
9861
  }) => {
9862
- const [l, u] = X(!1), c = oe(!1), d = oe(null), f = oe(!1);
9863
- ne(() => {
9862
+ const [l, u] = X(!1), c = ae(!1), d = ae(null), f = ae(!1);
9863
+ re(() => {
9864
9864
  f.current && !l && d.current?.focus(), f.current = l;
9865
9865
  }, [l]);
9866
9866
  const p = (h) => {
@@ -9900,7 +9900,7 @@ const Iue = ({
9900
9900
  },
9901
9901
  children: [
9902
9902
  t ? /* @__PURE__ */ A($S, { iconName: t, sx: { width: 20, height: 20 }, className: "text-neutral-900 dark:text-white" }) : /* @__PURE__ */ A(
9903
- ae,
9903
+ oe,
9904
9904
  {
9905
9905
  size: "small",
9906
9906
  variant: "medium",
@@ -9919,7 +9919,7 @@ const Iue = ({
9919
9919
  ]
9920
9920
  }
9921
9921
  ),
9922
- o && /* @__PURE__ */ A(ae, { size: "extra-small", className: "text-red-500 font-medium", children: o })
9922
+ o && /* @__PURE__ */ A(oe, { size: "extra-small", className: "text-red-500 font-medium", children: o })
9923
9923
  ] })
9924
9924
  }
9925
9925
  );
@@ -10081,8 +10081,8 @@ const Xb = ({
10081
10081
  footer: m,
10082
10082
  ...v
10083
10083
  }) => {
10084
- const g = oe(!1), [_, y] = X(s);
10085
- ne(() => {
10084
+ const g = ae(!1), [_, y] = X(s);
10085
+ re(() => {
10086
10086
  y(s);
10087
10087
  }, [n, s]);
10088
10088
  const x = ue(
@@ -10098,7 +10098,7 @@ const Xb = ({
10098
10098
  ), E = ue(() => {
10099
10099
  g.current && (g.current = !1);
10100
10100
  }, []);
10101
- ne(() => (document.addEventListener("mousemove", x), document.addEventListener("mouseup", E), () => {
10101
+ re(() => (document.addEventListener("mousemove", x), document.addEventListener("mouseup", E), () => {
10102
10102
  document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", E);
10103
10103
  }), [x, E]);
10104
10104
  const S = typeof window < "u" ? document.getElementById(a) || document.body : null;
@@ -10143,8 +10143,8 @@ const Xb = ({
10143
10143
  Xb.displayName = "Drawer";
10144
10144
  const Fue = ({ children: t, showAsModal: e, ...r }) => e ? /* @__PURE__ */ A(Pn, { onCancel: r.onClose, ...r, children: t }) : /* @__PURE__ */ A(Xb, { ...r, children: t });
10145
10145
  function RL(t) {
10146
- const [e, r] = X(void 0), n = oe(null);
10147
- return ne(() => {
10146
+ const [e, r] = X(void 0), n = ae(null);
10147
+ return re(() => {
10148
10148
  if (t.current)
10149
10149
  return n.current = new ResizeObserver((i) => {
10150
10150
  if (i[0]) {
@@ -10168,7 +10168,7 @@ const Uue = ({
10168
10168
  fitContent: l = !1,
10169
10169
  trailingContent: u
10170
10170
  }) => {
10171
- const c = oe(null), d = RL(c), f = (x) => {
10171
+ const c = ae(null), d = RL(c), f = (x) => {
10172
10172
  switch (x) {
10173
10173
  case "xs":
10174
10174
  return 6.5;
@@ -10383,7 +10383,7 @@ const Uue = ({
10383
10383
  decodeEntities: I = !0,
10384
10384
  onAiExtractedIndicatorClick: M
10385
10385
  }, B) => {
10386
- const [W, Q] = X(!0), [te, j] = X(!1), [q, K] = X(null), [ie, Y] = X(!1), Z = (ge) => I ? yR(ge) : ge, re = () => {
10386
+ const [W, Q] = X(!0), [te, j] = X(!1), [q, K] = X(null), [ie, Y] = X(!1), Z = (ge) => I ? yR(ge) : ge, ne = () => {
10387
10387
  Q(!W);
10388
10388
  }, J = (ge) => {
10389
10389
  j(!0), K({ ...ge, value: r });
@@ -10432,9 +10432,9 @@ const Uue = ({
10432
10432
  {
10433
10433
  id: `btn-label-value-${W ? "Show more" : "Show less"}`,
10434
10434
  className: "text-primary-400 text-sm hover:text-primary-500 cursor-pointer whitespace-nowrap",
10435
- onClick: re,
10435
+ onClick: ne,
10436
10436
  onKeyDown: (Se) => {
10437
- (Se.key === "Enter" || Se.key === " ") && (Se.preventDefault(), re());
10437
+ (Se.key === "Enter" || Se.key === " ") && (Se.preventDefault(), ne());
10438
10438
  },
10439
10439
  "aria-label": W ? "Show more content" : "Show less content",
10440
10440
  type: "button",
@@ -10484,7 +10484,7 @@ const Uue = ({
10484
10484
  "aria-label": F || `Label: ${e}, Value: ${r}`,
10485
10485
  children: [
10486
10486
  /* @__PURE__ */ T(
10487
- ae,
10487
+ oe,
10488
10488
  {
10489
10489
  variant: "medium",
10490
10490
  size: _e(),
@@ -10542,7 +10542,7 @@ const Uue = ({
10542
10542
  }
10543
10543
  ),
10544
10544
  /* @__PURE__ */ T(
10545
- ae,
10545
+ oe,
10546
10546
  {
10547
10547
  variant: "medium",
10548
10548
  size: _e(),
@@ -10599,7 +10599,7 @@ const Uue = ({
10599
10599
  }
10600
10600
  ),
10601
10601
  f && !v && /* @__PURE__ */ A(
10602
- ae,
10602
+ oe,
10603
10603
  {
10604
10604
  variant: "medium",
10605
10605
  size: "extra-small",
@@ -10619,7 +10619,7 @@ const Uue = ({
10619
10619
  {
10620
10620
  id: `btn-label-value-${W ? "Show more" : "Show less"}`,
10621
10621
  className: "text-primary-400 text-sm hover:text-primary-500 cursor-pointer whitespace-nowrap",
10622
- onClick: re,
10622
+ onClick: ne,
10623
10623
  children: W ? "Show more" : "Show less"
10624
10624
  }
10625
10625
  )
@@ -10834,15 +10834,15 @@ const UL = () => /* @__PURE__ */ A("div", { className: "cursor-ew-resize flex it
10834
10834
  }
10835
10835
  }, qL = (t, e, r, n, i, a) => {
10836
10836
  const [o, s] = X(!1), [l, u] = X(null);
10837
- return ne(() => {
10837
+ return re(() => {
10838
10838
  if (!t || typeof window > "u") {
10839
10839
  u(null);
10840
10840
  return;
10841
10841
  }
10842
10842
  zL(t, u);
10843
- }, [t]), ne(() => {
10843
+ }, [t]), re(() => {
10844
10844
  BL(i, r);
10845
- }, [r]), ne(() => {
10845
+ }, [r]), re(() => {
10846
10846
  if (t && e) {
10847
10847
  const c = requestAnimationFrame(() => {
10848
10848
  s(!0);
@@ -10852,7 +10852,7 @@ const UL = () => /* @__PURE__ */ A("div", { className: "cursor-ew-resize flex it
10852
10852
  };
10853
10853
  }
10854
10854
  t || s(!0), e || s(!1);
10855
- }, [e, t]), ne(() => {
10855
+ }, [e, t]), re(() => {
10856
10856
  i.current?.size?.width && n && n(i.current.size.width);
10857
10857
  }, [i.current?.size?.width, n]), { shouldRenderSidebar: o, portalTarget: l };
10858
10858
  }, VL = ({
@@ -10965,7 +10965,7 @@ const UL = () => /* @__PURE__ */ A("div", { className: "cursor-ew-resize flex it
10965
10965
  mainSidebarCollapsedWidth: g = 80,
10966
10966
  navbarHeight: _ = 64
10967
10967
  }, y) => {
10968
- const x = m ? v : g, E = oe(null), { shouldRenderSidebar: S, portalTarget: w } = qL(
10968
+ const x = m ? v : g, E = ae(null), { shouldRenderSidebar: S, portalTarget: w } = qL(
10969
10969
  u,
10970
10970
  t,
10971
10971
  r,
@@ -28816,17 +28816,17 @@ function Hq(t) {
28816
28816
  return () => {
28817
28817
  O && (P(void 0), C(void 0));
28818
28818
  };
28819
- }, [w, N]), ne(() => {
28819
+ }, [w, N]), re(() => {
28820
28820
  t.container && k(t.container);
28821
- }, [t.container]), ne(() => () => {
28821
+ }, [t.container]), re(() => () => {
28822
28822
  O && (O.destroy(), C(void 0)), L.current && (L.current.cancel(), L.current = null);
28823
- }, [O]), ne(() => {
28823
+ }, [O]), re(() => {
28824
28824
  l && O && O.focus();
28825
- }, [l, O]), ne(() => {
28825
+ }, [l, O]), re(() => {
28826
28826
  O && O.dispatch({
28827
28827
  effects: et.reconfigure.of(M)
28828
28828
  });
28829
- }, [u, s, c, d, f, p, h, m, v, g, _, y, x, n, o]), ne(() => {
28829
+ }, [u, s, c, d, f, p, h, m, v, g, _, y, x, n, o]), re(() => {
28830
28830
  if (e !== void 0) {
28831
28831
  var B = O ? O.state.doc.toString() : "";
28832
28832
  if (O && e !== B) {
@@ -28877,7 +28877,7 @@ var Fq = ["className", "value", "selection", "extensions", "onChange", "onStatis
28877
28877
  readOnly: S,
28878
28878
  root: w,
28879
28879
  initialState: k
28880
- } = t, O = e7(t, Fq), C = oe(null), {
28880
+ } = t, O = e7(t, Fq), C = ae(null), {
28881
28881
  state: N,
28882
28882
  view: P,
28883
28883
  container: L,
@@ -30882,7 +30882,7 @@ const mW = ({
30882
30882
  checkSyntaxAPI: i,
30883
30883
  formatCodeAPI: a
30884
30884
  }) => {
30885
- const [o, s] = X(null), [l, u] = X(!1), c = oe(t);
30885
+ const [o, s] = X(null), [l, u] = X(!1), c = ae(t);
30886
30886
  c.current = t;
30887
30887
  const d = Pe(() => ok(), []), f = ue(() => {
30888
30888
  const m = c.current;
@@ -30936,7 +30936,7 @@ const mW = ({
30936
30936
  }
30937
30937
  }
30938
30938
  }, [e, r, a]);
30939
- return ne(() => {
30939
+ return re(() => {
30940
30940
  if (!n || !i || !c.current) return;
30941
30941
  const m = CS(() => {
30942
30942
  p();
@@ -31028,7 +31028,7 @@ const NW = ({
31028
31028
  onBlockClick: g,
31029
31029
  focusBlock: _
31030
31030
  }) => {
31031
- const y = oe(null), [x, E] = X("light"), S = c ?? x, [w, k] = X(!1), [O, C] = X("JSON"), [N, P] = X(!1), [L, R] = X(!1), D = o === "json", F = TS(), I = oe(g);
31031
+ const y = ae(null), [x, E] = X("light"), S = c ?? x, [w, k] = X(!1), [O, C] = X("JSON"), [N, P] = X(!1), [L, R] = X(!1), D = o === "json", F = TS(), I = ae(g);
31032
31032
  I.current = g;
31033
31033
  const M = () => {
31034
31034
  F?.active ? F.exit() : F.enter();
@@ -31045,7 +31045,7 @@ const NW = ({
31045
31045
  checkSyntaxAPI: h,
31046
31046
  formatCodeAPI: m
31047
31047
  });
31048
- ne(() => {
31048
+ re(() => {
31049
31049
  p && p(W || Q);
31050
31050
  }, [W, Q, p]);
31051
31051
  const j = Pe(() => o !== "json" ? [] : uq((_e) => {
@@ -31082,7 +31082,7 @@ const NW = ({
31082
31082
  });
31083
31083
  }
31084
31084
  }, []);
31085
- ne(() => {
31085
+ re(() => {
31086
31086
  if (!_) return;
31087
31087
  const _e = y.current?.view;
31088
31088
  if (!_e) return;
@@ -31134,7 +31134,7 @@ const NW = ({
31134
31134
  toastId: "code-editor-beta-format-error"
31135
31135
  });
31136
31136
  }
31137
- }, re = (_e, me) => _e.replace(/[<>:"/\\|?*\x00-\x1f]/g, "_").replace(/\.{2,}/g, ".").replace(/^\.+|\.+$/g, "").trim() || me, J = (_e) => _e === "python" ? { type: "text/x-python", extension: "py" } : _e === "json" ? { type: "application/json", extension: "json" } : { type: "text/plain", extension: "txt" }, ce = () => {
31137
+ }, ne = (_e, me) => _e.replace(/[<>:"/\\|?*\x00-\x1f]/g, "_").replace(/\.{2,}/g, ".").replace(/^\.+|\.+$/g, "").trim() || me, J = (_e) => _e === "python" ? { type: "text/x-python", extension: "py" } : _e === "json" ? { type: "application/json", extension: "json" } : { type: "text/plain", extension: "txt" }, ce = () => {
31138
31138
  if (o === "python")
31139
31139
  try {
31140
31140
  let _e = t;
@@ -31174,8 +31174,8 @@ const NW = ({
31174
31174
  try {
31175
31175
  const _e = new Blob([t], { type: J(o)?.type }), me = URL.createObjectURL(_e), ge = document.createElement("a");
31176
31176
  ge.href = me;
31177
- const we = J(o)?.extension || "txt", Se = re(we, "txt");
31178
- ge.download = re(
31177
+ const we = J(o)?.extension || "txt", Se = ne(we, "txt");
31178
+ ge.download = ne(
31179
31179
  `code_${Date.now()}.${Se}`,
31180
31180
  `code_${Date.now()}.${Se}`
31181
31181
  ), document.body.appendChild(ge), ge.click(), document.body.removeChild(ge), URL.revokeObjectURL(me);
@@ -31484,8 +31484,8 @@ const Xue = ({
31484
31484
  ), Que = ({ title: t, visible: e, onClose: r, content: n }) => /* @__PURE__ */ T(Pn, { title: null, open: e, footer: null, onCancel: r, zIndex: 9999, showCloseButton: !1, width: 400, children: [
31485
31485
  /* @__PURE__ */ T("div", { children: [
31486
31486
  /* @__PURE__ */ A("div", { className: "flex justify-center", children: /* @__PURE__ */ A("div", { className: "flex w-[48px] h-[48px] justify-center items-center gap-2 rounded-lg border border-[#54A4EC] shadow-[0_0_4px_2px_rgba(198,225,249,0.20)_inset]", children: /* @__PURE__ */ A(RW, {}) }) }),
31487
- /* @__PURE__ */ A(ae, { size: "medium", variant: "semibold", className: "text-center mt-3", children: t }),
31488
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: "text-center text-neutral-500 mt-2 dark:text-neutral-400", appearance: "custom", children: n })
31487
+ /* @__PURE__ */ A(oe, { size: "medium", variant: "semibold", className: "text-center mt-3", children: t }),
31488
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "text-center text-neutral-500 mt-2 dark:text-neutral-400", appearance: "custom", children: n })
31489
31489
  ] }),
31490
31490
  /* @__PURE__ */ A("div", { className: "flex justify-center mt-4", children: /* @__PURE__ */ A(Tt, { id: "btn-access-denied-modal-close", appearance: "outline", status: "secondary-neutral", onClick: r, children: "Close" }) })
31491
31491
  ] }), Gue = ({ containerClass: t }) => /* @__PURE__ */ A("div", { className: U("flex justify-center items-center h-table", t), children: /* @__PURE__ */ T("div", { className: "flex flex-col items-center text-neutral-800 -mt-12", children: [
@@ -31619,7 +31619,7 @@ const Xue = ({
31619
31619
  }
31620
31620
  )
31621
31621
  ] }, ""), children: /* @__PURE__ */ T("div", { className: "mt-5 mb-8", children: [
31622
- /* @__PURE__ */ T(ae, { variant: "regular", size: "medium", appearance: "body", className: "font-inter", children: [
31622
+ /* @__PURE__ */ T(oe, { variant: "regular", size: "medium", appearance: "body", className: "font-inter", children: [
31623
31623
  s,
31624
31624
  n && /* @__PURE__ */ T("span", { className: "font-bold text-neutral-900 dark:text-neutral-100", children: [
31625
31625
  " ",
@@ -31631,7 +31631,7 @@ const Xue = ({
31631
31631
  ] }),
31632
31632
  "?"
31633
31633
  ] }),
31634
- l && /* @__PURE__ */ A(ae, { variant: "regular", size: "medium", className: "text-neutral-700 font-inter mt-5", children: l })
31634
+ l && /* @__PURE__ */ A(oe, { variant: "regular", size: "medium", className: "text-neutral-700 font-inter mt-5", children: l })
31635
31635
  ] }) });
31636
31636
  }, bk = ct(
31637
31637
  ({
@@ -31807,7 +31807,7 @@ const $ue = bk, Jue = ({ icon: t, title: e, description: r, variant: n, classNam
31807
31807
  children: t
31808
31808
  }
31809
31809
  ), MW = (t, e) => {
31810
- ne(() => () => {
31810
+ re(() => () => {
31811
31811
  }, [t, e]);
31812
31812
  }, HW = (t) => {
31813
31813
  const {
@@ -31826,10 +31826,10 @@ const $ue = bk, Jue = ({ icon: t, title: e, description: r, variant: n, classNam
31826
31826
  onSelectResult: p,
31827
31827
  isLoading: h,
31828
31828
  ...m
31829
- } = t, { t: v } = Kt(), [g, _] = X(r?.slice(0, 0)), [y, x] = X(0), [E, S] = X(!1), [w, k] = X("search"), [O, C] = X(!0), N = oe(null);
31829
+ } = t, { t: v } = Kt(), [g, _] = X(r?.slice(0, 0)), [y, x] = X(0), [E, S] = X(!1), [w, k] = X("search"), [O, C] = X(!0), N = ae(null);
31830
31830
  MW(i, f || N);
31831
31831
  const P = l ? (s || 0) + 1 : 0;
31832
- ne(() => {
31832
+ re(() => {
31833
31833
  const F = setInterval(() => {
31834
31834
  _(r?.slice(0, y)), y + 1 > (r?.length || 0) ? x(0) : x(y + 1);
31835
31835
  }, 100);
@@ -31892,7 +31892,7 @@ const $ue = bk, Jue = ({ icon: t, title: e, description: r, variant: n, classNam
31892
31892
  }
31893
31893
  ),
31894
31894
  h ? /* @__PURE__ */ A("div", { className: "flex absolute right-0 mr-2 focus:outline-none", children: /* @__PURE__ */ A(sD, { sx: { color: "var(--color-primary-600)" }, className: "text-gray-400 dark:text-black-200", size: 16 }) }) : e ? /* @__PURE__ */ T("div", { className: "flex absolute right-0 mr-2 focus:outline-none", children: [
31895
- /* @__PURE__ */ T(ae, { size: "small", variant: "semibold", className: "text-gray-400 dark:text-black-200 mx-2 mt-[2px]", appearance: "custom", children: [
31895
+ /* @__PURE__ */ T(oe, { size: "small", variant: "semibold", className: "text-gray-400 dark:text-black-200 mx-2 mt-[2px]", appearance: "custom", children: [
31896
31896
  P,
31897
31897
  "/",
31898
31898
  l || 0
@@ -31915,7 +31915,7 @@ const $ue = bk, Jue = ({ icon: t, title: e, description: r, variant: n, classNam
31915
31915
  ) }) });
31916
31916
  }, _k = () => {
31917
31917
  const { pathname: t } = TC();
31918
- ne(() => {
31918
+ re(() => {
31919
31919
  window.scrollTo(0, 0);
31920
31920
  }, [t]);
31921
31921
  };
@@ -32634,7 +32634,7 @@ function gX(t) {
32634
32634
  if (!(!a || !e || !r || !i)) {
32635
32635
  var o = e.velocityX, s = e.velocityY, l = e.total, u = r.maxPositionX, c = r.minPositionX, d = r.maxPositionY, f = r.minPositionY, p = n.limitToBounds, h = n.alignmentAnimation, m = n.zoomAnimation, v = n.panning, g = v.lockAxisY, _ = v.lockAxisX, y = m.animationType, x = h.sizeX, E = h.sizeY, S = h.velocityAlignmentTime, w = S, k = pX(t, l), O = Math.max(k, w), C = ra(t, x), N = ra(t, E), P = C * i.offsetWidth / 100, L = N * i.offsetHeight / 100, R = u + P, D = c - P, F = d + L, I = f - L, M = t.transformState, B = (/* @__PURE__ */ new Date()).getTime();
32636
32636
  Sk(t, y, O, function(W) {
32637
- var Q = t.transformState, te = Q.scale, j = Q.positionX, q = Q.positionY, K = (/* @__PURE__ */ new Date()).getTime() - B, ie = K / w, Y = yk[h.animationType], Z = 1 - Y(Math.min(1, ie)), re = 1 - W, J = j + o * re, ce = q + s * re, ze = my(J, M.positionX, j, _, p, c, u, D, R, Z), Ee = my(ce, M.positionY, q, g, p, f, d, I, F, Z);
32637
+ var Q = t.transformState, te = Q.scale, j = Q.positionX, q = Q.positionY, K = (/* @__PURE__ */ new Date()).getTime() - B, ie = K / w, Y = yk[h.animationType], Z = 1 - Y(Math.min(1, ie)), ne = 1 - W, J = j + o * ne, ce = q + s * ne, ze = my(J, M.positionX, j, _, p, c, u, D, R, Z), Ee = my(ce, M.positionY, q, g, p, f, d, I, F, Z);
32638
32638
  (j !== J || q !== ce) && t.setTransformState(te, ze, Ee);
32639
32639
  });
32640
32640
  }
@@ -33244,16 +33244,16 @@ var KX = function(t, e) {
33244
33244
  ), z2 = ke.createContext(null), $X = function(t, e) {
33245
33245
  return typeof t == "function" ? t(e) : t;
33246
33246
  }, JX = ke.forwardRef(function(t, e) {
33247
- var r = oe(new ZX(t)).current, n = $X(t.children, eb(r));
33247
+ var r = ae(new ZX(t)).current, n = $X(t.children, eb(r));
33248
33248
  return Eb(e, function() {
33249
33249
  return eb(r);
33250
- }, [r]), ne(function() {
33250
+ }, [r]), re(function() {
33251
33251
  r.update(t);
33252
33252
  }, [r, t]), ke.createElement(z2.Provider, { value: r }, n);
33253
33253
  });
33254
33254
  ke.forwardRef(function(t, e) {
33255
- var r = oe(null), n = fr(z2);
33256
- return ne(function() {
33255
+ var r = ae(null), n = fr(z2);
33256
+ return re(function() {
33257
33257
  return n.onChange(function(i) {
33258
33258
  if (r.current) {
33259
33259
  var a = 0, o = 0;
@@ -33304,8 +33304,8 @@ var tj = `.transform-component-module_wrapper__SPB86 {
33304
33304
  `, yy = { wrapper: "transform-component-module_wrapper__SPB86", content: "transform-component-module_content__FBWxo" };
33305
33305
  ej(tj);
33306
33306
  var rj = function(t) {
33307
- var e = t.children, r = t.wrapperClass, n = r === void 0 ? "" : r, i = t.contentClass, a = i === void 0 ? "" : i, o = t.wrapperStyle, s = t.contentStyle, l = t.wrapperProps, u = l === void 0 ? {} : l, c = t.contentProps, d = c === void 0 ? {} : c, f = fr(z2), p = f.init, h = f.cleanupWindowEvents, m = oe(null), v = oe(null);
33308
- return ne(function() {
33307
+ var e = t.children, r = t.wrapperClass, n = r === void 0 ? "" : r, i = t.contentClass, a = i === void 0 ? "" : i, o = t.wrapperStyle, s = t.contentStyle, l = t.wrapperProps, u = l === void 0 ? {} : l, c = t.contentProps, d = c === void 0 ? {} : c, f = fr(z2), p = f.init, h = f.cleanupWindowEvents, m = ae(null), v = ae(null);
33308
+ return re(function() {
33309
33309
  var g = m.current, _ = v.current;
33310
33310
  return g !== null && _ !== null && p && p?.(g, _), function() {
33311
33311
  h?.();
@@ -33333,7 +33333,7 @@ const nj = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEIAAAAugCAYAAABoY/TMAA
33333
33333
  ...p
33334
33334
  }) => {
33335
33335
  const [h, m] = X(9), [v, g] = X(!1);
33336
- ne(() => {
33336
+ re(() => {
33337
33337
  const y = () => {
33338
33338
  g(document.documentElement.classList.contains("dark"));
33339
33339
  };
@@ -33387,7 +33387,7 @@ const nj = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAEIAAAAugCAYAAABoY/TMAA
33387
33387
  ),
33388
33388
  /* @__PURE__ */ T(IW, { variant: "group", children: [
33389
33389
  /* @__PURE__ */ A(br, { onClick: () => y(), className: "rounded-r-none", noborder: !0, tooltip: "Zoom In", children: /* @__PURE__ */ A(SS, { className: "text-neutral-900 dark:text-white" }) }),
33390
- /* @__PURE__ */ A(br, { onClick: () => x(), className: "rounded-none h-full", noborder: !0, tooltip: "Zoom Out", children: /* @__PURE__ */ A(ae, { size: "small", variant: "medium", children: h + "%" }) }),
33390
+ /* @__PURE__ */ A(br, { onClick: () => x(), className: "rounded-none h-full", noborder: !0, tooltip: "Zoom Out", children: /* @__PURE__ */ A(oe, { size: "small", variant: "medium", children: h + "%" }) }),
33391
33391
  /* @__PURE__ */ A(br, { onClick: () => x(), className: "rounded-l-none", noborder: !0, tooltip: "Zoom Out", children: /* @__PURE__ */ A(FC, { className: "text-neutral-900 dark:text-white" }) })
33392
33392
  ] }),
33393
33393
  /* @__PURE__ */ A(br, { onClick: () => E(), tooltip: "Reset Zoom", children: /* @__PURE__ */ A(UC, { className: "text-neutral-900 dark:text-white" }) })
@@ -33432,7 +33432,7 @@ const Ik = ct(
33432
33432
  n?.(t?.id || "");
33433
33433
  };
33434
33434
  return /* @__PURE__ */ A("div", { ref: i, className: "min-w-0 w-full", children: /* @__PURE__ */ A(
33435
- ae,
33435
+ oe,
33436
33436
  {
33437
33437
  size: "small",
33438
33438
  variant: "medium",
@@ -33471,8 +33471,8 @@ const oj = ({
33471
33471
  variant: e = "primary",
33472
33472
  onClick: r
33473
33473
  }) => {
33474
- const n = oe([]), [i, a] = X([]);
33475
- ne(() => {
33474
+ const n = ae([]), [i, a] = X([]);
33475
+ re(() => {
33476
33476
  const s = () => {
33477
33477
  const c = n?.current?.map((d) => {
33478
33478
  if (!d) return !1;
@@ -34975,7 +34975,7 @@ const Lj = ({ text: t }) => {
34975
34975
  const i = t.split(/(<um>.*?<\/um>)/);
34976
34976
  r(i);
34977
34977
  };
34978
- return ne(() => {
34978
+ return re(() => {
34979
34979
  n();
34980
34980
  }, [t]), /* @__PURE__ */ A(ot, { children: e.map((i, a) => i.includes("<um>") ? /* @__PURE__ */ A(
34981
34981
  "span",
@@ -35109,7 +35109,7 @@ const bce = Al(Vk), Ij = (t, e, r) => {
35109
35109
  d(!1), n?.(h.target.value);
35110
35110
  };
35111
35111
  return /* @__PURE__ */ T("div", { className: "flex flex-col gap-1", children: [
35112
- t && /* @__PURE__ */ A(ae, { size: "extra-small", variant: "regular", appearance: "subtitle", children: t }),
35112
+ t && /* @__PURE__ */ A(oe, { size: "extra-small", variant: "regular", appearance: "subtitle", children: t }),
35113
35113
  /* @__PURE__ */ A(
35114
35114
  "input",
35115
35115
  {
@@ -35199,9 +35199,9 @@ const Hj = ({
35199
35199
  ),
35200
35200
  /* @__PURE__ */ T("div", { className: "flex gap-2 items-center", children: [
35201
35201
  m,
35202
- /* @__PURE__ */ A(ae, { size: "small", appearance: "body", variant: "medium", className: "whitespace-nowrap", children: e })
35202
+ /* @__PURE__ */ A(oe, { size: "small", appearance: "body", variant: "medium", className: "whitespace-nowrap", children: e })
35203
35203
  ] }),
35204
- /* @__PURE__ */ A(ae, { size: "extra-small", appearance: "title", variant: "medium", className: "ml-1", children: c }),
35204
+ /* @__PURE__ */ A(oe, { size: "extra-small", appearance: "title", variant: "medium", className: "ml-1", children: c }),
35205
35205
  v,
35206
35206
  /* @__PURE__ */ A("span", { children: i === a && !o && /* @__PURE__ */ A(br, { variant: "ghost", children: /* @__PURE__ */ A(MN, { size: 16, className: "ml-[8px] text-neutral-400 dark:text-neutral-400" }) }) })
35207
35207
  ] })
@@ -35250,7 +35250,7 @@ const Fj = ({
35250
35250
  isMainSideBarOpen: l = !1,
35251
35251
  isAuthoringOpen: u = !1
35252
35252
  }) => {
35253
- const c = oe(null), [d, f] = X(0), [p, h] = X(0), [m, v] = X(0), [g, _] = X(""), [y, x] = X(""), E = () => n === "top" || n === "top-right" ? "flex-col" : n === "bottom" || n === "bottom-right" ? "flex-col-reverse" : r === "linear" ? "flex-row" : "flex-col", S = () => {
35253
+ const c = ae(null), [d, f] = X(0), [p, h] = X(0), [m, v] = X(0), [g, _] = X(""), [y, x] = X(""), E = () => n === "top" || n === "top-right" ? "flex-col" : n === "bottom" || n === "bottom-right" ? "flex-col-reverse" : r === "linear" ? "flex-row" : "flex-col", S = () => {
35254
35254
  setTimeout(() => {
35255
35255
  f(0);
35256
35256
  const k = 210, O = 225;
@@ -35260,13 +35260,13 @@ const Fj = ({
35260
35260
  f(N), c?.current?.clientWidth && c?.current?.clientWidth < 480 && f(t?.length);
35261
35261
  }, 300);
35262
35262
  };
35263
- ne(() => {
35263
+ re(() => {
35264
35264
  S();
35265
- }, [l, t, e]), ne(() => {
35265
+ }, [l, t, e]), re(() => {
35266
35266
  setTimeout(() => {
35267
35267
  S();
35268
35268
  }, 300);
35269
- }, [u]), ne(() => {
35269
+ }, [u]), re(() => {
35270
35270
  if (d > 0)
35271
35271
  if (d > e) {
35272
35272
  let k = t?.slice(d, t?.length)?.map((C) => C?.label)?.join(", "), O = d;
@@ -35286,7 +35286,7 @@ const Fj = ({
35286
35286
  /* @__PURE__ */ T("div", { className: `flex ${E()} ${n === "inline" && r === "linear" ? "items-center" : ""}`, children: [
35287
35287
  /* @__PURE__ */ T("div", { className: `${n === "inline" ? "max-w-[70%]" : "w-full"} flex flex-col`, children: [
35288
35288
  /* @__PURE__ */ A("div", { className: `flex ${n === "top-right" || n === "bottom-right" ? "justify-end" : ""}`, children: /* @__PURE__ */ A(Re, { title: k?.tooltipText, children: /* @__PURE__ */ T(
35289
- ae,
35289
+ oe,
35290
35290
  {
35291
35291
  size: "small",
35292
35292
  variant: "medium",
@@ -35298,7 +35298,7 @@ const Fj = ({
35298
35298
  {
35299
35299
  className: `${r === "parallel" ? "flex items-center" : `w-6 min-w-[24px] h-6 ${O <= e ? "bg-primary-600" : "bg-neutral-400 dark:bg-black-400"} rounded-full flex items-center justify-center text-white`}`,
35300
35300
  children: k?.isLocked ? /* @__PURE__ */ A("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ A(BC, { sx: { fontSize: 16 } }) }) : /* @__PURE__ */ A(ot, { children: e > O && r === "linear" ? /* @__PURE__ */ A(HN, { size: 18, className: "text-white dark:text-white" }) : /* @__PURE__ */ A(
35301
- ae,
35301
+ oe,
35302
35302
  {
35303
35303
  size: `${r === "parallel" ? "small" : "extra-small"}`,
35304
35304
  variant: "medium",
@@ -35318,7 +35318,7 @@ const Fj = ({
35318
35318
  {
35319
35319
  className: `flex ${n === "top-right" || n === "bottom-right" ? "justify-end" : r === "linear" ? "ml-8" : ""}`,
35320
35320
  children: /* @__PURE__ */ A(
35321
- ae,
35321
+ oe,
35322
35322
  {
35323
35323
  size: "extra-small",
35324
35324
  variant: "medium",
@@ -35338,7 +35338,7 @@ const Fj = ({
35338
35338
  ) : null
35339
35339
  ] }),
35340
35340
  n === "inline" && r === "linear" ? /* @__PURE__ */ A(
35341
- ae,
35341
+ oe,
35342
35342
  {
35343
35343
  size: "extra-small",
35344
35344
  variant: "medium",
@@ -35364,7 +35364,7 @@ const Fj = ({
35364
35364
  },
35365
35365
  trigger: ["click"],
35366
35366
  children: /* @__PURE__ */ A(
35367
- ae,
35367
+ oe,
35368
35368
  {
35369
35369
  size: "small",
35370
35370
  variant: "medium",
@@ -35378,7 +35378,7 @@ const Fj = ({
35378
35378
  )
35379
35379
  }
35380
35380
  ) : /* @__PURE__ */ A(
35381
- ae,
35381
+ oe,
35382
35382
  {
35383
35383
  size: "small",
35384
35384
  variant: "medium",
@@ -35405,7 +35405,7 @@ const Fj = ({
35405
35405
  },
35406
35406
  trigger: ["click"],
35407
35407
  children: /* @__PURE__ */ A(
35408
- ae,
35408
+ oe,
35409
35409
  {
35410
35410
  size: "small",
35411
35411
  variant: "medium",
@@ -35419,7 +35419,7 @@ const Fj = ({
35419
35419
  )
35420
35420
  }
35421
35421
  ) : /* @__PURE__ */ A(
35422
- ae,
35422
+ oe,
35423
35423
  {
35424
35424
  size: "small",
35425
35425
  variant: "medium",
@@ -35456,7 +35456,7 @@ const Wk = ({
35456
35456
  g ? h(!1) : (h(!1), r(), f(!1));
35457
35457
  })) : (r(), f(!1));
35458
35458
  };
35459
- return ne(() => {
35459
+ return re(() => {
35460
35460
  t || f(l);
35461
35461
  }, [l, t]), /* @__PURE__ */ T(ot, { children: [
35462
35462
  /* @__PURE__ */ A(
@@ -35524,7 +35524,7 @@ const Uj = ke.memo(Wk), zj = ({
35524
35524
  c.stopPropagation();
35525
35525
  }, u = "text-primary-600 font-semibold font-inter text-sm cursor-pointer hover:text-primary-700";
35526
35526
  return /* @__PURE__ */ T("div", { className: "flex items-center justify-between mb-4", children: [
35527
- /* @__PURE__ */ A(ae, { variant: "semibold", size: "medium", appearance: "body", children: t }),
35527
+ /* @__PURE__ */ A(oe, { variant: "semibold", size: "medium", appearance: "body", children: t }),
35528
35528
  r && e ? i ? /* @__PURE__ */ A(
35529
35529
  i,
35530
35530
  {
@@ -36278,8 +36278,8 @@ function NQ(t) {
36278
36278
  var ie = x.find(function(Y) {
36279
36279
  var Z = w.get(Y);
36280
36280
  if (Z)
36281
- return Z.slice(0, K).every(function(re) {
36282
- return re;
36281
+ return Z.slice(0, K).every(function(ne) {
36282
+ return ne;
36283
36283
  });
36284
36284
  });
36285
36285
  if (ie)
@@ -36406,7 +36406,7 @@ function zQ(t) {
36406
36406
  var L, R = x === "y" ? Vr : Wr, D = x === "y" ? mn : gn, F = x === "y" ? "height" : "width", I = S[x], M = I + v[R], B = I - v[D], W = p ? -k[F] / 2 : 0, Q = _ === xo ? w[F] : k[F], te = _ === xo ? -k[F] : -w[F], j = e.elements.arrow, q = p && j ? V2(j) : {
36407
36407
  width: 0,
36408
36408
  height: 0
36409
- }, K = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Kk(), ie = K[R], Y = K[D], Z = Es(0, w[F], q[F]), re = y ? w[F] / 2 - W - Z - ie - C.mainAxis : Q - Z - ie - C.mainAxis, J = y ? -w[F] / 2 + W + Z + Y + C.mainAxis : te + Z + Y + C.mainAxis, ce = e.elements.arrow && Nl(e.elements.arrow), ze = ce ? x === "y" ? ce.clientTop || 0 : ce.clientLeft || 0 : 0, Ee = (L = N?.[x]) != null ? L : 0, _e = I + re - Ee - ze, me = I + J - Ee, ge = Es(p ? Lu(M, _e) : M, I, p ? ka(B, me) : B);
36409
+ }, K = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Kk(), ie = K[R], Y = K[D], Z = Es(0, w[F], q[F]), ne = y ? w[F] / 2 - W - Z - ie - C.mainAxis : Q - Z - ie - C.mainAxis, J = y ? -w[F] / 2 + W + Z + Y + C.mainAxis : te + Z + Y + C.mainAxis, ce = e.elements.arrow && Nl(e.elements.arrow), ze = ce ? x === "y" ? ce.clientTop || 0 : ce.clientLeft || 0 : 0, Ee = (L = N?.[x]) != null ? L : 0, _e = I + ne - Ee - ze, me = I + J - Ee, ge = Es(p ? Lu(M, _e) : M, I, p ? ka(B, me) : B);
36410
36410
  S[x] = ge, P[x] = ge - I;
36411
36411
  }
36412
36412
  if (s) {
@@ -36903,8 +36903,8 @@ var hG = function() {
36903
36903
  return typeof Iu.ResizeObserver < "u" ? Iu.ResizeObserver : oT;
36904
36904
  }();
36905
36905
  const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start", children: i, className: a }) => {
36906
- const o = oe(null), s = oe(null);
36907
- return ne(() => {
36906
+ const o = ae(null), s = ae(null);
36907
+ return re(() => {
36908
36908
  if (t && r && o.current) {
36909
36909
  s.current = tT(r, o.current, {
36910
36910
  placement: n ?? "right",
@@ -36939,7 +36939,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
36939
36939
  return () => {
36940
36940
  s.current && (s.current.destroy(), s.current = null);
36941
36941
  };
36942
- }, [t, r, n]), ne(() => {
36942
+ }, [t, r, n]), re(() => {
36943
36943
  if (!t || !o.current || !s.current) return;
36944
36944
  const l = new hG(() => {
36945
36945
  s.current && s.current.update();
@@ -36971,18 +36971,18 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
36971
36971
  return ((/* @__PURE__ */ new Date()).getTime() - a.getTime()) / (1e3 * 60 * 60) < 24;
36972
36972
  }, [e]);
36973
36973
  return !t && !r ? null : /* @__PURE__ */ T("div", { className: "flex justify-between items-center", children: [
36974
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: "mr-5", appearance: "body", children: "Status" }),
36974
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "mr-5", appearance: "body", children: "Status" }),
36975
36975
  (() => {
36976
36976
  if (t)
36977
36977
  return /* @__PURE__ */ T("div", { className: "flex items-center gap-2", children: [
36978
36978
  /* @__PURE__ */ A("div", { className: "w-2 h-2 rounded-full bg-primary-600" }),
36979
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: "text-primary-600", children: "Online now" })
36979
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "text-primary-600", children: "Online now" })
36980
36980
  ] });
36981
36981
  if (r) {
36982
36982
  const a = n ? "text-primary-300" : "text-neutral-400";
36983
36983
  return /* @__PURE__ */ T("div", { className: "flex items-center gap-2", children: [
36984
36984
  /* @__PURE__ */ A("div", { className: U("w-2 h-2 rounded-full", n ? "bg-primary-300" : "bg-neutral-400") }),
36985
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: a, children: r })
36985
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: a, children: r })
36986
36986
  ] });
36987
36987
  }
36988
36988
  return null;
@@ -37016,7 +37016,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
37016
37016
  )
37017
37017
  }
37018
37018
  ), vG = () => {
37019
- const t = oe(null), e = oe(null), [r, n] = X({
37019
+ const t = ae(null), e = ae(null), [r, n] = X({
37020
37020
  vertical: "bottom",
37021
37021
  horizontal: "left"
37022
37022
  }), [i, a] = X(!1), o = ue(() => {
@@ -37039,7 +37039,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
37039
37039
  hide: l
37040
37040
  };
37041
37041
  }, kA = ({ label: t, content: e }) => /* @__PURE__ */ T("div", { className: "flex justify-between items-center", children: [
37042
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: "mr-5", appearance: "body", children: t }),
37042
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "mr-5", appearance: "body", children: t }),
37043
37043
  e
37044
37044
  ] }), yG = ({
37045
37045
  firstName: t,
@@ -37069,7 +37069,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
37069
37069
  isVisible: O,
37070
37070
  show: C,
37071
37071
  hide: N
37072
- } = vG(), P = oe({}), L = Pe(() => {
37072
+ } = vG(), P = ae({}), L = Pe(() => {
37073
37073
  if (d || !c) return !1;
37074
37074
  const ie = new Date(c);
37075
37075
  return ((/* @__PURE__ */ new Date()).getTime() - ie.getTime()) / (1e3 * 60 * 60) < 24;
@@ -37080,7 +37080,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
37080
37080
  lg: "w-3.5 h-3.5",
37081
37081
  xl: "w-4 h-4"
37082
37082
  };
37083
- ne(() => {
37083
+ re(() => {
37084
37084
  if (n)
37085
37085
  if (P.current[n])
37086
37086
  x(!0);
@@ -37095,10 +37095,10 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
37095
37095
  }
37096
37096
  else
37097
37097
  x(!1);
37098
- }, [n, m]), ne(() => () => {
37098
+ }, [n, m]), re(() => () => {
37099
37099
  W.current && clearTimeout(W.current);
37100
37100
  }, []);
37101
- const B = n ? P.current[n] : void 0, W = oe(null), Q = oe(null), te = () => {
37101
+ const B = n ? P.current[n] : void 0, W = ae(null), Q = ae(null), te = () => {
37102
37102
  v?.(), t && e && s && (W.current && clearTimeout(W.current), W.current = setTimeout(() => {
37103
37103
  _(!0);
37104
37104
  }, 300));
@@ -37148,14 +37148,14 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
37148
37148
  )
37149
37149
  ] }),
37150
37150
  /* @__PURE__ */ T("div", { className: "flex flex-row gap-1 items-center justify-center", children: [
37151
- /* @__PURE__ */ T(ae, { size: "medium", variant: "semibold", className: "w-full text-center", children: [
37151
+ /* @__PURE__ */ T(oe, { size: "medium", variant: "semibold", className: "w-full text-center", children: [
37152
37152
  t || "",
37153
37153
  " ",
37154
37154
  e || ""
37155
37155
  ] }),
37156
37156
  p?.region && /* @__PURE__ */ A("span", { children: mR(p?.region) })
37157
37157
  ] }),
37158
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", appearance: "body", children: r || p?.email || "" })
37158
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "body", children: r || p?.email || "" })
37159
37159
  ] }),
37160
37160
  u && (h ? /* @__PURE__ */ A("div", { className: "p-5", children: /* @__PURE__ */ A(Mk, {}) }) : u && (p?.teams || p?.clearanceLevel || p?.group) ? /* @__PURE__ */ T("div", { className: "flex flex-col gap-4 bg-neutral-50 border-t border-neutral-200 dark:bg-black-700 dark:border-none p-5 rounded-b-lg", children: [
37161
37161
  /* @__PURE__ */ A(bG, { isActive: d, lastViewedOn: c }),
@@ -37163,7 +37163,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
37163
37163
  kA,
37164
37164
  {
37165
37165
  label: "Username",
37166
- content: /* @__PURE__ */ A("div", { className: "flex gap-2", children: /* @__PURE__ */ A(ae, { size: "small", variant: "medium", appearance: "body", children: p.username }) })
37166
+ content: /* @__PURE__ */ A("div", { className: "flex gap-2", children: /* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "body", children: p.username }) })
37167
37167
  }
37168
37168
  ),
37169
37169
  p?.teams && p?.teams?.length > 0 && /* @__PURE__ */ A(
@@ -37238,7 +37238,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
37238
37238
  )
37239
37239
  }
37240
37240
  )
37241
- ] }) : /* @__PURE__ */ A("div", { className: "flex items-center justify-center bg-neutral-50 dark:bg-black-700 border-t border-neutral-200 dark:border-black-700 p-5 rounded-b-lg", children: /* @__PURE__ */ T(ae, { className: "flex items-center justify-center gap-1", size: "extra-small", variant: "medium", appearance: "body", children: [
37241
+ ] }) : /* @__PURE__ */ A("div", { className: "flex items-center justify-center bg-neutral-50 dark:bg-black-700 border-t border-neutral-200 dark:border-black-700 p-5 rounded-b-lg", children: /* @__PURE__ */ T(oe, { className: "flex items-center justify-center gap-1", size: "extra-small", variant: "medium", appearance: "body", children: [
37242
37242
  /* @__PURE__ */ A(
37243
37243
  ND,
37244
37244
  {
@@ -37253,7 +37253,7 @@ const mG = ({ isOpen: t, onClose: e, anchorEl: r, placement: n = "right-start",
37253
37253
  ] }) }))
37254
37254
  ]
37255
37255
  }
37256
- ), K = oe(null);
37256
+ ), K = ae(null);
37257
37257
  return /* @__PURE__ */ T(
37258
37258
  "div",
37259
37259
  {
@@ -37511,11 +37511,11 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
37511
37511
  }
37512
37512
  O(null), N([]), t(""), g?.();
37513
37513
  };
37514
- ne(() => {
37514
+ re(() => {
37515
37515
  s?.name && O(s), w && O?.(w);
37516
- }, [s, w]), ne(() => {
37516
+ }, [s, w]), re(() => {
37517
37517
  L(a ? "#EF4444" : "#d9d9d9");
37518
- }, [a]), ne(() => {
37518
+ }, [a]), re(() => {
37519
37519
  C.length && B();
37520
37520
  }, [C]);
37521
37521
  const te = (q) => q.includes("?") ? new URLSearchParams(q.split("?")[1]).get("file_name") : null, j = (q) => {
@@ -37536,8 +37536,8 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
37536
37536
  /* @__PURE__ */ T("div", { className: "flex items-center justify-center gap-4", children: [
37537
37537
  k?.type === "application/pdf" ? /* @__PURE__ */ A("div", { className: "p-3 bg-primary-50 rounded-lg", children: /* @__PURE__ */ A(wG, { size: 20, fill: "var(--color-primary-500)" }) }) : /* @__PURE__ */ A("div", { className: "p-3 bg-primary-50 rounded-lg", children: /* @__PURE__ */ A(kG, { size: 20, fill: "var(--color-primary-500)" }) }),
37538
37538
  /* @__PURE__ */ T("div", { className: "text-left", children: [
37539
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: "font-inter text-md text-neutral-900 font-medium text-base", children: j(k?.name || s?.name) }),
37540
- p ? /* @__PURE__ */ A(ae, { size: "small", variant: "medium", appearance: "subtitle", children: M("Uploading...") }) : k?.size > 0 ? /* @__PURE__ */ T(ae, { size: "small", variant: "medium", appearance: "subtitle", children: [
37539
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "font-inter text-md text-neutral-900 font-medium text-base", children: j(k?.name || s?.name) }),
37540
+ p ? /* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "subtitle", children: M("Uploading...") }) : k?.size > 0 ? /* @__PURE__ */ T(oe, { size: "small", variant: "medium", appearance: "subtitle", children: [
37541
37541
  (k.size / 1e3).toFixed(2),
37542
37542
  " ",
37543
37543
  "KB"
@@ -37561,15 +37561,15 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
37561
37561
  /* @__PURE__ */ A("div", { className: "mb-4 flex justify-center", children: /* @__PURE__ */ A(EG, { size: 24, fill: "#98A2B3" }) }),
37562
37562
  /* @__PURE__ */ T("div", { children: [
37563
37563
  /* @__PURE__ */ T("div", { className: "flex items-center justify-center", children: [
37564
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: "text-primary-600 dark:text-primary-300", appearance: "custom", children: x || M("Click to upload") }),
37565
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: "ml-1", appearance: "subtitle", children: E || M("or drag and drop") })
37564
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "text-primary-600 dark:text-primary-300", appearance: "custom", children: x || M("Click to upload") }),
37565
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "ml-1", appearance: "subtitle", children: E || M("or drag and drop") })
37566
37566
  ] }),
37567
- n ? /* @__PURE__ */ A(ae, { size: "small", variant: "medium", className: "text-neutral-400", children: n }) : null
37567
+ n ? /* @__PURE__ */ A(oe, { size: "small", variant: "medium", className: "text-neutral-400", children: n }) : null
37568
37568
  ] })
37569
37569
  ] }) })
37570
37570
  }
37571
37571
  ) }),
37572
- a && /* @__PURE__ */ A(ae, { className: "text-error-500 mt-1", appearance: "custom", size: "extra-small", variant: "medium", children: a })
37572
+ a && /* @__PURE__ */ A(oe, { className: "text-error-500 mt-1", appearance: "custom", size: "extra-small", variant: "medium", children: a })
37573
37573
  ] });
37574
37574
  }, yce = ({
37575
37575
  animationData: t,
@@ -37580,8 +37580,8 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
37580
37580
  className: a,
37581
37581
  "data-testid": o
37582
37582
  }) => {
37583
- const s = oe(null);
37584
- return ne(() => {
37583
+ const s = ae(null);
37584
+ return re(() => {
37585
37585
  if (s.current) {
37586
37586
  const l = pD.loadAnimation({
37587
37587
  container: s.current,
@@ -37909,7 +37909,7 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
37909
37909
  children: [
37910
37910
  n || /* @__PURE__ */ A(HG, {}),
37911
37911
  /* @__PURE__ */ A(
37912
- ae,
37912
+ oe,
37913
37913
  {
37914
37914
  variant: "semibold",
37915
37915
  size: "display-small",
@@ -37919,7 +37919,7 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
37919
37919
  }
37920
37920
  ),
37921
37921
  /* @__PURE__ */ A(
37922
- ae,
37922
+ oe,
37923
37923
  {
37924
37924
  variant: "regular",
37925
37925
  size: "small",
@@ -39921,7 +39921,7 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
39921
39921
  "data-testid": r,
39922
39922
  children: [
39923
39923
  i?.icon,
39924
- /* @__PURE__ */ A(ae, { variant: "regular", size: "small", className: "text-center mt-2 dark:text-black-200", appearance: "custom", children: i?.additionaltext })
39924
+ /* @__PURE__ */ A(oe, { variant: "regular", size: "small", className: "text-center mt-2 dark:text-black-200", appearance: "custom", children: i?.additionaltext })
39925
39925
  ]
39926
39926
  }
39927
39927
  );
@@ -39970,8 +39970,8 @@ const SG = ({ fill: t = "currentColor", size: e = 20, ...r }) => /* @__PURE__ */
39970
39970
  "data-testid": o,
39971
39971
  children: [
39972
39972
  /* @__PURE__ */ A("div", { className: "flex items-center gap-2 w-[70px] h-[70px] bg-neutral-50 dark:bg-black-800 rounded-full justify-center p-1", children: /* @__PURE__ */ A("div", { className: "flex items-center gap-2 w-14 h-14 bg-neutral-200 dark:bg-black-700 rounded-full justify-center p-1", children: i || /* @__PURE__ */ A($C, {}) }) }),
39973
- /* @__PURE__ */ A(ae, { size: "large", variant: "semibold", className: "pt-2 text-center", children: r }),
39974
- /* @__PURE__ */ A(ae, { size: "small", variant: "regular", className: "pt-0.5 text-center", appearance: "subtitle", children: n })
39973
+ /* @__PURE__ */ A(oe, { size: "large", variant: "semibold", className: "pt-2 text-center", children: r }),
39974
+ /* @__PURE__ */ A(oe, { size: "small", variant: "regular", className: "pt-0.5 text-center", appearance: "subtitle", children: n })
39975
39975
  ]
39976
39976
  }
39977
39977
  );
@@ -40143,8 +40143,8 @@ const eY = /* @__PURE__ */ Fb(JG), tY = (t) => {
40143
40143
  setAnimatedDisplayValue: l = null,
40144
40144
  className: u = ""
40145
40145
  }) => {
40146
- const [c, d] = X(0), f = oe();
40147
- ne(() => {
40146
+ const [c, d] = X(0), f = ae();
40147
+ re(() => {
40148
40148
  d(0), l?.(0);
40149
40149
  const h = performance.now(), m = 0, v = t, g = 0, _ = t / e * 100, y = (x) => {
40150
40150
  const E = x - h, S = Math.min(E / o, 1), w = Math.round(m + (v - m) * S);
@@ -40184,14 +40184,14 @@ const eY = /* @__PURE__ */ Fb(JG), tY = (t) => {
40184
40184
  children: o,
40185
40185
  setAnimatedDisplayValue: s = null
40186
40186
  }) => {
40187
- const l = (r - n) / 2, u = 2 * Math.PI * l, [c, d] = X(0), f = oe();
40188
- ne(() => {
40187
+ const l = (r - n) / 2, u = 2 * Math.PI * l, [c, d] = X(0), f = ae();
40188
+ re(() => {
40189
40189
  d(0), s?.(0);
40190
40190
  const m = setTimeout(() => {
40191
40191
  d(t);
40192
40192
  }, 100);
40193
40193
  return () => clearTimeout(m);
40194
- }, [t]), ne(() => {
40194
+ }, [t]), re(() => {
40195
40195
  const m = performance.now(), v = 0, g = t, _ = (y) => {
40196
40196
  const x = y - m, E = Math.min(x / a, 1), S = Math.round(v + (g - v) * E);
40197
40197
  s?.(S), E < 1 && (f.current = requestAnimationFrame(_));
@@ -40744,12 +40744,12 @@ const xY = ke.memo(lT), SY = () => {
40744
40744
  suggestions: f = [],
40745
40745
  showRawValue: p = !1
40746
40746
  }) => {
40747
- const h = oe(null), m = oe(null), v = oe(null), g = oe([]), _ = oe(null), [y, x] = X(!1), [E, S] = X(""), [w, k] = X(0), [O, C] = X(p), N = oe(y), P = oe([]), L = oe(w), R = oe(t);
40748
- ne(() => {
40747
+ const h = ae(null), m = ae(null), v = ae(null), g = ae([]), _ = ae(null), [y, x] = X(!1), [E, S] = X(""), [w, k] = X(0), [O, C] = X(p), N = ae(y), P = ae([]), L = ae(w), R = ae(t);
40748
+ re(() => {
40749
40749
  N.current = y;
40750
- }, [y]), ne(() => {
40750
+ }, [y]), re(() => {
40751
40751
  L.current = w;
40752
- }, [w]), ne(() => {
40752
+ }, [w]), re(() => {
40753
40753
  R.current = t;
40754
40754
  }, [t]), Bb({
40755
40755
  ref: v,
@@ -40762,16 +40762,16 @@ const xY = ke.memo(lT), SY = () => {
40762
40762
  const j = E.toLowerCase();
40763
40763
  return f.filter((q) => q.toLowerCase().includes(j));
40764
40764
  }, [f, E]);
40765
- ne(() => {
40765
+ re(() => {
40766
40766
  P.current = D;
40767
- }, [D]), ne(() => {
40767
+ }, [D]), re(() => {
40768
40768
  k(0);
40769
- }, [D]), ne(() => {
40769
+ }, [D]), re(() => {
40770
40770
  y && g.current[w] && g.current[w]?.scrollIntoView({
40771
40771
  block: "nearest",
40772
40772
  behavior: "smooth"
40773
40773
  });
40774
- }, [w, y]), ne(() => {
40774
+ }, [w, y]), re(() => {
40775
40775
  if (y && m.current && v.current)
40776
40776
  return _.current = tT(m.current, v.current, {
40777
40777
  placement: "bottom-start",
@@ -40832,7 +40832,7 @@ const xY = ke.memo(lT), SY = () => {
40832
40832
  const Y = q.slice(K + 1).search(/\s/);
40833
40833
  let Z;
40834
40834
  Y === -1 ? Z = q.length : Z = K + 1 + Y;
40835
- const re = q.slice(0, K), J = q.slice(Z), ce = `${re}{{${j}}}${J}`;
40835
+ const ne = q.slice(0, K), J = q.slice(Z), ce = `${ne}{{${j}}}${J}`;
40836
40836
  e(ce), x(!1), S(""), setTimeout(() => {
40837
40837
  h.current?.focus();
40838
40838
  }, 0);
@@ -40882,7 +40882,7 @@ const xY = ke.memo(lT), SY = () => {
40882
40882
  {
40883
40883
  className: "absolute top-0 left-0 w-full h-full text-gray-400 flex items-center cursor-text px-3 z-50",
40884
40884
  onClick: () => h.current?.focus(),
40885
- children: /* @__PURE__ */ A(ae, { size: "extra-small", variant: "medium", children: l })
40885
+ children: /* @__PURE__ */ A(oe, { size: "extra-small", variant: "medium", children: l })
40886
40886
  }
40887
40887
  ),
40888
40888
  /* @__PURE__ */ T("div", { className: "relative", children: [
@@ -40943,7 +40943,7 @@ const xY = ke.memo(lT), SY = () => {
40943
40943
  document.body
40944
40944
  )
40945
40945
  ] }),
40946
- c && /* @__PURE__ */ A("div", { className: "pt-1", children: /* @__PURE__ */ A(ae, { className: "text-error-500", size: "extra-small", variant: "medium", appearance: "custom", children: c }) })
40946
+ c && /* @__PURE__ */ A("div", { className: "pt-1", children: /* @__PURE__ */ A(oe, { className: "text-error-500", size: "extra-small", variant: "medium", appearance: "custom", children: c }) })
40947
40947
  ] });
40948
40948
  }, Uce = ke.memo(MY), HY = ({ children: t, id: e, enabled: r = !0 }) => {
40949
40949
  const { setNodeRef: n } = DS({ id: e });
@@ -41189,13 +41189,13 @@ const xY = ke.memo(lT), SY = () => {
41189
41189
  lockOrder: l.lockOrder
41190
41190
  }), n(l.sortOrder), r(!0), s(!1), c && i(c, l.filterType.value);
41191
41191
  };
41192
- ne(() => {
41192
+ re(() => {
41193
41193
  t && JSON.stringify(t) !== JSON.stringify(l) && u(t);
41194
41194
  }, [t]);
41195
41195
  const m = /* @__PURE__ */ T("div", { children: [
41196
41196
  /* @__PURE__ */ T("div", { className: "p-5 space-y-5", children: [
41197
41197
  /* @__PURE__ */ T("div", { className: "space-y-2", children: [
41198
- /* @__PURE__ */ T(ae, { size: "extra-small", variant: "regular", className: "!text-neutral-600 dark:!text-neutral-400 uppercase", appearance: "title", children: [
41198
+ /* @__PURE__ */ T(oe, { size: "extra-small", variant: "regular", className: "!text-neutral-600 dark:!text-neutral-400 uppercase", appearance: "title", children: [
41199
41199
  /* @__PURE__ */ A(JC, { sx: { height: "14px", width: "14px" } }),
41200
41200
  " Filter Tabs"
41201
41201
  ] }),
@@ -41226,7 +41226,7 @@ const xY = ke.memo(lT), SY = () => {
41226
41226
  ] })
41227
41227
  ] }),
41228
41228
  /* @__PURE__ */ T("div", { className: "space-y-2", children: [
41229
- /* @__PURE__ */ T(ae, { size: "extra-small", variant: "regular", className: "!text-neutral-600 dark:!text-neutral-400 uppercase", appearance: "title", children: [
41229
+ /* @__PURE__ */ T(oe, { size: "extra-small", variant: "regular", className: "!text-neutral-600 dark:!text-neutral-400 uppercase", appearance: "title", children: [
41230
41230
  /* @__PURE__ */ A(eN, { sx: { height: "14px", width: "14px" } }),
41231
41231
  " Sort"
41232
41232
  ] }),
@@ -41250,7 +41250,7 @@ const xY = ke.memo(lT), SY = () => {
41250
41250
  }) })
41251
41251
  ] }),
41252
41252
  /* @__PURE__ */ T("div", { className: "space-y-2", children: [
41253
- /* @__PURE__ */ T(ae, { size: "extra-small", variant: "regular", className: "!text-neutral-600 dark:!text-neutral-400 uppercase", appearance: "title", children: [
41253
+ /* @__PURE__ */ T(oe, { size: "extra-small", variant: "regular", className: "!text-neutral-600 dark:!text-neutral-400 uppercase", appearance: "title", children: [
41254
41254
  /* @__PURE__ */ A(Tb, { sx: { height: "14px", width: "14px" } }),
41255
41255
  " Display Options"
41256
41256
  ] }),
@@ -41258,8 +41258,8 @@ const xY = ke.memo(lT), SY = () => {
41258
41258
  /* @__PURE__ */ T("div", { className: "flex items-center gap-2", children: [
41259
41259
  /* @__PURE__ */ A("div", { className: "flex items-center justify-center h-8 w-8 bg-white dark:bg-neutral-700 rounded-lg", children: /* @__PURE__ */ A(tN, { sx: { height: "16px", width: "16px" }, className: "text-neutral-800 dark:text-white" }) }),
41260
41260
  /* @__PURE__ */ T("div", { className: "flex flex-col gap-0", children: [
41261
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", appearance: "title", children: "Show Counts" }),
41262
- /* @__PURE__ */ A(ae, { size: "extra-small", variant: "regular", appearance: "subtitle", children: "Display item counts on tabs" })
41261
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "title", children: "Show Counts" }),
41262
+ /* @__PURE__ */ A(oe, { size: "extra-small", variant: "regular", appearance: "subtitle", children: "Display item counts on tabs" })
41263
41263
  ] })
41264
41264
  ] }),
41265
41265
  /* @__PURE__ */ A("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ A(
@@ -41280,8 +41280,8 @@ const xY = ke.memo(lT), SY = () => {
41280
41280
  /* @__PURE__ */ T("div", { className: "flex items-center gap-2", children: [
41281
41281
  /* @__PURE__ */ A("div", { className: "flex items-center justify-center h-8 w-8 bg-white dark:bg-neutral-700 rounded-lg", children: /* @__PURE__ */ A(F3, { sx: { height: "16px", width: "16px" }, className: "text-neutral-800 dark:text-white" }) }),
41282
41282
  /* @__PURE__ */ T("div", { className: "flex flex-col gap-0", children: [
41283
- /* @__PURE__ */ A(ae, { size: "small", variant: "medium", appearance: "title", children: "Lock Order" }),
41284
- /* @__PURE__ */ A(ae, { size: "extra-small", variant: "regular", appearance: "subtitle", children: "Prevent tab reordering" })
41283
+ /* @__PURE__ */ A(oe, { size: "small", variant: "medium", appearance: "title", children: "Lock Order" }),
41284
+ /* @__PURE__ */ A(oe, { size: "extra-small", variant: "regular", appearance: "subtitle", children: "Prevent tab reordering" })
41285
41285
  ] })
41286
41286
  ] }),
41287
41287
  /* @__PURE__ */ A("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ A(
@@ -41355,8 +41355,8 @@ const xY = ke.memo(lT), SY = () => {
41355
41355
  children: /* @__PURE__ */ A("circle", { cx: "2", cy: "2", r: "2", fill: "currentColor" })
41356
41356
  }
41357
41357
  ), XY = ({ ...t }) => /* @__PURE__ */ A("svg", { width: 16, height: 16, viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t, children: /* @__PURE__ */ A("g", { mask: "url(#mask0_6454_18843)", children: /* @__PURE__ */ A("path", { d: "M5.8335 17.5C5.37516 17.5 4.9828 17.3368 4.65641 17.0104C4.33002 16.684 4.16683 16.2917 4.16683 15.8333V5C3.93072 5 3.7328 4.92014 3.57308 4.76042C3.41336 4.60069 3.3335 4.40278 3.3335 4.16667C3.3335 3.93056 3.41336 3.73264 3.57308 3.57292C3.7328 3.41319 3.93072 3.33333 4.16683 3.33333H7.50016C7.50016 3.09722 7.58002 2.89931 7.73975 2.73958C7.89947 2.57986 8.09738 2.5 8.3335 2.5H11.6668C11.9029 2.5 12.1009 2.57986 12.2606 2.73958C12.4203 2.89931 12.5002 3.09722 12.5002 3.33333H15.8335C16.0696 3.33333 16.2675 3.41319 16.4272 3.57292C16.587 3.73264 16.6668 3.93056 16.6668 4.16667C16.6668 4.40278 16.587 4.60069 16.4272 4.76042C16.2675 4.92014 16.0696 5 15.8335 5V15.8333C15.8335 16.2917 15.6703 16.684 15.3439 17.0104C15.0175 17.3368 14.6252 17.5 14.1668 17.5H5.8335ZM5.8335 5V15.8333H14.1668V5H5.8335ZM7.50016 13.3333C7.50016 13.5694 7.58002 13.7674 7.73975 13.9271C7.89947 14.0868 8.09738 14.1667 8.3335 14.1667C8.56961 14.1667 8.76752 14.0868 8.92725 13.9271C9.08697 13.7674 9.16683 13.5694 9.16683 13.3333V7.5C9.16683 7.26389 9.08697 7.06597 8.92725 6.90625C8.76752 6.74653 8.56961 6.66667 8.3335 6.66667C8.09738 6.66667 7.89947 6.74653 7.73975 6.90625C7.58002 7.06597 7.50016 7.26389 7.50016 7.5V13.3333ZM10.8335 13.3333C10.8335 13.5694 10.9134 13.7674 11.0731 13.9271C11.2328 14.0868 11.4307 14.1667 11.6668 14.1667C11.9029 14.1667 12.1009 14.0868 12.2606 13.9271C12.4203 13.7674 12.5002 13.5694 12.5002 13.3333V7.5C12.5002 7.26389 12.4203 7.06597 12.2606 6.90625C12.1009 6.74653 11.9029 6.66667 11.6668 6.66667C11.4307 6.66667 11.2328 6.74653 11.0731 6.90625C10.9134 7.06597 10.8335 7.26389 10.8335 7.5V13.3333Z" }) }) }), kc = Oo(void 0), zce = () => fr(kc), jY = () => fr(kc)?.tab, yn = () => fr(kc)?.table, QY = () => {
41358
- const t = oe(null), e = oe(/* @__PURE__ */ new Map());
41359
- return ne(() => {
41358
+ const t = ae(null), e = ae(/* @__PURE__ */ new Map());
41359
+ return re(() => {
41360
41360
  t.current || (t.current = document.createElement("canvas"));
41361
41361
  }, []), { measureText: (i, a = {}) => {
41362
41362
  if (!i) return 0;
@@ -41445,12 +41445,12 @@ const Yd = (t) => {
41445
41445
  linkConfig: D,
41446
41446
  showTabOptions: F = !0
41447
41447
  }) => {
41448
- const I = jY(), M = R ? I?.getTabSettings(R) : void 0, B = O ?? M?.tab_items, W = C ?? M?.tab_options, [Q, te] = X(""), [j, q] = X(!1), [K, ie] = X(0), [Y, Z] = X([]), [re, J] = X([]), [ce, ze] = X(null), [Ee, _e] = X(null), [me, ge] = X(!1), [we, Se] = X(
41448
+ const I = jY(), M = R ? I?.getTabSettings(R) : void 0, B = O ?? M?.tab_items, W = C ?? M?.tab_options, [Q, te] = X(""), [j, q] = X(!1), [K, ie] = X(0), [Y, Z] = X([]), [ne, J] = X([]), [ce, ze] = X(null), [Ee, _e] = X(null), [me, ge] = X(!1), [we, Se] = X(
41449
41449
  W ?? lb
41450
- ), [pe, G] = X(""), [Ae, Ce] = X("contains"), { showCounts: Xe, lockOrder: Ze, sortOrder: tt } = we, { t: We } = Kt(), Ne = oe(null), Fe = oe(null), ve = oe(K), { measureText: Me } = QY(), Ue = Pe(() => GY(), []), $e = Ku(
41450
+ ), [pe, G] = X(""), [Ae, Ce] = X("contains"), { showCounts: Xe, lockOrder: Ze, sortOrder: tt } = we, { t: We } = Kt(), Ne = ae(null), Fe = ae(null), ve = ae(K), { measureText: Me } = QY(), Ue = Pe(() => GY(), []), $e = Ku(
41451
41451
  Gi(Nb, { activationConstraint: { distance: 5 } }),
41452
41452
  Gi(Db, { activationConstraint: { delay: 300, tolerance: 5 } })
41453
- ), dt = Pe(() => re.filter(({ is_hidden: le }) => !le), [re]), at = Pe(() => re.filter(({ is_hidden: le }) => le), [re]), nt = Pe(
41453
+ ), dt = Pe(() => ne.filter(({ is_hidden: le }) => !le), [ne]), at = Pe(() => ne.filter(({ is_hidden: le }) => le), [ne]), nt = Pe(
41454
41454
  () => dt.filter(({ name: le }) => {
41455
41455
  if (!pe) return !0;
41456
41456
  const He = (le ?? "").toLowerCase(), je = pe.toLowerCase();
@@ -41734,7 +41734,7 @@ const Yd = (t) => {
41734
41734
  )
41735
41735
  }
41736
41736
  })[le][t];
41737
- ne(() => {
41737
+ re(() => {
41738
41738
  if (!Ne.current || t === "switch") return;
41739
41739
  const le = new ResizeObserver((He) => {
41740
41740
  const je = He[0].contentRect.width;
@@ -41743,7 +41743,7 @@ const Yd = (t) => {
41743
41743
  return le.observe(Ne.current), kr(Ne.current.clientWidth), () => le.disconnect();
41744
41744
  }, [kr, t]);
41745
41745
  const Uc = JSON.stringify(e), zc = JSON.stringify(B?.map(({ name: le }) => le));
41746
- return ne(() => {
41746
+ return re(() => {
41747
41747
  if (B?.length) {
41748
41748
  let le = [...B];
41749
41749
  e.forEach((He) => {
@@ -41755,13 +41755,13 @@ const Yd = (t) => {
41755
41755
  Z(
41756
41756
  e.map((le) => ({ name: le, is_default: !1, is_hidden: !1, is_pinned: !1 })).filter((le, He, je) => He === je.findIndex((Mt) => Mt.name === le.name))
41757
41757
  );
41758
- }, [Uc, zc]), ne(() => {
41758
+ }, [Uc, zc]), re(() => {
41759
41759
  W && Se(W);
41760
- }, [W]), ne(() => {
41760
+ }, [W]), re(() => {
41761
41761
  if (!Y.length) return;
41762
41762
  const le = [...Y];
41763
41763
  tt === "asc" ? le.sort((He, je) => He.name.localeCompare(je.name)) : tt === "desc" && le.sort((He, je) => je.name.localeCompare(He.name)), J(le);
41764
- }, [Y, tt]), ne(() => {
41764
+ }, [Y, tt]), re(() => {
41765
41765
  Yd(j);
41766
41766
  }, [j]), t === "switch" ? /* @__PURE__ */ A("div", { className: U("inline", s), children: /* @__PURE__ */ A(
41767
41767
  "ul",
@@ -50293,7 +50293,7 @@ function $J(t, e) {
50293
50293
  defaultCodeValue: Y
50294
50294
  });
50295
50295
  Z.language === null && (Z.value = Y);
50296
- var re = (i = (a = W.match(/\n/g)) === null || a === void 0 ? void 0 : a.length) !== null && i !== void 0 ? i : 0, J = E + re, ce = YJ(Z, O, L, g, y, E, J, k, N);
50296
+ var ne = (i = (a = W.match(/\n/g)) === null || a === void 0 ? void 0 : a.length) !== null && i !== void 0 ? i : 0, J = E + ne, ce = YJ(Z, O, L, g, y, E, J, k, N);
50297
50297
  return /* @__PURE__ */ ke.createElement(F, ie, /* @__PURE__ */ ke.createElement(M, p, !y && j, R({
50298
50298
  rows: ce,
50299
50299
  stylesheet: u,
@@ -51293,8 +51293,8 @@ function vre() {
51293
51293
  return (K.position.indent || K.position.start) && (K.indent = K.position.indent || [], K.position = K.position.start), W(j, K);
51294
51294
  }
51295
51295
  function W(j, q) {
51296
- var K = q.additional, ie = q.nonTerminated, Y = q.text, Z = q.reference, re = q.warning, J = q.textContext, ce = q.referenceContext, ze = q.warningContext, Ee = q.position, _e = q.indent || [], me = j.length, ge = 0, we = -1, Se = Ee.column || 1, pe = Ee.line || 1, G = "", Ae = [], Ce, Xe, Ze, tt, We, Ne, Fe, ve, Me, Ue, $e, dt, at, nt, Ye, vt, qe, Ke, Je;
51297
- for (typeof K == "string" && (K = K.charCodeAt(0)), vt = Ot(), ve = re ? ft : l, ge--, me++; ++ge < me; )
51296
+ var K = q.additional, ie = q.nonTerminated, Y = q.text, Z = q.reference, ne = q.warning, J = q.textContext, ce = q.referenceContext, ze = q.warningContext, Ee = q.position, _e = q.indent || [], me = j.length, ge = 0, we = -1, Se = Ee.column || 1, pe = Ee.line || 1, G = "", Ae = [], Ce, Xe, Ze, tt, We, Ne, Fe, ve, Me, Ue, $e, dt, at, nt, Ye, vt, qe, Ke, Je;
51297
+ for (typeof K == "string" && (K = K.charCodeAt(0)), vt = Ot(), ve = ne ? ft : l, ge--, me++; ++ge < me; )
51298
51298
  if (We === d && (Se = _e[we] || 1), We = j.charCodeAt(ge), We === h) {
51299
51299
  if (Fe = j.charCodeAt(ge + 1), Fe === c || Fe === d || Fe === f || Fe === p || Fe === h || Fe === v || Fe !== Fe || K && Fe === K) {
51300
51300
  G += s(We), Se++;
@@ -51320,7 +51320,7 @@ function vre() {
51320
51320
  }
51321
51321
  function ft(kr, vr) {
51322
51322
  var Tr = Ot();
51323
- Tr.column += vr, Tr.offset += vr, re.call(ze, M[kr], Tr, kr);
51323
+ Tr.column += vr, Tr.offset += vr, ne.call(ze, M[kr], Tr, kr);
51324
51324
  }
51325
51325
  function ui() {
51326
51326
  G && (Ae.push(G), Y && Y.call(J, G, { start: vt, end: Ot() }), G = "");
@@ -51983,12 +51983,12 @@ function yre() {
51983
51983
  Q--, W = _.slice(B, q), te.index -= B;
51984
51984
  } else if (te = u(I, 0, W, L), !te)
51985
51985
  continue;
51986
- var ie = te.index, Y = te[0], Z = W.slice(0, ie), re = W.slice(ie + Y.length), J = B + W.length;
51986
+ var ie = te.index, Y = te[0], Z = W.slice(0, ie), ne = W.slice(ie + Y.length), J = B + W.length;
51987
51987
  w && J > w.reach && (w.reach = J);
51988
51988
  var ce = M.prev;
51989
51989
  Z && (ce = f(y, ce, Z), B += Z.length), p(y, ce, Q);
51990
51990
  var ze = new l(k, P ? s.tokenize(Y, P) : Y, D, Y);
51991
- if (M = f(y, ce, ze), re && f(y, M, re), Q > 1) {
51991
+ if (M = f(y, ce, ze), ne && f(y, M, ne), Q > 1) {
51992
51992
  var Ee = {
51993
51993
  cause: k + "," + C,
51994
51994
  reach: J
@@ -72078,8 +72078,8 @@ const fse = {
72078
72078
  collapseLabel: c = "Show less",
72079
72079
  animationDurationMs: d = 300
72080
72080
  }, f) => {
72081
- const p = oe(null), [h, m] = X(!1), [v, g] = X(0), [_, y] = X(!1);
72082
- ne(() => {
72081
+ const p = ae(null), [h, m] = X(!1), [v, g] = X(0), [_, y] = X(!1);
72082
+ re(() => {
72083
72083
  if (!s || !p.current)
72084
72084
  return;
72085
72085
  const S = p.current, w = () => {
@@ -72316,18 +72316,18 @@ const pse = ["edit", "preview"], hse = ({ className: t, size: e = 16 }) => /* @_
72316
72316
  showMinimalPreview: N = !1,
72317
72317
  acceptAdvanceContent: P = !0
72318
72318
  }, L) => {
72319
- const [R, D] = X("edit"), [F, I] = X(!1), M = oe(null), B = t || `rich-md-input-${Math.random().toString(36).slice(2, 11)}`, W = e.length, Q = (Z, re = "", J = "") => {
72319
+ const [R, D] = X("edit"), [F, I] = X(!1), M = ae(null), B = t || `rich-md-input-${Math.random().toString(36).slice(2, 11)}`, W = e.length, Q = (Z, ne = "", J = "") => {
72320
72320
  const ce = L?.current || M.current;
72321
72321
  if (!ce) return;
72322
- const ze = ce.selectionStart, Ee = ce.selectionEnd, _e = e.substring(ze, Ee), me = _e || J, ge = e.substring(0, ze) + Z + me + re + e.substring(Ee);
72322
+ const ze = ce.selectionStart, Ee = ce.selectionEnd, _e = e.substring(ze, Ee), me = _e || J, ge = e.substring(0, ze) + Z + me + ne + e.substring(Ee);
72323
72323
  n(ge), setTimeout(() => {
72324
72324
  const we = ze + Z.length + (_e ? _e.length : 0);
72325
72325
  ce.focus(), ce.setSelectionRange(we, we + (_e ? 0 : J.length));
72326
72326
  }, 0);
72327
72327
  }, te = (Z) => {
72328
- const re = L?.current || M.current;
72329
- if (!re) return;
72330
- const J = re.selectionStart, ce = re.selectionEnd, ze = e.split(`
72328
+ const ne = L?.current || M.current;
72329
+ if (!ne) return;
72330
+ const J = ne.selectionStart, ce = ne.selectionEnd, ze = e.split(`
72331
72331
  `);
72332
72332
  let Ee = 0, _e = 0, me = 0;
72333
72333
  for (let we = 0; we < ze.length; we++) {
@@ -72340,7 +72340,7 @@ const pse = ["edit", "preview"], hse = ({ className: t, size: e = 16 }) => /* @_
72340
72340
  const ge = ze.map((we, Se) => Se >= _e && Se <= me ? we.trim() === "" ? we : Z === "- " && we.trim().startsWith("- ") ? we.replace(/^\s*-\s+/, "") : Z.match(/^\d+\.\s/) && we.trim().match(/^\d+\.\s/) ? we.replace(/^\s*\d+\.\s+/, "") : Z + we.trim() : we);
72341
72341
  n(ge.join(`
72342
72342
  `)), setTimeout(() => {
72343
- re.focus();
72343
+ ne.focus();
72344
72344
  }, 0);
72345
72345
  }, j = (Z) => {
72346
72346
  if (O?.(Z), Z.metaKey || Z.ctrlKey)
@@ -72465,7 +72465,7 @@ const pse = ["edit", "preview"], hse = ({ className: t, size: e = 16 }) => /* @_
72465
72465
  ] })
72466
72466
  ] }) })
72467
72467
  ] }),
72468
- children: /* @__PURE__ */ A(ae, { className: "mb-2 text-xs font-medium text-primary-700 inline-flex items-center gap-1 cursor-pointer", children: "Formatting help ?" })
72468
+ children: /* @__PURE__ */ A(oe, { className: "mb-2 text-xs font-medium text-primary-700 inline-flex items-center gap-1 cursor-pointer", children: "Formatting help ?" })
72469
72469
  }
72470
72470
  )
72471
72471
  ] }),
@@ -72600,8 +72600,8 @@ const pse = ["edit", "preview"], hse = ({ className: t, size: e = 16 }) => /* @_
72600
72600
  value: e,
72601
72601
  defaultValue: r,
72602
72602
  onChange: (Z) => {
72603
- const re = Z.target.value;
72604
- (!v || re.length <= v) && n(re);
72603
+ const ne = Z.target.value;
72604
+ (!v || ne.length <= v) && n(ne);
72605
72605
  },
72606
72606
  onKeyDown: j,
72607
72607
  placeholder: i,
@@ -72693,7 +72693,7 @@ const pse = ["edit", "preview"], hse = ({ className: t, size: e = 16 }) => /* @_
72693
72693
  exit: { opacity: 0, y: -10 },
72694
72694
  transition: { duration: 0.2 },
72695
72695
  children: /* @__PURE__ */ A(
72696
- ae,
72696
+ oe,
72697
72697
  {
72698
72698
  className: "mt-1 text-error-500",
72699
72699
  appearance: "custom",
@@ -75670,7 +75670,7 @@ function jle(t, e, r) {
75670
75670
  }));
75671
75671
  }
75672
75672
  function Ps(t, e) {
75673
- return typeof window > "u" ? ne(t, e) : ul(t, e);
75673
+ return typeof window > "u" ? re(t, e) : ul(t, e);
75674
75674
  }
75675
75675
  const sS = /* @__PURE__ */ Oo(null), Qle = /* @__PURE__ */ Oo(null), zO = /* @__PURE__ */ ct(({
75676
75676
  className: t,
@@ -75681,7 +75681,7 @@ const sS = /* @__PURE__ */ Oo(null), Qle = /* @__PURE__ */ Oo(null), zO = /* @__
75681
75681
  ...a
75682
75682
  } = {}, o) => {
75683
75683
  let s = !1;
75684
- const [l, u] = X("swiper"), [c, d] = X(null), [f, p] = X(!1), h = oe(!1), m = oe(null), v = oe(null), g = oe(null), _ = oe(null), y = oe(null), x = oe(null), E = oe(null), S = oe(null), {
75684
+ const [l, u] = X("swiper"), [c, d] = X(null), [f, p] = X(!1), h = ae(!1), m = ae(null), v = ae(null), g = ae(null), _ = ae(null), y = ae(null), x = ae(null), E = ae(null), S = ae(null), {
75685
75685
  params: w,
75686
75686
  passedParams: k,
75687
75687
  rest: O,
@@ -75723,9 +75723,9 @@ const sS = /* @__PURE__ */ Oo(null), Qle = /* @__PURE__ */ Oo(null), zO = /* @__
75723
75723
  v.current.off(M, C[M]);
75724
75724
  });
75725
75725
  };
75726
- ne(() => () => {
75726
+ re(() => () => {
75727
75727
  v.current && v.current.off("_beforeBreakpoint", L);
75728
- }), ne(() => {
75728
+ }), re(() => {
75729
75729
  !h.current && v.current && (v.current.emitSlidesClasses(), h.current = !0);
75730
75730
  }), Ps(() => {
75731
75731
  if (o && (o.current = m.current), !!m.current)
@@ -75796,7 +75796,7 @@ const Gle = /* @__PURE__ */ ct(({
75796
75796
  swiperSlideIndex: s,
75797
75797
  ...l
75798
75798
  } = {}, u) => {
75799
- const c = oe(null), [d, f] = X("swiper-slide"), [p, h] = X(!1);
75799
+ const c = ae(null), [d, f] = X("swiper-slide"), [p, h] = X(!1);
75800
75800
  function m(y, x, E) {
75801
75801
  x === c.current && f(E);
75802
75802
  }
@@ -80602,7 +80602,7 @@ const Bce = ({
80602
80602
  } else
80603
80603
  o([]);
80604
80604
  };
80605
- return ne(() => {
80605
+ return re(() => {
80606
80606
  f() ? a(!0) : a(!1);
80607
80607
  }, [e, t, f, a]), {
80608
80608
  checkboxConfig: e ? {
@@ -80891,16 +80891,16 @@ const rAe = ({
80891
80891
  inputStyle: o,
80892
80892
  disabled: s = !1
80893
80893
  }) => {
80894
- const { openCurrencyDropdown: l, closeCurrencyDropdown: u, currencyDropdownConfig: c, setCurrencyForCell: d, getCurrencyForCell: f } = fr(ai), h = f?.(t) || i || "USD", [m, v] = X(h), [g, _] = X(e), y = oe(e), x = oe(null), E = oe(null), S = oe(!1), w = oe(r);
80895
- ne(() => {
80894
+ const { openCurrencyDropdown: l, closeCurrencyDropdown: u, currencyDropdownConfig: c, setCurrencyForCell: d, getCurrencyForCell: f } = fr(ai), h = f?.(t) || i || "USD", [m, v] = X(h), [g, _] = X(e), y = ae(e), x = ae(null), E = ae(null), S = ae(!1), w = ae(r);
80895
+ re(() => {
80896
80896
  y.current = g;
80897
- }, [g]), ne(() => {
80897
+ }, [g]), re(() => {
80898
80898
  w.current = r;
80899
80899
  }, [r]);
80900
- const k = oe(!1);
80901
- ne(() => {
80900
+ const k = ae(!1);
80901
+ re(() => {
80902
80902
  k.current || (_(e), y.current = e, k.current = !0);
80903
- }, [e]), ne(() => {
80903
+ }, [e]), re(() => {
80904
80904
  h !== m && v(h);
80905
80905
  }, [h, m]), ul(() => {
80906
80906
  const D = x.current;
@@ -80950,7 +80950,7 @@ const rAe = ({
80950
80950
  },
80951
80951
  [c, l, u, m, L]
80952
80952
  );
80953
- return ne(() => {
80953
+ return re(() => {
80954
80954
  c || setTimeout(() => {
80955
80955
  S.current = !1;
80956
80956
  }, 100);
@@ -81014,8 +81014,8 @@ const rAe = ({
81014
81014
  onOpenMasterDataModal: c,
81015
81015
  reference: d = {}
81016
81016
  }) => {
81017
- const [f, p] = X(null), [h, m] = X(""), [v, g] = X(null), _ = oe(null), y = oe(n);
81018
- y.current = n, ne(() => {
81017
+ const [f, p] = X(null), [h, m] = X(""), [v, g] = X(null), _ = ae(null), y = ae(n);
81018
+ y.current = n, re(() => {
81019
81019
  f !== null && y.current(f, v ?? void 0);
81020
81020
  }, [f, v]);
81021
81021
  const x = (C) => {
@@ -81097,7 +81097,7 @@ const pa = (t) => ({
81097
81097
  f
81098
81098
  ]
81099
81099
  ), g = () => {
81100
- const Y = t?.row?.original?.__rawData, Z = t?.column?.Header, re = t?.column?.key, J = Z ? Y?.[Z]?.currency_code : void 0, ce = re ? Y?.[re]?.currency_code : void 0;
81100
+ const Y = t?.row?.original?.__rawData, Z = t?.column?.Header, ne = t?.column?.key, J = Z ? Y?.[Z]?.currency_code : void 0, ce = ne ? Y?.[ne]?.currency_code : void 0;
81101
81101
  return J && J !== "" ? J : ce && ce !== "" ? ce : t?.column?.currencyCode || "USD";
81102
81102
  }, _ = t.column.key || "", y = `${e}-${_}`, x = u?.(y), E = c?.(String(e), _), [S, w] = X({
81103
81103
  value: E?.value !== void 0 ? E.value : t.value || "",
@@ -81106,17 +81106,17 @@ const pa = (t) => ({
81106
81106
  if (r !== _) return null;
81107
81107
  const Y = typeof S.value == "number" ? String(S.value) : S.value, Z = ll(Y, t?.column);
81108
81108
  return Z.isValid ? null : Z.error || null;
81109
- })(), N = c?.(String(e), _)?.validationError, P = k || C || N || null, L = oe(null);
81110
- ne(() => {
81109
+ })(), N = c?.(String(e), _)?.validationError, P = k || C || N || null, L = ae(null);
81110
+ re(() => {
81111
81111
  if (r === _ && L.current !== _) {
81112
- const Z = u?.(`${e}-${_}`), re = c?.(String(e), _), J = re?.value !== void 0 ? re.value : t.value || "", ce = re?.meta?.currency_code || Z || g();
81112
+ const Z = u?.(`${e}-${_}`), ne = c?.(String(e), _), J = ne?.value !== void 0 ? ne.value : t.value || "", ce = ne?.meta?.currency_code || Z || g();
81113
81113
  w({
81114
81114
  value: J,
81115
81115
  currencyCode: ce
81116
81116
  });
81117
81117
  }
81118
81118
  r !== _ && L.current === _ && O(null), L.current = r;
81119
- }, [r, _, u, c, e, t.value]), ne(() => {
81119
+ }, [r, _, u, c, e, t.value]), re(() => {
81120
81120
  s && r === _ && t?.column?.masterDataColumnName && t?.column?.masterDataName && (d && d(String(e), _, {
81121
81121
  value: s.value,
81122
81122
  meta: { reference: s.reference },
@@ -81135,11 +81135,11 @@ const pa = (t) => ({
81135
81135
  v,
81136
81136
  l
81137
81137
  ]);
81138
- const R = (Y) => t?.column?.is_required && (Y == null || Y === "" || typeof Y == "string" && Y.trim() === "") ? (O("Field required"), !1) : (O(null), !0), D = (Y) => R(Y) ? Y && Y.trim() !== "" && !Qu.url.test(Y) ? (O("Invalid URL format"), !1) : (O(null), !0) : !1, F = (Y) => R(Y) ? Y && Y.trim() !== "" && !Qu.email.test(Y) ? (O("Email is not valid"), !1) : (O(null), !0) : !1, I = oe(S);
81139
- ne(() => {
81138
+ const R = (Y) => t?.column?.is_required && (Y == null || Y === "" || typeof Y == "string" && Y.trim() === "") ? (O("Field required"), !1) : (O(null), !0), D = (Y) => R(Y) ? Y && Y.trim() !== "" && !Qu.url.test(Y) ? (O("Invalid URL format"), !1) : (O(null), !0) : !1, F = (Y) => R(Y) ? Y && Y.trim() !== "" && !Qu.email.test(Y) ? (O("Email is not valid"), !1) : (O(null), !0) : !1, I = ae(S);
81139
+ re(() => {
81140
81140
  I.current = S;
81141
81141
  }, [S]);
81142
- const M = oe(null), B = `${e}-${_}`;
81142
+ const M = ae(null), B = `${e}-${_}`;
81143
81143
  ul(() => {
81144
81144
  const Y = M.current;
81145
81145
  if (!Y) return;
@@ -81152,8 +81152,8 @@ const pa = (t) => ({
81152
81152
  }
81153
81153
  } else mi !== B && Y.focus();
81154
81154
  }, [B]);
81155
- const W = oe();
81156
- ne(() => () => {
81155
+ const W = ae();
81156
+ re(() => () => {
81157
81157
  W.current && clearTimeout(W.current);
81158
81158
  }, []);
81159
81159
  const Q = ue(
@@ -81187,7 +81187,7 @@ const pa = (t) => ({
81187
81187
  break;
81188
81188
  }
81189
81189
  }, [t?.column?.type]), K = ue(() => {
81190
- const Y = t?.column?.type?.toLowerCase(), Z = I.current.value, re = I.current.currencyCode;
81190
+ const Y = t?.column?.type?.toLowerCase(), Z = I.current.value, ne = I.current.currencyCode;
81191
81191
  let J = !0;
81192
81192
  switch (Y) {
81193
81193
  case "url":
@@ -81203,18 +81203,18 @@ const pa = (t) => ({
81203
81203
  if (!J)
81204
81204
  return { isValid: !1 };
81205
81205
  let ce = null;
81206
- return Y === "currency" && (ce = { currency_code: u?.(y) || re }), {
81206
+ return Y === "currency" && (ce = { currency_code: u?.(y) || ne }), {
81207
81207
  isValid: !0,
81208
81208
  value: typeof Z == "number" ? String(Z) : Z,
81209
81209
  meta: ce
81210
81210
  };
81211
81211
  }, [t?.column?.type, y, u]);
81212
- ne(() => {
81212
+ re(() => {
81213
81213
  a && r === _ && a(K);
81214
81214
  }, [a, K, r, _]);
81215
81215
  const ie = () => {
81216
81216
  if (t?.column?.is_master_data && t?.column?.masterDataName && (t?.column?.masterDataColumnName || t?.column?.masterDataFormula)) {
81217
- const re = c?.(String(e), _), J = s?.value ?? re?.value ?? t.value;
81217
+ const ne = c?.(String(e), _), J = s?.value ?? ne?.value ?? t.value;
81218
81218
  return /* @__PURE__ */ A("div", { onMouseDown: (ce) => ce.stopPropagation(), className: "z-[120] h-full w-full", children: /* @__PURE__ */ A(
81219
81219
  nAe,
81220
81220
  {
@@ -81233,20 +81233,20 @@ const pa = (t) => ({
81233
81233
  masterDataFormula: t.column.masterDataFormula,
81234
81234
  masterDataFilters: t.column.masterDataFilters,
81235
81235
  onOpenMasterDataModal: o,
81236
- reference: re?.meta?.reference
81236
+ reference: ne?.meta?.reference
81237
81237
  }
81238
81238
  ) });
81239
81239
  }
81240
81240
  const Y = t?.column?.type?.toLowerCase(), Z = _ ? t?.row?.original?.__cellMetadata?.[_] : void 0;
81241
81241
  switch (Y) {
81242
81242
  case "choice": {
81243
- const re = Z?.choices ?? t?.column?.choices;
81243
+ const ne = Z?.choices ?? t?.column?.choices;
81244
81244
  return /* @__PURE__ */ A("div", { onMouseDown: (J) => J.stopPropagation(), children: /* @__PURE__ */ A(
81245
81245
  ec,
81246
81246
  {
81247
81247
  id: `select-cell-${e}-${t.column.id}`,
81248
81248
  value: S.value || null,
81249
- selectOptions: re?.map((J) => ({
81249
+ selectOptions: ne?.map((J) => ({
81250
81250
  label: J,
81251
81251
  value: J
81252
81252
  })) || [],
@@ -81272,16 +81272,16 @@ const pa = (t) => ({
81272
81272
  return /* @__PURE__ */ A(
81273
81273
  "div",
81274
81274
  {
81275
- onMouseDown: (re) => {
81276
- re.stopPropagation(), re.target.tagName !== "INPUT" && re.preventDefault();
81275
+ onMouseDown: (ne) => {
81276
+ ne.stopPropagation(), ne.target.tagName !== "INPUT" && ne.preventDefault();
81277
81277
  },
81278
81278
  children: /* @__PURE__ */ A(
81279
81279
  FS,
81280
81280
  {
81281
81281
  id: `date-cell-${e}-${t.column.id}`,
81282
81282
  value: S.value || void 0,
81283
- handleOnChange: (re) => {
81284
- const J = re || "";
81283
+ handleOnChange: (ne) => {
81284
+ const J = ne || "";
81285
81285
  w((ce) => ({ ...ce, value: J })), i(pa(J)), d && d(String(e), _, {
81286
81286
  value: J,
81287
81287
  originalValue: t.value
@@ -81295,7 +81295,7 @@ const pa = (t) => ({
81295
81295
  }
81296
81296
  );
81297
81297
  case "currency": {
81298
- const re = g();
81298
+ const ne = g();
81299
81299
  return /* @__PURE__ */ A("div", { onMouseDown: (J) => J.stopPropagation(), className: "z-[120] h-full w-full", children: /* @__PURE__ */ A(
81300
81300
  rAe,
81301
81301
  {
@@ -81309,7 +81309,7 @@ const pa = (t) => ({
81309
81309
  value: J,
81310
81310
  meta: { currency_code: ce },
81311
81311
  originalValue: t.value,
81312
- originalMeta: { currency_code: re }
81312
+ originalMeta: { currency_code: ne }
81313
81313
  }), R(J), v(J, { currency_code: ce });
81314
81314
  },
81315
81315
  currencyCode: S.currencyCode,
@@ -81324,19 +81324,19 @@ const pa = (t) => ({
81324
81324
  ) });
81325
81325
  }
81326
81326
  case "percentage":
81327
- return /* @__PURE__ */ T("label", { className: "relative block h-full", onMouseDown: (re) => re.stopPropagation(), children: [
81327
+ return /* @__PURE__ */ T("label", { className: "relative block h-full", onMouseDown: (ne) => ne.stopPropagation(), children: [
81328
81328
  /* @__PURE__ */ A(
81329
81329
  "input",
81330
81330
  {
81331
81331
  ref: M,
81332
81332
  type: "number",
81333
81333
  defaultValue: String(S.value ?? ""),
81334
- onChange: (re) => {
81334
+ onChange: (ne) => {
81335
81335
  try {
81336
- hi.set(B, { start: re.target.selectionStart ?? 0, end: re.target.selectionEnd ?? 0 });
81336
+ hi.set(B, { start: ne.target.selectionStart ?? 0, end: ne.target.selectionEnd ?? 0 });
81337
81337
  } catch {
81338
81338
  }
81339
- const J = re.target.value;
81339
+ const J = ne.target.value;
81340
81340
  w((ce) => ({ ...ce, value: J })), I.current = { ...I.current, value: J }, on = B, R(J), te(J);
81341
81341
  },
81342
81342
  onBlur: () => {
@@ -81344,8 +81344,8 @@ const pa = (t) => ({
81344
81344
  mi = null;
81345
81345
  });
81346
81346
  },
81347
- onKeyDown: (re) => {
81348
- re.stopPropagation();
81347
+ onKeyDown: (ne) => {
81348
+ ne.stopPropagation();
81349
81349
  },
81350
81350
  className: "border border-gray-300 h-full text-gray-900 dark:bg-black-800 dark:text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 dark:focus:ring-white dark:focus:border-white block w-full px-2.5 py-1.5 font-inter font-medium disabled:bg-neutral-50 dark:disabled:!bg-black-800 dark:disabled:placeholder:!text-black-400",
81351
81351
  id: `percentage-cell-${e}-${t.column.id}`,
@@ -81361,7 +81361,7 @@ const pa = (t) => ({
81361
81361
  /* @__PURE__ */ A("span", { className: "absolute inset-y-0 right-3 flex items-center pointer-events-none h-full dark:text-black-100", children: "%" })
81362
81362
  ] });
81363
81363
  case "boolean": {
81364
- const re = S.value === !0 || S.value === "true" || S.value === "Yes" || S.value === "True" || S.value === 1;
81364
+ const ne = S.value === !0 || S.value === "true" || S.value === "Yes" || S.value === "True" || S.value === 1;
81365
81365
  return /* @__PURE__ */ A(
81366
81366
  "div",
81367
81367
  {
@@ -81371,7 +81371,7 @@ const pa = (t) => ({
81371
81371
  Oi,
81372
81372
  {
81373
81373
  id: `toggle-cell-${e}-${t.column.id}`,
81374
- isChecked: re,
81374
+ isChecked: ne,
81375
81375
  onChange: (J) => {
81376
81376
  w((ce) => ({ ...ce, value: J })), i(pa(J)), d && d(String(e), _, {
81377
81377
  value: J,
@@ -81381,7 +81381,7 @@ const pa = (t) => ({
81381
81381
  hideStatus: !1,
81382
81382
  labelDirection: "right",
81383
81383
  stopClickPropagation: !0,
81384
- statusText: re ? "Yes" : "No"
81384
+ statusText: ne ? "Yes" : "No"
81385
81385
  }
81386
81386
  )
81387
81387
  }
@@ -81394,9 +81394,9 @@ const pa = (t) => ({
81394
81394
  ref: M,
81395
81395
  type: "url",
81396
81396
  defaultValue: String(S.value ?? ""),
81397
- onChange: (re) => {
81398
- hi.set(B, { start: re.target.selectionStart ?? 0, end: re.target.selectionEnd ?? 0 });
81399
- const J = re.target.value;
81397
+ onChange: (ne) => {
81398
+ hi.set(B, { start: ne.target.selectionStart ?? 0, end: ne.target.selectionEnd ?? 0 });
81399
+ const J = ne.target.value;
81400
81400
  w((ce) => ({ ...ce, value: J })), I.current = { ...I.current, value: J }, on = B, k ? D(J) : R(J), te(J);
81401
81401
  },
81402
81402
  onBlur: () => {
@@ -81404,10 +81404,10 @@ const pa = (t) => ({
81404
81404
  mi = null;
81405
81405
  });
81406
81406
  },
81407
- onKeyDown: (re) => {
81408
- re.stopPropagation();
81407
+ onKeyDown: (ne) => {
81408
+ ne.stopPropagation();
81409
81409
  },
81410
- onMouseDown: (re) => re.stopPropagation(),
81410
+ onMouseDown: (ne) => ne.stopPropagation(),
81411
81411
  className: "text-neutral-900 dark:text-white dark:bg-black-800 text-base font-medium h-full font-inter overflow-hidden whitespace-nowrap text-ellipsis px-2.5 py-1 w-full border rounded focus:outline-primary-600 dark:focus:outline-white z-[120] shadow-xl disabled:bg-neutral-50 dark:disabled:!bg-black-800",
81412
81412
  style: {
81413
81413
  height: "var(--row-height)"
@@ -81422,12 +81422,12 @@ const pa = (t) => ({
81422
81422
  ref: M,
81423
81423
  type: "email",
81424
81424
  defaultValue: String(S.value ?? ""),
81425
- onChange: (re) => {
81425
+ onChange: (ne) => {
81426
81426
  try {
81427
- hi.set(B, { start: re.target.selectionStart ?? 0, end: re.target.selectionEnd ?? 0 });
81427
+ hi.set(B, { start: ne.target.selectionStart ?? 0, end: ne.target.selectionEnd ?? 0 });
81428
81428
  } catch {
81429
81429
  }
81430
- const J = re.target.value;
81430
+ const J = ne.target.value;
81431
81431
  w((ce) => ({ ...ce, value: J })), I.current = { ...I.current, value: J }, on = B, k ? F(J) : R(J), te(J);
81432
81432
  },
81433
81433
  onBlur: () => {
@@ -81435,10 +81435,10 @@ const pa = (t) => ({
81435
81435
  mi = null;
81436
81436
  });
81437
81437
  },
81438
- onKeyDown: (re) => {
81439
- re.stopPropagation();
81438
+ onKeyDown: (ne) => {
81439
+ ne.stopPropagation();
81440
81440
  },
81441
- onMouseDown: (re) => re.stopPropagation(),
81441
+ onMouseDown: (ne) => ne.stopPropagation(),
81442
81442
  className: "text-neutral-900 dark:text-white dark:bg-black-800 text-base font-medium h-full font-inter overflow-hidden whitespace-nowrap text-ellipsis px-2.5 py-1 w-full border rounded focus:outline-primary-600 dark:focus:outline-white z-[120] shadow-xl disabled:bg-neutral-50 dark:disabled:!bg-black-800",
81443
81443
  style: {
81444
81444
  height: "var(--row-height)"
@@ -81453,9 +81453,9 @@ const pa = (t) => ({
81453
81453
  ref: M,
81454
81454
  type: "text",
81455
81455
  defaultValue: String(S.value ?? ""),
81456
- onChange: (re) => {
81457
- hi.set(B, { start: re.target.selectionStart ?? 0, end: re.target.selectionEnd ?? 0 });
81458
- const J = re.target.value;
81456
+ onChange: (ne) => {
81457
+ hi.set(B, { start: ne.target.selectionStart ?? 0, end: ne.target.selectionEnd ?? 0 });
81458
+ const J = ne.target.value;
81459
81459
  w((ce) => ({ ...ce, value: J })), I.current = { ...I.current, value: J }, on = B, R(J), te(J);
81460
81460
  },
81461
81461
  onBlur: () => {
@@ -81463,10 +81463,10 @@ const pa = (t) => ({
81463
81463
  mi = null;
81464
81464
  });
81465
81465
  },
81466
- onKeyDown: (re) => {
81467
- re.stopPropagation();
81466
+ onKeyDown: (ne) => {
81467
+ ne.stopPropagation();
81468
81468
  },
81469
- onMouseDown: (re) => re.stopPropagation(),
81469
+ onMouseDown: (ne) => ne.stopPropagation(),
81470
81470
  className: "text-neutral-900 dark:text-white dark:bg-black-800 text-base font-medium h-full font-inter overflow-hidden whitespace-nowrap text-ellipsis px-2.5 py-1 w-full border rounded focus:outline-primary-600 dark:focus:outline-white z-[120] shadow-xl disabled:bg-neutral-50 dark:disabled:!bg-black-800",
81471
81471
  style: {
81472
81472
  height: "var(--row-height)"
@@ -81564,9 +81564,9 @@ const uS = (t) => {
81564
81564
  allowInlineEdit: q,
81565
81565
  fieldOperationLoading: K,
81566
81566
  pendingEdits: ie
81567
- } = fr(ai), Y = yn(), re = (t?.column?.key ? t?.row?.original?.__cellMetadata?.[t.column.key] : void 0)?.is_locked ?? t?.column?.is_locked, J = (t?.column?.key ? ie?.[e]?.[t.column.key]?.validationError : null) || R || null, ce = v === t.column.key && t?.column?.canEdit && !re && !t?.column?.is_disabled, ze = K === `${e}-${t?.column?.id}`, { theme: Ee } = DW(), _e = Ee === "dark", me = ue(() => _(e), [_, e]), ge = ue(() => _(null), [_]), we = Y?.formatDuration, [Se, pe] = X(
81567
+ } = fr(ai), Y = yn(), ne = (t?.column?.key ? t?.row?.original?.__cellMetadata?.[t.column.key] : void 0)?.is_locked ?? t?.column?.is_locked, J = (t?.column?.key ? ie?.[e]?.[t.column.key]?.validationError : null) || R || null, ce = v === t.column.key && t?.column?.canEdit && !ne && !t?.column?.is_disabled, ze = K === `${e}-${t?.column?.id}`, { theme: Ee } = DW(), _e = Ee === "dark", me = ue(() => _(e), [_, e]), ge = ue(() => _(null), [_]), we = Y?.formatDuration, [Se, pe] = X(
81568
81568
  t?.column?.dataType === "duration" && t?.value ? we ? we(t.value) : uS(t.value) : t.value
81569
- ), [G, Ae] = X(null), [Ce, Xe] = X(!1), [Ze, tt] = X(!1), [We, Ne] = X(!1), Fe = oe(null), ve = oe(), Me = oe(), { selectedColumnIds: Ue = [] } = Q || {}, $e = !Object.prototype.hasOwnProperty.call(t?.column?.meta ?? {}, "shouldHighlight") || t?.column?.meta?.shouldHighlight, dt = ue(() => {
81569
+ ), [G, Ae] = X(null), [Ce, Xe] = X(!1), [Ze, tt] = X(!1), [We, Ne] = X(!1), Fe = ae(null), ve = ae(), Me = ae(), { selectedColumnIds: Ue = [] } = Q || {}, $e = !Object.prototype.hasOwnProperty.call(t?.column?.meta ?? {}, "shouldHighlight") || t?.column?.meta?.shouldHighlight, dt = ue(() => {
81570
81570
  Fe.current && Xe(Fe.current.scrollWidth > Fe.current.clientWidth);
81571
81571
  }, []), at = ue((qe) => {
81572
81572
  ve.current && clearTimeout(ve.current), qe ? tt(!0) : ve.current = setTimeout(() => tt(!1), 200);
@@ -81587,14 +81587,14 @@ const uS = (t) => {
81587
81587
  }), vt = (qe) => {
81588
81588
  t.column?.disableRowClick || s(qe);
81589
81589
  };
81590
- return ne(() => (t?.row?.original?.status === "running" && t.column?.dataType === "duration" && (j1 = setInterval(() => {
81590
+ return re(() => (t?.row?.original?.status === "running" && t.column?.dataType === "duration" && (j1 = setInterval(() => {
81591
81591
  const Ke = new Date(ki(t?.row?.original?.created_at || t?.row?.original?.executed_on, { withTime: !0, format: "yyyy-MM-dd HH:mm:ss" })), Je = Math.abs((/* @__PURE__ */ new Date()).getTime() - new Date(Ke).getTime());
81592
81592
  pe(we ? we(Je) : uS(Je));
81593
81593
  }, 500)), () => {
81594
81594
  j1 && clearInterval(j1);
81595
- }), [Se, t.value, t?.row?.original?.created_at, t?.row?.original?.executed_on, t?.row?.original?.status, t.column?.dataType, we]), ne(() => {
81595
+ }), [Se, t.value, t?.row?.original?.created_at, t?.row?.original?.executed_on, t?.row?.original?.status, t.column?.dataType, we]), re(() => {
81596
81596
  (t?.column?.tooltipCellKey || t?.column?.type?.toLowerCase() === "url") && (t?.column?.type?.toLowerCase() === "url" ? Ae(t?.value) : Ae(t?.row?.original?.[String(t?.column?.tooltipCellKey)]));
81597
- }, [t?.column?.tooltipCellKey, t?.row?.original, t?.column?.type, t?.value]), ne(() => {
81597
+ }, [t?.column?.tooltipCellKey, t?.row?.original, t?.column?.type, t?.value]), re(() => {
81598
81598
  if (t?.column?.type?.toLowerCase() === "currency")
81599
81599
  if (P?.value !== void 0) {
81600
81600
  const qe = t?.row?.original?.__rawData, Ke = t?.column?.Header, Je = P?.meta?.currency_code || qe?.[Ke]?.currency_code || "USD";
@@ -81603,24 +81603,24 @@ const uS = (t) => {
81603
81603
  const qe = t?.row?.original?.__rawData, Ke = t?.column?.Header;
81604
81604
  pe(no(t?.value, qe?.[Ke]?.currency_code || "USD"));
81605
81605
  }
81606
- }, [t?.value, t?.column?.type, t?.column?.Header, t?.row?.original?.__rawData, P?.value, P?.meta?.currency_code]), ne(() => {
81606
+ }, [t?.value, t?.column?.type, t?.column?.Header, t?.row?.original?.__rawData, P?.value, P?.meta?.currency_code]), re(() => {
81607
81607
  t?.column?.type?.toLowerCase() === "percentage" && (P?.value !== void 0 ? pe(P.value?.toString() + "%" || "") : pe(t?.value?.toString() + "%" || ""));
81608
- }, [t?.value, t?.column?.type, P?.value]), ne(() => {
81608
+ }, [t?.value, t?.column?.type, P?.value]), re(() => {
81609
81609
  const qe = t?.column?.type?.toLowerCase() || "";
81610
81610
  if (["date", "datetime"].includes(qe))
81611
81611
  if (P?.value !== void 0) {
81612
81612
  const Ke = qe === "datetime", Je = ki(P.value, { withTime: Ke, skipTimezone: !0 });
81613
81613
  pe(Je || P.value);
81614
81614
  } else pe(t.value);
81615
- }, [t?.value, t?.column?.type, P?.value]), ne(() => {
81615
+ }, [t?.value, t?.column?.type, P?.value]), re(() => {
81616
81616
  const qe = t?.column?.type?.toLowerCase() || "";
81617
81617
  ["currency", "percentage", "duration", "boolean", "date", "datetime"].includes(qe) || (P?.value !== void 0 ? pe(P.value) : t?.column?.dataType !== "duration" && pe(t.value));
81618
- }, [t?.value, t?.column?.type, t?.column?.dataType, P?.value]), ne(() => {
81618
+ }, [t?.value, t?.column?.type, t?.column?.dataType, P?.value]), re(() => {
81619
81619
  if (t?.column?.type?.toLowerCase() === "boolean" && q) {
81620
81620
  const qe = P?.value !== void 0 ? P.value : t?.value;
81621
81621
  pe(qe === !0 || qe === "true" || qe === "True" || qe === "Yes" || qe === 1 ? "Yes" : "No");
81622
81622
  }
81623
- }, [t?.value, t?.column?.type, q, P?.value]), ne(() => () => {
81623
+ }, [t?.value, t?.column?.type, q, P?.value]), re(() => () => {
81624
81624
  ve.current && clearTimeout(ve.current), Me.current && clearTimeout(Me.current);
81625
81625
  }, []), /* @__PURE__ */ T(
81626
81626
  "td",
@@ -81645,7 +81645,7 @@ const uS = (t) => {
81645
81645
  return Je === "boolean" ? Ke === !0 || Ke === "true" || Ke === "True" ? "Yes" : "No" : (Je === "date" || Je === "datetime") && Ke ? ki(Ke, { withTime: Je === "datetime", skipTimezone: !0 }) || String(Ke) : Ke != null ? String(Ke) : Se;
81646
81646
  })() }),
81647
81647
  /* @__PURE__ */ A("div", { className: "ml-2 flex items-center gap-1.5", children: /* @__PURE__ */ A(Wi, { className: "spinner text-neutral-600 dark:text-white", size: 12 }) })
81648
- ] }) : v === t.column.key && t?.column?.canEdit && !re && !t?.column?.is_disabled ? /* @__PURE__ */ A("div", { className: "h-row w-full absolute top-0 left-0 flex items-center", style: { marginLeft: m > 0 && a === 0 ? `-${m * 16}px` : void 0, width: m > 0 && a === 0 ? `calc(100% + ${m * 16}px)` : "100%" }, children: /* @__PURE__ */ A(iAe, { cell: t, id: e, inlineEditing: v, cellRef: x, handleCellValueChange: y, handleUpdateCellData: E, registerValidation: S }) }) : /* @__PURE__ */ T(ot, { children: [
81648
+ ] }) : v === t.column.key && t?.column?.canEdit && !ne && !t?.column?.is_disabled ? /* @__PURE__ */ A("div", { className: "h-row w-full absolute top-0 left-0 flex items-center", style: { marginLeft: m > 0 && a === 0 ? `-${m * 16}px` : void 0, width: m > 0 && a === 0 ? `calc(100% + ${m * 16}px)` : "100%" }, children: /* @__PURE__ */ A(iAe, { cell: t, id: e, inlineEditing: v, cellRef: x, handleCellValueChange: y, handleUpdateCellData: E, registerValidation: S }) }) : /* @__PURE__ */ T(ot, { children: [
81649
81649
  m > 0 && a === 0 && /* @__PURE__ */ A("div", { className: "h-full border-l border-neutral-300 dark:border-black-600 ml-2" }),
81650
81650
  /* @__PURE__ */ A("div", { className: "min-h-6", children: /* @__PURE__ */ A(
81651
81651
  Re,
@@ -81670,7 +81670,7 @@ const uS = (t) => {
81670
81670
  {
81671
81671
  title: /* @__PURE__ */ A("div", { onMouseEnter: () => at(!0), onMouseLeave: () => at(!1), children: /* @__PURE__ */ A("a", { href: G, target: "_blank", rel: "noopener noreferrer", onClick: (qe) => qe.stopPropagation(), children: /* @__PURE__ */ T("div", { className: "flex gap-1 items-center w-full", children: [
81672
81672
  /* @__PURE__ */ A("div", { className: "w-4 h-4", children: /* @__PURE__ */ A(jN, { height: 16, width: 16 }) }),
81673
- /* @__PURE__ */ A(ae, { variant: "medium", size: "small", className: "truncate", appearance: "custom", children: G }),
81673
+ /* @__PURE__ */ A(oe, { variant: "medium", size: "small", className: "truncate", appearance: "custom", children: G }),
81674
81674
  /* @__PURE__ */ A(cN, { sx: { height: "16px", width: "16px", color: "#016DCF" } })
81675
81675
  ] }) }) }),
81676
81676
  placement: "top",
@@ -81707,7 +81707,7 @@ const uS = (t) => {
81707
81707
  ) })
81708
81708
  ] }) }),
81709
81709
  J && !ce && /* @__PURE__ */ A("div", { className: "absolute bottom-0 left-0 right-0 h-row flex items-end pointer-events-none z-[5]", children: /* @__PURE__ */ A("div", { className: "w-full bg-error-50 dark:bg-error-975 px-1.5 py-0.5 truncate", children: /* @__PURE__ */ A("span", { className: "text-error-600 text-[10px] font-medium leading-none", children: J }) }) }),
81710
- ze && !(v === t.column.key && t?.column?.canEdit && !re && !t?.column?.is_disabled) && /* @__PURE__ */ A("div", { className: "absolute top-0 right-0 bg-white dark:bg-black-800 rounded-full w-5 h-5 flex items-center justify-center border border-primary-300 dark:border-primary-600 shadow-sm z-10", children: /* @__PURE__ */ A(Wi, { className: "text-primary-600 dark:text-white", size: 8 }) })
81710
+ ze && !(v === t.column.key && t?.column?.canEdit && !ne && !t?.column?.is_disabled) && /* @__PURE__ */ A("div", { className: "absolute top-0 right-0 bg-white dark:bg-black-800 rounded-full w-5 h-5 flex items-center justify-center border border-primary-300 dark:border-primary-600 shadow-sm z-10", children: /* @__PURE__ */ A(Wi, { className: "text-primary-600 dark:text-white", size: 8 }) })
81711
81711
  ]
81712
81712
  },
81713
81713
  a
@@ -81756,7 +81756,7 @@ const uS = (t) => {
81756
81756
  showNewItem: p,
81757
81757
  onScrollToCell: h
81758
81758
  }) => {
81759
- const [m, v] = X(!1), [g, _] = X({ top: 0, left: 0 }), y = oe(null), x = oe(null), E = r?.[t], S = Pe(
81759
+ const [m, v] = X(!1), [g, _] = X({ top: 0, left: 0 }), y = ae(null), x = ae(null), E = r?.[t], S = Pe(
81760
81760
  () => E ? Object.entries(E).map(([N, P]) => {
81761
81761
  const L = n?.find((D) => D.key === N), R = L?.Header || L?.display_name || N;
81762
81762
  return { columnKey: N, fieldName: R, value: P.value, originalValue: P.originalValue, meta: P.meta, originalMeta: P.originalMeta };
@@ -81948,8 +81948,8 @@ const uS = (t) => {
81948
81948
  pendingEdits: B
81949
81949
  } = fr(ai), W = yn(), Q = !!c, { activeInlineEdit: te, setActiveInlineEdit: j } = fr(ai), q = te?.rowId === t.original.id ? te?.columnKey : null, K = !!q, ie = (Ge) => {
81950
81950
  j?.(Ge === null ? null : { rowId: String(t.original.id), columnKey: Ge });
81951
- }, [Y, Z] = X(null), [re, J] = X(null), [ce, ze] = X(null), [Ee, _e] = X(!1), [me, ge] = X(!1), we = oe(null);
81952
- ne(() => {
81951
+ }, [Y, Z] = X(null), [ne, J] = X(null), [ce, ze] = X(null), [Ee, _e] = X(!1), [me, ge] = X(!1), we = ae(null);
81952
+ re(() => {
81953
81953
  const Ge = we.current, gt = q;
81954
81954
  if (Ge && !gt) {
81955
81955
  const ir = B?.[t.original.id]?.[Ge];
@@ -81965,7 +81965,7 @@ const uS = (t) => {
81965
81965
  }
81966
81966
  }
81967
81967
  we.current = gt ?? null;
81968
- }, [q, t.original.id, t.cells, B, R]), ne(() => {
81968
+ }, [q, t.original.id, t.cells, B, R]), re(() => {
81969
81969
  if (w) {
81970
81970
  const Ge = String(t?.original?.id);
81971
81971
  ze(w[Ge]?.[t?.cells[0].column.Header] || w[Ge]?.[0]);
@@ -81983,12 +81983,12 @@ const uS = (t) => {
81983
81983
  J(Ge.target.value);
81984
81984
  }, $e = () => {
81985
81985
  F || ie(null);
81986
- }, dt = oe(null), at = ue(
81986
+ }, dt = ae(null), at = ue(
81987
81987
  (Ge) => {
81988
81988
  dt.current = Ge;
81989
81989
  },
81990
81990
  []
81991
- ), nt = oe(W);
81991
+ ), nt = ae(W);
81992
81992
  nt.current = W;
81993
81993
  const Ye = ue(() => {
81994
81994
  I && I(String(t.original.id));
@@ -82013,9 +82013,9 @@ const uS = (t) => {
82013
82013
  }
82014
82014
  M && M(String(t.original.id));
82015
82015
  }, [M, t.original, t.cells, q, R, B]), qe = (Ge, gt) => {
82016
- const ir = { ...t.original }, Ct = Ge !== void 0 ? Ge : re;
82016
+ const ir = { ...t.original }, Ct = Ge !== void 0 ? Ge : ne;
82017
82017
  q && Ct !== void 0 && (ir[q] = Ct, m && m(ir, i, q, Ct, gt), D && D(String(t.original.id), q)), $e();
82018
- }, Ke = oe(null), Je = (Ge, gt, ir, Ct) => {
82018
+ }, Ke = ae(null), Je = (Ge, gt, ir, Ct) => {
82019
82019
  if (!N && (Ge?.stopPropagation(), q !== Ct)) {
82020
82020
  if (m) {
82021
82021
  if (v?.includes(Ct))
@@ -82209,7 +82209,7 @@ const uS = (t) => {
82209
82209
  tableHeaders: q,
82210
82210
  pendingEditsCount: K,
82211
82211
  scrollToCell: ie
82212
- } = fr(ai), Y = j?.[o.original.id] && Object.keys(j[o.original.id]).length > 0, Z = (K ?? 0) > 0, re = Pe(() => {
82212
+ } = fr(ai), Y = j?.[o.original.id] && Object.keys(j[o.original.id]).length > 0, Z = (K ?? 0) > 0, ne = Pe(() => {
82213
82213
  if (Array.isArray(L)) return L;
82214
82214
  if (typeof L == "function") {
82215
82215
  const J = L({ ...o.original, rowIndex: c });
@@ -82348,11 +82348,11 @@ const uS = (t) => {
82348
82348
  ]
82349
82349
  }
82350
82350
  ),
82351
- (re.length > 0 || !!I) && /* @__PURE__ */ A(
82351
+ (ne.length > 0 || !!I) && /* @__PURE__ */ A(
82352
82352
  hAe,
82353
82353
  {
82354
82354
  rowId: o.original.id,
82355
- rowOptions: re,
82355
+ rowOptions: ne,
82356
82356
  disableOption: u !== null || !!o?.original?.__isLoading,
82357
82357
  rowHovering: s,
82358
82358
  setRowHovering: N,
@@ -82390,14 +82390,14 @@ const uS = (t) => {
82390
82390
  },
82391
82391
  [e]
82392
82392
  );
82393
- return ne(() => {
82393
+ return re(() => {
82394
82394
  a && i && i("SET_SCROLLBAR_REF_FOR_INFINITY_TABLE", { scrollbarsInstance: a });
82395
82395
  }, [a, i]), /* @__PURE__ */ A(nu, { ref: s, style: { ...r, overflow: "hidden" }, onScroll: t, renderViewClassName: "!h-[calc(100%+5px)]", children: n });
82396
82396
  }, gAe = ct((t, e) => {
82397
82397
  const r = yn();
82398
82398
  return /* @__PURE__ */ A(mAe, { ...t, forwardedRef: e, dispatchEvent: r?.dispatchEvent });
82399
82399
  }), bAe = ({ rows: t, prepareRow: e, isLoading: r, onScroll: n, columns: i, width: a, height: o, onScrolling: s, level: l = 0, allowAstarSearch: u = !1 }) => {
82400
- const c = oe(null), d = oe(null), f = yn(), {
82400
+ const c = ae(null), d = ae(null), f = yn(), {
82401
82401
  tableWrapper: p,
82402
82402
  tableBodyWrapper: h,
82403
82403
  search: m,
@@ -82406,23 +82406,23 @@ const uS = (t) => {
82406
82406
  activeInlineEdit: _,
82407
82407
  closeCurrencyDropdown: y,
82408
82408
  currencyDropdownConfig: x
82409
- } = fr(ai), E = oe(f);
82410
- E.current = f, ne(() => {
82409
+ } = fr(ai), E = ae(f);
82410
+ E.current = f, re(() => {
82411
82411
  if (E.current?.onEvent)
82412
82412
  return E.current.onEvent("SET_SCROLLBAR_REF_FOR_INFINITY_TABLE", (M) => {
82413
82413
  const { scrollbarsInstance: B } = M;
82414
82414
  c.current = B;
82415
82415
  });
82416
82416
  }, [f?.onEvent]);
82417
- const S = oe(null);
82418
- ne(() => {
82417
+ const S = ae(null);
82418
+ re(() => {
82419
82419
  if (E.current?.onEvent)
82420
82420
  return E.current.onEvent("SCROLL_TO_TABLE_ROW", (M) => {
82421
82421
  const { rowIndex: B } = M;
82422
82422
  S.current && typeof B == "number" && S.current.scrollToItem(B, "center");
82423
82423
  });
82424
82424
  }, [f?.onEvent]);
82425
- const w = oe({}), k = ue((M, B) => 0, [v]), O = ue(() => {
82425
+ const w = ae({}), k = ue((M, B) => 0, [v]), O = ue(() => {
82426
82426
  const M = { ...w.current };
82427
82427
  for (const B of t) {
82428
82428
  const W = B.original.id;
@@ -82434,7 +82434,7 @@ const uS = (t) => {
82434
82434
  }
82435
82435
  w.current = M, S.current?.resetAfterIndex(0);
82436
82436
  }, [v, t, k]);
82437
- ne(() => {
82437
+ re(() => {
82438
82438
  O();
82439
82439
  }, [O]);
82440
82440
  const C = ue((M) => w.current[M] || 41, []), N = ue(
@@ -82506,9 +82506,9 @@ const uS = (t) => {
82506
82506
  );
82507
82507
  },
82508
82508
  [i, t, r, N, e, v, L, l]
82509
- ), D = oe(_);
82509
+ ), D = ae(_);
82510
82510
  D.current = _;
82511
- const F = oe(!!x);
82511
+ const F = ae(!!x);
82512
82512
  F.current = !!x;
82513
82513
  const I = ue(
82514
82514
  (M) => {
@@ -82558,15 +82558,15 @@ const uS = (t) => {
82558
82558
  allowAstarSearch: c
82559
82559
  }
82560
82560
  ) }) }), vAe = ({ config: t, onClose: e }) => {
82561
- const r = yn(), [n, i] = X(""), [a, o] = X(eg), s = oe(null);
82562
- if (ne(() => {
82561
+ const r = yn(), [n, i] = X(""), [a, o] = X(eg), s = ae(null);
82562
+ if (re(() => {
82563
82563
  if (!t) {
82564
82564
  i("");
82565
82565
  return;
82566
82566
  }
82567
82567
  const m = eg.filter((v) => `${v.value} - ${v.label}`.toLowerCase().includes(n.toLowerCase()));
82568
82568
  o(m);
82569
- }, [n, t]), ne(() => {
82569
+ }, [n, t]), re(() => {
82570
82570
  if (!t) return;
82571
82571
  const m = (_) => {
82572
82572
  s.current && !s.current.contains(_.target) && e();
@@ -82682,13 +82682,13 @@ const uS = (t) => {
82682
82682
  onEditColumnClick: f,
82683
82683
  onDeleteColumnClick: p
82684
82684
  }) => {
82685
- const h = yn(), m = () => l(null), v = oe(null);
82685
+ const h = yn(), m = () => l(null), v = ae(null);
82686
82686
  Bb({
82687
82687
  ref: v,
82688
82688
  handler: m
82689
82689
  });
82690
82690
  const g = h?.t ?? ((S) => S), _ = r?.dataType === "date", y = r?.dataType === "boolean", x = g(_ ? "Least Recent" : "Sort By A-Z"), E = g(_ ? "Most Recent" : "Sort By Z-A");
82691
- return ne(() => {
82691
+ return re(() => {
82692
82692
  v.current?.querySelector("button:not([disabled])")?.focus();
82693
82693
  }, []), h?.renderColumnOptions ? h.renderColumnOptions({
82694
82694
  headerIndex: t,
@@ -83009,7 +83009,7 @@ const uS = (t) => {
83009
83009
  onSaveAll: a,
83010
83010
  onScrollToCell: o
83011
83011
  }) => {
83012
- const [s, l] = X(!1), [u, c] = X(!1), [d, f] = X(null), [p, h] = X(null), [m, v] = X(!1), [g, _] = X(""), [y, x] = X(!1), [E, S] = X(null), w = oe(null), k = oe(null), O = oe(null), C = oe(null), N = oe(null), P = oe(null), L = Pe(() => d ? e.filter((q) => q.rowId === d) : e, [e, d]), R = Pe(() => {
83012
+ const [s, l] = X(!1), [u, c] = X(!1), [d, f] = X(null), [p, h] = X(null), [m, v] = X(!1), [g, _] = X(""), [y, x] = X(!1), [E, S] = X(null), w = ae(null), k = ae(null), O = ae(null), C = ae(null), N = ae(null), P = ae(null), L = Pe(() => d ? e.filter((q) => q.rowId === d) : e, [e, d]), R = Pe(() => {
83013
83013
  if (!g) return r;
83014
83014
  const q = g.toLowerCase();
83015
83015
  return r.filter((K) => `row ${K.rowIndex + 1}`.toLowerCase().includes(q));
@@ -83018,9 +83018,9 @@ const uS = (t) => {
83018
83018
  const q = r.find((K) => K.rowId === d);
83019
83019
  return q ? `Row ${q.rowIndex + 1} (${q.editCount})` : `All Rows (${e.length})`;
83020
83020
  }, [d, r, e.length]);
83021
- ne(() => {
83021
+ re(() => {
83022
83022
  d && !r.find((q) => q.rowId === d) && f(null);
83023
- }, [r, d]), ne(() => {
83023
+ }, [r, d]), re(() => {
83024
83024
  const q = (K) => {
83025
83025
  const ie = K.target;
83026
83026
  !C.current?.contains(ie) && !P.current?.contains(ie) && (x(!1), _(""));
@@ -83032,10 +83032,10 @@ const uS = (t) => {
83032
83032
  }, []), I = ue(() => {
83033
83033
  w.current = setTimeout(() => l(!1), 300);
83034
83034
  }, []), M = ue((q, K, ie, Y) => {
83035
- const Z = Math.max(0, window.innerWidth - ie), re = Math.max(0, window.innerHeight - Y);
83035
+ const Z = Math.max(0, window.innerWidth - ie), ne = Math.max(0, window.innerHeight - Y);
83036
83036
  return {
83037
83037
  x: Math.min(Math.max(q, 0), Z),
83038
- y: Math.min(Math.max(K, 0), re)
83038
+ y: Math.min(Math.max(K, 0), ne)
83039
83039
  };
83040
83040
  }, []), B = ue((q) => {
83041
83041
  q.preventDefault();
@@ -83051,7 +83051,7 @@ const uS = (t) => {
83051
83051
  barHeight: ie.height
83052
83052
  }, v(!0);
83053
83053
  }, [p]);
83054
- ne(() => {
83054
+ re(() => {
83055
83055
  if (!m) return;
83056
83056
  const q = (ie) => {
83057
83057
  if (!k.current) return;
@@ -83063,7 +83063,7 @@ const uS = (t) => {
83063
83063
  return document.addEventListener("mousemove", q), document.addEventListener("mouseup", K), () => {
83064
83064
  document.removeEventListener("mousemove", q), document.removeEventListener("mouseup", K);
83065
83065
  };
83066
- }, [m, M]), ne(() => {
83066
+ }, [m, M]), re(() => {
83067
83067
  if (!p || !O.current) return;
83068
83068
  const q = () => {
83069
83069
  if (!O.current) return;
@@ -83339,7 +83339,7 @@ const uS = (t) => {
83339
83339
  enableRootDrag: ie,
83340
83340
  pageSize: Y = 10,
83341
83341
  onCascadingRowExpand: Z,
83342
- totalItems: re,
83342
+ totalItems: ne,
83343
83343
  showRecordCount: J = !1,
83344
83344
  getInnerRowData: ce,
83345
83345
  maxLevel: ze,
@@ -83373,15 +83373,15 @@ const uS = (t) => {
83373
83373
  onPendingEditsChange: Je,
83374
83374
  onCancelPendingEdits: Ot
83375
83375
  }) => {
83376
- const ft = yn(), ui = !!e?.search, kr = r?.columnFilters?.length > 0, vr = ui || kr, Tr = !!m, Ge = ft?.getTableView?.(t) ?? null, [gt, ir] = X(Ge || null), [Ct, ar] = X(!1), [la, Aa] = X(!1), [Hl, Fo] = X(null), [Ft, Uo] = X(o), Fl = (u.length === 0 || !Ft.length) && !v, [Ul, Ua] = X(null), [Fc, zo] = X(!1), [Pi, Uc] = X(null), [zc, le] = X(!1), [He, je] = X(null), [Mt, bt] = X(null), [Or, ua] = X({}), [or, pr] = X(null), [zl, Bo] = X(!1), [ci, Bl] = X(0), ql = oe(null), qo = oe(null), [Bc, Cr] = X({ width: 0, height: 0 }), [Un, xn] = X(null), [an, za] = X(null), [Vo, Wo] = X(null), [b3, _3] = X(null), [qc, Xo] = X({}), Vc = oe(!1), Wc = oe(gt);
83376
+ const ft = yn(), ui = !!e?.search, kr = r?.columnFilters?.length > 0, vr = ui || kr, Tr = !!m, Ge = ft?.getTableView?.(t) ?? null, [gt, ir] = X(Ge || null), [Ct, ar] = X(!1), [la, Aa] = X(!1), [Hl, Fo] = X(null), [Ft, Uo] = X(o), Fl = (u.length === 0 || !Ft.length) && !v, [Ul, Ua] = X(null), [Fc, zo] = X(!1), [Pi, Uc] = X(null), [zc, le] = X(!1), [He, je] = X(null), [Mt, bt] = X(null), [Or, ua] = X({}), [or, pr] = X(null), [zl, Bo] = X(!1), [ci, Bl] = X(0), ql = ae(null), qo = ae(null), [Bc, Cr] = X({ width: 0, height: 0 }), [Un, xn] = X(null), [an, za] = X(null), [Vo, Wo] = X(null), [b3, _3] = X(null), [qc, Xo] = X({}), Vc = ae(!1), Wc = ae(gt);
83377
83377
  Wc.current = gt;
83378
- const v3 = oe(ft);
83378
+ const v3 = ae(ft);
83379
83379
  v3.current = ft;
83380
- const y3 = oe(o);
83380
+ const y3 = ae(o);
83381
83381
  y3.current = o;
83382
- const Vl = oe(r);
83382
+ const Vl = ae(r);
83383
83383
  Vl.current = r;
83384
- const x3 = oe(null), S3 = oe(() => ({})), E3 = oe(() => ({})), [Pt, Li] = X({}), Xc = ue(
83384
+ const x3 = ae(null), S3 = ae(() => ({})), E3 = ae(() => ({})), [Pt, Li] = X({}), Xc = ue(
83385
83385
  (de, be, Ve) => {
83386
83386
  Li((rt) => {
83387
83387
  const ht = rt[de]?.[be];
@@ -83399,7 +83399,7 @@ const uS = (t) => {
83399
83399
  },
83400
83400
  [Ft]
83401
83401
  ), w3 = ue(() => Object.values(Pt).some((de) => Object.keys(de).length > 0), [Pt]);
83402
- ne(() => {
83402
+ re(() => {
83403
83403
  Ke && Ke({ addPendingEdit: Xc, hasPendingEdits: w3 });
83404
83404
  }, [Ke, Xc, w3]);
83405
83405
  const VO = ue((de, be) => {
@@ -83524,7 +83524,7 @@ const uS = (t) => {
83524
83524
  },
83525
83525
  [Pt, u, I, M, jo, Wl, Ba, ft]
83526
83526
  ), qa = Pe(() => Object.values(Pt).reduce((de, be) => de + Object.keys(be).length, 0), [Pt]);
83527
- ne(() => {
83527
+ re(() => {
83528
83528
  Je?.(qa > 0, qa);
83529
83529
  }, [qa, Je]);
83530
83530
  const GO = Pe(() => {
@@ -83575,7 +83575,7 @@ const uS = (t) => {
83575
83575
  ), { getTableProps: N3, getTableBodyProps: D3, headerGroups: Ql, prepareRow: R3, rows: ca } = lC;
83576
83576
  x3.current = Ql;
83577
83577
  const AC = JSON.stringify(Ql[0]?.headers?.map((de) => de?.Header));
83578
- ne(() => {
83578
+ re(() => {
83579
83579
  if (dt) {
83580
83580
  const de = x3.current;
83581
83581
  dt?.(de?.[0]?.headers?.map((be) => be?.Header) ?? []);
@@ -83664,7 +83664,7 @@ const uS = (t) => {
83664
83664
  unsaved: !0
83665
83665
  });
83666
83666
  };
83667
- ne(() => {
83667
+ re(() => {
83668
83668
  r?.columnFilters?.length > 0 && ar(!0);
83669
83669
  const de = Wc.current;
83670
83670
  if (JSON.stringify(de?.filters || []) !== JSON.stringify(r?.columnFilters || [])) {
@@ -83674,24 +83674,24 @@ const uS = (t) => {
83674
83674
  ir({ ...ht, filters: JSON.parse(JSON.stringify(r?.columnFilters || [])), unsaved: !0 });
83675
83675
  }
83676
83676
  }
83677
- }, [r?.columnFilters]), ne(() => {
83677
+ }, [r?.columnFilters]), re(() => {
83678
83678
  n?.columnSort?.field ? (Aa(!0), n.columnSort.order === "asc" ? (je(n.columnSort.field), bt(null)) : n.columnSort.order === "desc" && (bt(n.columnSort.field), je(null))) : (je(null), bt(null));
83679
- }, [n?.columnSort?.field, n?.columnSort?.order]), ne(() => {
83679
+ }, [n?.columnSort?.field, n?.columnSort?.order]), re(() => {
83680
83680
  Uo(lS(Wc.current?.columns || [], o));
83681
- }, [o]), ne(() => {
83681
+ }, [o]), re(() => {
83682
83682
  gt?.unsaved && v3.current?.persistTableView?.(gt);
83683
- }, [gt]), ne(() => {
83683
+ }, [gt]), re(() => {
83684
83684
  ua(E3.current());
83685
- }, [ca.length]), ne(() => {
83685
+ }, [ca.length]), re(() => {
83686
83686
  ir(Ge || null), Ge?.columns && Uo(lS(Ge?.columns || [], y3.current)), Ge?.filters && Ge.filters.length > 0 && !Vc.current ? (requestAnimationFrame(() => {
83687
83687
  Vl.current?.onFilter?.(Ge.filters);
83688
83688
  }), Vc.current = !0) : Ge?.filters && Vc.current && JSON.stringify(Ge.filters) !== JSON.stringify(Vl.current?.columnFilters) && Vl.current?.onFilter?.(Ge.filters);
83689
- }, [Ge]), ne(() => {
83689
+ }, [Ge]), re(() => {
83690
83690
  if (ql.current) {
83691
83691
  const de = new ResizeObserver((be) => Bl(be[0].contentRect.width));
83692
83692
  return de.observe(ql.current), () => de.disconnect();
83693
83693
  }
83694
- }, []), ne(() => {
83694
+ }, []), re(() => {
83695
83695
  if (!qo.current) return;
83696
83696
  const de = new ResizeObserver((be) => {
83697
83697
  const { width: Ve, height: rt } = be[0].contentRect;
@@ -83841,7 +83841,7 @@ const uS = (t) => {
83841
83841
  e?.allowAStarSearch,
83842
83842
  l
83843
83843
  ]);
83844
- return ne(() => {
83844
+ return re(() => {
83845
83845
  Ze && Ze(Gc);
83846
83846
  }, [Gc, Ze]), /* @__PURE__ */ T(
83847
83847
  ai.Provider,
@@ -83964,8 +83964,8 @@ const uS = (t) => {
83964
83964
  ]
83965
83965
  }
83966
83966
  ),
83967
- /* @__PURE__ */ A(ae, { size: "small", variant: "semibold", appearance: "title", children: (re ?? u.length).toLocaleString() }),
83968
- /* @__PURE__ */ A(ae, { size: "small", variant: "regular", appearance: "subtitle", children: "total records" })
83967
+ /* @__PURE__ */ A(oe, { size: "small", variant: "semibold", appearance: "title", children: (ne ?? u.length).toLocaleString() }),
83968
+ /* @__PURE__ */ A(oe, { size: "small", variant: "regular", appearance: "subtitle", children: "total records" })
83969
83969
  ] }) : i?.preContent ? /* @__PURE__ */ A("div", { className: "flex justify-start items-center min-w-0 shrink-0", children: i.preContent }) : null
83970
83970
  ] }),
83971
83971
  /* @__PURE__ */ T(
@@ -83983,48 +83983,42 @@ const uS = (t) => {
83983
83983
  }
83984
83984
  ) : null,
83985
83985
  i?.showDivider ? /* @__PURE__ */ A("div", { className: "border-b pb-2 w-full dark:bg-black-800" }) : null,
83986
- Ct || la ? /* @__PURE__ */ T("div", { className: "flex justify-between items-center pb-4 dark:bg-black-800", children: [
83987
- /* @__PURE__ */ T("div", { className: "flex gap-2 items-center", children: [
83988
- la && ft?.renderSortItem ? ft.renderSortItem({ sort: n?.columnSort, onRemoveSort: jc, onSort: n?.onSort, tableHeaders: Ft, data: u }) : null,
83989
- Ct && la && n?.columnSort?.field !== "" ? /* @__PURE__ */ A("div", { className: "h-8 w-[1px] flex-shrink-0 bg-neutral-200" }) : null,
83990
- Ct ? /* @__PURE__ */ T("div", { className: "flex gap-2 items-center", children: [
83991
- (kr || r?.onResetFilter) && ft?.renderActiveFilters && ft.renderActiveFilters({
83992
- filters: r?.columnFilters,
83993
- onRemoveFilter: r?.onRemoveFilter,
83994
- onClearFilter: r?.onClearFilter,
83995
- onResetFilter: r?.onResetFilter,
83996
- onFilter: r?.onFilter,
83997
- tableHeaders: Ft,
83998
- columnFilters: r?.columnFilters,
83999
- modelName: s,
84000
- enableMasterDataEnumSuggestions: l,
84001
- noSpacing: !0,
84002
- notionStyle: r?.notionStyle,
84003
- context: r?.context,
84004
- data: u
84005
- }),
84006
- ft?.renderFilterButtons && ft.renderFilterButtons({
84007
- onClearFilter: r?.onClearFilter,
84008
- onClose: gC,
84009
- modelName: s,
84010
- enableMasterDataEnumSuggestions: l,
84011
- defaultFilterColumn: Hl,
84012
- resetDefaultFilterColumn: () => Fo(null),
84013
- column: Pi,
84014
- onFilter: r?.onFilter,
84015
- tableHeaders: Ft,
84016
- columnFilters: r?.columnFilters,
84017
- data: u,
84018
- notionStyle: r?.notionStyle,
84019
- context: r?.context
84020
- })
84021
- ] }) : null
84022
- ] }),
84023
- r?.columnFilters?.length > 0 && (re || 0) > 0 ? /* @__PURE__ */ T(ae, { size: "small", variant: "medium", appearance: "subtitle", children: [
84024
- re,
84025
- " Results"
83986
+ Ct || la ? /* @__PURE__ */ A("div", { className: "flex justify-between items-center pb-4 dark:bg-black-800", children: /* @__PURE__ */ T("div", { className: "flex gap-2 items-center", children: [
83987
+ la && ft?.renderSortItem ? ft.renderSortItem({ sort: n?.columnSort, onRemoveSort: jc, onSort: n?.onSort, tableHeaders: Ft, data: u }) : null,
83988
+ Ct && la && n?.columnSort?.field !== "" ? /* @__PURE__ */ A("div", { className: "h-8 w-[1px] flex-shrink-0 bg-neutral-200" }) : null,
83989
+ Ct ? /* @__PURE__ */ T("div", { className: "flex gap-2 items-center", children: [
83990
+ (kr || r?.onResetFilter) && ft?.renderActiveFilters && ft.renderActiveFilters({
83991
+ filters: r?.columnFilters,
83992
+ onRemoveFilter: r?.onRemoveFilter,
83993
+ onClearFilter: r?.onClearFilter,
83994
+ onResetFilter: r?.onResetFilter,
83995
+ onFilter: r?.onFilter,
83996
+ tableHeaders: Ft,
83997
+ columnFilters: r?.columnFilters,
83998
+ modelName: s,
83999
+ enableMasterDataEnumSuggestions: l,
84000
+ noSpacing: !0,
84001
+ notionStyle: r?.notionStyle,
84002
+ context: r?.context,
84003
+ data: u
84004
+ }),
84005
+ ft?.renderFilterButtons && ft.renderFilterButtons({
84006
+ onClearFilter: r?.onClearFilter,
84007
+ onClose: gC,
84008
+ modelName: s,
84009
+ enableMasterDataEnumSuggestions: l,
84010
+ defaultFilterColumn: Hl,
84011
+ resetDefaultFilterColumn: () => Fo(null),
84012
+ column: Pi,
84013
+ onFilter: r?.onFilter,
84014
+ tableHeaders: Ft,
84015
+ columnFilters: r?.columnFilters,
84016
+ data: u,
84017
+ notionStyle: r?.notionStyle,
84018
+ context: r?.context
84019
+ })
84026
84020
  ] }) : null
84027
- ] }) : null,
84021
+ ] }) }) : null,
84028
84022
  G && Object.keys(G).length ? /* @__PURE__ */ A(Wb, { ...G }) : null,
84029
84023
  !d && J ? /* @__PURE__ */ T("div", { className: "flex items-center gap-1.5 mb-2", children: [
84030
84024
  /* @__PURE__ */ T(
@@ -84049,8 +84043,8 @@ const uS = (t) => {
84049
84043
  ]
84050
84044
  }
84051
84045
  ),
84052
- /* @__PURE__ */ A(ae, { size: "small", variant: "semibold", appearance: "title", children: (re ?? u.length).toLocaleString() }),
84053
- /* @__PURE__ */ A(ae, { size: "small", variant: "regular", appearance: "subtitle", children: "total records" })
84046
+ /* @__PURE__ */ A(oe, { size: "small", variant: "semibold", appearance: "title", children: (ne ?? u.length).toLocaleString() }),
84047
+ /* @__PURE__ */ A(oe, { size: "small", variant: "regular", appearance: "subtitle", children: "total records" })
84054
84048
  ] }) : !d && i?.preContent ? /* @__PURE__ */ A("div", { className: "flex items-center mb-2", children: i.preContent }) : null,
84055
84049
  /* @__PURE__ */ A(
84056
84050
  "div",
@@ -84477,7 +84471,7 @@ export {
84477
84471
  Oi as Toggle,
84478
84472
  Re as Tooltip,
84479
84473
  pce as TutorialsSkeleton,
84480
- ae as Typography,
84474
+ oe as Typography,
84481
84475
  ed as UNIVERSAL_DATETIME_FORMAT,
84482
84476
  kR as UNIVERSAL_DATE_FORMAT,
84483
84477
  Yue as UnsavedChangesModal,