unifyedx-storybook-new 0.1.97 → 0.2.1

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 l, jsx as e, Fragment as ee } from "react/jsx-runtime";
2
- import re, { useState as L, useMemo as ne, useId as Qe, Fragment as J, useEffect as Q, useCallback as K, useRef as ue } from "react";
3
- import { a as W, U as lt, X as ge, P as _, L as ot, C as Le, b as Me, f as Be, d as pa, D as ga, F as it, e as ct, h as dt, T as Pe, u as ut, i as mt, I as ht, j as pt, k as gt, l as yt, m as ft, n as bt, S as ya, o as fa, M as vt, p as Nt, q as ba, r as xt, A as kt, s as wt, E as Ct, t as St, v as Dt, w as $t, x as Ft, y as va, z as Tt, B as Na, G as xa, H as At, J as Et, K as Rt, N as Oe, O as Xe, Q as Ze, R as It, V as zt, W as ka, Y as Bt, Z as ea, _ as Pt, $ as Ot, a0 as wa, a1 as Lt, a2 as Mt, a3 as Vt, a4 as Ut, a5 as qt, a6 as jt, a7 as Gt, a8 as _t, a9 as Yt, aa as Wt, ab as Jt, ac as Qt, ad as Xt, ae as Zt, af as Ht } from "./vendor-YVj7HSWs.js";
4
- import { Popover as Kt, PopoverButton as er, PopoverPanel as ar, Transition as oe, Dialog as me, TransitionChild as pe, DialogPanel as ke, DialogTitle as Ve, TabGroup as tr, TabList as rr, Tab as ae, TabPanels as nr, RadioGroup as Te, Listbox as X, ListboxButton as sr, ListboxOptions as lr, ListboxOption as or, SwitchGroup as ir, Switch as Ye, Menu as cr, MenuButton as dr, Portal as ur, MenuItems as mr, MenuItem as hr, DialogBackdrop as pr } from "@headlessui/react";
2
+ import re, { useState as O, useMemo as ne, useId as Qe, Fragment as J, useEffect as Q, useCallback as K, useRef as ue } from "react";
3
+ import { a as Y, U as lt, X as ge, P as _, L as ot, C as Oe, b as Me, f as Be, d as pa, D as ga, F as it, e as ct, h as dt, T as Pe, u as ut, i as mt, I as ht, j as pt, k as gt, l as yt, m as ft, n as bt, S as ya, o as fa, M as vt, p as Nt, q as ba, r as xt, A as kt, E as wt, s as Ct, t as St, v as Dt, w as $t, x as va, y as Ft, z as Na, B as xa, G as Tt, H as At, J as Et, K as Le, N as Xe, O as Ze, Q as Rt, R as It, V as ka, W as zt, Y as ea, Z as Bt, _ as Pt, $ as wa, a0 as Lt, a1 as Ot, a2 as Mt, a3 as Vt, a4 as Ut, a5 as qt, a6 as jt, a7 as Gt, a8 as _t, a9 as Wt, aa as Yt, ab as Jt, ac as Qt, ad as Xt, ae as Zt } from "./vendor-zgKTz69B.js";
4
+ import { Popover as Ht, PopoverButton as Kt, PopoverPanel as er, Transition as oe, Dialog as me, TransitionChild as pe, DialogPanel as ke, DialogTitle as Ve, TabGroup as ar, TabList as tr, Tab as ae, TabPanels as rr, RadioGroup as Te, Listbox as X, ListboxButton as nr, ListboxOptions as sr, ListboxOption as lr, SwitchGroup as or, Switch as We, Menu as ir, MenuButton as cr, Portal as dr, MenuItems as ur, MenuItem as mr, DialogBackdrop as hr } from "@headlessui/react";
5
5
  import { motion as te, AnimatePresence as fe } from "framer-motion";
6
- import { d as gr } from "./vendor-lodash-DkNZMlHW.js";
7
- import { useFloating as Ca, offset as Sa, flip as Da, shift as $a, autoUpdate as Fa, useClick as yr, useDismiss as fr, useInteractions as br, FloatingPortal as vr } from "@floating-ui/react";
8
- import We, { debounce as Nr } from "lodash";
9
- import { toast as le, ToastContainer as xr, Slide as kr } from "react-toastify";
6
+ import { d as pr } from "./vendor-lodash-BD0xlZyL.js";
7
+ import { useFloating as Ca, offset as Sa, flip as Da, shift as $a, autoUpdate as Fa, useClick as gr, useDismiss as yr, useInteractions as fr, FloatingPortal as br } from "@floating-ui/react";
8
+ import Ye, { debounce as vr } from "lodash";
9
+ import { toast as le, ToastContainer as Nr, Slide as xr } from "react-toastify";
10
10
  import "react-toastify/dist/ReactToastify.css";
