unifyedx-storybook-new 0.2.84 → 0.2.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,23 @@
1
1
  import { jsxs as n, jsx as e, Fragment as te } from "react/jsx-runtime";
2
2
  import ae, { useState as P, useMemo as ee, useId as He, Fragment as Z, useEffect as K, useCallback as H, useRef as he } from "react";
3
- import { a as Q, U as ot, X as ve, P as d, L as Ra, C as xe, b as et, D as ct, f as kt, d as Yt, F as Ia, e as Oa, h as Ma, T as Le, u as Pa, I as Wt, i as Jt, j as La, k as Ba, l as Va, m as Xt, S as ft, n as Qt, M as ja, o as _a, p as yt, q as Ua, A as Ga, E as Ht, r as qa, s as Ya, t as Wa, v as Ja, w as Zt, x as Xa, y as Qa, z as Ha, B as Za, G as Ka, H as er, J as Be, K as Ct, N as zt, O as tr, Q as Kt, R as ar, V as xt, W as rr, Y as nr, Z as Ve, _ as sr, $ as lr, a0 as ir, a1 as or, a2 as cr, a3 as dr, a4 as St, a5 as mr, a6 as ur, a7 as hr, a8 as pr, a9 as gr, aa as br, ab as fr, ac as yr, ad as xr, ae as Ae, af as ea, ag as vr, ah as Nr, ai as wr, aj as kr, ak as Cr, al as ta, am as zr, an as Sr, ao as aa, ap as Dr, aq as dt, ar as ra, as as $r } from "./vendor-DAjW_ynU.js";
4
- import { Popover as Tr, PopoverButton as Ar, PopoverPanel as Fr, Transition as be, Dialog as ye, TransitionChild as ke, DialogPanel as Fe, DialogTitle as tt, TabGroup as Er, TabList as Rr, Tab as ne, TabPanels as Ir, RadioGroup as Ge, Listbox as le, ListboxButton as Or, ListboxOptions as Mr, ListboxOption as Pr, SwitchGroup as Lr, Switch as lt, Menu as Br, MenuButton as Vr, Portal as jr, MenuItems as _r, MenuItem as Ur, DialogBackdrop as Gr } from "@headlessui/react";
3
+ import { a as Q, U as ot, X as ve, P as d, L as Ea, C as xe, b as et, D as ct, f as kt, d as Yt, F as Ra, e as Ia, h as Oa, T as Le, u as Ma, I as Wt, i as Jt, j as Pa, k as La, l as Ba, m as Xt, S as ft, n as Qt, M as Va, o as ja, p as yt, q as _a, A as Ua, E as Ht, r as Ga, s as qa, t as Ya, v as Wa, w as Zt, x as Ja, y as Xa, z as Qa, B as Ha, G as Za, H as Ka, J as Be, K as Ct, N as zt, O as er, Q as Kt, R as tr, V as xt, W as ar, Y as rr, Z as Ve, _ as nr, $ as sr, a0 as lr, a1 as ir, a2 as or, a3 as cr, a4 as St, a5 as dr, a6 as mr, a7 as ur, a8 as hr, a9 as pr, aa as gr, ab as br, ac as fr, ad as Ae, ae as ea, af as yr, ag as xr, ah as vr, ai as Nr, aj as wr, ak as ta, al as kr, am as Cr, an as aa, ao as zr, ap as dt, aq as ra, ar as Sr } from "./vendor-CU8ed0Ft.js";
4
+ import { Popover as Dr, PopoverButton as $r, PopoverPanel as Tr, Transition as be, Dialog as ye, TransitionChild as ke, DialogPanel as Fe, DialogTitle as tt, TabGroup as Ar, TabList as Fr, Tab as ne, TabPanels as Er, RadioGroup as Ge, Listbox as le, ListboxButton as Rr, ListboxOptions as Ir, ListboxOption as Or, SwitchGroup as Mr, Switch as lt, Menu as Pr, MenuButton as Lr, Portal as Br, MenuItems as Vr, MenuItem as jr, DialogBackdrop as _r } from "@headlessui/react";
5
5
  import { motion as ie, AnimatePresence as Se } from "framer-motion";
6
- import { d as qr } from "./vendor-lodash-B0mISAV-.js";
7
- import { useFloating as Yr, offset as Wr, flip as Jr, shift as Xr, autoUpdate as Qr } from "@floating-ui/react";
8
- import it, { debounce as Hr } from "lodash";
9
- import { ToastContainer as Zr, Slide as Kr, toast as Oe } from "react-toastify";
6
+ import { d as Ur } from "./vendor-lodash-BV9sr8Va.js";
7
+ import { useFloating as Gr, offset as qr, flip as Yr, shift as Wr, autoUpdate as Jr } from "@floating-ui/react";
8
+ import it, { debounce as Xr } from "lodash";
9
+ import { ToastContainer as Qr, Slide as Hr, toast as Oe } from "react-toastify";
10
10
  import "react-toastify/dist/ReactToastify.css";
11
- import { P as en, S as tn, a as an, F as rn, G as nn, b as sn, E as ln, c as on, C as cn, R as dn, d as mn, e as un, f as hn, g as pn, I as gn, h as Dt } from "./vendor-syncfusion-Ep1PWSou.js";
12
- const bn = (t) => {
11
+ import { P as Zr, S as Kr, a as en, F as tn, G as an, b as rn, E as nn, c as sn, C as ln, R as on, d as cn, e as dn, f as mn, g as un, I as hn, h as Dt } from "./vendor-syncfusion-Ep1PWSou.js";
12
+ const pn = (t) => {
13
13
  let a = 2166136261;
14
14
  for (let s = 0; s < t.length; s++)
15
15
  a ^= t.charCodeAt(s), a += (a << 1) + (a << 4) + (a << 7) + (a << 8) + (a << 24);
16
16
  return a >>> 0;
17
- }, fn = (t) => {
18
- const a = (t ?? "").trim().toLowerCase(), s = parseInt((a.match(/\d+$/) ?? [0])[0], 10) || 0, i = bn(a), l = (i % 360 + 37 * s) % 360, h = 55 + (i >>> 8) % 20, o = 30 + (i >>> 16) % 10, p = 86 + (i >>> 24) % 8, g = `hsl(${l}, ${h}%, ${p}%)`, v = `hsl(${l}, ${h}%, ${o}%)`;
17
+ }, gn = (t) => {
18
+ const a = (t ?? "").trim().toLowerCase(), s = parseInt((a.match(/\d+$/) ?? [0])[0], 10) || 0, i = pn(a), l = (i % 360 + 37 * s) % 360, h = 55 + (i >>> 8) % 20, o = 30 + (i >>> 16) % 10, p = 86 + (i >>> 24) % 8, g = `hsl(${l}, ${h}%, ${p}%)`, v = `hsl(${l}, ${h}%, ${o}%)`;
19
19
  return { bg: g, text: v };
20
- }, yn = (t = "") => t.split(" ").map((a) => a[0]).slice(0, 2).join("").toUpperCase(), we = ({
20
+ }, bn = (t = "") => t.split(" ").map((a) => a[0]).slice(0, 2).join("").toUpperCase(), we = ({
21
21
  src: t,
22
22
  name: a,
23
23
  size: s = "medium",
@@ -29,7 +29,7 @@ const bn = (t) => {
29
29
  className: h,
30
30
  ...o
31
31
  }) => {
32
- const [p, g] = P(!1), v = ee(() => fn(a), []), x = t && !p, r = !x && a, N = !x && !a, m = Q(
32
+ const [p, g] = P(!1), v = ee(() => gn(a), []), x = t && !p, r = !x && a, N = !x && !a, m = Q(
33
33
  "avatar-container",
34
34
  `avatar--size-${s}`,
35
35
  h
@@ -47,10 +47,10 @@ const bn = (t) => {
47
47
  onError: () => g(!0)
48
48
  }
49
49
  ),
50
- r && /* @__PURE__ */ e("span", { className: "avatar-initials", "aria-label": a, children: yn(a) }),
50
+ r && /* @__PURE__ */ e("span", { className: "avatar-initials", "aria-label": a, children: bn(a) }),
51
51
  N && /* @__PURE__ */ e("span", { className: "avatar-icon", children: /* @__PURE__ */ e(ot, {}) })
52
52
  ] });
53
- }, xn = ({ children: t, max: a = 4, truncatedMessage: s = "Members", ...i }) => {
53
+ }, fn = ({ children: t, max: a = 4, truncatedMessage: s = "Members", ...i }) => {
54
54
  const l = ae.Children.toArray(t), h = l.slice(0, a), o = l.length - a;
55
55
  return /* @__PURE__ */ n("div", { className: "avatar-group-container", ...i, children: [
56
56
  h,
@@ -61,7 +61,7 @@ const bn = (t) => {
61
61
  s
62
62
  ] })
63
63
  ] });
64
- }, Sl = ({
64
+ }, Cl = ({
65
65
  label: t,
66
66
  variant: a = "default",
67
67
  // 'default', 'primary', 'success', 'warning', 'danger'
@@ -99,7 +99,7 @@ const bn = (t) => {
99
99
  }
100
100
  )
101
101
  ] });
