unifyedx-storybook-new 0.2.21 → 0.2.22

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.
@@ -61,7 +61,7 @@ const bn = (t) => {
61
61
  s
62
62
  ] })
63
63
  ] });
64
- }, wl = ({
64
+ }, kl = ({
65
65
  label: t,
66
66
  variant: a = "default",
67
67
  // 'default', 'primary', 'success', 'warning', 'danger'
@@ -614,7 +614,7 @@ const wn = {
614
614
  if (!+t) return "0 Bytes";
615
615
  const s = 1024, i = a < 0 ? 0 : a, l = ["Bytes", "KB", "MB", "GB", "TB"], m = Math.floor(Math.log(t) / Math.log(s));
616
616
  return `${parseFloat((t / Math.pow(s, m)).toFixed(i))} ${l[m]}`;
617
- }, Nl = ({
617
+ }, Cl = ({
618
618
  // --- Modal Control ---
619
619
  isOpen: t,
620
620
  onClose: a,
@@ -807,7 +807,7 @@ const wn = {
807
807
  ]
808
808
  }
809
809
  ) });
810
- }, kl = ({
810
+ }, zl = ({
811
811
  isOpen: t,
812
812
  onClose: a,
813
813
  onApplyFilters: s,
@@ -1305,7 +1305,7 @@ const wn = {
1305
1305
  }
1306
1306
  ) })
1307
1307
  ] }) });
1308
- }, Cl = ({
1308
+ }, Sl = ({
1309
1309
  currentPage: t,
1310
1310
  totalItems: a,
1311
1311
  itemsPerPage: s,
@@ -1657,7 +1657,7 @@ const wn = {
1657
1657
  ]
1658
1658
  }
1659
1659
  );
1660
- }, zl = ({
1660
+ }, $l = ({
1661
1661
  navItems: t = [],
1662
1662
  isCollapsed: a = !1,
1663
1663
  onToggleCollapse: s,
@@ -1761,7 +1761,7 @@ const wn = {
1761
1761
  ]
1762
1762
  }
1763
1763
  );
1764
- }, Sl = ({ label: t = "Loading..." }) => /* @__PURE__ */ e("div", { className: "fullscreen-loader-overlay", role: "alert", "aria-busy": "true", children: /* @__PURE__ */ n("div", { className: "loader-content", children: [
1764
+ }, Dl = ({ label: t = "Loading..." }) => /* @__PURE__ */ e("div", { className: "fullscreen-loader-overlay", role: "alert", "aria-busy": "true", children: /* @__PURE__ */ n("div", { className: "loader-content", children: [
1765
1765
  /* @__PURE__ */ e(da, { size: "large" }),
1766
1766
  t && /* @__PURE__ */ e("span", { className: "loader-label", children: t })
1767
1767
  ] }) }), ma = ({
@@ -1830,7 +1830,7 @@ const wn = {
1830
1830
  t && i === "right" && /* @__PURE__ */ e(lt.Label, { className: "switch-label", passive: !0, children: t })
1831
1831
  ] }),
1832
1832
  l && /* @__PURE__ */ e("p", { className: "switch-error-message", children: l })
1833
- ] }), $l = ({
1833
+ ] }), Tl = ({
1834
1834
  children: t,
1835
1835
  content: a,
1836
1836
  variant: s = "dark",
@@ -1871,7 +1871,7 @@ const wn = {
1871
1871
  x: t < 0 ? "100%" : "-100%",
1872
1872
  opacity: 0
1873
1873
  })
1874
- }, Dl = ({
1874
+ }, Al = ({
1875
1875
  isOpen: t,
1876
1876
  onClose: a,
1877
1877
  steps: s = {},
@@ -1982,7 +1982,53 @@ const wn = {
1982
1982
  ]
1983
1983
  }
1984
1984
  ) });
1985
- }, Tl = ({
1985
+ }, An = {
1986
+ small: "btn-sm",
1987
+ medium: "btn-md",
1988
+ large: "btn-lg"
1989
+ }, Fn = {
1990
+ primary: "btn-primary",
1991
+ secondary: "btn-secondary"
1992
+ }, Fl = ({
1993
+ dataTestId: t,
1994
+ title: a,
1995
+ type: s = "button",
1996
+ ariaLabel: i,
1997
+ className: l = "",
1998
+ // ✅ Default is now empty
1999
+ category: m = "secondary",
2000
+ icon: o,
2001
+ // Renamed for clarity, expecting a component type e.g., CheckCircle
2002
+ disabled: u = !1,
2003
+ size: p = "small",
2004
+ label: g,
2005
+ children: b,
2006
+ // ✅ Add children to the props list
2007
+ onClick: r,
2008
+ ...y
2009
+ }) => {
2010
+ const d = u, h = Y(
2011
+ "btn-base",
2012
+ "btn-icon-only",
2013
+ An[p],
2014
+ Fn[m],
2015
+ l
2016
+ );
2017
+ return /* @__PURE__ */ e(
2018
+ "button",
2019
+ {
2020
+ "data-testid": t,
2021
+ type: s,
2022
+ className: h,
2023
+ disabled: d,
2024
+ onClick: r,
2025
+ title: i,
2026
+ "aria-label": i,
2027
+ ...y,
2028
+ children: o && /* @__PURE__ */ e(o, { size: p === "large" ? 20 : 16 })
2029
+ }
2030
+ );
2031
+ }, El = ({
1986
2032
  content: t,
1987
2033
  isFooter: a = !1,
1988
2034
  footerContent: s,
@@ -2030,7 +2076,7 @@ const wn = {
2030
2076
  )
2031
2077
  ] }) })
2032
2078
  ] });
2033
- }, An = ({
2079
+ }, En = ({
2034
2080
  heading: t,
2035
2081
  subHeading: a,
2036
2082
  breadcrumbItems: s = [],
@@ -2053,7 +2099,7 @@ const wn = {
2053
2099
  /* @__PURE__ */ e("h1", { className: "page-header-heading", children: t }),
2054
2100
  s.length > 1 ? /* @__PURE__ */ e(kn, { crumbs: s }) : a ? /* @__PURE__ */ e("p", { className: "page-header-subheading", children: a }) : null
2055
2101
  ] })
2056
- ] }), Fn = ({
2102
+ ] }), Rn = ({
2057
2103
  options: t = [],
2058
2104
  onSelect: a,
2059
2105
  triggerIcon: s = _t
@@ -2101,14 +2147,14 @@ const wn = {
2101
2147
  ) })
2102
2148
  ] });
2103
2149
  };
