unifyedx-storybook-new 0.2.60 → 0.2.61

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.
@@ -15,8 +15,8 @@ const fn = (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
  }, yn = (t) => {
18
- const a = (t ?? "").trim().toLowerCase(), s = parseInt((a.match(/\d+$/) ?? [0])[0], 10) || 0, i = fn(a), l = (i % 360 + 37 * s) % 360, m = 55 + (i >>> 8) % 20, o = 30 + (i >>> 16) % 10, h = 86 + (i >>> 24) % 8, u = `hsl(${l}, ${m}%, ${h}%)`, N = `hsl(${l}, ${m}%, ${o}%)`;
19
- return { bg: u, text: N };
18
+ const a = (t ?? "").trim().toLowerCase(), s = parseInt((a.match(/\d+$/) ?? [0])[0], 10) || 0, i = fn(a), l = (i % 360 + 37 * s) % 360, m = 55 + (i >>> 8) % 20, o = 30 + (i >>> 16) % 10, u = 86 + (i >>> 24) % 8, h = `hsl(${l}, ${m}%, ${u}%)`, N = `hsl(${l}, ${m}%, ${o}%)`;
19
+ return { bg: h, text: N };
20
20
  }, xn = (t = "") => t.split(" ").map((a) => a[0]).slice(0, 2).join("").toUpperCase(), ze = ({
21
21
  src: t,
22
22
  name: a,
@@ -29,7 +29,7 @@ const fn = (t) => {
29
29
  className: m,
30
30
  ...o
31
31
  }) => {
32
- const [h, u] = L(!1), N = se(() => yn(a), []), y = t && !h, r = !y && a, v = !y && !a, d = H(
32
+ const [u, h] = L(!1), N = se(() => yn(a), []), y = t && !u, r = !y && a, v = !y && !a, d = H(
33
33
  "avatar-container",
34
34
  `avatar--size-${s}`,
35
35
  m
@@ -44,7 +44,7 @@ const fn = (t) => {
44
44
  src: t,
45
45
  alt: a || "User avatar",
46
46
  className: "avatar-image",
47
- onError: () => u(!0)
47
+ onError: () => h(!0)
48
48
  }
49
49
  ),
50
50
  r && /* @__PURE__ */ e("span", { className: "avatar-initials", "aria-label": a, children: xn(a) }),
@@ -71,21 +71,21 @@ const fn = (t) => {
71
71
  onRemove: l,
72
72
  bgColor: m,
73
73
  textColor: o,
74
- className: h,
75
- ...u
74
+ className: u,
75
+ ...h
76
76
  }) => {
77
77
  const N = H(
78
78
  "badge",
79
79
  `badge--variant-${a}`,
80
80
  `badge--size-${s}`,
81
81
  { "badge--with-remove": !!l },
82
- h
82
+ u
83
83
  );
84
84
  return /* @__PURE__ */ n("span", { className: N, style: m && o ? {
85
85
  backgroundColor: m,
86
86
  color: o,
87
87
  borderColor: "#ff0000"
88
- } : {}, ...u, children: [
88
+ } : {}, ...h, children: [
89
89
  i && /* @__PURE__ */ e(i, { className: "badge-icon" }),
90
90
  /* @__PURE__ */ e("span", { className: "badge-label", children: t }),
91
91
  l && /* @__PURE__ */ e(
@@ -146,9 +146,9 @@ const wn = {
146
146
  // ✅ Default is now empty
147
147
  loader: m = !1,
148
148
  category: o = "primary",
149
- icon: h,
149
+ icon: u,
150
150
  // Renamed for clarity, expecting a component type e.g., CheckCircle
151
- disabled: u = !1,
151
+ disabled: h = !1,
152
152
  size: N = "medium",
153
153
  label: y,
154
154
  children: r,
@@ -156,7 +156,7 @@ const wn = {
156
156
  onClick: v,
157
157
  ...d
158
158
  }) => {
159
- const g = u || m, z = h && !y, A = H(
159
+ const g = h || m, z = u && !y, A = H(
160
160
  "btn-base",
161
161
  wn[N],
162
162
  kn[o],
@@ -178,7 +178,7 @@ const wn = {
178
178
  "aria-label": i || z && a || (typeof y == "string" ? y : void 0),
179
179
  ...d,
180
180
  children: m ? /* @__PURE__ */ e(Ma, { className: "loader-spin", "data-testid": "button-loader" }) : /* @__PURE__ */ n(ee, { children: [
181
- h && /* @__PURE__ */ e(h, { size: N === "large" ? 20 : 16 }),
181
+ u && /* @__PURE__ */ e(u, { size: N === "large" ? 20 : 16 }),
182
182
  y,
183
183
  r,
184
184
  " "
@@ -216,9 +216,9 @@ const wn = {
216
216
  ref: l,
217
217
  checked: m,
218
218
  onChange: o,
219
- ...h
219
+ ...u
220
220
  }) => {
221
- const u = Xe(), N = a || u;
221
+ const h = Xe(), N = a || h;
222
222
  return /* @__PURE__ */ n("div", { className: `checkbox-container ${i || ""}`, children: [
223
223
  /* @__PURE__ */ n("label", { htmlFor: N, className: "checkbox-wrapper", children: [
224
224
  /* @__PURE__ */ e(
@@ -230,7 +230,7 @@ const wn = {
230
230
  className: "checkbox-input",
231
231
  checked: m,
232
232
  onChange: o,
233
- ...h
233
+ ...u
234
234
  }
235
235
  ),
236
236
  /* @__PURE__ */ e(
@@ -256,9 +256,9 @@ const wn = {
256
256
  label: l,
257
257
  error: m,
258
258
  disabled: o = !1,
259
- className: h,
260
- ...u
261
- }) => /* @__PURE__ */ n("div", { className: H("datepicker-wrapper", h), children: [
259
+ className: u,
260
+ ...h
261
+ }) => /* @__PURE__ */ n("div", { className: H("datepicker-wrapper", u), children: [
262
262
  l && /* @__PURE__ */ e("label", { className: "datepicker-label", htmlFor: "datepicker-input", children: l }),
263
263
  /* @__PURE__ */ e(
264
264
  ma,
@@ -284,8 +284,8 @@ const wn = {
284
284
  label: l,
285
285
  error: m,
286
286
  disabled: o = !1,
287
- className: h,
288
- ...u
287
+ className: u,
288
+ ...h
289
289
  }) => {
290
290
  const N = t?.from, y = t?.to, r = (d) => {
291
291
  d.stopPropagation(), d.preventDefault(), s?.();
@@ -294,7 +294,7 @@ const wn = {
294
294
  " - ",
295
295
  zt(y, "MMM d, y")
296
296
  ] }) : /* @__PURE__ */ e("span", { className: "datepicker-placeholder", children: i });
297
- return /* @__PURE__ */ n("div", { className: H("datepicker-wrapper", h), children: [
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(zn, { children: [
300
300
  /* @__PURE__ */ e(Sn, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "datepicker-input-container", children: [
@@ -595,8 +595,8 @@ const wn = {
595
595
  open: m,
596
596
  // --- Form and File State ---
597
597
  validFiles: o = [],
598
- rejectedFiles: h = [],
599
- handleRemoveValidFile: u,
598
+ rejectedFiles: u = [],
599
+ handleRemoveValidFile: h,
600
600
  handleRemoveRejectedFile: N,
601
601
  handleSubmit: y,
602
602
  isSubmitting: r,
@@ -605,7 +605,7 @@ const wn = {
605
605
  title: d = "Upload Files",
606
606
  subHeading: g = "Supports PNG, JPG, PDF. Max size: 50MB."
607
607
  }) => {
608
- const z = o.length > 0 || h.length > 0;
608
+ const z = o.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
  {
@@ -705,7 +705,7 @@ const wn = {
705
705
  "button",
706
706
  {
707
707
  type: "button",
708
- onClick: () => u(E),
708
+ onClick: () => h(E),
709
709
  className: "remove-file-button",
710
710
  children: /* @__PURE__ */ e(Me, { size: 16 })
711
711
  }
@@ -714,7 +714,7 @@ const wn = {
714
714
  },
715
715
  `${A.name}-${E}`
716
716
  )),
717
- h.map(({ file: A, message: E }, O) => /* @__PURE__ */ n(
717
+ u.map(({ file: A, message: E }, O) => /* @__PURE__ */ n(
718
718
  "li",
719
719
  {
720
720
  className: "file-item file-item--rejected",
@@ -825,10 +825,10 @@ const wn = {
825
825
  filterConfig: l = [],
826
826
  initialFormikValues: m,
827
827
  customStyles: o = "",
828
- fetchCreatedOrUpdatedByUsers: h = async () => []
828
+ fetchCreatedOrUpdatedByUsers: u = async () => []
829
829
  // Mockable fetcher
830
830
  }) => {
831
- const [u, N] = L({
831
+ const [h, N] = L({
832
832
  createdBy: [],
833
833
  updatedBy: []
834
834
  }), [y, r] = L({
@@ -880,7 +880,7 @@ const wn = {
880
880
  }), [l, A.values]), _ = async (T, x) => {
881
881
  try {
882
882
  r((C) => ({ ...C, [T]: !0 }));
883
- const f = await h(T, x);
883
+ const f = await u(T, x);
884
884
  N((C) => ({ ...C, [T]: f }));
885
885
  } catch (f) {
886
886
  console.error(`Error fetching ${T} users:`, f);
@@ -889,7 +889,7 @@ const wn = {
889
889
  }
890
890
  }, U = (T) => {
891
891
  const x = l[T].key, f = l[T].url;
892
- l[T].type === "multiselect-users" && u[x].length === 0 && !y[x] && _(x, f);
892
+ l[T].type === "multiselect-users" && h[x].length === 0 && !y[x] && _(x, f);
893
893
  }, Y = () => {
894
894
  A.resetForm(), N({ createdBy: [], updatedBy: [] }), i();
895
895
  }, G = (T) => {
@@ -961,7 +961,7 @@ const wn = {
961
961
  ] })
962
962
  ] });
963
963
  case "multiselect-users":
964
- const I = u[T] || [], R = y[T];
964
+ const I = h[T] || [], R = y[T];
965
965
  return /* @__PURE__ */ n("div", { className: "filter-panel-content", children: [
966
966
  /* @__PURE__ */ n("div", { className: "filter-operator-group", children: [
967
967
  /* @__PURE__ */ e("label", { className: "filter-label", children: "Operator:" }),
@@ -1287,24 +1287,24 @@ const wn = {
1287
1287
  className: m,
1288
1288
  ref: o,
1289
1289
  // ✅ 'ref' is now received directly as a prop
1290
- ...h
1290
+ ...u
1291
1291
  }) => {
1292
- const u = a || h.name;
1292
+ const h = a || u.name;
1293
1293
  return /* @__PURE__ */ n("div", { className: `input-wrapper ${m || ""}`, children: [
1294
- t && /* @__PURE__ */ e("label", { htmlFor: u, className: "input-label", children: t }),
1294
+ t && /* @__PURE__ */ e("label", { htmlFor: h, className: "input-label", children: t }),
1295
1295
  /* @__PURE__ */ n("div", { className: "input-field-container", children: [
1296
1296
  i && /* @__PURE__ */ e(i, { className: "input-icon", size: 20 }),
1297
1297
  /* @__PURE__ */ e(
1298
1298
  "input",
1299
1299
  {
1300
- id: u,
1300
+ id: h,
1301
1301
  type: s,
1302
1302
  ref: o,
1303
1303
  className: H("input-field", {
1304
1304
  "input-field--error": !!l,
1305
1305
  "input-field--with-icon": !!i
1306
1306
  }),
1307
- ...h
1307
+ ...u
1308
1308
  }
1309
1309
  )
1310
1310
  ] }),
@@ -1340,8 +1340,8 @@ const wn = {
1340
1340
  // No default
1341
1341
  variant: o = "info",
1342
1342
  // 'info', 'warning', 'delete'
1343
- loading: h = !1,
1344
- buttonProps: u = {},
1343
+ loading: u = !1,
1344
+ buttonProps: h = {},
1345
1345
  size: N
1346
1346
  // Add size prop
1347
1347
  }) => {
@@ -1398,7 +1398,7 @@ const wn = {
1398
1398
  type: "button",
1399
1399
  onClick: v,
1400
1400
  label: l,
1401
- ...u
1401
+ ...h
1402
1402
  }
1403
1403
  )
1404
1404
  ] })
@@ -1414,14 +1414,14 @@ const wn = {
1414
1414
  onItemsPerPageChange: l,
1415
1415
  itemsPerPageOptions: m = [10, 15, 20]
1416
1416
  }) => {
1417
- const o = Math.ceil(a / s), [h, u] = L(t);
1417
+ const o = Math.ceil(a / s), [u, h] = L(t);
1418
1418
  te(() => {
1419
- u(t);
1419
+ h(t);
1420
1420
  }, [t]);
1421
1421
  const N = Math.min((t - 1) * s + 1, a), y = Math.min(t * s, a), r = (v) => {
1422
1422
  v.preventDefault();
1423
- let d = parseInt(h, 10);
1424
- isNaN(d) || d < 1 ? d = 1 : d > o && (d = o), u(d), d !== t && i(d);
1423
+ let d = parseInt(u, 10);
1424
+ isNaN(d) || d < 1 ? d = 1 : d > o && (d = o), h(d), d !== t && i(d);
1425
1425
  };
1426
1426
  return /* @__PURE__ */ n("div", { className: "pagination-container", children: [
1427
1427
  /* @__PURE__ */ n("div", { className: "pagination-left", children: [
@@ -1471,8 +1471,8 @@ const wn = {
1471
1471
  {
1472
1472
  type: "number",
1473
1473
  className: "page-input",
1474
- value: h,
1475
- onChange: (v) => u(v.target.value),
1474
+ value: u,
1475
+ onChange: (v) => h(v.target.value),
1476
1476
  onBlur: r,
1477
1477
  "aria-label": `Current page, Page ${t}`
1478
1478
  }
@@ -1523,12 +1523,12 @@ const wn = {
1523
1523
  _e.Option,
1524
1524
  {
1525
1525
  value: o.value,
1526
- className: ({ active: h, checked: u }) => H("radiogroup-option", {
1527
- "radiogroup-option--active": h,
1528
- "radiogroup-option--checked": u,
1526
+ className: ({ active: u, checked: h }) => H("radiogroup-option", {
1527
+ "radiogroup-option--active": u,
1528
+ "radiogroup-option--checked": h,
1529
1529
  "radiogroup-option--error": !!l
1530
1530
  }),
1531
- children: ({ checked: h }) => /* @__PURE__ */ n(ee, { children: [
1531
+ children: ({ checked: u }) => /* @__PURE__ */ n(ee, { children: [
1532
1532
  /* @__PURE__ */ n("div", { className: "radiogroup-option-content", children: [
1533
1533
  /* @__PURE__ */ e(_e.Label, { as: "p", className: "option-label", children: o.label }),
1534
1534
  o.description && /* @__PURE__ */ e(
@@ -1540,7 +1540,7 @@ const wn = {
1540
1540
  }
1541
1541
  )
1542
1542
  ] }),
1543
- h && /* @__PURE__ */ e("div", { className: "option-checkmark", children: /* @__PURE__ */ e(Xt, { size: 20 }) })
1543
+ u && /* @__PURE__ */ e("div", { className: "option-checkmark", children: /* @__PURE__ */ e(Xt, { size: 20 }) })
1544
1544
  ] })
1545
1545
  },
1546
1546
  o.value
@@ -1557,8 +1557,8 @@ const wn = {
1557
1557
  // Added a default label for accessibility
1558
1558
  customClass: m = "",
1559
1559
  inputStyle: o = {},
1560
- placeholderClass: h = "",
1561
- searchIconSize: u = 16,
1560
+ placeholderClass: u = "",
1561
+ searchIconSize: h = 16,
1562
1562
  searchIconClass: N = "",
1563
1563
  ...y
1564
1564
  }) => {
@@ -1580,12 +1580,12 @@ const wn = {
1580
1580
  };
1581
1581
  return /* @__PURE__ */ n("div", { className: `search-bar-wrapper ${m}`, children: [
1582
1582
  l && /* @__PURE__ */ e("label", { htmlFor: "search-field", className: "sr-only", children: l }),
1583
- /* @__PURE__ */ e("div", { className: "search-bar-icon-wrapper", children: /* @__PURE__ */ e(xt, { size: u || 16, className: `search-bar-icon ${N}`, "aria-hidden": "true" }) }),
1583
+ /* @__PURE__ */ e("div", { className: "search-bar-icon-wrapper", children: /* @__PURE__ */ e(xt, { size: h || 16, className: `search-bar-icon ${N}`, "aria-hidden": "true" }) }),
1584
1584
  /* @__PURE__ */ e(
1585
1585
  "input",
1586
1586
  {
1587
1587
  id: "search-field",
1588
- className: `search-bar-input ${h}`,
1588
+ className: `search-bar-input ${u}`,
1589
1589
  placeholder: i,
1590
1590
  type: "search",
1591
1591
  name: "search",
@@ -1606,9 +1606,9 @@ const wn = {
1606
1606
  placeholder: l = "Select an option...",
1607
1607
  disabled: m = !1,
1608
1608
  error: o,
1609
- ref: h,
1609
+ ref: u,
1610
1610
  // From RHF's <Controller>
1611
- showSearch: u = !0
1611
+ showSearch: h = !0
1612
1612
  }) => {
1613
1613
  const [N, y] = L("");
1614
1614
  console.log("Select component - value:", a, "type:", typeof a), console.log("Select component - options:", i);
@@ -1623,7 +1623,7 @@ const wn = {
1623
1623
  }
1624
1624
  return d.id === a || d.value === a || d.label === a;
1625
1625
  });
1626
- return /* @__PURE__ */ e(Z, { value: a, onChange: s, disabled: m, children: /* @__PURE__ */ n("div", { className: "select-wrapper", ref: h, children: [
1626
+ return /* @__PURE__ */ e(Z, { value: a, onChange: s, disabled: m, children: /* @__PURE__ */ n("div", { className: "select-wrapper", ref: u, children: [
1627
1627
  t && /* @__PURE__ */ e("label", { className: "select-label", children: t }),
1628
1628
  /* @__PURE__ */ n("div", { className: "select-button-container", children: [
1629
1629
  /* @__PURE__ */ n(
@@ -1645,7 +1645,7 @@ const wn = {
1645
1645
  leaveFrom: "opacity-100",
1646
1646
  leaveTo: "opacity-0",
1647
1647
  children: /* @__PURE__ */ n(Br, { className: "select-options", children: [
1648
- u && /* @__PURE__ */ e("div", { className: "search-input-wrapper", children: /* @__PURE__ */ e(
1648
+ h && /* @__PURE__ */ e("div", { className: "search-input-wrapper", children: /* @__PURE__ */ e(
1649
1649
  he,
1650
1650
  {
1651
1651
  value: N,
@@ -1702,11 +1702,11 @@ const wn = {
1702
1702
  return s;
1703
1703
  return null;
1704
1704
  }, pa = ({ item: t, isCollapsed: a, level: s = 0 }) => {
1705
- const { pathname: i } = On(), l = t.href || t.url || t.path, [m, o] = L(!1), h = t.icon;
1705
+ const { pathname: i } = On(), l = t.href || t.url || t.path, [m, o] = L(!1), u = t.icon;
1706
1706
  te(() => {
1707
1707
  ft([t], i) && o(!0);
1708
1708
  }, [t, i]);
1709
- const u = i === l, N = !u && !!ft([t], i), y = (r) => {
1709
+ const h = i === l, N = !h && !!ft([t], i), y = (r) => {
1710
1710
  r.preventDefault(), o(!m);
1711
1711
  };
1712
1712
  return /* @__PURE__ */ n(
@@ -1724,12 +1724,12 @@ const wn = {
1724
1724
  target: t.target,
1725
1725
  rel: t.target === "_blank" ? "noopener noreferrer" : void 0,
1726
1726
  className: H("nav-item", {
1727
- "nav-item--active": u,
1727
+ "nav-item--active": h,
1728
1728
  "nav-item--collapsed": a
1729
1729
  }),
1730
- "aria-current": u ? "page" : void 0,
1730
+ "aria-current": h ? "page" : void 0,
1731
1731
  children: [
1732
- h && /* @__PURE__ */ e(h, { className: "nav-icon", "aria-hidden": "true" }),
1732
+ u && /* @__PURE__ */ e(u, { className: "nav-icon", "aria-hidden": "true" }),
1733
1733
  /* @__PURE__ */ e("span", { className: "nav-label", children: t.label || t.name }),
1734
1734
  t.children && /* @__PURE__ */ e(
1735
1735
  "button",
@@ -1781,7 +1781,7 @@ const wn = {
1781
1781
  onToggleMobile: l,
1782
1782
  logoSmall: m,
1783
1783
  logoLarge: o,
1784
- user: h = { name: "", email: "" }
1784
+ user: u = { name: "", email: "" }
1785
1785
  }) => /* @__PURE__ */ n(ee, { children: [
1786
1786
  i && /* @__PURE__ */ e(
1787
1787
  "div",
@@ -1824,12 +1824,12 @@ const wn = {
1824
1824
  }
1825
1825
  )
1826
1826
  ] }),
1827
- /* @__PURE__ */ e("nav", { className: "sidebar-nav", "aria-label": "Primary", children: /* @__PURE__ */ e("ul", { className: "sidebar-nav-list", children: t.map((u) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(pa, { item: u, isCollapsed: a }) }, u.label || u.name)) }) }),
1827
+ /* @__PURE__ */ e("nav", { className: "sidebar-nav", "aria-label": "Primary", children: /* @__PURE__ */ e("ul", { className: "sidebar-nav-list", children: t.map((h) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(pa, { item: h, isCollapsed: a }) }, h.label || h.name)) }) }),
1828
1828
  /* @__PURE__ */ n("div", { className: "sidebar-footer", children: [
1829
- /* @__PURE__ */ e(ze, { src: h.avatar, name: h.name, size: "medium" }),
1829
+ /* @__PURE__ */ e(ze, { src: u.avatar, name: u.name, size: "medium" }),
1830
1830
  /* @__PURE__ */ n("div", { className: "user-info", children: [
1831
- /* @__PURE__ */ e("span", { className: "user-name", children: h.name }),
1832
- /* @__PURE__ */ e("span", { className: "user-email", children: h.email })
1831
+ /* @__PURE__ */ e("span", { className: "user-name", children: u.name }),
1832
+ /* @__PURE__ */ e("span", { className: "user-email", children: u.email })
1833
1833
  ] }),
1834
1834
  /* @__PURE__ */ e(
1835
1835
  "button",
@@ -1890,16 +1890,16 @@ const wn = {
1890
1890
  // ✅ New prop for max length
1891
1891
  showCharCount: o = !1,
1892
1892
  // ✅ New prop to control visibility
1893
- ...h
1893
+ ...u
1894
1894
  }) => {
1895
- const u = a || h.name, [N, y] = L(
1896
- h.value?.length || h.defaultValue?.length || 0
1895
+ const h = a || u.name, [N, y] = L(
1896
+ u.value?.length || u.defaultValue?.length || 0
1897
1897
  ), r = (d) => {
1898
- y(d.target.value.length), h.onChange && h.onChange(d);
1898
+ y(d.target.value.length), u.onChange && u.onChange(d);
1899
1899
  }, v = m - N;
1900
1900
  return /* @__PURE__ */ n("div", { className: `textarea-wrapper ${i || ""}`, children: [
1901
1901
  /* @__PURE__ */ n("div", { className: "textarea-header", children: [
1902
- t && /* @__PURE__ */ e("label", { htmlFor: u, className: "textarea-label", children: t }),
1902
+ t && /* @__PURE__ */ e("label", { htmlFor: h, className: "textarea-label", children: t }),
1903
1903
  o && m && /* @__PURE__ */ n("span", { className: "char-counter", children: [
1904
1904
  v,
1905
1905
  " characters remaining"
@@ -1908,14 +1908,14 @@ const wn = {
1908
1908
  /* @__PURE__ */ e(
1909
1909
  "textarea",
1910
1910
  {
1911
- id: u,
1911
+ id: h,
1912
1912
  ref: l,
1913
1913
  className: H("textarea-field", {
1914
1914
  "textarea-field--error": !!s
1915
1915
  }),
1916
1916
  maxLength: m,
1917
1917
  onChange: r,
1918
- ...h
1918
+ ...u
1919
1919
  }
1920
1920
  ),
1921
1921
  s && /* @__PURE__ */ e("p", { className: "textarea-error-message", children: s })
@@ -1959,13 +1959,13 @@ const wn = {
1959
1959
  // For external styling of the tooltip itself
1960
1960
  ...o
1961
1961
  }) => {
1962
- const h = ae.useId();
1962
+ const u = ae.useId();
1963
1963
  return /* @__PURE__ */ n(ee, { children: [
1964
- ae.cloneElement(t, { "data-tooltip-id": h }),
1964
+ ae.cloneElement(t, { "data-tooltip-id": u }),
1965
1965
  /* @__PURE__ */ e(
1966
1966
  Wa,
1967
1967
  {
1968
- id: h,
1968
+ id: u,
1969
1969
  content: a,
1970
1970
  place: l,
1971
1971
  variant: s,
@@ -1995,8 +1995,8 @@ const wn = {
1995
1995
  direction: l = 1,
1996
1996
  stepProps: m = {},
1997
1997
  title: o,
1998
- description: h,
1999
- showProgress: u = !0,
1998
+ description: u,
1999
+ showProgress: h = !0,
2000
2000
  closeOnOverlayClick: N = !0
2001
2001
  }) => {
2002
2002
  const y = s[i], r = Object.keys(s), v = r.indexOf(i), d = (v + 1) / r.length * 100, g = v > 0 && m.onBack;
@@ -2045,7 +2045,7 @@ const wn = {
2045
2045
  ),
2046
2046
  /* @__PURE__ */ n("div", { className: "wizard-header-text", children: [
2047
2047
  /* @__PURE__ */ e(be.Title, { as: "h3", className: "wizard-title", children: o }),
2048
- h && /* @__PURE__ */ e(be.Description, { className: "wizard-description", children: h })
2048
+ u && /* @__PURE__ */ e(be.Description, { className: "wizard-description", children: u })
2049
2049
  ] })
2050
2050
  ] }),
2051
2051
  /* @__PURE__ */ e(
@@ -2058,7 +2058,7 @@ const wn = {
2058
2058
  }
2059
2059
  )
2060
2060
  ] }),
2061
- u && /* @__PURE__ */ e("div", { className: "wizard-progress-container", children: /* @__PURE__ */ e(
2061
+ h && /* @__PURE__ */ e("div", { className: "wizard-progress-container", children: /* @__PURE__ */ e(
2062
2062
  "div",
2063
2063
  {
2064
2064
  className: "wizard-progress-bar",
@@ -2115,18 +2115,18 @@ const wn = {
2115
2115
  category: m = "secondary",
2116
2116
  icon: o,
2117
2117
  // Renamed for clarity, expecting a component type e.g., CheckCircle
2118
- disabled: h = !1,
2119
- size: u = "small",
2118
+ disabled: u = !1,
2119
+ size: h = "small",
2120
2120
  label: N,
2121
2121
  children: y,
2122
2122
  // ✅ Add children to the props list
2123
2123
  onClick: r,
2124
2124
  ...v
2125
2125
  }) => {
2126
- const d = h, g = H(
2126
+ const d = u, g = H(
2127
2127
  "btn-base-icon",
2128
2128
  "btn-icon-only",
2129
- Pn[u],
2129
+ Pn[h],
2130
2130
  Mn[m],
2131
2131
  l
2132
2132
  );
@@ -2141,7 +2141,7 @@ const wn = {
2141
2141
  title: i,
2142
2142
  "aria-label": i,
2143
2143
  ...v,
2144
- children: o && /* @__PURE__ */ e(o, { size: u === "large" ? 20 : 16 })
2144
+ children: o && /* @__PURE__ */ e(o, { size: h === "large" ? 20 : 16 })
2145
2145
  }
2146
2146
  );
2147
2147
  }, Pl = ({
@@ -2153,17 +2153,17 @@ const wn = {
2153
2153
  tertiary: m,
2154
2154
  fullHeight: o = !1,
2155
2155
  // A clearer prop name
2156
- ...h
2156
+ ...u
2157
2157
  }) => {
2158
- const u = H(
2158
+ const h = H(
2159
2159
  "page-layout",
2160
2160
  {
2161
2161
  "page-layout--with-footer": a,
2162
2162
  "page-layout--full-height": o
2163
2163
  },
2164
- h.className
2164
+ u.className
2165
2165
  );
2166
- return /* @__PURE__ */ n("div", { className: u, ...h, children: [
2166
+ return /* @__PURE__ */ n("div", { className: h, ...u, children: [
2167
2167
  /* @__PURE__ */ e("div", { className: "page-layout-content", children: t }),
2168
2168
  a && /* @__PURE__ */ e("footer", { className: "page-layout-footer", children: s || /* @__PURE__ */ n("div", { className: "footer-actions", children: [
2169
2169
  m?.show && /* @__PURE__ */ e(
@@ -2418,13 +2418,13 @@ function Ot() {
2418
2418
  }
2419
2419
  function Wn(t) {
2420
2420
  if (t && t.isAxiosError) {
2421
- const { response: a, config: s, message: i } = t, l = a?.status ?? null, m = a?.statusText ?? null, o = a?.data ?? null, h = typeof o == "string" && o || o?.message || o?.msg || o?.error || o?.errors?.[0]?.message || null;
2421
+ 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;
2422
2422
  return {
2423
2423
  ok: !1,
2424
2424
  status: l,
2425
2425
  statusText: m,
2426
2426
  code: o?.code || null,
2427
- message: h || i || "Request failed",
2427
+ message: u || i || "Request failed",
2428
2428
  details: o || null,
2429
2429
  request: {
2430
2430
  url: s?.url || null,
@@ -2485,10 +2485,10 @@ function Jn({
2485
2485
  async function o(N, y = {}, r = !1, v = {}) {
2486
2486
  return s.post(N, y, i({ open: r, customHeader: v }));
2487
2487
  }
2488
- async function h(N, y = {}, r = !1, v = {}) {
2488
+ async function u(N, y = {}, r = !1, v = {}) {
2489
2489
  return s.put(N, y, i({ open: r, customHeader: v }));
2490
2490
  }
2491
- async function u(N, y = {}, r = !1, v = {}) {
2491
+ async function h(N, y = {}, r = !1, v = {}) {
2492
2492
  return s.patch(N, y, i({ open: r, customHeader: v }));
2493
2493
  }
2494
2494
  return {
@@ -2497,8 +2497,8 @@ function Jn({
2497
2497
  axiosGet: l,
2498
2498
  axiosDelete: m,
2499
2499
  axiosPost: o,
2500
- axiosPut: h,
2501
- axiosPatch: u
2500
+ axiosPut: u,
2501
+ axiosPatch: h
2502
2502
  };
2503
2503
  }
2504
2504
  const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl = Fe.axiosPut, _l = Fe.axiosPatch, Ul = Fe.instance, Xn = async (t, a) => {
@@ -2608,9 +2608,9 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
2608
2608
  }) => {
2609
2609
  const l = t.slice(0, 2), m = [];
2610
2610
  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);
2611
- const o = t.length + a.length + s.length, h = o - m.length;
2612
- let u = m.join(", ");
2613
- return h > 0 && (u += ` and ${h} others`), o === 0 ? /* @__PURE__ */ e(
2611
+ const o = t.length + a.length + s.length, u = o - m.length;
2612
+ let h = m.join(", ");
2613
+ return u > 0 && (h += ` and ${u} others`), o === 0 ? /* @__PURE__ */ e(
2614
2614
  "div",
2615
2615
  {
2616
2616
  className: "flex items-center justify-between p-3 border border-dashed border-gray-400 rounded-lg hover:bg-gray-50",
@@ -2633,7 +2633,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
2633
2633
  },
2634
2634
  N.id || y
2635
2635
  )) }),
2636
- /* @__PURE__ */ e("p", { className: "text-sm font-medium text-gray-800 truncate", children: u })
2636
+ /* @__PURE__ */ e("p", { className: "text-sm font-medium text-gray-800 truncate", children: h })
2637
2637
  ] }),
2638
2638
  /* @__PURE__ */ e(fe, { size: 20 })
2639
2639
  ]
@@ -2657,9 +2657,9 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
2657
2657
  showExistingShares: m = !1,
2658
2658
  onFinalSubmit: o = () => {
2659
2659
  },
2660
- isChanged: h = !1
2660
+ isChanged: u = !1
2661
2661
  }) => {
2662
- const [u, N] = L(Pt[0]), [y, r] = L(""), v = Ct(y, 400), [d, g] = L([]), [z, A] = L(/* @__PURE__ */ new Set()), [E, O] = L(!1), [M, _] = L(Mt[0]), {
2662
+ const [h, N] = L(Pt[0]), [y, r] = L(""), v = Ct(y, 400), [d, g] = L([]), [z, A] = L(/* @__PURE__ */ new Set()), [E, O] = L(!1), [M, _] = L(Mt[0]), {
2663
2663
  control: U,
2664
2664
  handleSubmit: Y,
2665
2665
  watch: G,
@@ -2672,10 +2672,10 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
2672
2672
  name: "pendingInvites"
2673
2673
  }), D = G("pendingInvites");
2674
2674
  te(() => {
2675
- v.length > 1 ? (O(!0), Xn(u.name, v).then((S) => {
2675
+ v.length > 1 ? (O(!0), Xn(h.name, v).then((S) => {
2676
2676
  g(S);
2677
2677
  }).catch((S) => console.error("Search failed:", S)).finally(() => O(!1))) : (g([]), A(/* @__PURE__ */ new Set()));
2678
- }, [v, u]);
2678
+ }, [v, h]);
2679
2679
  const b = (S) => {
2680
2680
  A((B) => {
2681
2681
  const j = new Set(B);
@@ -2734,7 +2734,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
2734
2734
  throw console.error("Failed to submit invites:", B), B;
2735
2735
  }
2736
2736
  }, $ = (S) => {
2737
- const B = i[u.code].find((j) => j.name === S.name && j.permission !== "remove") || D.find((j) => j.name === S.name);
2737
+ const B = i[h.code].find((j) => j.name === S.name && j.permission !== "remove") || D.find((j) => j.name === S.name);
2738
2738
  return B ? `${B.permission}` : "";
2739
2739
  }, P = () => {
2740
2740
  switch (l) {
@@ -2748,7 +2748,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
2748
2748
  return "Add User, Groups or Roles test";
2749
2749
  }
2750
2750
  };
2751
- return se(() => (console.log("InviteFlow - isChanged:", h, "pendingInvites.length:", D.length), D.length === 0 && !h), [D.length, h]), /* @__PURE__ */ n("div", { className: "flex flex-col h-full bg-white", children: [
2751
+ return se(() => (console.log("InviteFlow - isChanged:", u, "pendingInvites.length:", D.length), D.length === 0 && !u), [D.length, u]), /* @__PURE__ */ n("div", { className: "flex flex-col h-full bg-white", children: [
2752
2752
  /* @__PURE__ */ n("header", { className: "flex items-center justify-between p-4 border-b border-gray-300 flex-shrink-0", children: [
2753
2753
  /* @__PURE__ */ e(be.Title, { className: " text-gray-900 !mb-0 text-lg font-semibold", children: P() }),
2754
2754
  /* @__PURE__ */ n("div", { className: "flex items-center gap-4", children: [
@@ -2777,11 +2777,11 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
2777
2777
  }
2778
2778
  ),
2779
2779
  /* @__PURE__ */ n("div", { className: "relative grid grid-cols-3 gap-2 items-start", children: [
2780
- /* @__PURE__ */ e("div", { className: "col-span-1", children: /* @__PURE__ */ e(Z, { value: u, onChange: N, children: /* @__PURE__ */ n("div", { className: "relative", children: [
2780
+ /* @__PURE__ */ e("div", { className: "col-span-1", children: /* @__PURE__ */ e(Z, { value: h, onChange: N, children: /* @__PURE__ */ n("div", { className: "relative", children: [
2781
2781
  /* @__PURE__ */ n(Z.Button, { className: "relative w-full border border-gray-300 rounded-md shadow-sm pl-3 pr-10 py-2 text-left hover:cursor-pointer focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 sm:text-sm", children: [
2782
2782
  /* @__PURE__ */ n("span", { className: "flex items-center", children: [
2783
- /* @__PURE__ */ e(u.icon, { className: "h-5 w-5 text-gray-400 mr-2" }),
2784
- /* @__PURE__ */ e("span", { className: "truncate", children: u.name })
2783
+ /* @__PURE__ */ e(h.icon, { className: "h-5 w-5 text-gray-400 mr-2" }),
2784
+ /* @__PURE__ */ e("span", { className: "truncate", children: h.name })
2785
2785
  ] }),
2786
2786
  /* @__PURE__ */ e("span", { className: "absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none", children: /* @__PURE__ */ e(dt, { className: "h-5 w-5 text-gray-400" }) })
2787
2787
  ] }),
@@ -2824,7 +2824,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
2824
2824
  /* @__PURE__ */ e("div", { className: "col-span-2", children: /* @__PURE__ */ e(
2825
2825
  he,
2826
2826
  {
2827
- placeholder: `Search by ${u.name.toLowerCase()}...`,
2827
+ placeholder: `Search by ${h.name.toLowerCase()}...`,
2828
2828
  onDebouncedChange: (S) => r(S),
2829
2829
  value: y
2830
2830
  }
@@ -3034,7 +3034,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3034
3034
  "button",
3035
3035
  {
3036
3036
  onClick: () => Y(w)(),
3037
- disabled: x || D.length === 0 && !h,
3037
+ disabled: x || D.length === 0 && !u,
3038
3038
  className: "px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md shadow-sm hover:bg-blue-700 hover:cursor-pointer focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:bg-blue-300 disabled:cursor-not-allowed",
3039
3039
  children: x ? "Inviting..." : l === me.DRIVE ? "Send Invites" : "Add"
3040
3040
  }
@@ -3047,14 +3047,14 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3047
3047
  { name: "Can manage", icon: ea, value: "edit" },
3048
3048
  { name: "Remove", icon: nr, isDestructive: !0, value: "remove" }
3049
3049
  ], es = ({ item: t, allowedPermissions: a, onPermissionChange: s }) => {
3050
- const [i, l] = L(!1), { refs: m, floatingStyles: o, context: h } = la({
3050
+ const [i, l] = L(!1), { refs: m, floatingStyles: o, context: u } = la({
3051
3051
  open: i,
3052
3052
  onOpenChange: l,
3053
3053
  middleware: [ia(8), oa(), ca({ padding: 8 })],
3054
3054
  whileElementsMounted: da,
3055
3055
  placement: "bottom-end"
3056
- }), u = Xr(h), N = Hr(h), { getReferenceProps: y, getFloatingProps: r } = Qr([
3057
- u,
3056
+ }), h = Xr(u), N = Hr(u), { getReferenceProps: y, getFloatingProps: r } = Qr([
3057
+ h,
3058
3058
  N
3059
3059
  ]), v = it.find((g) => g.name === t.permission || g.value === t.permission) || it[0];
3060
3060
  return (
@@ -3135,7 +3135,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3135
3135
  existingShares: l,
3136
3136
  allowedPermissions: m
3137
3137
  }) => {
3138
- const [o, h] = L(l), [u, N] = L(0), [y, r] = L(""), v = Ct(y, 300), d = {
3138
+ const [o, u] = L(l), [h, N] = L(0), [y, r] = L(""), v = Ct(y, 300), d = {
3139
3139
  users: o.users.filter(
3140
3140
  (O) => O.name.toLowerCase().includes(v.toLowerCase())
3141
3141
  ),
@@ -3147,7 +3147,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3147
3147
  )
3148
3148
  }, g = async (O, M, _, U) => {
3149
3149
  const Y = M.value;
3150
- h((G) => ({
3150
+ u((G) => ({
3151
3151
  ...G,
3152
3152
  [_]: G[_].map(
3153
3153
  (T) => T.id === O.id ? { ...T, permission: Y } : T
@@ -3187,7 +3187,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3187
3187
  )
3188
3188
  ] }),
3189
3189
  /* @__PURE__ */ n("div", { className: "flex flex-col flex-grow", children: [
3190
- /* @__PURE__ */ n(ne.Group, { selectedIndex: u, onChange: N, children: [
3190
+ /* @__PURE__ */ n(ne.Group, { selectedIndex: h, onChange: N, children: [
3191
3191
  /* @__PURE__ */ n("div", { className: "p-4 bg-white border-b border-gray-300", children: [
3192
3192
  /* @__PURE__ */ e(ne.List, { className: "flex space-x-1 bg-gray-100 p-1 rounded-lg", children: E.map((O) => /* @__PURE__ */ e(
3193
3193
  ne,
@@ -3206,7 +3206,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3206
3206
  {
3207
3207
  onDebouncedChange: r,
3208
3208
  value: y,
3209
- placeholder: `Search in ${E[u]}...`
3209
+ placeholder: `Search in ${E[h]}...`
3210
3210
  }
3211
3211
  ) })
3212
3212
  ] }),
@@ -3286,10 +3286,10 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3286
3286
  /* @__PURE__ */ e(Zt, { className: "h-12 w-12 text-gray-400" }),
3287
3287
  /* @__PURE__ */ n("h3", { className: "mt-2 text-sm font-medium text-gray-900", children: [
3288
3288
  "No ",
3289
- E[u],
3289
+ E[h],
3290
3290
  " Found"
3291
3291
  ] }),
3292
- /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-gray-500", children: y ? `No results for "${y}"` : `There are no ${E[u].toLowerCase()} with access.` })
3292
+ /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-gray-500", children: y ? `No results for "${y}"` : `There are no ${E[h].toLowerCase()} with access.` })
3293
3293
  ]
3294
3294
  }
3295
3295
  )
@@ -3298,7 +3298,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3298
3298
  O
3299
3299
  )) })
3300
3300
  },
3301
- u
3301
+ h
3302
3302
  ) }) })
3303
3303
  ] }),
3304
3304
  /* @__PURE__ */ e("div", { className: "p-4 bg-white border-t border-gray-300 flex justify-end", children: /* @__PURE__ */ e(
@@ -3325,8 +3325,8 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3325
3325
  onClose: s,
3326
3326
  members: i
3327
3327
  }) => {
3328
- const [l, m] = L(!0), [o, h] = L(""), u = Ct(o, 300), N = i.filter(
3329
- (d) => d.name.toLowerCase().includes(u.toLowerCase())
3328
+ const [l, m] = L(!0), [o, u] = L(""), h = Ct(o, 300), N = i.filter(
3329
+ (d) => d.name.toLowerCase().includes(h.toLowerCase())
3330
3330
  ), y = {
3331
3331
  hidden: { opacity: 0 },
3332
3332
  visible: {
@@ -3351,7 +3351,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3351
3351
  children: [
3352
3352
  /* @__PURE__ */ e(sr, { className: "h-12 w-12 text-gray-400" }),
3353
3353
  /* @__PURE__ */ e("h3", { className: "mt-2 text-sm font-medium text-gray-900", children: "No Users Found" }),
3354
- /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-gray-500", children: u ? `No one found matching "${u}"` : `There are no users in this ${t.type}.` })
3354
+ /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-gray-500", children: h ? `No one found matching "${h}"` : `There are no users in this ${t.type}.` })
3355
3355
  ]
3356
3356
  }
3357
3357
  ) : /* @__PURE__ */ e(
@@ -3418,7 +3418,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3418
3418
  /* @__PURE__ */ e("div", { className: "p-4 border-b border-gray-200 flex-shrink-0", children: /* @__PURE__ */ e(
3419
3419
  he,
3420
3420
  {
3421
- onDebouncedChange: h,
3421
+ onDebouncedChange: u,
3422
3422
  value: o,
3423
3423
  placeholder: "Search members..."
3424
3424
  }
@@ -3443,8 +3443,8 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3443
3443
  onClose: m = () => {
3444
3444
  },
3445
3445
  showExistingShares: o = !0,
3446
- allowedPermissions: h = [],
3447
- ...u
3446
+ allowedPermissions: u = [],
3447
+ ...h
3448
3448
  }) => {
3449
3449
  const [N, y] = L(pe.INVITE), [r, v] = L(t), [d, g] = L(null), [z, A] = L(!1), [E, O] = L([]), [M, _] = L(pe.MANAGE), U = () => {
3450
3450
  y(pe.INVITE), g(null), m();
@@ -3489,7 +3489,7 @@ const Fe = Jn(), Qe = Fe.axiosGet, Vl = Fe.axiosDelete, yt = Fe.axiosPost, jl =
3489
3489
  onOpenMembers: G,
3490
3490
  existingShares: r,
3491
3491
  calledBy: l,
3492
- allowedPermissions: h
3492
+ allowedPermissions: u
3493
3493
  }
3494
3494
  )
3495
3495
  },
@@ -3562,8 +3562,8 @@ function tt({
3562
3562
  },
3563
3563
  placeholder: m = "Select options",
3564
3564
  error: o = null,
3565
- displayLimit: h = 3,
3566
- selectionLimit: u = -1,
3565
+ displayLimit: u = 3,
3566
+ selectionLimit: h = -1,
3567
3567
  // NEW: search behavior
3568
3568
  searchMode: N = "client",
3569
3569
  // "client" | "server"
@@ -3590,7 +3590,7 @@ function tt({
3590
3590
  const G = N === "client" ? Y : a, T = () => {
3591
3591
  if (!U.length)
3592
3592
  return /* @__PURE__ */ e("span", { className: "text-gray-500", children: m });
3593
- const f = U.slice(0, h), C = U.length - h;
3593
+ const f = U.slice(0, u), C = U.length - u;
3594
3594
  return /* @__PURE__ */ n("div", { className: "flex flex-wrap gap-2", children: [
3595
3595
  f.map((I) => /* @__PURE__ */ e(
3596
3596
  "span",
@@ -3609,7 +3609,7 @@ function tt({
3609
3609
  };
3610
3610
  return /* @__PURE__ */ e(Z, { value: U, onChange: (f) => {
3611
3611
  const C = Array.from(new Set(f.map((I) => d(I))));
3612
- u !== -1 && C.length > u || i(C);
3612
+ h !== -1 && C.length > h || i(C);
3613
3613
  }, multiple: !0, by: "id", children: ({ open: f }) => /* @__PURE__ */ n("div", { children: [
3614
3614
  /* @__PURE__ */ e(
3615
3615
  Z.Label,
@@ -3656,7 +3656,7 @@ function tt({
3656
3656
  ) }),
3657
3657
  N === "server" && r && /* @__PURE__ */ e("div", { className: "py-2 px-3 text-gray-500", children: "Loading…" }),
3658
3658
  G.length === 0 && !r ? /* @__PURE__ */ e("div", { className: "py-2 px-3 text-gray-500", children: N === "server" ? E.length < v ? `Type at least ${v} characters to search.` : "No results." : "No options found." }) : G.map((C) => {
3659
- const I = d(C), R = g(C), D = U.some((p) => d(p) === I), b = u !== -1 && U.length >= u && !D;
3659
+ const I = d(C), R = g(C), D = U.some((p) => d(p) === I), b = h !== -1 && U.length >= h && !D;
3660
3660
  return /* @__PURE__ */ e(
3661
3661
  Z.Option,
3662
3662
  {
@@ -3749,9 +3749,9 @@ const Gl = ({
3749
3749
  footer: l = { show: !0, customFooter: null },
3750
3750
  primaryAction: m = { onSubmit: null, label: "Save", loader: !1, disabled: !1 },
3751
3751
  secondaryAction: o = { onCancel: null, label: "Cancel" },
3752
- dialogPanelClass: h = ""
3752
+ dialogPanelClass: u = ""
3753
3753
  }) => {
3754
- const u = (y) => {
3754
+ const h = (y) => {
3755
3755
  y.target === y.currentTarget && a(!1);
3756
3756
  }, N = (y) => {
3757
3757
  y.stopPropagation();
@@ -3767,13 +3767,13 @@ const Gl = ({
3767
3767
  Wr,
3768
3768
  {
3769
3769
  className: "fixed inset-0 bg-black/30",
3770
- onClick: u
3770
+ onClick: h
3771
3771
  }
3772
3772
  ),
3773
3773
  /* @__PURE__ */ e("div", { className: "fixed inset-0 overflow-y-auto", children: /* @__PURE__ */ e("div", { className: "flex min-h-full items-center justify-center p-4", children: /* @__PURE__ */ n(
3774
3774
  Ae,
3775
3775
  {
3776
- className: `${h} relative bg-white align-middle w-full lg:w-[36rem] mx-5 lg:mx-0 transform overflow-hidden rounded-2xl text-left shadow-xl lg:min-w-[36rem] md:min-w-96 transition-all`,
3776
+ className: `${u} relative bg-white align-middle w-full lg:w-[36rem] mx-5 lg:mx-0 transform overflow-hidden rounded-2xl text-left shadow-xl lg:min-w-[36rem] md:min-w-96 transition-all`,
3777
3777
  onClick: N,
3778
3778
  children: [
3779
3779
  /* @__PURE__ */ n("div", { className: "flex justify-between items-center border-b border-gray-200 p-6 flex-shrink-0", children: [
@@ -3846,8 +3846,8 @@ function ls({
3846
3846
  onSelect: l,
3847
3847
  onCreateChild: m,
3848
3848
  onRename: o,
3849
- onDelete: h,
3850
- renderActions: u,
3849
+ onDelete: u,
3850
+ renderActions: h,
3851
3851
  // optional override
3852
3852
  dragId: N,
3853
3853
  dropId: y,
@@ -3865,10 +3865,10 @@ function ls({
3865
3865
  { action: "delete", label: "Delete" }
3866
3866
  ],
3867
3867
  onSelect: (C) => {
3868
- C.action === "create" ? m?.(t) : C.action === "rename" ? U(!0) : C.action === "delete" && h?.(t);
3868
+ C.action === "create" ? m?.(t) : C.action === "rename" ? U(!0) : C.action === "delete" && u?.(t);
3869
3869
  }
3870
3870
  }
3871
- ), [t, m, h]);
3871
+ ), [t, m, u]);
3872
3872
  return /* @__PURE__ */ n(
3873
3873
  "div",
3874
3874
  {
@@ -3895,10 +3895,10 @@ function ls({
3895
3895
  }
3896
3896
  ) : /* @__PURE__ */ e("span", { onDoubleClick: () => U(!0), children: t.name }) }),
3897
3897
  /* @__PURE__ */ e(ss, { listeners: z, attributes: g }),
3898
- /* @__PURE__ */ e("div", { className: "tv-actions", children: u ? u(t, {
3898
+ /* @__PURE__ */ e("div", { className: "tv-actions", children: h ? h(t, {
3899
3899
  onCreateChild: () => m?.(t),
3900
3900
  onRename: () => U(!0),
3901
- onDelete: () => h?.(t)
3901
+ onDelete: () => u?.(t)
3902
3902
  }) : x })
3903
3903
  ]
3904
3904
  }
@@ -3907,35 +3907,35 @@ function ls({
3907
3907
  const is = (t) => String(t.id ?? t._id), os = (t) => t.parent !== void 0 ? String(t.parent) : t.parentId != null ? String(t.parentId) : "root", cs = (t) => t.name ?? t.label ?? "", ds = (t) => Array.isArray(t) && t.some((a) => Array.isArray(a.children));
3908
3908
  function ms(t, { rootId: a, getId: s, getParent: i, getName: l }) {
3909
3909
  const m = /* @__PURE__ */ new Map();
3910
- t.forEach((h) => {
3911
- const u = s(h);
3912
- m.set(u, {
3913
- ...h,
3914
- id: u,
3915
- name: l(h),
3916
- parentId: i(h) || a,
3910
+ t.forEach((u) => {
3911
+ const h = s(u);
3912
+ m.set(h, {
3913
+ ...u,
3914
+ id: h,
3915
+ name: l(u),
3916
+ parentId: i(u) || a,
3917
3917
  children: []
3918
3918
  });
3919
3919
  });
3920
3920
  const o = [];
3921
- return m.forEach((h) => {
3922
- const u = h.parentId || a;
3923
- u !== a && m.has(u) ? m.get(u).children.push(h) : o.push(h);
3921
+ return m.forEach((u) => {
3922
+ const h = u.parentId || a;
3923
+ h !== a && m.has(h) ? m.get(h).children.push(u) : o.push(u);
3924
3924
  }), { roots: o, byId: m };
3925
3925
  }
3926
3926
  function us(t, { rootId: a, getId: s, getName: i }) {
3927
3927
  const l = /* @__PURE__ */ new Map();
3928
- function m(h, u) {
3929
- const N = s(h), y = {
3930
- ...h,
3928
+ function m(u, h) {
3929
+ const N = s(u), y = {
3930
+ ...u,
3931
3931
  id: N,
3932
- name: i(h),
3933
- parentId: u || a,
3934
- children: (h.children || []).map((r) => m(r, N))
3932
+ name: i(u),
3933
+ parentId: h || a,
3934
+ children: (u.children || []).map((r) => m(r, N))
3935
3935
  };
3936
3936
  return l.set(N, y), y;
3937
3937
  }
3938
- return { roots: t.map((h) => m(h, null)), byId: l };
3938
+ return { roots: t.map((u) => m(u, null)), byId: l };
3939
3939
  }
3940
3940
  const Pe = (t) => t.map((a) => ({ ...a, children: Pe(a.children || []) }));
3941
3941
  function hs(t, a) {
@@ -3945,8 +3945,8 @@ function hs(t, a) {
3945
3945
  if (o.id === a)
3946
3946
  return s = o, null;
3947
3947
  if (o.children?.length) {
3948
- const h = i(o.children);
3949
- if (h !== o.children) return { ...o, children: h };
3948
+ const u = i(o.children);
3949
+ if (u !== o.children) return { ...o, children: u };
3950
3950
  }
3951
3951
  return o;
3952
3952
  }).filter(Boolean);
@@ -3985,8 +3985,8 @@ function ql({
3985
3985
  getParent: l = os,
3986
3986
  getName: m = cs,
3987
3987
  onSelect: o,
3988
- onCreateRoot: h,
3989
- onCreateChild: u,
3988
+ onCreateRoot: u,
3989
+ onCreateChild: h,
3990
3990
  onRename: N,
3991
3991
  onDelete: y,
3992
3992
  onMove: r,
@@ -4059,7 +4059,7 @@ function ql({
4059
4059
  expanded: !!A[k.id],
4060
4060
  onToggle: () => M(k.id),
4061
4061
  onSelect: o,
4062
- onCreateChild: u,
4062
+ onCreateChild: h,
4063
4063
  onRename: N,
4064
4064
  onDelete: y,
4065
4065
  renderActions: v,
@@ -4070,7 +4070,7 @@ function ql({
4070
4070
  ),
4071
4071
  A[k.id] && k.children?.length > 0 ? D(k.children, p + 1) : null
4072
4072
  ] }, k.id)),
4073
- [A, g, u, y, N, o, v, M]
4073
+ [A, g, h, y, N, o, v, M]
4074
4074
  );
4075
4075
  return ae.useMemo(() => {
4076
4076
  if (!T) return null;
@@ -4087,12 +4087,12 @@ function ql({
4087
4087
  }, [T, _]), /* @__PURE__ */ n("div", { className: "tv", children: [
4088
4088
  s !== !1 && /* @__PURE__ */ n("div", { className: "tv-header", children: [
4089
4089
  /* @__PURE__ */ e("div", { className: "tv-title", children: s }),
4090
- /* @__PURE__ */ e("button", { className: "tv-btn", onClick: h, children: "+ New folder" })
4090
+ /* @__PURE__ */ e("button", { className: "tv-btn", onClick: u, children: "+ New folder" })
4091
4091
  ] }),
4092
4092
  /* @__PURE__ */ n("div", { className: "tv-root-row", children: [
4093
4093
  /* @__PURE__ */ e(Le, { size: 16, className: "tv-folder-ic" }),
4094
4094
  /* @__PURE__ */ e("strong", { children: "ROOT" }),
4095
- /* @__PURE__ */ e("button", { className: "tv-icon", title: "Create top-level", onClick: h, children: "+" })
4095
+ /* @__PURE__ */ e("button", { className: "tv-icon", title: "Create top-level", onClick: u, children: "+" })
4096
4096
  ] }),
4097
4097
  /* @__PURE__ */ e(
4098
4098
  dr,
@@ -4119,17 +4119,17 @@ const Yl = ({
4119
4119
  listClassName: l = "",
4120
4120
  panelClassName: m = "",
4121
4121
  tabClassName: o,
4122
- ...h
4122
+ ...u
4123
4123
  // Pass remaining props to Tab.Group
4124
4124
  }) => {
4125
- const u = s === "vertical", N = (v) => ke(
4125
+ const h = s === "vertical", N = (v) => ke(
4126
4126
  "py-2 -mb-px text-sm font-medium focus:outline-none border-b-2",
4127
4127
  v ? "border-primaryX text-textX" : "border-transparent text-slate-600 hover:text-indigo-700"
4128
4128
  ), y = (v) => ke(
4129
4129
  "text-left text-sm rounded-md px-2 py-1.5 focus:outline-none",
4130
4130
  v ? "bg-primaryX text-white" : "text-textX hover:bg-lightgray-100 hover:text-primaryX"
4131
- ), r = ({ selected: v }) => o ? typeof o == "function" ? o(v) : o : u ? y(v) : N(v);
4132
- return /* @__PURE__ */ e(ne.Group, { vertical: u, ...h, children: u ? /* @__PURE__ */ n("div", { className: ke("flex gap-4", i), children: [
4131
+ ), r = ({ selected: v }) => o ? typeof o == "function" ? o(v) : o : h ? y(v) : N(v);
4132
+ return /* @__PURE__ */ e(ne.Group, { vertical: h, ...u, children: h ? /* @__PURE__ */ n("div", { className: ke("flex gap-4", i), children: [
4133
4133
  /* @__PURE__ */ e(ne.List, { className: ke("w-[150px] flex flex-col gap-1 border-r border-gray-300 pr-2", l), children: t.map((v) => /* @__PURE__ */ e(ne, { className: r, children: v.label }, v.key)) }),
4134
4134
  /* @__PURE__ */ e(ne.Panels, { unmount: !a, className: ke("flex-1", m), children: t.map((v) => /* @__PURE__ */ e(ne.Panel, { className: "focus:outline-none", children: /* @__PURE__ */ e("div", { className: "[overflow-anchor:none]", children: v.content }) }, v.key)) })
4135
4135
  ] }) : (
@@ -4146,15 +4146,15 @@ function Wl(t, a = "YYYY-MM-DD HH:mm:ss") {
4146
4146
  c.string;
4147
4147
  function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4148
4148
  console.log(t);
4149
- const [l, m] = ae.useState(t), [o, h] = ae.useState(() => {
4149
+ const [l, m] = ae.useState(t), [o, u] = ae.useState(() => {
4150
4150
  const r = a && a[t.key] || {};
4151
4151
  return console.log("Initial Section data for", t.key, r), r;
4152
- }), u = ge(a);
4152
+ }), h = ge(a);
4153
4153
  te(() => {
4154
- if (u.current !== a) {
4155
- u.current = a;
4154
+ if (h.current !== a) {
4155
+ h.current = a;
4156
4156
  const r = a && a[t.key] || {};
4157
- console.log("Updated Section data for", t.key, r), h(r);
4157
+ console.log("Updated Section data for", t.key, r), u(r);
4158
4158
  }
4159
4159
  }, [a, t.key]), console.log("Section data", o);
4160
4160
  const N = ge(o);
@@ -4207,7 +4207,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4207
4207
  checked: !!(o[r.key] || r.default),
4208
4208
  onChange: (d) => {
4209
4209
  const g = d.target ? d.target.checked : d, z = { ...o, [r.key]: g };
4210
- h(z), s && s(l.key, z);
4210
+ u(z), s && s(l.key, z);
4211
4211
  },
4212
4212
  label: r.label,
4213
4213
  disabled: r.disabled ? r.disabled : !1
@@ -4262,7 +4262,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4262
4262
  value: o[r.key] || "",
4263
4263
  onChange: (d) => {
4264
4264
  const g = { ...o, [r.key]: d.target.value };
4265
- h(g), s && s(l.key, g);
4265
+ u(g), s && s(l.key, g);
4266
4266
  },
4267
4267
  required: r.required,
4268
4268
  disabled: r.disabled ? r.disabled : !1,
@@ -4282,7 +4282,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4282
4282
  value: o[r.key] || "",
4283
4283
  onChange: (d) => {
4284
4284
  const g = { ...o, [r.key]: d.target.value };
4285
- h(g), s && s(l.key, g);
4285
+ u(g), s && s(l.key, g);
4286
4286
  },
4287
4287
  rows: 3,
4288
4288
  required: r.required,
@@ -4307,7 +4307,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4307
4307
  step: r.step,
4308
4308
  onChange: (d) => {
4309
4309
  const g = d.target.value, z = { ...o, [r.key]: g };
4310
- h(z), s && s(l.key, z);
4310
+ u(z), s && s(l.key, z);
4311
4311
  },
4312
4312
  onBlur: (d) => {
4313
4313
  const g = d.target.value;
@@ -4339,7 +4339,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4339
4339
  checked: !!(o[r.key] || r.default),
4340
4340
  onChange: (d) => {
4341
4341
  const g = d.target ? d.target.checked : d, z = { ...o, [r.key]: g };
4342
- h(z), s && s(l.key, z);
4342
+ u(z), s && s(l.key, z);
4343
4343
  },
4344
4344
  label: r.placeholder || r.label,
4345
4345
  disabled: r.disabled ? r.disabled : !1,
@@ -4357,7 +4357,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4357
4357
  value: o[r.key] || "",
4358
4358
  onChange: (d) => {
4359
4359
  const g = { ...o, [r.key]: d };
4360
- h(g);
4360
+ u(g);
4361
4361
  },
4362
4362
  options: r.options || [],
4363
4363
  placeholder: r.placeholder || `Select ${r.label}`,
@@ -4379,7 +4379,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4379
4379
  value: o[r.key] || "",
4380
4380
  onChange: (d) => {
4381
4381
  const g = { ...o, [r.key]: d.target.value };
4382
- h(g), s && s(l.key, g);
4382
+ u(g), s && s(l.key, g);
4383
4383
  },
4384
4384
  required: r.required,
4385
4385
  disabled: r.disabled ? r.disabled : !1,
@@ -4399,7 +4399,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4399
4399
  value: o[r.key] || "",
4400
4400
  onChange: (d) => {
4401
4401
  const g = { ...o, [r.key]: d.target.value };
4402
- h(g), s && s(l.key, g);
4402
+ u(g), s && s(l.key, g);
4403
4403
  },
4404
4404
  required: r.required,
4405
4405
  disabled: r.disabled ? r.disabled : !1,
@@ -4419,7 +4419,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4419
4419
  value: o[r.key] || "",
4420
4420
  onChange: (d) => {
4421
4421
  const g = { ...o, [r.key]: d.target.value };
4422
- h(g), s && s(l.key, g);
4422
+ u(g), s && s(l.key, g);
4423
4423
  },
4424
4424
  required: r.required,
4425
4425
  disabled: r.disabled ? r.disabled : !1,
@@ -4435,7 +4435,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4435
4435
  selectedItems: o[r.key] || [],
4436
4436
  onSelectionChange: (d) => {
4437
4437
  const g = { ...o, [r.key]: d };
4438
- h(g), s && s(l.key, g);
4438
+ u(g), s && s(l.key, g);
4439
4439
  },
4440
4440
  options: r.options || [],
4441
4441
  placeholder: r.placeholder || `Select ${r.label}`,
@@ -4453,7 +4453,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4453
4453
  onChange: (d) => {
4454
4454
  console.log("Toggle changed:", r.key, d);
4455
4455
  const g = { ...o, [r.key]: d };
4456
- h(g), s && s(l.key, g);
4456
+ u(g), s && s(l.key, g);
4457
4457
  },
4458
4458
  disabled: r.disabled ? r.disabled : !1
4459
4459
  }
@@ -4467,7 +4467,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4467
4467
  value: o[r.key] ? new Date(o[r.key]) : null,
4468
4468
  onChange: (d) => {
4469
4469
  const g = { ...o, [r.key]: d ? d.toISOString().split("T")[0] : "" };
4470
- h(g), s && s(l.key, g);
4470
+ u(g), s && s(l.key, g);
4471
4471
  },
4472
4472
  placeholder: r.placeholder || "Select date",
4473
4473
  disabled: r.disabled ? r.disabled : !1,
@@ -4482,7 +4482,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4482
4482
  value: o[r.key] || { from: null, to: null },
4483
4483
  onChange: (d) => {
4484
4484
  const g = { ...o, [r.key]: d };
4485
- h(g), s && s(l.key, g);
4485
+ u(g), s && s(l.key, g);
4486
4486
  },
4487
4487
  placeholder: r.placeholder || "Select date range",
4488
4488
  disabled: r.disabled ? r.disabled : !1,
@@ -4497,7 +4497,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4497
4497
  selectedValue: typeof o[r.key] < "u" ? o[r.key] : r.default || "",
4498
4498
  onValueChange: (d) => {
4499
4499
  const g = { ...o, [r.key]: d };
4500
- h(g), s && s(l.key, g);
4500
+ u(g), s && s(l.key, g);
4501
4501
  },
4502
4502
  options: r.options || [],
4503
4503
  disabled: r.disabled ? r.disabled : !1,
@@ -4518,7 +4518,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4518
4518
  checked: o[r.key] === d.value,
4519
4519
  onChange: (g) => {
4520
4520
  const z = { ...o, [r.key]: g.target.value };
4521
- h(z), s && s(l.key, z);
4521
+ u(z), s && s(l.key, z);
4522
4522
  },
4523
4523
  disabled: r.disabled
4524
4524
  }
@@ -4537,7 +4537,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4537
4537
  value: o[r.key] || "",
4538
4538
  onChange: (d) => {
4539
4539
  const g = { ...o, [r.key]: d };
4540
- h(g), s && s(l.key, g);
4540
+ u(g), s && s(l.key, g);
4541
4541
  },
4542
4542
  placeholder: r.placeholder || `Search ${r.label}`,
4543
4543
  className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
@@ -4556,7 +4556,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4556
4556
  value: o[r.key] || "",
4557
4557
  onChange: (d) => {
4558
4558
  const g = { ...o, [r.key]: d.target.value };
4559
- h(g), s && s(l.key, g);
4559
+ u(g), s && s(l.key, g);
4560
4560
  },
4561
4561
  required: r.required,
4562
4562
  className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
@@ -4575,7 +4575,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4575
4575
  value: o[r.key] || "",
4576
4576
  onChange: (d) => {
4577
4577
  const g = { ...o, [r.key]: d.target.value };
4578
- h(g), s && s(l.key, g);
4578
+ u(g), s && s(l.key, g);
4579
4579
  },
4580
4580
  required: r.required,
4581
4581
  className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
@@ -4593,7 +4593,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4593
4593
  value: o[r.key] || "#000000",
4594
4594
  onChange: (d) => {
4595
4595
  const g = { ...o, [r.key]: d.target.value };
4596
- h(g), s && s(l.key, g);
4596
+ u(g), s && s(l.key, g);
4597
4597
  },
4598
4598
  className: `w-full h-10 ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
4599
4599
  }
@@ -4610,7 +4610,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4610
4610
  value: o[r.key] || r.min || 0,
4611
4611
  onChange: (d) => {
4612
4612
  const g = { ...o, [r.key]: d.target.value };
4613
- h(g), s && s(l.key, g);
4613
+ u(g), s && s(l.key, g);
4614
4614
  },
4615
4615
  min: r.min || 0,
4616
4616
  max: r.max || 100,
@@ -4636,7 +4636,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4636
4636
  name: r.key,
4637
4637
  onChange: (d) => {
4638
4638
  const g = d.target.files[0], z = { ...o, [r.key]: g ? g.name : "" };
4639
- h(z), s && s(l.key, z);
4639
+ u(z), s && s(l.key, z);
4640
4640
  },
4641
4641
  accept: r.accept,
4642
4642
  className: `w-full ${i[l.key]?.[r.key] ? "border-red-500" : ""}`
@@ -4653,7 +4653,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4653
4653
  className: r.className || "",
4654
4654
  onCollectionChange: (d) => {
4655
4655
  const g = { ...o, [r.key]: d };
4656
- h(g), s && s(l.key, g);
4656
+ u(g), s && s(l.key, g);
4657
4657
  },
4658
4658
  showSearch: r.showSearch !== !1,
4659
4659
  allowAdd: r.allowAdd !== !1,
@@ -4681,7 +4681,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4681
4681
  const bs = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex -space-x-2", children: t });
4682
4682
  function fs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4683
4683
  console.log(`[DynamicConfig/DataTableRenderer] Component loaded for section: ${t.key}`);
4684
- const [l, m] = L(t), [o, h] = L(null), [u, N] = L(null);
4684
+ const [l, m] = L(t), [o, u] = L(null), [h, N] = L(null);
4685
4685
  console.log(`[DataTableRenderer] ${l.key} - Received props:`, { item: t, initialData: a });
4686
4686
  const [y, r] = L(() => {
4687
4687
  const x = a && a[l.key] || [], f = x.length > 0 ? x : [{ id: 0 }];
@@ -4979,7 +4979,7 @@ function fs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4979
4979
  {
4980
4980
  className: "text-blue-600 font-semibold hover:text-blue-800",
4981
4981
  onClick: () => {
4982
- N(x.key), h(D);
4982
+ N(x.key), u(D);
4983
4983
  },
4984
4984
  children: p.length > 0 ? "Edit" : "Assign"
4985
4985
  }
@@ -5084,17 +5084,17 @@ function fs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5084
5084
  }, []), T = K((x) => {
5085
5085
  console.log("[DataTableRenderer] handleAddAudience called with:", x), r((f) => {
5086
5086
  const C = [...f];
5087
- if (o !== null && u && C[o]) {
5087
+ if (o !== null && h && C[o]) {
5088
5088
  const I = x.pendingInvites || [], R = I.filter((p) => p.type === "User"), D = I.filter((p) => p.type === "Group"), b = I.filter((p) => p.type === "Role");
5089
- C[o][u] = {
5090
- users: [...C[o][u]?.users || [], ...R],
5091
- groups: [...C[o][u]?.groups || [], ...D],
5092
- roles: [...C[o][u]?.roles || [], ...b]
5093
- }, console.log("[DataTableRenderer] Updated audience data:", C[o][u]);
5089
+ C[o][h] = {
5090
+ users: [...C[o][h]?.users || [], ...R],
5091
+ groups: [...C[o][h]?.groups || [], ...D],
5092
+ roles: [...C[o][h]?.roles || [], ...b]
5093
+ }, console.log("[DataTableRenderer] Updated audience data:", C[o][h]);
5094
5094
  }
5095
5095
  return C;
5096
- }), h(null), N(null);
5097
- }, [o, u]);
5096
+ }), u(null), N(null);
5097
+ }, [o, h]);
5098
5098
  return /* @__PURE__ */ n("div", { children: [
5099
5099
  /* @__PURE__ */ n("div", { style: { marginBottom: "20px" }, children: [
5100
5100
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
@@ -5150,17 +5150,17 @@ function fs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5150
5150
  )) })
5151
5151
  ] }) }),
5152
5152
  o !== null && (() => {
5153
- const x = y[o] && y[o][u] ? {
5154
- users: y[o][u].users || [],
5155
- groups: y[o][u].groups || [],
5156
- roles: y[o][u].roles || []
5153
+ const x = y[o] && y[o][h] ? {
5154
+ users: y[o][h].users || [],
5155
+ groups: y[o][h].groups || [],
5156
+ roles: y[o][h].roles || []
5157
5157
  } : { users: [], groups: [], roles: [] };
5158
- return console.log("[DataTableRenderer] Opening modal with existing data:", x), console.log("[DataTableRenderer] Row data:", y[o]), console.log("[DataTableRenderer] Field name:", u), /* @__PURE__ */ e(
5158
+ return console.log("[DataTableRenderer] Opening modal with existing data:", x), console.log("[DataTableRenderer] Row data:", y[o]), console.log("[DataTableRenderer] Field name:", h), /* @__PURE__ */ e(
5159
5159
  ns,
5160
5160
  {
5161
5161
  isOpen: !0,
5162
5162
  onClose: () => {
5163
- h(null), N(null);
5163
+ u(null), N(null);
5164
5164
  },
5165
5165
  onFinalSubmit: T,
5166
5166
  existingShares: x,
@@ -5192,9 +5192,9 @@ function Ns({
5192
5192
  onShowCancelModal: l,
5193
5193
  onCancel: m
5194
5194
  }) {
5195
- const [o, h] = ae.useState(a), [u, N] = ae.useState(null), [y, r] = ae.useState(null), [v, d] = L(!1), [g, z] = L(!1), [A, E] = L({}), O = `${Se()}/unifyedxappmodulemanagement/api/v1/appmanager/${t}/configuration`, M = O, [_, U] = L(1), Y = () => {
5196
- if (!y || !u)
5197
- return console.log("[DynamicConfig] hasUnsavedChanges: false (no data)", { originalData: y, data: u }), !1;
5195
+ const [o, u] = ae.useState(a), [h, N] = ae.useState(null), [y, r] = ae.useState(null), [v, d] = L(!1), [g, z] = L(!1), [A, E] = L({}), O = `${Se()}/unifyedxappmodulemanagement/api/v1/appmanager/${t}/configuration`, M = O, [_, U] = L(1), Y = () => {
5196
+ if (!y || !h)
5197
+ return console.log("[DynamicConfig] hasUnsavedChanges: false (no data)", { originalData: y, data: h }), !1;
5198
5198
  const b = ($) => {
5199
5199
  if ($ == null || typeof $ != "object") return $;
5200
5200
  if (Array.isArray($)) return $.map(b);
@@ -5202,12 +5202,12 @@ function Ns({
5202
5202
  return Object.keys($).sort().forEach((S) => {
5203
5203
  P[S] = b($[S]);
5204
5204
  }), P;
5205
- }, p = b(y), k = b(u), w = JSON.stringify(p) !== JSON.stringify(k);
5205
+ }, p = b(y), k = b(h), w = JSON.stringify(p) !== JSON.stringify(k);
5206
5206
  return console.log("[DynamicConfig] hasUnsavedChanges:", w, {
5207
5207
  originalData: p,
5208
5208
  currentData: k,
5209
5209
  originalRaw: y,
5210
- currentRaw: u
5210
+ currentRaw: h
5211
5211
  }), w;
5212
5212
  }, G = (b) => {
5213
5213
  if (!a || !a.configuration)
@@ -5289,7 +5289,7 @@ function Ns({
5289
5289
  d(!1);
5290
5290
  }
5291
5291
  };
5292
- a && (h(a), t ? b() : T());
5292
+ a && (u(a), t ? b() : T());
5293
5293
  }, [a, _, t, s]);
5294
5294
  const x = (b, p) => {
5295
5295
  console.log(`[DynamicConfig] handleSectionChange called for ${b}:`, p), N((k) => {
@@ -5304,10 +5304,10 @@ function Ns({
5304
5304
  });
5305
5305
  }, f = () => {
5306
5306
  const b = {};
5307
- return !o || !u || o.configuration.forEach((p) => {
5307
+ return !o || !h || o.configuration.forEach((p) => {
5308
5308
  if (p.type === "section")
5309
5309
  p.fields.forEach((k) => {
5310
- const w = u[p.key]?.[k.key];
5310
+ const w = h[p.key]?.[k.key];
5311
5311
  if (k.required && (!w || typeof w == "string" && w.trim() === "")) {
5312
5312
  b[p.key] || (b[p.key] = {}), b[p.key][k.key] = `${k.label} is required`;
5313
5313
  return;
@@ -5318,7 +5318,7 @@ function Ns({
5318
5318
  }
5319
5319
  });
5320
5320
  else if (p.type === "datatable") {
5321
- const k = u[p.key];
5321
+ const k = h[p.key];
5322
5322
  Array.isArray(k) && k.forEach((w, $) => {
5323
5323
  p.fields.forEach((P) => {
5324
5324
  const S = w[P.key];
@@ -5356,11 +5356,11 @@ function Ns({
5356
5356
  try {
5357
5357
  z(!0);
5358
5358
  const k = {};
5359
- u && Object.keys(u).forEach(($) => {
5359
+ h && Object.keys(h).forEach(($) => {
5360
5360
  const P = a?.configuration?.find(
5361
5361
  (S) => S.key === $ && S.type === "datatable"
5362
5362
  );
5363
- P && Array.isArray(u[$]) ? k[$] = u[$].map((S) => {
5363
+ P && Array.isArray(h[$]) ? k[$] = h[$].map((S) => {
5364
5364
  const B = { id: S.id || 0 };
5365
5365
  return P.fields && P.fields.forEach((j) => {
5366
5366
  if (j.fieldtype === "audience") {
@@ -5373,13 +5373,13 @@ function Ns({
5373
5373
  } else
5374
5374
  B[j.key] = S[j.key] || "";
5375
5375
  }), B;
5376
- }) : k[$] = u[$];
5376
+ }) : k[$] = h[$];
5377
5377
  }), (!k.appkey || k.appkey === "") && (k.appkey = t);
5378
5378
  let w = await yt(M, k);
5379
5379
  if (w && w.status != "fail") {
5380
- E({}), r(JSON.parse(JSON.stringify(u)));
5380
+ E({}), r(JSON.parse(JSON.stringify(h)));
5381
5381
  const $ = w.message || "Configuration has been saved successfully";
5382
- Ge.success($), i && typeof i == "function" && i(u);
5382
+ Ge.success($), i && typeof i == "function" && i(h);
5383
5383
  } else
5384
5384
  throw Ge.error(w?.message || "Failed to save configuration"), new Error("No response received from server");
5385
5385
  } catch (k) {
@@ -5395,7 +5395,7 @@ function Ns({
5395
5395
  return /* @__PURE__ */ e("div", { className: "min-h-screen flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "text-gray-500", children: "No configuration available" }) });
5396
5396
  const D = a?.configuration || o?.configuration;
5397
5397
  return te(() => {
5398
- s && a ? (!u || Object.keys(u).length === 0) && T() : s && !a && T();
5398
+ s && a ? (!h || Object.keys(h).length === 0) && T() : s && !a && T();
5399
5399
  }, [s, a]), /* @__PURE__ */ n("div", { children: [
5400
5400
  /* @__PURE__ */ n(
5401
5401
  "div",
@@ -5411,7 +5411,7 @@ function Ns({
5411
5411
  k,
5412
5412
  {
5413
5413
  item: b,
5414
- data: u,
5414
+ data: h,
5415
5415
  updateHandler: x,
5416
5416
  validationErrors: A
5417
5417
  },
@@ -5451,8 +5451,8 @@ const Jl = ({
5451
5451
  disableApi: s = !1
5452
5452
  }) => {
5453
5453
  const [i, l] = L(0), [m, o] = L(!1), {
5454
- pageHeader: h = {},
5455
- appletHeader: u = {},
5454
+ pageHeader: u = {},
5455
+ appletHeader: h = {},
5456
5456
  breadcrumb: N = [],
5457
5457
  overview: y = {},
5458
5458
  configuration: r = []
@@ -5499,7 +5499,7 @@ const Jl = ({
5499
5499
  subHeading: "View app details and customize configurations to align with institutional requirements.",
5500
5500
  isLeftArrow: !0,
5501
5501
  onBackClick: () => window.history.back(),
5502
- ...h
5502
+ ...u
5503
5503
  }, g = N.map((f) => ({
5504
5504
  label: f.text,
5505
5505
  href: f.href || "#"
@@ -5512,12 +5512,12 @@ const Jl = ({
5512
5512
  }, []), O = K(() => {
5513
5513
  window.history.back();
5514
5514
  }, []), M = (() => {
5515
- if (u.headingKey && Array.isArray(r)) {
5516
- const f = u.headingKey.split("."), C = f[0], I = f[1], R = r.find((D) => D && D.key === C);
5515
+ if (h.headingKey && Array.isArray(r)) {
5516
+ const f = h.headingKey.split("."), C = f[0], I = f[1], R = r.find((D) => D && D.key === C);
5517
5517
  if (R && R.fields) {
5518
5518
  const D = R.fields.find((b) => b && b.key === I);
5519
5519
  if (D)
5520
- return D.default ?? D.value ?? u.heading ?? a;
5520
+ return D.default ?? D.value ?? h.heading ?? a;
5521
5521
  }
5522
5522
  }
5523
5523
  if (Array.isArray(r)) {
@@ -5527,11 +5527,11 @@ const Jl = ({
5527
5527
  if (C) return C.default ?? C.value ?? a;
5528
5528
  }
5529
5529
  }
5530
- return u.heading || a;
5530
+ return h.heading || a;
5531
5531
  })(), _ = {
5532
5532
  subHeading: "Application configuration and details",
5533
5533
  tags: [],
5534
- ...u,
5534
+ ...h,
5535
5535
  heading: M
5536
5536
  // Use resolvedDisplayName only
5537
5537
  }, U = {
@@ -5654,17 +5654,17 @@ const Jl = ({
5654
5654
  allowEdit: l = !0,
5655
5655
  allowDelete: m = !0,
5656
5656
  allowReorder: o = !0,
5657
- initialData: h = null
5657
+ initialData: u = null
5658
5658
  }) => {
5659
- const [u, N] = L(null), [y, r] = L(""), [v, d] = L(() => Array.isArray(h) ? h : []), [g, z] = L(null), [A, E] = L(null), [O, M] = L("");
5659
+ const [h, N] = L(null), [y, r] = L(""), [v, d] = L(() => Array.isArray(u) ? u : []), [g, z] = L(null), [A, E] = L(null), [O, M] = L("");
5660
5660
  te(() => {
5661
- Array.isArray(h) && d(h);
5662
- }, [h]);
5661
+ Array.isArray(u) && d(u);
5662
+ }, [u]);
5663
5663
  const _ = (p) => {
5664
5664
  l && (N(p._id), r(p.categoryName || ""));
5665
5665
  }, U = () => {
5666
- if (!i || u !== null) return;
5667
- const k = (v.length > 0 ? Math.max(...v.map((w) => w._id ?? 0)) : 0) + 1;
5666
+ if (!i || h !== null) return;
5667
+ const k = (v.length > 0 ? Math.max(...v.map((w) => typeof w._id == "number" ? w._id : 0)) : 0) + 1;
5668
5668
  d((w) => [
5669
5669
  ...w,
5670
5670
  {
@@ -5677,13 +5677,13 @@ const Jl = ({
5677
5677
  }
5678
5678
  ]), N(k), r("");
5679
5679
  }, Y = () => {
5680
- u != null && (d((p) => {
5681
- const w = !p.some(($) => $._id !== void 0 && $._id === u && $.categoryName) ? p.filter(($) => $._id !== u) : p;
5680
+ h != null && (d((p) => {
5681
+ const w = !Array.isArray(u) || !u.some(($) => $._id === h) ? p.filter(($) => $._id !== h) : p;
5682
5682
  return a?.(w), w;
5683
5683
  }), N(null), r(""));
5684
5684
  }, G = () => {
5685
- u == null || !y.trim() || (d((p) => {
5686
- const k = p.map((w) => w._id === u ? {
5685
+ h == null || !y.trim() || (d((p) => {
5686
+ const k = p.map((w) => w._id === h ? {
5687
5687
  ...w,
5688
5688
  categoryName: y.trim()
5689
5689
  } : w);
@@ -5696,7 +5696,7 @@ const Jl = ({
5696
5696
  });
5697
5697
  }, x = (p, k, w) => {
5698
5698
  if (!o || !k || !w || k === w) return p;
5699
- const $ = p.findIndex((j) => j.id === k), P = p.findIndex((j) => j.id === w);
5699
+ const $ = p.findIndex((j) => j._id === k), P = p.findIndex((j) => j._id === w);
5700
5700
  if ($ === -1 || P === -1) return p;
5701
5701
  const S = [...p], [B] = S.splice($, 1);
5702
5702
  return S.splice(P, 0, B), S.map((j, F) => ({ ...j, order: F + 1 }));
@@ -5734,16 +5734,16 @@ const Jl = ({
5734
5734
  {
5735
5735
  className: [
5736
5736
  "px-4 py-3 bg-black text-white rounded-2xl ml-4",
5737
- u !== null ? "opacity-60 cursor-not-allowed" : "cursor-pointer"
5737
+ h !== null ? "opacity-60 cursor-not-allowed" : "cursor-pointer"
5738
5738
  ].join(" "),
5739
5739
  onClick: U,
5740
- disabled: u !== null,
5740
+ disabled: h !== null,
5741
5741
  children: "Add a Collection"
5742
5742
  }
5743
5743
  )
5744
5744
  ] }) }),
5745
5745
  /* @__PURE__ */ e("div", { className: "mt-5 flex flex-col", children: b.map((p) => {
5746
- const k = u === p._id, w = p?.links?.length ?? 0, $ = g === p._id, P = A === p._id && g !== p._id;
5746
+ const k = h === p._id, w = p?.links?.length ?? 0, $ = g === p._id, P = A === p._id && g !== p._id;
5747
5747
  return /* @__PURE__ */ e(
5748
5748
  "div",
5749
5749
  {
@@ -5763,7 +5763,7 @@ const Jl = ({
5763
5763
  type: "text",
5764
5764
  className: "flex-1 h-10 px-3 max-w-[200px] border border-gray-300 rounded-2xl outline-none focus:ring-2 focus:ring-gray-800/20",
5765
5765
  value: y,
5766
- placeholder: v.some((S) => S._id === p._id && S.categoryName) ? "Edit collection name" : "New collection name",
5766
+ placeholder: !Array.isArray(u) || !u.some((S) => S._id === p._id) ? "New collection name" : "Edit collection name",
5767
5767
  onChange: (S) => r(S.target.value),
5768
5768
  onKeyDown: (S) => {
5769
5769
  S.key === "Enter" && G(), S.key === "Escape" && Y();
@@ -5805,7 +5805,7 @@ const Jl = ({
5805
5805
  "aria-label": "Drag to reorder",
5806
5806
  className: "cursor-grab active:cursor-grabbing p-1 -m-1 rounded-md hover:bg-gray-50",
5807
5807
  draggable: !0,
5808
- onDragStart: (S) => f(S, p.id),
5808
+ onDragStart: (S) => f(S, p._id),
5809
5809
  onDragEnd: D,
5810
5810
  children: /* @__PURE__ */ e(Nt, {})
5811
5811
  }
@@ -5920,9 +5920,9 @@ const Lt = () => {
5920
5920
  // preferred
5921
5921
  onAdd: m,
5922
5922
  onFilterOpen: o,
5923
- addBtnText: h = "Add",
5923
+ addBtnText: u = "Add",
5924
5924
  // Feature toggles
5925
- showSearch: u = !0,
5925
+ showSearch: h = !0,
5926
5926
  showDelete: N = !0,
5927
5927
  showColumnChooser: y = !0,
5928
5928
  showFilter: r = !1,
@@ -6001,7 +6001,7 @@ const Lt = () => {
6001
6001
  a ? /* @__PURE__ */ e("div", { className: "text-sm text-gray-500", children: a }) : null
6002
6002
  ] }),
6003
6003
  /* @__PURE__ */ n("div", { className: "flex items-center gap-3", children: [
6004
- u && /* @__PURE__ */ e("div", { className: "relative", children: /* @__PURE__ */ e(
6004
+ h && /* @__PURE__ */ e("div", { className: "relative", children: /* @__PURE__ */ e(
6005
6005
  he,
6006
6006
  {
6007
6007
  placeholder: E,
@@ -6076,12 +6076,12 @@ const Lt = () => {
6076
6076
  A && m && /* @__PURE__ */ e(
6077
6077
  oe,
6078
6078
  {
6079
- label: h,
6079
+ label: u,
6080
6080
  icon: wr,
6081
6081
  onClick: m,
6082
6082
  size: "small",
6083
6083
  ariaLabel: "Add New",
6084
- title: h
6084
+ title: u
6085
6085
  }
6086
6086
  )
6087
6087
  ] })
@@ -6098,8 +6098,8 @@ function Ql(t) {
6098
6098
  // pageSize = 10,
6099
6099
  allowPaging: m = !0,
6100
6100
  allowSorting: o = !0,
6101
- allowFiltering: h = !1,
6102
- allowGrouping: u = !1,
6101
+ allowFiltering: u = !1,
6102
+ allowGrouping: h = !1,
6103
6103
  allowReordering: N = !0,
6104
6104
  allowResizing: y = !0,
6105
6105
  allowExcelExport: r = !1,
@@ -6122,8 +6122,8 @@ function Ql(t) {
6122
6122
  ...I
6123
6123
  } = T || {}, [R, D] = ae.useState(f?.page || 1), [b, p] = ae.useState(C?.pageSize || 20), [k, w] = ae.useState(C?.sortKey || "updatedDate"), [$, P] = ae.useState(C?.direction || "Descending"), S = se(() => {
6124
6124
  const V = [an];
6125
- return o && V.push(rn), h && V.push(nn), u && V.push(sn), g && V.push(ln), r && V.push(on), v && V.push(cn), d && V.push(dn), y && V.push(mn), N && V.push(un), V.push(hn), V;
6126
- }, [o, h, u, g, r, v, d, y, N]), B = se(() => {
6125
+ return o && V.push(rn), u && V.push(nn), h && V.push(sn), g && V.push(ln), r && V.push(on), v && V.push(cn), d && V.push(dn), y && V.push(mn), N && V.push(un), V.push(hn), V;
6126
+ }, [o, u, h, g, r, v, d, y, N]), B = se(() => {
6127
6127
  const V = () => x.current, re = (W, ve) => {
6128
6128
  !ve && process.env.NODE_ENV !== "production" && console.warn(`[CustomDataGrid] ${W} requested but related service/feature is disabled.`);
6129
6129
  };
@@ -6236,8 +6236,8 @@ function Ql(t) {
6236
6236
  height: z,
6237
6237
  allowPaging: m,
6238
6238
  allowSorting: o,
6239
- allowFiltering: h,
6240
- allowGrouping: u,
6239
+ allowFiltering: u,
6240
+ allowGrouping: h,
6241
6241
  allowReordering: N,
6242
6242
  allowResizing: y,
6243
6243
  showColumnChooser: d,
@@ -6291,14 +6291,14 @@ function ie({
6291
6291
  onSelect: l,
6292
6292
  identity: m = "_id",
6293
6293
  details: o = {},
6294
- ...h
6294
+ ...u
6295
6295
  }) {
6296
- const u = Xe(), N = ks(h, m), y = (v) => {
6296
+ const h = Xe(), N = ks(u, m), y = (v) => {
6297
6297
  l?.({
6298
6298
  key: N,
6299
6299
  checked: v.target.checked,
6300
6300
  details: o,
6301
- props: h
6301
+ props: u
6302
6302
  });
6303
6303
  }, r = i === "top-right" ? "top-3 right-3" : "top-3 left-3";
6304
6304
  return /* @__PURE__ */ n(
@@ -6310,7 +6310,7 @@ function ie({
6310
6310
  s && /* @__PURE__ */ e("div", { className: `absolute ${r} z-10`, children: /* @__PURE__ */ e(
6311
6311
  "input",
6312
6312
  {
6313
- id: u,
6313
+ id: h,
6314
6314
  type: "checkbox",
6315
6315
  className: "h-4 w-4 rounded border-zinc-300 focus:ring-[var(--primaryColor)]",
6316
6316
  onChange: y,
@@ -6338,8 +6338,8 @@ function Cs({
6338
6338
  // content
6339
6339
  title: m = "Activity",
6340
6340
  group: o = "Global",
6341
- moreGroupsLabel: h = "+ 5 more",
6342
- author: u = "Judith Black",
6341
+ moreGroupsLabel: u = "+ 5 more",
6342
+ author: h = "Judith Black",
6343
6343
  timeLabel: N = "Just now",
6344
6344
  imageUrl: y = "https://images.unsplash.com/photo-1469980098053-382eb10ba017?q=80&w=1200&auto=format&fit=crop",
6345
6345
  description: r = "Columbia University is a prestigious Ivy League institution located in the heart of New York City.",
@@ -6355,21 +6355,21 @@ function Cs({
6355
6355
  checkboxPosition: s,
6356
6356
  onSelect: i,
6357
6357
  identity: l,
6358
- details: { type: "activity", title: m, group: o, author: u },
6358
+ details: { type: "activity", title: m, group: o, author: h },
6359
6359
  ...v,
6360
6360
  children: [
6361
6361
  /* @__PURE__ */ e("div", { className: "flex items-start justify-between", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${g.title} ml-3`, children: m }) }),
6362
6362
  /* @__PURE__ */ n("div", { className: `text-zinc-500 dark:text-zinc-400 ${g.meta}`, children: [
6363
6363
  "Posted in ",
6364
6364
  /* @__PURE__ */ e("span", { className: "font-medium", children: "Global" }),
6365
- h ? /* @__PURE__ */ n(ee, { children: [
6365
+ u ? /* @__PURE__ */ n(ee, { children: [
6366
6366
  ",",
6367
6367
  " ",
6368
6368
  /* @__PURE__ */ e(
6369
6369
  "span",
6370
6370
  {
6371
6371
  className: "font-medium text-indigo-700",
6372
- children: h
6372
+ children: u
6373
6373
  }
6374
6374
  )
6375
6375
  ] }) : null,
@@ -6379,7 +6379,7 @@ function Cs({
6379
6379
  /* @__PURE__ */ n("div", { className: "mt-2 flex items-center gap-3", children: [
6380
6380
  /* @__PURE__ */ e(ze, { name: "John", size: "medium" }),
6381
6381
  /* @__PURE__ */ n("div", { className: "leading-tight", children: [
6382
- /* @__PURE__ */ e("div", { className: "text-sm font-medium text-zinc-800 dark:text-zinc-100", children: u }),
6382
+ /* @__PURE__ */ e("div", { className: "text-sm font-medium text-zinc-800 dark:text-zinc-100", children: h }),
6383
6383
  /* @__PURE__ */ e("div", { className: `text-zinc-500 dark:text-zinc-400 ${g.meta}`, children: N })
6384
6384
  ] })
6385
6385
  ] }),
@@ -6461,9 +6461,9 @@ function Ts({
6461
6461
  title: m = "Communities",
6462
6462
  activeTab: o = "joined",
6463
6463
  // "joined" | "suggested"
6464
- items: h = Ds,
6464
+ items: u = Ds,
6465
6465
  // spread for identity (_id/instanceId/etc)
6466
- ...u
6466
+ ...h
6467
6467
  }) {
6468
6468
  const N = ce(t), y = de[N], r = $s[N], v = (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"}`;
6469
6469
  return /* @__PURE__ */ n(
@@ -6474,8 +6474,8 @@ function Ts({
6474
6474
  checkboxPosition: s,
6475
6475
  onSelect: i,
6476
6476
  identity: l,
6477
- details: { type: "communities", title: m, activeTab: o, count: h?.length ?? 0 },
6478
- ...u,
6477
+ details: { type: "communities", title: m, activeTab: o, count: u?.length ?? 0 },
6478
+ ...h,
6479
6479
  children: [
6480
6480
  /* @__PURE__ */ n("div", { className: "flex items-start justify-between", children: [
6481
6481
  /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${y.title}`, children: m }),
@@ -6504,7 +6504,7 @@ function Ts({
6504
6504
  }
6505
6505
  )
6506
6506
  ] }),
6507
- /* @__PURE__ */ e("div", { className: "grid gap-4 md:gap-5", children: h.map((d) => /* @__PURE__ */ e(
6507
+ /* @__PURE__ */ e("div", { className: "grid gap-4 md:gap-5", children: u.map((d) => /* @__PURE__ */ e(
6508
6508
  "div",
6509
6509
  {
6510
6510
  className: "rounded-2xl border border-zinc-200 dark:border-zinc-800 p-3 md:p-4",
@@ -6647,9 +6647,9 @@ function Es({
6647
6647
  title: m = "News",
6648
6648
  items: o = As,
6649
6649
  // spread for identity fields: _id / id / instanceId etc.
6650
- ...h
6650
+ ...u
6651
6651
  }) {
6652
- const u = ce(t), N = de[u], y = Fs[u];
6652
+ const h = ce(t), N = de[h], y = Fs[h];
6653
6653
  return /* @__PURE__ */ n(
6654
6654
  ie,
6655
6655
  {
@@ -6659,13 +6659,13 @@ function Es({
6659
6659
  onSelect: i,
6660
6660
  identity: l,
6661
6661
  details: { type: "news", title: m, count: o?.length ?? 0 },
6662
- ...h,
6662
+ ...u,
6663
6663
  children: [
6664
6664
  /* @__PURE__ */ n("div", { className: "flex items-start justify-between", children: [
6665
6665
  /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${N.title}`, children: m }),
6666
6666
  /* @__PURE__ */ e("span", { className: "text-sm text-indigo-700 cursor-default select-none", children: "View All" })
6667
6667
  ] }),
6668
- u === "lg" ? (
6668
+ h === "lg" ? (
6669
6669
  // Large: 3-up grid of image cards
6670
6670
  /* @__PURE__ */ e("div", { className: `mt-4 ${y.grid}`, children: o.slice(0, 3).map((r) => /* @__PURE__ */ n("article", { children: [
6671
6671
  /* @__PURE__ */ e("img", { src: r.thumb, alt: "", className: y.cardImg }),
@@ -6762,8 +6762,8 @@ function Ms({
6762
6762
  identity: l = "_id",
6763
6763
  title: m = "Campus Map",
6764
6764
  campusName: o = "Morningside Heights Campus",
6765
- filters: h = Rs,
6766
- activeFilter: u = "All",
6765
+ filters: u = Rs,
6766
+ activeFilter: h = "All",
6767
6767
  // NEW: iframe controls
6768
6768
  mapQuery: N = "Florida",
6769
6769
  zoom: y = 12,
@@ -6780,7 +6780,7 @@ function Ms({
6780
6780
  checkboxPosition: s,
6781
6781
  onSelect: i,
6782
6782
  identity: l,
6783
- details: { type: "campus-map", title: m, campusName: o, activeFilter: u, mapQuery: N, zoom: y },
6783
+ details: { type: "campus-map", title: m, campusName: o, activeFilter: h, mapQuery: N, zoom: y },
6784
6784
  ...v,
6785
6785
  children: /* @__PURE__ */ n("div", { className: `relative mt-3 overflow-hidden rounded-2xl border border-zinc-200 dark:border-zinc-800 ${z.mapH}`, children: [
6786
6786
  /* @__PURE__ */ e(
@@ -6805,7 +6805,7 @@ function Ms({
6805
6805
  /* @__PURE__ */ e("div", { className: "h-8 w-8 rounded-full bg-white/90 border border-zinc-300 flex items-center justify-center", children: "›" })
6806
6806
  ] })
6807
6807
  ] }),
6808
- /* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-14 md:top-12 pointer-events-none mt-2", children: /* @__PURE__ */ e("div", { className: `flex ${z.chipGap} overflow-x-auto scrollbar-none`, children: h.map((E) => /* @__PURE__ */ e(Is, { label: E, active: E === u, size: d }, E)) }) }),
6808
+ /* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-14 md:top-12 pointer-events-none mt-2", children: /* @__PURE__ */ e("div", { className: `flex ${z.chipGap} overflow-x-auto scrollbar-none`, children: u.map((E) => /* @__PURE__ */ e(Is, { label: E, active: E === h, size: d }, E)) }) }),
6809
6809
  /* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-28 md:top-24 pointer-events-none", children: /* @__PURE__ */ n("div", { className: `flex items-center rounded-full bg-white dark:bg-zinc-900 shadow border border-zinc-200 dark:border-zinc-700 px-4 ${z.searchH}`, children: [
6810
6810
  /* @__PURE__ */ e("svg", { width: "18", height: "18", viewBox: "0 0 24 24", "aria-hidden": "true", className: "opacity-60", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M15.5 14h-.79l-.28-.27a6.471 6.471 0 001.48-4.23C15.91 6.01 13.4 3.5 10.45 3.5S5 6.01 5 9.5 7.5 15.5 10.45 15.5c1.61 0 3.09-.59 4.23-1.48l.27.28v.79l4.25 4.25c.41.41 1.07.41 1.48 0s.41-1.07 0-1.48L15.5 14Zm-5.05 0C8.01 14 6 11.99 6 9.5S8.01 5 10.45 5s4.45 2.01 4.45 4.5-2.01 4.5-4.45 4.5Z" }) }),
6811
6811
  /* @__PURE__ */ e("span", { className: "ml-2 text-zinc-500 dark:text-zinc-400", children: "Search places" })
@@ -6974,10 +6974,10 @@ function _s({
6974
6974
  identity: l = "_id",
6975
6975
  title: m = "Upcoming Events",
6976
6976
  events: o = Ls,
6977
- selectedIndex: h = 0,
6978
- ...u
6977
+ selectedIndex: u = 0,
6978
+ ...h
6979
6979
  }) {
6980
- const [N, y] = L(h), r = ce(t), v = de[r], d = Bs[r], g = o[N] || o[0], z = (E, O) => {
6980
+ const [N, y] = L(u), r = ce(t), v = de[r], d = Bs[r], g = o[N] || o[0], z = (E, O) => {
6981
6981
  y(O), i?.(E);
6982
6982
  }, A = r === "lg";
6983
6983
  return /* @__PURE__ */ n(
@@ -6989,7 +6989,7 @@ function _s({
6989
6989
  onSelect: i,
6990
6990
  identity: l,
6991
6991
  details: { type: "events", title: m, count: o?.length ?? 0 },
6992
- ...u,
6992
+ ...h,
6993
6993
  children: [
6994
6994
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between mb-4", children: [
6995
6995
  /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${v.title}`, children: m }),
@@ -7133,10 +7133,10 @@ const Us = [
7133
7133
  }
7134
7134
  };
7135
7135
  function qs({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin: m }) {
7136
- const o = (u) => {
7137
- u.stopPropagation(), l?.(t);
7138
- }, h = (u) => {
7139
- u.stopPropagation(), m?.(t);
7136
+ const o = (h) => {
7137
+ h.stopPropagation(), l?.(t);
7138
+ }, u = (h) => {
7139
+ h.stopPropagation(), m?.(t);
7140
7140
  };
7141
7141
  return /* @__PURE__ */ n(
7142
7142
  "div",
@@ -7156,7 +7156,7 @@ function qs({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
7156
7156
  /* @__PURE__ */ e(
7157
7157
  "button",
7158
7158
  {
7159
- onClick: h,
7159
+ onClick: u,
7160
7160
  className: "p-1 rounded hover:bg-zinc-200 dark:hover:bg-zinc-700 transition-colors duration-200",
7161
7161
  children: t.pinned ? /* @__PURE__ */ e(Sr, { className: "h-4 w-4 fill-blue-500 text-blue-500" }) : /* @__PURE__ */ e(Dr, { className: "h-4 w-4 text-zinc-400 group-hover:text-blue-500" })
7162
7162
  }
@@ -7189,16 +7189,16 @@ function Ys({
7189
7189
  identity: l = "_id",
7190
7190
  title: m = "0365 Mails",
7191
7191
  emails: o = Us,
7192
- selectedIndex: h = 0,
7193
- onStar: u,
7192
+ selectedIndex: u = 0,
7193
+ onStar: h,
7194
7194
  onPin: N,
7195
7195
  ...y
7196
7196
  }) {
7197
- const [r, v] = L(h), d = ce(t), g = de[d], z = Gs[d], A = (M, _) => {
7197
+ const [r, v] = L(u), d = ce(t), g = de[d], z = Gs[d], A = (M, _) => {
7198
7198
  v(_), i?.(M);
7199
7199
  }, E = (M) => {
7200
7200
  const _ = { ...M, starred: !M.starred };
7201
- u?.(_);
7201
+ h?.(_);
7202
7202
  }, O = (M) => {
7203
7203
  const _ = { ...M, pinned: !M.pinned };
7204
7204
  N?.(_);
@@ -7443,10 +7443,10 @@ function Qs({
7443
7443
  identity: l = "_id",
7444
7444
  title: m = "Directory",
7445
7445
  contacts: o = Ws,
7446
- selectedIndex: h = 0,
7447
- ...u
7446
+ selectedIndex: u = 0,
7447
+ ...h
7448
7448
  }) {
7449
- const [N, y] = L(h), r = ce(t), v = de[r], d = Js[r], g = (E, O) => {
7449
+ const [N, y] = L(u), r = ce(t), v = de[r], d = Js[r], g = (E, O) => {
7450
7450
  y(O), i?.(E);
7451
7451
  }, z = o[N] || o[0], A = d.layout === "split";
7452
7452
  return /* @__PURE__ */ n(
@@ -7458,7 +7458,7 @@ function Qs({
7458
7458
  onSelect: i,
7459
7459
  identity: l,
7460
7460
  details: { type: "directory", title: m, count: o?.length ?? 0 },
7461
- ...u,
7461
+ ...h,
7462
7462
  children: [
7463
7463
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between mb-4", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${v.title}`, children: m }) }),
7464
7464
  /* @__PURE__ */ e(Hs, { sizeMeta: d }),
@@ -7577,8 +7577,8 @@ function el({
7577
7577
  // content
7578
7578
  title: m = "Account Summary",
7579
7579
  termLabel: o = "Spring 2024",
7580
- balance: h = 3e3,
7581
- totalCharges: u = 4440,
7580
+ balance: u = 3e3,
7581
+ totalCharges: h = 4440,
7582
7582
  totalPayments: N = 1568,
7583
7583
  transactions: y = [
7584
7584
  {
@@ -7607,7 +7607,7 @@ function el({
7607
7607
  checkboxPosition: s,
7608
7608
  onSelect: i,
7609
7609
  identity: l,
7610
- details: { type: "account-summary", termLabel: o, balance: h, totalCharges: u, totalPayments: N },
7610
+ details: { type: "account-summary", termLabel: o, balance: u, totalCharges: h, totalPayments: N },
7611
7611
  ...r,
7612
7612
  children: [
7613
7613
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
@@ -7620,11 +7620,11 @@ function el({
7620
7620
  /* @__PURE__ */ n("div", { className: g.topGrid || g.grid, children: [
7621
7621
  /* @__PURE__ */ n("div", { className: "space-y-4", children: [
7622
7622
  /* @__PURE__ */ e("div", { className: "text-sm text-zinc-600 dark:text-zinc-400", children: "Account Balance" }),
7623
- /* @__PURE__ */ e("div", { className: g.balance, children: De(h) }),
7623
+ /* @__PURE__ */ e("div", { className: g.balance, children: De(u) }),
7624
7624
  !g.showTxns && /* @__PURE__ */ n("div", { className: g.totalsRow, children: [
7625
7625
  /* @__PURE__ */ n("div", { children: [
7626
7626
  /* @__PURE__ */ e("div", { className: "text-sm text-zinc-600 dark:text-zinc-400", children: "Total Charges" }),
7627
- /* @__PURE__ */ e("div", { className: "mt-1 font-semibold text-rose-600", children: De(u) })
7627
+ /* @__PURE__ */ e("div", { className: "mt-1 font-semibold text-rose-600", children: De(h) })
7628
7628
  ] }),
7629
7629
  /* @__PURE__ */ n("div", { children: [
7630
7630
  /* @__PURE__ */ e("div", { className: "text-sm text-zinc-600 dark:text-zinc-400", children: "Total Payments" }),
@@ -7636,7 +7636,7 @@ function el({
7636
7636
  /* @__PURE__ */ n("div", { className: g.totalsRow, children: [
7637
7637
  /* @__PURE__ */ n("div", { children: [
7638
7638
  /* @__PURE__ */ e("div", { className: "text-sm text-zinc-600 dark:text-zinc-400", children: "Total Charges" }),
7639
- /* @__PURE__ */ e("div", { className: "mt-1 font-semibold text-rose-600", children: De(u) })
7639
+ /* @__PURE__ */ e("div", { className: "mt-1 font-semibold text-rose-600", children: De(h) })
7640
7640
  ] }),
7641
7641
  /* @__PURE__ */ n("div", { children: [
7642
7642
  /* @__PURE__ */ e("div", { className: "text-sm text-zinc-600 dark:text-zinc-400", children: "Total Payments" }),
@@ -7769,9 +7769,9 @@ function al({
7769
7769
  identity: l = "_id",
7770
7770
  title: m = "Pay Stub and Leave Balance",
7771
7771
  term: o = "Fall 2025",
7772
- ...h
7772
+ ...u
7773
7773
  }) {
7774
- const [u, N] = L("vacation"), [y, r] = L(!1), v = ce(t), d = de[v], g = tl[v], z = qe.find((A) => A.id === u) || qe[0];
7774
+ const [h, N] = L("vacation"), [y, r] = L(!1), v = ce(t), d = de[v], g = tl[v], z = qe.find((A) => A.id === h) || qe[0];
7775
7775
  return /* @__PURE__ */ n(
7776
7776
  ie,
7777
7777
  {
@@ -7781,7 +7781,7 @@ function al({
7781
7781
  onSelect: i,
7782
7782
  identity: l,
7783
7783
  details: { type: "leave-balance", title: m },
7784
- ...h,
7784
+ ...u,
7785
7785
  children: [
7786
7786
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
7787
7787
  /* @__PURE__ */ n("div", { children: [
@@ -7810,7 +7810,7 @@ function al({
7810
7810
  g.showTabs && /* @__PURE__ */ e("div", { className: "flex border-b border-zinc-200 dark:border-zinc-800", children: qe.map((A) => /* @__PURE__ */ e(
7811
7811
  "button",
7812
7812
  {
7813
- className: `flex-1 py-2 px-4 text-center ${g.tab} font-medium border-b-2 transition-colors duration-200 ${u === A.id ? "border-blue-500 text-blue-600 dark:text-blue-400" : "border-transparent text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100"}`,
7813
+ className: `flex-1 py-2 px-4 text-center ${g.tab} font-medium border-b-2 transition-colors duration-200 ${h === A.id ? "border-blue-500 text-blue-600 dark:text-blue-400" : "border-transparent text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100"}`,
7814
7814
  onClick: () => N(A.id),
7815
7815
  children: A.name.split(" ")[0]
7816
7816
  },
@@ -7960,9 +7960,9 @@ function ll({
7960
7960
  identity: l = "_id",
7961
7961
  title: m = "Drive",
7962
7962
  subtitle: o = "Drive Shared",
7963
- ...h
7963
+ ...u
7964
7964
  }) {
7965
- const [u, N] = L(!1), y = ce(t), r = de[y], v = sl[y];
7965
+ const [h, N] = L(!1), y = ce(t), r = de[y], v = sl[y];
7966
7966
  return /* @__PURE__ */ n(
7967
7967
  ie,
7968
7968
  {
@@ -7972,7 +7972,7 @@ function ll({
7972
7972
  onSelect: i,
7973
7973
  identity: l,
7974
7974
  details: { type: "drive", title: m },
7975
- ...h,
7975
+ ...u,
7976
7976
  children: [
7977
7977
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between", children: [
7978
7978
  /* @__PURE__ */ n("div", { children: [
@@ -7984,11 +7984,11 @@ function ll({
7984
7984
  "button",
7985
7985
  {
7986
7986
  className: "flex items-center gap-1 p-2 text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100 hover:bg-zinc-100 dark:hover:bg-zinc-800 rounded-md transition-colors duration-200",
7987
- onClick: () => N(!u),
7987
+ onClick: () => N(!h),
7988
7988
  children: /* @__PURE__ */ e(Qt, { className: "h-4 w-4" })
7989
7989
  }
7990
7990
  ),
7991
- u && /* @__PURE__ */ n("div", { className: "absolute right-0 top-full mt-1 w-48 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md shadow-lg z-10 py-1", children: [
7991
+ h && /* @__PURE__ */ n("div", { className: "absolute right-0 top-full mt-1 w-48 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md shadow-lg z-10 py-1", children: [
7992
7992
  /* @__PURE__ */ n("button", { className: "w-full px-4 py-2 text-sm text-zinc-700 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-700 text-left flex items-center gap-2", children: [
7993
7993
  /* @__PURE__ */ e(na, { className: "h-4 w-4" }),
7994
7994
  "Download All"
@@ -8154,7 +8154,7 @@ const il = [
8154
8154
  }
8155
8155
  };
8156
8156
  function dl({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8157
- const [l, m] = L(!1), o = Da(t.type), h = cl(t.type);
8157
+ const [l, m] = L(!1), o = Da(t.type), u = cl(t.type);
8158
8158
  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: [
8159
8159
  /* @__PURE__ */ e(
8160
8160
  "button",
@@ -8164,7 +8164,7 @@ function dl({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8164
8164
  }
8165
8165
  ),
8166
8166
  /* @__PURE__ */ n("div", { className: "flex gap-3 pr-6", children: [
8167
- /* @__PURE__ */ e("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ e(h, { className: `h-4 w-4 ${o.icon}` }) }),
8167
+ /* @__PURE__ */ e("div", { className: "flex-shrink-0 mt-0.5", children: /* @__PURE__ */ e(u, { className: `h-4 w-4 ${o.icon}` }) }),
8168
8168
  /* @__PURE__ */ n("div", { className: "flex-grow min-w-0", children: [
8169
8169
  /* @__PURE__ */ e("div", { className: `${a.title} text-zinc-900 dark:text-zinc-100 mb-1 ${t.read ? "font-medium" : "font-semibold"}`, children: qt(t.title, a.maxTitleWords) }),
8170
8170
  a.showMessage && t.message && /* @__PURE__ */ e("div", { className: `${a.message} text-zinc-600 dark:text-zinc-400 mb-2 leading-relaxed`, children: qt(t.message, a.maxMessageWords) }),
@@ -8205,8 +8205,8 @@ function ul({
8205
8205
  identity: l = "_id",
8206
8206
  title: m = "Alerts",
8207
8207
  alerts: o = il,
8208
- showBanner: h = !0,
8209
- ...u
8208
+ showBanner: u = !0,
8209
+ ...h
8210
8210
  }) {
8211
8211
  const [N, y] = L(o), r = ce(t), v = de[r], d = ol[r], g = (E) => {
8212
8212
  y((O) => O.filter((M) => M.id !== E.id));
@@ -8220,10 +8220,10 @@ function ul({
8220
8220
  onSelect: i,
8221
8221
  identity: l,
8222
8222
  details: { type: "alerts", title: m, count: N.length },
8223
- ...u,
8223
+ ...h,
8224
8224
  children: [
8225
8225
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between ", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${v.title}`, children: m }) }),
8226
- h && z && t !== "sm" && /* @__PURE__ */ e(
8226
+ u && z && t !== "sm" && /* @__PURE__ */ e(
8227
8227
  ml,
8228
8228
  {
8229
8229
  alert: z,
@@ -8382,9 +8382,9 @@ function bl({
8382
8382
  identity: l = "_id",
8383
8383
  title: m = "Videos",
8384
8384
  videos: o = hl,
8385
- ...h
8385
+ ...u
8386
8386
  }) {
8387
- const [u, N] = L(!1), y = ce(t), r = de[y], v = pl[y];
8387
+ const [h, N] = L(!1), y = ce(t), r = de[y], v = pl[y];
8388
8388
  return /* @__PURE__ */ n(
8389
8389
  ie,
8390
8390
  {
@@ -8394,7 +8394,7 @@ function bl({
8394
8394
  onSelect: i,
8395
8395
  identity: l,
8396
8396
  details: { type: "videos", title: m, count: o.length },
8397
- ...h,
8397
+ ...u,
8398
8398
  children: [
8399
8399
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between ", children: [
8400
8400
  /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${r.title}`, children: m }),
@@ -8403,14 +8403,14 @@ function bl({
8403
8403
  "button",
8404
8404
  {
8405
8405
  className: "flex items-center gap-1 px-3 py-1.5 text-sm text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100 border border-zinc-300 dark:border-zinc-600 rounded-md transition-colors duration-200",
8406
- onClick: () => N(!u),
8406
+ onClick: () => N(!h),
8407
8407
  children: [
8408
8408
  "Filter",
8409
8409
  /* @__PURE__ */ e(fe, { className: "h-4 w-4 transform rotate-90" })
8410
8410
  ]
8411
8411
  }
8412
8412
  ),
8413
- u && /* @__PURE__ */ n("div", { className: "absolute right-0 top-full mt-1 w-48 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md shadow-lg z-10 py-1", children: [
8413
+ h && /* @__PURE__ */ n("div", { className: "absolute right-0 top-full mt-1 w-48 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md shadow-lg z-10 py-1", children: [
8414
8414
  /* @__PURE__ */ e("button", { className: "w-full px-4 py-2 text-sm text-zinc-700 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-700 text-left", children: "All Videos" }),
8415
8415
  /* @__PURE__ */ e("button", { className: "w-full px-4 py-2 text-sm text-zinc-700 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-700 text-left", children: "Campus Life" }),
8416
8416
  /* @__PURE__ */ e("button", { className: "w-full px-4 py-2 text-sm text-zinc-700 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-700 text-left", children: "Academic" }),