unifyedx-storybook-new 0.2.84 → 0.2.85

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 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 Ae, ae as ea, af as xr, ag as vr, ah as Nr, ai as wr, aj as kr, ak as ta, al as Cr, am as zr, an as aa, ao as Sr, ap as dt, aq as ra, ar as Dr } from "./vendor-CU8ed0Ft.js";
4
+ import { Popover as $r, PopoverButton as Tr, PopoverPanel as Ar, Transition as be, Dialog as ye, TransitionChild as ke, DialogPanel as Fe, DialogTitle as tt, TabGroup as Fr, TabList as Er, Tab as ne, TabPanels as Rr, RadioGroup as Ge, Listbox as le, ListboxButton as Ir, ListboxOptions as Or, ListboxOption as Mr, SwitchGroup as Pr, Switch as lt, Menu as Lr, MenuButton as Br, Portal as Vr, MenuItems as jr, MenuItem as _r, DialogBackdrop as Ur } 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 Gr } from "./vendor-lodash-BV9sr8Va.js";
7
+ import { useFloating as qr, offset as Yr, flip as Wr, shift as Jr, autoUpdate as Xr } from "@floating-ui/react";
8
+ import it, { debounce as Qr } from "lodash";
9
+ import { ToastContainer as Hr, Slide as Zr, 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 Kr, S as en, a as tn, F as an, G as rn, b as nn, E as sn, c as ln, C as on, R as cn, d as dn, e as mn, f as un, g as hn, I as pn, h as Dt } from "./vendor-syncfusion-Ep1PWSou.js";
12
+ const gn = (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
+ }, bn = (t) => {
18
+ const a = (t ?? "").trim().toLowerCase(), s = parseInt((a.match(/\d+$/) ?? [0])[0], 10) || 0, i = gn(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
+ }, fn = (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(() => bn(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: fn(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
+ }, yn = ({ 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
+ }, zl = ({
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
+ }, xn = ({
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
+ xn.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 vn = {
134
134
  small: "btn-sm",
135
135
  medium: "btn-md",
136
136
  large: "btn-lg"
137
- }, wn = {
137
+ }, Nn = {
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
+ vn[v],
166
+ Nn[o],
167
167
  {
168
168
  "is-loading": h,
169
169
  "btn-icon-only": L
@@ -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
+ }, wn = ({ 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
+ }, kn = ({ children: t }) => /* @__PURE__ */ e($r, { className: "popover-container", children: t }), Cn = ({ children: t }) => /* @__PURE__ */ e(Tr, { as: "div", children: t }), zn = ({ children: t, className: a }) => /* @__PURE__ */ e(Ar, { 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
+ ] }), Sn = ({
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(kn, { children: [
304
+ /* @__PURE__ */ e(Cn, { 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(zn, { 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
+ }, Dn = {
351
351
  // Documents
352
352
  doc: {
353
353
  type: "document",
@@ -563,7 +563,7 @@ 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 = Dn[s];
567
567
  return i ? /* @__PURE__ */ e("div", { style: { width: a }, className: "flex-shrink-0", children: /* @__PURE__ */ e(
568
568
  Ia,
569
569
  {
@@ -584,11 +584,11 @@ const Nn = {
584
584
  children: /* @__PURE__ */ e(Oa, { 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
+ }, $n = (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
+ }, Sl = ({
592
592
  // --- Modal Control ---
593
593
  isOpen: t,
594
594
  onClose: a,
@@ -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
+ }, Tn = (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
+ }, An = (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), Tn(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
+ }, Dl = ({
825
825
  isOpen: t,
826
826
  onClose: a,
827
827
  onApplyFilters: s,
@@ -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] = An(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
+ Fr,
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(Er, { 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(Rr, { 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
+ }, Fn = ({
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
+ }, $l = ({
1414
1414
  currentPage: t,
1415
1415
  totalItems: a,
1416
1416
  itemsPerPage: s,
@@ -1571,7 +1571,7 @@ const Nn = {
1571
1571
  N(t);
1572
1572
  }, [t]);
1573
1573
  const m = H(
1574
- qr((z) => {
1574
+ Gr((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
+ Ir,
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(Or, { 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
+ Mr,
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
+ }, En = () => {
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 } = En(), 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
+ }, Tl = ({
1784
1784
  navItems: t = [],
1785
1785
  isCollapsed: a = !1,
1786
1786
  onToggleCollapse: s,
@@ -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
+ }, Al = ({ 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(Pr, { 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
+ ] }), Fl = ({
1958
1958
  children: t,
1959
1959
  content: a,
1960
1960
  variant: s = "dark",
@@ -1982,7 +1982,7 @@ const Nn = {
1982
1982
  }
1983
1983
  )
1984
1984
  ] });
1985
- }, In = {
1985
+ }, Rn = {
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
+ }, El = ({
1999
1999
  isOpen: t,
2000
2000
  onClose: a,
2001
2001
  steps: s = {},
@@ -2083,7 +2083,7 @@ const Nn = {
2083
2083
  ie.div,
2084
2084
  {
2085
2085
  custom: l,
2086
- variants: In,
2086
+ variants: Rn,
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
+ }, In = {
2110
2110
  small: "btn-sm",
2111
2111
  medium: "btn-md",
2112
2112
  large: "btn-lg"
2113
- }, Mn = {
2113
+ }, On = {
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
+ In[g],
2138
+ On[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
+ }, Rl = ({
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
+ }, Mn = ({
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($n, { 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(wn, { crumbs: s }) : a ? /* @__PURE__ */ e("p", { className: "page-header-subheading", children: a }) : null
2224
2224
  ] })
2225
- ] }), Ln = ({
2225
+ ] }), Pn = ({
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 } = qr({
2231
+ whileElementsMounted: Xr,
2232
+ middleware: [Yr(5), Wr(), Jr({ 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(Lr, { as: "div", className: "options-menu-wrapper", children: [
2235
+ /* @__PURE__ */ e(Br, { ref: i.setReference, className: "options-menu-trigger", children: /* @__PURE__ */ e(s, { size: 20 }) }),
2236
+ /* @__PURE__ */ e(Vr, { 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
+ jr,
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(_r, { 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 Ln(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 Bn(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 Bn(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, Ln(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 Vn = ma(localStorage), Il = ma(sessionStorage), Ol = {
2327
2327
  get(t) {
2328
2328
  const a = document.cookie.match(
2329
2329
  new RegExp("(^| )" + t + "=([^;]+)")
@@ -2353,17 +2353,17 @@ const jn = ma(localStorage), Ol = ma(sessionStorage), Ml = {
2353
2353
  function vt() {
2354
2354
  return ua() ? window.location.hostname === "localhost" ? "https://dev.unifyed.com" : `${window.location.protocol}//${window.location.hostname}` : "https://dev.unifyed.com";
2355
2355
  }
2356
- function _n() {
2356
+ function jn() {
2357
2357
  if (!ua()) return "";
2358
2358
  try {
2359
- const t = jn.get("userProfile");
2359
+ const t = Vn.get("userProfile");
2360
2360
  return !t && window.location.hostname === "localhost" ? "/unifyd-gateway/api" : (t && typeof t == "object" ? t : {})?.gatewaypath ?? "";
2361
2361
  } catch {
2362
2362
  return "";
2363
2363
  }
2364
2364
  }
2365
2365
  function $e() {
2366
- return `${vt()}${_n()}`;
2366
+ return `${vt()}${jn()}`;
2367
2367
  }
2368
2368
  function ha() {
2369
2369
  return `${$e()}/unifyedstudioutility/commonutility/users/list?sortkey=firstName&sortorder=false&page=0&size=999&onlineusersonly=false`;
@@ -2383,13 +2383,13 @@ function fa() {
2383
2383
  function Nt() {
2384
2384
  return `${$e()}/unifyed-mydrive/v2`;
2385
2385
  }
2386
- function Un() {
2386
+ function _n() {
2387
2387
  return `${Nt()}/directory/permissions`;
2388
2388
  }
2389
- function Gn() {
2389
+ function Un() {
2390
2390
  return `${Nt()}/file/permissions`;
2391
2391
  }
2392
- function Pl() {
2392
+ function Ml() {
2393
2393
  return Object.freeze({
2394
2394
  REACT_APP_BASE_URL: vt(),
2395
2395
  GATEWAY_BASE: $e(),
@@ -2399,11 +2399,11 @@ function Pl() {
2399
2399
  RBAC_BASE: ba(),
2400
2400
  SEARCH_ROLES_API: fa(),
2401
2401
  MY_DRIVE_GATEWAY_BASE_v2: Nt(),
2402
- DIRECTORY_PERMISSIONS_API: Un(),
2403
- FILE_PERMISSIONS_API: Gn()
2402
+ DIRECTORY_PERMISSIONS_API: _n(),
2403
+ FILE_PERMISSIONS_API: Un()
2404
2404
  });
2405
2405
  }
2406
- function qn(t) {
2406
+ function Gn(t) {
2407
2407
  try {
2408
2408
  const a = localStorage.getItem(t);
2409
2409
  return a ? JSON.parse(a) : null;
@@ -2412,7 +2412,7 @@ function qn(t) {
2412
2412
  }
2413
2413
  }
2414
2414
  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 || "";
2415
+ const t = Gn("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
2416
  return {
2417
2417
  Authorization: a ? `Bearer ${a}` : void 0,
2418
2418
  "x-tenant-id": i || void 0,
@@ -2423,7 +2423,7 @@ function It() {
2423
2423
  "x-user-email": o || void 0
2424
2424
  };
2425
2425
  }
2426
- function Yn(t) {
2426
+ function qn(t) {
2427
2427
  if (t && t.isAxiosError) {
2428
2428
  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
2429
  return {
@@ -2451,7 +2451,7 @@ function Yn(t) {
2451
2451
  request: null
2452
2452
  };
2453
2453
  }
2454
- function Wn({
2454
+ function Yn({
2455
2455
  enableAuthRedirect: t = !0,
2456
2456
  defaultOpenHeaders: a = {}
2457
2457
  } = {}) {
@@ -2466,7 +2466,7 @@ function Wn({
2466
2466
  message: v?.statusText || "Request succeeded"
2467
2467
  },
2468
2468
  (v) => {
2469
- const x = Yn(v), r = x.status;
2469
+ const x = qn(v), r = x.status;
2470
2470
  return t && (r === 401 || r === 403) && (window.location.href.includes("/login") || (window.historyPath = window.location.pathname, localStorage.clear(), sessionStorage.clear(), window.location.href = "/login")), Promise.reject(x);
2471
2471
  }
2472
2472
  );
@@ -2508,7 +2508,7 @@ function Wn({
2508
2508
  axiosPatch: g
2509
2509
  };
2510
2510
  }
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) => {
2511
+ const Ee = Yn(), Ze = Ee.axiosGet, Pl = Ee.axiosDelete, bt = Ee.axiosPost, Ll = Ee.axiosPut, Bl = Ee.axiosPatch, Vl = Ee.instance, Wn = async (t, a) => {
2512
2512
  try {
2513
2513
  switch (t) {
2514
2514
  case De.USER: {
@@ -2527,7 +2527,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2527
2527
  } catch (s) {
2528
2528
  console.log("Error searching entities:", s);
2529
2529
  }
2530
- }, Xn = (t) => t.filter((a) => !!a?.email).map((a) => {
2530
+ }, Jn = (t) => t.filter((a) => !!a?.email).map((a) => {
2531
2531
  const s = (a?.firstName ?? "").trim(), i = (a?.lastName ?? "").trim(), l = `${s} ${i}`.trim() || (a.email?.split("@")[0] ?? "Unknown");
2532
2532
  return {
2533
2533
  id: a.email,
@@ -2591,13 +2591,13 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2591
2591
  const l = s.data;
2592
2592
  Array.isArray(l) ? i = l : typeof l == "string" && (i = Ot(l.trim()));
2593
2593
  }
2594
- return Xn(i);
2594
+ return Jn(i);
2595
2595
  }
2596
2596
  }, wt = (t, a) => {
2597
2597
  const [s, i] = P(t);
2598
2598
  return K(
2599
2599
  () => {
2600
- const l = Hr(() => {
2600
+ const l = Qr(() => {
2601
2601
  i(t);
2602
2602
  }, a);
2603
2603
  return l(), () => {
@@ -2607,7 +2607,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2607
2607
  [t, a]
2608
2608
  // Only re-call effect if value or delay changes
2609
2609
  ), s;
2610
- }, Qn = ({
2610
+ }, Xn = ({
2611
2611
  users: t = [],
2612
2612
  groups: a = [],
2613
2613
  roles: s = [],
@@ -2653,9 +2653,9 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2653
2653
  ], Pt = [
2654
2654
  { id: 1, name: $t.View, icon: Qa },
2655
2655
  { id: 2, name: $t.Manage, icon: Ha }
2656
- ], Hn = Ya().shape({
2656
+ ], Qn = Ya().shape({
2657
2657
  pendingInvites: Wa().min(1, "You must add at least one person to invite.")
2658
- }), Zn = ({
2658
+ }), Hn = ({
2659
2659
  entity: t,
2660
2660
  onManage: a,
2661
2661
  onClose: s,
@@ -2673,13 +2673,13 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2673
2673
  formState: { errors: T, isSubmitting: _ }
2674
2674
  } = Za({
2675
2675
  defaultValues: { pendingInvites: [] },
2676
- resolver: tr(Hn)
2676
+ resolver: tr(Qn)
2677
2677
  }), { fields: A, append: u, remove: C, update: M } = Ka({
2678
2678
  control: U,
2679
2679
  name: "pendingInvites"
2680
2680
  }), O = q("pendingInvites");
2681
2681
  K(() => {
2682
- N.length > 1 ? (E(!0), Jn(g.name, N).then((k) => {
2682
+ N.length > 1 ? (E(!0), Wn(g.name, N).then((k) => {
2683
2683
  y(k);
2684
2684
  }).catch((k) => console.error("Search failed:", k)).finally(() => E(!1))) : (y([]), $(/* @__PURE__ */ new Set()));
2685
2685
  }, [N, g]);
@@ -2775,7 +2775,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
2775
2775
  ] }),
2776
2776
  /* @__PURE__ */ n("main", { className: "flex-grow p-4 space-y-6 overflow-y-auto", children: [
2777
2777
  (l === ue.DRIVE || h) && /* @__PURE__ */ e(
2778
- Qn,
2778
+ Xn,
2779
2779
  {
2780
2780
  users: i.users.filter((k) => k.permission !== "remove"),
2781
2781
  groups: i.groups.filter((k) => k.permission !== "remove"),
@@ -3044,7 +3044,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3044
3044
  ] })
3045
3045
  ] }) })
3046
3046
  ] });
3047
- }, Kn = ({
3047
+ }, Zn = ({
3048
3048
  entity: t,
3049
3049
  //entire file or folder details
3050
3050
  onBack: a,
@@ -3209,13 +3209,13 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3209
3209
  ] }) })
3210
3210
  ] })
3211
3211
  );
3212
- }, es = () => /* @__PURE__ */ n("div", { className: "flex items-center gap-4 p-4", children: [
3212
+ }, Kn = () => /* @__PURE__ */ n("div", { className: "flex items-center gap-4 p-4", children: [
3213
3213
  /* @__PURE__ */ e("div", { className: "h-10 w-10 rounded-full bg-gray-200 animate-pulse" }),
3214
3214
  /* @__PURE__ */ n("div", { className: "flex-grow space-y-2", children: [
3215
3215
  /* @__PURE__ */ e("div", { className: "h-4 w-3/5 rounded bg-gray-200 animate-pulse" }),
3216
3216
  /* @__PURE__ */ e("div", { className: "h-3 w-4/5 rounded bg-gray-200 animate-pulse" })
3217
3217
  ] })
3218
- ] }), ts = ({
3218
+ ] }), es = ({
3219
3219
  entity: t,
3220
3220
  // { id, name, type: "group" | "role" }
3221
3221
  onBack: a,
@@ -3238,7 +3238,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3238
3238
  exit: { opacity: 0, x: -20 }
3239
3239
  }, N = () => l ? (
3240
3240
  // Show 5 skeleton items while loading
3241
- /* @__PURE__ */ e("div", { children: Array.from({ length: 5 }).map((m, y) => /* @__PURE__ */ e(es, {}, y)) })
3241
+ /* @__PURE__ */ e("div", { children: Array.from({ length: 5 }).map((m, y) => /* @__PURE__ */ e(Kn, {}, y)) })
3242
3242
  ) : v.length === 0 ? /* @__PURE__ */ n(
3243
3243
  ie.div,
3244
3244
  {
@@ -3326,7 +3326,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3326
3326
  INVITE: "invite",
3327
3327
  MANAGE: "manage",
3328
3328
  MEMBERS: "members"
3329
- }, as = ({
3329
+ }, ts = ({
3330
3330
  existingShares: t = {
3331
3331
  users: [],
3332
3332
  groups: [],
@@ -3378,7 +3378,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3378
3378
  transition: { duration: 0.3, ease: "easeInOut" },
3379
3379
  className: "absolute top-0 left-0 w-full h-full",
3380
3380
  children: /* @__PURE__ */ e(
3381
- Kn,
3381
+ Zn,
3382
3382
  {
3383
3383
  entity: i,
3384
3384
  onBack: T,
@@ -3402,7 +3402,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3402
3402
  transition: { duration: 0.3, ease: "easeInOut" },
3403
3403
  className: "absolute top-0 left-0 w-full h-full",
3404
3404
  children: /* @__PURE__ */ e(
3405
- ts,
3405
+ es,
3406
3406
  {
3407
3407
  entity: m,
3408
3408
  onBack: T,
@@ -3425,7 +3425,7 @@ const Ee = Wn(), Ze = Ee.axiosGet, Ll = Ee.axiosDelete, bt = Ee.axiosPost, Bl =
3425
3425
  transition: { duration: 0.3, ease: "easeInOut" },
3426
3426
  className: "absolute top-0 left-0 w-full h-full",
3427
3427
  children: /* @__PURE__ */ e(
3428
- Zn,
3428
+ Hn,
3429
3429
  {
3430
3430
  entity: i,
3431
3431
  onManage: Y,
@@ -3638,7 +3638,7 @@ at.defaultProps = {
3638
3638
  getOptionId: (t) => String(t.id),
3639
3639
  getOptionLabel: (t) => t.name
3640
3640
  };
3641
- const _l = ({
3641
+ const jl = ({
3642
3642
  isOpen: t = !1,
3643
3643
  setIsOpen: a,
3644
3644
  content: s,
@@ -3661,7 +3661,7 @@ const _l = ({
3661
3661
  className: "relative z-50 overflow-y-auto",
3662
3662
  children: [
3663
3663
  /* @__PURE__ */ e(
3664
- Gr,
3664
+ Ur,
3665
3665
  {
3666
3666
  className: "fixed inset-0 bg-black/30",
3667
3667
  onClick: g
@@ -3721,7 +3721,7 @@ const _l = ({
3721
3721
  }
3722
3722
  );
3723
3723
  };
3724
- function rs({ listeners: t = {}, attributes: a = {} }) {
3724
+ function as({ listeners: t = {}, attributes: a = {} }) {
3725
3725
  return /* @__PURE__ */ e(
3726
3726
  "button",
3727
3727
  {
@@ -3735,7 +3735,7 @@ function rs({ listeners: t = {}, attributes: a = {} }) {
3735
3735
  }
3736
3736
  );
3737
3737
  }
3738
- function ns({
3738
+ function rs({
3739
3739
  node: t,
3740
3740
  depth: a,
3741
3741
  expanded: s,
@@ -3754,7 +3754,7 @@ function ns({
3754
3754
  const A = Y.trim();
3755
3755
  U(!1), A && A !== t.name ? o?.(t, A) : q(t.name);
3756
3756
  }, _ = ee(() => /* @__PURE__ */ e(
3757
- Ln,
3757
+ Pn,
3758
3758
  {
3759
3759
  options: [
3760
3760
  { action: "create", label: "Create sub-folder" },
@@ -3791,7 +3791,7 @@ function ns({
3791
3791
  autoFocus: !0
3792
3792
  }
3793
3793
  ) : /* @__PURE__ */ e("span", { onDoubleClick: () => U(!0), children: t.name }) }),
3794
- /* @__PURE__ */ e(rs, { listeners: z, attributes: y }),
3794
+ /* @__PURE__ */ e(as, { listeners: z, attributes: y }),
3795
3795
  /* @__PURE__ */ e("div", { className: "tv-actions", children: g ? g(t, {
3796
3796
  onCreateChild: () => h?.(t),
3797
3797
  onRename: () => U(!0),
@@ -3801,8 +3801,8 @@ function ns({
3801
3801
  }
3802
3802
  );
3803
3803
  }
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 }) {
3804
+ const ns = (t) => String(t.id ?? t._id), ss = (t) => t.parent !== void 0 ? String(t.parent) : t.parentId != null ? String(t.parentId) : "root", ls = (t) => t.name ?? t.label ?? "", is = (t) => Array.isArray(t) && t.some((a) => Array.isArray(a.children));
3805
+ function os(t, { rootId: a, getId: s, getParent: i, getName: l }) {
3806
3806
  const h = /* @__PURE__ */ new Map();
3807
3807
  t.forEach((p) => {
3808
3808
  const g = s(p);
@@ -3820,7 +3820,7 @@ function cs(t, { rootId: a, getId: s, getParent: i, getName: l }) {
3820
3820
  g !== a && h.has(g) ? h.get(g).children.push(p) : o.push(p);
3821
3821
  }), { roots: o, byId: h };
3822
3822
  }
3823
- function ds(t, { rootId: a, getId: s, getName: i }) {
3823
+ function cs(t, { rootId: a, getId: s, getName: i }) {
3824
3824
  const l = /* @__PURE__ */ new Map();
3825
3825
  function h(p, g) {
3826
3826
  const v = s(p), x = {
@@ -3835,7 +3835,7 @@ function ds(t, { rootId: a, getId: s, getName: i }) {
3835
3835
  return { roots: t.map((p) => h(p, null)), byId: l };
3836
3836
  }
3837
3837
  const Pe = (t) => t.map((a) => ({ ...a, children: Pe(a.children || []) }));
3838
- function ms(t, a) {
3838
+ function ds(t, a) {
3839
3839
  let s = null;
3840
3840
  function i(h) {
3841
3841
  return h.map((o) => {
@@ -3850,7 +3850,7 @@ function ms(t, a) {
3850
3850
  }
3851
3851
  return { newRoots: i(t), removed: s };
3852
3852
  }
3853
- function us(t, a, s) {
3853
+ function ms(t, a, s) {
3854
3854
  function i(l) {
3855
3855
  return l.map((h) => {
3856
3856
  if (h.id === a)
@@ -3874,13 +3874,13 @@ function ya(t, a, s = null) {
3874
3874
  }
3875
3875
  return null;
3876
3876
  }
3877
- function Ul({
3877
+ function _l({
3878
3878
  data: t = [],
3879
3879
  rootId: a = "root",
3880
3880
  title: s = "Folders",
3881
- getId: i = ss,
3882
- getParent: l = ls,
3883
- getName: h = is,
3881
+ getId: i = ns,
3882
+ getParent: l = ss,
3883
+ getName: h = ls,
3884
3884
  onSelect: o,
3885
3885
  onCreateRoot: p,
3886
3886
  onCreateChild: g,
@@ -3892,7 +3892,7 @@ function Ul({
3892
3892
  // ← allow root moves by default now
3893
3893
  indentUnit: y = 24
3894
3894
  }) {
3895
- const { roots: z } = ee(() => os(t) ? ds(t, { rootId: a, getId: i, getName: h }) : cs(
3895
+ const { roots: z } = ee(() => is(t) ? cs(t, { rootId: a, getId: i, getName: h }) : os(
3896
3896
  t.map((b) => ({ ...b })),
3897
3897
  { rootId: a, getId: i, getParent: l, getName: h }
3898
3898
  ), [t, a, i, l, h]), [$, D] = P({}), E = H((b) => {
@@ -3940,16 +3940,16 @@ function Ul({
3940
3940
  U(Pe(z));
3941
3941
  return;
3942
3942
  }
3943
- const R = Pe(j), { newRoots: V, removed: F } = ms(R, w);
3943
+ const R = Pe(j), { newRoots: V, removed: F } = ds(R, w);
3944
3944
  if (!F) return;
3945
- const G = us(V, I, F);
3945
+ const G = ms(V, I, F);
3946
3946
  U(G), r?.({ sourceId: w, destParentId: I, newTree: G });
3947
3947
  },
3948
3948
  [j, z, a, m, y, r]
3949
3949
  ), O = H(
3950
3950
  (b, c = 0) => b.map((f) => /* @__PURE__ */ n(ae.Fragment, { children: [
3951
3951
  /* @__PURE__ */ e(
3952
- ns,
3952
+ rs,
3953
3953
  {
3954
3954
  node: f,
3955
3955
  depth: c,
@@ -4008,7 +4008,7 @@ function Ul({
4008
4008
  function ze(...t) {
4009
4009
  return t.filter(Boolean).join(" ");
4010
4010
  }
4011
- const Gl = ({
4011
+ const Ul = ({
4012
4012
  tabs: t = [],
4013
4013
  keepMounted: a = !0,
4014
4014
  orientation: s = "horizontal",
@@ -4037,11 +4037,11 @@ const Gl = ({
4037
4037
  ] })
4038
4038
  ) });
4039
4039
  };
4040
- function ql(t, a = "YYYY-MM-DD HH:mm:ss") {
4040
+ function Gl(t, a = "YYYY-MM-DD HH:mm:ss") {
4041
4041
  return t ? (t.endsWith("Z") || /[+\-]\d{2}:?\d{2}$/.test(t) ? St.parseZone(t) : St.utc(t)).local().format(a) : null;
4042
4042
  }
4043
4043
  d.string;
4044
- function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4044
+ function us({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4045
4045
  console.log(t);
4046
4046
  const [l, h] = ae.useState(t), [o, p] = ae.useState(() => {
4047
4047
  const r = a && a[t.key] || {};
@@ -4373,7 +4373,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4373
4373
  }
4374
4374
  ) }),
4375
4375
  r.fieldtype === "daterange" && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
4376
- Dn,
4376
+ Sn,
4377
4377
  {
4378
4378
  label: r.label,
4379
4379
  value: o[r.key] || { from: null, to: null },
@@ -4543,7 +4543,7 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4543
4543
  ] }),
4544
4544
  r.fieldtype === "managecollectionlist" && /* @__PURE__ */ n("div", { children: [
4545
4545
  /* @__PURE__ */ e(
4546
- vs,
4546
+ xs,
4547
4547
  {
4548
4548
  endpoints: r.endpoints || {},
4549
4549
  initialData: o[r.key] || r.initialData || [],
@@ -4575,8 +4575,8 @@ function hs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4575
4575
  ] }, N)) })
4576
4576
  ] }) });
4577
4577
  }
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 = {} }) {
4578
+ const hs = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex -space-x-2", children: t });
4579
+ function ps({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4580
4580
  console.log(`[DynamicConfig/DataTableRenderer] Component loaded for section: ${t.key}`);
4581
4581
  const [l, h] = P(t), [o, p] = P(null), [g, v] = P(null);
4582
4582
  console.log(`[DataTableRenderer] ${l.key} - Received props:`, { item: t, initialData: a });
@@ -4870,7 +4870,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4870
4870
  ...f.roles || []
4871
4871
  ];
4872
4872
  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(
4873
+ /* @__PURE__ */ e(hs, { children: w.length > 0 ? w.slice(0, 3).map((S, I) => /* @__PURE__ */ e(
4874
4874
  we,
4875
4875
  {
4876
4876
  size: "small",
@@ -5070,7 +5070,7 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5070
5070
  roles: x[o][g].roles || []
5071
5071
  } : { users: [], groups: [], roles: [] };
5072
5072
  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,
5073
+ ts,
5074
5074
  {
5075
5075
  isOpen: !0,
5076
5076
  onClose: () => {
@@ -5084,21 +5084,21 @@ function gs({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5084
5084
  })()
5085
5085
  ] });
5086
5086
  }
5087
- const bs = ({ item: t }) => /* @__PURE__ */ n("div", { className: "p-3 rounded-xl border border-dashed text-sm opacity-70", children: [
5087
+ const gs = ({ item: t }) => /* @__PURE__ */ n("div", { className: "p-3 rounded-xl border border-dashed text-sm opacity-70", children: [
5088
5088
  "Unknown type:",
5089
5089
  " ",
5090
5090
  /* @__PURE__ */ e("span", { className: "font-mono", children: String(t?.type ?? "N/A") })
5091
5091
  ] }), Ke = /* @__PURE__ */ Object.create(null);
5092
- Ke.section = hs;
5093
- Ke.datatable = gs;
5094
- function fs(t) {
5092
+ Ke.section = us;
5093
+ Ke.datatable = ps;
5094
+ function bs(t) {
5095
5095
  return typeof t == "string" ? t.trim() : t && typeof t == "object" ? String(t.type || "").trim() : "";
5096
5096
  }
5097
- function ys(t) {
5098
- const a = fs(t);
5099
- return Ke[a] || Ke[a.toLowerCase?.()] || bs;
5097
+ function fs(t) {
5098
+ const a = bs(t);
5099
+ return Ke[a] || Ke[a.toLowerCase?.()] || gs;
5100
5100
  }
5101
- function xs({
5101
+ function ys({
5102
5102
  appid: t,
5103
5103
  configdata: a = null,
5104
5104
  disableApi: s = !1,
@@ -5318,7 +5318,7 @@ function xs({
5318
5318
  children: [
5319
5319
  N && /* @__PURE__ */ e("div", { className: "flex justify-center items-center h-64", children: /* @__PURE__ */ e(oa, { size: "large" }) }),
5320
5320
  !N && O?.map((b, c) => {
5321
- const f = ys(b.type);
5321
+ const f = fs(b.type);
5322
5322
  if (f && f !== "UnknownType")
5323
5323
  return /* @__PURE__ */ e(
5324
5324
  f,
@@ -5358,7 +5358,7 @@ function xs({
5358
5358
  ] })
5359
5359
  ] });
5360
5360
  }
5361
- const Yl = ({
5361
+ const ql = ({
5362
5362
  config: t,
5363
5363
  appid: a = "Configuration-Page",
5364
5364
  disableApi: s = !1,
@@ -5470,7 +5470,7 @@ const Yl = ({
5470
5470
  configuration: m
5471
5471
  }), [m]), T = ee(() => [
5472
5472
  { label: "Overview", content: A(Y) },
5473
- i && { label: "Configuration", content: /* @__PURE__ */ e(xs, { appid: a, configdata: q, disableApi: s, onSave: E, onShowCancelModal: $, onCancel: L }) }
5473
+ i && { label: "Configuration", content: /* @__PURE__ */ e(ys, { appid: a, configdata: q, disableApi: s, onSave: E, onShowCancelModal: $, onCancel: L }) }
5474
5474
  ].filter(Boolean), [a, q, s, E, $, L, Y]);
5475
5475
  function _(u) {
5476
5476
  return u ? u.includes("<svg") ? /* @__PURE__ */ e("div", { dangerouslySetInnerHTML: { __html: u } }) : u : "📱";
@@ -5511,7 +5511,7 @@ const Yl = ({
5511
5511
  }
5512
5512
  return /* @__PURE__ */ n("div", { className: "full-config-page", children: [
5513
5513
  /* @__PURE__ */ e(
5514
- Pn,
5514
+ Mn,
5515
5515
  {
5516
5516
  heading: y.heading,
5517
5517
  subHeading: z.length > 0 ? void 0 : y.subHeading,
@@ -5548,7 +5548,7 @@ const Yl = ({
5548
5548
  /* @__PURE__ */ e("div", { className: "p-8 h-full overflow-y-auto", children: T[l].content })
5549
5549
  ] }),
5550
5550
  /* @__PURE__ */ e(
5551
- En,
5551
+ Fn,
5552
5552
  {
5553
5553
  isOpen: o,
5554
5554
  onClose: D,
@@ -5560,7 +5560,7 @@ const Yl = ({
5560
5560
  }
5561
5561
  )
5562
5562
  ] });
5563
- }, vs = ({
5563
+ }, xs = ({
5564
5564
  className: t = "",
5565
5565
  onCollectionChange: a,
5566
5566
  showSearch: s = !0,
@@ -5755,11 +5755,11 @@ const Yl = ({
5755
5755
  }) })
5756
5756
  ] });
5757
5757
  };
5758
- function Wl({ children: t }) {
5758
+ function Yl({ children: t }) {
5759
5759
  return /* @__PURE__ */ n(te, { children: [
5760
5760
  t,
5761
5761
  /* @__PURE__ */ e(
5762
- Zr,
5762
+ Hr,
5763
5763
  {
5764
5764
  position: "bottom-right",
5765
5765
  autoClose: 3500,
@@ -5769,7 +5769,7 @@ function Wl({ children: t }) {
5769
5769
  pauseOnFocusLoss: !1,
5770
5770
  draggable: !0,
5771
5771
  pauseOnHover: !0,
5772
- transition: Kr,
5772
+ transition: Zr,
5773
5773
  limit: 4,
5774
5774
  closeButton: !0,
5775
5775
  bodyClassName: "ui-toast__body",
@@ -5824,7 +5824,7 @@ const Lt = () => {
5824
5824
  },
5825
5825
  { ...Me, ...s }
5826
5826
  )
5827
- }, Jl = ({
5827
+ }, Wl = ({
5828
5828
  heading: t = "Data Grid",
5829
5829
  subheading: a = "",
5830
5830
  totalCount: s = 0,
@@ -6000,7 +6000,6 @@ const Lt = () => {
6000
6000
  se,
6001
6001
  {
6002
6002
  label: p,
6003
- icon: xr,
6004
6003
  onClick: h,
6005
6004
  size: "small",
6006
6005
  ariaLabel: "Add New",
@@ -6011,7 +6010,7 @@ const Lt = () => {
6011
6010
  ] })
6012
6011
  ] });
6013
6012
  };
6014
- function Xl(t) {
6013
+ function Jl(t) {
6015
6014
  const {
6016
6015
  data: a = [],
6017
6016
  totalCount: s = 0,
@@ -6058,8 +6057,8 @@ function Xl(t) {
6058
6057
  enableSimpleMultiRowSelection: !0
6059
6058
  } : B;
6060
6059
  }, [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;
6060
+ const B = [Kr];
6061
+ return (E || D) && B.push(en), p && B.push(tn), g && B.push(an), v && B.push(rn), z && B.push(nn), N && B.push(sn), m && B.push(ln), y && B.push(on), r && B.push(cn), x && B.push(dn), B.push(mn), B;
6063
6062
  }, [
6064
6063
  p,
6065
6064
  g,
@@ -6203,7 +6202,7 @@ function Xl(t) {
6203
6202
  allowUnsort: !1
6204
6203
  }, [C, w, I]);
6205
6204
  return /* @__PURE__ */ n(
6206
- hn,
6205
+ un,
6207
6206
  {
6208
6207
  id: i,
6209
6208
  ref: A,
@@ -6229,8 +6228,8 @@ function Xl(t) {
6229
6228
  cssClass: "custom-grid-padding",
6230
6229
  ...M,
6231
6230
  children: [
6232
- /* @__PURE__ */ e(pn, { children: Na() }),
6233
- /* @__PURE__ */ e(gn, { services: V })
6231
+ /* @__PURE__ */ e(hn, { children: Na() }),
6232
+ /* @__PURE__ */ e(pn, { services: V })
6234
6233
  ]
6235
6234
  }
6236
6235
  );
@@ -6257,7 +6256,7 @@ const de = (t) => {
6257
6256
  title: "text-lg",
6258
6257
  meta: "text-sm"
6259
6258
  }
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;
6259
+ }, vs = (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
6260
  function oe({
6262
6261
  children: t,
6263
6262
  className: a = "",
@@ -6269,7 +6268,7 @@ function oe({
6269
6268
  details: o = {},
6270
6269
  ...p
6271
6270
  }) {
6272
- const g = He(), v = Ns(p, h), x = (N) => {
6271
+ const g = He(), v = vs(p, h), x = (N) => {
6273
6272
  l?.({
6274
6273
  key: v,
6275
6274
  checked: N.target.checked,
@@ -6305,7 +6304,7 @@ oe.propTypes = {
6305
6304
  identity: d.oneOfType([d.string, d.func]),
6306
6305
  details: d.object
6307
6306
  };
6308
- function ws({
6307
+ function Ns({
6309
6308
  size: t = "md",
6310
6309
  showCheckbox: a = !1,
6311
6310
  checkboxPosition: s = "top-left",
@@ -6389,7 +6388,7 @@ function ws({
6389
6388
  }
6390
6389
  );
6391
6390
  }
6392
- ws.propTypes = {
6391
+ Ns.propTypes = {
6393
6392
  size: d.string,
6394
6393
  showCheckbox: d.bool,
6395
6394
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -6403,7 +6402,7 @@ ws.propTypes = {
6403
6402
  imageUrl: d.string,
6404
6403
  description: d.string
6405
6404
  };
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 = [
6405
+ const ws = "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", ks = () => /* @__PURE__ */ e("span", { className: "ml-1 inline-block h-2.5 w-2.5 rounded-full bg-emerald-500 align-middle", "aria-label": "verified" }), Cs = [
6407
6406
  {
6408
6407
  _id: "cm-1",
6409
6408
  name: "All Students",
@@ -6422,13 +6421,13 @@ const ks = "px-2 py-1 rounded-full text-[11px] font-semibold tracking-wide borde
6422
6421
  joined: !0,
6423
6422
  description: "What is Academic Advising? The mission of the Academic Advising Department at..."
6424
6423
  }
6425
- ], Ss = {
6424
+ ], zs = {
6426
6425
  sm: { wrap: "max-w-md", thumb: "h-14 w-14", name: "text-sm", desc: "text-[13px]" },
6427
6426
  md: { wrap: "max-w-3xl", thumb: "h-16 w-16", name: "text-base", desc: "text-sm" },
6428
6427
  lg: { wrap: "w-full", thumb: "h-20 w-20", name: "text-lg", desc: "text-base" }
6429
6428
  // lg occupies full width
6430
6429
  };
6431
- function Ds({
6430
+ function Ss({
6432
6431
  size: t = "md",
6433
6432
  showCheckbox: a = !1,
6434
6433
  checkboxPosition: s = "top-left",
@@ -6437,11 +6436,11 @@ function Ds({
6437
6436
  title: h = "Communities",
6438
6437
  activeTab: o = "joined",
6439
6438
  // "joined" | "suggested"
6440
- items: p = zs,
6439
+ items: p = Cs,
6441
6440
  // spread for identity (_id/instanceId/etc)
6442
6441
  ...g
6443
6442
  }) {
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"}`;
6443
+ const v = de(t), x = me[v], r = zs[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
6444
  return /* @__PURE__ */ n(
6446
6445
  oe,
6447
6446
  {
@@ -6491,10 +6490,10 @@ function Ds({
6491
6490
  /* @__PURE__ */ n("div", { className: "min-w-0", children: [
6492
6491
  /* @__PURE__ */ n("div", { className: `flex items-center gap-1 font-semibold ${r.name}`, children: [
6493
6492
  /* @__PURE__ */ e("span", { className: "truncate", children: m.name }),
6494
- /* @__PURE__ */ e(Cs, {})
6493
+ /* @__PURE__ */ e(ks, {})
6495
6494
  ] }),
6496
6495
  /* @__PURE__ */ n("div", { className: "flex gap-1 justify-center items-center", children: [
6497
- /* @__PURE__ */ n(xn, { children: [
6496
+ /* @__PURE__ */ n(yn, { children: [
6498
6497
  /* @__PURE__ */ e(we, { size: "small", src: m.avatar, name: "John" }),
6499
6498
  /* @__PURE__ */ e(we, { size: "small", src: m.avatar, name: "Omi" }),
6500
6499
  /* @__PURE__ */ e(we, { size: "small", src: m.avatar, name: "Raj" })
@@ -6505,7 +6504,7 @@ function Ds({
6505
6504
  " Members"
6506
6505
  ] })
6507
6506
  ] }),
6508
- /* @__PURE__ */ e("div", { className: "mt-2", children: /* @__PURE__ */ e("span", { className: ks, children: m.category }) })
6507
+ /* @__PURE__ */ e("div", { className: "mt-2", children: /* @__PURE__ */ e("span", { className: ws, children: m.category }) })
6509
6508
  ] }),
6510
6509
  m.joined && /* @__PURE__ */ e(
6511
6510
  "span",
@@ -6544,7 +6543,7 @@ function Ds({
6544
6543
  }
6545
6544
  );
6546
6545
  }
6547
- Ds.propTypes = {
6546
+ Ss.propTypes = {
6548
6547
  size: d.string,
6549
6548
  showCheckbox: d.bool,
6550
6549
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -6564,7 +6563,7 @@ Ds.propTypes = {
6564
6563
  })
6565
6564
  )
6566
6565
  };
6567
- const $s = [
6566
+ const Ds = [
6568
6567
  {
6569
6568
  _id: "nw-1",
6570
6569
  title: "KCC’s 3rd Annual Community & Business Partners Luncheon",
@@ -6589,7 +6588,7 @@ const $s = [
6589
6588
  thumb: "https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=640&auto=format&fit=crop",
6590
6589
  excerpt: "Community and business partners joined KCC leadership to recognize outstanding collaborations and celebrate student success…"
6591
6590
  }
6592
- ], Ts = {
6591
+ ], $s = {
6593
6592
  sm: {
6594
6593
  wrap: "max-w-md",
6595
6594
  itemThumb: "h-14 w-20",
@@ -6614,18 +6613,18 @@ const $s = [
6614
6613
  excerpt: "text-sm text-zinc-600 dark:text-zinc-300 line-clamp-2"
6615
6614
  }
6616
6615
  }, 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({
6616
+ function Ts({
6618
6617
  size: t = "md",
6619
6618
  showCheckbox: a = !1,
6620
6619
  checkboxPosition: s = "top-left",
6621
6620
  onSelect: i,
6622
6621
  identity: l = "_id",
6623
6622
  title: h = "News",
6624
- items: o = $s,
6623
+ items: o = Ds,
6625
6624
  // spread for identity fields: _id / id / instanceId etc.
6626
6625
  ...p
6627
6626
  }) {
6628
- const g = de(t), v = me[g], x = Ts[g];
6627
+ const g = de(t), v = me[g], x = $s[g];
6629
6628
  return /* @__PURE__ */ n(
6630
6629
  oe,
6631
6630
  {
@@ -6682,7 +6681,7 @@ function As({
6682
6681
  }
6683
6682
  );
6684
6683
  }
6685
- As.propTypes = {
6684
+ Ts.propTypes = {
6686
6685
  size: d.string,
6687
6686
  showCheckbox: d.bool,
6688
6687
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -6700,7 +6699,7 @@ As.propTypes = {
6700
6699
  })
6701
6700
  )
6702
6701
  };
6703
- const Fs = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], Es = {
6702
+ const As = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], Fs = {
6704
6703
  sm: {
6705
6704
  wrap: "max-w-md w-full md:w-auto flex-none justify-self-start",
6706
6705
  mapH: "h-48",
@@ -6722,15 +6721,15 @@ const Fs = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], Es = {
6722
6721
  searchH: "h-11 text-base",
6723
6722
  chipGap: "gap-3.5"
6724
6723
  }
6725
- }, Rs = ({ label: t, active: a = !1, size: s = "md", className: i = "" }) => {
6724
+ }, Es = ({ label: t, active: a = !1, size: s = "md", className: i = "" }) => {
6726
6725
  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
6726
  sm: "h-8 px-3 text-[11px] font-semibold",
6728
6727
  md: "h-9 px-3.5 text-[13px] font-semibold",
6729
6728
  lg: "h-10 px-4 text-sm font-semibold"
6730
6729
  }, 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
6730
  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({
6731
+ }, Rs = (t, a = 12) => `https://www.google.com/maps?q=${encodeURIComponent(t)}&z=${a}&output=embed`;
6732
+ function Is({
6734
6733
  size: t = "md",
6735
6734
  showCheckbox: a = !1,
6736
6735
  checkboxPosition: s = "top-left",
@@ -6738,7 +6737,7 @@ function Os({
6738
6737
  identity: l = "_id",
6739
6738
  title: h = "Campus Map",
6740
6739
  campusName: o = "Morningside Heights Campus",
6741
- filters: p = Fs,
6740
+ filters: p = As,
6742
6741
  activeFilter: g = "All",
6743
6742
  // NEW: iframe controls
6744
6743
  mapQuery: v = "Florida",
@@ -6747,7 +6746,7 @@ function Os({
6747
6746
  // optional full embed URL override
6748
6747
  ...N
6749
6748
  }) {
6750
- const m = de(t), y = me[m], z = Es[m], $ = r || Is(v, x);
6749
+ const m = de(t), y = me[m], z = Fs[m], $ = r || Rs(v, x);
6751
6750
  return /* @__PURE__ */ e(
6752
6751
  oe,
6753
6752
  {
@@ -6781,7 +6780,7 @@ function Os({
6781
6780
  /* @__PURE__ */ e("div", { className: "h-8 w-8 rounded-full bg-white/90 border border-zinc-300 flex items-center justify-center", children: "›" })
6782
6781
  ] })
6783
6782
  ] }),
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)) }) }),
6783
+ /* @__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(Es, { label: D, active: D === g, size: m }, D)) }) }),
6785
6784
  /* @__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
6785
  /* @__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
6786
  /* @__PURE__ */ e("span", { className: "ml-2 text-zinc-500 dark:text-zinc-400", children: "Search places" })
@@ -6790,7 +6789,7 @@ function Os({
6790
6789
  }
6791
6790
  );
6792
6791
  }
6793
- Os.propTypes = {
6792
+ Is.propTypes = {
6794
6793
  size: d.string,
6795
6794
  showCheckbox: d.bool,
6796
6795
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -6806,7 +6805,7 @@ Os.propTypes = {
6806
6805
  mapUrl: d.string
6807
6806
  // optional full embed URL override
6808
6807
  };
6809
- const Ms = [
6808
+ const Os = [
6810
6809
  {
6811
6810
  _id: "ev-1",
6812
6811
  title: "Warhawk Weekly 10-1: Master the future; Rolling out 'Red'",
@@ -6837,7 +6836,7 @@ const Ms = [
6837
6836
  image: "https://images.unsplash.com/photo-1492684223066-81342ee5ff30?q=80&w=1200&auto=format&fit=crop",
6838
6837
  description: ""
6839
6838
  }
6840
- ], Ps = {
6839
+ ], Ms = {
6841
6840
  sm: {
6842
6841
  wrap: "max-w-sm w-full",
6843
6842
  listGap: "gap-3",
@@ -6874,11 +6873,11 @@ const Ms = [
6874
6873
  showImage: !0,
6875
6874
  compact: !1
6876
6875
  }
6877
- }, Ls = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], xa = (t) => {
6876
+ }, Ps = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], xa = (t) => {
6878
6877
  const a = new Date(t);
6879
6878
  return {
6880
6879
  day: a.getDate(),
6881
- month: Ls[a.getMonth()] || "",
6880
+ month: Ps[a.getMonth()] || "",
6882
6881
  time: a.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })
6883
6882
  };
6884
6883
  };
@@ -6906,7 +6905,7 @@ function jt({ ev: t, sizeMeta: a, isSelected: s, onClick: i }) {
6906
6905
  }
6907
6906
  );
6908
6907
  }
6909
- function Bs({ ev: t, sizeMeta: a }) {
6908
+ function Ls({ ev: t, sizeMeta: a }) {
6910
6909
  if (!t) return null;
6911
6910
  const { day: s, month: i, time: l } = xa(t.date);
6912
6911
  return /* @__PURE__ */ n("div", { className: "bg-white dark:bg-zinc-900 rounded-lg border border-zinc-200 dark:border-zinc-800 p-6", children: [
@@ -6936,24 +6935,24 @@ function Bs({ ev: t, sizeMeta: a }) {
6936
6935
  t.location
6937
6936
  ] }),
6938
6937
  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" }),
6938
+ /* @__PURE__ */ e(xr, { className: "h-4 w-4" }),
6940
6939
  /* @__PURE__ */ e("span", { className: "text-blue-600 dark:text-blue-400 underline break-all", children: t.url })
6941
6940
  ] }),
6942
6941
  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
6942
  ] });
6944
6943
  }
6945
- function Vs({
6944
+ function Bs({
6946
6945
  size: t = "md",
6947
6946
  showCheckbox: a = !1,
6948
6947
  checkboxPosition: s = "top-left",
6949
6948
  onSelect: i,
6950
6949
  identity: l = "_id",
6951
6950
  title: h = "Upcoming Events",
6952
- events: o = Ms,
6951
+ events: o = Os,
6953
6952
  selectedIndex: p = 0,
6954
6953
  ...g
6955
6954
  }) {
6956
- const [v, x] = P(p), r = de(t), N = me[r], m = Ps[r], y = o[v] || o[0], z = (D, E) => {
6955
+ const [v, x] = P(p), r = de(t), N = me[r], m = Ms[r], y = o[v] || o[0], z = (D, E) => {
6957
6956
  x(E), i?.(D);
6958
6957
  }, $ = r === "lg";
6959
6958
  return /* @__PURE__ */ n(
@@ -6984,7 +6983,7 @@ function Vs({
6984
6983
  },
6985
6984
  D._id || D.id || E
6986
6985
  )) }),
6987
- /* @__PURE__ */ e(Bs, { ev: y, sizeMeta: m })
6986
+ /* @__PURE__ */ e(Ls, { ev: y, sizeMeta: m })
6988
6987
  ] })
6989
6988
  ) : (
6990
6989
  // Small/Medium: Simple list only
@@ -7004,7 +7003,7 @@ function Vs({
7004
7003
  }
7005
7004
  );
7006
7005
  }
7007
- Vs.propTypes = {
7006
+ Bs.propTypes = {
7008
7007
  size: d.string,
7009
7008
  showCheckbox: d.bool,
7010
7009
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -7025,7 +7024,7 @@ Vs.propTypes = {
7025
7024
  ),
7026
7025
  selectedIndex: d.number
7027
7026
  };
7028
- const js = [
7027
+ const Vs = [
7029
7028
  {
7030
7029
  _id: "mail-1",
7031
7030
  sender: "Sender Name",
@@ -7070,7 +7069,7 @@ const js = [
7070
7069
  // pinned: false,
7071
7070
  // important: false,
7072
7071
  // },
7073
- ], _s = {
7072
+ ], js = {
7074
7073
  sm: {
7075
7074
  wrap: "max-w-sm w-full",
7076
7075
  listGap: "gap-2",
@@ -7108,7 +7107,7 @@ const js = [
7108
7107
  searchHeight: "h-10"
7109
7108
  }
7110
7109
  };
7111
- function Us({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin: h }) {
7110
+ function _s({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin: h }) {
7112
7111
  const o = (g) => {
7113
7112
  g.stopPropagation(), l?.(t);
7114
7113
  }, p = (g) => {
@@ -7126,7 +7125,7 @@ function Us({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
7126
7125
  {
7127
7126
  onClick: o,
7128
7127
  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" })
7128
+ children: t.starred ? /* @__PURE__ */ e(vr, { className: "h-4 w-4 fill-yellow-400 text-yellow-400" }) : /* @__PURE__ */ e(Nr, { className: "h-4 w-4 text-zinc-400 group-hover:text-yellow-400" })
7130
7129
  }
7131
7130
  ),
7132
7131
  /* @__PURE__ */ e(
@@ -7134,7 +7133,7 @@ function Us({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
7134
7133
  {
7135
7134
  onClick: p,
7136
7135
  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" })
7136
+ children: t.pinned ? /* @__PURE__ */ e(wr, { className: "h-4 w-4 fill-blue-500 text-blue-500" }) : /* @__PURE__ */ e(kr, { className: "h-4 w-4 text-zinc-400 group-hover:text-blue-500" })
7138
7137
  }
7139
7138
  )
7140
7139
  ] }),
@@ -7157,20 +7156,20 @@ function Us({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
7157
7156
  }
7158
7157
  );
7159
7158
  }
7160
- function Gs({
7159
+ function Us({
7161
7160
  size: t = "md",
7162
7161
  showCheckbox: a = !1,
7163
7162
  checkboxPosition: s = "top-left",
7164
7163
  onSelect: i,
7165
7164
  identity: l = "_id",
7166
7165
  title: h = "0365 Mails",
7167
- emails: o = js,
7166
+ emails: o = Vs,
7168
7167
  selectedIndex: p = 0,
7169
7168
  onStar: g,
7170
7169
  onPin: v,
7171
7170
  ...x
7172
7171
  }) {
7173
- const [r, N] = P(p), m = de(t), y = me[m], z = _s[m], $ = (L, j) => {
7172
+ const [r, N] = P(p), m = de(t), y = me[m], z = js[m], $ = (L, j) => {
7174
7173
  N(j), i?.(L);
7175
7174
  }, D = (L) => {
7176
7175
  const j = { ...L, starred: !L.starred };
@@ -7193,7 +7192,7 @@ function Gs({
7193
7192
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${y.title}`, children: h }) }),
7194
7193
  /* @__PURE__ */ e(fe, { placeholder: "Type to search..." }),
7195
7194
  /* @__PURE__ */ e("div", { className: "space-y-0", children: o.map((L, j) => /* @__PURE__ */ e(
7196
- Us,
7195
+ _s,
7197
7196
  {
7198
7197
  email: L,
7199
7198
  sizeMeta: z,
@@ -7209,7 +7208,7 @@ function Gs({
7209
7208
  }
7210
7209
  );
7211
7210
  }
7212
- Gs.propTypes = {
7211
+ Us.propTypes = {
7213
7212
  size: d.string,
7214
7213
  showCheckbox: d.bool,
7215
7214
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -7233,7 +7232,7 @@ Gs.propTypes = {
7233
7232
  onStar: d.func,
7234
7233
  onPin: d.func
7235
7234
  };
7236
- const qs = [
7235
+ const Gs = [
7237
7236
  {
7238
7237
  _id: "contact-1",
7239
7238
  name: "Branden Baker",
@@ -7274,7 +7273,7 @@ const qs = [
7274
7273
  // building: "Security Building",
7275
7274
  // initials: "AM"
7276
7275
  // }
7277
- ], Ys = {
7276
+ ], qs = {
7278
7277
  sm: {
7279
7278
  wrap: "max-w-sm w-full",
7280
7279
  searchHeight: "h-8",
@@ -7344,7 +7343,7 @@ function _t({ contact: t, sizeMeta: a, isSelected: s, onClick: i }) {
7344
7343
  }
7345
7344
  );
7346
7345
  }
7347
- function Ws({ contact: t, sizeMeta: a }) {
7346
+ function Ys({ contact: t, sizeMeta: a }) {
7348
7347
  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
7348
  /* @__PURE__ */ n("div", { className: "flex items-center gap-4 mb-6", children: [
7350
7349
  /* @__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 +7364,7 @@ function Ws({ contact: t, sizeMeta: a }) {
7365
7364
  ] })
7366
7365
  ] }),
7367
7366
  /* @__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" }),
7367
+ /* @__PURE__ */ e(Cr, { className: "h-4 w-4 text-zinc-500 dark:text-zinc-400 flex-shrink-0" }),
7369
7368
  /* @__PURE__ */ n("div", { children: [
7370
7369
  /* @__PURE__ */ e("div", { className: `${a.details} text-zinc-600 dark:text-zinc-400 font-medium`, children: "Email Address" }),
7371
7370
  /* @__PURE__ */ e("div", { className: `${a.details} text-zinc-900 dark:text-zinc-100`, children: t.email })
@@ -7398,7 +7397,7 @@ function Ws({ contact: t, sizeMeta: a }) {
7398
7397
  /* @__PURE__ */ e("p", { className: "text-sm", children: "Select a contact to view details" })
7399
7398
  ] }) });
7400
7399
  }
7401
- function Js({ sizeMeta: t }) {
7400
+ function Ws({ sizeMeta: t }) {
7402
7401
  return /* @__PURE__ */ n("div", { className: `relative ${t.searchHeight} mb-4`, children: [
7403
7402
  /* @__PURE__ */ e(ft, { className: "absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-zinc-400" }),
7404
7403
  /* @__PURE__ */ e(
@@ -7411,18 +7410,18 @@ function Js({ sizeMeta: t }) {
7411
7410
  )
7412
7411
  ] });
7413
7412
  }
7414
- function Xs({
7413
+ function Js({
7415
7414
  size: t = "md",
7416
7415
  showCheckbox: a = !1,
7417
7416
  checkboxPosition: s = "top-left",
7418
7417
  onSelect: i,
7419
7418
  identity: l = "_id",
7420
7419
  title: h = "Directory",
7421
- contacts: o = qs,
7420
+ contacts: o = Gs,
7422
7421
  selectedIndex: p = 0,
7423
7422
  ...g
7424
7423
  }) {
7425
- const [v, x] = P(p), r = de(t), N = me[r], m = Ys[r], y = (D, E) => {
7424
+ const [v, x] = P(p), r = de(t), N = me[r], m = qs[r], y = (D, E) => {
7426
7425
  x(E), i?.(D);
7427
7426
  }, z = o[v] || o[0], $ = m.layout === "split";
7428
7427
  return /* @__PURE__ */ n(
@@ -7437,7 +7436,7 @@ function Xs({
7437
7436
  ...g,
7438
7437
  children: [
7439
7438
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between mb-4", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${N.title}`, children: h }) }),
7440
- /* @__PURE__ */ e(Js, { sizeMeta: m }),
7439
+ /* @__PURE__ */ e(Ws, { sizeMeta: m }),
7441
7440
  $ ? /* @__PURE__ */ n("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6 min-h-0", children: [
7442
7441
  /* @__PURE__ */ e("div", { className: "space-y-3", children: o.map((D, E) => /* @__PURE__ */ e(
7443
7442
  _t,
@@ -7450,7 +7449,7 @@ function Xs({
7450
7449
  D._id || D.id || E
7451
7450
  )) }),
7452
7451
  /* @__PURE__ */ e(
7453
- Ws,
7452
+ Ys,
7454
7453
  {
7455
7454
  contact: z,
7456
7455
  sizeMeta: m
@@ -7474,7 +7473,7 @@ function Xs({
7474
7473
  }
7475
7474
  );
7476
7475
  }
7477
- Xs.propTypes = {
7476
+ Js.propTypes = {
7478
7477
  size: d.string,
7479
7478
  showCheckbox: d.bool,
7480
7479
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -7496,7 +7495,7 @@ Xs.propTypes = {
7496
7495
  selectedIndex: d.number
7497
7496
  };
7498
7497
  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" }) {
7498
+ function Xs({ side: t = "left", date: a, title: s, amount: i, kind: l = "payment" }) {
7500
7499
  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
7500
  /* @__PURE__ */ e("div", { className: "text-xs text-zinc-500", children: a }),
7502
7501
  /* @__PURE__ */ e("div", { className: "mt-1 text-sm text-zinc-700 dark:text-zinc-200", children: s }),
@@ -7512,7 +7511,7 @@ function Qs({ side: t = "left", date: a, title: s, amount: i, kind: l = "payment
7512
7511
  ] })
7513
7512
  ] });
7514
7513
  }
7515
- const Hs = {
7514
+ const Qs = {
7516
7515
  sm: {
7517
7516
  // was: "max-w-md w-full md:w-auto flex-none justify-self-start"
7518
7517
  wrap: "max-w-md w-auto inline-block align-top flex-none justify-self-start",
@@ -7544,7 +7543,7 @@ const Hs = {
7544
7543
  buttonPad: "py-3.5"
7545
7544
  }
7546
7545
  };
7547
- function Zs({
7546
+ function Hs({
7548
7547
  size: t = "md",
7549
7548
  showCheckbox: a = !1,
7550
7549
  checkboxPosition: s = "top-left",
@@ -7574,7 +7573,7 @@ function Zs({
7574
7573
  ],
7575
7574
  ...r
7576
7575
  }) {
7577
- const N = de(t), m = me[N], y = Hs[N];
7576
+ const N = de(t), m = me[N], y = Qs[N];
7578
7577
  return /* @__PURE__ */ n(
7579
7578
  oe,
7580
7579
  {
@@ -7620,7 +7619,7 @@ function Zs({
7620
7619
  ] })
7621
7620
  ] }),
7622
7621
  /* @__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,
7622
+ Xs,
7624
7623
  {
7625
7624
  side: $ === 0 ? "left" : "right",
7626
7625
  date: z.date,
@@ -7641,7 +7640,7 @@ function Zs({
7641
7640
  "aria-label": "View Transactions (mock)",
7642
7641
  children: [
7643
7642
  "View Transactions",
7644
- /* @__PURE__ */ e(Sr, { className: "h-4 w-4" })
7643
+ /* @__PURE__ */ e(zr, { className: "h-4 w-4" })
7645
7644
  ]
7646
7645
  }
7647
7646
  )
@@ -7649,7 +7648,7 @@ function Zs({
7649
7648
  }
7650
7649
  );
7651
7650
  }
7652
- Zs.propTypes = {
7651
+ Hs.propTypes = {
7653
7652
  size: d.string,
7654
7653
  showCheckbox: d.bool,
7655
7654
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -7670,7 +7669,7 @@ Zs.propTypes = {
7670
7669
  })
7671
7670
  )
7672
7671
  };
7673
- const Ks = {
7672
+ const Zs = {
7674
7673
  sm: {
7675
7674
  wrap: "max-w-xs w-full",
7676
7675
  title: "text-base font-semibold",
@@ -7737,7 +7736,7 @@ function Ut({ leave: t, sizeMeta: a }) {
7737
7736
  ] }, i)) })
7738
7737
  ] });
7739
7738
  }
7740
- function el({
7739
+ function Ks({
7741
7740
  size: t = "md",
7742
7741
  showCheckbox: a = !1,
7743
7742
  checkboxPosition: s = "top-left",
@@ -7747,7 +7746,7 @@ function el({
7747
7746
  term: o = "Fall 2025",
7748
7747
  ...p
7749
7748
  }) {
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];
7749
+ const [g, v] = P("vacation"), [x, r] = P(!1), N = de(t), m = me[N], y = Zs[N], z = We.find(($) => $.id === g) || We[0];
7751
7750
  return /* @__PURE__ */ n(
7752
7751
  oe,
7753
7752
  {
@@ -7813,7 +7812,7 @@ function el({
7813
7812
  }
7814
7813
  );
7815
7814
  }
7816
- el.propTypes = {
7815
+ Ks.propTypes = {
7817
7816
  size: d.string,
7818
7817
  showCheckbox: d.bool,
7819
7818
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -7822,7 +7821,7 @@ el.propTypes = {
7822
7821
  title: d.string,
7823
7822
  term: d.string
7824
7823
  };
7825
- const tl = [
7824
+ const el = [
7826
7825
  {
7827
7826
  id: "admin-files",
7828
7827
  name: "Admin Files",
@@ -7855,7 +7854,7 @@ const tl = [
7855
7854
  // icon: Video,
7856
7855
  // color: "text-purple-500"
7857
7856
  // }
7858
- ], al = [
7857
+ ], tl = [
7859
7858
  {
7860
7859
  id: "file-1",
7861
7860
  name: "2024 - Taurus",
@@ -7888,7 +7887,7 @@ const tl = [
7888
7887
  icon: dt,
7889
7888
  color: "text-orange-500"
7890
7889
  }
7891
- ], rl = {
7890
+ ], al = {
7892
7891
  sm: {
7893
7892
  wrap: "max-w-xs w-full",
7894
7893
  title: "text-base font-semibold",
@@ -7928,7 +7927,7 @@ function Gt({ item: t, sizeMeta: a, showDate: s = !1 }) {
7928
7927
  /* @__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
7928
  ] });
7930
7929
  }
7931
- function nl({
7930
+ function rl({
7932
7931
  size: t = "md",
7933
7932
  showCheckbox: a = !1,
7934
7933
  checkboxPosition: s = "top-left",
@@ -7938,7 +7937,7 @@ function nl({
7938
7937
  subtitle: o = "Drive Shared",
7939
7938
  ...p
7940
7939
  }) {
7941
- const [g, v] = P(!1), x = de(t), r = me[x], N = rl[x];
7940
+ const [g, v] = P(!1), x = de(t), r = me[x], N = al[x];
7942
7941
  return /* @__PURE__ */ n(
7943
7942
  oe,
7944
7943
  {
@@ -7970,13 +7969,13 @@ function nl({
7970
7969
  "Download All"
7971
7970
  ] }),
7972
7971
  /* @__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" }),
7972
+ /* @__PURE__ */ e(Sr, { className: "h-4 w-4" }),
7974
7973
  "Share Drive"
7975
7974
  ] })
7976
7975
  ] })
7977
7976
  ] })
7978
7977
  ] }),
7979
- /* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-3 `, children: tl.map((m) => /* @__PURE__ */ e(
7978
+ /* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-3 `, children: el.map((m) => /* @__PURE__ */ e(
7980
7979
  Gt,
7981
7980
  {
7982
7981
  item: m,
@@ -7986,7 +7985,7 @@ function nl({
7986
7985
  )) }),
7987
7986
  N.showRecent && /* @__PURE__ */ n("div", { className: "", children: [
7988
7987
  /* @__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(
7988
+ /* @__PURE__ */ e("div", { className: "space-y-2", children: tl.map((m) => /* @__PURE__ */ e(
7990
7989
  Gt,
7991
7990
  {
7992
7991
  item: m,
@@ -8004,7 +8003,7 @@ function nl({
8004
8003
  }
8005
8004
  );
8006
8005
  }
8007
- nl.propTypes = {
8006
+ rl.propTypes = {
8008
8007
  size: d.string,
8009
8008
  showCheckbox: d.bool,
8010
8009
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -8013,7 +8012,7 @@ nl.propTypes = {
8013
8012
  title: d.string,
8014
8013
  subtitle: d.string
8015
8014
  };
8016
- const sl = [
8015
+ const nl = [
8017
8016
  {
8018
8017
  id: "alert-1",
8019
8018
  type: "warning",
@@ -8050,7 +8049,7 @@ const sl = [
8050
8049
  // read: true,
8051
8050
  // priority: "medium"
8052
8051
  // }
8053
- ], ll = {
8052
+ ], sl = {
8054
8053
  sm: {
8055
8054
  wrap: "max-w-sm w-full",
8056
8055
  title: "text-sm font-semibold",
@@ -8086,7 +8085,7 @@ const sl = [
8086
8085
  if (!a || a === 0) return t;
8087
8086
  const s = t.split(" ");
8088
8087
  return s.length <= a ? t : s.slice(0, a).join(" ") + "...";
8089
- }, il = (t) => {
8088
+ }, ll = (t) => {
8090
8089
  switch (t) {
8091
8090
  case "warning":
8092
8091
  return Jt;
@@ -8129,8 +8128,8 @@ const sl = [
8129
8128
  };
8130
8129
  }
8131
8130
  };
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);
8131
+ function il({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8132
+ const [l, h] = P(!1), o = va(t.type), p = ll(t.type);
8134
8133
  return l ? null : /* @__PURE__ */ n("div", { className: `relative rounded-lg border-l-4 p-4 transition-all duration-200 ${o.bg} ${o.border} ${t.read ? "border-l-2 opacity-80" : "border-l-4"}`, style: { borderLeftColor: o.accent }, children: [
8135
8134
  /* @__PURE__ */ e(
8136
8135
  "button",
@@ -8153,7 +8152,7 @@ function ol({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8153
8152
  !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
8153
  ] });
8155
8154
  }
8156
- function cl({ alert: t, onDismiss: a }) {
8155
+ function ol({ alert: t, onDismiss: a }) {
8157
8156
  const [s, i] = P(!1), l = va("banner"), h = () => {
8158
8157
  i(!0), a?.(t);
8159
8158
  };
@@ -8173,18 +8172,18 @@ function cl({ alert: t, onDismiss: a }) {
8173
8172
  )
8174
8173
  ] }) });
8175
8174
  }
8176
- function dl({
8175
+ function cl({
8177
8176
  size: t = "md",
8178
8177
  showCheckbox: a = !1,
8179
8178
  checkboxPosition: s = "top-left",
8180
8179
  onSelect: i,
8181
8180
  identity: l = "_id",
8182
8181
  title: h = "Alerts",
8183
- alerts: o = sl,
8182
+ alerts: o = nl,
8184
8183
  showBanner: p = !0,
8185
8184
  ...g
8186
8185
  }) {
8187
- const [v, x] = P(o), r = de(t), N = me[r], m = ll[r], y = (D) => {
8186
+ const [v, x] = P(o), r = de(t), N = me[r], m = sl[r], y = (D) => {
8188
8187
  x((E) => E.filter((L) => L.id !== D.id));
8189
8188
  }, z = v.find((D) => D.type === "banner"), $ = v.filter((D) => D.type !== "banner");
8190
8189
  return /* @__PURE__ */ n(
@@ -8200,14 +8199,14 @@ function dl({
8200
8199
  children: [
8201
8200
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between ", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${N.title}`, children: h }) }),
8202
8201
  p && z && t !== "sm" && /* @__PURE__ */ e(
8203
- cl,
8202
+ ol,
8204
8203
  {
8205
8204
  alert: z,
8206
8205
  onDismiss: y
8207
8206
  }
8208
8207
  ),
8209
8208
  /* @__PURE__ */ e("div", { className: "space-y-0.5", children: $.slice(0, 3).map((D) => /* @__PURE__ */ e(
8210
- ol,
8209
+ il,
8211
8210
  {
8212
8211
  alert: D,
8213
8212
  sizeMeta: m,
@@ -8220,7 +8219,7 @@ function dl({
8220
8219
  }
8221
8220
  );
8222
8221
  }
8223
- dl.propTypes = {
8222
+ cl.propTypes = {
8224
8223
  size: d.string,
8225
8224
  showCheckbox: d.bool,
8226
8225
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -8240,7 +8239,7 @@ dl.propTypes = {
8240
8239
  ),
8241
8240
  showBanner: d.bool
8242
8241
  };
8243
- const ml = [
8242
+ const dl = [
8244
8243
  {
8245
8244
  id: "video-1",
8246
8245
  title: "ALMA MATER",
@@ -8285,7 +8284,7 @@ const ml = [
8285
8284
  // duration: "2:10",
8286
8285
  // category: "Campus Life"
8287
8286
  // }
8288
- ], ul = {
8287
+ ], ml = {
8289
8288
  sm: {
8290
8289
  wrap: "max-w-sm w-full",
8291
8290
  title: "text-sm font-bold",
@@ -8317,7 +8316,7 @@ const ml = [
8317
8316
  maxTitleLines: 3
8318
8317
  }
8319
8318
  };
8320
- function hl({ video: t, sizeMeta: a }) {
8319
+ function ul({ video: t, sizeMeta: a }) {
8321
8320
  const [s, i] = P(!1);
8322
8321
  return /* @__PURE__ */ n("div", { className: "group cursor-pointer", children: [
8323
8322
  /* @__PURE__ */ n("div", { className: `relative ${a.thumbnailHeight} rounded-lg overflow-hidden bg-zinc-200 dark:bg-zinc-800`, children: [
@@ -8329,7 +8328,7 @@ function hl({ video: t, sizeMeta: a }) {
8329
8328
  className: "w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"
8330
8329
  }
8331
8330
  ),
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" }) }) }),
8331
+ /* @__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(Dr, { className: "h-5 w-5 text-zinc-900 ml-1" }) }) }),
8333
8332
  /* @__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
8333
  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
8334
  /* @__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 +8349,17 @@ function hl({ video: t, sizeMeta: a }) {
8350
8349
  ] })
8351
8350
  ] });
8352
8351
  }
8353
- function pl({
8352
+ function hl({
8354
8353
  size: t = "md",
8355
8354
  showCheckbox: a = !1,
8356
8355
  checkboxPosition: s = "top-left",
8357
8356
  onSelect: i,
8358
8357
  identity: l = "_id",
8359
8358
  title: h = "Videos",
8360
- videos: o = ml,
8359
+ videos: o = dl,
8361
8360
  ...p
8362
8361
  }) {
8363
- const [g, v] = P(!1), x = de(t), r = me[x], N = ul[x];
8362
+ const [g, v] = P(!1), x = de(t), r = me[x], N = ml[x];
8364
8363
  return /* @__PURE__ */ n(
8365
8364
  oe,
8366
8365
  {
@@ -8395,7 +8394,7 @@ function pl({
8395
8394
  ] })
8396
8395
  ] }),
8397
8396
  /* @__PURE__ */ e("div", { className: `grid ${N.gridCols} gap-4 `, children: o.slice(0, N.gridCols === "grid-cols-3" ? 6 : 4).map((m) => /* @__PURE__ */ e(
8398
- hl,
8397
+ ul,
8399
8398
  {
8400
8399
  video: m,
8401
8400
  sizeMeta: N
@@ -8410,7 +8409,7 @@ function pl({
8410
8409
  }
8411
8410
  );
8412
8411
  }
8413
- pl.propTypes = {
8412
+ hl.propTypes = {
8414
8413
  size: d.string,
8415
8414
  showCheckbox: d.bool,
8416
8415
  checkboxPosition: d.oneOf(["top-left", "top-right"]),
@@ -8429,82 +8428,82 @@ pl.propTypes = {
8429
8428
  )
8430
8429
  };
8431
8430
  export {
8432
- Zs as AccountSummaryMock,
8433
- ws as ActivityMock,
8434
- as as AddUserGroupsRolesModal,
8435
- dl as AlertsMock,
8431
+ Hs as AccountSummaryMock,
8432
+ Ns as ActivityMock,
8433
+ ts as AddUserGroupsRolesModal,
8434
+ cl as AlertsMock,
8436
8435
  we as Avatar,
8437
- xn as AvatarGroup,
8438
- Sl as Badge,
8439
- kn as Breadcrumbs,
8440
- vn as Button,
8441
- Os as CampusMapMock,
8436
+ yn as AvatarGroup,
8437
+ zl as Badge,
8438
+ wn as Breadcrumbs,
8439
+ xn as Button,
8440
+ Is as CampusMapMock,
8442
8441
  mt as Checkbox,
8443
- Ds as CommunitiesMock,
8444
- Xl as CustomDataGrid,
8445
- _l as CustomDialog,
8446
- Jl as CustomGridToolbar,
8447
- Gl as CustomTab,
8442
+ Ss as CommunitiesMock,
8443
+ Jl as CustomDataGrid,
8444
+ jl as CustomDialog,
8445
+ Wl as CustomGridToolbar,
8446
+ Ul as CustomTab,
8448
8447
  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,
8448
+ Sn as DateRangePicker,
8449
+ Js as DirectoryMock,
8450
+ rl as DriveMock,
8451
+ ys as DynamicConfig,
8452
+ Bs as EventsMock,
8453
+ Sl as FileUploadModal,
8454
+ ql as FullConfigPage,
8455
+ Al as FullScreenLoader,
8456
+ Dl as GenericFilter,
8458
8457
  Ce as IconButton,
8459
8458
  X as Input,
8460
- el as LeaveBalanceMock,
8461
- vs as ManageCollectionList,
8462
- En as Modal,
8459
+ Ks as LeaveBalanceMock,
8460
+ xs as ManageCollectionList,
8461
+ Fn as Modal,
8463
8462
  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,
8463
+ Ts as NewsMock,
8464
+ Us as O365MailsMock,
8465
+ Pn as OptionsMenu,
8466
+ Mn as PageHeader,
8467
+ Rl as PageLayout,
8468
+ $l as Pagination,
8470
8469
  la as RadioGroup,
8471
8470
  fe as SearchBar,
8472
8471
  pt as Select,
8473
8472
  oe as SelectableCard,
8474
- Al as Sidebar,
8473
+ Tl as Sidebar,
8475
8474
  oa as Spinner,
8476
8475
  ca as Textarea,
8477
- Wl as ToastProvider,
8476
+ Yl as ToastProvider,
8478
8477
  da as ToggleSwitch,
8479
- El as Tooltip,
8480
- Ul as TreeView,
8478
+ Fl as Tooltip,
8479
+ _l as TreeView,
8481
8480
  se as UnifyedCoreButton,
8482
- pl as VideosMock,
8483
- Rl as WizardModal,
8481
+ hl as VideosMock,
8482
+ El as WizardModal,
8484
8483
  pa as adGroupsListSearchApi,
8485
- Ll as axiosDelete,
8484
+ Pl as axiosDelete,
8486
8485
  Ze as axiosGet,
8487
- Vl as axiosPatch,
8486
+ Bl as axiosPatch,
8488
8487
  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,
8488
+ Ll as axiosPut,
8489
+ Ol as cookies,
8490
+ Yn as createHttpClient,
8491
+ _n as directoryPermissionsApi,
8492
+ Un as filePermissionsApi,
8493
+ jn as gateWayUrl,
8495
8494
  $e as gatewayBase,
8496
8495
  vt as getBaseUrl,
8497
- Pl as getSnapshot,
8498
- jl as http,
8499
- jn as localStore,
8496
+ Ml as getSnapshot,
8497
+ Vl as http,
8498
+ Vn as localStore,
8500
8499
  Nt as myDriveGatewayBaseV2,
8501
8500
  de as normalizeSize,
8502
8501
  Ye as notify,
8503
8502
  ga as provisioningBase,
8504
8503
  ba as rbacBase,
8505
8504
  fa as searchRolesApi,
8506
- Ol as sessionStore,
8505
+ Il as sessionStore,
8507
8506
  me as sizeClasses,
8508
- ql as toBrowserLocalTime,
8507
+ Gl as toBrowserLocalTime,
8509
8508
  ha as userSearchBase
8510
8509
  };