unifyedx-storybook-new 0.2.82 → 0.2.83

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 ae, { useState as M, useMemo as ee, useId as He, Fragment as Z, useEffect as K, useCallback as H, useRef as he } from "react";
3
- import { a as Q, U as ot, X as ve, P as c, L as Ra, C as xe, b as et, D as ct, f as kt, d as Yt, F as Ia, e as Oa, h as Pa, T as Le, u as Ma, I as Wt, i as Jt, j as La, k as Ba, l as Va, m as Xt, S as ft, n as Qt, M as ja, o as _a, p as yt, q as Ua, A as Ga, E as Ht, r as qa, s as Ya, t as Wa, v as Ja, w as Zt, x as Xa, y as Qa, z as Ha, B as Za, G as Ka, H as er, J as Be, K as Ct, N as zt, O as tr, Q as Kt, R as ar, V as xt, W as rr, Y as nr, Z as Ve, _ as sr, $ as lr, a0 as ir, a1 as or, a2 as cr, a3 as dr, a4 as St, a5 as mr, a6 as ur, a7 as hr, a8 as pr, a9 as gr, aa as br, ab as fr, ac as yr, ad as xr, ae as Ae, af as ea, ag as vr, ah as Nr, ai as wr, aj as kr, ak as Cr, al as ta, am as zr, an as Sr, ao as aa, ap as Dr, aq as dt, ar as ra, as as $r } from "./vendor-DAjW_ynU.js";
4
- import { Popover as Tr, PopoverButton as Ar, PopoverPanel as Fr, Transition as ge, Dialog as ye, TransitionChild as ke, DialogPanel as Fe, DialogTitle as tt, TabGroup as Er, TabList as Rr, Tab as ne, TabPanels as Ir, RadioGroup as Ge, Listbox as le, ListboxButton as Or, ListboxOptions as Pr, ListboxOption as Mr, SwitchGroup as Lr, Switch as lt, Menu as Br, MenuButton as Vr, Portal as jr, MenuItems as _r, MenuItem as Ur, DialogBackdrop as Gr } from "@headlessui/react";
2
+ import ae, { useState as P, useMemo as ee, useId as He, Fragment as Z, useEffect as K, useCallback as H, useRef as he } from "react";
3
+ import { a as Q, U as ot, X as ve, P as d, L as Ra, C as xe, b as et, D as ct, f as kt, d as Yt, F as Ia, e as Oa, h as Ma, T as Le, u as Pa, I as Wt, i as Jt, j as La, k as Ba, l as Va, m as Xt, S as ft, n as Qt, M as ja, o as _a, p as yt, q as Ua, A as Ga, E as Ht, r as qa, s as Ya, t as Wa, v as Ja, w as Zt, x as Xa, y as Qa, z as Ha, B as Za, G as Ka, H as er, J as Be, K as Ct, N as zt, O as tr, Q as Kt, R as ar, V as xt, W as rr, Y as nr, Z as Ve, _ as sr, $ as lr, a0 as ir, a1 as or, a2 as cr, a3 as dr, a4 as St, a5 as mr, a6 as ur, a7 as hr, a8 as pr, a9 as gr, aa as br, ab as fr, ac as yr, ad as xr, ae as Ae, af as ea, ag as vr, ah as Nr, ai as wr, aj as kr, ak as Cr, al as ta, am as zr, an as Sr, ao as aa, ap as Dr, aq as dt, ar as ra, as as $r } from "./vendor-DAjW_ynU.js";
4
+ import { Popover as Tr, PopoverButton as Ar, PopoverPanel as Fr, Transition as be, Dialog as ye, TransitionChild as ke, DialogPanel as Fe, DialogTitle as tt, TabGroup as Er, TabList as Rr, Tab as ne, TabPanels as Ir, RadioGroup as Ge, Listbox as le, ListboxButton as Or, ListboxOptions as Mr, ListboxOption as Pr, SwitchGroup as Lr, Switch as lt, Menu as Br, MenuButton as Vr, Portal as jr, MenuItems as _r, MenuItem as Ur, DialogBackdrop as Gr } from "@headlessui/react";
5
5
  import { motion as ie, AnimatePresence as Se } from "framer-motion";
6
6
  import { d as qr } from "./vendor-lodash-B0mISAV-.js";
7
7
  import { useFloating as Yr, offset as Wr, flip as Jr, shift as Xr, autoUpdate as Qr } from "@floating-ui/react";