2104
- function En(t) {
2150
+ function Pn(t) {
2105
2151
  try {
2106
2152
  return typeof t == "string" ? t : JSON.stringify(t);
2107
2153
  } catch {
2108
2154
  return "";
2109
2155
  }
2110
2156
  }
2111
- function Rn(t) {
2157
+ function In(t) {
2112
2158
  try {
2113
2159
  return JSON.parse(t);
2114
2160
  } catch {
@@ -2121,13 +2167,13 @@ function ha(t) {
2121
2167
  * Get an item (parsed if JSON).
2122
2168
  */
2123
2169
  get(a) {
2124
- return Rn(t.getItem(a));
2170
+ return In(t.getItem(a));
2125
2171
  },
2126
2172
  /**
2127
2173
  * Set an item (string or object).
2128
2174
  */
2129
2175
  set(a, s) {
2130
- t.setItem(a, En(s));
2176
+ t.setItem(a, Pn(s));
2131
2177
  },
2132
2178
  /**
2133
2179
  * Delete/remove an item.
@@ -2154,7 +2200,7 @@ function ha(t) {
2154
2200
  }
2155
2201
  };
2156
2202
  }
2157
- const Pn = ha(localStorage), Al = ha(sessionStorage), Fl = {
2203
+ const On = ha(localStorage), Rl = ha(sessionStorage), Pl = {
2158
2204
  get(t) {
2159
2205
  const a = document.cookie.match(
2160
2206
  new RegExp("(^| )" + t + "=([^;]+)")
@@ -2187,7 +2233,7 @@ function tt() {
2187
2233
  function ga() {
2188
2234
  if (!pa()) return "";
2189
2235
  try {
2190
- const t = Pn.get("userProfile");
2236
+ const t = On.get("userProfile");
2191
2237
  return !t && window.location.hostname === "localhost" ? "/unifyd-gateway/api" : (t && typeof t == "object" ? t : {})?.gatewaypath ?? "";
2192
2238
  } catch {
2193
2239
  return "";
@@ -2214,13 +2260,13 @@ function va() {
2214
2260
  function yt() {
2215
2261
  return `${ze()}/unifyed-mydrive/v2`;
2216
2262
  }
2217
- function In() {
2263
+ function Ln() {
2218
2264
  return `${yt()}/directory/permissions`;
2219
2265
  }
2220
- function On() {
2266
+ function Bn() {
2221
2267
  return `${yt()}/file/permissions`;
2222
2268
  }
2223
- function El() {
2269
+ function Il() {
2224
2270
  return Object.freeze({
2225
2271
  REACT_APP_BASE_URL: tt(),
2226
2272
  GATEWAY_BASE: ze(),
@@ -2230,11 +2276,11 @@ function El() {
2230
2276
  RBAC_BASE: ya(),
2231
2277
  SEARCH_ROLES_API: va(),
2232
2278
  MY_DRIVE_GATEWAY_BASE_v2: yt(),
2233
- DIRECTORY_PERMISSIONS_API: In(),
2234
- FILE_PERMISSIONS_API: On()
2279
+ DIRECTORY_PERMISSIONS_API: Ln(),
2280
+ FILE_PERMISSIONS_API: Bn()
2235
2281
  });
2236
2282
  }
2237
- function Ln(t) {
2283
+ function jn(t) {
2238
2284
  try {
2239
2285
  const a = localStorage.getItem(t);
2240
2286
  return a ? JSON.parse(a) : null;
@@ -2243,7 +2289,7 @@ function Ln(t) {
2243
2289
  }
2244
2290
  }
2245
2291
  function St() {
2246
- const t = Ln("userProfile") || {}, a = localStorage.getItem("access_token") || t.accessToken || "", s = localStorage.getItem("siteId") || t.siteId || "", i = t.tenant || "", l = t.tenantdomain || "", m = t.username || t.displayName || "", o = t.email || "";
2292
+ const t = jn("userProfile") || {}, a = localStorage.getItem("access_token") || t.accessToken || "", s = localStorage.getItem("siteId") || t.siteId || "", i = t.tenant || "", l = t.tenantdomain || "", m = t.username || t.displayName || "", o = t.email || "";
2247
2293
  return {
2248
2294
  Authorization: a ? `Bearer ${a}` : void 0,
2249
2295
  "x-tenant-id": i || void 0,
@@ -2254,7 +2300,7 @@ function St() {
2254
2300
  "x-user-email": o || void 0
2255
2301
  };
2256
2302
  }
2257
- function Bn(t) {
2303
+ function Mn(t) {
2258
2304
  if (t && t.isAxiosError) {
2259
2305
  const { response: a, config: s, message: i } = t, l = a?.status ?? null, m = a?.statusText ?? null, o = a?.data ?? null, u = typeof o == "string" && o || o?.message || o?.msg || o?.error || o?.errors?.[0]?.message || null;
2260
2306
  return {
@@ -2282,7 +2328,7 @@ function Bn(t) {
2282
2328
  request: null
2283
2329
  };
2284
2330
  }
2285
- function jn({
2331
+ function Vn({
2286
2332
  enableAuthRedirect: t = !0,
2287
2333
  defaultOpenHeaders: a = {}
2288
2334
  } = {}) {
@@ -2297,7 +2343,7 @@ function jn({
2297
2343
  message: g?.statusText || "Request succeeded"
2298
2344
  },
2299
2345
  (g) => {
2300
- const b = Bn(g), r = b.status;
2346
+ const b = Mn(g), r = b.status;
2301
2347
  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(b);
2302
2348
  }
2303
2349
  );
@@ -2339,7 +2385,7 @@ function jn({
2339
2385
  axiosPatch: p
2340
2386
  };
2341
2387
  }
2342
- const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn = Re.axiosPut, Rl = Re.axiosPatch, Pl = Re.instance, Un = async (t, a) => {
2388
+ const Re = Vn(), je = Re.axiosGet, Un = Re.axiosDelete, Me = Re.axiosPost, _n = Re.axiosPut, Ol = Re.axiosPatch, Ll = Re.instance, qn = async (t, a) => {
2343
2389
  try {
2344
2390
  switch (t) {
2345
2391
  case Te.USER: {
@@ -2358,7 +2404,7 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
2358
2404
  } catch (s) {
2359
2405
  console.log("Error searching entities:", s);
2360
2406
  }
2361
- }, _n = (t) => t.filter((a) => !!a?.email).map((a) => {
2407
+ }, Gn = (t) => t.filter((a) => !!a?.email).map((a) => {
2362
2408
  const s = (a?.firstName ?? "").trim(), i = (a?.lastName ?? "").trim(), l = `${s} ${i}`.trim() || (a.email?.split("@")[0] ?? "Unknown");
2363
2409
  return {
2364
2410
  id: a.email,
@@ -2422,7 +2468,7 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
2422
2468
  const l = s.data;
2423
2469
  Array.isArray(l) ? i = l : typeof l == "string" && (i = $t(l.trim()));
2424
2470
  }
2425
- return _n(i);
2471
+ return Gn(i);
2426
2472
  }
2427
2473
  }, vt = (t, a) => {
2428
2474
  const [s, i] = O(t);
@@ -2438,7 +2484,7 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
2438
2484
  [t, a]
2439
2485
  // Only re-call effect if value or delay changes
2440
2486
  ), s;
2441
- }, qn = ({
2487
+ }, Wn = ({
2442
2488
  users: t = [],
2443
2489
  groups: a = [],
2444
2490
  roles: s = [],
@@ -2484,9 +2530,9 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
2484
2530
  ], Tt = [
2485
2531
  { id: 1, name: Nt.View, icon: Gt },
2486
2532
  { id: 2, name: Nt.Manage, icon: Wt }
2487
- ], Gn = Xa().shape({
2533
+ ], Jn = Xa().shape({
2488
2534
  pendingInvites: Qa().min(1, "You must add at least one person to invite.")
2489
- }), Wn = ({
2535
+ }), Yn = ({
2490
2536
  entity: t,
2491
2537
  onManage: a,
2492
2538
  onClose: s,
@@ -2504,13 +2550,13 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
2504
2550
  formState: { errors: G, isSubmitting: k }
2505
2551
  } = Ka({
2506
2552
  defaultValues: { pendingInvites: [] },
2507
- resolver: ar(Gn)
2553
+ resolver: ar(Jn)
2508
2554
  }), { fields: v, append: w, remove: z, update: f } = er({
2509
2555
  control: I,
2510
2556
  name: "pendingInvites"
2511
2557
  }), x = _("pendingInvites");
2512
2558
  Q(() => {
2513
- y.length > 1 ? (C(!0), Un(p.name, y).then((A) => {
2559
+ y.length > 1 ? (C(!0), qn(p.name, y).then((A) => {
2514
2560
  h(A);
2515
2561
  }).catch((A) => console.error("Search failed:", A)).finally(() => C(!1))) : (h([]), E(/* @__PURE__ */ new Set()));
2516
2562
  }, [y, p]);
@@ -2606,7 +2652,7 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
2606
2652
  ] }),
2607
2653
  /* @__PURE__ */ n("main", { className: "flex-grow p-4 space-y-6 overflow-y-auto", children: [
2608
2654
  (l === ce.DRIVE || m) && /* @__PURE__ */ e(
2609
- qn,
2655
+ Wn,
2610
2656
  {
2611
2657
  users: i.users.filter((A) => A.permission !== "remove"),
2612
2658
  groups: i.groups.filter((A) => A.permission !== "remove"),
@@ -2884,7 +2930,7 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
2884
2930
  { name: "Can view", icon: Gt, value: "view" },
2885
2931
  { name: "Can manage", icon: Wt, value: "edit" },
2886
2932
  { name: "Remove", icon: rr, isDestructive: !0, value: "remove" }
2887
- ], Jn = ({ item: t, allowedPermissions: a, onPermissionChange: s }) => {
2933
+ ], Xn = ({ item: t, allowedPermissions: a, onPermissionChange: s }) => {
2888
2934
  const [i, l] = O(!1), { refs: m, floatingStyles: o, context: u } = Zt({
2889
2935
  open: i,
2890
2936
  onOpenChange: l,
@@ -2964,7 +3010,7 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
2964
3010
  ) })
2965
3011
  ] })
2966
3012
  );
2967
- }, Yn = ({
3013
+ }, Qn = ({
2968
3014
  entity: t,
2969
3015
  //entire file or folder details
2970
3016
  onBack: a,
@@ -3098,7 +3144,7 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
3098
3144
  ] })
3099
3145
  ] }),
3100
3146
  /* @__PURE__ */ e(
3101
- Jn,
3147
+ Xn,
3102
3148
  {
3103
3149
  item: D,
3104
3150
  allowedPermissions: m,
@@ -3150,13 +3196,13 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
3150
3196
  ] })
3151
3197
  ] })
3152
3198
  );
