unifyedx-storybook-new 0.2.39 → 0.2.41

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,11 +1,11 @@
1
1
  import { jsxs as n, jsx as e, Fragment as te } from "react/jsx-runtime";
2
2
  import se, { useState as L, useMemo as me, useId as Xe, Fragment as Q, useEffect as Z, useCallback as ae, useRef as ge } from "react";
3
- import { a as H, U as dt, X as ye, P as c, L as ja, C as fe, b as Ke, D as mt, f as Ct, d as qt, F as Va, e as _a, h as Ua, T as He, u as Ga, I as Yt, i as Wt, j as qa, k as Ya, l as Wa, m as Jt, S as xt, n as Xt, M as Ja, o as Xa, p as vt, q as Ha, A as Qa, E as Ht, r as Za, s as Ka, t as er, v as tr, w as Qt, x as ar, y as Zt, z as Kt, B as rr, G as nr, H as sr, J as Qe, K as ut, N as ht, O as lr, Q as ir, R as ea, V as or, W as Nt, Y as cr, Z as dr, _ as Le, $ as mr, a0 as ur, a1 as hr, a2 as pr, a3 as gr, a4 as br, a5 as zt, a6 as fr, a7 as yr, a8 as xr, a9 as vr, aa as Nr, ab as wr, ac as kr, ad as Cr, ae as zr, af as Ae, ag as ta, ah as Sr, ai as Dr, aj as $r, ak as Tr, al as Ar, am as aa, an as Fr, ao as Er, ap as ra, aq as Rr, ar as pt, as as na, at as Or } from "./vendor-DoYRzmYd.js";
3
+ import { a as H, U as dt, X as ye, P as c, L as ja, C as fe, b as Ke, D as mt, f as Ct, d as qt, F as Va, e as _a, h as Ua, T as He, u as Ga, I as Yt, i as Wt, j as qa, k as Ya, l as Wa, m as Jt, S as xt, n as Xt, M as Ja, o as Xa, p as vt, q as Ha, A as Qa, E as Ht, r as Za, s as Ka, t as er, v as tr, w as Qt, x as ar, y as Zt, z as Kt, B as rr, G as nr, H as sr, J as Qe, K as ut, N as ht, O as lr, Q as or, R as ea, V as ir, W as Nt, Y as cr, Z as dr, _ as Le, $ as mr, a0 as ur, a1 as hr, a2 as pr, a3 as gr, a4 as br, a5 as zt, a6 as fr, a7 as yr, a8 as xr, a9 as vr, aa as Nr, ab as wr, ac as kr, ad as Cr, ae as zr, af as Ae, ag as ta, ah as Sr, ai as Dr, aj as $r, ak as Tr, al as Ar, am as aa, an as Fr, ao as Er, ap as ra, aq as Rr, ar as pt, as as na, at as Or } from "./vendor-DoYRzmYd.js";
4
4
  import { Popover as Pr, PopoverButton as Ir, PopoverPanel as Mr, Transition as ue, Dialog as be, TransitionChild as Ne, DialogPanel as Fe, DialogTitle as et, TabGroup as Lr, TabList as Br, Tab as ne, TabPanels as jr, RadioGroup as Ue, Listbox as K, ListboxButton as Vr, ListboxOptions as _r, ListboxOption as Ur, SwitchGroup as Gr, Switch as lt, Menu as qr, MenuButton as Yr, Portal as Wr, MenuItems as Jr, MenuItem as Xr, DialogBackdrop as Hr } from "@headlessui/react";
5
5
  import { motion as le, AnimatePresence as ke } from "framer-motion";
6
6
  import { d as Qr } from "./vendor-lodash-DUMS_goM.js";
7
- import { useFloating as sa, offset as la, flip as ia, shift as oa, autoUpdate as ca, useClick as Zr, useDismiss as Kr, useInteractions as en, FloatingPortal as tn } from "@floating-ui/react";
8
- import it, { debounce as an } from "lodash";
7
+ import { useFloating as sa, offset as la, flip as oa, shift as ia, autoUpdate as ca, useClick as Zr, useDismiss as Kr, useInteractions as en, FloatingPortal as tn } from "@floating-ui/react";
8
+ import ot, { debounce as an } from "lodash";
9
9
  import { toast as Se, ToastContainer as rn, Slide as nn } from "react-toastify";
10
10
  import "react-toastify/dist/ReactToastify.css";
11
11
  import { P as sn, S as ln, F as on, G as cn, a as dn, E as mn, b as un, C as hn, R as pn, c as gn, d as bn, e as fn, f as yn, I as xn, g as St } from "./vendor-syncfusion-v-M3ddHK.js";