@@ -15,8 +15,8 @@ const bn = (t) => {
15
15
  a ^= t.charCodeAt(s), a += (a << 1) + (a << 4) + (a << 7) + (a << 8) + (a << 24);
16
16
  return a >>> 0;
17
17
  }, fn = (t) => {
18
- const a = (t ?? "").trim().toLowerCase(), s = parseInt((a.match(/\d+$/) ?? [0])[0], 10) || 0, i = bn(a), l = (i % 360 + 37 * s) % 360, h = 55 + (i >>> 8) % 20, o = 30 + (i >>> 16) % 10, p = 86 + (i >>> 24) % 8, g = `hsl(${l}, ${h}%, ${p}%)`, N = `hsl(${l}, ${h}%, ${o}%)`;
19
- return { bg: g, text: N };
18
+ const a = (t ?? "").trim().toLowerCase(), s = parseInt((a.match(/\d+$/) ?? [0])[0], 10) || 0, i = bn(a), l = (i % 360 + 37 * s) % 360, h = 55 + (i >>> 8) % 20, o = 30 + (i >>> 16) % 10, p = 86 + (i >>> 24) % 8, g = `hsl(${l}, ${h}%, ${p}%)`, v = `hsl(${l}, ${h}%, ${o}%)`;
19
+ return { bg: g, text: v };
20
20
  }, yn = (t = "") => t.split(" ").map((a) => a[0]).slice(0, 2).join("").toUpperCase(), we = ({
21
21
  src: t,
22
22
  name: a,
@@ -29,11 +29,11 @@ const bn = (t) => {
29
29
  className: h,
30
30
  ...o
31
31
  }) => {
32
- const [p, g] = M(!1), N = ee(() => fn(a), []), x = t && !p, r = !x && a, v = !x && !a, m = Q(
32
+ const [p, g] = P(!1), v = ee(() => fn(a), []), x = t && !p, r = !x && a, N = !x && !a, m = Q(
33
33
  "avatar-container",
34
34
  `avatar--size-${s}`,
35
35
  h
36
- ), y = x ? "transparent" : i || N.bg, z = l || N.text;
36
+ ), y = x ? "transparent" : i || v.bg, z = l || v.text;
37
37
  return /* @__PURE__ */ n("div", { className: m, style: {
38
38
  backgroundColor: y,
39
39
  color: z
@@ -48,7 +48,7 @@ const bn = (t) => {
48
48
  }
49
49
  ),
50
50
  r && /* @__PURE__ */ e("span", { className: "avatar-initials", "aria-label": a, children: yn(a) }),
51
- v && /* @__PURE__ */ e("span", { className: "avatar-icon", children: /* @__PURE__ */ e(ot, {}) })
51
+ N && /* @__PURE__ */ e("span", { className: "avatar-icon", children: /* @__PURE__ */ e(ot, {}) })
52
52
  ] });
53
53
  }, xn = ({ children: t, max: a = 4, truncatedMessage: s = "Members", ...i }) => {
54
54
  const l = ae.Children.toArray(t), h = l.slice(0, a), o = l.length - a;
@@ -74,14 +74,14 @@ const bn = (t) => {
74
74
  className: p,
75
75
  ...g
76
76
  }) => {
77
- const N = Q(
77
+ const v = Q(
78
78
  "badge",
79
79
  `badge--variant-${a}`,
80
80
  `badge--size-${s}`,
81
81
  { "badge--with-remove": !!l },
82
82
  p
83
83
  );
84
- return /* @__PURE__ */ n("span", { className: N, style: h && o ? {
84
+ return /* @__PURE__ */ n("span", { className: v, style: h && o ? {
85
85
  backgroundColor: h,
86
86
  color: o,
87
87
  borderColor: "#ff0000"
@@ -120,15 +120,15 @@ const bn = (t) => {
120
120
  };
121
121
  vn.propTypes = {
122
122
  /** Is this the principal call to action on the page? */
123
- primary: c.bool,
123
+ primary: d.bool,
124
124
  /** What background color to use */
125
- backgroundColor: c.string,
125
+ backgroundColor: d.string,
126
126
  /** How large should the button be? */
127
- size: c.oneOf(["small", "medium", "large"]),
127
+ size: d.oneOf(["small", "medium", "large"]),
128
128
  /** Button contents */
129
- label: c.string.isRequired,
129
+ label: d.string.isRequired,
130
130
  /** Optional click handler */
131
- onClick: c.func
131
+ onClick: d.func
132
132
  };
133
133
  const Nn = {
134
134
  small: "btn-sm",
@@ -149,11 +149,11 @@ const Nn = {
149
149
  icon: p,
150
150
  // Renamed for clarity, expecting a component type e.g., CheckCircle
151
151
  disabled: g = !1,
152
- size: N = "medium",
152
+ size: v = "medium",
153
153
  label: x,
154
154
  children: r,
155
155
  // ✅ Add children to the props list
156
- iconWidth: v,
156
+ iconWidth: N,
157
157
  iconHeight: m,
158
158
  iconColor: y,
159
159
  strokeWidth: z,
@@ -162,7 +162,7 @@ const Nn = {
162
162
  }) => {
163
163
  const E = g || h, L = p && !x, V = Q(
164
164
  "btn-base",
165
- Nn[N],
165
+ Nn[v],
166
166
  wn[o],
167
167
  {
168
168
  "is-loading": h,
@@ -182,7 +182,7 @@ const Nn = {
182
182
  "aria-label": i || L && a || (typeof x == "string" ? x : void 0),
183
183
  ...$,
184
184
  children: h ? /* @__PURE__ */ e(Ra, { className: "loader-spin", "data-testid": "button-loader" }) : /* @__PURE__ */ n(te, { children: [
185
- p && /* @__PURE__ */ e(p, { size: N === "large" ? 20 : 16, width: v || 16, height: m || 16, color: y || "#767676", strokeWidth: z || 2 }),
185
+ p && /* @__PURE__ */ e(p, { size: v === "large" ? 20 : 16, width: N || 16, height: m || 16, color: y || "#767676", strokeWidth: z || 2 }),
186
186
  x,
187
187
  r,
188
188
  " "
@@ -222,13 +222,13 @@ const Nn = {
222
222
  onChange: o,
223
223
  ...p
224
224
  }) => {
225
- const g = He(), N = a || g;
225
+ const g = He(), v = a || g;
226
226
  return /* @__PURE__ */ n("div", { className: `checkbox-container ${i || ""}`, children: [
227
- /* @__PURE__ */ n("label", { htmlFor: N, className: "checkbox-wrapper", children: [
227
+ /* @__PURE__ */ n("label", { htmlFor: v, className: "checkbox-wrapper", children: [
228
228
  /* @__PURE__ */ e(
229
229
  "input",
230
230
  {
231
- id: N,
231
+ id: v,
232
232
  type: "checkbox",
233
233
  ref: l,
234
234
  className: "checkbox-input",
@@ -291,10 +291,10 @@ const Nn = {
291
291
  className: p,
292
292
  ...g
293
293
  }) => {
294
- const N = t?.from, x = t?.to, r = (m) => {
294
+ const v = t?.from, x = t?.to, r = (m) => {
295
295
  m.stopPropagation(), m.preventDefault(), s?.();
296
- }, v = N && x ? /* @__PURE__ */ n(te, { children: [
297
- kt(N, "MMM d, y"),
296
+ }, N = v && x ? /* @__PURE__ */ n(te, { children: [
297
+ kt(v, "MMM d, y"),
298
298
  " - ",
299
299
  kt(x, "MMM d, y")
300
300
  ] }) : /* @__PURE__ */ e("span", { className: "datepicker-placeholder", children: i });
@@ -312,14 +312,14 @@ const Nn = {
312
312
  "datepicker-trigger--disabled": o
313
313
  }),
314
314
  disabled: o,
315
- "aria-label": N && x ? `Selected range is ${v}` : i,
315
+ "aria-label": v && x ? `Selected range is ${N}` : i,
316
316
  children: [
317
317
  /* @__PURE__ */ e(Yt, { className: "datepicker-icon" }),
318
- /* @__PURE__ */ e("span", { className: "datepicker-value", children: v })
318
+ /* @__PURE__ */ e("span", { className: "datepicker-value", children: N })
319
319
  ]
320
320
  }
321
321
  ),
322
- N && s && !o && /* @__PURE__ */ e(
322
+ v && s && !o && /* @__PURE__ */ e(
323
323
  "button",
324
324
  {
325
325
  type: "button",
@@ -601,16 +601,16 @@ const Nn = {
601
601
  validFiles: o = [],
602
602
  rejectedFiles: p = [],
603
603
  handleRemoveValidFile: g,
604
- handleRemoveRejectedFile: N,
604
+ handleRemoveRejectedFile: v,
605
605
  handleSubmit: x,
606
606
  isSubmitting: r,
607
- formErrors: v,
607
+ formErrors: N,
608
608
  // --- UI Text ---
609
609
  title: m = "Upload Files",
610
610
  subHeading: y = "Supports PNG, JPG, PDF. Max size: 50MB."
611
611
  }) => {
612
612
  const z = o.length > 0 || p.length > 0;
613
- return /* @__PURE__ */ e(ge, { appear: !0, show: t, as: Z, children: /* @__PURE__ */ n(
613
+ return /* @__PURE__ */ e(be, { appear: !0, show: t, as: Z, children: /* @__PURE__ */ n(
614
614
  ye,
615
615
  {
616
616
  as: "div",
@@ -667,7 +667,7 @@ const Nn = {
667
667
  {
668
668
  className: `dropzone-ui ${l ? "dropzone-ui--active" : ""}`,
669
669
  children: [
670
- /* @__PURE__ */ e(Pa, { size: 48, className: "text-gray-400" }),
670
+ /* @__PURE__ */ e(Ma, { size: 48, className: "text-gray-400" }),
671
671
  /* @__PURE__ */ e("p", { children: "Drag and drop files here" }),
672
672
  /* @__PURE__ */ e("p", { className: "sub-heading", children: y }),
673
673
  /* @__PURE__ */ e("hr", {}),
@@ -684,7 +684,7 @@ const Nn = {
684
684
  ]
685
685
  }
686
686
  ),
687
- v.filesToUpload && /* @__PURE__ */ e("p", { className: "form-error-message", children: v.filesToUpload.message }),
687
+ N.filesToUpload && /* @__PURE__ */ e("p", { className: "form-error-message", children: N.filesToUpload.message }),
688
688
  z && /* @__PURE__ */ n("div", { className: "file-list-container", children: [
689
689
  /* @__PURE__ */ e("h3", { children: "Upload Queue" }),
690
690
  /* @__PURE__ */ n("ul", { className: "file-list", children: [
@@ -740,7 +740,7 @@ const Nn = {
740
740
  "button",
741
741
  {
742
742
  type: "button",
743
- onClick: () => N(E),
743
+ onClick: () => v(E),
744
744
  className: "remove-file-button",
745
745
  children: /* @__PURE__ */ e(Le, { size: 16 })
746
746
  }
@@ -832,17 +832,17 @@ const Nn = {
832
832
  fetchCreatedOrUpdatedByUsers: p = async () => []
833
833
  // Mockable fetcher
834
834
  }) => {
835
- const [g, N] = M({
835
+ const [g, v] = P({
836
836
  createdBy: [],
837
837
  updatedBy: []
838
- }), [x, r] = M({
838
+ }), [x, r] = P({
839
839
  createdBy: !1,
840
840
  updatedBy: !1
841
- }), [v, m] = M({
841
+ }), [N, m] = P({
842
842
  startDate: null
843
- }), [y, z] = M({
843
+ }), [y, z] = P({
844
844
  endDate: null
845
- }), T = Ma({
845
+ }), T = Pa({
846
846
  initialValues: JSON.parse(JSON.stringify(h)),
847
847
  // Deep copy
848
848
  onSubmit: (A) => {
@@ -879,13 +879,13 @@ const Nn = {
879
879
  if (!Array.isArray(_) || _.length < 2) return !1;
880
880
  const [C, u] = _;
881
881
  if (!C || !u) return !1;
882
- const S = C instanceof Date ? C : new Date(C), P = u instanceof Date ? u : new Date(u);
883
- return S > P;
882
+ const S = C instanceof Date ? C : new Date(C), M = u instanceof Date ? u : new Date(u);
883
+ return S > M;
884
884
  }), [l, T.values]), V = async (A, _) => {
885
885
  try {
886
886
  r((u) => ({ ...u, [A]: !0 }));
887
887
  const C = await p(A, _);
888
- N((u) => ({ ...u, [A]: C }));
888
+ v((u) => ({ ...u, [A]: C }));
889
889
  } catch (C) {
890
890
  console.error(`Error fetching ${A} users:`, C);
891
891
  } finally {
@@ -895,7 +895,7 @@ const Nn = {
895
895
  const _ = l[A].key, C = l[A].url;
896
896
  l[A].type === "multiselect-users" && g[_].length === 0 && !x[_] && V(_, C);
897
897
  }, Y = () => {
898
- T.resetForm(), N({ createdBy: [], updatedBy: [] }), i();
898
+ T.resetForm(), v({ createdBy: [], updatedBy: [] }), i();
899
899
  }, q = (A) => {
900
900
  const _ = l.find((S) => S.key === A);
901
901
  if (!_) return null;
@@ -965,7 +965,7 @@ const Nn = {
965
965
  ] })
966
966
  ] });
967
967
  case "multiselect-users":
968
- const S = g[A] || [], P = x[A];
968
+ const S = g[A] || [], M = x[A];
969
969
  return /* @__PURE__ */ n("div", { className: "filter-panel-content", children: [
970
970
  /* @__PURE__ */ n("div", { className: "filter-operator-group", children: [
971
971
  /* @__PURE__ */ e("label", { className: "filter-label", children: "Operator:" }),
@@ -979,7 +979,7 @@ const Nn = {
979
979
  }
980
980
  )
981
981
  ] }),
982
- P ? /* @__PURE__ */ e("div", { className: "loading-spinner", children: /* @__PURE__ */ e("div", {}) }) : /* @__PURE__ */ e("div", { className: "filter-checkbox-list", children: S.length > 0 ? /* @__PURE__ */ n(te, { children: [
982
+ M ? /* @__PURE__ */ e("div", { className: "loading-spinner", children: /* @__PURE__ */ e("div", {}) }) : /* @__PURE__ */ e("div", { className: "filter-checkbox-list", children: S.length > 0 ? /* @__PURE__ */ n(te, { children: [
983
983
  /* @__PURE__ */ n("div", { className: "filter-checkbox-item", children: [
984
984
  /* @__PURE__ */ e(
985
985
  "input",
@@ -1038,7 +1038,7 @@ const Nn = {
1038
1038
  ] }) : /* @__PURE__ */ e("div", { className: "text-center py-4 text-gray-500 text-sm", children: "No users loaded." }) })
1039
1039
  ] });
1040
1040
  case "date":
1041
- const O = C.values || [], [b, d] = O, f = b && d, w = O[0] || null, D = O[1] || null, I = {
1041
+ const O = C.values || [], [b, c] = O, f = b && c, w = O[0] || null, D = O[1] || null, I = {
1042
1042
  startDate: w instanceof Date ? w.toISOString().slice(0, 10) : null,
1043
1043
  endDate: w instanceof Date ? w.toISOString().slice(0, 10) : null
1044
1044
  }, k = {
@@ -1171,7 +1171,7 @@ const Nn = {
1171
1171
  return null;
1172
1172
  }
1173
1173
  };
1174
- return /* @__PURE__ */ e(ge, { appear: !0, show: t, as: Z, children: /* @__PURE__ */ n(ye, { as: "div", className: "relative z-50", onClose: a, children: [
1174
+ return /* @__PURE__ */ e(be, { appear: !0, show: t, as: Z, children: /* @__PURE__ */ n(ye, { as: "div", className: "relative z-50", onClose: a, children: [
1175
1175
  /* @__PURE__ */ e(
1176
1176
  ke,
1177
1177
  {
@@ -1346,15 +1346,15 @@ const Nn = {
1346
1346
  // 'info', 'warning', 'delete'
1347
1347
  loading: p = !1,
1348
1348
  buttonProps: g = {},
1349
- size: N
1349
+ size: v
1350
1350
  // Add size prop
1351
1351
  }) => {
1352
- const x = Rt[o] || Rt.info, r = x.icon, v = () => {
1352
+ const x = Rt[o] || Rt.info, r = x.icon, N = () => {
1353
1353
  a({ primary: !0, secondary: !1 });
1354
1354
  }, m = () => {
1355
1355
  a({ primary: !1, secondary: !0 });
1356
1356
  };
1357
- return /* @__PURE__ */ e(ge, { appear: !0, show: t, as: Z, children: /* @__PURE__ */ n(ye, { as: "div", className: "modal-dialog", onClose: () => a({}), children: [
1357
+ return /* @__PURE__ */ e(be, { appear: !0, show: t, as: Z, children: /* @__PURE__ */ n(ye, { as: "div", className: "modal-dialog", onClose: () => a({}), children: [
1358
1358
  /* @__PURE__ */ e(
1359
1359
  ke,
1360
1360
  {
@@ -1378,7 +1378,7 @@ const Nn = {
1378
1378
  leave: "ease-in duration-200",
1379
1379
  leaveFrom: "opacity-100 scale-100",
1380
1380
  leaveTo: "opacity-0 scale-95",
1381
- children: /* @__PURE__ */ n(Fe, { className: N === "large" ? "modal-panel modal-panel--large" : "modal-panel", children: [
1381
+ children: /* @__PURE__ */ n(Fe, { className: v === "large" ? "modal-panel modal-panel--large" : "modal-panel", children: [
1382
1382
  /* @__PURE__ */ n("div", { className: "modal-content-wrapper", children: [
1383
1383
  /* @__PURE__ */ e("div", { className: `modal-icon-container ${x.iconClass}`, children: /* @__PURE__ */ e(r, { size: 24, "aria-hidden": "true" }) }),
1384
1384
  /* @__PURE__ */ n("div", { className: "modal-text-content", children: [
@@ -1400,7 +1400,7 @@ const Nn = {
1400
1400
  se,
1401
1401
  {
1402
1402
  type: "button",
1403
- onClick: v,
1403
+ onClick: N,
1404
1404
  label: l,
1405
1405
  ...g
1406
1406
  }
@@ -1418,12 +1418,12 @@ const Nn = {
1418
1418
  onItemsPerPageChange: l,
1419
1419
  itemsPerPageOptions: h = [10, 15, 20]
1420
1420
  }) => {
1421
- const o = Math.ceil(a / s), [p, g] = M(t);
1421
+ const o = Math.ceil(a / s), [p, g] = P(t);
1422
1422
  K(() => {
1423
1423
  g(t);
1424
1424
  }, [t]);
1425
- const N = Math.min((t - 1) * s + 1, a), x = Math.min(t * s, a), r = (v) => {
1426
- v.preventDefault();
1425
+ const v = Math.min((t - 1) * s + 1, a), x = Math.min(t * s, a), r = (N) => {
1426
+ N.preventDefault();
1427
1427
  let m = parseInt(p, 10);
1428
1428
  isNaN(m) || m < 1 ? m = 1 : m > o && (m = o), g(m), m !== t && i(m);
1429
1429
  };
@@ -1436,12 +1436,12 @@ const Nn = {
1436
1436
  id: "items-per-page",
1437
1437
  className: "pagination-select",
1438
1438
  value: s,
1439
- onChange: (v) => l(Number(v.target.value)),
1440
- children: h.map((v) => /* @__PURE__ */ e("option", { value: v, children: v }, v))
1439
+ onChange: (N) => l(Number(N.target.value)),
1440
+ children: h.map((N) => /* @__PURE__ */ e("option", { value: N, children: N }, N))
1441
1441
  }
1442
1442
  ),
1443
1443
  /* @__PURE__ */ n("span", { className: "pagination-info", children: [
1444
- N,
1444
+ v,
1445
1445
  "-",
1446
1446
  x,
1447
1447
  " of ",
@@ -1476,7 +1476,7 @@ const Nn = {
1476
1476
  type: "number",
1477
1477
  className: "page-input",
1478
1478
  value: p,
1479
- onChange: (v) => g(v.target.value),
1479
+ onChange: (N) => g(N.target.value),
1480
1480
  onBlur: r,
1481
1481
  "aria-label": `Current page, Page ${t}`
1482
1482
  }
@@ -1552,7 +1552,7 @@ const Nn = {
1552
1552
  }
1553
1553
  ),
1554
1554
  l && /* @__PURE__ */ e("p", { className: "radiogroup-error-message", children: l })
1555
- ] }), be = ({
1555
+ ] }), fe = ({
1556
1556
  value: t = "",
1557
1557
  onDebouncedChange: a,
1558
1558
  debounceDelay: s = 400,
@@ -1563,12 +1563,12 @@ const Nn = {
1563
1563
  inputStyle: o = {},
1564
1564
  placeholderClass: p = "",
1565
1565
  searchIconSize: g = 16,
1566
- searchIconClass: N = "",
1566
+ searchIconClass: v = "",
1567
1567
  ...x
1568
1568
  }) => {
1569
- const [r, v] = M(t);
1569
+ const [r, N] = P(t);
1570
1570
  K(() => {
1571
- v(t);
1571
+ N(t);
1572
1572
  }, [t]);
1573
1573
  const m = H(
1574
1574
  qr((z) => {
@@ -1580,11 +1580,11 @@ const Nn = {
1580
1580
  m.cancel();
1581
1581
  }), [r, m, t]);
1582
1582
  const y = (z) => {
1583
- v(z.target.value);
1583
+ N(z.target.value);
1584
1584
  };
1585
1585
  return /* @__PURE__ */ n("div", { className: `search-bar-wrapper ${h}`, children: [
1586
1586
  l && /* @__PURE__ */ e("label", { htmlFor: "search-field", className: "sr-only", children: l }),
1587
- /* @__PURE__ */ e("div", { className: "search-bar-icon-wrapper", children: /* @__PURE__ */ e(ft, { size: g || 16, className: `search-bar-icon ${N}`, "aria-hidden": "true" }) }),
1587
+ /* @__PURE__ */ e("div", { className: "search-bar-icon-wrapper", children: /* @__PURE__ */ e(ft, { size: g || 16, className: `search-bar-icon ${v}`, "aria-hidden": "true" }) }),
1588
1588
  /* @__PURE__ */ e(
1589
1589
  "input",
1590
1590
  {
@@ -1614,11 +1614,11 @@ const Nn = {
1614
1614
  // From RHF's <Controller>
1615
1615
  showSearch: g = !0
1616
1616
  }) => {
1617
- const [N, x] = M("");
1617
+ const [v, x] = P("");
1618
1618
  console.log("Select component - value:", a, "type:", typeof a), console.log("Select component - options:", i);
1619
- const r = N === "" ? i : i.filter(
1620
- (m) => m.label.toLowerCase().includes(N.toLowerCase())
1621
- ), v = i.find((m) => {
1619
+ const r = v === "" ? i : i.filter(
1620
+ (m) => m.label.toLowerCase().includes(v.toLowerCase())
1621
+ ), N = i.find((m) => {
1622
1622
  if (typeof a == "object" && a !== null) {
1623
1623
  if (a === m) return !0;
1624
1624
  if (a.id && m.id) return m.id === a.id;
@@ -1637,31 +1637,31 @@ const Nn = {
1637
1637
  "select-button--error": !!o
1638
1638
  }),
1639
1639
  children: [
1640
- /* @__PURE__ */ e("span", { className: "select-value-display", children: v ? v.label : /* @__PURE__ */ e("span", { className: "placeholder", children: l }) }),
1640
+ /* @__PURE__ */ e("span", { className: "select-value-display", children: N ? N.label : /* @__PURE__ */ e("span", { className: "placeholder", children: l }) }),
1641
1641
  /* @__PURE__ */ e(Qt, { className: "select-chevron", "aria-hidden": "true" })
1642
1642
  ]
1643
1643
  }
1644
1644
  ),
1645
1645
  /* @__PURE__ */ e(
1646
- ge,
1646
+ be,
1647
1647
  {
1648
1648
  leave: "transition ease-in duration-100",
1649
1649
  leaveFrom: "opacity-100",
1650
1650
  leaveTo: "opacity-0",
1651
- children: /* @__PURE__ */ n(Pr, { className: "select-options", children: [
1651
+ children: /* @__PURE__ */ n(Mr, { className: "select-options", children: [
1652
1652
  g && /* @__PURE__ */ e("div", { className: "search-input-wrapper", children: /* @__PURE__ */ e(
1653
- be,
1653
+ fe,
1654
1654
  {
1655
1655
  onKeyDown: (m) => {
1656
1656
  m.stopPropagation();
1657
1657
  },
1658
- value: N,
1658
+ value: v,
1659
1659
  onDebouncedChange: x,
1660
1660
  placeholder: "Search..."
1661
1661
  }
1662
1662
  ) }),
1663
- /* @__PURE__ */ e("div", { className: "select-options-list", children: r.length === 0 && N !== "" ? /* @__PURE__ */ e("div", { className: "no-results", children: "No results found." }) : r.map((m) => /* @__PURE__ */ e(
1664
- Mr,
1663
+ /* @__PURE__ */ e("div", { className: "select-options-list", children: r.length === 0 && v !== "" ? /* @__PURE__ */ e("div", { className: "no-results", children: "No results found." }) : r.map((m) => /* @__PURE__ */ e(
1664
+ Pr,
1665
1665
  {
1666
1666
  className: ({ active: y }) => `select-option ${y ? "active" : ""}`,
1667
1667
  value: m,
@@ -1694,7 +1694,7 @@ const Nn = {
1694
1694
  o && /* @__PURE__ */ e("p", { className: "select-error-message", children: o })
1695
1695
  ] }) });
1696
1696
  }, Rn = () => {
1697
- const [t, a] = M(window.location.pathname);
1697
+ const [t, a] = P(window.location.pathname);
1698
1698
  return K(() => {
1699
1699
  const s = () => {
1700
1700
  a(window.location.pathname);
@@ -1709,18 +1709,18 @@ const Nn = {
1709
1709
  return s;
1710
1710
  return null;
1711
1711
  }, ia = ({ item: t, isCollapsed: a, level: s = 0 }) => {
1712
- const { pathname: i } = Rn(), l = t.href || t.url || t.path, [h, o] = M(!1), p = t.icon;
1712
+ const { pathname: i } = Rn(), l = t.href || t.url || t.path, [h, o] = P(!1), p = t.icon;
1713
1713
  K(() => {
1714
1714
  gt([t], i) && o(!0);
1715
1715
  }, [t, i]);
1716
- const g = i === l, N = !g && !!gt([t], i), x = (r) => {
1716
+ const g = i === l, v = !g && !!gt([t], i), x = (r) => {
1717
1717
  r.preventDefault(), o(!h);
1718
1718
  };
1719
1719
  return /* @__PURE__ */ n(
1720
1720
  "div",
1721
1721
  {
1722
1722
  className: Q("nav-item-container", {
1723
- "nav-item-container--parent-active": N,
1723
+ "nav-item-container--parent-active": v,
1724
1724
  [`nav-item-container--level-${s}`]: s > 0
1725
1725
  }),
1726
1726
  children: [
@@ -1899,16 +1899,16 @@ const Nn = {
1899
1899
  // ✅ New prop to control visibility
1900
1900
  ...p
1901
1901
  }) => {
1902
- const g = a || p.name, [N, x] = M(
1902
+ const g = a || p.name, [v, x] = P(
1903
1903
  p.value?.length || p.defaultValue?.length || 0
1904
1904
  ), r = (m) => {
1905
1905
  x(m.target.value.length), p.onChange && p.onChange(m);
1906
- }, v = h - N;
1906
+ }, N = h - v;
1907
1907
  return /* @__PURE__ */ n("div", { className: `textarea-wrapper ${i || ""}`, children: [
1908
1908
  /* @__PURE__ */ n("div", { className: "textarea-header", children: [
1909
1909
  t && /* @__PURE__ */ e("label", { htmlFor: g, className: "textarea-label", children: t }),
1910
1910
  o && h && /* @__PURE__ */ n("span", { className: "char-counter", children: [
1911
- v,
1911
+ N,
1912
1912
  " characters remaining"
1913
1913
  ] })
1914
1914
  ] }),
@@ -2005,15 +2005,15 @@ const Nn = {
2005
2005
  title: o,
2006
2006
  description: p,
2007
2007
  showProgress: g = !0,
2008
- closeOnOverlayClick: N = !0
2008
+ closeOnOverlayClick: v = !0
2009
2009
  }) => {
2010
- const x = s[i], r = Object.keys(s), v = r.indexOf(i), m = (v + 1) / r.length * 100, y = v > 0 && h.onBack;
2011
- return /* @__PURE__ */ e(ge, { show: t, as: Z, children: /* @__PURE__ */ n(
2010
+ const x = s[i], r = Object.keys(s), N = r.indexOf(i), m = (N + 1) / r.length * 100, y = N > 0 && h.onBack;
2011
+ return /* @__PURE__ */ e(be, { show: t, as: Z, children: /* @__PURE__ */ n(
2012
2012
  ye,
2013
2013
  {
2014
2014
  as: "div",
2015
2015
  className: "wizard-dialog",
2016
- onClose: N ? a : () => {
2016
+ onClose: v ? a : () => {
2017
2017
  },
2018
2018
  children: [
2019
2019
  /* @__PURE__ */ e(
@@ -2110,7 +2110,7 @@ const Nn = {
2110
2110
  small: "btn-sm",
2111
2111
  medium: "btn-md",
2112
2112
  large: "btn-lg"
2113
- }, Pn = {
2113
+ }, Mn = {
2114
2114
  primary: "btn-primary",
2115
2115
  secondary: "btn-secondary-icon"
2116
2116
  }, Ce = ({
@@ -2125,17 +2125,17 @@ const Nn = {
2125
2125
  // Renamed for clarity, expecting a component type e.g., CheckCircle
2126
2126
  disabled: p = !1,
2127
2127
  size: g = "small",
2128
- label: N,
2128
+ label: v,
2129
2129
  children: x,
2130
2130
  // ✅ Add children to the props list
2131
2131
  onClick: r,
2132
- ...v
2132
+ ...N
2133
2133
  }) => {
2134
2134
  const m = p, y = Q(
2135
2135
  "btn-base-icon",
2136
2136
  "btn-icon-only",
2137
2137
  On[g],
2138
- Pn[h],
2138
+ Mn[h],
2139
2139
  l
2140
2140
  );
2141
2141
  return /* @__PURE__ */ e(
@@ -2148,7 +2148,7 @@ const Nn = {
2148
2148
  onClick: r,
2149
2149
  title: i,
2150
2150
  "aria-label": i,
2151
- ...v,
2151
+ ...N,
2152
2152
  children: o && /* @__PURE__ */ e(o, { size: g === "large" ? 20 : 16 })
2153
2153
  }
2154
2154
  );
@@ -2199,7 +2199,7 @@ const Nn = {
2199
2199
  )
2200
2200
  ] }) })
2201
2201
  ] });
2202
- }, Mn = ({
2202
+ }, Pn = ({
2203
2203
  heading: t,
2204
2204
  subHeading: a,
2205
2205
  breadcrumbItems: s = [],
@@ -2234,7 +2234,7 @@ const Nn = {
2234
2234
  return /* @__PURE__ */ n(Br, { as: "div", className: "options-menu-wrapper", children: [
2235
2235
  /* @__PURE__ */ e(Vr, { ref: i.setReference, className: "options-menu-trigger", children: /* @__PURE__ */ e(s, { size: 20 }) }),
2236
2236
  /* @__PURE__ */ e(jr, { children: /* @__PURE__ */ e(
2237
- ge,
2237
+ be,
2238
2238
  {
2239
2239
  as: Z,
2240
2240
  enter: "transition ease-out duration-100",
@@ -2323,7 +2323,7 @@ function ma(t) {
2323
2323
  }
2324
2324
  };
2325
2325
  }
2326
- const jn = ma(localStorage), Ol = ma(sessionStorage), Pl = {
2326
+ const jn = ma(localStorage), Ol = ma(sessionStorage), Ml = {
2327
2327
  get(t) {
2328
2328
  const a = document.cookie.match(
2329
2329
  new RegExp("(^| )" + t + "=([^;]+)")
@@ -2389,7 +2389,7 @@ function Un() {
2389
2389
  function Gn() {
2390
2390
  return `${Nt()}/file/permissions`;
2391
2391
  }
2392
- function Ml() {
2392
+ function Pl() {
2393
2393
  return Object.freeze({
2394
2394
  REACT_APP_BASE_URL: vt(),
2395
2395
  GATEWAY_BASE: $e(),
@@ -2462,41 +2462,41 @@ function Wn({
2462
2462
  // timeout: 20000,
2463
2463
  });
2464
2464
  s.interceptors.response.use(
2465
- (N) => N?.data ?? {
2466
- message: N?.statusText || "Request succeeded"
2465
+ (v) => v?.data ?? {
2466
+ message: v?.statusText || "Request succeeded"
2467
2467
  },
2468
- (N) => {
2469
- const x = Yn(N), r = x.status;
2468
+ (v) => {
2469
+ const x = Yn(v), r = x.status;
2470
2470
  return t && (r === 401 || r === 403) && (window.location.href.includes("/login") || (window.historyPath = window.location.pathname, localStorage.clear(), sessionStorage.clear(), window.location.href = "/login")), Promise.reject(x);
2471
2471
  }
2472
2472
  );
2473
- function i({ open: N = !1, customHeader: x = {} } = {}) {
2474
- if (N) {
2475
- const { Authorization: r, ...v } = It();
2473
+ function i({ open: v = !1, customHeader: x = {} } = {}) {
2474
+ if (v) {
2475
+ const { Authorization: r, ...N } = It();
2476
2476
  return {
2477
- headers: { ...v, ...a, ...x }
2477
+ headers: { ...N, ...a, ...x }
2478
2478
  };
2479
2479
  }
2480
2480
  return { headers: { ...It(), ...x } };
2481
2481
  }
2482
- async function l(N, x, r = !1, v = {}) {
2483
- return s.get(N, {
2482
+ async function l(v, x, r = !1, N = {}) {
2483
+ return s.get(v, {
2484
2484
  params: x,
2485
- ...i({ open: r, customHeader: v })
2485
+ ...i({ open: r, customHeader: N })
2486
2486
  });
2487
2487
  }
2488
- async function h(N, x, r = !1, v = {}) {
2489
- const m = { ...i({ open: r, customHeader: v }) };
2490
- return x !== void 0 && (m.data = x), s.delete(N, m);
2488
+ async function h(v, x, r = !1, N = {}) {
2489
+ const m = { ...i({ open: r, customHeader: N }) };
2490
+ return x !== void 0 && (m.data = x), s.delete(v, m);
2491
2491
  }
2492
- async function o(N, x = {}, r = !1, v = {}) {
2493
- return s.post(N, x, i({ open: r, customHeader: v }));
2492
+ async function o(v, x = {}, r = !1, N = {}) {
2493
+ return s.post(v, x, i({ open: r, customHeader: N }));
2494
2494
  }
2495
- async function p(N, x = {}, r = !1, v = {}) {
2496
- return s.put(N, x, i({ open: r, customHeader: v }));
2495
+ async function p(v, x = {}, r = !1, N = {}) {
2496
+ return s.put(v, x, i({ open: r, customHeader: N }));
2497
2497
  }
2498
- async function g(N, x = {}, r = !1, v = {}) {
2499
- return s.patch(N, x, i({ open: r, customHeader: v }));
2498
+ async function g(v, x = {}, r = !1, N = {}) {
2499
+ return s.patch(v, x, i({ open: r, customHeader: N }));
2500
2500
  }
2501
2501
  return {
2502
2502
  instance: s,
@@ -2594,7 +2594,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2594
2594
  return Xn(i);
2595
2595
  }
2596
2596
  }, wt = (t, a) => {
2597
- const [s, i] = M(t);
2597
+ const [s, i] = P(t);
2598
2598
  return K(
2599
2599
  () => {
2600
2600
  const l = Hr(() => {
@@ -2630,15 +2630,15 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2630
2630
  className: "flex items-center justify-between p-3 border border-gray-300 rounded-lg hover:bg-gray-50 hover:cursor-pointer transition-colors duration-150",
2631
2631
  children: [
2632
2632
  /* @__PURE__ */ n("div", { className: "flex items-center gap-3 overflow-hidden", children: [
2633
- /* @__PURE__ */ e("div", { className: "flex items-center", children: l.map((N, x) => /* @__PURE__ */ e(
2633
+ /* @__PURE__ */ e("div", { className: "flex items-center", children: l.map((v, x) => /* @__PURE__ */ e(
2634
2634
  "img",
2635
2635
  {
2636
- src: N.avatarUrl || `https://avatar.vercel.sh/${N.name}.svg?text=${N?.name?.charAt(0) || "U"}`,
2637
- alt: N.name,
2636
+ src: v.avatarUrl || `https://avatar.vercel.sh/${v.name}.svg?text=${v?.name?.charAt(0) || "U"}`,
2637
+ alt: v.name,
2638
2638
  className: `w-10 h-10 rounded-full border-2 border-white ${x > 0 ? "-ml-4" : ""}`,
2639
2639
  style: { zIndex: x }
2640
2640
  },
2641
- N.id || x
2641
+ v.id || x
2642
2642
  )) }),
2643
2643
  /* @__PURE__ */ e("p", { className: "text-sm font-medium text-gray-800 truncate", children: g })
2644
2644
  ] }),
@@ -2646,11 +2646,11 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2646
2646
  ]
2647
2647
  }
2648
2648
  );
2649
- }, Pt = [
2649
+ }, Mt = [
2650
2650
  { id: 1, name: De.USER, icon: Ja, code: "users" },
2651
2651
  { id: 2, name: De.GROUP, icon: Zt, code: "groups" },
2652
2652
  { id: 3, name: De.ROLE, icon: Xa, code: "roles" }
2653
- ], Mt = [
2653
+ ], Pt = [
2654
2654
  { id: 1, name: $t.View, icon: Qa },
2655
2655
  { id: 2, name: $t.Manage, icon: Ha }
2656
2656
  ], Hn = Ya().shape({
@@ -2666,7 +2666,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2666
2666
  },
2667
2667
  isChanged: p = !1
2668
2668
  }) => {
2669
- const [g, N] = M(Pt[0]), [x, r] = M(""), v = wt(x, 400), [m, y] = M([]), [z, T] = M(/* @__PURE__ */ new Set()), [$, E] = M(!1), [L, V] = M(Mt[0]), {
2669
+ const [g, v] = P(Mt[0]), [x, r] = P(""), N = wt(x, 400), [m, y] = P([]), [z, T] = P(/* @__PURE__ */ new Set()), [$, E] = P(!1), [L, V] = P(Pt[0]), {
2670
2670
  control: U,
2671
2671
  handleSubmit: Y,
2672
2672
  watch: q,
@@ -2674,27 +2674,27 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2674
2674
  } = Za({
2675
2675
  defaultValues: { pendingInvites: [] },
2676
2676
  resolver: tr(Hn)
2677
- }), { fields: C, append: u, remove: S, update: P } = Ka({
2677
+ }), { fields: C, append: u, remove: S, update: M } = Ka({
2678
2678
  control: U,
2679
2679
  name: "pendingInvites"
2680
2680
  }), O = q("pendingInvites");
2681
2681
  K(() => {
2682
- v.length > 1 ? (E(!0), Jn(g.name, v).then((k) => {
2682
+ N.length > 1 ? (E(!0), Jn(g.name, N).then((k) => {
2683
2683
  y(k);
2684
2684
  }).catch((k) => console.error("Search failed:", k)).finally(() => E(!1))) : (y([]), T(/* @__PURE__ */ new Set()));
2685
- }, [v, g]);
2685
+ }, [N, g]);
2686
2686
  const b = (k) => {
2687
2687
  T((R) => {
2688
2688
  const j = new Set(R);
2689
2689
  return j.has(k) ? j.delete(k) : j.add(k), j;
2690
2690
  });
2691
- }, d = () => {
2691
+ }, c = () => {
2692
2692
  m.filter((k) => z.has(k.id)).forEach((k) => {
2693
2693
  C.find((R) => R.id === k.id) || u({ ...k, permission: L.name });
2694
2694
  }), T(/* @__PURE__ */ new Set()), r("");
2695
2695
  }, f = (k) => {
2696
2696
  V(k), C.forEach(
2697
- (R, j) => P(j, { ...C[j], permission: k.name })
2697
+ (R, j) => M(j, { ...C[j], permission: k.name })
2698
2698
  );
2699
2699
  }, w = async (k) => {
2700
2700
  try {
@@ -2784,7 +2784,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2784
2784
  }
2785
2785
  ),
2786
2786
  /* @__PURE__ */ n("div", { className: "relative grid grid-cols-3 gap-2 items-start", children: [
2787
- /* @__PURE__ */ e("div", { className: "col-span-1", children: /* @__PURE__ */ e(le, { value: g, onChange: N, children: /* @__PURE__ */ n("div", { className: "relative", children: [
2787
+ /* @__PURE__ */ e("div", { className: "col-span-1", children: /* @__PURE__ */ e(le, { value: g, onChange: v, children: /* @__PURE__ */ n("div", { className: "relative", children: [
2788
2788
  /* @__PURE__ */ n(le.Button, { className: "relative w-full border border-gray-300 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: [
2789
2789
  /* @__PURE__ */ n("span", { className: "flex items-center", children: [
2790
2790
  /* @__PURE__ */ e(g.icon, { className: "h-5 w-5 text-gray-400 mr-2" }),
@@ -2793,13 +2793,13 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2793
2793
  /* @__PURE__ */ e("span", { className: "absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none", children: /* @__PURE__ */ e(Ct, { className: "h-5 w-5 text-gray-400" }) })
2794
2794
  ] }),
2795
2795
  /* @__PURE__ */ e(
2796
- ge,
2796
+ be,
2797
2797
  {
2798
2798
  as: Z,
2799
2799
  leave: "transition ease-in duration-100",
2800
2800
  leaveFrom: "opacity-100",
2801
2801
  leaveTo: "opacity-0",
2802
- children: /* @__PURE__ */ e(le.Options, { className: "absolute z-10 mt-1 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: Pt.map((k) => /* @__PURE__ */ e(
2802
+ children: /* @__PURE__ */ e(le.Options, { className: "absolute z-10 mt-1 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(
2803
2803
  le.Option,
2804
2804
  {
2805
2805
  value: k,
@@ -2829,7 +2829,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2829
2829
  )
2830
2830
  ] }) }) }),
2831
2831
  /* @__PURE__ */ e("div", { className: "col-span-2", children: /* @__PURE__ */ e(
2832
- be,
2832
+ fe,
2833
2833
  {
2834
2834
  placeholder: `Search by ${g.name.toLowerCase()}...`,
2835
2835
  onDebouncedChange: (k) => r(k),
@@ -2890,7 +2890,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2890
2890
  /* @__PURE__ */ e(
2891
2891
  se,
2892
2892
  {
2893
- onClick: d,
2893
+ onClick: c,
2894
2894
  size: "small",
2895
2895
  label: "Add"
2896
2896
  }
@@ -2930,13 +2930,13 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2930
2930
  /* @__PURE__ */ e("span", { className: "absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none", children: /* @__PURE__ */ e(Ct, { className: "h-5 w-5 text-gray-400" }) })
2931
2931
  ] }),
2932
2932
  /* @__PURE__ */ e(
2933
- ge,
2933
+ be,
2934
2934
  {
2935
2935
  as: Z,
2936
2936
  leave: "transition ease-in duration-100",
2937
2937
  leaveFrom: "opacity-100",
2938
2938
  leaveTo: "opacity-0",
2939
- children: /* @__PURE__ */ e(le.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(
2939
+ children: /* @__PURE__ */ e(le.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: Pt.map((k) => /* @__PURE__ */ e(
2940
2940
  le.Option,
2941
2941
  {
2942
2942
  value: k,
@@ -3053,15 +3053,15 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3053
3053
  existingShares: l,
3054
3054
  allowedPermissions: h
3055
3055
  }) => {
3056
- const [o, p] = M(l), [g, N] = M(0), [x, r] = M(""), v = wt(x, 300), m = {
3056
+ const [o, p] = P(l), [g, v] = P(0), [x, r] = P(""), N = wt(x, 300), m = {
3057
3057
  users: o.users.filter(
3058
- ($) => $.name.toLowerCase().includes(v.toLowerCase())
3058
+ ($) => $.name.toLowerCase().includes(N.toLowerCase())
3059
3059
  ),
3060
3060
  groups: o.groups.filter(
3061
- ($) => $.name.toLowerCase().includes(v.toLowerCase())
3061
+ ($) => $.name.toLowerCase().includes(N.toLowerCase())
3062
3062
  ),
3063
3063
  roles: o.roles.filter(
3064
- ($) => $.name.toLowerCase().includes(v.toLowerCase())
3064
+ ($) => $.name.toLowerCase().includes(N.toLowerCase())
3065
3065
  )
3066
3066
  }, y = ($, E) => {
3067
3067
  console.log("[ManageFlow] Removing item:", { itemToRemove: $, listKey: E });
@@ -3069,7 +3069,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3069
3069
  ...o,
3070
3070
  [E]: o[E].filter((V) => V.id !== $.id)
3071
3071
  };
3072
- p(L), console.log("[ManageFlow] Syncing updated shares with parent:", L), a(L);
3072
+ p(L), console.log("[ManageFlow] Syncing updated shares with parent:", L), a(L, !0);
3073
3073
  }, z = ["users", "groups", "roles"], T = ["Users", "Groups", "Roles"];
3074
3074
  return (
3075
3075
  // The main structure remains the same...
@@ -3078,7 +3078,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3078
3078
  /* @__PURE__ */ n(
3079
3079
  "button",
3080
3080
  {
3081
- onClick: () => a(o),
3081
+ onClick: () => a(o, !1),
3082
3082
  className: "flex items-center gap-1 text-sm font-medium text-gray-600 hover:text-gray-900 hover:cursor-pointer p-2 rounded-md hover:bg-gray-100",
3083
3083
  children: [
3084
3084
  /* @__PURE__ */ e(Kt, { className: "h-5 w-5" }),
@@ -3096,7 +3096,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3096
3096
  }
3097
3097
  )
3098
3098
  ] }),
3099
- /* @__PURE__ */ e("div", { className: "flex flex-col flex-grow", children: /* @__PURE__ */ n(ne.Group, { selectedIndex: g, onChange: N, children: [
3099
+ /* @__PURE__ */ e("div", { className: "flex flex-col flex-grow", children: /* @__PURE__ */ n(ne.Group, { selectedIndex: g, onChange: v, children: [
3100
3100
  /* @__PURE__ */ n("div", { className: "p-4 bg-white border-b border-gray-300", children: [
3101
3101
  /* @__PURE__ */ e(ne.List, { className: "flex space-x-1 bg-gray-100 p-1 rounded-lg", children: T.map(($) => /* @__PURE__ */ e(
3102
3102
  ne,
@@ -3111,7 +3111,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3111
3111
  $
3112
3112
  )) }),
3113
3113
  /* @__PURE__ */ e("div", { className: "mt-4", children: /* @__PURE__ */ e(
3114
- be,
3114
+ fe,
3115
3115
  {
3116
3116
  onDebouncedChange: r,
3117
3117
  value: x,
@@ -3222,7 +3222,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3222
3222
  onClose: s,
3223
3223
  members: i
3224
3224
  }) => {
3225
- const [l, h] = M(!0), [o, p] = M(""), g = wt(o, 300), N = i.filter(
3225
+ const [l, h] = P(!0), [o, p] = P(""), g = wt(o, 300), v = i.filter(
3226
3226
  (m) => m.name.toLowerCase().includes(g.toLowerCase())
3227
3227
  ), x = {
3228
3228
  hidden: { opacity: 0 },
@@ -3236,10 +3236,10 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3236
3236
  hidden: { y: 20, opacity: 0 },
3237
3237
  visible: { y: 0, opacity: 1 },
3238
3238
  exit: { opacity: 0, x: -20 }
3239
- }, v = () => l ? (
3239
+ }, N = () => l ? (
3240
3240
  // Show 5 skeleton items while loading
3241
3241
  /* @__PURE__ */ e("div", { children: Array.from({ length: 5 }).map((m, y) => /* @__PURE__ */ e(es, {}, y)) })
3242
- ) : N.length === 0 ? /* @__PURE__ */ n(
3242
+ ) : v.length === 0 ? /* @__PURE__ */ n(
3243
3243
  ie.div,
3244
3244
  {
3245
3245
  initial: { opacity: 0, scale: 0.95 },
@@ -3258,7 +3258,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3258
3258
  initial: "hidden",
3259
3259
  animate: "visible",
3260
3260
  className: "divide-y divide-gray-200",
3261
- children: /* @__PURE__ */ e(Se, { children: N.map((m) => /* @__PURE__ */ n(
3261
+ children: /* @__PURE__ */ e(Se, { children: v.map((m) => /* @__PURE__ */ n(
3262
3262
  ie.li,
3263
3263
  {
3264
3264
  layout: !0,
@@ -3313,16 +3313,16 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3313
3313
  )
3314
3314
  ] }),
3315
3315
  /* @__PURE__ */ e("div", { className: "p-4 border-b border-gray-200 flex-shrink-0", children: /* @__PURE__ */ e(
3316
- be,
3316
+ fe,
3317
3317
  {
3318
3318
  onDebouncedChange: p,
3319
3319
  value: o,
3320
3320
  placeholder: "Search members..."
3321
3321
  }
3322
3322
  ) }),
3323
- /* @__PURE__ */ e("div", { className: "flex-grow overflow-y-auto", children: v() })
3323
+ /* @__PURE__ */ e("div", { className: "flex-grow overflow-y-auto", children: N() })
3324
3324
  ] });
3325
- }, fe = {
3325
+ }, ge = {
3326
3326
  INVITE: "invite",
3327
3327
  MANAGE: "manage",
3328
3328
  MEMBERS: "members"
@@ -3343,32 +3343,32 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3343
3343
  allowedPermissions: p = [],
3344
3344
  ...g
3345
3345
  }) => {
3346
- const [N, x] = M(fe.INVITE), [r, v] = M(t), [m, y] = M(null), [z, T] = M(!1), [$, E] = M([]), [L, V] = M(fe.MANAGE), U = () => {
3347
- x(fe.INVITE), y(null), h();
3346
+ const [v, x] = P(ge.INVITE), [r, N] = P(t), [m, y] = P(null), [z, T] = P(!1), [$, E] = P([]), [L, V] = P(ge.MANAGE), U = () => {
3347
+ x(ge.INVITE), y(null), h();
3348
3348
  }, Y = () => {
3349
- x(fe.MANAGE);
3349
+ x(ge.MANAGE);
3350
3350
  }, q = async ({ id: C, name: u, type: S }) => {
3351
3351
  if (S === "groups") {
3352
3352
  try {
3353
- const P = await Ze(`${Xe.getMembersForGroup(u)}`);
3354
- } catch (P) {
3355
- console.log("Error searching entities:", P);
3353
+ const M = await Ze(`${Xe.getMembersForGroup(u)}`);
3354
+ } catch (M) {
3355
+ console.log("Error searching entities:", M);
3356
3356
  }
3357
3357
  E(resp);
3358
3358
  }
3359
- y({ id: C, type: S, name: u }), V(N), x(fe.MEMBERS);
3360
- }, A = (C) => {
3361
- console.log("changedExistingShares", C), v(C);
3362
- const u = it.mapValues(t, (O) => O.map((b) => ({ id: b.id, permission: b.permission })).sort((b, d) => b.id - d.id)), S = it.mapValues(C, (O) => O.map((b) => ({ id: b.id, permission: b.permission })).sort((b, d) => b.id - d.id));
3363
- console.log("Existing data:", u), console.log("Changed data:", S);
3364
- const P = !it.isEqual(u, S);
3365
- console.log("hasPermissionChanged:", P), T(P), P && (console.log("[AddUserGroupsRolesModal] Immediately syncing changes with parent"), s({ pendingInvites: [] }, C)), x(N === fe.MEMBERS ? L : fe.INVITE);
3359
+ y({ id: C, type: S, name: u }), V(v), x(ge.MEMBERS);
3360
+ }, A = (C, u = !1) => {
3361
+ console.log("changedExistingShares", C), N(C);
3362
+ const S = it.mapValues(t, (b) => b.map((c) => ({ id: c.id, permission: c.permission })).sort((c, f) => c.id - f.id)), M = it.mapValues(C, (b) => b.map((c) => ({ id: c.id, permission: c.permission })).sort((c, f) => c.id - f.id));
3363
+ console.log("Existing data:", S), console.log("Changed data:", M);
3364
+ const O = !it.isEqual(S, M);
3365
+ console.log("hasPermissionChanged:", O), T(O), O && (console.log("[AddUserGroupsRolesModal] Immediately syncing changes with parent"), s({ pendingInvites: [] }, C)), u && v === ge.MANAGE ? console.log("[AddUserGroupsRolesModal] Staying in ManageFlow after removal") : x(v === ge.MEMBERS ? L : ge.INVITE);
3366
3366
  };
3367
- return /* @__PURE__ */ e(ge, { appear: !0, show: a, as: Z, children: /* @__PURE__ */ n(ye, { as: "div", className: "relative z-50", onClose: U, children: [
3367
+ return /* @__PURE__ */ e(be, { appear: !0, show: a, as: Z, children: /* @__PURE__ */ n(ye, { as: "div", className: "relative z-50", onClose: U, children: [
3368
3368
  /* @__PURE__ */ e("div", { className: "filter-modal-overlay", "aria-hidden": "true" }),
3369
3369
  /* @__PURE__ */ e("div", { className: "filter-modal-container", children: /* @__PURE__ */ e("div", { className: "filter-modal-positioner", children: /* @__PURE__ */ e(Fe, { className: "filter-modal-panel", style: { background: "white" }, children: (() => {
3370
- switch (N) {
3371
- case fe.MANAGE:
3370
+ switch (v) {
3371
+ case ge.MANAGE:
3372
3372
  return /* @__PURE__ */ e(
3373
3373
  ie.div,
3374
3374
  {
@@ -3392,7 +3392,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3392
3392
  },
3393
3393
  "manage"
3394
3394
  );
3395
- case fe.MEMBERS:
3395
+ case ge.MEMBERS:
3396
3396
  return /* @__PURE__ */ e(
3397
3397
  ie.div,
3398
3398
  {
@@ -3462,17 +3462,17 @@ function at({
3462
3462
  displayLimit: p = 3,
3463
3463
  selectionLimit: g = -1,
3464
3464
  // NEW: search behavior
3465
- searchMode: N = "client",
3465
+ searchMode: v = "client",
3466
3466
  // "client" | "server"
3467
3467
  onSearch: x,
3468
3468
  // (query: string) => void (required if searchMode==="server")
3469
3469
  serverLoading: r = !1,
3470
- minSearchChars: v = 2,
3470
+ minSearchChars: N = 2,
3471
3471
  // NEW: mappers (id/label keys)
3472
3472
  getOptionId: m = (z) => String(z.id),
3473
3473
  getOptionLabel: y = (z) => z.name
3474
3474
  }) {
3475
- const z = He(), T = He(), [$, E] = M(""), L = he(""), V = ee(() => {
3475
+ const z = He(), T = He(), [$, E] = P(""), L = he(""), V = ee(() => {
3476
3476
  const C = /* @__PURE__ */ new Map();
3477
3477
  for (const u of a) C.set(m(u), u);
3478
3478
  return C;
@@ -3482,9 +3482,9 @@ function at({
3482
3482
  return a.filter((u) => y(u).toLowerCase().includes(C));
3483
3483
  }, [a, $, y]);
3484
3484
  K(() => {
3485
- N === "server" && $.length >= v && $ !== L.current && (L.current = $, x && x($));
3486
- }, [$, N, v, x]);
3487
- const q = N === "client" ? Y : a, A = () => {
3485
+ v === "server" && $.length >= N && $ !== L.current && (L.current = $, x && x($));
3486
+ }, [$, v, N, x]);
3487
+ const q = v === "client" ? Y : a, A = () => {
3488
3488
  if (!U.length)
3489
3489
  return /* @__PURE__ */ e("span", { className: "text-gray-500", children: h });
3490
3490
  const C = U.slice(0, p), u = U.length - p;
@@ -3535,7 +3535,7 @@ function at({
3535
3535
  }
3536
3536
  ),
3537
3537
  /* @__PURE__ */ e(
3538
- ge,
3538
+ be,
3539
3539
  {
3540
3540
  as: Z,
3541
3541
  show: C,
@@ -3544,37 +3544,37 @@ function at({
3544
3544
  leaveTo: "opacity-0",
3545
3545
  children: /* @__PURE__ */ n(le.Options, { className: "absolute z-10 w-full py-1 mt-1 overflow-auto text-base bg-white rounded-md shadow-lg max-h-60 ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm", children: [
3546
3546
  /* @__PURE__ */ e("div", { className: "p-2 sticky top-0 bg-white z-20 shadow-sm", children: /* @__PURE__ */ e(
3547
- be,
3547
+ fe,
3548
3548
  {
3549
3549
  value: $,
3550
3550
  onDebouncedChange: E,
3551
- placeholder: N === "server" ? `Search (min ${v})…` : "Search options…"
3551
+ placeholder: v === "server" ? `Search (min ${N})…` : "Search options…"
3552
3552
  }
3553
3553
  ) }),
3554
- N === "server" && r && /* @__PURE__ */ e("div", { className: "py-2 px-3 text-gray-500", children: "Loading…" }),
3555
- q.length === 0 && !r ? /* @__PURE__ */ e("div", { className: "py-2 px-3 text-gray-500", children: N === "server" ? $.length < v ? `Type at least ${v} characters to search.` : "No results." : "No options found." }) : q.map((u) => {
3556
- const S = m(u), P = y(u), O = U.some((d) => m(d) === S), b = g !== -1 && U.length >= g && !O;
3554
+ v === "server" && r && /* @__PURE__ */ e("div", { className: "py-2 px-3 text-gray-500", children: "Loading…" }),
3555
+ q.length === 0 && !r ? /* @__PURE__ */ e("div", { className: "py-2 px-3 text-gray-500", children: v === "server" ? $.length < N ? `Type at least ${N} characters to search.` : "No results." : "No options found." }) : q.map((u) => {
3556
+ const S = m(u), M = y(u), O = U.some((c) => m(c) === S), b = g !== -1 && U.length >= g && !O;
3557
3557
  return /* @__PURE__ */ e(
3558
3558
  le.Option,
3559
3559
  {
3560
3560
  value: u,
3561
3561
  disabled: b,
3562
- className: ({ active: d }) => qe(
3563
- b ? " text-gray-400 bg-white cursor-not-allowed" : d ? " bg-gray-200 text-gray-900" : " text-gray-900",
3562
+ className: ({ active: c }) => qe(
3563
+ b ? " text-gray-400 bg-white cursor-not-allowed" : c ? " bg-gray-200 text-gray-900" : " text-gray-900",
3564
3564
  " relative cursor-default select-none py-2 pl-3 pr-9"
3565
3565
  ),
3566
- children: ({ selected: d, active: f }) => /* @__PURE__ */ n(te, { children: [
3566
+ children: ({ selected: c, active: f }) => /* @__PURE__ */ n(te, { children: [
3567
3567
  /* @__PURE__ */ e(
3568
3568
  "span",
3569
3569
  {
3570
3570
  className: qe(
3571
- d ? "font-semibold" : "font-normal",
3571
+ c ? "font-semibold" : "font-normal",
3572
3572
  "block truncate"
3573
3573
  ),
3574
- children: P
3574
+ children: M
3575
3575
  }
3576
3576
  ),
3577
- d && /* @__PURE__ */ e(
3577
+ c && /* @__PURE__ */ e(
3578
3578
  "span",
3579
3579
  {
3580
3580
  className: qe(
@@ -3597,28 +3597,28 @@ function at({
3597
3597
  ] }) });
3598
3598
  }
3599
3599
  at.propTypes = {
3600
- label: c.string.isRequired,
3601
- options: c.arrayOf(
3602
- c.shape({
3603
- id: c.oneOfType([c.string, c.number]),
3604
- name: c.string
3600
+ label: d.string.isRequired,
3601
+ options: d.arrayOf(
3602
+ d.shape({
3603
+ id: d.oneOfType([d.string, d.number]),
3604
+ name: d.string
3605
3605
  })
3606
3606
  ),
3607
- selected: c.array,
3608
- onChange: c.func,
3609
- onBlur: c.func,
3610
- placeholder: c.string,
3611
- error: c.string,
3612
- displayLimit: c.number,
3613
- selectionLimit: c.number,
3607
+ selected: d.array,
3608
+ onChange: d.func,
3609
+ onBlur: d.func,
3610
+ placeholder: d.string,
3611
+ error: d.string,
3612
+ displayLimit: d.number,
3613
+ selectionLimit: d.number,
3614
3614
  // NEW
3615
- searchMode: c.oneOf(["client", "server"]),
3616
- onSearch: c.func,
3615
+ searchMode: d.oneOf(["client", "server"]),
3616
+ onSearch: d.func,
3617
3617
  // required when searchMode="server"
3618
- serverLoading: c.bool,
3619
- minSearchChars: c.number,
3620
- getOptionId: c.func,
3621
- getOptionLabel: c.func
3618
+ serverLoading: d.bool,
3619
+ minSearchChars: d.number,
3620
+ getOptionId: d.func,
3621
+ getOptionLabel: d.func
3622
3622
  };
3623
3623
  at.defaultProps = {
3624
3624
  options: [],
@@ -3650,7 +3650,7 @@ const _l = ({
3650
3650
  }) => {
3651
3651
  const g = (x) => {
3652
3652
  x.target === x.currentTarget && a(!1);
3653
- }, N = (x) => {
3653
+ }, v = (x) => {
3654
3654
  x.stopPropagation();
3655
3655
  };
3656
3656
  return /* @__PURE__ */ n(
@@ -3671,7 +3671,7 @@ const _l = ({
3671
3671
  Fe,
3672
3672
  {
3673
3673
  className: `${p} relative bg-white align-middle w-full lg:w-[36rem] mx-5 lg:mx-0 transform overflow-hidden rounded-2xl text-left shadow-xl lg:min-w-[36rem] md:min-w-96 transition-all`,
3674
- onClick: N,
3674
+ onClick: v,
3675
3675
  children: [
3676
3676
  /* @__PURE__ */ n("div", { className: "flex justify-between items-center border-b border-gray-200 p-6 flex-shrink-0", children: [
3677
3677
  i?.customHeader && i.customHeader,
@@ -3682,7 +3682,7 @@ const _l = ({
3682
3682
  "div",
3683
3683
  {
3684
3684
  className: "px-5 mb-5",
3685
- onClick: N,
3685
+ onClick: v,
3686
3686
  children: s
3687
3687
  }
3688
3688
  ),
@@ -3746,11 +3746,11 @@ function ns({
3746
3746
  onDelete: p,
3747
3747
  renderActions: g,
3748
3748
  // optional override
3749
- dragId: N,
3749
+ dragId: v,
3750
3750
  dropId: x,
3751
3751
  indent: r = 24
3752
3752
  }) {
3753
- const { setNodeRef: v, isOver: m } = rr({ id: x }), { attributes: y, listeners: z, setNodeRef: T, transform: $, isDragging: E } = nr({ id: N }), L = $ ? { transform: `translate3d(${Math.round($.x)}px, ${Math.round($.y)}px, 0)` } : void 0, [V, U] = M(!1), [Y, q] = M(t.name), A = () => {
3753
+ const { setNodeRef: N, isOver: m } = rr({ id: x }), { attributes: y, listeners: z, setNodeRef: T, transform: $, isDragging: E } = nr({ id: v }), L = $ ? { transform: `translate3d(${Math.round($.x)}px, ${Math.round($.y)}px, 0)` } : void 0, [V, U] = P(!1), [Y, q] = P(t.name), A = () => {
3754
3754
  const C = Y.trim();
3755
3755
  U(!1), C && C !== t.name ? o?.(t, C) : q(t.name);
3756
3756
  }, _ = ee(() => /* @__PURE__ */ e(
@@ -3769,7 +3769,7 @@ function ns({
3769
3769
  return /* @__PURE__ */ n(
3770
3770
  "div",
3771
3771
  {
3772
- ref: v,
3772
+ ref: N,
3773
3773
  className: `tv-row ${m ? "tv-drop-over" : ""} ${E ? "dragging" : ""}`,
3774
3774
  style: { ...L, paddingLeft: 8 + a * r },
3775
3775
  onClick: (C) => {
@@ -3823,18 +3823,18 @@ function cs(t, { rootId: a, getId: s, getParent: i, getName: l }) {
3823
3823
  function ds(t, { rootId: a, getId: s, getName: i }) {
3824
3824
  const l = /* @__PURE__ */ new Map();
3825
3825
  function h(p, g) {
3826
- const N = s(p), x = {
3826
+ const v = s(p), x = {
3827
3827
  ...p,
3828
- id: N,
3828
+ id: v,
3829
3829
  name: i(p),
3830
3830
  parentId: g || a,
3831
- children: (p.children || []).map((r) => h(r, N))
3831
+ children: (p.children || []).map((r) => h(r, v))
3832
3832
  };
3833
- return l.set(N, x), x;
3833
+ return l.set(v, x), x;
3834
3834
  }
3835
3835
  return { roots: t.map((p) => h(p, null)), byId: l };
3836
3836
  }
3837
- const Me = (t) => t.map((a) => ({ ...a, children: Me(a.children || []) }));
3837
+ const Pe = (t) => t.map((a) => ({ ...a, children: Pe(a.children || []) }));
3838
3838
  function ms(t, a) {
3839
3839
  let s = null;
3840
3840
  function i(h) {
@@ -3884,10 +3884,10 @@ function Ul({
3884
3884
  onSelect: o,
3885
3885
  onCreateRoot: p,
3886
3886
  onCreateChild: g,
3887
- onRename: N,
3887
+ onRename: v,
3888
3888
  onDelete: x,
3889
3889
  onMove: r,
3890
- renderActions: v,
3890
+ renderActions: N,
3891
3891
  disableMoveToRoot: m = !1,
3892
3892
  // ← allow root moves by default now
3893
3893
  indentUnit: y = 24
@@ -3895,32 +3895,32 @@ function Ul({
3895
3895
  const { roots: z } = ee(() => os(t) ? ds(t, { rootId: a, getId: i, getName: h }) : cs(
3896
3896
  t.map((b) => ({ ...b })),
3897
3897
  { rootId: a, getId: i, getParent: l, getName: h }
3898
- ), [t, a, i, l, h]), [T, $] = M({}), E = H((b) => {
3899
- const d = {};
3898
+ ), [t, a, i, l, h]), [T, $] = P({}), E = H((b) => {
3899
+ const c = {};
3900
3900
  return (function f(w) {
3901
3901
  w.forEach((D) => {
3902
- d[D.id] = !0, D.children?.length && f(D.children);
3902
+ c[D.id] = !0, D.children?.length && f(D.children);
3903
3903
  });
3904
- })(b), d;
3904
+ })(b), c;
3905
3905
  }, []);
3906
3906
  ae.useEffect(() => {
3907
3907
  $(E(z));
3908
3908
  }, [z, E]);
3909
3909
  const L = H(
3910
- (b) => $((d) => ({ ...d, [b]: !d[b] })),
3910
+ (b) => $((c) => ({ ...c, [b]: !c[b] })),
3911
3911
  []
3912
- ), [V, U] = M(() => Me(z));
3913
- ae.useEffect(() => U(Me(z)), [z]);
3912
+ ), [V, U] = P(() => Pe(z));
3913
+ ae.useEffect(() => U(Pe(z)), [z]);
3914
3914
  const Y = sr(
3915
3915
  lr(dr, { activationConstraint: { delay: 250, tolerance: 5 } })
3916
- ), q = he(null), [A, _] = M(null), C = he(0), u = () => {
3916
+ ), q = he(null), [A, _] = P(null), C = he(0), u = () => {
3917
3917
  }, S = ({ delta: b }) => {
3918
3918
  C.current = b?.x ?? 0;
3919
- }, P = H(
3920
- ({ active: b, over: d }) => {
3919
+ }, M = H(
3920
+ ({ active: b, over: c }) => {
3921
3921
  const f = C.current;
3922
- if (C.current = 0, _(null), !b || !d) return;
3923
- const w = String(b.id).replace(/^drag-/, ""), D = String(d.id).replace(/^drop-/, "");
3922
+ if (C.current = 0, _(null), !b || !c) return;
3923
+ const w = String(b.id).replace(/^drag-/, ""), D = String(c.id).replace(/^drop-/, "");
3924
3924
  if (!w || !D || w === D) return;
3925
3925
  let I = D;
3926
3926
  const k = Math.max(0, Math.floor(-f / y));
@@ -3937,50 +3937,50 @@ function Ul({
3937
3937
  }
3938
3938
  }
3939
3939
  if (m && I === a) {
3940
- U(Me(z));
3940
+ U(Pe(z));
3941
3941
  return;
3942
3942
  }
3943
- const R = Me(V), { newRoots: j, removed: F } = ms(R, w);
3943
+ const R = Pe(V), { newRoots: j, removed: F } = ms(R, w);
3944
3944
  if (!F) return;
3945
3945
  const G = us(j, I, F);
3946
3946
  U(G), r?.({ sourceId: w, destParentId: I, newTree: G });
3947
3947
  },
3948
3948
  [V, z, a, m, y, r]
3949
3949
  ), O = H(
3950
- (b, d = 0) => b.map((f) => /* @__PURE__ */ n(ae.Fragment, { children: [
3950
+ (b, c = 0) => b.map((f) => /* @__PURE__ */ n(ae.Fragment, { children: [
3951
3951
  /* @__PURE__ */ e(
3952
3952
  ns,
3953
3953
  {
3954
3954
  node: f,
3955
- depth: d,
3955
+ depth: c,
3956
3956
  expanded: !!T[f.id],
3957
3957
  onToggle: () => L(f.id),
3958
3958
  onSelect: o,
3959
3959
  onCreateChild: g,
3960
- onRename: N,
3960
+ onRename: v,
3961
3961
  onDelete: x,
3962
- renderActions: v,
3962
+ renderActions: N,
3963
3963
  dragId: `drag-${f.id}`,
3964
3964
  dropId: `drop-${f.id}`,
3965
3965
  indent: y
3966
3966
  }
3967
3967
  ),
3968
- T[f.id] && f.children?.length > 0 ? O(f.children, d + 1) : null
3968
+ T[f.id] && f.children?.length > 0 ? O(f.children, c + 1) : null
3969
3969
  ] }, f.id)),
3970
- [T, y, g, x, N, o, v, L]
3970
+ [T, y, g, x, v, o, N, L]
3971
3971
  );
3972
3972
  return ae.useMemo(() => {
3973
3973
  if (!A) return null;
3974
3974
  const b = String(A).replace(/^drag-/, "");
3975
- function d(f) {
3975
+ function c(f) {
3976
3976
  for (const w of f) {
3977
3977
  if (w.id === b) return w;
3978
- const D = w.children?.length ? d(w.children) : null;
3978
+ const D = w.children?.length ? c(w.children) : null;
3979
3979
  if (D) return D;
3980
3980
  }
3981
3981
  return null;
3982
3982
  }
3983
- return d(V);
3983
+ return c(V);
3984
3984
  }, [A, V]), /* @__PURE__ */ n("div", { className: "tv", children: [
3985
3985
  s !== !1 && /* @__PURE__ */ n("div", { className: "tv-header", children: [
3986
3986
  /* @__PURE__ */ e("div", { className: "tv-title", children: s }),
@@ -3998,7 +3998,7 @@ function Ul({
3998
3998
  sensors: Y,
3999
3999
  onDragStart: u,
4000
4000
  onDragMove: S,
4001
- onDragEnd: P,
4001
+ onDragEnd: M,
4002
4002
  modifiers: [or],
4003
4003
  children: /* @__PURE__ */ e("div", { ref: q, className: "tv-list", children: O(V, 0) })
4004
4004
  }
@@ -4019,28 +4019,28 @@ const Gl = ({
4019
4019
  ...p
4020
4020
  // Pass remaining props to Tab.Group
4021
4021
  }) => {
4022
- const g = s === "vertical", N = (v) => ze(
4022
+ const g = s === "vertical", v = (N) => ze(
4023
4023
  "py-2 -mb-px text-sm font-medium focus:outline-none border-b-2",
4024
- v ? "border-primaryX text-textX" : "border-transparent text-slate-600 hover:text-indigo-700"
4025
- ), x = (v) => ze(
4024
+ N ? "border-primaryX text-textX" : "border-transparent text-slate-600 hover:text-indigo-700"
4025
+ ), x = (N) => ze(
4026
4026
  "text-left text-sm rounded-md px-2 py-1.5 focus:outline-none",
4027
- v ? "bg-primaryX text-white" : "text-textX hover:bg-lightgray-100 hover:text-primaryX"
4028
- ), r = ({ selected: v }) => o ? typeof o == "function" ? o(v) : o : g ? x(v) : N(v);
4027
+ N ? "bg-primaryX text-white" : "text-textX hover:bg-lightgray-100 hover:text-primaryX"
4028
+ ), r = ({ selected: N }) => o ? typeof o == "function" ? o(N) : o : g ? x(N) : v(N);
4029
4029
  return /* @__PURE__ */ e(ne.Group, { vertical: g, ...p, children: g ? /* @__PURE__ */ n("div", { className: ze("flex gap-4", i), children: [
4030
- /* @__PURE__ */ e(ne.List, { className: ze("w-[150px] flex flex-col gap-1 border-r border-gray-300 pr-2", l), children: t.map((v) => /* @__PURE__ */ e(ne, { className: r, children: v.label }, v.key)) }),
4031
- /* @__PURE__ */ e(ne.Panels, { unmount: !a, className: ze("flex-1", h), children: t.map((v) => /* @__PURE__ */ e(ne.Panel, { className: "focus:outline-none", children: /* @__PURE__ */ e("div", { className: "[overflow-anchor:none]", children: v.content }) }, v.key)) })
4030
+ /* @__PURE__ */ e(ne.List, { className: ze("w-[150px] flex flex-col gap-1 border-r border-gray-300 pr-2", l), children: t.map((N) => /* @__PURE__ */ e(ne, { className: r, children: N.label }, N.key)) }),
4031
+ /* @__PURE__ */ e(ne.Panels, { unmount: !a, className: ze("flex-1", h), children: t.map((N) => /* @__PURE__ */ e(ne.Panel, { className: "focus:outline-none", children: /* @__PURE__ */ e("div", { className: "[overflow-anchor:none]", children: N.content }) }, N.key)) })
4032
4032
  ] }) : (
4033
4033
  // mostly this part is used : horizontal
4034
4034
  /* @__PURE__ */ n(te, { children: [
4035
- /* @__PURE__ */ e(ne.List, { className: ze("flex gap-6 border rounded-t-2xl px-1.5 border-gray-300 mb-3 ", l), children: t.map((v) => /* @__PURE__ */ e(ne, { className: r, children: v.label }, v.key)) }),
4036
- /* @__PURE__ */ e(ne.Panels, { unmount: !a, className: ze("mt-2", h), children: t.map((v) => /* @__PURE__ */ e(ne.Panel, { className: "focus:outline-none", children: /* @__PURE__ */ e("div", { className: "[overflow-anchor:none]", children: v.content }) }, v.key)) })
4035
+ /* @__PURE__ */ e(ne.List, { className: ze("flex gap-6 border rounded-t-2xl px-1.5 border-gray-300 mb-3 ", l), children: t.map((N) => /* @__PURE__ */ e(ne, { className: r, children: N.label }, N.key)) }),
4036
+ /* @__PURE__ */ e(ne.Panels, { unmount: !a, className: ze("mt-2", h), children: t.map((N) => /* @__PURE__ */ e(ne.Panel, { className: "focus:outline-none", children: /* @__PURE__ */ e("div", { className: "[overflow-anchor:none]", children: N.content }) }, N.key)) })
4037
4037
  ] })
4038
4038
  ) });
4039
4039
  };
4040
4040
  function ql(t, a = "YYYY-MM-DD HH:mm:ss") {
4041
4041
  return t ? (t.endsWith("Z") || /[+\-]\d{2}:?\d{2}$/.test(t) ? St.parseZone(t) : St.utc(t)).local().format(a) : null;
4042
4042
  }
4043
- c.string;
4043
+ d.string;
4044
4044
  function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4045
4045
  console.log(t);
4046
4046
  const [l, h] = ae.useState(t), [o, p] = ae.useState(() => {
@@ -4054,13 +4054,13 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4054
4054
  console.log("Updated Section data for", t.key, r), p(r);
4055
4055
  }
4056
4056
  }, [a, t.key]), console.log("Section data", o);
4057
- const N = he(o);
4057
+ const v = he(o);
4058
4058
  K(() => {
4059
- N.current !== o && s && typeof s == "function" && (N.current = o, s(l.key, o));
4059
+ v.current !== o && s && typeof s == "function" && (v.current = o, s(l.key, o));
4060
4060
  }, [l.key, o, s]);
4061
4061
  const x = (r) => {
4062
4062
  if (!r.dependsOn) return !0;
4063
- const { field: v, value: m, operator: y = "equals" } = r.dependsOn, z = o[v];
4063
+ const { field: N, value: m, operator: y = "equals" } = r.dependsOn, z = o[N];
4064
4064
  switch (y) {
4065
4065
  case "equals":
4066
4066
  return z === m;
@@ -4096,7 +4096,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4096
4096
  ),
4097
4097
  /* @__PURE__ */ e("p", { style: { fontSize: "14px", marginBottom: "10px" }, children: l.description }),
4098
4098
  l.layout === "inline-checkboxes" ? /* @__PURE__ */ n("div", { style: { marginBottom: "20px" }, children: [
4099
- /* @__PURE__ */ e("div", { style: { display: "flex", flexWrap: "wrap", gap: "20px", alignItems: "center" }, children: l.fields.map((r, v) => x(r) && r.fieldtype === "checkbox" && /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center" }, children: [
4099
+ /* @__PURE__ */ e("div", { style: { display: "flex", flexWrap: "wrap", gap: "20px", alignItems: "center" }, children: l.fields.map((r, N) => x(r) && r.fieldtype === "checkbox" && /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center" }, children: [
4100
4100
  /* @__PURE__ */ e(
4101
4101
  mt,
4102
4102
  {
@@ -4122,17 +4122,17 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4122
4122
  children: "ℹ️"
4123
4123
  }
4124
4124
  )
4125
- ] }, v)) }),
4125
+ ] }, N)) }),
4126
4126
  l.fields.some(
4127
4127
  (r) => r.fieldtype === "checkbox" && i[l.key]?.[r.key]
4128
4128
  ) && /* @__PURE__ */ e("div", { style: { marginTop: "10px" }, children: l.fields.map(
4129
- (r, v) => r.fieldtype === "checkbox" && i[l.key]?.[r.key] && /* @__PURE__ */ n("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: [
4129
+ (r, N) => r.fieldtype === "checkbox" && i[l.key]?.[r.key] && /* @__PURE__ */ n("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: [
4130
4130
  r.label,
4131
4131
  ": ",
4132
4132
  i[l.key][r.key]
4133
- ] }, v)
4133
+ ] }, N)
4134
4134
  ) })
4135
- ] }) : /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: l.fields.map((r, v) => x(r) && /* @__PURE__ */ n("div", { className: r.fullWidth ? "col-span-full" : "", style: { marginBottom: "10px" }, children: [
4135
+ ] }) : /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: l.fields.map((r, N) => x(r) && /* @__PURE__ */ n("div", { className: r.fullWidth ? "col-span-full" : "", style: { marginBottom: "10px" }, children: [
4136
4136
  r.fieldtype !== "checkbox" && /* @__PURE__ */ n(
4137
4137
  "label",
4138
4138
  {
@@ -4429,7 +4429,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4429
4429
  ] }),
4430
4430
  r.fieldtype === "search" && /* @__PURE__ */ n("div", { children: [
4431
4431
  /* @__PURE__ */ e(
4432
- be,
4432
+ fe,
4433
4433
  {
4434
4434
  value: o[r.key] || "",
4435
4435
  onChange: (m) => {
@@ -4572,30 +4572,30 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4572
4572
  children: r.info
4573
4573
  }
4574
4574
  )
4575
- ] }, v)) })
4575
+ ] }, N)) })
4576
4576
  ] }) });
4577
4577
  }
4578
4578
  const ps = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex -space-x-2", children: t });
4579
4579
  function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4580
4580
  console.log(`[DynamicConfig/DataTableRenderer] Component loaded for section: ${t.key}`);
4581
- const [l, h] = M(t), [o, p] = M(null), [g, N] = M(null);
4581
+ const [l, h] = P(t), [o, p] = P(null), [g, v] = P(null);
4582
4582
  console.log(`[DataTableRenderer] ${l.key} - Received props:`, { item: t, initialData: a });
4583
- const [x, r] = M(() => {
4583
+ const [x, r] = P(() => {
4584
4584
  const u = a && a[l.key] || [];
4585
4585
  let S;
4586
- return u.length > 0 ? S = u.map((P, O) => ({
4587
- ...P,
4588
- id: P.id !== void 0 ? P.id : O
4586
+ return u.length > 0 ? S = u.map((M, O) => ({
4587
+ ...M,
4588
+ id: M.id !== void 0 ? M.id : O
4589
4589
  })) : S = [{ id: 0 }], console.log(`[DataTableRenderer] ${l.key} - Initial data:`, S), S;
4590
- }), v = he(a), m = he(null);
4590
+ }), N = he(a), m = he(null);
4591
4591
  K(() => {
4592
4592
  const u = a && a[l.key] || [], S = m.current;
4593
4593
  if (JSON.stringify(u) !== JSON.stringify(S)) {
4594
- console.log(`[DataTableRenderer] ${l.key} - Section data changed`), console.log(`[DataTableRenderer] ${l.key} - Previous:`, S), console.log(`[DataTableRenderer] ${l.key} - Current:`, u), v.current = a, m.current = u;
4594
+ console.log(`[DataTableRenderer] ${l.key} - Section data changed`), console.log(`[DataTableRenderer] ${l.key} - Previous:`, S), console.log(`[DataTableRenderer] ${l.key} - Current:`, u), N.current = a, m.current = u;
4595
4595
  let O;
4596
- u.length > 0 ? O = u.map((b, d) => ({
4596
+ u.length > 0 ? O = u.map((b, c) => ({
4597
4597
  ...b,
4598
- id: b.id !== void 0 ? b.id : d
4598
+ id: b.id !== void 0 ? b.id : c
4599
4599
  })) : O = [{ id: 0 }], console.log(`[DataTableRenderer] ${l.key} - Setting new data:`, O), r(O);
4600
4600
  }
4601
4601
  }, [a, l.key]);
@@ -4608,47 +4608,47 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4608
4608
  z.current && clearTimeout(z.current);
4609
4609
  }, []);
4610
4610
  const $ = (u) => {
4611
- const S = (b, d) => {
4612
- console.log("[DataTableRenderer] updateFieldValue called with:", { rowIndex: b, value: d, type: typeof d }), r((f) => {
4611
+ const S = (b, c) => {
4612
+ console.log("[DataTableRenderer] updateFieldValue called with:", { rowIndex: b, value: c, type: typeof c }), r((f) => {
4613
4613
  const w = [...f];
4614
- return w[b][u.key] = d, w;
4614
+ return w[b][u.key] = c, w;
4615
4615
  });
4616
- }, P = (b) => i[l.key]?.[b]?.[u.key], O = (b) => {
4617
- const d = P(b);
4618
- return d ? /* @__PURE__ */ e("div", { className: "text-red-500 text-xs mt-1", children: d }) : null;
4616
+ }, M = (b) => i[l.key]?.[b]?.[u.key], O = (b) => {
4617
+ const c = M(b);
4618
+ return c ? /* @__PURE__ */ e("div", { className: "text-red-500 text-xs mt-1", children: c }) : null;
4619
4619
  };
4620
4620
  switch (u.fieldtype) {
4621
4621
  case "text":
4622
- return (b, d) => /* @__PURE__ */ n("div", { children: [
4622
+ return (b, c) => /* @__PURE__ */ n("div", { children: [
4623
4623
  /* @__PURE__ */ e(
4624
4624
  X,
4625
4625
  {
4626
4626
  value: b[u.key] || "",
4627
- onChange: (f) => S(d, f.target.value),
4627
+ onChange: (f) => S(c, f.target.value),
4628
4628
  placeholder: u.placeholder || `Enter ${u.label}`,
4629
4629
  required: u.required,
4630
- className: `w-full ${P(d) ? "border-red-500" : ""}`
4630
+ className: `w-full ${M(c) ? "border-red-500" : ""}`
4631
4631
  }
4632
4632
  ),
4633
- O(d)
4633
+ O(c)
4634
4634
  ] });
4635
4635
  case "textarea":
4636
- return (b, d) => /* @__PURE__ */ n("div", { children: [
4636
+ return (b, c) => /* @__PURE__ */ n("div", { children: [
4637
4637
  /* @__PURE__ */ e(
4638
4638
  ca,
4639
4639
  {
4640
4640
  value: b[u.key] || "",
4641
- onChange: (f) => S(d, f.target.value),
4641
+ onChange: (f) => S(c, f.target.value),
4642
4642
  placeholder: u.placeholder || `Enter ${u.label}`,
4643
4643
  required: u.required,
4644
- className: `w-full ${P(d) ? "border-red-500" : ""}`,
4644
+ className: `w-full ${M(c) ? "border-red-500" : ""}`,
4645
4645
  rows: 3
4646
4646
  }
4647
4647
  ),
4648
- O(d)
4648
+ O(c)
4649
4649
  ] });
4650
4650
  case "number":
4651
- return (b, d) => /* @__PURE__ */ n("div", { children: [
4651
+ return (b, c) => /* @__PURE__ */ n("div", { children: [
4652
4652
  /* @__PURE__ */ e(
4653
4653
  X,
4654
4654
  {
@@ -4657,7 +4657,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4657
4657
  min: u.min,
4658
4658
  max: u.max,
4659
4659
  step: u.step,
4660
- onChange: (f) => S(d, f.target.value),
4660
+ onChange: (f) => S(c, f.target.value),
4661
4661
  onBlur: (f) => {
4662
4662
  const w = f.target.value;
4663
4663
  if (w !== "" && w !== null && w !== void 0) {
@@ -4667,7 +4667,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4667
4667
  },
4668
4668
  placeholder: u.placeholder || `Enter ${u.label}`,
4669
4669
  required: u.required,
4670
- className: `w-full ${P(d) ? "border-red-500" : ""}`
4670
+ className: `w-full ${M(c) ? "border-red-500" : ""}`
4671
4671
  }
4672
4672
  ),
4673
4673
  u.min !== void 0 && /* @__PURE__ */ n("div", { style: { color: "#6b7280", fontSize: "11px", marginTop: "2px" }, children: [
@@ -4678,71 +4678,71 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4678
4678
  "Max: ",
4679
4679
  u.max
4680
4680
  ] }),
4681
- O(d)
4681
+ O(c)
4682
4682
  ] });
4683
4683
  case "email":
4684
- return (b, d) => /* @__PURE__ */ n("div", { children: [
4684
+ return (b, c) => /* @__PURE__ */ n("div", { children: [
4685
4685
  /* @__PURE__ */ e(
4686
4686
  X,
4687
4687
  {
4688
4688
  type: "email",
4689
4689
  value: b[u.key] || "",
4690
- onChange: (f) => S(d, f.target.value),
4690
+ onChange: (f) => S(c, f.target.value),
4691
4691
  placeholder: u.placeholder || "Enter email address",
4692
4692
  required: u.required,
4693
- className: `w-full ${P(d) ? "border-red-500" : ""}`
4693
+ className: `w-full ${M(c) ? "border-red-500" : ""}`
4694
4694
  }
4695
4695
  ),
4696
- O(d)
4696
+ O(c)
4697
4697
  ] });
4698
4698
  case "url":
4699
- return (b, d) => /* @__PURE__ */ n("div", { children: [
4699
+ return (b, c) => /* @__PURE__ */ n("div", { children: [
4700
4700
  /* @__PURE__ */ e(
4701
4701
  X,
4702
4702
  {
4703
4703
  type: "url",
4704
4704
  value: b[u.key] || "",
4705
- onChange: (f) => S(d, f.target.value),
4705
+ onChange: (f) => S(c, f.target.value),
4706
4706
  placeholder: u.placeholder || "Enter URL",
4707
4707
  required: u.required,
4708
- className: `w-full ${P(d) ? "border-red-500" : ""}`
4708
+ className: `w-full ${M(c) ? "border-red-500" : ""}`
4709
4709
  }
4710
4710
  ),
4711
- O(d)
4711
+ O(c)
4712
4712
  ] });
4713
4713
  case "password":
4714
- return (b, d) => /* @__PURE__ */ n("div", { children: [
4714
+ return (b, c) => /* @__PURE__ */ n("div", { children: [
4715
4715
  /* @__PURE__ */ e(
4716
4716
  X,
4717
4717
  {
4718
4718
  type: "password",
4719
4719
  value: b[u.key] || "",
4720
- onChange: (f) => S(d, f.target.value),
4720
+ onChange: (f) => S(c, f.target.value),
4721
4721
  placeholder: u.placeholder || "Enter password",
4722
4722
  required: u.required,
4723
- className: `w-full ${P(d) ? "border-red-500" : ""}`
4723
+ className: `w-full ${M(c) ? "border-red-500" : ""}`
4724
4724
  }
4725
4725
  ),
4726
- O(d)
4726
+ O(c)
4727
4727
  ] });
4728
4728
  case "select":
4729
4729
  case "dropdown":
4730
- return (b, d) => /* @__PURE__ */ n("div", { children: [
4730
+ return (b, c) => /* @__PURE__ */ n("div", { children: [
4731
4731
  /* @__PURE__ */ e(
4732
4732
  pt,
4733
4733
  {
4734
4734
  value: b[u.key] || "",
4735
- onChange: (f) => S(d, f),
4735
+ onChange: (f) => S(c, f),
4736
4736
  options: u.options || [],
4737
4737
  placeholder: u.placeholder || `Select ${u.label}`,
4738
4738
  required: u.required,
4739
- className: `w-full ${P(d) ? "border-red-500" : ""}`
4739
+ className: `w-full ${M(c) ? "border-red-500" : ""}`
4740
4740
  }
4741
4741
  ),
4742
- O(d)
4742
+ O(c)
4743
4743
  ] });
4744
4744
  case "selectDynamic":
4745
- return (b, d) => {
4745
+ return (b, c) => {
4746
4746
  const f = () => {
4747
4747
  if (u.optionsFrom && a) {
4748
4748
  const { config: w, valueField: D, labelField: I } = u.optionsFrom, k = a[w] || [];
@@ -4759,27 +4759,27 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4759
4759
  /* @__PURE__ */ e(
4760
4760
  pt,
4761
4761
  {
4762
- index: d,
4762
+ index: c,
4763
4763
  value: b[u.key] || "",
4764
- onChange: (w) => S(d, w),
4764
+ onChange: (w) => S(c, w),
4765
4765
  options: f(),
4766
4766
  placeholder: u.placeholder || `Select ${u.label}`,
4767
4767
  required: u.required,
4768
- className: `w-full ${P(d) ? "border-red-500" : ""}`
4768
+ className: `w-full ${M(c) ? "border-red-500" : ""}`
4769
4769
  },
4770
4770
  Math.random()
4771
4771
  ),
4772
- O(d)
4772
+ O(c)
4773
4773
  ] });
4774
4774
  };
4775
4775
  case "multiselect":
4776
- return (b, d) => {
4776
+ return (b, c) => {
4777
4777
  const f = b[u.key] || [];
4778
4778
  return /* @__PURE__ */ e(
4779
4779
  at,
4780
4780
  {
4781
4781
  selectedItems: f,
4782
- onSelectionChange: (w) => S(d, w),
4782
+ onSelectionChange: (w) => S(c, w),
4783
4783
  options: u.options || [],
4784
4784
  placeholder: u.placeholder || `Select ${u.label}`,
4785
4785
  className: "w-full"
@@ -4788,82 +4788,82 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4788
4788
  };
4789
4789
  case "checkbox":
4790
4790
  case "boolean":
4791
- return (b, d) => /* @__PURE__ */ e(
4791
+ return (b, c) => /* @__PURE__ */ e(
4792
4792
  mt,
4793
4793
  {
4794
4794
  checked: !!b[u.key],
4795
- onChange: (f) => S(d, f),
4795
+ onChange: (f) => S(c, f),
4796
4796
  label: u.placeholder || u.label,
4797
4797
  className: "w-full"
4798
4798
  }
4799
4799
  );
4800
4800
  case "toggle":
4801
4801
  case "switch":
4802
- return (b, d) => /* @__PURE__ */ e(
4802
+ return (b, c) => /* @__PURE__ */ e(
4803
4803
  da,
4804
4804
  {
4805
4805
  isOn: !!b[u.key],
4806
- onToggle: (f) => S(d, f),
4806
+ onToggle: (f) => S(c, f),
4807
4807
  label: u.placeholder || u.label,
4808
4808
  className: "w-full"
4809
4809
  }
4810
4810
  );
4811
4811
  case "date":
4812
- return (b, d) => /* @__PURE__ */ e(
4812
+ return (b, c) => /* @__PURE__ */ e(
4813
4813
  sa,
4814
4814
  {
4815
4815
  selectedDate: b[u.key] ? new Date(b[u.key]) : null,
4816
- onDateChange: (f) => S(d, f ? f.toISOString().split("T")[0] : ""),
4816
+ onDateChange: (f) => S(c, f ? f.toISOString().split("T")[0] : ""),
4817
4817
  placeholder: u.placeholder || "Select date",
4818
4818
  className: "w-full"
4819
4819
  }
4820
4820
  );
4821
4821
  case "datetime":
4822
- return (b, d) => /* @__PURE__ */ e(
4822
+ return (b, c) => /* @__PURE__ */ e(
4823
4823
  X,
4824
4824
  {
4825
4825
  type: "datetime-local",
4826
4826
  value: b[u.key] || "",
4827
- onChange: (f) => S(d, f.target.value),
4827
+ onChange: (f) => S(c, f.target.value),
4828
4828
  placeholder: u.placeholder || "Select date and time",
4829
4829
  required: u.required,
4830
4830
  className: "w-full"
4831
4831
  }
4832
4832
  );
4833
4833
  case "time":
4834
- return (b, d) => /* @__PURE__ */ e(
4834
+ return (b, c) => /* @__PURE__ */ e(
4835
4835
  X,
4836
4836
  {
4837
4837
  type: "time",
4838
4838
  value: b[u.key] || "",
4839
- onChange: (f) => S(d, f.target.value),
4839
+ onChange: (f) => S(c, f.target.value),
4840
4840
  placeholder: u.placeholder || "Select time",
4841
4841
  required: u.required,
4842
4842
  className: "w-full"
4843
4843
  }
4844
4844
  );
4845
4845
  case "radio":
4846
- return (b, d) => /* @__PURE__ */ e(
4846
+ return (b, c) => /* @__PURE__ */ e(
4847
4847
  la,
4848
4848
  {
4849
4849
  selectedValue: b[u.key] || "",
4850
- onValueChange: (f) => S(d, f),
4850
+ onValueChange: (f) => S(c, f),
4851
4851
  options: u.options || [],
4852
4852
  className: "w-full"
4853
4853
  }
4854
4854
  );
4855
4855
  case "search":
4856
- return (b, d) => /* @__PURE__ */ e(
4857
- be,
4856
+ return (b, c) => /* @__PURE__ */ e(
4857
+ fe,
4858
4858
  {
4859
4859
  value: b[u.key] || "",
4860
- onChange: (f) => S(d, f),
4860
+ onChange: (f) => S(c, f),
4861
4861
  placeholder: u.placeholder || `Search ${u.label}`,
4862
4862
  className: "w-full"
4863
4863
  }
4864
4864
  );
4865
4865
  case "audience":
4866
- return (b, d) => {
4866
+ return (b, c) => {
4867
4867
  const f = b[u.key] || { users: [], groups: [], roles: [] }, w = [
4868
4868
  ...f.users || [],
4869
4869
  ...f.groups || [],
@@ -4884,7 +4884,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4884
4884
  {
4885
4885
  className: "text-blue-600 font-semibold hover:text-blue-800",
4886
4886
  onClick: () => {
4887
- N(u.key), p(d);
4887
+ v(u.key), p(c);
4888
4888
  },
4889
4889
  children: w.length > 0 ? "Edit" : "Assign"
4890
4890
  }
@@ -4892,23 +4892,23 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4892
4892
  ] });
4893
4893
  };
4894
4894
  case "color":
4895
- return (b, d) => /* @__PURE__ */ e(
4895
+ return (b, c) => /* @__PURE__ */ e(
4896
4896
  X,
4897
4897
  {
4898
4898
  type: "color",
4899
4899
  value: b[u.key] || "#000000",
4900
- onChange: (f) => S(d, f.target.value),
4900
+ onChange: (f) => S(c, f.target.value),
4901
4901
  className: "w-full h-10"
4902
4902
  }
4903
4903
  );
4904
4904
  case "range":
4905
- return (b, d) => /* @__PURE__ */ n("div", { className: "w-full", children: [
4905
+ return (b, c) => /* @__PURE__ */ n("div", { className: "w-full", children: [
4906
4906
  /* @__PURE__ */ e(
4907
4907
  X,
4908
4908
  {
4909
4909
  type: "range",
4910
4910
  value: b[u.key] || u.min || 0,
4911
- onChange: (f) => S(d, f.target.value),
4911
+ onChange: (f) => S(c, f.target.value),
4912
4912
  min: u.min || 0,
4913
4913
  max: u.max || 100,
4914
4914
  step: u.step || 1,
@@ -4918,53 +4918,53 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4918
4918
  /* @__PURE__ */ e("span", { className: "text-sm text-gray-500", children: b[u.key] || u.min || 0 })
4919
4919
  ] });
4920
4920
  case "file":
4921
- return (b, d) => /* @__PURE__ */ e(
4921
+ return (b, c) => /* @__PURE__ */ e(
4922
4922
  X,
4923
4923
  {
4924
4924
  type: "file",
4925
4925
  onChange: (f) => {
4926
4926
  const w = f.target.files[0];
4927
- S(d, w ? w.name : "");
4927
+ S(c, w ? w.name : "");
4928
4928
  },
4929
4929
  accept: u.accept,
4930
4930
  className: "w-full"
4931
4931
  }
4932
4932
  );
4933
4933
  case "hidden":
4934
- return (b, d) => /* @__PURE__ */ e(
4934
+ return (b, c) => /* @__PURE__ */ e(
4935
4935
  X,
4936
4936
  {
4937
4937
  type: "hidden",
4938
4938
  value: b[u.key] || "",
4939
- onChange: (f) => S(d, f.target.value)
4939
+ onChange: (f) => S(c, f.target.value)
4940
4940
  }
4941
4941
  );
4942
4942
  // Default fallback for unknown field types
4943
4943
  default:
4944
- return (b, d) => /* @__PURE__ */ n("div", { children: [
4944
+ return (b, c) => /* @__PURE__ */ n("div", { children: [
4945
4945
  /* @__PURE__ */ e(
4946
4946
  X,
4947
4947
  {
4948
4948
  value: b[u.key] || "",
4949
- onChange: (f) => S(d, f.target.value),
4949
+ onChange: (f) => S(c, f.target.value),
4950
4950
  placeholder: u.placeholder || `Enter ${u.label}`,
4951
4951
  required: u.required,
4952
- className: `w-full ${P(d) ? "border-red-500" : ""}`
4952
+ className: `w-full ${M(c) ? "border-red-500" : ""}`
4953
4953
  }
4954
4954
  ),
4955
- O(d)
4955
+ O(c)
4956
4956
  ] });
4957
4957
  }
4958
4958
  }, E = H(() => {
4959
4959
  console.log("[DataTableRenderer] Adding blank row"), r((u) => {
4960
4960
  console.log("[DataTableRenderer] Current data before add:", u);
4961
- const P = (u.length > 0 ? Math.max(...u.map((d) => d.id || 0)) : -1) + 1, O = {
4962
- id: P
4961
+ const M = (u.length > 0 ? Math.max(...u.map((c) => c.id || 0)) : -1) + 1, O = {
4962
+ id: M
4963
4963
  // Assign unique incremental ID
4964
4964
  };
4965
- l.fields.forEach((d) => {
4966
- d.fieldtype === "audience" ? O[d.key] = { users: [], groups: [], roles: [] } : O[d.key] = d.default || "";
4967
- }), console.log("[DataTableRenderer] New blank row with ID:", P, O);
4965
+ l.fields.forEach((c) => {
4966
+ c.fieldtype === "audience" ? O[c.key] = { users: [], groups: [], roles: [] } : O[c.key] = c.default || "";
4967
+ }), console.log("[DataTableRenderer] New blank row with ID:", M, O);
4968
4968
  const b = [...u, O];
4969
4969
  return console.log("[DataTableRenderer] Updated data:", b), b;
4970
4970
  });
@@ -4972,16 +4972,16 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4972
4972
  r((S) => {
4973
4973
  if (S.length <= 1)
4974
4974
  return S;
4975
- const P = [...S];
4976
- return P.splice(u, 1), P;
4975
+ const M = [...S];
4976
+ return M.splice(u, 1), M;
4977
4977
  });
4978
- }, []), [V, U] = M(null), Y = H((u, S) => {
4978
+ }, []), [V, U] = P(null), Y = H((u, S) => {
4979
4979
  U(S), u.dataTransfer.effectAllowed = "move", u.dataTransfer.setData("text/html", "");
4980
4980
  }, []), q = H((u) => {
4981
4981
  u.preventDefault(), u.dataTransfer.dropEffect = "move";
4982
4982
  }, []), A = H((u, S) => {
4983
- u.preventDefault(), !(V === null || V === S) && (r((P) => {
4984
- const O = [...P], b = O[V];
4983
+ u.preventDefault(), !(V === null || V === S) && (r((M) => {
4984
+ const O = [...M], b = O[V];
4985
4985
  return O.splice(V, 1), O.splice(S, 0, b), O;
4986
4986
  }), U(null));
4987
4987
  }, [V]), _ = H(() => {
@@ -4990,10 +4990,10 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4990
4990
  console.log("[DataTableRenderer] handleAddAudience called with:", { selectedEntities: u, existingShares: S }), r((O) => {
4991
4991
  const b = [...O];
4992
4992
  if (o !== null && g && b[o]) {
4993
- const d = u?.pendingInvites || [];
4994
- if (d.length > 0) {
4995
- console.log("[DataTableRenderer] Adding new pending invites:", d);
4996
- const f = d.filter((k) => k.type === "User"), w = d.filter((k) => k.type === "Group"), D = d.filter((k) => k.type === "Role"), I = b[o][g] || { users: [], groups: [], roles: [] };
4993
+ const c = u?.pendingInvites || [];
4994
+ if (c.length > 0) {
4995
+ console.log("[DataTableRenderer] Adding new pending invites:", c);
4996
+ const f = c.filter((k) => k.type === "User"), w = c.filter((k) => k.type === "Group"), D = c.filter((k) => k.type === "Role"), I = b[o][g] || { users: [], groups: [], roles: [] };
4997
4997
  b[o][g] = {
4998
4998
  users: [...I.users || [], ...f],
4999
4999
  groups: [...I.groups || [], ...w],
@@ -5007,7 +5007,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5007
5007
  console.log("[DataTableRenderer] Final audience data:", b[o][g]), T.current = !0;
5008
5008
  }
5009
5009
  return b;
5010
- }), (u?.pendingInvites || []).length > 0 && (p(null), N(null));
5010
+ }), (u?.pendingInvites || []).length > 0 && (p(null), v(null));
5011
5011
  }, [o, g, s]);
5012
5012
  return /* @__PURE__ */ n("div", { children: [
5013
5013
  /* @__PURE__ */ n("div", { style: { marginBottom: "20px" }, children: [
@@ -5042,13 +5042,13 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5042
5042
  {
5043
5043
  className: `hover:bg-gray-50 ${V === S ? "opacity-50" : ""}`,
5044
5044
  draggable: !0,
5045
- onDragStart: (P) => Y(P, S),
5045
+ onDragStart: (M) => Y(M, S),
5046
5046
  onDragOver: q,
5047
- onDrop: (P) => A(P, S),
5047
+ onDrop: (M) => A(M, S),
5048
5048
  onDragEnd: _,
5049
5049
  children: [
5050
5050
  /* @__PURE__ */ e("td", { className: "px-4 py-2 ", children: /* @__PURE__ */ e("div", { className: "cursor-move text-gray-400 hover:text-gray-600", children: /* @__PURE__ */ e(xt, { size: 16 }) }) }),
5051
- l.fields.map((P, O) => /* @__PURE__ */ e("td", { className: "px-4 py-2 ", children: $(P)(u, S) }, O)),
5051
+ l.fields.map((M, O) => /* @__PURE__ */ e("td", { className: "px-4 py-2 ", children: $(M)(u, S) }, O)),
5052
5052
  /* @__PURE__ */ e("td", { className: "px-4 py-2 ", children: /* @__PURE__ */ e(
5053
5053
  "button",
5054
5054
  {
@@ -5074,7 +5074,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5074
5074
  {
5075
5075
  isOpen: !0,
5076
5076
  onClose: () => {
5077
- p(null), N(null);
5077
+ p(null), v(null);
5078
5078
  },
5079
5079
  onFinalSubmit: C,
5080
5080
  existingShares: u,
@@ -5106,7 +5106,7 @@ function xs({
5106
5106
  onShowCancelModal: l,
5107
5107
  onCancel: h
5108
5108
  }) {
5109
- const [o, p] = ae.useState(a), [g, N] = ae.useState(null), [x, r] = ae.useState(null), [v, m] = M(!1), [y, z] = M(!1), [T, $] = M({}), E = `${$e()}/unifyedxappmodulemanagement/api/v1/appmanager/${t}/configuration`, L = E, [V, U] = M(1), Y = () => {
5109
+ const [o, p] = ae.useState(a), [g, v] = ae.useState(null), [x, r] = ae.useState(null), [N, m] = P(!1), [y, z] = P(!1), [T, $] = P({}), E = `${$e()}/unifyedxappmodulemanagement/api/v1/appmanager/${t}/configuration`, L = E, [V, U] = P(1), Y = () => {
5110
5110
  if (!x || !g)
5111
5111
  return console.log("[DynamicConfig] hasUnsavedChanges: false (no data)", { originalData: x, data: g }), !1;
5112
5112
  const b = (D) => {
@@ -5116,9 +5116,9 @@ function xs({
5116
5116
  return Object.keys(D).sort().forEach((k) => {
5117
5117
  I[k] = b(D[k]);
5118
5118
  }), I;
5119
- }, d = b(x), f = b(g), w = JSON.stringify(d) !== JSON.stringify(f);
5119
+ }, c = b(x), f = b(g), w = JSON.stringify(c) !== JSON.stringify(f);
5120
5120
  return console.log("[DynamicConfig] hasUnsavedChanges:", w, {
5121
- originalData: d,
5121
+ originalData: c,
5122
5122
  currentData: f,
5123
5123
  originalRaw: x,
5124
5124
  currentRaw: g
@@ -5126,7 +5126,7 @@ function xs({
5126
5126
  }, q = (b) => {
5127
5127
  if (!a || !a.configuration)
5128
5128
  return b;
5129
- const d = {}, f = b?.configuration || {};
5129
+ const c = {}, f = b?.configuration || {};
5130
5130
  return a.configuration.forEach((w) => {
5131
5131
  if (w.key && w.type === "datatable") {
5132
5132
  const I = (f[w.key] || []).map((k, R) => {
@@ -5148,32 +5148,32 @@ function xs({
5148
5148
  R.fieldtype === "audience" ? k[R.key] = { users: [], groups: [], roles: [] } : k[R.key] = R.default || "";
5149
5149
  }), I.push(k);
5150
5150
  }
5151
- d[w.key] = I;
5151
+ c[w.key] = I;
5152
5152
  } else if (w.key) {
5153
5153
  const D = f[w.key] || {};
5154
5154
  w.type === "section" && w.fields && w.fields.forEach((I) => {
5155
5155
  I.fieldtype === "managecollectionlist" && I.key && (!D[I.key] || !Array.isArray(D[I.key])) && (D[I.key] = I.initialData || []);
5156
- }), d[w.key] = D;
5156
+ }), c[w.key] = D;
5157
5157
  }
5158
- }), d;
5158
+ }), c;
5159
5159
  }, A = () => {
5160
5160
  if (a && a.configuration) {
5161
5161
  const b = {};
5162
- a.configuration.forEach((d) => {
5163
- if (d.key)
5164
- if (d.type === "datatable") {
5162
+ a.configuration.forEach((c) => {
5163
+ if (c.key)
5164
+ if (c.type === "datatable") {
5165
5165
  const f = { id: 0 };
5166
- d.fields && d.fields.forEach((w) => {
5166
+ c.fields && c.fields.forEach((w) => {
5167
5167
  w.fieldtype === "audience" ? f[w.key] = { users: [], groups: [], roles: [] } : (w.fieldtype, f[w.key] = w.default || "");
5168
- }), b[d.key] = [f];
5169
- } else if (d.type === "section") {
5168
+ }), b[c.key] = [f];
5169
+ } else if (c.type === "section") {
5170
5170
  const f = {};
5171
- d.fields && Array.isArray(d.fields) && d.fields.forEach((w) => {
5171
+ c.fields && Array.isArray(c.fields) && c.fields.forEach((w) => {
5172
5172
  w.key && (w.fieldtype === "managecollectionlist" ? f[w.key] = w.initialData || [] : f[w.key] = w.default || "");
5173
- }), b[d.key] = f;
5173
+ }), b[c.key] = f;
5174
5174
  } else
5175
- b[d.key] = {};
5176
- }), N(b), r(b);
5175
+ b[c.key] = {};
5176
+ }), v(b), r(b);
5177
5177
  }
5178
5178
  };
5179
5179
  K(() => {
@@ -5184,19 +5184,19 @@ function xs({
5184
5184
  const b = async () => {
5185
5185
  try {
5186
5186
  m(!0);
5187
- let d = await Ze(E);
5188
- if (d) {
5189
- const f = q(d);
5190
- N(f), r(f);
5187
+ let c = await Ze(E);
5188
+ if (c) {
5189
+ const f = q(c);
5190
+ v(f), r(f);
5191
5191
  } else
5192
5192
  A();
5193
- } catch (d) {
5194
- console.error("Error fetching configuration:", d);
5193
+ } catch (c) {
5194
+ console.error("Error fetching configuration:", c);
5195
5195
  let f = "Failed to load configuration";
5196
- if (d.response) {
5197
- const w = d.response.status, D = d.response.data?.message || d.response.data?.error;
5196
+ if (c.response) {
5197
+ const w = c.response.status, D = c.response.data?.message || c.response.data?.error;
5198
5198
  w === 400 ? f = D || "Invalid request. Please check the application ID." : w === 401 ? f = "You are not authorized to access this configuration." : w === 403 ? f = "Access denied. You don't have permission to view this configuration." : w === 404 ? f = "Configuration not found. It may not exist yet or the application ID is incorrect." : w >= 500 ? f = D || "Server error. Please try again later." : f = D || `Failed to load configuration (Error ${w})`;
5199
- } else d.request ? f = "Network error. Please check your connection and try again." : f = d.message || "An unexpected error occurred while loading configuration.";
5199
+ } else c.request ? f = "Network error. Please check your connection and try again." : f = c.message || "An unexpected error occurred while loading configuration.";
5200
5200
  Ye.error(f), A();
5201
5201
  } finally {
5202
5202
  m(!1);
@@ -5204,11 +5204,11 @@ function xs({
5204
5204
  };
5205
5205
  a && (p(a), t ? b() : A());
5206
5206
  }, [a, V, t, s]);
5207
- const _ = (b, d) => {
5208
- console.log(`[DynamicConfig] handleSectionChange called for ${b}:`, d), N((f) => {
5207
+ const _ = (b, c) => {
5208
+ console.log(`[DynamicConfig] handleSectionChange called for ${b}:`, c), v((f) => {
5209
5209
  const w = {
5210
5210
  ...f,
5211
- [b]: d
5211
+ [b]: c
5212
5212
  };
5213
5213
  return console.log("[DynamicConfig] Updated data state:", w), w;
5214
5214
  }), $((f) => {
@@ -5217,31 +5217,31 @@ function xs({
5217
5217
  });
5218
5218
  }, C = () => {
5219
5219
  const b = {};
5220
- return !o || !g || o.configuration.forEach((d) => {
5221
- if (d.type === "section")
5222
- d.fields.forEach((f) => {
5223
- const w = g[d.key]?.[f.key];
5220
+ return !o || !g || o.configuration.forEach((c) => {
5221
+ if (c.type === "section")
5222
+ c.fields.forEach((f) => {
5223
+ const w = g[c.key]?.[f.key];
5224
5224
  if (f.required && (!w || typeof w == "string" && w.trim() === "")) {
5225
- b[d.key] || (b[d.key] = {}), b[d.key][f.key] = `${f.label} is required`;
5225
+ b[c.key] || (b[c.key] = {}), b[c.key][f.key] = `${f.label} is required`;
5226
5226
  return;
5227
5227
  }
5228
5228
  if (f.fieldtype === "number" && w !== "" && w !== null && w !== void 0) {
5229
5229
  const D = Number(w);
5230
- isNaN(D) ? (b[d.key] || (b[d.key] = {}), b[d.key][f.key] = `${f.label} must be a valid number`) : (f.min !== void 0 && D < f.min && (b[d.key] || (b[d.key] = {}), b[d.key][f.key] = `${f.label} must be at least ${f.min}`), f.max !== void 0 && D > f.max && (b[d.key] || (b[d.key] = {}), b[d.key][f.key] = `${f.label} must not exceed ${f.max}`));
5230
+ isNaN(D) ? (b[c.key] || (b[c.key] = {}), b[c.key][f.key] = `${f.label} must be a valid number`) : (f.min !== void 0 && D < f.min && (b[c.key] || (b[c.key] = {}), b[c.key][f.key] = `${f.label} must be at least ${f.min}`), f.max !== void 0 && D > f.max && (b[c.key] || (b[c.key] = {}), b[c.key][f.key] = `${f.label} must not exceed ${f.max}`));
5231
5231
  }
5232
5232
  });
5233
- else if (d.type === "datatable") {
5234
- const f = g[d.key];
5233
+ else if (c.type === "datatable") {
5234
+ const f = g[c.key];
5235
5235
  Array.isArray(f) && f.forEach((w, D) => {
5236
- d.fields.forEach((I) => {
5236
+ c.fields.forEach((I) => {
5237
5237
  const k = w[I.key];
5238
5238
  if (I.required && (!k || typeof k == "string" && k.trim() === "")) {
5239
- b[d.key] || (b[d.key] = {}), b[d.key][D] || (b[d.key][D] = {}), b[d.key][D][I.key] = `${I.label} is required`;
5239
+ b[c.key] || (b[c.key] = {}), b[c.key][D] || (b[c.key][D] = {}), b[c.key][D][I.key] = `${I.label} is required`;
5240
5240
  return;
5241
5241
  }
5242
5242
  if (I.fieldtype === "number" && k !== "" && k !== null && k !== void 0) {
5243
5243
  const R = Number(k);
5244
- isNaN(R) ? (b[d.key] || (b[d.key] = {}), b[d.key][D] || (b[d.key][D] = {}), b[d.key][D][I.key] = `${I.label} must be a valid number`) : (I.min !== void 0 && R < I.min && (b[d.key] || (b[d.key] = {}), b[d.key][D] || (b[d.key][D] = {}), b[d.key][D][I.key] = `${I.label} must be at least ${I.min}`), I.max !== void 0 && R > I.max && (b[d.key] || (b[d.key] = {}), b[d.key][D] || (b[d.key][D] = {}), b[d.key][D][I.key] = `${I.label} must not exceed ${I.max}`));
5244
+ isNaN(R) ? (b[c.key] || (b[c.key] = {}), b[c.key][D] || (b[c.key][D] = {}), b[c.key][D][I.key] = `${I.label} must be a valid number`) : (I.min !== void 0 && R < I.min && (b[c.key] || (b[c.key] = {}), b[c.key][D] || (b[c.key][D] = {}), b[c.key][D][I.key] = `${I.label} must be at least ${I.min}`), I.max !== void 0 && R > I.max && (b[c.key] || (b[c.key] = {}), b[c.key][D] || (b[c.key][D] = {}), b[c.key][D][I.key] = `${I.label} must not exceed ${I.max}`));
5245
5245
  }
5246
5246
  });
5247
5247
  });
@@ -5301,7 +5301,7 @@ function xs({
5301
5301
  z(!1);
5302
5302
  }
5303
5303
  })();
5304
- }, P = () => {
5304
+ }, M = () => {
5305
5305
  console.log("[DynamicConfig] handleCancel called"), Y() ? (console.log("[DynamicConfig] Unsaved changes detected - showing modal"), l ? l() : console.warn("[DynamicConfig] onShowCancelModal not provided, cannot show modal")) : (console.log("[DynamicConfig] No unsaved changes - going back directly"), h ? h() : (console.log("[DynamicConfig] Using fallback window.history.back()"), window.history.back()));
5306
5306
  };
5307
5307
  if (!o?.configuration && !a?.configuration)
@@ -5316,8 +5316,8 @@ function xs({
5316
5316
  className: "dynamic-config bg-white w-full h-[calc(100vh-500px)] overflow-y-auto",
5317
5317
  style: { padding: "0px 20px 0px 0px" },
5318
5318
  children: [
5319
- v && /* @__PURE__ */ e("div", { className: "flex justify-center items-center h-64", children: /* @__PURE__ */ e(oa, { size: "large" }) }),
5320
- !v && O?.map((b, d) => {
5319
+ N && /* @__PURE__ */ e("div", { className: "flex justify-center items-center h-64", children: /* @__PURE__ */ e(oa, { size: "large" }) }),
5320
+ !N && O?.map((b, c) => {
5321
5321
  const f = ys(b.type);
5322
5322
  if (f && f !== "UnknownType")
5323
5323
  return /* @__PURE__ */ e(
@@ -5328,7 +5328,7 @@ function xs({
5328
5328
  updateHandler: _,
5329
5329
  validationErrors: T
5330
5330
  },
5331
- d
5331
+ c
5332
5332
  );
5333
5333
  })
5334
5334
  ]
@@ -5339,7 +5339,7 @@ function xs({
5339
5339
  se,
5340
5340
  {
5341
5341
  category: "secondary",
5342
- onClick: P,
5342
+ onClick: M,
5343
5343
  label: "Cancel",
5344
5344
  disabled: y,
5345
5345
  type: "button"
@@ -5363,30 +5363,30 @@ const Yl = ({
5363
5363
  appid: a = "Configuration-Page",
5364
5364
  disableApi: s = !1
5365
5365
  }) => {
5366
- const [i, l] = M(0), [h, o] = M(!1), {
5366
+ const [i, l] = P(0), [h, o] = P(!1), {
5367
5367
  pageHeader: p = {},
5368
5368
  appletHeader: g = {},
5369
- breadcrumb: N = [],
5369
+ breadcrumb: v = [],
5370
5370
  overview: x = {},
5371
5371
  configuration: r = []
5372
- } = t, v = ee(() => r.map((C) => {
5372
+ } = t, N = ee(() => r.map((C) => {
5373
5373
  if (C.type === "section" && C.fields) {
5374
- const u = [...C.fields], S = u.findIndex((P) => P && P.key === "appkey");
5374
+ const u = [...C.fields], S = u.findIndex((M) => M && M.key === "appkey");
5375
5375
  if (S !== -1) {
5376
- const P = u[S];
5376
+ const M = u[S];
5377
5377
  if (u[S] = {
5378
- ...P,
5378
+ ...M,
5379
5379
  default: a,
5380
5380
  value: a,
5381
5381
  readonly: !0,
5382
5382
  placeholder: a,
5383
5383
  disabled: !1
5384
5384
  }, u.some((b) => b.key === "displayname")) {
5385
- const b = u.findIndex((f) => f.key === "displayname"), d = u[b] || {};
5385
+ const b = u.findIndex((f) => f.key === "displayname"), c = u[b] || {};
5386
5386
  u[b] = {
5387
- ...d,
5388
- default: d.default || d.value || a,
5389
- placeholder: d.placeholder || "Enter display name"
5387
+ ...c,
5388
+ default: c.default || c.value || a,
5389
+ placeholder: c.placeholder || "Enter display name"
5390
5390
  };
5391
5391
  } else {
5392
5392
  const b = {
@@ -5413,7 +5413,7 @@ const Yl = ({
5413
5413
  isLeftArrow: !0,
5414
5414
  onBackClick: () => window.history.back(),
5415
5415
  ...p
5416
- }, y = N.map((C) => ({
5416
+ }, y = v.map((C) => ({
5417
5417
  label: C.text,
5418
5418
  href: C.href || "#"
5419
5419
  })), z = H(() => {
@@ -5426,9 +5426,9 @@ const Yl = ({
5426
5426
  window.history.back();
5427
5427
  }, []), L = (() => {
5428
5428
  if (g.headingKey && Array.isArray(r)) {
5429
- const C = g.headingKey.split("."), u = C[0], S = C[1], P = r.find((O) => O && O.key === u);
5430
- if (P && P.fields) {
5431
- const O = P.fields.find((b) => b && b.key === S);
5429
+ const C = g.headingKey.split("."), u = C[0], S = C[1], M = r.find((O) => O && O.key === u);
5430
+ if (M && M.fields) {
5431
+ const O = M.fields.find((b) => b && b.key === S);
5432
5432
  if (O)
5433
5433
  return O.default ?? O.value ?? g.heading ?? a;
5434
5434
  }
@@ -5466,8 +5466,8 @@ const Yl = ({
5466
5466
  ],
5467
5467
  ...x
5468
5468
  }, Y = ee(() => ({
5469
- configuration: v
5470
- }), [v]), q = ee(() => [
5469
+ configuration: N
5470
+ }), [N]), q = ee(() => [
5471
5471
  { label: "Overview", content: _(U) },
5472
5472
  { label: "Configuration", content: /* @__PURE__ */ e(xs, { appid: a, configdata: Y, disableApi: s, onSave: $, onShowCancelModal: z, onCancel: E }) }
5473
5473
  ], [a, Y, s, $, z, E, U]);
@@ -5510,7 +5510,7 @@ const Yl = ({
5510
5510
  }
5511
5511
  return /* @__PURE__ */ n("div", { className: "full-config-page", children: [
5512
5512
  /* @__PURE__ */ e(
5513
- Mn,
5513
+ Pn,
5514
5514
  {
5515
5515
  heading: m.heading,
5516
5516
  subHeading: y.length > 0 ? void 0 : m.subHeading,
@@ -5569,15 +5569,15 @@ const Yl = ({
5569
5569
  allowReorder: o = !0,
5570
5570
  initialData: p = null
5571
5571
  }) => {
5572
- const [g, N] = M(null), [x, r] = M(""), [v, m] = M(() => Array.isArray(p) ? p : []), [y, z] = M(null), [T, $] = M(null), [E, L] = M("");
5572
+ const [g, v] = P(null), [x, r] = P(""), [N, m] = P(() => Array.isArray(p) ? p : []), [y, z] = P(null), [T, $] = P(null), [E, L] = P("");
5573
5573
  K(() => {
5574
5574
  Array.isArray(p) && m(p);
5575
5575
  }, [p]);
5576
- const V = (d) => {
5577
- l && (N(d._id), r(d.categoryName || ""));
5576
+ const V = (c) => {
5577
+ l && (v(c._id), r(c.categoryName || ""));
5578
5578
  }, U = () => {
5579
5579
  if (!i || g !== null) return;
5580
- const f = (v.length > 0 ? Math.max(...v.map((w) => typeof w._id == "number" ? w._id : 0)) : 0) + 1;
5580
+ const f = (N.length > 0 ? Math.max(...N.map((w) => typeof w._id == "number" ? w._id : 0)) : 0) + 1;
5581
5581
  m((w) => [
5582
5582
  ...w,
5583
5583
  {
@@ -5588,54 +5588,54 @@ const Yl = ({
5588
5588
  protected: !1,
5589
5589
  _class: "com.unifyed.model.Collection"
5590
5590
  }
5591
- ]), N(f), r("");
5591
+ ]), v(f), r("");
5592
5592
  }, Y = () => {
5593
- g != null && (m((d) => {
5594
- const w = !Array.isArray(p) || !p.some((D) => D._id === g) ? d.filter((D) => D._id !== g) : d;
5593
+ g != null && (m((c) => {
5594
+ const w = !Array.isArray(p) || !p.some((D) => D._id === g) ? c.filter((D) => D._id !== g) : c;
5595
5595
  return a?.(w), w;
5596
- }), N(null), r(""));
5596
+ }), v(null), r(""));
5597
5597
  }, q = () => {
5598
- g == null || !x.trim() || (m((d) => {
5599
- const f = d.map((w) => w._id === g ? {
5598
+ g == null || !x.trim() || (m((c) => {
5599
+ const f = c.map((w) => w._id === g ? {
5600
5600
  ...w,
5601
5601
  categoryName: x.trim()
5602
5602
  } : w);
5603
5603
  return a?.(f), f;
5604
- }), N(null), r(""));
5605
- }, A = (d) => {
5604
+ }), v(null), r(""));
5605
+ }, A = (c) => {
5606
5606
  h && m((f) => {
5607
- const w = f.filter((D) => D._id !== d._id);
5607
+ const w = f.filter((D) => D._id !== c._id);
5608
5608
  return a?.(w), w;
5609
5609
  });
5610
- }, _ = (d, f, w) => {
5610
+ }, _ = (c, f, w) => {
5611
5611
  const D = Number(f), I = Number(w);
5612
- if (!o || D === I) return d;
5613
- const k = d.findIndex((G) => Number(G._id) === D), R = d.findIndex((G) => Number(G._id) === I);
5614
- if (k === -1 || R === -1) return d;
5615
- const j = [...d], [F] = j.splice(k, 1);
5612
+ if (!o || D === I) return c;
5613
+ const k = c.findIndex((G) => Number(G._id) === D), R = c.findIndex((G) => Number(G._id) === I);
5614
+ if (k === -1 || R === -1) return c;
5615
+ const j = [...c], [F] = j.splice(k, 1);
5616
5616
  return j.splice(R, 0, F), j.map((G, W) => ({ ...G, order: W + 1 }));
5617
- }, C = (d, f) => {
5618
- o && (d.dataTransfer.effectAllowed = "move", d.dataTransfer.setData("text/plain", String(f)), z(Number(f)));
5619
- }, u = (d) => {
5620
- y && d !== T && $(d);
5621
- }, S = (d) => {
5622
- d.preventDefault();
5623
- }, P = (d, f) => {
5624
- d.preventDefault();
5625
- const w = d.dataTransfer.getData("text/plain"), D = w === "0" ? 0 : Number(w), I = f === "0" ? 0 : Number(f);
5617
+ }, C = (c, f) => {
5618
+ o && (c.dataTransfer.effectAllowed = "move", c.dataTransfer.setData("text/plain", String(f)), z(Number(f)));
5619
+ }, u = (c) => {
5620
+ y && c !== T && $(c);
5621
+ }, S = (c) => {
5622
+ c.preventDefault();
5623
+ }, M = (c, f) => {
5624
+ c.preventDefault();
5625
+ const w = c.dataTransfer.getData("text/plain"), D = w === "0" ? 0 : Number(w), I = f === "0" ? 0 : Number(f);
5626
5626
  D === void 0 || I === void 0 || (m((k) => {
5627
5627
  const R = _(k, D, I);
5628
5628
  return a?.(R), R;
5629
5629
  }), z(null), $(null));
5630
5630
  }, O = () => {
5631
5631
  z(null), $(null);
5632
- }, b = Array.isArray(v) ? v.filter(
5633
- (d) => d.categoryName?.toLowerCase().includes(E.toLowerCase())
5632
+ }, b = Array.isArray(N) ? N.filter(
5633
+ (c) => c.categoryName?.toLowerCase().includes(E.toLowerCase())
5634
5634
  ) : [];
5635
5635
  return /* @__PURE__ */ n("div", { className: `manage-collection-list ${t}`, children: [
5636
5636
  /* @__PURE__ */ e("div", { className: "flex justify-end", children: /* @__PURE__ */ n("div", { className: "w-1/2 flex justify-end", children: [
5637
5637
  s && /* @__PURE__ */ e(
5638
- be,
5638
+ fe,
5639
5639
  {
5640
5640
  value: E,
5641
5641
  onDebouncedChange: L,
@@ -5656,14 +5656,14 @@ const Yl = ({
5656
5656
  }
5657
5657
  )
5658
5658
  ] }) }),
5659
- /* @__PURE__ */ e("div", { className: "mt-5 flex flex-col", children: b.map((d) => {
5660
- const f = g === d._id, w = d?.links?.length ?? 0, D = y === d._id, I = T === d._id && y !== d._id;
5659
+ /* @__PURE__ */ e("div", { className: "mt-5 flex flex-col", children: b.map((c) => {
5660
+ const f = g === c._id, w = c?.links?.length ?? 0, D = y === c._id, I = T === c._id && y !== c._id;
5661
5661
  return /* @__PURE__ */ e(
5662
5662
  "div",
5663
5663
  {
5664
- onDragEnter: () => u(d._id),
5664
+ onDragEnter: () => u(c._id),
5665
5665
  onDragOver: S,
5666
- onDrop: (k) => P(k, d._id),
5666
+ onDrop: (k) => M(k, c._id),
5667
5667
  onDragEnd: O,
5668
5668
  className: [
5669
5669
  "flex items-center justify-between p-3 border rounded-2xl mb-3",
@@ -5678,7 +5678,7 @@ const Yl = ({
5678
5678
  type: "text",
5679
5679
  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",
5680
5680
  value: x,
5681
- placeholder: !Array.isArray(p) || !p.some((k) => k._id === d._id) ? "New collection name" : "Edit collection name",
5681
+ placeholder: !Array.isArray(p) || !p.some((k) => k._id === c._id) ? "New collection name" : "Edit collection name",
5682
5682
  onChange: (k) => r(k.target.value),
5683
5683
  onKeyDown: (k) => {
5684
5684
  k.key === "Enter" && q(), k.key === "Escape" && Y();
@@ -5720,36 +5720,36 @@ const Yl = ({
5720
5720
  "aria-label": "Drag to reorder",
5721
5721
  className: "cursor-grab active:cursor-grabbing p-1 -m-1 rounded-md hover:bg-gray-50",
5722
5722
  draggable: !0,
5723
- onDragStart: (k) => C(k, d._id),
5723
+ onDragStart: (k) => C(k, c._id),
5724
5724
  children: /* @__PURE__ */ e(xt, {})
5725
5725
  }
5726
5726
  ),
5727
- /* @__PURE__ */ e("span", { children: d.categoryName })
5727
+ /* @__PURE__ */ e("span", { children: c.categoryName })
5728
5728
  ] }),
5729
5729
  /* @__PURE__ */ n("div", { className: "flex gap-2 items-center", children: [
5730
- d.protected ? /* @__PURE__ */ e("span", { className: "text-sm text-gray-600 cursor-default", children: d.qlAppName }) : /* @__PURE__ */ e("span", { className: "text-sm text-blue-600 cursor-default", children: `${w} ${w === 1 ? "link" : "links"}` }),
5730
+ c.protected ? /* @__PURE__ */ e("span", { className: "text-sm text-gray-600 cursor-default", children: c.qlAppName }) : /* @__PURE__ */ e("span", { className: "text-sm text-blue-600 cursor-default", children: `${w} ${w === 1 ? "link" : "links"}` }),
5731
5731
  l && /* @__PURE__ */ e(
5732
5732
  "button",
5733
5733
  {
5734
5734
  className: "cursor-pointer",
5735
- onClick: () => V(d),
5736
- "aria-label": `Edit ${d.categoryName}`,
5735
+ onClick: () => V(c),
5736
+ "aria-label": `Edit ${c.categoryName}`,
5737
5737
  children: /* @__PURE__ */ e(ur, { color: "#767676" })
5738
5738
  }
5739
5739
  ),
5740
5740
  h && /* @__PURE__ */ e(
5741
5741
  "span",
5742
5742
  {
5743
- className: w === 0 && !d.protected ? "cursor-pointer" : "cursor-not-allowed",
5744
- title: w === 0 && !d.protected ? "Delete" : "Cannot delete a collection with linked items",
5745
- onClick: w === 0 ? () => A(d) : null,
5743
+ className: w === 0 && !c.protected ? "cursor-pointer" : "cursor-not-allowed",
5744
+ title: w === 0 && !c.protected ? "Delete" : "Cannot delete a collection with linked items",
5745
+ onClick: w === 0 ? () => A(c) : null,
5746
5746
  children: /* @__PURE__ */ e(Le, { color: w === 0 ? "#767676" : "#C2C2C2" })
5747
5747
  }
5748
5748
  )
5749
5749
  ] })
5750
5750
  ] })
5751
5751
  },
5752
- d._id
5752
+ c._id
5753
5753
  );
5754
5754
  }) })
5755
5755
  ] });
@@ -5779,7 +5779,7 @@ function Wl({ children: t }) {
5779
5779
  /* @__PURE__ */ e("div", { id: "ui-toast-backdrop", "aria-hidden": "true" })
5780
5780
  ] });
5781
5781
  }
5782
- const Pe = {
5782
+ const Me = {
5783
5783
  containerId: "ui-toast",
5784
5784
  position: "bottom-right",
5785
5785
  autoClose: 3500,
@@ -5793,12 +5793,12 @@ const Lt = () => {
5793
5793
  }, Bt = () => {
5794
5794
  typeof document > "u" || (Qe = Math.max(0, Qe - 1), Qe === 0 && document.body.classList.remove("toast-backdrop"));
5795
5795
  }, Ye = {
5796
- success: (t, a) => Oe.success(t, { ...Pe, ...a }),
5797
- info: (t, a) => Oe.info(t, { ...Pe, ...a }),
5798
- warn: (t, a) => Oe.warn(t, { ...Pe, ...a }),
5796
+ success: (t, a) => Oe.success(t, { ...Me, ...a }),
5797
+ info: (t, a) => Oe.info(t, { ...Me, ...a }),
5798
+ warn: (t, a) => Oe.warn(t, { ...Me, ...a }),
5799
5799
  // Error: no autoClose + modal-like behavior via backdrop
5800
5800
  error: (t, a) => Oe.error(t, {
5801
- ...Pe,
5801
+ ...Me,
5802
5802
  autoClose: !1,
5803
5803
  closeOnClick: !1,
5804
5804
  draggable: !1,
@@ -5821,7 +5821,7 @@ const Lt = () => {
5821
5821
  onClose: Bt
5822
5822
  }
5823
5823
  },
5824
- { ...Pe, ...s }
5824
+ { ...Me, ...s }
5825
5825
  )
5826
5826
  }, Jl = ({
5827
5827
  heading: t = "Data Grid",
@@ -5837,10 +5837,10 @@ const Lt = () => {
5837
5837
  addBtnText: p = "Add",
5838
5838
  // Feature toggles
5839
5839
  showSearch: g = !0,
5840
- showDelete: N = !0,
5840
+ showDelete: v = !0,
5841
5841
  showColumnChooser: x = !0,
5842
5842
  showFilter: r = !1,
5843
- showPrint: v = !1,
5843
+ showPrint: N = !1,
5844
5844
  showExcel: m = !1,
5845
5845
  showPdf: y = !1,
5846
5846
  showRefresh: z = !1,
@@ -5861,7 +5861,7 @@ const Lt = () => {
5861
5861
  searchIconClass: _,
5862
5862
  inputStyle: C
5863
5863
  }) => {
5864
- const u = () => l?.current || i?.current, [S, P] = ae.useState(""), O = (t || "export").toString().trim() || "export", b = `${Y || O}.xlsx`, d = `${q || O}.pdf`, f = (I, k, R) => Math.max(k, Math.min(I, R)), w = H(
5864
+ const u = () => l?.current || i?.current, [S, M] = ae.useState(""), O = (t || "export").toString().trim() || "export", b = `${Y || O}.xlsx`, c = `${q || O}.pdf`, f = (I, k, R) => Math.max(k, Math.min(I, R)), w = H(
5865
5865
  (I) => {
5866
5866
  const k = u();
5867
5867
  if (k?.openColumnChooser) {
@@ -5887,7 +5887,7 @@ const Lt = () => {
5887
5887
  if (R)
5888
5888
  switch (I) {
5889
5889
  case "Delete": {
5890
- if (N) {
5890
+ if (v) {
5891
5891
  const j = R.getSelectedRecords();
5892
5892
  return U(j);
5893
5893
  }
@@ -5897,20 +5897,20 @@ const Lt = () => {
5897
5897
  x && (k ? w(k) : R.openColumnChooser?.());
5898
5898
  break;
5899
5899
  case "Print":
5900
- v && R.print?.();
5900
+ N && R.print?.();
5901
5901
  break;
5902
5902
  case "Excel":
5903
5903
  m && R.excelExport?.({ fileName: b });
5904
5904
  break;
5905
5905
  case "Pdf":
5906
- y && R.pdfExport?.({ fileName: d });
5906
+ y && R.pdfExport?.({ fileName: c });
5907
5907
  break;
5908
5908
  case "Refresh":
5909
5909
  z && L();
5910
5910
  break;
5911
5911
  }
5912
5912
  },
5913
- [x, v, m, y, z, b, d, L, w]
5913
+ [x, N, m, y, z, b, c, L, w]
5914
5914
  );
5915
5915
  return /* @__PURE__ */ n("div", { className: "flex items-center flex-wrap justify-between w-full px-4 py-2 bg-white border border-gray-200 rounded-t-2xl mb-0", children: [
5916
5916
  /* @__PURE__ */ n("div", { className: "flex flex-col", children: [
@@ -5923,12 +5923,12 @@ const Lt = () => {
5923
5923
  ] }),
5924
5924
  /* @__PURE__ */ n("div", { className: "flex items-center gap-3", children: [
5925
5925
  g && /* @__PURE__ */ e("div", { className: "relative", children: /* @__PURE__ */ e(
5926
- be,
5926
+ fe,
5927
5927
  {
5928
5928
  placeholder: E,
5929
5929
  value: S,
5930
5930
  onDebouncedChange: (I) => {
5931
- P(I), V(I);
5931
+ M(I), V(I);
5932
5932
  },
5933
5933
  searchIconSize: A || 16,
5934
5934
  searchIconClass: _ || "",
@@ -5937,7 +5937,7 @@ const Lt = () => {
5937
5937
  ) }),
5938
5938
  /* @__PURE__ */ n("div", { className: "flex gap-3", children: [
5939
5939
  /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5", children: [
5940
- N && /* @__PURE__ */ e(
5940
+ v && /* @__PURE__ */ e(
5941
5941
  Ce,
5942
5942
  {
5943
5943
  icon: Le,
@@ -5962,7 +5962,7 @@ const Lt = () => {
5962
5962
  ariaLabel: "Filters"
5963
5963
  }
5964
5964
  ),
5965
- v && /* @__PURE__ */ e(
5965
+ N && /* @__PURE__ */ e(
5966
5966
  Ce,
5967
5967
  {
5968
5968
  icon: gr,
@@ -6021,10 +6021,10 @@ function Xl(t) {
6021
6021
  allowPaging: o = !0,
6022
6022
  allowSorting: p = !0,
6023
6023
  allowFiltering: g = !1,
6024
- allowGrouping: N = !1,
6024
+ allowGrouping: v = !1,
6025
6025
  allowReordering: x = !0,
6026
6026
  allowResizing: r = !0,
6027
- allowExcelExport: v = !1,
6027
+ allowExcelExport: N = !1,
6028
6028
  allowPdfExport: m = !1,
6029
6029
  showColumnChooser: y = !1,
6030
6030
  enableSearchApi: z = !1,
@@ -6041,8 +6041,8 @@ function Xl(t) {
6041
6041
  } = t, C = he(null), {
6042
6042
  pageSettings: u,
6043
6043
  sortSettings: S,
6044
- ...P
6045
- } = _ || {}, [O, b] = ae.useState(u?.page || l), [d, f] = ae.useState(u?.pageSize || h), [w, D] = ae.useState(S?.sortKey || "updatedDate"), [I, k] = ae.useState(S?.direction || "Descending"), R = ee(() => {
6044
+ ...M
6045
+ } = _ || {}, [O, b] = ae.useState(u?.page || l), [c, f] = ae.useState(u?.pageSize || h), [w, D] = ae.useState(S?.sortKey || "updatedDate"), [I, k] = ae.useState(S?.direction || "Descending"), R = ee(() => {
6046
6046
  const B = $ || {
6047
6047
  type: "Multiple",
6048
6048
  mode: "Row"
@@ -6058,13 +6058,13 @@ function Xl(t) {
6058
6058
  } : B;
6059
6059
  }, [$, E]), j = ee(() => {
6060
6060
  const B = [en];
6061
- return (E || $) && B.push(tn), p && B.push(an), g && B.push(rn), N && B.push(nn), z && B.push(sn), v && B.push(ln), m && B.push(on), y && B.push(cn), r && B.push(dn), x && B.push(mn), B.push(un), B;
6061
+ return (E || $) && B.push(tn), p && B.push(an), g && B.push(rn), v && B.push(nn), z && B.push(sn), N && B.push(ln), m && B.push(on), y && B.push(cn), r && B.push(dn), x && B.push(mn), B.push(un), B;
6062
6062
  }, [
6063
6063
  p,
6064
6064
  g,
6065
- N,
6066
- z,
6067
6065
  v,
6066
+ z,
6067
+ N,
6068
6068
  m,
6069
6069
  y,
6070
6070
  r,
@@ -6087,7 +6087,7 @@ function Xl(t) {
6087
6087
  },
6088
6088
  print: () => B()?.print?.(),
6089
6089
  excelExport: (J) => {
6090
- re("excelExport()", v), B()?.excelExport?.(J);
6090
+ re("excelExport()", N), B()?.excelExport?.(J);
6091
6091
  },
6092
6092
  pdfExport: (J) => {
6093
6093
  re("pdfExport()", m), B()?.pdfExport?.(J);
@@ -6100,7 +6100,7 @@ function Xl(t) {
6100
6100
  getFilteredRecords: () => B()?.getFilteredRecords?.(),
6101
6101
  autoFitColumns: (J) => B()?.autoFitColumns?.(J)
6102
6102
  };
6103
- }, [z, v, m, y]);
6103
+ }, [z, N, m, y]);
6104
6104
  K(() => {
6105
6105
  A && (A.current = F);
6106
6106
  }, [A, F]), K(() => () => {
@@ -6110,7 +6110,7 @@ function Xl(t) {
6110
6110
  const re = String(B || "");
6111
6111
  return re === "Ascending" || re === "Descending" ? re : re.toLowerCase() === "ascending" ? "Ascending" : "Descending";
6112
6112
  }, W = (B) => {
6113
- const re = C.current, J = B?.requestType, ce = J === "paging" ? "paging" : J === "sorting" ? "sorting" : J === "searching" ? "searching" : J === "filtering" ? "filtering" : J === "grouping" ? "grouping" : J === "reorder" ? "reorder" : J === "columnstate" ? "columnstate" : "other", Re = B?.pageSize ?? re?.pageSettings?.pageSize ?? d, Ue = B?.currentPage ?? re?.pageSettings?.currentPage ?? l, rt = B?.columnName && B?.direction ? [{ field: B.columnName, dir: G(B.direction) }] : (re?.sortSettings?.columns || []).map((Ie) => ({
6113
+ const re = C.current, J = B?.requestType, ce = J === "paging" ? "paging" : J === "sorting" ? "sorting" : J === "searching" ? "searching" : J === "filtering" ? "filtering" : J === "grouping" ? "grouping" : J === "reorder" ? "reorder" : J === "columnstate" ? "columnstate" : "other", Re = B?.pageSize ?? re?.pageSettings?.pageSize ?? c, Ue = B?.currentPage ?? re?.pageSettings?.currentPage ?? l, rt = B?.columnName && B?.direction ? [{ field: B.columnName, dir: G(B.direction) }] : (re?.sortSettings?.columns || []).map((Ie) => ({
6114
6114
  field: Ie.field,
6115
6115
  dir: G(Ie.direction ?? Ie.dir)
6116
6116
  })), nt = B?.searchString ?? "", st = B?.columns ?? re?.filterSettings?.columns ?? [];
@@ -6194,10 +6194,10 @@ function Xl(t) {
6194
6194
  }), B;
6195
6195
  }, wa = ee(() => ({
6196
6196
  currentPage: O,
6197
- pageSize: d,
6197
+ pageSize: c,
6198
6198
  pageSizes: u?.pageSizes ?? [10, 20, 40, 60, 80, 100],
6199
6199
  totalCount: s
6200
- }), [O, d, u?.pageSizes, s]), ka = ee(() => S ?? {
6200
+ }), [O, c, u?.pageSizes, s]), ka = ee(() => S ?? {
6201
6201
  columns: [{ field: w, direction: G(I) }],
6202
6202
  allowUnsort: !1
6203
6203
  }, [S, w, I]);
@@ -6214,7 +6214,7 @@ function Xl(t) {
6214
6214
  allowPaging: o,
6215
6215
  allowSorting: p,
6216
6216
  allowFiltering: g,
6217
- allowGrouping: N,
6217
+ allowGrouping: v,
6218
6218
  allowReordering: x,
6219
6219
  allowResizing: r,
6220
6220
  showColumnChooser: y,
@@ -6226,7 +6226,7 @@ function Xl(t) {
6226
6226
  rowDeselected: Y,
6227
6227
  recordDoubleClick: Ne,
6228
6228
  cssClass: "custom-grid-padding",
6229
- ...P,
6229
+ ...M,
6230
6230
  children: [
6231
6231
  /* @__PURE__ */ e(pn, { children: Na() }),
6232
6232
  /* @__PURE__ */ e(gn, { services: j })
@@ -6268,10 +6268,10 @@ function oe({
6268
6268
  details: o = {},
6269
6269
  ...p
6270
6270
  }) {
6271
- const g = He(), N = Ns(p, h), x = (v) => {
6271
+ const g = He(), v = Ns(p, h), x = (N) => {
6272
6272
  l?.({
6273
- key: N,
6274
- checked: v.target.checked,
6273
+ key: v,
6274
+ checked: N.target.checked,
6275
6275
  details: o,
6276
6276
  props: p
6277
6277
  });
@@ -6298,11 +6298,11 @@ function oe({
6298
6298
  );
6299
6299
  }
6300
6300
  oe.propTypes = {
6301
- showCheckbox: c.bool,
6302
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
6303
- onSelect: c.func,
6304
- identity: c.oneOfType([c.string, c.func]),
6305
- details: c.object
6301
+ showCheckbox: d.bool,
6302
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
6303
+ onSelect: d.func,
6304
+ identity: d.oneOfType([d.string, d.func]),
6305
+ details: d.object
6306
6306
  };
6307
6307
  function ws({
6308
6308
  size: t = "md",
@@ -6315,11 +6315,11 @@ function ws({
6315
6315
  group: o = "Global",
6316
6316
  moreGroupsLabel: p = "+ 5 more",
6317
6317
  author: g = "Judith Black",
6318
- timeLabel: N = "Just now",
6318
+ timeLabel: v = "Just now",
6319
6319
  imageUrl: x = "https://images.unsplash.com/photo-1469980098053-382eb10ba017?q=80&w=1200&auto=format&fit=crop",
6320
6320
  description: r = "Columbia University is a prestigious Ivy League institution located in the heart of New York City.",
6321
6321
  // spread remaining props (_id, instanceId, etc.)
6322
- ...v
6322
+ ...N
6323
6323
  }) {
6324
6324
  const m = de(t), y = me[m];
6325
6325
  return /* @__PURE__ */ n(
@@ -6331,7 +6331,7 @@ function ws({
6331
6331
  onSelect: i,
6332
6332
  identity: l,
6333
6333
  details: { type: "activity", title: h, group: o, author: g },
6334
- ...v,
6334
+ ...N,
6335
6335
  children: [
6336
6336
  /* @__PURE__ */ e("div", { className: "flex items-start justify-between", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${y.title} ml-3`, children: h }) }),
6337
6337
  /* @__PURE__ */ n("div", { className: `text-zinc-500 dark:text-zinc-400 ${y.meta}`, children: [
@@ -6349,13 +6349,13 @@ function ws({
6349
6349
  )
6350
6350
  ] }) : null,
6351
6351
  /* @__PURE__ */ e("span", { "aria-hidden": "true", className: "px-2", children: "•" }),
6352
- /* @__PURE__ */ e("span", { children: N })
6352
+ /* @__PURE__ */ e("span", { children: v })
6353
6353
  ] }),
6354
6354
  /* @__PURE__ */ n("div", { className: "mt-2 flex items-center gap-3", children: [
6355
6355
  /* @__PURE__ */ e(we, { name: "John", size: "medium" }),
6356
6356
  /* @__PURE__ */ n("div", { className: "leading-tight", children: [
6357
6357
  /* @__PURE__ */ e("div", { className: "text-sm font-medium text-zinc-800 dark:text-zinc-100", children: g }),
6358
- /* @__PURE__ */ e("div", { className: `text-zinc-500 dark:text-zinc-400 ${y.meta}`, children: N })
6358
+ /* @__PURE__ */ e("div", { className: `text-zinc-500 dark:text-zinc-400 ${y.meta}`, children: v })
6359
6359
  ] })
6360
6360
  ] }),
6361
6361
  /* @__PURE__ */ n("p", { className: "mt-2 text-zinc-700 dark:text-zinc-300", children: [
@@ -6389,18 +6389,18 @@ function ws({
6389
6389
  );
6390
6390
  }
6391
6391
  ws.propTypes = {
6392
- size: c.string,
6393
- showCheckbox: c.bool,
6394
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
6395
- onSelect: c.func,
6396
- identity: c.oneOfType([c.string, c.func]),
6397
- title: c.string,
6398
- group: c.string,
6399
- moreGroupsLabel: c.string,
6400
- author: c.string,
6401
- timeLabel: c.string,
6402
- imageUrl: c.string,
6403
- description: c.string
6392
+ size: d.string,
6393
+ showCheckbox: d.bool,
6394
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
6395
+ onSelect: d.func,
6396
+ identity: d.oneOfType([d.string, d.func]),
6397
+ title: d.string,
6398
+ group: d.string,
6399
+ moreGroupsLabel: d.string,
6400
+ author: d.string,
6401
+ timeLabel: d.string,
6402
+ imageUrl: d.string,
6403
+ description: d.string
6404
6404
  };
6405
6405
  const ks = "px-2 py-1 rounded-full text-[11px] font-semibold tracking-wide border border-zinc-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 text-zinc-700 dark:text-zinc-200", Cs = () => /* @__PURE__ */ e("span", { className: "ml-1 inline-block h-2.5 w-2.5 rounded-full bg-emerald-500 align-middle", "aria-label": "verified" }), zs = [
6406
6406
  {
@@ -6440,7 +6440,7 @@ function Ds({
6440
6440
  // spread for identity (_id/instanceId/etc)
6441
6441
  ...g
6442
6442
  }) {
6443
- const N = de(t), x = me[N], r = Ss[N], v = (m) => `px-1 pb-2 text-sm font-medium ${m === o ? "text-zinc-900 dark:text-zinc-100 border-b-2" : "text-zinc-500 dark:text-zinc-400"}`;
6443
+ const v = de(t), x = me[v], r = Ss[v], N = (m) => `px-1 pb-2 text-sm font-medium ${m === o ? "text-zinc-900 dark:text-zinc-100 border-b-2" : "text-zinc-500 dark:text-zinc-400"}`;
6444
6444
  return /* @__PURE__ */ n(
6445
6445
  oe,
6446
6446
  {
@@ -6467,14 +6467,14 @@ function Ds({
6467
6467
  /* @__PURE__ */ e(
6468
6468
  "span",
6469
6469
  {
6470
- className: `${v("joined")} ${o === "joined" ? "border-[var(--primaryColor)]" : "border-transparent"}`,
6470
+ className: `${N("joined")} ${o === "joined" ? "border-[var(--primaryColor)]" : "border-transparent"}`,
6471
6471
  children: "Joined"
6472
6472
  }
6473
6473
  ),
6474
6474
  /* @__PURE__ */ e(
6475
6475
  "span",
6476
6476
  {
6477
- className: `${v("suggested")} ${o === "suggested" ? "border-[var(--primaryColor)]" : "border-transparent"}`,
6477
+ className: `${N("suggested")} ${o === "suggested" ? "border-[var(--primaryColor)]" : "border-transparent"}`,
6478
6478
  children: "Suggested"
6479
6479
  }
6480
6480
  )
@@ -6544,22 +6544,22 @@ function Ds({
6544
6544
  );
6545
6545
  }
6546
6546
  Ds.propTypes = {
6547
- size: c.string,
6548
- showCheckbox: c.bool,
6549
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
6550
- onSelect: c.func,
6551
- identity: c.oneOfType([c.string, c.func]),
6552
- title: c.string,
6553
- activeTab: c.oneOf(["joined", "suggested"]),
6554
- items: c.arrayOf(
6555
- c.shape({
6556
- _id: c.oneOfType([c.string, c.number]),
6557
- name: c.string,
6558
- members: c.number,
6559
- category: c.string,
6560
- thumb: c.string,
6561
- joined: c.bool,
6562
- description: c.string
6547
+ size: d.string,
6548
+ showCheckbox: d.bool,
6549
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
6550
+ onSelect: d.func,
6551
+ identity: d.oneOfType([d.string, d.func]),
6552
+ title: d.string,
6553
+ activeTab: d.oneOf(["joined", "suggested"]),
6554
+ items: d.arrayOf(
6555
+ d.shape({
6556
+ _id: d.oneOfType([d.string, d.number]),
6557
+ name: d.string,
6558
+ members: d.number,
6559
+ category: d.string,
6560
+ thumb: d.string,
6561
+ joined: d.bool,
6562
+ description: d.string
6563
6563
  })
6564
6564
  )
6565
6565
  };
@@ -6624,11 +6624,11 @@ function As({
6624
6624
  // spread for identity fields: _id / id / instanceId etc.
6625
6625
  ...p
6626
6626
  }) {
6627
- const g = de(t), N = me[g], x = Ts[g];
6627
+ const g = de(t), v = me[g], x = Ts[g];
6628
6628
  return /* @__PURE__ */ n(
6629
6629
  oe,
6630
6630
  {
6631
- className: `flex flex-col ${N.card} ${x.wrap || ""}`,
6631
+ className: `flex flex-col ${v.card} ${x.wrap || ""}`,
6632
6632
  showCheckbox: a,
6633
6633
  checkboxPosition: s,
6634
6634
  onSelect: i,
@@ -6637,7 +6637,7 @@ function As({
6637
6637
  ...p,
6638
6638
  children: [
6639
6639
  /* @__PURE__ */ n("div", { className: "flex items-start justify-between", children: [
6640
- /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${N.title}`, children: h }),
6640
+ /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${v.title}`, children: h }),
6641
6641
  /* @__PURE__ */ e("span", { className: "text-sm text-indigo-700 cursor-default select-none", children: "View All" })
6642
6642
  ] }),
6643
6643
  g === "lg" ? (
@@ -6682,20 +6682,20 @@ function As({
6682
6682
  );
6683
6683
  }
6684
6684
  As.propTypes = {
6685
- size: c.string,
6686
- showCheckbox: c.bool,
6687
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
6688
- onSelect: c.func,
6689
- identity: c.oneOfType([c.string, c.func]),
6690
- title: c.string,
6691
- items: c.arrayOf(
6692
- c.shape({
6693
- _id: c.oneOfType([c.string, c.number]),
6694
- title: c.string,
6695
- date: c.string,
6696
- tag: c.string,
6697
- thumb: c.string,
6698
- excerpt: c.string
6685
+ size: d.string,
6686
+ showCheckbox: d.bool,
6687
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
6688
+ onSelect: d.func,
6689
+ identity: d.oneOfType([d.string, d.func]),
6690
+ title: d.string,
6691
+ items: d.arrayOf(
6692
+ d.shape({
6693
+ _id: d.oneOfType([d.string, d.number]),
6694
+ title: d.string,
6695
+ date: d.string,
6696
+ tag: d.string,
6697
+ thumb: d.string,
6698
+ excerpt: d.string
6699
6699
  })
6700
6700
  )
6701
6701
  };
@@ -6740,13 +6740,13 @@ function Os({
6740
6740
  filters: p = Fs,
6741
6741
  activeFilter: g = "All",
6742
6742
  // NEW: iframe controls
6743
- mapQuery: N = "Florida",
6743
+ mapQuery: v = "Florida",
6744
6744
  zoom: x = 12,
6745
6745
  mapUrl: r,
6746
6746
  // optional full embed URL override
6747
- ...v
6747
+ ...N
6748
6748
  }) {
6749
- const m = de(t), y = me[m], z = Es[m], T = r || Is(N, x);
6749
+ const m = de(t), y = me[m], z = Es[m], T = r || Is(v, x);
6750
6750
  return /* @__PURE__ */ e(
6751
6751
  oe,
6752
6752
  {
@@ -6755,8 +6755,8 @@ function Os({
6755
6755
  checkboxPosition: s,
6756
6756
  onSelect: i,
6757
6757
  identity: l,
6758
- details: { type: "campus-map", title: h, campusName: o, activeFilter: g, mapQuery: N, zoom: x },
6759
- ...v,
6758
+ details: { type: "campus-map", title: h, campusName: o, activeFilter: g, mapQuery: v, zoom: x },
6759
+ ...N,
6760
6760
  children: /* @__PURE__ */ n("div", { className: `relative mt-3 overflow-hidden rounded-2xl border border-zinc-200 dark:border-zinc-800 ${z.mapH}`, children: [
6761
6761
  /* @__PURE__ */ e(
6762
6762
  "iframe",
@@ -6790,22 +6790,22 @@ function Os({
6790
6790
  );
6791
6791
  }
6792
6792
  Os.propTypes = {
6793
- size: c.string,
6794
- showCheckbox: c.bool,
6795
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
6796
- onSelect: c.func,
6797
- identity: c.oneOfType([c.string, c.func]),
6798
- title: c.string,
6799
- campusName: c.string,
6800
- filters: c.arrayOf(c.string),
6801
- activeFilter: c.string,
6802
- mapQuery: c.string,
6793
+ size: d.string,
6794
+ showCheckbox: d.bool,
6795
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
6796
+ onSelect: d.func,
6797
+ identity: d.oneOfType([d.string, d.func]),
6798
+ title: d.string,
6799
+ campusName: d.string,
6800
+ filters: d.arrayOf(d.string),
6801
+ activeFilter: d.string,
6802
+ mapQuery: d.string,
6803
6803
  // e.g., "Florida", "New York, NY", "Columbia University"
6804
- zoom: c.number,
6805
- mapUrl: c.string
6804
+ zoom: d.number,
6805
+ mapUrl: d.string
6806
6806
  // optional full embed URL override
6807
6807
  };
6808
- const Ps = [
6808
+ const Ms = [
6809
6809
  {
6810
6810
  _id: "ev-1",
6811
6811
  title: "Warhawk Weekly 10-1: Master the future; Rolling out 'Red'",
@@ -6836,7 +6836,7 @@ const Ps = [
6836
6836
  image: "https://images.unsplash.com/photo-1492684223066-81342ee5ff30?q=80&w=1200&auto=format&fit=crop",
6837
6837
  description: ""
6838
6838
  }
6839
- ], Ms = {
6839
+ ], Ps = {
6840
6840
  sm: {
6841
6841
  wrap: "max-w-sm w-full",
6842
6842
  listGap: "gap-3",
@@ -6948,17 +6948,17 @@ function Vs({
6948
6948
  onSelect: i,
6949
6949
  identity: l = "_id",
6950
6950
  title: h = "Upcoming Events",
6951
- events: o = Ps,
6951
+ events: o = Ms,
6952
6952
  selectedIndex: p = 0,
6953
6953
  ...g
6954
6954
  }) {
6955
- const [N, x] = M(p), r = de(t), v = me[r], m = Ms[r], y = o[N] || o[0], z = ($, E) => {
6955
+ const [v, x] = P(p), r = de(t), N = me[r], m = Ps[r], y = o[v] || o[0], z = ($, E) => {
6956
6956
  x(E), i?.($);
6957
6957
  }, T = r === "lg";
6958
6958
  return /* @__PURE__ */ n(
6959
6959
  oe,
6960
6960
  {
6961
- className: `flex flex-col ${v.card} ${m.wrap}`,
6961
+ className: `flex flex-col ${N.card} ${m.wrap}`,
6962
6962
  showCheckbox: a,
6963
6963
  checkboxPosition: s,
6964
6964
  onSelect: i,
@@ -6967,7 +6967,7 @@ function Vs({
6967
6967
  ...g,
6968
6968
  children: [
6969
6969
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between mb-4", children: [
6970
- /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${v.title}`, children: h }),
6970
+ /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${N.title}`, children: h }),
6971
6971
  /* @__PURE__ */ e("button", { className: "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" })
6972
6972
  ] }),
6973
6973
  T ? (
@@ -6978,7 +6978,7 @@ function Vs({
6978
6978
  {
6979
6979
  ev: $,
6980
6980
  sizeMeta: m,
6981
- isSelected: E === N,
6981
+ isSelected: E === v,
6982
6982
  onClick: (L) => z(L, E)
6983
6983
  },
6984
6984
  $._id || $.id || E
@@ -6992,7 +6992,7 @@ function Vs({
6992
6992
  {
6993
6993
  ev: $,
6994
6994
  sizeMeta: m,
6995
- isSelected: E === N,
6995
+ isSelected: E === v,
6996
6996
  onClick: (L) => z(L, E)
6997
6997
  },
6998
6998
  $._id || $.id || E
@@ -7004,25 +7004,25 @@ function Vs({
7004
7004
  );
7005
7005
  }
7006
7006
  Vs.propTypes = {
7007
- size: c.string,
7008
- showCheckbox: c.bool,
7009
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
7010
- onSelect: c.func,
7011
- identity: c.oneOfType([c.string, c.func]),
7012
- title: c.string,
7013
- events: c.arrayOf(
7014
- c.shape({
7015
- _id: c.oneOfType([c.string, c.number]),
7016
- title: c.string,
7017
- date: c.string,
7018
- allDayNote: c.string,
7019
- location: c.string,
7020
- url: c.string,
7021
- image: c.string,
7022
- description: c.string
7007
+ size: d.string,
7008
+ showCheckbox: d.bool,
7009
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
7010
+ onSelect: d.func,
7011
+ identity: d.oneOfType([d.string, d.func]),
7012
+ title: d.string,
7013
+ events: d.arrayOf(
7014
+ d.shape({
7015
+ _id: d.oneOfType([d.string, d.number]),
7016
+ title: d.string,
7017
+ date: d.string,
7018
+ allDayNote: d.string,
7019
+ location: d.string,
7020
+ url: d.string,
7021
+ image: d.string,
7022
+ description: d.string
7023
7023
  })
7024
7024
  ),
7025
- selectedIndex: c.number
7025
+ selectedIndex: d.number
7026
7026
  };
7027
7027
  const js = [
7028
7028
  {
@@ -7166,17 +7166,17 @@ function Gs({
7166
7166
  emails: o = js,
7167
7167
  selectedIndex: p = 0,
7168
7168
  onStar: g,
7169
- onPin: N,
7169
+ onPin: v,
7170
7170
  ...x
7171
7171
  }) {
7172
- const [r, v] = M(p), m = de(t), y = me[m], z = _s[m], T = (L, V) => {
7173
- v(V), i?.(L);
7172
+ const [r, N] = P(p), m = de(t), y = me[m], z = _s[m], T = (L, V) => {
7173
+ N(V), i?.(L);
7174
7174
  }, $ = (L) => {
7175
7175
  const V = { ...L, starred: !L.starred };
7176
7176
  g?.(V);
7177
7177
  }, E = (L) => {
7178
7178
  const V = { ...L, pinned: !L.pinned };
7179
- N?.(V);
7179
+ v?.(V);
7180
7180
  };
7181
7181
  return /* @__PURE__ */ n(
7182
7182
  oe,
@@ -7190,7 +7190,7 @@ function Gs({
7190
7190
  ...x,
7191
7191
  children: [
7192
7192
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${y.title}`, children: h }) }),
7193
- /* @__PURE__ */ e(be, { placeholder: "Type to search..." }),
7193
+ /* @__PURE__ */ e(fe, { placeholder: "Type to search..." }),
7194
7194
  /* @__PURE__ */ e("div", { className: "space-y-0", children: o.map((L, V) => /* @__PURE__ */ e(
7195
7195
  Us,
7196
7196
  {
@@ -7209,28 +7209,28 @@ function Gs({
7209
7209
  );
7210
7210
  }
7211
7211
  Gs.propTypes = {
7212
- size: c.string,
7213
- showCheckbox: c.bool,
7214
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
7215
- onSelect: c.func,
7216
- identity: c.oneOfType([c.string, c.func]),
7217
- title: c.string,
7218
- emails: c.arrayOf(
7219
- c.shape({
7220
- _id: c.oneOfType([c.string, c.number]),
7221
- sender: c.string,
7222
- time: c.string,
7223
- subject: c.string,
7224
- preview: c.string,
7225
- unread: c.bool,
7226
- starred: c.bool,
7227
- pinned: c.bool,
7228
- important: c.bool
7212
+ size: d.string,
7213
+ showCheckbox: d.bool,
7214
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
7215
+ onSelect: d.func,
7216
+ identity: d.oneOfType([d.string, d.func]),
7217
+ title: d.string,
7218
+ emails: d.arrayOf(
7219
+ d.shape({
7220
+ _id: d.oneOfType([d.string, d.number]),
7221
+ sender: d.string,
7222
+ time: d.string,
7223
+ subject: d.string,
7224
+ preview: d.string,
7225
+ unread: d.bool,
7226
+ starred: d.bool,
7227
+ pinned: d.bool,
7228
+ important: d.bool
7229
7229
  })
7230
7230
  ),
7231
- selectedIndex: c.number,
7232
- onStar: c.func,
7233
- onPin: c.func
7231
+ selectedIndex: d.number,
7232
+ onStar: d.func,
7233
+ onPin: d.func
7234
7234
  };
7235
7235
  const qs = [
7236
7236
  {
@@ -7421,13 +7421,13 @@ function Xs({
7421
7421
  selectedIndex: p = 0,
7422
7422
  ...g
7423
7423
  }) {
7424
- const [N, x] = M(p), r = de(t), v = me[r], m = Ys[r], y = ($, E) => {
7424
+ const [v, x] = P(p), r = de(t), N = me[r], m = Ys[r], y = ($, E) => {
7425
7425
  x(E), i?.($);
7426
- }, z = o[N] || o[0], T = m.layout === "split";
7426
+ }, z = o[v] || o[0], T = m.layout === "split";
7427
7427
  return /* @__PURE__ */ n(
7428
7428
  oe,
7429
7429
  {
7430
- className: `flex flex-col ${v.card} ${m.wrap}`,
7430
+ className: `flex flex-col ${N.card} ${m.wrap}`,
7431
7431
  showCheckbox: a,
7432
7432
  checkboxPosition: s,
7433
7433
  onSelect: i,
@@ -7435,7 +7435,7 @@ function Xs({
7435
7435
  details: { type: "directory", title: h, count: o?.length ?? 0 },
7436
7436
  ...g,
7437
7437
  children: [
7438
- /* @__PURE__ */ e("div", { className: "flex items-center justify-between mb-4", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${v.title}`, children: h }) }),
7438
+ /* @__PURE__ */ e("div", { className: "flex items-center justify-between mb-4", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${N.title}`, children: h }) }),
7439
7439
  /* @__PURE__ */ e(Js, { sizeMeta: m }),
7440
7440
  T ? /* @__PURE__ */ n("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6 min-h-0", children: [
7441
7441
  /* @__PURE__ */ e("div", { className: "space-y-3", children: o.map(($, E) => /* @__PURE__ */ e(
@@ -7443,7 +7443,7 @@ function Xs({
7443
7443
  {
7444
7444
  contact: $,
7445
7445
  sizeMeta: m,
7446
- isSelected: E === N,
7446
+ isSelected: E === v,
7447
7447
  onClick: (L) => y(L, E)
7448
7448
  },
7449
7449
  $._id || $.id || E
@@ -7462,7 +7462,7 @@ function Xs({
7462
7462
  {
7463
7463
  contact: $,
7464
7464
  sizeMeta: m,
7465
- isSelected: E === N,
7465
+ isSelected: E === v,
7466
7466
  onClick: (L) => y(L, E)
7467
7467
  },
7468
7468
  $._id || $.id || E
@@ -7474,25 +7474,25 @@ function Xs({
7474
7474
  );
7475
7475
  }
7476
7476
  Xs.propTypes = {
7477
- size: c.string,
7478
- showCheckbox: c.bool,
7479
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
7480
- onSelect: c.func,
7481
- identity: c.oneOfType([c.string, c.func]),
7482
- title: c.string,
7483
- contacts: c.arrayOf(
7484
- c.shape({
7485
- _id: c.oneOfType([c.string, c.number]),
7486
- name: c.string,
7487
- phone: c.string,
7488
- department: c.string,
7489
- email: c.string,
7490
- campus: c.string,
7491
- building: c.string,
7492
- initials: c.string
7477
+ size: d.string,
7478
+ showCheckbox: d.bool,
7479
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
7480
+ onSelect: d.func,
7481
+ identity: d.oneOfType([d.string, d.func]),
7482
+ title: d.string,
7483
+ contacts: d.arrayOf(
7484
+ d.shape({
7485
+ _id: d.oneOfType([d.string, d.number]),
7486
+ name: d.string,
7487
+ phone: d.string,
7488
+ department: d.string,
7489
+ email: d.string,
7490
+ campus: d.string,
7491
+ building: d.string,
7492
+ initials: d.string
7493
7493
  })
7494
7494
  ),
7495
- selectedIndex: c.number
7495
+ selectedIndex: d.number
7496
7496
  };
7497
7497
  const Te = (t) => new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(Number(t || 0));
7498
7498
  function Qs({ side: t = "left", date: a, title: s, amount: i, kind: l = "payment" }) {
@@ -7554,7 +7554,7 @@ function Zs({
7554
7554
  termLabel: o = "Spring 2024",
7555
7555
  balance: p = 3e3,
7556
7556
  totalCharges: g = 4440,
7557
- totalPayments: N = 1568,
7557
+ totalPayments: v = 1568,
7558
7558
  transactions: x = [
7559
7559
  {
7560
7560
  id: "t1",
@@ -7573,7 +7573,7 @@ function Zs({
7573
7573
  ],
7574
7574
  ...r
7575
7575
  }) {
7576
- const v = de(t), m = me[v], y = Hs[v];
7576
+ const N = de(t), m = me[N], y = Hs[N];
7577
7577
  return /* @__PURE__ */ n(
7578
7578
  oe,
7579
7579
  {
@@ -7582,7 +7582,7 @@ function Zs({
7582
7582
  checkboxPosition: s,
7583
7583
  onSelect: i,
7584
7584
  identity: l,
7585
- details: { type: "account-summary", termLabel: o, balance: p, totalCharges: g, totalPayments: N },
7585
+ details: { type: "account-summary", termLabel: o, balance: p, totalCharges: g, totalPayments: v },
7586
7586
  ...r,
7587
7587
  children: [
7588
7588
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
@@ -7603,7 +7603,7 @@ function Zs({
7603
7603
  ] }),
7604
7604
  /* @__PURE__ */ n("div", { children: [
7605
7605
  /* @__PURE__ */ e("div", { className: "text-sm text-zinc-600 dark:text-zinc-400", children: "Total Payments" }),
7606
- /* @__PURE__ */ e("div", { className: "mt-1 font-semibold text-green-600", children: Te(N) })
7606
+ /* @__PURE__ */ e("div", { className: "mt-1 font-semibold text-green-600", children: Te(v) })
7607
7607
  ] })
7608
7608
  ] })
7609
7609
  ] }),
@@ -7615,7 +7615,7 @@ function Zs({
7615
7615
  ] }),
7616
7616
  /* @__PURE__ */ n("div", { children: [
7617
7617
  /* @__PURE__ */ e("div", { className: "text-sm text-zinc-600 dark:text-zinc-400", children: "Total Payments" }),
7618
- /* @__PURE__ */ e("div", { className: "mt-1 font-semibold text-green-600", children: Te(N) })
7618
+ /* @__PURE__ */ e("div", { className: "mt-1 font-semibold text-green-600", children: Te(v) })
7619
7619
  ] })
7620
7620
  ] }),
7621
7621
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: x.slice(0, 2).map((z, T) => /* @__PURE__ */ e(
@@ -7649,23 +7649,23 @@ function Zs({
7649
7649
  );
7650
7650
  }
7651
7651
  Zs.propTypes = {
7652
- size: c.string,
7653
- showCheckbox: c.bool,
7654
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
7655
- onSelect: c.func,
7656
- identity: c.oneOfType([c.string, c.func]),
7657
- title: c.string,
7658
- termLabel: c.string,
7659
- balance: c.oneOfType([c.number, c.string]),
7660
- totalCharges: c.oneOfType([c.number, c.string]),
7661
- totalPayments: c.oneOfType([c.number, c.string]),
7662
- transactions: c.arrayOf(
7663
- c.shape({
7664
- id: c.oneOfType([c.string, c.number]),
7665
- date: c.string,
7666
- title: c.string,
7667
- amount: c.oneOfType([c.number, c.string]),
7668
- kind: c.oneOf(["payment", "charge"])
7652
+ size: d.string,
7653
+ showCheckbox: d.bool,
7654
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
7655
+ onSelect: d.func,
7656
+ identity: d.oneOfType([d.string, d.func]),
7657
+ title: d.string,
7658
+ termLabel: d.string,
7659
+ balance: d.oneOfType([d.number, d.string]),
7660
+ totalCharges: d.oneOfType([d.number, d.string]),
7661
+ totalPayments: d.oneOfType([d.number, d.string]),
7662
+ transactions: d.arrayOf(
7663
+ d.shape({
7664
+ id: d.oneOfType([d.string, d.number]),
7665
+ date: d.string,
7666
+ title: d.string,
7667
+ amount: d.oneOfType([d.number, d.string]),
7668
+ kind: d.oneOf(["payment", "charge"])
7669
7669
  })
7670
7670
  )
7671
7671
  };
@@ -7746,7 +7746,7 @@ function el({
7746
7746
  term: o = "Fall 2025",
7747
7747
  ...p
7748
7748
  }) {
7749
- const [g, N] = M("vacation"), [x, r] = M(!1), v = de(t), m = me[v], y = Ks[v], z = We.find((T) => T.id === g) || We[0];
7749
+ const [g, v] = P("vacation"), [x, r] = P(!1), N = de(t), m = me[N], y = Ks[N], z = We.find((T) => T.id === g) || We[0];
7750
7750
  return /* @__PURE__ */ n(
7751
7751
  oe,
7752
7752
  {
@@ -7786,7 +7786,7 @@ function el({
7786
7786
  "button",
7787
7787
  {
7788
7788
  className: `flex-1 py-2 px-4 text-center ${y.tab} font-medium border-b-2 transition-colors duration-200 ${g === T.id ? "border-blue-500 text-blue-600 dark:text-blue-400" : "border-transparent text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100"}`,
7789
- onClick: () => N(T.id),
7789
+ onClick: () => v(T.id),
7790
7790
  children: T.name.split(" ")[0]
7791
7791
  },
7792
7792
  T.id
@@ -7813,13 +7813,13 @@ function el({
7813
7813
  );
7814
7814
  }
7815
7815
  el.propTypes = {
7816
- size: c.string,
7817
- showCheckbox: c.bool,
7818
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
7819
- onSelect: c.func,
7820
- identity: c.oneOfType([c.string, c.func]),
7821
- title: c.string,
7822
- term: c.string
7816
+ size: d.string,
7817
+ showCheckbox: d.bool,
7818
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
7819
+ onSelect: d.func,
7820
+ identity: d.oneOfType([d.string, d.func]),
7821
+ title: d.string,
7822
+ term: d.string
7823
7823
  };
7824
7824
  const tl = [
7825
7825
  {
@@ -7937,11 +7937,11 @@ function nl({
7937
7937
  subtitle: o = "Drive Shared",
7938
7938
  ...p
7939
7939
  }) {
7940
- const [g, N] = M(!1), x = de(t), r = me[x], v = rl[x];
7940
+ const [g, v] = P(!1), x = de(t), r = me[x], N = rl[x];
7941
7941
  return /* @__PURE__ */ n(
7942
7942
  oe,
7943
7943
  {
7944
- className: `flex flex-col ${r.card} ${v.wrap}`,
7944
+ className: `flex flex-col ${r.card} ${N.wrap}`,
7945
7945
  showCheckbox: a,
7946
7946
  checkboxPosition: s,
7947
7947
  onSelect: i,
@@ -7951,7 +7951,7 @@ function nl({
7951
7951
  children: [
7952
7952
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
7953
7953
  /* @__PURE__ */ n("div", { children: [
7954
- /* @__PURE__ */ e("h3", { className: `text-zinc-900 dark:text-zinc-100 ${v.title} mb-1`, children: h }),
7954
+ /* @__PURE__ */ e("h3", { className: `text-zinc-900 dark:text-zinc-100 ${N.title} mb-1`, children: h }),
7955
7955
  /* @__PURE__ */ e("div", { className: "text-zinc-600 dark:text-zinc-400 text-sm", children: o })
7956
7956
  ] }),
7957
7957
  /* @__PURE__ */ n("div", { className: "relative", children: [
@@ -7959,7 +7959,7 @@ function nl({
7959
7959
  "button",
7960
7960
  {
7961
7961
  className: "flex items-center gap-1 p-2 text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100 hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-md transition-colors duration-200",
7962
- onClick: () => N(!g),
7962
+ onClick: () => v(!g),
7963
7963
  children: /* @__PURE__ */ e(Ht, { className: "h-4 w-4" })
7964
7964
  }
7965
7965
  ),
@@ -7975,21 +7975,21 @@ function nl({
7975
7975
  ] })
7976
7976
  ] })
7977
7977
  ] }),
7978
- /* @__PURE__ */ e("div", { className: `grid ${v.gridCols} gap-3 `, children: tl.map((m) => /* @__PURE__ */ e(
7978
+ /* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-3 `, children: tl.map((m) => /* @__PURE__ */ e(
7979
7979
  Gt,
7980
7980
  {
7981
7981
  item: m,
7982
- sizeMeta: v
7982
+ sizeMeta: N
7983
7983
  },
7984
7984
  m.id
7985
7985
  )) }),
7986
- v.showRecent && /* @__PURE__ */ n("div", { className: "", children: [
7987
- /* @__PURE__ */ e("h4", { className: `font-semibold text-zinc-900 dark:text-zinc-100 mb-3 ${v.item}`, children: "Recent Files" }),
7986
+ N.showRecent && /* @__PURE__ */ n("div", { className: "", children: [
7987
+ /* @__PURE__ */ e("h4", { className: `font-semibold text-zinc-900 dark:text-zinc-100 mb-3 ${N.item}`, children: "Recent Files" }),
7988
7988
  /* @__PURE__ */ e("div", { className: "space-y-2", children: al.map((m) => /* @__PURE__ */ e(
7989
7989
  Gt,
7990
7990
  {
7991
7991
  item: m,
7992
- sizeMeta: v,
7992
+ sizeMeta: N,
7993
7993
  showDate: !0
7994
7994
  },
7995
7995
  m.id
@@ -8004,13 +8004,13 @@ function nl({
8004
8004
  );
8005
8005
  }
8006
8006
  nl.propTypes = {
8007
- size: c.string,
8008
- showCheckbox: c.bool,
8009
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
8010
- onSelect: c.func,
8011
- identity: c.oneOfType([c.string, c.func]),
8012
- title: c.string,
8013
- subtitle: c.string
8007
+ size: d.string,
8008
+ showCheckbox: d.bool,
8009
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
8010
+ onSelect: d.func,
8011
+ identity: d.oneOfType([d.string, d.func]),
8012
+ title: d.string,
8013
+ subtitle: d.string
8014
8014
  };
8015
8015
  const sl = [
8016
8016
  {
@@ -8129,7 +8129,7 @@ const sl = [
8129
8129
  }
8130
8130
  };
8131
8131
  function ol({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8132
- const [l, h] = M(!1), o = va(t.type), p = il(t.type);
8132
+ const [l, h] = P(!1), o = va(t.type), p = il(t.type);
8133
8133
  return l ? null : /* @__PURE__ */ n("div", { className: `relative rounded-lg border-l-4 p-4 transition-all duration-200 ${o.bg} ${o.border} ${t.read ? "border-l-2 opacity-80" : "border-l-4"}`, style: { borderLeftColor: o.accent }, children: [
8134
8134
  /* @__PURE__ */ e(
8135
8135
  "button",
@@ -8153,7 +8153,7 @@ function ol({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8153
8153
  ] });
8154
8154
  }
8155
8155
  function cl({ alert: t, onDismiss: a }) {
8156
- const [s, i] = M(!1), l = va("banner"), h = () => {
8156
+ const [s, i] = P(!1), l = va("banner"), h = () => {
8157
8157
  i(!0), a?.(t);
8158
8158
  };
8159
8159
  return s ? null : /* @__PURE__ */ e("div", { className: `rounded-lg border p-4 ${l.bg} ${l.border} relative`, children: /* @__PURE__ */ n("div", { className: "flex items-start gap-3", children: [
@@ -8183,21 +8183,21 @@ function dl({
8183
8183
  showBanner: p = !0,
8184
8184
  ...g
8185
8185
  }) {
8186
- const [N, x] = M(o), r = de(t), v = me[r], m = ll[r], y = ($) => {
8186
+ const [v, x] = P(o), r = de(t), N = me[r], m = ll[r], y = ($) => {
8187
8187
  x((E) => E.filter((L) => L.id !== $.id));
8188
- }, z = N.find(($) => $.type === "banner"), T = N.filter(($) => $.type !== "banner");
8188
+ }, z = v.find(($) => $.type === "banner"), T = v.filter(($) => $.type !== "banner");
8189
8189
  return /* @__PURE__ */ n(
8190
8190
  oe,
8191
8191
  {
8192
- className: `flex flex-col ${v.card} ${m.wrap}`,
8192
+ className: `flex flex-col ${N.card} ${m.wrap}`,
8193
8193
  showCheckbox: a,
8194
8194
  checkboxPosition: s,
8195
8195
  onSelect: i,
8196
8196
  identity: l,
8197
- details: { type: "alerts", title: h, count: N.length },
8197
+ details: { type: "alerts", title: h, count: v.length },
8198
8198
  ...g,
8199
8199
  children: [
8200
- /* @__PURE__ */ e("div", { className: "flex items-center justify-between ", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${v.title}`, children: h }) }),
8200
+ /* @__PURE__ */ e("div", { className: "flex items-center justify-between ", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${N.title}`, children: h }) }),
8201
8201
  p && z && t !== "sm" && /* @__PURE__ */ e(
8202
8202
  cl,
8203
8203
  {
@@ -8220,24 +8220,24 @@ function dl({
8220
8220
  );
8221
8221
  }
8222
8222
  dl.propTypes = {
8223
- size: c.string,
8224
- showCheckbox: c.bool,
8225
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
8226
- onSelect: c.func,
8227
- identity: c.oneOfType([c.string, c.func]),
8228
- title: c.string,
8229
- alerts: c.arrayOf(
8230
- c.shape({
8231
- id: c.oneOfType([c.string, c.number]),
8232
- type: c.oneOf(["warning", "info", "success", "banner"]),
8233
- title: c.string,
8234
- message: c.string,
8235
- time: c.string,
8236
- read: c.bool,
8237
- priority: c.oneOf(["low", "medium", "high"])
8223
+ size: d.string,
8224
+ showCheckbox: d.bool,
8225
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
8226
+ onSelect: d.func,
8227
+ identity: d.oneOfType([d.string, d.func]),
8228
+ title: d.string,
8229
+ alerts: d.arrayOf(
8230
+ d.shape({
8231
+ id: d.oneOfType([d.string, d.number]),
8232
+ type: d.oneOf(["warning", "info", "success", "banner"]),
8233
+ title: d.string,
8234
+ message: d.string,
8235
+ time: d.string,
8236
+ read: d.bool,
8237
+ priority: d.oneOf(["low", "medium", "high"])
8238
8238
  })
8239
8239
  ),
8240
- showBanner: c.bool
8240
+ showBanner: d.bool
8241
8241
  };
8242
8242
  const ml = [
8243
8243
  {
@@ -8317,7 +8317,7 @@ const ml = [
8317
8317
  }
8318
8318
  };
8319
8319
  function hl({ video: t, sizeMeta: a }) {
8320
- const [s, i] = M(!1);
8320
+ const [s, i] = P(!1);
8321
8321
  return /* @__PURE__ */ n("div", { className: "group cursor-pointer", children: [
8322
8322
  /* @__PURE__ */ n("div", { className: `relative ${a.thumbnailHeight} rounded-lg overflow-hidden bg-zinc-200 dark:bg-zinc-800`, children: [
8323
8323
  /* @__PURE__ */ e(
@@ -8359,11 +8359,11 @@ function pl({
8359
8359
  videos: o = ml,
8360
8360
  ...p
8361
8361
  }) {
8362
- const [g, N] = M(!1), x = de(t), r = me[x], v = ul[x];
8362
+ const [g, v] = P(!1), x = de(t), r = me[x], N = ul[x];
8363
8363
  return /* @__PURE__ */ n(
8364
8364
  oe,
8365
8365
  {
8366
- className: `flex flex-col ${r.card} ${v.wrap}`,
8366
+ className: `flex flex-col ${r.card} ${N.wrap}`,
8367
8367
  showCheckbox: a,
8368
8368
  checkboxPosition: s,
8369
8369
  onSelect: i,
@@ -8378,7 +8378,7 @@ function pl({
8378
8378
  "button",
8379
8379
  {
8380
8380
  className: "flex items-center gap-1 px-3 py-1.5 text-sm text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100 border border-zinc-300 dark:border-zinc-600 rounded-md transition-colors duration-200",
8381
- onClick: () => N(!g),
8381
+ onClick: () => v(!g),
8382
8382
  children: [
8383
8383
  "Filter",
8384
8384
  /* @__PURE__ */ e(xe, { className: "h-4 w-4 transform rotate-90" })
@@ -8393,11 +8393,11 @@ function pl({
8393
8393
  ] })
8394
8394
  ] })
8395
8395
  ] }),
8396
- /* @__PURE__ */ e("div", { className: `grid ${v.gridCols} gap-4 `, children: o.slice(0, v.gridCols === "grid-cols-3" ? 6 : 4).map((m) => /* @__PURE__ */ e(
8396
+ /* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-4 `, children: o.slice(0, N.gridCols === "grid-cols-3" ? 6 : 4).map((m) => /* @__PURE__ */ e(
8397
8397
  hl,
8398
8398
  {
8399
8399
  video: m,
8400
- sizeMeta: v
8400
+ sizeMeta: N
8401
8401
  },
8402
8402
  m.id
8403
8403
  )) }),
@@ -8410,20 +8410,20 @@ function pl({
8410
8410
  );
8411
8411
  }
8412
8412
  pl.propTypes = {
8413
- size: c.string,
8414
- showCheckbox: c.bool,
8415
- checkboxPosition: c.oneOf(["top-left", "top-right"]),
8416
- onSelect: c.func,
8417
- identity: c.oneOfType([c.string, c.func]),
8418
- title: c.string,
8419
- videos: c.arrayOf(
8420
- c.shape({
8421
- id: c.oneOfType([c.string, c.number]),
8422
- title: c.string,
8423
- description: c.string,
8424
- thumbnail: c.string,
8425
- duration: c.string,
8426
- category: c.string
8413
+ size: d.string,
8414
+ showCheckbox: d.bool,
8415
+ checkboxPosition: d.oneOf(["top-left", "top-right"]),
8416
+ onSelect: d.func,
8417
+ identity: d.oneOfType([d.string, d.func]),
8418
+ title: d.string,
8419
+ videos: d.arrayOf(
8420
+ d.shape({
8421
+ id: d.oneOfType([d.string, d.number]),
8422
+ title: d.string,
8423
+ description: d.string,
8424
+ thumbnail: d.string,
8425
+ duration: d.string,
8426
+ category: d.string
8427
8427
  })
8428
8428
  )
8429
8429
  };
@@ -8463,11 +8463,11 @@ export {
8463
8463
  As as NewsMock,
8464
8464
  Gs as O365MailsMock,
8465
8465
  Ln as OptionsMenu,
8466
- Mn as PageHeader,
8466
+ Pn as PageHeader,
8467
8467
  Il as PageLayout,
8468
8468
  Tl as Pagination,
8469
8469
  la as RadioGroup,
8470
- be as SearchBar,
8470
+ fe as SearchBar,
8471
8471
  pt as Select,
8472
8472
  oe as SelectableCard,
8473
8473
  Al as Sidebar,
@@ -8486,14 +8486,14 @@ export {
8486
8486
  Vl as axiosPatch,
8487
8487
  bt as axiosPost,
8488
8488
  Bl as axiosPut,
8489
- Pl as cookies,
8489
+ Ml as cookies,
8490
8490
  Wn as createHttpClient,
8491
8491
  Un as directoryPermissionsApi,
8492
8492
  Gn as filePermissionsApi,
8493
8493
  _n as gateWayUrl,
8494
8494
  $e as gatewayBase,
8495
8495
  vt as getBaseUrl,
8496
- Ml as getSnapshot,
8496
+ Pl as getSnapshot,
8497
8497
  jl as http,
8498
8498
  jn as localStore,
8499
8499
  Nt as myDriveGatewayBaseV2,