11
- import { P as wr, S as Cr, F as Sr, G as Dr, a as $r, E as Fr, b as Tr, C as Ar, R as Er, c as Rr, d as Ir, e as zr, f as Br, I as Pr, g as ra } from "./vendor-syncfusion-DGcZfoFG.js";
12
- const Or = (t) => {
11
+ import { P as kr, S as wr, F as Cr, G as Sr, a as Dr, E as $r, b as Fr, C as Tr, R as Ar, c as Er, d as Rr, e as Ir, f as zr, I as Br, g as ra } from "./vendor-syncfusion-DGcZfoFG.js";
12
+ const Pr = (t) => {
13
13
  let r = 2166136261;
14
14
  for (let s = 0; s < t.length; s++)
15
15
  r ^= t.charCodeAt(s), r += (r << 1) + (r << 4) + (r << 7) + (r << 8) + (r << 24);
16
16
  return r >>> 0;
17
17
  }, Lr = (t) => {
18
- const r = (t ?? "").trim().toLowerCase(), s = parseInt((r.match(/\d+$/) ?? [0])[0], 10) || 0, o = Or(r), n = (o % 360 + 37 * s) % 360, u = 55 + (o >>> 8) % 20, i = 30 + (o >>> 16) % 10, c = 86 + (o >>> 24) % 8, y = `hsl(${n}, ${u}%, ${c}%)`, b = `hsl(${n}, ${u}%, ${i}%)`;
18
+ const r = (t ?? "").trim().toLowerCase(), s = parseInt((r.match(/\d+$/) ?? [0])[0], 10) || 0, o = Pr(r), n = (o % 360 + 37 * s) % 360, u = 55 + (o >>> 8) % 20, i = 30 + (o >>> 16) % 10, c = 86 + (o >>> 24) % 8, y = `hsl(${n}, ${u}%, ${c}%)`, b = `hsl(${n}, ${u}%, ${i}%)`;
19
19
  return { bg: y, text: b };
20
- }, Mr = (t = "") => t.split(" ").map((r) => r[0]).slice(0, 2).join("").toUpperCase(), Ta = ({
20
+ }, Or = (t = "") => t.split(" ").map((r) => r[0]).slice(0, 2).join("").toUpperCase(), Ta = ({
21
21
  src: t,
22
22
  name: r,
23
23
  size: s = "medium",
@@ -29,7 +29,7 @@ const Or = (t) => {
29
29
  className: u,
30
30
  ...i
31
31
  }) => {
32
- const [c, y] = L(!1), b = ne(() => Lr(r), []), N = t && !c, a = !N && r, w = !N && !r, m = W(
32
+ const [c, y] = O(!1), b = ne(() => Lr(r), []), N = t && !c, a = !N && r, w = !N && !r, m = Y(
33
33
  "avatar-container",
34
34
  `avatar--size-${s}`,
35
35
  u
@@ -47,10 +47,10 @@ const Or = (t) => {
47
47
  onError: () => y(!0)
48
48
  }
49
49
  ),
50
- a && /* @__PURE__ */ e("span", { className: "avatar-initials", "aria-label": r, children: Mr(r) }),
50
+ a && /* @__PURE__ */ e("span", { className: "avatar-initials", "aria-label": r, children: Or(r) }),
51
51
  w && /* @__PURE__ */ e("span", { className: "avatar-icon", children: /* @__PURE__ */ e(lt, {}) })
52
52
  ] });
53
- }, Wn = ({ children: t, max: r = 4, truncatedMessage: s = "Members", ...o }) => {
53
+ }, Yn = ({ children: t, max: r = 4, truncatedMessage: s = "Members", ...o }) => {
54
54
  const n = re.Children.toArray(t), u = n.slice(0, r), i = n.length - r;
55
55
  return /* @__PURE__ */ l("div", { className: "avatar-group-container", ...o, children: [
56
56
  u,
@@ -74,7 +74,7 @@ const Or = (t) => {
74
74
  className: c,
75
75
  ...y
76
76
  }) => {
77
- const b = W(
77
+ const b = Y(
78
78
  "badge",
79
79
  `badge--variant-${r}`,
80
80
  `badge--size-${s}`,
@@ -99,7 +99,7 @@ const Or = (t) => {
99
99
  }
100
100
  )
101
101
  ] });
102
- }, Vr = ({
102
+ }, Mr = ({
103
103
  primary: t = !1,
104
104
  backgroundColor: r = null,
105
105
  size: s = "medium",
@@ -118,7 +118,7 @@ const Or = (t) => {
118
118
  }
119
119
  );
120
120
  };
121
- Vr.propTypes = {
121
+ Mr.propTypes = {
122
122
  /** Is this the principal call to action on the page? */
123
123
  primary: _.bool,
124
124
  /** What background color to use */
@@ -130,11 +130,11 @@ Vr.propTypes = {
130
130
  /** Optional click handler */
131
131
  onClick: _.func
132
132
  };
133
- const Ur = {
133
+ const Vr = {
134
134
  small: "btn-sm",
135
135
  medium: "btn-md",
136
136
  large: "btn-lg"
137
- }, qr = {
137
+ }, Ur = {
138
138
  primary: "btn-primary",
139
139
  secondary: "btn-secondary"
140
140
  }, Z = ({
@@ -156,10 +156,10 @@ const Ur = {
156
156
  onClick: w,
157
157
  ...m
158
158
  }) => {
159
- const g = y || u, $ = c && !N, O = W(
159
+ const g = y || u, $ = c && !N, L = Y(
160
160
  "btn-base",
161
- Ur[b],
162
- qr[i],
161
+ Vr[b],
162
+ Ur[i],
163
163
  {
164
164
  "is-loading": u,
165
165
  "btn-icon-only": $
@@ -171,7 +171,7 @@ const Ur = {
171
171
  {
172
172
  "data-testid": t,
173
173
  type: s,
174
- className: O,
174
+ className: L,
175
175
  disabled: g,
176
176
  onClick: w,
177
177
  title: r || $ && o || (typeof N == "string" ? N : void 0),
@@ -185,7 +185,7 @@ const Ur = {
185
185
  ] })
186
186
  }
187
187
  );
188
- }, jr = ({ crumbs: t = [], ...r }) => /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: "breadcrumbs-nav", ...r, children: /* @__PURE__ */ e("ol", { className: "breadcrumbs-list", children: t.map((s, o) => {
188
+ }, qr = ({ crumbs: t = [], ...r }) => /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: "breadcrumbs-nav", ...r, children: /* @__PURE__ */ e("ol", { className: "breadcrumbs-list", children: t.map((s, o) => {
189
189
  const n = o === t.length - 1;
190
190
  return /* @__PURE__ */ l("li", { className: "breadcrumb-item", children: [
191
191
  /* @__PURE__ */ l(
@@ -201,7 +201,7 @@ const Ur = {
201
201
  }
202
202
  ),
203
203
  !n && /* @__PURE__ */ e(
204
- Le,
204
+ Oe,
205
205
  {
206
206
  className: "breadcrumb-separator",
207
207
  "aria-hidden": "true"
@@ -236,7 +236,7 @@ const Ur = {
236
236
  /* @__PURE__ */ e(
237
237
  "div",
238
238
  {
239
- className: W("checkbox-box", {
239
+ className: Y("checkbox-box", {
240
240
  "checkbox-box--checked": u,
241
241
  "checkbox-box--error": !!s
242
242
  }),
@@ -248,7 +248,7 @@ const Ur = {
248
248
  ] }),
249
249
  s && /* @__PURE__ */ e("p", { className: "checkbox-error-message", children: s })
250
250
  ] });
251
- }, Ea = ({ children: t }) => /* @__PURE__ */ e(Kt, { className: "popover-container", children: t }), Ra = ({ children: t }) => /* @__PURE__ */ e(er, { as: "div", children: t }), Ia = ({ children: t, className: r }) => /* @__PURE__ */ e(ar, { className: `popover-panel ${r || ""}`, children: t }), za = ({
251
+ }, Ea = ({ children: t }) => /* @__PURE__ */ e(Ht, { className: "popover-container", children: t }), Ra = ({ children: t }) => /* @__PURE__ */ e(Kt, { as: "div", children: t }), Ia = ({ children: t, className: r }) => /* @__PURE__ */ e(er, { className: `popover-panel ${r || ""}`, children: t }), za = ({
252
252
  value: t,
253
253
  onChange: r,
254
254
  onClear: s,
@@ -262,7 +262,7 @@ const Ur = {
262
262
  const b = (N) => {
263
263
  N.stopPropagation(), N.preventDefault(), s?.();
264
264
  };
265
- return /* @__PURE__ */ l("div", { className: W("datepicker-wrapper", c), children: [
265
+ return /* @__PURE__ */ l("div", { className: Y("datepicker-wrapper", c), children: [
266
266
  n && /* @__PURE__ */ e("label", { className: "datepicker-label", htmlFor: "datepicker-input", children: n }),
267
267
  /* @__PURE__ */ l(Ea, { children: [
268
268
  /* @__PURE__ */ e(Ra, { asChild: !0, children: /* @__PURE__ */ l("div", { className: "datepicker-input-container", children: [
@@ -271,7 +271,7 @@ const Ur = {
271
271
  {
272
272
  id: "datepicker-input",
273
273
  type: "button",
274
- className: W("datepicker-trigger", {
274
+ className: Y("datepicker-trigger", {
275
275
  "datepicker-trigger--error": !!u,
276
276
  "datepicker-trigger--disabled": i
277
277
  }),
@@ -308,7 +308,7 @@ const Ur = {
308
308
  ] }),
309
309
  u && /* @__PURE__ */ e("p", { className: "datepicker-error-message", children: u })
310
310
  ] });
311
- }, Gr = ({
311
+ }, jr = ({
312
312
  value: t,
313
313
  onChange: r,
314
314
  onClear: s,
@@ -326,7 +326,7 @@ const Ur = {
326
326
  " - ",
327
327
  Be(N, "MMM d, y")
328
328
  ] }) : /* @__PURE__ */ e("span", { className: "datepicker-placeholder", children: o });
329
- return /* @__PURE__ */ l("div", { className: W("datepicker-wrapper", c), children: [
329
+ return /* @__PURE__ */ l("div", { className: Y("datepicker-wrapper", c), children: [
330
330
  n && /* @__PURE__ */ e("label", { className: "datepicker-label", htmlFor: "daterangepicker-input", children: n }),
331
331
  /* @__PURE__ */ l(Ea, { children: [
332
332
  /* @__PURE__ */ e(Ra, { asChild: !0, children: /* @__PURE__ */ l("div", { className: "datepicker-input-container", children: [
@@ -335,7 +335,7 @@ const Ur = {
335
335
  {
336
336
  id: "daterangepicker-input",
337
337
  type: "button",
338
- className: W("datepicker-trigger", {
338
+ className: Y("datepicker-trigger", {
339
339
  "datepicker-trigger--error": !!u,
340
340
  "datepicker-trigger--disabled": i
341
341
  }),
@@ -373,7 +373,7 @@ const Ur = {
373
373
  ] }),
374
374
  u && /* @__PURE__ */ e("p", { className: "datepicker-error-message", children: u })
375
375
  ] });
376
- }, _r = {
376
+ }, Gr = {
377
377
  // Documents
378
378
  doc: {
379
379
  type: "document",
@@ -589,7 +589,7 @@ const Ur = {
589
589
  View: "view",
590
590
  Manage: "edit"
591
591
  }, sa = ({ extension: t, size: r = 36 }) => {
592
- const s = (t || "").toLowerCase(), o = _r[s];
592
+ const s = (t || "").toLowerCase(), o = Gr[s];
593
593
  return o ? /* @__PURE__ */ e("div", { style: { width: r }, className: "flex-shrink-0", children: /* @__PURE__ */ e(
594
594
  it,
595
595
  {
@@ -610,7 +610,7 @@ const Ur = {
610
610
  children: /* @__PURE__ */ e(ct, { className: "text-gray-400", size: r * 0.75 })
611
611
  }
612
612
  );
613
- }, la = (t, r = 2) => {
613
+ }, _r = (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" }) }), la = (t, r = 2) => {
614
614
  if (!+t) return "0 Bytes";
615
615
  const s = 1024, o = r < 0 ? 0 : r, n = ["Bytes", "KB", "MB", "GB", "TB"], u = Math.floor(Math.log(t) / Math.log(s));
616
616
  return `${parseFloat((t / Math.pow(s, u)).toFixed(o))} ${n[u]}`;
@@ -671,7 +671,7 @@ const Ur = {
671
671
  ke,
672
672
  {
673
673
  className: "dialog-panel",
674
- onClick: (O) => O.stopPropagation(),
674
+ onClick: (L) => L.stopPropagation(),
675
675
  children: [
676
676
  /* @__PURE__ */ e("input", { ...o() }),
677
677
  /* @__PURE__ */ l("form", { onSubmit: N, className: "form-wrapper", children: [
@@ -714,7 +714,7 @@ const Ur = {
714
714
  $ && /* @__PURE__ */ l("div", { className: "file-list-container", children: [
715
715
  /* @__PURE__ */ e("h3", { children: "Upload Queue" }),
716
716
  /* @__PURE__ */ l("ul", { className: "file-list", children: [
717
- i.map((O, R) => /* @__PURE__ */ l(
717
+ i.map((L, R) => /* @__PURE__ */ l(
718
718
  "li",
719
719
  {
720
720
  className: "file-item",
@@ -723,12 +723,12 @@ const Ur = {
723
723
  /* @__PURE__ */ e(
724
724
  sa,
725
725
  {
726
- extension: O.name.split(".").pop()
726
+ extension: L.name.split(".").pop()
727
727
  }
728
728
  ),
729
729
  /* @__PURE__ */ l("div", { children: [
730
- /* @__PURE__ */ e("p", { className: "file-item-name", children: O.name }),
731
- /* @__PURE__ */ e("p", { className: "file-item-size", children: la(O.size) })
730
+ /* @__PURE__ */ e("p", { className: "file-item-name", children: L.name }),
731
+ /* @__PURE__ */ e("p", { className: "file-item-size", children: la(L.size) })
732
732
  ] })
733
733
  ] }),
734
734
  /* @__PURE__ */ e(
@@ -742,9 +742,9 @@ const Ur = {
742
742
  )
743
743
  ]
744
744
  },
745
- `${O.name}-${R}`
745
+ `${L.name}-${R}`
746
746
  )),
747
- c.map(({ file: O, message: R }, S) => /* @__PURE__ */ l(
747
+ c.map(({ file: L, message: R }, S) => /* @__PURE__ */ l(
748
748
  "li",
749
749
  {
750
750
  className: "file-item file-item--rejected",
@@ -753,12 +753,12 @@ const Ur = {
753
753
  /* @__PURE__ */ e(
754
754
  sa,
755
755
  {
756
- extension: O.name.split(".").pop()
756
+ extension: L.name.split(".").pop()
757
757
  }
758
758
  ),
759
759
  /* @__PURE__ */ l("div", { children: [
760
- /* @__PURE__ */ e("p", { className: "file-item-name", children: O.name }),
761
- /* @__PURE__ */ e("p", { className: "file-item-size", children: la(O.size) }),
760
+ /* @__PURE__ */ e("p", { className: "file-item-name", children: L.name }),
761
+ /* @__PURE__ */ e("p", { className: "file-item-size", children: la(L.size) }),
762
762
  /* @__PURE__ */ e("p", { className: "rejection-reason", children: R })
763
763
  ] })
764
764
  ] }),
@@ -773,7 +773,7 @@ const Ur = {
773
773
  )
774
774
  ]
775
775
  },
776
- `${O.name}-${S}`
776
+ `${L.name}-${S}`
777
777
  ))
778
778
  ] })
779
779
  ] })
@@ -817,10 +817,10 @@ const Ur = {
817
817
  fetchCreatedOrUpdatedByUsers: i = async () => []
818
818
  // Mockable fetcher
819
819
  }) => {
820
- const [c, y] = L({
820
+ const [c, y] = O({
821
821
  createdBy: [],
822
822
  updatedBy: []
823
- }), [b, N] = L({
823
+ }), [b, N] = O({
824
824
  createdBy: !1,
825
825
  updatedBy: !1
826
826
  }), a = ut({
@@ -867,7 +867,7 @@ const Ur = {
867
867
  }, $ = (S) => {
868
868
  const B = n[S].key, P = n[S].url;
869
869
  n[S].type === "multiselect-users" && c[B].length === 0 && !b[B] && g(B, P);
870
- }, O = () => {
870
+ }, L = () => {
871
871
  a.resetForm(), y({ createdBy: [], updatedBy: [] }), o();
872
872
  }, R = (S) => {
873
873
  const B = n.find((V) => V.key === S);
@@ -1099,7 +1099,7 @@ const Ur = {
1099
1099
  "button",
1100
1100
  {
1101
1101
  type: "button",
1102
- onClick: O,
1102
+ onClick: L,
1103
1103
  className: "filter-clear-button",
1104
1104
  children: "Clear All Filters"
1105
1105
  }
@@ -1107,7 +1107,7 @@ const Ur = {
1107
1107
  ] }),
1108
1108
  /* @__PURE__ */ l("form", { onSubmit: a.handleSubmit, className: "filter-form", children: [
1109
1109
  /* @__PURE__ */ e("div", { className: "filter-content-wrapper", children: /* @__PURE__ */ l(
1110
- tr,
1110
+ ar,
1111
1111
  {
1112
1112
  vertical: !0,
1113
1113
  onChange: $,
@@ -1116,7 +1116,7 @@ const Ur = {
1116
1116
  flexGrow: 1
1117
1117
  },
1118
1118
  children: [
1119
- /* @__PURE__ */ e(rr, { className: "filter-tabs-list", children: n.map((S) => /* @__PURE__ */ l(ae, { className: "filter-tab-item", children: [
1119
+ /* @__PURE__ */ e(tr, { className: "filter-tabs-list", children: n.map((S) => /* @__PURE__ */ l(ae, { className: "filter-tab-item", children: [
1120
1120
  /* @__PURE__ */ e("div", { className: "filter-selection-horizontal-indicator" }),
1121
1121
  /* @__PURE__ */ l("div", { className: "filter-lbl-indicator-wrapper", children: [
1122
1122
  S.label,
@@ -1129,7 +1129,7 @@ const Ur = {
1129
1129
  )
1130
1130
  ] })
1131
1131
  ] }, S.key)) }),
1132
- /* @__PURE__ */ e(nr, { className: "filter-tabs-panels", children: n.map((S) => /* @__PURE__ */ e(
1132
+ /* @__PURE__ */ e(rr, { className: "filter-tabs-panels", children: n.map((S) => /* @__PURE__ */ e(
1133
1133
  ae.Panel,
1134
1134
  {
1135
1135
  className: "filter-tab-panel",
@@ -1179,7 +1179,7 @@ const Ur = {
1179
1179
  }
1180
1180
  ) }) })
1181
1181
  ] }) });
1182
- }, Y = ({
1182
+ }, W = ({
1183
1183
  label: t,
1184
1184
  id: r,
1185
1185
  type: s = "text",
@@ -1201,7 +1201,7 @@ const Ur = {
1201
1201
  id: y,
1202
1202
  type: s,
1203
1203
  ref: i,
1204
- className: W("input-field", {
1204
+ className: Y("input-field", {
1205
1205
  "input-field--error": !!n,
1206
1206
  "input-field--with-icon": !!o
1207
1207
  }),
@@ -1229,7 +1229,7 @@ const Ur = {
1229
1229
  iconClass: "icon--info",
1230
1230
  primaryButtonCategory: "primary"
1231
1231
  }
1232
- }, Yr = ({
1232
+ }, Wr = ({
1233
1233
  isOpen: t,
1234
1234
  onClose: r,
1235
1235
  title: s,
@@ -1309,7 +1309,7 @@ const Ur = {
1309
1309
  onItemsPerPageChange: n,
1310
1310
  itemsPerPageOptions: u = [10, 15, 20]
1311
1311
  }) => {
1312
- const i = Math.ceil(r / s), [c, y] = L(t);
1312
+ const i = Math.ceil(r / s), [c, y] = O(t);
1313
1313
  Q(() => {
1314
1314
  y(t);
1315
1315
  }, [t]);
@@ -1383,7 +1383,7 @@ const Ur = {
1383
1383
  className: "pagination-button",
1384
1384
  onClick: () => o(t + 1),
1385
1385
  disabled: t === i,
1386
- children: /* @__PURE__ */ e(Le, { size: 16 })
1386
+ children: /* @__PURE__ */ e(Oe, { size: 16 })
1387
1387
  }
1388
1388
  ),
1389
1389
  /* @__PURE__ */ e(
@@ -1418,7 +1418,7 @@ const Ur = {
1418
1418
  Te.Option,
1419
1419
  {
1420
1420
  value: i.value,
1421
- className: ({ active: c, checked: y }) => W("radiogroup-option", {
1421
+ className: ({ active: c, checked: y }) => Y("radiogroup-option", {
1422
1422
  "radiogroup-option--active": c,
1423
1423
  "radiogroup-option--checked": y,
1424
1424
  "radiogroup-option--error": !!n
@@ -1453,12 +1453,12 @@ const Ur = {
1453
1453
  customClass: u = "",
1454
1454
  ...i
1455
1455
  }) => {
1456
- const [c, y] = L(t);
1456
+ const [c, y] = O(t);
1457
1457
  Q(() => {
1458
1458
  y(t);
1459
1459
  }, [t]);
1460
1460
  const b = K(
1461
- gr((a) => {
1461
+ pr((a) => {
1462
1462
  r?.(a);
1463
1463
  }, s),
1464
1464
  [s, r]
@@ -1500,16 +1500,16 @@ const Ur = {
1500
1500
  // From RHF's <Controller>
1501
1501
  showSearch: y = !0
1502
1502
  }) => {
1503
- const [b, N] = L(""), a = b === "" ? o : o.filter(
1503
+ const [b, N] = O(""), a = b === "" ? o : o.filter(
1504
1504
  (m) => m.label.toLowerCase().includes(b.toLowerCase())
1505
1505
  ), w = o.find((m) => r?.id ? m.id === r.id : m.id === r || m.value === r);
1506
1506
  return /* @__PURE__ */ e(X, { value: r, onChange: s, disabled: u, children: /* @__PURE__ */ l("div", { className: "select-wrapper", ref: c, children: [
1507
1507
  t && /* @__PURE__ */ e("label", { className: "select-label", children: t }),
1508
1508
  /* @__PURE__ */ l("div", { className: "select-button-container", children: [
1509
1509
  /* @__PURE__ */ l(
1510
- sr,
1510
+ nr,
1511
1511
  {
1512
- className: W("select-button", {
1512
+ className: Y("select-button", {
1513
1513
  "select-button--error": !!i
1514
1514
  }),
1515
1515
  children: [
@@ -1524,7 +1524,7 @@ const Ur = {
1524
1524
  leave: "transition ease-in duration-100",
1525
1525
  leaveFrom: "opacity-100",
1526
1526
  leaveTo: "opacity-0",
1527
- children: /* @__PURE__ */ l(lr, { className: "select-options", children: [
1527
+ children: /* @__PURE__ */ l(sr, { className: "select-options", children: [
1528
1528
  y && /* @__PURE__ */ e("div", { className: "search-input-wrapper", children: /* @__PURE__ */ e(
1529
1529
  he,
1530
1530
  {
@@ -1534,7 +1534,7 @@ const Ur = {
1534
1534
  }
1535
1535
  ) }),
1536
1536
  /* @__PURE__ */ e("div", { className: "select-options-list", children: a.length === 0 && b !== "" ? /* @__PURE__ */ e("div", { className: "no-results", children: "No results found." }) : a.map((m) => /* @__PURE__ */ e(
1537
- or,
1537
+ lr,
1538
1538
  {
1539
1539
  className: ({ active: g }) => `select-option ${g ? "active" : ""}`,
1540
1540
  value: m,
@@ -1566,8 +1566,8 @@ const Ur = {
1566
1566
  ] }),
1567
1567
  i && /* @__PURE__ */ e("p", { className: "select-error-message", children: i })
1568
1568
  ] }) });
1569
- }, Wr = () => {
1570
- const [t, r] = L(window.location.pathname);
1569
+ }, Yr = () => {
1570
+ const [t, r] = O(window.location.pathname);
1571
1571
  return Q(() => {
1572
1572
  const s = () => {
1573
1573
  r(window.location.pathname);
@@ -1582,7 +1582,7 @@ const Ur = {
1582
1582
  return s;
1583
1583
  return null;
1584
1584
  }, Pa = ({ item: t, isCollapsed: r, level: s = 0 }) => {
1585
- const { pathname: o } = Wr(), n = t.href || t.url || t.path, [u, i] = L(!1), c = t.icon;
1585
+ const { pathname: o } = Yr(), n = t.href || t.url || t.path, [u, i] = O(!1), c = t.icon;
1586
1586
  Q(() => {
1587
1587
  Ke([t], o) && i(!0);
1588
1588
  }, [t, o]);
@@ -1592,7 +1592,7 @@ const Ur = {
1592
1592
  return /* @__PURE__ */ l(
1593
1593
  "div",
1594
1594
  {
1595
- className: W("nav-item-container", {
1595
+ className: Y("nav-item-container", {
1596
1596
  "nav-item-container--parent-active": b,
1597
1597
  [`nav-item-container--level-${s}`]: s > 0
1598
1598
  }),
@@ -1603,7 +1603,7 @@ const Ur = {
1603
1603
  href: n,
1604
1604
  target: t.target,
1605
1605
  rel: t.target === "_blank" ? "noopener noreferrer" : void 0,
1606
- className: W("nav-item", {
1606
+ className: Y("nav-item", {
1607
1607
  "nav-item--active": y,
1608
1608
  "nav-item--collapsed": r
1609
1609
  }),
@@ -1621,7 +1621,7 @@ const Ur = {
1621
1621
  children: /* @__PURE__ */ e(
1622
1622
  ba,
1623
1623
  {
1624
- className: W("nav-chevron", {
1624
+ className: Y("nav-chevron", {
1625
1625
  "nav-chevron--open": u
1626
1626
  })
1627
1627
  }
@@ -1634,7 +1634,7 @@ const Ur = {
1634
1634
  t.children && /* @__PURE__ */ e(
1635
1635
  "div",
1636
1636
  {
1637
- className: W("sub-menu", {
1637
+ className: Y("sub-menu", {
1638
1638
  "sub-menu--open": u,
1639
1639
  "sub-menu--collapsed": r
1640
1640
  }),
@@ -1674,7 +1674,7 @@ const Ur = {
1674
1674
  /* @__PURE__ */ l(
1675
1675
  "aside",
1676
1676
  {
1677
- className: W("sidebar", {
1677
+ className: Y("sidebar", {
1678
1678
  "sidebar--collapsed": r,
1679
1679
  "sidebar--mobile-open": o
1680
1680
  }),
@@ -1724,7 +1724,7 @@ const Ur = {
1724
1724
  ]
1725
1725
  }
1726
1726
  )
1727
- ] }), Oa = ({
1727
+ ] }), La = ({
1728
1728
  size: t = "medium",
1729
1729
  // 'small', 'medium', 'large'
1730
1730
  color: r = "primary",
@@ -1732,7 +1732,7 @@ const Ur = {
1732
1732
  className: s,
1733
1733
  ...o
1734
1734
  }) => {
1735
- const n = W(
1735
+ const n = Y(
1736
1736
  "spinner",
1737
1737
  `spinner--size-${t}`,
1738
1738
  `spinner--color-${r}`,
@@ -1758,9 +1758,9 @@ const Ur = {
1758
1758
  }
1759
1759
  );
1760
1760
  }, Kn = ({ label: t = "Loading..." }) => /* @__PURE__ */ e("div", { className: "fullscreen-loader-overlay", role: "alert", "aria-busy": "true", children: /* @__PURE__ */ l("div", { className: "loader-content", children: [
1761
- /* @__PURE__ */ e(Oa, { size: "large" }),
1761
+ /* @__PURE__ */ e(La, { size: "large" }),
1762
1762
  t && /* @__PURE__ */ e("span", { className: "loader-label", children: t })
1763
- ] }) }), La = ({
1763
+ ] }) }), Oa = ({
1764
1764
  label: t,
1765
1765
  id: r,
1766
1766
  error: s,
@@ -1772,7 +1772,7 @@ const Ur = {
1772
1772
  // ✅ New prop to control visibility
1773
1773
  ...c
1774
1774
  }) => {
1775
- const y = r || c.name, [b, N] = L(
1775
+ const y = r || c.name, [b, N] = O(
1776
1776
  c.value?.length || c.defaultValue?.length || 0
1777
1777
  ), a = (m) => {
1778
1778
  N(m.target.value.length), c.onChange && c.onChange(m);
@@ -1790,7 +1790,7 @@ const Ur = {
1790
1790
  {
1791
1791
  id: y,
1792
1792
  ref: n,
1793
- className: W("textarea-field", {
1793
+ className: Y("textarea-field", {
1794
1794
  "textarea-field--error": !!s
1795
1795
  }),
1796
1796
  maxLength: u,
@@ -1808,14 +1808,14 @@ const Ur = {
1808
1808
  error: n,
1809
1809
  ...u
1810
1810
  }) => /* @__PURE__ */ l("div", { className: "switch-container", children: [
1811
- /* @__PURE__ */ l(ir, { as: "div", className: "switch-group", children: [
1812
- t && o === "left" && /* @__PURE__ */ e(Ye.Label, { className: "switch-label", passive: !0, children: t }),
1811
+ /* @__PURE__ */ l(or, { as: "div", className: "switch-group", children: [
1812
+ t && o === "left" && /* @__PURE__ */ e(We.Label, { className: "switch-label", passive: !0, children: t }),
1813
1813
  /* @__PURE__ */ e(
1814
- Ye,
1814
+ We,
1815
1815
  {
1816
1816
  checked: r,
1817
1817
  onChange: s,
1818
- className: W("switch-element", {
1818
+ className: Y("switch-element", {
1819
1819
  // Renamed from switch-wrapper
1820
1820
  "switch-element--error": !!n
1821
1821
  }),
@@ -1823,7 +1823,7 @@ const Ur = {
1823
1823
  children: /* @__PURE__ */ e("span", { "aria-hidden": "true", className: "switch-thumb" })
1824
1824
  }
1825
1825
  ),
1826
- t && o === "right" && /* @__PURE__ */ e(Ye.Label, { className: "switch-label", passive: !0, children: t })
1826
+ t && o === "right" && /* @__PURE__ */ e(We.Label, { className: "switch-label", passive: !0, children: t })
1827
1827
  ] }),
1828
1828
  n && /* @__PURE__ */ e("p", { className: "switch-error-message", children: n })
1829
1829
  ] }), es = ({
@@ -1989,7 +1989,7 @@ const Ur = {
1989
1989
  // A clearer prop name
1990
1990
  ...c
1991
1991
  }) => {
1992
- const y = W(
1992
+ const y = Y(
1993
1993
  "page-layout",
1994
1994
  {
1995
1995
  "page-layout--with-footer": r,
@@ -2042,25 +2042,25 @@ const Ur = {
2042
2042
  className: "page-header-back-button",
2043
2043
  "aria-label": "Go back",
2044
2044
  onClick: n,
2045
- children: /* @__PURE__ */ e(wt, { size: 30 })
2045
+ children: /* @__PURE__ */ e(_r, { width: 30, height: 30 })
2046
2046
  }
2047
2047
  ),
2048
2048
  /* @__PURE__ */ l("div", { className: "page-header-content", children: [
2049
2049
  /* @__PURE__ */ e("h1", { className: "page-header-heading", children: t }),
2050
- s.length > 1 ? /* @__PURE__ */ e(jr, { crumbs: s }) : r ? /* @__PURE__ */ e("p", { className: "page-header-subheading", children: r }) : null
2050
+ s.length > 1 ? /* @__PURE__ */ e(qr, { crumbs: s }) : r ? /* @__PURE__ */ e("p", { className: "page-header-subheading", children: r }) : null
2051
2051
  ] })
2052
2052
  ] }), Xr = ({
2053
2053
  options: t = [],
2054
2054
  onSelect: r,
2055
- triggerIcon: s = Ct
2055
+ triggerIcon: s = wt
2056
2056
  }) => {
2057
2057
  const { refs: o, floatingStyles: n } = Ca({
2058
2058
  whileElementsMounted: Fa,
2059
2059
  middleware: [Sa(5), Da(), $a({ padding: 5 })]
2060
2060
  });
2061
- return /* @__PURE__ */ l(cr, { as: "div", className: "options-menu-wrapper", children: [
2062
- /* @__PURE__ */ e(dr, { ref: o.setReference, className: "options-menu-trigger", children: /* @__PURE__ */ e(s, { size: 20 }) }),
2063
- /* @__PURE__ */ e(ur, { children: /* @__PURE__ */ e(
2061
+ return /* @__PURE__ */ l(ir, { as: "div", className: "options-menu-wrapper", children: [
2062
+ /* @__PURE__ */ e(cr, { ref: o.setReference, className: "options-menu-trigger", children: /* @__PURE__ */ e(s, { size: 20 }) }),
2063
+ /* @__PURE__ */ e(dr, { children: /* @__PURE__ */ e(
2064
2064
  oe,
2065
2065
  {
2066
2066
  as: J,
@@ -2071,14 +2071,14 @@ const Ur = {
2071
2071
  leaveFrom: "transform opacity-100 scale-100",
2072
2072
  leaveTo: "transform opacity-0 scale-95",
2073
2073
  children: /* @__PURE__ */ e(
2074
- mr,
2074
+ ur,
2075
2075
  {
2076
2076
  ref: o.setFloating,
2077
2077
  style: n,
2078
2078
  className: "options-menu-panel",
2079
2079
  children: t.map((u) => /* @__PURE__ */ l("div", { className: "options-menu-item-wrapper", children: [
2080
2080
  u.dividerBefore && /* @__PURE__ */ e("div", { className: "menu-divider" }),
2081
- /* @__PURE__ */ e(hr, { children: ({ active: i }) => /* @__PURE__ */ l(
2081
+ /* @__PURE__ */ e(mr, { children: ({ active: i }) => /* @__PURE__ */ l(
2082
2082
  "button",
2083
2083
  {
2084
2084
  onClick: () => r(u),
@@ -2201,11 +2201,11 @@ function Ga() {
2201
2201
  function _a() {
2202
2202
  return `${be()}/unifyedusergroupprovisioning/api`;
2203
2203
  }
2204
- function Ya() {
2204
+ function Wa() {
2205
2205
  return `${_a()}/v2/roles`;
2206
2206
  }
2207
- function Wa() {
2208
- return `${Ya()}/search`;
2207
+ function Ya() {
2208
+ return `${Wa()}/search`;
2209
2209
  }
2210
2210
  function aa() {
2211
2211
  return `${be()}/unifyed-mydrive/v2`;
@@ -2223,8 +2223,8 @@ function ss() {
2223
2223
  USER_SEARCH_BASE: ja(),
2224
2224
  AD_GROUPS_LIST_SEARCH_API: Ga(),
2225
2225
  PROVISIONING_BASE: _a(),
2226
- RBAC_BASE: Ya(),
2227
- SEARCH_ROLES_API: Wa(),
2226
+ RBAC_BASE: Wa(),
2227
+ SEARCH_ROLES_API: Ya(),
2228
2228
  MY_DRIVE_GATEWAY_BASE_v2: aa(),
2229
2229
  DIRECTORY_PERMISSIONS_API: en(),
2230
2230
  FILE_PERMISSIONS_API: an()
@@ -2282,7 +2282,7 @@ function nn({
2282
2282
  enableAuthRedirect: t = !0,
2283
2283
  defaultOpenHeaders: r = {}
2284
2284
  } = {}) {
2285
- const s = St.create({
2285
+ const s = Ct.create({
2286
2286
  baseURL: Ue()
2287
2287
  // ✅ base URL here
2288
2288
  // You can set general timeouts/etc. here
@@ -2392,7 +2392,7 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
2392
2392
  }));
2393
2393
  },
2394
2394
  searchRoles: async (t) => {
2395
- const { data: r } = await Fe(`${Wa()}`, {
2395
+ const { data: r } = await Fe(`${Ya()}`, {
2396
2396
  page: 0,
2397
2397
  size: 20,
2398
2398
  q: t ?? "",
@@ -2421,10 +2421,10 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
2421
2421
  return cn(o);
2422
2422
  }
2423
2423
  }, ta = (t, r) => {
2424
- const [s, o] = L(t);
2424
+ const [s, o] = O(t);
2425
2425
  return Q(
2426
2426
  () => {
2427
- const n = Nr(() => {
2427
+ const n = vr(() => {
2428
2428
  o(t);
2429
2429
  }, r);
2430
2430
  return n(), () => {
@@ -2469,19 +2469,19 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
2469
2469
  )) }),
2470
2470
  /* @__PURE__ */ e("p", { className: "text-sm font-medium text-gray-800 truncate", children: y })
2471
2471
  ] }),
2472
- /* @__PURE__ */ e(Le, { size: 20 })
2472
+ /* @__PURE__ */ e(Oe, { size: 20 })
2473
2473
  ]
2474
2474
  }
2475
2475
  );
2476
2476
  }, da = [
2477
- { id: 1, name: Ne.USER, icon: Ft, code: "users" },
2477
+ { id: 1, name: Ne.USER, icon: $t, code: "users" },
2478
2478
  { id: 2, name: Ne.GROUP, icon: va, code: "groups" },
2479
- { id: 3, name: Ne.ROLE, icon: Tt, code: "roles" }
2479
+ { id: 3, name: Ne.ROLE, icon: Ft, code: "roles" }
2480
2480
  ], ua = [
2481
2481
  { id: 1, name: na.View, icon: Na },
2482
2482
  { id: 2, name: na.Manage, icon: xa }
2483
- ], un = Dt().shape({
2484
- pendingInvites: $t().min(1, "You must add at least one person to invite.")
2483
+ ], un = St().shape({
2484
+ pendingInvites: Dt().min(1, "You must add at least one person to invite.")
2485
2485
  }), mn = ({
2486
2486
  entity: t,
2487
2487
  onManage: r,
@@ -2493,32 +2493,32 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
2493
2493
  },
2494
2494
  isChanged: c = !1
2495
2495
  }) => {
2496
- const [y, b] = L(da[0]), [N, a] = L(""), w = ta(N, 400), [m, g] = L([]), [$, O] = L(/* @__PURE__ */ new Set()), [R, S] = L(!1), [B, P] = L(ua[0]), {
2496
+ const [y, b] = O(da[0]), [N, a] = O(""), w = ta(N, 400), [m, g] = O([]), [$, L] = O(/* @__PURE__ */ new Set()), [R, S] = O(!1), [B, P] = O(ua[0]), {
2497
2497
  control: E,
2498
2498
  handleSubmit: V,
2499
2499
  watch: U,
2500
2500
  formState: { errors: j, isSubmitting: v }
2501
- } = At({
2501
+ } = Tt({
2502
2502
  defaultValues: { pendingInvites: [] },
2503
- resolver: It(un)
2504
- }), { fields: p, append: f, remove: k, update: d } = Et({
2503
+ resolver: Rt(un)
2504
+ }), { fields: p, append: f, remove: k, update: d } = At({
2505
2505
  control: E,
2506
2506
  name: "pendingInvites"
2507
2507
  }), h = U("pendingInvites");
2508
2508
  Q(() => {
2509
2509
  w.length > 1 ? (S(!0), on(y.name, w).then((T) => {
2510
2510
  g(T);
2511
- }).catch((T) => console.error("Search failed:", T)).finally(() => S(!1))) : (g([]), O(/* @__PURE__ */ new Set()));
2511
+ }).catch((T) => console.error("Search failed:", T)).finally(() => S(!1))) : (g([]), L(/* @__PURE__ */ new Set()));
2512
2512
  }, [w, y]);
2513
2513
  const x = (T) => {
2514
- O((C) => {
2514
+ L((C) => {
2515
2515
  const I = new Set(C);
2516
2516
  return I.has(T) ? I.delete(T) : I.add(T), I;
2517
2517
  });
2518
2518
  }, F = () => {
2519
2519
  m.filter((T) => $.has(T.id)).forEach((T) => {
2520
2520
  p.find((C) => C.id === T.id) || f({ ...T, permission: B.name });
2521
- }), O(/* @__PURE__ */ new Set()), a("");
2521
+ }), L(/* @__PURE__ */ new Set()), a("");
2522
2522
  }, z = (T) => {
2523
2523
  P(T), p.forEach(
2524
2524
  (C, I) => d(I, { ...p[I], permission: T.name })
@@ -2584,7 +2584,7 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
2584
2584
  /* @__PURE__ */ e(me.Title, { className: " text-gray-900 !mb-0 text-lg font-semibold", children: A() }),
2585
2585
  /* @__PURE__ */ l("div", { className: "flex items-center gap-4", children: [
2586
2586
  n === se.DRIVE && /* @__PURE__ */ l("button", { className: "flex items-center gap-2 text-sm text-blue-600 hover:text-blue-800 font-semibold hover:cursor-pointer", children: [
2587
- /* @__PURE__ */ e(Rt, { className: "h-5 w-5" }),
2587
+ /* @__PURE__ */ e(Et, { className: "h-5 w-5" }),
2588
2588
  " Copy Link"
2589
2589
  ] }),
2590
2590
  /* @__PURE__ */ e(
@@ -2592,7 +2592,7 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
2592
2592
  {
2593
2593
  onClick: s,
2594
2594
  className: "text-gray-500 hover:text-gray-800 hover:cursor-pointer",
2595
- children: /* @__PURE__ */ e(Oe, { className: "h-6 w-6" })
2595
+ children: /* @__PURE__ */ e(Le, { className: "h-6 w-6" })
2596
2596
  }
2597
2597
  )
2598
2598
  ] })
@@ -2833,7 +2833,7 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
2833
2833
  {
2834
2834
  onClick: () => k(C),
2835
2835
  className: "text-gray-400 hover:text-red-500 hover:cursor-pointer",
2836
- children: /* @__PURE__ */ e(Oe, { className: "h-5 w-5" })
2836
+ children: /* @__PURE__ */ e(Le, { className: "h-5 w-5" })
2837
2837
  }
2838
2838
  )
2839
2839
  ] })
@@ -2876,15 +2876,15 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
2876
2876
  }, Je = [
2877
2877
  { name: "Can view", icon: Na, value: "view" },
2878
2878
  { name: "Can manage", icon: xa, value: "edit" },
2879
- { name: "Remove", icon: zt, isDestructive: !0, value: "remove" }
2879
+ { name: "Remove", icon: It, isDestructive: !0, value: "remove" }
2880
2880
  ], hn = ({ item: t, allowedPermissions: r, onPermissionChange: s }) => {
2881
- const [o, n] = L(!1), { refs: u, floatingStyles: i, context: c } = Ca({
2881
+ const [o, n] = O(!1), { refs: u, floatingStyles: i, context: c } = Ca({
2882
2882
  open: o,
2883
2883
  onOpenChange: n,
2884
2884
  middleware: [Sa(8), Da(), $a({ padding: 8 })],
2885
2885
  whileElementsMounted: Fa,
2886
2886
  placement: "bottom-end"
2887
- }), y = yr(c), b = fr(c), { getReferenceProps: N, getFloatingProps: a } = br([
2887
+ }), y = gr(c), b = yr(c), { getReferenceProps: N, getFloatingProps: a } = fr([
2888
2888
  y,
2889
2889
  b
2890
2890
  ]), w = Je.find((g) => g.name === t.permission || g.value === t.permission) || Je[0];
@@ -2906,7 +2906,7 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
2906
2906
  ]
2907
2907
  }
2908
2908
  ),
2909
- /* @__PURE__ */ e(vr, { children: /* @__PURE__ */ e(
2909
+ /* @__PURE__ */ e(br, { children: /* @__PURE__ */ e(
2910
2910
  oe,
2911
2911
  {
2912
2912
  as: J,
@@ -2966,7 +2966,7 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
2966
2966
  existingShares: n,
2967
2967
  allowedPermissions: u
2968
2968
  }) => {
2969
- const [i, c] = L(n), [y, b] = L(0), [N, a] = L(""), w = ta(N, 300), m = {
2969
+ const [i, c] = O(n), [y, b] = O(0), [N, a] = O(""), w = ta(N, 300), m = {
2970
2970
  users: i.users.filter(
2971
2971
  (R) => R.name.toLowerCase().includes(w.toLowerCase())
2972
2972
  ),
@@ -2987,7 +2987,7 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
2987
2987
  (U) => U.id === R.id ? { ...U, permission: E } : U
2988
2988
  )
2989
2989
  }));
2990
- }, $ = ["users", "groups", "roles"], O = ["Users", "Groups", "Roles"];
2990
+ }, $ = ["users", "groups", "roles"], L = ["Users", "Groups", "Roles"];
2991
2991
  return (
2992
2992
  // The main structure remains the same...
2993
2993
  /* @__PURE__ */ l("div", { className: "flex flex-col h-full bg-gray-50", children: [
@@ -3009,13 +3009,13 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
3009
3009
  {
3010
3010
  onClick: s,
3011
3011
  className: "text-gray-500 hover:text-gray-800 p-2 rounded-full hover:bg-gray-100 hover:cursor-pointer",
3012
- children: /* @__PURE__ */ e(Oe, { className: "h-6 w-6" })
3012
+ children: /* @__PURE__ */ e(Le, { className: "h-6 w-6" })
3013
3013
  }
3014
3014
  )
3015
3015
  ] }),
3016
3016
  /* @__PURE__ */ e("div", { className: "flex flex-col flex-grow", children: /* @__PURE__ */ l(ae.Group, { selectedIndex: y, onChange: b, children: [
3017
3017
  /* @__PURE__ */ l("div", { className: "p-4 bg-white border-b border-gray-300", children: [
3018
- /* @__PURE__ */ e(ae.List, { className: "flex space-x-1 bg-gray-100 p-1 rounded-lg", children: O.map((R) => /* @__PURE__ */ e(
3018
+ /* @__PURE__ */ e(ae.List, { className: "flex space-x-1 bg-gray-100 p-1 rounded-lg", children: L.map((R) => /* @__PURE__ */ e(
3019
3019
  ae,
3020
3020
  {
3021
3021
  className: ({
@@ -3032,7 +3032,7 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
3032
3032
  {
3033
3033
  onDebouncedChange: a,
3034
3034
  value: N,
3035
- placeholder: `Search in ${O[y]}...`
3035
+ placeholder: `Search in ${L[y]}...`
3036
3036
  }
3037
3037
  ) })
3038
3038
  ] }),
@@ -3112,10 +3112,10 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
3112
3112
  /* @__PURE__ */ e(va, { className: "h-12 w-12 text-gray-400" }),
3113
3113
  /* @__PURE__ */ l("h3", { className: "mt-2 text-sm font-medium text-gray-900", children: [
3114
3114
  "No ",
3115
- O[y],
3115
+ L[y],
3116
3116
  " Found"
3117
3117
  ] }),
3118
- /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-gray-500", children: N ? `No results for "${N}"` : `There are no ${O[y].toLowerCase()} with access.` })
3118
+ /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-gray-500", children: N ? `No results for "${N}"` : `There are no ${L[y].toLowerCase()} with access.` })
3119
3119
  ]
3120
3120
  }
3121
3121
  )
@@ -3142,7 +3142,7 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
3142
3142
  onClose: s,
3143
3143
  members: o
3144
3144
  }) => {
3145
- const [n, u] = L(!0), [i, c] = L(""), y = ta(i, 300), b = o.filter(
3145
+ const [n, u] = O(!0), [i, c] = O(""), y = ta(i, 300), b = o.filter(
3146
3146
  (m) => m.name.toLowerCase().includes(y.toLowerCase())
3147
3147
  ), N = {
3148
3148
  hidden: { opacity: 0 },
@@ -3166,7 +3166,7 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
3166
3166
  animate: { opacity: 1, scale: 1 },
3167
3167
  className: "flex flex-col items-center justify-center text-center p-8 mt-10",
3168
3168
  children: [
3169
- /* @__PURE__ */ e(Bt, { className: "h-12 w-12 text-gray-400" }),
3169
+ /* @__PURE__ */ e(zt, { className: "h-12 w-12 text-gray-400" }),
3170
3170
  /* @__PURE__ */ e("h3", { className: "mt-2 text-sm font-medium text-gray-900", children: "No Users Found" }),
3171
3171
  /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-gray-500", children: y ? `No one found matching "${y}"` : `There are no users in this ${t.type}.` })
3172
3172
  ]
@@ -3228,7 +3228,7 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
3228
3228
  {
3229
3229
  onClick: s,
3230
3230
  className: "text-gray-500 hover:text-gray-800 p-2 rounded-full hover:bg-gray-100 hover:cursor-pointer",
3231
- children: /* @__PURE__ */ e(Oe, { className: "h-6 w-6" })
3231
+ children: /* @__PURE__ */ e(Le, { className: "h-6 w-6" })
3232
3232
  }
3233
3233
  )
3234
3234
  ] }),
@@ -3263,7 +3263,7 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
3263
3263
  allowedPermissions: c = [],
3264
3264
  ...y
3265
3265
  }) => {
3266
- const [b, N] = L(de.INVITE), [a, w] = L(t), [m, g] = L(null), [$, O] = L(!1), [R, S] = L([]), [B, P] = L(de.MANAGE), E = () => {
3266
+ const [b, N] = O(de.INVITE), [a, w] = O(t), [m, g] = O(null), [$, L] = O(!1), [R, S] = O([]), [B, P] = O(de.MANAGE), E = () => {
3267
3267
  N(de.INVITE), g(null), u();
3268
3268
  }, V = () => {
3269
3269
  N(de.MANAGE);
@@ -3279,11 +3279,11 @@ const we = nn(), $e = we.axiosGet, sn = we.axiosDelete, Fe = we.axiosPost, ln =
3279
3279
  g({ id: p, type: k, name: f }), P(b), N(de.MEMBERS);
3280
3280
  }, j = (p) => {
3281
3281
  console.log("changedExistingShares", p), w(p);
3282
- const f = !We.isEqual(
3283
- We.mapValues(t, (k) => k.map((d) => ({ id: d.id, permission: d.permission }))),
3284
- We.mapValues(p, (k) => k.map((d) => ({ id: d.id, permission: d.permission })))
3282
+ const f = !Ye.isEqual(
3283
+ Ye.mapValues(t, (k) => k.map((d) => ({ id: d.id, permission: d.permission }))),
3284
+ Ye.mapValues(p, (k) => k.map((d) => ({ id: d.id, permission: d.permission })))
3285
3285
  );
3286
- O(f), N(b === de.MEMBERS ? B : de.INVITE);
3286
+ L(f), N(b === de.MEMBERS ? B : de.INVITE);
3287
3287
  };
3288
3288
  return /* @__PURE__ */ e(oe, { appear: !0, show: r, as: J, children: /* @__PURE__ */ l(me, { as: "div", className: "relative z-50", onClose: E, children: [
3289
3289
  /* @__PURE__ */ e("div", { className: "filter-modal-overlay", "aria-hidden": "true" }),
@@ -3393,7 +3393,7 @@ function qe({
3393
3393
  getOptionId: m = ($) => String($.id),
3394
3394
  getOptionLabel: g = ($) => $.name
3395
3395
  }) {
3396
- const $ = Qe(), O = Qe(), [R, S] = L(""), B = ue(""), P = ne(() => {
3396
+ const $ = Qe(), L = Qe(), [R, S] = O(""), B = ue(""), P = ne(() => {
3397
3397
  const p = /* @__PURE__ */ new Map();
3398
3398
  for (const f of r) p.set(m(f), f);
3399
3399
  return p;
@@ -3443,7 +3443,7 @@ function qe({
3443
3443
  {
3444
3444
  "aria-labelledby": $,
3445
3445
  "aria-invalid": !!i,
3446
- "aria-describedby": i ? O : void 0,
3446
+ "aria-describedby": i ? L : void 0,
3447
3447
  onBlur: n,
3448
3448
  className: Ae(
3449
3449
  "relative w-full min-h-[38px] cursor-default rounded-md bg-white py-1.5 pl-3 pr-10 text-left text-gray-900 shadow-sm ring-1 ring-inset focus:outline-none focus:ring-2 focus:ring-gray-600 sm:text-sm sm:leading-6",
@@ -3513,7 +3513,7 @@ function qe({
3513
3513
  ] })
3514
3514
  }
3515
3515
  ),
3516
- i && /* @__PURE__ */ e("p", { id: O, className: "mt-1 text-sm text-red-600", children: i })
3516
+ i && /* @__PURE__ */ e("p", { id: L, className: "mt-1 text-sm text-red-600", children: i })
3517
3517
  ] })
3518
3518
  ] }) });
3519
3519
  }
@@ -3582,7 +3582,7 @@ const is = ({
3582
3582
  className: "relative z-50 overflow-y-auto",
3583
3583
  children: [
3584
3584
  /* @__PURE__ */ e(
3585
- pr,
3585
+ hr,
3586
3586
  {
3587
3587
  className: "fixed inset-0 bg-black/30",
3588
3588
  onClick: y
@@ -3671,7 +3671,7 @@ function vn({
3671
3671
  dropId: N,
3672
3672
  indent: a = 24
3673
3673
  }) {
3674
- const { setNodeRef: w, isOver: m } = Pt({ id: N }), { attributes: g, listeners: $, setNodeRef: O, transform: R, isDragging: S } = Ot({ id: b }), B = R ? { transform: `translate3d(${Math.round(R.x)}px, ${Math.round(R.y)}px, 0)` } : void 0, [P, E] = L(!1), [V, U] = L(t.name), j = () => {
3674
+ const { setNodeRef: w, isOver: m } = Bt({ id: N }), { attributes: g, listeners: $, setNodeRef: L, transform: R, isDragging: S } = Pt({ id: b }), B = R ? { transform: `translate3d(${Math.round(R.x)}px, ${Math.round(R.y)}px, 0)` } : void 0, [P, E] = O(!1), [V, U] = O(t.name), j = () => {
3675
3675
  const p = V.trim();
3676
3676
  E(!1), p && p !== t.name ? i?.(t, p) : U(t.name);
3677
3677
  }, v = ne(() => /* @__PURE__ */ e(
@@ -3697,9 +3697,9 @@ function vn({
3697
3697
  p.target.closest(".tv-toggle") || p.target.tagName === "INPUT" || n?.(t);
3698
3698
  },
3699
3699
  children: [
3700
- /* @__PURE__ */ e("button", { className: "tv-toggle", onClick: o, "aria-label": "toggle", children: t.children?.length ? s ? /* @__PURE__ */ e(ba, { size: 16 }) : /* @__PURE__ */ e(Le, { size: 16 }) : /* @__PURE__ */ e("span", { className: "tv-spacer" }) }),
3700
+ /* @__PURE__ */ e("button", { className: "tv-toggle", onClick: o, "aria-label": "toggle", children: t.children?.length ? s ? /* @__PURE__ */ e(ba, { size: 16 }) : /* @__PURE__ */ e(Oe, { size: 16 }) : /* @__PURE__ */ e("span", { className: "tv-spacer" }) }),
3701
3701
  /* @__PURE__ */ e(wa, { size: 16, className: "tv-folder-ic" }),
3702
- /* @__PURE__ */ e("div", { className: "tv-name", ref: O, children: P ? /* @__PURE__ */ e(
3702
+ /* @__PURE__ */ e("div", { className: "tv-name", ref: L, children: P ? /* @__PURE__ */ e(
3703
3703
  "input",
3704
3704
  {
3705
3705
  className: "tv-input",
@@ -3816,7 +3816,7 @@ function cs({
3816
3816
  const { roots: $ } = ne(() => wn(t) ? Sn(t, { rootId: r, getId: o, getName: u }) : Cn(
3817
3817
  t.map((x) => ({ ...x })),
3818
3818
  { rootId: r, getId: o, getParent: n, getName: u }
3819
- ), [t, r, o, n, u]), [O, R] = L({}), S = K((x) => {
3819
+ ), [t, r, o, n, u]), [L, R] = O({}), S = K((x) => {
3820
3820
  const F = {};
3821
3821
  return (function z(q) {
3822
3822
  q.forEach((D) => {
@@ -3830,11 +3830,11 @@ function cs({
3830
3830
  const B = K(
3831
3831
  (x) => R((F) => ({ ...F, [x]: !F[x] })),
3832
3832
  []
3833
- ), [P, E] = L(() => De($));
3833
+ ), [P, E] = O(() => De($));
3834
3834
  re.useEffect(() => E(De($)), [$]);
3835
3835
  const V = Lt(
3836
- Mt(jt, { activationConstraint: { delay: 250, tolerance: 5 } })
3837
- ), U = ue(null), [j, v] = L(null), p = ue(0), f = () => {
3836
+ Ot(qt, { activationConstraint: { delay: 250, tolerance: 5 } })
3837
+ ), U = ue(null), [j, v] = O(null), p = ue(0), f = () => {
3838
3838
  }, k = ({ delta: x }) => {
3839
3839
  p.current = x?.x ?? 0;
3840
3840
  }, d = K(
@@ -3874,7 +3874,7 @@ function cs({
3874
3874
  {
3875
3875
  node: z,
3876
3876
  depth: F,
3877
- expanded: !!O[z.id],
3877
+ expanded: !!L[z.id],
3878
3878
  onToggle: () => B(z.id),
3879
3879
  onSelect: i,
3880
3880
  onCreateChild: y,
@@ -3886,9 +3886,9 @@ function cs({
3886
3886
  indent: g
3887
3887
  }
3888
3888
  ),
3889
- O[z.id] && z.children?.length > 0 ? h(z.children, F + 1) : null
3889
+ L[z.id] && z.children?.length > 0 ? h(z.children, F + 1) : null
3890
3890
  ] }, z.id)),
3891
- [O, g, y, N, b, i, w, B]
3891
+ [L, g, y, N, b, i, w, B]
3892
3892
  );
3893
3893
  return re.useMemo(() => {
3894
3894
  if (!j) return null;
@@ -3913,14 +3913,14 @@ function cs({
3913
3913
  /* @__PURE__ */ e("button", { className: "tv-icon", title: "Create top-level", onClick: c, children: "+" })
3914
3914
  ] }),
3915
3915
  /* @__PURE__ */ e(
3916
- Vt,
3916
+ Mt,
3917
3917
  {
3918
- collisionDetection: qt,
3918
+ collisionDetection: Ut,
3919
3919
  sensors: V,
3920
3920
  onDragStart: f,
3921
3921
  onDragMove: k,
3922
3922
  onDragEnd: d,
3923
- modifiers: [Ut],
3923
+ modifiers: [Vt],
3924
3924
  children: /* @__PURE__ */ e("div", { ref: U, className: "tv-list", children: h(P, 0) })
3925
3925
  }
3926
3926
  )
@@ -4027,7 +4027,7 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4027
4027
  ),
4028
4028
  a.fieldtype === "text" && /* @__PURE__ */ l("div", { children: [
4029
4029
  /* @__PURE__ */ e(
4030
- Y,
4030
+ W,
4031
4031
  {
4032
4032
  type: "text",
4033
4033
  name: a.key,
@@ -4047,7 +4047,7 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4047
4047
  ] }),
4048
4048
  a.fieldtype === "textarea" && /* @__PURE__ */ l("div", { children: [
4049
4049
  /* @__PURE__ */ e(
4050
- La,
4050
+ Oa,
4051
4051
  {
4052
4052
  name: a.key,
4053
4053
  defaultValue: a.default,
@@ -4067,7 +4067,7 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4067
4067
  ] }),
4068
4068
  a.fieldtype === "number" && /* @__PURE__ */ l("div", { children: [
4069
4069
  /* @__PURE__ */ e(
4070
- Y,
4070
+ W,
4071
4071
  {
4072
4072
  type: "number",
4073
4073
  name: a.key,
@@ -4124,7 +4124,7 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4124
4124
  ] }),
4125
4125
  a.fieldtype === "email" && /* @__PURE__ */ l("div", { children: [
4126
4126
  /* @__PURE__ */ e(
4127
- Y,
4127
+ W,
4128
4128
  {
4129
4129
  type: "email",
4130
4130
  name: a.key,
@@ -4144,7 +4144,7 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4144
4144
  ] }),
4145
4145
  a.fieldtype === "url" && /* @__PURE__ */ l("div", { children: [
4146
4146
  /* @__PURE__ */ e(
4147
- Y,
4147
+ W,
4148
4148
  {
4149
4149
  type: "url",
4150
4150
  name: a.key,
@@ -4164,7 +4164,7 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4164
4164
  ] }),
4165
4165
  a.fieldtype === "password" && /* @__PURE__ */ l("div", { children: [
4166
4166
  /* @__PURE__ */ e(
4167
- Y,
4167
+ W,
4168
4168
  {
4169
4169
  type: "password",
4170
4170
  name: a.key,
@@ -4231,7 +4231,7 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4231
4231
  }
4232
4232
  ) }),
4233
4233
  a.fieldtype === "daterange" && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
4234
- Gr,
4234
+ jr,
4235
4235
  {
4236
4236
  label: a.label,
4237
4237
  value: i[a.key] || { from: null, to: null },
@@ -4302,7 +4302,7 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4302
4302
  ] }),
4303
4303
  (a.fieldtype === "datetime" || a.fieldtype === "datetime-local") && /* @__PURE__ */ l("div", { children: [
4304
4304
  /* @__PURE__ */ e(
4305
- Y,
4305
+ W,
4306
4306
  {
4307
4307
  type: "datetime-local",
4308
4308
  name: a.key,
@@ -4321,7 +4321,7 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4321
4321
  ] }),
4322
4322
  a.fieldtype === "time" && /* @__PURE__ */ l("div", { children: [
4323
4323
  /* @__PURE__ */ e(
4324
- Y,
4324
+ W,
4325
4325
  {
4326
4326
  type: "time",
4327
4327
  name: a.key,
@@ -4340,7 +4340,7 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4340
4340
  ] }),
4341
4341
  a.fieldtype === "color" && /* @__PURE__ */ l("div", { children: [
4342
4342
  /* @__PURE__ */ e(
4343
- Y,
4343
+ W,
4344
4344
  {
4345
4345
  type: "color",
4346
4346
  name: a.key,
@@ -4357,7 +4357,7 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4357
4357
  ] }),
4358
4358
  a.fieldtype === "range" && /* @__PURE__ */ l("div", { children: [
4359
4359
  /* @__PURE__ */ e(
4360
- Y,
4360
+ W,
4361
4361
  {
4362
4362
  type: "range",
4363
4363
  name: a.key,
@@ -4385,7 +4385,7 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4385
4385
  ] }),
4386
4386
  a.fieldtype === "file" && /* @__PURE__ */ l("div", { children: [
4387
4387
  /* @__PURE__ */ e(
4388
- Y,
4388
+ W,
4389
4389
  {
4390
4390
  type: "file",
4391
4391
  name: a.key,
@@ -4436,9 +4436,9 @@ function Fn({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4436
4436
  const Tn = ({ children: t }) => /* @__PURE__ */ e("div", { className: "flex -space-x-2", children: t });
4437
4437
  function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4438
4438
  console.log(`[DynamicConfig/DataTableRenderer] Component loaded for section: ${t.key}`);
4439
- const [n, u] = L(t), [i, c] = L(null), [y, b] = L(null);
4439
+ const [n, u] = O(t), [i, c] = O(null), [y, b] = O(null);
4440
4440
  console.log(`[DataTableRenderer] ${n.key} - Received props:`, { item: t, initialData: r });
4441
- const [N, a] = L(() => {
4441
+ const [N, a] = O(() => {
4442
4442
  const v = r && r[n.key] || [], p = v.length > 0 ? v : [{ id: 0 }];
4443
4443
  return console.log(`[DataTableRenderer] ${n.key} - Initial data:`, p), p;
4444
4444
  }), w = ue(r);
@@ -4471,7 +4471,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4471
4471
  case "text":
4472
4472
  return (d, h) => /* @__PURE__ */ l("div", { children: [
4473
4473
  /* @__PURE__ */ e(
4474
- Y,
4474
+ W,
4475
4475
  {
4476
4476
  value: d[v.key] || "",
4477
4477
  onChange: (x) => p(h, x.target.value),
@@ -4485,7 +4485,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4485
4485
  case "textarea":
4486
4486
  return (d, h) => /* @__PURE__ */ l("div", { children: [
4487
4487
  /* @__PURE__ */ e(
4488
- La,
4488
+ Oa,
4489
4489
  {
4490
4490
  value: d[v.key] || "",
4491
4491
  onChange: (x) => p(h, x.target.value),
@@ -4500,7 +4500,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4500
4500
  case "number":
4501
4501
  return (d, h) => /* @__PURE__ */ l("div", { children: [
4502
4502
  /* @__PURE__ */ e(
4503
- Y,
4503
+ W,
4504
4504
  {
4505
4505
  type: "number",
4506
4506
  value: d[v.key] || "",
@@ -4515,7 +4515,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4515
4515
  case "email":
4516
4516
  return (d, h) => /* @__PURE__ */ l("div", { children: [
4517
4517
  /* @__PURE__ */ e(
4518
- Y,
4518
+ W,
4519
4519
  {
4520
4520
  type: "email",
4521
4521
  value: d[v.key] || "",
@@ -4530,7 +4530,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4530
4530
  case "url":
4531
4531
  return (d, h) => /* @__PURE__ */ l("div", { children: [
4532
4532
  /* @__PURE__ */ e(
4533
- Y,
4533
+ W,
4534
4534
  {
4535
4535
  type: "url",
4536
4536
  value: d[v.key] || "",
@@ -4545,7 +4545,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4545
4545
  case "password":
4546
4546
  return (d, h) => /* @__PURE__ */ l("div", { children: [
4547
4547
  /* @__PURE__ */ e(
4548
- Y,
4548
+ W,
4549
4549
  {
4550
4550
  type: "password",
4551
4551
  value: d[v.key] || "",
@@ -4652,7 +4652,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4652
4652
  );
4653
4653
  case "datetime":
4654
4654
  return (d, h) => /* @__PURE__ */ e(
4655
- Y,
4655
+ W,
4656
4656
  {
4657
4657
  type: "datetime-local",
4658
4658
  value: d[v.key] || "",
@@ -4664,7 +4664,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4664
4664
  );
4665
4665
  case "time":
4666
4666
  return (d, h) => /* @__PURE__ */ e(
4667
- Y,
4667
+ W,
4668
4668
  {
4669
4669
  type: "time",
4670
4670
  value: d[v.key] || "",
@@ -4725,7 +4725,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4725
4725
  };
4726
4726
  case "color":
4727
4727
  return (d, h) => /* @__PURE__ */ e(
4728
- Y,
4728
+ W,
4729
4729
  {
4730
4730
  type: "color",
4731
4731
  value: d[v.key] || "#000000",
@@ -4736,7 +4736,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4736
4736
  case "range":
4737
4737
  return (d, h) => /* @__PURE__ */ l("div", { className: "w-full", children: [
4738
4738
  /* @__PURE__ */ e(
4739
- Y,
4739
+ W,
4740
4740
  {
4741
4741
  type: "range",
4742
4742
  value: d[v.key] || v.min || 0,
@@ -4751,7 +4751,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4751
4751
  ] });
4752
4752
  case "file":
4753
4753
  return (d, h) => /* @__PURE__ */ e(
4754
- Y,
4754
+ W,
4755
4755
  {
4756
4756
  type: "file",
4757
4757
  onChange: (x) => {
@@ -4764,7 +4764,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4764
4764
  );
4765
4765
  case "hidden":
4766
4766
  return (d, h) => /* @__PURE__ */ e(
4767
- Y,
4767
+ W,
4768
4768
  {
4769
4769
  type: "hidden",
4770
4770
  value: d[v.key] || "",
@@ -4775,7 +4775,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4775
4775
  default:
4776
4776
  return (d, h) => /* @__PURE__ */ l("div", { children: [
4777
4777
  /* @__PURE__ */ e(
4778
- Y,
4778
+ W,
4779
4779
  {
4780
4780
  value: d[v.key] || "",
4781
4781
  onChange: (x) => p(h, x.target.value),
@@ -4787,7 +4787,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4787
4787
  k(h)
4788
4788
  ] });
4789
4789
  }
4790
- }, O = K(() => {
4790
+ }, L = K(() => {
4791
4791
  console.log("[DataTableRenderer] Adding blank row"), a((v) => {
4792
4792
  console.log("[DataTableRenderer] Current data before add:", v);
4793
4793
  const p = {
@@ -4807,7 +4807,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4807
4807
  const f = [...p];
4808
4808
  return f.splice(v, 1), f;
4809
4809
  });
4810
- }, []), [S, B] = L(null), P = K((v, p) => {
4810
+ }, []), [S, B] = O(null), P = K((v, p) => {
4811
4811
  B(p), v.dataTransfer.effectAllowed = "move", v.dataTransfer.setData("text/html", "");
4812
4812
  }, []), E = K((v) => {
4813
4813
  v.preventDefault(), v.dataTransfer.dropEffect = "move";
@@ -4840,7 +4840,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4840
4840
  "button",
4841
4841
  {
4842
4842
  className: "btn btn-primary text-white px-6 py-2 rounded-2xl cursor-pointer hover:bg-gray-800",
4843
- onClick: O,
4843
+ onClick: L,
4844
4844
  children: "Add"
4845
4845
  }
4846
4846
  )
@@ -4878,7 +4878,7 @@ function An({ item: t, data: r, updateHandler: s, validationErrors: o = {} }) {
4878
4878
  onClick: () => R(p),
4879
4879
  className: "text-red-500 hover:text-red-700",
4880
4880
  title: "Delete row",
4881
- children: /* @__PURE__ */ e(Gt, { size: 16 })
4881
+ children: /* @__PURE__ */ e(jt, { size: 16 })
4882
4882
  }
4883
4883
  ) })
4884
4884
  ]
@@ -4974,7 +4974,7 @@ const ma = () => {
4974
4974
  initialData: y = null
4975
4975
  // Add prop for initial demo data
4976
4976
  }) => {
4977
- const [b, N] = L(null), [a, w] = L(""), [m, g] = L(() => Array.isArray(y) ? y : []), [$, O] = L(null), [R, S] = L(null), [B, P] = L(""), E = async () => {
4977
+ const [b, N] = O(null), [a, w] = O(""), [m, g] = O(() => Array.isArray(y) ? y : []), [$, L] = O(null), [R, S] = O(null), [B, P] = O(""), E = async () => {
4978
4978
  try {
4979
4979
  const D = await $e(t.collectionList);
4980
4980
  if (D) {
@@ -5066,7 +5066,7 @@ const ma = () => {
5066
5066
  console.log(M), le.error("Failed to save order", { autoClose: 2500 });
5067
5067
  }
5068
5068
  }, d = (D, A) => {
5069
- c && (D.dataTransfer.effectAllowed = "move", D.dataTransfer.setData("text/plain", String(A)), O(A));
5069
+ c && (D.dataTransfer.effectAllowed = "move", D.dataTransfer.setData("text/plain", String(A)), L(A));
5070
5070
  }, h = (D) => {
5071
5071
  $ && D !== R && S(D);
5072
5072
  }, x = (D) => {
@@ -5077,9 +5077,9 @@ const ma = () => {
5077
5077
  M && (g((T) => {
5078
5078
  const C = f(T, M, A);
5079
5079
  return console.log("Reordered", C), k(C), s?.(C), C;
5080
- }), O(null), S(null));
5080
+ }), L(null), S(null));
5081
5081
  }, z = () => {
5082
- O(null), S(null);
5082
+ L(null), S(null);
5083
5083
  }, q = Array.isArray(m) ? m.filter(
5084
5084
  (D) => D.categoryName?.toLowerCase().includes(B.toLowerCase())
5085
5085
  ) : [];
@@ -5185,7 +5185,7 @@ const ma = () => {
5185
5185
  className: "cursor-pointer",
5186
5186
  onClick: () => V(D),
5187
5187
  "aria-label": `Edit ${D.categoryName}`,
5188
- children: /* @__PURE__ */ e(_t, { color: "#767676" })
5188
+ children: /* @__PURE__ */ e(Gt, { color: "#767676" })
5189
5189
  }
5190
5190
  ),
5191
5191
  i && /* @__PURE__ */ e(
@@ -5228,8 +5228,8 @@ const ma = () => {
5228
5228
  endpoints: u,
5229
5229
  initialData: g,
5230
5230
  className: w,
5231
- onCollectionChange: (O) => {
5232
- s && s(t.key, O);
5231
+ onCollectionChange: (L) => {
5232
+ s && s(t.key, L);
5233
5233
  },
5234
5234
  showSearch: c,
5235
5235
  allowAdd: y,
@@ -5262,7 +5262,7 @@ function Bn({
5262
5262
  onCancel: o,
5263
5263
  onSave: n
5264
5264
  }) {
5265
- const [u, i] = re.useState(r), [c, y] = re.useState(null), [b, N] = L(!1), [a, w] = L(!1), [m, g] = L({}), $ = `${be()}/unifyedxappmodulemanagement/api/v1/appmanager/${t}/configuration`, O = $, [R, S] = L(1), B = (f) => {
5265
+ const [u, i] = re.useState(r), [c, y] = re.useState(null), [b, N] = O(!1), [a, w] = O(!1), [m, g] = O({}), $ = `${be()}/unifyedxappmodulemanagement/api/v1/appmanager/${t}/configuration`, L = $, [R, S] = O(1), B = (f) => {
5266
5266
  if (!r || !r.configuration)
5267
5267
  return f;
5268
5268
  const k = {}, d = f?.configuration || {};
@@ -5405,7 +5405,7 @@ function Bn({
5405
5405
  }), q;
5406
5406
  }) : d[x] = c[x];
5407
5407
  });
5408
- let h = await Fe(O, d);
5408
+ let h = await Fe(L, d);
5409
5409
  if (console.log(), h && h.status != "fail") {
5410
5410
  g({});
5411
5411
  const x = h.message || "Configuration has been saved successfully";
@@ -5439,7 +5439,7 @@ function Bn({
5439
5439
  className: "dynamic-config bg-white w-full h-[calc(100vh-350px)] overflow-y-auto",
5440
5440
  style: { padding: "0px 20px 0px 0px" },
5441
5441
  children: [
5442
- b && /* @__PURE__ */ e("div", { className: "flex justify-center items-center h-64", children: /* @__PURE__ */ e(Oa, { size: "large" }) }),
5442
+ b && /* @__PURE__ */ e("div", { className: "flex justify-center items-center h-64", children: /* @__PURE__ */ e(La, { size: "large" }) }),
5443
5443
  !b && p?.map((f, k) => {
5444
5444
  const d = zn(f.type);
5445
5445
  if (d && d !== "UnknownType")
@@ -5485,7 +5485,7 @@ const us = ({
5485
5485
  appid: r = "Configuration-Page",
5486
5486
  disableApi: s = !1
5487
5487
  }) => {
5488
- const [o, n] = L(0), [u, i] = L(!1), [c, y] = L(r), {
5488
+ const [o, n] = O(0), [u, i] = O(!1), [c, y] = O(r), {
5489
5489
  pageHeader: b = {},
5490
5490
  appletHeader: N = {},
5491
5491
  breadcrumb: a = [],
@@ -5534,7 +5534,7 @@ const us = ({
5534
5534
  isLeftArrow: !0,
5535
5535
  onBackClick: () => window.history.back(),
5536
5536
  ...b
5537
- }, O = a.map((p) => ({
5537
+ }, L = a.map((p) => ({
5538
5538
  label: p.text,
5539
5539
  href: p.href || "#"
5540
5540
  })), R = K(() => {
@@ -5636,8 +5636,8 @@ const us = ({
5636
5636
  Qr,
5637
5637
  {
5638
5638
  heading: $.heading,
5639
- subHeading: O.length > 0 ? void 0 : $.subHeading,
5640
- breadcrumbItems: O,
5639
+ subHeading: L.length > 0 ? void 0 : $.subHeading,
5640
+ breadcrumbItems: L,
5641
5641
  isLeftArrow: $.isLeftArrow,
5642
5642
  onBackClick: $.onBackClick
5643
5643
  }
@@ -5670,7 +5670,7 @@ const us = ({
5670
5670
  /* @__PURE__ */ e("div", { className: "p-8 h-full overflow-y-auto", children: U[o].content })
5671
5671
  ] }),
5672
5672
  /* @__PURE__ */ e(
5673
- Yr,
5673
+ Wr,
5674
5674
  {
5675
5675
  isOpen: u,
5676
5676
  onClose: S,
@@ -5687,7 +5687,7 @@ function ms({ children: t }) {
5687
5687
  return /* @__PURE__ */ l(ee, { children: [
5688
5688
  t,
5689
5689
  /* @__PURE__ */ e(
5690
- xr,
5690
+ Nr,
5691
5691
  {
5692
5692
  position: "bottom-right",
5693
5693
  autoClose: 3500,
@@ -5697,7 +5697,7 @@ function ms({ children: t }) {
5697
5697
  pauseOnFocusLoss: !1,
5698
5698
  draggable: !0,
5699
5699
  pauseOnHover: !0,
5700
- transition: kr,
5700
+ transition: xr,
5701
5701
  limit: 4,
5702
5702
  closeButton: !0,
5703
5703
  bodyClassName: "ui-toast__body",
@@ -5730,7 +5730,7 @@ const hs = ({
5730
5730
  showRefresh: g = !1,
5731
5731
  showAdd: $ = !1,
5732
5732
  // Additional props
5733
- searchPlaceholder: O = "Search...",
5733
+ searchPlaceholder: L = "Search...",
5734
5734
  handleRefreshClick: R = () => {
5735
5735
  },
5736
5736
  handleSearchChange: S = () => {
@@ -5796,7 +5796,7 @@ const hs = ({
5796
5796
  y && /* @__PURE__ */ e("div", { className: "relative", children: /* @__PURE__ */ e(
5797
5797
  he,
5798
5798
  {
5799
- placeholder: O,
5799
+ placeholder: L,
5800
5800
  value: V,
5801
5801
  onDebouncedChange: (h) => {
5802
5802
  U(h), S(h);
@@ -5808,7 +5808,7 @@ const hs = ({
5808
5808
  b && /* @__PURE__ */ e(
5809
5809
  Z,
5810
5810
  {
5811
- icon: Yt,
5811
+ icon: _t,
5812
5812
  onClick: (h) => d("ColumnChooser", h),
5813
5813
  size: "small",
5814
5814
  ariaLabel: "Column Chooser",
@@ -5830,7 +5830,7 @@ const hs = ({
5830
5830
  a && /* @__PURE__ */ e(
5831
5831
  Z,
5832
5832
  {
5833
- icon: Jt,
5833
+ icon: Yt,
5834
5834
  onClick: () => d("Print"),
5835
5835
  ariaLabel: "Print",
5836
5836
  size: "small",
@@ -5841,7 +5841,7 @@ const hs = ({
5841
5841
  w && /* @__PURE__ */ e(
5842
5842
  Z,
5843
5843
  {
5844
- icon: Qt,
5844
+ icon: Jt,
5845
5845
  onClick: () => d("Excel"),
5846
5846
  ariaLabel: "Excel Download",
5847
5847
  size: "small",
@@ -5852,7 +5852,7 @@ const hs = ({
5852
5852
  m && /* @__PURE__ */ e(
5853
5853
  Z,
5854
5854
  {
5855
- icon: Xt,
5855
+ icon: Qt,
5856
5856
  onClick: () => d("Pdf"),
5857
5857
  ariaLabel: "PDF Download",
5858
5858
  size: "small",
@@ -5863,7 +5863,7 @@ const hs = ({
5863
5863
  g && /* @__PURE__ */ e(
5864
5864
  Z,
5865
5865
  {
5866
- icon: Zt,
5866
+ icon: Xt,
5867
5867
  onClick: () => d("Refresh"),
5868
5868
  ariaLabel: "Refresh",
5869
5869
  size: "small",
@@ -5876,7 +5876,7 @@ const hs = ({
5876
5876
  Z,
5877
5877
  {
5878
5878
  label: c,
5879
- icon: Ht,
5879
+ icon: Zt,
5880
5880
  onClick: u,
5881
5881
  size: "small",
5882
5882
  ariaLabel: "Add New",
@@ -5905,7 +5905,7 @@ function ps(t) {
5905
5905
  allowPdfExport: m = !1,
5906
5906
  showColumnChooser: g = !1,
5907
5907
  enableSearchApi: $ = !1,
5908
- height: O = "600",
5908
+ height: L = "600",
5909
5909
  selectionSettings: R = { type: "Multiple", mode: "Row" },
5910
5910
  enableCheckbox: S = !1,
5911
5911
  columns: B = [],
@@ -5920,8 +5920,8 @@ function ps(t) {
5920
5920
  sortSettings: k,
5921
5921
  ...d
5922
5922
  } = v || {}, h = ne(() => {
5923
- const C = [wr];
5924
- return c && C.push(Cr), y && C.push(Sr), b && C.push(Dr), $ && C.push($r), w && C.push(Fr), m && C.push(Tr), g && C.push(Ar), a && C.push(Er), N && C.push(Rr), C.push(Ir), C;
5923
+ const C = [kr];
5924
+ return c && C.push(wr), y && C.push(Cr), b && C.push(Sr), $ && C.push(Dr), w && C.push($r), m && C.push(Fr), g && C.push(Tr), a && C.push(Ar), N && C.push(Er), C.push(Rr), C;
5925
5925
  }, [c, y, b, $, w, m, g, a, N]), x = ne(() => {
5926
5926
  const C = () => p.current, I = (G, H) => {
5927
5927
  !H && process.env.NODE_ENV !== "production" && console.warn(`[CustomDataGrid] ${G} requested but related service/feature is disabled.`);
@@ -5985,12 +5985,12 @@ function ps(t) {
5985
5985
  };
5986
5986
  };
5987
5987
  return /* @__PURE__ */ l(
5988
- zr,
5988
+ Ir,
5989
5989
  {
5990
5990
  id: o,
5991
5991
  ref: p,
5992
5992
  dataSource: r,
5993
- height: O,
5993
+ height: L,
5994
5994
  allowPaging: i,
5995
5995
  allowSorting: c,
5996
5996
  allowFiltering: y,
@@ -6014,7 +6014,7 @@ function ps(t) {
6014
6014
  },
6015
6015
  ...d,
6016
6016
  children: [
6017
- /* @__PURE__ */ e(Br, { children: (() => {
6017
+ /* @__PURE__ */ e(zr, { children: (() => {
6018
6018
  const C = [];
6019
6019
  return S && C.push(/* @__PURE__ */ e(ra, { type: "checkbox", width: "50" }, "__checkbox__")), B.forEach((I, G) => {
6020
6020
  const {
@@ -6061,7 +6061,7 @@ function ps(t) {
6061
6061
  );
6062
6062
  }), C;
6063
6063
  })() }),
6064
- /* @__PURE__ */ e(Pr, { services: h })
6064
+ /* @__PURE__ */ e(Br, { services: h })
6065
6065
  ]
6066
6066
  }
6067
6067
  );
@@ -6069,25 +6069,25 @@ function ps(t) {
6069
6069
  export {
6070
6070
  fn as AddUserGroupsRolesModal,
6071
6071
  Ta as Avatar,
6072
- Wn as AvatarGroup,
6072
+ Yn as AvatarGroup,
6073
6073
  Jn as Badge,
6074
- jr as Breadcrumbs,
6075
- Vr as Button,
6074
+ qr as Breadcrumbs,
6075
+ Mr as Button,
6076
6076
  Aa as Checkbox,
6077
6077
  ps as CustomDataGrid,
6078
6078
  is as CustomDialog,
6079
6079
  hs as CustomGridToolbar,
6080
6080
  ds as CustomTab,
6081
6081
  za as DatePicker,
6082
- Gr as DateRangePicker,
6082
+ jr as DateRangePicker,
6083
6083
  Bn as DynamicConfig,
6084
6084
  Qn as FileUploadModal,
6085
6085
  us as FullConfigPage,
6086
6086
  Kn as FullScreenLoader,
6087
6087
  Xn as GenericFilter,
6088
- Y as Input,
6088
+ W as Input,
6089
6089
  Qa as ManageCollectionList,
6090
- Yr as Modal,
6090
+ Wr as Modal,
6091
6091
  qe as MultiSelect,
6092
6092
  Xr as OptionsMenu,
6093
6093
  Qr as PageHeader,
@@ -6097,8 +6097,8 @@ export {
6097
6097
  he as SearchBar,
6098
6098
  He as Select,
6099
6099
  Hn as Sidebar,
6100
- Oa as Spinner,
6101
- La as Textarea,
6100
+ La as Spinner,
6101
+ Oa as Textarea,
6102
6102
  ms as ToastProvider,
6103
6103
  Ma as ToggleSwitch,
6104
6104
  es as Tooltip,
@@ -6124,8 +6124,8 @@ export {
6124
6124
  aa as myDriveGatewayBaseV2,
6125
6125
  ve as notify,
6126
6126
  _a as provisioningBase,
6127
- Ya as rbacBase,
6128
- Wa as searchRolesApi,
6127
+ Wa as rbacBase,
6128
+ Ya as searchRolesApi,
6129
6129
  rs as sessionStore,
6130
6130
  ja as userSearchBase
6131
6131
  };