102
- }, vn = ({
102
+ }, yn = ({
103
103
  primary: t = !1,
104
104
  backgroundColor: a = null,
105
105
  size: s = "medium",
@@ -118,7 +118,7 @@ const bn = (t) => {
118
118
  }
119
119
  );
120
120
  };
121
- vn.propTypes = {
121
+ yn.propTypes = {
122
122
  /** Is this the principal call to action on the page? */
123
123
  primary: d.bool,
124
124
  /** What background color to use */
@@ -130,11 +130,11 @@ vn.propTypes = {
130
130
  /** Optional click handler */
131
131
  onClick: d.func
132
132
  };
133
- const Nn = {
133
+ const xn = {
134
134
  small: "btn-sm",
135
135
  medium: "btn-md",
136
136
  large: "btn-lg"
137
- }, wn = {
137
+ }, vn = {
138
138
  primary: "btn-primary",
139
139
  secondary: "btn-secondary"
140
140
  }, se = ({
@@ -162,8 +162,8 @@ const Nn = {
162
162
  }) => {
163
163
  const E = g || h, L = p && !x, j = Q(
164
164
  "btn-base",
165
- Nn[v],
166
- wn[o],
165
+ xn[v],
166
+ vn[o],
167
167
  {
168
168
  "is-loading": h,
169
169
  "btn-icon-only": L
@@ -181,7 +181,7 @@ const Nn = {
181
181
  title: a || L && i || (typeof x == "string" ? x : void 0),
182
182
  "aria-label": i || L && a || (typeof x == "string" ? x : void 0),
183
183
  ...D,
184
- children: h ? /* @__PURE__ */ e(Ra, { className: "loader-spin", "data-testid": "button-loader" }) : /* @__PURE__ */ n(te, { children: [
184
+ children: h ? /* @__PURE__ */ e(Ea, { className: "loader-spin", "data-testid": "button-loader" }) : /* @__PURE__ */ n(te, { children: [
185
185
  p && /* @__PURE__ */ e(p, { size: v === "large" ? 20 : 16, width: N || 16, height: m || 16, color: y || "#767676", strokeWidth: z || 2 }),
186
186
  x,
187
187
  r,
@@ -189,7 +189,7 @@ const Nn = {
189
189
  ] })
190
190
  }
191
191
  );
192
- }, kn = ({ crumbs: t = [], ...a }) => /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: "breadcrumbs-nav", ...a, children: /* @__PURE__ */ e("ol", { className: "breadcrumbs-list", children: t.map((s, i) => {
192
+ }, Nn = ({ crumbs: t = [], ...a }) => /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: "breadcrumbs-nav", ...a, children: /* @__PURE__ */ e("ol", { className: "breadcrumbs-list", children: t.map((s, i) => {
193
193
  const l = i === t.length - 1;
194
194
  return /* @__PURE__ */ n("li", { className: "breadcrumb-item", children: [
195
195
  /* @__PURE__ */ n(
@@ -252,7 +252,7 @@ const Nn = {
252
252
  ] }),
253
253
  s && /* @__PURE__ */ e("p", { className: "checkbox-error-message", children: s })
254
254
  ] });
255
- }, Cn = ({ children: t }) => /* @__PURE__ */ e(Tr, { className: "popover-container", children: t }), zn = ({ children: t }) => /* @__PURE__ */ e(Ar, { as: "div", children: t }), Sn = ({ children: t, className: a }) => /* @__PURE__ */ e(Fr, { className: `popover-panel ${a || ""}`, children: t }), na = ct, sa = ({
255
+ }, wn = ({ children: t }) => /* @__PURE__ */ e(Dr, { className: "popover-container", children: t }), kn = ({ children: t }) => /* @__PURE__ */ e($r, { as: "div", children: t }), Cn = ({ children: t, className: a }) => /* @__PURE__ */ e(Tr, { className: `popover-panel ${a || ""}`, children: t }), na = ct, sa = ({
256
256
  value: t,
257
257
  onChange: a,
258
258
  onClear: s,
@@ -280,7 +280,7 @@ const Nn = {
280
280
  }
281
281
  ),
282
282
  h && /* @__PURE__ */ e("p", { className: "datepicker-error-message", children: h })
283
- ] }), Dn = ({
283
+ ] }), zn = ({
284
284
  value: t,
285
285
  onChange: a,
286
286
  onClear: s,
@@ -300,8 +300,8 @@ const Nn = {
300
300
  ] }) : /* @__PURE__ */ e("span", { className: "datepicker-placeholder", children: i });
301
301
  return /* @__PURE__ */ n("div", { className: Q("datepicker-wrapper", p), children: [
302
302
  l && /* @__PURE__ */ e("label", { className: "datepicker-label", htmlFor: "daterangepicker-input", children: l }),
303
- /* @__PURE__ */ n(Cn, { children: [
304
- /* @__PURE__ */ e(zn, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "datepicker-input-container", children: [
303
+ /* @__PURE__ */ n(wn, { children: [
304
+ /* @__PURE__ */ e(kn, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "datepicker-input-container", children: [
305
305
  /* @__PURE__ */ n(
306
306
  "button",
307
307
  {
@@ -330,7 +330,7 @@ const Nn = {
330
330
  }
331
331
  )
332
332
  ] }) }),
333
- /* @__PURE__ */ e(Sn, { className: "datepicker-popover-content", align: "start", children: /* @__PURE__ */ e(
333
+ /* @__PURE__ */ e(Cn, { className: "datepicker-popover-content", align: "start", children: /* @__PURE__ */ e(
334
334
  na,
335
335
  {
336
336
  asSingle: !0,
@@ -347,7 +347,7 @@ const Nn = {
347
347
  ] }),
348
348
  h && /* @__PURE__ */ e("p", { className: "datepicker-error-message", children: h })
349
349
  ] });
350
- }, $n = {
350
+ }, Sn = {
351
351
  // Documents
352
352
  doc: {
353
353
  type: "document",
@@ -563,9 +563,9 @@ const Nn = {
563
563
  View: "view",
564
564
  Manage: "edit"
565
565
  }, Tt = ({ extension: t, size: a = 36 }) => {
566
- const s = (t || "").toLowerCase(), i = $n[s];
566
+ const s = (t || "").toLowerCase(), i = Sn[s];
567
567
  return i ? /* @__PURE__ */ e("div", { style: { width: a }, className: "flex-shrink-0", children: /* @__PURE__ */ e(
568
- Ia,
568
+ Ra,
569
569
  {
570
570
  extension: s,
571
571
  ...i,
@@ -581,14 +581,14 @@ const Nn = {
581
581
  {
582
582
  style: { width: a, height: a },
583
583
  className: "flex items-center justify-center bg-gray-100 rounded-sm border border-gray-300",
584
- children: /* @__PURE__ */ e(Oa, { className: "text-gray-400", size: a * 0.75 })
584
+ children: /* @__PURE__ */ e(Ia, { className: "text-gray-400", size: a * 0.75 })
585
585
  }
586
586
  );
587
- }, Tn = (t) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: t.width || 24, height: t.height || 24, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ e("path", { d: "M20 12H4M4 12L10 18M4 12L10 6", stroke: "#767676", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), At = (t, a = 2) => {
587
+ }, Dn = (t) => /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: t.width || 24, height: t.height || 24, viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ e("path", { d: "M20 12H4M4 12L10 18M4 12L10 6", stroke: "#767676", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), At = (t, a = 2) => {
588
588
  if (!+t) return "0 Bytes";
589
589
  const s = 1024, i = a < 0 ? 0 : a, l = ["Bytes", "KB", "MB", "GB", "TB"], h = Math.floor(Math.log(t) / Math.log(s));
590
590
  return `${parseFloat((t / Math.pow(s, h)).toFixed(i))} ${l[h]}`;
591
- }, Dl = ({
591
+ }, zl = ({
592
592
  // --- Modal Control ---
593
593
  isOpen: t,
594
594
  onClose: a,
@@ -667,7 +667,7 @@ const Nn = {
667
667
  {
668
668
  className: `dropzone-ui ${l ? "dropzone-ui--active" : ""}`,
669
669
  children: [
670
- /* @__PURE__ */ e(Ma, { size: 48, className: "text-gray-400" }),
670
+ /* @__PURE__ */ e(Oa, { size: 48, className: "text-gray-400" }),
671
671
  /* @__PURE__ */ e("p", { children: "Drag and drop files here" }),
672
672
  /* @__PURE__ */ e("p", { className: "sub-heading", children: y }),
673
673
  /* @__PURE__ */ e("hr", {}),
@@ -793,13 +793,13 @@ const Nn = {
793
793
  }, ht = (t) => {
794
794
  const a = new Date(t), s = a.getDay(), i = a.getDate() - s;
795
795
  return je(new Date(a.setDate(i)));
796
- }, An = (t) => _e(ut(ht(t), 6)), Ft = (t) => {
796
+ }, $n = (t) => _e(ut(ht(t), 6)), Ft = (t) => {
797
797
  const a = new Date(t);
798
798
  return je(new Date(a.getFullYear(), a.getMonth(), 1));
799
799
  }, Et = (t) => {
800
800
  const a = new Date(t);
801
801
  return _e(new Date(a.getFullYear(), a.getMonth() + 1, 0));
802
- }, Fn = (t) => {
802
+ }, Tn = (t) => {
803
803
  const a = /* @__PURE__ */ new Date();
804
804
  switch (t) {
805
805
  case "anytime":
@@ -807,7 +807,7 @@ const Nn = {
807
807
  case "today":
808
808
  return [je(a), _e(a)];
809
809
  case "this_week":
810
- return [ht(a), An(a)];
810
+ return [ht(a), $n(a)];
811
811
  case "last_week": {
812
812
  const s = ut(ht(a), -7);
813
813
  return [je(s), _e(ut(s, 6))];
@@ -821,7 +821,7 @@ const Nn = {
821
821
  default:
822
822
  return [null, null];
823
823
  }
824
- }, $l = ({
824
+ }, Sl = ({
825
825
  isOpen: t,
826
826
  onClose: a,
827
827
  onApplyFilters: s,
@@ -842,7 +842,7 @@ const Nn = {
842
842
  startDate: null
843
843
  }), [y, z] = P({
844
844
  endDate: null
845
- }), $ = Pa({
845
+ }), $ = Ma({
846
846
  initialValues: JSON.parse(JSON.stringify(h)),
847
847
  // Deep copy
848
848
  onSubmit: (T) => {
@@ -1061,7 +1061,7 @@ const Nn = {
1061
1061
  $.setFieldValue(`${T}.range`, "custom");
1062
1062
  return;
1063
1063
  }
1064
- const [G, W] = Fn(F);
1064
+ const [G, W] = Tn(F);
1065
1065
  $.setFieldValue(`${T}.values`, G && W ? [G, W] : []), $.setFieldValue(`${T}.range`, F);
1066
1066
  };
1067
1067
  return /* @__PURE__ */ n("div", { className: "filter-panel-content", children: [
@@ -1210,7 +1210,7 @@ const Nn = {
1210
1210
  ] }),
1211
1211
  /* @__PURE__ */ n("form", { onSubmit: $.handleSubmit, className: "filter-form", children: [
1212
1212
  /* @__PURE__ */ e("div", { className: "filter-content-wrapper", children: /* @__PURE__ */ n(
1213
- Er,
1213
+ Ar,
1214
1214
  {
1215
1215
  vertical: !0,
1216
1216
  onChange: U,
@@ -1219,7 +1219,7 @@ const Nn = {
1219
1219
  flexGrow: 1
1220
1220
  },
1221
1221
  children: [
1222
- /* @__PURE__ */ e(Rr, { className: "filter-tabs-list", children: l.map((T) => /* @__PURE__ */ n(ne, { className: "filter-tab-item", children: [
1222
+ /* @__PURE__ */ e(Fr, { className: "filter-tabs-list", children: l.map((T) => /* @__PURE__ */ n(ne, { className: "filter-tab-item", children: [
1223
1223
  /* @__PURE__ */ e("div", { className: "filter-selection-horizontal-indicator" }),
1224
1224
  /* @__PURE__ */ n("div", { className: "filter-lbl-indicator-wrapper", children: [
1225
1225
  T.label,
@@ -1232,7 +1232,7 @@ const Nn = {
1232
1232
  )
1233
1233
  ] })
1234
1234
  ] }, T.key)) }),
1235
- /* @__PURE__ */ e(Ir, { className: "filter-tabs-panels", children: l.map((T) => /* @__PURE__ */ e(
1235
+ /* @__PURE__ */ e(Er, { className: "filter-tabs-panels", children: l.map((T) => /* @__PURE__ */ e(
1236
1236
  ne.Panel,
1237
1237
  {
1238
1238
  className: "filter-tab-panel",
@@ -1332,7 +1332,7 @@ const Nn = {
1332
1332
  iconClass: "icon--info",
1333
1333
  primaryButtonCategory: "primary"
1334
1334
  }
1335
- }, En = ({
1335
+ }, An = ({
1336
1336
  isOpen: t,
1337
1337
  onClose: a,
1338
1338
  title: s,
@@ -1410,7 +1410,7 @@ const Nn = {
1410
1410
  }
1411
1411
  ) })
1412
1412
  ] }) });
1413
- }, Tl = ({
1413
+ }, Dl = ({
1414
1414
  currentPage: t,
1415
1415
  totalItems: a,
1416
1416
  itemsPerPage: s,
@@ -1456,7 +1456,7 @@ const Nn = {
1456
1456
  className: "pagination-button",
1457
1457
  onClick: () => i(1),
1458
1458
  disabled: t === 1,
1459
- children: /* @__PURE__ */ e(La, { size: 16 })
1459
+ children: /* @__PURE__ */ e(Pa, { size: 16 })
1460
1460
  }
1461
1461
  ),
1462
1462
  /* @__PURE__ */ e(
@@ -1465,7 +1465,7 @@ const Nn = {
1465
1465
  className: "pagination-button",
1466
1466
  onClick: () => i(t - 1),
1467
1467
  disabled: t === 1,
1468
- children: /* @__PURE__ */ e(Ba, { size: 16 })
1468
+ children: /* @__PURE__ */ e(La, { size: 16 })
1469
1469
  }
1470
1470
  ),
1471
1471
  /* @__PURE__ */ n("form", { onSubmit: r, className: "page-input-form", children: [
@@ -1501,7 +1501,7 @@ const Nn = {
1501
1501
  className: "pagination-button",
1502
1502
  onClick: () => i(o),
1503
1503
  disabled: t === o,
1504
- children: /* @__PURE__ */ e(Va, { size: 16 })
1504
+ children: /* @__PURE__ */ e(Ba, { size: 16 })
1505
1505
  }
1506
1506
  )
1507
1507
  ] })
@@ -1571,7 +1571,7 @@ const Nn = {
1571
1571
  N(t);
1572
1572
  }, [t]);
1573
1573
  const m = H(
1574
- qr((z) => {
1574
+ Ur((z) => {
1575
1575
  a?.(z);
1576
1576
  }, s),
1577
1577
  [s, a]
@@ -1631,7 +1631,7 @@ const Nn = {
1631
1631
  t && /* @__PURE__ */ e("label", { className: "select-label", children: t }),
1632
1632
  /* @__PURE__ */ n("div", { className: "select-button-container", children: [
1633
1633
  /* @__PURE__ */ n(
1634
- Or,
1634
+ Rr,
1635
1635
  {
1636
1636
  className: Q("select-button", {
1637
1637
  "select-button--error": !!o
@@ -1648,7 +1648,7 @@ const Nn = {
1648
1648
  leave: "transition ease-in duration-100",
1649
1649
  leaveFrom: "opacity-100",
1650
1650
  leaveTo: "opacity-0",
1651
- children: /* @__PURE__ */ n(Mr, { className: "select-options", children: [
1651
+ children: /* @__PURE__ */ n(Ir, { className: "select-options", children: [
1652
1652
  g && /* @__PURE__ */ e("div", { className: "search-input-wrapper", children: /* @__PURE__ */ e(
1653
1653
  fe,
1654
1654
  {
@@ -1661,7 +1661,7 @@ const Nn = {
1661
1661
  }
1662
1662
  ) }),
1663
1663
  /* @__PURE__ */ e("div", { className: "select-options-list", children: r.length === 0 && v !== "" ? /* @__PURE__ */ e("div", { className: "no-results", children: "No results found." }) : r.map((m) => /* @__PURE__ */ e(
1664
- Pr,
1664
+ Or,
1665
1665
  {
1666
1666
  className: ({ active: y }) => `select-option ${y ? "active" : ""}`,
1667
1667
  value: m,
@@ -1693,7 +1693,7 @@ const Nn = {
1693
1693
  ] }),
1694
1694
  o && /* @__PURE__ */ e("p", { className: "select-error-message", children: o })
1695
1695
  ] }) });
1696
- }, Rn = () => {
1696
+ }, Fn = () => {
1697
1697
  const [t, a] = P(window.location.pathname);
1698
1698
  return K(() => {
1699
1699
  const s = () => {
@@ -1709,7 +1709,7 @@ const Nn = {
1709
1709
  return s;
1710
1710
  return null;
1711
1711
  }, ia = ({ item: t, isCollapsed: a, level: s = 0 }) => {
1712
- const { pathname: i } = Rn(), l = t.href || t.url || t.path, [h, o] = P(!1), p = t.icon;
1712
+ const { pathname: i } = Fn(), l = t.href || t.url || t.path, [h, o] = P(!1), p = t.icon;
1713
1713
  K(() => {
1714
1714
  gt([t], i) && o(!0);
1715
1715
  }, [t, i]);
@@ -1780,7 +1780,7 @@ const Nn = {
1780
1780
  ]
1781
1781
  }
1782
1782
  );
1783
- }, Al = ({
1783
+ }, $l = ({
1784
1784
  navItems: t = [],
1785
1785
  isCollapsed: a = !1,
1786
1786
  onToggleCollapse: s,
@@ -1827,7 +1827,7 @@ const Nn = {
1827
1827
  onClick: s,
1828
1828
  className: "collapse-button desktop-only",
1829
1829
  "aria-label": a ? "Expand sidebar" : "Collapse sidebar",
1830
- children: a ? /* @__PURE__ */ e(ja, {}) : /* @__PURE__ */ e(ve, {})
1830
+ children: a ? /* @__PURE__ */ e(Va, {}) : /* @__PURE__ */ e(ve, {})
1831
1831
  }
1832
1832
  )
1833
1833
  ] }),
@@ -1844,7 +1844,7 @@ const Nn = {
1844
1844
  className: "logout-button",
1845
1845
  "aria-label": "Log out",
1846
1846
  onClick: () => console.log("Logout clicked"),
1847
- children: /* @__PURE__ */ e(_a, {})
1847
+ children: /* @__PURE__ */ e(ja, {})
1848
1848
  }
1849
1849
  )
1850
1850
  ] })
@@ -1884,7 +1884,7 @@ const Nn = {
1884
1884
  ]
1885
1885
  }
1886
1886
  );
1887
- }, Fl = ({ label: t = "Loading..." }) => /* @__PURE__ */ e("div", { className: "fullscreen-loader-overlay", role: "alert", "aria-busy": "true", children: /* @__PURE__ */ n("div", { className: "loader-content", children: [
1887
+ }, Tl = ({ label: t = "Loading..." }) => /* @__PURE__ */ e("div", { className: "fullscreen-loader-overlay", role: "alert", "aria-busy": "true", children: /* @__PURE__ */ n("div", { className: "loader-content", children: [
1888
1888
  /* @__PURE__ */ e(oa, { size: "large" }),
1889
1889
  t && /* @__PURE__ */ e("span", { className: "loader-label", children: t })
1890
1890
  ] }) }), ca = ({
@@ -1936,7 +1936,7 @@ const Nn = {
1936
1936
  labelStyle: h = "",
1937
1937
  ...o
1938
1938
  }) => /* @__PURE__ */ n("div", { className: "switch-container", children: [
1939
- /* @__PURE__ */ n(Lr, { as: "div", className: "switch-group", children: [
1939
+ /* @__PURE__ */ n(Mr, { as: "div", className: "switch-group", children: [
1940
1940
  t && i === "left" && /* @__PURE__ */ e(lt.Label, { className: "switch-label", passive: !0, children: t }),
1941
1941
  /* @__PURE__ */ e(
1942
1942
  lt,
@@ -1954,7 +1954,7 @@ const Nn = {
1954
1954
  t && i === "right" && /* @__PURE__ */ e(lt.Label, { className: `switch-label ${h}`, passive: !0, children: t })
1955
1955
  ] }),
1956
1956
  l && /* @__PURE__ */ e("p", { className: "switch-error-message", children: l })
1957
- ] }), El = ({
1957
+ ] }), Al = ({
1958
1958
  children: t,
1959
1959
  content: a,
1960
1960
  variant: s = "dark",
@@ -1971,7 +1971,7 @@ const Nn = {
1971
1971
  return /* @__PURE__ */ n(te, { children: [
1972
1972
  ae.cloneElement(t, { "data-tooltip-id": p }),
1973
1973
  /* @__PURE__ */ e(
1974
- Ua,
1974
+ _a,
1975
1975
  {
1976
1976
  id: p,
1977
1977
  content: a,
@@ -1982,7 +1982,7 @@ const Nn = {
1982
1982
  }
1983
1983
  )
1984
1984
  ] });
1985
- }, In = {
1985
+ }, En = {
1986
1986
  enter: (t) => ({
1987
1987
  x: t > 0 ? "100%" : "-100%",
1988
1988
  opacity: 0
@@ -1995,7 +1995,7 @@ const Nn = {
1995
1995
  x: t < 0 ? "100%" : "-100%",
1996
1996
  opacity: 0
1997
1997
  })
1998
- }, Rl = ({
1998
+ }, Fl = ({
1999
1999
  isOpen: t,
2000
2000
  onClose: a,
2001
2001
  steps: s = {},
@@ -2048,7 +2048,7 @@ const Nn = {
2048
2048
  onClick: h.onBack,
2049
2049
  className: "wizard-back-button",
2050
2050
  "aria-label": "Go back to previous step",
2051
- children: /* @__PURE__ */ e(Ga, { size: 20 })
2051
+ children: /* @__PURE__ */ e(Ua, { size: 20 })
2052
2052
  }
2053
2053
  ),
2054
2054
  /* @__PURE__ */ n("div", { className: "wizard-header-text", children: [
@@ -2083,7 +2083,7 @@ const Nn = {
2083
2083
  ie.div,
2084
2084
  {
2085
2085
  custom: l,
2086
- variants: In,
2086
+ variants: En,
2087
2087
  initial: "enter",
2088
2088
  animate: "center",
2089
2089
  exit: "exit",
@@ -2106,11 +2106,11 @@ const Nn = {
2106
2106
  ]
2107
2107
  }
2108
2108
  ) });
2109
- }, On = {
2109
+ }, Rn = {
2110
2110
  small: "btn-sm",
2111
2111
  medium: "btn-md",
2112
2112
  large: "btn-lg"
2113
- }, Mn = {
2113
+ }, In = {
2114
2114
  primary: "btn-primary",
2115
2115
  secondary: "btn-secondary-icon"
2116
2116
  }, Ce = ({
@@ -2134,8 +2134,8 @@ const Nn = {
2134
2134
  const m = p, y = Q(
2135
2135
  "btn-base-icon",
2136
2136
  "btn-icon-only",
2137
- On[g],
2138
- Mn[h],
2137
+ Rn[g],
2138
+ In[h],
2139
2139
  l
2140
2140
  );
2141
2141
  return /* @__PURE__ */ e(
@@ -2152,7 +2152,7 @@ const Nn = {
2152
2152
  children: o && /* @__PURE__ */ e(o, { size: g === "large" ? 20 : 16 })
2153
2153
  }
2154
2154
  );
2155
- }, Il = ({
2155
+ }, El = ({
2156
2156
  content: t,
2157
2157
  isFooter: a = !1,
2158
2158
  footerContent: s,
@@ -2199,7 +2199,7 @@ const Nn = {
2199
2199
  )
2200
2200
  ] }) })
2201
2201
  ] });
2202
- }, Pn = ({
2202
+ }, On = ({
2203
2203
  heading: t,
2204
2204
  subHeading: a,
2205
2205
  breadcrumbItems: s = [],
@@ -2215,25 +2215,25 @@ const Nn = {
2215
2215
  className: "page-header-back-button",
2216
2216
  "aria-label": "Go back",
2217
2217
  onClick: l,
2218
- children: /* @__PURE__ */ e(Tn, { width: 30, height: 30 })
2218
+ children: /* @__PURE__ */ e(Dn, { width: 30, height: 30 })
2219
2219
  }
2220
2220
  ),
2221
2221
  /* @__PURE__ */ n("div", { className: "page-header-content", children: [
2222
2222
  /* @__PURE__ */ e("h1", { className: "page-header-heading", children: t }),
2223
- s.length > 1 ? /* @__PURE__ */ e(kn, { crumbs: s }) : a ? /* @__PURE__ */ e("p", { className: "page-header-subheading", children: a }) : null
2223
+ s.length > 1 ? /* @__PURE__ */ e(Nn, { crumbs: s }) : a ? /* @__PURE__ */ e("p", { className: "page-header-subheading", children: a }) : null
2224
2224
  ] })
2225
- ] }), Ln = ({
2225
+ ] }), Mn = ({
2226
2226
  options: t = [],
2227
2227
  onSelect: a,
2228
2228
  triggerIcon: s = Ht
2229
2229
  }) => {
2230
- const { refs: i, floatingStyles: l } = Yr({
2231
- whileElementsMounted: Qr,
2232
- middleware: [Wr(5), Jr(), Xr({ padding: 5 })]
2230
+ const { refs: i, floatingStyles: l } = Gr({
2231
+ whileElementsMounted: Jr,
2232
+ middleware: [qr(5), Yr(), Wr({ padding: 5 })]
2233
2233
  });
2234
- return /* @__PURE__ */ n(Br, { as: "div", className: "options-menu-wrapper", children: [
2235
- /* @__PURE__ */ e(Vr, { ref: i.setReference, className: "options-menu-trigger", children: /* @__PURE__ */ e(s, { size: 20 }) }),
2236
- /* @__PURE__ */ e(jr, { children: /* @__PURE__ */ e(
2234
+ return /* @__PURE__ */ n(Pr, { as: "div", className: "options-menu-wrapper", children: [
2235
+ /* @__PURE__ */ e(Lr, { ref: i.setReference, className: "options-menu-trigger", children: /* @__PURE__ */ e(s, { size: 20 }) }),
2236
+ /* @__PURE__ */ e(Br, { children: /* @__PURE__ */ e(
2237
2237
  be,
2238
2238
  {
2239
2239
  as: Z,
@@ -2244,14 +2244,14 @@ const Nn = {
2244
2244
  leaveFrom: "transform opacity-100 scale-100",
2245
2245
  leaveTo: "transform opacity-0 scale-95",
2246
2246
  children: /* @__PURE__ */ e(
2247
- _r,
2247
+ Vr,
2248
2248
  {
2249
2249
  ref: i.setFloating,
2250
2250
  style: l,
2251
2251
  className: "options-menu-panel",
2252
2252
  children: t.map((h) => /* @__PURE__ */ n("div", { className: "options-menu-item-wrapper", children: [
2253
2253
  h.dividerBefore && /* @__PURE__ */ e("div", { className: "menu-divider" }),
2254
- /* @__PURE__ */ e(Ur, { children: ({ active: o }) => /* @__PURE__ */ n(
2254
+ /* @__PURE__ */ e(jr, { children: ({ active: o }) => /* @__PURE__ */ n(
2255
2255
  "button",
2256
2256
  {
2257
2257
  onClick: () => a(h),
@@ -2270,14 +2270,14 @@ const Nn = {
2270
2270
  ) })
2271
2271
  ] });
2272
2272
  };
2273
- function Bn(t) {
2273
+ function Pn(t) {
2274
2274
  try {
2275
2275
  return typeof t == "string" ? t : JSON.stringify(t);
2276
2276
  } catch {
2277
2277
  return "";
2278
2278
  }
2279
2279
  }
2280
- function Vn(t) {
2280
+ function Ln(t) {
2281
2281
  try {
2282
2282
  return JSON.parse(t);
2283
2283
  } catch {
@@ -2290,13 +2290,13 @@ function ma(t) {
2290
2290
  * Get an item (parsed if JSON).
2291
2291
  */
2292
2292
  get(a) {
2293
- return Vn(t.getItem(a));
2293
+ return Ln(t.getItem(a));
2294
2294
  },
2295
2295
  /**
2296
2296
  * Set an item (string or object).
2297
2297
  */
2298
2298
  set(a, s) {
2299
- t.setItem(a, Bn(s));
2299
+ t.setItem(a, Pn(s));
2300
2300
  },
2301
2301
  /**
2302
2302
  * Delete/remove an item.
@@ -2323,7 +2323,7 @@ function ma(t) {
2323
2323
  }
2324
2324
  };
2325
2325
  }
2326
- const jn = ma(localStorage), Ol = ma(sessionStorage), Ml = {
2326
+ const Bn = ma(localStorage), Rl = ma(sessionStorage), Il = {
2327
2327
  get(t) {
2328
2328
  const a = document.cookie.match(
2329
2329
  new RegExp("(^| )" + t + "=([^;]+)")
@@ -2349,61 +2349,60 @@ const jn = ma(localStorage), Ol = ma(sessionStorage), Ml = {
2349
2349
  const t = this.all();
2350
2350
  Object.keys(t).forEach((a) => this.remove(a));
2351
2351
  }
2352
- }, ua = () => typeof window < "u";
2352
+ };
2353
2353
  function vt() {
2354
- return ua() ? window.location.hostname === "localhost" ? "https://dev.unifyed.com" : `${window.location.protocol}//${window.location.hostname}` : "https://dev.unifyed.com";
2354
+ return window.location.hostname === "localhost" ? "https://dev.unifyed.com" : `${window.location.protocol}//${window.location.hostname}`;
2355
2355
  }
2356
- function _n() {
2357
- if (!ua()) return "";
2356
+ function Vn() {
2358
2357
  try {
2359
- const t = jn.get("userProfile");
2360
- return !t && window.location.hostname === "localhost" ? "/unifyd-gateway/api" : (t && typeof t == "object" ? t : {})?.gatewaypath ?? "";
2358
+ const t = Bn.get("userProfile");
2359
+ return !t && window.location.hostname === "localhost" ? "/unifyd-gateway/api" : (t || {})?.gatewaypath ?? "";
2361
2360
  } catch {
2362
2361
  return "";
2363
2362
  }
2364
2363
  }
2365
2364
  function $e() {
2366
- return `${vt()}${_n()}`;
2365
+ return `${vt()}${Vn()}`;
2367
2366
  }
2368
- function ha() {
2367
+ function ua() {
2369
2368
  return `${$e()}/unifyedstudioutility/commonutility/users/list?sortkey=firstName&sortorder=false&page=0&size=999&onlineusersonly=false`;
2370
2369
  }
2371
- function pa() {
2370
+ function ha() {
2372
2371
  return `${$e()}/unifyedstudioutility/commonutility/groupusers/list?type=All&page=0&size=20&sortkey=name&sorder=1&createdbyme=false`;
2373
2372
  }
2374
- function ga() {
2373
+ function pa() {
2375
2374
  return `${$e()}/unifyedusergroupprovisioning/api`;
2376
2375
  }
2377
- function ba() {
2378
- return `${ga()}/v2/roles`;
2376
+ function ga() {
2377
+ return `${pa()}/v2/roles`;
2379
2378
  }
2380
- function fa() {
2381
- return `${ba()}/search`;
2379
+ function ba() {
2380
+ return `${ga()}/search`;
2382
2381
  }
2383
2382
  function Nt() {
2384
2383
  return `${$e()}/unifyed-mydrive/v2`;
2385
2384
  }
2386
- function Un() {
2385
+ function jn() {
2387
2386
  return `${Nt()}/directory/permissions`;
2388
2387
  }
2389
- function Gn() {
2388
+ function _n() {
2390
2389
  return `${Nt()}/file/permissions`;
2391
2390
  }
2392
- function Pl() {
2391
+ function Ol() {
2393
2392
  return Object.freeze({
2394
2393
  REACT_APP_BASE_URL: vt(),
2395
2394
  GATEWAY_BASE: $e(),
2396
- USER_SEARCH_BASE: ha(),
2397
- AD_GROUPS_LIST_SEARCH_API: pa(),
2398
- PROVISIONING_BASE: ga(),
2399
- RBAC_BASE: ba(),
2400
- SEARCH_ROLES_API: fa(),
2395
+ USER_SEARCH_BASE: ua(),
2396
+ AD_GROUPS_LIST_SEARCH_API: ha(),
2397
+ PROVISIONING_BASE: pa(),
2398
+ RBAC_BASE: ga(),
2399
+ SEARCH_ROLES_API: ba(),
2401
2400
  MY_DRIVE_GATEWAY_BASE_v2: Nt(),
2402
- DIRECTORY_PERMISSIONS_API: Un(),
2403
- FILE_PERMISSIONS_API: Gn()
2401
+ DIRECTORY_PERMISSIONS_API: jn(),
2402
+ FILE_PERMISSIONS_API: _n()
2404
2403
  });
2405
2404
  }
2406
- function qn(t) {
2405
+ function Un(t) {
2407
2406
  try {
2408
2407
  const a = localStorage.getItem(t);
2409
2408
  return a ? JSON.parse(a) : null;
@@ -2412,7 +2411,7 @@ function qn(t) {
2412
2411
  }
2413
2412
  }
2414
2413
  function It() {
2415
- const t = qn("userProfile") || {}, a = localStorage.getItem("access_token") || t.accessToken || "", s = localStorage.getItem("siteId") || t.siteId || "", i = t.tenant || "", l = t.tenantdomain || "", h = t.username || t.displayName || "", o = t.email || "";
2414
+ const t = Un("userProfile") || {}, a = localStorage.getItem("access_token") || t.accessToken || "", s = localStorage.getItem("siteId") || t.siteId || "", i = t.tenant || "", l = t.tenantdomain || "", h = t.username || t.displayName || "", o = t.email || "";
2416
2415
  return {
2417
2416
  Authorization: a ? `Bearer ${a}` : void 0,
2418
2417
  "x-tenant-id": i || void 0,
@@ -2423,7 +2422,7 @@ function It() {
2423
2422
  "x-user-email": o || void 0
2424
2423
  };
2425
2424
  }
2426
- function Yn(t) {
2425
+ function Gn(t) {
2427
2426
  if (t && t.isAxiosError) {
2428
2427
  const { response: a, config: s, message: i } = t, l = a?.status ?? null, h = a?.statusText ?? null, o = a?.data ?? null, p = typeof o == "string" && o || o?.message || o?.msg || o?.error || o?.errors?.[0]?.message || null;
2429
2428
  return {
@@ -2451,11 +2450,11 @@ function Yn(t) {
2451
2450
  request: null
2452
2451
  };
2453
2452
  }
2454
- function Wn({
2453
+ function qn({
2455
2454
  enableAuthRedirect: t = !0,
2456
2455
  defaultOpenHeaders: a = {}
2457
2456
  } = {}) {
2458
- const s = qa.create({
2457
+ const s = Ga.create({
2459
2458
  baseURL: vt()
2460
2459
  // ✅ base URL here
2461
2460
  // You can set general timeouts/etc. here
@@ -2466,7 +2465,7 @@ function Wn({
2466
2465
  message: v?.statusText || "Request succeeded"
2467
2466
  },
2468
2467
  (v) => {
2469
- const x = Yn(v), r = x.status;
2468
+ const x = Gn(v), r = x.status;
2470
2469
  return t && (r === 401 || r === 403) && (window.location.href.includes("/login") || (window.historyPath = window.location.pathname, localStorage.clear(), sessionStorage.clear(), window.location.href = "/login")), Promise.reject(x);
2471
2470
  }
2472
2471
  );
@@ -2508,7 +2507,7 @@ function Wn({
2508
2507
  axiosPatch: g
2509
2508
  };
2510
2509
  }
2511
- const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl = Ee.axiosPut, Vl = Ee.axiosPatch, jl = Ee.instance, Jn = async (t, a) => {
2510
+ const Ee = qn(), Ze = Ee.axiosGet, Ml = Ee.axiosDelete, bt = Ee.axiosPost, Pl = Ee.axiosPut, Ll = Ee.axiosPatch, Bl = Ee.instance, Yn = async (t, a) => {
2512
2511
  try {
2513
2512
  switch (t) {
2514
2513
  case De.USER: {
@@ -2527,7 +2526,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2527
2526
  } catch (s) {
2528
2527
  console.log("Error searching entities:", s);
2529
2528
  }
2530
- }, Xn = (t) => t.filter((a) => !!a?.email).map((a) => {
2529
+ }, Wn = (t) => t.filter((a) => !!a?.email).map((a) => {
2531
2530
  const s = (a?.firstName ?? "").trim(), i = (a?.lastName ?? "").trim(), l = `${s} ${i}`.trim() || (a.email?.split("@")[0] ?? "Unknown");
2532
2531
  return {
2533
2532
  id: a.email,
@@ -2544,7 +2543,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2544
2543
  }
2545
2544
  }, Xe = {
2546
2545
  userSearch: async (t) => {
2547
- const { data: a } = await Ze(`${ha()}`, t);
2546
+ const { data: a } = await Ze(`${ua()}`, t);
2548
2547
  return console.log("User search response:", a), a.length ? a.map((s) => ({
2549
2548
  id: s.email,
2550
2549
  name: `${s?.firstName} ${s?.lastName}`.trim(),
@@ -2553,7 +2552,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2553
2552
  })) : [];
2554
2553
  },
2555
2554
  getAdGroups: async (t) => {
2556
- const { data: a } = await bt(`${pa()}`, {
2555
+ const { data: a } = await bt(`${ha()}`, {
2557
2556
  q: t
2558
2557
  });
2559
2558
  if (a.length)
@@ -2565,7 +2564,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2565
2564
  }));
2566
2565
  },
2567
2566
  searchRoles: async (t) => {
2568
- const { data: a } = await bt(`${fa()}`, {
2567
+ const { data: a } = await bt(`${ba()}`, {
2569
2568
  page: 0,
2570
2569
  size: 20,
2571
2570
  q: t ?? "",
@@ -2591,13 +2590,13 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2591
2590
  const l = s.data;
2592
2591
  Array.isArray(l) ? i = l : typeof l == "string" && (i = Ot(l.trim()));
2593
2592
  }
2594
- return Xn(i);
2593
+ return Wn(i);
2595
2594
  }
2596
2595
  }, wt = (t, a) => {
2597
2596
  const [s, i] = P(t);
2598
2597
  return K(
2599
2598
  () => {
2600
- const l = Hr(() => {
2599
+ const l = Xr(() => {
2601
2600
  i(t);
2602
2601
  }, a);
2603
2602
  return l(), () => {
@@ -2607,7 +2606,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2607
2606
  [t, a]
2608
2607
  // Only re-call effect if value or delay changes
2609
2608
  ), s;
2610
- }, Qn = ({
2609
+ }, Jn = ({
2611
2610
  users: t = [],
2612
2611
  groups: a = [],
2613
2612
  roles: s = [],
@@ -2647,15 +2646,15 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2647
2646
  }
2648
2647
  );
2649
2648
  }, Mt = [
2650
- { id: 1, name: De.USER, icon: Ja, code: "users" },
2649
+ { id: 1, name: De.USER, icon: Wa, code: "users" },
2651
2650
  { id: 2, name: De.GROUP, icon: Zt, code: "groups" },
2652
- { id: 3, name: De.ROLE, icon: Xa, code: "roles" }
2651
+ { id: 3, name: De.ROLE, icon: Ja, code: "roles" }
2653
2652
  ], Pt = [
2654
- { id: 1, name: $t.View, icon: Qa },
2655
- { id: 2, name: $t.Manage, icon: Ha }
2656
- ], Hn = Ya().shape({
2657
- pendingInvites: Wa().min(1, "You must add at least one person to invite.")
2658
- }), Zn = ({
2653
+ { id: 1, name: $t.View, icon: Xa },
2654
+ { id: 2, name: $t.Manage, icon: Qa }
2655
+ ], Xn = qa().shape({
2656
+ pendingInvites: Ya().min(1, "You must add at least one person to invite.")
2657
+ }), Qn = ({
2659
2658
  entity: t,
2660
2659
  onManage: a,
2661
2660
  onClose: s,
@@ -2671,15 +2670,15 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2671
2670
  handleSubmit: Y,
2672
2671
  watch: q,
2673
2672
  formState: { errors: T, isSubmitting: _ }
2674
- } = Za({
2673
+ } = Ha({
2675
2674
  defaultValues: { pendingInvites: [] },
2676
- resolver: tr(Hn)
2677
- }), { fields: A, append: u, remove: C, update: M } = Ka({
2675
+ resolver: er(Xn)
2676
+ }), { fields: A, append: u, remove: C, update: M } = Za({
2678
2677
  control: U,
2679
2678
  name: "pendingInvites"
2680
2679
  }), O = q("pendingInvites");
2681
2680
  K(() => {
2682
- N.length > 1 ? (E(!0), Jn(g.name, N).then((k) => {
2681
+ N.length > 1 ? (E(!0), Yn(g.name, N).then((k) => {
2683
2682
  y(k);
2684
2683
  }).catch((k) => console.error("Search failed:", k)).finally(() => E(!1))) : (y([]), $(/* @__PURE__ */ new Set()));
2685
2684
  }, [N, g]);
@@ -2760,7 +2759,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2760
2759
  /* @__PURE__ */ e(ye.Title, { className: " text-gray-900 !mb-0 text-lg font-semibold", children: I() }),
2761
2760
  /* @__PURE__ */ n("div", { className: "flex items-center gap-4", children: [
2762
2761
  l === ue.DRIVE && /* @__PURE__ */ n("button", { className: "flex items-center gap-2 text-sm text-blue-600 hover:text-blue-800 font-semibold hover:cursor-pointer", children: [
2763
- /* @__PURE__ */ e(er, { className: "h-5 w-5" }),
2762
+ /* @__PURE__ */ e(Ka, { className: "h-5 w-5" }),
2764
2763
  " Copy Link"
2765
2764
  ] }),
2766
2765
  /* @__PURE__ */ e(
@@ -2775,7 +2774,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2775
2774
  ] }),
2776
2775
  /* @__PURE__ */ n("main", { className: "flex-grow p-4 space-y-6 overflow-y-auto", children: [
2777
2776
  (l === ue.DRIVE || h) && /* @__PURE__ */ e(
2778
- Qn,
2777
+ Jn,
2779
2778
  {
2780
2779
  users: i.users.filter((k) => k.permission !== "remove"),
2781
2780
  groups: i.groups.filter((k) => k.permission !== "remove"),
@@ -3044,7 +3043,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3044
3043
  ] })
3045
3044
  ] }) })
3046
3045
  ] });
3047
- }, Kn = ({
3046
+ }, Hn = ({
3048
3047
  entity: t,
3049
3048
  //entire file or folder details
3050
3049
  onBack: a,
@@ -3209,13 +3208,13 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3209
3208
  ] }) })
3210
3209
  ] })
3211
3210
  );
3212
- }, es = () => /* @__PURE__ */ n("div", { className: "flex items-center gap-4 p-4", children: [
3211
+ }, Zn = () => /* @__PURE__ */ n("div", { className: "flex items-center gap-4 p-4", children: [
3213
3212
  /* @__PURE__ */ e("div", { className: "h-10 w-10 rounded-full bg-gray-200 animate-pulse" }),
3214
3213
  /* @__PURE__ */ n("div", { className: "flex-grow space-y-2", children: [
3215
3214
  /* @__PURE__ */ e("div", { className: "h-4 w-3/5 rounded bg-gray-200 animate-pulse" }),
3216
3215
  /* @__PURE__ */ e("div", { className: "h-3 w-4/5 rounded bg-gray-200 animate-pulse" })
3217
3216
  ] })
3218
- ] }), ts = ({
3217
+ ] }), Kn = ({
3219
3218
  entity: t,
3220
3219
  // { id, name, type: "group" | "role" }
3221
3220
  onBack: a,
@@ -3238,7 +3237,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3238
3237
  exit: { opacity: 0, x: -20 }
3239
3238
  }, N = () => l ? (
3240
3239
  // Show 5 skeleton items while loading
3241
- /* @__PURE__ */ e("div", { children: Array.from({ length: 5 }).map((m, y) => /* @__PURE__ */ e(es, {}, y)) })
3240
+ /* @__PURE__ */ e("div", { children: Array.from({ length: 5 }).map((m, y) => /* @__PURE__ */ e(Zn, {}, y)) })
3242
3241
  ) : v.length === 0 ? /* @__PURE__ */ n(
3243
3242
  ie.div,
3244
3243
  {
@@ -3246,7 +3245,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3246
3245
  animate: { opacity: 1, scale: 1 },
3247
3246
  className: "flex flex-col items-center justify-center text-center p-8 mt-10",
3248
3247
  children: [
3249
- /* @__PURE__ */ e(ar, { className: "h-12 w-12 text-gray-400" }),
3248
+ /* @__PURE__ */ e(tr, { className: "h-12 w-12 text-gray-400" }),
3250
3249
  /* @__PURE__ */ e("h3", { className: "mt-2 text-sm font-medium text-gray-900", children: "No Users Found" }),
3251
3250
  /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-gray-500", children: g ? `No one found matching "${g}"` : `There are no users in this ${t.type}.` })
3252
3251
  ]
@@ -3326,7 +3325,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3326
3325
  INVITE: "invite",
3327
3326
  MANAGE: "manage",
3328
3327
  MEMBERS: "members"
3329
- }, as = ({
3328
+ }, es = ({
3330
3329
  existingShares: t = {
3331
3330
  users: [],
3332
3331
  groups: [],
@@ -3378,7 +3377,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3378
3377
  transition: { duration: 0.3, ease: "easeInOut" },
3379
3378
  className: "absolute top-0 left-0 w-full h-full",
3380
3379
  children: /* @__PURE__ */ e(
3381
- Kn,
3380
+ Hn,
3382
3381
  {
3383
3382
  entity: i,
3384
3383
  onBack: T,
@@ -3402,7 +3401,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3402
3401
  transition: { duration: 0.3, ease: "easeInOut" },
3403
3402
  className: "absolute top-0 left-0 w-full h-full",
3404
3403
  children: /* @__PURE__ */ e(
3405
- ts,
3404
+ Kn,
3406
3405
  {
3407
3406
  entity: m,
3408
3407
  onBack: T,
@@ -3425,7 +3424,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3425
3424
  transition: { duration: 0.3, ease: "easeInOut" },
3426
3425
  className: "absolute top-0 left-0 w-full h-full",
3427
3426
  children: /* @__PURE__ */ e(
3428
- Zn,
3427
+ Qn,
3429
3428
  {
3430
3429
  entity: i,
3431
3430
  onManage: Y,
@@ -3638,7 +3637,7 @@ at.defaultProps = {
3638
3637
  getOptionId: (t) => String(t.id),
3639
3638
  getOptionLabel: (t) => t.name
3640
3639
  };
3641
- const _l = ({
3640
+ const Vl = ({
3642
3641
  isOpen: t = !1,
3643
3642
  setIsOpen: a,
3644
3643
  content: s,
@@ -3661,7 +3660,7 @@ const _l = ({
3661
3660
  className: "relative z-50 overflow-y-auto",
3662
3661
  children: [
3663
3662
  /* @__PURE__ */ e(
3664
- Gr,
3663
+ _r,
3665
3664
  {
3666
3665
  className: "fixed inset-0 bg-black/30",
3667
3666
  onClick: g
@@ -3721,7 +3720,7 @@ const _l = ({
3721
3720
  }
3722
3721
  );
3723
3722
  };
3724
- function rs({ listeners: t = {}, attributes: a = {} }) {
3723
+ function ts({ listeners: t = {}, attributes: a = {} }) {
3725
3724
  return /* @__PURE__ */ e(
3726
3725
  "button",
3727
3726
  {
@@ -3735,7 +3734,7 @@ function rs({ listeners: t = {}, attributes: a = {} }) {
3735
3734
  }
3736
3735
  );
3737
3736
  }
3738
- function ns({
3737
+ function as({
3739
3738
  node: t,
3740
3739
  depth: a,
3741
3740
  expanded: s,
@@ -3750,11 +3749,11 @@ function ns({
3750
3749
  dropId: x,
3751
3750
  indent: r = 24
3752
3751
  }) {
3753
- const { setNodeRef: N, isOver: m } = rr({ id: x }), { attributes: y, listeners: z, setNodeRef: $, transform: D, isDragging: E } = nr({ id: v }), L = D ? { transform: `translate3d(${Math.round(D.x)}px, ${Math.round(D.y)}px, 0)` } : void 0, [j, U] = P(!1), [Y, q] = P(t.name), T = () => {
3752
+ const { setNodeRef: N, isOver: m } = ar({ id: x }), { attributes: y, listeners: z, setNodeRef: $, transform: D, isDragging: E } = rr({ id: v }), L = D ? { transform: `translate3d(${Math.round(D.x)}px, ${Math.round(D.y)}px, 0)` } : void 0, [j, U] = P(!1), [Y, q] = P(t.name), T = () => {
3754
3753
  const A = Y.trim();
3755
3754
  U(!1), A && A !== t.name ? o?.(t, A) : q(t.name);
3756
3755
  }, _ = ee(() => /* @__PURE__ */ e(
3757
- Ln,
3756
+ Mn,
3758
3757
  {
3759
3758
  options: [
3760
3759
  { action: "create", label: "Create sub-folder" },
@@ -3791,7 +3790,7 @@ function ns({
3791
3790
  autoFocus: !0
3792
3791
  }
3793
3792
  ) : /* @__PURE__ */ e("span", { onDoubleClick: () => U(!0), children: t.name }) }),
3794
- /* @__PURE__ */ e(rs, { listeners: z, attributes: y }),
3793
+ /* @__PURE__ */ e(ts, { listeners: z, attributes: y }),
3795
3794
  /* @__PURE__ */ e("div", { className: "tv-actions", children: g ? g(t, {
3796
3795
  onCreateChild: () => h?.(t),
3797
3796
  onRename: () => U(!0),
@@ -3801,8 +3800,8 @@ function ns({
3801
3800
  }
3802
3801
  );
3803
3802
  }
3804
- const ss = (t) => String(t.id ?? t._id), ls = (t) => t.parent !== void 0 ? String(t.parent) : t.parentId != null ? String(t.parentId) : "root", is = (t) => t.name ?? t.label ?? "", os = (t) => Array.isArray(t) && t.some((a) => Array.isArray(a.children));
3805
- function cs(t, { rootId: a, getId: s, getParent: i, getName: l }) {
3803
+ const rs = (t) => String(t.id ?? t._id), ns = (t) => t.parent !== void 0 ? String(t.parent) : t.parentId != null ? String(t.parentId) : "root", ss = (t) => t.name ?? t.label ?? "", ls = (t) => Array.isArray(t) && t.some((a) => Array.isArray(a.children));
3804
+ function is(t, { rootId: a, getId: s, getParent: i, getName: l }) {
3806
3805
  const h = /* @__PURE__ */ new Map();
3807
3806
  t.forEach((p) => {
3808
3807
  const g = s(p);
@@ -3820,7 +3819,7 @@ function cs(t, { rootId: a, getId: s, getParent: i, getName: l }) {
3820
3819
  g !== a && h.has(g) ? h.get(g).children.push(p) : o.push(p);
3821
3820
  }), { roots: o, byId: h };
3822
3821
  }
3823
- function ds(t, { rootId: a, getId: s, getName: i }) {
3822
+ function os(t, { rootId: a, getId: s, getName: i }) {
3824
3823
  const l = /* @__PURE__ */ new Map();
3825
3824
  function h(p, g) {
3826
3825
  const v = s(p), x = {
@@ -3835,7 +3834,7 @@ function ds(t, { rootId: a, getId: s, getName: i }) {
3835
3834
  return { roots: t.map((p) => h(p, null)), byId: l };
3836
3835
  }
3837
3836
  const Pe = (t) => t.map((a) => ({ ...a, children: Pe(a.children || []) }));
3838
- function ms(t, a) {
3837
+ function cs(t, a) {
3839
3838
  let s = null;
3840
3839
  function i(h) {
3841
3840
  return h.map((o) => {
@@ -3850,7 +3849,7 @@ function ms(t, a) {
3850
3849
  }
3851
3850
  return { newRoots: i(t), removed: s };
3852
3851
  }
3853
- function us(t, a, s) {
3852
+ function ds(t, a, s) {
3854
3853
  function i(l) {
3855
3854
  return l.map((h) => {
3856
3855
  if (h.id === a)
@@ -3864,23 +3863,23 @@ function us(t, a, s) {
3864
3863
  }
3865
3864
  return i(t);
3866
3865
  }
3867
- function ya(t, a, s = null) {
3866
+ function fa(t, a, s = null) {
3868
3867
  for (const i of t) {
3869
3868
  if (i.id === a) return { node: i, parentId: s };
3870
3869
  if (i.children?.length) {
3871
- const l = ya(i.children, a, i.id);
3870
+ const l = fa(i.children, a, i.id);
3872
3871
  if (l) return l;
3873
3872
  }
3874
3873
  }
3875
3874
  return null;
3876
3875
  }
3877
- function Ul({
3876
+ function jl({
3878
3877
  data: t = [],
3879
3878
  rootId: a = "root",
3880
3879
  title: s = "Folders",
3881
- getId: i = ss,
3882
- getParent: l = ls,
3883
- getName: h = is,
3880
+ getId: i = rs,
3881
+ getParent: l = ns,
3882
+ getName: h = ss,
3884
3883
  onSelect: o,
3885
3884
  onCreateRoot: p,
3886
3885
  onCreateChild: g,
@@ -3892,7 +3891,7 @@ function Ul({
3892
3891
  // ← allow root moves by default now
3893
3892
  indentUnit: y = 24
3894
3893
  }) {
3895
- const { roots: z } = ee(() => os(t) ? ds(t, { rootId: a, getId: i, getName: h }) : cs(
3894
+ const { roots: z } = ee(() => ls(t) ? os(t, { rootId: a, getId: i, getName: h }) : is(
3896
3895
  t.map((b) => ({ ...b })),
3897
3896
  { rootId: a, getId: i, getParent: l, getName: h }
3898
3897
  ), [t, a, i, l, h]), [$, D] = P({}), E = H((b) => {
@@ -3911,8 +3910,8 @@ function Ul({
3911
3910
  []
3912
3911
  ), [j, U] = P(() => Pe(z));
3913
3912
  ae.useEffect(() => U(Pe(z)), [z]);
3914
- const Y = sr(
3915
- lr(dr, { activationConstraint: { delay: 250, tolerance: 5 } })
3913
+ const Y = nr(
3914
+ sr(cr, { activationConstraint: { delay: 250, tolerance: 5 } })
3916
3915
  ), q = he(null), [T, _] = P(null), A = he(0), u = () => {
3917
3916
  }, C = ({ delta: b }) => {
3918
3917
  A.current = b?.x ?? 0;
@@ -3927,7 +3926,7 @@ function Ul({
3927
3926
  if (k > 0) {
3928
3927
  let W = S;
3929
3928
  for (let pe = 0; pe < k; pe++) {
3930
- const Ne = ya(j, W, null);
3929
+ const Ne = fa(j, W, null);
3931
3930
  if (!Ne) break;
3932
3931
  if (!Ne.parentId) {
3933
3932
  I = a;
@@ -3940,16 +3939,16 @@ function Ul({
3940
3939
  U(Pe(z));
3941
3940
  return;
3942
3941
  }
3943
- const R = Pe(j), { newRoots: V, removed: F } = ms(R, w);
3942
+ const R = Pe(j), { newRoots: V, removed: F } = cs(R, w);
3944
3943
  if (!F) return;
3945
- const G = us(V, I, F);
3944
+ const G = ds(V, I, F);
3946
3945
  U(G), r?.({ sourceId: w, destParentId: I, newTree: G });
3947
3946
  },
3948
3947
  [j, z, a, m, y, r]
3949
3948
  ), O = H(
3950
3949
  (b, c = 0) => b.map((f) => /* @__PURE__ */ n(ae.Fragment, { children: [
3951
3950
  /* @__PURE__ */ e(
3952
- ns,
3951
+ as,
3953
3952
  {
3954
3953
  node: f,
3955
3954
  depth: c,
@@ -3992,14 +3991,14 @@ function Ul({
3992
3991
  /* @__PURE__ */ e("button", { className: "tv-icon", title: "Create top-level", onClick: p, children: "+" })
3993
3992
  ] }),
3994
3993
  /* @__PURE__ */ e(
3995
- ir,
3994
+ lr,
3996
3995
  {
3997
- collisionDetection: cr,
3996
+ collisionDetection: or,
3998
3997
  sensors: Y,
3999
3998
  onDragStart: u,
4000
3999
  onDragMove: C,
4001
4000
  onDragEnd: M,
4002
- modifiers: [or],
4001
+ modifiers: [ir],
4003
4002
  children: /* @__PURE__ */ e("div", { ref: q, className: "tv-list", children: O(j, 0) })
4004
4003
  }
4005
4004
  )
@@ -4008,7 +4007,7 @@ function Ul({
4008
4007
  function ze(...t) {
4009
4008
  return t.filter(Boolean).join(" ");
4010
4009
  }
4011
- const Gl = ({
4010
+ const _l = ({
4012
4011
  tabs: t = [],
4013
4012
  keepMounted: a = !0,
4014
4013
  orientation: s = "horizontal",
@@ -4037,11 +4036,11 @@ const Gl = ({
4037
4036
  ] })
4038
4037
  ) });
4039
4038
  };
4040
- function ql(t, a = "YYYY-MM-DD HH:mm:ss") {
4039
+ function Ul(t, a = "YYYY-MM-DD HH:mm:ss") {
4041
4040
  return t ? (t.endsWith("Z") || /[+\-]\d{2}:?\d{2}$/.test(t) ? St.parseZone(t) : St.utc(t)).local().format(a) : null;
4042
4041
  }
4043
4042
  d.string;
4044
- function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4043
+ function ms({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4045
4044
  console.log(t);
4046
4045
  const [l, h] = ae.useState(t), [o, p] = ae.useState(() => {
4047
4046
  const r = a && a[t.key] || {};
@@ -4373,7 +4372,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4373
4372
  }
4374
4373
  ) }),
4375
4374
  r.fieldtype === "daterange" && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
4376
- Dn,
4375
+ zn,
4377
4376
  {
4378
4377
  label: r.label,
4379
4378
  value: o[r.key] || { from: null, to: null },
@@ -4543,7 +4542,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4543
4542
  ] }),
4544
4543
  r.fieldtype === "managecollectionlist" && /* @__PURE__ */ n("div", { children: [
4545
4544
  /* @__PURE__ */ e(
4546
- vs,
4545
+ ys,
4547
4546
  {
4548
4547
  endpoints: r.endpoints || {},
4549
4548
  initialData: o[r.key] || r.initialData || [],
@@ -4575,8 +4574,8 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4575
4574
  ] }, N)) })
4576
4575
  ] }) });
4577
4576
  }
4578
- const ps = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex -space-x-2", children: t });
4579
- function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4577
+ const us = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex -space-x-2", children: t });
4578
+ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4580
4579
  console.log(`[DynamicConfig/DataTableRenderer] Component loaded for section: ${t.key}`);
4581
4580
  const [l, h] = P(t), [o, p] = P(null), [g, v] = P(null);
4582
4581
  console.log(`[DataTableRenderer] ${l.key} - Received props:`, { item: t, initialData: a });
@@ -4870,7 +4869,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4870
4869
  ...f.roles || []
4871
4870
  ];
4872
4871
  return /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
4873
- /* @__PURE__ */ e(ps, { children: w.length > 0 ? w.slice(0, 3).map((S, I) => /* @__PURE__ */ e(
4872
+ /* @__PURE__ */ e(us, { children: w.length > 0 ? w.slice(0, 3).map((S, I) => /* @__PURE__ */ e(
4874
4873
  we,
4875
4874
  {
4876
4875
  size: "small",
@@ -5055,7 +5054,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5055
5054
  onClick: () => L(C),
5056
5055
  className: "text-red-500 hover:text-red-700",
5057
5056
  title: "Delete row",
5058
- children: /* @__PURE__ */ e(mr, { size: 16 })
5057
+ children: /* @__PURE__ */ e(dr, { size: 16 })
5059
5058
  }
5060
5059
  ) })
5061
5060
  ]
@@ -5070,7 +5069,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5070
5069
  roles: x[o][g].roles || []
5071
5070
  } : { users: [], groups: [], roles: [] };
5072
5071
  return console.log("[DataTableRenderer] Opening modal with existing data:", u), console.log("[DataTableRenderer] Row data:", x[o]), console.log("[DataTableRenderer] Field name:", g), /* @__PURE__ */ e(
5073
- as,
5072
+ es,
5074
5073
  {
5075
5074
  isOpen: !0,
5076
5075
  onClose: () => {
@@ -5084,21 +5083,21 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5084
5083
  })()
5085
5084
  ] });
5086
5085
  }
5087
- const bs = ({ item: t }) => /* @__PURE__ */ n("div", { className: "p-3 rounded-xl border border-dashed text-sm opacity-70", children: [
5086
+ const ps = ({ item: t }) => /* @__PURE__ */ n("div", { className: "p-3 rounded-xl border border-dashed text-sm opacity-70", children: [
5088
5087
  "Unknown type:",
5089
5088
  " ",
5090
5089
  /* @__PURE__ */ e("span", { className: "font-mono", children: String(t?.type ?? "N/A") })
5091
5090
  ] }), Ke = /* @__PURE__ */ Object.create(null);
5092
- Ke.section = hs;
5093
- Ke.datatable = gs;
5094
- function fs(t) {
5091
+ Ke.section = ms;
5092
+ Ke.datatable = hs;
5093
+ function gs(t) {
5095
5094
  return typeof t == "string" ? t.trim() : t && typeof t == "object" ? String(t.type || "").trim() : "";
5096
5095
  }
5097
- function ys(t) {
5098
- const a = fs(t);
5099
- return Ke[a] || Ke[a.toLowerCase?.()] || bs;
5096
+ function bs(t) {
5097
+ const a = gs(t);
5098
+ return Ke[a] || Ke[a.toLowerCase?.()] || ps;
5100
5099
  }
5101
- function xs({
5100
+ function fs({
5102
5101
  appid: t,
5103
5102
  configdata: a = null,
5104
5103
  disableApi: s = !1,
@@ -5318,7 +5317,7 @@ function xs({
5318
5317
  children: [
5319
5318
  N && /* @__PURE__ */ e("div", { className: "flex justify-center items-center h-64", children: /* @__PURE__ */ e(oa, { size: "large" }) }),
5320
5319
  !N && O?.map((b, c) => {
5321
- const f = ys(b.type);
5320
+ const f = bs(b.type);
5322
5321
  if (f && f !== "UnknownType")
5323
5322
  return /* @__PURE__ */ e(
5324
5323
  f,
@@ -5358,7 +5357,7 @@ function xs({
5358
5357
  ] })
5359
5358
  ] });
5360
5359
  }
5361
- const Yl = ({
5360
+ const Gl = ({
5362
5361
  config: t,
5363
5362
  appid: a = "Configuration-Page",
5364
5363
  disableApi: s = !1,
@@ -5470,7 +5469,7 @@ const Yl = ({
5470
5469
  configuration: m
5471
5470
  }), [m]), T = ee(() => [
5472
5471
  { label: "Overview", content: A(Y) },
5473
- i && { label: "Configuration", content: /* @__PURE__ */ e(xs, { appid: a, configdata: q, disableApi: s, onSave: E, onShowCancelModal: $, onCancel: L }) }
5472
+ i && { label: "Configuration", content: /* @__PURE__ */ e(fs, { appid: a, configdata: q, disableApi: s, onSave: E, onShowCancelModal: $, onCancel: L }) }
5474
5473
  ].filter(Boolean), [a, q, s, E, $, L, Y]);
5475
5474
  function _(u) {
5476
5475
  return u ? u.includes("<svg") ? /* @__PURE__ */ e("div", { dangerouslySetInnerHTML: { __html: u } }) : u : "📱";
@@ -5511,7 +5510,7 @@ const Yl = ({
5511
5510
  }
5512
5511
  return /* @__PURE__ */ n("div", { className: "full-config-page", children: [
5513
5512
  /* @__PURE__ */ e(
5514
- Pn,
5513
+ On,
5515
5514
  {
5516
5515
  heading: y.heading,
5517
5516
  subHeading: z.length > 0 ? void 0 : y.subHeading,
@@ -5548,7 +5547,7 @@ const Yl = ({
5548
5547
  /* @__PURE__ */ e("div", { className: "p-8 h-full overflow-y-auto", children: T[l].content })
5549
5548
  ] }),
5550
5549
  /* @__PURE__ */ e(
5551
- En,
5550
+ An,
5552
5551
  {
5553
5552
  isOpen: o,
5554
5553
  onClose: D,
@@ -5560,7 +5559,7 @@ const Yl = ({
5560
5559
  }
5561
5560
  )
5562
5561
  ] });
5563
- }, vs = ({
5562
+ }, ys = ({
5564
5563
  className: t = "",
5565
5564
  onCollectionChange: a,
5566
5565
  showSearch: s = !0,
@@ -5735,7 +5734,7 @@ const Yl = ({
5735
5734
  className: "cursor-pointer",
5736
5735
  onClick: () => j(c),
5737
5736
  "aria-label": `Edit ${c.categoryName}`,
5738
- children: /* @__PURE__ */ e(ur, { color: "#767676" })
5737
+ children: /* @__PURE__ */ e(mr, { color: "#767676" })
5739
5738
  }
5740
5739
  ),
5741
5740
  h && /* @__PURE__ */ e(
@@ -5755,11 +5754,11 @@ const Yl = ({
5755
5754
  }) })
5756
5755
  ] });
5757
5756
  };
5758
- function Wl({ children: t }) {
5757
+ function ql({ children: t }) {
5759
5758
  return /* @__PURE__ */ n(te, { children: [
5760
5759
  t,
5761
5760
  /* @__PURE__ */ e(
5762
- Zr,
5761
+ Qr,
5763
5762
  {
5764
5763
  position: "bottom-right",
5765
5764
  autoClose: 3500,
@@ -5769,7 +5768,7 @@ function Wl({ children: t }) {
5769
5768
  pauseOnFocusLoss: !1,
5770
5769
  draggable: !0,
5771
5770
  pauseOnHover: !0,
5772
- transition: Kr,
5771
+ transition: Hr,
5773
5772
  limit: 4,
5774
5773
  closeButton: !0,
5775
5774
  bodyClassName: "ui-toast__body",
@@ -5824,7 +5823,7 @@ const Lt = () => {
5824
5823
  },
5825
5824
  { ...Me, ...s }
5826
5825
  )
5827
- }, Jl = ({
5826
+ }, Yl = ({
5828
5827
  heading: t = "Data Grid",
5829
5828
  subheading: a = "",
5830
5829
  totalCount: s = 0,
@@ -5950,7 +5949,7 @@ const Lt = () => {
5950
5949
  x && /* @__PURE__ */ e(
5951
5950
  Ce,
5952
5951
  {
5953
- icon: hr,
5952
+ icon: ur,
5954
5953
  onClick: (I) => S("ColumnChooser", I),
5955
5954
  ariaLabel: "Column Chooser"
5956
5955
  }
@@ -5958,7 +5957,7 @@ const Lt = () => {
5958
5957
  r && /* @__PURE__ */ e(
5959
5958
  Ce,
5960
5959
  {
5961
- icon: pr,
5960
+ icon: hr,
5962
5961
  onClick: o,
5963
5962
  ariaLabel: "Filters"
5964
5963
  }
@@ -5966,7 +5965,7 @@ const Lt = () => {
5966
5965
  N && /* @__PURE__ */ e(
5967
5966
  Ce,
5968
5967
  {
5969
- icon: gr,
5968
+ icon: pr,
5970
5969
  onClick: () => S("Print"),
5971
5970
  ariaLabel: "Print"
5972
5971
  }
@@ -5974,7 +5973,7 @@ const Lt = () => {
5974
5973
  m && /* @__PURE__ */ e(
5975
5974
  Ce,
5976
5975
  {
5977
- icon: br,
5976
+ icon: gr,
5978
5977
  onClick: () => S("Excel"),
5979
5978
  ariaLabel: "Excel Download"
5980
5979
  }
@@ -5982,7 +5981,7 @@ const Lt = () => {
5982
5981
  y && /* @__PURE__ */ e(
5983
5982
  Ce,
5984
5983
  {
5985
- icon: fr,
5984
+ icon: br,
5986
5985
  onClick: () => S("Pdf"),
5987
5986
  ariaLabel: "PDF Download"
5988
5987
  }
@@ -5990,7 +5989,7 @@ const Lt = () => {
5990
5989
  z && /* @__PURE__ */ e(
5991
5990
  Ce,
5992
5991
  {
5993
- icon: yr,
5992
+ icon: fr,
5994
5993
  onClick: () => S("Refresh"),
5995
5994
  ariaLabel: "Refresh"
5996
5995
  }
@@ -6000,7 +5999,6 @@ const Lt = () => {
6000
5999
  se,
6001
6000
  {
6002
6001
  label: p,
6003
- icon: xr,
6004
6002
  onClick: h,
6005
6003
  size: "small",
6006
6004
  ariaLabel: "Add New",
@@ -6011,7 +6009,7 @@ const Lt = () => {
6011
6009
  ] })
6012
6010
  ] });
6013
6011
  };
6014
- function Xl(t) {
6012
+ function Wl(t) {
6015
6013
  const {
6016
6014
  data: a = [],
6017
6015
  totalCount: s = 0,
@@ -6058,8 +6056,8 @@ function Xl(t) {
6058
6056
  enableSimpleMultiRowSelection: !0
6059
6057
  } : B;
6060
6058
  }, [D, E]), V = ee(() => {
6061
- const B = [en];
6062
- return (E || D) && B.push(tn), p && B.push(an), g && B.push(rn), v && B.push(nn), z && B.push(sn), N && B.push(ln), m && B.push(on), y && B.push(cn), r && B.push(dn), x && B.push(mn), B.push(un), B;
6059
+ const B = [Zr];
6060
+ return (E || D) && B.push(Kr), p && B.push(en), g && B.push(tn), v && B.push(an), z && B.push(rn), N && B.push(nn), m && B.push(sn), y && B.push(ln), r && B.push(on), x && B.push(cn), B.push(dn), B;
6063
6061
  }, [
6064
6062
  p,
6065
6063
  g,
@@ -6134,7 +6132,7 @@ function Xl(t) {
6134
6132
  }, 1e3), B.requestType === "paging" && (b(B.currentPage), f(B.pageSize)), B.requestType === "sorting" && (S(B.columnName || "updatedDate"), k(B.direction)), j?.(W(B), B);
6135
6133
  }, Ne = (B) => {
6136
6134
  q?.(B?.rowData, B);
6137
- }, Na = () => {
6135
+ }, va = () => {
6138
6136
  const B = [];
6139
6137
  return E && B.push(
6140
6138
  /* @__PURE__ */ e(
@@ -6158,15 +6156,15 @@ function Xl(t) {
6158
6156
  template: nt,
6159
6157
  isPrimaryKey: st,
6160
6158
  showInColumnChooser: Ie = !0,
6161
- allowFiltering: Ca = !0,
6162
- allowSorting: za = !0,
6163
- type: Sa,
6164
- format: Da,
6165
- visible: $a = !0,
6166
- minWidth: Ta,
6167
- maxWidth: Aa,
6168
- customAttributes: Fa,
6169
- ...Ea
6159
+ allowFiltering: ka = !0,
6160
+ allowSorting: Ca = !0,
6161
+ type: za,
6162
+ format: Sa,
6163
+ visible: Da = !0,
6164
+ minWidth: $a,
6165
+ maxWidth: Ta,
6166
+ customAttributes: Aa,
6167
+ ...Fa
6170
6168
  } = re || {};
6171
6169
  B.push(
6172
6170
  /* @__PURE__ */ e(
@@ -6179,31 +6177,31 @@ function Xl(t) {
6179
6177
  template: nt,
6180
6178
  isPrimaryKey: st,
6181
6179
  showInColumnChooser: Ie,
6182
- allowFiltering: Ca,
6183
- allowSorting: za,
6184
- type: Sa,
6185
- format: Da,
6186
- visible: $a,
6187
- minWidth: Ta,
6188
- maxWidth: Aa,
6189
- customAttributes: Fa,
6190
- ...Ea
6180
+ allowFiltering: ka,
6181
+ allowSorting: Ca,
6182
+ type: za,
6183
+ format: Sa,
6184
+ visible: Da,
6185
+ minWidth: $a,
6186
+ maxWidth: Ta,
6187
+ customAttributes: Aa,
6188
+ ...Fa
6191
6189
  },
6192
6190
  ce || `col-${J}`
6193
6191
  )
6194
6192
  );
6195
6193
  }), B;
6196
- }, wa = ee(() => ({
6194
+ }, Na = ee(() => ({
6197
6195
  currentPage: O,
6198
6196
  pageSize: c,
6199
6197
  pageSizes: u?.pageSizes ?? [10, 20, 40, 60, 80, 100],
6200
6198
  totalCount: s
6201
- }), [O, c, u?.pageSizes, s]), ka = ee(() => C ?? {
6199
+ }), [O, c, u?.pageSizes, s]), wa = ee(() => C ?? {
6202
6200
  columns: [{ field: w, direction: G(I) }],
6203
6201
  allowUnsort: !1
6204
6202
  }, [C, w, I]);
6205
6203
  return /* @__PURE__ */ n(
6206
- hn,
6204
+ mn,
6207
6205
  {
6208
6206
  id: i,
6209
6207
  ref: A,
@@ -6220,8 +6218,8 @@ function Xl(t) {
6220
6218
  allowResizing: r,
6221
6219
  showColumnChooser: y,
6222
6220
  selectionSettings: R,
6223
- pageSettings: wa,
6224
- sortSettings: ka,
6221
+ pageSettings: Na,
6222
+ sortSettings: wa,
6225
6223
  actionBegin: pe,
6226
6224
  rowSelected: U,
6227
6225
  rowDeselected: Y,
@@ -6229,8 +6227,8 @@ function Xl(t) {
6229
6227
  cssClass: "custom-grid-padding",
6230
6228
  ...M,
6231
6229
  children: [
6232
- /* @__PURE__ */ e(pn, { children: Na() }),
6233
- /* @__PURE__ */ e(gn, { services: V })
6230
+ /* @__PURE__ */ e(un, { children: va() }),
6231
+ /* @__PURE__ */ e(hn, { services: V })
6234
6232
  ]
6235
6233
  }
6236
6234
  );
@@ -6257,7 +6255,7 @@ const de = (t) => {
6257
6255
  title: "text-lg",
6258
6256
  meta: "text-sm"
6259
6257
  }
6260
- }, Ns = (t, a) => typeof a == "function" ? a(t) : typeof a == "string" && t?.[a] != null ? t[a] : t?._id ?? t?.id ?? t?.instanceId ?? t?.legacyId ?? t?.key ?? null;
6258
+ }, xs = (t, a) => typeof a == "function" ? a(t) : typeof a == "string" && t?.[a] != null ? t[a] : t?._id ?? t?.id ?? t?.instanceId ?? t?.legacyId ?? t?.key ?? null;
6261
6259
  function oe({
6262
6260
  children: t,
6263
6261
  className: a = "",
@@ -6269,7 +6267,7 @@ function oe({
6269
6267
  details: o = {},
6270
6268
  ...p
6271
6269
  }) {
6272
- const g = He(), v = Ns(p, h), x = (N) => {
6270
+ const g = He(), v = xs(p, h), x = (N) => {
6273
6271
  l?.({
6274
6272
  key: v,
6275
6273
  checked: N.target.checked,
@@ -6305,7 +6303,7 @@ oe.propTypes = {
6305
6303
  identity: d.oneOfType([d.string, d.func]),
6306
6304
  details: d.object
6307
6305
  };
6308
- function ws({
6306
+ function vs({
6309
6307
  size: t = "md",
6310
6308
  showCheckbox: a = !1,
6311
6309
  checkboxPosition: s = "top-left",
@@ -6389,7 +6387,7 @@ function ws({
6389
6387
  }
6390
6388
  );
6391
6389
  }
6392
- ws.propTypes = {
6390
+ vs.propTypes = {
6393
6391
  size: d.string,
6394
6392
  showCheckbox: d.bool,
6395
6393
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -6403,7 +6401,7 @@ ws.propTypes = {
6403
6401
  imageUrl: d.string,
6404
6402
  description: d.string
6405
6403
  };
6406
- const ks = "px-2 py-1 rounded-full text-[11px] font-semibold tracking-wide border border-zinc-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 text-zinc-700 dark:text-zinc-200", Cs = () => /* @__PURE__ */ e("span", { className: "ml-1 inline-block h-2.5 w-2.5 rounded-full bg-emerald-500 align-middle", "aria-label": "verified" }), zs = [
6404
+ const Ns = "px-2 py-1 rounded-full text-[11px] font-semibold tracking-wide border border-zinc-200 dark:border-zinc-700 bg-white dark:bg-zinc-800 text-zinc-700 dark:text-zinc-200", ws = () => /* @__PURE__ */ e("span", { className: "ml-1 inline-block h-2.5 w-2.5 rounded-full bg-emerald-500 align-middle", "aria-label": "verified" }), ks = [
6407
6405
  {
6408
6406
  _id: "cm-1",
6409
6407
  name: "All Students",
@@ -6422,13 +6420,13 @@ const ks = "px-2 py-1 rounded-full text-[11px] font-semibold tracking-wide borde
6422
6420
  joined: !0,
6423
6421
  description: "What is Academic Advising? The mission of the Academic Advising Department at..."
6424
6422
  }
6425
- ], Ss = {
6423
+ ], Cs = {
6426
6424
  sm: { wrap: "max-w-md", thumb: "h-14 w-14", name: "text-sm", desc: "text-[13px]" },
6427
6425
  md: { wrap: "max-w-3xl", thumb: "h-16 w-16", name: "text-base", desc: "text-sm" },
6428
6426
  lg: { wrap: "w-full", thumb: "h-20 w-20", name: "text-lg", desc: "text-base" }
6429
6427
  // lg occupies full width
6430
6428
  };
6431
- function Ds({
6429
+ function zs({
6432
6430
  size: t = "md",
6433
6431
  showCheckbox: a = !1,
6434
6432
  checkboxPosition: s = "top-left",
@@ -6437,11 +6435,11 @@ function Ds({
6437
6435
  title: h = "Communities",
6438
6436
  activeTab: o = "joined",
6439
6437
  // "joined" | "suggested"
6440
- items: p = zs,
6438
+ items: p = ks,
6441
6439
  // spread for identity (_id/instanceId/etc)
6442
6440
  ...g
6443
6441
  }) {
6444
- const v = de(t), x = me[v], r = Ss[v], N = (m) => `px-1 pb-2 text-sm font-medium ${m === o ? "text-zinc-900 dark:text-zinc-100 border-b-2" : "text-zinc-500 dark:text-zinc-400"}`;
6442
+ const v = de(t), x = me[v], r = Cs[v], N = (m) => `px-1 pb-2 text-sm font-medium ${m === o ? "text-zinc-900 dark:text-zinc-100 border-b-2" : "text-zinc-500 dark:text-zinc-400"}`;
6445
6443
  return /* @__PURE__ */ n(
6446
6444
  oe,
6447
6445
  {
@@ -6491,10 +6489,10 @@ function Ds({
6491
6489
  /* @__PURE__ */ n("div", { className: "min-w-0", children: [
6492
6490
  /* @__PURE__ */ n("div", { className: `flex items-center gap-1 font-semibold ${r.name}`, children: [
6493
6491
  /* @__PURE__ */ e("span", { className: "truncate", children: m.name }),
6494
- /* @__PURE__ */ e(Cs, {})
6492
+ /* @__PURE__ */ e(ws, {})
6495
6493
  ] }),
6496
6494
  /* @__PURE__ */ n("div", { className: "flex gap-1 justify-center items-center", children: [
6497
- /* @__PURE__ */ n(xn, { children: [
6495
+ /* @__PURE__ */ n(fn, { children: [
6498
6496
  /* @__PURE__ */ e(we, { size: "small", src: m.avatar, name: "John" }),
6499
6497
  /* @__PURE__ */ e(we, { size: "small", src: m.avatar, name: "Omi" }),
6500
6498
  /* @__PURE__ */ e(we, { size: "small", src: m.avatar, name: "Raj" })
@@ -6505,7 +6503,7 @@ function Ds({
6505
6503
  " Members"
6506
6504
  ] })
6507
6505
  ] }),
6508
- /* @__PURE__ */ e("div", { className: "mt-2", children: /* @__PURE__ */ e("span", { className: ks, children: m.category }) })
6506
+ /* @__PURE__ */ e("div", { className: "mt-2", children: /* @__PURE__ */ e("span", { className: Ns, children: m.category }) })
6509
6507
  ] }),
6510
6508
  m.joined && /* @__PURE__ */ e(
6511
6509
  "span",
@@ -6544,7 +6542,7 @@ function Ds({
6544
6542
  }
6545
6543
  );
6546
6544
  }
6547
- Ds.propTypes = {
6545
+ zs.propTypes = {
6548
6546
  size: d.string,
6549
6547
  showCheckbox: d.bool,
6550
6548
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -6564,7 +6562,7 @@ Ds.propTypes = {
6564
6562
  })
6565
6563
  )
6566
6564
  };
6567
- const $s = [
6565
+ const Ss = [
6568
6566
  {
6569
6567
  _id: "nw-1",
6570
6568
  title: "KCC’s 3rd Annual Community & Business Partners Luncheon",
@@ -6589,7 +6587,7 @@ const $s = [
6589
6587
  thumb: "https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=640&auto=format&fit=crop",
6590
6588
  excerpt: "Community and business partners joined KCC leadership to recognize outstanding collaborations and celebrate student success…"
6591
6589
  }
6592
- ], Ts = {
6590
+ ], Ds = {
6593
6591
  sm: {
6594
6592
  wrap: "max-w-md",
6595
6593
  itemThumb: "h-14 w-20",
@@ -6614,18 +6612,18 @@ const $s = [
6614
6612
  excerpt: "text-sm text-zinc-600 dark:text-zinc-300 line-clamp-2"
6615
6613
  }
6616
6614
  }, Vt = ({ label: t }) => /* @__PURE__ */ e("span", { className: "mt-1 inline-flex items-center rounded-full border border-zinc-300 dark:border-zinc-700 bg-white dark:bg-zinc-900 px-2 py-0.5 text-[11px] font-semibold tracking-wide", children: t });
6617
- function As({
6615
+ function $s({
6618
6616
  size: t = "md",
6619
6617
  showCheckbox: a = !1,
6620
6618
  checkboxPosition: s = "top-left",
6621
6619
  onSelect: i,
6622
6620
  identity: l = "_id",
6623
6621
  title: h = "News",
6624
- items: o = $s,
6622
+ items: o = Ss,
6625
6623
  // spread for identity fields: _id / id / instanceId etc.
6626
6624
  ...p
6627
6625
  }) {
6628
- const g = de(t), v = me[g], x = Ts[g];
6626
+ const g = de(t), v = me[g], x = Ds[g];
6629
6627
  return /* @__PURE__ */ n(
6630
6628
  oe,
6631
6629
  {
@@ -6682,7 +6680,7 @@ function As({
6682
6680
  }
6683
6681
  );
6684
6682
  }
6685
- As.propTypes = {
6683
+ $s.propTypes = {
6686
6684
  size: d.string,
6687
6685
  showCheckbox: d.bool,
6688
6686
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -6700,7 +6698,7 @@ As.propTypes = {
6700
6698
  })
6701
6699
  )
6702
6700
  };
6703
- const Fs = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], Es = {
6701
+ const Ts = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], As = {
6704
6702
  sm: {
6705
6703
  wrap: "max-w-md w-full md:w-auto flex-none justify-self-start",
6706
6704
  mapH: "h-48",
@@ -6722,15 +6720,15 @@ const Fs = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], Es = {
6722
6720
  searchH: "h-11 text-base",
6723
6721
  chipGap: "gap-3.5"
6724
6722
  }
6725
- }, Rs = ({ label: t, active: a = !1, size: s = "md", className: i = "" }) => {
6723
+ }, Fs = ({ label: t, active: a = !1, size: s = "md", className: i = "" }) => {
6726
6724
  const l = "inline-flex items-center justify-center whitespace-nowrap rounded-full border transition-colors duration-150 shadow-[0_0.5px_0_rgba(0,0,0,0.04)]", h = {
6727
6725
  sm: "h-8 px-3 text-[11px] font-semibold",
6728
6726
  md: "h-9 px-3.5 text-[13px] font-semibold",
6729
6727
  lg: "h-10 px-4 text-sm font-semibold"
6730
6728
  }, o = a ? "bg-indigo-700 border-indigo-700 text-white" : "bg-white/95 dark:bg-zinc-900/90 border-zinc-300 dark:border-zinc-700 text-zinc-700 dark:text-zinc-200";
6731
6729
  return /* @__PURE__ */ e("span", { className: `${l} ${h[s] ?? h.md} ${o} ${i}`, children: t });
6732
- }, Is = (t, a = 12) => `https://www.google.com/maps?q=${encodeURIComponent(t)}&z=${a}&output=embed`;
6733
- function Os({
6730
+ }, Es = (t, a = 12) => `https://www.google.com/maps?q=${encodeURIComponent(t)}&z=${a}&output=embed`;
6731
+ function Rs({
6734
6732
  size: t = "md",
6735
6733
  showCheckbox: a = !1,
6736
6734
  checkboxPosition: s = "top-left",
@@ -6738,7 +6736,7 @@ function Os({
6738
6736
  identity: l = "_id",
6739
6737
  title: h = "Campus Map",
6740
6738
  campusName: o = "Morningside Heights Campus",
6741
- filters: p = Fs,
6739
+ filters: p = Ts,
6742
6740
  activeFilter: g = "All",
6743
6741
  // NEW: iframe controls
6744
6742
  mapQuery: v = "Florida",
@@ -6747,7 +6745,7 @@ function Os({
6747
6745
  // optional full embed URL override
6748
6746
  ...N
6749
6747
  }) {
6750
- const m = de(t), y = me[m], z = Es[m], $ = r || Is(v, x);
6748
+ const m = de(t), y = me[m], z = As[m], $ = r || Es(v, x);
6751
6749
  return /* @__PURE__ */ e(
6752
6750
  oe,
6753
6751
  {
@@ -6781,7 +6779,7 @@ function Os({
6781
6779
  /* @__PURE__ */ e("div", { className: "h-8 w-8 rounded-full bg-white/90 border border-zinc-300 flex items-center justify-center", children: "›" })
6782
6780
  ] })
6783
6781
  ] }),
6784
- /* @__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: p.map((D) => /* @__PURE__ */ e(Rs, { label: D, active: D === g, size: m }, D)) }) }),
6782
+ /* @__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: p.map((D) => /* @__PURE__ */ e(Fs, { label: D, active: D === g, size: m }, D)) }) }),
6785
6783
  /* @__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: [
6786
6784
  /* @__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" }) }),
6787
6785
  /* @__PURE__ */ e("span", { className: "ml-2 text-zinc-500 dark:text-zinc-400", children: "Search places" })
@@ -6790,7 +6788,7 @@ function Os({
6790
6788
  }
6791
6789
  );
6792
6790
  }
6793
- Os.propTypes = {
6791
+ Rs.propTypes = {
6794
6792
  size: d.string,
6795
6793
  showCheckbox: d.bool,
6796
6794
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -6806,7 +6804,7 @@ Os.propTypes = {
6806
6804
  mapUrl: d.string
6807
6805
  // optional full embed URL override
6808
6806
  };
6809
- const Ms = [
6807
+ const Is = [
6810
6808
  {
6811
6809
  _id: "ev-1",
6812
6810
  title: "Warhawk Weekly 10-1: Master the future; Rolling out 'Red'",
@@ -6837,7 +6835,7 @@ const Ms = [
6837
6835
  image: "https://images.unsplash.com/photo-1492684223066-81342ee5ff30?q=80&w=1200&auto=format&fit=crop",
6838
6836
  description: ""
6839
6837
  }
6840
- ], Ps = {
6838
+ ], Os = {
6841
6839
  sm: {
6842
6840
  wrap: "max-w-sm w-full",
6843
6841
  listGap: "gap-3",
@@ -6874,16 +6872,16 @@ const Ms = [
6874
6872
  showImage: !0,
6875
6873
  compact: !1
6876
6874
  }
6877
- }, Ls = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], xa = (t) => {
6875
+ }, Ms = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], ya = (t) => {
6878
6876
  const a = new Date(t);
6879
6877
  return {
6880
6878
  day: a.getDate(),
6881
- month: Ls[a.getMonth()] || "",
6879
+ month: Ms[a.getMonth()] || "",
6882
6880
  time: a.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })
6883
6881
  };
6884
6882
  };
6885
6883
  function jt({ ev: t, sizeMeta: a, isSelected: s, onClick: i }) {
6886
- const { day: l, month: h, time: o } = xa(t.date);
6884
+ const { day: l, month: h, time: o } = ya(t.date);
6887
6885
  return /* @__PURE__ */ n(
6888
6886
  "div",
6889
6887
  {
@@ -6906,9 +6904,9 @@ function jt({ ev: t, sizeMeta: a, isSelected: s, onClick: i }) {
6906
6904
  }
6907
6905
  );
6908
6906
  }
6909
- function Bs({ ev: t, sizeMeta: a }) {
6907
+ function Ps({ ev: t, sizeMeta: a }) {
6910
6908
  if (!t) return null;
6911
- const { day: s, month: i, time: l } = xa(t.date);
6909
+ const { day: s, month: i, time: l } = ya(t.date);
6912
6910
  return /* @__PURE__ */ n("div", { className: "bg-white dark:bg-zinc-900 rounded-lg border border-zinc-200 dark:border-zinc-800 p-6", children: [
6913
6911
  /* @__PURE__ */ n("div", { className: "flex items-start gap-4 mb-4", children: [
6914
6912
  /* @__PURE__ */ n("div", { className: "flex-shrink-0", children: [
@@ -6936,24 +6934,24 @@ function Bs({ ev: t, sizeMeta: a }) {
6936
6934
  t.location
6937
6935
  ] }),
6938
6936
  t.url && /* @__PURE__ */ n("div", { className: `flex items-center gap-2 mb-4 text-zinc-600 dark:text-zinc-400 ${a.meta}`, children: [
6939
- /* @__PURE__ */ e(vr, { className: "h-4 w-4" }),
6937
+ /* @__PURE__ */ e(yr, { className: "h-4 w-4" }),
6940
6938
  /* @__PURE__ */ e("span", { className: "text-blue-600 dark:text-blue-400 underline break-all", children: t.url })
6941
6939
  ] }),
6942
6940
  a.showDescription && t.description && /* @__PURE__ */ e("div", { className: "mt-4 pt-4 border-t border-zinc-200 dark:border-zinc-800", children: /* @__PURE__ */ e("p", { className: "text-sm text-zinc-700 dark:text-zinc-300 leading-relaxed", children: t.description }) })
6943
6941
  ] });
6944
6942
  }
6945
- function Vs({
6943
+ function Ls({
6946
6944
  size: t = "md",
6947
6945
  showCheckbox: a = !1,
6948
6946
  checkboxPosition: s = "top-left",
6949
6947
  onSelect: i,
6950
6948
  identity: l = "_id",
6951
6949
  title: h = "Upcoming Events",
6952
- events: o = Ms,
6950
+ events: o = Is,
6953
6951
  selectedIndex: p = 0,
6954
6952
  ...g
6955
6953
  }) {
6956
- const [v, x] = P(p), r = de(t), N = me[r], m = Ps[r], y = o[v] || o[0], z = (D, E) => {
6954
+ const [v, x] = P(p), r = de(t), N = me[r], m = Os[r], y = o[v] || o[0], z = (D, E) => {
6957
6955
  x(E), i?.(D);
6958
6956
  }, $ = r === "lg";
6959
6957
  return /* @__PURE__ */ n(
@@ -6984,7 +6982,7 @@ function Vs({
6984
6982
  },
6985
6983
  D._id || D.id || E
6986
6984
  )) }),
6987
- /* @__PURE__ */ e(Bs, { ev: y, sizeMeta: m })
6985
+ /* @__PURE__ */ e(Ps, { ev: y, sizeMeta: m })
6988
6986
  ] })
6989
6987
  ) : (
6990
6988
  // Small/Medium: Simple list only
@@ -7004,7 +7002,7 @@ function Vs({
7004
7002
  }
7005
7003
  );
7006
7004
  }
7007
- Vs.propTypes = {
7005
+ Ls.propTypes = {
7008
7006
  size: d.string,
7009
7007
  showCheckbox: d.bool,
7010
7008
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -7025,7 +7023,7 @@ Vs.propTypes = {
7025
7023
  ),
7026
7024
  selectedIndex: d.number
7027
7025
  };
7028
- const js = [
7026
+ const Bs = [
7029
7027
  {
7030
7028
  _id: "mail-1",
7031
7029
  sender: "Sender Name",
@@ -7070,7 +7068,7 @@ const js = [
7070
7068
  // pinned: false,
7071
7069
  // important: false,
7072
7070
  // },
7073
- ], _s = {
7071
+ ], Vs = {
7074
7072
  sm: {
7075
7073
  wrap: "max-w-sm w-full",
7076
7074
  listGap: "gap-2",
@@ -7108,7 +7106,7 @@ const js = [
7108
7106
  searchHeight: "h-10"
7109
7107
  }
7110
7108
  };
7111
- function Us({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin: h }) {
7109
+ function js({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin: h }) {
7112
7110
  const o = (g) => {
7113
7111
  g.stopPropagation(), l?.(t);
7114
7112
  }, p = (g) => {
@@ -7126,7 +7124,7 @@ function Us({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
7126
7124
  {
7127
7125
  onClick: o,
7128
7126
  className: "p-1 rounded hover:bg-zinc-200 dark:hover:bg-zinc-700 transition-colors duration-200",
7129
- children: t.starred ? /* @__PURE__ */ e(Nr, { className: "h-4 w-4 fill-yellow-400 text-yellow-400" }) : /* @__PURE__ */ e(wr, { className: "h-4 w-4 text-zinc-400 group-hover:text-yellow-400" })
7127
+ children: t.starred ? /* @__PURE__ */ e(xr, { className: "h-4 w-4 fill-yellow-400 text-yellow-400" }) : /* @__PURE__ */ e(vr, { className: "h-4 w-4 text-zinc-400 group-hover:text-yellow-400" })
7130
7128
  }
7131
7129
  ),
7132
7130
  /* @__PURE__ */ e(
@@ -7134,7 +7132,7 @@ function Us({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
7134
7132
  {
7135
7133
  onClick: p,
7136
7134
  className: "p-1 rounded hover:bg-zinc-200 dark:hover:bg-zinc-700 transition-colors duration-200",
7137
- children: t.pinned ? /* @__PURE__ */ e(kr, { className: "h-4 w-4 fill-blue-500 text-blue-500" }) : /* @__PURE__ */ e(Cr, { className: "h-4 w-4 text-zinc-400 group-hover:text-blue-500" })
7135
+ children: t.pinned ? /* @__PURE__ */ e(Nr, { className: "h-4 w-4 fill-blue-500 text-blue-500" }) : /* @__PURE__ */ e(wr, { className: "h-4 w-4 text-zinc-400 group-hover:text-blue-500" })
7138
7136
  }
7139
7137
  )
7140
7138
  ] }),
@@ -7157,20 +7155,20 @@ function Us({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
7157
7155
  }
7158
7156
  );
7159
7157
  }
7160
- function Gs({
7158
+ function _s({
7161
7159
  size: t = "md",
7162
7160
  showCheckbox: a = !1,
7163
7161
  checkboxPosition: s = "top-left",
7164
7162
  onSelect: i,
7165
7163
  identity: l = "_id",
7166
7164
  title: h = "0365 Mails",
7167
- emails: o = js,
7165
+ emails: o = Bs,
7168
7166
  selectedIndex: p = 0,
7169
7167
  onStar: g,
7170
7168
  onPin: v,
7171
7169
  ...x
7172
7170
  }) {
7173
- const [r, N] = P(p), m = de(t), y = me[m], z = _s[m], $ = (L, j) => {
7171
+ const [r, N] = P(p), m = de(t), y = me[m], z = Vs[m], $ = (L, j) => {
7174
7172
  N(j), i?.(L);
7175
7173
  }, D = (L) => {
7176
7174
  const j = { ...L, starred: !L.starred };
@@ -7193,7 +7191,7 @@ function Gs({
7193
7191
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${y.title}`, children: h }) }),
7194
7192
  /* @__PURE__ */ e(fe, { placeholder: "Type to search..." }),
7195
7193
  /* @__PURE__ */ e("div", { className: "space-y-0", children: o.map((L, j) => /* @__PURE__ */ e(
7196
- Us,
7194
+ js,
7197
7195
  {
7198
7196
  email: L,
7199
7197
  sizeMeta: z,
@@ -7209,7 +7207,7 @@ function Gs({
7209
7207
  }
7210
7208
  );
7211
7209
  }
7212
- Gs.propTypes = {
7210
+ _s.propTypes = {
7213
7211
  size: d.string,
7214
7212
  showCheckbox: d.bool,
7215
7213
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -7233,7 +7231,7 @@ Gs.propTypes = {
7233
7231
  onStar: d.func,
7234
7232
  onPin: d.func
7235
7233
  };
7236
- const qs = [
7234
+ const Us = [
7237
7235
  {
7238
7236
  _id: "contact-1",
7239
7237
  name: "Branden Baker",
@@ -7274,7 +7272,7 @@ const qs = [
7274
7272
  // building: "Security Building",
7275
7273
  // initials: "AM"
7276
7274
  // }
7277
- ], Ys = {
7275
+ ], Gs = {
7278
7276
  sm: {
7279
7277
  wrap: "max-w-sm w-full",
7280
7278
  searchHeight: "h-8",
@@ -7344,7 +7342,7 @@ function _t({ contact: t, sizeMeta: a, isSelected: s, onClick: i }) {
7344
7342
  }
7345
7343
  );
7346
7344
  }
7347
- function Ws({ contact: t, sizeMeta: a }) {
7345
+ function qs({ contact: t, sizeMeta: a }) {
7348
7346
  return t ? /* @__PURE__ */ n("div", { className: "bg-white dark:bg-zinc-900 rounded-lg border border-zinc-200 dark:border-zinc-800 p-6 h-full", children: [
7349
7347
  /* @__PURE__ */ n("div", { className: "flex items-center gap-4 mb-6", children: [
7350
7348
  /* @__PURE__ */ e("div", { className: `${a.avatarSize} flex items-center justify-center bg-gradient-to-br from-blue-500 to-blue-600 rounded-full text-white font-semibold ${a.avatarText} shadow-sm`, children: t.initials }),
@@ -7365,7 +7363,7 @@ function Ws({ contact: t, sizeMeta: a }) {
7365
7363
  ] })
7366
7364
  ] }),
7367
7365
  /* @__PURE__ */ n("div", { className: "flex items-center gap-3", children: [
7368
- /* @__PURE__ */ e(zr, { className: "h-4 w-4 text-zinc-500 dark:text-zinc-400 flex-shrink-0" }),
7366
+ /* @__PURE__ */ e(kr, { className: "h-4 w-4 text-zinc-500 dark:text-zinc-400 flex-shrink-0" }),
7369
7367
  /* @__PURE__ */ n("div", { children: [
7370
7368
  /* @__PURE__ */ e("div", { className: `${a.details} text-zinc-600 dark:text-zinc-400 font-medium`, children: "Email Address" }),
7371
7369
  /* @__PURE__ */ e("div", { className: `${a.details} text-zinc-900 dark:text-zinc-100`, children: t.email })
@@ -7398,7 +7396,7 @@ function Ws({ contact: t, sizeMeta: a }) {
7398
7396
  /* @__PURE__ */ e("p", { className: "text-sm", children: "Select a contact to view details" })
7399
7397
  ] }) });
7400
7398
  }
7401
- function Js({ sizeMeta: t }) {
7399
+ function Ys({ sizeMeta: t }) {
7402
7400
  return /* @__PURE__ */ n("div", { className: `relative ${t.searchHeight} mb-4`, children: [
7403
7401
  /* @__PURE__ */ e(ft, { className: "absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-zinc-400" }),
7404
7402
  /* @__PURE__ */ e(
@@ -7411,18 +7409,18 @@ function Js({ sizeMeta: t }) {
7411
7409
  )
7412
7410
  ] });
7413
7411
  }
7414
- function Xs({
7412
+ function Ws({
7415
7413
  size: t = "md",
7416
7414
  showCheckbox: a = !1,
7417
7415
  checkboxPosition: s = "top-left",
7418
7416
  onSelect: i,
7419
7417
  identity: l = "_id",
7420
7418
  title: h = "Directory",
7421
- contacts: o = qs,
7419
+ contacts: o = Us,
7422
7420
  selectedIndex: p = 0,
7423
7421
  ...g
7424
7422
  }) {
7425
- const [v, x] = P(p), r = de(t), N = me[r], m = Ys[r], y = (D, E) => {
7423
+ const [v, x] = P(p), r = de(t), N = me[r], m = Gs[r], y = (D, E) => {
7426
7424
  x(E), i?.(D);
7427
7425
  }, z = o[v] || o[0], $ = m.layout === "split";
7428
7426
  return /* @__PURE__ */ n(
@@ -7437,7 +7435,7 @@ function Xs({
7437
7435
  ...g,
7438
7436
  children: [
7439
7437
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between mb-4", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${N.title}`, children: h }) }),
7440
- /* @__PURE__ */ e(Js, { sizeMeta: m }),
7438
+ /* @__PURE__ */ e(Ys, { sizeMeta: m }),
7441
7439
  $ ? /* @__PURE__ */ n("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6 min-h-0", children: [
7442
7440
  /* @__PURE__ */ e("div", { className: "space-y-3", children: o.map((D, E) => /* @__PURE__ */ e(
7443
7441
  _t,
@@ -7450,7 +7448,7 @@ function Xs({
7450
7448
  D._id || D.id || E
7451
7449
  )) }),
7452
7450
  /* @__PURE__ */ e(
7453
- Ws,
7451
+ qs,
7454
7452
  {
7455
7453
  contact: z,
7456
7454
  sizeMeta: m
@@ -7474,7 +7472,7 @@ function Xs({
7474
7472
  }
7475
7473
  );
7476
7474
  }
7477
- Xs.propTypes = {
7475
+ Ws.propTypes = {
7478
7476
  size: d.string,
7479
7477
  showCheckbox: d.bool,
7480
7478
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -7496,7 +7494,7 @@ Xs.propTypes = {
7496
7494
  selectedIndex: d.number
7497
7495
  };
7498
7496
  const Te = (t) => new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(Number(t || 0));
7499
- function Qs({ side: t = "left", date: a, title: s, amount: i, kind: l = "payment" }) {
7497
+ function Js({ side: t = "left", date: a, title: s, amount: i, kind: l = "payment" }) {
7500
7498
  return /* @__PURE__ */ n("div", { className: `rounded-xl border border-zinc-200 dark:border-zinc-800 p-3 ${l === "payment" ? "border-l-4 border-green-500" : "border-l-4 border-rose-500"}`, children: [
7501
7499
  /* @__PURE__ */ e("div", { className: "text-xs text-zinc-500", children: a }),
7502
7500
  /* @__PURE__ */ e("div", { className: "mt-1 text-sm text-zinc-700 dark:text-zinc-200", children: s }),
@@ -7512,7 +7510,7 @@ function Qs({ side: t = "left", date: a, title: s, amount: i, kind: l = "payment
7512
7510
  ] })
7513
7511
  ] });
7514
7512
  }
7515
- const Hs = {
7513
+ const Xs = {
7516
7514
  sm: {
7517
7515
  // was: "max-w-md w-full md:w-auto flex-none justify-self-start"
7518
7516
  wrap: "max-w-md w-auto inline-block align-top flex-none justify-self-start",
@@ -7544,7 +7542,7 @@ const Hs = {
7544
7542
  buttonPad: "py-3.5"
7545
7543
  }
7546
7544
  };
7547
- function Zs({
7545
+ function Qs({
7548
7546
  size: t = "md",
7549
7547
  showCheckbox: a = !1,
7550
7548
  checkboxPosition: s = "top-left",
@@ -7574,7 +7572,7 @@ function Zs({
7574
7572
  ],
7575
7573
  ...r
7576
7574
  }) {
7577
- const N = de(t), m = me[N], y = Hs[N];
7575
+ const N = de(t), m = me[N], y = Xs[N];
7578
7576
  return /* @__PURE__ */ n(
7579
7577
  oe,
7580
7578
  {
@@ -7620,7 +7618,7 @@ function Zs({
7620
7618
  ] })
7621
7619
  ] }),
7622
7620
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: x.slice(0, 2).map((z, $) => /* @__PURE__ */ e(
7623
- Qs,
7621
+ Js,
7624
7622
  {
7625
7623
  side: $ === 0 ? "left" : "right",
7626
7624
  date: z.date,
@@ -7641,7 +7639,7 @@ function Zs({
7641
7639
  "aria-label": "View Transactions (mock)",
7642
7640
  children: [
7643
7641
  "View Transactions",
7644
- /* @__PURE__ */ e(Sr, { className: "h-4 w-4" })
7642
+ /* @__PURE__ */ e(Cr, { className: "h-4 w-4" })
7645
7643
  ]
7646
7644
  }
7647
7645
  )
@@ -7649,7 +7647,7 @@ function Zs({
7649
7647
  }
7650
7648
  );
7651
7649
  }
7652
- Zs.propTypes = {
7650
+ Qs.propTypes = {
7653
7651
  size: d.string,
7654
7652
  showCheckbox: d.bool,
7655
7653
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -7670,7 +7668,7 @@ Zs.propTypes = {
7670
7668
  })
7671
7669
  )
7672
7670
  };
7673
- const Ks = {
7671
+ const Hs = {
7674
7672
  sm: {
7675
7673
  wrap: "max-w-xs w-full",
7676
7674
  title: "text-base font-semibold",
@@ -7737,7 +7735,7 @@ function Ut({ leave: t, sizeMeta: a }) {
7737
7735
  ] }, i)) })
7738
7736
  ] });
7739
7737
  }
7740
- function el({
7738
+ function Zs({
7741
7739
  size: t = "md",
7742
7740
  showCheckbox: a = !1,
7743
7741
  checkboxPosition: s = "top-left",
@@ -7747,7 +7745,7 @@ function el({
7747
7745
  term: o = "Fall 2025",
7748
7746
  ...p
7749
7747
  }) {
7750
- const [g, v] = P("vacation"), [x, r] = P(!1), N = de(t), m = me[N], y = Ks[N], z = We.find(($) => $.id === g) || We[0];
7748
+ const [g, v] = P("vacation"), [x, r] = P(!1), N = de(t), m = me[N], y = Hs[N], z = We.find(($) => $.id === g) || We[0];
7751
7749
  return /* @__PURE__ */ n(
7752
7750
  oe,
7753
7751
  {
@@ -7813,7 +7811,7 @@ function el({
7813
7811
  }
7814
7812
  );
7815
7813
  }
7816
- el.propTypes = {
7814
+ Zs.propTypes = {
7817
7815
  size: d.string,
7818
7816
  showCheckbox: d.bool,
7819
7817
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -7822,7 +7820,7 @@ el.propTypes = {
7822
7820
  title: d.string,
7823
7821
  term: d.string
7824
7822
  };
7825
- const tl = [
7823
+ const Ks = [
7826
7824
  {
7827
7825
  id: "admin-files",
7828
7826
  name: "Admin Files",
@@ -7855,7 +7853,7 @@ const tl = [
7855
7853
  // icon: Video,
7856
7854
  // color: "text-purple-500"
7857
7855
  // }
7858
- ], al = [
7856
+ ], el = [
7859
7857
  {
7860
7858
  id: "file-1",
7861
7859
  name: "2024 - Taurus",
@@ -7888,7 +7886,7 @@ const tl = [
7888
7886
  icon: dt,
7889
7887
  color: "text-orange-500"
7890
7888
  }
7891
- ], rl = {
7889
+ ], tl = {
7892
7890
  sm: {
7893
7891
  wrap: "max-w-xs w-full",
7894
7892
  title: "text-base font-semibold",
@@ -7928,7 +7926,7 @@ function Gt({ item: t, sizeMeta: a, showDate: s = !1 }) {
7928
7926
  /* @__PURE__ */ e(xe, { className: "h-4 w-4 text-zinc-400 group-hover:text-zinc-600 dark:group-hover:text-zinc-300 transition-colors duration-200" })
7929
7927
  ] });
7930
7928
  }
7931
- function nl({
7929
+ function al({
7932
7930
  size: t = "md",
7933
7931
  showCheckbox: a = !1,
7934
7932
  checkboxPosition: s = "top-left",
@@ -7938,7 +7936,7 @@ function nl({
7938
7936
  subtitle: o = "Drive Shared",
7939
7937
  ...p
7940
7938
  }) {
7941
- const [g, v] = P(!1), x = de(t), r = me[x], N = rl[x];
7939
+ const [g, v] = P(!1), x = de(t), r = me[x], N = tl[x];
7942
7940
  return /* @__PURE__ */ n(
7943
7941
  oe,
7944
7942
  {
@@ -7970,13 +7968,13 @@ function nl({
7970
7968
  "Download All"
7971
7969
  ] }),
7972
7970
  /* @__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: [
7973
- /* @__PURE__ */ e(Dr, { className: "h-4 w-4" }),
7971
+ /* @__PURE__ */ e(zr, { className: "h-4 w-4" }),
7974
7972
  "Share Drive"
7975
7973
  ] })
7976
7974
  ] })
7977
7975
  ] })
7978
7976
  ] }),
7979
- /* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-3 `, children: tl.map((m) => /* @__PURE__ */ e(
7977
+ /* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-3 `, children: Ks.map((m) => /* @__PURE__ */ e(
7980
7978
  Gt,
7981
7979
  {
7982
7980
  item: m,
@@ -7986,7 +7984,7 @@ function nl({
7986
7984
  )) }),
7987
7985
  N.showRecent && /* @__PURE__ */ n("div", { className: "", children: [
7988
7986
  /* @__PURE__ */ e("h4", { className: `font-semibold text-zinc-900 dark:text-zinc-100 mb-3 ${N.item}`, children: "Recent Files" }),
7989
- /* @__PURE__ */ e("div", { className: "space-y-2", children: al.map((m) => /* @__PURE__ */ e(
7987
+ /* @__PURE__ */ e("div", { className: "space-y-2", children: el.map((m) => /* @__PURE__ */ e(
7990
7988
  Gt,
7991
7989
  {
7992
7990
  item: m,
@@ -8004,7 +8002,7 @@ function nl({
8004
8002
  }
8005
8003
  );
8006
8004
  }
8007
- nl.propTypes = {
8005
+ al.propTypes = {
8008
8006
  size: d.string,
8009
8007
  showCheckbox: d.bool,
8010
8008
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -8013,7 +8011,7 @@ nl.propTypes = {
8013
8011
  title: d.string,
8014
8012
  subtitle: d.string
8015
8013
  };
8016
- const sl = [
8014
+ const rl = [
8017
8015
  {
8018
8016
  id: "alert-1",
8019
8017
  type: "warning",
@@ -8050,7 +8048,7 @@ const sl = [
8050
8048
  // read: true,
8051
8049
  // priority: "medium"
8052
8050
  // }
8053
- ], ll = {
8051
+ ], nl = {
8054
8052
  sm: {
8055
8053
  wrap: "max-w-sm w-full",
8056
8054
  title: "text-sm font-semibold",
@@ -8086,7 +8084,7 @@ const sl = [
8086
8084
  if (!a || a === 0) return t;
8087
8085
  const s = t.split(" ");
8088
8086
  return s.length <= a ? t : s.slice(0, a).join(" ") + "...";
8089
- }, il = (t) => {
8087
+ }, sl = (t) => {
8090
8088
  switch (t) {
8091
8089
  case "warning":
8092
8090
  return Jt;
@@ -8097,7 +8095,7 @@ const sl = [
8097
8095
  default:
8098
8096
  return Wt;
8099
8097
  }
8100
- }, va = (t) => {
8098
+ }, xa = (t) => {
8101
8099
  switch (t) {
8102
8100
  case "warning":
8103
8101
  return {
@@ -8129,8 +8127,8 @@ const sl = [
8129
8127
  };
8130
8128
  }
8131
8129
  };
8132
- function ol({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8133
- const [l, h] = P(!1), o = va(t.type), p = il(t.type);
8130
+ function ll({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8131
+ const [l, h] = P(!1), o = xa(t.type), p = sl(t.type);
8134
8132
  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: [
8135
8133
  /* @__PURE__ */ e(
8136
8134
  "button",
@@ -8153,8 +8151,8 @@ function ol({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8153
8151
  !t.read && /* @__PURE__ */ e("div", { className: "absolute top-3 left-0 w-1 h-1 rounded-full bg-blue-500 transform -translate-x-1/2" })
8154
8152
  ] });
8155
8153
  }
8156
- function cl({ alert: t, onDismiss: a }) {
8157
- const [s, i] = P(!1), l = va("banner"), h = () => {
8154
+ function il({ alert: t, onDismiss: a }) {
8155
+ const [s, i] = P(!1), l = xa("banner"), h = () => {
8158
8156
  i(!0), a?.(t);
8159
8157
  };
8160
8158
  return s ? null : /* @__PURE__ */ e("div", { className: `rounded-lg border p-4 ${l.bg} ${l.border} relative`, children: /* @__PURE__ */ n("div", { className: "flex items-start gap-3", children: [
@@ -8173,18 +8171,18 @@ function cl({ alert: t, onDismiss: a }) {
8173
8171
  )
8174
8172
  ] }) });
8175
8173
  }
8176
- function dl({
8174
+ function ol({
8177
8175
  size: t = "md",
8178
8176
  showCheckbox: a = !1,
8179
8177
  checkboxPosition: s = "top-left",
8180
8178
  onSelect: i,
8181
8179
  identity: l = "_id",
8182
8180
  title: h = "Alerts",
8183
- alerts: o = sl,
8181
+ alerts: o = rl,
8184
8182
  showBanner: p = !0,
8185
8183
  ...g
8186
8184
  }) {
8187
- const [v, x] = P(o), r = de(t), N = me[r], m = ll[r], y = (D) => {
8185
+ const [v, x] = P(o), r = de(t), N = me[r], m = nl[r], y = (D) => {
8188
8186
  x((E) => E.filter((L) => L.id !== D.id));
8189
8187
  }, z = v.find((D) => D.type === "banner"), $ = v.filter((D) => D.type !== "banner");
8190
8188
  return /* @__PURE__ */ n(
@@ -8200,14 +8198,14 @@ function dl({
8200
8198
  children: [
8201
8199
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between ", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${N.title}`, children: h }) }),
8202
8200
  p && z && t !== "sm" && /* @__PURE__ */ e(
8203
- cl,
8201
+ il,
8204
8202
  {
8205
8203
  alert: z,
8206
8204
  onDismiss: y
8207
8205
  }
8208
8206
  ),
8209
8207
  /* @__PURE__ */ e("div", { className: "space-y-0.5", children: $.slice(0, 3).map((D) => /* @__PURE__ */ e(
8210
- ol,
8208
+ ll,
8211
8209
  {
8212
8210
  alert: D,
8213
8211
  sizeMeta: m,
@@ -8220,7 +8218,7 @@ function dl({
8220
8218
  }
8221
8219
  );
8222
8220
  }
8223
- dl.propTypes = {
8221
+ ol.propTypes = {
8224
8222
  size: d.string,
8225
8223
  showCheckbox: d.bool,
8226
8224
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -8240,7 +8238,7 @@ dl.propTypes = {
8240
8238
  ),
8241
8239
  showBanner: d.bool
8242
8240
  };
8243
- const ml = [
8241
+ const cl = [
8244
8242
  {
8245
8243
  id: "video-1",
8246
8244
  title: "ALMA MATER",
@@ -8285,7 +8283,7 @@ const ml = [
8285
8283
  // duration: "2:10",
8286
8284
  // category: "Campus Life"
8287
8285
  // }
8288
- ], ul = {
8286
+ ], dl = {
8289
8287
  sm: {
8290
8288
  wrap: "max-w-sm w-full",
8291
8289
  title: "text-sm font-bold",
@@ -8317,7 +8315,7 @@ const ml = [
8317
8315
  maxTitleLines: 3
8318
8316
  }
8319
8317
  };
8320
- function hl({ video: t, sizeMeta: a }) {
8318
+ function ml({ video: t, sizeMeta: a }) {
8321
8319
  const [s, i] = P(!1);
8322
8320
  return /* @__PURE__ */ n("div", { className: "group cursor-pointer", children: [
8323
8321
  /* @__PURE__ */ n("div", { className: `relative ${a.thumbnailHeight} rounded-lg overflow-hidden bg-zinc-200 dark:bg-zinc-800`, children: [
@@ -8329,7 +8327,7 @@ function hl({ video: t, sizeMeta: a }) {
8329
8327
  className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"
8330
8328
  }
8331
8329
  ),
8332
- /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-12 h-12 bg-white/90 rounded-full flex items-center justify-center transform scale-90 group-hover:scale-100 transition-transform duration-300", children: /* @__PURE__ */ e($r, { className: "h-5 w-5 text-zinc-900 ml-1" }) }) }),
8330
+ /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex items-center justify-center", children: /* @__PURE__ */ e("div", { className: "w-12 h-12 bg-white/90 rounded-full flex items-center justify-center transform scale-90 group-hover:scale-100 transition-transform duration-300", children: /* @__PURE__ */ e(Sr, { className: "h-5 w-5 text-zinc-900 ml-1" }) }) }),
8333
8331
  /* @__PURE__ */ e("div", { className: "absolute bottom-2 right-2 bg-black/80 text-white text-xs px-1.5 py-1 rounded", children: t.duration }),
8334
8332
  s && /* @__PURE__ */ n("div", { className: "absolute top-10 right-2 w-32 bg-white dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md shadow-lg z-10 py-1", children: [
8335
8333
  /* @__PURE__ */ e("button", { className: "w-full px-3 py-2 text-sm text-zinc-700 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-700 text-left", children: "Save" }),
@@ -8350,17 +8348,17 @@ function hl({ video: t, sizeMeta: a }) {
8350
8348
  ] })
8351
8349
  ] });
8352
8350
  }
8353
- function pl({
8351
+ function ul({
8354
8352
  size: t = "md",
8355
8353
  showCheckbox: a = !1,
8356
8354
  checkboxPosition: s = "top-left",
8357
8355
  onSelect: i,
8358
8356
  identity: l = "_id",
8359
8357
  title: h = "Videos",
8360
- videos: o = ml,
8358
+ videos: o = cl,
8361
8359
  ...p
8362
8360
  }) {
8363
- const [g, v] = P(!1), x = de(t), r = me[x], N = ul[x];
8361
+ const [g, v] = P(!1), x = de(t), r = me[x], N = dl[x];
8364
8362
  return /* @__PURE__ */ n(
8365
8363
  oe,
8366
8364
  {
@@ -8395,7 +8393,7 @@ function pl({
8395
8393
  ] })
8396
8394
  ] }),
8397
8395
  /* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-4 `, children: o.slice(0, N.gridCols === "grid-cols-3" ? 6 : 4).map((m) => /* @__PURE__ */ e(
8398
- hl,
8396
+ ml,
8399
8397
  {
8400
8398
  video: m,
8401
8399
  sizeMeta: N
@@ -8410,7 +8408,7 @@ function pl({
8410
8408
  }
8411
8409
  );
8412
8410
  }
8413
- pl.propTypes = {
8411
+ ul.propTypes = {
8414
8412
  size: d.string,
8415
8413
  showCheckbox: d.bool,
8416
8414
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -8429,82 +8427,82 @@ pl.propTypes = {
8429
8427
  )
8430
8428
  };
8431
8429
  export {
8432
- Zs as AccountSummaryMock,
8433
- ws as ActivityMock,
8434
- as as AddUserGroupsRolesModal,
8435
- dl as AlertsMock,
8430
+ Qs as AccountSummaryMock,
8431
+ vs as ActivityMock,
8432
+ es as AddUserGroupsRolesModal,
8433
+ ol as AlertsMock,
8436
8434
  we as Avatar,
8437
- xn as AvatarGroup,
8438
- Sl as Badge,
8439
- kn as Breadcrumbs,
8440
- vn as Button,
8441
- Os as CampusMapMock,
8435
+ fn as AvatarGroup,
8436
+ Cl as Badge,
8437
+ Nn as Breadcrumbs,
8438
+ yn as Button,
8439
+ Rs as CampusMapMock,
8442
8440
  mt as Checkbox,
8443
- Ds as CommunitiesMock,
8444
- Xl as CustomDataGrid,
8445
- _l as CustomDialog,
8446
- Jl as CustomGridToolbar,
8447
- Gl as CustomTab,
8441
+ zs as CommunitiesMock,
8442
+ Wl as CustomDataGrid,
8443
+ Vl as CustomDialog,
8444
+ Yl as CustomGridToolbar,
8445
+ _l as CustomTab,
8448
8446
  sa as DatePicker,
8449
- Dn as DateRangePicker,
8450
- Xs as DirectoryMock,
8451
- nl as DriveMock,
8452
- xs as DynamicConfig,
8453
- Vs as EventsMock,
8454
- Dl as FileUploadModal,
8455
- Yl as FullConfigPage,
8456
- Fl as FullScreenLoader,
8457
- $l as GenericFilter,
8447
+ zn as DateRangePicker,
8448
+ Ws as DirectoryMock,
8449
+ al as DriveMock,
8450
+ fs as DynamicConfig,
8451
+ Ls as EventsMock,
8452
+ zl as FileUploadModal,
8453
+ Gl as FullConfigPage,
8454
+ Tl as FullScreenLoader,
8455
+ Sl as GenericFilter,
8458
8456
  Ce as IconButton,
8459
8457
  X as Input,
8460
- el as LeaveBalanceMock,
8461
- vs as ManageCollectionList,
8462
- En as Modal,
8458
+ Zs as LeaveBalanceMock,
8459
+ ys as ManageCollectionList,
8460
+ An as Modal,
8463
8461
  at as MultiSelect,
8464
- As as NewsMock,
8465
- Gs as O365MailsMock,
8466
- Ln as OptionsMenu,
8467
- Pn as PageHeader,
8468
- Il as PageLayout,
8469
- Tl as Pagination,
8462
+ $s as NewsMock,
8463
+ _s as O365MailsMock,
8464
+ Mn as OptionsMenu,
8465
+ On as PageHeader,
8466
+ El as PageLayout,
8467
+ Dl as Pagination,
8470
8468
  la as RadioGroup,
8471
8469
  fe as SearchBar,
8472
8470
  pt as Select,
8473
8471
  oe as SelectableCard,
8474
- Al as Sidebar,
8472
+ $l as Sidebar,
8475
8473
  oa as Spinner,
8476
8474
  ca as Textarea,
8477
- Wl as ToastProvider,
8475
+ ql as ToastProvider,
8478
8476
  da as ToggleSwitch,
8479
- El as Tooltip,
8480
- Ul as TreeView,
8477
+ Al as Tooltip,
8478
+ jl as TreeView,
8481
8479
  se as UnifyedCoreButton,
8482
- pl as VideosMock,
8483
- Rl as WizardModal,
8484
- pa as adGroupsListSearchApi,
8485
- Ll as axiosDelete,
8480
+ ul as VideosMock,
8481
+ Fl as WizardModal,
8482
+ ha as adGroupsListSearchApi,
8483
+ Ml as axiosDelete,
8486
8484
  Ze as axiosGet,
8487
- Vl as axiosPatch,
8485
+ Ll as axiosPatch,
8488
8486
  bt as axiosPost,
8489
- Bl as axiosPut,
8490
- Ml as cookies,
8491
- Wn as createHttpClient,
8492
- Un as directoryPermissionsApi,
8493
- Gn as filePermissionsApi,
8494
- _n as gateWayUrl,
8487
+ Pl as axiosPut,
8488
+ Il as cookies,
8489
+ qn as createHttpClient,
8490
+ jn as directoryPermissionsApi,
8491
+ _n as filePermissionsApi,
8492
+ Vn as gateWayUrl,
8495
8493
  $e as gatewayBase,
8496
8494
  vt as getBaseUrl,
8497
- Pl as getSnapshot,
8498
- jl as http,
8499
- jn as localStore,
8495
+ Ol as getSnapshot,
8496
+ Bl as http,
8497
+ Bn as localStore,
8500
8498
  Nt as myDriveGatewayBaseV2,
8501
8499
  de as normalizeSize,
8502
8500
  Ye as notify,
8503
- ga as provisioningBase,
8504
- ba as rbacBase,
8505
- fa as searchRolesApi,
8506
- Ol as sessionStore,
8501
+ pa as provisioningBase,
8502
+ ga as rbacBase,
8503
+ ba as searchRolesApi,
8504
+ Rl as sessionStore,
8507
8505
  me as sizeClasses,
8508
- ql as toBrowserLocalTime,
8509
- ha as userSearchBase
8506
+ Ul as toBrowserLocalTime,
8507
+ ua as userSearchBase
8510
8508
  };