@@ -15,29 +15,29 @@ const vn = (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
  }, Nn = (t) => {
18
- const a = (t ?? "").trim().toLowerCase(), s = parseInt((a.match(/\d+$/) ?? [0])[0], 10) || 0, i = vn(a), l = (i % 360 + 37 * s) % 360, m = 55 + (i >>> 8) % 20, o = 30 + (i >>> 16) % 10, u = 86 + (i >>> 24) % 8, g = `hsl(${l}, ${m}%, ${u}%)`, f = `hsl(${l}, ${m}%, ${o}%)`;
18
+ const a = (t ?? "").trim().toLowerCase(), s = parseInt((a.match(/\d+$/) ?? [0])[0], 10) || 0, o = vn(a), l = (o % 360 + 37 * s) % 360, m = 55 + (o >>> 8) % 20, i = 30 + (o >>> 16) % 10, u = 86 + (o >>> 24) % 8, g = `hsl(${l}, ${m}%, ${u}%)`, f = `hsl(${l}, ${m}%, ${i}%)`;
19
19
  return { bg: g, text: f };
20
20
  }, wn = (t = "") => t.split(" ").map((a) => a[0]).slice(0, 2).join("").toUpperCase(), Ce = ({
21
21
  src: t,
22
22
  name: a,
23
23
  size: s = "medium",
24
24
  // 'small', 'medium', 'large', 'xlarge'
25
- bgColor: i,
25
+ bgColor: o,
26
26
  // ✅ New prop for background color
27
27
  textColor: l,
28
28
  // ✅ New prop for text/icon color
29
29
  className: m,
30
- ...o
30
+ ...i
31
31
  }) => {
32
32
  const [u, g] = L(!1), f = me(() => Nn(a), []), x = t && !u, r = !x && a, N = !x && !a, d = H(
33
33
  "avatar-container",
34
34
  `avatar--size-${s}`,
35
35
  m
36
- ), p = x ? "transparent" : i || f.bg, $ = l || f.text;
36
+ ), p = x ? "transparent" : o || f.bg, $ = l || f.text;
37
37
  return /* @__PURE__ */ n("div", { className: d, style: {
38
38
  backgroundColor: p,
39
39
  color: $
40
- }, ...o, children: [
40
+ }, ...i, children: [
41
41
  x && /* @__PURE__ */ e(
42
42
  "img",
43
43
  {
@@ -50,13 +50,13 @@ const vn = (t) => {
50
50
  r && /* @__PURE__ */ e("span", { className: "avatar-initials", "aria-label": a, children: wn(a) }),
51
51
  N && /* @__PURE__ */ e("span", { className: "avatar-icon", children: /* @__PURE__ */ e(dt, {}) })
52
52
  ] });
53
- }, kn = ({ children: t, max: a = 4, truncatedMessage: s = "Members", ...i }) => {
54
- const l = se.Children.toArray(t), m = l.slice(0, a), o = l.length - a;
55
- return /* @__PURE__ */ n("div", { className: "avatar-group-container", ...i, children: [
53
+ }, kn = ({ children: t, max: a = 4, truncatedMessage: s = "Members", ...o }) => {
54
+ const l = se.Children.toArray(t), m = l.slice(0, a), i = l.length - a;
55
+ return /* @__PURE__ */ n("div", { className: "avatar-group-container", ...o, children: [
56
56
  m,
57
- o > 0 && /* @__PURE__ */ n("div", { className: "avatar-container avatar--size-medium avatar-excess", children: [
57
+ i > 0 && /* @__PURE__ */ n("div", { className: "avatar-container avatar--size-medium avatar-excess", children: [
58
58
  "+",
59
- o,
59
+ i,
60
60
  " ",
61
61
  s
62
62
  ] })
@@ -67,10 +67,10 @@ const vn = (t) => {
67
67
  // 'default', 'primary', 'success', 'warning', 'danger'
68
68
  size: s = "medium",
69
69
  // 'small', 'medium', 'large'
70
- icon: i,
70
+ icon: o,
71
71
  onRemove: l,
72
72
  bgColor: m,
73
- textColor: o,
73
+ textColor: i,
74
74
  className: u,
75
75
  ...g
76
76
  }) => {
@@ -81,12 +81,12 @@ const vn = (t) => {
81
81
  { "badge--with-remove": !!l },
82
82
  u
83
83
  );
84
- return /* @__PURE__ */ n("span", { className: f, style: m && o ? {
84
+ return /* @__PURE__ */ n("span", { className: f, style: m && i ? {
85
85
  backgroundColor: m,
86
- color: o,
86
+ color: i,
87
87
  borderColor: "#ff0000"
88
88
  } : {}, ...g, children: [
89
- i && /* @__PURE__ */ e(i, { className: "badge-icon" }),
89
+ o && /* @__PURE__ */ e(o, { className: "badge-icon" }),
90
90
  /* @__PURE__ */ e("span", { className: "badge-label", children: t }),
91
91
  l && /* @__PURE__ */ e(
92
92
  "button",
@@ -103,7 +103,7 @@ const vn = (t) => {
103
103
  primary: t = !1,
104
104
  backgroundColor: a = null,
105
105
  size: s = "medium",
106
- label: i,
106
+ label: o,
107
107
  ...l
108
108
  }) => {
109
109
  const m = t ? "storybook-button--primary" : "storybook-button--secondary";
@@ -114,7 +114,7 @@ const vn = (t) => {
114
114
  className: ["storybook-button", `storybook-button--${s}`, m].join(" "),
115
115
  style: a && { backgroundColor: a },
116
116
  ...l,
117
- children: i
117
+ children: o
118
118
  }
119
119
  );
120
120
  };
@@ -141,11 +141,11 @@ const zn = {
141
141
  dataTestId: t,
142
142
  title: a,
143
143
  type: s = "button",
144
- ariaLabel: i,
144
+ ariaLabel: o,
145
145
  className: l = "",
146
146
  // ✅ Default is now empty
147
147
  loader: m = !1,
148
- category: o = "primary",
148
+ category: i = "primary",
149
149
  icon: u,
150
150
  // Renamed for clarity, expecting a component type e.g., CheckCircle
151
151
  disabled: g = !1,
@@ -159,7 +159,7 @@ const zn = {
159
159
  const p = g || m, $ = u && !x, A = H(
160
160
  "btn-base",
161
161
  zn[f],
162
- Sn[o],
162
+ Sn[i],
163
163
  {
164
164
  "is-loading": m,
165
165
  "btn-icon-only": $
@@ -174,8 +174,8 @@ const zn = {
174
174
  className: A,
175
175
  disabled: p,
176
176
  onClick: N,
177
- title: a || $ && i || (typeof x == "string" ? x : void 0),
178
- "aria-label": i || $ && a || (typeof x == "string" ? x : void 0),
177
+ title: a || $ && o || (typeof x == "string" ? x : void 0),
178
+ "aria-label": o || $ && a || (typeof x == "string" ? x : void 0),
179
179
  ...d,
180
180
  children: m ? /* @__PURE__ */ e(ja, { className: "loader-spin", "data-testid": "button-loader" }) : /* @__PURE__ */ n(te, { children: [
181
181
  u && /* @__PURE__ */ e(u, { size: f === "large" ? 20 : 16 }),
@@ -185,8 +185,8 @@ const zn = {
185
185
  ] })
186
186
  }
187
187
  );
188
- }, Dn = ({ crumbs: t = [], ...a }) => /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: "breadcrumbs-nav", ...a, children: /* @__PURE__ */ e("ol", { className: "breadcrumbs-list", children: t.map((s, i) => {
189
- const l = i === t.length - 1;
188
+ }, Dn = ({ crumbs: t = [], ...a }) => /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: "breadcrumbs-nav", ...a, children: /* @__PURE__ */ e("ol", { className: "breadcrumbs-list", children: t.map((s, o) => {
189
+ const l = o === t.length - 1;
190
190
  return /* @__PURE__ */ n("li", { className: "breadcrumb-item", children: [
191
191
  /* @__PURE__ */ n(
192
192
  "a",
@@ -207,19 +207,19 @@ const zn = {
207
207
  "aria-hidden": "true"
208
208
  }
209
209
  )
210
- ] }, i);
210
+ ] }, o);
211
211
  }) }) }), da = ({
212
212
  label: t,
213
213
  id: a,
214
214
  error: s,
215
- className: i,
215
+ className: o,
216
216
  ref: l,
217
217
  checked: m,
218
- onChange: o,
218
+ onChange: i,
219
219
  ...u
220
220
  }) => {
221
221
  const g = Xe(), f = a || g;
222
- return /* @__PURE__ */ n("div", { className: `checkbox-container ${i || ""}`, children: [
222
+ return /* @__PURE__ */ n("div", { className: `checkbox-container ${o || ""}`, children: [
223
223
  /* @__PURE__ */ n("label", { htmlFor: f, className: "checkbox-wrapper", children: [
224
224
  /* @__PURE__ */ e(
225
225
  "input",
@@ -229,7 +229,7 @@ const zn = {
229
229
  ref: l,
230
230
  className: "checkbox-input",
231
231
  checked: m,
232
- onChange: o,
232
+ onChange: i,
233
233
  ...u
234
234
  }
235
235
  ),
@@ -252,10 +252,10 @@ const zn = {
252
252
  value: t,
253
253
  onChange: a,
254
254
  onClear: s,
255
- placeholder: i = "Select a date",
255
+ placeholder: o = "Select a date",
256
256
  label: l,
257
257
  error: m,
258
- disabled: o = !1,
258
+ disabled: i = !1,
259
259
  className: u,
260
260
  ...g
261
261
  }) => /* @__PURE__ */ n("div", { className: H("datepicker-wrapper", u), children: [
@@ -280,10 +280,10 @@ const zn = {
280
280
  value: t,
281
281
  onChange: a,
282
282
  onClear: s,
283
- placeholder: i = "Select a date range",
283
+ placeholder: o = "Select a date range",
284
284
  label: l,
285
285
  error: m,
286
- disabled: o = !1,
286
+ disabled: i = !1,
287
287
  className: u,
288
288
  ...g
289
289
  }) => {
@@ -293,7 +293,7 @@ const zn = {
293
293
  Ct(f, "MMM d, y"),
294
294
  " - ",
295
295
  Ct(x, "MMM d, y")
296
- ] }) : /* @__PURE__ */ e("span", { className: "datepicker-placeholder", children: i });
296
+ ] }) : /* @__PURE__ */ e("span", { className: "datepicker-placeholder", children: o });
297
297
  return /* @__PURE__ */ n("div", { className: H("datepicker-wrapper", u), children: [
298
298
  l && /* @__PURE__ */ e("label", { className: "datepicker-label", htmlFor: "daterangepicker-input", children: l }),
299
299
  /* @__PURE__ */ n($n, { children: [
@@ -305,17 +305,17 @@ const zn = {
305
305
  type: "button",
306
306
  className: H("datepicker-trigger", {
307
307
  "datepicker-trigger--error": !!m,
308
- "datepicker-trigger--disabled": o
308
+ "datepicker-trigger--disabled": i
309
309
  }),
310
- disabled: o,
311
- "aria-label": f && x ? `Selected range is ${N}` : i,
310
+ disabled: i,
311
+ "aria-label": f && x ? `Selected range is ${N}` : o,
312
312
  children: [
313
313
  /* @__PURE__ */ e(qt, { className: "datepicker-icon" }),
314
314
  /* @__PURE__ */ e("span", { className: "datepicker-value", children: N })
315
315
  ]
316
316
  }
317
317
  ),
318
- f && s && !o && /* @__PURE__ */ e(
318
+ f && s && !i && /* @__PURE__ */ e(
319
319
  "button",
320
320
  {
321
321
  type: "button",
@@ -559,12 +559,12 @@ const zn = {
559
559
  View: "view",
560
560
  Manage: "edit"
561
561
  }, $t = ({ extension: t, size: a = 36 }) => {
562
- const s = (t || "").toLowerCase(), i = En[s];
563
- return i ? /* @__PURE__ */ e("div", { style: { width: a }, className: "flex-shrink-0", children: /* @__PURE__ */ e(
562
+ const s = (t || "").toLowerCase(), o = En[s];
563
+ return o ? /* @__PURE__ */ e("div", { style: { width: a }, className: "flex-shrink-0", children: /* @__PURE__ */ e(
564
564
  Va,
565
565
  {
566
566
  extension: s,
567
- ...i,
567
+ ...o,
568
568
  radius: 2,
569
569
  fold: !0,
570
570
  foldColor: "#E5E7EB",
@@ -582,19 +582,19 @@ const zn = {
582
582
  );
583
583
  }, Rn = (t) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: t.width || 24, height: t.height || 24, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ e("path", { d: "M20 12H4M4 12L10 18M4 12L10 6", stroke: "#767676", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), Tt = (t, a = 2) => {
584
584
  if (!+t) return "0 Bytes";
585
- const s = 1024, i = a < 0 ? 0 : a, l = ["Bytes", "KB", "MB", "GB", "TB"], m = Math.floor(Math.log(t) / Math.log(s));
586
- return `${parseFloat((t / Math.pow(s, m)).toFixed(i))} ${l[m]}`;
585
+ const s = 1024, o = a < 0 ? 0 : a, l = ["Bytes", "KB", "MB", "GB", "TB"], m = Math.floor(Math.log(t) / Math.log(s));
586
+ return `${parseFloat((t / Math.pow(s, m)).toFixed(o))} ${l[m]}`;
587
587
  }, El = ({
588
588
  // --- Modal Control ---
589
589
  isOpen: t,
590
590
  onClose: a,
591
591
  // --- Dropzone Props ---
592
592
  getRootProps: s,
593
- getInputProps: i,
593
+ getInputProps: o,
594
594
  isDragActive: l,
595
595
  open: m,
596
596
  // --- Form and File State ---
597
- validFiles: o = [],
597
+ validFiles: i = [],
598
598
  rejectedFiles: u = [],
599
599
  handleRemoveValidFile: g,
600
600
  handleRemoveRejectedFile: f,
@@ -605,7 +605,7 @@ const zn = {
605
605
  title: d = "Upload Files",
606
606
  subHeading: p = "Supports PNG, JPG, PDF. Max size: 50MB."
607
607
  }) => {
608
- const $ = o.length > 0 || u.length > 0;
608
+ const $ = i.length > 0 || u.length > 0;
609
609
  return /* @__PURE__ */ e(ue, { appear: !0, show: t, as: Q, children: /* @__PURE__ */ n(
610
610
  be,
611
611
  {
@@ -643,7 +643,7 @@ const zn = {
643
643
  className: "dialog-panel",
644
644
  onClick: (A) => A.stopPropagation(),
645
645
  children: [
646
- /* @__PURE__ */ e("input", { ...i() }),
646
+ /* @__PURE__ */ e("input", { ...o() }),
647
647
  /* @__PURE__ */ n("form", { onSubmit: x, className: "form-wrapper", children: [
648
648
  /* @__PURE__ */ n("div", { className: "dialog-header", children: [
649
649
  /* @__PURE__ */ e(et, { as: "h3", className: "dialog-title-text", children: d }),
@@ -684,7 +684,7 @@ const zn = {
684
684
  $ && /* @__PURE__ */ n("div", { className: "file-list-container", children: [
685
685
  /* @__PURE__ */ e("h3", { children: "Upload Queue" }),
686
686
  /* @__PURE__ */ n("ul", { className: "file-list", children: [
687
- o.map((A, E) => /* @__PURE__ */ n(
687
+ i.map((A, E) => /* @__PURE__ */ n(
688
688
  "li",
689
689
  {
690
690
  className: "file-item",
@@ -764,7 +764,7 @@ const zn = {
764
764
  type: "submit",
765
765
  label: r ? "Uploading..." : "Upload Files",
766
766
  loader: r,
767
- disabled: o.length === 0 || r
767
+ disabled: i.length === 0 || r
768
768
  }
769
769
  )
770
770
  ] })
@@ -787,8 +787,8 @@ const zn = {
787
787
  const s = new Date(t);
788
788
  return s.setDate(s.getDate() + a), s;
789
789
  }, bt = (t) => {
790
- const a = new Date(t), s = a.getDay(), i = a.getDate() - s;
791
- return Be(new Date(a.setDate(i)));
790
+ const a = new Date(t), s = a.getDay(), o = a.getDate() - s;
791
+ return Be(new Date(a.setDate(o)));
792
792
  }, On = (t) => je(gt(bt(t), 6)), At = (t) => {
793
793
  const a = new Date(t);
794
794
  return Be(new Date(a.getFullYear(), a.getMonth(), 1));
@@ -811,8 +811,8 @@ const zn = {
811
811
  case "this_month":
812
812
  return [At(a), Ft(a)];
813
813
  case "last_month": {
814
- const s = /* @__PURE__ */ new Date(), i = new Date(s.getFullYear(), s.getMonth() - 1, 1);
815
- return [At(i), Ft(i)];
814
+ const s = /* @__PURE__ */ new Date(), o = new Date(s.getFullYear(), s.getMonth() - 1, 1);
815
+ return [At(o), Ft(o)];
816
816
  }
817
817
  default:
818
818
  return [null, null];
@@ -821,10 +821,10 @@ const zn = {
821
821
  isOpen: t,
822
822
  onClose: a,
823
823
  onApplyFilters: s,
824
- resetFilters: i,
824
+ resetFilters: o,
825
825
  filterConfig: l = [],
826
826
  initialFormikValues: m,
827
- customStyles: o = "",
827
+ customStyles: i = "",
828
828
  fetchCreatedOrUpdatedByUsers: u = async () => []
829
829
  // Mockable fetcher
830
830
  }) => {
@@ -891,7 +891,7 @@ const zn = {
891
891
  const h = l[C].key, w = l[C].url;
892
892
  l[C].type === "multiselect-users" && g[h].length === 0 && !x[h] && V(h, w);
893
893
  }, Y = () => {
894
- A.resetForm(), f({ createdBy: [], updatedBy: [] }), i();
894
+ A.resetForm(), f({ createdBy: [], updatedBy: [] }), o();
895
895
  }, G = (C) => {
896
896
  const h = l.find((k) => k.key === C);
897
897
  if (!h) return null;
@@ -1191,7 +1191,7 @@ const zn = {
1191
1191
  leave: "ease-in duration-200",
1192
1192
  leaveFrom: "opacity-100 translate-x-0",
1193
1193
  leaveTo: "opacity-0 translate-x-full",
1194
- children: /* @__PURE__ */ n(Fe, { className: `filter-modal-panel ${o}`, children: [
1194
+ children: /* @__PURE__ */ n(Fe, { className: `filter-modal-panel ${i}`, children: [
1195
1195
  /* @__PURE__ */ n("div", { className: "filter-header", children: [
1196
1196
  /* @__PURE__ */ e(et, { as: "h3", className: "filter-title", children: "Filters" }),
1197
1197
  /* @__PURE__ */ e(
@@ -1282,10 +1282,10 @@ const zn = {
1282
1282
  label: t,
1283
1283
  id: a,
1284
1284
  type: s = "text",
1285
- icon: i,
1285
+ icon: o,
1286
1286
  error: l,
1287
1287
  className: m,
1288
- ref: o,
1288
+ ref: i,
1289
1289
  // ✅ 'ref' is now received directly as a prop
1290
1290
  ...u
1291
1291
  }) => {
@@ -1293,16 +1293,16 @@ const zn = {
1293
1293
  return /* @__PURE__ */ n("div", { className: `input-wrapper ${m || ""}`, children: [
1294
1294
  t && /* @__PURE__ */ e("label", { htmlFor: g, className: "input-label", children: t }),
1295
1295
  /* @__PURE__ */ n("div", { className: "input-field-container", children: [
1296
- i && /* @__PURE__ */ e(i, { className: "input-icon", size: 20 }),
1296
+ o && /* @__PURE__ */ e(o, { className: "input-icon", size: 20 }),
1297
1297
  /* @__PURE__ */ e(
1298
1298
  "input",
1299
1299
  {
1300
1300
  id: g,
1301
1301
  type: s,
1302
- ref: o,
1302
+ ref: i,
1303
1303
  className: H("input-field", {
1304
1304
  "input-field--error": !!l,
1305
- "input-field--with-icon": !!i
1305
+ "input-field--with-icon": !!o
1306
1306
  }),
1307
1307
  ...u
1308
1308
  }
@@ -1332,20 +1332,20 @@ const zn = {
1332
1332
  isOpen: t,
1333
1333
  onClose: a,
1334
1334
  title: s,
1335
- children: i,
1335
+ children: o,
1336
1336
  // For the description/body content
1337
1337
  primaryButtonText: l,
1338
1338
  // No default
1339
1339
  secondaryButtonText: m,
1340
1340
  // No default
1341
- variant: o = "info",
1341
+ variant: i = "info",
1342
1342
  // 'info', 'warning', 'delete'
1343
1343
  loading: u = !1,
1344
1344
  buttonProps: g = {},
1345
1345
  size: f
1346
1346
  // Add size prop
1347
1347
  }) => {
1348
- const x = Et[o] || Et.info, r = x.icon, N = () => {
1348
+ const x = Et[i] || Et.info, r = x.icon, N = () => {
1349
1349
  a({ primary: !0, secondary: !1 });
1350
1350
  }, d = () => {
1351
1351
  a({ primary: !1, secondary: !0 });
@@ -1379,7 +1379,7 @@ const zn = {
1379
1379
  /* @__PURE__ */ e("div", { className: `modal-icon-container ${x.iconClass}`, children: /* @__PURE__ */ e(r, { size: 24, "aria-hidden": "true" }) }),
1380
1380
  /* @__PURE__ */ n("div", { className: "modal-text-content", children: [
1381
1381
  /* @__PURE__ */ e(et, { as: "h3", className: "modal-title", children: s }),
1382
- /* @__PURE__ */ e("div", { className: "modal-description", children: i })
1382
+ /* @__PURE__ */ e("div", { className: "modal-description", children: o })
1383
1383
  ] })
1384
1384
  ] }),
1385
1385
  (l || m) && /* @__PURE__ */ n("div", { className: "modal-footer", children: [
@@ -1408,18 +1408,18 @@ const zn = {
1408
1408
  currentPage: t,
1409
1409
  totalItems: a,
1410
1410
  itemsPerPage: s,
1411
- onPageChange: i,
1411
+ onPageChange: o,
1412
1412
  onItemsPerPageChange: l,
1413
1413
  itemsPerPageOptions: m = [10, 15, 20]
1414
1414
  }) => {
1415
- const o = Math.ceil(a / s), [u, g] = L(t);
1415
+ const i = Math.ceil(a / s), [u, g] = L(t);
1416
1416
  Z(() => {
1417
1417
  g(t);
1418
1418
  }, [t]);
1419
1419
  const f = Math.min((t - 1) * s + 1, a), x = Math.min(t * s, a), r = (N) => {
1420
1420
  N.preventDefault();
1421
1421
  let d = parseInt(u, 10);
1422
- isNaN(d) || d < 1 ? d = 1 : d > o && (d = o), g(d), d !== t && i(d);
1422
+ isNaN(d) || d < 1 ? d = 1 : d > i && (d = i), g(d), d !== t && o(d);
1423
1423
  };
1424
1424
  return /* @__PURE__ */ n("div", { className: "pagination-container", children: [
1425
1425
  /* @__PURE__ */ n("div", { className: "pagination-left", children: [
@@ -1448,7 +1448,7 @@ const zn = {
1448
1448
  "button",
1449
1449
  {
1450
1450
  className: "pagination-button",
1451
- onClick: () => i(1),
1451
+ onClick: () => o(1),
1452
1452
  disabled: t === 1,
1453
1453
  children: /* @__PURE__ */ e(qa, { size: 16 })
1454
1454
  }
@@ -1457,7 +1457,7 @@ const zn = {
1457
1457
  "button",
1458
1458
  {
1459
1459
  className: "pagination-button",
1460
- onClick: () => i(t - 1),
1460
+ onClick: () => o(t - 1),
1461
1461
  disabled: t === 1,
1462
1462
  children: /* @__PURE__ */ e(Ya, { size: 16 })
1463
1463
  }
@@ -1477,15 +1477,15 @@ const zn = {
1477
1477
  ),
1478
1478
  /* @__PURE__ */ n("span", { className: "page-input-total", children: [
1479
1479
  "of ",
1480
- o
1480
+ i
1481
1481
  ] })
1482
1482
  ] }),
1483
1483
  /* @__PURE__ */ e(
1484
1484
  "button",
1485
1485
  {
1486
1486
  className: "pagination-button",
1487
- onClick: () => i(t + 1),
1488
- disabled: t === o,
1487
+ onClick: () => o(t + 1),
1488
+ disabled: t === i,
1489
1489
  children: /* @__PURE__ */ e(fe, { size: 16 })
1490
1490
  }
1491
1491
  ),
@@ -1493,8 +1493,8 @@ const zn = {
1493
1493
  "button",
1494
1494
  {
1495
1495
  className: "pagination-button",
1496
- onClick: () => i(o),
1497
- disabled: t === o,
1496
+ onClick: () => o(i),
1497
+ disabled: t === i,
1498
1498
  children: /* @__PURE__ */ e(Wa, { size: 16 })
1499
1499
  }
1500
1500
  )
@@ -1505,7 +1505,7 @@ const zn = {
1505
1505
  value: a,
1506
1506
  // The currently selected option's value (e.g., 'work')
1507
1507
  onChange: s,
1508
- options: i = [],
1508
+ options: o = [],
1509
1509
  error: l,
1510
1510
  ...m
1511
1511
  }) => /* @__PURE__ */ n("div", { className: "radiogroup-wrapper", children: [
@@ -1517,10 +1517,10 @@ const zn = {
1517
1517
  onChange: s,
1518
1518
  className: "radiogroup-container",
1519
1519
  ...m,
1520
- children: i.map((o) => /* @__PURE__ */ e(
1520
+ children: o.map((i) => /* @__PURE__ */ e(
1521
1521
  Ue.Option,
1522
1522
  {
1523
- value: o.value,
1523
+ value: i.value,
1524
1524
  className: ({ active: u, checked: g }) => H("radiogroup-option", {
1525
1525
  "radiogroup-option--active": u,
1526
1526
  "radiogroup-option--checked": g,
@@ -1528,20 +1528,20 @@ const zn = {
1528
1528
  }),
1529
1529
  children: ({ checked: u }) => /* @__PURE__ */ n(te, { children: [
1530
1530
  /* @__PURE__ */ n("div", { className: "radiogroup-option-content", children: [
1531
- /* @__PURE__ */ e(Ue.Label, { as: "p", className: "option-label", children: o.label }),
1532
- o.description && /* @__PURE__ */ e(
1531
+ /* @__PURE__ */ e(Ue.Label, { as: "p", className: "option-label", children: i.label }),
1532
+ i.description && /* @__PURE__ */ e(
1533
1533
  Ue.Description,
1534
1534
  {
1535
1535
  as: "span",
1536
1536
  className: "option-description",
1537
- children: o.description
1537
+ children: i.description
1538
1538
  }
1539
1539
  )
1540
1540
  ] }),
1541
1541
  u && /* @__PURE__ */ e("div", { className: "option-checkmark", children: /* @__PURE__ */ e(Jt, { size: 20 }) })
1542
1542
  ] })
1543
1543
  },
1544
- o.value
1544
+ i.value
1545
1545
  ))
1546
1546
  }
1547
1547
  ),
@@ -1550,11 +1550,11 @@ const zn = {
1550
1550
  value: t = "",
1551
1551
  onDebouncedChange: a,
1552
1552
  debounceDelay: s = 400,
1553
- placeholder: i = "Enter text...",
1553
+ placeholder: o = "Enter text...",
1554
1554
  label: l = "Search",
1555
1555
  // Added a default label for accessibility
1556
1556
  customClass: m = "",
1557
- ...o
1557
+ ...i
1558
1558
  }) => {
1559
1559
  const [u, g] = L(t);
1560
1560
  Z(() => {
@@ -1580,12 +1580,12 @@ const zn = {
1580
1580
  {
1581
1581
  id: "search-field",
1582
1582
  className: "search-bar-input",
1583
- placeholder: i,
1583
+ placeholder: o,
1584
1584
  type: "search",
1585
1585
  name: "search",
1586
1586
  value: u,
1587
1587
  onChange: x,
1588
- ...o
1588
+ ...i
1589
1589
  }
1590
1590
  )
1591
1591
  ] });
@@ -1595,17 +1595,17 @@ const zn = {
1595
1595
  // From RHF's <Controller>
1596
1596
  onChange: s,
1597
1597
  // From RHF's <Controller>
1598
- options: i = [],
1598
+ options: o = [],
1599
1599
  placeholder: l = "Select an option...",
1600
1600
  disabled: m = !1,
1601
- error: o,
1601
+ error: i,
1602
1602
  ref: u,
1603
1603
  // From RHF's <Controller>
1604
1604
  showSearch: g = !0
1605
1605
  }) => {
1606
- const [f, x] = L(""), r = f === "" ? i : i.filter(
1606
+ const [f, x] = L(""), r = f === "" ? o : o.filter(
1607
1607
  (d) => d.label.toLowerCase().includes(f.toLowerCase())
1608
- ), N = i.find((d) => a?.id ? d.id === a.id : d.id === a || d.value === a);
1608
+ ), N = o.find((d) => a?.id ? d.id === a.id : d.id === a || d.value === a);
1609
1609
  return /* @__PURE__ */ e(K, { value: a, onChange: s, disabled: m, children: /* @__PURE__ */ n("div", { className: "select-wrapper", ref: u, children: [
1610
1610
  t && /* @__PURE__ */ e("label", { className: "select-label", children: t }),
1611
1611
  /* @__PURE__ */ n("div", { className: "select-button-container", children: [
@@ -1613,7 +1613,7 @@ const zn = {
1613
1613
  Vr,
1614
1614
  {
1615
1615
  className: H("select-button", {
1616
- "select-button--error": !!o
1616
+ "select-button--error": !!i
1617
1617
  }),
1618
1618
  children: [
1619
1619
  /* @__PURE__ */ e("span", { className: "select-value-display", children: N ? N.label : /* @__PURE__ */ e("span", { className: "placeholder", children: l }) }),
@@ -1667,7 +1667,7 @@ const zn = {
1667
1667
  }
1668
1668
  )
1669
1669
  ] }),
1670
- o && /* @__PURE__ */ e("p", { className: "select-error-message", children: o })
1670
+ i && /* @__PURE__ */ e("p", { className: "select-error-message", children: i })
1671
1671
  ] }) });
1672
1672
  }, Mn = () => {
1673
1673
  const [t, a] = L(window.location.pathname);
@@ -1685,12 +1685,12 @@ const zn = {
1685
1685
  return s;
1686
1686
  return null;
1687
1687
  }, pa = ({ item: t, isCollapsed: a, level: s = 0 }) => {
1688
- const { pathname: i } = Mn(), l = t.href || t.url || t.path, [m, o] = L(!1), u = t.icon;
1688
+ const { pathname: o } = Mn(), l = t.href || t.url || t.path, [m, i] = L(!1), u = t.icon;
1689
1689
  Z(() => {
1690
- yt([t], i) && o(!0);
1691
- }, [t, i]);
1692
- const g = i === l, f = !g && !!yt([t], i), x = (r) => {
1693
- r.preventDefault(), o(!m);
1690
+ yt([t], o) && i(!0);
1691
+ }, [t, o]);
1692
+ const g = o === l, f = !g && !!yt([t], o), x = (r) => {
1693
+ r.preventDefault(), i(!m);
1694
1694
  };
1695
1695
  return /* @__PURE__ */ n(
1696
1696
  "div",
@@ -1760,13 +1760,13 @@ const zn = {
1760
1760
  navItems: t = [],
1761
1761
  isCollapsed: a = !1,
1762
1762
  onToggleCollapse: s,
1763
- isMobileOpen: i = !1,
1763
+ isMobileOpen: o = !1,
1764
1764
  onToggleMobile: l,
1765
1765
  logoSmall: m,
1766
- logoLarge: o,
1766
+ logoLarge: i,
1767
1767
  user: u = { name: "", email: "" }
1768
1768
  }) => /* @__PURE__ */ n(te, { children: [
1769
- i && /* @__PURE__ */ e(
1769
+ o && /* @__PURE__ */ e(
1770
1770
  "div",
1771
1771
  {
1772
1772
  className: "sidebar-overlay",
@@ -1779,12 +1779,12 @@ const zn = {
1779
1779
  {
1780
1780
  className: H("sidebar", {
1781
1781
  "sidebar--collapsed": a,
1782
- "sidebar--mobile-open": i
1782
+ "sidebar--mobile-open": o
1783
1783
  }),
1784
1784
  "aria-label": "Main navigation",
1785
1785
  children: [
1786
1786
  /* @__PURE__ */ n("div", { className: "sidebar-header", children: [
1787
- /* @__PURE__ */ e("div", { className: "sidebar-logo", children: a ? m : o }),
1787
+ /* @__PURE__ */ e("div", { className: "sidebar-logo", children: a ? m : i }),
1788
1788
  !a && /* @__PURE__ */ n("div", { className: "sidebar-search-container", children: [
1789
1789
  /* @__PURE__ */ e(xt, { className: "sidebar-search-icon" }),
1790
1790
  /* @__PURE__ */ e(
@@ -1833,7 +1833,7 @@ const zn = {
1833
1833
  color: a = "primary",
1834
1834
  // 'primary', 'white'
1835
1835
  className: s,
1836
- ...i
1836
+ ...o
1837
1837
  }) => {
1838
1838
  const l = H(
1839
1839
  "spinner",
@@ -1845,7 +1845,7 @@ const zn = {
1845
1845
  "div",
1846
1846
  {
1847
1847
  className: l,
1848
- ...i,
1848
+ ...o,
1849
1849
  role: "status",
1850
1850
  "aria-label": "Loading...",
1851
1851
  children: [
@@ -1867,11 +1867,11 @@ const zn = {
1867
1867
  label: t,
1868
1868
  id: a,
1869
1869
  error: s,
1870
- className: i,
1870
+ className: o,
1871
1871
  ref: l,
1872
1872
  maxLength: m,
1873
1873
  // ✅ New prop for max length
1874
- showCharCount: o = !1,
1874
+ showCharCount: i = !1,
1875
1875
  // ✅ New prop to control visibility
1876
1876
  ...u
1877
1877
  }) => {
@@ -1880,10 +1880,10 @@ const zn = {
1880
1880
  ), r = (d) => {
1881
1881
  x(d.target.value.length), u.onChange && u.onChange(d);
1882
1882
  }, N = m - f;
1883
- return /* @__PURE__ */ n("div", { className: `textarea-wrapper ${i || ""}`, children: [
1883
+ return /* @__PURE__ */ n("div", { className: `textarea-wrapper ${o || ""}`, children: [
1884
1884
  /* @__PURE__ */ n("div", { className: "textarea-header", children: [
1885
1885
  t && /* @__PURE__ */ e("label", { htmlFor: g, className: "textarea-label", children: t }),
1886
- o && m && /* @__PURE__ */ n("span", { className: "char-counter", children: [
1886
+ i && m && /* @__PURE__ */ n("span", { className: "char-counter", children: [
1887
1887
  N,
1888
1888
  " characters remaining"
1889
1889
  ] })
@@ -1907,12 +1907,12 @@ const zn = {
1907
1907
  label: t,
1908
1908
  checked: a,
1909
1909
  onChange: s,
1910
- labelPosition: i = "right",
1910
+ labelPosition: o = "right",
1911
1911
  error: l,
1912
1912
  ...m
1913
1913
  }) => /* @__PURE__ */ n("div", { className: "switch-container", children: [
1914
1914
  /* @__PURE__ */ n(Gr, { as: "div", className: "switch-group", children: [
1915
- t && i === "left" && /* @__PURE__ */ e(lt.Label, { className: "switch-label", passive: !0, children: t }),
1915
+ t && o === "left" && /* @__PURE__ */ e(lt.Label, { className: "switch-label", passive: !0, children: t }),
1916
1916
  /* @__PURE__ */ e(
1917
1917
  lt,
1918
1918
  {
@@ -1926,7 +1926,7 @@ const zn = {
1926
1926
  children: /* @__PURE__ */ e("span", { "aria-hidden": "true", className: "switch-thumb" })
1927
1927
  }
1928
1928
  ),
1929
- t && i === "right" && /* @__PURE__ */ e(lt.Label, { className: "switch-label", passive: !0, children: t })
1929
+ t && o === "right" && /* @__PURE__ */ e(lt.Label, { className: "switch-label", passive: !0, children: t })
1930
1930
  ] }),
1931
1931
  l && /* @__PURE__ */ e("p", { className: "switch-error-message", children: l })
1932
1932
  ] }), Ml = ({
@@ -1934,13 +1934,13 @@ const zn = {
1934
1934
  content: a,
1935
1935
  variant: s = "dark",
1936
1936
  // 'dark', 'light', 'info', 'success', 'error'
1937
- size: i = "medium",
1937
+ size: o = "medium",
1938
1938
  // 'small', 'medium'
1939
1939
  place: l = "top",
1940
1940
  // 'top', 'bottom', 'left', 'right'
1941
1941
  className: m,
1942
1942
  // For external styling of the tooltip itself
1943
- ...o
1943
+ ...i
1944
1944
  }) => {
1945
1945
  const u = se.useId();
1946
1946
  return /* @__PURE__ */ n(te, { children: [
@@ -1952,8 +1952,8 @@ const zn = {
1952
1952
  content: a,
1953
1953
  place: l,
1954
1954
  variant: s,
1955
- className: `custom-tooltip custom-tooltip--size-${i} ${m || ""}`,
1956
- ...o
1955
+ className: `custom-tooltip custom-tooltip--size-${o} ${m || ""}`,
1956
+ ...i
1957
1957
  }
1958
1958
  )
1959
1959
  ] });
@@ -1974,15 +1974,15 @@ const zn = {
1974
1974
  isOpen: t,
1975
1975
  onClose: a,
1976
1976
  steps: s = {},
1977
- currentStep: i,
1977
+ currentStep: o,
1978
1978
  direction: l = 1,
1979
1979
  stepProps: m = {},
1980
- title: o,
1980
+ title: i,
1981
1981
  description: u,
1982
1982
  showProgress: g = !0,
1983
1983
  closeOnOverlayClick: f = !0
1984
1984
  }) => {
1985
- const x = s[i], r = Object.keys(s), N = r.indexOf(i), d = (N + 1) / r.length * 100, p = N > 0 && m.onBack;
1985
+ const x = s[o], r = Object.keys(s), N = r.indexOf(o), d = (N + 1) / r.length * 100, p = N > 0 && m.onBack;
1986
1986
  return /* @__PURE__ */ e(ue, { show: t, as: Q, children: /* @__PURE__ */ n(
1987
1987
  be,
1988
1988
  {
@@ -2027,7 +2027,7 @@ const zn = {
2027
2027
  }
2028
2028
  ),
2029
2029
  /* @__PURE__ */ n("div", { className: "wizard-header-text", children: [
2030
- /* @__PURE__ */ e(be.Title, { as: "h3", className: "wizard-title", children: o }),
2030
+ /* @__PURE__ */ e(be.Title, { as: "h3", className: "wizard-title", children: i }),
2031
2031
  u && /* @__PURE__ */ e(be.Description, { className: "wizard-description", children: u })
2032
2032
  ] })
2033
2033
  ] }),
@@ -2071,7 +2071,7 @@ const zn = {
2071
2071
  style: { overflowX: "hidden" },
2072
2072
  children: x && /* @__PURE__ */ e(x, { ...m })
2073
2073
  },
2074
- i
2074
+ o
2075
2075
  )
2076
2076
  }
2077
2077
  ) })
@@ -2092,11 +2092,11 @@ const zn = {
2092
2092
  dataTestId: t,
2093
2093
  title: a,
2094
2094
  type: s = "button",
2095
- ariaLabel: i,
2095
+ ariaLabel: o,
2096
2096
  className: l = "",
2097
2097
  // ✅ Default is now empty
2098
2098
  category: m = "secondary",
2099
- icon: o,
2099
+ icon: i,
2100
2100
  // Renamed for clarity, expecting a component type e.g., CheckCircle
2101
2101
  disabled: u = !1,
2102
2102
  size: g = "small",
@@ -2121,20 +2121,20 @@ const zn = {
2121
2121
  className: p,
2122
2122
  disabled: d,
2123
2123
  onClick: r,
2124
- title: i,
2125
- "aria-label": i,
2124
+ title: o,
2125
+ "aria-label": o,
2126
2126
  ...N,
2127
- children: o && /* @__PURE__ */ e(o, { size: g === "large" ? 20 : 16 })
2127
+ children: i && /* @__PURE__ */ e(i, { size: g === "large" ? 20 : 16 })
2128
2128
  }
2129
2129
  );
2130
2130
  }, jl = ({
2131
2131
  content: t,
2132
2132
  isFooter: a = !1,
2133
2133
  footerContent: s,
2134
- save: i,
2134
+ save: o,
2135
2135
  cancel: l,
2136
2136
  tertiary: m,
2137
- fullHeight: o = !1,
2137
+ fullHeight: i = !1,
2138
2138
  // A clearer prop name
2139
2139
  ...u
2140
2140
  }) => {
@@ -2142,7 +2142,7 @@ const zn = {
2142
2142
  "page-layout",
2143
2143
  {
2144
2144
  "page-layout--with-footer": a,
2145
- "page-layout--full-height": o
2145
+ "page-layout--full-height": i
2146
2146
  },
2147
2147
  u.className
2148
2148
  );
@@ -2165,12 +2165,12 @@ const zn = {
2165
2165
  ...l
2166
2166
  }
2167
2167
  ),
2168
- i?.show && /* @__PURE__ */ e(
2168
+ o?.show && /* @__PURE__ */ e(
2169
2169
  ee,
2170
2170
  {
2171
2171
  category: "primary",
2172
- label: i.label || "Save",
2173
- ...i
2172
+ label: o.label || "Save",
2173
+ ...o
2174
2174
  }
2175
2175
  )
2176
2176
  ] }) })
@@ -2180,12 +2180,12 @@ const zn = {
2180
2180
  subHeading: a,
2181
2181
  breadcrumbItems: s = [],
2182
2182
  // Expects the breadcrumb data as a prop
2183
- isLeftArrow: i = !1,
2183
+ isLeftArrow: o = !1,
2184
2184
  onBackClick: l,
2185
2185
  // Expects a handler for the back button
2186
2186
  ...m
2187
2187
  }) => /* @__PURE__ */ n("div", { className: "page-header-wrapper", ...m, children: [
2188
- i && l && /* @__PURE__ */ e(
2188
+ o && l && /* @__PURE__ */ e(
2189
2189
  "button",
2190
2190
  {
2191
2191
  className: "page-header-back-button",
@@ -2203,12 +2203,12 @@ const zn = {
2203
2203
  onSelect: a,
2204
2204
  triggerIcon: s = Ht
2205
2205
  }) => {
2206
- const { refs: i, floatingStyles: l } = sa({
2206
+ const { refs: o, floatingStyles: l } = sa({
2207
2207
  whileElementsMounted: ca,
2208
- middleware: [la(5), ia(), oa({ padding: 5 })]
2208
+ middleware: [la(5), oa(), ia({ padding: 5 })]
2209
2209
  });
2210
2210
  return /* @__PURE__ */ n(qr, { as: "div", className: "options-menu-wrapper", children: [
2211
- /* @__PURE__ */ e(Yr, { ref: i.setReference, className: "options-menu-trigger", children: /* @__PURE__ */ e(s, { size: 20 }) }),
2211
+ /* @__PURE__ */ e(Yr, { ref: o.setReference, className: "options-menu-trigger", children: /* @__PURE__ */ e(s, { size: 20 }) }),
2212
2212
  /* @__PURE__ */ e(Wr, { children: /* @__PURE__ */ e(
2213
2213
  ue,
2214
2214
  {
@@ -2222,16 +2222,16 @@ const zn = {
2222
2222
  children: /* @__PURE__ */ e(
2223
2223
  Jr,
2224
2224
  {
2225
- ref: i.setFloating,
2225
+ ref: o.setFloating,
2226
2226
  style: l,
2227
2227
  className: "options-menu-panel",
2228
2228
  children: t.map((m) => /* @__PURE__ */ n("div", { className: "options-menu-item-wrapper", children: [
2229
2229
  m.dividerBefore && /* @__PURE__ */ e("div", { className: "menu-divider" }),
2230
- /* @__PURE__ */ e(Xr, { children: ({ active: o }) => /* @__PURE__ */ n(
2230
+ /* @__PURE__ */ e(Xr, { children: ({ active: i }) => /* @__PURE__ */ n(
2231
2231
  "button",
2232
2232
  {
2233
2233
  onClick: () => a(m),
2234
- className: `options-menu-item ${o ? "active bg-gray-200 text-gray-900" : ""}`,
2234
+ className: `options-menu-item ${i ? "active bg-gray-200 text-gray-900" : ""}`,
2235
2235
  disabled: m.disabled,
2236
2236
  children: [
2237
2237
  m.icon && /* @__PURE__ */ e("span", { className: "item-icon", children: m.icon }),
@@ -2292,8 +2292,8 @@ function ya(t) {
2292
2292
  all() {
2293
2293
  const a = {};
2294
2294
  for (let s = 0; s < t.length; s++) {
2295
- const i = t.key(s);
2296
- a[i] = this.get(i);
2295
+ const o = t.key(s);
2296
+ a[o] = this.get(o);
2297
2297
  }
2298
2298
  return a;
2299
2299
  }
@@ -2306,19 +2306,19 @@ const qn = ya(localStorage), Vl = ya(sessionStorage), _l = {
2306
2306
  );
2307
2307
  return a ? decodeURIComponent(a[2]) : null;
2308
2308
  },
2309
- set(t, a, s = 7, i = "/") {
2309
+ set(t, a, s = 7, o = "/") {
2310
2310
  const l = /* @__PURE__ */ new Date();
2311
2311
  l.setDate(l.getDate() + s), document.cookie = `${t}=${encodeURIComponent(
2312
2312
  a
2313
- )}; expires=${l.toUTCString()}; path=${i}`;
2313
+ )}; expires=${l.toUTCString()}; path=${o}`;
2314
2314
  },
2315
2315
  remove(t, a = "/") {
2316
2316
  document.cookie = `${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${a}`;
2317
2317
  },
2318
2318
  all() {
2319
2319
  return document.cookie.split(";").filter(Boolean).reduce((t, a) => {
2320
- const [s, i] = a.split("=").map((l) => l.trim());
2321
- return t[s] = decodeURIComponent(i), t;
2320
+ const [s, o] = a.split("=").map((l) => l.trim());
2321
+ return t[s] = decodeURIComponent(o), t;
2322
2322
  }, {});
2323
2323
  },
2324
2324
  clear() {
@@ -2388,27 +2388,27 @@ function Jn(t) {
2388
2388
  }
2389
2389
  }
2390
2390
  function Rt() {
2391
- const t = Jn("userProfile") || {}, a = localStorage.getItem("access_token") || t.accessToken || "", s = localStorage.getItem("siteId") || t.siteId || "", i = t.tenant || "", l = t.tenantdomain || "", m = t.username || t.displayName || "", o = t.email || "";
2391
+ const t = Jn("userProfile") || {}, a = localStorage.getItem("access_token") || t.accessToken || "", s = localStorage.getItem("siteId") || t.siteId || "", o = t.tenant || "", l = t.tenantdomain || "", m = t.username || t.displayName || "", i = t.email || "";
2392
2392
  return {
2393
2393
  Authorization: a ? `Bearer ${a}` : void 0,
2394
- "x-tenant-id": i || void 0,
2394
+ "x-tenant-id": o || void 0,
2395
2395
  "x-tenant-domain": l || void 0,
2396
2396
  "site-id": s || void 0,
2397
2397
  "Content-Type": "application/json",
2398
2398
  "principal-user": m || void 0,
2399
- "x-user-email": o || void 0
2399
+ "x-user-email": i || void 0
2400
2400
  };
2401
2401
  }
2402
2402
  function Xn(t) {
2403
2403
  if (t && t.isAxiosError) {
2404
- const { response: a, config: s, message: i } = t, l = a?.status ?? null, m = a?.statusText ?? null, o = a?.data ?? null, u = typeof o == "string" && o || o?.message || o?.msg || o?.error || o?.errors?.[0]?.message || null;
2404
+ const { response: a, config: s, message: o } = t, l = a?.status ?? null, m = a?.statusText ?? null, i = a?.data ?? null, u = typeof i == "string" && i || i?.message || i?.msg || i?.error || i?.errors?.[0]?.message || null;
2405
2405
  return {
2406
2406
  ok: !1,
2407
2407
  status: l,
2408
2408
  statusText: m,
2409
- code: o?.code || null,
2410
- message: u || i || "Request failed",
2411
- details: o || null,
2409
+ code: i?.code || null,
2410
+ message: u || o || "Request failed",
2411
+ details: i || null,
2412
2412
  request: {
2413
2413
  url: s?.url || null,
2414
2414
  method: s?.method || null,
@@ -2446,7 +2446,7 @@ function Hn({
2446
2446
  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);
2447
2447
  }
2448
2448
  );
2449
- function i({ open: f = !1, customHeader: x = {} } = {}) {
2449
+ function o({ open: f = !1, customHeader: x = {} } = {}) {
2450
2450
  if (f) {
2451
2451
  const { Authorization: r, ...N } = Rt();
2452
2452
  return {
@@ -2458,28 +2458,28 @@ function Hn({
2458
2458
  async function l(f, x, r = !1, N = {}) {
2459
2459
  return s.get(f, {
2460
2460
  params: x,
2461
- ...i({ open: r, customHeader: N })
2461
+ ...o({ open: r, customHeader: N })
2462
2462
  });
2463
2463
  }
2464
2464
  async function m(f, x, r = !1, N = {}) {
2465
- const d = { ...i({ open: r, customHeader: N }) };
2465
+ const d = { ...o({ open: r, customHeader: N }) };
2466
2466
  return x !== void 0 && (d.data = x), s.delete(f, d);
2467
2467
  }
2468
- async function o(f, x = {}, r = !1, N = {}) {
2469
- return s.post(f, x, i({ open: r, customHeader: N }));
2468
+ async function i(f, x = {}, r = !1, N = {}) {
2469
+ return s.post(f, x, o({ open: r, customHeader: N }));
2470
2470
  }
2471
2471
  async function u(f, x = {}, r = !1, N = {}) {
2472
- return s.put(f, x, i({ open: r, customHeader: N }));
2472
+ return s.put(f, x, o({ open: r, customHeader: N }));
2473
2473
  }
2474
2474
  async function g(f, x = {}, r = !1, N = {}) {
2475
- return s.patch(f, x, i({ open: r, customHeader: N }));
2475
+ return s.patch(f, x, o({ open: r, customHeader: N }));
2476
2476
  }
2477
2477
  return {
2478
2478
  instance: s,
2479
2479
  // exported in case you want advanced usage
2480
2480
  axiosGet: l,
2481
2481
  axiosDelete: m,
2482
- axiosPost: o,
2482
+ axiosPost: i,
2483
2483
  axiosPut: u,
2484
2484
  axiosPatch: g
2485
2485
  };
@@ -2504,7 +2504,7 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
2504
2504
  console.log("Error searching entities:", s);
2505
2505
  }
2506
2506
  }, Kn = (t) => t.filter((a) => !!a?.email).map((a) => {
2507
- const s = (a?.firstName ?? "").trim(), i = (a?.lastName ?? "").trim(), l = `${s} ${i}`.trim() || (a.email?.split("@")[0] ?? "Unknown");
2507
+ const s = (a?.firstName ?? "").trim(), o = (a?.lastName ?? "").trim(), l = `${s} ${o}`.trim() || (a.email?.split("@")[0] ?? "Unknown");
2508
2508
  return {
2509
2509
  id: a.email,
2510
2510
  name: l,
@@ -2558,23 +2558,23 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
2558
2558
  },
2559
2559
  getMembersForGroup: async (t) => {
2560
2560
  const a = `${ze()}/unifydidentity/open/usersforgroup?groupName=${encodeURIComponent(t)}&isGroupWithSpecChar=true&isPaging=true&page=0&size=999&deepSearch=`, { data: s } = await Ve(a);
2561
- let i = [];
2561
+ let o = [];
2562
2562
  if (Array.isArray(s))
2563
- i = s;
2563
+ o = s;
2564
2564
  else if (typeof s == "string")
2565
- i = Ot(s.trim());
2565
+ o = Ot(s.trim());
2566
2566
  else if (s && typeof s == "object") {
2567
2567
  const l = s.data;
2568
- Array.isArray(l) ? i = l : typeof l == "string" && (i = Ot(l.trim()));
2568
+ Array.isArray(l) ? o = l : typeof l == "string" && (o = Ot(l.trim()));
2569
2569
  }
2570
- return Kn(i);
2570
+ return Kn(o);
2571
2571
  }
2572
2572
  }, kt = (t, a) => {
2573
- const [s, i] = L(t);
2573
+ const [s, o] = L(t);
2574
2574
  return Z(
2575
2575
  () => {
2576
2576
  const l = an(() => {
2577
- i(t);
2577
+ o(t);
2578
2578
  }, a);
2579
2579
  return l(), () => {
2580
2580
  l.cancel();
@@ -2587,13 +2587,13 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
2587
2587
  users: t = [],
2588
2588
  groups: a = [],
2589
2589
  roles: s = [],
2590
- onClick: i
2590
+ onClick: o
2591
2591
  }) => {
2592
2592
  const l = t.slice(0, 2), m = [];
2593
2593
  t.length > 0 && m.push(t[0].name), a.length > 0 && m.push(a[0].name), s.length > 0 && m.length < 2 && m.push(s[0].name);
2594
- const o = t.length + a.length + s.length, u = o - m.length;
2594
+ const i = t.length + a.length + s.length, u = i - m.length;
2595
2595
  let g = m.join(", ");
2596
- return u > 0 && (g += ` and ${u} others`), o === 0 ? /* @__PURE__ */ e(
2596
+ return u > 0 && (g += ` and ${u} others`), i === 0 ? /* @__PURE__ */ e(
2597
2597
  "div",
2598
2598
  {
2599
2599
  className: "flex items-center justify-between p-3 border border-dashed border-gray-400 rounded-lg hover:bg-gray-50",
@@ -2602,7 +2602,7 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
2602
2602
  ) : /* @__PURE__ */ n(
2603
2603
  "div",
2604
2604
  {
2605
- onClick: i,
2605
+ onClick: o,
2606
2606
  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",
2607
2607
  children: [
2608
2608
  /* @__PURE__ */ n("div", { className: "flex items-center gap-3 overflow-hidden", children: [
@@ -2635,10 +2635,10 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
2635
2635
  entity: t,
2636
2636
  onManage: a,
2637
2637
  onClose: s,
2638
- existingShares: i = { users: [], groups: [], roles: [] },
2638
+ existingShares: o = { users: [], groups: [], roles: [] },
2639
2639
  calledBy: l,
2640
2640
  showExistingShares: m = !1,
2641
- onFinalSubmit: o = () => {
2641
+ onFinalSubmit: i = () => {
2642
2642
  },
2643
2643
  isChanged: u = !1
2644
2644
  }) => {
@@ -2680,12 +2680,12 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
2680
2680
  permission: I.permission,
2681
2681
  type: I.type.toLowerCase()
2682
2682
  }));
2683
- o({
2683
+ i({
2684
2684
  entity: t,
2685
2685
  userGroupRolesObj: B,
2686
- existingShares: i
2686
+ existingShares: o
2687
2687
  // Always send updated existing shares
2688
- }, i);
2688
+ }, o);
2689
2689
  } else if (l === de.INTEREST) {
2690
2690
  const B = S.pendingInvites.map((_) => ({
2691
2691
  identity: _.id,
@@ -2696,20 +2696,20 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
2696
2696
  userName: _.name,
2697
2697
  interestId: t?.data?.id
2698
2698
  }));
2699
- o(B, i);
2699
+ i(B, o);
2700
2700
  } else if (l === de.ARTICLE) {
2701
2701
  const B = S.pendingInvites.map((I) => ({
2702
2702
  id: I.id,
2703
2703
  permission: I.permission,
2704
2704
  type: I.type.toLowerCase()
2705
2705
  }));
2706
- o({
2706
+ i({
2707
2707
  entity: t,
2708
2708
  userGroupRolesObj: B,
2709
- existingShares: i
2710
- }, i);
2709
+ existingShares: o
2710
+ }, o);
2711
2711
  } else
2712
- o(S, i);
2712
+ i(S, o);
2713
2713
  setTimeout(() => {
2714
2714
  s();
2715
2715
  }, 1e3);
@@ -2717,7 +2717,7 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
2717
2717
  throw console.error("Failed to submit invites:", B), B;
2718
2718
  }
2719
2719
  }, P = (S) => {
2720
- const B = i[g.code].find((_) => _.name === S.name && _.permission !== "remove") || b.find((_) => _.name === S.name);
2720
+ const B = o[g.code].find((_) => _.name === S.name && _.permission !== "remove") || b.find((_) => _.name === S.name);
2721
2721
  return B ? `${B.permission}` : "";
2722
2722
  }, F = () => {
2723
2723
  switch (l) {
@@ -2753,9 +2753,9 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
2753
2753
  (l === de.DRIVE || m) && /* @__PURE__ */ e(
2754
2754
  es,
2755
2755
  {
2756
- users: i.users.filter((S) => S.permission !== "remove"),
2757
- groups: i.groups.filter((S) => S.permission !== "remove"),
2758
- roles: i.roles.filter((S) => S.permission !== "remove"),
2756
+ users: o.users.filter((S) => S.permission !== "remove"),
2757
+ groups: o.groups.filter((S) => S.permission !== "remove"),
2758
+ roles: o.roles.filter((S) => S.permission !== "remove"),
2759
2759
  onClick: a
2760
2760
  }
2761
2761
  ),
@@ -3025,21 +3025,21 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3025
3025
  ] })
3026
3026
  ] }) })
3027
3027
  ] });
3028
- }, ot = [
3028
+ }, it = [
3029
3029
  { name: "Can view", icon: Zt, value: "view" },
3030
3030
  { name: "Can manage", icon: Kt, value: "edit" },
3031
- { name: "Remove", icon: ir, isDestructive: !0, value: "remove" }
3031
+ { name: "Remove", icon: or, isDestructive: !0, value: "remove" }
3032
3032
  ], rs = ({ item: t, allowedPermissions: a, onPermissionChange: s }) => {
3033
- const [i, l] = L(!1), { refs: m, floatingStyles: o, context: u } = sa({
3034
- open: i,
3033
+ const [o, l] = L(!1), { refs: m, floatingStyles: i, context: u } = sa({
3034
+ open: o,
3035
3035
  onOpenChange: l,
3036
- middleware: [la(8), ia(), oa({ padding: 8 })],
3036
+ middleware: [la(8), oa(), ia({ padding: 8 })],
3037
3037
  whileElementsMounted: ca,
3038
3038
  placement: "bottom-end"
3039
3039
  }), g = Zr(u), f = Kr(u), { getReferenceProps: x, getFloatingProps: r } = en([
3040
3040
  g,
3041
3041
  f
3042
- ]), N = ot.find((p) => p.name === t.permission || p.value === t.permission) || ot[0];
3042
+ ]), N = it.find((p) => p.name === t.permission || p.value === t.permission) || it[0];
3043
3043
  return (
3044
3044
  // FIX: The <Listbox> component now wraps both the button and the portal.
3045
3045
  // This provides the necessary context for both children.
@@ -3062,7 +3062,7 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3062
3062
  ue,
3063
3063
  {
3064
3064
  as: Q,
3065
- show: i,
3065
+ show: o,
3066
3066
  enter: "transition ease-out duration-100",
3067
3067
  enterFrom: "transform opacity-0 scale-95",
3068
3068
  enterTo: "transform opacity-100 scale-100",
@@ -3073,11 +3073,11 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3073
3073
  K.Options,
3074
3074
  {
3075
3075
  ref: m.setFloating,
3076
- style: o,
3076
+ style: i,
3077
3077
  ...r(),
3078
3078
  static: !0,
3079
3079
  className: "z-50 w-48 bg-white shadow-lg rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm",
3080
- children: ot.filter((p) => a.includes(p.value)).map((p) => /* @__PURE__ */ e(
3080
+ children: it.filter((p) => a.includes(p.value)).map((p) => /* @__PURE__ */ e(
3081
3081
  K.Option,
3082
3082
  {
3083
3083
  className: ({
@@ -3114,18 +3114,18 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3114
3114
  //entire file or folder details
3115
3115
  onBack: a,
3116
3116
  onClose: s,
3117
- onOpenMembers: i,
3117
+ onOpenMembers: o,
3118
3118
  existingShares: l,
3119
3119
  allowedPermissions: m
3120
3120
  }) => {
3121
- const [o, u] = L(l), [g, f] = L(0), [x, r] = L(""), N = kt(x, 300), d = {
3122
- users: o.users.filter(
3121
+ const [i, u] = L(l), [g, f] = L(0), [x, r] = L(""), N = kt(x, 300), d = {
3122
+ users: i.users.filter(
3123
3123
  (R) => R.name.toLowerCase().includes(N.toLowerCase())
3124
3124
  ),
3125
- groups: o.groups.filter(
3125
+ groups: i.groups.filter(
3126
3126
  (R) => R.name.toLowerCase().includes(N.toLowerCase())
3127
3127
  ),
3128
- roles: o.roles.filter(
3128
+ roles: i.roles.filter(
3129
3129
  (R) => R.name.toLowerCase().includes(N.toLowerCase())
3130
3130
  )
3131
3131
  }, p = async (R, O, V, U) => {
@@ -3138,9 +3138,9 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3138
3138
  }));
3139
3139
  }, $ = () => {
3140
3140
  const R = {
3141
- users: o.users.filter((O) => O.permission !== "remove"),
3142
- groups: o.groups.filter((O) => O.permission !== "remove"),
3143
- roles: o.roles.filter((O) => O.permission !== "remove")
3141
+ users: i.users.filter((O) => O.permission !== "remove"),
3142
+ groups: i.groups.filter((O) => O.permission !== "remove"),
3143
+ roles: i.roles.filter((O) => O.permission !== "remove")
3144
3144
  };
3145
3145
  a(R);
3146
3146
  }, A = ["users", "groups", "roles"], E = ["Users", "Groups", "Roles"];
@@ -3151,7 +3151,7 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3151
3151
  /* @__PURE__ */ n(
3152
3152
  "button",
3153
3153
  {
3154
- onClick: () => a(o),
3154
+ onClick: () => a(i),
3155
3155
  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",
3156
3156
  children: [
3157
3157
  /* @__PURE__ */ e(ea, { className: "h-5 w-5" }),
@@ -3231,7 +3231,7 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3231
3231
  R !== "users" && /* @__PURE__ */ e(
3232
3232
  "button",
3233
3233
  {
3234
- onClick: () => i({
3234
+ onClick: () => o({
3235
3235
  id: O.id,
3236
3236
  type: R,
3237
3237
  name: O.name
@@ -3306,9 +3306,9 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3306
3306
  // { id, name, type: "group" | "role" }
3307
3307
  onBack: a,
3308
3308
  onClose: s,
3309
- members: i
3309
+ members: o
3310
3310
  }) => {
3311
- const [l, m] = L(!0), [o, u] = L(""), g = kt(o, 300), f = i.filter(
3311
+ const [l, m] = L(!0), [i, u] = L(""), g = kt(i, 300), f = o.filter(
3312
3312
  (d) => d.name.toLowerCase().includes(g.toLowerCase())
3313
3313
  ), x = {
3314
3314
  hidden: { opacity: 0 },
@@ -3332,7 +3332,7 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3332
3332
  animate: { opacity: 1, scale: 1 },
3333
3333
  className: "flex flex-col items-center justify-center text-center p-8 mt-10",
3334
3334
  children: [
3335
- /* @__PURE__ */ e(or, { className: "h-12 w-12 text-gray-400" }),
3335
+ /* @__PURE__ */ e(ir, { className: "h-12 w-12 text-gray-400" }),
3336
3336
  /* @__PURE__ */ e("h3", { className: "mt-2 text-sm font-medium text-gray-900", children: "No Users Found" }),
3337
3337
  /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-gray-500", children: g ? `No one found matching "${g}"` : `There are no users in this ${t.type}.` })
3338
3338
  ]
@@ -3402,7 +3402,7 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3402
3402
  he,
3403
3403
  {
3404
3404
  onDebouncedChange: u,
3405
- value: o,
3405
+ value: i,
3406
3406
  placeholder: "Search members..."
3407
3407
  }
3408
3408
  ) }),
@@ -3412,7 +3412,7 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3412
3412
  INVITE: "invite",
3413
3413
  MANAGE: "manage",
3414
3414
  MEMBERS: "members"
3415
- }, is = ({
3415
+ }, os = ({
3416
3416
  existingShares: t = {
3417
3417
  users: [],
3418
3418
  groups: [],
@@ -3421,11 +3421,11 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3421
3421
  isOpen: a,
3422
3422
  onFinalSubmit: s = () => {
3423
3423
  },
3424
- mainEntity: i,
3424
+ mainEntity: o,
3425
3425
  calledBy: l,
3426
3426
  onClose: m = () => {
3427
3427
  },
3428
- showExistingShares: o = !0,
3428
+ showExistingShares: i = !0,
3429
3429
  allowedPermissions: u = [],
3430
3430
  ...g
3431
3431
  }) => {
@@ -3445,9 +3445,9 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3445
3445
  p({ id: w, type: k, name: T }), V(f), x(pe.MEMBERS);
3446
3446
  }, C = (w) => {
3447
3447
  console.log("changedExistingShares", w), N(w);
3448
- const T = it.mapValues(t, (b) => b.map((y) => ({ id: y.id, permission: y.permission })).sort((y, D) => y.id - D.id)), k = it.mapValues(w, (b) => b.map((y) => ({ id: y.id, permission: y.permission })).sort((y, D) => y.id - D.id));
3448
+ const T = ot.mapValues(t, (b) => b.map((y) => ({ id: y.id, permission: y.permission })).sort((y, D) => y.id - D.id)), k = ot.mapValues(w, (b) => b.map((y) => ({ id: y.id, permission: y.permission })).sort((y, D) => y.id - D.id));
3449
3449
  console.log("Existing data:", T), console.log("Changed data:", k);
3450
- const v = !it.isEqual(T, k);
3450
+ const v = !ot.isEqual(T, k);
3451
3451
  console.log("hasPermissionChanged:", v), A(v), x(f === pe.MEMBERS ? O : pe.INVITE);
3452
3452
  };
3453
3453
  return /* @__PURE__ */ e(ue, { appear: !0, show: a, as: Q, children: /* @__PURE__ */ n(be, { as: "div", className: "relative z-50", onClose: U, children: [
@@ -3466,7 +3466,7 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3466
3466
  children: /* @__PURE__ */ e(
3467
3467
  ns,
3468
3468
  {
3469
- entity: i,
3469
+ entity: o,
3470
3470
  onBack: C,
3471
3471
  onClose: U,
3472
3472
  onOpenMembers: G,
@@ -3513,12 +3513,12 @@ const Ee = Hn(), Ve = Ee.axiosGet, Gl = Ee.axiosDelete, Ze = Ee.axiosPost, Qn =
3513
3513
  children: /* @__PURE__ */ e(
3514
3514
  as,
3515
3515
  {
3516
- entity: i,
3516
+ entity: o,
3517
3517
  onManage: Y,
3518
3518
  onClose: U,
3519
3519
  existingShares: r,
3520
3520
  calledBy: l,
3521
- showExistingShares: o,
3521
+ showExistingShares: i,
3522
3522
  onFinalSubmit: (w) => {
3523
3523
  s(w, r);
3524
3524
  },
@@ -3539,12 +3539,12 @@ function at({
3539
3539
  label: t,
3540
3540
  options: a = [],
3541
3541
  selected: s = [],
3542
- onChange: i = () => {
3542
+ onChange: o = () => {
3543
3543
  },
3544
3544
  onBlur: l = () => {
3545
3545
  },
3546
3546
  placeholder: m = "Select options",
3547
- error: o = null,
3547
+ error: i = null,
3548
3548
  displayLimit: u = 3,
3549
3549
  selectionLimit: g = -1,
3550
3550
  // NEW: search behavior
@@ -3592,7 +3592,7 @@ function at({
3592
3592
  };
3593
3593
  return /* @__PURE__ */ e(K, { value: U, onChange: (w) => {
3594
3594
  const T = Array.from(new Set(w.map((k) => d(k))));
3595
- g !== -1 && T.length > g || i(T);
3595
+ g !== -1 && T.length > g || o(T);
3596
3596
  }, multiple: !0, by: "id", children: ({ open: w }) => /* @__PURE__ */ n("div", { children: [
3597
3597
  /* @__PURE__ */ e(
3598
3598
  K.Label,
@@ -3607,12 +3607,12 @@ function at({
3607
3607
  K.Button,
3608
3608
  {
3609
3609
  "aria-labelledby": $,
3610
- "aria-invalid": !!o,
3611
- "aria-describedby": o ? A : void 0,
3610
+ "aria-invalid": !!i,
3611
+ "aria-describedby": i ? A : void 0,
3612
3612
  onBlur: l,
3613
3613
  className: Ge(
3614
3614
  "relative w-full min-h-[38px] cursor-default rounded-md bg-white py-1.5 pl-3 pr-10 text-left text-gray-900 shadow-sm ring-1 ring-inset focus:outline-none focus:ring-2 focus:ring-gray-600 sm:text-sm sm:leading-6",
3615
- o ? "ring-red-500" : "ring-gray-300"
3615
+ i ? "ring-red-500" : "ring-gray-300"
3616
3616
  ),
3617
3617
  children: [
3618
3618
  /* @__PURE__ */ e("span", { className: "block truncate", children: C() }),
@@ -3678,7 +3678,7 @@ function at({
3678
3678
  ] })
3679
3679
  }
3680
3680
  ),
3681
- o && /* @__PURE__ */ e("p", { id: A, className: "mt-1 text-sm text-red-600", children: o })
3681
+ i && /* @__PURE__ */ e("p", { id: A, className: "mt-1 text-sm text-red-600", children: i })
3682
3682
  ] })
3683
3683
  ] }) });
3684
3684
  }
@@ -3728,10 +3728,10 @@ const Wl = ({
3728
3728
  isOpen: t = !1,
3729
3729
  setIsOpen: a,
3730
3730
  content: s,
3731
- header: i = { title: "", customHeader: null, isCrossShow: !0 },
3731
+ header: o = { title: "", customHeader: null, isCrossShow: !0 },
3732
3732
  footer: l = { show: !0, customFooter: null },
3733
3733
  primaryAction: m = { onSubmit: null, label: "Save", loader: !1, disabled: !1 },
3734
- secondaryAction: o = { onCancel: null, label: "Cancel" },
3734
+ secondaryAction: i = { onCancel: null, label: "Cancel" },
3735
3735
  dialogPanelClass: u = ""
3736
3736
  }) => {
3737
3737
  const g = (x) => {
@@ -3760,9 +3760,9 @@ const Wl = ({
3760
3760
  onClick: f,
3761
3761
  children: [
3762
3762
  /* @__PURE__ */ n("div", { className: "flex justify-between items-center border-b border-gray-200 p-6 flex-shrink-0", children: [
3763
- i?.customHeader && i.customHeader,
3764
- i?.title && !i?.customHeader && /* @__PURE__ */ e(et, { className: "text-lg font-bold", children: i?.title }),
3765
- i?.isCrossShow && /* @__PURE__ */ e("button", { onClick: () => a(!1), className: "p-2", children: /* @__PURE__ */ e(ye, { className: "w-5 h-5" }) })
3763
+ o?.customHeader && o.customHeader,
3764
+ o?.title && !o?.customHeader && /* @__PURE__ */ e(et, { className: "text-lg font-bold", children: o?.title }),
3765
+ o?.isCrossShow && /* @__PURE__ */ e("button", { onClick: () => a(!1), className: "p-2", children: /* @__PURE__ */ e(ye, { className: "w-5 h-5" }) })
3766
3766
  ] }),
3767
3767
  /* @__PURE__ */ e(
3768
3768
  "div",
@@ -3773,15 +3773,15 @@ const Wl = ({
3773
3773
  }
3774
3774
  ),
3775
3775
  l?.show && !l?.customFooter && /* @__PURE__ */ n("div", { className: "border-t flex justify-end border-gray-200 p-6 flex-shrink-0", children: [
3776
- o?.onCancel && /* @__PURE__ */ e(
3776
+ i?.onCancel && /* @__PURE__ */ e(
3777
3777
  ee,
3778
3778
  {
3779
3779
  "data-testid": "cancel-button",
3780
- label: o?.label,
3780
+ label: i?.label,
3781
3781
  loader: !1,
3782
3782
  ariaLabel: "Cancel Button",
3783
3783
  className: "p-3 mr-3 secondaryButton !w-[70px]",
3784
- onClick: () => o?.onCancel(),
3784
+ onClick: () => i?.onCancel(),
3785
3785
  category: "secondary"
3786
3786
  }
3787
3787
  ),
@@ -3807,7 +3807,7 @@ const Wl = ({
3807
3807
  }
3808
3808
  );
3809
3809
  };
3810
- function os({ listeners: t = {}, attributes: a = {} }) {
3810
+ function is({ listeners: t = {}, attributes: a = {} }) {
3811
3811
  return /* @__PURE__ */ e(
3812
3812
  "button",
3813
3813
  {
@@ -3825,10 +3825,10 @@ function cs({
3825
3825
  node: t,
3826
3826
  depth: a,
3827
3827
  expanded: s,
3828
- onToggle: i,
3828
+ onToggle: o,
3829
3829
  onSelect: l,
3830
3830
  onCreateChild: m,
3831
- onRename: o,
3831
+ onRename: i,
3832
3832
  onDelete: u,
3833
3833
  renderActions: g,
3834
3834
  // optional override
@@ -3838,7 +3838,7 @@ function cs({
3838
3838
  }) {
3839
3839
  const { setNodeRef: N, isOver: d } = cr({ id: x }), { attributes: p, listeners: $, setNodeRef: A, transform: E, isDragging: R } = dr({ id: f }), O = E ? { transform: `translate3d(${Math.round(E.x)}px, ${Math.round(E.y)}px, 0)` } : void 0, [V, U] = L(!1), [Y, G] = L(t.name), C = () => {
3840
3840
  const w = Y.trim();
3841
- U(!1), w && w !== t.name ? o?.(t, w) : G(t.name);
3841
+ U(!1), w && w !== t.name ? i?.(t, w) : G(t.name);
3842
3842
  }, h = me(() => /* @__PURE__ */ e(
3843
3843
  _n,
3844
3844
  {
@@ -3862,7 +3862,7 @@ function cs({
3862
3862
  w.target.closest(".tv-toggle") || w.target.tagName === "INPUT" || l?.(t);
3863
3863
  },
3864
3864
  children: [
3865
- /* @__PURE__ */ e("button", { className: "tv-toggle", onClick: i, "aria-label": "toggle", children: t.children?.length ? s ? /* @__PURE__ */ e(vt, { size: 16 }) : /* @__PURE__ */ e(fe, { size: 16 }) : /* @__PURE__ */ e("span", { className: "tv-spacer" }) }),
3865
+ /* @__PURE__ */ e("button", { className: "tv-toggle", onClick: o, "aria-label": "toggle", children: t.children?.length ? s ? /* @__PURE__ */ e(vt, { size: 16 }) : /* @__PURE__ */ e(fe, { size: 16 }) : /* @__PURE__ */ e("span", { className: "tv-spacer" }) }),
3866
3866
  /* @__PURE__ */ e(Le, { size: 16, className: "tv-folder-ic" }),
3867
3867
  /* @__PURE__ */ e("div", { className: "tv-name", ref: A, children: V ? /* @__PURE__ */ e(
3868
3868
  "input",
@@ -3877,7 +3877,7 @@ function cs({
3877
3877
  autoFocus: !0
3878
3878
  }
3879
3879
  ) : /* @__PURE__ */ e("span", { onDoubleClick: () => U(!0), children: t.name }) }),
3880
- /* @__PURE__ */ e(os, { listeners: $, attributes: p }),
3880
+ /* @__PURE__ */ e(is, { listeners: $, attributes: p }),
3881
3881
  /* @__PURE__ */ e("div", { className: "tv-actions", children: g ? g(t, {
3882
3882
  onCreateChild: () => m?.(t),
3883
3883
  onRename: () => U(!0),
@@ -3888,7 +3888,7 @@ function cs({
3888
3888
  );
3889
3889
  }
3890
3890
  const ds = (t) => String(t.id ?? t._id), ms = (t) => t.parent !== void 0 ? String(t.parent) : t.parentId != null ? String(t.parentId) : "root", us = (t) => t.name ?? t.label ?? "", hs = (t) => Array.isArray(t) && t.some((a) => Array.isArray(a.children));
3891
- function ps(t, { rootId: a, getId: s, getParent: i, getName: l }) {
3891
+ function ps(t, { rootId: a, getId: s, getParent: o, getName: l }) {
3892
3892
  const m = /* @__PURE__ */ new Map();
3893
3893
  t.forEach((u) => {
3894
3894
  const g = s(u);
@@ -3896,23 +3896,23 @@ function ps(t, { rootId: a, getId: s, getParent: i, getName: l }) {
3896
3896
  ...u,
3897
3897
  id: g,
3898
3898
  name: l(u),
3899
- parentId: i(u) || a,
3899
+ parentId: o(u) || a,
3900
3900
  children: []
3901
3901
  });
3902
3902
  });
3903
- const o = [];
3903
+ const i = [];
3904
3904
  return m.forEach((u) => {
3905
3905
  const g = u.parentId || a;
3906
- g !== a && m.has(g) ? m.get(g).children.push(u) : o.push(u);
3907
- }), { roots: o, byId: m };
3906
+ g !== a && m.has(g) ? m.get(g).children.push(u) : i.push(u);
3907
+ }), { roots: i, byId: m };
3908
3908
  }
3909
- function gs(t, { rootId: a, getId: s, getName: i }) {
3909
+ function gs(t, { rootId: a, getId: s, getName: o }) {
3910
3910
  const l = /* @__PURE__ */ new Map();
3911
3911
  function m(u, g) {
3912
3912
  const f = s(u), x = {
3913
3913
  ...u,
3914
3914
  id: f,
3915
- name: i(u),
3915
+ name: o(u),
3916
3916
  parentId: g || a,
3917
3917
  children: (u.children || []).map((r) => m(r, f))
3918
3918
  };
@@ -3923,38 +3923,38 @@ function gs(t, { rootId: a, getId: s, getName: i }) {
3923
3923
  const Me = (t) => t.map((a) => ({ ...a, children: Me(a.children || []) }));
3924
3924
  function bs(t, a) {
3925
3925
  let s = null;
3926
- function i(m) {
3927
- return m.map((o) => {
3928
- if (o.id === a)
3929
- return s = o, null;
3930
- if (o.children?.length) {
3931
- const u = i(o.children);
3932
- if (u !== o.children) return { ...o, children: u };
3926
+ function o(m) {
3927
+ return m.map((i) => {
3928
+ if (i.id === a)
3929
+ return s = i, null;
3930
+ if (i.children?.length) {
3931
+ const u = o(i.children);
3932
+ if (u !== i.children) return { ...i, children: u };
3933
3933
  }
3934
- return o;
3934
+ return i;
3935
3935
  }).filter(Boolean);
3936
3936
  }
3937
- return { newRoots: i(t), removed: s };
3937
+ return { newRoots: o(t), removed: s };
3938
3938
  }
3939
3939
  function fs(t, a, s) {
3940
- function i(l) {
3940
+ function o(l) {
3941
3941
  return l.map((m) => {
3942
3942
  if (m.id === a)
3943
3943
  return { ...m, children: [...m.children || [], { ...s, parentId: a }] };
3944
3944
  if (m.children?.length) {
3945
- const o = i(m.children);
3946
- if (o !== m.children) return { ...m, children: o };
3945
+ const i = o(m.children);
3946
+ if (i !== m.children) return { ...m, children: i };
3947
3947
  }
3948
3948
  return m;
3949
3949
  });
3950
3950
  }
3951
- return i(t);
3951
+ return o(t);
3952
3952
  }
3953
3953
  function Sa(t, a, s = null) {
3954
- for (const i of t) {
3955
- if (i.id === a) return { node: i, parentId: s };
3956
- if (i.children?.length) {
3957
- const l = Sa(i.children, a, i.id);
3954
+ for (const o of t) {
3955
+ if (o.id === a) return { node: o, parentId: s };
3956
+ if (o.children?.length) {
3957
+ const l = Sa(o.children, a, o.id);
3958
3958
  if (l) return l;
3959
3959
  }
3960
3960
  }
@@ -3964,10 +3964,10 @@ function Jl({
3964
3964
  data: t = [],
3965
3965
  rootId: a = "root",
3966
3966
  title: s = "Folders",
3967
- getId: i = ds,
3967
+ getId: o = ds,
3968
3968
  getParent: l = ms,
3969
3969
  getName: m = us,
3970
- onSelect: o,
3970
+ onSelect: i,
3971
3971
  onCreateRoot: u,
3972
3972
  onCreateChild: g,
3973
3973
  onRename: f,
@@ -3978,10 +3978,10 @@ function Jl({
3978
3978
  // ← allow root moves by default now
3979
3979
  indentUnit: p = 24
3980
3980
  }) {
3981
- const { roots: $ } = me(() => hs(t) ? gs(t, { rootId: a, getId: i, getName: m }) : ps(
3981
+ const { roots: $ } = me(() => hs(t) ? gs(t, { rootId: a, getId: o, getName: m }) : ps(
3982
3982
  t.map((y) => ({ ...y })),
3983
- { rootId: a, getId: i, getParent: l, getName: m }
3984
- ), [t, a, i, l, m]), [A, E] = L({}), R = ae((y) => {
3983
+ { rootId: a, getId: o, getParent: l, getName: m }
3984
+ ), [t, a, o, l, m]), [A, E] = L({}), R = ae((y) => {
3985
3985
  const D = {};
3986
3986
  return (function M(z) {
3987
3987
  z.forEach((P) => {
@@ -4041,7 +4041,7 @@ function Jl({
4041
4041
  depth: D,
4042
4042
  expanded: !!A[M.id],
4043
4043
  onToggle: () => O(M.id),
4044
- onSelect: o,
4044
+ onSelect: i,
4045
4045
  onCreateChild: g,
4046
4046
  onRename: f,
4047
4047
  onDelete: x,
@@ -4053,7 +4053,7 @@ function Jl({
4053
4053
  ),
4054
4054
  A[M.id] && M.children?.length > 0 ? b(M.children, D + 1) : null
4055
4055
  ] }, M.id)),
4056
- [A, p, g, x, f, o, N, O]
4056
+ [A, p, g, x, f, i, N, O]
4057
4057
  );
4058
4058
  return se.useMemo(() => {
4059
4059
  if (!C) return null;
@@ -4098,10 +4098,10 @@ const Xl = ({
4098
4098
  tabs: t = [],
4099
4099
  keepMounted: a = !0,
4100
4100
  orientation: s = "horizontal",
4101
- containerClassName: i = "",
4101
+ containerClassName: o = "",
4102
4102
  listClassName: l = "",
4103
4103
  panelClassName: m = "",
4104
- tabClassName: o,
4104
+ tabClassName: i,
4105
4105
  ...u
4106
4106
  // Pass remaining props to Tab.Group
4107
4107
  }) => {
@@ -4111,8 +4111,8 @@ const Xl = ({
4111
4111
  ), x = (N) => we(
4112
4112
  "text-left text-sm rounded-md px-2 py-1.5 focus:outline-none",
4113
4113
  N ? "bg-primaryX text-white" : "text-textX hover:bg-lightgray-100 hover:text-primaryX"
4114
- ), r = ({ selected: N }) => o ? typeof o == "function" ? o(N) : o : g ? x(N) : f(N);
4115
- return /* @__PURE__ */ e(ne.Group, { vertical: g, ...u, children: g ? /* @__PURE__ */ n("div", { className: we("flex gap-4", i), children: [
4114
+ ), r = ({ selected: N }) => i ? typeof i == "function" ? i(N) : i : g ? x(N) : f(N);
4115
+ return /* @__PURE__ */ e(ne.Group, { vertical: g, ...u, children: g ? /* @__PURE__ */ n("div", { className: we("flex gap-4", o), children: [
4116
4116
  /* @__PURE__ */ e(ne.List, { className: we("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)) }),
4117
4117
  /* @__PURE__ */ e(ne.Panels, { unmount: !a, className: we("flex-1", m), 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)) })
4118
4118
  ] }) : (
@@ -4127,9 +4127,9 @@ function Hl(t, a = "YYYY-MM-DD HH:mm:ss") {
4127
4127
  return t ? (t.endsWith("Z") || /[+\-]\d{2}:?\d{2}$/.test(t) ? zt.parseZone(t) : zt.utc(t)).local().format(a) : null;
4128
4128
  }
4129
4129
  c.string;
4130
- function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4130
+ function ys({ item: t, data: a, updateHandler: s, validationErrors: o = {} }) {
4131
4131
  console.log(t);
4132
- const [l, m] = se.useState(t), [o, u] = se.useState(() => {
4132
+ const [l, m] = se.useState(t), [i, u] = se.useState(() => {
4133
4133
  const r = a && a[t.key] || {};
4134
4134
  return console.log("Initial Section data for", t.key, r), r;
4135
4135
  }), g = ge(a);
@@ -4139,14 +4139,14 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4139
4139
  const r = a && a[t.key] || {};
4140
4140
  console.log("Updated Section data for", t.key, r), u(r);
4141
4141
  }
4142
- }, [a, t.key]), console.log("Section data", o);
4143
- const f = ge(o);
4142
+ }, [a, t.key]), console.log("Section data", i);
4143
+ const f = ge(i);
4144
4144
  Z(() => {
4145
- f.current !== o && s && typeof s == "function" && (f.current = o, s(l.key, o));
4146
- }, [l.key, o, s]);
4145
+ f.current !== i && s && typeof s == "function" && (f.current = i, s(l.key, i));
4146
+ }, [l.key, i, s]);
4147
4147
  const x = (r) => {
4148
4148
  if (!r.dependsOn) return !0;
4149
- const { field: N, value: d, operator: p = "equals" } = r.dependsOn, $ = o[N];
4149
+ const { field: N, value: d, operator: p = "equals" } = r.dependsOn, $ = i[N];
4150
4150
  switch (p) {
4151
4151
  case "equals":
4152
4152
  return $ === d;
@@ -4205,17 +4205,18 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4205
4205
  name: r.key,
4206
4206
  defaultValue: r.default,
4207
4207
  placeholder: r.placeholder,
4208
- value: o[r.key] || "",
4208
+ value: i[r.key] || "",
4209
4209
  onChange: (d) => {
4210
- const p = { ...o, [r.key]: d.target.value };
4210
+ const p = { ...i, [r.key]: d.target.value };
4211
4211
  u(p), s && s(l.key, p);
4212
4212
  },
4213
4213
  required: r.required,
4214
4214
  disabled: r.disabled ? r.disabled : !1,
4215
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4215
+ readOnly: r.readonly ? r.readonly : !1,
4216
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4216
4217
  }
4217
4218
  ),
4218
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4219
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4219
4220
  ] }),
4220
4221
  r.fieldtype === "textarea" && /* @__PURE__ */ n("div", { children: [
4221
4222
  /* @__PURE__ */ e(
@@ -4224,18 +4225,19 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4224
4225
  name: r.key,
4225
4226
  defaultValue: r.default,
4226
4227
  placeholder: r.placeholder,
4227
- value: o[r.key] || "",
4228
+ value: i[r.key] || "",
4228
4229
  onChange: (d) => {
4229
- const p = { ...o, [r.key]: d.target.value };
4230
+ const p = { ...i, [r.key]: d.target.value };
4230
4231
  u(p), s && s(l.key, p);
4231
4232
  },
4232
4233
  rows: 3,
4233
4234
  required: r.required,
4234
4235
  disabled: r.disabled ? r.disabled : !1,
4235
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4236
+ readOnly: r.readonly ? r.readonly : !1,
4237
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4236
4238
  }
4237
4239
  ),
4238
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4240
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4239
4241
  ] }),
4240
4242
  r.fieldtype === "number" && /* @__PURE__ */ n("div", { children: [
4241
4243
  /* @__PURE__ */ e(
@@ -4245,12 +4247,12 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4245
4247
  name: r.key,
4246
4248
  defaultValue: r.default,
4247
4249
  placeholder: r.placeholder,
4248
- value: o[r.key] || "",
4250
+ value: i[r.key] || "",
4249
4251
  min: r.min,
4250
4252
  max: r.max,
4251
4253
  step: r.step,
4252
4254
  onChange: (d) => {
4253
- const p = d.target.value, $ = { ...o, [r.key]: p };
4255
+ const p = d.target.value, $ = { ...i, [r.key]: p };
4254
4256
  u($), s && s(l.key, $);
4255
4257
  },
4256
4258
  onBlur: (d) => {
@@ -4262,7 +4264,7 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4262
4264
  },
4263
4265
  required: r.required,
4264
4266
  disabled: r.disabled ? r.disabled : !1,
4265
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4267
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4266
4268
  }
4267
4269
  ),
4268
4270
  r.min !== void 0 && /* @__PURE__ */ n("div", { style: { color: "#6b7280", fontSize: "11px", marginTop: "2px" }, children: [
@@ -4273,16 +4275,16 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4273
4275
  "Maximum value: ",
4274
4276
  r.max
4275
4277
  ] }),
4276
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4278
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4277
4279
  ] }),
4278
4280
  r.fieldtype === "checkbox" && /* @__PURE__ */ n("div", { children: [
4279
4281
  /* @__PURE__ */ e(
4280
4282
  da,
4281
4283
  {
4282
4284
  name: r.key,
4283
- checked: !!(o[r.key] || r.default),
4285
+ checked: !!(i[r.key] || r.default),
4284
4286
  onChange: (d) => {
4285
- const p = { ...o, [r.key]: d };
4287
+ const p = { ...i, [r.key]: d };
4286
4288
  u(p), s && s(l.key, p);
4287
4289
  },
4288
4290
  label: r.placeholder || r.label,
@@ -4290,7 +4292,7 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4290
4292
  className: "w-full"
4291
4293
  }
4292
4294
  ),
4293
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4295
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4294
4296
  ] }),
4295
4297
  r.fieldtype === "select" && /* @__PURE__ */ n("div", { children: [
4296
4298
  /* @__PURE__ */ e(
@@ -4298,19 +4300,19 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4298
4300
  {
4299
4301
  name: r.key,
4300
4302
  defaultValue: r.default,
4301
- value: o[r.key] || "",
4303
+ value: i[r.key] || "",
4302
4304
  onChange: (d) => {
4303
- const p = { ...o, [r.key]: d };
4305
+ const p = { ...i, [r.key]: d };
4304
4306
  u(p);
4305
4307
  },
4306
4308
  options: r.options || [],
4307
4309
  placeholder: r.placeholder || `Select ${r.label}`,
4308
4310
  required: r.required,
4309
4311
  disabled: r.disabled ? r.disabled : !1,
4310
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4312
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4311
4313
  }
4312
4314
  ),
4313
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4315
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4314
4316
  ] }),
4315
4317
  r.fieldtype === "email" && /* @__PURE__ */ n("div", { children: [
4316
4318
  /* @__PURE__ */ e(
@@ -4320,17 +4322,17 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4320
4322
  name: r.key,
4321
4323
  defaultValue: r.default,
4322
4324
  placeholder: r.placeholder || "Enter email address",
4323
- value: o[r.key] || "",
4325
+ value: i[r.key] || "",
4324
4326
  onChange: (d) => {
4325
- const p = { ...o, [r.key]: d.target.value };
4327
+ const p = { ...i, [r.key]: d.target.value };
4326
4328
  u(p), s && s(l.key, p);
4327
4329
  },
4328
4330
  required: r.required,
4329
4331
  disabled: r.disabled ? r.disabled : !1,
4330
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4332
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4331
4333
  }
4332
4334
  ),
4333
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4335
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4334
4336
  ] }),
4335
4337
  r.fieldtype === "url" && /* @__PURE__ */ n("div", { children: [
4336
4338
  /* @__PURE__ */ e(
@@ -4340,17 +4342,17 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4340
4342
  name: r.key,
4341
4343
  defaultValue: r.default,
4342
4344
  placeholder: r.placeholder || "Enter URL",
4343
- value: o[r.key] || "",
4345
+ value: i[r.key] || "",
4344
4346
  onChange: (d) => {
4345
- const p = { ...o, [r.key]: d.target.value };
4347
+ const p = { ...i, [r.key]: d.target.value };
4346
4348
  u(p), s && s(l.key, p);
4347
4349
  },
4348
4350
  required: r.required,
4349
4351
  disabled: r.disabled ? r.disabled : !1,
4350
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4352
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4351
4353
  }
4352
4354
  ),
4353
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4355
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4354
4356
  ] }),
4355
4357
  r.fieldtype === "password" && /* @__PURE__ */ n("div", { children: [
4356
4358
  /* @__PURE__ */ e(
@@ -4360,62 +4362,62 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4360
4362
  name: r.key,
4361
4363
  defaultValue: r.default,
4362
4364
  placeholder: r.placeholder || "Enter password",
4363
- value: o[r.key] || "",
4365
+ value: i[r.key] || "",
4364
4366
  onChange: (d) => {
4365
- const p = { ...o, [r.key]: d.target.value };
4367
+ const p = { ...i, [r.key]: d.target.value };
4366
4368
  u(p), s && s(l.key, p);
4367
4369
  },
4368
4370
  required: r.required,
4369
4371
  disabled: r.disabled ? r.disabled : !1,
4370
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4372
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4371
4373
  }
4372
4374
  ),
4373
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4375
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4374
4376
  ] }),
4375
4377
  r.fieldtype === "multiselect" && /* @__PURE__ */ n("div", { children: [
4376
4378
  /* @__PURE__ */ e(
4377
4379
  at,
4378
4380
  {
4379
- selectedItems: o[r.key] || [],
4381
+ selectedItems: i[r.key] || [],
4380
4382
  onSelectionChange: (d) => {
4381
- const p = { ...o, [r.key]: d };
4383
+ const p = { ...i, [r.key]: d };
4382
4384
  u(p), s && s(l.key, p);
4383
4385
  },
4384
4386
  options: r.options || [],
4385
4387
  placeholder: r.placeholder || `Select ${r.label}`,
4386
4388
  disabled: r.disabled ? r.disabled : !1,
4387
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4389
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4388
4390
  }
4389
4391
  ),
4390
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4392
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4391
4393
  ] }),
4392
4394
  r.fieldtype === "toggle" && /* @__PURE__ */ n("div", { children: [
4393
4395
  /* @__PURE__ */ e(
4394
4396
  fa,
4395
4397
  {
4396
- checked: typeof o[r.key] == "boolean" ? o[r.key] : r.default,
4398
+ checked: typeof i[r.key] == "boolean" ? i[r.key] : r.default,
4397
4399
  onChange: (d) => {
4398
4400
  console.log("Toggle changed:", r.key, d);
4399
- const p = { ...o, [r.key]: d };
4401
+ const p = { ...i, [r.key]: d };
4400
4402
  u(p), s && s(l.key, p);
4401
4403
  },
4402
4404
  disabled: r.disabled ? r.disabled : !1
4403
4405
  }
4404
4406
  ),
4405
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4407
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4406
4408
  ] }),
4407
4409
  r.fieldtype === "date" && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
4408
4410
  ua,
4409
4411
  {
4410
4412
  label: r.label,
4411
- value: o[r.key] ? new Date(o[r.key]) : null,
4413
+ value: i[r.key] ? new Date(i[r.key]) : null,
4412
4414
  onChange: (d) => {
4413
- const p = { ...o, [r.key]: d ? d.toISOString().split("T")[0] : "" };
4415
+ const p = { ...i, [r.key]: d ? d.toISOString().split("T")[0] : "" };
4414
4416
  u(p), s && s(l.key, p);
4415
4417
  },
4416
4418
  placeholder: r.placeholder || "Select date",
4417
4419
  disabled: r.disabled ? r.disabled : !1,
4418
- error: i[l.key]?.[r.key],
4420
+ error: o[l.key]?.[r.key],
4419
4421
  className: "w-full"
4420
4422
  }
4421
4423
  ) }),
@@ -4423,14 +4425,14 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4423
4425
  Fn,
4424
4426
  {
4425
4427
  label: r.label,
4426
- value: o[r.key] || { from: null, to: null },
4428
+ value: i[r.key] || { from: null, to: null },
4427
4429
  onChange: (d) => {
4428
- const p = { ...o, [r.key]: d };
4430
+ const p = { ...i, [r.key]: d };
4429
4431
  u(p), s && s(l.key, p);
4430
4432
  },
4431
4433
  placeholder: r.placeholder || "Select date range",
4432
4434
  disabled: r.disabled ? r.disabled : !1,
4433
- error: i[l.key]?.[r.key],
4435
+ error: o[l.key]?.[r.key],
4434
4436
  className: "w-full"
4435
4437
  }
4436
4438
  ) }),
@@ -4438,9 +4440,9 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4438
4440
  /* @__PURE__ */ e(
4439
4441
  ha,
4440
4442
  {
4441
- selectedValue: typeof o[r.key] < "u" ? o[r.key] : r.default || "",
4443
+ selectedValue: typeof i[r.key] < "u" ? i[r.key] : r.default || "",
4442
4444
  onValueChange: (d) => {
4443
- const p = { ...o, [r.key]: d };
4445
+ const p = { ...i, [r.key]: d };
4444
4446
  u(p), s && s(l.key, p);
4445
4447
  },
4446
4448
  options: r.options || [],
@@ -4448,7 +4450,7 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4448
4450
  className: "w-full"
4449
4451
  }
4450
4452
  ),
4451
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4453
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4452
4454
  ] }),
4453
4455
  r.fieldtype === "native-radio" && /* @__PURE__ */ n("div", { className: "native-radiogroup-container", children: [
4454
4456
  (r.options || []).map((d) => /* @__PURE__ */ n("div", { className: "native-radio-option", children: [
@@ -4459,9 +4461,9 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4459
4461
  id: `${r.key}-${d.value}`,
4460
4462
  name: r.key,
4461
4463
  value: d.value,
4462
- checked: o[r.key] === d.value,
4464
+ checked: i[r.key] === d.value,
4463
4465
  onChange: (p) => {
4464
- const $ = { ...o, [r.key]: p.target.value };
4466
+ const $ = { ...i, [r.key]: p.target.value };
4465
4467
  u($), s && s(l.key, $);
4466
4468
  },
4467
4469
  disabled: r.disabled
@@ -4472,22 +4474,22 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4472
4474
  d.description && /* @__PURE__ */ e("span", { className: "native-radio-description", children: d.description })
4473
4475
  ] })
4474
4476
  ] }, d.value)),
4475
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4477
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4476
4478
  ] }),
4477
4479
  r.fieldtype === "search" && /* @__PURE__ */ n("div", { children: [
4478
4480
  /* @__PURE__ */ e(
4479
4481
  he,
4480
4482
  {
4481
- value: o[r.key] || "",
4483
+ value: i[r.key] || "",
4482
4484
  onChange: (d) => {
4483
- const p = { ...o, [r.key]: d };
4485
+ const p = { ...i, [r.key]: d };
4484
4486
  u(p), s && s(l.key, p);
4485
4487
  },
4486
4488
  placeholder: r.placeholder || `Search ${r.label}`,
4487
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4489
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4488
4490
  }
4489
4491
  ),
4490
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4492
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4491
4493
  ] }),
4492
4494
  (r.fieldtype === "datetime" || r.fieldtype === "datetime-local") && /* @__PURE__ */ n("div", { children: [
4493
4495
  /* @__PURE__ */ e(
@@ -4497,16 +4499,16 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4497
4499
  name: r.key,
4498
4500
  defaultValue: r.default,
4499
4501
  placeholder: r.placeholder || "Select date and time",
4500
- value: o[r.key] || "",
4502
+ value: i[r.key] || "",
4501
4503
  onChange: (d) => {
4502
- const p = { ...o, [r.key]: d.target.value };
4504
+ const p = { ...i, [r.key]: d.target.value };
4503
4505
  u(p), s && s(l.key, p);
4504
4506
  },
4505
4507
  required: r.required,
4506
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4508
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4507
4509
  }
4508
4510
  ),
4509
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4511
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4510
4512
  ] }),
4511
4513
  r.fieldtype === "time" && /* @__PURE__ */ n("div", { children: [
4512
4514
  /* @__PURE__ */ e(
@@ -4516,16 +4518,16 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4516
4518
  name: r.key,
4517
4519
  defaultValue: r.default,
4518
4520
  placeholder: r.placeholder || "Select time",
4519
- value: o[r.key] || "",
4521
+ value: i[r.key] || "",
4520
4522
  onChange: (d) => {
4521
- const p = { ...o, [r.key]: d.target.value };
4523
+ const p = { ...i, [r.key]: d.target.value };
4522
4524
  u(p), s && s(l.key, p);
4523
4525
  },
4524
4526
  required: r.required,
4525
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4527
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4526
4528
  }
4527
4529
  ),
4528
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4530
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4529
4531
  ] }),
4530
4532
  r.fieldtype === "color" && /* @__PURE__ */ n("div", { children: [
4531
4533
  /* @__PURE__ */ e(
@@ -4534,15 +4536,15 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4534
4536
  type: "color",
4535
4537
  name: r.key,
4536
4538
  defaultValue: r.default || "#000000",
4537
- value: o[r.key] || "#000000",
4539
+ value: i[r.key] || "#000000",
4538
4540
  onChange: (d) => {
4539
- const p = { ...o, [r.key]: d.target.value };
4541
+ const p = { ...i, [r.key]: d.target.value };
4540
4542
  u(p), s && s(l.key, p);
4541
4543
  },
4542
- className: `w-full h-10 ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4544
+ className: `w-full h-10 ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4543
4545
  }
4544
4546
  ),
4545
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4547
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4546
4548
  ] }),
4547
4549
  r.fieldtype === "range" && /* @__PURE__ */ n("div", { children: [
4548
4550
  /* @__PURE__ */ e(
@@ -4551,26 +4553,26 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4551
4553
  type: "range",
4552
4554
  name: r.key,
4553
4555
  defaultValue: r.default || r.min || 0,
4554
- value: o[r.key] || r.min || 0,
4556
+ value: i[r.key] || r.min || 0,
4555
4557
  onChange: (d) => {
4556
- const p = { ...o, [r.key]: d.target.value };
4558
+ const p = { ...i, [r.key]: d.target.value };
4557
4559
  u(p), s && s(l.key, p);
4558
4560
  },
4559
4561
  min: r.min || 0,
4560
4562
  max: r.max || 100,
4561
4563
  step: r.step || 1,
4562
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4564
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4563
4565
  }
4564
4566
  ),
4565
4567
  /* @__PURE__ */ n("div", { className: "flex justify-between text-sm text-gray-500 mt-1", children: [
4566
4568
  /* @__PURE__ */ e("span", { children: r.min || 0 }),
4567
4569
  /* @__PURE__ */ n("span", { children: [
4568
4570
  "Current: ",
4569
- o[r.key] || r.min || 0
4571
+ i[r.key] || r.min || 0
4570
4572
  ] }),
4571
4573
  /* @__PURE__ */ e("span", { children: r.max || 100 })
4572
4574
  ] }),
4573
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4575
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4574
4576
  ] }),
4575
4577
  r.fieldtype === "file" && /* @__PURE__ */ n("div", { children: [
4576
4578
  /* @__PURE__ */ e(
@@ -4579,24 +4581,24 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4579
4581
  type: "file",
4580
4582
  name: r.key,
4581
4583
  onChange: (d) => {
4582
- const p = d.target.files[0], $ = { ...o, [r.key]: p ? p.name : "" };
4584
+ const p = d.target.files[0], $ = { ...i, [r.key]: p ? p.name : "" };
4583
4585
  u($), s && s(l.key, $);
4584
4586
  },
4585
4587
  accept: r.accept,
4586
- className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4588
+ className: `w-full ${o[l.key]?.[r.key] ? "border-red-500" : ""}`
4587
4589
  }
4588
4590
  ),
4589
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4591
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4590
4592
  ] }),
4591
4593
  r.fieldtype === "managecollectionlist" && /* @__PURE__ */ n("div", { children: [
4592
4594
  /* @__PURE__ */ e(
4593
4595
  Da,
4594
4596
  {
4595
4597
  endpoints: r.endpoints || {},
4596
- initialData: o[r.key] || r.initialData || [],
4598
+ initialData: i[r.key] || r.initialData || [],
4597
4599
  className: r.className || "",
4598
4600
  onCollectionChange: (d) => {
4599
- const p = { ...o, [r.key]: d };
4601
+ const p = { ...i, [r.key]: d };
4600
4602
  u(p), s && s(l.key, p);
4601
4603
  },
4602
4604
  showSearch: r.showSearch !== !1,
@@ -4606,7 +4608,7 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4606
4608
  allowReorder: r.allowReorder !== !1
4607
4609
  }
4608
4610
  ),
4609
- i[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: i[l.key][r.key] })
4611
+ o[l.key]?.[r.key] && /* @__PURE__ */ e("div", { style: { color: "#ef4444", fontSize: "12px", marginTop: "2px" }, children: o[l.key][r.key] })
4610
4612
  ] }),
4611
4613
  r.info && /* @__PURE__ */ e(
4612
4614
  "p",
@@ -4623,9 +4625,9 @@ function ys({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4623
4625
  ] }) });
4624
4626
  }
4625
4627
  const xs = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex -space-x-2", children: t });
4626
- function vs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4628
+ function vs({ item: t, data: a, updateHandler: s, validationErrors: o = {} }) {
4627
4629
  console.log(`[DynamicConfig/DataTableRenderer] Component loaded for section: ${t.key}`);
4628
- const [l, m] = L(t), [o, u] = L(null), [g, f] = L(null);
4630
+ const [l, m] = L(t), [i, u] = L(null), [g, f] = L(null);
4629
4631
  console.log(`[DataTableRenderer] ${l.key} - Received props:`, { item: t, initialData: a });
4630
4632
  const [x, r] = L(() => {
4631
4633
  const h = a && a[l.key] || [], w = h.length > 0 ? h : [{ id: 0 }];
@@ -4652,7 +4654,7 @@ function vs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4652
4654
  const D = [...y];
4653
4655
  return D[v][h.key] = b, D;
4654
4656
  });
4655
- }, T = (v) => i[l.key]?.[v]?.[h.key], k = (v) => {
4657
+ }, T = (v) => o[l.key]?.[v]?.[h.key], k = (v) => {
4656
4658
  const b = T(v);
4657
4659
  return b ? /* @__PURE__ */ e("div", { className: "text-red-500 text-xs mt-1", children: b }) : null;
4658
4660
  };
@@ -5028,17 +5030,17 @@ function vs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5028
5030
  }, []), C = ae((h) => {
5029
5031
  console.log("[DataTableRenderer] handleAddAudience called with:", h), r((w) => {
5030
5032
  const T = [...w];
5031
- if (o !== null && g && T[o]) {
5033
+ if (i !== null && g && T[i]) {
5032
5034
  const k = h.pendingInvites || [], v = k.filter((D) => D.type === "User"), b = k.filter((D) => D.type === "Group"), y = k.filter((D) => D.type === "Role");
5033
- T[o][g] = {
5034
- users: [...T[o][g]?.users || [], ...v],
5035
- groups: [...T[o][g]?.groups || [], ...b],
5036
- roles: [...T[o][g]?.roles || [], ...y]
5037
- }, console.log("[DataTableRenderer] Updated audience data:", T[o][g]);
5035
+ T[i][g] = {
5036
+ users: [...T[i][g]?.users || [], ...v],
5037
+ groups: [...T[i][g]?.groups || [], ...b],
5038
+ roles: [...T[i][g]?.roles || [], ...y]
5039
+ }, console.log("[DataTableRenderer] Updated audience data:", T[i][g]);
5038
5040
  }
5039
5041
  return T;
5040
5042
  }), u(null), f(null);
5041
- }, [o, g]);
5043
+ }, [i, g]);
5042
5044
  return /* @__PURE__ */ n("div", { children: [
5043
5045
  /* @__PURE__ */ n("div", { style: { marginBottom: "20px" }, children: [
5044
5046
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
@@ -5093,14 +5095,14 @@ function vs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5093
5095
  w
5094
5096
  )) })
5095
5097
  ] }) }),
5096
- o !== null && (() => {
5097
- const h = x[o] && x[o][g] ? {
5098
- users: x[o][g].users || [],
5099
- groups: x[o][g].groups || [],
5100
- roles: x[o][g].roles || []
5098
+ i !== null && (() => {
5099
+ const h = x[i] && x[i][g] ? {
5100
+ users: x[i][g].users || [],
5101
+ groups: x[i][g].groups || [],
5102
+ roles: x[i][g].roles || []
5101
5103
  } : { users: [], groups: [], roles: [] };
5102
- return console.log("[DataTableRenderer] Opening modal with existing data:", h), console.log("[DataTableRenderer] Row data:", x[o]), console.log("[DataTableRenderer] Field name:", g), /* @__PURE__ */ e(
5103
- is,
5104
+ return console.log("[DataTableRenderer] Opening modal with existing data:", h), console.log("[DataTableRenderer] Row data:", x[i]), console.log("[DataTableRenderer] Field name:", g), /* @__PURE__ */ e(
5105
+ os,
5104
5106
  {
5105
5107
  isOpen: !0,
5106
5108
  onClose: () => {
@@ -5172,10 +5174,10 @@ const Mt = () => {
5172
5174
  endpoints: t = Ns,
5173
5175
  className: a = "",
5174
5176
  onCollectionChange: s,
5175
- showSearch: i = !0,
5177
+ showSearch: o = !0,
5176
5178
  allowAdd: l = !0,
5177
5179
  allowEdit: m = !0,
5178
- allowDelete: o = !0,
5180
+ allowDelete: i = !0,
5179
5181
  allowReorder: u = !0,
5180
5182
  initialData: g = null
5181
5183
  // Add prop for initial demo data
@@ -5245,7 +5247,7 @@ const Mt = () => {
5245
5247
  });
5246
5248
  x(null), N("");
5247
5249
  }, w = (z) => {
5248
- o && p((P) => {
5250
+ i && p((P) => {
5249
5251
  const F = P.filter((S) => S.id !== z.id);
5250
5252
  return s?.(F), F;
5251
5253
  });
@@ -5277,7 +5279,7 @@ const Mt = () => {
5277
5279
  ) : [];
5278
5280
  return /* @__PURE__ */ n("div", { className: `manage-collection-list ${a}`, children: [
5279
5281
  /* @__PURE__ */ e("div", { className: "flex justify-end", children: /* @__PURE__ */ n("div", { className: "w-1/2 flex justify-end", children: [
5280
- i && /* @__PURE__ */ e(
5282
+ o && /* @__PURE__ */ e(
5281
5283
  he,
5282
5284
  {
5283
5285
  value: O,
@@ -5380,7 +5382,7 @@ const Mt = () => {
5380
5382
  children: /* @__PURE__ */ e(yr, { color: "#767676" })
5381
5383
  }
5382
5384
  ),
5383
- o && /* @__PURE__ */ e(
5385
+ i && /* @__PURE__ */ e(
5384
5386
  "span",
5385
5387
  {
5386
5388
  className: F === 0 && !z.protected ? "cursor-pointer" : "cursor-not-allowed",
@@ -5398,20 +5400,20 @@ const Mt = () => {
5398
5400
  ] });
5399
5401
  }, $a = ({ item: t, data: a, updateHandler: s }) => {
5400
5402
  const {
5401
- label: i = "Manage Collections",
5403
+ label: o = "Manage Collections",
5402
5404
  description: l = "",
5403
5405
  endpoints: m = {},
5404
- initialData: o = null,
5406
+ initialData: i = null,
5405
5407
  showSearch: u = !0,
5406
5408
  allowAdd: g = !0,
5407
5409
  allowEdit: f = !0,
5408
5410
  allowDelete: x = !0,
5409
5411
  allowReorder: r = !0,
5410
5412
  className: N = ""
5411
- } = t, d = a?.[t.key] || o || [], p = Array.isArray(d) ? d : [];
5413
+ } = t, d = a?.[t.key] || i || [], p = Array.isArray(d) ? d : [];
5412
5414
  return /* @__PURE__ */ n("div", { className: "dynamic-config-manage-collection-list", children: [
5413
- (i || l) && /* @__PURE__ */ n("div", { className: "mb-4", children: [
5414
- i && /* @__PURE__ */ e("h3", { className: "text-lg font-medium text-gray-900 mb-1", children: i }),
5415
+ (o || l) && /* @__PURE__ */ n("div", { className: "mb-4", children: [
5416
+ o && /* @__PURE__ */ e("h3", { className: "text-lg font-medium text-gray-900 mb-1", children: o }),
5415
5417
  l && /* @__PURE__ */ e("p", { className: "text-sm text-gray-600", children: l })
5416
5418
  ] }),
5417
5419
  /* @__PURE__ */ e(
@@ -5451,10 +5453,10 @@ function zs({
5451
5453
  appid: t,
5452
5454
  configdata: a = null,
5453
5455
  disableApi: s = !1,
5454
- onCancel: i,
5456
+ onCancel: o,
5455
5457
  onSave: l
5456
5458
  }) {
5457
- const [m, o] = se.useState(a), [u, g] = se.useState(null), [f, x] = L(!1), [r, N] = L(!1), [d, p] = L({}), $ = `${ze()}/unifyedxappmodulemanagement/api/v1/appmanager/${t}/configuration`, A = $, [E, R] = L(1), O = (k) => {
5459
+ const [m, i] = se.useState(a), [u, g] = se.useState(null), [f, x] = L(!1), [r, N] = L(!1), [d, p] = L({}), $ = `${ze()}/unifyedxappmodulemanagement/api/v1/appmanager/${t}/configuration`, A = $, [E, R] = L(1), O = (k) => {
5458
5460
  if (!a || !a.configuration)
5459
5461
  return k;
5460
5462
  const v = {}, b = k?.configuration || {};
@@ -5529,7 +5531,7 @@ function zs({
5529
5531
  x(!1);
5530
5532
  }
5531
5533
  };
5532
- a && (o(a), t ? k() : V());
5534
+ a && (i(a), t ? k() : V());
5533
5535
  }, [a, E, t, s]);
5534
5536
  const U = (k, v) => {
5535
5537
  g((b) => ({
@@ -5654,8 +5656,8 @@ function zs({
5654
5656
  }
5655
5657
  })();
5656
5658
  }, w = () => {
5657
- if (i) {
5658
- i();
5659
+ if (o) {
5660
+ o();
5659
5661
  return;
5660
5662
  }
5661
5663
  d && Object.keys(d).length > 0 && !window.confirm(
@@ -5720,7 +5722,7 @@ const Ql = ({
5720
5722
  appid: a = "Configuration-Page",
5721
5723
  disableApi: s = !1
5722
5724
  }) => {
5723
- const [i, l] = L(0), [m, o] = L(!1), {
5725
+ const [o, l] = L(0), [m, i] = L(!1), {
5724
5726
  pageHeader: u = {},
5725
5727
  appletHeader: g = {},
5726
5728
  breadcrumb: f = [],
@@ -5728,15 +5730,16 @@ const Ql = ({
5728
5730
  configuration: r = []
5729
5731
  } = t, N = r.map((C) => {
5730
5732
  if (C.type === "section" && C.fields) {
5731
- const h = [...C.fields], w = h.findIndex((T) => T.key === "appkey");
5733
+ const h = [...C.fields], w = h.findIndex((T) => T && T.key === "appkey");
5732
5734
  if (w !== -1) {
5733
5735
  const T = h[w];
5734
5736
  if (h[w] = {
5735
5737
  ...T,
5736
5738
  default: a,
5737
5739
  value: a,
5738
- disabled: !0,
5739
- placeholder: a
5740
+ readonly: !0,
5741
+ placeholder: a,
5742
+ disabled: !1
5740
5743
  }, h.some((v) => v.key === "displayname")) {
5741
5744
  const v = h.findIndex((y) => y.key === "displayname"), b = h[v] || {};
5742
5745
  h[v] = {
@@ -5773,9 +5776,9 @@ const Ql = ({
5773
5776
  label: C.text,
5774
5777
  href: C.href || "#"
5775
5778
  })), $ = ae(() => {
5776
- console.log("handleCancelRequest called - showing modal"), o(!0);
5779
+ console.log("handleCancelRequest called - showing modal"), i(!0);
5777
5780
  }, []), A = ae((C) => {
5778
- o(!1), C.primary ? (console.log("User confirmed cancel - navigating back"), window.history.back()) : console.log("User cancelled the cancel action - modal closed, data preserved");
5781
+ i(!1), C.primary ? (console.log("User confirmed cancel - navigating back"), window.history.back()) : console.log("User cancelled the cancel action - modal closed, data preserved");
5779
5782
  }, []), E = ae((C) => {
5780
5783
  console.log("Configuration changed:", C);
5781
5784
  }, []), R = (() => {
@@ -5899,12 +5902,12 @@ const Ql = ({
5899
5902
  "button",
5900
5903
  {
5901
5904
  onClick: () => l(h),
5902
- className: `${i === h ? "border-black text-black" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"} whitespace-nowrap py-3 px-6 border-b-2 font-medium text-sm transition-colors duration-200`,
5905
+ className: `${o === h ? "border-black text-black" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"} whitespace-nowrap py-3 px-6 border-b-2 font-medium text-sm transition-colors duration-200`,
5903
5906
  children: C.label
5904
5907
  },
5905
5908
  h
5906
5909
  )) }) }),
5907
- /* @__PURE__ */ e("div", { className: "p-8 h-full overflow-y-auto", children: U[i].content })
5910
+ /* @__PURE__ */ e("div", { className: "p-8 h-full overflow-y-auto", children: U[o].content })
5908
5911
  ] }),
5909
5912
  /* @__PURE__ */ e(
5910
5913
  In,
@@ -5950,12 +5953,12 @@ const Kl = ({
5950
5953
  subheading: a = "",
5951
5954
  totalCount: s = 0,
5952
5955
  // Prefer "apiRef" naming for clarity (it's the wrapper API, not the raw grid instance)
5953
- gridRef: i,
5956
+ gridRef: o,
5954
5957
  // backward compat
5955
5958
  apiRef: l,
5956
5959
  // preferred
5957
5960
  onAdd: m,
5958
- onFilterOpen: o,
5961
+ onFilterOpen: i,
5959
5962
  addBtnText: u = "Add",
5960
5963
  // Feature toggles
5961
5964
  showSearch: g = !0,
@@ -5976,7 +5979,7 @@ const Kl = ({
5976
5979
  excelFileName: O,
5977
5980
  pdfFileName: V
5978
5981
  }) => {
5979
- const U = () => l?.current || i?.current, [Y, G] = se.useState(""), C = (t || "export").toString().trim() || "export", h = `${O || C}.xlsx`, w = `${V || C}.pdf`, T = (b, y, D) => Math.max(y, Math.min(b, D)), k = ae(
5982
+ const U = () => l?.current || o?.current, [Y, G] = se.useState(""), C = (t || "export").toString().trim() || "export", h = `${O || C}.xlsx`, w = `${V || C}.pdf`, T = (b, y, D) => Math.max(y, Math.min(b, D)), k = ae(
5980
5983
  (b) => {
5981
5984
  const y = U();
5982
5985
  if (console.log("openColumnChooserNear", y), !!y?.openColumnChooser) {
@@ -6057,7 +6060,7 @@ const Kl = ({
6057
6060
  ee,
6058
6061
  {
6059
6062
  icon: vr,
6060
- onClick: o,
6063
+ onClick: i,
6061
6064
  size: "small",
6062
6065
  ariaLabel: "Filters",
6063
6066
  category: "secondary",
@@ -6124,16 +6127,16 @@ const Kl = ({
6124
6127
  ] })
6125
6128
  ] });
6126
6129
  };
6127
- function ei(t) {
6130
+ function eo(t) {
6128
6131
  const {
6129
6132
  data: a = [],
6130
6133
  totalCount: s = 0,
6131
- uniqueId: i = "grid",
6134
+ uniqueId: o = "grid",
6132
6135
  pageIndex: l = 1,
6133
6136
  // 1-based
6134
6137
  // pageSize = 10,
6135
6138
  allowPaging: m = !0,
6136
- allowSorting: o = !0,
6139
+ allowSorting: i = !0,
6137
6140
  allowFiltering: u = !1,
6138
6141
  allowGrouping: g = !1,
6139
6142
  allowReordering: f = !0,
@@ -6158,8 +6161,8 @@ function ei(t) {
6158
6161
  ...k
6159
6162
  } = C || {}, [v, b] = se.useState(w?.page || 1), [y, D] = se.useState(T?.pageSize || 20), [M, z] = se.useState(T?.sortKey || "updatedDate"), [P, F] = se.useState(T?.direction || "Descending"), S = me(() => {
6160
6163
  const j = [sn];
6161
- return o && j.push(ln), u && j.push(on), g && j.push(cn), p && j.push(dn), r && j.push(mn), N && j.push(un), d && j.push(hn), x && j.push(pn), f && j.push(gn), j.push(bn), j;
6162
- }, [o, u, g, p, r, N, d, x, f]), B = me(() => {
6164
+ return i && j.push(ln), u && j.push(on), g && j.push(cn), p && j.push(dn), r && j.push(mn), N && j.push(un), d && j.push(hn), x && j.push(pn), f && j.push(gn), j.push(bn), j;
6165
+ }, [i, u, g, p, r, N, d, x, f]), B = me(() => {
6163
6166
  const j = () => h.current, re = (W, ve) => {
6164
6167
  !ve && process.env.NODE_ENV !== "production" && console.warn(`[CustomDataGrid] ${W} requested but related service/feature is disabled.`);
6165
6168
  };
@@ -6263,7 +6266,7 @@ function ei(t) {
6263
6266
  return /* @__PURE__ */ n(
6264
6267
  fn,
6265
6268
  {
6266
- id: i,
6269
+ id: o,
6267
6270
  ref: h,
6268
6271
  dataSource: {
6269
6272
  result: a,
@@ -6271,7 +6274,7 @@ function ei(t) {
6271
6274
  },
6272
6275
  height: $,
6273
6276
  allowPaging: m,
6274
- allowSorting: o,
6277
+ allowSorting: i,
6275
6278
  allowFiltering: u,
6276
6279
  allowGrouping: g,
6277
6280
  allowReordering: f,
@@ -6295,7 +6298,7 @@ function ei(t) {
6295
6298
  }
6296
6299
  );
6297
6300
  }
6298
- const oe = (t) => {
6301
+ const ie = (t) => {
6299
6302
  const a = String(t || "md").toLowerCase();
6300
6303
  return a === "xs" ? "sm" : a === "2lg" || a === "xlg" || a === "xl" ? "lg" : ["sm", "md", "lg"].includes(a) ? a : "md";
6301
6304
  }, ce = {
@@ -6318,25 +6321,25 @@ const oe = (t) => {
6318
6321
  meta: "text-sm"
6319
6322
  }
6320
6323
  }, Ss = (t, a) => typeof a == "function" ? a(t) : typeof a == "string" && t?.[a] != null ? t[a] : t?._id ?? t?.id ?? t?.instanceId ?? t?.legacyId ?? t?.key ?? null;
6321
- function ie({
6324
+ function oe({
6322
6325
  children: t,
6323
6326
  className: a = "",
6324
6327
  showCheckbox: s = !1,
6325
- checkboxPosition: i = "top-left",
6328
+ checkboxPosition: o = "top-left",
6326
6329
  // "top-left" | "top-right"
6327
6330
  onSelect: l,
6328
6331
  identity: m = "_id",
6329
- details: o = {},
6332
+ details: i = {},
6330
6333
  ...u
6331
6334
  }) {
6332
6335
  const g = Xe(), f = Ss(u, m), x = (N) => {
6333
6336
  l?.({
6334
6337
  key: f,
6335
6338
  checked: N.target.checked,
6336
- details: o,
6339
+ details: i,
6337
6340
  props: u
6338
6341
  });
6339
- }, r = i === "top-right" ? "top-3 right-3" : "top-3 left-3";
6342
+ }, r = o === "top-right" ? "top-3 right-3" : "top-3 left-3";
6340
6343
  return /* @__PURE__ */ n(
6341
6344
  "div",
6342
6345
  {
@@ -6358,7 +6361,7 @@ function ie({
6358
6361
  }
6359
6362
  );
6360
6363
  }
6361
- ie.propTypes = {
6364
+ oe.propTypes = {
6362
6365
  showCheckbox: c.bool,
6363
6366
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
6364
6367
  onSelect: c.func,
@@ -6369,11 +6372,11 @@ function Ds({
6369
6372
  size: t = "md",
6370
6373
  showCheckbox: a = !1,
6371
6374
  checkboxPosition: s = "top-left",
6372
- onSelect: i,
6375
+ onSelect: o,
6373
6376
  identity: l = "_id",
6374
6377
  // content
6375
6378
  title: m = "Activity",
6376
- group: o = "Global",
6379
+ group: i = "Global",
6377
6380
  moreGroupsLabel: u = "+ 5 more",
6378
6381
  author: g = "Judith Black",
6379
6382
  timeLabel: f = "Just now",
@@ -6382,16 +6385,16 @@ function Ds({
6382
6385
  // spread remaining props (_id, instanceId, etc.)
6383
6386
  ...N
6384
6387
  }) {
6385
- const d = oe(t), p = ce[d];
6388
+ const d = ie(t), p = ce[d];
6386
6389
  return /* @__PURE__ */ n(
6387
- ie,
6390
+ oe,
6388
6391
  {
6389
6392
  className: `flex flex-col ${p.card}`,
6390
6393
  showCheckbox: a,
6391
6394
  checkboxPosition: s,
6392
- onSelect: i,
6395
+ onSelect: o,
6393
6396
  identity: l,
6394
- details: { type: "activity", title: m, group: o, author: g },
6397
+ details: { type: "activity", title: m, group: i, author: g },
6395
6398
  ...N,
6396
6399
  children: [
6397
6400
  /* @__PURE__ */ e("div", { className: "flex items-start justify-between", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${p.title} ml-3`, children: m }) }),
@@ -6492,25 +6495,25 @@ function Es({
6492
6495
  size: t = "md",
6493
6496
  showCheckbox: a = !1,
6494
6497
  checkboxPosition: s = "top-left",
6495
- onSelect: i,
6498
+ onSelect: o,
6496
6499
  identity: l = "_id",
6497
6500
  title: m = "Communities",
6498
- activeTab: o = "joined",
6501
+ activeTab: i = "joined",
6499
6502
  // "joined" | "suggested"
6500
6503
  items: u = As,
6501
6504
  // spread for identity (_id/instanceId/etc)
6502
6505
  ...g
6503
6506
  }) {
6504
- const f = oe(t), x = ce[f], r = Fs[f], N = (d) => `px-1 pb-2 text-sm font-medium ${d === o ? "text-zinc-900 dark:text-zinc-100 border-b-2" : "text-zinc-500 dark:text-zinc-400"}`;
6507
+ const f = ie(t), x = ce[f], r = Fs[f], N = (d) => `px-1 pb-2 text-sm font-medium ${d === i ? "text-zinc-900 dark:text-zinc-100 border-b-2" : "text-zinc-500 dark:text-zinc-400"}`;
6505
6508
  return /* @__PURE__ */ n(
6506
- ie,
6509
+ oe,
6507
6510
  {
6508
6511
  className: `flex flex-col ${x.card} ${r.wrap}`,
6509
6512
  showCheckbox: a,
6510
6513
  checkboxPosition: s,
6511
- onSelect: i,
6514
+ onSelect: o,
6512
6515
  identity: l,
6513
- details: { type: "communities", title: m, activeTab: o, count: u?.length ?? 0 },
6516
+ details: { type: "communities", title: m, activeTab: i, count: u?.length ?? 0 },
6514
6517
  ...g,
6515
6518
  children: [
6516
6519
  /* @__PURE__ */ n("div", { className: "flex items-start justify-between", children: [
@@ -6528,14 +6531,14 @@ function Es({
6528
6531
  /* @__PURE__ */ e(
6529
6532
  "span",
6530
6533
  {
6531
- className: `${N("joined")} ${o === "joined" ? "border-[var(--primaryColor)]" : "border-transparent"}`,
6534
+ className: `${N("joined")} ${i === "joined" ? "border-[var(--primaryColor)]" : "border-transparent"}`,
6532
6535
  children: "Joined"
6533
6536
  }
6534
6537
  ),
6535
6538
  /* @__PURE__ */ e(
6536
6539
  "span",
6537
6540
  {
6538
- className: `${N("suggested")} ${o === "suggested" ? "border-[var(--primaryColor)]" : "border-transparent"}`,
6541
+ className: `${N("suggested")} ${i === "suggested" ? "border-[var(--primaryColor)]" : "border-transparent"}`,
6539
6542
  children: "Suggested"
6540
6543
  }
6541
6544
  )
@@ -6678,23 +6681,23 @@ function Ps({
6678
6681
  size: t = "md",
6679
6682
  showCheckbox: a = !1,
6680
6683
  checkboxPosition: s = "top-left",
6681
- onSelect: i,
6684
+ onSelect: o,
6682
6685
  identity: l = "_id",
6683
6686
  title: m = "News",
6684
- items: o = Rs,
6687
+ items: i = Rs,
6685
6688
  // spread for identity fields: _id / id / instanceId etc.
6686
6689
  ...u
6687
6690
  }) {
6688
- const g = oe(t), f = ce[g], x = Os[g];
6691
+ const g = ie(t), f = ce[g], x = Os[g];
6689
6692
  return /* @__PURE__ */ n(
6690
- ie,
6693
+ oe,
6691
6694
  {
6692
6695
  className: `flex flex-col ${f.card} ${x.wrap || ""}`,
6693
6696
  showCheckbox: a,
6694
6697
  checkboxPosition: s,
6695
- onSelect: i,
6698
+ onSelect: o,
6696
6699
  identity: l,
6697
- details: { type: "news", title: m, count: o?.length ?? 0 },
6700
+ details: { type: "news", title: m, count: i?.length ?? 0 },
6698
6701
  ...u,
6699
6702
  children: [
6700
6703
  /* @__PURE__ */ n("div", { className: "flex items-start justify-between", children: [
@@ -6703,7 +6706,7 @@ function Ps({
6703
6706
  ] }),
6704
6707
  g === "lg" ? (
6705
6708
  // Large: 3-up grid of image cards
6706
- /* @__PURE__ */ e("div", { className: `mt-4 ${x.grid}`, children: o.slice(0, 3).map((r) => /* @__PURE__ */ n("article", { children: [
6709
+ /* @__PURE__ */ e("div", { className: `mt-4 ${x.grid}`, children: i.slice(0, 3).map((r) => /* @__PURE__ */ n("article", { children: [
6707
6710
  /* @__PURE__ */ e("img", { src: r.thumb, alt: "", className: x.cardImg }),
6708
6711
  /* @__PURE__ */ e("h4", { className: `mt-3 ${x.title} text-zinc-900 dark:text-zinc-100`, children: r.title }),
6709
6712
  /* @__PURE__ */ e("div", { className: `mt-1 text-zinc-500 dark:text-zinc-400 ${x.date}`, children: r.date }),
@@ -6716,7 +6719,7 @@ function Ps({
6716
6719
  ] }, r._id || r.id || r.instanceId)) })
6717
6720
  ) : (
6718
6721
  // Small/Medium: list rows with thumb left
6719
- /* @__PURE__ */ e("ul", { className: "mt-4 grid gap-3", children: o.slice(0, 3).map((r) => /* @__PURE__ */ n(
6722
+ /* @__PURE__ */ e("ul", { className: "mt-4 grid gap-3", children: i.slice(0, 3).map((r) => /* @__PURE__ */ n(
6720
6723
  "li",
6721
6724
  {
6722
6725
  className: "flex items-start gap-3 rounded-xl border border-zinc-200 dark:border-zinc-800 p-2",
@@ -6782,22 +6785,22 @@ const Is = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], Ms = {
6782
6785
  searchH: "h-11 text-base",
6783
6786
  chipGap: "gap-3.5"
6784
6787
  }
6785
- }, Ls = ({ label: t, active: a = !1, size: s = "md", className: i = "" }) => {
6788
+ }, Ls = ({ label: t, active: a = !1, size: s = "md", className: o = "" }) => {
6786
6789
  const l = "inline-flex items-center justify-center whitespace-nowrap rounded-full border transition-colors duration-150 shadow-[0_0.5px_0_rgba(0,0,0,0.04)]", m = {
6787
6790
  sm: "h-8 px-3 text-[11px] font-semibold",
6788
6791
  md: "h-9 px-3.5 text-[13px] font-semibold",
6789
6792
  lg: "h-10 px-4 text-sm font-semibold"
6790
- }, o = a ? "bg-indigo-700 border-indigo-700 text-white" : "bg-white/95 dark:bg-zinc-900/90 border-zinc-300 dark:border-zinc-700 text-zinc-700 dark:text-zinc-200";
6791
- return /* @__PURE__ */ e("span", { className: `${l} ${m[s] ?? m.md} ${o} ${i}`, children: t });
6793
+ }, i = a ? "bg-indigo-700 border-indigo-700 text-white" : "bg-white/95 dark:bg-zinc-900/90 border-zinc-300 dark:border-zinc-700 text-zinc-700 dark:text-zinc-200";
6794
+ return /* @__PURE__ */ e("span", { className: `${l} ${m[s] ?? m.md} ${i} ${o}`, children: t });
6792
6795
  }, Bs = (t, a = 12) => `https://www.google.com/maps?q=${encodeURIComponent(t)}&z=${a}&output=embed`;
6793
6796
  function js({
6794
6797
  size: t = "md",
6795
6798
  showCheckbox: a = !1,
6796
6799
  checkboxPosition: s = "top-left",
6797
- onSelect: i,
6800
+ onSelect: o,
6798
6801
  identity: l = "_id",
6799
6802
  title: m = "Campus Map",
6800
- campusName: o = "Morningside Heights Campus",
6803
+ campusName: i = "Morningside Heights Campus",
6801
6804
  filters: u = Is,
6802
6805
  activeFilter: g = "All",
6803
6806
  // NEW: iframe controls
@@ -6807,16 +6810,16 @@ function js({
6807
6810
  // optional full embed URL override
6808
6811
  ...N
6809
6812
  }) {
6810
- const d = oe(t), p = ce[d], $ = Ms[d], A = r || Bs(f, x);
6813
+ const d = ie(t), p = ce[d], $ = Ms[d], A = r || Bs(f, x);
6811
6814
  return /* @__PURE__ */ e(
6812
- ie,
6815
+ oe,
6813
6816
  {
6814
6817
  className: `flex flex-col ${p.card} ${$.wrap}`,
6815
6818
  showCheckbox: a,
6816
6819
  checkboxPosition: s,
6817
- onSelect: i,
6820
+ onSelect: o,
6818
6821
  identity: l,
6819
- details: { type: "campus-map", title: m, campusName: o, activeFilter: g, mapQuery: f, zoom: x },
6822
+ details: { type: "campus-map", title: m, campusName: i, activeFilter: g, mapQuery: f, zoom: x },
6820
6823
  ...N,
6821
6824
  children: /* @__PURE__ */ n("div", { className: `relative mt-3 overflow-hidden rounded-2xl border border-zinc-200 dark:border-zinc-800 ${$.mapH}`, children: [
6822
6825
  /* @__PURE__ */ e(
@@ -6833,7 +6836,7 @@ function js({
6833
6836
  ),
6834
6837
  /* @__PURE__ */ n("div", { className: "absolute left-4 right-4 top-3 flex items-center justify-between pointer-events-none", children: [
6835
6838
  /* @__PURE__ */ n("div", { className: `flex items-center rounded-full bg-white dark:bg-zinc-900 shadow border border-zinc-200 dark:border-zinc-700 ${$.campusPill}`, children: [
6836
- /* @__PURE__ */ e("span", { className: "truncate max-w-[60vw]", children: o }),
6839
+ /* @__PURE__ */ e("span", { className: "truncate max-w-[60vw]", children: i }),
6837
6840
  /* @__PURE__ */ e("span", { className: "ml-2 text-zinc-400", children: "▾" })
6838
6841
  ] }),
6839
6842
  /* @__PURE__ */ n("div", { className: "hidden md:flex items-center gap-2", "aria-hidden": "true", children: [
@@ -6942,13 +6945,13 @@ const Vs = [
6942
6945
  time: a.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })
6943
6946
  };
6944
6947
  };
6945
- function jt({ ev: t, sizeMeta: a, isSelected: s, onClick: i }) {
6946
- const { day: l, month: m, time: o } = Ta(t.date);
6948
+ function jt({ ev: t, sizeMeta: a, isSelected: s, onClick: o }) {
6949
+ const { day: l, month: m, time: i } = Ta(t.date);
6947
6950
  return /* @__PURE__ */ n(
6948
6951
  "div",
6949
6952
  {
6950
6953
  className: `flex items-start gap-4 py-3 cursor-pointer group ${s ? "bg-blue-50 dark:bg-blue-900/20 rounded-lg -mx-2 px-2" : ""}`,
6951
- onClick: () => i(t),
6954
+ onClick: () => o(t),
6952
6955
  children: [
6953
6956
  /* @__PURE__ */ e("div", { className: "flex-shrink-0 min-w-12", children: /* @__PURE__ */ n("div", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${a.dateSize}`, children: [
6954
6957
  l,
@@ -6959,7 +6962,7 @@ function jt({ ev: t, sizeMeta: a, isSelected: s, onClick: i }) {
6959
6962
  /* @__PURE__ */ e("div", { className: `${a.title} text-zinc-900 dark:text-zinc-100 line-clamp-2 group-hover:text-blue-600 dark:group-hover:text-blue-400`, children: t.title }),
6960
6963
  /* @__PURE__ */ n("div", { className: `flex items-center gap-1.5 mt-1 text-zinc-500 dark:text-zinc-400 ${a.meta}`, children: [
6961
6964
  /* @__PURE__ */ e(Ae, { className: "h-3 w-3" }),
6962
- t.allDayNote ? t.allDayNote : o
6965
+ t.allDayNote ? t.allDayNote : i
6963
6966
  ] })
6964
6967
  ] })
6965
6968
  ]
@@ -6968,12 +6971,12 @@ function jt({ ev: t, sizeMeta: a, isSelected: s, onClick: i }) {
6968
6971
  }
6969
6972
  function Gs({ ev: t, sizeMeta: a }) {
6970
6973
  if (!t) return null;
6971
- const { day: s, month: i, time: l } = Ta(t.date);
6974
+ const { day: s, month: o, time: l } = Ta(t.date);
6972
6975
  return /* @__PURE__ */ n("div", { className: "bg-white dark:bg-zinc-900 rounded-lg border border-zinc-200 dark:border-zinc-800 p-6", children: [
6973
6976
  /* @__PURE__ */ n("div", { className: "flex items-start gap-4 mb-4", children: [
6974
6977
  /* @__PURE__ */ n("div", { className: "flex-shrink-0", children: [
6975
6978
  /* @__PURE__ */ e("div", { className: "text-2xl font-bold text-zinc-900 dark:text-zinc-100", children: s }),
6976
- /* @__PURE__ */ e("div", { className: "text-sm font-medium text-zinc-500 dark:text-zinc-400 uppercase tracking-wide", children: i })
6979
+ /* @__PURE__ */ e("div", { className: "text-sm font-medium text-zinc-500 dark:text-zinc-400 uppercase tracking-wide", children: o })
6977
6980
  ] }),
6978
6981
  /* @__PURE__ */ n("div", { className: "flex-grow", children: [
6979
6982
  /* @__PURE__ */ e("h3", { className: `${a.title} text-zinc-900 dark:text-zinc-100 mb-2`, children: t.title }),
@@ -7006,25 +7009,25 @@ function qs({
7006
7009
  size: t = "md",
7007
7010
  showCheckbox: a = !1,
7008
7011
  checkboxPosition: s = "top-left",
7009
- onSelect: i,
7012
+ onSelect: o,
7010
7013
  identity: l = "_id",
7011
7014
  title: m = "Upcoming Events",
7012
- events: o = Vs,
7015
+ events: i = Vs,
7013
7016
  selectedIndex: u = 0,
7014
7017
  ...g
7015
7018
  }) {
7016
- const [f, x] = L(u), r = oe(t), N = ce[r], d = _s[r], p = o[f] || o[0], $ = (E, R) => {
7017
- x(R), i?.(E);
7019
+ const [f, x] = L(u), r = ie(t), N = ce[r], d = _s[r], p = i[f] || i[0], $ = (E, R) => {
7020
+ x(R), o?.(E);
7018
7021
  }, A = r === "lg";
7019
7022
  return /* @__PURE__ */ n(
7020
- ie,
7023
+ oe,
7021
7024
  {
7022
7025
  className: `flex flex-col ${N.card} ${d.wrap}`,
7023
7026
  showCheckbox: a,
7024
7027
  checkboxPosition: s,
7025
- onSelect: i,
7028
+ onSelect: o,
7026
7029
  identity: l,
7027
- details: { type: "events", title: m, count: o?.length ?? 0 },
7030
+ details: { type: "events", title: m, count: i?.length ?? 0 },
7028
7031
  ...g,
7029
7032
  children: [
7030
7033
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between mb-4", children: [
@@ -7034,7 +7037,7 @@ function qs({
7034
7037
  A ? (
7035
7038
  // Large: Two-column layout
7036
7039
  /* @__PURE__ */ n("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6", children: [
7037
- /* @__PURE__ */ e("div", { className: "space-y-1", children: o.map((E, R) => /* @__PURE__ */ e(
7040
+ /* @__PURE__ */ e("div", { className: "space-y-1", children: i.map((E, R) => /* @__PURE__ */ e(
7038
7041
  jt,
7039
7042
  {
7040
7043
  ev: E,
@@ -7048,7 +7051,7 @@ function qs({
7048
7051
  ] })
7049
7052
  ) : (
7050
7053
  // Small/Medium: Simple list only
7051
- /* @__PURE__ */ e("div", { className: "space-y-1", children: o.map((E, R) => /* @__PURE__ */ e(
7054
+ /* @__PURE__ */ e("div", { className: "space-y-1", children: i.map((E, R) => /* @__PURE__ */ e(
7052
7055
  jt,
7053
7056
  {
7054
7057
  ev: E,
@@ -7168,8 +7171,8 @@ const Ys = [
7168
7171
  searchHeight: "h-10"
7169
7172
  }
7170
7173
  };
7171
- function Js({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin: m }) {
7172
- const o = (g) => {
7174
+ function Js({ email: t, sizeMeta: a, isSelected: s, onClick: o, onStar: l, onPin: m }) {
7175
+ const i = (g) => {
7173
7176
  g.stopPropagation(), l?.(t);
7174
7177
  }, u = (g) => {
7175
7178
  g.stopPropagation(), m?.(t);
@@ -7178,13 +7181,13 @@ function Js({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
7178
7181
  "div",
7179
7182
  {
7180
7183
  className: `flex items-start gap-3 p-3 cursor-pointer border-b border-zinc-200 dark:border-zinc-800 last:border-b-0 group ${s ? "bg-blue-50 dark:bg-blue-900/20 border-l-4 border-l-blue-500 -ml-1 pl-4" : "hover:bg-zinc-50 dark:hover:bg-zinc-800/50 border-l-4 border-l-transparent"} ${t.unread ? "bg-blue-25 dark:bg-blue-900/10" : ""}`,
7181
- onClick: () => i(t),
7184
+ onClick: () => o(t),
7182
7185
  children: [
7183
7186
  /* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1 pt-0.5", children: [
7184
7187
  /* @__PURE__ */ e(
7185
7188
  "button",
7186
7189
  {
7187
- onClick: o,
7190
+ onClick: i,
7188
7191
  className: "p-1 rounded hover:bg-zinc-200 dark:hover:bg-zinc-700 transition-colors duration-200",
7189
7192
  children: t.starred ? /* @__PURE__ */ e(Dr, { className: "h-4 w-4 fill-yellow-400 text-yellow-400" }) : /* @__PURE__ */ e($r, { className: "h-4 w-4 text-zinc-400 group-hover:text-yellow-400" })
7190
7193
  }
@@ -7221,17 +7224,17 @@ function Xs({
7221
7224
  size: t = "md",
7222
7225
  showCheckbox: a = !1,
7223
7226
  checkboxPosition: s = "top-left",
7224
- onSelect: i,
7227
+ onSelect: o,
7225
7228
  identity: l = "_id",
7226
7229
  title: m = "0365 Mails",
7227
- emails: o = Ys,
7230
+ emails: i = Ys,
7228
7231
  selectedIndex: u = 0,
7229
7232
  onStar: g,
7230
7233
  onPin: f,
7231
7234
  ...x
7232
7235
  }) {
7233
- const [r, N] = L(u), d = oe(t), p = ce[d], $ = Ws[d], A = (O, V) => {
7234
- N(V), i?.(O);
7236
+ const [r, N] = L(u), d = ie(t), p = ce[d], $ = Ws[d], A = (O, V) => {
7237
+ N(V), o?.(O);
7235
7238
  }, E = (O) => {
7236
7239
  const V = { ...O, starred: !O.starred };
7237
7240
  g?.(V);
@@ -7240,19 +7243,19 @@ function Xs({
7240
7243
  f?.(V);
7241
7244
  };
7242
7245
  return /* @__PURE__ */ n(
7243
- ie,
7246
+ oe,
7244
7247
  {
7245
7248
  className: `flex flex-col ${p.card} ${$.wrap}`,
7246
7249
  showCheckbox: a,
7247
7250
  checkboxPosition: s,
7248
- onSelect: i,
7251
+ onSelect: o,
7249
7252
  identity: l,
7250
- details: { type: "emails", title: m, count: o?.length ?? 0 },
7253
+ details: { type: "emails", title: m, count: i?.length ?? 0 },
7251
7254
  ...x,
7252
7255
  children: [
7253
7256
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${p.title}`, children: m }) }),
7254
7257
  /* @__PURE__ */ e(he, { placeholder: "Type to search..." }),
7255
- /* @__PURE__ */ e("div", { className: "space-y-0", children: o.map((O, V) => /* @__PURE__ */ e(
7258
+ /* @__PURE__ */ e("div", { className: "space-y-0", children: i.map((O, V) => /* @__PURE__ */ e(
7256
7259
  Js,
7257
7260
  {
7258
7261
  email: O,
@@ -7381,12 +7384,12 @@ const Hs = [
7381
7384
  // two columns for large screens
7382
7385
  }
7383
7386
  };
7384
- function Vt({ contact: t, sizeMeta: a, isSelected: s, onClick: i }) {
7387
+ function Vt({ contact: t, sizeMeta: a, isSelected: s, onClick: o }) {
7385
7388
  return /* @__PURE__ */ n(
7386
7389
  "div",
7387
7390
  {
7388
7391
  className: `flex items-center gap-4 p-4 cursor-pointer rounded-lg border transition-all duration-200 group ${s ? "bg-blue-50 dark:bg-blue-900/20 border-blue-200 dark:border-blue-800 shadow-sm" : "border-zinc-200 dark:border-zinc-800 hover:bg-zinc-50 dark:hover:bg-zinc-800/50 hover:border-zinc-300 dark:hover:border-zinc-700"}`,
7389
- onClick: () => i(t),
7392
+ onClick: () => o(t),
7390
7393
  children: [
7391
7394
  /* @__PURE__ */ e("div", { className: `${a.avatarSize} flex-shrink-0 flex items-center justify-center bg-gradient-to-br from-blue-500 to-blue-600 rounded-full text-white font-semibold ${a.avatarText} shadow-sm`, children: t.initials }),
7392
7395
  /* @__PURE__ */ n("div", { className: "flex-grow min-w-0", children: [
@@ -7475,31 +7478,31 @@ function el({
7475
7478
  size: t = "md",
7476
7479
  showCheckbox: a = !1,
7477
7480
  checkboxPosition: s = "top-left",
7478
- onSelect: i,
7481
+ onSelect: o,
7479
7482
  identity: l = "_id",
7480
7483
  title: m = "Directory",
7481
- contacts: o = Hs,
7484
+ contacts: i = Hs,
7482
7485
  selectedIndex: u = 0,
7483
7486
  ...g
7484
7487
  }) {
7485
- const [f, x] = L(u), r = oe(t), N = ce[r], d = Qs[r], p = (E, R) => {
7486
- x(R), i?.(E);
7487
- }, $ = o[f] || o[0], A = d.layout === "split";
7488
+ const [f, x] = L(u), r = ie(t), N = ce[r], d = Qs[r], p = (E, R) => {
7489
+ x(R), o?.(E);
7490
+ }, $ = i[f] || i[0], A = d.layout === "split";
7488
7491
  return /* @__PURE__ */ n(
7489
- ie,
7492
+ oe,
7490
7493
  {
7491
7494
  className: `flex flex-col ${N.card} ${d.wrap}`,
7492
7495
  showCheckbox: a,
7493
7496
  checkboxPosition: s,
7494
- onSelect: i,
7497
+ onSelect: o,
7495
7498
  identity: l,
7496
- details: { type: "directory", title: m, count: o?.length ?? 0 },
7499
+ details: { type: "directory", title: m, count: i?.length ?? 0 },
7497
7500
  ...g,
7498
7501
  children: [
7499
7502
  /* @__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: m }) }),
7500
7503
  /* @__PURE__ */ e(Ks, { sizeMeta: d }),
7501
7504
  A ? /* @__PURE__ */ n("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6 min-h-0", children: [
7502
- /* @__PURE__ */ e("div", { className: "space-y-3", children: o.map((E, R) => /* @__PURE__ */ e(
7505
+ /* @__PURE__ */ e("div", { className: "space-y-3", children: i.map((E, R) => /* @__PURE__ */ e(
7503
7506
  Vt,
7504
7507
  {
7505
7508
  contact: E,
@@ -7518,7 +7521,7 @@ function el({
7518
7521
  )
7519
7522
  ] }) : (
7520
7523
  // Single column layout for small screens
7521
- /* @__PURE__ */ e("div", { className: "space-y-3", children: o.map((E, R) => /* @__PURE__ */ e(
7524
+ /* @__PURE__ */ e("div", { className: "space-y-3", children: i.map((E, R) => /* @__PURE__ */ e(
7522
7525
  Vt,
7523
7526
  {
7524
7527
  contact: E,
@@ -7556,12 +7559,12 @@ el.propTypes = {
7556
7559
  selectedIndex: c.number
7557
7560
  };
7558
7561
  const De = (t) => new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(Number(t || 0));
7559
- function tl({ side: t = "left", date: a, title: s, amount: i, kind: l = "payment" }) {
7562
+ function tl({ side: t = "left", date: a, title: s, amount: o, kind: l = "payment" }) {
7560
7563
  return /* @__PURE__ */ n("div", { className: `rounded-xl border border-zinc-200 dark:border-zinc-800 p-3 ${l === "payment" ? "border-l-4 border-green-500" : "border-l-4 border-rose-500"}`, children: [
7561
7564
  /* @__PURE__ */ e("div", { className: "text-xs text-zinc-500", children: a }),
7562
7565
  /* @__PURE__ */ e("div", { className: "mt-1 text-sm text-zinc-700 dark:text-zinc-200", children: s }),
7563
7566
  /* @__PURE__ */ n("div", { className: "mt-2 flex items-center justify-between", children: [
7564
- /* @__PURE__ */ e("div", { className: "text-sm font-semibold", children: De(i) }),
7567
+ /* @__PURE__ */ e("div", { className: "text-sm font-semibold", children: De(o) }),
7565
7568
  /* @__PURE__ */ e(
7566
7569
  "div",
7567
7570
  {
@@ -7608,11 +7611,11 @@ function rl({
7608
7611
  size: t = "md",
7609
7612
  showCheckbox: a = !1,
7610
7613
  checkboxPosition: s = "top-left",
7611
- onSelect: i,
7614
+ onSelect: o,
7612
7615
  identity: l = "_id",
7613
7616
  // content
7614
7617
  title: m = "Account Summary",
7615
- termLabel: o = "Spring 2024",
7618
+ termLabel: i = "Spring 2024",
7616
7619
  balance: u = 3e3,
7617
7620
  totalCharges: g = 4440,
7618
7621
  totalPayments: f = 1568,
@@ -7634,22 +7637,22 @@ function rl({
7634
7637
  ],
7635
7638
  ...r
7636
7639
  }) {
7637
- const N = oe(t), d = ce[N], p = al[N];
7640
+ const N = ie(t), d = ce[N], p = al[N];
7638
7641
  return /* @__PURE__ */ n(
7639
- ie,
7642
+ oe,
7640
7643
  {
7641
7644
  className: `flex flex-col ${d.card} ${p.wrap}`,
7642
7645
  showCheckbox: a,
7643
7646
  checkboxPosition: s,
7644
- onSelect: i,
7647
+ onSelect: o,
7645
7648
  identity: l,
7646
- details: { type: "account-summary", termLabel: o, balance: u, totalCharges: g, totalPayments: f },
7649
+ details: { type: "account-summary", termLabel: i, balance: u, totalCharges: g, totalPayments: f },
7647
7650
  ...r,
7648
7651
  children: [
7649
7652
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
7650
7653
  /* @__PURE__ */ e("div", { className: `font-semibold ${d.title}`, children: m }),
7651
7654
  /* @__PURE__ */ n("div", { className: "rounded-full border border-zinc-300 dark:border-zinc-700 bg-white dark:bg-zinc-900 px-3 py-1 text-sm flex items-center gap-2", children: [
7652
- /* @__PURE__ */ e("span", { children: o }),
7655
+ /* @__PURE__ */ e("span", { children: i }),
7653
7656
  /* @__PURE__ */ e(vt, { className: "h-4 w-4 opacity-70" })
7654
7657
  ] })
7655
7658
  ] }),
@@ -7791,30 +7794,30 @@ function _t({ leave: t, sizeMeta: a }) {
7791
7794
  /* @__PURE__ */ e("span", { className: `font-medium text-zinc-900 dark:text-zinc-100 ${a.table}`, children: t.name }),
7792
7795
  /* @__PURE__ */ e("span", { className: `text-zinc-600 dark:text-zinc-400 ${a.table}`, children: t.available })
7793
7796
  ] }) }),
7794
- /* @__PURE__ */ e("div", { className: "divide-y divide-zinc-200 dark:divide-zinc-800", children: t.breakdown.map((s, i) => /* @__PURE__ */ n("div", { className: "flex justify-between items-center px-4 py-3", children: [
7797
+ /* @__PURE__ */ e("div", { className: "divide-y divide-zinc-200 dark:divide-zinc-800", children: t.breakdown.map((s, o) => /* @__PURE__ */ n("div", { className: "flex justify-between items-center px-4 py-3", children: [
7795
7798
  /* @__PURE__ */ e("span", { className: `text-zinc-700 dark:text-zinc-300 ${a.table}`, children: s.label }),
7796
7799
  /* @__PURE__ */ e("span", { className: `font-medium ${s.change === "positive" ? "text-green-600 dark:text-green-400" : s.change === "negative" ? "text-red-600 dark:text-red-400" : "text-zinc-900 dark:text-zinc-100"} ${a.table}`, children: s.value })
7797
- ] }, i)) })
7800
+ ] }, o)) })
7798
7801
  ] });
7799
7802
  }
7800
7803
  function sl({
7801
7804
  size: t = "md",
7802
7805
  showCheckbox: a = !1,
7803
7806
  checkboxPosition: s = "top-left",
7804
- onSelect: i,
7807
+ onSelect: o,
7805
7808
  identity: l = "_id",
7806
7809
  title: m = "Pay Stub and Leave Balance",
7807
- term: o = "Fall 2025",
7810
+ term: i = "Fall 2025",
7808
7811
  ...u
7809
7812
  }) {
7810
- const [g, f] = L("vacation"), [x, r] = L(!1), N = oe(t), d = ce[N], p = nl[N], $ = qe.find((A) => A.id === g) || qe[0];
7813
+ const [g, f] = L("vacation"), [x, r] = L(!1), N = ie(t), d = ce[N], p = nl[N], $ = qe.find((A) => A.id === g) || qe[0];
7811
7814
  return /* @__PURE__ */ n(
7812
- ie,
7815
+ oe,
7813
7816
  {
7814
7817
  className: `flex flex-col ${d.card} ${p.wrap}`,
7815
7818
  showCheckbox: a,
7816
7819
  checkboxPosition: s,
7817
- onSelect: i,
7820
+ onSelect: o,
7818
7821
  identity: l,
7819
7822
  details: { type: "leave-balance", title: m },
7820
7823
  ...u,
@@ -7825,7 +7828,7 @@ function sl({
7825
7828
  /* @__PURE__ */ n("div", { className: `text-zinc-600 dark:text-zinc-400 ${p.term} flex items-center gap-2`, children: [
7826
7829
  /* @__PURE__ */ e(qt, { className: "h-4 w-4" }),
7827
7830
  "Term - ",
7828
- o
7831
+ i
7829
7832
  ] })
7830
7833
  ] }),
7831
7834
  /* @__PURE__ */ n("div", { className: "relative", children: [
@@ -7915,7 +7918,7 @@ const ll = [
7915
7918
  // icon: Video,
7916
7919
  // color: "text-purple-500"
7917
7920
  // }
7918
- ], il = [
7921
+ ], ol = [
7919
7922
  {
7920
7923
  id: "file-1",
7921
7924
  name: "2024 - Taurus",
@@ -7948,7 +7951,7 @@ const ll = [
7948
7951
  icon: pt,
7949
7952
  color: "text-orange-500"
7950
7953
  }
7951
- ], ol = {
7954
+ ], il = {
7952
7955
  sm: {
7953
7956
  wrap: "max-w-xs w-full",
7954
7957
  title: "text-base font-semibold",
@@ -7978,9 +7981,9 @@ const ll = [
7978
7981
  }
7979
7982
  };
7980
7983
  function Ut({ item: t, sizeMeta: a, showDate: s = !1 }) {
7981
- const i = t.icon;
7984
+ const o = t.icon;
7982
7985
  return /* @__PURE__ */ n("div", { className: "flex items-center gap-3 p-3 rounded-lg border border-zinc-200 dark:border-zinc-800 hover:bg-zinc-50 dark:hover:bg-zinc-800/50 cursor-pointer transition-colors duration-200 group", children: [
7983
- /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(i, { className: `h-6 w-6 ${t.color}` }) }),
7986
+ /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e(o, { className: `h-6 w-6 ${t.color}` }) }),
7984
7987
  /* @__PURE__ */ n("div", { className: "flex-grow min-w-0", children: [
7985
7988
  /* @__PURE__ */ e("div", { className: `font-medium text-zinc-900 dark:text-zinc-100 truncate ${a.item}`, children: t.name }),
7986
7989
  s ? /* @__PURE__ */ e("div", { className: `text-zinc-500 dark:text-zinc-400 ${a.count}`, children: t.date }) : /* @__PURE__ */ e("div", { className: `text-zinc-500 dark:text-zinc-400 ${a.count}`, children: t.count })
@@ -7992,20 +7995,20 @@ function cl({
7992
7995
  size: t = "md",
7993
7996
  showCheckbox: a = !1,
7994
7997
  checkboxPosition: s = "top-left",
7995
- onSelect: i,
7998
+ onSelect: o,
7996
7999
  identity: l = "_id",
7997
8000
  title: m = "Drive",
7998
- subtitle: o = "Drive Shared",
8001
+ subtitle: i = "Drive Shared",
7999
8002
  ...u
8000
8003
  }) {
8001
- const [g, f] = L(!1), x = oe(t), r = ce[x], N = ol[x];
8004
+ const [g, f] = L(!1), x = ie(t), r = ce[x], N = il[x];
8002
8005
  return /* @__PURE__ */ n(
8003
- ie,
8006
+ oe,
8004
8007
  {
8005
8008
  className: `flex flex-col ${r.card} ${N.wrap}`,
8006
8009
  showCheckbox: a,
8007
8010
  checkboxPosition: s,
8008
- onSelect: i,
8011
+ onSelect: o,
8009
8012
  identity: l,
8010
8013
  details: { type: "drive", title: m },
8011
8014
  ...u,
@@ -8013,7 +8016,7 @@ function cl({
8013
8016
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
8014
8017
  /* @__PURE__ */ n("div", { children: [
8015
8018
  /* @__PURE__ */ e("h3", { className: `text-zinc-900 dark:text-zinc-100 ${N.title} mb-1`, children: m }),
8016
- /* @__PURE__ */ e("div", { className: "text-zinc-600 dark:text-zinc-400 text-sm", children: o })
8019
+ /* @__PURE__ */ e("div", { className: "text-zinc-600 dark:text-zinc-400 text-sm", children: i })
8017
8020
  ] }),
8018
8021
  /* @__PURE__ */ n("div", { className: "relative", children: [
8019
8022
  /* @__PURE__ */ e(
@@ -8046,7 +8049,7 @@ function cl({
8046
8049
  )) }),
8047
8050
  N.showRecent && /* @__PURE__ */ n("div", { className: "", children: [
8048
8051
  /* @__PURE__ */ e("h4", { className: `font-semibold text-zinc-900 dark:text-zinc-100 mb-3 ${N.item}`, children: "Recent Files" }),
8049
- /* @__PURE__ */ e("div", { className: "space-y-2", children: il.map((d) => /* @__PURE__ */ e(
8052
+ /* @__PURE__ */ e("div", { className: "space-y-2", children: ol.map((d) => /* @__PURE__ */ e(
8050
8053
  Ut,
8051
8054
  {
8052
8055
  item: d,
@@ -8189,9 +8192,9 @@ const dl = [
8189
8192
  };
8190
8193
  }
8191
8194
  };
8192
- function hl({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8193
- const [l, m] = L(!1), o = Aa(t.type), u = ul(t.type);
8194
- 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: [
8195
+ function hl({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: o }) {
8196
+ const [l, m] = L(!1), i = Aa(t.type), u = ul(t.type);
8197
+ return l ? null : /* @__PURE__ */ n("div", { className: `relative rounded-lg border-l-4 p-4 transition-all duration-200 ${i.bg} ${i.border} ${t.read ? "border-l-2 opacity-80" : "border-l-4"}`, style: { borderLeftColor: i.accent }, children: [
8195
8198
  /* @__PURE__ */ e(
8196
8199
  "button",
8197
8200
  {
@@ -8200,7 +8203,7 @@ function hl({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8200
8203
  }
8201
8204
  ),
8202
8205
  /* @__PURE__ */ n("div", { className: "flex gap-3 pr-6", children: [
8203
- /* @__PURE__ */ e("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ e(u, { className: `h-4 w-4 ${o.icon}` }) }),
8206
+ /* @__PURE__ */ e("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ e(u, { className: `h-4 w-4 ${i.icon}` }) }),
8204
8207
  /* @__PURE__ */ n("div", { className: "flex-grow min-w-0", children: [
8205
8208
  /* @__PURE__ */ e("div", { className: `${a.title} text-zinc-900 dark:text-zinc-100 mb-1 ${t.read ? "font-medium" : "font-semibold"}`, children: Gt(t.title, a.maxTitleWords) }),
8206
8209
  a.showMessage && t.message && /* @__PURE__ */ e("div", { className: `${a.message} text-zinc-600 dark:text-zinc-400 mb-2 leading-relaxed`, children: Gt(t.message, a.maxMessageWords) }),
@@ -8214,8 +8217,8 @@ function hl({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8214
8217
  ] });
8215
8218
  }
8216
8219
  function pl({ alert: t, onDismiss: a }) {
8217
- const [s, i] = L(!1), l = Aa("banner"), m = () => {
8218
- i(!0), a?.(t);
8220
+ const [s, o] = L(!1), l = Aa("banner"), m = () => {
8221
+ o(!0), a?.(t);
8219
8222
  };
8220
8223
  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: [
8221
8224
  /* @__PURE__ */ e(na, { className: `h-5 w-5 mt-0.5 ${l.icon}` }),
@@ -8237,23 +8240,23 @@ function gl({
8237
8240
  size: t = "md",
8238
8241
  showCheckbox: a = !1,
8239
8242
  checkboxPosition: s = "top-left",
8240
- onSelect: i,
8243
+ onSelect: o,
8241
8244
  identity: l = "_id",
8242
8245
  title: m = "Alerts",
8243
- alerts: o = dl,
8246
+ alerts: i = dl,
8244
8247
  showBanner: u = !0,
8245
8248
  ...g
8246
8249
  }) {
8247
- const [f, x] = L(o), r = oe(t), N = ce[r], d = ml[r], p = (E) => {
8250
+ const [f, x] = L(i), r = ie(t), N = ce[r], d = ml[r], p = (E) => {
8248
8251
  x((R) => R.filter((O) => O.id !== E.id));
8249
8252
  }, $ = f.find((E) => E.type === "banner"), A = f.filter((E) => E.type !== "banner");
8250
8253
  return /* @__PURE__ */ n(
8251
- ie,
8254
+ oe,
8252
8255
  {
8253
8256
  className: `flex flex-col ${N.card} ${d.wrap}`,
8254
8257
  showCheckbox: a,
8255
8258
  checkboxPosition: s,
8256
- onSelect: i,
8259
+ onSelect: o,
8257
8260
  identity: l,
8258
8261
  details: { type: "alerts", title: m, count: f.length },
8259
8262
  ...g,
@@ -8378,7 +8381,7 @@ const bl = [
8378
8381
  }
8379
8382
  };
8380
8383
  function yl({ video: t, sizeMeta: a }) {
8381
- const [s, i] = L(!1);
8384
+ const [s, o] = L(!1);
8382
8385
  return /* @__PURE__ */ n("div", { className: "group cursor-pointer", children: [
8383
8386
  /* @__PURE__ */ n("div", { className: `relative ${a.thumbnailHeight} rounded-lg overflow-hidden bg-zinc-200 dark:bg-zinc-800`, children: [
8384
8387
  /* @__PURE__ */ e(
@@ -8414,22 +8417,22 @@ function xl({
8414
8417
  size: t = "md",
8415
8418
  showCheckbox: a = !1,
8416
8419
  checkboxPosition: s = "top-left",
8417
- onSelect: i,
8420
+ onSelect: o,
8418
8421
  identity: l = "_id",
8419
8422
  title: m = "Videos",
8420
- videos: o = bl,
8423
+ videos: i = bl,
8421
8424
  ...u
8422
8425
  }) {
8423
- const [g, f] = L(!1), x = oe(t), r = ce[x], N = fl[x];
8426
+ const [g, f] = L(!1), x = ie(t), r = ce[x], N = fl[x];
8424
8427
  return /* @__PURE__ */ n(
8425
- ie,
8428
+ oe,
8426
8429
  {
8427
8430
  className: `flex flex-col ${r.card} ${N.wrap}`,
8428
8431
  showCheckbox: a,
8429
8432
  checkboxPosition: s,
8430
- onSelect: i,
8433
+ onSelect: o,
8431
8434
  identity: l,
8432
- details: { type: "videos", title: m, count: o.length },
8435
+ details: { type: "videos", title: m, count: i.length },
8433
8436
  ...u,
8434
8437
  children: [
8435
8438
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between ", children: [
@@ -8454,7 +8457,7 @@ function xl({
8454
8457
  ] })
8455
8458
  ] })
8456
8459
  ] }),
8457
- /* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-4 `, children: o.slice(0, N.gridCols === "grid-cols-3" ? 6 : 4).map((d) => /* @__PURE__ */ e(
8460
+ /* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-4 `, children: i.slice(0, N.gridCols === "grid-cols-3" ? 6 : 4).map((d) => /* @__PURE__ */ e(
8458
8461
  yl,
8459
8462
  {
8460
8463
  video: d,
@@ -8491,7 +8494,7 @@ xl.propTypes = {
8491
8494
  export {
8492
8495
  rl as AccountSummaryMock,
8493
8496
  Ds as ActivityMock,
8494
- is as AddUserGroupsRolesModal,
8497
+ os as AddUserGroupsRolesModal,
8495
8498
  gl as AlertsMock,
8496
8499
  Ce as Avatar,
8497
8500
  kn as AvatarGroup,
@@ -8501,7 +8504,7 @@ export {
8501
8504
  js as CampusMapMock,
8502
8505
  da as Checkbox,
8503
8506
  Es as CommunitiesMock,
8504
- ei as CustomDataGrid,
8507
+ eo as CustomDataGrid,
8505
8508
  Wl as CustomDialog,
8506
8509
  Kl as CustomGridToolbar,
8507
8510
  Xl as CustomTab,
@@ -8530,7 +8533,7 @@ export {
8530
8533
  ha as RadioGroup,
8531
8534
  he as SearchBar,
8532
8535
  ft as Select,
8533
- ie as SelectableCard,
8536
+ oe as SelectableCard,
8534
8537
  Pl as Sidebar,
8535
8538
  ga as Spinner,
8536
8539
  ba as Textarea,
@@ -8558,7 +8561,7 @@ export {
8558
8561
  Yl as http,
8559
8562
  qn as localStore,
8560
8563
  wt as myDriveGatewayBaseV2,
8561
- oe as normalizeSize,
8564
+ ie as normalizeSize,
8562
8565
  Ie as notify,
8563
8566
  ka as provisioningBase,
8564
8567
  Ca as rbacBase,