3153
- }, Xn = () => /* @__PURE__ */ n("div", { className: "flex items-center gap-4 p-4", children: [
3199
+ }, Hn = () => /* @__PURE__ */ n("div", { className: "flex items-center gap-4 p-4", children: [
3154
3200
  /* @__PURE__ */ e("div", { className: "h-10 w-10 rounded-full bg-gray-200 animate-pulse" }),
3155
3201
  /* @__PURE__ */ n("div", { className: "flex-grow space-y-2", children: [
3156
3202
  /* @__PURE__ */ e("div", { className: "h-4 w-3/5 rounded bg-gray-200 animate-pulse" }),
3157
3203
  /* @__PURE__ */ e("div", { className: "h-3 w-4/5 rounded bg-gray-200 animate-pulse" })
3158
3204
  ] })
3159
- ] }), Qn = ({
3205
+ ] }), Zn = ({
3160
3206
  entity: t,
3161
3207
  // { id, name, type: "group" | "role" }
3162
3208
  onBack: a,
@@ -3179,7 +3225,7 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
3179
3225
  exit: { opacity: 0, x: -20 }
3180
3226
  }, y = () => l ? (
3181
3227
  // Show 5 skeleton items while loading
3182
- /* @__PURE__ */ e("div", { children: Array.from({ length: 5 }).map((d, h) => /* @__PURE__ */ e(Xn, {}, h)) })
3228
+ /* @__PURE__ */ e("div", { children: Array.from({ length: 5 }).map((d, h) => /* @__PURE__ */ e(Hn, {}, h)) })
3183
3229
  ) : g.length === 0 ? /* @__PURE__ */ n(
3184
3230
  se.div,
3185
3231
  {
@@ -3267,7 +3313,7 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
3267
3313
  INVITE: "invite",
3268
3314
  MANAGE: "manage",
3269
3315
  MEMBERS: "members"
3270
- }, Hn = ({
3316
+ }, Kn = ({
3271
3317
  existingShares: t = {
3272
3318
  users: [],
3273
3319
  groups: [],
@@ -3319,7 +3365,7 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
3319
3365
  transition: { duration: 0.3, ease: "easeInOut" },
3320
3366
  className: "absolute top-0 left-0 w-full h-full",
3321
3367
  children: /* @__PURE__ */ e(
3322
- Yn,
3368
+ Qn,
3323
3369
  {
3324
3370
  entity: i,
3325
3371
  onBack: G,
@@ -3343,7 +3389,7 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
3343
3389
  transition: { duration: 0.3, ease: "easeInOut" },
3344
3390
  className: "absolute top-0 left-0 w-full h-full",
3345
3391
  children: /* @__PURE__ */ e(
3346
- Qn,
3392
+ Zn,
3347
3393
  {
3348
3394
  entity: d,
3349
3395
  onBack: G,
@@ -3366,7 +3412,7 @@ const Re = jn(), je = Re.axiosGet, Mn = Re.axiosDelete, Me = Re.axiosPost, Vn =
3366
3412
  transition: { duration: 0.3, ease: "easeInOut" },
3367
3413
  className: "absolute top-0 left-0 w-full h-full",
3368
3414
  children: /* @__PURE__ */ e(
3369
- Wn,
3415
+ Yn,
3370
3416
  {
3371
3417
  entity: i,
3372
3418
  onManage: U,
@@ -3579,7 +3625,7 @@ at.defaultProps = {
3579
3625
  getOptionId: (t) => String(t.id),
3580
3626
  getOptionLabel: (t) => t.name
3581
3627
  };
3582
- const Il = ({
3628
+ const Bl = ({
3583
3629
  isOpen: t = !1,
3584
3630
  setIsOpen: a,
3585
3631
  content: s,
@@ -3662,7 +3708,7 @@ const Il = ({
3662
3708
  }
3663
3709
  );
3664
3710
  };
3665
- function Zn({ listeners: t = {}, attributes: a = {} }) {
3711
+ function es({ listeners: t = {}, attributes: a = {} }) {
3666
3712
  return /* @__PURE__ */ e(
3667
3713
  "button",
3668
3714
  {
@@ -3676,7 +3722,7 @@ function Zn({ listeners: t = {}, attributes: a = {} }) {
3676
3722
  }
3677
3723
  );
3678
3724
  }
3679
- function Kn({
3725
+ function ts({
3680
3726
  node: t,
3681
3727
  depth: a,
3682
3728
  expanded: s,
@@ -3695,7 +3741,7 @@ function Kn({
3695
3741
  const v = U.trim();
3696
3742
  I(!1), v && v !== t.name ? o?.(t, v) : _(t.name);
3697
3743
  }, k = he(() => /* @__PURE__ */ e(
3698
- Fn,
3744
+ Rn,
3699
3745
  {
3700
3746
  options: [
3701
3747
  { action: "create", label: "Create sub-folder" },
@@ -3732,7 +3778,7 @@ function Kn({
3732
3778
  autoFocus: !0
3733
3779
  }
3734
3780
  ) : /* @__PURE__ */ e("span", { onDoubleClick: () => I(!0), children: t.name }) }),
3735
- /* @__PURE__ */ e(Zn, { listeners: S, attributes: h }),
3781
+ /* @__PURE__ */ e(es, { listeners: S, attributes: h }),
3736
3782
  /* @__PURE__ */ e("div", { className: "tv-actions", children: p ? p(t, {
3737
3783
  onCreateChild: () => m?.(t),
3738
3784
  onRename: () => I(!0),
@@ -3742,8 +3788,8 @@ function Kn({
3742
3788
  }
3743
3789
  );
3744
3790
  }
3745
- const es = (t) => String(t.id ?? t._id), ts = (t) => t.parent !== void 0 ? String(t.parent) : t.parentId != null ? String(t.parentId) : "root", as = (t) => t.name ?? t.label ?? "", rs = (t) => Array.isArray(t) && t.some((a) => Array.isArray(a.children));
3746
- function ns(t, { rootId: a, getId: s, getParent: i, getName: l }) {
3791
+ const as = (t) => String(t.id ?? t._id), rs = (t) => t.parent !== void 0 ? String(t.parent) : t.parentId != null ? String(t.parentId) : "root", ns = (t) => t.name ?? t.label ?? "", ss = (t) => Array.isArray(t) && t.some((a) => Array.isArray(a.children));
3792
+ function ls(t, { rootId: a, getId: s, getParent: i, getName: l }) {
3747
3793
  const m = /* @__PURE__ */ new Map();
3748
3794
  t.forEach((u) => {
3749
3795
  const p = s(u);
@@ -3761,7 +3807,7 @@ function ns(t, { rootId: a, getId: s, getParent: i, getName: l }) {
3761
3807
  p !== a && m.has(p) ? m.get(p).children.push(u) : o.push(u);
3762
3808
  }), { roots: o, byId: m };
3763
3809
  }
3764
- function ss(t, { rootId: a, getId: s, getName: i }) {
3810
+ function is(t, { rootId: a, getId: s, getName: i }) {
3765
3811
  const l = /* @__PURE__ */ new Map();
3766
3812
  function m(u, p) {
3767
3813
  const g = s(u), b = {
@@ -3776,7 +3822,7 @@ function ss(t, { rootId: a, getId: s, getName: i }) {
3776
3822
  return { roots: t.map((u) => m(u, null)), byId: l };
3777
3823
  }
3778
3824
  const Le = (t) => t.map((a) => ({ ...a, children: Le(a.children || []) }));
3779
- function ls(t, a) {
3825
+ function os(t, a) {
3780
3826
  let s = null;
3781
3827
  function i(m) {
3782
3828
  return m.map((o) => {
@@ -3791,7 +3837,7 @@ function ls(t, a) {
3791
3837
  }
3792
3838
  return { newRoots: i(t), removed: s };
3793
3839
  }
3794
- function is(t, a, s) {
3840
+ function cs(t, a, s) {
3795
3841
  function i(l) {
3796
3842
  return l.map((m) => {
3797
3843
  if (m.id === a)
@@ -3815,13 +3861,13 @@ function wa(t, a, s = null) {
3815
3861
  }
3816
3862
  return null;
3817
3863
  }
3818
- function Ol({
3864
+ function jl({
3819
3865
  data: t = [],
3820
3866
  rootId: a = "root",
3821
3867
  title: s = "Folders",
3822
- getId: i = es,
3823
- getParent: l = ts,
3824
- getName: m = as,
3868
+ getId: i = as,
3869
+ getParent: l = rs,
3870
+ getName: m = ns,
3825
3871
  onSelect: o,
3826
3872
  onCreateRoot: u,
3827
3873
  onCreateChild: p,
@@ -3833,7 +3879,7 @@ function Ol({
3833
3879
  // ← allow root moves by default now
3834
3880
  indentUnit: h = 24
3835
3881
  }) {
3836
- const { roots: S } = he(() => rs(t) ? ss(t, { rootId: a, getId: i, getName: m }) : ns(
3882
+ const { roots: S } = he(() => ss(t) ? is(t, { rootId: a, getId: i, getName: m }) : ls(
3837
3883
  t.map((N) => ({ ...N })),
3838
3884
  { rootId: a, getId: i, getParent: l, getName: m }
3839
3885
  ), [t, a, i, l, m]), [E, F] = O({}), C = ee((N) => {
@@ -3881,16 +3927,16 @@ function Ol({
3881
3927
  I(Le(S));
3882
3928
  return;
3883
3929
  }
3884
- const A = Le(R), { newRoots: B, removed: V } = ls(A, q);
3930
+ const A = Le(R), { newRoots: B, removed: V } = os(A, q);
3885
3931
  if (!V) return;
3886
- const ne = is(B, P, V);
3932
+ const ne = cs(B, P, V);
3887
3933
  I(ne), r?.({ sourceId: q, destParentId: P, newTree: ne });
3888
3934
  },
3889
3935
  [R, S, a, d, h, r]
3890
3936
  ), x = ee(
3891
3937
  (N, T = 0) => N.map((L) => /* @__PURE__ */ n(te.Fragment, { children: [
3892
3938
  /* @__PURE__ */ e(
3893
- Kn,
3939
+ ts,
3894
3940
  {
3895
3941
  node: L,
3896
3942
  depth: T,
@@ -3949,7 +3995,7 @@ function Ol({
3949
3995
  function Ne(...t) {
3950
3996
  return t.filter(Boolean).join(" ");
3951
3997
  }
3952
- const Ll = ({
3998
+ const Ml = ({
3953
3999
  tabs: t = [],
3954
4000
  keepMounted: a = !0,
3955
4001
  orientation: s = "horizontal",
@@ -3978,7 +4024,7 @@ const Ll = ({
3978
4024
  ] })
3979
4025
  ) });
3980
4026
  };
3981
- function os({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4027
+ function ds({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
3982
4028
  console.log(t);
3983
4029
  const [l, m] = te.useState(t), [o, u] = te.useState(() => {
3984
4030
  const r = a && a[t.key] || {};
@@ -4456,8 +4502,8 @@ function os({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4456
4502
  ] }, y)) })
4457
4503
  ] }) });
4458
4504
  }
4459
- const cs = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex -space-x-2", children: t });
4460
- function ds({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4505
+ const ms = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex -space-x-2", children: t });
4506
+ function us({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4461
4507
  console.log(`[DynamicConfig/DataTableRenderer] Component loaded for section: ${t.key}`);
4462
4508
  const [l, m] = O(t), [o, u] = O(null), [p, g] = O(null);
4463
4509
  console.log(`[DataTableRenderer] ${l.key} - Received props:`, { item: t, initialData: a });
@@ -4725,7 +4771,7 @@ function ds({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4725
4771
  ...N.roles || []
4726
4772
  ];
4727
4773
  return /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
4728
- /* @__PURE__ */ e(cs, { children: T.length > 0 ? T.slice(0, 3).map((L, q) => /* @__PURE__ */ e(
4774
+ /* @__PURE__ */ e(ms, { children: T.length > 0 ? T.slice(0, 3).map((L, q) => /* @__PURE__ */ e(
4729
4775
  Ce,
4730
4776
  {
4731
4777
  size: "small",
@@ -4916,7 +4962,7 @@ function ds({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
4916
4962
  roles: b[o][p].roles || []
4917
4963
  } : { users: [], groups: [], roles: [] };
4918
4964
  return console.log("[DataTableRenderer] Opening modal with existing data:", k), console.log("[DataTableRenderer] Row data:", b[o]), console.log("[DataTableRenderer] Field name:", p), /* @__PURE__ */ e(
4919
- Hn,
4965
+ Kn,
4920
4966
  {
4921
4967
  isOpen: !0,
4922
4968
  onClose: () => {
@@ -4980,13 +5026,13 @@ const At = () => {
4980
5026
  } catch {
4981
5027
  return t;
4982
5028
  }
4983
- }, ms = {
5029
+ }, hs = {
4984
5030
  collectionList: qe("/unifyedxmanagedquicklinks/config/collection/list"),
4985
5031
  collectionCreate: qe("/unifyedxmanagedquicklinks/config/collection/create"),
4986
5032
  collectionUpdate: qe("/unifyedxmanagedquicklinks/config/collection"),
4987
5033
  updateCollection: qe("/unifyedxmanagedquicklinks/config/collection/updateOrder")
4988
5034
  }, Na = ({
4989
- endpoints: t = ms,
5035
+ endpoints: t = hs,
4990
5036
  className: a = "",
4991
5037
  onCollectionChange: s,
4992
5038
  showSearch: i = !0,
@@ -5050,7 +5096,7 @@ const At = () => {
5050
5096
  return s?.(A), A;
5051
5097
  }), $e.success("Collection created successfully"));
5052
5098
  } else {
5053
- const P = await Vn(
5099
+ const P = await _n(
5054
5100
  `${t.collectionUpdate}/${g}?newName=${r.trim()}`
5055
5101
  );
5056
5102
  h((M) => {
@@ -5067,7 +5113,7 @@ const At = () => {
5067
5113
  }, v = async ($) => {
5068
5114
  if (o)
5069
5115
  try {
5070
- await Mn(`${t.collectionUpdate}/${$.id}`) && (de.success("Deleted successfully", { autoClose: 3e3 }), I());
5116
+ await Un(`${t.collectionUpdate}/${$.id}`) && (de.success("Deleted successfully", { autoClose: 3e3 }), I());
5071
5117
  } catch (P) {
5072
5118
  console.log(P), de.error("Failed to delete collection");
5073
5119
  }
@@ -5262,23 +5308,23 @@ const At = () => {
5262
5308
  }
5263
5309
  )
5264
5310
  ] });
5265
- }, us = ({ item: t }) => /* @__PURE__ */ n("div", { className: "p-3 rounded-xl border border-dashed text-sm opacity-70", children: [
5311
+ }, ps = ({ item: t }) => /* @__PURE__ */ n("div", { className: "p-3 rounded-xl border border-dashed text-sm opacity-70", children: [
5266
5312
  "Unknown type:",
5267
5313
  " ",
5268
5314
  /* @__PURE__ */ e("span", { className: "font-mono", children: String(t?.type ?? "N/A") })
5269
5315
  ] }), Ae = /* @__PURE__ */ Object.create(null);
5270
- Ae.section = os;
5271
- Ae.datatable = ds;
5316
+ Ae.section = ds;
5317
+ Ae.datatable = us;
5272
5318
  Ae.managecollectionlist = ka;
5273
5319
  Ae["manage-collection-list"] = ka;
5274
- function hs(t) {
5320
+ function gs(t) {
5275
5321
  return typeof t == "string" ? t.trim() : t && typeof t == "object" ? String(t.type || "").trim() : "";
5276
5322
  }
5277
- function ps(t) {
5278
- const a = hs(t);
5279
- return Ae[a] || Ae[a.toLowerCase?.()] || us;
5323
+ function bs(t) {
5324
+ const a = gs(t);
5325
+ return Ae[a] || Ae[a.toLowerCase?.()] || ps;
5280
5326
  }
5281
- function gs({
5327
+ function fs({
5282
5328
  appid: t,
5283
5329
  configdata: a = null,
5284
5330
  disableApi: s = !1,
@@ -5464,7 +5510,7 @@ function gs({
5464
5510
  children: [
5465
5511
  g && /* @__PURE__ */ e("div", { className: "flex justify-center items-center h-64", children: /* @__PURE__ */ e(da, { size: "large" }) }),
5466
5512
  !g && v?.map((w, z) => {
5467
- const f = ps(w.type);
5513
+ const f = bs(w.type);
5468
5514
  if (f && f !== "UnknownType")
5469
5515
  return /* @__PURE__ */ e(
5470
5516
  f,
@@ -5503,7 +5549,7 @@ function gs({
5503
5549
  ] })
5504
5550
  ] });
5505
5551
  }
5506
- const Bl = ({
5552
+ const Vl = ({
5507
5553
  config: t,
5508
5554
  appid: a = "Configuration-Page",
5509
5555
  disableApi: s = !1
@@ -5607,7 +5653,7 @@ const Bl = ({
5607
5653
  ...y
5608
5654
  }, _ = [
5609
5655
  { label: "Overview", content: k(U) },
5610
- { label: "Configuration", content: /* @__PURE__ */ e(gs, { appid: a, configdata: { configuration: h }, disableApi: s, onCancel: F, onSave: R }) }
5656
+ { label: "Configuration", content: /* @__PURE__ */ e(fs, { appid: a, configdata: { configuration: h }, disableApi: s, onCancel: F, onSave: R }) }
5611
5657
  ];
5612
5658
  function G(v) {
5613
5659
  return v ? v.includes("<svg") ? /* @__PURE__ */ e("div", { dangerouslySetInnerHTML: { __html: v } }) : v : "📱";
@@ -5656,7 +5702,7 @@ const Bl = ({
5656
5702
  }
5657
5703
  return /* @__PURE__ */ n("div", { className: "full-config-page", children: [
5658
5704
  /* @__PURE__ */ e(
5659
- An,
5705
+ En,
5660
5706
  {
5661
5707
  heading: S.heading,
5662
5708
  subHeading: E.length > 0 ? void 0 : S.subHeading,
@@ -5706,7 +5752,7 @@ const Bl = ({
5706
5752
  )
5707
5753
  ] });
5708
5754
  };
5709
- function jl({ children: t }) {
5755
+ function Ul({ children: t }) {
5710
5756
  return /* @__PURE__ */ n(K, { children: [
5711
5757
  t,
5712
5758
  /* @__PURE__ */ e(
@@ -5731,7 +5777,7 @@ function jl({ children: t }) {
5731
5777
  /* @__PURE__ */ e("div", { id: "ui-toast-backdrop", "aria-hidden": "true" })
5732
5778
  ] });
5733
5779
  }
5734
- const Ml = ({
5780
+ const _l = ({
5735
5781
  heading: t = "Data Grid",
5736
5782
  subheading: a = "",
5737
5783
  totalCount: s = 0,
@@ -5910,7 +5956,7 @@ const Ml = ({
5910
5956
  ] })
5911
5957
  ] });
5912
5958
  };
5913
- function Vl(t) {
5959
+ function ql(t) {
5914
5960
  const {
5915
5961
  data: a = [],
5916
5962
  totalCount: s = 0,
@@ -6103,7 +6149,7 @@ const ie = (t) => {
6103
6149
  title: "text-lg",
6104
6150
  meta: "text-sm"
6105
6151
  }
6106
- }, bs = (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;
6152
+ }, 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;
6107
6153
  function le({
6108
6154
  children: t,
6109
6155
  className: a = "",
@@ -6115,7 +6161,7 @@ function le({
6115
6161
  details: o = {},
6116
6162
  ...u
6117
6163
  }) {
6118
- const p = Xe(), g = bs(u, m), b = (y) => {
6164
+ const p = Xe(), g = xs(u, m), b = (y) => {
6119
6165
  l?.({
6120
6166
  key: g,
6121
6167
  checked: y.target.checked,
@@ -6151,7 +6197,7 @@ le.propTypes = {
6151
6197
  identity: c.oneOfType([c.string, c.func]),
6152
6198
  details: c.object
6153
6199
  };
6154
- function fs({
6200
+ function ys({
6155
6201
  size: t = "md",
6156
6202
  showCheckbox: a = !1,
6157
6203
  checkboxPosition: s = "top-left",
@@ -6235,7 +6281,7 @@ function fs({
6235
6281
  }
6236
6282
  );
6237
6283
  }
6238
- fs.propTypes = {
6284
+ ys.propTypes = {
6239
6285
  size: c.string,
6240
6286
  showCheckbox: c.bool,
6241
6287
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -6249,7 +6295,7 @@ fs.propTypes = {
6249
6295
  imageUrl: c.string,
6250
6296
  description: c.string
6251
6297
  };
6252
- const xs = "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", ys = () => /* @__PURE__ */ e("span", { className: "ml-1 inline-block h-2.5 w-2.5 rounded-full bg-emerald-500 align-middle", "aria-label": "verified" }), vs = [
6298
+ const vs = "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" }), Ns = [
6253
6299
  {
6254
6300
  _id: "cm-1",
6255
6301
  name: "All Students",
@@ -6268,13 +6314,13 @@ const xs = "px-2 py-1 rounded-full text-[11px] font-semibold tracking-wide borde
6268
6314
  joined: !0,
6269
6315
  description: "What is Academic Advising? The mission of the Academic Advising Department at..."
6270
6316
  }
6271
- ], ws = {
6317
+ ], ks = {
6272
6318
  sm: { wrap: "max-w-md", thumb: "h-14 w-14", name: "text-sm", desc: "text-[13px]" },
6273
6319
  md: { wrap: "max-w-3xl", thumb: "h-16 w-16", name: "text-base", desc: "text-sm" },
6274
6320
  lg: { wrap: "w-full", thumb: "h-20 w-20", name: "text-lg", desc: "text-base" }
6275
6321
  // lg occupies full width
6276
6322
  };
6277
- function Ns({
6323
+ function Cs({
6278
6324
  size: t = "md",
6279
6325
  showCheckbox: a = !1,
6280
6326
  checkboxPosition: s = "top-left",
@@ -6283,11 +6329,11 @@ function Ns({
6283
6329
  title: m = "Communities",
6284
6330
  activeTab: o = "joined",
6285
6331
  // "joined" | "suggested"
6286
- items: u = vs,
6332
+ items: u = Ns,
6287
6333
  // spread for identity (_id/instanceId/etc)
6288
6334
  ...p
6289
6335
  }) {
6290
- const g = ie(t), b = oe[g], r = ws[g], y = (d) => `px-1 pb-2 text-sm font-medium ${d === o ? "text-zinc-900 dark:text-zinc-100 border-b-2" : "text-zinc-500 dark:text-zinc-400"}`;
6336
+ const g = ie(t), b = oe[g], r = ks[g], y = (d) => `px-1 pb-2 text-sm font-medium ${d === o ? "text-zinc-900 dark:text-zinc-100 border-b-2" : "text-zinc-500 dark:text-zinc-400"}`;
6291
6337
  return /* @__PURE__ */ n(
6292
6338
  le,
6293
6339
  {
@@ -6337,7 +6383,7 @@ function Ns({
6337
6383
  /* @__PURE__ */ n("div", { className: "min-w-0", children: [
6338
6384
  /* @__PURE__ */ n("div", { className: `flex items-center gap-1 font-semibold ${r.name}`, children: [
6339
6385
  /* @__PURE__ */ e("span", { className: "truncate", children: d.name }),
6340
- /* @__PURE__ */ e(ys, {})
6386
+ /* @__PURE__ */ e(ws, {})
6341
6387
  ] }),
6342
6388
  /* @__PURE__ */ n("div", { className: "flex gap-1 justify-center items-center", children: [
6343
6389
  /* @__PURE__ */ n(yn, { children: [
@@ -6351,7 +6397,7 @@ function Ns({
6351
6397
  " Members"
6352
6398
  ] })
6353
6399
  ] }),
6354
- /* @__PURE__ */ e("div", { className: "mt-2", children: /* @__PURE__ */ e("span", { className: xs, children: d.category }) })
6400
+ /* @__PURE__ */ e("div", { className: "mt-2", children: /* @__PURE__ */ e("span", { className: vs, children: d.category }) })
6355
6401
  ] }),
6356
6402
  d.joined && /* @__PURE__ */ e(
6357
6403
  "span",
@@ -6390,7 +6436,7 @@ function Ns({
6390
6436
  }
6391
6437
  );
6392
6438
  }
6393
- Ns.propTypes = {
6439
+ Cs.propTypes = {
6394
6440
  size: c.string,
6395
6441
  showCheckbox: c.bool,
6396
6442
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -6410,7 +6456,7 @@ Ns.propTypes = {
6410
6456
  })
6411
6457
  )
6412
6458
  };
6413
- const ks = [
6459
+ const zs = [
6414
6460
  {
6415
6461
  _id: "nw-1",
6416
6462
  title: "KCC’s 3rd Annual Community & Business Partners Luncheon",
@@ -6435,7 +6481,7 @@ const ks = [
6435
6481
  thumb: "https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=640&auto=format&fit=crop",
6436
6482
  excerpt: "Community and business partners joined KCC leadership to recognize outstanding collaborations and celebrate student success…"
6437
6483
  }
6438
- ], Cs = {
6484
+ ], Ss = {
6439
6485
  sm: {
6440
6486
  wrap: "max-w-md",
6441
6487
  itemThumb: "h-14 w-20",
@@ -6460,18 +6506,18 @@ const ks = [
6460
6506
  excerpt: "text-sm text-zinc-600 dark:text-zinc-300 line-clamp-2"
6461
6507
  }
6462
6508
  }, Et = ({ 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 });
6463
- function zs({
6509
+ function $s({
6464
6510
  size: t = "md",
6465
6511
  showCheckbox: a = !1,
6466
6512
  checkboxPosition: s = "top-left",
6467
6513
  onSelect: i,
6468
6514
  identity: l = "_id",
6469
6515
  title: m = "News",
6470
- items: o = ks,
6516
+ items: o = zs,
6471
6517
  // spread for identity fields: _id / id / instanceId etc.
6472
6518
  ...u
6473
6519
  }) {
6474
- const p = ie(t), g = oe[p], b = Cs[p];
6520
+ const p = ie(t), g = oe[p], b = Ss[p];
6475
6521
  return /* @__PURE__ */ n(
6476
6522
  le,
6477
6523
  {
@@ -6528,7 +6574,7 @@ function zs({
6528
6574
  }
6529
6575
  );
6530
6576
  }
6531
- zs.propTypes = {
6577
+ $s.propTypes = {
6532
6578
  size: c.string,
6533
6579
  showCheckbox: c.bool,
6534
6580
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -6546,7 +6592,7 @@ zs.propTypes = {
6546
6592
  })
6547
6593
  )
6548
6594
  };
6549
- const Ss = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], $s = {
6595
+ const Ds = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], Ts = {
6550
6596
  sm: {
6551
6597
  wrap: "max-w-md w-full md:w-auto flex-none justify-self-start",
6552
6598
  mapH: "h-48",
@@ -6568,15 +6614,15 @@ const Ss = ["All", "Library", "Restaurant", "Parking", "Bus Stop"], $s = {
6568
6614
  searchH: "h-11 text-base",
6569
6615
  chipGap: "gap-3.5"
6570
6616
  }
6571
- }, Ds = ({ label: t, active: a = !1, size: s = "md", className: i = "" }) => {
6617
+ }, As = ({ label: t, active: a = !1, size: s = "md", className: i = "" }) => {
6572
6618
  const l = "inline-flex items-center justify-center whitespace-nowrap rounded-full border transition-colors duration-150 shadow-[0_0.5px_0_rgba(0,0,0,0.04)]", m = {
6573
6619
  sm: "h-8 px-3 text-[11px] font-semibold",
6574
6620
  md: "h-9 px-3.5 text-[13px] font-semibold",
6575
6621
  lg: "h-10 px-4 text-sm font-semibold"
6576
6622
  }, 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";
6577
6623
  return /* @__PURE__ */ e("span", { className: `${l} ${m[s] ?? m.md} ${o} ${i}`, children: t });
6578
- }, Ts = (t, a = 12) => `https://www.google.com/maps?q=${encodeURIComponent(t)}&z=${a}&output=embed`;
6579
- function As({
6624
+ }, Fs = (t, a = 12) => `https://www.google.com/maps?q=${encodeURIComponent(t)}&z=${a}&output=embed`;
6625
+ function Es({
6580
6626
  size: t = "md",
6581
6627
  showCheckbox: a = !1,
6582
6628
  checkboxPosition: s = "top-left",
@@ -6584,7 +6630,7 @@ function As({
6584
6630
  identity: l = "_id",
6585
6631
  title: m = "Campus Map",
6586
6632
  campusName: o = "Morningside Heights Campus",
6587
- filters: u = Ss,
6633
+ filters: u = Ds,
6588
6634
  activeFilter: p = "All",
6589
6635
  // NEW: iframe controls
6590
6636
  mapQuery: g = "Florida",
@@ -6593,7 +6639,7 @@ function As({
6593
6639
  // optional full embed URL override
6594
6640
  ...y
6595
6641
  }) {
6596
- const d = ie(t), h = oe[d], S = $s[d], E = r || Ts(g, b);
6642
+ const d = ie(t), h = oe[d], S = Ts[d], E = r || Fs(g, b);
6597
6643
  return /* @__PURE__ */ e(
6598
6644
  le,
6599
6645
  {
@@ -6627,7 +6673,7 @@ function As({
6627
6673
  /* @__PURE__ */ e("div", { className: "h-8 w-8 rounded-full bg-white/90 border border-zinc-300 flex items-center justify-center", children: "›" })
6628
6674
  ] })
6629
6675
  ] }),
6630
- /* @__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 ${S.chipGap} overflow-x-auto scrollbar-none`, children: u.map((F) => /* @__PURE__ */ e(Ds, { label: F, active: F === p, size: d }, F)) }) }),
6676
+ /* @__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 ${S.chipGap} overflow-x-auto scrollbar-none`, children: u.map((F) => /* @__PURE__ */ e(As, { label: F, active: F === p, size: d }, F)) }) }),
6631
6677
  /* @__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 ${S.searchH}`, children: [
6632
6678
  /* @__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" }) }),
6633
6679
  /* @__PURE__ */ e("span", { className: "ml-2 text-zinc-500 dark:text-zinc-400", children: "Search places" })
@@ -6636,7 +6682,7 @@ function As({
6636
6682
  }
6637
6683
  );
6638
6684
  }
6639
- As.propTypes = {
6685
+ Es.propTypes = {
6640
6686
  size: c.string,
6641
6687
  showCheckbox: c.bool,
6642
6688
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -6652,7 +6698,7 @@ As.propTypes = {
6652
6698
  mapUrl: c.string
6653
6699
  // optional full embed URL override
6654
6700
  };
6655
- const Fs = [
6701
+ const Rs = [
6656
6702
  {
6657
6703
  _id: "ev-1",
6658
6704
  title: "Warhawk Weekly 10-1: Master the future; Rolling out 'Red'",
@@ -6683,7 +6729,7 @@ const Fs = [
6683
6729
  image: "https://images.unsplash.com/photo-1492684223066-81342ee5ff30?q=80&w=1200&auto=format&fit=crop",
6684
6730
  description: ""
6685
6731
  }
6686
- ], Es = {
6732
+ ], Ps = {
6687
6733
  sm: {
6688
6734
  wrap: "max-w-sm w-full",
6689
6735
  listGap: "gap-3",
@@ -6720,11 +6766,11 @@ const Fs = [
6720
6766
  showImage: !0,
6721
6767
  compact: !1
6722
6768
  }
6723
- }, Rs = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Ca = (t) => {
6769
+ }, Is = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Ca = (t) => {
6724
6770
  const a = new Date(t);
6725
6771
  return {
6726
6772
  day: a.getDate(),
6727
- month: Rs[a.getMonth()] || "",
6773
+ month: Is[a.getMonth()] || "",
6728
6774
  time: a.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })
6729
6775
  };
6730
6776
  };
@@ -6752,7 +6798,7 @@ function Rt({ ev: t, sizeMeta: a, isSelected: s, onClick: i }) {
6752
6798
  }
6753
6799
  );
6754
6800
  }
6755
- function Ps({ ev: t, sizeMeta: a }) {
6801
+ function Os({ ev: t, sizeMeta: a }) {
6756
6802
  if (!t) return null;
6757
6803
  const { day: s, month: i, time: l } = Ca(t.date);
6758
6804
  return /* @__PURE__ */ n("div", { className: "bg-white dark:bg-zinc-900 rounded-lg border border-zinc-200 dark:border-zinc-800 p-6", children: [
@@ -6788,18 +6834,18 @@ function Ps({ ev: t, sizeMeta: a }) {
6788
6834
  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 }) })
6789
6835
  ] });
6790
6836
  }
6791
- function Is({
6837
+ function Ls({
6792
6838
  size: t = "md",
6793
6839
  showCheckbox: a = !1,
6794
6840
  checkboxPosition: s = "top-left",
6795
6841
  onSelect: i,
6796
6842
  identity: l = "_id",
6797
6843
  title: m = "Upcoming Events",
6798
- events: o = Fs,
6844
+ events: o = Rs,
6799
6845
  selectedIndex: u = 0,
6800
6846
  ...p
6801
6847
  }) {
6802
- const [g, b] = O(u), r = ie(t), y = oe[r], d = Es[r], h = o[g] || o[0], S = (F, C) => {
6848
+ const [g, b] = O(u), r = ie(t), y = oe[r], d = Ps[r], h = o[g] || o[0], S = (F, C) => {
6803
6849
  b(C), i?.(F);
6804
6850
  }, E = r === "lg";
6805
6851
  return /* @__PURE__ */ n(
@@ -6830,7 +6876,7 @@ function Is({
6830
6876
  },
6831
6877
  F._id || F.id || C
6832
6878
  )) }),
6833
- /* @__PURE__ */ e(Ps, { ev: h, sizeMeta: d })
6879
+ /* @__PURE__ */ e(Os, { ev: h, sizeMeta: d })
6834
6880
  ] })
6835
6881
  ) : (
6836
6882
  // Small/Medium: Simple list only
@@ -6850,7 +6896,7 @@ function Is({
6850
6896
  }
6851
6897
  );
6852
6898
  }
6853
- Is.propTypes = {
6899
+ Ls.propTypes = {
6854
6900
  size: c.string,
6855
6901
  showCheckbox: c.bool,
6856
6902
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -6871,7 +6917,7 @@ Is.propTypes = {
6871
6917
  ),
6872
6918
  selectedIndex: c.number
6873
6919
  };
6874
- const Os = [
6920
+ const Bs = [
6875
6921
  {
6876
6922
  _id: "mail-1",
6877
6923
  sender: "Sender Name",
@@ -6916,7 +6962,7 @@ const Os = [
6916
6962
  // pinned: false,
6917
6963
  // important: false,
6918
6964
  // },
6919
- ], Ls = {
6965
+ ], js = {
6920
6966
  sm: {
6921
6967
  wrap: "max-w-sm w-full",
6922
6968
  listGap: "gap-2",
@@ -6954,7 +7000,7 @@ const Os = [
6954
7000
  searchHeight: "h-10"
6955
7001
  }
6956
7002
  };
6957
- function Bs({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin: m }) {
7003
+ function Ms({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin: m }) {
6958
7004
  const o = (p) => {
6959
7005
  p.stopPropagation(), l?.(t);
6960
7006
  }, u = (p) => {
@@ -7003,20 +7049,20 @@ function Bs({ email: t, sizeMeta: a, isSelected: s, onClick: i, onStar: l, onPin
7003
7049
  }
7004
7050
  );
7005
7051
  }
7006
- function js({
7052
+ function Vs({
7007
7053
  size: t = "md",
7008
7054
  showCheckbox: a = !1,
7009
7055
  checkboxPosition: s = "top-left",
7010
7056
  onSelect: i,
7011
7057
  identity: l = "_id",
7012
7058
  title: m = "0365 Mails",
7013
- emails: o = Os,
7059
+ emails: o = Bs,
7014
7060
  selectedIndex: u = 0,
7015
7061
  onStar: p,
7016
7062
  onPin: g,
7017
7063
  ...b
7018
7064
  }) {
7019
- const [r, y] = O(u), d = ie(t), h = oe[d], S = Ls[d], E = (D, R) => {
7065
+ const [r, y] = O(u), d = ie(t), h = oe[d], S = js[d], E = (D, R) => {
7020
7066
  y(R), i?.(D);
7021
7067
  }, F = (D) => {
7022
7068
  const R = { ...D, starred: !D.starred };
@@ -7039,7 +7085,7 @@ function js({
7039
7085
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${h.title}`, children: m }) }),
7040
7086
  /* @__PURE__ */ e(ge, { placeholder: "Type to search..." }),
7041
7087
  /* @__PURE__ */ e("div", { className: "space-y-0", children: o.map((D, R) => /* @__PURE__ */ e(
7042
- Bs,
7088
+ Ms,
7043
7089
  {
7044
7090
  email: D,
7045
7091
  sizeMeta: S,
@@ -7055,7 +7101,7 @@ function js({
7055
7101
  }
7056
7102
  );
7057
7103
  }
7058
- js.propTypes = {
7104
+ Vs.propTypes = {
7059
7105
  size: c.string,
7060
7106
  showCheckbox: c.bool,
7061
7107
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -7079,7 +7125,7 @@ js.propTypes = {
7079
7125
  onStar: c.func,
7080
7126
  onPin: c.func
7081
7127
  };
7082
- const Ms = [
7128
+ const Us = [
7083
7129
  {
7084
7130
  _id: "contact-1",
7085
7131
  name: "Branden Baker",
@@ -7120,7 +7166,7 @@ const Ms = [
7120
7166
  // building: "Security Building",
7121
7167
  // initials: "AM"
7122
7168
  // }
7123
- ], Vs = {
7169
+ ], _s = {
7124
7170
  sm: {
7125
7171
  wrap: "max-w-sm w-full",
7126
7172
  searchHeight: "h-8",
@@ -7190,7 +7236,7 @@ function Pt({ contact: t, sizeMeta: a, isSelected: s, onClick: i }) {
7190
7236
  }
7191
7237
  );
7192
7238
  }
7193
- function Us({ contact: t, sizeMeta: a }) {
7239
+ function qs({ contact: t, sizeMeta: a }) {
7194
7240
  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: [
7195
7241
  /* @__PURE__ */ n("div", { className: "flex items-center gap-4 mb-6", children: [
7196
7242
  /* @__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 }),
@@ -7244,7 +7290,7 @@ function Us({ contact: t, sizeMeta: a }) {
7244
7290
  /* @__PURE__ */ e("p", { className: "text-sm", children: "Select a contact to view details" })
7245
7291
  ] }) });
7246
7292
  }
7247
- function _s({ sizeMeta: t }) {
7293
+ function Gs({ sizeMeta: t }) {
7248
7294
  return /* @__PURE__ */ n("div", { className: `relative ${t.searchHeight} mb-4`, children: [
7249
7295
  /* @__PURE__ */ e(bt, { className: "absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-zinc-400" }),
7250
7296
  /* @__PURE__ */ e(
@@ -7257,18 +7303,18 @@ function _s({ sizeMeta: t }) {
7257
7303
  )
7258
7304
  ] });
7259
7305
  }
7260
- function qs({
7306
+ function Ws({
7261
7307
  size: t = "md",
7262
7308
  showCheckbox: a = !1,
7263
7309
  checkboxPosition: s = "top-left",
7264
7310
  onSelect: i,
7265
7311
  identity: l = "_id",
7266
7312
  title: m = "Directory",
7267
- contacts: o = Ms,
7313
+ contacts: o = Us,
7268
7314
  selectedIndex: u = 0,
7269
7315
  ...p
7270
7316
  }) {
7271
- const [g, b] = O(u), r = ie(t), y = oe[r], d = Vs[r], h = (F, C) => {
7317
+ const [g, b] = O(u), r = ie(t), y = oe[r], d = _s[r], h = (F, C) => {
7272
7318
  b(C), i?.(F);
7273
7319
  }, S = o[g] || o[0], E = d.layout === "split";
7274
7320
  return /* @__PURE__ */ n(
@@ -7283,7 +7329,7 @@ function qs({
7283
7329
  ...p,
7284
7330
  children: [
7285
7331
  /* @__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 ${y.title}`, children: m }) }),
7286
- /* @__PURE__ */ e(_s, { sizeMeta: d }),
7332
+ /* @__PURE__ */ e(Gs, { sizeMeta: d }),
7287
7333
  E ? /* @__PURE__ */ n("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6 min-h-0", children: [
7288
7334
  /* @__PURE__ */ e("div", { className: "space-y-3", children: o.map((F, C) => /* @__PURE__ */ e(
7289
7335
  Pt,
@@ -7296,7 +7342,7 @@ function qs({
7296
7342
  F._id || F.id || C
7297
7343
  )) }),
7298
7344
  /* @__PURE__ */ e(
7299
- Us,
7345
+ qs,
7300
7346
  {
7301
7347
  contact: S,
7302
7348
  sizeMeta: d
@@ -7320,7 +7366,7 @@ function qs({
7320
7366
  }
7321
7367
  );
7322
7368
  }
7323
- qs.propTypes = {
7369
+ Ws.propTypes = {
7324
7370
  size: c.string,
7325
7371
  showCheckbox: c.bool,
7326
7372
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -7342,7 +7388,7 @@ qs.propTypes = {
7342
7388
  selectedIndex: c.number
7343
7389
  };
7344
7390
  const De = (t) => new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(Number(t || 0));
7345
- function Gs({ side: t = "left", date: a, title: s, amount: i, kind: l = "payment" }) {
7391
+ function Js({ side: t = "left", date: a, title: s, amount: i, kind: l = "payment" }) {
7346
7392
  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: [
7347
7393
  /* @__PURE__ */ e("div", { className: "text-xs text-zinc-500", children: a }),
7348
7394
  /* @__PURE__ */ e("div", { className: "mt-1 text-sm text-zinc-700 dark:text-zinc-200", children: s }),
@@ -7358,7 +7404,7 @@ function Gs({ side: t = "left", date: a, title: s, amount: i, kind: l = "payment
7358
7404
  ] })
7359
7405
  ] });
7360
7406
  }
7361
- const Ws = {
7407
+ const Ys = {
7362
7408
  sm: {
7363
7409
  // was: "max-w-md w-full md:w-auto flex-none justify-self-start"
7364
7410
  wrap: "max-w-md w-auto inline-block align-top flex-none justify-self-start",
@@ -7390,7 +7436,7 @@ const Ws = {
7390
7436
  buttonPad: "py-3.5"
7391
7437
  }
7392
7438
  };
7393
- function Js({
7439
+ function Xs({
7394
7440
  size: t = "md",
7395
7441
  showCheckbox: a = !1,
7396
7442
  checkboxPosition: s = "top-left",
@@ -7420,7 +7466,7 @@ function Js({
7420
7466
  ],
7421
7467
  ...r
7422
7468
  }) {
7423
- const y = ie(t), d = oe[y], h = Ws[y];
7469
+ const y = ie(t), d = oe[y], h = Ys[y];
7424
7470
  return /* @__PURE__ */ n(
7425
7471
  le,
7426
7472
  {
@@ -7466,7 +7512,7 @@ function Js({
7466
7512
  ] })
7467
7513
  ] }),
7468
7514
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: b.slice(0, 2).map((S, E) => /* @__PURE__ */ e(
7469
- Gs,
7515
+ Js,
7470
7516
  {
7471
7517
  side: E === 0 ? "left" : "right",
7472
7518
  date: S.date,
@@ -7495,7 +7541,7 @@ function Js({
7495
7541
  }
7496
7542
  );
7497
7543
  }
7498
- Js.propTypes = {
7544
+ Xs.propTypes = {
7499
7545
  size: c.string,
7500
7546
  showCheckbox: c.bool,
7501
7547
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -7516,7 +7562,7 @@ Js.propTypes = {
7516
7562
  })
7517
7563
  )
7518
7564
  };
7519
- const Ys = {
7565
+ const Qs = {
7520
7566
  sm: {
7521
7567
  wrap: "max-w-xs w-full",
7522
7568
  title: "text-base font-semibold",
@@ -7583,7 +7629,7 @@ function It({ leave: t, sizeMeta: a }) {
7583
7629
  ] }, i)) })
7584
7630
  ] });
7585
7631
  }
7586
- function Xs({
7632
+ function Hs({
7587
7633
  size: t = "md",
7588
7634
  showCheckbox: a = !1,
7589
7635
  checkboxPosition: s = "top-left",
@@ -7593,7 +7639,7 @@ function Xs({
7593
7639
  term: o = "Fall 2025",
7594
7640
  ...u
7595
7641
  }) {
7596
- const [p, g] = O("vacation"), [b, r] = O(!1), y = ie(t), d = oe[y], h = Ys[y], S = Ge.find((E) => E.id === p) || Ge[0];
7642
+ const [p, g] = O("vacation"), [b, r] = O(!1), y = ie(t), d = oe[y], h = Qs[y], S = Ge.find((E) => E.id === p) || Ge[0];
7597
7643
  return /* @__PURE__ */ n(
7598
7644
  le,
7599
7645
  {
@@ -7659,7 +7705,7 @@ function Xs({
7659
7705
  }
7660
7706
  );
7661
7707
  }
7662
- Xs.propTypes = {
7708
+ Hs.propTypes = {
7663
7709
  size: c.string,
7664
7710
  showCheckbox: c.bool,
7665
7711
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -7668,7 +7714,7 @@ Xs.propTypes = {
7668
7714
  title: c.string,
7669
7715
  term: c.string
7670
7716
  };
7671
- const Qs = [
7717
+ const Zs = [
7672
7718
  {
7673
7719
  id: "admin-files",
7674
7720
  name: "Admin Files",
@@ -7701,7 +7747,7 @@ const Qs = [
7701
7747
  // icon: Video,
7702
7748
  // color: "text-purple-500"
7703
7749
  // }
7704
- ], Hs = [
7750
+ ], Ks = [
7705
7751
  {
7706
7752
  id: "file-1",
7707
7753
  name: "2024 - Taurus",
@@ -7734,7 +7780,7 @@ const Qs = [
7734
7780
  icon: ut,
7735
7781
  color: "text-orange-500"
7736
7782
  }
7737
- ], Zs = {
7783
+ ], el = {
7738
7784
  sm: {
7739
7785
  wrap: "max-w-xs w-full",
7740
7786
  title: "text-base font-semibold",
@@ -7774,7 +7820,7 @@ function Ot({ item: t, sizeMeta: a, showDate: s = !1 }) {
7774
7820
  /* @__PURE__ */ e(ye, { className: "h-4 w-4 text-zinc-400 group-hover:text-zinc-600 dark:group-hover:text-zinc-300 transition-colors duration-200" })
7775
7821
  ] });
7776
7822
  }
7777
- function Ks({
7823
+ function tl({
7778
7824
  size: t = "md",
7779
7825
  showCheckbox: a = !1,
7780
7826
  checkboxPosition: s = "top-left",
@@ -7784,7 +7830,7 @@ function Ks({
7784
7830
  subtitle: o = "Drive Shared",
7785
7831
  ...u
7786
7832
  }) {
7787
- const [p, g] = O(!1), b = ie(t), r = oe[b], y = Zs[b];
7833
+ const [p, g] = O(!1), b = ie(t), r = oe[b], y = el[b];
7788
7834
  return /* @__PURE__ */ n(
7789
7835
  le,
7790
7836
  {
@@ -7822,7 +7868,7 @@ function Ks({
7822
7868
  ] })
7823
7869
  ] })
7824
7870
  ] }),
7825
- /* @__PURE__ */ e("div", { className: `grid ${y.gridCols} gap-3 `, children: Qs.map((d) => /* @__PURE__ */ e(
7871
+ /* @__PURE__ */ e("div", { className: `grid ${y.gridCols} gap-3 `, children: Zs.map((d) => /* @__PURE__ */ e(
7826
7872
  Ot,
7827
7873
  {
7828
7874
  item: d,
@@ -7832,7 +7878,7 @@ function Ks({
7832
7878
  )) }),
7833
7879
  y.showRecent && /* @__PURE__ */ n("div", { className: "", children: [
7834
7880
  /* @__PURE__ */ e("h4", { className: `font-semibold text-zinc-900 dark:text-zinc-100 mb-3 ${y.item}`, children: "Recent Files" }),
7835
- /* @__PURE__ */ e("div", { className: "space-y-2", children: Hs.map((d) => /* @__PURE__ */ e(
7881
+ /* @__PURE__ */ e("div", { className: "space-y-2", children: Ks.map((d) => /* @__PURE__ */ e(
7836
7882
  Ot,
7837
7883
  {
7838
7884
  item: d,
@@ -7850,7 +7896,7 @@ function Ks({
7850
7896
  }
7851
7897
  );
7852
7898
  }
7853
- Ks.propTypes = {
7899
+ tl.propTypes = {
7854
7900
  size: c.string,
7855
7901
  showCheckbox: c.bool,
7856
7902
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -7859,7 +7905,7 @@ Ks.propTypes = {
7859
7905
  title: c.string,
7860
7906
  subtitle: c.string
7861
7907
  };
7862
- const el = [
7908
+ const al = [
7863
7909
  {
7864
7910
  id: "alert-1",
7865
7911
  type: "warning",
@@ -7896,7 +7942,7 @@ const el = [
7896
7942
  // read: true,
7897
7943
  // priority: "medium"
7898
7944
  // }
7899
- ], tl = {
7945
+ ], rl = {
7900
7946
  sm: {
7901
7947
  wrap: "max-w-sm w-full",
7902
7948
  title: "text-sm font-semibold",
@@ -7932,7 +7978,7 @@ const el = [
7932
7978
  if (!a || a === 0) return t;
7933
7979
  const s = t.split(" ");
7934
7980
  return s.length <= a ? t : s.slice(0, a).join(" ") + "...";
7935
- }, al = (t) => {
7981
+ }, nl = (t) => {
7936
7982
  switch (t) {
7937
7983
  case "warning":
7938
7984
  return Mt;
@@ -7975,8 +8021,8 @@ const el = [
7975
8021
  };
7976
8022
  }
7977
8023
  };
7978
- function rl({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
7979
- const [l, m] = O(!1), o = za(t.type), u = al(t.type);
8024
+ function sl({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
8025
+ const [l, m] = O(!1), o = za(t.type), u = nl(t.type);
7980
8026
  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: [
7981
8027
  /* @__PURE__ */ e(
7982
8028
  "button",
@@ -7999,7 +8045,7 @@ function rl({ alert: t, sizeMeta: a, onDismiss: s, onMarkRead: i }) {
7999
8045
  !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" })
8000
8046
  ] });
8001
8047
  }
8002
- function nl({ alert: t, onDismiss: a }) {
8048
+ function ll({ alert: t, onDismiss: a }) {
8003
8049
  const [s, i] = O(!1), l = za("banner"), m = () => {
8004
8050
  i(!0), a?.(t);
8005
8051
  };
@@ -8019,18 +8065,18 @@ function nl({ alert: t, onDismiss: a }) {
8019
8065
  )
8020
8066
  ] }) });
8021
8067
  }
8022
- function sl({
8068
+ function il({
8023
8069
  size: t = "md",
8024
8070
  showCheckbox: a = !1,
8025
8071
  checkboxPosition: s = "top-left",
8026
8072
  onSelect: i,
8027
8073
  identity: l = "_id",
8028
8074
  title: m = "Alerts",
8029
- alerts: o = el,
8075
+ alerts: o = al,
8030
8076
  showBanner: u = !0,
8031
8077
  ...p
8032
8078
  }) {
8033
- const [g, b] = O(o), r = ie(t), y = oe[r], d = tl[r], h = (F) => {
8079
+ const [g, b] = O(o), r = ie(t), y = oe[r], d = rl[r], h = (F) => {
8034
8080
  b((C) => C.filter((D) => D.id !== F.id));
8035
8081
  }, S = g.find((F) => F.type === "banner"), E = g.filter((F) => F.type !== "banner");
8036
8082
  return /* @__PURE__ */ n(
@@ -8046,14 +8092,14 @@ function sl({
8046
8092
  children: [
8047
8093
  /* @__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: m }) }),
8048
8094
  u && S && t !== "sm" && /* @__PURE__ */ e(
8049
- nl,
8095
+ ll,
8050
8096
  {
8051
8097
  alert: S,
8052
8098
  onDismiss: h
8053
8099
  }
8054
8100
  ),
8055
8101
  /* @__PURE__ */ e("div", { className: "space-y-0.5", children: E.slice(0, 3).map((F) => /* @__PURE__ */ e(
8056
- rl,
8102
+ sl,
8057
8103
  {
8058
8104
  alert: F,
8059
8105
  sizeMeta: d,
@@ -8066,7 +8112,7 @@ function sl({
8066
8112
  }
8067
8113
  );
8068
8114
  }
8069
- sl.propTypes = {
8115
+ il.propTypes = {
8070
8116
  size: c.string,
8071
8117
  showCheckbox: c.bool,
8072
8118
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -8086,7 +8132,7 @@ sl.propTypes = {
8086
8132
  ),
8087
8133
  showBanner: c.bool
8088
8134
  };
8089
- const ll = [
8135
+ const ol = [
8090
8136
  {
8091
8137
  id: "video-1",
8092
8138
  title: "ALMA MATER",
@@ -8131,7 +8177,7 @@ const ll = [
8131
8177
  // duration: "2:10",
8132
8178
  // category: "Campus Life"
8133
8179
  // }
8134
- ], il = {
8180
+ ], cl = {
8135
8181
  sm: {
8136
8182
  wrap: "max-w-sm w-full",
8137
8183
  title: "text-sm font-bold",
@@ -8163,7 +8209,7 @@ const ll = [
8163
8209
  maxTitleLines: 3
8164
8210
  }
8165
8211
  };
8166
- function ol({ video: t, sizeMeta: a }) {
8212
+ function dl({ video: t, sizeMeta: a }) {
8167
8213
  const [s, i] = O(!1);
8168
8214
  return /* @__PURE__ */ n("div", { className: "group cursor-pointer", children: [
8169
8215
  /* @__PURE__ */ n("div", { className: `relative ${a.thumbnailHeight} rounded-lg overflow-hidden bg-zinc-200 dark:bg-zinc-800`, children: [
@@ -8196,17 +8242,17 @@ function ol({ video: t, sizeMeta: a }) {
8196
8242
  ] })
8197
8243
  ] });
8198
8244
  }
8199
- function cl({
8245
+ function ml({
8200
8246
  size: t = "md",
8201
8247
  showCheckbox: a = !1,
8202
8248
  checkboxPosition: s = "top-left",
8203
8249
  onSelect: i,
8204
8250
  identity: l = "_id",
8205
8251
  title: m = "Videos",
8206
- videos: o = ll,
8252
+ videos: o = ol,
8207
8253
  ...u
8208
8254
  }) {
8209
- const [p, g] = O(!1), b = ie(t), r = oe[b], y = il[b];
8255
+ const [p, g] = O(!1), b = ie(t), r = oe[b], y = cl[b];
8210
8256
  return /* @__PURE__ */ n(
8211
8257
  le,
8212
8258
  {
@@ -8241,7 +8287,7 @@ function cl({
8241
8287
  ] })
8242
8288
  ] }),
8243
8289
  /* @__PURE__ */ e("div", { className: `grid ${y.gridCols} gap-4 `, children: o.slice(0, y.gridCols === "grid-cols-3" ? 6 : 4).map((d) => /* @__PURE__ */ e(
8244
- ol,
8290
+ dl,
8245
8291
  {
8246
8292
  video: d,
8247
8293
  sizeMeta: y
@@ -8256,7 +8302,7 @@ function cl({
8256
8302
  }
8257
8303
  );
8258
8304
  }
8259
- cl.propTypes = {
8305
+ ml.propTypes = {
8260
8306
  size: c.string,
8261
8307
  showCheckbox: c.bool,
8262
8308
  checkboxPosition: c.oneOf(["top-left", "top-right"]),
@@ -8275,80 +8321,81 @@ cl.propTypes = {
8275
8321
  )
8276
8322
  };
8277
8323
  export {
8278
- Js as AccountSummaryMock,
8279
- fs as ActivityMock,
8280
- Hn as AddUserGroupsRolesModal,
8281
- sl as AlertsMock,
8324
+ Xs as AccountSummaryMock,
8325
+ ys as ActivityMock,
8326
+ Kn as AddUserGroupsRolesModal,
8327
+ il as AlertsMock,
8282
8328
  Ce as Avatar,
8283
8329
  yn as AvatarGroup,
8284
- wl as Badge,
8330
+ kl as Badge,
8285
8331
  kn as Breadcrumbs,
8286
8332
  vn as Button,
8287
- As as CampusMapMock,
8333
+ Es as CampusMapMock,
8288
8334
  ra as Checkbox,
8289
- Ns as CommunitiesMock,
8290
- Vl as CustomDataGrid,
8291
- Il as CustomDialog,
8292
- Ml as CustomGridToolbar,
8293
- Ll as CustomTab,
8335
+ Cs as CommunitiesMock,
8336
+ ql as CustomDataGrid,
8337
+ Bl as CustomDialog,
8338
+ _l as CustomGridToolbar,
8339
+ Ml as CustomTab,
8294
8340
  ia as DatePicker,
8295
8341
  Cn as DateRangePicker,
8296
- qs as DirectoryMock,
8297
- Ks as DriveMock,
8298
- gs as DynamicConfig,
8299
- Is as EventsMock,
8300
- Nl as FileUploadModal,
8301
- Bl as FullConfigPage,
8302
- Sl as FullScreenLoader,
8303
- kl as GenericFilter,
8342
+ Ws as DirectoryMock,
8343
+ tl as DriveMock,
8344
+ fs as DynamicConfig,
8345
+ Ls as EventsMock,
8346
+ Cl as FileUploadModal,
8347
+ Vl as FullConfigPage,
8348
+ Dl as FullScreenLoader,
8349
+ zl as GenericFilter,
8350
+ Fl as IconButton,
8304
8351
  J as Input,
8305
- Xs as LeaveBalanceMock,
8352
+ Hs as LeaveBalanceMock,
8306
8353
  Na as ManageCollectionList,
8307
8354
  $n as Modal,
8308
8355
  at as MultiSelect,
8309
- zs as NewsMock,
8310
- js as O365MailsMock,
8311
- Fn as OptionsMenu,
8312
- An as PageHeader,
8313
- Tl as PageLayout,
8314
- Cl as Pagination,
8356
+ $s as NewsMock,
8357
+ Vs as O365MailsMock,
8358
+ Rn as OptionsMenu,
8359
+ En as PageHeader,
8360
+ El as PageLayout,
8361
+ Sl as Pagination,
8315
8362
  oa as RadioGroup,
8316
8363
  ge as SearchBar,
8317
8364
  ht as Select,
8318
8365
  le as SelectableCard,
8319
- zl as Sidebar,
8366
+ $l as Sidebar,
8320
8367
  da as Spinner,
8321
8368
  ma as Textarea,
8322
- jl as ToastProvider,
8369
+ Ul as ToastProvider,
8323
8370
  ua as ToggleSwitch,
8324
- $l as Tooltip,
8325
- Ol as TreeView,
8371
+ Tl as Tooltip,
8372
+ jl as TreeView,
8326
8373
  Z as UnifyedCoreButton,
8327
- cl as VideosMock,
8328
- Dl as WizardModal,
8374
+ ml as VideosMock,
8375
+ Al as WizardModal,
8329
8376
  fa as adGroupsListSearchApi,
8330
- Mn as axiosDelete,
8377
+ Un as axiosDelete,
8331
8378
  je as axiosGet,
8332
- Rl as axiosPatch,
8379
+ Ol as axiosPatch,
8333
8380
  Me as axiosPost,
8334
- Vn as axiosPut,
8335
- Fl as cookies,
8336
- jn as createHttpClient,
8337
- In as directoryPermissionsApi,
8338
- On as filePermissionsApi,
8381
+ _n as axiosPut,
8382
+ Pl as cookies,
8383
+ Vn as createHttpClient,
8384
+ Ln as directoryPermissionsApi,
8385
+ Bn as filePermissionsApi,
8339
8386
  ga as gateWayUrl,
8340
8387
  ze as gatewayBase,
8341
8388
  tt as getBaseUrl,
8342
- El as getSnapshot,
8343
- Pl as http,
8344
- Pn as localStore,
8389
+ Il as getSnapshot,
8390
+ Ll as http,
8391
+ On as localStore,
8345
8392
  yt as myDriveGatewayBaseV2,
8346
8393
  ie as normalizeSize,
8347
8394
  $e as notify,
8348
8395
  xa as provisioningBase,
8349
8396
  ya as rbacBase,
8350
8397
  va as searchRolesApi,
8351
- Al as sessionStore,
8398
+ Rl as sessionStore,
8352
8399
  oe as sizeClasses,
8353
8400
  ba as userSearchBase
8354
8401
  };