unifyedx-storybook-new 0.2.45 → 0.2.47

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.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as e, Fragment as te } from "react/jsx-runtime";
2
- import re, { useState as j, useMemo as me, useId as Xe, Fragment as H, useEffect as Z, useCallback as ae, useRef as ge } from "react";
3
- import { a as Q, U as dt, X as ye, P as c, L as ja, C as fe, b as Ke, D as mt, f as zt, d as Yt, F as Va, e as _a, h as Ua, T as Qe, u as Ga, I as Wt, i as Jt, j as qa, k as Ya, l as Wa, m as Xt, S as vt, n as Qt, M as Ja, o as Xa, p as Nt, q as Qa, A as Ha, E as Ht, r as Za, s as Ka, t as er, v as tr, w as Zt, x as ar, y as Kt, z as ea, B as rr, G as nr, H as sr, J as He, K as ut, N as ht, O as lr, Q as ir, R as ta, V as or, W as wt, Y as cr, Z as dr, _ as Me, $ as mr, a0 as ur, a1 as hr, a2 as pr, a3 as gr, a4 as br, a5 as St, a6 as fr, a7 as yr, a8 as xr, a9 as vr, aa as Nr, ab as wr, ac as kr, ad as Cr, ae as zr, af as Ae, ag as aa, ah as Sr, ai as Dr, aj as $r, ak as Tr, al as Ar, am as ra, an as Fr, ao as Er, ap as na, aq as Rr, ar as pt, as as sa, at as Or } from "./vendor-DoYRzmYd.js";
4
- import { Popover as Ir, PopoverButton as Pr, PopoverPanel as Mr, Transition as ue, Dialog as be, TransitionChild as Ne, DialogPanel as Fe, DialogTitle as et, TabGroup as Lr, TabList as Br, Tab as se, TabPanels as jr, RadioGroup as _e, Listbox as K, ListboxButton as Vr, ListboxOptions as _r, ListboxOption as Ur, SwitchGroup as Gr, Switch as lt, Menu as qr, MenuButton as Yr, Portal as Wr, MenuItems as Jr, MenuItem as Xr, DialogBackdrop as Qr } from "@headlessui/react";
2
+ import ae, { useState as j, useMemo as ie, useId as Xe, Fragment as H, useEffect as Z, useCallback as se, useRef as ge } from "react";
3
+ import { a as Q, U as dt, X as ye, P as c, L as ja, C as fe, b as Ke, D as mt, f as zt, d as Yt, F as Va, e as _a, h as Ua, T as Qe, u as Ga, I as Wt, i as Jt, j as qa, k as Ya, l as Wa, m as Xt, S as vt, n as Qt, M as Ja, o as Xa, p as Nt, q as Qa, A as Ha, E as Ht, r as Za, s as Ka, t as er, v as tr, w as Zt, x as ar, y as Kt, z as ea, B as rr, G as nr, H as sr, J as He, K as ut, N as ht, O as lr, Q as ir, R as ta, V as or, W as wt, Y as cr, Z as dr, _ as Le, $ as mr, a0 as ur, a1 as hr, a2 as pr, a3 as gr, a4 as br, a5 as St, a6 as fr, a7 as yr, a8 as xr, a9 as vr, aa as Nr, ab as wr, ac as kr, ad as Cr, ae as zr, af as Ae, ag as aa, ah as Sr, ai as Dr, aj as $r, ak as Tr, al as Ar, am as ra, an as Fr, ao as Er, ap as na, aq as Rr, ar as pt, as as sa, at as Or } from "./vendor-DoYRzmYd.js";
4
+ import { Popover as Ir, PopoverButton as Pr, PopoverPanel as Lr, Transition as ue, Dialog as be, TransitionChild as Ne, DialogPanel as Fe, DialogTitle as et, TabGroup as Mr, TabList as Br, Tab as ne, TabPanels as jr, RadioGroup as _e, Listbox as K, ListboxButton as Vr, ListboxOptions as _r, ListboxOption as Ur, SwitchGroup as Gr, Switch as lt, Menu as qr, MenuButton as Yr, Portal as Wr, MenuItems as Jr, MenuItem as Xr, DialogBackdrop as Qr } from "@headlessui/react";
5
5
  import { motion as le, AnimatePresence as ke } from "framer-motion";
6
6
  import { d as Hr } from "./vendor-lodash-DUMS_goM.js";
7
7
  import { useFloating as la, offset as ia, flip as oa, shift as ca, autoUpdate as da, useClick as Zr, useDismiss as Kr, useInteractions as en, FloatingPortal as tn } from "@floating-ui/react";
@@ -29,7 +29,7 @@ const vn = (t) => {
29
29
  className: m,
30
30
  ...o
31
31
  }) => {
32
- const [u, g] = j(!1), f = me(() => Nn(a), []), y = t && !u, r = !y && a, x = !y && !a, d = Q(
32
+ const [u, g] = j(!1), f = ie(() => Nn(a), []), y = t && !u, r = !y && a, x = !y && !a, d = Q(
33
33
  "avatar-container",
34
34
  `avatar--size-${s}`,
35
35
  m
@@ -51,7 +51,7 @@ const vn = (t) => {
51
51
  x && /* @__PURE__ */ e("span", { className: "avatar-icon", children: /* @__PURE__ */ e(dt, {}) })
52
52
  ] });
53
53
  }, kn = ({ children: t, max: a = 4, truncatedMessage: s = "Members", ...i }) => {
54
- const l = re.Children.toArray(t), m = l.slice(0, a), o = l.length - a;
54
+ const l = ae.Children.toArray(t), m = l.slice(0, a), o = l.length - a;
55
55
  return /* @__PURE__ */ n("div", { className: "avatar-group-container", ...i, children: [
56
56
  m,
57
57
  o > 0 && /* @__PURE__ */ n("div", { className: "avatar-container avatar--size-medium avatar-excess", children: [
@@ -248,7 +248,7 @@ const zn = {
248
248
  ] }),
249
249
  s && /* @__PURE__ */ e("p", { className: "checkbox-error-message", children: s })
250
250
  ] });
251
- }, $n = ({ children: t }) => /* @__PURE__ */ e(Ir, { className: "popover-container", children: t }), Tn = ({ children: t }) => /* @__PURE__ */ e(Pr, { as: "div", children: t }), An = ({ children: t, className: a }) => /* @__PURE__ */ e(Mr, { className: `popover-panel ${a || ""}`, children: t }), ma = mt, ua = ({
251
+ }, $n = ({ children: t }) => /* @__PURE__ */ e(Ir, { className: "popover-container", children: t }), Tn = ({ children: t }) => /* @__PURE__ */ e(Pr, { as: "div", children: t }), An = ({ children: t, className: a }) => /* @__PURE__ */ e(Lr, { className: `popover-panel ${a || ""}`, children: t }), ma = mt, ua = ({
252
252
  value: t,
253
253
  onChange: a,
254
254
  onClear: s,
@@ -551,7 +551,7 @@ const zn = {
551
551
  ROLE: "Role"
552
552
  }, Ye = (t) => `https://ui-avatars.com/api/?rounded=true&background=random&name=${encodeURIComponent(
553
553
  t
554
- )}`, de = {
554
+ )}`, me = {
555
555
  DRIVE: "drive",
556
556
  INTEREST: "interest",
557
557
  ARTICLE: "article"
@@ -777,7 +777,7 @@ const zn = {
777
777
  ]
778
778
  }
779
779
  ) });
780
- }, Le = (t) => {
780
+ }, Me = (t) => {
781
781
  const a = new Date(t);
782
782
  return a.setHours(0, 0, 0, 0), a;
783
783
  }, Be = (t) => {
@@ -788,10 +788,10 @@ const zn = {
788
788
  return s.setDate(s.getDate() + a), s;
789
789
  }, ft = (t) => {
790
790
  const a = new Date(t), s = a.getDay(), i = a.getDate() - s;
791
- return Le(new Date(a.setDate(i)));
791
+ return Me(new Date(a.setDate(i)));
792
792
  }, On = (t) => Be(bt(ft(t), 6)), Ft = (t) => {
793
793
  const a = new Date(t);
794
- return Le(new Date(a.getFullYear(), a.getMonth(), 1));
794
+ return Me(new Date(a.getFullYear(), a.getMonth(), 1));
795
795
  }, Et = (t) => {
796
796
  const a = new Date(t);
797
797
  return Be(new Date(a.getFullYear(), a.getMonth() + 1, 0));
@@ -801,12 +801,12 @@ const zn = {
801
801
  case "anytime":
802
802
  return [null, null];
803
803
  case "today":
804
- return [Le(a), Be(a)];
804
+ return [Me(a), Be(a)];
805
805
  case "this_week":
806
806
  return [ft(a), On(a)];
807
807
  case "last_week": {
808
808
  const s = bt(ft(a), -7);
809
- return [Le(s), Be(bt(s, 6))];
809
+ return [Me(s), Be(bt(s, 6))];
810
810
  }
811
811
  case "this_month":
812
812
  return [Ft(a), Et(a)];
@@ -855,7 +855,7 @@ const zn = {
855
855
  }), a();
856
856
  },
857
857
  enableReinitialize: !0
858
- }), R = me(() => l.reduce((C, h) => {
858
+ }), R = ie(() => l.reduce((C, h) => {
859
859
  const v = h.key, $ = T.values[v];
860
860
  let B = !1;
861
861
  if ($)
@@ -869,7 +869,7 @@ const zn = {
869
869
  break;
870
870
  }
871
871
  return C[v] = B, C;
872
- }, {}), [l, T.values]), O = Object.values(R).filter(Boolean).length, P = me(() => l.some((C) => {
872
+ }, {}), [l, T.values]), O = Object.values(R).filter(Boolean).length, L = ie(() => l.some((C) => {
873
873
  if (C.type !== "date") return !1;
874
874
  const h = T.values?.[C.key]?.values;
875
875
  if (!Array.isArray(h) || h.length < 2) return !1;
@@ -1040,7 +1040,7 @@ const zn = {
1040
1040
  }, k = {
1041
1041
  startDate: A instanceof Date ? A.toISOString().slice(0, 10) : null,
1042
1042
  endDate: A instanceof Date ? A.toISOString().slice(0, 10) : null
1043
- }, L = [
1043
+ }, M = [
1044
1044
  { key: "anytime", label: "Anytime" },
1045
1045
  { key: "today", label: "Today" },
1046
1046
  { key: "this_week", label: "This Week" },
@@ -1048,7 +1048,7 @@ const zn = {
1048
1048
  { key: "this_month", label: "This Month" },
1049
1049
  { key: "last_month", label: "Last Month" },
1050
1050
  { key: "custom", label: "Custom" }
1051
- ], M = (F) => {
1051
+ ], P = (F) => {
1052
1052
  if (F === "anytime") {
1053
1053
  T.setFieldValue(`${C}.values`, []), T.setFieldValue(`${C}.range`, "anytime");
1054
1054
  return;
@@ -1087,7 +1087,7 @@ const zn = {
1087
1087
  }
1088
1088
  )
1089
1089
  ] }),
1090
- /* @__PURE__ */ e("div", { className: "pb-0", children: /* @__PURE__ */ e("div", { className: "space-y-3", children: L.map((F) => {
1090
+ /* @__PURE__ */ e("div", { className: "pb-0", children: /* @__PURE__ */ e("div", { className: "space-y-3", children: M.map((F) => {
1091
1091
  const q = v.range === F.key || F.key === "anytime" && (!Array.isArray(v.values) || v.values.length === 0);
1092
1092
  return /* @__PURE__ */ n(
1093
1093
  "label",
@@ -1100,7 +1100,7 @@ const zn = {
1100
1100
  type: "radio",
1101
1101
  name: `preset-${C}`,
1102
1102
  checked: q,
1103
- onChange: () => M(F.key),
1103
+ onChange: () => P(F.key),
1104
1104
  className: "h-4 w-4"
1105
1105
  }
1106
1106
  ),
@@ -1122,7 +1122,7 @@ const zn = {
1122
1122
  useRange: !1,
1123
1123
  value: I,
1124
1124
  onChange: (F) => {
1125
- const q = F?.startDate ? Le(new Date(F.startDate)) : null, X = z[1] || null;
1125
+ const q = F?.startDate ? Me(new Date(F.startDate)) : null, X = z[1] || null;
1126
1126
  q && (T.setFieldValue(`${C}.values`, [q, X]), T.setFieldValue(`${C}.range`, "custom"));
1127
1127
  },
1128
1128
  inputClassName: "w-full rounded-xl border border-[#767676] px-4 py-2 text-sm font-normal text-[#101112] focus:border-violet-500 focus:outline-none focus:ring-1 focus:ring-violet-500",
@@ -1206,7 +1206,7 @@ const zn = {
1206
1206
  ] }),
1207
1207
  /* @__PURE__ */ n("form", { onSubmit: T.handleSubmit, className: "filter-form", children: [
1208
1208
  /* @__PURE__ */ e("div", { className: "filter-content-wrapper", children: /* @__PURE__ */ n(
1209
- Lr,
1209
+ Mr,
1210
1210
  {
1211
1211
  vertical: !0,
1212
1212
  onChange: U,
@@ -1215,7 +1215,7 @@ const zn = {
1215
1215
  flexGrow: 1
1216
1216
  },
1217
1217
  children: [
1218
- /* @__PURE__ */ e(Br, { className: "filter-tabs-list", children: l.map((C) => /* @__PURE__ */ n(se, { className: "filter-tab-item", children: [
1218
+ /* @__PURE__ */ e(Br, { className: "filter-tabs-list", children: l.map((C) => /* @__PURE__ */ n(ne, { className: "filter-tab-item", children: [
1219
1219
  /* @__PURE__ */ e("div", { className: "filter-selection-horizontal-indicator" }),
1220
1220
  /* @__PURE__ */ n("div", { className: "filter-lbl-indicator-wrapper", children: [
1221
1221
  C.label,
@@ -1229,7 +1229,7 @@ const zn = {
1229
1229
  ] })
1230
1230
  ] }, C.key)) }),
1231
1231
  /* @__PURE__ */ e(jr, { className: "filter-tabs-panels", children: l.map((C) => /* @__PURE__ */ e(
1232
- se.Panel,
1232
+ ne.Panel,
1233
1233
  {
1234
1234
  className: "filter-tab-panel",
1235
1235
  children: /* @__PURE__ */ e(
@@ -1263,7 +1263,7 @@ const zn = {
1263
1263
  "button",
1264
1264
  {
1265
1265
  type: "submit",
1266
- disabled: !T.dirty || P,
1266
+ disabled: !T.dirty || L,
1267
1267
  className: "filter-button apply",
1268
1268
  children: [
1269
1269
  "Apply Filters",
@@ -1560,7 +1560,7 @@ const zn = {
1560
1560
  Z(() => {
1561
1561
  g(t);
1562
1562
  }, [t]);
1563
- const f = ae(
1563
+ const f = se(
1564
1564
  Hr((r) => {
1565
1565
  a?.(r);
1566
1566
  }, s),
@@ -1679,7 +1679,7 @@ const zn = {
1679
1679
  ] }),
1680
1680
  o && /* @__PURE__ */ e("p", { className: "select-error-message", children: o })
1681
1681
  ] }) });
1682
- }, Mn = () => {
1682
+ }, Ln = () => {
1683
1683
  const [t, a] = j(window.location.pathname);
1684
1684
  return Z(() => {
1685
1685
  const s = () => {
@@ -1695,7 +1695,7 @@ const zn = {
1695
1695
  return s;
1696
1696
  return null;
1697
1697
  }, pa = ({ item: t, isCollapsed: a, level: s = 0 }) => {
1698
- const { pathname: i } = Mn(), l = t.href || t.url || t.path, [m, o] = j(!1), u = t.icon;
1698
+ const { pathname: i } = Ln(), l = t.href || t.url || t.path, [m, o] = j(!1), u = t.icon;
1699
1699
  Z(() => {
1700
1700
  xt([t], i) && o(!0);
1701
1701
  }, [t, i]);
@@ -1939,7 +1939,7 @@ const zn = {
1939
1939
  t && i === "right" && /* @__PURE__ */ e(lt.Label, { className: "switch-label", passive: !0, children: t })
1940
1940
  ] }),
1941
1941
  l && /* @__PURE__ */ e("p", { className: "switch-error-message", children: l })
1942
- ] }), Ml = ({
1942
+ ] }), Ll = ({
1943
1943
  children: t,
1944
1944
  content: a,
1945
1945
  variant: s = "dark",
@@ -1952,9 +1952,9 @@ const zn = {
1952
1952
  // For external styling of the tooltip itself
1953
1953
  ...o
1954
1954
  }) => {
1955
- const u = re.useId();
1955
+ const u = ae.useId();
1956
1956
  return /* @__PURE__ */ n(te, { children: [
1957
- re.cloneElement(t, { "data-tooltip-id": u }),
1957
+ ae.cloneElement(t, { "data-tooltip-id": u }),
1958
1958
  /* @__PURE__ */ e(
1959
1959
  Qa,
1960
1960
  {
@@ -1967,7 +1967,7 @@ const zn = {
1967
1967
  }
1968
1968
  )
1969
1969
  ] });
1970
- }, Ln = {
1970
+ }, Mn = {
1971
1971
  enter: (t) => ({
1972
1972
  x: t > 0 ? "100%" : "-100%",
1973
1973
  opacity: 0
@@ -1980,7 +1980,7 @@ const zn = {
1980
1980
  x: t < 0 ? "100%" : "-100%",
1981
1981
  opacity: 0
1982
1982
  })
1983
- }, Ll = ({
1983
+ }, Ml = ({
1984
1984
  isOpen: t,
1985
1985
  onClose: a,
1986
1986
  steps: s = {},
@@ -2068,7 +2068,7 @@ const zn = {
2068
2068
  le.div,
2069
2069
  {
2070
2070
  custom: l,
2071
- variants: Ln,
2071
+ variants: Mn,
2072
2072
  initial: "enter",
2073
2073
  animate: "center",
2074
2074
  exit: "exit",
@@ -2636,7 +2636,7 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2636
2636
  { id: 1, name: $e.USER, icon: tr, code: "users" },
2637
2637
  { id: 2, name: $e.GROUP, icon: Zt, code: "groups" },
2638
2638
  { id: 3, name: $e.ROLE, icon: ar, code: "roles" }
2639
- ], Mt = [
2639
+ ], Lt = [
2640
2640
  { id: 1, name: $t.View, icon: Kt },
2641
2641
  { id: 2, name: $t.Manage, icon: ea }
2642
2642
  ], ts = Ka().shape({
@@ -2652,7 +2652,7 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2652
2652
  },
2653
2653
  isChanged: u = !1
2654
2654
  }) => {
2655
- const [g, f] = j(Pt[0]), [y, r] = j(""), x = Ct(y, 400), [d, p] = j([]), [S, T] = j(/* @__PURE__ */ new Set()), [R, O] = j(!1), [P, _] = j(Mt[0]), {
2655
+ const [g, f] = j(Pt[0]), [y, r] = j(""), x = Ct(y, 400), [d, p] = j([]), [S, T] = j(/* @__PURE__ */ new Set()), [R, O] = j(!1), [L, _] = j(Lt[0]), {
2656
2656
  control: U,
2657
2657
  handleSubmit: Y,
2658
2658
  watch: G,
@@ -2670,52 +2670,52 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2670
2670
  }).catch((k) => console.error("Search failed:", k)).finally(() => O(!1))) : (p([]), T(/* @__PURE__ */ new Set()));
2671
2671
  }, [x, g]);
2672
2672
  const b = (k) => {
2673
- T((L) => {
2674
- const M = new Set(L);
2675
- return M.has(k) ? M.delete(k) : M.add(k), M;
2673
+ T((M) => {
2674
+ const P = new Set(M);
2675
+ return P.has(k) ? P.delete(k) : P.add(k), P;
2676
2676
  });
2677
2677
  }, w = () => {
2678
2678
  d.filter((k) => S.has(k.id)).forEach((k) => {
2679
- v.find((L) => L.id === k.id) || $({ ...k, permission: P.name });
2679
+ v.find((M) => M.id === k.id) || $({ ...k, permission: L.name });
2680
2680
  }), T(/* @__PURE__ */ new Set()), r("");
2681
2681
  }, D = (k) => {
2682
2682
  _(k), v.forEach(
2683
- (L, M) => E(M, { ...v[M], permission: k.name })
2683
+ (M, P) => E(P, { ...v[P], permission: k.name })
2684
2684
  );
2685
2685
  }, N = async (k) => {
2686
2686
  try {
2687
- if (l === de.DRIVE) {
2688
- const L = k.pendingInvites.map((F) => ({
2687
+ if (l === me.DRIVE) {
2688
+ const M = k.pendingInvites.map((F) => ({
2689
2689
  id: F.id,
2690
2690
  permission: F.permission,
2691
2691
  type: F.type.toLowerCase()
2692
2692
  }));
2693
2693
  o({
2694
2694
  entity: t,
2695
- userGroupRolesObj: L,
2695
+ userGroupRolesObj: M,
2696
2696
  existingShares: i
2697
2697
  // Always send updated existing shares
2698
2698
  }, i);
2699
- } else if (l === de.INTEREST) {
2700
- const L = k.pendingInvites.map((M) => ({
2701
- identity: M.id,
2702
- type: M.type.toLowerCase(),
2699
+ } else if (l === me.INTEREST) {
2700
+ const M = k.pendingInvites.map((P) => ({
2701
+ identity: P.id,
2702
+ type: P.type.toLowerCase(),
2703
2703
  opt: !0,
2704
2704
  lock: !1,
2705
2705
  moderator: !1,
2706
- userName: M.name,
2706
+ userName: P.name,
2707
2707
  interestId: t?.data?.id
2708
2708
  }));
2709
- o(L, i);
2710
- } else if (l === de.ARTICLE) {
2711
- const L = k.pendingInvites.map((F) => ({
2709
+ o(M, i);
2710
+ } else if (l === me.ARTICLE) {
2711
+ const M = k.pendingInvites.map((F) => ({
2712
2712
  id: F.id,
2713
2713
  permission: F.permission,
2714
2714
  type: F.type.toLowerCase()
2715
2715
  }));
2716
2716
  o({
2717
2717
  entity: t,
2718
- userGroupRolesObj: L,
2718
+ userGroupRolesObj: M,
2719
2719
  existingShares: i
2720
2720
  }, i);
2721
2721
  } else
@@ -2723,29 +2723,29 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2723
2723
  setTimeout(() => {
2724
2724
  s();
2725
2725
  }, 1e3);
2726
- } catch (L) {
2727
- throw console.error("Failed to submit invites:", L), L;
2726
+ } catch (M) {
2727
+ throw console.error("Failed to submit invites:", M), M;
2728
2728
  }
2729
2729
  }, A = (k) => {
2730
- const L = i[g.code].find((M) => M.name === k.name && M.permission !== "remove") || z.find((M) => M.name === k.name);
2731
- return L ? `${L.permission}` : "";
2730
+ const M = i[g.code].find((P) => P.name === k.name && P.permission !== "remove") || z.find((P) => P.name === k.name);
2731
+ return M ? `${M.permission}` : "";
2732
2732
  }, I = () => {
2733
2733
  switch (l) {
2734
- case de.DRIVE:
2734
+ case me.DRIVE:
2735
2735
  return "Share with others";
2736
- case de.INTEREST:
2736
+ case me.INTEREST:
2737
2737
  return "Add Audience";
2738
- case de.ARTICLE:
2738
+ case me.ARTICLE:
2739
2739
  return "Add Users, Groups or Roles test";
2740
2740
  default:
2741
2741
  return "Add User, Groups or Roles test";
2742
2742
  }
2743
2743
  };
2744
- return me(() => (console.log("InviteFlow - isChanged:", u, "pendingInvites.length:", z.length), z.length === 0 && !u), [z.length, u]), /* @__PURE__ */ n("div", { className: "flex flex-col h-full bg-white", children: [
2744
+ return ie(() => (console.log("InviteFlow - isChanged:", u, "pendingInvites.length:", z.length), z.length === 0 && !u), [z.length, u]), /* @__PURE__ */ n("div", { className: "flex flex-col h-full bg-white", children: [
2745
2745
  /* @__PURE__ */ n("header", { className: "flex items-center justify-between p-4 border-b border-gray-300 flex-shrink-0", children: [
2746
2746
  /* @__PURE__ */ e(be.Title, { className: " text-gray-900 !mb-0 text-lg font-semibold", children: I() }),
2747
2747
  /* @__PURE__ */ n("div", { className: "flex items-center gap-4", children: [
2748
- l === de.DRIVE && /* @__PURE__ */ n("button", { className: "flex items-center gap-2 text-sm text-blue-600 hover:text-blue-800 font-semibold hover:cursor-pointer", children: [
2748
+ l === me.DRIVE && /* @__PURE__ */ n("button", { className: "flex items-center gap-2 text-sm text-blue-600 hover:text-blue-800 font-semibold hover:cursor-pointer", children: [
2749
2749
  /* @__PURE__ */ e(sr, { className: "h-5 w-5" }),
2750
2750
  " Copy Link"
2751
2751
  ] }),
@@ -2760,7 +2760,7 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2760
2760
  ] })
2761
2761
  ] }),
2762
2762
  /* @__PURE__ */ n("main", { className: "flex-grow p-4 space-y-6 overflow-y-auto", children: [
2763
- (l === de.DRIVE || m) && /* @__PURE__ */ e(
2763
+ (l === me.DRIVE || m) && /* @__PURE__ */ e(
2764
2764
  es,
2765
2765
  {
2766
2766
  users: i.users.filter((k) => k.permission !== "remove"),
@@ -2789,24 +2789,24 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2789
2789
  K.Option,
2790
2790
  {
2791
2791
  value: k,
2792
- className: ({ active: L }) => `${L ? "text-white bg-blue-600" : "text-gray-900"} hover:cursor-pointer select-none relative py-2 pl-10`,
2793
- children: ({ selected: L }) => /* @__PURE__ */ n(te, { children: [
2792
+ className: ({ active: M }) => `${M ? "text-white bg-blue-600" : "text-gray-900"} hover:cursor-pointer select-none relative py-2 pl-10`,
2793
+ children: ({ selected: M }) => /* @__PURE__ */ n(te, { children: [
2794
2794
  /* @__PURE__ */ n(
2795
2795
  "span",
2796
2796
  {
2797
- className: `${L ? "font-medium" : "font-normal"} flex items-center`,
2797
+ className: `${M ? "font-medium" : "font-normal"} flex items-center`,
2798
2798
  children: [
2799
2799
  /* @__PURE__ */ e(
2800
2800
  k.icon,
2801
2801
  {
2802
- className: `h-5 w-5 mr-2 ${L ? "text-white" : "text-gray-400"}`
2802
+ className: `h-5 w-5 mr-2 ${M ? "text-white" : "text-gray-400"}`
2803
2803
  }
2804
2804
  ),
2805
2805
  k.name
2806
2806
  ]
2807
2807
  }
2808
2808
  ),
2809
- L && /* @__PURE__ */ e("span", { className: "absolute inset-y-0 left-0 flex items-center pl-3 text-white", children: /* @__PURE__ */ e(ht, { className: "h-5 w-5" }) })
2809
+ M && /* @__PURE__ */ e("span", { className: "absolute inset-y-0 left-0 flex items-center pl-3 text-white", children: /* @__PURE__ */ e(ht, { className: "h-5 w-5" }) })
2810
2810
  ] })
2811
2811
  },
2812
2812
  k.id
@@ -2832,12 +2832,12 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2832
2832
  className: "absolute top-full mt-2 w-full col-span-3 bg-white border border-gray-300 rounded-lg shadow-lg z-10",
2833
2833
  children: R ? /* @__PURE__ */ e("div", { className: "p-4 text-center text-gray-500", children: "Loading..." }) : /* @__PURE__ */ n(te, { children: [
2834
2834
  /* @__PURE__ */ e("div", { className: "max-h-60 overflow-y-auto p-2 space-y-1", children: d.map((k) => {
2835
- const L = A(k);
2835
+ const M = A(k);
2836
2836
  return /* @__PURE__ */ n(
2837
2837
  "div",
2838
2838
  {
2839
- onClick: () => L ? null : b(k.id),
2840
- className: `flex items-center gap-3 p-2 rounded-md hover:bg-blue-50 ${L ? " hover:cursor-not-allowed" : "hover:cursor-pointer"}`,
2839
+ onClick: () => M ? null : b(k.id),
2840
+ className: `flex items-center gap-3 p-2 rounded-md hover:bg-blue-50 ${M ? " hover:cursor-not-allowed" : "hover:cursor-pointer"}`,
2841
2841
  children: [
2842
2842
  /* @__PURE__ */ e(
2843
2843
  "input",
@@ -2846,7 +2846,7 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2846
2846
  checked: S.has(k.id),
2847
2847
  readOnly: !0,
2848
2848
  className: "h-4 w-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500",
2849
- disabled: !!L
2849
+ disabled: !!M
2850
2850
  }
2851
2851
  ),
2852
2852
  /* @__PURE__ */ e(
@@ -2858,8 +2858,8 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2858
2858
  }
2859
2859
  ),
2860
2860
  /* @__PURE__ */ e("span", { className: "text-md font-medium text-gray-800 truncate", children: k.name }),
2861
- L ? /* @__PURE__ */ n(te, { children: [
2862
- /* @__PURE__ */ e("span", { className: "text-sm px-[12px] py-[2px] border border-dashed rounded-xl bg-teal-100 text-teal-700", children: L }),
2861
+ M ? /* @__PURE__ */ n(te, { children: [
2862
+ /* @__PURE__ */ e("span", { className: "text-sm px-[12px] py-[2px] border border-dashed rounded-xl bg-teal-100 text-teal-700", children: M }),
2863
2863
  /* @__PURE__ */ e("span", { className: "text-sm text-gray-400", children: "Already added" })
2864
2864
  ] }) : ""
2865
2865
  ]
@@ -2903,18 +2903,18 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2903
2903
  v.length,
2904
2904
  ")"
2905
2905
  ] }),
2906
- l === de.DRIVE && /* @__PURE__ */ e(
2906
+ l === me.DRIVE && /* @__PURE__ */ e(
2907
2907
  K,
2908
2908
  {
2909
- value: P,
2909
+ value: L,
2910
2910
  onChange: D,
2911
2911
  children: /* @__PURE__ */ n("div", { className: "relative", children: [
2912
2912
  /* @__PURE__ */ n(K.Button, { className: "relative w-full border border-gray-300 bg-white rounded-md shadow-sm pl-3 pr-10 py-2 text-left hover:cursor-pointer focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 sm:text-sm", children: [
2913
2913
  /* @__PURE__ */ n("span", { className: "flex items-center", children: [
2914
- /* @__PURE__ */ e(P.icon, { className: "h-5 w-5 text-gray-400 mr-2" }),
2914
+ /* @__PURE__ */ e(L.icon, { className: "h-5 w-5 text-gray-400 mr-2" }),
2915
2915
  /* @__PURE__ */ n("span", { className: "truncate", children: [
2916
2916
  "Can ",
2917
- P.name
2917
+ L.name
2918
2918
  ] })
2919
2919
  ] }),
2920
2920
  /* @__PURE__ */ e("span", { className: "absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none", children: /* @__PURE__ */ e(ut, { className: "h-5 w-5 text-gray-400" }) })
@@ -2926,21 +2926,21 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2926
2926
  leave: "transition ease-in duration-100",
2927
2927
  leaveFrom: "opacity-100",
2928
2928
  leaveTo: "opacity-0",
2929
- children: /* @__PURE__ */ e(K.Options, { className: "absolute z-10 mt-1 w-auto min-w-full bg-white shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm", children: Mt.map((k) => /* @__PURE__ */ e(
2929
+ children: /* @__PURE__ */ e(K.Options, { className: "absolute z-10 mt-1 w-auto min-w-full bg-white shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm", children: Lt.map((k) => /* @__PURE__ */ e(
2930
2930
  K.Option,
2931
2931
  {
2932
2932
  value: k,
2933
- className: ({ active: L }) => `${L ? "text-white bg-blue-600" : "text-gray-900"} hover:cursor-pointer select-none relative py-2 pl-10`,
2934
- children: ({ selected: L, active: M }) => /* @__PURE__ */ n(te, { children: [
2933
+ className: ({ active: M }) => `${M ? "text-white bg-blue-600" : "text-gray-900"} hover:cursor-pointer select-none relative py-2 pl-10`,
2934
+ children: ({ selected: M, active: P }) => /* @__PURE__ */ n(te, { children: [
2935
2935
  /* @__PURE__ */ n(
2936
2936
  "span",
2937
2937
  {
2938
- className: `${L ? "font-medium" : "font-normal"} flex items-center`,
2938
+ className: `${M ? "font-medium" : "font-normal"} flex items-center`,
2939
2939
  children: [
2940
2940
  /* @__PURE__ */ e(
2941
2941
  k.icon,
2942
2942
  {
2943
- className: `h-5 w-5 mr-2 ${M ? "text-white" : "text-gray-400"}`
2943
+ className: `h-5 w-5 mr-2 ${P ? "text-white" : "text-gray-400"}`
2944
2944
  }
2945
2945
  ),
2946
2946
  "Can ",
@@ -2948,7 +2948,7 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2948
2948
  ]
2949
2949
  }
2950
2950
  ),
2951
- L && /* @__PURE__ */ e("span", { className: "absolute inset-y-0 left-0 flex items-center pl-3 text-blue-600", children: /* @__PURE__ */ e(
2951
+ M && /* @__PURE__ */ e("span", { className: "absolute inset-y-0 left-0 flex items-center pl-3 text-blue-600", children: /* @__PURE__ */ e(
2952
2952
  ht,
2953
2953
  {
2954
2954
  className: "h-5 w-5",
@@ -2965,7 +2965,7 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2965
2965
  }
2966
2966
  )
2967
2967
  ] }),
2968
- /* @__PURE__ */ e("div", { className: "space-y-2", children: /* @__PURE__ */ e(ke, { children: v.map((k, L) => /* @__PURE__ */ n(
2968
+ /* @__PURE__ */ e("div", { className: "space-y-2", children: /* @__PURE__ */ e(ke, { children: v.map((k, M) => /* @__PURE__ */ n(
2969
2969
  le.div,
2970
2970
  {
2971
2971
  layout: !0,
@@ -2986,14 +2986,14 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
2986
2986
  /* @__PURE__ */ e("span", { className: "font-medium text-sm text-gray-800 truncate", children: k.name })
2987
2987
  ] }),
2988
2988
  /* @__PURE__ */ n("div", { className: "flex items-center gap-3", children: [
2989
- l === de.DRIVE && /* @__PURE__ */ n("span", { className: "text-sm text-gray-500", children: [
2989
+ l === me.DRIVE && /* @__PURE__ */ n("span", { className: "text-sm text-gray-500", children: [
2990
2990
  "can ",
2991
2991
  k.permission
2992
2992
  ] }),
2993
2993
  /* @__PURE__ */ e(
2994
2994
  "button",
2995
2995
  {
2996
- onClick: () => B(L),
2996
+ onClick: () => B(M),
2997
2997
  className: "text-gray-400 hover:text-red-500 hover:cursor-pointer",
2998
2998
  children: /* @__PURE__ */ e(He, { className: "h-5 w-5" })
2999
2999
  }
@@ -3029,7 +3029,7 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
3029
3029
  onClick: () => Y(N)(),
3030
3030
  disabled: h || z.length === 0 && !u,
3031
3031
  className: "px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md shadow-sm hover:bg-blue-700 hover:cursor-pointer focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:bg-blue-300 disabled:cursor-not-allowed",
3032
- children: h ? "Inviting..." : l === de.DRIVE ? "Send Invites" : "Add"
3032
+ children: h ? "Inviting..." : l === me.DRIVE ? "Send Invites" : "Add"
3033
3033
  }
3034
3034
  )
3035
3035
  ] })
@@ -3138,8 +3138,8 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
3138
3138
  roles: o.roles.filter(
3139
3139
  (O) => O.name.toLowerCase().includes(x.toLowerCase())
3140
3140
  )
3141
- }, p = async (O, P, _, U) => {
3142
- const Y = P.value;
3141
+ }, p = async (O, L, _, U) => {
3142
+ const Y = L.value;
3143
3143
  u((G) => ({
3144
3144
  ...G,
3145
3145
  [_]: G[_].map(
@@ -3148,9 +3148,9 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
3148
3148
  }));
3149
3149
  }, S = () => {
3150
3150
  const O = {
3151
- users: o.users.filter((P) => P.permission !== "remove"),
3152
- groups: o.groups.filter((P) => P.permission !== "remove"),
3153
- roles: o.roles.filter((P) => P.permission !== "remove")
3151
+ users: o.users.filter((L) => L.permission !== "remove"),
3152
+ groups: o.groups.filter((L) => L.permission !== "remove"),
3153
+ roles: o.roles.filter((L) => L.permission !== "remove")
3154
3154
  };
3155
3155
  a(O);
3156
3156
  }, T = ["users", "groups", "roles"], R = ["Users", "Groups", "Roles"];
@@ -3180,16 +3180,16 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
3180
3180
  )
3181
3181
  ] }),
3182
3182
  /* @__PURE__ */ n("div", { className: "flex flex-col flex-grow", children: [
3183
- /* @__PURE__ */ n(se.Group, { selectedIndex: g, onChange: f, children: [
3183
+ /* @__PURE__ */ n(ne.Group, { selectedIndex: g, onChange: f, children: [
3184
3184
  /* @__PURE__ */ n("div", { className: "p-4 bg-white border-b border-gray-300", children: [
3185
- /* @__PURE__ */ e(se.List, { className: "flex space-x-1 bg-gray-100 p-1 rounded-lg", children: R.map((O) => /* @__PURE__ */ e(
3186
- se,
3185
+ /* @__PURE__ */ e(ne.List, { className: "flex space-x-1 bg-gray-100 p-1 rounded-lg", children: R.map((O) => /* @__PURE__ */ e(
3186
+ ne,
3187
3187
  {
3188
3188
  className: ({
3189
- selected: P
3189
+ selected: L
3190
3190
  }) => `w-full py-2 text-sm font-medium leading-5 rounded-md
3191
3191
  focus:outline-none focus:ring-2 ring-offset-2 ring-offset-blue-400 ring-white ring-opacity-60
3192
- ${P ? "bg-white shadow text-blue-700" : "text-gray-600 hover:bg-white/[0.6]"}`,
3192
+ ${L ? "bg-white shadow text-blue-700" : "text-gray-600 hover:bg-white/[0.6]"}`,
3193
3193
  children: O
3194
3194
  },
3195
3195
  O
@@ -3210,11 +3210,11 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
3210
3210
  animate: { y: 0, opacity: 1 },
3211
3211
  exit: { y: -10, opacity: 0 },
3212
3212
  transition: { duration: 0.2 },
3213
- children: /* @__PURE__ */ e(se.Panels, { as: H, children: T.map((O) => /* @__PURE__ */ e(
3214
- se.Panel,
3213
+ children: /* @__PURE__ */ e(ne.Panels, { as: H, children: T.map((O) => /* @__PURE__ */ e(
3214
+ ne.Panel,
3215
3215
  {
3216
3216
  className: "space-y-3 focus:outline-none",
3217
- children: /* @__PURE__ */ e(ke, { children: d[O].length > 0 ? d[O].map((P) => /* @__PURE__ */ n(
3217
+ children: /* @__PURE__ */ e(ke, { children: d[O].length > 0 ? d[O].map((L) => /* @__PURE__ */ n(
3218
3218
  le.div,
3219
3219
  {
3220
3220
  layout: !0,
@@ -3231,20 +3231,20 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
3231
3231
  /* @__PURE__ */ e(
3232
3232
  "img",
3233
3233
  {
3234
- src: P.avatarUrl || `https://avatar.vercel.sh/${P.name}.svg?text=${P.name.charAt(0)}`,
3235
- alt: P.name,
3234
+ src: L.avatarUrl || `https://avatar.vercel.sh/${L.name}.svg?text=${L.name.charAt(0)}`,
3235
+ alt: L.name,
3236
3236
  className: "w-10 h-10 rounded-full flex-shrink-0"
3237
3237
  }
3238
3238
  ),
3239
3239
  /* @__PURE__ */ n("div", { className: "overflow-hidden", children: [
3240
- /* @__PURE__ */ e("p", { className: "font-medium text-gray-900 truncate", children: P.name }),
3240
+ /* @__PURE__ */ e("p", { className: "font-medium text-gray-900 truncate", children: L.name }),
3241
3241
  O !== "users" && /* @__PURE__ */ e(
3242
3242
  "button",
3243
3243
  {
3244
3244
  onClick: () => i({
3245
- id: P.id,
3245
+ id: L.id,
3246
3246
  type: O,
3247
- name: P.name
3247
+ name: L.name
3248
3248
  }),
3249
3249
  className: "text-sm text-blue-600 hover:underline hover:cursor-pointer",
3250
3250
  children: "View Members"
@@ -3255,10 +3255,10 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
3255
3255
  /* @__PURE__ */ e(
3256
3256
  rs,
3257
3257
  {
3258
- item: P,
3258
+ item: L,
3259
3259
  allowedPermissions: m,
3260
3260
  onPermissionChange: (_) => p(
3261
- P,
3261
+ L,
3262
3262
  _,
3263
3263
  O
3264
3264
  )
@@ -3266,7 +3266,7 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
3266
3266
  )
3267
3267
  ]
3268
3268
  },
3269
- P.id
3269
+ L.id
3270
3270
  )) : (
3271
3271
  // Empty state is unchanged
3272
3272
  /* @__PURE__ */ n(
@@ -3439,7 +3439,7 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
3439
3439
  allowedPermissions: u = [],
3440
3440
  ...g
3441
3441
  }) => {
3442
- const [f, y] = j(pe.INVITE), [r, x] = j(t), [d, p] = j(null), [S, T] = j(!1), [R, O] = j([]), [P, _] = j(pe.MANAGE), U = () => {
3442
+ const [f, y] = j(pe.INVITE), [r, x] = j(t), [d, p] = j(null), [S, T] = j(!1), [R, O] = j([]), [L, _] = j(pe.MANAGE), U = () => {
3443
3443
  y(pe.INVITE), p(null), m();
3444
3444
  }, Y = () => {
3445
3445
  y(pe.MANAGE);
@@ -3458,7 +3458,7 @@ const Ee = Qn(), je = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Hn =
3458
3458
  const $ = it.mapValues(t, (z) => z.map((b) => ({ id: b.id, permission: b.permission })).sort((b, w) => b.id - w.id)), B = it.mapValues(v, (z) => z.map((b) => ({ id: b.id, permission: b.permission })).sort((b, w) => b.id - w.id));
3459
3459
  console.log("Existing data:", $), console.log("Changed data:", B);
3460
3460
  const E = !it.isEqual($, B);
3461
- console.log("hasPermissionChanged:", E), T(E), y(f === pe.MEMBERS ? P : pe.INVITE);
3461
+ console.log("hasPermissionChanged:", E), T(E), y(f === pe.MEMBERS ? L : pe.INVITE);
3462
3462
  };
3463
3463
  return /* @__PURE__ */ e(ue, { appear: !0, show: a, as: H, children: /* @__PURE__ */ n(be, { as: "div", className: "relative z-50", onClose: U, children: [
3464
3464
  /* @__PURE__ */ e("div", { className: "filter-modal-overlay", "aria-hidden": "true" }),
@@ -3568,17 +3568,17 @@ function at({
3568
3568
  getOptionId: d = (S) => String(S.id),
3569
3569
  getOptionLabel: p = (S) => S.name
3570
3570
  }) {
3571
- const S = Xe(), T = Xe(), [R, O] = j(""), P = ge(""), _ = me(() => {
3571
+ const S = Xe(), T = Xe(), [R, O] = j(""), L = ge(""), _ = ie(() => {
3572
3572
  const v = /* @__PURE__ */ new Map();
3573
3573
  for (const $ of a) v.set(d($), $);
3574
3574
  return v;
3575
- }, [a, d]), U = me(() => Array.isArray(s) ? s.map((v) => v && typeof v == "object" ? _.get(d(v)) || null : _.get(String(v))).filter(Boolean) : [], [s, _, d]), Y = me(() => {
3575
+ }, [a, d]), U = ie(() => Array.isArray(s) ? s.map((v) => v && typeof v == "object" ? _.get(d(v)) || null : _.get(String(v))).filter(Boolean) : [], [s, _, d]), Y = ie(() => {
3576
3576
  if (!R) return a;
3577
3577
  const v = R.toLowerCase();
3578
3578
  return a.filter(($) => p($).toLowerCase().includes(v));
3579
3579
  }, [a, R, p]);
3580
3580
  Z(() => {
3581
- f === "server" && R.length >= x && R !== P.current && (P.current = R, y && y(R));
3581
+ f === "server" && R.length >= x && R !== L.current && (L.current = R, y && y(R));
3582
3582
  }, [R, f, x, y]);
3583
3583
  const G = f === "client" ? Y : a, C = () => {
3584
3584
  if (!U.length)
@@ -3846,10 +3846,10 @@ function cs({
3846
3846
  dropId: y,
3847
3847
  indent: r = 24
3848
3848
  }) {
3849
- const { setNodeRef: x, isOver: d } = cr({ id: y }), { attributes: p, listeners: S, setNodeRef: T, transform: R, isDragging: O } = dr({ id: f }), P = R ? { transform: `translate3d(${Math.round(R.x)}px, ${Math.round(R.y)}px, 0)` } : void 0, [_, U] = j(!1), [Y, G] = j(t.name), C = () => {
3849
+ const { setNodeRef: x, isOver: d } = cr({ id: y }), { attributes: p, listeners: S, setNodeRef: T, transform: R, isDragging: O } = dr({ id: f }), L = R ? { transform: `translate3d(${Math.round(R.x)}px, ${Math.round(R.y)}px, 0)` } : void 0, [_, U] = j(!1), [Y, G] = j(t.name), C = () => {
3850
3850
  const v = Y.trim();
3851
3851
  U(!1), v && v !== t.name ? o?.(t, v) : G(t.name);
3852
- }, h = me(() => /* @__PURE__ */ e(
3852
+ }, h = ie(() => /* @__PURE__ */ e(
3853
3853
  _n,
3854
3854
  {
3855
3855
  options: [
@@ -3867,13 +3867,13 @@ function cs({
3867
3867
  {
3868
3868
  ref: x,
3869
3869
  className: `tv-row ${d ? "tv-drop-over" : ""} ${O ? "dragging" : ""}`,
3870
- style: { ...P, paddingLeft: 8 + a * r },
3870
+ style: { ...L, paddingLeft: 8 + a * r },
3871
3871
  onClick: (v) => {
3872
3872
  v.target.closest(".tv-toggle") || v.target.tagName === "INPUT" || l?.(t);
3873
3873
  },
3874
3874
  children: [
3875
3875
  /* @__PURE__ */ e("button", { className: "tv-toggle", onClick: i, "aria-label": "toggle", children: t.children?.length ? s ? /* @__PURE__ */ e(Nt, { size: 16 }) : /* @__PURE__ */ e(fe, { size: 16 }) : /* @__PURE__ */ e("span", { className: "tv-spacer" }) }),
3876
- /* @__PURE__ */ e(Me, { size: 16, className: "tv-folder-ic" }),
3876
+ /* @__PURE__ */ e(Le, { size: 16, className: "tv-folder-ic" }),
3877
3877
  /* @__PURE__ */ e("div", { className: "tv-name", ref: T, children: _ ? /* @__PURE__ */ e(
3878
3878
  "input",
3879
3879
  {
@@ -3988,10 +3988,10 @@ function Jl({
3988
3988
  // ← allow root moves by default now
3989
3989
  indentUnit: p = 24
3990
3990
  }) {
3991
- const { roots: S } = me(() => hs(t) ? gs(t, { rootId: a, getId: i, getName: m }) : ps(
3991
+ const { roots: S } = ie(() => hs(t) ? gs(t, { rootId: a, getId: i, getName: m }) : ps(
3992
3992
  t.map((b) => ({ ...b })),
3993
3993
  { rootId: a, getId: i, getParent: l, getName: m }
3994
- ), [t, a, i, l, m]), [T, R] = j({}), O = ae((b) => {
3994
+ ), [t, a, i, l, m]), [T, R] = j({}), O = se((b) => {
3995
3995
  const w = {};
3996
3996
  return (function D(N) {
3997
3997
  N.forEach((A) => {
@@ -3999,20 +3999,20 @@ function Jl({
3999
3999
  });
4000
4000
  })(b), w;
4001
4001
  }, []);
4002
- re.useEffect(() => {
4002
+ ae.useEffect(() => {
4003
4003
  R(O(S));
4004
4004
  }, [S, O]);
4005
- const P = ae(
4005
+ const L = se(
4006
4006
  (b) => R((w) => ({ ...w, [b]: !w[b] })),
4007
4007
  []
4008
4008
  ), [_, U] = j(() => Pe(S));
4009
- re.useEffect(() => U(Pe(S)), [S]);
4009
+ ae.useEffect(() => U(Pe(S)), [S]);
4010
4010
  const Y = mr(
4011
4011
  ur(br, { activationConstraint: { delay: 250, tolerance: 5 } })
4012
4012
  ), G = ge(null), [C, h] = j(null), v = ge(0), $ = () => {
4013
4013
  }, B = ({ delta: b }) => {
4014
4014
  v.current = b?.x ?? 0;
4015
- }, E = ae(
4015
+ }, E = se(
4016
4016
  ({ active: b, over: w }) => {
4017
4017
  const D = v.current;
4018
4018
  if (v.current = 0, h(null), !b || !w) return;
@@ -4036,21 +4036,21 @@ function Jl({
4036
4036
  U(Pe(S));
4037
4037
  return;
4038
4038
  }
4039
- const L = Pe(_), { newRoots: M, removed: F } = bs(L, N);
4039
+ const M = Pe(_), { newRoots: P, removed: F } = bs(M, N);
4040
4040
  if (!F) return;
4041
- const q = fs(M, I, F);
4041
+ const q = fs(P, I, F);
4042
4042
  U(q), r?.({ sourceId: N, destParentId: I, newTree: q });
4043
4043
  },
4044
4044
  [_, S, a, d, p, r]
4045
- ), z = ae(
4046
- (b, w = 0) => b.map((D) => /* @__PURE__ */ n(re.Fragment, { children: [
4045
+ ), z = se(
4046
+ (b, w = 0) => b.map((D) => /* @__PURE__ */ n(ae.Fragment, { children: [
4047
4047
  /* @__PURE__ */ e(
4048
4048
  cs,
4049
4049
  {
4050
4050
  node: D,
4051
4051
  depth: w,
4052
4052
  expanded: !!T[D.id],
4053
- onToggle: () => P(D.id),
4053
+ onToggle: () => L(D.id),
4054
4054
  onSelect: o,
4055
4055
  onCreateChild: g,
4056
4056
  onRename: f,
@@ -4063,9 +4063,9 @@ function Jl({
4063
4063
  ),
4064
4064
  T[D.id] && D.children?.length > 0 ? z(D.children, w + 1) : null
4065
4065
  ] }, D.id)),
4066
- [T, p, g, y, f, o, x, P]
4066
+ [T, p, g, y, f, o, x, L]
4067
4067
  );
4068
- return re.useMemo(() => {
4068
+ return ae.useMemo(() => {
4069
4069
  if (!C) return null;
4070
4070
  const b = String(C).replace(/^drag-/, "");
4071
4071
  function w(D) {
@@ -4083,7 +4083,7 @@ function Jl({
4083
4083
  /* @__PURE__ */ e("button", { className: "tv-btn", onClick: u, children: "+ New folder" })
4084
4084
  ] }),
4085
4085
  /* @__PURE__ */ n("div", { className: "tv-root-row", children: [
4086
- /* @__PURE__ */ e(Me, { size: 16, className: "tv-folder-ic" }),
4086
+ /* @__PURE__ */ e(Le, { size: 16, className: "tv-folder-ic" }),
4087
4087
  /* @__PURE__ */ e("strong", { children: "ROOT" }),
4088
4088
  /* @__PURE__ */ e("button", { className: "tv-icon", title: "Create top-level", onClick: u, children: "+" })
4089
4089
  ] }),
@@ -4122,14 +4122,14 @@ const Xl = ({
4122
4122
  "text-left text-sm rounded-md px-2 py-1.5 focus:outline-none",
4123
4123
  x ? "bg-primaryX text-white" : "text-textX hover:bg-lightgray-100 hover:text-primaryX"
4124
4124
  ), r = ({ selected: x }) => o ? typeof o == "function" ? o(x) : o : g ? y(x) : f(x);
4125
- return /* @__PURE__ */ e(se.Group, { vertical: g, ...u, children: g ? /* @__PURE__ */ n("div", { className: we("flex gap-4", i), children: [
4126
- /* @__PURE__ */ e(se.List, { className: we("w-[150px] flex flex-col gap-1 border-r border-gray-300 pr-2", l), children: t.map((x) => /* @__PURE__ */ e(se, { className: r, children: x.label }, x.key)) }),
4127
- /* @__PURE__ */ e(se.Panels, { unmount: !a, className: we("flex-1", m), children: t.map((x) => /* @__PURE__ */ e(se.Panel, { className: "focus:outline-none", children: /* @__PURE__ */ e("div", { className: "[overflow-anchor:none]", children: x.content }) }, x.key)) })
4125
+ return /* @__PURE__ */ e(ne.Group, { vertical: g, ...u, children: g ? /* @__PURE__ */ n("div", { className: we("flex gap-4", i), children: [
4126
+ /* @__PURE__ */ e(ne.List, { className: we("w-[150px] flex flex-col gap-1 border-r border-gray-300 pr-2", l), children: t.map((x) => /* @__PURE__ */ e(ne, { className: r, children: x.label }, x.key)) }),
4127
+ /* @__PURE__ */ e(ne.Panels, { unmount: !a, className: we("flex-1", m), children: t.map((x) => /* @__PURE__ */ e(ne.Panel, { className: "focus:outline-none", children: /* @__PURE__ */ e("div", { className: "[overflow-anchor:none]", children: x.content }) }, x.key)) })
4128
4128
  ] }) : (
4129
4129
  // mostly this part is used : horizontal
4130
4130
  /* @__PURE__ */ n(te, { children: [
4131
- /* @__PURE__ */ e(se.List, { className: we("flex gap-6 border rounded-t-2xl px-1.5 border-gray-300 mb-3 ", l), children: t.map((x) => /* @__PURE__ */ e(se, { className: r, children: x.label }, x.key)) }),
4132
- /* @__PURE__ */ e(se.Panels, { unmount: !a, className: we("mt-2", m), children: t.map((x) => /* @__PURE__ */ e(se.Panel, { className: "focus:outline-none", children: /* @__PURE__ */ e("div", { className: "[overflow-anchor:none]", children: x.content }) }, x.key)) })
4131
+ /* @__PURE__ */ e(ne.List, { className: we("flex gap-6 border rounded-t-2xl px-1.5 border-gray-300 mb-3 ", l), children: t.map((x) => /* @__PURE__ */ e(ne, { className: r, children: x.label }, x.key)) }),
4132
+ /* @__PURE__ */ e(ne.Panels, { unmount: !a, className: we("mt-2", m), children: t.map((x) => /* @__PURE__ */ e(ne.Panel, { className: "focus:outline-none", children: /* @__PURE__ */ e("div", { className: "[overflow-anchor:none]", children: x.content }) }, x.key)) })
4133
4133
  ] })
4134
4134
  ) });
4135
4135
  };
@@ -4139,7 +4139,7 @@ function Ql(t, a = "YYYY-MM-DD HH:mm:ss") {
4139
4139
  c.string;
4140
4140
  function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4141
4141
  console.log(t);
4142
- const [l, m] = re.useState(t), [o, u] = re.useState(() => {
4142
+ const [l, m] = ae.useState(t), [o, u] = ae.useState(() => {
4143
4143
  const r = a && a[t.key] || {};
4144
4144
  return console.log("Initial Section data for", t.key, r), r;
4145
4145
  }), g = ge(a);
@@ -5043,7 +5043,7 @@ function vs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5043
5043
  B(z)
5044
5044
  ] });
5045
5045
  }
5046
- }, T = ae(() => {
5046
+ }, T = se(() => {
5047
5047
  console.log("[DataTableRenderer] Adding blank row"), r((h) => {
5048
5048
  console.log("[DataTableRenderer] Current data before add:", h);
5049
5049
  const v = {
@@ -5056,25 +5056,25 @@ function vs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5056
5056
  const $ = [...h, v];
5057
5057
  return console.log("[DataTableRenderer] Updated data:", $), $;
5058
5058
  });
5059
- }, [l.fields]), R = ae((h) => {
5059
+ }, [l.fields]), R = se((h) => {
5060
5060
  r((v) => {
5061
5061
  if (v.length <= 1)
5062
5062
  return v;
5063
5063
  const $ = [...v];
5064
5064
  return $.splice(h, 1), $;
5065
5065
  });
5066
- }, []), [O, P] = j(null), _ = ae((h, v) => {
5067
- P(v), h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("text/html", "");
5068
- }, []), U = ae((h) => {
5066
+ }, []), [O, L] = j(null), _ = se((h, v) => {
5067
+ L(v), h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("text/html", "");
5068
+ }, []), U = se((h) => {
5069
5069
  h.preventDefault(), h.dataTransfer.dropEffect = "move";
5070
- }, []), Y = ae((h, v) => {
5070
+ }, []), Y = se((h, v) => {
5071
5071
  h.preventDefault(), !(O === null || O === v) && (r(($) => {
5072
5072
  const B = [...$], E = B[O];
5073
5073
  return B.splice(O, 1), B.splice(v, 0, E), B;
5074
- }), P(null));
5075
- }, [O]), G = ae(() => {
5076
- P(null);
5077
- }, []), C = ae((h) => {
5074
+ }), L(null));
5075
+ }, [O]), G = se(() => {
5076
+ L(null);
5077
+ }, []), C = se((h) => {
5078
5078
  console.log("[DataTableRenderer] handleAddAudience called with:", h), r((v) => {
5079
5079
  const $ = [...v];
5080
5080
  if (o !== null && g && $[o]) {
@@ -5172,7 +5172,7 @@ const Ie = {
5172
5172
  closeOnClick: !0
5173
5173
  };
5174
5174
  let Je = 0;
5175
- const Lt = () => {
5175
+ const Mt = () => {
5176
5176
  typeof document > "u" || (Je += 1, document.body.classList.add("toast-backdrop"));
5177
5177
  }, Bt = () => {
5178
5178
  typeof document > "u" || (Je = Math.max(0, Je - 1), Je === 0 && document.body.classList.remove("toast-backdrop"));
@@ -5186,7 +5186,7 @@ const Lt = () => {
5186
5186
  autoClose: !1,
5187
5187
  closeOnClick: !1,
5188
5188
  draggable: !1,
5189
- onOpen: Lt,
5189
+ onOpen: Mt,
5190
5190
  onClose: Bt,
5191
5191
  ...a
5192
5192
  }),
@@ -5201,7 +5201,7 @@ const Lt = () => {
5201
5201
  autoClose: !1,
5202
5202
  closeOnClick: !1,
5203
5203
  draggable: !1,
5204
- onOpen: Lt,
5204
+ onOpen: Mt,
5205
5205
  onClose: Bt
5206
5206
  }
5207
5207
  },
@@ -5229,7 +5229,7 @@ const Lt = () => {
5229
5229
  initialData: g = null
5230
5230
  // Add prop for initial demo data
5231
5231
  }) => {
5232
- const [f, y] = j(null), [r, x] = j(""), [d, p] = j(() => Array.isArray(g) ? g : []), [S, T] = j(null), [R, O] = j(null), [P, _] = j(""), U = async () => {
5232
+ const [f, y] = j(null), [r, x] = j(""), [d, p] = j(() => Array.isArray(g) ? g : []), [S, T] = j(null), [R, O] = j(null), [L, _] = j(""), U = async () => {
5233
5233
  try {
5234
5234
  const N = await je(t.collectionList);
5235
5235
  if (N) {
@@ -5282,7 +5282,7 @@ const Lt = () => {
5282
5282
  // Flag to indicate this is a draft change
5283
5283
  };
5284
5284
  p((I) => {
5285
- const k = I.map((L) => L.id === f ? A : L);
5285
+ const k = I.map((M) => M.id === f ? A : M);
5286
5286
  return s?.(k), k;
5287
5287
  });
5288
5288
  } else
@@ -5300,10 +5300,10 @@ const Lt = () => {
5300
5300
  });
5301
5301
  }, $ = (N, A, I) => {
5302
5302
  if (!u || !A || !I || A === I) return N;
5303
- const k = N.findIndex((q) => q.id === A), L = N.findIndex((q) => q.id === I);
5304
- if (k === -1 || L === -1) return N;
5305
- const M = [...N], [F] = M.splice(k, 1);
5306
- return M.splice(L, 0, F), M.map((q, X) => ({ ...q, order: X + 1 }));
5303
+ const k = N.findIndex((q) => q.id === A), M = N.findIndex((q) => q.id === I);
5304
+ if (k === -1 || M === -1) return N;
5305
+ const P = [...N], [F] = P.splice(k, 1);
5306
+ return P.splice(M, 0, F), P.map((q, X) => ({ ...q, order: X + 1 }));
5307
5307
  }, B = (N, A) => {
5308
5308
  u && (N.dataTransfer.effectAllowed = "move", N.dataTransfer.setData("text/plain", String(A)), T(A));
5309
5309
  }, E = (N) => {
@@ -5314,22 +5314,22 @@ const Lt = () => {
5314
5314
  N.preventDefault();
5315
5315
  const I = N.dataTransfer.getData("text/plain");
5316
5316
  I && (p((k) => {
5317
- const L = $(k, I, A);
5318
- console.log("Reordered", L);
5319
- const M = L.map((F) => ({ ...F, _isDraft: !0 }));
5320
- return s?.(M), M;
5317
+ const M = $(k, I, A);
5318
+ console.log("Reordered", M);
5319
+ const P = M.map((F) => ({ ...F, _isDraft: !0 }));
5320
+ return s?.(P), P;
5321
5321
  }), T(null), O(null));
5322
5322
  }, w = () => {
5323
5323
  T(null), O(null);
5324
5324
  }, D = Array.isArray(d) ? d.filter(
5325
- (N) => N.categoryName?.toLowerCase().includes(P.toLowerCase())
5325
+ (N) => N.categoryName?.toLowerCase().includes(L.toLowerCase())
5326
5326
  ) : [];
5327
5327
  return /* @__PURE__ */ n("div", { className: `manage-collection-list ${a}`, children: [
5328
5328
  /* @__PURE__ */ e("div", { className: "flex justify-end", children: /* @__PURE__ */ n("div", { className: "w-1/2 flex justify-end", children: [
5329
5329
  i && /* @__PURE__ */ e(
5330
5330
  he,
5331
5331
  {
5332
- value: P,
5332
+ value: L,
5333
5333
  onDebouncedChange: _,
5334
5334
  placeholder: "Search Collection",
5335
5335
  customClass: "mr-4 searchmanagecollection"
@@ -5349,18 +5349,18 @@ const Lt = () => {
5349
5349
  )
5350
5350
  ] }) }),
5351
5351
  /* @__PURE__ */ e("div", { className: "mt-5 flex flex-col", children: D.map((N) => {
5352
- const A = f === N.id, I = N?.links?.length ?? 0, k = S === N.id, L = R === N.id && S !== N.id;
5352
+ const A = f === N.id, I = N?.links?.length ?? 0, k = S === N.id, M = R === N.id && S !== N.id;
5353
5353
  return /* @__PURE__ */ e(
5354
5354
  "div",
5355
5355
  {
5356
5356
  onDragEnter: () => E(N.id),
5357
5357
  onDragOver: z,
5358
- onDrop: (M) => b(M, N.id),
5358
+ onDrop: (P) => b(P, N.id),
5359
5359
  onDragEnd: w,
5360
5360
  className: [
5361
5361
  "flex items-center justify-between p-3 border rounded-2xl mb-3",
5362
5362
  "border-gray-300",
5363
- L ? "ring-2 ring-gray-800/20" : "",
5363
+ M ? "ring-2 ring-gray-800/20" : "",
5364
5364
  k ? "opacity-60" : ""
5365
5365
  ].join(" "),
5366
5366
  children: A ? /* @__PURE__ */ n(te, { children: [
@@ -5371,9 +5371,9 @@ const Lt = () => {
5371
5371
  className: "flex-1 h-10 px-3 max-w-[200px] border border-gray-300 rounded-2xl outline-none focus:ring-2 focus:ring-gray-800/20",
5372
5372
  value: r,
5373
5373
  placeholder: N._temp ? "New collection name" : "Edit collection name",
5374
- onChange: (M) => x(M.target.value),
5375
- onKeyDown: (M) => {
5376
- M.key === "Enter" && h(), M.key === "Escape" && C();
5374
+ onChange: (P) => x(P.target.value),
5375
+ onKeyDown: (P) => {
5376
+ P.key === "Enter" && h(), P.key === "Escape" && C();
5377
5377
  },
5378
5378
  autoFocus: !0
5379
5379
  }
@@ -5412,7 +5412,7 @@ const Lt = () => {
5412
5412
  "aria-label": "Drag to reorder",
5413
5413
  className: "cursor-grab active:cursor-grabbing p-1 -m-1 rounded-md hover:bg-gray-50",
5414
5414
  draggable: !0,
5415
- onDragStart: (M) => B(M, N.id),
5415
+ onDragStart: (P) => B(P, N.id),
5416
5416
  children: /* @__PURE__ */ e(wt, {})
5417
5417
  }
5418
5418
  ),
@@ -5500,17 +5500,17 @@ function zs({
5500
5500
  appid: t,
5501
5501
  configdata: a = null,
5502
5502
  disableApi: s = !1,
5503
- onCancel: i,
5504
- onSave: l
5503
+ onSave: i,
5504
+ onShowCancelModal: l
5505
5505
  }) {
5506
- const [m, o] = re.useState(a), [u, g] = re.useState(null), [f, y] = re.useState(null), [r, x] = j(!1), [d, p] = j(!1), [S, T] = j({}), R = `${ze()}/unifyedxappmodulemanagement/api/v1/appmanager/${t}/configuration`, O = R, [P, _] = j(1), U = () => !f || !u ? !1 : JSON.stringify(f) !== JSON.stringify(u), Y = (b) => {
5506
+ const [m, o] = ae.useState(a), [u, g] = ae.useState(null), [f, y] = ae.useState(null), [r, x] = j(!1), [d, p] = j(!1), [S, T] = j({}), R = `${ze()}/unifyedxappmodulemanagement/api/v1/appmanager/${t}/configuration`, O = R, [L, _] = j(1), U = () => !f || !u ? !1 : JSON.stringify(f) !== JSON.stringify(u), Y = (b) => {
5507
5507
  if (!a || !a.configuration)
5508
5508
  return b;
5509
5509
  const w = {}, D = b?.configuration || {};
5510
5510
  return a.configuration.forEach((N) => {
5511
5511
  if (N.key && N.type === "datatable") {
5512
- const I = (D[N.key] || []).map((k, L) => {
5513
- const M = { id: k.id || 0 };
5512
+ const I = (D[N.key] || []).map((k, M) => {
5513
+ const P = { id: k.id || 0 };
5514
5514
  return N.fields && N.fields.forEach((F) => {
5515
5515
  if (F.fieldtype === "audience") {
5516
5516
  let q = { users: [], groups: [], roles: [] };
@@ -5518,15 +5518,15 @@ function zs({
5518
5518
  users: k[F.key].users || [],
5519
5519
  groups: k[F.key].groups || [],
5520
5520
  roles: k[F.key].roles || []
5521
- })), M[F.key] = q;
5521
+ })), P[F.key] = q;
5522
5522
  } else
5523
- M[F.key] = k[F.key] || F.default || "";
5524
- }), M;
5523
+ P[F.key] = k[F.key] || F.default || "";
5524
+ }), P;
5525
5525
  });
5526
5526
  if (I.length === 0) {
5527
5527
  const k = { id: 0 };
5528
- N.fields && N.fields.forEach((L) => {
5529
- L.fieldtype === "audience" ? k[L.key] = { users: [], groups: [], roles: [] } : k[L.key] = L.default || "";
5528
+ N.fields && N.fields.forEach((M) => {
5529
+ M.fieldtype === "audience" ? k[M.key] = { users: [], groups: [], roles: [] } : k[M.key] = M.default || "";
5530
5530
  }), I.push(k);
5531
5531
  }
5532
5532
  w[N.key] = I;
@@ -5579,7 +5579,7 @@ function zs({
5579
5579
  }
5580
5580
  };
5581
5581
  a && (o(a), t ? b() : G());
5582
- }, [a, P, t, s]);
5582
+ }, [a, L, t, s]);
5583
5583
  const C = (b, w) => {
5584
5584
  g((D) => ({
5585
5585
  ...D,
@@ -5613,8 +5613,8 @@ function zs({
5613
5613
  return;
5614
5614
  }
5615
5615
  if (I.fieldtype === "number" && k !== "" && k !== null && k !== void 0) {
5616
- const L = Number(k);
5617
- isNaN(L) ? (b[w.key] || (b[w.key] = {}), b[w.key][A] || (b[w.key][A] = {}), b[w.key][A][I.key] = `${I.label} must be a valid number`) : (I.min !== void 0 && L < I.min && (b[w.key] || (b[w.key] = {}), b[w.key][A] || (b[w.key][A] = {}), b[w.key][A][I.key] = `${I.label} must be at least ${I.min}`), I.max !== void 0 && L > I.max && (b[w.key] || (b[w.key] = {}), b[w.key][A] || (b[w.key][A] = {}), b[w.key][A][I.key] = `${I.label} must not exceed ${I.max}`));
5616
+ const M = Number(k);
5617
+ isNaN(M) ? (b[w.key] || (b[w.key] = {}), b[w.key][A] || (b[w.key][A] = {}), b[w.key][A][I.key] = `${I.label} must be a valid number`) : (I.min !== void 0 && M < I.min && (b[w.key] || (b[w.key] = {}), b[w.key][A] || (b[w.key][A] = {}), b[w.key][A][I.key] = `${I.label} must be at least ${I.min}`), I.max !== void 0 && M > I.max && (b[w.key] || (b[w.key] = {}), b[w.key][A] || (b[w.key][A] = {}), b[w.key][A][I.key] = `${I.label} must not exceed ${I.max}`));
5618
5618
  }
5619
5619
  });
5620
5620
  });
@@ -5625,32 +5625,32 @@ function zs({
5625
5625
  (D) => D.fields?.some((N) => N.fieldtype === "managecollectionlist")
5626
5626
  ) || [];
5627
5627
  for (const D of w) {
5628
- const N = D.fields.find((M) => M.fieldtype === "managecollectionlist");
5628
+ const N = D.fields.find((P) => P.fieldtype === "managecollectionlist");
5629
5629
  if (!N || !b[D.key]) continue;
5630
5630
  const A = b[D.key][N.key];
5631
5631
  if (!Array.isArray(A)) continue;
5632
5632
  const I = N.endpoints || {};
5633
- let k = 0, L = 0;
5634
- for (const M of A)
5633
+ let k = 0, M = 0;
5634
+ for (const P of A)
5635
5635
  try {
5636
- if (M._temp && M._isDraft) {
5637
- console.log("Creating new collection:", M.categoryName);
5636
+ if (P._temp && P._isDraft) {
5637
+ console.log("Creating new collection:", P.categoryName);
5638
5638
  const F = await Ze(I.collectionCreate, {
5639
- categoryName: M.categoryName,
5640
- order: M.order
5639
+ categoryName: P.categoryName,
5640
+ order: P.order
5641
5641
  });
5642
5642
  F && (console.log("Collection created successfully:", F), k++);
5643
- } else if (M._isDraft && !M._temp) {
5644
- console.log("Updating collection:", M.id, M.categoryName);
5645
- const F = await Hn(`${I.collectionUpdate}/${M.id}?newName=${encodeURIComponent(M.categoryName)}`);
5646
- F && (console.log("Collection updated successfully:", F), L++);
5643
+ } else if (P._isDraft && !P._temp) {
5644
+ console.log("Updating collection:", P.id, P.categoryName);
5645
+ const F = await Hn(`${I.collectionUpdate}/${P.id}?newName=${encodeURIComponent(P.categoryName)}`);
5646
+ F && (console.log("Collection updated successfully:", F), M++);
5647
5647
  }
5648
5648
  } catch (F) {
5649
- throw console.error(`Failed to save collection ${M.categoryName}:`, F), new Error(`Failed to save collection "${M.categoryName}": ${F.message}`);
5649
+ throw console.error(`Failed to save collection ${P.categoryName}:`, F), new Error(`Failed to save collection "${P.categoryName}": ${F.message}`);
5650
5650
  }
5651
- if (k > 0 || L > 0) {
5652
- const M = [];
5653
- k > 0 && M.push(`${k} collection${k > 1 ? "s" : ""} created`), L > 0 && M.push(`${L} collection${L > 1 ? "s" : ""} updated`), console.log("ManageCollectionList operations completed:", M.join(", "));
5651
+ if (k > 0 || M > 0) {
5652
+ const P = [];
5653
+ k > 0 && P.push(`${k} collection${k > 1 ? "s" : ""} created`), M > 0 && P.push(`${M} collection${M > 1 ? "s" : ""} updated`), console.log("ManageCollectionList operations completed:", P.join(", "));
5654
5654
  }
5655
5655
  }
5656
5656
  }, B = () => {
@@ -5675,25 +5675,25 @@ function zs({
5675
5675
  (k) => k.key === A && k.type === "datatable"
5676
5676
  );
5677
5677
  I && Array.isArray(u[A]) ? D[A] = u[A].map((k) => {
5678
- const L = { id: k.id || 0 };
5679
- return I.fields && I.fields.forEach((M) => {
5680
- if (M.fieldtype === "audience") {
5678
+ const M = { id: k.id || 0 };
5679
+ return I.fields && I.fields.forEach((P) => {
5680
+ if (P.fieldtype === "audience") {
5681
5681
  let F = { users: [], groups: [], roles: [] };
5682
- k[M.key] && typeof k[M.key] == "object" && !Array.isArray(k[M.key]) && (F = {
5683
- users: k[M.key].users || [],
5684
- groups: k[M.key].groups || [],
5685
- roles: k[M.key].roles || []
5686
- }), L[M.key] = F;
5682
+ k[P.key] && typeof k[P.key] == "object" && !Array.isArray(k[P.key]) && (F = {
5683
+ users: k[P.key].users || [],
5684
+ groups: k[P.key].groups || [],
5685
+ roles: k[P.key].roles || []
5686
+ }), M[P.key] = F;
5687
5687
  } else
5688
- L[M.key] = k[M.key] || "";
5689
- }), L;
5688
+ M[P.key] = k[P.key] || "";
5689
+ }), M;
5690
5690
  }) : D[A] = u[A];
5691
5691
  })), (!D.appkey || D.appkey === "") && (D.appkey = t);
5692
5692
  let N = await Ze(O, D);
5693
5693
  if (N && N.status != "fail") {
5694
5694
  T({});
5695
5695
  const A = N.message || "Configuration has been saved successfully";
5696
- Ge.success(A), l && typeof l == "function" && l(u);
5696
+ Ge.success(A), i && typeof i == "function" && i(u);
5697
5697
  } else
5698
5698
  throw Ge.error(N?.message || "Failed to save configuration"), new Error("No response received from server");
5699
5699
  } catch (D) {
@@ -5703,7 +5703,7 @@ function zs({
5703
5703
  }
5704
5704
  })();
5705
5705
  }, E = () => {
5706
- U() ? i && i() : window.history.back();
5706
+ U() ? (console.log("Unsaved changes detected - showing modal"), l && l()) : (console.log("No unsaved changes - going back directly"), window.history.back());
5707
5707
  };
5708
5708
  if (!m?.configuration && !a?.configuration)
5709
5709
  return /* @__PURE__ */ e("div", { className: "min-h-screen flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "text-gray-500", children: "No configuration available" }) });
@@ -5816,13 +5816,11 @@ const Hl = ({
5816
5816
  }, p = f.map((C) => ({
5817
5817
  label: C.text,
5818
5818
  href: C.href || "#"
5819
- })), S = ae(() => {
5820
- o(!0);
5821
- }, []), T = ae((C) => {
5819
+ })), S = se((C) => {
5822
5820
  o(!1), C.primary && window.location.reload();
5823
- }, []), R = ae((C) => {
5821
+ }, []), T = se((C) => {
5824
5822
  console.log("Configuration changed:", C);
5825
- }, []), O = (() => {
5823
+ }, []), R = (() => {
5826
5824
  if (g.headingKey && Array.isArray(r)) {
5827
5825
  const C = g.headingKey.split("."), h = C[0], v = C[1], $ = r.find((B) => B && B.key === h);
5828
5826
  if ($ && $.fields) {
@@ -5839,13 +5837,13 @@ const Hl = ({
5839
5837
  }
5840
5838
  }
5841
5839
  return g.heading || a;
5842
- })(), P = {
5840
+ })(), O = {
5843
5841
  subHeading: "Application configuration and details",
5844
5842
  tags: [],
5845
5843
  ...g,
5846
- heading: O
5844
+ heading: R
5847
5845
  // Use resolvedDisplayName only
5848
- }, _ = {
5846
+ }, L = {
5849
5847
  about: "This application provides comprehensive functionality for your organization.",
5850
5848
  images: {
5851
5849
  desktop: "https://via.placeholder.com/600x400?text=Desktop+View",
@@ -5863,10 +5861,12 @@ const Hl = ({
5863
5861
  }
5864
5862
  ],
5865
5863
  ...y
5866
- }, U = [
5867
- { label: "Overview", content: G(_) },
5868
- { label: "Configuration", content: /* @__PURE__ */ e(zs, { appid: a, configdata: { configuration: x }, disableApi: s, onCancel: S, onSave: R }) }
5869
- ];
5864
+ }, _ = ie(() => ({
5865
+ configuration: x
5866
+ }), [x]), U = ie(() => [
5867
+ { label: "Overview", content: G(L) },
5868
+ { label: "Configuration", content: /* @__PURE__ */ e(zs, { appid: a, configdata: _, disableApi: s, onSave: T, onShowCancelModal: () => o(!0) }) }
5869
+ ], [a, _, s, T, L]);
5870
5870
  function Y(C) {
5871
5871
  return C ? C.includes("<svg") ? /* @__PURE__ */ e("div", { dangerouslySetInnerHTML: { __html: C } }) : C : "📱";
5872
5872
  }
@@ -5892,14 +5892,6 @@ const Hl = ({
5892
5892
  alt: "Mobile View 1",
5893
5893
  className: "rounded-2xl border border-gray-200 w-[120px] h-[220px] object-cover"
5894
5894
  }
5895
- ),
5896
- /* @__PURE__ */ e(
5897
- "img",
5898
- {
5899
- src: C.images.mobile2,
5900
- alt: "Mobile View 2",
5901
- className: "rounded-2xl border border-gray-200 w-[120px] h-[220px] object-cover"
5902
- }
5903
5895
  )
5904
5896
  ] }),
5905
5897
  /* @__PURE__ */ n("section", { children: [
@@ -5924,11 +5916,11 @@ const Hl = ({
5924
5916
  }
5925
5917
  ),
5926
5918
  /* @__PURE__ */ n("div", { className: "bg-[#ffffff] border border-[#eef2f6] rounded-[12px] px-6 py-5 flex gap-4 items-start mb-4 shadow-sm", children: [
5927
- /* @__PURE__ */ e("div", { className: "icon w-[72px] h-[72px] rounded-full flex items-center justify-center bg-[#F5F5F6] text-[#1C274C] font-bold text-[18px]", children: Y(P.icon) }),
5919
+ /* @__PURE__ */ e("div", { className: "icon w-[72px] h-[72px] rounded-full flex items-center justify-center bg-[#F5F5F6] text-[#1C274C] font-bold text-[18px]", children: Y(O.icon) }),
5928
5920
  /* @__PURE__ */ n("div", { className: "flex flex-col min-w-0", children: [
5929
- /* @__PURE__ */ e("h2", { className: "text-[24px] font-semibold m-0 leading-tight truncate", children: P.heading }),
5930
- /* @__PURE__ */ e("p", { className: "text-[13px] text-[#101112] mt-1 mb-0 max-w-[800px] leading-normal", children: P.subHeading }),
5931
- /* @__PURE__ */ e("div", { className: "mt-2 flex flex-wrap gap-2", children: P.tags && P.tags.map((C, h) => /* @__PURE__ */ e(
5921
+ /* @__PURE__ */ e("h2", { className: "text-[24px] font-semibold m-0 leading-tight truncate", children: O.heading }),
5922
+ /* @__PURE__ */ e("p", { className: "text-[13px] text-[#101112] mt-1 mb-0 max-w-[800px] leading-normal", children: O.subHeading }),
5923
+ /* @__PURE__ */ e("div", { className: "mt-2 flex flex-wrap gap-2", children: O.tags && O.tags.map((C, h) => /* @__PURE__ */ e(
5932
5924
  "span",
5933
5925
  {
5934
5926
  className: "pill inline-block px-[10px] py-[6px] rounded-[14px] text-[11px] border border-[#e6e9ee] text-[#767676] font-semibold mt-1",
@@ -5954,7 +5946,7 @@ const Hl = ({
5954
5946
  Pn,
5955
5947
  {
5956
5948
  isOpen: m,
5957
- onClose: T,
5949
+ onClose: S,
5958
5950
  variant: "warning",
5959
5951
  title: "Are you sure you want to cancel?",
5960
5952
  primaryButtonText: "Yes",
@@ -6017,10 +6009,10 @@ const Kl = ({
6017
6009
  handleSearchChange: O = () => {
6018
6010
  },
6019
6011
  // Optional: override export file names
6020
- excelFileName: P,
6012
+ excelFileName: L,
6021
6013
  pdfFileName: _
6022
6014
  }) => {
6023
- const U = () => l?.current || i?.current, [Y, G] = re.useState(""), C = (t || "export").toString().trim() || "export", h = `${P || C}.xlsx`, v = `${_ || C}.pdf`, $ = (z, b, w) => Math.max(b, Math.min(z, w)), B = ae(
6015
+ const U = () => l?.current || i?.current, [Y, G] = ae.useState(""), C = (t || "export").toString().trim() || "export", h = `${L || C}.xlsx`, v = `${_ || C}.pdf`, $ = (z, b, w) => Math.max(b, Math.min(z, w)), B = se(
6024
6016
  (z) => {
6025
6017
  const b = U();
6026
6018
  if (console.log("openColumnChooserNear", b), !!b?.openColumnChooser) {
@@ -6031,8 +6023,8 @@ const Kl = ({
6031
6023
  try {
6032
6024
  const w = z.currentTarget.getBoundingClientRect(), D = w.left + window.scrollX, N = w.bottom + window.scrollY;
6033
6025
  let A = D - 120, I = N - 120;
6034
- const k = window.innerWidth, L = window.innerHeight;
6035
- A = $(A, window.scrollX + 8, window.scrollX + k - 340), I = $(I, window.scrollY, window.scrollY + L - 120), console.log("openColumnChooserNear", A, I), b.openColumnChooser(A, I);
6026
+ const k = window.innerWidth, M = window.innerHeight;
6027
+ A = $(A, window.scrollX + 8, window.scrollX + k - 340), I = $(I, window.scrollY, window.scrollY + M - 120), console.log("openColumnChooserNear", A, I), b.openColumnChooser(A, I);
6036
6028
  } catch (w) {
6037
6029
  console.log("coloumn choose error", w);
6038
6030
  }
@@ -6040,7 +6032,7 @@ const Kl = ({
6040
6032
  },
6041
6033
  []
6042
6034
  // no external deps; reads ref at call time
6043
- ), E = ae(
6035
+ ), E = se(
6044
6036
  (z, b) => {
6045
6037
  const w = U();
6046
6038
  if (w)
@@ -6190,7 +6182,7 @@ function ei(t) {
6190
6182
  selectionSettings: T = { type: "Multiple", mode: "Row" },
6191
6183
  enableCheckbox: R = !1,
6192
6184
  columns: O = [],
6193
- onGridStateChange: P,
6185
+ onGridStateChange: L,
6194
6186
  onRowSelected: _,
6195
6187
  onRowDeselected: U,
6196
6188
  onRowDoubleClick: Y,
@@ -6200,11 +6192,11 @@ function ei(t) {
6200
6192
  pageSettings: v,
6201
6193
  sortSettings: $,
6202
6194
  ...B
6203
- } = C || {}, [E, z] = re.useState(v?.page || 1), [b, w] = re.useState($?.pageSize || 20), [D, N] = re.useState($?.sortKey || "updatedDate"), [A, I] = re.useState($?.direction || "Descending"), k = me(() => {
6195
+ } = C || {}, [E, z] = ae.useState(v?.page || 1), [b, w] = ae.useState($?.pageSize || 20), [D, N] = ae.useState($?.sortKey || "updatedDate"), [A, I] = ae.useState($?.direction || "Descending"), k = ie(() => {
6204
6196
  const V = [sn];
6205
6197
  return o && V.push(ln), u && V.push(on), g && V.push(cn), p && V.push(dn), r && V.push(mn), x && V.push(un), d && V.push(hn), y && V.push(pn), f && V.push(gn), V.push(bn), V;
6206
- }, [o, u, g, p, r, x, d, y, f]), L = me(() => {
6207
- const V = () => h.current, ne = (W, ve) => {
6198
+ }, [o, u, g, p, r, x, d, y, f]), M = ie(() => {
6199
+ const V = () => h.current, re = (W, ve) => {
6208
6200
  !ve && process.env.NODE_ENV !== "production" && console.warn(`[CustomDataGrid] ${W} requested but related service/feature is disabled.`);
6209
6201
  };
6210
6202
  return {
@@ -6215,33 +6207,33 @@ function ei(t) {
6215
6207
  selectRow: (W) => V()?.selectRow?.(W),
6216
6208
  selectRows: (W) => V()?.selectRows?.(W),
6217
6209
  search: (W) => {
6218
- ne("search()", p), V()?.search?.(W);
6210
+ re("search()", p), V()?.search?.(W);
6219
6211
  },
6220
6212
  print: () => V()?.print?.(),
6221
6213
  excelExport: (W) => {
6222
- ne("excelExport()", r), V()?.excelExport?.(W);
6214
+ re("excelExport()", r), V()?.excelExport?.(W);
6223
6215
  },
6224
6216
  pdfExport: (W) => {
6225
- ne("pdfExport()", x), V()?.pdfExport?.(W);
6217
+ re("pdfExport()", x), V()?.pdfExport?.(W);
6226
6218
  },
6227
6219
  openColumnChooser: (W, ve) => {
6228
- ne("openColumnChooser()", d), V()?.columnChooserModule?.openColumnChooser?.(W, ve);
6220
+ re("openColumnChooser()", d), V()?.columnChooserModule?.openColumnChooser?.(W, ve);
6229
6221
  }
6230
6222
  };
6231
6223
  }, []);
6232
6224
  Z(() => {
6233
- G && (G.current = L);
6234
- }, [G, L]), Z(() => () => {
6225
+ G && (G.current = M);
6226
+ }, [G, M]), Z(() => () => {
6235
6227
  G && (G.current = null);
6236
6228
  }, []);
6237
- const M = (V) => {
6238
- const ne = String(V || "");
6239
- return ne === "Ascending" || ne === "Descending" ? ne : ne.toLowerCase() === "ascending" ? "Ascending" : "Descending";
6229
+ const P = (V) => {
6230
+ const re = String(V || "");
6231
+ return re === "Ascending" || re === "Descending" ? re : re.toLowerCase() === "ascending" ? "Ascending" : "Descending";
6240
6232
  }, F = (V) => {
6241
- const ne = h.current, W = V?.requestType, ve = W === "paging" ? "paging" : W === "sorting" ? "sorting" : W === "searching" ? "searching" : W === "filtering" ? "filtering" : W === "grouping" ? "grouping" : W === "reorder" ? "reorder" : W === "columnstate" ? "columnstate" : "other", Re = V?.pageSize ?? ne?.pageSettings?.pageSize ?? b, Ve = V?.currentPage ?? ne?.pageSettings?.currentPage ?? l, rt = V?.columnName && V?.direction ? [{ field: V.columnName, dir: M(V.direction) }] : (ne?.sortSettings?.columns || []).map((Oe) => ({
6233
+ const re = h.current, W = V?.requestType, ve = W === "paging" ? "paging" : W === "sorting" ? "sorting" : W === "searching" ? "searching" : W === "filtering" ? "filtering" : W === "grouping" ? "grouping" : W === "reorder" ? "reorder" : W === "columnstate" ? "columnstate" : "other", Re = V?.pageSize ?? re?.pageSettings?.pageSize ?? b, Ve = V?.currentPage ?? re?.pageSettings?.currentPage ?? l, rt = V?.columnName && V?.direction ? [{ field: V.columnName, dir: P(V.direction) }] : (re?.sortSettings?.columns || []).map((Oe) => ({
6242
6234
  field: Oe.field,
6243
- dir: M(Oe.direction ?? Oe.dir)
6244
- })), nt = V?.searchString ?? "", st = V?.columns ?? ne?.filterSettings?.columns ?? [];
6235
+ dir: P(Oe.direction ?? Oe.dir)
6236
+ })), nt = V?.searchString ?? "", st = V?.columns ?? re?.filterSettings?.columns ?? [];
6245
6237
  return {
6246
6238
  reason: ve,
6247
6239
  page: { index: Ve, size: Re, skip: (Ve - 1) * Re, take: Re },
@@ -6254,12 +6246,12 @@ function ei(t) {
6254
6246
  }, q = (V) => {
6255
6247
  setTimeout(() => {
6256
6248
  h?.current?.hideSpinner();
6257
- }, 1e3), V.requestType === "paging" && (z(V.currentPage), w(V.pageSize)), V.requestType === "sorting" && (N(V.columnName || "updatedDate"), I(V.direction === "Ascending" ? "ASC" : "DESC")), P && P(F(V), V);
6249
+ }, 1e3), V.requestType === "paging" && (z(V.currentPage), w(V.pageSize)), V.requestType === "sorting" && (N(V.columnName || "updatedDate"), I(V.direction === "Ascending" ? "ASC" : "DESC")), L && L(F(V), V);
6258
6250
  }, X = (V) => {
6259
6251
  typeof Y == "function" && Y(V?.rowData, V);
6260
6252
  }, xe = () => {
6261
6253
  const V = [];
6262
- return R && V.push(/* @__PURE__ */ e(Dt, { type: "checkbox", width: "50" }, "__checkbox__")), O.forEach((ne, W) => {
6254
+ return R && V.push(/* @__PURE__ */ e(Dt, { type: "checkbox", width: "50" }, "__checkbox__")), O.forEach((re, W) => {
6263
6255
  const {
6264
6256
  field: ve,
6265
6257
  headerText: Re,
@@ -6274,10 +6266,10 @@ function ei(t) {
6274
6266
  format: Oa,
6275
6267
  visible: Ia = !0,
6276
6268
  minWidth: Pa,
6277
- maxWidth: Ma,
6278
- customAttributes: La,
6269
+ maxWidth: La,
6270
+ customAttributes: Ma,
6279
6271
  ...Ba
6280
- } = ne || {};
6272
+ } = re || {};
6281
6273
  V.push(
6282
6274
  /* @__PURE__ */ e(
6283
6275
  Dt,
@@ -6295,8 +6287,8 @@ function ei(t) {
6295
6287
  format: Oa,
6296
6288
  visible: Ia,
6297
6289
  minWidth: Pa,
6298
- maxWidth: Ma,
6299
- customAttributes: La,
6290
+ maxWidth: La,
6291
+ customAttributes: Ma,
6300
6292
  ...Ba
6301
6293
  },
6302
6294
  ve || `col-${W}`
@@ -6324,7 +6316,7 @@ function ei(t) {
6324
6316
  selectionSettings: T,
6325
6317
  pageSettings: { pageSize: 10, pageSizes: v?.pageSizes ?? [20, 40, 60, 80, 100] },
6326
6318
  sortSettings: $ ?? {
6327
- columns: [{ field: D, direction: M(A) }],
6319
+ columns: [{ field: D, direction: P(A) }],
6328
6320
  allowUnsort: !1
6329
6321
  },
6330
6322
  actionBegin: q,
@@ -6339,10 +6331,10 @@ function ei(t) {
6339
6331
  }
6340
6332
  );
6341
6333
  }
6342
- const oe = (t) => {
6334
+ const ce = (t) => {
6343
6335
  const a = String(t || "md").toLowerCase();
6344
6336
  return a === "xs" ? "sm" : a === "2lg" || a === "xlg" || a === "xl" ? "lg" : ["sm", "md", "lg"].includes(a) ? a : "md";
6345
- }, ce = {
6337
+ }, de = {
6346
6338
  sm: {
6347
6339
  card: "py-6 px-4 rounded-lg text-[13px] gap-3",
6348
6340
  media: "h-30",
@@ -6362,7 +6354,7 @@ const oe = (t) => {
6362
6354
  meta: "text-sm"
6363
6355
  }
6364
6356
  }, Ss = (t, a) => typeof a == "function" ? a(t) : typeof a == "string" && t?.[a] != null ? t[a] : t?._id ?? t?.id ?? t?.instanceId ?? t?.legacyId ?? t?.key ?? null;
6365
- function ie({
6357
+ function oe({
6366
6358
  children: t,
6367
6359
  className: a = "",
6368
6360
  showCheckbox: s = !1,
@@ -6402,7 +6394,7 @@ function ie({
6402
6394
  }
6403
6395
  );
6404
6396
  }
6405
- ie.propTypes = {
6397
+ oe.propTypes = {
6406
6398
  showCheckbox: c.bool,
6407
6399
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
6408
6400
  onSelect: c.func,
@@ -6426,9 +6418,9 @@ function Ds({
6426
6418
  // spread remaining props (_id, instanceId, etc.)
6427
6419
  ...x
6428
6420
  }) {
6429
- const d = oe(t), p = ce[d];
6421
+ const d = ce(t), p = de[d];
6430
6422
  return /* @__PURE__ */ n(
6431
- ie,
6423
+ oe,
6432
6424
  {
6433
6425
  className: `flex flex-col ${p.card}`,
6434
6426
  showCheckbox: a,
@@ -6545,9 +6537,9 @@ function Es({
6545
6537
  // spread for identity (_id/instanceId/etc)
6546
6538
  ...g
6547
6539
  }) {
6548
- const f = oe(t), y = ce[f], r = Fs[f], x = (d) => `px-1 pb-2 text-sm font-medium ${d === o ? "text-zinc-900 dark:text-zinc-100 border-b-2" : "text-zinc-500 dark:text-zinc-400"}`;
6540
+ const f = ce(t), y = de[f], r = Fs[f], x = (d) => `px-1 pb-2 text-sm font-medium ${d === o ? "text-zinc-900 dark:text-zinc-100 border-b-2" : "text-zinc-500 dark:text-zinc-400"}`;
6549
6541
  return /* @__PURE__ */ n(
6550
- ie,
6542
+ oe,
6551
6543
  {
6552
6544
  className: `flex flex-col ${y.card} ${r.wrap}`,
6553
6545
  showCheckbox: a,
@@ -6729,9 +6721,9 @@ function Is({
6729
6721
  // spread for identity fields: _id / id / instanceId etc.
6730
6722
  ...u
6731
6723
  }) {
6732
- const g = oe(t), f = ce[g], y = Os[g];
6724
+ const g = ce(t), f = de[g], y = Os[g];
6733
6725
  return /* @__PURE__ */ n(
6734
- ie,
6726
+ oe,
6735
6727
  {
6736
6728
  className: `flex flex-col ${f.card} ${y.wrap || ""}`,
6737
6729
  showCheckbox: a,
@@ -6804,7 +6796,7 @@ Is.propTypes = {
6804
6796
  })
6805
6797
  )
6806
6798
  };
6807
- const Ps = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], Ms = {
6799
+ const Ps = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], Ls = {
6808
6800
  sm: {
6809
6801
  wrap: "max-w-md w-full md:w-auto flex-none justify-self-start",
6810
6802
  mapH: "h-48",
@@ -6826,7 +6818,7 @@ const Ps = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], Ms = {
6826
6818
  searchH: "h-11 text-base",
6827
6819
  chipGap: "gap-3.5"
6828
6820
  }
6829
- }, Ls = ({ label: t, active: a = !1, size: s = "md", className: i = "" }) => {
6821
+ }, Ms = ({ label: t, active: a = !1, size: s = "md", className: i = "" }) => {
6830
6822
  const l = "inline-flex items-center justify-center whitespace-nowrap rounded-full border transition-colors duration-150 shadow-[0_0.5px_0_rgba(0,0,0,0.04)]", m = {
6831
6823
  sm: "h-8 px-3 text-[11px] font-semibold",
6832
6824
  md: "h-9 px-3.5 text-[13px] font-semibold",
@@ -6851,9 +6843,9 @@ function js({
6851
6843
  // optional full embed URL override
6852
6844
  ...x
6853
6845
  }) {
6854
- const d = oe(t), p = ce[d], S = Ms[d], T = r || Bs(f, y);
6846
+ const d = ce(t), p = de[d], S = Ls[d], T = r || Bs(f, y);
6855
6847
  return /* @__PURE__ */ e(
6856
- ie,
6848
+ oe,
6857
6849
  {
6858
6850
  className: `flex flex-col ${p.card} ${S.wrap}`,
6859
6851
  showCheckbox: a,
@@ -6885,7 +6877,7 @@ function js({
6885
6877
  /* @__PURE__ */ e("div", { className: "h-8 w-8 rounded-full bg-white/90 border border-zinc-300 flex items-center justify-center", children: "›" })
6886
6878
  ] })
6887
6879
  ] }),
6888
- /* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-14 md:top-12 pointer-events-none mt-2", children: /* @__PURE__ */ e("div", { className: `flex ${S.chipGap} overflow-x-auto scrollbar-none`, children: u.map((R) => /* @__PURE__ */ e(Ls, { label: R, active: R === g, size: d }, R)) }) }),
6880
+ /* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-14 md:top-12 pointer-events-none mt-2", children: /* @__PURE__ */ e("div", { className: `flex ${S.chipGap} overflow-x-auto scrollbar-none`, children: u.map((R) => /* @__PURE__ */ e(Ms, { label: R, active: R === g, size: d }, R)) }) }),
6889
6881
  /* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-28 md:top-24 pointer-events-none", children: /* @__PURE__ */ n("div", { className: `flex items-center rounded-full bg-white dark:bg-zinc-900 shadow border border-zinc-200 dark:border-zinc-700 px-4 ${S.searchH}`, children: [
6890
6882
  /* @__PURE__ */ e("svg", { width: "18", height: "18", viewBox: "0 0 24 24", "aria-hidden": "true", className: "opacity-60", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M15.5 14h-.79l-.28-.27a6.471 6.471 0 001.48-4.23C15.91 6.01 13.4 3.5 10.45 3.5S5 6.01 5 9.5 7.5 15.5 10.45 15.5c1.61 0 3.09-.59 4.23-1.48l.27.28v.79l4.25 4.25c.41.41 1.07.41 1.48 0s.41-1.07 0-1.48L15.5 14Zm-5.05 0C8.01 14 6 11.99 6 9.5S8.01 5 10.45 5s4.45 2.01 4.45 4.5-2.01 4.5-4.45 4.5Z" }) }),
6891
6883
  /* @__PURE__ */ e("span", { className: "ml-2 text-zinc-500 dark:text-zinc-400", children: "Search places" })
@@ -7057,11 +7049,11 @@ function qs({
7057
7049
  selectedIndex: u = 0,
7058
7050
  ...g
7059
7051
  }) {
7060
- const [f, y] = j(u), r = oe(t), x = ce[r], d = _s[r], p = o[f] || o[0], S = (R, O) => {
7052
+ const [f, y] = j(u), r = ce(t), x = de[r], d = _s[r], p = o[f] || o[0], S = (R, O) => {
7061
7053
  y(O), i?.(R);
7062
7054
  }, T = r === "lg";
7063
7055
  return /* @__PURE__ */ n(
7064
- ie,
7056
+ oe,
7065
7057
  {
7066
7058
  className: `flex flex-col ${x.card} ${d.wrap}`,
7067
7059
  showCheckbox: a,
@@ -7084,7 +7076,7 @@ function qs({
7084
7076
  ev: R,
7085
7077
  sizeMeta: d,
7086
7078
  isSelected: O === f,
7087
- onClick: (P) => S(P, O)
7079
+ onClick: (L) => S(L, O)
7088
7080
  },
7089
7081
  R._id || R.id || O
7090
7082
  )) }),
@@ -7098,7 +7090,7 @@ function qs({
7098
7090
  ev: R,
7099
7091
  sizeMeta: d,
7100
7092
  isSelected: O === f,
7101
- onClick: (P) => S(P, O)
7093
+ onClick: (L) => S(L, O)
7102
7094
  },
7103
7095
  R._id || R.id || O
7104
7096
  )) })
@@ -7274,17 +7266,17 @@ function Xs({
7274
7266
  onPin: f,
7275
7267
  ...y
7276
7268
  }) {
7277
- const [r, x] = j(u), d = oe(t), p = ce[d], S = Ws[d], T = (P, _) => {
7278
- x(_), i?.(P);
7279
- }, R = (P) => {
7280
- const _ = { ...P, starred: !P.starred };
7269
+ const [r, x] = j(u), d = ce(t), p = de[d], S = Ws[d], T = (L, _) => {
7270
+ x(_), i?.(L);
7271
+ }, R = (L) => {
7272
+ const _ = { ...L, starred: !L.starred };
7281
7273
  g?.(_);
7282
- }, O = (P) => {
7283
- const _ = { ...P, pinned: !P.pinned };
7274
+ }, O = (L) => {
7275
+ const _ = { ...L, pinned: !L.pinned };
7284
7276
  f?.(_);
7285
7277
  };
7286
7278
  return /* @__PURE__ */ n(
7287
- ie,
7279
+ oe,
7288
7280
  {
7289
7281
  className: `flex flex-col ${p.card} ${S.wrap}`,
7290
7282
  showCheckbox: a,
@@ -7296,17 +7288,17 @@ function Xs({
7296
7288
  children: [
7297
7289
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${p.title}`, children: m }) }),
7298
7290
  /* @__PURE__ */ e(he, { placeholder: "Type to search..." }),
7299
- /* @__PURE__ */ e("div", { className: "space-y-0", children: o.map((P, _) => /* @__PURE__ */ e(
7291
+ /* @__PURE__ */ e("div", { className: "space-y-0", children: o.map((L, _) => /* @__PURE__ */ e(
7300
7292
  Js,
7301
7293
  {
7302
- email: P,
7294
+ email: L,
7303
7295
  sizeMeta: S,
7304
7296
  isSelected: _ === r,
7305
7297
  onClick: (U) => T(U, _),
7306
7298
  onStar: R,
7307
7299
  onPin: O
7308
7300
  },
7309
- P._id || P.id || _
7301
+ L._id || L.id || _
7310
7302
  )) }),
7311
7303
  /* @__PURE__ */ e("div", { className: "mt-4 pt-3 border-t border-zinc-200 dark:border-zinc-800", children: /* @__PURE__ */ e("button", { className: "w-full text-center text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 text-sm font-medium transition-colors duration-200", children: "View All" }) })
7312
7304
  ]
@@ -7526,11 +7518,11 @@ function el({
7526
7518
  selectedIndex: u = 0,
7527
7519
  ...g
7528
7520
  }) {
7529
- const [f, y] = j(u), r = oe(t), x = ce[r], d = Hs[r], p = (R, O) => {
7521
+ const [f, y] = j(u), r = ce(t), x = de[r], d = Hs[r], p = (R, O) => {
7530
7522
  y(O), i?.(R);
7531
7523
  }, S = o[f] || o[0], T = d.layout === "split";
7532
7524
  return /* @__PURE__ */ n(
7533
- ie,
7525
+ oe,
7534
7526
  {
7535
7527
  className: `flex flex-col ${x.card} ${d.wrap}`,
7536
7528
  showCheckbox: a,
@@ -7549,7 +7541,7 @@ function el({
7549
7541
  contact: R,
7550
7542
  sizeMeta: d,
7551
7543
  isSelected: O === f,
7552
- onClick: (P) => p(P, O)
7544
+ onClick: (L) => p(L, O)
7553
7545
  },
7554
7546
  R._id || R.id || O
7555
7547
  )) }),
@@ -7568,7 +7560,7 @@ function el({
7568
7560
  contact: R,
7569
7561
  sizeMeta: d,
7570
7562
  isSelected: O === f,
7571
- onClick: (P) => p(P, O)
7563
+ onClick: (L) => p(L, O)
7572
7564
  },
7573
7565
  R._id || R.id || O
7574
7566
  )) })
@@ -7678,9 +7670,9 @@ function rl({
7678
7670
  ],
7679
7671
  ...r
7680
7672
  }) {
7681
- const x = oe(t), d = ce[x], p = al[x];
7673
+ const x = ce(t), d = de[x], p = al[x];
7682
7674
  return /* @__PURE__ */ n(
7683
- ie,
7675
+ oe,
7684
7676
  {
7685
7677
  className: `flex flex-col ${d.card} ${p.wrap}`,
7686
7678
  showCheckbox: a,
@@ -7851,9 +7843,9 @@ function sl({
7851
7843
  term: o = "Fall 2025",
7852
7844
  ...u
7853
7845
  }) {
7854
- const [g, f] = j("vacation"), [y, r] = j(!1), x = oe(t), d = ce[x], p = nl[x], S = qe.find((T) => T.id === g) || qe[0];
7846
+ const [g, f] = j("vacation"), [y, r] = j(!1), x = ce(t), d = de[x], p = nl[x], S = qe.find((T) => T.id === g) || qe[0];
7855
7847
  return /* @__PURE__ */ n(
7856
- ie,
7848
+ oe,
7857
7849
  {
7858
7850
  className: `flex flex-col ${d.card} ${p.wrap}`,
7859
7851
  showCheckbox: a,
@@ -7932,7 +7924,7 @@ const ll = [
7932
7924
  name: "Admin Files",
7933
7925
  type: "folder",
7934
7926
  count: "200 files",
7935
- icon: Me,
7927
+ icon: Le,
7936
7928
  color: "text-blue-500"
7937
7929
  },
7938
7930
  {
@@ -7965,7 +7957,7 @@ const ll = [
7965
7957
  name: "2024 - Taurus",
7966
7958
  type: "folder",
7967
7959
  date: "March 06, 2025",
7968
- icon: Me,
7960
+ icon: Le,
7969
7961
  color: "text-blue-500"
7970
7962
  },
7971
7963
  {
@@ -7981,7 +7973,7 @@ const ll = [
7981
7973
  name: "Championship 2",
7982
7974
  type: "folder",
7983
7975
  date: "March 06, 2025",
7984
- icon: Me,
7976
+ icon: Le,
7985
7977
  color: "text-blue-500"
7986
7978
  },
7987
7979
  {
@@ -8042,9 +8034,9 @@ function cl({
8042
8034
  subtitle: o = "Drive Shared",
8043
8035
  ...u
8044
8036
  }) {
8045
- const [g, f] = j(!1), y = oe(t), r = ce[y], x = ol[y];
8037
+ const [g, f] = j(!1), y = ce(t), r = de[y], x = ol[y];
8046
8038
  return /* @__PURE__ */ n(
8047
- ie,
8039
+ oe,
8048
8040
  {
8049
8041
  className: `flex flex-col ${r.card} ${x.wrap}`,
8050
8042
  showCheckbox: a,
@@ -8288,11 +8280,11 @@ function gl({
8288
8280
  showBanner: u = !0,
8289
8281
  ...g
8290
8282
  }) {
8291
- const [f, y] = j(o), r = oe(t), x = ce[r], d = ml[r], p = (R) => {
8292
- y((O) => O.filter((P) => P.id !== R.id));
8283
+ const [f, y] = j(o), r = ce(t), x = de[r], d = ml[r], p = (R) => {
8284
+ y((O) => O.filter((L) => L.id !== R.id));
8293
8285
  }, S = f.find((R) => R.type === "banner"), T = f.filter((R) => R.type !== "banner");
8294
8286
  return /* @__PURE__ */ n(
8295
- ie,
8287
+ oe,
8296
8288
  {
8297
8289
  className: `flex flex-col ${x.card} ${d.wrap}`,
8298
8290
  showCheckbox: a,
@@ -8464,9 +8456,9 @@ function xl({
8464
8456
  videos: o = bl,
8465
8457
  ...u
8466
8458
  }) {
8467
- const [g, f] = j(!1), y = oe(t), r = ce[y], x = fl[y];
8459
+ const [g, f] = j(!1), y = ce(t), r = de[y], x = fl[y];
8468
8460
  return /* @__PURE__ */ n(
8469
- ie,
8461
+ oe,
8470
8462
  {
8471
8463
  className: `flex flex-col ${r.card} ${x.wrap}`,
8472
8464
  showCheckbox: a,
@@ -8574,17 +8566,17 @@ export {
8574
8566
  ha as RadioGroup,
8575
8567
  he as SearchBar,
8576
8568
  yt as Select,
8577
- ie as SelectableCard,
8569
+ oe as SelectableCard,
8578
8570
  Il as Sidebar,
8579
8571
  ga as Spinner,
8580
8572
  ba as Textarea,
8581
8573
  Zl as ToastProvider,
8582
8574
  fa as ToggleSwitch,
8583
- Ml as Tooltip,
8575
+ Ll as Tooltip,
8584
8576
  Jl as TreeView,
8585
8577
  ee as UnifyedCoreButton,
8586
8578
  xl as VideosMock,
8587
- Ll as WizardModal,
8579
+ Ml as WizardModal,
8588
8580
  wa as adGroupsListSearchApi,
8589
8581
  Gl as axiosDelete,
8590
8582
  je as axiosGet,
@@ -8602,13 +8594,13 @@ export {
8602
8594
  Yl as http,
8603
8595
  qn as localStore,
8604
8596
  kt as myDriveGatewayBaseV2,
8605
- oe as normalizeSize,
8597
+ ce as normalizeSize,
8606
8598
  Ge as notify,
8607
8599
  ka as provisioningBase,
8608
8600
  Ca as rbacBase,
8609
8601
  za as searchRolesApi,
8610
8602
  Vl as sessionStore,
8611
- ce as sizeClasses,
8603
+ de as sizeClasses,
8612
8604
  Ql as toBrowserLocalTime,
8613
8605
  Na as userSearchBase
8614
8606
  };